From 1f675089a7ea49abfb09a34802487e33308d57d4 Mon Sep 17 00:00:00 2001 From: Marcus Koh Date: Mon, 31 Aug 2020 13:45:46 +0800 Subject: [PATCH] Initial commit --- .gitignore | 1 + LICENSE | 21 ++ README.md | 42 +++ action.yml | 64 +++++ dist/index.js | 1 + index.js | 57 ++++ package-lock.json | 658 ++++++++++++++++++++++++++++++++++++++++++++++ package.json | 20 ++ yarn.lock | 610 ++++++++++++++++++++++++++++++++++++++++++ 9 files changed, 1474 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 action.yml create mode 100644 dist/index.js create mode 100644 index.js create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 yarn.lock diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d323cfa --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Koh Chi Hao + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..b9f126b --- /dev/null +++ b/README.md @@ -0,0 +1,42 @@ +# tele-status + +Tele-status connects your GitHub Repo to Telegram about Repo Updates by a Bot you can create. + +Create a chatbot with **botfather** bot in telegram. Get your chat id by speaking to **jsondumpbot** in telegram. + +Since it is your repo and it should only be limited to you. Thats why you need to give your chat id to the bot. You can either give your **personal chat id** or a **channel chat id** and add the bot to it. + +You can add these details to the Repository Secrets by going to `/settings/secrets/` + +## Notifications +- You can use the simple notifier at the master branch or the release tag like +```yml + - name: + uses: kohchihao/tele-status@master + if: always() + with: + chat: ${{ secrets.chat }} + token: ${{ secrets.token }} + status: ${{ job.status }} + +``` +The `chat` is the chat id/channel id and you can get that by talking to the json dump bot. The `token` is the bot's API token and you can create a bot by speaking to Botfather bot in Telegram. + +Actions will only trigger on what you want to trigger. You might want to define all the triggers first. You can refer the workflow file of this repo for better guidance. or like this + +```yml +name: Build and Notify +on: + push: + pull_request: + types: [opened,closed] + issues: + types: [opened, closed, reopened] + issue_comment: + types: [created] + watch: + types: [started] +``` + +## Credits +Forked and cloned from https://github.com/athul/telewire \ No newline at end of file diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..370088f --- /dev/null +++ b/action.yml @@ -0,0 +1,64 @@ +name: 'Tele-status' +description: 'Connect your GitHub Repo to Telegram' +author: 'kohchihao' +inputs: + chat: + description: 'Chat to send: chat id or @channel_name' + required: true + token: + description: 'Telegram Bot token' + required: true + status: + description: 'Job status' + required: true + stargazers: + description: 'Get Stars of the Repo' + default: ${{ github.event.repository.stargazers_count }} + forkers: + description: 'Number of Forks' + default: ${{ github.event.repository.forks_count }} + iu_title: + description: 'Issue Title' + default: ${{ github.event.issue.title }} + iu_num: + description: 'Issue Number' + default: ${{ github.event.issue.number }} + iu_actor: + description: 'Issue Triggerer' + default: ${{ github.event.issue.user.login }} + iu_body: + description: 'Issue Body' + default: ${{ github.event.issue.body }} + iu_com: + description: 'Issue Comment' + default: ${{github.event.comment.body}} + pr_state: + description: 'State of the PR' + default: ${{ github.event.action }} + pr_num: + description: 'PR Number' + default: ${{ github.event.number }} + pr_title: + description: 'Title of the PR' + default: ${{ github.event.pull_request.title }} + pr_body: + description: 'Body/Contents of the PR' + default: ${{ github.event.pull_request.body }} + pr_commit_message: + description: 'Commit message' + default: ${{ github.event.head_commit.message }} + pr_branch_name: + description: 'PR Branch name' + default: ${{ github.ref }} + workflow_success: + description: 'Workflow Success' + default: ${{ success() }} + workflow_failure: + description: 'Workflow Failure' + default: ${{ failure() }} +runs: + using: 'node12' + main: 'dist/`index.js' +branding: + icon: 'repeat' + color: 'green' diff --git a/dist/index.js b/dist/index.js new file mode 100644 index 0000000..27e24a5 --- /dev/null +++ b/dist/index.js @@ -0,0 +1 @@ +module.exports=function(e,t){"use strict";var r={};function __webpack_require__(t){if(r[t]){return r[t].exports}var a=r[t]={i:t,l:false,exports:{}};e[t].call(a.exports,a,a.exports,__webpack_require__);a.l=true;return a.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(104)}t(__webpack_require__);return startup()}([,function(e,t,r){e.exports={Verifier:Verifier,Signer:Signer};var a=r(196);var i=r(409);var n=r(669);var o=r(477);var s=r(215).Buffer;var c=r(90);function Verifier(e,t){if(t.toLowerCase()!=="sha512")throw new Error("ED25519 only supports the use of "+"SHA-512 hashes");this.key=e;this.chunks=[];i.Writable.call(this,{})}n.inherits(Verifier,i.Writable);Verifier.prototype._write=function(e,t,r){this.chunks.push(e);r()};Verifier.prototype.update=function(e){if(typeof e==="string")e=s.from(e,"binary");this.chunks.push(e)};Verifier.prototype.verify=function(e,t){var r;if(c.isSignature(e,[2,0])){if(e.type!=="ed25519")return false;r=e.toBuffer("raw")}else if(typeof e==="string"){r=s.from(e,"base64")}else if(c.isSignature(e,[1,0])){throw new Error("signature was created by too old "+"a version of sshpk and cannot be verified")}o.buffer(r);return a.sign.detached.verify(new Uint8Array(s.concat(this.chunks)),new Uint8Array(r),new Uint8Array(this.key.part.A.data))};function Signer(e,t){if(t.toLowerCase()!=="sha512")throw new Error("ED25519 only supports the use of "+"SHA-512 hashes");this.key=e;this.chunks=[];i.Writable.call(this,{})}n.inherits(Signer,i.Writable);Signer.prototype._write=function(e,t,r){this.chunks.push(e);r()};Signer.prototype.update=function(e){if(typeof e==="string")e=s.from(e,"binary");this.chunks.push(e)};Signer.prototype.sign=function(){var e=a.sign.detached(new Uint8Array(s.concat(this.chunks)),new Uint8Array(s.concat([this.key.part.k.data,this.key.part.A.data])));var t=s.from(e);var r=c.parse(t,"ed25519","raw");r.hashAlgorithm="sha512";return r}},,,function(e){"use strict";e.exports=eventListenerCount;function eventListenerCount(e,t){return e.listeners(t).length}},function(e,t,r){"use strict";var a=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var i=function(){function defineProperties(e,t){for(var r=0;r0&&arguments[0]!==undefined?arguments[0]:{};if(this._lastRequest){if(!t.restart){return Promise.resolve()}return this.stop({cancel:true,reason:"Polling restart"}).then(function(){return e._polling()})}return this._polling()}},{key:"stop",value:function stop(){var e=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(!this._lastRequest){return Promise.resolve()}var r=this._lastRequest;this._lastRequest=null;clearTimeout(this._pollingTimeout);if(t.cancel){var a=t.reason||"Polling stop";r.cancel(a);return Promise.resolve()}this._abort=true;return r.finally(function(){e._abort=false})}},{key:"isPolling",value:function isPolling(){return!!this._lastRequest}},{key:"_error",value:function _error(e){if(!this.bot.listeners("polling_error").length){return console.error("error: [polling_error] %j",e)}return this.bot.emit("polling_error",e)}},{key:"_polling",value:function _polling(){var e=this;this._lastRequest=this._getUpdates().then(function(t){e._lastUpdate=Date.now();o("polling data %j",t);t.forEach(function(t){e.options.params.offset=t.update_id+1;o("updated offset: %s",e.options.params.offset);try{e.bot.processUpdate(t)}catch(e){e._processing=true;throw e}});return null}).catch(function(t){o("polling error: %s",t.message);if(!t._processing){return e._error(t)}delete t._processing;if(!e.bot.options.badRejection){return e._error(t)}var r={offset:e.options.params.offset,limit:1,timeout:0};return e.bot.getUpdates(r).then(function(){return e._error(t)}).catch(function(r){var a="https://github.com/yagop/node-telegram-bot-api/issues/36#issuecomment-268532067";console.error("error: Internal handling of The Offset Infinite Loop failed");console.error("error: Due to error '"+r+"'");console.error("error: You may receive already-processed updates on app restart");console.error("error: Please see "+a+" for more information");return e.bot.emit("error",new n.FatalError(t))})}).finally(function(){if(e._abort){o("Polling is aborted!")}else{o("setTimeout for %s miliseconds",e.options.interval);e._pollingTimeout=setTimeout(function(){return e._polling()},e.options.interval)}});return this._lastRequest}},{key:"_unsetWebHook",value:function _unsetWebHook(){o("unsetting webhook");return this.bot._request("setWebHook")}},{key:"_getUpdates",value:function _getUpdates(){var e=this;o("polling with options: %j",this.options.params);return this.bot.getUpdates(this.options.params).catch(function(t){if(t.response&&t.response.statusCode===c){return e._unsetWebHook().then(function(){return e.bot.getUpdates(e.options.params)})}throw t})}}]);return TelegramBotPolling}();e.exports=u},,,,function(e){"use strict";var t=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];e.exports=function(e,r){for(var a=0;a1){if(arguments[1]===String){t="string"}else if(arguments[1]===Number){t="number"}}var r;if(a){if(Symbol.toPrimitive){r=u(e,Symbol.toPrimitive)}else if(s(e)){r=Symbol.prototype.valueOf}}if(typeof r!=="undefined"){var n=r.call(e,t);if(i(n)){return n}throw new TypeError("unable to convert exotic object to primitive")}if(t==="default"&&(o(e)||s(e))){t="string"}return c(e,t==="default"?"number":t)}},,,,function(e,t,r){"use strict";var a;if(!Object.keys){var i=Object.prototype.hasOwnProperty;var n=Object.prototype.toString;var o=r(866);var s=Object.prototype.propertyIsEnumerable;var c=!s.call({toString:null},"toString");var u=s.call(function(){},"prototype");var p=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];var l=function(e){var t=e.constructor;return t&&t.prototype===e};var f={$applicationCache:true,$console:true,$external:true,$frame:true,$frameElement:true,$frames:true,$innerHeight:true,$innerWidth:true,$onmozfullscreenchange:true,$onmozfullscreenerror:true,$outerHeight:true,$outerWidth:true,$pageXOffset:true,$pageYOffset:true,$parent:true,$scrollLeft:true,$scrollTop:true,$scrollX:true,$scrollY:true,$self:true,$webkitIndexedDB:true,$webkitStorageInfo:true,$window:true};var m=function(){if(typeof window==="undefined"){return false}for(var e in window){try{if(!f["$"+e]&&i.call(window,e)&&window[e]!==null&&typeof window[e]==="object"){try{l(window[e])}catch(e){return true}}}catch(e){return true}}return false}();var d=function(e){if(typeof window==="undefined"||!m){return l(e)}try{return l(e)}catch(e){return false}};a=function keys(e){var t=e!==null&&typeof e==="object";var r=n.call(e)==="[object Function]";var a=o(e);var s=t&&n.call(e)==="[object String]";var l=[];if(!t&&!r&&!a){throw new TypeError("Object.keys called on a non-object")}var f=u&&r;if(s&&e.length>0&&!i.call(e,0)){for(var m=0;m0){for(var h=0;h0)r="\n"+r;this.rs_signer.update(r)}return t};RequestSigner.prototype.writeDateHeader=function(){return this.writeHeader("date",c.rfc1123(new Date))};RequestSigner.prototype.writeTarget=function(e,t){a.string(e,"method");a.string(t,"path");e=e.toLowerCase();this.writeHeader("(request-target)",e+" "+t)};RequestSigner.prototype.sign=function(e){a.func(e,"callback");if(this.rs_headers.length<1)throw new Error("At least one header must be signed");var t,r;if(this.rs_signFunc){var i=this.rs_lines.join("\n");var n=this;this.rs_signFunc(i,function(i,o){if(i){e(i);return}try{a.object(o,"signature");a.string(o.keyId,"signature.keyId");a.string(o.algorithm,"signature.algorithm");a.string(o.signature,"signature.signature");t=h(o.algorithm);r=p(v,o.keyId,o.algorithm,n.rs_headers.join(" "),o.signature)}catch(t){e(t);return}e(null,r)})}else{try{var o=this.rs_signer.sign()}catch(t){e(t);return}t=(this.rs_alg[0]||this.rs_key.type)+"-"+o.hashAlgorithm;var s=o.toString();r=p(v,this.rs_keyId,t,this.rs_headers.join(" "),s);e(null,r)}};e.exports={isSigner:function(e){if(typeof e==="object"&&e instanceof RequestSigner)return true;return false},createSigner:function createSigner(e){return new RequestSigner(e)},signRequest:function signRequest(e,t){a.object(e,"request");a.object(t,"options");a.optionalString(t.algorithm,"options.algorithm");a.string(t.keyId,"options.keyId");a.optionalArrayOfString(t.headers,"options.headers");a.optionalString(t.httpVersion,"options.httpVersion");if(!e.getHeader("Date"))e.setHeader("Date",c.rfc1123(new Date));if(!t.headers)t.headers=["date"];if(!t.httpVersion)t.httpVersion="1.1";var r=[];if(t.algorithm){t.algorithm=t.algorithm.toLowerCase();r=h(t.algorithm)}var n;var o="";for(n=0;nO.length)R=O.length;D+=q.write(O.slice(I,R),D);q[D++]=10;I=R}D+=q.write("-----END "+z+"-----\n",D);return q.slice(0,D)}},,,function(e,t,r){"use strict";var a=r(867);var i=r(669);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{var n=r(858);if(n&&(n.stderr||n).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter(function(e){return/^debug_/i.test(e)}).reduce(function(e,t){var r=t.substring(6).toLowerCase().replace(/_([a-z])/g,function(e,t){return t.toUpperCase()});var a=process.env[t];if(/^(yes|on|true|enabled)$/i.test(a)){a=true}else if(/^(no|off|false|disabled)$/i.test(a)){a=false}else if(a==="null"){a=null}else{a=Number(a)}e[r]=a;return e},{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):a.isatty(process.stderr.fd)}function formatArgs(t){var r=this.namespace,a=this.useColors;if(a){var i=this.color;var n="[3"+(i<8?i:"8;5;"+i);var o=" ".concat(n,";1m").concat(r," ");t[0]=o+t[0].split("\n").join("\n"+o);t.push(n+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+r+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(){return process.stderr.write(i.format.apply(i,arguments)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};var r=Object.keys(t.inspectOpts);for(var a=0;a":"<";a+="if ( ";if(f){a+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "}a+=" "+l+".length "+d+" "+m+") { ";var p=t;var h=h||[];h.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(p||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+m+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have ";if(t=="maxItems"){a+="more"}else{a+="fewer"}a+=" than ";if(f){a+="' + "+m+" + '"}else{a+=""+o}a+=" items' "}if(e.opts.verbose){a+=" , schema: ";if(f){a+="validate.schema"+s}else{a+=""+o}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}a+=" } "}else{a+=" {} "}var v=a;a=h.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},,function(e,t,r){"use strict";var a=function(){function defineProperties(e,t){for(var r=0;r20&&n[0]===0)n=n.slice(1);o=this.part.s.data;if(o.length>20&&o[0]===0)o=o.slice(1);if(this.hashAlgorithm&&this.hashAlgorithm!=="sha1"||n.length+o.length!==40){throw new Error("OpenSSH only supports "+"DSA signatures with SHA1 hash")}t.writeBuffer(i.concat([n,o]));return t.toBuffer()}else if(e==="ssh"&&this.type==="ecdsa"){var l=new p({});n=this.part.r.data;l.writeBuffer(n);l.writePart(this.part.s);t=new p({});var f;if(n[0]===0)n=n.slice(1);var m=n.length*8;if(m===256)f="nistp256";else if(m===384)f="nistp384";else if(m===528)f="nistp521";t.writeString("ecdsa-sha2-"+f);t.writeBuffer(l.toBuffer());return t.toBuffer()}throw new Error("Invalid signature format");default:throw new Error("Invalid signature data")}};Signature.prototype.toString=function(e){a.optionalString(e,"format");return this.toBuffer(e).toString("base64")};Signature.parse=function(e,t,r){if(typeof e==="string")e=i.from(e,"base64");a.buffer(e,"data");a.string(r,"format");a.string(t,"type");var n={};n.type=t.toLowerCase();n.parts=[];try{a.ok(e.length>0,"signature must not be empty");switch(n.type){case"rsa":return parseOneNum(e,t,r,n);case"ed25519":return parseOneNum(e,t,r,n);case"dsa":case"ecdsa":if(r==="asn1")return parseDSAasn1(e,t,r,n);else if(n.type==="dsa")return parseDSA(e,t,r,n);else return parseECDSA(e,t,r,n);default:throw new l(t)}}catch(e){if(e instanceof l)throw e;throw new f(t,r,e)}};function parseOneNum(e,t,r,i){if(r==="ssh"){try{var n=new p({buffer:e});var o=n.readString()}catch(e){}if(n!==undefined){var s="SSH signature does not match expected "+"type (expected "+t+", got "+o+")";switch(o){case"ssh-rsa":a.strictEqual(t,"rsa",s);i.hashAlgo="sha1";break;case"rsa-sha2-256":a.strictEqual(t,"rsa",s);i.hashAlgo="sha256";break;case"rsa-sha2-512":a.strictEqual(t,"rsa",s);i.hashAlgo="sha512";break;case"ssh-ed25519":a.strictEqual(t,"ed25519",s);i.hashAlgo="sha512";break;default:throw new Error("Unknown SSH signature "+"type: "+o)}var c=n.readPart();a.ok(n.atEnd(),"extra trailing bytes");c.name="sig";i.parts.push(c);return new Signature(i)}}i.parts.push({name:"sig",data:e});return new Signature(i)}function parseDSAasn1(e,t,r,a){var i=new u.BerReader(e);i.readSequence();var n=i.readString(u.Ber.Integer,true);var o=i.readString(u.Ber.Integer,true);a.parts.push({name:"r",data:c.mpNormalize(n)});a.parts.push({name:"s",data:c.mpNormalize(o)});return new Signature(a)}function parseDSA(e,t,r,i){if(e.length!=40){var n=new p({buffer:e});var o=n.readBuffer();if(o.toString("ascii")==="ssh-dss")o=n.readBuffer();a.ok(n.atEnd(),"extra trailing bytes");a.strictEqual(o.length,40,"invalid inner length");e=o}i.parts.push({name:"r",data:e.slice(0,20)});i.parts.push({name:"s",data:e.slice(20,40)});return new Signature(i)}function parseECDSA(e,t,r,i){var n=new p({buffer:e});var o,s;var c=n.readBuffer();var u=c.toString("ascii");if(u.slice(0,6)==="ecdsa-"){var l=u.split("-");a.strictEqual(l[0],"ecdsa");a.strictEqual(l[1],"sha2");i.curve=l[2];switch(i.curve){case"nistp256":i.hashAlgo="sha256";break;case"nistp384":i.hashAlgo="sha384";break;case"nistp521":i.hashAlgo="sha512";break;default:throw new Error("Unsupported ECDSA curve: "+i.curve)}c=n.readBuffer();a.ok(n.atEnd(),"extra trailing bytes on outer");n=new p({buffer:c});o=n.readPart()}else{o={data:c}}s=n.readPart();a.ok(n.atEnd(),"extra trailing bytes");o.name="r";s.name="s";i.parts.push(o);i.parts.push(s);return new Signature(i)}Signature.isSignature=function(e,t){return c.isCompatible(e,Signature,t)};Signature.prototype._sshpkApiVersion=[2,1];Signature._oldVersionDetect=function(e){a.func(e.toBuffer);if(e.hasOwnProperty("hashAlgorithm"))return[2,0];return[1,0]}},function(e,t,r){var a=r(892);e.exports=serial;function serial(e,t,r){return a(e,t,null,r)}},,,,,function(e){e.exports={$id:"entry.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:true,required:["startedDateTime","time","request","response","cache","timings"],properties:{pageref:{type:"string"},startedDateTime:{type:"string",format:"date-time",pattern:"^(\\d{4})(-)?(\\d\\d)(-)?(\\d\\d)(T)?(\\d\\d)(:)?(\\d\\d)(:)?(\\d\\d)(\\.\\d+)?(Z|([+-])(\\d\\d)(:)?(\\d\\d))"},time:{type:"number",min:0},request:{$ref:"request.json#"},response:{$ref:"response.json#"},cache:{$ref:"cache.json#"},timings:{$ref:"timings.json#"},serverIPAddress:{type:"string",oneOf:[{format:"ipv4"},{format:"ipv6"}]},connection:{type:"string"},comment:{type:"string"}}}},,function(e,t,r){var a=r(215).Buffer;var i={dsa:{parts:["p","q","g","y"],sizePart:"p"},rsa:{parts:["e","n"],sizePart:"n"},ecdsa:{parts:["curve","Q"],sizePart:"Q"},ed25519:{parts:["A"],sizePart:"A"}};i["curve25519"]=i["ed25519"];var n={dsa:{parts:["p","q","g","y","x"]},rsa:{parts:["n","e","d","iqmp","p","q"]},ecdsa:{parts:["curve","Q","d"]},ed25519:{parts:["A","k"]}};n["curve25519"]=n["ed25519"];var o={md5:true,sha1:true,sha256:true,sha384:true,sha512:true};var s={nistp256:{size:256,pkcs8oid:"1.2.840.10045.3.1.7",p:a.from(("00"+"ffffffff 00000001 00000000 00000000"+"00000000 ffffffff ffffffff ffffffff").replace(/ /g,""),"hex"),a:a.from(("00"+"FFFFFFFF 00000001 00000000 00000000"+"00000000 FFFFFFFF FFFFFFFF FFFFFFFC").replace(/ /g,""),"hex"),b:a.from(("5ac635d8 aa3a93e7 b3ebbd55 769886bc"+"651d06b0 cc53b0f6 3bce3c3e 27d2604b").replace(/ /g,""),"hex"),s:a.from(("00"+"c49d3608 86e70493 6a6678e1 139d26b7"+"819f7e90").replace(/ /g,""),"hex"),n:a.from(("00"+"ffffffff 00000000 ffffffff ffffffff"+"bce6faad a7179e84 f3b9cac2 fc632551").replace(/ /g,""),"hex"),G:a.from(("04"+"6b17d1f2 e12c4247 f8bce6e5 63a440f2"+"77037d81 2deb33a0 f4a13945 d898c296"+"4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16"+"2bce3357 6b315ece cbb64068 37bf51f5").replace(/ /g,""),"hex")},nistp384:{size:384,pkcs8oid:"1.3.132.0.34",p:a.from(("00"+"ffffffff ffffffff ffffffff ffffffff"+"ffffffff ffffffff ffffffff fffffffe"+"ffffffff 00000000 00000000 ffffffff").replace(/ /g,""),"hex"),a:a.from(("00"+"FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF"+"FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE"+"FFFFFFFF 00000000 00000000 FFFFFFFC").replace(/ /g,""),"hex"),b:a.from(("b3312fa7 e23ee7e4 988e056b e3f82d19"+"181d9c6e fe814112 0314088f 5013875a"+"c656398d 8a2ed19d 2a85c8ed d3ec2aef").replace(/ /g,""),"hex"),s:a.from(("00"+"a335926a a319a27a 1d00896a 6773a482"+"7acdac73").replace(/ /g,""),"hex"),n:a.from(("00"+"ffffffff ffffffff ffffffff ffffffff"+"ffffffff ffffffff c7634d81 f4372ddf"+"581a0db2 48b0a77a ecec196a ccc52973").replace(/ /g,""),"hex"),G:a.from(("04"+"aa87ca22 be8b0537 8eb1c71e f320ad74"+"6e1d3b62 8ba79b98 59f741e0 82542a38"+"5502f25d bf55296c 3a545e38 72760ab7"+"3617de4a 96262c6f 5d9e98bf 9292dc29"+"f8f41dbd 289a147c e9da3113 b5f0b8c0"+"0a60b1ce 1d7e819d 7a431d7c 90ea0e5f").replace(/ /g,""),"hex")},nistp521:{size:521,pkcs8oid:"1.3.132.0.35",p:a.from(("01ffffff ffffffff ffffffff ffffffff"+"ffffffff ffffffff ffffffff ffffffff"+"ffffffff ffffffff ffffffff ffffffff"+"ffffffff ffffffff ffffffff ffffffff"+"ffff").replace(/ /g,""),"hex"),a:a.from(("01FF"+"FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF"+"FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF"+"FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF"+"FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFC").replace(/ /g,""),"hex"),b:a.from(("51"+"953eb961 8e1c9a1f 929a21a0 b68540ee"+"a2da725b 99b315f3 b8b48991 8ef109e1"+"56193951 ec7e937b 1652c0bd 3bb1bf07"+"3573df88 3d2c34f1 ef451fd4 6b503f00").replace(/ /g,""),"hex"),s:a.from(("00"+"d09e8800 291cb853 96cc6717 393284aa"+"a0da64ba").replace(/ /g,""),"hex"),n:a.from(("01ff"+"ffffffff ffffffff ffffffff ffffffff"+"ffffffff ffffffff ffffffff fffffffa"+"51868783 bf2f966b 7fcc0148 f709a5d0"+"3bb5c9b8 899c47ae bb6fb71e 91386409").replace(/ /g,""),"hex"),G:a.from(("04"+"00c6 858e06b7 0404e9cd 9e3ecb66 2395b442"+"9c648139 053fb521 f828af60 6b4d3dba"+"a14b5e77 efe75928 fe1dc127 a2ffa8de"+"3348b3c1 856a429b f97e7e31 c2e5bd66"+"0118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9"+"98f54449 579b4468 17afbd17 273e662c"+"97ee7299 5ef42640 c550b901 3fad0761"+"353c7086 a272c240 88be9476 9fd16650").replace(/ /g,""),"hex")}};e.exports={info:i,privInfo:n,hashAlgs:o,curves:s}},function(e,t,r){"use strict";e=r.nmd(e);var a=r(440).getNewLibraryCopy(),i=r(957),n=r(654);try{var o=n(require.cache,function(){return r(830)},function(){r(701)},e)}catch(e){var s=r(365).EOL;console.error(s+"###"+s+'### The "request" library is not installed automatically anymore.'+s+'### But is a dependency of "request-promise".'+s+"### Please install it with:"+s+"### npm install request --save"+s+"###"+s);throw e}a.config({cancellation:true});i({request:o,PromiseImpl:a,expose:["then","catch","finally","cancel","promise"],constructorMixin:function(e,t,r){var a=this;r(function(){a.abort()})}});o.bindCLS=function RP$bindCLS(){throw new Error("CLS support was dropped. To get it back read: https://github.com/request/request-promise/wiki/Getting-Back-Support-for-Continuation-Local-Storage")};e.exports=o},function(e,t,r){"use strict";var a=r(19);e.exports=function ToPrimitive(e){if(arguments.length>1){return a(e,arguments[1])}return a(e)}},,,,function(e,t,r){r(63).config;const a=r(624);const{INPUT_STATUS:i,INPUT_TOKEN:n,INPUT_CHAT:o,INPUT_IU_TITLE:s,INPUT_IU_NUM:c,INPUT_IU_ACTOR:u,INPUT_IU_BODY:p,INPUT_PR_NUM:l,INPUT_PR_STATE:f,INPUT_PR_TITLE:m,INPUT_PR_BODY:d,GITHUB_EVENT_NAME:h,GITHUB_REPOSITORY:v,GITHUB_ACTOR:g,GITHUB_SHA:y,GITHUB_WORKFLOW:b,INPUT_PR_COMMIT_MESSAGE:k,INPUT_PR_BRANCH_NAME:x,WORKFLOW_SUCCESS:w,WORKFLOW_FAILURE:j}=process.env;const _=new a(n);const S=()=>{let e="Unknown";if(w){e="Success"}else if(j){e="Failure"}let t="-------------------------------------\n"+`Workflow build ${e}!\n`+`Title: ${s}\n`+`Branch: ${x}\n`+`User: ${g}\n`+"Commit Msg:\n"+`${k}\n\n`+`Job Log here\n`+`Link to issue/PR\n`+"--------------------------------------";return t};const E=e=>{switch(e){case"pull_request":return S()}};const P=E(h);_.sendMessage(o,P,{parse_mode:"html"})},,,function(e){"use strict";e.exports=function generate_allOf(e,t,r){var a=" ";var i=e.schema[t];var n=e.schemaPath+e.util.getProperty(t);var o=e.errSchemaPath+"/"+t;var s=!e.opts.allErrors;var c=e.util.copy(e);var u="";c.level++;var p="valid"+c.level;var l=c.baseId,f=true;var m=i;if(m){var d,h=-1,v=m.length-1;while(h0:e.util.schemaHasRules(d,e.RULES.all)){f=false;c.schema=d;c.schemaPath=n+"["+h+"]";c.errSchemaPath=o+"/"+h;a+=" "+e.validate(c)+" ";c.baseId=l;if(s){a+=" if ("+p+") { ";u+="}"}}}}if(s){if(f){a+=" if (true) { "}else{a+=" "+u.slice(0,-1)+" "}}return a}},,,,,,function(e,t,r){var a=r(417);function sha(e,t,r){return a.createHmac(r,e).update(t).digest("base64")}function rsa(e,t){return a.createSign("RSA-SHA1").update(t).sign(e,"base64")}function rfc3986(e){return encodeURIComponent(e).replace(/!/g,"%21").replace(/\*/g,"%2A").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}function map(e){var t,r,a=[];for(t in e){r=e[t];if(Array.isArray(r))for(var i=0;it?1:e0:e.util.schemaHasRules(o,e.RULES.all);a+="var "+f+" = errors;var "+l+";";if(k){var x=e.compositeRule;e.compositeRule=m.compositeRule=true;m.schema=o;m.schemaPath=s;m.errSchemaPath=c;a+=" var "+h+" = false; for (var "+v+" = 0; "+v+" < "+p+".length; "+v+"++) { ";m.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var w=p+"["+v+"]";m.dataPathArr[g]=v;var j=e.validate(m);m.baseId=b;if(e.util.varOccurences(j,y)<2){a+=" "+e.util.varReplace(j,y,w)+" "}else{a+=" var "+y+" = "+w+"; "+j+" "}a+=" if ("+h+") break; } ";e.compositeRule=m.compositeRule=x;a+=" "+d+" if (!"+h+") {"}else{a+=" if ("+p+".length == 0) {"}var _=_||[];_.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"contains"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'should contain a valid item' "}if(e.opts.verbose){a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}a+=" } "}else{a+=" {} "}var S=a;a=_.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+S+"]); "}else{a+=" validate.errors = ["+S+"]; return false; "}}else{a+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else { ";if(k){a+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "}if(e.opts.allErrors){a+=" } "}return a}},,,function(e,t,r){var a=r(751),i=r(566);e.exports=iterate;function iterate(e,t,r,a){var n=r["keyedList"]?r["keyedList"][r.index]:r.index;r.jobs[n]=runJob(t,n,e[n],function(e,t){if(!(n in r.jobs)){return}delete r.jobs[n];if(e){i(r)}else{r.results[n]=t}a(e,r.results)})}function runJob(e,t,r,i){var n;if(e.length==2){n=e(r,a(i))}else{n=e(r,t,a(i))}return n}},,,,,function(e){e.exports={$id:"content.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["size","mimeType"],properties:{size:{type:"integer"},compression:{type:"integer"},mimeType:{type:"string"},text:{type:"string"},encoding:{type:"string"},comment:{type:"string"}}}},,,,,,,,,,,,,,,,function(e){e.exports=function(e){return new LruCache(e)};function LruCache(e){this.capacity=e|0;this.map=Object.create(null);this.list=new DoublyLinkedList}LruCache.prototype.get=function(e){var t=this.map[e];if(t==null)return undefined;this.used(t);return t.val};LruCache.prototype.set=function(e,t){var r=this.map[e];if(r!=null){r.val=t}else{if(!this.capacity)this.prune();if(!this.capacity)return false;r=new DoublyLinkedNode(e,t);this.map[e]=r;this.capacity--}this.used(r);return true};LruCache.prototype.used=function(e){this.list.moveToFront(e)};LruCache.prototype.prune=function(){var e=this.list.pop();if(e!=null){delete this.map[e.key];this.capacity++}};function DoublyLinkedList(){this.firstNode=null;this.lastNode=null}DoublyLinkedList.prototype.moveToFront=function(e){if(this.firstNode==e)return;this.remove(e);if(this.firstNode==null){this.firstNode=e;this.lastNode=e;e.prev=null;e.next=null}else{e.prev=null;e.next=this.firstNode;e.next.prev=e;this.firstNode=e}};DoublyLinkedList.prototype.pop=function(){var e=this.lastNode;if(e!=null){this.remove(e)}return e};DoublyLinkedList.prototype.remove=function(e){if(this.firstNode==e){this.firstNode=e.next}else if(e.prev!=null){e.prev.next=e.next}if(this.lastNode==e){this.lastNode=e.prev}else if(e.next!=null){e.next.prev=e.prev}};function DoublyLinkedNode(e,t){this.key=e;this.val=t;this.prev=null;this.next=null}},,,function(e){e.exports={$id:"pageTimings.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",properties:{onContentLoad:{type:"number",min:-1},onLoad:{type:"number",min:-1},comment:{type:"string"}}}},,,,function(e,t){"use strict";var r=function(){function defineProperties(e,t){for(var r=0;r>24&255;e[t+1]=r>>16&255;e[t+2]=r>>8&255;e[t+3]=r&255;e[t+4]=a>>24&255;e[t+5]=a>>16&255;e[t+6]=a>>8&255;e[t+7]=a&255}function vn(e,t,r,a,i){var n,o=0;for(n=0;n>>8)-1}function crypto_verify_16(e,t,r,a){return vn(e,t,r,a,16)}function crypto_verify_32(e,t,r,a){return vn(e,t,r,a,32)}function core_salsa20(e,t,r,a){var i=a[0]&255|(a[1]&255)<<8|(a[2]&255)<<16|(a[3]&255)<<24,n=r[0]&255|(r[1]&255)<<8|(r[2]&255)<<16|(r[3]&255)<<24,o=r[4]&255|(r[5]&255)<<8|(r[6]&255)<<16|(r[7]&255)<<24,s=r[8]&255|(r[9]&255)<<8|(r[10]&255)<<16|(r[11]&255)<<24,c=r[12]&255|(r[13]&255)<<8|(r[14]&255)<<16|(r[15]&255)<<24,u=a[4]&255|(a[5]&255)<<8|(a[6]&255)<<16|(a[7]&255)<<24,p=t[0]&255|(t[1]&255)<<8|(t[2]&255)<<16|(t[3]&255)<<24,l=t[4]&255|(t[5]&255)<<8|(t[6]&255)<<16|(t[7]&255)<<24,f=t[8]&255|(t[9]&255)<<8|(t[10]&255)<<16|(t[11]&255)<<24,m=t[12]&255|(t[13]&255)<<8|(t[14]&255)<<16|(t[15]&255)<<24,d=a[8]&255|(a[9]&255)<<8|(a[10]&255)<<16|(a[11]&255)<<24,h=r[16]&255|(r[17]&255)<<8|(r[18]&255)<<16|(r[19]&255)<<24,v=r[20]&255|(r[21]&255)<<8|(r[22]&255)<<16|(r[23]&255)<<24,g=r[24]&255|(r[25]&255)<<8|(r[26]&255)<<16|(r[27]&255)<<24,y=r[28]&255|(r[29]&255)<<8|(r[30]&255)<<16|(r[31]&255)<<24,b=a[12]&255|(a[13]&255)<<8|(a[14]&255)<<16|(a[15]&255)<<24;var k=i,x=n,w=o,j=s,_=c,S=u,E=p,P=l,C=f,F=m,A=d,T=h,q=v,z=g,O=y,B=b,D;for(var I=0;I<20;I+=2){D=k+q|0;_^=D<<7|D>>>32-7;D=_+k|0;C^=D<<9|D>>>32-9;D=C+_|0;q^=D<<13|D>>>32-13;D=q+C|0;k^=D<<18|D>>>32-18;D=S+x|0;F^=D<<7|D>>>32-7;D=F+S|0;z^=D<<9|D>>>32-9;D=z+F|0;x^=D<<13|D>>>32-13;D=x+z|0;S^=D<<18|D>>>32-18;D=A+E|0;O^=D<<7|D>>>32-7;D=O+A|0;w^=D<<9|D>>>32-9;D=w+O|0;E^=D<<13|D>>>32-13;D=E+w|0;A^=D<<18|D>>>32-18;D=B+T|0;j^=D<<7|D>>>32-7;D=j+B|0;P^=D<<9|D>>>32-9;D=P+j|0;T^=D<<13|D>>>32-13;D=T+P|0;B^=D<<18|D>>>32-18;D=k+j|0;x^=D<<7|D>>>32-7;D=x+k|0;w^=D<<9|D>>>32-9;D=w+x|0;j^=D<<13|D>>>32-13;D=j+w|0;k^=D<<18|D>>>32-18;D=S+_|0;E^=D<<7|D>>>32-7;D=E+S|0;P^=D<<9|D>>>32-9;D=P+E|0;_^=D<<13|D>>>32-13;D=_+P|0;S^=D<<18|D>>>32-18;D=A+F|0;T^=D<<7|D>>>32-7;D=T+A|0;C^=D<<9|D>>>32-9;D=C+T|0;F^=D<<13|D>>>32-13;D=F+C|0;A^=D<<18|D>>>32-18;D=B+O|0;q^=D<<7|D>>>32-7;D=q+B|0;z^=D<<9|D>>>32-9;D=z+q|0;O^=D<<13|D>>>32-13;D=O+z|0;B^=D<<18|D>>>32-18}k=k+i|0;x=x+n|0;w=w+o|0;j=j+s|0;_=_+c|0;S=S+u|0;E=E+p|0;P=P+l|0;C=C+f|0;F=F+m|0;A=A+d|0;T=T+h|0;q=q+v|0;z=z+g|0;O=O+y|0;B=B+b|0;e[0]=k>>>0&255;e[1]=k>>>8&255;e[2]=k>>>16&255;e[3]=k>>>24&255;e[4]=x>>>0&255;e[5]=x>>>8&255;e[6]=x>>>16&255;e[7]=x>>>24&255;e[8]=w>>>0&255;e[9]=w>>>8&255;e[10]=w>>>16&255;e[11]=w>>>24&255;e[12]=j>>>0&255;e[13]=j>>>8&255;e[14]=j>>>16&255;e[15]=j>>>24&255;e[16]=_>>>0&255;e[17]=_>>>8&255;e[18]=_>>>16&255;e[19]=_>>>24&255;e[20]=S>>>0&255;e[21]=S>>>8&255;e[22]=S>>>16&255;e[23]=S>>>24&255;e[24]=E>>>0&255;e[25]=E>>>8&255;e[26]=E>>>16&255;e[27]=E>>>24&255;e[28]=P>>>0&255;e[29]=P>>>8&255;e[30]=P>>>16&255;e[31]=P>>>24&255;e[32]=C>>>0&255;e[33]=C>>>8&255;e[34]=C>>>16&255;e[35]=C>>>24&255;e[36]=F>>>0&255;e[37]=F>>>8&255;e[38]=F>>>16&255;e[39]=F>>>24&255;e[40]=A>>>0&255;e[41]=A>>>8&255;e[42]=A>>>16&255;e[43]=A>>>24&255;e[44]=T>>>0&255;e[45]=T>>>8&255;e[46]=T>>>16&255;e[47]=T>>>24&255;e[48]=q>>>0&255;e[49]=q>>>8&255;e[50]=q>>>16&255;e[51]=q>>>24&255;e[52]=z>>>0&255;e[53]=z>>>8&255;e[54]=z>>>16&255;e[55]=z>>>24&255;e[56]=O>>>0&255;e[57]=O>>>8&255;e[58]=O>>>16&255;e[59]=O>>>24&255;e[60]=B>>>0&255;e[61]=B>>>8&255;e[62]=B>>>16&255;e[63]=B>>>24&255}function core_hsalsa20(e,t,r,a){var i=a[0]&255|(a[1]&255)<<8|(a[2]&255)<<16|(a[3]&255)<<24,n=r[0]&255|(r[1]&255)<<8|(r[2]&255)<<16|(r[3]&255)<<24,o=r[4]&255|(r[5]&255)<<8|(r[6]&255)<<16|(r[7]&255)<<24,s=r[8]&255|(r[9]&255)<<8|(r[10]&255)<<16|(r[11]&255)<<24,c=r[12]&255|(r[13]&255)<<8|(r[14]&255)<<16|(r[15]&255)<<24,u=a[4]&255|(a[5]&255)<<8|(a[6]&255)<<16|(a[7]&255)<<24,p=t[0]&255|(t[1]&255)<<8|(t[2]&255)<<16|(t[3]&255)<<24,l=t[4]&255|(t[5]&255)<<8|(t[6]&255)<<16|(t[7]&255)<<24,f=t[8]&255|(t[9]&255)<<8|(t[10]&255)<<16|(t[11]&255)<<24,m=t[12]&255|(t[13]&255)<<8|(t[14]&255)<<16|(t[15]&255)<<24,d=a[8]&255|(a[9]&255)<<8|(a[10]&255)<<16|(a[11]&255)<<24,h=r[16]&255|(r[17]&255)<<8|(r[18]&255)<<16|(r[19]&255)<<24,v=r[20]&255|(r[21]&255)<<8|(r[22]&255)<<16|(r[23]&255)<<24,g=r[24]&255|(r[25]&255)<<8|(r[26]&255)<<16|(r[27]&255)<<24,y=r[28]&255|(r[29]&255)<<8|(r[30]&255)<<16|(r[31]&255)<<24,b=a[12]&255|(a[13]&255)<<8|(a[14]&255)<<16|(a[15]&255)<<24;var k=i,x=n,w=o,j=s,_=c,S=u,E=p,P=l,C=f,F=m,A=d,T=h,q=v,z=g,O=y,B=b,D;for(var I=0;I<20;I+=2){D=k+q|0;_^=D<<7|D>>>32-7;D=_+k|0;C^=D<<9|D>>>32-9;D=C+_|0;q^=D<<13|D>>>32-13;D=q+C|0;k^=D<<18|D>>>32-18;D=S+x|0;F^=D<<7|D>>>32-7;D=F+S|0;z^=D<<9|D>>>32-9;D=z+F|0;x^=D<<13|D>>>32-13;D=x+z|0;S^=D<<18|D>>>32-18;D=A+E|0;O^=D<<7|D>>>32-7;D=O+A|0;w^=D<<9|D>>>32-9;D=w+O|0;E^=D<<13|D>>>32-13;D=E+w|0;A^=D<<18|D>>>32-18;D=B+T|0;j^=D<<7|D>>>32-7;D=j+B|0;P^=D<<9|D>>>32-9;D=P+j|0;T^=D<<13|D>>>32-13;D=T+P|0;B^=D<<18|D>>>32-18;D=k+j|0;x^=D<<7|D>>>32-7;D=x+k|0;w^=D<<9|D>>>32-9;D=w+x|0;j^=D<<13|D>>>32-13;D=j+w|0;k^=D<<18|D>>>32-18;D=S+_|0;E^=D<<7|D>>>32-7;D=E+S|0;P^=D<<9|D>>>32-9;D=P+E|0;_^=D<<13|D>>>32-13;D=_+P|0;S^=D<<18|D>>>32-18;D=A+F|0;T^=D<<7|D>>>32-7;D=T+A|0;C^=D<<9|D>>>32-9;D=C+T|0;F^=D<<13|D>>>32-13;D=F+C|0;A^=D<<18|D>>>32-18;D=B+O|0;q^=D<<7|D>>>32-7;D=q+B|0;z^=D<<9|D>>>32-9;D=z+q|0;O^=D<<13|D>>>32-13;D=O+z|0;B^=D<<18|D>>>32-18}e[0]=k>>>0&255;e[1]=k>>>8&255;e[2]=k>>>16&255;e[3]=k>>>24&255;e[4]=S>>>0&255;e[5]=S>>>8&255;e[6]=S>>>16&255;e[7]=S>>>24&255;e[8]=A>>>0&255;e[9]=A>>>8&255;e[10]=A>>>16&255;e[11]=A>>>24&255;e[12]=B>>>0&255;e[13]=B>>>8&255;e[14]=B>>>16&255;e[15]=B>>>24&255;e[16]=E>>>0&255;e[17]=E>>>8&255;e[18]=E>>>16&255;e[19]=E>>>24&255;e[20]=P>>>0&255;e[21]=P>>>8&255;e[22]=P>>>16&255;e[23]=P>>>24&255;e[24]=C>>>0&255;e[25]=C>>>8&255;e[26]=C>>>16&255;e[27]=C>>>24&255;e[28]=F>>>0&255;e[29]=F>>>8&255;e[30]=F>>>16&255;e[31]=F>>>24&255}function crypto_core_salsa20(e,t,r,a){core_salsa20(e,t,r,a)}function crypto_core_hsalsa20(e,t,r,a){core_hsalsa20(e,t,r,a)}var d=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function crypto_stream_salsa20_xor(e,t,r,a,i,n,o){var s=new Uint8Array(16),c=new Uint8Array(64);var u,p;for(p=0;p<16;p++)s[p]=0;for(p=0;p<8;p++)s[p]=n[p];while(i>=64){crypto_core_salsa20(c,s,o,d);for(p=0;p<64;p++)e[t+p]=r[a+p]^c[p];u=1;for(p=8;p<16;p++){u=u+(s[p]&255)|0;s[p]=u&255;u>>>=8}i-=64;t+=64;a+=64}if(i>0){crypto_core_salsa20(c,s,o,d);for(p=0;p=64){crypto_core_salsa20(o,n,i,d);for(c=0;c<64;c++)e[t+c]=o[c];s=1;for(c=8;c<16;c++){s=s+(n[c]&255)|0;n[c]=s&255;s>>>=8}r-=64;t+=64}if(r>0){crypto_core_salsa20(o,n,i,d);for(c=0;c>>13|r<<3)&8191;a=e[4]&255|(e[5]&255)<<8;this.r[2]=(r>>>10|a<<6)&7939;i=e[6]&255|(e[7]&255)<<8;this.r[3]=(a>>>7|i<<9)&8191;n=e[8]&255|(e[9]&255)<<8;this.r[4]=(i>>>4|n<<12)&255;this.r[5]=n>>>1&8190;o=e[10]&255|(e[11]&255)<<8;this.r[6]=(n>>>14|o<<2)&8191;s=e[12]&255|(e[13]&255)<<8;this.r[7]=(o>>>11|s<<5)&8065;c=e[14]&255|(e[15]&255)<<8;this.r[8]=(s>>>8|c<<8)&8191;this.r[9]=c>>>5&127;this.pad[0]=e[16]&255|(e[17]&255)<<8;this.pad[1]=e[18]&255|(e[19]&255)<<8;this.pad[2]=e[20]&255|(e[21]&255)<<8;this.pad[3]=e[22]&255|(e[23]&255)<<8;this.pad[4]=e[24]&255|(e[25]&255)<<8;this.pad[5]=e[26]&255|(e[27]&255)<<8;this.pad[6]=e[28]&255|(e[29]&255)<<8;this.pad[7]=e[30]&255|(e[31]&255)<<8};h.prototype.blocks=function(e,t,r){var a=this.fin?0:1<<11;var i,n,o,s,c,u,p,l,f;var m,d,h,v,g,y,b,k,x,w;var j=this.h[0],_=this.h[1],S=this.h[2],E=this.h[3],P=this.h[4],C=this.h[5],F=this.h[6],A=this.h[7],T=this.h[8],q=this.h[9];var z=this.r[0],O=this.r[1],B=this.r[2],D=this.r[3],I=this.r[4],R=this.r[5],M=this.r[6],L=this.r[7],N=this.r[8],H=this.r[9];while(r>=16){i=e[t+0]&255|(e[t+1]&255)<<8;j+=i&8191;n=e[t+2]&255|(e[t+3]&255)<<8;_+=(i>>>13|n<<3)&8191;o=e[t+4]&255|(e[t+5]&255)<<8;S+=(n>>>10|o<<6)&8191;s=e[t+6]&255|(e[t+7]&255)<<8;E+=(o>>>7|s<<9)&8191;c=e[t+8]&255|(e[t+9]&255)<<8;P+=(s>>>4|c<<12)&8191;C+=c>>>1&8191;u=e[t+10]&255|(e[t+11]&255)<<8;F+=(c>>>14|u<<2)&8191;p=e[t+12]&255|(e[t+13]&255)<<8;A+=(u>>>11|p<<5)&8191;l=e[t+14]&255|(e[t+15]&255)<<8;T+=(p>>>8|l<<8)&8191;q+=l>>>5|a;f=0;m=f;m+=j*z;m+=_*(5*H);m+=S*(5*N);m+=E*(5*L);m+=P*(5*M);f=m>>>13;m&=8191;m+=C*(5*R);m+=F*(5*I);m+=A*(5*D);m+=T*(5*B);m+=q*(5*O);f+=m>>>13;m&=8191;d=f;d+=j*O;d+=_*z;d+=S*(5*H);d+=E*(5*N);d+=P*(5*L);f=d>>>13;d&=8191;d+=C*(5*M);d+=F*(5*R);d+=A*(5*I);d+=T*(5*D);d+=q*(5*B);f+=d>>>13;d&=8191;h=f;h+=j*B;h+=_*O;h+=S*z;h+=E*(5*H);h+=P*(5*N);f=h>>>13;h&=8191;h+=C*(5*L);h+=F*(5*M);h+=A*(5*R);h+=T*(5*I);h+=q*(5*D);f+=h>>>13;h&=8191;v=f;v+=j*D;v+=_*B;v+=S*O;v+=E*z;v+=P*(5*H);f=v>>>13;v&=8191;v+=C*(5*N);v+=F*(5*L);v+=A*(5*M);v+=T*(5*R);v+=q*(5*I);f+=v>>>13;v&=8191;g=f;g+=j*I;g+=_*D;g+=S*B;g+=E*O;g+=P*z;f=g>>>13;g&=8191;g+=C*(5*H);g+=F*(5*N);g+=A*(5*L);g+=T*(5*M);g+=q*(5*R);f+=g>>>13;g&=8191;y=f;y+=j*R;y+=_*I;y+=S*D;y+=E*B;y+=P*O;f=y>>>13;y&=8191;y+=C*z;y+=F*(5*H);y+=A*(5*N);y+=T*(5*L);y+=q*(5*M);f+=y>>>13;y&=8191;b=f;b+=j*M;b+=_*R;b+=S*I;b+=E*D;b+=P*B;f=b>>>13;b&=8191;b+=C*O;b+=F*z;b+=A*(5*H);b+=T*(5*N);b+=q*(5*L);f+=b>>>13;b&=8191;k=f;k+=j*L;k+=_*M;k+=S*R;k+=E*I;k+=P*D;f=k>>>13;k&=8191;k+=C*B;k+=F*O;k+=A*z;k+=T*(5*H);k+=q*(5*N);f+=k>>>13;k&=8191;x=f;x+=j*N;x+=_*L;x+=S*M;x+=E*R;x+=P*I;f=x>>>13;x&=8191;x+=C*D;x+=F*B;x+=A*O;x+=T*z;x+=q*(5*H);f+=x>>>13;x&=8191;w=f;w+=j*H;w+=_*N;w+=S*L;w+=E*M;w+=P*R;f=w>>>13;w&=8191;w+=C*I;w+=F*D;w+=A*B;w+=T*O;w+=q*z;f+=w>>>13;w&=8191;f=(f<<2)+f|0;f=f+m|0;m=f&8191;f=f>>>13;d+=f;j=m;_=d;S=h;E=v;P=g;C=y;F=b;A=k;T=x;q=w;t+=16;r-=16}this.h[0]=j;this.h[1]=_;this.h[2]=S;this.h[3]=E;this.h[4]=P;this.h[5]=C;this.h[6]=F;this.h[7]=A;this.h[8]=T;this.h[9]=q};h.prototype.finish=function(e,t){var r=new Uint16Array(10);var a,i,n,o;if(this.leftover){o=this.leftover;this.buffer[o++]=1;for(;o<16;o++)this.buffer[o]=0;this.fin=1;this.blocks(this.buffer,0,16)}a=this.h[1]>>>13;this.h[1]&=8191;for(o=2;o<10;o++){this.h[o]+=a;a=this.h[o]>>>13;this.h[o]&=8191}this.h[0]+=a*5;a=this.h[0]>>>13;this.h[0]&=8191;this.h[1]+=a;a=this.h[1]>>>13;this.h[1]&=8191;this.h[2]+=a;r[0]=this.h[0]+5;a=r[0]>>>13;r[0]&=8191;for(o=1;o<10;o++){r[o]=this.h[o]+a;a=r[o]>>>13;r[o]&=8191}r[9]-=1<<13;i=(a^1)-1;for(o=0;o<10;o++)r[o]&=i;i=~i;for(o=0;o<10;o++)this.h[o]=this.h[o]&i|r[o];this.h[0]=(this.h[0]|this.h[1]<<13)&65535;this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535;this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535;this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535;this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535;this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535;this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535;this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535;n=this.h[0]+this.pad[0];this.h[0]=n&65535;for(o=1;o<8;o++){n=(this.h[o]+this.pad[o]|0)+(n>>>16)|0;this.h[o]=n&65535}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};h.prototype.update=function(e,t,r){var a,i;if(this.leftover){i=16-this.leftover;if(i>r)i=r;for(a=0;a=16){i=r-r%16;this.blocks(e,t,i);t+=i;r-=i}if(r){for(a=0;a>16&1);o[a-1]&=65535}o[15]=s[15]-32767-(o[14]>>16&1);n=o[15]>>16&1;o[14]&=65535;sel25519(s,o,1-n)}for(a=0;a<16;a++){e[2*a]=s[a]&255;e[2*a+1]=s[a]>>8}}function neq25519(e,t){var r=new Uint8Array(32),a=new Uint8Array(32);pack25519(r,e);pack25519(a,t);return crypto_verify_32(r,0,a,0)}function par25519(e){var t=new Uint8Array(32);pack25519(t,e);return t[0]&1}function unpack25519(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function A(e,t,r){for(var a=0;a<16;a++)e[a]=t[a]+r[a]}function Z(e,t,r){for(var a=0;a<16;a++)e[a]=t[a]-r[a]}function M(e,t,r){var a,i,n=0,o=0,s=0,c=0,u=0,p=0,l=0,f=0,m=0,d=0,h=0,v=0,g=0,y=0,b=0,k=0,x=0,w=0,j=0,_=0,S=0,E=0,P=0,C=0,F=0,A=0,T=0,q=0,z=0,O=0,B=0,D=r[0],I=r[1],R=r[2],M=r[3],L=r[4],N=r[5],H=r[6],U=r[7],$=r[8],K=r[9],V=r[10],W=r[11],Q=r[12],G=r[13],J=r[14],X=r[15];a=t[0];n+=a*D;o+=a*I;s+=a*R;c+=a*M;u+=a*L;p+=a*N;l+=a*H;f+=a*U;m+=a*$;d+=a*K;h+=a*V;v+=a*W;g+=a*Q;y+=a*G;b+=a*J;k+=a*X;a=t[1];o+=a*D;s+=a*I;c+=a*R;u+=a*M;p+=a*L;l+=a*N;f+=a*H;m+=a*U;d+=a*$;h+=a*K;v+=a*V;g+=a*W;y+=a*Q;b+=a*G;k+=a*J;x+=a*X;a=t[2];s+=a*D;c+=a*I;u+=a*R;p+=a*M;l+=a*L;f+=a*N;m+=a*H;d+=a*U;h+=a*$;v+=a*K;g+=a*V;y+=a*W;b+=a*Q;k+=a*G;x+=a*J;w+=a*X;a=t[3];c+=a*D;u+=a*I;p+=a*R;l+=a*M;f+=a*L;m+=a*N;d+=a*H;h+=a*U;v+=a*$;g+=a*K;y+=a*V;b+=a*W;k+=a*Q;x+=a*G;w+=a*J;j+=a*X;a=t[4];u+=a*D;p+=a*I;l+=a*R;f+=a*M;m+=a*L;d+=a*N;h+=a*H;v+=a*U;g+=a*$;y+=a*K;b+=a*V;k+=a*W;x+=a*Q;w+=a*G;j+=a*J;_+=a*X;a=t[5];p+=a*D;l+=a*I;f+=a*R;m+=a*M;d+=a*L;h+=a*N;v+=a*H;g+=a*U;y+=a*$;b+=a*K;k+=a*V;x+=a*W;w+=a*Q;j+=a*G;_+=a*J;S+=a*X;a=t[6];l+=a*D;f+=a*I;m+=a*R;d+=a*M;h+=a*L;v+=a*N;g+=a*H;y+=a*U;b+=a*$;k+=a*K;x+=a*V;w+=a*W;j+=a*Q;_+=a*G;S+=a*J;E+=a*X;a=t[7];f+=a*D;m+=a*I;d+=a*R;h+=a*M;v+=a*L;g+=a*N;y+=a*H;b+=a*U;k+=a*$;x+=a*K;w+=a*V;j+=a*W;_+=a*Q;S+=a*G;E+=a*J;P+=a*X;a=t[8];m+=a*D;d+=a*I;h+=a*R;v+=a*M;g+=a*L;y+=a*N;b+=a*H;k+=a*U;x+=a*$;w+=a*K;j+=a*V;_+=a*W;S+=a*Q;E+=a*G;P+=a*J;C+=a*X;a=t[9];d+=a*D;h+=a*I;v+=a*R;g+=a*M;y+=a*L;b+=a*N;k+=a*H;x+=a*U;w+=a*$;j+=a*K;_+=a*V;S+=a*W;E+=a*Q;P+=a*G;C+=a*J;F+=a*X;a=t[10];h+=a*D;v+=a*I;g+=a*R;y+=a*M;b+=a*L;k+=a*N;x+=a*H;w+=a*U;j+=a*$;_+=a*K;S+=a*V;E+=a*W;P+=a*Q;C+=a*G;F+=a*J;A+=a*X;a=t[11];v+=a*D;g+=a*I;y+=a*R;b+=a*M;k+=a*L;x+=a*N;w+=a*H;j+=a*U;_+=a*$;S+=a*K;E+=a*V;P+=a*W;C+=a*Q;F+=a*G;A+=a*J;T+=a*X;a=t[12];g+=a*D;y+=a*I;b+=a*R;k+=a*M;x+=a*L;w+=a*N;j+=a*H;_+=a*U;S+=a*$;E+=a*K;P+=a*V;C+=a*W;F+=a*Q;A+=a*G;T+=a*J;q+=a*X;a=t[13];y+=a*D;b+=a*I;k+=a*R;x+=a*M;w+=a*L;j+=a*N;_+=a*H;S+=a*U;E+=a*$;P+=a*K;C+=a*V;F+=a*W;A+=a*Q;T+=a*G;q+=a*J;z+=a*X;a=t[14];b+=a*D;k+=a*I;x+=a*R;w+=a*M;j+=a*L;_+=a*N;S+=a*H;E+=a*U;P+=a*$;C+=a*K;F+=a*V;A+=a*W;T+=a*Q;q+=a*G;z+=a*J;O+=a*X;a=t[15];k+=a*D;x+=a*I;w+=a*R;j+=a*M;_+=a*L;S+=a*N;E+=a*H;P+=a*U;C+=a*$;F+=a*K;A+=a*V;T+=a*W;q+=a*Q;z+=a*G;O+=a*J;B+=a*X;n+=38*x;o+=38*w;s+=38*j;c+=38*_;u+=38*S;p+=38*E;l+=38*P;f+=38*C;m+=38*F;d+=38*A;h+=38*T;v+=38*q;g+=38*z;y+=38*O;b+=38*B;i=1;a=n+i+65535;i=Math.floor(a/65536);n=a-i*65536;a=o+i+65535;i=Math.floor(a/65536);o=a-i*65536;a=s+i+65535;i=Math.floor(a/65536);s=a-i*65536;a=c+i+65535;i=Math.floor(a/65536);c=a-i*65536;a=u+i+65535;i=Math.floor(a/65536);u=a-i*65536;a=p+i+65535;i=Math.floor(a/65536);p=a-i*65536;a=l+i+65535;i=Math.floor(a/65536);l=a-i*65536;a=f+i+65535;i=Math.floor(a/65536);f=a-i*65536;a=m+i+65535;i=Math.floor(a/65536);m=a-i*65536;a=d+i+65535;i=Math.floor(a/65536);d=a-i*65536;a=h+i+65535;i=Math.floor(a/65536);h=a-i*65536;a=v+i+65535;i=Math.floor(a/65536);v=a-i*65536;a=g+i+65535;i=Math.floor(a/65536);g=a-i*65536;a=y+i+65535;i=Math.floor(a/65536);y=a-i*65536;a=b+i+65535;i=Math.floor(a/65536);b=a-i*65536;a=k+i+65535;i=Math.floor(a/65536);k=a-i*65536;n+=i-1+37*(i-1);i=1;a=n+i+65535;i=Math.floor(a/65536);n=a-i*65536;a=o+i+65535;i=Math.floor(a/65536);o=a-i*65536;a=s+i+65535;i=Math.floor(a/65536);s=a-i*65536;a=c+i+65535;i=Math.floor(a/65536);c=a-i*65536;a=u+i+65535;i=Math.floor(a/65536);u=a-i*65536;a=p+i+65535;i=Math.floor(a/65536);p=a-i*65536;a=l+i+65535;i=Math.floor(a/65536);l=a-i*65536;a=f+i+65535;i=Math.floor(a/65536);f=a-i*65536;a=m+i+65535;i=Math.floor(a/65536);m=a-i*65536;a=d+i+65535;i=Math.floor(a/65536);d=a-i*65536;a=h+i+65535;i=Math.floor(a/65536);h=a-i*65536;a=v+i+65535;i=Math.floor(a/65536);v=a-i*65536;a=g+i+65535;i=Math.floor(a/65536);g=a-i*65536;a=y+i+65535;i=Math.floor(a/65536);y=a-i*65536;a=b+i+65535;i=Math.floor(a/65536);b=a-i*65536;a=k+i+65535;i=Math.floor(a/65536);k=a-i*65536;n+=i-1+37*(i-1);e[0]=n;e[1]=o;e[2]=s;e[3]=c;e[4]=u;e[5]=p;e[6]=l;e[7]=f;e[8]=m;e[9]=d;e[10]=h;e[11]=v;e[12]=g;e[13]=y;e[14]=b;e[15]=k}function S(e,t){M(e,t,t)}function inv25519(e,r){var a=t();var i;for(i=0;i<16;i++)a[i]=r[i];for(i=253;i>=0;i--){S(a,a);if(i!==2&&i!==4)M(a,a,r)}for(i=0;i<16;i++)e[i]=a[i]}function pow2523(e,r){var a=t();var i;for(i=0;i<16;i++)a[i]=r[i];for(i=250;i>=0;i--){S(a,a);if(i!==1)M(a,a,r)}for(i=0;i<16;i++)e[i]=a[i]}function crypto_scalarmult(e,r,a){var i=new Uint8Array(32);var n=new Float64Array(80),o,s;var u=t(),p=t(),l=t(),f=t(),m=t(),d=t();for(s=0;s<31;s++)i[s]=r[s];i[31]=r[31]&127|64;i[0]&=248;unpack25519(n,a);for(s=0;s<16;s++){p[s]=n[s];f[s]=u[s]=l[s]=0}u[0]=f[0]=1;for(s=254;s>=0;--s){o=i[s>>>3]>>>(s&7)&1;sel25519(u,p,o);sel25519(l,f,o);A(m,u,l);Z(u,u,l);A(l,p,f);Z(p,p,f);S(f,m);S(d,u);M(u,l,u);M(l,p,m);A(m,u,l);Z(u,u,l);S(p,u);Z(l,f,d);M(u,l,c);A(u,u,f);M(l,l,u);M(u,f,d);M(f,p,n);S(p,m);sel25519(u,p,o);sel25519(l,f,o)}for(s=0;s<16;s++){n[s+16]=u[s];n[s+32]=l[s];n[s+48]=p[s];n[s+64]=f[s]}var h=n.subarray(32);var v=n.subarray(16);inv25519(h,h);M(v,v,h);pack25519(e,v);return 0}function crypto_scalarmult_base(e,t){return crypto_scalarmult(e,t,n)}function crypto_box_keypair(e,t){a(t,32);return crypto_scalarmult_base(e,t)}function crypto_box_beforenm(e,t,r){var a=new Uint8Array(32);crypto_scalarmult(a,r,t);return crypto_core_hsalsa20(e,i,a,d)}var v=crypto_secretbox;var g=crypto_secretbox_open;function crypto_box(e,t,r,a,i,n){var o=new Uint8Array(32);crypto_box_beforenm(o,i,n);return v(e,t,r,a,o)}function crypto_box_open(e,t,r,a,i,n){var o=new Uint8Array(32);crypto_box_beforenm(o,i,n);return g(e,t,r,a,o)}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 crypto_hashblocks_hl(e,t,r,a){var i=new Int32Array(16),n=new Int32Array(16),o,s,c,u,p,l,f,m,d,h,v,g,b,k,x,w,j,_,S,E,P,C,F,A,T,q;var z=e[0],O=e[1],B=e[2],D=e[3],I=e[4],R=e[5],M=e[6],L=e[7],N=t[0],H=t[1],U=t[2],$=t[3],K=t[4],V=t[5],W=t[6],Q=t[7];var G=0;while(a>=128){for(S=0;S<16;S++){E=8*S+G;i[S]=r[E+0]<<24|r[E+1]<<16|r[E+2]<<8|r[E+3];n[S]=r[E+4]<<24|r[E+5]<<16|r[E+6]<<8|r[E+7]}for(S=0;S<80;S++){o=z;s=O;c=B;u=D;p=I;l=R;f=M;m=L;d=N;h=H;v=U;g=$;b=K;k=V;x=W;w=Q;P=L;C=Q;F=C&65535;A=C>>>16;T=P&65535;q=P>>>16;P=(I>>>14|K<<32-14)^(I>>>18|K<<32-18)^(K>>>41-32|I<<32-(41-32));C=(K>>>14|I<<32-14)^(K>>>18|I<<32-18)^(I>>>41-32|K<<32-(41-32));F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;P=I&R^~I&M;C=K&V^~K&W;F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;P=y[S*2];C=y[S*2+1];F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;P=i[S%16];C=n[S%16];F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;A+=F>>>16;T+=A>>>16;q+=T>>>16;j=T&65535|q<<16;_=F&65535|A<<16;P=j;C=_;F=C&65535;A=C>>>16;T=P&65535;q=P>>>16;P=(z>>>28|N<<32-28)^(N>>>34-32|z<<32-(34-32))^(N>>>39-32|z<<32-(39-32));C=(N>>>28|z<<32-28)^(z>>>34-32|N<<32-(34-32))^(z>>>39-32|N<<32-(39-32));F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;P=z&O^z&B^O&B;C=N&H^N&U^H&U;F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;A+=F>>>16;T+=A>>>16;q+=T>>>16;m=T&65535|q<<16;w=F&65535|A<<16;P=u;C=g;F=C&65535;A=C>>>16;T=P&65535;q=P>>>16;P=j;C=_;F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;A+=F>>>16;T+=A>>>16;q+=T>>>16;u=T&65535|q<<16;g=F&65535|A<<16;O=o;B=s;D=c;I=u;R=p;M=l;L=f;z=m;H=d;U=h;$=v;K=g;V=b;W=k;Q=x;N=w;if(S%16===15){for(E=0;E<16;E++){P=i[E];C=n[E];F=C&65535;A=C>>>16;T=P&65535;q=P>>>16;P=i[(E+9)%16];C=n[(E+9)%16];F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;j=i[(E+1)%16];_=n[(E+1)%16];P=(j>>>1|_<<32-1)^(j>>>8|_<<32-8)^j>>>7;C=(_>>>1|j<<32-1)^(_>>>8|j<<32-8)^(_>>>7|j<<32-7);F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;j=i[(E+14)%16];_=n[(E+14)%16];P=(j>>>19|_<<32-19)^(_>>>61-32|j<<32-(61-32))^j>>>6;C=(_>>>19|j<<32-19)^(j>>>61-32|_<<32-(61-32))^(_>>>6|j<<32-6);F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;A+=F>>>16;T+=A>>>16;q+=T>>>16;i[E]=T&65535|q<<16;n[E]=F&65535|A<<16}}}P=z;C=N;F=C&65535;A=C>>>16;T=P&65535;q=P>>>16;P=e[0];C=t[0];F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;A+=F>>>16;T+=A>>>16;q+=T>>>16;e[0]=z=T&65535|q<<16;t[0]=N=F&65535|A<<16;P=O;C=H;F=C&65535;A=C>>>16;T=P&65535;q=P>>>16;P=e[1];C=t[1];F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;A+=F>>>16;T+=A>>>16;q+=T>>>16;e[1]=O=T&65535|q<<16;t[1]=H=F&65535|A<<16;P=B;C=U;F=C&65535;A=C>>>16;T=P&65535;q=P>>>16;P=e[2];C=t[2];F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;A+=F>>>16;T+=A>>>16;q+=T>>>16;e[2]=B=T&65535|q<<16;t[2]=U=F&65535|A<<16;P=D;C=$;F=C&65535;A=C>>>16;T=P&65535;q=P>>>16;P=e[3];C=t[3];F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;A+=F>>>16;T+=A>>>16;q+=T>>>16;e[3]=D=T&65535|q<<16;t[3]=$=F&65535|A<<16;P=I;C=K;F=C&65535;A=C>>>16;T=P&65535;q=P>>>16;P=e[4];C=t[4];F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;A+=F>>>16;T+=A>>>16;q+=T>>>16;e[4]=I=T&65535|q<<16;t[4]=K=F&65535|A<<16;P=R;C=V;F=C&65535;A=C>>>16;T=P&65535;q=P>>>16;P=e[5];C=t[5];F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;A+=F>>>16;T+=A>>>16;q+=T>>>16;e[5]=R=T&65535|q<<16;t[5]=V=F&65535|A<<16;P=M;C=W;F=C&65535;A=C>>>16;T=P&65535;q=P>>>16;P=e[6];C=t[6];F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;A+=F>>>16;T+=A>>>16;q+=T>>>16;e[6]=M=T&65535|q<<16;t[6]=W=F&65535|A<<16;P=L;C=Q;F=C&65535;A=C>>>16;T=P&65535;q=P>>>16;P=e[7];C=t[7];F+=C&65535;A+=C>>>16;T+=P&65535;q+=P>>>16;A+=F>>>16;T+=A>>>16;q+=T>>>16;e[7]=L=T&65535|q<<16;t[7]=Q=F&65535|A<<16;G+=128;a-=128}return a}function crypto_hash(e,t,r){var a=new Int32Array(8),i=new Int32Array(8),n=new Uint8Array(256),o,s=r;a[0]=1779033703;a[1]=3144134277;a[2]=1013904242;a[3]=2773480762;a[4]=1359893119;a[5]=2600822924;a[6]=528734635;a[7]=1541459225;i[0]=4089235720;i[1]=2227873595;i[2]=4271175723;i[3]=1595750129;i[4]=2917565137;i[5]=725511199;i[6]=4215389547;i[7]=327033209;crypto_hashblocks_hl(a,i,t,r);r%=128;for(o=0;o=0;--i){a=r[i/8|0]>>(i&7)&1;cswap(e,t,a);add(t,e);add(e,e);cswap(e,t,a)}}function scalarbase(e,r){var a=[t(),t(),t(),t()];set25519(a[0],l);set25519(a[1],f);set25519(a[2],s);M(a[3],l,f);scalarmult(e,a,r)}function crypto_sign_keypair(e,r,i){var n=new Uint8Array(64);var o=[t(),t(),t(),t()];var s;if(!i)a(r,32);crypto_hash(n,r,32);n[0]&=248;n[31]&=127;n[31]|=64;scalarbase(o,n);pack(e,o);for(s=0;s<32;s++)r[s+32]=e[s];return 0}var b=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 modL(e,t){var r,a,i,n;for(a=63;a>=32;--a){r=0;for(i=a-32,n=a-12;i>8;t[i]-=r*256}t[i]+=r;t[a]=0}r=0;for(i=0;i<32;i++){t[i]+=r-(t[31]>>4)*b[i];r=t[i]>>8;t[i]&=255}for(i=0;i<32;i++)t[i]-=r*b[i];for(a=0;a<32;a++){t[a+1]+=t[a]>>8;e[a]=t[a]&255}}function reduce(e){var t=new Float64Array(64),r;for(r=0;r<64;r++)t[r]=e[r];for(r=0;r<64;r++)e[r]=0;modL(e,t)}function crypto_sign(e,r,a,i){var n=new Uint8Array(64),o=new Uint8Array(64),s=new Uint8Array(64);var c,u,p=new Float64Array(64);var l=[t(),t(),t(),t()];crypto_hash(n,i,32);n[0]&=248;n[31]&=127;n[31]|=64;var f=a+64;for(c=0;c>7)Z(e[0],o,e[0]);M(e[3],e[0],e[1]);return 0}function crypto_sign_open(e,r,a,i){var n,o;var s=new Uint8Array(32),c=new Uint8Array(64);var u=[t(),t(),t(),t()],p=[t(),t(),t(),t()];o=-1;if(a<64)return-1;if(unpackneg(p,i))return-1;for(n=0;n=0};e.sign.keyPair=function(){var e=new Uint8Array(B);var t=new Uint8Array(D);crypto_sign_keypair(e,t);return{publicKey:e,secretKey:t}};e.sign.keyPair.fromSecretKey=function(e){checkArrayTypes(e);if(e.length!==D)throw new Error("bad secret key size");var t=new Uint8Array(B);for(var r=0;r=2*(1<<30)){throw new RangeError('The value "'+e+'" is invalid for option "size"')}var a=i(e);if(!t||t.length===0){a.fill(0)}else if(typeof r==="string"){a.fill(t,r)}else{a.fill(t)}return a}}if(!n.kStringMaxLength){try{n.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(e){}}if(!n.constants){n.constants={MAX_LENGTH:n.kMaxLength};if(n.kStringMaxLength){n.constants.MAX_STRING_LENGTH=n.kStringMaxLength}}e.exports=n},,,,,function(e,t,r){"use strict";e.exports=function(e,t,a,i,n,o){var s=r(248);var c=s.tryCatch;var u=s.errorObj;var p=e._async;function MappingPromiseArray(t,r,a,i){this.constructor$(t);this._promise._captureStackTrace();var o=e._getContext();this._callback=s.contextBind(o,r);this._preservedValues=i===n?new Array(this.length()):null;this._limit=a;this._inFlight=0;this._queue=[];p.invoke(this._asyncInit,this,undefined);if(s.isArray(t)){for(var c=0;c=1){this._inFlight--;this._drainQueue();if(this._isResolved())return true}}else{if(p>=1&&this._inFlight>=p){a[r]=t;this._queue.push(r);return false}if(s!==null)s[r]=t;var l=this._promise;var f=this._callback;var m=l._boundValue();l._pushContext();var d=c(f).call(m,t,r,n);var h=l._popContext();o.checkForgottenReturns(d,h,s!==null?"Promise.filter":"Promise.map",l);if(d===u){this._reject(d.e);return true}var v=i(d,this._promise);if(v instanceof e){v=v._target();var g=v._bitField;if((g&50397184)===0){if(p>=1)this._inFlight++;a[r]=v;v._proxy(this,(r+1)*-1);return false}else if((g&33554432)!==0){d=v._value()}else if((g&16777216)!==0){this._reject(v._reason());return true}else{this._cancel();return true}}a[r]=d}var y=++this._totalResolved;if(y>=n){if(s!==null){this._filter(a,s)}else{this._resolve(a)}return true}return false};MappingPromiseArray.prototype._drainQueue=function(){var e=this._queue;var t=this._limit;var r=this._values;while(e.length>0&&this._inFlight=1?o:0;return new MappingPromiseArray(t,r,o,n).promise()}e.prototype.map=function(e,t){return map(this,e,t,null)};e.map=function(e,t,r,a){return map(e,t,r,a)}}},,function(e){e.exports={$id:"browser.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","version"],properties:{name:{type:"string"},version:{type:"string"},comment:{type:"string"}}}},,,,function(e,t,r){"use strict";var a=r(822);e.exports=Readable;var i=r(262);var n;Readable.ReadableState=ReadableState;var o=r(614).EventEmitter;var s=function(e,t){return e.listeners(t).length};var c=r(427);var u=r(321).Buffer;var p=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return u.from(e)}function _isUint8Array(e){return u.isBuffer(e)||e instanceof p}var l=Object.create(r(286));l.inherits=r(689);var f=r(669);var m=void 0;if(f&&f.debuglog){m=f.debuglog("stream")}else{m=function(){}}var d=r(931);var h=r(232);var v;l.inherits(Readable,c);var g=["error","close","destroy","pause","resume"];function prependListener(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(i(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}function ReadableState(e,t){n=n||r(831);e=e||{};var a=t instanceof n;this.objectMode=!!e.objectMode;if(a)this.objectMode=this.objectMode||!!e.readableObjectMode;var i=e.highWaterMark;var o=e.readableHighWaterMark;var s=this.objectMode?16:16*1024;if(i||i===0)this.highWaterMark=i;else if(a&&(o||o===0))this.highWaterMark=o;else this.highWaterMark=s;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new d;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!v)v=r(674).StringDecoder;this.decoder=new v(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||r(831);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}c.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=h.destroy;Readable.prototype._undestroy=h.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var r=this._readableState;var a;if(!r.objectMode){if(typeof e==="string"){t=t||r.defaultEncoding;if(t!==r.encoding){e=u.from(e,t);t=""}a=true}}else{a=true}return readableAddChunk(this,e,t,false,a)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,r,a,i){var n=e._readableState;if(t===null){n.reading=false;onEofChunk(e,n)}else{var o;if(!i)o=chunkInvalid(n,t);if(o){e.emit("error",o)}else if(n.objectMode||t&&t.length>0){if(typeof t!=="string"&&!n.objectMode&&Object.getPrototypeOf(t)!==u.prototype){t=_uint8ArrayToBuffer(t)}if(a){if(n.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,n,t,true)}else if(n.ended){e.emit("error",new Error("stream.push() after EOF"))}else{n.reading=false;if(n.decoder&&!r){t=n.decoder.write(t);if(n.objectMode||t.length!==0)addChunk(e,n,t,false);else maybeReadMore(e,n)}else{addChunk(e,n,t,false)}}}else if(!a){n.reading=false}}return needMoreData(n)}function addChunk(e,t,r,a){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",r);e.read(0)}else{t.length+=t.objectMode?1:r.length;if(a)t.buffer.unshift(r);else t.buffer.push(r);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var r;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){r=new TypeError("Invalid non-string/buffer chunk")}return r}function needMoreData(e){return!e.ended&&(e.needReadable||e.length=y){e=y}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){m("read",e);e=parseInt(e,10);var t=this._readableState;var r=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){m("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var a=t.needReadable;m("need readable",a);if(t.length===0||t.length-e0)i=fromList(e,t);else i=null;if(i===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)endReadable(this)}if(i!==null)this.emit("data",i);return i};function onEofChunk(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){m("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)a.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){m("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;a.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length1&&indexOf(i.pipes,e)!==-1)&&!u){m("false write response, pause",r._readableState.awaitDrain);r._readableState.awaitDrain++;p=true}r.pause()}}function onerror(t){m("onerror",t);unpipe();e.removeListener("error",onerror);if(s(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){m("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){m("unpipe");r.unpipe(e)}e.emit("pipe",r);if(!i.flowing){m("pipe resume");r.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;m("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&s(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var r={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,r);return this}if(!e){var a=t.pipes;var i=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var n=0;n=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.head.data;else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=fromListPartial(e,t.buffer,t.decoder)}return r}function fromListPartial(e,t,r){var a;if(en.length?n.length:e;if(o===n.length)i+=n;else i+=n.slice(0,e);e-=o;if(e===0){if(o===n.length){++a;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=n.slice(o)}break}++a}t.length-=a;return i}function copyFromBuffer(e,t){var r=u.allocUnsafe(e);var a=t.head;var i=1;a.data.copy(r);e-=a.data.length;while(a=a.next){var n=a.data;var o=e>n.length?n.length:e;n.copy(r,r.length-e,0,o);e-=o;if(e===0){if(o===n.length){++i;if(a.next)t.head=a.next;else t.head=t.tail=null}else{t.head=a;a.data=n.slice(o)}break}++i}t.length-=i;return r}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;a.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var r=0,a=e.length;r-1?setImmediate:a.nextTick;var n;Writable.WritableState=WritableState;var o=Object.create(r(286));o.inherits=r(689);var s={deprecate:r(917)};var c=r(427);var u=r(321).Buffer;var p=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return u.from(e)}function _isUint8Array(e){return u.isBuffer(e)||e instanceof p}var l=r(232);o.inherits(Writable,c);function nop(){}function WritableState(e,t){n=n||r(831);e=e||{};var a=t instanceof n;this.objectMode=!!e.objectMode;if(a)this.objectMode=this.objectMode||!!e.writableObjectMode;var i=e.highWaterMark;var o=e.writableHighWaterMark;var s=this.objectMode?16:16*1024;if(i||i===0)this.highWaterMark=i;else if(a&&(o||o===0))this.highWaterMark=o;else this.highWaterMark=s;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var c=e.decodeStrings===false;this.decodeStrings=!c;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:s.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var f;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){f=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(f.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{f=function(e){return e instanceof this}}function Writable(e){n=n||r(831);if(!f.call(Writable,this)&&!(this instanceof n)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}c.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var r=new Error("write after end");e.emit("error",r);a.nextTick(t,r)}function validChunk(e,t,r,i){var n=true;var o=false;if(r===null){o=new TypeError("May not write null values to stream")}else if(typeof r!=="string"&&r!==undefined&&!t.objectMode){o=new TypeError("Invalid non-string/buffer chunk")}if(o){e.emit("error",o);a.nextTick(i,o);n=false}return n}Writable.prototype.write=function(e,t,r){var a=this._writableState;var i=false;var n=!a.objectMode&&_isUint8Array(e);if(n&&!u.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){r=t;t=null}if(n)t="buffer";else if(!t)t=a.defaultEncoding;if(typeof r!=="function")r=nop;if(a.ended)writeAfterEnd(this,r);else if(n||validChunk(this,a,e,r)){a.pendingcb++;i=writeOrBuffer(this,a,n,e,t,r)}return i};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,r){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=u.from(t,r)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,r,a,i,n){if(!r){var o=decodeChunk(t,a,i);if(a!==o){r=true;i="buffer";a=o}}var s=t.objectMode?1:a.length;t.length+=s;var c=t.length=0){var o=t*this[e++]+r[a]+i;i=Math.floor(o/67108864);r[a++]=o&67108863}return i}function am2(e,t,r,a,i,n){var o=t&32767,s=t>>15;while(--n>=0){var c=this[e]&32767;var u=this[e++]>>15;var p=s*c+u*o;c=o*c+((p&32767)<<15)+r[a]+(i&1073741823);i=(c>>>30)+(p>>>15)+s*u+(i>>>30);r[a++]=c&1073741823}return i}function am3(e,t,r,a,i,n){var o=t&16383,s=t>>14;while(--n>=0){var c=this[e]&16383;var u=this[e++]>>14;var p=s*c+u*o;c=o*c+((p&16383)<<14)+r[a]+i;i=(c>>28)+(p>>14)+s*u;r[a++]=c&268435455}return i}var n=typeof navigator!=="undefined";if(n&&i&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;r=30}else if(n&&i&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;r=26}else{BigInteger.prototype.am=am3;r=28}BigInteger.prototype.DB=r;BigInteger.prototype.DM=(1<=0;--t)e[t]=this[t];e.t=this.t;e.s=this.s}function bnpFromInt(e){this.t=1;this.s=e<0?-1:0;if(e>0)this[0]=e;else if(e<-1)this[0]=e+this.DV;else this.t=0}function nbv(e){var t=nbi();t.fromInt(e);return t}function bnpFromString(e,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==256)r=8;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else{this.fromRadix(e,t);return}this.t=0;this.s=0;var a=e.length,i=false,n=0;while(--a>=0){var o=r==8?e[a]&255:intAt(e,a);if(o<0){if(e.charAt(a)=="-")i=true;continue}i=false;if(n==0)this[this.t++]=o;else if(n+r>this.DB){this[this.t-1]|=(o&(1<>this.DB-n}else this[this.t-1]|=o<=this.DB)n-=this.DB}if(r==8&&(e[0]&128)!=0){this.s=-1;if(n>0)this[this.t-1]|=(1<0&&this[this.t-1]==e)--this.t}function bnToString(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var r=(1<0){if(s>s)>0){i=true;n=int2char(a)}while(o>=0){if(s>(s+=this.DB-t)}else{a=this[o]>>(s-=t)&r;if(s<=0){s+=this.DB;--o}}if(a>0)i=true;if(i)n+=int2char(a)}}return i?n:"0"}function bnNegate(){var e=nbi();BigInteger.ZERO.subTo(this,e);return e}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(e){var t=this.s-e.s;if(t!=0)return t;var r=this.t;t=r-e.t;if(t!=0)return this.s<0?-t:t;while(--r>=0)if((t=this[r]-e[r])!=0)return t;return 0}function nbits(e){var t=1,r;if((r=e>>>16)!=0){e=r;t+=16}if((r=e>>8)!=0){e=r;t+=8}if((r=e>>4)!=0){e=r;t+=4}if((r=e>>2)!=0){e=r;t+=2}if((r=e>>1)!=0){e=r;t+=1}return t}function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(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}function bnpDRShiftTo(e,t){for(var r=e;r=0;--s){t[s+n+1]=this[s]>>a|o;o=(this[s]&i)<=0;--s)t[s]=0;t[n]=o;t.t=this.t+n+1;t.s=this.s;t.clamp()}function bnpRShiftTo(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var a=e%this.DB;var i=this.DB-a;var n=(1<>a;for(var o=r+1;o>a}if(a>0)t[this.t-r-1]|=(this.s&n)<>=this.DB}if(e.t>=this.DB}a+=this.s}else{a+=this.s;while(r>=this.DB}a-=e.s}t.s=a<0?-1:0;if(a<-1)t[r++]=this.DV+a;else if(a>0)t[r++]=a;t.t=r;t.clamp()}function bnpMultiplyTo(e,t){var r=this.abs(),a=e.abs();var i=r.t;t.t=i+a.t;while(--i>=0)t[i]=0;for(i=0;i=0)e[r]=0;for(r=0;r=t.DV){e[r+t.t]-=t.DV;e[r+t.t+1]=1}}if(e.t>0)e[e.t-1]+=t.am(r,t[r],e,2*r,0,1);e.s=0;e.clamp()}function bnpDivRemTo(e,t,r){var a=e.abs();if(a.t<=0)return;var i=this.abs();if(i.t0){a.lShiftTo(c,n);i.lShiftTo(c,r)}else{a.copyTo(n);i.copyTo(r)}var u=n.t;var p=n[u-1];if(p==0)return;var l=p*(1<1?n[u-2]>>this.F2:0);var f=this.FV/l,m=(1<=0){r[r.t++]=1;r.subTo(g,r)}BigInteger.ONE.dlShiftTo(u,g);g.subTo(n,n);while(n.t=0){var y=r[--h]==p?this.DM:Math.floor(r[h]*f+(r[h-1]+d)*m);if((r[h]+=n.am(0,y,r,v,0,u))0)r.rShiftTo(c,r);if(o<0)BigInteger.ZERO.subTo(r,r)}function bnMod(e){var t=nbi();this.abs().divRemTo(e,null,t);if(this.s<0&&t.compareTo(BigInteger.ZERO)>0)e.subTo(t,t);return t}function Classic(e){this.m=e}function cConvert(e){if(e.s<0||e.compareTo(this.m)>=0)return e.mod(this.m);else return e}function cRevert(e){return e}function cReduce(e){e.divRemTo(this.m,null,e)}function cMulTo(e,t,r){e.multiplyTo(t,r);this.reduce(r)}function cSqrTo(e,t){e.squareTo(t);this.reduce(t)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;function bnpInvDigit(){if(this.t<1)return 0;var e=this[0];if((e&1)==0)return 0;var t=e&3;t=t*(2-(e&15)*t)&15;t=t*(2-(e&255)*t)&255;t=t*(2-((e&65535)*t&65535))&65535;t=t*(2-e*t%this.DV)%this.DV;return t>0?this.DV-t:-t}function Montgomery(e){this.m=e;this.mp=e.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<0)this.m.subTo(t,t);return t}function montRevert(e){var t=nbi();e.copyTo(t);this.reduce(t);return t}function montReduce(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;r=t+this.m.t;e[r]+=this.m.am(0,a,e,t,0,this.m.t);while(e[r]>=e.DV){e[r]-=e.DV;e[++r]++}}e.clamp();e.drShiftTo(this.m.t,e);if(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function montSqrTo(e,t){e.squareTo(t);this.reduce(t)}function montMulTo(e,t,r){e.multiplyTo(t,r);this.reduce(r)}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return(this.t>0?this[0]&1:this.s)==0}function bnpExp(e,t){if(e>4294967295||e<1)return BigInteger.ONE;var r=nbi(),a=nbi(),i=t.convert(this),n=nbits(e)-1;i.copyTo(r);while(--n>=0){t.sqrTo(r,a);if((e&1<0)t.mulTo(a,i,r);else{var o=r;r=a;a=o}}return t.revert(r)}function bnModPowInt(e,t){var r;if(e<256||t.isEven())r=new Classic(t);else r=new Montgomery(t);return this.exp(e,r)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);function bnClone(){var e=nbi();this.copyTo(e);return e}function bnIntValue(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this[0];else if(this.t==0)return 0;return(this[1]&(1<<32-this.DB)-1)<>24}function bnShortValue(){return this.t==0?this.s:this[0]<<16>>16}function bnpChunkSize(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function bnSigNum(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this[0]<=0)return 0;else return 1}function bnpToRadix(e){if(e==null)e=10;if(this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e);var r=Math.pow(e,t);var a=nbv(r),i=nbi(),n=nbi(),o="";this.divRemTo(a,i,n);while(i.signum()>0){o=(r+n.intValue()).toString(e).substr(1)+o;i.divRemTo(a,i,n)}return n.intValue().toString(e)+o}function bnpFromRadix(e,t){this.fromInt(0);if(t==null)t=10;var r=this.chunkSize(t);var a=Math.pow(t,r),i=false,n=0,o=0;for(var s=0;s=r){this.dMultiply(a);this.dAddOffset(o,0);n=0;o=0}}if(n>0){this.dMultiply(Math.pow(t,n));this.dAddOffset(o,0)}if(i)BigInteger.ZERO.subTo(this,this)}function bnpFromNumber(e,t,r){if("number"==typeof t){if(e<2)this.fromInt(1);else{this.fromNumber(e,r);if(!this.testBit(e-1))this.bitwiseTo(BigInteger.ONE.shiftLeft(e-1),op_or,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(t)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(BigInteger.ONE.shiftLeft(e-1),this)}}}else{var a=new Array,i=e&7;a.length=(e>>3)+1;t.nextBytes(a);if(i>0)a[0]&=(1<0){if(r>r)!=(this.s&this.DM)>>r)t[i++]=a|this.s<=0){if(r<8){a=(this[e]&(1<>(r+=this.DB-8)}else{a=this[e]>>(r-=8)&255;if(r<=0){r+=this.DB;--e}}if((a&128)!=0)a|=-256;if(i==0&&(this.s&128)!=(a&128))++i;if(i>0||a!=this.s)t[i++]=a}}return t}function bnEquals(e){return this.compareTo(e)==0}function bnMin(e){return this.compareTo(e)<0?this:e}function bnMax(e){return this.compareTo(e)>0?this:e}function bnpBitwiseTo(e,t,r){var a,i,n=Math.min(e.t,this.t);for(a=0;a>=16;t+=16}if((e&255)==0){e>>=8;t+=8}if((e&15)==0){e>>=4;t+=4}if((e&3)==0){e>>=2;t+=2}if((e&1)==0)++t;return t}function bnGetLowestSetBit(){for(var e=0;e=this.t)return this.s!=0;return(this[t]&1<>=this.DB}if(e.t>=this.DB}a+=this.s}else{a+=this.s;while(r>=this.DB}a+=e.s}t.s=a<0?-1:0;if(a>0)t[r++]=a;else if(a<-1)t[r++]=this.DV+a;t.t=r;t.clamp()}function bnAdd(e){var t=nbi();this.addTo(e,t);return t}function bnSubtract(e){var t=nbi();this.subTo(e,t);return t}function bnMultiply(e){var t=nbi();this.multiplyTo(e,t);return t}function bnSquare(){var e=nbi();this.squareTo(e);return e}function bnDivide(e){var t=nbi();this.divRemTo(e,t,null);return t}function bnRemainder(e){var t=nbi();this.divRemTo(e,null,t);return t}function bnDivideAndRemainder(e){var t=nbi(),r=nbi();this.divRemTo(e,t,r);return new Array(t,r)}function bnpDMultiply(e){this[this.t]=this.am(0,e-1,this,0,0,this.t);++this.t;this.clamp()}function bnpDAddOffset(e,t){if(e==0)return;while(this.t<=t)this[this.t++]=0;this[t]+=e;while(this[t]>=this.DV){this[t]-=this.DV;if(++t>=this.t)this[this.t++]=0;++this[t]}}function NullExp(){}function nNop(e){return e}function nMulTo(e,t,r){e.multiplyTo(t,r)}function nSqrTo(e,t){e.squareTo(t)}NullExp.prototype.convert=nNop;NullExp.prototype.revert=nNop;NullExp.prototype.mulTo=nMulTo;NullExp.prototype.sqrTo=nSqrTo;function bnPow(e){return this.exp(e,new NullExp)}function bnpMultiplyLowerTo(e,t,r){var a=Math.min(this.t+e.t,t);r.s=0;r.t=a;while(a>0)r[--a]=0;var i;for(i=r.t-this.t;a=0)r[a]=0;for(a=Math.max(t-this.t,0);a2*this.m.t)return e.mod(this.m);else if(e.compareTo(this.m)<0)return e;else{var t=nbi();e.copyTo(t);this.reduce(t);return t}}function barrettRevert(e){return e}function barrettReduce(e){e.drShiftTo(this.m.t-1,this.r2);if(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);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function barrettSqrTo(e,t){e.squareTo(t);this.reduce(t)}function barrettMulTo(e,t,r){e.multiplyTo(t,r);this.reduce(r)}Barrett.prototype.convert=barrettConvert;Barrett.prototype.revert=barrettRevert;Barrett.prototype.reduce=barrettReduce;Barrett.prototype.mulTo=barrettMulTo;Barrett.prototype.sqrTo=barrettSqrTo;function bnModPow(e,t){var r=e.bitLength(),a,i=nbv(1),n;if(r<=0)return i;else if(r<18)a=1;else if(r<48)a=3;else if(r<144)a=4;else if(r<768)a=5;else a=6;if(r<8)n=new Classic(t);else if(t.isEven())n=new Barrett(t);else n=new Montgomery(t);var o=new Array,s=3,c=a-1,u=(1<1){var p=nbi();n.sqrTo(o[1],p);while(s<=u){o[s]=nbi();n.mulTo(p,o[s-2],o[s]);s+=2}}var l=e.t-1,f,m=true,d=nbi(),h;r=nbits(e[l])-1;while(l>=0){if(r>=c)f=e[l]>>r-c&u;else{f=(e[l]&(1<0)f|=e[l-1]>>this.DB+r-c}s=a;while((f&1)==0){f>>=1;--s}if((r-=s)<0){r+=this.DB;--l}if(m){o[f].copyTo(i);m=false}else{while(s>1){n.sqrTo(i,d);n.sqrTo(d,i);s-=2}if(s>0)n.sqrTo(i,d);else{h=i;i=d;d=h}n.mulTo(d,o[f],i)}while(l>=0&&(e[l]&1<0){t.rShiftTo(n,t);r.rShiftTo(n,r)}while(t.signum()>0){if((i=t.getLowestSetBit())>0)t.rShiftTo(i,t);if((i=r.getLowestSetBit())>0)r.rShiftTo(i,r);if(t.compareTo(r)>=0){t.subTo(r,t);t.rShiftTo(1,t)}else{r.subTo(t,r);r.rShiftTo(1,r)}}if(n>0)r.lShiftTo(n,r);return r}function bnpModInt(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(t==0)r=this[0]%e;else for(var a=this.t-1;a>=0;--a)r=(t*r+this[a])%e;return r}function bnModInverse(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return BigInteger.ZERO;var r=e.clone(),a=this.clone();var i=nbv(1),n=nbv(0),o=nbv(0),s=nbv(1);while(r.signum()!=0){while(r.isEven()){r.rShiftTo(1,r);if(t){if(!i.isEven()||!n.isEven()){i.addTo(this,i);n.subTo(e,n)}i.rShiftTo(1,i)}else if(!n.isEven())n.subTo(e,n);n.rShiftTo(1,n)}while(a.isEven()){a.rShiftTo(1,a);if(t){if(!o.isEven()||!s.isEven()){o.addTo(this,o);s.subTo(e,s)}o.rShiftTo(1,o)}else if(!s.isEven())s.subTo(e,s);s.rShiftTo(1,s)}if(r.compareTo(a)>=0){r.subTo(a,r);if(t)i.subTo(o,i);n.subTo(s,n)}else{a.subTo(r,a);if(t)o.subTo(i,o);s.subTo(n,s)}}if(a.compareTo(BigInteger.ONE)!=0)return BigInteger.ZERO;if(s.compareTo(e)>=0)return s.subtract(e);if(s.signum()<0)s.addTo(e,s);else return s;if(s.signum()<0)return s.add(e);else return s}var l=[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];var f=(1<<26)/l[l.length-1];function bnIsProbablePrime(e){var t,r=this.abs();if(r.t==1&&r[0]<=l[l.length-1]){for(t=0;t>1;if(e>l.length)e=l.length;var i=nbi();for(var n=0;n>8&255;d[h++]^=e>>16&255;d[h++]^=e>>24&255;if(h>=b)h-=b}function rng_seed_time(){rng_seed_int((new Date).getTime())}if(d==null){d=new Array;h=0;var v;if(typeof window!=="undefined"&&window.crypto){if(window.crypto.getRandomValues){var g=new Uint8Array(32);window.crypto.getRandomValues(g);for(v=0;v<32;++v)d[h++]=g[v]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var y=window.crypto.random(32);for(v=0;v>>8;d[h++]=v&255}h=0;rng_seed_time()}function rng_get_byte(){if(m==null){rng_seed_time();m=prng_newstate();m.init(d);for(h=0;h=this.maxSockets){r.requests.push({host:t.host,port:t.port,request:e});return}r.createConnection({host:t.host,port:t.port,request:e})};TunnelingAgent.prototype.createConnection=function createConnection(e){var t=this;t.createSocket(e,function(r){r.on("free",onFree);r.on("close",onCloseOrRemove);r.on("agentRemove",onCloseOrRemove);e.request.onSocket(r);function onFree(){t.emit("free",r,e.host,e.port)}function onCloseOrRemove(e){t.removeSocket(r);r.removeListener("free",onFree);r.removeListener("close",onCloseOrRemove);r.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var a={};r.sockets.push(a);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false});if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+p.from(i.proxyAuth).toString("base64")}l("making CONNECT request");var n=r.request(i);n.useChunkedEncodingByDefault=false;n.once("response",onResponse);n.once("upgrade",onUpgrade);n.once("connect",onConnect);n.once("error",onError);n.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,o,s){n.removeAllListeners();o.removeAllListeners();if(i.statusCode===200){c.equal(s.length,0);l("tunneling connection has established");r.sockets[r.sockets.indexOf(a)]=o;t(o)}else{l("tunneling socket could not be established, statusCode=%d",i.statusCode);var u=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);u.code="ECONNRESET";e.request.emit("error",u);r.removeSocket(a)}}function onError(t){n.removeAllListeners();l("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(a)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1)return;this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createConnection(r)}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(a){var n=i.connect(0,mergeOptions({},r.options,{servername:e.host,socket:a}));r.sockets[r.sockets.indexOf(a)]=n;t(n)})}function mergeOptions(e){for(var t=1,r=arguments.length;t=this._length){this._resolve(this._values);return true}return false};PromiseArray.prototype._promiseCancelled=function(){this._cancel();return true};PromiseArray.prototype._promiseRejected=function(e){this._totalResolved++;this._reject(e);return true};PromiseArray.prototype._resultCancelled=function(){if(this._isResolved())return;var t=this._values;this._cancel();if(t instanceof e){t.cancel()}else{for(var r=0;r1;var a=t.length>0&&!(t.length===1&&t[0]==="constructor");var i=thisAssignmentPattern.test(e+"")&&es5.names(e).length>0;if(r||a||i){return true}}return false}catch(e){return false}}function toFastProperties(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;var receiver=new FakeConstructor;function ic(){return typeof receiver.foo}ic();ic();return obj;eval(obj)}var rident=/^[a-z$_][a-z$_0-9]*$/i;function isIdentifier(e){return rident.test(e)}function filledRange(e,t,r){var a=new Array(e);for(var i=0;i10||e[0]>0}();ret.nodeSupportsAsyncResource=ret.isNode&&function(){var e=false;try{var t=__webpack_require__(303).AsyncResource;e=typeof t.prototype.runInAsyncScope==="function"}catch(t){e=false}return e}();if(ret.isNode)ret.toFastProperties(process);try{throw new Error}catch(e){ret.lastLineError=e}module.exports=ret},function(e,t,r){var a=r(584);var i=r(362);var n=r(625);var o=r(998);e.exports={Reader:n,Writer:o};for(var s in i){if(i.hasOwnProperty(s))e.exports[s]=i[s]}for(var c in a){if(a.hasOwnProperty(c))e.exports[c]=a[c]}},,,,function(e,t,r){"use strict";e.exports=function(e){var t=r(248);var a=r(883).keys;var i=t.tryCatch;var n=t.errorObj;function catchFilter(r,o,s){return function(c){var u=s._boundValue();e:for(var p=0;p")}}else if(i){o+="new "+(a||"")}else if(a){o+=a}else{t=false;o+=r}if(t){o+=" ("+r+")"}return o}function getConstructorName(e){var t=e.receiver;return t.constructor&&t.constructor.name||null}},function(e){"use strict";e.exports=function generate_ref(e,t,r){var a=" ";var i=e.level;var n=e.dataLevel;var o=e.schema[t];var s=e.errSchemaPath+"/"+t;var c=!e.opts.allErrors;var u="data"+(n||"");var p="valid"+i;var l,f;if(o=="#"||o=="#/"){if(e.isRoot){l=e.async;f="validate"}else{l=e.root.schema.$async===true;f="root.refVal[0]"}}else{var m=e.resolveRef(e.baseId,o,e.isRoot);if(m===undefined){var d=e.MissingRefError.message(e.baseId,o);if(e.opts.missingRefs=="fail"){e.logger.error(d);var h=h||[];h.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"$ref"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(s)+" , params: { ref: '"+e.util.escapeQuotes(o)+"' } ";if(e.opts.messages!==false){a+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(o)+"' "}if(e.opts.verbose){a+=" , schema: "+e.util.toQuotedString(o)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "}a+=" } "}else{a+=" {} "}var v=a;a=h.pop();if(!e.compositeRule&&c){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}if(c){a+=" if (false) { "}}else if(e.opts.missingRefs=="ignore"){e.logger.warn(d);if(c){a+=" if (true) { "}}else{throw new e.MissingRefError(e.baseId,o,d)}}else if(m.inline){var g=e.util.copy(e);g.level++;var y="valid"+g.level;g.schema=m.schema;g.schemaPath="";g.errSchemaPath=o;var b=e.validate(g).replace(/validate\.schema/g,m.code);a+=" "+b+" ";if(c){a+=" if ("+y+") { "}}else{l=m.$async===true||e.async&&m.$async!==false;f=m.code}}if(f){var h=h||[];h.push(a);a="";if(e.opts.passContext){a+=" "+f+".call(this, "}else{a+=" "+f+"( "}a+=" "+u+", (dataPath || '')";if(e.errorPath!='""'){a+=" + "+e.errorPath}var k=n?"data"+(n-1||""):"parentData",x=n?e.dataPathArr[n]:"parentDataProperty";a+=" , "+k+" , "+x+", rootData) ";var w=a;a=h.pop();if(l){if(!e.async)throw new Error("async schema referenced by sync schema");if(c){a+=" var "+p+"; "}a+=" try { await "+w+"; ";if(c){a+=" "+p+" = true; "}a+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ";if(c){a+=" "+p+" = false; "}a+=" } ";if(c){a+=" if ("+p+") { "}}else{a+=" if (!"+w+") { if (vErrors === null) vErrors = "+f+".errors; else vErrors = vErrors.concat("+f+".errors); errors = vErrors.length; } ";if(c){a+=" else { "}}}return a}},,function(e,t,r){e.exports={read:read,write:write};var a=r(477);var i=r(62);var n=r(417);var o=r(215).Buffer;var s=r(98);var c=r(270);var u=r(852);var p=r(502);var l=r(449);var f=r(707);var m=r(78);var d=r(538);var h=r(753);var v="1.2.840.113549.1.5.13";var g="1.2.840.113549.1.5.12";var y={"1.2.840.113549.3.7":"3des-cbc","2.16.840.1.101.3.4.1.2":"aes128-cbc","2.16.840.1.101.3.4.1.42":"aes256-cbc"};var b={};Object.keys(y).forEach(function(e){b[y[e]]=e});var k={"1.2.840.113549.2.7":"sha1","1.2.840.113549.2.9":"sha256","1.2.840.113549.2.11":"sha512"};var x={};Object.keys(k).forEach(function(e){x[k[e]]=e});function read(e,t,r){var s=e;if(typeof e!=="string"){a.buffer(e,"buf");e=e.toString("ascii")}var u=e.trim().split(/[\r\n]+/g);var p;var b=-1;while(!p&&b0){x=u[--w].match(/[-]+[ ]*END ([A-Z0-9][A-Za-z0-9]+ )?(PUBLIC|PRIVATE) KEY[ ]*[-]+/)}a.ok(x,"invalid PEM footer");a.equal(p[2],x[2]);var j=p[2].toLowerCase();var _;if(p[1]){a.equal(p[1],x[1],"PEM header and footer mismatch");_=p[1].trim()}u=u.slice(b,w+1);var S={};while(true){u=u.slice(1);p=u[0].match(/^([A-Za-z0-9-]+): (.+)$/);if(!p)break;S[p[1].toLowerCase()]=p[2]}u=u.slice(0,-1).join("");e=o.from(u,"base64");var E,P,C;if(S["proc-type"]){var F=S["proc-type"].split(",");if(F[0]==="4"&&F[1]==="ENCRYPTED"){if(typeof t.passphrase==="string"){t.passphrase=o.from(t.passphrase,"utf-8")}if(!o.isBuffer(t.passphrase)){throw new h.KeyEncryptedError(t.filename,"PEM")}else{F=S["dek-info"].split(",");a.ok(F.length===2);E=F[0].toLowerCase();C=o.from(F[1],"hex");P=c.opensslKeyDeriv(E,C,t.passphrase,1).key}}}if(_&&_.toLowerCase()==="encrypted"){var A=new i.BerReader(e);var T;A.readSequence();A.readSequence();T=A.offset+A.length;var q=A.readOID();if(q!==v){throw new Error("Unsupported PEM/PKCS8 encryption "+"scheme: "+q)}A.readSequence();A.readSequence();var z=A.offset+A.length;var O=A.readOID();if(O!==g)throw new Error("Unsupported PBES2 KDF: "+O);A.readSequence();var B=A.readString(i.Ber.OctetString,true);var D=A.readInt();var I="sha1";if(A.offsetm.length)y=m.length;v+=h.write(m.slice(g,y),v);h[v++]=10;g=y}v+=h.write("-----END "+s+"-----\n",v);return h.slice(0,v)}},function(e){"use strict";e.exports=function ToNumber(e){return+e}},function(e,t,r){e.exports={bufferSplit:bufferSplit,addRSAMissing:addRSAMissing,calculateDSAPublic:calculateDSAPublic,calculateED25519Public:calculateED25519Public,calculateX25519Public:calculateX25519Public,mpNormalize:mpNormalize,mpDenormalize:mpDenormalize,ecNormalize:ecNormalize,countZeros:countZeros,assertCompatible:assertCompatible,isCompatible:isCompatible,opensslKeyDeriv:opensslKeyDeriv,opensshCipherInfo:opensshCipherInfo,publicFromPrivateECDSA:publicFromPrivateECDSA,zeroPadToLength:zeroPadToLength,writeBitString:writeBitString,readBitString:readBitString,pbkdf2:pbkdf2};var a=r(477);var i=r(215).Buffer;var n=r(502);var o=r(852);var s=r(417);var c=r(98);var u=r(62);var p=r(729);var l=r(242).BigInteger;var f=r(196);var m=3;function isCompatible(e,t,r){if(e===null||typeof e!=="object")return false;if(r===undefined)r=t.prototype._sshpkApiVersion;if(e instanceof t&&t.prototype._sshpkApiVersion[0]==r[0])return true;var a=Object.getPrototypeOf(e);var i=0;while(a.constructor.name!==t.name){a=Object.getPrototypeOf(a);if(!a||++i>m)return false}if(a.constructor.name!==t.name)return false;var n=a._sshpkApiVersion;if(n===undefined)n=t._oldVersionDetect(e);if(n[0]!=r[0]||n[1]=r[1],i+" must be compatible with "+t.name+" klass "+"version "+r[0]+"."+r[1])}var d={"des-ede3-cbc":{key:24,iv:8},"aes-128-cbc":{key:16,iv:16},"aes-256-cbc":{key:32,iv:16}};var h=8;function opensslKeyDeriv(e,t,r,n){a.buffer(t,"salt");a.buffer(r,"passphrase");a.number(n,"iteration count");var o=d[e];a.object(o,"supported cipher");t=t.slice(0,h);var c,u,p;var l=i.alloc(0);while(l.length=t.length){var s=o+1;r.push(e.slice(i,s-n));i=s;n=0}}if(i<=e.length)r.push(e.slice(i,e.length));return r}function ecNormalize(e,t){a.buffer(e);if(e[0]===0&&e[1]===4){if(t)return e;return e.slice(1)}else if(e[0]===4){if(!t)return e}else{while(e[0]===0)e=e.slice(1);if(e[0]===2||e[0]===3)throw new Error("Compressed elliptic curve points "+"are not supported");if(e[0]!==4)throw new Error("Not a valid elliptic curve point");if(!t)return e}var r=i.alloc(e.length+1);r[0]=0;e.copy(r,1);return r}function readBitString(e,t){if(t===undefined)t=u.Ber.BitString;var r=e.readString(t,true);a.strictEqual(r[0],0,"bit strings with unused bits are "+"not supported (0x"+r[0].toString(16)+")");return r.slice(1)}function writeBitString(e,t,r){if(r===undefined)r=u.Ber.BitString;var a=i.alloc(t.length+1);a[0]=0;t.copy(a,1);e.writeBuffer(a,r)}function mpNormalize(e){a.buffer(e);while(e.length>1&&e[0]===0&&(e[1]&128)===0)e=e.slice(1);if((e[0]&128)===128){var t=i.alloc(e.length+1);t[0]=0;e.copy(t,1);e=t}return e}function mpDenormalize(e){a.buffer(e);while(e.length>1&&e[0]===0)e=e.slice(1);return e}function zeroPadToLength(e,t){a.buffer(e);a.number(t);while(e.length>t){a.equal(e[0],0);e=e.slice(1)}while(e.length0};e.prototype._setRejectionIsUnhandled=function(){this._bitField=this._bitField|1048576};e.prototype._unsetRejectionIsUnhandled=function(){this._bitField=this._bitField&~1048576;if(this._isUnhandledRejectionNotified()){this._unsetUnhandledRejectionIsNotified();this._notifyUnhandledRejectionIsHandled()}};e.prototype._isRejectionUnhandled=function(){return(this._bitField&1048576)>0};e.prototype._warn=function(e,t,r){return warn(e,t,r||this)};e.onPossiblyUnhandledRejection=function(t){var r=e._getContext();l=s.contextBind(r,t)};e.onUnhandledRejectionHandled=function(t){var r=e._getContext();p=s.contextBind(r,t)};var _=function(){};e.longStackTraces=function(){if(n.haveItemsQueued()&&!O.longStackTraces){throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n")}if(!O.longStackTraces&&longStackTracesIsSupported()){var r=e.prototype._captureStackTrace;var a=e.prototype._attachExtraTrace;var i=e.prototype._dereferenceTrace;O.longStackTraces=true;_=function(){if(n.haveItemsQueued()&&!O.longStackTraces){throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n")}e.prototype._captureStackTrace=r;e.prototype._attachExtraTrace=a;e.prototype._dereferenceTrace=i;t.deactivateLongStackTraces();O.longStackTraces=false};e.prototype._captureStackTrace=longStackTracesCaptureStackTrace;e.prototype._attachExtraTrace=longStackTracesAttachExtraTrace;e.prototype._dereferenceTrace=longStackTracesDereferenceTrace;t.activateLongStackTraces()}};e.hasLongStackTraces=function(){return O.longStackTraces&&longStackTracesIsSupported()};var S={unhandledrejection:{before:function(){var e=s.global.onunhandledrejection;s.global.onunhandledrejection=null;return e},after:function(e){s.global.onunhandledrejection=e}},rejectionhandled:{before:function(){var e=s.global.onrejectionhandled;s.global.onrejectionhandled=null;return e},after:function(e){s.global.onrejectionhandled=e}}};var E=function(){var e=function(e,t){if(e){var r;try{r=e.before();return!s.global.dispatchEvent(t)}finally{e.after(r)}}else{return!s.global.dispatchEvent(t)}};try{if(typeof CustomEvent==="function"){var t=new CustomEvent("CustomEvent");s.global.dispatchEvent(t);return function(t,r){t=t.toLowerCase();var a={detail:r,cancelable:true};var i=new CustomEvent(t,a);c.defineProperty(i,"promise",{value:r.promise});c.defineProperty(i,"reason",{value:r.reason});return e(S[t],i)}}else if(typeof Event==="function"){var t=new Event("CustomEvent");s.global.dispatchEvent(t);return function(t,r){t=t.toLowerCase();var a=new Event(t,{cancelable:true});a.detail=r;c.defineProperty(a,"promise",{value:r.promise});c.defineProperty(a,"reason",{value:r.reason});return e(S[t],a)}}else{var t=document.createEvent("CustomEvent");t.initCustomEvent("testingtheevent",false,true,{});s.global.dispatchEvent(t);return function(t,r){t=t.toLowerCase();var a=document.createEvent("CustomEvent");a.initCustomEvent(t,false,true,r);return e(S[t],a)}}}catch(e){}return function(){return false}}();var P=function(){if(s.isNode){return function(){return process.emit.apply(process,arguments)}}else{if(!s.global){return function(){return false}}return function(e){var t="on"+e.toLowerCase();var r=s.global[t];if(!r)return false;r.apply(s.global,[].slice.call(arguments,1));return true}}}();function generatePromiseLifecycleEventObject(e,t){return{promise:t}}var C={promiseCreated:generatePromiseLifecycleEventObject,promiseFulfilled:generatePromiseLifecycleEventObject,promiseRejected:generatePromiseLifecycleEventObject,promiseResolved:generatePromiseLifecycleEventObject,promiseCancelled:generatePromiseLifecycleEventObject,promiseChained:function(e,t,r){return{promise:t,child:r}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,r){return{reason:t,promise:r}},rejectionHandled:generatePromiseLifecycleEventObject};var F=function(e){var t=false;try{t=P.apply(null,arguments)}catch(e){n.throwLater(e);t=true}var r=false;try{r=E(e,C[e].apply(null,arguments))}catch(e){n.throwLater(e);r=true}return r||t};e.config=function(t){t=Object(t);if("longStackTraces"in t){if(t.longStackTraces){e.longStackTraces()}else if(!t.longStackTraces&&e.hasLongStackTraces()){_()}}if("warnings"in t){var r=t.warnings;O.warnings=!!r;w=O.warnings;if(s.isObject(r)){if("wForgottenReturn"in r){w=!!r.wForgottenReturn}}}if("cancellation"in t&&t.cancellation&&!O.cancellation){if(n.haveItemsQueued()){throw new Error("cannot enable cancellation after promises are in use")}e.prototype._clearCancellationData=cancellationClearCancellationData;e.prototype._propagateFrom=cancellationPropagateFrom;e.prototype._onCancel=cancellationOnCancel;e.prototype._setOnCancel=cancellationSetOnCancel;e.prototype._attachCancellationCallback=cancellationAttachCancellationCallback;e.prototype._execute=cancellationExecute;A=cancellationPropagateFrom;O.cancellation=true}if("monitoring"in t){if(t.monitoring&&!O.monitoring){O.monitoring=true;e.prototype._fireEvent=F}else if(!t.monitoring&&O.monitoring){O.monitoring=false;e.prototype._fireEvent=defaultFireEvent}}if("asyncHooks"in t&&s.nodeSupportsAsyncResource){var o=O.asyncHooks;var c=!!t.asyncHooks;if(o!==c){O.asyncHooks=c;if(c){a()}else{i()}}}return e};function defaultFireEvent(){return false}e.prototype._fireEvent=defaultFireEvent;e.prototype._execute=function(e,t,r){try{e(t,r)}catch(e){return e}};e.prototype._onCancel=function(){};e.prototype._setOnCancel=function(e){};e.prototype._attachCancellationCallback=function(e){};e.prototype._captureStackTrace=function(){};e.prototype._attachExtraTrace=function(){};e.prototype._dereferenceTrace=function(){};e.prototype._clearCancellationData=function(){};e.prototype._propagateFrom=function(e,t){};function cancellationExecute(e,t,r){var a=this;try{e(t,r,function(e){if(typeof e!=="function"){throw new TypeError("onCancel must be a function, got: "+s.toString(e))}a._attachCancellationCallback(e)})}catch(e){return e}}function cancellationAttachCancellationCallback(e){if(!this._isCancellable())return this;var t=this._onCancel();if(t!==undefined){if(s.isArray(t)){t.push(e)}else{this._setOnCancel([t,e])}}else{this._setOnCancel(e)}}function cancellationOnCancel(){return this._onCancelField}function cancellationSetOnCancel(e){this._onCancelField=e}function cancellationClearCancellationData(){this._cancellationParent=undefined;this._onCancelField=undefined}function cancellationPropagateFrom(e,t){if((t&1)!==0){this._cancellationParent=e;var r=e._branchesRemainingToCancel;if(r===undefined){r=0}e._branchesRemainingToCancel=r+1}if((t&2)!==0&&e._isBound()){this._setBoundTo(e._boundTo)}}function bindingPropagateFrom(e,t){if((t&2)!==0&&e._isBound()){this._setBoundTo(e._boundTo)}}var A=bindingPropagateFrom;function boundValueFunction(){var t=this._boundTo;if(t!==undefined){if(t instanceof e){if(t.isFulfilled()){return t.value()}else{return undefined}}}return t}function longStackTracesCaptureStackTrace(){this._trace=new CapturedTrace(this._peekContext())}function longStackTracesAttachExtraTrace(e,t){if(u(e)){var r=this._trace;if(r!==undefined){if(t)r=r._parent}if(r!==undefined){r.attachExtraTrace(e)}else if(!e.__stackCleaned__){var a=parseStackAndMessage(e);s.notEnumerableProp(e,"stack",a.message+"\n"+a.stack.join("\n"));s.notEnumerableProp(e,"__stackCleaned__",true)}}}function longStackTracesDereferenceTrace(){this._trace=undefined}function checkForgottenReturns(e,t,r,a,i){if(e===undefined&&t!==null&&w){if(i!==undefined&&i._returnedNonUndefined())return;if((a._bitField&65535)===0)return;if(r)r=r+" ";var n="";var o="";if(t._trace){var s=t._trace.stack.split("\n");var c=cleanStack(s);for(var u=c.length-1;u>=0;--u){var p=c[u];if(!m.test(p)){var l=p.match(d);if(l){n="at "+l[1]+":"+l[2]+":"+l[3]+" "}break}}if(c.length>0){var f=c[0];for(var u=0;u0){o="\n"+s[u-1]}break}}}}var h="a promise was created in a "+r+"handler "+n+"but was not returned from it, "+"see http://goo.gl/rRqMUw"+o;a._warn(h,true,t)}}function deprecated(e,t){var r=e+" is deprecated and will be removed in a future version.";if(t)r+=" Use "+t+" instead.";return warn(r)}function warn(t,r,a){if(!O.warnings)return;var i=new o(t);var n;if(r){a._attachExtraTrace(i)}else if(O.longStackTraces&&(n=e._peekContext())){n.attachExtraTrace(i)}else{var s=parseStackAndMessage(i);i.stack=s.message+"\n"+s.stack.join("\n")}if(!F("warning",i)){formatAndLogError(i,"",true)}}function reconstructStack(e,t){for(var r=0;r=0;--s){if(a[s]===n){o=s;break}}for(var s=o;s>=0;--s){var c=a[s];if(t[i]===c){t.pop();i--}else{break}}t=a}}function cleanStack(e){var t=[];for(var r=0;r0&&e.name!="SyntaxError"){t=t.slice(r)}return t}function parseStackAndMessage(e){var t=e.stack;var r=e.toString();t=typeof t==="string"&&t.length>0?stackFramesAsArray(e):[" (No stack trace)"];return{message:r,stack:e.name=="SyntaxError"?t:cleanStack(t)}}function formatAndLogError(e,t,r){if(typeof console!=="undefined"){var a;if(s.isObject(e)){var i=e.stack;a=t+v(i,e)}else{a=t+String(e)}if(typeof y==="function"){y(a,r)}else if(typeof console.log==="function"||typeof console.log==="object"){console.log(a)}}}function fireRejectionEvent(e,t,r,a){var i=false;try{if(typeof t==="function"){i=true;if(e==="rejectionHandled"){t(a)}else{t(r,a)}}}catch(e){n.throwLater(e)}if(e==="unhandledRejection"){if(!F(e,r,a)&&!i){formatAndLogError(r,"Unhandled rejection ")}}else{F(e,a)}}function formatNonError(e){var t;if(typeof e==="function"){t="[function "+(e.name||"anonymous")+"]"}else{t=e&&typeof e.toString==="function"?e.toString():s.toString(e);var r=/\[object [a-zA-Z0-9$_]+\]/;if(r.test(t)){try{var a=JSON.stringify(e);t=a}catch(e){}}if(t.length===0){t="(empty array)"}}return"(<"+snip(t)+">, no stack trace)"}function snip(e){var t=41;if(e.length=n){return}T=function(e){if(f.test(e))return true;var t=parseLineInfo(e);if(t){if(t.fileName===o&&(i<=t.line&&t.line<=n)){return true}}return false}}function CapturedTrace(e){this._parent=e;this._promisesCreated=0;var t=this._length=1+(e===undefined?0:e._length);z(this,CapturedTrace);if(t>32)this.uncycle()}s.inherits(CapturedTrace,Error);t.CapturedTrace=CapturedTrace;CapturedTrace.prototype.uncycle=function(){var e=this._length;if(e<2)return;var t=[];var r={};for(var a=0,i=this;i!==undefined;++a){t.push(i);i=i._parent}e=this._length=a;for(var a=e-1;a>=0;--a){var n=t[a].stack;if(r[n]===undefined){r[n]=a}}for(var a=0;a0){t[s-1]._parent=undefined;t[s-1]._length=1}t[a]._parent=undefined;t[a]._length=1;var c=a>0?t[a-1]:this;if(s=0;--p){t[p]._length=u;u++}return}}};CapturedTrace.prototype.attachExtraTrace=function(e){if(e.__stackCleaned__)return;this.uncycle();var t=parseStackAndMessage(e);var r=t.message;var a=[t.stack];var i=this;while(i!==undefined){a.push(cleanStack(i.stack.split("\n")));i=i._parent}removeCommonRoots(a);removeDuplicateOrEmptyJumps(a);s.notEnumerableProp(e,"stack",reconstructStack(r,a));s.notEnumerableProp(e,"__stackCleaned__",true)};var z=function stackDetection(){var e=/^\s*at\s*/;var t=function(e,t){if(typeof e==="string")return e;if(t.name!==undefined&&t.message!==undefined){return t.toString()}return formatNonError(t)};if(typeof Error.stackTraceLimit==="number"&&typeof Error.captureStackTrace==="function"){Error.stackTraceLimit+=6;h=e;v=t;var r=Error.captureStackTrace;T=function(e){return f.test(e)};return function(e,t){Error.stackTraceLimit+=6;r(e,t);Error.stackTraceLimit-=6}}var a=new Error;if(typeof a.stack==="string"&&a.stack.split("\n")[0].indexOf("stackDetection@")>=0){h=/@/;v=t;g=true;return function captureStackTrace(e){e.stack=(new Error).stack}}var i;try{throw new Error}catch(e){i="stack"in e}if(!("stack"in a)&&i&&typeof Error.stackTraceLimit==="number"){h=e;v=t;return function captureStackTrace(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6}}v=function(e,t){if(typeof e==="string")return e;if((typeof t==="object"||typeof t==="function")&&t.name!==undefined&&t.message!==undefined){return t.toString()}return formatNonError(t)};return null}([]);if(typeof console!=="undefined"&&typeof console.warn!=="undefined"){y=function(e){console.warn(e)};if(s.isNode&&process.stderr.isTTY){y=function(e,t){var r=t?"":"";console.warn(r+e+"\n")}}else if(!s.isNode&&typeof(new Error).stack==="string"){y=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}}}var O={warnings:k,longStackTraces:false,cancellation:false,monitoring:false,asyncHooks:false};if(x)e.longStackTraces();return{asyncHooks:function(){return O.asyncHooks},longStackTraces:function(){return O.longStackTraces},warnings:function(){return O.warnings},cancellation:function(){return O.cancellation},monitoring:function(){return O.monitoring},propagateFromFunction:function(){return A},boundValueFunction:function(){return boundValueFunction},checkForgottenReturns:checkForgottenReturns,setBounds:setBounds,warn:warn,deprecated:deprecated,CapturedTrace:CapturedTrace,fireDomEvent:E,fireGlobalEvent:P}}},,,,,,,,,function(e){"use strict";e.exports=function generate_enum(e,t,r){var a=" ";var i=e.level;var n=e.dataLevel;var o=e.schema[t];var s=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var p="data"+(n||"");var l="valid"+i;var f=e.opts.$data&&o&&o.$data,m;if(f){a+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ";m="schema"+i}else{m=o}var d="i"+i,h="schema"+i;if(!f){a+=" var "+h+" = validate.schema"+s+";"}a+="var "+l+";";if(f){a+=" if (schema"+i+" === undefined) "+l+" = true; else if (!Array.isArray(schema"+i+")) "+l+" = false; else {"}a+=""+l+" = false;for (var "+d+"=0; "+d+"<"+h+".length; "+d+"++) if (equal("+p+", "+h+"["+d+"])) { "+l+" = true; break; }";if(f){a+=" } "}a+=" if (!"+l+") { ";var v=v||[];v.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"enum"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { allowedValues: schema"+i+" } ";if(e.opts.messages!==false){a+=" , message: 'should be equal to one of the allowed values' "}if(e.opts.verbose){a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}a+=" } "}else{a+=" {} "}var g=a;a=v.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+g+"]); "}else{a+=" validate.errors = ["+g+"]; return false; "}}else{a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" }";if(u){a+=" else { "}return a}},,,function(e,t,r){"use strict";var a=r(805),i=r(862),n=r(921),o=r(474),s=r(741),c=r(881),u=r(496),p=r(9),l=r(855);e.exports=Ajv;Ajv.prototype.validate=validate;Ajv.prototype.compile=compile;Ajv.prototype.addSchema=addSchema;Ajv.prototype.addMetaSchema=addMetaSchema;Ajv.prototype.validateSchema=validateSchema;Ajv.prototype.getSchema=getSchema;Ajv.prototype.removeSchema=removeSchema;Ajv.prototype.addFormat=addFormat;Ajv.prototype.errorsText=errorsText;Ajv.prototype._addSchema=_addSchema;Ajv.prototype._compile=_compile;Ajv.prototype.compileAsync=r(890);var f=r(45);Ajv.prototype.addKeyword=f.add;Ajv.prototype.getKeyword=f.get;Ajv.prototype.removeKeyword=f.remove;Ajv.prototype.validateKeyword=f.validate;var m=r(844);Ajv.ValidationError=m.Validation;Ajv.MissingRefError=m.MissingRef;Ajv.$dataMetaSchema=p;var d="http://json-schema.org/draft-07/schema";var h=["removeAdditional","useDefaults","coerceTypes","strictDefaults"];var v=["/properties"];function Ajv(e){if(!(this instanceof Ajv))return new Ajv(e);e=this._opts=l.copy(e)||{};setLogger(this);this._schemas={};this._refs={};this._fragments={};this._formats=c(e.format);this._cache=e.cache||new n;this._loadingSchemas={};this._compilations=[];this.RULES=u();this._getId=chooseGetId(e);e.loopRequired=e.loopRequired||Infinity;if(e.errorDataPath=="property")e._errorDataPathProperty=true;if(e.serialize===undefined)e.serialize=s;this._metaOpts=getMetaSchemaOptions(this);if(e.formats)addInitialFormats(this);if(e.keywords)addInitialKeywords(this);addDefaultMetaSchema(this);if(typeof e.meta=="object")this.addMetaSchema(e.meta);if(e.nullable)this.addKeyword("nullable",{metaSchema:{type:"boolean"}});addInitialSchemas(this)}function validate(e,t){var r;if(typeof e=="string"){r=this.getSchema(e);if(!r)throw new Error('no schema with key or ref "'+e+'"')}else{var a=this._addSchema(e);r=a.validate||this._compile(a)}var i=r(t);if(r.$async!==true)this.errors=r.errors;return i}function compile(e,t){var r=this._addSchema(e,undefined,t);return r.validate||this._compile(r)}function addSchema(e,t,r,a){if(Array.isArray(e)){for(var n=0;n32)t=t.slice(1);var r=this._priv;a.strictEqual(t.length,32);a.strictEqual(r.length,32);var i=c.box.before(new Uint8Array(t),new Uint8Array(r));return n.from(i)}throw new Error("Invalid algorithm: "+this._algo)};DiffieHellman.prototype.generateKey=function(){var e=[];var t,r;if(this._algo==="dsa"){this._dh.generateKeys();e.push({name:"p",data:this._p.data});e.push({name:"q",data:this._key.part.q.data});e.push({name:"g",data:this._g.data});e.push({name:"y",data:this._dh.getPublicKey()});e.push({name:"x",data:this._dh.getPrivateKey()});this._key=new p({type:"dsa",parts:e});this._isPriv=true;return this._key}else if(this._algo==="ecdsa"){if(l){this._dh.generateKeys();e.push({name:"curve",data:n.from(this._curve)});e.push({name:"Q",data:this._dh.getPublicKey()});e.push({name:"d",data:this._dh.getPrivateKey()});this._key=new p({type:"ecdsa",curve:this._curve,parts:e});this._isPriv=true;return this._key}else{var o=this._ecParams.getN();var s=new d(i.randomBytes(o.bitLength()));var u=o.subtract(d.ONE);t=s.mod(u).add(d.ONE);r=this._ecParams.getG().multiply(t);t=n.from(t.toByteArray());r=n.from(this._ecParams.getCurve().encodePointHex(r),"hex");this._priv=new ECPrivate(this._ecParams,t);e.push({name:"curve",data:n.from(this._curve)});e.push({name:"Q",data:r});e.push({name:"d",data:t});this._key=new p({type:"ecdsa",curve:this._curve,parts:e});this._isPriv=true;return this._key}}else if(this._algo==="curve25519"){var f=c.box.keyPair();t=n.from(f.secretKey);r=n.from(f.publicKey);t=n.concat([t,r]);a.strictEqual(t.length,64);a.strictEqual(r.length,32);e.push({name:"A",data:r});e.push({name:"k",data:t});this._key=new p({type:"curve25519",parts:e});this._isPriv=true;return this._key}throw new Error("Invalid algorithm: "+this._algo)};DiffieHellman.prototype.generateKeys=DiffieHellman.prototype.generateKey;function X9ECParameters(e){var t=o.curves[e];a.object(t);var r=new d(t.p);var i=new d(t.a);var n=new d(t.b);var s=new d(t.n);var c=d.ONE;var u=new m.ECCurveFp(r,i,n);var p=u.decodePointHex(t.G.toString("hex"));this.curve=u;this.g=p;this.n=s;this.h=c}X9ECParameters.prototype.getCurve=function(){return this.curve};X9ECParameters.prototype.getG=function(){return this.g};X9ECParameters.prototype.getN=function(){return this.n};X9ECParameters.prototype.getH=function(){return this.h};function ECPublic(e,t){this._params=e;if(t[0]===0)t=t.slice(1);this._pub=e.getCurve().decodePointHex(t.toString("hex"))}function ECPrivate(e,t){this._params=e;this._priv=new d(s.mpNormalize(t))}ECPrivate.prototype.deriveSharedSecret=function(e){a.ok(e instanceof ECPublic);var t=e._pub.multiply(this._priv);return n.from(t.getX().toBigInteger().toByteArray())};function generateED25519(){var e=c.sign.keyPair();var t=n.from(e.secretKey);var r=n.from(e.publicKey);a.strictEqual(t.length,64);a.strictEqual(r.length,32);var i=[];i.push({name:"A",data:r});i.push({name:"k",data:t.slice(0,32)});var o=new p({type:"ed25519",parts:i});return o}function generateECDSA(e){var t=[];var r;if(l){var a={nistp256:"prime256v1",nistp384:"secp384r1",nistp521:"secp521r1"}[e];var o=i.createECDH(a);o.generateKeys();t.push({name:"curve",data:n.from(e)});t.push({name:"Q",data:o.getPublicKey()});t.push({name:"d",data:o.getPrivateKey()});r=new p({type:"ecdsa",curve:e,parts:t});return r}else{var s=new X9ECParameters(e);var c=s.getN();var u=Math.ceil((c.bitLength()+64)/8);var f=new d(i.randomBytes(u));var m=c.subtract(d.ONE);var h=f.mod(m).add(d.ONE);var v=s.getG().multiply(h);h=n.from(h.toByteArray());v=n.from(s.getCurve().encodePointHex(v),"hex");t.push({name:"curve",data:n.from(e)});t.push({name:"Q",data:v});t.push({name:"d",data:h});r=new p({type:"ecdsa",curve:e,parts:t});return r}}},,,function(e){e.exports=require("buffer")},,,,,,function(e,t,r){e.exports={read:read,write:write};var a=r(477);var i=r(215).Buffer;var n=r(852);var o=r(502);var s=r(270);var c=r(940);var u=r(290);var p={"rsa-sha1":5,"rsa-sha256":8,"rsa-sha512":10,"ecdsa-p256-sha256":13,"ecdsa-p384-sha384":14};var l={};Object.keys(p).forEach(function(e){l[p[e]]=e.toUpperCase()});function read(e,t){if(typeof e!=="string"){a.buffer(e,"buf");e=e.toString("ascii")}var r=e.split("\n");if(r[0].match(/^Private-key-format\: v1/)){var i=r[1].split(" ");var n=parseInt(i[1],10);var o=i[2];if(!l[n])throw new Error("Unsupported algorithm: "+o);return readDNSSECPrivateKey(n,r.slice(2))}var s=0;while(r[s].match(/^\;/))s++;if((r[s].match(/\. IN KEY /)||r[s].match(/\. IN DNSKEY /))&&r[s+1].length===0){return readRFC3110(r[s])}throw new Error("Cannot parse dnssec key")}function readRFC3110(e){var t=e.split(" ");var r=parseInt(t[5],10);if(!l[r])throw new Error("Unsupported algorithm: "+r);var a=t.slice(6,t.length).join();var o=i.from(a,"base64");if(l[r].match(/^RSA-/)){var c=o.readUInt8(0);if(c!=3&&c!=1)throw new Error("Cannot parse dnssec key: "+"unsupported exponent length");var u=o.slice(1,c+1);u=s.mpNormalize(u);var p=o.slice(1+c);p=s.mpNormalize(p);var f={type:"rsa",parts:[]};f.parts.push({name:"e",data:u});f.parts.push({name:"n",data:p});return new n(f)}if(l[r]==="ECDSA-P384-SHA384"||l[r]==="ECDSA-P256-SHA256"){var m="nistp384";var d=384;if(l[r].match(/^ECDSA-P256-SHA256/)){m="nistp256";d=256}var h={type:"ecdsa",curve:m,size:d,parts:[{name:"curve",data:i.from(m)},{name:"Q",data:s.ecNormalize(o)}]};return new n(h)}throw new Error("Unsupported algorithm: "+l[r])}function elementToBuf(e){return i.from(e.split(" ")[1],"base64")}function readDNSSECRSAPrivateKey(e){var t={};e.forEach(function(e){if(e.split(" ")[0]==="Modulus:")t["n"]=elementToBuf(e);else if(e.split(" ")[0]==="PublicExponent:")t["e"]=elementToBuf(e);else if(e.split(" ")[0]==="PrivateExponent:")t["d"]=elementToBuf(e);else if(e.split(" ")[0]==="Prime1:")t["p"]=elementToBuf(e);else if(e.split(" ")[0]==="Prime2:")t["q"]=elementToBuf(e);else if(e.split(" ")[0]==="Exponent1:")t["dmodp"]=elementToBuf(e);else if(e.split(" ")[0]==="Exponent2:")t["dmodq"]=elementToBuf(e);else if(e.split(" ")[0]==="Coefficient:")t["iqmp"]=elementToBuf(e)});var r={type:"rsa",parts:[{name:"e",data:s.mpNormalize(t["e"])},{name:"n",data:s.mpNormalize(t["n"])},{name:"d",data:s.mpNormalize(t["d"])},{name:"p",data:s.mpNormalize(t["p"])},{name:"q",data:s.mpNormalize(t["q"])},{name:"dmodp",data:s.mpNormalize(t["dmodp"])},{name:"dmodq",data:s.mpNormalize(t["dmodq"])},{name:"iqmp",data:s.mpNormalize(t["iqmp"])}]};return new o(r)}function readDNSSECPrivateKey(e,t){if(l[e].match(/^RSA-/)){return readDNSSECRSAPrivateKey(t)}if(l[e]==="ECDSA-P384-SHA384"||l[e]==="ECDSA-P256-SHA256"){var r=i.from(t[0].split(" ")[1],"base64");var a="nistp384";var n=384;if(l[e]==="ECDSA-P256-SHA256"){a="nistp256";n=256}var c=s.publicFromPrivateECDSA(a,r);var u=c.part["Q"].data;var p={type:"ecdsa",curve:a,size:n,parts:[{name:"curve",data:i.from(a)},{name:"d",data:r},{name:"Q",data:u}]};return new o(p)}throw new Error("Unsupported algorithm: "+l[e])}function dnssecTimestamp(e){var t=e.getFullYear()+"";var r=e.getMonth()+1;var a=t+r+e.getUTCDate();a+=""+e.getUTCHours()+e.getUTCMinutes();a+=e.getUTCSeconds();return a}function rsaAlgFromOptions(e){if(!e||!e.hashAlgo||e.hashAlgo==="sha1")return"5 (RSASHA1)";else if(e.hashAlgo==="sha256")return"8 (RSASHA256)";else if(e.hashAlgo==="sha512")return"10 (RSASHA512)";else throw new Error("Unknown or unsupported hash: "+e.hashAlgo)}function writeRSA(e,t){if(!e.part.dmodp||!e.part.dmodq){s.addRSAMissing(e)}var r="";r+="Private-key-format: v1.3\n";r+="Algorithm: "+rsaAlgFromOptions(t)+"\n";var a=s.mpDenormalize(e.part["n"].data);r+="Modulus: "+a.toString("base64")+"\n";var n=s.mpDenormalize(e.part["e"].data);r+="PublicExponent: "+n.toString("base64")+"\n";var o=s.mpDenormalize(e.part["d"].data);r+="PrivateExponent: "+o.toString("base64")+"\n";var c=s.mpDenormalize(e.part["p"].data);r+="Prime1: "+c.toString("base64")+"\n";var u=s.mpDenormalize(e.part["q"].data);r+="Prime2: "+u.toString("base64")+"\n";var p=s.mpDenormalize(e.part["dmodp"].data);r+="Exponent1: "+p.toString("base64")+"\n";var l=s.mpDenormalize(e.part["dmodq"].data);r+="Exponent2: "+l.toString("base64")+"\n";var f=s.mpDenormalize(e.part["iqmp"].data);r+="Coefficient: "+f.toString("base64")+"\n";var m=new Date;r+="Created: "+dnssecTimestamp(m)+"\n";r+="Publish: "+dnssecTimestamp(m)+"\n";r+="Activate: "+dnssecTimestamp(m)+"\n";return i.from(r,"ascii")}function writeECDSA(e,t){var r="";r+="Private-key-format: v1.3\n";if(e.curve==="nistp256"){r+="Algorithm: 13 (ECDSAP256SHA256)\n"}else if(e.curve==="nistp384"){r+="Algorithm: 14 (ECDSAP384SHA384)\n"}else{throw new Error("Unsupported curve")}var a=e.part["d"].data.toString("base64");r+="PrivateKey: "+a+"\n";var n=new Date;r+="Created: "+dnssecTimestamp(n)+"\n";r+="Publish: "+dnssecTimestamp(n)+"\n";r+="Activate: "+dnssecTimestamp(n)+"\n";return i.from(r,"ascii")}function write(e,t){if(o.isPrivateKey(e)){if(e.type==="rsa"){return writeRSA(e,t)}else if(e.type==="ecdsa"){return writeECDSA(e,t)}else{throw new Error("Unsupported algorithm: "+e.type)}}else if(n.isKey(e)){throw new Error('Format "dnssec" only supports '+"writing private keys")}else{throw new Error("key is not a Key or PrivateKey")}}},function(e,t,r){"use strict";var a=r(359);var i=r(66);var n=r(884);var o=r(411);var s=r(16);var c=Array.prototype.slice;var u=o();var p=function findIndex(e,t){i(e);var r=c.call(arguments,1);return u.apply(e,r)};a(p,{getPolyfill:o,implementation:n,shim:s});e.exports=p},,,function(e){e.exports=require("async_hooks")},,,,,,,,,,,function(e){"use strict";e.exports=function generate_custom(e,t,r){var a=" ";var i=e.level;var n=e.dataLevel;var o=e.schema[t];var s=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var p;var l="data"+(n||"");var f="valid"+i;var m="errs__"+i;var d=e.opts.$data&&o&&o.$data,h;if(d){a+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ";h="schema"+i}else{h=o}var v=this,g="definition"+i,y=v.definition,b="";var k,x,w,j,_;if(d&&y.$data){_="keywordValidate"+i;var S=y.validateSchema;a+=" var "+g+" = RULES.custom['"+t+"'].definition; var "+_+" = "+g+".validate;"}else{j=e.useCustomRule(v,o,e.schema,e);if(!j)return;h="validate.schema"+s;_=j.code;k=y.compile;x=y.inline;w=y.macro}var E=_+".errors",P="i"+i,C="ruleErr"+i,F=y.async;if(F&&!e.async)throw new Error("async keyword in sync schema");if(!(x||w)){a+=""+E+" = null;"}a+="var "+m+" = errors;var "+f+";";if(d&&y.$data){b+="}";a+=" if ("+h+" === undefined) { "+f+" = true; } else { ";if(S){b+="}";a+=" "+f+" = "+g+".validateSchema("+h+"); if ("+f+") { "}}if(x){if(y.statements){a+=" "+j.validate+" "}else{a+=" "+f+" = "+j.validate+"; "}}else if(w){var A=e.util.copy(e);var b="";A.level++;var T="valid"+A.level;A.schema=j.validate;A.schemaPath="";var q=e.compositeRule;e.compositeRule=A.compositeRule=true;var z=e.validate(A).replace(/validate\.schema/g,_);e.compositeRule=A.compositeRule=q;a+=" "+z}else{var O=O||[];O.push(a);a="";a+=" "+_+".call( ";if(e.opts.passContext){a+="this"}else{a+="self"}if(k||y.schema===false){a+=" , "+l+" "}else{a+=" , "+h+" , "+l+" , validate.schema"+e.schemaPath+" "}a+=" , (dataPath || '')";if(e.errorPath!='""'){a+=" + "+e.errorPath}var B=n?"data"+(n-1||""):"parentData",D=n?e.dataPathArr[n]:"parentDataProperty";a+=" , "+B+" , "+D+" , rootData ) ";var I=a;a=O.pop();if(y.errors===false){a+=" "+f+" = ";if(F){a+="await "}a+=""+I+"; "}else{if(F){E="customErrors"+i;a+=" var "+E+" = null; try { "+f+" = await "+I+"; } catch (e) { "+f+" = false; if (e instanceof ValidationError) "+E+" = e.errors; else throw e; } "}else{a+=" "+E+" = null; "+f+" = "+I+"; "}}}if(y.modifying){a+=" if ("+B+") "+l+" = "+B+"["+D+"];"}a+=""+b;if(y.valid){if(u){a+=" if (true) { "}}else{a+=" if ( ";if(y.valid===undefined){a+=" !";if(w){a+=""+T}else{a+=""+f}}else{a+=" "+!y.valid+" "}a+=") { ";p=v.keyword;var O=O||[];O.push(a);a="";var O=O||[];O.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(p||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { keyword: '"+v.keyword+"' } ";if(e.opts.messages!==false){a+=" , message: 'should pass \""+v.keyword+"\" keyword validation' "}if(e.opts.verbose){a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}a+=" } "}else{a+=" {} "}var R=a;a=O.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+R+"]); "}else{a+=" validate.errors = ["+R+"]; return false; "}}else{a+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}var M=a;a=O.pop();if(x){if(y.errors){if(y.errors!="full"){a+=" for (var "+P+"="+m+"; "+P+"this._canPossiblyFulfill()){this._reject(this._getRangeError(this.length()))}};SomePromiseArray.prototype.init=function(){this._initialized=true;this._init()};SomePromiseArray.prototype.setUnwrap=function(){this._unwrap=true};SomePromiseArray.prototype.howMany=function(){return this._howMany};SomePromiseArray.prototype.setHowMany=function(e){this._howMany=e};SomePromiseArray.prototype._promiseFulfilled=function(e){this._addFulfilled(e);if(this._fulfilled()===this.howMany()){this._values.length=this.howMany();if(this.howMany()===1&&this._unwrap){this._resolve(this._values[0])}else{this._resolve(this._values)}return true}return false};SomePromiseArray.prototype._promiseRejected=function(e){this._addRejected(e);return this._checkOutcome()};SomePromiseArray.prototype._promiseCancelled=function(){if(this._values instanceof e||this._values==null){return this._cancel()}this._addRejected(c);return this._checkOutcome()};SomePromiseArray.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){var e=new o;for(var t=this.length();t0){this._reject(e)}else{this._cancel()}return true}return false};SomePromiseArray.prototype._fulfilled=function(){return this._totalResolved};SomePromiseArray.prototype._rejected=function(){return this._values.length-this.length()};SomePromiseArray.prototype._addRejected=function(e){this._values.push(e)};SomePromiseArray.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e};SomePromiseArray.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()};SomePromiseArray.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new n(t)};SomePromiseArray.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))};function some(e,t){if((t|0)!==t||t<0){return a("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n")}var r=new SomePromiseArray(e);var i=r.promise();r.setHowMany(t);r.init();return i}e.some=function(e,t){return some(e,t)};e.prototype.some=function(e){return some(this,e)};e._SomePromiseArray=SomePromiseArray}},,,function(e){e.exports={$id:"cookie.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","value"],properties:{name:{type:"string"},value:{type:"string"},path:{type:"string"},domain:{type:"string"},expires:{type:["string","null"],format:"date-time"},httpOnly:{type:"boolean"},secure:{type:"boolean"},comment:{type:"string"}}}},,,,,,,,function(e,t,r){e.exports={parallel:r(31),serial:r(91),serialOrdered:r(892)}},,,function(e){function isObjectLike(e){return e!=null&&typeof e=="object"}e.exports=isObjectLike},,function(e){e.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:false}},function(e){"use strict";var t=e.exports=function(e,t,r){if(typeof t=="function"){r=t;t={}}r=t.cb||r;var a=typeof r=="function"?r:r.pre||function(){};var i=r.post||function(){};_traverse(t,a,i,e,"",e)};t.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true};t.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};t.propsKeywords={definitions:true,properties:true,patternProperties:true,dependencies:true};t.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function _traverse(e,r,a,i,n,o,s,c,u,p){if(i&&typeof i=="object"&&!Array.isArray(i)){r(i,n,o,s,c,u,p);for(var l in i){var f=i[l];if(Array.isArray(f)){if(l in t.arrayKeywords){for(var m=0;m",b=d?">":"<",p=undefined;if(!(f||typeof o=="number"||o===undefined)){throw new Error(t+" must be number")}if(!(g||v===undefined||typeof v=="number"||typeof v=="boolean")){throw new Error(h+" must be number or boolean")}if(g){var k=e.util.getData(v.$data,n,e.dataPathArr),x="exclusive"+i,w="exclType"+i,j="exclIsNumber"+i,_="op"+i,S="' + "+_+" + '";a+=" var schemaExcl"+i+" = "+k+"; ";k="schemaExcl"+i;a+=" var "+x+"; var "+w+" = typeof "+k+"; if ("+w+" != 'boolean' && "+w+" != 'undefined' && "+w+" != 'number') { ";var p=h;var E=E||[];E.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(p||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: '"+h+" should be boolean' "}if(e.opts.verbose){a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}a+=" } "}else{a+=" {} "}var P=a;a=E.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+P+"]); "}else{a+=" validate.errors = ["+P+"]; return false; "}}else{a+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else if ( ";if(f){a+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "}a+=" "+w+" == 'number' ? ( ("+x+" = "+m+" === undefined || "+k+" "+y+"= "+m+") ? "+l+" "+b+"= "+k+" : "+l+" "+b+" "+m+" ) : ( ("+x+" = "+k+" === true) ? "+l+" "+b+"= "+m+" : "+l+" "+b+" "+m+" ) || "+l+" !== "+l+") { var op"+i+" = "+x+" ? '"+y+"' : '"+y+"='; ";if(o===undefined){p=h;c=e.errSchemaPath+"/"+h;m=k;f=g}}else{var j=typeof v=="number",S=y;if(j&&f){var _="'"+S+"'";a+=" if ( ";if(f){a+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "}a+=" ( "+m+" === undefined || "+v+" "+y+"= "+m+" ? "+l+" "+b+"= "+v+" : "+l+" "+b+" "+m+" ) || "+l+" !== "+l+") { "}else{if(j&&o===undefined){x=true;p=h;c=e.errSchemaPath+"/"+h;m=v;b+="="}else{if(j)m=Math[d?"min":"max"](v,o);if(v===(j?m:true)){x=true;p=h;c=e.errSchemaPath+"/"+h;b+="="}else{x=false;S+="="}}var _="'"+S+"'";a+=" if ( ";if(f){a+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "}a+=" "+l+" "+b+" "+m+" || "+l+" !== "+l+") { "}}p=p||t;var E=E||[];E.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(p||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { comparison: "+_+", limit: "+m+", exclusive: "+x+" } ";if(e.opts.messages!==false){a+=" , message: 'should be "+S+" ";if(f){a+="' + "+m}else{a+=""+m+"'"}}if(e.opts.verbose){a+=" , schema: ";if(f){a+="validate.schema"+s}else{a+=""+o}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}a+=" } "}else{a+=" {} "}var P=a;a=E.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+P+"]); "}else{a+=" validate.errors = ["+P+"]; return false; "}}else{a+=" var err = "+P+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(u){a+=" else { "}return a}},function(e,t,r){var a=r(477);var i=r(669);var n=r(909);var o=n.HASH_ALGOS;var s=n.PK_ALGOS;var c=n.HttpSignatureError;var u=n.InvalidAlgorithmError;var p=n.validateAlgorithm;var l={New:0,Params:1};var f={Name:0,Quote:1,Value:2,Comma:3};function ExpiredRequestError(e){c.call(this,e,ExpiredRequestError)}i.inherits(ExpiredRequestError,c);function InvalidHeaderError(e){c.call(this,e,InvalidHeaderError)}i.inherits(InvalidHeaderError,c);function InvalidParamsError(e){c.call(this,e,InvalidParamsError)}i.inherits(InvalidParamsError,c);function MissingHeaderError(e){c.call(this,e,MissingHeaderError)}i.inherits(MissingHeaderError,c);function StrictParsingError(e){c.call(this,e,StrictParsingError)}i.inherits(StrictParsingError,c);e.exports={parseRequest:function parseRequest(e,t){a.object(e,"request");a.object(e.headers,"request.headers");if(t===undefined){t={}}if(t.headers===undefined){t.headers=[e.headers["x-date"]?"x-date":"date"]}a.object(t,"options");a.arrayOfString(t.headers,"options.headers");a.optionalFinite(t.clockSkew,"options.clockSkew");var r=t.authorizationHeaderName||"authorization";if(!e.headers[r]){throw new MissingHeaderError("no "+r+" header "+"present in the request")}t.clockSkew=t.clockSkew||300;var i=0;var n=l.New;var o=f.Name;var s="";var c="";var m={scheme:"",params:{},signingString:""};var d=e.headers[r];for(i=0;i=65&&v<=90||v>=97&&v<=122){s+=h}else if(h==="="){if(s.length===0)throw new InvalidHeaderError("bad param format");o=f.Quote}else{throw new InvalidHeaderError("bad param format")}break;case f.Quote:if(h==='"'){c="";o=f.Value}else{throw new InvalidHeaderError("bad param format")}break;case f.Value:if(h==='"'){m.params[s]=c;o=f.Comma}else{c+=h}break;case f.Comma:if(h===","){s="";o=f.Name}else{throw new InvalidHeaderError("bad param format")}break;default:throw new Error("Invalid substate")}break;default:throw new Error("Invalid substate")}}if(!m.params.headers||m.params.headers===""){if(e.headers["x-date"]){m.params.headers=["x-date"]}else{m.params.headers=["date"]}}else{m.params.headers=m.params.headers.split(" ")}if(!m.scheme||m.scheme!=="Signature")throw new InvalidHeaderError('scheme was not "Signature"');if(!m.params.keyId)throw new InvalidHeaderError("keyId was not specified");if(!m.params.algorithm)throw new InvalidHeaderError("algorithm was not specified");if(!m.params.signature)throw new InvalidHeaderError("signature was not specified");m.params.algorithm=m.params.algorithm.toLowerCase();try{p(m.params.algorithm)}catch(e){if(e instanceof u)throw new InvalidParamsError(m.params.algorithm+" is not "+"supported");else throw e}for(i=0;it.clockSkew*1e3){throw new ExpiredRequestError("clock skew of "+x/1e3+"s was greater than "+t.clockSkew+"s")}}t.headers.forEach(function(e){if(m.params.headers.indexOf(e.toLowerCase())<0)throw new MissingHeaderError(e+" was not a signed header")});if(t.algorithms){if(t.algorithms.indexOf(m.params.algorithm)===-1)throw new InvalidParamsError(m.params.algorithm+" is not a supported algorithm")}m.algorithm=m.params.algorithm.toUpperCase();m.keyId=m.params.keyId;return m}}},function(e,t,r){"use strict";var a=r(370);var i=a("RegExp.prototype.test");var n=r(896);e.exports=function regexTester(e){return n(i,e)}},,,function(e){"use strict";e.exports=function generate_properties(e,t,r){var a=" ";var i=e.level;var n=e.dataLevel;var o=e.schema[t];var s=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var p="data"+(n||"");var l="errs__"+i;var f=e.util.copy(e);var m="";f.level++;var d="valid"+f.level;var h="key"+i,v="idx"+i,g=f.dataLevel=e.dataLevel+1,y="data"+g,b="dataProperties"+i;var k=Object.keys(o||{}).filter(notProto),x=e.schema.patternProperties||{},w=Object.keys(x).filter(notProto),j=e.schema.additionalProperties,_=k.length||w.length,S=j===false,E=typeof j=="object"&&Object.keys(j).length,P=e.opts.removeAdditional,C=S||E||P,F=e.opts.ownProperties,A=e.baseId;var T=e.schema.required;if(T&&!(e.opts.$data&&T.$data)&&T.length8){a+=" || validate.schema"+s+".hasOwnProperty("+h+") "}else{var z=k;if(z){var O,B=-1,D=z.length-1;while(B0:e.util.schemaHasRules(Y,e.RULES.all)){var ee=e.util.getProperty(O),W=p+ee,te=G&&Y.default!==undefined;f.schema=Y;f.schemaPath=s+ee;f.errSchemaPath=c+"/"+e.util.escapeFragment(O);f.errorPath=e.util.getPath(e.errorPath,O,e.opts.jsonPointers);f.dataPathArr[g]=e.util.toQuotedString(O);var Q=e.validate(f);f.baseId=A;if(e.util.varOccurences(Q,y)<2){Q=e.util.varReplace(Q,y,W);var re=W}else{var re=y;a+=" var "+y+" = "+W+"; "}if(te){a+=" "+Q+" "}else{if(q&&q[O]){a+=" if ( "+re+" === undefined ";if(F){a+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(O)+"') "}a+=") { "+d+" = false; ";var N=e.errorPath,U=c,ae=e.util.escapeQuotes(O);if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPath(N,O,e.opts.jsonPointers)}c=e.errSchemaPath+"/required";var $=$||[];$.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+ae+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+ae+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}a+=" } "}else{a+=" {} "}var K=a;a=$.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+K+"]); "}else{a+=" validate.errors = ["+K+"]; return false; "}}else{a+=" var err = "+K+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}c=U;e.errorPath=N;a+=" } else { "}else{if(u){a+=" if ( "+re+" === undefined ";if(F){a+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(O)+"') "}a+=") { "+d+" = true; } else { "}else{a+=" if ("+re+" !== undefined ";if(F){a+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(O)+"') "}a+=" ) { "}}a+=" "+Q+" } "}}if(u){a+=" if ("+d+") { ";m+="}"}}}}if(w.length){var ie=w;if(ie){var R,ne=-1,oe=ie.length-1;while(ne0:e.util.schemaHasRules(Y,e.RULES.all)){f.schema=Y;f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(R);f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(R);if(F){a+=" "+b+" = "+b+" || Object.keys("+p+"); for (var "+v+"=0; "+v+"<"+b+".length; "+v+"++) { var "+h+" = "+b+"["+v+"]; "}else{a+=" for (var "+h+" in "+p+") { "}a+=" if ("+e.usePattern(R)+".test("+h+")) { ";f.errorPath=e.util.getPathExpr(e.errorPath,h,e.opts.jsonPointers);var W=p+"["+h+"]";f.dataPathArr[g]=h;var Q=e.validate(f);f.baseId=A;if(e.util.varOccurences(Q,y)<2){a+=" "+e.util.varReplace(Q,y,W)+" "}else{a+=" var "+y+" = "+W+"; "+Q+" "}if(u){a+=" if (!"+d+") break; "}a+=" } ";if(u){a+=" else "+d+" = true; "}a+=" } ";if(u){a+=" if ("+d+") { ";m+="}"}}}}}if(u){a+=" "+m+" if ("+l+" == errors) {"}return a}},,function(e,t,r){var a=r(477);var i=r(669);var n=r(697);var o=r(956);var s=r(703);t.deepCopy=deepCopy;t.deepEqual=deepEqual;t.isEmpty=isEmpty;t.hasKey=hasKey;t.forEachKey=forEachKey;t.pluck=pluck;t.flattenObject=flattenObject;t.flattenIter=flattenIter;t.validateJsonObject=validateJsonObjectJS;t.validateJsonObjectJS=validateJsonObjectJS;t.randElt=randElt;t.extraProperties=extraProperties;t.mergeObjects=mergeObjects;t.startsWith=startsWith;t.endsWith=endsWith;t.parseInteger=parseInteger;t.iso8601=iso8601;t.rfc1123=rfc1123;t.parseDateTime=parseDateTime;t.hrtimediff=hrtimeDiff;t.hrtimeDiff=hrtimeDiff;t.hrtimeAccum=hrtimeAccum;t.hrtimeAdd=hrtimeAdd;t.hrtimeNanosec=hrtimeNanosec;t.hrtimeMicrosec=hrtimeMicrosec;t.hrtimeMillisec=hrtimeMillisec;function deepCopy(e){var t,r;var a="__deepCopy";if(e&&e[a])throw new Error("attempted deep copy of cyclic object");if(e&&e.constructor==Object){t={};e[a]=true;for(r in e){if(r==a)continue;t[r]=deepCopy(e[r])}delete e[a];return t}if(e&&e.constructor==Array){t=[];e[a]=true;for(r=0;r=0);for(o in e){n=r.slice(0);n.push(o);doFlattenIter(e[o],t-1,n,i)}}function flattenObject(e,t){if(t===0)return[e];a.ok(e!==null);a.equal(typeof e,"object");a.equal(typeof t,"number");a.ok(t>=0);var r=[];var i;for(i in e){flattenObject(e[i],t-1).forEach(function(e){r.push([i].concat(e))})}return r}function startsWith(e,t){return e.substr(0,t.length)==t}function endsWith(e,t){return e.substr(e.length-t.length,t.length)==t}function iso8601(e){if(typeof e=="number")e=new Date(e);a.ok(e.constructor===Date);return n.sprintf("%4d-%02d-%02dT%02d:%02d:%02d.%03dZ",e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}var c=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];var u=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];function rfc1123(e){return n.sprintf("%s, %02d %s %04d %02d:%02d:%02d GMT",u[e.getUTCDay()],e.getUTCDate(),c[e.getUTCMonth()],e.getUTCFullYear(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function parseDateTime(e){var t=+e;if(!isNaN(t)){return new Date(t)}else{return new Date(e)}}var p=Number.MAX_SAFE_INTEGER||9007199254740991;var l=Number.MIN_SAFE_INTEGER||-9007199254740991;var f={base:10,allowSign:true,allowPrefix:false,allowTrailing:false,allowImprecise:false,trimWhitespace:false,leadingZeroIsOctal:false};var m=48;var d=57;var h=65;var v=66;var g=79;var y=84;var b=88;var k=90;var x=97;var w=98;var j=111;var _=116;var S=120;var E=122;var P=48;var C=55;var F=87;function parseInteger(e,t){a.string(e,"str");a.optionalObject(t,"options");var r=false;var i=f;if(t){r=hasKey(t,"base");i=mergeObjects(i,t);a.number(i.base,"options.base");a.ok(i.base>=2,"options.base >= 2");a.ok(i.base<=36,"options.base <= 36");a.bool(i.allowSign,"options.allowSign");a.bool(i.allowPrefix,"options.allowPrefix");a.bool(i.allowTrailing,"options.allowTrailing");a.bool(i.allowImprecise,"options.allowImprecise");a.bool(i.trimWhitespace,"options.trimWhitespace");a.bool(i.leadingZeroIsOctal,"options.leadingZeroIsOctal");if(i.leadingZeroIsOctal){a.ok(!r,'"base" and "leadingZeroIsOctal" are '+"mutually exclusive")}}var n;var o=-1;var s=i.base;var c;var u=1;var m=0;var d=0;var h=e.length;if(i.trimWhitespace){while(dp||v=m&&e<=d){return e-P}else if(e>=h&&e<=k){return e-C}else if(e>=x&&e<=E){return e-F}else{return-1}}function isSpace(e){return e===32||e>=9&&e<=13||e===160||e===5760||e===6158||e>=8192&&e<=8202||e===8232||e===8233||e===8239||e===8287||e===12288||e===65279}function prefixToBase(e){if(e===w||e===v){return 2}else if(e===j||e===g){return 8}else if(e===_||e===y){return 10}else if(e===S||e===b){return 16}else{return-1}}function validateJsonObjectJS(e,t){var r=s.validate(t,e);if(r.errors.length===0)return null;var a=r.errors[0];var i=a["property"];var n=a["message"].toLowerCase();var c,u;if((c=n.indexOf("the property "))!=-1&&(u=n.indexOf(" is not defined in the schema and the "+"schema does not allow additional properties"))!=-1){c+="the property ".length;if(i==="")i=n.substr(c,u-c);else i=i+"."+n.substr(c,u-c);n="unsupported property"}var p=new o.VError('property "%s": %s',i,n);p.jsv_details=a;return p}function randElt(e){a.ok(Array.isArray(e)&&e.length>0,"randElt argument must be a non-empty array");return e[Math.floor(Math.random()*e.length)]}function assertHrtime(e){a.ok(e[0]>=0&&e[1]>=0,"negative numbers not allowed in hrtimes");a.ok(e[1]<1e9,"nanoseconds column overflow")}function hrtimeDiff(e,t){assertHrtime(e);assertHrtime(t);a.ok(e[0]>t[0]||e[0]==t[0]&&e[1]>=t[1],"negative differences not allowed");var r=[e[0]-t[0],0];if(e[1]>=t[1]){r[1]=e[1]-t[1]}else{r[0]--;r[1]=1e9-(t[1]-e[1])}return r}function hrtimeNanosec(e){assertHrtime(e);return Math.floor(e[0]*1e9+e[1])}function hrtimeMicrosec(e){assertHrtime(e);return Math.floor(e[0]*1e6+e[1]/1e3)}function hrtimeMillisec(e){assertHrtime(e);return Math.floor(e[0]*1e3+e[1]/1e6)}function hrtimeAccum(e,t){assertHrtime(e);assertHrtime(t);e[1]+=t[1];if(e[1]>=1e9){e[0]++;e[1]-=1e9}e[0]+=t[0];return e}function hrtimeAdd(e,t){assertHrtime(e);var r=[e[0],e[1]];return hrtimeAccum(r,t)}function extraProperties(e,t){a.ok(typeof e==="object"&&e!==null,"obj argument must be a non-null object");a.ok(Array.isArray(t),"allowed argument must be an array of strings");for(var r=0;r{this._webServer.listen(this.options.port,this.options.host,()=>{i("WebHook listening on port %s",this.options.port);this._open=true;return e()})})}close(){if(!this.isOpen()){return u.resolve()}return new u((e,t)=>{this._webServer.close(r=>{if(r)return t(r);this._open=false;return e()})})}isOpen(){return this._open}_error(e){if(!this.bot.listeners("webhook_error").length){return console.error("error: [webhook_error] %j",e)}return this.bot.emit("webhook_error",e)}_parseBody(e,t){if(e){return this._error(new a.FatalError(e))}let r;try{r=JSON.parse(t.toString())}catch(e){return this._error(new a.ParseError(e.message))}return this.bot.processUpdate(r)}_requestListener(e,t){i("WebHook request URL: %s",e.url);i("WebHook request headers: %j",e.headers);if(e.url.indexOf(this.bot.token)!==-1){if(e.method!=="POST"){i("WebHook request isn't a POST");t.statusCode=418;t.end()}else{e.pipe(c(this._parseBody)).on("finish",()=>t.end("OK"))}}else if(this._healthRegex.test(e.url)){i("WebHook health check passed");t.statusCode=200;t.end("OK")}else{i("WebHook request unauthorized");t.statusCode=401;t.end()}}}e.exports=TelegramBotWebHook},,,function(e){e.exports=require("assert")},,function(e,t,r){"use strict";var a=r(786);var i=typeof Symbol==="function"&&typeof Symbol("foo")==="symbol";var n=Object.prototype.toString;var o=Array.prototype.concat;var s=Object.defineProperty;var c=function(e){return typeof e==="function"&&n.call(e)==="[object Function]"};var u=function(){var e={};try{s(e,"x",{enumerable:false,value:e});for(var t in e){return false}return e.x===e}catch(e){return false}};var p=s&&u();var l=function(e,t,r,a){if(t in e&&(!c(a)||!a())){return}if(p){s(e,t,{configurable:true,enumerable:false,value:r,writable:true})}else{e[t]=r}};var f=function(e,t){var r=arguments.length>2?arguments[2]:{};var n=a(t);if(i){n=o.call(n,Object.getOwnPropertySymbols(t))}for(var s=0;s0:e.util.schemaHasRules(y,e.RULES.all)){a+=" "+d+" = true; if ( "+p+e.util.getProperty(x)+" !== undefined ";if(g){a+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(x)+"') "}a+=") { ";f.schema=y;f.schemaPath=s+e.util.getProperty(x);f.errSchemaPath=c+"/"+e.util.escapeFragment(x);a+=" "+e.validate(f)+" ";f.baseId=B;a+=" } ";if(u){a+=" if ("+d+") { ";m+="}"}}}if(u){a+=" "+m+" if ("+l+" == errors) {"}return a}},function(e,t,r){"use strict";var a;var i=TypeError;var n=Object.getOwnPropertyDescriptor;if(n){try{n({},"")}catch(e){n=null}}var o=function(){throw new i};var s=n?function(){try{arguments.callee;return o}catch(e){try{return n(arguments,"callee").get}catch(e){return o}}}():o;var c=r(559)();var u=Object.getPrototypeOf||function(e){return e.__proto__};var p;var l=p?u(p):a;var f;var m=f?f.constructor:a;var d;var h=d?u(d):a;var v=d?d():a;var g=typeof Uint8Array==="undefined"?a:u(Uint8Array);var y={"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer==="undefined"?a:ArrayBuffer,"%ArrayBufferPrototype%":typeof ArrayBuffer==="undefined"?a:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":c?u([][Symbol.iterator]()):a,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":a,"%AsyncFunction%":m,"%AsyncFunctionPrototype%":m?m.prototype:a,"%AsyncGenerator%":d?u(v):a,"%AsyncGeneratorFunction%":h,"%AsyncGeneratorPrototype%":h?h.prototype:a,"%AsyncIteratorPrototype%":v&&c&&Symbol.asyncIterator?v[Symbol.asyncIterator]():a,"%Atomics%":typeof Atomics==="undefined"?a:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":typeof DataView==="undefined"?a:DataView,"%DataViewPrototype%":typeof DataView==="undefined"?a:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":typeof Float32Array==="undefined"?a:Float32Array,"%Float32ArrayPrototype%":typeof Float32Array==="undefined"?a:Float32Array.prototype,"%Float64Array%":typeof Float64Array==="undefined"?a:Float64Array,"%Float64ArrayPrototype%":typeof Float64Array==="undefined"?a:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":p?u(p()):a,"%GeneratorFunction%":l,"%GeneratorPrototype%":l?l.prototype:a,"%Int8Array%":typeof Int8Array==="undefined"?a:Int8Array,"%Int8ArrayPrototype%":typeof Int8Array==="undefined"?a:Int8Array.prototype,"%Int16Array%":typeof Int16Array==="undefined"?a:Int16Array,"%Int16ArrayPrototype%":typeof Int16Array==="undefined"?a:Int8Array.prototype,"%Int32Array%":typeof Int32Array==="undefined"?a:Int32Array,"%Int32ArrayPrototype%":typeof Int32Array==="undefined"?a:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c?u(u([][Symbol.iterator]())):a,"%JSON%":typeof JSON==="object"?JSON:a,"%JSONParse%":typeof JSON==="object"?JSON.parse:a,"%Map%":typeof Map==="undefined"?a:Map,"%MapIteratorPrototype%":typeof Map==="undefined"||!c?a:u((new Map)[Symbol.iterator]()),"%MapPrototype%":typeof Map==="undefined"?a:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise==="undefined"?a:Promise,"%PromisePrototype%":typeof Promise==="undefined"?a:Promise.prototype,"%PromiseProto_then%":typeof Promise==="undefined"?a:Promise.prototype.then,"%Promise_all%":typeof Promise==="undefined"?a:Promise.all,"%Promise_reject%":typeof Promise==="undefined"?a:Promise.reject,"%Promise_resolve%":typeof Promise==="undefined"?a:Promise.resolve,"%Proxy%":typeof Proxy==="undefined"?a:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":typeof Reflect==="undefined"?a:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":typeof Set==="undefined"?a:Set,"%SetIteratorPrototype%":typeof Set==="undefined"||!c?a:u((new Set)[Symbol.iterator]()),"%SetPrototype%":typeof Set==="undefined"?a:Set.prototype,"%SharedArrayBuffer%":typeof SharedArrayBuffer==="undefined"?a:SharedArrayBuffer,"%SharedArrayBufferPrototype%":typeof SharedArrayBuffer==="undefined"?a:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":c?u(""[Symbol.iterator]()):a,"%StringPrototype%":String.prototype,"%Symbol%":c?Symbol:a,"%SymbolPrototype%":c?Symbol.prototype:a,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":s,"%TypedArray%":g,"%TypedArrayPrototype%":g?g.prototype:a,"%TypeError%":i,"%TypeErrorPrototype%":i.prototype,"%Uint8Array%":typeof Uint8Array==="undefined"?a:Uint8Array,"%Uint8ArrayPrototype%":typeof Uint8Array==="undefined"?a:Uint8Array.prototype,"%Uint8ClampedArray%":typeof Uint8ClampedArray==="undefined"?a:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":typeof Uint8ClampedArray==="undefined"?a:Uint8ClampedArray.prototype,"%Uint16Array%":typeof Uint16Array==="undefined"?a:Uint16Array,"%Uint16ArrayPrototype%":typeof Uint16Array==="undefined"?a:Uint16Array.prototype,"%Uint32Array%":typeof Uint32Array==="undefined"?a:Uint32Array,"%Uint32ArrayPrototype%":typeof Uint32Array==="undefined"?a:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":typeof WeakMap==="undefined"?a:WeakMap,"%WeakMapPrototype%":typeof WeakMap==="undefined"?a:WeakMap.prototype,"%WeakSet%":typeof WeakSet==="undefined"?a:WeakSet,"%WeakSetPrototype%":typeof WeakSet==="undefined"?a:WeakSet.prototype};var b=r(739);var k=b.call(Function.call,String.prototype.replace);var x=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;var w=/\\(\\)?/g;var j=function stringToPath(e){var t=[];k(e,x,function(e,r,a,i){t[t.length]=a?k(i,w,"$1"):r||e});return t};var _=function getBaseIntrinsic(e,t){if(!(e in y)){throw new SyntaxError("intrinsic "+e+" does not exist!")}if(typeof y[e]==="undefined"&&!t){throw new i("intrinsic "+e+" exists, but is not available. Please file an issue!")}return y[e]};e.exports=function GetIntrinsic(e,t){if(typeof e!=="string"||e.length===0){throw new TypeError("intrinsic name must be a non-empty string")}if(arguments.length>1&&typeof t!=="boolean"){throw new TypeError('"allowMissing" argument must be a boolean')}var r=j(e);var a=_("%"+(r.length>0?r[0]:"")+"%",t);for(var o=1;o=r.length){var s=n(a,r[o]);if(!t&&!(r[o]in a)){throw new i("base intrinsic for "+e+" exists, but the property is not available.")}a=s?s.get||s.value:a[r[o]]}else{a=a[r[o]]}}}return a}},,,,function(e){"use strict";var t=Object.prototype.hasOwnProperty;var r=Object.prototype.toString;var a=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var n=function isArray(e){if(typeof Array.isArray==="function"){return Array.isArray(e)}return r.call(e)==="[object Array]"};var o=function isPlainObject(e){if(!e||r.call(e)!=="[object Object]"){return false}var a=t.call(e,"constructor");var i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!a&&!i){return false}var n;for(n in e){}return typeof n==="undefined"||t.call(e,n)};var s=function setProperty(e,t){if(a&&t.name==="__proto__"){a(e,t.name,{enumerable:true,configurable:true,value:t.newValue,writable:true})}else{e[t.name]=t.newValue}};var c=function getProperty(e,r){if(r==="__proto__"){if(!t.call(e,r)){return void 0}else if(i){return i(e,r).value}}return e[r]};e.exports=function extend(){var e,t,r,a,i,u;var p=arguments[0];var l=1;var f=arguments.length;var m=false;if(typeof p==="boolean"){m=p;p=arguments[1]||{};l=2}if(p==null||typeof p!=="object"&&typeof p!=="function"){p={}}for(;l0){this.cn=this.componentLookup.cn[0].value}a.optionalString(e.type,"options.type");if(e.type===undefined){if(this.components.length===1&&this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(m)){this.type="host";this.hostname=this.componentLookup.cn[0].value}else if(this.componentLookup.dc&&this.components.length===this.componentLookup.dc.length){this.type="host";this.hostname=this.componentLookup.dc.map(function(e){return e.value}).join(".")}else if(this.componentLookup.uid&&this.components.length===this.componentLookup.uid.length){this.type="user";this.uid=this.componentLookup.uid[0].value}else if(this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(m)){this.type="host";this.hostname=this.componentLookup.cn[0].value}else if(this.componentLookup.uid&&this.componentLookup.uid.length===1){this.type="user";this.uid=this.componentLookup.uid[0].value}else if(this.componentLookup.mail&&this.componentLookup.mail.length===1){this.type="email";this.email=this.componentLookup.mail[0].value}else if(this.componentLookup.cn&&this.componentLookup.cn.length===1){this.type="user";this.uid=this.componentLookup.cn[0].value}else{this.type="unknown"}}else{this.type=e.type;if(this.type==="host")this.hostname=e.hostname;else if(this.type==="user")this.uid=e.uid;else if(this.type==="email")this.email=e.email;else throw new Error("Unknown type "+this.type)}}Identity.prototype.toString=function(){return this.components.map(function(e){var t=e.name.toUpperCase();t=t.replace(/=/g,"\\=");var r=e.value;r=r.replace(/,/g,"\\,");return t+"="+r}).join(", ")};Identity.prototype.get=function(e,t){a.string(e,"name");var r=this.componentLookup[e];if(r===undefined||r.length===0)return undefined;if(!t&&r.length>1)throw new Error("Multiple values for attribute "+e);if(!t)return r[0].value;return r.map(function(e){return e.value})};Identity.prototype.toArray=function(e){return this.components.map(function(e){return{name:e.name,value:e.value}})};var v=/[^a-zA-Z0-9 '(),+.\/:=?-]/;var g=/[^\x00-\x7f]/;Identity.prototype.toAsn1=function(e,t){e.startSequence(t);this.components.forEach(function(t){e.startSequence(l.Ber.Constructor|l.Ber.Set);e.startSequence();e.writeOID(t.oid);if(t.asn1type===l.Ber.Utf8String||t.value.match(g)){var r=f.from(t.value,"utf8");e.writeBuffer(r,l.Ber.Utf8String)}else if(t.asn1type===l.Ber.IA5String||t.value.match(v)){e.writeString(t.value,l.Ber.IA5String)}else{var a=l.Ber.PrintableString;if(t.asn1type!==undefined)a=t.asn1type;e.writeString(t.value,a)}e.endSequence();e.endSequence()});e.endSequence()};function globMatch(e,t){if(e==="**"||t==="**")return true;var r=e.split(".");var a=t.split(".");if(r.length!==a.length)return false;for(var i=0;i0){var n;if((n=/^,/.exec(i))!==null){t[++r]="";i=i.slice(n[0].length)}else if((n=/^\\,/.exec(i))!==null){t[r]+=",";i=i.slice(n[0].length)}else if((n=/^\\./.exec(i))!==null){t[r]+=n[0];i=i.slice(n[0].length)}else if((n=/^[^\\,]+/.exec(i))!==null){t[r]+=n[0];i=i.slice(n[0].length)}else{throw new Error("Failed to parse DN")}}var o=t.map(function(e){e=e.trim();var t=e.indexOf("=");while(t>0&&e.charAt(t-1)==="\\")t=e.indexOf("=",t+1);if(t===-1){throw new Error("Failed to parse DN")}var r=e.slice(0,t).toLowerCase().replace(/\\=/g,"=");var a=e.slice(t+1);return{name:r,value:a}});return new Identity({components:o})};Identity.fromArray=function(e){a.arrayOfObject(e,"components");e.forEach(function(e){a.object(e,"component");a.string(e.name,"component.name");if(!f.isBuffer(e.value)&&!(typeof e.value==="string")){throw new Error("Invalid component value")}});return new Identity({components:e})};Identity.parseAsn1=function(e,t){var r=[];e.readSequence(t);var a=e.offset+e.length;while(e.offset 1e-"+e.opts.multipleOfPrecision+" "}else{a+=" division"+i+" !== parseInt(division"+i+") "}a+=" ) ";if(l){a+=" ) "}a+=" ) { ";var m=m||[];m.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"multipleOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { multipleOf: "+f+" } ";if(e.opts.messages!==false){a+=" , message: 'should be multiple of ";if(l){a+="' + "+f}else{a+=""+f+"'"}}if(e.opts.verbose){a+=" , schema: ";if(l){a+="validate.schema"+s}else{a+=""+o}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}a+=" } "}else{a+=" {} "}var d=a;a=m.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+d+"]); "}else{a+=" validate.errors = ["+d+"]; return false; "}}else{a+=" var err = "+d+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},function(e,t,r){"use strict";var a=r(581);var i=Object.prototype.hasOwnProperty;var n={allowDots:false,allowPrototypes:false,arrayLimit:20,decoder:a.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:false,strictNullHandling:false};var o=function parseQueryStringValues(e,t){var r={};var a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;var o=t.parameterLimit===Infinity?undefined:t.parameterLimit;var s=a.split(t.delimiter,o);for(var c=0;c=0;--i){var n;var o=e[i];if(o==="[]"){n=[];n=n.concat(a)}else{n=r.plainObjects?Object.create(null):{};var s=o.charAt(0)==="["&&o.charAt(o.length-1)==="]"?o.slice(1,-1):o;var c=parseInt(s,10);if(!isNaN(c)&&o!==s&&String(c)===s&&c>=0&&(r.parseArrays&&c<=r.arrayLimit)){n=[];n[c]=a}else{n[s]=a}}a=n}return a};var c=function parseQueryStringKeys(e,t,r){if(!e){return}var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var n=/(\[[^[\]]*])/;var o=/(\[[^[\]]*])/g;var c=n.exec(a);var u=c?a.slice(0,c.index):a;var p=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)){if(!r.allowPrototypes){return}}p.push(u)}var l=0;while((c=o.exec(a))!==null&&l2){r="md5";if(u[0].toLowerCase()==="md5")u=u.slice(1);u=u.map(function(t){while(t.length<2)t="0"+t;if(t.length>2)throw new f(e);return t});u=u.join("");if(!h.test(u)||u.length%2!==0)throw new f(e);try{o=i.from(u,"hex")}catch(t){throw new f(e)}}else{if(h.test(e)){o=i.from(e,"hex")}else if(d.test(e)){o=i.from(e,"base64")}else{throw new f(e)}switch(o.length){case 32:r="sha256";break;case 16:r="md5";break;case 20:r="sha1";break;case 64:r="sha512";break;default:throw new f(e)}if(t.hashType===undefined)c="spki"}if(r===undefined)throw new f(e);if(n.hashAlgs[r]===undefined)throw new m(r);if(s!==undefined){s=s.map(function(e){return e.toLowerCase()});if(s.indexOf(r)===-1)throw new m(r)}return new Fingerprint({algorithm:r,hash:o,type:t.type||"key",hashType:c})};function addColons(e){return e.replace(/(.{2})(?=.)/g,"$1:")}function base64Strip(e){return e.replace(/=*$/,"")}function sshBase64Format(e,t){return e.toUpperCase()+":"+base64Strip(t)}Fingerprint.isFingerprint=function(e,t){return l.isCompatible(e,Fingerprint,t)};Fingerprint.prototype._sshpkApiVersion=[1,2];Fingerprint._oldVersionDetect=function(e){a.func(e.toString);a.func(e.matches);return[1,0]}},,,,,,,,,function(e){e.exports=require("stream")},,function(e,t,r){"use strict";var a=r(884);e.exports=function getPolyfill(){var e=Array.prototype.findIndex&&[,1].findIndex(function(e,t){return t===0})===0;return e?Array.prototype.findIndex:a}},function(e,t,r){"use strict";var a=function(){function sliceIterator(e,t){var r=[];var a=true;var i=false;var n=undefined;try{for(var o=e[Symbol.iterator](),s;!(a=(s=o.next()).done);a=true){r.push(s.value);if(t&&r.length===t)break}}catch(e){i=true;n=e}finally{try{if(!a&&o["return"])o["return"]()}finally{if(i)throw n}}return r}return function(e,t){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return sliceIterator(e,t)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var i=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var n=function(){function defineProperties(e,t){for(var r=0;r1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,TelegramBot);var r=_possibleConstructorReturn(this,(TelegramBot.__proto__||Object.getPrototypeOf(TelegramBot)).call(this));r.token=e;r.options=t;r.options.polling=typeof t.polling==="undefined"?false:t.polling;r.options.webHook=typeof t.webHook==="undefined"?false:t.webHook;r.options.baseApiUrl=t.baseApiUrl||"https://api.telegram.org";r.options.filepath=typeof t.filepath==="undefined"?true:t.filepath;r.options.badRejection=typeof t.badRejection==="undefined"?false:t.badRejection;r._textRegexpCallbacks=[];r._replyListenerId=0;r._replyListeners=[];r._polling=null;r._webHook=null;if(t.polling){var a=t.polling.autoStart;if(typeof a==="undefined"||a===true){r.startPolling()}}if(t.webHook){var i=t.webHook.autoOpen;if(typeof i==="undefined"||i===true){r.openWebHook()}}return r}n(TelegramBot,[{key:"_buildURL",value:function _buildURL(e){return this.options.baseApiUrl+"/bot"+this.token+"/"+e}},{key:"_fixReplyMarkup",value:function _fixReplyMarkup(e){var t=e.reply_markup;if(t&&typeof t!=="string"){e.reply_markup=stringify(t)}}},{key:"_request",value:function _request(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(!this.token){return j.reject(new s.FatalError("Telegram Bot Token not provided!"))}if(this.options.request){Object.assign(t,this.options.request)}if(t.form){this._fixReplyMarkup(t.form)}if(t.qs){this._fixReplyMarkup(t.qs)}t.method="POST";t.url=this._buildURL(e);t.simple=false;t.resolveWithFullResponse=true;t.forever=true;p("HTTP request: %j",t);return m(t).then(function(e){var t=void 0;try{t=e.body=JSON.parse(e.body)}catch(t){throw new s.ParseError("Error parsing response: "+e.body,e)}if(t.ok){return t.result}throw new s.TelegramError(t.error_code+" "+t.description,e)}).catch(function(e){if(e.response)throw e;throw new s.FatalError(e)})}},{key:"_formatSendData",value:function _formatSendData(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a="See https://github.com/yagop/node-telegram-bot-api/blob/master/doc/usage.md#sending-files"+" for more information on how sending files has been improved and"+" on how to disable this deprecation message altogether.";var i=t;var n=r.filename;var o=r.contentType;if(t instanceof v.Stream){if(!n&&t.path){var c=b.parse(y.basename(t.path.toString()));if(c.pathname){n=h.unescape(c.pathname)}}}else if(Buffer.isBuffer(t)){if(!n&&!process.env.NTBA_FIX_350){w('Buffers will have their filenames default to "filename" instead of "data". '+a);n="data"}if(!o){var u=f(t);if(u){o=u.mime;var p=u.ext;if(p&&!process.env.NTBA_FIX_350){n=n+"."+p}}else if(!process.env.NTBA_FIX_350){w("An error will no longer be thrown if file-type of buffer could not be detected. "+a);throw new s.FatalError("Unsupported Buffer file-type")}}}else if(t){if(this.options.filepath&&k.existsSync(t)){i=k.createReadStream(t);if(!n){n=y.basename(t)}}else{return[null,t]}}else{return[null,t]}n=n||"filename";o=o||g.lookup(n);if(process.env.NTBA_FIX_350){o=o||"application/octet-stream"}else{w('In the future, content-type of files you send will default to "application/octet-stream". '+a)}return[_defineProperty({},e,{value:i,options:{filename:n,contentType:o}}),null]}},{key:"startPolling",value:function startPolling(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(this.hasOpenWebHook()){return j.reject(new s.FatalError("Polling and WebHook are mutually exclusive"))}e.restart=typeof e.restart==="undefined"?true:e.restart;if(!this._polling){this._polling=new u(this)}return this._polling.start(e)}},{key:"initPolling",value:function initPolling(){w("TelegramBot#initPolling() is deprecated. Use TelegramBot#startPolling() instead.");return this.startPolling()}},{key:"stopPolling",value:function stopPolling(e){if(!this._polling){return j.resolve()}return this._polling.stop(e)}},{key:"isPolling",value:function isPolling(){return this._polling?this._polling.isPolling():false}},{key:"openWebHook",value:function openWebHook(){if(this.isPolling()){return j.reject(new s.FatalError("WebHook and Polling are mutually exclusive"))}if(!this._webHook){this._webHook=new c(this)}return this._webHook.open()}},{key:"closeWebHook",value:function closeWebHook(){if(!this._webHook){return j.resolve()}return this._webHook.close()}},{key:"hasOpenWebHook",value:function hasOpenWebHook(){return this._webHook?this._webHook.isOpen():false}},{key:"getMe",value:function getMe(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return this._request("getMe",{form:e})}},{key:"setWebHook",value:function setWebHook(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=void 0;if((typeof t==="undefined"?"undefined":i(t))!=="object"||t instanceof v.Stream){w("The method signature setWebHook(url, cert) has been deprecated since v0.25.0");a=t;t={}}else{a=t.certificate}var n={qs:t};n.qs.url=e;if(a){try{var o=this._formatSendData("certificate",a,r);n.formData=o[0];n.qs.certificate=o[1]}catch(e){return j.reject(e)}}return this._request("setWebHook",n)}},{key:"deleteWebHook",value:function deleteWebHook(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return this._request("deleteWebhook",{form:e})}},{key:"getWebHookInfo",value:function getWebHookInfo(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return this._request("getWebhookInfo",{form:e})}},{key:"getUpdates",value:function getUpdates(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if((typeof e==="undefined"?"undefined":i(e))!=="object"){w("The method signature getUpdates(timeout, limit, offset) has been deprecated since v0.25.0");e={timeout:arguments[0],limit:arguments[1],offset:arguments[2]}}return this._request("getUpdates",{form:e})}},{key:"processUpdate",value:function processUpdate(e){var t=this;p("Process Update %j",e);var r=e.message;var a=e.edited_message;var i=e.channel_post;var n=e.edited_channel_post;var o=e.inline_query;var s=e.chosen_inline_result;var c=e.callback_query;var u=e.shipping_query;var l=e.pre_checkout_query;var f=e.poll;if(r){p("Process Update message %j",r);var m={};m.type=TelegramBot.messageTypes.find(function(e){return r[e]});this.emit("message",r,m);if(m.type){p("Emitting %s: %j",m.type,r);this.emit(m.type,r,m)}if(r.text){p("Text message");this._textRegexpCallbacks.some(function(e){p("Matching %s with %s",r.text,e.regexp);var a=e.regexp.exec(r.text);if(!a){return false}e.regexp.lastIndex=0;p("Matches %s",e.regexp);e.callback(r,a);return t.options.onlyFirstMatch})}if(r.reply_to_message){this._replyListeners.forEach(function(e){if(e.chatId===r.chat.id){if(e.messageId===r.reply_to_message.message_id){e.callback(r)}}})}}else if(a){p("Process Update edited_message %j",a);this.emit("edited_message",a);if(a.text){this.emit("edited_message_text",a)}if(a.caption){this.emit("edited_message_caption",a)}}else if(i){p("Process Update channel_post %j",i);this.emit("channel_post",i)}else if(n){p("Process Update edited_channel_post %j",n);this.emit("edited_channel_post",n);if(n.text){this.emit("edited_channel_post_text",n)}if(n.caption){this.emit("edited_channel_post_caption",n)}}else if(o){p("Process Update inline_query %j",o);this.emit("inline_query",o)}else if(s){p("Process Update chosen_inline_result %j",s);this.emit("chosen_inline_result",s)}else if(c){p("Process Update callback_query %j",c);this.emit("callback_query",c)}else if(u){p("Process Update shipping_query %j",u);this.emit("shipping_query",u)}else if(l){p("Process Update pre_checkout_query %j",l);this.emit("pre_checkout_query",l)}else if(f){p("Process Update poll %j",f);this.emit("poll",f)}}},{key:"sendMessage",value:function sendMessage(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.text=t;return this._request("sendMessage",{form:r})}},{key:"answerInlineQuery",value:function answerInlineQuery(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.inline_query_id=e;r.results=stringify(t);return this._request("answerInlineQuery",{form:r})}},{key:"forwardMessage",value:function forwardMessage(e,t,r){var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};a.chat_id=e;a.from_chat_id=t;a.message_id=r;return this._request("forwardMessage",{form:a})}},{key:"sendPhoto",value:function sendPhoto(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var n=this._formatSendData("photo",t,a);i.formData=n[0];i.qs.photo=n[1]}catch(e){return j.reject(e)}return this._request("sendPhoto",i)}},{key:"sendAudio",value:function sendAudio(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var n=this._formatSendData("audio",t,a);i.formData=n[0];i.qs.audio=n[1]}catch(e){return j.reject(e)}return this._request("sendAudio",i)}},{key:"sendDocument",value:function sendDocument(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var n=this._formatSendData("document",t,a);i.formData=n[0];i.qs.document=n[1]}catch(e){return j.reject(e)}return this._request("sendDocument",i)}},{key:"sendSticker",value:function sendSticker(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var n=this._formatSendData("sticker",t,a);i.formData=n[0];i.qs.sticker=n[1]}catch(e){return j.reject(e)}return this._request("sendSticker",i)}},{key:"sendVideo",value:function sendVideo(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var n=this._formatSendData("video",t,a);i.formData=n[0];i.qs.video=n[1]}catch(e){return j.reject(e)}return this._request("sendVideo",i)}},{key:"sendAnimation",value:function sendAnimation(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var n=this._formatSendData("animation",t,a);i.formData=n[0];i.qs.document=n[1]}catch(e){return j.reject(e)}return this._request("sendAnimation",i)}},{key:"sendVideoNote",value:function sendVideoNote(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var n=this._formatSendData("video_note",t,a);i.formData=n[0];i.qs.video_note=n[1]}catch(e){return j.reject(e)}return this._request("sendVideoNote",i)}},{key:"sendVoice",value:function sendVoice(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var n=this._formatSendData("voice",t,a);i.formData=n[0];i.qs.voice=n[1]}catch(e){return j.reject(e)}return this._request("sendVoice",i)}},{key:"sendChatAction",value:function sendChatAction(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.action=t;return this._request("sendChatAction",{form:r})}},{key:"kickChatMember",value:function kickChatMember(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.user_id=t;return this._request("kickChatMember",{form:r})}},{key:"unbanChatMember",value:function unbanChatMember(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.user_id=t;return this._request("unbanChatMember",{form:r})}},{key:"restrictChatMember",value:function restrictChatMember(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.user_id=t;return this._request("restrictChatMember",{form:r})}},{key:"promoteChatMember",value:function promoteChatMember(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.user_id=t;return this._request("promoteChatMember",{form:r})}},{key:"exportChatInviteLink",value:function exportChatInviteLink(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("exportChatInviteLink",{form:t})}},{key:"setChatPhoto",value:function setChatPhoto(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.chat_id=e;try{var n=this._formatSendData("photo",t,a);i.formData=n[0];i.qs.photo=n[1]}catch(e){return j.reject(e)}return this._request("setChatPhoto",i)}},{key:"deleteChatPhoto",value:function deleteChatPhoto(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("deleteChatPhoto",{form:t})}},{key:"setChatTitle",value:function setChatTitle(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.title=t;return this._request("setChatTitle",{form:r})}},{key:"setChatDescription",value:function setChatDescription(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.description=t;return this._request("setChatDescription",{form:r})}},{key:"pinChatMessage",value:function pinChatMessage(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.message_id=t;return this._request("pinChatMessage",{form:r})}},{key:"unpinChatMessage",value:function unpinChatMessage(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("unpinChatMessage",{form:t})}},{key:"answerCallbackQuery",value:function answerCallbackQuery(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if((typeof t==="undefined"?"undefined":i(t))!=="object"){w("The method signature answerCallbackQuery(callbackQueryId, text, showAlert) has been deprecated since v0.27.1");t={callback_query_id:arguments[0],text:arguments[1],show_alert:arguments[2]}}if((typeof e==="undefined"?"undefined":i(e))==="object"){w("The method signature answerCallbackQuery([options]) has been deprecated since v0.29.0");t=e}else{t.callback_query_id=e}return this._request("answerCallbackQuery",{form:t})}},{key:"editMessageText",value:function editMessageText(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.text=e;return this._request("editMessageText",{form:t})}},{key:"editMessageCaption",value:function editMessageCaption(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.caption=e;return this._request("editMessageCaption",{form:t})}},{key:"editMessageMedia",value:function editMessageMedia(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.media=stringify(e);return this._request("editMessageMedia",{form:t})}},{key:"editMessageReplyMarkup",value:function editMessageReplyMarkup(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.reply_markup=e;return this._request("editMessageReplyMarkup",{form:t})}},{key:"getUserProfilePhotos",value:function getUserProfilePhotos(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if((typeof t==="undefined"?"undefined":i(t))!=="object"){w("The method signature getUserProfilePhotos(userId, offset, limit) has been deprecated since v0.25.0");t={offset:arguments[1],limit:arguments[2]}}t.user_id=e;return this._request("getUserProfilePhotos",{form:t})}},{key:"sendLocation",value:function sendLocation(e,t,r){var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};a.chat_id=e;a.latitude=t;a.longitude=r;return this._request("sendLocation",{form:a})}},{key:"editMessageLiveLocation",value:function editMessageLiveLocation(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.latitude=e;r.longitude=t;return this._request("editMessageLiveLocation",{form:r})}},{key:"stopMessageLiveLocation",value:function stopMessageLiveLocation(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return this._request("stopMessageLiveLocation",{form:e})}},{key:"sendVenue",value:function sendVenue(e,t,r,a,i){var n=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};n.chat_id=e;n.latitude=t;n.longitude=r;n.title=a;n.address=i;return this._request("sendVenue",{form:n})}},{key:"sendContact",value:function sendContact(e,t,r){var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};a.chat_id=e;a.phone_number=t;a.first_name=r;return this._request("sendContact",{form:a})}},{key:"sendPoll",value:function sendPoll(e,t,r){var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};a.chat_id=e;a.question=t;a.options=stringify(r);return this._request("sendPoll",{form:a})}},{key:"stopPoll",value:function stopPoll(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.message_id=t;return this._request("stopPoll",{form:r})}},{key:"getFile",value:function getFile(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.file_id=e;return this._request("getFile",{form:t})}},{key:"getFileLink",value:function getFileLink(e){var t=this;var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return this.getFile(e,r).then(function(e){return t.options.baseApiUrl+"/file/bot"+t.token+"/"+e.file_path})}},{key:"getFileStream",value:function getFileStream(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=new v.PassThrough;r.path=e;this.getFileLink(e,t).then(function(e){r.emit("info",{uri:e});x(d({uri:e}),r)}).catch(function(e){r.emit("error",e)});return r}},{key:"downloadFile",value:function downloadFile(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=void 0;var i=void 0;var n=new j(function(e,t){a=e;i=t});var o=this.getFileStream(e,r);o.on("info",function(e){var r=e.uri.slice(e.uri.lastIndexOf("/")+1);var n=y.join(t,r);x(o,k.createWriteStream(n),function(e){if(e){return i(e)}return a(n)})});return n}},{key:"onText",value:function onText(e,t){this._textRegexpCallbacks.push({regexp:e,callback:t})}},{key:"removeTextListener",value:function removeTextListener(e){var t=this._textRegexpCallbacks.findIndex(function(t){return t.regexp===e});if(t===-1){return null}return this._textRegexpCallbacks.splice(t,1)[0]}},{key:"onReplyToMessage",value:function onReplyToMessage(e,t,r){var a=++this._replyListenerId;this._replyListeners.push({id:a,chatId:e,messageId:t,callback:r});return a}},{key:"removeReplyListener",value:function removeReplyListener(e){var t=this._replyListeners.findIndex(function(t){return t.id===e});if(t===-1){return null}return this._replyListeners.splice(t,1)[0]}},{key:"getChat",value:function getChat(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("getChat",{form:t})}},{key:"getChatAdministrators",value:function getChatAdministrators(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("getChatAdministrators",{form:t})}},{key:"getChatMembersCount",value:function getChatMembersCount(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("getChatMembersCount",{form:t})}},{key:"getChatMember",value:function getChatMember(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.user_id=t;return this._request("getChatMember",{form:r})}},{key:"leaveChat",value:function leaveChat(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("leaveChat",{form:t})}},{key:"setChatStickerSet",value:function setChatStickerSet(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.sticker_set_name=t;return this._request("setChatStickerSet",{form:r})}},{key:"deleteChatStickerSet",value:function deleteChatStickerSet(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.chat_id=e;return this._request("deleteChatStickerSet",{form:t})}},{key:"sendGame",value:function sendGame(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.game_short_name=t;return this._request("sendGame",{form:r})}},{key:"setGameScore",value:function setGameScore(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.user_id=e;r.score=t;return this._request("setGameScore",{form:r})}},{key:"getGameHighScores",value:function getGameHighScores(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.user_id=e;return this._request("getGameHighScores",{form:t})}},{key:"deleteMessage",value:function deleteMessage(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.chat_id=e;r.message_id=t;return this._request("deleteMessage",{form:r})}},{key:"sendInvoice",value:function sendInvoice(e,t,r,a,i,n,o,s){var c=arguments.length>8&&arguments[8]!==undefined?arguments[8]:{};c.chat_id=e;c.title=t;c.description=r;c.payload=a;c.provider_token=i;c.start_parameter=n;c.currency=o;c.prices=stringify(s);c.provider_data=stringify(c.provider_data);return this._request("sendInvoice",{form:c})}},{key:"answerShippingQuery",value:function answerShippingQuery(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.shipping_query_id=e;r.ok=t;r.shipping_options=stringify(r.shipping_options);return this._request("answerShippingQuery",{form:r})}},{key:"answerPreCheckoutQuery",value:function answerPreCheckoutQuery(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.pre_checkout_query_id=e;r.ok=t;return this._request("answerPreCheckoutQuery",{form:r})}},{key:"getStickerSet",value:function getStickerSet(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.name=e;return this._request("getStickerSet",{form:t})}},{key:"uploadStickerFile",value:function uploadStickerFile(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i={qs:r};i.qs.user_id=e;try{var n=this._formatSendData("png_sticker",t,a);i.formData=n[0];i.qs.png_sticker=n[1]}catch(e){return j.reject(e)}return this._request("uploadStickerFile",i)}},{key:"createNewStickerSet",value:function createNewStickerSet(e,t,r,a,i){var n=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};var o=arguments.length>6&&arguments[6]!==undefined?arguments[6]:{};var s={qs:n};s.qs.user_id=e;s.qs.name=t;s.qs.title=r;s.qs.emojis=i;s.qs.mask_position=stringify(n.mask_position);try{var c=this._formatSendData("png_sticker",a,o);s.formData=c[0];s.qs.png_sticker=c[1]}catch(e){return j.reject(e)}return this._request("createNewStickerSet",s)}},{key:"addStickerToSet",value:function addStickerToSet(e,t,r,a){var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:{};var n=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};var o={qs:i};o.qs.user_id=e;o.qs.name=t;o.qs.emojis=a;o.qs.mask_position=stringify(i.mask_position);try{var s=this._formatSendData("png_sticker",r,n);o.formData=s[0];o.qs.png_sticker=s[1]}catch(e){return j.reject(e)}return this._request("addStickerToSet",o)}},{key:"setStickerPositionInSet",value:function setStickerPositionInSet(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};r.sticker=e;r.position=t;return this._request("setStickerPositionInSet",{form:r})}},{key:"deleteStickerFromSet",value:function deleteStickerFromSet(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.sticker=e;return this._request("deleteStickerFromSet",{form:t})}},{key:"sendMediaGroup",value:function sendMediaGroup(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var i={qs:r};i.qs.chat_id=e;i.formData={};var n=[];var o=0;var s=true;var c=false;var u=undefined;try{for(var p=t[Symbol.iterator](),l;!(s=(l=p.next()).done);s=true){var f=l.value;var m=Object.assign({},f);delete m.media;delete m.fileOptions;try{var d=String(o);var h=this._formatSendData(d,f.media,f.fileOptions),v=a(h,2),g=v[0],y=v[1];if(g){i.formData[d]=g[d];m.media="attach://"+d}else{m.media=y}}catch(e){return j.reject(e)}n.push(m);o++}}catch(e){c=true;u=e}finally{try{if(!s&&p.return){p.return()}}finally{if(c){throw u}}}i.qs.media=JSON.stringify(n);return this._request("sendMediaGroup",i)}}]);return TelegramBot}(l);e.exports=C},function(e,t,r){"use strict";var a=r(370);var i=a("%Math%");var n=a("%Number%");e.exports=n.MAX_SAFE_INTEGER||i.pow(2,53)-1},function(e,t,r){"use strict";var a=Object.create;if(a){var i=a(null);var n=a(null);i[" size"]=n[" size"]=0}e.exports=function(e){var t=r(248);var a=t.canEvaluate;var o=t.isIdentifier;var s;var c;if(true){var u=function(e){return new Function("ensureMethod"," \n return function(obj) { \n 'use strict' \n var len = this.length; \n ensureMethod(obj, 'methodName'); \n switch(len) { \n case 1: return obj.methodName(this[0]); \n case 2: return obj.methodName(this[0], this[1]); \n case 3: return obj.methodName(this[0], this[1], this[2]); \n case 0: return obj.methodName(); \n default: \n return obj.methodName.apply(obj, this); \n } \n }; \n ".replace(/methodName/g,e))(ensureMethod)};var p=function(e){return new Function("obj"," \n 'use strict'; \n return obj.propertyName; \n ".replace("propertyName",e))};var l=function(e,t,r){var a=r[e];if(typeof a!=="function"){if(!o(e)){return null}a=t(e);r[e]=a;r[" size"]++;if(r[" size"]>512){var i=Object.keys(r);for(var n=0;n<256;++n)delete r[i[n]];r[" size"]=i.length-256}}return a};s=function(e){return l(e,u,i)};c=function(e){return l(e,p,n)}}function ensureMethod(r,a){var i;if(r!=null)i=r[a];if(typeof i!=="function"){var n="Object "+t.classString(r)+" has no method '"+t.toString(a)+"'";throw new e.TypeError(n)}return i}function caller(e){var t=this.pop();var r=ensureMethod(e,t);return r.apply(e,this)}e.prototype.call=function(e){var t=arguments.length;var r=new Array(Math.max(t-1,0));for(var i=1;i";var r=e.getLineNumber();var a=e.getColumnNumber();if(e.isEval()){t=e.getEvalOrigin()+", "+t}var i=[t,r,a];i.callSite=e;i.name=e.getFunctionName();return i}function defaultMessage(e){var t=e.callSite;var r=e.name;if(!r){r=""}var a=t.getThis();var i=a&&t.getTypeName();if(i==="Object"){i=undefined}if(i==="Function"){i=a.name||i}return i&&t.getMethodName()?i+"."+r:r}function formatPlain(e,t,r){var a=(new Date).toUTCString();var i=a+" "+this._namespace+" deprecated "+e;if(this._traced){for(var n=0;n0;return l(i,o,s,function(e){if(!r)r=e;if(e)a.forEach(f);if(o)return;a.forEach(f);t(r)})});e.reduce(m)};e.exports=d},,function(e,t,r){"use strict";var a=r(605);var i=r(211);var n=r(835);var o=r(669);var s=r(409);var c=r(903);var u=r(942);var p=r(907);var l=r(789);var f=r(779);var m=r(254);var d=r(792);var h=r(928);var v=r(374);var g=r(382);var y=r(944).strict;var b=r(810);var k=r(35);var x=r(721);var w=r(629).Querystring;var j=r(416).Har;var _=r(554).Auth;var S=r(287).OAuth;var E=r(964);var P=r(469).Multipart;var C=r(552).Redirect;var F=r(461).Tunnel;var A=r(742);var T=r(149).Buffer;var q=b.safeStringify;var z=b.isReadStream;var O=b.toBase64;var B=b.defer;var D=b.copy;var I=b.version;var R=k.jar();var M={};function filterForNonReserved(e,t){var r={};for(var a in t){var i=e.indexOf(a)===-1;if(i){r[a]=t[a]}}return r}function filterOutReservedFunctions(e,t){var r={};for(var a in t){var i=!(e.indexOf(a)===-1);var n=typeof t[a]==="function";if(!(i&&n)){r[a]=t[a]}}return r}function requestToJSON(){var e=this;return{uri:e.uri,method:e.method,headers:e.headers}}function responseToJSON(){var e=this;return{statusCode:e.statusCode,body:e.body,headers:e.headers,request:requestToJSON.call(e.request)}}function Request(e){var t=this;if(e.har){t._har=new j(t);e=t._har.options(e)}s.Stream.call(t);var r=Object.keys(Request.prototype);var a=filterForNonReserved(r,e);v(t,a);e=filterOutReservedFunctions(r,e);t.readable=true;t.writable=true;if(e.method){t.explicitMethod=true}t._qs=new w(t);t._auth=new _(t);t._oauth=new S(t);t._multipart=new P(t);t._redirect=new C(t);t._tunnel=new F(t);t.init(e)}o.inherits(Request,s.Stream);Request.debug=process.env.NODE_DEBUG&&/\brequest\b/.test(process.env.NODE_DEBUG);function debug(){if(Request.debug){console.error("REQUEST %s",o.format.apply(o,arguments))}}Request.prototype.debug=debug;Request.prototype.init=function(e){var t=this;if(!e){e={}}t.headers=t.headers?D(t.headers):{};for(var r in t.headers){if(typeof t.headers[r]==="undefined"){delete t.headers[r]}}m.httpify(t,t.headers);if(!t.method){t.method=e.method||"GET"}if(!t.localAddress){t.localAddress=e.localAddress}t._qs.init(e);debug(e);if(!t.pool&&t.pool!==false){t.pool=M}t.dests=t.dests||[];t.__isRequestRequest=true;if(!t._callback&&t.callback){t._callback=t.callback;t.callback=function(){if(t._callbackCalled){return}t._callbackCalled=true;t._callback.apply(t,arguments)};t.on("error",t.callback.bind());t.on("complete",t.callback.bind(t,null))}if(!t.uri&&t.url){t.uri=t.url;delete t.url}if(t.baseUrl){if(typeof t.baseUrl!=="string"){return t.emit("error",new Error("options.baseUrl must be a string"))}if(typeof t.uri!=="string"){return t.emit("error",new Error("options.uri must be a string when using options.baseUrl"))}if(t.uri.indexOf("//")===0||t.uri.indexOf("://")!==-1){return t.emit("error",new Error("options.uri must be a path when using options.baseUrl"))}var o=t.baseUrl.lastIndexOf("/")===t.baseUrl.length-1;var s=t.uri.indexOf("/")===0;if(o&&s){t.uri=t.baseUrl+t.uri.slice(1)}else if(o||s){t.uri=t.baseUrl+t.uri}else if(t.uri===""){t.uri=t.baseUrl}else{t.uri=t.baseUrl+"/"+t.uri}delete t.baseUrl}if(!t.uri){return t.emit("error",new Error("options.uri is a required argument"))}if(typeof t.uri==="string"){t.uri=n.parse(t.uri)}if(!t.uri.href){t.uri.href=n.format(t.uri)}if(t.uri.protocol==="unix:"){return t.emit("error",new Error("`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`"))}if(t.uri.host==="unix"){t.enableUnixSocket()}if(t.strictSSL===false){t.rejectUnauthorized=false}if(!t.uri.pathname){t.uri.pathname="/"}if(!(t.uri.host||t.uri.hostname&&t.uri.port)&&!t.uri.isUnix){var c=n.format(t.uri);var u='Invalid URI "'+c+'"';if(Object.keys(e).length===0){u+=". This can be caused by a crappy redirection."}t.abort();return t.emit("error",new Error(u))}if(!t.hasOwnProperty("proxy")){t.proxy=x(t.uri)}t.tunnel=t._tunnel.isEnabled();if(t.proxy){t._tunnel.setup(e)}t._redirect.onRequest(e);t.setHost=false;if(!t.hasHeader("host")){var p=t.originalHostHeaderName||"host";t.setHeader(p,t.uri.host);if(t.uri.port){if(t.uri.port==="80"&&t.uri.protocol==="http:"||t.uri.port==="443"&&t.uri.protocol==="https:"){t.setHeader(p,t.uri.hostname)}}t.setHost=true}t.jar(t._jar||e.jar);if(!t.uri.port){if(t.uri.protocol==="http:"){t.uri.port=80}else if(t.uri.protocol==="https:"){t.uri.port=443}}if(t.proxy&&!t.tunnel){t.port=t.proxy.port;t.host=t.proxy.hostname}else{t.port=t.uri.port;t.host=t.uri.hostname}if(e.form){t.form(e.form)}if(e.formData){var l=e.formData;var h=t.form();var v=function(e,t){if(t&&t.hasOwnProperty("value")&&t.hasOwnProperty("options")){h.append(e,t.value,t.options)}else{h.append(e,t)}};for(var b in l){if(l.hasOwnProperty(b)){var k=l[b];if(k instanceof Array){for(var w=0;w=100&&e<200||e===204||e===304};var u;if(t.gzip&&!s(e.statusCode)){var p=e.headers["content-encoding"]||"identity";p=p.trim().toLowerCase();var l={flush:c.Z_SYNC_FLUSH,finishFlush:c.Z_SYNC_FLUSH};if(p==="gzip"){u=c.createGunzip(l);e.pipe(u)}else if(p==="deflate"){u=c.createInflate(l);e.pipe(u)}else{if(p!=="identity"){debug("ignoring unrecognized Content-Encoding "+p)}u=e}}else{u=e}if(t.encoding){if(t.dests.length!==0){console.error("Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid.")}else{u.setEncoding(t.encoding)}}if(t._paused){u.pause()}t.responseContent=u;t.emit("response",e);t.dests.forEach(function(e){t.pipeDest(e)});u.on("data",function(r){if(t.timing&&!t.responseStarted){t.responseStartTime=(new Date).getTime();e.responseStartTime=t.responseStartTime}t._destdata=true;t.emit("data",r)});u.once("end",function(e){t.emit("end",e)});u.on("error",function(e){t.emit("error",e)});u.on("close",function(){t.emit("close")});if(t.callback){t.readResponseBody(e)}else{t.on("end",function(){if(t._aborted){debug("aborted",t.uri.href);return}t.emit("complete",e)})}}debug("finish init function",t.uri.href)};Request.prototype.readResponseBody=function(e){var t=this;debug("reading response's body");var r=[];var a=0;var i=[];t.on("data",function(e){if(!T.isBuffer(e)){i.push(e)}else if(e.length){a+=e.length;r.push(e)}});t.on("end",function(){debug("end event",t.uri.href);if(t._aborted){debug("aborted",t.uri.href);r=[];a=0;return}if(a){debug("has body",t.uri.href,a);e.body=T.concat(r,a);if(t.encoding!==null){e.body=e.body.toString(t.encoding)}r=[];a=0}else if(i.length){if(t.encoding==="utf8"&&i[0].length>0&&i[0][0]==="\ufeff"){i[0]=i[0].substring(1)}e.body=i.join("")}if(t._json){try{e.body=JSON.parse(e.body,t._jsonReviver)}catch(e){debug("invalid JSON received",t.uri.href)}}debug("emitting complete",t.uri.href);if(typeof e.body==="undefined"&&!t._json){e.body=t.encoding===null?T.alloc(0):""}t.emit("complete",e,e.body)})};Request.prototype.abort=function(){var e=this;e._aborted=true;if(e.req){e.req.abort()}else if(e.response){e.response.destroy()}e.clearTimeout();e.emit("abort")};Request.prototype.pipeDest=function(e){var t=this;var r=t.response;if(e.headers&&!e.headersSent){if(r.caseless.has("content-type")){var a=r.caseless.has("content-type");if(e.setHeader){e.setHeader(a,r.headers[a])}else{e.headers[a]=r.headers[a]}}if(r.caseless.has("content-length")){var i=r.caseless.has("content-length");if(e.setHeader){e.setHeader(i,r.headers[i])}else{e.headers[i]=r.headers[i]}}}if(e.setHeader&&!e.headersSent){for(var n in r.headers){if(!t.gzip||n!=="content-encoding"){e.setHeader(n,r.headers[n])}}e.statusCode=r.statusCode}if(t.pipefilter){t.pipefilter(r,e)}};Request.prototype.qs=function(e,t){var r=this;var a;if(!t&&r.uri.query){a=r._qs.parse(r.uri.query)}else{a={}}for(var i in e){a[i]=e[i]}var o=r._qs.stringify(a);if(o===""){return r}r.uri=n.parse(r.uri.href.split("?")[0]+"?"+o);r.url=r.uri;r.path=r.uri.path;if(r.uri.host==="unix"){r.enableUnixSocket()}return r};Request.prototype.form=function(e){var t=this;if(e){if(!/^application\/x-www-form-urlencoded\b/.test(t.getHeader("content-type"))){t.setHeader("content-type","application/x-www-form-urlencoded")}t.body=typeof e==="string"?t._qs.rfc3986(e.toString("utf8")):t._qs.stringify(e).toString("utf8");return t}t._form=new h;t._form.on("error",function(e){e.message="form-data: "+e.message;t.emit("error",e);t.abort()});return t._form};Request.prototype.multipart=function(e){var t=this;t._multipart.onRequest(e);if(!t._multipart.chunked){t.body=t._multipart.body}return t};Request.prototype.json=function(e){var t=this;if(!t.hasHeader("accept")){t.setHeader("accept","application/json")}if(typeof t.jsonReplacer==="function"){t._jsonReplacer=t.jsonReplacer}t._json=true;if(typeof e==="boolean"){if(t.body!==undefined){if(!/^application\/x-www-form-urlencoded\b/.test(t.getHeader("content-type"))){t.body=q(t.body,t._jsonReplacer)}else{t.body=t._qs.rfc3986(t.body)}if(!t.hasHeader("content-type")){t.setHeader("content-type","application/json")}}}else{t.body=q(e,t._jsonReplacer);if(!t.hasHeader("content-type")){t.setHeader("content-type","application/json")}}if(typeof t.jsonReviver==="function"){t._jsonReviver=t.jsonReviver}return t};Request.prototype.getHeader=function(e,t){var r=this;var a,i,n;if(!t){t=r.headers}Object.keys(t).forEach(function(r){if(r.length!==e.length){return}i=new RegExp(e,"i");n=r.match(i);if(n){a=t[r]}});return a};Request.prototype.enableUnixSocket=function(){var e=this.uri.path.split(":");var t=e[0];var r=e[1];this.socketPath=t;this.uri.pathname=r;this.uri.path=r;this.uri.host=t;this.uri.hostname=t;this.uri.isUnix=true};Request.prototype.auth=function(e,t,r,a){var i=this;i._auth.onRequest(e,t,r,a);return i};Request.prototype.aws=function(e,t){var r=this;if(!t){r._aws=e;return r}if(e.sign_version===4||e.sign_version==="4"){var a={host:r.uri.host,path:r.uri.path,method:r.method,headers:r.headers,body:r.body};if(e.service){a.service=e.service}var i=p.sign(a,{accessKeyId:e.key,secretAccessKey:e.secret,sessionToken:e.session});r.setHeader("authorization",i.headers.Authorization);r.setHeader("x-amz-date",i.headers["X-Amz-Date"]);if(i.headers["X-Amz-Security-Token"]){r.setHeader("x-amz-security-token",i.headers["X-Amz-Security-Token"])}}else{var n=new Date;r.setHeader("date",n.toUTCString());var o={key:e.key,secret:e.secret,verb:r.method.toUpperCase(),date:n,contentType:r.getHeader("content-type")||"",md5:r.getHeader("content-md5")||"",amazonHeaders:u.canonicalizeHeaders(r.headers)};var s=r.uri.path;if(e.bucket&&s){o.resource="/"+e.bucket+s}else if(e.bucket&&!s){o.resource="/"+e.bucket}else if(!e.bucket&&s){o.resource=s}else if(!e.bucket&&!s){o.resource="/"}o.resource=u.canonicalizeResource(o.resource);r.setHeader("authorization",u.authorization(o))}return r};Request.prototype.httpSignature=function(e){var t=this;l.signRequest({getHeader:function(e){return t.getHeader(e,t.headers)},setHeader:function(e,r){t.setHeader(e,r)},method:t.method,path:t.path},e);debug("httpSignature authorization",t.getHeader("authorization"));return t};Request.prototype.hawk=function(e){var t=this;t.setHeader("Authorization",E.header(t.uri,t.method,e))};Request.prototype.oauth=function(e){var t=this;t._oauth.onRequest(e);return t};Request.prototype.jar=function(e){var t=this;var r;if(t._redirect.redirectsFollowed===0){t.originalCookieHeader=t.getHeader("cookie")}if(!e){r=false;t._disableCookies=true}else{var a=e.getCookieString?e:R;var i=t.uri.href;if(a){r=a.getCookieString(i)}}if(r&&r.length){if(t.originalCookieHeader){t.setHeader("cookie",t.originalCookieHeader+"; "+r)}else{t.setHeader("cookie",r)}}t._jar=e;return t};Request.prototype.pipe=function(e,t){var r=this;if(r.response){if(r._destdata){r.emit("error",new Error("You cannot pipe after data has been emitted from the response."))}else if(r._ended){r.emit("error",new Error("You cannot pipe after the response has been ended."))}else{s.Stream.prototype.pipe.call(r,e,t);r.pipeDest(e);return e}}else{r.dests.push(e);s.Stream.prototype.pipe.call(r,e,t);return e}};Request.prototype.write=function(){var e=this;if(e._aborted){return}if(!e._started){e.start()}if(e.req){return e.req.write.apply(e.req,arguments)}};Request.prototype.end=function(e){var t=this;if(t._aborted){return}if(e){t.write(e)}if(!t._started){t.start()}if(t.req){t.req.end()}};Request.prototype.pause=function(){var e=this;if(!e.responseContent){e._paused=true}else{e.responseContent.pause.apply(e.responseContent,arguments)}};Request.prototype.resume=function(){var e=this;if(!e.responseContent){e._paused=false}else{e.responseContent.resume.apply(e.responseContent,arguments)}};Request.prototype.destroy=function(){var e=this;this.clearTimeout();if(!e._ended){e.end()}else if(e.response){e.response.destroy()}};Request.prototype.clearTimeout=function(){if(this.timeoutTimer){clearTimeout(this.timeoutTimer);this.timeoutTimer=null}};Request.defaultProxyHeaderWhiteList=F.defaultProxyHeaderWhiteList.slice();Request.defaultProxyHeaderExclusiveList=F.defaultProxyHeaderExclusiveList.slice();Request.prototype.toJSON=requestToJSON;e.exports=Request},,,,function(e){e.exports="2.5.0"},,function(e,t,r){"use strict";var a=r(835);var i=r(243);var n=["accept","accept-charset","accept-encoding","accept-language","accept-ranges","cache-control","content-encoding","content-language","content-location","content-md5","content-range","content-type","connection","date","expect","max-forwards","pragma","referer","te","user-agent","via"];var o=["proxy-authorization"];function constructProxyHost(e){var t=e.port;var r=e.protocol;var a=e.hostname+":";if(t){a+=t}else if(r==="https:"){a+="443"}else{a+="80"}return a}function constructProxyHeaderWhiteList(e,t){var r=t.reduce(function(e,t){e[t.toLowerCase()]=true;return e},{});return Object.keys(e).filter(function(e){return r[e.toLowerCase()]}).reduce(function(t,r){t[r]=e[r];return t},{})}function constructTunnelOptions(e,t){var r=e.proxy;var a={proxy:{host:r.hostname,port:+r.port,proxyAuth:r.auth,headers:t},headers:e.headers,ca:e.ca,cert:e.cert,key:e.key,passphrase:e.passphrase,pfx:e.pfx,ciphers:e.ciphers,rejectUnauthorized:e.rejectUnauthorized,secureOptions:e.secureOptions,secureProtocol:e.secureProtocol};return a}function constructTunnelFnName(e,t){var r=e.protocol==="https:"?"https":"http";var a=t.protocol==="https:"?"Https":"Http";return[r,a].join("Over")}function getTunnelFn(e){var t=e.uri;var r=e.proxy;var a=constructTunnelFnName(t,r);return i[a]}function Tunnel(e){this.request=e;this.proxyHeaderWhiteList=n;this.proxyHeaderExclusiveList=[];if(typeof e.tunnel!=="undefined"){this.tunnelOverride=e.tunnel}}Tunnel.prototype.isEnabled=function(){var e=this;var t=e.request;if(typeof e.tunnelOverride!=="undefined"){return e.tunnelOverride}if(t.uri.protocol==="https:"){return true}return false};Tunnel.prototype.setup=function(e){var t=this;var r=t.request;e=e||{};if(typeof r.proxy==="string"){r.proxy=a.parse(r.proxy)}if(!r.proxy||!r.tunnel){return false}if(e.proxyHeaderWhiteList){t.proxyHeaderWhiteList=e.proxyHeaderWhiteList}if(e.proxyHeaderExclusiveList){t.proxyHeaderExclusiveList=e.proxyHeaderExclusiveList}var i=t.proxyHeaderExclusiveList.concat(o);var n=t.proxyHeaderWhiteList.concat(i);var s=constructProxyHeaderWhiteList(r.headers,n);s.host=constructProxyHost(r.uri);i.forEach(r.removeHeader,r);var c=getTunnelFn(r);var u=constructTunnelOptions(r,s);r.agent=c(u);return true};Tunnel.defaultProxyHeaderWhiteList=n;Tunnel.defaultProxyHeaderExclusiveList=o;t.Tunnel=Tunnel},,,,,,function(e){e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":[],"application/font-woff2":[],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/prs.cww":["cww"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"audio/xm":["xm"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/ktx":["ktx"],"image/png":["png"],"image/prs.btif":["btif"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/webp":["webp"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/prs.lines.tag":["dsc"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/vtt":["vtt"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/webm":["webm"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},,function(e,t,r){"use strict";var a=r(494);var i=r(547);var n=r(382);var o=r(149).Buffer;function Multipart(e){this.request=e;this.boundary=a();this.chunked=false;this.body=null}Multipart.prototype.isChunked=function(e){var t=this;var r=false;var a=e.data||e;if(!a.forEach){t.request.emit("error",new Error("Argument error, options.multipart."))}if(e.chunked!==undefined){r=e.chunked}if(t.request.getHeader("transfer-encoding")==="chunked"){r=true}if(!r){a.forEach(function(e){if(typeof e.body==="undefined"){t.request.emit("error",new Error("Body attribute missing in multipart."))}if(n(e.body)){r=true}})}return r};Multipart.prototype.setHeaders=function(e){var t=this;if(e&&!t.request.hasHeader("transfer-encoding")){t.request.setHeader("transfer-encoding","chunked")}var r=t.request.getHeader("content-type");if(!r||r.indexOf("multipart")===-1){t.request.setHeader("content-type","multipart/related; boundary="+t.boundary)}else{if(r.indexOf("boundary")!==-1){t.boundary=r.replace(/.*boundary=([^\s;]+).*/,"$1")}else{t.request.setHeader("content-type",r+"; boundary="+t.boundary)}}};Multipart.prototype.build=function(e,t){var r=this;var a=t?new i:[];function add(e){if(typeof e==="number"){e=e.toString()}return t?a.append(e):a.push(o.from(e))}if(r.request.preambleCRLF){add("\r\n")}e.forEach(function(e){var t="--"+r.boundary+"\r\n";Object.keys(e).forEach(function(r){if(r==="body"){return}t+=r+": "+e[r]+"\r\n"});t+="\r\n";add(t);add(e.body);add("\r\n")});add("--"+r.boundary+"--");if(r.request.postambleCRLF){add("\r\n")}return a};Multipart.prototype.onRequest=function(e){var t=this;var r=t.isChunked(e);var a=e.data||e;t.setHeaders(r);t.chunked=r;t.body=t.build(a,r)};t.Multipart=Multipart},,,,,function(e,t,r){"use strict";var a=r(855);e.exports=SchemaObject;function SchemaObject(e){a.copy(e,this)}},,function(e,t,r){"use strict";var a=r(248);var i;var n=function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")};var o=a.getNativePromise();if(a.isNode&&typeof MutationObserver==="undefined"){var s=global.setImmediate;var c=process.nextTick;i=a.isRecentNode?function(e){s.call(global,e)}:function(e){c.call(process,e)}}else if(typeof o==="function"&&typeof o.resolve==="function"){var u=o.resolve();i=function(e){u.then(e)}}else if(typeof MutationObserver!=="undefined"&&!(typeof window!=="undefined"&&window.navigator&&(window.navigator.standalone||window.cordova))&&"classList"in document.documentElement){i=function(){var e=document.createElement("div");var t={attributes:true};var r=false;var a=document.createElement("div");var i=new MutationObserver(function(){e.classList.toggle("foo");r=false});i.observe(a,t);var n=function(){if(r)return;r=true;a.classList.toggle("foo")};return function schedule(r){var a=new MutationObserver(function(){a.disconnect();r()});a.observe(e,t);n()}}()}else if(typeof setImmediate!=="undefined"){i=function(e){setImmediate(e)}}else if(typeof setTimeout!=="undefined"){i=function(e){setTimeout(e,0)}}else{i=n}e.exports=i},function(e,t,r){var a=r(357);var i=r(409).Stream;var n=r(669);var o=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;function _capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}function _toss(e,t,r,i,o){throw new a.AssertionError({message:n.format("%s (%s) is required",e,t),actual:o===undefined?typeof i:o(i),expected:t,operator:r||"===",stackStartFunction:_toss.caller})}function _getClass(e){return Object.prototype.toString.call(e).slice(8,-1)}function noop(){}var s={bool:{check:function(e){return typeof e==="boolean"}},func:{check:function(e){return typeof e==="function"}},string:{check:function(e){return typeof e==="string"}},object:{check:function(e){return typeof e==="object"&&e!==null}},number:{check:function(e){return typeof e==="number"&&!isNaN(e)}},finite:{check:function(e){return typeof e==="number"&&!isNaN(e)&&isFinite(e)}},buffer:{check:function(e){return Buffer.isBuffer(e)},operator:"Buffer.isBuffer"},array:{check:function(e){return Array.isArray(e)},operator:"Array.isArray"},stream:{check:function(e){return e instanceof i},operator:"instanceof",actual:_getClass},date:{check:function(e){return e instanceof Date},operator:"instanceof",actual:_getClass},regexp:{check:function(e){return e instanceof RegExp},operator:"instanceof",actual:_getClass},uuid:{check:function(e){return typeof e==="string"&&o.test(e)},operator:"isUUID"}};function _setExports(e){var t=Object.keys(s);var r;if(process.env.NODE_NDEBUG){r=noop}else{r=function(e,t){if(!e){_toss(t,"true",e)}}}t.forEach(function(t){if(e){r[t]=noop;return}var a=s[t];r[t]=function(e,r){if(!a.check(e)){_toss(r,t,a.operator,e,a.actual)}}});t.forEach(function(t){var a="optional"+_capitalize(t);if(e){r[a]=noop;return}var i=s[t];r[a]=function(e,r){if(e===undefined||e===null){return}if(!i.check(e)){_toss(r,t,i.operator,e,i.actual)}}});t.forEach(function(t){var a="arrayOf"+_capitalize(t);if(e){r[a]=noop;return}var i=s[t];var n="["+t+"]";r[a]=function(e,t){if(!Array.isArray(e)){_toss(t,n,i.operator,e,i.actual)}var r;for(r=0;r0:e.util.schemaHasRules(h,e.RULES.all)),y=v!==undefined&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0:e.util.schemaHasRules(v,e.RULES.all)),b=m.baseId;if(g||y){var k;m.createErrors=false;m.schema=o;m.schemaPath=s;m.errSchemaPath=c;a+=" var "+f+" = errors; var "+l+" = true; ";var x=e.compositeRule;e.compositeRule=m.compositeRule=true;a+=" "+e.validate(m)+" ";m.baseId=b;m.createErrors=true;a+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ";e.compositeRule=m.compositeRule=x;if(g){a+=" if ("+d+") { ";m.schema=e.schema["then"];m.schemaPath=e.schemaPath+".then";m.errSchemaPath=e.errSchemaPath+"/then";a+=" "+e.validate(m)+" ";m.baseId=b;a+=" "+l+" = "+d+"; ";if(g&&y){k="ifClause"+i;a+=" var "+k+" = 'then'; "}else{k="'then'"}a+=" } ";if(y){a+=" else { "}}else{a+=" if (!"+d+") { "}if(y){m.schema=e.schema["else"];m.schemaPath=e.schemaPath+".else";m.errSchemaPath=e.errSchemaPath+"/else";a+=" "+e.validate(m)+" ";m.baseId=b;a+=" "+l+" = "+d+"; ";if(g&&y){k="ifClause"+i;a+=" var "+k+" = 'else'; "}else{k="'else'"}a+=" } "}a+=" if (!"+l+") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"if"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { failingKeyword: "+k+" } ";if(e.opts.messages!==false){a+=" , message: 'should match \"' + "+k+" + '\" schema' "}if(e.opts.verbose){a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; return false; "}}a+=" } ";if(u){a+=" else { "}}else{if(u){a+=" if (true) { "}}return a}},,,,,,,function(e,t,r){"use strict";function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=r(761);Object.keys(e).forEach(function(t){createDebug[t]=e[t]});createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){var t=0;for(var r=0;r0)this._settlePromises()};e.prototype._unsetOnCancel=function(){this._onCancelField=undefined};e.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()};e.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()};e.prototype._doInvokeOnCancel=function(e,t){if(n.isArray(e)){for(var r=0;r=1,"key must have at least one part");a.ok(e||m.atEnd(),"leftover bytes at end of key");var v=s;var g=n.info[l.type];if(t==="private"||g.parts.length!==f.length){g=n.privInfo[l.type];v=c}a.strictEqual(g.parts.length,f.length);if(l.type==="ecdsa"){var y=/^ecdsa-sha2-(.+)$/.exec(d);a.ok(y!==null);a.strictEqual(y[1],f[0].data.toString())}var b=true;for(var k=0;k=300&&e.statusCode<400&&e.caseless.has("location")){var i=e.caseless.get("location");r.debug("redirect",i);if(t.followAllRedirects){a=i}else if(t.followRedirects){switch(r.method){case"PATCH":case"PUT":case"POST":case"DELETE":break;default:a=i;break}}}else if(e.statusCode===401){var n=r._auth.onResponse(e);if(n){r.setHeader("authorization",n);a=r.uri}}return a};Redirect.prototype.onResponse=function(e){var t=this;var r=t.request;var n=t.redirectTo(e);if(!n||!t.allowRedirect.call(r,e)){return false}r.debug("redirect to",n);if(e.resume){e.resume()}if(t.redirectsFollowed>=t.maxRedirects){r.emit("error",new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+r.uri.href));return false}t.redirectsFollowed+=1;if(!i.test(n)){n=a.resolve(r.uri.href,n)}var o=r.uri;r.uri=a.parse(n);if(r.uri.protocol!==o.protocol){delete r.agent}t.redirects.push({statusCode:e.statusCode,redirectUri:n});if(t.followAllRedirects&&r.method!=="HEAD"&&e.statusCode!==401&&e.statusCode!==307){r.method=t.followOriginalHttpMethod?r.method:"GET"}delete r.src;delete r.req;delete r._started;if(e.statusCode!==401&&e.statusCode!==307){delete r.body;delete r._form;if(r.headers){r.removeHeader("host");r.removeHeader("content-type");r.removeHeader("content-length");if(r.uri.hostname!==r.originalHost.split(":")[0]){r.removeHeader("authorization")}}}if(!t.removeRefererHeader){r.setHeader("referer",o.href)}r.emit("redirect");r.init();return true};t.Redirect=Redirect},,function(e,t,r){"use strict";var a=r(254);var i=r(494);var n=r(810);var o=n.md5;var s=n.toBase64;function Auth(e){this.request=e;this.hasAuth=false;this.sentAuth=false;this.bearerToken=null;this.user=null;this.pass=null}Auth.prototype.basic=function(e,t,r){var a=this;if(typeof e!=="string"||t!==undefined&&typeof t!=="string"){a.request.emit("error",new Error("auth() received invalid user or password"))}a.user=e;a.pass=t;a.hasAuth=true;var i=e+":"+(t||"");if(r||typeof r==="undefined"){var n="Basic "+s(i);a.sentAuth=true;return n}};Auth.prototype.bearer=function(e,t){var r=this;r.bearerToken=e;r.hasAuth=true;if(t||typeof t==="undefined"){if(typeof e==="function"){e=e()}var a="Bearer "+(e||"");r.sentAuth=true;return a}};Auth.prototype.digest=function(e,t,r){var a=this;var n={};var s=/([a-z0-9_-]+)=(?:"([^"]+)"|([a-z0-9_-]+))/gi;while(true){var c=s.exec(r);if(!c){break}n[c[1]]=c[2]||c[3]}var u=function(e,t,r,a,i,n){var s=o(t+":"+r+":"+a);if(e&&e.toLowerCase()==="md5-sess"){return o(s+":"+i+":"+n)}else{return s}};var p=/(^|,)\s*auth\s*($|,)/.test(n.qop)&&"auth";var l=p&&"00000001";var f=p&&i().replace(/-/g,"");var m=u(n.algorithm,a.user,n.realm,a.pass,n.nonce,f);var d=o(e+":"+t);var h=p?o(m+":"+n.nonce+":"+l+":"+f+":"+p+":"+d):o(m+":"+n.nonce+":"+d);var v={username:a.user,realm:n.realm,nonce:n.nonce,uri:t,qop:p,response:h,nc:l,cnonce:f,algorithm:n.algorithm,opaque:n.opaque};r=[];for(var g in v){if(v[g]){if(g==="qop"||g==="nc"||g==="algorithm"){r.push(g+"="+v[g])}else{r.push(g+'="'+v[g]+'"')}}}r="Digest "+r.join(", ");a.sentAuth=true;return r};Auth.prototype.onRequest=function(e,t,r,a){var i=this;var n=i.request;var o;if(a===undefined&&e===undefined){i.request.emit("error",new Error("no auth mechanism defined"))}else if(a!==undefined){o=i.bearer(a,r)}else{o=i.basic(e,t,r)}if(o){n.setHeader("authorization",o)}};Auth.prototype.onResponse=function(e){var t=this;var r=t.request;if(!t.hasAuth||t.sentAuth){return null}var i=a(e.headers);var n=i.get("www-authenticate");var o=n&&n.split(" ")[0].toLowerCase();r.debug("reauth",o);switch(o){case"basic":return t.basic(t.user,t.pass,true);case"bearer":return t.bearer(t.bearerToken,true);case"digest":return t.digest(r.method,r.path,n)}};t.Auth=Auth},,,,,function(e,t,r){"use strict";var a=global.Symbol;var i=r(826);e.exports=function hasNativeSymbols(){if(typeof a!=="function"){return false}if(typeof Symbol!=="function"){return false}if(typeof a("foo")!=="symbol"){return false}if(typeof Symbol("bar")!=="symbol"){return false}return i()}},function(e){"use strict";e.exports=function generate__limitProperties(e,t,r){var a=" ";var i=e.level;var n=e.dataLevel;var o=e.schema[t];var s=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var p;var l="data"+(n||"");var f=e.opts.$data&&o&&o.$data,m;if(f){a+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ";m="schema"+i}else{m=o}if(!(f||typeof o=="number")){throw new Error(t+" must be number")}var d=t=="maxProperties"?">":"<";a+="if ( ";if(f){a+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "}a+=" Object.keys("+l+").length "+d+" "+m+") { ";var p=t;var h=h||[];h.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(p||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+m+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have ";if(t=="maxProperties"){a+="more"}else{a+="fewer"}a+=" than ";if(f){a+="' + "+m+" + '"}else{a+=""+o}a+=" properties' "}if(e.opts.verbose){a+=" , schema: ";if(f){a+="validate.schema"+s}else{a+=""+o}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}a+=" } "}else{a+=" {} "}var v=a;a=h.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},,function(e,t,r){var a=r(49);var i=function(){};var n=function(e){return e.setHeader&&typeof e.abort==="function"};var o=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var s=function(e,t,r){if(typeof t==="function")return s(e,null,t);if(!t)t={};r=a(r||i);var c=e._writableState;var u=e._readableState;var p=t.readable||t.readable!==false&&e.readable;var l=t.writable||t.writable!==false&&e.writable;var f=false;var m=function(){if(!e.writable)d()};var d=function(){l=false;if(!p)r.call(e)};var h=function(){p=false;if(!l)r.call(e)};var v=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var g=function(t){r.call(e,t)};var y=function(){process.nextTick(b)};var b=function(){if(f)return;if(p&&!(u&&(u.ended&&!u.destroyed)))return r.call(e,new Error("premature close"));if(l&&!(c&&(c.ended&&!c.destroyed)))return r.call(e,new Error("premature close"))};var k=function(){e.req.on("finish",d)};if(n(e)){e.on("complete",d);e.on("abort",y);if(e.req)k();else e.on("request",k)}else if(l&&!c){e.on("end",m);e.on("close",m)}if(o(e))e.on("exit",v);e.on("end",h);e.on("finish",d);if(t.error!==false)e.on("error",g);e.on("close",y);return function(){f=true;e.removeListener("complete",d);e.removeListener("abort",y);e.removeListener("request",k);if(e.req)e.req.removeListener("finish",d);e.removeListener("end",m);e.removeListener("close",m);e.removeListener("finish",d);e.removeListener("exit",v);e.removeListener("end",h);e.removeListener("error",g);e.removeListener("close",y)}};e.exports=s},,,,function(e){e.exports=abort;function abort(e){Object.keys(e.jobs).forEach(clean.bind(e));e.jobs={}}function clean(e){if(typeof this.jobs[e]=="function"){this.jobs[e]()}}},,,,,,,,function(e,t,r){var a=r(409);if(process.env.READABLE_STREAM==="disable"&&a){e.exports=a;t=e.exports=a.Readable;t.Readable=a.Readable;t.Writable=a.Writable;t.Duplex=a.Duplex;t.Transform=a.Transform;t.PassThrough=a.PassThrough;t.Stream=a}else{t=e.exports=r(226);t.Stream=a||t;t.Readable=t;t.Writable=r(241);t.Duplex=r(831);t.Transform=r(925);t.PassThrough=r(882)}},function(e,t,r){"use strict";var a=r(370);var i=a("%Math%");var n=r(269);var o=r(756);var s=r(235);var c=r(774);var u=i.floor;var p=i.abs;e.exports=function ToInteger(e){var t=n(e);if(o(t)){return 0}if(t===0||!s(t)){return t}return c(t)*u(p(t))}},,,,,,function(e){"use strict";var t=Object.prototype.hasOwnProperty;var r=function(){var e=[];for(var t=0;t<256;++t){e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase())}return e}();var a=function compactQueue(e){var t;while(e.length){var r=e.pop();t=r.obj[r.prop];if(Array.isArray(t)){var a=[];for(var i=0;i=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122){a+=t.charAt(i);continue}if(n<128){a=a+r[n];continue}if(n<2048){a=a+(r[192|n>>6]+r[128|n&63]);continue}if(n<55296||n>=57344){a=a+(r[224|n>>12]+r[128|n>>6&63]+r[128|n&63]);continue}i+=1;n=65536+((n&1023)<<10|t.charCodeAt(i)&1023);a+=r[240|n>>18]+r[128|n>>12&63]+r[128|n>>6&63]+r[128|n&63]}return a};var u=function compact(e){var t=[{obj:{o:e},prop:"o"}];var r=[];for(var i=0;ie.length||e.slice(t,t+5).toString("ascii")!=="BEGIN")return false;return true}function findDNSSECHeader(e){if(e.length<=m.length)return false;var t=e.slice(0,m.length);if(t.toString("ascii")===m)return true;if(typeof e!=="string"){e=e.toString("ascii")}var r=e.split("\n");var a=0;while(r[a].match(/^\;/))a++;if(r[a].toString("ascii").match(/\. IN KEY /))return true;if(r[a].toString("ascii").match(/\. IN DNSKEY /))return true;return false}function write(e,t){throw new Error('"auto" format cannot be used for writing')}},,,function(e){var t=Object.prototype;var r=t.toString;function objectToString(e){return r.call(e)}e.exports=objectToString},function(e,t,r){e.exports={read:read,write:write};var a=r(477);var i=r(215).Buffer;var n=r(538);var o=r(270);var s=r(852);var c=r(502);var u=r(78);var p=/^([a-z0-9-]+)[ \t]+([a-zA-Z0-9+\/]+[=]*)([ \t]+([^ \t][^\n]*[\n]*)?)?$/;var l=/^([a-z0-9-]+)[ \t\n]+([a-zA-Z0-9+\/][a-zA-Z0-9+\/ \t\n=]*)([^a-zA-Z0-9+\/ \t\n=].*)?$/;function read(e,t){if(typeof e!=="string"){a.buffer(e,"buf");e=e.toString("ascii")}var r=e.trim().replace(/[\\\r]/g,"");var o=r.match(p);if(!o)o=r.match(l);a.ok(o,"key must match regex");var s=n.algToKeyType(o[1]);var c=i.from(o[2],"base64");var u;var f={};if(o[4]){try{u=n.read(c)}catch(e){o=r.match(l);a.ok(o,"key must match regex");c=i.from(o[2],"base64");u=n.readInternal(f,"public",c)}}else{u=n.readInternal(f,"public",c)}a.strictEqual(s,u.type);if(o[4]&&o[4].length>0){u.comment=o[4]}else if(f.consumed){var m=o[2]+(o[3]?o[3]:"");var d=Math.ceil(f.consumed/3)*4;m=m.slice(0,d-2).replace(/[^a-zA-Z0-9+\/=]/g,"")+m.slice(d-2);var h=f.consumed%3;if(h>0&&m.slice(d-1,d)!=="=")d--;while(m.slice(d,d+1)==="=")d++;var v=m.slice(d);v=v.replace(/[\r\n]/g," ").replace(/^\s+/,"");if(v.match(/^[a-zA-Z0-9]/))u.comment=v}return u}function write(e,t){a.object(e);if(!s.isKey(e))throw new Error("Must be a public key");var r=[];var o=n.keyTypeToAlg(e);r.push(o);var c=n.write(e);r.push(c.toString("base64"));if(e.comment)r.push(e.comment);return i.from(r.join(" "))}},,function(e){e.exports=require("http")},,function(e,t,r){"use strict";var a=r(883);var i=a.freeze;var n=r(248);var o=n.inherits;var s=n.notEnumerableProp;function subError(e,t){function SubError(r){if(!(this instanceof SubError))return new SubError(r);s(this,"message",typeof r==="string"?r:t);s(this,"name",e);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{Error.call(this)}}o(SubError,Error);return SubError}var c,u;var p=subError("Warning","warning");var l=subError("CancellationError","cancellation error");var f=subError("TimeoutError","timeout error");var m=subError("AggregateError","aggregate error");try{c=TypeError;u=RangeError}catch(e){c=subError("TypeError","type error");u=subError("RangeError","range error")}var d=("join pop push shift unshift slice filter forEach some "+"every map indexOf lastIndexOf reduce reduceRight sort reverse").split(" ");for(var h=0;h=this._size)return null;var t=this._buf[e++]&255;if(t===null)return null;if((t&128)===128){t&=127;if(t===0)throw s("Indefinite length not supported");if(t>4)throw s("encoding too long");if(this._size-ethis._size-a)return null;this._offset=a;if(this.length===0)return t?i.alloc(0):"";var o=this._buf.slice(this._offset,this._offset+this.length);this._offset+=this.length;return t?o:o.toString("utf8")};Reader.prototype.readOID=function(e){if(!e)e=n.OID;var t=this.readString(e,true);if(t===null)return null;var r=[];var a=0;for(var i=0;i>0);return r.join(".")};Reader.prototype._readTag=function(e){a.ok(e!==undefined);var t=this.peek();if(t===null)return null;if(t!==e)throw s("Expected 0x"+e.toString(16)+": got 0x"+t.toString(16));var r=this.readLength(this._offset+1);if(r===null)return null;if(this.length>4)throw s("Integer too long: "+this.length);if(this.length>this._size-r)return null;this._offset=r;var i=this._buf[this._offset];var n=0;for(var o=0;o>0};e.exports=Reader},,function(e,t){"use strict";function Store(){}t.Store=Store;Store.prototype.synchronous=false;Store.prototype.findCookie=function(e,t,r,a){throw new Error("findCookie is not implemented")};Store.prototype.findCookies=function(e,t,r){throw new Error("findCookies is not implemented")};Store.prototype.putCookie=function(e,t){throw new Error("putCookie is not implemented")};Store.prototype.updateCookie=function(e,t,r){throw new Error("updateCookie is not implemented")};Store.prototype.removeCookie=function(e,t,r,a){throw new Error("removeCookie is not implemented")};Store.prototype.removeCookies=function(e,t,r){throw new Error("removeCookies is not implemented")};Store.prototype.removeAllCookies=function(e){throw new Error("removeAllCookies is not implemented")};Store.prototype.getAllCookies=function(e){throw new Error("getAllCookies is not implemented (therefore jar cannot be serialized)")}},function(e){"use strict";e.exports=function generate_items(e,t,r){var a=" ";var i=e.level;var n=e.dataLevel;var o=e.schema[t];var s=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var p="data"+(n||"");var l="valid"+i;var f="errs__"+i;var m=e.util.copy(e);var d="";m.level++;var h="valid"+m.level;var v="i"+i,g=m.dataLevel=e.dataLevel+1,y="data"+g,b=e.baseId;a+="var "+f+" = errors;var "+l+";";if(Array.isArray(o)){var k=e.schema.additionalItems;if(k===false){a+=" "+l+" = "+p+".length <= "+o.length+"; ";var x=c;c=e.errSchemaPath+"/additionalItems";a+=" if (!"+l+") { ";var w=w||[];w.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"additionalItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+o.length+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have more than "+o.length+" items' "}if(e.opts.verbose){a+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}a+=" } "}else{a+=" {} "}var j=a;a=w.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+j+"]); "}else{a+=" validate.errors = ["+j+"]; return false; "}}else{a+=" var err = "+j+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";c=x;if(u){d+="}";a+=" else { "}}var _=o;if(_){var S,E=-1,P=_.length-1;while(E0:e.util.schemaHasRules(S,e.RULES.all)){a+=" "+h+" = true; if ("+p+".length > "+E+") { ";var C=p+"["+E+"]";m.schema=S;m.schemaPath=s+"["+E+"]";m.errSchemaPath=c+"/"+E;m.errorPath=e.util.getPathExpr(e.errorPath,E,e.opts.jsonPointers,true);m.dataPathArr[g]=E;var F=e.validate(m);m.baseId=b;if(e.util.varOccurences(F,y)<2){a+=" "+e.util.varReplace(F,y,C)+" "}else{a+=" var "+y+" = "+C+"; "+F+" "}a+=" } ";if(u){a+=" if ("+h+") { ";d+="}"}}}}if(typeof k=="object"&&(e.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0:e.util.schemaHasRules(k,e.RULES.all))){m.schema=k;m.schemaPath=e.schemaPath+".additionalItems";m.errSchemaPath=e.errSchemaPath+"/additionalItems";a+=" "+h+" = true; if ("+p+".length > "+o.length+") { for (var "+v+" = "+o.length+"; "+v+" < "+p+".length; "+v+"++) { ";m.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var C=p+"["+v+"]";m.dataPathArr[g]=v;var F=e.validate(m);m.baseId=b;if(e.util.varOccurences(F,y)<2){a+=" "+e.util.varReplace(F,y,C)+" "}else{a+=" var "+y+" = "+C+"; "+F+" "}if(u){a+=" if (!"+h+") break; "}a+=" } } ";if(u){a+=" if ("+h+") { ";d+="}"}}}else if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0:e.util.schemaHasRules(o,e.RULES.all)){m.schema=o;m.schemaPath=s;m.errSchemaPath=c;a+=" for (var "+v+" = "+0+"; "+v+" < "+p+".length; "+v+"++) { ";m.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,true);var C=p+"["+v+"]";m.dataPathArr[g]=v;var F=e.validate(m);m.baseId=b;if(e.util.varOccurences(F,y)<2){a+=" "+e.util.varReplace(F,y,C)+" "}else{a+=" var "+y+" = "+C+"; "+F+" "}if(u){a+=" if (!"+h+") break; "}a+=" }"}if(u){a+=" "+d+" if ("+f+" == errors) {"}return a}},function(e,t,r){"use strict";var a=r(386);var i=r(191);function Querystring(e){this.request=e;this.lib=null;this.useQuerystring=null;this.parseOptions=null;this.stringifyOptions=null}Querystring.prototype.init=function(e){if(this.lib){return}this.useQuerystring=e.useQuerystring;this.lib=this.useQuerystring?i:a;this.parseOptions=e.qsParseOptions||{};this.stringifyOptions=e.qsStringifyOptions||{}};Querystring.prototype.stringify=function(e){return this.useQuerystring?this.rfc3986(this.lib.stringify(e,this.stringifyOptions.sep||null,this.stringifyOptions.eq||null,this.stringifyOptions)):this.lib.stringify(e,this.stringifyOptions)};Querystring.prototype.parse=function(e){return this.useQuerystring?this.lib.parse(e,this.parseOptions.sep||null,this.parseOptions.eq||null,this.parseOptions):this.lib.parse(e,this.parseOptions)};Querystring.prototype.rfc3986=function(e){return e.replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})};Querystring.prototype.unescape=i.unescape;t.Querystring=Querystring},,function(e){"use strict";e.exports=function(e){if(!(e&&e.length>1)){return null}if(e[0]===255&&e[1]===216&&e[2]===255){return{ext:"jpg",mime:"image/jpeg"}}if(e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71){return{ext:"png",mime:"image/png"}}if(e[0]===71&&e[1]===73&&e[2]===70){return{ext:"gif",mime:"image/gif"}}if(e[8]===87&&e[9]===69&&e[10]===66&&e[11]===80){return{ext:"webp",mime:"image/webp"}}if(e[0]===70&&e[1]===76&&e[2]===73&&e[3]===70){return{ext:"flif",mime:"image/flif"}}if((e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42)&&e[8]===67&&e[9]===82){return{ext:"cr2",mime:"image/x-canon-cr2"}}if(e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42){return{ext:"tif",mime:"image/tiff"}}if(e[0]===66&&e[1]===77){return{ext:"bmp",mime:"image/bmp"}}if(e[0]===73&&e[1]===73&&e[2]===188){return{ext:"jxr",mime:"image/vnd.ms-photo"}}if(e[0]===56&&e[1]===66&&e[2]===80&&e[3]===83){return{ext:"psd",mime:"image/vnd.adobe.photoshop"}}if(e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===109&&e[31]===105&&e[32]===109&&e[33]===101&&e[34]===116&&e[35]===121&&e[36]===112&&e[37]===101&&e[38]===97&&e[39]===112&&e[40]===112&&e[41]===108&&e[42]===105&&e[43]===99&&e[44]===97&&e[45]===116&&e[46]===105&&e[47]===111&&e[48]===110&&e[49]===47&&e[50]===101&&e[51]===112&&e[52]===117&&e[53]===98&&e[54]===43&&e[55]===122&&e[56]===105&&e[57]===112){return{ext:"epub",mime:"application/epub+zip"}}if(e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===77&&e[31]===69&&e[32]===84&&e[33]===65&&e[34]===45&&e[35]===73&&e[36]===78&&e[37]===70&&e[38]===47&&e[39]===109&&e[40]===111&&e[41]===122&&e[42]===105&&e[43]===108&&e[44]===108&&e[45]===97&&e[46]===46&&e[47]===114&&e[48]===115&&e[49]===97){return{ext:"xpi",mime:"application/x-xpinstall"}}if(e[0]===80&&e[1]===75&&(e[2]===3||e[2]===5||e[2]===7)&&(e[3]===4||e[3]===6||e[3]===8)){return{ext:"zip",mime:"application/zip"}}if(e[257]===117&&e[258]===115&&e[259]===116&&e[260]===97&&e[261]===114){return{ext:"tar",mime:"application/x-tar"}}if(e[0]===82&&e[1]===97&&e[2]===114&&e[3]===33&&e[4]===26&&e[5]===7&&(e[6]===0||e[6]===1)){return{ext:"rar",mime:"application/x-rar-compressed"}}if(e[0]===31&&e[1]===139&&e[2]===8){return{ext:"gz",mime:"application/gzip"}}if(e[0]===66&&e[1]===90&&e[2]===104){return{ext:"bz2",mime:"application/x-bzip2"}}if(e[0]===55&&e[1]===122&&e[2]===188&&e[3]===175&&e[4]===39&&e[5]===28){return{ext:"7z",mime:"application/x-7z-compressed"}}if(e[0]===120&&e[1]===1){return{ext:"dmg",mime:"application/x-apple-diskimage"}}if(e[0]===0&&e[1]===0&&e[2]===0&&(e[3]===24||e[3]===32)&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112||e[0]===51&&e[1]===103&&e[2]===112&&e[3]===53||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[16]===109&&e[17]===112&&e[18]===52&&e[19]===49&&e[20]===109&&e[21]===112&&e[22]===52&&e[23]===50&&e[24]===105&&e[25]===115&&e[26]===111&&e[27]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===105&&e[9]===115&&e[10]===111&&e[11]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[12]===0&&e[13]===0&&e[14]===0&&e[15]===0){return{ext:"mp4",mime:"video/mp4"}}if(e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===86){return{ext:"m4v",mime:"video/x-m4v"}}if(e[0]===77&&e[1]===84&&e[2]===104&&e[3]===100){return{ext:"mid",mime:"audio/midi"}}if(e[31]===109&&e[32]===97&&e[33]===116&&e[34]===114&&e[35]===111&&e[36]===115&&e[37]===107&&e[38]===97){return{ext:"mkv",mime:"video/x-matroska"}}if(e[0]===26&&e[1]===69&&e[2]===223&&e[3]===163){return{ext:"webm",mime:"video/webm"}}if(e[0]===0&&e[1]===0&&e[2]===0&&e[3]===20&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112){return{ext:"mov",mime:"video/quicktime"}}if(e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===65&&e[9]===86&&e[10]===73){return{ext:"avi",mime:"video/x-msvideo"}}if(e[0]===48&&e[1]===38&&e[2]===178&&e[3]===117&&e[4]===142&&e[5]===102&&e[6]===207&&e[7]===17&&e[8]===166&&e[9]===217){return{ext:"wmv",mime:"video/x-ms-wmv"}}if(e[0]===0&&e[1]===0&&e[2]===1&&e[3].toString(16)[0]==="b"){return{ext:"mpg",mime:"video/mpeg"}}if(e[0]===73&&e[1]===68&&e[2]===51||e[0]===255&&e[1]===251){return{ext:"mp3",mime:"audio/mpeg"}}if(e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===65||e[0]===77&&e[1]===52&&e[2]===65&&e[3]===32){return{ext:"m4a",mime:"audio/m4a"}}if(e[28]===79&&e[29]===112&&e[30]===117&&e[31]===115&&e[32]===72&&e[33]===101&&e[34]===97&&e[35]===100){return{ext:"opus",mime:"audio/opus"}}if(e[0]===79&&e[1]===103&&e[2]===103&&e[3]===83){return{ext:"ogg",mime:"audio/ogg"}}if(e[0]===102&&e[1]===76&&e[2]===97&&e[3]===67){return{ext:"flac",mime:"audio/x-flac"}}if(e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===87&&e[9]===65&&e[10]===86&&e[11]===69){return{ext:"wav",mime:"audio/x-wav"}}if(e[0]===35&&e[1]===33&&e[2]===65&&e[3]===77&&e[4]===82&&e[5]===10){return{ext:"amr",mime:"audio/amr"}}if(e[0]===37&&e[1]===80&&e[2]===68&&e[3]===70){return{ext:"pdf",mime:"application/pdf"}}if(e[0]===77&&e[1]===90){return{ext:"exe",mime:"application/x-msdownload"}}if((e[0]===67||e[0]===70)&&e[1]===87&&e[2]===83){return{ext:"swf",mime:"application/x-shockwave-flash"}}if(e[0]===123&&e[1]===92&&e[2]===114&&e[3]===116&&e[4]===102){return{ext:"rtf",mime:"application/rtf"}}if(e[0]===119&&e[1]===79&&e[2]===70&&e[3]===70&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)){return{ext:"woff",mime:"application/font-woff"}}if(e[0]===119&&e[1]===79&&e[2]===70&&e[3]===50&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)){return{ext:"woff2",mime:"application/font-woff"}}if(e[34]===76&&e[35]===80&&(e[8]===0&&e[9]===0&&e[10]===1||e[8]===1&&e[9]===0&&e[10]===2||e[8]===2&&e[9]===0&&e[10]===2)){return{ext:"eot",mime:"application/octet-stream"}}if(e[0]===0&&e[1]===1&&e[2]===0&&e[3]===0&&e[4]===0){return{ext:"ttf",mime:"application/font-sfnt"}}if(e[0]===79&&e[1]===84&&e[2]===84&&e[3]===79&&e[4]===0){return{ext:"otf",mime:"application/font-sfnt"}}if(e[0]===0&&e[1]===0&&e[2]===1&&e[3]===0){return{ext:"ico",mime:"image/x-icon"}}if(e[0]===70&&e[1]===76&&e[2]===86&&e[3]===1){return{ext:"flv",mime:"video/x-flv"}}if(e[0]===37&&e[1]===33){return{ext:"ps",mime:"application/postscript"}}if(e[0]===253&&e[1]===55&&e[2]===122&&e[3]===88&&e[4]===90&&e[5]===0){return{ext:"xz",mime:"application/x-xz"}}if(e[0]===83&&e[1]===81&&e[2]===76&&e[3]===105){return{ext:"sqlite",mime:"application/x-sqlite3"}}if(e[0]===78&&e[1]===69&&e[2]===83&&e[3]===26){return{ext:"nes",mime:"application/x-nintendo-nes-rom"}}if(e[0]===67&&e[1]===114&&e[2]===50&&e[3]===52){return{ext:"crx",mime:"application/x-google-chrome-extension"}}if(e[0]===77&&e[1]===83&&e[2]===67&&e[3]===70||e[0]===73&&e[1]===83&&e[2]===99&&e[3]===40){return{ext:"cab",mime:"application/vnd.ms-cab-compressed"}}if(e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62&&e[7]===10&&e[8]===100&&e[9]===101&&e[10]===98&&e[11]===105&&e[12]===97&&e[13]===110&&e[14]===45&&e[15]===98&&e[16]===105&&e[17]===110&&e[18]===97&&e[19]===114&&e[20]===121){return{ext:"deb",mime:"application/x-deb"}}if(e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62){return{ext:"ar",mime:"application/x-unix-archive"}}if(e[0]===237&&e[1]===171&&e[2]===238&&e[3]===219){return{ext:"rpm",mime:"application/x-rpm"}}if(e[0]===31&&e[1]===160||e[0]===31&&e[1]===157){return{ext:"Z",mime:"application/x-compress"}}if(e[0]===76&&e[1]===90&&e[2]===73&&e[3]===80){return{ext:"lz",mime:"application/x-lzip"}}if(e[0]===208&&e[1]===207&&e[2]===17&&e[3]===224&&e[4]===161&&e[5]===177&&e[6]===26&&e[7]===225){return{ext:"msi",mime:"application/x-msi"}}return null}},,,,,function(e,t,r){"use strict";e.exports=r(720)},,,,,function(e,t,r){"use strict";var a=r(196).lowlevel.crypto_hash;var i=0;var n=function(){this.S=[new Uint32Array([3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946]),new Uint32Array([1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055]),new Uint32Array([3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504]),new Uint32Array([976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462])];this.P=new Uint32Array([608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731])};function F(e,t,r){return(e[0][t[r+3]]+e[1][t[r+2]]^e[2][t[r+1]])+e[3][t[r]]}n.prototype.encipher=function(e,t){if(t===undefined){t=new Uint8Array(e.buffer);if(e.byteOffset!==0)t=t.subarray(e.byteOffset)}e[0]^=this.P[0];for(var r=1;r<16;r+=2){e[1]^=F(this.S,t,0)^this.P[r];e[0]^=F(this.S,t,4)^this.P[r+1]}var a=e[0];e[0]=e[1]^this.P[17];e[1]=a};n.prototype.decipher=function(e){var t=new Uint8Array(e.buffer);if(e.byteOffset!==0)t=t.subarray(e.byteOffset);e[0]^=this.P[17];for(var r=16;r>0;r-=2){e[1]^=F(this.S,t,0)^this.P[r];e[0]^=F(this.S,t,4)^this.P[r-1]}var a=e[0];e[0]=e[1]^this.P[0];e[1]=a};function stream2word(e,t){var r,a=0;for(r=0;r<4;r++,i++){if(i>=t)i=0;a=a<<8|e[i]}return a}n.prototype.expand0state=function(e,t){var r=new Uint32Array(2),a,n;var o=new Uint8Array(r.buffer);for(a=0,i=0;a<18;a++){this.P[a]^=stream2word(e,t)}i=0;for(a=0;a<18;a+=2){this.encipher(r,o);this.P[a]=r[0];this.P[a+1]=r[1]}for(a=0;a<4;a++){for(n=0;n<256;n+=2){this.encipher(r,o);this.S[a][n]=r[0];this.S[a][n+1]=r[1]}}};n.prototype.expandstate=function(e,t,r,a){var n=new Uint32Array(2),o,s;for(o=0,i=0;o<18;o++){this.P[o]^=stream2word(r,a)}for(o=0,i=0;o<18;o+=2){n[0]^=stream2word(e,t);n[1]^=stream2word(e,t);this.encipher(n);this.P[o]=n[0];this.P[o+1]=n[1]}for(o=0;o<4;o++){for(s=0;s<256;s+=2){n[0]^=stream2word(e,t);n[1]^=stream2word(e,t);this.encipher(n);this.S[o][s]=n[0];this.S[o][s+1]=n[1]}}i=0};n.prototype.enc=function(e,t){for(var r=0;r>>24;r[4*s+2]=i[s]>>>16;r[4*s+1]=i[s]>>>8;r[4*s+0]=i[s]}}function bcrypt_pbkdf(e,t,r,i,n,o,c){var u=new Uint8Array(64),p=new Uint8Array(64),l=new Uint8Array(s),f=new Uint8Array(s),m=new Uint8Array(i+4),d,h,v,g,y,b,k=o;if(c<1)return-1;if(t===0||i===0||o===0||o>l.byteLength*l.byteLength||i>1<<20)return-1;g=Math.floor((o+l.byteLength-1)/l.byteLength);v=Math.floor((o+g-1)/g);for(d=0;d0;b++){m[i+0]=b>>>24;m[i+1]=b>>>16;m[i+2]=b>>>8;m[i+3]=b;a(p,m,i+4);bcrypt_hash(u,p,f);for(d=l.byteLength;d--;)l[d]=f[d];for(d=1;d=k)break;n[y]=l[d]}o-=d}return 0}e.exports={BLOCKS:o,HASHSIZE:s,hash:bcrypt_hash,pbkdf:bcrypt_pbkdf}},,function(e,t,r){"use strict";e.exports=function(e,t,a,i,n){var o=r(248);var s=o.tryCatch;e.method=function(r){if(typeof r!=="function"){throw new e.TypeError("expecting a function but got "+o.classString(r))}return function(){var a=new e(t);a._captureStackTrace();a._pushContext();var i=s(r).apply(this,arguments);var o=a._popContext();n.checkForgottenReturns(i,o,"Promise.method",a);a._resolveFromSyncValue(i);return a}};e.attempt=e["try"]=function(r){if(typeof r!=="function"){return i("expecting a function but got "+o.classString(r))}var a=new e(t);a._captureStackTrace();a._pushContext();var c;if(arguments.length>1){n.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1];var p=arguments[2];c=o.isArray(u)?s(r).apply(p,u):s(r).call(p,u)}else{c=s(r)()}var l=a._popContext();n.checkForgottenReturns(c,l,"Promise.try",a);a._resolveFromSyncValue(c);return a};e.prototype._resolveFromSyncValue=function(e){if(e===o.errorObj){this._rejectCallback(e.e,false)}else{this._resolveCallback(e,true)}}}},,,,,,,function(e,t,r){var a=r(852);var i=r(400);var n=r(90);var o=r(502);var s=r(752);var c=r(378);var u=r(753);e.exports={Key:a,parseKey:a.parse,Fingerprint:i,parseFingerprint:i.parse,Signature:n,parseSignature:n.parse,PrivateKey:o,parsePrivateKey:o.parse,generatePrivateKey:o.generate,Certificate:s,parseCertificate:s.parse,createSelfSignedCertificate:s.createSelfSigned,createCertificate:s.create,Identity:c,identityFromDN:c.parseDN,identityForHost:c.forHost,identityForUser:c.forUser,identityForEmail:c.forEmail,identityFromArray:c.fromArray,FingerprintFormatError:u.FingerprintFormatError,InvalidAlgorithmError:u.InvalidAlgorithmError,KeyParseError:u.KeyParseError,SignatureParseError:u.SignatureParseError,KeyEncryptedError:u.KeyEncryptedError,CertificateParseError:u.CertificateParseError}},,,function(e){"use strict";e.exports=function generate_oneOf(e,t,r){var a=" ";var i=e.level;var n=e.dataLevel;var o=e.schema[t];var s=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var p="data"+(n||"");var l="valid"+i;var f="errs__"+i;var m=e.util.copy(e);var d="";m.level++;var h="valid"+m.level;var v=m.baseId,g="prevValid"+i,y="passingSchemas"+i;a+="var "+f+" = errors , "+g+" = false , "+l+" = false , "+y+" = null; ";var b=e.compositeRule;e.compositeRule=m.compositeRule=true;var k=o;if(k){var x,w=-1,j=k.length-1;while(w0:e.util.schemaHasRules(x,e.RULES.all)){m.schema=x;m.schemaPath=s+"["+w+"]";m.errSchemaPath=c+"/"+w;a+=" "+e.validate(m)+" ";m.baseId=v}else{a+=" var "+h+" = true; "}if(w){a+=" if ("+h+" && "+g+") { "+l+" = false; "+y+" = ["+y+", "+w+"]; } else { ";d+="}"}a+=" if ("+h+") { "+l+" = "+g+" = true; "+y+" = "+w+"; }"}}e.compositeRule=m.compositeRule=b;a+=""+d+"if (!"+l+") { var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"oneOf"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { passingSchemas: "+y+" } ";if(e.opts.messages!==false){a+=" , message: 'should match exactly one schema in oneOf' "}if(e.opts.verbose){a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(vErrors); "}else{a+=" validate.errors = vErrors; return false; "}}a+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }";if(e.opts.allErrors){a+=" } "}return a}},function(e){"use strict";var t=/\.node$/;function forEach(e,t){for(var r in e){if(!Object.prototype.hasOwnProperty.call(e,r)){continue}t(r)}}function assign(e,t){forEach(t,function(r){e[r]=t[r]});return e}function clearCache(e){forEach(e,function(r){if(!t.test(r)){delete e[r]}})}e.exports=function(e,t,r,a){var i=assign({},e);clearCache(e);if(r){var n=a.children?a.children.slice():false;r();var o=[];forEach(e,function(e){o.push(e)});clearCache(e);if(a.children){a.children=n}for(var s=0;s0:e.util.schemaHasRules(k,e.RULES.all)))){h[h.length]=g}}}}else{var h=o}}if(f||h.length){var x=e.errorPath,w=f||h.length>=e.opts.loopRequired,j=e.opts.ownProperties;if(u){a+=" var missing"+i+"; ";if(w){if(!f){a+=" var "+d+" = validate.schema"+s+"; "}var _="i"+i,S="schema"+i+"["+_+"]",E="' + "+S+" + '";if(e.opts._errorDataPathProperty){e.errorPath=e.util.getPathExpr(x,S,e.opts.jsonPointers)}a+=" var "+l+" = true; ";if(f){a+=" if (schema"+i+" === undefined) "+l+" = true; else if (!Array.isArray(schema"+i+")) "+l+" = false; else {"}a+=" for (var "+_+" = 0; "+_+" < "+d+".length; "+_+"++) { "+l+" = "+p+"["+d+"["+_+"]] !== undefined ";if(j){a+=" && Object.prototype.hasOwnProperty.call("+p+", "+d+"["+_+"]) "}a+="; if (!"+l+") break; } ";if(f){a+=" } "}a+=" if (!"+l+") { ";var P=P||[];P.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"required"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { missingProperty: '"+E+"' } ";if(e.opts.messages!==false){a+=" , message: '";if(e.opts._errorDataPathProperty){a+="is a required property"}else{a+="should have required property \\'"+E+"\\'"}a+="' "}if(e.opts.verbose){a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}a+=" } "}else{a+=" {} "}var C=a;a=P.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+C+"]); "}else{a+=" validate.errors = ["+C+"]; return false; "}}else{a+=" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else { "}else{a+=" if ( ";var F=h;if(F){var A,_=-1,T=F.length-1;while(_0:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o;f.schemaPath=s;f.errSchemaPath=c;a+=" var "+l+" = errors; ";var d=e.compositeRule;e.compositeRule=f.compositeRule=true;f.createErrors=false;var h;if(f.opts.allErrors){h=f.opts.allErrors;f.opts.allErrors=false}a+=" "+e.validate(f)+" ";f.createErrors=true;if(h)f.opts.allErrors=h;e.compositeRule=f.compositeRule=d;a+=" if ("+m+") { ";var v=v||[];v.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'should NOT be valid' "}if(e.opts.verbose){a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}a+=" } "}else{a+=" {} "}var g=a;a=v.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+g+"]); "}else{a+=" validate.errors = ["+g+"]; return false; "}}else{a+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } else { errors = "+l+"; if (vErrors !== null) { if ("+l+") vErrors.length = "+l+"; else vErrors = null; } ";if(e.opts.allErrors){a+=" } "}}else{a+=" var err = ";if(e.createErrors!==false){a+=" { keyword: '"+"not"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: {} ";if(e.opts.messages!==false){a+=" , message: 'should NOT be valid' "}if(e.opts.verbose){a+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}a+=" } "}else{a+=" {} "}a+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";if(u){a+=" if (false) { "}}return a}},function(e,t,r){"use strict";var a=r(233).Buffer;var i=a.isEncoding||function(e){e=""+e;switch(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 true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){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=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(a.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}t.StringDecoder=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=a.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,r){var a=t.length-1;if(a=0){if(i>0)e.lastNeed=i-1;return i}if(--a=0){if(i>0)e.lastNeed=i-2;return i}if(--a=0){if(i>0){if(i===2)i=0;else e.lastNeed=i-3}return i}return 0}function utf8CheckExtraBytes(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var r=utf8CheckExtraBytes(this,e,t);if(r!==undefined)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var r=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var a=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,a);return e.toString("utf8",t,a)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var a=r.charCodeAt(r.length-1);if(a>=55296&&a<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(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 base64Text(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},,,,,function(e){function isUndefined(e){return e===undefined}e.exports=isUndefined},function(e,t,r){var a=r(919);e.exports={read:read,verify:a.verify,sign:a.sign,write:write};var i=r(477);var n=r(62);var o=r(215).Buffer;var s=r(98);var c=r(270);var u=r(852);var p=r(502);var l=r(268);var f=r(378);var m=r(90);var d=r(752);function read(e,t){if(typeof e!=="string"){i.buffer(e,"buf");e=e.toString("ascii")}var r=e.trim().split(/[\r\n]+/g);var n;var s=-1;while(!n&&s0){c=r[--u].match(/[-]+[ ]*END CERTIFICATE[ ]*[-]+/)}i.ok(c,"invalid PEM footer");r=r.slice(s,u+1);var p={};while(true){r=r.slice(1);n=r[0].match(/^([A-Za-z0-9-]+): (.+)$/);if(!n)break;p[n[1].toLowerCase()]=n[2]}r=r.slice(0,-1).join("");e=o.from(r,"base64");return a.read(e,t)}function write(e,t){var r=a.write(e,t);var i="CERTIFICATE";var n=r.toString("base64");var s=n.length+n.length/64+18+16+i.length*2+10;var c=o.alloc(s);var u=0;u+=c.write("-----BEGIN "+i+"-----\n",u);for(var p=0;pn.length)l=n.length;u+=c.write(n.slice(p,l),u);c[u++]=10;p=l}u+=c.write("-----END "+i+"-----\n",u);return c.slice(0,u)}},,,,,function(e){"use strict";e.exports=function(e,t){var r=e.reduce;var a=e.all;function promiseAllThis(){return a(this)}function PromiseMapSeries(e,a){return r(e,a,t,t)}e.prototype.each=function(e){return r(this,e,t,0)._then(promiseAllThis,undefined,undefined,this,undefined)};e.prototype.mapSeries=function(e){return r(this,e,t,t)};e.each=function(e,a){return r(e,a,t,0)._then(promiseAllThis,undefined,undefined,e,undefined)};e.mapSeries=PromiseMapSeries}},,function(e){"use strict";e.exports=function generate_format(e,t,r){var a=" ";var i=e.level;var n=e.dataLevel;var o=e.schema[t];var s=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var p="data"+(n||"");if(e.opts.format===false){if(u){a+=" if (true) { "}return a}var l=e.opts.$data&&o&&o.$data,f;if(l){a+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ";f="schema"+i}else{f=o}var m=e.opts.unknownFormats,d=Array.isArray(m);if(l){var h="format"+i,v="isObject"+i,g="formatType"+i;a+=" var "+h+" = formats["+f+"]; var "+v+" = typeof "+h+" == 'object' && !("+h+" instanceof RegExp) && "+h+".validate; var "+g+" = "+v+" && "+h+".type || 'string'; if ("+v+") { ";if(e.async){a+=" var async"+i+" = "+h+".async; "}a+=" "+h+" = "+h+".validate; } if ( ";if(l){a+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "}a+=" (";if(m!="ignore"){a+=" ("+f+" && !"+h+" ";if(d){a+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "}a+=") || "}a+=" ("+h+" && "+g+" == '"+r+"' && !(typeof "+h+" == 'function' ? ";if(e.async){a+=" (async"+i+" ? await "+h+"("+p+") : "+h+"("+p+")) "}else{a+=" "+h+"("+p+") "}a+=" : "+h+".test("+p+"))))) {"}else{var h=e.formats[o];if(!h){if(m=="ignore"){e.logger.warn('unknown format "'+o+'" ignored in schema at path "'+e.errSchemaPath+'"');if(u){a+=" if (true) { "}return a}else if(d&&m.indexOf(o)>=0){if(u){a+=" if (true) { "}return a}else{throw new Error('unknown format "'+o+'" is used in schema at path "'+e.errSchemaPath+'"')}}var v=typeof h=="object"&&!(h instanceof RegExp)&&h.validate;var g=v&&h.type||"string";if(v){var y=h.async===true;h=h.validate}if(g!=r){if(u){a+=" if (true) { "}return a}if(y){if(!e.async)throw new Error("async format in sync schema");var b="formats"+e.util.getProperty(o)+".validate";a+=" if (!(await "+b+"("+p+"))) { "}else{a+=" if (! ";var b="formats"+e.util.getProperty(o);if(v)b+=".validate";if(typeof h=="function"){a+=" "+b+"("+p+") "}else{a+=" "+b+".test("+p+") "}a+=") { "}}var k=k||[];k.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"format"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { format: ";if(l){a+=""+f}else{a+=""+e.util.toQuotedString(o)}a+=" } ";if(e.opts.messages!==false){a+=" , message: 'should match format \"";if(l){a+="' + "+f+" + '"}else{a+=""+e.util.escapeQuotes(o)}a+="\"' "}if(e.opts.verbose){a+=" , schema: ";if(l){a+="validate.schema"+s}else{a+=""+e.util.toQuotedString(o)}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}a+=" } "}else{a+=" {} "}var x=a;a=k.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+x+"]); "}else{a+=" validate.errors = ["+x+"]; return false; "}}else{a+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(u){a+=" else { "}return a}},,function(e,t,r){try{var a=r(669);if(typeof a.inherits!=="function")throw"";e.exports=a.inherits}catch(t){e.exports=r(315)}},,function(e){"use strict";e.exports=function ucs2length(e){var t=0,r=e.length,a=0,i;while(a=55296&&i<=56319&&a0)throw new Error("non-zero precision not supported");if(o.match(/-/))p=true;if(o.match(/0/))l="0";if(o.match(/\+/))f=true;switch(u){case"s":if(m===undefined||m===null)throw new Error("argument "+v+": attempted to print undefined or null "+"as a string");h+=doPad(l,s,p,m.toString());break;case"d":m=Math.floor(m);case"f":f=f&&m>0?"+":"";h+=f+doPad(l,s,p,m.toString());break;case"x":h+=doPad(l,s,p,m.toString(16));break;case"j":if(s===0)s=10;h+=i.inspect(m,false,s);break;case"r":h+=dumpException(m);break;default:throw new Error("unsupported conversion: "+u)}}h+=e;return h}function jsPrintf(){var e=Array.prototype.slice.call(arguments);e.unshift(process.stdout);jsFprintf.apply(null,e)}function jsFprintf(e){var t=Array.prototype.slice.call(arguments,1);return e.write(jsSprintf.apply(this,t))}function doPad(e,t,r,a){var i=a;while(i.length=58){break}i++}if(ir){return null}if(!a&&i!=e.length){return null}return parseInt(e.substr(0,i),10)}function parseTime(e){var t=e.split(":");var r=[0,0,0];if(t.length!==3){return null}for(var a=0;a<3;a++){var i=a==2;var n=parseDigits(t[a],1,2,i);if(n===null){return null}r[a]=n}return r}function parseMonth(e){e=String(e).substr(0,3).toLowerCase();var t=g[e];return t>=0?t:null}function parseDate(e){if(!e){return}var t=e.split(v);if(!t){return}var r=null;var a=null;var i=null;var n=null;var o=null;var s=null;for(var c=0;c=70&&s<=99){s+=1900}else if(s>=0&&s<=69){s+=2e3}}}}if(n===null||o===null||s===null||i===null||n<1||n>31||s<1601||r>23||a>59||i>59){return}return new Date(Date.UTC(s,o,n,r,a,i))}function formatDate(e){var t=e.getUTCDate();t=t>=10?t:"0"+t;var r=e.getUTCHours();r=r>=10?r:"0"+r;var a=e.getUTCMinutes();a=a>=10?a:"0"+a;var i=e.getUTCSeconds();i=i>=10?i:"0"+i;return b[e.getUTCDay()]+", "+t+" "+y[e.getUTCMonth()]+" "+e.getUTCFullYear()+" "+r+":"+a+":"+i+" GMT"}function canonicalDomain(e){if(e==null){return null}e=e.trim().replace(/^\./,"");if(l&&/[^\u0001-\u007f]/.test(e)){e=l.toASCII(e)}return e.toLowerCase()}function domainMatch(e,t,r){if(e==null||t==null){return null}if(r!==false){e=canonicalDomain(e);t=canonicalDomain(t)}if(e==t){return true}if(a.isIP(e)){return false}var i=e.indexOf(t);if(i<=0){return false}if(e.length!==t.length+i){return false}if(e.substr(i-1,1)!=="."){return false}return true}function defaultPath(e){if(!e||e.substr(0,1)!=="/"){return"/"}if(e==="/"){return e}var t=e.lastIndexOf("/");if(t===0){return"/"}return e.slice(0,t)}function trimTerminator(e){for(var t=0;t1){var r=e.lastIndexOf("/");if(r===0){break}e=e.substr(0,r);t.push(e)}t.push("/");return t}function getCookieContext(e){if(e instanceof Object){return e}try{e=decodeURI(e)}catch(e){}return i(e)}function Cookie(e){e=e||{};Object.keys(e).forEach(function(t){if(Cookie.prototype.hasOwnProperty(t)&&Cookie.prototype[t]!==e[t]&&t.substr(0,1)!=="_"){this[t]=e[t]}},this);this.creation=this.creation||new Date;Object.defineProperty(this,"creationIndex",{configurable:false,enumerable:false,writable:true,value:++Cookie.cookiesCreated})}Cookie.cookiesCreated=0;Cookie.parse=parse;Cookie.fromJSON=fromJSON;Cookie.prototype.key="";Cookie.prototype.value="";Cookie.prototype.expires="Infinity";Cookie.prototype.maxAge=null;Cookie.prototype.domain=null;Cookie.prototype.path=null;Cookie.prototype.secure=false;Cookie.prototype.httpOnly=false;Cookie.prototype.extensions=null;Cookie.prototype.hostOnly=null;Cookie.prototype.pathIsDefault=null;Cookie.prototype.creation=null;Cookie.prototype.lastAccessed=null;Object.defineProperty(Cookie.prototype,"creationIndex",{configurable:true,enumerable:false,writable:true,value:0});Cookie.serializableProperties=Object.keys(Cookie.prototype).filter(function(e){return!(Cookie.prototype[e]instanceof Function||e==="creationIndex"||e.substr(0,1)==="_")});Cookie.prototype.inspect=function inspect(){var e=Date.now();return'Cookie="'+this.toString()+"; hostOnly="+(this.hostOnly!=null?this.hostOnly:"?")+"; aAge="+(this.lastAccessed?e-this.lastAccessed.getTime()+"ms":"?")+"; cAge="+(this.creation?e-this.creation.getTime()+"ms":"?")+'"'};if(n.inspect.custom){Cookie.prototype[n.inspect.custom]=Cookie.prototype.inspect}Cookie.prototype.toJSON=function(){var e={};var t=Cookie.serializableProperties;for(var r=0;rt.maxItems){addError("There must be a maximum of "+t.maxItems+" in the array")}}else if(t.properties||t.additionalProperties){n.concat(checkObj(e,t.properties,r,t.additionalProperties))}if(t.pattern&&typeof e=="string"&&!e.match(t.pattern)){addError("does not match the regex pattern "+t.pattern)}if(t.maxLength&&typeof e=="string"&&e.length>t.maxLength){addError("may only be "+t.maxLength+" characters long")}if(t.minLength&&typeof e=="string"&&e.lengthe){addError("must have a minimum value of "+t.minimum)}if(typeof t.maximum!==undefined&&typeof e==typeof t.maximum&&t.maximum0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this);~o?a.splice(o,Infinity,i):a.push(i);if(~r.indexOf(n))n=t.call(this,i,n)}else r.push(n);return e==null?n:e.call(this,i,n)}}},,function(e){"use strict";e.exports=function generate_propertyNames(e,t,r){var a=" ";var i=e.level;var n=e.dataLevel;var o=e.schema[t];var s=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var p="data"+(n||"");var l="errs__"+i;var f=e.util.copy(e);var m="";f.level++;var d="valid"+f.level;a+="var "+l+" = errors;";if(e.opts.strictKeywords?typeof o=="object"&&Object.keys(o).length>0:e.util.schemaHasRules(o,e.RULES.all)){f.schema=o;f.schemaPath=s;f.errSchemaPath=c;var h="key"+i,v="idx"+i,g="i"+i,y="' + "+h+" + '",b=f.dataLevel=e.dataLevel+1,k="data"+b,x="dataProperties"+i,w=e.opts.ownProperties,j=e.baseId;if(w){a+=" var "+x+" = undefined; "}if(w){a+=" "+x+" = "+x+" || Object.keys("+p+"); for (var "+v+"=0; "+v+"<"+x+".length; "+v+"++) { var "+h+" = "+x+"["+v+"]; "}else{a+=" for (var "+h+" in "+p+") { "}a+=" var startErrs"+i+" = errors; ";var _=h;var S=e.compositeRule;e.compositeRule=f.compositeRule=true;var E=e.validate(f);f.baseId=j;if(e.util.varOccurences(E,k)<2){a+=" "+e.util.varReplace(E,k,_)+" "}else{a+=" var "+k+" = "+_+"; "+E+" "}e.compositeRule=f.compositeRule=S;a+=" if (!"+d+") { for (var "+g+"=startErrs"+i+"; "+g+"-1;return{hostname:r,port:a,hasPort:i}}function uriInNoProxy(e,t){var r=e.port||(e.protocol==="https:"?"443":"80");var a=formatHostname(e.hostname);var i=t.split(",");return i.map(parseNoProxyZone).some(function(e){var t=a.indexOf(e.hostname);var i=t>-1&&t===a.length-e.hostname.length;if(e.hasPort){return r===e.port&&i}return i})}function getProxyFromURI(e){var t=process.env.NO_PROXY||process.env.no_proxy||"";if(t==="*"){return null}if(t!==""&&uriInNoProxy(e,t)){return null}if(e.protocol==="http:"){return process.env.HTTP_PROXY||process.env.http_proxy||null}if(e.protocol==="https:"){return process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy||null}return null}e.exports=getProxyFromURI},function(e){var t=[];for(var r=0;r<256;++r){t[r]=(r+256).toString(16).substr(1)}function bytesToUuid(e,r){var a=r||0;var i=t;return[i[e[a++]],i[e[a++]],i[e[a++]],i[e[a++]],"-",i[e[a++]],i[e[a++]],"-",i[e[a++]],i[e[a++]],"-",i[e[a++]],i[e[a++]],"-",i[e[a++]],i[e[a++]],i[e[a++]],i[e[a++]],i[e[a++]],i[e[a++]]].join("")}e.exports=bytesToUuid},,function(e,t,r){"use strict";e.exports=function(e,t,a){var i=e.PromiseInspection;var n=r(248);function SettledPromiseArray(e){this.constructor$(e)}n.inherits(SettledPromiseArray,t);SettledPromiseArray.prototype._promiseResolved=function(e,t){this._values[e]=t;var r=++this._totalResolved;if(r>=this._length){this._resolve(this._values);return true}return false};SettledPromiseArray.prototype._promiseFulfilled=function(e,t){var r=new i;r._bitField=33554432;r._settledValueField=e;return this._promiseResolved(t,r)};SettledPromiseArray.prototype._promiseRejected=function(e,t){var r=new i;r._bitField=16777216;r._settledValueField=e;return this._promiseResolved(t,r)};e.settle=function(e){a.deprecated(".settle()",".reflect()");return new SettledPromiseArray(e).promise()};e.allSettled=function(e){return new SettledPromiseArray(e).promise()};e.prototype.settle=function(){return e.settle(this)}}},,function(e,t,r){"use strict";var a;try{throw new Error}catch(e){a=e}var i=r(476);var n=r(895);function Async(){this._customScheduler=false;this._isTickUsed=false;this._lateQueue=new n(16);this._normalQueue=new n(16);this._haveDrainedQueues=false;var e=this;this.drainQueues=function(){e._drainQueues()};this._schedule=i}Async.prototype.setScheduler=function(e){var t=this._schedule;this._schedule=e;this._customScheduler=true;return t};Async.prototype.hasCustomScheduler=function(){return this._customScheduler};Async.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues};Async.prototype.fatalError=function(e,t){if(t){process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n");process.exit(2)}else{this.throwLater(e)}};Async.prototype.throwLater=function(e,t){if(arguments.length===1){t=e;e=function(){throw t}}if(typeof setTimeout!=="undefined"){setTimeout(function(){e(t)},0)}else try{this._schedule(function(){e(t)})}catch(e){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}};function AsyncInvokeLater(e,t,r){this._lateQueue.push(e,t,r);this._queueTick()}function AsyncInvoke(e,t,r){this._normalQueue.push(e,t,r);this._queueTick()}function AsyncSettlePromises(e){this._normalQueue._pushOne(e);this._queueTick()}Async.prototype.invokeLater=AsyncInvokeLater;Async.prototype.invoke=AsyncInvoke;Async.prototype.settlePromises=AsyncSettlePromises;function _drainQueue(e){while(e.length()>0){_drainQueueStep(e)}}function _drainQueueStep(e){var t=e.shift();if(typeof t!=="function"){t._settlePromises()}else{var r=e.shift();var a=e.shift();t.call(r,a)}}Async.prototype._drainQueues=function(){_drainQueue(this._normalQueue);this._reset();this._haveDrainedQueues=true;_drainQueue(this._lateQueue)};Async.prototype._queueTick=function(){if(!this._isTickUsed){this._isTickUsed=true;this._schedule(this.drainQueues)}};Async.prototype._reset=function(){this._isTickUsed=false};e.exports=Async;e.exports.firstLineError=a},,,function(e,t,r){var a=r(242).BigInteger;var i=a.prototype.Barrett;function ECFieldElementFp(e,t){this.x=t;this.q=e}function feFpEquals(e){if(e==this)return true;return this.q.equals(e.q)&&this.x.equals(e.x)}function feFpToBigInteger(){return this.x}function feFpNegate(){return new ECFieldElementFp(this.q,this.x.negate().mod(this.q))}function feFpAdd(e){return new ECFieldElementFp(this.q,this.x.add(e.toBigInteger()).mod(this.q))}function feFpSubtract(e){return new ECFieldElementFp(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}function feFpMultiply(e){return new ECFieldElementFp(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}function feFpSquare(){return new ECFieldElementFp(this.q,this.x.square().mod(this.q))}function feFpDivide(e){return new ECFieldElementFp(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}ECFieldElementFp.prototype.equals=feFpEquals;ECFieldElementFp.prototype.toBigInteger=feFpToBigInteger;ECFieldElementFp.prototype.negate=feFpNegate;ECFieldElementFp.prototype.add=feFpAdd;ECFieldElementFp.prototype.subtract=feFpSubtract;ECFieldElementFp.prototype.multiply=feFpMultiply;ECFieldElementFp.prototype.square=feFpSquare;ECFieldElementFp.prototype.divide=feFpDivide;function ECPointFp(e,t,r,i){this.curve=e;this.x=t;this.y=r;if(i==null){this.z=a.ONE}else{this.z=i}this.zinv=null}function pointFpGetX(){if(this.zinv==null){this.zinv=this.z.modInverse(this.curve.q)}var e=this.x.toBigInteger().multiply(this.zinv);this.curve.reduce(e);return this.curve.fromBigInteger(e)}function pointFpGetY(){if(this.zinv==null){this.zinv=this.z.modInverse(this.curve.q)}var e=this.y.toBigInteger().multiply(this.zinv);this.curve.reduce(e);return this.curve.fromBigInteger(e)}function pointFpEquals(e){if(e==this)return true;if(this.isInfinity())return e.isInfinity();if(e.isInfinity())return this.isInfinity();var t,r;t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q);if(!t.equals(a.ZERO))return false;r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);return r.equals(a.ZERO)}function pointFpIsInfinity(){if(this.x==null&&this.y==null)return true;return this.z.equals(a.ZERO)&&!this.y.toBigInteger().equals(a.ZERO)}function pointFpNegate(){return new ECPointFp(this.curve,this.x,this.y.negate(),this.z)}function pointFpAdd(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q);var r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(a.ZERO.equals(r)){if(a.ZERO.equals(t)){return this.twice()}return this.curve.getInfinity()}var i=new a("3");var n=this.x.toBigInteger();var o=this.y.toBigInteger();var s=e.x.toBigInteger();var c=e.y.toBigInteger();var u=r.square();var p=u.multiply(r);var l=n.multiply(u);var f=t.square().multiply(this.z);var m=f.subtract(l.shiftLeft(1)).multiply(e.z).subtract(p).multiply(r).mod(this.curve.q);var d=l.multiply(i).multiply(t).subtract(o.multiply(p)).subtract(f.multiply(t)).multiply(e.z).add(t.multiply(p)).mod(this.curve.q);var h=p.multiply(this.z).multiply(e.z).mod(this.curve.q);return new ECPointFp(this.curve,this.curve.fromBigInteger(m),this.curve.fromBigInteger(d),h)}function pointFpTwice(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var e=new a("3");var t=this.x.toBigInteger();var r=this.y.toBigInteger();var i=r.multiply(this.z);var n=i.multiply(r).mod(this.curve.q);var o=this.curve.a.toBigInteger();var s=t.square().multiply(e);if(!a.ZERO.equals(o)){s=s.add(this.z.square().multiply(o))}s=s.mod(this.curve.q);var c=s.square().subtract(t.shiftLeft(3).multiply(n)).shiftLeft(1).multiply(i).mod(this.curve.q);var u=s.multiply(e).multiply(t).subtract(n.shiftLeft(1)).shiftLeft(2).multiply(n).subtract(s.square().multiply(s)).mod(this.curve.q);var p=i.square().multiply(i).shiftLeft(3).mod(this.curve.q);return new ECPointFp(this.curve,this.curve.fromBigInteger(c),this.curve.fromBigInteger(u),p)}function pointFpMultiply(e){if(this.isInfinity())return this;if(e.signum()==0)return this.curve.getInfinity();var t=e;var r=t.multiply(new a("3"));var i=this.negate();var n=this;var o;for(o=r.bitLength()-2;o>0;--o){n=n.twice();var s=r.testBit(o);var c=t.testBit(o);if(s!=c){n=n.add(s?this:i)}}return n}function pointFpMultiplyTwo(e,t,r){var a;if(e.bitLength()>r.bitLength())a=e.bitLength()-1;else a=r.bitLength()-1;var i=this.curve.getInfinity();var n=this.add(t);while(a>=0){i=i.twice();if(e.testBit(a)){if(r.testBit(a)){i=i.add(n)}else{i=i.add(this)}}else{if(r.testBit(a)){i=i.add(t)}}--a}return i}ECPointFp.prototype.getX=pointFpGetX;ECPointFp.prototype.getY=pointFpGetY;ECPointFp.prototype.equals=pointFpEquals;ECPointFp.prototype.isInfinity=pointFpIsInfinity;ECPointFp.prototype.negate=pointFpNegate;ECPointFp.prototype.add=pointFpAdd;ECPointFp.prototype.twice=pointFpTwice;ECPointFp.prototype.multiply=pointFpMultiply;ECPointFp.prototype.multiplyTwo=pointFpMultiplyTwo;function ECCurveFp(e,t,r){this.q=e;this.a=this.fromBigInteger(t);this.b=this.fromBigInteger(r);this.infinity=new ECPointFp(this,null,null);this.reducer=new i(this.q)}function curveFpGetQ(){return this.q}function curveFpGetA(){return this.a}function curveFpGetB(){return this.b}function curveFpEquals(e){if(e==this)return true;return this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}function curveFpGetInfinity(){return this.infinity}function curveFpFromBigInteger(e){return new ECFieldElementFp(this.q,e)}function curveReduce(e){this.reducer.reduce(e)}function curveFpDecodePointHex(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var t=(e.length-2)/2;var r=e.substr(2,t);var i=e.substr(t+2,t);return new ECPointFp(this,this.fromBigInteger(new a(r,16)),this.fromBigInteger(new a(i,16)));default:return null}}function curveFpEncodePointHex(e){if(e.isInfinity())return"00";var t=e.getX().toBigInteger().toString(16);var r=e.getY().toBigInteger().toString(16);var a=this.getQ().toString(16).length;if(a%2!=0)a++;while(t.length128){var t=this.q.shiftRight(e-64);if(t.intValue()==-1){this.r=a.ONE.shiftLeft(e).subtract(this.q)}}return this.r};ECFieldElementFp.prototype.modMult=function(e,t){return this.modReduce(e.multiply(t))};ECFieldElementFp.prototype.modReduce=function(e){if(this.getR()!=null){var t=q.bitLength();while(e.bitLength()>t+1){var r=e.shiftRight(t);var i=e.subtract(r.shiftLeft(t));if(!this.getR().equals(a.ONE)){r=r.multiply(this.getR())}e=r.add(i)}while(e.compareTo(q)>=0){e=e.subtract(q)}}else{e=e.mod(q)}return e};ECFieldElementFp.prototype.sqrt=function(){if(!this.q.testBit(0))throw"unsupported";if(this.q.testBit(1)){var e=new ECFieldElementFp(this.q,this.x.modPow(this.q.shiftRight(2).add(a.ONE),this.q));return e.square().equals(this)?e:null}var t=this.q.subtract(a.ONE);var r=t.shiftRight(1);if(!this.x.modPow(r,this.q).equals(a.ONE)){return null}var i=t.shiftRight(2);var n=i.shiftLeft(1).add(a.ONE);var o=this.x;var s=modDouble(modDouble(o));var c,u;do{var p;do{p=new a(this.q.bitLength(),new SecureRandom)}while(p.compareTo(this.q)>=0||!p.multiply(p).subtract(s).modPow(r,this.q).equals(t));var l=this.lucasSequence(p,o,n);c=l[0];u=l[1];if(this.modMult(u,u).equals(s)){if(u.testBit(0)){u=u.add(q)}u=u.shiftRight(1);return new ECFieldElementFp(q,u)}}while(c.equals(a.ONE)||c.equals(t));return null};ECFieldElementFp.prototype.lucasSequence=function(e,t,r){var i=r.bitLength();var n=r.getLowestSetBit();var o=a.ONE;var s=a.TWO;var c=e;var u=a.ONE;var p=a.ONE;for(var l=i-1;l>=n+1;--l){u=this.modMult(u,p);if(r.testBit(l)){p=this.modMult(u,t);o=this.modMult(o,c);s=this.modReduce(c.multiply(s).subtract(e.multiply(u)));c=this.modReduce(c.multiply(c).subtract(p.shiftLeft(1)))}else{p=u;o=this.modReduce(o.multiply(s).subtract(u));c=this.modReduce(c.multiply(s).subtract(e.multiply(u)));s=this.modReduce(s.multiply(s).subtract(u.shiftLeft(1)))}}u=this.modMult(u,p);p=this.modMult(u,t);o=this.modReduce(o.multiply(s).subtract(u));s=this.modReduce(c.multiply(s).subtract(e.multiply(u)));u=this.modMult(u,p);for(var l=1;l<=n;++l){o=this.modMult(o,s);s=this.modReduce(s.multiply(s).subtract(u.shiftLeft(1)));u=this.modMult(u,u)}return[o,s]};var n={ECCurveFp:ECCurveFp,ECPointFp:ECPointFp,ECFieldElementFp:ECFieldElementFp};e.exports=n},,,,function(e){"use strict";e.exports=function(e){function returner(){return this.value}function thrower(){throw this.reason}e.prototype["return"]=e.prototype.thenReturn=function(t){if(t instanceof e)t.suppressUnhandledRejections();return this._then(returner,undefined,undefined,{value:t},undefined)};e.prototype["throw"]=e.prototype.thenThrow=function(e){return this._then(thrower,undefined,undefined,{reason:e},undefined)};e.prototype.catchThrow=function(e){if(arguments.length<=1){return this._then(undefined,thrower,undefined,{reason:e},undefined)}else{var t=arguments[1];var r=function(){throw t};return this.caught(e,r)}};e.prototype.catchReturn=function(t){if(arguments.length<=1){if(t instanceof e)t.suppressUnhandledRejections();return this._then(undefined,returner,undefined,{value:t},undefined)}else{var r=arguments[1];if(r instanceof e)r.suppressUnhandledRejections();var a=function(){return r};return this.caught(t,a)}}}},,,,,,function(e,t,r){"use strict";var a=r(353);e.exports=Function.prototype.bind||a},function(e){e.exports={$id:"postData.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",optional:true,required:["mimeType"],properties:{mimeType:{type:"string"},text:{type:"string"},params:{type:"array",required:["name"],properties:{name:{type:"string"},value:{type:"string"},fileName:{type:"string"},contentType:{type:"string"},comment:{type:"string"}}},comment:{type:"string"}}}},function(e){"use strict";e.exports=function(e,t){if(!t)t={};if(typeof t==="function")t={cmp:t};var r=typeof t.cycles==="boolean"?t.cycles:false;var a=t.cmp&&function(e){return function(t){return function(r,a){var i={key:r,value:t[r]};var n={key:a,value:t[a]};return e(i,n)}}}(t.cmp);var i=[];return function stringify(e){if(e&&e.toJSON&&typeof e.toJSON==="function"){e=e.toJSON()}if(e===undefined)return;if(typeof e=="number")return isFinite(e)?""+e:"null";if(typeof e!=="object")return JSON.stringify(e);var t,n;if(Array.isArray(e)){n="[";for(t=0;t255){return"DOMAIN_TOO_LONG"}var r=t.split(".");var i;for(var n=0;n63){return"LABEL_TOO_LONG"}if(i.charAt(0)==="-"){return"LABEL_STARTS_WITH_DASH"}if(i.charAt(i.length-1)==="-"){return"LABEL_ENDS_WITH_DASH"}if(!/^[a-z0-9\-]+$/.test(i)){return"LABEL_INVALID_CHARS"}}};t.parse=function(e){if(typeof e!=="string"){throw new TypeError("Domain name must be a string.")}var r=e.slice(0).toLowerCase();if(r.charAt(r.length-1)==="."){r=r.slice(0,r.length-1)}var n=i.validate(r);if(n){return{input:e,error:{message:t.errorCodes[n],code:n}}}var o={input:e,tld:null,sld:null,domain:null,subdomain:null,listed:false};var s=r.split(".");if(s[s.length-1]==="local"){return o}var c=function(){if(!/xn--/.test(r)){return o}if(o.domain){o.domain=a.toASCII(o.domain)}if(o.subdomain){o.subdomain=a.toASCII(o.subdomain)}return o};var u=i.findRule(r);if(!u){if(s.length<2){return o}o.tld=s.pop();o.sld=s.pop();o.domain=[o.sld,o.tld].join(".");if(s.length){o.subdomain=s.pop()}return c()}o.listed=true;var p=u.suffix.split(".");var l=s.slice(0,s.length-p.length);if(u.exception){l.push(p.shift())}o.tld=p.join(".");if(!l.length){return c()}if(u.wildcard){p.unshift(l.pop());o.tld=p.join(".")}if(!l.length){return c()}o.sld=l.pop();o.domain=[o.sld,o.tld].join(".");if(l.length){o.subdomain=l.join(".")}return c()};t.get=function(e){if(!e){return null}return t.parse(e).domain||null};t.isValid=function(e){var r=t.parse(e);return Boolean(r.domain&&r.listed)}},function(e,t,r){var a=r(500);e.exports=async;function async(e){var t=false;a(function(){t=true});return function async_callback(r,i){if(t){e(r,i)}else{a(function nextTick_callback(){e(r,i)})}}}},function(e,t,r){e.exports=Certificate;var a=r(477);var i=r(215).Buffer;var n=r(98);var o=r(417);var s=r(400);var c=r(90);var u=r(753);var p=r(669);var l=r(270);var f=r(852);var m=r(502);var d=r(378);var h={};h["openssh"]=r(893);h["x509"]=r(919);h["pem"]=r(680);var v=u.CertificateParseError;var g=u.InvalidAlgorithmError;function Certificate(e){a.object(e,"options");a.arrayOfObject(e.subjects,"options.subjects");l.assertCompatible(e.subjects[0],d,[1,0],"options.subjects");l.assertCompatible(e.subjectKey,f,[1,0],"options.subjectKey");l.assertCompatible(e.issuer,d,[1,0],"options.issuer");if(e.issuerKey!==undefined){l.assertCompatible(e.issuerKey,f,[1,0],"options.issuerKey")}a.object(e.signatures,"options.signatures");a.buffer(e.serial,"options.serial");a.date(e.validFrom,"options.validFrom");a.date(e.validUntil,"optons.validUntil");a.optionalArrayOfString(e.purposes,"options.purposes");this._hashCache={};this.subjects=e.subjects;this.issuer=e.issuer;this.subjectKey=e.subjectKey;this.issuerKey=e.issuerKey;this.signatures=e.signatures;this.serial=e.serial;this.validFrom=e.validFrom;this.validUntil=e.validUntil;this.purposes=e.purposes}Certificate.formats=h;Certificate.prototype.toBuffer=function(e,t){if(e===undefined)e="x509";a.string(e,"format");a.object(h[e],"formats[format]");a.optionalObject(t,"options");return h[e].write(this,t)};Certificate.prototype.toString=function(e,t){if(e===undefined)e="pem";return this.toBuffer(e,t).toString()};Certificate.prototype.fingerprint=function(e){if(e===undefined)e="sha256";a.string(e,"algorithm");var t={type:"certificate",hash:this.hash(e),algorithm:e};return new s(t)};Certificate.prototype.hash=function(e){a.string(e,"algorithm");e=e.toLowerCase();if(n.hashAlgs[e]===undefined)throw new g(e);if(this._hashCache[e])return this._hashCache[e];var t=o.createHash(e).update(this.toBuffer("x509")).digest();this._hashCache[e]=t;return t};Certificate.prototype.isExpired=function(e){if(e===undefined)e=new Date;return!(e.getTime()>=this.validFrom.getTime()&&e.getTime()0&&this.issuer.purposes.indexOf("ca")===-1){return false}return this.isSignedByKey(e.subjectKey)};Certificate.prototype.getExtension=function(e){a.string(e,"keyOrOid");var t=this.getExtensions().filter(function(t){if(t.format==="x509")return t.oid===e;if(t.format==="openssh")return t.name===e;return false})[0];return t};Certificate.prototype.getExtensions=function(){var e=[];var t=this.signatures.x509;if(t&&t.extras&&t.extras.exts){t.extras.exts.forEach(function(t){t.format="x509";e.push(t)})}var r=this.signatures.openssh;if(r&&r.exts){r.exts.forEach(function(t){t.format="openssh";e.push(t)})}return e};Certificate.prototype.isSignedByKey=function(e){l.assertCompatible(e,f,[1,2],"issuerKey");if(this.issuerKey!==undefined){return this.issuerKey.fingerprint("sha512").matches(e)}var t=Object.keys(this.signatures)[0];var r=h[t].verify(this,e);if(r)this.issuerKey=e;return r};Certificate.prototype.signWith=function(e){l.assertCompatible(e,m,[1,2],"key");var t=Object.keys(h);var r=false;for(var a=0;a0){if(p.indexOf("serverAuth")===-1)p.push("serverAuth")}if(h.length>0){if(p.indexOf("clientAuth")===-1)p.push("clientAuth")}if(h.length>0||f.length>0){if(p.indexOf("keyAgreement")===-1)p.push("keyAgreement");if(t.type==="rsa"&&p.indexOf("encryption")===-1)p.push("encryption")}}var v=new Certificate({subjects:n,issuer:n[0],subjectKey:t.toPublic(),issuerKey:t.toPublic(),signatures:{},serial:u,validFrom:o,validUntil:s,purposes:p});v.signWith(t);return v};Certificate.create=function(e,t,r,n,o){var s;if(Array.isArray(e))s=e;else s=[e];a.arrayOfObject(s);s.forEach(function(e){l.assertCompatible(e,d,[1,0],"subject")});l.assertCompatible(t,f,[1,0],"key");if(m.isPrivateKey(t))t=t.toPublic();l.assertCompatible(r,d,[1,0],"issuer");l.assertCompatible(n,m,[1,2],"issuer key");a.optionalObject(o,"options");if(o===undefined)o={};a.optionalObject(o.validFrom,"options.validFrom");a.optionalObject(o.validUntil,"options.validUntil");var c=o.validFrom;var u=o.validUntil;if(c===undefined)c=new Date;if(u===undefined){a.optionalNumber(o.lifetime,"options.lifetime");var p=o.lifetime;if(p===undefined)p=10*365*24*3600;u=new Date;u.setTime(u.getTime()+p*1e3)}a.optionalBuffer(o.serial,"options.serial");var h=o.serial;if(h===undefined)h=i.from("0000000000000001","hex");var v=o.purposes;if(v===undefined)v=[];if(v.indexOf("signature")===-1)v.push("signature");if(o.ca===true){if(v.indexOf("ca")===-1)v.push("ca");if(v.indexOf("crl")===-1)v.push("crl")}var g=s.filter(function(e){return e.type==="host"});var y=s.filter(function(e){return e.type==="user"});if(g.length>0){if(v.indexOf("serverAuth")===-1)v.push("serverAuth")}if(y.length>0){if(v.indexOf("clientAuth")===-1)v.push("clientAuth")}if(y.length>0||g.length>0){if(v.indexOf("keyAgreement")===-1)v.push("keyAgreement");if(t.type==="rsa"&&v.indexOf("encryption")===-1)v.push("encryption")}var b=new Certificate({subjects:s,issuer:r,subjectKey:t,issuerKey:n.toPublic(),signatures:{},serial:h,validFrom:c,validUntil:u,purposes:v});b.signWith(n);return b};Certificate.parse=function(e,t,r){if(typeof e!=="string")a.buffer(e,"data");if(t===undefined)t="auto";a.string(t,"format");if(typeof r==="string")r={filename:r};a.optionalObject(r,"options");if(r===undefined)r={};a.optionalString(r.filename,"options.filename");if(r.filename===undefined)r.filename="(unnamed)";a.object(h[t],"formats[format]");try{var i=h[t].read(e,r);return i}catch(e){throw new v(r.filename,t,e)}};Certificate.isCertificate=function(e,t){return l.isCompatible(e,Certificate,t)};Certificate.prototype._sshpkApiVersion=[1,1];Certificate._oldVersionDetect=function(e){return[1,0]}},function(e,t,r){var a=r(477);var i=r(669);function FingerprintFormatError(e,t){if(Error.captureStackTrace)Error.captureStackTrace(this,FingerprintFormatError);this.name="FingerprintFormatError";this.fingerprint=e;this.format=t;this.message="Fingerprint format is not supported, or is invalid: ";if(e!==undefined)this.message+=" fingerprint = "+e;if(t!==undefined)this.message+=" format = "+t}i.inherits(FingerprintFormatError,Error);function InvalidAlgorithmError(e){if(Error.captureStackTrace)Error.captureStackTrace(this,InvalidAlgorithmError);this.name="InvalidAlgorithmError";this.algorithm=e;this.message='Algorithm "'+e+'" is not supported'}i.inherits(InvalidAlgorithmError,Error);function KeyParseError(e,t,r){if(Error.captureStackTrace)Error.captureStackTrace(this,KeyParseError);this.name="KeyParseError";this.format=t;this.keyName=e;this.innerErr=r;this.message="Failed to parse "+e+" as a valid "+t+" format key: "+r.message}i.inherits(KeyParseError,Error);function SignatureParseError(e,t,r){if(Error.captureStackTrace)Error.captureStackTrace(this,SignatureParseError);this.name="SignatureParseError";this.type=e;this.format=t;this.innerErr=r;this.message="Failed to parse the given data as a "+e+" signature in "+t+" format: "+r.message}i.inherits(SignatureParseError,Error);function CertificateParseError(e,t,r){if(Error.captureStackTrace)Error.captureStackTrace(this,CertificateParseError);this.name="CertificateParseError";this.format=t;this.certName=e;this.innerErr=r;this.message="Failed to parse "+e+" as a valid "+t+" format certificate: "+r.message}i.inherits(CertificateParseError,Error);function KeyEncryptedError(e,t){if(Error.captureStackTrace)Error.captureStackTrace(this,KeyEncryptedError);this.name="KeyEncryptedError";this.format=t;this.keyName=e;this.message="The "+t+" format key "+e+" is "+"encrypted (password-protected), and no passphrase was "+"provided in `options`"}i.inherits(KeyEncryptedError,Error);e.exports={FingerprintFormatError:FingerprintFormatError,InvalidAlgorithmError:InvalidAlgorithmError,KeyParseError:KeyParseError,SignatureParseError:SignatureParseError,KeyEncryptedError:KeyEncryptedError,CertificateParseError:CertificateParseError}},,function(e){"use strict";e.exports=function(e,t,r,a){var i=false;var n=function(e,t){this._reject(t)};var o=function(e,t){t.promiseRejectionQueued=true;t.bindingPromise._then(n,n,null,this,e)};var s=function(e,t){if((this._bitField&50397184)===0){this._resolveCallback(t.target)}};var c=function(e,t){if(!t.promiseRejectionQueued)this._reject(e)};e.prototype.bind=function(n){if(!i){i=true;e.prototype._propagateFrom=a.propagateFromFunction();e.prototype._boundValue=a.boundValueFunction()}var u=r(n);var p=new e(t);p._propagateFrom(this,1);var l=this._target();p._setBoundTo(u);if(u instanceof e){var f={promiseRejectionQueued:false,promise:p,target:l,bindingPromise:u};l._then(t,o,undefined,p,f);u._then(s,c,undefined,p,f);p._setOnCancel(u)}else{p._resolveCallback(l)}return p};e.prototype._setBoundTo=function(e){if(e!==undefined){this._bitField=this._bitField|2097152;this._boundTo=e}else{this._bitField=this._bitField&~2097152}};e.prototype._isBound=function(){return(this._bitField&2097152)===2097152};e.bind=function(t,r){return e.resolve(r).bind(t)}}},function(e){"use strict";e.exports=Number.isNaN||function isNaN(e){return e!==e}},,function(e){e.exports={$id:"timings.json#",$schema:"http://json-schema.org/draft-06/schema#",required:["send","wait","receive"],properties:{dns:{type:"number",min:-1},connect:{type:"number",min:-1},blocked:{type:"number",min:-1},send:{type:"number",min:-1},wait:{type:"number",min:-1},receive:{type:"number",min:-1},ssl:{type:"number",min:-1},comment:{type:"string"}}}},,,function(e){var t=1e3;var r=t*60;var a=r*60;var i=a*24;var n=i*7;var o=i*365.25;e.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0){return parse(e)}else if(r==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!s){return}var c=parseFloat(s[1]);var u=(s[2]||"ms").toLowerCase();switch(u){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*n;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*a;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return undefined}}function fmtShort(e){var n=Math.abs(e);if(n>=i){return Math.round(e/i)+"d"}if(n>=a){return Math.round(e/a)+"h"}if(n>=r){return Math.round(e/r)+"m"}if(n>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var n=Math.abs(e);if(n>=i){return plural(e,n,i,"day")}if(n>=a){return plural(e,n,a,"hour")}if(n>=r){return plural(e,n,r,"minute")}if(n>=t){return plural(e,n,t,"second")}return e+" ms"}function plural(e,t,r,a){var i=t>=r*1.5;return Math.round(e/r)+" "+a+(i?"s":"")}},,,,,,,,,,,function(e){"use strict";e.exports=function generate__limitLength(e,t,r){var a=" ";var i=e.level;var n=e.dataLevel;var o=e.schema[t];var s=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var p;var l="data"+(n||"");var f=e.opts.$data&&o&&o.$data,m;if(f){a+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ";m="schema"+i}else{m=o}if(!(f||typeof o=="number")){throw new Error(t+" must be number")}var d=t=="maxLength"?">":"<";a+="if ( ";if(f){a+=" ("+m+" !== undefined && typeof "+m+" != 'number') || "}if(e.opts.unicode===false){a+=" "+l+".length "}else{a+=" ucs2length("+l+") "}a+=" "+d+" "+m+") { ";var p=t;var h=h||[];h.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+(p||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { limit: "+m+" } ";if(e.opts.messages!==false){a+=" , message: 'should NOT be ";if(t=="maxLength"){a+="longer"}else{a+="shorter"}a+=" than ";if(f){a+="' + "+m+" + '"}else{a+=""+o}a+=" characters' "}if(e.opts.verbose){a+=" , schema: ";if(f){a+="validate.schema"+s}else{a+=""+o}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+l+" "}a+=" } "}else{a+=" {} "}var v=a;a=h.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+v+"]); "}else{a+=" validate.errors = ["+v+"]; return false; "}}else{a+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+="} ";if(u){a+=" else { "}return a}},,function(e){"use strict";e.exports=function sign(e){return e>=0?1:-1}},,function(e){e.exports={$id:"creator.json#",$schema:"http://json-schema.org/draft-06/schema#",type:"object",required:["name","version"],properties:{name:{type:"string"},version:{type:"string"},comment:{type:"string"}}}},,,function(e,t,r){"use strict";var a=r(972);var i=r(622).extname;var n=/^\s*([^;\s]*)(?:;|\s|$)/;var o=/^text\//i;t.charset=charset;t.charsets={lookup:charset};t.contentType=contentType;t.extension=extension;t.extensions=Object.create(null);t.lookup=lookup;t.types=Object.create(null);populateMaps(t.extensions,t.types);function charset(e){if(!e||typeof e!=="string"){return false}var t=n.exec(e);var r=t&&a[t[1].toLowerCase()];if(r&&r.charset){return r.charset}if(t&&o.test(t[1])){return"UTF-8"}return false}function contentType(e){if(!e||typeof e!=="string"){return false}var r=e.indexOf("/")===-1?t.lookup(e):e;if(!r){return false}if(r.indexOf("charset")===-1){var a=t.charset(r);if(a)r+="; charset="+a.toLowerCase()}return r}function extension(e){if(!e||typeof e!=="string"){return false}var r=n.exec(e);var a=r&&t.extensions[r[1].toLowerCase()];if(!a||!a.length){return false}return a[0]}function lookup(e){if(!e||typeof e!=="string"){return false}var r=i("x."+e).toLowerCase().substr(1);if(!r){return false}return t.types[r]||false}function populateMaps(e,t){var r=["nginx","apache",undefined,"iana"];Object.keys(a).forEach(function forEachMimeType(i){var n=a[i];var o=n.extensions;if(!o||!o.length){return}e[i]=o;for(var s=0;sp||u===p&&t[c].substr(0,12)==="application/")){continue}}t[c]=i}})}},function(e,t,r){"use strict";e.exports=function(e,t,a,i,n,o){var s=r(248);var c=r(607).TypeError;var u=r(248).inherits;var p=s.errorObj;var l=s.tryCatch;var f={};function thrower(e){setTimeout(function(){throw e},0)}function castPreservingDisposable(e){var t=a(e);if(t!==e&&typeof e._isDisposable==="function"&&typeof e._getDisposer==="function"&&e._isDisposable()){t._setDisposable(e._getDisposer())}return t}function dispose(t,r){var i=0;var o=t.length;var s=new e(n);function iterator(){if(i>=o)return s._fulfill();var n=castPreservingDisposable(t[i++]);if(n instanceof e&&n._isDisposable()){try{n=a(n._getDisposer().tryDispose(r),t.promise)}catch(e){return thrower(e)}if(n instanceof e){return n._then(iterator,thrower,null,null,null)}}iterator()}iterator();return s}function Disposer(e,t,r){this._data=e;this._promise=t;this._context=r}Disposer.prototype.data=function(){return this._data};Disposer.prototype.promise=function(){return this._promise};Disposer.prototype.resource=function(){if(this.promise().isFulfilled()){return this.promise().value()}return f};Disposer.prototype.tryDispose=function(e){var t=this.resource();var r=this._context;if(r!==undefined)r._pushContext();var a=t!==f?this.doDispose(t,e):null;if(r!==undefined)r._popContext();this._promise._unsetDisposable();this._data=null;return a};Disposer.isDisposer=function(e){return e!=null&&typeof e.resource==="function"&&typeof e.tryDispose==="function"};function FunctionDisposer(e,t,r){this.constructor$(e,t,r)}u(FunctionDisposer,Disposer);FunctionDisposer.prototype.doDispose=function(e,t){var r=this.data();return r.call(e,e,t)};function maybeUnwrapDisposer(e){if(Disposer.isDisposer(e)){this.resources[this.index]._setDisposable(e);return e.promise()}return e}function ResourceList(e){this.length=e;this.promise=null;this[e-1]=null}ResourceList.prototype._resultCancelled=function(){var t=this.length;for(var r=0;r0};e.prototype._getDisposer=function(){return this._disposer};e.prototype._unsetDisposable=function(){this._bitField=this._bitField&~131072;this._disposer=undefined};e.prototype.disposer=function(e){if(typeof e==="function"){return new FunctionDisposer(e,this,i())}throw new c}}},,,,function(e,t,r){"use strict";if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=r(794)}else{e.exports=r(81)}},,function(e,t,r){"use strict";var a=Array.prototype.slice;var i=r(866);var n=Object.keys;var o=n?function keys(e){return n(e)}:r(23);var s=Object.keys;o.shim=function shimObjectKeys(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);if(!e){Object.keys=function keys(e){if(i(e)){return s(a.call(e))}return s(e)}}}else{Object.keys=o}return Object.keys||o};e.exports=o},,,function(e,t,r){var a=r(342);var i=r(64);var n=r(428);var o=r(909);e.exports={parse:a.parseRequest,parseRequest:a.parseRequest,sign:i.signRequest,signRequest:i.signRequest,createSigner:i.createSigner,isSigner:i.isSigner,sshKeyToPEM:o.sshKeyToPEM,sshKeyFingerprint:o.fingerprint,pemToRsaSSHKey:o.pemToRsaSSHKey,verify:n.verifySignature,verifySignature:n.verifySignature,verifyHMAC:n.verifyHMAC}},,,function(e,t,r){e.exports=ForeverAgent;ForeverAgent.SSL=ForeverAgentSSL;var a=r(669),i=r(605).Agent,n=r(937),o=r(818),s=r(211).Agent;function getConnectionName(e,t){var r="";if(typeof e==="string"){r=e+":"+t}else{r=e.host+":"+e.port+":"+(e.localAddress?e.localAddress+":":":")}return r}function ForeverAgent(e){var t=this;t.options=e||{};t.requests={};t.sockets={};t.freeSockets={};t.maxSockets=t.options.maxSockets||i.defaultMaxSockets;t.minSockets=t.options.minSockets||ForeverAgent.defaultMinSockets;t.on("free",function(e,r,a){var i=getConnectionName(r,a);if(t.requests[i]&&t.requests[i].length){t.requests[i].shift().onSocket(e)}else if(t.sockets[i].length0&&!e.useChunkedEncodingByDefault){var n=this.freeSockets[a].pop();n.removeListener("error",n._onIdleError);delete n._onIdleError;e._reusedSocket=true;e.onSocket(n)}else{this.addRequestNoreuse(e,t,r)}};ForeverAgent.prototype.removeSocket=function(e,t,r,a){if(this.sockets[t]){var i=this.sockets[t].indexOf(e);if(i!==-1){this.sockets[t].splice(i,1)}}else if(this.sockets[t]&&this.sockets[t].length===0){delete this.sockets[t];delete this.requests[t]}if(this.freeSockets[t]){var i=this.freeSockets[t].indexOf(e);if(i!==-1){this.freeSockets[t].splice(i,1);if(this.freeSockets[t].length===0){delete this.freeSockets[t]}}}if(this.requests[t]&&this.requests[t].length){this.createSocket(t,r,a).emit("free")}};function ForeverAgentSSL(e){ForeverAgent.call(this,e)}a.inherits(ForeverAgentSSL,ForeverAgent);ForeverAgentSSL.prototype.createConnection=createConnectionSSL;ForeverAgentSSL.prototype.addRequestNoreuse=s.prototype.addRequest;function createConnectionSSL(e,t,r){if(typeof e==="object"){r=e}else if(typeof t==="object"){r=t}else if(typeof r==="object"){r=r}else{r={}}if(typeof e==="number"){r.port=e}if(typeof t==="string"){r.host=t}return o.connect(r)}},,function(e,t,r){"use strict";function _typeof(e){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(e){return typeof e}}else{_typeof=function _typeof(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return _typeof(e)}t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var a=0;var i=0;t[0].replace(/%[a-zA-Z%]/g,function(e){if(e==="%%"){return}a++;if(e==="%c"){i=a}});t.splice(i,0,r)}function log(){var e;return(typeof console==="undefined"?"undefined":_typeof(console))==="object"&&console.log&&(e=console).log.apply(e,arguments)}function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){var e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=r(486)(t);var a=e.exports.formatters;a.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e){"use strict";e.exports=function isPrimitive(e){return e===null||typeof e!=="function"&&typeof e!=="object"}},,,,,,,function(e,t,r){e.exports={read:read,write:write};var a=r(477);var i=r(215).Buffer;var n=r(538);var o=r(852);var s=r(753);function read(e,t){var r=e.toString("ascii").split(/[\r\n]+/);var o=false;var s;var c=0;while(cr.length){throw new Error("Invalid public-lines count")}var f=i.from(r.slice(c,c+l).join(""),"base64");var m=n.algToKeyType(u);var d=n.read(f);if(d.type!==m){throw new Error("Outer key algorithm mismatch")}d.comment=p;return d}function splitHeader(e){var t=e.indexOf(":");if(t===-1)return null;var r=e.slice(0,t);++t;while(e[t]===" ")++t;var a=e.slice(t);return[r,a]}function write(e,t){a.object(e);if(!o.isKey(e))throw new Error("Must be a public key");var r=n.keyTypeToAlg(e);var s=n.write(e);var c=e.comment||"";var u=s.toString("base64");var p=wrap(u,64);p.unshift("Public-Lines: "+p.length);p.unshift("Comment: "+c);p.unshift("Encryption: none");p.unshift("PuTTY-User-Key-File-2: "+r);return i.from(p.join("\n")+"\n")}function wrap(e,t){var r=[];var a=0;while(a=0)return{index:a,compiling:true};a=this._compilations.length;this._compilations[a]={schema:e,root:t,baseId:r};return{index:a,compiling:false}}function endCompiling(e,t,r){var a=compIndex.call(this,e,t,r);if(a>=0)this._compilations.splice(a,1)}function compIndex(e,t,r){for(var a=0;a0&&typeof arguments[r]==="function"){n=arguments[r];if(true){if(r<=8&&s){var c=new e(i);c._captureStackTrace();var u=d[r-1];var l=new u(n);var f=h;for(var m=0;m=this._length){var a;if(this._isMap){a=p(this._values)}else{a={};var i=this.length();for(var n=0,o=this.length();n>1};function props(t){var r;var n=a(t);if(!o(n)){return i("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}else if(n instanceof e){r=n._then(e.props,undefined,undefined,undefined,undefined)}else{r=new PropertiesPromiseArray(n).promise()}if(n instanceof e){r._propagateFrom(n,2)}return r}e.prototype.props=function(){return props(this)};e.props=function(e){return props(e)}}},,,function(e,t,r){e.exports=Key;var a=r(477);var i=r(98);var n=r(417);var o=r(400);var s=r(90);var c=r(290).DiffieHellman;var u=r(753);var p=r(270);var l=r(502);var f;try{f=r(1)}catch(e){}var m=u.InvalidAlgorithmError;var d=u.KeyParseError;var h={};h["auto"]=r(599);h["pem"]=r(268);h["pkcs1"]=r(449);h["pkcs8"]=r(707);h["rfc4253"]=r(538);h["ssh"]=r(603);h["ssh-private"]=r(78);h["openssh"]=h["ssh-private"];h["dnssec"]=r(299);h["putty"]=r(802);h["ppk"]=h["putty"];function Key(e){a.object(e,"options");a.arrayOfObject(e.parts,"options.parts");a.string(e.type,"options.type");a.optionalString(e.comment,"options.comment");var t=i.info[e.type];if(typeof t!=="object")throw new m(e.type);var r={};for(var n=0;n1024)e="sha256";if(this.type==="ed25519")e="sha512";if(this.type==="ecdsa"){if(this.size<=256)e="sha256";else if(this.size<=384)e="sha384";else e="sha512"}return e};Key.prototype.createVerify=function(e){if(e===undefined)e=this.defaultHashAlgorithm();a.string(e,"hash algorithm");if(this.type==="ed25519"&&f!==undefined)return new f.Verifier(this,e);if(this.type==="curve25519")throw new Error("Curve25519 keys are not suitable for "+"signing or verification");var t,r,i;try{r=e.toUpperCase();t=n.createVerify(r)}catch(e){i=e}if(t===undefined||i instanceof Error&&i.message.match(/Unknown message digest/)){r="RSA-";r+=e.toUpperCase();t=n.createVerify(r)}a.ok(t,"failed to create verifier");var o=t.verify.bind(t);var c=this.toBuffer("pkcs8");var u=this.curve;var p=this;t.verify=function(t,r){if(s.isSignature(t,[2,0])){if(t.type!==p.type)return false;if(t.hashAlgorithm&&t.hashAlgorithm!==e)return false;if(t.curve&&p.type==="ecdsa"&&t.curve!==u)return false;return o(c,t.toBuffer("asn1"))}else if(typeof t==="string"||Buffer.isBuffer(t)){return o(c,t,r)}else if(s.isSignature(t,[1,0])){throw new Error("signature was created by too old "+"a version of sshpk and cannot be verified")}else{throw new TypeError("signature must be a string, "+"Buffer, or Signature object")}};return t};Key.prototype.createDiffieHellman=function(){if(this.type==="rsa")throw new Error("RSA keys do not support Diffie-Hellman");return new c(this)};Key.prototype.createDH=Key.prototype.createDiffieHellman;Key.parse=function(e,t,r){if(typeof e!=="string")a.buffer(e,"data");if(t===undefined)t="auto";a.string(t,"format");if(typeof r==="string")r={filename:r};a.optionalObject(r,"options");if(r===undefined)r={};a.optionalString(r.filename,"options.filename");if(r.filename===undefined)r.filename="(unnamed)";a.object(h[t],"formats[format]");try{var i=h[t].read(e,r);if(i instanceof l)i=i.toPublic();if(!i.comment)i.comment=r.filename;return i}catch(e){if(e.name==="KeyEncryptedError")throw e;throw new d(r.filename,t,e)}};Key.isKey=function(e,t){return p.isCompatible(e,Key,t)};Key.prototype._sshpkApiVersion=[1,7];Key._oldVersionDetect=function(e){a.func(e.toBuffer);a.func(e.fingerprint);if(e.createDH)return[1,4];if(e.defaultHashAlgorithm)return[1,3];if(e.formats["auto"])return[1,2];if(e.formats["pkcs1"])return[1,1];return[1,0]}},function(e,t){(function(e,r){true?r(t):undefined})(this,function(e){"use strict";function merge(){for(var e=arguments.length,t=Array(e),r=0;r1){t[0]=t[0].slice(0,-1);var a=t.length-1;for(var i=1;i= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var y=o-s;var b=Math.floor;var k=String.fromCharCode;function error$1(e){throw new RangeError(g[e])}function map(e,t){var r=[];var a=e.length;while(a--){r[a]=t(e[a])}return r}function mapDomain(e,t){var r=e.split("@");var a="";if(r.length>1){a=r[0]+"@";e=r[1]}e=e.replace(v,".");var i=e.split(".");var n=map(i,t).join(".");return a+n}function ucs2decode(e){var t=[];var r=0;var a=e.length;while(r=55296&&i<=56319&&r>1;e+=b(e/t);for(;e>y*c>>1;a+=o){e=b(e/y)}return b(a+(y+1)*e/(e+u))};var S=function decode(e){var t=[];var r=e.length;var a=0;var i=f;var u=l;var p=e.lastIndexOf(m);if(p<0){p=0}for(var d=0;d=128){error$1("not-basic")}t.push(e.charCodeAt(d))}for(var h=p>0?p+1:0;h=r){error$1("invalid-input")}var k=w(e.charCodeAt(h++));if(k>=o||k>b((n-a)/g)){error$1("overflow")}a+=k*g;var x=y<=u?s:y>=u+c?c:y-u;if(kb(n/j)){error$1("overflow")}g*=j}var S=t.length+1;u=_(a-v,S,v==0);if(b(a/S)>n-i){error$1("overflow")}i+=b(a/S);a%=S;t.splice(a++,0,i)}return String.fromCodePoint.apply(String,t)};var E=function encode(e){var t=[];e=ucs2decode(e);var r=e.length;var a=f;var i=0;var u=l;var p=true;var d=false;var h=undefined;try{for(var v=e[Symbol.iterator](),g;!(p=(g=v.next()).done);p=true){var y=g.value;if(y<128){t.push(k(y))}}}catch(e){d=true;h=e}finally{try{if(!p&&v.return){v.return()}}finally{if(d){throw h}}}var x=t.length;var w=x;if(x){t.push(m)}while(w=a&&Tb((n-i)/q)){error$1("overflow")}i+=(S-a)*q;a=S;var z=true;var O=false;var B=undefined;try{for(var D=e[Symbol.iterator](),I;!(z=(I=D.next()).done);z=true){var R=I.value;if(Rn){error$1("overflow")}if(R==a){var M=i;for(var L=o;;L+=o){var N=L<=u?s:L>=u+c?c:L-u;if(M>6|192).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();else r="%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();return r}function pctDecChars(e){var t="";var r=0;var a=e.length;while(r=194&&i<224){if(a-r>=6){var n=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((i&31)<<6|n&63)}else{t+=e.substr(r,6)}r+=6}else if(i>=224){if(a-r>=9){var o=parseInt(e.substr(r+4,2),16);var s=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((i&15)<<12|(o&63)<<6|s&63)}else{t+=e.substr(r,9)}r+=9}else{t+=e.substr(r,3);r+=3}}return t}function _normalizeComponentEncoding(e,t){function decodeUnreserved(e){var r=pctDecChars(e);return!r.match(t.UNRESERVED)?e:r}if(e.scheme)e.scheme=String(e.scheme).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_USERINFO,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.host!==undefined)e.host=String(e.host).replace(t.PCT_ENCODED,decodeUnreserved).toLowerCase().replace(t.NOT_HOST,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.path!==undefined)e.path=String(e.path).replace(t.PCT_ENCODED,decodeUnreserved).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.query!==undefined)e.query=String(e.query).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_QUERY,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(t.PCT_ENCODED,decodeUnreserved).replace(t.NOT_FRAGMENT,pctEncChar).replace(t.PCT_ENCODED,toUpperCase);return e}function _stripLeadingZeros(e){return e.replace(/^0*(.*)/,"$1")||"0"}function _normalizeIPv4(e,t){var r=e.match(t.IPV4ADDRESS)||[];var i=a(r,2),n=i[1];if(n){return n.split(".").map(_stripLeadingZeros).join(".")}else{return e}}function _normalizeIPv6(e,t){var r=e.match(t.IPV6ADDRESS)||[];var i=a(r,3),n=i[1],o=i[2];if(n){var s=n.toLowerCase().split("::").reverse(),c=a(s,2),u=c[0],p=c[1];var l=p?p.split(":").map(_stripLeadingZeros):[];var f=u.split(":").map(_stripLeadingZeros);var m=t.IPV4ADDRESS.test(f[f.length-1]);var d=m?7:8;var h=f.length-d;var v=Array(d);for(var g=0;g1){var x=v.slice(0,b.index);var w=v.slice(b.index+b.length);k=x.join(":")+"::"+w.join(":")}else{k=v.join(":")}if(o){k+="%"+o}return k}else{return e}}var T=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var q="".match(/(){0}/)[1]===undefined;function parse(e){var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i={};var n=a.iri!==false?r:t;if(a.reference==="suffix")e=(a.scheme?a.scheme+":":"")+"//"+e;var o=e.match(T);if(o){if(q){i.scheme=o[1];i.userinfo=o[3];i.host=o[4];i.port=parseInt(o[5],10);i.path=o[6]||"";i.query=o[7];i.fragment=o[8];if(isNaN(i.port)){i.port=o[5]}}else{i.scheme=o[1]||undefined;i.userinfo=e.indexOf("@")!==-1?o[3]:undefined;i.host=e.indexOf("//")!==-1?o[4]:undefined;i.port=parseInt(o[5],10);i.path=o[6]||"";i.query=e.indexOf("?")!==-1?o[7]:undefined;i.fragment=e.indexOf("#")!==-1?o[8]:undefined;if(isNaN(i.port)){i.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:undefined}}if(i.host){i.host=_normalizeIPv6(_normalizeIPv4(i.host,n),n)}if(i.scheme===undefined&&i.userinfo===undefined&&i.host===undefined&&i.port===undefined&&!i.path&&i.query===undefined){i.reference="same-document"}else if(i.scheme===undefined){i.reference="relative"}else if(i.fragment===undefined){i.reference="absolute"}else{i.reference="uri"}if(a.reference&&a.reference!=="suffix"&&a.reference!==i.reference){i.error=i.error||"URI is not a "+a.reference+" reference."}var s=A[(a.scheme||i.scheme||"").toLowerCase()];if(!a.unicodeSupport&&(!s||!s.unicodeSupport)){if(i.host&&(a.domainHost||s&&s.domainHost)){try{i.host=F.toASCII(i.host.replace(n.PCT_ENCODED,pctDecChars).toLowerCase())}catch(e){i.error=i.error||"Host's domain name can not be converted to ASCII via punycode: "+e}}_normalizeComponentEncoding(i,t)}else{_normalizeComponentEncoding(i,n)}if(s&&s.parse){s.parse(i,a)}}else{i.error=i.error||"URI can not be parsed."}return i}function _recomposeAuthority(e,a){var i=a.iri!==false?r:t;var n=[];if(e.userinfo!==undefined){n.push(e.userinfo);n.push("@")}if(e.host!==undefined){n.push(_normalizeIPv6(_normalizeIPv4(String(e.host),i),i).replace(i.IPV6ADDRESS,function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"}))}if(typeof e.port==="number"||typeof e.port==="string"){n.push(":");n.push(String(e.port))}return n.length?n.join(""):undefined}var z=/^\.\.?\//;var O=/^\/\.(\/|$)/;var B=/^\/\.\.(\/|$)/;var D=/^\/?(?:.|\n)*?(?=\/|$)/;function removeDotSegments(e){var t=[];while(e.length){if(e.match(z)){e=e.replace(z,"")}else if(e.match(O)){e=e.replace(O,"/")}else if(e.match(B)){e=e.replace(B,"/");t.pop()}else if(e==="."||e===".."){e=""}else{var r=e.match(D);if(r){var a=r[0];e=e.slice(a.length);t.push(a)}else{throw new Error("Unexpected dot segment condition")}}}return t.join("")}function serialize(e){var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=a.iri?r:t;var n=[];var o=A[(a.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize)o.serialize(e,a);if(e.host){if(i.IPV6ADDRESS.test(e.host)){}else if(a.domainHost||o&&o.domainHost){try{e.host=!a.iri?F.toASCII(e.host.replace(i.PCT_ENCODED,pctDecChars).toLowerCase()):F.toUnicode(e.host)}catch(t){e.error=e.error||"Host's domain name can not be converted to "+(!a.iri?"ASCII":"Unicode")+" via punycode: "+t}}}_normalizeComponentEncoding(e,i);if(a.reference!=="suffix"&&e.scheme){n.push(e.scheme);n.push(":")}var s=_recomposeAuthority(e,a);if(s!==undefined){if(a.reference!=="suffix"){n.push("//")}n.push(s);if(e.path&&e.path.charAt(0)!=="/"){n.push("/")}}if(e.path!==undefined){var c=e.path;if(!a.absolutePath&&(!o||!o.absolutePath)){c=removeDotSegments(c)}if(s===undefined){c=c.replace(/^\/\//,"/%2F")}n.push(c)}if(e.query!==undefined){n.push("?");n.push(e.query)}if(e.fragment!==undefined){n.push("#");n.push(e.fragment)}return n.join("")}function resolveComponents(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var a=arguments[3];var i={};if(!a){e=parse(serialize(e,r),r);t=parse(serialize(t,r),r)}r=r||{};if(!r.tolerant&&t.scheme){i.scheme=t.scheme;i.userinfo=t.userinfo;i.host=t.host;i.port=t.port;i.path=removeDotSegments(t.path||"");i.query=t.query}else{if(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined){i.userinfo=t.userinfo;i.host=t.host;i.port=t.port;i.path=removeDotSegments(t.path||"");i.query=t.query}else{if(!t.path){i.path=e.path;if(t.query!==undefined){i.query=t.query}else{i.query=e.query}}else{if(t.path.charAt(0)==="/"){i.path=removeDotSegments(t.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){i.path="/"+t.path}else if(!e.path){i.path=t.path}else{i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path}i.path=removeDotSegments(i.path)}i.query=t.query}i.userinfo=e.userinfo;i.host=e.host;i.port=e.port}i.scheme=e.scheme}i.fragment=t.fragment;return i}function resolve(e,t,r){var a=assign({scheme:"null"},r);return serialize(resolveComponents(parse(e,a),parse(t,a),a,true),a)}function normalize(e,t){if(typeof e==="string"){e=serialize(parse(e,t),t)}else if(typeOf(e)==="object"){e=parse(serialize(e,t),t)}return e}function equal(e,t,r){if(typeof e==="string"){e=serialize(parse(e,r),r)}else if(typeOf(e)==="object"){e=serialize(e,r)}if(typeof t==="string"){t=serialize(parse(t,r),r)}else if(typeOf(t)==="object"){t=serialize(t,r)}return e===t}function escapeComponent(e,a){return e&&e.toString().replace(!a||!a.iri?t.ESCAPE:r.ESCAPE,pctEncChar)}function unescapeComponent(e,a){return e&&e.toString().replace(!a||!a.iri?t.PCT_ENCODED:r.PCT_ENCODED,pctDecChars)}var I={scheme:"http",domainHost:true,parse:function parse(e,t){if(!e.host){e.error=e.error||"HTTP URIs must have a host."}return e},serialize:function serialize(e,t){if(e.port===(String(e.scheme).toLowerCase()!=="https"?80:443)||e.port===""){e.port=undefined}if(!e.path){e.path="/"}return e}};var R={scheme:"https",domainHost:I.domainHost,parse:I.parse,serialize:I.serialize};var M={};var L=true;var N="[A-Za-z0-9\\-\\.\\_\\~"+(L?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var H="[0-9A-Fa-f]";var U=subexp(subexp("%[EFef]"+H+"%"+H+H+"%"+H+H)+"|"+subexp("%[89A-Fa-f]"+H+"%"+H+H)+"|"+subexp("%"+H+H));var $="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var K="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var V=merge(K,'[\\"\\\\]');var W="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var Q=new RegExp(N,"g");var G=new RegExp(U,"g");var J=new RegExp(merge("[^]",$,"[\\.]",'[\\"]',V),"g");var X=new RegExp(merge("[^]",N,W),"g");var Z=X;function decodeUnreserved(e){var t=pctDecChars(e);return!t.match(Q)?e:t}var Y={scheme:"mailto",parse:function parse$$1(e,t){var r=e;var a=r.to=r.path?r.path.split(","):[];r.path=undefined;if(r.query){var i=false;var n={};var o=r.query.split("&");for(var s=0,c=o.length;s=t)throw new Error("Cannot access property/index "+a+" levels up, current level is "+t);return r[t-a]}if(a>t)throw new Error("Cannot access data "+a+" levels up, current level is "+t);n="data"+(t-a||"");if(!i)return n}var u=n;var p=i.split("/");for(var l=0;l=0&&t.call(e.callee)==="[object Function]"}return a}},function(e){e.exports=require("tty")},,,,,,,,,,,function(e){"use strict";var t=Date.prototype.getDay;var r=function tryDateGetDayCall(e){try{t.call(e);return true}catch(e){return false}};var a=Object.prototype.toString;var i="[object Date]";var n=typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol";e.exports=function isDateObject(e){if(typeof e!=="object"||e===null){return false}return n?r(e):a.call(e)===i}},,,function(e,t,r){"use strict";var a=r(855);var i=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;var n=[0,31,28,31,30,31,30,31,31,30,31,30,31];var o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;var s=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i;var c=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@\/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@\/?]|%[0-9a-f]{2})*)?$/i;var u=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@\/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@\/?]|%[0-9a-f]{2})*)?$/i;var p=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#.\/;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i;var l=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-?)*(?:[0-9KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[KSa-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i;var f=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;var m=/^(?:\/(?:[^~\/]|~0|~1)*)*$/;var d=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i;var h=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~\/]|~0|~1)*)*)$/;e.exports=formats;function formats(e){e=e=="full"?"full":"fast";return a.copy(formats[e])}formats.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":p,url:l,email:/^[a-z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:f,"json-pointer":m,"json-pointer-uri-fragment":d,"relative-json-pointer":h};formats.full={date:date,time:time,"date-time":date_time,uri:uri,"uri-reference":u,"uri-template":p,url:l,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:regex,uuid:f,"json-pointer":m,"json-pointer-uri-fragment":d,"relative-json-pointer":h};function isLeapYear(e){return e%4===0&&(e%100!==0||e%400===0)}function date(e){var t=e.match(i);if(!t)return false;var r=+t[1];var a=+t[2];var o=+t[3];return a>=1&&a<=12&&o>=1&&o<=(a==2&&isLeapYear(r)?29:n[a])}function time(e,t){var r=e.match(o);if(!r)return false;var a=r[1];var i=r[2];var n=r[3];var s=r[5];return(a<=23&&i<=59&&n<=59||a==23&&i==59&&n==60)&&(!t||s)}var v=/t|\s/i;function date_time(e){var t=e.split(v);return t.length==2&&date(t[0])&&time(t[1],true)}var g=/\/|:/;function uri(e){return g.test(e)&&c.test(e)}var y=/[^\\]\\Z/;function regex(e){if(y.test(e))return false;try{new RegExp(e);return true}catch(e){return false}}},function(e,t,r){"use strict";e.exports=PassThrough;var a=r(925);var i=Object.create(r(286));i.inherits=r(689);i.inherits(PassThrough,a);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);a.call(this,e)}PassThrough.prototype._transform=function(e,t,r){r(null,e)}},function(e){var t=function(){"use strict";return this===undefined}();if(t){e.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:t,propertyIsWritable:function(e,t){var r=Object.getOwnPropertyDescriptor(e,t);return!!(!r||r.writable||r.set)}}}else{var r={}.hasOwnProperty;var a={}.toString;var i={}.constructor.prototype;var n=function(e){var t=[];for(var a in e){if(r.call(e,a)){t.push(a)}}return t};var o=function(e,t){return{value:e[t]}};var s=function(e,t,r){e[t]=r.value;return e};var c=function(e){return e};var u=function(e){try{return Object(e).constructor.prototype}catch(e){return i}};var p=function(e){try{return a.call(e)==="[object Array]"}catch(e){return false}};e.exports={isArray:p,keys:n,names:n,defineProperty:s,getDescriptor:o,freeze:c,getPrototypeOf:u,isES5:t,propertyIsWritable:function(){return true}}}},function(e,t,r){"use strict";var a=r(636);var i=r(955);var n=r(823);e.exports=function findIndex(e){var t=n(this);var r=i(t.length);if(!a(e)){throw new TypeError("Array#findIndex: predicate must be a function")}if(r===0){return-1}var o;if(arguments.length>0){o=arguments[1]}for(var s=0,c;s=t?e:unstupid("0"+e,t)}t.ECKey=function(e,t,r){var n;var s=e();var c=s.getN();var u=Math.floor(c.bitLength()/8);if(t){if(r){var e=s.getCurve();this.P=e.decodePointHex(t.toString("hex"))}else{if(t.length!=u)return false;n=new i(t.toString("hex"),16)}}else{var p=c.subtract(i.ONE);var l=new i(a.randomBytes(c.bitLength()));n=l.mod(p).add(i.ONE);this.P=s.getG().multiply(n)}if(this.P){this.PublicKey=o.from(s.getCurve().encodeCompressedPointHex(this.P),"hex")}if(n){this.PrivateKey=o.from(unstupid(n.toString(16),u*2),"hex");this.deriveSharedSecret=function(e){if(!e||!e.P)return false;var t=e.P.multiply(n);return o.from(unstupid(t.getX().toBigInteger().toString(16),u*2),"hex")}}}},,,,function(e,t,r){"use strict";var a=r(844).MissingRef;e.exports=compileAsync;function compileAsync(e,t,r){var i=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");if(typeof t=="function"){r=t;t=undefined}var n=loadMetaSchemaOf(e).then(function(){var r=i._addSchema(e,undefined,t);return r.validate||_compileAsync(r)});if(r){n.then(function(e){r(null,e)},r)}return n;function loadMetaSchemaOf(e){var t=e.$schema;return t&&!i.getSchema(t)?compileAsync.call(i,{$ref:t},true):Promise.resolve()}function _compileAsync(e){try{return i._compile(e)}catch(e){if(e instanceof a)return loadMissingSchema(e);throw e}function loadMissingSchema(r){var a=r.missingSchema;if(added(a))throw new Error("Schema "+a+" is loaded but "+r.missingRef+" cannot be resolved");var n=i._loadingSchemas[a];if(!n){n=i._loadingSchemas[a]=i._opts.loadSchema(a);n.then(removePromise,removePromise)}return n.then(function(e){if(!added(a)){return loadMetaSchemaOf(e).then(function(){if(!added(a))i.addSchema(e,a,undefined,t)})}}).then(function(){return _compileAsync(e)});function removePromise(){delete i._loadingSchemas[a]}function added(e){return i._refs[e]||i._schemas[e]}}}}},,function(e,t,r){var a=r(157),i=r(147),n=r(939);e.exports=serialOrdered;e.exports.ascending=ascending;e.exports.descending=descending;function serialOrdered(e,t,r,o){var s=i(e,r);a(e,t,s,function iteratorHandler(r,i){if(r){o(r,i);return}s.index++;if(s.index<(s["keyedList"]||e).length){a(e,t,s,iteratorHandler);return}o(null,s.results)});return n.bind(s,o)}function ascending(e,t){return et?1:0}function descending(e,t){return-1*ascending(e,t)}},function(e,t,r){e.exports={read:read,verify:verify,sign:sign,signAsync:signAsync,write:write,fromBuffer:fromBuffer,toBuffer:toBuffer};var a=r(477);var i=r(940);var n=r(417);var o=r(215).Buffer;var s=r(98);var c=r(852);var u=r(502);var p=r(378);var l=r(538);var f=r(90);var m=r(270);var d=r(752);function verify(e,t){return false}var h={user:1,host:2};Object.keys(h).forEach(function(e){h[h[e]]=e});var v=/^ecdsa-sha2-([^@-]+)-cert-v01@openssh.com$/;function read(e,t){if(o.isBuffer(e))e=e.toString("ascii");var r=e.trim().split(/[ \t\n]+/g);if(r.length<2||r.length>3)throw new Error("Not a valid SSH certificate line");var a=r[0];var i=r[1];i=o.from(i,"base64");return fromBuffer(i,a)}function fromBuffer(e,t,r){var n=new i({buffer:e});var o=n.readString();if(t!==undefined&&o!==t)throw new Error("SSH certificate algorithm mismatch");if(t===undefined)t=o;var u={};u.signatures={};u.signatures.openssh={};u.signatures.openssh.nonce=n.readBuffer();var g={};var y=g.parts=[];g.type=getAlg(t);var b=s.info[g.type].parts.length;while(y.length=1,"key must have at least one part");var k=s.info[g.type];if(g.type==="ecdsa"){var x=v.exec(t);a.ok(x!==null);a.strictEqual(x[1],y[0].data.toString())}for(var w=0;w0?P+E:""}},,function(e){"use strict";e.exports=function generate_uniqueItems(e,t,r){var a=" ";var i=e.level;var n=e.dataLevel;var o=e.schema[t];var s=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var p="data"+(n||"");var l="valid"+i;var f=e.opts.$data&&o&&o.$data,m;if(f){a+=" var schema"+i+" = "+e.util.getData(o.$data,n,e.dataPathArr)+"; ";m="schema"+i}else{m=o}if((o||f)&&e.opts.uniqueItems!==false){if(f){a+=" var "+l+"; if ("+m+" === false || "+m+" === undefined) "+l+" = true; else if (typeof "+m+" != 'boolean') "+l+" = false; else { "}a+=" var i = "+p+".length , "+l+" = true , j; if (i > 1) { ";var d=e.schema.items&&e.schema.items.type,h=Array.isArray(d);if(!d||d=="object"||d=="array"||h&&(d.indexOf("object")>=0||d.indexOf("array")>=0)){a+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+l+" = false; break outer; } } } "}else{a+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var v="checkDataType"+(h?"s":"");a+=" if ("+e.util[v](d,"item",e.opts.strictNumbers,true)+") continue; ";if(h){a+=" if (typeof item == 'string') item = '\"' + item; "}a+=" if (typeof itemIndices[item] == 'number') { "+l+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}a+=" } ";if(f){a+=" } "}a+=" if (!"+l+") { ";var g=g||[];g.push(a);a="";if(e.createErrors!==false){a+=" { keyword: '"+"uniqueItems"+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(c)+" , params: { i: i, j: j } ";if(e.opts.messages!==false){a+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "}if(e.opts.verbose){a+=" , schema: ";if(f){a+="validate.schema"+s}else{a+=""+o}a+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "}a+=" } "}else{a+=" {} "}var y=a;a=g.pop();if(!e.compositeRule&&u){if(e.async){a+=" throw new ValidationError(["+y+"]); "}else{a+=" validate.errors = ["+y+"]; return false; "}}else{a+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}a+=" } ";if(u){a+=" else { "}}else{if(u){a+=" if (true) { "}}return a}},,,function(e){"use strict";e.exports=function generate_anyOf(e,t,r){var a=" ";var i=e.level;var n=e.dataLevel;var o=e.schema[t];var s=e.schemaPath+e.util.getProperty(t);var c=e.errSchemaPath+"/"+t;var u=!e.opts.allErrors;var p="data"+(n||"");var l="valid"+i;var f="errs__"+i;var m=e.util.copy(e);var d="";m.level++;var h="valid"+m.level;var v=o.every(function(t){return e.opts.strictKeywords?typeof t=="object"&&Object.keys(t).length>0:e.util.schemaHasRules(t,e.RULES.all)});if(v){var g=m.baseId;a+=" var "+f+" = errors; var "+l+" = false; ";var y=e.compositeRule;e.compositeRule=m.compositeRule=true;var b=o;if(b){var k,x=-1,w=b.length-1;while(x=0&&this.region==="us-east-1")return true;return["cloudfront","ls","route53","iam","importexport","sts"].indexOf(this.service)>=0};RequestSigner.prototype.createHost=function(){var e=this.isSingleRegion()?"":"."+this.region,t=this.service==="ses"?"email":this.service;return t+e+".amazonaws.com"};RequestSigner.prototype.prepareRequest=function(){this.parsePath();var e=this.request,t=e.headers,r;if(e.signQuery){this.parsedPath.query=r=this.parsedPath.query||{};if(this.credentials.sessionToken)r["X-Amz-Security-Token"]=this.credentials.sessionToken;if(this.service==="s3"&&!r["X-Amz-Expires"])r["X-Amz-Expires"]=86400;if(r["X-Amz-Date"])this.datetime=r["X-Amz-Date"];else r["X-Amz-Date"]=this.getDateTime();r["X-Amz-Algorithm"]="AWS4-HMAC-SHA256";r["X-Amz-Credential"]=this.credentials.accessKeyId+"/"+this.credentialString();r["X-Amz-SignedHeaders"]=this.signedHeaders()}else{if(!e.doNotModifyHeaders&&!this.isCodeCommitGit){if(e.body&&!t["Content-Type"]&&!t["content-type"])t["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8";if(e.body&&!t["Content-Length"]&&!t["content-length"])t["Content-Length"]=Buffer.byteLength(e.body);if(this.credentials.sessionToken&&!t["X-Amz-Security-Token"]&&!t["x-amz-security-token"])t["X-Amz-Security-Token"]=this.credentials.sessionToken;if(this.service==="s3"&&!t["X-Amz-Content-Sha256"]&&!t["x-amz-content-sha256"])t["X-Amz-Content-Sha256"]=hash(this.request.body||"","hex");if(t["X-Amz-Date"]||t["x-amz-date"])this.datetime=t["X-Amz-Date"]||t["x-amz-date"];else t["X-Amz-Date"]=this.getDateTime()}delete t.Authorization;delete t.authorization}};RequestSigner.prototype.sign=function(){if(!this.parsedPath)this.prepareRequest();if(this.request.signQuery){this.parsedPath.query["X-Amz-Signature"]=this.signature()}else{this.request.headers.Authorization=this.authHeader()}this.request.path=this.formatPath();return this.request};RequestSigner.prototype.getDateTime=function(){if(!this.datetime){var e=this.request.headers,t=new Date(e.Date||e.date||new Date);this.datetime=t.toISOString().replace(/[:\-]|\.\d{3}/g,"");if(this.isCodeCommitGit)this.datetime=this.datetime.slice(0,-1)}return this.datetime};RequestSigner.prototype.getDate=function(){return this.getDateTime().substr(0,8)};RequestSigner.prototype.authHeader=function(){return["AWS4-HMAC-SHA256 Credential="+this.credentials.accessKeyId+"/"+this.credentialString(),"SignedHeaders="+this.signedHeaders(),"Signature="+this.signature()].join(", ")};RequestSigner.prototype.signature=function(){var e=this.getDate(),t=[this.credentials.secretAccessKey,e,this.region,this.service].join(),r,a,i,n=c.get(t);if(!n){r=hmac("AWS4"+this.credentials.secretAccessKey,e);a=hmac(r,this.region);i=hmac(a,this.service);n=hmac(i,"aws4_request");c.set(t,n)}return hmac(n,this.stringToSign(),"hex")};RequestSigner.prototype.stringToSign=function(){return["AWS4-HMAC-SHA256",this.getDateTime(),this.credentialString(),hash(this.canonicalString(),"hex")].join("\n")};RequestSigner.prototype.canonicalString=function(){if(!this.parsedPath)this.prepareRequest();var e=this.parsedPath.path,t=this.parsedPath.query,r=this.request.headers,a="",i=this.service!=="s3",n=this.service==="s3"||this.request.doNotEncodePath,o=this.service==="s3",s=this.service==="s3",c;if(this.service==="s3"&&this.request.signQuery){c="UNSIGNED-PAYLOAD"}else if(this.isCodeCommitGit){c=""}else{c=r["X-Amz-Content-Sha256"]||r["x-amz-content-sha256"]||hash(this.request.body||"","hex")}if(t){var u=Object.keys(t).reduce(function(e,r){if(!r)return e;e[encodeRfc3986Full(r)]=!Array.isArray(t[r])?t[r]:s?t[r][0]:t[r];return e},{});var p=[];Object.keys(u).sort().forEach(function(e){if(!Array.isArray(u[e])){p.push(e+"="+encodeRfc3986Full(u[e]))}else{u[e].map(encodeRfc3986Full).sort().forEach(function(t){p.push(e+"="+t)})}});a=p.join("&")}if(e!=="/"){if(i)e=e.replace(/\/{2,}/g,"/");e=e.split("/").reduce(function(e,t){if(i&&t===".."){e.pop()}else if(!i||t!=="."){if(n)t=decodeURIComponent(t.replace(/\+/g," "));e.push(encodeRfc3986Full(t))}return e},[]).join("/");if(e[0]!=="/")e="/"+e;if(o)e=e.replace(/%2F/g,"/")}return[this.request.method||"GET",e,a,this.canonicalHeaders()+"\n",this.signedHeaders(),c].join("\n")};RequestSigner.prototype.canonicalHeaders=function(){var e=this.request.headers;function trimAll(e){return e.toString().trim().replace(/\s+/g," ")}return Object.keys(e).sort(function(e,t){return e.toLowerCase()=0){r=n.parse(e.slice(t+1));e=e.slice(0,t)}this.parsedPath={path:e,query:r}};RequestSigner.prototype.formatPath=function(){var e=this.parsedPath.path,t=this.parsedPath.query;if(!t)return e;if(t[""]!=null)delete t[""];return e+"?"+encodeRfc3986(n.stringify(t))};a.RequestSigner=RequestSigner;a.sign=function(e,t){return new RequestSigner(e,t).sign()}},,function(e,t,r){var a=r(477);var i=r(650);var n=r(669);var o={sha1:true,sha256:true,sha512:true};var s={rsa:true,dsa:true,ecdsa:true};function HttpSignatureError(e,t){if(Error.captureStackTrace)Error.captureStackTrace(this,t||HttpSignatureError);this.message=e;this.name=t.name}n.inherits(HttpSignatureError,Error);function InvalidAlgorithmError(e){HttpSignatureError.call(this,e,InvalidAlgorithmError)}n.inherits(InvalidAlgorithmError,HttpSignatureError);function validateAlgorithm(e){var t=e.toLowerCase().split("-");if(t.length!==2){throw new InvalidAlgorithmError(t[0].toUpperCase()+" is not a "+"valid algorithm")}if(t[0]!=="hmac"&&!s[t[0]]){throw new InvalidAlgorithmError(t[0].toUpperCase()+" type keys "+"are not supported")}if(!o[t[1]]){throw new InvalidAlgorithmError(t[1].toUpperCase()+" is not a "+"supported hash algorithm")}return t}e.exports={HASH_ALGOS:o,PK_ALGOS:s,HttpSignatureError:HttpSignatureError,InvalidAlgorithmError:InvalidAlgorithmError,validateAlgorithm:validateAlgorithm,sshKeyToPEM:function sshKeyToPEM(e){a.string(e,"ssh_key");var t=i.parseKey(e,"ssh");return t.toString("pem")},fingerprint:function fingerprint(e){a.string(e,"ssh_key");var t=i.parseKey(e,"ssh");return t.fingerprint("md5").toString("hex")},pemToRsaSSHKey:function pemToRsaSSHKey(e,t){a.equal("string",typeof e,"typeof pem");var r=i.parseKey(e,"pem");r.comment=t;return r.toString("ssh")}}},,,,,,,function(e){"use strict";function RequestError(e,t,r){this.name="RequestError";this.message=String(e);this.cause=e;this.error=e;this.options=t;this.response=r;if(Error.captureStackTrace){Error.captureStackTrace(this)}}RequestError.prototype=Object.create(Error.prototype);RequestError.prototype.constructor=RequestError;function StatusCodeError(e,t,r,a){this.name="StatusCodeError";this.statusCode=e;this.message=e+" - "+(JSON&&JSON.stringify?JSON.stringify(t):t);this.error=t;this.options=r;this.response=a;if(Error.captureStackTrace){Error.captureStackTrace(this)}}StatusCodeError.prototype=Object.create(Error.prototype);StatusCodeError.prototype.constructor=StatusCodeError;function TransformError(e,t,r){this.name="TransformError";this.message=String(e);this.cause=e;this.error=e;this.options=t;this.response=r;if(Error.captureStackTrace){Error.captureStackTrace(this)}}TransformError.prototype=Object.create(Error.prototype);TransformError.prototype.constructor=TransformError;e.exports={RequestError:RequestError,StatusCodeError:StatusCodeError,TransformError:TransformError}},function(e,t,r){e.exports=r(669).deprecate},,function(e,t,r){e.exports={read:read,verify:verify,sign:sign,signAsync:signAsync,write:write};var a=r(477);var i=r(62);var n=r(215).Buffer;var o=r(98);var s=r(270);var c=r(852);var u=r(502);var p=r(268);var l=r(378);var f=r(90);var m=r(752);var d=r(707);function readMPInt(e,t){a.strictEqual(e.peek(),i.Ber.Integer,t+" is not an Integer");return s.mpNormalize(e.readString(i.Ber.Integer,true))}function verify(e,t){var r=e.signatures.x509;a.object(r,"x509 signature");var n=r.algo.split("-");if(n[0]!==t.type)return false;var o=r.cache;if(o===undefined){var s=new i.BerWriter;writeTBSCert(e,s);o=s.buffer}var c=t.createVerify(n[1]);c.write(o);return c.verify(r.signature)}function Local(e){return i.Ber.Context|i.Ber.Constructor|e}function Context(e){return i.Ber.Context|e}var h={"rsa-md5":"1.2.840.113549.1.1.4","rsa-sha1":"1.2.840.113549.1.1.5","rsa-sha256":"1.2.840.113549.1.1.11","rsa-sha384":"1.2.840.113549.1.1.12","rsa-sha512":"1.2.840.113549.1.1.13","dsa-sha1":"1.2.840.10040.4.3","dsa-sha256":"2.16.840.1.101.3.4.3.2","ecdsa-sha1":"1.2.840.10045.4.1","ecdsa-sha256":"1.2.840.10045.4.3.2","ecdsa-sha384":"1.2.840.10045.4.3.3","ecdsa-sha512":"1.2.840.10045.4.3.4","ed25519-sha512":"1.3.101.112"};Object.keys(h).forEach(function(e){h[h[e]]=e});h["1.3.14.3.2.3"]="rsa-md5";h["1.3.14.3.2.29"]="rsa-sha1";var v={issuerKeyId:"2.5.29.35",altName:"2.5.29.17",basicConstraints:"2.5.29.19",keyUsage:"2.5.29.15",extKeyUsage:"2.5.29.37"};function read(e,t){if(typeof e==="string"){e=n.from(e,"binary")}a.buffer(e,"buf");var r=new i.BerReader(e);r.readSequence();if(Math.abs(r.length-r.remain)>1){throw new Error("DER sequence does not contain whole byte "+"stream")}var o=r.offset;r.readSequence();var s=r.offset+r.length;var c=s;if(r.peek()===Local(0)){r.readSequence(Local(0));var u=r.readInt();a.ok(u<=3,"only x.509 versions up to v3 supported")}var p={};p.signatures={};var v=p.signatures.x509={};v.extras={};p.serial=readMPInt(r,"serial");r.readSequence();var g=r.offset+r.length;var y=r.readOID();var b=h[y];if(b===undefined)throw new Error("unknown signature algorithm "+y);r._offset=g;p.issuer=l.parseAsn1(r);r.readSequence();p.validFrom=readDate(r);p.validUntil=readDate(r);p.subjects=[l.parseAsn1(r)];r.readSequence();g=r.offset+r.length;p.subjectKey=d.readPkcs8(undefined,"public",r);r._offset=g;if(r.peek()===Local(1)){r.readSequence(Local(1));v.extras.issuerUniqueID=e.slice(r.offset,r.offset+r.length);r._offset+=r.length}if(r.peek()===Local(2)){r.readSequence(Local(2));v.extras.subjectUniqueID=e.slice(r.offset,r.offset+r.length);r._offset+=r.length}if(r.peek()===Local(3)){r.readSequence(Local(3));var k=r.offset+r.length;r.readSequence();while(r.offset=2050||t.getUTCFullYear()<1950){e.writeString(dateToGTime(t),i.Ber.GeneralizedTime)}else{e.writeString(dateToUTCTime(t),i.Ber.UTCTime)}}var g={OtherName:Local(0),RFC822Name:Context(1),DNSName:Context(2),X400Address:Local(3),DirectoryName:Local(4),EDIPartyName:Local(5),URI:Context(6),IPAddress:Context(7),OID:Context(8)};var y={serverAuth:"1.3.6.1.5.5.7.3.1",clientAuth:"1.3.6.1.5.5.7.3.2",codeSigning:"1.3.6.1.5.5.7.3.3",joyentDocker:"1.3.6.1.4.1.38678.1.4.1",joyentCmon:"1.3.6.1.4.1.38678.1.4.2"};var b={};Object.keys(y).forEach(function(e){b[y[e]]=e});var k=["signature","identity","keyEncryption","encryption","keyAgreement","ca","crl"];function readExtension(e,t,r){r.readSequence();var a=r.offset+r.length;var n=r.readOID();var o;var s=e.signatures.x509;if(!s.extras.exts)s.extras.exts=[];var c;if(r.peek()===i.Ber.Boolean)c=r.readBoolean();switch(n){case v.basicConstraints:r.readSequence(i.Ber.OctetString);r.readSequence();var u=r.offset+r.length;var p=false;if(r.peek()===i.Ber.Boolean)p=r.readBoolean();if(e.purposes===undefined)e.purposes=[];if(p===true)e.purposes.push("ca");var f={oid:n,critical:c};if(r.offset=60)o+=n-1;else o+=n;r.setUTCFullYear(o,parseInt(t[2],10)-1,parseInt(t[3],10));r.setUTCHours(parseInt(t[4],10),parseInt(t[5],10));if(t[6]&&t[6].length>0)r.setUTCSeconds(parseInt(t[6],10));return r}var w=/^([0-9]{4})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{2})?Z$/;function gTimeToDate(e){var t=e.match(w);a.ok(t);var r=new Date;r.setUTCFullYear(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10));r.setUTCHours(parseInt(t[4],10),parseInt(t[5],10));if(t[6]&&t[6].length>0)r.setUTCSeconds(parseInt(t[6],10));return r}function zeroPad(e,t){if(t===undefined)t=2;var r=""+e;while(r.length0||n.type==="host"||e.purposes!==undefined&&e.purposes.length>0||r.extras&&r.extras.exts){t.startSequence(Local(3));t.startSequence();var c=[];if(e.purposes!==undefined&&e.purposes.length>0){c.push({oid:v.basicConstraints,critical:true});c.push({oid:v.keyUsage,critical:true});c.push({oid:v.extKeyUsage,critical:true})}c.push({oid:v.altName});if(r.extras&&r.extras.exts)c=r.extras.exts;for(var u=0;u=0){return r[e]}return undefined}Context.CapturedTrace=null;Context.create=createContext;Context.deactivateLongStackTraces=function(){};Context.activateLongStackTraces=function(){var r=e.prototype._pushContext;var a=e.prototype._popContext;var i=e._peekContext;var n=e.prototype._peekContext;var o=e.prototype._promiseCreated;Context.deactivateLongStackTraces=function(){e.prototype._pushContext=r;e.prototype._popContext=a;e._peekContext=i;e.prototype._peekContext=n;e.prototype._promiseCreated=o;t=false};t=true;e.prototype._pushContext=Context.prototype._pushContext;e.prototype._popContext=Context.prototype._popContext;e._peekContext=e.prototype._peekContext=peekContext;e.prototype._promiseCreated=function(){var e=this._peekContext();if(e&&e._promiseCreated==null)e._promiseCreated=this}};return Context}},,function(e,t,r){"use strict";e.exports=Transform;var a=r(831);var i=Object.create(r(286));i.inherits=r(689);i.inherits(Transform,a);function afterTransform(e,t){var r=this._transformState;r.transforming=false;var a=r.writecb;if(!a){return this.emit("error",new Error("write callback called multiple times"))}r.writechunk=null;r.writecb=null;if(t!=null)this.push(t);a(e);var i=this._readableState;i.reading=false;if(i.needReadable||i.length0)this.tail.next=t;else this.head=t;this.tail=t;++this.length};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var r=""+t.data;while(t=t.next){r+=e+t.data}return r};BufferList.prototype.concat=function concat(e){if(this.length===0)return a.alloc(0);if(this.length===1)return this.head.data;var t=a.allocUnsafe(e>>>0);var r=this.head;var i=0;while(r){copyBuffer(r.data,t,i);i+=r.data.length;r=r.next}return t};return BufferList}();if(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,r){var a=r(190),i=r(143),n=r(337);var o="[object String]";function isString(e){return typeof e=="string"||!i(e)&&n(e)&&a(e)==o}e.exports=isString},,function(e){e.exports=require("net")},,function(e,t,r){var a=r(566),i=r(751);e.exports=terminator;function terminator(e){if(!Object.keys(this.jobs).length){return}this.index=this.size;a(this);i(e)(null,this.results)}},function(e,t,r){e.exports=SSHBuffer;var a=r(477);var i=r(215).Buffer;function SSHBuffer(e){a.object(e,"options");if(e.buffer!==undefined)a.buffer(e.buffer,"options.buffer");this._size=e.buffer?e.buffer.length:1024;this._buffer=e.buffer||i.alloc(this._size);this._offset=0}SSHBuffer.prototype.toBuffer=function(){return this._buffer.slice(0,this._offset)};SSHBuffer.prototype.atEnd=function(){return this._offset>=this._buffer.length};SSHBuffer.prototype.remainder=function(){return this._buffer.slice(this._offset)};SSHBuffer.prototype.skip=function(e){this._offset+=e};SSHBuffer.prototype.expand=function(){this._size*=2;var e=i.alloc(this._size);this._buffer.copy(e,0);this._buffer=e};SSHBuffer.prototype.readPart=function(){return{data:this.readBuffer()}};SSHBuffer.prototype.readBuffer=function(){var e=this._buffer.readUInt32BE(this._offset);this._offset+=4;a.ok(this._offset+e<=this._buffer.length,"length out of bounds at +0x"+this._offset.toString(16)+" (data truncated?)");var t=this._buffer.slice(this._offset,this._offset+e);this._offset+=e;return t};SSHBuffer.prototype.readString=function(){return this.readBuffer().toString()};SSHBuffer.prototype.readCString=function(){var e=this._offset;while(ethis._size)this.expand();this._buffer.writeUInt32BE(e.length,this._offset);this._offset+=4;e.copy(this._buffer,this._offset);this._offset+=e.length};SSHBuffer.prototype.writeString=function(e){this.writeBuffer(i.from(e,"utf8"))};SSHBuffer.prototype.writeCString=function(e){while(this._offset+1+e.length>this._size)this.expand();this._buffer.write(e,this._offset);this._offset+=e.length;this._buffer[this._offset++]=0};SSHBuffer.prototype.writeInt=function(e){while(this._offset+4>this._size)this.expand();this._buffer.writeUInt32BE(e,this._offset);this._offset+=4};SSHBuffer.prototype.writeInt64=function(e){a.buffer(e,"value");if(e.length>8){var t=e.slice(0,e.length-8);for(var r=0;rthis._size)this.expand();e.copy(this._buffer,this._offset);this._offset+=8};SSHBuffer.prototype.writeChar=function(e){while(this._offset+1>this._size)this.expand();this._buffer[this._offset++]=e};SSHBuffer.prototype.writePart=function(e){this.writeBuffer(e.data)};SSHBuffer.prototype.write=function(e){while(this._offset+e.length>this._size)this.expand();e.copy(this._buffer,this._offset);this._offset+=e.length}},,function(e,t,r){var a=r(417),i=r(835).parse;var n=["acl","location","logging","notification","partNumber","policy","requestPayment","torrent","uploadId","uploads","versionId","versioning","versions","website"];function authorization(e){return"AWS "+e.key+":"+sign(e)}e.exports=authorization;e.exports.authorization=authorization;function hmacSha1(e){return a.createHmac("sha1",e.secret).update(e.message).digest("base64")}e.exports.hmacSha1=hmacSha1;function sign(e){e.message=stringToSign(e);return hmacSha1(e)}e.exports.sign=sign;function signQuery(e){e.message=queryStringToSign(e);return hmacSha1(e)}e.exports.signQuery=signQuery;function stringToSign(e){var t=e.amazonHeaders||"";if(t)t+="\n";var r=[e.verb,e.md5,e.contentType,e.date?e.date.toUTCString():"",t+e.resource];return r.join("\n")}e.exports.stringToSign=stringToSign;function queryStringToSign(e){return"GET\n\n\n"+e.date+"\n"+e.resource}e.exports.queryStringToSign=queryStringToSign;function canonicalizeHeaders(e){var t=[],r=Object.keys(e);for(var a=0,i=r.length;a=r;--a){t.push(a)}for(var a=e+1;a<=3;++a){t.push(a)}return t};var y=function(e){return i.filledRange(e,"_arg","")};var b=function(e){return i.filledRange(Math.max(e,3),"_arg","")};var k=function(e){if(typeof e.length==="number"){return Math.max(Math.min(e.length,1023+1),0)}return 0};v=function(r,c,u,p,l,f){var m=Math.max(0,k(p)-1);var d=g(m);var h=typeof r==="string"||c===a;function generateCallForArgumentCount(e){var t=y(e).join(", ");var r=e>0?", ":"";var a;if(h){a="ret = callback.call(this, {{args}}, nodeback); break;\n"}else{a=c===undefined?"ret = callback({{args}}, nodeback); break;\n":"ret = callback.call(receiver, {{args}}, nodeback); break;\n"}return a.replace("{{args}}",t).replace(", ",r)}function generateArgumentSwitchCase(){var e="";for(var t=0;t{let t;try{t=e.body=JSON.parse(e.body)}catch(t){throw new a.ParseError(`Error parsing response: ${e.body}`,e)}if(t.ok){return t.result}throw new a.TelegramError(`${t.error_code} ${t.description}`,e)}).catch(e=>{if(e.response)throw e;throw new a.FatalError(e)})}_formatSendData(e,t,r={}){const i="See https://github.com/yagop/node-telegram-bot-api/blob/master/doc/usage.md#sending-files"+" for more information on how sending files has been improved and"+" on how to disable this deprecation message altogether.";let n=t;let o=r.filename;let s=r.contentType;if(t instanceof f.Stream){if(!o&&t.path){const e=h.parse(d.basename(t.path.toString()));if(e.pathname){o=l.unescape(e.pathname)}}}else if(Buffer.isBuffer(t)){if(!o&&!process.env.NTBA_FIX_350){y(`Buffers will have their filenames default to "filename" instead of "data". ${i}`);o="data"}if(!s){const e=c(t);if(e){s=e.mime;const t=e.ext;if(t&&!process.env.NTBA_FIX_350){o=`${o}.${t}`}}else if(!process.env.NTBA_FIX_350){y(`An error will no longer be thrown if file-type of buffer could not be detected. ${i}`);throw new a.FatalError("Unsupported Buffer file-type")}}}else if(t){if(this.options.filepath&&v.existsSync(t)){n=v.createReadStream(t);if(!o){o=d.basename(t)}}else{return[null,t]}}else{return[null,t]}o=o||"filename";s=s||m.lookup(o);if(process.env.NTBA_FIX_350){s=s||"application/octet-stream"}else{y(`In the future, content-type of files you send will default to "application/octet-stream". ${i}`)}return[{[e]:{value:n,options:{filename:o,contentType:s}}},null]}startPolling(e={}){if(this.hasOpenWebHook()){return b.reject(new a.FatalError("Polling and WebHook are mutually exclusive"))}e.restart=typeof e.restart==="undefined"?true:e.restart;if(!this._polling){this._polling=new n(this)}return this._polling.start(e)}initPolling(){y("TelegramBot#initPolling() is deprecated. Use TelegramBot#startPolling() instead.");return this.startPolling()}stopPolling(e){if(!this._polling){return b.resolve()}return this._polling.stop(e)}isPolling(){return this._polling?this._polling.isPolling():false}openWebHook(){if(this.isPolling()){return b.reject(new a.FatalError("WebHook and Polling are mutually exclusive"))}if(!this._webHook){this._webHook=new i(this)}return this._webHook.open()}closeWebHook(){if(!this._webHook){return b.resolve()}return this._webHook.close()}hasOpenWebHook(){return this._webHook?this._webHook.isOpen():false}getMe(e={}){return this._request("getMe",{form:e})}setWebHook(e,t={},r={}){let a;if(typeof t!=="object"||t instanceof f.Stream){y("The method signature setWebHook(url, cert) has been deprecated since v0.25.0");a=t;t={}}else{a=t.certificate}const i={qs:t};i.qs.url=e;if(a){try{const e=this._formatSendData("certificate",a,r);i.formData=e[0];i.qs.certificate=e[1]}catch(e){return b.reject(e)}}return this._request("setWebHook",i)}deleteWebHook(e={}){return this._request("deleteWebhook",{form:e})}getWebHookInfo(e={}){return this._request("getWebhookInfo",{form:e})}getUpdates(e={}){if(typeof e!=="object"){y("The method signature getUpdates(timeout, limit, offset) has been deprecated since v0.25.0");e={timeout:arguments[0],limit:arguments[1],offset:arguments[2]}}return this._request("getUpdates",{form:e})}processUpdate(e){o("Process Update %j",e);const t=e.message;const r=e.edited_message;const a=e.channel_post;const i=e.edited_channel_post;const n=e.inline_query;const s=e.chosen_inline_result;const c=e.callback_query;const u=e.shipping_query;const p=e.pre_checkout_query;const l=e.poll;if(t){o("Process Update message %j",t);const e={};e.type=TelegramBot.messageTypes.find(e=>{return t[e]});this.emit("message",t,e);if(e.type){o("Emitting %s: %j",e.type,t);this.emit(e.type,t,e)}if(t.text){o("Text message");this._textRegexpCallbacks.some(e=>{o("Matching %s with %s",t.text,e.regexp);const r=e.regexp.exec(t.text);if(!r){return false}e.regexp.lastIndex=0;o("Matches %s",e.regexp);e.callback(t,r);return this.options.onlyFirstMatch})}if(t.reply_to_message){this._replyListeners.forEach(e=>{if(e.chatId===t.chat.id){if(e.messageId===t.reply_to_message.message_id){e.callback(t)}}})}}else if(r){o("Process Update edited_message %j",r);this.emit("edited_message",r);if(r.text){this.emit("edited_message_text",r)}if(r.caption){this.emit("edited_message_caption",r)}}else if(a){o("Process Update channel_post %j",a);this.emit("channel_post",a)}else if(i){o("Process Update edited_channel_post %j",i);this.emit("edited_channel_post",i);if(i.text){this.emit("edited_channel_post_text",i)}if(i.caption){this.emit("edited_channel_post_caption",i)}}else if(n){o("Process Update inline_query %j",n);this.emit("inline_query",n)}else if(s){o("Process Update chosen_inline_result %j",s);this.emit("chosen_inline_result",s)}else if(c){o("Process Update callback_query %j",c);this.emit("callback_query",c)}else if(u){o("Process Update shipping_query %j",u);this.emit("shipping_query",u)}else if(p){o("Process Update pre_checkout_query %j",p);this.emit("pre_checkout_query",p)}else if(l){o("Process Update poll %j",l);this.emit("poll",l)}}sendMessage(e,t,r={}){r.chat_id=e;r.text=t;return this._request("sendMessage",{form:r})}answerInlineQuery(e,t,r={}){r.inline_query_id=e;r.results=stringify(t);return this._request("answerInlineQuery",{form:r})}forwardMessage(e,t,r,a={}){a.chat_id=e;a.from_chat_id=t;a.message_id=r;return this._request("forwardMessage",{form:a})}sendPhoto(e,t,r={},a={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("photo",t,a);i.formData=e[0];i.qs.photo=e[1]}catch(e){return b.reject(e)}return this._request("sendPhoto",i)}sendAudio(e,t,r={},a={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("audio",t,a);i.formData=e[0];i.qs.audio=e[1]}catch(e){return b.reject(e)}return this._request("sendAudio",i)}sendDocument(e,t,r={},a={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("document",t,a);i.formData=e[0];i.qs.document=e[1]}catch(e){return b.reject(e)}return this._request("sendDocument",i)}sendSticker(e,t,r={},a={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("sticker",t,a);i.formData=e[0];i.qs.sticker=e[1]}catch(e){return b.reject(e)}return this._request("sendSticker",i)}sendVideo(e,t,r={},a={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("video",t,a);i.formData=e[0];i.qs.video=e[1]}catch(e){return b.reject(e)}return this._request("sendVideo",i)}sendAnimation(e,t,r={},a={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("animation",t,a);i.formData=e[0];i.qs.document=e[1]}catch(e){return b.reject(e)}return this._request("sendAnimation",i)}sendVideoNote(e,t,r={},a={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("video_note",t,a);i.formData=e[0];i.qs.video_note=e[1]}catch(e){return b.reject(e)}return this._request("sendVideoNote",i)}sendVoice(e,t,r={},a={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("voice",t,a);i.formData=e[0];i.qs.voice=e[1]}catch(e){return b.reject(e)}return this._request("sendVoice",i)}sendChatAction(e,t,r={}){r.chat_id=e;r.action=t;return this._request("sendChatAction",{form:r})}kickChatMember(e,t,r={}){r.chat_id=e;r.user_id=t;return this._request("kickChatMember",{form:r})}unbanChatMember(e,t,r={}){r.chat_id=e;r.user_id=t;return this._request("unbanChatMember",{form:r})}restrictChatMember(e,t,r={}){r.chat_id=e;r.user_id=t;return this._request("restrictChatMember",{form:r})}promoteChatMember(e,t,r={}){r.chat_id=e;r.user_id=t;return this._request("promoteChatMember",{form:r})}exportChatInviteLink(e,t={}){t.chat_id=e;return this._request("exportChatInviteLink",{form:t})}setChatPhoto(e,t,r={},a={}){const i={qs:r};i.qs.chat_id=e;try{const e=this._formatSendData("photo",t,a);i.formData=e[0];i.qs.photo=e[1]}catch(e){return b.reject(e)}return this._request("setChatPhoto",i)}deleteChatPhoto(e,t={}){t.chat_id=e;return this._request("deleteChatPhoto",{form:t})}setChatTitle(e,t,r={}){r.chat_id=e;r.title=t;return this._request("setChatTitle",{form:r})}setChatDescription(e,t,r={}){r.chat_id=e;r.description=t;return this._request("setChatDescription",{form:r})}pinChatMessage(e,t,r={}){r.chat_id=e;r.message_id=t;return this._request("pinChatMessage",{form:r})}unpinChatMessage(e,t={}){t.chat_id=e;return this._request("unpinChatMessage",{form:t})}answerCallbackQuery(e,t={}){if(typeof t!=="object"){y("The method signature answerCallbackQuery(callbackQueryId, text, showAlert) has been deprecated since v0.27.1");t={callback_query_id:arguments[0],text:arguments[1],show_alert:arguments[2]}}if(typeof e==="object"){y("The method signature answerCallbackQuery([options]) has been deprecated since v0.29.0");t=e}else{t.callback_query_id=e}return this._request("answerCallbackQuery",{form:t})}editMessageText(e,t={}){t.text=e;return this._request("editMessageText",{form:t})}editMessageCaption(e,t={}){t.caption=e;return this._request("editMessageCaption",{form:t})}editMessageMedia(e,t={}){t.media=stringify(e);return this._request("editMessageMedia",{form:t})}editMessageReplyMarkup(e,t={}){t.reply_markup=e;return this._request("editMessageReplyMarkup",{form:t})}getUserProfilePhotos(e,t={}){if(typeof t!=="object"){y("The method signature getUserProfilePhotos(userId, offset, limit) has been deprecated since v0.25.0");t={offset:arguments[1],limit:arguments[2]}}t.user_id=e;return this._request("getUserProfilePhotos",{form:t})}sendLocation(e,t,r,a={}){a.chat_id=e;a.latitude=t;a.longitude=r;return this._request("sendLocation",{form:a})}editMessageLiveLocation(e,t,r={}){r.latitude=e;r.longitude=t;return this._request("editMessageLiveLocation",{form:r})}stopMessageLiveLocation(e={}){return this._request("stopMessageLiveLocation",{form:e})}sendVenue(e,t,r,a,i,n={}){n.chat_id=e;n.latitude=t;n.longitude=r;n.title=a;n.address=i;return this._request("sendVenue",{form:n})}sendContact(e,t,r,a={}){a.chat_id=e;a.phone_number=t;a.first_name=r;return this._request("sendContact",{form:a})}sendPoll(e,t,r,a={}){a.chat_id=e;a.question=t;a.options=stringify(r);return this._request("sendPoll",{form:a})}stopPoll(e,t,r={}){r.chat_id=e;r.message_id=t;return this._request("stopPoll",{form:r})}getFile(e,t={}){t.file_id=e;return this._request("getFile",{form:t})}getFileLink(e,t={}){return this.getFile(e,t).then(e=>`${this.options.baseApiUrl}/file/bot${this.token}/${e.file_path}`)}getFileStream(e,t={}){const r=new f.PassThrough;r.path=e;this.getFileLink(e,t).then(e=>{r.emit("info",{uri:e});g(p({uri:e}),r)}).catch(e=>{r.emit("error",e)});return r}downloadFile(e,t,r={}){let a;let i;const n=new b((e,t)=>{a=e;i=t});const o=this.getFileStream(e,r);o.on("info",e=>{const r=e.uri.slice(e.uri.lastIndexOf("/")+1);const n=d.join(t,r);g(o,v.createWriteStream(n),e=>{if(e){return i(e)}return a(n)})});return n}onText(e,t){this._textRegexpCallbacks.push({regexp:e,callback:t})}removeTextListener(e){const t=this._textRegexpCallbacks.findIndex(t=>{return t.regexp===e});if(t===-1){return null}return this._textRegexpCallbacks.splice(t,1)[0]}onReplyToMessage(e,t,r){const a=++this._replyListenerId;this._replyListeners.push({id:a,chatId:e,messageId:t,callback:r});return a}removeReplyListener(e){const t=this._replyListeners.findIndex(t=>{return t.id===e});if(t===-1){return null}return this._replyListeners.splice(t,1)[0]}getChat(e,t={}){t.chat_id=e;return this._request("getChat",{form:t})}getChatAdministrators(e,t={}){t.chat_id=e;return this._request("getChatAdministrators",{form:t})}getChatMembersCount(e,t={}){t.chat_id=e;return this._request("getChatMembersCount",{form:t})}getChatMember(e,t,r={}){r.chat_id=e;r.user_id=t;return this._request("getChatMember",{form:r})}leaveChat(e,t={}){t.chat_id=e;return this._request("leaveChat",{form:t})}setChatStickerSet(e,t,r={}){r.chat_id=e;r.sticker_set_name=t;return this._request("setChatStickerSet",{form:r})}deleteChatStickerSet(e,t={}){t.chat_id=e;return this._request("deleteChatStickerSet",{form:t})}sendGame(e,t,r={}){r.chat_id=e;r.game_short_name=t;return this._request("sendGame",{form:r})}setGameScore(e,t,r={}){r.user_id=e;r.score=t;return this._request("setGameScore",{form:r})}getGameHighScores(e,t={}){t.user_id=e;return this._request("getGameHighScores",{form:t})}deleteMessage(e,t,r={}){r.chat_id=e;r.message_id=t;return this._request("deleteMessage",{form:r})}sendInvoice(e,t,r,a,i,n,o,s,c={}){c.chat_id=e;c.title=t;c.description=r;c.payload=a;c.provider_token=i;c.start_parameter=n;c.currency=o;c.prices=stringify(s);c.provider_data=stringify(c.provider_data);return this._request("sendInvoice",{form:c})}answerShippingQuery(e,t,r={}){r.shipping_query_id=e;r.ok=t;r.shipping_options=stringify(r.shipping_options);return this._request("answerShippingQuery",{form:r})}answerPreCheckoutQuery(e,t,r={}){r.pre_checkout_query_id=e;r.ok=t;return this._request("answerPreCheckoutQuery",{form:r})}getStickerSet(e,t={}){t.name=e;return this._request("getStickerSet",{form:t})}uploadStickerFile(e,t,r={},a={}){const i={qs:r};i.qs.user_id=e;try{const e=this._formatSendData("png_sticker",t,a);i.formData=e[0];i.qs.png_sticker=e[1]}catch(e){return b.reject(e)}return this._request("uploadStickerFile",i)}createNewStickerSet(e,t,r,a,i,n={},o={}){const s={qs:n};s.qs.user_id=e;s.qs.name=t;s.qs.title=r;s.qs.emojis=i;s.qs.mask_position=stringify(n.mask_position);try{const e=this._formatSendData("png_sticker",a,o);s.formData=e[0];s.qs.png_sticker=e[1]}catch(e){return b.reject(e)}return this._request("createNewStickerSet",s)}addStickerToSet(e,t,r,a,i={},n={}){const o={qs:i};o.qs.user_id=e;o.qs.name=t;o.qs.emojis=a;o.qs.mask_position=stringify(i.mask_position);try{const e=this._formatSendData("png_sticker",r,n);o.formData=e[0];o.qs.png_sticker=e[1]}catch(e){return b.reject(e)}return this._request("addStickerToSet",o)}setStickerPositionInSet(e,t,r={}){r.sticker=e;r.position=t;return this._request("setStickerPositionInSet",{form:r})}deleteStickerFromSet(e,t={}){t.sticker=e;return this._request("deleteStickerFromSet",{form:t})}sendMediaGroup(e,t,r={}){const a={qs:r};a.qs.chat_id=e;a.formData={};const i=[];let n=0;for(const e of t){const t=Object.assign({},e);delete t.media;delete t.fileOptions;try{const r=String(n);const[i,o]=this._formatSendData(r,e.media,e.fileOptions);if(i){a.formData[r]=i[r];t.media=`attach://${r}`}else{t.media=o}}catch(e){return b.reject(e)}i.push(t);n++}a.qs.media=JSON.stringify(i);return this._request("sendMediaGroup",a)}}e.exports=TelegramBot},,function(e,t,r){const a=r(963);const i=r(784)("node-telegram-bot-api");const n=r(418)("node-telegram-bot-api");const o=409;class TelegramBotPolling{constructor(e){this.bot=e;this.options=typeof e.options.polling==="boolean"?{}:e.options.polling;this.options.interval=typeof this.options.interval==="number"?this.options.interval:300;this.options.params=typeof this.options.params==="object"?this.options.params:{};this.options.params.offset=typeof this.options.params.offset==="number"?this.options.params.offset:0;this.options.params.timeout=typeof this.options.params.timeout==="number"?this.options.params.timeout:10;if(typeof this.options.timeout==="number"){n("`options.polling.timeout` is deprecated. Use `options.polling.params` instead.");this.options.params.timeout=this.options.timeout}this._lastUpdate=0;this._lastRequest=null;this._abort=false;this._pollingTimeout=null}start(e={}){if(this._lastRequest){if(!e.restart){return Promise.resolve()}return this.stop({cancel:true,reason:"Polling restart"}).then(()=>{return this._polling()})}return this._polling()}stop(e={}){if(!this._lastRequest){return Promise.resolve()}const t=this._lastRequest;this._lastRequest=null;clearTimeout(this._pollingTimeout);if(e.cancel){const r=e.reason||"Polling stop";t.cancel(r);return Promise.resolve()}this._abort=true;return t.finally(()=>{this._abort=false})}isPolling(){return!!this._lastRequest}_error(e){if(!this.bot.listeners("polling_error").length){return console.error("error: [polling_error] %j",e)}return this.bot.emit("polling_error",e)}_polling(){this._lastRequest=this._getUpdates().then(e=>{this._lastUpdate=Date.now();i("polling data %j",e);e.forEach(e=>{this.options.params.offset=e.update_id+1;i("updated offset: %s",this.options.params.offset);try{this.bot.processUpdate(e)}catch(e){e._processing=true;throw e}});return null}).catch(e=>{i("polling error: %s",e.message);if(!e._processing){return this._error(e)}delete e._processing;if(!this.bot.options.badRejection){return this._error(e)}const t={offset:this.options.params.offset,limit:1,timeout:0};return this.bot.getUpdates(t).then(()=>{return this._error(e)}).catch(t=>{const r="https://github.com/yagop/node-telegram-bot-api/issues/36#issuecomment-268532067";console.error("error: Internal handling of The Offset Infinite Loop failed");console.error(`error: Due to error '${t}'`);console.error("error: You may receive already-processed updates on app restart");console.error(`error: Please see ${r} for more information`);return this.bot.emit("error",new a.FatalError(e))})}).finally(()=>{if(this._abort){i("Polling is aborted!")}else{i("setTimeout for %s miliseconds",this.options.interval);this._pollingTimeout=setTimeout(()=>this._polling(),this.options.interval)}});return this._lastRequest}_unsetWebHook(){i("unsetting webhook");return this.bot._request("setWebHook")}_getUpdates(){i("polling with options: %j",this.options.params);return this.bot.getUpdates(this.options.params).catch(e=>{if(e.response&&e.response.statusCode===o){return this._unsetWebHook().then(()=>{return this.bot.getUpdates(this.options.params)})}throw e})}}e.exports=TelegramBotPolling},function(e,t,r){"use strict";var a=r(522);e.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:a.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:a.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}},,function(e,t,r){var a=r(519),i=r(669),n=r(149).Buffer;function BufferList(e){if(!(this instanceof BufferList))return new BufferList(e);this._bufs=[];this.length=0;if(typeof e=="function"){this._callback=e;var t=function piper(e){if(this._callback){this._callback(e);this._callback=null}}.bind(this);this.on("pipe",function onPipe(e){e.on("error",t)});this.on("unpipe",function onUnpipe(e){e.removeListener("error",t)})}else{this.append(e)}a.call(this)}i.inherits(BufferList,a);BufferList.prototype._offset=function _offset(e){var t=0,r=0,a;if(e===0)return[0,0];for(;rthis.length)a=this.length;if(r>=this.length)return e||n.alloc(0);if(a<=0)return e||n.alloc(0);var copy=!!e,i=this._offset(r),o=a-r,s=o,c=copy&&t||0,u=i[1],p,l;if(r===0&&a==this.length){if(!copy){return this._bufs.length===1?this._bufs[0]:n.concat(this._bufs,this.length)}for(l=0;lp){this._bufs[l].copy(e,c,u)}else{this._bufs[l].copy(e,c,u,u+s);break}c+=p;s-=p;if(u)u=0}return e};BufferList.prototype.shallowSlice=function shallowSlice(e,t){e=e||0;t=t||this.length;if(e<0)e+=this.length;if(t<0)t+=this.length;var r=this._offset(e),a=this._offset(t),i=this._bufs.slice(r[0],a[0]+1);if(a[1]==0)i.pop();else i[i.length-1]=i[i.length-1].slice(0,a[1]);if(r[1]!=0)i[0]=i[0].slice(r[1]);return new BufferList(i)};BufferList.prototype.toString=function toString(e,t,r){return this.slice(t,r).toString(e)};BufferList.prototype.consume=function consume(e){while(this._bufs.length){if(e>=this._bufs[0].length){e-=this._bufs[0].length;this.length-=this._bufs[0].length;this._bufs.shift()}else{this._bufs[0]=this._bufs[0].slice(e);this.length-=e;break}}return this};BufferList.prototype.duplicate=function duplicate(){var e=0,t=new BufferList;for(;ea){return a}return t}},function(e,t,r){var a=r(477);var i=r(669);var n=r(697);var o=r(286).isError;var s=n.sprintf;e.exports=VError;VError.VError=VError;VError.SError=SError;VError.WError=WError;VError.MultiError=MultiError;function parseConstructorArguments(e){var t,r,i,n,c;a.object(e,"args");a.bool(e.strict,"args.strict");a.array(e.argv,"args.argv");t=e.argv;if(t.length===0){r={};i=[]}else if(o(t[0])){r={cause:t[0]};i=t.slice(1)}else if(typeof t[0]==="object"){r={};for(c in t[0]){r[c]=t[0][c]}i=t.slice(1)}else{a.string(t[0],"first argument to VError, SError, or WError "+"constructor must be a string, object, or Error");r={};i=t}a.object(r);if(!r.strict&&!e.strict){i=i.map(function(e){return e===null?"null":e===undefined?"undefined":e})}if(i.length===0){n=""}else{n=s.apply(null,i)}return{options:r,shortmessage:n}}function VError(){var e,t,r,i,n,s,c;e=Array.prototype.slice.call(arguments,0);if(!(this instanceof VError)){t=Object.create(VError.prototype);VError.apply(t,arguments);return t}r=parseConstructorArguments({argv:e,strict:false});if(r.options.name){a.string(r.options.name,'error\'s "name" must be a string');this.name=r.options.name}this.jse_shortmsg=r.shortmessage;s=r.shortmessage;i=r.options.cause;if(i){a.ok(o(i),"cause is not an Error");this.jse_cause=i;if(!r.options.skipCauseMessage){s+=": "+i.message}}this.jse_info={};if(r.options.info){for(c in r.options.info){this.jse_info[c]=r.options.info[c]}}this.message=s;Error.call(this,s);if(Error.captureStackTrace){n=r.options.constructorOpt||this.constructor;Error.captureStackTrace(this,n)}return this}i.inherits(VError,Error);VError.prototype.name="VError";VError.prototype.toString=function ve_toString(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;if(this.message)e+=": "+this.message;return e};VError.prototype.cause=function ve_cause(){var e=VError.cause(this);return e===null?undefined:e};VError.cause=function(e){a.ok(o(e),"err must be an Error");return o(e.jse_cause)?e.jse_cause:null};VError.info=function(e){var t,r,i;a.ok(o(e),"err must be an Error");r=VError.cause(e);if(r!==null){t=VError.info(r)}else{t={}}if(typeof e.jse_info=="object"&&e.jse_info!==null){for(i in e.jse_info){t[i]=e.jse_info[i]}}return t};VError.findCauseByName=function(e,t){var r;a.ok(o(e),"err must be an Error");a.string(t,"name");a.ok(t.length>0,"name cannot be empty");for(r=e;r!==null;r=VError.cause(r)){a.ok(o(r));if(r.name==t){return r}}return null};VError.hasCauseWithName=function(e,t){return VError.findCauseByName(e,t)!==null};VError.fullStack=function(e){a.ok(o(e),"err must be an Error");var t=VError.cause(e);if(t){return e.stack+"\ncaused by: "+VError.fullStack(t)}return e.stack};VError.errorFromList=function(e){a.arrayOfObject(e,"errors");if(e.length===0){return null}e.forEach(function(e){a.ok(o(e))});if(e.length==1){return e[0]}return new MultiError(e)};VError.errorForEach=function(e,t){a.ok(o(e),"err must be an Error");a.func(t,"func");if(e instanceof MultiError){e.errors().forEach(function iterError(e){t(e)})}else{t(e)}};function SError(){var e,t,r,a;e=Array.prototype.slice.call(arguments,0);if(!(this instanceof SError)){t=Object.create(SError.prototype);SError.apply(t,arguments);return t}r=parseConstructorArguments({argv:e,strict:true});a=r.options;VError.call(this,a,"%s",r.shortmessage);return this}i.inherits(SError,VError);function MultiError(e){a.array(e,"list of errors");a.ok(e.length>0,"must be at least one error");this.ase_errors=e;VError.call(this,{cause:e[0]},"first of %d error%s",e.length,e.length==1?"":"s")}i.inherits(MultiError,VError);MultiError.prototype.name="MultiError";MultiError.prototype.errors=function me_errors(){return this.ase_errors.slice(0)};function WError(){var e,t,r,a;e=Array.prototype.slice.call(arguments,0);if(!(this instanceof WError)){t=Object.create(WError.prototype);WError.apply(t,e);return t}r=parseConstructorArguments({argv:e,strict:false});a=r.options;a["skipCauseMessage"]=true;VError.call(this,a,"%s",r.shortmessage);return this}i.inherits(WError,VError);WError.prototype.name="WError";WError.prototype.toString=function we_toString(){var e=this.hasOwnProperty("name")&&this.name||this.constructor.name||this.constructor.prototype.name;if(this.message)e+=": "+this.message;if(this.jse_cause&&this.jse_cause.message)e+="; caused by "+this.jse_cause.toString();return e};WError.prototype.cause=function we_cause(e){if(o(e))this.jse_cause=e;return this.jse_cause}},function(e,t,r){"use strict";var a=r(994),i=r(143),n=r(10),o=r(337);e.exports=function(e){var t="Please verify options";if(!o(e)){throw new TypeError(t)}if(!n(e.request)){throw new TypeError(t+".request")}if(!i(e.expose)||e.expose.length===0){throw new TypeError(t+".expose")}var r=a({PromiseImpl:e.PromiseImpl,constructorMixin:e.constructorMixin});var s=e.request.Request.prototype.init;e.request.Request.prototype.init=function RP$initInterceptor(e){if(o(e)&&!this._callback&&!this._rp_promise){r.init.call(this,e)}return s.apply(this,arguments)};var c=false;for(var u=0;u1){e.cancelPromise._reject(t)}else{e.cancelPromise._cancel()}e.cancelPromise=null;return true}return false}function succeed(){return finallyHandler.call(this,this.promise._target()._settledValue())}function fail(e){if(checkCancel(this,e))return;o.e=e;return o}function finallyHandler(r){var i=this.promise;var s=this.handler;if(!this.called){this.called=true;var c=this.isFinallyHandler()?s.call(i._boundValue()):s.call(i._boundValue(),r);if(c===a){return c}else if(c!==undefined){i._setReturnedNonUndefined();var u=t(c,i);if(u instanceof e){if(this.cancelPromise!=null){if(u._isCancelled()){var p=new n("late cancellation observer");i._attachExtraTrace(p);o.e=p;return o}else if(u.isPending()){u._attachCancellationCallback(new FinallyHandlerCancelReaction(this))}}return u._then(succeed,fail,undefined,this,undefined)}}}if(i.isRejected()){checkCancel(this);o.e=r;return o}else{checkCancel(this);return r}}e.prototype._passThrough=function(e,t,r,a){if(typeof e!=="function")return this.then();return this._then(r,a,undefined,new PassThroughHandlerContext(this,t,e),undefined)};e.prototype.lastly=e.prototype["finally"]=function(e){return this._passThrough(e,0,finallyHandler,finallyHandler)};e.prototype.tap=function(e){return this._passThrough(e,1,finallyHandler)};e.prototype.tapCatch=function(t){var r=arguments.length;if(r===1){return this._passThrough(t,1,undefined,finallyHandler)}else{var a=new Array(r-1),n=0,o;for(o=0;o1){var r=new Array(t-1),a=0,n;for(n=0;n0&&typeof e!=="function"&&typeof t!=="function"){var r=".then() only accepts functions but was passed: "+o.classString(e);if(arguments.length>1){r+=", "+o.classString(t)}this._warn(r)}return this._then(e,t,undefined,undefined,undefined)};Promise.prototype.done=function(e,t){var r=this._then(e,t,undefined,undefined,undefined);r._setIsFinal()};Promise.prototype.spread=function(e){if(typeof e!=="function"){return i("expecting a function but got "+o.classString(e))}return this.all()._then(e,undefined,undefined,w,undefined)};Promise.prototype.toJSON=function(){var e={isFulfilled:false,isRejected:false,fulfillmentValue:undefined,rejectionReason:undefined};if(this.isFulfilled()){e.fulfillmentValue=this.value();e.isFulfilled=true}else if(this.isRejected()){e.rejectionReason=this.reason();e.isRejected=true}return e};Promise.prototype.all=function(){if(arguments.length>0){this._warn(".all() was passed arguments but it does not take any")}return new S(this).promise()};Promise.prototype.error=function(e){return this.caught(o.originatesFromRejection,e)};Promise.getNewLibraryCopy=e.exports;Promise.is=function(e){return e instanceof Promise};Promise.fromNode=Promise.fromCallback=function(e){var t=new Promise(x);t._captureStackTrace();var r=arguments.length>1?!!Object(arguments[1]).multiArgs:false;var a=O(e)(q(t,r));if(a===z){t._rejectCallback(a.e,true)}if(!t._isFateSealed())t._setAsyncGuaranteed();return t};Promise.all=function(e){return new S(e).promise()};Promise.cast=function(e){var t=_(e);if(!(t instanceof Promise)){t=new Promise(x);t._captureStackTrace();t._setFulfilled();t._rejectionHandler0=e}return t};Promise.resolve=Promise.fulfilled=Promise.cast;Promise.reject=Promise.rejected=function(e){var t=new Promise(x);t._captureStackTrace();t._rejectCallback(e,true);return t};Promise.setScheduler=function(e){if(typeof e!=="function"){throw new b("expecting a function but got "+o.classString(e))}return g.setScheduler(e)};Promise.prototype._then=function(e,t,r,a,i){var n=i!==undefined;var s=n?i:new Promise(x);var c=this._target();var u=c._bitField;if(!n){s._propagateFrom(this,3);s._captureStackTrace();if(a===undefined&&(this._bitField&2097152)!==0){if(!((u&50397184)===0)){a=this._boundValue()}else{a=c===this?undefined:this._boundTo}}this._fireEvent("promiseChained",this,s)}var p=f();if(!((u&50397184)===0)){var l,m,d=c._settlePromiseCtx;if((u&33554432)!==0){m=c._rejectionHandler0;l=e}else if((u&16777216)!==0){m=c._fulfillmentHandler0;l=t;c._unsetRejectionIsUnhandled()}else{d=c._settlePromiseLateCancellationObserver;m=new k("late cancellation observer");c._attachExtraTrace(m);l=t}g.invoke(d,c,{handler:o.contextBind(p,l),promise:s,receiver:a,value:m})}else{c._addCallbacks(e,t,s,a,p)}return s};Promise.prototype._length=function(){return this._bitField&65535};Promise.prototype._isFateSealed=function(){return(this._bitField&117506048)!==0};Promise.prototype._isFollowing=function(){return(this._bitField&67108864)===67108864};Promise.prototype._setLength=function(e){this._bitField=this._bitField&-65536|e&65535};Promise.prototype._setFulfilled=function(){this._bitField=this._bitField|33554432;this._fireEvent("promiseFulfilled",this)};Promise.prototype._setRejected=function(){this._bitField=this._bitField|16777216;this._fireEvent("promiseRejected",this)};Promise.prototype._setFollowing=function(){this._bitField=this._bitField|67108864;this._fireEvent("promiseResolved",this)};Promise.prototype._setIsFinal=function(){this._bitField=this._bitField|4194304};Promise.prototype._isFinal=function(){return(this._bitField&4194304)>0};Promise.prototype._unsetCancelled=function(){this._bitField=this._bitField&~65536};Promise.prototype._setCancelled=function(){this._bitField=this._bitField|65536;this._fireEvent("promiseCancelled",this)};Promise.prototype._setWillBeCancelled=function(){this._bitField=this._bitField|8388608};Promise.prototype._setAsyncGuaranteed=function(){if(g.hasCustomScheduler())return;var e=this._bitField;this._bitField=e|(e&536870912)>>2^134217728};Promise.prototype._setNoAsyncGuarantee=function(){this._bitField=(this._bitField|536870912)&~134217728};Promise.prototype._receiverAt=function(e){var t=e===0?this._receiver0:this[e*4-4+3];if(t===n){return undefined}else if(t===undefined&&this._isBound()){return this._boundValue()}return t};Promise.prototype._promiseAt=function(e){return this[e*4-4+2]};Promise.prototype._fulfillmentHandlerAt=function(e){return this[e*4-4+0]};Promise.prototype._rejectionHandlerAt=function(e){return this[e*4-4+1]};Promise.prototype._boundValue=function(){};Promise.prototype._migrateCallback0=function(e){var t=e._bitField;var r=e._fulfillmentHandler0;var a=e._rejectionHandler0;var i=e._promise0;var o=e._receiverAt(0);if(o===undefined)o=n;this._addCallbacks(r,a,i,o,null)};Promise.prototype._migrateCallbackAt=function(e,t){var r=e._fulfillmentHandlerAt(t);var a=e._rejectionHandlerAt(t);var i=e._promiseAt(t);var o=e._receiverAt(t);if(o===undefined)o=n;this._addCallbacks(r,a,i,o,null)};Promise.prototype._addCallbacks=function(e,t,r,a,i){var n=this._length();if(n>=65535-4){n=0;this._setLength(0)}if(n===0){this._promise0=r;this._receiver0=a;if(typeof e==="function"){this._fulfillmentHandler0=o.contextBind(i,e)}if(typeof t==="function"){this._rejectionHandler0=o.contextBind(i,t)}}else{var s=n*4-4;this[s+2]=r;this[s+3]=a;if(typeof e==="function"){this[s+0]=o.contextBind(i,e)}if(typeof t==="function"){this[s+1]=o.contextBind(i,t)}}this._setLength(n+1);return n};Promise.prototype._proxy=function(e,t){this._addCallbacks(undefined,undefined,t,e,null)};Promise.prototype._resolveCallback=function(e,r){if((this._bitField&117506048)!==0)return;if(e===this)return this._rejectCallback(t(),false);var a=_(e,this);if(!(a instanceof Promise))return this._fulfill(e);if(r)this._propagateFrom(a,2);var i=a._target();if(i===this){this._reject(t());return}var n=i._bitField;if((n&50397184)===0){var o=this._length();if(o>0)i._migrateCallback0(this);for(var s=1;s>>16)return;if(e===this){var a=t();this._attachExtraTrace(a);return this._reject(a)}this._setFulfilled();this._rejectionHandler0=e;if((r&65535)>0){if((r&134217728)!==0){this._settlePromises()}else{g.settlePromises(this)}this._dereferenceTrace()}};Promise.prototype._reject=function(e){var t=this._bitField;if((t&117506048)>>>16)return;this._setRejected();this._fulfillmentHandler0=e;if(this._isFinal()){return g.fatalError(e,o.isNode)}if((t&65535)>0){g.settlePromises(this)}else{this._ensurePossibleRejectionHandled()}};Promise.prototype._fulfillPromises=function(e,t){for(var r=1;r0){if((e&16842752)!==0){var r=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,r,e);this._rejectPromises(t,r)}else{var a=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,a,e);this._fulfillPromises(t,a)}this._setLength(0)}this._clearCancellationData()};Promise.prototype._settledValue=function(){var e=this._bitField;if((e&33554432)!==0){return this._rejectionHandler0}else if((e&16777216)!==0){return this._fulfillmentHandler0}};if(typeof Symbol!=="undefined"&&Symbol.toStringTag){h.defineProperty(Promise.prototype,Symbol.toStringTag,{get:function(){return"Object"}})}function deferResolve(e){this.promise._resolveCallback(e)}function deferReject(e){this.promise._rejectCallback(e,false)}Promise.defer=Promise.pending=function(){C.deprecated("Promise.defer","new Promise");var e=new Promise(x);return{promise:e,resolve:deferResolve,reject:deferReject}};o.notEnumerableProp(Promise,"_makeSelfResolutionError",t);r(643)(Promise,x,_,i,C);r(755)(Promise,x,_,C);r(514)(Promise,S,i,C);r(733)(Promise);r(715)(Promise);r(809)(Promise,S,_,x,g);Promise.Promise=Promise;Promise.version="3.7.2";r(414)(Promise);r(25)(Promise,i,x,_,Proxyable,C);r(220)(Promise,S,i,_,x,C);r(694)(Promise);r(948)(Promise,x);r(849)(Promise,S,_,i);r(832)(Promise,x,_,i);r(814)(Promise,S,i,_,x,C);r(724)(Promise,S,C);r(323)(Promise,S,i);r(13)(Promise,x,C);r(780)(Promise,i,_,P,x,C);r(658)(Promise);r(685)(Promise,x);r(610)(Promise,x);o.toFastProperties(Promise);o.toFastProperties(Promise.prototype);function fillTypes(e){var t=new Promise(x);t._fulfillmentHandler0=e;t._rejectionHandler0=e;t._promise0=e;t._receiver0=e}fillTypes({a:1});fillTypes({b:2});fillTypes({c:3});fillTypes(1);fillTypes(function(){});fillTypes(undefined);fillTypes(false);fillTypes(new Promise(x));C.setBounds(v.firstLineError,o.lastLineError);return Promise}},,function(e,t,r){var a=r(498);var i=Object.prototype;var n=i.hasOwnProperty;var o=i.toString;var s=a?a.toStringTag:undefined;function getRawTag(e){var t=n.call(e,s),r=e[s];try{e[s]=undefined;var a=true}catch(e){}var i=o.call(e);if(a){if(t){e[s]=r}else{delete e[s]}}return i}e.exports=getRawTag},,,function(e){function isObject(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}e.exports=isObject},,,,,function(e){e.exports={$id:"cache.json#",$schema:"http://json-schema.org/draft-06/schema#",properties:{beforeRequest:{oneOf:[{type:"null"},{$ref:"beforeRequest.json#"}]},afterRequest:{oneOf:[{type:"null"},{$ref:"afterRequest.json#"}]},comment:{type:"string"}}}},function(e,t,r){"use strict";var a=r(916),i=r(10),n=r(337),o=r(935),s=r(679);e.exports=function(e){var t="Please verify options";if(!n(e)){throw new TypeError(t)}if(!i(e.PromiseImpl)){throw new TypeError(t+".PromiseImpl")}if(!s(e.constructorMixin)&&!i(e.constructorMixin)){throw new TypeError(t+".PromiseImpl")}var r=e.PromiseImpl;var c=e.constructorMixin;var u={};u.init=function(e){var t=this;t._rp_promise=new r(function(e,r){t._rp_resolve=e;t._rp_reject=r;if(c){c.apply(t,arguments)}});t._rp_callbackOrig=e.callback;e.callback=t.callback=function RP$callback(e,r,a){u.callback.call(t,e,r,a)};if(o(e.method)){e.method=e.method.toUpperCase()}e.transform=e.transform||u.defaultTransformations[e.method];t._rp_options=e;t._rp_options.simple=e.simple!==false;t._rp_options.resolveWithFullResponse=e.resolveWithFullResponse===true;t._rp_options.transform2xxOnly=e.transform2xxOnly===true};u.defaultTransformations={HEAD:function(e,t,r){return r?t:t.headers}};u.callback=function(e,t,n){var o=this;var s=false,c=null;if(i(o._rp_callbackOrig)){try{o._rp_callbackOrig.apply(o,arguments)}catch(e){s=true;c=e}}var u=!e&&/^2/.test(""+t.statusCode);if(e){o._rp_reject(new a.RequestError(e,o._rp_options,t))}else if(o._rp_options.simple&&!u){if(i(o._rp_options.transform)&&o._rp_options.transform2xxOnly===false){new r(function(e){e(o._rp_options.transform(n,t,o._rp_options.resolveWithFullResponse))}).then(function(e){o._rp_reject(new a.StatusCodeError(t.statusCode,n,o._rp_options,e))}).catch(function(e){o._rp_reject(new a.TransformError(e,o._rp_options,t))})}else{o._rp_reject(new a.StatusCodeError(t.statusCode,n,o._rp_options,t))}}else{if(i(o._rp_options.transform)&&(u||o._rp_options.transform2xxOnly===false)){new r(function(e){e(o._rp_options.transform(n,t,o._rp_options.resolveWithFullResponse))}).then(function(e){o._rp_resolve(e)}).catch(function(e){o._rp_reject(new a.TransformError(e,o._rp_options,t))})}else if(o._rp_options.resolveWithFullResponse){o._rp_resolve(t)}else{o._rp_resolve(n)}}if(s){throw c}};u.exposePromiseMethod=function(e,t,r,a,i){i=i||a;if(i in e){throw new Error('Unable to expose method "'+i+'"')}e[i]=function RP$exposed(){var e=t||this;return e[r][a].apply(e[r],arguments)}};u.exposePromise=function(e,t,r,a){a=a||"promise";if(a in e){throw new Error('Unable to expose method "'+a+'"')}e[a]=function RP$promise(){var e=t||this;return e[r]}};return u}},,,,function(e,t,r){var a=r(357);var i=r(215).Buffer;var n=r(362);var o=r(584);var s=o.newInvalidAsn1Error;var c={size:1024,growthFactor:8};function merge(e,t){a.ok(e);a.equal(typeof e,"object");a.ok(t);a.equal(typeof t,"object");var r=Object.getOwnPropertyNames(e);r.forEach(function(r){if(t[r])return;var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a)});return t}function Writer(e){e=merge(c,e||{});this._buf=i.alloc(e.size||1024);this._size=this._buf.length;this._offset=0;this._options=e;this._seq=[]}Object.defineProperty(Writer.prototype,"buffer",{get:function(){if(this._seq.length)throw s(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}});Writer.prototype.writeByte=function(e){if(typeof e!=="number")throw new TypeError("argument must be a Number");this._ensure(1);this._buf[this._offset++]=e};Writer.prototype.writeInt=function(e,t){if(typeof e!=="number")throw new TypeError("argument must be a Number");if(typeof t!=="number")t=n.Integer;var r=4;while(((e&4286578688)===0||(e&4286578688)===4286578688>>0)&&r>1){r--;e<<=8}if(r>4)throw s("BER ints cannot be > 0xffffffff");this._ensure(2+r);this._buf[this._offset++]=t;this._buf[this._offset++]=r;while(r-- >0){this._buf[this._offset++]=(e&4278190080)>>>24;e<<=8}};Writer.prototype.writeNull=function(){this.writeByte(n.Null);this.writeByte(0)};Writer.prototype.writeEnumeration=function(e,t){if(typeof e!=="number")throw new TypeError("argument must be a Number");if(typeof t!=="number")t=n.Enumeration;return this.writeInt(e,t)};Writer.prototype.writeBoolean=function(e,t){if(typeof e!=="boolean")throw new TypeError("argument must be a Boolean");if(typeof t!=="number")t=n.Boolean;this._ensure(3);this._buf[this._offset++]=t;this._buf[this._offset++]=1;this._buf[this._offset++]=e?255:0};Writer.prototype.writeString=function(e,t){if(typeof e!=="string")throw new TypeError("argument must be a string (was: "+typeof e+")");if(typeof t!=="number")t=n.OctetString;var r=i.byteLength(e);this.writeByte(t);this.writeLength(r);if(r){this._ensure(r);this._buf.write(e,this._offset);this._offset+=r}};Writer.prototype.writeBuffer=function(e,t){if(typeof t!=="number")throw new TypeError("tag must be a number");if(!i.isBuffer(e))throw new TypeError("argument must be a buffer");this.writeByte(t);this.writeLength(e.length);this._ensure(e.length);e.copy(this._buf,this._offset,0,e.length);this._offset+=e.length};Writer.prototype.writeStringArray=function(e){if(!e instanceof Array)throw new TypeError("argument must be an Array[String]");var t=this;e.forEach(function(e){t.writeString(e)})};Writer.prototype.writeOID=function(e,t){if(typeof e!=="string")throw new TypeError("argument must be a string");if(typeof t!=="number")t=n.OID;if(!/^([0-9]+\.){3,}[0-9]+$/.test(e))throw new Error("argument is not a valid OID string");function encodeOctet(e,t){if(t<128){e.push(t)}else if(t<16384){e.push(t>>>7|128);e.push(t&127)}else if(t<2097152){e.push(t>>>14|128);e.push((t>>>7|128)&255);e.push(t&127)}else if(t<268435456){e.push(t>>>21|128);e.push((t>>>14|128)&255);e.push((t>>>7|128)&255);e.push(t&127)}else{e.push((t>>>28|128)&255);e.push((t>>>21|128)&255);e.push((t>>>14|128)&255);e.push((t>>>7|128)&255);e.push(t&127)}}var r=e.split(".");var a=[];a.push(parseInt(r[0],10)*40+parseInt(r[1],10));r.slice(2).forEach(function(e){encodeOctet(a,parseInt(e,10))});var i=this;this._ensure(2+a.length);this.writeByte(t);this.writeLength(a.length);a.forEach(function(e){i.writeByte(e)})};Writer.prototype.writeLength=function(e){if(typeof e!=="number")throw new TypeError("argument must be a Number");this._ensure(4);if(e<=127){this._buf[this._offset++]=e}else if(e<=255){this._buf[this._offset++]=129;this._buf[this._offset++]=e}else if(e<=65535){this._buf[this._offset++]=130;this._buf[this._offset++]=e>>8;this._buf[this._offset++]=e}else if(e<=16777215){this._buf[this._offset++]=131;this._buf[this._offset++]=e>>16;this._buf[this._offset++]=e>>8;this._buf[this._offset++]=e}else{throw s("Length too long (> 4 bytes)")}};Writer.prototype.startSequence=function(e){if(typeof e!=="number")e=n.Sequence|n.Constructor;this.writeByte(e);this._seq.push(this._offset);this._ensure(3);this._offset+=3};Writer.prototype.endSequence=function(){var e=this._seq.pop();var t=e+3;var r=this._offset-t;if(r<=127){this._shift(t,r,-2);this._buf[e]=r}else if(r<=255){this._shift(t,r,-1);this._buf[e]=129;this._buf[e+1]=r}else if(r<=65535){this._buf[e]=130;this._buf[e+1]=r>>8;this._buf[e+2]=r}else if(r<=16777215){this._shift(t,r,1);this._buf[e]=131;this._buf[e+1]=r>>16;this._buf[e+2]=r>>8;this._buf[e+3]=r}else{throw s("Sequence too long")}};Writer.prototype._shift=function(e,t,r){a.ok(e!==undefined);a.ok(t!==undefined);a.ok(r);this._buf.copy(this._buf,e+r,e,e+t);this._offset+=r};Writer.prototype._ensure=function(e){a.ok(e);if(this._size-this._offset { + let buildStatus = 'Unknown'; + if (workflowSuccess) { + buildStatus = 'Success'; + } else if (workflowFailure) { + buildStatus = 'Failure'; + } + let message = + '-------------------------------------\n' + + `Workflow build ${buildStatus}!\n` + + `Title: ${title}\n` + + `Branch: ${prBranchName}\n` + + `User: ${ghActor}\n` + + 'Commit Msg:\n' + + `${prCommitMessage}\n\n` + + `Job Log here\n` + + `Link to issue/PR\n` + + '--------------------------------------'; + return message; +}; + +const evresp = (gevent) => { + switch (gevent) { + case 'pull_request': + return buildPrContent(); + } +}; + +const output = evresp(ghEvent); +bot.sendMessage(chatId, output, { parse_mode: 'html' }); diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..ec5dc41 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,658 @@ +{ + "name": "Telewire", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "@zeit/ncc": { + "version": "0.21.1", + "resolved": "https://registry.npmjs.org/@zeit/ncc/-/ncc-0.21.1.tgz", + "integrity": "sha512-M9WzgquSOt2nsjRkYM9LRylBLmmlwNCwYbm3Up3PDEshfvdmIfqpFNSK8EJvR18NwZjGHE5z2avlDtYQx2JQnw==", + "dev": true + }, + "ajv": { + "version": "6.12.4", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.4.tgz", + "integrity": "sha512-eienB2c9qVQs2KWexhkrdMLVDoIQCz5KSeLxwg9Lzk4DOfBtIK9PQwwufcsn1jjGuf9WZmqPMbGxOzfcuphJCQ==", + "requires": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + } + }, + "array.prototype.findindex": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array.prototype.findindex/-/array.prototype.findindex-2.1.0.tgz", + "integrity": "sha512-25kJHCjXltdtljjwcyKvCTywmbUAeTJVB2ADVe0oP4jcefsd+K9pJJ3IdHPahLICoszcCLoNF+evWpEduzBlng==", + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.4" + } + }, + "asn1": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", + "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=" + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=" + }, + "aws4": { + "version": "1.10.1", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.10.1.tgz", + "integrity": "sha512-zg7Hz2k5lI8kb7U32998pRRFin7zJlkfezGJjUc2heaD4Pw2wObakCDVzkKztTm/Ln7eiVvYsjqak0Ed4LkMDA==" + }, + "bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", + "requires": { + "tweetnacl": "^0.14.3" + } + }, + "bl": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/bl/-/bl-1.2.2.tgz", + "integrity": "sha512-e8tQYnZodmebYDWGH7KMRvtzKXaJHx3BbilrgZCfvyLUYdKpK1t5PSPmpkny/SgiTSCnjfLW7v5rlONXVFkQEA==", + "requires": { + "readable-stream": "^2.3.5", + "safe-buffer": "^5.1.1" + } + }, + "bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==" + }, + "caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=" + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "requires": { + "delayed-stream": "~1.0.0" + } + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=" + }, + "dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", + "requires": { + "assert-plus": "^1.0.0" + } + }, + "debug": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", + "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", + "requires": { + "ms": "^2.1.1" + } + }, + "define-properties": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", + "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", + "requires": { + "object-keys": "^1.0.12" + } + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + }, + "depd": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", + "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=" + }, + "dotenv": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-8.2.0.tgz", + "integrity": "sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==" + }, + "ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", + "requires": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "requires": { + "once": "^1.4.0" + } + }, + "es-abstract": { + "version": "1.17.6", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.6.tgz", + "integrity": "sha512-Fr89bON3WFyUi5EvAeI48QTWX0AyekGgLA8H+c+7fbfCkJwRWRMLd8CQedNEyJuoYYhmtEqY92pgte1FAhBlhw==", + "requires": { + "es-to-primitive": "^1.2.1", + "function-bind": "^1.1.1", + "has": "^1.0.3", + "has-symbols": "^1.0.1", + "is-callable": "^1.2.0", + "is-regex": "^1.1.0", + "object-inspect": "^1.7.0", + "object-keys": "^1.1.1", + "object.assign": "^4.1.0", + "string.prototype.trimend": "^1.0.1", + "string.prototype.trimstart": "^1.0.1" + } + }, + "es-to-primitive": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz", + "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==", + "requires": { + "is-callable": "^1.1.4", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.2" + } + }, + "eventemitter3": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-3.1.2.tgz", + "integrity": "sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q==" + }, + "extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=" + }, + "fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + }, + "file-type": { + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/file-type/-/file-type-3.9.0.tgz", + "integrity": "sha1-JXoHg4TR24CHvESdEH1SpSZyuek=" + }, + "forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=" + }, + "form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + } + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + }, + "getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", + "requires": { + "assert-plus": "^1.0.0" + } + }, + "har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=" + }, + "har-validator": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "requires": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + } + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-symbols": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz", + "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==" + }, + "http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", + "requires": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "is-callable": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.0.tgz", + "integrity": "sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw==" + }, + "is-date-object": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz", + "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==" + }, + "is-regex": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.1.tgz", + "integrity": "sha512-1+QkEcxiLlB7VEyFtyBg94e08OAsvq7FUBgApTq/w2ymCLyKJgDPsybBENVtA7XCQEgEXxKPonG+mvYRxh/LIg==", + "requires": { + "has-symbols": "^1.0.1" + } + }, + "is-symbol": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz", + "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==", + "requires": { + "has-symbols": "^1.0.1" + } + }, + "is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=" + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=" + }, + "isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=" + }, + "jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" + }, + "json-schema": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", + "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=" + }, + "json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" + }, + "jsprim": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", + "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", + "requires": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.2.3", + "verror": "1.10.0" + } + }, + "lodash": { + "version": "4.17.20", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-PlhdFcillOINfeV7Ni6oF1TAEayyZBoZ8bcshTHqOYJYlrqzRK5hagpagky5o4HfCzzd1TRkXPMFq6cKk9rGmA==" + }, + "mime": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==" + }, + "mime-db": { + "version": "1.44.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.44.0.tgz", + "integrity": "sha512-/NOTfLrsPBVeH7YtFPgsVWveuL+4SjjYxaQ1xtM1KMFj7HdxlBlxeyNLzhyJVx7r4rZGJAZ/6lkKCitSc/Nmpg==" + }, + "mime-types": { + "version": "2.1.27", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.27.tgz", + "integrity": "sha512-JIhqnCasI9yD+SsmkquHBxTSEuZdQX5BuQnS2Vc7puQQQ+8yiP5AY5uWhpdv4YL4VM5c6iliiYWPgJ/nJQLp7w==", + "requires": { + "mime-db": "1.44.0" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node-telegram-bot-api": { + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/node-telegram-bot-api/-/node-telegram-bot-api-0.40.0.tgz", + "integrity": "sha512-kDVCU1Y0L7hDnkm8oosO7cKIRyftPOvIGMvDbj7CU/FDIqqkC13VytRieHb/pFgTfFmiCpBTzAeK66YLHIfchQ==", + "requires": { + "array.prototype.findindex": "^2.0.2", + "bl": "^1.2.1", + "bluebird": "^3.5.1", + "debug": "^3.1.0", + "depd": "^1.1.1", + "eventemitter3": "^3.0.0", + "file-type": "^3.9.0", + "mime": "^1.6.0", + "pump": "^2.0.0", + "request": "^2.83.0", + "request-promise": "^4.2.2" + } + }, + "oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==" + }, + "object-inspect": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.8.0.tgz", + "integrity": "sha512-jLdtEOB112fORuypAyl/50VRVIBIdVQOSUUGQHzJ4xBSbit81zRarz7GThkEFZy1RceYrWYcPcBFPQwHyAc1gA==" + }, + "object-keys": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", + "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==" + }, + "object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "requires": { + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "requires": { + "wrappy": "1" + } + }, + "performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=" + }, + "process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "psl": { + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", + "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==" + }, + "pump": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", + "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "punycode": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", + "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" + }, + "qs": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", + "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==" + }, + "readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + } + } + }, + "request": { + "version": "2.88.2", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "requires": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + } + }, + "request-promise": { + "version": "4.2.6", + "resolved": "https://registry.npmjs.org/request-promise/-/request-promise-4.2.6.tgz", + "integrity": "sha512-HCHI3DJJUakkOr8fNoCc73E5nU5bqITjOYFMDrKHYOXWXrgD/SBaC7LjwuPymUprRyuF06UK7hd/lMHkmUXglQ==", + "requires": { + "bluebird": "^3.5.0", + "request-promise-core": "1.1.4", + "stealthy-require": "^1.1.1", + "tough-cookie": "^2.3.3" + } + }, + "request-promise-core": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.4.tgz", + "integrity": "sha512-TTbAfBBRdWD7aNNOoVOBH4pN/KigV6LyapYNNlAPA8JwbovRti1E88m3sYAwsLi5ryhPKsE9APwnjFTgdUjTpw==", + "requires": { + "lodash": "^4.17.19" + } + }, + "safe-buffer": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "sshpk": { + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", + "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", + "requires": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + } + }, + "stealthy-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/stealthy-require/-/stealthy-require-1.1.1.tgz", + "integrity": "sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks=" + }, + "string.prototype.trimend": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz", + "integrity": "sha512-LRPxFUaTtpqYsTeNKaFOw3R4bxIzWOnbQ837QfBylo8jIxtcbK/A/sMV7Q+OAV/vWo+7s25pOE10KYSjaSO06g==", + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + } + }, + "string.prototype.trimstart": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz", + "integrity": "sha512-XxZn+QpvrBI1FOcg6dIpxUPgWCPuNXvMD72aaRaUQv1eD4e/Qy8i/hFTe0BUmD60p/QA6bh1avmuPTfNjqVWRw==", + "requires": { + "define-properties": "^1.1.3", + "es-abstract": "^1.17.5" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "requires": { + "safe-buffer": "~5.1.0" + }, + "dependencies": { + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + } + } + }, + "tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "requires": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + } + }, + "tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", + "requires": { + "safe-buffer": "^5.0.1" + } + }, + "tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=" + }, + "uri-js": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.3.0.tgz", + "integrity": "sha512-Q9Q9RlMM08eWfdPPmDDrXd8Ny3R1sY/DaRDR2zTPPneJ6GYiLx3++fPiZobv49ovkYAnHl/P72Ie3HWXIRVVYA==", + "requires": { + "punycode": "^2.1.0" + } + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" + }, + "uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" + }, + "verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", + "requires": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..b8bb028 --- /dev/null +++ b/package.json @@ -0,0 +1,20 @@ +{ + "name": "tele-status", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1", + "build": "ncc build index.js -C -m -o dist" + }, + "keywords": [], + "author": "", + "license": "MIT", + "dependencies": { + "dotenv": "^8.2.0", + "node-telegram-bot-api": "^0.40.0" + }, + "devDependencies": { + "@zeit/ncc": "^0.21.1" + } +} diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..bc0a863 --- /dev/null +++ b/yarn.lock @@ -0,0 +1,610 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@zeit/ncc@^0.21.1": + version "0.21.1" + resolved "https://registry.yarnpkg.com/@zeit/ncc/-/ncc-0.21.1.tgz#44fd4359c54ba34a018a5ccf7a315489db20a733" + integrity sha512-M9WzgquSOt2nsjRkYM9LRylBLmmlwNCwYbm3Up3PDEshfvdmIfqpFNSK8EJvR18NwZjGHE5z2avlDtYQx2JQnw== + +ajv@^6.5.5: + version "6.12.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.0.tgz#06d60b96d87b8454a5adaba86e7854da629db4b7" + integrity sha512-D6gFiFA0RRLyUbvijN74DWAjXSFxWKaWP7mldxkVhyhAV3+SWA9HEJPHQ2c9soIeTFJqcSdFDGFgdqs1iUU2Hw== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +array.prototype.findindex@^2.0.2: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array.prototype.findindex/-/array.prototype.findindex-2.1.0.tgz#f43f8ed823274f0733647ee403b2c0c9771a97fe" + integrity sha512-25kJHCjXltdtljjwcyKvCTywmbUAeTJVB2ADVe0oP4jcefsd+K9pJJ3IdHPahLICoszcCLoNF+evWpEduzBlng== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.17.4" + +asn1@~0.2.3: + version "0.2.4" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.4.tgz#8d2475dfab553bb33e77b54e59e880bb8ce23136" + integrity sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg== + dependencies: + safer-buffer "~2.1.0" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + integrity sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU= + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= + +aws-sign2@~0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" + integrity sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg= + +aws4@^1.8.0: + version "1.9.1" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.9.1.tgz#7e33d8f7d449b3f673cd72deb9abdc552dbe528e" + integrity sha512-wMHVg2EOHaMRxbzgFJ9gtjOOCrI80OHLG14rxi28XwOW8ux6IiEbRCGGGqCtdAIg4FQCbW20k9RsT4y3gJlFug== + +bcrypt-pbkdf@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" + integrity sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4= + dependencies: + tweetnacl "^0.14.3" + +bl@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/bl/-/bl-1.2.2.tgz#a160911717103c07410cef63ef51b397c025af9c" + integrity sha512-e8tQYnZodmebYDWGH7KMRvtzKXaJHx3BbilrgZCfvyLUYdKpK1t5PSPmpkny/SgiTSCnjfLW7v5rlONXVFkQEA== + dependencies: + readable-stream "^2.3.5" + safe-buffer "^5.1.1" + +bluebird@^3.5.0, bluebird@^3.5.1: + version "3.7.2" + resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.7.2.tgz#9f229c15be272454ffa973ace0dbee79a1b0c36f" + integrity sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg== + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= + +combined-stream@^1.0.6, combined-stream@~1.0.6: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +core-util-is@1.0.2, core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + integrity sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA= + dependencies: + assert-plus "^1.0.0" + +debug@^3.1.0: + version "3.2.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.6.tgz#e83d17de16d8a7efb7717edbe5fb10135eee629b" + integrity sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ== + dependencies: + ms "^2.1.1" + +define-properties@^1.1.2, define-properties@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" + integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== + dependencies: + object-keys "^1.0.12" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= + +depd@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + integrity sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak= + +dotenv@^8.2.0: + version "8.2.0" + resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a" + integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw== + +ecc-jsbn@~0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" + integrity sha1-OoOpBOVDUyh4dMVkt1SThoSamMk= + dependencies: + jsbn "~0.1.0" + safer-buffer "^2.1.0" + +end-of-stream@^1.1.0: + version "1.4.4" + resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" + integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== + dependencies: + once "^1.4.0" + +es-abstract@^1.17.4: + version "1.17.5" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.17.5.tgz#d8c9d1d66c8981fb9200e2251d799eee92774ae9" + integrity sha512-BR9auzDbySxOcfog0tLECW8l28eRGpDpU3Dm3Hp4q/N+VtLTmyj4EUN088XZWQDW/hzj6sYRDXeOFsaAODKvpg== + dependencies: + es-to-primitive "^1.2.1" + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.1" + is-callable "^1.1.5" + is-regex "^1.0.5" + object-inspect "^1.7.0" + object-keys "^1.1.1" + object.assign "^4.1.0" + string.prototype.trimleft "^2.1.1" + string.prototype.trimright "^2.1.1" + +es-to-primitive@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + +eventemitter3@^3.0.0: + version "3.1.2" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-3.1.2.tgz#2d3d48f9c346698fce83a85d7d664e98535df6e7" + integrity sha512-tvtQIeLVHjDkJYnzf2dgVMxfuSGJeM/7UCG17TT4EumTfNtF+0nebF/4zWOIkCreAbtNqhGEboB6BWrwqNaw4Q== + +extend@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== + +extsprintf@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + integrity sha1-lpGEQOMEGnpBT4xS48V06zw+HgU= + +extsprintf@^1.2.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.0.tgz#e2689f8f356fad62cca65a3a91c5df5f9551692f" + integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8= + +fast-deep-equal@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz#545145077c501491e33b15ec408c294376e94ae4" + integrity sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA== + +fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +file-type@^3.9.0: + version "3.9.0" + resolved "https://registry.yarnpkg.com/file-type/-/file-type-3.9.0.tgz#257a078384d1db8087bc449d107d52a52672b9e9" + integrity sha1-JXoHg4TR24CHvESdEH1SpSZyuek= + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE= + +form-data@~2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" + integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.6" + mime-types "^2.1.12" + +function-bind@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + integrity sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo= + dependencies: + assert-plus "^1.0.0" + +har-schema@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" + integrity sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI= + +har-validator@~5.1.3: + version "5.1.3" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.3.tgz#1ef89ebd3e4996557675eed9893110dc350fa080" + integrity sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g== + dependencies: + ajv "^6.5.5" + har-schema "^2.0.0" + +has-symbols@^1.0.0, has-symbols@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.1.tgz#9f5214758a44196c406d9bd76cebf81ec2dd31e8" + integrity sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg== + +has@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== + dependencies: + function-bind "^1.1.1" + +http-signature@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" + integrity sha1-muzZJRFHcvPZW2WmCruPfBj7rOE= + dependencies: + assert-plus "^1.0.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +inherits@~2.0.3: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +is-callable@^1.1.4, is-callable@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.5.tgz#f7e46b596890456db74e7f6e976cb3273d06faab" + integrity sha512-ESKv5sMCJB2jnHTWZ3O5itG+O128Hsus4K4Qh1h2/cgn2vbgnLSVqfV46AeJA9D5EeeLa9w81KUXMtn34zhX+Q== + +is-date-object@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.2.tgz#bda736f2cd8fd06d32844e7743bfa7494c3bfd7e" + integrity sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g== + +is-regex@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.5.tgz#39d589a358bf18967f726967120b8fc1aed74eae" + integrity sha512-vlKW17SNq44owv5AQR3Cq0bQPEb8+kF3UKZ2fiZNOWtztYE5i0CzCZxFDwO58qAOWtxdBRVO/V5Qin1wjCqFYQ== + dependencies: + has "^1.0.3" + +is-symbol@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.3.tgz#38e1014b9e6329be0de9d24a414fd7441ec61937" + integrity sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ== + dependencies: + has-symbols "^1.0.1" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= + +isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + integrity sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo= + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + integrity sha1-peZUwuWi3rXyAdls77yoDA7y9RM= + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + integrity sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= + +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + integrity sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus= + +jsprim@^1.2.2: + version "1.4.1" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.1.tgz#313e66bc1e5cc06e438bc1b7499c2e5c56acb6a2" + integrity sha1-MT5mvB5cwG5Di8G3SZwuXFastqI= + dependencies: + assert-plus "1.0.0" + extsprintf "1.3.0" + json-schema "0.2.3" + verror "1.10.0" + +lodash@^4.17.15: + version "4.17.19" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b" + integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ== + +mime-db@1.43.0: + version "1.43.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.43.0.tgz#0a12e0502650e473d735535050e7c8f4eb4fae58" + integrity sha512-+5dsGEEovYbT8UY9yD7eE4XTc4UwJ1jBYlgaQQF38ENsKR3wj/8q8RFZrF9WIZpB2V1ArTVFUva8sAul1NzRzQ== + +mime-types@^2.1.12, mime-types@~2.1.19: + version "2.1.26" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.26.tgz#9c921fc09b7e149a65dfdc0da4d20997200b0a06" + integrity sha512-01paPWYgLrkqAyrlDorC1uDwl2p3qZT7yl806vW7DvDoxwXi46jsjFbg+WdwotBIk6/MbEhO/dh5aZ5sNj/dWQ== + dependencies: + mime-db "1.43.0" + +mime@^1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +ms@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +node-telegram-bot-api@^0.40.0: + version "0.40.0" + resolved "https://registry.yarnpkg.com/node-telegram-bot-api/-/node-telegram-bot-api-0.40.0.tgz#7e6acf631e868b8000025808daf566181c7673d5" + integrity sha512-kDVCU1Y0L7hDnkm8oosO7cKIRyftPOvIGMvDbj7CU/FDIqqkC13VytRieHb/pFgTfFmiCpBTzAeK66YLHIfchQ== + dependencies: + array.prototype.findindex "^2.0.2" + bl "^1.2.1" + bluebird "^3.5.1" + debug "^3.1.0" + depd "^1.1.1" + eventemitter3 "^3.0.0" + file-type "^3.9.0" + mime "^1.6.0" + pump "^2.0.0" + request "^2.83.0" + request-promise "^4.2.2" + +oauth-sign@~0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" + integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== + +object-inspect@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.7.0.tgz#f4f6bd181ad77f006b5ece60bd0b6f398ff74a67" + integrity sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw== + +object-keys@^1.0.11, object-keys@^1.0.12, object-keys@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== + +object.assign@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.0.tgz#968bf1100d7956bb3ca086f006f846b3bc4008da" + integrity sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w== + dependencies: + define-properties "^1.1.2" + function-bind "^1.1.1" + has-symbols "^1.0.0" + object-keys "^1.0.11" + +once@^1.3.1, once@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + dependencies: + wrappy "1" + +performance-now@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" + integrity sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns= + +process-nextick-args@~2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" + integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== + +psl@^1.1.28: + version "1.8.0" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" + integrity sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ== + +pump@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909" + integrity sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA== + dependencies: + end-of-stream "^1.1.0" + once "^1.3.1" + +punycode@^2.1.0, punycode@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" + integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== + +qs@~6.5.2: + version "6.5.2" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36" + integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA== + +readable-stream@^2.3.5: + version "2.3.7" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" + integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" + util-deprecate "~1.0.1" + +request-promise-core@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/request-promise-core/-/request-promise-core-1.1.3.tgz#e9a3c081b51380dfea677336061fea879a829ee9" + integrity sha512-QIs2+ArIGQVp5ZYbWD5ZLCY29D5CfWizP8eWnm8FoGD1TX61veauETVQbrV60662V0oFBkrDOuaBI8XgtuyYAQ== + dependencies: + lodash "^4.17.15" + +request-promise@^4.2.2: + version "4.2.5" + resolved "https://registry.yarnpkg.com/request-promise/-/request-promise-4.2.5.tgz#186222c59ae512f3497dfe4d75a9c8461bd0053c" + integrity sha512-ZgnepCykFdmpq86fKGwqntyTiUrHycALuGggpyCZwMvGaZWgxW6yagT0FHkgo5LzYvOaCNvxYwWYIjevSH1EDg== + dependencies: + bluebird "^3.5.0" + request-promise-core "1.1.3" + stealthy-require "^1.1.1" + tough-cookie "^2.3.3" + +request@^2.83.0: + version "2.88.2" + resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3" + integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw== + dependencies: + aws-sign2 "~0.7.0" + aws4 "^1.8.0" + caseless "~0.12.0" + combined-stream "~1.0.6" + extend "~3.0.2" + forever-agent "~0.6.1" + form-data "~2.3.2" + har-validator "~5.1.3" + http-signature "~1.2.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.19" + oauth-sign "~0.9.0" + performance-now "^2.1.0" + qs "~6.5.2" + safe-buffer "^5.1.2" + tough-cookie "~2.5.0" + tunnel-agent "^0.6.0" + uuid "^3.3.2" + +safe-buffer@^5.0.1, safe-buffer@^5.1.1, safe-buffer@^5.1.2: + version "5.2.0" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.0.tgz#b74daec49b1148f88c64b68d49b1e815c1f2f519" + integrity sha512-fZEwUGbVl7kouZs1jCdMLdt95hdIv0ZeHg6L7qPeciMZhZ+/gdesW4wgTARkrFWEpspjEATAzUGPG8N2jJiwbg== + +safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +sshpk@^1.7.0: + version "1.16.1" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.16.1.tgz#fb661c0bef29b39db40769ee39fa70093d6f6877" + integrity sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg== + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + bcrypt-pbkdf "^1.0.0" + dashdash "^1.12.0" + ecc-jsbn "~0.1.1" + getpass "^0.1.1" + jsbn "~0.1.0" + safer-buffer "^2.0.2" + tweetnacl "~0.14.0" + +stealthy-require@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/stealthy-require/-/stealthy-require-1.1.1.tgz#35b09875b4ff49f26a777e509b3090a3226bf24b" + integrity sha1-NbCYdbT/SfJqd35QmzCQoyJr8ks= + +string.prototype.trimleft@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz#9bdb8ac6abd6d602b17a4ed321870d2f8dcefc74" + integrity sha512-iu2AGd3PuP5Rp7x2kEZCrB2Nf41ehzh+goo8TV7z8/XDBbsvc6HQIlUl9RjkZ4oyrW1XM5UwlGl1oVEaDjg6Ag== + dependencies: + define-properties "^1.1.3" + function-bind "^1.1.1" + +string.prototype.trimright@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz#440314b15996c866ce8a0341894d45186200c5d9" + integrity sha512-qFvWL3/+QIgZXVmJBfpHmxLB7xsUXz6HsUmP8+5dRaC3Q7oKUv9Vo6aMCRZC1smrtyECFsIT30PqBJ1gTjAs+g== + dependencies: + define-properties "^1.1.3" + function-bind "^1.1.1" + +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + +tough-cookie@^2.3.3, tough-cookie@~2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" + integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== + dependencies: + psl "^1.1.28" + punycode "^2.1.1" + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + integrity sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0= + dependencies: + safe-buffer "^5.0.1" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= + +uri-js@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0" + integrity sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ== + dependencies: + punycode "^2.1.0" + +util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= + +uuid@^3.3.2: + version "3.4.0" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" + integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== + +verror@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" + integrity sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA= + dependencies: + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=