/**
 * 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(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=1414)}([function(e,t,r){"use strict";(function(e,n){r.d(t,"c",(function(){return g})),r.d(t,"d",(function(){return m})),r.d(t,"e",(function(){return v})),r.d(t,"a",(function(){return k}));var i=r(6),o=r.n(i),s=r(1),a=r.n(s),u=r(2),f=r.n(u),c=r(23),l=r.n(c),h=r(15),p=r(16),d=r(28),_=r(27),y=function(){function t(){a()(this,t)}return f()(t,null,[{key:"chr",value:function(e){if(e>65535){e-=65536;var t=String.fromCharCode(e>>>10&1023|55296);return e=56320|1023&e,t+String.fromCharCode(e)}return String.fromCharCode(e)}},{key:"ord",value:function(e){if(2===e.length){var t=e.charCodeAt(0),r=e.charCodeAt(1);if(t>=55296&&t<56320&&r>=56320&&r<57344)return 1024*(t-55296)+r-56320+65536}return e.charCodeAt(0)}},{key:"padBytesRight",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=new Array(t);return n.fill(r),[...e].forEach((function(e,t){n[t]=e})),n}},{key:"truncate",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...";return e.length>t&&(e=e.slice(0,t-r.length)+r),e}},{key:"hex",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return(e="string"==typeof e?t.ord(e):e).toString(16).padStart(r,"0")}},{key:"bin",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8;return(e="string"==typeof e?t.ord(e):e).toString(2).padStart(r,"0")}},{key:"printable",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b()&&window.app&&!window.app.options.treatAsUtf8&&(e=t.byteArrayToChars(t.strToByteArray(e)));var n=/[\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,i=/[\x09-\x10\x0D\u2028\u2029]/g;return e=e.replace(n,"."),r||(e=e.replace(i,".")),e}},{key:"parseEscapedChars",value:function(e){return e.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(e,t){switch(t[0]){case"\\":return"\\";case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":return String.fromCharCode(parseInt(t,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(t.substr(1),16));case"u":return"{"===t[1]?String.fromCodePoint(parseInt(t.slice(2,-1),16)):String.fromCharCode(parseInt(t.substr(1),16))}}))}},{key:"escapeRegex",value:function(e){return e.replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1")}},{key:"expandAlphRange",value:function(e){for(var r=[],n=0;n<e.length;n++)if(n<e.length-2&&"-"===e[n+1]&&"\\"!==e[n]){for(var i=t.ord(e[n]),o=t.ord(e[n+2]),s=i;s<=o;s++)r.push(t.chr(s));n+=2}else n<e.length-2&&"\\"===e[n]&&"-"===e[n+1]?(r.push("-"),n++):r.push(e[n]);return r}},{key:"convertToByteArray",value:function(e,r){switch(r.toLowerCase()){case"binary":return Object(_.a)(e);case"hex":return Object(p.a)(e);case"decimal":return Object(d.a)(e);case"base64":return Object(h.a)(e,null,"byteArray");case"utf8":return t.strToUtf8ByteArray(e);case"latin1":default:return t.strToByteArray(e)}}},{key:"convertToByteString",value:function(e,r){switch(r.toLowerCase()){case"binary":return t.byteArrayToChars(Object(_.a)(e));case"hex":return t.byteArrayToChars(Object(p.a)(e));case"decimal":return t.byteArrayToChars(Object(d.a)(e));case"base64":return t.byteArrayToChars(Object(h.a)(e,null,"byteArray"));case"utf8":return l.a.encode(e);case"latin1":default:return e}}},{key:"strToArrayBuffer",value:function(e){for(var r,n=new Uint8Array(e.length),i=e.length;i--;)if(r=e.charCodeAt(i),n[i]=r,r>255)return t.strToUtf8ArrayBuffer(e);return n.buffer}},{key:"strToUtf8ArrayBuffer",value:function(e){var r=l.a.encode(e);return e.length!==r.length&&(m()?self.setOption("attemptHighlight",!1):b()&&(window.app.options.attemptHighlight=!1)),t.strToArrayBuffer(r)}},{key:"strToByteArray",value:function(e){for(var r,n=new Array(e.length),i=e.length;i--;)if(r=e.charCodeAt(i),n[i]=r,r>255)return t.strToUtf8ByteArray(e);return n}},{key:"strToUtf8ByteArray",value:function(e){var r=l.a.encode(e);return e.length!==r.length&&(m()?self.setOption("attemptHighlight",!1):b()&&(window.app.options.attemptHighlight=!1)),t.strToByteArray(r)}},{key:"strToCharcode",value:function(e){for(var r=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);if(n<e.length-1&&i>=55296&&i<56320){var o=e[n+1].charCodeAt(0);o>=56320&&o<57344&&(i=t.ord(e[n]+e[++n]))}r.push(i)}return r}},{key:"byteArrayToUtf8",value:function(e){var r=t.byteArrayToChars(e);try{var n=l.a.decode(r);return r.length!==n.length&&(m()?self.setOption("attemptHighlight",!1):b()&&(window.app.options.attemptHighlight=!1)),n}catch(e){return r}}},{key:"byteArrayToChars",value:function(e){if(!e)return"";for(var t="",r=0;r<e.length;)t+=String.fromCharCode(e[r++]);return t}},{key:"arrayBufferToStr",value:function(e){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=new Uint8Array(e);return r?t.byteArrayToUtf8(n):t.byteArrayToChars(n)}},{key:"calculateShannonEntropy",value:function(e){e instanceof ArrayBuffer&&(e=new Uint8Array(e));var t,r=[],n=new Array(256).fill(0);for(t=0;t<e.length;t++)n[e[t]]++;for(t=0;t<n.length;t++)n[t]>0&&r.push(n[t]/e.length);var i,o=0;for(t=0;t<r.length;t++)o+=(i=r[t])*Math.log(i)/Math.log(2);return-o}},{key:"parseCSV",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[","],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["\n","\r"],o=!1,s=!1,a="",u=[],f=[];e.length&&"\ufeff"===e[0]&&(e=e.substr(1));for(var c=0;c<e.length;c++)t=e[c],r=e[c+1]||"",o?(a+=t,o=!1):'"'!==t||s?'"'===t&&s?'"'===r?o=!0:s=!1:!s&&n.indexOf(t)>=0?(u.push(a),a=""):!s&&i.indexOf(t)>=0?(u.push(a),a="",f.push(u),u=[],i.indexOf(r)>=0&&r!==t&&c++):a+=t:s=!0;return u.length&&(u.push(a),f.push(u)),f}},{key:"stripHtmlTags",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&(e=e.replace(/<(script|style)[^>]*>.*<\/(script|style)>/gim,"")),e.replace(/<[^>]+>/g,"")}},{key:"escapeHtml",value:function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#x60;"};return e.replace(/[&<>"'/`]/g,(function(e){return t[e]}))}},{key:"unescapeHtml",value:function(e){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#x27;":"'","&#x2F;":"/","&#x60;":"`"};return e.replace(/&#?x?[a-z0-9]{2,4};/gi,(function(e){return t[e]||e}))}},{key:"encodeURIFragment",value:function(e){var t={"%2D":"-","%2E":".","%5F":"_","%7E":"~","%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2C":",","%3B":";","%3A":":","%40":"@","%2F":"/","%3F":"?"};return(e=encodeURIComponent(e)).replace(/%[0-9A-F]{2}/g,(function(e){return t[e]||e}))}},{key:"generatePrettyRecipe",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r="",n="",i="",o="",s="";return e.forEach((function(e){n=e.op.replace(/ /g,"_"),i=JSON.stringify(e.args).slice(1,-1).replace(/'/g,"\\'").replace(/"((?:[^"\\]|\\.)*)"/g,"'$1'").replace(/\\"/g,'"'),o=e.disabled?"/disabled":"",s=e.breakpoint?"/breakpoint":"",r+=`${n}(${i}${o}${s})`,t&&(r+="\n")})),r}},{key:"parseRecipeConfig",value:function(e){if(0===(e=e.trim()).length)return[];if("["===e[0])return JSON.parse(e);var t,r;e=e.replace(/\n/g,"");for(var n=/([^(]+)\(((?:'[^'\\]*(?:\\.[^'\\]*)*'|[^)/'])*)(\/[^)]+)?\)/g,i=[];t=n.exec(e);){r="["+(r=t[2].replace(/"/g,'\\"').replace(/(^|,|{|:)'/g,'$1"').replace(/([^\\]|(?:\\\\)+)'(,|:|}|$)/g,'$1"$2').replace(/\\'/g,"'"))+"]";var o={op:t[1].replace(/_/g," "),args:JSON.parse(r)};t[3]&&t[3].indexOf("disabled")>0&&(o.disabled=!0),t[3]&&t[3].indexOf("breakpoint")>0&&(o.breakpoint=!0),i.push(o)}return i}},{key:"displayFilesAsHTML",value:function(e){var r,n,i,s,a;return o.a.async((function(u){for(;;)switch(u.prev=u.next){case 0:r=function(e){return`<div class='card' style='white-space: normal;'>\n                    <div class='card-header'>\n                        <h6 class="mb-0">\n                            ${t.escapeHtml(e.name)}\n                        </h6>\n                    </div>\n                </div>`},n=function(e,r){if(r.startsWith("image")){var n="data:";return n+=r+";","<img style='max-width: 100%;' src='"+(n+="base64,"+Object(h.b)(e))+"'>"}return`<pre>${t.escapeHtml(t.arrayBufferToStr(e.buffer))}</pre>`},i=function(e,r){var i,s,a,u;return o.a.async((function(f){for(;;)switch(f.prev=f.next){case 0:return f.next=2,o.a.awrap(t.readFile(e));case 2:return i=f.sent,s=new Blob([i],{type:e.type||"octet/stream"}),a=URL.createObjectURL(s),u=`<div class='card' style='white-space: normal;'>\n                    <div class='card-header' id='heading${r}'>\n                        <h6 class='mb-0'>\n                            <a class='collapsed'\n                                data-toggle='collapse'\n                                href='#collapse${r}'\n                                aria-expanded='false'\n                                aria-controls='collapse${r}'\n                                title="Show/hide contents of '${t.escapeHtml(e.name)}'">\n                                ${t.escapeHtml(e.name)}</a>\n                            <span class='float-right' style="margin-top: -3px">\n                                ${e.size.toLocaleString()} bytes\n                                <a title="Download ${t.escapeHtml(e.name)}"\n                                    href="${a}"\n                                    download="${t.escapeHtml(e.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="${a}"\n                                    file-name="${t.escapeHtml(e.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${r}' class='collapse' aria-labelledby='heading${r}' data-parent="#files">\n                        <div class='card-body'>\n                            ${n(i,e.type)}\n                        </div>\n                    </div>\n                </div>`,f.abrupt("return",u);case 7:case"end":return f.stop()}}))},s=`<div style='padding: 5px; white-space: normal;'>\n                ${e.length} file(s) found\n            </div><div id="files" style="padding: 20px">`,a=0;case 5:if(!(a<e.length)){u.next=17;break}if(!e[a].name.endsWith("/")){u.next=10;break}s+=r(e[a]),u.next=14;break;case 10:return u.t0=s,u.next=13,o.a.awrap(i(e[a],a));case 13:s=u.t0+=u.sent;case 14:a++,u.next=5;break;case 17:return u.abrupt("return",s+="</div>");case 18:case"end":return u.stop()}}))}},{key:"parseURIParams",value:function(e){if(""===e)return{};"?"!==e[0]&&"#"!==e[0]||(e=e.substr(1));for(var t=e.split("&"),r={},n=0;n<t.length;n++){var i=t[n].split("=");2!==i.length?r[t[n]]=!0:r[i[0]]=decodeURIComponent(i[1].replace(/\+/g," "))}return r}},{key:"readFile",value:function(t){return g()?e.from(t).buffer:new Promise((function(e,r){var n=new FileReader,i=new Uint8Array(t.size),o=0,s=function(){if(o>=t.size)e(i);else{var r=t.slice(o,o+10485760);n.readAsArrayBuffer(r)}};n.onload=function(e){i.set(new Uint8Array(n.result),o),o+=10485760,s()},n.onerror=function(e){r(n.error.message)},s()}))}},{key:"readFileSync",value:function(e){if(!g())throw new TypeError("Browser environment cannot support readFileSync");return Uint8Array.from(e.data).buffer}},{key:"mod",value:function(e,t){return(e%t+t)%t}},{key:"gcd",value:function(e,r){return r?t.gcd(r,e%r):e}},{key:"modInv",value:function(e,t){e%=t;for(var r=1;r<t;r++)if(e*r%26==1)return r}},{key:"charRep",value:function(e){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:""}[e]}},{key:"regexRep",value:function(e){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":/0x/g,"\\x":/\\x/g,None:/\s+/g}[e]}}]),t}();function g(){return void 0!==n&&null!=n.versions&&null!=n.versions.node}function b(){return"object"==typeof window}function m(){return"function"==typeof importScripts}function v(e){m()?self.sendStatusMessage(e):b()?app.alert(e,1e4):g()&&console.debug(e)}t.b=y,Array.prototype.unique=function(){for(var e={},t=[],r=0,n=this.length;r<n;r++)Object.prototype.hasOwnProperty.call(e,this[r])||(t.push(this[r]),e[this[r]]=1);return t},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(e,t){return e+t}),0)},Array.prototype.equals=function(e){if(!e)return!1;var t=this.length;if(t!==e.length)return!1;for(;t--;)if(this[t]!==e[t])return!1;return!0},String.prototype.count=function(e){return this.split(e).length-1};var w={};function k(e,t,r,n,i){return function(){clearTimeout(w[r]),w[r]=setTimeout((function(){e.apply(n,i)}),t)}}String.prototype.padStart||(String.prototype.padStart=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),t.slice(0,e)+String(this))}),String.prototype.padEnd||(String.prototype.padEnd=function(e,t){return e>>=0,t=String(void 0!==t?t:" "),this.length>e?String(this):((e-=this.length)>t.length&&(t+=t.repeat(e/t.length)),String(this)+t.slice(0,e))})}).call(this,r(11).Buffer,r(25))},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}},function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(t)}e.exports=r},function(e,t,r){var n=r(38),i=r(22);e.exports=function(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?i(e):t}},function(e,t,r){var n=r(39);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&n(e,t)}},function(e,t,r){e.exports=r(43)},function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(1),i=r.n(n),o=r(2),s=r.n(o),a=function(){function e(t){i()(this,e),this.bytes=t,this.length=this.bytes.length,this.position=0,this.bitPos=0}return s()(e,[{key:"getBytes",value:function(e){if(!(this.position>this.length)){var t=this.position+e,r=this.bytes.slice(this.position,t);return this.position=t,this.bitPos=0,r}}},{key:"readString",value:function(e){if(!(this.position>this.length)){for(var t="",r=this.position;r<this.position+e;r++){var n=this.bytes[r];if(0===n)break;t+=String.fromCharCode(n)}return this.position+=e,this.bitPos=0,t}}},{key:"readInt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"be";if(!(this.position>this.length)){var r=0;if("be"===t)for(var n=this.position;n<this.position+e;n++)r<<=8,r|=this.bytes[n];else for(var i=this.position+e-1;i>=this.position;i--)r<<=8,r|=this.bytes[i];return this.position+=e,this.bitPos=0,r}}},{key:"readBits",value:function(e){if(!(this.position>this.length)){var t=0,r=0;for(t=(this.bytes[this.position++]&256-(1<<this.bitPos))>>>this.bitPos,r=8-this.bitPos,this.bitPos=0;r<e;)t|=this.bytes[this.position++]<<r,r+=8;if(r>e){var n=r-e;t&=(1<<e)-1,r-=n,this.position--,this.bitPos=8-n}return t}}},{key:"continueUntil",value:function(e){if(!(this.position>this.length))if(this.bitPos=0,"number"!=typeof e){var t=e.length,r=e[t-1];this.position=t;for(var n=function(e,t){var r=new Array;return e.forEach((function(e,n){r[e]=t-n})),r}(e,t),i=!0;this.position<this.length;){for(;this.position<this.length&&this.bytes[this.position++]!==r;);i=!0;for(var o=t-1;o>=0;o--)if(this.bytes[this.position-t+o]!==e[o]){i=!1,this.position+=n[e[o]];break}if(i){this.position-=t;break}}}else for(;++this.position<this.length&&this.bytes[this.position]!==e;);}},{key:"consumeWhile",value:function(e){for(;this.position<this.length&&this.bytes[this.position]===e;)this.position++;this.bitPos=0}},{key:"consumeIf",value:function(e){this.bytes[this.position]===e&&(this.position++,this.bitPos=0)}},{key:"moveForwardsBy",value:function(e){var t=this.position+e;if(t<0||t>this.length)throw new Error("Cannot move to position "+t+" in stream. Out of bounds.");this.position=t,this.bitPos=0}},{key:"moveBackwardsBy",value:function(e){var t=this.position-e;if(t<0||t>this.length)throw new Error("Cannot move to position "+t+" in stream. Out of bounds.");this.position=t,this.bitPos=0}},{key:"moveBackwardsByBits",value:function(e){if(e<=this.bitPos)this.bitPos-=e;else for(this.bitPos>0&&(e-=this.bitPos,this.bitPos=0);e>0;)this.moveBackwardsBy(1),this.bitPos=8,this.moveBackwardsByBits(e),e-=8}},{key:"moveTo",value:function(e){if(e<0||e>this.length)throw new Error("Cannot move to position "+e+" in stream. Out of bounds.");this.position=e,this.bitPos=0}},{key:"hasMore",value:function(){return this.position<this.length}},{key:"carve",value:function(){return this.bitPos>0&&this.position++,this.bytes.slice(0,this.position)}}]),e}()},function(e,t,r){"use strict";var n=r(1),i=r.n(n),o=r(4),s=r.n(o),a=r(3),u=r.n(a),f=r(22),c=r.n(f),l=r(5),h=r.n(l);
/**
 * 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 p=function(e){function t(){var e;i()(this,t);for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=s()(this,u()(t).call(this,...n))).type="OperationError",Error.captureStackTrace&&Error.captureStackTrace(c()(e),t),e}return h()(t,e),t}(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error));t.a=p},function(e,t,r){"use strict";var n=r(1),i=r.n(n),o=r(2),s=r.n(o),a=r(13),u=r(0),f=r(16),c=function(){function e(t){i()(this,e),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,t&&this._parseConfig(t)}return s()(e,[{key:"_parseConfig",value:function(e){this.name=e.name,this.type=e.type,this.defaultValue=e.value,this.disabled=!!e.disabled,this.hint=e.hint||!1,this.rows=e.rows||!1,this.toggleValues=e.toggleValues,this.target=void 0!==e.target?e.target:null,this.defaultIndex=void 0!==e.defaultIndex?e.defaultIndex:0,this.min=e.min,this.max=e.max,this.step=e.step}},{key:"config",get:function(){return this._value}},{key:"value",set:function(t){this._value=e.prepare(t,this.type)},get:function(){return this._value}}],[{key:"prepare",value:function(e,t){var r;switch(t){case"binaryString":case"binaryShortString":case"editableOption":case"editableOptionShort":return u.b.parseEscapedChars(e);case"byteArray":return"string"==typeof e?(e=e.replace(/\s+/g,""),Object(f.a)(e)):e;case"number":if(null===e)return e;if(r=parseFloat(e),isNaN(r))throw"Invalid ingredient value. Not a number: "+u.b.truncate(e.toString(),10);return r;default:return e}}}]),e}(),l=function(){function e(){i()(this,e),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 s()(e,[{key:"run",value:function(e,t){return e}},{key:"highlight",value:function(e,t){return!1}},{key:"highlightReverse",value:function(e,t){return!1}},{key:"present",value:function(e,t){return e}},{key:"addIngredient",value:function(e){this._ingList.push(e)}},{key:"inputType",set:function(e){this._inputType=a.a.typeEnum(e)},get:function(){return a.a.enumLookup(this._inputType)}},{key:"outputType",set:function(e){this._outputType=a.a.typeEnum(e),this._presentType<0&&(this._presentType=this._outputType)},get:function(){return a.a.enumLookup(this._outputType)}},{key:"presentType",set:function(e){this._presentType=a.a.typeEnum(e)},get:function(){return a.a.enumLookup(this._presentType)}},{key:"args",set:function(e){var t=this;e.forEach((function(e){var r=new c(e);t.addIngredient(r)}))},get:function(){return this._ingList.map((function(e){var t={name:e.name,type:e.type,value:e.defaultValue};return e.toggleValues&&(t.toggleValues=e.toggleValues),e.hint&&(t.hint=e.hint),e.rows&&(t.rows=e.rows),e.disabled&&(t.disabled=e.disabled),e.target&&(t.target=e.target),e.defaultIndex&&(t.defaultIndex=e.defaultIndex),"number"==typeof e.min&&(t.min=e.min),"number"==typeof e.max&&(t.max=e.max),e.step&&(t.step=e.step),t}))}},{key:"config",get:function(){return{op:this.name,args:this._ingList.map((function(e){return e.config}))}}},{key:"ingValues",set:function(e){var t=this;e.forEach((function(e,r){t._ingList[r].value=e}))},get:function(){return this._ingList.map((function(e){return e.value}))}},{key:"breakpoint",set:function(e){this._breakpoint=!!e},get:function(){return this._breakpoint}},{key:"disabled",set:function(e){this._disabled=!!e},get:function(){return this._disabled}},{key:"flowControl",get:function(){return this._flowControl},set:function(e){this._flowControl=!!e}},{key:"manualBake",get:function(){return this._manualBake},set:function(e){this._manualBake=!!e}}]),e}();t.a=l},,function(e,t,r){"use strict";(function(e){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */
var n=r(40),i=r(41),o=r(42);function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return l(this,e)}return f(this,e,t,r)}function f(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=h(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(t,r),i=(e=a(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(u.isBuffer(t)){var r=0|p(t.length);return 0===(e=a(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(n=t.length)!=n?a(e,0):h(e,t);if("Buffer"===t.type&&o(t.data))return h(e,t.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function l(e,t){if(c(t),e=a(e,t<0?0:0|p(t)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function h(e,t){var r=t.length<0?0:0|p(t.length);e=a(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function p(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return K(e).length;default:if(n)return j(e).length;t=(""+t).toLowerCase(),n=!0}}function _(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return S(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:b(e,t,r,n,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):b(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,r,n,i){var o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function f(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=r;o<a;o++)if(f(e,o)===f(t,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===u)return c*s}else-1!==c&&(o-=o-c),c=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){for(var l=!0,h=0;h<u;h++)if(f(e,o+h)!==f(t,h)){l=!1;break}if(l)return o}return-1}function m(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))return s;e[r+s]=a}return s}function v(e,t,r,n){return q(j(t,e.length-r),e,r,n)}function w(e,t,r,n){return q(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function k(e,t,r,n){return w(e,t,r,n)}function x(e,t,r,n){return q(K(t),e,r,n)}function E(e,t,r,n){return q(function(e,t){for(var r,n,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=e.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function S(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function A(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,s,a,u,f=e[i],c=null,l=f>239?4:f>223?3:f>191?2:1;if(i+l<=r)switch(l){case 1:f<128&&(c=f);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&f)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&f)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&f)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,l=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=l}return function(e){var t=e.length;if(t<=B)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=B));return r}(n)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return f(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return function(e,t,r,n){return c(t),t<=0?a(e,t):void 0!==r?"string"==typeof n?a(e,t).fill(r,n):a(e,t).fill(r):a(e,t)}(null,e,t,r)},u.allocUnsafe=function(e){return l(null,e)},u.allocUnsafeSlow=function(e){return l(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(e){switch(String(e).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}},u.concat=function(e,t){if(!o(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=u.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var s=e[r];if(!u.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(n,i),i+=s.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?A(this,0,e):_.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),a=Math.min(o,s),f=this.slice(n,i),c=e.slice(t,r),l=0;l<a;++l)if(f[l]!==c[l]){o=f[l],s=c[l];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return g(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return g(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return m(this,e,t,r);case"utf8":case"utf-8":return v(this,e,t,r);case"ascii":return w(this,e,t,r);case"latin1":case"binary":return k(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var B=4096;function D(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function M(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function P(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o<r;++o)i+=N(e[o]);return i}function I(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function U(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function T(e,t,r,n,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function R(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function F(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function C(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(e,t,r,n,o){return o||C(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function z(e,t,r,n,o){return o||C(e,0,r,8),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=u.prototype;else{var i=t-e;r=new u(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},u.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},u.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||U(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||U(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||U(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||U(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||U(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||U(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||U(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||U(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||U(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||U(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||U(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||U(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||U(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||U(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||U(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||T(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},u.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||T(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):F(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);T(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<r&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);T(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):F(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):F(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return z(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return z(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;i>=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var s=u.isBuffer(e)?e:j(new u(e,n).toString()),a=s.length;for(o=0;o<r-t;++o)this[o+t]=s[o%a]}return this};var L=/[^+\/0-9A-Za-z-_]/g;function N(e){return e<16?"0"+e.toString(16):e.toString(16)}function j(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],s=0;s<n;++s){if((r=e.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function K(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,r(26))},function(e,t,r){var n=r(44),i=r(45),o=r(46);e.exports=function(e,t){return n(e)||i(e,t)||o()}},function(e,t,r){"use strict";var n=r(6),i=r.n(n),o=r(1),s=r.n(o),a=r(2),u=r.n(a),f=r(0),c=r(4),l=r.n(c),h=r(3),p=r.n(h),d=r(22),_=r.n(d),y=r(5),g=r.n(y);
/**
 * 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 b=function(e){function t(){var e;s()(this,t);for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return(e=l()(this,p()(t).call(this,...n))).type="DishError",Error.captureStackTrace&&Error.captureStackTrace(_()(e),t),e}return g()(t,e),t}(function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)),m=r(14),v=r.n(m),w=r(18),k=r(24),x=r.n(k),E=function(){function e(){s()(this,e)}return u()(e,null,[{key:"checkForValue",value:function(e){if(void 0===e)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")}}]),e}(),S=function(e){function t(){return s()(this,t),l()(this,p()(t).apply(this,arguments))}return g()(t,e),u()(t,null,[{key:"toArrayBuffer",value:function(){t.checkForValue(this.value),this.value=new Uint8Array(this.value).buffer}},{key:"fromArrayBuffer",value:function(){t.checkForValue(this.value),this.value=Array.prototype.slice.call(new Uint8Array(this.value))}}]),t}(E),A=function(e){function t(){return s()(this,t),l()(this,p()(t).apply(this,arguments))}return g()(t,e),u()(t,null,[{key:"toArrayBuffer",value:function(){t.checkForValue(this.value),this.value=v.a.isBigNumber(this.value)?f.b.strToArrayBuffer(this.value.toFixed()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(e){t.checkForValue(this.value);try{this.value=new v.a(f.b.arrayBufferToStr(this.value,!e))}catch(e){this.value=new v.a(NaN)}}}]),t}(E),B=function(e){function t(){return s()(this,t),l()(this,p()(t).apply(this,arguments))}return g()(t,e),u()(t,null,[{key:"toArrayBuffer",value:function(){var e=this;if(t.checkForValue(this.value),!Object(f.c)())return new Promise((function(t,r){f.b.readFile(e.value).then((function(t){return e.value=t.buffer})).then(t).catch(r)}));this.value=f.b.readFileSync(this.value)}},{key:"fromArrayBuffer",value:function(){t.checkForValue(this.value),this.value=new File(this.value,"unknown")}}]),t}(E),D=function(e){function t(){return s()(this,t),l()(this,p()(t).apply(this,arguments))}return g()(t,e),u()(t,null,[{key:"toArrayBuffer",value:function(){t.checkForValue(this.value),this.value=this.value?f.b.strToArrayBuffer(this.value):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(e){t.checkForValue(this.value),this.value=this.value?f.b.arrayBufferToStr(this.value,!e):""}}]),t}(E),M=function(e){function t(){return s()(this,t),l()(this,p()(t).apply(this,arguments))}return g()(t,e),u()(t,null,[{key:"toArrayBuffer",value:function(){t.checkForValue(this.value),this.value=this.value?f.b.strToArrayBuffer(f.b.unescapeHtml(f.b.stripHtmlTags(this.value,!0))):new ArrayBuffer}}]),t}(D),P=function(e){function t(){return s()(this,t),l()(this,p()(t).apply(this,arguments))}return g()(t,e),u()(t,null,[{key:"toArrayBuffer",value:function(){t.checkForValue(this.value),this.value=this.value?f.b.strToArrayBuffer(JSON.stringify(this.value,null,4)):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(e){t.checkForValue(this.value),this.value=JSON.parse(f.b.arrayBufferToStr(this.value,!e))}}]),t}(E),I=function(e){function t(){return s()(this,t),l()(this,p()(t).apply(this,arguments))}return g()(t,e),u()(t,null,[{key:"toArrayBuffer",value:function(){return i.a.async((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.checkForValue(this.value),!Object(f.c)()){e.next=5;break}this.value=this.value.map((function(e){return Uint8Array.from(e.data)})),e.next=8;break;case 5:return e.next=7,i.a.awrap(t.concatenateTypedArraysWithTypedElements(...this.value));case 7:this.value=e.sent;case 8:case"end":return e.stop()}}),null,this)}},{key:"fromArrayBuffer",value:function(){t.checkForValue(this.value),this.value=[new File(this.value,"unknown")]}},{key:"concatenateTypedArraysWithTypedElements",value:function(){var e,t,r,n,o,s,a,u,c,l,h,p,d,_=arguments;return i.a.async((function(y){for(;;)switch(y.prev=y.next){case 0:for(e=0,t=_.length,r=new Array(t),n=0;n<t;n++)r[n]=_[n];for(o=0,s=r;o<s.length;o++)a=s[o],e+=a.size;u=new Uint8Array(e),c=0,l=0,h=r;case 6:if(!(l<h.length)){y.next=16;break}return p=h[l],y.next=10,i.a.awrap(f.b.readFile(p));case 10:d=y.sent,u.set(d,c),c+=d.length;case 13:l++,y.next=6;break;case 16:return y.abrupt("return",u);case 17:case"end":return y.stop()}}))}},{key:"concatenateTypedArrays",value:function(){for(var e=0,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(var i=0,o=r;i<o.length;i++){var s=o[i];e+=s.length}for(var a=new Uint8Array(e),u=0,f=0,c=r;f<c.length;f++){var l=c[f];a.set(l,u),u+=l.length}return a}}]),t}(E),U=function(e){function t(){return s()(this,t),l()(this,p()(t).apply(this,arguments))}return g()(t,e),u()(t,null,[{key:"toArrayBuffer",value:function(){t.checkForValue(this.value),this.value="number"==typeof this.value?f.b.strToArrayBuffer(this.value.toString()):new ArrayBuffer}},{key:"fromArrayBuffer",value:function(e){t.checkForValue(this.value),this.value=this.value?parseFloat(f.b.arrayBufferToStr(this.value,!e)):0}}]),t}(E),T=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(s()(this,e),this.value=new ArrayBuffer(0),this.type=e.ARRAY_BUFFER,t&&Object.prototype.hasOwnProperty.call(t,"value")&&Object.prototype.hasOwnProperty.call(t,"type"))this.set(t.value,t.type);else if(t&&null!==r)this.set(t,r);else if(t){var n=e.typeEnum(t.constructor.name);this.set(t,n)}}return u()(e,[{key:"get",value:function(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return"string"==typeof t&&(t=e.typeEnum(t)),this.type!==t?Object(f.c)()?(this._translate(t,n),this.value):new Promise((function(e,i){r._translate(t,n).then((function(){e(r.value)})).catch(i)})):this.value}},{key:"set",value:function(t,r){if("string"==typeof r&&(r=e.typeEnum(r)),x.a.debug("Dish type: "+e.enumLookup(r)),this.value=t,this.type=r,!this.valid()){var n=f.b.truncate(JSON.stringify(this.value),25);throw new b(`Data is not a valid ${e.enumLookup(r)}: ${n}`)}}},{key:"presentAs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.clone();return r.get(e,t)}},{key:"detectDishType",value:function(){var e=new Uint8Array(this.value.slice(0,2048)),t=Object(w.a)(e);return t.length&&t[0].mime&&"text/plain"!==!t[0].mime?t[0].mime:null}},{key:"getTitle",value:function(t){var r,n;return i.a.async((function(o){for(;;)switch(o.prev=o.next){case 0:r="",o.t0=this.type,o.next=o.t0===e.FILE?4:o.t0===e.LIST_FILE?6:o.t0===e.JSON?8:o.t0===e.NUMBER?10:o.t0===e.BIG_NUMBER?10:o.t0===e.ARRAY_BUFFER?12:o.t0===e.BYTE_ARRAY?12:15;break;case 4:return r=this.value.name,o.abrupt("break",26);case 6:return r=`${this.value.length} file(s)`,o.abrupt("break",26);case 8:return r="application/json",o.abrupt("break",26);case 10:return r=this.value.toString(),o.abrupt("break",26);case 12:if(null===(r=this.detectDishType())){o.next=15;break}return o.abrupt("break",26);case 15:return o.prev=15,(n=this.clone()).value=n.value.slice(0,256),o.next=20,i.a.awrap(n.get(e.STRING));case 20:r=o.sent,o.next=26;break;case 23:o.prev=23,o.t1=o.catch(15),x.a.error(`${e.enumLookup(this.type)} cannot be sliced. ${o.t1}`);case 26:return o.abrupt("return",r.slice(0,t));case 27:case"end":return o.stop()}}),null,this,[[15,23]])}},{key:"valid",value:function(){switch(this.type){case e.BYTE_ARRAY:if(!(this.value instanceof Uint8Array||this.value instanceof Array))return!1;for(var t=0;t<this.value.length;t++)if("number"!=typeof this.value[t]||this.value[t]<0||this.value[t]>255)return!1;return!0;case e.STRING:case e.HTML:return"string"==typeof this.value;case e.NUMBER:return"number"==typeof this.value;case e.ARRAY_BUFFER:return this.value instanceof ArrayBuffer;case e.BIG_NUMBER:if(v.a.isBigNumber(this.value))return!0;if(Object.keys(this.value).sort().equals(["c","e","s"])){var r=new v.a;return r.c=this.value.c,r.e=this.value.e,r.s=this.value.s,this.value=r,!0}return!1;case e.JSON:return!0;case e.FILE:return this.value instanceof File;case e.LIST_FILE:return this.value instanceof Array&&this.value.reduce((function(e,t){return e&&t instanceof File}),!0);default:return!1}}},{key:"clone",value:function(){var t=new e;switch(this.type){case e.STRING:case e.HTML:case e.NUMBER:case e.BIG_NUMBER:t.set(this.value,this.type);break;case e.BYTE_ARRAY:case e.JSON:t.set(JSON.parse(JSON.stringify(this.value)),this.type);break;case e.ARRAY_BUFFER:t.set(this.value.slice(0),this.type);break;case e.FILE:t.set(new File([this.value],this.value.name,{type:this.value.type,lastModified:this.value.lastModified}),this.type);break;case e.LIST_FILE:t.set(this.value.map((function(e){return new File([e],e.name,{type:e.type,lastModified:e.lastModified})})),this.type);break;default:throw new b("Cannot clone Dish, unknown type")}return t}},{key:"_translate",value:function(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(x.a.debug(`Translating Dish from ${e.enumLookup(this.type)} to ${e.enumLookup(t)}`),!Object(f.c)())return new Promise((function(n,i){r._toArrayBuffer().then((function(){return r.type=e.ARRAY_BUFFER})).then((function(){r._fromArrayBuffer(t),n()})).catch(i)}));this._toArrayBuffer(),this.type=e.ARRAY_BUFFER,this._fromArrayBuffer(t,n)}},{key:"_toArrayBuffer",value:function(){var t=this,r={browser:{[e.STRING]:function(){return Promise.resolve(D.toArrayBuffer.bind(t)())},[e.NUMBER]:function(){return Promise.resolve(U.toArrayBuffer.bind(t)())},[e.HTML]:function(){return Promise.resolve(M.toArrayBuffer.bind(t)())},[e.ARRAY_BUFFER]:function(){return Promise.resolve()},[e.BIG_NUMBER]:function(){return Promise.resolve(A.toArrayBuffer.bind(t)())},[e.JSON]:function(){return Promise.resolve(P.toArrayBuffer.bind(t)())},[e.FILE]:function(){return B.toArrayBuffer.bind(t)()},[e.LIST_FILE]:function(){return Promise.resolve(I.toArrayBuffer.bind(t)())},[e.BYTE_ARRAY]:function(){return Promise.resolve(S.toArrayBuffer.bind(t)())}},node:{[e.STRING]:function(){return D.toArrayBuffer.bind(t)()},[e.NUMBER]:function(){return U.toArrayBuffer.bind(t)()},[e.HTML]:function(){return M.toArrayBuffer.bind(t)()},[e.ARRAY_BUFFER]:function(){},[e.BIG_NUMBER]:function(){return A.toArrayBuffer.bind(t)()},[e.JSON]:function(){return P.toArrayBuffer.bind(t)()},[e.FILE]:function(){return B.toArrayBuffer.bind(t)()},[e.LIST_FILE]:function(){return I.toArrayBuffer.bind(t)()},[e.BYTE_ARRAY]:function(){return S.toArrayBuffer.bind(t)()}}};try{return r[Object(f.c)()?"node":"browser"][this.type]()}catch(t){throw new b(`Error translating from ${e.enumLookup(this.type)} to ArrayBuffer: ${t}`)}}},{key:"_fromArrayBuffer",value:function(t,r){var n=this,i={[e.STRING]:function(){return D.fromArrayBuffer.bind(n)(r)},[e.NUMBER]:function(){return U.fromArrayBuffer.bind(n)(r)},[e.HTML]:function(){return M.fromArrayBuffer.bind(n)(r)},[e.ARRAY_BUFFER]:function(){},[e.BIG_NUMBER]:function(){return A.fromArrayBuffer.bind(n)(r)},[e.JSON]:function(){return P.fromArrayBuffer.bind(n)(r)},[e.FILE]:function(){return B.fromArrayBuffer.bind(n)()},[e.LIST_FILE]:function(){return I.fromArrayBuffer.bind(n)()},[e.BYTE_ARRAY]:function(){return S.fromArrayBuffer.bind(n)()}};try{i[t](),this.type=t}catch(r){throw new b(`Error translating from ArrayBuffer to ${e.enumLookup(t)}: ${r}`)}}},{key:"size",get:function(){switch(this.type){case e.BYTE_ARRAY:case e.STRING:case e.HTML:return this.value.length;case e.NUMBER:case e.BIG_NUMBER:return this.value.toString().length;case e.ARRAY_BUFFER:return this.value.byteLength;case e.JSON:return JSON.stringify(this.value).length;case e.FILE:return this.value.size;case e.LIST_FILE:return this.value.reduce((function(e,t){return e+t.size}),0);default:return-1}}}],[{key:"typeEnum",value:function(t){switch(t.toLowerCase()){case"bytearray":case"byte array":return e.BYTE_ARRAY;case"string":return e.STRING;case"number":return e.NUMBER;case"html":return e.HTML;case"arraybuffer":case"array buffer":return e.ARRAY_BUFFER;case"bignumber":case"big number":return e.BIG_NUMBER;case"json":case"object":return e.JSON;case"file":return e.FILE;case"list<file>":return e.LIST_FILE;default:throw new b("Invalid data type string. No matching enum.")}}},{key:"enumLookup",value:function(t){switch(t){case e.BYTE_ARRAY:return"byteArray";case e.STRING:return"string";case e.NUMBER:return"number";case e.HTML:return"html";case e.ARRAY_BUFFER:return"ArrayBuffer";case e.BIG_NUMBER:return"BigNumber";case e.JSON:return"JSON";case e.FILE:return"File";case e.LIST_FILE:return"List<File>";default:throw new b("Invalid data type enum. No matching type.")}}}]),e}();T.BYTE_ARRAY=0,T.STRING=1,T.NUMBER=2,T.HTML=3,T.ARRAY_BUFFER=4,T.BIG_NUMBER=5,T.JSON=6,T.FILE=7,T.LIST_FILE=8;t.a=T},function(e,t,r){var n;!function(i){"use strict";var o,s=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a=Math.ceil,u=Math.floor,f="[BigNumber Error] ",c=f+"Number primitive has more than 15 significant digits: ",l=1e14,h=14,p=9007199254740991,d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],_=1e7,y=1e9;function g(e){var t=0|e;return e>0||e===t?t:t-1}function b(e){for(var t,r,n=1,i=e.length,o=e[0]+"";n<i;){for(t=e[n++]+"",r=h-t.length;r--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function m(e,t){var r,n,i=e.c,o=t.c,s=e.s,a=t.s,u=e.e,f=t.e;if(!s||!a)return null;if(r=i&&!i[0],n=o&&!o[0],r||n)return r?n?0:-a:s;if(s!=a)return s;if(r=s<0,n=u==f,!i||!o)return n?0:!i^r?1:-1;if(!n)return u>f^r?1:-1;for(a=(u=i.length)<(f=o.length)?u:f,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^r?1:-1;return u==f?0:u>f^r?1:-1}function v(e,t,r,n){if(e<t||e>r||e!==u(e))throw Error(f+(n||"Argument")+("number"==typeof e?e<t||e>r?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function w(e){var t=e.c.length-1;return g(e.e/h)==t&&e.c[t]%2!=0}function k(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function x(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t<n&&(e=e.slice(0,t)+"."+e.slice(t));return e}(o=function e(t){var r,n,i,o,E,S,A,B,D,M=K.prototype={constructor:K,toString:null,valueOf:null},P=new K(1),I=20,U=4,T=-7,R=21,F=-1e7,C=1e7,O=!1,z=1,L=0,N={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},j="0123456789abcdefghijklmnopqrstuvwxyz";function K(e,t){var r,o,a,f,l,d,_,y,g=this;if(!(g instanceof K))return new K(e,t);if(null==t){if(e&&!0===e._isBigNumber)return g.s=e.s,void(!e.c||e.e>C?g.c=g.e=null:e.e<F?g.c=[g.e=0]:(g.e=e.e,g.c=e.c.slice()));if((d="number"==typeof e)&&0*e==0){if(g.s=1/e<0?(e=-e,-1):1,e===~~e){for(f=0,l=e;l>=10;l/=10,f++);return void(f>C?g.c=g.e=null:(g.e=f,g.c=[e]))}y=String(e)}else{if(!s.test(y=String(e)))return i(g,y,d);g.s=45==y.charCodeAt(0)?(y=y.slice(1),-1):1}(f=y.indexOf("."))>-1&&(y=y.replace(".","")),(l=y.search(/e/i))>0?(f<0&&(f=l),f+=+y.slice(l+1),y=y.substring(0,l)):f<0&&(f=y.length)}else{if(v(t,2,j.length,"Base"),10==t)return V(g=new K(e),I+g.e+1,U);if(y=String(e),d="number"==typeof e){if(0*e!=0)return i(g,y,d,t);if(g.s=1/e<0?(y=y.slice(1),-1):1,K.DEBUG&&y.replace(/^0\.0*|\./,"").length>15)throw Error(c+e)}else g.s=45===y.charCodeAt(0)?(y=y.slice(1),-1):1;for(r=j.slice(0,t),f=l=0,_=y.length;l<_;l++)if(r.indexOf(o=y.charAt(l))<0){if("."==o){if(l>f){f=_;continue}}else if(!a&&(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase()))){a=!0,l=-1,f=0;continue}return i(g,String(e),d,t)}d=!1,(f=(y=n(y,t,10,g.s)).indexOf("."))>-1?y=y.replace(".",""):f=y.length}for(l=0;48===y.charCodeAt(l);l++);for(_=y.length;48===y.charCodeAt(--_););if(y=y.slice(l,++_)){if(_-=l,d&&K.DEBUG&&_>15&&(e>p||e!==u(e)))throw Error(c+g.s*e);if((f=f-l-1)>C)g.c=g.e=null;else if(f<F)g.c=[g.e=0];else{if(g.e=f,g.c=[],l=(f+1)%h,f<0&&(l+=h),l<_){for(l&&g.c.push(+y.slice(0,l)),_-=h;l<_;)g.c.push(+y.slice(l,l+=h));l=h-(y=y.slice(l)).length}else l-=_;for(;l--;y+="0");g.c.push(+y)}}else g.c=[g.e=0]}function q(e,t,r,n){var i,o,s,a,u;if(null==r?r=U:v(r,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)u=b(e.c),u=1==n||2==n&&(s<=T||s>=R)?k(u,s):x(u,s,"0");else if(o=(e=V(new K(e),t,r)).e,a=(u=b(e.c)).length,1==n||2==n&&(t<=o||o<=T)){for(;a<t;u+="0",a++);u=k(u,o)}else if(t-=s,u=x(u,o,"0"),o+1>a){if(--t>0)for(u+=".";t--;u+="0");}else if((t+=o-a)>0)for(o+1==a&&(u+=".");t--;u+="0");return e.s<0&&i?"-"+u:u}function G(e,t){for(var r,n=1,i=new K(e[0]);n<e.length;n++){if(!(r=new K(e[n])).s){i=r;break}t.call(i,r)&&(i=r)}return i}function H(e,t,r){for(var n=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,n++);return(r=n+r*h-1)>C?e.c=e.e=null:r<F?e.c=[e.e=0]:(e.e=r,e.c=t),e}function V(e,t,r,n){var i,o,s,f,c,p,_,y=e.c,g=d;if(y){e:{for(i=1,f=y[0];f>=10;f/=10,i++);if((o=t-i)<0)o+=h,s=t,_=(c=y[p=0])/g[i-s-1]%10|0;else if((p=a((o+1)/h))>=y.length){if(!n)break e;for(;y.length<=p;y.push(0));c=_=0,i=1,s=(o%=h)-h+1}else{for(c=f=y[p],i=1;f>=10;f/=10,i++);_=(s=(o%=h)-h+i)<0?0:c/g[i-s-1]%10|0}if(n=n||t<0||null!=y[p+1]||(s<0?c:c%g[i-s-1]),n=r<4?(_||n)&&(0==r||r==(e.s<0?3:2)):_>5||5==_&&(4==r||n||6==r&&(o>0?s>0?c/g[i-s]:0:y[p-1])%10&1||r==(e.s<0?8:7)),t<1||!y[0])return y.length=0,n?(t-=e.e+1,y[0]=g[(h-t%h)%h],e.e=-t||0):y[0]=e.e=0,e;if(0==o?(y.length=p,f=1,p--):(y.length=p+1,f=g[h-o],y[p]=s>0?u(c/g[i-s]%g[s])*f:0),n)for(;;){if(0==p){for(o=1,s=y[0];s>=10;s/=10,o++);for(s=y[0]+=f,f=1;s>=10;s/=10,f++);o!=f&&(e.e++,y[0]==l&&(y[0]=1));break}if(y[p]+=f,y[p]!=l)break;y[p--]=0,f=1}for(o=y.length;0===y[--o];y.pop());}e.e>C?e.c=e.e=null:e.e<F&&(e.c=[e.e=0])}return e}function Z(e){var t,r=e.e;return null===r?e.toString():(t=b(e.c),t=r<=T||r>=R?k(t,r):x(t,r,"0"),e.s<0?"-"+t:t)}return K.clone=e,K.ROUND_UP=0,K.ROUND_DOWN=1,K.ROUND_CEIL=2,K.ROUND_FLOOR=3,K.ROUND_HALF_UP=4,K.ROUND_HALF_DOWN=5,K.ROUND_HALF_EVEN=6,K.ROUND_HALF_CEIL=7,K.ROUND_HALF_FLOOR=8,K.EUCLID=9,K.config=K.set=function(e){var t,r;if(null!=e){if("object"!=typeof e)throw Error(f+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(v(r=e[t],0,y,t),I=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(v(r=e[t],0,8,t),U=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(v(r[0],-y,0,t),v(r[1],0,y,t),T=r[0],R=r[1]):(v(r,-y,y,t),T=-(R=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)v(r[0],-y,-1,t),v(r[1],1,y,t),F=r[0],C=r[1];else{if(v(r,-y,y,t),!r)throw Error(f+t+" cannot be zero: "+r);F=-(C=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(f+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw O=!r,Error(f+"crypto unavailable");O=r}else O=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(v(r=e[t],0,9,t),z=r),e.hasOwnProperty(t="POW_PRECISION")&&(v(r=e[t],0,y,t),L=r),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(r=e[t]))throw Error(f+t+" not an object: "+r);N=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.$|[+-.\s]|(.).*\1/.test(r))throw Error(f+t+" invalid: "+r);j=r}}return{DECIMAL_PLACES:I,ROUNDING_MODE:U,EXPONENTIAL_AT:[T,R],RANGE:[F,C],CRYPTO:O,MODULO_MODE:z,POW_PRECISION:L,FORMAT:N,ALPHABET:j}},K.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!K.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===o||-1===o)&&i>=-y&&i<=y&&i===u(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%h)<1&&(t+=h),String(n[0]).length==t){for(t=0;t<n.length;t++)if((r=n[t])<0||r>=l||r!==u(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(f+"Invalid BigNumber: "+e)},K.maximum=K.max=function(){return G(arguments,M.lt)},K.minimum=K.min=function(){return G(arguments,M.gt)},K.random=(o=9007199254740992*Math.random()&2097151?function(){return u(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,i,s,c=0,l=[],p=new K(P);if(null==e?e=I:v(e,0,y),i=a(e/h),O)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));c<i;)(s=131072*t[c]+(t[c+1]>>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[c]=r[0],t[c+1]=r[1]):(l.push(s%1e14),c+=2);c=i/2}else{if(!crypto.randomBytes)throw O=!1,Error(f+"crypto unavailable");for(t=crypto.randomBytes(i*=7);c<i;)(s=281474976710656*(31&t[c])+1099511627776*t[c+1]+4294967296*t[c+2]+16777216*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])>=9e15?crypto.randomBytes(7).copy(t,c):(l.push(s%1e14),c+=7);c=i/7}if(!O)for(;c<i;)(s=o())<9e15&&(l[c++]=s%1e14);for(i=l[--c],e%=h,i&&e&&(s=d[h-e],l[c]=u(i/s)*s);0===l[c];l.pop(),c--);if(c<0)l=[n=0];else{for(n=-1;0===l[0];l.splice(0,1),n-=h);for(c=1,s=l[0];s>=10;s/=10,c++);c<h&&(n-=h-c)}return p.e=n,p.c=l,p}),K.sum=function(){for(var e=1,t=arguments,r=new K(t[0]);e<t.length;)r=r.plus(t[e++]);return r},n=function(){function e(e,t,r,n){for(var i,o,s=[0],a=0,u=e.length;a<u;){for(o=s.length;o--;s[o]*=t);for(s[0]+=n.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>r-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/r|0,s[i]%=r)}return s.reverse()}return function(t,n,i,o,s){var a,u,f,c,l,h,p,d,_=t.indexOf("."),y=I,g=U;for(_>=0&&(c=L,L=0,t=t.replace(".",""),h=(d=new K(n)).pow(t.length-_),L=c,d.c=e(x(b(h.c),h.e,"0"),10,i,"0123456789"),d.e=d.c.length),f=c=(p=e(t,n,i,s?(a=j,"0123456789"):(a="0123456789",j))).length;0==p[--c];p.pop());if(!p[0])return a.charAt(0);if(_<0?--f:(h.c=p,h.e=f,h.s=o,p=(h=r(h,d,y,g,i)).c,l=h.r,f=h.e),_=p[u=f+y+1],c=i/2,l=l||u<0||null!=p[u+1],l=g<4?(null!=_||l)&&(0==g||g==(h.s<0?3:2)):_>c||_==c&&(4==g||l||6==g&&1&p[u-1]||g==(h.s<0?8:7)),u<1||!p[0])t=l?x(a.charAt(1),-y,a.charAt(0)):a.charAt(0);else{if(p.length=u,l)for(--i;++p[--u]>i;)p[u]=0,u||(++f,p=[1].concat(p));for(c=p.length;!p[--c];);for(_=0,t="";_<=c;t+=a.charAt(p[_++]));t=x(t,f,a.charAt(0))}return t}}(),r=function(){function e(e,t,r){var n,i,o,s,a=0,u=e.length,f=t%_,c=t/_|0;for(e=e.slice();u--;)a=((i=f*(o=e[u]%_)+(n=c*o+(s=e[u]/_|0)*f)%_*_+a)/r|0)+(n/_|0)+c*s,e[u]=i%r;return a&&(e=[a].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;i<r;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]<t[r]?1:0,e[r]=i*n+e[r]-t[r];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(n,i,o,s,a){var f,c,p,d,_,y,b,m,v,w,k,x,E,S,A,B,D,M=n.s==i.s?1:-1,P=n.c,I=i.c;if(!(P&&P[0]&&I&&I[0]))return new K(n.s&&i.s&&(P?!I||P[0]!=I[0]:I)?P&&0==P[0]||!I?0*M:M/0:NaN);for(v=(m=new K(M)).c=[],M=o+(c=n.e-i.e)+1,a||(a=l,c=g(n.e/h)-g(i.e/h),M=M/h|0),p=0;I[p]==(P[p]||0);p++);if(I[p]>(P[p]||0)&&c--,M<0)v.push(1),d=!0;else{for(S=P.length,B=I.length,p=0,M+=2,(_=u(a/(I[0]+1)))>1&&(I=e(I,_,a),P=e(P,_,a),B=I.length,S=P.length),E=B,k=(w=P.slice(0,B)).length;k<B;w[k++]=0);D=I.slice(),D=[0].concat(D),A=I[0],I[1]>=a/2&&A++;do{if(_=0,(f=t(I,w,B,k))<0){if(x=w[0],B!=k&&(x=x*a+(w[1]||0)),(_=u(x/A))>1)for(_>=a&&(_=a-1),b=(y=e(I,_,a)).length,k=w.length;1==t(y,w,b,k);)_--,r(y,B<b?D:I,b,a),b=y.length,f=1;else 0==_&&(f=_=1),b=(y=I.slice()).length;if(b<k&&(y=[0].concat(y)),r(w,y,k,a),k=w.length,-1==f)for(;t(I,w,B,k)<1;)_++,r(w,B<k?D:I,k,a),k=w.length}else 0===f&&(_++,w=[0]);v[p++]=_,w[0]?w[k++]=P[E]||0:(w=[P[E]],k=1)}while((E++<S||null!=w[0])&&M--);d=null!=w[0],v[0]||v.splice(0,1)}if(a==l){for(p=1,M=v[0];M>=10;M/=10,p++);V(m,o+(m.e=p+c*h-1)+1,s,d)}else m.e=c,m.r=+d;return m}}(),E=/^(-?)0([xbo])(?=\w[\w.]*$)/i,S=/^([^.]+)\.$/,A=/^\.([^.]+)$/,B=/^-?(Infinity|NaN)$/,D=/^\s*\+(?=[\w.])|^\s+|\s+$/g,i=function(e,t,r,n){var i,o=r?t:t.replace(D,"");if(B.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(E,(function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t})),n&&(i=n,o=o.replace(S,"$1").replace(A,"0.$1")),t!=o))return new K(o,i);if(K.DEBUG)throw Error(f+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},M.absoluteValue=M.abs=function(){var e=new K(this);return e.s<0&&(e.s=1),e},M.comparedTo=function(e,t){return m(this,new K(e,t))},M.decimalPlaces=M.dp=function(e,t){var r,n,i,o=this;if(null!=e)return v(e,0,y),null==t?t=U:v(t,0,8),V(new K(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-g(this.e/h))*h,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},M.dividedBy=M.div=function(e,t){return r(this,new K(e,t),I,U)},M.dividedToIntegerBy=M.idiv=function(e,t){return r(this,new K(e,t),0,1)},M.exponentiatedBy=M.pow=function(e,t){var r,n,i,o,s,c,l,p,d=this;if((e=new K(e)).c&&!e.isInteger())throw Error(f+"Exponent not an integer: "+Z(e));if(null!=t&&(t=new K(t)),s=e.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!e.c||!e.c[0])return p=new K(Math.pow(+Z(d),s?2-w(e):+Z(e))),t?p.mod(t):p;if(c=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new K(NaN);(n=!c&&d.isInteger()&&t.isInteger())&&(d=d.mod(t))}else{if(e.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||s&&d.c[1]>=24e7:d.c[0]<8e13||s&&d.c[0]<=9999975e7)))return o=d.s<0&&w(e)?-0:0,d.e>-1&&(o=1/o),new K(c?1/o:o);L&&(o=a(L/h+2))}for(s?(r=new K(.5),c&&(e.s=1),l=w(e)):l=(i=Math.abs(+Z(e)))%2,p=new K(P);;){if(l){if(!(p=p.times(d)).c)break;o?p.c.length>o&&(p.c.length=o):n&&(p=p.mod(t))}if(i){if(0===(i=u(i/2)))break;l=i%2}else if(V(e=e.times(r),e.e+1,1),e.e>14)l=w(e);else{if(0===(i=+Z(e)))break;l=i%2}d=d.times(d),o?d.c&&d.c.length>o&&(d.c.length=o):n&&(d=d.mod(t))}return n?p:(c&&(p=P.div(p)),t?p.mod(t):o?V(p,L,U,void 0):p)},M.integerValue=function(e){var t=new K(this);return null==e?e=U:v(e,0,8),V(t,t.e+1,e)},M.isEqualTo=M.eq=function(e,t){return 0===m(this,new K(e,t))},M.isFinite=function(){return!!this.c},M.isGreaterThan=M.gt=function(e,t){return m(this,new K(e,t))>0},M.isGreaterThanOrEqualTo=M.gte=function(e,t){return 1===(t=m(this,new K(e,t)))||0===t},M.isInteger=function(){return!!this.c&&g(this.e/h)>this.c.length-2},M.isLessThan=M.lt=function(e,t){return m(this,new K(e,t))<0},M.isLessThanOrEqualTo=M.lte=function(e,t){return-1===(t=m(this,new K(e,t)))||0===t},M.isNaN=function(){return!this.s},M.isNegative=function(){return this.s<0},M.isPositive=function(){return this.s>0},M.isZero=function(){return!!this.c&&0==this.c[0]},M.minus=function(e,t){var r,n,i,o,s=this,a=s.s;if(t=(e=new K(e,t)).s,!a||!t)return new K(NaN);if(a!=t)return e.s=-t,s.plus(e);var u=s.e/h,f=e.e/h,c=s.c,p=e.c;if(!u||!f){if(!c||!p)return c?(e.s=-t,e):new K(p?s:NaN);if(!c[0]||!p[0])return p[0]?(e.s=-t,e):new K(c[0]?s:3==U?-0:0)}if(u=g(u),f=g(f),c=c.slice(),a=u-f){for((o=a<0)?(a=-a,i=c):(f=u,i=p),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(n=(o=(a=c.length)<(t=p.length))?a:t,a=t=0;t<n;t++)if(c[t]!=p[t]){o=c[t]<p[t];break}if(o&&(i=c,c=p,p=i,e.s=-e.s),(t=(n=p.length)-(r=c.length))>0)for(;t--;c[r++]=0);for(t=l-1;n>a;){if(c[--n]<p[n]){for(r=n;r&&!c[--r];c[r]=t);--c[r],c[n]+=l}c[n]-=p[n]}for(;0==c[0];c.splice(0,1),--f);return c[0]?H(e,c,f):(e.s=3==U?-1:1,e.c=[e.e=0],e)},M.modulo=M.mod=function(e,t){var n,i,o=this;return e=new K(e,t),!o.c||!e.s||e.c&&!e.c[0]?new K(NaN):!e.c||o.c&&!o.c[0]?new K(o):(9==z?(i=e.s,e.s=1,n=r(o,e,0,3),e.s=i,n.s*=i):n=r(o,e,0,z),(e=o.minus(n.times(e))).c[0]||1!=z||(e.s=o.s),e)},M.multipliedBy=M.times=function(e,t){var r,n,i,o,s,a,u,f,c,p,d,y,b,m,v,w=this,k=w.c,x=(e=new K(e,t)).c;if(!(k&&x&&k[0]&&x[0]))return!w.s||!e.s||k&&!k[0]&&!x||x&&!x[0]&&!k?e.c=e.e=e.s=null:(e.s*=w.s,k&&x?(e.c=[0],e.e=0):e.c=e.e=null),e;for(n=g(w.e/h)+g(e.e/h),e.s*=w.s,(u=k.length)<(p=x.length)&&(b=k,k=x,x=b,i=u,u=p,p=i),i=u+p,b=[];i--;b.push(0));for(m=l,v=_,i=p;--i>=0;){for(r=0,d=x[i]%v,y=x[i]/v|0,o=i+(s=u);o>i;)r=((f=d*(f=k[--s]%v)+(a=y*f+(c=k[s]/v|0)*d)%v*v+b[o]+r)/m|0)+(a/v|0)+y*c,b[o--]=f%m;b[o]=r}return r?++n:b.splice(0,1),H(e,b,n)},M.negated=function(){var e=new K(this);return e.s=-e.s||null,e},M.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new K(e,t)).s,!i||!t)return new K(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/h,s=e.e/h,a=n.c,u=e.c;if(!o||!s){if(!a||!u)return new K(i/0);if(!a[0]||!u[0])return u[0]?e:new K(a[0]?n:0*i)}if(o=g(o),s=g(s),a=a.slice(),i=o-s){for(i>0?(s=o,r=u):(i=-i,r=a),r.reverse();i--;r.push(0));r.reverse()}for((i=a.length)-(t=u.length)<0&&(r=u,u=a,a=r,t=i),i=0;t;)i=(a[--t]=a[t]+u[t]+i)/l|0,a[t]=l===a[t]?0:a[t]%l;return i&&(a=[i].concat(a),++s),H(e,a,s)},M.precision=M.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return v(e,1,y),null==t?t=U:v(t,0,8),V(new K(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*h+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},M.shiftedBy=function(e){return v(e,-p,p),this.times("1e"+e)},M.squareRoot=M.sqrt=function(){var e,t,n,i,o,s=this,a=s.c,u=s.s,f=s.e,c=I+4,l=new K("0.5");if(1!==u||!a||!a[0])return new K(!u||u<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(u=Math.sqrt(+Z(s)))||u==1/0?(((t=b(a)).length+f)%2==0&&(t+="0"),u=Math.sqrt(+t),f=g((f+1)/2)-(f<0||f%2),n=new K(t=u==1/0?"1e"+f:(t=u.toExponential()).slice(0,t.indexOf("e")+1)+f)):n=new K(u+""),n.c[0])for((u=(f=n.e)+c)<3&&(u=0);;)if(o=n,n=l.times(o.plus(r(s,o,c,1))),b(o.c).slice(0,u)===(t=b(n.c)).slice(0,u)){if(n.e<f&&--u,"9999"!=(t=t.slice(u-3,u+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(V(n,n.e+I+2,1),e=!n.times(n).eq(s));break}if(!i&&(V(o,o.e+I+2,0),o.times(o).eq(s))){n=o;break}c+=4,u+=4,i=1}return V(n,n.e+I+1,U,e)},M.toExponential=function(e,t){return null!=e&&(v(e,0,y),e++),q(this,e,t,1)},M.toFixed=function(e,t){return null!=e&&(v(e,0,y),e=e+this.e+1),q(this,e,t)},M.toFormat=function(e,t,r){var n,i=this;if(null==r)null!=e&&t&&"object"==typeof t?(r=t,t=null):e&&"object"==typeof e?(r=e,e=t=null):r=N;else if("object"!=typeof r)throw Error(f+"Argument not an object: "+r);if(n=i.toFixed(e,t),i.c){var o,s=n.split("."),a=+r.groupSize,u=+r.secondaryGroupSize,c=r.groupSeparator||"",l=s[0],h=s[1],p=i.s<0,d=p?l.slice(1):l,_=d.length;if(u&&(o=a,a=u,u=o,_-=o),a>0&&_>0){for(o=_%a||a,l=d.substr(0,o);o<_;o+=a)l+=c+d.substr(o,a);u>0&&(l+=c+d.slice(o)),p&&(l="-"+l)}n=h?l+(r.decimalSeparator||"")+((u=+r.fractionGroupSize)?h.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):h):l}return(r.prefix||"")+n+(r.suffix||"")},M.toFraction=function(e){var t,n,i,o,s,a,u,c,l,p,_,y,g=this,m=g.c;if(null!=e&&(!(u=new K(e)).isInteger()&&(u.c||1!==u.s)||u.lt(P)))throw Error(f+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+Z(u));if(!m)return new K(g);for(t=new K(P),l=n=new K(P),i=c=new K(P),y=b(m),s=t.e=y.length-g.e-1,t.c[0]=d[(a=s%h)<0?h+a:a],e=!e||u.comparedTo(t)>0?s>0?t:l:u,a=C,C=1/0,u=new K(y),c.c[0]=0;p=r(u,t,0,1),1!=(o=n.plus(p.times(i))).comparedTo(e);)n=i,i=o,l=c.plus(p.times(o=l)),c=o,t=u.minus(p.times(o=t)),u=o;return o=r(e.minus(n),i,0,1),c=c.plus(o.times(l)),n=n.plus(o.times(i)),c.s=l.s=g.s,_=r(l,i,s*=2,U).minus(g).abs().comparedTo(r(c,n,s,U).minus(g).abs())<1?[l,i]:[c,n],C=a,_},M.toNumber=function(){return+Z(this)},M.toPrecision=function(e,t){return null!=e&&v(e,1,y),q(this,e,t,2)},M.toString=function(e){var t,r=this,i=r.s,o=r.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=T||o>=R?k(b(r.c),o):x(b(r.c),o,"0"):10===e?t=x(b((r=V(new K(r),I+o+1,U)).c),r.e,"0"):(v(e,2,j.length,"Base"),t=n(x(b(r.c),o,"0"),10,e,i,!0)),i<0&&r.c[0]&&(t="-"+t)),t},M.valueOf=M.toJSON=function(){return Z(this)},M._isBigNumber=!0,null!=t&&K.set(t),K}()).default=o.BigNumber=o,void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return s}));var n=r(0),i=r(8);
/**
 * Base64 functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */
function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=";if(!e)return"";if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),"string"==typeof e&&(e=n.b.strToByteArray(e)),64!==(t=n.b.expandAlphRange(t).join("")).length&&65!==t.length)throw new i.a(`Invalid Base64 alphabet length (${t.length}): ${t}`);for(var r,o,s,a,u,f,c,l="",h=0;h<e.length;)a=(r=e[h++])>>2,u=(3&r)<<4|(o=e[h++])>>4,f=(15&o)<<2|(s=e[h++])>>6,c=63&s,isNaN(o)?f=c=64:isNaN(s)&&(c=64),l+=t.charAt(a)+t.charAt(u)+t.charAt(f)+t.charAt(c);return l}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"A-Za-z0-9+/=",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string",o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!e)return"string"===r?"":[];if(t=t||"A-Za-z0-9+/=",64!==(t=n.b.expandAlphRange(t).join("")).length&&65!==t.length)throw new i.a(`Invalid Base64 alphabet length (${t.length}): ${t}`);var s,a,u,f,c,l,h=[],p=0;if(o){var d=new RegExp("[^"+t.replace(/[[\]\\\-^$]/g,"\\$&")+"]","g");e=e.replace(d,"")}for(;p<e.length;)s=t.indexOf(e.charAt(p++))<<2|(f=-1===(f=t.indexOf(e.charAt(p++)||"="))?64:f)>>4,a=(15&f)<<4|(c=-1===(c=t.indexOf(e.charAt(p++)||"="))?64:c)>>2,u=(3&c)<<6|(l=-1===(l=t.indexOf(e.charAt(p++)||"="))?64:l),h.push(s),64!==c&&h.push(a),64!==l&&h.push(u);return"string"===r?n.b.byteArrayToUtf8(h):h}},function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"a",(function(){return s}));var n=r(0);
/**
 * Hexadecimal functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2016
 * @license Apache-2.0
 */function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!e)return"";e instanceof ArrayBuffer&&(e=new Uint8Array(e));for(var o="",s="0x"===t||"\\x"===t,a=0;a<e.length;a++){var u=e[a].toString(16).padStart(r,"0");o+=s?t+u:u+t,n&&(o+=n),a!==e.length-1&&(a+1)%i==0&&(o+="\n")}var f=n.length+(s?0:t.length);return f?o.slice(0,-f):o}function o(e){if(!e)return"";e instanceof ArrayBuffer&&(e=new Uint8Array(e));for(var t=[],r=0;r<e.length;r++)t.push((e[r]>>>4).toString(16)),t.push((15&e[r]).toString(16));return t.join("")}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if("None"!==t){var i="Auto"===t?/[^a-f\d]|(0x)/gi:n.b.regexRep(t);e=e.replace(i,"")}for(var o=[],s=0;s<e.length;s+=r)o.push(parseInt(e.substr(s,r),16));return o}["Auto"].concat(["Space","Percent","Comma","Semi-colon","Colon","Line feed","CRLF","0x","0x with comma","\\x","None"])},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";var n=r(12),i=r.n(n),o=r(7),s={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(e,t){var r=new o.a(e.slice(t));for(;r.hasMore();){var n=r.getBytes(2);if(255!==n[0])throw new Error(`Invalid marker while parsing JPEG at pos ${r.position}: ${n}`);var i=0;switch(n[1]){case 216:case 1:break;case 217:return r.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:i=r.readInt(2,"be"),r.position+=i-2;break;case 223:r.position++;break;case 220:case 221:r.position+=2;break;case 218:i=r.readInt(2,"be"),r.position+=i-2,r.continueUntil(255);break;case 0:case 208:case 209:case 210:case 211:case 212:case 213:case 214:case 215:default:r.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(e,t){var r=new o.a(e.slice(t));r.continueUntil([33,255]),r.continueUntil([33,249]),r.moveForwardsBy(2);for(;r.hasMore();){for(r.moveForwardsBy(r.readInt(1)+1),r.moveForwardsBy(11);r.getBytes(2)!==[33,249]&&(r.moveBackwardsBy(2),r.moveForwardsBy(r.readInt(1)),r.readInt(1));)r.moveBackwardsBy(1);if(59===r.readInt(1))break;r.moveForwardsBy(1)}return r.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(e,t){var r=new o.a(e.slice(t));r.moveForwardsBy(8);var n=0,i="";for(;"IEND"!==i;)n=r.readInt(4,"be"),i=r.readString(4),r.moveForwardsBy(n+4);return r.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(e,t){var r=new o.a(e.slice(t));r.moveForwardsBy(2);var n=r.readInt(4,"le");return r.moveForwardsBy(n-6),r.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(e,t){var r=new o.a(e.slice(t));r.moveTo(4);var n=r.readInt(2,"le");r.moveForwardsBy(8+16*(n-1));var i=r.readInt(4,"le"),s=r.readInt(4,"le");return r.moveTo(s+i),r.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}],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(e,t){var r=new o.a(e.slice(t));r.moveForwardsBy(5);var n=r.readInt(4,"be");r.moveForwardsBy(n-9);var i=-11;for(;r.hasMore();){var s=r.readInt(4,"be"),a=r.readInt(1);if([8,9,18].indexOf(a)<0){r.moveBackwardsBy(1);break}if(s!==i+11){r.moveBackwardsBy(i+11+5);break}i=r.readInt(3,"be"),r.moveForwardsBy(7+i)}return r.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(e,t){var r=new o.a(e.slice(t));return r.moveTo(4),r.moveTo(r.readInt(4,"le")),r.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:null},{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(e,t){var r=new o.a(e.slice(t));return r.continueUntil([37,37,69,79,70]),r.moveForwardsBy(5),r.consumeIf(13),r.consumeIf(10),r.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(e,t){var r=new o.a(e.slice(t)),n=0;if(123!==r.readInt(1))throw new Error("Not a valid RTF file");n++;for(;n>0&&r.hasMore();)switch(r.readInt(1)){case 123:n++;break;case 125:n--;break;case 92:r.consumeIf(92),r.position++}return r.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:a},{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:a}],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(e,t){var r=new o.a(e.slice(t));r.moveTo(60);var n=r.readInt(4,"le");r.moveTo(n),r.moveForwardsBy(6);var i=r.readInt(2,"le");r.moveForwardsBy(16);var s=523===r.readInt(2,"le")?112:96;r.moveForwardsBy(s-2),r.moveForwardsBy(32);var a=r.readInt(4,"le"),u=r.readInt(4,"le");if(a>0)return r.moveTo(a+u),r.carve();r.moveForwardsBy(88),r.moveForwardsBy(40*(i-1)),r.moveForwardsBy(16);var f=r.readInt(4,"le"),c=r.readInt(4,"le");return r.moveTo(c+f),r.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(e,t){var r=new o.a(e.slice(t));r.moveForwardsBy(4);var n=1===r.readInt(1),i=1===r.readInt(1)?"le":"be";r.moveForwardsBy(n?26:34);var s=n?r.readInt(4,i):r.readInt(8,i);r.moveForwardsBy(10);var a=r.readInt(2,i),u=r.readInt(2,i);return r.moveTo(s),r.moveForwardsBy(a*u),r.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:u},{name:"MacOS Mach-O 64-bit object",extension:"dylib",mime:"application/octet-stream",description:"",signature:{0:207,1:250,2:237,3:254},extractor:u},{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:a},{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(e,t){var r=new o.a(e.slice(t));for(;r.hasMore();){if(r.moveForwardsBy(257),r.getBytes(5).join("")!==[117,115,116,97,114].join("")){r.moveBackwardsBy(262);break}r.moveBackwardsBy(138);var n=0;r.getBytes(11).forEach((function(e,t){n+=(e-48).toString()})),n=512*Math.ceil(parseInt(n,8)/512),r.moveForwardsBy(n+377)}return r.consumeWhile(0),r.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(e,t){var r=new o.a(e.slice(t));r.moveForwardsBy(3);var n=r.readInt(1);if(r.moveForwardsBy(4),r.readInt(1),r.moveForwardsBy(1),4&n){var i=r.readInt(2,"le");r.moveForwardsby(i)}8&n&&(r.continueUntil(0),r.moveForwardsBy(1));16&n&&(r.continueUntil(0),r.moveForwardsBy(1));2&n&&r.moveForwardsBy(2);return d(r),r.moveForwardsBy(8),r.carve()}},{name:"Bzip2",extension:"bz2",mime:"application/x-bzip2",description:"",signature:{0:66,1:90,2:104},extractor:function(e,t){for(var r=new o.a(e.slice(t)),n=[[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]],i=0;i<n.length&&(r.continueUntil(n[i]),r.getBytes(5).join("")!==n[i].join(""));i++)r.moveTo(0);return r.moveForwardsBy(4),r.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(e,t){var r=new o.a(e.slice(t));r.moveForwardsBy(1),32&r.readInt(1)&&r.moveForwardsBy(4);return d(r),r.moveForwardsBy(4),r.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(e,t){var r=new o.a(e.slice(t));return r.continueUntil([0,0,0,0,4,89,90]),r.moveForwardsBy(7),r.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:"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:null},{name:"Linux deb",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:null},{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(e,t){var r=new o.a(e.slice(t));r.moveTo(16);var n=r.readInt(2);r.moveTo(28);var i=r.readInt(4);return r.moveTo(n*i),r.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(e,t){var r=new o.a(e.slice(t));r.moveTo(20);var n=r.readInt(4,"le");r.moveTo(n);var i=r.readInt(4,"le");return r.moveForwardsBy(i-4),r.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(e,t){var r=new o.a(e.slice(t));r.moveTo(40);var n=r.readInt(4,"le")-44;r.moveForwardsBy(n);for(;r.hasMore()&&r.getBytes(7).join("")===[69,108,102,67,104,110,107].join("");)r.moveForwardsBy(65529);return r.consumeWhile(0),r.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:null},{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:null},{name:"Windows Prefetch (Win 10)",extension:"pf",mime:"application/x-pf",description:"",signature:{0:77,1:65,2:77,3:4,7:0},extractor:null},{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(e,t){var r=new o.a(e.slice(t)),n=0;r.continueUntil([60,112,108,105,115,116]),r.moveForwardsBy(6),n++;for(;n>0&&r.hasMore();)60===r.readInt(1)&&(r.getBytes(5).join("")===[112,108,105,115,116].join("")?n++:r.moveBackwardsBy(5),r.getBytes(7).join("")===[47,112,108,105,115,116,62].join("")?n--:r.moveBackwardsBy(7));return r.consumeIf(10),r.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(e){return e>=1&&e<=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(e){return e>=1&&e<=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(e){return 0!==e},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:null},{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 a(e,t){var r=new o.a(e.slice(t));r.continueUntil([80,75,5,6]),r.moveForwardsBy(20);var n=r.readInt(2,"le");return r.moveForwardsBy(n),r.carve()}function u(e,t){var r="207250237254",n="254237250207",i="206250237254";var s=new o.a(e.slice(t)),a=s.getBytes(4).join("");return s.moveTo(function(e,t,r){var n=28;t&&(n+=4),e.moveTo(16);var i=e.readInt(4,r);return function(e,t,r,n){for(var i=0,o=0;o<n;o++){e.moveTo(t);var s=e.readInt(4,r);25===s?(e.moveTo(t+48),i+=e.readInt(8,r),e.moveTo(t+4),t+=e.readInt(4,r)):1===s&&(e.moveTo(t+36),i+=e.readInt(4,r),e.moveTo(t+4),t+=e.readInt(4,r))}return i}(e,n,r,i)}(s,function(e){return e===r||e===n}(a),function(e){return e===i||e===r}(a)?"le":"be")),s.carve()}for(var f=new Array(288),c=0;c<f.length;c++)f[c]=c<=143?8:c<=255?9:c<=279?7:8;var l=b(f),h=b(new Array(30).fill(5)),p=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function d(e){for(var t=0;!t;){t=e.readBits(1);var r=e.readBits(2);if(0===r){e.moveForwardsBy(1);var n=e.readInt(2,"le");e.moveForwardsBy(2+n)}else if(1===r)g(e,l,h);else{if(2!==r)throw new Error(`Invalid block type while parsing DEFLATE stream at pos ${e.position}`);for(var i=e.readBits(5)+257,o=e.readBits(5)+1,s=e.readBits(4)+4,a=new Uint8Array(p.length),u=0;u<s;u++)a[p[u]]=e.readBits(3);for(var f=b(a),c=new Uint8Array(i+o),d=void 0,_=void 0,y=void 0,v=0;v<i+o;)switch(d=m(e,f)){case 16:for(_=3+e.readBits(2);_--;)c[v++]=y;break;case 17:for(_=3+e.readBits(3);_--;)c[v++]=0;y=0;break;case 18:for(_=11+e.readBits(7);_--;)c[v++]=0;y=0;break;default:c[v++]=d,y=d}g(e,b(c.subarray(0,i)),b(c.subarray(i)))}}e.bitPos>0&&e.moveForwardsBy(1)}var _=[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],y=[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 g(e,t,r){for(var n,i=0;(n=m(e,t))&&256!==n;){if(++i>1e4)throw new Error("Caught in probable infinite loop while parsing Huffman Block");n<256||(e.readBits(_[n-257]),n=m(e,r),e.readBits(y[n]))}}function b(e){for(var t=Math.max.apply(Math,e),r=Math.min.apply(Math,e),n=1<<t,i=new Uint32Array(n),o=1,s=0,a=2;o<=t;){for(var u=0;u<e.length;u++)if(e[u]===o){var f=void 0,c=void 0,l=void 0;for(f=0,c=s,l=0;l<o;l++)f=f<<1|1&c,c>>=1;for(var h=o<<16|u,p=f;p<n;p+=a)i[p]=h;s++}o++,s<<=1,a<<=1}return[i,t,r]}function m(e,t){var r=i()(t,2),n=r[0],o=r[1],s=n[e.readBits(o)&(1<<o)-1],a=s>>>16;if(a>o)throw new Error(`Invalid Huffman Code length while parsing DEFLATE block at pos ${e.position}: ${a}`);return e.moveBackwardsByBits(o-a),65535&s}r(0);
/**
 * File type functions
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 *
 */
function v(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e.length){for(var n=0;n<e.length;n++)if(w(e[n],t,r))return!0;return!1}return w(e,t,r)}function w(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;for(var n in e){var i=parseInt(n,10)+r;switch(typeof e[n]){case"number":if(t[i]!==e[n])return!1;break;case"object":if(e[n].indexOf(t[i])<0)return!1;break;case"function":if(!e[n](t[i]))return!1;break;default:throw new Error(`Unrecognised signature type at offset ${n}`)}}return!0}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Object.keys(s);if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),!(e&&e.length>1))return[];var r=[],n={};for(var i in s)t.includes(i)&&(n[i]=s[i]);for(var o in n){n[o].forEach((function(t){v(t.signature,e)&&r.push(t)}))}return r}function x(e){return function(e,t){var r=k(t);if(!r||!r.length)return!1;if("string"==typeof e)return r.reduce((function(t,r){var n=!!r.mime.startsWith(e)&&r.mime;return t||n}),!1);if(e instanceof RegExp)return r.reduce((function(t,r){var n=!!e.test(r.mime)&&r.mime;return t||n}),!1);throw new Error("Invalid type input.")}("image",e)}r.d(t,"a",(function(){return k})),r.d(t,"b",(function(){return x}))},,,function(e,t,r){var n=r(11),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,r){!function(e){var t,r,n,i=String.fromCharCode;function o(e){for(var t,r,n=[],i=0,o=e.length;i<o;)(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function s(e){if(e>=55296&&e<=57343)throw Error("Lone surrogate U+"+e.toString(16).toUpperCase()+" is not a scalar value")}function a(e,t){return i(e>>t&63|128)}function u(e){if(0==(4294967168&e))return i(e);var t="";return 0==(4294965248&e)?t=i(e>>6&31|192):0==(4294901760&e)?(s(e),t=i(e>>12&15|224),t+=a(e,6)):0==(4292870144&e)&&(t=i(e>>18&7|240),t+=a(e,12),t+=a(e,6)),t+=i(63&e|128)}function f(){if(n>=r)throw Error("Invalid byte index");var e=255&t[n];if(n++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}function c(){var e,i;if(n>r)throw Error("Invalid byte index");if(n==r)return!1;if(e=255&t[n],n++,0==(128&e))return e;if(192==(224&e)){if((i=(31&e)<<6|f())>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&e)){if((i=(15&e)<<12|f()<<6|f())>=2048)return s(i),i;throw Error("Invalid continuation byte")}if(240==(248&e)&&(i=(7&e)<<18|f()<<12|f()<<6|f())>=65536&&i<=1114111)return i;throw Error("Invalid UTF-8 detected")}e.version="3.0.0",e.encode=function(e){for(var t=o(e),r=t.length,n=-1,i="";++n<r;)i+=u(t[n]);return i},e.decode=function(e){t=o(e),r=t.length,n=0;for(var s,a=[];!1!==(s=c());)a.push(s);return function(e){for(var t,r=e.length,n=-1,o="";++n<r;)(t=e[n])>65535&&(o+=i((t-=65536)>>>10&1023|55296),t=56320|1023&t),o+=i(t);return o}(a)}}(t)},function(e,t,r){var n,i;!function(o,s){"use strict";void 0===(i="function"==typeof(n=function(){var e=function(){},t="undefined",r=typeof window!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function i(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(t){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(t,r){for(var i=0;i<n.length;i++){var o=n[i];this[o]=i<t?e:this.methodFactory(o,t,r)}this.log=this.debug}function a(e,r,n){return function(){typeof console!==t&&(s.call(this,r,n),this[e].apply(this,arguments))}}function u(n,s,u){return function(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&r?o:void 0!==console[n]?i(console,n):void 0!==console.log?i(console,"log"):e)}(n)||a.apply(this,arguments)}function f(e,r,i){var o,a=this,f="loglevel";function c(){var e;if(typeof window!==t){try{e=window.localStorage[f]}catch(e){}if(typeof e===t)try{var r=window.document.cookie,n=r.indexOf(encodeURIComponent(f)+"=");-1!==n&&(e=/^([^;]+)/.exec(r.slice(n))[1])}catch(e){}return void 0===a.levels[e]&&(e=void 0),e}}e&&(f+=":"+e),a.name=e,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=i||u,a.getLevel=function(){return o},a.setLevel=function(r,i){if("string"==typeof r&&void 0!==a.levels[r.toUpperCase()]&&(r=a.levels[r.toUpperCase()]),!("number"==typeof r&&r>=0&&r<=a.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(o=r,!1!==i&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t){try{return void(window.localStorage[f]=r)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"="+r+";"}catch(e){}}}(r),s.call(a,r,e),typeof console===t&&r<a.levels.SILENT)return"No console available for logging"},a.setDefaultLevel=function(e){c()||a.setLevel(e,!1)},a.enableAll=function(e){a.setLevel(a.levels.TRACE,e)},a.disableAll=function(e){a.setLevel(a.levels.SILENT,e)};var l=c();null==l&&(l=null==r?"WARN":r),a.setLevel(l,!1)}var c=new f,l={};c.getLogger=function(e){if("string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=l[e];return t||(t=l[e]=new f(e,c.getLevel(),c.methodFactory)),t};var h=typeof window!==t?window.log:void 0;return c.noConflict=function(){return typeof window!==t&&window.log===c&&(window.log=h),c},c.getLoggers=function(){return l},c})?n.call(t,r,t,e):n)||(e.exports=i)}()},function(e,t){var r,n,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,f=[],c=!1,l=-1;function h(){c&&u&&(c=!1,u.length?f=u.concat(f):l=-1,f.length&&p())}function p(){if(!c){var e=a(h);c=!0;for(var t=f.length;t;){for(u=f,f=[];++l<t;)u&&u[l].run();l=-1,t=f.length}u=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function _(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];f.push(new d(e,t)),1!==f.length||c||a(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=_,i.addListener=_,i.once=_,i.off=_,i.removeListener=_,i.removeAllListeners=_,i.emit=_,i.prependListener=_,i.prependOnceListener=_,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0);
/**
 * Binary functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Space",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8,i=n.b.regexRep(t);e=e.replace(i,"");for(var o=[],s=0;s<e.length;s+=r)o.push(parseInt(e.substr(s,r),2));return o}},function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(0);
/**
 * Decimal functions.
 *
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2018
 * @license Apache-2.0
 */function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Auto";t=n.b.charRep(t);var r=[],i=e.split(t);""===i[i.length-1]&&(i=i.slice(0,i.length-1));for(var o=0;o<i.length;o++)r[o]=parseInt(i[o],10);return r}},,function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{s=r(297).Buffer}catch(e){}function a(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o<i;o++){var s=e.charCodeAt(o)-48;n<<=4,n|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function u(e,t,r,n){for(var i=0,o=Math.min(e.length,r),s=t;s<o;s++){var a=e.charCodeAt(s)-48;i*=n,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"==typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=e.length-6,n=0;r>=t;r-=6)i=a(e,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=a(e,t,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,f=0,c=r;c<a;c+=n)f=u(e,c,c+n,t),this.imuln(i),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(0!==s){var l=1;for(f=u(e,c,e.length,t),c=0;c<s;c++)l*=t;this.imuln(l),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],l=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var f=1;f<n;f++){for(var c=u>>>26,l=67108863&u,h=Math.min(f,t.length-1),p=Math.max(0,f-e.length+1);p<=h;p++){var d=f-p|0;c+=(s=(i=0|e.words[d])*(o=0|t.words[p])+l)/67108864|0,l=67108863&s}r.words[f]=0|l,u=0|c}return 0!==u?r.words[f]=0|u:r.length--,r.strip()}o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],u=(16777215&(a<<i|o)).toString(16);r=0!==(o=a>>>24-i&16777215)||s!==this.length-1?f[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var h=c[e],p=l[e];r="";var d=this.clone();for(d.negative=0;!d.isZero();){var _=d.modn(p).toString(e);r=(d=d.idivn(p)).isZero()?_+r:f[h-_.length]+_+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return n(void 0!==s),this.toArrayLike(s,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,r){var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===t,f=new e(o),c=this.clone();if(u){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),f[a]=s;for(;a<o;a++)f[a]=0}else{for(a=0;a<o-i;a++)f[a]=0;for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),f[o-a-1]=s}return f},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},o.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},o.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},o.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.strip()},o.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,s=0;s<n.length;s++)o=(t=(0|r.words[s])-(0|n.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<r.length;s++)o=(t=(0|r.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<r.length&&r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this.length=Math.max(this.length,s),r!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,i,o,s=e.words,a=t.words,u=r.words,f=0,c=0|s[0],l=8191&c,h=c>>>13,p=0|s[1],d=8191&p,_=p>>>13,y=0|s[2],g=8191&y,b=y>>>13,m=0|s[3],v=8191&m,w=m>>>13,k=0|s[4],x=8191&k,E=k>>>13,S=0|s[5],A=8191&S,B=S>>>13,D=0|s[6],M=8191&D,P=D>>>13,I=0|s[7],U=8191&I,T=I>>>13,R=0|s[8],F=8191&R,C=R>>>13,O=0|s[9],z=8191&O,L=O>>>13,N=0|a[0],j=8191&N,K=N>>>13,q=0|a[1],G=8191&q,H=q>>>13,V=0|a[2],Z=8191&V,W=V>>>13,Y=0|a[3],X=8191&Y,$=Y>>>13,J=0|a[4],Q=8191&J,ee=J>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ue=8191&ae,fe=ae>>>13,ce=0|a[8],le=8191&ce,he=ce>>>13,pe=0|a[9],de=8191&pe,_e=pe>>>13;r.negative=e.negative^t.negative,r.length=19;var ye=(f+(n=Math.imul(l,j))|0)+((8191&(i=(i=Math.imul(l,K))+Math.imul(h,j)|0))<<13)|0;f=((o=Math.imul(h,K))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(d,j),i=(i=Math.imul(d,K))+Math.imul(_,j)|0,o=Math.imul(_,K);var ge=(f+(n=n+Math.imul(l,G)|0)|0)+((8191&(i=(i=i+Math.imul(l,H)|0)+Math.imul(h,G)|0))<<13)|0;f=((o=o+Math.imul(h,H)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,j),i=(i=Math.imul(g,K))+Math.imul(b,j)|0,o=Math.imul(b,K),n=n+Math.imul(d,G)|0,i=(i=i+Math.imul(d,H)|0)+Math.imul(_,G)|0,o=o+Math.imul(_,H)|0;var be=(f+(n=n+Math.imul(l,Z)|0)|0)+((8191&(i=(i=i+Math.imul(l,W)|0)+Math.imul(h,Z)|0))<<13)|0;f=((o=o+Math.imul(h,W)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(v,j),i=(i=Math.imul(v,K))+Math.imul(w,j)|0,o=Math.imul(w,K),n=n+Math.imul(g,G)|0,i=(i=i+Math.imul(g,H)|0)+Math.imul(b,G)|0,o=o+Math.imul(b,H)|0,n=n+Math.imul(d,Z)|0,i=(i=i+Math.imul(d,W)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,W)|0;var me=(f+(n=n+Math.imul(l,X)|0)|0)+((8191&(i=(i=i+Math.imul(l,$)|0)+Math.imul(h,X)|0))<<13)|0;f=((o=o+Math.imul(h,$)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(x,j),i=(i=Math.imul(x,K))+Math.imul(E,j)|0,o=Math.imul(E,K),n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,H)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,H)|0,n=n+Math.imul(g,Z)|0,i=(i=i+Math.imul(g,W)|0)+Math.imul(b,Z)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(d,X)|0,i=(i=i+Math.imul(d,$)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,$)|0;var ve=(f+(n=n+Math.imul(l,Q)|0)|0)+((8191&(i=(i=i+Math.imul(l,ee)|0)+Math.imul(h,Q)|0))<<13)|0;f=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(A,j),i=(i=Math.imul(A,K))+Math.imul(B,j)|0,o=Math.imul(B,K),n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,H)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,H)|0,n=n+Math.imul(v,Z)|0,i=(i=i+Math.imul(v,W)|0)+Math.imul(w,Z)|0,o=o+Math.imul(w,W)|0,n=n+Math.imul(g,X)|0,i=(i=i+Math.imul(g,$)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,$)|0,n=n+Math.imul(d,Q)|0,i=(i=i+Math.imul(d,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0;var we=(f+(n=n+Math.imul(l,re)|0)|0)+((8191&(i=(i=i+Math.imul(l,ne)|0)+Math.imul(h,re)|0))<<13)|0;f=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(M,j),i=(i=Math.imul(M,K))+Math.imul(P,j)|0,o=Math.imul(P,K),n=n+Math.imul(A,G)|0,i=(i=i+Math.imul(A,H)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,H)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,W)|0)+Math.imul(E,Z)|0,o=o+Math.imul(E,W)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,$)|0)+Math.imul(w,X)|0,o=o+Math.imul(w,$)|0,n=n+Math.imul(g,Q)|0,i=(i=i+Math.imul(g,ee)|0)+Math.imul(b,Q)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(d,re)|0,i=(i=i+Math.imul(d,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0;var ke=(f+(n=n+Math.imul(l,oe)|0)|0)+((8191&(i=(i=i+Math.imul(l,se)|0)+Math.imul(h,oe)|0))<<13)|0;f=((o=o+Math.imul(h,se)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(U,j),i=(i=Math.imul(U,K))+Math.imul(T,j)|0,o=Math.imul(T,K),n=n+Math.imul(M,G)|0,i=(i=i+Math.imul(M,H)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,H)|0,n=n+Math.imul(A,Z)|0,i=(i=i+Math.imul(A,W)|0)+Math.imul(B,Z)|0,o=o+Math.imul(B,W)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,$)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,$)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(g,re)|0,i=(i=i+Math.imul(g,ne)|0)+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(d,oe)|0,i=(i=i+Math.imul(d,se)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,se)|0;var xe=(f+(n=n+Math.imul(l,ue)|0)|0)+((8191&(i=(i=i+Math.imul(l,fe)|0)+Math.imul(h,ue)|0))<<13)|0;f=((o=o+Math.imul(h,fe)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(F,j),i=(i=Math.imul(F,K))+Math.imul(C,j)|0,o=Math.imul(C,K),n=n+Math.imul(U,G)|0,i=(i=i+Math.imul(U,H)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,H)|0,n=n+Math.imul(M,Z)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(P,Z)|0,o=o+Math.imul(P,W)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,$)|0)+Math.imul(B,X)|0,o=o+Math.imul(B,$)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(w,re)|0,o=o+Math.imul(w,ne)|0,n=n+Math.imul(g,oe)|0,i=(i=i+Math.imul(g,se)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,se)|0,n=n+Math.imul(d,ue)|0,i=(i=i+Math.imul(d,fe)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,fe)|0;var Ee=(f+(n=n+Math.imul(l,le)|0)|0)+((8191&(i=(i=i+Math.imul(l,he)|0)+Math.imul(h,le)|0))<<13)|0;f=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(z,j),i=(i=Math.imul(z,K))+Math.imul(L,j)|0,o=Math.imul(L,K),n=n+Math.imul(F,G)|0,i=(i=i+Math.imul(F,H)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,H)|0,n=n+Math.imul(U,Z)|0,i=(i=i+Math.imul(U,W)|0)+Math.imul(T,Z)|0,o=o+Math.imul(T,W)|0,n=n+Math.imul(M,X)|0,i=(i=i+Math.imul(M,$)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,$)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,se)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,se)|0,n=n+Math.imul(g,ue)|0,i=(i=i+Math.imul(g,fe)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,fe)|0,n=n+Math.imul(d,le)|0,i=(i=i+Math.imul(d,he)|0)+Math.imul(_,le)|0,o=o+Math.imul(_,he)|0;var Se=(f+(n=n+Math.imul(l,de)|0)|0)+((8191&(i=(i=i+Math.imul(l,_e)|0)+Math.imul(h,de)|0))<<13)|0;f=((o=o+Math.imul(h,_e)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(z,G),i=(i=Math.imul(z,H))+Math.imul(L,G)|0,o=Math.imul(L,H),n=n+Math.imul(F,Z)|0,i=(i=i+Math.imul(F,W)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,W)|0,n=n+Math.imul(U,X)|0,i=(i=i+Math.imul(U,$)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,$)|0,n=n+Math.imul(M,Q)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(B,re)|0,o=o+Math.imul(B,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,se)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,se)|0,n=n+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,fe)|0)+Math.imul(w,ue)|0,o=o+Math.imul(w,fe)|0,n=n+Math.imul(g,le)|0,i=(i=i+Math.imul(g,he)|0)+Math.imul(b,le)|0,o=o+Math.imul(b,he)|0;var Ae=(f+(n=n+Math.imul(d,de)|0)|0)+((8191&(i=(i=i+Math.imul(d,_e)|0)+Math.imul(_,de)|0))<<13)|0;f=((o=o+Math.imul(_,_e)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(z,Z),i=(i=Math.imul(z,W))+Math.imul(L,Z)|0,o=Math.imul(L,W),n=n+Math.imul(F,X)|0,i=(i=i+Math.imul(F,$)|0)+Math.imul(C,X)|0,o=o+Math.imul(C,$)|0,n=n+Math.imul(U,Q)|0,i=(i=i+Math.imul(U,ee)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,ee)|0,n=n+Math.imul(M,re)|0,i=(i=i+Math.imul(M,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,se)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,se)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,fe)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,fe)|0,n=n+Math.imul(v,le)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(w,le)|0,o=o+Math.imul(w,he)|0;var Be=(f+(n=n+Math.imul(g,de)|0)|0)+((8191&(i=(i=i+Math.imul(g,_e)|0)+Math.imul(b,de)|0))<<13)|0;f=((o=o+Math.imul(b,_e)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,n=Math.imul(z,X),i=(i=Math.imul(z,$))+Math.imul(L,X)|0,o=Math.imul(L,$),n=n+Math.imul(F,Q)|0,i=(i=i+Math.imul(F,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,ee)|0,n=n+Math.imul(U,re)|0,i=(i=i+Math.imul(U,ne)|0)+Math.imul(T,re)|0,o=o+Math.imul(T,ne)|0,n=n+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,se)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,se)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,fe)|0)+Math.imul(B,ue)|0,o=o+Math.imul(B,fe)|0,n=n+Math.imul(x,le)|0,i=(i=i+Math.imul(x,he)|0)+Math.imul(E,le)|0,o=o+Math.imul(E,he)|0;var De=(f+(n=n+Math.imul(v,de)|0)|0)+((8191&(i=(i=i+Math.imul(v,_e)|0)+Math.imul(w,de)|0))<<13)|0;f=((o=o+Math.imul(w,_e)|0)+(i>>>13)|0)+(De>>>26)|0,De&=67108863,n=Math.imul(z,Q),i=(i=Math.imul(z,ee))+Math.imul(L,Q)|0,o=Math.imul(L,ee),n=n+Math.imul(F,re)|0,i=(i=i+Math.imul(F,ne)|0)+Math.imul(C,re)|0,o=o+Math.imul(C,ne)|0,n=n+Math.imul(U,oe)|0,i=(i=i+Math.imul(U,se)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,se)|0,n=n+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,fe)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,fe)|0,n=n+Math.imul(A,le)|0,i=(i=i+Math.imul(A,he)|0)+Math.imul(B,le)|0,o=o+Math.imul(B,he)|0;var Me=(f+(n=n+Math.imul(x,de)|0)|0)+((8191&(i=(i=i+Math.imul(x,_e)|0)+Math.imul(E,de)|0))<<13)|0;f=((o=o+Math.imul(E,_e)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(z,re),i=(i=Math.imul(z,ne))+Math.imul(L,re)|0,o=Math.imul(L,ne),n=n+Math.imul(F,oe)|0,i=(i=i+Math.imul(F,se)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,se)|0,n=n+Math.imul(U,ue)|0,i=(i=i+Math.imul(U,fe)|0)+Math.imul(T,ue)|0,o=o+Math.imul(T,fe)|0,n=n+Math.imul(M,le)|0,i=(i=i+Math.imul(M,he)|0)+Math.imul(P,le)|0,o=o+Math.imul(P,he)|0;var Pe=(f+(n=n+Math.imul(A,de)|0)|0)+((8191&(i=(i=i+Math.imul(A,_e)|0)+Math.imul(B,de)|0))<<13)|0;f=((o=o+Math.imul(B,_e)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(z,oe),i=(i=Math.imul(z,se))+Math.imul(L,oe)|0,o=Math.imul(L,se),n=n+Math.imul(F,ue)|0,i=(i=i+Math.imul(F,fe)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,fe)|0,n=n+Math.imul(U,le)|0,i=(i=i+Math.imul(U,he)|0)+Math.imul(T,le)|0,o=o+Math.imul(T,he)|0;var Ie=(f+(n=n+Math.imul(M,de)|0)|0)+((8191&(i=(i=i+Math.imul(M,_e)|0)+Math.imul(P,de)|0))<<13)|0;f=((o=o+Math.imul(P,_e)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(z,ue),i=(i=Math.imul(z,fe))+Math.imul(L,ue)|0,o=Math.imul(L,fe),n=n+Math.imul(F,le)|0,i=(i=i+Math.imul(F,he)|0)+Math.imul(C,le)|0,o=o+Math.imul(C,he)|0;var Ue=(f+(n=n+Math.imul(U,de)|0)|0)+((8191&(i=(i=i+Math.imul(U,_e)|0)+Math.imul(T,de)|0))<<13)|0;f=((o=o+Math.imul(T,_e)|0)+(i>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,n=Math.imul(z,le),i=(i=Math.imul(z,he))+Math.imul(L,le)|0,o=Math.imul(L,he);var Te=(f+(n=n+Math.imul(F,de)|0)|0)+((8191&(i=(i=i+Math.imul(F,_e)|0)+Math.imul(C,de)|0))<<13)|0;f=((o=o+Math.imul(C,_e)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863;var Re=(f+(n=Math.imul(z,de))|0)+((8191&(i=(i=Math.imul(z,_e))+Math.imul(L,de)|0))<<13)|0;return f=((o=Math.imul(L,_e))+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,u[0]=ye,u[1]=ge,u[2]=be,u[3]=me,u[4]=ve,u[5]=we,u[6]=ke,u[7]=xe,u[8]=Ee,u[9]=Se,u[10]=Ae,u[11]=Be,u[12]=De,u[13]=Me,u[14]=Pe,u[15]=Ie,u[16]=Ue,u[17]=Te,u[18]=Re,0!==f&&(u[19]=f,r.length++),r};function d(e,t,r){return(new _).mulp(e,t,r)}function _(e,t){this.x=e,this.y=t}Math.imul||(p=h),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var s=i;i=0;for(var a=67108863&n,u=Math.min(o,t.length-1),f=Math.max(0,o-e.length+1);f<=u;f++){var c=o-f,l=(0|e.words[c])*(0|t.words[f]),h=67108863&l;a=67108863&(h=h+a|0),i+=(s=(s=s+(l/67108864|0)|0)+(h>>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):d(this,e,t)},_.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},_.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},_.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s<o;s++)n[s]=t[e[s]],i[s]=r[e[s]]},_.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var s=1;s<i;s<<=1)for(var a=s<<1,u=Math.cos(2*Math.PI/a),f=Math.sin(2*Math.PI/a),c=0;c<i;c+=a)for(var l=u,h=f,p=0;p<s;p++){var d=r[c+p],_=n[c+p],y=r[c+p+s],g=n[c+p+s],b=l*y-h*g;g=l*g+h*y,y=b,r[c+p]=d+y,n[c+p]=_+g,r[c+p+s]=d-y,n[c+p+s]=_-g,p!==a&&(b=u*l-f*h,h=u*h+f*l,l=b)}},_.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},_.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},_.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},_.prototype.convert13b=function(e,t,r,i){for(var o=0,s=0;s<t;s++)o+=0|e[s],r[2*s]=8191&o,o>>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s<i;++s)r[s]=0;n(0===o),n(0==(-8192&o))},_.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},_.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),s=new Array(n),a=new Array(n),u=new Array(n),f=new Array(n),c=new Array(n),l=new Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,s,n),this.convert13b(t.words,t.length,f,n),this.transform(s,o,a,u,n,i),this.transform(f,o,c,l,n,i);for(var p=0;p<n;p++){var d=a[p]*c[p]-u[p]*l[p];u[p]=a[p]*l[p]+u[p]*c[p],a[p]=d}return this.conjugate(a,u,n),this.transform(a,u,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),d(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){n("number"==typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var i=(0|this.words[r])*e,o=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=o>>>26,this.words[r]=67108863&o}return 0!==t&&(this.words[r]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},o.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,u=(0|this.words[t])-a<<r;this.words[t]=u|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},o.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,u=r;if(i-=s,i=Math.max(0,i),u){for(var f=0;f<s;f++)u.words[f]=this.words[f];u.length=s}if(0===s);else if(this.length>s)for(this.length-=s,f=0;f<this.length;f++)this.words[f]=this.words[f+s];else this.words[0]=0,this.length=1;var c=0;for(f=this.length-1;f>=0&&(0!==c||f>=i);f--){var l=0|this.words[f];this.words[f]=c<<26-o|l>>>o,c=l&a}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r)&&!!(this.words[r]&i)},o.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,r){var i,o,s=e.length+r;this._expand(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var u=(0|e.words[i])*t;a=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.strip();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,s=0|i.words[i.length-1];0!==(r=26-this._countBits(s))&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var a,u=n.length-i.length;if("mod"!==t){(a=new o(null)).length=u+1,a.words=new Array(a.length);for(var f=0;f<a.length;f++)a.words[f]=0}var c=n.clone()._ishlnsubmul(i,1,u);0===c.negative&&(n=c,a&&(a.words[u]=1));for(var l=u-1;l>=0;l--){var h=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(h=Math.min(h/s|0,67108863),n._ishlnsubmul(i,h,l);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);a&&(a.words[l]=h)}return a&&a.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,s,a},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,i=this.length-1;i>=0;i--)r=(t*r+(0|this.words[i]))%e;return r},o.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var i=(0|this.words[r])+67108864*t;this.words[r]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),f=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++f;for(var c=r.clone(),l=t.clone();!t.isZero();){for(var h=0,p=1;0==(t.words[0]&p)&&h<26;++h,p<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(c),s.isub(l)),i.iushrn(1),s.iushrn(1);for(var d=0,_=1;0==(r.words[0]&_)&&d<26;++d,_<<=1);if(d>0)for(r.iushrn(d);d-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(c),u.isub(l)),a.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),s.isub(u)):(r.isub(t),a.isub(i),u.isub(s))}return{a:a,b:u,gcd:r.iushln(f)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,s=new o(1),a=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var f=0,c=1;0==(t.words[0]&c)&&f<26;++f,c<<=1);if(f>0)for(t.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var l=0,h=1;0==(r.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(r.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(i=0===t.cmpn(1)?s:a).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new k(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var y={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function m(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function v(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function x(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},i(b,g),b.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(m,g),i(v,g),i(w,g),w.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(y[e])return y[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new m;else if("p192"===e)t=new v;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return y[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,f).cmp(u);)c.redIAdd(u);for(var l=this.pow(c,i),h=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),d=s;0!==p.cmp(a);){for(var _=p,y=0;0!==_.cmp(a);y++)_=_.redSqr();n(y<d);var g=this.pow(l,new o(1).iushln(d-y-1));h=h.redMul(g),l=g.redSqr(),p=p.redMul(l),d=y}return h},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new o(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],s=0,a=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var f=t.words[n],c=u-1;c>=0;c--){var l=f>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==l||0!==s?(s<<=1,s|=l,(4===++a||0===n&&0===c)&&(i=this.mul(i,r[s]),a=0,s=0)):a=0}u=26}return i},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new x(e)},i(x,k),x.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},x.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},x.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},x.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(99)(e))},,,,function(e,t,r){(function(){var e,n,i,o,s,a;for(t.const=r(452),s=0,a=(i=[r(706),r(1284)]).length;s<a;s++)for(e in n=i[s])o=n[e],t[e]=o}).call(this)},,function(e,t){(function(){var e,r,n;for(r in t.openpgp={public_key_algorithms:{RSA:1,RSA_ENCRYPT_ONLY:2,RSA_SIGN_ONLY:3,ELGAMAL:16,DSA:17,ECDH:18,ECDSA:19,ELGAMAL_SIGN_AND_ENCRYPT:20,EDDSA:22},symmetric_key_algorithms:{CAST5:3,AES128:7,AES192:8,AES256:9},hash_algorithms:{MD5:1,SHA1:2,RIPEMD160:3,SHA256:8,SHA384:9,SHA512:10,SHA224:11},sig_subpacket:{creation_time:2,expiration_time:3,exportable_certificate:4,trust_signature:5,regular_expression:6,revocable:7,key_expiration_time:9,preferred_symmetric_algorithms:11,revocation_key:12,issuer:16,notation_data:20,preferred_hash_algorithms:21,preferred_compression_algorithms:22,key_server_preferences:23,preferred_key_server:24,primary_user_id:25,policy_uri:26,key_flags:27,signers_user_id:28,reason_for_revocation:29,features:30,signature_target:31,embedded_signature:32,issuer_fingerprint:33,experimental_low:101,experimental_high:110},sig_types:{binary_doc:0,canonical_text:1,issuer:16,persona:17,casual:18,positive:19,subkey_binding:24,primary_binding:25,direct:31,key_revocation:32,subkey_revocation:40,certificate_revocation:48},message_types:{generic:0,public_key:4,private_key:5,signature:8,clearsign:9},s2k:{plain:0,salt:1,salt_iter:3,gnu:101,gnu_dummy:1001},s2k_convention:{none:0,checksum:255,sha1:254},ecdh:{param_bytes:3,version:1},packet_tags:{PKESK:1,signature:2,one_pass_sig:4,secret_key:5,public_key:6,secret_subkey:7,compressed:8,literal:11,public_subkey:14,userid:13,user_attribute:17,SEIPD:18,MDC:19},literal_formats:{binary:98,text:116,utf8:117},versions:{PKESK:3,SEIPD:1,one_pass_sig:3,keymaterial:{V4:4},signature:{V2:2,V3:3,V4:4}},signatures:{key:153,userid:180,user_attribute:209},key_flags:{certify_keys:1,sign_data:2,encrypt_comm:4,encrypt_storage:8,private_split:16,auth:32,shared:128},features:{modification_detection:1},key_server_preferences:{no_modify:128},compression:{none:0,zip:1,zlib:2,bzip:3}},t.kb={key_encryption:{none:0,triplesec_v1:1,triplesec_v2:2,triplesec_v3:3},packet_tags:{p3skb:513,signature:514,encryption:515},public_key_algorithms:{NACL_EDDSA:32,NACL_DH:33},versions:{V1:1},padding:{EMSA_PCKS1_v1_5:3,RSASSA_PSS:4},key_defaults:{primary:{expire_in:0,nbits:{RSA:4096,ECDSA:384,DSA:2048}},sub:{expire_in:252288e3,nbits:{RSA:2048,ECDH:256,ECDSA:256,DSA:2048,ELGAMAL:2048}}},kid:{version:1,trailer:10,algo:8,len:32}},t.ops={encrypt:1,decrypt:2,verify:4,sign:8},t.header={version:"Keybase OpenPGP",comment:"https://keybase.io/crypto"},e={default_key_expire_in:126144e3})n=e[r],t[r]=n}).call(this)},,function(e,t){function r(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=r=function(e){return typeof e}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(t)}e.exports=r},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(t,n)}e.exports=r},function(e,t,r){"use strict";t.byteLength=function(e){var t=f(e),r=t[0],n=t[1];return 3*(r+n)/4-n},t.toByteArray=function(e){for(var t,r=f(e),n=r[0],s=r[1],a=new o(function(e,t,r){return 3*(t+r)/4-r}(0,n,s)),u=0,c=s>0?n-4:n,l=0;l<c;l+=4)t=i[e.charCodeAt(l)]<<18|i[e.charCodeAt(l+1)]<<12|i[e.charCodeAt(l+2)]<<6|i[e.charCodeAt(l+3)],a[u++]=t>>16&255,a[u++]=t>>8&255,a[u++]=255&t;2===s&&(t=i[e.charCodeAt(l)]<<2|i[e.charCodeAt(l+1)]>>4,a[u++]=255&t);1===s&&(t=i[e.charCodeAt(l)]<<10|i[e.charCodeAt(l+1)]<<4|i[e.charCodeAt(l+2)]>>2,a[u++]=t>>8&255,a[u++]=255&t);return a},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=0,a=r-i;s<a;s+=16383)o.push(c(e,s,s+16383>a?a:s+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a<u;++a)n[a]=s[a],i[s.charCodeAt(a)]=a;function f(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,s=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,c=-7,l=r?i-1:0,h=r?-1:1,p=e[t+l];for(l+=h,o=p&(1<<-c)-1,p>>=-c,c+=a;c>0;o=256*o+e[t+l],l+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+l],l+=h,c-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,u,f=8*o-i-1,c=(1<<f)-1,l=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,_=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+l>=1?h/u:h*Math.pow(2,1-l))*u>=2&&(s++,u/=2),s+l>=c?(a=0,s=c):s+l>=1?(a=(t*u-1)*Math.pow(2,i),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;e[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;e[r+p]=255&s,p+=d,s/=256,f-=8);e[r+p-d]|=128*_}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function u(e,t,r,n){var i=t&&t.prototype instanceof _?t:_,o=Object.create(i.prototype),s=new B(n||[]);return o._invoke=function(e,t,r){var n=c;return function(i,o){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return M()}for(r.method=i,r.arg=o;;){var s=r.delegate;if(s){var a=E(s,r);if(a){if(a===d)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===c)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=f(e,t,r);if("normal"===u.type){if(n=r.done?p:l,u.arg===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=p,r.method="throw",r.arg=u.arg)}}}(e,r,s),o}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var c="suspendedStart",l="suspendedYield",h="executing",p="completed",d={};function _(){}function y(){}function g(){}var b={};b[o]=function(){return this};var m=Object.getPrototypeOf,v=m&&m(m(D([])));v&&v!==r&&n.call(v,o)&&(b=v);var w=g.prototype=_.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function x(e){var t;this._invoke=function(r,i){function o(){return new Promise((function(t,o){!function t(r,i,o,s){var a=f(e[r],e,i);if("throw"!==a.type){var u=a.arg,c=u.value;return c&&"object"==typeof c&&n.call(c,"__await")?Promise.resolve(c.__await).then((function(e){t("next",e,o,s)}),(function(e){t("throw",e,o,s)})):Promise.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return t("throw",e,o,s)}))}s(a.arg)}(r,i,t,o)}))}return t=t?t.then(o,o):o()}}function E(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=f(n,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function B(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function D(e){if(e){var r=e[o];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,s=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return s.next=s}}return{next:M}}function M(){return{value:t,done:!0}}return y.prototype=w.constructor=g,g.constructor=y,g[a]=y.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},k(x.prototype),x.prototype[s]=function(){return this},e.AsyncIterator=x,e.async=function(t,r,n,i){var o=new x(u(t,r,n,i));return e.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},k(w),w[a]="Generator",w[o]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=D,B.prototype={constructor:B,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(A),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function i(n,i){return a.type="throw",a.arg=e,r.next=n,i&&(r.method="next",r.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var u=n.call(s,"catchLoc"),f=n.call(s,"finallyLoc");if(u&&f){if(this.prev<s.catchLoc)return i(s.catchLoc,!0);if(this.prev<s.finallyLoc)return i(s.finallyLoc)}else if(u){if(this.prev<s.catchLoc)return i(s.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return i(s.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=e,s.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;A(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:D(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var r=[],n=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(n=(s=a.next()).done)&&(r.push(s.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}return r}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,r){"use strict";var n=r(63),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=r(56);o.inherits=r(17);var s=r(100),a=r(81);o.inherits(l,s);for(var u=i(a.prototype),f=0;f<u.length;f++){var c=u[f];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||n.nextTick(p,this)}function p(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),l.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=t,i=r(30),o=r(48),s=r(185);n.assert=o,n.toArray=s.toArray,n.zero2=s.zero2,n.toHex=s.toHex,n.encode=s.encode,n.getNAF=function(e,t){for(var r=[],n=1<<t+1,i=e.clone();i.cmpn(1)>=0;){var o;if(i.isOdd()){var s=i.andln(n-1);o=s>(n>>1)-1?(n>>1)-s:s,i.isubn(o)}else o=0;r.push(o);for(var a=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u<a;u++)r.push(0);i.iushrn(a)}return r},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var o,s,a,u=e.andln(3)+n&3,f=t.andln(3)+i&3;if(3===u&&(u=-1),3===f&&(f=-1),0==(1&u))o=0;else o=3!==(a=e.andln(7)+n&7)&&5!==a||2!==f?u:-u;if(r[0].push(o),0==(1&f))s=0;else s=3!==(a=t.andln(7)+i&7)&&5!==a||2!==u?f:-f;r[1].push(s),2*n===o+1&&(n=1-n),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,r){(function(){var e,n,i,o,s,a;for(s=0,a=(i=[r(156).util,r(354),r(1302)]).length;s<a;s++)for(e in n=i[s])o=n[e],t[e]=o}).call(this)},,,,function(e,t,r){"use strict";var n=r(48),i=r(17);function o(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function s(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)r.push(parseInt(e[i]+e[i+1],16))}else for(var n=0,i=0;i<e.length;i++){var s=e.charCodeAt(i);s<128?r[n++]=s:s<2048?(r[n++]=s>>6|192,r[n++]=63&s|128):o(e,i)?(s=65536+((1023&s)<<10)+(1023&e.charCodeAt(++i)),r[n++]=s>>18|240,r[n++]=s>>12&63|128,r[n++]=s>>6&63|128,r[n++]=63&s|128):(r[n++]=s>>12|224,r[n++]=s>>6&63|128,r[n++]=63&s|128)}else for(i=0;i<e.length;i++)r[i]=0|e[i];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=a(e[r].toString(16));return t},t.htonl=s,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=s(i)),r+=u(i.toString(16))}return r},t.zero2=a,t.zero8=u,t.join32=function(e,t,r,i){var o=r-t;n(o%4==0);for(var s=new Array(o/4),a=0,u=t;a<s.length;a++,u+=4){var f;f="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],s[a]=f>>>0}return s},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},t.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,s=(o<n?1:0)+r+i;e[t]=s>>>0,e[t+1]=o},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,i,o,s,a){var u=0,f=t;return u+=(f=f+n>>>0)<t?1:0,u+=(f=f+o>>>0)<o?1:0,e+r+i+s+(u+=(f=f+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,i,o,s,a){return t+n+o+a>>>0},t.sum64_5_hi=function(e,t,r,n,i,o,s,a,u,f){var c=0,l=t;return c+=(l=l+n>>>0)<t?1:0,c+=(l=l+o>>>0)<o?1:0,c+=(l=l+a>>>0)<a?1:0,e+r+i+s+u+(c+=(l=l+f>>>0)<f?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,i,o,s,a,u,f){return t+n+o+a+f>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},,function(e,t,r){(function(e){function r(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===r(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===r(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===r(e)},t.isError=function(e){return"[object Error]"===r(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,r(11).Buffer)},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.promisify=i;var n="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__";function i(e){if("function"!=typeof e)throw new TypeError("Argument to promisify must be a function");var t=e[n],r=i.Promise||Promise;if("function"!=typeof r)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var n=this,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return new r((function(r,i){o.push((function(e){if(e)return i(e);for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];if(1===o.length||!t)return r(o[0]);var a={};o.forEach((function(e,r){var n=t[r];n&&(a[n]=e)})),r(a)})),e.call.apply(e,[n].concat(o))}))}}i.argumentNames=n,i.Promise=void 0},,function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f;for(u=0,f=(o=[r(705),r(1323),r(474),r(1324),r(357),r(733),r(459)]).length;u<f;u++)for(n in i=o[u])a=i[n],t[n]=a;t.util=s=r(50),t.ASP=s.ASP,t.rand=r(94),t.const=r(36),t.processor=r(385),t.armor=r(201),t.keyring=r(733),t.parser=r(461),t.Buffer=e,t.triplesec=r(82),t.hash=r(95),t.ecc=r(1325),t.nacl=r(471),t.kb=r(734),t.ukm=r(1327),t.asym=r(241),t.bn=r(115)}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){var n=r(21).Buffer,i=r(68).Transform,o=r(86).StringDecoder;function s(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}r(17)(s,i),s.prototype.update=function(e,t,r){"string"==typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=s},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c,l=[].slice;c=r(64),n=r(34).const,t.BaseError=e=function(e,t){return"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.message=e||"Error"},c.inherits(e,Error),e.prototype.name="BaseError",f=function(e){return e[0].toUpperCase()+e.slice(1).toLowerCase()},i=function(e){var t;return function(){var r,n,i,o;for(o=[],r=0,n=(i=e.split(/_/)).length;r<n;r++)t=i[r],o.push(f(t));return o}().join("")},a=function(t,r,n){var i;return i=function(t){return e.call(this,t||n,this.constructor),this.istack=[],this.code=r,this},c.inherits(i,e),i.prototype.name=t,i.prototype.inspect=function(){return"["+t+": "+this.message+" (code "+this.code+")]"},i},o=function(e,t){return t[n.trace]=e[n.trace],t},t.make_errors=function(e){var t,r,n,o,s,u;for(n in s={msg:{},name:{},code:{}},e.OK="Success",r=100,e)o=e[n],"OK"!==n?(u=r++,s[t=i(n)+"Error"]=a(t,u,o)):u=0,s[n]=u,s.msg[n]=s.msg[u]=o,s.name[n]=s.name[u]=n,s.code[n]=u;return s},s=function(e,t){if(null!=t)return null==e.istack&&(e.istack=[]),e.istack.push(t)},t.make_esc=u=function(e,t){var r;return null==t&&(t=null!=(r=u.caller)?r.name:void 0),function(r){return o(r,(function(){var n,i;return i=arguments[0],n=2<=arguments.length?l.call(arguments,1):[],null==i?r.apply(null,n):e.__esc?void 0:(e.__esc=!0,s(i,null!=t?t:"unnamed error"),e(i))}))}},t.EscOk=function(){function e(e,t){this.gcb=e,this.where=t}return e.prototype.bailout=function(){var e;if(this.gcb)return e=this.gcb,this.gcb=null,e(!1)},e.prototype.check_ok=function(e){return o(e,(t=this,function(){var r,n;return n=arguments[0],r=2<=arguments.length?l.call(arguments,1):[],n?e.apply(null,r):t.bailout()}));var t},e.prototype.check_err=function(e){return o(e,(t=this,function(){var r,n;return n=arguments[0],r=2<=arguments.length?l.call(arguments,1):[],null!=n?(s(n,t.where),t.bailout()):e.apply(null,r)}));var t},e.prototype.check_non_null=function(e){return o(e,(t=this,function(){var r;return null==(r=1<=arguments.length?l.call(arguments,0):[])[0]?t.bailout():e.apply(null,r)}));var t},e}(),t.EscErr=function(){function e(e,t){this.gcb=e,this.where=t}return e.prototype.finish=function(e){var t;if(this.gcb)return t=this.gcb,this.gcb=null,t(e)},e.prototype.check_ok=function(e,t,r){return null==t&&(t=Error),null==r&&(r=null),o(e,(function(){var n,i,o;return o=arguments[0],n=2<=arguments.length?l.call(arguments,1):[],o?e.apply(null,n):(i=new t(r),s(i,this.where),this.finish(i))}))},e.prototype.check_err=function(e){return o(e,(function(){var t,r;return r=arguments[0],t=2<=arguments.length?l.call(arguments,1):[],null!=r?(s(r,this.where),this.finish(r)):e.apply(null,t)}))},e}(),t.Canceler=function(){function e(e){this.klass=null!=e?e:Error,this._canceled=!1}return e.prototype.is_canceled=function(){return this._canceled},e.prototype.is_ok=function(){return!this._canceled},e.prototype.cancel=function(){return this._canceled=!0},e.prototype.err=function(){return this._canceled?new this.klass("Aborted"):null},e}(),t.chain=function(e,t){return function(){var r;return r=1<=arguments.length?l.call(arguments,0):[],t((function(){return e.apply(null,r)}))}},t.chain_err=function(e,t){return function(){var r;return r=1<=arguments.length?l.call(arguments,0):[],t((function(){var t;return t=1<=arguments.length?l.call(arguments,0):[],e.apply(null,null!=t[0]&&null==r[0]?t:r)}))}}}).call(this)},function(e,t,r){"use strict";(function(t){void 0===t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,r,n,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,r)}));case 3:return t.nextTick((function(){e.call(null,r,n)}));case 4:return t.nextTick((function(){e.call(null,r,n,i)}));default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return t.nextTick((function(){e.apply(null,o)}))}}}:e.exports=t}).call(this,r(25))},function(e,t,r){(function(e){var n=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++)r[t[n]]=Object.getOwnPropertyDescriptor(e,t[n]);return r},i=/%[sdj%]/g;t.format=function(e){if(!g(e)){for(var t=[],r=0;r<arguments.length;r++)t.push(a(arguments[r]));return t.join(" ")}r=1;for(var n=arguments,o=n.length,s=String(e).replace(i,(function(e){if("%%"===e)return"%";if(r>=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}})),u=n[r];r<o;u=n[++r])_(u)||!v(u)?s+=" "+u:s+=" "+a(u);return s},t.deprecate=function(r,n){if(void 0!==e&&!0===e.noDeprecation)return r;if(void 0===e)return function(){return t.deprecate(r,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(e.throwDeprecation)throw new Error(n);e.traceDeprecation?console.trace(n):console.error(n),i=!0}return r.apply(this,arguments)}};var o,s={};function a(e,r){var n={seen:[],stylize:f};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),d(r)?n.showHidden=r:r&&t._extend(n,r),b(n.showHidden)&&(n.showHidden=!1),b(n.depth)&&(n.depth=2),b(n.colors)&&(n.colors=!1),b(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),c(n,e,n.depth)}function u(e,t){var r=a.styles[t];return r?"["+a.colors[r][0]+"m"+e+"["+a.colors[r][1]+"m":e}function f(e,t){return e}function c(e,r,n){if(e.customInspect&&r&&x(r.inspect)&&r.inspect!==t.inspect&&(!r.constructor||r.constructor.prototype!==r)){var i=r.inspect(n,e);return g(i)||(i=c(e,i,n)),i}var o=function(e,t){if(b(t))return e.stylize("undefined","undefined");if(g(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(y(t))return e.stylize(""+t,"number");if(d(t))return e.stylize(""+t,"boolean");if(_(t))return e.stylize("null","null")}(e,r);if(o)return o;var s=Object.keys(r),a=function(e){var t={};return e.forEach((function(e,r){t[e]=!0})),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(r)),k(r)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return l(r);if(0===s.length){if(x(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(m(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(w(r))return e.stylize(Date.prototype.toString.call(r),"date");if(k(r))return l(r)}var f,v="",E=!1,S=["{","}"];(p(r)&&(E=!0,S=["[","]"]),x(r))&&(v=" [Function"+(r.name?": "+r.name:"")+"]");return m(r)&&(v=" "+RegExp.prototype.toString.call(r)),w(r)&&(v=" "+Date.prototype.toUTCString.call(r)),k(r)&&(v=" "+l(r)),0!==s.length||E&&0!=r.length?n<0?m(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special"):(e.seen.push(r),f=E?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s<a;++s)D(t,String(s))?o.push(h(e,t,r,n,String(s),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(e,t,r,n,i,!0))})),o}(e,r,n,a,s):s.map((function(t){return h(e,r,n,a,t,E)})),e.seen.pop(),function(e,t,r){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(f,v,S)):S[0]+v+S[1]}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),D(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=_(r)?c(e,u.value,null):c(e,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return"   "+e})).join("\n")):a=e.stylize("[Circular]","special")),b(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function p(e){return Array.isArray(e)}function d(e){return"boolean"==typeof e}function _(e){return null===e}function y(e){return"number"==typeof e}function g(e){return"string"==typeof e}function b(e){return void 0===e}function m(e){return v(e)&&"[object RegExp]"===E(e)}function v(e){return"object"==typeof e&&null!==e}function w(e){return v(e)&&"[object Date]"===E(e)}function k(e){return v(e)&&("[object Error]"===E(e)||e instanceof Error)}function x(e){return"function"==typeof e}function E(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(r){if(b(o)&&(o=e.env.NODE_DEBUG||""),r=r.toUpperCase(),!s[r])if(new RegExp("\\b"+r+"\\b","i").test(o)){var n=e.pid;s[r]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",r,n,e)}}else s[r]=function(){};return s[r]},t.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=p,t.isBoolean=d,t.isNull=_,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=g,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=b,t.isRegExp=m,t.isObject=v,t.isDate=w,t.isError=k,t.isFunction=x,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=r(217);var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),A[e.getMonth()],t].join(" ")}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",B(),t.format.apply(t,arguments))},t.inherits=r(218),t._extend=function(e,t){if(!t||!v(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e};var M="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var r=new Error("Promise was rejected with a falsy value");r.reason=e,e=r}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(M&&e[M]){var t;if("function"!=typeof(t=e[M]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,r,n=new Promise((function(e,n){t=e,r=n})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,n){e?r(e):t(n)}));try{e.apply(this,i)}catch(e){r(e)}return n}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),M&&Object.defineProperty(t,M,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,n(e))},t.promisify.custom=M,t.callbackify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');function r(){for(var r=[],n=0;n<arguments.length;n++)r.push(arguments[n]);var i=r.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var o=this,s=function(){return i.apply(o,arguments)};t.apply(this,r).then((function(t){e.nextTick(s,null,t)}),(function(t){e.nextTick(P,t,s)}))}return Object.setPrototypeOf(r,Object.getPrototypeOf(t)),Object.defineProperties(r,n(t)),r}}).call(this,r(25))},,,,function(e,t,r){e.exports=i;var n=r(74).EventEmitter;function i(){n.call(this)}r(17)(i,n),i.Readable=r(80),i.Writable=r(152),i.Duplex=r(153),i.Transform=r(154),i.PassThrough=r(155),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",u));var s=!1;function a(){s||(s=!0,e.end())}function u(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function f(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",u),r.removeListener("error",f),e.removeListener("error",f),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",f),e.on("error",f),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},function(e,t,r){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=r(73),t.createHash=t.Hash=r(85),t.createHmac=t.Hmac=r(169);var n=r(279),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return o};var s=r(172);t.pbkdf2=s.pbkdf2,t.pbkdf2Sync=s.pbkdf2Sync;var a=r(281);t.Cipher=a.Cipher,t.createCipher=a.createCipher,t.Cipheriv=a.Cipheriv,t.createCipheriv=a.createCipheriv,t.Decipher=a.Decipher,t.createDecipher=a.createDecipher,t.Decipheriv=a.Decipheriv,t.createDecipheriv=a.createDecipheriv,t.getCiphers=a.getCiphers,t.listCiphers=a.listCiphers;var u=r(296);t.DiffieHellmanGroup=u.DiffieHellmanGroup,t.createDiffieHellmanGroup=u.createDiffieHellmanGroup,t.getDiffieHellman=u.getDiffieHellman,t.createDiffieHellman=u.createDiffieHellman,t.DiffieHellman=u.DiffieHellman;var f=r(301);t.createSign=f.createSign,t.Sign=f.Sign,t.createVerify=f.createVerify,t.Verify=f.Verify,t.createECDH=r(335);var c=r(336);t.publicEncrypt=c.publicEncrypt,t.privateEncrypt=c.privateEncrypt,t.publicDecrypt=c.publicDecrypt,t.privateDecrypt=c.privateDecrypt;var l=r(339);t.randomFill=l.randomFill,t.randomFillSync=l.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},,,,function(e,t,r){"use strict";(function(t,n){var i=65536,o=4294967295;var s=r(21).Buffer,a=t.crypto||t.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>o)throw new RangeError("requested too many random bytes");var r=s.allocUnsafe(e);if(e>0)if(e>i)for(var u=0;u<e;u+=i)a.getRandomValues(r.slice(u,u+i));else a.getRandomValues(r);if("function"==typeof t)return n.nextTick((function(){t(null,r)}));return r}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,r(26),r(25))},function(e,t,r){"use strict";var n,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};n=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var u=10;function f(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function c(e,t,r,n){var i,o,s,a;if("function"!=typeof r)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof r);if(void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=f(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,a=u,console&&console.warn&&console.warn(a)}return e}function l(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,o(this.listener,this.target,e))}function h(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function p(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(i):_(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function _(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),a.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return f(this)},a.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var f=u.length,c=_(u,f);for(r=0;r<f;++r)o(c[r],this,t)}return!0},a.prototype.addListener=function(e,t){return c(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return c(this,e,t,!0)},a.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.on(e,h(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.prependListener(e,h(this,e,t)),this},a.prototype.removeListener=function(e,t){var r,n,i,o,s;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,s||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},a.prototype.listenerCount=d,a.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){var n=r(21).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,s=this._len,a=0;a<o;){for(var u=s%i,f=Math.min(o-a,i-u),c=0;c<f;c++)r[u+c]=e[a+c];a+=f,(s+=f)%i==0&&this._update(r)}return this._len+=o,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){(function(e){(function(){var n,i,o,s,a;a=r(114),i=function(e){var t,r,n,i;for(r=new Uint8Array(e.length),t=n=0,i=e.length;0<=i?n<i:n>i;t=0<=i?++n:--n)r[t]=e.readUInt8(t);return r},s=function(t){var r,n,i,o;for(n=e.alloc(t.length),r=i=0,o=t.length;0<=o?i<o:i>o;r=0<=o?++i:--i)n.writeUInt8(t[r],r);return n},o=function(e){return e>>>24&255|(e>>>16&255)<<8|(e>>>8&255)<<16|(255&e)<<24},t.WordArray=n=function(){function t(e,t){this.words=e||[],this.sigBytes=null!=t?t:4*this.words.length}return t.prototype.concat=function(e){var t,r,n,i,o;if(i=e.words,n=e.sigBytes,this.clamp(),this.sigBytes%4)for(t=o=0;0<=n?o<n:o>n;t=0<=n?++o:--o)r=i[t>>>2]>>>24-t%4*8&255,this.words[this.sigBytes+t>>>2]|=r<<24-(this.sigBytes+t)%4*8;else this.words=this.words.concat(i);return this.sigBytes+=n,this},t.prototype.clamp=function(){return this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this},t.prototype.clone=function(){return new t(this.words.slice(0),this.sigBytes)},t.prototype.to_buffer=function(){var t,r,n,i,o,s,u;for(r=e.alloc(this.sigBytes),n=0,o=0,s=(u=this.words).length;o<s;o++)i=u[o],this.sigBytes-n>=4&&(i=a.fixup_uint32(i),r.writeUInt32BE(i,n),n+=4);for(;n<this.sigBytes;)t=this.words[n>>>2]>>>24-n%4*8&255,r.writeUInt8(t,n),n++;return r},t.prototype.endian_reverse=function(){var e,t,r,n,i;for(e=r=0,n=(i=this.words).length;r<n;e=++r)t=i[e],this.words[e]=o(t);return this},t.prototype.split=function(e){var r,n;if(this.sigBytes%4!=0||this.words.length%e!=0)throw new Error("bad key alignment");return n=this.words.length/e,function(){var e,i,o;for(o=[],r=e=0,i=this.words.length;n>0?e<i:e>i;r=e+=n)o.push(new t(this.words.slice(r,r+n)));return o}.call(this)},t.prototype.to_utf8=function(){return this.to_buffer().toString("utf8")},t.prototype.to_hex=function(){return this.to_buffer().toString("hex")},t.prototype.to_ui8a=function(){return i(this.to_buffer())},t.alloc=function(r){return e.isBuffer(r)?t.from_buffer(r):"object"==typeof r&&r instanceof t?r:"string"==typeof r?t.from_hex(r):null},t.from_buffer=function(e){var r,n,i;for(i=[],n=0;e.length-n>=4;)i.push(e.readUInt32BE(n)),n+=4;if(n<e.length){for(r=0;n<e.length;)r|=e.readUInt8(n)<<24-n%4*8,n++;r=a.fixup_uint32(r),i.push(r)}return new t(i,e.length)},t.from_buffer_le=function(e){var r,n,i;for(i=[],n=0;e.length-n>=4;)i.push(e.readUInt32LE(n)),n+=4;if(n<e.length){for(r=0;n<e.length;)r|=e.readUInt8(n)<<n%4*8,n++;r=a.fixup_uint32(r),i.push(r)}return new t(i,e.length)},t.from_utf8=function(r){return t.from_buffer(e.from(r,"utf8"))},t.from_utf8_le=function(r){return t.from_buffer_le(e.from(r,"utf8"))},t.from_hex=function(r){return t.from_buffer(e.from(r,"hex"))},t.from_hex_le=function(r){return t.from_buffer_le(e.from(r,"hex"))},t.from_ui8a=function(e){return t.from_buffer(s(e))},t.from_i32a=function(e){return new t(Array.apply([],e))},t.prototype.equal=function(e){var t,r,n,i,o,s;if(r=!0,e.sigBytes!==this.sigBytes)r=!1;else for(t=i=0,o=(s=this.words).length;i<o;t=++i)n=s[t],a.fixup_uint32(n)!==a.fixup_uint32(e.words[t])&&(r=!1);return r},t.prototype.xor=function(e,t){var r,n,i,o,s,u;if((r=t.dst_offset)||(r=0),(o=t.src_offset)||(o=0),null==(i=t.n_words)&&(i=e.words.length-o),this.words.length<r+i)throw new Error("dest range exceeded ("+this.words.length+" < "+(r+i)+")");if(e.words.length<o+i)throw new Error("source range exceeded");for(n=u=0;0<=i?u<i:u>i;n=0<=i?++u:--u)s=this.words[r+n]^e.words[o+n],this.words[r+n]=a.fixup_uint32(s);return this},t.prototype.truncate=function(e){var r;if(!(e<=this.sigBytes))throw new Error("Cannot truncate: "+e+" > "+this.sigBytes);return r=Math.ceil(e/4),new t(this.words.slice(0,r),e)},t.prototype.unshift=function(e){var r;return this.words.length>=e?(r=this.words.splice(0,e),this.sigBytes-=4*e,new t(r)):null},t.prototype.is_scrubbed=function(){var e,t,r;for(e=0,t=(r=this.words).length;e<t;e++)if(0!==r[e])return!1;return!0},t.prototype.scrub=function(){return a.scrub_vec(this.words)},t.prototype.cmp_ule=function(e){return a.buffer_cmp_ule(this.to_buffer(),e.to_buffer())},t.prototype.slice=function(e,r){var n,i;if(n=this.words.length,!(e<r&&r<=n))throw new Error("Bad WordArray slice ["+e+","+r+")] when only "+n+" avail");return i=4*(r-e),r===n&&(i-=4*n-this.sigBytes),new t(this.words.slice(e,r),i)},t}(),t.X64Word=function(){function e(e,t){this.high=e,this.low=t}return e.prototype.clone=function(){return new e(this.high,this.low)},e}(),t.X64WordArray=function(){function e(e,t){this.sigBytes=t,this.words=e||[],this.sigBytes||(this.sigBytes=8*this.words.length)}return e.prototype.toX32=function(){var e,t,r,i,o;for(e=[],r=0,i=(o=this.words).length;r<i;r++)t=o[r],e.push(t.high),e.push(t.low);return new n(e,this.sigBytes)},e.prototype.clone=function(){var t;return new e(function(){var e,r,n,i;for(i=[],e=0,r=(n=this.words).length;e<r;e++)t=n[e],i.push(t.clone());return i}.call(this),this.sigBytes)},e}(),t.buffer_to_ui8a=i,t.ui8a_to_buffer=s,t.endian_reverse=o}).call(this)}).call(this,r(11).Buffer)},,,,function(e,t,r){(t=e.exports=r(100)).Stream=t,t.Readable=t,t.Writable=r(81),t.Duplex=r(47),t.Transform=r(103),t.PassThrough=r(151)},function(e,t,r){"use strict";(function(t){var n=r(63);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var o,s=n.nextTick;y.WritableState=_;var a=r(56);a.inherits=r(17);var u={deprecate:r(149)},f=r(101),c=r(21).Buffer,l=t.Uint8Array||function(){};var h,p=r(102);function d(){}function _(e,t){o=o||r(47),e=e||{};var a=t instanceof o;this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var u=e.highWaterMark,f=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=u||0===u?u:a&&(f||0===f)?f:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var l=!1===e.decodeStrings;this.decodeStrings=!l,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,o=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,o){--t.pendingcb,r?(n.nextTick(o,i),n.nextTick(k,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(o(i),e._writableState.errorEmitted=!0,e.emit("error",i),k(e,t))}(e,r,i,t,o);else{var a=v(r);a||r.corked||r.bufferProcessing||!r.bufferedRequest||m(e,r),i?s(b,e,r,a,o):b(e,r,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function y(e){if(o=o||r(47),!(h.call(y,this)||this instanceof o))return new y(e);this._writableState=new _(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),f.call(this)}function g(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function b(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),k(e,t)}function m(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,o=new Array(n),s=t.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,g(e,t,!0,t.length,o,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,c=r.encoding,l=r.callback;if(g(e,t,!1,t.objectMode?1:f.length,f,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function v(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function w(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),k(e,t)}))}function k(e,t){var r=v(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(w,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}a.inherits(y,f),_.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(_.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===y&&(e&&e._writableState instanceof _)}})):h=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,r){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=e,c.isBuffer(i)||i instanceof l);return a&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof r&&(r=d),o.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}(this,r):(a||function(e,t,r,i){var o=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),n.nextTick(i,s),o=!1),o}(this,o,e,r))&&(o.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var f=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},f?f.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else g(e,t,!1,a,n,i,o);return u}(this,o,a,e,t,r)),s},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||m(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(e,t,r){t.ending=!0,k(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=p.destroy,y.prototype._undestroy=p.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(26))},function(e,t,r){(function(e){(function(){var n,i,o,s,a;for(i in s=r(708))o=s[i],t[i]=o;for(i in a=r(1292))o=a[i],t[i]=o;t.prng=r(711),t.Buffer=e,t.WordArray=r(76).WordArray,t.util=r(114),t.ciphers={AES:r(453).AES,TwoFish:r(454).TwoFish,Salsa20:r(352).Salsa20},t.hash={SHA1:r(1293).SHA1,SHA224:r(1294).SHA224,SHA256:r(456).SHA256,SHA384:r(1295).SHA384,SHA512:r(239).SHA512,KECCAK:r(353).KECCAK,SHA3:r(1296).SHA3,SHA3STD:r(709).SHA3STD,MD5:r(1297).MD5,RIPEMD160:r(1298).RIPEMD160},t.modes={CTR:r(380)},t.scrypt=r(710).scrypt,t.pbkdf2=r(457).pbkdf2,t.hmac=n=r(238),t.HMAC_SHA256=n.HMAC_SHA256,t.HMAC=n.HMAC}).call(this)}).call(this,r(11).Buffer)},,,function(e,t,r){"use strict";var n=r(17),i=r(119),o=r(120),s=r(121),a=r(61);function u(e){a.call(this,"digest"),this._hash=e}n(u,a),u.prototype._update=function(e){this._hash.update(e)},u.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new o:new u(s(e))}},function(e,t,r){"use strict";var n=r(150).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=f,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=l,t=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function f(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function l(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""},o.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},o.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var i=s(t[n]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--n<r||-2===i)return 0;if((i=s(t[n]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--n<r||-2===i)return 0;if((i=s(t[n]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,r){(function(t){e.exports=function(e,r){for(var n=Math.min(e.length,r.length),i=new t(n),o=0;o<n;++o)i[o]=e[o]^r[o];return i}}).call(this,r(11).Buffer)},function(e,t,r){"use strict";var n=r(54),i=r(48);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},function(e,t,r){var n=t;n.bignum=r(30),n.define=r(322).define,n.base=r(90),n.constants=r(191),n.decoders=r(327),n.encoders=r(329)},function(e,t,r){var n=t;n.Reporter=r(324).Reporter,n.DecoderBuffer=r(190).DecoderBuffer,n.EncoderBuffer=r(190).EncoderBuffer,n.Node=r(325)},,,,function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c,l,h,p,d;f=r(34),e=r(219).BigInteger,p=r(82),u=p.WordArray,l=p.prng,c=l.native_rng,n=r(712).Lock,o=function(){function t(){}return t.prototype.nextBytes=function(e){var t,r,n,i,o,s;for(s=[],n=i=0,o=(t=c(e.length)).length;i<o;n=++i)r=t[n],s.push(e[n]=r);return s},t.prototype.random_word=function(){return c(4).readUInt32BE(0)},t.prototype.random_zn=function(t){for(var r;;)if((r=e.random_nbit(t.bitLength(),this)).compareTo(e.ONE)>0&&r.compareTo(t)<0)return r},t}(),h=null,i=function(){return null==h&&(h=new o),h},a=function(){function t(){this.buf=null,this.lock=new n}return t.prototype.random_word=function(e){var t,r,n;r=f.findDeferral(arguments),function(e){n=new f.Deferrals(e,{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/rand.iced",funcname:"StrongRandomFountain.random_word"}),l.generate(4,n.defer({assign_fn:function(){return t=arguments[0]},lineno:49})),n._fulfill()}((function(){return e(t.to_buffer().readUInt32BE(0))}))},t.prototype.random_double=function(e){var t,r,n;r=f.findDeferral(arguments),function(e){n=new f.Deferrals(e,{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/rand.iced",funcname:"StrongRandomFountain.random_double"}),l.generate(8,n.defer({assign_fn:function(){return t=arguments[0]},lineno:55})),n._fulfill()}((function(){return e(t.to_buffer().readDoubleBE(0))}))},t.prototype.rand_0_1=function(e){var t,r,n,i,o,s;i=f.findDeferral(arguments),(s=this,function(e){o=new f.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/rand.iced",funcname:"StrongRandomFountain.rand_0_1"}),s.random_word(o.defer({assign_fn:function(){return r=arguments[0]},lineno:61})),o._fulfill()})(function(s){return function(){o=new f.Deferrals((function(){return t=r*Math.pow(2,-32)+n*Math.pow(2,-64),e(t)}),{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/rand.iced",funcname:"StrongRandomFountain.rand_0_1"}),s.random_word(o.defer({assign_fn:function(){return n=arguments[0]},lineno:62})),o._fulfill()}}(this))},t.prototype.random_zn=function(t,r){var n,i,o,s,a;o=f.findDeferral(arguments),n=!0,i=!1,(a=this,function(r){var u;(u=function(r){var c;if(c=function(){return f.trampoline((function(){return u(r)}))},!n)return r();s=new f.Deferrals((function(){return c(n=i.compareTo(e.ONE)<=0||i.compareTo(t)>=0)}),{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/rand.iced",funcname:"StrongRandomFountain.random_zn"}),a.random_nbit(t.bitLength(),s.defer({assign_fn:function(){return i=arguments[0]},lineno:72})),s._fulfill()})(r)})((function(){return r(i)}))},t.prototype.nextBytes=function(e){var t,r,n,i;for(i=[],t=r=0,n=e.length;0<=n?r<n:r>n;t=0<=n?++r:--r)i.push(e[t]=this.buf[t]);return i},t.prototype.random_word_array=function(e,t){var r,n,i,o,s,a,c,h;a=f.findDeferral(arguments),s=new u,i=512,(h=this,function(e){c=new f.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/rand.iced",funcname:"StrongRandomFountain.random_word_array"}),h.lock.acquire(c.defer({lineno:88})),c._fulfill()})(function(u){return function(){var h;(h=function(t){var u,p;if(u=t,p=function(){return f.trampoline((function(){return h(t)}))},!((n=e-s.sigBytes)>0))return u();o=Math.min(i,n),c=new f.Deferrals((function(){return p(s=s.concat(r))}),{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/rand.iced",funcname:"StrongRandomFountain.random_word_array"}),l.generate(o,c.defer({assign_fn:function(){return r=arguments[0]},lineno:91})),c._fulfill()})((function(){return u.lock.release(),t(s)}))}}(this))},t.prototype.random_bytes=function(e,t){var r,n,i,o;n=f.findDeferral(arguments),(o=this,function(t){i=new f.Deferrals(t,{parent:n,filename:"/Users/max/src/keybase/kbpgp/src/rand.iced",funcname:"StrongRandomFountain.random_bytes"}),o.random_word_array(e,i.defer({assign_fn:function(){return r=arguments[0]},lineno:99})),i._fulfill()})((function(){return t(r.to_buffer())}))},t.prototype.random_nbit=function(t,r){var n,i,o,s,a,u;s=f.findDeferral(arguments),n=1+(t>>3),(u=this,function(e){a=new f.Deferrals(e,{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/rand.iced",funcname:"StrongRandomFountain.random_nbit"}),u.random_bytes(n,a.defer({assign_fn:function(){return o=arguments[0]},lineno:106})),a._fulfill()})(function(n){return function(){a=new f.Deferrals((function(){return n.buf=o,i=e.random_nbit(t,n),n.lock.release(),r(i)}),{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/rand.iced",funcname:"StrongRandomFountain.random_nbit"}),n.lock.acquire(a.defer({lineno:107})),a._fulfill()}}(this))},t}(),d=null,s=function(){return null==d&&(d=new a),d},t.MRF=i,t.SRF=s}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c,l,h,p,d;for(a in e=r(36).openpgp,l=r(82),n=l.WordArray,i=l.hash,s=function(e,t,r,n){return e.type=n,e.algname=r,e.output_length=t.output_size,e.klass=t,e},u=function(e,t,r){return null!=e?s((function(t){return(new e).bufhash(t)}),e,t,r):null},f=function(e,t,r){return function(){var i,o;return i=new e,(o=function(e){return i.clone().finalize(null!=e?n.from_buffer(e):null).to_buffer()}).update=function(e){return null!=e&&i.update(n.from_buffer(e)),this},s(o,e,t,r)}},p={},t.streamers=c={},d=e.hash_algorithms)h=d[a],p[h]=a,t[a]=u(i[a],a,h),c[a]=f(i[a],a,h);t.alloc=o=function(e){var t,r,n;return n=null,null!=(r=p[e])&&(t=i[r]),null!=t&&(n=u(t,r,e)),n},t.alloc_or_throw=function(e){var t;if(!(t=o(e)))throw new Error("unknown hash type: "+e);return t}}).call(this)},,,,function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){"use strict";(function(t,n){var i=r(63);e.exports=m;var o,s=r(145);m.ReadableState=b;r(74).EventEmitter;var a=function(e,t){return e.listeners(t).length},u=r(101),f=r(21).Buffer,c=t.Uint8Array||function(){};var l=r(56);l.inherits=r(17);var h=r(146),p=void 0;p=h&&h.debuglog?h.debuglog("stream"):function(){};var d,_=r(147),y=r(102);l.inherits(m,u);var g=["error","close","destroy","pause","resume"];function b(e,t){e=e||{};var n=t instanceof(o=o||r(47));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,s=e.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new _,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=r(86).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function m(e){if(o=o||r(47),!(this instanceof m))return new m(e);this._readableState=new b(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function v(e,t,r,n,i){var o,s=e._readableState;null===t?(s.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,E(e)}(e,s)):(i||(o=function(e,t){var r;n=t,f.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===f.prototype||(t=function(e){return f.from(e)}(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?w(e,s,t,!1):A(e,s)):w(e,s,t,!1))):n||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(s)}function w(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&E(e)),A(e,t)}Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),m.prototype.destroy=y.destroy,m.prototype._undestroy=y.undestroy,m.prototype._destroy=function(e,t){this.push(null),t(e)},m.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=f.from(e,t),t=""),r=!0),v(this,e,t,!1,r)},m.prototype.unshift=function(e){return v(this,e,null,!0,!1)},m.prototype.isPaused=function(){return!1===this._readableState.flowing},m.prototype.setEncoding=function(e){return d||(d=r(86).StringDecoder),this._readableState.decoder=new d(e),this._readableState.encoding=e,this};var k=8388608;function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(S,e):S(e))}function S(e){p("emit readable"),e.emit("readable"),P(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(B,e,t))}function B(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function D(e){p("readable nexttick read 0"),e.read(0)}function M(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function I(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=f.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0===(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function U(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(T,t,e))}function T(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function R(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}m.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):E(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&U(this),null;var n,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(r,t))),null===(n=e>0?I(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&U(this)),null!==n&&this.emit("data",n),n},m.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},m.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,p("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr?c:m;function f(t,n){p("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p("cleanup"),e.removeListener("close",g),e.removeListener("finish",b),e.removeListener("drain",l),e.removeListener("error",y),e.removeListener("unpipe",f),r.removeListener("end",c),r.removeListener("end",m),r.removeListener("data",_),h=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function c(){p("onend"),e.end()}o.endEmitted?i.nextTick(u):r.once("end",u),e.on("unpipe",f);var l=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,P(e))}}(r);e.on("drain",l);var h=!1;var d=!1;function _(t){p("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==R(o.pipes,e))&&!h&&(p("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,d=!0),r.pause())}function y(t){p("onerror",t),m(),e.removeListener("error",y),0===a(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",b),m()}function b(){p("onfinish"),e.removeListener("close",g),m()}function m(){p("unpipe"),r.unpipe(e)}return r.on("data",_),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",y),e.once("close",g),e.once("finish",b),e.emit("pipe",r),o.flowing||(p("pipe resume"),r.resume()),e},m.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,r);return this}var s=R(t.pipes,e);return-1===s?this:(t.pipes.splice(s,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)},m.prototype.on=function(e,t){var r=u.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var n=this._readableState;n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&E(this):i.nextTick(D,this))}return r},m.prototype.addListener=m.prototype.on,m.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(M,e,t))}(this,e)),this},m.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},m.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(p("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(p("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var o=0;o<g.length;o++)e.on(g[o],this.emit.bind(this,g[o]));return this._read=function(t){p("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(m.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),m._fromList=I}).call(this,r(26),r(25))},function(e,t,r){e.exports=r(74).EventEmitter},function(e,t,r){"use strict";var n=r(63);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,r){"use strict";e.exports=s;var n=r(47),i=r(56);function o(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);n.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",a)}function a(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){u(e,t,r)})):u(this,null,null)}function u(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(17),i.inherits(s,n),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},s.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},s.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},s.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},function(e,t,r){var n=r(21).Buffer;function i(e){n.isBuffer(e)||(e=n.from(e));for(var t=e.length/4|0,r=new Array(t),i=0;i<t;i++)r[i]=e.readUInt32BE(4*i);return r}function o(e){for(;0<e.length;e++)e[0]=0}function s(e,t,r,n,i){for(var o,s,a,u,f=r[0],c=r[1],l=r[2],h=r[3],p=e[0]^t[0],d=e[1]^t[1],_=e[2]^t[2],y=e[3]^t[3],g=4,b=1;b<i;b++)o=f[p>>>24]^c[d>>>16&255]^l[_>>>8&255]^h[255&y]^t[g++],s=f[d>>>24]^c[_>>>16&255]^l[y>>>8&255]^h[255&p]^t[g++],a=f[_>>>24]^c[y>>>16&255]^l[p>>>8&255]^h[255&d]^t[g++],u=f[y>>>24]^c[p>>>16&255]^l[d>>>8&255]^h[255&_]^t[g++],p=o,d=s,_=a,y=u;return o=(n[p>>>24]<<24|n[d>>>16&255]<<16|n[_>>>8&255]<<8|n[255&y])^t[g++],s=(n[d>>>24]<<24|n[_>>>16&255]<<16|n[y>>>8&255]<<8|n[255&p])^t[g++],a=(n[_>>>24]<<24|n[y>>>16&255]<<16|n[p>>>8&255]<<8|n[255&d])^t[g++],u=(n[y>>>24]<<24|n[p>>>16&255]<<16|n[d>>>8&255]<<8|n[255&_])^t[g++],[o>>>=0,s>>>=0,a>>>=0,u>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],s=0,a=0,u=0;u<256;++u){var f=a^a<<1^a<<2^a<<3^a<<4;f=f>>>8^255&f^99,r[s]=f,n[f]=s;var c=e[s],l=e[c],h=e[l],p=257*e[f]^16843008*f;i[0][s]=p<<24|p>>>8,i[1][s]=p<<16|p>>>16,i[2][s]=p<<8|p>>>24,i[3][s]=p,p=16843009*h^65537*l^257*c^16843008*s,o[0][f]=p<<24|p>>>8,o[1][f]=p<<16|p>>>16,o[2][f]=p<<8|p>>>24,o[3][f]=p,0===s?s=a=1:(s=c^e[e[e[h^c]]],a^=e[e[a]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function f(e){this._key=i(e),this._reset()}f.blockSize=16,f.keySize=32,f.prototype.blockSize=f.blockSize,f.prototype.keySize=f.keySize,f.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var s=i[o-1];o%t==0?(s=s<<8|s>>>24,s=u.SBOX[s>>>24]<<24|u.SBOX[s>>>16&255]<<16|u.SBOX[s>>>8&255]<<8|u.SBOX[255&s],s^=a[o/t|0]<<24):t>6&&o%t==4&&(s=u.SBOX[s>>>24]<<24|u.SBOX[s>>>16&255]<<16|u.SBOX[s>>>8&255]<<8|u.SBOX[255&s]),i[o]=i[o-t]^s}for(var f=[],c=0;c<n;c++){var l=n-c,h=i[l-(c%4?0:4)];f[c]=c<4||l<=4?h:u.INV_SUB_MIX[0][u.SBOX[h>>>24]]^u.INV_SUB_MIX[1][u.SBOX[h>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[h>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&h]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=f},f.prototype.encryptBlockRaw=function(e){return s(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},f.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},f.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var r=s(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},f.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=f},function(e,t,r){var n=r(21).Buffer,i=r(119);e.exports=function(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var s=r/8,a=n.alloc(s),u=n.alloc(o||0),f=n.alloc(0);s>0||o>0;){var c=new i;c.update(f),c.update(e),t&&c.update(t),f=c.digest();var l=0;if(s>0){var h=a.length-s;l=Math.min(s,f.length),f.copy(a,h,0,l),s-=l}if(l<f.length&&o>0){var p=u.length-o,d=Math.min(o,f.length-l);f.copy(u,p,l,l+d),o-=d}}return f.fill(0),{key:a,iv:u}}},function(e,t,r){"use strict";var n=r(30),i=r(49),o=i.getNAF,s=i.getJSF,a=i.assert;function u(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function f(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){a(e.precomputed);var r=e._getDoubles(),n=o(t,1),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var s=[],u=0;u<n.length;u+=r.step){var f=0;for(t=u+r.step-1;t>=u;t--)f=(f<<1)+n[t];s.push(f)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=i;h>0;h--){for(u=0;u<s.length;u++){(f=s[u])===h?l=l.mixedAdd(r.points[u]):f===-h&&(l=l.mixedAdd(r.points[u].neg()))}c=c.add(l)}return c.toP()},u.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,s=o(t,r),u=this.jpoint(null,null,null),f=s.length-1;f>=0;f--){for(t=0;f>=0&&0===s[f];f--)t++;if(f>=0&&t++,u=u.dblp(t),f<0)break;var c=s[f];a(0!==c),u="affine"===e.type?c>0?u.mixedAdd(i[c-1>>1]):u.mixedAdd(i[-c-1>>1].neg()):c>0?u.add(i[c-1>>1]):u.add(i[-c-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,r,n,i){for(var a=this._wnafT1,u=this._wnafT2,f=this._wnafT3,c=0,l=0;l<n;l++){var h=(S=t[l])._getNAFPoints(e);a[l]=h.wnd,u[l]=h.points}for(l=n-1;l>=1;l-=2){var p=l-1,d=l;if(1===a[p]&&1===a[d]){var _=[t[p],null,null,t[d]];0===t[p].y.cmp(t[d].y)?(_[1]=t[p].add(t[d]),_[2]=t[p].toJ().mixedAdd(t[d].neg())):0===t[p].y.cmp(t[d].y.redNeg())?(_[1]=t[p].toJ().mixedAdd(t[d]),_[2]=t[p].add(t[d].neg())):(_[1]=t[p].toJ().mixedAdd(t[d]),_[2]=t[p].toJ().mixedAdd(t[d].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],g=s(r[p],r[d]);c=Math.max(g[0].length,c),f[p]=new Array(c),f[d]=new Array(c);for(var b=0;b<c;b++){var m=0|g[0][b],v=0|g[1][b];f[p][b]=y[3*(m+1)+(v+1)],f[d][b]=0,u[p]=_}}else f[p]=o(r[p],a[p]),f[d]=o(r[d],a[d]),c=Math.max(f[p].length,c),c=Math.max(f[d].length,c)}var w=this.jpoint(null,null,null),k=this._wnafT4;for(l=c;l>=0;l--){for(var x=0;l>=0;){var E=!0;for(b=0;b<n;b++)k[b]=0|f[b][l],0!==k[b]&&(E=!1);if(!E)break;x++,l--}if(l>=0&&x++,w=w.dblp(x),l<0)break;for(b=0;b<n;b++){var S,A=k[b];0!==A&&(A>0?S=u[b][A-1>>1]:A<0&&(S=u[b][-A-1>>1].neg()),w="affine"===S.type?w.mixedAdd(S):w.add(S))}}for(l=0;l<n;l++)u[l]=null;return i?w:w.toP()},u.BasePoint=f,f.prototype.eq=function(){throw new Error("Not implemented")},f.prototype.validate=function(){return this.curve.validate(this)},u.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?a(e[e.length-1]%2==0):7===e[0]&&a(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},f.prototype.encodeCompressed=function(e){return this.encode(e,!0)},f.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},f.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},f.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},f.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},f.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},f.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},f.prototype._getBeta=function(){return null},f.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},function(e,t,r){var n=r(321),i=r(332),o=r(333),s=r(123),a=r(172),u=r(21).Buffer;function f(e){var t;"object"!=typeof e||u.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=u.from(e));var r,f,c=o(e,t),l=c.tag,h=c.data;switch(l){case"CERTIFICATE":f=n.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(f||(f=n.PublicKey.decode(h,"der")),r=f.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPublicKey.decode(f.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return f.subjectPrivateKey=f.subjectPublicKey,{type:"ec",data:f};case"1.2.840.10040.4.1":return f.algorithm.params.pub_key=n.DSAparam.decode(f.subjectPublicKey.data,"der"),{type:"dsa",data:f.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+l);case"ENCRYPTED PRIVATE KEY":h=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),o=i[e.algorithm.decrypt.cipher.algo.join(".")],f=e.algorithm.decrypt.cipher.iv,c=e.subjectPrivateKey,l=parseInt(o.split("-")[1],10)/8,h=a.pbkdf2Sync(t,r,n,l,"sha1"),p=s.createDecipheriv(o,h,f),d=[];return d.push(p.update(c)),d.push(p.final()),u.concat(d)}(h=n.EncryptedPrivateKey.decode(h,"der"),t);case"PRIVATE KEY":switch(r=(f=n.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return n.RSAPrivateKey.decode(f.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:f.algorithm.curve,privateKey:n.ECPrivateKey.decode(f.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return f.algorithm.params.priv_key=n.DSAparam.decode(f.subjectPrivateKey,"der"),{type:"dsa",params:f.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+l);case"RSA PUBLIC KEY":return n.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return n.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:n.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=n.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+l)}}e.exports=f,f.signature=n.signature},function(e,t,r){"use strict";var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)i(r,n)&&(e[n]=r[n])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){var t,r,n,i,o,s;for(n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(s=new Uint8Array(n),i=0,t=0,r=e.length;t<r;t++)o=e[t],s.set(o,i),i+=o.length;return s}},s={arraySet:function(e,t,r,n,i){for(var o=0;o<n;o++)e[i+o]=t[r+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,o)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,s))},t.setTyped(n)},,,,function(e,t,r){"use strict";(function(t){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
 * @license  MIT
 */
function n(e,t){if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0}function i(e){return t.Buffer&&"function"==typeof t.Buffer.isBuffer?t.Buffer.isBuffer(e):!(null==e||!e._isBuffer)}var o=r(64),s=Object.prototype.hasOwnProperty,a=Array.prototype.slice,u="foo"===function(){}.name;function f(e){return Object.prototype.toString.call(e)}function c(e){return!i(e)&&("function"==typeof t.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):!!e&&(e instanceof DataView||!!(e.buffer&&e.buffer instanceof ArrayBuffer))))}var l=e.exports=g,h=/\s*function\s+([^\(\s]*)\s*/;function p(e){if(o.isFunction(e)){if(u)return e.name;var t=e.toString().match(h);return t&&t[1]}}function d(e,t){return"string"==typeof e?e.length<t?e:e.slice(0,t):e}function _(e){if(u||!o.isFunction(e))return o.inspect(e);var t=p(e);return"[Function"+(t?": "+t:"")+"]"}function y(e,t,r,n,i){throw new l.AssertionError({message:r,actual:e,expected:t,operator:n,stackStartFunction:i})}function g(e,t){e||y(e,!0,t,"==",l.ok)}function b(e,t,r,s){if(e===t)return!0;if(i(e)&&i(t))return 0===n(e,t);if(o.isDate(e)&&o.isDate(t))return e.getTime()===t.getTime();if(o.isRegExp(e)&&o.isRegExp(t))return e.source===t.source&&e.global===t.global&&e.multiline===t.multiline&&e.lastIndex===t.lastIndex&&e.ignoreCase===t.ignoreCase;if(null!==e&&"object"==typeof e||null!==t&&"object"==typeof t){if(c(e)&&c(t)&&f(e)===f(t)&&!(e instanceof Float32Array||e instanceof Float64Array))return 0===n(new Uint8Array(e.buffer),new Uint8Array(t.buffer));if(i(e)!==i(t))return!1;var u=(s=s||{actual:[],expected:[]}).actual.indexOf(e);return-1!==u&&u===s.expected.indexOf(t)||(s.actual.push(e),s.expected.push(t),function(e,t,r,n){if(null==e||null==t)return!1;if(o.isPrimitive(e)||o.isPrimitive(t))return e===t;if(r&&Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1;var i=m(e),s=m(t);if(i&&!s||!i&&s)return!1;if(i)return e=a.call(e),t=a.call(t),b(e,t,r);var u,f,c=k(e),l=k(t);if(c.length!==l.length)return!1;for(c.sort(),l.sort(),f=c.length-1;f>=0;f--)if(c[f]!==l[f])return!1;for(f=c.length-1;f>=0;f--)if(u=c[f],!b(e[u],t[u],r,n))return!1;return!0}(e,t,r,s))}return r?e===t:e==t}function m(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function v(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function w(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&y(i,r,"Missing expected exception"+n);var s="string"==typeof n,a=!e&&i&&!r;if((!e&&o.isError(i)&&s&&v(i,r)||a)&&y(i,r,"Got unwanted exception"+n),e&&i&&r&&!v(i,r)||!e&&i)throw i}l.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=function(e){return d(_(e.actual),128)+" "+e.operator+" "+d(_(e.expected),128)}(this),this.generatedMessage=!0);var t=e.stackStartFunction||y;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var r=new Error;if(r.stack){var n=r.stack,i=p(t),o=n.indexOf("\n"+i);if(o>=0){var s=n.indexOf("\n",o+1);n=n.substring(s+1)}this.stack=n}}},o.inherits(l.AssertionError,Error),l.fail=y,l.ok=g,l.equal=function(e,t,r){e!=t&&y(e,t,r,"==",l.equal)},l.notEqual=function(e,t,r){e==t&&y(e,t,r,"!=",l.notEqual)},l.deepEqual=function(e,t,r){b(e,t,!1)||y(e,t,r,"deepEqual",l.deepEqual)},l.deepStrictEqual=function(e,t,r){b(e,t,!0)||y(e,t,r,"deepStrictEqual",l.deepStrictEqual)},l.notDeepEqual=function(e,t,r){b(e,t,!1)&&y(e,t,r,"notDeepEqual",l.notDeepEqual)},l.notDeepStrictEqual=function e(t,r,n){b(t,r,!0)&&y(t,r,n,"notDeepStrictEqual",e)},l.strictEqual=function(e,t,r){e!==t&&y(e,t,r,"===",l.strictEqual)},l.notStrictEqual=function(e,t,r){e===t&&y(e,t,r,"!==",l.notStrictEqual)},l.throws=function(e,t,r){w(!0,e,t,r)},l.doesNotThrow=function(e,t,r){w(!1,e,t,r)},l.ifError=function(e){if(e)throw e};var k=Object.keys||function(e){var t=[];for(var r in e)s.call(e,r)&&t.push(r);return t}}).call(this,r(26))},,function(e,t,r){(function(e,n){(function(){var i,o,s;o=r(34),s=Math.pow(2,32),t.fixup_uint32=function(e){var t;return e>s||e<0?(t=Math.abs(e)%s,e<0?s-t:t):e},t.scrub_buffer=function(e){var t,r;for(r=e.length>>2,t=0;t<r;)e.writeUInt32LE(0,t),t+=4;for(;t<e.length;)e.writeUInt8(0,t),t++;return!1},t.copy_buffer=function(t){var r,n,i,o;for(n=e.alloc(t.length),r=i=0,o=t.length;0<=o?i<o:i>o;r=0<=o?++i:--i)n.writeUInt8(t.readUInt8(r),r);return n},t.scrub_vec=function(e){var t,r,n;for(t=r=0,n=e.length;0<=n?r<n:r>n;t=0<=n?++r:--r)e[t]=0;return!1},t.default_delay=i=function(e,t,r){var i,s;i=o.findDeferral(arguments),function(e){null!=n?function(e){s=new o.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/triplesec/src/util.iced"}),n(s.defer({lineno:45})),s._fulfill()}(e):function(e){s=new o.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/triplesec/src/util.iced"}),setTimeout(s.defer({lineno:47}),1),s._fulfill()}(e)}((function(){return r()}))},t.buffer_cmp_ule=function(e,t){var r,n,i,o,s,a;for(i=o=0,r=e.length,n=t.length;i<r&&0===e.readUInt8(i);)i++;for(;o<n&&0===t.readUInt8(o);)o++;if(r-i>n-o)return 1;if(n-o>r-i)return-1;for(;i<r;){if((s=e.readUInt8(i))<(a=t.readUInt8(o)))return-1;if(a<s)return 1;i++,o++}return 0},t.bulk=function(e,t,r){var n,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v;m=o.findDeferral(arguments),g=t.update,f=t.finalize,a=t.default_n,u=r.delay,h=r.n,s=r.cb,b=r.what,d=r.progress_hook,c=0,l=0,y=Math.ceil(e/4),u||(u=i),h||(h=a),(n=function(e){return"function"==typeof d?d({what:b,i:e,total:y}):void 0})(0),function(e){var t;(t=function(e){var r;if(r=function(){return o.trampoline((function(){return t(e)}))},!((l=y-c)>0))return e();p=Math.min(h,l),g(c,c+p),n(c),v=new o.Deferrals((function(){return r(c+=p)}),{parent:m,filename:"/Users/max/src/keybase/triplesec/src/util.iced",funcname:"bulk"}),u(c,y,v.defer({lineno:105})),v._fulfill()})(e)}((function(){return n(y),_=f(),s(_)}))}}).call(this)}).call(this,r(11).Buffer,r(234).setImmediate)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d;h=(d=r(219)).nbv,f=d.nbi,n=d.BigInteger,c=d.nbits,r(50).buffer_to_ui8a,l=function(e,t){return null==t&&(t=10),f().fromString(e,t)},s=function(e){return e.toByteArray().length},p=function(t){var r,n,i;return i=8*((r=t.toByteArray()).length-1)+c(r[0]),(n=e.alloc(2)).writeUInt16BE(i,0),e.concat([n,e.from(r)])},a=function(t){var r,n,i,o,s;return r=i=null,t.length<2?r=new Error("need at least 2 bytes; got "+t.length):(n=e.from(t.slice(0,2)),t=t.slice(2),o=n.readUInt16BE(0),s=Math.ceil(o/8),t.length<s?r=new Error("MPI said "+s+" bytes but only got "+t.length):(i=f().fromBuffer(t.slice(0,s)),t=t.slice(s))),[r,i,t,s+2]},u=function(t,r){var n,i,o;return i=r.mpi_byte_length()-(n=t.toByteArray()).length,o=e.alloc(i),e.concat([o,e.from(n)])},o=function(e,t){var r,n,i,o,s,a,u;for(o=t>>3,i=(1<<(s=t%8))-1,n=a=u=(e=e.slice(0,e.length-o)).length-1;u<=0?a<=0:a>=0;n=u<=0?++a:--a)r=e.readUInt8(n)>>s,n>0&&(r|=(e.readUInt8(n-1)&i)<<8-s),e.writeUInt8(r,n);return e},i=function(e,t){var r,n,i,o;return 8*e.length<=t?f().fromBuffer(e):(n=(t>>3)+((i=t%8)?1:0),r=e.slice(0,n),o=f().fromBuffer(r),i>0&&(o=o.shiftRight(8-i)),o)},t.toMPI=p,t.nbs=l,t.mpi_from_buffer=a,t.mpi_to_padded_octets=u,t.buffer_shift_right=o,t.bn_from_left_n_bits=i,n.prototype.to_mpi_buffer=function(){return p(this)},n.prototype.mpi_byte_length=function(){return s(this)},n.prototype.to_padded_octets=function(e){return u(this,e)},t.BigInteger=n,t.nbi=f,t.nbv=h,t.nbits=c}).call(this)}).call(this,r(11).Buffer)},,,,function(e,t,r){"use strict";var n=r(17),i=r(166),o=r(21).Buffer,s=new Array(16);function a(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function u(e,t){return e<<t|e>>>32-t}function f(e,t,r,n,i,o,s){return u(e+(t&r|~t&n)+i+o|0,s)+t|0}function c(e,t,r,n,i,o,s){return u(e+(t&n|r&~n)+i+o|0,s)+t|0}function l(e,t,r,n,i,o,s){return u(e+(t^r^n)+i+o|0,s)+t|0}function h(e,t,r,n,i,o,s){return u(e+(r^(t|~n))+i+o|0,s)+t|0}n(a,i),a.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=f(r,n,i,o,e[0],3614090360,7),o=f(o,r,n,i,e[1],3905402710,12),i=f(i,o,r,n,e[2],606105819,17),n=f(n,i,o,r,e[3],3250441966,22),r=f(r,n,i,o,e[4],4118548399,7),o=f(o,r,n,i,e[5],1200080426,12),i=f(i,o,r,n,e[6],2821735955,17),n=f(n,i,o,r,e[7],4249261313,22),r=f(r,n,i,o,e[8],1770035416,7),o=f(o,r,n,i,e[9],2336552879,12),i=f(i,o,r,n,e[10],4294925233,17),n=f(n,i,o,r,e[11],2304563134,22),r=f(r,n,i,o,e[12],1804603682,7),o=f(o,r,n,i,e[13],4254626195,12),i=f(i,o,r,n,e[14],2792965006,17),r=c(r,n=f(n,i,o,r,e[15],1236535329,22),i,o,e[1],4129170786,5),o=c(o,r,n,i,e[6],3225465664,9),i=c(i,o,r,n,e[11],643717713,14),n=c(n,i,o,r,e[0],3921069994,20),r=c(r,n,i,o,e[5],3593408605,5),o=c(o,r,n,i,e[10],38016083,9),i=c(i,o,r,n,e[15],3634488961,14),n=c(n,i,o,r,e[4],3889429448,20),r=c(r,n,i,o,e[9],568446438,5),o=c(o,r,n,i,e[14],3275163606,9),i=c(i,o,r,n,e[3],4107603335,14),n=c(n,i,o,r,e[8],1163531501,20),r=c(r,n,i,o,e[13],2850285829,5),o=c(o,r,n,i,e[2],4243563512,9),i=c(i,o,r,n,e[7],1735328473,14),r=l(r,n=c(n,i,o,r,e[12],2368359562,20),i,o,e[5],4294588738,4),o=l(o,r,n,i,e[8],2272392833,11),i=l(i,o,r,n,e[11],1839030562,16),n=l(n,i,o,r,e[14],4259657740,23),r=l(r,n,i,o,e[1],2763975236,4),o=l(o,r,n,i,e[4],1272893353,11),i=l(i,o,r,n,e[7],4139469664,16),n=l(n,i,o,r,e[10],3200236656,23),r=l(r,n,i,o,e[13],681279174,4),o=l(o,r,n,i,e[0],3936430074,11),i=l(i,o,r,n,e[3],3572445317,16),n=l(n,i,o,r,e[6],76029189,23),r=l(r,n,i,o,e[9],3654602809,4),o=l(o,r,n,i,e[12],3873151461,11),i=l(i,o,r,n,e[15],530742520,16),r=h(r,n=l(n,i,o,r,e[2],3299628645,23),i,o,e[0],4096336452,6),o=h(o,r,n,i,e[7],1126891415,10),i=h(i,o,r,n,e[14],2878612391,15),n=h(n,i,o,r,e[5],4237533241,21),r=h(r,n,i,o,e[12],1700485571,6),o=h(o,r,n,i,e[3],2399980690,10),i=h(i,o,r,n,e[10],4293915773,15),n=h(n,i,o,r,e[1],2240044497,21),r=h(r,n,i,o,e[8],1873313359,6),o=h(o,r,n,i,e[15],4264355552,10),i=h(i,o,r,n,e[6],2734768916,15),n=h(n,i,o,r,e[13],1309151649,21),r=h(r,n,i,o,e[4],4149444226,6),o=h(o,r,n,i,e[11],3174756917,10),i=h(i,o,r,n,e[2],718787259,15),n=h(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=a},function(e,t,r){"use strict";var n=r(11).Buffer,i=r(17),o=r(166),s=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],u=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],f=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],l=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function p(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function d(e,t){return e<<t|e>>>32-t}function _(e,t,r,n,i,o,s,a){return d(e+(t^r^n)+o+s|0,a)+i|0}function y(e,t,r,n,i,o,s,a){return d(e+(t&r|~t&n)+o+s|0,a)+i|0}function g(e,t,r,n,i,o,s,a){return d(e+((t|~r)^n)+o+s|0,a)+i|0}function b(e,t,r,n,i,o,s,a){return d(e+(t&n|r&~n)+o+s|0,a)+i|0}function m(e,t,r,n,i,o,s,a){return d(e+(t^(r|~n))+o+s|0,a)+i|0}i(p,o),p.prototype._update=function(){for(var e=s,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,p=0|this._e,v=0|this._a,w=0|this._b,k=0|this._c,x=0|this._d,E=0|this._e,S=0;S<80;S+=1){var A,B;S<16?(A=_(r,n,i,o,p,e[a[S]],l[0],f[S]),B=m(v,w,k,x,E,e[u[S]],h[0],c[S])):S<32?(A=y(r,n,i,o,p,e[a[S]],l[1],f[S]),B=b(v,w,k,x,E,e[u[S]],h[1],c[S])):S<48?(A=g(r,n,i,o,p,e[a[S]],l[2],f[S]),B=g(v,w,k,x,E,e[u[S]],h[2],c[S])):S<64?(A=b(r,n,i,o,p,e[a[S]],l[3],f[S]),B=y(v,w,k,x,E,e[u[S]],h[3],c[S])):(A=m(r,n,i,o,p,e[a[S]],l[4],f[S]),B=_(v,w,k,x,E,e[u[S]],h[4],c[S])),r=p,p=o,o=d(i,10),i=n,n=A,v=E,E=x,x=d(k,10),k=w,w=B}var D=this._b+i+x|0;this._b=this._c+o+E|0,this._c=this._d+p+v|0,this._d=this._e+r+w|0,this._e=this._a+n+k|0,this._a=D},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=p},function(e,t,r){(t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r}).sha=r(274),t.sha1=r(275),t.sha224=r(276),t.sha256=r(167),t.sha384=r(277),t.sha512=r(168)},function(e,t,r){"use strict";var n=r(48);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);n>0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},function(e,t,r){var n=r(286),i=r(294),o=r(180);t.createCipher=t.Cipher=n.createCipher,t.createCipheriv=t.Cipheriv=n.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(o)}},function(e,t,r){var n={ECB:r(287),CBC:r(288),CFB:r(289),CFB8:r(290),CFB1:r(291),OFB:r(292),CTR:r(178),GCM:r(178)},i=r(180);for(var o in i)i[o].module=n[i[o].mode];e.exports=i},function(e,t,r){var n;function i(e){this.rand=e}if(e.exports=function(e){return n||(n=new i(null)),n.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=r(298);if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},function(e,t,r){(function(t){var n=r(30),i=r(73);function o(e,r){var i=function(e){var t=s(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(r),o=r.modulus.byteLength(),a=(n.mont(r.modulus),new n(e).mul(i.blinder).umod(r.modulus)),u=a.toRed(n.mont(r.prime1)),f=a.toRed(n.mont(r.prime2)),c=r.coefficient,l=r.prime1,h=r.prime2,p=u.redPow(r.exponent1),d=f.redPow(r.exponent2);p=p.fromRed(),d=d.fromRed();var _=p.isub(d).imul(c).umod(l);return _.imul(h),d.iadd(_),new t(d.imul(i.unblinder).umod(r.modulus).toArray(!1,o))}function s(e){for(var t=e.modulus.byteLength(),r=new n(i(t));r.cmp(e.modulus)>=0||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new n(i(t));return r}e.exports=o,o.getr=s}).call(this,r(11).Buffer)},function(e,t,r){"use strict";var n=t;n.version=r(303).version,n.utils=r(49),n.rand=r(125),n.curve=r(186),n.curves=r(128),n.ec=r(314),n.eddsa=r(318)},function(e,t,r){"use strict";var n,i=t,o=r(129),s=r(186),a=r(49).assert;function u(e){"short"===e.type?this.curve=new s.short(e):"edwards"===e.type?this.curve=new s.edwards(e):this.curve=new s.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),f("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(313)}catch(e){n=void 0}f("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){var n=t;n.utils=r(54),n.common=r(88),n.sha=r(307),n.ripemd=r(311),n.hmac=r(312),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){(function(){var e,n,i,o,s,a,u={}.hasOwnProperty;s=r(76).WordArray,a=r(114),i=function(e){function t(){t.__super__.constructor.call(this)}return function(e,t){for(var r in t)u.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.reset=function(){return t.__super__.reset.call(this),this._doReset(),this},t.prototype.update=function(e){return this._append(e),this._process(),this},t.prototype.finalize=function(e){return e&&this._append(e),this._doFinalize()},t.prototype.bufhash=function(e){var t,r,n;return r=s.from_buffer(e),t=(n=this.finalize(r)).to_buffer(),r.scrub(),n.scrub(),t},t}(n=function(){function e(){this.reset()}return e.prototype._minBufferSize=0,e.prototype.reset=function(){return this._data=new s,this._nDataBytes=0},e.prototype._append=function(e){return this._data.concat(e),this._nDataBytes+=e.sigBytes},e.prototype._process=function(e){var t,r,n,i,o,a,u,f,c,l;if(n=(t=this._data).words,i=(r=t.sigBytes)/(4*this.blockSize),a=(i=e?Math.ceil(i):Math.max((0|i)-this._minBufferSize,0))*this.blockSize,o=Math.min(4*a,r),a){for(u=c=0,l=this.blockSize;l>0?c<a:c>a;u=c+=l)this._doProcessBlock(n,u);f=n.splice(0,a),t.sigBytes-=o}return new s(f,o)},e.prototype.copy_to=function(e){return e._data=this._data.clone(),e._nDataBytes=this._nDataBytes},e.prototype.clone=function(){var t;return t=new e,this.copy_to(t),t},e}()),t.BlockCipher=e=function(){function e(e){}return e.prototype.encryptBlock=function(e,t){},e}(),o=function(){function e(){}return e.prototype.encryptBlock=function(e,t){var r,n;return null==t&&(t=0),n=this.get_pad(),r=Math.min(e.words.length-t,this.bsiw),e.xor(n,{dst_offset:t,n_words:r}),n.scrub(),this.bsiw},e.prototype.encrypt=function(e){var t,r,n,i;for(t=r=0,n=e.words.length,i=this.bsiw;i>0?r<n:r>n;t=r+=i)this.encryptBlock(e,t);return e},e.prototype.bulk_encrypt=function(e,t){var r,n,i,o,s,u;return n=e.input,i=e.progress_hook,s=e.what,o={update:(u=this,function(e,t){var r,i,o,s;for(s=[],r=i=e,o=u.bsiw;o>0?i<t:i>t;r=i+=o)s.push(u.encryptBlock(n,r));return s}),finalize:function(){return n},default_n:1024*this.bsiw},r={progress_hook:i,cb:t,what:s},a.bulk(n.sigBytes,o,r)},e}(),t.BlockCipher=e,t.Hasher=i,t.BufferedBlockAlgorithm=n,t.StreamCipher=o}).call(this)},,,,,,,function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l;f=r(34),c=r(36),n=c.openpgp,i=c.kb,l=r(95),o=l.SHA256,l.SHA512,a=r(115),u=r(156).util.bufeq_secure,s=r(94).SRF,t.BaseKey=function(){function t(){}return t.alloc=function(e,t,r){var n,i,o,s,u,f,c;for(null==r&&(r={}),o=t.length,n=null,s=0,u=(f=e.ORDER).length;s<u;s++)i=f[s],null==n&&(n=(c=a.mpi_from_buffer(t))[0],r[i]=c[1],t=c[2]);return n?[n,null]:[null,new e(r),o-t.length]},t.prototype.serialize=function(){var t;return e.concat(function(){var e,r,n,i;for(i=[],e=0,r=(n=this.ORDER).length;e<r;e++)t=n[e],i.push(this[t].to_mpi_buffer());return i}.call(this))},t.prototype.validity_check=function(e){return e(null)},t}(),t.BaseKeyPair=function(){function t(e){this.priv=e.priv,this.pub=e.pub,this.pub.parent=this,null!=this.priv&&(this.priv.parent=this)}return t.prototype.serialize=function(){return this.pub.serialize()},t.prototype.hash=function(){return o(this.serialize())},t.prototype.ekid=function(){return e.concat([e.from([i.kid.version,this.get_type()]),this.hash(),e.from([i.kid.trailer])])},t.prototype.can_sign=function(){return null!=this.priv},t.prototype.can_decrypt=function(){return null!=this.priv},t.prototype.has_private=function(){return null!=this.priv},t.prototype.fulfills_flags=function(e){return!1},t.prototype.is_toxic=function(){return!1},t.prototype.nbits=function(){var e;return null!=(e=this.pub)?e.nbits():void 0},t.prototype.good_for_flags=function(){return n.key_flags.encrypt_comm|n.key_flags.encrypt_storage|n.key_flags.certify_keys|n.key_flags.sign_data},t.prototype.eq=function(e){return this.type===e.type&&u(this.serialize(),e.serialize())},t.prototype.can_perform=function(e){return!(e&c.ops.sign&&!this.can_sign())&&!(e&c.ops.decrypt&&!this.can_decrypt())},t.parse=function(e,t){var r,n,i,o;return r=(o=e.Pub.alloc(t))[0],n=o[1],i=o[2],null!=n&&(n=new e({pub:n})),[r,n,i]},t.parse_kb=function(e,t){var r,n,i,o;return r=(o=e.Pub.alloc_kb(t))[0],n=o[1],i=o[2],null!=n&&(n=new e({pub:n})),[r,n,i]},t.prototype.add_priv=function(e){var t,r;return t=(r=Priv.alloc(e))[0],this.priv=r[1],[t,r[2]]},t.alloc=function(e,t){var r,n,i,o,s;return i=t.pub,n=t.priv,r=(o=e.Pub.alloc(i))[0],i=o[1],null==r&&null!=n&&(r=(s=e.Priv.alloc(n,i))[0],n=s[1]),null!=r?[r,null]:[null,new e({priv:n,pub:i})]},t.prototype.read_priv=function(e){var t,r;return t=(r=this.Priv.alloc(e,this.pub))[0],this.priv=r[1],t},t.prototype.find=function(e){return e.mod(this.max_value())},t.prototype.hide=function(e,t){var r,n,i,o,a,u,c,l,h,p,d;p=f.findDeferral(arguments),i=e.i,o=e.max,h=e.slosh,l=n=null,a=this.max_value(),function(e){if((r=a.bitLength())>o)return e(n=new Error("Can't hide > "+o+" bits; got "+r));c=o-r+h,function(e){d=new f.Deferrals(e,{parent:p,filename:"/Users/max/src/keybase/kbpgp/src/basekeypair.iced",funcname:"BaseKeyPair.hide"}),s().random_nbit(c,d.defer({assign_fn:function(){return u=arguments[0]},lineno:127})),d._fulfill()}((function(){return e(l=u.multiply(a).add(i))}))}((function(){return t(n,l)}))},t.prototype.validity_check=function(e){return this.pub.validity_check(e)},t.prototype._dsa_verify_update_and_check_hash=function(t,r){var n,i,o,s,a,u,c,l,h,p;c=f.findDeferral(arguments),u=t.sig,n=t.data,s=t.hasher,o=t.hash,a=t.klass,i=null,e.isBuffer(u)&&(h=a.read_sig_from_buf(u),i=h[0],u=h[1]),o||(o=s(n)),(p=this,function(e){if(2!==u.length)return e(i=new Error("Need an [r,s] pair for a DSA-style signature"));!function(e){l=new f.Deferrals(e,{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/basekeypair.iced",funcname:"BaseKeyPair._dsa_verify_update_and_check_hash"}),p.pub.verify(u,o,l.defer({assign_fn:function(){return i=arguments[0],arguments[1]},lineno:148})),l._fulfill()}(e)})((function(){return r(i)}))},t}()}).call(this)}).call(this,r(11).Buffer)},,,,,,,,function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t){},function(e,t,r){"use strict";var n=r(21).Buffer,i=r(148);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,o=n.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,r=o,i=a,t.copy(r,i),a+=s.data.length,s=s.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){(function(t){function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,r(26))},function(e,t,r){var n=r(11),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function s(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},s.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";e.exports=o;var n=r(103),i=r(56);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=r(17),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},function(e,t,r){e.exports=r(81)},function(e,t,r){e.exports=r(47)},function(e,t,r){e.exports=r(80).Transform},function(e,t,r){e.exports=r(80).PassThrough},function(e,t,r){(function(){t.armor=r(1300),t.util=r(713),t.userid=r(1301)}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o;o=r(354),r(36).openpgp,i=r(383),n=function(){function t(){this._psc=new i.Collection}return t.prototype.frame_packet=function(t,r){var n;return n=[e.from([192|t]),o.encode_length(r.length),r],e.concat(n)},t.prototype.set=function(e){var t,r,n;for(t in n=[],e)r=e[t],n.push(this[t]=r);return n},t.prototype.is_signature=function(){return!1},t.prototype.is_key_material=function(){return!1},t.prototype.is_duplicate_primary=function(){return!1},t.prototype.to_userid=function(){return null},t.prototype.to_user_attribute=function(){return null},t.prototype.to_literal=function(){return null},t.prototype.to_esk_packet=function(){return null},t.prototype.to_enc_data_packet=function(){return null},t.prototype.replay=function(){return this.frame_packet(this.tag,this.raw)},t.prototype.inflate=function(e){return e(null,null)},t.prototype.push_sig=function(e){return this._psc.push(e)},t.prototype.get_psc=function(){return this._psc},t.prototype.clear_psc=function(){return this._psc.clear()},t.prototype.get_data_signer=function(){return this.get_psc().get_data_signer()},t.prototype.get_data_signers=function(){return this.get_psc().get_data_signers()},t.prototype.get_signed_userids=function(){return[]},t.prototype.get_subkey_binding=function(){return null},t.prototype.is_self_signed=function(){return!1},t}(),t.Packet=n}).call(this)}).call(this,r(11).Buffer)},,,,,,,,,function(e,t,r){"use strict";var n=r(21).Buffer,i=r(68).Transform;function o(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r(17)(o,i),o.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},o.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},o.prototype.update=function(e,t){if(function(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));for(var r=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var o=this._blockOffset;o<this._blockSize;)r[o++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)r[this._blockOffset++]=e[i++];for(var s=0,a=8*e.length;a>0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},o.prototype._update=function(){throw new Error("_update is not implemented")},o.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},o.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=o},function(e,t,r){var n=r(17),i=r(75),o=r(21).Buffer,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function u(){this.init(),this._w=a,i.call(this,64,56)}function f(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function h(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,u=0|this._e,d=0|this._f,_=0|this._g,y=0|this._h,g=0;g<16;++g)r[g]=e.readInt32BE(4*g);for(;g<64;++g)r[g]=0|(((t=r[g-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[g-7]+p(r[g-15])+r[g-16];for(var b=0;b<64;++b){var m=y+h(u)+f(u,d,_)+s[b]+r[b]|0,v=l(n)+c(n,i,o)|0;y=_,_=d,d=u,u=a+m|0,a=o,o=i,i=n,n=m+v|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=u+this._e|0,this._f=d+this._f|0,this._g=_+this._g|0,this._h=y+this._h|0},u.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=u},function(e,t,r){var n=r(17),i=r(75),o=r(21).Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function u(){this.init(),this._w=a,i.call(this,128,112)}function f(e,t,r){return r^e&(t^r)}function c(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function h(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function d(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function _(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function g(e,t){return e>>>0<t>>>0?1:0}n(u,i),u.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},u.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,a=0|this._eh,u=0|this._fh,b=0|this._gh,m=0|this._hh,v=0|this._al,w=0|this._bl,k=0|this._cl,x=0|this._dl,E=0|this._el,S=0|this._fl,A=0|this._gl,B=0|this._hl,D=0;D<32;D+=2)t[D]=e.readInt32BE(4*D),t[D+1]=e.readInt32BE(4*D+4);for(;D<160;D+=2){var M=t[D-30],P=t[D-30+1],I=p(M,P),U=d(P,M),T=_(M=t[D-4],P=t[D-4+1]),R=y(P,M),F=t[D-14],C=t[D-14+1],O=t[D-32],z=t[D-32+1],L=U+C|0,N=I+F+g(L,U)|0;N=(N=N+T+g(L=L+R|0,R)|0)+O+g(L=L+z|0,z)|0,t[D]=N,t[D+1]=L}for(var j=0;j<160;j+=2){N=t[j],L=t[j+1];var K=c(r,n,i),q=c(v,w,k),G=l(r,v),H=l(v,r),V=h(a,E),Z=h(E,a),W=s[j],Y=s[j+1],X=f(a,u,b),$=f(E,S,A),J=B+Z|0,Q=m+V+g(J,B)|0;Q=(Q=(Q=Q+X+g(J=J+$|0,$)|0)+W+g(J=J+Y|0,Y)|0)+N+g(J=J+L|0,L)|0;var ee=H+q|0,te=G+K+g(ee,H)|0;m=b,B=A,b=u,A=S,u=a,S=E,a=o+Q+g(E=x+J|0,x)|0,o=i,x=k,i=n,k=w,n=r,w=v,r=Q+te+g(v=J+ee|0,J)|0}this._al=this._al+v|0,this._bl=this._bl+w|0,this._cl=this._cl+k|0,this._dl=this._dl+x|0,this._el=this._el+E|0,this._fl=this._fl+S|0,this._gl=this._gl+A|0,this._hl=this._hl+B|0,this._ah=this._ah+r+g(this._al,v)|0,this._bh=this._bh+n+g(this._bl,w)|0,this._ch=this._ch+i+g(this._cl,k)|0,this._dh=this._dh+o+g(this._dl,x)|0,this._eh=this._eh+a+g(this._el,E)|0,this._fh=this._fh+u+g(this._fl,S)|0,this._gh=this._gh+b+g(this._gl,A)|0,this._hh=this._hh+m+g(this._hl,B)|0},u.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=u},function(e,t,r){"use strict";var n=r(17),i=r(278),o=r(61),s=r(21).Buffer,a=r(170),u=r(120),f=r(121),c=s.alloc(128);function l(e,t){o.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>r)?t=("rmd160"===e?new u:f(e)).update(t).digest():t.length<r&&(t=s.concat([t,c],r));for(var n=this._ipad=s.allocUnsafe(r),i=this._opad=s.allocUnsafe(r),a=0;a<r;a++)n[a]=54^t[a],i[a]=92^t[a];this._hash="rmd160"===e?new u:f(e),this._hash.update(n)}n(l,o),l.prototype._update=function(e){this._hash.update(e)},l.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:f(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new l("rmd160",t):"md5"===e?new i(a,t):new l(e,t)}},function(e,t,r){var n=r(119);e.exports=function(e){return(new n).update(e).digest()}},function(e){e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(e,t,r){t.pbkdf2=r(280),t.pbkdf2Sync=r(175)},function(e,t,r){(function(t){var r=Math.pow(2,30)-1;function n(e,r){if("string"!=typeof e&&!t.isBuffer(e))throw new TypeError(r+" must be a buffer or string")}e.exports=function(e,t,i,o){if(n(e,"Password"),n(t,"Salt"),"number"!=typeof i)throw new TypeError("Iterations not a number");if(i<0)throw new TypeError("Bad iterations");if("number"!=typeof o)throw new TypeError("Key length not a number");if(o<0||o>r||o!=o)throw new TypeError("Bad key length")}}).call(this,r(11).Buffer)},function(e,t,r){var n;n="utf-8",e.exports=n},function(e,t,r){var n=r(170),i=r(120),o=r(121),s=r(173),a=r(174),u=r(21).Buffer,f=u.alloc(128),c={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function l(e,t,r){var s=function(e){return"rmd160"===e||"ripemd160"===e?function(e){return(new i).update(e).digest()}:"md5"===e?n:function(t){return o(e).update(t).digest()}}(e),a="sha512"===e||"sha384"===e?128:64;t.length>a?t=s(t):t.length<a&&(t=u.concat([t,f],a));for(var l=u.allocUnsafe(a+c[e]),h=u.allocUnsafe(a+c[e]),p=0;p<a;p++)l[p]=54^t[p],h[p]=92^t[p];var d=u.allocUnsafe(a+r+4);l.copy(d,0,0,a),this.ipad1=d,this.ipad2=l,this.opad=h,this.alg=e,this.blocksize=a,this.hash=s,this.size=c[e]}l.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,r,n,i){s(e,t,r,n),u.isBuffer(e)||(e=u.from(e,a)),u.isBuffer(t)||(t=u.from(t,a));var o=new l(i=i||"sha1",e,t.length),f=u.allocUnsafe(n),h=u.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var p=0,d=c[i],_=Math.ceil(n/d),y=1;y<=_;y++){h.writeUInt32BE(y,t.length);for(var g=o.run(h,o.ipad1),b=g,m=1;m<r;m++){b=o.run(b,o.ipad2);for(var v=0;v<d;v++)g[v]^=b[v]}g.copy(f,p),p+=d}return f}},function(e,t,r){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,s=6;s>=0;s-=2){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>>a+s&1}for(s=6;s>=0;s-=2){for(a=1;a<=25;a+=8)o<<=1,o|=t>>>a+s&1;for(a=1;a<=25;a+=8)o<<=1,o|=e>>>a+s&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,s=0;s<4;s++)for(var a=24;a>=0;a-=8)i<<=1,i|=t>>>a+s&1,i<<=1,i|=e>>>a+s&1;for(s=4;s<8;s++)for(a=24;a>=0;a-=8)o<<=1,o|=t>>>a+s&1,o<<=1,o|=e>>>a+s&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,s=7;s>=5;s--){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+s&1}for(a=0;a<=24;a+=8)i<<=1,i|=t>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var o=0,s=0,a=n.length>>>1,u=0;u<a;u++)o<<=1,o|=e>>>n[u]&1;for(u=a;u<n.length;u++)s<<=1,s|=t>>>n[u]&1;r[i+0]=o>>>0,r[i+1]=s>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r<o.length;r++)t<<=1,t|=e>>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},function(e,t,r){"use strict";var n=r(48),i=r(17),o=r(176),s=r(122);function a(){this.tmp=new Array(2),this.keys=null}function u(e){s.call(this,e);var t=new a;this._desState=t,this.deriveKeys(t,e.key)}i(u,s),e.exports=u,u.create=function(e){return new u(e)};var f=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=new Array(32),n.equal(t.length,this.blockSize,"Invalid key length");var r=o.readUInt32BE(t,0),i=o.readUInt32BE(t,4);o.pc1(r,i,e.tmp,0),r=e.tmp[0],i=e.tmp[1];for(var s=0;s<e.keys.length;s+=2){var a=f[s>>>1];r=o.r28shl(r,a),i=o.r28shl(i,a),o.pc2(r,i,e.keys,s)}},u.prototype._update=function(e,t,r,n){var i=this._desState,s=o.readUInt32BE(e,t),a=o.readUInt32BE(e,t+4);o.ip(s,a,i.tmp,0),s=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,s,a,i.tmp,0):this._decrypt(i,s,a,i.tmp,0),s=i.tmp[0],a=i.tmp[1],o.writeUInt32BE(r,s,n),o.writeUInt32BE(r,a,n+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)n.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,n,i){for(var s=t,a=r,u=0;u<e.keys.length;u+=2){var f=e.keys[u],c=e.keys[u+1];o.expand(a,e.tmp,0),f^=e.tmp[0],c^=e.tmp[1];var l=o.substitute(f,c),h=a;a=(s^o.permute(l))>>>0,s=h}o.rip(a,s,n,i)},u.prototype._decrypt=function(e,t,r,n,i){for(var s=r,a=t,u=e.keys.length-2;u>=0;u-=2){var f=e.keys[u],c=e.keys[u+1];o.expand(s,e.tmp,0),f^=e.tmp[0],c^=e.tmp[1];var l=o.substitute(f,c),h=s;s=(a^o.permute(l))>>>0,a=h}o.rip(s,a,n,i)}},function(e,t,r){var n=r(87),i=r(21).Buffer,o=r(179);function s(e){var t=e._cipher.encryptBlockRaw(e._prev);return o(e._prev),t}t.encrypt=function(e,t){var r=Math.ceil(t.length/16),o=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*r)]);for(var a=0;a<r;a++){var u=s(e),f=o+16*a;e._cache.writeUInt32BE(u[0],f+0),e._cache.writeUInt32BE(u[1],f+4),e._cache.writeUInt32BE(u[2],f+8),e._cache.writeUInt32BE(u[3],f+12)}var c=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,c)}},function(e,t){e.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},function(e){e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(e,t,r){var n=r(104),i=r(21).Buffer,o=r(61),s=r(17),a=r(293),u=r(87),f=r(179);function c(e,t,r,s){o.call(this);var u=i.alloc(4,0);this._cipher=new n.AES(t);var c=this._cipher.encryptBlock(u);this._ghash=new a(c),r=function(e,t,r){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var n=new a(r),o=t.length,s=o%16;n.update(t),s&&(s=16-s,n.update(i.alloc(s,0))),n.update(i.alloc(8,0));var u=8*o,c=i.alloc(8);c.writeUIntBE(u,0,8),n.update(c),e._finID=n.state;var l=i.from(e._finID);return f(l),l}(this,r,c),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}s(c,o),c.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=u(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},c.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},c.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},c.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=c},function(e,t,r){var n=r(104),i=r(21).Buffer,o=r(61);function s(e,t,r,s){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=s,this._mode=e}r(17)(s,o),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},e.exports=s},function(e,t,r){var n=r(73);e.exports=b,b.simpleSieve=y,b.fermatTest=g;var i=r(30),o=new i(24),s=new(r(184)),a=new i(1),u=new i(2),f=new i(5),c=(new i(16),new i(8),new i(10)),l=new i(3),h=(new i(7),new i(11)),p=new i(4),d=(new i(12),null);function _(){if(null!==d)return d;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!=0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return d=e,e}function y(e){for(var t=_(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function g(e){var t=i.mont(e);return 0===u.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function b(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var r,d;for(t=new i(t);;){for(r=new i(n(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(a),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(f))for(;r.mod(c).cmp(l);)r.iadd(p)}else for(;r.mod(o).cmp(h);)r.iadd(p);if(y(d=r.shrn(1))&&y(r)&&g(d)&&g(r)&&s.test(d)&&s.test(r))return r}}},function(e,t,r){var n=r(30),i=r(125);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),s=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var a=e.subn(1),u=0;!a.testn(u);u++);for(var f=e.shrn(u),c=a.toRed(o);t>0;t--){var l=this._randrange(new n(2),a);r&&r(l);var h=l.toRed(o).redPow(f);if(0!==h.cmp(s)&&0!==h.cmp(c)){for(var p=1;p<u;p++){if(0===(h=h.redSqr()).cmp(s))return!1;if(0===h.cmp(c))break}if(p===u)return!1}}return!0},o.prototype.getDivisor=function(e,t){var r=e.bitLength(),i=n.mont(e),o=new n(1).toRed(i);t||(t=Math.max(1,r/48|0));for(var s=e.subn(1),a=0;!s.testn(a);a++);for(var u=e.shrn(a),f=s.toRed(i);t>0;t--){var c=this._randrange(new n(2),s),l=e.gcd(c);if(0!==l.cmpn(1))return l;var h=c.toRed(i).redPow(u);if(0!==h.cmp(o)&&0!==h.cmp(f)){for(var p=1;p<a;p++){if(0===(h=h.redSqr()).cmp(o))return h.fromRed().subn(1).gcd(e);if(0===h.cmp(f))break}if(p===a)return(h=h.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},function(e,t,r){"use strict";var n=t;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,s=255&i;o?r.push(o,s):r.push(s)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},function(e,t,r){"use strict";var n=t;n.base=r(106),n.short=r(304),n.mont=r(305),n.edwards=r(306)},function(e,t,r){"use strict";var n=r(54).rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function s(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?s(t,r,n):2===e?o(t,r,n):void 0},t.ch32=i,t.maj32=o,t.p32=s,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(54),i=r(88),o=r(187),s=r(48),a=n.sum32,u=n.sum32_4,f=n.sum32_5,c=o.ch32,l=o.maj32,h=o.s0_256,p=o.s1_256,d=o.g0_256,_=o.g1_256,y=i.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}n.inherits(b,y),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=u(_(r[n-2]),r[n-7],d(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],y=this.h[2],g=this.h[3],b=this.h[4],m=this.h[5],v=this.h[6],w=this.h[7];for(s(this.k.length===r.length),n=0;n<r.length;n++){var k=f(w,p(b),c(b,m,v),this.k[n],r[n]),x=a(h(i),l(i,o,y));w=v,v=m,m=b,b=a(g,k),g=y,y=o,o=i,i=a(k,x)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],y),this.h[3]=a(this.h[3],g),this.h[4]=a(this.h[4],b),this.h[5]=a(this.h[5],m),this.h[6]=a(this.h[6],v),this.h[7]=a(this.h[7],w)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(54),i=r(88),o=r(48),s=n.rotr64_hi,a=n.rotr64_lo,u=n.shr64_hi,f=n.shr64_lo,c=n.sum64,l=n.sum64_hi,h=n.sum64_lo,p=n.sum64_4_hi,d=n.sum64_4_lo,_=n.sum64_5_hi,y=n.sum64_5_lo,g=i.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function m(){if(!(this instanceof m))return new m;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function v(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function w(e,t,r,n,i,o){var s=t&n^~t&o;return s<0&&(s+=4294967296),s}function k(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function x(e,t,r,n,i,o){var s=t&n^t&o^n&o;return s<0&&(s+=4294967296),s}function E(e,t){var r=s(e,t,28)^s(t,e,2)^s(t,e,7);return r<0&&(r+=4294967296),r}function S(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=s(e,t,14)^s(e,t,18)^s(t,e,9);return r<0&&(r+=4294967296),r}function B(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function D(e,t){var r=s(e,t,1)^s(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=a(e,t,1)^a(e,t,8)^f(e,t,7);return r<0&&(r+=4294967296),r}function P(e,t){var r=s(e,t,19)^s(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}function I(e,t){var r=a(e,t,19)^a(t,e,29)^f(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(m,g),e.exports=m,m.blockSize=1024,m.outSize=512,m.hmacStrength=192,m.padLength=128,m.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=P(r[n-4],r[n-3]),o=I(r[n-4],r[n-3]),s=r[n-14],a=r[n-13],u=D(r[n-30],r[n-29]),f=M(r[n-30],r[n-29]),c=r[n-32],l=r[n-31];r[n]=p(i,o,s,a,u,f,c,l),r[n+1]=d(i,o,s,a,u,f,c,l)}},m.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],s=this.h[2],a=this.h[3],u=this.h[4],f=this.h[5],p=this.h[6],d=this.h[7],g=this.h[8],b=this.h[9],m=this.h[10],D=this.h[11],M=this.h[12],P=this.h[13],I=this.h[14],U=this.h[15];o(this.k.length===r.length);for(var T=0;T<r.length;T+=2){var R=I,F=U,C=A(g,b),O=B(g,b),z=v(g,b,m,D,M),L=w(g,b,m,D,M,P),N=this.k[T],j=this.k[T+1],K=r[T],q=r[T+1],G=_(R,F,C,O,z,L,N,j,K,q),H=y(R,F,C,O,z,L,N,j,K,q);R=E(n,i),F=S(n,i),C=k(n,i,s,a,u),O=x(n,i,s,a,u,f);var V=l(R,F,C,O),Z=h(R,F,C,O);I=M,U=P,M=m,P=D,m=g,D=b,g=l(p,d,G,H),b=h(d,d,G,H),p=u,d=f,u=s,f=a,s=n,a=i,n=l(G,H,V,Z),i=h(G,H,V,Z)}c(this.h,0,n,i),c(this.h,2,s,a),c(this.h,4,u,f),c(this.h,6,p,d),c(this.h,8,g,b),c(this.h,10,m,D),c(this.h,12,M,P),c(this.h,14,I,U)},m.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){var n=r(17),i=r(90).Reporter,o=r(11).Buffer;function s(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return e instanceof a||(e=new a(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(s,i),t.DecoderBuffer=s,s.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},s.prototype.restore=function(e){var t=new s(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},s.prototype.isEmpty=function(){return this.offset===this.length},s.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},s.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new s(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},s.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.EncoderBuffer=a,a.prototype.join=function(e,t){return e||(e=new o(this.length)),t||(t=0),0===this.length?e:(Array.isArray(this.value)?this.value.forEach((function(r){r.join(e,t),t+=r.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):o.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length),e)}},function(e,t,r){var n=t;n._reverse=function(e){var t={};return Object.keys(e).forEach((function(r){(0|r)==r&&(r|=0);var n=e[r];t[n]=r})),t},n.der=r(326)},function(e,t,r){var n=r(17),i=r(89),o=i.base,s=i.bignum,a=i.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new f,this.tree._init(e.body)}function f(e){o.Node.call(this,"der",e)}function c(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=a.tagClass[r>>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:a.tag[r]}}function l(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o<i;o++){n<<=8;var s=e.readUInt8(r);if(e.isError(s))return s;n|=s}return n}e.exports=u,u.prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(f,o.Node),f.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=c(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},f.prototype._decodeTag=function(e,t,r){var n=c(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=l(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),s=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(s)?s:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},f.prototype._skipUntilEnd=function(e,t){for(;;){var r=c(e,t);if(e.isError(r))return r;var n,i=l(e,r.primitive,t);if(e.isError(i))return i;if(n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===r.tagStr)break}},f.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var s=r.decode(e,"der",n);if(e.isError(s)&&o)break;i.push(s)}return i},f.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===t){var s=e.raw().toString("ascii");return this._isNumstr(s)?s:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){var a=e.raw().toString("ascii");return this._isPrintstr(a)?a:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},f.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0;!e.isEmpty();){var s=e.readUInt8();o<<=7,o|=127&s,0==(128&s)&&(i.push(o),o=0)}128&s&&i.push(o);var a=i[0]/40|0,u=i[0]%40;if(n=r?i:[a,u].concat(i.slice(1)),t){var f=t[n.join(" ")];void 0===f&&(f=t[n.join(".")]),void 0!==f&&(n=f)}return n},f.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),s=0|r.slice(8,10),a=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),s=0|r.slice(6,8),a=0|r.slice(8,10),u=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,s,a,u,0)},f.prototype._decodeNull=function(e){return null},f.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},f.prototype._decodeInt=function(e,t){var r=e.raw(),n=new s(r);return t&&(n=t[n.toString(10)]||n),n},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},function(e,t,r){var n=r(17),i=r(11).Buffer,o=r(89),s=o.base,a=o.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new f,this.tree._init(e.body)}function f(e){s.Node.call(this,"der",e)}function c(e){return e<10?"0"+e:e}e.exports=u,u.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(f,s.Node),f.prototype._encodeComposite=function(e,t,r,n){var o,s=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(a.tagByName.hasOwnProperty(e))i=a.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(i>=31)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=a.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(o=new i(2))[0]=s,o[1]=n.length,this._createEncoderBuffer([o,n]);for(var u=1,f=n.length;f>=256;f>>=8)u++;(o=new i(2+u))[0]=s,o[1]=128|u;f=1+u;for(var c=n.length;c>0;f--,c>>=8)o[f]=255&c;return this._createEncoderBuffer([o,n])},f.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},f.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n<e.length;n++){var s=e[n];for(o++;s>=128;s>>=7)o++}var a=new i(o),u=a.length-1;for(n=e.length-1;n>=0;n--){s=e[n];for(a[u--]=127&s;(s>>=7)>0;)a[u--]=128|127&s}return this._createEncoderBuffer(a)},f.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[c(n.getFullYear()),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[c(n.getFullYear()%100),c(n.getUTCMonth()+1),c(n.getUTCDate()),c(n.getUTCHours()),c(n.getUTCMinutes()),c(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},f.prototype._encodeNull=function(){return this._createEncoderBuffer("")},f.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var s=e;s>=256;s>>=8)n++;for(s=(o=new Array(n)).length-1;s>=0;s--)o[s]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},f.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},f.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},f.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},function(e){e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(e,t,r){var n=r(85),i=r(21).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var r,s=i.alloc(0),a=0;s.length<t;)r=o(a++),s=i.concat([s,n("sha1").update(e).update(r).digest()]);return s.slice(0,t)}},function(e,t){e.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},function(e,t,r){var n=r(30),i=r(21).Buffer;e.exports=function(e,t){return i.from(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}},function(e,t,r){"use strict";e.exports=function(e,t,r,n){for(var i=65535&e|0,o=e>>>16&65535|0,s=0;0!==r;){r-=s=r>2e3?2e3:r;do{o=o+(i=i+t[n++]|0)|0}while(--s);i%=65521,o%=65521}return i|o<<16|0}},function(e,t,r){"use strict";var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();e.exports=function(e,t,r,i){var o=n,s=i+r;e^=-1;for(var a=i;a<s;a++)e=e>>>8^o[255&(e^t[a])];return-1^e}},function(e,t,r){(function(e){(function(){var r;r=function(){function t(t,r){if(this.buf=t,this.start=null!=r?r:0,!e.isBuffer(this.buf))throw new Error("need a Buffer!");this.i=this.start,this._end=null}return t.prototype.clamp=function(e){var t;return t=this._end,this._end=this.i+e,t},t.prototype.unclamp=function(e){return this.start=this.i,this._end=e},t.prototype.len=function(){return this.buf.length-this.start},t.prototype.rem=function(){return this.buf.length-this.i},t.prototype.offset=function(){return this.i-this.start},t.prototype.check=function(){if(this._end&&this.i>this._end||this.i>this.buf.length)throw new Error("read off the end of the packet @"+this.i+"/"+this.buf.length+"/"+this._end)},t.prototype.read_uint8=function(){var e;return e=this.buf.readUInt8(this.i++),this.check(),e},t.prototype.read_uint16=function(){var e;return e=this.buf.readUInt16BE(this.i),this.i+=2,this.check(),e},t.prototype.read_uint32=function(){var e;return e=this.buf.readUInt32BE(this.i),this.i+=4,this.check(),e},t.prototype.read_buffer_at_most=function(e){return this.read_buffer(Math.min(e,this.rem()))},t.prototype.read_buffer=function(e){var t;return t=this.buf.slice(this.i,this.i+e),this.i+=e,this.check(),t},t.prototype.end=function(){return this._end||this.buf.length},t.prototype.peek_rest_to_buffer=function(){return this.buf.slice(this.i,this.end())},t.prototype.consume_rest_to_buffer=function(){var e;return e=this.peek_rest_to_buffer(),this.i=this.end(),e},t.prototype.advance=function(e){return null==e&&(e=1),this.i+=e},t.prototype.peek_to_buffer=function(e){return this.buf.slice(this.i,this.i+e)},t.prototype.peek_uint8=function(){return this.buf.readUInt8(this.i)},t.prototype.peek_uint16=function(){return this.buf.readUInt16BE(this.i)},t.prototype.read_string=function(){return this.read_buffer(this.read_uint8())},t.prototype.read_v4_length=function(){var e,t;return e=!1,[(t=this.peek_uint8())<192?(this.advance(1),t):t<224?this.read_uint16()-49152+192:t<255?(this.advance(1),1<<(31&t)):(this.advance(1),e=!0,this.read_uint32()),e]},t}(),t.SlicerBuffer=r}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i,o,s,a,u={}.hasOwnProperty;a=r(50),s=a.katch,a.bufeq_fast,a.uint_to_buffer,e=r(36),n=r(460),o=r(156).armor,t.encode=function(t,r){var i;return i=e.openpgp.message_types,t=function(){switch(t){case i.public_key:return"PUBLIC KEY BLOCK";case i.private_key:return"PRIVATE KEY BLOCK";case i.signature:return"SIGNATURE";case i.generic:return"MESSAGE";default:throw new Error("Cannot encode tag type "+t)}}(),o.encode(n,t,r)},i=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)u.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.parse_type=function(){var t;return t=e.openpgp.message_types,this.ret.type=function(){switch(this.type){case"PUBLIC KEY BLOCK":return t.public_key;case"PRIVATE KEY BLOCK":return t.private_key;case"SIGNED MESSAGE":if(this.ret.clearsign)return t.clearsign;throw new Error("Signed message, but not clear-signed");case"SIGNATURE":return t.signature;case"MESSAGE":return t.generic;default:throw new Error("Unknown message type: "+this.type)}}.call(this),this.ret.fields.type=this.type},r}(o.Parser),t.Message=o.Message,t.decode=function(e){return s((function(){return new i(e).parse()}))},t.mdecode=function(e){return s((function(){return new i(e).mparse()}))},t.decode_strict=function(e){return s((function(){return new i(e,{strict:!0}).parse()}))}}).call(this)},,,,,,,,,,,,,,,,function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){var n=r(707).engine;let i;for(var o in i=r(n?1288:1287),i)t[o]=i[o]},,,,,,,,,,,,,,,function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(271),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(26))},,,,function(e,t,r){(function(){var e,n,i,o,s,a,u,f={}.hasOwnProperty;s=r(34),i=r(239).SHA512,n=r(456).SHA256,u=r(114),e=function(){function e(e,t){var r,n,o;for(null==t&&(t=i),this.key=e.clone(),this.hasher=new t,this.hasherBlockSize=this.hasher.blockSize,this.hasherBlockSizeBytes=4*this.hasherBlockSize,this.key.sigBytes>this.hasherBlockSizeBytes&&(this.key=this.hasher.finalize(this.key)),this.key.clamp(),this._oKey=this.key.clone(),this._iKey=this.key.clone(),r=n=0,o=this.hasherBlockSize;0<=o?n<o:n>o;r=0<=o?++n:--n)this._oKey.words[r]^=1549556828,this._iKey.words[r]^=909522486;this._oKey.sigBytes=this._iKey.sigBytes=this.hasherBlockSizeBytes,this.reset()}return e.outputSize=64,e.prototype.outputSize=e.outputSize,e.prototype.get_output_size=function(){return this.hasher.output_size},e.prototype.reset=function(){return this.hasher.reset().update(this._iKey)},e.prototype.update=function(e){return this.hasher.update(e),this},e.prototype.finalize=function(e){var t,r,n;return t=this.hasher.finalize(e),this.hasher.reset(),r=this._oKey.clone().concat(t),n=this.hasher.finalize(r),t.scrub(),r.scrub(),n},e.prototype.scrub=function(){return this.key.scrub(),this._iKey.scrub(),this._oKey.scrub()},e}(),a=function(t){var r,n,i,o,s;return o=t.key,i=t.input,n=t.hash_class,s=(r=new e(o,n)).finalize(i.clamp()),r.scrub(),s},o=function(t,r){var n,i,o,a,f,c,l,h,p,d,_;d=s.findDeferral(arguments),a=t.key,o=t.input,c=t.progress_hook,f=t.klass,p=t.what,n=t.combine_klasses,f||(f=e),p||(p="hmac_sha512"),i=new f(a,n),o.clamp(),h={update:function(e,t){return i.update(o.slice(e,t))},finalize:function(){return i.finalize()},default_n:1e3*i.hasherBlockSize},function(e){_=new s.Deferrals(e,{parent:d,filename:"/Users/max/src/keybase/triplesec/src/hmac.iced"}),u.bulk(o.sigBytes,h,{what:p,progress_hook:c,cb:_.defer({assign_fn:function(){return l=arguments[0]},lineno:137})}),_._fulfill()}((function(){return i.scrub(),r(l)}))},t.HMAC_SHA256=function(e){function t(e){t.__super__.constructor.call(this,e,n)}return function(e,t){for(var r in t)f.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t}(e),t.HMAC=e,t.sign=a,t.bulk_sign=o}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f={}.hasOwnProperty;u=r(76),o=u.X64Word,s=u.X64WordArray,n=r(130).Hasher,e=function(){function e(){this.K=this.convert([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]),this.I=new s(this.convert([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209])),this.W=function(){var e,t;for(t=[],e=0;e<80;++e)t.push(new o(0,0));return t}()}return e.convert=function(e){var t,r,n,i;for(i=[],t=r=0,n=e.length;r<n;t=r+=2)i.push(new o(e[t],e[t+1]));return i},e.prototype.convert=function(t){return e.convert(t)},e}(),t.Global=e,a=new e,t.SHA512=i=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)f.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.blockSize=32,t.prototype.blockSize=t.blockSize,t.output_size=64,t.prototype.output_size=t.output_size,t.prototype._doReset=function(){return this._hash=a.I.clone()},t.prototype._doProcessBlock=function(e,t){var r,n,i,o,s,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A,B,D,M,P,I,U,T,R,F,C,O,z,L,N,j,K,q,G,H,V,Z,W,Y,X,$,J,Q,ee,te,re,ne,ie,oe,se,ae,ue,fe,ce,le,he,pe,de,_e,ye,ge,be,me;for(r=this._hash.words,P=a.W,n=r[0],s=r[1],c=r[2],p=r[3],y=r[4],m=r[5],k=r[6],S=r[7],O=i=n.high,z=o=n.low,L=u=s.high,N=f=s.low,j=l=c.high,G=h=c.low,H=d=p.high,V=_=p.low,Z=g=y.high,W=b=y.low,Y=v=m.high,X=w=m.low,ae=x=k.high,ue=E=k.low,fe=A=S.high,ce=B=S.low,le=me=0;me<80;le=++me)I=P[le],le<16?(F=I.high=0|e[t+2*le],C=I.low=0|e[t+2*le+1]):($=((ee=(Q=P[le-15]).high)>>>1|(te=Q.low)<<31)^(ee>>>8|te<<24)^ee>>>7,J=(te>>>1|ee<<31)^(te>>>8|ee<<24)^(te>>>7|ee<<25),re=((oe=(ie=P[le-2]).high)>>>19|(se=ie.low)<<13)^(oe<<3|se>>>29)^oe>>>6,ne=(se>>>19|oe<<13)^(se<<3|oe>>>29)^(se>>>6|oe<<26),F=(F=(F=$+(R=P[le-7]).high+((C=J+R.low)>>>0<J>>>0?1:0))+re+((C+=ne)>>>0<ne>>>0?1:0))+(U=P[le-16]).high+((C+=T=U.low)>>>0<T>>>0?1:0),I.high=F,I.low=C),K=Z&Y^~Z&ae,q=W&X^~W&ue,he=O&L^O&j^L&j,pe=z&N^z&G^N&G,de=(O>>>28|z<<4)^(O<<30|z>>>2)^(O<<25|z>>>7),_e=(z>>>28|O<<4)^(z<<30|O>>>2)^(z<<25|O>>>7),ye=fe+((Z>>>14|W<<18)^(Z>>>18|W<<14)^(Z<<23|W>>>9))+((ge=ce+((W>>>14|Z<<18)^(W>>>18|Z<<14)^(W<<23|Z>>>9)))>>>0<ce>>>0?1:0),fe=ae,ce=ue,ae=Y,ue=X,Y=Z,X=W,Z=H+(ye=(ye=(ye=ye+K+((ge+=q)>>>0<q>>>0?1:0))+(D=a.K[le]).high+((ge+=M=D.low)>>>0<M>>>0?1:0))+F+((ge+=C)>>>0<C>>>0?1:0))+((W=V+ge|0)>>>0<V>>>0?1:0)|0,H=j,V=G,j=L,G=N,L=O,N=z,O=ye+(de+he+((be=_e+pe)>>>0<_e>>>0?1:0))+((z=ge+be|0)>>>0<ge>>>0?1:0)|0;return o=n.low=o+z,n.high=i+O+(o>>>0<z>>>0?1:0),f=s.low=f+N,s.high=u+L+(f>>>0<N>>>0?1:0),h=c.low=h+G,c.high=l+j+(h>>>0<G>>>0?1:0),_=p.low=_+V,p.high=d+H+(_>>>0<V>>>0?1:0),b=y.low=b+W,y.high=g+Z+(b>>>0<W>>>0?1:0),w=m.low=w+X,m.high=v+Y+(w>>>0<X>>>0?1:0),E=k.low=E+ue,k.high=x+ae+(E>>>0<ue>>>0?1:0),B=S.low=B+ce,S.high=A+fe+(B>>>0<ce>>>0?1:0)},t.prototype._doFinalize=function(){var e,t,r;return e=this._data.words,r=8*this._nDataBytes,e[(t=8*this._data.sigBytes)>>>5]|=128<<24-t%32,e[30+(t+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(t+128>>>10<<5)]=r,this._data.sigBytes=4*e.length,this._process(),this._hash.toX32()},t.prototype.copy_to=function(e){return t.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},t.prototype.clone=function(){var e;return e=new t,this.copy_to(e),e},t}(n),t.transform=function(e){var t;return t=(new i).finalize(e),e.scrub(),t}}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A,B,D,M,P,I,U,T,R,F,C,O,z,L,N,j,K,q,G,H,V,Z,W,Y,X,$,J,Q,ee,te,re={}.hasOwnProperty,ne=function(e,t){for(var r in t)re.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};Z=r(34),J=function(){},y=r(157).Packet,n=r(36).openpgp,M=n.sig_subpacket,Q=r(354),V=Q.encode_length,Q.make_time_packet,ee=r(50),$=ee.unix_time,X=ee.uint_to_buffer,H=ee.bufeq_secure,te=r(95),K=te.alloc_or_throw,I=te.SHA512,P=te.SHA1,G=r(241),r(64),Y=r(383),q=r(112),z=r(200).SlicerBuffer,W=r(62).make_esc,F=function(t){function r(e){this.key=e.key,this.hasher=e.hasher,this.key_id=e.key_id,this.sig_data=e.sig_data,this.public_key_class=e.public_key_class,this.signed_hash_value_hash=e.signed_hash_value_hash,this.time=e.time,this.sig=e.sig,this.type=e.type,this.version=e.version,null==this.hasher&&(this.hasher=I),this._framed_output=null}return ne(r,t),r.prototype.is_signature=function(){return!0},r.prototype.get_key_id=function(){return this.key_id},r.prototype.get_key_flags=function(){return 0},r.prototype.get_key_expires=function(){return 0},r.prototype.get_issuer_key_id=function(){return this.key_id},r.prototype.get_issuer_fingerprint=function(){return null},r.prototype.when_generated=function(){return this.time},r.prototype.time_of_primary_uid_sig=function(){return null},r.prototype.gen_prefix=function(){return e.concat([e.from([n.versions.signature.V3,this.type],X(32,this.time),this.key_id,e.from([this.key.type,this.hasher.type]))])},r.prototype.prepare_payload=function(t){var r,n;return(r=function(){var e,r,i;for(i=[],e=0,r=t.length;e<r;e++)n=t[e],i.push(n.to_signature_payload());return i}()).push(e.from([this.type]),X(32,this.time)),e.concat(r)},r.prototype.verify=function(e,t){var r,i,o,s,a,u,f,c,l,h,p;l=Z.findDeferral(arguments),i=n.sig_types,r=Y.SubkeyBinding,this.type===i.subkey_binding&&(e=[this.primary].concat(e)),u=this.prepare_payload(e),a=this.hasher(u),f=new z(a),c=f.read_uint16(),(p=this,function(t){if(c!==(o=p.signed_hash_value_hash))return t(s=new Error("quick hash check failed: "+c+" != "+o));!function(e){h=new Z.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/signature.iced",funcname:"Signature_v2_or_v3.verify"}),p.key.verify_unpad_and_check_hash({hash:a,hasher:p.hasher,sig:p.sig},h.defer({assign_fn:function(){return s=arguments[0]},lineno:86})),h._fulfill()}((function(){var n,o,a,u,f;if(null!=s);else if((f=p.type)===i.binary_doc||f===i.canonical_text)for(n=0,a=e.length;n<a;n++)e[n].push_sig(new Y.Data({sig:p}));else if(p.type===i.subkey_binding)for(o=0,u=e.length;o<u;o++)e[o].push_sig(new r({primary:p.primary,sig:p,direction:r.DOWN}));return t()}))})((function(){return t(s)}))},r}(y),R=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ne(t,e),t}(F),C=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return ne(t,e),t}(F),U=function(t){function r(e){this.key=e.key,this.hasher=e.hasher,this.key_id=e.key_id,this.sig_data=e.sig_data,this.public_key_class=e.public_key_class,this.signed_hash_value_hash=e.signed_hash_value_hash,this.hashed_subpackets=e.hashed_subpackets,this.time=e.time,this.sig=e.sig,this.type=e.type,this.unhashed_subpackets=e.unhashed_subpackets,this.version=e.version,null==this.hasher&&(this.hasher=I),null==this.hashed_subpackets&&(this.hashed_subpackets=[]),null==this.unhashed_subpackets&&(this.unhashed_subpackets=[]),this.subpacket_index=this._make_subpacket_index(),this._framed_output=null}return ne(r,t),r.prototype.get_key_id=function(){var e;return this.key_id?this.key_id:null!=(e=this.subpacket_index.all[M.issuer])?e.id:void 0},r.prototype._make_subpacket_index=function(){var e,t,r,n,i,o,s,a;for(t={hashed:{},unhashed:{},all:{}},r=0,i=(s=this.hashed_subpackets).length;r<i;r++)e=s[r],t.hashed[e.type]=e,t.all[e.type]=e;for(n=0,o=(a=this.unhashed_subpackets).length;n<o;n++)e=a[n],t.unhashed[e.type]=e,t.all[e.type]=e;return t},r.prototype.prepare_payload=function(t){var r,i,o,s,a;return r=e.concat(function(){var e,t,r,n;for(n=[],e=0,t=(r=this.hashed_subpackets).length;e<t;e++)s=r[e],n.push(s.to_buffer());return n}.call(this)),o=e.concat([e.from([n.versions.signature.V4,this.type,this.key.type,this.hasher.type]),X(16,r.length),r]),a=e.concat([e.from([n.versions.signature.V4,255]),X(32,o.length)]),{prefix:o,payload:i=e.concat([t,o,a]),hvalue:this.hasher(i)}},r.prototype.write_unframed=function(t,r){var n,i,o,s,a,u,f,c,l,h,p,d,_;h=Z.findDeferral(arguments),n=W(r,"write_unframed"),l=e.concat(function(){var e,t,r,n;for(n=[],e=0,t=(r=this.unhashed_subpackets).length;e<t;e++)f=r[e],n.push(f.to_buffer());return n}.call(this)),d=this.prepare_payload(t),s=d.prefix,o=d.payload,i=d.hvalue,(_=this,function(e){p=new Z.Deferrals(e,{parent:h,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/signature.iced",funcname:"Signature.write_unframed"}),_.key.pad_and_sign(o,{hasher:_.hasher},n(p.defer({assign_fn:function(){return c=arguments[0]},lineno:168}))),p._fulfill()})((function(){return a=e.concat([X(16,l.length),l,e.from([i.readUInt8(0),i.readUInt8(1)]),c]),u=e.concat([s,a]),r(null,u)}))},r.prototype.write=function(e,t){var r,i,o,s,a,u;s=Z.findDeferral(arguments),(u=this,function(t){a=new Z.Deferrals(t,{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/signature.iced",funcname:"Signature.write"}),u.write_unframed(e,a.defer({assign_fn:function(){return r=arguments[0],o=arguments[1]},lineno:181})),a._fulfill()})(function(e){return function(){return null==r&&(e._framed_output=i=e.frame_packet(n.packet_tags.signature,o)),t(r,i)}}(this))},r.prototype.get_framed_output=function(){return this._framed_output||this.replay()},r.parse=function(e){return new g(e).parse()},r.prototype.extract_key=function(e){var t,r,n,i;for(i=[],r=0,n=e.length;r<n;r++){if(null!=(t=e[r]).key){this.key=t.key;break}i.push(void 0)}return i},r.prototype.verify=function(e,t,r){var i,o,s,a,u,f,c;u=Z.findDeferral(arguments),(c=this,function(t){f=new Z.Deferrals(t,{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/signature.iced",funcname:"Signature.verify"}),c._verify(e,f.defer({assign_fn:function(){return i=arguments[0]},lineno:210}),r),f._fulfill()})(function(c){return function(){var l,h,p,d;p=c.unhashed_subpackets,h=p.length,l=0,(d=function(t){var _,y,g;return _=t,g=y=function(){return Z.trampoline((function(){return++l,d(t)}))},l<h?(o=p[l],null!=i||null==(s=o.to_sig())?y():void function(t){if(s.type!==n.sig_types.primary_binding)return t(i=new Error("unknown subpacket signature type: "+s.type));!function(t){if(1!==e.length)return t(i=new Error("Needed 1 data packet for a primary_binding signature"));a=e[0],s.parent=c,s.primary=c.primary,s.key=a.key,function(e){f=new Z.Deferrals(e,{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/signature.iced",funcname:"Signature.verify"}),s._verify([a],f.defer({assign_fn:function(){return i=arguments[0]},lineno:221}),r),f._fulfill()}(t)}(t)}(g)):_()})((function(){return t(i)}))}}(this))},r.prototype._verify=function(t,r,i){var o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E;k=Z.findDeferral(arguments),c=null,s=n.sig_types,m=null,this.data_packets=function(){switch(this.type){case s.binary_doc:case s.canonical_text:return t;case s.issuer:case s.persona:case s.casual:case s.positive:case s.certificate_revocation:case s.key_revocation:return(d=t.length)>1?(c=new Error("Only expecting one (or no) UserID-style packet(s) in a self-sig (got "+d+")"),[]):[this.primary].concat(t);case s.subkey_binding:case s.primary_binding:case s.subkey_revocation:return _=[],1!==t.length?c=new Error("Wrong number of data packets; expected only 1"):null==this.primary?c=new Error("Need a primary key for subkey signature"):(m=t[0],_=[this.primary,m]),_;case s.direct:return[this.primary].concat(t);default:return c=new Error("cannot verify sigtype "+this.type),[]}}.call(this),(E=this,function(t){var r;if(null!=c||E.is_third_party&&E.type===s.key_revocation)return t();a=function(){var e,t,r,n;for(n=[],e=0,t=(r=this.data_packets).length;e<t;e++)f=r[e],n.push(f.to_signature_payload());return n}.call(E),u=e.concat(a),r=E.prepare_payload(u),r.payload,h=r.hvalue,function(e){x=new Z.Deferrals(e,{parent:k,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/signature.iced",funcname:"Signature._verify"}),E.key.verify_unpad_and_check_hash({sig:E.sig,hash:h,hasher:E.hasher},x.defer({assign_fn:function(){return c=arguments[0]},lineno:273})),x._fulfill()}(t)})(function(e){return function(){var t,n,a,u;if(null==c&&null!=e.key_manager&&(c=e.key_manager.pgp_check_not_expired({subkey_material:e.subkey_material,now:null!=i?i.now:void 0})),null==c&&(i||(i={}),i.subkey=m,a=e._check_key_sig_expiration(i),c=a[0],p=a[1],b=a[2],i.subkey=null),g=e,null==c)switch(o=Y.SubkeyBinding,e.type){case s.binary_doc:case s.canonical_text:for(t=0,n=(u=e.data_packets).length;t<n;t++)u[t].push_sig(new Y.Data({sig:g}));break;case s.issuer:case s.persona:case s.casual:case s.positive:y=null,null!=(w=e.data_packets[1].to_userid())?(y=new Y.SelfSig({type:e.type,userid:w,sig:g}),w.push_sig(y)):null!=(v=e.data_packets[1].to_user_attribute())&&(y=new Y.SelfSig({type:e.type,user_attribute:v,sig:g,key_expiration:p,sig_expiration:b}),v.push_sig(y)),y&&e.primary.push_sig(y);break;case s.subkey_binding:m.push_sig(new o({primary:e.primary,sig:g,direction:o.DOWN,key_expiration:p,sig_expiration:b}));break;case s.primary_binding:m.push_sig(new o({primary:e.primary,sig:g,direction:o.UP,key_expiration:p,sig_expiration:b}));break;case s.subkey_revocation:m.mark_revoked(g);break;case s.key_revocation:e.issuer_matches_key(e.primary)?e.primary.mark_revoked(g):e.primary.add_designated_revocation(g);break;case s.direct:(l=e.subpacket_index.hashed[M.revocation_key])&&e.primary.add_designee(l);break;case s.certificate_revocation:null!=(w=e.data_packets[1].to_userid())&&w.mark_revoked(g);break;default:c=new Error("Got unknown signature type="+e.type)}return r(c)}}(this))},r.prototype._third_party_verify=function(t,r){var n,i,o,s,a,u,f,c,l,h,p;if(J,c=Z.findDeferral(arguments),!H(u=this.get_issuer_key_id(),f=t.get_key_id()))return r(new Error("Key id does not match: "+u.toString("hex")+" != "+f.toString("hex")));n=function(){var e,t,r,n;for(n=[],e=0,t=(r=this.data_packets).length;e<t;e++)o=r[e],n.push(o.to_signature_payload());return n}.call(this),i=e.concat(n),(h=this.prepare_payload(i)).payload,a=h.hvalue,(p=this,function(e){l=new Z.Deferrals(e,{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/signature.iced",funcname:"Signature._third_party_verify"}),t.key.verify_unpad_and_check_hash({sig:p.sig,hash:a,hasher:p.hasher},l.defer({assign_fn:function(){return s=arguments[0]},lineno:349})),l._fulfill()})((function(){return r(s)}))},r.prototype.is_signature=function(){return!0},r.prototype.issuer_matches_key=function(e){var t;return!(null!=(t=this.get_issuer_fingerprint())&&!H(t,this.primary.get_fingerprint()))&&H(this.get_issuer_key_id(),this.primary.get_key_id())},r.prototype.when_generated=function(){var e;return null!=(e=this.subpacket_index.hashed[M.creation_time])?e.time:void 0},r.prototype.get_key_expires=function(){var e;return null!=(e=this.subpacket_index.hashed[M.key_expiration_time])?e.time:void 0},r.prototype.get_sig_expires=function(){var e;return null!=(e=this.subpacket_index.hashed[M.expiration_time])?e.time:void 0},r.prototype.key_expiration_after_other=function(e){var t,r;return r=this.get_key_expires(),t=e.get_key_expires(),!r||!!t&&r>t},r.prototype.time_primary_pair=function(){var e,t,r;return e=n.sig_types,(t=this.type)===e.issuer||t===e.persona||t===e.casual||t===e.positive?[this.when_generated(),!!(null!=(r=this.subpacket_index.hashed[M.primary_user_id])?r.flag:void 0)]:null},r.prototype._check_key_sig_expiration=function(e){var t,r,i,o,s,a,u,f,c,l,h;return r=null,t=n.sig_types,o=0,c=0,(h=this.type)!==t.issuer&&h!==t.persona&&h!==t.casual&&h!==t.positive&&h!==t.subkey_binding&&h!==t.primary_binding||(i=(e.subkey||this.primary).timestamp,s=this.subpacket_index.hashed[M.key_expiration_time],f=this.subpacket_index.hashed[M.creation_time],l=this.subpacket_index.hashed[M.sig_expiration_time],u=null!=(a=null!=e?e.now:void 0)?a:$(),null!=i&&(null!=s?s.time:void 0)&&(o=i+s.time),null!=f&&(null!=l?l.time:void 0)&&(c=f.time+l.time),o&&!e.time_travel&&u>o&&(r=new Error("Key expired "+(u-o)+"s ago")),c&&!e.time_travel&&u>c&&(r=new Error("Sig expired "+(u-o)+"s ago"))),[r,o,c]},r.prototype.get_key_flags=function(){var e,t,r;return(null!=(e=this.subpacket_index)&&null!=(t=e.hashed)&&null!=(r=t[n.sig_subpacket.key_flags])?r.all_flags():void 0)||0},r.prototype.get_issuer_key_id=function(){var e,t;return null!=(e=this.subpacket_index)&&null!=(t=e.all[n.sig_subpacket.issuer])?t.id:void 0},r.prototype.get_issuer_fingerprint=function(){var e;return null!=(e=this.subpacket_index.all[M.issuer_fingerprint])?e.fingerprint:void 0},r}(y),L=function(){function t(e){this.type=e,this.critical=!1,this.five_byte_len=!1}return t.prototype.set_opts=function(e){var t,r;for(t in e)r=e[t],this[t]=r;return!0},t.prototype.to_buffer=function(){var t;return t=this._v_to_buffer(),e.concat([V(t.length+1,this.five_byte_len),X(8,this.type|(this.critical?128:0)),t])},t.prototype.to_sig=function(){return null},t.prototype.export_to_option=function(){return null},t}(),s=function(e){function t(e,t){this.buf=e,this.type=t}return ne(t,e),t.parse=function(e,r){return new t(e.consume_rest_to_buffer(),r)},t.prototype._v_to_buffer=function(){return this.buf},t}(L),N=function(e){function t(e,r){this.time=r,this.never_expires=0===this.time,t.__super__.constructor.call(this,e)}return ne(t,e),t.parse=function(e,t){return new t(e.read_uint32())},t.prototype._v_to_buffer=function(){return X(32,this.time)},t}(L),m=function(t){function r(e,t){var n,i,o,s;for(this.v=t,r.__super__.constructor.call(this,e),i=0,o=(s=this.v).length;i<o;i++)n=s[i],q(null!=n)}return ne(r,t),r.parse=function(e,t){var r;return new t(function(){var t,n,i,o;for(o=[],t=0,n=(i=e.consume_rest_to_buffer()).length;t<n;t++)r=i[t],o.push(r);return o}())},r.prototype._v_to_buffer=function(){var t;return e.from(function(){var e,r,n,i;for(i=[],e=0,r=(n=this.v).length;e<r;e++)t=n[e],i.push(t);return i}.call(this))},r}(L),i=function(e){function t(e){t.__super__.constructor.call(this,M.creation_time,e)}return ne(t,e),t.parse=function(e){return N.parse(e,t)},t}(N),a=function(e){function t(e){t.__super__.constructor.call(this,M.expiration_time,e)}return ne(t,e),t.parse=function(e){return N.parse(e,t)},t}(N),u=function(e){function t(e){this.flag=e,t.__super__.constructor.call(this,M.exportable_certificate)}return ne(t,e),t.parse=function(e){return new t(e.read_uint8())},t.prototype._v_to_buffer=function(){return X(8,this.flag)},t}(L),j=function(t){function r(e,t){this.level=e,this.amount=t,r.__super__.constructor.call(this,M.trust_signature)}return ne(r,t),r.parse=function(e){return new r(e.read_uint8(),e.read_uint8())},r.prototype._v_to_buffer=function(){return e.concat([X(8,this.level),X(8,this.amount)])},r}(L),A=function(t){function r(e){this.re=e,r.__super__.constructor.call(this,M.regular_expression)}return ne(r,t),r.parse=function(e){return new r(e.consume_rest_to_buffer().toString("utf8"))},r.prototype._v_to_buffer=function(){return e.from(this.re,"utf8")},r}(L),B=function(e){function t(e){this.flag=e,t.__super__.constructor.call(this,M.revocable)}return ne(t,e),t.parse=function(e){return new t(e.read_uint8())},t.prototype._v_to_buffer=function(){return X(8,this.flag)},t}(L),h=function(e){function t(e){t.__super__.constructor.call(this,M.key_expiration_time,e)}return ne(t,e),t.parse=function(e){return N.parse(e,t)},t}(N),x=function(e){function t(e){t.__super__.constructor.call(this,M.preferred_symmetric_algorithms,e)}return ne(t,e),t.parse=function(e){return m.parse(e,t)},t}(m),D=function(t){function r(e,t,n){this.key_class=e,this.alg=t,this.fingerprint=n,r.__super__.constructor.call(this,M.revocation_key)}return ne(r,t),r.parse=function(e){return new r(e.read_uint8(),e.read_uint8(),e.read_buffer(P.output_length))},r.prototype._v_to_buffer=function(){return e.concat([X(8,this.key_class),X(8,this.alg),e.from(this.fingerprint)])},r}(L),c=function(t){function r(e){this.id=e,r.__super__.constructor.call(this,M.issuer)}return ne(r,t),r.parse=function(e){return new r(e.read_buffer(8))},r.prototype._v_to_buffer=function(){return e.from(this.id)},r}(L),_=function(t){function r(e,t,n){this.flags=e,this.name=t,this.value=n,r.__super__.constructor.call(this,M.notation_data)}return ne(r,t),r.parse=function(e){var t,n,i;return t=e.read_uint32(),n=e.read_uint16(),i=e.read_uint16(),new r(t,e.read_buffer(n),e.read_buffer(i))},r.prototype._v_to_buffer=function(){return e.concat([X(32,this.flags),X(16,this.name.length),X(16,this.value.length),e.from(this.name),e.from(this.value)])},r}(L),w=function(e){function t(e){t.__super__.constructor.call(this,M.preferred_hash_algorithms,e)}return ne(t,e),t.parse=function(e){return m.parse(e,t)},t}(m),v=function(e){function t(e){t.__super__.constructor.call(this,M.preferred_compression_algorithms,e)}return ne(t,e),t.parse=function(e){return m.parse(e,t)},t}(m),d=function(e){function t(e){t.__super__.constructor.call(this,M.key_server_preferences,e)}return ne(t,e),t.parse=function(e){return m.parse(e,t)},t}(m),f=function(e){function t(e){t.__super__.constructor.call(this,M.features,e)}return ne(t,e),t.parse=function(e){return m.parse(e,t)},t}(m),k=function(e){function t(e){this.server=e,t.__super__.constructor.call(this,M.preferred_key_server)}return ne(t,e),t.parse=function(e){return new t(e.consume_rest_to_buffer())},t.prototype._v_to_buffer=function(){return this.server},t}(L),E=function(e){function t(e){this.flag=e,t.__super__.constructor.call(this,M.primary_user_id)}return ne(t,e),t.parse=function(e){return new t(e.read_uint8())},t.prototype._v_to_buffer=function(){return X(8,this.flag)},t}(L),b=function(e){function t(e){this.flag=e,t.__super__.constructor.call(this,M.policy_uri)}return ne(t,e),t.parse=function(e){return new t(e.consume_rest_to_buffer())},t.prototype._v_to_buffer=function(){return this.flag},t}(L),p=function(e){function t(e){t.__super__.constructor.call(this,M.key_flags,e)}return ne(t,e),t.parse=function(e){return m.parse(e,t)},t.prototype.all_flags=function(){var e,t,r,n;for(e=0,t=0,r=(n=this.v).length;t<r;t++)e|=n[t];return e},t}(m),O=function(e){function t(e){this.uid=e,t.__super__.constructor.call(this,M.signers_user_id)}return ne(t,e),t.parse=function(e){return new t(e.consume_rest_to_buffer())},t.prototype._v_to_buffer=function(){return this.uid},t}(L),S=function(t){function r(e,t){this.flag=e,this.reason=t,r.__super__.constructor.call(this,M.reason_for_revocation)}return ne(r,t),r.parse=function(e){return new r(e.read_uint8(),e.consume_rest_to_buffer())},r.prototype._v_to_buffer=function(){return e.concat([X(8,this.flag),this.reason])},r}(L),T=function(t){function r(e,t,n){this.pub_key_alg=e,this.hasher=t,this.hval=n,r.__super__.constructor.call(this,M.signature_target)}return ne(r,t),r.parse=function(e){var t;return new r(e.read_uint8(),t=K(e.read_uint8()),e.read_buffer(t.output_length))},r.prototype._v_to_buffer=function(){return e.concat([X(8,this.pub_key_alg),X(8,this.hasher.type),this.hval])},r}(L),o=function(e){function t(e){this.sig=e.sig,this.rawsig=e.rawsig,t.__super__.constructor.call(this,M.embedded_signature)}return ne(t,e),t.prototype._v_to_buffer=function(){return this.rawsig},t.prototype.to_sig=function(){return this.sig},t.parse=function(e){var r;return r=e.peek_rest_to_buffer(),new t({sig:U.parse(e),rawsig:r})},t}(L),l=function(t){function r(e,t){this.n=e,this.fingerprint=t,r.__super__.constructor.call(this,M.issuer_fingerprint)}return ne(r,t),r.parse=function(e){return new r(e.read_uint8(),e.consume_rest_to_buffer())},r.prototype._v_to_buffer=function(){return e.concat([X(8,this.n),this.fingerprint])},r}(L),t.Signature=U,g=function(){function e(e){this.slice=e}return e.prototype.parse_v2_or_v3=function(e,t){var r;if(5!==this.slice.read_uint8())throw new error("Bad one-octet length");return(r={}).type=this.slice.read_uint8(),r.time=this.slice.read_uint32(),r.sig_data=this.slice.peek_rest_to_buffer(),r.key_id=this.slice.read_buffer(8),r.public_key_class=G.get_class(this.slice.read_uint8()),r.hasher=K(this.slice.read_uint8()),r.signed_hash_value_hash=this.slice.read_uint16(),r.sig=r.public_key_class.parse_sig(this.slice),r.version=e,new t(r)},e.prototype.parse_v4=function(){var e,t,r,n;return(r={}).type=this.slice.read_uint8(),r.public_key_class=G.get_class(this.slice.read_uint8()),r.hasher=K(this.slice.read_uint8()),t=this.slice.read_uint16(),e=this.slice.i+t,r.sig_data=this.slice.peek_to_buffer(t),r.hashed_subpackets=function(){var t;for(t=[];this.slice.i<e;)t.push(this.parse_subpacket());return t}.call(this),n=this.slice.read_uint16(),e=this.slice.i+n,r.unhashed_subpackets=function(){var t;for(t=[];this.slice.i<e;)t.push(this.parse_subpacket());return t}.call(this),r.signed_hash_value_hash=this.slice.read_uint16(),r.sig=r.public_key_class.parse_sig(this.slice),r.version=4,new U(r)},e.prototype.parse_subpacket=function(){var e,t,r,n,y,g,m,P;return n=(P=this.slice.read_v4_length())[0],r=P[1],y=this.slice.read_uint8(),m=127&y,e=!!(128&y),t=this.slice.clamp(n-1),(g=function(){switch(m){case M.creation_time:return i;case M.expiration_time:return a;case M.exportable_certificate:return u;case M.trust_signature:return j;case M.regular_expression:return A;case M.revocable:return B;case M.key_expiration_time:return h;case M.preferred_symmetric_algorithms:return x;case M.revocation_key:return D;case M.issuer:return c;case M.notation_data:return _;case M.preferred_hash_algorithms:return w;case M.preferred_compression_algorithms:return v;case M.key_server_preferences:return d;case M.preferred_key_server:return k;case M.primary_user_id:return E;case M.policy_uri:return b;case M.key_flags:return p;case M.signers_user_id:return O;case M.reason_for_revocation:return S;case M.features:return f;case M.signature_target:return T;case M.embedded_signature:return o;case M.issuer_fingerprint:return l;default:if(m>=M.experimental_low&&m<=M.experimental_high)return s;throw new Error("Unknown signature subpacket: "+m)}}().parse(this.slice,m)).set_opts({critical:e,five_byte_len:r}),this.slice.unclamp(t),g},e.prototype.parse=function(){var e;switch(e=this.slice.read_uint8()){case n.versions.signature.V2:return this.parse_v2_or_v3(e,R);case n.versions.signature.V3:return this.parse_v2_or_v3(e,C);case n.versions.signature.V4:return this.parse_v4();default:throw new Error("Unknown signature version: "+e)}},e}(),t.CreationTime=i,t.KeyFlags=p,t.KeyExpirationTime=h,t.PreferredSymmetricAlgorithms=x,t.PreferredHashAlgorithms=w,t.PreferredCompressionAlgorithms=v,t.Features=f,t.KeyServerPreferences=d,t.Issuer=c,t.EmbeddedSignature=o,t.PrimaryUserId=E}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var t,n,i,o,s,a,u,f;t=r(36).openpgp.public_key_algorithms,u=r(379).RSA,n=r(722).DSA,a=r(723).ElGamal,o=r(381).ECDSA,i=r(382).ECDH,s=r(462).EDDSA,f=function(e){switch(e){case t.RSA:case t.RSA_ENCRYPT_ONLY:case t.RSA_SIGN_ONLY:return u;case t.ELGAMAL:return a;case t.DSA:return n;case t.ECDSA:return o;case t.ECDH:return i;case t.EDDSA:return s;default:throw new Error("unknown public key system: "+e)}},e.exports={get_class:f,RSA:u,DSA:n,ElGamal:a}}).call(this)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,i,o,s,a,u=1,f={},c=!1,l=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){d(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){d(e.data)},n=function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(i=l.documentElement,n=function(e){var t=l.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(d,0,e)}:(s="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&d(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(s+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var i={callback:e,args:t};return f[u]=i,n(u),u++},h.clearImmediate=p}function p(e){delete f[e]}function d(e){if(c)setTimeout(d,0,e);else{var t=f[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(r,n)}}(t)}finally{p(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(26),r(25))},,,function(e,t,r){var n=r(17),i=r(75),o=r(21).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function u(){this.init(),this._w=a,i.call(this,64,56)}function f(e){return e<<30|e>>>2}function c(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,u=0|this._e,l=0;l<16;++l)r[l]=e.readInt32BE(4*l);for(;l<80;++l)r[l]=r[l-3]^r[l-8]^r[l-14]^r[l-16];for(var h=0;h<80;++h){var p=~~(h/20),d=0|((t=n)<<5|t>>>27)+c(p,i,o,a)+u+r[h]+s[p];u=a,a=o,o=f(i),i=n,n=d}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){var n=r(17),i=r(75),o=r(21).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function u(){this.init(),this._w=a,i.call(this,64,56)}function f(e){return e<<5|e>>>27}function c(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(e){for(var t,r=this._w,n=0|this._a,i=0|this._b,o=0|this._c,a=0|this._d,u=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=(t=r[h-3]^r[h-8]^r[h-14]^r[h-16])<<1|t>>>31;for(var p=0;p<80;++p){var d=~~(p/20),_=f(n)+l(d,i,o,a)+u+r[p]+s[d]|0;u=a,a=o,o=c(i),i=n,n=_}this._a=n+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=a+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=u},function(e,t,r){var n=r(17),i=r(167),o=r(75),s=r(21).Buffer,a=new Array(64);function u(){this.init(),this._w=a,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=s.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=u},function(e,t,r){var n=r(17),i=r(168),o=r(75),s=r(21).Buffer,a=new Array(160);function u(){this.init(),this._w=a,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var e=s.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=u},function(e,t,r){"use strict";var n=r(17),i=r(21).Buffer,o=r(61),s=i.alloc(128),a=64;function u(e,t){o.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>a?t=e(t):t.length<a&&(t=i.concat([t,s],a));for(var r=this._ipad=i.allocUnsafe(a),n=this._opad=i.allocUnsafe(a),u=0;u<a;u++)r[u]=54^t[u],n[u]=92^t[u];this._hash=[r]}n(u,o),u.prototype._update=function(e){this._hash.push(e)},u.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=u},function(e,t,r){e.exports=r(171)},function(e,t,r){(function(t,n){var i,o=r(173),s=r(174),a=r(175),u=r(21).Buffer,f=t.crypto&&t.crypto.subtle,c={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},l=[];function h(e,t,r,n,i){return f.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return f.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)})).then((function(e){return u.from(e)}))}e.exports=function(e,r,p,d,_,y){"function"==typeof _&&(y=_,_=void 0);var g=c[(_=_||"sha1").toLowerCase()];if(!g||"function"!=typeof t.Promise)return n.nextTick((function(){var t;try{t=a(e,r,p,d,_)}catch(e){return y(e)}y(null,t)}));if(o(e,r,p,d),"function"!=typeof y)throw new Error("No callback provided to pbkdf2");u.isBuffer(e)||(e=u.from(e,s)),u.isBuffer(r)||(r=u.from(r,s)),function(e,t){e.then((function(e){n.nextTick((function(){t(null,e)}))}),(function(e){n.nextTick((function(){t(e)}))}))}(function(e){if(t.process&&!t.process.browser)return Promise.resolve(!1);if(!f||!f.importKey||!f.deriveBits)return Promise.resolve(!1);if(void 0!==l[e])return l[e];var r=h(i=i||u.alloc(8),i,10,128,e).then((function(){return!0})).catch((function(){return!1}));return l[e]=r,r}(g).then((function(t){return t?h(e,r,p,d,g):a(e,r,p,d,_)})),y)}}).call(this,r(26),r(25))},function(e,t,r){var n=r(282),i=r(123),o=r(124),s=r(295),a=r(105);function u(e,t,r){if(e=e.toLowerCase(),o[e])return i.createCipheriv(e,t,r);if(s[e])return new n({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function f(e,t,r){if(e=e.toLowerCase(),o[e])return i.createDecipheriv(e,t,r);if(s[e])return new n({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");r=8*s[e].key,n=s[e].iv}var i=a(t,!1,r,n);return u(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=u,t.createDecipher=t.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),o[e])r=o[e].key,n=o[e].iv;else{if(!s[e])throw new TypeError("invalid suite type");r=8*s[e].key,n=s[e].iv}var i=a(t,!1,r,n);return f(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=f,t.listCiphers=t.getCiphers=function(){return Object.keys(s).concat(i.getCiphers())}},function(e,t,r){var n=r(61),i=r(283),o=r(17),s=r(21).Buffer,a={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function u(e){n.call(this);var t,r=e.mode.toLowerCase(),i=a[r];t=e.decrypt?"decrypt":"encrypt";var o=e.key;s.isBuffer(o)||(o=s.from(o)),"des-ede"!==r&&"des-ede-cbc"!==r||(o=s.concat([o,o.slice(0,8)]));var u=e.iv;s.isBuffer(u)||(u=s.from(u)),this._des=i.create({key:o,iv:u,type:t})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],e.exports=u,o(u,n),u.prototype._update=function(e){return s.from(this._des.update(e))},u.prototype._final=function(){return s.from(this._des.final())}},function(e,t,r){"use strict";t.utils=r(176),t.Cipher=r(122),t.DES=r(177),t.CBC=r(284),t.EDE=r(285)},function(e,t,r){"use strict";var n=r(48),i=r(17),o={};function s(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var r=Object.keys(o),n=0;n<r.length;n++){var s=r[n];t.prototype[s]=o[s]}return t.create=function(e){return new t(e)},t},o._cbcInit=function(){var e=new s(this.options.iv);this._cbcState=e},o._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,s=i.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)s[a]^=e[t+a];o._update.call(this,s,0,r,n);for(a=0;a<this.blockSize;a++)s[a]=r[n+a]}else{o._update.call(this,e,t,r,n);for(a=0;a<this.blockSize;a++)r[n+a]^=s[a];for(a=0;a<this.blockSize;a++)s[a]=e[t+a]}}},function(e,t,r){"use strict";var n=r(48),i=r(17),o=r(122),s=r(177);function a(e,t){n.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),i=t.slice(8,16),o=t.slice(16,24);this.ciphers="encrypt"===e?[s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:i}),s.create({type:"encrypt",key:o})]:[s.create({type:"decrypt",key:o}),s.create({type:"encrypt",key:i}),s.create({type:"decrypt",key:r})]}function u(e){o.call(this,e);var t=new a(this.type,this.options.key);this._edeState=t}i(u,o),e.exports=u,u.create=function(e){return new u(e)},u.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},u.prototype._pad=s.prototype._pad,u.prototype._unpad=s.prototype._unpad},function(e,t,r){var n=r(124),i=r(181),o=r(21).Buffer,s=r(182),a=r(61),u=r(104),f=r(105);function c(e,t,r){a.call(this),this._cache=new h,this._cipher=new u.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}r(17)(c,a),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return o.concat(n)};var l=o.alloc(16,16);function h(){this.cache=o.allocUnsafe(0)}function p(e,t,r){var a=n[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=o.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=o.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===a.type?new s(a.module,t,r):"auth"===a.type?new i(a.module,t,r):new c(a.module,t,r)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(l))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=o.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return o.concat([this.cache,t])},t.createCipheriv=p,t.createCipher=function(e,t){var r=n[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var i=f(t,!1,r.key,r.iv);return p(e,i.key,i.iv)}},function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},function(e,t,r){var n=r(87);t.encrypt=function(e,t){var r=n(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},t.decrypt=function(e,t){var r=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return n(i,r)}},function(e,t,r){var n=r(21).Buffer,i=r(87);function o(e,t,r){var o=t.length,s=i(t,e._cache);return e._cache=e._cache.slice(o),e._prev=n.concat([e._prev,r?t:s]),s}t.encrypt=function(e,t,r){for(var i,s=n.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=n.allocUnsafe(0)),!(e._cache.length<=t.length)){s=n.concat([s,o(e,t,r)]);break}i=e._cache.length,s=n.concat([s,o(e,t.slice(0,i),r)]),t=t.slice(i)}return s}},function(e,t,r){var n=r(21).Buffer;function i(e,t,r){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=n.concat([e._prev.slice(1),n.from([r?t:i])]),i}t.encrypt=function(e,t,r){for(var o=t.length,s=n.allocUnsafe(o),a=-1;++a<o;)s[a]=i(e,t[a],r);return s}},function(e,t,r){var n=r(21).Buffer;function i(e,t,r){for(var n,i,s=-1,a=0;++s<8;)n=t&1<<7-s?128:0,a+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>s%8,e._prev=o(e._prev,r?n:i);return a}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);for(e=n.concat([e,n.from([t])]);++i<r;)o[i]=e[i]<<1|e[i+1]>>7;return o}t.encrypt=function(e,t,r){for(var o=t.length,s=n.allocUnsafe(o),a=-1;++a<o;)s[a]=i(e,t[a],r);return s}},function(e,t,r){(function(e){var n=r(87);function i(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(t,r){for(;t._cache.length<r.length;)t._cache=e.concat([t._cache,i(t)]);var o=t._cache.slice(0,r.length);return t._cache=t._cache.slice(r.length),n(r,o)}}).call(this,r(11).Buffer)},function(e,t,r){var n=r(21).Buffer,i=n.alloc(16,0);function o(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},s.prototype._multiply=function(){for(var e,t,r=function(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}(this.h),n=[0,0,0,0],i=-1;++i<128;){for(0!=(this.state[~~(i/8)]&1<<7-i%8)&&(n[0]^=r[0],n[1]^=r[1],n[2]^=r[2],n[3]^=r[3]),t=0!=(1&r[3]),e=3;e>0;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,t&&(r[0]=r[0]^225<<24)}this.state=o(n)},s.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},e.exports=s},function(e,t,r){var n=r(181),i=r(21).Buffer,o=r(124),s=r(182),a=r(61),u=r(104),f=r(105);function c(e,t,r){a.call(this),this._cache=new l,this._last=void 0,this._cipher=new u.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function l(){this.cache=i.allocUnsafe(0)}function h(e,t,r){var a=o[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=i.from(r)),"GCM"!==a.mode&&r.length!==a.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=i.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===a.type?new s(a.module,t,r,!0):"auth"===a.type?new n(a.module,t,r,!0):new c(a.module,t,r)}r(17)(c,a),c.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return i.concat(n)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;for(;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},l.prototype.add=function(e){this.cache=i.concat([this.cache,e])},l.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},l.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var r=o[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=f(t,!1,r.key,r.iv);return h(e,n.key,n.iv)},t.createDecipheriv=h},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var n=r(183),i=r(299),o=r(300);var s={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(t){var r=new e(i[t].prime,"hex"),n=new e(i[t].gen,"hex");return new o(r,n)},t.createDiffieHellman=t.DiffieHellman=function t(r,i,a,u){return e.isBuffer(i)||void 0===s[i]?t(r,"binary",i,a):(i=i||"binary",u=u||"binary",a=a||new e([2]),e.isBuffer(a)||(a=new e(a,u)),"number"==typeof r?new o(n(r,a),a,!0):(e.isBuffer(r)||(r=new e(r,i)),new o(r,a,!0)))}}).call(this,r(11).Buffer)},function(e,t){},function(e,t){},function(e){e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(e,t,r){(function(t){var n=r(30),i=new(r(184)),o=new n(24),s=new n(11),a=new n(10),u=new n(3),f=new n(7),c=r(183),l=r(73);function h(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._pub=new n(e),this}function p(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this._priv=new n(e),this}e.exports=_;var d={};function _(e,t,r){this.setGenerator(t),this.__prime=new n(e),this._prime=n.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=h,this.setPrivateKey=p):this._primeCode=8}function y(e,r){var n=new t(e.toArray());return r?n.toString(r):n}Object.defineProperty(_.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in d)return d[n];var l,h=0;if(e.isEven()||!c.simpleSieve||!c.fermatTest(e)||!i.test(e))return h+=1,h+="02"===r||"05"===r?8:4,d[n]=h,h;switch(i.test(e.shrn(1))||(h+=2),r){case"02":e.mod(o).cmp(s)&&(h+=8);break;case"05":(l=e.mod(a)).cmp(u)&&l.cmp(f)&&(h+=8);break;default:h+=4}return d[n]=h,h}(this.__prime,this.__gen)),this._primeCode}}),_.prototype.generateKeys=function(){return this._priv||(this._priv=new n(l(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},_.prototype.computeSecret=function(e){var r=(e=(e=new n(e)).toRed(this._prime)).redPow(this._priv).fromRed(),i=new t(r.toArray()),o=this.getPrime();if(i.length<o.length){var s=new t(o.length-i.length);s.fill(0),i=t.concat([s,i])}return i},_.prototype.getPublicKey=function(e){return y(this._pub,e)},_.prototype.getPrivateKey=function(e){return y(this._priv,e)},_.prototype.getPrime=function(e){return y(this.__prime,e)},_.prototype.getGenerator=function(e){return y(this._gen,e)},_.prototype.setGenerator=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.__gen=e,this._gen=new n(e),this}}).call(this,r(11).Buffer)},function(e,t,r){(function(t){var n=r(85),i=r(68),o=r(17),s=r(302),a=r(334),u=r(171);function f(e){i.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function c(e){i.Writable.call(this);var t=u[e];if(!t)throw new Error("Unknown message digest");this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function l(e){return new f(e)}function h(e){return new c(e)}Object.keys(u).forEach((function(e){u[e].id=new t(u[e].id,"hex"),u[e.toLowerCase()]=u[e]})),o(f,i.Writable),f.prototype._write=function(e,t,r){this._hash.update(e),r()},f.prototype.update=function(e,r){return"string"==typeof e&&(e=new t(e,r)),this._hash.update(e),this},f.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=s(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},o(c,i.Writable),c.prototype._write=function(e,t,r){this._hash.update(e),r()},c.prototype.update=function(e,r){return"string"==typeof e&&(e=new t(e,r)),this._hash.update(e),this},c.prototype.verify=function(e,r,n){"string"==typeof r&&(r=new t(r,n)),this.end();var i=this._hash.digest();return a(r,i,e,this._signType,this._tag)},e.exports={Sign:l,Verify:h,createSign:l,createVerify:h}}).call(this,r(11).Buffer)},function(e,t,r){(function(t){var n=r(169),i=r(126),o=r(127).ec,s=r(30),a=r(107),u=r(194);function f(e,r,i,o){if((e=new t(e.toArray())).length<r.byteLength()){var s=new t(r.byteLength()-e.length);s.fill(0),e=t.concat([s,e])}var a=i.length,u=function(e,r){e=(e=c(e,r)).mod(r);var n=new t(e.toArray());if(n.length<r.byteLength()){var i=new t(r.byteLength()-n.length);i.fill(0),n=t.concat([i,n])}return n}(i,r),f=new t(a);f.fill(1);var l=new t(a);return l.fill(0),l=n(o,l).update(f).update(new t([0])).update(e).update(u).digest(),f=n(o,l).update(f).digest(),{k:l=n(o,l).update(f).update(new t([1])).update(e).update(u).digest(),v:f=n(o,l).update(f).digest()}}function c(e,t){var r=new s(e),n=(e.length<<3)-t.bitLength();return n>0&&r.ishrn(n),r}function l(e,r,i){var o,s;do{for(o=new t(0);8*o.length<e.bitLength();)r.v=n(i,r.k).update(r.v).digest(),o=t.concat([o,r.v]);s=c(o,e),r.k=n(i,r.k).update(r.v).update(new t([0])).digest(),r.v=n(i,r.k).update(r.v).digest()}while(-1!==s.cmp(e));return s}function h(e,t,r,n){return e.toRed(s.mont(r)).redPow(t).fromRed().mod(n)}e.exports=function(e,r,n,p,d){var _=a(r);if(_.curve){if("ecdsa"!==p&&"ecdsa/rsa"!==p)throw new Error("wrong private key type");return function(e,r){var n=u[r.curve.join(".")];if(!n)throw new Error("unknown curve "+r.curve.join("."));var i=new o(n).keyFromPrivate(r.privateKey).sign(e);return new t(i.toDER())}(e,_)}if("dsa"===_.type){if("dsa"!==p)throw new Error("wrong private key type");return function(e,r,n){var i,o=r.params.priv_key,a=r.params.p,u=r.params.q,p=r.params.g,d=new s(0),_=c(e,u).mod(u),y=!1,g=f(o,u,e,n);for(;!1===y;)i=l(u,g,n),d=h(p,i,a,u),0===(y=i.invm(u).imul(_.add(o.mul(d))).mod(u)).cmpn(0)&&(y=!1,d=new s(0));return function(e,r){e=e.toArray(),r=r.toArray(),128&e[0]&&(e=[0].concat(e));128&r[0]&&(r=[0].concat(r));var n=[48,e.length+r.length+4,2,e.length];return n=n.concat(e,[2,r.length],r),new t(n)}(d,y)}(e,_,n)}if("rsa"!==p&&"ecdsa/rsa"!==p)throw new Error("wrong private key type");e=t.concat([d,e]);for(var y=_.modulus.byteLength(),g=[0,1];e.length+g.length+1<y;)g.push(255);g.push(0);for(var b=-1;++b<e.length;)g.push(e[b]);return i(g,_)},e.exports.getKey=f,e.exports.makeKey=l}).call(this,r(11).Buffer)},function(e){e.exports=JSON.parse('{"_args":[["elliptic@6.5.1","/builds/personal/chef.hellinga.it/CyberChef"]],"_development":true,"_from":"elliptic@6.5.1","_id":"elliptic@6.5.1","_inBundle":false,"_integrity":"sha512-xvJINNLbTeWQjrl6X+7eQCrIy/YPv5XCpKW6kB5mKvtnGILoLDcySuwomfdzt0BMdLNVnuRNTuzKNHj0bva1Cg==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"elliptic@6.5.1","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.1","saveSpec":null,"fetchSpec":"6.5.1"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.1.tgz","_spec":"6.5.1","_where":"/builds/personal/chef.hellinga.it/CyberChef","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.4","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.6.0","mocha":"^6.1.4"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.1"}')},function(e,t,r){"use strict";var n=r(49),i=r(30),o=r(17),s=r(106),a=n.assert;function u(e){s.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function f(e,t,r,n){s.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(e,t,r,n){s.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,s),e.exports=u,u.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var o=this._getEndoRoots(this.n);0===this.g.mul(o[0]).x.cmp(this.g.x.redMul(t))?r=o[0]:(r=o[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),o=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(o).fromRed(),n.redSub(o).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,o,s,a,u,f,c,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,p=this.n.clone(),d=new i(1),_=new i(0),y=new i(0),g=new i(1),b=0;0!==h.cmpn(0);){var m=p.div(h);f=p.sub(m.mul(h)),c=y.sub(m.mul(d));var v=g.sub(m.mul(_));if(!n&&f.cmp(l)<0)t=u.neg(),r=d,n=f.neg(),o=c;else if(n&&2==++b)break;u=f,p=h,h=f,y=d,d=c,g=_,_=v}s=f.neg(),a=c;var w=n.sqr().add(o.sqr());return s.sqr().add(a.sqr()).cmp(w)>=0&&(s=t,a=r),n.negative&&(n=n.neg(),o=o.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:n,b:o},{a:s,b:a}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),u=i.mul(r.b),f=o.mul(n.b);return{k1:e.sub(s).sub(a),k2:u.add(f).neg()}},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var s=this._endoSplit(t[o]),a=e[o],u=a._getBeta();s.k1.negative&&(s.k1.ineg(),a=a.neg(!0)),s.k2.negative&&(s.k2.ineg(),u=u.neg(!0)),n[2*o]=a,n[2*o+1]=u,i[2*o]=s.k1,i[2*o+1]=s.k2}for(var f=this._wnafMulAdd(1,n,i,2*o,r),c=0;c<2*o;c++)n[c]=null,i[c]=null;return f},o(f,s.BasePoint),u.prototype.point=function(e,t,r){return new f(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return f.fromJSON(this,e,t)},f.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},f.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},f.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var o=t[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return this.inf},f.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},f.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},f.prototype.getX=function(){return this.x.fromRed()},f.prototype.getY=function(){return this.y.fromRed()},f.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},f.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},f.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},f.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},f.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(c,s.BasePoint),u.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var f=a.redSqr(),c=f.redMul(a),l=n.redMul(f),h=u.redSqr().redIAdd(c).redISub(l).redISub(l),p=u.redMul(l.redISub(h)).redISub(o.redMul(c)),d=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(h,p,d)},c.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),f=u.redMul(s),c=r.redMul(u),l=a.redSqr().redIAdd(f).redISub(c).redISub(c),h=a.redMul(c.redISub(l)).redISub(i.redMul(f)),p=this.z.redMul(s);return this.curve.jpoint(l,h,p)},c.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var n=this.curve.a,i=this.curve.tinv,o=this.x,s=this.y,a=this.z,u=a.redSqr().redSqr(),f=s.redAdd(s);for(r=0;r<e;r++){var c=o.redSqr(),l=f.redSqr(),h=l.redSqr(),p=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(u)),d=o.redMul(l),_=p.redSqr().redISub(d.redAdd(d)),y=d.redISub(_),g=p.redMul(y);g=g.redIAdd(g).redISub(h);var b=f.redMul(a);r+1<e&&(u=u.redMul(h)),o=_,a=b,f=g}return this.curve.jpoint(o,f.redMul(i),a)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n),u=a.redSqr().redISub(s).redISub(s),f=o.redIAdd(o);f=(f=f.redIAdd(f)).redIAdd(f),e=u,t=a.redMul(s.redISub(u)).redISub(f),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),l=this.y.redSqr(),h=l.redSqr(),p=this.x.redAdd(l).redSqr().redISub(c).redISub(h);p=p.redIAdd(p);var d=c.redAdd(c).redIAdd(c),_=d.redSqr(),y=h.redIAdd(h);y=(y=y.redIAdd(y)).redIAdd(y),e=_.redISub(p).redISub(p),t=d.redMul(p.redISub(e)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},c.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),s=this.x.redAdd(i).redSqr().redISub(n).redISub(o);s=s.redIAdd(s);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=a.redSqr().redISub(s).redISub(s);e=u;var f=o.redIAdd(o);f=(f=f.redIAdd(f)).redIAdd(f),t=a.redMul(s.redISub(u)).redISub(f),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),l=this.y.redSqr(),h=this.x.redMul(l),p=this.x.redSub(c).redMul(this.x.redAdd(c));p=p.redAdd(p).redIAdd(p);var d=h.redIAdd(h),_=(d=d.redIAdd(d)).redAdd(d);e=p.redSqr().redISub(_),r=this.y.redAdd(this.z).redSqr().redISub(l).redISub(c);var y=l.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=p.redMul(d.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,r)},c.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),s=r.redSqr(),a=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),f=(u=u.redIAdd(u)).redMul(s),c=a.redSqr().redISub(f.redAdd(f)),l=f.redISub(c),h=s.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var p=a.redMul(l).redISub(h),d=r.redAdd(r).redMul(n);return this.curve.jpoint(c,p,d)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),s=this.x.redAdd(t).redSqr().redISub(e).redISub(n),a=(s=(s=(s=s.redIAdd(s)).redAdd(s).redIAdd(s)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var f=i.redIAdd(s).redSqr().redISub(o).redISub(a).redISub(u),c=t.redMul(f);c=(c=c.redIAdd(c)).redIAdd(c);var l=this.x.redMul(a).redISub(c);l=(l=l.redIAdd(l)).redIAdd(l);var h=this.y.redMul(f.redMul(u.redISub(f)).redISub(s.redMul(a)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var p=this.z.redAdd(s).redSqr().redISub(r).redISub(a);return this.curve.jpoint(l,h,p)},c.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},c.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},c.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(30),i=r(17),o=r(106),s=r(49);function a(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function u(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(a,o),e.exports=a,a.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(u,o.BasePoint),a.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},a.prototype.point=function(e,t){return new u(this,e,t)},a.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},u.prototype.precompute=function(){},u.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},u.fromJSON=function(e,t){return new u(e,t[0],t[1]||e.one)},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},u.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},u.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),s=i.redMul(n),a=t.z.redMul(o.redAdd(s).redSqr()),u=t.x.redMul(o.redISub(s).redSqr());return this.curve.point(a,u)},u.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},u.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},u.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},u.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(49),i=r(30),o=r(17),s=r(106),a=n.assert;function u(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,s.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function f(e,t,r,n,o){s.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(u,s),e.exports=u,u.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},u.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},u.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},u.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),s=n.redMul(o.redInvm()),a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");var u=a.fromRed().isOdd();return(t&&!u||!t&&u)&&(a=a.redNeg()),this.point(e,a)},u.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),s=n.redMul(o.redInvm());if(0===s.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},u.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(f,s.BasePoint),u.prototype.pointFromJSON=function(e){return f.fromJSON(this,e)},u.prototype.point=function(e,t,r,n){return new f(this,e,t,r,n)},f.fromJSON=function(e,t){return new f(e,t[0],t[1],t[2])},f.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},f.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),s=o.redSub(r),a=n.redSub(t),u=i.redMul(s),f=o.redMul(a),c=i.redMul(a),l=s.redMul(o);return this.curve.point(u,f,l,c)},f.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var s=(f=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),t=s.redMul(f.redSub(o)),r=s.redSqr().redSub(s).redSub(s);else{var a=this.z.redSqr(),u=s.redSub(a).redISub(a);e=n.redSub(i).redISub(o).redMul(u),t=s.redMul(f.redSub(o)),r=s.redMul(u)}}else{var f=i.redAdd(o);a=this.curve._mulC(this.z).redSqr(),u=f.redSub(a).redSub(a);e=this.curve._mulC(n.redISub(f)).redMul(u),t=this.curve._mulC(f).redMul(i.redISub(o)),r=f.redMul(u)}return this.curve.point(e,t,r)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},f.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),s=i.redSub(n),a=i.redAdd(n),u=r.redAdd(t),f=o.redMul(s),c=a.redMul(u),l=o.redMul(u),h=s.redMul(a);return this.curve.point(f,c,h,l)},f.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),s=this.y.redMul(e.y),a=this.curve.d.redMul(o).redMul(s),u=i.redSub(a),f=i.redAdd(a),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(s),l=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(f).redMul(s.redSub(this.curve._mulA(o))),r=u.redMul(f)):(t=n.redMul(f).redMul(s.redSub(o)),r=this.curve._mulC(u).redMul(f)),this.curve.point(l,t,r)},f.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},f.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},f.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},f.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},f.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},f.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},f.prototype.getX=function(){return this.normalize(),this.x.fromRed()},f.prototype.getY=function(){return this.normalize(),this.y.fromRed()},f.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},f.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},f.prototype.toP=f.prototype.normalize,f.prototype.mixedAdd=f.prototype.add},function(e,t,r){"use strict";t.sha1=r(308),t.sha224=r(309),t.sha256=r(188),t.sha384=r(310),t.sha512=r(189)},function(e,t,r){"use strict";var n=r(54),i=r(88),o=r(187),s=n.rotl32,a=n.sum32,u=n.sum32_5,f=o.ft_1,c=i.BlockHash,l=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,c),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=s(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],c=this.h[2],h=this.h[3],p=this.h[4];for(n=0;n<r.length;n++){var d=~~(n/20),_=u(s(i,5),f(d,o,c,h),p,r[n],l[d]);p=h,h=c,c=s(o,30),o=i,i=_}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],o),this.h[2]=a(this.h[2],c),this.h[3]=a(this.h[3],h),this.h[4]=a(this.h[4],p)},h.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(54),i=r(188);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(e,t,r){"use strict";var n=r(54),i=r(189);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(e,t,r){"use strict";var n=r(54),i=r(88),o=n.rotl32,s=n.sum32,a=n.sum32_3,u=n.sum32_4,f=i.BlockHash;function c(){if(!(this instanceof c))return new c;f.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function l(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function p(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(c,f),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],f=this.h[3],c=this.h[4],b=r,m=n,v=i,w=f,k=c,x=0;x<80;x++){var E=s(o(u(r,l(x,n,i,f),e[d[x]+t],h(x)),y[x]),c);r=c,c=f,f=o(i,10),i=n,n=E,E=s(o(u(b,l(79-x,m,v,w),e[_[x]+t],p(x)),g[x]),k),b=k,k=w,w=o(v,10),v=m,m=E}E=a(this.h[1],i,w),this.h[1]=a(this.h[2],f,k),this.h[2]=a(this.h[3],c,b),this.h[3]=a(this.h[4],r,m),this.h[4]=a(this.h[0],n,v),this.h[0]=E},c.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var d=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],_=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,r){"use strict";var n=r(54),i=r(48);function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(e,t,r){"use strict";var n=r(30),i=r(315),o=r(49),s=r(128),a=r(125),u=o.assert,f=r(316),c=r(317);function l(e){if(!(this instanceof l))return new l(e);"string"==typeof e&&(u(s.hasOwnProperty(e),"Unknown curve "+e),e=s[e]),e instanceof s.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=l,l.prototype.keyPair=function(e){return new f(this,e)},l.prototype.keyFromPrivate=function(e,t){return f.fromPrivate(this,e,t)},l.prototype.keyFromPublic=function(e,t){return f.fromPublic(this,e,t)},l.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),o=this.n.sub(new n(2));;){var s=new n(t.generate(r));if(!(s.cmp(o)>0))return s.iaddn(1),this.keyFromPrivate(s)}},l.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},l.prototype.sign=function(e,t,r,o){"object"==typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var s=this.n.byteLength(),a=t.getPrivate().toArray("be",s),u=e.toArray("be",s),f=new i({hash:this.hash,entropy:a,nonce:u,pers:o.pers,persEnc:o.persEnc||"utf8"}),l=this.n.sub(new n(1)),h=0;;h++){var p=o.k?o.k(h):new n(f.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(l)>=0)){var d=this.g.mul(p);if(!d.isInfinity()){var _=d.getX(),y=_.umod(this.n);if(0!==y.cmpn(0)){var g=p.invm(this.n).mul(y.mul(t.getPrivate()).iadd(e));if(0!==(g=g.umod(this.n)).cmpn(0)){var b=(d.getY().isOdd()?1:0)|(0!==_.cmp(y)?2:0);return o.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),b^=1),new c({r:y,s:g,recoveryParam:b})}}}}}},l.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i);var o=(t=new c(t,"hex")).r,s=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var a,u=s.invm(this.n),f=u.mul(e).umod(this.n),l=u.mul(o).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(f,r.getPublic(),l)).isInfinity()&&a.eqXToP(o):!(a=this.g.mulAdd(f,r.getPublic(),l)).isInfinity()&&0===a.getX().umod(this.n).cmp(o)},l.prototype.recoverPubKey=function(e,t,r,i){u((3&r)===r,"The recovery param is more than two bits"),t=new c(t,i);var o=this.n,s=new n(e),a=t.r,f=t.s,l=1&r,h=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");a=h?this.curve.pointFromX(a.add(this.curve.n),l):this.curve.pointFromX(a,l);var p=t.r.invm(o),d=o.sub(s).mul(p).umod(o),_=f.mul(p).umod(o);return this.g.mulAdd(d,a,_)},l.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new c(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(129),i=r(185),o=r(48);function s(e){if(!(this instanceof s))return new s(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=s,s.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},s.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},s.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},s.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=i.toArray(e,t),r=i.toArray(r,n),o(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},s.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var s=o.slice(0,e);return this._update(r),this._reseed++,i.encode(s,t)}},function(e,t,r){"use strict";var n=r(30),i=r(49).assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=o,o.fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(e,t,r){"use strict";var n=r(30),i=r(49),o=i.assert;function s(e,t){if(e instanceof s)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function u(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,s=t.place;o<n;o++,s++)i<<=8,i|=e[s];return t.place=s,i}function f(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function c(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=s,s.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new a;if(48!==e[r.place++])return!1;if(u(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var o=u(e,r),s=e.slice(r.place,o+r.place);if(r.place+=o,2!==e[r.place++])return!1;var f=u(e,r);if(e.length!==f+r.place)return!1;var c=e.slice(r.place,f+r.place);return 0===s[0]&&128&s[1]&&(s=s.slice(1)),0===c[0]&&128&c[1]&&(c=c.slice(1)),this.r=new n(s),this.s=new n(c),this.recoveryParam=null,!0},s.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=f(t),r=f(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];c(n,t.length),(n=n.concat(t)).push(2),c(n,r.length);var o=n.concat(r),s=[48];return c(s,o.length),s=s.concat(o),i.encode(s,e)}},function(e,t,r){"use strict";var n=r(129),i=r(128),o=r(49),s=o.assert,a=o.parseBytes,u=r(319),f=r(320);function c(e){if(s("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(e);e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=c,c.prototype.sign=function(e,t){e=a(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),s=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),u=n.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:u,Rencoded:o})},c.prototype.verify=function(e,t,r){e=a(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(e){return u.fromPublic(this,e)},c.prototype.keyFromSecret=function(e){return u.fromSecret(this,e)},c.prototype.makeSignature=function(e){return e instanceof f?e:new f(this,e)},c.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},c.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},c.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(e){return o.intFromLE(e)},c.prototype.isPoint=function(e){return e instanceof this.pointClass}},function(e,t,r){"use strict";var n=r(49),i=n.assert,o=n.parseBytes,s=n.cachedProperty;function a(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}a.fromPublic=function(e,t){return t instanceof a?t:new a(e,{pub:t})},a.fromSecret=function(e,t){return t instanceof a?t:new a(e,{secret:t})},a.prototype.secret=function(){return this._secret},s(a,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),s(a,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),s(a,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),s(a,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),s(a,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),s(a,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),a.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},a.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},a.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},a.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=a},function(e,t,r){"use strict";var n=r(30),i=r(49),o=i.assert,s=i.cachedProperty,a=i.parseBytes;function u(e,t){this.eddsa=e,"object"!=typeof t&&(t=a(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}s(u,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),s(u,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),s(u,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),s(u,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=u},function(e,t,r){"use strict";var n=r(89);t.certificate=r(331);var i=n.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var o=n.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=o;var s=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));t.PublicKey=s;var a=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),u=n.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=u;var f=n.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=f;var c=n.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=c,t.DSAparam=n.define("DSAparam",(function(){this.int()}));var l=n.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=l;var h=n.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=n.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},function(e,t,r){var n=r(89),i=r(17);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){var t;try{t=r(323).runInThisContext("(function "+this.name+"(entity) {\n  this._initNamed(entity);\n})")}catch(e){t=function(e){this._initNamed(e)}}return i(t,e),t.prototype._initNamed=function(t){e.call(this,t)},new t(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},function(module,exports){var indexOf=function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(e){if(!(e instanceof Context))throw new TypeError("needs a 'context' argument.");var t=document.createElement("iframe");t.style||(t.style={}),t.style.display="none",document.body.appendChild(t);var r=t.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(e),(function(t){r[t]=e[t]})),forEach(globals,(function(t){e[t]&&(r[t]=e[t])}));var o=Object_keys(r),s=n.call(r,this.code);return forEach(Object_keys(r),(function(t){(t in e||-1===indexOf(o,t))&&(e[t]=r[t])})),forEach(globals,(function(t){t in e||defineProp(e,t,r[t])})),document.body.removeChild(t),s},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(e){var t=Script.createContext(e),r=this.runInContext(t);return e&&forEach(Object_keys(t),(function(r){e[r]=t[r]})),r},forEach(Object_keys(Script.prototype),(function(e){exports[e]=Script[e]=function(t){var r=Script(t);return r[e].apply(r,[].slice.call(arguments,1))}})),exports.isContext=function(e){return e instanceof Context},exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(e){var t=new Context;return"object"==typeof e&&forEach(Object_keys(e),(function(r){t[r]=e[r]})),t}},function(e,t,r){var n=r(17);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(e,t,r){var n=r(90).Reporter,i=r(90).EncoderBuffer,o=r(90).DecoderBuffer,s=r(48),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function f(e,t){var r={};this._baseState=r,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=f;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];f.prototype.clone=function(){var e=this._baseState,t={};c.forEach((function(r){t[r]=e[r]}));var r=new this.constructor(t.parent);return r._baseState=t,r},f.prototype._wrap=function(){var e=this._baseState;u.forEach((function(t){this[t]=function(){var r=new this.constructor(this);return e.children.push(r),r[t].apply(r,arguments)}}),this)},f.prototype._init=function(e){var t=this._baseState;s(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),s.equal(t.children.length,1,"Root node can have only one child")},f.prototype._useArgs=function(e){var t=this._baseState,r=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==r.length&&(s(null===t.children),t.children=r,r.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(s(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(r){r==(0|r)&&(r|=0);var n=e[r];t[n]=r})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){f.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),a.forEach((function(e){f.prototype[e]=function(){var t=this._baseState,r=Array.prototype.slice.call(arguments);return s(null===t.tag),t.tag=e,this._useArgs(r),this}})),f.prototype.use=function(e){s(e);var t=this._baseState;return s(null===t.use),t.use=e,this},f.prototype.optional=function(){return this._baseState.optional=!0,this},f.prototype.def=function(e){var t=this._baseState;return s(null===t.default),t.default=e,t.optional=!0,this},f.prototype.explicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.explicit=e,this},f.prototype.implicit=function(e){var t=this._baseState;return s(null===t.explicit&&null===t.implicit),t.implicit=e,this},f.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},f.prototype.key=function(e){var t=this._baseState;return s(null===t.key),t.key=e,this},f.prototype.any=function(){return this._baseState.any=!0,this},f.prototype.choice=function(e){var t=this._baseState;return s(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},f.prototype.contains=function(e){var t=this._baseState;return s(null===t.use),t.contains=e,this},f.prototype._decode=function(e,t){var r=this._baseState;if(null===r.parent)return e.wrapResult(r.children[0]._decode(e,t));var n,i=r.default,s=!0,a=null;if(null!==r.key&&(a=e.enterKey(r.key)),r.optional){var u=null;if(null!==r.explicit?u=r.explicit:null!==r.implicit?u=r.implicit:null!==r.tag&&(u=r.tag),null!==u||r.any){if(s=this._peekTag(e,u,r.any),e.isError(s))return s}else{var f=e.save();try{null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),s=!0}catch(e){s=!1}e.restore(f)}}if(r.obj&&s&&(n=e.enterObject()),s){if(null!==r.explicit){var c=this._decodeTag(e,r.explicit);if(e.isError(c))return c;e=c}var l=e.offset;if(null===r.use&&null===r.choice){if(r.any)f=e.save();var h=this._decodeTag(e,null!==r.implicit?r.implicit:r.tag,r.any);if(e.isError(h))return h;r.any?i=e.raw(f):e=h}if(t&&t.track&&null!==r.tag&&t.track(e.path(),l,e.length,"tagged"),t&&t.track&&null!==r.tag&&t.track(e.path(),e.offset,e.length,"content"),i=r.any?i:null===r.choice?this._decodeGeneric(r.tag,e,t):this._decodeChoice(e,t),e.isError(i))return i;if(r.any||null!==r.choice||null===r.children||r.children.forEach((function(r){r._decode(e,t)})),r.contains&&("octstr"===r.tag||"bitstr"===r.tag)){var p=new o(i);i=this._getUse(r.contains,e._reporterState.obj)._decode(p,t)}}return r.obj&&s&&(i=e.leaveObject(n)),null===r.key||null===i&&!0!==s?null!==a&&e.exitKey(a):e.leaveKey(a,r.key,i),i},f.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},f.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),s(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},f.prototype._decodeChoice=function(e,t){var r=this._baseState,n=null,i=!1;return Object.keys(r.choice).some((function(o){var s=e.save(),a=r.choice[o];try{var u=a._decode(e,t);if(e.isError(u))return!1;n={type:o,value:u},i=!0}catch(t){return e.restore(s),!1}return!0}),this),i?n:e.error("Choice not matched")},f.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},f.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},f.prototype._encodeValue=function(e,t,r){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new n);var o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var s=null,a=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)s=this._getUse(i.contains,r)._encode(e,t),a=!0;else if(i.children)s=i.children.map((function(r){if("null_"===r._baseState.tag)return r._encode(null,t,e);if(null===r._baseState.key)return t.error("Child should have a key");var n=t.enterKey(r._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");var i=r._encode(e[r._baseState.key],t,e);return t.leaveKey(n),i}),this).filter((function(e){return e})),s=this._createEncoderBuffer(s);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,s=this._createEncoderBuffer(e.map((function(r){var n=this._baseState;return this._getUse(n.args[0],e)._encode(r,t)}),u))}else null!==i.use?o=this._getUse(i.use,r)._encode(e,t):(s=this._encodePrimitive(i.tag,e),a=!0);if(!i.any&&null===i.choice){var f=null!==i.implicit?i.implicit:i.tag,c=null===i.implicit?"universal":"context";null===f?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(f,a,c,s))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},f.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||s(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},f.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},f.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},f.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},function(e,t,r){var n=r(191);t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n._reverse(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n._reverse(t.tag)},function(e,t,r){var n=t;n.der=r(192),n.pem=r(328)},function(e,t,r){var n=r(17),i=r(11).Buffer,o=r(192);function s(e){o.call(this,e),this.enc="pem"}n(s,o),e.exports=s,s.prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),s=/^-----(BEGIN|END) ([^-]+)-----$/,a=-1,u=-1,f=0;f<r.length;f++){var c=r[f].match(s);if(null!==c&&c[2]===n){if(-1!==a){if("END"!==c[1])break;u=f;break}if("BEGIN"!==c[1])break;a=f}}if(-1===a||-1===u)throw new Error("PEM section not found for: "+n);var l=r.slice(a+1,u).join("");l.replace(/[^a-z0-9\+\/=]+/gi,"");var h=new i(l,"base64");return o.prototype.decode.call(this,h,t)}},function(e,t,r){var n=t;n.der=r(193),n.pem=r(330)},function(e,t,r){var n=r(17),i=r(193);function o(e){i.call(this,e),this.enc="pem"}n(o,i),e.exports=o,o.prototype.encode=function(e,t){for(var r=i.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],o=0;o<r.length;o+=64)n.push(r.slice(o,o+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},function(e,t,r){"use strict";var n=r(89),i=n.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),o=n.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),s=n.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),a=n.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())})),u=n.define("RelativeDistinguishedName",(function(){this.setof(o)})),f=n.define("RDNSequence",(function(){this.seqof(u)})),c=n.define("Name",(function(){this.choice({rdnSequence:this.use(f)})})),l=n.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),h=n.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),p=n.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(s),this.key("issuer").use(c),this.key("validity").use(l),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())})),d=n.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(p),this.key("signatureAlgorithm").use(s),this.key("signatureValue").bitstr())}));e.exports=d},function(e){e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(e,t,r){var n=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r\+\/\=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r\+\/\=]+)-----END \1-----$/m,s=r(105),a=r(123),u=r(21).Buffer;e.exports=function(e,t){var r,f=e.toString(),c=f.match(n);if(c){var l="aes"+c[1],h=u.from(c[2],"hex"),p=u.from(c[3].replace(/[\r\n]/g,""),"base64"),d=s(t,h.slice(0,8),parseInt(c[1],10)).key,_=[],y=a.createDecipheriv(l,d,h);_.push(y.update(p)),_.push(y.final()),r=u.concat(_)}else{var g=f.match(o);r=new u(g[2].replace(/[\r\n]/g,""),"base64")}return{tag:f.match(i)[1],data:r}}},function(e,t,r){(function(t){var n=r(30),i=r(127).ec,o=r(107),s=r(194);function a(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,r,u,f,c){var l=o(u);if("ec"===l.type){if("ecdsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var n=s[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var o=new i(n),a=r.data.subjectPrivateKey.data;return o.verify(t,e,a)}(e,r,l)}if("dsa"===l.type){if("dsa"!==f)throw new Error("wrong public key type");return function(e,t,r){var i=r.data.p,s=r.data.q,u=r.data.g,f=r.data.pub_key,c=o.signature.decode(e,"der"),l=c.s,h=c.r;a(l,s),a(h,s);var p=n.mont(i),d=l.invm(s);return 0===u.toRed(p).redPow(new n(t).mul(d).mod(s)).fromRed().mul(f.toRed(p).redPow(h.mul(d).mod(s)).fromRed()).mod(i).mod(s).cmp(h)}(e,r,l)}if("rsa"!==f&&"ecdsa/rsa"!==f)throw new Error("wrong public key type");r=t.concat([c,r]);for(var h=l.modulus.byteLength(),p=[1],d=0;r.length+p.length+2<h;)p.push(255),d++;p.push(0);for(var _=-1;++_<r.length;)p.push(r[_]);p=new t(p);var y=n.mont(l.modulus);e=(e=new n(e).toRed(y)).redPow(new n(l.publicExponent)),e=new t(e.fromRed().toArray());var g=d<8?1:0;for(h=Math.min(e.length,p.length),e.length!==p.length&&(g=1),_=-1;++_<h;)g|=e[_]^p[_];return 0===g}}).call(this,r(11).Buffer)},function(e,t,r){(function(t){var n=r(127),i=r(30);e.exports=function(e){return new s(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function s(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function a(e,r,n){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(n&&i.length<n){var o=new t(n-i.length);o.fill(0),i=t.concat([o,i])}return r?i.toString(r):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,s.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},s.prototype.computeSecret=function(e,r,n){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),a(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},s.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),a(r,e)},s.prototype.getPrivateKey=function(e){return a(this.keys.getPrivate(),e)},s.prototype.setPublicKey=function(e,r){return r=r||"utf8",t.isBuffer(e)||(e=new t(e,r)),this.keys._importPublic(e),this},s.prototype.setPrivateKey=function(e,r){r=r||"utf8",t.isBuffer(e)||(e=new t(e,r));var n=new i(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}}).call(this,r(11).Buffer)},function(e,t,r){t.publicEncrypt=r(337),t.privateDecrypt=r(338),t.privateEncrypt=function(e,r){return t.publicEncrypt(e,r,!0)},t.publicDecrypt=function(e,r){return t.privateDecrypt(e,r,!0)}},function(e,t,r){var n=r(107),i=r(73),o=r(85),s=r(195),a=r(196),u=r(30),f=r(197),c=r(126),l=r(21).Buffer;e.exports=function(e,t,r){var h;h=e.padding?e.padding:r?1:4;var p,d=n(e);if(4===h)p=function(e,t){var r=e.modulus.byteLength(),n=t.length,f=o("sha1").update(l.alloc(0)).digest(),c=f.length,h=2*c;if(n>r-h-2)throw new Error("message too long");var p=l.alloc(r-n-h-2),d=r-c-1,_=i(c),y=a(l.concat([f,p,l.alloc(1,1),t],d),s(_,d)),g=a(_,s(y,c));return new u(l.concat([l.alloc(1),g,y],r))}(d,t);else if(1===h)p=function(e,t,r){var n,o=t.length,s=e.modulus.byteLength();if(o>s-11)throw new Error("message too long");n=r?l.alloc(s-o-3,255):function(e){var t,r=l.allocUnsafe(e),n=0,o=i(2*e),s=0;for(;n<e;)s===o.length&&(o=i(2*e),s=0),(t=o[s++])&&(r[n++]=t);return r}(s-o-3);return new u(l.concat([l.from([0,r?1:2]),n,l.alloc(1),t],s))}(d,t,r);else{if(3!==h)throw new Error("unknown padding");if((p=new u(t)).cmp(d.modulus)>=0)throw new Error("data too long for modulus")}return r?c(p,d):f(p,d)}},function(e,t,r){var n=r(107),i=r(195),o=r(196),s=r(30),a=r(126),u=r(85),f=r(197),c=r(21).Buffer;e.exports=function(e,t,r){var l;l=e.padding?e.padding:r?1:4;var h,p=n(e),d=p.modulus.byteLength();if(t.length>d||new s(t).cmp(p.modulus)>=0)throw new Error("decryption error");h=r?f(new s(t),p):a(t,p);var _=c.alloc(d-h.length);if(h=c.concat([_,h],d),4===l)return function(e,t){var r=e.modulus.byteLength(),n=u("sha1").update(c.alloc(0)).digest(),s=n.length;if(0!==t[0])throw new Error("decryption error");var a=t.slice(1,s+1),f=t.slice(s+1),l=o(a,i(f,s)),h=o(f,i(l,r-s-1));if(function(e,t){e=c.from(e),t=c.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i<n;)r+=e[i]^t[i];return r}(n,h.slice(0,s)))throw new Error("decryption error");var p=s;for(;0===h[p];)p++;if(1!==h[p++])throw new Error("decryption error");return h.slice(p)}(p,h);if(1===l)return function(e,t,r){var n=t.slice(0,2),i=2,o=0;for(;0!==t[i++];)if(i>=t.length){o++;break}var s=t.slice(2,i-1);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;s.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,h,r);if(3===l)return h;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(21),s=(r(73),o.Buffer),a=o.kMaxLength,u=e.crypto||e.msCrypto,f=Math.pow(2,32)-1;function c(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>f||e<0)throw new TypeError("offset must be a uint32");if(e>a||e>t)throw new RangeError("offset out of range")}function l(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>f||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>a)throw new RangeError("buffer too small")}function h(e,t,r,i){var o=e.buffer,s=new Uint8Array(o,t,r);return u.getRandomValues(s),i?void n.nextTick((function(){i(null,e)})):e}u&&u.getRandomValues?(t.randomFill=function(t,r,n,i){if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof r)i=r,r=0,n=t.length;else if("function"==typeof n)i=n,n=t.length-r;else if("function"!=typeof i)throw new TypeError('"cb" argument must be a function');return c(r,t.length),l(n,r,t.length),h(t,r,n,i)},t.randomFillSync=function(t,r,n){void 0===r&&(r=0);if(!(s.isBuffer(t)||t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');c(r,t.length),void 0===n&&(n=t.length-r);return l(n,r,t.length),h(t,r,n)}):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(26),r(25))},,,function(e,t,r){"use strict";(function(e){var n=r(11).Buffer,i=r(68).Transform,o=r(343),s=r(64),a=r(112).ok,u=r(11).kMaxLength,f="Cannot create final Buffer. It would be larger than 0x"+u.toString(16)+" bytes";o.Z_MIN_WINDOWBITS=8,o.Z_MAX_WINDOWBITS=15,o.Z_DEFAULT_WINDOWBITS=15,o.Z_MIN_CHUNK=64,o.Z_MAX_CHUNK=1/0,o.Z_DEFAULT_CHUNK=16384,o.Z_MIN_MEMLEVEL=1,o.Z_MAX_MEMLEVEL=9,o.Z_DEFAULT_MEMLEVEL=8,o.Z_MIN_LEVEL=-1,o.Z_MAX_LEVEL=9,o.Z_DEFAULT_LEVEL=o.Z_DEFAULT_COMPRESSION;for(var c=Object.keys(o),l=0;l<c.length;l++){var h=c[l];h.match(/^Z/)&&Object.defineProperty(t,h,{enumerable:!0,value:o[h],writable:!1})}for(var p={Z_OK:o.Z_OK,Z_STREAM_END:o.Z_STREAM_END,Z_NEED_DICT:o.Z_NEED_DICT,Z_ERRNO:o.Z_ERRNO,Z_STREAM_ERROR:o.Z_STREAM_ERROR,Z_DATA_ERROR:o.Z_DATA_ERROR,Z_MEM_ERROR:o.Z_MEM_ERROR,Z_BUF_ERROR:o.Z_BUF_ERROR,Z_VERSION_ERROR:o.Z_VERSION_ERROR},d=Object.keys(p),_=0;_<d.length;_++){var y=d[_];p[p[y]]=y}function g(e,t,r){var i=[],o=0;function s(){for(var t;null!==(t=e.read());)i.push(t),o+=t.length;e.once("readable",s)}function a(){var t,s=null;o>=u?s=new RangeError(f):t=n.concat(i,o),i=[],e.close(),r(s,t)}e.on("error",(function(t){e.removeListener("end",a),e.removeListener("readable",s),r(t)})),e.on("end",a),e.end(t),s()}function b(e,t){if("string"==typeof t&&(t=n.from(t)),!n.isBuffer(t))throw new TypeError("Not a string or buffer");var r=e._finishFlushFlag;return e._processChunk(t,r)}function m(e){if(!(this instanceof m))return new m(e);B.call(this,e,o.DEFLATE)}function v(e){if(!(this instanceof v))return new v(e);B.call(this,e,o.INFLATE)}function w(e){if(!(this instanceof w))return new w(e);B.call(this,e,o.GZIP)}function k(e){if(!(this instanceof k))return new k(e);B.call(this,e,o.GUNZIP)}function x(e){if(!(this instanceof x))return new x(e);B.call(this,e,o.DEFLATERAW)}function E(e){if(!(this instanceof E))return new E(e);B.call(this,e,o.INFLATERAW)}function S(e){if(!(this instanceof S))return new S(e);B.call(this,e,o.UNZIP)}function A(e){return e===o.Z_NO_FLUSH||e===o.Z_PARTIAL_FLUSH||e===o.Z_SYNC_FLUSH||e===o.Z_FULL_FLUSH||e===o.Z_FINISH||e===o.Z_BLOCK}function B(e,r){var s=this;if(this._opts=e=e||{},this._chunkSize=e.chunkSize||t.Z_DEFAULT_CHUNK,i.call(this,e),e.flush&&!A(e.flush))throw new Error("Invalid flush flag: "+e.flush);if(e.finishFlush&&!A(e.finishFlush))throw new Error("Invalid flush flag: "+e.finishFlush);if(this._flushFlag=e.flush||o.Z_NO_FLUSH,this._finishFlushFlag=void 0!==e.finishFlush?e.finishFlush:o.Z_FINISH,e.chunkSize&&(e.chunkSize<t.Z_MIN_CHUNK||e.chunkSize>t.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+e.chunkSize);if(e.windowBits&&(e.windowBits<t.Z_MIN_WINDOWBITS||e.windowBits>t.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+e.windowBits);if(e.level&&(e.level<t.Z_MIN_LEVEL||e.level>t.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+e.level);if(e.memLevel&&(e.memLevel<t.Z_MIN_MEMLEVEL||e.memLevel>t.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+e.memLevel);if(e.strategy&&e.strategy!=t.Z_FILTERED&&e.strategy!=t.Z_HUFFMAN_ONLY&&e.strategy!=t.Z_RLE&&e.strategy!=t.Z_FIXED&&e.strategy!=t.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+e.strategy);if(e.dictionary&&!n.isBuffer(e.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new o.Zlib(r);var a=this;this._hadError=!1,this._handle.onerror=function(e,r){D(a),a._hadError=!0;var n=new Error(e);n.errno=r,n.code=t.codes[r],a.emit("error",n)};var u=t.Z_DEFAULT_COMPRESSION;"number"==typeof e.level&&(u=e.level);var f=t.Z_DEFAULT_STRATEGY;"number"==typeof e.strategy&&(f=e.strategy),this._handle.init(e.windowBits||t.Z_DEFAULT_WINDOWBITS,u,e.memLevel||t.Z_DEFAULT_MEMLEVEL,f,e.dictionary),this._buffer=n.allocUnsafe(this._chunkSize),this._offset=0,this._level=u,this._strategy=f,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!s._handle},configurable:!0,enumerable:!0})}function D(t,r){r&&e.nextTick(r),t._handle&&(t._handle.close(),t._handle=null)}function M(e){e.emit("close")}Object.defineProperty(t,"codes",{enumerable:!0,value:Object.freeze(p),writable:!1}),t.Deflate=m,t.Inflate=v,t.Gzip=w,t.Gunzip=k,t.DeflateRaw=x,t.InflateRaw=E,t.Unzip=S,t.createDeflate=function(e){return new m(e)},t.createInflate=function(e){return new v(e)},t.createDeflateRaw=function(e){return new x(e)},t.createInflateRaw=function(e){return new E(e)},t.createGzip=function(e){return new w(e)},t.createGunzip=function(e){return new k(e)},t.createUnzip=function(e){return new S(e)},t.deflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),g(new m(t),e,r)},t.deflateSync=function(e,t){return b(new m(t),e)},t.gzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),g(new w(t),e,r)},t.gzipSync=function(e,t){return b(new w(t),e)},t.deflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),g(new x(t),e,r)},t.deflateRawSync=function(e,t){return b(new x(t),e)},t.unzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),g(new S(t),e,r)},t.unzipSync=function(e,t){return b(new S(t),e)},t.inflate=function(e,t,r){return"function"==typeof t&&(r=t,t={}),g(new v(t),e,r)},t.inflateSync=function(e,t){return b(new v(t),e)},t.gunzip=function(e,t,r){return"function"==typeof t&&(r=t,t={}),g(new k(t),e,r)},t.gunzipSync=function(e,t){return b(new k(t),e)},t.inflateRaw=function(e,t,r){return"function"==typeof t&&(r=t,t={}),g(new E(t),e,r)},t.inflateRawSync=function(e,t){return b(new E(t),e)},s.inherits(B,i),B.prototype.params=function(r,n,i){if(r<t.Z_MIN_LEVEL||r>t.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+r);if(n!=t.Z_FILTERED&&n!=t.Z_HUFFMAN_ONLY&&n!=t.Z_RLE&&n!=t.Z_FIXED&&n!=t.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+n);if(this._level!==r||this._strategy!==n){var s=this;this.flush(o.Z_SYNC_FLUSH,(function(){a(s._handle,"zlib binding closed"),s._handle.params(r,n),s._hadError||(s._level=r,s._strategy=n,i&&i())}))}else e.nextTick(i)},B.prototype.reset=function(){return a(this._handle,"zlib binding closed"),this._handle.reset()},B.prototype._flush=function(e){this._transform(n.alloc(0),"",e)},B.prototype.flush=function(t,r){var i=this,s=this._writableState;("function"==typeof t||void 0===t&&!r)&&(r=t,t=o.Z_FULL_FLUSH),s.ended?r&&e.nextTick(r):s.ending?r&&this.once("end",r):s.needDrain?r&&this.once("drain",(function(){return i.flush(t,r)})):(this._flushFlag=t,this.write(n.alloc(0),"",r))},B.prototype.close=function(t){D(this,t),e.nextTick(M,this)},B.prototype._transform=function(e,t,r){var i,s=this._writableState,a=(s.ending||s.ended)&&(!e||s.length===e.length);return null===e||n.isBuffer(e)?this._handle?(a?i=this._finishFlushFlag:(i=this._flushFlag,e.length>=s.length&&(this._flushFlag=this._opts.flush||o.Z_NO_FLUSH)),void this._processChunk(e,i,r)):r(new Error("zlib binding closed")):r(new Error("invalid input"))},B.prototype._processChunk=function(e,t,r){var i=e&&e.length,o=this._chunkSize-this._offset,s=0,c=this,l="function"==typeof r;if(!l){var h,p=[],d=0;this.on("error",(function(e){h=e})),a(this._handle,"zlib binding closed");do{var _=this._handle.writeSync(t,e,s,i,this._buffer,this._offset,o)}while(!this._hadError&&b(_[0],_[1]));if(this._hadError)throw h;if(d>=u)throw D(this),new RangeError(f);var y=n.concat(p,d);return D(this),y}a(this._handle,"zlib binding closed");var g=this._handle.write(t,e,s,i,this._buffer,this._offset,o);function b(u,f){if(this&&(this.buffer=null,this.callback=null),!c._hadError){var h=o-f;if(a(h>=0,"have should not go down"),h>0){var _=c._buffer.slice(c._offset,c._offset+h);c._offset+=h,l?c.push(_):(p.push(_),d+=_.length)}if((0===f||c._offset>=c._chunkSize)&&(o=c._chunkSize,c._offset=0,c._buffer=n.allocUnsafe(c._chunkSize)),0===f){if(s+=i-u,i=u,!l)return!0;var y=c._handle.write(t,e,s,i,c._buffer,c._offset,c._chunkSize);return y.callback=b,void(y.buffer=e)}if(!l)return!1;r()}}g.buffer=e,g.callback=b},s.inherits(m,B),s.inherits(v,B),s.inherits(w,B),s.inherits(k,B),s.inherits(x,B),s.inherits(E,B),s.inherits(S,B)}).call(this,r(25))},function(e,t,r){"use strict";(function(e,n){var i=r(112),o=r(344),s=r(345),a=r(348),u=r(351);for(var f in u)t[f]=u[f];t.NONE=0,t.DEFLATE=1,t.INFLATE=2,t.GZIP=3,t.GUNZIP=4,t.DEFLATERAW=5,t.INFLATERAW=6,t.UNZIP=7;function c(e){if("number"!=typeof e||e<t.DEFLATE||e>t.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=e,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}c.prototype.close=function(){this.write_in_progress?this.pending_close=!0:(this.pending_close=!1,i(this.init_done,"close before init"),i(this.mode<=t.UNZIP),this.mode===t.DEFLATE||this.mode===t.GZIP||this.mode===t.DEFLATERAW?s.deflateEnd(this.strm):this.mode!==t.INFLATE&&this.mode!==t.GUNZIP&&this.mode!==t.INFLATERAW&&this.mode!==t.UNZIP||a.inflateEnd(this.strm),this.mode=t.NONE,this.dictionary=null)},c.prototype.write=function(e,t,r,n,i,o,s){return this._write(!0,e,t,r,n,i,o,s)},c.prototype.writeSync=function(e,t,r,n,i,o,s){return this._write(!1,e,t,r,n,i,o,s)},c.prototype._write=function(r,o,s,a,u,f,c,l){if(i.equal(arguments.length,8),i(this.init_done,"write before init"),i(this.mode!==t.NONE,"already finalized"),i.equal(!1,this.write_in_progress,"write already in progress"),i.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,i.equal(!1,void 0===o,"must provide flush value"),this.write_in_progress=!0,o!==t.Z_NO_FLUSH&&o!==t.Z_PARTIAL_FLUSH&&o!==t.Z_SYNC_FLUSH&&o!==t.Z_FULL_FLUSH&&o!==t.Z_FINISH&&o!==t.Z_BLOCK)throw new Error("Invalid flush value");if(null==s&&(s=e.alloc(0),u=0,a=0),this.strm.avail_in=u,this.strm.input=s,this.strm.next_in=a,this.strm.avail_out=l,this.strm.output=f,this.strm.next_out=c,this.flush=o,!r)return this._process(),this._checkError()?this._afterSync():void 0;var h=this;return n.nextTick((function(){h._process(),h._after()})),this},c.prototype._afterSync=function(){var e=this.strm.avail_out,t=this.strm.avail_in;return this.write_in_progress=!1,[t,e]},c.prototype._process=function(){var e=null;switch(this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflate(this.strm,this.flush);break;case t.UNZIP:switch(this.strm.avail_in>0&&(e=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===e)break;if(31!==this.strm.input[e]){this.mode=t.INFLATE;break}if(this.gzip_id_bytes_read=1,e++,1===this.strm.avail_in)break;case 1:if(null===e)break;139===this.strm.input[e]?(this.gzip_id_bytes_read=2,this.mode=t.GUNZIP):this.mode=t.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===t.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===t.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===t.Z_DATA_ERROR&&(this.err=t.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===t.GUNZIP&&this.err===t.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},c.prototype._checkError=function(){switch(this.err){case t.Z_OK:case t.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===t.Z_FINISH)return this._error("unexpected end of file"),!1;break;case t.Z_STREAM_END:break;case t.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},c.prototype._after=function(){if(this._checkError()){var e=this.strm.avail_out,t=this.strm.avail_in;this.write_in_progress=!1,this.callback(t,e),this.pending_close&&this.close()}},c.prototype._error=function(e){this.strm.msg&&(e=this.strm.msg),this.onerror(e,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},c.prototype.init=function(e,r,n,o,s){i(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),i(e>=8&&e<=15,"invalid windowBits"),i(r>=-1&&r<=9,"invalid compression level"),i(n>=1&&n<=9,"invalid memlevel"),i(o===t.Z_FILTERED||o===t.Z_HUFFMAN_ONLY||o===t.Z_RLE||o===t.Z_FIXED||o===t.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(r,e,n,o,s),this._setDictionary()},c.prototype.params=function(){throw new Error("deflateParams Not supported")},c.prototype.reset=function(){this._reset(),this._setDictionary()},c.prototype._init=function(e,r,n,i,u){switch(this.level=e,this.windowBits=r,this.memLevel=n,this.strategy=i,this.flush=t.Z_NO_FLUSH,this.err=t.Z_OK,this.mode!==t.GZIP&&this.mode!==t.GUNZIP||(this.windowBits+=16),this.mode===t.UNZIP&&(this.windowBits+=32),this.mode!==t.DEFLATERAW&&this.mode!==t.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new o,this.mode){case t.DEFLATE:case t.GZIP:case t.DEFLATERAW:this.err=s.deflateInit2(this.strm,this.level,t.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case t.INFLATE:case t.GUNZIP:case t.INFLATERAW:case t.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==t.Z_OK&&this._error("Init error"),this.dictionary=u,this.write_in_progress=!1,this.init_done=!0},c.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:this.err=s.deflateSetDictionary(this.strm,this.dictionary)}this.err!==t.Z_OK&&this._error("Failed to set dictionary")}},c.prototype._reset=function(){switch(this.err=t.Z_OK,this.mode){case t.DEFLATE:case t.DEFLATERAW:case t.GZIP:this.err=s.deflateReset(this.strm);break;case t.INFLATE:case t.INFLATERAW:case t.GUNZIP:this.err=a.inflateReset(this.strm)}this.err!==t.Z_OK&&this._error("Failed to reset stream")},t.Zlib=c}).call(this,r(11).Buffer,r(25))},function(e,t,r){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},function(e,t,r){"use strict";var n,i=r(108),o=r(346),s=r(198),a=r(199),u=r(347),f=0,c=1,l=3,h=4,p=5,d=0,_=1,y=-2,g=-3,b=-5,m=-1,v=1,w=2,k=3,x=4,E=0,S=2,A=8,B=9,D=15,M=8,P=286,I=30,U=19,T=2*P+1,R=15,F=3,C=258,O=C+F+1,z=32,L=42,N=69,j=73,K=91,q=103,G=113,H=666,V=1,Z=2,W=3,Y=4,X=3;function $(e,t){return e.msg=u[t],t}function J(e){return(e<<1)-(e>4?9:0)}function Q(e){for(var t=e.length;--t>=0;)e[t]=0}function ee(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function te(e,t){o._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,ee(e.strm)}function re(e,t){e.pending_buf[e.pending++]=t}function ne(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function ie(e,t,r,n){var o=e.avail_in;return o>n&&(o=n),0===o?0:(e.avail_in-=o,i.arraySet(t,e.input,e.next_in,o,r),1===e.state.wrap?e.adler=s(e.adler,t,o,r):2===e.state.wrap&&(e.adler=a(e.adler,t,o,r)),e.next_in+=o,e.total_in+=o,o)}function oe(e,t){var r,n,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match,u=e.strstart>e.w_size-O?e.strstart-(e.w_size-O):0,f=e.window,c=e.w_mask,l=e.prev,h=e.strstart+C,p=f[o+s-1],d=f[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(f[(r=t)+s]===d&&f[r+s-1]===p&&f[r]===f[o]&&f[++r]===f[o+1]){o+=2,r++;do{}while(f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&f[++o]===f[++r]&&o<h);if(n=C-(h-o),o=h-C,n>s){if(e.match_start=t,s=n,n>=a)break;p=f[o+s-1],d=f[o+s]}}}while((t=l[t&c])>u&&0!=--i);return s<=e.lookahead?s:e.lookahead}function se(e){var t,r,n,o,s,a=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=a+(a-O)){i.arraySet(e.window,e.window,a,a,0),e.match_start-=a,e.strstart-=a,e.block_start-=a,t=r=e.hash_size;do{n=e.head[--t],e.head[t]=n>=a?n-a:0}while(--r);t=r=a;do{n=e.prev[--t],e.prev[t]=n>=a?n-a:0}while(--r);o+=a}if(0===e.strm.avail_in)break;if(r=ie(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=r,e.lookahead+e.insert>=F)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[s+F-1])&e.hash_mask,e.prev[s&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=s,s++,e.insert--,!(e.lookahead+e.insert<F)););}while(e.lookahead<O&&0!==e.strm.avail_in)}function ae(e,t){for(var r,n;;){if(e.lookahead<O){if(se(e),e.lookahead<O&&t===f)return V;if(0===e.lookahead)break}if(r=0,e.lookahead>=F&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+F-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-O&&(e.match_length=oe(e,r)),e.match_length>=F)if(n=o._tr_tally(e,e.strstart-e.match_start,e.match_length-F),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=F){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+F-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!=--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(te(e,!1),0===e.strm.avail_out))return V}return e.insert=e.strstart<F-1?e.strstart:F-1,t===h?(te(e,!0),0===e.strm.avail_out?W:Y):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?V:Z}function ue(e,t){for(var r,n,i;;){if(e.lookahead<O){if(se(e),e.lookahead<O&&t===f)return V;if(0===e.lookahead)break}if(r=0,e.lookahead>=F&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+F-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=F-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-O&&(e.match_length=oe(e,r),e.match_length<=5&&(e.strategy===v||e.match_length===F&&e.strstart-e.match_start>4096)&&(e.match_length=F-1)),e.prev_length>=F&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-F,n=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-F),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+F-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!=--e.prev_length);if(e.match_available=0,e.match_length=F-1,e.strstart++,n&&(te(e,!1),0===e.strm.avail_out))return V}else if(e.match_available){if((n=o._tr_tally(e,0,e.window[e.strstart-1]))&&te(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return V}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<F-1?e.strstart:F-1,t===h?(te(e,!0),0===e.strm.avail_out?W:Y):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?V:Z}function fe(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function ce(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=A,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*T),this.dyn_dtree=new i.Buf16(2*(2*I+1)),this.bl_tree=new i.Buf16(2*(2*U+1)),Q(this.dyn_ltree),Q(this.dyn_dtree),Q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(R+1),this.heap=new i.Buf16(2*P+1),Q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*P+1),Q(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function le(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=S,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?L:G,e.adler=2===t.wrap?0:1,t.last_flush=f,o._tr_init(t),d):$(e,y)}function he(e){var t=le(e);return t===d&&function(e){e.window_size=2*e.w_size,Q(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=F-1,e.match_available=0,e.ins_h=0}(e.state),t}function pe(e,t,r,n,o,s){if(!e)return y;var a=1;if(t===m&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),o<1||o>B||r!==A||n<8||n>15||t<0||t>9||s<0||s>x)return $(e,y);8===n&&(n=9);var u=new ce;return e.state=u,u.strm=e,u.wrap=a,u.gzhead=null,u.w_bits=n,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+F-1)/F),u.window=new i.Buf8(2*u.w_size),u.head=new i.Buf16(u.hash_size),u.prev=new i.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new i.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=t,u.strategy=s,u.method=r,he(e)}n=[new fe(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(se(e),0===e.lookahead&&t===f)return V;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,te(e,!1),0===e.strm.avail_out))return V;if(e.strstart-e.block_start>=e.w_size-O&&(te(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===h?(te(e,!0),0===e.strm.avail_out?W:Y):(e.strstart>e.block_start&&(te(e,!1),e.strm.avail_out),V)})),new fe(4,4,8,4,ae),new fe(4,5,16,8,ae),new fe(4,6,32,32,ae),new fe(4,4,16,16,ue),new fe(8,16,32,32,ue),new fe(8,16,128,128,ue),new fe(8,32,128,256,ue),new fe(32,128,258,1024,ue),new fe(32,258,258,4096,ue)],t.deflateInit=function(e,t){return pe(e,t,A,D,M,E)},t.deflateInit2=pe,t.deflateReset=he,t.deflateResetKeep=le,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?y:(e.state.gzhead=t,d):y},t.deflate=function(e,t){var r,i,s,u;if(!e||!e.state||t>p||t<0)return e?$(e,y):y;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||i.status===H&&t!==h)return $(e,0===e.avail_out?b:y);if(i.strm=e,r=i.last_flush,i.last_flush=t,i.status===L)if(2===i.wrap)e.adler=0,re(i,31),re(i,139),re(i,8),i.gzhead?(re(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),re(i,255&i.gzhead.time),re(i,i.gzhead.time>>8&255),re(i,i.gzhead.time>>16&255),re(i,i.gzhead.time>>24&255),re(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),re(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(re(i,255&i.gzhead.extra.length),re(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=a(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=N):(re(i,0),re(i,0),re(i,0),re(i,0),re(i,0),re(i,9===i.level?2:i.strategy>=w||i.level<2?4:0),re(i,X),i.status=G);else{var g=A+(i.w_bits-8<<4)<<8;g|=(i.strategy>=w||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(g|=z),g+=31-g%31,i.status=G,ne(i,g),0!==i.strstart&&(ne(i,e.adler>>>16),ne(i,65535&e.adler)),e.adler=1}if(i.status===N)if(i.gzhead.extra){for(s=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),ee(e),s=i.pending,i.pending!==i.pending_buf_size));)re(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=j)}else i.status=j;if(i.status===j)if(i.gzhead.name){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),ee(e),s=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,re(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===u&&(i.gzindex=0,i.status=K)}else i.status=K;if(i.status===K)if(i.gzhead.comment){s=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),ee(e),s=i.pending,i.pending===i.pending_buf_size)){u=1;break}u=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,re(i,u)}while(0!==u);i.gzhead.hcrc&&i.pending>s&&(e.adler=a(e.adler,i.pending_buf,i.pending-s,s)),0===u&&(i.status=q)}else i.status=q;if(i.status===q&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&ee(e),i.pending+2<=i.pending_buf_size&&(re(i,255&e.adler),re(i,e.adler>>8&255),e.adler=0,i.status=G)):i.status=G),0!==i.pending){if(ee(e),0===e.avail_out)return i.last_flush=-1,d}else if(0===e.avail_in&&J(t)<=J(r)&&t!==h)return $(e,b);if(i.status===H&&0!==e.avail_in)return $(e,b);if(0!==e.avail_in||0!==i.lookahead||t!==f&&i.status!==H){var m=i.strategy===w?function(e,t){for(var r;;){if(0===e.lookahead&&(se(e),0===e.lookahead)){if(t===f)return V;break}if(e.match_length=0,r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(te(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===h?(te(e,!0),0===e.strm.avail_out?W:Y):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?V:Z}(i,t):i.strategy===k?function(e,t){for(var r,n,i,s,a=e.window;;){if(e.lookahead<=C){if(se(e),e.lookahead<=C&&t===f)return V;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=F&&e.strstart>0&&(n=a[i=e.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){s=e.strstart+C;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<s);e.match_length=C-(s-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=F?(r=o._tr_tally(e,1,e.match_length-F),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(te(e,!1),0===e.strm.avail_out))return V}return e.insert=0,t===h?(te(e,!0),0===e.strm.avail_out?W:Y):e.last_lit&&(te(e,!1),0===e.strm.avail_out)?V:Z}(i,t):n[i.level].func(i,t);if(m!==W&&m!==Y||(i.status=H),m===V||m===W)return 0===e.avail_out&&(i.last_flush=-1),d;if(m===Z&&(t===c?o._tr_align(i):t!==p&&(o._tr_stored_block(i,0,0,!1),t===l&&(Q(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),ee(e),0===e.avail_out))return i.last_flush=-1,d}return t!==h?d:i.wrap<=0?_:(2===i.wrap?(re(i,255&e.adler),re(i,e.adler>>8&255),re(i,e.adler>>16&255),re(i,e.adler>>24&255),re(i,255&e.total_in),re(i,e.total_in>>8&255),re(i,e.total_in>>16&255),re(i,e.total_in>>24&255)):(ne(i,e.adler>>>16),ne(i,65535&e.adler)),ee(e),i.wrap>0&&(i.wrap=-i.wrap),0!==i.pending?d:_)},t.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==L&&t!==N&&t!==j&&t!==K&&t!==q&&t!==G&&t!==H?$(e,y):(e.state=null,t===G?$(e,g):d):y},t.deflateSetDictionary=function(e,t){var r,n,o,a,u,f,c,l,h=t.length;if(!e||!e.state)return y;if(2===(a=(r=e.state).wrap)||1===a&&r.status!==L||r.lookahead)return y;for(1===a&&(e.adler=s(e.adler,t,h,0)),r.wrap=0,h>=r.w_size&&(0===a&&(Q(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new i.Buf8(r.w_size),i.arraySet(l,t,h-r.w_size,r.w_size,0),t=l,h=r.w_size),u=e.avail_in,f=e.next_in,c=e.input,e.avail_in=h,e.next_in=0,e.input=t,se(r);r.lookahead>=F;){n=r.strstart,o=r.lookahead-(F-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+F-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--o);r.strstart=n,r.lookahead=F-1,se(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=F-1,r.match_available=0,e.next_in=f,e.input=c,e.avail_in=u,r.wrap=a,d},t.deflateInfo="pako deflate (from Nodeca project)"},function(e,t,r){"use strict";var n=r(108),i=4,o=0,s=1,a=2;function u(e){for(var t=e.length;--t>=0;)e[t]=0}var f=0,c=1,l=2,h=29,p=256,d=p+1+h,_=30,y=19,g=2*d+1,b=15,m=16,v=7,w=256,k=16,x=17,E=18,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],A=[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],B=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],M=new Array(2*(d+2));u(M);var P=new Array(2*_);u(P);var I=new Array(512);u(I);var U=new Array(256);u(U);var T=new Array(h);u(T);var R,F,C,O=new Array(_);function z(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function L(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function N(e){return e<256?I[e]:I[256+(e>>>7)]}function j(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function K(e,t,r){e.bi_valid>m-r?(e.bi_buf|=t<<e.bi_valid&65535,j(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=r-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function q(e,t,r){K(e,r[2*t],r[2*t+1])}function G(e,t){var r=0;do{r|=1&e,e>>>=1,r<<=1}while(--t>0);return r>>>1}function H(e,t,r){var n,i,o=new Array(b+1),s=0;for(n=1;n<=b;n++)o[n]=s=s+r[n-1]<<1;for(i=0;i<=t;i++){var a=e[2*i+1];0!==a&&(e[2*i]=G(o[a]++,a))}}function V(e){var t;for(t=0;t<d;t++)e.dyn_ltree[2*t]=0;for(t=0;t<_;t++)e.dyn_dtree[2*t]=0;for(t=0;t<y;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*w]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function Z(e){e.bi_valid>8?j(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function W(e,t,r,n){var i=2*t,o=2*r;return e[i]<e[o]||e[i]===e[o]&&n[t]<=n[r]}function Y(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&W(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!W(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function X(e,t,r){var n,i,o,s,a=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*a]<<8|e.pending_buf[e.d_buf+2*a+1],i=e.pending_buf[e.l_buf+a],a++,0===n?q(e,i,t):(q(e,(o=U[i])+p+1,t),0!==(s=S[o])&&K(e,i-=T[o],s),q(e,o=N(--n),r),0!==(s=A[o])&&K(e,n-=O[o],s))}while(a<e.last_lit);q(e,w,t)}function $(e,t){var r,n,i,o=t.dyn_tree,s=t.stat_desc.static_tree,a=t.stat_desc.has_stree,u=t.stat_desc.elems,f=-1;for(e.heap_len=0,e.heap_max=g,r=0;r<u;r++)0!==o[2*r]?(e.heap[++e.heap_len]=f=r,e.depth[r]=0):o[2*r+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=f<2?++f:0)]=1,e.depth[i]=0,e.opt_len--,a&&(e.static_len-=s[2*i+1]);for(t.max_code=f,r=e.heap_len>>1;r>=1;r--)Y(e,o,r);i=u;do{r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Y(e,o,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,o[2*i]=o[2*r]+o[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,o[2*r+1]=o[2*n+1]=i,e.heap[1]=i++,Y(e,o,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,o,s,a,u=t.dyn_tree,f=t.max_code,c=t.stat_desc.static_tree,l=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,d=t.stat_desc.max_length,_=0;for(o=0;o<=b;o++)e.bl_count[o]=0;for(u[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<g;r++)(o=u[2*u[2*(n=e.heap[r])+1]+1]+1)>d&&(o=d,_++),u[2*n+1]=o,n>f||(e.bl_count[o]++,s=0,n>=p&&(s=h[n-p]),a=u[2*n],e.opt_len+=a*(o+s),l&&(e.static_len+=a*(c[2*n+1]+s)));if(0!==_){do{for(o=d-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[d]--,_-=2}while(_>0);for(o=d;0!==o;o--)for(n=e.bl_count[o];0!==n;)(i=e.heap[--r])>f||(u[2*i+1]!==o&&(e.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),n--)}}(e,t),H(o,f,e.bl_count)}function J(e,t,r){var n,i,o=-1,s=t[1],a=0,u=7,f=4;for(0===s&&(u=138,f=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=t[2*(n+1)+1],++a<u&&i===s||(a<f?e.bl_tree[2*i]+=a:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[2*k]++):a<=10?e.bl_tree[2*x]++:e.bl_tree[2*E]++,a=0,o=i,0===s?(u=138,f=3):i===s?(u=6,f=3):(u=7,f=4))}function Q(e,t,r){var n,i,o=-1,s=t[1],a=0,u=7,f=4;for(0===s&&(u=138,f=3),n=0;n<=r;n++)if(i=s,s=t[2*(n+1)+1],!(++a<u&&i===s)){if(a<f)do{q(e,i,e.bl_tree)}while(0!=--a);else 0!==i?(i!==o&&(q(e,i,e.bl_tree),a--),q(e,k,e.bl_tree),K(e,a-3,2)):a<=10?(q(e,x,e.bl_tree),K(e,a-3,3)):(q(e,E,e.bl_tree),K(e,a-11,7));a=0,o=i,0===s?(u=138,f=3):i===s?(u=6,f=3):(u=7,f=4)}}u(O);var ee=!1;function te(e,t,r,i){K(e,(f<<1)+(i?1:0),3),function(e,t,r,i){Z(e),i&&(j(e,r),j(e,~r)),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r,!0)}t._tr_init=function(e){ee||(!function(){var e,t,r,n,i,o=new Array(b+1);for(r=0,n=0;n<h-1;n++)for(T[n]=r,e=0;e<1<<S[n];e++)U[r++]=n;for(U[r-1]=n,i=0,n=0;n<16;n++)for(O[n]=i,e=0;e<1<<A[n];e++)I[i++]=n;for(i>>=7;n<_;n++)for(O[n]=i<<7,e=0;e<1<<A[n]-7;e++)I[256+i++]=n;for(t=0;t<=b;t++)o[t]=0;for(e=0;e<=143;)M[2*e+1]=8,e++,o[8]++;for(;e<=255;)M[2*e+1]=9,e++,o[9]++;for(;e<=279;)M[2*e+1]=7,e++,o[7]++;for(;e<=287;)M[2*e+1]=8,e++,o[8]++;for(H(M,d+1,o),e=0;e<_;e++)P[2*e+1]=5,P[2*e]=G(e,5);R=new z(M,S,p+1,d,b),F=new z(P,A,0,_,b),C=new z(new Array(0),B,0,y,v)}(),ee=!0),e.l_desc=new L(e.dyn_ltree,R),e.d_desc=new L(e.dyn_dtree,F),e.bl_desc=new L(e.bl_tree,C),e.bi_buf=0,e.bi_valid=0,V(e)},t._tr_stored_block=te,t._tr_flush_block=function(e,t,r,n){var u,f,h=0;e.level>0?(e.strm.data_type===a&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return o;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return s;for(t=32;t<p;t++)if(0!==e.dyn_ltree[2*t])return s;return o}(e)),$(e,e.l_desc),$(e,e.d_desc),h=function(e){var t;for(J(e,e.dyn_ltree,e.l_desc.max_code),J(e,e.dyn_dtree,e.d_desc.max_code),$(e,e.bl_desc),t=y-1;t>=3&&0===e.bl_tree[2*D[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),u=e.opt_len+3+7>>>3,(f=e.static_len+3+7>>>3)<=u&&(u=f)):u=f=r+5,r+4<=u&&-1!==t?te(e,t,r,n):e.strategy===i||f===u?(K(e,(c<<1)+(n?1:0),3),X(e,M,P)):(K(e,(l<<1)+(n?1:0),3),function(e,t,r,n){var i;for(K(e,t-257,5),K(e,r-1,5),K(e,n-4,4),i=0;i<n;i++)K(e,e.bl_tree[2*D[i]+1],3);Q(e,e.dyn_ltree,t-1),Q(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,h+1),X(e,e.dyn_ltree,e.dyn_dtree)),V(e),n&&Z(e)},t._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(U[r]+p+1)]++,e.dyn_dtree[2*N(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){K(e,c<<1,3),q(e,w,M),function(e){16===e.bi_valid?(j(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},function(e,t,r){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,r){"use strict";var n=r(108),i=r(198),o=r(199),s=r(349),a=r(350),u=0,f=1,c=2,l=4,h=5,p=6,d=0,_=1,y=2,g=-2,b=-3,m=-4,v=-5,w=8,k=1,x=2,E=3,S=4,A=5,B=6,D=7,M=8,P=9,I=10,U=11,T=12,R=13,F=14,C=15,O=16,z=17,L=18,N=19,j=20,K=21,q=22,G=23,H=24,V=25,Z=26,W=27,Y=28,X=29,$=30,J=31,Q=32,ee=852,te=592,re=15;function ne(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function ie(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function oe(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=k,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(ee),t.distcode=t.distdyn=new n.Buf32(te),t.sane=1,t.back=-1,d):g}function se(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,oe(e)):g}function ae(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?g:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,se(e))):g}function ue(e,t){var r,n;return e?(n=new ie,e.state=n,n.window=null,(r=ae(e,t))!==d&&(e.state=null),r):g}var fe,ce,le=!0;function he(e){if(le){var t;for(fe=new n.Buf32(512),ce=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(f,e.lens,0,288,fe,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(c,e.lens,0,32,ce,0,e.work,{bits:5}),le=!1}e.lencode=fe,e.lenbits=9,e.distcode=ce,e.distbits=5}function pe(e,t,r,i){var o,s=e.state;return null===s.window&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new n.Buf8(s.wsize)),i>=s.wsize?(n.arraySet(s.window,t,r-s.wsize,s.wsize,0),s.wnext=0,s.whave=s.wsize):((o=s.wsize-s.wnext)>i&&(o=i),n.arraySet(s.window,t,r-i,o,s.wnext),(i-=o)?(n.arraySet(s.window,t,r-i,i,0),s.wnext=i,s.whave=s.wsize):(s.wnext+=o,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=o))),0}t.inflateReset=se,t.inflateReset2=ae,t.inflateResetKeep=oe,t.inflateInit=function(e){return ue(e,re)},t.inflateInit2=ue,t.inflate=function(e,t){var r,ee,te,re,ie,oe,se,ae,ue,fe,ce,le,de,_e,ye,ge,be,me,ve,we,ke,xe,Ee,Se,Ae=0,Be=new n.Buf8(4),De=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return g;(r=e.state).mode===T&&(r.mode=R),ie=e.next_out,te=e.output,se=e.avail_out,re=e.next_in,ee=e.input,oe=e.avail_in,ae=r.hold,ue=r.bits,fe=oe,ce=se,xe=d;e:for(;;)switch(r.mode){case k:if(0===r.wrap){r.mode=R;break}for(;ue<16;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}if(2&r.wrap&&35615===ae){r.check=0,Be[0]=255&ae,Be[1]=ae>>>8&255,r.check=o(r.check,Be,2,0),ae=0,ue=0,r.mode=x;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&ae)<<8)+(ae>>8))%31){e.msg="incorrect header check",r.mode=$;break}if((15&ae)!==w){e.msg="unknown compression method",r.mode=$;break}if(ue-=4,ke=8+(15&(ae>>>=4)),0===r.wbits)r.wbits=ke;else if(ke>r.wbits){e.msg="invalid window size",r.mode=$;break}r.dmax=1<<ke,e.adler=r.check=1,r.mode=512&ae?I:T,ae=0,ue=0;break;case x:for(;ue<16;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}if(r.flags=ae,(255&r.flags)!==w){e.msg="unknown compression method",r.mode=$;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=$;break}r.head&&(r.head.text=ae>>8&1),512&r.flags&&(Be[0]=255&ae,Be[1]=ae>>>8&255,r.check=o(r.check,Be,2,0)),ae=0,ue=0,r.mode=E;case E:for(;ue<32;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}r.head&&(r.head.time=ae),512&r.flags&&(Be[0]=255&ae,Be[1]=ae>>>8&255,Be[2]=ae>>>16&255,Be[3]=ae>>>24&255,r.check=o(r.check,Be,4,0)),ae=0,ue=0,r.mode=S;case S:for(;ue<16;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}r.head&&(r.head.xflags=255&ae,r.head.os=ae>>8),512&r.flags&&(Be[0]=255&ae,Be[1]=ae>>>8&255,r.check=o(r.check,Be,2,0)),ae=0,ue=0,r.mode=A;case A:if(1024&r.flags){for(;ue<16;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}r.length=ae,r.head&&(r.head.extra_len=ae),512&r.flags&&(Be[0]=255&ae,Be[1]=ae>>>8&255,r.check=o(r.check,Be,2,0)),ae=0,ue=0}else r.head&&(r.head.extra=null);r.mode=B;case B:if(1024&r.flags&&((le=r.length)>oe&&(le=oe),le&&(r.head&&(ke=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,ee,re,le,ke)),512&r.flags&&(r.check=o(r.check,ee,le,re)),oe-=le,re+=le,r.length-=le),r.length))break e;r.length=0,r.mode=D;case D:if(2048&r.flags){if(0===oe)break e;le=0;do{ke=ee[re+le++],r.head&&ke&&r.length<65536&&(r.head.name+=String.fromCharCode(ke))}while(ke&&le<oe);if(512&r.flags&&(r.check=o(r.check,ee,le,re)),oe-=le,re+=le,ke)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=M;case M:if(4096&r.flags){if(0===oe)break e;le=0;do{ke=ee[re+le++],r.head&&ke&&r.length<65536&&(r.head.comment+=String.fromCharCode(ke))}while(ke&&le<oe);if(512&r.flags&&(r.check=o(r.check,ee,le,re)),oe-=le,re+=le,ke)break e}else r.head&&(r.head.comment=null);r.mode=P;case P:if(512&r.flags){for(;ue<16;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}if(ae!==(65535&r.check)){e.msg="header crc mismatch",r.mode=$;break}ae=0,ue=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=T;break;case I:for(;ue<32;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}e.adler=r.check=ne(ae),ae=0,ue=0,r.mode=U;case U:if(0===r.havedict)return e.next_out=ie,e.avail_out=se,e.next_in=re,e.avail_in=oe,r.hold=ae,r.bits=ue,y;e.adler=r.check=1,r.mode=T;case T:if(t===h||t===p)break e;case R:if(r.last){ae>>>=7&ue,ue-=7&ue,r.mode=W;break}for(;ue<3;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}switch(r.last=1&ae,ue-=1,3&(ae>>>=1)){case 0:r.mode=F;break;case 1:if(he(r),r.mode=j,t===p){ae>>>=2,ue-=2;break e}break;case 2:r.mode=z;break;case 3:e.msg="invalid block type",r.mode=$}ae>>>=2,ue-=2;break;case F:for(ae>>>=7&ue,ue-=7&ue;ue<32;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}if((65535&ae)!=(ae>>>16^65535)){e.msg="invalid stored block lengths",r.mode=$;break}if(r.length=65535&ae,ae=0,ue=0,r.mode=C,t===p)break e;case C:r.mode=O;case O:if(le=r.length){if(le>oe&&(le=oe),le>se&&(le=se),0===le)break e;n.arraySet(te,ee,re,le,ie),oe-=le,re+=le,se-=le,ie+=le,r.length-=le;break}r.mode=T;break;case z:for(;ue<14;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}if(r.nlen=257+(31&ae),ae>>>=5,ue-=5,r.ndist=1+(31&ae),ae>>>=5,ue-=5,r.ncode=4+(15&ae),ae>>>=4,ue-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=$;break}r.have=0,r.mode=L;case L:for(;r.have<r.ncode;){for(;ue<3;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}r.lens[De[r.have++]]=7&ae,ae>>>=3,ue-=3}for(;r.have<19;)r.lens[De[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,Ee={bits:r.lenbits},xe=a(u,r.lens,0,19,r.lencode,0,r.work,Ee),r.lenbits=Ee.bits,xe){e.msg="invalid code lengths set",r.mode=$;break}r.have=0,r.mode=N;case N:for(;r.have<r.nlen+r.ndist;){for(;ge=(Ae=r.lencode[ae&(1<<r.lenbits)-1])>>>16&255,be=65535&Ae,!((ye=Ae>>>24)<=ue);){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}if(be<16)ae>>>=ye,ue-=ye,r.lens[r.have++]=be;else{if(16===be){for(Se=ye+2;ue<Se;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}if(ae>>>=ye,ue-=ye,0===r.have){e.msg="invalid bit length repeat",r.mode=$;break}ke=r.lens[r.have-1],le=3+(3&ae),ae>>>=2,ue-=2}else if(17===be){for(Se=ye+3;ue<Se;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}ue-=ye,ke=0,le=3+(7&(ae>>>=ye)),ae>>>=3,ue-=3}else{for(Se=ye+7;ue<Se;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}ue-=ye,ke=0,le=11+(127&(ae>>>=ye)),ae>>>=7,ue-=7}if(r.have+le>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=$;break}for(;le--;)r.lens[r.have++]=ke}}if(r.mode===$)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=$;break}if(r.lenbits=9,Ee={bits:r.lenbits},xe=a(f,r.lens,0,r.nlen,r.lencode,0,r.work,Ee),r.lenbits=Ee.bits,xe){e.msg="invalid literal/lengths set",r.mode=$;break}if(r.distbits=6,r.distcode=r.distdyn,Ee={bits:r.distbits},xe=a(c,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,Ee),r.distbits=Ee.bits,xe){e.msg="invalid distances set",r.mode=$;break}if(r.mode=j,t===p)break e;case j:r.mode=K;case K:if(oe>=6&&se>=258){e.next_out=ie,e.avail_out=se,e.next_in=re,e.avail_in=oe,r.hold=ae,r.bits=ue,s(e,ce),ie=e.next_out,te=e.output,se=e.avail_out,re=e.next_in,ee=e.input,oe=e.avail_in,ae=r.hold,ue=r.bits,r.mode===T&&(r.back=-1);break}for(r.back=0;ge=(Ae=r.lencode[ae&(1<<r.lenbits)-1])>>>16&255,be=65535&Ae,!((ye=Ae>>>24)<=ue);){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}if(ge&&0==(240&ge)){for(me=ye,ve=ge,we=be;ge=(Ae=r.lencode[we+((ae&(1<<me+ve)-1)>>me)])>>>16&255,be=65535&Ae,!(me+(ye=Ae>>>24)<=ue);){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}ae>>>=me,ue-=me,r.back+=me}if(ae>>>=ye,ue-=ye,r.back+=ye,r.length=be,0===ge){r.mode=Z;break}if(32&ge){r.back=-1,r.mode=T;break}if(64&ge){e.msg="invalid literal/length code",r.mode=$;break}r.extra=15&ge,r.mode=q;case q:if(r.extra){for(Se=r.extra;ue<Se;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}r.length+=ae&(1<<r.extra)-1,ae>>>=r.extra,ue-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=G;case G:for(;ge=(Ae=r.distcode[ae&(1<<r.distbits)-1])>>>16&255,be=65535&Ae,!((ye=Ae>>>24)<=ue);){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}if(0==(240&ge)){for(me=ye,ve=ge,we=be;ge=(Ae=r.distcode[we+((ae&(1<<me+ve)-1)>>me)])>>>16&255,be=65535&Ae,!(me+(ye=Ae>>>24)<=ue);){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}ae>>>=me,ue-=me,r.back+=me}if(ae>>>=ye,ue-=ye,r.back+=ye,64&ge){e.msg="invalid distance code",r.mode=$;break}r.offset=be,r.extra=15&ge,r.mode=H;case H:if(r.extra){for(Se=r.extra;ue<Se;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}r.offset+=ae&(1<<r.extra)-1,ae>>>=r.extra,ue-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=$;break}r.mode=V;case V:if(0===se)break e;if(le=ce-se,r.offset>le){if((le=r.offset-le)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=$;break}le>r.wnext?(le-=r.wnext,de=r.wsize-le):de=r.wnext-le,le>r.length&&(le=r.length),_e=r.window}else _e=te,de=ie-r.offset,le=r.length;le>se&&(le=se),se-=le,r.length-=le;do{te[ie++]=_e[de++]}while(--le);0===r.length&&(r.mode=K);break;case Z:if(0===se)break e;te[ie++]=r.length,se--,r.mode=K;break;case W:if(r.wrap){for(;ue<32;){if(0===oe)break e;oe--,ae|=ee[re++]<<ue,ue+=8}if(ce-=se,e.total_out+=ce,r.total+=ce,ce&&(e.adler=r.check=r.flags?o(r.check,te,ce,ie-ce):i(r.check,te,ce,ie-ce)),ce=se,(r.flags?ae:ne(ae))!==r.check){e.msg="incorrect data check",r.mode=$;break}ae=0,ue=0}r.mode=Y;case Y:if(r.wrap&&r.flags){for(;ue<32;){if(0===oe)break e;oe--,ae+=ee[re++]<<ue,ue+=8}if(ae!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=$;break}ae=0,ue=0}r.mode=X;case X:xe=_;break e;case $:xe=b;break e;case J:return m;case Q:default:return g}return e.next_out=ie,e.avail_out=se,e.next_in=re,e.avail_in=oe,r.hold=ae,r.bits=ue,(r.wsize||ce!==e.avail_out&&r.mode<$&&(r.mode<W||t!==l))&&pe(e,e.output,e.next_out,ce-e.avail_out)?(r.mode=J,m):(fe-=e.avail_in,ce-=e.avail_out,e.total_in+=fe,e.total_out+=ce,r.total+=ce,r.wrap&&ce&&(e.adler=r.check=r.flags?o(r.check,te,ce,e.next_out-ce):i(r.check,te,ce,e.next_out-ce)),e.data_type=r.bits+(r.last?64:0)+(r.mode===T?128:0)+(r.mode===j||r.mode===C?256:0),(0===fe&&0===ce||t===l)&&xe===d&&(xe=v),xe)},t.inflateEnd=function(e){if(!e||!e.state)return g;var t=e.state;return t.window&&(t.window=null),e.state=null,d},t.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?g:(r.head=t,t.done=!1,d):g},t.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&r.mode!==U?g:r.mode===U&&i(1,t,n,0)!==r.check?b:pe(e,t,n,n)?(r.mode=J,m):(r.havedict=1,d):g},t.inflateInfo="pako inflate (from Nodeca project)"},function(e,t,r){"use strict";e.exports=function(e,t){var r,n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A;r=e.state,n=e.next_in,S=e.input,i=n+(e.avail_in-5),o=e.next_out,A=e.output,s=o-(t-e.avail_out),a=o+(e.avail_out-257),u=r.dmax,f=r.wsize,c=r.whave,l=r.wnext,h=r.window,p=r.hold,d=r.bits,_=r.lencode,y=r.distcode,g=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;e:do{d<15&&(p+=S[n++]<<d,d+=8,p+=S[n++]<<d,d+=8),m=_[p&g];t:for(;;){if(p>>>=v=m>>>24,d-=v,0===(v=m>>>16&255))A[o++]=65535&m;else{if(!(16&v)){if(0==(64&v)){m=_[(65535&m)+(p&(1<<v)-1)];continue t}if(32&v){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}w=65535&m,(v&=15)&&(d<v&&(p+=S[n++]<<d,d+=8),w+=p&(1<<v)-1,p>>>=v,d-=v),d<15&&(p+=S[n++]<<d,d+=8,p+=S[n++]<<d,d+=8),m=y[p&b];r:for(;;){if(p>>>=v=m>>>24,d-=v,!(16&(v=m>>>16&255))){if(0==(64&v)){m=y[(65535&m)+(p&(1<<v)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(k=65535&m,d<(v&=15)&&(p+=S[n++]<<d,(d+=8)<v&&(p+=S[n++]<<d,d+=8)),(k+=p&(1<<v)-1)>u){e.msg="invalid distance too far back",r.mode=30;break e}if(p>>>=v,d-=v,k>(v=o-s)){if((v=k-v)>c&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(x=0,E=h,0===l){if(x+=f-v,v<w){w-=v;do{A[o++]=h[x++]}while(--v);x=o-k,E=A}}else if(l<v){if(x+=f+l-v,(v-=l)<w){w-=v;do{A[o++]=h[x++]}while(--v);if(x=0,l<w){w-=v=l;do{A[o++]=h[x++]}while(--v);x=o-k,E=A}}}else if(x+=l-v,v<w){w-=v;do{A[o++]=h[x++]}while(--v);x=o-k,E=A}for(;w>2;)A[o++]=E[x++],A[o++]=E[x++],A[o++]=E[x++],w-=3;w&&(A[o++]=E[x++],w>1&&(A[o++]=E[x++]))}else{x=o-k;do{A[o++]=A[x++],A[o++]=A[x++],A[o++]=A[x++],w-=3}while(w>2);w&&(A[o++]=A[x++],w>1&&(A[o++]=A[x++]))}break}}break}}while(n<i&&o<a);n-=w=d>>3,p&=(1<<(d-=w<<3))-1,e.next_in=n,e.next_out=o,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=o<a?a-o+257:257-(o-a),r.hold=p,r.bits=d}},function(e,t,r){"use strict";var n=r(108),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,r,u,f,c,l,h){var p,d,_,y,g,b,m,v,w,k=h.bits,x=0,E=0,S=0,A=0,B=0,D=0,M=0,P=0,I=0,U=0,T=null,R=0,F=new n.Buf16(16),C=new n.Buf16(16),O=null,z=0;for(x=0;x<=15;x++)F[x]=0;for(E=0;E<u;E++)F[t[r+E]]++;for(B=k,A=15;A>=1&&0===F[A];A--);if(B>A&&(B=A),0===A)return f[c++]=20971520,f[c++]=20971520,h.bits=1,0;for(S=1;S<A&&0===F[S];S++);for(B<S&&(B=S),P=1,x=1;x<=15;x++)if(P<<=1,(P-=F[x])<0)return-1;if(P>0&&(0===e||1!==A))return-1;for(C[1]=0,x=1;x<15;x++)C[x+1]=C[x]+F[x];for(E=0;E<u;E++)0!==t[r+E]&&(l[C[t[r+E]]++]=E);if(0===e?(T=O=l,b=19):1===e?(T=i,R-=257,O=o,z-=257,b=256):(T=s,O=a,b=-1),U=0,E=0,x=S,g=c,D=B,M=0,_=-1,y=(I=1<<B)-1,1===e&&I>852||2===e&&I>592)return 1;for(;;){m=x-M,l[E]<b?(v=0,w=l[E]):l[E]>b?(v=O[z+l[E]],w=T[R+l[E]]):(v=96,w=0),p=1<<x-M,S=d=1<<D;do{f[g+(U>>M)+(d-=p)]=m<<24|v<<16|w|0}while(0!==d);for(p=1<<x-1;U&p;)p>>=1;if(0!==p?(U&=p-1,U+=p):U=0,E++,0==--F[x]){if(x===A)break;x=t[r+l[E]]}if(x>B&&(U&y)!==_){for(0===M&&(M=B),g+=S,P=1<<(D=x-M);D+M<A&&!((P-=F[D+M])<=0);)D++,P<<=1;if(I+=1<<D,1===e&&I>852||2===e&&I>592)return 1;f[_=U&y]=B<<24|D<<16|g-c|0}}return 0!==U&&(f[g+U]=x-M<<24|64<<16|0),h.bits=B,0}},function(e,t,r){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y={}.hasOwnProperty,g=function(e,t){for(var r in t)y.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};p=r(34),_=r(76),l=_.endian_reverse,f=_.WordArray,i=r(380).Counter,h=r(114).fixup_uint32,u=r(130).StreamCipher,d=r(114),c=function(e,t){var r,n,i,o;for(n=i=0,o=t.length;i<o;n=++i)r=t[n],e[n]+=r;return!1},o=function(t){function r(e,t){var n;if(r.__super__.constructor.call(this,20),this.key=e.clone().endian_reverse(),this.nonce=t.clone().endian_reverse(),(16!==this.key.sigBytes||8!==this.nonce.sigBytes)&&(32!==this.key.sigBytes||8!==(n=this.nonce.sigBytes)&&24!==n))throw new Error("Bad key/nonce lengths");24===this.nonce.sigBytes&&this.xsalsa_setup(),this.input=this.key_iv_setup(this.nonce,this.key),this._reset()}return g(r,t),r.prototype.sigma=f.from_buffer_le(e.from("expand 32-byte k")),r.prototype.tau=f.from_buffer_le(e.from("expand 16-byte k")),r.blockSize=64,r.prototype.blockSize=r.blockSize,r.keySize=32,r.prototype.keySize=r.keySize,r.ivSize=24,r.prototype.ivSize=r.ivSize,r.prototype.scrub=function(){return this.key.scrub(),this.nonce.scrub(),d.scrub_vec(this.input)},r.prototype.xsalsa_setup=function(){var e;return e=new f(this.nonce.words.slice(0,4)),this.nonce=new f(this.nonce.words.slice(4)),this.key=this.hsalsa20(e,this.key)},r.prototype.hsalsa20=function(e,t){var r,n,i,o;return(i=this.key_iv_setup(e,t))[8]=e.words[2],i[9]=e.words[3],o=this._core(i),n=[0,5,10,15,6,7,8,9],o=function(){var e,t,i;for(i=[],e=0,t=n.length;e<t;e++)r=n[e],i.push(h(o[r]));return i}(),d.scrub_vec(i),new f(o)},r.prototype.key_iv_setup=function(e,t){var r,n,i,o,s,a,u,f;for(o=[],i=s=0;s<4;i=++s)o[i+1]=t.words[i];for(n=(f=32===t.sigBytes?[this.sigma,t.words.slice(4)]:[this.tau,t.words])[0],r=f[1],i=a=0;a<4;i=++a)o[i+11]=r[i];for(i=u=0;u<4;i=++u)o[5*i]=n.words[i];return o[6]=e.words[0],o[7]=e.words[1],o},r.prototype.counter_setup=function(){return this.input[8]=this.counter.get().words[0],this.input[9]=this.counter.get().words[1]},r.prototype._reset=function(){return this.counter=new i({len:2})},r.prototype._generateBlock=function(){var e;return this.counter_setup(),e=this._core(this.input),c(e,this.input),this.counter.inc_le(),e},r}(s=function(){function e(e){this.rounds=e}return e.prototype._core=function(e){var t,r,n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m;for(r=e[0],n=e[1],c=e[2],l=e[3],h=e[4],p=e[5],d=e[6],_=e[7],y=e[8],g=e[9],i=e[10],o=e[11],s=e[12],a=e[13],u=e[14],f=e[15],b=0,m=this.rounds;b<m;b+=2)r^=(t=(s^=(t=(y^=(t=(h^=(t=r+s|0)<<7|t>>>25)+r|0)<<9|t>>>23)+h|0)<<13|t>>>19)+y|0)<<18|t>>>14,p^=(t=(n^=(t=(a^=(t=(g^=(t=p+n|0)<<7|t>>>25)+p|0)<<9|t>>>23)+g|0)<<13|t>>>19)+a|0)<<18|t>>>14,i^=(t=(d^=(t=(c^=(t=(u^=(t=i+d|0)<<7|t>>>25)+i|0)<<9|t>>>23)+u|0)<<13|t>>>19)+c|0)<<18|t>>>14,f^=(t=(o^=(t=(_^=(t=(l^=(t=f+o|0)<<7|t>>>25)+f|0)<<9|t>>>23)+l|0)<<13|t>>>19)+_|0)<<18|t>>>14,r^=(t=(l^=(t=(c^=(t=(n^=(t=r+l|0)<<7|t>>>25)+r|0)<<9|t>>>23)+n|0)<<13|t>>>19)+c|0)<<18|t>>>14,p^=(t=(h^=(t=(_^=(t=(d^=(t=p+h|0)<<7|t>>>25)+p|0)<<9|t>>>23)+d|0)<<13|t>>>19)+_|0)<<18|t>>>14,i^=(t=(g^=(t=(y^=(t=(o^=(t=i+g|0)<<7|t>>>25)+i|0)<<9|t>>>23)+o|0)<<13|t>>>19)+y|0)<<18|t>>>14,f^=(t=(u^=(t=(a^=(t=(s^=(t=f+u|0)<<7|t>>>25)+f|0)<<9|t>>>23)+s|0)<<13|t>>>19)+a|0)<<18|t>>>14;return[r,n,c,l,h,p,d,_,y,g,i,o,s,a,u,f]},e}()),t.Salsa20WordStream=a=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return g(t,e),t.prototype._reset=function(){return t.__super__._reset.call(this)},t.prototype.getWordArray=function(e){var t,r,n,i,o,s,a,u;for(null==e||e===this.blockSize?o=this._generateBlock():(n=Math.ceil(e/this.blockSize),t=function(){var e,t;for(t=[],r=e=0;0<=n?e<n:e>n;r=0<=n?++e:--e)t.push(this._generateBlock());return t}.call(this),o=(u=[]).concat.apply(u,t)),r=s=0,a=o.length;s<a;r=++s)i=o[r],o[r]=l(i);return new f(o,e)},t}(o),t.Salsa20=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return g(r,t),r.prototype._reset=function(){return r.__super__._reset.call(this),this._i=this.blockSize},r.prototype.getBytes=function(t){var r,n,i;if(null==t&&(t=this.blockSize),i=[],r=this.blockSize,this._i===r&&t===r)return this._generateBlockBuffer();for(;t>0;)this._i===r&&(this._generateBlockBuffer(),this._i=0),n=Math.min(t,r-this._i),i.push(n===r?this._buf:this._buf.slice(this._i,this._i+n)),this._i+=n,t-=n;return e.concat(i)},r.prototype._generateBlockBuffer=function(){var t,r,n,i,o;for(this._buf=e.alloc(this.blockSize),r=i=0,o=(n=this._generateBlock()).length;i<o;r=++i)t=n[r],this._buf.writeUInt32LE(h(t),4*r);return this._buf},r}(o),t.Cipher=n=function(e){function t(e){var r,n;n=e.key,r=e.iv,t.__super__.constructor.call(this),this.salsa=new a(n,r),this.bsiw=this.salsa.blockSize/4}return g(t,e),t.prototype.scrub=function(){return this.salsa.scrub()},t.prototype.get_pad=function(){return this.salsa.getWordArray()},t}(u),t.encrypt=function(e){var t,r,i,o,s;return o=e.key,i=e.iv,r=e.input,s=(t=new n({key:o,iv:i})).encrypt(r),t.scrub(),s},t.bulk_encrypt=function(e,t){var r,i,o,s,a,u,f,c;f=p.findDeferral(arguments),s=e.key,o=e.iv,i=e.input,a=e.progress_hook,r=new n({key:s,iv:o}),function(e){c=new p.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/triplesec/src/salsa20.iced"}),r.bulk_encrypt({input:i,progress_hook:a,what:"salsa20"},c.defer({assign_fn:function(){return u=arguments[0]},lineno:256})),c._fulfill()}((function(){return r.scrub(),t(u)}))},t.Salsa20InnerCore=s,t.endian_reverse=l,t.asum=c}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f={}.hasOwnProperty;u=r(76),o=u.WordArray,s=u.X64Word,u.X64WordArray,n=r(130).Hasher,e=function(){function e(){this.RHO_OFFSETS=[],this.PI_INDEXES=[],this.ROUND_CONSTANTS=[],this.T=[],this.compute_rho_offsets(),this.compute_pi_indexes(),this.compute_round_constants(),this.make_reusables()}return e.prototype.compute_rho_offsets=function(){var e,t,r,n,i,o;for(r=1,n=0,o=[],t=i=0;i<24;t=++i)this.RHO_OFFSETS[r+5*n]=(t+1)*(t+2)/2%64,e=(2*r+3*n)%5,r=n%5,o.push(n=e);return o},e.prototype.compute_pi_indexes=function(){var e,t,r,n;for(n=[],e=r=0;r<5;e=++r)n.push(function(){var r,n;for(n=[],t=r=0;r<5;t=++r)n.push(this.PI_INDEXES[e+5*t]=t+(2*e+3*t)%5*5);return n}.call(this));return n},e.prototype.compute_round_constants=function(){var e,t,r,n,i,o,a,u,f;for(e=1,f=[],r=a=0;a<24;r=++a){for(o=0,i=0,n=u=0;u<7;n=++u)1&e&&((t=(1<<n)-1)<32?i^=1<<t:o^=1<<t-32),128&e?e=e<<1^113:e<<=1;f.push(this.ROUND_CONSTANTS[r]=new s(o,i))}return f},e.prototype.make_reusables=function(){return this.T=function(){var e,t;for(t=[],e=0;e<25;++e)t.push(new s(0,0));return t}()},e}(),a=new e,t.KECCAK=i=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)f.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.outputLength=512,t.prototype.outputLength=t.outputLength,t.blockSize=(1600-2*t.outputLength)/32,t.prototype.blockSize=t.blockSize,t.output_size=t.outputLength/8,t.prototype.output_size=t.output_size,t.prototype.pad=1,t.prototype._doReset=function(){return this._state=function(){var e,t;for(t=[],e=0;e<25;++e)t.push(new s(0,0));return t}()},t.prototype._doProcessBlock=function(e,t){var r,n,i,o,s,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A,B,D,M,P,I,U,T,R,F,C,O,z,L,N;for(r=a,S=this._state,w=this.blockSize/2,y=I=0;0<=w?I<w:I>w;y=0<=w?++I:--I)n=16711935&((n=e[t+2*y])<<8|n>>>24)|4278255360&(n<<24|n>>>8),i=16711935&((i=e[t+2*y+1])<<8|i>>>24)|4278255360&(i<<24|i>>>8),(g=S[y]).high^=i,g.low^=n;for(N=[],x=U=0;U<24;x=++U){for(M=T=0;T<5;M=++T){for(D=B=0,P=R=0;R<5;P=++R)D^=(g=S[M+5*P]).high,B^=g.low;(f=r.T[M]).high=D,f.low=B}for(M=F=0;F<5;M=++F)for(_=r.T[(M+4)%5],p=(c=r.T[(M+1)%5]).high,h=c.low,D=_.high^(p<<1|h>>>31),B=_.low^(h<<1|p>>>31),P=C=0;C<5;P=++C)(g=S[M+5*P]).high^=D,g.low^=B;for(b=O=1;O<25;b=++O)v=(g=S[b]).high,m=g.low,(k=r.RHO_OFFSETS[b])<32?(D=v<<k|m>>>32-k,B=m<<k|v>>>32-k):(D=m<<k-32|v>>>64-k,B=v<<k-32|m>>>64-k),(u=r.T[r.PI_INDEXES[b]]).high=D,u.low=B;for(o=r.T[0],A=S[0],o.high=A.high,o.low=A.low,M=z=0;z<5;M=++z)for(P=L=0;L<5;P=++L)g=S[b=M+5*P],s=r.T[b],l=r.T[(M+1)%5+5*P],d=r.T[(M+2)%5+5*P],g.high=s.high^~l.high&d.high,g.low=s.low^~l.low&d.low;g=S[0],E=r.ROUND_CONSTANTS[x],g.high^=E.high,N.push(g.low^=E.low)}return N},t.prototype._doFinalize=function(){var e,t,r,n,i,s,a,u,f,c,l,h,p;for(r=(t=this._data).words,8*this._nDataBytes,f=8*t.sigBytes,e=32*this.blockSize,r[f>>>5]|=this.pad<<24-f%32,r[(Math.ceil((f+1)/e)*e>>>5)-1]|=128,t.sigBytes=4*r.length,this._process(),h=this._state,l=(c=this.outputLength/8)/8,n=[],i=p=0;0<=l?p<l:p>l;i=0<=l?++p:--p)u=16711935&((u=(s=h[i]).high)<<8|u>>>24)|4278255360&(u<<24|u>>>8),a=16711935&((a=s.low)<<8|a>>>24)|4278255360&(a<<24|a>>>8),n.push(a),n.push(u);return new o(n,c)},t.prototype.copy_to=function(e){var r;return t.__super__.copy_to.call(this,e),e._state=function(){var e,t,n,i;for(i=[],e=0,t=(n=this._state).length;e<t;e++)r=n[e],i.push(r.clone());return i}.call(this)},t.prototype.scrub=function(){},t.prototype.clone=function(){var e;return e=new t,this.copy_to(e),e},t}(n),t.transform=function(e){var t;return t=(new i).finalize(e),e.scrub(),t}}).call(this)},function(e,t,r){(function(e){(function(){var n;n=r(36),t.make_time_packet=function(t){var r;return t||(t=Math.floor(Date.now()/1e3)),(r=e.alloc(4)).writeUInt32BE(t,0),r},t.calc_checksum=function(e){var t,r,n,i;for(r=0,t=n=0,i=e.length;0<=i?n<i:n>i;t=0<=i?++n:--n)r=(r+e.readUInt8(t))%65536;return r},t.encode_length=function(t,r){var n;return null==r&&(r=!1),n=null,t>=8384||r?((n=e.alloc(5)).writeUInt8(255,0),n.writeUInt32BE(t,1)):t<192?(n=e.alloc(1)).writeUInt8(t,0):t>=192&&t<8384&&(n=e.alloc(2)).writeUInt16BE(t-192+49152,0),n},t.ops_to_keyflags=function(e){var t;return t=0,e&n.ops.encrypt&&(t|=n.openpgp.key_flags.encrypt_comm),e&n.ops.decrypt&&(t|=n.openpgp.key_flags.encrypt_comm),e&n.ops.verify&&(t|=n.openpgp.key_flags.sign_data),e&n.ops.sign&&(t|=n.openpgp.key_flags.sign_data),t},t.fit_to_size=function(t,r){var n;return 0===(n=t-r.length)?r:n>0?e.concat([e.alloc(n),r]):n<0?r.slice(-t):void 0}}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l;f=r(34),n=r(95).SHA512,r(36).openpgp,c=r(115).nbs,l=r(50),s=l.buffer_to_ui8a,o=l.bufeq_secure,i=r(94).SRF,u={MD5:[48,32,48,12,6,8,42,134,72,134,247,13,2,5,5,0,4,16],SHA1:[48,33,48,9,6,5,43,14,3,2,26,5,0,4,20],SHA224:[48,45,48,13,6,9,96,134,72,1,101,3,4,2,4,5,0,4,28],SHA256:[48,49,48,13,6,9,96,134,72,1,101,3,4,2,1,5,0,4,32],SHA384:[48,65,48,13,6,9,96,134,72,1,101,3,4,2,2,5,0,4,48],SHA512:[48,81,48,13,6,9,96,134,72,1,101,3,4,2,3,5,0,4,64]},t.emsa_pkcs1_encode=function(t,r,i){var o,a,f,l;return null==i&&(i={}),a=i.hasher||n,f=u[a.algname],l=r-f.length-3-a.output_length,o=e.concat([e.from([0,1]),e.from(function(){var e,t;for(t=[],e=0;0<=l?e<l:e>l;0<=l?++e:--e)t.push(255);return t}()),e.from([0]),e.from(f),t]),c(s(o),256)},t.emsa_pkcs1_decode=function(t,r){var n,i,s,a,f;if(n=f=null,a=0,t.length<2)n=new Error("signature was way too short: < 2 bytes");else if(1!==t.readUInt16BE(0))n=new Error("Sig verify error: Didn't get two-byte header 0x00 0x01");else{for(a=2;a<t.length&&255===t.readUInt8(a);)a++;a>=t.length||0!==t.readUInt8(a)?n=new Error("Sig verify error: Missed the 0x0 separator"):(a++,s=u[r.algname],o(e.from(s),t.slice(a,s.length+a))?(a+=s.length,(i=t.slice(a)).length!==r.output_length?n=new Error("Sig verify error: trailing garbage in signature"):f=i):n=new Error("Sig verify error: missing ASN header for "+r.algname))}return[n,f]},a=function(t,r){var n,o,s,a,u,c,l;c=f.findDeferral(arguments),o=[],function(e){var r;(r=function(e){var h,p;if(h=e,p=function(){return f.trampoline((function(){return r(e)}))},!(o.length<t))return h();a=t-o.length,l=new f.Deferrals((function(){var e;for(u=e=0;0<=a?e<a:e>a;u=0<=a?++e:--e)0!==(s=n.readUInt8(u))&&o.push(s);return p()}),{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/pad.iced"}),i().random_bytes(a,l.defer({assign_fn:function(){return n=arguments[0]},lineno:77})),l._fulfill()})(e)}((function(){return r(e.from(o))}))},t.eme_pkcs1_encode=function(t,r,n){var i,o,u,l,h,p,d;p=f.findDeferral(arguments),h=u=null,function(n){if(t.length>r-11)return n(u=new Error("cannot encrypt message -- it's too long!"));l=r-3-t.length,function(e){d=new f.Deferrals(e,{parent:p,filename:"/Users/max/src/keybase/kbpgp/src/pad.iced",funcname:"eme_pkcs1_encode"}),a(l,d.defer({assign_fn:function(){return i=arguments[0]},lineno:93})),d._fulfill()}((function(){return o=e.concat([e.from([0,2]),i,e.from([0]),t]),n(h=c(s(o),256))}))}((function(){return n(u,h)}))},t.eme_pkcs1_decode=function(e){var t,r,n;if(t=n=null,e.length<12)t=new Error("Ciphertext too short, needs to be >= 12 bytes");else if(2!==e.readUInt16BE(0))t=new Error("Failed to find expected header: 0x00 0x02");else{for(r=2;r<e.length&&0!==e.readUInt8(r);)r++;r>=e.length?t=new Error("didn't get 0x00 seperator octet"):(r++,n=e.slice(r))}return[t,n]},t.ecc_pkcs5_pad_data=function(t){var r,n,i,o;return r=i=null,(n=40-t.length)<0?r=new Error("Pad underrun"):(o=function(){var e,t;for(t=[],e=0;0<=n?e<n:e>n;0<=n?e++:e--)t.push(n);return t}(),i=e.concat([t,e.from(o)])),[r,i]},t.ecc_pkcs5_unpad_data=function(e,t){var r,n,i,o,s,a;if(n=null,(o=e.length-t)<0)n=new Error("Pad length was < 0; pad underrun");else if(e.length%8!=0)n=new Error("Padded data must be a multiple of 8 bytes long");else for(i=s=t,a=e.length;t<=a?s<a:s>a;i=t<=a?++s:--s)if((r=e.readUInt8(i))!==o){n=new Error("Got bad PKCS#5 pad character "+r+" at position "+i+"; wanted "+o);break}return n}}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h;i=r(36).openpgp.symmetric_key_algorithms,l=r(82),n=l.ciphers.AES,o=r(1309).CAST5,s=r(200).SlicerBuffer,a=l.WordArray,h=r(50).uint_to_buffer,f=r(355).ecc_pkcs5_unpad_data,t.get_cipher=c=function(e){var t;return e||(e=i.AES256),(t=function(){switch(e){case i.AES128:return{klass:n,key_size:16};case i.AES192:return{klass:n,key_size:24};case i.AES256:return{klass:n,key_size:32};case i.CAST5:return{klass:o,key_size:o.keySize};default:throw new Error("unknown cipher: "+e)}}()).type=e,t},t.checksum2=u=function(e){var t,r,n,i;for(r=0,t=n=0,i=e.length;0<=i?n<i:n>i;t=0<=i?++n:--n)r=r+e.readUInt8(t)&65535;return r},t.import_key_pgp=function(e,t){var r,n,i,o,l;if(null==t&&(t=!1),l=new s(e),null,n=c(l.read_uint8()),o=l.read_buffer(n.key_size),r=l.read_uint16(),null!=(i=u(o)!==r?new Error("Checksum mismatch"):t?f(e,l.offset()):l.rem()?new Error("Junk at the end of input"):null))throw i;return new n.klass(a.from_buffer(o))},t.export_key_pgp=function(t,r){var n;return n=u(r),e.concat([e.from([t]),r,h(16,n)])}}).call(this)}).call(this,r(11).Buffer)},function(e,t){(function(){var e;e=function(){function e(){}return e.prototype.fetch=function(e,t,r){return r(new Error("not implemented"))},e}(),t.KeyFetcher=e}).call(this)},,,,,,,,,,,,,,,,,,,,,,function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A,B,D,M,P,I={}.hasOwnProperty,U=function(e,t){for(var r in t)I.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};w=r(34),(A=r(1285)).naive_is_prime,S=A.random_prime,(_=r(115)).nbits,E=_.nbv,_.nbi,s=_.BigInteger,B=r(50),y=B.bufeq_secure,n=B.ASP,x=r(62).make_esc,k=r(36),a=k.openpgp,k.kb,p=r(95).SHA512,D=r(355),b=D.eme_pkcs1_encode,g=D.eme_pkcs1_decode,m=D.emsa_pkcs1_decode,v=D.emsa_pkcs1_encode,M=r(94),d=M.SRF,u=M.MRF,P=r(137),i=P.BaseKey,o=P.BaseKeyPair,l=function(e){function t(e){this.p=e.p,this.q=e.q,this.d=e.d,this.dmp1=e.dmp1,this.dmq1=e.dmq1,this.u=e.u,this.pub=e.pub}return U(t,e),t.prototype.decrypt=function(e,t){var r,n,i,o;n=w.findDeferral(arguments),(o=this,function(t){i=new w.Deferrals(t,{parent:n,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Priv.decrypt"}),o.mod_pow_d_crt(e,i.defer({assign_fn:function(){return r=arguments[0]},lineno:22})),i._fulfill()})((function(){return t(null,r)}))},t.prototype.sign=function(e,t){return this.mod_pow_d_crt(e,t)},t.ORDER=["d","p","q","u"],t.prototype.ORDER=t.ORDER,t.prototype.n=function(){return this.p.multiply(this.q)},t.prototype.phi=function(){return this.p.subtract(s.ONE).multiply(this.q.subtract(s.ONE))},t.prototype.lambda=function(){return this.phi.divide(this.p.subtract(s.ONE).gcd(this.q.subtract(s.ONE)))},t.alloc=function(e,r){return i.alloc(t,e,{pub:r})},t.prototype.mod_pow_d_crt=function(e,t){var r,n,i,o,a,u,f,c,l,h,p,_;h=w.findDeferral(arguments),null==this.dP&&(this.dP=this.d.mod(this.p.subtract(s.ONE))),null==this.dQ&&(this.dQ=this.d.mod(this.q.subtract(s.ONE))),null==this.qInv&&(this.qInv=this.q.modInverse(this.p)),r=this.pub.n,function(e){p=new w.Deferrals(e,{parent:h,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Priv.mod_pow_d_crt"}),d().random_zn(r,p.defer({assign_fn:function(){return n=arguments[0]},lineno:141})),p._fulfill()}((_=this,function(){for(o=n.modInverse(r),i=n.modPow(_.pub.e,r),a=e.multiply(i).mod(r),u=a.mod(_.p).modPow(_.dP,_.p),f=a.mod(_.q).modPow(_.dQ,_.q);u.compareTo(f)<0;)u=u.add(_.p);return l=u.subtract(f).multiply(_.qInv).mod(_.p).multiply(_.q).add(f),c=l.multiply(o).mod(r),t(c)}))},t}(i),h=function(e){function t(e){this.n=e.n,this.e=e.e}return U(t,e),t.type=a.public_key_algorithms.RSA,t.prototype.type=t.type,t.ORDER=["n","e"],t.prototype.ORDER=t.ORDER,t.prototype.encrypt=function(e,t){return this.mod_pow(e,this.e,t)},t.prototype.verify=function(e,t){return this.mod_pow(e,this.e,t)},t.prototype.nbits=function(){var e;return null!=(e=this.n)?e.bitLength():void 0},t.alloc=function(e){return i.alloc(t,e)},t.prototype.mod_pow=function(e,t,r){return r(e.modPow(t,this.n))},t.prototype.validity_check=function(e){return e(this.n.gcd(this.e).equals(s.ONE)?this.n.mod(E(2)).equals(s.ONE)?this.e.compareTo(s.ONE)<=0?new Error("e <= 1"):this.e.bitLength()>32?new Error("e="+this.e+" > 2^32"):null:new Error("n % 2 != 1"):new Error("gcd(n,e) != 1"))},t}(i),c=function(t){function r(e){var t,n;t=e.priv,n=e.pub,r.__super__.constructor.call(this,{priv:t,pub:n})}return U(r,t),r.type=a.public_key_algorithms.RSA,r.prototype.type=r.type,r.prototype.get_type=function(){return this.type},r.klass_name="RSA",r.Pub=h,r.prototype.Pub=h,r.Priv=l,r.prototype.Priv=l,r.parse=function(e){return o.parse(r,e)},r.alloc=function(e){var t,r;return r=e.pub,t=e.priv,o.alloc({pub:r,priv:t})},r.subkey_algo=function(e){return r},r.prototype.sanity_check=function(e){var t,r,n,i,o,s,a,f,c,l;f=w.findDeferral(arguments),t=0===this.priv.n().compareTo(this.pub.n)?null:new Error("pq != n"),(l=this,function(e){if(null!=t)return e();r=u().random_zn(l.pub.n),function(e){c=new w.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Pair.sanity_check"}),l.encrypt(r,c.defer({assign_fn:function(){return n=arguments[0]},lineno:240})),c._fulfill()}((function(){!function(e){c=new w.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Pair.sanity_check"}),l.decrypt(n,c.defer({assign_fn:function(){return t=arguments[0],i=arguments[1]},lineno:241})),c._fulfill()}((function(){return e(null==t&&0!==r.compareTo(i)?t=new Error("Decrypt/encrypt failed"):void 0)}))}))})(function(r){return function(){!function(e){if(null!=t)return e();o=u().random_zn(r.pub.n),function(e){c=new w.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Pair.sanity_check"}),r.sign(o,c.defer({assign_fn:function(){return s=arguments[0]},lineno:246})),c._fulfill()}((function(){!function(e){c=new w.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Pair.sanity_check"}),r.verify(s,c.defer({assign_fn:function(){return a=arguments[0]},lineno:247})),c._fulfill()}((function(){return e(0!==o.compareTo(a)&&(t=new Error("Sign/verify failed")))}))}))}((function(){return e(t)}))}}(this))},r.parse_sig=function(e){var t,r,n,i;if(t=(i=_.mpi_from_buffer(e.peek_rest_to_buffer()))[0],n=i[1],i[2],r=i[3],null!=t)throw t;return e.advance(r),n},r.prototype.encrypt=function(e,t){return this.pub.encrypt(e,t)},r.prototype.decrypt=function(e,t){return this.priv.decrypt(e,t)},r.prototype.max_value=function(){return this.pub.n},r.make=function(e){var t,n,i,o,s,a,u,f,c,p,d,_;return u=e.p,p=e.q,o=e.e,e.phi,f=e.p1,d=e.q1,s=e.lambda,a=u.multiply(p),n=(t=o.modInverse(s)).mod(f),i=t.mod(d),_=u.modInverse(p),c=new h({n:a,e:o}),new r({priv:new l({p:u,q:p,d:t,dmp1:n,dmq1:i,u:_,pub:c}),pub:c})},r.prototype.to_openpgp=function(){var e;return(e=new((new RSA).keyObject)).n=this.pub.n,e.e=this.pub.e.intValue(),e.ee=this.pub.e,e.d=this.priv.d,e.p=this.priv.p,e.q=this.priv.q,e.dmp1=this.priv.dmp1,e.dmq1=this.priv.dmq1,e.u=this.priv.u,e},r.prototype.sign=function(e,t){return this.priv.sign(e,t)},r.prototype.verify=function(e,t){return this.pub.verify(e,t)},r.prototype.pad_and_encrypt=function(e,t,r){var n,i,o,s,a,u,f;a=w.findDeferral(arguments),i=s=null,(f=this,function(t){u=new w.Deferrals(t,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Pair.pad_and_encrypt"}),b(e,f.pub.n.mpi_byte_length(),u.defer({assign_fn:function(){return i=arguments[0],o=arguments[1]},lineno:306})),u._fulfill()})(function(e){return function(){!function(t){if(null!=i)return t();!function(t){u=new w.Deferrals(t,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Pair.pad_and_encrypt"}),e.encrypt(o,u.defer({assign_fn:function(){return n=arguments[0]},lineno:308})),u._fulfill()}((function(){return t(s=e.export_output({y_mpi:n}))}))}((function(){return r(i,s)}))}}(this))},r.prototype.decrypt_and_unpad=function(e,t,r){var n,i,o,s,a,u,f;a=w.findDeferral(arguments),i=s=null,(f=this,function(t){u=new w.Deferrals(t,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Pair.decrypt_and_unpad"}),f.decrypt(e.y(),u.defer({assign_fn:function(){return i=arguments[0],o=arguments[1]},lineno:318})),u._fulfill()})(function(e){return function(){var t;return null==i&&(n=o.to_padded_octets(e.pub.n),t=g(n),i=t[0],s=t[1]),r(i,s)}}(this))},r.prototype.pad_and_sign=function(e,t,r){var n,i,o,s,a,u,f;a=w.findDeferral(arguments),(i=t.hasher)||(i=p),n=i(e),o=v(n,this.pub.n.mpi_byte_length(),{hasher:i}),(f=this,function(e){u=new w.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Pair.pad_and_sign"}),f.sign(o,u.defer({assign_fn:function(){return s=arguments[0]},lineno:330})),u._fulfill()})((function(){return r(null,s.to_mpi_buffer())}))},r.prototype.verify_unpad_and_check_hash=function(t,r){var n,i,o,s,a,u,f,c,l,h,p,d;l=w.findDeferral(arguments),f=t.sig,i=t.data,a=t.hasher,s=t.hash,o=null,e.isBuffer(f)&&(p=_.mpi_from_buffer(f),o=p[0],f=p[1]),(d=this,function(e){if(null!=o)return e();!function(e){h=new w.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Pair.verify_unpad_and_check_hash"}),d.verify(f,h.defer({assign_fn:function(){return c=arguments[0]},lineno:339})),h._fulfill()}((function(){var t;return n=c.to_padded_octets(d.pub.n),t=m(n,a),o=t[0],u=t[1],e(null==o?(s||(s=a(i)),y(u,s)?void 0:o=new Error("hash mismatch")):void 0)}))})((function(){return r(o)}))},r.generate=function(e,t){var i,o,a,u,f,c,l,h,p,d,_,y,g,b,m,v;m=w.findDeferral(arguments),p=e.nbits,c=e.iters,o=e.e,i=e.asp,o||(o=65537),a=o,p||(p=4096),c||(c=10),i||(i=new n({})),o=E(a),u=x(t,"generate_rsa_keypair"),f=!0,p>>=1,function(e){var t;(t=function(e){var r;if(r=function(){return w.trampoline((function(){return t(e)}))},!f)return e();v=new w.Deferrals((function(){v=new w.Deferrals((function(){v=new w.Deferrals((function(){v=new w.Deferrals((function(){var e;return d.compareTo(g)<=0&&(d=(e=[g,d])[0],g=e[1]),b=g.subtract(s.ONE),_=d.subtract(s.ONE),y=_.multiply(b),h=y.divide(b.gcd(_)),r(0!==y.gcd(o).compareTo(s.ONE)?("function"==typeof progress_hook&&progress_hook({what:"unlucky_phi"}),f=!0):f=!1)}),{parent:m,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Pair.generate"}),i.progress({what:"found",q:g},u(v.defer({lineno:366}))),v._fulfill()}),{parent:m,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Pair.generate"}),S({asp:i.section("q"),e:o,nbits:p,iters:c},u(v.defer({assign_fn:function(){return g=arguments[0]},lineno:365}))),v._fulfill()}),{parent:m,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Pair.generate"}),i.progress({what:"found",p:d},u(v.defer({lineno:364}))),v._fulfill()}),{parent:m,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Pair.generate"}),S({asp:i.section("p"),e:o,nbits:p,iters:c},u(v.defer({assign_fn:function(){return d=arguments[0]},lineno:363}))),v._fulfill()})(e)}((function(){return l=r.make({p:d,q:g,e:o,phi:y,p1:_,q1:b,lambda:h}),t(null,l)}))},r.parse_output=function(e){return f.parse(e)},r.prototype.export_output=function(e){return new f(e)},r.prototype.validity_check=function(e){var t,r,n,i;r=w.findDeferral(arguments),(i=this,function(e){n=new w.Deferrals(e,{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Pair.validity_check"}),i.pub.validity_check(n.defer({assign_fn:function(){return t=arguments[0]},lineno:391})),n._fulfill()})((function(){return e(t)}))},r}(o),f=function(){function e(e){this.y_mpi=e.y_mpi,this.y_buf=e.y_buf}return e.parse=function(t){var r,n,i,o;if(r=(o=_.mpi_from_buffer(t))[0],i=o[1],n=o[2],o[3],null!=r)throw r;if(0!==n.length)throw new Error("junk at the end of input");return new e({y_mpi:i})},e.prototype.y=function(){return this.y_mpi},e.prototype.hide=function(e,t){var r,n,i,o,s,a,u,f;a=w.findDeferral(arguments),i=e.key,o=e.max,s=e.slosh,o||(o=8192),s||(s=128),(f=this,function(e){u=new w.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/rsa.iced",funcname:"Output.hide"}),i.hide({i:f.y(),max:o,slosh:s},u.defer({assign_fn:function(){return r=arguments[0],n=arguments[1]},lineno:417})),u._fulfill()})(function(e){return function(){return null==r&&(e.y_mpi=n,e.y_buf=null),t(r)}}(this))},e.prototype.find=function(e){var t;return t=e.key,this.y_mpi=t.find(this.y_mpi)},e.prototype.output=function(){return this.y_buf||this.y_mpi.to_mpi_buffer()},e}(),t.RSA=t.Pair=c,t.Output=f}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f={}.hasOwnProperty;u=r(34),o=r(76).WordArray,i=r(130).StreamCipher,n=function(){function e(e){var t,r;r=e.value,t=e.len,this._value=null!=r?r.clone():(null==t&&(t=2),new o(function(){var e,r;for(r=[],e=0;0<=t?e<t:e>t;0<=t?++e:--e)r.push(0);return r}()))}return e.prototype.WORD_MAX=4294967295,e.prototype.inc=function(){var t,r;for(t=!0,r=this._value.words.length-1;t&&r>=0;)++this._value.words[r]>e.WORD_MAX?this._value.words[r]=0:t=!1,r--;return this},e.prototype.inc_le=function(){var t,r;for(t=!0,r=0;t&&r<this._value.words.length;)++this._value.words[r]>e.WORD_MAX?this._value.words[r]=0:t=!1,r++;return this},e.prototype.get=function(){return this._value},e.prototype.copy=function(){return this._value.clone()},e}(),e=function(e){function t(e){if(this.block_cipher=e.block_cipher,this.iv=e.iv,t.__super__.constructor.call(this),this.bsiw=this.block_cipher.blockSize/4,this.iv.sigBytes!==this.block_cipher.blockSize)throw new Error("IV is wrong length ("+this.iv.sigBytes+")");this.ctr=new n({value:this.iv})}return function(e,t){for(var r in t)f.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.scrub=function(){return this.block_cipher.scrub()},t.prototype.get_pad=function(){var e;return e=this.ctr.copy(),this.ctr.inc(),this.block_cipher.encryptBlock(e.words),e},t}(i),a=function(t){var r,n,i,o,s;return r=t.block_cipher,o=t.iv,i=t.input,s=(n=new e({block_cipher:r,iv:o})).encrypt(i),n.scrub(),s},s=function(t,r){var n,i,o,s,a,f,c,l,h;l=u.findDeferral(arguments),n=t.block_cipher,s=t.iv,o=t.input,a=t.progress_hook,c=t.what,i=new e({block_cipher:n,iv:s}),function(e){h=new u.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/triplesec/src/ctr.iced"}),i.bulk_encrypt({input:o,progress_hook:a,what:c},h.defer({assign_fn:function(){return f=arguments[0]},lineno:121})),h._fulfill()}((function(){return r(f)}))},t.Counter=n,t.Cipher=e,t.encrypt=a,t.bulk_encrypt=s}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b={}.hasOwnProperty,m=function(e,t){for(var r in t)b.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};p=r(34),(l=r(115)).nbits,l.nbv,l.BigInteger,(_=r(50)).uint_to_buffer,_.bufeq_secure,_.ASP,r(62).make_esc,d=r(36),s=d.openpgp,d.kb,y=r(137),o=y.BaseKeyPair,i=y.BaseKey,g=r(714),h=g.generate,n=g.BaseEccKey,a=r(382).ECDH,c=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return m(t,e),t.type=s.public_key_algorithms.ECDSA,t.prototype.type=t.type,t.prototype.nbits=function(){return this.curve.nbits()},t.prototype.read_params=function(e){},t.prototype.trunc_hash=function(e){return l.bn_from_left_n_bits(e,this.nbits())},t.alloc=function(e){return n.alloc(t,e)},t.prototype.verify=function(e,t,r){var n,i,o,s,a,u,f,c;return s=e[0],a=e[1],n=null,i=this.trunc_hash(t),s.signum()<=0||s.compareTo(this.curve.p)>0?n=new Error("bad r"):s.signum()<=0||a.compareTo(this.curve.p)>0?n=new Error("bad s"):(o=this.curve.n,c=a.modInverse(o),u=i.multiply(c).mod(o),f=s.multiply(c).mod(o),this.curve.G.multiplyTwo(u,this.R,f).affineX.mod(o).equals(s)||(n=new Error("verification failed"))),r(n)},t}(n),f=function(e){function t(e){this.x=e.x,this.pub=e.pub}return m(t,e),t.ORDER=["x"],t.prototype.ORDER=t.ORDER,t.alloc=function(e,r){return i.alloc(t,e,{pub:r})},t.prototype.sign=function(e,t){var r,n,i,o,s,a,u,f,c,l,h;f=p.findDeferral(arguments),l=this.pub.curve,s=l.n,r=l.G,i=this.pub.trunc_hash(e),(h=this,function(e){c=new p.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/ecc/ecdsa.iced",funcname:"Priv.sign"}),h.pub.curve.random_scalar(c.defer({assign_fn:function(){return o=arguments[0]},lineno:79})),c._fulfill()})(function(e){return function(){if(n=r.multiply(o),0===(a=n.affineX.mod(s)).signum())throw new Error("invalid r-value");return u=o.modInverse(s).multiply(i.add(e.x.multiply(a))).mod(s),t([a,u])}}(this))},t}(i),u=function(t){function r(e){var t,n;n=e.pub,t=e.priv,r.__super__.constructor.call(this,{pub:n,priv:t})}return m(r,t),r.Pub=c,r.prototype.Pub=c,r.Priv=f,r.prototype.Priv=f,r.type=s.public_key_algorithms.ECDSA,r.prototype.type=r.type,r.klass_name="ECDSA",r.prototype.get_type=function(){return this.type},r.parse=function(e){return o.parse(r,e)},r.prototype.can_encrypt=function(){return!1},r.subkey_algo=function(e){return e&(s.key_flags.certify_keys|s.key_flags.sign_data)?r:a},r.prototype.fulfills_flags=function(e){return(e&(s.key_flags.certify_keys|s.key_flags.sign_data))===e},r.prototype.verify_unpad_and_check_hash=function(e,t){var n,i,o,s;return s=e.sig,n=e.data,o=e.hasher,i=e.hash,this._dsa_verify_update_and_check_hash({sig:s,data:n,hasher:o,hash:i,klass:r},t)},r.prototype.pad_and_sign=function(t,r,n){var i,o,s,a,u,f,c;u=p.findDeferral(arguments),(o=r.hasher)||(o=SHA512),i=o(t),(c=this,function(e){f=new p.Deferrals(e,{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/ecc/ecdsa.iced",funcname:"Pair.pad_and_sign"}),c.priv.sign(i,f.defer({assign_fn:function(){return a=arguments[0]},lineno:134})),f._fulfill()})((function(){return n(null,e.concat(function(){var e,t,r;for(r=[],e=0,t=a.length;e<t;e++)s=a[e],r.push(s.to_mpi_buffer());return r}()))}))},r.parse_sig=function(e){var t,n,i,o,s;if(t=e.peek_rest_to_buffer(),n=(s=r.read_sig_from_buf(t))[0],o=s[1],i=s[2],null!=n)throw n;return e.advance(i),o},r.read_sig_from_buf=function(e){var t,r,n,i,o,s;return i=e.length,n=["r","s"],t=null,o=function(){var r,i,o,a;for(a=[],r=0,i=n.length;r<i;r++)n[r],null==t&&(o=l.mpi_from_buffer(e),t=o[0],s=o[1],e=o[2],a.push(s));return a}(),r=i-e.length,[t,o,r]},r.prototype.good_for_flags=function(){return s.key_flags.certify_keys|s.key_flags.sign_data},r.generate=function(e,t){var n,i;return i=e.nbits,n=e.asp,h({nbits:i,asp:n,Pair:r},t)},r}(o),t.ECDSA=t.Pair=u}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A={}.hasOwnProperty,B=function(e,t){for(var r in t)A.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};_=r(34),k=r(50),m=k.uint_to_buffer,k.bufeq_secure,k.ASP,g=r(62).make_esc,y=r(36),s=y.openpgp,x=r(137),o=x.BaseKeyPair,i=x.BaseKey,h=r(355).ecc_pkcs5_pad_data,E=r(714),p=E.generate,n=E.BaseEccKey,d=r(95),b=r(356),l=r(200).SlicerBuffer,S=r(1310),w=S.wrap,v=S.unwrap,c=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return B(r,t),r.type=s.public_key_algorithms.ECDH,r.prototype.type=r.type,r.prototype.apply_defaults=function(){return this.cipher||(this.cipher=b.get_cipher()),this.hasher||(this.hasher=d.SHA512)},r.prototype.read_params=function(e){var t,r,n,i;if((r=e.read_uint8())<(t=s.ecdh.param_bytes))throw new Error("Need at least "+t+" bytes of params; got "+r);if((i=e.read_uint8())!==(n=s.ecdh.version))throw new Error("Cannot deal with future extensions, byte="+i+"; wanted "+n);return this.hasher=d.alloc_or_throw(e.read_uint8()),this.cipher=b.get_cipher(e.read_uint8()),e.advance(r-3)},r.alloc=function(e){return n.alloc(r,e)},r.prototype.serialize_params=function(){return e.concat([m(8,s.ecdh.param_bytes),m(8,s.ecdh.version),m(8,this.hasher.type),m(8,this.cipher.type)])},r.prototype.serialize=function(){return e.concat([r.__super__.serialize.call(this),this.serialize_params()])},r.prototype.format_params=function(t){var r;return r=t.fingerprint,e.concat([m(8,this.curve.oid.length),this.curve.oid,m(8,this.type),this.serialize_params(),e.from("Anonymous Sender    ","utf8"),r])},r.prototype.kdf=function(t){var r,n,i,o,s;return r=t.X,s=t.params,o=this.cipher.key_size,n=this.curve.point_to_mpi_buffer_compact(r),i=e.concat([e.from([0,0,0,1]),n,s]),this.hasher(i).slice(0,o)},r.prototype.encrypt=function(e,t,r){var n,i,o,s,a,u,f,c,l;f=_.findDeferral(arguments),s=t.fingerprint,(l=this,function(e){c=new _.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/ecc/ecdh.iced",funcname:"Pub.encrypt"}),l.curve.encrypt(l.R,c.defer({assign_fn:function(){return o=arguments[0].V,i=arguments[0].S},lineno:97})),c._fulfill()})(function(t){return function(){return u=t.format_params({fingerprint:s}),a=t.kdf({X:i,params:u}),n=w({key:a,plaintext:e,cipher:t.cipher}),r({V:o,C:n})}}(this))},r}(n),f=function(e){function t(e){this.x=e.x,this.pub=e.pub}return B(t,e),t.ORDER=["x"],t.prototype.ORDER=t.ORDER,t.prototype.serialize=function(){return this.pub.curve.coord_to_mpi_buffer(this.x)},t.alloc=function(e,r){var n,i,o,s,a,u,f,c,l;for(a=e.length,o=null,n=r.curve,i={pub:r},u=0,f=(c=t.ORDER).length;u<f;u++)s=c[u],null==o&&(o=(l=n.mpi_from_buffer(e))[0],i[s]=l[1],e=l[2]);return o?[o,null]:[null,new t(i),a-e.length]},t.prototype.decrypt=function(e,t,r){var n,i,o,s,a,u,f,c,l,h,p,d;h=_.findDeferral(arguments),u=t.fingerprint,a=g(r,"Priv::decrypt"),o=this.pub.curve,function(t){p=new _.Deferrals(t,{parent:h,filename:"/Users/max/src/keybase/kbpgp/src/ecc/ecdh.iced",funcname:"Priv.decrypt"}),e.load_V(o,a(p.defer({assign_fn:function(){return i=arguments[0]},lineno:144}))),p._fulfill()}((d=this,function(){var t;return n=o.decrypt(d.x,i),c=d.pub.format_params({fingerprint:u}),f=d.pub.kdf({X:n,params:c}),t=v({key:f,ciphertext:e.C,cipher:d.pub.cipher}),s=t[0],l=t[1],r(s,l)}))},t}(i),u=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return B(t,e),t.Pub=c,t.prototype.Pub=c,t.Priv=f,t.prototype.Priv=f,t.type=s.public_key_algorithms.ECDH,t.prototype.type=t.type,t.klass_name="ECDH",t.prototype.get_type=function(){return this.type},t.prototype.fulfills_flags=function(e){return(e&(s.key_flags.encrypt_comm|s.key_flags.encrypt_storage))===e},t.prototype.can_sign=function(){return!1},t.parse=function(e){return o.parse(t,e)},t.prototype.max_value=function(){return this.pub.p},t.prototype.pad_and_encrypt=function(e,t,r){var n,i,o,s,a,u,f,c,l,p;f=_.findDeferral(arguments),s=t.fingerprint,o=u=null,l=h(e),o=l[0],a=l[1],(p=this,function(e){if(null!=o)return e();!function(e){c=new _.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/ecc/ecdh.iced",funcname:"Pair.pad_and_encrypt"}),p.pub.encrypt(a,{fingerprint:s},c.defer({assign_fn:function(){return n=arguments[0].C,i=arguments[0].V},lineno:199})),c._fulfill()}((function(){return e(u=p.export_output({C:n,V:i,curve:p.pub.curve}))}))})((function(){return r(o,u)}))},t.prototype.decrypt_and_unpad=function(e,t,r){var n,i,o,s,a,u;s=_.findDeferral(arguments),i=t.fingerprint,n=null,(u=this,function(t){a=new _.Deferrals(t,{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/ecc/ecdh.iced",funcname:"Pair.decrypt_and_unpad"}),u.priv.decrypt(e,{fingerprint:i},a.defer({assign_fn:function(){return n=arguments[0],o=arguments[1]},lineno:207})),a._fulfill()})((function(){return r(n,o,!0)}))},t.parse_output=function(e){return a.parse(e)},t.prototype.export_output=function(e){return new a(e)},t.generate=function(e,r){var n,i,o,s,a,u,f;u=_.findDeferral(arguments),s=e.nbits,i=e.curve_name,n=e.asp,function(e){f=new _.Deferrals(e,{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/ecc/ecdh.iced",funcname:"Pair.generate"}),p({nbits:s,asp:n,curve_name:i,Pair:t},f.defer({assign_fn:function(){return o=arguments[0],a=arguments[1]},lineno:218})),f._fulfill()}((function(){return null==o&&a.pub.apply_defaults(),r(o,a)}))},t}(o),a=function(){function t(e){this.V_buf=e.V_buf,this.C=e.C,this.V=e.V,this.curve=e.curve}return t.prototype.load_V=function(e,t){var r,n;return this.curve=e,r=(n=e.mpi_point_from_buffer(this.V_buf))[0],this.V=n[1],t(r,this.V)},t.parse=function(r){var n,i,o,s,a,u;if(s=(u=new l(r)).read_uint16(),a=Math.ceil(s/8),i=e.concat([r.slice(0,2),u.read_buffer(a)]),a=u.read_uint8(),(o=(n=u.consume_rest_to_buffer()).length)!==a)throw new Error("bad C input: wanted "+a+" bytes, but got "+o);return new t({V_buf:i,C:n})},t.prototype.get_V_buf=function(){return null==this.V_buf&&(this.V_buf=this.curve.point_to_mpi_buffer(this.V)),this.V_buf},t.prototype.hide=function(e,t){return e.key,e.max,e.slosh,t(null)},t.prototype.find=function(e){e.key},t.prototype.good_for_flags=function(){return C.key_flags.encrypt_comm|C.key_flags.encrypt_storage},t.prototype.output=function(){return e.concat([this.get_V_buf(),m(8,this.C.length),this.C])},t}(),t.ECDH=t.Pair=u}).call(this)}).call(this,r(11).Buffer)},function(e,t){(function(){var e,r,n,i,o,s={}.hasOwnProperty,a=function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};i=function(e){function t(e){var r,n,i;this.userid=e.userid,this.user_attribute=e.user_attribute,this.type=e.type,n=e.sig,this.options=e.options,r=e.key_expiration,i=e.sig_expiration,t.__super__.constructor.call(this,{sig:n,key_expiration:r,sig_expiration:i})}return a(t,e),t.prototype.typ=function(){return"self_sig"},t.prototype.push=function(e){var t,r;return e.self_sig.push(this),t=null!=this.userid?this.userid.utf8()||"":void 0,null==(r=e.self_sigs_by_uid[t])&&(r=[],e.self_sigs_by_uid[t]=r),r.push(this)},t}(e=function(){function e(e){this.sig=e.sig,this.key_expiration=e.key_expiration}return e.prototype.typ=function(){return"none"},e.prototype.get_key_flags=function(){return this.sig.get_key_flags()},e.prototype.push=function(e){return e[this.typ()].push(this)},e}()),o=function(e){function t(e){var r,n,i;this.primary=e.primary,n=e.sig,this.direction=e.direction,i=e.sig_expiration,r=e.key_expiration,t.__super__.constructor.call(this,{sig:n,key_expiration:r,sig_expiration:i})}return a(t,e),t.UP=1,t.DOWN=2,t.prototype.typ=function(){return"subkey_binding"},t.prototype.is_down=function(){return this.direction===t.DOWN},t}(e),n=function(e){function t(e){var r,n,i;this.key=e.key,n=e.sig,r=e.key_expiration,i=e.sig_expiration,t.__super__.constructor.call(this,{sig:n,key_expiration:r,sig_expiration:i})}return a(t,e),t.prototype.typ=function(){return"data"},t.prototype.get_key_manager=function(){var e;return null!=(e=this.sig)?e.key_manager:void 0},t}(e),r=function(){function e(){this.clear()}return e.prototype.clear=function(){return this.all=[],this.lookup={self_sig:[],self_sigs_by_uid:{},subkey_binding:[],data:[]}},e.prototype.push=function(e){return this.all.push(e),e.push(this.lookup)},e.prototype.is_signed_subkey_of=function(e,t){var r,n,i,o,s,a;for(i=r=!1,o=0,s=(a=this.lookup.subkey_binding).length;o<s;o++)if((n=a[o]).primary.equal(e)&&(n.is_down()?r=!0:i=!0,r&&(i||!t)))return!0;return!1},e.prototype.get_all_key_flags=function(){var e,t,r,n;for(e=0,t=0,r=(n=this.all).length;t<r;t++)e|=n[t].get_key_flags();return e},e.prototype.get_signed_userids=function(){var e,t,r,n,i;for(i=[],t=0,r=(n=this.lookup.self_sig).length;t<r;t++)null!=(e=n[t].userid)&&i.push(e);return i},e.prototype.get_signed_user_attributes=function(){var e,t,r,n,i;for(i=[],t=0,r=(n=this.lookup.self_sig).length;t<r;t++)null!=(e=n[t].user_attribute)&&i.push(e);return i},e.prototype.get_self_sig=function(){return this.lookup.self_sig.length?this.lookup.self_sig[0]:null},e.prototype.get_self_sigs=function(){return this.lookup.self_sig},e.prototype.is_self_signed=function(){return this.get_signed_userids().length>0},e.prototype.get_data_signer=function(){return this.lookup.data.length>0?this.lookup.data[0]:null},e.prototype.get_data_signers=function(){return this.lookup.data},e.prototype.get_subkey_binding=function(){return this.lookup.subkey_binding.length?this.lookup.subkey_binding[0]:null},e}(),t.SelfSig=i,t.SubkeyBinding=o,t.Data=n,t.Collection=r}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f={}.hasOwnProperty,c=[].indexOf||function(e){for(var t=0,r=this.length;t<r;t++)if(t in this&&this[t]===e)return t;return-1};a=r(34),s=r(157).Packet,n=r(36).openpgp,r(241),u=r(50).uint_to_buffer,i=function(t){function r(e){this.format=e.format,this.filename=e.filename,this.date=e.date,this.data=e.data,r.__super__.constructor.call(this)}return function(e,t){for(var r in t)f.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.parse=function(e){return new o(e).parse()},r.prototype.toString=function(e){return null==e&&(e=null),this.data.toString(e||this.buffer_format())},r.prototype.toBuffer=function(){return this.data},r.prototype.buffer_format=function(){switch(this.format){case n.literal_formats.text:return"ascii";case n.literal_formats.utf8:return"utf8";default:return"binary"}},r.prototype.to_signature_payload=function(){return e.concat([this.data])},r.prototype.write_unframed=function(t){var r;return this.filename||(this.filename=e.from([])),r=[e.from([this.format]),u(8,this.filename.length),this.filename,u(32,this.date),this.data],t(null,e.concat(r))},r.prototype.write=function(e){var t,r,i,o,s,u;o=a.findDeferral(arguments),t=i=null,(u=this,function(e){s=new a.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/literal.iced",funcname:"Literal.write"}),u.write_unframed(s.defer({assign_fn:function(){return t=arguments[0],r=arguments[1]},lineno:41})),s._fulfill()})(function(o){return function(){return null==t&&(i=o.frame_packet(n.packet_tags.literal,r)),e(t,i)}}(this))},r.prototype.to_literal=function(){return this},r}(s),o=function(){function e(e){this.slice=e}return e.prototype.parse=function(){var e,t,r,o,s,a,u;if(a=function(){var e,t;for(s in t=[],e=n.literal_formats)u=e[s],t.push(u);return t}(),o=this.slice.read_uint8(),c.call(a,o)<0)throw new Error("unknwon format: "+o);return r=this.slice.read_string(),t=this.slice.read_uint32(),e=this.slice.consume_rest_to_buffer(),new i({format:o,filename:r,date:t,data:e})},e}(),t.Literal=i}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c,l,h,p,d,_,y;u=r(34),h=r(62).make_esc,r(357).OPS,l=r(36),e=l.openpgp,y=r(50),c=y.katch,y.unix_time,y.athrow,o=y.Warnings,a=y.bufeq_secure,p=r(461).parse,f=r(356).import_key_pgp,r(64),s=r(201),r(95),d=r(728).verify,_=r(730).verify,n=function(){function t(e,t){this.packets=e,this.verified_signatures=[],this.subkeys=[],this.primary=null,this.userids=[],this.user_attributes=[],this.warnings=new o,this.opts=t||{},null==this.opts.strict&&(this.opts.strict=!0)}return t.prototype.to_obj=function(){return{subkeys:this.subkeys,primary:this.primary,userids:this.userids}},t.prototype._extract_keys=function(){var e,t,r,n,i,o;if(e=null,this.packets.length)if((this.primary=this.packets[0]).is_primary())for(t=n=0,i=(o=this.packets.slice(1)).length;n<i;t=++n)(r=o[t]).is_key_material()&&null==e&&(r.key.is_toxic()?this.warnings.push("Ignoring toxic subkey (ElGamal Encrypt+Sign)"):r.is_primary()?a(r.get_fingerprint(),this.primary.get_fingerprint())?r.set_duplicate_primary():e=new Error("cannot have 2 primary keys"):this.subkeys.push(r));else e=new Error("First packet must be the primary key");else e=new Error("No packets; cannot extract a key");return e},t.prototype._check_keys=function(){return this._check_primary()||this._check_subkeys()},t.prototype._check_primary=function(){return this.primary.is_self_signed()?0===(this.userids=this.primary.get_signed_userids()).length?new Error("no valid Userid signed into key"):(this.user_attributes=this.primary.get_signed_user_attributes(),null):new Error("no valid primary key self-signature or key(s) have expired")},t.prototype._check_subkeys=function(){var e,t,r,n,i,o;for(n=this.subkeys,null,this.subkeys=[],e=i=0,o=n.length;i<o;e=++i)(t=n[e]).is_signed_subkey_of(this.primary,this.opts)?this.subkeys.push(t):(r="Subkey "+e+" was invalid; discarding",this.warnings.push(r));return null},t.prototype.process=function(e){var t,r,n,i;r=u.findDeferral(arguments),t=this._extract_keys(),(i=this,function(e){if(null!=t)return e();!function(e){n=new u.Deferrals(e,{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"KeyBlock.process"}),i._verify_sigs(n.defer({assign_fn:function(){return t=arguments[0]},lineno:87})),n._fulfill()}(e)})(function(r){return function(){var n;return(null!=(n=r.opts)?n.no_check_keys:void 0)?null==t&&(r.userids=r.primary.get_signed_userids()):null==t&&(t=r._check_keys()),e(t)}}(this))},t.prototype._get_issuer=function(e,t,r){var n,i;return null!=(n=t.get_issuer_fingerprint())?[n,a(n,this.primary.get_fingerprint()),this.primary.get_fingerprint()]:null!=(i=t.get_issuer_key_id())?[i,a(i,this.primary.get_key_id()),this.primary.get_key_id()]:(this.warnings.push("Signature is missing an issuer (at packet="+e+")"),[null,!1])},t.prototype._verify_sigs=function(t){var r,n,i,o,s,a,f,c,l,h,p,d,_;p=u.findDeferral(arguments),r=null,h=[],f=0,(_=this,function(t){var y,g,b;g=_.packets.slice(1),y=g.length,i=0,(b=function(t){var m,v,w;return m=t,w=v=function(){return u.trampoline((function(){return++i,b(t)}))},i<y?(c=g[i],null!=r?v():void function(e){if(c.is_signature())return e();f>0&&(f=0,h=[]),c.is_duplicate_primary()||h.push(c),v()}((function(){var t;f++,t=_._get_issuer(i,c,_.primary),o=t[0],s=t[1],n=t[2],function(t){if(null==o)return t();!function(t){if(s||c.type===e.sig_types.key_revocation)return t();_.warnings.push("Skipping signature by another issuer: "+(null!=o?o.toString("hex"):void 0)+" != "+(null!=n?n.toString("hex"):void 0)),v()}((function(){c.key=_.primary.key,c.primary=_.primary,c.is_third_party=!s,function(e){d=new u.Deferrals(e,{parent:p,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"KeyBlock._verify_sigs"}),c.verify(h,d.defer({assign_fn:function(){return l=arguments[0]},lineno:137}),_.opts),d._fulfill()}((function(){return t(null!=l?(a="Signature failure in packet "+i+": "+l.message+" ("+o.toString("hex")+")",_.warnings.push(a)):_.verified_signatures.push(c))}))}))}(w)}))):m()})(t)})((function(){return t(r)}))},t}(),i=function(){function t(e){this.keyfetch=e.keyfetch,this.data_fn=e.data_fn,this.data=e.data,this.strict=e.strict,this.now=e.now,this.literals=[],this.enc_data_packet=null,this.warnings=new o}return t.prototype._get_session_key=function(e){var t,r,n,i,o,s,a,f,c,h,p,d,_,y,g,b;y=u.findDeferral(arguments),s=[],n=[],r=null,p=!1,s=function(){var e;for(e=[];this.packets.length&&(c=this.packets[0].to_esk_packet());)n.push(c),this.packets.shift(),e.push(c.get_key_id());return e}.call(this),(b=this,function(e){if(!s.length)return e(t=!1);t=!0,function(e){g=new u.Deferrals(e,{parent:y,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._get_session_key"}),b.keyfetch.fetch(s,l.ops.decrypt,g.defer({assign_fn:function(){return r=arguments[0],f=arguments[1],o=arguments[2]},lineno:178})),g._fulfill()}((function(){!function(e){if(null!=r)return e();h=n[o],a=f.find_pgp_key_material(s[o]),i=a.get_fingerprint(),d=a.key,function(e){g=new u.Deferrals(e,{parent:y,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._get_session_key"}),d.decrypt_and_unpad(h.ekey,{fingerprint:i},g.defer({assign_fn:function(){return r=arguments[0],_=arguments[1],p=arguments[2]},lineno:184})),g._fulfill()}((function(){return e(null==r?b.encryption_subkey=a:void 0)}))}(e)}))})((function(){return e(r,t,_,p)}))},t.prototype._find_encrypted_data=function(e){var t,r;return t=r=null,this.packets.length&&(r=this.packets[0].to_enc_data_packet())?this.packets.pop():t=new Error("Could not find encrypted data packet"),e(t,r)},t.prototype._decrypt_with_session_key=function(e,t,r,n){var i,o,s,a,l,h;a=u.findDeferral(arguments),h=c((function(){return f(e,r)})),o=h[0],i=h[1],function(e){if(null!=o)return e();!function(e){l=new u.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._decrypt_with_session_key"}),t.decrypt({cipher:i},l.defer({assign_fn:function(){return o=arguments[0],s=arguments[1]},lineno:206})),l._fulfill()}(e)}((function(){return n(o,s)}))},t.prototype._parse=function(e,t){var r;return t((r=p(e))[0],r[1])},t.prototype._decrypt=function(e){var t,r,n,i,o,s,a,f,c,l;f=u.findDeferral(arguments),r=h(e,"Message::decrypt"),(l=this,function(e){c=new u.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._decrypt"}),l._get_session_key(r(c.defer({assign_fn:function(){return n=arguments[0],a=arguments[1],o=arguments[2]},lineno:219}))),c._fulfill()})(function(l){return function(){!function(e){if(!n)return e();!function(e){c=new u.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._decrypt"}),l._find_encrypted_data(r(c.defer({assign_fn:function(){return t=arguments[0]},lineno:221}))),c._fulfill()}((function(){!function(e){c=new u.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._decrypt"}),l._decrypt_with_session_key(a,t,o,r(c.defer({assign_fn:function(){return s=arguments[0]},lineno:222}))),c._fulfill()}((function(){!function(e){c=new u.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._decrypt"}),l._parse(s,r(c.defer({assign_fn:function(){return i=arguments[0]},lineno:223}))),c._fulfill()}((function(){return e(l.packets=i.concat(l.packets))}))}))}))}((function(){return e(null)}))}}(this))},t.prototype._inflate=function(e){var t,r,n,i,o,s,a;o=u.findDeferral(arguments),i=[],t=h(e,"Message::_inflate"),(a=this,function(e){var f,c,l,h;l=a.packets,c=l.length,f=0,(h=function(e){var p;if(p=function(){return u.trampoline((function(){return++f,h(e)}))},!(f<c))return e();n=l[f],s=new u.Deferrals((function(){!function(e){if(null==r)return e(i.push(n));!function(e){s=new u.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._inflate"}),a._parse(r,t(s.defer({assign_fn:function(){return n=arguments[0]},lineno:235}))),s._fulfill()}((function(){return e(i.push.apply(i,n))}))}(p)}),{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._inflate"}),n.inflate(t(s.defer({assign_fn:function(){return r=arguments[0]},lineno:233}))),s._fulfill()})(e)})(function(t){return function(){return t.packets=i,e(null)}}(this))},t.prototype._frame_signatures=function(){var t,r,n,i,o,s,a,u,f,c;for(i=[],o=[],n=[],s=0,u=(c=this.packets).length;s<u;s++)(r=c[s]).tag===e.packet_tags.one_pass_sig?o.push({open:r}):o.length&&(r.tag===e.packet_tags.signature?((t=o.pop()).close=r,i.push(t)):n.push(r));for(a=0,f=i.length;a<f;a++)(t=i[a]).payload=n;return i},t.prototype._verify_sig=function(e,t){var r,n,i,o,s,f,c,h;f=u.findDeferral(arguments),i=null,a(r=e.open.key_id,n=e.close.get_key_id())||(i=new Error("signature mismatch open v close: "+(null!=r?r.toString("hex"):void 0)+" != "+(null!=n?n.toString("hex"):void 0))),(h=this,function(e){if(null!=i)return e();!function(e){c=new u.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._verify_sig"}),h.keyfetch.fetch([r],l.ops.verify,c.defer({assign_fn:function(){return i=arguments[0],s=arguments[1],arguments[2]},lineno:274})),c._fulfill()}((function(){return e(null!=i?i=new Error("Can't find a key for "+r.toString("hex")+": "+i.message):void 0)}))})(function(n){return function(){!function(t){if(null!=i)return t(n.strict||(n.warnings.push("Problem fetching key "+r.toString("hex")+": "+i.toString()),i=null));o=s.find_pgp_key_material(r),e.close.key=o.key,e.close.subkey_material=o,e.close.key_manager=s,function(t){c=new u.Deferrals(t,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._verify_sig"}),e.close.verify(e.payload,c.defer({assign_fn:function(){return i=arguments[0]},lineno:289}),{now:n.now}),c._fulfill()}(t)}((function(){return t(i)}))}}(this))},t.prototype._verify=function(e){var t,r,n,i,o,s;i=u.findDeferral(arguments),t=h(e,"Message::_verify_sigs"),n=this._frame_signatures(),(s=this,function(e){var a,f,c,l;f=(c=n).length,a=0,(l=function(e){var n;if(n=function(){return u.trampoline((function(){return++a,l(e)}))},!(a<f))return e();r=c[a],function(e){o=new u.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._verify"}),s._verify_sig(r,t(o.defer({lineno:303}))),o._fulfill()}(n)})(e)})((function(){return e(null)}))},t.prototype.collect_literals=function(){var t,r,n,i,o;for(o=[],r=0,n=(i=this.packets).length;r<n;r++)(t=i[r]).tag===e.packet_tags.literal&&o.push(t);return o},t.prototype._process_generic=function(e,t){var r,n,i,o,s;i=u.findDeferral(arguments),n=e.packets,this.packets=n,r=h(t,"Message:process"),(s=this,function(e){o=new u.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._process_generic"}),s._decrypt(r(o.defer({lineno:316}))),o._fulfill()})(function(e){return function(){o=new u.Deferrals((function(){o=new u.Deferrals((function(){return t(null,e.collect_literals())}),{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._process_generic"}),e._verify(r(o.defer({lineno:318}))),o._fulfill()}),{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._process_generic"}),e._inflate(r(o.defer({lineno:317}))),o._fulfill()}}(this))},t.prototype._verify_clearsign=function(e,t){var r,n,i,o,s,a,f;s=u.findDeferral(arguments),o=e.packets,r=e.clearsign,(f=this,function(e){if(null==r)return e(n=new Error("no clearsign data found"));!function(e){a=new u.Deferrals(e,{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._verify_clearsign"}),d({packets:o,clearsign:r,keyfetch:f.keyfetch,now:f.now},a.defer({assign_fn:function(){return n=arguments[0],i=arguments[1]},lineno:327})),a._fulfill()}(e)})((function(){return t(n,[i])}))},t.prototype.parse_and_inflate=function(e,t){var r,n,i,o;n=u.findDeferral(arguments),r=h(t,"Message::parse_and_inflate"),(o=this,function(t){var s;i=new u.Deferrals(t,{parent:n,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message.parse_and_inflate"}),o._parse(e,r(i.defer({assign_fn:(s=o,function(){return s.packets=arguments[0]}),lineno:334}))),i._fulfill()})(function(e){return function(){i=new u.Deferrals((function(){return t(null,e.collect_literals())}),{parent:n,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message.parse_and_inflate"}),e._inflate(r(i.defer({lineno:335}))),i._fulfill()}}(this))},t.prototype.parse_and_process=function(e,t){var r,n,i,o,s,a;o=u.findDeferral(arguments),r=h(t,"Message::parse_and_process"),(a=this,function(t){s=new u.Deferrals(t,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message.parse_and_process"}),a._parse(e.body,r(s.defer({assign_fn:function(){return i=arguments[0]},lineno:342}))),s._fulfill()})(function(a){return function(){s=new u.Deferrals((function(){return t(null,n)}),{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message.parse_and_process"}),a._process({msg:e,packets:i},r(s.defer({assign_fn:function(){return n=arguments[0]},lineno:343}))),s._fulfill()}}(this))},t.prototype._verify_signature=function(e,t){var r,n,i,o,s,a;o=u.findDeferral(arguments),i=e.packets,(a=this,function(e){if(null==a.data&&null==a.data_fn)return e(r=new Error("Cannot verify detached signature without data input"));!function(e){s=new u.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._verify_signature"}),_({packets:i,data:a.data,data_fn:a.data_fn,keyfetch:a.keyfetch,now:a.now},s.defer({assign_fn:function(){return r=arguments[0],n=arguments[1]},lineno:352})),s._fulfill()}(e)})((function(){return t(r,n)}))},t.prototype._process=function(t,r){var n,i,o,s,a,f,c;a=u.findDeferral(arguments),o=t.msg,s=t.packets,o.type||(o.type=e.message_types.generic),(c=this,function(t){switch(o.type){case e.message_types.generic:!function(e){f=new u.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._process"}),c._process_generic({packets:s},f.defer({assign_fn:function(){return n=arguments[0],i=arguments[1]},lineno:361})),f._fulfill()}(t);break;case e.message_types.clearsign:!function(e){f=new u.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._process"}),c._verify_clearsign({packets:s,clearsign:o.clearsign},f.defer({assign_fn:function(){return n=arguments[0],i=arguments[1]},lineno:363})),f._fulfill()}(t);break;case e.message_types.signature:!function(e){f=new u.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced",funcname:"Message._process"}),c._verify_signature({packets:s},f.defer({assign_fn:function(){return n=arguments[0],i=arguments[1]},lineno:365})),f._fulfill()}(t);break;default:return t(n=new Error("Needed a 'generic', 'clearsign', or 'signature' PGP message, got "+o.type))}})((function(){return r(n,i)}))},t}(),t.KeyBlock=n,t.Message=i,t.do_message=function(t,r){var n,o,a,f,c,l,h,p,d,_,y,g,b,m,v,w,k;v=u.findDeferral(arguments),n=t.armored,g=t.raw,d=t.msg_type,l=t.keyfetch,a=t.data_fn,o=t.data,b=t.strict,_=t.now,h=null,f=p=m=c=null,null!=n?(k=s.decode(n),f=k[0],p=k[1]):null!=g?(d||(d=e.message_types.generic),p={body:g,type:d}):f=new Error("No input to do_message; need either 'armored' or 'raw' input"),function(e){if(null!=f)return e();null==b&&(b=!0),y=new i({keyfetch:l,data_fn:a,data:o,strict:b,now:_}),function(e){w=new u.Deferrals(e,{parent:v,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/processor.iced"}),y.parse_and_process(p,w.defer({assign_fn:function(){return f=arguments[0],h=arguments[1]},lineno:413})),w._fulfill()}((function(){return m=y.warnings,e(c=y.encryption_subkey)}))}((function(){return r(f,h,m,c)}))}}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y;n=r(36).kb,_=r(95),o=_.alloc,i=_.SHA256,c=r(1320),(y=r(50)).katch,u=y.obj_extract,s=y.bufeq_secure,a=e.alloc(0),f=function(e){return c.pack(e,{sort_keys:!0})},p=function(e){return c.unpack(e,{strict:!0})},h=function(e){var t,r,o,s,u;return o=e.obj,t=e.dohash,r=i,s={version:n.versions.V1,tag:o.tag,body:o.body},t&&(s.hash={type:r.type,value:a},u=f(s),s.hash.value=r(u)),f(s)},l=function(t){var r;return r=t.split(/\s+/).join(""),e.from(r,"base64")},d=function(e){var t,r,i,c,l,h;if(null!=(i=null!=(c=p(e))&&null!=(h=c.hash)?h.value:void 0)){if(c.hash.value=a,null==(r=o(l=c.hash.type)))throw new Error("unknown hash algo: "+l);if(t=r(f(c)),!s(t,i))throw new Error("hash mismatch");if(c.version!==n.versions.V1)throw new Error("unknown version")}return u(c,["tag","body"])},t.seal=h,t.pack=f,t.unseal=d,t.unpack=p,t.read_base64=l}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g={}.hasOwnProperty;h=r(34),p=r(458),r(94).SRF,d=r(36),i=d.kb,y=r(50),_=y.prefix_signature_payload,l=y.genseed,y.bufeq_secure,c=y.bufeq_fast,r(137).BaseKey,n=r(732).BaseKeyPair,o=r(472).Pair,f=i.public_key_algorithms.NACL_EDDSA,t.b2u=function(e){return new Uint8Array(e)},t.u2b=function(t){return e.from(t)},u=function(){function t(e){this.key=e}return t.HEADER=e.from([i.kid.version,f]),t.TRAILER=e.from([i.kid.trailer]),t.LEN=t.HEADER.length+t.TRAILER.length+p.sign.publicKeyLength,t.alloc_kb=function(e){var r;return r=null,[e.length!==t.LEN?new Error("bad key length"):c(e.slice(-1),t.TRAILER)?c(e.slice(0,2),t.HEADER)?(r=new t(e.slice(2,-1)),null):new Error("bad header"):new Error("bad trailing byte"),r]},t.prototype.serialize=function(){return this.key},t.prototype.nbits=function(){return 255},t.prototype.read_params=function(e){},t.prototype.verify=function(e,t){var r,n,i,o,s,a;return i=e.payload,s=e.sig,r=e.detached,o=e.prefix,n=p.alloc({publicKey:this.key}),i=_(o,i),t((a=n.verify({payload:i,sig:s,detached:r}))[0],i=a[1])},t}(),a=function(){function e(e){this.key=e}return e.prototype.alloc=function(t){var r,n;return r=n=null,t.length!==sign.secretKeyLength?r=new Error("Bad secret key length"):n=new e(t),[r,n]},e.prototype.sign=function(e,t){var r,n;return n=e.payload,r=e.detached,t(p.alloc({secretKey:this.key}).sign({payload:n,detached:r}))},e}(),s=function(e){function t(e){var r,n;n=e.pub,r=e.priv,t.__super__.constructor.call(this,{pub:n,priv:r})}return function(e,t){for(var r in t)g.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.Pub=u,t.prototype.Pub=u,t.Priv=a,t.prototype.Priv=a,t.type=i.public_key_algorithms.NACL_EDDSA,t.prototype.type=t.type,t.prototype.get_type=function(){return this.type},t.klass_name="EDDSA",t.prototype.can_encrypt=function(){return!1},t.prototype.hash=function(){return this.serialize()},t.prototype.sign_kb=function(e,t){var r,n,i,o,s,a,u,f;a=h.findDeferral(arguments),i=e.payload,r=e.detached,o=e.prefix,n=s=null,(f=this,function(e){if(null==f.priv)return e(n=new Error("no secret key available"));i=_(o,i),function(e){u=new h.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/nacl/eddsa.iced",funcname:"Pair.sign_kb"}),f.priv.sign({payload:i,detached:r},u.defer({assign_fn:function(){return s=arguments[0]},lineno:110})),u._fulfill()}(e)})((function(){return t(n,s)}))},t.prototype.verify_kb=function(e,t){var r,n,i,o;return n=e.payload,o=e.sig,r=e.detached,i=e.prefix,this.pub.verify({payload:n,sig:o,detached:r,prefix:i},t)},t.subkey_algo=function(e){return e&(C.key_flags.certify_keys|C.key_flags.sign_data)?t:o},t.prototype.fulfills_flags=function(e){return(e&(C.key_flags.certify_keys|C.key_flags.sign_data))===e},t.prototype.verify_unpad_and_check_hash=function(e,t){return e.sig,e.data,e.hasher,e.hash,t(new Error("verify_unpad_and_check_hash unsupported"))},t.prototype.pad_and_sign=function(e,t,r){return t.hasher,r(new Error("pad_and_sign unsupported"))},t.parse_kb=function(e){return n.parse_kb(t,e)},t.parse_sig=function(e){throw new Error("@parse_sig unsupported")},t.read_sig_from_buf=function(e){return[new Error("@read_sig_from_buf unsupported")]},t.import_private=function(e,r){var n,i,o,s,f,c;return(n=(f=e.raw).length)!==(i=p.sign.secretKeyLength)?o=new Error("Bad length: expected "+i+"} bytes, but got "+n):(s=new u(f.slice(-p.sign.publicKeyLength)),c=new t({priv:new a(f),pub:s})),r(o,c)},t.generate=function(e,r){var n,i,o,s,f,c,d,_,y,g,b,m;b=h.findDeferral(arguments),_=e.seed,g=e.split,y=e.server_half,n={seed:_,split:g,len:p.sign.seedLength,server_half:y},function(e){m=new h.Deferrals(e,{parent:b,filename:"/Users/max/src/keybase/kbpgp/src/nacl/eddsa.iced",funcname:"Pair.generate"}),l(n,m.defer({assign_fn:function(){return i=arguments[0],y=arguments[1].server_half,_=arguments[1].seed},lineno:187})),m._fulfill()}((function(){var e;return c=null,null==i&&(e=p.alloc({}).genFromSeed({seed:_}),d=e.secretKey,f=e.publicKey,s=new u(f),o=new a(d),c=new t({pub:s,priv:o})),r(i,c,y)}))},t}(n),t.EdDSA=t.Pair=s}).call(this)}).call(this,r(11).Buffer)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){(function(){e.exports={k:"__iced_k",k_noop:"__iced_k_noop",param:"__iced_p_",ns:"iced",runtime:"runtime",Deferrals:"Deferrals",deferrals:"__iced_deferrals",fulfill:"_fulfill",b_while:"_break",t_while:"_while",c_while:"_continue",n_while:"_next",n_arg:"__iced_next_arg",defer_method:"defer",slot:"__slot",assign_fn:"assign_fn",autocb:"autocb",retslot:"ret",trace:"__iced_trace",passed_deferral:"__iced_passed_deferral",findDeferral:"findDeferral",lineno:"lineno",parent:"parent",filename:"filename",funcname:"funcname",catchExceptions:"catchExceptions",runtime_modes:["node","inline","window","none","browserify","interp"],trampoline:"trampoline",context:"context",defer_arg:"__iced_defer_"}}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a={}.hasOwnProperty;n=r(130).BlockCipher,s=r(114).scrub_vec,o=function(){function e(){this.SBOX=[],this.INV_SBOX=[],this.SUB_MIX=function(){var e,t;for(t=[],e=0;e<4;++e)t.push([]);return t}(),this.INV_SUB_MIX=function(){var e,t;for(t=[],e=0;e<4;++e)t.push([]);return t}(),this.init(),this.RCON=[0,1,2,4,8,16,32,64,128,27,54]}return e.prototype.init=function(){var e,t,r,n,i,o,s,a,u,f;for(e=function(){var e,r;for(r=[],t=e=0;e<256;t=++e)t<128?r.push(t<<1):r.push(t<<1^283);return r}(),i=0,u=0,t=f=0;f<256;t=++f)r=(r=u^u<<1^u<<2^u<<3^u<<4)>>>8^255&r^99,this.SBOX[i]=r,this.INV_SBOX[r]=i,a=e[s=e[o=e[i]]],n=257*e[r]^16843008*r,this.SUB_MIX[0][i]=n<<24|n>>>8,this.SUB_MIX[1][i]=n<<16|n>>>16,this.SUB_MIX[2][i]=n<<8|n>>>24,this.SUB_MIX[3][i]=n,n=16843009*a^65537*s^257*o^16843008*i,this.INV_SUB_MIX[0][r]=n<<24|n>>>8,this.INV_SUB_MIX[1][r]=n<<16|n>>>16,this.INV_SUB_MIX[2][r]=n<<8|n>>>24,this.INV_SUB_MIX[3][r]=n,0===i?i=u=1:(i=o^e[e[e[a^o]]],u^=e[e[u]]);return!0},e}(),i=new o,e=function(e){function t(e){this._key=e.clone(),this._doReset()}return function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.blockSize=16,t.prototype.blockSize=t.blockSize,t.keySize=32,t.prototype.keySize=t.keySize,t.ivSize=t.blockSize,t.prototype.ivSize=t.ivSize,t.prototype._doReset=function(){var e,t,r,n,o,s,a,u;for(r=this._key.words,t=this._key.sigBytes/4,this._nRounds=t+6,o=4*(this._nRounds+1),this._keySchedule=[],n=a=0;0<=o?a<o:a>o;n=0<=o?++a:--a)this._keySchedule[n]=n<t?r[n]:(s=this._keySchedule[n-1],n%t==0?(s=s<<8|s>>>24,s=i.SBOX[s>>>24]<<24|i.SBOX[s>>>16&255]<<16|i.SBOX[s>>>8&255]<<8|i.SBOX[255&s],s^=i.RCON[n/t|0]<<24):t>6&&n%t==4&&(s=i.SBOX[s>>>24]<<24|i.SBOX[s>>>16&255]<<16|i.SBOX[s>>>8&255]<<8|i.SBOX[255&s]),this._keySchedule[n-t]^s);for(this._invKeySchedule=[],e=u=0;0<=o?u<o:u>o;e=0<=o?++u:--u)n=o-e,s=this._keySchedule[n-(e%4?0:4)],this._invKeySchedule[e]=e<4||n<=4?s:i.INV_SUB_MIX[0][i.SBOX[s>>>24]]^i.INV_SUB_MIX[1][i.SBOX[s>>>16&255]]^i.INV_SUB_MIX[2][i.SBOX[s>>>8&255]]^i.INV_SUB_MIX[3][i.SBOX[255&s]];return!0},t.prototype.encryptBlock=function(e,t){return null==t&&(t=0),this._doCryptBlock(e,t,this._keySchedule,i.SUB_MIX,i.SBOX)},t.prototype.decryptBlock=function(e,t){var r,n;return null==t&&(t=0),r=[e[t+3],e[t+1]],e[t+1]=r[0],e[t+3]=r[1],this._doCryptBlock(e,t,this._invKeySchedule,i.INV_SUB_MIX,i.INV_SBOX),n=[e[t+3],e[t+1]],e[t+1]=n[0],e[t+3]=n[1],n},t.prototype.scrub=function(){return s(this._keySchedule),s(this._invKeySchedule),this._key.scrub()},t.prototype._doCryptBlock=function(e,t,r,n,i){var o,s,a,u,f,c,l,h,p,d,_;for(s=e[t]^r[0],a=e[t+1]^r[1],u=e[t+2]^r[2],f=e[t+3]^r[3],o=4,d=1,_=this._nRounds;1<=_?d<_:d>_;1<=_?++d:--d)c=n[0][s>>>24]^n[1][a>>>16&255]^n[2][u>>>8&255]^n[3][255&f]^r[o++],l=n[0][a>>>24]^n[1][u>>>16&255]^n[2][f>>>8&255]^n[3][255&s]^r[o++],h=n[0][u>>>24]^n[1][f>>>16&255]^n[2][s>>>8&255]^n[3][255&a]^r[o++],p=n[0][f>>>24]^n[1][s>>>16&255]^n[2][a>>>8&255]^n[3][255&u]^r[o++],s=c,a=l,u=h,f=p;return c=(i[s>>>24]<<24|i[a>>>16&255]<<16|i[u>>>8&255]<<8|i[255&f])^r[o++],l=(i[a>>>24]<<24|i[u>>>16&255]<<16|i[f>>>8&255]<<8|i[255&s])^r[o++],h=(i[u>>>24]<<24|i[f>>>16&255]<<16|i[s>>>8&255]<<8|i[255&a])^r[o++],p=(i[f>>>24]<<24|i[s>>>16&255]<<16|i[a>>>8&255]<<8|i[255&u])^r[o++],e[t]=c,e[t+1]=l,e[t+2]=h,e[t+3]=p},t}(n),t.AES=e}).call(this)},function(e,t,r){(function(){var e,n,i,o={}.hasOwnProperty;e=r(130).BlockCipher,i=r(114).scrub_vec,n=new function(){this.P=[[169,103,179,232,4,253,163,118,154,146,128,120,228,221,209,56,13,198,53,152,24,247,236,108,67,117,55,38,250,19,148,72,242,208,139,48,132,84,223,35,25,91,61,89,243,174,162,130,99,1,131,46,217,81,155,124,166,235,165,190,22,12,227,97,192,140,58,245,115,44,37,11,187,78,137,107,83,106,180,241,225,230,189,69,226,244,182,102,204,149,3,86,212,28,30,215,251,195,142,181,233,207,191,186,234,119,57,175,51,201,98,113,129,121,9,173,36,205,249,216,229,197,185,77,68,8,134,231,161,29,170,237,6,112,178,210,65,123,160,17,49,194,39,144,32,246,96,255,150,92,177,171,158,156,82,27,95,147,10,239,145,133,73,238,45,79,143,59,71,135,109,70,214,62,105,100,42,206,203,47,252,151,5,122,172,127,213,26,75,14,167,90,40,20,63,41,136,60,76,2,184,218,176,23,85,31,138,125,87,199,141,116,183,196,159,114,126,21,34,18,88,7,153,52,110,80,222,104,101,188,219,248,200,168,43,64,220,254,50,164,202,16,33,240,211,93,15,0,111,157,54,66,74,94,193,224],[117,243,198,244,219,123,251,200,74,211,230,107,69,125,232,75,214,50,216,253,55,113,241,225,48,15,248,27,135,250,6,63,94,186,174,91,138,0,188,157,109,193,177,14,128,93,210,213,160,132,7,20,181,144,44,163,178,115,76,84,146,116,54,81,56,176,189,90,252,96,98,150,108,66,247,16,124,40,39,140,19,149,156,199,36,70,59,112,202,227,133,203,17,208,147,184,166,131,32,255,159,119,195,204,3,111,8,191,64,231,43,226,121,12,170,130,65,58,234,185,228,154,164,151,126,218,122,23,102,148,161,29,61,240,222,179,11,114,167,28,239,209,83,62,143,51,38,95,236,118,42,73,129,136,238,33,196,26,235,217,197,57,153,205,173,49,139,1,24,35,221,31,78,45,249,72,79,242,101,142,120,92,88,25,141,229,152,87,103,127,5,100,175,99,182,254,245,183,60,165,206,233,104,68,224,77,67,105,41,46,172,21,89,168,10,158,110,71,223,52,53,106,207,220,34,201,192,155,137,212,237,171,18,162,13,82,187,2,47,169,215,97,30,180,80,4,246,194,22,37,134,86,85,9,190,145]],this.P_00=1,this.P_01=0,this.P_02=0,this.P_03=1,this.P_04=1,this.P_10=0,this.P_11=0,this.P_12=1,this.P_13=1,this.P_14=0,this.P_20=1,this.P_21=1,this.P_22=0,this.P_23=0,this.P_24=0,this.P_30=0,this.P_31=1,this.P_32=1,this.P_33=0,this.P_34=1,this.GF256_FDBK=361,this.GF256_FDBK_2=this.GF256_FDBK/2,this.GF256_FDBK_4=this.GF256_FDBK/4,this.RS_GF_FDBK=333,this.SK_STEP=33686018,this.SK_BUMP=16843009,this.SK_ROTL=9},t.TwoFish=function(e){function t(e){this._key=e.clone(),this.gMDS0=[],this.gMDS1=[],this.gMDS2=[],this.gMDS3=[],this.gSubKeys=[],this.gSBox=[],this.k64Cnt=0,this._doReset()}return function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.blockSize=16,t.prototype.blockSize=t.blockSize,t.keySize=32,t.prototype.keySize=t.keySize,t.ivSize=t.blockSize,t.prototype.ivSize=t.ivSize,t.prototype.getByte=function(e,t){return e>>>8*t&255},t.prototype.switchEndianness=function(e){return(255&e)<<24|(e>>8&255)<<16|(e>>16&255)<<8|e>>24&255},t.prototype.LFSR1=function(e){return e>>1^(0!=(1&e)?n.GF256_FDBK_2:0)},t.prototype.LFSR2=function(e){return e>>2^(0!=(2&e)?n.GF256_FDBK_2:0)^(0!=(1&e)?n.GF256_FDBK_4:0)},t.prototype.Mx_X=function(e){return e^this.LFSR2(e)},t.prototype.Mx_Y=function(e){return e^this.LFSR1(e)^this.LFSR2(e)},t.prototype.RS_rem=function(e){var t,r,i;return r=255&((t=e>>>24&255)<<1^(0!=(128&t)?n.RS_GF_FDBK:0)),e<<8^(i=t>>>1^(0!=(1&t)?n.RS_GF_FDBK>>>1:0)^r)<<24^r<<16^i<<8^t},t.prototype.RS_MDS_Encode=function(e,t){var r,n,i;for(r=t,n=0;n<4;++n)r=this.RS_rem(r);for(r^=e,i=0;i<4;++i)r=this.RS_rem(r);return r},t.prototype.F32=function(e,t){var r,i,o,s,a,u,f,c,l;return r=this.getByte(e,0),i=this.getByte(e,1),o=this.getByte(e,2),s=this.getByte(e,3),a=t[0],u=t[1],f=t[2],c=t[3],1===(l=3&this.k64Cnt)?this.gMDS0[255&n.P[n.P_01][r]^this.getByte(a,0)]^this.gMDS1[255&n.P[n.P_11][i]^this.getByte(a,1)]^this.gMDS2[255&n.P[n.P_21][o]^this.getByte(a,2)]^this.gMDS3[255&n.P[n.P_31][s]^this.getByte(a,3)]:(0===l&&(r=255&n.P[n.P_04][r]^this.getByte(c,0),i=255&n.P[n.P_14][i]^this.getByte(c,1),o=255&n.P[n.P_24][o]^this.getByte(c,2),s=255&n.P[n.P_34][s]^this.getByte(c,3)),(0===l||3===l)&&(r=255&n.P[n.P_03][r]^this.getByte(f,0),i=255&n.P[n.P_13][i]^this.getByte(f,1),o=255&n.P[n.P_23][o]^this.getByte(f,2),s=255&n.P[n.P_33][s]^this.getByte(f,3)),this.gMDS0[255&n.P[n.P_01][255&n.P[n.P_02][r]^this.getByte(u,0)]^this.getByte(a,0)]^this.gMDS1[255&n.P[n.P_11][255&n.P[n.P_12][i]^this.getByte(u,1)]^this.getByte(a,1)]^this.gMDS2[255&n.P[n.P_21][255&n.P[n.P_22][o]^this.getByte(u,2)]^this.getByte(a,2)]^this.gMDS3[255&n.P[n.P_31][255&n.P[n.P_32][s]^this.getByte(u,3)]^this.getByte(a,3)])},t.prototype.Fe32_0=function(e){return this.gSBox[0+2*(255&e)]^this.gSBox[1+2*(e>>>8&255)]^this.gSBox[512+2*(e>>>16&255)]^this.gSBox[513+2*(e>>>24&255)]},t.prototype.Fe32_3=function(e){return this.gSBox[0+2*(e>>>24&255)]^this.gSBox[1+2*(255&e)]^this.gSBox[512+2*(e>>>8&255)]^this.gSBox[513+2*(e>>>16&255)]},t.prototype._doReset=function(){var e,t,r,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A,B;if(p=[],d=[],w=[],y=[],g=[],b=[],this.k64Cnt=this._key.words.length/2,this.k64Cnt<1)throw"Key size less than 64 bits";if(this.k64Cnt>4)throw"Key size larger than 256 bits";for(a=k=0;k<256;a=++k)u=255&n.P[0][a],y[0]=u,g[0]=255&this.Mx_X(u),b[0]=255&this.Mx_Y(u),u=255&n.P[1][a],y[1]=u,g[1]=255&this.Mx_X(u),b[1]=255&this.Mx_Y(u),this.gMDS0[a]=y[n.P_00]|g[n.P_00]<<8|b[n.P_00]<<16|b[n.P_00]<<24,this.gMDS1[a]=b[n.P_10]|b[n.P_10]<<8|g[n.P_10]<<16|y[n.P_10]<<24,this.gMDS2[a]=g[n.P_20]|b[n.P_20]<<8|y[n.P_20]<<16|b[n.P_20]<<24,this.gMDS3[a]=g[n.P_30]|y[n.P_30]<<8|b[n.P_30]<<16|g[n.P_30]<<24;for(a=x=0,A=this.k64Cnt;0<=A?x<A:x>A;a=0<=A?++x:--x)m=2*a,p[a]=this.switchEndianness(this._key.words[m]),d[a]=this.switchEndianness(this._key.words[m+1]),w[this.k64Cnt-1-a]=this.RS_MDS_Encode(p[a],d[a]);for(a=E=0,20;E<20;a=++E)v=a*n.SK_STEP,e=this.F32(v,p),e+=t=(t=this.F32(v+n.SK_BUMP,d))<<8|t>>>24,this.gSubKeys[2*a]=e,e+=t,this.gSubKeys[2*a+1]=e<<n.SK_ROTL|e>>>32-n.SK_ROTL;for(f=w[0],c=w[1],l=w[2],h=w[3],this.gSBox=[],B=[],a=S=0;S<256;a=++S)r=i=o=s=a,1===(_=3&this.k64Cnt)?(this.gSBox[2*a]=this.gMDS0[255&n.P[n.P_01][r]^this.getByte(f,0)],this.gSBox[2*a+1]=this.gMDS1[255&n.P[n.P_11][i]^this.getByte(f,1)],this.gSBox[2*a+512]=this.gMDS2[255&n.P[n.P_21][o]^this.getByte(f,2)],B.push(this.gSBox[2*a+513]=this.gMDS3[255&n.P[n.P_31][s]^this.getByte(f,3)])):(0===_&&(r=255&n.P[n.P_04][r]^this.getByte(h,0),i=255&n.P[n.P_14][i]^this.getByte(h,1),o=255&n.P[n.P_24][o]^this.getByte(h,2),s=255&n.P[n.P_34][s]^this.getByte(h,3)),0!==_&&3!==_||(r=255&n.P[n.P_03][r]^this.getByte(l,0),i=255&n.P[n.P_13][i]^this.getByte(l,1),o=255&n.P[n.P_23][o]^this.getByte(l,2),s=255&n.P[n.P_33][s]^this.getByte(l,3)),this.gSBox[2*a]=this.gMDS0[255&n.P[n.P_01][255&n.P[n.P_02][r]^this.getByte(c,0)]^this.getByte(f,0)],this.gSBox[2*a+1]=this.gMDS1[255&n.P[n.P_11][255&n.P[n.P_12][i]^this.getByte(c,1)]^this.getByte(f,1)],this.gSBox[2*a+512]=this.gMDS2[255&n.P[n.P_21][255&n.P[n.P_22][o]^this.getByte(c,2)]^this.getByte(f,2)],B.push(this.gSBox[2*a+513]=this.gMDS3[255&n.P[n.P_31][255&n.P[n.P_32][s]^this.getByte(c,3)]^this.getByte(f,3)]));return B},t.prototype.scrub=function(){return i(this.gSubKeys),i(this.gSBox),this._key.scrub()},t.prototype.decryptBlock=function(e,t){var r,n,i,o,s,a,u,f;for(null==t&&(t=0),a=this.switchEndianness(e[t])^this.gSubKeys[4],u=this.switchEndianness(e[t+1])^this.gSubKeys[5],o=this.switchEndianness(e[t+2])^this.gSubKeys[6],s=this.switchEndianness(e[t+3])^this.gSubKeys[7],r=39,f=0;f<16;f+=2)s^=(n=this.Fe32_0(a))+2*(i=this.Fe32_3(u))+this.gSubKeys[r--],o=(o<<1|o>>>31)^n+i+this.gSubKeys[r--],s=s>>>1|s<<31,u^=(n=this.Fe32_0(o))+2*(i=this.Fe32_3(s))+this.gSubKeys[r--],a=(a<<1|a>>>31)^n+i+this.gSubKeys[r--],u=u>>>1|u<<31;return e[t]=this.switchEndianness(o^this.gSubKeys[0]),e[t+1]=this.switchEndianness(s^this.gSubKeys[1]),e[t+2]=this.switchEndianness(a^this.gSubKeys[2]),e[t+3]=this.switchEndianness(u^this.gSubKeys[3])},t.prototype.encryptBlock=function(e,t){var r,n,i,o,s,a,u,f;for(null==t&&(t=0),o=this.switchEndianness(e[t])^this.gSubKeys[0],s=this.switchEndianness(e[t+1])^this.gSubKeys[1],a=this.switchEndianness(e[t+2])^this.gSubKeys[2],u=this.switchEndianness(e[t+3])^this.gSubKeys[3],r=8,f=0;f<16;f+=2)a=(a^=(n=this.Fe32_0(o))+(i=this.Fe32_3(s))+this.gSubKeys[r++])>>>1|a<<31,u=(u<<1|u>>>31)^n+2*i+this.gSubKeys[r++],o=(o^=(n=this.Fe32_0(a))+(i=this.Fe32_3(u))+this.gSubKeys[r++])>>>1|o<<31,s=(s<<1|s>>>31)^n+2*i+this.gSubKeys[r++];return e[t]=this.switchEndianness(a^this.gSubKeys[4]),e[t+1]=this.switchEndianness(u^this.gSubKeys[5]),e[t+2]=this.switchEndianness(o^this.gSubKeys[6]),e[t+3]=this.switchEndianness(s^this.gSubKeys[7])},t}(e)}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c,l={}.hasOwnProperty,h=function(e,t){for(var r in t)l.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};c=r(238),i=c.HMAC,f=c.bulk_sign,s=r(239).SHA512,o=r(353).KECCAK,a=r(76).WordArray,n=function(e){function t(e,r){var n,a,u,f,c;null==r&&(r=[s,o]),c=e.split(r.length),this.hashers=function(){var e,t,o;for(o=[],a=e=0,t=r.length;e<t;a=++e)u=r[a],f=c[a],n=new i(f,u),f.scrub(),o.push(n);return o}(),t.__super__.constructor.call(this)}return h(t,e),t.get_output_size=function(){return s.output_size+o.output_size},t.prototype._coalesce=function(e,t){return e.concat(t)},t.prototype.get_output_size=function(){var e,t,r,n;for(e=0,t=0,r=(n=this.hashers).length;t<r;t++)e+=n[t].get_output_size();return e},t.sign=function(e){var r,n;return n=e.key,r=e.input,new t(n).finalize(r)},t.bulk_sign=function(e,r){return e.klass=t,e.what="HMAC-SHA512-SHA3",f(e,r)},t}(e=function(){function e(){this.hasherBlockSize=this.hashers[0].hasherBlockSize,this.hasherBlockSizeBytes=4*this.hasherBlockSize,this.reset()}return e.prototype.reset=function(){var e,t,r;for(e=0,t=(r=this.hashers).length;e<t;e++)r[e].reset();return this},e.prototype.update=function(e){var t,r,n;for(t=0,r=(n=this.hashers).length;t<r;t++)n[t].update(e);return this},e.prototype.scrub=function(){var e,t,r;for(e=0,t=(r=this.hashers).length;e<t;e++)r[e].scrub();return this},e.prototype.finalize=function(e){var t,r,n,i,o,s;for(n=(r=function(){var r,n,i,o;for(o=[],r=0,n=(i=this.hashers).length;r<n;r++)t=i[r],o.push(t.finalize(e));return o}.call(this))[0],i=0,o=(s=r.slice(1)).length;i<o;i++)t=s[i],this._coalesce(n,t),t.scrub();return n},e}()),u=function(e){function t(e,r){var n;null==r&&(r=[s,o]),this.hashers=function(){var t,o,s;for(s=[],t=0,o=r.length;t<o;t++)n=r[t],s.push(new i(e,n));return s}(),t.__super__.constructor.call(this)}return h(t,e),t.prototype.reset=function(){var e,r,n,i;for(t.__super__.reset.call(this),e=r=0,n=(i=this.hashers).length;r<n;e=++r)i[e].update(new a([e]));return this},t.get_output_size=function(){return Math.max(s.output_size,o.output_size)},t.prototype._coalesce=function(e,t){return e.xor(t,{})},t.prototype.get_output_size=function(){var e;return Math.max.apply(Math,function(){var t,r,n,i;for(i=[],t=0,r=(n=this.hashers).length;t<r;t++)e=n[t],i.push(e.get_output_size());return i}.call(this))},t.sign=function(e){var r,n;return n=e.key,r=e.input,new t(n).finalize(r)},t.bulk_sign=function(e,r){return e.klass=t,e.what="HMAC-SHA512-XOR-SHA3",f(e,r)},t}(e),t.Concat=n,t.XOR=u}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a,u={}.hasOwnProperty;o=r(76).WordArray,n=r(130).Hasher,e=function(){function e(){this.H=[],this.K=[],this.W=[],this.init()}return e.prototype.isPrime=function(e){var t,r,n;if(2===e||3===e||5===e||7===e)return!0;if(1===e||4===e||6===e||8===e||9===e)return!1;for(r=Math.ceil(Math.sqrt(e)),t=n=2;2<=r?n<=r:n>=r;t=2<=r?++n:--n)if(e%t==0)return!1;return!0},e.prototype.getFractionalBits=function(e){return 4294967296*(e-(0|e))|0},e.prototype.init=function(){var e,t,r;for(e=2,t=0,r=[];t<64;)this.isPrime(e)&&(t<8&&(this.H[t]=this.getFractionalBits(Math.pow(e,.5))),this.K[t]=this.getFractionalBits(Math.pow(e,1/3)),t++),r.push(e++);return r},e}(),s=new e,i=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)u.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.blockSize=16,t.prototype.blockSize=t.blockSize,t.output_size=32,t.prototype.output_size=t.output_size,t.prototype._doReset=function(){return this._hash=new o(s.H.slice(0))},t.prototype.get_output_size=function(){return this.output_size},t.prototype._doProcessBlock=function(e,t){var r,n,i,o,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k;for(r=this._hash.words,i=s.W,n=s.K,o=r[0],a=r[1],u=r[2],f=r[3],c=r[4],l=r[5],h=r[6],g=r[7],b=k=0;k<64;b=++k)b<16?i[b]=0|e[t+b]:(p=((d=i[b-15])<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,_=((y=i[b-2])<<15|y>>>17)^(y<<13|y>>>19)^y>>>10,i[b]=p+i[b-7]+_+i[b-16]),m=o&a^o&u^a&u,v=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),w=g+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&l^~c&h)+n[b]+i[b],g=h,h=l,l=c,c=f+w|0,f=u,u=a,a=o,o=w+(v+m)|0;return r[0]=r[0]+o|0,r[1]=r[1]+a|0,r[2]=r[2]+u|0,r[3]=r[3]+f|0,r[4]=r[4]+c|0,r[5]=r[5]+l|0,r[6]=r[6]+h|0,r[7]=r[7]+g|0},t.prototype._doFinalize=function(){var e,t,r,n;return t=(e=this._data).words,n=8*this._nDataBytes,t[(r=8*e.sigBytes)>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},t.prototype.scrub=function(){return this._hash.scrub()},t.prototype.copy_to=function(e){return t.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},t.prototype.clone=function(){var e;return e=new t,this.copy_to(e),e},t}(n),a=function(e){var t;return t=(new i).finalize(e),e.scrub(),t},t.SHA256=i,t.transform=a}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a;o=r(34),e=r(238).HMAC,i=r(76).WordArray,a=r(114),n=function(){function t(t){this.klass=t.klass,this.c=t.c,this.c||(this.c=1024),this.klass||(this.klass=e)}return t.prototype._PRF=function(e){return this.prf.reset(),this.prf.finalize(e)},t.prototype._gen_T_i=function(e,t){var r,n,s,u,f,c,l,h,p,d;h=o.findDeferral(arguments),f=e.salt,n=e.i,(s=e.progress_hook)(0),c=f.clone().concat(new i([n])),r=this._PRF(c),u=r.clone(),n=1,(d=this,function(e){var t;(t=function(e){var i,f;if(i=e,f=function(){return o.trampoline((function(){return t(e)}))},!(n<d.c))return i();for(l=Math.min(d.c,n+128);n<l;)r=d._PRF(r),u.xor(r,{}),n++;s(n),p=new o.Deferrals((function(){return f(null)}),{parent:h,filename:"/Users/max/src/keybase/triplesec/src/pbkdf2.iced",funcname:"PBKDF2._gen_T_i"}),a.default_delay(0,0,p.defer({lineno:57})),p._fulfill()})(e)})((function(){return s(n),t(u)}))},t.prototype.run=function(e,t){var r,n,s,a,u,f,c,l,h,p,d,_,y,g,b;_=o.findDeferral(arguments),u=e.key,h=e.salt,n=e.dkLen,l=e.progress_hook,this.prf=new this.klass(u),r=this.prf.get_output_size(),f=Math.ceil(n/r),d=[],b=this,(c=function(e){return function(t){return"function"==typeof l?l({what:"pbkdf2",total:f*b.c,i:e*b.c+t}):void 0}})(0)(0),function(e){return function(t){var r;a=1,g=f>1,(r=function(t){var n;if(n=function(){return o.trampoline((function(){return g?a+=1:a-=1,r(t)}))},!0===g&&a>f||!1===g&&a<f)return t();y=new o.Deferrals((function(){return n(d.push(p.words))}),{parent:_,filename:"/Users/max/src/keybase/triplesec/src/pbkdf2.iced",funcname:"PBKDF2.run"}),e._gen_T_i({salt:h,i:a,progress_hook:c(a-1)},y.defer({assign_fn:function(){return p=arguments[0]},lineno:80})),y._fulfill()})(t)}}(this)(function(e){return function(){var r;return c(f)(0),s=(r=[]).concat.apply(r,d),u.scrub(),e.prf.scrub(),e.prf=null,t(new i(s,n))}}(this))},t}(),s=function(e,t){var r,i,s,a,u,f,c,l,h,p;h=o.findDeferral(arguments),a=e.key,l=e.salt,u=e.klass,r=e.c,i=e.dkLen,c=e.progress_hook,s=new n({klass:u,c:r}),function(e){p=new o.Deferrals(e,{parent:h,filename:"/Users/max/src/keybase/triplesec/src/pbkdf2.iced"}),s.run({key:a,salt:l,dkLen:i,progress_hook:c},p.defer({assign_fn:function(){return f=arguments[0]},lineno:106})),p._fulfill()}((function(){return t(f)}))},t.pbkdf2=s,t.PBKDF2=n}).call(this)},function(e,t,r){(function(){var e,n,i,o;o=r(718),i=null,e=r(1307).Sodium,n=r(1308).TweetNaCl;try{i=r(!function(){var e=new Error("Cannot find module 'sodium'");throw e.code="MODULE_NOT_FOUND",e}()).api}catch(e){e}t.sign={publicKeyLength:o.sign.publicKeyLength,secretKeyLength:o.sign.secretKeyLength,signatureLength:o.sign.signatureLength,seedLength:o.sign.seedLength},t.alloc=function(t){var r,s,a;return r=t.publicKey,a=t.secretKey,(s=t.force_js||null==i?new n({publicKey:r,secretKey:a}):new e({publicKey:r,secretKey:a})).lib={c:i,js:o},s}}).call(this)},function(e,t,r){(function(){var e;e=r(62).make_errors,t.errors=e({WRONG_SIGNING_KEY:"wrong signing key specified",REVOKED_KEY:"key is revoked"})}).call(this)},function(e,t,r){(function(){var e,n;e=r(36),n=r(1312),t.header={version:e.header.version+" v"+n.version,comment:e.header.comment}}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b;g=r(50),d=r(200).SlicerBuffer,n=r(36).openpgp,s=r(721).KeyMaterial,p=r(240).Signature,b=r(724),h=b.SEIPD,c=b.PKESK,y=r(725).UserID,_=r(1316).UserAttribute,i=r(726).Compressed,o=r(1318).Generic,f=r(727).OnePassSignature,a=r(384).Literal,r(64).inspect,u=function(){function e(e){this.slice=e}return e.prototype.parse=function(){var e;for(e=[];this.slice.rem();)e.push(this.parse_packet());return e},e.prototype.parse_packet=function(){return new l(this.slice).parse()},e}(),l=function(){function t(e){this.slice=e,this.body=null,this.real_packet_len=null,this.tag=null,this.len=null,this.header_len=null}return t.prototype.parse_header=function(){return this.parse_tag_and_len(),this.header_len||(this.header_len=this.slice.offset()),this.body||(this.body=new d(this.slice.read_buffer(this.len))),this.real_packet_len||(this.real_packet_len=this.len),this.slice.unclamp()},t.prototype.parse=function(){return this.parse_header(),this.parse_body()},t.prototype.parse_body=function(){var e,t,r,u;return t=n.packet_tags,r=(u=this.body).peek_rest_to_buffer(),(e=function(){switch(this.tag){case t.PKESK:return c.parse(u);case t.one_pass_sig:return f.parse(u);case t.secret_key:return s.parse_private_key(u,{subkey:!1});case t.secret_subkey:return s.parse_private_key(u,{subkey:!0});case t.public_key:return s.parse_public_key(u,{subkey:!1});case t.public_subkey:return s.parse_public_key(u,{subkey:!0});case t.signature:return p.parse(u);case t.userid:return y.parse(u);case t.user_attribute:return _.parse(u);case t.SEIPD:return h.parse(u);case t.literal:return a.parse(u);case t.compressed:return i.parse(u);default:return new o(this.tag,u)}}.call(this)).set({tag:this.tag,real_packet_len:this.real_packet_len,header_len:this.header_len,raw:r}),e},t.prototype.parse_tag_and_len=function(){var e;if(this.slice.len()<2||0==(128&(e=this.slice.read_uint8())))throw new Error("This doesn't look like a binary PGP packet (c="+e+")");return 0==(64&e)?this.parse_tag_and_len_old(e):this.parse_tag_and_len_new(e)},t.prototype.parse_tag_and_len_old=function(e){return this.tag=(63&e)>>2,this.len=function(){switch(3&e){case 0:return this.slice.read_uint8();case 1:return this.slice.read_uint16();case 2:return this.slice.read_uint32();case 3:return this.slice.rem()}}.call(this)},t.prototype.parse_tag_and_len_new=function(e){return this.tag=63&e,this.parse_tag_len_new()},t.prototype.parse_tag_len_new=function(){var t,r,n,i,o;for(r=!0,o=[],this.len=0,n=0;r;)r=!1,n=(t=this.slice.read_uint8())<192?t:255===t?this.slice.read_uint32():t<224?(t-192<<8)+(this.slice.read_uint8()+192):(this.header_len||(this.header_len=this.slice.offset()),i=1<<(31&t),o.push(this.slice.read_buffer(i)),r=!0,i),this.len+=n;if(o.length)return o.push(this.slice.read_buffer(n)),this.body=new d(e.concat(o)),this.len=this.body.length,this.real_packet_len=this.slice.offset()},t}(),t.parse=function(e){return g.katch((function(){return new u(new d(e)).parse()}))}}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g={}.hasOwnProperty,b=function(e,t){for(var r in t)g.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};l=r(34),h=r(458),c=r(200).SlicerBuffer,d=r(50).uint_to_buffer,y=r(137),i=y.BaseKeyPair,n=y.BaseKey,f=r(94).SRF,_=r(50),p=r(36),o=p.openpgp,u=function(t){function r(e){this.key=e.key}return b(r,t),r.type=o.public_key_algorithms.EDDSA,r.prototype.type=r.type,r.OID=e.from([43,6,1,4,1,218,71,15,1]),r.prototype.OID=r.OID,r.MPI_LENGTH_HEADERS=e.from([1,7,64]),r.prototype.MPI_LENGTH_HEADERS=r.MPI_LENGTH_HEADERS,r.prototype.nbits=function(){return 255},r.prototype.read_params=function(e){},r.prototype.trunc_hash=function(e){return bn.bn_from_left_n_bits(e,this.nbits())},r.prototype.serialize=function(){return e.concat([e.from([this.OID.length]),this.OID,this.MPI_LENGTH_HEADERS,this.key])},r._alloc=function(e){var t,n,i,o,s,a;if(s=(a=new c(e)).rem(),n=a.read_uint8(),o=a.read_buffer(n),t=r.OID,!_.bufeq_secure(o,t))throw new Error("Wrong OID in EdDSA key");if(i=a.read_buffer(r.MPI_LENGTH_HEADERS.length),!_.bufeq_secure(i,r.MPI_LENGTH_HEADERS))throw new Error("Wrong MPI length headers");return[new r({key:a.read_buffer(h.sign.publicKeyLength)}),s-a.rem()]},r.alloc=function(e){var t,n,i,o;i=n=t=null;try{i=(o=r._alloc(e))[0],n=o[1]}catch(e){t=e}return[t,i,n]},r.prototype.verify=function(t,r,n){var i,o,s,a,u,f;return s=t[0],a=t[1],o=h.alloc({publicKey:this.key}),s=_.fit_to_size(h.sign.signatureLength/2,s),a=_.fit_to_size(h.sign.signatureLength/2,a),u=e.concat([s,a]),i=(f=o.verify({payload:r,sig:u,detached:!0}))[0],f[1],n(i)},r}(n),a=function(t){function r(e){this.seed=e.seed,this.key=e.key,this.pub=e.pub}return b(r,t),r._alloc=function(t,n){var i,o,s,a,u,f,l,p,d;if(a=(f=new c(t)).rem(),(s=i=Math.ceil(f.read_uint16()/8))!==(o=h.sign.seedLength))throw new Error("Expected "+o+" bytes for EDDSA priv key, got "+s+".");if(p=f.read_buffer(i),u=(d=h.alloc({}).genFromSeed({seed:p})).publicKey,l=d.secretKey,!_.bufeq_secure(n.key,u))throw new Error("Loaded EDDSA private key but it does not match the public key.");return[new r({seed:p,key:e.from(l),pub:n}),a-f.rem()]},r.alloc=function(e,t){var n,i,o,s;o=i=n=null;try{o=(s=r._alloc(e,t))[0],i=s[1]}catch(e){n=e}return[n,o,i]},r.prototype.sign=function(t,r){var n,i;return i=h.alloc({secretKey:this.key}).sign({payload:t}),n=h.sign.signatureLength/2,r([e.from(i.slice(0,n)),e.from(i.slice(n,2*n))])},r.prototype.serialize=function(){return e.concat([d(16,8*h.sign.seedLength),this.seed])},r}(n),s=function(t){function r(e){var t,n;n=e.pub,t=e.priv,r.__super__.constructor.call(this,{pub:n,priv:t})}return b(r,t),r.Pub=u,r.prototype.Pub=u,r.Priv=a,r.prototype.Priv=a,r.type=o.public_key_algorithms.EDDSA,r.prototype.type=r.type,r.klass_name="EDDSA",r.prototype.get_type=function(){return this.type},r.parse=function(e){return i.parse(r,e)},r.prototype.can_encrypt=function(){return!1},r.subkey_algo=function(e){return e&(o.key_flags.certify_keys|o.key_flags.sign_data)?r:ECDH},r.prototype.fulfills_flags=function(e){return(e&(o.key_flags.certify_keys|o.key_flags.sign_data))===e},r.prototype.verify_unpad_and_check_hash=function(e,t){var n,i,o,s;return s=e.sig,n=e.data,o=e.hasher,i=e.hash,this._dsa_verify_update_and_check_hash({sig:s,data:n,hasher:o,hash:i,klass:r},t)},r.prototype.pad_and_sign=function(t,r,n){var i,o,s,a,u,f,c,h;f=l.findDeferral(arguments),(o=r.hasher)||(o=SHA512),i=o(t),(h=this,function(e){c=new l.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/ecc/eddsa.iced",funcname:"Pair.pad_and_sign"}),h.priv.sign(i,c.defer({assign_fn:function(){return u=arguments[0]},lineno:210})),c._fulfill()})((function(){return s=u[0],a=u[1],n(null,e.concat([d(16,8*s.length),s,d(16,8*a.length),a]))}))},r.parse_sig=function(e){var t,n,i,o,s;if(t=e.peek_rest_to_buffer(),n=(s=r.read_sig_from_buf(t))[0],o=s[1],i=s[2],null!=n)throw n;return e.advance(i),o},r.eddsa_value_from_buffer=function(e){var t,r,n,i;return n=i=null,(t=e.readUInt16BE(0))>256||t<216?n=new Error("Got an unexpected number of Bits for an EdDSA value: "+t):(r=2+Math.ceil(t/8),i=e.slice(2,r),e=e.slice(r)),[n,i,e]},r.read_sig_from_buf=function(e){var t,n,i,o,s,a;return s=e.length,o=["r","s"],n=null,t=function(){var t,i,s,u;for(u=[],t=0,i=o.length;t<i;t++)o[t],null==n&&(s=r.eddsa_value_from_buffer(e),n=s[0],a=s[1],e=s[2],u.push(a));return u}(),i=s-e.length,[n,null!=n?null:t,i]},r.alloc=function(e,t){var r,n,i,o;i=n=r=null;try{i=(o=u.alloc(t))[0],n=o[1]}catch(e){r=e}return[r,i,n]},r.prototype.good_for_flags=function(){return o.key_flags.certify_keys|o.key_flags.sign_data},r.generate=function(t,n){var i,o,s,c,p,d,_,y;_=l.findDeferral(arguments),t.nbits,t.asp,function(e){y=new l.Deferrals(e,{parent:_,filename:"/Users/max/src/keybase/kbpgp/src/ecc/eddsa.iced",funcname:"Pair.generate"}),f().random_bytes(h.sign.seedLength,y.defer({assign_fn:function(){return d=arguments[0]},lineno:282})),y._fulfill()}((function(){var t;return t=h.alloc({}).genFromSeed({seed:d}),s=t.publicKey,p=t.secretKey,o=new u({key:e.from(s)}),i=new a({seed:d,key:e.from(p),pub:o}),c=new r({pub:o,priv:i}),n(null,c)}))},r}(i),t.EDDSA=t.Pair=s}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u;o=(u=r(82)).ciphers,i=u.WordArray,n=o.AES,a=function(t){var r,o,s,a,u,f,c,l,h,p;return r=t.block_cipher_class,c=t.key,a=t.cipher,h=t.plaintext,f=t.iv,r||(r=n),a||(a=new r(i.from_buffer(c))),o=a.blockSize,s=i.from_buffer(f.slice(0,o)),p=0,l=function(){var e;for(e=[];h.length>p;)a.encryptBlock(s.words,0),u=s,s=i.from_buffer(h.slice(p,p+o)),u.xor(s,{n_words:s.words.length}),p+=o,s=u,e.push(u.to_buffer());return e}(),e.concat(l).slice(0,h.length)},s=function(t){var r,o,s,a,u,f,c,l,h,p,d;return o=t.block_cipher_class,l=t.key,a=t.cipher,u=t.ciphertext,c=t.iv,o||(o=n),a||(a=new o(i.from_buffer(l))),s=a.blockSize,c||(c=e.from(function(){var e,t;for(t=[],e=0;0<=s?e<s:e>s;0<=s?++e:--e)t.push(0);return t}())),r=i.from_buffer(c.slice(0,s)),d=0,h=function(){var e;for(e=[];u.length>d;)a.encryptBlock(r.words,0),f=r,r=i.from_buffer(u.slice(d,d+s)),f.xor(r,{}),d+=s,e.push(f.to_buffer());return e}(),(p=e.concat(h)).slice(p,u.length)},t.encrypt=a,t.decrypt=s}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i,o,s,a,u;e=r(465).C,i=r(466).PpBuffer,o=r(467).U32MAX,s=function(e){return"[object Array]"===Object.prototype.toString.call(e)},a=function(e){return Math.floor(e)===e},u=function(e){var t,r;return t=Math.floor(e/o),[o-t-((r=e%o)>0?1:0),0===r?0:o-r]},t.Packer=n=function(){function t(e){this._opts=null!=e?e:{},this._buffer=new i}return t.prototype.output=function(){return this._buffer.freeze()},t.prototype.p=function(e){switch(typeof e){case"number":return this.p_number(e);case"string":return this.p_str(e);case"boolean":return this.p_boolean(e);case"undefined":return this.p_null();case"object":if(null==e)return this.p_null();if(s(e))return this.p_array(e);if(i.isBuffer(e))return this.p_bin(e);if(!this.p_ext(e))return this.p_obj(e)}},t.prototype.p_number=function(e){return a(e)?e>=0?this.p_positive_int(e):this.p_negative_int(e):this.p_pack_double(e)},t.prototype.p_pack_double=function(t){return null!=this._opts.floats?(this.p_uint8(e.float),this._buffer.push_float32(t)):(this.p_uint8(e.double),this._buffer.push_float64(t))},t.prototype.p_uint8=function(e){return this._buffer.push_uint8(e)},t.prototype.p_uint16=function(e){return this._buffer.push_uint16(e)},t.prototype.p_uint32=function(e){return this._buffer.push_uint32(e)},t.prototype.p_int8=function(e){return this._buffer.push_int8(e)},t.prototype.p_int16=function(e){return this._buffer.push_int16(e)},t.prototype.p_int32=function(e){return this._buffer.push_int32(e)},t.prototype.p_neg_int64=function(e){var t,r,n;return t=(n=u(0-e))[0],r=n[1],this.p_uint32(t),this.p_uint32(r)},t.prototype.p_boolean=function(t){return this.p_uint8(t?e.true:e.false)},t.prototype.p_null=function(){return this.p_uint8(e.null)},t.prototype.p_array=function(t){var r,n,i,o;for(this.p_len(t.length,e.fix_array_min,e.fix_array_max,e.array16,e.array32),o=[],n=0,i=t.length;n<i;n++)r=t[n],o.push(this.p(r));return o},t.prototype.p_obj=function(t){var r,n,i,o,s,a;for(i=(n=Object.keys(t)).length,this.p_len(i,e.fix_map_min,e.fix_map_max,e.map16,e.map32),this._opts.sort_keys&&n.sort(),a=[],o=0,s=n.length;o<s;o++)r=n[o],this.p(r),a.push(this.p(t[r]));return a},t.prototype.p_positive_int=function(t){return t<=127?this.p_uint8(t):t<=255?(this.p_uint8(e.uint8),this.p_uint8(t)):t<=65535?(this.p_uint8(e.uint16),this.p_uint16(t)):t<o?(this.p_uint8(e.uint32),this.p_uint32(t)):(this.p_uint8(e.uint64),this.p_uint32(Math.floor(t/o)),this.p_uint32(t%o))},t.prototype.p_negative_int=function(t){return t>=-32?this.p_int8(t):t>=-128?(this.p_uint8(e.int8),this.p_int8(t)):t>=-32768?(this.p_uint8(e.int16),this.p_int16(t)):t>=-2147483648?(this.p_uint8(e.int32),this.p_int32(t)):(this.p_uint8(e.int64),this.p_neg_int64(t))},t.prototype.p_buffer=function(e){return this._buffer.push_buffer(e)},t.prototype.p_bin=function(t){return this.p_len(t.length,null,null,e.bin16,e.bin32,e.bin8),this.p_buffer(t)},t.prototype.p_str=function(t){var r,n;return r=this._buffer.prepare_utf8(t),n=this._opts.no_str8?null:e.str8,this.p_len(r.length,e.fix_str_min,e.fix_str_max,e.str16,e.str32,n),this.p_buffer(r)},t.prototype.p_len=function(e,t,r,n,i,o){return null==o&&(o=null),null!=t&&null!=r&&e<=r-t?this.p_uint8(e|t):null!=o&&e<=255?(this.p_uint8(o),this.p_uint8(e)):e<=65535?(this.p_uint8(n),this.p_uint16(e)):(this.p_uint8(i),this.p_uint32(e))},t.prototype.p_ext=function(t){var r,n,i,o;if(null==this._opts.ext)return!1;if(i=this._opts.ext(t)){switch(o=i[0],n=(r=i[1]).length){case 1:this.p_uint8(e.fix_ext1);break;case 2:this.p_uint8(e.fix_ext2);break;case 4:this.p_uint8(e.fix_ext4);break;case 8:this.p_uint8(e.fix_ext8);break;case 16:this.p_uint8(e.fix_ext16);break;default:n<=255?(this.p_uint8(e.ext8),this.p_uint8(n)):n<=65535?(this.p_uint8(e.ext16),this.p_uint16(n)):(this.p_uint8(e.ext32),this.p_uint32(n))}return this.p_uint8(o),this.p_buffer(r),!0}return!1},t}(),t.pack=function(e,t){var r;return null==t&&(t={}),(r=new n(t)).p(e),r.output()}}).call(this)},function(e,t){(function(){t.C={null:192,false:194,true:195,bin8:196,bin16:197,bin32:198,ext8:199,ext16:200,ext32:201,float:202,double:203,uint8:204,uint16:205,uint32:206,uint64:207,int8:208,int16:209,int32:210,int64:211,fix_ext1:212,fix_ext2:213,fix_ext4:214,fix_ext8:215,fix_ext16:216,str8:217,str16:218,str32:219,array16:220,array32:221,map16:222,map32:223,fix_str_min:160,fix_str_max:191,fix_array_min:144,fix_array_max:159,fix_map_min:128,fix_map_max:143,fix_array_count_mask:15,fix_map_count_mask:15,fix_str_count_mask:31,negative_fix_min:224,negative_fix_max:255,negative_fix_mask:31,negative_fix_offset:32,positive_fix_max:127,rpc_request:0,rpc_response:1,rpc_notify:2}}).call(this)},function(e,t,r){(function(e){(function(){var n,i;i=r(467).twos_compl_inv,n=e,t.PpBuffer=function(){function e(e){null==e?(this._frozen_buf=null,this._sub_buffers=[],this._limits=[],this._sz=1024,this._small_buf_sz=256,this._logsz=10,this._i=0,this._tot=0):this._freeze_to(e)}return e.prototype._nb=function(){return this._sub_buffers.length},e.prototype._ab=function(){return this._sub_buffers[this._nb()-1]},e.prototype._lib=function(){return 0},e.prototype._finish_sub_buffer=function(){return this._limits.push(this._i),this._i=0},e.prototype._push_sub_buffer=function(e){return this._sub_buffers.length&&this._finish_sub_buffer(),this._lib=function(){return e.length-this._i},this._sub_buffers.push(e),e},e.prototype._make_room=function(){return this._push_sub_buffer(n.alloc(this._sz))},e.prototype._make_room_for_n_bytes=function(e){if(this._lib()<e)return this._make_room()},e.prototype.push_uint8=function(e){return 1,this._make_room_for_n_bytes(1),this._ab().writeUInt8(e,this._i),this._i+=1,this._tot+=1},e.prototype.push_int8=function(e){return 1,this._make_room_for_n_bytes(1),this._ab().writeInt8(e,this._i),this._i+=1,this._tot+=1},e.prototype.push_uint16=function(e){return 2,this._make_room_for_n_bytes(2),this._ab().writeUInt16BE(e,this._i),this._i+=2,this._tot+=2},e.prototype.push_uint32=function(e){return 4,this._make_room_for_n_bytes(4),this._ab().writeUInt32BE(e,this._i),this._i+=4,this._tot+=4},e.prototype.push_int16=function(e){return 2,this._make_room_for_n_bytes(2),this._ab().writeInt16BE(e,this._i),this._i+=2,this._tot+=2},e.prototype.push_int32=function(e){return 4,this._make_room_for_n_bytes(4),this._ab().writeInt32BE(e,this._i),this._i+=4,this._tot+=4},e.prototype.push_float64=function(e){return 8,this._make_room_for_n_bytes(8),this._ab().writeDoubleBE(e,this._i),this._i+=8,this._tot+=8},e.prototype.push_float32=function(e){return 4,this._make_room_for_n_bytes(4),this._ab().writeFloatBE(e,this._i),this._i+=4,this._tot+=4},e.prototype.push_raw_bytes=function(e){return this.push_buffer(n.from(e,"binary"))},e.prototype.prepare_utf8=function(e){return n.from(e,"utf8")},e.prototype.push_buffer=function(e){var t,r;return e.length>this._small_buf_sz?(this._push_sub_buffer(e),this._i=e.length,this._tot+=e.length):((r=Math.min(e.length,this._lib()))>0&&(e.copy(this._ab(),this._i,0,r),this._i+=r,this._tot+=r),r<e.length&&(this._make_room(),e.copy(this._ab(),this._i,r,e.length),t=e.length-r,this._i+=t,this._tot+=t)),this},e.prototype.freeze=function(){var e,t,r,i,o,s,a;if(null==this._frozen_buf){for(this._finish_sub_buffer(),i=[],t=o=0,s=(a=this._sub_buffers).length;o<s;t=++o)e=a[t],(r=this._limits[t])===e.length?i.push(e):r>0&&i.push(e.slice(0,r));this._sub_buffers=[],this._frozen_buf=n.concat(i,this._tot)}return this._frozen_buf},e.prototype._freeze_to=function(e){return this._frozen_buf=e,this._tot=e.length,this._sub_buffers=[],this._cp=0,this},e.prototype.bytes_left=function(){return this._tot-this._cp},e.prototype._get=function(e){if(e<this._tot)return this._frozen_buf.readUInt8(e);throw new Error("read off end of buffer")},e.prototype.read_uint8=function(){return this._get(this._cp++)},e.prototype.read_int8=function(){return i(this.read_uint8(),8)},e.prototype.read_uint16=function(){var e;return e=this._frozen_buf.readUInt16BE(this._cp),this._cp+=2,e},e.prototype.read_uint32=function(){var e;return e=this._frozen_buf.readUInt32BE(this._cp),this._cp+=4,e},e.prototype.read_int16=function(){var e;return e=this._frozen_buf.readInt16BE(this._cp),this._cp+=2,e},e.prototype.read_int32=function(){var e;return e=this._frozen_buf.readInt32BE(this._cp),this._cp+=4,e},e.prototype.read_float64=function(){var e;return e=this._frozen_buf.readDoubleBE(this._cp),this._cp+=8,e},e.prototype.read_float32=function(){var e;return e=this._frozen_buf.readFloatBE(this._cp),this._cp+=4,e},e.prototype.read_buffer=function(e){var t,r,n;if(e>(t=this.bytes_left()))throw new Error("Corruption: asked for "+e+" bytes, but only "+t+" available");return r=this._cp+e,n=this._frozen_buf.slice(this._cp,r),this._cp=r,n},e.isBuffer=function(e){return n.isBuffer(e)},e}(),t.bufeq=function(e,t){var r,n,i;if(e.length!==t.length)return!1;for(r=n=0,i=e.lenth;0<=i?n<i:n>i;r=0<=i?++n:--n)if(e.readUInt8(r)!==t.readUInt8(r))return!1;return!0}}).call(this)}).call(this,r(11).Buffer)},function(e,t){(function(){var e;t.pow2=e=function(e){return e<31?1<<e:Math.pow(2,e)},t.U32MAX=e(32),t.rshift=function(e,t){return t<31?e>>t:Math.floor(e/Math.pow(2,t))},t.twos_compl=function(t,r){return t<0?e(r)-Math.abs(t):t},t.twos_compl_inv=function(t,r){return t-e(r)}}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c={}.hasOwnProperty;s=r(34),n=r(36).kb,a=r(82),r(95).SHA512,e=a.Decryptor,a.prng.native_rng,o=r(469).Packet,(u=r(386)).pack,u.box,r(62).make_esc,r(379),(f=r(50)).bufeq_secure,f.bufferify,i=function(t){function r(e){var t,i;this.pub=e.pub,i=e.priv_clear,t=e.priv,this.type=e.type,r.__super__.constructor.call(this),this.priv=null!=t?t:null!=i?{data:i,encryption:n.key_encryption.none}:void 0}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.tag=function(){return n.packet_tags.p3skb},r.prototype.tag=function(){return r.tag()},r.prototype.get_packet_body=function(){var e;return e={pub:this.pub,priv:this.priv},null!=this.type&&(e.type=this.type),e},r.prototype.lock=function(e,t){var r,i,o,a,u,f,c,l;f=s.findDeferral(arguments),r=e.asp,u=e.tsenc,a=e.passphrase_generation,(l=this,function(e){c=new s.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/keybase/packet/p3skb.iced",funcname:"P3SKB.lock"}),u.run({data:l.priv.data,progress_hook:null!=r?r.progress_hook():void 0},c.defer({assign_fn:function(){return o=arguments[0],i=arguments[1]},lineno:30})),c._fulfill()})(function(e){return function(){return null==o&&(e.priv.data=i,e.priv.encryption=n.key_encryption.triplesec_v3,null!=a&&(e.priv.passphrase_generation=a)),t(o)}}(this))},r.prototype.unlock=function(t,r){var i,o,a,u,f,c,l,h,p,d,_,y;d=s.findDeferral(arguments),o=t.asp,p=t.tsenc,c=t.passphrase_generation,(y=this,function(t){switch(y.priv.encryption){case n.key_encryption.triplesec_v3:case n.key_encryption.triplesec_v2:case n.key_encryption.triplesec_v1:u=new e({enc:p}),l=null!=o?o.progress_hook():void 0,function(e){_=new s.Deferrals(e,{parent:d,filename:"/Users/max/src/keybase/kbpgp/src/keybase/packet/p3skb.iced",funcname:"P3SKB.unlock"}),u.run({data:y.priv.data,progress_hook:l},_.defer({assign_fn:function(){return f=arguments[0],h=arguments[1]},lineno:42})),_._fulfill()}((function(){return u.scrub(),t(null==f?(y.priv.data=h,y.priv.encryption=n.key_encryption.none):null!=(i=c)&&null!=(a=y.priv.passphrase_generation)&&i!==a?f=new Error("Decryption failed, likely due to old passphrase (wanted v"+i+" but got v"+a+") ["+f.toString()+"]"):void 0)}));break;case n.key_encryption.none:return t();default:return t(f=new Error("Unknown key encryption type: "+k.encryption))}})((function(){return r(f)}))},r.alloc=function(e){var t,n;if(n=e.tag,t=e.body,n===r.tag())return new r(t);throw new Error("wrong tag found: "+n)},r.prototype.has_private=function(){return null!=this.priv},r.prototype.is_locked=function(){return this.priv.encryption!==n.key_encryption.none},r.prototype.get_private_data=function(){var e;return null!=(e=this.priv)?e.data:void 0},r.prototype.get_public_data=function(){return this.pub},r.prototype.get_key_type=function(){return this.type},r.prototype.is_p3skb=function(){return!0},r}(o),t.P3SKB=i}).call(this)},function(e,t,r){(function(){var e,n,i;r(50),i=r(386).seal,e=r(36).kb,n=function(){function t(){}return t.prototype.frame_packet=function(){return{tag:this.tag(),body:this.get_packet_body()}},t.prototype.frame_packet_armored=function(e){var t,r;return t=e.dohash,r=this.frame_packet(),i({obj:r,dohash:t}).toString("base64")},t.prototype.is_signature=function(){return!1},t.prototype.is_p3skb=function(){return!1},t.alloc=function(t){var n,i,o,s;return s=t.tag,n=t.body,i=null,o=function(){switch(s){case e.packet_tags.p3skb:return r(468).P3SKB.alloc({tag:s,body:n});case e.packet_tags.signature:return r(470).Signature.alloc({tag:s,body:n});default:return i=new Error("unknown packet tag: "+s),null}}(),[i,o]},t.prototype.unbox=function(e,t){return t(new Error("unbox() unimplemented for tag="+this.tag))},t}(),t.Packet=n}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c={}.hasOwnProperty;a=r(34),u=r(36),n=u.kb,e=u.openpgp,i=r(469).Packet,f=r(62).make_esc,s=r(471).eddsa,o=function(t){function r(e){var t;this.key=e.key,this.payload=e.payload,this.sig=e.sig,this.detached=e.detached,null!=(t=e.prefix)&&(this.prefix=t),r.__super__.constructor.call(this)}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.SIG_TYPE=n.public_key_algorithms.NACL_EDDSA,r.HASH_TYPE=e.hash_algorithms.SHA512,r.tag=function(){return n.packet_tags.signature},r.prototype.tag=function(){return r.tag()},r.prototype.get_packet_body=function(){var e,t,n;return n=r.SIG_TYPE,e=r.HASH_TYPE,t={key:this.key,payload:this.payload,sig:this.sig,detached:this.detached,sig_type:n,hash_type:e},null!=this.prefix&&(t.prefix=this.prefix),t},r.alloc=function(e){var t,n,i,o,s,a;if(a=e.tag,i=e.body,s=null,null!=(o=a!==r.tag()?new Error("wrong tag found: "+a):(t=i.hash_type)!==(n=r.HASH_TYPE)?new Error("Expected SHA512 (type "+n+"); got "+t):(t=i.sig_type)!==(n=r.SIG_TYPE)?o=new Error("Expected EDDSA (type "+n+"); got "+t):(s=new r(i),null)))throw o;return s},r.prototype.is_signature=function(){return!0},r.prototype.verify=function(e){var t,r,n,i,o,u,c;i=a.findDeferral(arguments),r=f(e,"verify"),t=null,u=s.Pair.parse_kb(this.key),t=u[0],n=u[1],(c=this,function(e){if(null!=t)return e();!function(e){o=new a.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/keybase/packet/signature.iced",funcname:"Signature.verify"}),n.verify_kb(c,r(o.defer({lineno:61}))),o._fulfill()}(e)})(function(r){return function(){return e(t,{keypair:n,payload:r.payload})}}(this))},r.prototype.unbox=function(e,t){var r,n,i,o,s;i=a.findDeferral(arguments),(s=this,function(e){o=new a.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/keybase/packet/signature.iced",funcname:"Signature.unbox"}),s.verify(o.defer({assign_fn:function(){return r=arguments[0],n=arguments[1]},lineno:67})),o._fulfill()})((function(){return t(r,n)}))},r.box=function(e,t){var n,i,o,s,u,c,l,h,p,d;p=a.findDeferral(arguments),o=e.km,l=e.prefix,c=e.payload,i=f(t,"@sign"),u=o.get_keypair(),n=!0,function(e){d=new a.Deferrals(e,{parent:p,filename:"/Users/max/src/keybase/kbpgp/src/keybase/packet/signature.iced",funcname:"Signature.box"}),u.sign_kb({payload:c,prefix:l,detached:n},i(d.defer({assign_fn:function(){return h=arguments[0]},lineno:76}))),d._fulfill()}((function(){return s=new r({key:u.ekid(),payload:c,sig:h,detached:n,prefix:l}),t(null,s)}))},r}(i),t.Signature=o,t.sign=o.sign}).call(this)},function(e,t,r){(function(){t.eddsa=r(387),t.dh=r(472)}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v={}.hasOwnProperty;_=r(34),h=r(718).box,f=r(94).SRF,y=r(36),i=y.kb,b=r(50),d=b.genseed,p=b.bufeq_fast,r(137).BaseKey,n=r(732).BaseKeyPair,m=r(387),m.b2u,m.u2b,o=r(387).Pair,c=i.public_key_algorithms.NACL_DH,l=function(e){return new Uint8Array(e)},g=function(t){return e.from(t)},u=function(){function t(e){this.key=e}return t.HEADER=e.from([i.kid.version,c]),t.TRAILER=e.from([i.kid.trailer]),t.LEN=t.HEADER.length+t.TRAILER.length+h.publicKeyLength,t.alloc_kb=function(e){var r;return r=null,[e.length!==t.LEN?new Error("bad key length"):p(e.slice(-1),t.TRAILER)?p(e.slice(0,2),t.HEADER)?(r=new t(e.slice(2,-1)),null):new Error("bad header"):new Error("bad trailing byte"),r]},t.prototype.serialize=function(){return this.key},t.prototype.nbits=function(){return 255},t.prototype.read_params=function(e){},t.prototype.encrypt=function(e,t){var r,n,i,o,s,a,u,c,p,d;c=_.findDeferral(arguments),o=e.plaintext,u=e.sender,i=e.nonce,n=a=null,function(e){if(null!=i)return e(i.length!==h.nonceLength?n=new Error("bad nonce; wrong length (wanted "+h.nonceLength+")"):void 0);!function(e){p=new _.Deferrals(e,{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/nacl/dh.iced",funcname:"Pub.encrypt"}),f().random_bytes(h.nonceLength,p.defer({assign_fn:function(){return i=arguments[0]},lineno:52})),p._fulfill()}(e)}((d=this,function(){return null==n&&(s=h(l(o),l(i),l(d.key),l(u.priv.key)),r=g(s),a={ciphertext:r,nonce:i}),t(n,a)}))},t}(),a=function(){function e(e){this.key=e}return e.prototype.alloc=function(t){var r,n;return r=n=null,t.length!==h.secretKeyLength?r=new Error("Bad secret key length"):n=new e(t),[r,n]},e.prototype.decrypt=function(e,t){var r,n,i,o,s;return r=e.ciphertext,i=e.nonce,s=e.sender,n=o=null,!1===(o=h.open(l(r),l(i),l(s.pub.key),l(this.key)))?(n=new Error("decryption failed"),o=null):o=g(o),t(n,o)},e}(),s=function(e){function t(e){var r,n;n=e.pub,r=e.priv,t.__super__.constructor.call(this,{pub:n,priv:r})}return function(e,t){for(var r in t)v.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.Pub=u,t.prototype.Pub=u,t.Priv=a,t.prototype.Priv=a,t.type=i.public_key_algorithms.NACL_DH,t.prototype.type=t.type,t.prototype.get_type=function(){return this.type},t.klass_name="DH",t.prototype.can_encrypt=function(){return!0},t.prototype.can_sign=function(){return!1},t.prototype.hash=function(){return this.serialize()},t.prototype.encrypt_kb=function(e,t){var r,n,i;return n=e.plaintext,i=e.sender,r=e.nonce,this.pub.encrypt({plaintext:n,sender:i,nonce:r},t)},t.prototype.decrypt_kb=function(e,t){var r,n,i,o,s,a,u,f;a=_.findDeferral(arguments),r=e.ciphertext,i=e.nonce,s=e.sender,n=null,(f=this,function(e){if(null==f.priv)return e(n=new Error("no secret key available"));!function(e){u=new _.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/nacl/dh.iced",funcname:"Pair.decrypt_kb"}),f.priv.decrypt({ciphertext:r,nonce:i,sender:s},u.defer({assign_fn:function(){return n=arguments[0],o=arguments[1]},lineno:125})),u._fulfill()}(e)})((function(){return t(n,o)}))},t.subkey_algo=function(e){return e&(C.key_flags.encrypt_comm|C.key_flags.encrypt_storage)?t:o},t.prototype.fulfills_flags=function(e){return(e&(C.key_flags.encrypt_comm|C.key_flags.encrypt_storage))===e},t.prototype.verify_unpad_and_check_hash=function(e,t){return e.sig,e.data,e.hasher,e.hash,t(new Error("verify_unpad_and_check_hash unsupported"))},t.prototype.pad_and_sign=function(e,t,r){return t.hasher,r(new Error("pad_and_sign unsupported"))},t.parse_kb=function(e){return n.parse_kb(t,e)},t.parse_sig=function(e){throw new Error("@parse_sig unsupported")},t.read_sig_from_buf=function(e){return[new Error("@read_sig_from_buf unsupported")]},t.generate=function(e,r){var n,i,o,s,f,c,p,y,b,m,v,w;v=_.findDeferral(arguments),b=e.server_half,y=e.seed,m=e.split,n={seed:y,split:m,len:h.secretKeyLength,server_half:b},function(e){w=new _.Deferrals(e,{parent:v,filename:"/Users/max/src/keybase/kbpgp/src/nacl/dh.iced",funcname:"Pair.generate"}),d(n,w.defer({assign_fn:function(){return i=arguments[0],b=arguments[1].server_half,y=arguments[1].seed},lineno:186})),w._fulfill()}((function(){var e;return c=null,null==i&&(e=h.keyPair.fromSecretKey(l(y)),p=e.secretKey,f=e.publicKey,s=new u(g(f)),o=new a(g(p)),c=new t({pub:s,priv:o})),r(i,c,b)}))},t}(n),t.DH=t.Pair=s}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c,l={}.hasOwnProperty;u=r(34),f=r(62).make_esc,i=r(474).burn,c=r(385),o=r(201).decode,e=r(36),n=r(475).SignatureEngineInterface,t.decode_sig=s=function(t){var r,n,i,s,a;return r=t.armored,n=(a=o(r))[0],i=a[1],s=e.openpgp.message_types,null==n&&i.type!==s.generic&&(n=new Error("wrong message type; expected a generic message; got "+i.type)),[n,i]},t.get_sig_body=a=function(e){var t,r,n,i,o;return t=e.armored,i=null,r=(o=s({armored:t}))[0],n=o[1],null==r&&(i=n.body),[r,i]},t.SignatureEngine=function(e){function t(e){this.km=e.km}return function(e,t){for(var r in t)l.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.get_km=function(){return this.km},t.prototype.box=function(e,t,r){var n,o,s,a,f,c,l;f=u.findDeferral(arguments),s=(null!=r?r:{}).prefix,o={type:"pgp"},(l=this,function(t){if(null!=s)return t(n=new Error("prefixes cannot be used with PGP"));!function(t){if(null==(a=l.km.find_signing_pgp_key()))return t(n=new Error("No signing key found"));!function(t){var r,s;c=new u.Deferrals(t,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/sigeng.iced",funcname:"SignatureEngine.box"}),i({msg:e,signing_key:a},c.defer({assign_fn:(r=o,s=o,function(){return n=arguments[0],r.pgp=arguments[1],s.raw=arguments[2]}),lineno:38})),c._fulfill()}((function(){return t(null==n?o.armored=o.pgp:void 0)}))}(t)})((function(){return t(n,o)}))},t.prototype.get_unverified_payload_from_raw_sig_body=function(e,t){var r,n,i,o,s,a,l,h,p,d;p=u.findDeferral(arguments),r=e.body,i=f(t,"get_payload_from_raw_sig_body"),h=null,a=new c.Message({}),function(e){d=new u.Deferrals(e,{parent:p,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/sigeng.iced",funcname:"SignatureEngine.get_unverified_payload_from_raw_sig_body"}),a.parse_and_inflate(r,i(d.defer({assign_fn:function(){return s=arguments[0]},lineno:49}))),d._fulfill()}((function(){return 1!==(l=s.length)||null==(o=s[0])?n=new Error("Got "+l+" literals; only wanted 1"):h=o.data,t(n,h)}))},t.prototype.get_body=function(e,t){var r;return t((r=a(e))[0],r[1])},t.prototype.decode=function(e,t){var r;return t((r=s({armored:e}))[0],r[1])},t.prototype.unbox=function(e,t,r){var n,i,o,s,a,l,h;a=u.findDeferral(arguments),null==r&&(r={}),i=f(t,"SignatureEngine::unbox"),(h=this,function(t){if("string"!=typeof e)return t();!function(t){l=new u.Deferrals(t,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/sigeng.iced",funcname:"SignatureEngine.unbox"}),h.decode(e,i(l.defer({assign_fn:function(){return e=arguments[0]},lineno:73}))),l._fulfill()}(t)})(function(f){return function(){r.keyfetch=f.km,r.strict=!0,n=new c.Message(r),l=new u.Deferrals((function(){l=new u.Deferrals((function(){return t(null,s,e.body)}),{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/sigeng.iced",funcname:"SignatureEngine.unbox"}),f._check_result(o,i(l.defer({assign_fn:function(){return s=arguments[0]},lineno:78}))),l._fulfill()}),{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/sigeng.iced",funcname:"SignatureEngine.unbox"}),n.parse_and_process({body:e.body},i(l.defer({assign_fn:function(){return o=arguments[0]},lineno:77}))),l._fulfill()}}(this))},t.prototype._check_result=function(e,t){var r,n,i,o,s,a,u;return n=s=null,1!==(o=e.length)||null==(i=e[0])?n=new Error("Expected only one pgp literal; got "+o):null==(a=null!=(u=i.get_data_signer())?u.sig:void 0)?n=new Error("Expected a signature on the payload message"):null==this.km.find_pgp_key(r=a.get_key_id())?n=new Error("Failed sanity check; didn't have a key for '"+r.toString("hex")+"'"):s=i.data,t(n,s)},t}(n)}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A,B,D,M,P,I,U={}.hasOwnProperty;x=r(34),E=r(62).make_esc,c=r(727).OnePassSignature,M=r(240),_=M.Signature,a=M.CreationTime,u=M.Issuer,s=r(726).Compressed,f=r(384).Literal,D=r(50).unix_time,d=r(94).SRF,B=r(82),P=r(356),w=P.export_key_pgp,k=P.get_cipher,A=B.util.scrub_buffer,y=B.WordArray,I=r(724),h=I.SEIPD,l=I.PKESK,o=r(36).openpgp,p=r(95).SHA512,v=r(201).encode,g=r(728),b=r(730),n=r(1322).BaseBurner,m=e.from(function(){var e,t;for(t=[],e=0;e<16;e++)t.push(0);return t}()),i=function(t){function r(e){var t,n,i,o,s;this.literals=e.literals,this.opts=e.opts,o=e.sign_with,n=e.encrypt_for,s=e.signing_key,i=e.encryption_key,t=e.asp,r.__super__.constructor.call(this,{sign_with:o,encrypt_for:n,signing_key:s,encryption_key:i,asp:t}),this.packets=[],this.opts||(this.opts={}),this.signed_payload=null}return function(e,t){for(var r in t)U.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype._frame_literals=function(t){var r,n,i,o,s,a,u;s=x.findDeferral(arguments),r=E(t,"Burner::_frame_literals"),o=[],(u=this,function(e){var t,f,c,l;c=u.literals,f=c.length,t=0,(l=function(e){var h;if(h=function(){return x.trampoline((function(){return++t,l(e)}))},!(t<f))return e();n=c[t],o.push(n.to_signature_payload()),a=new x.Deferrals((function(){return h(u.packets.push(i))}),{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._frame_literals"}),n.write(r(a.defer({assign_fn:function(){return i=arguments[0]},lineno:51}))),a._fulfill()})(e)})(function(r){return function(){return r.signed_payload=e.concat(o),t(null)}}(this))},r.prototype._sign=function(e){var t,r,n,i,s,f,l,h;f=x.findDeferral(arguments),t=E(e,"Burner::_sign'"),n=new c({sig_type:o.sig_types.binary_doc,hasher:p,sig_klass:this.signing_key.get_klass(),key_id:this.signing_key.get_key_id(),is_final:1}),function(e){l=new x.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._sign"}),n.write(t(l.defer({assign_fn:function(){return i=arguments[0]},lineno:67}))),l._fulfill()}((h=this,function(){var n;s=new _({type:o.sig_types.binary_doc,key:h.signing_key.key,hashed_subpackets:[new a((null!=(n=h.opts)?n.now:void 0)||D())],unhashed_subpackets:[new u(h.signing_key.get_key_id())]}),l=new x.Deferrals((function(){l=new x.Deferrals((function(){l=new x.Deferrals((function(){return h.packets.unshift(i),h.packets.push(r),e(null)}),{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._sign"}),h.asp.progress({what:"sign",i:1,total:1},t(l.defer({lineno:76}))),l._fulfill()}),{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._sign"}),s.write(h.signed_payload,t(l.defer({assign_fn:function(){return r=arguments[0]},lineno:75}))),l._fulfill()}),{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._sign"}),h.asp.progress({what:"sign",i:0,total:1},t(l.defer({lineno:74}))),l._fulfill()}))},r.prototype.collect_packets=function(){var t;return t=e.concat(this.packets),this.packets=[],t},r.prototype._compress=function(e){var t,r,n,i,a,u,f;a=x.findDeferral(arguments),t=E(e,"Burner::_compress"),r=this.collect_packets(),i=new s({algo:o.compression.zlib,inflated:r}),(f=this,function(e){u=new x.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._compress"}),f.asp.progress({what:"compress",i:0,total:1},t(u.defer({lineno:94}))),u._fulfill()})(function(r){return function(){u=new x.Deferrals((function(){u=new x.Deferrals((function(){return r.packets.push(n),e(null)}),{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._compress"}),r.asp.progress({what:"compress",i:1,total:1},t(u.defer({lineno:96}))),u._fulfill()}),{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._compress"}),i.write(t(u.defer({assign_fn:function(){return n=arguments[0]},lineno:95}))),u._fulfill()}}(this))},r.prototype._make_session_key=function(e){var t,r,n;t=x.findDeferral(arguments),this._cipher_algo=o.symmetric_key_algorithms.AES256,this._cipher_info=k(this._cipher_algo),(n=this,function(e){var i;r=new x.Deferrals(e,{parent:t,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._make_session_key"}),d().random_bytes(n._cipher_info.key_size,r.defer({assign_fn:(i=n,function(){return i._session_key=arguments[0]}),lineno:105})),r._fulfill()})(function(t){return function(){return t._cipher=new t._cipher_info.klass(y.from_buffer(t._session_key)),e(null)}}(this))},r.prototype.scrub=function(){if(null!=this._cipher&&this._cipher.scrub(),null!=this._session_key)return A(this._session_key)},r.prototype._encrypt_session_key_once=function(e,t){var r,n,i,o,s,a,u,f,c,h,p;c=x.findDeferral(arguments),n=E(t,"_encrypt_session_key_once"),s=w(this._cipher_algo,this._session_key),f=e.key,i=e.get_fingerprint(),(p=this,function(e){h=new x.Deferrals(e,{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._encrypt_session_key_once"}),p.asp.progress({what:"session key encrypt",i:0,total:1},n(h.defer({lineno:122}))),h._fulfill()})(function(p){return function(){h=new x.Deferrals((function(){h=new x.Deferrals((function(){!function(t){if(!p.opts.hide)return t(o=e.get_key_id());o=m,function(e){h=new x.Deferrals(e,{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._encrypt_session_key_once"}),p.asp.progress({what:"hide encryption",i:0,total:1},n(h.defer({lineno:127}))),h._fulfill()}((function(){!function(e){var t,i;h=new x.Deferrals(e,{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._encrypt_session_key_once"}),r.hide({max:null!=(t=p.opts.hide)?t.max:void 0,slosh:null!=(i=p.opts.hide)?i.slosh:void 0,key:f},n(h.defer({lineno:128}))),h._fulfill()}((function(){!function(e){h=new x.Deferrals(e,{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._encrypt_session_key_once"}),p.asp.progress({what:"hide encryption",i:1,total:1},n(h.defer({lineno:129}))),h._fulfill()}(t)}))}))}((function(){u=new l({crypto_type:f.type,key_id:o,ekey:r}),h=new x.Deferrals((function(){return t(null,a)}),{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._encrypt_session_key_once"}),u.write(n(h.defer({assign_fn:function(){return a=arguments[0]},lineno:137}))),h._fulfill()}))}),{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._encrypt_session_key_once"}),p.asp.progress({what:"session key encrypt",i:1,total:1},n(h.defer({lineno:124}))),h._fulfill()}),{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._encrypt_session_key_once"}),f.pad_and_encrypt(s,{fingerprint:i},n(h.defer({assign_fn:function(){return r=arguments[0]},lineno:123}))),h._fulfill()}}(this))},r.prototype._encrypt_session_key=function(e){var t,r,n,i,o,s;i=x.findDeferral(arguments),t=E(e,"_encrypt_session_key"),this._pkesks=[],(s=this,function(e){var a,u,f,c;f=s.encryption_keys,u=f.length,a=0,(c=function(e){var l;if(l=function(){return x.trampoline((function(){return++a,c(e)}))},!(a<u))return e();r=f[a],o=new x.Deferrals((function(){return l(s._pkesks.push(n))}),{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._encrypt_session_key"}),s._encrypt_session_key_once(r,t(o.defer({assign_fn:function(){return n=arguments[0]},lineno:146}))),o._fulfill()})(e)})((function(){return e(null)}))},r.prototype._encrypt_payload=function(e){var t,r,n,i,o,s,a,u;s=x.findDeferral(arguments),r=E(e,"Burner::_encrypt_payload"),i=this.collect_packets(),(u=this,function(e){a=new x.Deferrals(e,{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._encrypt_payload"}),d().random_bytes(u._cipher.blockSize,a.defer({assign_fn:function(){return o=arguments[0]},lineno:155})),a._fulfill()})(function(u){return function(){n=new h({}),t=u.asp.section("encrypt payload"),a=new x.Deferrals((function(){a=new x.Deferrals((function(){return A(i),u.packets=u._pkesks.concat([n]),e(null)}),{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._encrypt_payload"}),n.write(r(a.defer({assign_fn:function(){return n=arguments[0]},lineno:159}))),a._fulfill()}),{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._encrypt_payload"}),n.encrypt({cipher:u._cipher,plaintext:i,prefixrandom:o,asp:t},r(a.defer({lineno:158}))),a._fulfill()}}(this))},r.prototype._encrypt=function(e){var t,r,n,i;r=x.findDeferral(arguments),t=E(e,"Burner::_encrypt"),(i=this,function(e){n=new x.Deferrals(e,{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._encrypt"}),i._make_session_key(t(n.defer({lineno:168}))),n._fulfill()})(function(i){return function(){n=new x.Deferrals((function(){n=new x.Deferrals((function(){return e(null)}),{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._encrypt"}),i._encrypt_payload(t(n.defer({lineno:170}))),n._fulfill()}),{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner._encrypt"}),i._encrypt_session_key(t(n.defer({lineno:169}))),n._fulfill()}}(this))},r.prototype.scrub=function(){},r.prototype.burn=function(t){var r,n,i,o,s;i=x.findDeferral(arguments),r=E(t,"Burner::burn"),(s=this,function(e){o=new x.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner.burn"}),s._find_keys(r(o.defer({lineno:181}))),o._fulfill()})(function(s){return function(){o=new x.Deferrals((function(){!function(e){if(null==s.signing_key)return e();!function(e){o=new x.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner.burn"}),s._sign(r(o.defer({lineno:184}))),o._fulfill()}(e)}((function(){o=new x.Deferrals((function(){!function(e){if(null==s.encryption_keys)return e();!function(e){o=new x.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner.burn"}),s._encrypt(r(o.defer({lineno:187}))),o._fulfill()}(e)}((function(){return n=e.concat(s.packets),t(null,n)}))}),{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner.burn"}),s._compress(r(o.defer({lineno:185}))),o._fulfill()}))}),{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"Burner.burn"}),s._frame_literals(r(o.defer({lineno:182}))),o._fulfill()}}(this))},r}(n),t.Burner=i,t.make_simple_literals=S=function(t){return[new f({data:e.from(t),format:o.literal_formats.utf8,date:D()})]},t.clearsign=g.sign,t.detachsign=b.sign,t.burn=function(e,t){var r,n,s,a,u,f,c,l,h,p,d,_,y,g;y=x.findDeferral(arguments),l=e.msg,c=e.literals,d=e.sign_with,a=e.encrypt_for,_=e.signing_key,u=e.encryption_key,n=e.asp,h=e.opts,null!=l&&null==c&&(c=S(l)),s=new i({literals:c,sign_with:d,encrypt_for:a,signing_key:_,encryption_key:u,asp:n,opts:h}),function(e){g=new x.Deferrals(e,{parent:y,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/burner.iced",funcname:"burn"}),s.burn(g.defer({assign_fn:function(){return f=arguments[0],p=arguments[1]},lineno:247})),g._fulfill()}((function(){return s.scrub(),null!=p&&null==f&&(r=v(o.message_types.generic,p)),t(f,r,p)}))}}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i,o,s={}.hasOwnProperty;i=r(34),n=r(357).KeyFetcher,o=r(62).make_esc,e=new Error("not implemented"),t.KeyManagerInterface=function(t){function r(){}return function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.get_pgp_fingerprint=function(){return null},r.prototype.get_ekid=function(){return null},r.prototype.get_fp2=function(){return null},r.prototype.get_fp2_formatted=function(){return null},r.prototype.get_type=function(){return null},r.prototype.check_public_eq=function(e){return this.EUI},r.prototype.get_userids=function(){return[]},r.prototype.get_primary_keypair=function(){return null},r.prototype.get_all_pgp_key_materials=function(){return[]},r.prototype.get_userids_mark_primary=function(){return[]},r.prototype.make_sig_eng=function(){return null},r.prototype.export_pgp_public=function(e,t){return t(null,null)},r.prototype.export_pgp_private=function(e,t){return t(null,null)},r.prototype.export_public=function(t,r){return t.asp,t.regen,r(e,null)},r.prototype.export_private=function(t,r){return t.asp,t.passphrase,t.p3skb,r(e)},r.prototype.can_verify=function(){return!1},r.prototype.can_sign=function(){return!1},r.prototype.can_encrypt=function(){return!1},r.prototype.can_decrypt=function(){return!1},r.prototype.get_all_pgp_key_ids=function(){return[]},r.prototype.pgp_full_hash=function(e,t){return t(null,null)},r}(n),t.SignatureEngineInterface=function(){function t(e){this.km=e.km}return t.prototype.get_km=function(){return this.km},t.prototype.box=function(t,r){return r(e)},t.prototype.unbox=function(t,r){return r(e)},t.prototype.get_body=function(t,r){return t.armored,r(e)},t.prototype.get_unverified_payload_from_raw_sig_body=function(t,r){return t.body,r(e)},t.prototype.get_body_and_unverified_payload=function(e,t){var r,n,s,a,u,f,c;u=i.findDeferral(arguments),r=e.armored,s=o(t,"get_body_and_unverified_payload"),(c=this,function(e){f=new i.Deferrals(e,{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/kmi.iced",funcname:"SignatureEngineInterface.get_body_and_unverified_payload"}),c.get_body({armored:r},s(f.defer({assign_fn:function(){return n=arguments[0]},lineno:96}))),f._fulfill()})(function(e){return function(){f=new i.Deferrals((function(){return t(null,n,a)}),{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/kmi.iced",funcname:"SignatureEngineInterface.get_body_and_unverified_payload"}),e.get_unverified_payload_from_raw_sig_body({body:n},s(f.defer({assign_fn:function(){return a=arguments[0]},lineno:97}))),f._fulfill()}}(this))},t}()}).call(this)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A,B,D,M,P,I,U,T,R,F,C,O,z,L,N,j,K,q,G,H,V,Z={}.hasOwnProperty,W=function(e,t){for(var r in t)Z.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},Y=[].slice;P=r(34),j=function(){},g=r(379).RSA,o=r(381).ECDSA,b=r(95).SHA256,U=r(36),u=U.kb,i=U.openpgp,R=r(62).make_esc,D=r(459).errors,K=r(50),M=K.format_pgp_fingerprint_2,k=K.athrow,w=K.assert_no_nulls,n=K.ASP,I=K.katch,x=K.bufeq_secure,L=K.unix_time,E=K.bufferify,C=r(354).ops_to_keyflags,q=r(1311),h=q.Lifespan,v=q.Subkey,y=q.Primary,G=r(201),p=G.Message,B=G.encode,S=G.decode,A=G.decode_strict,O=r(461).parse,f=r(385).KeyBlock,F=r(1319),H=r(386),z=H.read_base64,N=H.unseal,d=r(468).P3SKB,(V=r(357)).KeyFetcher,V.KeyFetched,m=r(473).SignatureEngine,s=r(82).Encryptor,l=r(475).KeyManagerInterface,a=function(){function e(e){var t,r,n;for(this.primary=e.primary,this.subkeys=e.subkeys,this.userids=e.userids,this.key_manager=e.key_manager,this.packets=[],this.messages=[],this._allocate_key_packets(),t=0,r=(n=this.subkeys).length;t<r;t++)n[t].primary=this.primary;this._index_keys()}return e.prototype._index_keys=function(){var e,t,r,n,i;for(this._index={},i=[],t=0,r=(n=this._all_keys()).length;t<r;t++)e=n[t],i.push(this._index[this.ekid(e)]=e);return i},e.prototype.ekid=function(e){return this.key(e).ekid()},e.prototype._allocate_key_packets=function(){var e,t,r,n,i;for(this._v_allocate_key_packet(this.primary,{subkey:!1}),i=[],t=0,r=(n=this.subkeys).length;t<r;t++)e=n[t],i.push(this._v_allocate_key_packet(e,{subkey:!0}));return i},e.prototype._all_keys=function(){return[this.primary].concat(this.subkeys)},e.prototype.self_sign_primary=function(e,t){return this._v_self_sign_primary(e,t)},e.prototype.get_all_key_materials=function(){var e;return[[this.key(this.primary),!0]].concat(function(){var t,r,n,i;for(i=[],t=0,r=(n=this.subkeys).length;t<r;t++)e=n[t],i.push([this.key(e),!1]);return i}.call(this))},e.prototype.sign_subkeys=function(e,t){var r,n,i,o,s,a,u;s=P.findDeferral(arguments),o=e.time,r=e.asp,n=null,(u=this,function(e){var t,f,c,l;c=u.subkeys,f=c.length,t=0,(l=function(e){var h,p,d;return h=e,d=p=function(){return P.trampoline((function(){return++t,l(e)}))},t<f?(i=c[t],null!=n?p():void function(e){a=new P.Deferrals(e,{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"Engine.sign_subkeys"}),u._v_sign_subkey({asp:r,time:o,subkey:i},a.defer({assign_fn:function(){return n=arguments[0]},lineno:76})),a._fulfill()}(d)):h()})(e)})((function(){return t(n)}))},e.prototype.get_subkey_materials=function(){var e,t,r,n,i;for(i=[],t=0,r=(n=this.subkeys).length;t<r;t++)e=n[t],i.push(this.key(e));return i},e.prototype.is_locked=function(){var e,t,r,n,i;for(e=r=0,n=(i=this._all_keys()).length;r<n;e=++r)if(t=i[e],this.key(t).is_locked())return!0;return!1},e.prototype.has_private=function(){var e,t,r,n;for(t=0,r=(n=this._all_keys()).length;t<r;t++)if(e=n[t],this.key(e).has_private())return!0;return!1},e.prototype.sign=function(e,t){var r,n,i,o,s,a;o=P.findDeferral(arguments),r=e.asp,i=e.time,(a=this,function(e){s=new P.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"Engine.sign"}),a.self_sign_primary({asp:r,time:i},s.defer({assign_fn:function(){return n=arguments[0]},lineno:100})),s._fulfill()})(function(e){return function(){!function(t){if(null!=n)return t();!function(t){s=new P.Deferrals(t,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"Engine.sign"}),e.sign_subkeys({asp:r,time:i},s.defer({assign_fn:function(){return n=arguments[0]},lineno:101})),s._fulfill()}(t)}((function(){return t(n)}))}}(this))},e.prototype.check_eq=function(e){var t,r,n,i,o,s;if(t=null,this.primary.key.eq(e.primary.key))if(this.subkeys.length!==e.subkeys.length)t=new Error("different # of subkeys");else for(r=i=0,o=(s=this.subkeys).length;i<o;r=++i)n=s[r],null==this.err&&(n.key.eq(e.subkeys[r].key)||(t=new Error("subkey "+r+" doesn't match")));else t=new Error("Primary keys don't match");return t},e.prototype.merge_private=function(e){var t,r,n,i,o,s;if(null==(t=this._merge_private_primary(e)))for(r=i=0,o=(s=e.subkeys).length;i<o&&(n=s[r],null==(t=this._merge_private_subkey(n,r)));r=++i);return t},e.prototype._merge_private_primary=function(e){return this.key(e.primary).has_secret_key_material()?this._merge_1_private(this.primary,e.primary)?null:new Error("primary public key doesn't match private key"):null},e.prototype._merge_private_subkey=function(e,t){var r,n;return this.key(e).has_secret_key_material()?null==(r=this.ekid(e))?new Error("Subkey "+t+" is malformed"):null==(n=this._index[r])?new Error("Subkey "+t+" wasn't found in public key"):this._merge_1_private(n,e)?null:new Error("subkey "+t+" can't be merged"):null},e.prototype.unlock_keys=function(e,t){var r,n,i,o,s,a,u,f,c;u=P.findDeferral(arguments),r=e.asp,o=e.passphrase,a=e.tsenc,n=R(t,"Engine::unlock_keys"),(c=this,function(e){f=new P.Deferrals(e,{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"Engine.unlock_keys"}),c.key(c.primary).unlock({asp:r,tsenc:a,passphrase:o},n(f.defer({lineno:149}))),f._fulfill()})(function(e){return function(){var c,l,h;l=e.subkeys,c=l.length,i=0,(h=function(t){var p,d,_;return p=t,_=d=function(){return P.trampoline((function(){return++i,h(t)}))},i<c?(s=l[i],e.key(s).has_private()?void function(t){f=new P.Deferrals(t,{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"Engine.unlock_keys"}),e.key(s).unlock({asp:r,tsenc:a,passphrase:o},n(f.defer({lineno:151}))),f._fulfill()}(_):d()):p()})((function(){return t(null)}))}}(this))},e.prototype.export_keys_to_keyring=function(e){var t,r,n;return n=this,[(r=function(t,r){return{km:e,is_primary:r,key_wrapper:t,key_material:n.key(t),key:n.key(t).key}})(this.primary,!0)].concat(function(){var e,n,i,o;for(o=[],e=0,n=(i=this.subkeys).length;e<n;e++)t=i[e],o.push(r(t,!1));return o}.call(this))},e.prototype._merge_1_private=function(e,t){return!!x(this.ekid(e),this.ekid(t))&&(this.key(e).merge_private(this.key(t)),!0)},e.prototype.merge_subkey_omitting_revokes=function(e){var t,r;return t=e.ekid(),null!=(r=this._index[t])?r.overwrite_with_omitting_revokes(e):(this._index[t]=e,this.subkeys.push(e))},e.prototype.merge_public_omitting_revokes=function(e){return this.primary.overwrite_with_omitting_revokes(e.primary),this.merge_all_subkeys_omitting_revokes(e)},e.prototype.merge_all_subkeys_omitting_revokes=function(e){var t,r,n,i,o;for(o=[],r=0,n=(i=e.subkeys).length;r<n;r++)t=i[r],o.push(this.merge_subkey_omitting_revokes(t));return o},e.prototype.check_not_expired=function(e){var t,r,n;return n=e.subkey_material,(r=e.now)||(r=L()),null==(t=this.key(this.primary).check_not_expired({now:r}))&&(t=n.check_not_expired({now:r})),t},e}(),T=function(e){var t,r,n;return t=e.key_wrapper,n=e.time,r=t.lifespan,null!=n&&((r=r.copy()).generated=n),r},_=function(t){function r(e){var t,n,i,o;n=e.primary,i=e.subkeys,o=e.userids,this.user_attributes=e.user_attributes,t=e.key_manager,r.__super__.constructor.call(this,{primary:n,subkeys:i,userids:o,key_manager:t})}return W(r,t),r.prototype.key=function(e){return e._pgp},r.prototype._v_allocate_key_packet=function(e,t){if(null==e._pgp)return e._pgp=new F.KeyMaterial({key:e.key,timestamp:e.lifespan.generated,flags:e.flags,opts:t})},r.prototype._v_self_sign_primary=function(e,t){var r,n,i,o,s,a,u,f;a=P.findDeferral(arguments),s=e.time,e.asp,i=e.raw_payload,n=T({key_wrapper:this.primary,time:s}),(f=this,function(e){u=new P.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"PgpEngine._v_self_sign_primary"}),f.key(f.primary).self_sign_key({lifespan:n,userids:f.userids,raw_payload:i},u.defer({assign_fn:function(){return r=arguments[0],o=arguments[1]},lineno:241})),u._fulfill()})((function(){return t(r,o)}))},r.prototype._v_sign_subkey=function(e,t){var r,n,i,o,s,a,u;s=P.findDeferral(arguments),e.asp,i=e.subkey,o=e.time,n=T({key_wrapper:i,time:o}),(u=this,function(e){a=new P.Deferrals(e,{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"PgpEngine._v_sign_subkey"}),u.key(u.primary).sign_subkey({subkey:u.key(i),lifespan:n},a.defer({assign_fn:function(){return r=arguments[0]},lineno:248})),a._fulfill()})((function(){return t(r)}))},r.prototype.clear_psc=function(){var e,t,r,n,i,o,s,a;for(this.key(this.primary).clear_psc(),t=0,n=(o=this.userids).length;t<n;t++)o[t].clear_psc();for(a=[],r=0,i=(s=this.subkeys).length;r<i;r++)e=s[r],a.push(this.key(e).clear_psc());return a},r.prototype.set_passphrase=function(e){var t,r,n,i,o;for(this.primary.passphrase=e,o=[],r=0,n=(i=this.subkeys).length;r<n;r++)t=i[r],o.push(t.passphrase=e);return o},r.prototype._export_keys_to_binary=function(t){var r,n,i,o,s,a,u,f,c;for(r=[this.key(this.primary).export_framed(t)],o=0,a=(f=this.userids).length;o<a;o++)i=f[o],r.push(i.write(),i.get_framed_signature_output());for(t.subkey=!0,s=0,u=(c=this.subkeys).length;s<u;s++)n=c[s],r.push(this.key(n).export_framed(t),this.key(n).get_subkey_binding_signature_output());return w(r),e.concat(r)},r.prototype.export_keys=function(e){var t,r,n;return r=i.message_types,n=e.private?r.private_key:r.public_key,t=this._export_keys_to_binary(e),B(n,t)},r.prototype.export_to_p3skb=function(){var e,t;return t=this._export_keys_to_binary({private:!1}),e=this._export_keys_to_binary({private:!0}),new d({pub:t,priv_clear:e})},r.prototype.find_key=function(e){var t,r,n,i;for(r=0,n=(i=this._all_keys()).length;r<n;r++)if(t=i[r],x(this.key(t).get_key_id(),e))return t;return null},r.prototype.find_key_material=function(e){var t;return null!=(t=this.find_key(e))?this.key(t):null},r.prototype.get_key_id=function(){return this.key(this.primary).get_key_id()},r.prototype.get_short_key_id=function(){return this.key(this.primary).get_short_key_id()},r.prototype.get_fingerprint=function(){return this.key(this.primary).get_fingerprint()},r.prototype.get_ekid=function(){return this.key(this.primary).ekid()},r.prototype.get_all_key_ids=function(){var e,t,r,n,i;for(i=[],t=0,r=(n=this._all_keys()).length;t<r;t++)e=n[t],i.push(this.key(e).get_key_id());return i},r.prototype.get_designated_revocations=function(){return this.key(this.primary).get_designated_revocations()},r.prototype.validity_check=function(e){var t,r,n,i,o;n=P.findDeferral(arguments),t=null,(o=this,function(e){var s,a,u,f;u=o._all_keys(),a=u.length,s=0,(f=function(e){var c,l;if(c=e,l=function(){return P.trampoline((function(){return++s,f(e)}))},!(s<a))return c();r=u[s],i=new P.Deferrals((function(){!function(e){if(null==t)return e();c()}(l)}),{parent:n,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"PgpEngine.validity_check"}),o.key(r).validity_check(i.defer({assign_fn:function(){return t=arguments[0]},lineno:328})),i._fulfill()})(e)})((function(){return e(t)}))},r.prototype.find_best_key=function(e,t){var r,n,i,o,s,a,u;for(null==t&&(t=!1),r=null,u=this,n=function(r){var n,i,o,s;return i=(n=u.key(r)).fulfills_flags(e)||(r.flags&e)===e,o=!t||n.has_private(),s=!n.is_revoked(),i&&o&&s},o=0,s=(a=this.subkeys).length;o<s;o++)n(i=a[o])&&(null==r?r=i:this.key(i).is_preferable_to(this.key(r))&&(r=i));return null==r&&n(this.primary)&&(r=this.primary),null!=r?this.key(r):null},r.prototype.fetch=function(e,t,r){var n,i,o,s,a,u,f,c,l,h;for(i=C(t),n=s=null,s=null,u=null,o=f=0,c=e.length;f<c;o=++f)a=e[o],null==s&&null!=(s=this.find_key(a))&&(u=o);return null==s?n=new Error("No keys match the given key IDs"):this.key(s).is_revoked()||this.is_revoked()?(n=new D.RevokedKeyError).km=this:this.key(s).fulfills_flags(i)?(null!=(l=this.key(s))&&null!=(h=l.key)?h.can_perform(t):void 0)?this.key(s):n=new Error("can't peform the operation -- maybe no secret key material (op_mask="+t+")"):n=new Error("We don't have a key for the requested PGP ops (flags = "+i+")"),r(n,this.key_manager,u)},r.prototype.is_revoked=function(){return this.key(this.primary).is_revoked()},r}(a),c=function(t){function r(e){var t;this.primary=e.primary,this.subkeys=e.subkeys,this.userids=e.userids,this.armored_pgp_public=e.armored_pgp_public,this.armored_pgp_private=e.armored_pgp_private,this.user_attributes=e.user_attributes,t=e.signed,this.pgp=new _({primary:this.primary,subkeys:this.subkeys,userids:this.userids,user_attributes:this.user_attributes,key_manager:this}),this.engines=[this.pgp],this._signed=null!=t&&t,this.p3skb=null}return W(r,t),r.generate=function(e,t){var s,a,f,c,l,p,d,_,b,m,w,x,E,S,A,B,D,M,I,U,T,C,O,z,N,K,q,G,H,V;for(j,q=P.findDeferral(arguments),c=e.asp,N=e.userid,K=e.userids,D=e.primary,C=e.subkeys,d=e.ecc,U=e.sub_flags,B=e.nsubs,M=e.primary_flags,A=e.nbits,m=e.expire_in,E=e.generated,p=e.curve_name,c=n.make(c),s=i.key_flags,a=(f=s.sign_data|s.encrypt_comm|s.encrypt_storage|s.auth)|s.certify_keys,D||(D={}),D.flags||(D.flags=M||a),D.expire_in||(D.expire_in=(null!=m?m.primary:void 0)||u.key_defaults.primary.expire_in),D.algo||(D.algo=d?o:g),D.nbits||(D.nbits=A||u.key_defaults.primary.nbits[D.algo.klass_name]),p&&(D.curve_name=p),null!=B&&null==U&&(U=function(){var e,t;for(t=[],S=e=0;0<=B?e<B:e>B;S=0<=B?++e:--e)t.push(f);return t}()),C||(C=function(){var e,t,r;for(r=[],e=0,t=U.length;e<t;e++)w=U[e],r.push({flags:w});return r}()),H=0,V=C.length;H<V;H++)(T=C[H]).expire_in||(T.expire_in=(null!=m?m.subkey:void 0)||u.key_defaults.sub.expire_in),T.flags||(T.flags=f),T.algo||(T.algo=D.algo.subkey_algo(T.flags)),T.nbits||(T.nbits=A||u.key_defaults.sub.nbits[T.algo.klass_name]);E||(E=L()),b=R(t,"KeyManager::generate"),null!=N&&(K=[N]),function(e){if(null!=K&&Array.isArray(K))return e(K=function(){var e,t,r;for(r=[],e=0,t=K.length;e<t;e++)z=K[e],r.push(new F.UserID(z));return r}());_=new Error("Need either 'userid' or 'userids' specified as an array"),function(e){G=new P.Deferrals(e,{parent:q,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.generate"}),k(_,b(G.defer({lineno:474}))),G._fulfill()}(e)}((function(){x=function(e,t){var r,n,i,o,s,a,u,f,l,p,d;p=P.findDeferral(arguments),i=e.klass,f=e.section,a=e.params,u=e.primary,c.section(f),function(e){d=new P.Deferrals(e,{parent:p,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced"}),a.algo.generate({asp:c,nbits:a.nbits,curve_name:a.curve_name},d.defer({assign_fn:function(){return r=arguments[0],n=arguments[1]},lineno:478})),d._fulfill()}((function(){return null==r&&(s=a.generated||E,o=new h({generated:s,expire_in:a.expire_in}),l=new i({key:n,lifespan:o,flags:a.flags,primary:u})),t(r,l)}))},G=new P.Deferrals((function(){var e,n,i;O=[],e=(n=C).length,S=0,(i=function(t){var r;if(r=function(){return P.trampoline((function(){return++S,i(t)}))},!(S<e))return t();T=n[S],G=new P.Deferrals((function(){return r(O.push(I))}),{parent:q,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.generate"}),x({klass:v,section:"subkey "+(S+1),params:T,primary:D},b(G.defer({assign_fn:function(){return I=arguments[0]},lineno:488}))),G._fulfill()})((function(){return l=new r({primary:D,subkeys:O,userids:K}),t(null,l)}))}),{parent:q,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.generate"}),x({klass:y,section:"primary",params:D},b(G.defer({assign_fn:function(){return D=arguments[0]},lineno:485}))),G._fulfill()}))},r.generate_rsa=function(e,t){var n,o,s,a,u,f;return o=e.asp,u=e.userid,f=e.userids,s={flags:(n=i.key_flags).certify_keys,nbits:4096},a=[{flags:n.encrypt_storage|n.encrypt_comm,nbits:2048},{flags:n.sign_data|n.auth,nbits:2048}],r.generate({asp:o,userid:u,userids:f,primary:s,subkeys:a},t)},r.generate_ecc=function(e,t){var n,s,a,u,f,c,l;return s=e.asp,c=e.userid,l=e.userids,a=e.generated,u={flags:(n=i.key_flags).certify_keys,nbits:384,algo:o},f=[{flags:n.encrypt_storage|n.encrypt_comm,nbits:256},{flags:n.sign_data|n.auth,nbits:256}],r.generate({asp:s,userid:c,userids:l,primary:u,subkeys:f,generated:a},t)},r.prototype.set_enc=function(e){return this.tsenc=e},r.import_from_armored_pgp=function(e,t){var o,s,a,u,f,c,l,h,p,d,_,y,g,b;_=P.findDeferral(arguments),o=e.armored,h=e.raw,a=e.binary,s=e.asp,c=e.opts,u=null,null==(f=a)&&(h||(h=o),s=n.make(s),d=null,p=null,g=((null!=c?c.decode_strict:void 0)?A:S)(h),u=g[0],f=g[1],null==u&&(b=f.type)!==i.message_types.public_key&&b!==i.message_types.private_key&&(u=new Error("Wanted a public or private key; got: "+f.type))),function(e){if(null!=u)return e();!function(e){y=new P.Deferrals(e,{parent:_,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.import_from_armored_pgp"}),r.import_from_pgp_message({msg:f,asp:s,opts:c},y.defer({assign_fn:function(){return u=arguments[0],p=arguments[1],d=arguments[2],l=arguments[3]},lineno:567})),y._fulfill()}(e)}((function(){!function(e){if(null!=u)return e();!function(e){y=new P.Deferrals(e,{parent:_,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.import_from_armored_pgp"}),p.simple_unlock({},y.defer({assign_fn:function(){return u=arguments[0]},lineno:573})),y._fulfill()}(e)}((function(){return t(u,p,d,l)}))}))},r.prototype.simple_unlock=function(e,t){var r,n,i,o;n=P.findDeferral(arguments),r=null,(o=this,function(e){if(!o.has_pgp_private()||o.is_pgp_locked())return e();!function(e){i=new P.Deferrals(e,{parent:n,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.simple_unlock"}),o.unlock_pgp({},i.defer({assign_fn:function(){return r=arguments[0]},lineno:585})),i._fulfill()}(e)})((function(){return t(r)}))},r.import_from_p3skb=function(e,t){var o,s,a,u,f,c,l,h,_,y,g,b,m,v,w;m=P.findDeferral(arguments),y=e.raw,o=e.armored,s=e.asp,c=e.no_check_keys,g=e.time_travel,l=e.now,o||(o=y),s=n.make(s),u=null,b=null,w=I((function(){return d.alloc(N(z(o)))})),a=w[0],_=w[1],function(e){if(null!=a)return e();f=new p({body:_.pub,type:i.message_types.public_key}),h={no_check_keys:c,time_travel:g,now:l},function(e){v=new P.Deferrals(e,{parent:m,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.import_from_p3skb"}),r.import_from_pgp_message({msg:f,asp:s,opts:h},v.defer({assign_fn:function(){return a=arguments[0],u=arguments[1],b=arguments[2]},lineno:601})),v._fulfill()}((function(){return e(null!=u?u.p3skb=_:void 0)}))}((function(){return t(a,u,b)}))},r.prototype.unlock_p3skb=function(t,o){var a,u,f,c,l,h,d,_,y,g,b,m,v,w;m=P.findDeferral(arguments),a=t.asp,b=t.tsenc,_=t.passphrase,y=t.passphrase_generation,l=t.no_check_keys,g=t.time_travel,h=t.now,a=n.make(a),null==b&&null!=_&&(b=new s({key:E(_)})),(w=this,function(e){v=new P.Deferrals(e,{parent:m,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.unlock_p3skb"}),w.p3skb.unlock({tsenc:b,asp:a,passphrase_generation:y},v.defer({assign_fn:function(){return u=arguments[0]},lineno:611})),v._fulfill()})(function(t){return function(){!function(e){if(null!=u)return e();c=new p({body:t.p3skb.priv.data,type:i.message_types.private_key}),d={no_check_keys:l,time_travel:g,now:h},function(e){v=new P.Deferrals(e,{parent:m,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.unlock_p3skb"}),r.import_from_pgp_message({msg:c,asp:a,opts:d},v.defer({assign_fn:function(){return u=arguments[0],f=arguments[1]},lineno:615})),v._fulfill()}(e)}((function(){null==u&&(u=t.pgp.merge_private(f.pgp)),function(r){if(null!=u)return r();_=e.from([]),function(e){v=new P.Deferrals(e,{parent:m,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.unlock_p3skb"}),t.unlock_pgp({passphrase:_},v.defer({assign_fn:function(){return u=arguments[0]},lineno:624})),v._fulfill()}(r)}((function(){return o(u)}))}))}}(this))},r.import_from_pgp_message=function(e,t){var i,o,s,a,u,c,l,h,p,d,_,g;d=P.findDeferral(arguments),c=e.msg,i=e.asp,l=e.opts,i=n.make(i),o=null,p=null,null==s&&(g=O(c.body),s=g[0],h=g[1]),function(e){if(null!=s)return e();u=new f(h,l),function(e){_=new P.Deferrals(e,{parent:d,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.import_from_pgp_message"}),u.process(_.defer({assign_fn:function(){return s=arguments[0]},lineno:639})),_._fulfill()}((function(){return e(p=u.warnings)}))}((function(){null==s&&((o=new r({primary:r._wrap_pgp(y,u.primary),subkeys:function(){var e,t,n,i;for(i=[],e=0,t=(n=u.subkeys).length;e<t;e++)a=n[e],i.push(r._wrap_pgp(v,a));return i}(),user_attributes:u.user_attributes,userids:u.userids,signed:!0})).has_pgp_private()?o.armored_pgp_private=c.raw():o.armored_pgp_public=c.raw()),function(e){if(null!=s)return e();!function(e){_=new P.Deferrals(e,{parent:d,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.import_from_pgp_message"}),o.check_pgp_validity(_.defer({assign_fn:function(){return s=arguments[0]},lineno:657})),_._fulfill()}(e)}((function(){return t(s,o,p,h)}))}))},r.prototype.merge_pgp_private=function(e,t){var i,o,s,a,u,f,c,l,h,p;l=P.findDeferral(arguments),i=e.armored,c=e.raw,o=e.asp,f=e.import_opts,o=n.make(o),u=R(t,"merge_pgp_private"),function(e){h=new P.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.merge_pgp_private"}),r.import_from_armored_pgp({armored:i,raw:c,asp:o,opts:f},u(h.defer({assign_fn:function(){return s=arguments[0]},lineno:668}))),h._fulfill()}((p=this,function(){a=p.pgp.merge_private(s.pgp),function(e){if(null!=a)return e();!function(e){if(!p.has_pgp_private())return e(a=new Error("no private key material found after merge"));!function(e){h=new P.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.merge_pgp_private"}),p.simple_unlock({},u(h.defer({lineno:675}))),h._fulfill()}(e)}(e)}((function(){return t(a)}))}))},r.prototype.check_pgp_public_eq=function(e){return this.pgp.check_eq(e.pgp)},r.prototype.unlock_pgp=function(e,t){var r,n,i,o,s;i=P.findDeferral(arguments),n=e.passphrase,(s=this,function(e){o=new P.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.unlock_pgp"}),s.pgp.unlock_keys({passphrase:n},o.defer({assign_fn:function(){return r=arguments[0]},lineno:688})),o._fulfill()})((function(){return t(r)}))},r.prototype.is_pgp_locked=function(){return this.pgp.is_locked()},r.prototype.is_keybase_locked=function(){return this.keybase.is_locked()},r.prototype.has_pgp_private=function(){return this.pgp.has_private()},r.prototype.has_p3skb_private=function(){var e;return null!=(e=this.p3skb)?e.has_private():void 0},r.prototype.has_keybase_private=function(){return this.keybase.has_private()},r.prototype.is_p3skb_locked=function(){var e;return null!=(e=this.p3skb)?e.is_locked():void 0},r.prototype.unlock_keybase=function(e,t){var r,i,o,s,a,u;s=P.findDeferral(arguments),o=e.tsenc,r=e.asp,r=n.make(r),(u=this,function(e){a=new P.Deferrals(e,{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.unlock_keybase"}),u.keybase.unlock_keys({tsenc:o,asp:r},a.defer({assign_fn:function(){return i=arguments[0]},lineno:706})),a._fulfill()})((function(){return t(i)}))},r.prototype.export_private_to_server=function(e,t){var r,i,o,s,a,u,f,c,l;f=P.findDeferral(arguments),u=e.tsenc,r=e.asp,s=e.passphrase_generation,r=n.make(r),i=a=null,(l=this,function(e){if(null!=(i=l._assert_signed()))return e();o=l.pgp.export_to_p3skb(),function(e){c=new P.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.export_private_to_server"}),o.lock({tsenc:u,asp:r,passphrase_generation:s},c.defer({assign_fn:function(){return i=arguments[0]},lineno:719})),c._fulfill()}(e)})((function(){return null==i&&(a=o.frame_packet_armored({dohash:!0})),t(i,a)}))},r.prototype.export_pgp_private_to_client=function(e,t){var r,n,i,o;return i=e.passphrase,o=e.regen,r=null,null!=i&&(i=E(i)),(o||null==(n=this.armored_pgp_private))&&null==(r=this._assert_signed())&&(this.armored_pgp_private=n=this.pgp.export_keys({private:!0,passphrase:i})),t(r,n)},r.prototype.export_pgp_private=function(){var e;return e=1<=arguments.length?Y.call(arguments,0):[],this.export_pgp_private_to_client.apply(this,e)},r.prototype.export_pgp_public=function(e,t){var r,n;return r=null,(e.regen||null==(n=this.armored_pgp_public))&&null==(r=this._assert_signed())&&(this.armored_pgp_public=n=this.pgp.export_keys({private:!1})),t(r,n)},r.prototype.export_public=function(e,t){var r,n,i,o,s,a,u,f;s=P.findDeferral(arguments),r=(u=null!=e?e:{}).asp,o=u.regen,null==t&&(t=null),(f=this,function(e){a=new P.Deferrals(e,{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.export_public"}),f.export_pgp_public({asp:r,regen:o},a.defer({assign_fn:function(){return n=arguments[0],i=arguments[1]},lineno:753})),a._fulfill()})((function(){return t(n,i)}))},r.prototype.export_private=function(e,t){var r,n,i,o,a,u,f,c,l,h,p;l=P.findDeferral(arguments),o=e.passphrase,i=e.p3skb,r=e.asp,u=e.regen,a=e.passphrase_generation,(p=this,function(e){i?(c=new s({key:E(o)}),function(e){h=new P.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.export_private"}),p.export_private_to_server({tsenc:c,asp:r,passphrase_generation:a},h.defer({assign_fn:function(){return n=arguments[0],f=arguments[1]},lineno:761})),h._fulfill()}(e)):function(e){h=new P.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.export_private"}),p.export_pgp_private_to_client({passphrase:o,asp:r,regen:u},h.defer({assign_fn:function(){return n=arguments[0],f=arguments[1]},lineno:763})),h._fulfill()}(e)})((function(){return t(n,f)}))},r.prototype.pgp_full_hash=function(t,r){var n,i,o,s,a;o=P.findDeferral(arguments),i=R(r,"get_pgp_full_hash"),(a=this,function(e){s=new P.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.pgp_full_hash"}),a.export_pgp_public(t,i(s.defer({assign_fn:function(){return n=arguments[0]},lineno:770}))),s._fulfill()})((function(){return r(null,new b(e.from(n.trim())).toString("hex"))}))},r.prototype.sign_pgp=function(e,t){var r,n;return r=e.asp,n=e.time,this.pgp.sign({asp:r,time:n},t)},r.prototype.sign=function(e,t){var r,i,o,s,a,u;s=P.findDeferral(arguments),r=e.asp,o=e.time,(r=n.make(r)).section("sign"),r.progress({what:"sign PGP",total:1,i:0}),(u=this,function(e){a=new P.Deferrals(e,{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.sign"}),u.sign_pgp({asp:r,time:o},a.defer({assign_fn:function(){return i=arguments[0]},lineno:783})),a._fulfill()})(function(e){return function(){return r.progress({what:"sign PGP",total:1,i:1}),null==i&&(e._signed=!0),t(i)}}(this))},r.prototype.get_userids=function(){return this.userids},r.prototype.get_userids_mark_primary=function(){var e,t,r,n,i,o,s,a,u,f,c,l,h,p,d,_,y;for(n=null,i=null,h={},o=function(e,t){return null==e&&null==t?null:null==e?t:null==t?e:e>t?e:t},t=d=0,_=(y=this.userids).length;d<_;t=++d)null!=(p=y[t])&&(l=p.utf8(),a=p.time_primary_pair(),s={userid:p,pair:a,i:t},e=!1,null!=(u=h[l])?(f=o(u.pair[1],a[1]),(null==u.pair[0]||a[0]&&u.pair[0]<a[0])&&(e=!0)):(f=a[1],e=!0),e&&(h[l]=s),null!=f&&(null==n||n<f)&&(i=l,n=f));for(r in null!=i&&(h[i].userid.primary=!0),c=[],h)(s=h[r]).userid.most_recent_sig=s.pair[0],c.push(s.userid);return c},r.prototype.fetch=function(e,t,r){return this.pgp.fetch(e,t,r)},r.prototype.find_pgp_key=function(e){return this.pgp.find_key(e)},r.prototype.find_pgp_key_material=function(e){return this.pgp.find_key_material(e)},r.prototype.find_best_pgp_key=function(e,t){return this.pgp.find_best_key(e,t)},r.prototype.find_signing_pgp_key=function(){return this.find_best_pgp_key(i.key_flags.sign_data,!0)},r.prototype.find_verifying_pgp_key=function(){return this.find_best_pgp_key(i.key_flags.sign_data,!1)},r.prototype.find_crypt_pgp_key=function(e){return null==e&&(e=!1),this.find_best_pgp_key(i.key_flags.encrypt_comm,e)},r.prototype.can_verify=function(){return null!=this.find_verifying_pgp_key()},r.prototype.can_sign=function(){return null!=this.find_signing_pgp_key()},r.prototype.can_encrypt=function(){return null!=this.find_crypt_pgp_key(!1)},r.prototype.can_decrypt=function(){return null!=this.find_crypt_pgp_key(!0)},r.prototype.is_pgp_revoked=function(){return this.pgp.is_revoked()},r.prototype.get_pgp_designated_revocations=function(){return this.pgp.get_designated_revocations()},r.prototype.get_primary_keypair=function(){return this.primary.key},r.prototype.get_all_pgp_key_materials=function(){return this.pgp.get_all_key_materials()},r.prototype.export_pgp_keys_to_keyring=function(){return this.pgp.export_keys_to_keyring(this)},r.prototype.get_pgp_key_id=function(){return this.pgp.get_key_id()},r.prototype.get_pgp_short_key_id=function(){return this.pgp.get_short_key_id()},r.prototype.get_pgp_fingerprint=function(){return this.pgp.get_fingerprint()},r.prototype.get_pgp_fingerprint_str=function(){var e;return null!=(e=this.get_pgp_fingerprint())?e.toString("hex"):void 0},r.prototype.get_ekid=function(){return this.pgp.get_ekid()},r.prototype.clear_pgp_internal_sigs=function(){return this.pgp.clear_psc()},r.prototype.get_all_pgp_key_ids=function(){return this.pgp.get_all_key_ids()},r.prototype.get_ekid_b64_str=function(){var e;return null!=(e=this.get_ekid())?base64u.encode(e):null},r.prototype.get_fp2=function(){return this.get_pgp_fingerprint()},r.prototype.get_fp2_formatted=function(e){var t;return null!=(t=this.get_fp2())?M(t,e):null},r.prototype.get_type=function(){return"pgp"},r.prototype.check_pgp_validity=function(e){return this.pgp.validity_check(e)},r.prototype.make_sig_eng=function(){return new m({km:this})},r.prototype._apply_to_engines=function(e,t){var r,n,i,o,s,a,u;s=P.findDeferral(arguments),r=e.args,o=e.meth,i=null,(u=this,function(e){var t,f,c,l;c=u.engines,f=c.length,t=0,(l=function(e){var u,h,p;return u=e,p=h=function(){return P.trampoline((function(){return++t,l(e)}))},t<f?(n=c[t],i?h():void function(e){a=new P.Deferrals(e,{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager._apply_to_engines"}),o.call(n,r,a.defer({assign_fn:function(){return i=arguments[0]},lineno:923})),a._fulfill()}(p)):u()})(e)})((function(){return t(i)}))},r.prototype._assert_signed=function(){return this._signed?null:new Error("need to sign before export")},r._wrap_pgp=function(e,t){var r;return new e({key:t.key,lifespan:new h({generated:t.timestamp,expire_in:null!=(r=t.get_expire_time())?r.expire_in:void 0}),_pgp:t})},r.prototype.merge_all_subkeys_omitting_revokes=function(e){if(null!=this.pgp&&null!=e.pgp)return this.pgp.merge_all_subkeys_omitting_revokes(e.pgp)},r.prototype.pgp_check_not_expired=function(e){var t,r;return r=e.subkey_material,t=e.now,this.pgp.check_not_expired({subkey_material:r,now:t})},r.prototype.merge_public_omitting_revokes=function(e){if(null!=this.pgp&&null!=e.pgp)return this.pgp.merge_public_omitting_revokes(e.pgp)},r.prototype.merge_userids=function(e){var t,r,n,i,o,s,a,u,f;if(null!=this.pgp&&null!=e.pgp){for(r={},n=0,o=(a=this.userids).length;n<o;n++)r[a[n].utf8()]=!0;for(f=[],i=0,s=(u=e.get_userids_mark_primary()).length;i<s;i++)(t=u[i]).utf8()in r?f.push(void 0):f.push(this.userids.push(t));return f}},r.prototype.merge_everything=function(e){return this.merge_public_omitting_revokes(e),this.merge_userids(e)},r.prototype.find_verified_designated_revoke=function(e,t){var r,n,i,o,s,a,u,f;return j,u=P.findDeferral(arguments),null==this.pgp?t():null==(a=this.get_pgp_designated_revocations())||0===a.length?t():void function(c){var l,h,p,d;h=(p=a).length,l=0,(d=function(a){var c,_;if(_=c=function(){return P.trampoline((function(){return++l,d(a)}))},!(l<h))return a();s=p[l],n=s.get_issuer_key_id(),f=new P.Deferrals((function(){!function(e){if(!r&&null!=o&&null!=o.pgp)return e();c()}((function(){i=o.find_pgp_key_material(n),function(e){if(null!=i)return e();c()}((function(){f=new P.Deferrals((function(){return r?_():t(s)}),{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.find_verified_designated_revoke"}),s._third_party_verify(i,f.defer({assign_fn:function(){return r=arguments[0]},lineno:1003})),f._fulfill()}))}))}),{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/keymanager.iced",funcname:"KeyManager.find_verified_designated_revoke"}),e.fetch([n],U.ops.verify,f.defer({assign_fn:function(){return r=arguments[0],o=arguments[1],arguments[2]},lineno:995})),f._fulfill()})(c)}((function(){return t()}))},r}(l),t.KeyManager=c,t.opkts=F}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p=[].slice;n=r(452),o=function(e,t,r,i,o){var s,a,u,c;for(s in u={},i)c=i[s],u[s]=c;return u[n.lineno]=null!=t?t[n.lineno]:void 0,(a=function(){var n,i,s;return n=1<=arguments.length?p.call(arguments,0):[],null!=t&&null!=(s=t.assign_fn)&&s.apply(null,n),e?(i=e,o||(e=null),i._fulfill(r,u)):f("overused deferral at "+h(u))})[n.trace]=u,a},l=0,a=function(e){return++l%e==0&&(l=0,!0)},c=null,h=function(e){return(e[n.funcname]||"<anonymous>")+" ("+e[n.filename]+":"+(e[n.lineno]+1)+")"},f=function(e){return"undefined"!=typeof console&&null!==console?console.error("ICED warning: "+e):void 0},t.trampoline=u=function(t){return a(500)?null!=(null!=e?e.nextTick:void 0)?e.nextTick(t):setTimeout(t):t()},t.Deferrals=function(){function e(e,t){this.trace=t,this.continuation=e,this.count=1,this.ret=null}return e.prototype._call=function(e){var t;return this.continuation?(c=e,t=this.continuation,this.continuation=null,t(this.ret)):f("Entered dead await at "+h(e))},e.prototype._fulfill=function(e,t){if(!(--this.count>0))return u((r=this,function(){return r._call(t)}));var r},e.prototype.defer=function(e){return this.count++,this,o(this,e,null,this.trace)},e}(),t.findDeferral=function(e){var t,r,i;for(r=0,i=e.length;r<i;r++)if(null!=(t=e[r])?t[n.trace]:void 0)return t;return null},t.Rendezvous=function(){var e;function t(){this.completed=[],this.waiters=[],this.defer_id=0}return e=function(){function e(e,t,r){this.rv=e,this.id=t,this.multi=r}return e.prototype.defer=function(e){return this.rv._defer_with_id(this.id,e,this.multi)},e}(),t.prototype.wait=function(e){return this.completed.length?e(this.completed.shift()):this.waiters.push(e)},t.prototype.defer=function(e){var t;return t=this.defer_id++,this._defer_with_id(t,e)},t.prototype.id=function(t,r){return new e(this,t,r=!!r)},t.prototype._fulfill=function(e,t){return this.waiters.length?this.waiters.shift()(e):this.completed.push(e)},t.prototype._defer_with_id=function(e,t,r){return this.count++,o(this,t,e,{},r)},t}(),t.stackWalk=s=function(e){var t,r,i,o;for(r=[],i=e?e[n.trace]:c;i;)t="   at "+h(i),r.push(t),i=null!=i&&null!=(o=i[n.parent])?o[n.trace]:void 0;return r},t.exceptionHandler=i=function(e,t){var r;if(t||(t=console.error),t(e.stack),(r=s()).length)return t("Iced 'stack' trace (w/ real line numbers):"),t(r.join("\n"))},t.catchExceptions=function(t){return null!=e?e.on("uncaughtException",(function(r){return i(r,t),e.exit(1)})):void 0}}).call(this)}).call(this,r(25))},function(e,t,r){var n=null,i=["bigint","bignum"];for(var o in i)try{n=r(1286)(i[o]);break}catch(e){}t.engine=n},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S={}.hasOwnProperty;m=r(34),_=r(76).WordArray,k=r(352),e=r(453).AES,p=r(454).TwoFish,g=r(380),y=(E=r(455)).XOR,o=E.Concat,l=r(239).SHA512,c=r(709).SHA3STD,u=r(353).KECCAK,f=r(457).PBKDF2,h=r(710).Scrypt,x=r(114),w=r(711),v=r(62).make_esc,a=r(238).HMAC_SHA256,d={1:{header:[479516638,1],salt_size:8,xsalsa20_rev:!0,kdf:{klass:f,opts:{c:1024,klass:y}},use_twofish:!0,hmac_hashes:[l,u],hmac_key_size:96,version:1},2:{header:[479516638,2],salt_size:16,xsalsa20_rev:!0,kdf:{klass:h,opts:{c:64,klass:y,N:12,r:8,p:1}},use_twofish:!0,hmac_hashes:[l,u],hmac_key_size:96,version:2},3:{header:[479516638,3],salt_size:16,xsalsa20_rev:!1,kdf:{klass:h,opts:{c:1,klass:a,N:15,r:8,p:1}},use_twofish:!0,hmac_hashes:[l,u],hmac_key_size:96,version:3},4:{header:[479516638,4],salt_size:16,xsalsa20_rev:!1,kdf:{klass:h,opts:{c:1,klass:a,N:15,r:8,p:1}},hmac_key_size:96,use_twofish:!1,hmac_hashes:[l,c],version:4}},t.CURRENT_VERSION=i=4,n=function(){function t(e){var t,r;if(t=e.key,r=e.version,this.version=d[null!=r?r:i],null==this.version)throw new Error("unknown version: "+r);this.set_key(t),this.derived_keys={}}return t.prototype.kdf=function(t,r){var n,i,o,s,a,u,f,c,l,h,d,y,g,b,v,w,x,E;w=m.findDeferral(arguments),g=t.salt,s=t.extra_keymaterial,d=t.progress_hook,(E=this,function(e){x=new m.Deferrals(e,{parent:w,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.kdf"}),E._check_scrubbed(E.key,"in KDF",r,x.defer({lineno:121})),x._fulfill()})(function(t){return function(){b=g.to_hex(),f=t.key.clone(),x=new m.Deferrals((function(){!function(r){if(null!=(c=t.derived_keys[b]))return r();for(u in t._kdf=new t.version.kdf.klass(t.version.kdf.opts),l={hmac:t.version.hmac_key_size,aes:e.keySize,salsa20:k.Salsa20.keySize},t.version.use_twofish&&(l.twofish=p.keySize),h=t.version.use_twofish?["hmac","aes","twofish","salsa20"]:["hmac","aes","salsa20"],i=s||0,l)v=l[u],i+=v;n={dkLen:i,key:f,progress_hook:d,salt:g},function(e){x=new m.Deferrals(e,{parent:w,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.kdf"}),t._kdf.run(n,x.defer({assign_fn:function(){return y=arguments[0]},lineno:152})),x._fulfill()}((function(){var e,n;for(c={},a=0,e=0,n=h.length;e<n;e++)u=h[e],v=l[u],o=a+v/4,c[u]=new _(y.words.slice(a,o)),a=o;return c.extra=new _(y.words.slice(o)).to_buffer(),r(t.derived_keys[b]=c)}))}((function(){return r(null,c)}))}),{parent:w,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.kdf"}),t._check_scrubbed(f,"KDF",r,x.defer({lineno:129})),x._fulfill()}}(this))},t.prototype.set_key=function(e){var t;return null==e?this.scrub():(t=_.from_buffer(e),this.key&&this.key.equal(t)?void 0:(this.scrub(),this.key=t))},t.prototype._check_scrubbed=function(e,t,r,n){return null==e||e.is_scrubbed()?r(new Error(t+": Failed due to scrubbed key!"),null):n()},t.prototype.sign=function(e,t){var r,n,i,s,a,u,f,c,l;f=m.findDeferral(arguments),n=e.input,i=e.key,u=e.salt,a=e.progress_hook,(l=this,function(e){c=new m.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.sign"}),l._check_scrubbed(i,"HMAC",t,c.defer({lineno:210})),c._fulfill()})(function(e){return function(){n=new _(e.version.header).concat(u).concat(n),r=e.version.hmac_hashes,c=new m.Deferrals((function(){return n.scrub(),t(null,s)}),{parent:f,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.sign"}),o.bulk_sign({key:i,input:n,progress_hook:a,combine_klasses:r},c.defer({assign_fn:function(){return s=arguments[0]},lineno:213})),c._fulfill()}}(this))},t.prototype.run_salsa20=function(e,t){var r,n,i,o,s,a,u,f,c,l;f=m.findDeferral(arguments),i=e.input,s=e.key,o=e.iv,a=e.output_iv,u=e.progress_hook,(l=this,function(e){c=new m.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.run_salsa20"}),l._check_scrubbed(s,"Salsa20",t,c.defer({lineno:229})),c._fulfill()})(function(e){return function(){r={input:i,progress_hook:u,key:s,iv:o},e.version.xsalsa20_rev&&(r.key=s.clone().endian_reverse(),r.iv=o.clone().endian_reverse()),c=new m.Deferrals((function(){return a&&(n=o.clone().concat(n)),e.version.xsalsa20_rev&&(r.key.scrub(),r.iv.scrub()),t(null,n)}),{parent:f,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.run_salsa20"}),k.bulk_encrypt(r,c.defer({assign_fn:function(){return n=arguments[0]},lineno:241})),c._fulfill()}}(this))},t.prototype.run_twofish=function(e,t){var r,n,i,o,s,a,u,f,c;u=m.findDeferral(arguments),i=e.input,s=e.key,o=e.iv,a=e.progress_hook,(c=this,function(e){f=new m.Deferrals(e,{parent:u,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.run_twofish"}),c._check_scrubbed(s,"TwoFish",t,f.defer({lineno:264})),f._fulfill()})((function(){r=new p(s),f=new m.Deferrals((function(){return r.scrub(),t(null,o.clone().concat(n))}),{parent:u,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.run_twofish"}),g.bulk_encrypt({block_cipher:r,iv:o,input:i,progress_hook:a,what:"twofish"},f.defer({assign_fn:function(){return n=arguments[0]},lineno:266})),f._fulfill()}))},t.prototype.run_aes=function(t,r){var n,i,o,s,a,u,f,c,l;f=m.findDeferral(arguments),o=t.input,a=t.key,s=t.iv,u=t.progress_hook,(l=this,function(e){c=new m.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.run_aes"}),l._check_scrubbed(a,"AES",r,c.defer({lineno:281})),c._fulfill()})((function(){n=new e(a),c=new m.Deferrals((function(){return n.scrub(),r(null,s.clone().concat(i))}),{parent:f,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Base.run_aes"}),g.bulk_encrypt({block_cipher:n,iv:s,input:o,progress_hook:u,what:"aes"},c.defer({assign_fn:function(){return i=arguments[0]},lineno:283})),c._fulfill()}))},t.prototype.scrub=function(){var e,t,r,n,i;if(null!=this.key&&this.key.scrub(),null!=this.derived_keys)for(n in i=this.derived_keys)for(e in r=i[n])t=r[e],"extra"!==e&&t.scrub();return this.derived_keys={},null!=this.salt&&this.salt.scrub(),this.salt=null,this.key=null},t.prototype.clone_derived_keys=function(){var e,t,r,n,i,o;if(n=null,null!=this.derived_keys)for(i in n={},o=this.derived_keys)for(e in r=o[i],n[i]={},r)t=r[e],n[i][e]="extra"===e?t:t.clone();return n},t}(),s=function(t){function r(e){var t,n,i;t=e.key,n=e.rng,i=e.version,r.__super__.constructor.call(this,{key:t,version:i}),this.rng=n||w.generate}return function(e,t){for(var r in t)S.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.pick_random_ivs=function(t,r){var n,i,o,s,a,u,f;a=m.findDeferral(arguments),t.progress_hook,(n=[]).push(["aes",e.ivSize]),this.version.use_twofish&&n.push(["twofish",p.ivSize]),n.push(["salsa20",k.Salsa20.ivSize]),i={},(f=this,function(e){var t,r,c,l;r=(c=n).length,t=0,(l=function(e){var n,h;if(n=function(){return m.trampoline((function(){return++t,l(e)}))},!(t<r))return e();h=c[t],o=h[0],s=h[1],function(e){var t,r;u=new m.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Encryptor.pick_random_ivs"}),f.rng(s,u.defer({assign_fn:(t=i,r=o,function(){return t[r]=arguments[0]}),lineno:407})),u._fulfill()}(n)})(e)})((function(){return r(i)}))},r.prototype.resalt=function(e,t){var r,n,i,o,s,a,u;s=m.findDeferral(arguments),o=e.salt,n=e.extra_keymaterial,i=e.progress_hook,r=null,(u=this,function(e){if(null!=o)return e(o.length!==u.version.salt_size?r=new Error("Need a salt of exactly "+u.version.salt_size+" bytes (got "+o.length+")"):u.salt=_.alloc(o));!function(e){var t;a=new m.Deferrals(e,{parent:s,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Encryptor.resalt"}),u.rng(u.version.salt_size,a.defer({assign_fn:(t=u,function(){return t.salt=arguments[0]}),lineno:423})),a._fulfill()}(e)})(function(e){return function(){!function(t){if(null!=r)return t();!function(t){var o;a=new m.Deferrals(t,{parent:s,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Encryptor.resalt"}),e.kdf({extra_keymaterial:n,progress_hook:i,salt:e.salt},a.defer({assign_fn:(o=e,function(){return r=arguments[0],o.keys=arguments[1]}),lineno:429})),a._fulfill()}(t)}((function(){return t(r,e.keys)}))}}(this))},r.prototype.run=function(e,t){var r,n,i,o,s,a,u,f,c,l,h,p,d,y;p=m.findDeferral(arguments),n=e.data,l=e.salt,o=e.extra_keymaterial,u=e.progress_hook,i=v(t,"Encryptor::run"),(y=this,function(e){if(null==l&&null!=y.salt)return e();!function(e){d=new m.Deferrals(e,{parent:p,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Encryptor.run"}),y.resalt({salt:l,extra_keymaterial:o,progress_hook:u},i(d.defer({lineno:460}))),d._fulfill()}(e)})(function(e){return function(){d=new m.Deferrals((function(){f=_.from_buffer(n),d=new m.Deferrals((function(){!function(t){if(!e.version.use_twofish)return t();!function(t){d=new m.Deferrals(t,{parent:p,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Encryptor.run"}),e.run_twofish({input:a,key:e.keys.twofish,progress_hook:u,iv:s.twofish},i(d.defer({assign_fn:function(){return a=arguments[0]},lineno:465}))),d._fulfill()}(t)}((function(){d=new m.Deferrals((function(){d=new m.Deferrals((function(){return c=new _(e.version.header).concat(e.salt).concat(h).concat(r).to_buffer(),x.scrub_buffer(n),t(null,c)}),{parent:p,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Encryptor.run"}),e.sign({input:r,key:e.keys.hmac,progress_hook:u,salt:e.salt},i(d.defer({assign_fn:function(){return h=arguments[0]},lineno:467}))),d._fulfill()}),{parent:p,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Encryptor.run"}),e.run_aes({input:a,key:e.keys.aes,progress_hook:u,iv:s.aes},i(d.defer({assign_fn:function(){return r=arguments[0]},lineno:466}))),d._fulfill()}))}),{parent:p,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Encryptor.run"}),e.run_salsa20({input:f,key:e.keys.salsa20,progress_hook:u,iv:s.salsa20,output_iv:!0},i(d.defer({assign_fn:function(){return a=arguments[0]},lineno:463}))),d._fulfill()}),{parent:p,filename:"/Users/max/src/keybase/triplesec/src/enc.iced",funcname:"Encryptor.run"}),e.pick_random_ivs({progress_hook:u},d.defer({assign_fn:function(){return s=arguments[0]},lineno:461})),d._fulfill()}}(this))},r.prototype.clone=function(){var e,t,n;return(e=new r({key:null!=(t=this.key)?t.to_buffer():void 0,rng:this.rng,version:null!=(n=this.version)?n.version:void 0})).derived_keys=this.clone_derived_keys(),e},r}(n),b=function(e,t){var r,n,i,o,a,u,f,c,l,h;l=m.findDeferral(arguments),o=e.key,r=e.data,f=e.rng,a=e.progress_hook,c=e.version,n=new s({key:o,rng:f,version:c}),function(e){h=new m.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/triplesec/src/enc.iced"}),n.run({data:r,progress_hook:a},h.defer({assign_fn:function(){return i=arguments[0],u=arguments[1]},lineno:506})),h._fulfill()}((function(){return n.scrub(),t(i,u)}))},t.V=d,t.encrypt=b,t.Base=n,t.Encryptor=s}).call(this)},function(e,t,r){(function(){var e,n,i,o={}.hasOwnProperty;r(76).WordArray,r(130).Hasher,e=r(353).KECCAK,n=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.pad=6,t}(e),i=function(e){var t;return t=(new n).finalize(e),e.scrub(),t},t.SHA3STD=n,t.transform=i}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b;l=r(34),e=r(238).HMAC_SHA256,h=r(457).pbkdf2,y=r(352),f=y.endian_reverse,n=y.Salsa20InnerCore,(g=r(76)).ui8a_to_buffer,o=g.WordArray,b=r(114),c=b.fixup_uint32,u=b.default_delay,p=b.scrub_vec,new(function(){function e(){this.tot=0}return e.prototype.start=function(){return this._t=Date.now()},e.prototype.stop=function(){return this.tot+=Date.now()-this._t},e}()),s=function(e,t,r,n,i){var o,s,a;for(a=r<<4|0,o=(s=n<<4|0)+(i<<4)|0;s<o;)e[a]=t[s],e[a+1]=t[s+1],e[a+2]=t[s+2],e[a+3]=t[s+3],e[a+4]=t[s+4],e[a+5]=t[s+5],e[a+6]=t[s+6],e[a+7]=t[s+7],e[a+8]=t[s+8],e[a+9]=t[s+9],e[a+10]=t[s+10],e[a+11]=t[s+11],e[a+12]=t[s+12],e[a+13]=t[s+13],e[a+14]=t[s+14],e[a+15]=t[s+15],s+=16,a+=16;return!0},a=function(e,t,r,n){var i,o;for(n=n<<4|0,i=0,o=r<<4|0;i<n;)e[i]^=t[o],e[i+1]^=t[o+1],e[i+2]^=t[o+2],e[i+3]^=t[o+3],e[i+4]^=t[o+4],e[i+5]^=t[o+5],e[i+6]^=t[o+6],e[i+7]^=t[o+7],e[i+8]^=t[o+8],e[i+9]^=t[o+9],e[i+10]^=t[o+10],e[i+11]^=t[o+11],e[i+12]^=t[o+12],e[i+13]^=t[o+13],e[i+14]^=t[o+14],e[i+15]^=t[o+15],i+=16,o+=16;return!0},_=function(e){var t,r,n,i;for(r=n=0,i=e.length;n<i;r=++n)t=e[r],e[r]=f(t);return!0},i=function(){function t(t){var r,i,o,s;r=t.N,this.r=t.r,this.p=t.p,i=t.c,o=t.c0,s=t.c1,this.klass=t.klass,this.N||(this.N=1<<(r||15)),this.r||(this.r=8),this.p||(this.p=1),this.c0=o||i||1,this.c1=s||i||1,this.klass||(this.klass=e),this.X16_tmp=new Int32Array(16),this.s20ic=new n(8)}return t.prototype.salsa20_8=function(e){var t,r,n,i,o;for(r=i=0,o=(t=this.s20ic._core(e)).length;i<o;r=++i)n=t[r],e[r]+=n;return!0},t.prototype.pbkdf2=function(e,t){var r,n,i,o,s,a,u,f,c;u=l.findDeferral(arguments),i=e.key,s=e.salt,n=e.dkLen,o=e.progress_hook,r=e.c,(c=this,function(e){f=new l.Deferrals(e,{parent:u,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced",funcname:"Scrypt.pbkdf2"}),h({key:i,salt:s,c:r,dkLen:n,klass:c.klass,progress_hook:o},f.defer({assign_fn:function(){return a=arguments[0]},lineno:109})),f._fulfill()})((function(){return t(a)}))},t.prototype.blockmix_salsa8=function(e,t){var r,n,i,o;for(r=this.X16_tmp,s(r,e,0,2*this.r-1,1),n=i=0,o=2*this.r;0<=o?i<o:i>o;n=0<=o?++i:--i)a(r,e,n,1),this.salsa20_8(r),s(t,r,n,0,1);for(n=0;n<this.r;)s(e,t,n,2*n,1),n++;for(n=0;n<this.r;)s(e,t,n+this.r,2*n+1,1),n++;return!0},t.prototype.smix=function(e,t){var r,n,i,o,f,h,p,d,_,y,g,b,m;g=l.findDeferral(arguments),r=e.B,n=e.V,o=e.XY,_=e.progress_hook,i=o,d=2*this.r,f=o.subarray(16*d),s(i,r,0,0,d),h=0,(m=this,function(e){var t;(t=function(e){var r,o;if(r=e,o=function(){return l.trampoline((function(){return t(e)}))},!(h<m.N))return r();for(y=Math.min(m.N,h+2048);h<y;)s(n,i,d*h,0,d),m.blockmix_salsa8(i,f),h++;"function"==typeof _&&_(h),function(e){b=new l.Deferrals(e,{parent:g,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced",funcname:"Scrypt.smix"}),u(0,0,b.defer({lineno:166})),b._fulfill()}(o)})(e)})(function(e){return function(){var o;h=0,(o=function(t){var r,s;if(r=t,s=function(){return l.trampoline((function(){return o(t)}))},!(h<e.N))return r();for(y=Math.min(e.N,h+256);h<y;)p=c(i[16*(d-1)])&e.N-1,a(i,n,p*d,d),e.blockmix_salsa8(i,f),h++;"function"==typeof _&&_(h+e.N),function(e){b=new l.Deferrals(e,{parent:g,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced",funcname:"Scrypt.smix"}),u(0,0,b.defer({lineno:183})),b._fulfill()}(s)})((function(){return s(r,i,0,0,d),t()}))}}(this))},t.prototype.run=function(e,t){var r,n,i,s,a,u,f,c,h,d,y,g,b,m,v,w,k;g=l.findDeferral(arguments),f=e.key,y=e.salt,a=e.dkLen,d=e.progress_hook,a>(n=4294967295)?new Error("asked for too much data"):this.r*this.p>=1<<30?new Error("r & p are too big"):(this.r>n/128/this.p||this.r>n/256||this.N>n/128/this.r)&&new Error("N is too big"),s=new Int32Array(64*this.r),i=new Int32Array(32*this.r*this.N),c=function(e){return e.what+=" (pass 1)","function"==typeof d?d(e):void 0},(k=this,function(e){b=new l.Deferrals(e,{parent:g,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced",funcname:"Scrypt.run"}),k.pbkdf2({key:f.clone(),salt:y,dkLen:128*k.r*k.p,c:k.c0,progress_hook:c},b.defer({assign_fn:function(){return r=arguments[0]},lineno:214})),b._fulfill()})(function(e){return function(){var n;r=new Int32Array(r.words),_(r),c=function(t){return function(r){return"function"==typeof d?d({i:r+t*e.N*2,what:"scrypt",total:e.p*e.N*2}):void 0}},u=0,m=0,v=e.p,w=v>m,(n=function(t){var o,a;if(o=t,a=function(){return l.trampoline((function(){return w?u+=1:u-=1,n(t)}))},!0===w&&u>=e.p||!1===w&&u<=e.p)return o();!function(t){b=new l.Deferrals(t,{parent:g,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced",funcname:"Scrypt.run"}),e.smix({B:r.subarray(32*e.r*u),V:i,XY:s,progress_hook:c(u)},b.defer({lineno:221})),b._fulfill()}(a)})((function(){_(r),c=function(e){return e.what+=" (pass 2)","function"==typeof d?d(e):void 0},b=new l.Deferrals((function(){return p(s),p(i),p(r),f.scrub(),t(h)}),{parent:g,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced",funcname:"Scrypt.run"}),e.pbkdf2({key:f,salt:o.from_i32a(r),dkLen:a,c:e.c1,progress_hook:c},b.defer({assign_fn:function(){return h=arguments[0]},lineno:229})),b._fulfill()}))}}(this))},t}(),d=function(e,t){var r,n,o,s,a,u,f,c,h,p,d,_,y,g,b;g=l.findDeferral(arguments),f=e.key,_=e.salt,d=e.r,r=e.N,h=e.p,o=e.c0,s=e.c1,n=e.c,c=e.klass,p=e.progress_hook,a=e.dkLen,u=new i({r:d,N:r,p:h,c:n,c0:o,c1:s,klass:c}),function(e){b=new l.Deferrals(e,{parent:g,filename:"/Users/max/src/keybase/triplesec/src/scrypt.iced"}),u.run({key:f,salt:_,progress_hook:p,dkLen:a},b.defer({assign_fn:function(){return y=arguments[0]},lineno:259})),b._fulfill()}((function(){return t(y)}))},t.Scrypt=i,t.scrypt=d,t.v_endian_reverse=_}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m;if(f=r(34),function(){},l=r(1289),n=r(1291).ADRBG,o=r(76).WordArray,s=r(455).XOR,d=r(114),_=null,a=function(t){var r;return r=new Uint8Array(t),_(r),e.from(r)},null!=(_=null!=(c="undefined"!=typeof window&&null!==window&&null!=(b=window.crypto)?b.getRandomValues:void 0)?c.bind(window.crypto):null!=(c="undefined"!=typeof window&&null!==window&&null!=(m=window.msCrypto)?m.getRandomValues:void 0)?c.bind(window.msCrypto):null))y=a;else try{null!=(p=r(69).rng)&&(y=p)}catch(e){e}h=function(e){if(null==y)throw new Error('No rng found; tried requiring "crypto" and window.crypto');return y(e)},i=function(){function t(){var e;this.meg=new l.Generator,this.adrbg=new n((e=this,function(t,r){return e.gen_seed(t,r)}),s.sign)}return t.prototype.now_to_buffer=function(){var t,r,n,i;return n=(r=Date.now())%1e3,i=Math.floor(r/1e3),(t=e.alloc(8)).writeUInt32BE(i,0),t.writeUInt32BE(n,4),t},t.prototype.gen_seed=function(t,r){var n,i,s,a,u,c,l,p,_;l=f.findDeferral(arguments),a=t/8,(i=[]).push(this.now_to_buffer()),(_=this,function(e){p=new f.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/triplesec/src/prng.iced",funcname:"PRNG.gen_seed"}),_.meg.generate(t,p.defer({assign_fn:function(){return c=arguments[0]},lineno:83})),p._fulfill()})(function(t){return function(){var f,l;for(i.push(t.now_to_buffer()),i.push(e.from(c)),i.push(h(a)),i.push(t.now_to_buffer()),s=e.concat(i),u=o.from_buffer(s),d.scrub_buffer(s),f=0,l=i.length;f<l;f++)n=i[f],d.scrub_buffer(n);return r(u)}}(this))},t.prototype.generate=function(e,t){return this.adrbg.generate(e,t)},t}(),g=null,u=function(e,t){return null==g&&(g=new i),g.generate(e,t)},t.PRNG=i,t.generate=u,t.native_rng=h}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i,o,s={}.hasOwnProperty;o=r(34),t.Lock=e=function(){function e(){this._open=!0,this._waiters=[]}return e.prototype.acquire=function(e){return this._open?(this._open=!1,e()):this._waiters.push(e)},e.prototype.release=function(){return this._waiters.length?this._waiters.shift()():this._open=!0},e.prototype.open=function(){return this._open},e}(),n=function(e){function t(e,r){this.tab=e,this.name=r,t.__super__.constructor.call(this),this.refs=0}return function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.incref=function(){return++this.refs},t.prototype.decref=function(){return--this.refs},t.prototype.release=function(){if(t.__super__.release.call(this),0===this.decref())return delete this.tab.locks[this.name]},t}(e),t.Table=function(){function e(){this.locks={}}return e.prototype.create=function(e){var t;return t=new n(this,e),this.locks[e]=t},e.prototype.acquire=function(e,t,r){var n,i,s,a;s=o.findDeferral(arguments),n=this.locks[e]||this.create(e),i=n._open,n.incref(),function(e){if(!r&&!n._open)return e(n=null);!function(e){a=new o.Deferrals(e,{parent:s,filename:"/Users/max/src/iced/iced-lock/index.iced",funcname:"Table.acquire"}),n.acquire(a.defer({lineno:69})),a._fulfill()}(e)}((function(){return t(n,i)}))},e.prototype.lookup=function(e){return this.locks[e]},e}(),i=function(){function e(e){this.table=e.table,this.key=e.key,this.seqid=null,this.waiter=null,this.open=!0,this.refs=0}return e.prototype._incref=function(){return++this.refs},e.prototype._decref=function(){if(0==--this.refs)return this.table._remove({key:this.key})},e.prototype._enter=function(e,t){var r,n;return r=e.seqid,this.open?(this.open=!1,this.seqid=r,t(null,this)):null!=this.waiter?(r>this.waiter.seqid?(n=this.waiter,this.waiter={cb:t,seqid:r},n.cb(new Error("our seqid="+n.seqid+" was preempted by "+r))):t(new Error("our seqid="+r+" is too stale (since "+this.waiter.seqid+" is ahead of us)")),this._decref()):r>this.seqid?this.waiter={seqid:r,cb:t}:(t(new Error("our seqid="+r+" is too stale (since "+this.seqid+" is already in flight)")),this._decref())},e.prototype.release=function(){var e,t;return null!=this.waiter?(t=this.waiter,this.seqid=t.seqid,e=t.cb,this.waiter=null,e(null,this)):(this.open=!0,this.seqid=null),this._decref()},e}(),t.SingleFlightTable=function(){function e(){this._jobs={}}return e.prototype._create=function(e){var t;return t=e.key,this._jobs[t]=new i({table:this,key:t})},e.prototype._remove=function(e){var t;return t=e.key,delete this._jobs[t]},e.prototype.enter=function(e,t){var r,n,i;return i=e.seqid,r=e.key,(n=this._jobs[r]||this._create({key:r}))._incref(),n._enter({seqid:i},t)},e}()}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h=[].slice;u=r(34),l=function(){},n=r(62).Canceler,i=r(112),t.uint_to_buffer=function(t,r){var n;switch(n=null,t){case 16:(n=e.alloc(2)).writeUInt16BE(r,0);break;case 32:(n=e.alloc(4)).writeUInt32BE(r,0);break;case 8:(n=e.alloc(1)).writeUInt8(r,0);break;default:throw new Error("Bit types not found: "+nbit)}return n},t.ASP=function(){function e(e){var t,r,i;i=e.progress_hook,r=e.delay,t=e.canceler,this._delay=null!=r?r:2,this._canceler=t||new n,this._progress_hook=i||function(e){},this._section=null}return e.prototype.section=function(e){return this._section=e,this},e.prototype.progress=function(e,t){var r,n,i,o,s;if(o=l,n=u.findDeferral(arguments),this._section&&(e.section=this._section),this._progress_hook(e),null==t)return o();(s=this,function(e){i=new u.Deferrals(e,{parent:n,filename:"/Users/max/src/keybase/pgp-utils/src/util.iced",funcname:"ASP.progress"}),s.delay(i.defer({assign_fn:function(){return r=arguments[0]},lineno:43})),i._fulfill()})((function(){return o(t(r))}))},e.prototype.delay=function(e){var t,r,n;t=u.findDeferral(arguments),(n=this,function(e){r=new u.Deferrals(e,{parent:t,filename:"/Users/max/src/keybase/pgp-utils/src/util.iced",funcname:"ASP.delay"}),setTimeout(r.defer({lineno:47}),n.delay),r._fulfill()})(function(t){return function(){return e(t._canceler.err())}}(this))},e.prototype.canceler=function(){return this._canceler},e.prototype.progress_hook=function(){return this._progress_hook},e.make=function(t){return t||new e({})},e}(),t.Warnings=function(){function e(){this._w=[]}return e.prototype.push=function(){var e,t;return e=1<=arguments.length?h.call(arguments,0):[],(t=this._w).push.apply(t,e)},e.prototype.warnings=function(){return this._w},e}(),t.bufeq_fast=function(e,t){var r,n,i;if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;for(r=n=0,i=e.length;0<=i?n<i:n>i;r=0<=i?++n:--n)if(e.readUInt8(r)!==t.readUInt8(r))return!1;return!0},t.bufeq_secure=s=function(e,t){var r,n;return function(){var i,o;if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;for(r=0,n=i=0,o=e.length;0<=o?i<o:i>o;n=0<=o?++i:--i)r|=e.readUInt8(n)^t.readUInt8(n);return 0===r}()},t.streq_secure=function(e,t){var r;return s((r=function(e){return null!=e?a(e):null})(e),r(t))},t.bufferify=a=function(t){if(e.isBuffer(t))return t;if("string"==typeof t)return e.from(t,"utf8");throw new Error("Cannot convert to buffer: "+t)},t.katch=f=function(e){var t,r;r=t=null;try{r=e()}catch(e){t=e}return[t,r]},t.akatch=function(e,t){return o(f(e),t)},t.buffer_to_ui8a=function(e){var t,r,n,i;for(r=e.length,n=new Uint8Array(r),t=i=0;0<=r?i<r:i>r;t=0<=r?++i:--i)n[t]=e.readUInt8(t);return n},t.ui32a_to_ui8a=function(e,t){var r,n,i,o;for(null==t&&(t=null),t||(t=new Uint8Array(4*e.length)),r=0,i=0,o=e.length;i<o;i++)n=e[i],t[r++]=n>>24&255,t[r++]=n>>16&255,t[r++]=n>>8&255,t[r++]=255&n;return t},t.ui8a_to_ui32a=function(e,t){var r,n,i,o,s;for(null==t&&(t=null),t||(t=new Uint32Array(e.length>>2)),n=0,r=o=0,s=e.length;o<s;r=o+=4)i=(e[r]<<24)+(e[r+1]<<16)+(e[r+2]<<8)+e[r+3],t[n++]=i;return t},t.unix_time=function(){return Math.floor(Date.now()/1e3)},t.json_stringify_sorted=function(e,t){var r,n,i,o,s,a;return i=(t=t||{}).sort_fn||null,s=t.spaces||null,null!=t.spaces?"\n":"","number"==typeof s&&(s=function(){var e,t;for(t=[],e=0;0<=s?e<s:e>s;0<=s?++e:--e)t.push(" ");return t}().join("")),o=function(e){return null==s?"":"\n"+function(){var t,r;for(r=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)r.push(s);return r}().join("")},r=function(e,t){var n,s,a,u,f,c;return Array.isArray(e)?a="["+function(){var n,i,o;for(o=[],n=0,i=e.length;n<i;n++)c=e[n],o.push(r(c,t+1));return o}().join(",")+"]":"object"==typeof e&&e?(u=o(t),f=o(t+1),s=function(){var t;for(n in t=[],e)t.push(n);return t}(),i?s.sort(i):s.sort(),a="{"+function(){var i,o,a;for(a=[],i=0,o=s.length;i<o;i++)n=s[i],a.push(f+JSON.stringify(n)+":"+r(e[n],t+1));return a}().join(",")+u+"}"):a=JSON.stringify(e),a},void 0===(a=JSON.stringify(e))?a:(n=JSON.parse(a),r(n,0))},t.obj_extract=function(e,t){var r,n,i,o;for(n={},i=0,o=t.length;i<o;i++)n[r=t[i]]=e[r];return n},t.base64u={encode:function(e){return e.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},decode:function(t){return t=(t+Array(5-t.length%4).join("=")).replace(/\-/g,"+").replace(/\_/g,"/"),e.from(t,"base64")},verify:function(e){return/^[A-Za-z0-9\-_]+$/.test(e)}},t.assert_no_nulls=function(e){var t,r,n;for(t=!0,r=0,n=e.length;r<n;r++)null==e[r]&&(t=!1);if(!t)return console.error("Found 1 or more nulls in vector: "),console.error(e),i(!1)},t.athrow=function(e,t){return t(e)},t.asyncify=o=function(e,t){return t.apply(null,e)},t.format_fingerprint=function(e){var t,r;return t=e.toString("hex").toUpperCase(),function(){var e,n,i;for(i=[],r=e=0,n=t.length;e<n;r=e+=4)i.push(t.slice(r,r+4));return i}().join(" ")},t.format_pgp_fingerprint_2=function(e,t){var r,n,i,o,s;return null==t&&(t={}),r=e.toString("hex"),i=(null!=t?t.length:void 0)||40,s=(null!=t?t.space:void 0)||" ",40===(r=r.toUpperCase().slice(-i)).length?(o=function(){var e,t,i;for(i=[],n=e=0,t=r.length;e<t;n=e+=4)i.push(r.slice(n,n+4));return i}(),(o=function(){var e,t,r;for(r=[],n=e=0,t=o.length;e<t;n=e+=5)r.push(o.slice(n,n+5).join(s));return r}()).join(s+s)):r.length>8?(o=function(){var e,t,i;for(i=[],n=e=0,t=r.length;e<t;n=e+=4)i.push(r.slice(n,n+4));return i}()).join(s):r},t.fingerprint_to_key_id_64=function(e){return e.slice(-16)},t.strip=c=function(e){return e.split(/\s+/).join("")},t.trim=function(e){var t;return(t=null!=e?e.match(/^\s+(.*?)$/):void 0)&&(e=t[1]),(t=null!=e?e.match(/^(.*?)\s+$/):void 0)&&(e=t[1]),e},t.fpeq=function(e,t){return c(e).toLowerCase()===c(t).toLowerCase()},t.xxd=function(e,t){var r,n,i,o,s,a,u;return null==t&&(t={}),a=t.q||8,o=t.p||7,e=e.toString("hex"),u=function(){var t,n,i;for(i=[],r=t=0,n=e.length;t<n;r=t+=4)i.push(e.slice(r,r+4));return i}(),i=function(){var e,t,n;for(n=[],r=e=0,t=u.length;a>0?e<t:e>t;r=e+=a)n.push(u.slice(r,r+a).join(" "));return n}(),s=function(e,t){return function(){var r,n,i;for(i=[],r=0,n=t-e.length;0<=n?r<n:r>n;0<=n?r++:r--)i.push("0");return i}().join("")+e},function(){var e,t,u;for(u=[],r=e=0,t=i.length;e<t;r=++e)n=i[r],u.push(s((2*r*a).toString(16),o)+": "+n);return u}().join("\n")}}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u;a=r(34),n=r(200).SlicerBuffer,u=r(715),o=u.alloc_by_nbits,s=u.alloc_by_oid,i=u.alloc_by_name,t.BaseEccKey=function(){function t(e){this.curve=e.curve,this.R=e.R}return t.prototype.serialize=function(){var t;return t=this.curve.oid,e.concat([e.from([t.length]),t,this.curve.point_to_mpi_buffer(this.R)])},t._alloc=function(e,t){var r,i,o,a,u,f,c,l,h,p;if(f=(l=new n(t)).rem(),a=l.read_uint8(),u=l.read_buffer(a),o=(h=s(u))[0],i=h[1],null!=o)throw o;if(o=(p=i.mpi_point_from_slicer_buffer(l))[0],r=p[1],null!=o)throw o;return(c=new e({curve:i,R:r})).read_params(l),[c,f-l.rem()]},t.alloc=function(e,r){var n,i,o,s;o=i=n=null;try{o=(s=t._alloc(e,r))[0],i=s[1]}catch(e){n=e}return[n,o,i]},t.prototype.validity_check=function(e){return e(null)},t}(),t.generate=function(e,t){var r,n,s,u,f,c,l,h,p,d,_,y,g,b;_=a.findDeferral(arguments),c=e.nbits,e.asp,u=e.curve_name,r=e.Pair,p=null,u?(g=i(u),f=g[0],s=g[1]):(b=o(c),f=b[0],s=b[1]),function(e){if(null!=f)return e();!function(e){y=new a.Deferrals(e,{parent:_,filename:"/Users/max/src/keybase/kbpgp/src/ecc/base.iced",funcname:"generate"}),s.generate(y.defer({assign_fn:function(){return d=arguments[0].x,n=arguments[0].R},lineno:58})),y._fulfill()}((function(){return h=new r.Pub({curve:s,R:n}),l=new r.Priv({pub:h,x:d}),e(p=new r({pub:h,priv:l}))}))}((function(){return t(f,p)}))}}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A={}.hasOwnProperty,B=function(e,t){for(var r in t)A.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};for(m in b=r(34),function(){},n=r(115).BigInteger,h=r(1303),E=r(50).uint_to_buffer,l=r(200).SlicerBuffer,c=r(94).SRF,p=r(115),v=r(458),t.H=s=function(e){return n.fromHex(e.split(/\s+/).join(""))},t.Curve=i=function(t){function r(e){var t,i,o,s,a,u,f;f=e.p,o=e.a,s=e.b,t=e.Gx,i=e.Gy,u=e.n,a=e.h,this.oid=e.oid,a||(a=n.ONE),r.__super__.constructor.call(this,f,o,s,t,i,u,a)}return B(r,t),r.prototype.mkpoint=function(e){var t,r;return t=e.x,r=e.y,h.Point.fromAffine(this,t,r)},r.prototype.nbits=function(){return this.p.bitLength()},r.prototype.mpi_bit_size=function(){return 2*this.mpi_coord_bit_size()+3},r.prototype.mpi_byte_size=function(){return Math.ceil(this.mpi_bit_size()/8)},r.prototype.mpi_coord_byte_size=function(){return Math.ceil(this.nbits()/8)},r.prototype.mpi_coord_bit_size=function(){return 8*this.mpi_coord_byte_size()},r.prototype._mpi_point_from_slicer_buffer=function(e){var t,r,i,o,s,a,u,f,c;if(o=e.read_uint16(),(s=Math.ceil(o/8))!==(t=this.mpi_byte_size()))throw r=this.mpi_bit_size(),new Error("Need "+t+" bytes ("+r+" bits) for this curve; got "+s+" ("+o+" bits)");if(4!==e.read_uint8())throw new Error("Can only handle 0x4 prefix for MPI representations");if(i=this.mpi_coord_byte_size(),u=(c=[n.fromBuffer(e.read_buffer(i)),n.fromBuffer(e.read_buffer(i))])[0],f=c[1],a=this.mkpoint({x:u,y:f}),!this.isOnCurve(a))throw new Error("Given ECC point isn't on the given curve; data corruption detected.");return[null,a]},r.prototype.mpi_point_from_buffer=function(e){return this.mpi_point_from_slicer_buffer(new l(e))},r.prototype.mpi_point_from_slicer_buffer=function(e){var t,r,n;t=r=null;try{t=(n=this._mpi_point_from_slicer_buffer(e))[0],r=n[1]}catch(e){t=e}return[t,r]},r.prototype.point_to_mpi_buffer_compact=function(e){return e.affineX.toBuffer(this.mpi_coord_byte_size())},r.prototype.point_to_mpi_buffer=function(t){var r;return r=this.mpi_coord_byte_size(),e.concat([E(16,this.mpi_bit_size()),e.from([4]),t.affineX.toBuffer(r),t.affineY.toBuffer(r)])},r.prototype.random_scalar=function(e){var t,r,n,i;r=b.findDeferral(arguments),(i=this,function(e){n=new b.Deferrals(e,{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/ecc/curves.iced",funcname:"Curve.random_scalar"}),c().random_zn(i.n.subtract(p.nbv(2)),n.defer({assign_fn:function(){return t=arguments[0]},lineno:103})),n._fulfill()})((function(){return t=t.add(p.BigInteger.ONE),e(t)}))},r.prototype.coord_to_mpi_buffer=function(t){var r;return r=this.mpi_coord_byte_size(),e.concat([E(16,8*r),t.toBuffer(r)])},r.prototype.mpi_from_buffer=function(e){return p.mpi_from_buffer(e)},r.prototype.encrypt=function(e,t){var r,n,i,o,s,a,u;s=b.findDeferral(arguments),this.n,r=this.G,(u=this,function(e){a=new b.Deferrals(e,{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/ecc/curves.iced",funcname:"Curve.encrypt"}),u.random_scalar(a.defer({assign_fn:function(){return o=arguments[0]},lineno:134})),a._fulfill()})((function(){return i=r.multiply(o),n=e.multiply(o),t({V:i,S:n})}))},r.prototype.decrypt=function(e,t){return t.multiply(e)},r.prototype.generate=function(e){var t,r,n,i,o;n=b.findDeferral(arguments),(o=this,function(e){i=new b.Deferrals(e,{parent:n,filename:"/Users/max/src/keybase/kbpgp/src/ecc/curves.iced",funcname:"Curve.generate"}),o.random_scalar(i.defer({assign_fn:function(){return r=arguments[0]},lineno:157})),i._fulfill()})(function(n){return function(){return t=n.G.multiply(r),e({x:r,R:t})}}(this))},r}(h.Curve),t.Curve25519=o=function(t){function r(e){this.oid=e.oid}return B(r,t),r.prototype.nbits=function(){return 256},r.prototype.mpi_bit_size=function(){return 263},r.prototype._mpi_point_from_slicer_buffer=function(e){var t,r,n,i;if(n=e.read_uint16(),(i=Math.ceil(n/8))!==(t=this.mpi_byte_size()))throw r=this.mpi_bit_size(),new Error("Need "+t+" bytes ("+r+" bits) for this curve; got "+i+" ("+n+" bits)");if(64!==e.read_uint8())throw new Error("Can only handle 0x40 prefix for 25519 MPI representations");return i=this.mpi_coord_byte_size(),[null,e.read_buffer(i)]},r.prototype.point_to_mpi_buffer_compact=function(e){return e},r.prototype.point_to_mpi_buffer=function(t){return this.mpi_coord_byte_size(),e.concat([E(16,this.mpi_bit_size()),e.from([64]),t])},r.prototype.random_scalar=function(e){return c().random_bytes(this.mpi_coord_byte_size(),e)},r.prototype.coord_to_mpi_buffer=function(t){var r;return r=this.mpi_coord_byte_size(),e.concat([E(16,8*r),t])},r.prototype.mpi_from_buffer=function(t){var r,n,i,o,s;return r=i=null,t.length<2?r=new Error("need at least 2 bytes; got "+t.length):(n=e.from(t.slice(0,2)),t=t.slice(2),o=n.readUInt16BE(0),s=Math.ceil(o/8),t.length<s?r=new Error("MPI said "+s+" bytes but only got "+t.length):(i=t.slice(0,s),t=t.slice(s))),[r,i,t,s+2]},r.prototype.encrypt=function(e,t){var r,n,i,o,s,a,u;s=b.findDeferral(arguments),(u=this,function(e){a=new b.Deferrals(e,{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/ecc/curves.iced",funcname:"Curve25519.encrypt"}),u.random_scalar(a.defer({assign_fn:function(){return o=arguments[0]},lineno:257})),a._fulfill()})((function(){return i=v.alloc({}),n=i.scalarmult_base(o),r=i.scalarmult(o,e),t({V:n,S:r})}))},r.reverse_buf=function(t){var r,n,i,o;for(r=e.alloc(t.length),n=i=0,o=t.length;0<=o?i<o:i>o;n=0<=o?++i:--i)r[t.length-1-n]=t[n];return r},r.prototype.decrypt=function(e,t){return e=r.reverse_buf(e),v.alloc({}).scalarmult(e,t)},r.prototype.generate=function(e){var t,n,i,o,s;i=b.findDeferral(arguments),(s=this,function(e){o=new b.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/ecc/curves.iced",funcname:"Curve25519.generate"}),s.random_scalar(o.defer({assign_fn:function(){return n=arguments[0]},lineno:290})),o._fulfill()})((function(){return t=v.alloc({}).scalarmult_base(n),n=r.reverse_buf(n),e({x:n,R:t})}))},r}(i),t.nist_p256=w=function(){var e,t,r,n,o,u;return u=s("FFFFFFFF 00000001 00000000 00000000 00000000 FFFFFFFF FFFFFFFF FFFFFFFF"),r=s("FFFFFFFF 00000001 00000000 00000000 00000000 FFFFFFFF FFFFFFFF FFFFFFFC"),n=s("5AC635D8 AA3A93E7 B3EBBD55 769886BC 651D06B0 CC53B0F6 3BCE3C3E 27D2604B"),o=s("FFFFFFFF 00000000 FFFFFFFF FFFFFFFF BCE6FAAD A7179E84 F3B9CAC2 FC632551"),e=s("6B17D1F2 E12C4247 F8BCE6E5 63A440F2 77037D81 2DEB33A0 F4A13945 D898C296"),t=s("4FE342E2 FE1A7F9B 8EE7EB4A 7C0F9E16 2BCE3357 6B315ECE CBB64068 37BF51F5"),new i({p:u,a:r,b:n,Gx:e,Gy:t,n:o,oid:a.nist_p256})},t.nist_p384=k=function(){var e,t,r,n,o,u;return u=s("ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff"),r=s("ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc"),n=s("b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef"),o=s("ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973"),e=s("aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7"),t=s("3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"),new i({p:u,a:r,b:n,Gx:e,Gy:t,n:o,oid:a.nist_p384})},t.nist_p521=x=function(){var e,t,r,n,o,u;return u=s("000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff"),r=s("000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc"),n=s("00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00"),o=s("000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409"),e=s("000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66"),t=s("00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"),new i({p:u,a:r,b:n,Gx:e,Gy:t,n:o,oid:a.nist_p521})},t.brainpool_p256=d=function(){var e,t,r,n,o,u;return u=s("a9fb57db a1eea9bc 3e660a90 9d838d72 6e3bf623 d5262028 2013481d 1f6e5377"),r=s("7d5a0975 fc2c3057 eef67530 417affe7 fb8055c1 26dc5c6c e94a4b44 f330b5d9"),n=s("26dc5c6c e94a4b44 f330b5d9 bbd77cbf 95841629 5cf7e1ce 6bccdc18 ff8c07b6"),o=s("a9fb57db a1eea9bc 3e660a90 9d838d71 8c397aa3 b561a6f7 901e0e82 974856a7"),e=s("8bd2aeb9 cb7e57cb 2c4b482f fc81b7af b9de27e1 e3bd23c2 3a4453bd 9ace3262"),t=s("547ef835 c3dac4fd 97f8461a 14611dc9 c2774513 2ded8e54 5c1d54c7 2f046997"),new i({p:u,a:r,b:n,Gx:e,Gy:t,n:o,oid:a.brainpool_p256})},t.brainpool_p384=_=function(){var e,t,r,n,o,u;return u=s("8cb91e82 a3386d28 0f5d6f7e 50e641df 152f7109 ed5456b4 12b1da19 7fb71123 acd3a729 901d1a71 87470013 3107ec53"),r=s("7bc382c6 3d8c150c 3c72080a ce05afa0 c2bea28e 4fb22787 139165ef ba91f90f 8aa5814a 503ad4eb 04a8c7dd 22ce2826"),n=s("04a8c7dd 22ce2826 8b39b554 16f0447c 2fb77de1 07dcd2a6 2e880ea5 3eeb62d5 7cb43902 95dbc994 3ab78696 fa504c11"),o=s("8cb91e82 a3386d28 0f5d6f7e 50e641df 152f7109 ed5456b3 1f166e6c ac0425a7 cf3ab6af 6b7fc310 3b883202 e9046565"),e=s("1d1c64f0 68cf45ff a2a63a81 b7c13f6b 8847a3e7 7ef14fe3 db7fcafe 0cbd10e8 e826e034 36d646aa ef87b2e2 47d4af1e"),t=s("8abe1d75 20f9c2a4 5cb1eb8e 95cfd552 62b70b29 feec5864 e19c054f f9912928 0e464621 77918111 42820341 263c5315"),new i({p:u,a:r,b:n,Gx:e,Gy:t,n:o,oid:a.brainpool_p384})},t.brainpool_p512=y=function(){var e,t,r,n,o,u;return u=s("aadd9db8 dbe9c48b 3fd4e6ae 33c9fc07 cb308db3 b3c9d20e d6639cca 70330871 7d4d9b00 9bc66842 aecda12a e6a380e6 2881ff2f 2d82c685 28aa6056 583a48f3"),r=s("7830a331 8b603b89 e2327145 ac234cc5 94cbdd8d 3df91610 a83441ca ea9863bc 2ded5d5a a8253aa1 0a2ef1c9 8b9ac8b5 7f1117a7 2bf2c7b9 e7c1ac4d 77fc94ca"),n=s("3df91610 a83441ca ea9863bc 2ded5d5a a8253aa1 0a2ef1c9 8b9ac8b5 7f1117a7 2bf2c7b9 e7c1ac4d 77fc94ca dc083e67 984050b7 5ebae5dd 2809bd63 8016f723"),o=s("aadd9db8 dbe9c48b 3fd4e6ae 33c9fc07 cb308db3 b3c9d20e d6639cca 70330870 553e5c41 4ca92619 41866119 7fac1047 1db1d381 085ddadd b5879682 9ca90069"),e=s("81aee4bd d82ed964 5a21322e 9c4c6a93 85ed9f70 b5d916c1 b43b62ee f4d0098e ff3b1f78 e2d0d48d 50d1687b 93b97d5f 7c6d5047 406a5e68 8b352209 bcb9f822"),t=s("7dde385d 566332ec c0eabfa9 cf7822fd f209f700 24a57b1a a000c55b 881f8111 b2dcde49 4a5f485e 5bca4bd8 8a2763ae d1ca2b2f a8f05406 78cd1e0f 3ad80892"),new i({p:u,a:r,b:n,Gx:e,Gy:t,n:o,oid:a.brainpool_p512})},t.cv25519=g=function(){return new o({oid:a.cv25519})},a={nist_p256:e.from([42,134,72,206,61,3,1,7]),nist_p384:e.from([43,129,4,0,34]),nist_p521:e.from([43,129,4,0,35]),brainpool_p256:e.from([43,36,3,3,2,8,1,1,7]),brainpool_p384:e.from([43,36,3,3,2,8,1,1,11]),brainpool_p512:e.from([43,36,3,3,2,8,1,1,13]),cv25519:e.from([43,6,1,4,1,151,85,1,5,1])},u={},a)S=a[m],u[S.toString("hex")]=t[m];for(m in f={Curve25519:g,"NIST P-256":w,"NIST P-384":k,brainpoolP256r1:d,brainpoolP384r1:_,brainpoolP512r1:y},a)f[m]=t[m];t.alloc_by_oid=function(t){var r,n,i;return e.isBuffer(t)&&(t=t.toString("hex")),n=r=null,null!=(i=u[t.toLowerCase()])?r=i():n=new Error("Unknown curve OID: "+t),[n,r]},t.alloc_by_nbits=function(e){var t,r,n;return n=t=null,e||(e=256),null!=(r=function(){switch(e){case 256:return w;case 384:return k;case 521:return x;default:return null}}())?n=r():t=new Error("No curve for "+e+" bits"),[t,n]},t.alloc_by_name=function(e){var t,r,n;return n=r=null,null!=(t=f[e])?r=t():n=new Error("Unknown curve name: "+e),[n,r]}}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(t){var n=r(112),i=r(219).BigInteger,o=i.valueOf(3);function s(e,t,r,i){n.notStrictEqual(i,void 0,"Missing Z coordinate"),this.curve=e,this.x=t,this.y=r,this.z=i,this._zInv=null,this.compressed=!0}Object.defineProperty(s.prototype,"zInv",{get:function(){return null===this._zInv&&(this._zInv=this.z.modInverse(this.curve.p)),this._zInv}}),Object.defineProperty(s.prototype,"affineX",{get:function(){return this.x.multiply(this.zInv).mod(this.curve.p)}}),Object.defineProperty(s.prototype,"affineY",{get:function(){return this.y.multiply(this.zInv).mod(this.curve.p)}}),s.fromAffine=function(e,t,r){return new s(e,t,r,i.ONE)},s.prototype.equals=function(e){return e===this||(this.curve.isInfinity(this)?this.curve.isInfinity(e):this.curve.isInfinity(e)?this.curve.isInfinity(this):0===e.y.multiply(this.z).subtract(this.y.multiply(e.z)).mod(this.curve.p).signum()&&0===e.x.multiply(this.z).subtract(this.x.multiply(e.z)).mod(this.curve.p).signum())},s.prototype.negate=function(){var e=this.curve.p.subtract(this.y);return new s(this.curve,this.x,e,this.z)},s.prototype.add=function(e){if(this.curve.isInfinity(this))return e;if(this.curve.isInfinity(e))return this;var t=this.x,r=this.y,n=e.x,i=e.y.multiply(this.z).subtract(r.multiply(e.z)).mod(this.curve.p),a=n.multiply(this.z).subtract(t.multiply(e.z)).mod(this.curve.p);if(0===a.signum())return 0===i.signum()?this.twice():this.curve.infinity;var u=a.square(),f=u.multiply(a),c=t.multiply(u),l=i.square().multiply(this.z),h=l.subtract(c.shiftLeft(1)).multiply(e.z).subtract(f).multiply(a).mod(this.curve.p),p=c.multiply(o).multiply(i).subtract(r.multiply(f)).subtract(l.multiply(i)).multiply(e.z).add(i.multiply(f)).mod(this.curve.p),d=f.multiply(this.z).multiply(e.z).mod(this.curve.p);return new s(this.curve,h,p,d)},s.prototype.twice=function(){if(this.curve.isInfinity(this))return this;if(0===this.y.signum())return this.curve.infinity;var e=this.x,t=this.y,r=t.multiply(this.z),n=r.multiply(t).mod(this.curve.p),i=this.curve.a,a=e.square().multiply(o);0!==i.signum()&&(a=a.add(this.z.square().multiply(i)));var u=(a=a.mod(this.curve.p)).square().subtract(e.shiftLeft(3).multiply(n)).shiftLeft(1).multiply(r).mod(this.curve.p),f=a.multiply(o).multiply(e).subtract(n.shiftLeft(1)).shiftLeft(2).multiply(n).subtract(a.pow(3)).mod(this.curve.p),c=r.pow(3).shiftLeft(3).mod(this.curve.p);return new s(this.curve,u,f,c)},s.prototype.multiply=function(e){if(this.curve.isInfinity(this))return this;if(0===e.signum())return this.curve.infinity;for(var t=e,r=t.multiply(o),n=this.negate(),i=this,s=r.bitLength()-2;s>0;--s){i=i.twice();var a=r.testBit(s);a!=t.testBit(s)&&(i=i.add(a?this:n))}return i},s.prototype.multiplyTwo=function(e,t,r){var n;n=e.bitLength()>r.bitLength()?e.bitLength()-1:r.bitLength()-1;for(var i=this.curve.infinity,o=this.add(t);n>=0;){i=i.twice();var s=e.testBit(n),a=r.testBit(n);s?i=a?i.add(o):i.add(this):a&&(i=i.add(t)),--n}return i},s.prototype.getEncoded=function(e){if(null==e&&(e=this.compressed),this.curve.isInfinity(this))return t.from("00","hex");var r,n=this.affineX,i=this.affineY,o=Math.floor((this.curve.p.bitLength()+7)/8);return e?(r=t.alloc(1+o)).writeUInt8(i.isEven()?2:3,0):((r=t.alloc(1+o+o)).writeUInt8(4,0),i.toBuffer(o).copy(r,1+o)),n.toBuffer(o).copy(r,1),r},s.decodeFrom=function(e,t){var r,o=t.readUInt8(0),a=4!==o,u=i.fromBuffer(t.slice(1,33)),f=Math.floor((e.p.bitLength()+7)/8);if(a){n.equal(t.length,f+1,"Invalid sequence length"),n(2===o||3===o,"Invalid sequence tag");var c=3===o;r=e.pointFromX(c,u)}else{n.equal(t.length,1+f+f,"Invalid sequence length");var l=i.fromBuffer(t.slice(1+f));r=s.fromAffine(e,u,l)}return r.compressed=a,r},s.prototype.toString=function(){return this.curve.isInfinity(this)?"(INFINITY)":"("+this.affineX.toString()+","+this.affineY.toString()+")"},e.exports=s}).call(this,r(11).Buffer)},function(e,t,r){var n=r(112),i=r(219).BigInteger,o=r(716);function s(e,t,r,n,s,a,u){this.p=e,this.a=t,this.b=r,this.G=o.fromAffine(this,n,s),this.n=a,this.h=u,this.infinity=new o(this,null,null,i.ZERO),this.pOverFour=e.add(i.ONE).shiftRight(2)}s.prototype.pointFromX=function(e,t){var r=t.pow(3).add(this.a.multiply(t)).add(this.b).mod(this.p).modPow(this.pOverFour,this.p),n=r;return r.isEven()^!e&&(n=this.p.subtract(n)),o.fromAffine(this,t,n)},s.prototype.isInfinity=function(e){return e===this.infinity||0===e.z.signum()&&0!==e.y.signum()},s.prototype.isOnCurve=function(e){if(this.isInfinity(e))return!0;var t=e.affineX,r=e.affineY,n=this.a,i=this.b,o=this.p;if(t.signum()<0||t.compareTo(o)>=0)return!1;if(r.signum()<0||r.compareTo(o)>=0)return!1;var s=r.square().mod(o),a=t.pow(3).add(n.multiply(t)).add(i).mod(o);return s.equals(a)},s.prototype.validate=function(e){n(!this.isInfinity(e),"Point is at infinity"),n(this.isOnCurve(e),"Point is not on the curve");var t=e.multiply(this.n);return n(this.isInfinity(t),"Point is not a scalar multiple of G"),!0},e.exports=s},function(e,t,r){(function(t){!function(e){"use strict";var n=function(e){var t,r=new Float64Array(16);if(e)for(t=0;t<e.length;t++)r[t]=e[t];return r},i=function(){throw new Error("no PRNG")},o=new Uint8Array(16),s=new Uint8Array(32);s[0]=9;var a=n(),u=n([1]),f=n([56129,1]),c=n([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),l=n([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),h=n([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),p=n([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),d=n([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function _(e,t,r,n){e[t]=r>>24&255,e[t+1]=r>>16&255,e[t+2]=r>>8&255,e[t+3]=255&r,e[t+4]=n>>24&255,e[t+5]=n>>16&255,e[t+6]=n>>8&255,e[t+7]=255&n}function y(e,t,r,n,i){var o,s=0;for(o=0;o<i;o++)s|=e[t+o]^r[n+o];return(1&s-1>>>8)-1}function g(e,t,r,n){return y(e,t,r,n,16)}function b(e,t,r,n){return y(e,t,r,n,32)}function m(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,f=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,c=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,d=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,_=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,g=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,b=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,m=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,v=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,w=o,k=s,x=a,E=u,S=f,A=c,B=l,D=h,M=p,P=d,I=_,U=y,T=g,R=b,F=m,C=v,O=0;O<20;O+=2)w^=(i=(T^=(i=(M^=(i=(S^=(i=w+T|0)<<7|i>>>25)+w|0)<<9|i>>>23)+S|0)<<13|i>>>19)+M|0)<<18|i>>>14,A^=(i=(k^=(i=(R^=(i=(P^=(i=A+k|0)<<7|i>>>25)+A|0)<<9|i>>>23)+P|0)<<13|i>>>19)+R|0)<<18|i>>>14,I^=(i=(B^=(i=(x^=(i=(F^=(i=I+B|0)<<7|i>>>25)+I|0)<<9|i>>>23)+F|0)<<13|i>>>19)+x|0)<<18|i>>>14,C^=(i=(U^=(i=(D^=(i=(E^=(i=C+U|0)<<7|i>>>25)+C|0)<<9|i>>>23)+E|0)<<13|i>>>19)+D|0)<<18|i>>>14,w^=(i=(E^=(i=(x^=(i=(k^=(i=w+E|0)<<7|i>>>25)+w|0)<<9|i>>>23)+k|0)<<13|i>>>19)+x|0)<<18|i>>>14,A^=(i=(S^=(i=(D^=(i=(B^=(i=A+S|0)<<7|i>>>25)+A|0)<<9|i>>>23)+B|0)<<13|i>>>19)+D|0)<<18|i>>>14,I^=(i=(P^=(i=(M^=(i=(U^=(i=I+P|0)<<7|i>>>25)+I|0)<<9|i>>>23)+U|0)<<13|i>>>19)+M|0)<<18|i>>>14,C^=(i=(F^=(i=(R^=(i=(T^=(i=C+F|0)<<7|i>>>25)+C|0)<<9|i>>>23)+T|0)<<13|i>>>19)+R|0)<<18|i>>>14;w=w+o|0,k=k+s|0,x=x+a|0,E=E+u|0,S=S+f|0,A=A+c|0,B=B+l|0,D=D+h|0,M=M+p|0,P=P+d|0,I=I+_|0,U=U+y|0,T=T+g|0,R=R+b|0,F=F+m|0,C=C+v|0,e[0]=w>>>0&255,e[1]=w>>>8&255,e[2]=w>>>16&255,e[3]=w>>>24&255,e[4]=k>>>0&255,e[5]=k>>>8&255,e[6]=k>>>16&255,e[7]=k>>>24&255,e[8]=x>>>0&255,e[9]=x>>>8&255,e[10]=x>>>16&255,e[11]=x>>>24&255,e[12]=E>>>0&255,e[13]=E>>>8&255,e[14]=E>>>16&255,e[15]=E>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=A>>>0&255,e[21]=A>>>8&255,e[22]=A>>>16&255,e[23]=A>>>24&255,e[24]=B>>>0&255,e[25]=B>>>8&255,e[26]=B>>>16&255,e[27]=B>>>24&255,e[28]=D>>>0&255,e[29]=D>>>8&255,e[30]=D>>>16&255,e[31]=D>>>24&255,e[32]=M>>>0&255,e[33]=M>>>8&255,e[34]=M>>>16&255,e[35]=M>>>24&255,e[36]=P>>>0&255,e[37]=P>>>8&255,e[38]=P>>>16&255,e[39]=P>>>24&255,e[40]=I>>>0&255,e[41]=I>>>8&255,e[42]=I>>>16&255,e[43]=I>>>24&255,e[44]=U>>>0&255,e[45]=U>>>8&255,e[46]=U>>>16&255,e[47]=U>>>24&255,e[48]=T>>>0&255,e[49]=T>>>8&255,e[50]=T>>>16&255,e[51]=T>>>24&255,e[52]=R>>>0&255,e[53]=R>>>8&255,e[54]=R>>>16&255,e[55]=R>>>24&255,e[56]=F>>>0&255,e[57]=F>>>8&255,e[58]=F>>>16&255,e[59]=F>>>24&255,e[60]=C>>>0&255,e[61]=C>>>8&255,e[62]=C>>>16&255,e[63]=C>>>24&255}(e,t,r,n)}function v(e,t,r,n){!function(e,t,r,n){for(var i,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,s=255&r[0]|(255&r[1])<<8|(255&r[2])<<16|(255&r[3])<<24,a=255&r[4]|(255&r[5])<<8|(255&r[6])<<16|(255&r[7])<<24,u=255&r[8]|(255&r[9])<<8|(255&r[10])<<16|(255&r[11])<<24,f=255&r[12]|(255&r[13])<<8|(255&r[14])<<16|(255&r[15])<<24,c=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,l=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,h=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,p=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,d=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,_=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,y=255&r[16]|(255&r[17])<<8|(255&r[18])<<16|(255&r[19])<<24,g=255&r[20]|(255&r[21])<<8|(255&r[22])<<16|(255&r[23])<<24,b=255&r[24]|(255&r[25])<<8|(255&r[26])<<16|(255&r[27])<<24,m=255&r[28]|(255&r[29])<<8|(255&r[30])<<16|(255&r[31])<<24,v=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,w=0;w<20;w+=2)o^=(i=(g^=(i=(p^=(i=(f^=(i=o+g|0)<<7|i>>>25)+o|0)<<9|i>>>23)+f|0)<<13|i>>>19)+p|0)<<18|i>>>14,c^=(i=(s^=(i=(b^=(i=(d^=(i=c+s|0)<<7|i>>>25)+c|0)<<9|i>>>23)+d|0)<<13|i>>>19)+b|0)<<18|i>>>14,_^=(i=(l^=(i=(a^=(i=(m^=(i=_+l|0)<<7|i>>>25)+_|0)<<9|i>>>23)+m|0)<<13|i>>>19)+a|0)<<18|i>>>14,v^=(i=(y^=(i=(h^=(i=(u^=(i=v+y|0)<<7|i>>>25)+v|0)<<9|i>>>23)+u|0)<<13|i>>>19)+h|0)<<18|i>>>14,o^=(i=(u^=(i=(a^=(i=(s^=(i=o+u|0)<<7|i>>>25)+o|0)<<9|i>>>23)+s|0)<<13|i>>>19)+a|0)<<18|i>>>14,c^=(i=(f^=(i=(h^=(i=(l^=(i=c+f|0)<<7|i>>>25)+c|0)<<9|i>>>23)+l|0)<<13|i>>>19)+h|0)<<18|i>>>14,_^=(i=(d^=(i=(p^=(i=(y^=(i=_+d|0)<<7|i>>>25)+_|0)<<9|i>>>23)+y|0)<<13|i>>>19)+p|0)<<18|i>>>14,v^=(i=(m^=(i=(b^=(i=(g^=(i=v+m|0)<<7|i>>>25)+v|0)<<9|i>>>23)+g|0)<<13|i>>>19)+b|0)<<18|i>>>14;e[0]=o>>>0&255,e[1]=o>>>8&255,e[2]=o>>>16&255,e[3]=o>>>24&255,e[4]=c>>>0&255,e[5]=c>>>8&255,e[6]=c>>>16&255,e[7]=c>>>24&255,e[8]=_>>>0&255,e[9]=_>>>8&255,e[10]=_>>>16&255,e[11]=_>>>24&255,e[12]=v>>>0&255,e[13]=v>>>8&255,e[14]=v>>>16&255,e[15]=v>>>24&255,e[16]=l>>>0&255,e[17]=l>>>8&255,e[18]=l>>>16&255,e[19]=l>>>24&255,e[20]=h>>>0&255,e[21]=h>>>8&255,e[22]=h>>>16&255,e[23]=h>>>24&255,e[24]=p>>>0&255,e[25]=p>>>8&255,e[26]=p>>>16&255,e[27]=p>>>24&255,e[28]=d>>>0&255,e[29]=d>>>8&255,e[30]=d>>>16&255,e[31]=d>>>24&255}(e,t,r,n)}var w=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function k(e,t,r,n,i,o,s){var a,u,f=new Uint8Array(16),c=new Uint8Array(64);for(u=0;u<16;u++)f[u]=0;for(u=0;u<8;u++)f[u]=o[u];for(;i>=64;){for(m(c,f,s,w),u=0;u<64;u++)e[t+u]=r[n+u]^c[u];for(a=1,u=8;u<16;u++)a=a+(255&f[u])|0,f[u]=255&a,a>>>=8;i-=64,t+=64,n+=64}if(i>0)for(m(c,f,s,w),u=0;u<i;u++)e[t+u]=r[n+u]^c[u];return 0}function x(e,t,r,n,i){var o,s,a=new Uint8Array(16),u=new Uint8Array(64);for(s=0;s<16;s++)a[s]=0;for(s=0;s<8;s++)a[s]=n[s];for(;r>=64;){for(m(u,a,i,w),s=0;s<64;s++)e[t+s]=u[s];for(o=1,s=8;s<16;s++)o=o+(255&a[s])|0,a[s]=255&o,o>>>=8;r-=64,t+=64}if(r>0)for(m(u,a,i,w),s=0;s<r;s++)e[t+s]=u[s];return 0}function E(e,t,r,n,i){var o=new Uint8Array(32);v(o,n,i,w);for(var s=new Uint8Array(8),a=0;a<8;a++)s[a]=n[a+16];return x(e,t,r,s,o)}function S(e,t,r,n,i,o,s){var a=new Uint8Array(32);v(a,o,s,w);for(var u=new Uint8Array(8),f=0;f<8;f++)u[f]=o[f+16];return k(e,t,r,n,i,u,a)}var A=function(e){var t,r,n,i,o,s,a,u;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,r=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|r<<3),n=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(r>>>10|n<<6),i=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(n>>>7|i<<9),o=255&e[8]|(255&e[9])<<8,this.r[4]=255&(i>>>4|o<<12),this.r[5]=o>>>1&8190,s=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(o>>>14|s<<2),a=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(s>>>11|a<<5),u=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(a>>>8|u<<8),this.r[9]=u>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function B(e,t,r,n,i,o){var s=new A(o);return s.update(r,n,i),s.finish(e,t),0}function D(e,t,r,n,i,o){var s=new Uint8Array(16);return B(s,0,r,n,i,o),g(e,t,s,0)}function M(e,t,r,n,i){var o;if(r<32)return-1;for(S(e,0,t,0,r,n,i),B(e,16,e,32,r-32,e),o=0;o<16;o++)e[o]=0;return 0}function P(e,t,r,n,i){var o,s=new Uint8Array(32);if(r<32)return-1;if(E(s,0,32,n,i),0!==D(t,16,t,32,r-32,s))return-1;for(S(e,0,t,0,r,n,i),o=0;o<32;o++)e[o]=0;return 0}function I(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function U(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function T(e,t,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(e[o]^t[o]),e[o]^=n,t[o]^=n}function R(e,t){var r,i,o,s=n(),a=n();for(r=0;r<16;r++)a[r]=t[r];for(U(a),U(a),U(a),i=0;i<2;i++){for(s[0]=a[0]-65517,r=1;r<15;r++)s[r]=a[r]-65535-(s[r-1]>>16&1),s[r-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),o=s[15]>>16&1,s[14]&=65535,T(a,s,1-o)}for(r=0;r<16;r++)e[2*r]=255&a[r],e[2*r+1]=a[r]>>8}function F(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return R(r,e),R(n,t),b(r,0,n,0)}function C(e){var t=new Uint8Array(32);return R(t,e),1&t[0]}function O(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function z(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]+r[n]}function L(e,t,r){for(var n=0;n<16;n++)e[n]=t[n]-r[n]}function N(e,t,r){var n,i,o=0,s=0,a=0,u=0,f=0,c=0,l=0,h=0,p=0,d=0,_=0,y=0,g=0,b=0,m=0,v=0,w=0,k=0,x=0,E=0,S=0,A=0,B=0,D=0,M=0,P=0,I=0,U=0,T=0,R=0,F=0,C=r[0],O=r[1],z=r[2],L=r[3],N=r[4],j=r[5],K=r[6],q=r[7],G=r[8],H=r[9],V=r[10],Z=r[11],W=r[12],Y=r[13],X=r[14],$=r[15];o+=(n=t[0])*C,s+=n*O,a+=n*z,u+=n*L,f+=n*N,c+=n*j,l+=n*K,h+=n*q,p+=n*G,d+=n*H,_+=n*V,y+=n*Z,g+=n*W,b+=n*Y,m+=n*X,v+=n*$,s+=(n=t[1])*C,a+=n*O,u+=n*z,f+=n*L,c+=n*N,l+=n*j,h+=n*K,p+=n*q,d+=n*G,_+=n*H,y+=n*V,g+=n*Z,b+=n*W,m+=n*Y,v+=n*X,w+=n*$,a+=(n=t[2])*C,u+=n*O,f+=n*z,c+=n*L,l+=n*N,h+=n*j,p+=n*K,d+=n*q,_+=n*G,y+=n*H,g+=n*V,b+=n*Z,m+=n*W,v+=n*Y,w+=n*X,k+=n*$,u+=(n=t[3])*C,f+=n*O,c+=n*z,l+=n*L,h+=n*N,p+=n*j,d+=n*K,_+=n*q,y+=n*G,g+=n*H,b+=n*V,m+=n*Z,v+=n*W,w+=n*Y,k+=n*X,x+=n*$,f+=(n=t[4])*C,c+=n*O,l+=n*z,h+=n*L,p+=n*N,d+=n*j,_+=n*K,y+=n*q,g+=n*G,b+=n*H,m+=n*V,v+=n*Z,w+=n*W,k+=n*Y,x+=n*X,E+=n*$,c+=(n=t[5])*C,l+=n*O,h+=n*z,p+=n*L,d+=n*N,_+=n*j,y+=n*K,g+=n*q,b+=n*G,m+=n*H,v+=n*V,w+=n*Z,k+=n*W,x+=n*Y,E+=n*X,S+=n*$,l+=(n=t[6])*C,h+=n*O,p+=n*z,d+=n*L,_+=n*N,y+=n*j,g+=n*K,b+=n*q,m+=n*G,v+=n*H,w+=n*V,k+=n*Z,x+=n*W,E+=n*Y,S+=n*X,A+=n*$,h+=(n=t[7])*C,p+=n*O,d+=n*z,_+=n*L,y+=n*N,g+=n*j,b+=n*K,m+=n*q,v+=n*G,w+=n*H,k+=n*V,x+=n*Z,E+=n*W,S+=n*Y,A+=n*X,B+=n*$,p+=(n=t[8])*C,d+=n*O,_+=n*z,y+=n*L,g+=n*N,b+=n*j,m+=n*K,v+=n*q,w+=n*G,k+=n*H,x+=n*V,E+=n*Z,S+=n*W,A+=n*Y,B+=n*X,D+=n*$,d+=(n=t[9])*C,_+=n*O,y+=n*z,g+=n*L,b+=n*N,m+=n*j,v+=n*K,w+=n*q,k+=n*G,x+=n*H,E+=n*V,S+=n*Z,A+=n*W,B+=n*Y,D+=n*X,M+=n*$,_+=(n=t[10])*C,y+=n*O,g+=n*z,b+=n*L,m+=n*N,v+=n*j,w+=n*K,k+=n*q,x+=n*G,E+=n*H,S+=n*V,A+=n*Z,B+=n*W,D+=n*Y,M+=n*X,P+=n*$,y+=(n=t[11])*C,g+=n*O,b+=n*z,m+=n*L,v+=n*N,w+=n*j,k+=n*K,x+=n*q,E+=n*G,S+=n*H,A+=n*V,B+=n*Z,D+=n*W,M+=n*Y,P+=n*X,I+=n*$,g+=(n=t[12])*C,b+=n*O,m+=n*z,v+=n*L,w+=n*N,k+=n*j,x+=n*K,E+=n*q,S+=n*G,A+=n*H,B+=n*V,D+=n*Z,M+=n*W,P+=n*Y,I+=n*X,U+=n*$,b+=(n=t[13])*C,m+=n*O,v+=n*z,w+=n*L,k+=n*N,x+=n*j,E+=n*K,S+=n*q,A+=n*G,B+=n*H,D+=n*V,M+=n*Z,P+=n*W,I+=n*Y,U+=n*X,T+=n*$,m+=(n=t[14])*C,v+=n*O,w+=n*z,k+=n*L,x+=n*N,E+=n*j,S+=n*K,A+=n*q,B+=n*G,D+=n*H,M+=n*V,P+=n*Z,I+=n*W,U+=n*Y,T+=n*X,R+=n*$,v+=(n=t[15])*C,s+=38*(k+=n*z),a+=38*(x+=n*L),u+=38*(E+=n*N),f+=38*(S+=n*j),c+=38*(A+=n*K),l+=38*(B+=n*q),h+=38*(D+=n*G),p+=38*(M+=n*H),d+=38*(P+=n*V),_+=38*(I+=n*Z),y+=38*(U+=n*W),g+=38*(T+=n*Y),b+=38*(R+=n*X),m+=38*(F+=n*$),o=(n=(o+=38*(w+=n*O))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),_=(n=_+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),_=(n=_+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=f,e[5]=c,e[6]=l,e[7]=h,e[8]=p,e[9]=d,e[10]=_,e[11]=y,e[12]=g,e[13]=b,e[14]=m,e[15]=v}function j(e,t){N(e,t,t)}function K(e,t){var r,i=n();for(r=0;r<16;r++)i[r]=t[r];for(r=253;r>=0;r--)j(i,i),2!==r&&4!==r&&N(i,i,t);for(r=0;r<16;r++)e[r]=i[r]}function q(e,t,r){var i,o,s=new Uint8Array(32),a=new Float64Array(80),u=n(),c=n(),l=n(),h=n(),p=n(),d=n();for(o=0;o<31;o++)s[o]=t[o];for(s[31]=127&t[31]|64,s[0]&=248,O(a,r),o=0;o<16;o++)c[o]=a[o],h[o]=u[o]=l[o]=0;for(u[0]=h[0]=1,o=254;o>=0;--o)T(u,c,i=s[o>>>3]>>>(7&o)&1),T(l,h,i),z(p,u,l),L(u,u,l),z(l,c,h),L(c,c,h),j(h,p),j(d,u),N(u,l,u),N(l,c,p),z(p,u,l),L(u,u,l),j(c,u),L(l,h,d),N(u,l,f),z(u,u,h),N(l,l,u),N(u,h,d),N(h,c,a),j(c,p),T(u,c,i),T(l,h,i);for(o=0;o<16;o++)a[o+16]=u[o],a[o+32]=l[o],a[o+48]=c[o],a[o+64]=h[o];var _=a.subarray(32),y=a.subarray(16);return K(_,_),N(y,y,_),R(e,y),0}function G(e,t){return q(e,t,s)}function H(e,t){return i(t,32),G(e,t)}function V(e,t,r){var n=new Uint8Array(32);return q(n,r,t),v(e,o,n,w)}A.prototype.blocks=function(e,t,r){for(var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k=this.fin?0:2048,x=this.h[0],E=this.h[1],S=this.h[2],A=this.h[3],B=this.h[4],D=this.h[5],M=this.h[6],P=this.h[7],I=this.h[8],U=this.h[9],T=this.r[0],R=this.r[1],F=this.r[2],C=this.r[3],O=this.r[4],z=this.r[5],L=this.r[6],N=this.r[7],j=this.r[8],K=this.r[9];r>=16;)h=l=0,h+=(x+=8191&(n=255&e[t+0]|(255&e[t+1])<<8))*T,h+=(E+=8191&(n>>>13|(i=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*K),h+=(S+=8191&(i>>>10|(o=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*j),h+=(A+=8191&(o>>>7|(s=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*N),l=(h+=(B+=8191&(s>>>4|(a=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*L))>>>13,h&=8191,h+=(D+=a>>>1&8191)*(5*z),h+=(M+=8191&(a>>>14|(u=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*O),h+=(P+=8191&(u>>>11|(f=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*C),h+=(I+=8191&(f>>>8|(c=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*F),p=l+=(h+=(U+=c>>>5|k)*(5*R))>>>13,p+=x*R,p+=E*T,p+=S*(5*K),p+=A*(5*j),l=(p+=B*(5*N))>>>13,p&=8191,p+=D*(5*L),p+=M*(5*z),p+=P*(5*O),p+=I*(5*C),l+=(p+=U*(5*F))>>>13,p&=8191,d=l,d+=x*F,d+=E*R,d+=S*T,d+=A*(5*K),l=(d+=B*(5*j))>>>13,d&=8191,d+=D*(5*N),d+=M*(5*L),d+=P*(5*z),d+=I*(5*O),_=l+=(d+=U*(5*C))>>>13,_+=x*C,_+=E*F,_+=S*R,_+=A*T,l=(_+=B*(5*K))>>>13,_&=8191,_+=D*(5*j),_+=M*(5*N),_+=P*(5*L),_+=I*(5*z),y=l+=(_+=U*(5*O))>>>13,y+=x*O,y+=E*C,y+=S*F,y+=A*R,l=(y+=B*T)>>>13,y&=8191,y+=D*(5*K),y+=M*(5*j),y+=P*(5*N),y+=I*(5*L),g=l+=(y+=U*(5*z))>>>13,g+=x*z,g+=E*O,g+=S*C,g+=A*F,l=(g+=B*R)>>>13,g&=8191,g+=D*T,g+=M*(5*K),g+=P*(5*j),g+=I*(5*N),b=l+=(g+=U*(5*L))>>>13,b+=x*L,b+=E*z,b+=S*O,b+=A*C,l=(b+=B*F)>>>13,b&=8191,b+=D*R,b+=M*T,b+=P*(5*K),b+=I*(5*j),m=l+=(b+=U*(5*N))>>>13,m+=x*N,m+=E*L,m+=S*z,m+=A*O,l=(m+=B*C)>>>13,m&=8191,m+=D*F,m+=M*R,m+=P*T,m+=I*(5*K),v=l+=(m+=U*(5*j))>>>13,v+=x*j,v+=E*N,v+=S*L,v+=A*z,l=(v+=B*O)>>>13,v&=8191,v+=D*C,v+=M*F,v+=P*R,v+=I*T,w=l+=(v+=U*(5*K))>>>13,w+=x*K,w+=E*j,w+=S*N,w+=A*L,l=(w+=B*z)>>>13,w&=8191,w+=D*O,w+=M*C,w+=P*F,w+=I*R,x=h=8191&(l=(l=((l+=(w+=U*T)>>>13)<<2)+l|0)+(h&=8191)|0),E=p+=l>>>=13,S=d&=8191,A=_&=8191,B=y&=8191,D=g&=8191,M=b&=8191,P=m&=8191,I=v&=8191,U=w&=8191,t+=16,r-=16;this.h[0]=x,this.h[1]=E,this.h[2]=S,this.h[3]=A,this.h[4]=B,this.h[5]=D,this.h[6]=M,this.h[7]=P,this.h[8]=I,this.h[9]=U},A.prototype.finish=function(e,t){var r,n,i,o,s=new Uint16Array(10);if(this.leftover){for(o=this.leftover,this.buffer[o++]=1;o<16;o++)this.buffer[o]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(r=this.h[1]>>>13,this.h[1]&=8191,o=2;o<10;o++)this.h[o]+=r,r=this.h[o]>>>13,this.h[o]&=8191;for(this.h[0]+=5*r,r=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=r,r=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=r,s[0]=this.h[0]+5,r=s[0]>>>13,s[0]&=8191,o=1;o<10;o++)s[o]=this.h[o]+r,r=s[o]>>>13,s[o]&=8191;for(s[9]-=8192,n=(s[9]>>>15)-1,o=0;o<10;o++)s[o]&=n;for(n=~n,o=0;o<10;o++)this.h[o]=this.h[o]&n|s[o];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),i=this.h[0]+this.pad[0],this.h[0]=65535&i,o=1;o<8;o++)i=(this.h[o]+this.pad[o]|0)+(i>>>16)|0,this.h[o]=65535&i;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},A.prototype.update=function(e,t,r){var n,i;if(this.leftover){for((i=16-this.leftover)>r&&(i=r),n=0;n<i;n++)this.buffer[this.leftover+n]=e[t+n];if(r-=i,t+=i,this.leftover+=i,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(r>=16&&(i=r-r%16,this.blocks(e,t,i),t+=i,r-=i),r){for(n=0;n<r;n++)this.buffer[this.leftover+n]=e[t+n];this.leftover+=r}};var Z=M,W=P;var Y=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function X(e,t,r,n){for(var i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A,B,D,M,P=new Int32Array(16),I=new Int32Array(16),U=e[0],T=e[1],R=e[2],F=e[3],C=e[4],O=e[5],z=e[6],L=e[7],N=t[0],j=t[1],K=t[2],q=t[3],G=t[4],H=t[5],V=t[6],Z=t[7],W=0;n>=128;){for(k=0;k<16;k++)x=8*k+W,P[k]=r[x+0]<<24|r[x+1]<<16|r[x+2]<<8|r[x+3],I[k]=r[x+4]<<24|r[x+5]<<16|r[x+6]<<8|r[x+7];for(k=0;k<80;k++)if(i=U,o=T,s=R,a=F,u=C,f=O,c=z,L,h=N,p=j,d=K,_=q,y=G,g=H,b=V,Z,A=65535&(S=Z),B=S>>>16,D=65535&(E=L),M=E>>>16,A+=65535&(S=(G>>>14|C<<18)^(G>>>18|C<<14)^(C>>>9|G<<23)),B+=S>>>16,D+=65535&(E=(C>>>14|G<<18)^(C>>>18|G<<14)^(G>>>9|C<<23)),M+=E>>>16,A+=65535&(S=G&H^~G&V),B+=S>>>16,D+=65535&(E=C&O^~C&z),M+=E>>>16,E=Y[2*k],A+=65535&(S=Y[2*k+1]),B+=S>>>16,D+=65535&E,M+=E>>>16,E=P[k%16],B+=(S=I[k%16])>>>16,D+=65535&E,M+=E>>>16,D+=(B+=(A+=65535&S)>>>16)>>>16,A=65535&(S=w=65535&A|B<<16),B=S>>>16,D=65535&(E=v=65535&D|(M+=D>>>16)<<16),M=E>>>16,A+=65535&(S=(N>>>28|U<<4)^(U>>>2|N<<30)^(U>>>7|N<<25)),B+=S>>>16,D+=65535&(E=(U>>>28|N<<4)^(N>>>2|U<<30)^(N>>>7|U<<25)),M+=E>>>16,B+=(S=N&j^N&K^j&K)>>>16,D+=65535&(E=U&T^U&R^T&R),M+=E>>>16,l=65535&(D+=(B+=(A+=65535&S)>>>16)>>>16)|(M+=D>>>16)<<16,m=65535&A|B<<16,A=65535&(S=_),B=S>>>16,D=65535&(E=a),M=E>>>16,B+=(S=w)>>>16,D+=65535&(E=v),M+=E>>>16,T=i,R=o,F=s,C=a=65535&(D+=(B+=(A+=65535&S)>>>16)>>>16)|(M+=D>>>16)<<16,O=u,z=f,L=c,U=l,j=h,K=p,q=d,G=_=65535&A|B<<16,H=y,V=g,Z=b,N=m,k%16==15)for(x=0;x<16;x++)E=P[x],A=65535&(S=I[x]),B=S>>>16,D=65535&E,M=E>>>16,E=P[(x+9)%16],A+=65535&(S=I[(x+9)%16]),B+=S>>>16,D+=65535&E,M+=E>>>16,v=P[(x+1)%16],A+=65535&(S=((w=I[(x+1)%16])>>>1|v<<31)^(w>>>8|v<<24)^(w>>>7|v<<25)),B+=S>>>16,D+=65535&(E=(v>>>1|w<<31)^(v>>>8|w<<24)^v>>>7),M+=E>>>16,v=P[(x+14)%16],B+=(S=((w=I[(x+14)%16])>>>19|v<<13)^(v>>>29|w<<3)^(w>>>6|v<<26))>>>16,D+=65535&(E=(v>>>19|w<<13)^(w>>>29|v<<3)^v>>>6),M+=E>>>16,M+=(D+=(B+=(A+=65535&S)>>>16)>>>16)>>>16,P[x]=65535&D|M<<16,I[x]=65535&A|B<<16;A=65535&(S=N),B=S>>>16,D=65535&(E=U),M=E>>>16,E=e[0],B+=(S=t[0])>>>16,D+=65535&E,M+=E>>>16,M+=(D+=(B+=(A+=65535&S)>>>16)>>>16)>>>16,e[0]=U=65535&D|M<<16,t[0]=N=65535&A|B<<16,A=65535&(S=j),B=S>>>16,D=65535&(E=T),M=E>>>16,E=e[1],B+=(S=t[1])>>>16,D+=65535&E,M+=E>>>16,M+=(D+=(B+=(A+=65535&S)>>>16)>>>16)>>>16,e[1]=T=65535&D|M<<16,t[1]=j=65535&A|B<<16,A=65535&(S=K),B=S>>>16,D=65535&(E=R),M=E>>>16,E=e[2],B+=(S=t[2])>>>16,D+=65535&E,M+=E>>>16,M+=(D+=(B+=(A+=65535&S)>>>16)>>>16)>>>16,e[2]=R=65535&D|M<<16,t[2]=K=65535&A|B<<16,A=65535&(S=q),B=S>>>16,D=65535&(E=F),M=E>>>16,E=e[3],B+=(S=t[3])>>>16,D+=65535&E,M+=E>>>16,M+=(D+=(B+=(A+=65535&S)>>>16)>>>16)>>>16,e[3]=F=65535&D|M<<16,t[3]=q=65535&A|B<<16,A=65535&(S=G),B=S>>>16,D=65535&(E=C),M=E>>>16,E=e[4],B+=(S=t[4])>>>16,D+=65535&E,M+=E>>>16,M+=(D+=(B+=(A+=65535&S)>>>16)>>>16)>>>16,e[4]=C=65535&D|M<<16,t[4]=G=65535&A|B<<16,A=65535&(S=H),B=S>>>16,D=65535&(E=O),M=E>>>16,E=e[5],B+=(S=t[5])>>>16,D+=65535&E,M+=E>>>16,M+=(D+=(B+=(A+=65535&S)>>>16)>>>16)>>>16,e[5]=O=65535&D|M<<16,t[5]=H=65535&A|B<<16,A=65535&(S=V),B=S>>>16,D=65535&(E=z),M=E>>>16,E=e[6],B+=(S=t[6])>>>16,D+=65535&E,M+=E>>>16,M+=(D+=(B+=(A+=65535&S)>>>16)>>>16)>>>16,e[6]=z=65535&D|M<<16,t[6]=V=65535&A|B<<16,A=65535&(S=Z),B=S>>>16,D=65535&(E=L),M=E>>>16,E=e[7],B+=(S=t[7])>>>16,D+=65535&E,M+=E>>>16,M+=(D+=(B+=(A+=65535&S)>>>16)>>>16)>>>16,e[7]=L=65535&D|M<<16,t[7]=Z=65535&A|B<<16,W+=128,n-=128}return n}function $(e,t,r){var n,i=new Int32Array(8),o=new Int32Array(8),s=new Uint8Array(256),a=r;for(i[0]=1779033703,i[1]=3144134277,i[2]=1013904242,i[3]=2773480762,i[4]=1359893119,i[5]=2600822924,i[6]=528734635,i[7]=1541459225,o[0]=4089235720,o[1]=2227873595,o[2]=4271175723,o[3]=1595750129,o[4]=2917565137,o[5]=725511199,o[6]=4215389547,o[7]=327033209,X(i,o,t,r),r%=128,n=0;n<r;n++)s[n]=t[a-r+n];for(s[r]=128,s[(r=256-128*(r<112?1:0))-9]=0,_(s,r-8,a/536870912|0,a<<3),X(i,o,s,r),n=0;n<8;n++)_(e,8*n,i[n],o[n]);return 0}function J(e,t){var r=n(),i=n(),o=n(),s=n(),a=n(),u=n(),f=n(),c=n(),h=n();L(r,e[1],e[0]),L(h,t[1],t[0]),N(r,r,h),z(i,e[0],e[1]),z(h,t[0],t[1]),N(i,i,h),N(o,e[3],t[3]),N(o,o,l),N(s,e[2],t[2]),z(s,s,s),L(a,i,r),L(u,s,o),z(f,s,o),z(c,i,r),N(e[0],a,u),N(e[1],c,f),N(e[2],f,u),N(e[3],a,c)}function Q(e,t,r){var n;for(n=0;n<4;n++)T(e[n],t[n],r)}function ee(e,t){var r=n(),i=n(),o=n();K(o,t[2]),N(r,t[0],o),N(i,t[1],o),R(e,i),e[31]^=C(r)<<7}function te(e,t,r){var n,i;for(I(e[0],a),I(e[1],u),I(e[2],u),I(e[3],a),i=255;i>=0;--i)Q(e,t,n=r[i/8|0]>>(7&i)&1),J(t,e),J(e,e),Q(e,t,n)}function re(e,t){var r=[n(),n(),n(),n()];I(r[0],h),I(r[1],p),I(r[2],u),N(r[3],h,p),te(e,r,t)}function ne(e,t,r){var o,s=new Uint8Array(64),a=[n(),n(),n(),n()];for(r||i(t,32),$(s,t,32),s[0]&=248,s[31]&=127,s[31]|=64,re(a,s),ee(e,a),o=0;o<32;o++)t[o+32]=e[o];return 0}var ie=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function oe(e,t){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i<o;++i)t[i]+=r-16*t[n]*ie[i-(n-32)],r=t[i]+128>>8,t[i]-=256*r;t[i]+=r,t[n]=0}for(r=0,i=0;i<32;i++)t[i]+=r-(t[31]>>4)*ie[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*ie[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function se(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;oe(e,r)}function ae(e,t,r,i){var o,s,a=new Uint8Array(64),u=new Uint8Array(64),f=new Uint8Array(64),c=new Float64Array(64),l=[n(),n(),n(),n()];$(a,i,32),a[0]&=248,a[31]&=127,a[31]|=64;var h=r+64;for(o=0;o<r;o++)e[64+o]=t[o];for(o=0;o<32;o++)e[32+o]=a[32+o];for($(f,e.subarray(32),r+32),se(f),re(l,f),ee(e,l),o=32;o<64;o++)e[o]=i[o];for($(u,e,r+64),se(u),o=0;o<64;o++)c[o]=0;for(o=0;o<32;o++)c[o]=f[o];for(o=0;o<32;o++)for(s=0;s<32;s++)c[o+s]+=u[o]*a[s];return oe(e.subarray(32),c),h}function ue(e,t){var r=n(),i=n(),o=n(),s=n(),f=n(),l=n(),h=n();return I(e[2],u),O(e[1],t),j(o,e[1]),N(s,o,c),L(o,o,e[2]),z(s,e[2],s),j(f,s),j(l,f),N(h,l,f),N(r,h,o),N(r,r,s),function(e,t){var r,i=n();for(r=0;r<16;r++)i[r]=t[r];for(r=250;r>=0;r--)j(i,i),1!==r&&N(i,i,t);for(r=0;r<16;r++)e[r]=i[r]}(r,r),N(r,r,o),N(r,r,s),N(r,r,s),N(e[0],r,s),j(i,e[0]),N(i,i,s),F(i,o)&&N(e[0],e[0],d),j(i,e[0]),N(i,i,s),F(i,o)?-1:(C(e[0])===t[31]>>7&&L(e[0],a,e[0]),N(e[3],e[0],e[1]),0)}function fe(e,t,r,i){var o,s=new Uint8Array(32),a=new Uint8Array(64),u=[n(),n(),n(),n()],f=[n(),n(),n(),n()];if(-1,r<64)return-1;if(ue(f,i))return-1;for(o=0;o<r;o++)e[o]=t[o];for(o=0;o<32;o++)e[o+32]=i[o];if($(a,e,r),se(a),te(u,f,a),re(f,t.subarray(32)),J(u,f),ee(s,u),r-=64,b(t,0,s,0)){for(o=0;o<r;o++)e[o]=0;return-1}for(o=0;o<r;o++)e[o]=t[o+64];return r}var ce=32,le=24,he=32,pe=32,de=le;function _e(e,t){if(e.length!==ce)throw new Error("bad key size");if(t.length!==le)throw new Error("bad nonce size")}function ye(){var e,t;for(t=0;t<arguments.length;t++)if("[object Uint8Array]"!==(e=Object.prototype.toString.call(arguments[t])))throw new TypeError("unexpected type "+e+", use Uint8Array")}function ge(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:v,crypto_stream_xor:S,crypto_stream:E,crypto_stream_salsa20_xor:k,crypto_stream_salsa20:x,crypto_onetimeauth:B,crypto_onetimeauth_verify:D,crypto_verify_16:g,crypto_verify_32:b,crypto_secretbox:M,crypto_secretbox_open:P,crypto_scalarmult:q,crypto_scalarmult_base:G,crypto_box_beforenm:V,crypto_box_afternm:Z,crypto_box:function(e,t,r,n,i,o){var s=new Uint8Array(32);return V(s,i,o),Z(e,t,r,n,s)},crypto_box_open:function(e,t,r,n,i,o){var s=new Uint8Array(32);return V(s,i,o),W(e,t,r,n,s)},crypto_box_keypair:H,crypto_hash:$,crypto_sign:ae,crypto_sign_keypair:ne,crypto_sign_open:fe,crypto_secretbox_KEYBYTES:ce,crypto_secretbox_NONCEBYTES:le,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:16,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:he,crypto_box_SECRETKEYBYTES:pe,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:de,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:64,crypto_sign_PUBLICKEYBYTES:32,crypto_sign_SECRETKEYBYTES:64,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64},e.util={},e.util.decodeUTF8=function(e){var t,r=unescape(encodeURIComponent(e)),n=new Uint8Array(r.length);for(t=0;t<r.length;t++)n[t]=r.charCodeAt(t);return n},e.util.encodeUTF8=function(e){var t,r=[];for(t=0;t<e.length;t++)r.push(String.fromCharCode(e[t]));return decodeURIComponent(escape(r.join("")))},e.util.encodeBase64=function(e){if("undefined"==typeof btoa)return new t(e).toString("base64");var r,n=[],i=e.length;for(r=0;r<i;r++)n.push(String.fromCharCode(e[r]));return btoa(n.join(""))},e.util.decodeBase64=function(e){if("undefined"==typeof atob)return new Uint8Array(Array.prototype.slice.call(new t(e,"base64"),0));var r,n=atob(e),i=new Uint8Array(n.length);for(r=0;r<n.length;r++)i[r]=n.charCodeAt(r);return i},e.randomBytes=function(e){var t=new Uint8Array(e);return i(t,e),t},e.secretbox=function(e,t,r){ye(e,t,r),_e(r,t);for(var n=new Uint8Array(32+e.length),i=new Uint8Array(n.length),o=0;o<e.length;o++)n[o+32]=e[o];return M(i,n,n.length,t,r),i.subarray(16)},e.secretbox.open=function(e,t,r){ye(e,t,r),_e(r,t);for(var n=new Uint8Array(16+e.length),i=new Uint8Array(n.length),o=0;o<e.length;o++)n[o+16]=e[o];return!(n.length<32)&&(0===P(i,n,n.length,t,r)&&i.subarray(32))},e.secretbox.keyLength=ce,e.secretbox.nonceLength=le,e.secretbox.overheadLength=16,e.scalarMult=function(e,t){if(ye(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var r=new Uint8Array(32);return q(r,e,t),r},e.scalarMult.base=function(e){if(ye(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return G(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,r,n,i){var o=e.box.before(n,i);return e.secretbox(t,r,o)},e.box.before=function(e,t){ye(e,t),function(e,t){if(e.length!==he)throw new Error("bad public key size");if(t.length!==pe)throw new Error("bad secret key size")}(e,t);var r=new Uint8Array(32);return V(r,e,t),r},e.box.after=e.secretbox,e.box.open=function(t,r,n,i){var o=e.box.before(n,i);return e.secretbox.open(t,r,o)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(he),t=new Uint8Array(pe);return H(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(ye(e),e.length!==pe)throw new Error("bad secret key size");var t=new Uint8Array(he);return G(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=he,e.box.secretKeyLength=pe,e.box.sharedKeyLength=32,e.box.nonceLength=de,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(ye(e,t),64!==t.length)throw new Error("bad secret key size");var r=new Uint8Array(64+e.length);return ae(r,e,e.length,t),r},e.sign.open=function(e,t){if(2!==arguments.length)throw new Error("nacl.sign.open accepts 2 arguments; did you mean to use nacl.sign.detached.verify?");if(ye(e,t),32!==t.length)throw new Error("bad public key size");var r=new Uint8Array(e.length),n=fe(r,e,e.length,t);if(n<0)return null;for(var i=new Uint8Array(n),o=0;o<i.length;o++)i[o]=r[o];return i},e.sign.detached=function(t,r){for(var n=e.sign(t,r),i=new Uint8Array(64),o=0;o<i.length;o++)i[o]=n[o];return i},e.sign.detached.verify=function(e,t,r){if(ye(e,t,r),64!==t.length)throw new Error("bad signature size");if(32!==r.length)throw new Error("bad public key size");var n,i=new Uint8Array(64+e.length),o=new Uint8Array(64+e.length);for(n=0;n<64;n++)i[n]=t[n];for(n=0;n<e.length;n++)i[n+64]=e[n];return fe(o,i,i.length,r)>=0},e.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return ne(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(ye(e),64!==e.length)throw new Error("bad secret key size");for(var t=new Uint8Array(32),r=0;r<t.length;r++)t[r]=e[32+r];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(ye(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(32),r=new Uint8Array(64),n=0;n<32;n++)r[n]=e[n];return ne(t,r,!0),{publicKey:t,secretKey:r}},e.sign.publicKeyLength=32,e.sign.secretKeyLength=64,e.sign.seedLength=32,e.sign.signatureLength=64,e.hash=function(e){ye(e);var t=new Uint8Array(64);return $(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return ye(e,t),0!==e.length&&0!==t.length&&(e.length===t.length&&0===y(e,0,t,0,e.length))},e.setPRNG=function(e){i=e},function(){var t;"undefined"!=typeof window?(window.crypto&&window.crypto.getRandomValues?t=window.crypto:window.msCrypto&&window.msCrypto.getRandomValues&&(t=window.msCrypto),t&&e.setPRNG((function(e,r){var n,i=new Uint8Array(r);for(t.getRandomValues(i),n=0;n<r;n++)e[n]=i[n];ge(i)}))):(t=r(1306))&&e.setPRNG((function(e,r){var n,i=t.randomBytes(r);for(n=0;n<r;n++)e[n]=i[n];ge(i)}))}()}(e.exports?e.exports:window.nacl=window.nacl||{})}).call(this,r(11).Buffer)},function(e,t){(function(){t.bufeq_secure=function(e,t){var r,n;return function(){var i,o;if(null==e&&null==t)return!0;if(null==e||null==t)return!1;if(e.length!==t.length)return!1;for(r=0,n=i=0,o=e.length;0<=o?i<o:i>o;n=0<=o?++i:--i)r|=e.readUInt8(n)^t.readUInt8(n);return 0===r}()}}).call(this)},function(e,t,r){(function(e){(function(){var r,n;t.b2u=r=function(e){return new Uint8Array(e)},t.u2b=n=function(t){return e.from(t)},t.Base=function(){function e(e){this.publicKey=e.publicKey,this.secretKey=e.secretKey,this.lib=e.lib}return e.prototype.genFromSeed=function(e){var t,i;return t=e.seed,i=this.lib.js.sign.keyPair.fromSeed(r(t)),this.secretKey=n(i.secretKey),this.publicKey=n(i.publicKey),{secretKey:this.secretKey,publicKey:this.publicKey}},e.prototype.genBoxPair=function(){var e;return e=this.lib.js.box.keyPair(),this.secretKey=n(e.secretKey),this.publicKey=n(e.publicKey),{secretKey:this.secretKey,publicKey:this.publicKey}},e.prototype.get_secret_key=function(){return this.secretKey},e.prototype.get_public_key=function(){return this.publicKey},e}()}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A,B,D,M,P,I,U,T,R,F={}.hasOwnProperty;S=r(34),i=r(36).openpgp,I=(M=r(82)).hash,g=I.SHA1,I.SHA256,d=r(379).Pair,o=r(722).Pair,f=r(723).Pair,c=r(1313).Pair,a=r(381).Pair,s=r(382).Pair,u=r(462).Pair,n=M.ciphers.AES,A=M.prng.native_rng,k=r(354).calc_checksum,U=r(50),w=U.bufferify,U.unix_time,v=U.bufeq_secure,U.katch,U.make_time_packet,P=U.uint_to_buffer,T=r(463),x=T.decrypt,E=T.encrypt,h=r(157).Packet,_=r(240),m=_.Signature,r(201).encode,R=r(1314),y=R.S2K,b=R.SecretKeyMaterial,D=r(356),r(64),B=r(383),l=function(t){function r(e){this.key=e.key,this.timestamp=e.timestamp,this.passphrase=e.passphrase,this.skm=e.skm,this.opts=e.opts,this.flags=e.flags,this.opts||(this.opts={}),this.flags||(this.flags=0),this._is_duplicate_primary=!1,r.__super__.constructor.call(this)}return function(e,t){for(var r in t)F.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype._write_private_enc=function(t,r,o){var s,a,u,f,c,l,h,p;return t.push(e.from([i.s2k_convention.sha1,i.symmetric_key_algorithms.AES256,i.s2k.salt_iter,i.hash_algorithms.SHA256])),p=(new g).bufhash(r),h=A(8),t.push(h),96,t.push(e.from([96])),c=n.keySize,f=(new y).write(o,h,96,c),u=n.blockSize,a=A(u),t.push(a),l=e.concat([r,p]),s=E({block_cipher_class:n,key:f,plaintext:l,iv:a}),t.push(s)},r.prototype._write_private_clear=function(t,r){return t.push(e.from([i.s2k_convention.none]),r,P(16,k(r)))},r.prototype._write_public=function(t){var r;return r=this.key.serialize(),t.push(e.from([i.versions.keymaterial.V4]),P(32,this.timestamp),e.from([this.key.type]),r)},r.prototype._write_dummy=function(t){return t.push(e.from([i.s2k_convention.sha1,i.symmetric_key_algorithms.AES256,i.s2k.gnu,2]),e.from("GNU","utf8"),e.from([1]))},r.prototype.add_flags=function(e){return this.flags|=e},r.prototype.private_body=function(t){var r,n,i,o;return r=[],this._write_public(r),o=null!=(n=this.key.priv)?n.serialize():null,i=t.passphrase||this.passphrase,null==o?this._write_dummy(r):null!=i?this._write_private_enc(r,o,i):this._write_private_clear(r,o),e.concat(r)},r.prototype.private_framed=function(e){var t,r,n;return r=this.private_body(e),t=i.packet_tags,n=e.subkey?t.secret_subkey:t.secret_key,this.frame_packet(n,r)},r.prototype.public_body=function(){var t;return t=[],this._write_public(t),e.concat(t)},r.prototype.get_fingerprint=function(){var t;return t=this.public_body(),(new g).bufhash(e.concat([e.from([i.signatures.key]),P(16,t.length),t]))},r.prototype.get_key_id=function(){return this.get_fingerprint().slice(12,20)},r.prototype.get_short_key_id=function(){return this.get_key_id().slice(-4).toString("hex").toUpperCase()},r.prototype.get_klass=function(){return this.key.constructor},r.prototype.export_framed=function(e){return null==e&&(e={}),e.private?this.private_framed(e):this.public_framed(e)},r.prototype.public_framed=function(e){var t,r,n;return null==e&&(e={}),r=this.public_body(),t=i.packet_tags,n=e.subkey?t.public_subkey:t.public_key,this.frame_packet(n,r)},r.prototype.to_signature_payload=function(){var t;return t=this.public_body(),e.concat([e.from([i.signatures.key]),P(16,t.length),t])},r.prototype.self_sign_key=function(e,t){var r,n,i,o,s,a,u,f,c,l,h;c=S.findDeferral(arguments),f=e.userids,n=e.lifespan,o=e.raw_payload,r=null,a=[],i=!0,(h=this,function(e){var t,p,d,_;p=(d=f).length,t=0,(_=function(e){var f,y,g;return f=e,g=y=function(){return S.trampoline((function(){return++t,_(e)}))},t<p?(u=d[t],null!=r?y():(s=null,void function(e){if(!h.key.can_sign()&&!o)return e(null==(s=u.get_framed_signature_output())&&(r=new Error("Cannot sign key --- don't have a private key, and can't replay")));!function(e){l=new S.Deferrals(e,{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/keymaterial.iced",funcname:"KeyMaterial.self_sign_key"}),h._self_sign_key({userid:u,lifespan:n,raw_payload:o,primary:i},l.defer({assign_fn:function(){return r=arguments[0],s=arguments[1]},lineno:194})),l._fulfill()}(e)}((function(){return i=!1,g(a.push(s))})))):f()})(e)})((function(){return t(r,s)}))},r.prototype._self_sign_key=function(t,r){var n,o,s,a,u,f,c,l,h,p,d,y,g;d=S.findDeferral(arguments),p=t.userid,s=t.lifespan,c=t.raw_payload,u=t.primary,a=e.concat([this.to_signature_payload(),p.to_signature_payload()]),h=i.sig_types.positive,o=[new _.CreationTime(s.generated),new _.KeyFlags([this.flags]),new _.PreferredSymmetricAlgorithms([i.symmetric_key_algorithms.AES256,i.symmetric_key_algorithms.AES128]),new _.PreferredHashAlgorithms([i.hash_algorithms.SHA512,i.hash_algorithms.SHA256]),new _.Features([i.features.modification_detection]),new _.KeyServerPreferences([i.key_server_preferences.no_modify]),new _.PreferredCompressionAlgorithms([i.compression.zlib,i.compression.zip])],u&&o.push(new _.PrimaryUserId(1)),s.expire_in&&o.push(new _.KeyExpirationTime(s.expire_in)),l=new m({type:h,key:this.key,hashed_subpackets:o,unhashed_subpackets:[new _.Issuer(this.get_key_id())]}),(g=this,function(e){if(c)return e(l=a);!function(e){y=new S.Deferrals(e,{parent:d,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/keymaterial.iced",funcname:"KeyMaterial._self_sign_key"}),l.write(a,y.defer({assign_fn:function(){return n=arguments[0]},lineno:237})),y._fulfill()}((function(){return f=new B.SelfSig({userid:p,type:h,sig:l,options:g.flags}),p.push_sig(f),e(g.push_sig(f))}))})((function(){return r(n,l)}))},r.prototype.sign_subkey=function(e,t){var r,n,i,o,s,a;o=S.findDeferral(arguments),i=e.subkey,n=e.lifespan,r=null,(a=this,function(e){var t,u;if(!a.key.can_sign())return e((null!=(t=i.get_subkey_binding())&&null!=(u=t.sig)?u.get_framed_output():void 0)?void 0:r=new Error("Cannot sign with subkey --- don't have private key and can't replay"));!function(e){s=new S.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/keymaterial.iced",funcname:"KeyMaterial.sign_subkey"}),a._sign_subkey({subkey:i,lifespan:n},s.defer({assign_fn:function(){return r=arguments[0]},lineno:250})),s._fulfill()}(e)})((function(){return t(r)}))},r.prototype._sign_subkey=function(e,t){var r,n,i,o,s,a,u,f,c,l;f=S.findDeferral(arguments),u=e.subkey,i=e.lifespan,a=n=o=null,(l=this,function(e){if(!u.can_sign())return e();!function(e){c=new S.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/keymaterial.iced",funcname:"KeyMaterial._sign_subkey"}),u._sign_primary_with_subkey({primary:l,lifespan:i},c.defer({assign_fn:function(){return n=arguments[0],o=arguments[1]},lineno:262})),c._fulfill()}(e)})(function(e){return function(){!function(t){if(null!=n)return t();!function(t){c=new S.Deferrals(t,{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/keymaterial.iced",funcname:"KeyMaterial._sign_subkey"}),e._sign_subkey_with_primary({subkey:u,lifespan:i,primary_binding:o},c.defer({assign_fn:function(){return n=arguments[0],a=arguments[1]},lineno:264})),c._fulfill()}(t)}((function(){return null==n&&(r=B.SubkeyBinding,s=new r({primary:e,sig:a,direction:r.DOWN}),u.push_sig(s)),t(n)}))}}(this))},r.prototype._sign_primary_with_subkey=function(t,r){var n,o,s,a,u,f,c,l;c=S.findDeferral(arguments),a=t.primary,o=t.lifespan,s=e.concat([a.to_signature_payload(),this.to_signature_payload()]),u=new m({type:i.sig_types.primary_binding,key:this.key,hashed_subpackets:[new _.CreationTime(o.generated)],unhashed_subpackets:[new _.Issuer(this.get_key_id())]}),function(e){l=new S.Deferrals(e,{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/keymaterial.iced",funcname:"KeyMaterial._sign_primary_with_subkey"}),u.write_unframed(s,l.defer({assign_fn:function(){return n=arguments[0],f=arguments[1]},lineno:288})),l._fulfill()}((function(){return r(n,f)}))},r.prototype._sign_subkey_with_primary=function(t,r){var n,o,s,a,u,f,c,l,h;l=S.findDeferral(arguments),f=t.subkey,o=t.lifespan,a=t.primary_binding,s=e.concat([this.to_signature_payload(),f.to_signature_payload()]),c=[new _.Issuer(this.get_key_id())],null!=a&&c.push(new _.EmbeddedSignature({rawsig:a})),u=new m({type:i.sig_types.subkey_binding,key:this.key,hashed_subpackets:[new _.CreationTime(o.generated),new _.KeyExpirationTime(o.expire_in),new _.KeyFlags([f.flags])],unhashed_subpackets:c}),function(e){h=new S.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/keymaterial.iced",funcname:"KeyMaterial._sign_subkey_with_primary"}),u.write(s,h.defer({assign_fn:function(){return n=arguments[0]},lineno:312})),h._fulfill()}((function(){return r(n,u)}))},r.prototype.merge_private=function(e){return this.skm=e.skm},r.parse_public_key=function(e,t){return new p(e).parse_public_key(t)},r.parse_private_key=function(e,t){return new p(e).parse_private_key(t)},r.prototype.is_key_material=function(){return!0},r.prototype.is_primary=function(){var e;return!(null!=(e=this.opts)?e.subkey:void 0)},r.prototype.is_duplicate_primary=function(){return this._is_duplicate_primary},r.prototype.set_duplicate_primary=function(){return this._is_duplicate_primary=!0},r.prototype.ekid=function(){return this.key.ekid()},r.prototype.can_sign=function(){return this.key.can_sign()},r.prototype.is_locked=function(){return!this.key.has_private()&&null!=this.skm&&this.skm.is_locked()},r.prototype.has_private=function(){return this.has_unlocked_private()||this.has_locked_private()},r.prototype.has_locked_private=function(){return this.skm&&this.skm.has_private()},r.prototype.has_unlocked_private=function(){return this.key.has_private()},r.prototype.has_secret_key_material=function(){return null!=this.skm},r.prototype.validity_check=function(e){var t,r,n,i;r=S.findDeferral(arguments),(i=this,function(e){n=new S.Deferrals(e,{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/keymaterial.iced",funcname:"KeyMaterial.validity_check"}),i.key.validity_check(n.defer({assign_fn:function(){return t=arguments[0]},lineno:346})),n._fulfill()})(function(r){return function(){return null!=t&&("In key "+r.get_fingerprint().toString("hex")+": "+t.message,t=new Error(t)),e(t)}}(this))},r.prototype.is_signed_subkey_of=function(e,t){var r;return!this.primary_flag&&(r=(null!=t?t.strict:void 0)&&this.fulfills_flags(i.key_flags.sign_data),this.get_psc().is_signed_subkey_of(e,r))},r.prototype.get_subkey_binding=function(){return this.opts.subkey?this.get_psc().get_subkey_binding():null},r.prototype.get_subkey_binding_signature_output=function(){var e,t;return null!=(e=this.get_subkey_binding())&&null!=(t=e.sig)?t.get_framed_output():void 0},r.prototype.equal=function(e){return v(this.ekid(),e.ekid())},r.prototype.unlock=function(e,t){var r,n,o,s,a,u,f,c;if(null!=(f=e.passphrase)&&(f=w(f)),o=null,null==this.skm)return t(o=new Error("Cannot unlock secret key -- no material!"));if(c=this.skm.s2k_convention===i.s2k_convention.none?this.skm.payload:this.skm.s2k.type===i.s2k.gnu_dummy?null:null==f?(o=new Error("Key was locked, but no passphrase given"),null):(u=this.skm.s2k.produce_key(f,this.skm.cipher.key_size),x({ciphertext:this.skm.payload,block_cipher_class:this.skm.cipher.klass,iv:this.skm.iv,key:u}))){switch(this.skm.s2k_convention){case i.s2k_convention.sha1:n=c.length-g.output_size,s=c.slice(n),c=c.slice(0,n),a=(new g).bufhash(c),v(s,a)||(o=new Error("bad private key passphrase (hash mismatch)"));break;case i.s2k_convention.checksum:case i.s2k_convention.none:n=c.length-2,r=c.readUInt16BE(n),c=c.slice(0,n),r!==k(c)&&(o=new Error("bad private key passphrase (checksum mismatch)"))}null==o&&(o=this.key.read_priv(c))}return t(o)},r.prototype.get_all_key_flags=function(){return this._psc.get_all_key_flags()},r.prototype.add_flags=function(e){return this.flags|=e},r.prototype.fulfills_flags=function(e){var t;return!this.is_revoked()&&(((t=this.get_all_key_flags())&e)===e||this.key.fulfills_flags(e)||this.is_primary()&&0===t&&(this.key.good_for_flags()&e)===e)},r.prototype.get_signed_userids=function(){return this.get_psc().get_signed_userids()},r.prototype.get_signed_user_attributes=function(){return this.get_psc().get_signed_user_attributes()},r.prototype.is_self_signed=function(){return this.get_psc().is_self_signed()},r.prototype.push_sig=function(e){var t,n,o;if(this.is_primary())return this.add_flags(e.sig.get_key_flags()),r.__super__.push_sig.call(this,e);if((n=e.sig).type===i.sig_types.subkey_binding){if(null==(o=this._winner_subkey_binding)||n.key_expiration_after_other(o))return this._winner_subkey_binding=n,this.get_psc().clear(),this.flags=0,this.add_flags(n.get_key_flags()),r.__super__.push_sig.call(this,e)}else{if(n.type!==i.sig_types.primary_binding)return r.__super__.push_sig.call(this,e);if(null!=(t=n.parent)&&t===this._winner_subkey_binding)return r.__super__.push_sig.call(this,e)}},r.prototype.clear_psc=function(){return null!=this._winner_subkey_binding&&(this._winner_subkey_binding=null),r.__super__.clear_psc.call(this)},r.prototype.mark_revoked=function(e){return this.revocation=e},r.prototype.is_revoked=function(){return null!=this.revocation},r.prototype.check_not_expired=function(e){var t,r,n,i;return n=e.now,r=null,(t=null!=(i=this.get_expire_time())?i.expire_at:void 0)&&t<n&&(r=new Error("PGP key "+this.get_fingerprint().toString("hex")+" expired at "+t+" but we checked for time "+n)),r},r.prototype.is_preferable_to=function(e){var t,r;return t=this.get_expire_time(),r=e.get_expire_time(),null==t.expire_at&&(t.expire_at=1/0),null==r.expire_at&&(r.expire_at=1/0),t.expire_at>r.expire_at||!(t.expire_at<r.expire_at)&&t.generated>=r.generated},r.prototype.get_expire_time=function(){return null==this.get_psc()?null:this.is_primary()?this._get_expire_time_on_primary():this._get_expire_time_on_subkey()},r.prototype._get_expire_time_on_primary=function(){var e,t,r,n,i,o,s,a,u,f,c,l;for(s in o=this.get_psc().lookup.self_sigs_by_uid,f=null,this.timestamp,o){for(u=null,c=0,l=(t=o[s]).length;c<l;c++)null!=(n=t[c].sig)&&(e=n.get_key_expires(),i=n.when_generated(),(null==u||u.sig_generated<i)&&(u={expire_in:e,sig_generated:i}));null!=u&&(a=u.expire_in||0,(null==f||0===a||0<f&&f<a)&&(f=a))}return r={generated:this.timestamp,expire_at:null,expire_in:null},f&&(r.expire_at=this.timestamp+f,r.expire_in=f),r},r.prototype._get_expire_time_on_subkey=function(){var e,t,r,n,i,o,s,a;if(!(null!=(n=this.get_psc().lookup.subkey_binding)?n.length:void 0))return null;for(o=null,s=0,a=n.length;s<a;s++)null!=(i=n[s]).sig&&i.is_down()&&(t=i.sig.get_key_expires(),r=this.timestamp,t&&r?(e=r+t,(null==o||null!=o.expire_at&&o.expire_at<e)&&(o={expire_at:e,generated:r,expire_in:t})):(null!=t&&0===t||null==t)&&(o={generated:r,expire_in:null,expire_at:null}));return null==o&&(o={generated:0,expire_at:null,expire_in:null}),o},r.prototype.add_designee=function(e){var t;return t=function(e){return e.slice(12,20).toString("hex")},(this.desig_revokers||(this.desig_revokers={}))[t(e.fingerprint)]=e},r.prototype.add_designated_revocation=function(e){return(this.unverified_revocations||(this.unverified_revocations=[])).push(e)},r.prototype.get_designated_revocations=function(){return null==this.unverified_revocations||null==this.desig_revokers?[]:this.unverified_revocations.filter((e=this,function(t){var r;return null!=(r=t.get_issuer_key_id())&&r.toString("hex")in e.desig_revokers}));var e},r}(h),p=function(){function e(e){this.slice=e,this.key=null}return e.prototype.parse_public_key_v3=function(){return this.timestamp=this.slice.read_uint32(),this.expiration=this.slice.read_uint16(),this.parse_public_key_mpis()},e.prototype.parse_public_key_v4=function(){return this.timestamp=this.slice.read_uint32(),this.parse_public_key_mpis()},e.prototype.parse_public_key_mpis=function(){var e,t,r,n,l;if(this.algorithm=this.slice.read_uint8(),e=i.public_key_algorithms,t=(l=function(){switch(this.algorithm){case e.RSA:case e.RSA_ENCRYPT_ONLY:case e.RSA_SIGN_ONLY:return d;case e.DSA:return o;case e.ELGAMAL:return f;case e.ELGAMAL_SIGN_AND_ENCRYPT:return c;case e.ECDSA:return a;case e.ECDH:return s;case e.EDDSA:return u;default:throw new Error("Unknown key type: "+this.algorithm)}}.call(this).parse(this.slice.peek_rest_to_buffer()))[0],r=l[1],n=l[2],null!=t)throw t;return this.slice.advance(n),r},e.prototype._parse_public_key=function(){var e;switch(e=this.slice.read_uint8()){case i.versions.keymaterial.V3:return this.parse_public_key_v3();case i.versions.keymaterial.V4:return this.parse_public_key_v4();default:throw new Error("Unknown public key version: "+e)}},e.prototype.parse_public_key=function(e){var t;return t=this._parse_public_key(),new l({key:t,timestamp:this.timestamp,opts:e})},e.prototype.parse_private_key=function(e){var t,r,n,o,s;return n=new b,r=this._parse_public_key(),!0,o=null,(n.s2k_convention=this.slice.read_uint8())===i.s2k_convention.none?!1:(s=n.s2k_convention)===i.s2k_convention.sha1||s===i.s2k_convention.checksum?(o=this.slice.read_uint8(),n.s2k=(new y).read(this.slice)):o=n.s2k_convention,n.s2k_convention!==i.s2k_convention.none&&n.s2k.type===i.s2k.gnu_dummy?n.payload=null:(o&&(n.cipher=D.get_cipher(o),t=n.cipher.klass.blockSize,n.iv=this.slice.read_buffer(t)),n.payload=this.slice.consume_rest_to_buffer()),new l({key:r,skm:n,timestamp:this.timestamp,opts:e})},e}(),t.KeyMaterial=l}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g={}.hasOwnProperty,b=function(e,t){for(var r in t)g.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};l=r(34),(c=r(115)).nbits,c.nbv,c.BigInteger,p=r(94),f=p.SRF,p.MRF,(d=r(50)).bufeq_secure,d.ASP,r(62).make_esc,h=r(36),o=h.openpgp,h.kb,_=r(137),n=_.BaseKey,i=_.BaseKeyPair,y=r(94),f=y.SRF,y.MRF,u=function(e){function t(e){this.p=e.p,this.q=e.q,this.g=e.g,this.y=e.y}return b(t,e),t.type=o.public_key_algorithms.DSA,t.prototype.type=t.type,t.ORDER=["p","q","g","y"],t.prototype.ORDER=t.ORDER,t.alloc=function(e){return n.alloc(t,e)},t.prototype.trunc_hash=function(e){return c.bn_from_left_n_bits(e,this.q.bitLength())},t.prototype.nbits=function(){var e;return null!=(e=this.p)?e.bitLength():void 0},t.prototype.verify=function(e,t,r){var n,i,o,s,a,u,f;return o=e[0],s=e[1],n=null,i=this.trunc_hash(t),f=s.modInverse(this.q),a=i.multiply(f).mod(this.q),u=o.multiply(f).mod(this.q),this.g.modPow(a,this.p).multiply(this.y.modPow(u,this.p)).mod(this.p).mod(this.q).equals(o)||(n=new Error("verification failed")),r(n)},t}(n),a=function(e){function t(e){this.x=e.x,this.pub=e.pub}return b(t,e),t.ORDER=["x"],t.prototype.ORDER=t.ORDER,t.alloc=function(e,r){return n.alloc(t,e,{pub:r})},t.prototype.sign=function(e,t){var r,n,i,o,s,a,u,h,p,d,_;h=l.findDeferral(arguments),d=this.pub,o=d.p,s=d.q,r=d.g,n=this.pub.trunc_hash(e),function(e){p=new l.Deferrals(e,{parent:h,filename:"/Users/max/src/keybase/kbpgp/src/dsa.iced",funcname:"Priv.sign"}),f().random_zn(s.subtract(c.nbv(2)),p.defer({assign_fn:function(){return i=arguments[0]},lineno:76})),p._fulfill()}((_=this,function(){return i=i.add(c.BigInteger.ONE),a=r.modPow(i,o).mod(s),u=i.modInverse(s).multiply(n.add(_.x.multiply(a))).mod(s),t([a,u])}))},t}(n),s=function(t){function r(e){var t,n;n=e.pub,t=e.priv,r.__super__.constructor.call(this,{pub:n,priv:t})}return b(r,t),r.Pub=u,r.prototype.Pub=u,r.Priv=a,r.prototype.Priv=a,r.type=o.public_key_algorithms.DSA,r.prototype.type=r.type,r.prototype.get_type=function(){return this.type},r.klass_name="DSA",r.parse=function(e){return i.parse(r,e)},r.prototype.can_encrypt=function(){return!1},r.prototype.fulfills_flags=function(e){return(e&this.good_for_flags())===e},r.prototype.good_for_flags=function(){return o.key_flags.certify_keys|o.key_flags.sign_data},r.prototype.verify_unpad_and_check_hash=function(e,t){var n,i,o,s;return s=e.sig,n=e.data,o=e.hasher,i=e.hash,this._dsa_verify_update_and_check_hash({sig:s,data:n,hasher:o,hash:i,klass:r},t)},r.prototype.pad_and_sign=function(t,r,n){var i,o,s,a,u,f,c;u=l.findDeferral(arguments),(o=r.hasher)||(o=SHA512),i=o(t),(c=this,function(e){f=new l.Deferrals(e,{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/dsa.iced",funcname:"Pair.pad_and_sign"}),c.priv.sign(i,f.defer({assign_fn:function(){return a=arguments[0]},lineno:128})),f._fulfill()})((function(){return n(null,e.concat(function(){var e,t,r;for(r=[],e=0,t=a.length;e<t;e++)s=a[e],r.push(s.to_mpi_buffer());return r}()))}))},r.parse_sig=function(e){var t,n,i,o,s;if(t=e.peek_rest_to_buffer(),n=(s=r.read_sig_from_buf(t))[0],o=s[1],i=s[2],null!=n)throw n;return e.advance(i),o},r.read_sig_from_buf=function(e){var t,r,n,i,o,s;return i=e.length,n=["r","s"],t=null,o=function(){var r,i,o,a;for(a=[],r=0,i=n.length;r<i;r++)n[r],null==t&&(o=c.mpi_from_buffer(e),t=o[0],s=o[1],e=o[2],a.push(s));return a}(),r=i-e.length,[t,o,r]},r}(i),t.DSA=t.Pair=s}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v={}.hasOwnProperty,w=function(e,t){for(var r in t)v.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};d=r(34),l=r(115),(y=r(50)).bufeq_secure,y.ASP,r(62).make_esc,_=r(36),o=_.openpgp,_.kb,g=r(137),i=g.BaseKeyPair,n=g.BaseKey,b=r(94),c=b.SRF,b.MRF,m=r(355),p=m.eme_pkcs1_encode,h=m.eme_pkcs1_decode,f=function(e){function t(e){this.p=e.p,this.g=e.g,this.y=e.y}return w(t,e),t.type=o.public_key_algorithms.ELGAMAL,t.prototype.type=t.type,t.ORDER=["p","g","y"],t.prototype.ORDER=t.ORDER,t.alloc=function(e){return n.alloc(t,e)},t.prototype.encrypt=function(e,t){var r,n,i,o,s;i=d.findDeferral(arguments),(s=this,function(e){o=new d.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/elgamal.iced",funcname:"Pub.encrypt"}),c().random_zn(s.p.subtract(l.nbv(2)),o.defer({assign_fn:function(){return n=arguments[0]},lineno:35})),o._fulfill()})(function(i){return function(){return n=n.add(l.BigInteger.ONE),r=[i.g.modPow(n,i.p),i.y.modPow(n,i.p).multiply(e).mod(i.p)],t(r)}}(this))},t}(n),u=function(e){function t(e){this.x=e.x,this.pub=e.pub}return w(t,e),t.ORDER=["x"],t.prototype.ORDER=t.ORDER,t.prototype.serialize=function(){return this.x.to_mpi_buffer()},t.alloc=function(e,r){return n.alloc(t,e,{pub:r})},t.prototype.decrypt=function(e,t){var r;return r=this.pub.p,t(null,e[0].modPow(this.x,r).modInverse(r).multiply(e[1]).mod(r))},t}(n),a=function(e){function t(e){var r,n;n=e.pub,r=e.priv,t.__super__.constructor.call(this,{pub:n,priv:r})}return w(t,e),t.Pub=f,t.prototype.Pub=f,t.Priv=u,t.prototype.Priv=u,t.type=o.public_key_algorithms.ELGAMAL,t.klass_name="ELGAMAL",t.prototype.type=t.type,t.prototype.get_type=function(){return this.type},t.prototype.fulfills_flags=function(e){return(e&this.good_for_flags())===e},t.prototype.good_for_flags=function(){return o.key_flags.encrypt_comm|o.key_flags.encrypt_storage},t.prototype.can_sign=function(){return!1},t.parse=function(e){return i.parse(t,e)},t.prototype.max_value=function(){return this.pub.p},t.prototype.pad_and_encrypt=function(e,t,r){var n,i,o,s,a,u,f;a=d.findDeferral(arguments),i=s=null,(f=this,function(t){u=new d.Deferrals(t,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/elgamal.iced",funcname:"Pair.pad_and_encrypt"}),p(e,f.pub.p.mpi_byte_length(),u.defer({assign_fn:function(){return i=arguments[0],o=arguments[1]},lineno:112})),u._fulfill()})(function(e){return function(){!function(t){if(null!=i)return t();!function(t){u=new d.Deferrals(t,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/elgamal.iced",funcname:"Pair.pad_and_encrypt"}),e.pub.encrypt(o,u.defer({assign_fn:function(){return n=arguments[0]},lineno:114})),u._fulfill()}((function(){return t(s=e.export_output({c_mpis:n}))}))}((function(){return r(i,s)}))}}(this))},t.prototype.decrypt_and_unpad=function(e,t,r){var n,i,o,s,a,u,f;a=d.findDeferral(arguments),i=s=null,(f=this,function(t){u=new d.Deferrals(t,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/elgamal.iced",funcname:"Pair.decrypt_and_unpad"}),f.priv.decrypt(e.c(),u.defer({assign_fn:function(){return i=arguments[0],o=arguments[1]},lineno:122})),u._fulfill()})(function(e){return function(){var t;return null==i&&(n=o.to_padded_octets(e.pub.p),t=h(n),i=t[0],s=t[1]),r(i,s)}}(this))},t.parse_output=function(e){return s.parse(e)},t.prototype.export_output=function(e){return new s(e)},t}(i),s=function(){function t(e){this.c_mpis=e.c_mpis,this.c_bufs=e.c_bufs}return t.parse=function(e){var r,n,i;if(r=function(){var t,r,o;for(o=[],t=0;t<2;++t){if(r=l.mpi_from_buffer(e),n=r[0],i=r[1],e=r[2],r[3],null!=n)throw n;o.push(i)}return o}(),0!==e.length)throw new Error("junk at the end of input");return new t({c_mpis:r})},t.prototype.c=function(){return this.c_mpis},t.prototype.hide=function(e,t){var r,n,i,o,s,a,u,f,c,l;f=d.findDeferral(arguments),i=e.key,o=e.max,a=e.slosh,o||(o=4096),a||(a=128),n=null,this.c_bufs=null,s=[],(l=this,function(e){var t,h,p,_;p=l.c_mpis,h=p.length,t=0,(_=function(e){var l,y;if(l=e,y=function(){return d.trampoline((function(){return++t,_(e)}))},!(t<h))return l();r=p[t],c=new d.Deferrals((function(){s.push(u),function(e){null!=n?l():e()}(y)}),{parent:f,filename:"/Users/max/src/keybase/kbpgp/src/elgamal.iced",funcname:"Output.hide"}),i.hide({i:r,max:o,slosh:a},c.defer({assign_fn:function(){return n=arguments[0],u=arguments[1]},lineno:164})),c._fulfill()})(e)})(function(e){return function(){return null==n&&(e.c_mpis=s),t(n)}}(this))},t.prototype.find=function(e){var t,r;return r=e.key,this.c_mpis=function(){var e,n,i,o;for(o=[],e=0,n=(i=this.c_mpis).length;e<n;e++)t=i[e],o.push(r.find(t));return o}.call(this)},t.prototype.get_c_bufs=function(){var e;return null!=this.c_bufs?this.c_bufs:this.c_bufs=function(){var t,r,n,i;for(i=[],t=0,r=(n=this.c_mpis).length;t<r;t++)e=n[t],i.push(e.to_mpi_buffer());return i}.call(this)},t.prototype.output=function(){return e.concat(this.get_c_bufs())},t}(),t.ElGamal=t.Pair=a}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S={}.hasOwnProperty,A=function(e,t){for(var r in t)S.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};b=r(34),c=r(157).Packet,i=r(36).openpgp,d=r(241),k=r(95),p=k.SHA1,v=k.streamers,x=r(50),w=x.uint_to_buffer,y=x.bufeq_secure,_=x.bufeq_fast,E=r(1315),g=E.encrypt,o=E.Decryptor,n=r(156).util.ASP,m=r(62).make_esc,u=function(t){function r(e){this.crypto_type=e.crypto_type,this.key_id=e.key_id,this.ekey=e.ekey}return A(r,t),r.parse=function(e){return new f(e).parse()},r.prototype.to_esk_packet=function(){return this},r.prototype.get_key_id=function(){return this.key_id},r.prototype.write_unframed=function(t){var r;return r=[w(8,i.versions.PKESK),this.key_id,w(8,this.crypto_type),this.ekey.output()],null,t(null,e.concat(r))},r.prototype.write=function(e){var t,r,n,o,s,a;o=b.findDeferral(arguments),r=null,(a=this,function(e){s=new b.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/sess.iced",funcname:"PKESK.write"}),a.write_unframed(s.defer({assign_fn:function(){return t=arguments[0],n=arguments[1]},lineno:36})),s._fulfill()})(function(o){return function(){return null==t&&(r=o.frame_packet(i.packet_tags.PKESK,n)),e(t,r)}}(this))},r}(c),l=function(t){function r(e){this.ciphertext=e.ciphertext}return A(r,t),r.parse=function(e){return new h(e).parse()},r.prototype.to_enc_data_packet=function(){return this},r.prototype.check=function(){},r.prototype.decrypt=function(e,t){var r,i,a,u,f,c,l,h,p,d,_;d=b.findDeferral(arguments),i=e.cipher,r=e.asp,a=new o({cipher:i,ciphertext:this.ciphertext,asp:r}),f=m(t,"SEIPD::decrypt"),r=n.make(r),function(e){_=new b.Deferrals(e,{parent:d,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/sess.iced",funcname:"SEIPD.decrypt"}),a.check(f(_.defer({lineno:63}))),_._fulfill()}((function(){_=new b.Deferrals((function(){var e;e=s.parse(p),c=e[0],l=e[1],h=a.get_prefix(),_=new b.Deferrals((function(){return u=c.check()?null:new Error("MDC mismatch"),t(u,l)}),{parent:d,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/sess.iced",funcname:"SEIPD.decrypt"}),c.compute({prefix:h,plaintext:l,asp:r},f(_.defer({lineno:70}))),_._fulfill()}),{parent:d,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/sess.iced",funcname:"SEIPD.decrypt"}),a.dec(f(_.defer({assign_fn:function(){return p=arguments[0]},lineno:64}))),_._fulfill()}))},r.prototype.encrypt=function(t,r){var i,o,a,u,f,c,l,h,p,d;h=b.findDeferral(arguments),o=t.cipher,c=t.plaintext,l=t.prefixrandom,i=t.asp,u=new s({}),a=m(r,"SEIPD::encrypt"),i=n.make(i),function(e){p=new b.Deferrals(e,{parent:h,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/sess.iced",funcname:"SEIPD.encrypt"}),u.compute({plaintext:c,prefix:l,asp:i},a(p.defer({assign_fn:function(){return f=arguments[0]},lineno:81}))),p._fulfill()}((d=this,function(){var t;c=e.concat([c,s.header,f]),p=new b.Deferrals((function(){return r(null)}),{parent:h,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/sess.iced",funcname:"SEIPD.encrypt"}),g({cipher:o,plaintext:c,prefixrandom:l},a(p.defer({assign_fn:(t=d,function(){return t.ciphertext=arguments[0]}),lineno:83}))),p._fulfill()}))},r.prototype.write_unframed=function(t){return t(null,e.concat([w(8,i.versions.SEIPD),this.ciphertext]))},r.prototype.write=function(e){var t,r,n,o,s,a;o=b.findDeferral(arguments),r=t=null,(a=this,function(e){s=new b.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/sess.iced",funcname:"SEIPD.write"}),a.write_unframed(s.defer({assign_fn:function(){return t=arguments[0],n=arguments[1]},lineno:97})),s._fulfill()})(function(o){return function(){return null==t&&(r=o.frame_packet(i.packet_tags.SEIPD,n)),e(t,r)}}(this))},r}(c),s=function(t){function r(e){this.digest=e.digest}return A(r,t),r.header=e.from([192|i.packet_tags.MDC,p.output_length]),r.prototype.header=r.header,r.parse=function(e){return new a(e).parse()},r.prototype.compute=function(t,r){var i,o,s,a,u,f,c,l,h,p;l=b.findDeferral(arguments),u=t.plaintext,f=t.prefix,i=t.asp,i=n.make(i),(s=v.SHA1()).update(e.concat([f,f.slice(-2)])),o=m(r,"MDC::compute"),c=1048576,function(e){var t,r,n;a=0,u.length,t=(r=c)>0,(n=function(e){var f,p;if(f=e,p=function(){return b.trampoline((function(){return a+=r,n(e)}))},!0===t&&a>=u.length||!1===t&&a<=u.length)return f();s.update(u.slice(a,a+c)),function(e){h=new b.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/sess.iced",funcname:"MDC.compute"}),i.progress({what:"MDC",total:u.length,i:a},o(h.defer({lineno:122}))),h._fulfill()}(p)})(e)}((p=this,function(){return s.update(p.header),p.computed=s(),r(null,p.computed)}))},r.prototype.check=function(){return y(this.digest,this.computed)},r}(c),a=function(){function e(e){this.buf=e}return e.prototype.parse=function(){var e,t,r,n,i;if(r=s.header.length,n=p.output_length+r,i=this.buf.slice(0,-n),e=this.buf.slice(-n),!_(e.slice(0,r),s.header))throw new Error("Missing MDC header");return t=e.slice(r),[new s({digest:t}),i]},e}(),h=function(){function e(e){this.slice=e}return e.prototype.payload_split=function(e){},e.prototype.parse=function(){var e,t;if((t=this.slice.read_uint8())!==i.versions.SEIPD)throw new Error("Unknown SEIPD version "+t);return e=this.slice.consume_rest_to_buffer(),new l({ciphertext:e})},e}(),f=function(){function e(e){this.slice=e}return e.prototype.parse=function(){var e,t,r,n;if((n=this.slice.read_uint8())!==i.versions.PKESK)throw new Error("Unknown PKESK version: "+n);return r=this.slice.read_buffer(8),e=this.slice.read_uint8(),t=d.get_class(e).parse_output(this.slice.consume_rest_to_buffer()),new u({crypto_type:e,key_id:r,ekey:t})},e}(),t.SEIPD=l,t.PKESK=u,t.MDC=s}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h={}.hasOwnProperty;n=r(36).openpgp,(c=(u=r(82)).hash).SHA1,c.SHA256,u.ciphers.AES,u.prng.native_rng,l=r(50),s=l.bufferify,f=l.uint_to_buffer,r(463).encrypt,i=r(157).Packet,a=r(156).userid.parse,o=function(t){function r(e,t){this.components=null!=t?t:null,this.userid=s(e),null==this.compontents&&this._parse(),r.__super__.constructor.call(this),this._time_primary_pair=null,this.primary=!1,this.most_recent_sig=null}return function(e,t){for(var r in t)h.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.utf8=function(){return this.userid.toString("utf8")},r.prototype.write=function(){return this.frame_packet(n.packet_tags.userid,this.userid)},r.parse=function(e){return new r(e.consume_rest_to_buffer())},r.prototype.to_userid=function(){return this},r.prototype.cmp=function(e){var t,r;return(t=this.utf8())<(r=e.utf8())?-1:t===r?0:1},r.prototype.to_signature_payload=function(){return e.concat([e.from([n.signatures.userid]),f(32,this.userid.length),this.userid])},r.prototype._parse=function(){var e;if(null!=(e=a(this.utf8())))return this.components=e},r.prototype.get_username=function(){var e;return null!=(e=this.components)?e.username:void 0},r.prototype.get_comment=function(){var e;return null!=(e=this.components)?e.comment:void 0},r.prototype.get_email=function(){var e;return null!=(e=this.components)?e.email:void 0},r.prototype.time_primary_pair=function(){var e,t,r,n,i,o;if(null==this._time_primary_pair){for(t=function(){var e,t,r,i,o;for(o=[],e=0,t=(r=this.get_psc().get_self_sigs()).length;e<t;e++)n=r[e],o.push(null!=n&&null!=(i=n.sig)?i.time_primary_pair():void 0);return o}.call(this),null,r=[null,null],i=0,o=t.length;i<o;i++)null!=(e=t[i])&&(e[0]&&(null==r[0]||r[0]<e[0])&&(r[0]=e[0]),e[1]&&(null==r[1]||r[1]<e[0])&&(r[1]=e[0]));this._time_primary_pair=r,this.most_recent_sig=r[0]}return this._time_primary_pair},r.make=function(e){var t,n;return n=null!=(t=e.comment)?"("+t+") ":"",new r(e.username+" "+n+"<"+e.email+">",e)},r.prototype.get_framed_signature_output=function(){var e,t,r;return null!=(e=this.get_psc())&&null!=(t=e.get_self_sig())&&null!=(r=t.sig)?r.get_framed_output():void 0},r.prototype.mark_revoked=function(e){return this.revocation=e},r.prototype.is_revoked=function(){return null!=this.revocation},r}(i),t.UserID=o}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p={}.hasOwnProperty;c=r(34),s=r(157).Packet,n=r(36).openpgp,r(241),h=r(342),l=r(50).uint_to_buffer,a=r(1317),f=function(t,r){var n,i,o,s,a,u;a=c.findDeferral(arguments),t=e.concat([e.from([120,156]),t]),s=h.createInflate({flush:h.Z_FULL_FLUSH}),n=[],i=function(t){var i;if(null!=(i=r))return null!=t&&"Z_BUF_ERROR"===t.code&&(t=null),r=null,i(t,null!=t?null:e.concat(n))},s.on("readable",(function(){var e;if(null!=(e=s.read()))return n.push(e)})),s.on("end",(function(){return i(null)})),s.on("error",(function(e){return i(e)})),function(e){u=new c.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/compressed.iced"}),s.write(t,u.defer({assign_fn:function(){return o=arguments[0]},lineno:53})),u._fulfill()}((function(){!function(e){if(null!=o)return e();!function(e){u=new c.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/compressed.iced"}),s.end(o),u._fulfill()}(e)}((function(){if(null!=o)return i(o)}))}))},u=function(e,t){var r,n;r=null;try{n=a(e)}catch(e){r=e}return t(r,n)},i=function(t){function r(e){this.algo=e.algo,this.compressed=e.compressed,this.inflated=e.inflated}return function(e,t){for(var r in t)p.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.parse=function(e){return new o(e).parse()},r.prototype.inflate=function(e){var t,r,i,o,s;i=c.findDeferral(arguments),t=r=null,(s=this,function(e){switch(s.algo){case n.compression.none:return e(r=s.compressed);case n.compression.zlib:!function(e){o=new c.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/compressed.iced",funcname:"Compressed.inflate"}),h.inflate(s.compressed,o.defer({assign_fn:function(){return t=arguments[0],r=arguments[1]},lineno:95})),o._fulfill()}(e);break;case n.compression.zip:!function(e){o=new c.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/compressed.iced",funcname:"Compressed.inflate"}),f(s.compressed,o.defer({assign_fn:function(){return t=arguments[0],r=arguments[1]},lineno:97})),o._fulfill()}(e);break;case n.compression.bzip:!function(e){o=new c.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/compressed.iced",funcname:"Compressed.inflate"}),u(s.compressed,o.defer({assign_fn:function(){return t=arguments[0],r=arguments[1]},lineno:99})),o._fulfill()}(e);break;default:return e(t=new Error("no known inflation -- algo: "+s.algo))}})((function(){return e(t,r)}))},r.prototype.deflate=function(e){var t,r,i,o,s;i=c.findDeferral(arguments),t=r=null,(s=this,function(e){switch(s.algo){case n.compression.none:return e(r=s.inflated);case n.compression.zlib:!function(e){o=new c.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/compressed.iced",funcname:"Compressed.deflate"}),h.deflate(s.inflated,o.defer({assign_fn:function(){return t=arguments[0],r=arguments[1]},lineno:111})),o._fulfill()}(e);break;case n.compression.zip:!function(e){o=new c.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/compressed.iced",funcname:"Compressed.deflate"}),fake_zip_deflate(s.inflated,o.defer({assign_fn:function(){return t=arguments[0],r=arguments[1]},lineno:113})),o._fulfill()}(e);break;default:return e(t=new Error("no known deflation -- algo: "+s.algo))}})((function(){return e(t,r)}))},r.prototype.write_unframed=function(t){var r,n,i,o,s,a;o=c.findDeferral(arguments),n=i=null,(a=this,function(e){var t;s=new c.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/compressed.iced",funcname:"Compressed.write_unframed"}),a.deflate(s.defer({assign_fn:(t=a,function(){return n=arguments[0],t.compressed=arguments[1]}),lineno:122})),s._fulfill()})(function(o){return function(){return null==n&&(r=[l(8,o.algo),o.compressed],i=e.concat(r)),t(n,i)}}(this))},r.prototype.write=function(e){var t,r,i,o,s,a;o=c.findDeferral(arguments),t=r=null,(a=this,function(e){s=new c.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/compressed.iced",funcname:"Compressed.write"}),a.write_unframed(s.defer({assign_fn:function(){return t=arguments[0],i=arguments[1]},lineno:132})),s._fulfill()})(function(o){return function(){return null==t&&(r=o.frame_packet(n.packet_tags.compressed,i)),e(t,r)}}(this))},r}(s),o=function(){function e(e){this.slice=e}return e.prototype.parse=function(){var e,t;return e=this.slice.read_uint8(),t=this.slice.consume_rest_to_buffer(),new i({algo:e,compressed:t})},e}(),t.Compressed=i}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l={}.hasOwnProperty;f=r(34),s=r(157).Packet,n=r(36).openpgp,a=r(241),u=r(95),c=r(50).uint_to_buffer,o=function(t){function r(e){this.sig_type=e.sig_type,this.hasher=e.hasher,this.sig_klass=e.sig_klass,this.key_id=e.key_id,this.is_final=e.is_final}return function(e,t){for(var r in t)l.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.parse=function(e){return new i(e).parse()},r.prototype.write_unframed=function(t){var r,i,o;return i=[n.versions.one_pass_sig,this.sig_type,this.hasher.type,this.sig_klass.type],(r=function(){var e,t,r;for(r=[],e=0,t=i.length;e<t;e++)o=i[e],r.push(c(8,o));return r}()).push(this.key_id),r.push(c(8,this.is_final)),t(null,e.concat(r))},r.prototype.write=function(e){var t,r,i,o,s,a;o=f.findDeferral(arguments),(a=this,function(e){s=new f.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/packet/one_pass_sig.iced",funcname:"OnePassSignature.write"}),a.write_unframed(s.defer({assign_fn:function(){return t=arguments[0],i=arguments[1]},lineno:38})),s._fulfill()})(function(o){return function(){return r=o.frame_packet(n.packet_tags.one_pass_sig,i),e(t,r)}}(this))},r}(s),i=function(){function e(e){this.slice=e}return e.prototype.parse=function(){var e,t,r,i,s,f;if((f=this.slice.read_uint8())!==n.versions.one_pass_sig)throw new Error("Unknown OnePassSignature version "+f);return s=this.slice.read_uint8(),e=u.alloc_or_throw(this.slice.read_uint8()),i=a.get_class(this.slice.read_uint8()),r=this.slice.read_buffer(8),t=this.slice.read_uint8(),new o({sig_type:s,hasher:e,sig_klass:i,key_id:r,is_final:t})},e}(),t.OnePassSignature=o}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A,B,D,M,P,I={}.hasOwnProperty;m=r(34),E=r(62).make_esc,D=r(240),u=D.Signature,o=D.CreationTime,s=D.Issuer,M=r(50),l=M.bufferify,A=M.unix_time,r(94).SRF,S=r(82),(P=r(356)).export_key_pgp,P.get_cipher,S.util.scrub_buffer,S.WordArray,x=r(36),e=x.openpgp,n=r(460),(b=r(95)).SHA512,g=r(201).encode,h=r(156).armor.clearsign_header,a=r(384).Literal,c=r(729).Base,t.input_to_cleartext=v=function(e){var t;return t=e.split(/\n/),{show:l(w(t)),sign:l(k(t))}},t.dash_escape=d=function(e){return e.length>=1&&"-"===e[0]?"- "+e:e},t.dash_unescape_line=_=function(e){var t,r,n;return r=!1,[null!=(t=e.match(/^-( )?(.*?)$/))?(1!==(null!=(n=t[1])?n.length:void 0)&&(r=!0),t[2]):e,r]},t.dash_unescape_lines=y=function(e,t){var r,n,i;return null==t&&(t=null),function(){var o,s,a,u;for(u=[],r=o=0,s=e.length;o<s;r=++o)i=e[r],a=_(i),n=a[0],a[1]&&null!=t&&t.push("Bad dash-encoding on line "+(r+1)),u.push(n);return u}()},t.input_to_cleartext_display=w=function(e){var t,r;return r=function(){var r,n,i;for(i=[],r=0,n=e.length;r<n;r++)t=e[r],i.push(d(t));return i}(),0!==e.length&&""===e.slice(-1)[0]||r.push(""),r.join("\n")},t.clearsign_to_sign=p=function(e,t){return e=y(e,t),k(e)},t.input_to_cleartext_sign=k=function(e){var t,r,n,i;for(n=function(){var r,n,i;for(i=[],r=0,n=e.length;r<n;r++)t=e[r],i.push(B(t));return i}(),r=0,i=n.length-1;i>=0&&""===n[i];i+=-1)r++;return r>0&&n.pop(),n.join("\r\n")},t.whitespace_strip=B=function(e){var t;return(t=(e=e.replace(/\r/g,"")).match(/^(.*?)([ \t]*)$/))?t[1]:e},i=function(){function t(e){this.msg=e.msg,this.signing_key=e.signing_key,this.now=e.now}return t.prototype._fix_msg=function(e){return this._cleartext=v(this.msg.toString("utf8")),e(null)},t.prototype._sign_msg=function(t){var r,n,i,a;n=m.findDeferral(arguments),this.sig=new u({sig_type:e.sig_types.canonical_text,key:this.signing_key.key,hashed_subpackets:[new o(this.now||A())],unhashed_subpackets:[new s(this.signing_key.get_key_id())]}),(a=this,function(e){var t;i=new m.Deferrals(e,{parent:n,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/clearsign.iced",funcname:"ClearSigner._sign_msg"}),a.sig.write(a._cleartext.sign,i.defer({assign_fn:(t=a,function(){return r=arguments[0],t._sig_output=arguments[1]}),lineno:117})),i._fulfill()})(function(e){return function(){return t(r,e._sig_output)}}(this))},t.prototype.scrub=function(){},t.prototype.hasher_name=function(){return this.sig.hasher.algname},t.prototype._encode=function(t){return t(null,h(n,this._cleartext.show,this.hasher_name())+g(e.message_types.signature,this._sig_output))},t.prototype.run=function(e){var t,r,n,i,o,s;i=m.findDeferral(arguments),r=E(e,"ClearSigner::run"),(s=this,function(e){o=new m.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/clearsign.iced",funcname:"ClearSigner.run"}),s._fix_msg(r(o.defer({lineno:139}))),o._fulfill()})(function(s){return function(){o=new m.Deferrals((function(){o=new m.Deferrals((function(){return e(null,t,n)}),{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/clearsign.iced",funcname:"ClearSigner.run"}),s._encode(r(o.defer({assign_fn:function(){return t=arguments[0]},lineno:141}))),o._fulfill()}),{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/clearsign.iced",funcname:"ClearSigner.run"}),s._sign_msg(r(o.defer({assign_fn:function(){return n=arguments[0]},lineno:140}))),o._fulfill()}}(this))},t}(),f=function(t){function r(e){var t,n;n=e.packets,this.clearsign=e.clearsign,t=e.keyfetch,this.now=e.now,r.__super__.constructor.call(this,{packets:n,keyfetch:t})}return function(e,t){for(var r in t)I.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype._reformat_text=function(t){var r;return r=l(p(this.clearsign.lines)),this._literal=new a({data:r,format:e.literal_formats.utf8,date:this.now||A()}),t(null)},r.prototype._make_hasher=function(e){var t,r;return t=null,r=(this.clearsign.headers.hash||"MD5").trim(),null==(this._sig.hasher=b[r])&&(t=new Error("Unknown hash algorithm: "+r)),e(t)},r.prototype._verify=function(e){var t,r,n,i,o;n=m.findDeferral(arguments),r={now:this.now},(o=this,function(e){i=new m.Deferrals(e,{parent:n,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/clearsign.iced",funcname:"Verifier._verify"}),o._sig.verify([o._literal],i.defer({assign_fn:function(){return t=arguments[0]},lineno:183}),r),i._fulfill()})((function(){return e(t)}))},r.prototype._check_headers=function(e){var t,r,n;for(r in t=null,n=this.clearsign.headers)if(n[r],"hash"!==r){t=new Error("Unallowed header: "+r);break}return e(t)},r.prototype.run=function(e){var t,r,n,i;r=m.findDeferral(arguments),t=E(e,"Verifier::run"),(i=this,function(e){n=new m.Deferrals(e,{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/clearsign.iced",funcname:"Verifier.run"}),i._check_headers(t(n.defer({lineno:200}))),n._fulfill()})(function(i){return function(){n=new m.Deferrals((function(){n=new m.Deferrals((function(){n=new m.Deferrals((function(){n=new m.Deferrals((function(){n=new m.Deferrals((function(){return e(null,i._literal)}),{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/clearsign.iced",funcname:"Verifier.run"}),i._verify(t(n.defer({lineno:205}))),n._fulfill()}),{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/clearsign.iced",funcname:"Verifier.run"}),i._make_hasher(t(n.defer({lineno:204}))),n._fulfill()}),{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/clearsign.iced",funcname:"Verifier.run"}),i._fetch_key(t(n.defer({lineno:203}))),n._fulfill()}),{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/clearsign.iced",funcname:"Verifier.run"}),i._reformat_text(t(n.defer({lineno:202}))),n._fulfill()}),{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/clearsign.iced",funcname:"Verifier.run"}),i._find_signature(t(n.defer({lineno:201}))),n._fulfill()}}(this))},r}(c),t.sign=function(e,t){var r,n,o,s,a,u,f,c,l;c=m.findDeferral(arguments),s=e.msg,f=e.signing_key,a=e.now,r=new i({msg:s,signing_key:f,now:a}),function(e){l=new m.Deferrals(e,{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/clearsign.iced",funcname:"sign"}),r.run(l.defer({assign_fn:function(){return o=arguments[0],n=arguments[1],u=arguments[2]},lineno:216})),l._fulfill()}((function(){return r.scrub(),t(o,n,u)}))},t.verify=function(e,t){var r,n,i,o,s,a,u,c,l;c=m.findDeferral(arguments),a=e.packets,r=e.clearsign,i=e.keyfetch,s=e.now,u=new f({packets:a,clearsign:r,keyfetch:i,now:s}),function(e){l=new m.Deferrals(e,{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/clearsign.iced",funcname:"verify"}),u.run(l.defer({assign_fn:function(){return n=arguments[0],o=arguments[1]},lineno:224})),l._fulfill()}((function(){return t(n,o)}))}}).call(this)},function(e,t,r){(function(){var e,n,i;n=r(34),i=r(36),e=i.openpgp,t.Base=function(){function t(e){this.packets=e.packets,this.keyfetch=e.keyfetch,this._sig=null}return t.prototype._find_signature=function(t){var r;return t(1!==(r=this.packets.length)?new Error("Expected one signature packet; got "+r):(this._sig=this.packets[0]).tag!==e.packet_tags.signature?new Error("Expected a signature packet; but got type="+this.packets[0].tag):null)},t.prototype._fetch_key=function(e){var t,r,o,s,a,u,f;a=n.findDeferral(arguments),r=this._sig.get_key_id(),(f=this,function(e){u=new n.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/verifier.iced",funcname:"Base._fetch_key"}),f.keyfetch.fetch([r],i.ops.verify,u.defer({assign_fn:function(){return t=arguments[0],s=arguments[1],arguments[2]},lineno:28})),u._fulfill()})(function(n){return function(){return null==t&&(o=s.find_pgp_key_material(r),n._sig.key=o.key,n._sig.key_manager=s,n._sig.subkey_material=o),e(t)}}(this))},t}()}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v={}.hasOwnProperty;p=r(34),_=r(62).make_esc,m=r(240),a=m.Signature,i=m.CreationTime,o=m.Issuer,b=r(50).unix_time,l=r(82).WordArray,d=r(36),n=d.openpgp,r(460),g=r(95).streamers,h=r(201).encode,s=r(384).Literal,c=r(729).Base,y=r(383),u=function(){function t(e){this.data=e.data,this.hash_streamer=e.hash_streamer,this.signing_key=e.signing_key}return t.prototype.run=function(e){var t,r,n,i,o,s;i=p.findDeferral(arguments),r=_(e,"Signer::run"),(s=this,function(e){o=new p.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/detachsign.iced",funcname:"Signer.run"}),s._run_hash(r(o.defer({lineno:39}))),o._fulfill()})(function(s){return function(){o=new p.Deferrals((function(){o=new p.Deferrals((function(){return e(null,t,n)}),{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/detachsign.iced",funcname:"Signer.run"}),s._encode(r(o.defer({assign_fn:function(){return t=arguments[0]},lineno:41}))),o._fulfill()}),{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/detachsign.iced",funcname:"Signer.run"}),s._sign(r(o.defer({assign_fn:function(){return n=arguments[0]},lineno:40}))),o._fulfill()}}(this))},t.prototype.scrub=function(){},t.prototype._sign=function(t){var r,s,u,f,c;u=p.findDeferral(arguments),this.sig=new a({sig_type:n.sig_types.canonical_text,key:this.signing_key.key,hashed_subpackets:[new i(b())],unhashed_subpackets:[new o(this.signing_key.get_key_id())],hasher:this.hash_streamer}),r=e.from([]),(c=this,function(e){var t;f=new p.Deferrals(e,{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/detachsign.iced",funcname:"Signer._sign"}),c.sig.write(r,f.defer({assign_fn:(t=c,function(){return s=arguments[0],t._sig_output=arguments[1]}),lineno:60})),f._fulfill()})(function(e){return function(){return t(s,e._sig_output)}}(this))},t.prototype._encode=function(e){return null,e(null,h(n.message_types.signature,this._sig_output))},t.prototype._run_hash=function(e){var t;return t=null,null!=this.hash_streamer||(null!=this.data?(this.hash_streamer=g.SHA512(),this.hash_streamer.update(this.data)):t=new Error("Need either a hasher or data")),e(t)},t}(),f=function(t){function r(e){var t,n;n=e.packets,this.data=e.data,this.data_fn=e.data_fn,t=e.keyfetch,this.now=e.now,r.__super__.constructor.call(this,{packets:n,keyfetch:t})}return function(e,t){for(var r in t)v.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype._consume_data=function(e){var t,r,n,i,o,s,a,u;s=p.findDeferral(arguments),n=null,(u=this,function(e){if(null==u.data_fn)return e();n=null,u._sig.hasher.klass,o=g[u._sig.hasher.algname](),t=function(e){return o.update(e)},i=!0,function(e){var o;(o=function(e){var f;if(f=function(){return p.trampoline((function(){return o(e)}))},!i)return e();a=new p.Deferrals((function(){return f(null!=n||r?i=!1:void 0)}),{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/detachsign.iced",funcname:"Verifier._consume_data"}),u.data_fn(t,a.defer({assign_fn:function(){return n=arguments[0],r=arguments[1]},lineno:102})),a._fulfill()})(e)}((function(){return e(u._sig.hasher=o)}))})((function(){return e(n)}))},r.prototype._verify=function(e){var t,r,n,i,o,a;i=p.findDeferral(arguments),t=this.data?[new s({data:this.data})]:[],this.literals=t,n={now:this.now},(a=this,function(e){o=new p.Deferrals(e,{parent:i,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/detachsign.iced",funcname:"Verifier._verify"}),a._sig.verify(t,o.defer({assign_fn:function(){return r=arguments[0]},lineno:114}),n),o._fulfill()})((function(){return e(r)}))},r.prototype._make_literals=function(t){return this.literals.length||this.literals.push(new s({data:e.from([])})),this.literals[0].push_sig(new y.Data({sig:this._sig})),t(null)},r.prototype.run=function(e){var t,r,n,i;r=p.findDeferral(arguments),t=_(e,"Verifier::run"),(i=this,function(e){n=new p.Deferrals(e,{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/detachsign.iced",funcname:"Verifier.run"}),i._find_signature(t(n.defer({lineno:129}))),n._fulfill()})(function(i){return function(){n=new p.Deferrals((function(){n=new p.Deferrals((function(){n=new p.Deferrals((function(){n=new p.Deferrals((function(){return e(null,i.literals)}),{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/detachsign.iced",funcname:"Verifier.run"}),i._make_literals(t(n.defer({lineno:133}))),n._fulfill()}),{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/detachsign.iced",funcname:"Verifier.run"}),i._verify(t(n.defer({lineno:132}))),n._fulfill()}),{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/detachsign.iced",funcname:"Verifier.run"}),i._consume_data(t(n.defer({lineno:131}))),n._fulfill()}),{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/detachsign.iced",funcname:"Verifier.run"}),i._fetch_key(t(n.defer({lineno:130}))),n._fulfill()}}(this))},r}(c),t.sign=function(e,t){var r,n,i,o,s,a,f,c,l,h;l=p.findDeferral(arguments),r=e.data,o=e.hash_streamer,c=e.signing_key,s=e.now,a=new u({data:r,hash_streamer:o,signing_key:c,now:s}),function(e){h=new p.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/detachsign.iced",funcname:"sign"}),a.run(h.defer({assign_fn:function(){return i=arguments[0],n=arguments[1],f=arguments[2]},lineno:140})),h._fulfill()}((function(){return a.scrub(),t(i,n,f)}))},t.verify=function(e,t){var r,n,i,o,s,a,u,c,l,h;l=p.findDeferral(arguments),r=e.data,n=e.data_fn,u=e.packets,o=e.keyfetch,a=e.now,c=new f({data:r,data_fn:n,packets:u,keyfetch:o,now:a}),function(e){h=new p.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/detachsign.iced",funcname:"verify"}),c.run(h.defer({assign_fn:function(){return i=arguments[0],s=arguments[1]},lineno:148})),h._fulfill()}((function(){return t(i,s)}))}}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c,l;e=r(465).C,c=r(466),s=c.bufeq,n=c.PpBuffer,(l=r(467)).pow2,f=l.twos_compl_inv,i=l.U32MAX,u=r(464).pack,a=function(e,t){return{type:e,raw:t}},t.Unpacker=o=function(){function t(e,t){this._opts=null!=t?t:{},this._orig_buffer=e,this._buffer=new n(e),this._ext=this._opts.ext||(this._opts.no_ext?null:a)}return t.prototype.u_buf=function(e){return this._buffer.read_buffer(e)},t.prototype.u_str=function(e){return this.u_buf(e).toString("utf8")},t.prototype.u_bin=function(e){return this.u_buf(e)},t.prototype.u_ext=function(e){var t,r;if(r=this.u_uint8(),t=this.u_buf(e),null!=this._opts.ext)return this._opts.ext(r,t);throw new Error("No ext hook but got message type: "+r)},t.prototype.u_array=function(e){var t,r;for(r=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)r.push(this.u());return r},t.prototype.u_map=function(e){var t,r,n,i,o,s,a;for(i={},n=[],t=o=0;0<=e?o<e:o>e;t=0<=e?++o:--o){if(r=this.u(),n.push(r),null!=i[r])throw new Error("duplicate key '"+r+"'");i[r]=this.u()}if(this._opts.strict)for(t=s=0,a=n.length-1;0<=a?s<a:s>a;t=0<=a?++s:--s)if(n[t]>n[t+1])throw new Error("unsorted object keys in strict mode: "+n[t]+" > "+n[t+1]);return i},t.prototype.u_uint8=function(){return this._buffer.read_uint8()},t.prototype.u_uint16=function(){return this._buffer.read_uint16()},t.prototype.u_uint32=function(){return this._buffer.read_uint32()},t.prototype.u_int8=function(){return this._buffer.read_int8()},t.prototype.u_int16=function(){return this._buffer.read_int16()},t.prototype.u_int32=function(){return this._buffer.read_int32()},t.prototype.u_uint64=function(){return this.u_uint32()*i+this.u_uint32()},t.prototype.u_double=function(){return this._buffer.read_float64()},t.prototype.u_float=function(){return this._buffer.read_float32()},t.prototype.u_int64=function(){var e,t,r;return e=(r=function(){var e,t;for(t=[],e=0;e<2;++e)t.push(this.u_uint32());return t}.call(this))[0],t=r[1],i*(e-i)+t},t.prototype.u=function(){var t,r;if((t=this.u_uint8())<=e.positive_fix_max)return t;if(t>=e.negative_fix_min&&t<=e.negative_fix_max)return f(t,8);if(t>=e.fix_str_min&&t<=e.fix_str_max)return r=t&e.fix_str_count_mask,this.u_str(r);if(t>=e.fix_array_min&&t<=e.fix_array_max)return r=t&e.fix_array_count_mask,this.u_array(r);if(t>=e.fix_map_min&&t<=e.fix_map_max)return r=t&e.fix_map_count_mask,this.u_map(r);switch(t){case e.null:return null;case e.true:return!0;case e.false:return!1;case e.uint8:return this.u_uint8();case e.uint16:return this.u_uint16();case e.uint32:return this.u_uint32();case e.uint64:return this.u_uint64();case e.int8:return this.u_int8();case e.int16:return this.u_int16();case e.int32:return this.u_int32();case e.int64:return this.u_int64();case e.double:return this.u_double();case e.float:return this.u_float();case e.str8:return this.u_str(this.u_uint8());case e.str16:return this.u_str(this.u_uint16());case e.str32:return this.u_str(this.u_uint32());case e.bin8:return this.u_bin(this.u_uint8());case e.bin16:return this.u_bin(this.u_uint16());case e.bin32:return this.u_bin(this.u_uint32());case e.array16:return this.u_array(this.u_uint16());case e.array32:return this.u_array(this.u_uint32());case e.map16:return this.u_map(this.u_uint16());case e.map32:return this.u_map(this.u_uint32());case e.fix_ext1:return this.u_ext(1);case e.fix_ext2:return this.u_ext(2);case e.fix_ext4:return this.u_ext(4);case e.fix_ext8:return this.u_ext(8);case e.fix_ext16:return this.u_ext(16);case e.ext8:return this.u_ext(this.u_uint8());case e.ext16:return this.u_ext(this.u_uint16());case e.ext32:return this.u_ext(this.u_uint32());default:throw new Error("unhandled type "+t)}},t.prototype.unpack=function(){var e,t,r,n;if(n=this.u(),this._opts.strict){if((e=(r=u(n,{sort_keys:!0})).length)!==(t=this._orig_buffer.length))throw new Error("encoding size mismatch: wanted "+e+" but got "+t);if(!s(r,this._orig_buffer))throw new Error("Got non-standard encoding in strict mode")}return n},t}(),t.unpack=function(e,t){return null==t&&(t={}),new o(e,t).unpack()}}).call(this)},function(e,t,r){(function(){var e,n={}.hasOwnProperty;e=r(137).BaseKeyPair,t.BaseKeyPair=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,e),t.prototype.export_secret_key_kb=function(e,t){var r,n,i;return r=null,null==(n=null!=(i=this.priv)?i.key:void 0)&&(r=new Error("no private key available")),t(r,n)},t}(e)}).call(this)},function(e,t,r){(function(){var e,n,i,o={}.hasOwnProperty;e=r(357).KeyFetcher,i=function(e){return e.toString("hex")},n=function(e){function t(){this._keys={},this._kms={}}return function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.prototype.add_key_manager=function(e){var t,r,n,o,s,a;for(a=[],o=0,s=(r=e.export_pgp_keys_to_keyring()).length;o<s;o++)t=r[o],n=i(t.key_material.get_key_id()),this._keys[n]=t,a.push(this._kms[n]=e);return a},t.prototype.fetch=function(e,t,r){var n,o,s,a,u,f,c,l,h,p;for(n=null,o=function(){var t,r,n;for(n=[],t=0,r=e.length;t<r;t++)u=e[t],n.push(i(u));return n}(),f=null,s=l=0,h=o.length;l<h;s=++l)if(a=o[s],null!=(u=this._keys[a])&&null!=(p=u.key)?p.can_perform(t):void 0){c=s,f=this._kms[a];break}return null==f&&(n=new Error("key not found: "+JSON.stringify(o))),f?f.fetch(e,t,r):r(n,f,c)},t.prototype.find_best_key=function(e,t){var r,n,o,s,a,u;return s=e.key_id,n=e.flags,null==(u=this._kms[a=i(s)])?r=new Error("Could not find key for fingerprint "+a):null==(o=u.find_best_pgp_key(n))&&(r=new Error("no matching key for flags: "+n)),t(r,o)},t.prototype.lookup=function(e){return this._keys[i(e)]},t}(e),t.PgpKeyRing=n,t.KeyRing=n}).call(this)},function(e,t,r){(function(t){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A,B,D,M,P,I={}.hasOwnProperty,U=function(e,t){for(var r in t)I.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},T=[].indexOf||function(e){for(var t=0,r=this.length;t<r;t++)if(t in this&&this[t]===e)return t;return-1};x=r(34),D=function(){},h=(M=r(475)).SignatureEngineInterface,f=M.KeyManagerInterface,S=r(62).make_esc,v=r(386),(P=r(50)).athrow,b=P.bufferify,y=P.base64u,P.buffer_xor,_=P.asyncify,p=P.akatch,E=r(36),d=r(1326).alloc,c=r(470).Signature,a=r(735).Encryption,o=r(387).EdDSA,w=r(459).errors,i=r(472).DH,E.kb,n=E.openpgp,u=function(e){function r(e){this.key=e.key,this.server_half=e.server_half}return U(r,e),r.generate=function(e,t){var n,i,s,a,u,f,c,l,h;l=x.findDeferral(arguments),n=e.algo,u=e.seed,c=e.split,f=e.server_half,a=e.klass,n||(n=o),a||(a=r),function(e){h=new x.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced",funcname:"KeyManager.generate"}),n.generate({split:c,seed:u,server_half:f},h.defer({assign_fn:function(){return i=arguments[0],s=arguments[1],f=arguments[2]},lineno:30})),h._fulfill()}((function(){return t(i,new a({key:s,server_half:f}))}))},r.prototype.get_mask=function(){return n.key_flags.sign_data|n.key_flags.certify_keys|n.key_flags.auth},r.prototype.fetch=function(e,t,r){var n,i,o,s;return s=this.key.ekid().toString("hex"),i=null,o=this.get_mask(),T.call(e,s)>=0&&(t&o)===t?i=this.key:n=new Error("Key not found"),r(n,i)},r.prototype.get_keypair=function(){return this.key},r.prototype.get_primary_keypair=function(){return this.key},r.prototype.can_verify=function(){return!0},r.prototype.can_sign=function(){var e;return null!=(e=this.key)?e.can_sign():void 0},r.prototype.eq=function(e){return this.key.eq(e.key)},r.import_private=function(e,n){var i,s,a,u,f,c,l;if(D,c=x.findDeferral(arguments),s=e.hex,u=e.raw,i=f=null,null!=s)try{u=t.from(s,"hex")}catch(e){return n(e)}!function(e){l=new x.Deferrals(e,{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced",funcname:"KeyManager.import_private"}),o.import_private({raw:u},l.defer({assign_fn:function(){return i=arguments[0],a=arguments[1]},lineno:69})),l._fulfill()}((function(){return null==i&&(f=new r({key:a})),n(i,f)}))},r.import_public=function(e,n){var i,a,u,f,c,l,h,p;if(D,l=x.findDeferral(arguments),a=e.hex,f=e.raw,i=c=null,null!=a)try{f=t.from(a,"hex")}catch(e){return n(e)}p=o.parse_kb(f),i=p[0],u=p[1],function(e){if(null==i)return e(c=new r({key:u}));!function(e){h=new x.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced",funcname:"KeyManager.import_public"}),s.import_public({raw:f},h.defer({assign_fn:function(){return i=arguments[0],c=arguments[1]},lineno:84})),h._fulfill()}(e)}((function(){return n(i,c)}))},r.prototype.check_public_eq=function(e){return this.eq(e)},r.prototype.export_public=function(e,t){return e.asp,e.regen,t(null,this.key.ekid().toString("hex"))},r.prototype.export_private=function(e,t){var r,n,i,o,s,a;o=x.findDeferral(arguments),e.asp,n=e.p3skb,e.passphrase,r=i=null,(a=this,function(e){if(n)return e(r=new Error("No support yet for P3SKB encrypted secret key exports"));!function(e){s=new x.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced",funcname:"KeyManager.export_private"}),a.key.export_secret_key_kb({},s.defer({assign_fn:function(){return r=arguments[0],i=arguments[1]},lineno:106})),s._fulfill()}(e)})((function(){return t(r,i)}))},r.prototype.export_server_half=function(){var e;return null!=(e=this.server_half)?e.toString("hex"):void 0},r.prototype.get_ekid=function(){return this.get_keypair().ekid()},r.prototype.get_fp2=function(){return this.get_ekid()},r.prototype.get_fp2_formatted=function(){return y.encode(this.get_fp2())},r.prototype.get_type=function(){return"kb"},r.prototype.make_sig_eng=function(){return new l({km:this})},r.prototype.verify_raw=function(e,t){var r,n,i,o;return i=e.sig,r=e.payload,n=e.prefix,new c({key:null!=(o=this.key)?o.ekid():void 0,payload:r,prefix:n,sig:i,detached:!0}).verify(t)},r}(f),s=function(e){function r(){return r.__super__.constructor.apply(this,arguments)}return U(r,e),r.generate=function(e,t){return e.algo=i,e.klass=r,u.generate(e,t)},r.prototype.make_sig_eng=function(){return null},r.prototype.can_sign=function(){return!1},r.prototype.can_verify=function(){return!1},r.prototype.can_encrypt=function(){return!0},r.prototype.can_decrypt=function(){var e;return null!=(null!=(e=this.key)?e.priv:void 0)},r.import_private=function(e,n){var i,o,s,a,u,f;if(D,u=x.findDeferral(arguments),o=e.hex,a=e.raw,i=null,null!=o)try{a=t.from(o,"hex")}catch(e){return n(e)}!function(e){f=new x.Deferrals(e,{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced",funcname:"EncKeyManager.import_private"}),r.generate({seed:a},f.defer({assign_fn:function(){return i=arguments[0],s=arguments[1]},lineno:157})),f._fulfill()}((function(){return n(i,s)}))},r.prototype.get_mask=function(){return n.key_flags.encrypt_comm|n.key_flags.encrypt_storage},r.import_public=function(e,n){var o,s,a,u,f,c;if(s=e.hex,u=e.raw,f=null,null!=s)try{u=t.from(s,"hex")}catch(e){return n(e)}return o=(c=i.parse_kb(u))[0],a=c[1],null==o&&(f=new r({key:a})),n(o,f)},r}(u),B=function(e){var r,n,i,o;if(r=e.armored,n=e.binary,i=e.rawobj,null,null==r&&null==i&&null==n)return[new Error("need either 'armored' or 'binary' or 'rawobj'"),null];if(null!=r&&(n=t.from(r,"base64")),null!=n)try{i=v.unseal(n)}catch(e){return[e,null]}return[(o=d(i))[0],o[1],n]},A=function(e,t){var r,n,i,o,s,a,f,c,l,h;l=x.findDeferral(arguments),r=e.armored,n=e.binary,f=e.rawobj,i=e.encrypt_for,a=e.prefix,o=S(t,"unbox"),function(e){h=new x.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced"}),_(B({armored:r,binary:n,rawobj:f}),o(h.defer({assign_fn:function(){return s=arguments[0],n=arguments[1]},lineno:200}))),h._fulfill()}((function(){null!=a&&(s.prefix=a),h=new x.Deferrals((function(){return null!=c.keypair&&(c.km=new u({key:c.keypair})),null!=c.sender_keypair&&(c.sender_km=new u({key:c.sender_keypair})),null!=c.receiver_keypair&&(c.receiver_km=new u({key:c.receiver_keypair})),t(null,c,n)}),{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced"}),s.unbox({encrypt_for:i},o(h.defer({assign_fn:function(){return c=arguments[0]},lineno:202}))),h._fulfill()}))},g=function(e,t){var r,n,i,o,s,u,f,l,h,p,d,_,y;_=x.findDeferral(arguments),s=e.msg,d=e.sign_with,i=e.encrypt_for,r=e.anonymous,u=e.nonce,h=e.prefix,o=S(t,"box"),s=b(s),function(e){null!=i?function(e){y=new x.Deferrals(e,{parent:_,filename:"/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced"}),a.box({sign_with:d,encrypt_for:i,plaintext:s,anonymous:r,nonce:u},o(y.defer({assign_fn:function(){return l=arguments[0]},lineno:219}))),y._fulfill()}(e):function(e){y=new x.Deferrals(e,{parent:_,filename:"/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced"}),c.box({km:d,payload:s,prefix:h},o(y.defer({assign_fn:function(){return l=arguments[0]},lineno:221}))),y._fulfill()}(e)}((function(){return f=l.frame_packet(),p=v.seal({obj:f,dohash:!1}),n=p.toString("base64"),t(null,n,p,l.sig)}))},k=function(e){var t,r,n;return t=e.armored,[(n=m({armored:t}))[0],null!=(r=n[1])?r.body:void 0]},m=function(e){var r;return r=e.armored,[null,{body:t.from(r,"base64"),type:n.message_types.generic,payload:r}]},l=function(e){function r(e){this.km=e.km}return U(r,e),r.prototype.get_km=function(){return this.km},r.prototype.get_unverified_payload_from_raw_sig_body=function(e,t){var r,n,i,o,s,a;s=x.findDeferral(arguments),r=e.body,n=S(t,"get_payload_from_raw_sig_body"),function(e){a=new x.Deferrals(e,{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced",funcname:"SignatureEngine.get_unverified_payload_from_raw_sig_body"}),p((function(){return v.unseal(r)}),n(a.defer({assign_fn:function(){return o=arguments[0]},lineno:256}))),a._fulfill()}((function(){a=new x.Deferrals((function(){return t(null,i.payload)}),{parent:s,filename:"/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced",funcname:"SignatureEngine.get_unverified_payload_from_raw_sig_body"}),_(d(o),n(a.defer({assign_fn:function(){return i=arguments[0]},lineno:257}))),a._fulfill()}))},r.prototype.get_body=function(e,t){var r;return t((r=k(e))[0],r[1])},r.prototype.box=function(e,t,r){var n,i,o,s,a,u,f,c;u=x.findDeferral(arguments),o=(null!=r?r:{}).prefix,i=S(t,"SignatureEngine::box"),(c=this,function(t){f=new x.Deferrals(t,{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced",funcname:"SignatureEngine.box"}),g({msg:e,prefix:o,sign_with:c.km},i(f.defer({assign_fn:function(){return n=arguments[0],s=arguments[1],a=arguments[2]},lineno:270}))),f._fulfill()})((function(){return t(null,{type:"kb",armored:n,kb:n,raw:s,sig:a})}))},r.prototype.unbox=function(e,r,n){var i,o,s,a,u,f,c,l,h;c=x.findDeferral(arguments),null==n&&(n={}),a=S(r,"SignatureEngine::unbox"),s=u=null,(i=t.isBuffer(e)?{binary:e}:{armored:e}).prefix=n.prefix,function(e){l=new x.Deferrals(e,{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/keybase/hilev.iced",funcname:"SignatureEngine.unbox"}),A(i,a(l.defer({assign_fn:function(){return f=arguments[0],o=arguments[1]},lineno:282}))),l._fulfill()}((h=this,function(){return f.km.eq(h.km)?u=f.payload:(f.km.get_ekid().toString("hex"),h.km.get_ekid().toString("hex"),s=new w.WrongSigningKeyError("Got wrong signing key")),r(s,u,o)}))},r}(h),e.exports={box:g,unbox:A,unbox_decode:B,KeyManager:u,EncKeyManager:s,decode_sig:m,get_sig_body:k,encode:v}}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f={}.hasOwnProperty;s=r(34),a=r(36),n=a.kb,a.openpgp,i=r(469).Packet,u=r(62).make_esc,o=r(471).dh,e=function(e){function t(e){this.encrypt_for=e.encrypt_for,this.sign_with=e.sign_with,this.plaintext=e.plaintext,this.ciphertext=e.ciphertext,this.sender_key=e.sender_key,this.nonce=e.nonce,this.anonymous=e.anonymous,t.__super__.constructor.call(this),this.ephemeral=!1}return function(e,t){for(var r in t)f.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.ENC_TYPE=n.public_key_algorithms.NACL_DH,t.tag=function(){return n.packet_tags.encryption},t.prototype.tag=function(){return t.tag()},t.prototype.get_packet_body=function(){var e;return e=t.ENC_TYPE,{sender_key:this.sender_key,ciphertext:this.ciphertext,nonce:this.nonce,enc_type:e,receiver_key:this.receiver_key}},t.alloc=function(e){var r,n,i,o,s,a;if(a=e.tag,i=e.body,s=null,null!=(o=a!==t.tag()?new Error("wrong tag found: "+a):(r=i.enc_type)!==(n=t.ENC_TYPE)?o=new Error("Expected Curve25519 DH (type "+n+"); got "+r):(s=new t(i),null)))throw o;return s},t.prototype.is_signature=function(){return!1},t.prototype.get_sender_keypair=function(e,t){var r,n,i,a,u,f,c;u=s.findDeferral(arguments),a=e.sign_with,r=e.encrypt,n=i=null,(c=this,function(e){if(null!=a)return e(i=a.get_keypair());!function(e){if(null!=c.sign_with)return e(i=c.sign_with.get_keypair());!function(e){if(null!=c.sender_keypair)return e(i=c.sender_keypair);!function(e){var t;if(!r)return e(null!=c.sender_key?(t=o.Pair.parse_kb(c.sender_key),n=t[0],c.sender_keypair=t[1],null==n?i=c.sender_keypair:void 0):n=new Error("Cannot encrypt without a sender keypair"));!function(e){var t;f=new s.Deferrals(e,{parent:u,filename:"/Users/max/src/keybase/kbpgp/src/keybase/packet/encryption.iced",funcname:"Encryption.get_sender_keypair"}),o.Pair.generate({},f.defer({assign_fn:(t=c,function(){return n=arguments[0],t.sender_keypair=arguments[1]}),lineno:56})),f._fulfill()}((function(){return i=c.sender_keypair,e(c.ephemeral=!0)}))}(e)}(e)}(e)})((function(){return t(n,i)}))},t.prototype.encrypt=function(e,t){var r,n,i,o,a,f;o=s.findDeferral(arguments),r=u(t,"encrypt"),(f=this,function(e){a=new s.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/keybase/packet/encryption.iced",funcname:"Encryption.encrypt"}),f.get_sender_keypair({encrypt:!0},r(a.defer({assign_fn:function(){return i=arguments[0]},lineno:71}))),a._fulfill()})(function(e){return function(){var u,f;n=e.encrypt_for.get_keypair(),a=new s.Deferrals((function(){return e.anonymous&&!e.ephemeral||(e.sender_key=i.ekid()),e.anonymous||(e.receiver_key=n.ekid()),t(null)}),{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/keybase/packet/encryption.iced",funcname:"Encryption.encrypt"}),n.encrypt_kb({plaintext:e.plaintext,sender:i,nonce:e.nonce},r(a.defer({assign_fn:(u=e,f=e,function(){return u.ciphertext=arguments[0].ciphertext,f.nonce=arguments[0].nonce}),lineno:73}))),a._fulfill()}}(this))},t.prototype.decrypt=function(e,t){var r,n,i,o,a,f,c,l,h;c=s.findDeferral(arguments),f=e.sign_with,n=e.encrypt_for,i=u(t,"decrypt"),(h=this,function(e){l=new s.Deferrals(e,{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/keybase/packet/encryption.iced",funcname:"Encryption.decrypt"}),h.get_sender_keypair({sign_with:f},i(l.defer({assign_fn:function(){return a=arguments[0]},lineno:82}))),l._fulfill()})(function(e){return function(){var u;r={ciphertext:e.ciphertext,nonce:e.nonce,sender:a},o=n.get_keypair(),l=new s.Deferrals((function(){return t(null,{sender_keypair:a,plaintext:e.plaintext,receiver_keypair:o})}),{parent:c,filename:"/Users/max/src/keybase/kbpgp/src/keybase/packet/encryption.iced",funcname:"Encryption.decrypt"}),o.decrypt_kb(r,i(l.defer({assign_fn:(u=e,function(){return u.plaintext=arguments[0]}),lineno:85}))),l._fulfill()}}(this))},t.prototype.unbox=function(e,t){var r,n,i,o,a,u;o=s.findDeferral(arguments),r=e.encrypt_for,(u=this,function(e){a=new s.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/kbpgp/src/keybase/packet/encryption.iced",funcname:"Encryption.unbox"}),u.decrypt({encrypt_for:r},a.defer({assign_fn:function(){return n=arguments[0],i=arguments[1]},lineno:91})),a._fulfill()})((function(){return t(n,i)}))},t.box=function(e,r){var n,i,o,a,u,f,c,l,h;l=s.findDeferral(arguments),c=e.sign_with,i=e.encrypt_for,f=e.plaintext,n=e.anonymous,a=e.nonce,u=new t({sign_with:c,encrypt_for:i,plaintext:f,anonymous:n,nonce:a}),function(e){h=new s.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/keybase/packet/encryption.iced",funcname:"Encryption.box"}),u.encrypt({},h.defer({assign_fn:function(){return o=arguments[0]},lineno:98})),h._fulfill()}((function(){return null!=o&&(u=null),r(o,u)}))},t}(i),t.Encryption=e}).call(this)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){(function(){var e,n,i,o,s,a=[].slice;e=r(452),t.iced=n=r(706),s=function(e,t,r,i){var o,s,u,f,c,l;c=n.findDeferral(arguments),s=new n.Rendezvous,i[0]=s.id(!0).defer({assign_fn:function(){return o=a.call(arguments,0)},lineno:20,context:l}),u=setTimeout(s.id(!1).defer({lineno:21,context:l}),t),function(e){l=new n.Deferrals(e,{parent:c,filename:"/Users/max/src/iced/iced-coffee-script/iced-runtime/src/library.iced"}),s.wait(l.defer({assign_fn:function(){return f=arguments[0]},lineno:22})),l._fulfill()}((function(){return r&&(r[0]=f),f&&clearTimeout(u),e.apply(null,o)}))},t.timeout=function(e,t,r){var n;return s(e,t,r,n=[]),n[0]},i=function(e,t,r){var i,o,s;o=n.findDeferral(arguments),function(e){s=new n.Deferrals(e,{parent:o,filename:"/Users/max/src/iced/iced-coffee-script/iced-runtime/src/library.iced"}),r[0]=s.defer({assign_fn:function(){return i=arguments[0]},lineno:40}),s._fulfill()}((function(){return i||(t[0]=!1),e()}))},t.iand=function(e,t){var r;return i(e,t,r=[]),r[0]},o=function(e,t,r){var i,o,s;o=n.findDeferral(arguments),function(e){s=new n.Deferrals(e,{parent:o,filename:"/Users/max/src/iced/iced-coffee-script/iced-runtime/src/library.iced"}),r[0]=s.defer({assign_fn:function(){return i=arguments[0]},lineno:59}),s._fulfill()}((function(){return i&&(t[0]=!0),e()}))},t.ior=function(e,t){var r;return o(e,t,r=[]),r[0]},t.Pipeliner=function(){function t(t,r){this.window=t||1,this.delay=r||0,this.queue=[],this.n_out=0,this.cb=null,this[e.deferrals]=this,this.defer=this._defer}return t.prototype.waitInQueue=function(e){var t,r,i;t=n.findDeferral(arguments),(i=this,function(e){var o;(o=function(e){var s,a;if(s=e,a=function(){return n.trampoline((function(){return o(e)}))},!(i.n_out>=i.window))return s();!function(e){r=new n.Deferrals(e,{parent:t,filename:"/Users/max/src/iced/iced-coffee-script/iced-runtime/src/library.iced",funcname:"Pipeliner.waitInQueue"}),i.cb=r.defer({lineno:101}),r._fulfill()}(a)})(e)})(function(i){return function(){i.n_out++,function(e){if(!i.delay)return e();!function(e){r=new n.Deferrals(e,{parent:t,filename:"/Users/max/src/iced/iced-coffee-script/iced-runtime/src/library.iced",funcname:"Pipeliner.waitInQueue"}),setTimeout(r.defer({lineno:109}),i.delay),r._fulfill()}(e)}((function(){return e()}))}}(this))},t.prototype.__defer=function(e,t){var r,i,o,s,u;o=n.findDeferral(arguments),function(r){s=new n.Deferrals(r,{parent:o,filename:"/Users/max/src/iced/iced-coffee-script/iced-runtime/src/library.iced",funcname:"Pipeliner.__defer"}),i=s.defer({lineno:123}),e[0]=function(){var e,r;return e=1<=arguments.length?a.call(arguments,0):[],null!=(r=t.assign_fn)&&r.apply(null,e),i()},s._fulfill()}((u=this,function(){if(u.n_out--,u.cb)return r=u.cb,u.cb=null,r()}))},t.prototype._defer=function(e){var t;return t=[],this.__defer(t,e),t[0]},t.prototype.flush=function(e){var t,r,i,o,s;r=e,t=n.findDeferral(arguments),o=this,(i=function(e){var r,a;if(r=e,a=function(){return n.trampoline((function(){return i(e)}))},!o.n_out)return r();!function(e){s=new n.Deferrals(e,{parent:t,filename:"/Users/max/src/iced/iced-coffee-script/iced-runtime/src/library.iced",funcname:"Pipeliner.flush"}),o.cb=s.defer({lineno:152}),s._fulfill()}(a)})(r)},t}()}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w;f=r(34),v=r(219),p=v.nbv,v.nbi,i=v.BigInteger,r(82).prng.native_rng,g=r(1299).small_primes,c=r(62).make_esc,e=r(50).ASP,h=r(115).nbs,w=r(94),o=w.MRF,a=w.SRF,function(){function e(){this.start=Date.now()}e.prototype.stop=function(){return Date.now()-this.start}}(),n=function(){function e(){this.tot=0,this.n=0}return e.prototype.start=function(){return this._t=Date.now()},e.prototype.stop=function(){var e;return e=Date.now()-this._t,console.log("ran in "+e),this.tot+=e,this.n++},e.prototype.avg=function(){return this.tot/this.n},e}(),_=function(e,t){return e.modInt(t)},new n,u=function(e){var t,r,n,i,o;for(i=p(1),r=e.bitLength(),r--,t=e.byteLength(),n=o=r;r<=0?o<=0:o>=0;n=r<=0?++o:--o)(i=i.square()).byteLength()>t&&(i=i.mod(e)),e.testBit(n)&&(i=i.shiftLeft(1));return i.compareTo(e)>0&&(i=i.mod(e)),0===i.compareTo(p(2))},b=function(e){var t,r,n,s,a,u,f,c;if(a=e.s,s=e.r,r=e.p,n=e.p1,0!==(u=o().random_zn(r).modPow(s,r)).compareTo(i.ONE))for(t=f=c=a-1;c<=0?f<=0:f>=0;t=c<=0?++f:--f)if(0!==u.compareTo(n)){if(0===t)return!1;if(0===(u=u.square().mod(r)).compareTo(i.ONE))return!1}return!0},m=function(e){var t,r;return!((t=e.p).compareTo(i.ZERO)<=0)&&(t.compareTo(p(7))<=0?2===(r=t.intValue())||3===r||5===r||7===r:!!t.testBit(0))},l=function(t,r){var n,o,s,a,u,l,h,p,d,_,y;_=f.findDeferral(arguments),u=t.p,a=t.iter,(n=t.asp)||(n=new e({})),a||(a=10),o=c(r,"miller_rabin"),p=m({p:u}),function(e){if(!p)return e();l=u.subtract(i.ONE),d=l.getLowestSetBit(),h=l.shiftRight(d),p=!0,function(e){var t,r,i,c;s=0,i=(t=a)>0?1:-1,r=t>0,(c=function(e){var t,g;if(t=e,g=function(){return f.trampoline((function(){return s+=i,c(e)}))},!0===r&&s>=a||!1===r&&s<=a)return t();y=new f.Deferrals((function(){!function(e){if(b({s:d,r:h,p:u,p1:l}))return e();p=!1,t()}(g)}),{parent:_,filename:"/Users/max/src/keybase/kbpgp/src/primegen.iced"}),n.progress({what:"mr",i:s,total:a,p:u},o(y.defer({lineno:122}))),y._fulfill()})(e)}((function(){!function(e){y=new f.Deferrals(e,{parent:_,filename:"/Users/max/src/keybase/kbpgp/src/primegen.iced"}),n.progress({what:"mr",i:a,total:a,p:u},o(y.defer({lineno:127}))),y._fulfill()}(e)}))}((function(){return r(null,p)}))},s=function(){function e(e,t){this.p=e,this.sieve=t,this.inc=0,this.maxinc=-1,this.sievepos=_(this.p,this.sieve.length),this.calcmods()}return e.prototype.getp=function(){return this.p},e.prototype.setmax=function(e){if(-1!==this.maxinc)throw new Error("can only setmax() once");return this.maxinc=e},e.prototype.calcmods=function(){var e;return this.p=this.p.add(p(this.inc)),-1!==this.maxinc&&(this.maxinc-=this.inc),this.inc=0,this.mods=function(){var t,r,n;for(n=[],t=0,r=g.length;t<r;t++)e=g[t],n.push(_(this.p,e));return n}.call(this)},e.prototype.decrement_mods_find_divisor=function(){var e,t,r,n;for(e=r=0,n=g.length;r<n;e=++r)for(t=g[e];this.mods[e]+this.inc>=t;)if(this.mods[e]-=t,this.mods[e]+this.inc===0)return!0;return!1},e.prototype.next_weak=function(){for(var e;;){if(e=this.sieve[this.sievepos],this.sievepos=(this.sievepos+e)%this.sieve.length,this.inc+=e,this.inc>this.maxinc&&this.maxinc>0)return this.tmp=p(0),this.tmp;if(this.inc<0&&this.calcmods(),!this.decrement_mods_find_divisor())return this.tmp=this.p.add(p(this.inc)),this.tmp}},e.prototype.next_fermat=function(){for(;;)if(this.next_weak(),!this.tmp||u(this.tmp))return this.tmp},e.prototype.next_strong=function(e){for(null==e&&(e=32);;)if(this.next_weak(),!this.tmp||u(this.tmp)&&probab_prime(this.tmp,e))return this.tmp},e}(),d=function(e,t){var r,n,a,h,d,_,y,g,b,m,v,w,k,x,E,S;E=f.findDeferral(arguments),k=e.start,m=e.range,w=e.sieve,r=e.asp,(d=e.iters)||(d=20),(y=new s(k,w)).setmax(m),b=function(){var e;for(e=[];(g=y.next_weak()).compareTo(i.ZERO)>0;)e.push(g);return e}(),n=c(t,"prime_search"),v=null,function(e){var t;(t=function(e){var i,s;if(i=e,s=function(){return f.trampoline((function(){return t(e)}))},!b.length||null!=v)return i();a=o().random_word()%b.length,_=b[a],S=new f.Deferrals((function(){!function(e){if(!u(_))return e();!function(e){S=new f.Deferrals(e,{parent:E,filename:"/Users/max/src/keybase/kbpgp/src/primegen.iced"}),l({p:_,iters:d,asp:r},n(S.defer({assign_fn:function(){return h=arguments[0]},lineno:229}))),S._fulfill()}((function(){!function(e){S=new f.Deferrals(e,{parent:E,filename:"/Users/max/src/keybase/kbpgp/src/primegen.iced"}),r.progress({what:"passed_mr",p:_},n(S.defer({lineno:230}))),S._fulfill()}((function(){return e(h?v=_:r.progress({what:"failed_mr",p:_}))}))}))}((function(){return x=b.pop(),s(a<b.length?b[a]=x:void 0)}))}),{parent:E,filename:"/Users/max/src/keybase/kbpgp/src/primegen.iced"}),r.progress({what:"fermat",p:_},n(S.defer({lineno:226}))),S._fulfill()})(e)}((function(){return null==v&&(v=p(0)),t(null,v)}))},y=function(e,t){var r,n,o,s,u,l,h,p,_,y,g;y=f.findDeferral(arguments),l=e.nbits,u=e.iters,r=e.asp,n=e.e,_=[1,2],s=!0,o=c(t,"random_prime"),p=l,h=null,function(e){var t;(t=function(e){var c;if(c=function(){return f.trampoline((function(){return t(e)}))},!s)return e();g=new f.Deferrals((function(){h=h.setBit(0).setBit(l-1).setBit(l-2),function(e){null==n||0===h.subtract(i.ONE).gcd(n).compareTo(i.ONE)?function(e){g=new f.Deferrals(e,{parent:y,filename:"/Users/max/src/keybase/kbpgp/src/primegen.iced"}),r.progress({what:"guess",p:h},o(g.defer({lineno:265}))),g._fulfill()}((function(){!function(e){g=new f.Deferrals(e,{parent:y,filename:"/Users/max/src/keybase/kbpgp/src/primegen.iced"}),d({start:h,range:p,sieve:_,asp:r,iters:u},o(g.defer({assign_fn:function(){return h=arguments[0]},lineno:266}))),g._fulfill()}((function(){return e(s=null==h||0===h.compareTo(i.ZERO))}))})):e()}(c)}),{parent:y,filename:"/Users/max/src/keybase/kbpgp/src/primegen.iced"}),a().random_nbit(l,g.defer({assign_fn:function(){return h=arguments[0]},lineno:262})),g._fulfill()})(e)}((function(){g=new f.Deferrals((function(){return t(null,h)}),{parent:y,filename:"/Users/max/src/keybase/kbpgp/src/primegen.iced"}),r.progress({what:"found",p:h},o(g.defer({lineno:269}))),g._fulfill()}))},t.naive_is_prime=function(e){var t,r,n,i;for(t=Math.floor(Math.sqrt(e)),n=0,i=g.length;n<i;n++){if((r=g[n])>t)return!0;if(e%r==0)return!1}return!1},t.fermat2_test=u,t.nbs=h,t.small_primes=g,t.miller_rabin=l,t.random_prime=y}).call(this)},function(e,t){function r(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id=1286},function(e,t,r){(function(t){!function(){function r(e,t,n){if(!(this instanceof r))return new r(e,t,n);null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function n(){return new r(null)}r.prototype.am=function(e,t,r,n,i,o){for(var s=16383&t,a=t>>14;--o>=0;){var u=16383&this[e],f=this[e++]>>14,c=a*u+f*s;i=((u=s*u+((16383&c)<<14)+r[n]+i)>>28)+(c>>14)+a*f,r[n++]=268435455&u}return i},r.prototype.DB=28,r.prototype.DM=268435455,r.prototype.DV=1<<28;r.prototype.FV=Math.pow(2,52),r.prototype.F1=24,r.prototype.F2=4;var i,o,s="0123456789abcdefghijklmnopqrstuvwxyz",a=new Array;for(i="0".charCodeAt(0),o=0;o<=9;++o)a[i++]=o;for(i="a".charCodeAt(0),o=10;o<36;++o)a[i++]=o;for(i="A".charCodeAt(0),o=10;o<36;++o)a[i++]=o;function u(e){return s.charAt(e)}function f(e,t){var r=a[e.charCodeAt(t)];return null==r?-1:r}function c(e){var t=n();return t.fromInt(e),t}function l(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function h(e){this.m=e}function p(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function d(e,t){return e&t}function _(e,t){return e|t}function y(e,t){return e^t}function g(e,t){return e&~t}function b(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function m(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function v(){}function w(e){return e}function k(e){this.r2=n(),this.q3=n(),r.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}h.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},h.prototype.revert=function(e){return e},h.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},h.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},h.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},p.prototype.convert=function(e){var t=n();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(r.ZERO)>0&&this.m.subTo(t,t),t},p.prototype.revert=function(e){var t=n();return e.copyTo(t),this.reduce(t),t},p.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var r=32767&e[t],n=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[r=t+this.m.t]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},p.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},p.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},r.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},r.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},r.prototype.fromString=function(e,t,n){var i;if(16==t)i=4;else if(8==t)i=3;else if(256==t)i=8;else if(2==t)i=1;else if(32==t)i=5;else{if(4!=t)return this.fromRadix(e,t),this;i=2}this.t=0,this.s=0;for(var o=e.length,s=!1,a=0;--o>=0;){var u=8==i?255&e[o]:f(e,o);u<0?"-"==e.charAt(o)&&(s=!0):(s=!1,0==a?this[this.t++]=u:a+i>this.DB?(this[this.t-1]|=(u&(1<<this.DB-a)-1)<<a,this[this.t++]=u>>this.DB-a):this[this.t-1]|=u<<a,(a+=i)>=this.DB&&(a-=this.DB))}return n||8!=i||0==(128&e[0])||(this.s=-1,a>0&&(this[this.t-1]|=(1<<this.DB-a)-1<<a)),this.clamp(),s&&r.ZERO.subTo(this,this),this},r.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},r.prototype.dlShiftTo=function(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},r.prototype.drShiftTo=function(e,t){for(var r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},r.prototype.lShiftTo=function(e,t){var r,n=e%this.DB,i=this.DB-n,o=(1<<i)-1,s=Math.floor(e/this.DB),a=this.s<<n&this.DM;for(r=this.t-1;r>=0;--r)t[r+s+1]=this[r]>>i|a,a=(this[r]&o)<<n;for(r=s-1;r>=0;--r)t[r]=0;t[s]=a,t.t=this.t+s+1,t.s=this.s,t.clamp()},r.prototype.rShiftTo=function(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t)t.t=0;else{var n=e%this.DB,i=this.DB-n,o=(1<<n)-1;t[0]=this[r]>>n;for(var s=r+1;s<this.t;++s)t[s-r-1]|=(this[s]&o)<<i,t[s-r]=this[s]>>n;n>0&&(t[this.t-r-1]|=(this.s&o)<<i),t.t=this.t-r,t.clamp()}},r.prototype.subTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this[r]-e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n-=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n-=e[r],t[r++]=n&this.DM,n>>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()},r.prototype.multiplyTo=function(e,t){var n=this.abs(),i=e.abs(),o=n.t;for(t.t=o+i.t;--o>=0;)t[o]=0;for(o=0;o<i.t;++o)t[o+n.t]=n.am(0,i[o],t,o,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&r.ZERO.subTo(t,t)},r.prototype.squareTo=function(e){for(var t=this.abs(),r=e.t=2*t.t;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){var n=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,n,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},r.prototype.divRemTo=function(e,t,i){var o=e.abs();if(!(o.t<=0)){var s=this.abs();if(s.t<o.t)return null!=t&&t.fromInt(0),void(null!=i&&this.copyTo(i));null==i&&(i=n());var a=n(),u=this.s,f=e.s,c=this.DB-l(o[o.t-1]);c>0?(o.lShiftTo(c,a),s.lShiftTo(c,i)):(o.copyTo(a),s.copyTo(i));var h=a.t,p=a[h-1];if(0!=p){var d=p*(1<<this.F1)+(h>1?a[h-2]>>this.F2:0),_=this.FV/d,y=(1<<this.F1)/d,g=1<<this.F2,b=i.t,m=b-h,v=null==t?n():t;for(a.dlShiftTo(m,v),i.compareTo(v)>=0&&(i[i.t++]=1,i.subTo(v,i)),r.ONE.dlShiftTo(h,v),v.subTo(a,a);a.t<h;)a[a.t++]=0;for(;--m>=0;){var w=i[--b]==p?this.DM:Math.floor(i[b]*_+(i[b-1]+g)*y);if((i[b]+=a.am(0,w,i,m,0,h))<w)for(a.dlShiftTo(m,v),i.subTo(v,i);i[b]<--w;)i.subTo(v,i)}null!=t&&(i.drShiftTo(h,t),u!=f&&r.ZERO.subTo(t,t)),i.t=h,i.clamp(),c>0&&i.rShiftTo(c,i),u<0&&r.ZERO.subTo(i,i)}}},r.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},r.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},r.prototype.exp=function(e,t){if(e>4294967295||e<1)return r.ONE;var i=n(),o=n(),s=t.convert(this),a=l(e)-1;for(s.copyTo(i);--a>=0;)if(t.sqrTo(i,o),(e&1<<a)>0)t.mulTo(o,s,i);else{var u=i;i=o,o=u}return t.revert(i)},r.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var r,n=(1<<t)-1,i=!1,o="",s=this.t,a=this.DB-s*this.DB%t;if(s-- >0)for(a<this.DB&&(r=this[s]>>a)>0&&(i=!0,o=u(r));s>=0;)a<t?(r=(this[s]&(1<<a)-1)<<t-a,r|=this[--s]>>(a+=this.DB-t)):(r=this[s]>>(a-=t)&n,a<=0&&(a+=this.DB,--s)),r>0&&(i=!0),i&&(o+=u(r));return i?o:"0"},r.prototype.negate=function(){var e=n();return r.ZERO.subTo(this,e),e},r.prototype.abs=function(){return this.s<0?this.negate():this},r.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var r=this.t;if(0!=(t=r-e.t))return t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},r.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+l(this[this.t-1]^this.s&this.DM)},r.prototype.mod=function(e){var t=n();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(r.ZERO)>0&&e.subTo(t,t),t},r.prototype.modPowInt=function(e,t){var r;return r=e<256||t.isEven()?new h(t):new p(t),this.exp(e,r)},r.ZERO=c(0),r.ONE=c(1),v.prototype.convert=w,v.prototype.revert=w,v.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r)},v.prototype.sqrTo=function(e,t){e.squareTo(t)},k.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=n();return e.copyTo(t),this.reduce(t),t},k.prototype.revert=function(e){return e},k.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},k.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},k.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var x=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],E=(1<<26)/x[x.length-1];function l(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}r.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},r.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),i=c(r),o=n(),s=n(),a="";for(this.divRemTo(i,o,s);o.signum()>0;)a=(r+s.intValue()).toString(e).substr(1)+a,o.divRemTo(i,o,s);return s.intValue().toString(e)+a},r.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),i=Math.pow(t,n),o=!1,s=0,a=0,u=0;u<e.length;++u){var c=f(e,u);c<0?"-"==e.charAt(u)&&0==this.signum()&&(o=!0):(a=t*a+c,++s>=n&&(this.dMultiply(i),this.dAddOffset(a,0),s=0,a=0))}s>0&&(this.dMultiply(Math.pow(t,s)),this.dAddOffset(a,0)),o&&r.ZERO.subTo(this,this)},r.prototype.fromNumber=function(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(r.ONE.shiftLeft(e-1),_,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(r.ONE.shiftLeft(e-1),this);else{var i=new Array,o=7&e;i.length=1+(e>>3),t.nextBytes(i),o>0?i[0]&=(1<<o)-1:i[0]=0,this.fromString(i,256)}},r.prototype.bitwiseTo=function(e,t,r){var n,i,o=Math.min(e.t,this.t);for(n=0;n<o;++n)r[n]=t(this[n],e[n]);if(e.t<this.t){for(i=e.s&this.DM,n=o;n<this.t;++n)r[n]=t(this[n],i);r.t=this.t}else{for(i=this.s&this.DM,n=o;n<e.t;++n)r[n]=t(i,e[n]);r.t=e.t}r.s=t(this.s,e.s),r.clamp()},r.prototype.changeBit=function(e,t){var n=r.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n},r.prototype.addTo=function(e,t){for(var r=0,n=0,i=Math.min(e.t,this.t);r<i;)n+=this[r]+e[r],t[r++]=n&this.DM,n>>=this.DB;if(e.t<this.t){for(n+=e.s;r<this.t;)n+=this[r],t[r++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;r<e.t;)n+=e[r],t[r++]=n&this.DM,n>>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[r++]=n:n<-1&&(t[r++]=this.DV+n),t.t=r,t.clamp()},r.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},r.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},r.prototype.multiplyLowerTo=function(e,t,r){var n,i=Math.min(this.t+e.t,t);for(r.s=0,r.t=i;i>0;)r[--i]=0;for(n=r.t-this.t;i<n;++i)r[i+this.t]=this.am(0,e[i],r,i,0,this.t);for(n=Math.min(e.t,t);i<n;++i)this.am(0,e[i],r,i,0,t-i);r.clamp()},r.prototype.multiplyUpperTo=function(e,t,r){--t;var n=r.t=this.t+e.t-t;for(r.s=0;--n>=0;)r[n]=0;for(n=Math.max(t-this.t,0);n<e.t;++n)r[this.t+n-t]=this.am(t-n,e[n],r,0,0,this.t+n-t);r.clamp(),r.drShiftTo(1,r)},r.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(0==t)r=this[0]%e;else for(var n=this.t-1;n>=0;--n)r=(t*r+this[n])%e;return r},r.prototype.millerRabin=function(e){var t=this.subtract(r.ONE),i=t.getLowestSetBit();if(i<=0)return!1;var o=t.shiftRight(i);(e=e+1>>1)>x.length&&(e=x.length);for(var s=n(),a=0;a<e;++a){s.fromInt(x[Math.floor(Math.random()*x.length)]);var u=s.modPow(o,this);if(0!=u.compareTo(r.ONE)&&0!=u.compareTo(t)){for(var f=1;f++<i&&0!=u.compareTo(t);)if(0==(u=u.modPowInt(2,this)).compareTo(r.ONE))return!1;if(0!=u.compareTo(t))return!1}}return!0},r.prototype.clone=function(){var e=n();return this.copyTo(e),e},r.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},r.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},r.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},r.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},r.prototype.toByteArray=function(e){var t=this.t,r=new Array;r[0]=this.s;var n,i=this.DB-t*this.DB%8,o=0;if(t-- >0)for(i<this.DB&&(n=this[t]>>i)!=(this.s&this.DM)>>i&&(r[o++]=n|this.s<<this.DB-i);t>=0;)i<8?(n=(this[t]&(1<<i)-1)<<8-i,n|=this[--t]>>(i+=this.DB-8)):(n=this[t]>>(i-=8)&255,i<=0&&(i+=this.DB,--t)),e&&(0!=(128&n)&&(n|=-256),0==o&&(128&this.s)!=(128&n)&&++o),(o>0||n!=this.s)&&(r[o++]=n);return r},r.prototype.equals=function(e){return 0==this.compareTo(e)},r.prototype.min=function(e){return this.compareTo(e)<0?this:e},r.prototype.max=function(e){return this.compareTo(e)>0?this:e},r.prototype.and=function(e){var t=n();return this.bitwiseTo(e,d,t),t},r.prototype.or=function(e){var t=n();return this.bitwiseTo(e,_,t),t},r.prototype.xor=function(e){var t=n();return this.bitwiseTo(e,y,t),t},r.prototype.andNot=function(e){var t=n();return this.bitwiseTo(e,g,t),t},r.prototype.not=function(){for(var e=n(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},r.prototype.shiftLeft=function(e){var t=n();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},r.prototype.shiftRight=function(e){var t=n();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},r.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+b(this[e]);return this.s<0?this.t*this.DB:-1},r.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,r=0;r<this.t;++r)e+=m(this[r]^t);return e},r.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},r.prototype.setBit=function(e){return this.changeBit(e,_)},r.prototype.clearBit=function(e){return this.changeBit(e,g)},r.prototype.flipBit=function(e){return this.changeBit(e,y)},r.prototype.add=function(e){var t=n();return this.addTo(e,t),t},r.prototype.subtract=function(e){var t=n();return this.subTo(e,t),t},r.prototype.multiply=function(e){var t=n();return this.multiplyTo(e,t),t},r.prototype.divide=function(e){var t=n();return this.divRemTo(e,t,null),t},r.prototype.remainder=function(e){var t=n();return this.divRemTo(e,null,t),t},r.prototype.divideAndRemainder=function(e){var t=n(),r=n();return this.divRemTo(e,t,r),new Array(t,r)},r.prototype.modPow=function(e,t){var r,i,o=e.bitLength(),s=c(1);if(o<=0)return s;r=o<18?1:o<48?3:o<144?4:o<768?5:6,i=o<8?new h(t):t.isEven()?new k(t):new p(t);var a=new Array,u=3,f=r-1,d=(1<<r)-1;if(a[1]=i.convert(this),r>1){var _=n();for(i.sqrTo(a[1],_);u<=d;)a[u]=n(),i.mulTo(_,a[u-2],a[u]),u+=2}var y,g,b=e.t-1,m=!0,v=n();for(o=l(e[b])-1;b>=0;){for(o>=f?y=e[b]>>o-f&d:(y=(e[b]&(1<<o+1)-1)<<f-o,b>0&&(y|=e[b-1]>>this.DB+o-f)),u=r;0==(1&y);)y>>=1,--u;if((o-=u)<0&&(o+=this.DB,--b),m)a[y].copyTo(s),m=!1;else{for(;u>1;)i.sqrTo(s,v),i.sqrTo(v,s),u-=2;u>0?i.sqrTo(s,v):(g=s,s=v,v=g),i.mulTo(v,a[y],s)}for(;b>=0&&0==(e[b]&1<<o);)i.sqrTo(s,v),g=s,s=v,v=g,--o<0&&(o=this.DB-1,--b)}return i.revert(s)},r.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return r.ZERO;for(var n=e.clone(),i=this.clone(),o=c(1),s=c(0),a=c(0),u=c(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),t?(o.isEven()&&s.isEven()||(o.addTo(this,o),s.subTo(e,s)),o.rShiftTo(1,o)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),t?(a.isEven()&&u.isEven()||(a.addTo(this,a),u.subTo(e,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);n.compareTo(i)>=0?(n.subTo(i,n),t&&o.subTo(a,o),s.subTo(u,s)):(i.subTo(n,i),t&&a.subTo(o,a),u.subTo(s,u))}return 0!=i.compareTo(r.ONE)?r.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},r.prototype.pow=function(e){return this.exp(e,new v)},r.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),r=e.s<0?e.negate():e.clone();if(t.compareTo(r)<0){var n=t;t=r,r=n}var i=t.getLowestSetBit(),o=r.getLowestSetBit();if(o<0)return t;for(i<o&&(o=i),o>0&&(t.rShiftTo(o,t),r.rShiftTo(o,r));t.signum()>0;)(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),(i=r.getLowestSetBit())>0&&r.rShiftTo(i,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return o>0&&r.lShiftTo(o,r),r},r.prototype.isProbablePrime=function(e){var t,r=this.abs();if(1==r.t&&r[0]<=x[x.length-1]){for(t=0;t<x.length;++t)if(r[0]==x[t])return!0;return!1}if(r.isEven())return!1;for(t=1;t<x.length;){for(var n=x[t],i=t+1;i<x.length&&n<E;)n*=x[i++];for(n=r.modInt(n);t<i;)if(n%x[t++]==0)return!1}return r.millerRabin(e)},r.prototype.toMPI=function(){var e=this.toByteArray(),t=8*(e.length-1)+l(e[0]),r="";return r+=String.fromCharCode((65280&t)>>8),r+=String.fromCharCode(255&t),r+=util.bin2str(e)},r.prototype.square=function(){var e=n();return this.squareTo(e),e},r.prototype.fromBuffer=function(e){return this.fromString(function(e){for(var t=e.length,r=new Uint8Array(t),n=0;n<t;n++)r[n]=e.readUInt8(n);return r}(e),256,!0),this},r.fromBuffer=function(e){var t=n();return t.fromBuffer(e),t},r.random_nbit=function(e,t){return new r(e,t)},r.prototype.inspect=function(){return"<BigInteger/pure "+this.toString()+">"},r.fromHex=function(e){if(!e.match(/^[a-fA-F0-9]*$/))throw new Error("hex string invalid: "+e);if(e.length%2!=0)throw new Error("got an odd-length hex-string");return new r(e,16)},r.valueOf=function(e){return function(e){return"number"==typeof e?c(e):e}(e)},r.prototype.toBuffer=function(e){var r;e||(e=0);var n=this.signum();r=0==n?[]:this.toByteArray(n<0);var i=t.from(r);if((diff=e-r.length)>0){var o=t.alloc(diff);o.fill(0),i=t.concat([o,i])}return i},r.prototype.byteLength=function(){return this.t},r.prototype.toDERInteger=function(){return this.toByteArray(!0)},r.fromDERInteger=function(e){var t=n();return t.fromString(e,256,!1),t},r.prototype.toByteArrayUnsigned=function(){return new Uint8Array(this.toBuffer())},r.fromByteArrayUnsigned=function(e){return r.fromBuffer(t.from(e))},r.prototype.toHex=function(e){return this.toBuffer(e).toString("hex")},e.exports={BigInteger:r,nbi:n,nbv:c,Montgomery:p,Classic:h,nbits:l}}()}).call(this,r(11).Buffer)},function(e,t,r){(function(t){!function(){var n=r(707).engine,o=n(0),s=n(1);function a(e,r){if(!(this instanceof a))return new a(e,r);if("string"==typeof e)e=e.replace(/\s+/g,""),r||(r=10),this._v=n(e,r);else if("number"==typeof e)this._v=n(e);else if("object"==typeof e&&Array.isArray(e))this._v=n.fromBuffer(t.from(e));else{if(e.constructor!=o.constructor)throw new Error("failed to get valid inner object in constructor");this._v=e}}function u(e){return new a(n(e))}function f(e){return"number"==typeof e?u(e):e}a.prototype.bitLength=function(){return 0==this.signum()?0:this._v.bitLength()},a.prototype.byteLength=function(){return this.bitLength()>>3},a.prototype.modPowInt=function(e,t){return new a(this._v.powm(n(e),t._v))},a.prototype.modInt=function(e){return this._v.mod(n(e)).toNumber()},a.prototype.testBit=function(e){var t=s.shiftLeft(e);return this._v.and(t).eq(o)?0:1},a.prototype.setBit=function(e){var t=n(1).shiftLeft(e);return new a(this._v.or(t))},a.prototype.shiftLeft=function(e){return new a(this._v.shiftLeft(e))},a.prototype.shiftRight=function(e){return new a(this._v.shiftRight(e))},a.prototype.compareTo=function(e){return this._v.cmp(e._v)},a.prototype.modPow=function(e,t){return new a(this._v.powm(e._v,t._v))},a.prototype.square=function(){return new a(this._v.mul(this._v))},a.prototype.mod=function(e){var t=this._v.mod(e._v);return t.cmp(o)<0&&(t=t.add(e._v)),new a(t)},a.prototype.abs=function(){return new a(this._v.abs())},a.prototype.pow=function(e){return new a(this._v.pow(f(e)._v))},a.prototype.intValue=function(){return this._v.toNumber()},a.prototype.signum=function(){var e=this._v.cmp(o);return ret=e>0?1:0===e?0:-1,ret},a.prototype.negate=function(){return new a(this._v.neg())},a.prototype.equals=function(e){return this._v.eq(e._v)},a.prototype.subtract=function(e){return new a(this._v.sub(e._v))},a.prototype.add=function(e){return new a(this._v.add(e._v))},a.prototype.multiply=function(e){return new a(this._v.mul(e._v))},a.prototype.divide=function(e){if(this._v.ge(o)&&e._v.ge(o))i=this._v.div(e._v);else{var t=this.signum()*e.signum();i=this._v.abs().div(e._v.abs()),t<0&&(i=i.neg())}return new a(i)},a.prototype.gcd=function(e){return new a(this._v.gcd(e._v))},a.prototype.fromBuffer=function(e){return new a(n.fromBuffer(e))},a.fromByteArrayUnsigned=function(e){return a.fromBuffer(t.from(e))},a.fromBuffer=function(e){return new a(n.fromBuffer(e))},a.fromDERInteger=function(e){var t;if(0==e.length)t=a.ZERO;else if(0==e[0])t=a.fromBuffer(e);else if(t=a.fromBuffer(e),128&e[0]){var r=a.ONE.shiftLeft(t.bitLength());t=t.subtract(r)}return t},a.prototype.compute_twos_complement=function(){var e=this.add(a.ONE).bitLength(),t=Math.floor(e/8)+1;return a.ONE.shiftLeft(8*t).add(this)},a.prototype.toDERInteger=function(){var e=null,r=this.signum();if(0==r)e=t.from([0]);else if(r<0){e=this.compute_twos_complement().toBuffer()}else{e=this.toBuffer();this.bitLength()%8==0&&(pad=t.from([0]),e=t.concat([pad,e]))}return function(e){for(var t=new Array,r=0;r<e.length;r++)t[r]=e.readUInt8(r);return t}(e)},a.prototype.divideAndRemainder=function(e){return[new a(this._v.div(e._v)),new a(this._v.mod(e._v))]},a.fromString=function(e,t){return new a(256===t?n.fromBuffer(e):n(e,t))},a.prototype.fromString=function(e,t){return a.fromString(e,t)},a.prototype.toByteArray=function(){for(var e=this.toBuffer(),t=e.length,r=new Array(t),n=0;n<t;n++)r[n]=e[n];return r},a.prototype.toByteArrayUnsigned=function(){return new Uint8Array(this.toBuffer())},a.prototype.toBuffer=function(e){var r=null;if(e||(e=0),r=0==this.signum()?t.from([]):this._v.toBuffer(),(diff=e-r.length)>0){var n=t.alloc(diff);n.fill(0),r=t.concat([n,r])}return r},a.prototype.toHex=function(e){var t=this;return this.signum()<0&&(t=this.compute_twos_complement()),t.toBuffer(e).toString("hex")},a.prototype.clone=function(){return new a(n(this._v))},a.prototype.getLowestSetBit=function(){for(var e=this._v.bitLength(),t=-1,r=n(1),i=0;i<e&&t<0;i++)r.and(this._v).eq(o)?r=r.shiftLeft(1):t=i;return t},a.prototype.modInverse=function(e){return new a(this._v.invertm(e._v))},a.prototype.isEven=function(){return n(1).and(this._v).eq(o)},a.random_nbit=function(e,r){var i=Math.ceil(e/8),o=t.alloc(i);r.nextBytes(o);var s=n.fromBuffer(o),u=n(1).shiftLeft(e).sub(n(1));return new a(s=s.and(u))},a.fromHex=function(e){if(!e.match(/^[a-fA-F0-9]*$/))throw new Error("hex string invalid: "+e);if(e.length%2!=0)throw new Error("got an odd-length hex-string");return new a(e,16)},a.prototype.inspect=function(){return"<BigInteger/fast "+this._v.toString()+">"},a.prototype.toString=function(e){e||(e=10);var t=this._v.toString(e);return 0==t.length?t="0":16==e&&t.length>1&&("0"==t[0]?t=t.slice(1):"-0"==t.slice(0,2)&&(t="-"+t.slice(2))),t},a.valueOf=function(e){return f(e)},a.ZERO=u(0),a.ONE=u(1),e.exports={BigInteger:a,nbi:function(){return new a(n(0))},nbv:u,nbits:function(e){var t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}}}()}).call(this,r(11).Buffer)},function(e,t,r){(function(){t.Generator=r(1290).Generator}).call(this)},function(e,t,r){(function(){var e,n,i;n=r(34),i=function(){},e=e=function(){function e(e){e=e||{},this.lazy_loop_delay=e.lazy_loop_delay||30,this.loop_delay=e.loop_delay||5,this.work_min=e.work_min||1,this.auto_stop_bits=e.auto_stop_bits||4096,this.max_bits_per_delta=e.max_bits_per_delta||4,this.auto_stop=!e.auto_stop||e.auto_stop,this.entropies=[],this.running=!0,this.is_generating=!1,this.timer_race_loop()}return e.prototype.generate=function(e,t){var r,i,o,s,a,u;s=n.findDeferral(arguments),this.is_generating=!0,this.running||this.resume(),i=0,o=[],(u=this,function(t){var f,c;f=[],(c=function(t){var l,h;if(l=function(){return n.trampoline((function(){return c(t)}))},h=function(e){return f.push(e),l()},!(i<e))return t(f);!function(e){if(u.entropies.length)return r=u.entropies.splice(0,1)[0],i+=r[1],e(o.push(r[0]));!function(e){a=new n.Deferrals(e,{parent:s,filename:"/Users/chris/git/more-entropy/src/generator.iced",funcname:"Generator.generate"}),u.delay(a.defer({lineno:28})),a._fulfill()}(e)}(h)})(t)})(function(e){return function(){return e.auto_stop&&e.stop(),e.is_generating=!1,t(o)}}(this))},e.prototype.stop=function(){return this.running=!1},e.prototype.resume=function(){return this.running=!0,this.timer_race_loop()},e.prototype.reset=function(){return this.entropies=[],this.total_bits=0},e.prototype.count_unused_bits=function(){var e,t,r,n;for(e=0,t=0,r=(n=this.entropies).length;t<r;t++)e+=n[t][1];return e},e.prototype.delay=function(e){var t,r,i;r=n.findDeferral(arguments),t=this.is_generating?this.loop_delay:this.lazy_loop_delay,function(e){i=new n.Deferrals(e,{parent:r,filename:"/Users/chris/git/more-entropy/src/generator.iced",funcname:"Generator.delay"}),setTimeout(i.defer({lineno:50}),t),i._fulfill()}((function(){return e()}))},e.prototype.timer_race_loop=function(){var e,t,r,o,s,a,u,f,c,l;t=i,e=n.findDeferral(arguments),this._last_count=null,r=[],s=this,(o=function(t){var i,h,p;if(i=function(){return t(r)},h=function(){return n.trampoline((function(){return o(t)}))},p=function(e){return r.push(e),h()},!s.running)return i();s.count_unused_bits()<s.auto_stop_bits&&(a=s.millisecond_count(),null!=s._last_count&&(u=a-s._last_count)&&(f=Math.floor(s.log_2(Math.abs(u))),f=Math.min(s.max_bits_per_delta,f),c=[u,f],s.entropies.push(c)),s._last_count=a),function(t){l=new n.Deferrals(t,{parent:e,filename:"/Users/chris/git/more-entropy/src/generator.iced",funcname:"Generator.timer_race_loop"}),s.delay(l.defer({lineno:64})),l._fulfill()}(p)})(t)},e.prototype.log_2=function(e){return Math.log(e)/Math.LN2},e.prototype.millisecond_count=function(){var e,t,r;for(e=Date.now(),t=r=0;Date.now()<e+this.work_min+1;)t++,r=Math.sin(Math.sqrt(Math.log(t+r)));return t},e}(),"undefined"!=typeof window&&null!==window&&(window.Generator=e),null!==t&&(t.Generator=e)}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u;u=r(34),a=r(238),s=r(76).WordArray,o=r(712).Lock,i=function(){function t(e,t,r){this.hmac=r||a.sign,this.security_strength=256,e=this.check_entropy(e),t||(t=new s([])),this._instantiate(e,t)}return t.prototype.check_entropy=function(e,t){if(null==t&&(t=!1),8*e.sigBytes*2<(t?2:3)*this.security_strength)throw new Error("entropy must be at least "+1.5*this.security_strength+" bits.");return e},t.prototype._hmac=function(e,t){return this.hmac({key:e,input:t})},t.prototype._update=function(e){var t,r;return t=new s([0],1),null!=e&&(t=t.concat(e)),r=this.V.clone().concat(t),this.K=this._hmac(this.K,r),r.scrub(),t.scrub(),this.V=this._hmac(this.K,this.V),null!=e&&(r=this.V.clone().concat(new s([1<<24],1)).concat(e),this.K=this._hmac(this.K,r),r.scrub(),this.V=this._hmac(this.K,this.V)),null!=e?e.scrub():void 0},t.prototype._instantiate=function(t,r){var n,i;return i=t.concat(r),n=64,this.K=s.from_buffer(e.from(function(){var e,t;for(t=[],e=0;e<n;++e)t.push(0);return t}())),this.V=s.from_buffer(e.from(function(){var e,t;for(t=[],e=0;e<n;++e)t.push(1);return t}())),this._update(i),t.scrub(),this.reseed_counter=1},t.prototype.reseed=function(e){return this._update(this.check_entropy(e,!0)),this.reseed_counter=1},t.prototype.generate=function(e){var t,r;if(8*e>7500)throw new Error("generate cannot generate > 7500 bits in 1 call.");if(this.reseed_counter>=1e4)throw new Error("Need a reseed!");for(t=[],0;0===t.length||t.length*t[0].length*4<e;)this.V=this._hmac(this.K,this.V),t.push(this.V.words);return this._update(),this.reseed_counter+=1,new s((r=[]).concat.apply(r,t)).truncate(e)},t}(),n=function(){function e(e,t){this.gen_seed=e,this.hmac=t,this.drbg=null,this.lock=new o}return e.prototype.generate=function(e,t){var r,n,o,s,a;o=u.findDeferral(arguments),(a=this,function(e){s=new u.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/triplesec/src/drbg.iced",funcname:"ADRBG.generate"}),a.lock.acquire(s.defer({lineno:145})),s._fulfill()})(function(a){return function(){!function(e){if(null!=a.drbg)return e();!function(e){s=new u.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/triplesec/src/drbg.iced",funcname:"ADRBG.generate"}),a.gen_seed(256,s.defer({assign_fn:function(){return n=arguments[0]},lineno:147})),s._fulfill()}((function(){return e(a.drbg=new i(n,null,a.hmac))}))}((function(){!function(e){if(!(a.drbg.reseed_counter>100))return e();!function(e){s=new u.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/triplesec/src/drbg.iced",funcname:"ADRBG.generate"}),a.gen_seed(256,s.defer({assign_fn:function(){return n=arguments[0]},lineno:150})),s._fulfill()}((function(){return e(a.drbg.reseed(n))}))}((function(){return r=a.drbg.generate(e),a.lock.release(),t(r)}))}))}}(this))},e}(),t.DRBG=i,t.ADRBG=n}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c,l,h,p,d={}.hasOwnProperty;l=r(34),f=r(76).WordArray,r(352),e=r(453).AES,a=r(454).TwoFish,r(380),i=r(455).Concat,r(239).SHA512,s=r(352).Salsa20,n=(p=r(708)).Base,u=p.V,h=r(62).make_esc,o=function(t){function r(e){var t,n;n=e.key,t=e.enc,r.__super__.constructor.call(this,{key:n}),null!=t&&(this.key=t.key,this.derived_keys=t.derived_keys)}return function(e,t){for(var r in t)d.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.read_header=function(e){var t;return e(null==(t=this.ct.unshift(2))?new Error("Ciphertext underrun in header"):null==(this.version=u[t.words[1]])?new Error("bad header; couldn't find a good version (got "+t.words[1]+")"):t.words[0]!==this.version.header[0]?new Error("Bad header: unrecognized magic value"):null)},r.prototype.verify_sig=function(e,t){var r,n,o,s,a,u;s=l.findDeferral(arguments),(u=this,function(t){if(null==(o=u.ct.unshift(i.get_output_size()/4)))return t(n=new Error("Ciphertext underrun in signature"));!function(t){a=new l.Deferrals(t,{parent:s,filename:"/Users/max/src/keybase/triplesec/src/dec.iced",funcname:"Decryptor.verify_sig"}),u.sign({input:u.ct,key:e,salt:u.salt},a.defer({assign_fn:function(){return n=arguments[0],r=arguments[1]},lineno:63})),a._fulfill()}((function(){return t(n=null!=n?n:o.equal(r)?null:new Error("Signature mismatch or bad decryption key"))}))})((function(){return t(n)}))},r.prototype.unshift_iv=function(e,t,r){var n;return r(null!=(n=this.ct.unshift(e/4))?null:new Error("Ciphertext underrun in "+t),n)},r.prototype.read_salt=function(e){return e(null==(this.salt=this.ct.unshift(this.version.salt_size/4))?new Error("Ciphertext underrrun in read_salt"):null)},r.prototype.generate_keys=function(e,t){var r,n,i,o,s,a;o=l.findDeferral(arguments),i=e.progress_hook,(a=this,function(e){s=new l.Deferrals(e,{parent:o,filename:"/Users/max/src/keybase/triplesec/src/dec.iced",funcname:"Decryptor.generate_keys"}),a.kdf({salt:a.salt,progress_hook:i},s.defer({assign_fn:function(){return r=arguments[0],n=arguments[1]},lineno:114})),s._fulfill()})((function(){return t(r,n)}))},r.prototype.run=function(t,r){var n,i,o,u,c,p,d,_;p=l.findDeferral(arguments),n=t.data,u=t.progress_hook,i=h(r,"Decryptor::run"),this.ct=f.from_buffer(n),(_=this,function(e){d=new l.Deferrals(e,{parent:p,filename:"/Users/max/src/keybase/triplesec/src/dec.iced",funcname:"Decryptor.run"}),_.read_header(i(d.defer({lineno:141}))),d._fulfill()})(function(t){return function(){d=new l.Deferrals((function(){var n;d=new l.Deferrals((function(){d=new l.Deferrals((function(){d=new l.Deferrals((function(){d=new l.Deferrals((function(){!function(e){if(!t.version.use_twofish)return e();!function(e){d=new l.Deferrals(e,{parent:p,filename:"/Users/max/src/keybase/triplesec/src/dec.iced",funcname:"Decryptor.run"}),t.unshift_iv(a.ivSize,"2fish",i(d.defer({assign_fn:function(){return o=arguments[0]},lineno:148}))),d._fulfill()}((function(){!function(e){d=new l.Deferrals(e,{parent:p,filename:"/Users/max/src/keybase/triplesec/src/dec.iced",funcname:"Decryptor.run"}),t.run_twofish({iv:o,input:t.ct,key:t.keys.twofish,progress_hook:u},i(d.defer({assign_fn:function(){return d.ret=arguments[0]},lineno:149}))),d._fulfill()}(e)}))}((function(){d=new l.Deferrals((function(){d=new l.Deferrals((function(){return r(null,c.to_buffer())}),{parent:p,filename:"/Users/max/src/keybase/triplesec/src/dec.iced",funcname:"Decryptor.run"}),t.run_salsa20({iv:o,input:t.ct,key:t.keys.salsa20,output_iv:!1,progress_hook:u},i(d.defer({assign_fn:function(){return c=arguments[0]},lineno:151}))),d._fulfill()}),{parent:p,filename:"/Users/max/src/keybase/triplesec/src/dec.iced",funcname:"Decryptor.run"}),t.unshift_iv(s.ivSize,"Salsa",i(d.defer({assign_fn:function(){return o=arguments[0]},lineno:150}))),d._fulfill()}))}),{parent:p,filename:"/Users/max/src/keybase/triplesec/src/dec.iced",funcname:"Decryptor.run"}),t.run_aes({iv:o,input:t.ct,key:t.keys.aes,progress_hook:u},i(d.defer({assign_fn:function(){return d.ret=arguments[0]},lineno:146}))),d._fulfill()}),{parent:p,filename:"/Users/max/src/keybase/triplesec/src/dec.iced",funcname:"Decryptor.run"}),t.unshift_iv(e.ivSize,"AES",i(d.defer({assign_fn:function(){return o=arguments[0]},lineno:145}))),d._fulfill()}),{parent:p,filename:"/Users/max/src/keybase/triplesec/src/dec.iced",funcname:"Decryptor.run"}),t.verify_sig(t.keys.hmac,i(d.defer({lineno:144}))),d._fulfill()}),{parent:p,filename:"/Users/max/src/keybase/triplesec/src/dec.iced",funcname:"Decryptor.run"}),t.generate_keys({progress_hook:u},i(d.defer({assign_fn:(n=t,function(){return n.keys=arguments[0]}),lineno:143}))),d._fulfill()}),{parent:p,filename:"/Users/max/src/keybase/triplesec/src/dec.iced",funcname:"Decryptor.run"}),t.read_salt(i(d.defer({lineno:142}))),d._fulfill()}}(this))},r.prototype.clone=function(){var e,t;return(e=new r({key:null!=(t=this.key)?t.to_buffer():void 0,rng:this.rng,version:this.version})).derived_keys=this.clone_derived_keys(),e},r}(n),c=function(e,t){var r,n,i,s,a,u,f,c;f=l.findDeferral(arguments),s=e.key,r=e.data,a=e.progress_hook,n=new o({key:s}),function(e){c=new l.Deferrals(e,{parent:f,filename:"/Users/max/src/keybase/triplesec/src/dec.iced"}),n.run({data:r,progress_hook:a},c.defer({assign_fn:function(){return i=arguments[0],u=arguments[1]},lineno:181})),c._fulfill()}((function(){return n.scrub(),t(i,u)}))},t.Decryptor=o,t.decrypt=c}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a={}.hasOwnProperty;o=r(76).WordArray,e=r(130).Hasher,i=[],n=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.blockSize=16,t.prototype.blockSize=t.blockSize,t.output_size=20,t.prototype.output_size=t.output_size,t.prototype._doReset=function(){return this._hash=new o([1732584193,4023233417,2562383102,271733878,3285377520])},t.prototype._doProcessBlock=function(e,t){var r,n,o,s,a,u,f,c,l,h;for(n=(r=this._hash.words)[0],o=r[1],s=r[2],a=r[3],u=r[4],f=h=0;h<80;f=++h)f<16?i[f]=0|e[t+f]:(c=i[f-3]^i[f-8]^i[f-14]^i[f-16],i[f]=c<<1|c>>>31),l=(n<<5|n>>>27)+u+i[f],l+=f<20?1518500249+(o&s|~o&a):f<40?1859775393+(o^s^a):f<60?(o&s|o&a|s&a)-1894007588:(o^s^a)-899497514,u=a,a=s,s=o<<30|o>>>2,o=n,n=l;return r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+s|0,r[3]=r[3]+a|0,r[4]=r[4]+u|0},t.prototype._doFinalize=function(){var e,t,r,n;return t=(e=this._data).words,n=8*this._nDataBytes,t[(r=8*e.sigBytes)>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},t.prototype.copy_to=function(e){return t.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},t.prototype.clone=function(){var e;return e=new t,this.copy_to(e),e},t}(e),s=s=function(e){var t;return t=(new n).finalize(e),e.scrub(),t},t.SHA1=n,t.transform=s}).call(this)},function(e,t,r){(function(){var e,n,i,o,s={}.hasOwnProperty;i=r(76).WordArray,n=r(456).SHA256,e=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)s.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(t,e),t.output_size=28,t.prototype.output_size=t.output_size,t.prototype._doReset=function(){return this._hash=new i([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},t.prototype._doFinalize=function(){var e;return(e=t.__super__._doFinalize.call(this)).sigBytes-=4,e},t.prototype.clone=function(){var e;return e=new t,this.copy_to(e),e},t}(n),o=function(t){var r;return r=(new e).finalize(t),t.scrub(),r},t.SHA224=e,t.transform=o}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f={}.hasOwnProperty;a=r(76),o=a.X64WordArray,a.WordArray,i=(u=r(239)).SHA512,e=u.Global,n=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)f.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.output_size=48,r.prototype.output_size=r.output_size,r.prototype._doReset=function(){return this._hash=new o(e.convert([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]))},r.prototype._doFinalize=function(){var e;return(e=r.__super__._doFinalize.call(this)).sigBytes-=16,e},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(i),s=function(e){var t;return t=(new n).finalize(e),e.scrub(),t},t.SHA384=n,t.transform=s}).call(this)},function(e,t,r){(function(){var e;e=r(353),t.SHA3=e.KECCAK,t.transform=e.transform}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c={}.hasOwnProperty;u=r(76).WordArray,o=r(130).Hasher,f=new function(){var e;this.T=function(){var t,r;for(r=[],e=t=0;t<64;e=++t)r.push(4294967296*Math.abs(Math.sin(e+1))|0);return r}()},t.MD5=a=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.blockSize=16,r.prototype.blockSize=r.blockSize,r.output_size=16,r.prototype.output_size=r.output_size,r.prototype._doReset=function(){return this._hash=new u([1732584193,4023233417,2562383102,271733878])},r.prototype._doProcessBlock=function(t,r){var o,a,u,c,l,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A,B,D,M,P,I;for(M=I=0;I<16;M=++I)E=t[P=r+M],t[P]=16711935&(E<<8|E>>>24)|4278255360&(E<<24|E>>>8);return o=this._hash.words,a=t[r+0],u=t[r+1],y=t[r+2],g=t[r+3],b=t[r+4],m=t[r+5],v=t[r+6],w=t[r+7],k=t[r+8],x=t[r+9],c=t[r+10],l=t[r+11],h=t[r+12],p=t[r+13],d=t[r+14],_=t[r+15],S=o[0],A=o[1],B=o[2],D=o[3],S=e(S,A,B,D,a,7,f.T[0]),D=e(D,S,A,B,u,12,f.T[1]),B=e(B,D,S,A,y,17,f.T[2]),A=e(A,B,D,S,g,22,f.T[3]),S=e(S,A,B,D,b,7,f.T[4]),D=e(D,S,A,B,m,12,f.T[5]),B=e(B,D,S,A,v,17,f.T[6]),A=e(A,B,D,S,w,22,f.T[7]),S=e(S,A,B,D,k,7,f.T[8]),D=e(D,S,A,B,x,12,f.T[9]),B=e(B,D,S,A,c,17,f.T[10]),A=e(A,B,D,S,l,22,f.T[11]),S=e(S,A,B,D,h,7,f.T[12]),D=e(D,S,A,B,p,12,f.T[13]),B=e(B,D,S,A,d,17,f.T[14]),A=e(A,B,D,S,_,22,f.T[15]),S=n(S,A,B,D,u,5,f.T[16]),D=n(D,S,A,B,v,9,f.T[17]),B=n(B,D,S,A,l,14,f.T[18]),A=n(A,B,D,S,a,20,f.T[19]),S=n(S,A,B,D,m,5,f.T[20]),D=n(D,S,A,B,c,9,f.T[21]),B=n(B,D,S,A,_,14,f.T[22]),A=n(A,B,D,S,b,20,f.T[23]),S=n(S,A,B,D,x,5,f.T[24]),D=n(D,S,A,B,d,9,f.T[25]),B=n(B,D,S,A,g,14,f.T[26]),A=n(A,B,D,S,k,20,f.T[27]),S=n(S,A,B,D,p,5,f.T[28]),D=n(D,S,A,B,y,9,f.T[29]),B=n(B,D,S,A,w,14,f.T[30]),A=n(A,B,D,S,h,20,f.T[31]),S=i(S,A,B,D,m,4,f.T[32]),D=i(D,S,A,B,k,11,f.T[33]),B=i(B,D,S,A,l,16,f.T[34]),A=i(A,B,D,S,d,23,f.T[35]),S=i(S,A,B,D,u,4,f.T[36]),D=i(D,S,A,B,b,11,f.T[37]),B=i(B,D,S,A,w,16,f.T[38]),A=i(A,B,D,S,c,23,f.T[39]),S=i(S,A,B,D,p,4,f.T[40]),D=i(D,S,A,B,a,11,f.T[41]),B=i(B,D,S,A,g,16,f.T[42]),A=i(A,B,D,S,v,23,f.T[43]),S=i(S,A,B,D,x,4,f.T[44]),D=i(D,S,A,B,h,11,f.T[45]),B=i(B,D,S,A,_,16,f.T[46]),A=i(A,B,D,S,y,23,f.T[47]),S=s(S,A,B,D,a,6,f.T[48]),D=s(D,S,A,B,w,10,f.T[49]),B=s(B,D,S,A,d,15,f.T[50]),A=s(A,B,D,S,m,21,f.T[51]),S=s(S,A,B,D,h,6,f.T[52]),D=s(D,S,A,B,g,10,f.T[53]),B=s(B,D,S,A,c,15,f.T[54]),A=s(A,B,D,S,u,21,f.T[55]),S=s(S,A,B,D,k,6,f.T[56]),D=s(D,S,A,B,_,10,f.T[57]),B=s(B,D,S,A,v,15,f.T[58]),A=s(A,B,D,S,p,21,f.T[59]),S=s(S,A,B,D,b,6,f.T[60]),D=s(D,S,A,B,l,10,f.T[61]),B=s(B,D,S,A,y,15,f.T[62]),A=s(A,B,D,S,x,21,f.T[63]),o[0]=o[0]+S|0,o[1]=o[1]+A|0,o[2]=o[2]+B|0,o[3]=o[3]+D|0},r.prototype._doFinalize=function(){var e,t,r,n,i,o,s,a,u,f,c;for(n=(r=this._data).words,a=8*this._nDataBytes,n[(s=8*r.sigBytes)>>>5]|=128<<24-s%32,u=Math.floor(a/4294967296),f=a,n[15+(s+64>>>9<<4)]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),n[14+(s+64>>>9<<4)]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),r.sigBytes=4*(n.length+1),this._process(),e=(i=this._hash).words,o=c=0;c<4;o=++c)t=e[o],e[o]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8);return i},r.prototype.copy_to=function(e){return r.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(o),e=function(e,t,r,n,i,o,s){var a;return((a=e+(t&r|~t&n)+i+s)<<o|a>>>32-o)+t},n=function(e,t,r,n,i,o,s){var a;return((a=e+(t&n|r&~n)+i+s)<<o|a>>>32-o)+t},i=function(e,t,r,n,i,o,s){var a;return((a=e+(t^r^n)+i+s)<<o|a>>>32-o)+t},s=function(e,t,r,n,i,o,s){var a;return((a=e+(r^(t|~n))+i+s)<<o|a>>>32-o)+t},t.transform=function(e){var t;return t=(new a).finalize(e),e.scrub(),t}}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c,l,h,p,d={}.hasOwnProperty;p=r(76),o=p.WordArray,p.X64Word,p.X64WordArray,n=r(130).Hasher,e=new function(){this._zl=new o([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),this._zr=new o([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),this._sl=new o([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),this._sr=new o([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),this._hl=new o([0,1518500249,1859775393,2400959708,2840853838]),this._hr=new o([1352829926,1548603684,1836072691,2053994217,0])},i=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)d.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.blockSize=16,r.prototype.blockSize=r.blockSize,r.output_size=20,r.prototype.output_size=r.output_size,r.prototype._doReset=function(){return this._hash=new o([1732584193,4023233417,2562383102,271733878,3285377520])},r.prototype.get_output_size=function(){return this.output_size},r.prototype._doProcessBlock=function(t,r){var n,i,o,h,p,d,_,y,g,b,m,v,w,k,x,E,S,A,B,D,M,P,I;for(x=P=0;P<16;x=++P)i=t[E=r+x],t[E]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8);for(n=this._hash.words,w=e._hl.words,k=e._hr.words,D=e._zl.words,M=e._zr.words,S=e._sl.words,A=e._sr.words,h=o=n[0],d=p=n[1],y=_=n[2],b=g=n[3],v=m=n[4],x=I=0;I<80;x=++I)B=o+t[r+D[x]]|0,B+=x<16?s(p,_,g)+w[0]:x<32?a(p,_,g)+w[1]:x<48?u(p,_,g)+w[2]:x<64?f(p,_,g)+w[3]:c(p,_,g)+w[4],B=(B=l(B|=0,S[x]))+m|0,o=m,m=g,g=l(_,10),_=p,p=B,B=h+t[r+M[x]]|0,B+=x<16?c(d,y,b)+k[0]:x<32?f(d,y,b)+k[1]:x<48?u(d,y,b)+k[2]:x<64?a(d,y,b)+k[3]:s(d,y,b)+k[4],B=(B=l(B|=0,A[x]))+v|0,h=v,v=b,b=l(y,10),y=d,d=B;return B=n[1]+_+b|0,n[1]=n[2]+g+v|0,n[2]=n[3]+m+h|0,n[3]=n[4]+o+d|0,n[4]=n[0]+p+y|0,n[0]=B},r.prototype._doFinalize=function(){var e,t,r,n,i,o,s,a,u;for(n=(r=this._data).words,a=8*this._nDataBytes,n[(s=8*r.sigBytes)>>>5]|=128<<24-s%32,n[14+(s+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),r.sigBytes=4*(n.length+1),this._process(),e=(i=this._hash).words,o=u=0;u<5;o=++u)t=e[o],e[o]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8);return i},r.prototype.scrub=function(){return this._hash.scrub()},r.prototype.copy_to=function(e){return r.__super__.copy_to.call(this,e),e._hash=this._hash.clone()},r.prototype.clone=function(){var e;return e=new r,this.copy_to(e),e},r}(n),s=function(e,t,r){return e^t^r},a=function(e,t,r){return e&t|~e&r},u=function(e,t,r){return(e|~t)^r},f=function(e,t,r){return e&r|t&~r},c=function(e,t,r){return e^(t|~r)},l=function(e,t){return e<<t|e>>>32-t},h=function(e){var t;return t=(new i).finalize(e),e.scrub(),t},t.RIPEMD160=i,t.transform=h}).call(this)},function(e,t){(function(){t.small_primes=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999,3001,3011,3019,3023,3037,3041,3049,3061,3067,3079,3083,3089,3109,3119,3121,3137,3163,3167,3169,3181,3187,3191,3203,3209,3217,3221,3229,3251,3253,3257,3259,3271,3299,3301,3307,3313,3319,3323,3329,3331,3343,3347,3359,3361,3371,3373,3389,3391,3407,3413,3433,3449,3457,3461,3463,3467,3469,3491,3499,3511,3517,3527,3529,3533,3539,3541,3547,3557,3559,3571,3581,3583,3593,3607,3613,3617,3623,3631,3637,3643,3659,3671,3673,3677,3691,3697,3701,3709,3719,3727,3733,3739,3761,3767,3769,3779,3793,3797,3803,3821,3823,3833,3847,3851,3853,3863,3877,3881,3889,3907,3911,3917,3919,3923,3929,3931,3943,3947,3967,3989,4001,4003,4007,4013,4019,4021,4027,4049,4051,4057,4073,4079,4091,4093,4099,4111,4127,4129,4133,4139,4153,4157,4159,4177,4201,4211,4217,4219,4229,4231,4241,4243,4253,4259,4261,4271,4273,4283,4289,4297,4327,4337,4339,4349,4357,4363,4373,4391,4397,4409,4421,4423,4441,4447,4451,4457,4463,4481,4483,4493,4507,4513,4517,4519,4523,4547,4549,4561,4567,4583,4591,4597,4603,4621,4637,4639,4643,4649,4651,4657,4663,4673,4679,4691,4703,4721,4723,4729,4733,4751,4759,4783,4787,4789,4793,4799,4801,4813,4817,4831,4861,4871,4877,4889,4903,4909,4919,4931,4933,4937,4943,4951,4957,4967,4969,4973,4987,4993,4999,5003,5009,5011,5021,5023,5039,5051,5059,5077,5081,5087,5099,5101,5107,5113,5119,5147,5153,5167,5171,5179,5189,5197,5209,5227,5231,5233,5237,5261,5273,5279,5281,5297,5303,5309,5323,5333,5347,5351,5381,5387,5393,5399,5407,5413,5417,5419,5431,5437,5441,5443,5449,5471,5477,5479,5483,5501,5503,5507,5519,5521,5527,5531,5557,5563,5569,5573,5581,5591,5623,5639,5641,5647,5651,5653,5657,5659,5669,5683,5689,5693,5701,5711,5717,5737,5741,5743,5749,5779,5783,5791,5801,5807,5813,5821,5827,5839,5843,5849,5851,5857,5861,5867,5869,5879,5881,5897,5903,5923,5927,5939,5953,5981,5987,6007,6011,6029,6037,6043,6047,6053,6067,6073,6079,6089,6091,6101,6113,6121,6131,6133,6143,6151,6163,6173,6197,6199,6203,6211,6217,6221,6229,6247,6257,6263,6269,6271,6277,6287,6299,6301,6311,6317,6323,6329,6337,6343,6353,6359,6361,6367,6373,6379,6389,6397,6421,6427,6449,6451,6469,6473,6481,6491,6521,6529,6547,6551,6553,6563,6569,6571,6577,6581,6599,6607,6619,6637,6653,6659,6661,6673,6679,6689,6691,6701,6703,6709,6719,6733,6737,6761,6763,6779,6781,6791,6793,6803,6823,6827,6829,6833,6841,6857,6863,6869,6871,6883,6899,6907,6911,6917,6947,6949,6959,6961,6967,6971,6977,6983,6991,6997,7001,7013,7019,7027,7039,7043,7057,7069,7079,7103,7109,7121,7127,7129,7151,7159,7177,7187,7193,7207,7211,7213,7219,7229,7237,7243,7247,7253,7283,7297,7307,7309,7321,7331,7333,7349,7351,7369,7393,7411,7417,7433,7451,7457,7459,7477,7481,7487,7489,7499,7507,7517,7523,7529,7537,7541,7547,7549,7559,7561,7573,7577,7583,7589,7591,7603,7607,7621,7639,7643,7649,7669,7673,7681,7687,7691,7699,7703,7717,7723,7727,7741,7753,7757,7759,7789,7793,7817,7823,7829,7841,7853,7867,7873,7877,7879,7883,7901,7907,7919,7927,7933,7937,7949,7951,7963,7993,8009,8011,8017,8039,8053,8059,8069,8081,8087,8089,8093,8101,8111,8117,8123,8147,8161,8167,8171,8179,8191,8209,8219,8221,8231,8233,8237,8243,8263,8269,8273,8287,8291,8293,8297,8311,8317,8329,8353,8363,8369,8377,8387,8389,8419,8423,8429,8431,8443,8447,8461,8467,8501,8513,8521,8527,8537,8539,8543,8563,8573,8581,8597,8599,8609,8623,8627,8629,8641,8647,8663,8669,8677,8681,8689,8693,8699,8707,8713,8719,8731,8737,8741,8747,8753,8761,8779,8783,8803,8807,8819,8821,8831,8837,8839,8849,8861,8863,8867,8887,8893,8923,8929,8933,8941,8951,8963,8969,8971,8999,9001,9007,9011,9013,9029,9041,9043,9049,9059,9067,9091,9103,9109,9127,9133,9137,9151,9157,9161,9173,9181,9187,9199,9203,9209,9221,9227,9239,9241,9257,9277,9281,9283,9293,9311,9319,9323,9337,9341,9343,9349,9371,9377,9391,9397,9403,9413,9419,9421,9431,9433,9437,9439,9461,9463,9467,9473,9479,9491,9497,9511,9521,9533,9539,9547,9551,9587,9601,9613,9619,9623,9629,9631,9643,9649,9661,9677,9679,9689,9697,9719,9721,9733,9739,9743,9749,9767,9769,9781,9787,9791,9803,9811,9817,9829,9833,9839,9851,9857,9859,9871,9883,9887,9901,9907,9923,9929,9931,9941,9949,9967,9973,10007,10009,10037,10039,10061,10067,10069,10079,10091,10093,10099,10103,10111,10133,10139,10141,10151,10159,10163,10169,10177,10181,10193,10211,10223,10243,10247,10253,10259,10267,10271,10273,10289,10301,10303,10313,10321,10331,10333,10337,10343,10357,10369,10391,10399,10427,10429,10433,10453,10457,10459,10463,10477,10487,10499,10501,10513,10529,10531,10559,10567,10589,10597,10601,10607,10613,10627,10631,10639,10651,10657,10663,10667,10687,10691,10709,10711,10723,10729,10733,10739,10753,10771,10781,10789,10799,10831,10837,10847,10853,10859,10861,10867,10883,10889,10891,10903,10909,10937,10939,10949,10957,10973,10979,10987,10993,11003,11027,11047,11057,11059,11069,11071,11083,11087,11093,11113,11117,11119,11131,11149,11159,11161,11171,11173,11177,11197,11213,11239,11243,11251,11257,11261,11273,11279,11287,11299,11311,11317,11321,11329,11351,11353,11369,11383,11393,11399,11411,11423,11437,11443,11447,11467,11471,11483,11489,11491,11497,11503,11519,11527,11549,11551,11579,11587,11593,11597,11617,11621,11633,11657,11677,11681,11689,11699,11701,11717,11719,11731,11743,11777,11779,11783,11789,11801,11807,11813,11821,11827,11831,11833,11839,11863,11867,11887,11897,11903,11909,11923,11927,11933,11939,11941,11953,11959,11969,11971,11981,11987,12007,12011,12037,12041,12043,12049,12071,12073,12097,12101,12107,12109,12113,12119,12143,12149,12157,12161,12163,12197,12203,12211,12227,12239,12241,12251,12253,12263,12269,12277,12281,12289,12301,12323,12329,12343,12347,12373,12377,12379,12391,12401,12409,12413,12421,12433,12437,12451,12457,12473,12479,12487,12491,12497,12503,12511,12517,12527,12539,12541,12547,12553,12569,12577,12583,12589,12601,12611,12613,12619,12637,12641,12647,12653,12659,12671,12689,12697,12703,12713,12721,12739,12743,12757,12763,12781,12791,12799,12809,12821,12823,12829,12841,12853,12889,12893,12899,12907,12911,12917,12919,12923,12941,12953,12959,12967,12973,12979,12983,13001,13003,13007,13009,13033,13037,13043,13049,13063,13093,13099,13103,13109,13121,13127,13147,13151,13159,13163,13171,13177,13183,13187,13217,13219,13229,13241,13249,13259,13267,13291,13297,13309,13313,13327,13331,13337,13339,13367,13381,13397,13399,13411,13417,13421,13441,13451,13457,13463,13469,13477,13487,13499,13513,13523,13537,13553,13567,13577,13591,13597,13613,13619,13627,13633,13649,13669,13679,13681,13687,13691,13693,13697,13709,13711,13721,13723,13729,13751,13757,13759,13763,13781,13789,13799,13807,13829,13831,13841,13859,13873,13877,13879,13883,13901,13903,13907,13913,13921,13931,13933,13963,13967,13997,13999,14009,14011,14029,14033,14051,14057,14071,14081,14083,14087,14107,14143,14149,14153,14159,14173,14177,14197,14207,14221,14243,14249,14251,14281,14293,14303,14321,14323,14327,14341,14347,14369,14387,14389,14401,14407,14411,14419,14423,14431,14437,14447,14449,14461,14479,14489,14503,14519,14533,14537,14543,14549,14551,14557,14561,14563,14591,14593,14621,14627,14629,14633,14639,14653,14657,14669,14683,14699,14713,14717,14723,14731,14737,14741,14747,14753,14759,14767,14771,14779,14783,14797,14813,14821,14827,14831,14843,14851,14867,14869,14879,14887,14891,14897,14923,14929,14939,14947,14951,14957,14969,14983,15013,15017,15031,15053,15061,15073,15077,15083,15091,15101,15107,15121,15131,15137,15139,15149,15161,15173,15187,15193,15199,15217,15227,15233,15241,15259,15263,15269,15271,15277,15287,15289,15299,15307,15313,15319,15329,15331,15349,15359,15361,15373,15377,15383,15391,15401,15413,15427,15439,15443,15451,15461,15467,15473,15493,15497,15511,15527,15541,15551,15559,15569,15581,15583,15601,15607,15619,15629,15641,15643,15647,15649,15661,15667,15671,15679,15683,15727,15731,15733,15737,15739,15749,15761,15767,15773,15787,15791,15797,15803,15809,15817,15823,15859,15877,15881,15887,15889,15901,15907,15913,15919,15923,15937,15959,15971,15973,15991,16001,16007,16033,16057,16061,16063,16067,16069,16073,16087,16091,16097,16103,16111,16127,16139,16141,16183,16187,16189,16193,16217,16223,16229,16231,16249,16253,16267,16273,16301,16319,16333,16339,16349,16361,16363,16369,16381,16411,16417,16421,16427,16433,16447,16451,16453,16477,16481,16487,16493,16519,16529,16547,16553,16561,16567,16573,16603,16607,16619,16631,16633,16649,16651,16657,16661,16673,16691,16693,16699,16703,16729,16741,16747,16759,16763,16787,16811,16823,16829,16831,16843,16871,16879,16883,16889,16901,16903,16921,16927,16931,16937,16943,16963,16979,16981,16987,16993,17011,17021,17027,17029,17033,17041,17047,17053,17077,17093,17099,17107,17117,17123,17137,17159,17167,17183,17189,17191,17203,17207,17209,17231,17239,17257,17291,17293,17299,17317,17321,17327,17333,17341,17351,17359,17377,17383,17387,17389,17393,17401,17417,17419,17431,17443,17449,17467,17471,17477,17483,17489,17491,17497,17509,17519,17539,17551,17569,17573,17579,17581,17597,17599,17609,17623,17627,17657,17659,17669,17681,17683,17707,17713,17729,17737,17747,17749,17761,17783,17789,17791,17807,17827,17837,17839,17851,17863,17881,17891,17903,17909,17911,17921,17923,17929,17939,17957,17959,17971,17977,17981,17987,17989,18013,18041,18043,18047,18049,18059,18061,18077,18089,18097,18119,18121,18127,18131,18133,18143,18149,18169,18181,18191,18199,18211,18217,18223,18229,18233,18251,18253,18257,18269,18287,18289,18301,18307,18311,18313,18329,18341,18353,18367,18371,18379,18397,18401,18413,18427,18433,18439,18443,18451,18457,18461,18481,18493,18503,18517,18521,18523,18539,18541,18553,18583,18587,18593,18617,18637,18661,18671,18679,18691,18701,18713,18719,18731,18743,18749,18757,18773,18787,18793,18797,18803,18839,18859,18869,18899,18911,18913,18917,18919,18947,18959,18973,18979,19001,19009,19013,19031,19037,19051,19069,19073,19079,19081,19087,19121,19139,19141,19157,19163,19181,19183,19207,19211,19213,19219,19231,19237,19249,19259,19267,19273,19289,19301,19309,19319,19333,19373,19379,19381,19387,19391,19403,19417,19421,19423,19427,19429,19433,19441,19447,19457,19463,19469,19471,19477,19483,19489,19501,19507,19531,19541,19543,19553,19559,19571,19577,19583,19597,19603,19609,19661,19681,19687,19697,19699,19709,19717,19727,19739,19751,19753,19759,19763,19777,19793,19801,19813,19819,19841,19843,19853,19861,19867,19889,19891,19913,19919,19927,19937,19949,19961,19963,19973,19979,19991,19993,19997,20011,20021,20023,20029,20047,20051,20063,20071,20089,20101,20107,20113,20117,20123,20129,20143,20147,20149,20161,20173,20177,20183,20201,20219,20231,20233,20249,20261,20269,20287,20297,20323,20327,20333,20341,20347,20353,20357,20359,20369,20389,20393,20399,20407,20411,20431,20441,20443,20477,20479,20483,20507,20509,20521,20533,20543,20549,20551,20563,20593,20599,20611,20627,20639,20641,20663,20681,20693,20707,20717,20719,20731,20743,20747,20749,20753,20759,20771,20773,20789,20807,20809,20849,20857,20873,20879,20887,20897,20899,20903,20921,20929,20939,20947,20959,20963,20981,20983,21001,21011,21013,21017,21019,21023,21031,21059,21061,21067,21089,21101,21107,21121,21139,21143,21149,21157,21163,21169,21179,21187,21191,21193,21211,21221,21227,21247,21269,21277,21283,21313,21317,21319,21323,21341,21347,21377,21379,21383,21391,21397,21401,21407,21419,21433,21467,21481,21487,21491,21493,21499,21503,21517,21521,21523,21529,21557,21559,21563,21569,21577,21587,21589,21599,21601,21611,21613,21617,21647,21649,21661,21673,21683,21701,21713,21727,21737,21739,21751,21757,21767,21773,21787,21799,21803,21817,21821,21839,21841,21851,21859,21863,21871,21881,21893,21911,21929,21937,21943,21961,21977,21991,21997,22003,22013,22027,22031,22037,22039,22051,22063,22067,22073,22079,22091,22093,22109,22111,22123,22129,22133,22147,22153,22157,22159,22171,22189,22193,22229,22247,22259,22271,22273,22277,22279,22283,22291,22303,22307,22343,22349,22367,22369,22381,22391,22397,22409,22433,22441,22447,22453,22469,22481,22483,22501,22511,22531,22541,22543,22549,22567,22571,22573,22613,22619,22621,22637,22639,22643,22651,22669,22679,22691,22697,22699,22709,22717,22721,22727,22739,22741,22751,22769,22777,22783,22787,22807,22811,22817,22853,22859,22861,22871,22877,22901,22907,22921,22937,22943,22961,22963,22973,22993,23003,23011,23017,23021,23027,23029,23039,23041,23053,23057,23059,23063,23071,23081,23087,23099,23117,23131,23143,23159,23167,23173,23189,23197,23201,23203,23209,23227,23251,23269,23279,23291,23293,23297,23311,23321,23327,23333,23339,23357,23369,23371,23399,23417,23431,23447,23459,23473,23497,23509,23531,23537,23539,23549,23557,23561,23563,23567,23581,23593,23599,23603,23609,23623,23627,23629,23633,23663,23669,23671,23677,23687,23689,23719,23741,23743,23747,23753,23761,23767,23773,23789,23801,23813,23819,23827,23831,23833,23857,23869,23873,23879,23887,23893,23899,23909,23911,23917,23929,23957,23971,23977,23981,23993,24001,24007,24019,24023,24029,24043,24049,24061,24071,24077,24083,24091,24097,24103,24107,24109,24113,24121,24133,24137,24151,24169,24179,24181,24197,24203,24223,24229,24239,24247,24251,24281,24317,24329,24337,24359,24371,24373,24379,24391,24407,24413,24419,24421,24439,24443,24469,24473,24481,24499,24509,24517,24527,24533,24547,24551,24571,24593,24611,24623,24631,24659,24671,24677,24683,24691,24697,24709,24733,24749,24763,24767,24781,24793,24799,24809,24821,24841,24847,24851,24859,24877,24889,24907,24917,24919,24923,24943,24953,24967,24971,24977,24979,24989,25013,25031,25033,25037,25057,25073,25087,25097,25111,25117,25121,25127,25147,25153,25163,25169,25171,25183,25189,25219,25229,25237,25243,25247,25253,25261,25301,25303,25307,25309,25321,25339,25343,25349,25357,25367,25373,25391,25409,25411,25423,25439,25447,25453,25457,25463,25469,25471,25523,25537,25541,25561,25577,25579,25583,25589,25601,25603,25609,25621,25633,25639,25643,25657,25667,25673,25679,25693,25703,25717,25733,25741,25747,25759,25763,25771,25793,25799,25801,25819,25841,25847,25849,25867,25873,25889,25903,25913,25919,25931,25933,25939,25943,25951,25969,25981,25997,25999,26003,26017,26021,26029,26041,26053,26083,26099,26107,26111,26113,26119,26141,26153,26161,26171,26177,26183,26189,26203,26209,26227,26237,26249,26251,26261,26263,26267,26293,26297,26309,26317,26321,26339,26347,26357,26371,26387,26393,26399,26407,26417,26423,26431,26437,26449,26459,26479,26489,26497,26501,26513,26539,26557,26561,26573,26591,26597,26627,26633,26641,26647,26669,26681,26683,26687,26693,26699,26701,26711,26713,26717,26723,26729,26731,26737,26759,26777,26783,26801,26813,26821,26833,26839,26849,26861,26863,26879,26881,26891,26893,26903,26921,26927,26947,26951,26953,26959,26981,26987,26993,27011,27017,27031,27043,27059,27061,27067,27073,27077,27091,27103,27107,27109,27127,27143,27179,27191,27197,27211,27239,27241,27253,27259,27271,27277,27281,27283,27299,27329,27337,27361,27367,27397,27407,27409,27427,27431,27437,27449,27457,27479,27481,27487,27509,27527,27529,27539,27541,27551,27581,27583,27611,27617,27631,27647,27653,27673,27689,27691,27697,27701,27733,27737,27739,27743,27749,27751,27763,27767,27773,27779,27791,27793,27799,27803,27809,27817,27823,27827,27847,27851,27883,27893,27901,27917,27919,27941,27943,27947,27953,27961,27967,27983,27997,28001,28019,28027,28031,28051,28057,28069,28081,28087,28097,28099,28109,28111,28123,28151,28163,28181,28183,28201,28211,28219,28229,28277,28279,28283,28289,28297,28307,28309,28319,28349,28351,28387,28393,28403,28409,28411,28429,28433,28439,28447,28463,28477,28493,28499,28513,28517,28537,28541,28547,28549,28559,28571,28573,28579,28591,28597,28603,28607,28619,28621,28627,28631,28643,28649,28657,28661,28663,28669,28687,28697,28703,28711,28723,28729,28751,28753,28759,28771,28789,28793,28807,28813,28817,28837,28843,28859,28867,28871,28879,28901,28909,28921,28927,28933,28949,28961,28979,29009,29017,29021,29023,29027,29033,29059,29063,29077,29101,29123,29129,29131,29137,29147,29153,29167,29173,29179,29191,29201,29207,29209,29221,29231,29243,29251,29269,29287,29297,29303,29311,29327,29333,29339,29347,29363,29383,29387,29389,29399,29401,29411,29423,29429,29437,29443,29453,29473,29483,29501,29527,29531,29537,29567,29569,29573,29581,29587,29599,29611,29629,29633,29641,29663,29669,29671,29683,29717,29723,29741,29753,29759,29761,29789,29803,29819,29833,29837,29851,29863,29867,29873,29879,29881,29917,29921,29927,29947,29959,29983,29989,30011,30013,30029,30047,30059,30071,30089,30091,30097,30103,30109,30113,30119,30133,30137,30139,30161,30169,30181,30187,30197,30203,30211,30223,30241,30253,30259,30269,30271,30293,30307,30313,30319,30323,30341,30347,30367,30389,30391,30403,30427,30431,30449,30467,30469,30491,30493,30497,30509,30517,30529,30539,30553,30557,30559,30577,30593,30631,30637,30643,30649,30661,30671,30677,30689,30697,30703,30707,30713,30727,30757,30763,30773,30781,30803,30809,30817,30829,30839,30841,30851,30853,30859,30869,30871,30881,30893,30911,30931,30937,30941,30949,30971,30977,30983,31013,31019,31033,31039,31051,31063,31069,31079,31081,31091,31121,31123,31139,31147,31151,31153,31159,31177,31181,31183,31189,31193,31219,31223,31231,31237,31247,31249,31253,31259,31267,31271,31277,31307,31319,31321,31327,31333,31337,31357,31379,31387,31391,31393,31397,31469,31477,31481,31489,31511,31513,31517,31531,31541,31543,31547,31567,31573,31583,31601,31607,31627,31643,31649,31657,31663,31667,31687,31699,31721,31723,31727,31729,31741,31751,31769,31771,31793,31799,31817,31847,31849,31859,31873,31883,31891,31907,31957,31963,31973,31981,31991,32003,32009,32027,32029,32051,32057,32059,32063,32069,32077,32083,32089,32099,32117,32119,32141,32143,32159,32173,32183,32189,32191,32203,32213,32233,32237,32251,32257,32261,32297,32299,32303,32309,32321,32323,32327,32341,32353,32359,32363,32369,32371,32377,32381,32401,32411,32413,32423,32429,32441,32443,32467,32479,32491,32497,32503,32507,32531,32533,32537,32561,32563,32569,32573,32579,32587,32603,32609,32611,32621,32633,32647,32653,32687,32693,32707,32713,32717,32719,32749,32771,32779,32783,32789,32797,32801,32803,32831,32833,32839,32843,32869,32887,32909,32911,32917,32933,32939,32941,32957,32969,32971,32983,32987,32993,32999,33013,33023,33029,33037,33049,33053,33071,33073,33083,33091,33107,33113,33119,33149,33151,33161,33179,33181,33191,33199,33203,33211,33223,33247,33287,33289,33301,33311,33317,33329,33331,33343,33347,33349,33353,33359,33377,33391,33403,33409,33413,33427,33457,33461,33469,33479,33487,33493,33503,33521,33529,33533,33547,33563,33569,33577,33581,33587,33589,33599,33601,33613,33617,33619,33623,33629,33637,33641,33647,33679,33703,33713,33721,33739,33749,33751,33757,33767,33769,33773,33791,33797,33809,33811,33827,33829,33851,33857,33863,33871,33889,33893,33911,33923,33931,33937,33941,33961,33967,33997,34019,34031,34033,34039,34057,34061,34123,34127,34129,34141,34147,34157,34159,34171,34183,34211,34213,34217,34231,34253,34259,34261,34267,34273,34283,34297,34301,34303,34313,34319,34327,34337,34351,34361,34367,34369,34381,34403,34421,34429,34439,34457,34469,34471,34483,34487,34499,34501,34511,34513,34519,34537,34543,34549,34583,34589,34591,34603,34607,34613,34631,34649,34651,34667,34673,34679,34687,34693,34703,34721,34729,34739,34747,34757,34759,34763,34781,34807,34819,34841,34843,34847,34849,34871,34877,34883,34897,34913,34919,34939,34949,34961,34963,34981,35023,35027,35051,35053,35059,35069,35081,35083,35089,35099,35107,35111,35117,35129,35141,35149,35153,35159,35171,35201,35221,35227,35251,35257,35267,35279,35281,35291,35311,35317,35323,35327,35339,35353,35363,35381,35393,35401,35407,35419,35423,35437,35447,35449,35461,35491,35507,35509,35521,35527,35531,35533,35537,35543,35569,35573,35591,35593,35597,35603,35617,35671,35677,35729,35731,35747,35753,35759,35771,35797,35801,35803,35809,35831,35837,35839,35851,35863,35869,35879,35897,35899,35911,35923,35933,35951,35963,35969,35977,35983,35993,35999,36007,36011,36013,36017,36037,36061,36067,36073,36083,36097,36107,36109,36131,36137,36151,36161,36187,36191,36209,36217,36229,36241,36251,36263,36269,36277,36293,36299,36307,36313,36319,36341,36343,36353,36373,36383,36389,36433,36451,36457,36467,36469,36473,36479,36493,36497,36523,36527,36529,36541,36551,36559,36563,36571,36583,36587,36599,36607,36629,36637,36643,36653,36671,36677,36683,36691,36697,36709,36713,36721,36739,36749,36761,36767,36779,36781,36787,36791,36793,36809,36821,36833,36847,36857,36871,36877,36887,36899,36901,36913,36919,36923,36929,36931,36943,36947,36973,36979,36997,37003,37013,37019,37021,37039,37049,37057,37061,37087,37097,37117,37123,37139,37159,37171,37181,37189,37199,37201,37217,37223,37243,37253,37273,37277,37307,37309,37313,37321,37337,37339,37357,37361,37363,37369,37379,37397,37409,37423,37441,37447,37463,37483,37489,37493,37501,37507,37511,37517,37529,37537,37547,37549,37561,37567,37571,37573,37579,37589,37591,37607,37619,37633,37643,37649,37657,37663,37691,37693,37699,37717,37747,37781,37783,37799,37811,37813,37831,37847,37853,37861,37871,37879,37889,37897,37907,37951,37957,37963,37967,37987,37991,37993,37997,38011,38039,38047,38053,38069,38083,38113,38119,38149,38153,38167,38177,38183,38189,38197,38201,38219,38231,38237,38239,38261,38273,38281,38287,38299,38303,38317,38321,38327,38329,38333,38351,38371,38377,38393,38431,38447,38449,38453,38459,38461,38501,38543,38557,38561,38567,38569,38593,38603,38609,38611,38629,38639,38651,38653,38669,38671,38677,38693,38699,38707,38711,38713,38723,38729,38737,38747,38749,38767,38783,38791,38803,38821,38833,38839,38851,38861,38867,38873,38891,38903,38917,38921,38923,38933,38953,38959,38971,38977,38993,39019,39023,39041,39043,39047,39079,39089,39097,39103,39107,39113,39119,39133,39139,39157,39161,39163,39181,39191,39199,39209,39217,39227,39229,39233,39239,39241,39251,39293,39301,39313,39317,39323,39341,39343,39359,39367,39371,39373,39383,39397,39409,39419,39439,39443,39451,39461,39499,39503,39509,39511,39521,39541,39551,39563,39569,39581,39607,39619,39623,39631,39659,39667,39671,39679,39703,39709,39719,39727,39733,39749,39761,39769,39779,39791,39799,39821,39827,39829,39839,39841,39847,39857,39863,39869,39877,39883,39887,39901,39929,39937,39953,39971,39979,39983,39989,40009,40013,40031,40037,40039,40063,40087,40093,40099,40111,40123,40127,40129,40151,40153,40163,40169,40177,40189,40193,40213,40231,40237,40241,40253,40277,40283,40289,40343,40351,40357,40361,40387,40423,40427,40429,40433,40459,40471,40483,40487,40493,40499,40507,40519,40529,40531,40543,40559,40577,40583,40591,40597,40609,40627,40637,40639,40693,40697,40699,40709,40739,40751,40759,40763,40771,40787,40801,40813,40819,40823,40829,40841,40847,40849,40853,40867,40879,40883,40897,40903,40927,40933,40939,40949,40961,40973,40993,41011,41017,41023,41039,41047,41051,41057,41077,41081,41113,41117,41131,41141,41143,41149,41161,41177,41179,41183,41189,41201,41203,41213,41221,41227,41231,41233,41243,41257,41263,41269,41281,41299,41333,41341,41351,41357,41381,41387,41389,41399,41411,41413,41443,41453,41467,41479,41491,41507,41513,41519,41521,41539,41543,41549,41579,41593,41597,41603,41609,41611,41617,41621,41627,41641,41647,41651,41659,41669,41681,41687,41719,41729,41737,41759,41761,41771,41777,41801,41809,41813,41843,41849,41851,41863,41879,41887,41893,41897,41903,41911,41927,41941,41947,41953,41957,41959,41969,41981,41983,41999,42013,42017,42019,42023,42043,42061,42071,42073,42083,42089,42101,42131,42139,42157,42169,42179,42181,42187,42193,42197,42209,42221,42223,42227,42239,42257,42281,42283,42293,42299,42307,42323,42331,42337,42349,42359,42373,42379,42391,42397,42403,42407,42409,42433,42437,42443,42451,42457,42461,42463,42467,42473,42487,42491,42499,42509,42533,42557,42569,42571,42577,42589,42611,42641,42643,42649,42667,42677,42683,42689,42697,42701,42703,42709,42719,42727,42737,42743,42751,42767,42773,42787,42793,42797,42821,42829,42839,42841,42853,42859,42863,42899,42901,42923,42929,42937,42943,42953,42961,42967,42979,42989,43003,43013,43019,43037,43049,43051,43063,43067,43093,43103,43117,43133,43151,43159,43177,43189,43201,43207,43223,43237,43261,43271,43283,43291,43313,43319,43321,43331,43391,43397,43399,43403,43411,43427,43441,43451,43457,43481,43487,43499,43517,43541,43543,43573,43577,43579,43591,43597,43607,43609,43613,43627,43633,43649,43651,43661,43669,43691,43711,43717,43721,43753,43759,43777,43781,43783,43787,43789,43793,43801,43853,43867,43889,43891,43913,43933,43943,43951,43961,43963,43969,43973,43987,43991,43997,44017,44021,44027,44029,44041,44053,44059,44071,44087,44089,44101,44111,44119,44123,44129,44131,44159,44171,44179,44189,44201,44203,44207,44221,44249,44257,44263,44267,44269,44273,44279,44281,44293,44351,44357,44371,44381,44383,44389,44417,44449,44453,44483,44491,44497,44501,44507,44519,44531,44533,44537,44543,44549,44563,44579,44587,44617,44621,44623,44633,44641,44647,44651,44657,44683,44687,44699,44701,44711,44729,44741,44753,44771,44773,44777,44789,44797,44809,44819,44839,44843,44851,44867,44879,44887,44893,44909,44917,44927,44939,44953,44959,44963,44971,44983,44987,45007,45013,45053,45061,45077,45083,45119,45121,45127,45131,45137,45139,45161,45179,45181,45191,45197,45233,45247,45259,45263,45281,45289,45293,45307,45317,45319,45329,45337,45341,45343,45361,45377,45389,45403,45413,45427,45433,45439,45481,45491,45497,45503,45523,45533,45541,45553,45557,45569,45587,45589,45599,45613,45631,45641,45659,45667,45673,45677,45691,45697,45707,45737,45751,45757,45763,45767,45779,45817,45821,45823,45827,45833,45841,45853,45863,45869,45887,45893,45943,45949,45953,45959,45971,45979,45989,46021,46027,46049,46051,46061,46073,46091,46093,46099,46103,46133,46141,46147,46153,46171,46181,46183,46187,46199,46219,46229,46237,46261,46271,46273,46279,46301,46307,46309,46327,46337,46349,46351,46381,46399,46411,46439,46441,46447,46451,46457,46471,46477,46489,46499,46507,46511,46523,46549,46559,46567,46573,46589,46591,46601,46619,46633,46639,46643,46649,46663,46679,46681,46687,46691,46703,46723,46727,46747,46751,46757,46769,46771,46807,46811,46817,46819,46829,46831,46853,46861,46867,46877,46889,46901,46919,46933,46957,46993,46997,47017,47041,47051,47057,47059,47087,47093,47111,47119,47123,47129,47137,47143,47147,47149,47161,47189,47207,47221,47237,47251,47269,47279,47287,47293,47297,47303,47309,47317,47339,47351,47353,47363,47381,47387,47389,47407,47417,47419,47431,47441,47459,47491,47497,47501,47507,47513,47521,47527,47533,47543,47563,47569,47581,47591,47599,47609,47623,47629,47639,47653,47657,47659,47681,47699,47701,47711,47713,47717,47737,47741,47743,47777,47779,47791,47797,47807,47809,47819,47837,47843,47857,47869,47881,47903,47911,47917,47933,47939,47947,47951,47963,47969,47977,47981,48017,48023,48029,48049,48073,48079,48091,48109,48119,48121,48131,48157,48163,48179,48187,48193,48197,48221,48239,48247,48259,48271,48281,48299,48311,48313,48337,48341,48353,48371,48383,48397,48407,48409,48413,48437,48449,48463,48473,48479,48481,48487,48491,48497,48523,48527,48533,48539,48541,48563,48571,48589,48593,48611,48619,48623,48647,48649,48661,48673,48677,48679,48731,48733,48751,48757,48761,48767,48779,48781,48787,48799,48809,48817,48821,48823,48847,48857,48859,48869,48871,48883,48889,48907,48947,48953,48973,48989,48991,49003,49009,49019,49031,49033,49037,49043,49057,49069,49081,49103,49109,49117,49121,49123,49139,49157,49169,49171,49177,49193,49199,49201,49207,49211,49223,49253,49261,49277,49279,49297,49307,49331,49333,49339,49363,49367,49369,49391,49393,49409,49411,49417,49429,49433,49451,49459,49463,49477,49481,49499,49523,49529,49531,49537,49547,49549,49559,49597,49603,49613,49627,49633,49639,49663,49667,49669,49681,49697,49711,49727,49739,49741,49747,49757,49783,49787,49789,49801,49807,49811,49823,49831,49843,49853,49871,49877,49891,49919,49921,49927,49937,49939,49943,49957,49991,49993,49999,50021,50023,50033,50047,50051,50053,50069,50077,50087,50093,50101,50111,50119,50123,50129,50131,50147,50153,50159,50177,50207,50221,50227,50231,50261,50263,50273,50287,50291,50311,50321,50329,50333,50341,50359,50363,50377,50383,50387,50411,50417,50423,50441,50459,50461,50497,50503,50513,50527,50539,50543,50549,50551,50581,50587,50591,50593,50599,50627,50647,50651,50671,50683,50707,50723,50741,50753,50767,50773,50777,50789,50821,50833,50839,50849,50857,50867,50873,50891,50893,50909,50923,50929,50951,50957,50969,50971,50989,50993,51001,51031,51043,51047,51059,51061,51071,51109,51131,51133,51137,51151,51157,51169,51193,51197,51199,51203,51217,51229,51239,51241,51257,51263,51283,51287,51307,51329,51341,51343,51347,51349,51361,51383,51407,51413,51419,51421,51427,51431,51437,51439,51449,51461,51473,51479,51481,51487,51503,51511,51517,51521,51539,51551,51563,51577,51581,51593,51599,51607,51613,51631,51637,51647,51659,51673,51679,51683,51691,51713,51719,51721,51749,51767,51769,51787,51797,51803,51817,51827,51829,51839,51853,51859,51869,51871,51893,51899,51907,51913,51929,51941,51949,51971,51973,51977,51991,52009,52021,52027,52051,52057,52067,52069,52081,52103,52121,52127,52147,52153,52163,52177,52181,52183,52189,52201,52223,52237,52249,52253,52259,52267,52289,52291,52301,52313,52321,52361,52363,52369,52379,52387,52391,52433,52453,52457,52489,52501,52511,52517,52529,52541,52543,52553,52561,52567,52571,52579,52583,52609,52627,52631,52639,52667,52673,52691,52697,52709,52711,52721,52727,52733,52747,52757,52769,52783,52807,52813,52817,52837,52859,52861,52879,52883,52889,52901,52903,52919,52937,52951,52957,52963,52967,52973,52981,52999,53003,53017,53047,53051,53069,53077,53087,53089,53093,53101,53113,53117,53129,53147,53149,53161,53171,53173,53189,53197,53201,53231,53233,53239,53267,53269,53279,53281,53299,53309,53323,53327,53353,53359,53377,53381,53401,53407,53411,53419,53437,53441,53453,53479,53503,53507,53527,53549,53551,53569,53591,53593,53597,53609,53611,53617,53623,53629,53633,53639,53653,53657,53681,53693,53699,53717,53719,53731,53759,53773,53777,53783,53791,53813,53819,53831,53849,53857,53861,53881,53887,53891,53897,53899,53917,53923,53927,53939,53951,53959,53987,53993,54001,54011,54013,54037,54049,54059,54083,54091,54101,54121,54133,54139,54151,54163,54167,54181,54193,54217,54251,54269,54277,54287,54293,54311,54319,54323,54331,54347,54361,54367,54371,54377,54401,54403,54409,54413,54419,54421,54437,54443,54449,54469,54493,54497,54499,54503,54517,54521,54539,54541,54547,54559,54563,54577,54581,54583,54601,54617,54623,54629,54631,54647,54667,54673,54679,54709,54713,54721,54727,54751,54767,54773,54779,54787,54799,54829,54833,54851,54869,54877,54881,54907,54917,54919,54941,54949,54959,54973,54979,54983,55001,55009,55021,55049,55051,55057,55061,55073,55079,55103,55109,55117,55127,55147,55163,55171,55201,55207,55213,55217,55219,55229,55243,55249,55259,55291,55313,55331,55333,55337,55339,55343,55351,55373,55381,55399,55411,55439,55441,55457,55469,55487,55501,55511,55529,55541,55547,55579,55589,55603,55609,55619,55621,55631,55633,55639,55661,55663,55667,55673,55681,55691,55697,55711,55717,55721,55733,55763,55787,55793,55799,55807,55813,55817,55819,55823,55829,55837,55843,55849,55871,55889,55897,55901,55903,55921,55927,55931,55933,55949,55967,55987,55997,56003,56009,56039,56041,56053,56081,56087,56093,56099,56101,56113,56123,56131,56149,56167,56171,56179,56197,56207,56209,56237,56239,56249,56263,56267,56269,56299,56311,56333,56359,56369,56377,56383,56393,56401,56417,56431,56437,56443,56453,56467,56473,56477,56479,56489,56501,56503,56509,56519,56527,56531,56533,56543,56569,56591,56597,56599,56611,56629,56633,56659,56663,56671,56681,56687,56701,56711,56713,56731,56737,56747,56767,56773,56779,56783,56807,56809,56813,56821,56827,56843,56857,56873,56891,56893,56897,56909,56911,56921,56923,56929,56941,56951,56957,56963,56983,56989,56993,56999,57037,57041,57047,57059,57073,57077,57089,57097,57107,57119,57131,57139,57143,57149,57163,57173,57179,57191,57193,57203,57221,57223,57241,57251,57259,57269,57271,57283,57287,57301,57329,57331,57347,57349,57367,57373,57383,57389,57397,57413,57427,57457,57467,57487,57493,57503,57527,57529,57557,57559,57571,57587,57593,57601,57637,57641,57649,57653,57667,57679,57689,57697,57709,57713,57719,57727,57731,57737,57751,57773,57781,57787,57791,57793,57803,57809,57829,57839,57847,57853,57859,57881,57899,57901,57917,57923,57943,57947,57973,57977,57991,58013,58027,58031,58043,58049,58057,58061,58067,58073,58099,58109,58111,58129,58147,58151,58153,58169,58171,58189,58193,58199,58207,58211,58217,58229,58231,58237,58243,58271,58309,58313,58321,58337,58363,58367,58369,58379,58391,58393,58403,58411,58417,58427,58439,58441,58451,58453,58477,58481,58511,58537,58543,58549,58567,58573,58579,58601,58603,58613,58631,58657,58661,58679,58687,58693,58699,58711,58727,58733,58741,58757,58763,58771,58787,58789,58831,58889,58897,58901,58907,58909,58913,58921,58937,58943,58963,58967,58979,58991,58997,59009,59011,59021,59023,59029,59051,59053,59063,59069,59077,59083,59093,59107,59113,59119,59123,59141,59149,59159,59167,59183,59197,59207,59209,59219,59221,59233,59239,59243,59263,59273,59281,59333,59341,59351,59357,59359,59369,59377,59387,59393,59399,59407,59417,59419,59441,59443,59447,59453,59467,59471,59473,59497,59509,59513,59539,59557,59561,59567,59581,59611,59617,59621,59627,59629,59651,59659,59663,59669,59671,59693,59699,59707,59723,59729,59743,59747,59753,59771,59779,59791,59797,59809,59833,59863,59879,59887,59921,59929,59951,59957,59971,59981,59999,60013,60017,60029,60037,60041,60077,60083,60089,60091,60101,60103,60107,60127,60133,60139,60149,60161,60167,60169,60209,60217,60223,60251,60257,60259,60271,60289,60293,60317,60331,60337,60343,60353,60373,60383,60397,60413,60427,60443,60449,60457,60493,60497,60509,60521,60527,60539,60589,60601,60607,60611,60617,60623,60631,60637,60647,60649,60659,60661,60679,60689,60703,60719,60727,60733,60737,60757,60761,60763,60773,60779,60793,60811,60821,60859,60869,60887,60889,60899,60901,60913,60917,60919,60923,60937,60943,60953,60961,61001,61007,61027,61031,61043,61051,61057,61091,61099,61121,61129,61141,61151,61153,61169,61211,61223,61231,61253,61261,61283,61291,61297,61331,61333,61339,61343,61357,61363,61379,61381,61403,61409,61417,61441,61463,61469,61471,61483,61487,61493,61507,61511,61519,61543,61547,61553,61559,61561,61583,61603,61609,61613,61627,61631,61637,61643,61651,61657,61667,61673,61681,61687,61703,61717,61723,61729,61751,61757,61781,61813,61819,61837,61843,61861,61871,61879,61909,61927,61933,61949,61961,61967,61979,61981,61987,61991,62003,62011,62017,62039,62047,62053,62057,62071,62081,62099,62119,62129,62131,62137,62141,62143,62171,62189,62191,62201,62207,62213,62219,62233,62273,62297,62299,62303,62311,62323,62327,62347,62351,62383,62401,62417,62423,62459,62467,62473,62477,62483,62497,62501,62507,62533,62539,62549,62563,62581,62591,62597,62603,62617,62627,62633,62639,62653,62659,62683,62687,62701,62723,62731,62743,62753,62761,62773,62791,62801,62819,62827,62851,62861,62869,62873,62897,62903,62921,62927,62929,62939,62969,62971,62981,62983,62987,62989,63029,63031,63059,63067,63073,63079,63097,63103,63113,63127,63131,63149,63179,63197,63199,63211,63241,63247,63277,63281,63299,63311,63313,63317,63331,63337,63347,63353,63361,63367,63377,63389,63391,63397,63409,63419,63421,63439,63443,63463,63467,63473,63487,63493,63499,63521,63527,63533,63541,63559,63577,63587,63589,63599,63601,63607,63611,63617,63629,63647,63649,63659,63667,63671,63689,63691,63697,63703,63709,63719,63727,63737,63743,63761,63773,63781,63793,63799,63803,63809,63823,63839,63841,63853,63857,63863,63901,63907,63913,63929,63949,63977,63997,64007,64013,64019,64033,64037,64063,64067,64081,64091,64109,64123,64151,64153,64157,64171,64187,64189,64217,64223,64231,64237,64271,64279,64283,64301,64303,64319,64327,64333,64373,64381,64399,64403,64433,64439,64451,64453,64483,64489,64499,64513,64553,64567,64577,64579,64591,64601,64609,64613,64621,64627,64633,64661,64663,64667,64679,64693,64709,64717,64747,64763,64781,64783,64793,64811,64817,64849,64853,64871,64877,64879,64891,64901,64919,64921,64927,64937,64951,64969,64997,65003,65011,65027,65029,65033,65053,65063,65071,65089,65099,65101,65111,65119,65123,65129,65141,65147,65167,65171,65173,65179,65183,65203,65213,65239,65257,65267,65269,65287,65293,65309,65323,65327,65353,65357,65371,65381,65393,65407,65413,65419,65423,65437,65447,65449,65479,65497,65519,65521,65537,65539,65543,65551,65557,65563,65579,65581,65587,65599,65609,65617,65629,65633,65647,65651,65657,65677,65687,65699,65701,65707,65713,65717,65719,65729,65731,65761,65777,65789,65809,65827,65831,65837,65839,65843,65851,65867,65881,65899,65921,65927,65929,65951,65957,65963,65981,65983,65993,66029,66037,66041,66047,66067,66071,66083,66089,66103,66107,66109,66137,66161,66169,66173,66179,66191,66221,66239,66271,66293,66301,66337,66343,66347,66359,66361,66373,66377,66383,66403,66413,66431,66449,66457,66463,66467,66491,66499,66509,66523,66529,66533,66541,66553,66569,66571,66587,66593,66601,66617,66629,66643,66653,66683,66697,66701,66713,66721,66733,66739,66749,66751,66763,66791,66797,66809,66821,66841,66851,66853,66863,66877,66883,66889,66919,66923,66931,66943,66947,66949,66959,66973,66977,67003,67021,67033,67043,67049,67057,67061,67073,67079,67103,67121,67129,67139,67141,67153,67157,67169,67181,67187,67189,67211,67213,67217,67219,67231,67247,67261,67271,67273,67289,67307,67339,67343,67349,67369,67391,67399,67409,67411,67421,67427,67429,67433,67447,67453,67477,67481,67489,67493,67499,67511,67523,67531,67537,67547,67559,67567,67577,67579,67589,67601,67607,67619,67631,67651,67679,67699,67709,67723,67733,67741,67751,67757,67759,67763,67777,67783,67789,67801,67807,67819,67829,67843,67853,67867,67883,67891,67901,67927,67931,67933,67939,67943,67957,67961,67967,67979,67987,67993,68023,68041,68053,68059,68071,68087,68099,68111,68113,68141,68147,68161,68171,68207,68209,68213,68219,68227,68239,68261,68279,68281,68311,68329,68351,68371,68389,68399,68437,68443,68447,68449,68473,68477,68483,68489,68491,68501,68507,68521,68531,68539,68543,68567,68581,68597,68611,68633,68639,68659,68669,68683,68687,68699,68711,68713,68729,68737,68743,68749,68767,68771,68777,68791,68813,68819,68821,68863,68879,68881,68891,68897,68899,68903,68909,68917,68927,68947,68963,68993,69001,69011,69019,69029,69031,69061,69067,69073,69109,69119,69127,69143,69149,69151,69163,69191,69193,69197,69203,69221,69233,69239,69247,69257,69259,69263,69313,69317,69337,69341,69371,69379,69383,69389,69401,69403,69427,69431,69439,69457,69463,69467,69473,69481,69491,69493,69497,69499,69539,69557,69593,69623,69653,69661,69677,69691,69697,69709,69737,69739,69761,69763,69767,69779,69809,69821,69827,69829,69833,69847,69857,69859,69877,69899,69911,69929,69931,69941,69959,69991,69997,70001,70003,70009,70019,70039,70051,70061,70067,70079,70099,70111,70117,70121,70123,70139,70141,70157,70163,70177,70181,70183,70199,70201,70207,70223,70229,70237,70241,70249,70271,70289,70297,70309,70313,70321,70327,70351,70373,70379,70381,70393,70423,70429,70439,70451,70457,70459,70481,70487,70489,70501,70507,70529,70537,70549,70571,70573,70583,70589,70607,70619,70621,70627,70639,70657,70663,70667,70687,70709,70717,70729,70753,70769,70783,70793,70823,70841,70843,70849,70853,70867,70877,70879,70891,70901,70913,70919,70921,70937,70949,70951,70957,70969,70979,70981,70991,70997,70999,71011,71023,71039,71059,71069,71081,71089,71119,71129,71143,71147,71153,71161,71167,71171,71191,71209,71233,71237,71249,71257,71261,71263,71287,71293,71317,71327,71329,71333,71339,71341,71347,71353,71359,71363,71387,71389,71399,71411,71413,71419,71429,71437,71443,71453,71471,71473,71479,71483,71503,71527,71537,71549,71551,71563,71569,71593,71597,71633,71647,71663,71671,71693,71699,71707,71711,71713,71719,71741,71761,71777,71789,71807,71809,71821,71837,71843,71849,71861,71867,71879,71881,71887,71899,71909,71917,71933,71941,71947,71963,71971,71983,71987,71993,71999,72019,72031,72043,72047,72053,72073,72077,72089,72091,72101,72103,72109,72139,72161,72167,72169,72173,72211,72221,72223,72227,72229,72251,72253,72269,72271,72277,72287,72307,72313,72337,72341,72353,72367,72379,72383,72421,72431,72461,72467,72469,72481,72493,72497,72503,72533,72547,72551,72559,72577,72613,72617,72623,72643,72647,72649,72661,72671,72673,72679,72689,72701,72707,72719,72727,72733,72739,72763,72767,72797,72817,72823,72859,72869,72871,72883,72889,72893,72901,72907,72911,72923,72931,72937,72949,72953,72959,72973,72977,72997,73009,73013,73019,73037,73039,73043,73061,73063,73079,73091,73121,73127,73133,73141,73181,73189,73237,73243,73259,73277,73291,73303,73309,73327,73331,73351,73361,73363,73369,73379,73387,73417,73421,73433,73453,73459,73471,73477,73483,73517,73523,73529,73547,73553,73561,73571,73583,73589,73597,73607,73609,73613,73637,73643,73651,73673,73679,73681,73693,73699,73709,73721,73727,73751,73757,73771,73783,73819,73823,73847,73849,73859,73867,73877,73883,73897,73907,73939,73943,73951,73961,73973,73999,74017,74021,74027,74047,74051,74071,74077,74093,74099,74101,74131,74143,74149,74159,74161,74167,74177,74189,74197,74201,74203,74209,74219,74231,74257,74279,74287,74293,74297,74311,74317,74323,74353,74357,74363,74377,74381,74383,74411,74413,74419,74441,74449,74453,74471,74489,74507,74509,74521,74527,74531,74551,74561,74567,74573,74587,74597,74609,74611,74623,74653,74687,74699,74707,74713,74717,74719,74729,74731,74747,74759,74761,74771,74779,74797,74821,74827,74831,74843,74857,74861,74869,74873,74887,74891,74897,74903,74923,74929,74933,74941,74959,75011,75013,75017,75029,75037,75041,75079,75083,75109,75133,75149,75161,75167,75169,75181,75193,75209,75211,75217,75223,75227,75239,75253,75269,75277,75289,75307,75323,75329,75337,75347,75353,75367,75377,75389,75391,75401,75403,75407,75431,75437,75479,75503,75511,75521,75527,75533,75539,75541,75553,75557,75571,75577,75583,75611,75617,75619,75629,75641,75653,75659,75679,75683,75689,75703,75707,75709,75721,75731,75743,75767,75773,75781,75787,75793,75797,75821,75833,75853,75869,75883,75913,75931,75937,75941,75967,75979,75983,75989,75991,75997,76001,76003,76031,76039,76079,76081,76091,76099,76103,76123,76129,76147,76157,76159,76163,76207,76213,76231,76243,76249,76253,76259,76261,76283,76289,76303,76333,76343,76367,76369,76379,76387,76403,76421,76423,76441,76463,76471,76481,76487,76493,76507,76511,76519,76537,76541,76543,76561,76579,76597,76603,76607,76631,76649,76651,76667,76673,76679,76697,76717,76733,76753,76757,76771,76777,76781,76801,76819,76829,76831,76837,76847,76871,76873,76883,76907,76913,76919,76943,76949,76961,76963,76991,77003,77017,77023,77029,77041,77047,77069,77081,77093,77101,77137,77141,77153,77167,77171,77191,77201,77213,77237,77239,77243,77249,77261,77263,77267,77269,77279,77291,77317,77323,77339,77347,77351,77359,77369,77377,77383,77417,77419,77431,77447,77471,77477,77479,77489,77491,77509,77513,77521,77527,77543,77549,77551,77557,77563,77569,77573,77587,77591,77611,77617,77621,77641,77647,77659,77681,77687,77689,77699,77711,77713,77719,77723,77731,77743,77747,77761,77773,77783,77797,77801,77813,77839,77849,77863,77867,77893,77899,77929,77933,77951,77969,77977,77983,77999,78007,78017,78031,78041,78049,78059,78079,78101,78121,78137,78139,78157,78163,78167,78173,78179,78191,78193,78203,78229,78233,78241,78259,78277,78283,78301,78307,78311,78317,78341,78347,78367,78401,78427,78437,78439,78467,78479,78487,78497,78509,78511,78517,78539,78541,78553,78569,78571,78577,78583,78593,78607,78623,78643,78649,78653,78691,78697,78707,78713,78721,78737,78779,78781,78787,78791,78797,78803,78809,78823,78839,78853,78857,78877,78887,78889,78893,78901,78919,78929,78941,78977,78979,78989,79031,79039,79043,79063,79087,79103,79111,79133,79139,79147,79151,79153,79159,79181,79187,79193,79201,79229,79231,79241,79259,79273,79279,79283,79301,79309,79319,79333,79337,79349,79357,79367,79379,79393,79397,79399,79411,79423,79427,79433,79451,79481,79493,79531,79537,79549,79559,79561,79579,79589,79601,79609,79613,79621,79627,79631,79633,79657,79669,79687,79691,79693,79697,79699,79757,79769,79777,79801,79811,79813,79817,79823,79829,79841,79843,79847,79861,79867,79873,79889,79901,79903,79907,79939,79943,79967,79973,79979,79987,79997,79999,80021,80039,80051,80071,80077,80107,80111,80141,80147,80149,80153,80167,80173,80177,80191,80207,80209,80221,80231,80233,80239,80251,80263,80273,80279,80287,80309,80317,80329,80341,80347,80363,80369,80387,80407,80429,80447,80449,80471,80473,80489,80491,80513,80527,80537,80557,80567,80599,80603,80611,80621,80627,80629,80651,80657,80669,80671,80677,80681,80683,80687,80701,80713,80737,80747,80749,80761,80777,80779,80783,80789,80803,80809,80819,80831,80833,80849,80863,80897,80909,80911,80917,80923,80929,80933,80953,80963,80989,81001,81013,81017,81019,81023,81031,81041,81043,81047,81049,81071,81077,81083,81097,81101,81119,81131,81157,81163,81173,81181,81197,81199,81203,81223,81233,81239,81281,81283,81293,81299,81307,81331,81343,81349,81353,81359,81371,81373,81401,81409,81421,81439,81457,81463,81509,81517,81527,81533,81547,81551,81553,81559,81563,81569,81611,81619,81629,81637,81647,81649,81667,81671,81677,81689,81701,81703,81707,81727,81737,81749,81761,81769,81773,81799,81817,81839,81847,81853,81869,81883,81899,81901,81919,81929,81931,81937,81943,81953,81967,81971,81973,82003,82007,82009,82013,82021,82031,82037,82039,82051,82067,82073,82129,82139,82141,82153,82163,82171,82183,82189,82193,82207,82217,82219,82223,82231,82237,82241,82261,82267,82279,82301,82307,82339,82349,82351,82361,82373,82387,82393,82421,82457,82463,82469,82471,82483,82487,82493,82499,82507,82529,82531,82549,82559,82561,82567,82571,82591,82601,82609,82613,82619,82633,82651,82657,82699,82721,82723,82727,82729,82757,82759,82763,82781,82787,82793,82799,82811,82813,82837,82847,82883,82889,82891,82903,82913,82939,82963,82981,82997,83003,83009,83023,83047,83059,83063,83071,83077,83089,83093,83101,83117,83137,83177,83203,83207,83219,83221,83227,83231,83233,83243,83257,83267,83269,83273,83299,83311,83339,83341,83357,83383,83389,83399,83401,83407,83417,83423,83431,83437,83443,83449,83459,83471,83477,83497,83537,83557,83561,83563,83579,83591,83597,83609,83617,83621,83639,83641,83653,83663,83689,83701,83717,83719,83737,83761,83773,83777,83791,83813,83833,83843,83857,83869,83873,83891,83903,83911,83921,83933,83939,83969,83983,83987,84011,84017,84047,84053,84059,84061,84067,84089,84121,84127,84131,84137,84143,84163,84179,84181,84191,84199,84211,84221,84223,84229,84239,84247,84263,84299,84307,84313,84317,84319,84347,84349,84377,84389,84391,84401,84407,84421,84431,84437,84443,84449,84457,84463,84467,84481,84499,84503,84509,84521,84523,84533,84551,84559,84589,84629,84631,84649,84653,84659,84673,84691,84697,84701,84713,84719,84731,84737,84751,84761,84787,84793,84809,84811,84827,84857,84859,84869,84871,84913,84919,84947,84961,84967,84977,84979,84991,85009,85021,85027,85037,85049,85061,85081,85087,85091,85093,85103,85109,85121,85133,85147,85159,85193,85199,85201,85213,85223,85229,85237,85243,85247,85259,85297,85303,85313,85331,85333,85361,85363,85369,85381,85411,85427,85429,85439,85447,85451,85453,85469,85487,85513,85517,85523,85531,85549,85571,85577,85597,85601,85607,85619,85621,85627,85639,85643,85661,85667,85669,85691,85703,85711,85717,85733,85751,85781,85793,85817,85819,85829,85831,85837,85843,85847,85853,85889,85903,85909,85931,85933,85991,85999,86011,86017,86027,86029,86069,86077,86083,86111,86113,86117,86131,86137,86143,86161,86171,86179,86183,86197,86201,86209,86239,86243,86249,86257,86263,86269,86287,86291,86293,86297,86311,86323,86341,86351,86353,86357,86369,86371,86381,86389,86399,86413,86423,86441,86453,86461,86467,86477,86491,86501,86509,86531,86533,86539,86561,86573,86579,86587,86599,86627,86629,86677,86689,86693,86711,86719,86729,86743,86753,86767,86771,86783,86813,86837,86843,86851,86857,86861,86869,86923,86927,86929,86939,86951,86959,86969,86981,86993,87011,87013,87037,87041,87049,87071,87083,87103,87107,87119,87121,87133,87149,87151,87179,87181,87187,87211,87221,87223,87251,87253,87257,87277,87281,87293,87299,87313,87317,87323,87337,87359,87383,87403,87407,87421,87427,87433,87443,87473,87481,87491,87509,87511,87517,87523,87539,87541,87547,87553,87557,87559,87583,87587,87589,87613,87623,87629,87631,87641,87643,87649,87671,87679,87683,87691,87697,87701,87719,87721,87739,87743,87751,87767,87793,87797,87803,87811,87833,87853,87869,87877,87881,87887,87911,87917,87931,87943,87959,87961,87973,87977,87991,88001,88003,88007,88019,88037,88069,88079,88093,88117,88129,88169,88177,88211,88223,88237,88241,88259,88261,88289,88301,88321,88327,88337,88339,88379,88397,88411,88423,88427,88463,88469,88471,88493,88499,88513,88523,88547,88589,88591,88607,88609,88643,88651,88657,88661,88663,88667,88681,88721,88729,88741,88747,88771,88789,88793,88799,88801,88807,88811,88813,88817,88819,88843,88853,88861,88867,88873,88883,88897,88903,88919,88937,88951,88969,88993,88997,89003,89009,89017,89021,89041,89051,89057,89069,89071,89083,89087,89101,89107,89113,89119,89123,89137,89153,89189,89203,89209,89213,89227,89231,89237,89261,89269,89273,89293,89303,89317,89329,89363,89371,89381,89387,89393,89399,89413,89417,89431,89443,89449,89459,89477,89491,89501,89513,89519,89521,89527,89533,89561,89563,89567,89591,89597,89599,89603,89611,89627,89633,89653,89657,89659,89669,89671,89681,89689,89753,89759,89767,89779,89783,89797,89809,89819,89821,89833,89839,89849,89867,89891,89897,89899,89909,89917,89923,89939,89959,89963,89977,89983,89989,90001,90007,90011,90017,90019,90023,90031,90053,90059,90067,90071,90073,90089,90107,90121,90127,90149,90163,90173,90187,90191,90197,90199,90203,90217,90227,90239,90247,90263,90271,90281,90289,90313,90353,90359,90371,90373,90379,90397,90401,90403,90407,90437,90439,90469,90473,90481,90499,90511,90523,90527,90529,90533,90547,90583,90599,90617,90619,90631,90641,90647,90659,90677,90679,90697,90703,90709,90731,90749,90787,90793,90803,90821,90823,90833,90841,90847,90863,90887,90901,90907,90911,90917,90931,90947,90971,90977,90989,90997,91009,91019,91033,91079,91081,91097,91099,91121,91127,91129,91139,91141,91151,91153,91159,91163,91183,91193,91199,91229,91237,91243,91249,91253,91283,91291,91297,91303,91309,91331,91367,91369,91373,91381,91387,91393,91397,91411,91423,91433,91453,91457,91459,91463,91493,91499,91513,91529,91541,91571,91573,91577,91583,91591,91621,91631,91639,91673,91691,91703,91711,91733,91753,91757,91771,91781,91801,91807,91811,91813,91823,91837,91841,91867,91873,91909,91921,91939,91943,91951,91957,91961,91967,91969,91997,92003,92009,92033,92041,92051,92077,92083,92107,92111,92119,92143,92153,92173,92177,92179,92189,92203,92219,92221,92227,92233,92237,92243,92251,92269,92297,92311,92317,92333,92347,92353,92357,92363,92369,92377,92381,92383,92387,92399,92401,92413,92419,92431,92459,92461,92467,92479,92489,92503,92507,92551,92557,92567,92569,92581,92593,92623,92627,92639,92641,92647,92657,92669,92671,92681,92683,92693,92699,92707,92717,92723,92737,92753,92761,92767,92779,92789,92791,92801,92809,92821,92831,92849,92857,92861,92863,92867,92893,92899,92921,92927,92941,92951,92957,92959,92987,92993,93001,93047,93053,93059,93077,93083,93089,93097,93103,93113,93131,93133,93139,93151,93169,93179,93187,93199,93229,93239,93241,93251,93253,93257,93263,93281,93283,93287,93307,93319,93323,93329,93337,93371,93377,93383,93407,93419,93427,93463,93479,93481,93487,93491,93493,93497,93503,93523,93529,93553,93557,93559,93563,93581,93601,93607,93629,93637,93683,93701,93703,93719,93739,93761,93763,93787,93809,93811,93827,93851,93871,93887,93889,93893,93901,93911,93913,93923,93937,93941,93949,93967,93971,93979,93983,93997,94007,94009,94033,94049,94057,94063,94079,94099,94109,94111,94117,94121,94151,94153,94169,94201,94207,94219,94229,94253,94261,94273,94291,94307,94309,94321,94327,94331,94343,94349,94351,94379,94397,94399,94421,94427,94433,94439,94441,94447,94463,94477,94483,94513,94529,94531,94541,94543,94547,94559,94561,94573,94583,94597,94603,94613,94621,94649,94651,94687,94693,94709,94723,94727,94747,94771,94777,94781,94789,94793,94811,94819,94823,94837,94841,94847,94849,94873,94889,94903,94907,94933,94949,94951,94961,94993,94999,95003,95009,95021,95027,95063,95071,95083,95087,95089,95093,95101,95107,95111,95131,95143,95153,95177,95189,95191,95203,95213,95219,95231,95233,95239,95257,95261,95267,95273,95279,95287,95311,95317,95327,95339,95369,95383,95393,95401,95413,95419,95429,95441,95443,95461,95467,95471,95479,95483,95507,95527,95531,95539,95549,95561,95569,95581,95597,95603,95617,95621,95629,95633,95651,95701,95707,95713,95717,95723,95731,95737,95747,95773,95783,95789,95791,95801,95803,95813,95819,95857,95869,95873,95881,95891,95911,95917,95923,95929,95947,95957,95959,95971,95987,95989,96001,96013,96017,96043,96053,96059,96079,96097,96137,96149,96157,96167,96179,96181,96199,96211,96221,96223,96233,96259,96263,96269,96281,96289,96293,96323,96329,96331,96337,96353,96377,96401,96419,96431,96443,96451,96457,96461,96469,96479,96487,96493,96497,96517,96527,96553,96557,96581,96587,96589,96601,96643,96661,96667,96671,96697,96703,96731,96737,96739,96749,96757,96763,96769,96779,96787,96797,96799,96821,96823,96827,96847,96851,96857,96893,96907,96911,96931,96953,96959,96973,96979,96989,96997,97001,97003,97007,97021,97039,97073,97081,97103,97117,97127,97151,97157,97159,97169,97171,97177,97187,97213,97231,97241,97259,97283,97301,97303,97327,97367,97369,97373,97379,97381,97387,97397,97423,97429,97441,97453,97459,97463,97499,97501,97511,97523,97547,97549,97553,97561,97571,97577,97579,97583,97607,97609,97613,97649,97651,97673,97687,97711,97729,97771,97777,97787,97789,97813,97829,97841,97843,97847,97849,97859,97861,97871,97879,97883,97919,97927,97931,97943,97961,97967,97973,97987,98009,98011,98017,98041,98047,98057,98081,98101,98123,98129,98143,98179,98207,98213,98221,98227,98251,98257,98269,98297,98299,98317,98321,98323,98327,98347,98369,98377,98387,98389,98407,98411,98419,98429,98443,98453,98459,98467,98473,98479,98491,98507,98519,98533,98543,98561,98563,98573,98597,98621,98627,98639,98641,98663,98669,98689,98711,98713,98717,98729,98731,98737,98773,98779,98801,98807,98809,98837,98849,98867,98869,98873,98887,98893,98897,98899,98909,98911,98927,98929,98939,98947,98953,98963,98981,98993,98999,99013,99017,99023,99041,99053,99079,99083,99089,99103,99109,99119,99131,99133,99137,99139,99149,99173,99181,99191,99223,99233,99241,99251,99257,99259,99277,99289,99317,99347,99349,99367,99371,99377,99391,99397,99401,99409,99431,99439,99469,99487,99497,99523,99527,99529,99551,99559,99563,99571,99577,99581,99607,99611,99623,99643,99661,99667,99679,99689,99707,99709,99713,99719,99721,99733,99761,99767,99787,99793,99809,99817,99823,99829,99833,99839,99859,99871,99877,99881,99901,99907,99923,99929,99961,99971,99989,99991,100003,100019,100043,100049,100057,100069,100103,100109,100129,100151,100153,100169,100183,100189,100193,100207,100213,100237,100267,100271,100279,100291,100297,100313,100333,100343,100357,100361,100363,100379,100391,100393,100403,100411,100417,100447,100459,100469,100483,100493,100501,100511,100517,100519,100523,100537,100547,100549,100559,100591,100609,100613,100621,100649,100669,100673,100693,100699,100703,100733,100741,100747,100769,100787,100799,100801,100811,100823,100829,100847,100853,100907,100913,100927,100931,100937,100943,100957,100981,100987,100999,101009,101021,101027,101051,101063,101081,101089,101107,101111,101113,101117,101119,101141,101149,101159,101161,101173,101183,101197,101203,101207,101209,101221,101267,101273,101279,101281,101287,101293,101323,101333,101341,101347,101359,101363,101377,101383,101399,101411,101419,101429,101449,101467,101477,101483,101489,101501,101503,101513,101527,101531,101533,101537,101561,101573,101581,101599,101603,101611,101627,101641,101653,101663,101681,101693,101701,101719,101723,101737,101741,101747,101749,101771,101789,101797,101807,101833,101837,101839,101863,101869,101873,101879,101891,101917,101921,101929,101939,101957,101963,101977,101987,101999,102001,102013,102019,102023,102031,102043,102059,102061,102071,102077,102079,102101,102103,102107,102121,102139,102149,102161,102181,102191,102197,102199,102203,102217,102229,102233,102241,102251,102253,102259,102293,102299,102301,102317,102329,102337,102359,102367,102397,102407,102409,102433,102437,102451,102461,102481,102497,102499,102503,102523,102533,102539,102547,102551,102559,102563,102587,102593,102607,102611,102643,102647,102653,102667,102673,102677,102679,102701,102761,102763,102769,102793,102797,102811,102829,102841,102859,102871,102877,102881,102911,102913,102929,102931,102953,102967,102983,103001,103007,103043,103049,103067,103069,103079,103087,103091,103093,103099,103123,103141,103171,103177,103183,103217,103231,103237,103289,103291,103307,103319,103333,103349,103357,103387,103391,103393,103399,103409,103421,103423,103451,103457,103471,103483,103511,103529,103549,103553,103561,103567,103573,103577,103583,103591,103613,103619,103643,103651,103657,103669,103681,103687,103699,103703,103723,103769,103787,103801,103811,103813,103837,103841,103843,103867,103889,103903,103913,103919,103951,103963,103967,103969,103979,103981,103991,103993,103997,104003,104009,104021,104033,104047,104053,104059,104087,104089,104107,104113,104119,104123,104147,104149,104161,104173,104179,104183,104207,104231,104233,104239,104243,104281,104287,104297,104309,104311,104323,104327,104347,104369,104381,104383,104393,104399,104417,104459,104471,104473,104479,104491,104513,104527,104537,104543,104549,104551,104561,104579,104593,104597,104623,104639,104651,104659,104677,104681,104683,104693,104701,104707,104711,104717,104723,104729]}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y;y=r(713),p=y.trim,y.strip,l=y.katch,y.bufeq_fast,d=y.uint_to_buffer,h=function(e){return null==e&&(e=""),e+"\n"},t.Encoder=n=function(){function e(e){this.C=e}return e.prototype.frame=function(e){var t;return t=function(){var e,t;for(t=[],e=0;e<5;++e)t.push("-");return t}().join(""),{begin:h(t+"BEGIN PGP "+e+t),end:h(t+"END PGP "+e+t)}},e.prototype.b64e=function(e){var t,r,n,i;return i=e.toString("base64"),64,n=function(){var e,n,o;for(o=[],r=e=0,n=i.length;e<n;r=e+=64)t=Math.min(r+64,i.length),o.push(i.slice(r,t));return o}(),h(n.join("\n"))},e.prototype.header=function(){var e;return function(){var t,r,n,i;for(i=[],t=0,r=(n=["Version: "+this.C.header.version,"Comment: "+this.C.header.comment]).length;t<r;t++)e=n[t],i.push(h(e));return i}.call(this).join("")},e.prototype.encode=function(e,t){var r;return(r=this.frame(e)).begin.concat(this.header(),h(),this.b64e(t),f(t),r.end)},e}(),t.clearsign_header=function(e,t,r){return new n(e).frame("SIGNED MESSAGE").begin.concat(h("Hash: "+r),h(),t)},t.encode=function(e,t,r){return new n(e).encode(t,r)},u=[0,8801531,25875725,17603062,60024545,51751450,35206124,44007191,128024889,120049090,103502900,112007375,70412248,78916387,95990485,88014382,264588937,256049778,240098180,248108927,207005800,215016595,232553829,224014750,140824496,149062475,166599357,157832774,200747345,191980970,176028764,184266919,520933865,529177874,512099556,503334943,480196360,471432179,487973381,496217854,414011600,405478443,422020573,430033190,457094705,465107658,448029500,439496647,281648992,273666971,289622637,298124950,324696449,333198714,315665548,307683447,392699481,401494690,383961940,375687087,352057528,343782467,359738805,368533838,1041867730,1050668841,1066628831,1058355748,1032471859,1024199112,1006669886,1015471301,968368875,960392720,942864358,951368477,975946762,984451313,1000411399,992435708,836562267,828023200,810956886,818967725,844041146,852051777,868605623,860066380,914189410,922427545,938981743,930215316,904825475,896059e3,878993294,887231349,555053627,563297984,547333942,538569677,579245274,570480673,588005847,596249900,649392898,640860153,658384399,666397428,623318499,631331096,615366894,606833685,785398962,777416777,794487231,802989380,759421523,767923880,751374174,743392165,695319947,704115056,687564934,679289981,719477610,711202705,728272487,737067676,2083735460,2092239711,2109313705,2101337682,2141233477,2133257662,2116711496,2125215923,2073216669,2064943718,2048398224,2057199467,2013339772,2022141063,2039215473,2030942602,1945504045,1936737750,1920785440,1929023707,1885728716,1893966647,1911503553,1902736954,1951893524,1959904495,1977441561,1968902626,2009362165,2000822798,1984871416,1992881923,1665111629,1673124534,1656046400,1647513531,1621913772,1613380695,1629922721,1637935450,1688082292,1679317903,1695859321,1704103554,1728967061,1737211246,1720132760,1711368291,1828378820,1820103743,1836060105,1844855090,1869168165,1877963486,1860430632,1852155859,1801148925,1809650950,1792118e3,1784135691,1757986588,1750004711,1765960209,1774462698,1110107254,1118611597,1134571899,1126595968,1102643863,1094667884,1077139354,1085643617,1166763343,1158490548,1140961346,1149762745,1176011694,1184812885,1200772771,1192499800,1307552511,1298785796,1281720306,1289958153,1316768798,1325007077,1341561107,1332794856,1246636998,1254647613,1271201483,1262662192,1239272743,1230733788,1213667370,1221678289,1562785183,1570797924,1554833554,1546300521,1588974462,1580441477,1597965939,1605978760,1518843046,1510078557,1527603627,1535847760,1494504007,1502748348,1486784330,1478020017,1390639894,1382365165,1399434779,1408230112,1366334967,1375129868,1358579962,1350304769,1430452783,1438955220,1422405410,1414423513,1456544974,1448562741,1465633219,1474135352],s=function(e,t){var r,n,i,o;for(null==t&&(t=11994318),r=t,n=0;e.length-n>16;)r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=(r=r<<8^u[255&(r>>16^e.readUInt8(n+0))])<<8^u[255&(r>>16^e.readUInt8(n+1))])<<8^u[255&(r>>16^e.readUInt8(n+2))])<<8^u[255&(r>>16^e.readUInt8(n+3))])<<8^u[255&(r>>16^e.readUInt8(n+4))])<<8^u[255&(r>>16^e.readUInt8(n+5))])<<8^u[255&(r>>16^e.readUInt8(n+6))])<<8^u[255&(r>>16^e.readUInt8(n+7))])<<8^u[255&(r>>16^e.readUInt8(n+8))])<<8^u[255&(r>>16^e.readUInt8(n+9))])<<8^u[255&(r>>16^e.readUInt8(n+10))])<<8^u[255&(r>>16^e.readUInt8(n+11))])<<8^u[255&(r>>16^e.readUInt8(n+12))])<<8^u[255&(r>>16^e.readUInt8(n+13))])<<8^u[255&(r>>16^e.readUInt8(n+14))])<<8^u[255&(r>>16^e.readUInt8(n+15))],n+=16;for(i=n,o=e.length;n<=o?i<o:i>o;n<=o?++i:--i)r=r<<8^u[255&(r>>16^e.readUInt8(n++))];return 16777215&r},c=function(e,t){return a(s(e),t)},t.crc24_to_base64=a=function(e,t){return null==t&&(t=!0),(t?"=":"")+d(32,e).slice(1,4).toString("base64")},f=function(e){return h(c(e,!0))},_=function(e,t){return c(e,!1)===t},t.Message=i=function(){function e(e){this.body=e.body,this.type=e.type,this.comment=e.comment,this.version=e.version,this.pre=e.pre,this.post=e.post,this.lines=[],this.fields={},this.payload=null}return e.prototype.unsplit=function(e){return e.join("\n")},e.prototype.raw=function(){return this.unsplit(this.lines)},e.prototype.finish_unframe=function(e){var t,r;if(r=e.pre,t=e.post,this.pre=this.unsplit(r),this.post=this.unsplit(t),null!=this.clearsign)return this.clearsign.body=this.unsplit(this.clearsign.lines)},e.prototype.make_clearsign=function(){return this.clearsign={headers:{},lines:[],body:null}},e}(),t.Parser=o=function(){function t(e,t){this.strict=(null!=t?t:{}).strict,this.init(e)}return t.prototype.init=function(t){return this.data=e.isBuffer(t)?t.toString("utf8"):t,this.lines=this.data.split(/\r?\n/),this.checksum=null,this.body=null,this.type=null,this.ret=null,this.last_type=null},t.prototype.parse=function(){return this.ret=new i({}),this.unframe(),this.check_charset(),this.pop_headers(),this.parse_type(),this.strip_empties_in_footer(),this.strict&&this.verify_base64_lines(),this.trim_lines(),this.find_checksum(),this.read_body(),this.check_checksum(),this.ret},t.prototype.parse_type=function(){return this.ret.type=this.ret.fields.type=this.type},t.prototype.last_line=function(){return this.payload.slice(-1)[0]},t.prototype.mparse=function(){var e,t,r;for(r=[],e=!0;e;)this.skip(),this.lines.length?(t=this.parse(),r.push(t),this.init(t.post)):e=!1;return r},t.prototype.skip=function(){var e;for(e=[];this.lines.length&&!this.lines[0].match(/\S+/);)e.push(this.lines.shift());return e},t.prototype.read_body=function(){var t;return this.ret.payload=this.payload.join("\n"),t=this.payload.join(""),this.ret.body=e.from(t,"base64")},t.prototype.check_checksum=function(){if(this.ret.fields.checksum=this.checksum,null!=this.checksum&&!_(this.ret.body,this.checksum))throw new Error("checksum mismatch")},t.prototype.pop_headers=function(){var e,t,r;for(r=[];this.payload.length;)if(t=(e=this.payload.shift()).match(/^Version: (.*)/))r.push(this.ret.version=t[1]);else if(null!=(t=e.match(/^Comment: (.*)/)))r.push(this.ret.comment=t[1]);else{if(null==e||0===e.length||e.match(/^\s+$/))break;if(!e.match(/^\S+: .+$/))throw new Error("bad PGP armor found; expected a newline")}return r},t.prototype.strip_empties_in_footer=function(){var e,t;for(t=[];null!=(e=this.last_line())?e.match(/^\s*$/):void 0;)t.push(this.payload.pop());return t},t.prototype.verify_base64_lines=function(){var e,t,r,n,i,o;for(t=/^[a-zA-Z0-9\/+=]+$/,80,o=[],r=0,n=(i=this.payload).length;r<n;r++){if(!(e=i[r]).match(t))throw new Error('line "'+e+'" has characters that are not part of base64');if(e.length>80)throw new Error("armor line longer than 80 characters");o.push(void 0)}return o},t.prototype.trim_lines=function(){var e;return this.payload=function(){var t,r,n,i;for(i=[],t=0,r=(n=this.payload).length;t<r;t++)e=n[t],i.push(p(e));return i}.call(this)},t.prototype.find_checksum=function(){var e;if(null!=(e=this.last_line())&&"="===e[0])return this.checksum=this.payload.pop().slice(1)},t.prototype.v_unframe=function(e){return!0},t.prototype.unframe=function(){var e,t,r,n,i,o,s,a,u,f,c,l;for(f=/^(-{5}END PGP (.*?)-{5})(.*)$/m,u=/^(-{5}BEGIN PGP (.*?)-{5}\s*$)/,o=[],c=0,null,null,r=!0,a=[],s=[],l=this,t=function(e,t){return l.ret.clearsign.lines.push(e)},e=function(e,t){return a.push(e)};this.lines.length&&r;)switch(n=this.lines.shift(),c){case-1:if(i=n.match(/^([^:]+): (.*)$/))this.ret.clearsign.headers[i[1].toLowerCase()]=i[2];else{if(!n.match(/^\s*$/))throw new Error("Bad line in clearsign header");c++,e=t}this.ret.lines.push(n);break;case 0:null!=(i=n.match(u))?(e("",!0),this.ret.lines.push(this.ret.clearsign?n:i[1]),null==this.type&&(this.type=i[2]),this.last_type=i[2],"SIGNED MESSAGE"===i[2]?(c--,this.ret.make_clearsign()):c++):(this.ret.clearsign&&this.ret.lines.push(n),e(n,!1));break;case 1:if(i=n.match(f)){if(this.ret.lines.push(i[1]),i[2]!==this.last_type)throw new Error("type mismatch -- begin "+this.last_type+" w/ end "+i[1]);c++,s=[i[3]].concat(this.lines),this.lines=[],r=!1}else this.ret.lines.push(n),o.push(n)}if(0===c)throw new Error("no header found");if(1===c)throw new Error("no tailer found");return this.payload=o,this.ret.finish_unframe({pre:a,post:s})},t.prototype.check_charset=function(){if(null==this.ret.clearsign&&!/^[\n\r\t\x20-\x7e]*$/.test(this.data))throw new Error("invalid character in armor")},t}(),t.decode=function(e){return l((function(){return new o(e).parse()}))},t.mdecode=function(e){return l((function(){return new o(e).mparse()}))},t.compute_crc24=s}).call(this)}).call(this,r(11).Buffer)},function(e,t){(function(){t.parse=function(e){var t,r,n;return t=null,n=/^([^(<]*?)(?:\s*\((.*?)\))?(?:\s*<(.*?)>)?$/,null!=(r=e.match(n))&&(t={username:r[1],comment:r[2],email:r[3]}),t},t.format=function(e){var t,r,n,i;return t=[],(null!=(r=e.username)?r.length:void 0)&&t.push(e.username),(null!=(n=e.comment)?n.length:void 0)&&t.push("("+e.comment+")"),(null!=(i=e.email)?i.length:void 0)&&t.push("<"+e.email+">"),t.join(" ")}}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o;o=r(34),n=r(94).SRF,t.bufxor=i=function(t,r){var n,i,o;return n=function(){var e,n,s;for(s=[],o=e=0,n=t.length;e<n;o=++e)i=t[o],s.push(i^r[o]);return s}(),e.from(n)},t.genseed=function(e,t){var r,s,a,u,f,c,l,h;l=o.findDeferral(arguments),u=e.seed,c=e.split,s=e.len,f=e.server_half,r=a=null,null==f&&(f=null),function(e){if(!(null==u||c&&null==f))return e();!function(e){h=new o.Deferrals(e,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/keybase/util.iced"}),n().random_bytes(s,h.defer({assign_fn:function(){return a=arguments[0]},lineno:16})),h._fulfill()}(e)}((function(){return null!=u&&u.length!==s?r=new Error("Wrong seed length; need "+s+" bytes; got "+u.length):null!=u&&null!=a?(f=a,u=i(u,a)):null!=u&&null!=f?u=i(u,f):null==u&&(u=a),t(r,{seed:u,server_half:f})}))},t.prefix_signature_payload=function(t,r){var n;return n=[],(null!=t?t.length:void 0)&&(n.push(t),n.push(e.from([0]))),null!=r&&n.push(r),n.length?e.concat(n):null}}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){var n=r(716),i=r(717),o=r(1304);e.exports={Curve:i,Point:n,getCurveByName:o}},function(e,t,r){var n=r(219).BigInteger,i=r(1305),o=r(717);e.exports=function(e){var t=i[e];if(!t)return null;var r=new n(t.p,16),s=new n(t.a,16),a=new n(t.b,16),u=new n(t.n,16),f=new n(t.h,16),c=new n(t.Gx,16),l=new n(t.Gy,16);return new o(r,s,a,c,l,u,f)}},function(e){e.exports=JSON.parse('{"secp128r1":{"p":"fffffffdffffffffffffffffffffffff","a":"fffffffdfffffffffffffffffffffffc","b":"e87579c11079f43dd824993c2cee5ed3","n":"fffffffe0000000075a30d1b9038a115","h":"01","Gx":"161ff7528b899b2d0c28607ca52c5b86","Gy":"cf5ac8395bafeb13c02da292dded7a83"},"secp160k1":{"p":"fffffffffffffffffffffffffffffffeffffac73","a":"00","b":"07","n":"0100000000000000000001b8fa16dfab9aca16b6b3","h":"01","Gx":"3b4c382ce37aa192a4019e763036f4f5dd4d7ebb","Gy":"938cf935318fdced6bc28286531733c3f03c4fee"},"secp160r1":{"p":"ffffffffffffffffffffffffffffffff7fffffff","a":"ffffffffffffffffffffffffffffffff7ffffffc","b":"1c97befc54bd7a8b65acf89f81d4d4adc565fa45","n":"0100000000000000000001f4c8f927aed3ca752257","h":"01","Gx":"4a96b5688ef573284664698968c38bb913cbfc82","Gy":"23a628553168947d59dcc912042351377ac5fb32"},"secp192k1":{"p":"fffffffffffffffffffffffffffffffffffffffeffffee37","a":"00","b":"03","n":"fffffffffffffffffffffffe26f2fc170f69466a74defd8d","h":"01","Gx":"db4ff10ec057e9ae26b07d0280b7f4341da5d1b1eae06c7d","Gy":"9b2f2f6d9c5628a7844163d015be86344082aa88d95e2f9d"},"secp192r1":{"p":"fffffffffffffffffffffffffffffffeffffffffffffffff","a":"fffffffffffffffffffffffffffffffefffffffffffffffc","b":"64210519e59c80e70fa7e9ab72243049feb8deecc146b9b1","n":"ffffffffffffffffffffffff99def836146bc9b1b4d22831","h":"01","Gx":"188da80eb03090f67cbf20eb43a18800f4ff0afd82ff1012","Gy":"07192b95ffc8da78631011ed6b24cdd573f977a11e794811"},"secp256k1":{"p":"fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","a":"00","b":"07","n":"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141","h":"01","Gx":"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","Gy":"483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8"},"secp256r1":{"p":"ffffffff00000001000000000000000000000000ffffffffffffffffffffffff","a":"ffffffff00000001000000000000000000000000fffffffffffffffffffffffc","b":"5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b","n":"ffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551","h":"01","Gx":"6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296","Gy":"4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"}}')},function(e,t){},function(e,t,r){(function(e){(function(){var n,i,o={}.hasOwnProperty;i=r(719).bufeq_secure,n=r(720).Base,t.Sodium=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)o.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype._detach=function(e){var t;return t=this.lib.c.crypto_sign_BYTES,{sig:e.slice(0,t),payload:e.slice(t)}},r.prototype._pad=function(t){return e.concat([e.alloc(16),t])},r.prototype._unpad=function(e){return e.slice(16)},r.prototype.verify=function(t){var r,n,o,s,a,u;return s=t.payload,u=t.sig,(r=t.detached)&&null==s?[n=new Error("in detached mode, you must supply a payload"),null]:(o=r?e.concat([u,s]):u,null==(a=this.lib.c.crypto_sign_open(o,this.publicKey))?n=new Error("Signature failed to verify"):r||(null==s?s=a:i(a,s)||(n=new Error("got unexpected payload"))),null!=n&&(s=null),[n,s])},r.prototype.sign=function(e){var t,r,n;return t=e.detached,r=e.payload,n=this.lib.c.crypto_sign(r,this.secretKey),t?this._detach(n).sig:n},r.prototype.encrypt=function(e){var t,r,n;return r=e.plaintext,t=e.nonce,n=e.pubkey,this._unpad(this.lib.c.crypto_box(r,t,n,this.secretKey))},r.prototype.secretbox=function(e){var t,r;return r=e.plaintext,t=e.nonce,this._unpad(this.lib.c.crypto_secretbox(r,t,this.secretKey))},r.prototype.decrypt=function(e){var t,r,n,i;if(t=e.ciphertext,r=e.nonce,i=e.pubkey,n=this.lib.c.crypto_box_open(this._pad(t),r,i,this.secretKey))return n;throw new Error("Sodium decrypt failed!")},r.prototype.secretbox_open=function(e){var t,r,n;if(t=e.ciphertext,r=e.nonce,n=this.lib.c.crypto_secretbox_open(this._pad(t),r,this.secretKey))return n;throw new Error("Sodium secretbox_open failed!")},r.prototype.box_beforenm=function(e){var t,r;return t=e.pubkey,r=e.seckey,this.lib.c.crypto_box_beforenm(t,r)},r.prototype.box_open_afternm=function(e){var t,r,n,i;if(t=e.ciphertext,r=e.nonce,i=e.secret,n=this.lib.c.crypto_box_open_afternm(this._pad(t),r,i))return n;throw new Error("Sodium box_open_afternm failed!")},r.prototype.scalarmult_base=function(t){return e.from(this.lib.c.crypto_scalarmult_base(t))},r.prototype.scalarmult=function(t,r){return e.from(this.lib.c.crypto_scalarmult(t,r))},r}(n)}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u={}.hasOwnProperty;o=r(719).bufeq_secure,a=r(720),i=a.b2u,s=a.u2b,n=a.Base,t.TweetNaCl=function(t){function r(){return r.__super__.constructor.apply(this,arguments)}return function(e,t){for(var r in t)u.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.verify=function(t){var r,n,a,u;return n=t.payload,u=t.sig,r=null,t.detached?(null==n&&(n=e.alloc(0)),this.lib.js.sign.detached.verify(i(n),i(u),i(this.publicKey))||(r=new Error("Signature failed to verify"))):null==(a=this.lib.js.sign.open(i(u),i(this.publicKey)))?r=new Error("signature didn't verify"):null==(a=s(a))?r=new Error("failed to convert from a Uint8Array to a buffer"):null==n||o(a,n)?n=a:r=new Error("got unexpected payload"),null!=r&&(n=null),[r,n]},r.prototype.sign=function(e){var t,r;return r=e.payload,t=e.detached?this.lib.js.sign.detached:this.lib.js.sign,s(t(i(r),i(this.secretKey)))},r.prototype.encrypt=function(e){var t,r,n;return r=e.plaintext,t=e.nonce,n=e.pubkey,s(this.lib.js.box(r,t,n,this.secretKey))},r.prototype.secretbox=function(e){var t,r;return r=e.plaintext,t=e.nonce,s(this.lib.js.secretbox(r,t,this.secretKey))},r.prototype.decrypt=function(e){var t,r,n,o;if(t=e.ciphertext,r=e.nonce,o=e.pubkey,n=this.lib.js.box.open(i(t),r,o,this.secretKey))return s(n);throw new Error("TweetNaCl box_open failed!")},r.prototype.secretbox_open=function(e){var t,r,n;if(t=e.ciphertext,r=e.nonce,n=this.lib.js.secretbox.open(i(t),r,this.secretKey))return s(n);throw new Error("TweetNaCl secretbox_open failed!")},r.prototype.box_beforenm=function(e){var t,r;return t=e.pubkey,r=e.seckey,s(this.lib.js.box.before(t,r))},r.prototype.box_open_afternm=function(e){var t,r,n,o;if(t=e.ciphertext,r=e.nonce,o=e.secret,n=this.lib.js.box.open.after(i(t),r,o))return s(n);throw new Error("TweetNaCl box_open_afternm failed!")},r.prototype.scalarmult_base=function(t){return e.from(this.lib.js.scalarMult.base(t))},r.prototype.scalarmult=function(t,r){return e.from(this.lib.js.scalarMult(t,r))},r}(n)}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i,o,s,a;r(82).WordArray,a=r(50),s=a.ui8a_to_ui32a,o=a.ui32a_to_ui8a,i=function(){function e(){this.init_schedule(),this.init_sbox()}return e.prototype.init_schedule=function(){var e,t;return(e=new Array(4))[0]=new Array(4),e[0][0]=new Uint8Array([4,0,13,15,12,14,8]),e[0][1]=new Uint8Array([5,2,16,18,17,19,10]),e[0][2]=new Uint8Array([6,3,23,22,21,20,9]),e[0][3]=new Uint8Array([7,1,26,25,27,24,11]),e[1]=new Array(4),e[1][0]=new Uint8Array([0,6,21,23,20,22,16]),e[1][1]=new Uint8Array([1,4,0,2,1,3,18]),e[1][2]=new Uint8Array([2,5,7,6,5,4,17]),e[1][3]=new Uint8Array([3,7,10,9,11,8,19]),e[2]=new Array(4),e[2][0]=new Uint8Array([4,0,13,15,12,14,8]),e[2][1]=new Uint8Array([5,2,16,18,17,19,10]),e[2][2]=new Uint8Array([6,3,23,22,21,20,9]),e[2][3]=new Uint8Array([7,1,26,25,27,24,11]),e[3]=new Array(4),e[3][0]=new Uint8Array([0,6,21,23,20,22,16]),e[3][1]=new Uint8Array([1,4,0,2,1,3,18]),e[3][2]=new Uint8Array([2,5,7,6,5,4,17]),e[3][3]=new Uint8Array([3,7,10,9,11,8,19]),(t=new Array(4))[0]=new Array(4),t[0][0]=new Uint8Array([24,25,23,22,18]),t[0][1]=new Uint8Array([26,27,21,20,22]),t[0][2]=new Uint8Array([28,29,19,18,25]),t[0][3]=new Uint8Array([30,31,17,16,28]),t[1]=new Array(4),t[1][0]=new Uint8Array([3,2,12,13,8]),t[1][1]=new Uint8Array([1,0,14,15,13]),t[1][2]=new Uint8Array([7,6,8,9,3]),t[1][3]=new Uint8Array([5,4,10,11,7]),t[2]=new Array(4),t[2][0]=new Uint8Array([19,18,28,29,25]),t[2][1]=new Uint8Array([17,16,30,31,28]),t[2][2]=new Uint8Array([23,22,24,25,18]),t[2][3]=new Uint8Array([21,20,26,27,22]),t[3]=new Array(4),t[3][0]=new Uint8Array([8,9,7,6,3]),t[3][1]=new Uint8Array([10,11,5,4,7]),t[3][2]=new Uint8Array([12,13,3,2,8]),t[3][3]=new Uint8Array([14,15,1,0,13]),this.scheduleA=e,this.scheduleB=t},e.prototype.init_sbox=function(){var e;return(e=new Array(8))[0]=new Uint32Array([821772500,2678128395,1810681135,1059425402,505495343,2617265619,1610868032,3483355465,3218386727,2294005173,3791863952,2563806837,1852023008,365126098,3269944861,584384398,677919599,3229601881,4280515016,2002735330,1136869587,3744433750,2289869850,2731719981,2714362070,879511577,1639411079,575934255,717107937,2857637483,576097850,2731753936,1725645e3,2810460463,5111599,767152862,2543075244,1251459544,1383482551,3052681127,3089939183,3612463449,1878520045,1510570527,2189125840,2431448366,582008916,3163445557,1265446783,1354458274,3529918736,3202711853,3073581712,3912963487,3029263377,1275016285,4249207360,2905708351,3304509486,1442611557,3585198765,2712415662,2731849581,3248163920,2283946226,208555832,2766454743,1331405426,1447828783,3315356441,3108627284,2957404670,2981538698,3339933917,1669711173,286233437,1465092821,1782121619,3862771680,710211251,980974943,1651941557,430374111,2051154026,704238805,4128970897,3144820574,2857402727,948965521,3333752299,2227686284,718756367,2269778983,2731643755,718440111,2857816721,3616097120,1113355533,2478022182,410092745,1811985197,1944238868,2696854588,1415722873,1682284203,1060277122,1998114690,1503841958,82706478,2315155686,1068173648,845149890,2167947013,1768146376,1993038550,3566826697,3390574031,940016341,3355073782,2328040721,904371731,1205506512,4094660742,2816623006,825647681,85914773,2857843460,1249926541,1417871568,3287612,3211054559,3126306446,1975924523,1353700161,2814456437,2438597621,1800716203,722146342,2873936343,1151126914,4160483941,2877670899,458611604,2866078500,3483680063,770352098,2652916994,3367839148,3940505011,3585973912,3809620402,718646636,2504206814,2914927912,3631288169,2857486607,2860018678,575749918,2857478043,718488780,2069512688,3548183469,453416197,1106044049,3032691430,52586708,3378514636,3459808877,3211506028,1785789304,218356169,3571399134,3759170522,1194783844,1523787992,3007827094,1975193539,2555452411,1341901877,3045838698,3776907964,3217423946,2802510864,2889438986,1057244207,1636348243,3761863214,1462225785,2632663439,481089165,718503062,24497053,3332243209,3344655856,3655024856,3960371065,1195698900,2971415156,3710176158,2115785917,4027663609,3525578417,2524296189,2745972565,3564906415,1372086093,1452307862,2780501478,1476592880,3389271281,18495466,2378148571,901398090,891748256,3279637769,3157290713,2560960102,1447622437,4284372637,216884176,2086908623,1879786977,3588903153,2242455666,2938092967,3559082096,2810645491,758861177,1121993112,215018983,642190776,4169236812,1196255959,2081185372,3508738393,941322904,4124243163,2877523539,1848581667,2205260958,3180453958,2589345134,3694731276,550028657,2519456284,3789985535,2973870856,2093648313,443148163,46942275,2734146937,1117713533,1115362972,1523183689,3717140224,1551984063]),e[1]=new Uint32Array([522195092,4010518363,1776537470,960447360,4267822970,4005896314,1435016340,1929119313,2913464185,1310552629,3579470798,3724818106,2579771631,1594623892,417127293,2715217907,2696228731,1508390405,3994398868,3925858569,3695444102,4019471449,3129199795,3770928635,3520741761,990456497,4187484609,2783367035,21106139,3840405339,631373633,3783325702,532942976,396095098,3548038825,4267192484,2564721535,2011709262,2039648873,620404603,3776170075,2898526339,3612357925,4159332703,1645490516,223693667,1567101217,3362177881,1029951347,3470931136,3570957959,1550265121,119497089,972513919,907948164,3840628539,1613718692,3594177948,465323573,2659255085,654439692,2575596212,2699288441,3127702412,277098644,624404830,4100943870,2717858591,546110314,2403699828,3655377447,1321679412,4236791657,1045293279,4010672264,895050893,2319792268,494945126,1914543101,2777056443,3894764339,2219737618,311263384,4275257268,3458730721,669096869,3584475730,3835122877,3319158237,3949359204,2005142349,2713102337,2228954793,3769984788,569394103,3855636576,1425027204,108000370,2736431443,3671869269,3043122623,1750473702,2211081108,762237499,3972989403,2798899386,3061857628,2943854345,867476300,964413654,1591880597,1594774276,2179821409,552026980,3026064248,3726140315,2283577634,3110545105,2152310760,582474363,1582640421,1383256631,2043843868,3322775884,1217180674,463797851,2763038571,480777679,2718707717,2289164131,3118346187,214354409,200212307,3810608407,3025414197,2674075964,3997296425,1847405948,1342460550,510035443,4080271814,815934613,833030224,1620250387,1945732119,2703661145,3966000196,1388869545,3456054182,2687178561,2092620194,562037615,1356438536,3409922145,3261847397,1688467115,2150901366,631725691,3840332284,549916902,3455104640,394546491,837744717,2114462948,751520235,2221554606,2415360136,3999097078,2063029875,803036379,2702586305,821456707,3019566164,360699898,4018502092,3511869016,3677355358,2402471449,812317050,49299192,2570164949,3259169295,2816732080,3331213574,3101303564,2156015656,3705598920,3546263921,143268808,3200304480,1638124008,3165189453,3341807610,578956953,2193977524,3638120073,2333881532,807278310,658237817,2969561766,1641658566,11683945,3086995007,148645947,1138423386,4158756760,1981396783,2401016740,3699783584,380097457,2680394679,2803068651,3334260286,441530178,4016580796,1375954390,761952171,891809099,2183123478,157052462,3683840763,1592404427,341349109,2438483839,1417898363,644327628,2233032776,2353769706,2201510100,220455161,1815641738,182899273,2995019788,3627381533,3702638151,2890684138,1052606899,588164016,1681439879,4038439418,2405343923,4229449282,167996282,1336969661,1688053129,2739224926,1543734051,1046297529,1138201970,2121126012,115334942,1819067631,1902159161,1941945968,2206692869,1159982321]),e[2]=new Uint32Array([2381300288,637164959,3952098751,3893414151,1197506559,916448331,2350892612,2932787856,3199334847,4009478890,3905886544,1373570990,2450425862,4037870920,3778841987,2456817877,286293407,124026297,3001279700,1028597854,3115296800,4208886496,2691114635,2188540206,1430237888,1218109995,3572471700,308166588,570424558,2187009021,2455094765,307733056,1310360322,3135275007,1384269543,2388071438,863238079,2359263624,2801553128,3380786597,2831162807,1470087780,1728663345,4072488799,1090516929,532123132,2389430977,1132193179,2578464191,3051079243,1670234342,1434557849,2711078940,1241591150,3314043432,3435360113,3091448339,1812415473,2198440252,267246943,796911696,3619716990,38830015,1526438404,2806502096,374413614,2943401790,1489179520,1603809326,1920779204,168801282,260042626,2358705581,1563175598,2397674057,1356499128,2217211040,514611088,2037363785,2186468373,4022173083,2792511869,2913485016,1173701892,4200428547,3896427269,1334932762,2455136706,602925377,2835607854,1613172210,41346230,2499634548,2457437618,2188827595,41386358,4172255629,1313404830,2405527007,3801973774,2217704835,873260488,2528884354,2478092616,4012915883,2555359016,2006953883,2463913485,575479328,2218240648,2099895446,660001756,2341502190,3038761536,3888151779,3848713377,3286851934,1022894237,1620365795,3449594689,1551255054,15374395,3570825345,4249311020,4151111129,3181912732,310226346,1133119310,530038928,136043402,2476768958,3107506709,2544909567,1036173560,2367337196,1681395281,1758231547,3641649032,306774401,1575354324,3716085866,1990386196,3114533736,2455606671,1262092282,3124342505,2768229131,4210529083,1833535011,423410938,660763973,2187129978,1639812e3,3508421329,3467445492,310289298,272797111,2188552562,2456863912,310240523,677093832,1013118031,901835429,3892695601,1116285435,3036471170,1337354835,243122523,520626091,277223598,4244441197,4194248841,1766575121,594173102,316590669,742362309,3536858622,4176435350,3838792410,2501204839,1229605004,3115755532,1552908988,2312334149,979407927,3959474601,1148277331,176638793,3614686272,2083809052,40992502,1340822838,2731552767,3535757508,3560899520,1354035053,122129617,7215240,2732932949,3118912700,2718203926,2539075635,3609230695,3725561661,1928887091,2882293555,1988674909,2063640240,2491088897,1459647954,4189817080,2302804382,1113892351,2237858528,1927010603,4002880361,1856122846,1594404395,2944033133,3855189863,3474975698,1643104450,4054590833,3431086530,1730235576,2984608721,3084664418,2131803598,4178205752,267404349,1617849798,1616132681,1462223176,736725533,2327058232,551665188,2945899023,1749386277,2575514597,1611482493,674206544,2201269090,3642560800,728599968,1680547377,2620414464,1388111496,453204106,4156223445,1094905244,2754698257,2201108165,3757000246,2704524545,3922940700,3996465027]),e[3]=new Uint32Array([2645754912,532081118,2814278639,3530793624,1246723035,1689095255,2236679235,4194438865,2116582143,3859789411,157234593,2045505824,4245003587,1687664561,4083425123,605965023,672431967,1336064205,3376611392,214114848,4258466608,3232053071,489488601,605322005,3998028058,264917351,1912574028,756637694,436560991,202637054,135989450,85393697,2152923392,3896401662,2895836408,2145855233,3535335007,115294817,3147733898,1922296357,3464822751,4117858305,1037454084,2725193275,2127856640,1417604070,1148013728,1827919605,642362335,2929772533,909348033,1346338451,3547799649,297154785,1917849091,4161712827,2883604526,3968694238,1469521537,3780077382,3375584256,1763717519,136166297,4290970789,1295325189,2134727907,2798151366,1566297257,3672928234,2677174161,2672173615,965822077,2780786062,289653839,1133871874,3491843819,35685304,1068898316,418943774,672553190,642281022,2346158704,1954014401,3037126780,4079815205,2030668546,3840588673,672283427,1776201016,359975446,3750173538,555499703,2769985273,1324923,69110472,152125443,3176785106,3822147285,1340634837,798073664,1434183902,15393959,216384236,1303690150,3881221631,3711134124,3960975413,106373927,2578434224,1455997841,1801814300,1578393881,1854262133,3188178946,3258078583,2302670060,1539295533,3505142565,3078625975,2372746020,549938159,3278284284,2620926080,181285381,2865321098,3970029511,68876850,488006234,1728155692,2608167508,836007927,2435231793,919367643,3339422534,3655756360,1457871481,40520939,1380155135,797931188,234455205,2255801827,3990488299,397000196,739833055,3077865373,2871719860,4022553888,772369276,390177364,3853951029,557662966,740064294,1640166671,1699928825,3535942136,622006121,3625353122,68743880,1742502,219489963,1664179233,1577743084,1236991741,410585305,2366487942,823226535,1050371084,3426619607,3586839478,212779912,4147118561,1819446015,1911218849,530248558,3486241071,3252585495,2886188651,3410272728,2342195030,20547779,2982490058,3032363469,3631753222,312714466,1870521650,1493008054,3491686656,615382978,4103671749,2534517445,1932181,2196105170,278426614,6369430,3274544417,2913018367,697336853,2143000447,2946413531,701099306,1558357093,2805003052,3500818408,2321334417,3567135975,216290473,3591032198,23009561,1996984579,3735042806,2024298078,3739440863,569400510,2339758983,3016033873,3097871343,3639523026,3844324983,3256173865,795471839,2951117563,4101031090,4091603803,3603732598,971261452,534414648,428311343,3389027175,2844869880,694888862,1227866773,2456207019,3043454569,2614353370,3749578031,3676663836,459166190,4132644070,1794958188,51825668,2252611902,3084671440,2036672799,3436641603,1099053433,2469121526,3059204941,1323291266,2061838604,1018778475,2233344254,2553501054,334295216,3556750194,1065731521,183467730]),e[4]=new Uint32Array([2127105028,745436345,2601412319,2788391185,3093987327,500390133,1155374404,389092991,150729210,3891597772,3523549952,1935325696,716645080,946045387,2901812282,1774124410,3869435775,4039581901,3293136918,3438657920,948246080,363898952,3867875531,1286266623,1598556673,68334250,630723836,1104211938,1312863373,613332731,2377784574,1101634306,441780740,3129959883,1917973735,2510624549,3238456535,2544211978,3308894634,1299840618,4076074851,1756332096,3977027158,297047435,3790297736,2265573040,3621810518,1311375015,1667687725,47300608,3299642885,2474112369,201668394,1468347890,576830978,3594690761,3742605952,1958042578,1747032512,3558991340,1408974056,3366841779,682131401,1033214337,1545599232,4265137049,206503691,103024618,2855227313,1337551222,2428998917,2963842932,4015366655,3852247746,2796956967,3865723491,3747938335,247794022,3755824572,702416469,2434691994,397379957,851939612,2314769512,218229120,1380406772,62274761,214451378,3170103466,2276210409,3845813286,28563499,446592073,1693330814,3453727194,29968656,3093872512,220656637,2470637031,77972100,1667708854,1358280214,4064765667,2395616961,325977563,4277240721,4220025399,3605526484,3355147721,811859167,3069544926,3962126810,652502677,3075892249,4132761541,3498924215,1217549313,3250244479,3858715919,3053989961,1538642152,2279026266,2875879137,574252750,3324769229,2651358713,1758150215,141295887,2719868960,3515574750,4093007735,4194485238,1082055363,3417560400,395511885,2966884026,179534037,3646028556,3738688086,1092926436,2496269142,257381841,3772900718,1636087230,1477059743,2499234752,3811018894,2675660129,3285975680,90732309,1684827095,1150307763,1723134115,3237045386,1769919919,1240018934,815675215,750138730,2239792499,1234303040,1995484674,138143821,675421338,1145607174,1936608440,3238603024,2345230278,2105974004,323969391,779555213,3004902369,2861610098,1017501463,2098600890,2628620304,2940611490,2682542546,1171473753,3656571411,3687208071,4091869518,393037935,159126506,1662887367,1147106178,391545844,3452332695,1891500680,3016609650,1851642611,546529401,1167818917,3194020571,2848076033,3953471836,575554290,475796850,4134673196,450035699,2351251534,844027695,1080539133,86184846,1554234488,3692025454,1972511363,2018339607,1491841390,1141460869,1061690759,4244549243,2008416118,2351104703,2868147542,1598468138,722020353,1027143159,212344630,1387219594,1725294528,3745187956,2500153616,458938280,4129215917,1828119673,544571780,3503225445,2297937496,1241802790,267843827,2694610800,1397140384,1558801448,3782667683,1806446719,929573330,2234912681,400817706,616011623,4121520928,3603768725,1761550015,1968522284,4053731006,4192232858,4005120285,872482584,3140537016,3894607381,2287405443,1963876937,3663887957,1584857e3,2975024454,1833426440,4025083860]),e[5]=new Uint32Array([4143615901,749497569,1285769319,3795025788,2514159847,23610292,3974978748,844452780,3214870880,3751928557,2213566365,1676510905,448177848,3730751033,4086298418,2307502392,871450977,3222878141,4110862042,3831651966,2735270553,1310974780,2043402188,1218528103,2736035353,4274605013,2702448458,3936360550,2693061421,162023535,2827510090,687910808,23484817,3784910947,3371371616,779677500,3503626546,3473927188,4157212626,3500679282,4248902014,2466621104,3899384794,1958663117,925738300,1283408968,3669349440,1840910019,137959847,2679828185,1239142320,1315376211,1547541505,1690155329,739140458,3128809933,3933172616,3876308834,905091803,1548541325,4040461708,3095483362,144808038,451078856,676114313,2861728291,2469707347,993665471,373509091,2599041286,4025009006,4170239449,2149739950,3275793571,3749616649,2794760199,1534877388,572371878,2590613551,1753320020,3467782511,1405125690,4270405205,633333386,3026356924,3475123903,632057672,2846462855,1404951397,3882875879,3915906424,195638627,2385783745,3902872553,1233155085,3355999740,2380578713,2702246304,2144565621,3663341248,3894384975,2502479241,4248018925,3094885567,1594115437,572884632,3385116731,767645374,1331858858,1475698373,3793881790,3532746431,1321687957,619889600,1121017241,3440213920,2070816767,2833025776,1933951238,4095615791,890643334,3874130214,859025556,360630002,925594799,1764062180,3920222280,4078305929,979562269,2810700344,4087740022,1949714515,546639971,1165388173,3069891591,1495988560,922170659,1291546247,2107952832,1813327274,3406010024,3306028637,4241950635,153207855,2313154747,1608695416,1150242611,1967526857,721801357,1220138373,3691287617,3356069787,2112743302,3281662835,1111556101,1778980689,250857638,2298507990,673216130,2846488510,3207751581,3562756981,3008625920,3417367384,2198807050,529510932,3547516680,3426503187,2364944742,102533054,2294910856,1617093527,1204784762,3066581635,1019391227,1069574518,1317995090,1691889997,3661132003,510022745,3238594800,1362108837,1817929911,2184153760,805817662,1953603311,3699844737,120799444,2118332377,207536705,2282301548,4120041617,145305846,2508124933,3086745533,3261524335,1877257368,2977164480,3160454186,2503252186,4221677074,759945014,254147243,2767453419,3801518371,629083197,2471014217,907280572,3900796746,940896768,2751021123,2625262786,3161476951,3661752313,3260732218,1425318020,2977912069,1496677566,3988592072,2140652971,3126511541,3069632175,977771578,1392695845,1698528874,1411812681,1369733098,1343739227,3620887944,1142123638,67414216,3102056737,3088749194,1626167401,2546293654,3941374235,697522451,33404913,143560186,2595682037,994885535,1247667115,3859094837,2699155541,3547024625,4114935275,2968073508,3199963069,2732024527,1237921620,951448369,1898488916,1211705605,2790989240,2233243581,3598044975]),e[6]=new Uint32Array([2246066201,858518887,1714274303,3485882003,713916271,2879113490,3730835617,539548191,36158695,1298409750,419087104,1358007170,749914897,2989680476,1261868530,2995193822,2690628854,3443622377,3780124940,3796824509,2976433025,4259637129,1551479e3,512490819,1296650241,951993153,2436689437,2460458047,144139966,3136204276,310820559,3068840729,643875328,1969602020,1680088954,2185813161,3283332454,672358534,198762408,896343282,276269502,3014846926,84060815,197145886,376173866,3943890818,3813173521,3545068822,1316698879,1598252827,2633424951,1233235075,859989710,2358460855,3503838400,3409603720,1203513385,1193654839,2792018475,2060853022,207403770,1144516871,3068631394,1121114134,177607304,3785736302,326409831,1929119770,2983279095,4183308101,3474579288,3200513878,3228482096,119610148,1170376745,3378393471,3163473169,951863017,3337026068,3135789130,2907618374,1183797387,2015970143,4045674555,2182986399,2952138740,3928772205,384012900,2454997643,10178499,2879818989,2596892536,111523738,2995089006,451689641,3196290696,235406569,1441906262,3890558523,3013735005,4158569349,1644036924,376726067,1006849064,3664579700,2041234796,1021632941,1374734338,2566452058,371631263,4007144233,490221539,206551450,3140638584,1053219195,1853335209,3412429660,3562156231,735133835,1623211703,3104214392,2738312436,4096837757,3366392578,3110964274,3956598718,3196820781,2038037254,3877786376,2339753847,300912036,3766732888,2372630639,1516443558,4200396704,1574567987,4069441456,4122592016,2699739776,146372218,2748961456,2043888151,35287437,2596680554,655490400,1132482787,110692520,1031794116,2188192751,1324057718,1217253157,919197030,686247489,3261139658,1028237775,3135486431,3059715558,2460921700,986174950,2661811465,4062904701,2752986992,3709736643,367056889,1353824391,731860949,1650113154,1778481506,784341916,357075625,3608602432,1074092588,2480052770,3811426202,92751289,877911070,3600361838,1231880047,480201094,3756190983,3094495953,434011822,87971354,363687820,1717726236,1901380172,3926403882,2481662265,400339184,1490350766,2661455099,1389319756,2558787174,784598401,1983468483,30828846,3550527752,2716276238,3841122214,1765724805,1955612312,1277890269,1333098070,1564029816,2704417615,1026694237,3287671188,1260819201,3349086767,1016692350,1582273796,1073413053,1995943182,694588404,1025494639,3323872702,3551898420,4146854327,453260480,1316140391,1435673405,3038941953,3486689407,1622062951,403978347,817677117,950059133,4246079218,3278066075,1486738320,1417279718,481875527,2549965225,3933690356,760697757,1452955855,3897451437,1177426808,1702951038,4085348628,2447005172,1084371187,3516436277,3068336338,1073369276,1027665953,3284188590,1230553676,1368340146,2226246512,267243139,2274220762,4070734279,2497715176,2423353163,2504755875]),e[7]=new Uint32Array([3793104909,3151888380,2817252029,895778965,2005530807,3871412763,237245952,86829237,296341424,3851759377,3974600970,2475086196,709006108,1994621201,2972577594,937287164,3734691505,168608556,3189338153,2225080640,3139713551,3033610191,3025041904,77524477,185966941,1208824168,2344345178,1721625922,3354191921,1066374631,1927223579,1971335949,2483503697,1551748602,2881383779,2856329572,3003241482,48746954,1398218158,2050065058,313056748,4255789917,393167848,1912293076,940740642,3465845460,3091687853,2522601570,2197016661,1727764327,364383054,492521376,1291706479,3264136376,1474851438,1685747964,2575719748,1619776915,1814040067,970743798,1561002147,2925768690,2123093554,1880132620,3151188041,697884420,2550985770,2607674513,2659114323,110200136,1489731079,997519150,1378877361,3527870668,478029773,2766872923,1022481122,431258168,1112503832,897933369,2635587303,669726182,3383752315,918222264,163866573,3246985393,3776823163,114105080,1903216136,761148244,3571337562,1690750982,3166750252,1037045171,1888456500,2010454850,642736655,616092351,365016990,1185228132,4174898510,1043824992,2023083429,2241598885,3863320456,3279669087,3674716684,108438443,2132974366,830746235,606445527,4173263986,2204105912,1844756978,2532684181,4245352700,2969441100,3796921661,1335562986,4061524517,2720232303,2679424040,634407289,885462008,3294724487,3933892248,2094100220,339117932,4048830727,3202280980,1458155303,2689246273,1022871705,2464987878,3714515309,353796843,2822958815,4256850100,4052777845,551748367,618185374,3778635579,4020649912,1904685140,3069366075,2670879810,3407193292,2954511620,4058283405,2219449317,3135758300,1120655984,3447565834,1474845562,3577699062,550456716,3466908712,2043752612,881257467,869518812,2005220179,938474677,3305539448,3850417126,1315485940,3318264702,226533026,965733244,321539988,1136104718,804158748,573969341,3708209826,937399083,3290727049,2901666755,1461057207,4013193437,4066861423,3242773476,2421326174,1581322155,3028952165,786071460,3900391652,3918438532,1485433313,4023619836,3708277595,3678951060,953673138,1467089153,1930354364,1533292819,2492563023,1346121658,1685000834,1965281866,3765933717,4190206607,2052792609,3515332758,690371149,3125873887,2180283551,2903598061,3933952357,436236910,289419410,14314871,1242357089,2904507907,1616633776,2666382180,585885352,3471299210,2699507360,1432659641,277164553,3354103607,770115018,2303809295,3741942315,3177781868,2853364978,2269453327,3774259834,987383833,1290892879,225909803,1741533526,890078084,1496906255,1111072499,916028167,243534141,1252605537,2204162171,531204876,290011180,3916834213,102027703,237315147,209093447,1486785922,220223953,2758195998,4175039106,82940208,3127791296,2569425252,518464269,1353887104,3941492737,2377294467,3935040926]),this.sBox=e},e}(),n=new i,e=function(){function e(e){var t;if(this.masking=new Array(16),this.rotate=new Array(16),this.reset(),e.sigBytes!==(t=this.keySize))throw new Error("key must be "+t+" bytes");this.keySchedule(e)}return e.blockSize=8,e.prototype.blockSize=e.blockSize,e.keySize=16,e.prototype.keySize=e.keySize,e.prototype.reset=function(){var e,t,r;for(r=[],e=t=0;t<16;e=++t)this.masking[e]=0,r.push(this.rotate[e]=0);return r},e.prototype.encryptBlock=function(e,t){var r,n;return null==t&&(t=0),r=o(e),n=this._encrypt_ui8a(r),s(n,e)},e.prototype.decryptBlock=function(e,t){var r,n;return null==t&&(t=0),r=o(e),n=this._decrypt_ui8a(r),s(n,e)},e.prototype._encrypt_ui8a=function(e){var t,r,n,i,o,s,a;for(i=e.length,t=new Uint8Array(i),r=a=0;a<i;r=a+=8)n=e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3],s=o=e[r+4]<<24|e[r+5]<<16|e[r+6]<<8|e[r+7],o=n^this.f1(o,this.masking[0],this.rotate[0]),n=s,s=o,o=n^this.f2(o,this.masking[1],this.rotate[1]),n=s,s=o,o=n^this.f3(o,this.masking[2],this.rotate[2]),n=s,s=o,o=n^this.f1(o,this.masking[3],this.rotate[3]),n=s,s=o,o=n^this.f2(o,this.masking[4],this.rotate[4]),n=s,s=o,o=n^this.f3(o,this.masking[5],this.rotate[5]),n=s,s=o,o=n^this.f1(o,this.masking[6],this.rotate[6]),n=s,s=o,o=n^this.f2(o,this.masking[7],this.rotate[7]),n=s,s=o,o=n^this.f3(o,this.masking[8],this.rotate[8]),n=s,s=o,o=n^this.f1(o,this.masking[9],this.rotate[9]),n=s,s=o,o=n^this.f2(o,this.masking[10],this.rotate[10]),n=s,s=o,o=n^this.f3(o,this.masking[11],this.rotate[11]),n=s,s=o,o=n^this.f1(o,this.masking[12],this.rotate[12]),n=s,s=o,o=n^this.f2(o,this.masking[13],this.rotate[13]),n=s,s=o,o=n^this.f3(o,this.masking[14],this.rotate[14]),n=s,s=o,o=n^this.f1(o,this.masking[15],this.rotate[15]),n=s,t[r]=o>>>24&255,t[r+1]=o>>>16&255,t[r+2]=o>>>8&255,t[r+3]=255&o,t[r+4]=n>>>24&255,t[r+5]=n>>>16&255,t[r+6]=n>>>8&255,t[r+7]=255&n;return t},e.prototype._decrypt_ui8a=function(e){var t,r,n,i,o,s,a;for(i=e.length,t=new Uint8Array(i),r=a=0;a<i;r=a+=8)n=e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3],s=o=e[r+4]<<24|e[r+5]<<16|e[r+6]<<8|e[r+7],o=n^this.f1(o,this.masking[15],this.rotate[15]),n=s,s=o,o=n^this.f3(o,this.masking[14],this.rotate[14]),n=s,s=o,o=n^this.f2(o,this.masking[13],this.rotate[13]),n=s,s=o,o=n^this.f1(o,this.masking[12],this.rotate[12]),n=s,s=o,o=n^this.f3(o,this.masking[11],this.rotate[11]),n=s,s=o,o=n^this.f2(o,this.masking[10],this.rotate[10]),n=s,s=o,o=n^this.f1(o,this.masking[9],this.rotate[9]),n=s,s=o,o=n^this.f3(o,this.masking[8],this.rotate[8]),n=s,s=o,o=n^this.f2(o,this.masking[7],this.rotate[7]),n=s,s=o,o=n^this.f1(o,this.masking[6],this.rotate[6]),n=s,s=o,o=n^this.f3(o,this.masking[5],this.rotate[5]),n=s,s=o,o=n^this.f2(o,this.masking[4],this.rotate[4]),n=s,s=o,o=n^this.f1(o,this.masking[3],this.rotate[3]),n=s,s=o,o=n^this.f3(o,this.masking[2],this.rotate[2]),n=s,s=o,o=n^this.f2(o,this.masking[1],this.rotate[1]),n=s,s=o,o=n^this.f1(o,this.masking[0],this.rotate[0]),n=s,t[r]=o>>>24&255,t[r+1]=o>>>16&255,t[r+2]=o>>>8&255,t[r+3]=255&o,t[r+4]=n>>>24&255,t[r+5]=n>>16&255,t[r+6]=n>>8&255,t[r+7]=255&n;return t},e.prototype.keySchedule=function(e){var t,r,i,o,s,a,u,f,c,l,h,p,d,_,y,g,b;for(c=function(){var t,r,n,i;for(i=[],t=0,r=(n=e.words).length;t<r;t++)u=n[t],i.push(u);return i}(),s=new Array(32),h=[6,7,4,5],a=0,p=0;p<2;++p)for(f=d=0;d<4;f=++d){for(o=_=0;_<4;o=++_)l=c[(t=n.scheduleA[f][o])[1]],l^=n.sBox[4][c[t[2]>>>2]>>>24-8*(3&t[2])&255],l^=n.sBox[5][c[t[3]>>>2]>>>24-8*(3&t[3])&255],l^=n.sBox[6][c[t[4]>>>2]>>>24-8*(3&t[4])&255],l^=n.sBox[7][c[t[5]>>>2]>>>24-8*(3&t[5])&255],l^=n.sBox[h[o]][c[t[6]>>>2]>>>24-8*(3&t[6])&255],c[t[0]]=l;for(o=y=0;y<4;o=++y)r=n.scheduleB[f][o],l=n.sBox[4][c[r[0]>>>2]>>>24-8*(3&r[0])&255],l^=n.sBox[5][c[r[1]>>>2]>>>24-8*(3&r[1])&255],l^=n.sBox[6][c[r[2]>>>2]>>>24-8*(3&r[2])&255],l^=n.sBox[7][c[r[3]>>>2]>>>24-8*(3&r[3])&255],l^=n.sBox[4+o][c[r[4]>>>2]>>>24-8*(3&r[4])&255],s[a]=l,a++}for(b=[],i=g=0;g<16;i=++g)this.masking[i]=s[i],b.push(this.rotate[i]=31&s[16+i]);return b},e.prototype.f1=function(e,t,r){var i,o;return i=(o=t+e)<<r|o>>>32-r,(n.sBox[0][i>>>24]^n.sBox[1][i>>>16&255])-n.sBox[2][i>>>8&255]+n.sBox[3][255&i]},e.prototype.f2=function(e,t,r){var i,o;return i=(o=t^e)<<r|o>>>32-r,n.sBox[0][i>>>24]-n.sBox[1][i>>>16&255]+n.sBox[2][i>>>8&255]^n.sBox[3][255&i]},e.prototype.f3=function(e,t,r){var i,o;return i=(o=t-e)<<r|o>>>32-r,(n.sBox[0][i>>>24]+n.sBox[1][i>>>16&255]^n.sBox[2][i>>>8&255])-n.sBox[3][255&i]},e}(),t.CAST5=e}).call(this)},function(e,t,r){(function(){var e,n,i,o;n=r(82).WordArray,r(50).bufeq_secure,e=n.from_hex("A6A6A6A6A6A6A6A6"),o=function(e){return e.split(e.words.length>>1)},t.wrap=function(t){var r,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w,k;if(d=t.plaintext,p=t.key,c=t.cipher,l=(k=i({input:d,key:p,cipher:c}))[0],u=k[1],o=k[2],null!=l)throw l;for(r=e,f=u,y=new n([0,0]),g=0;g<6;++g)for(h=b=0,v=f.length;b<v;h=++b)_=f[h],y.words[1]++,s=r.clone().concat(_),o.encryptBlock(s.words),r=s.slice(0,2),f[h]=s.slice(2,4),r.xor(y,{});for(a=r,m=0,w=f.length;m<w;m++)_=f[m],a.concat(_);return a.to_buffer()},i=function(e){var t,r,i,s,a,u,f,c,l;return c=e.input,l=e.key,u=e.cipher,i=o(n.from_buffer(c)),r=n.from_buffer(l),t=new(0,u.klass)(r),f=null,(s=u.key_size)!==(a=l.length)&&(f=new Error("Bad key, needed "+s+" bytes, but got "+a)),[f,i,t]},t.unwrap=function(t){var r,o,s,a,u,f,c,l,h,p,d,_,y,g,b,m,v,w;if(l=t.ciphertext,d=t.key,c=t.cipher,h=(w=i({input:l,key:d,cipher:c}))[0],a=w[1],o=w[2],w[3],null!=h)return[h,null];for(r=a[0],f=a.slice(1),y=new n([0,6*f.length]),g=0;g<6;++g)for(p=b=f.length-1;b>=0;p=b+=-1)_=f[p],r.xor(y,{}),s=r.clone().concat(_),o.decryptBlock(s.words),r=s.slice(0,2),f[p]=s.slice(2,4),y.words[1]--;if(r.equal(e)){for(u=new n([]),m=0,v=f.length;m<v;m++)_=f[m],u.concat(_);return[null,u.to_buffer()]}return[new Error("integrity check failure; got bad IV in decryption"),null]}}).call(this)},function(e,t,r){(function(){var e,n,i,o,s,a={}.hasOwnProperty,u=function(e,t){for(var r in t)a.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};e=r(36),i=function(){function t(t){this.generated=t.generated,this.expire_in=t.expire_in,void 0===this.expire_in&&(this.expire_in=e.default_key_expire_in)}return t.prototype.expires_earlier_than=function(e){return!(e.expire_in||!this.expire_in)||!(this.expire_in&&!e.expire_in)&&(!(!this.expire_in&&!e.expire_in)&&this.generated+this.expire_in<e.generated+e.expire_in)},t.prototype.copy=function(){return new t({generated:this.generated,expire_in:this.expire_in})},t}(),s=function(e){function t(e){var r,n,i,o,s;n=e.key,r=e.flags,s=e._pgp,o=e._keybase,this.desc=e.desc,i=e.lifespan,this.primary=e.primary,t.__super__.constructor.call(this,{key:n,lifespan:i,flags:r,_pgp:s,_keybase:o})}return u(t,e),t}(n=function(){function e(e){this.key=e.key,this.lifespan=e.lifespan,this._pgp=e._pgp,this._keybase=e._keybase,this.flags=e.flags}return e.prototype.ekid=function(){return this.key.ekid()},e.prototype.overwrite_with_omitting_revokes=function(e){if(!e._pgp.is_revoked())return this._pgp.is_revoked()||this.lifespan.expires_earlier_than(e.lifespan)?(this.key=e.key,this.lifespan=e.lifespan,this._pgp=e._pgp,this._keybase=e._keybase,this.flags=e.flags,e):void 0},e}()),o=function(e){function t(e){var r,n,i,o,s;n=e.key,i=e.lifespan,r=e.flags,s=e._pgp,o=e._keybase,t.__super__.constructor.call(this,{key:n,lifespan:i,flags:r,_pgp:s,_keybase:o})}return u(t,e),t}(n),t.Lifespan=i,t.Subkey=s,t.Primary=o}).call(this)},function(e){e.exports=JSON.parse('{"_args":[["kbpgp@2.1.6","/builds/personal/chef.hellinga.it/CyberChef"]],"_from":"kbpgp@2.1.6","_id":"kbpgp@2.1.6","_inBundle":false,"_integrity":"sha512-GNJibWhvJhyiCvD5W7u6U36wmzQzvQTu86n3j05Ia+o75xvz3GDKzDXQpwkaEzTO/V4vfAHgQ4zntcrChhb9mQ==","_location":"/kbpgp","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"kbpgp@2.1.6","name":"kbpgp","escapedName":"kbpgp","rawSpec":"2.1.6","saveSpec":null,"fetchSpec":"2.1.6"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/kbpgp/-/kbpgp-2.1.6.tgz","_spec":"2.1.6","_where":"/builds/personal/chef.hellinga.it/CyberChef","author":{"name":"Maxwell Krohn"},"bugs":{"url":"https://github.com/keybase/kbpgp/issues"},"dependencies":{"bn":"^1.0.5","bzip-deflate":"^1.0.0","deep-equal":"^1.1.0","iced-error":"0.0.13","iced-lock":"^1.0.2","iced-runtime":"^1.0.4","keybase-ecurve":"^1.0.1","keybase-nacl":"^1.1.2","minimist":"^1.2.0","pgp-utils":"0.0.35","purepack":"^1.0.5","triplesec":"^4.0.3","tweetnacl":"^0.13.1"},"description":"Keybase\'s PGP Implementation","devDependencies":{"browserify":"^15.0.0","colors":"0.6.2","iced-coffee-script":"108.0.11","iced-test":"0.0.30","icsify":"^0.8.0","uglify-js":"^2.8.29"},"directories":{"lib":"lib/"},"homepage":"http://github.com/keybase/kbpgp","keywords":["crypto","pgp","keybase"],"license":"BSD-3-Clause","main":"./lib/main.js","name":"kbpgp","repository":{"type":"git","url":"git://github.com/keybase/kbpgp.git"},"scripts":{"test":"make test"},"version":"2.1.6"}')},function(e,t,r){(function(){var e,n,i,o,s,a,u,f,c,l,h,p={}.hasOwnProperty,d=function(e,t){for(var r in t)p.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};r(115),(f=r(50)).bufeq_secure,f.ASP,r(62).make_esc,u=r(36),i=u.openpgp,u.kb,c=r(137),n=c.BaseKeyPair,e=c.BaseKey,(l=r(94)).SRF,l.MRF,(h=r(355)).eme_pkcs1_encode,h.eme_pkcs1_decode,a=function(t){function r(e){this.raw=e}return d(r,t),r.type=i.public_key_algorithms.ELGAMAL_SIGN_AND_ENCRYPT,r.prototype.type=r.type,r.ORDER=[],r.prototype.ORDER=r.ORDER,r.alloc=function(t){return e.alloc(r,t)},r.prototype.encrypt=function(e,t){return t(null)},r}(e),s=function(t){function r(e){this.raw=e}return d(r,t),r.ORDER=[],r.prototype.ORDER=r.ORDER,r.prototype.serialize=function(){return null},r.alloc=function(t,n){return e.alloc(r,t,{pub:n})},r.prototype.decrypt=function(e,t){return t(null)},r}(e),o=function(e){function t(e){var r,n;n=e.pub,r=e.priv,t.__super__.constructor.call(this,{pub:n,priv:r})}return d(t,e),t.Pub=a,t.prototype.Pub=a,t.Priv=s,t.prototype.Priv=s,t.type=i.public_key_algorithms.ELGAMAL_SIGN_AND_ENCRYPT,t.prototype.type=t.type,t.prototype.fulfills_flags=function(e){return!1},t.prototype.is_toxic=function(){return!0},t.prototype.can_sign=function(){return!1},t.prototype.can_decrypt=function(){return!1},t.prototype.err=function(){return new Error("refusing to use ElGamal Sign+Encrypt")},t.parse=function(e){return n.parse(t,e)},t.prototype.pad_and_encrypt=function(e,t){return t(this.err(),null)},t.prototype.decrypt_and_unpad=function(e,t,r){return r(this.err(),null)},t.parse_output=function(e){return null},t.prototype.export_output=function(e){return null},t}(n),t.ElGamalSignEncrypt=t.Pair=o}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l;r(82),n=r(36).openpgp,l=r(95),a=l.alloc,o=l.SHA256,f=l.streamers,i=function(){function t(){this.hash=o,this.streamer=f.SHA256()}return t.prototype._count=function(e,t){return 16+(15&e)<<(e>>4)+t},t.prototype.set_hash_algorithm=function(e){return null!=(this.hash=a(e))?this.streamer=f[this.hash.algname]():(console.warn("No such hash: "+e+"; defaulting to SHA-256"),this.hash=o,this.streamer=f.SHA256())},t.prototype.read=function(e){var t;switch(this.type=e.read_uint8(),this.type){case n.s2k.plain:this.set_hash_algorithm(e.read_uint8());break;case n.s2k.salt:this.set_hash_algorithm(e.read_uint8()),this.salt=e.read_buffer(8);break;case n.s2k.salt_iter:this.set_hash_algorithm(e.read_uint8()),this.salt=e.read_buffer(8),this.EXPBIAS=6,t=e.read_uint8(),this.count=this._count(t,this.EXPBIAS);break;case n.s2k.gnu:this.read_gnu_extensions(e);break;default:throw new Error("unknown s2k type! "+this.type)}return this},t.prototype.read_gnu_extensions=function(e){var t;if(e.read_uint8(),"GNU"!==e.read_buffer(3).toString("utf8"))throw new Error("Malformed GNU-extension: "+ext);switch(t=e.read_uint8()+1e3){case 1001:return this.type=n.s2k.gnu_dummy;default:throw new Error("unknown s2k gnu protection mode: "+t)}},t.prototype.write=function(e,t,r,n){return this.type=3,this.salt=t,this.count=this._count(r,6),this.s2kLength=10,this.produce_key(e,n)},t.prototype.is_dummy=function(){return this.type===n.s2k.gnu_dummy},t.prototype.produce_key=function(t,r){var i,o,s,a;return null==r&&(r=16),function(){switch(this.type){case n.s2k.plain:return this.hash(t);case n.s2k.salt:return this.hash(e.concat([this.salt,t]));case n.s2k.salt_iter:return a=e.concat([this.salt,t]),i=u({alg:this.hash.algname,seed:a,count:this.count}),null==r||24!==r&&32!==r?i:(s=e.from([0]),o=u({alg:this.hash.algname,seed:a,count:this.count,prefix:s}),e.concat([i,o]));default:return null}}.call(this).slice(0,r)},t}(),c={},u=function(t){var r,n,i,o,s,a,u,l,h,p,d,_;if(r=t.alg,h=t.seed,i=t.count,a=t.prefix,o=r+"-"+h.toString("base64")+"-"+i,null!=a&&(o+="-"+a.toString("base64")),null!=(_=c[o]))return _;for(p=f[r](),null!=a&&p.update(a),n=e.concat(function(){var e,t;for(t=[],e=0;e<4096;++e)t.push(h);return t}()),d=0;d+n.length<=i;)p.update(n),d+=n.length;return u=i-d,s=Math.ceil(u/h.length),l=p(e.concat(function(){var e,t;for(t=[],e=0;0<=s?e<s:e>s;0<=s?++e:--e)t.push(h);return t}()).slice(0,u)),c[o]=l,l},s=function(){function e(){this.s2k_convention=null,this.s2k=null,this.iv=null,this.cipher=null,this.payload=null}return e.prototype.is_dummy=function(){return null!=this.s2k&&this.s2k.is_dummy()},e.prototype.has_private=function(){return!this.is_dummy()},e.prototype.is_locked=function(){return this.s2k_convention!==n.s2k_convention.none&&!this.is_dummy()},e}(),t.S2K=i,t.SecretKeyMaterial=s}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c,l,h,p,d,_,y,g={}.hasOwnProperty,b=function(e,t){for(var r in t)g.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};h=r(34),f=r(82).WordArray,u=r(200).SlicerBuffer,y=r(82),n=y.ciphers.AES,i=r(156).util.ASP,p=r(62).make_esc,d=function(t,r){return e.concat([t,t.slice(t.length-r)])},o=function(){function t(e){var t,r;this.block_cipher_class=e.block_cipher_class,r=e.key,this.cipher=e.cipher,this.resync=e.resync,t=e.asp,this.block_cipher_class||(this.block_cipher_class=n),this.cipher||(this.cipher=new this.block_cipher_class(f.from_buffer(r))),this.block_size=this.cipher.blockSize,this.out_bufs=[],this.asp=i.make(t)}return t.prototype.compact=function(){var t;return t=e.concat(this.out_bufs),this.out_bufs=[t],t},t}(),a=function(t){function r(e){var t,n,i,o,s,a;n=e.block_cipher_class,o=e.key,i=e.cipher,s=e.prefixrandom,a=e.resync,t=e.asp,r.__super__.constructor.call(this,{block_cipher_class:n,key:o,cipher:i,resync:a,asp:t}),this._init(s)}return b(r,t),r.prototype._enc=function(){return this.FRE=f.from_buffer(this.FR),this.cipher.encryptBlock(this.FRE.words,0)},r.prototype._emit_sb=function(t){var r,n,i;return r=(n=this.block_size-t.rem())>0?(i=e.from(function(){var e,t;for(t=[],e=0;0<=n?e<n:e>n;0<=n?++e:--e)t.push(0);return t}()),e.concat([t.consume_rest_to_buffer(),i])):t.read_buffer(this.block_size),this._emit_buf(r)},r.prototype._emit_buf=function(t){var r;return(r=f.from_buffer(t.slice(0,this.block_size))).xor(this.FRE,{n_words:Math.min(r.words.length,this.FRE.words.length)}),t=r.to_buffer(),this.out_bufs.push(t),this.FR=e.from(t)},r.prototype._init=function(t){var r,n,i,o;return this.FR=e.from(function(){var e,t,r;for(r=[],i=e=0,t=this.block_size;0<=t?e<t:e>t;i=0<=t?++e:--e)r.push(0);return r}.call(this)),t=d(t,2),this._enc(),this._emit_buf(t),this._enc(),r=this.FRE.to_buffer(),n=e.from(function(){var e,n;for(n=[],i=e=0;e<2;i=++e)n.push(r.readUInt8(i)^t.readUInt8(this.block_size+i));return n}.call(this)),this.out_bufs.push(n),o=this.resync?2:0,this.compact().copy(this.FR,0,o,o+this.block_size),this._enc()},r.prototype.enc=function(t,r){var n,i,o,s,a,c,l,d,_,y,g,b;y=h.findDeferral(arguments),l=new u(t),o=p(r,"Encryptor::enc"),this.resync?this._emit_sb(l):(n=e.concat([e.from([0,0]),l.read_buffer(this.block_size-2)]),(_=f.from_buffer(n)).xor(this.FRE,{}),n=_.to_buffer().slice(2),this.out_bufs.push(n),(i=this.compact()).copy(this.FR,0,i.length-this.block_size,i.length)),d=l.rem(),(b=this,function(e){g=new h.Deferrals(e,{parent:y,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/ocfb.iced",funcname:"Encryptor.enc"}),b.asp.progress({what:"ofcb encryption",i:0,total:d},o(g.defer({lineno:168}))),g._fulfill()})(function(e){return function(){var n;(n=function(t){var r,i,a;if(r=t,a=function(){return h.trampoline((function(){return n(t)}))},!(s=l.rem()))return r();for(i=0;i<4096&&(e._enc(),e._emit_sb(l),s=l.rem());i++);!function(t){g=new h.Deferrals(t,{parent:y,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/ocfb.iced",funcname:"Encryptor.enc"}),e.asp.progress({what:"ofcb encryption",i:d-s,total:d},o(g.defer({lineno:177}))),g._fulfill()}(a)})((function(){return c=e.compact(),a=t.length+e.block_size+2,c=c.slice(0,a),r(null,c)}))}}(this))},r}(o),s=function(e){function t(e){var r,n,i,o,s;n=e.block_cipher_class,o=e.key,i=e.cipher,e.prefixrandom,s=e.resync,this.ciphertext=e.ciphertext,r=e.asp,t.__super__.constructor.call(this,{block_cipher_class:n,key:o,cipher:i,resync:s,asp:r}),this._init()}return b(t,e),t.prototype._init=function(){return this.reset()},t.prototype.reset=function(){return this.sb=new u(this.ciphertext)},t.prototype.next_block=function(){return f.from_buffer(this.sb.read_buffer_at_most(this.block_size))},t.prototype.get_prefix=function(){return this._prefix},t.prototype.check=function(e){var t,r,n,i;return this.reset(),r=new f(function(){var e,t,r;for(r=[],e=0,t=this.block_size/4;0<=t?e<t:e>t;0<=t?++e:--e)r.push(0);return r}.call(this)),this.cipher.encryptBlock(r.words,0),t=this.next_block(),r.xor(t,{}),this._prefix=r.to_buffer(),this.cipher.encryptBlock(t.words,0),e((n=65535&r.words.slice(-1)[0])===(i=t.words[0]>>>16^this.sb.peek_uint16())?null:new Error("Canary block mismatch: "+n+" != "+i))},t.prototype.dec=function(e){var t,r,n,i,o,s,a,u,f;a=h.findDeferral(arguments),this.reset(),this.resync&&this.sb.advance(2),n=this.next_block(),r=p(e,"Decryption::dec"),s=this.sb.rem(),(f=this,function(e){u=new h.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/ocfb.iced",funcname:"Decryptor.dec"}),f.asp.progress({what:"ofcb decrypt",i:0,total:s},r(u.defer({lineno:239}))),u._fulfill()})(function(f){return function(){var c;(c=function(e){var o,l,p;if(o=e,p=function(){return h.trampoline((function(){return c(e)}))},!(i=f.sb.rem()))return o();for(l=0;l<4096&&(t=n,f.cipher.encryptBlock(t.words,0),n=f.next_block(),t.xor(n,{}),f.out_bufs.push(t.to_buffer().slice(0,n.sigBytes)),i=f.sb.rem());l++);!function(e){u=new h.Deferrals(e,{parent:a,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/ocfb.iced",funcname:"Decryptor.dec"}),f.asp.progress({what:"ofcb decrypt",i:s-i,total:s},r(u.defer({lineno:251}))),u._fulfill()}(p)})((function(){return o=f.compact(),f.resync||(o=o.slice(2)),e(null,o)}))}}(this))},t}(o),l=function(e,t){var r,n,i,o,s,u,f;return n=e.block_cipher_class,o=e.key,i=e.cipher,u=e.prefixrandom,f=e.resync,s=e.plaintext,r=e.asp,new a({block_cipher_class:n,key:o,cipher:i,prefixrandom:u,resync:f,asp:r}).enc(s,t)},c=function(e,t){var r,n,i,o,a,u,f,c,l,p,d;p=h.findDeferral(arguments),n=e.block_cipher_class,f=e.key,i=e.cipher,l=e.resync,o=e.ciphertext,r=e.asp,a=new s({block_cipher_class:n,key:f,cipher:i,resync:l,ciphertext:o,asp:r}),function(e){d=new h.Deferrals(e,{parent:p,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/ocfb.iced"}),a.check(d.defer({assign_fn:function(){return u=arguments[0]},lineno:267})),d._fulfill()}((function(){!function(e){if(null!=u)return e();!function(e){d=new h.Deferrals(e,{parent:p,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/ocfb.iced"}),a.dec(d.defer({assign_fn:function(){return u=arguments[0],c=arguments[1]},lineno:268})),d._fulfill()}(e)}((function(){return t(u,c)}))}))},t.encrypt=l,t.decrypt=c,t.Decryptor=s,_=r(69).rng}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(e){(function(){var n,i,o,s,a,u,f,c={}.hasOwnProperty;n=r(36).openpgp,(u=(s=r(82)).hash).SHA1,u.SHA256,s.ciphers.AES,s.prng.native_rng,(f=r(50)).bufferify,a=f.uint_to_buffer,r(463).encrypt,i=r(157).Packet,r(156).userid.parse,o=function(t){function r(e){this.data=e,r.__super__.constructor.call(this)}return function(e,t){for(var r in t)c.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(r,t),r.prototype.write=function(){return this.frame_packet(n.packet_tags.user_attribute,this.data)},r.parse=function(e){return new r(e.consume_rest_to_buffer())},r.prototype.to_user_attribute=function(){return this},r.prototype.to_signature_payload=function(){return e.concat([e.from([n.signatures.user_attribute]),a(32,this.data.length),this.data])},r}(i),t.UserAttribute=o}).call(this)}).call(this,r(11).Buffer)},function(e,t,n){(function(t){
/**
 *	this is a port of pyflate
 *	@url http://www.paul.sladen.org/projects/pyflate/
 *	@author kirilloid
 * @license CC-SA 3.0
 * @usage ArchUtils.bz2.decode(str)
 * @example ArchUtils.bz2.decode(
 * 		"BZh91AY&SYN\xEC\xE86\0\0\2Q\x80\0\x10@\0\6D\x90\x80 " +
 * 		"\x001\6LA\1\xA7\xA9\xA5\x80\xBB\x941\xF8\xBB\x92)\xC2\x84\x82wgA\xB0"
 * ) == "hello world\n";
 */
var n=function(){"use strict";
/**
	 * bwt_reverse code from wikipedia (slightly modified)
	 * @url http://en.wikipedia.org/wiki/Burrows%E2%80%93Wheeler_transform
	 * @license: CC-SA 3.0
	 */function e(e,t){var r=e.length;if(t>=r)throw RangeError("Out of bound");if(t<0)throw RangeError("Out of bound");var n=e;e=e.join(""),n.sort();for(var i={},o=r-1;o>=0;o--)i[n[o]]=o;var s=[];for(o=0;o<r;o++)s.push(i[e[o]]++);for(var a=n[o=t],u=[],f=1;f<r;f++)u.push(n[o=s[o]]);return a+u.reverse().join("")}function t(e,t,r){for(var n=e[t],i=t;i>0;e[i]=e[--i]);r.push(e[0]=n)}var r=function(){this.init=function(e){this.masks=[];for(var t=0;t<31;t++)this.masks[t]=(1<<t)-1;this.masks[31]=-2147483648,this.f=e,this.bits=0,this.bitfield=0,this.count=0},this.readbits2=function(e){var t=e>>1;return this.readbits(t)*(1<<t)+this.readbits(e-t)},this.readbits=function(e){for(;this.bits<e;)this.bitfield=(this.bitfield<<8)+this.f.charCodeAt(this.count++),this.bits+=8;var t=this.masks[e],r=this.bitfield>>this.bits-e&t;return this.bits-=e,this.bitfield&=~(t<<this.bits),r}},n=function(e,t){this.code=e,this.bits=t,this.symbol=void 0},i=function(){this.process=function(e){for(var t=e.length,r=[],i=0;i<t;i++)r.push([i,e[i]]);r.push([t,-1]);for(var o=[],s=r[0],a=s[0],u=s[1],f=1;f<r.length;f++){var c=r[f][0],l=r[f][1];if(u)for(var h=a;h<c;h++)o.push(new n(h,u));if(a=c,u=l,-1==l)break}o.sort((function(e,t){return e.bits-t.bits||e.code-t.code})),this.table=o;var p=0,d=-1;this.faht=[];var _=null;for(i=0;i<this.table.length;i++){var y=this.table[i];d+=1,y.bits!=p&&(d<<=y.bits-p,_=this.faht[p=y.bits]={}),_[y.symbol=d]=y}this.min_bits=16,this.max_bits=-1,this.table.forEach((function(e){e.bits<this.min_bits&&(this.min_bits=e.bits),e.bits>this.max_bits&&(this.max_bits=e.bits)}),this)}};return{bz2:{decode:function(n){var o=new r;if(o.init(n),o.readbits(16),104!=o.readbits(8))throw"Unknown (not type 'h'uffman Bzip2) compression method";var s=o.readbits(8);if(!(49<=s&&s<=57))throw"Unknown (not size '1'-'9') Bzip2 blocksize";function a(e){for(var t=[],r=e.readbits(16),n=32768;n>0;n>>=1)if(r&n)for(var i=e.readbits(16),o=32768;o>0;o>>=1)t.push(Boolean(i&o));else for(var s=0;s<16;s++)t.push(!1);return t}s-=48;var u=[];return function(){for(;;){var r=o.readbits2(48);o.readbits2(32);if(54156738319193!=r){if(25779555029136==r){o.readbits(7&o.bits);break}throw"Illegal Bzip2 blocktype = 0x"+r.toString(16)}if(o.readbits(1))throw"Bzip2 randomised support not implemented";var n=o.readbits(24),s=a(o),f=o.readbits(3);if(2>f||f>6)throw RangeError("Bzip2: Number of Huffman groups not in range 2..6");for(var c=[0,1,2,3,4,5,6].slice(0,f),l=[],h=0,p=o.readbits(15);h<p;h++){for(var d=0;o.readbits(1);)if(d++>=f)throw RangeError("More than max ("+f+") groups");t(c,d,l)}for(var _=[],y=s.reduce((function(e,t){return e+t}),0)+2,g=0;g<f;g++){var b=o.readbits(5),m=[];for(h=0;h<y;h++){if(b<0||b>20)throw RangeError("Bzip2 Huffman length code outside range 0..20");for(;o.readbits(1);)b-=2*o.readbits(1)-1;m.push(b)}_.push(m)}for(var v=[],w=0;w<_.length;w++){var k=new i;k.process(_[w]),v.push(k)}var x=[];for(d=s.length-1;d>=0;d--)s[d]&&x.push(String.fromCharCode(d));x.reverse();for(var E,S,A=0,B=0,D=0,M=0,P=[];;){for(var I in--B<=0&&(B=50,A<=l.length&&(E=v[l[A++]])),E.faht)if(o.bits<I&&(o.bitfield=(o.bitfield<<8)+o.f.charCodeAt(o.count++),o.bits+=8),S=E.faht[I][o.bitfield>>o.bits-I]){o.bitfield&=o.masks[o.bits-=I],S=S.code;break}if(0<=S&&S<=1)0==D&&(M=1),D+=M<<S,M<<=1;else{for(var U=x[0];D>0;D--)P.push(U);if(S==y-1)break;t(x,S-1,P)}}for(var T=e(P,n),R=[],F=(h=0,T.length);h<F;){d=T.charCodeAt(h);if(h<F-4&&T.charCodeAt(h+1)==d&&T.charCodeAt(h+2)==d&&T.charCodeAt(h+3)==d){d=T.charAt(h);for(var C=T.charCodeAt(h+4)+4;C>0;C--)R.push(d);h+=5}else R.push(T[h++])}u.push(R.join(""))}}(),u.join("")}}}}();e.exports=function(e){return s=e.toString("binary"),r=n.bz2.decode(s),new t(r,"binary")}}).call(this,n(11).Buffer)},function(e,t,r){(function(){var e,n={}.hasOwnProperty;e=function(e){function t(e,t){this.type=e,this.body=t}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(t,e),t}(r(157).Packet),t.Generic=e}).call(this)},function(e,t,r){(function(){t.KeyMaterial=r(721).KeyMaterial,t.Signature=r(240).Signature,t.UserID=r(725).UserID}).call(this)},function(e,t,r){(function(){t.pack=r(464).pack,t.unpack=r(731).unpack,t.Buffer=r(466).PpBuffer,t.frame=r(1321)}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s;o=r(464).pack,s=r(731).unpack,n=r(465).C,t.pack=function(t,r){var n,i;return null==r&&(r={}),i=o(t,r),n=o(i.length),e.concat([n,i])},t.frame_len=i=function(e){return e<=n.positive_fix_max?1:e===n.uint8?2:e===n.uint16?3:e===n.uint32?5:0},t.unpack=function(e,t){var r,n,o,a,u;if(null==t&&(t={}),e.length<1)throw new Error("need a buffer > 1 bytes");if(n=e.readUInt8(0),0===(o=i(n)))throw new Error("no data frame found");if(e.length<o)throw new Error("not enough bytes to read frame: "+e.length+" < "+o);if(r=e.slice(0,o),a=s(r),(e=e.slice(o)).length<a)throw new Error("not enough bytes to unframe: "+e.length+" < "+a);return u=e.slice(a),e=e.slice(0,a),[s(e),u]}}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i,o=[].slice;n=r(34),i=r(62).make_esc,e=r(156).util.ASP,t.BaseBurner=function(){function t(t){this.sign_with=t.sign_with,this.encrypt_for=t.encrypt_for,this.signing_key=t.signing_key,this.encryption_key=t.encryption_key,this.asp=t.asp,this.asp=e.make(this.asp)}return t.prototype._find_keys=function(e){var t,r,o,s;r=n.findDeferral(arguments),t=i(e,"find_keys"),(s=this,function(e){o=new n.Deferrals(e,{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/baseburner.iced",funcname:"BaseBurner._find_keys"}),s._find_signing_key(t(o.defer({lineno:17}))),o._fulfill()})(function(i){return function(){o=new n.Deferrals((function(){o=new n.Deferrals((function(){return e(null)}),{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/baseburner.iced",funcname:"BaseBurner._find_keys"}),i._assert_one(t(o.defer({lineno:19}))),o._fulfill()}),{parent:r,filename:"/Users/max/src/keybase/kbpgp/src/openpgp/baseburner.iced",funcname:"BaseBurner._find_keys"}),i._find_encryption_key(t(o.defer({lineno:18}))),o._fulfill()}}(this))},t.prototype._assert_one=function(e){var t;return t=null,null==this.signing_key&&null==this.encryption_keys&&(t=new Error("need either an encryption or signing key, or both")),e(t)},t.prototype._find_signing_key=function(e){var t;return t=null,null!=this.sign_with&&null!=this.signing_key?t=new Error("specify either `sign_with` or `signing_key` but not both"):null!=this.sign_with&&null==(this.signing_key=this.sign_with.find_signing_pgp_key())&&(t=new Error("cannot sign with the given KeyManager")),e(t)},t.prototype._find_encryption_key=function(e){var t,r,n,i,s,a,u;if(r=null,t=function(e){return null==e?[]:"object"==typeof e&&Array.isArray(e)?e:[e]},function(){var e,t,r,n;for(e=0,r=0,n=(t=1<=arguments.length?o.call(arguments,0):[]).length;r<n;r++)t[r]&&e++;return e}(null!=this.encrypt_for,null!=this.encryption_key,null!=this.encryption_keys)>1)r=new Error("specify only one of `encrypt_for`, `encryption_keys` and `encryption_key`");else if(null!=this.encrypt_for)for(this.encryption_keys=[],n=s=0,a=(u=this.encrypt_for=t(this.encrypt_for)).length;s<a;n=++s){if(null==(i=u[n].find_crypt_pgp_key())){r=new Error("cannot encrypt with the given KeyManager (i="+n+")");break}this.encryption_keys.push(i)}else null!=this.encryption_key?this.encryption_keys=[this.encryption_key]:null!=this.encryption_keys&&(this.encryption_keys=t(this.encryption_keys));return e(r)},t}()}).call(this)},function(e,t,r){(function(e){(function(){var n,i,o,s,a;a=r(219),s=a.nbv,o=a.nbi,i=a.BigInteger,r(115).nbs,r(50).buffer_to_ui8a,n=function(){function t(e){var t,r,n,i,o;for(this.alphabet=e,this.base=this.alphabet.length,this.basebn=s(this.base),this.lookup={},r=n=0,i=(o=this.alphabet).length;n<i;r=++n)t=o[r],this.lookup[t]=r}return t.prototype.encode=function(e){var t,r,n,s,a,u,f,c;for(n=o().fromBuffer(e),(r=function(){var e,r;for(r=[];n.compareTo(i.ZERO)>0;)e=n.divideAndRemainder(this.basebn),a=e[0],u=e[1],t=this.alphabet[u.intValue()],n=a,r.push(t);return r}.call(this)).reverse(),s=[],f=0,c=e.length;f<c&&0===(t=e[f]);f++)s.push(this.alphabet[0]);return s.concat(r).join("")},t.prototype.decode=function(t){var r,n,o,a,u,f,c,l,h,p,d;for(u=i.ZERO,r=i.ONE,a=0,a=l=0,p=t.length;l<p&&(n=t[a])===this.alphabet[0];a=++l);for(c=a,f=e.from(function(){var e,t;for(t=[],a=e=0;0<=c?e<c:e>c;a=0<=c?++e:--e)t.push(0);return t}()),d=t.slice(c),a=h=d.length-1;h>=0;a=h+=-1){if(n=d[a],null==(o=this.lookup[n]))throw new Error("Value passed is not a valid BaseX string.");u=u.add(r.multiply(s(o))),r=r.multiply(this.basebn)}return e.concat([f,e.from(u.toByteArray())])},t}(),t.base58=new n("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),t.base32=new n("abcdefghijkmnpqrstuvwxyz23456789"),t.base91=new n("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()-_=+{}[]|;:,<>./?")}).call(this)}).call(this,r(11).Buffer)},function(e,t,r){(function(){var e,n,i;n=r(474).burn,i=r(385),e=r(473).SignatureEngine,t.box=n,t.unbox=i.do_message,t.SignatureEngine=e}).call(this)},function(e,t,r){(function(){t.curves=r(715),t.ECDSA=r(381).ECDSA,t.ECDH=r(382).ECDH,t.EDDSA=r(462).EDDSA}).call(this)},function(e,t,r){(function(){var e,n,i,o,s;n=r(36).kb,i=r(468).P3SKB,o=r(470).Signature,e=r(735).Encryption,s=function(e){try{return[null,e()]}catch(e){return[e,null]}},t.alloc=function(t){var r,a,u,f,c;return f=t.tag,r=t.body,c=function(){switch(f){case n.packet_tags.p3skb:return s((function(){return i.alloc({tag:f,body:r})}));case n.packet_tags.signature:return s((function(){return o.alloc({tag:f,body:r})}));case n.packet_tags.encryption:return s((function(){return e.alloc({tag:f,body:r})}));default:return[a=new Error("unknown packet tag: "+f),null]}}(),a=c[0],u=c[1],[a,u]}}).call(this)},function(e,t,r){(function(){var e,n,i,o,s;e=r(34),o=r(705),s=r(473),i=r(734),t.import_armored_public=function(t,r){var n,s,a,u,f,c,l,h;l=e.findDeferral(arguments),n=t.armored,s=t.asp,u=t.opts,c=null,function(t){n.match(/^-{5}BEGIN PGP PUBLIC KEY BLOCK-{5}/)?function(t){h=new e.Deferrals(t,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/ukm.iced",funcname:"import_armored_public"}),o.KeyManager.import_from_armored_pgp({armored:n,asp:s,opts:u},h.defer({assign_fn:function(){return a=arguments[0],f=arguments[1],c=arguments[2]},lineno:12})),h._fulfill()}(t):function(t){h=new e.Deferrals(t,{parent:l,filename:"/Users/max/src/keybase/kbpgp/src/ukm.iced",funcname:"import_armored_public"}),i.KeyManager.import_public({hex:n},h.defer({assign_fn:function(){return a=arguments[0],f=arguments[1]},lineno:14})),h._fulfill()}(t)}((function(){return r(a,f,c)}))},n=function(e){return e.match(/^-{5}BEGIN PGP MESSAGE-{5}/)},t.decode_sig=function(e){var t;return t=e.armored,n(t)?s.decode_sig({armored:t}):i.decode_sig({armored:t})},t.get_sig_body=function(e){var t;return t=e.armored,n(t)?s.get_sig_body({armored:t}):i.get_sig_body({armored:t})}}).call(this)},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";r.r(t);var n=r(6),i=r.n(n),o=r(12),s=r.n(o),a=r(1),u=r.n(a),f=r(2),c=r.n(f),l=r(4),h=r.n(l),p=r(3),d=r.n(p),_=r(5),y=r.n(_),g=r(9),b=r(60),m=r.n(b),v=r(8),w=r(0),k=r(58),x=r.n(k),E=x.a?x.a.promisify:k.promisify,S=m.a.ASP({progress_hook:function(e){var t="";switch(e.what){case"guess":t="Guessing a prime";break;case"fermat":t="Factoring prime using Fermat's factorization method";break;case"mr":t="Performing Miller-Rabin primality test";break;case"passed_mr":t="Passed Miller-Rabin primality test";break;case"failed_mr":t="Failed Miller-Rabin primality test";break;case"found":t="Prime found";break;default:t=`Stage: ${e.what}`}Object(w.d)()&&self.sendStatusMessage(t)}});function A(e){return{1024:1024,2048:1024,4096:2048,256:256,384:256}[e]}function B(e,t){var r;return i.a.async((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,i.a.awrap(E(m.a.KeyManager.import_from_armored_pgp)({armored:e,opts:{no_check_keys:!0}}));case 3:if(!(r=n.sent).is_pgp_locked()){n.next=11;break}if(!t){n.next=10;break}return n.next=8,i.a.awrap(E(r.unlock_pgp.bind(r))({passphrase:t}));case 8:n.next=11;break;case 10:throw new v.a("Did not provide passphrase with locked private key.");case 11:return n.abrupt("return",r);case 14:throw n.prev=14,n.t0=n.catch(0),new v.a(`Could not import private key: ${n.t0}`);case 17:case"end":return n.stop()}}),null,null,[[0,14]])}function D(e){var t;return i.a.async((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,i.a.awrap(E(m.a.KeyManager.import_from_armored_pgp)({armored:e,opts:{no_check_keys:!0}}));case 3:return t=r.sent,r.abrupt("return",t);case 7:throw r.prev=7,r.t0=r.catch(0),new v.a(`Could not import public key: ${r.t0}`);case 10:case"end":return r.stop()}}),null,null,[[0,7]])}
/**
 * @author tlwr [toby@toby.codes]
 * @author Matt C [matt@artemisbot.uk]
 * @author n1474335 [n1474335@gmail.com]
 * @copyright Crown Copyright 2017
 * @license Apache-2.0
 */var M=x.a?x.a.promisify:k.promisify,P=function(e){function t(){var e;return u()(this,t),(e=h()(this,d()(t).call(this))).name="Generate PGP Key Pair",e.module="PGP",e.description="Generates a new public/private PGP key pair. Supports RSA and Eliptic Curve (EC) keys.",e.infoURL="https://wikipedia.org/wiki/Pretty_Good_Privacy",e.inputType="string",e.outputType="string",e.args=[{name:"Key type",type:"option",value:["RSA-1024","RSA-2048","RSA-4096","ECC-256","ECC-384"]},{name:"Password (optional)",type:"string",value:""},{name:"Name (optional)",type:"string",value:""},{name:"Email (optional)",type:"string",value:""}],e}return y()(t,e),c()(t,[{key:"run",value:function(e,t){var r,n,o,a,u,f,c,l,h,p;return i.a.async((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t[0].split("-"),n=s()(r,2),o=n[0],a=n[1],u=t[1],f=t[2],c=t[3],l="",f&&(l+=f),c&&(l+=` <${c}>`),h=m.a.const.openpgp.certify_keys,h|=m.a.const.openpgp.sign_data,h|=m.a.const.openpgp.auth,h|=m.a.const.openpgp.encrypt_comm,h|=m.a.const.openpgp.encrypt_storage,p={userid:l,ecc:"ecc"===o,primary:{nbits:a,flags:h,expire_in:0},subkeys:[{nbits:A(a),flags:m.a.const.openpgp.sign_data,expire_in:252288e3},{nbits:A(a),flags:m.a.const.openpgp.encrypt_comm|m.a.const.openpgp.encrypt_storage,expire_in:63072e3}],asp:S},e.abrupt("return",new Promise((function(e,t){var r,n,o,s,a;return i.a.async((function(f){for(;;)switch(f.prev=f.next){case 0:return f.prev=0,f.next=3,i.a.awrap(M(m.a.KeyManager.generate)(p));case 3:return r=f.sent,f.next=6,i.a.awrap(M(r.sign.bind(r))({}));case 6:return n=r,o={},u&&(o.passphrase=u),f.next=10,i.a.awrap(M(n.export_pgp_private.bind(n))(o));case 10:return s=f.sent,f.next=13,i.a.awrap(M(n.export_pgp_public.bind(n))({}));case 13:a=f.sent,e(s+"\n"+a.trim()),f.next=20;break;case 17:f.prev=17,f.t0=f.catch(0),t(`Error whilst generating key pair: ${f.t0}`);case 20:case"end":return f.stop()}}),null,null,[[0,17]])})));case 11:case"end":return e.stop()}}))}}]),t}(g.a),I=x.a?x.a.promisify:k.promisify,U=function(e){function t(){var e;return u()(this,t),(e=h()(this,d()(t).call(this))).name="PGP Decrypt",e.module="PGP",e.description=["Input: the ASCII-armoured PGP message you want to decrypt.","<br><br>","Arguments: the ASCII-armoured PGP private key of the recipient, ","(and the private key password if necessary).","<br><br>","Pretty Good Privacy is an encryption standard (OpenPGP) used for encrypting, decrypting, and signing messages.","<br><br>","This function uses the Keybase implementation of PGP."].join("\n"),e.infoURL="https://wikipedia.org/wiki/Pretty_Good_Privacy",e.inputType="string",e.outputType="string",e.args=[{name:"Private key of recipient",type:"text",value:""},{name:"Private key passphrase",type:"string",value:""}],e}return y()(t,e),c()(t,[{key:"run",value:function(e,t){var r,n,o,a,u,f,c;return i.a.async((function(l){for(;;)switch(l.prev=l.next){case 0:if(r=e,n=s()(t,2),o=n[0],a=n[1],u=new m.a.keyring.KeyRing,o){l.next=3;break}throw new v.a("Enter the private key of the recipient.");case 3:return l.next=5,i.a.awrap(B(o,a));case 5:return c=l.sent,u.add_key_manager(c),l.prev=7,l.next=10,i.a.awrap(I(m.a.unbox)({armored:r,keyfetch:u,asp:S}));case 10:f=l.sent,l.next=16;break;case 13:throw l.prev=13,l.t0=l.catch(7),new v.a(`Couldn't decrypt message with provided private key: ${l.t0}`);case 16:return l.abrupt("return",f.toString());case 17:case"end":return l.stop()}}),null,null,[[7,13]])}}]),t}(g.a),T=x.a?x.a.promisify:k.promisify,R=function(e){function t(){var e;return u()(this,t),(e=h()(this,d()(t).call(this))).name="PGP Decrypt and Verify",e.module="PGP",e.description=["Input: the ASCII-armoured encrypted PGP message you want to verify.","<br><br>","Arguments: the ASCII-armoured PGP public key of the signer, ","the ASCII-armoured private key of the recipient (and the private key password if necessary).","<br><br>","This operation uses PGP to decrypt and verify an encrypted digital signature.","<br><br>","Pretty Good Privacy is an encryption standard (OpenPGP) used for encrypting, decrypting, and signing messages.","<br><br>","This function uses the Keybase implementation of PGP."].join("\n"),e.infoURL="https://wikipedia.org/wiki/Pretty_Good_Privacy",e.inputType="string",e.outputType="string",e.args=[{name:"Public key of signer",type:"text",value:""},{name:"Private key of recipient",type:"text",value:""},{name:"Private key password",type:"string",value:""}],e}return y()(t,e),c()(t,[{key:"run",value:function(e,t){var r,n,o,a,u,f,c,l,h,p,d,_,y;return i.a.async((function(g){for(;;)switch(g.prev=g.next){case 0:if(r=e,n=s()(t,3),o=n[0],a=n[1],u=n[2],f=new m.a.keyring.KeyRing,o){g.next=3;break}throw new v.a("Enter the public key of the signer.");case 3:if(a){g.next=5;break}throw new v.a("Enter the private key of the recipient.");case 5:return g.next=7,i.a.awrap(B(a,u));case 7:return l=g.sent,g.next=10,i.a.awrap(D(o));case 10:return h=g.sent,f.add_key_manager(l),f.add_key_manager(h),g.prev=13,g.next=16,i.a.awrap(T(m.a.unbox)({armored:r,keyfetch:f,asp:S}));case 16:if(c=g.sent,!(p=c[0].get_data_signer())){g.next=32;break}if(!(d=p.get_key_manager())){g.next=29;break}return _=d.get_userids_mark_primary()[0].components,y="Signed by ",(_.email||_.username||_.comment)&&(_.username&&(y+=`${_.username} `),_.comment&&(y+=`(${_.comment}) `),_.email&&(y+=`<${_.email}>`),y+="\n"),y+=[`PGP key ID: ${d.get_pgp_short_key_id()}`,`PGP fingerprint: ${d.get_pgp_fingerprint().toString("hex")}`,`Signed on ${new Date(1e3*p.sig.when_generated()).toUTCString()}`,"----------------------------------\n"].join("\n"),y+=c.toString(),g.abrupt("return",y.trim());case 29:throw new v.a("Could not identify a key manager.");case 30:g.next=33;break;case 32:throw new v.a("The data does not appear to be signed.");case 33:g.next=38;break;case 35:throw g.prev=35,g.t0=g.catch(13),new v.a(`Couldn't verify message: ${g.t0}`);case 38:case"end":return g.stop()}}),null,null,[[13,35]])}}]),t}(g.a),F=x.a?x.a.promisify:k.promisify,C=function(e){function t(){var e;return u()(this,t),(e=h()(this,d()(t).call(this))).name="PGP Encrypt",e.module="PGP",e.description=["Input: the message you want to encrypt.","<br><br>","Arguments: the ASCII-armoured PGP public key of the recipient.","<br><br>","Pretty Good Privacy is an encryption standard (OpenPGP) used for encrypting, decrypting, and signing messages.","<br><br>","This function uses the Keybase implementation of PGP."].join("\n"),e.infoURL="https://wikipedia.org/wiki/Pretty_Good_Privacy",e.inputType="string",e.outputType="string",e.args=[{name:"Public key of recipient",type:"text",value:""}],e}return y()(t,e),c()(t,[{key:"run",value:function(e,t){var r,n,o,s;return i.a.async((function(a){for(;;)switch(a.prev=a.next){case 0:if(r=e,n=t[0]){a.next=3;break}throw new v.a("Enter the public key of the recipient.");case 3:return a.next=5,i.a.awrap(D(n));case 5:return s=a.sent,a.prev=6,a.next=9,i.a.awrap(F(m.a.box)({msg:r,encrypt_for:s,asp:S}));case 9:o=a.sent,a.next=15;break;case 12:throw a.prev=12,a.t0=a.catch(6),new v.a(`Couldn't encrypt message with provided public key: ${a.t0}`);case 15:return a.abrupt("return",o.toString());case 16:case"end":return a.stop()}}),null,null,[[6,12]])}}]),t}(g.a),O=x.a?x.a.promisify:k.promisify,z=function(e){function t(){var e;return u()(this,t),(e=h()(this,d()(t).call(this))).name="PGP Encrypt and Sign",e.module="PGP",e.description=["Input: the cleartext you want to sign.","<br><br>","Arguments: the ASCII-armoured private key of the signer (plus the private key password if necessary)","and the ASCII-armoured PGP public key of the recipient.","<br><br>","This operation uses PGP to produce an encrypted digital signature.","<br><br>","Pretty Good Privacy is an encryption standard (OpenPGP) used for encrypting, decrypting, and signing messages.","<br><br>","This function uses the Keybase implementation of PGP."].join("\n"),e.infoURL="https://wikipedia.org/wiki/Pretty_Good_Privacy",e.inputType="string",e.outputType="string",e.args=[{name:"Private key of signer",type:"text",value:""},{name:"Private key passphrase",type:"string",value:""},{name:"Public key of recipient",type:"text",value:""}],e}return y()(t,e),c()(t,[{key:"run",value:function(e,t){var r,n,o,a,u,f,c,l;return i.a.async((function(h){for(;;)switch(h.prev=h.next){case 0:if(r=e,n=s()(t,3),o=n[0],a=n[1],u=n[2],o){h.next=3;break}throw new v.a("Enter the private key of the signer.");case 3:if(u){h.next=5;break}throw new v.a("Enter the public key of the recipient.");case 5:return h.next=7,i.a.awrap(B(o,a));case 7:return c=h.sent,h.next=10,i.a.awrap(D(u));case 10:return l=h.sent,h.prev=11,h.next=14,i.a.awrap(O(m.a.box)({msg:r,encrypt_for:l,sign_with:c,asp:S}));case 14:f=h.sent,h.next=20;break;case 17:throw h.prev=17,h.t0=h.catch(11),new v.a(`Couldn't sign message: ${h.t0}`);case 20:return h.abrupt("return",f);case 21:case"end":return h.stop()}}),null,null,[[11,17]])}}]),t}(g.a),L=x.a?x.a.promisify:k.promisify,N=function(e){function t(){var e;return u()(this,t),(e=h()(this,d()(t).call(this))).name="PGP Verify",e.module="PGP",e.description=["Input: the ASCII-armoured encrypted PGP message you want to verify.","<br><br>","Argument: the ASCII-armoured PGP public key of the signer","<br><br>","This operation uses PGP to decrypt a clearsigned message.","<br><br>","Pretty Good Privacy is an encryption standard (OpenPGP) used for encrypting, decrypting, and signing messages.","<br><br>","This function uses the Keybase implementation of PGP."].join("\n"),e.infoURL="https://wikipedia.org/wiki/Pretty_Good_Privacy",e.inputType="string",e.outputType="string",e.args=[{name:"Public key of signer",type:"text",value:""}],e}return y()(t,e),c()(t,[{key:"run",value:function(e,t){var r,n,o,a,u,f,c,l,h,p;return i.a.async((function(d){for(;;)switch(d.prev=d.next){case 0:if(r=e,n=s()(t,1),o=n[0],a=new m.a.keyring.KeyRing,o){d.next=3;break}throw new v.a("Enter the public key of the signer.");case 3:return d.next=5,i.a.awrap(D(o));case 5:return f=d.sent,a.add_key_manager(f),d.prev=7,d.next=10,i.a.awrap(L(m.a.unbox)({armored:r,keyfetch:a,asp:S}));case 10:if(u=d.sent,!(c=u[0].get_data_signer())){d.next=26;break}if(!(l=c.get_key_manager())){d.next=23;break}return h=l.get_userids_mark_primary()[0].components,p="Signed by ",(h.email||h.username||h.comment)&&(h.username&&(p+=`${h.username} `),h.comment&&(p+=`(${h.comment}) `),h.email&&(p+=`<${h.email}>`),p+="\n"),p+=[`PGP key ID: ${l.get_pgp_short_key_id()}`,`PGP fingerprint: ${l.get_pgp_fingerprint().toString("hex")}`,`Signed on ${new Date(1e3*c.sig.when_generated()).toUTCString()}`,"----------------------------------\n"].join("\n"),p+=u.toString(),d.abrupt("return",p.trim());case 23:throw new v.a("Could not identify a key manager.");case 24:d.next=27;break;case 26:throw new v.a("The data does not appear to be signed.");case 27:d.next=32;break;case 29:throw d.prev=29,d.t0=d.catch(7),new v.a(`Couldn't verify message: ${d.t0}`);case 32:case"end":return d.stop()}}),null,null,[[7,29]])}}]),t}(g.a),j="undefined"==typeof self?{}:self.OpModules||{};j.PGP={"Generate PGP Key Pair":P,"PGP Decrypt":U,"PGP Decrypt and Verify":R,"PGP Encrypt":C,"PGP Encrypt and Sign":z,"PGP Verify":N};t.default=j}]);