@dypnb/dev-tools 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,65 @@
1
+ import e from"fs";import t from"path";import n from"events";import i from"assert";import r,{TextEncoder as o}from"util";import a from"crypto";import s from"net";import c from"dns";import u,{Readable as p}from"stream";import l from"buffer";import f from"zlib";import h from"child_process";import d from"readline";import m from"os";import v from"tty";import g from"moment";import"node:url";import"node:path";import b from"http";import y from"https";import x from"url";var _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var E={exports:{}},S={},A=t,R="win32"===process.platform,k=e,T=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function B(e){return"function"==typeof e?e:function(){var e;if(T){var t=new Error;e=function(e){e&&(t.message=e.message,n(e=t))}}else e=n;return e;function n(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}if(A.normalize,R)var C=/(.*?)(?:[\/\\]+|$)/g;else C=/(.*?)(?:[\/]+|$)/g;if(R)var I=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else I=/^[\/]*/;S.realpathSync=function(e,t){if(e=A.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var n,i,r,o,a=e,s={},c={};function u(){var t=I.exec(e);n=t[0].length,i=t[0],r=t[0],o="",R&&!c[r]&&(k.lstatSync(r),c[r]=!0)}for(u();n<e.length;){C.lastIndex=n;var p=C.exec(e);if(o=i,i+=p[0],r=o+p[1],n=C.lastIndex,!(c[r]||t&&t[r]===r)){var l;if(t&&Object.prototype.hasOwnProperty.call(t,r))l=t[r];else{var f=k.lstatSync(r);if(!f.isSymbolicLink()){c[r]=!0,t&&(t[r]=r);continue}var h=null;if(!R){var d=f.dev.toString(32)+":"+f.ino.toString(32);s.hasOwnProperty(d)&&(h=s[d])}null===h&&(k.statSync(r),h=k.readlinkSync(r)),l=A.resolve(o,h),t&&(t[r]=l),R||(s[d]=h)}e=A.resolve(l,e.slice(n)),u()}}return t&&(t[a]=e),e},S.realpath=function(e,t,n){if("function"!=typeof n&&(n=B(t),t=null),e=A.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return process.nextTick(n.bind(null,null,t[e]));var i,r,o,a,s=e,c={},u={};function p(){var t=I.exec(e);i=t[0].length,r=t[0],o=t[0],a="",R&&!u[o]?k.lstat(o,(function(e){if(e)return n(e);u[o]=!0,l()})):process.nextTick(l)}function l(){if(i>=e.length)return t&&(t[s]=e),n(null,e);C.lastIndex=i;var c=C.exec(e);return a=r,r+=c[0],o=a+c[1],i=C.lastIndex,u[o]||t&&t[o]===o?process.nextTick(l):t&&Object.prototype.hasOwnProperty.call(t,o)?d(t[o]):k.lstat(o,f)}function f(e,i){if(e)return n(e);if(!i.isSymbolicLink())return u[o]=!0,t&&(t[o]=o),process.nextTick(l);if(!R){var r=i.dev.toString(32)+":"+i.ino.toString(32);if(c.hasOwnProperty(r))return h(null,c[r],o)}k.stat(o,(function(e){if(e)return n(e);k.readlink(o,(function(e,t){R||(c[r]=t),h(e,t)}))}))}function h(e,i,r){if(e)return n(e);var o=A.resolve(a,i);t&&(t[r]=o),d(o)}function d(t){e=A.resolve(t,e.slice(i)),p()}p()};var O=M;M.realpath=M,M.sync=F,M.realpathSync=F,M.monkeypatch=function(){U.realpath=M,U.realpathSync=F},M.unmonkeypatch=function(){U.realpath=N,U.realpathSync=L};var U=e,N=U.realpath,L=U.realpathSync,D=process.version,P=/^v[0-5]\./.test(D),j=S;function H(e){return e&&"realpath"===e.syscall&&("ELOOP"===e.code||"ENOMEM"===e.code||"ENAMETOOLONG"===e.code)}function M(e,t,n){if(P)return N(e,t,n);"function"==typeof t&&(n=t,t=null),N(e,t,(function(i,r){H(i)?j.realpath(e,t,n):n(i,r)}))}function F(e,t){if(P)return L(e,t);try{return L(e,t)}catch(n){if(H(n))return j.realpathSync(e,t);throw n}}var G=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},q=z;function z(e,t,n){e instanceof RegExp&&(e=$(e,n)),t instanceof RegExp&&(t=$(t,n));var i=K(e,t,n);return i&&{start:i[0],end:i[1],pre:n.slice(0,i[0]),body:n.slice(i[0]+e.length,i[1]),post:n.slice(i[1]+t.length)}}function $(e,t){var n=t.match(e);return n?n[0]:null}function K(e,t,n){var i,r,o,a,s,c=n.indexOf(e),u=n.indexOf(t,c+1),p=c;if(c>=0&&u>0){if(e===t)return[c,u];for(i=[],o=n.length;p>=0&&!s;)p==c?(i.push(p),c=n.indexOf(e,p+1)):1==i.length?s=[i.pop(),u]:((r=i.pop())<o&&(o=r,a=u),u=n.indexOf(t,p+1)),p=c<u&&c>=0?c:u;i.length&&(s=[o,a])}return s}z.range=K;var W=function(e,t){for(var n=[],i=0;i<e.length;i++){var r=t(e[i],i);G(r)?n.push.apply(n,r):n.push(r)}return n},X=q,V=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return ce(function(e){return e.split("\\\\").join(Q).split("\\{").join(Y).split("\\}").join(Z).split("\\,").join(J).split("\\.").join(ee)}(e),!0).map(ne)},Q="\0SLASH"+Math.random()+"\0",Y="\0OPEN"+Math.random()+"\0",Z="\0CLOSE"+Math.random()+"\0",J="\0COMMA"+Math.random()+"\0",ee="\0PERIOD"+Math.random()+"\0";function te(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function ne(e){return e.split(Q).join("\\").split(Y).join("{").split(Z).join("}").split(J).join(",").split(ee).join(".")}function ie(e){if(!e)return[""];var t=[],n=X("{","}",e);if(!n)return e.split(",");var i=n.pre,r=n.body,o=n.post,a=i.split(",");a[a.length-1]+="{"+r+"}";var s=ie(o);return o.length&&(a[a.length-1]+=s.shift(),a.push.apply(a,s)),t.push.apply(t,a),t}function re(e){return"{"+e+"}"}function oe(e){return/^-?0\d/.test(e)}function ae(e,t){return e<=t}function se(e,t){return e>=t}function ce(e,t){var n=[],i=X("{","}",e);if(!i||/\$$/.test(i.pre))return[e];var r,o=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),s=o||a,c=i.body.indexOf(",")>=0;if(!s&&!c)return i.post.match(/,.*\}/)?ce(e=i.pre+"{"+i.body+Z+i.post):[e];if(s)r=i.body.split(/\.\./);else if(1===(r=ie(i.body)).length&&1===(r=ce(r[0],!1).map(re)).length)return(l=i.post.length?ce(i.post,!1):[""]).map((function(e){return i.pre+r[0]+e}));var u,p=i.pre,l=i.post.length?ce(i.post,!1):[""];if(s){var f=te(r[0]),h=te(r[1]),d=Math.max(r[0].length,r[1].length),m=3==r.length?Math.abs(te(r[2])):1,v=ae;h<f&&(m*=-1,v=se);var g=r.some(oe);u=[];for(var b=f;v(b,h);b+=m){var y;if(a)"\\"===(y=String.fromCharCode(b))&&(y="");else if(y=String(b),g){var x=d-y.length;if(x>0){var _=new Array(x+1).join("0");y=b<0?"-"+_+y.slice(1):_+y}}u.push(y)}}else u=W(r,(function(e){return ce(e,!1)}));for(var w=0;w<u.length;w++)for(var E=0;E<l.length;E++){var S=p+u[w]+l[E];(!t||s||S)&&n.push(S)}return n}var ue=ye;ye.Minimatch=xe;var pe=function(){try{return require("path")}catch(e){}}()||{sep:"/"};ye.sep=pe.sep;var le=ye.GLOBSTAR=xe.GLOBSTAR={},fe=V,he={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},de="[^/]",me=de+"*?",ve="().*{}+?[]^$\\!".split("").reduce((function(e,t){return e[t]=!0,e}),{});var ge=/\/+/;function be(e,t){t=t||{};var n={};return Object.keys(e).forEach((function(t){n[t]=e[t]})),Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function ye(e,t,n){return we(t),n||(n={}),!(!n.nocomment&&"#"===t.charAt(0))&&new xe(t,n).match(e)}function xe(e,t){if(!(this instanceof xe))return new xe(e,t);we(e),t||(t={}),e=e.trim(),t.allowWindowsEscape||"/"===pe.sep||(e=e.split(pe.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}function _e(e,t){return t||(t=this instanceof xe?this.options:{}),e=void 0===e?this.pattern:e,we(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:fe(e)}ye.filter=function(e,t){return t=t||{},function(n,i,r){return ye(n,e,t)}},ye.defaults=function(e){if(!e||"object"!=typeof e||!Object.keys(e).length)return ye;var t=ye,n=function(n,i,r){return t(n,i,be(e,r))};return(n.Minimatch=function(n,i){return new t.Minimatch(n,be(e,i))}).defaults=function(n){return t.defaults(be(e,n)).Minimatch},n.filter=function(n,i){return t.filter(n,be(e,i))},n.defaults=function(n){return t.defaults(be(e,n))},n.makeRe=function(n,i){return t.makeRe(n,be(e,i))},n.braceExpand=function(n,i){return t.braceExpand(n,be(e,i))},n.match=function(n,i,r){return t.match(n,i,be(e,r))},n},xe.defaults=function(e){return ye.defaults(e).Minimatch},xe.prototype.debug=function(){},xe.prototype.make=function(){var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)});this.debug(this.pattern,n),n=this.globParts=n.map((function(e){return e.split(ge)})),this.debug(this.pattern,n),n=n.map((function(e,t,n){return e.map(this.parse,this)}),this),this.debug(this.pattern,n),n=n.filter((function(e){return-1===e.indexOf(!1)})),this.debug(this.pattern,n),this.set=n},xe.prototype.parseNegate=function(){var e=this.pattern,t=!1,n=this.options,i=0;if(n.nonegate)return;for(var r=0,o=e.length;r<o&&"!"===e.charAt(r);r++)t=!t,i++;i&&(this.pattern=e.substr(i));this.negate=t},ye.braceExpand=function(e,t){return _e(e,t)},xe.prototype.braceExpand=_e;var we=function(e){if("string"!=typeof e)throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};xe.prototype.parse=function(e,t){we(e);var n=this.options;if("**"===e){if(!n.noglobstar)return le;e="*"}if(""===e)return"";var i,r="",o=!!n.nocase,a=!1,s=[],c=[],u=!1,p=-1,l=-1,f="."===e.charAt(0)?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",h=this;function d(){if(i){switch(i){case"*":r+=me,o=!0;break;case"?":r+=de,o=!0;break;default:r+="\\"+i}h.debug("clearStateChar %j %j",i,r),i=!1}}for(var m,v=0,g=e.length;v<g&&(m=e.charAt(v));v++)if(this.debug("%s\t%s %s %j",e,v,r,m),a&&ve[m])r+="\\"+m,a=!1;else switch(m){case"/":return!1;case"\\":d(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,v,r,m),u){this.debug(" in class"),"!"===m&&v===l+1&&(m="^"),r+=m;continue}h.debug("call clearStateChar %j",i),d(),i=m,n.noext&&d();continue;case"(":if(u){r+="(";continue}if(!i){r+="\\(";continue}s.push({type:i,start:v-1,reStart:r.length,open:he[i].open,close:he[i].close}),r+="!"===i?"(?:(?!(?:":"(?:",this.debug("plType %j %j",i,r),i=!1;continue;case")":if(u||!s.length){r+="\\)";continue}d(),o=!0;var b=s.pop();r+=b.close,"!"===b.type&&c.push(b),b.reEnd=r.length;continue;case"|":if(u||!s.length||a){r+="\\|",a=!1;continue}d(),r+="|";continue;case"[":if(d(),u){r+="\\"+m;continue}u=!0,l=v,p=r.length,r+=m;continue;case"]":if(v===l+1||!u){r+="\\"+m,a=!1;continue}var y=e.substring(l+1,v);try{RegExp("["+y+"]")}catch(e){var x=this.parse(y,Ee);r=r.substr(0,p)+"\\["+x[0]+"\\]",o=o||x[1],u=!1;continue}o=!0,u=!1,r+=m;continue;default:d(),a?a=!1:!ve[m]||"^"===m&&u||(r+="\\"),r+=m}u&&(y=e.substr(l+1),x=this.parse(y,Ee),r=r.substr(0,p)+"\\["+x[0],o=o||x[1]);for(b=s.pop();b;b=s.pop()){var _=r.slice(b.reStart+b.open.length);this.debug("setting tail",r,b),_=_.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,n){return n||(n="\\"),t+t+n+"|"})),this.debug("tail=%j\n %s",_,_,b,r);var w="*"===b.type?me:"?"===b.type?de:"\\"+b.type;o=!0,r=r.slice(0,b.reStart)+w+"\\("+_}d(),a&&(r+="\\\\");var E=!1;switch(r.charAt(0)){case"[":case".":case"(":E=!0}for(var S=c.length-1;S>-1;S--){var A=c[S],R=r.slice(0,A.reStart),k=r.slice(A.reStart,A.reEnd-8),T=r.slice(A.reEnd-8,A.reEnd),B=r.slice(A.reEnd);T+=B;var C=R.split("(").length-1,I=B;for(v=0;v<C;v++)I=I.replace(/\)[+*?]?/,"");var O="";""===(B=I)&&t!==Ee&&(O="$"),r=R+k+B+O+T}""!==r&&o&&(r="(?=.)"+r);E&&(r=f+r);if(t===Ee)return[r,o];if(!o)return function(e){return e.replace(/\\(.)/g,"$1")}(e);var U=n.nocase?"i":"";try{var N=new RegExp("^"+r+"$",U)}catch(e){return new RegExp("$.")}return N._glob=e,N._src=r,N};var Ee={};ye.makeRe=function(e,t){return new xe(e,t||{}).makeRe()},xe.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,n=t.noglobstar?me:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",i=t.nocase?"i":"",r=e.map((function(e){return e.map((function(e){return e===le?n:"string"==typeof e?function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}(e):e._src})).join("\\/")})).join("|");r="^(?:"+r+")$",this.negate&&(r="^(?!"+r+").*$");try{this.regexp=new RegExp(r,i)}catch(e){this.regexp=!1}return this.regexp},ye.match=function(e,t,n){var i=new xe(t,n=n||{});return e=e.filter((function(e){return i.match(e)})),i.options.nonull&&!e.length&&e.push(t),e},xe.prototype.match=function(e,t){if(void 0===t&&(t=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var n=this.options;"/"!==pe.sep&&(e=e.split(pe.sep).join("/")),e=e.split(ge),this.debug(this.pattern,"split",e);var i,r,o=this.set;for(this.debug(this.pattern,"set",o),r=e.length-1;r>=0&&!(i=e[r]);r--);for(r=0;r<o.length;r++){var a=o[r],s=e;if(n.matchBase&&1===a.length&&(s=[i]),this.matchOne(s,a,t))return!!n.flipNegate||!this.negate}return!n.flipNegate&&this.negate},xe.prototype.matchOne=function(e,t,n){var i=this.options;this.debug("matchOne",{this:this,file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var r=0,o=0,a=e.length,s=t.length;r<a&&o<s;r++,o++){this.debug("matchOne loop");var c,u=t[o],p=e[r];if(this.debug(t,u,p),!1===u)return!1;if(u===le){this.debug("GLOBSTAR",[t,u,p]);var l=r,f=o+1;if(f===s){for(this.debug("** at the end");r<a;r++)if("."===e[r]||".."===e[r]||!i.dot&&"."===e[r].charAt(0))return!1;return!0}for(;l<a;){var h=e[l];if(this.debug("\nglobstar while",e,l,t,f,h),this.matchOne(e.slice(l),t.slice(f),n))return this.debug("globstar found match!",l,a,h),!0;if("."===h||".."===h||!i.dot&&"."===h.charAt(0)){this.debug("dot detected!",e,l,t,f);break}this.debug("globstar swallow a segment, and continue"),l++}return!(!n||(this.debug("\n>>> no match, partial?",e,l,t,f),l!==a))}if("string"==typeof u?(c=p===u,this.debug("string match",u,p,c)):(c=p.match(u),this.debug("pattern match",u,p,c)),!c)return!1}if(r===a&&o===s)return!0;if(r===a)return n;if(o===s)return r===a-1&&""===e[r];throw new Error("wtf?")};var Se,Ae={exports:{}},Re={exports:{}};try{var ke=require("util");if("function"!=typeof ke.inherits)throw"";Ae.exports=ke.inherits}catch(vy){Ae.exports=(Se||(Se=1,"function"==typeof Object.create?Re.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:Re.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}),Re.exports)}var Te=Ae.exports,Be={exports:{}};function Ce(e){return"/"===e.charAt(0)}function Ie(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),n=t[1]||"",i=Boolean(n&&":"!==n.charAt(1));return Boolean(t[2]||i)}Be.exports="win32"===process.platform?Ie:Ce,Be.exports.posix=Ce,Be.exports.win32=Ie;var Oe=Be.exports,Ue={};function Ne(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Ue.alphasort=Fe,Ue.alphasorti=Me,Ue.setopts=function(e,t,n){n||(n={});if(n.matchBase&&-1===t.indexOf("/")){if(n.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.silent=!!n.silent,e.pattern=t,e.strict=!1!==n.strict,e.realpath=!!n.realpath,e.realpathCache=n.realpathCache||Object.create(null),e.follow=!!n.follow,e.dot=!!n.dot,e.mark=!!n.mark,e.nodir=!!n.nodir,e.nodir&&(e.mark=!0);e.sync=!!n.sync,e.nounique=!!n.nounique,e.nonull=!!n.nonull,e.nosort=!!n.nosort,e.nocase=!!n.nocase,e.stat=!!n.stat,e.noprocess=!!n.noprocess,e.maxLength=n.maxLength||1/0,e.cache=n.cache||Object.create(null),e.statCache=n.statCache||Object.create(null),e.symlinks=n.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(Ge))}(e,n),e.changedCwd=!1;var i=process.cwd();Ne(n,"cwd")?(e.cwd=Pe.resolve(n.cwd),e.changedCwd=e.cwd!==i):e.cwd=i;e.root=n.root||Pe.resolve(e.cwd,"/"),e.root=Pe.resolve(e.root),"win32"===process.platform&&(e.root=e.root.replace(/\\/g,"/"));e.cwdAbs=qe(e,e.cwd),e.nomount=!!n.nomount,n.nonegate=!0,n.nocomment=!0,e.minimatch=new He(t,n),e.options=e.minimatch.options},Ue.ownProp=Ne,Ue.makeAbs=qe,Ue.finish=function(e){for(var t=e.nounique,n=t?[]:Object.create(null),i=0,r=e.matches.length;i<r;i++){var o=e.matches[i];if(o&&0!==Object.keys(o).length){var a=Object.keys(o);t?n.push.apply(n,a):a.forEach((function(e){n[e]=!0}))}else if(e.nonull){var s=e.minimatch.globSet[i];t?n.push(s):n[s]=!0}}t||(n=Object.keys(n));e.nosort||(n=n.sort(e.nocase?Me:Fe));if(e.mark){for(i=0;i<n.length;i++)n[i]=e._mark(n[i]);e.nodir&&(n=n.filter((function(t){var n=!/\/$/.test(t),i=e.cache[t]||e.cache[qe(e,t)];return n&&i&&(n="DIR"!==i&&!Array.isArray(i)),n})))}e.ignore.length&&(n=n.filter((function(t){return!ze(e,t)})));e.found=n},Ue.mark=function(e,t){var n=qe(e,t),i=e.cache[n],r=t;if(i){var o="DIR"===i||Array.isArray(i),a="/"===t.slice(-1);if(o&&!a?r+="/":!o&&a&&(r=r.slice(0,-1)),r!==t){var s=qe(e,r);e.statCache[s]=e.statCache[n],e.cache[s]=e.cache[n]}}return r},Ue.isIgnored=ze,Ue.childrenIgnored=function(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return!(!e.gmatcher||!e.gmatcher.match(t))}))};var Le,De,Pe=t,je=Oe,He=ue.Minimatch;function Me(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function Fe(e,t){return e.localeCompare(t)}function Ge(e){var t=null;if("/**"===e.slice(-3)){var n=e.replace(/(\/\*\*)+$/,"");t=new He(n,{dot:!0})}return{matcher:new He(e,{dot:!0}),gmatcher:t}}function qe(e,t){var n=t;return n="/"===t.charAt(0)?Pe.join(e.root,t):je(t)||""===t?t:e.changedCwd?Pe.resolve(e.cwd,t):Pe.resolve(t),"win32"===process.platform&&(n=n.replace(/\\/g,"/")),n}function ze(e,t){return!!e.ignore.length&&e.ignore.some((function(e){return e.matcher.match(t)||!(!e.gmatcher||!e.gmatcher.match(t))}))}var $e=function e(t,n){if(t&&n)return e(t)(n);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach((function(e){i[e]=t[e]})),i;function i(){for(var e=new Array(arguments.length),n=0;n<e.length;n++)e[n]=arguments[n];var i=t.apply(this,e),r=e[e.length-1];return"function"==typeof i&&i!==r&&Object.keys(r).forEach((function(e){i[e]=r[e]})),i}};var Ke={exports:{}},We=$e;function Xe(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function Ve(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},n=e.name||"Function wrapped with `once`";return t.onceError=n+" shouldn't be called more than once",t.called=!1,t}Ke.exports=We(Xe),Ke.exports.strict=We(Ve),Xe.proto=Xe((function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Xe(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return Ve(this)},configurable:!0})}));var Qe,Ye,Ze=Ke.exports,Je=$e,et=Object.create(null),tt=Ze,nt=Je((function(e,t){return et[e]?(et[e].push(t),null):(et[e]=[t],function(e){return tt((function t(){var n=et[e],i=n.length,r=function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i]=e[i];return n}(arguments);try{for(var o=0;o<i;o++)n[o].apply(null,r)}finally{n.length>i?(n.splice(0,i),process.nextTick((function(){t.apply(null,r)}))):delete et[e]}}))}(e))}));function it(){if(Ye)return Qe;Ye=1,Qe=x;var r=e,o=O,a=ue;a.Minimatch;var s=Te,c=n.EventEmitter,u=t,p=i,l=Oe,f=function(){if(De)return Le;De=1,Le=h,h.GlobSync=d;var n=e,r=O,o=ue;o.Minimatch,it().Glob;var a=t,s=i,c=Oe,u=Ue;u.alphasort,u.alphasorti;var p=u.setopts,l=u.ownProp,f=u.childrenIgnored;function h(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new d(e,t).found}function d(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof d))return new d(e,t);if(p(this,e,t),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var i=0;i<n;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}return d.prototype._finish=function(){if(s(this instanceof d),this.realpath){var e=this;this.matches.forEach((function(t,n){var i=e.matches[n]=Object.create(null);for(var o in t)try{o=e._makeAbs(o),i[r.realpathSync(o,e.realpathCache)]=!0}catch(t){if("stat"!==t.syscall)throw t;i[e._makeAbs(o)]=!0}}))}u.finish(this)},d.prototype._process=function(e,t,n){s(this instanceof d);for(var i,r=0;"string"==typeof e[r];)r++;switch(r){case e.length:return void this._processSimple(e.join("/"),t);case 0:i=null;break;default:i=e.slice(0,r).join("/")}var a,u=e.slice(r);null===i?a=".":c(i)||c(e.join("/"))?(i&&c(i)||(i="/"+i),a=i):a=i;var p=this._makeAbs(a);f(this,a)||(u[0]===o.GLOBSTAR?this._processGlobStar(i,a,p,u,t,n):this._processReaddir(i,a,p,u,t,n))},d.prototype._processReaddir=function(e,t,n,i,r,o){var s=this._readdir(n,o);if(s){for(var c=i[0],u=!!this.minimatch.negate,p=c._glob,l=this.dot||"."===p.charAt(0),f=[],h=0;h<s.length;h++)("."!==(v=s[h]).charAt(0)||l)&&(u&&!e?!v.match(c):v.match(c))&&f.push(v);var d=f.length;if(0!==d)if(1!==i.length||this.mark||this.stat)for(i.shift(),h=0;h<d;h++){var m;v=f[h],m=e?[e,v]:[v],this._process(m.concat(i),r,o)}else{this.matches[r]||(this.matches[r]=Object.create(null));for(h=0;h<d;h++){var v=f[h];e&&(v="/"!==e.slice(-1)?e+"/"+v:e+v),"/"!==v.charAt(0)||this.nomount||(v=a.join(this.root,v)),this.matches[r][v]=!0}}}},d.prototype._emitMatch=function(e,t){if(this._makeAbs(t),this.mark&&(t=this._mark(t)),!this.matches[e][t]){if(this.nodir){var n=this.cache[this._makeAbs(t)];if("DIR"===n||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}},d.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,i;try{i=n.lstatSync(e)}catch(e){return null}var r=i.isSymbolicLink();return this.symlinks[e]=r,r||i.isDirectory()?t=this._readdir(e,!1):this.cache[e]="FILE",t},d.prototype._readdir=function(e,t){if(t&&!l(this.symlinks,e))return this._readdirInGlobStar(e);if(l(this.cache,e)){var i=this.cache[e];if(!i||"FILE"===i)return null;if(Array.isArray(i))return i}try{return this._readdirEntries(e,n.readdirSync(e))}catch(t){return this._readdirError(e,t),null}},d.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];i="/"===e?e+i:e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,t},d.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);throw i.path=this.cwd,i.code=t.code,i}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t)}},d.prototype._processGlobStar=function(e,t,n,i,r,o){var a=this._readdir(n,o);if(a){var s=i.slice(1),c=e?[e]:[],u=c.concat(s);this._process(u,r,!1);var p=a.length;if(!this.symlinks[n]||!o)for(var l=0;l<p;l++)if("."!==a[l].charAt(0)||this.dot){var f=c.concat(a[l],s);this._process(f,r,!0);var h=c.concat(a[l],i);this._process(h,r,!0)}}},d.prototype._processSimple=function(e,t){var n=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),n){if(e&&c(e)&&!this.nomount){var i=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=a.join(this.root,e):(e=a.resolve(this.root,e),i&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this.matches[t][e]=!0}},d.prototype._stat=function(e){var t=this._makeAbs(e),i="/"===e.slice(-1);if(e.length>this.maxLength)return!1;if(!this.stat&&l(this.cache,t)){var r=this.cache[t];if(Array.isArray(r)&&(r="DIR"),!i||"DIR"===r)return r;if(i&&"FILE"===r)return!1}var o=this.statCache[t];if(!o){var a;try{a=n.lstatSync(t)}catch(e){return!1}if(a.isSymbolicLink())try{o=n.statSync(t)}catch(e){o=a}else o=a}return this.statCache[t]=o,r=o.isDirectory()?"DIR":"FILE",this.cache[t]=this.cache[t]||r,(!i||"DIR"===r)&&r},d.prototype._mark=function(e){return u.mark(this,e)},d.prototype._makeAbs=function(e){return u.makeAbs(this,e)},Le}(),h=Ue;h.alphasort,h.alphasorti;var d=h.setopts,m=h.ownProp,v=nt,g=h.childrenIgnored,b=h.isIgnored,y=Ze;function x(e,t,n){if("function"==typeof t&&(n=t,t={}),t||(t={}),t.sync){if(n)throw new TypeError("callback provided to sync glob");return f(e,t)}return new w(e,t,n)}x.sync=f;var _=x.GlobSync=f.GlobSync;function w(e,t,n){if("function"==typeof t&&(n=t,t=null),t&&t.sync){if(n)throw new TypeError("callback provided to sync glob");return new _(e,t)}if(!(this instanceof w))return new w(e,t,n);d(this,e,t),this._didRealPath=!1;var i=this.minimatch.set.length;this.matches=new Array(i),"function"==typeof n&&(n=y(n),this.on("error",n),this.on("end",(function(e){n(null,e)})));var r=this;i=this.minimatch.set.length;if(this._processing=0,this.matches=new Array(i),this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===i)return s();for(var o=!0,a=0;a<i;a++)this._process(this.minimatch.set[a],a,!1,s);function s(){--r._processing,r._processing<=0&&(o?process.nextTick((function(){r._finish()})):r._finish())}o=!1}return x.glob=x,x.hasMagic=function(e,t){var n=function(e,t){if(null===t||"object"!=typeof t)return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e}({},t);n.noprocess=!0;var i=new w(e,n).minimatch.set;if(!e)return!1;if(i.length>1)return!0;for(var r=0;r<i[0].length;r++)if("string"!=typeof i[0][r])return!0;return!1},x.Glob=w,s(w,c),w.prototype._finish=function(){if(p(this instanceof w),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();h.finish(this),this.emit("end",this.found)}},w.prototype._realpath=function(){if(!this._didRealpath){this._didRealpath=!0;var e=this.matches.length;if(0===e)return this._finish();for(var t=this,n=0;n<this.matches.length;n++)this._realpathSet(n,i)}function i(){0==--e&&t._finish()}},w.prototype._realpathSet=function(e,t){var n=this.matches[e];if(!n)return t();var i=Object.keys(n),r=this,a=i.length;if(0===a)return t();var s=this.matches[e]=Object.create(null);i.forEach((function(n,i){n=r._makeAbs(n),o.realpath(n,r.realpathCache,(function(i,o){i?"stat"===i.syscall?s[n]=!0:r.emit("error",i):s[o]=!0,0==--a&&(r.matches[e]=s,t())}))}))},w.prototype._mark=function(e){return h.mark(this,e)},w.prototype._makeAbs=function(e){return h.makeAbs(this,e)},w.prototype.abort=function(){this.aborted=!0,this.emit("abort")},w.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},w.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var n=e[t];this._emitMatch(n[0],n[1])}}if(this._processQueue.length){var i=this._processQueue.slice(0);this._processQueue.length=0;for(t=0;t<i.length;t++){var r=i[t];this._processing--,this._process(r[0],r[1],r[2],r[3])}}}},w.prototype._process=function(e,t,n,i){if(p(this instanceof w),p("function"==typeof i),!this.aborted)if(this._processing++,this.paused)this._processQueue.push([e,t,n,i]);else{for(var r,o=0;"string"==typeof e[o];)o++;switch(o){case e.length:return void this._processSimple(e.join("/"),t,i);case 0:r=null;break;default:r=e.slice(0,o).join("/")}var s,c=e.slice(o);null===r?s=".":l(r)||l(e.join("/"))?(r&&l(r)||(r="/"+r),s=r):s=r;var u=this._makeAbs(s);if(g(this,s))return i();c[0]===a.GLOBSTAR?this._processGlobStar(r,s,u,c,t,n,i):this._processReaddir(r,s,u,c,t,n,i)}},w.prototype._processReaddir=function(e,t,n,i,r,o,a){var s=this;this._readdir(n,o,(function(c,u){return s._processReaddir2(e,t,n,i,r,o,u,a)}))},w.prototype._processReaddir2=function(e,t,n,i,r,o,a,s){if(!a)return s();for(var c=i[0],p=!!this.minimatch.negate,l=c._glob,f=this.dot||"."===l.charAt(0),h=[],d=0;d<a.length;d++){if("."!==(v=a[d]).charAt(0)||f)(p&&!e?!v.match(c):v.match(c))&&h.push(v)}var m=h.length;if(0===m)return s();if(1===i.length&&!this.mark&&!this.stat){this.matches[r]||(this.matches[r]=Object.create(null));for(d=0;d<m;d++){var v=h[d];e&&(v="/"!==e?e+"/"+v:e+v),"/"!==v.charAt(0)||this.nomount||(v=u.join(this.root,v)),this._emitMatch(r,v)}return s()}i.shift();for(d=0;d<m;d++){v=h[d];e&&(v="/"!==e?e+"/"+v:e+v),this._process([v].concat(i),r,o,s)}s()},w.prototype._emitMatch=function(e,t){if(!this.aborted&&!this.matches[e][t]&&!b(this,t))if(this.paused)this._emitQueue.push([e,t]);else{var n=this._makeAbs(t);if(this.nodir){var i=this.cache[n];if("DIR"===i||Array.isArray(i))return}this.mark&&(t=this._mark(t)),this.matches[e][t]=!0;var r=this.statCache[n];r&&this.emit("stat",t,r),this.emit("match",t)}},w.prototype._readdirInGlobStar=function(e,t){if(!this.aborted){if(this.follow)return this._readdir(e,!1,t);var n=this,i=v("lstat\0"+e,(function(i,r){if(i)return t();var o=r.isSymbolicLink();n.symlinks[e]=o,o||r.isDirectory()?n._readdir(e,!1,t):(n.cache[e]="FILE",t())}));i&&r.lstat(e,i)}},w.prototype._readdir=function(e,t,n){if(!this.aborted&&(n=v("readdir\0"+e+"\0"+t,n))){if(t&&!m(this.symlinks,e))return this._readdirInGlobStar(e,n);if(m(this.cache,e)){var i=this.cache[e];if(!i||"FILE"===i)return n();if(Array.isArray(i))return n(null,i)}r.readdir(e,function(e,t,n){return function(i,r){i?e._readdirError(t,i,n):e._readdirEntries(t,r,n)}}(this,e,n))}},w.prototype._readdirEntries=function(e,t,n){if(!this.aborted){if(!this.mark&&!this.stat)for(var i=0;i<t.length;i++){var r=t[i];r="/"===e?e+r:e+"/"+r,this.cache[r]=!0}return this.cache[e]=t,n(null,t)}},w.prototype._readdirError=function(e,t,n){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var i=this._makeAbs(e);if(this.cache[i]="FILE",i===this.cwdAbs){var r=new Error(t.code+" invalid cwd "+this.cwd);r.path=this.cwd,r.code=t.code,this.emit("error",r),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t)}return n()}},w.prototype._processGlobStar=function(e,t,n,i,r,o,a){var s=this;this._readdir(n,o,(function(c,u){s._processGlobStar2(e,t,n,i,r,o,u,a)}))},w.prototype._processGlobStar2=function(e,t,n,i,r,o,a,s){if(!a)return s();var c=i.slice(1),u=e?[e]:[],p=u.concat(c);this._process(p,r,!1,s);var l=this.symlinks[n],f=a.length;if(l&&o)return s();for(var h=0;h<f;h++){if("."!==a[h].charAt(0)||this.dot){var d=u.concat(a[h],c);this._process(d,r,!0,s);var m=u.concat(a[h],i);this._process(m,r,!0,s)}}s()},w.prototype._processSimple=function(e,t,n){var i=this;this._stat(e,(function(r,o){i._processSimple2(e,t,r,o,n)}))},w.prototype._processSimple2=function(e,t,n,i,r){if(this.matches[t]||(this.matches[t]=Object.create(null)),!i)return r();if(e&&l(e)&&!this.nomount){var o=/[\/\\]$/.test(e);"/"===e.charAt(0)?e=u.join(this.root,e):(e=u.resolve(this.root,e),o&&(e+="/"))}"win32"===process.platform&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),r()},w.prototype._stat=function(e,t){var n=this._makeAbs(e),i="/"===e.slice(-1);if(e.length>this.maxLength)return t();if(!this.stat&&m(this.cache,n)){var o=this.cache[n];if(Array.isArray(o)&&(o="DIR"),!i||"DIR"===o)return t(null,o);if(i&&"FILE"===o)return t()}var a=this.statCache[n];if(void 0!==a){if(!1===a)return t(null,a);var s=a.isDirectory()?"DIR":"FILE";return i&&"FILE"===s?t():t(null,s,a)}var c=this,u=v("stat\0"+n,(function(i,o){if(o&&o.isSymbolicLink())return r.stat(n,(function(i,r){i?c._stat2(e,n,null,o,t):c._stat2(e,n,i,r,t)}));c._stat2(e,n,i,o,t)}));u&&r.lstat(n,u)},w.prototype._stat2=function(e,t,n,i,r){if(n)return this.statCache[t]=!1,r();var o="/"===e.slice(-1);if(this.statCache[t]=i,"/"===t.slice(-1)&&!i.isDirectory())return r(null,!1,i);var a=i.isDirectory()?"DIR":"FILE";return this.cache[t]=this.cache[t]||a,o&&"DIR"!==a?r():r(null,a,i)},Qe}var rt,ot={exports:{}};
2
+ /*!
3
+ * async
4
+ * https://github.com/caolan/async
5
+ *
6
+ * Copyright 2010-2014 Caolan McMahon
7
+ * Released under the MIT license
8
+ */rt=ot,function(){var e,t,n={};function i(t){var n=!1;return function(){if(n)throw new Error("Callback was already called.");n=!0,t.apply(e,arguments)}}null!=(e=this)&&(t=e.async),n.noConflict=function(){return e.async=t,n};var r=Object.prototype.toString,o=Array.isArray||function(e){return"[object Array]"===r.call(e)},a=function(e,t){for(var n=0;n<e.length;n+=1)t(e[n],n,e)},s=function(e,t){if(e.map)return e.map(t);var n=[];return a(e,(function(e,i,r){n.push(t(e,i,r))})),n},c=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t};"undefined"!=typeof process&&process.nextTick?(n.nextTick=process.nextTick,"undefined"!=typeof setImmediate?n.setImmediate=function(e){setImmediate(e)}:n.setImmediate=n.nextTick):"function"==typeof setImmediate?(n.nextTick=function(e){setImmediate(e)},n.setImmediate=n.nextTick):(n.nextTick=function(e){setTimeout(e,0)},n.setImmediate=n.nextTick),n.each=function(e,t,n){if(n=n||function(){},!e.length)return n();var r=0;function o(t){t?(n(t),n=function(){}):(r+=1)>=e.length&&n()}a(e,(function(e){t(e,i(o))}))},n.forEach=n.each,n.eachSeries=function(e,t,n){if(n=n||function(){},!e.length)return n();var i=0,r=function(){t(e[i],(function(t){t?(n(t),n=function(){}):(i+=1)>=e.length?n():r()}))};r()},n.forEachSeries=n.eachSeries,n.eachLimit=function(e,t,n,i){u(t).apply(null,[e,n,i])},n.forEachLimit=n.eachLimit;var u=function(e){return function(t,n,i){if(i=i||function(){},!t.length||e<=0)return i();var r=0,o=0,a=0;!function s(){if(r>=t.length)return i();for(;a<e&&o<t.length;)a+=1,n(t[(o+=1)-1],(function(e){e?(i(e),i=function(){}):(a-=1,(r+=1)>=t.length?i():s())}))}()}},p=function(e){return function(){var t=Array.prototype.slice.call(arguments);return e.apply(null,[n.each].concat(t))}},l=function(e){return function(){var t=Array.prototype.slice.call(arguments);return e.apply(null,[n.eachSeries].concat(t))}},f=function(e,t,n,i){if(t=s(t,(function(e,t){return{index:t,value:e}})),i){var r=[];e(t,(function(e,t){n(e.value,(function(n,i){r[e.index]=i,t(n)}))}),(function(e){i(e,r)}))}else e(t,(function(e,t){n(e.value,(function(e){t(e)}))}))};n.map=p(f),n.mapSeries=l(f),n.mapLimit=function(e,t,n,i){return h(t)(e,n,i)};var h=function(e){return function(e,t){return function(){var n=Array.prototype.slice.call(arguments);return t.apply(null,[u(e)].concat(n))}}(e,f)};n.reduce=function(e,t,i,r){n.eachSeries(e,(function(e,n){i(t,e,(function(e,i){t=i,n(e)}))}),(function(e){r(e,t)}))},n.inject=n.reduce,n.foldl=n.reduce,n.reduceRight=function(e,t,i,r){var o=s(e,(function(e){return e})).reverse();n.reduce(o,t,i,r)},n.foldr=n.reduceRight;var d=function(e,t,n,i){var r=[];t=s(t,(function(e,t){return{index:t,value:e}})),e(t,(function(e,t){n(e.value,(function(n){n&&r.push(e),t()}))}),(function(e){i(s(r.sort((function(e,t){return e.index-t.index})),(function(e){return e.value})))}))};n.filter=p(d),n.filterSeries=l(d),n.select=n.filter,n.selectSeries=n.filterSeries;var m=function(e,t,n,i){var r=[];t=s(t,(function(e,t){return{index:t,value:e}})),e(t,(function(e,t){n(e.value,(function(n){n||r.push(e),t()}))}),(function(e){i(s(r.sort((function(e,t){return e.index-t.index})),(function(e){return e.value})))}))};n.reject=p(m),n.rejectSeries=l(m);var v=function(e,t,n,i){e(t,(function(e,t){n(e,(function(n){n?(i(e),i=function(){}):t()}))}),(function(e){i()}))};n.detect=p(v),n.detectSeries=l(v),n.some=function(e,t,i){n.each(e,(function(e,n){t(e,(function(e){e&&(i(!0),i=function(){}),n()}))}),(function(e){i(!1)}))},n.any=n.some,n.every=function(e,t,i){n.each(e,(function(e,n){t(e,(function(e){e||(i(!1),i=function(){}),n()}))}),(function(e){i(!0)}))},n.all=n.every,n.sortBy=function(e,t,i){n.map(e,(function(e,n){t(e,(function(t,i){t?n(t):n(null,{value:e,criteria:i})}))}),(function(e,t){if(e)return i(e);i(null,s(t.sort((function(e,t){var n=e.criteria,i=t.criteria;return n<i?-1:n>i?1:0})),(function(e){return e.value})))}))},n.auto=function(e,t){t=t||function(){};var i=c(e),r=i.length;if(!r)return t();var s={},u=[],p=function(e){u.unshift(e)},l=function(){r--,a(u.slice(0),(function(e){e()}))};p((function(){if(!r){var e=t;t=function(){},e(null,s)}})),a(i,(function(i){var r=o(e[i])?e[i]:[e[i]],f=function(e){var r=Array.prototype.slice.call(arguments,1);if(r.length<=1&&(r=r[0]),e){var o={};a(c(s),(function(e){o[e]=s[e]})),o[i]=r,t(e,o),t=function(){}}else s[i]=r,n.setImmediate(l)},h=r.slice(0,Math.abs(r.length-1))||[],d=function(){return t=function(e,t){return e&&s.hasOwnProperty(t)},n=!0,((e=h).reduce?e.reduce(t,n):(a(e,(function(e,i,r){n=t(n,e,i,r)})),n))&&!s.hasOwnProperty(i);var e,t,n};if(d())r[r.length-1](f,s);else{var m=function(){d()&&(function(e){for(var t=0;t<u.length;t+=1)if(u[t]===e)return void u.splice(t,1)}(m),r[r.length-1](f,s))};p(m)}}))},n.retry=function(e,t,i){var r=[];"function"==typeof e&&(i=t,t=e,e=5),e=parseInt(e,10)||5;var o=function(o,a){for(var s=function(e,t){return function(n){e((function(e,i){n(!e||t,{err:e,result:i})}),a)}};e;)r.push(s(t,!(e-=1)));n.series(r,(function(e,t){t=t[t.length-1],(o||i)(t.err,t.result)}))};return i?o():o},n.waterfall=function(e,t){if(t=t||function(){},!o(e)){var i=new Error("First argument to waterfall must be an array of functions");return t(i)}if(!e.length)return t();var r=function(e){return function(i){if(i)t.apply(null,arguments),t=function(){};else{var o=Array.prototype.slice.call(arguments,1),a=e.next();a?o.push(r(a)):o.push(t),n.setImmediate((function(){e.apply(null,o)}))}}};r(n.iterator(e))()};var g=function(e,t,n){if(n=n||function(){},o(t))e.map(t,(function(e,t){e&&e((function(e){var n=Array.prototype.slice.call(arguments,1);n.length<=1&&(n=n[0]),t.call(null,e,n)}))}),n);else{var i={};e.each(c(t),(function(e,n){t[e]((function(t){var r=Array.prototype.slice.call(arguments,1);r.length<=1&&(r=r[0]),i[e]=r,n(t)}))}),(function(e){n(e,i)}))}};n.parallel=function(e,t){g({map:n.map,each:n.each},e,t)},n.parallelLimit=function(e,t,n){g({map:h(t),each:u(t)},e,n)},n.series=function(e,t){if(t=t||function(){},o(e))n.mapSeries(e,(function(e,t){e&&e((function(e){var n=Array.prototype.slice.call(arguments,1);n.length<=1&&(n=n[0]),t.call(null,e,n)}))}),t);else{var i={};n.eachSeries(c(e),(function(t,n){e[t]((function(e){var r=Array.prototype.slice.call(arguments,1);r.length<=1&&(r=r[0]),i[t]=r,n(e)}))}),(function(e){t(e,i)}))}},n.iterator=function(e){var t=function(n){var i=function(){return e.length&&e[n].apply(null,arguments),i.next()};return i.next=function(){return n<e.length-1?t(n+1):null},i};return t(0)},n.apply=function(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t.concat(Array.prototype.slice.call(arguments)))}};var b=function(e,t,n,i){var r=[];e(t,(function(e,t){n(e,(function(e,n){r=r.concat(n||[]),t(e)}))}),(function(e){i(e,r)}))};n.concat=p(b),n.concatSeries=l(b),n.whilst=function(e,t,i){e()?t((function(r){if(r)return i(r);n.whilst(e,t,i)})):i()},n.doWhilst=function(e,t,i){e((function(r){if(r)return i(r);var o=Array.prototype.slice.call(arguments,1);t.apply(null,o)?n.doWhilst(e,t,i):i()}))},n.until=function(e,t,i){e()?i():t((function(r){if(r)return i(r);n.until(e,t,i)}))},n.doUntil=function(e,t,i){e((function(r){if(r)return i(r);var o=Array.prototype.slice.call(arguments,1);t.apply(null,o)?i():n.doUntil(e,t,i)}))},n.queue=function(e,t){function r(e,t,i,r){if(e.started||(e.started=!0),o(t)||(t=[t]),0==t.length)return n.setImmediate((function(){e.drain&&e.drain()}));a(t,(function(t){var o={data:t,callback:"function"==typeof r?r:null};i?e.tasks.unshift(o):e.tasks.push(o),e.saturated&&e.tasks.length===e.concurrency&&e.saturated(),n.setImmediate(e.process)}))}void 0===t&&(t=1);var s=0,c={tasks:[],concurrency:t,saturated:null,empty:null,drain:null,started:!1,paused:!1,push:function(e,t){r(c,e,!1,t)},kill:function(){c.drain=null,c.tasks=[]},unshift:function(e,t){r(c,e,!0,t)},process:function(){if(!c.paused&&s<c.concurrency&&c.tasks.length){var t=c.tasks.shift();c.empty&&0===c.tasks.length&&c.empty(),s+=1;var n=i((function(){s-=1,t.callback&&t.callback.apply(t,arguments),c.drain&&c.tasks.length+s===0&&c.drain(),c.process()}));e(t.data,n)}},length:function(){return c.tasks.length},running:function(){return s},idle:function(){return c.tasks.length+s===0},pause:function(){!0!==c.paused&&(c.paused=!0)},resume:function(){if(!1!==c.paused){c.paused=!1;for(var e=1;e<=c.concurrency;e++)n.setImmediate(c.process)}}};return c},n.priorityQueue=function(e,t){function i(e,t){return e.priority-t.priority}var r=n.queue(e,t);return r.push=function(e,t,s){!function(e,t,r,s){if(e.started||(e.started=!0),o(t)||(t=[t]),0==t.length)return n.setImmediate((function(){e.drain&&e.drain()}));a(t,(function(t){var o={data:t,priority:r,callback:"function"==typeof s?s:null};e.tasks.splice(function(e,t,n){for(var i=-1,r=e.length-1;i<r;){var o=i+(r-i+1>>>1);n(t,e[o])>=0?i=o:r=o-1}return i}(e.tasks,o,i)+1,0,o),e.saturated&&e.tasks.length===e.concurrency&&e.saturated(),n.setImmediate(e.process)}))}(r,e,t,s)},delete r.unshift,r},n.cargo=function(e,t){var i=!1,r=[],c={tasks:r,payload:t,saturated:null,empty:null,drain:null,drained:!0,push:function(e,i){o(e)||(e=[e]),a(e,(function(e){r.push({data:e,callback:"function"==typeof i?i:null}),c.drained=!1,c.saturated&&r.length===t&&c.saturated()})),n.setImmediate(c.process)},process:function n(){if(!i){if(0===r.length)return c.drain&&!c.drained&&c.drain(),void(c.drained=!0);var o="number"==typeof t?r.splice(0,t):r.splice(0,r.length),u=s(o,(function(e){return e.data}));c.empty&&c.empty(),i=!0,e(u,(function(){i=!1;var e=arguments;a(o,(function(t){t.callback&&t.callback.apply(null,e)})),n()}))}},length:function(){return r.length},running:function(){return i}};return c};var y=function(e){return function(t){var n=Array.prototype.slice.call(arguments,1);t.apply(null,n.concat([function(t){var n=Array.prototype.slice.call(arguments,1);"undefined"!=typeof console&&(t?console.error&&console.error(t):console[e]&&a(n,(function(t){console[e](t)})))}]))}};n.log=y("log"),n.dir=y("dir"),n.memoize=function(e,t){var i={},r={};t=t||function(e){return e};var o=function(){var o=Array.prototype.slice.call(arguments),a=o.pop(),s=t.apply(null,o);s in i?n.nextTick((function(){a.apply(null,i[s])})):s in r?r[s].push(a):(r[s]=[a],e.apply(null,o.concat([function(){i[s]=arguments;var e=r[s];delete r[s];for(var t=0,n=e.length;t<n;t++)e[t].apply(null,arguments)}])))};return o.memo=i,o.unmemoized=e,o},n.unmemoize=function(e){return function(){return(e.unmemoized||e).apply(null,arguments)}},n.times=function(e,t,i){for(var r=[],o=0;o<e;o++)r.push(o);return n.map(r,t,i)},n.timesSeries=function(e,t,i){for(var r=[],o=0;o<e;o++)r.push(o);return n.mapSeries(r,t,i)},n.seq=function(){var e=arguments;return function(){var t=this,i=Array.prototype.slice.call(arguments),r=i.pop();n.reduce(e,i,(function(e,n,i){n.apply(t,e.concat([function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);i(e,t)}]))}),(function(e,n){r.apply(t,[e].concat(n))}))}},n.compose=function(){return n.seq.apply(null,Array.prototype.reverse.call(arguments))};var x=function(e,t){var n=function(){var n=this,i=Array.prototype.slice.call(arguments),r=i.pop();return e(t,(function(e,t){e.apply(n,i.concat([t]))}),r)};if(arguments.length>2){var i=Array.prototype.slice.call(arguments,2);return n.apply(this,i)}return n};n.applyEach=p(x),n.applyEachSeries=l(x),n.forever=function(e,t){!function n(i){if(i){if(t)return t(i);throw i}e(n)}()},rt.exports?rt.exports=n:e.async=n}();var at,st=ot.exports,ct={exports:{}},ut={exports:{}},pt={newInvalidAsn1Error:function(e){var t=new Error;return t.name="InvalidAsn1Error",t.message=e||"",t}},lt={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128},ft=l,ht=ft.Buffer,dt={};for(at in ft)ft.hasOwnProperty(at)&&"SlowBuffer"!==at&&"Buffer"!==at&&(dt[at]=ft[at]);var mt=dt.Buffer={};for(at in ht)ht.hasOwnProperty(at)&&"allocUnsafe"!==at&&"allocUnsafeSlow"!==at&&(mt[at]=ht[at]);if(dt.Buffer.prototype=ht.prototype,mt.from&&mt.from!==Uint8Array.from||(mt.from=function(e,t,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return ht(e,t,n)}),mt.alloc||(mt.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var i=ht(e);return t&&0!==t.length?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i}),!dt.kStringMaxLength)try{dt.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(gy){}dt.constants||(dt.constants={MAX_LENGTH:dt.kMaxLength},dt.kStringMaxLength&&(dt.constants.MAX_STRING_LENGTH=dt.kStringMaxLength));var vt=dt,gt=i,bt=vt.Buffer,yt=lt,xt=pt.newInvalidAsn1Error;function _t(e){if(!e||!bt.isBuffer(e))throw new TypeError("data must be a node Buffer");this._buf=e,this._size=e.length,this._len=0,this._offset=0}Object.defineProperty(_t.prototype,"length",{enumerable:!0,get:function(){return this._len}}),Object.defineProperty(_t.prototype,"offset",{enumerable:!0,get:function(){return this._offset}}),Object.defineProperty(_t.prototype,"remain",{get:function(){return this._size-this._offset}}),Object.defineProperty(_t.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}}),_t.prototype.readByte=function(e){if(this._size-this._offset<1)return null;var t=255&this._buf[this._offset];return e||(this._offset+=1),t},_t.prototype.peek=function(){return this.readByte(!0)},_t.prototype.readLength=function(e){if(void 0===e&&(e=this._offset),e>=this._size)return null;var t=255&this._buf[e++];if(null===t)return null;if(128==(128&t)){if(0===(t&=127))throw xt("Indefinite length not supported");if(t>4)throw xt("encoding too long");if(this._size-e<t)return null;this._len=0;for(var n=0;n<t;n++)this._len=(this._len<<8)+(255&this._buf[e++])}else this._len=t;return e},_t.prototype.readSequence=function(e){var t=this.peek();if(null===t)return null;if(void 0!==e&&e!==t)throw xt("Expected 0x"+e.toString(16)+": got 0x"+t.toString(16));var n=this.readLength(this._offset+1);return null===n?null:(this._offset=n,t)},_t.prototype.readInt=function(){return this._readTag(yt.Integer)},_t.prototype.readBoolean=function(){return 0!==this._readTag(yt.Boolean)},_t.prototype.readEnumeration=function(){return this._readTag(yt.Enumeration)},_t.prototype.readString=function(e,t){e||(e=yt.OctetString);var n=this.peek();if(null===n)return null;if(n!==e)throw xt("Expected 0x"+e.toString(16)+": got 0x"+n.toString(16));var i=this.readLength(this._offset+1);if(null===i)return null;if(this.length>this._size-i)return null;if(this._offset=i,0===this.length)return t?bt.alloc(0):"";var r=this._buf.slice(this._offset,this._offset+this.length);return this._offset+=this.length,t?r:r.toString("utf8")},_t.prototype.readOID=function(e){e||(e=yt.OID);var t=this.readString(e,!0);if(null===t)return null;for(var n=[],i=0,r=0;r<t.length;r++){var o=255&t[r];i<<=7,i+=127&o,0==(128&o)&&(n.push(i),i=0)}return i=n.shift(),n.unshift(i%40),n.unshift(i/40>>0),n.join(".")},_t.prototype._readTag=function(e){gt.ok(void 0!==e);var t=this.peek();if(null===t)return null;if(t!==e)throw xt("Expected 0x"+e.toString(16)+": got 0x"+t.toString(16));var n=this.readLength(this._offset+1);if(null===n)return null;if(this.length>4)throw xt("Integer too long: "+this.length);if(this.length>this._size-n)return null;this._offset=n;for(var i=this._buf[this._offset],r=0,o=0;o<this.length;o++)r<<=8,r|=255&this._buf[this._offset++];return 128==(128&i)&&4!==o&&(r-=1<<8*o),r>>0};var wt=_t,Et=i,St=vt.Buffer,At=lt,Rt=pt.newInvalidAsn1Error,kt={size:1024,growthFactor:8};function Tt(e){var t,n;t=kt,n=e||{},Et.ok(t),Et.equal(typeof t,"object"),Et.ok(n),Et.equal(typeof n,"object"),Object.getOwnPropertyNames(t).forEach((function(e){if(!n[e]){var i=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,i)}})),e=n,this._buf=St.alloc(e.size||1024),this._size=this._buf.length,this._offset=0,this._options=e,this._seq=[]}Object.defineProperty(Tt.prototype,"buffer",{get:function(){if(this._seq.length)throw Rt(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}}),Tt.prototype.writeByte=function(e){if("number"!=typeof e)throw new TypeError("argument must be a Number");this._ensure(1),this._buf[this._offset++]=e},Tt.prototype.writeInt=function(e,t){if("number"!=typeof e)throw new TypeError("argument must be a Number");"number"!=typeof t&&(t=At.Integer);for(var n=4;(0==(4286578688&e)||-8388608==(4286578688&e))&&n>1;)n--,e<<=8;if(n>4)throw Rt("BER ints cannot be > 0xffffffff");for(this._ensure(2+n),this._buf[this._offset++]=t,this._buf[this._offset++]=n;n-- >0;)this._buf[this._offset++]=(4278190080&e)>>>24,e<<=8},Tt.prototype.writeNull=function(){this.writeByte(At.Null),this.writeByte(0)},Tt.prototype.writeEnumeration=function(e,t){if("number"!=typeof e)throw new TypeError("argument must be a Number");return"number"!=typeof t&&(t=At.Enumeration),this.writeInt(e,t)},Tt.prototype.writeBoolean=function(e,t){if("boolean"!=typeof e)throw new TypeError("argument must be a Boolean");"number"!=typeof t&&(t=At.Boolean),this._ensure(3),this._buf[this._offset++]=t,this._buf[this._offset++]=1,this._buf[this._offset++]=e?255:0},Tt.prototype.writeString=function(e,t){if("string"!=typeof e)throw new TypeError("argument must be a string (was: "+typeof e+")");"number"!=typeof t&&(t=At.OctetString);var n=St.byteLength(e);this.writeByte(t),this.writeLength(n),n&&(this._ensure(n),this._buf.write(e,this._offset),this._offset+=n)},Tt.prototype.writeBuffer=function(e,t){if("number"!=typeof t)throw new TypeError("tag must be a number");if(!St.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},Tt.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)}))},Tt.prototype.writeOID=function(e,t){if("string"!=typeof e)throw new TypeError("argument must be a string");if("number"!=typeof t&&(t=At.OID),!/^([0-9]+\.){3,}[0-9]+$/.test(e))throw new Error("argument is not a valid OID string");var n=e.split("."),i=[];i.push(40*parseInt(n[0],10)+parseInt(n[1],10)),n.slice(2).forEach((function(e){!function(e,t){t<128?e.push(t):t<16384?(e.push(t>>>7|128),e.push(127&t)):t<2097152?(e.push(t>>>14|128),e.push(255&(t>>>7|128)),e.push(127&t)):t<268435456?(e.push(t>>>21|128),e.push(255&(t>>>14|128)),e.push(255&(t>>>7|128)),e.push(127&t)):(e.push(255&(t>>>28|128)),e.push(255&(t>>>21|128)),e.push(255&(t>>>14|128)),e.push(255&(t>>>7|128)),e.push(127&t))}(i,parseInt(e,10))}));var r=this;this._ensure(2+i.length),this.writeByte(t),this.writeLength(i.length),i.forEach((function(e){r.writeByte(e)}))},Tt.prototype.writeLength=function(e){if("number"!=typeof e)throw new TypeError("argument must be a Number");if(this._ensure(4),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))throw Rt("Length too long (> 4 bytes)");this._buf[this._offset++]=131,this._buf[this._offset++]=e>>16,this._buf[this._offset++]=e>>8,this._buf[this._offset++]=e}},Tt.prototype.startSequence=function(e){"number"!=typeof e&&(e=At.Sequence|At.Constructor),this.writeByte(e),this._seq.push(this._offset),this._ensure(3),this._offset+=3},Tt.prototype.endSequence=function(){var e=this._seq.pop(),t=e+3,n=this._offset-t;if(n<=127)this._shift(t,n,-2),this._buf[e]=n;else if(n<=255)this._shift(t,n,-1),this._buf[e]=129,this._buf[e+1]=n;else if(n<=65535)this._buf[e]=130,this._buf[e+1]=n>>8,this._buf[e+2]=n;else{if(!(n<=16777215))throw Rt("Sequence too long");this._shift(t,n,1),this._buf[e]=131,this._buf[e+1]=n>>16,this._buf[e+2]=n>>8,this._buf[e+3]=n}},Tt.prototype._shift=function(e,t,n){Et.ok(void 0!==e),Et.ok(void 0!==t),Et.ok(n),this._buf.copy(this._buf,e+n,e,e+t),this._offset+=n},Tt.prototype._ensure=function(e){if(Et.ok(e),this._size-this._offset<e){var t=this._size*this._options.growthFactor;t-this._offset<e&&(t+=e);var n=St.alloc(t);this._buf.copy(n,0,0,this._offset),this._buf=n,this._size=t}};var Bt=Tt;!function(e){var t=pt,n=lt,i=wt,r=Bt;for(var o in e.exports={Reader:i,Writer:r},n)n.hasOwnProperty(o)&&(e.exports[o]=n[o]);for(var a in t)t.hasOwnProperty(a)&&(e.exports[a]=t[a])}(ut);var Ct=ut.exports,It={Ber:Ct,BerReader:Ct.Reader,BerWriter:Ct.Writer};function Ot(e,t,n){null!=e&&("number"==typeof e?this.fromNumber(e,t,n):null==t&&"string"!=typeof e?this.fromString(e,256):this.fromString(e,t))}function Ut(){return new Ot(null)}Ot.prototype.am=function(e,t,n,i,r,o){for(var a=16383&t,s=t>>14;--o>=0;){var c=16383&this[e],u=this[e++]>>14,p=s*c+u*a;r=((c=a*c+((16383&p)<<14)+n[i]+r)>>28)+(p>>14)+s*u,n[i++]=268435455&c}return r},Ot.prototype.DB=28,Ot.prototype.DM=268435455,Ot.prototype.DV=1<<28;Ot.prototype.FV=Math.pow(2,52),Ot.prototype.F1=24,Ot.prototype.F2=4;var Nt,Lt,Dt="0123456789abcdefghijklmnopqrstuvwxyz",Pt=new Array;for(Nt="0".charCodeAt(0),Lt=0;Lt<=9;++Lt)Pt[Nt++]=Lt;for(Nt="a".charCodeAt(0),Lt=10;Lt<36;++Lt)Pt[Nt++]=Lt;for(Nt="A".charCodeAt(0),Lt=10;Lt<36;++Lt)Pt[Nt++]=Lt;function jt(e){return Dt.charAt(e)}function Ht(e,t){var n=Pt[e.charCodeAt(t)];return null==n?-1:n}function Mt(e){var t=Ut();return t.fromInt(e),t}function Ft(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function Gt(e){this.m=e}function qt(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}function zt(e,t){return e&t}function $t(e,t){return e|t}function Kt(e,t){return e^t}function Wt(e,t){return e&~t}function Xt(e){if(0==e)return-1;var t=0;return 0==(65535&e)&&(e>>=16,t+=16),0==(255&e)&&(e>>=8,t+=8),0==(15&e)&&(e>>=4,t+=4),0==(3&e)&&(e>>=2,t+=2),0==(1&e)&&++t,t}function Vt(e){for(var t=0;0!=e;)e&=e-1,++t;return t}function Qt(){}function Yt(e){return e}function Zt(e){this.r2=Ut(),this.q3=Ut(),Ot.ONE.dlShiftTo(2*e.t,this.r2),this.mu=this.r2.divide(e),this.m=e}Gt.prototype.convert=function(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e},Gt.prototype.revert=function(e){return e},Gt.prototype.reduce=function(e){e.divRemTo(this.m,null,e)},Gt.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},Gt.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},qt.prototype.convert=function(e){var t=Ut();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(Ot.ZERO)>0&&this.m.subTo(t,t),t},qt.prototype.revert=function(e){var t=Ut();return e.copyTo(t),this.reduce(t),t},qt.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t<this.m.t;++t){var n=32767&e[t],i=n*this.mpl+((n*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,i,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},qt.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},qt.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},Ot.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},Ot.prototype.fromInt=function(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0},Ot.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(256==t)n=8;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)return void this.fromRadix(e,t);n=2}this.t=0,this.s=0;for(var i=e.length,r=!1,o=0;--i>=0;){var a=8==n?255&e[i]:Ht(e,i);a<0?"-"==e.charAt(i)&&(r=!0):(r=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<<this.DB-o)-1)<<o,this[this.t++]=a>>this.DB-o):this[this.t-1]|=a<<o,(o+=n)>=this.DB&&(o-=this.DB))}8==n&&0!=(128&e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),this.clamp(),r&&Ot.ZERO.subTo(this,this)},Ot.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},Ot.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},Ot.prototype.drShiftTo=function(e,t){for(var n=e;n<this.t;++n)t[n-e]=this[n];t.t=Math.max(this.t-e,0),t.s=this.s},Ot.prototype.lShiftTo=function(e,t){var n,i=e%this.DB,r=this.DB-i,o=(1<<r)-1,a=Math.floor(e/this.DB),s=this.s<<i&this.DM;for(n=this.t-1;n>=0;--n)t[n+a+1]=this[n]>>r|s,s=(this[n]&o)<<i;for(n=a-1;n>=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},Ot.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var i=e%this.DB,r=this.DB-i,o=(1<<i)-1;t[0]=this[n]>>i;for(var a=n+1;a<this.t;++a)t[a-n-1]|=(this[a]&o)<<r,t[a-n]=this[a]>>i;i>0&&(t[this.t-n-1]|=(this.s&o)<<r),t.t=this.t-n,t.clamp()}},Ot.prototype.subTo=function(e,t){for(var n=0,i=0,r=Math.min(e.t,this.t);n<r;)i+=this[n]-e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i-=e.s;n<this.t;)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i-=e[n],t[n++]=i&this.DM,i>>=this.DB;i-=e.s}t.s=i<0?-1:0,i<-1?t[n++]=this.DV+i:i>0&&(t[n++]=i),t.t=n,t.clamp()},Ot.prototype.multiplyTo=function(e,t){var n=this.abs(),i=e.abs(),r=n.t;for(t.t=r+i.t;--r>=0;)t[r]=0;for(r=0;r<i.t;++r)t[r+n.t]=n.am(0,i[r],t,r,0,n.t);t.s=0,t.clamp(),this.s!=e.s&&Ot.ZERO.subTo(t,t)},Ot.prototype.squareTo=function(e){for(var t=this.abs(),n=e.t=2*t.t;--n>=0;)e[n]=0;for(n=0;n<t.t-1;++n){var i=t.am(n,t[n],e,2*n,0,1);(e[n+t.t]+=t.am(n+1,2*t[n],e,2*n+1,i,t.t-n-1))>=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},Ot.prototype.divRemTo=function(e,t,n){var i=e.abs();if(!(i.t<=0)){var r=this.abs();if(r.t<i.t)return null!=t&&t.fromInt(0),void(null!=n&&this.copyTo(n));null==n&&(n=Ut());var o=Ut(),a=this.s,s=e.s,c=this.DB-Ft(i[i.t-1]);c>0?(i.lShiftTo(c,o),r.lShiftTo(c,n)):(i.copyTo(o),r.copyTo(n));var u=o.t,p=o[u-1];if(0!=p){var l=p*(1<<this.F1)+(u>1?o[u-2]>>this.F2:0),f=this.FV/l,h=(1<<this.F1)/l,d=1<<this.F2,m=n.t,v=m-u,g=null==t?Ut():t;for(o.dlShiftTo(v,g),n.compareTo(g)>=0&&(n[n.t++]=1,n.subTo(g,n)),Ot.ONE.dlShiftTo(u,g),g.subTo(o,o);o.t<u;)o[o.t++]=0;for(;--v>=0;){var b=n[--m]==p?this.DM:Math.floor(n[m]*f+(n[m-1]+d)*h);if((n[m]+=o.am(0,b,n,v,0,u))<b)for(o.dlShiftTo(v,g),n.subTo(g,n);n[m]<--b;)n.subTo(g,n)}null!=t&&(n.drShiftTo(u,t),a!=s&&Ot.ZERO.subTo(t,t)),n.t=u,n.clamp(),c>0&&n.rShiftTo(c,n),a<0&&Ot.ZERO.subTo(n,n)}}},Ot.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},Ot.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},Ot.prototype.exp=function(e,t){if(e>4294967295||e<1)return Ot.ONE;var n=Ut(),i=Ut(),r=t.convert(this),o=Ft(e)-1;for(r.copyTo(n);--o>=0;)if(t.sqrTo(n,i),(e&1<<o)>0)t.mulTo(i,r,n);else{var a=n;n=i,i=a}return t.revert(n)},Ot.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)return this.toRadix(e);t=2}var n,i=(1<<t)-1,r=!1,o="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(n=this[a]>>s)>0&&(r=!0,o=jt(n));a>=0;)s<t?(n=(this[a]&(1<<s)-1)<<t-s,n|=this[--a]>>(s+=this.DB-t)):(n=this[a]>>(s-=t)&i,s<=0&&(s+=this.DB,--a)),n>0&&(r=!0),r&&(o+=jt(n));return r?o:"0"},Ot.prototype.negate=function(){var e=Ut();return Ot.ZERO.subTo(this,e),e},Ot.prototype.abs=function(){return this.s<0?this.negate():this},Ot.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},Ot.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Ft(this[this.t-1]^this.s&this.DM)},Ot.prototype.mod=function(e){var t=Ut();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(Ot.ZERO)>0&&e.subTo(t,t),t},Ot.prototype.modPowInt=function(e,t){var n;return n=e<256||t.isEven()?new Gt(t):new qt(t),this.exp(e,n)},Ot.ZERO=Mt(0),Ot.ONE=Mt(1),Qt.prototype.convert=Yt,Qt.prototype.revert=Yt,Qt.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n)},Qt.prototype.sqrTo=function(e,t){e.squareTo(t)},Zt.prototype.convert=function(e){if(e.s<0||e.t>2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=Ut();return e.copyTo(t),this.reduce(t),t},Zt.prototype.revert=function(e){return e},Zt.prototype.reduce=function(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)},Zt.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},Zt.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)};var Jt=[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],en=(1<<26)/Jt[Jt.length-1];Ot.prototype.chunkSize=function(e){return Math.floor(Math.LN2*this.DB/Math.log(e))},Ot.prototype.toRadix=function(e){if(null==e&&(e=10),0==this.signum()||e<2||e>36)return"0";var t=this.chunkSize(e),n=Math.pow(e,t),i=Mt(n),r=Ut(),o=Ut(),a="";for(this.divRemTo(i,r,o);r.signum()>0;)a=(n+o.intValue()).toString(e).substr(1)+a,r.divRemTo(i,r,o);return o.intValue().toString(e)+a},Ot.prototype.fromRadix=function(e,t){this.fromInt(0),null==t&&(t=10);for(var n=this.chunkSize(t),i=Math.pow(t,n),r=!1,o=0,a=0,s=0;s<e.length;++s){var c=Ht(e,s);c<0?"-"==e.charAt(s)&&0==this.signum()&&(r=!0):(a=t*a+c,++o>=n&&(this.dMultiply(i),this.dAddOffset(a,0),o=0,a=0))}o>0&&(this.dMultiply(Math.pow(t,o)),this.dAddOffset(a,0)),r&&Ot.ZERO.subTo(this,this)},Ot.prototype.fromNumber=function(e,t,n){if("number"==typeof t)if(e<2)this.fromInt(1);else for(this.fromNumber(e,n),this.testBit(e-1)||this.bitwiseTo(Ot.ONE.shiftLeft(e-1),$t,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(Ot.ONE.shiftLeft(e-1),this);else{var i=new Array,r=7&e;i.length=1+(e>>3),t.nextBytes(i),r>0?i[0]&=(1<<r)-1:i[0]=0,this.fromString(i,256)}},Ot.prototype.bitwiseTo=function(e,t,n){var i,r,o=Math.min(e.t,this.t);for(i=0;i<o;++i)n[i]=t(this[i],e[i]);if(e.t<this.t){for(r=e.s&this.DM,i=o;i<this.t;++i)n[i]=t(this[i],r);n.t=this.t}else{for(r=this.s&this.DM,i=o;i<e.t;++i)n[i]=t(r,e[i]);n.t=e.t}n.s=t(this.s,e.s),n.clamp()},Ot.prototype.changeBit=function(e,t){var n=Ot.ONE.shiftLeft(e);return this.bitwiseTo(n,t,n),n},Ot.prototype.addTo=function(e,t){for(var n=0,i=0,r=Math.min(e.t,this.t);n<r;)i+=this[n]+e[n],t[n++]=i&this.DM,i>>=this.DB;if(e.t<this.t){for(i+=e.s;n<this.t;)i+=this[n],t[n++]=i&this.DM,i>>=this.DB;i+=this.s}else{for(i+=this.s;n<e.t;)i+=e[n],t[n++]=i&this.DM,i>>=this.DB;i+=e.s}t.s=i<0?-1:0,i>0?t[n++]=i:i<-1&&(t[n++]=this.DV+i),t.t=n,t.clamp()},Ot.prototype.dMultiply=function(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()},Ot.prototype.dAddOffset=function(e,t){if(0!=e){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}},Ot.prototype.multiplyLowerTo=function(e,t,n){var i,r=Math.min(this.t+e.t,t);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,e[r],n,r,0,this.t);for(i=Math.min(e.t,t);r<i;++r)this.am(0,e[r],n,r,0,t-r);n.clamp()},Ot.prototype.multiplyUpperTo=function(e,t,n){--t;var i=n.t=this.t+e.t-t;for(n.s=0;--i>=0;)n[i]=0;for(i=Math.max(t-this.t,0);i<e.t;++i)n[this.t+i-t]=this.am(t-i,e[i],n,0,0,this.t+i-t);n.clamp(),n.drShiftTo(1,n)},Ot.prototype.modInt=function(e){if(e<=0)return 0;var t=this.DV%e,n=this.s<0?e-1:0;if(this.t>0)if(0==t)n=this[0]%e;else for(var i=this.t-1;i>=0;--i)n=(t*n+this[i])%e;return n},Ot.prototype.millerRabin=function(e){var t=this.subtract(Ot.ONE),n=t.getLowestSetBit();if(n<=0)return!1;var i=t.shiftRight(n);(e=e+1>>1)>Jt.length&&(e=Jt.length);for(var r=Ut(),o=0;o<e;++o){r.fromInt(Jt[Math.floor(Math.random()*Jt.length)]);var a=r.modPow(i,this);if(0!=a.compareTo(Ot.ONE)&&0!=a.compareTo(t)){for(var s=1;s++<n&&0!=a.compareTo(t);)if(0==(a=a.modPowInt(2,this)).compareTo(Ot.ONE))return!1;if(0!=a.compareTo(t))return!1}}return!0},Ot.prototype.clone=function(){var e=Ut();return this.copyTo(e),e},Ot.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},Ot.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},Ot.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},Ot.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},Ot.prototype.toByteArray=function(){var e=this.t,t=new Array;t[0]=this.s;var n,i=this.DB-e*this.DB%8,r=0;if(e-- >0)for(i<this.DB&&(n=this[e]>>i)!=(this.s&this.DM)>>i&&(t[r++]=n|this.s<<this.DB-i);e>=0;)i<8?(n=(this[e]&(1<<i)-1)<<8-i,n|=this[--e]>>(i+=this.DB-8)):(n=this[e]>>(i-=8)&255,i<=0&&(i+=this.DB,--e)),0!=(128&n)&&(n|=-256),0==r&&(128&this.s)!=(128&n)&&++r,(r>0||n!=this.s)&&(t[r++]=n);return t},Ot.prototype.equals=function(e){return 0==this.compareTo(e)},Ot.prototype.min=function(e){return this.compareTo(e)<0?this:e},Ot.prototype.max=function(e){return this.compareTo(e)>0?this:e},Ot.prototype.and=function(e){var t=Ut();return this.bitwiseTo(e,zt,t),t},Ot.prototype.or=function(e){var t=Ut();return this.bitwiseTo(e,$t,t),t},Ot.prototype.xor=function(e){var t=Ut();return this.bitwiseTo(e,Kt,t),t},Ot.prototype.andNot=function(e){var t=Ut();return this.bitwiseTo(e,Wt,t),t},Ot.prototype.not=function(){for(var e=Ut(),t=0;t<this.t;++t)e[t]=this.DM&~this[t];return e.t=this.t,e.s=~this.s,e},Ot.prototype.shiftLeft=function(e){var t=Ut();return e<0?this.rShiftTo(-e,t):this.lShiftTo(e,t),t},Ot.prototype.shiftRight=function(e){var t=Ut();return e<0?this.lShiftTo(-e,t):this.rShiftTo(e,t),t},Ot.prototype.getLowestSetBit=function(){for(var e=0;e<this.t;++e)if(0!=this[e])return e*this.DB+Xt(this[e]);return this.s<0?this.t*this.DB:-1},Ot.prototype.bitCount=function(){for(var e=0,t=this.s&this.DM,n=0;n<this.t;++n)e+=Vt(this[n]^t);return e},Ot.prototype.testBit=function(e){var t=Math.floor(e/this.DB);return t>=this.t?0!=this.s:0!=(this[t]&1<<e%this.DB)},Ot.prototype.setBit=function(e){return this.changeBit(e,$t)},Ot.prototype.clearBit=function(e){return this.changeBit(e,Wt)},Ot.prototype.flipBit=function(e){return this.changeBit(e,Kt)},Ot.prototype.add=function(e){var t=Ut();return this.addTo(e,t),t},Ot.prototype.subtract=function(e){var t=Ut();return this.subTo(e,t),t},Ot.prototype.multiply=function(e){var t=Ut();return this.multiplyTo(e,t),t},Ot.prototype.divide=function(e){var t=Ut();return this.divRemTo(e,t,null),t},Ot.prototype.remainder=function(e){var t=Ut();return this.divRemTo(e,null,t),t},Ot.prototype.divideAndRemainder=function(e){var t=Ut(),n=Ut();return this.divRemTo(e,t,n),new Array(t,n)},Ot.prototype.modPow=function(e,t){var n,i,r=e.bitLength(),o=Mt(1);if(r<=0)return o;n=r<18?1:r<48?3:r<144?4:r<768?5:6,i=r<8?new Gt(t):t.isEven()?new Zt(t):new qt(t);var a=new Array,s=3,c=n-1,u=(1<<n)-1;if(a[1]=i.convert(this),n>1){var p=Ut();for(i.sqrTo(a[1],p);s<=u;)a[s]=Ut(),i.mulTo(p,a[s-2],a[s]),s+=2}var l,f,h=e.t-1,d=!0,m=Ut();for(r=Ft(e[h])-1;h>=0;){for(r>=c?l=e[h]>>r-c&u:(l=(e[h]&(1<<r+1)-1)<<c-r,h>0&&(l|=e[h-1]>>this.DB+r-c)),s=n;0==(1&l);)l>>=1,--s;if((r-=s)<0&&(r+=this.DB,--h),d)a[l].copyTo(o),d=!1;else{for(;s>1;)i.sqrTo(o,m),i.sqrTo(m,o),s-=2;s>0?i.sqrTo(o,m):(f=o,o=m,m=f),i.mulTo(m,a[l],o)}for(;h>=0&&0==(e[h]&1<<r);)i.sqrTo(o,m),f=o,o=m,m=f,--r<0&&(r=this.DB-1,--h)}return i.revert(o)},Ot.prototype.modInverse=function(e){var t=e.isEven();if(this.isEven()&&t||0==e.signum())return Ot.ZERO;for(var n=e.clone(),i=this.clone(),r=Mt(1),o=Mt(0),a=Mt(0),s=Mt(1);0!=n.signum();){for(;n.isEven();)n.rShiftTo(1,n),t?(r.isEven()&&o.isEven()||(r.addTo(this,r),o.subTo(e,o)),r.rShiftTo(1,r)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),t?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(e,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);n.compareTo(i)>=0?(n.subTo(i,n),t&&r.subTo(a,r),o.subTo(s,o)):(i.subTo(n,i),t&&a.subTo(r,a),s.subTo(o,s))}return 0!=i.compareTo(Ot.ONE)?Ot.ZERO:s.compareTo(e)>=0?s.subtract(e):s.signum()<0?(s.addTo(e,s),s.signum()<0?s.add(e):s):s},Ot.prototype.pow=function(e){return this.exp(e,new Qt)},Ot.prototype.gcd=function(e){var t=this.s<0?this.negate():this.clone(),n=e.s<0?e.negate():e.clone();if(t.compareTo(n)<0){var i=t;t=n,n=i}var r=t.getLowestSetBit(),o=n.getLowestSetBit();if(o<0)return t;for(r<o&&(o=r),o>0&&(t.rShiftTo(o,t),n.rShiftTo(o,n));t.signum()>0;)(r=t.getLowestSetBit())>0&&t.rShiftTo(r,t),(r=n.getLowestSetBit())>0&&n.rShiftTo(r,n),t.compareTo(n)>=0?(t.subTo(n,t),t.rShiftTo(1,t)):(n.subTo(t,n),n.rShiftTo(1,n));return o>0&&n.lShiftTo(o,n),n},Ot.prototype.isProbablePrime=function(e){var t,n=this.abs();if(1==n.t&&n[0]<=Jt[Jt.length-1]){for(t=0;t<Jt.length;++t)if(n[0]==Jt[t])return!0;return!1}if(n.isEven())return!1;for(t=1;t<Jt.length;){for(var i=Jt[t],r=t+1;r<Jt.length&&i<en;)i*=Jt[r++];for(i=n.modInt(i);t<r;)if(i%Jt[t++]==0)return!1}return n.millerRabin(e)},Ot.prototype.square=function(){var e=Ut();return this.squareTo(e),e},Ot.prototype.Barrett=Zt;var tn,nn,rn,on=Ot,an={},sn=an.MESSAGE={DISCONNECT:1,IGNORE:2,UNIMPLEMENTED:3,DEBUG:4,SERVICE_REQUEST:5,SERVICE_ACCEPT:6,KEXINIT:20,NEWKEYS:21,USERAUTH_REQUEST:50,USERAUTH_FAILURE:51,USERAUTH_SUCCESS:52,USERAUTH_BANNER:53,GLOBAL_REQUEST:80,REQUEST_SUCCESS:81,REQUEST_FAILURE:82,CHANNEL_OPEN:90,CHANNEL_OPEN_CONFIRMATION:91,CHANNEL_OPEN_FAILURE:92,CHANNEL_WINDOW_ADJUST:93,CHANNEL_DATA:94,CHANNEL_EXTENDED_DATA:95,CHANNEL_EOF:96,CHANNEL_CLOSE:97,CHANNEL_REQUEST:98,CHANNEL_SUCCESS:99,CHANNEL_FAILURE:100};for(tn=0,rn=(nn=Object.keys(sn)).length;tn<rn;++tn)sn[sn[nn[tn]]]=nn[tn];sn.KEXDH_INIT=30,sn.KEXDH_REPLY=31,sn.KEXDH_GEX_REQUEST=34,sn.KEXDH_GEX_GROUP=31,sn.KEXDH_GEX_INIT=32,sn.KEXDH_GEX_REPLY=33,sn.USERAUTH_PASSWD_CHANGEREQ=60,sn.USERAUTH_PK_OK=60,sn.USERAUTH_INFO_REQUEST=60,sn.USERAUTH_INFO_RESPONSE=61;var cn=an.DISCONNECT_REASON={HOST_NOT_ALLOWED_TO_CONNECT:1,PROTOCOL_ERROR:2,KEY_EXCHANGE_FAILED:3,RESERVED:4,MAC_ERROR:5,COMPRESSION_ERROR:6,SERVICE_NOT_AVAILABLE:7,PROTOCOL_VERSION_NOT_SUPPORTED:8,HOST_KEY_NOT_VERIFIABLE:9,CONNECTION_LOST:10,BY_APPLICATION:11,TOO_MANY_CONNECTIONS:12,AUTH_CANCELED_BY_USER:13,NO_MORE_AUTH_METHODS_AVAILABLE:14,ILLEGAL_USER_NAME:15};for(tn=0,rn=(nn=Object.keys(cn)).length;tn<rn;++tn)cn[cn[nn[tn]]]=nn[tn];var un=an.CHANNEL_OPEN_FAILURE={ADMINISTRATIVELY_PROHIBITED:1,CONNECT_FAILED:2,UNKNOWN_CHANNEL_TYPE:3,RESOURCE_SHORTAGE:4};for(tn=0,rn=(nn=Object.keys(un)).length;tn<rn;++tn)un[un[nn[tn]]]=nn[tn];var pn=an.TERMINAL_MODE={TTY_OP_END:0,VINTR:1,VQUIT:2,VERASE:3,VKILL:4,VEOF:5,VEOL:6,VEOL2:7,VSTART:8,VSTOP:9,VSUSP:10,VDSUSP:11,VREPRINT:12,VWERASE:13,VLNEXT:14,VFLUSH:15,VSWTCH:16,VSTATUS:17,VDISCARD:18,IGNPAR:30,PARMRK:31,INPCK:32,ISTRIP:33,INLCR:34,IGNCR:35,ICRNL:36,IUCLC:37,IXON:38,IXANY:39,IXOFF:40,IMAXBEL:41,ISIG:50,ICANON:51,XCASE:52,ECHO:53,ECHOE:54,ECHOK:55,ECHONL:56,NOFLSH:57,TOSTOP:58,IEXTEN:59,ECHOCTL:60,ECHOKE:61,PENDIN:62,OPOST:70,OLCUC:71,ONLCR:72,OCRNL:73,ONOCR:74,ONLRET:75,CS7:90,CS8:91,PARENB:92,PARODD:93,TTY_OP_ISPEED:128,TTY_OP_OSPEED:129};for(tn=0,rn=(nn=Object.keys(pn)).length;tn<rn;++tn)pn[pn[nn[tn]]]=nn[tn];var ln=an.CHANNEL_EXTENDED_DATATYPE={STDERR:1};for(tn=0,rn=(nn=Object.keys(ln)).length;tn<rn;++tn)ln[ln[nn[tn]]]=nn[tn];an.SIGNALS=["ABRT","ALRM","FPE","HUP","ILL","INT","QUIT","SEGV","TERM","USR1","USR2","KILL","PIPE"];var fn=["diffie-hellman-group14-sha1","diffie-hellman-group1-sha1"],hn=new Buffer(fn.join(",")),dn=["ssh-rsa","ssh-dss"],mn=new Buffer(dn.join(",")),vn=["aes256-cbc","aes192-cbc","aes128-cbc","blowfish-cbc","3des-cbc","arcfour256","arcfour128","cast128-cbc","arcfour"],gn=new Buffer(vn.join(",")),bn=["hmac-md5","hmac-sha1","hmac-sha2-256","hmac-sha2-256-96","hmac-sha2-512","hmac-sha2-512-96","hmac-ripemd160","hmac-sha1-96","hmac-md5-96"],yn=new Buffer(bn.join(",")),xn=["none"],_n=new Buffer(xn.join(","));process.versions.openssl>="1.0.1"&&(process.version>="v0.11.12"&&(vn=["aes128-gcm","aes128-gcm@openssh.com","aes256-gcm","aes256-gcm@openssh.com"].concat(vn),fn=["diffie-hellman-group-exchange-sha256","diffie-hellman-group-exchange-sha1"].concat(fn),hn=new Buffer(fn.join(","))),vn=["aes256-ctr","aes192-ctr","aes128-ctr"].concat(vn),gn=new Buffer(vn.join(","))),an.ALGORITHMS={KEX:fn,KEX_LIST:hn,KEX_LIST_SIZE:hn.length,SERVER_HOST_KEY:dn,SERVER_HOST_KEY_LIST:mn,SERVER_HOST_KEY_LIST_SIZE:mn.length,CIPHER:vn,CIPHER_LIST:gn,CIPHER_LIST_SIZE:gn.length,HMAC:bn,HMAC_LIST:yn,HMAC_LIST_SIZE:yn.length,COMPRESS:xn,COMPRESS_LIST:_n,COMPRESS_LIST_SIZE:_n.length},an.SSH_TO_OPENSSL={"aes128-gcm":"aes-128-gcm","aes256-gcm":"aes-256-gcm","aes128-gcm@openssh.com":"aes-128-gcm","aes256-gcm@openssh.com":"aes-256-gcm","3des-cbc":"des-ede3-cbc","blowfish-cbc":"bf-cbc","aes256-cbc":"aes-256-cbc","aes192-cbc":"aes-192-cbc","aes128-cbc":"aes-128-cbc","idea-cbc":"idea-cbc","cast128-cbc":"cast-cbc","rijndael-cbc@lysator.liu.se":"aes-256-cbc",arcfour128:"rc4",arcfour256:"rc4",arcfour512:"rc4",arcfour:"rc4","camellia128-cbc":"camellia-128-cbc","camellia192-cbc":"camellia-192-cbc","camellia256-cbc":"camellia-256-cbc","camellia128-cbc@openssh.com":"camellia-128-cbc","camellia192-cbc@openssh.com":"camellia-192-cbc","camellia256-cbc@openssh.com":"camellia-256-cbc","3des-ctr":"des-ede3","blowfish-ctr":"bf-ecb","aes256-ctr":"aes-256-ctr","aes192-ctr":"aes-192-ctr","aes128-ctr":"aes-128-ctr","cast128-ctr":"cast5-ecb","camellia128-ctr":"camellia-128-ecb","camellia192-ctr":"camellia-192-ecb","camellia256-ctr":"camellia-256-ecb","camellia128-ctr@openssh.com":"camellia-128-ecb","camellia192-ctr@openssh.com":"camellia-192-ecb","camellia256-ctr@openssh.com":"camellia-256-ecb","hmac-sha1-96":"sha1","hmac-sha1":"sha1","hmac-sha2-256":"sha256","hmac-sha2-256-96":"sha256","hmac-sha2-512":"sha512","hmac-sha2-512-96":"sha512","hmac-md5-96":"md5","hmac-md5":"md5","hmac-ripemd160":"ripemd160"};var wn,En,Sn,An,Rn=an.BUGS={BAD_DHGEX:1};function kn(){if(En)return wn;var e;En=1;var t=/^PuTTY-User-Key-File-2: ssh-(rsa|dss)\r?\nEncryption: (aes256-cbc|none)\r?\nComment: ([^\r\n]*)\r?\nPublic-Lines: \d+\r?\n([\s\S]+?)\r?\nPrivate-Lines: \d+\r?\n([\s\S]+?)\r?\nPrivate-MAC: ([^\r\n]+)/,n=/^-----BEGIN (RSA|DSA) PRIVATE KEY-----$/i,i=/^-----END (?:RSA|DSA) PRIVATE KEY-----$/i,r=/^(ssh-(rsa|dss)(?:-cert-v0[01]@openssh.com)?) ([A-Z0-9a-z\/+=]+)(?:$|\s+([\S].*)?)$/i,o=/^---- BEGIN SSH2 PUBLIC KEY ----$/i,a=/^---- END SSH2 PUBLIC KEY ----$/i,s=/^([^:]+):\s*([\S].*)?$/i,c=/^([^:]+): (.*)?$/i;return wn=function(u){if(Buffer.isBuffer(u))u=u.toString("utf8");else if("string"!=typeof u)return new Error("Key data must be a Buffer or string");var p,l,f,h={fulltype:void 0,type:void 0,extra:void 0,comment:void 0,encryption:void 0,private:void 0,privateOrig:void 0,public:void 0,publicOrig:void 0};for(u=u.trim().split(/\r\n|\n/);!u[0].length;)u.shift();for(;!u.slice(-1)[0].length;)u.pop();var d=u.join("\n");if((p=n.exec(u[0]))&&i.test(u.slice(-1))){if(h.type="dsa"===p[1].toLowerCase()?"dss":"rsa",s.test(u[1])){for(l=1,f=u.length;l<f;++l)if(p=s.exec(u[l]))p[1]=p[1].toLowerCase(),"dek-info"===p[1]&&(p[2]=p[2].split(","),h.encryption=p[2][0].toLowerCase(),p[2].length>1&&(h.extra=p[2].slice(1)));else if(u[l].length)break;h.private=new Buffer(u.slice(l,-1).join(""),"base64")}else h.private=new Buffer(u.slice(1,-1).join(""),"base64");h.privateOrig=new Buffer(d)}else if(p=r.exec(u[0]))h.fulltype=p[1],h.type=p[2].toLowerCase(),h.public=new Buffer(p[3],"base64"),h.publicOrig=new Buffer(d),h.comment=p[4];else if(o.test(u[0])&&a.test(u.slice(-1))){if(-1===u[1].indexOf(": "))h.public=new Buffer(u.slice(1,-1).join(""),"base64");else{for(l=1,f=u.length;l<f;++l)if(-1!==u[l].indexOf(": ")){for(;"\\"===u[l].substr(-1);){if(!(l+1<f))return new Error("RFC4716 public key missing header continuation line");u[l]=u[l].slice(0,-1)+u[l+1],u.splice(l+1,1),--f}if(!(p=c.exec(u[l])))return new Error("RFC4716 public key invalid header line");p[1]=p[1].toLowerCase(),"comment"===p[1]&&(h.comment=p[2]||"",'"'===h.comment[0]&&'"'===h.comment.substr(-1)&&(h.comment=h.comment.slice(1,-1)))}else if(u[l].length)break;h.public=new Buffer(u.slice(l,-1).join(""),"base64")}f=h.public.readUInt32BE(0,!0);var m=h.public.toString("ascii",4,4+f);if(h.fulltype=m,"ssh-dss"===m)h.type="dss";else{if("ssh-rsa"!==m)return new Error("Unsupported RFC4716 public key type: "+m);h.type="rsa"}h.public=h.public.slice(11),h.publicOrig=new Buffer(d)}else{if(!(p=t.exec(d)))return new Error("Unsupported key format");e||(e=Tn()),h.ppk=!0,h.type=p[1],h.fulltype="ssh-"+p[1],"none"!==p[2]&&(h.encryption=p[2]),h.comment=p[3],h.public=new Buffer(p[4].replace(/\r?\n/g,""),"base64");var v=new Buffer(p[5].replace(/\r?\n/g,""),"base64");if(!(h.privateMAC=p[6].replace(/\r?\n/g,""),h.encryption||e.verifyPPKMAC(h,void 0,v)))throw new Error("PPK MAC mismatch");var g=e.genPublicKey(h);h.public=g.public,h.publicOrig=g.publicOrig,h.private=v,h.encryption||e.convertPPKPrivate(h)}return h},wn}function Tn(){if(An)return Sn;An=1;var e=a,t=It.Ber,n=on,i=an.SSH_TO_OPENSSL,r=/^arcfour/i,o=/^aes\d+-gcm/i,s=/(.{64})/g,c=1/0,u=new Buffer([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function p(t,n,i){if(void 0!==t._macresult)return t._macresult;if(!t.ppk)throw new Error("Key isn't a PPK");if(!t.privateMAC)throw new Error("Missing MAC");if(!i)throw new Error("Missing raw private key data");if(t.encryption&&"string"!=typeof n)throw new Error("Missing passphrase for encrypted PPK");if(t.encryption&&!t._decrypted)throw new Error("PPK must be decrypted before verifying MAC");var r=t.privateMAC,o=t.fulltype.length,a=t.encryption?"aes256-cbc":"none",s=a.length,c=Buffer.byteLength(t.comment),u=t.public,p=u.length,l=i.length,f=new Buffer(4+o+4+s+4+c+4+p+4+l),h=0;f.writeUInt32BE(o,h,!0),f.write(t.fulltype,h+=4,o,"ascii"),f.writeUInt32BE(s,h+=o,!0),f.write(a,h+=4,s,"ascii"),f.writeUInt32BE(c,h+=s,!0),f.write(t.comment,h+=4,c,"utf8"),f.writeUInt32BE(p,h+=c,!0),u.copy(f,h+=4),f.writeUInt32BE(l,h+=p,!0),i.copy(f,h+=4),"string"!=typeof n&&(n="");var d=e.createHash("sha1").update("putty-private-key-file-mac-key","ascii").update(n,"utf8").digest("binary");d=new Buffer(d,"binary");var m=e.createHmac("sha1",d).update(f,"binary").digest("hex");return t._macresult=m===r}function l(e){if(!(e.ppk&&e.public&&e.private))throw new Error("Key isn't a PPK");if(e._converted)return!1;var i,r,o=e.public,a=e.private,c=new t.Writer;if("rsa"===e.type){var u=f(o,11),p=f(o,o._pos),l=f(a,0);i=f(a,a._pos),r=f(a,a._pos);var h=f(a,a._pos),d=new n(i,256),m=new n(r,256),v=new n(l,256),g=new n(l,256);v=new Buffer(v.mod(d.subtract(n.ONE)).toByteArray()),g=new Buffer(g.mod(m.subtract(n.ONE)).toByteArray()),c.startSequence(),c.writeInt(0,t.Integer),c.writeBuffer(p,t.Integer),c.writeBuffer(u,t.Integer),c.writeBuffer(l,t.Integer),c.writeBuffer(i,t.Integer),c.writeBuffer(r,t.Integer),c.writeBuffer(v,t.Integer),c.writeBuffer(g,t.Integer),c.writeBuffer(h,t.Integer),c.endSequence()}else{i=f(o,11),r=f(o,o._pos);var b=f(o,o._pos),y=f(o,o._pos),x=f(a,0);c.startSequence(),c.writeInt(0,t.Integer),c.writeBuffer(i,t.Integer),c.writeBuffer(r,t.Integer),c.writeBuffer(b,t.Integer),c.writeBuffer(y,t.Integer),c.writeBuffer(x,t.Integer),c.endSequence()}var _=c.buffer.toString("base64").replace(s,"$1\n"),w="-----BEGIN "+("rsa"===e.type?"RSA":"DSA")+" PRIVATE KEY-----\n"+_+("\n"===_[_.length-1]?"":"\n")+"-----END "+("rsa"===e.type?"RSA":"DSA")+" PRIVATE KEY-----";return e.private=c.buffer,e.privateOrig=new Buffer(w),e._converted=!0,!0}function f(e,t,n,i,r,o){n&&!Buffer.isBuffer(n)&&"string"!=typeof n&&("number"==typeof r&&(o=r),r=i,i=n,n=void 0);var a,s,u=e.length,p=u-t;return t<0||t>=u||p<4||(a=e.readUInt32BE(t,!0))>(o||c)||p<4+a?(i&&i._cleanup(r),!1):(s=(t+=4)+a,e._pos=s,n?Buffer.isBuffer(n)?(e.copy(n,0,t,s),n):e.toString(n,t,s):e.slice(t,s))}return Sn={iv_inc:function(e){var t=12,n=0;do{if(255!==(n=e[--t]))return void(e[t]=++n);e[t]=0}while(t>4)},isStreamCipher:function(e){return r.test(e)},isGCM:function(e){return o.test(e)},readInt:function(e,t,n,i){var r=e.length;return t<0||t>=r||r-t<4?(n&&n._cleanup(i),!1):e.readUInt32BE(t,!0)},readString:f,parseKey:kn(),genPublicKey:function(e){var n,i,r,o,a,c,u,p,l,f,h,d,m,v;if(e.private){var g,b,y=e.private,x=2;if(48!==y[0]){var _="Malformed private key (expected sequence)";throw e._decrypted&&(_+=". Bad passphrase?"),new Error(_)}if(128&y[1]&&(x+=127&y[1]),2!==y[x++])throw new Error("Malformed private key (expected integer for version)");if(128&(g=y[x++]))for(b=127&g,g=0;b>0;)g+=y[x++]*Math.pow(2,8*(b-1)),--b;if(x+=g,"rsa"===e.type){if(2!==y[x++])throw new Error("Malformed private key (expected integer for n)");if(128&(o=y[x++]))for(b=127&o,o=0;b>0;)o+=y[x++]*Math.pow(2,8*(b-1)),--b;if(r=x,x+=o,2!==y[x++])throw new Error("Malformed private key (expected integer for e)");if(128&(c=y[x++]))for(b=127&c,c=0;b>0;)c+=y[x++]*Math.pow(2,8*(b-1)),--b;a=x}else{if(2!==y[x++])throw new Error("Malformed private key (expected integer for p)");if(128&(p=y[x++]))for(b=127&p,p=0;b>0;)p+=y[x++]*Math.pow(2,8*(b-1)),--b;if(u=x,x+=p,2!==y[x++])throw new Error("Malformed private key (expected integer for q)");if(128&(f=y[x++]))for(b=127&f,f=0;b>0;)f+=y[x++]*Math.pow(2,8*(b-1)),--b;if(l=x,x+=f,2!==y[x++])throw new Error("Malformed private key (expected integer for g)");if(128&(d=y[x++]))for(b=127&d,d=0;b>0;)d+=y[x++]*Math.pow(2,8*(b-1)),--b;if(h=x,x+=d,2!==y[x++])throw new Error("Malformed private key (expected integer for y)");if(128&(v=y[x++]))for(b=127&v,v=0;b>0;)v+=y[x++]*Math.pow(2,8*(b-1)),--b;m=x,x+=v}i=11,"rsa"===e.type?((n=new Buffer(15+o+4+c)).writeUInt32BE(7,0,!0),n.write("ssh-rsa",4,7,"ascii"),n.writeUInt32BE(c,i,!0),y.copy(n,i+=4,a,a+c),n.writeUInt32BE(o,i+=c,!0),y.copy(n,i+=4,r,r+o)):((n=new Buffer(15+p+4+f+4+d+4+v)).writeUInt32BE(7,0,!0),n.write("ssh-dss",4,7,"ascii"),n.writeUInt32BE(p,i,!0),y.copy(n,i+=4,u,u+p),n.writeUInt32BE(f,i+=p,!0),y.copy(n,i+=4,l,l+f),n.writeUInt32BE(d,i+=f,!0),y.copy(n,i+=4,h,h+d),n.writeUInt32BE(v,i+=d,!0),y.copy(n,i+=4,m,m+v))}else{if(!e.public)throw new Error("Missing data generated by parseKey()");if(0!==(n=e.public)[0]||0!==n[1]||0!==n[2]||7!==n[3]||115!==n[4]||115!==n[5]||104!==n[6]||45!==n[7]||(114!==n[8]||115!==n[9]||97!==n[10])&&(100!==n[8]||115!==n[9]||115!==n[10])){var w=new Buffer(11+n.length);n.copy(w,11),w.writeUInt32BE(7,0,!0),"rsa"===e.type?w.write("ssh-rsa",4,7,"ascii"):w.write("ssh-dss",4,7,"ascii"),n=w}}i=11;var E=new t.Writer;if(E.startSequence(),"rsa"===e.type){c=n.readUInt32BE(i,!0),a=i+=4,i+=c,o=n.readUInt32BE(i,!0),r=i+=4;var S=n.slice(a,a+c),A=n.slice(r,r+o);E.startSequence(),E.writeOID("1.2.840.113549.1.1.1"),E.writeNull(),E.endSequence(),E.startSequence(t.BitString),E.writeByte(0),E.startSequence(),E.writeBuffer(A,t.Integer),E.writeBuffer(S,t.Integer),E.endSequence(),E.endSequence()}else{p=n.readUInt32BE(i,!0),u=i+=4,i+=p,f=n.readUInt32BE(i,!0),l=i+=4,i+=f,d=n.readUInt32BE(i,!0),h=i+=4,i+=d,v=n.readUInt32BE(i,!0),m=i+=4,i=n.slice(u,u+p);var R=n.slice(l,l+f),k=n.slice(h,h+d),T=n.slice(m,m+v);E.startSequence(),E.writeOID("1.2.840.10040.4.1"),E.startSequence(),E.writeBuffer(i,t.Integer),E.writeBuffer(R,t.Integer),E.writeBuffer(k,t.Integer),E.endSequence(),E.endSequence(),E.startSequence(t.BitString),E.writeByte(0),E.writeBuffer(T,t.Integer),E.endSequence()}E.endSequence();var B=E.buffer.toString("base64").replace(s,"$1\n"),C="-----BEGIN PUBLIC KEY-----\n"+B+("\n"===B[B.length-1]?"":"\n")+"-----END PUBLIC KEY-----";return{type:e.type,fulltype:"ssh-"+e.type,public:n,publicOrig:new Buffer(C)}},convertPPKPrivate:l,verifyPPKMAC:p,decryptKey:function(t,n){if(!t._decrypted&&t.encryption){var r,o,a,s,c=0;switch(t.encryption=i[t.encryption]||t.encryption,t.encryption){case"aes-256-cbc":case"aes-256-ctr":c=32;break;case"des-ede3-cbc":case"des-ede3":case"aes-192-cbc":case"aes-192-ctr":c=24;break;case"aes-128-cbc":case"aes-128-ctr":case"cast-cbc":case"bf-cbc":c=16}if(t.ppk)o=u,r=e.createHash("sha1").update("\0\0\0\0"+n,"binary").digest("binary")+e.createHash("sha1").update("\0\0\0"+n,"binary").digest("binary"),r=new Buffer(r,"binary").slice(0,c);else{for(o=new Buffer(t.extra[0],"hex"),r=new Buffer(e.createHash("md5").update(n+o.toString("binary",0,8),"binary").digest("binary"),"binary");c>r.length;)r=Buffer.concat([r,new Buffer(e.createHash("md5").update(r.toString("binary")+n+o.toString("binary"),"binary").digest("binary"),"binary").slice(0,8)]);r.length>c&&(r=r.slice(0,c))}if((s=e.createDecipheriv(t.encryption,r,o)).setAutoPadding(!1),a=s.update(t.private,"binary","binary"),a+=s.final("binary"),t.private=new Buffer(a,"binary"),t._decrypted=!0,t.privateOrig){var f=t.privateOrig.toString("utf8"),h=/^(.+(?:\r\n|\n))/.exec(f)[1];h+=new Buffer(a,"binary").toString("base64").match(/.{1,70}/g).join("\n"),h+=/((?:\r\n|\n).+)$/.exec(f)[1],t.privateOrig=h}else if(t.ppk){if(!p(t,n,t.private))throw new Error("PPK MAC mismatch");l(t)}}}},Sn}an.BUGGY_IMPLS=[["Cisco-1.25",Rn.BAD_DHGEX]];var Bn=u.Transform,Cn=u.Readable,In=u.Writable,On=process.binding("constants"),Un=r,Nn=Un.inherits,Ln=Un.isDate,Dn=n.EventEmitter.listenerCount,Pn=e,jn=Tn().readString,Hn=Tn().readInt,Mn=1,Fn=2,Gn=4,qn=8,zn=2147483648,$n={OK:0,EOF:1,NO_SUCH_FILE:2,PERMISSION_DENIED:3,FAILURE:4,BAD_MESSAGE:5,NO_CONNECTION:6,CONNECTION_LOST:7,OP_UNSUPPORTED:8};Object.keys($n).forEach((function(e){$n[$n[e]]=e})),ti.STATUS_CODE=$n;var Kn={INIT:1,OPEN:3,CLOSE:4,READ:5,WRITE:6,LSTAT:7,FSTAT:8,SETSTAT:9,FSETSTAT:10,OPENDIR:11,READDIR:12,REMOVE:13,MKDIR:14,RMDIR:15,REALPATH:16,STAT:17,RENAME:18,READLINK:19,SYMLINK:20,EXTENDED:200};Object.keys(Kn).forEach((function(e){Kn[Kn[e]]=e}));var Wn={VERSION:2,STATUS:101,HANDLE:102,DATA:103,NAME:104,ATTRS:105,EXTENDED:201};Object.keys(Wn).forEach((function(e){Wn[Wn[e]]=e}));var Xn={READ:1,WRITE:2,APPEND:4,CREAT:8,TRUNC:16,EXCL:32};ti.OPEN_MODE=Xn;var Vn=Math.pow(2,32)-1,Qn=new Buffer([0,0,0,5,Kn.INIT,0,0,0,3]),Yn=new Buffer([0,0,0,5,Wn.VERSION,0,0,0,3]),Zn=/^SSH-2.0-(?:OpenSSH|dropbear)/,Jn=260096;function ei(e){}function ti(e,t){"string"!=typeof e||t||(t=e,e=void 0),"object"==typeof e&&e||(e={}),Bn.call(this,{highWaterMark:"number"==typeof e.highWaterMark?e.highWaterMark:32768}),this.debug="function"==typeof e.debug?e.debug:ei,this.server=!!e.server,this._isOpenSSH=t&&Zn.test(t),this._needContinue=!1,this._state={status:"packet_header",writeReqid:-1,pktLeft:void 0,pktHdrBuf:new Buffer(9),pktBuf:void 0,pktType:void 0,version:void 0,extensions:{},maxDataLen:this._isOpenSSH?Jn:32768,requests:{}};var n=this;function i(){n.writable=!1,n._cleanup(!1)}this.on("end",(function(){n.readable=!1})).on("finish",i).on("prefinish",i),this.server||this.push(Qn)}function ni(e,t,n,i,r,o){var a,s,c,u=25,p=32768;"function"==typeof r?o=r:"object"==typeof r&&("number"==typeof r.concurrency&&r.concurrency>0&&!isNaN(r.concurrency)&&(u=r.concurrency),"number"==typeof r.chunkSize&&r.chunkSize>0&&!isNaN(r.chunkSize)&&(p=r.chunkSize),"function"==typeof r.step&&(a=r.step),r.preserve);var l,f,h=0,d=0,m=0,v=0,g=!1,b=new Buffer(p*u);function y(n){if(!g){g=!0;var i,r=0;l||f?(i=function(){0==--r&&o(n)},l&&(e===Pn||e.writable)&&++r,f&&(t===Pn||t.writable)&&++r,l&&(e===Pn||e.writable)&&e.close(l,i),f&&(t===Pn||t.writable)&&t.close(f,i)):o(n)}}e.open(n,"r",(function(r,g){if(r)return y(r);l=g,e.fstat(l,(function r(g,x){if(g)return e!==Pn?void e.stat(n,(function(e,t){if(e)return y(g);r(null,t)})):y(g);s=x.size,t.open(i,"w",(function(n,i){if(n)return y(n);if(f=i,s<=0)return y();function r(n,i,r,c,u){if(n)return y(n);function p(n){if(n)return y(n);v+=i,a&&a(v,i,s),0==--m&&(v===s?t.close(f,(function(t){if(f=void 0,t)return y(t);e.close(l,(function(e){if(l=void 0,e)return y(e);o()}))})):x())}e===Pn?t.writeData(f,r,u||0,i,c,p):t.write(f,r,u||0,i,c,p)}function g(e,t){return function(n,i,o){r(n,i,o,t,e)}}function x(){for(;d<s&&m<u;)c=d+p>s?s-d:p,e===Pn?e.read(l,b,h,c,d,g(h,d)):e.readData(l,b,h,c,d,r),h+=c,d+=c,++m;h=0}x()}))}))}))}function ii(e,t,n,i,r,o,a){var s="function"==typeof a?a:void 0;e.writeData(t,n,i,r,o,(function(a,c){if(a)return e.close(t,(function(){s&&s(a)}));c===r?e.close(t,s):ii(e,t,n,i+=c,r-=c,o+=c,s)}))}function ri(e,t,n,i){var r=e.readUInt32BE(t,!0),o=new fi;if(t+=4,r&Mn){var a=oi(e,t,n,i);if(!1===a)return!1;o.size=a,t+=8}if(r&Fn){var s,c;if(!1===(s=Hn(e,t,this,i)))return!1;if(o.uid=s,!1===(c=Hn(e,t+=4,this,i)))return!1;o.gid=c,t+=4}if(r&Gn){var u=Hn(e,t,this,i);if(!1===u)return!1;o.mode=u,o.permissions=u,t+=4}if(r&qn){var p,l;if(!1===(p=Hn(e,t,this,i)))return!1;if(o.atime=p,!1===(l=Hn(e,t+=4,this,i)))return!1;o.mtime=l,t+=4}if(r&zn){var f=Hn(e,t,this,i);if(!1===f)return!1;t+=4;for(var h,d=0;d<f;++d){if(!1===(h=Hn(e,t,this,i)))return!1;t+=4+h}}return e._pos=t,o}function oi(e,t,n,i){if(e.length-t<8)return n&&n._cleanup(i),!1;for(var r=0,o=t+8;t<o;++t)r*=256,r+=e[t];return e._pos=t,r}function ai(e){var t=0,n=0,i=[],r=0;if("number"==typeof e.size){t|=Mn,n+=8;var o=new Array(8),a=e.size;for(r=7;r>=0;--r)o[r]=255&a,a/=256;i.push(o)}if("number"==typeof e.uid&&"number"==typeof e.gid&&(t|=Fn,n+=8,i.push([e.uid>>24&255,e.uid>>16&255,e.uid>>8&255,255&e.uid]),i.push([e.gid>>24&255,e.gid>>16&255,e.gid>>8&255,255&e.gid])),"number"==typeof e.permissions||"string"==typeof e.permissions||"number"==typeof e.mode||"string"==typeof e.mode){var s=ci(e.mode||e.permissions);t|=Gn,n+=4,i.push([s>>24&255,s>>16&255,s>>8&255,255&s])}if(("number"==typeof e.atime||Ln(e.atime))&&("number"==typeof e.mtime||Ln(e.mtime))){var c=si(e.atime),u=si(e.mtime);t|=qn,n+=8,i.push([c>>24&255,c>>16&255,c>>8&255,255&c]),i.push([u>>24&255,u>>16&255,u>>8&255,255&u])}return{flags:t,nbytes:n,bytes:i}}function si(e){if("number"==typeof e&&!isNaN(e))return e;if(Ln(e))return parseInt(e.getTime()/1e3,10);throw new Error("Cannot parse time: "+e)}function ci(e){if("number"==typeof e&&!isNaN(e))return e;if("string"==typeof e)return ci(parseInt(e,8));throw new Error("Cannot parse mode: "+e)}Nn(ti,Bn),ti.prototype.__read=Bn.prototype._read,ti.prototype._read=function(e){return this._needContinue&&(this._needContinue=!1,this.emit("continue")),this.__read(e)},ti.prototype.__push=Bn.prototype.push,ti.prototype.push=function(e,t){if(!this.readable)return!1;null===e&&(this.readable=!1);var n=this.__push(e,t);return this._needContinue=!1===n,n},ti.prototype._cleanup=function(e){var t=this._state;t.pktBuf=void 0;var n=t.requests,i=Object.keys(n),r=i.length;if(r){if(this.readable)for(var o,a=new Error("SFTP session ended early"),s=0;s<r;++s)(o=n[i[s]].cb)&&o(a);t.requests={}}this.readable?this.push(null):this._readableState.endEmitted||this._readableState.flowing||this.resume(),!1!==e&&(this.debug("DEBUG[SFTP]: Parser: Malformed packet"),e&&e(new Error("Malformed packet")))},ti.prototype._transform=function(e,t,n){for(var i,r,o,a=this._state,s=this.server,c=a.status,u=a.pktType,p=a.pktBuf,l=a.pktLeft,f=a.version,h=a.pktHdrBuf,d=a.requests,m=this.debug,v=e.length,g=0;;){if("discard"===c){if(!(l<=(r=v-g))){l-=r;break}g+=l,l=0,c="packet_header",i=p=void 0}else{if(void 0!==p){if(l<=(r=v-g)){e.copy(p,p.length-l,g,g+l),g+=l,l=0,i=p,p=void 0;continue}e.copy(p,p.length-l,g),l-=r;break}if("packet_header"===c)i?(l=i.readUInt32BE(4,!0)-1,u=i[8],s?void 0===f&&u!==Kn.INIT?(m("DEBUG[SFTP]: Parser: Unexpected packet before init"),c="bad_pkt"):void 0!==f&&u===Kn.INIT?(m("DEBUG[SFTP]: Parser: Unexpected duplicate init"),c="bad_pkt"):l>34e3?(m("DEBUG[SFTP]: Parser: Packet length ("+l+") exceeds max length (34000)"),c="bad_pkt"):u===Kn.EXTENDED?c="bad_pkt":void 0===Kn[u]&&(m("DEBUG[SFTP]: Parser: Unsupported packet type: "+u),c="discard"):void 0===f&&u!==Wn.VERSION?(m("DEBUG[SFTP]: Parser: Unexpected packet before version"),c="bad_pkt"):void 0!==f&&u===Wn.VERSION?(m("DEBUG[SFTP]: Parser: Unexpected duplicate version"),c="bad_pkt"):void 0===Wn[u]&&(c="discard"),"bad_pkt"===c?(h.writeUInt32BE(l,0,!0),h[4]=u,l=4,p=h):(p=new Buffer(l),c="payload")):(l=5,p=h);else if("payload"===c){if(u===Wn.VERSION||u===Kn.INIT){if(!1===(f=a.version=Hn(i,0,this,n)))return;if(f<3)return this._cleanup(),n(new Error("Incompatible SFTP version: "+f));s&&this.push(Yn);var b,y,x=i.length;for(i._pos=4;i._pos<x;){if(!1===(b=jn(i,i._pos,"ascii",this,n)))return;if(!1===(y=jn(i,i._pos,"ascii",this,n)))return;a.extensions[b]?a.extensions[b].push(y):a.extensions[b]=[y]}this.emit("ready")}else{if(!1===(o=Hn(i,0,this,n)))return;var _,w,E,S;if(s){var A,R,k=Kn[u];if(m("DEBUG[SFTP]: Parser: Request: "+k),Dn(this,k)){if(u===Kn.OPEN){if(!1===(_=jn(i,4,"utf8",this,n)))return;var T=Hn(i,i._pos,this,n);if(!1===T)return;if(!1===(w=ri(i,i._pos+4,this,n)))return;this.emit(k,o,_,T,w)}else if(u===Kn.CLOSE||u===Kn.FSTAT||u===Kn.READDIR){if(!1===(E=jn(i,4,this,n)))return;this.emit(k,o,E)}else if(u===Kn.READ){if(!1===(E=jn(i,4,this,n)))return;if(!1===(A=oi(i,i._pos,this,n)))return;var B=Hn(i,i._pos,this,n);if(!1===B)return;this.emit(k,o,E,A,B)}else if(u===Kn.WRITE){if(!1===(E=jn(i,4,this,n)))return;if(!1===(A=oi(i,i._pos,this,n)))return;if(!1===(S=jn(i,i._pos,this,n)))return;this.emit(k,o,E,A,S)}else if(u===Kn.LSTAT||u===Kn.STAT||u===Kn.OPENDIR||u===Kn.REMOVE||u===Kn.RMDIR||u===Kn.REALPATH||u===Kn.READLINK){if(!1===(R=jn(i,4,"utf8",this,n)))return;this.emit(k,o,R)}else if(u===Kn.SETSTAT||u===Kn.MKDIR){if(!1===(R=jn(i,4,"utf8",this,n)))return;if(!1===(w=ri(i,i._pos,this,n)))return;this.emit(k,o,R,w)}else if(u===Kn.FSETSTAT){if(!1===(E=jn(i,4,this,n)))return;if(!1===(w=ri(i,i._pos,this,n)))return;this.emit(k,o,E,w)}else if(u===Kn.RENAME||u===Kn.SYMLINK){var C,I;if(!1===(C=jn(i,4,"utf8",this,n)))return;if(!1===(I=jn(i,i._pos,"utf8",this,n)))return;u===Kn.SYMLINK&&this._isOpenSSH?this.emit(k,o,I,C):this.emit(k,o,C,I)}}else this.status(o,$n.OP_UNSUPPORTED)}else{var O=d[o],U=O&&O.cb;if(m("DEBUG[SFTP]: Parser: Response: "+Wn[u]),O&&U)if(u===Wn.STATUS){var N=Hn(i,4,this,n);if(!1===N)return;var L=jn(i,8,"utf8",this,n);if(!1===L)return;var D=jn(i,i._pos,"ascii",this,n);if(!1===D)return;if(N===$n.OK)U();else{var P=new Error(L||$n[N]);P.code=N,P.lang=D,U(P)}}else if(u===Wn.HANDLE){if(!1===(E=jn(i,4,this,n)))return;U(void 0,E)}else if(u===Wn.DATA)if(O.buffer){var j=Hn(i,4,this,n);if(!1===j)return;var H=O.buffer.length;if(j>H&&i.writeUInt32BE(H,4,!0),!1===(S=jn(i,4,O.buffer,this,n)))return;U(void 0,S,j)}else{if(!1===(S=jn(i,4,this,n)))return;U(void 0,S)}else if(u===Wn.NAME){var M=Hn(i,4,this,n);if(!1===M)return;var F,G=[];i._pos=8;for(var q=0;q<M;++q){if(!1===(_=jn(i,i._pos,"utf8",this,n)))return;if(!1===(F=jn(i,i._pos,"utf8",this,n)))return;if(!1===(w=ri(i,i._pos,this,n)))return;G.push({filename:_,longname:F,attrs:w})}U(void 0,G)}else if(u===Wn.ATTRS){if(!1===(w=ri(i,4,this,n)))return;U(void 0,w)}else if(u===Wn.EXTENDED){if(O.extended)switch(O.extended){case"statvfs@openssh.com":case"fstatvfs@openssh.com":var z={f_bsize:void 0,f_frsize:void 0,f_blocks:void 0,f_bfree:void 0,f_bavail:void 0,f_files:void 0,f_ffree:void 0,f_favail:void 0,f_sid:void 0,f_flag:void 0,f_namemax:void 0};if(z.f_bsize=oi(i,4,this,n),!1===z.f_bsize)return;if(z.f_frsize=oi(i,12,this,n),!1===z.f_frsize)return;if(z.f_blocks=oi(i,20,this,n),!1===z.f_blocks)return;if(z.f_bfree=oi(i,28,this,n),!1===z.f_bfree)return;if(z.f_bavail=oi(i,36,this,n),!1===z.f_bavail)return;if(z.f_files=oi(i,44,this,n),!1===z.f_files)return;if(z.f_ffree=oi(i,52,this,n),!1===z.f_ffree)return;if(z.f_favail=oi(i,60,this,n),!1===z.f_favail)return;if(z.f_sid=oi(i,68,this,n),!1===z.f_sid)return;if(z.f_flag=oi(i,76,this,n),!1===z.f_flag)return;if(z.f_namemax=oi(i,84,this,n),!1===z.f_namemax)return;U(void 0,z)}U()}O&&delete d[o]}}c="packet_header",i=p=void 0}else if("bad_pkt"===c){if(s&&i[4]!==Kn.INIT){var $=i[4]===Kn.EXTENDED?$n.OP_UNSUPPORTED:$n.FAILURE;if(i[4]===Kn.INIT||i[4]===Wn.VERSION)return this._cleanup(n);if(!1===(o=Hn(i,5,this,n)))return;this.status(o,$)}l=i.readUInt32BE(0,!0)-5,c="discard"}}if(g>=v)break}a.status=c,a.pktType=u,a.pktBuf=p,a.pktLeft=l,a.version=f,n()},ti.prototype.createReadStream=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");return new di(this,e,t)},ti.prototype.createWriteStream=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");return new mi(this,e,t)},ti.prototype.open=function(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");var r=this._state;"function"==typeof n&&(i=n,n=void 0);var o=li(t);if(null===o)throw new Error("Unknown flags string: "+t);var a=0,s=0;"object"==typeof n&&(a=(n=ai(n)).flags,s=n.nbytes,n=n.bytes);var c=Buffer.byteLength(e),u=9,p=new Buffer(13+c+4+4+s);p.writeUInt32BE(p.length-4,0,!0),p[4]=Kn.OPEN;var l=r.writeReqid=(r.writeReqid+1)%Vn;if(p.writeUInt32BE(l,5,!0),p.writeUInt32BE(c,u,!0),p.write(e,u+=4,c,"utf8"),p.writeUInt32BE(o,u+=c,!0),p.writeUInt32BE(a,u+=4,!0),n&&a){u+=4;for(var f=0,h=n.length;f<h;++f)for(var d=0,m=n[f].length;d<m;++d)p[u++]=n[f][d]}return r.requests[l]={cb:i},this.debug("DEBUG[SFTP]: Outgoing: Writing OPEN"),this.push(p)},ti.prototype.close=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");if(!Buffer.isBuffer(e))throw new Error("handle is not a Buffer");var n=this._state,i=e.length,r=9,o=new Buffer(13+i);o.writeUInt32BE(o.length-4,0,!0),o[4]=Kn.CLOSE;var a=n.writeReqid=(n.writeReqid+1)%Vn;return o.writeUInt32BE(a,5,!0),o.writeUInt32BE(i,r,!0),e.copy(o,r+=4),n.requests[a]={cb:t},this.debug("DEBUG[SFTP]: Outgoing: Writing CLOSE"),this.push(o)},ti.prototype.readData=function(e,t,n,i,r,o){if(this.server)throw new Error("Client-only method called in server mode");if(!Buffer.isBuffer(e))throw new Error("handle is not a Buffer");if(!Buffer.isBuffer(t))throw new Error("buffer is not a Buffer");if(n>=t.length)throw new Error("offset is out of bounds");if(n+i>t.length)throw new Error("length extends beyond buffer");if(null===r)throw new Error("null position currently unsupported");var a=this._state,s=e.length,c=9,u=r,p=new Buffer(13+s+8+4);p.writeUInt32BE(p.length-4,0,!0),p[4]=Kn.READ;var l=a.writeReqid=(a.writeReqid+1)%Vn;p.writeUInt32BE(l,5,!0),p.writeUInt32BE(s,c,!0),e.copy(p,c+=4),c+=s;for(var f=7;f>=0;--f)p[c+f]=255&u,u/=256;return p.writeUInt32BE(i,c+=8,!0),a.requests[l]={cb:function(e,t,n){if(e&&e.code!==$n.EOF)return o(e);o(void 0,n||0,t,r)},buffer:t.slice(n,n+i)},this.debug("DEBUG[SFTP]: Outgoing: Writing READ"),this.push(p)},ti.prototype.writeData=function(e,t,n,i,r,o){if(this.server)throw new Error("Client-only method called in server mode");if(!Buffer.isBuffer(e))throw new Error("handle is not a Buffer");if(!Buffer.isBuffer(t))throw new Error("buffer is not a Buffer");if(n>t.length)throw new Error("offset is out of bounds");if(n+i>t.length)throw new Error("length extends beyond buffer");if(null===r)throw new Error("null position currently unsupported");var a=this,s=this._state;if(i){var c=i>s.maxDataLen?i-s.maxDataLen:0,u=r;c&&(i=s.maxDataLen);var p=e.length,l=9,f=new Buffer(13+p+8+4+i);f.writeUInt32BE(f.length-4,0,!0),f[4]=Kn.WRITE;var h=s.writeReqid=(s.writeReqid+1)%Vn;f.writeUInt32BE(h,5,!0),f.writeUInt32BE(p,l,!0),e.copy(f,l+=4),l+=p;for(var d=7;d>=0;--d)f[l+d]=255&r,r/=256;return f.writeUInt32BE(i,l+=8,!0),t.copy(f,l+=4,n,n+i),s.requests[h]={cb:function(r){r?o&&o(r):c?a.writeData(e,t,n+i,c,u+i,o):o&&o(void 0,i)}},this.debug("DEBUG[SFTP]: Outgoing: Writing WRITE"),this.push(f)}o&&process.nextTick((function(){o(void 0,0)}))},ti.prototype.fastGet=function(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");ni(this,Pn,e,t,n,i)},ti.prototype.fastPut=function(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");ni(Pn,this,e,t,n,i)},ti.prototype.readFile=function(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");var i="function"==typeof n?n:void 0,r=this;if("function"!=typeof t&&t)if("string"==typeof t)t={encoding:t,flag:"r"};else if(t){if("object"!=typeof t)throw new TypeError("Bad arguments")}else t={encoding:null,flag:"r"};else t={encoding:null,flag:"r"};var o,a,s,c=t.encoding;if(c&&!Buffer.isEncoding(c))throw new Error("Unknown encoding: "+c);var u,p=0,l=0,f=t.flag||"r";function h(){0===o?(a=new Buffer(8192),r.readData(u,a,0,8192,l,d)):r.readData(u,a,p,o-p,l,d)}function d(e,t){return e?r.close(u,(function(){return i&&i(e)})):0===t?m():(l+=t,p+=t,void(0!==o?p===o?m():h():(s.push(a.slice(0,t)),h())))}function m(){r.close(u,(function(e){return 0===o?a=Buffer.concat(s,p):p<o&&(a=a.slice(0,p)),c&&(a=a.toString(c)),i&&i(e,a)}))}this.open(e,f,438,(function(t,n){if(t)return i&&i(t);u=n,r.fstat(u,(function t(n,c){if(n)r.stat(e,(function(e,o){if(e)return r.close(u,(function(){i&&i(n)}));t(null,o)}));else{if(0===(o=c.size))return s=[],h();a=new Buffer(o),h()}}))}))},ti.prototype.writeFile=function(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");var r="function"==typeof i?i:void 0,o=this;if("function"!=typeof n&&n)if("string"==typeof n)n={encoding:n,mode:438,flag:"w"};else if(n){if("object"!=typeof n)throw new TypeError("Bad arguments")}else n={encoding:"utf8",mode:438,flag:"w"};else r=n,n={encoding:"utf8",mode:438,flag:"w"};if(n.encoding&&!Buffer.isEncoding(n.encoding))throw new Error("Unknown encoding: "+n.encoding);var a=n.flag||"w";this.open(e,a,n.mode,(function(i,s){if(i)r&&r(i);else{var c=Buffer.isBuffer(t)?t:new Buffer(""+t,n.encoding||"utf8"),u=/a/.test(a)?null:0;if(null===u)return void o.fstat(s,(function t(n,i){n?o.stat(e,(function(e,i){if(e)return o.close(s,(function(){r&&r(n)}));t(null,i)})):ii(o,s,c,0,c.length,i.size,r)}));ii(o,s,c,0,c.length,u,r)}}))},ti.prototype.appendFile=function(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");if("function"!=typeof n&&n)if("string"==typeof n)n={encoding:n,mode:438,flag:"a"};else if(n){if("object"!=typeof n)throw new TypeError("Bad arguments")}else n={encoding:"utf8",mode:438,flag:"a"};else n={encoding:"utf8",mode:438,flag:"a"};n.flag||(n=Un._extend({flag:"a"},n)),this.writeFile(e,t,n,i)},ti.prototype.exists=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");this.stat(e,(function(e){t&&t(!e)}))},ti.prototype.unlink=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");var n=this._state,i=Buffer.byteLength(e),r=9,o=new Buffer(13+i);o.writeUInt32BE(o.length-4,0,!0),o[4]=Kn.REMOVE;var a=n.writeReqid=(n.writeReqid+1)%Vn;return o.writeUInt32BE(a,5,!0),o.writeUInt32BE(i,r,!0),o.write(e,r+=4,i,"utf8"),n.requests[a]={cb:t},this.debug("DEBUG[SFTP]: Outgoing: Writing REMOVE"),this.push(o)},ti.prototype.rename=function(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");var i=this._state,r=Buffer.byteLength(e),o=Buffer.byteLength(t),a=9,s=new Buffer(13+r+4+o);s.writeUInt32BE(s.length-4,0,!0),s[4]=Kn.RENAME;var c=i.writeReqid=(i.writeReqid+1)%Vn;return s.writeUInt32BE(c,5,!0),s.writeUInt32BE(r,a,!0),s.write(e,a+=4,r,"utf8"),s.writeUInt32BE(o,a+=r,!0),s.write(t,a+=4,o,"utf8"),i.requests[c]={cb:n},this.debug("DEBUG[SFTP]: Outgoing: Writing RENAME"),this.push(s)},ti.prototype.mkdir=function(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");var i=0,r=0,o=this._state;"function"==typeof t&&(n=t,t=void 0),"object"==typeof t&&(i=(t=ai(t)).flags,r=t.nbytes,t=t.bytes);var a=Buffer.byteLength(e),s=9,c=new Buffer(13+a+4+r);c.writeUInt32BE(c.length-4,0,!0),c[4]=Kn.MKDIR;var u=o.writeReqid=(o.writeReqid+1)%Vn;if(c.writeUInt32BE(u,5,!0),c.writeUInt32BE(a,s,!0),c.write(e,s+=4,a,"utf8"),c.writeUInt32BE(i,s+=a),i){s+=4;for(var p=0,l=t.length;p<l;++p)for(var f=0,h=t[p].length;f<h;++f)c[s++]=t[p][f]}return o.requests[u]={cb:n},this.debug("DEBUG[SFTP]: Outgoing: Writing MKDIR"),this.push(c)},ti.prototype.rmdir=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");var n=this._state,i=Buffer.byteLength(e),r=9,o=new Buffer(13+i);o.writeUInt32BE(o.length-4,0,!0),o[4]=Kn.RMDIR;var a=n.writeReqid=(n.writeReqid+1)%Vn;return o.writeUInt32BE(a,5,!0),o.writeUInt32BE(i,r,!0),o.write(e,r+=4,i,"utf8"),n.requests[a]={cb:t},this.debug("DEBUG[SFTP]: Outgoing: Writing RMDIR"),this.push(o)},ti.prototype.readdir=function(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");var i,r=this._state;if("function"==typeof t&&(n=t,t={}),"object"!=typeof t&&(t={}),i=!t||!t.full,!Buffer.isBuffer(e)&&"string"!=typeof e)throw new Error("missing directory handle or path");if("string"==typeof e){var o=this,a=[],s=0;return this.opendir(e,(function e(i,r){if(i)return n(i);o.readdir(r,t,(function(t,i){var c=t&&t.code===$n.EOF;if(t&&!c)return o.close(r,(function(){n(t)}));if(c)return o.close(r,(function(e){if(e)return n(e);n(void 0,a)}));for(var u=0,p=i.length;u<p;++u,++s)a[s]=i[u];e(void 0,r)}))}))}var c=e.length,u=9,p=new Buffer(13+c);p.writeUInt32BE(p.length-4,0,!0),p[4]=Kn.READDIR;var l=r.writeReqid=(r.writeReqid+1)%Vn;return p.writeUInt32BE(l,5,!0),p.writeUInt32BE(c,u,!0),e.copy(p,u+=4),r.requests[l]={cb:i?function(e,t){if(e)return n(e);for(var i=t.length-1;i>=0;--i)"."!==t[i].filename&&".."!==t[i].filename||t.splice(i,1);n(void 0,t)}:n},this.debug("DEBUG[SFTP]: Outgoing: Writing READDIR"),this.push(p)},ti.prototype.fstat=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");if(!Buffer.isBuffer(e))throw new Error("handle is not a Buffer");var n=this._state,i=e.length,r=9,o=new Buffer(13+i);o.writeUInt32BE(o.length-4,0,!0),o[4]=Kn.FSTAT;var a=n.writeReqid=(n.writeReqid+1)%Vn;return o.writeUInt32BE(a,5,!0),o.writeUInt32BE(i,r,!0),e.copy(o,r+=4),n.requests[a]={cb:t},this.debug("DEBUG[SFTP]: Outgoing: Writing FSTAT"),this.push(o)},ti.prototype.stat=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");var n=this._state,i=Buffer.byteLength(e),r=9,o=new Buffer(13+i);o.writeUInt32BE(o.length-4,0,!0),o[4]=Kn.STAT;var a=n.writeReqid=(n.writeReqid+1)%Vn;return o.writeUInt32BE(a,5,!0),o.writeUInt32BE(i,r,!0),o.write(e,r+=4,i,"utf8"),n.requests[a]={cb:t},this.debug("DEBUG[SFTP]: Outgoing: Writing STAT"),this.push(o)},ti.prototype.lstat=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");var n=this._state,i=Buffer.byteLength(e),r=9,o=new Buffer(13+i);o.writeUInt32BE(o.length-4,0,!0),o[4]=Kn.LSTAT;var a=n.writeReqid=(n.writeReqid+1)%Vn;return o.writeUInt32BE(a,5,!0),o.writeUInt32BE(i,r,!0),o.write(e,r+=4,i,"utf8"),n.requests[a]={cb:t},this.debug("DEBUG[SFTP]: Outgoing: Writing LSTAT"),this.push(o)},ti.prototype.opendir=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");var n=this._state,i=Buffer.byteLength(e),r=9,o=new Buffer(13+i);o.writeUInt32BE(o.length-4,0,!0),o[4]=Kn.OPENDIR;var a=n.writeReqid=(n.writeReqid+1)%Vn;return o.writeUInt32BE(a,5,!0),o.writeUInt32BE(i,r,!0),o.write(e,r+=4,i,"utf8"),n.requests[a]={cb:t},this.debug("DEBUG[SFTP]: Outgoing: Writing OPENDIR"),this.push(o)},ti.prototype.setstat=function(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");var i=0,r=0,o=this._state;"object"==typeof t?(i=(t=ai(t)).flags,r=t.nbytes,t=t.bytes):"function"==typeof t&&(n=t);var a=Buffer.byteLength(e),s=9,c=new Buffer(13+a+4+r);c.writeUInt32BE(c.length-4,0,!0),c[4]=Kn.SETSTAT;var u=o.writeReqid=(o.writeReqid+1)%Vn;if(c.writeUInt32BE(u,5,!0),c.writeUInt32BE(a,s,!0),c.write(e,s+=4,a,"utf8"),c.writeUInt32BE(i,s+=a),i){s+=4;for(var p=0,l=t.length;p<l;++p)for(var f=0,h=t[p].length;f<h;++f)c[s++]=t[p][f]}return o.requests[u]={cb:n},this.debug("DEBUG[SFTP]: Outgoing: Writing SETSTAT"),this.push(c)},ti.prototype.fsetstat=function(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");if(!Buffer.isBuffer(e))throw new Error("handle is not a Buffer");var i=0,r=0,o=this._state;"object"==typeof t?(i=(t=ai(t)).flags,r=t.nbytes,t=t.bytes):"function"==typeof t&&(n=t);var a=e.length,s=9,c=new Buffer(13+a+4+r);c.writeUInt32BE(c.length-4,0,!0),c[4]=Kn.FSETSTAT;var u=o.writeReqid=(o.writeReqid+1)%Vn;if(c.writeUInt32BE(u,5,!0),c.writeUInt32BE(a,s,!0),e.copy(c,s+=4),c.writeUInt32BE(i,s+=a),i){s+=4;for(var p=0,l=t.length;p<l;++p)for(var f=0,h=t[p].length;f<h;++f)c[s++]=t[p][f]}return o.requests[u]={cb:n},this.debug("DEBUG[SFTP]: Outgoing: Writing FSETSTAT"),this.push(c)},ti.prototype.futimes=function(e,t,n,i){return this.fsetstat(e,{atime:si(t),mtime:si(n)},i)},ti.prototype.utimes=function(e,t,n,i){return this.setstat(e,{atime:si(t),mtime:si(n)},i)},ti.prototype.fchown=function(e,t,n,i){return this.fsetstat(e,{uid:t,gid:n},i)},ti.prototype.chown=function(e,t,n,i){return this.setstat(e,{uid:t,gid:n},i)},ti.prototype.fchmod=function(e,t,n){return this.fsetstat(e,{mode:t},n)},ti.prototype.chmod=function(e,t,n){return this.setstat(e,{mode:t},n)},ti.prototype.readlink=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");var n=this._state,i=Buffer.byteLength(e),r=9,o=new Buffer(13+i);o.writeUInt32BE(o.length-4,0,!0),o[4]=Kn.READLINK;var a=n.writeReqid=(n.writeReqid+1)%Vn;return o.writeUInt32BE(a,5,!0),o.writeUInt32BE(i,r,!0),o.write(e,r+=4,i,"utf8"),n.requests[a]={cb:function(e,n){return e?t(e):n&&n.length?void t(void 0,n[0].filename):t(new Error("Response missing link info"))}},this.debug("DEBUG[SFTP]: Outgoing: Writing READLINK"),this.push(o)},ti.prototype.symlink=function(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");var i=this._state,r=Buffer.byteLength(t),o=Buffer.byteLength(e),a=9,s=new Buffer(13+r+4+o);s.writeUInt32BE(s.length-4,0,!0),s[4]=Kn.SYMLINK;var c=i.writeReqid=(i.writeReqid+1)%Vn;return s.writeUInt32BE(c,5,!0),this._isOpenSSH?(s.writeUInt32BE(o,a,!0),s.write(e,a+=4,o,"utf8"),s.writeUInt32BE(r,a+=o,!0),s.write(t,a+=4,r,"utf8")):(s.writeUInt32BE(r,a,!0),s.write(t,a+=4,r,"utf8"),s.writeUInt32BE(o,a+=r,!0),s.write(e,a+=4,o,"utf8")),i.requests[c]={cb:n},this.debug("DEBUG[SFTP]: Outgoing: Writing SYMLINK"),this.push(s)},ti.prototype.realpath=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");var n=this._state,i=Buffer.byteLength(e),r=9,o=new Buffer(13+i);o.writeUInt32BE(o.length-4,0,!0),o[4]=Kn.REALPATH;var a=n.writeReqid=(n.writeReqid+1)%Vn;return o.writeUInt32BE(a,5,!0),o.writeUInt32BE(i,r,!0),o.write(e,r+=4,i,"utf8"),n.requests[a]={cb:function(e,n){return e?t(e):n&&n.length?void t(void 0,n[0].filename):t(new Error("Response missing path info"))}},this.debug("DEBUG[SFTP]: Outgoing: Writing REALPATH"),this.push(o)},ti.prototype.ext_openssh_rename=function(e,t,n){var i=this._state;if(this.server)throw new Error("Client-only method called in server mode");if(!i.extensions["posix-rename@openssh.com"]||-1===i.extensions["posix-rename@openssh.com"].indexOf("1"))throw new Error("Server does not support this extended request");var r=Buffer.byteLength(e),o=Buffer.byteLength(t),a=9,s=new Buffer(41+r+4+o);s.writeUInt32BE(s.length-4,0,!0),s[4]=Kn.EXTENDED;var c=i.writeReqid=(i.writeReqid+1)%Vn;return s.writeUInt32BE(c,5,!0),s.writeUInt32BE(24,a,!0),s.write("posix-rename@openssh.com",a+=4,24,"ascii"),s.writeUInt32BE(r,a+=24,!0),s.write(e,a+=4,r,"utf8"),s.writeUInt32BE(o,a+=r,!0),s.write(t,a+=4,o,"utf8"),i.requests[c]={cb:n},this.debug("DEBUG[SFTP]: Outgoing: Writing posix-rename@openssh.com"),this.push(s)},ti.prototype.ext_openssh_statvfs=function(e,t){var n=this._state;if(this.server)throw new Error("Client-only method called in server mode");if(!n.extensions["statvfs@openssh.com"]||-1===n.extensions["statvfs@openssh.com"].indexOf("2"))throw new Error("Server does not support this extended request");var i=Buffer.byteLength(e),r=9,o=new Buffer(36+i);o.writeUInt32BE(o.length-4,0,!0),o[4]=Kn.EXTENDED;var a=n.writeReqid=(n.writeReqid+1)%Vn;return o.writeUInt32BE(a,5,!0),o.writeUInt32BE(19,r,!0),o.write("statvfs@openssh.com",r+=4,19,"ascii"),o.writeUInt32BE(i,r+=19,!0),o.write(e,r+=4,i,"utf8"),n.requests[a]={extended:"statvfs@openssh.com",cb:t},this.debug("DEBUG[SFTP]: Outgoing: Writing statvfs@openssh.com"),this.push(o)},ti.prototype.ext_openssh_fstatvfs=function(e,t){var n=this._state;if(this.server)throw new Error("Client-only method called in server mode");if(!n.extensions["fstatvfs@openssh.com"]||-1===n.extensions["fstatvfs@openssh.com"].indexOf("2"))throw new Error("Server does not support this extended request");if(!Buffer.isBuffer(e))throw new Error("handle is not a Buffer");var i=e.length,r=9,o=new Buffer(37+i);o.writeUInt32BE(o.length-4,0,!0),o[4]=Kn.EXTENDED;var a=n.writeReqid=(n.writeReqid+1)%Vn;return o.writeUInt32BE(a,5,!0),o.writeUInt32BE(20,r,!0),o.write("fstatvfs@openssh.com",r+=4,20,"ascii"),o.writeUInt32BE(i,r+=20,!0),o.write(e,r+=4,i,"utf8"),n.requests[a]={extended:"fstatvfs@openssh.com",cb:t},this.debug("DEBUG[SFTP]: Outgoing: Writing fstatvfs@openssh.com"),this.push(o)},ti.prototype.ext_openssh_hardlink=function(e,t,n){var i=this._state;if(this.server)throw new Error("Client-only method called in server mode");if(!i.extensions["hardlink@openssh.com"]||-1===i.extensions["hardlink@openssh.com"].indexOf("1"))throw new Error("Server does not support this extended request");var r=Buffer.byteLength(e),o=Buffer.byteLength(t),a=9,s=new Buffer(37+r+4+o);s.writeUInt32BE(s.length-4,0,!0),s[4]=Kn.EXTENDED;var c=i.writeReqid=(i.writeReqid+1)%Vn;return s.writeUInt32BE(c,5,!0),s.writeUInt32BE(20,a,!0),s.write("hardlink@openssh.com",a+=4,20,"ascii"),s.writeUInt32BE(r,a+=20,!0),s.write(e,a+=4,r,"utf8"),s.writeUInt32BE(o,a+=r,!0),s.write(t,a+=4,o,"utf8"),i.requests[c]={cb:n},this.debug("DEBUG[SFTP]: Outgoing: Writing hardlink@openssh.com"),this.push(s)},ti.prototype.ext_openssh_fsync=function(e,t){var n=this._state;if(this.server)throw new Error("Client-only method called in server mode");if(!n.extensions["fsync@openssh.com"]||-1===n.extensions["fsync@openssh.com"].indexOf("1"))throw new Error("Server does not support this extended request");if(!Buffer.isBuffer(e))throw new Error("handle is not a Buffer");var i=e.length,r=9,o=new Buffer(34+i);o.writeUInt32BE(o.length-4,0,!0),o[4]=Kn.EXTENDED;var a=n.writeReqid=(n.writeReqid+1)%Vn;return o.writeUInt32BE(a,5,!0),o.writeUInt32BE(17,r,!0),o.write("fsync@openssh.com",r+=4,17,"ascii"),o.writeUInt32BE(i,r+=17,!0),o.write(e,r+=4,i,"utf8"),n.requests[a]={cb:t},this.debug("DEBUG[SFTP]: Outgoing: Writing fsync@openssh.com"),this.push(o)},ti.prototype.status=function(e,t,n,i){if(!this.server)throw new Error("Server-only method called in client mode");if(!$n[t]||"number"!=typeof t)throw new Error("Bad status code: "+t);n||(n=""),i||(i="");var r=Buffer.byteLength(n),o=Buffer.byteLength(i),a=new Buffer(17+r+4+o);return a.writeUInt32BE(a.length-4,0,!0),a[4]=Wn.STATUS,a.writeUInt32BE(e,5,!0),a.writeUInt32BE(t,9,!0),a.writeUInt32BE(r,13,!0),r&&a.write(n,17,r,"utf8"),a.writeUInt32BE(o,17+r,!0),o&&a.write(i,17+r+4,o,"ascii"),this.debug("DEBUG[SFTP]: Outgoing: Writing STATUS"),this.push(a)},ti.prototype.handle=function(e,t){if(!this.server)throw new Error("Server-only method called in client mode");if(!Buffer.isBuffer(t))throw new Error("handle is not a Buffer");var n=t.length;if(n>256)throw new Error("handle too large (> 256 bytes)");var i=new Buffer(13+n);return i.writeUInt32BE(i.length-4,0,!0),i[4]=Wn.HANDLE,i.writeUInt32BE(e,5,!0),i.writeUInt32BE(n,9,!0),n&&t.copy(i,13),this.debug("DEBUG[SFTP]: Outgoing: Writing HANDLE"),this.push(i)},ti.prototype.data=function(e,t,n){if(!this.server)throw new Error("Server-only method called in client mode");var i=Buffer.isBuffer(t);if(!i&&"string"!=typeof t)throw new Error("data is not a Buffer or string");i||n||(n="utf8");var r=i?t.length:Buffer.byteLength(t,n),o=new Buffer(13+r);return o.writeUInt32BE(o.length-4,0,!0),o[4]=Wn.DATA,o.writeUInt32BE(e,5,!0),o.writeUInt32BE(r,9,!0),r&&(i?t.copy(o,13):o.write(t,13,r,n)),this.debug("DEBUG[SFTP]: Outgoing: Writing DATA"),this.push(o)},ti.prototype.name=function(e,t){if(!this.server)throw new Error("Server-only method called in client mode");if(Array.isArray(t)||"object"!=typeof t){if(!Array.isArray(t))throw new Error("names is not an object or array")}else t=[t];var n,i,r,o,a,s,c,u,p,l,f,h,d=t.length,m=0,v=[];for(l=0;l<d;++l)r=(i=t[l])&&i.filename&&"string"==typeof i.filename?i.filename:"",m+=4+Buffer.byteLength(r),o=i&&i.longname&&"string"==typeof i.longname?i.longname:"",m+=4+Buffer.byteLength(o),"object"==typeof i.attrs?(m+=4+(n=ai(i.attrs)).nbytes,v.push(n)):v.push(null);for((u=new Buffer(13+m)).writeUInt32BE(u.length-4,0,!0),u[4]=Wn.NAME,u.writeUInt32BE(e,5,!0),u.writeUInt32BE(d,9,!0),p=13,l=0;l<d;++l)if(r=(i=t[l])&&i.filename&&"string"==typeof i.filename?i.filename:"",s=Buffer.byteLength(r),u.writeUInt32BE(s,p,!0),p+=4,s&&(u.write(r,p,s,"utf8"),p+=s),o=i&&i.longname&&"string"==typeof i.longname?i.longname:"",s=Buffer.byteLength(o),u.writeUInt32BE(s,p,!0),p+=4,s&&(u.write(o,p,s,"utf8"),p+=s),a=v[l]){if(u.writeUInt32BE(a.flags,p,!0),p+=4,a.flags&&a.bytes){var g=a.bytes;for(f=0,s=g.length;f<s;++f)for(h=0,c=g[f].length;h<c;++h)u[p++]=g[f][h]}}else u.writeUInt32BE(0,p,!0),p+=4;return this.debug("DEBUG[SFTP]: Outgoing: Writing NAME"),this.push(u)},ti.prototype.attrs=function(e,t){if(!this.server)throw new Error("Server-only method called in client mode");if("object"!=typeof t)throw new Error("attrs is not an object");var n=ai(t),i=new Buffer(13+n.nbytes),r=13;if(i.writeUInt32BE(i.length-4,0,!0),i[4]=Wn.ATTRS,i.writeUInt32BE(e,5,!0),i.writeUInt32BE(n.flags,9,!0),n.flags&&n.bytes)for(var o=n.bytes,a=0,s=o.length;a<s;++a)for(var c=0,u=o[a].length;c<u;++c)i[r++]=o[a][c];return this.debug("DEBUG[SFTP]: Outgoing: Writing ATTRS"),this.push(i)};var ui={r:Xn.READ,"r+":Xn.READ|Xn.WRITE,w:Xn.TRUNC|Xn.CREAT|Xn.WRITE,wx:Xn.TRUNC|Xn.CREAT|Xn.WRITE|Xn.EXCL,xw:Xn.TRUNC|Xn.CREAT|Xn.WRITE|Xn.EXCL,"w+":Xn.TRUNC|Xn.CREAT|Xn.READ|Xn.WRITE,"wx+":Xn.TRUNC|Xn.CREAT|Xn.READ|Xn.WRITE|Xn.EXCL,"xw+":Xn.TRUNC|Xn.CREAT|Xn.READ|Xn.WRITE|Xn.EXCL,a:Xn.APPEND|Xn.CREAT|Xn.WRITE,ax:Xn.APPEND|Xn.CREAT|Xn.WRITE|Xn.EXCL,xa:Xn.APPEND|Xn.CREAT|Xn.WRITE|Xn.EXCL,"a+":Xn.APPEND|Xn.CREAT|Xn.READ|Xn.WRITE,"ax+":Xn.APPEND|Xn.CREAT|Xn.READ|Xn.WRITE|Xn.EXCL,"xa+":Xn.APPEND|Xn.CREAT|Xn.READ|Xn.WRITE|Xn.EXCL},pi=Object.keys(ui);function li(e){var t=ui[e];return void 0!==t?t:null}function fi(e){this.mode=e&&e.mode,this.permissions=this.mode,this.uid=e&&e.uid,this.gid=e&&e.gid,this.size=e&&e.size,this.atime=e&&e.atime,this.mtime=e&&e.mtime}ti.stringToFlags=li,ti.flagsToString=function(e){for(var t=0;t<pi.length;++t){var n=pi[t];if(ui[n]===e)return n}return null},fi.prototype._checkModeProperty=function(e){return(this.mode&On.S_IFMT)===e},fi.prototype.isDirectory=function(){return this._checkModeProperty(On.S_IFDIR)},fi.prototype.isFile=function(){return this._checkModeProperty(On.S_IFREG)},fi.prototype.isBlockDevice=function(){return this._checkModeProperty(On.S_IFBLK)},fi.prototype.isCharacterDevice=function(){return this._checkModeProperty(On.S_IFCHR)},fi.prototype.isSymbolicLink=function(){return this._checkModeProperty(On.S_IFLNK)},fi.prototype.isFIFO=function(){return this._checkModeProperty(On.S_IFIFO)},fi.prototype.isSocket=function(){return this._checkModeProperty(On.S_IFSOCK)},ti.Stats=fi;var hi;function di(e,t,n){if(!(this instanceof di))return new di(e,t,n);var i=this;if(void 0===n)n={};else if("string"==typeof n)n={encoding:n};else{if(null===n||"object"!=typeof n)throw new TypeError('"options" argument must be a string or an object');n=Object.create(n)}if(void 0===n.highWaterMark&&(n.highWaterMark=65536),Cn.call(this,n),this.path=t,this.handle=void 0===n.handle?null:n.handle,this.flags=void 0===n.flags?"r":n.flags,this.mode=void 0===n.mode?438:n.mode,this.start=void 0===n.start?void 0:n.start,this.end=void 0===n.end?void 0:n.end,this.autoClose=void 0===n.autoClose||n.autoClose,this.pos=0,this.sftp=e,void 0!==this.start){if("number"!=typeof this.start)throw new TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw new TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.on("end",(function(){i.autoClose&&i.destroy()})),Buffer.isBuffer(this.handle)||this.open()}function mi(e,t,n){if(!(this instanceof mi))return new mi(e,t,n);if(void 0===n)n={};else if("string"==typeof n)n={encoding:n};else{if(null===n||"object"!=typeof n)throw new TypeError('"options" argument must be a string or an object');n=Object.create(n)}if(In.call(this,n),this.path=t,this.handle=void 0===n.handle?null:n.handle,this.flags=void 0===n.flags?"w":n.flags,this.mode=void 0===n.mode?438:n.mode,this.start=void 0===n.start?void 0:n.start,this.autoClose=void 0===n.autoClose||n.autoClose,this.pos=0,this.bytesWritten=0,this.sftp=e,void 0!==this.start){if("number"!=typeof this.start)throw new TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}n.encoding&&this.setDefaultEncoding(n.encoding),Buffer.isBuffer(this.handle)||this.open(),this.once("finish",(function(){this.autoClose&&this.close()}))}Nn(di,Cn),di.prototype.open=function(){var e=this;this.sftp.open(this.path,this.flags,this.mode,(function(t,n){if(t)return e.emit("error",t),this.destroyed=this.closed=!0,void e.emit("close");e.handle=n,e.emit("open",n),e.read()}))},di.prototype._read=function(e){if(!Buffer.isBuffer(this.handle))return this.once("open",(function(){this._read(e)}));if(!this.destroyed){var t;(!hi||hi.length-hi.used<128)&&(hi=null,t=this._readableState.highWaterMark,(hi=new Buffer(t)).used=0);var n=hi,i=Math.min(hi.length-hi.used,e),r=hi.used;if(void 0!==this.end&&(i=Math.min(this.end-this.pos+1,i)),i<=0)return this.push(null);var o=this;this.sftp.readData(this.handle,hi,hi.used,i,this.pos,(function(e,t){if(e)o.autoClose&&o.destroy(),o.emit("error",e);else{var i=null;t>0&&(i=n.slice(r,r+t)),o.push(i)}})),this.pos+=i,hi.used+=i}},di.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,Buffer.isBuffer(this.handle)&&this.close())},di.prototype.close=function(e){var t=this;if(e&&this.once("close",e),this.closed||!Buffer.isBuffer(this.handle))return Buffer.isBuffer(this.handle)?process.nextTick(this.emit.bind(this,"close")):void this.once("open",n);function n(e){t.sftp.close(e||t.handle,(function(e){e?t.emit("error",e):t.emit("close")})),t.handle=null}this.closed=!0,n()},Nn(mi,In),mi.prototype.open=function(){var e=this;this.sftp.open(this.path,this.flags,this.mode,(function(t,n){if(t)return e.emit("error",t),void(this.autoClose&&(this.destroyed=this.closed=!0,e.emit("close")));e.handle=n,"a"!==e.flags[0]?e.emit("open",n):e.sftp.fstat(n,(function t(i,r){i?e.sftp.stat(e.path,(function(n,r){if(n)return e.destroy(),void e.emit("error",i);t(null,r)})):(e.pos=r.size,e.emit("open",n))}))}))},mi.prototype._write=function(e,t,n){if(!Buffer.isBuffer(e))return this.emit("error",new Error("Invalid data"));if(!Buffer.isBuffer(this.handle))return this.once("open",(function(){this._write(e,t,n)}));var i=this;this.sftp.writeData(this.handle,e,0,e.length,this.pos,(function(e,t){if(e)return i.autoClose&&i.destroy(),n(e);i.bytesWritten+=t,n()})),this.pos+=e.length},mi.prototype._writev=function(e,t){if(!Buffer.isBuffer(this.handle))return this.once("open",(function(){this._writev(e,t)}));for(var n=this.sftp,i=this.handle,r=e.length,o=this,a=0;a<e.length;++a){var s=e[a].chunk;n.writeData(i,s,0,s.length,this.pos,c),this.pos+=s.length}function c(e,n){if(e)return o.destroy(),t(e);o.bytesWritten+=n,0==--r&&t()}},mi.prototype.destroy=di.prototype.destroy,mi.prototype.close=di.prototype.close,mi.prototype.destroySoon=mi.prototype.end;var vi=ti,gi=n.EventEmitter;function bi(e,t,n,i,r){for(var o=0;o<r;++o,++t,++i)if(e[t]!==n[i])return!1;return!0}function yi(e){"string"==typeof e&&(e=new Buffer(e));var t,n,i=e.length;for(this.maxMatches=1/0,this.matches=0,this._occ=new Array(256),this._lookbehind_size=0,this._needle=e,this._bufpos=0,this._lookbehind=new Buffer(i),n=0;n<256;++n)this._occ[n]=i;if(i>=1)for(t=0;t<i-1;++t)this._occ[e[t]]=i-1-t}(0,r.inherits)(yi,gi),yi.prototype.reset=function(){this._lookbehind_size=0,this.matches=0,this._bufpos=0},yi.prototype.push=function(e,t){var n,i;for(Buffer.isBuffer(e)||(e=new Buffer(e,"binary")),i=e.length,this._bufpos=t||0;n!==i&&this.matches<this.maxMatches;)n=this._sbmh_feed(e);return n},yi.prototype._sbmh_feed=function(e){var t=e.length,n=this._needle,i=n.length,r=-this._lookbehind_size,o=n[i-1],a=this._occ,s=this._lookbehind;if(r<0){for(;r<0&&r<=t-i;){if((u=this._sbmh_lookup_char(e,r+i-1))===o&&this._sbmh_memcmp(e,r,i-1))return this._lookbehind_size=0,++this.matches,r>-this._lookbehind_size?this.emit("info",!0,s,0,this._lookbehind_size+r):this.emit("info",!0),this._bufpos=r+i,r+i;r+=a[u]}if(r<0)for(;r<0&&!this._sbmh_memcmp(e,r,t-r);)r++;if(!(r>=0)){var c=this._lookbehind_size+r;return c>0&&this.emit("info",!1,s,0,c),s.copy(s,0,c,this._lookbehind_size-c),this._lookbehind_size-=c,e.copy(s,this._lookbehind_size),this._lookbehind_size+=t,this._bufpos=t,t}this.emit("info",!1,s,0,this._lookbehind_size),this._lookbehind_size=0}for(r>=0&&(r+=this._bufpos);r<=t-i;){var u;if((u=e[r+i-1])===o&&e[r]===n[0]&&bi(n,0,e,r,i-1))return++this.matches,r>0?this.emit("info",!0,e,this._bufpos,r):this.emit("info",!0),this._bufpos=r+i,r+i;r+=a[u]}if(r<t){for(;r<t&&(e[r]!==n[0]||!bi(e,r,n,0,t-r));)++r;r<t&&(e.copy(s,0,r,r+(t-r)),this._lookbehind_size=t-r)}return r>0&&this.emit("info",!1,e,this._bufpos,r<t?r:t),this._bufpos=t,t},yi.prototype._sbmh_lookup_char=function(e,t){return t<0?this._lookbehind[this._lookbehind_size+t]:e[t]},yi.prototype._sbmh_memcmp=function(e,t,n){for(var i=0;i<n;){if(this._sbmh_lookup_char(e,t+i)!==this._needle[i])return!1;++i}return!0};var xi=yi,_i="0.0.23",wi=a,Ei=f,Si=u.Transform,Ai=r.inherits,Ri=r.inspect,ki=xi,Ti=It.Ber,Bi=an,Ci=Tn(),Ii=Ci.isStreamCipher,Oi=Ci.isGCM,Ui=Ci.iv_inc,Ni=Ci.parseKey,Li=Ci.decryptKey,Di=Ci.genPublicKey,Pi=Ci.readString,ji=Ci.readInt,Hi=Bi.MESSAGE,Mi=Bi.ALGORITHMS,Fi=Bi.DISCONNECT_REASON,Gi=Bi.CHANNEL_OPEN_FAILURE,qi=Bi.SSH_TO_OPENSSL,zi=Bi.TERMINAL_MODE,$i=Bi.SIGNALS,Ki=Bi.BUGS,Wi=Bi.BUGGY_IMPLS,Xi=Wi.length,Vi=_i,Qi=0,Yi=Qi++,Zi=Qi++,Ji=Qi++,er=Qi++,tr=Qi++,nr=Qi++,ir=Qi++,rr=Qi++,or=Qi++,ar=Qi++,sr=Qi++,cr=4294967295,ur=/^group|gex-sha1$/i,pr=/\x00/g,lr=new Buffer("SSH-"),fr=new Buffer(0),hr=new Buffer([Hi.GLOBAL_REQUEST,0,0,0,21,107,101,101,112,97,108,105,118,101,64,111,112,101,110,115,115,104,46,99,111,109,1]),dr=new Buffer([Hi.NEWKEYS]),mr=new Buffer([Hi.USERAUTH_SUCCESS]),vr=new Buffer([Hi.REQUEST_SUCCESS]),gr=new Buffer([Hi.REQUEST_FAILURE]),br=new Buffer([zi.TTY_OP_END]),yr=new Buffer([Hi.KEXDH_GEX_REQUEST,0,0,4,0,0,0,10,0,0,0,20,0]);function xr(e){}function _r(e){var t,n;"object"!=typeof e&&(e={}),Si.call(this,{highWaterMark:"number"==typeof e.highWaterMark?e.highWaterMark:32768}),this._needContinue=!1,this.bytesSent=this.bytesReceived=0,this.debug="function"==typeof e.debug?e.debug:xr,this.server=!0===e.server,this.doCompress=!1,this.maxPacketSize="number"==typeof e.maxPacketSize?e.maxPacketSize:35e3,this.remoteBugs=0,this.server&&(this.remoteBugs=Ki.BAD_DHGEX);var i=this;if(this.server&&"string"!=typeof e.privateKey&&!Buffer.isBuffer(e.privateKey))throw new Error("Invalid/missing privateKey");if(this.server){if((t=Ni(e.privateKey))instanceof Error)throw new Error("Cannot parse privateKey: "+t.message);if(!t.private)throw new Error("privateKey value does not contain a (valid) private key");if(t.encryption){if("string"!=typeof e.passphrase)throw new Error("Encrypted private key detected, but no passphrase given");Li(t,e.passphrase)}n=Di(t)}if(this.config={privateKey:t,publicKey:n,ident:"SSH-2.0-"+(e.ident||"ssh2js"+Vi+(this.server?"srv":""))},this.config.ident.replace(pr,""),this.config.ident.length+2>255)throw new Error("ident too long");this.reset(!0),this.on("header",(function(e){var t=e.identRaw,n=e.versions.software;i.debug("DEBUG: Remote ident: "+Ri(t));for(var r,o=0;o<Xi;++o)"string"==typeof(r=Wi[o])[0]?n===r[0]&&(i.remoteBugs|=r[1]):r[0].test(n)&&(i.remoteBugs|=r[1]);i._state.incoming.identRaw=t,Tr(i)})),this.on("end",(function(){i._state=void 0,i.reset(),i._state.incoming.hmac.bufCompute=void 0,i._state.outgoing.bufSeqno=void 0})),this.on("DISCONNECT",(function(e,t,n,r){!function(e,t,n,i,r){if(n!==Fi.BY_APPLICATION){var o=new Error(i||t);o.code=n,e.emit("error",o)}e.reset()}(i,e,t,n)})),this.on("KEXINIT",(function(e){!function(e,t){var n=e._state,i=n.outgoing;i.status===ar&&(e.debug("DEBUG: Received re-key request"),i.status=sr,i.kexinit=void 0,Tr(e));!0===function(e,t){var n,i,r,o,a,s=e._state,c=s.incoming,u=s.outgoing,p=e.debug;p("DEBUG: Comparing KEXINITs ...");var l=Mi.KEX;if(e.remoteBugs&Ki.BAD_DHGEX&&~l.toString().indexOf("group-exchange"))for(var f=(l=l.slice()).length-1;f>=0;--f)~l[f].indexOf("group-exchange")&&l.splice(f,1);p("DEBUG: (local) KEX algorithms: "+l),p("DEBUG: (remote) KEX algorithms: "+t.algorithms.kex),e.server?(n=l,i=t.algorithms.kex):(n=t.algorithms.kex,i=l);for(a=0,o=i.length;a<o&&-1===n.indexOf(i[a]);++a);if(a===o)return p("DEBUG: No matching KEX algorithm"),e.disconnect(Fi.KEY_EXCHANGE_FAILED),!1;var h=i[a];p("DEBUG: KEX algorithm: "+h),p("DEBUG: (local) Host key formats: "+Mi.SERVER_HOST_KEY),p("DEBUG: (remote) Host key formats: "+t.algorithms.srvHostKey),e.server?(n=Mi.SERVER_HOST_KEY,i=t.algorithms.srvHostKey):(n=t.algorithms.srvHostKey,i=Mi.SERVER_HOST_KEY);for(a=0,o=i.length;a<o&&-1===n.indexOf(i[a]);++a);if(a===o)return p("DEBUG: No matching host key format"),e.disconnect(Fi.KEY_EXCHANGE_FAILED),!1;s.hostkeyFormat=i[a],p("DEBUG: Host key format: "+s.hostkeyFormat),p("DEBUG: (local) Client->Server ciphers: "+Mi.CIPHER),p("DEBUG: (remote) Client->Server ciphers: "+t.algorithms.cs.encrypt),e.server?(n=Mi.CIPHER,i=t.algorithms.cs.encrypt):(n=t.algorithms.cs.encrypt,i=Mi.CIPHER);for(a=0,o=i.length;a<o&&-1===n.indexOf(i[a]);++a);if(a===o)return p("DEBUG: No matching Client->Server cipher"),e.disconnect(Fi.KEY_EXCHANGE_FAILED),!1;r=e.server?c.decrypt.type=i[a]:u.encrypt.type=i[a];p("DEBUG: Client->Server Cipher: "+r),p("DEBUG: (local) Server->Client ciphers: "+Mi.CIPHER),p("DEBUG: (remote) Server->Client ciphers: "+t.algorithms.sc.encrypt),e.server?(n=Mi.CIPHER,i=t.algorithms.sc.encrypt):(n=t.algorithms.sc.encrypt,i=Mi.CIPHER);for(a=0,o=i.length;a<o&&-1===n.indexOf(i[a]);++a);if(a===o)return p("DEBUG: No matching Server->Client cipher"),e.disconnect(Fi.KEY_EXCHANGE_FAILED),!1;r=e.server?u.encrypt.type=i[a]:c.decrypt.type=i[a];p("DEBUG: Server->Client Cipher: "+r),p("DEBUG: (local) Client->Server HMAC algorithms: "+Mi.HMAC),p("DEBUG: (remote) Client->Server HMAC algorithms: "+t.algorithms.cs.mac),e.server?(n=Mi.HMAC,i=t.algorithms.cs.mac):(n=t.algorithms.cs.mac,i=Mi.HMAC);for(a=0,o=i.length;a<o&&-1===n.indexOf(i[a]);++a);if(a===o)return p("DEBUG: No matching Client->Server HMAC algorithm"),e.disconnect(Fi.KEY_EXCHANGE_FAILED),!1;r=e.server?c.hmac.type=i[a]:u.hmac.type=i[a];p("DEBUG: Client->Server HMAC algorithm: "+r),p("DEBUG: (local) Server->Client HMAC algorithms: "+Mi.HMAC),p("DEBUG: (remote) Server->Client HMAC algorithms: "+t.algorithms.sc.mac),e.server?(n=Mi.HMAC,i=t.algorithms.sc.mac):(n=t.algorithms.sc.mac,i=Mi.HMAC);for(a=0,o=i.length;a<o&&-1===n.indexOf(i[a]);++a);if(a===o)return p("DEBUG: No matching Server->Client HMAC algorithm"),e.disconnect(Fi.KEY_EXCHANGE_FAILED),!1;r=e.server?u.hmac.type=i[a]:c.hmac.type=i[a];p("DEBUG: Server->Client HMAC algorithm: "+r);var d=Mi.COMPRESS;if(e.doCompress&&"none"!==d.slice(-1)){var m=d.indexOf("none");~m&&((d=d.slice()).splice(m,1),d.push("none"))}p("DEBUG: (local) Client->Server compression algorithms: "+d),p("DEBUG: (remote) Client->Server compression algorithms: "+t.algorithms.cs.compress),e.server?(n=d,i=t.algorithms.cs.compress):(n=t.algorithms.cs.compress,i=d);for(a=0,o=i.length;a<o&&-1===n.indexOf(i[a]);++a);if(a===o)return p("DEBUG: No matching Client->Server compression algorithm"),e.disconnect(Fi.KEY_EXCHANGE_FAILED),!1;r=e.server?c.decompress.type=i[a]:u.compress.type=i[a];p("DEBUG: Client->Server compression algorithm: "+r),p("DEBUG: (local) Server->Client compression algorithms: "+d),p("DEBUG: (remote) Server->Client compression algorithms: "+t.algorithms.sc.compress),e.server?(n=d,i=t.algorithms.sc.compress):(n=t.algorithms.sc.compress,i=d);for(a=0,o=i.length;a<o&&-1===n.indexOf(i[a]);++a);if(a===o)return p("DEBUG: No matching Server->Client compression algorithm"),e.disconnect(Fi.KEY_EXCHANGE_FAILED),!1;r=e.server?u.compress.type=i[a]:c.decompress.type=i[a];p("DEBUG: Server->Client compression algorithm: "+r),s.kex="diffie-hellman-group1-sha1"===h?wi.getDiffieHellman("modp2"):"diffie-hellman-group14-sha1"===h?wi.getDiffieHellman("modp14"):void 0;if(s.kex){s.kexdh="group",u.pubkey=new Buffer(s.kex.generateKeys("binary"),"binary");var v=0;for(o=u.pubkey.length;0===u.pubkey[v];)++v,--o;if(128&u.pubkey[v]){var g=new Buffer(o+1);g[0]=0,u.pubkey.copy(g,1,v),u.pubkey=g}}else"diffie-hellman-group-exchange-sha1"===h?s.kexdh="gex-sha1":"diffie-hellman-group-exchange-sha256"===h&&(s.kexdh="gex-sha256");return!0}(e,t)&&(e.server?"group"!==n.kexdh?n.incoming.expectedPacket="KEXDH_GEX_REQ":n.incoming.expectedPacket="KEXDH_INIT":"group"!==n.kexdh?function(e){e._state.incoming.expectedPacket="KEXDH_GEX_GROUP",e.debug("DEBUG: Outgoing: Writing KEXDH_GEX_REQUEST"),Cr(e,yr,void 0,!0)}(e):Br(e))}(i,e)})),this.on("NEWKEYS",(function(){!function(e){var t=e._state,n=t.outgoing,i=t.incoming,r=0,o=n.kexsecret.length;for(;0===n.kexsecret[r];)++r,--o;var a,s,c=8,u=0,p=0,l=ur.test(t.kexdh)?"sha1":"sha256",f=(128&n.kexsecret[r]?1:0)+o,h=new Buffer(4+f);h.writeUInt32BE(f,p,!0),p+=4,128&n.kexsecret[r]&&(h[p++]=0);if(n.kexsecret.copy(h,p,r),n.kexsecret=void 0,Ii(n.encrypt.type))n.encrypt.size=c,a=fr;else{switch(a=new Buffer(wi.createHash(l).update(h).update(n.exchangeHash).update(e.server?"B":"A","ascii").update(n.sessionId).digest("binary"),"binary"),n.encrypt.type){case"aes128-gcm":case"aes256-gcm":case"aes128-gcm@openssh.com":case"aes256-gcm@openssh.com":c=12;break;case"aes256-cbc":case"aes192-cbc":case"aes128-cbc":case"aes256-ctr":case"aes192-ctr":case"aes128-ctr":c=16}for(n.encrypt.size=c;c>a.length;)a=Buffer.concat([a,new Buffer(wi.createHash(l).update(h).update(n.exchangeHash).update(a).digest("binary"),"binary")]);a=a.slice(0,c)}switch(n.encrypt.type){case"aes256-gcm":case"aes256-gcm@openssh.com":case"aes256-cbc":case"aes256-ctr":case"arcfour256":u=32;break;case"3des-cbc":case"3des-ctr":case"aes192-cbc":case"aes192-ctr":u=24;break;case"aes128-gcm":case"aes128-gcm@openssh.com":case"aes128-cbc":case"aes128-ctr":case"cast128-cbc":case"blowfish-cbc":case"arcfour":case"arcfour128":u=16}s=new Buffer(wi.createHash(l).update(h).update(n.exchangeHash).update(e.server?"D":"C","ascii").update(n.sessionId).digest("binary"),"binary");for(;u>s.length;)s=Buffer.concat([s,new Buffer(wi.createHash(l).update(h).update(n.exchangeHash).update(s).digest("binary"),"binary")]);if(s=s.slice(0,u),Oi(n.encrypt.type))n.encrypt.size=16,n.encrypt.iv=a,n.encrypt.key=s,n.encrypt.instance=!0;else{var d=qi[n.encrypt.type];n.encrypt.instance=wi.createCipheriv(d,s,a),n.encrypt.instance.setAutoPadding(!1)}if(c=8,u=0,Ii(i.decrypt.type))i.decrypt.size=c,a=fr;else{switch(a=new Buffer(wi.createHash(l).update(h).update(n.exchangeHash).update(e.server?"A":"B","ascii").update(n.sessionId).digest("binary"),"binary"),i.decrypt.type){case"aes128-gcm":case"aes256-gcm":case"aes128-gcm@openssh.com":case"aes256-gcm@openssh.com":c=12;break;case"aes256-cbc":case"aes192-cbc":case"aes128-cbc":case"aes256-ctr":case"aes192-ctr":case"aes128-ctr":c=16}for(Oi(i.decrypt.type)?i.decrypt.size=16:i.decrypt.size=c;c>a.length;)a=Buffer.concat([a,new Buffer(wi.createHash(l).update(h).update(n.exchangeHash).update(a).digest("binary"),"binary")]);a=a.slice(0,c)}switch(i.decrypt.buf=new Buffer(i.decrypt.size),i.decrypt.type){case"aes256-gcm":case"aes256-gcm@openssh.com":case"aes256-cbc":case"aes256-ctr":case"arcfour256":u=32;break;case"3des-cbc":case"3des-ctr":case"aes192-cbc":case"aes192-ctr":u=24;break;case"aes128-gcm":case"aes128-gcm@openssh.com":case"aes128-cbc":case"aes128-ctr":case"cast128-cbc":case"blowfish-cbc":case"arcfour":case"arcfour128":u=16}s=new Buffer(wi.createHash(l).update(h).update(n.exchangeHash).update(e.server?"C":"D","ascii").update(n.sessionId).digest("binary"),"binary");for(;u>s.length;)s=Buffer.concat([s,new Buffer(wi.createHash(l).update(h).update(n.exchangeHash).update(s).digest("binary"),"binary")]);s=s.slice(0,u);var m,v=qi[i.decrypt.type];i.decrypt.instance=wi.createDecipheriv(v,s,a),i.decrypt.instance.setAutoPadding(!1),i.decrypt.iv=a,i.decrypt.key=s,"arcfour"===n.encrypt.type.substr(0,7)&&((m=new Buffer(1536)).fill(0),n.encrypt.instance.update(m));"arcfour"===i.decrypt.type.substr(0,7)&&((m=new Buffer(1536)).fill(0),i.decrypt.instance.update(m));var g=0,b=0;switch(n.hmac.type){case"hmac-ripemd160":case"hmac-sha1":g=20,n.hmac.size=20;break;case"hmac-sha1-96":g=20,n.hmac.size=12;break;case"hmac-sha2-256":g=32,n.hmac.size=32;break;case"hmac-sha2-256-96":g=32,n.hmac.size=12;break;case"hmac-sha2-512":g=64,n.hmac.size=64;break;case"hmac-sha2-512-96":g=64,n.hmac.size=12;break;case"hmac-md5":g=16,n.hmac.size=16;break;case"hmac-md5-96":g=16,n.hmac.size=12}switch(i.hmac.type){case"hmac-ripemd160":case"hmac-sha1":b=20,i.hmac.size=20;break;case"hmac-sha1-96":b=20,i.hmac.size=12;break;case"hmac-sha2-256":b=32,i.hmac.size=32;break;case"hmac-sha2-256-96":b=32,i.hmac.size=12;break;case"hmac-sha2-512":b=64,i.hmac.size=64;break;case"hmac-sha2-512-96":b=64,i.hmac.size=12;break;case"hmac-md5":b=16,i.hmac.size=16;break;case"hmac-md5-96":b=16,i.hmac.size=12}if(Oi(n.encrypt.type))n.hmac.key=void 0;else{for(s=new Buffer(wi.createHash(l).update(h).update(n.exchangeHash).update(e.server?"F":"E","ascii").update(n.sessionId).digest("binary"),"binary");g>s.length;)s=Buffer.concat([s,new Buffer(wi.createHash(l).update(h).update(n.exchangeHash).update(s).digest("binary"),"binary")]);n.hmac.key=s.slice(0,g)}if(Oi(i.decrypt.type))i.hmac.key=void 0,i.hmac.size=16;else{for(s=new Buffer(wi.createHash(l).update(h).update(n.exchangeHash).update(e.server?"E":"F","ascii").update(n.sessionId).digest("binary"),"binary");b>s.length;)s=Buffer.concat([s,new Buffer(wi.createHash(l).update(h).update(n.exchangeHash).update(s).digest("binary"),"binary")]);i.hmac.key=s.slice(0,b)}n.exchangeHash=void 0,i.hmac.buf&&i.hmac.buf.length===i.hmac.size||(i.hmac.buf=new Buffer(i.hmac.size));!1!==n.compress.type&&"none"!==n.compress.type&&(n.compress.instance=Ei.deflateSync);!1!==i.decompress.type&&"none"!==i.decompress.type&&(i.decompress.instance=Ei.inflateSync);if(e.bytesSent=e.bytesReceived=0,n.status===sr){n.status=ar,i.expectedPacket=void 0;var y=n.rekeyQueue,x=y.length,_=0;for(n.rekeyQueue=[];_<x;++_)Buffer.isBuffer(y[_])?Cr(e,y[_]):Cr(e,y[_][0],y[_][1]);x=(y=i.rekeyQueue).length,_=0,i.rekeyQueue=[];for(var w=i.seqno;_<x;++_){if(i.seqno=y[_][0],i.payload=y[_][1],!1===wr(e))return;if(i.status===Yi)return}i.seqno=w}else n.status=ar,i.expectedPacket=void 0}(i)})),this.server?this.on("KEXDH_INIT",(function(e){!function(e,t){!function(e,t){for(var n=e._state,i=n.outgoing,r=n.incoming,o=e.config.publicKey.public,a=e.config.publicKey.fulltype,s=e.config.privateKey.privateOrig,c=-1,u=0,p=t.length;u<p&&0===t[u];++u)++c;c>-1&&(t=t.slice(c+1));var l,f,h=n.kex.computeSecret(t,"binary","binary"),d=new Buffer(h,"binary"),m=wi.createHash(ur.test(n.kexdh)?"sha1":"sha256"),v=Buffer.byteLength(r.identRaw),g=Buffer.byteLength(e.config.ident),b=r.kexinit.length,y=i.kexinit.length,x=o.length,_=0,w=0,E=0,S=t.length,A=i.pubkey.length,R=d.length,k=0,T=0,B=0,C=0;if("group"!==n.kexdh){for(_=12,l=n.kex.getPrime(),f=n.kex.getGenerator(),w=l.length,E=f.length;0===l[B];)++B,--w;for(;0===f[C];)++C,--E;128&l[B]&&++w,128&f[C]&&++E}for(;0===i.pubkey[k];)++k,--A;for(;0===d[T];)++T,--R;128&t[0]&&++S;128&i.pubkey[k]&&++A;128&d[T]&&++R;var I=0,O=new Buffer(v+g+b+y+x+_+w+E+S+A+R+32+("group"!==n.kexdh?8:0));O.writeUInt32BE(v,I,!0),I+=4,O.write(r.identRaw,I,"utf8"),I+=v,O.writeUInt32BE(g,I,!0),I+=4,O.write(e.config.ident,I,"utf8"),I+=g,O.writeUInt32BE(b,I,!0),I+=4,r.kexinit.copy(O,I),I+=b,r.kexinit=void 0,O.writeUInt32BE(y,I,!0),I+=4,i.kexinit.copy(O,I),I+=y,i.kexinit=void 0,O.writeUInt32BE(x,I,!0),I+=4,o.copy(O,I),I+=x,"group"!==n.kexdh&&(yr.slice(1).copy(O,I),I+=_,O.writeUInt32BE(w,I,!0),I+=4,128&l[B]&&(O[I++]=0),l.copy(O,I,B),I+=w-(128&l[B]?1:0),O.writeUInt32BE(E,I,!0),I+=4,128&f[C]&&(O[I++]=0),f.copy(O,I,C),I+=E-(128&f[C]?1:0));O.writeUInt32BE(S,I,!0),I+=4,128&t[0]&&(O[I++]=0);t.copy(O,I),I+=S-(128&t[0]?1:0),O.writeUInt32BE(A,I,!0),I+=4,128&i.pubkey[k]&&(O[I++]=0);i.pubkey.copy(O,I,k),I+=A-(128&i.pubkey[k]?1:0),O.writeUInt32BE(R,I,!0),I+=4,128&d[T]&&(O[I++]=0);d.copy(O,I,T),i.exchangeHash=new Buffer(m.update(O).digest("binary"),"binary"),void 0===i.sessionId&&(i.sessionId=i.exchangeHash);i.kexsecret=d;var U,N="ssh-rsa"===a?"RSA":"DSA",L=wi.createSign(N+"-SHA1");if(L.update(i.exchangeHash,"binary"),U=L.sign(s,"binary"),"ssh-dss"===a){var D,P,j,H=new Ti.Reader(new Buffer(U,"binary"));for(H.readSequence(),P=H.readString(Ti.Integer,!0),j=H.readString(Ti.Integer,!0),D=0;P.length-D>20&&0===P[D];)++D;for(D>0&&(P=P.slice(D)),D=0;j.length-D>20&&0===j[D];)++D;D>0&&(j=j.slice(D)),U=P.toString("binary")+j.toString("binary")}var M=4+a.length+4+U.length,F=new Buffer(5+x+4+A+4+M);F[I=0]="group"===n.kexdh?Hi.KEXDH_REPLY:Hi.KEXDH_GEX_REPLY,++I,F.writeUInt32BE(x,I,!0),I+=4,o.copy(F,I),I+=x,F.writeUInt32BE(A,I,!0),I+=4,128&i.pubkey[k]&&(F[I++]=0);i.pubkey.copy(F,I,k),I+=A-(128&i.pubkey[k]?1:0),F.writeUInt32BE(M,I,!0),I+=4,F.writeUInt32BE(a.length,I,!0),I+=4,F.write(a,I,a.length,"ascii"),I+=a.length,F.writeUInt32BE(U.length,I,!0),I+=4,F.write(U,I,U.length,"binary"),n.incoming.expectedPacket="NEWKEYS",e.debug("DEBUG: Outgoing: Writing KEXDH_REPLY"),Cr(e,F,void 0,!0),e.debug("DEBUG: Outgoing: Writing NEWKEYS"),Cr(e,dr,void 0,!0)}(e,t)}(i,e)})):this.on("KEXDH_REPLY",(function(e){!function(e,t,n){var i,r,o=e._state,a=o.incoming,s=o.outgoing,c=e.debug;c("DEBUG: Checking host key format");var u=Pi(t.hostkey,0,"ascii",e,n);if(!1===u)return!1;if(t.hostkey_format!==o.hostkeyFormat||t.hostkey_format!==u)return c("DEBUG: Host key format mismatch"),e.disconnect(Fi.KEY_EXCHANGE_FAILED),e.reset(),!1;c("DEBUG: Checking signature format");var p=Pi(t.sig,0,"ascii",e,n);if(!1===p)return!1;if(t.sig_format!==p)return c("DEBUG: Signature format mismatch"),e.disconnect(Fi.KEY_EXCHANGE_FAILED),e.reset(),!1;if(s.status===or){var l;if(c("DEBUG: Verifying host fingerprint"),e.emit("fingerprint",t.hostkey,(function(e){void 0===l&&(l=e)})),void 0===l)c("DEBUG: Host accepted by default (no verification)");else{if(!0!==l)return c("DEBUG: Host denied via fingerprint verification"),e.disconnect(Fi.KEY_EXCHANGE_FAILED),e.reset(),e.emit("error",new Error("Host fingerprint verification failed")),!1;c("DEBUG: Host accepted (verified)")}}var f=-1;for(r=0,i=t.pubkey.length;r<i&&0===t.pubkey[r];++r)++f;f>-1&&(t.pubkey=t.pubkey.slice(f+1));var h=o.kex.computeSecret(t.pubkey,"binary","binary");t.secret=new Buffer(h,"binary");var d,m,v=wi.createHash(ur.test(o.kexdh)?"sha1":"sha256"),g=Buffer.byteLength(e.config.ident),b=Buffer.byteLength(a.identRaw),y=s.kexinit.length,x=a.kexinit.length,_=t.hostkey.length,w=0,E=0,S=0,A=s.pubkey.length,R=t.pubkey.length,k=t.secret.length,T=0,B=0,C=0,I=0,O=0;if("group"!==o.kexdh){for(w=12,d=o.kex.getPrime(),m=o.kex.getGenerator(),E=d.length,S=m.length;0===d[I];)++I,--E;for(;0===m[O];)++O,--S;128&d[I]&&++E,128&m[O]&&++S}for(;0===s.pubkey[T];)++T,--A;for(;0===t.pubkey[B];)++B,--R;for(;0===t.secret[C];)++C,--k;128&s.pubkey[T]&&++A;128&t.pubkey[B]&&++R;128&t.secret[C]&&++k;var U=0,N=new Buffer(g+b+y+x+_+w+E+S+A+R+k+32+("group"!==o.kexdh?8:0));N.writeUInt32BE(g,U,!0),U+=4,N.write(e.config.ident,U,"utf8"),U+=g,N.writeUInt32BE(b,U,!0),U+=4,N.write(a.identRaw,U,"utf8"),U+=b,N.writeUInt32BE(y,U,!0),U+=4,s.kexinit.copy(N,U),U+=y,s.kexinit=void 0,N.writeUInt32BE(x,U,!0),U+=4,a.kexinit.copy(N,U),U+=x,a.kexinit=void 0,N.writeUInt32BE(_,U,!0),U+=4,t.hostkey.copy(N,U),U+=_,"group"!==o.kexdh&&(yr.slice(1).copy(N,U),U+=w,N.writeUInt32BE(E,U,!0),U+=4,128&d[I]&&(N[U++]=0),d.copy(N,U,I),U+=E-(128&d[I]?1:0),N.writeUInt32BE(S,U,!0),U+=4,128&m[O]&&(N[U++]=0),m.copy(N,U,O),U+=S-(128&m[O]?1:0));N.writeUInt32BE(A,U,!0),U+=4,128&s.pubkey[T]&&(N[U++]=0);s.pubkey.copy(N,U,T),U+=A-(128&s.pubkey[T]?1:0),N.writeUInt32BE(R,U,!0),U+=4,128&t.pubkey[B]&&(N[U++]=0);t.pubkey.copy(N,U,B),U+=R-(128&t.pubkey[B]?1:0),N.writeUInt32BE(k,U,!0),U+=4,128&t.secret[C]&&(N[U++]=0);t.secret.copy(N,U,C),s.exchangeHash=new Buffer(v.update(N).digest("binary"),"binary");var L=new Ti.Writer,D=Pi(t.sig,t.sig._pos,e,n);if(!1===D)return!1;var P="ssh-rsa"===t.sig_format?"RSA":"DSA",j=wi.createVerify(P+"-SHA1");if(j.update(s.exchangeHash,"binary"),L.startSequence(),"RSA"===P){var H=Pi(t.hostkey,t.hostkey._pos,e,n);if(!1===H)return!1;var M=Pi(t.hostkey,t.hostkey._pos,e,n);if(!1===M)return!1;L.startSequence(),L.writeOID("1.2.840.113549.1.1.1"),L.writeNull(),L.endSequence(),L.startSequence(Ti.BitString),L.writeByte(0),L.startSequence(),L.writeBuffer(M,Ti.Integer),L.writeBuffer(H,Ti.Integer),L.endSequence(),L.endSequence()}else{var F=Pi(t.hostkey,t.hostkey._pos,e,n);if(!1===F)return!1;var G=Pi(t.hostkey,t.hostkey._pos,e,n);if(!1===G)return!1;var q=Pi(t.hostkey,t.hostkey._pos,e,n);if(!1===q)return!1;var z=Pi(t.hostkey,t.hostkey._pos,e,n);if(!1===z)return!1;if(L.startSequence(),L.writeOID("1.2.840.10040.4.1"),L.startSequence(),L.writeBuffer(F,Ti.Integer),L.writeBuffer(G,Ti.Integer),L.writeBuffer(q,Ti.Integer),L.endSequence(),L.endSequence(),L.startSequence(Ti.BitString),L.writeByte(0),L.writeBuffer(z,Ti.Integer),L.endSequence(),D.length<=40){var $=new Ti.Writer;$.startSequence();var K=D.slice(0,20),W=D.slice(20);if(128&K[0]){var X=new Buffer(21);X[0]=0,K.copy(X,1),K=X}if(128&W[0]){var V=new Buffer(21);V[0]=0,W.copy(V,1),W=V}$.writeBuffer(K,Ti.Integer),$.writeBuffer(W,Ti.Integer),$.endSequence(),D=$.buffer}}L.endSequence(),c("DEBUG: Verifying signature");var Q=L.buffer.toString("base64").replace(/(.{64})/g,"$1\n"),Y="-----BEGIN PUBLIC KEY-----\n"+Q+("\n"===Q[Q.length-1]?"":"\n")+"-----END PUBLIC KEY-----";if(!j.verify(Y,D,"binary"))return c("DEBUG: Signature could not be verified"),e.disconnect(Fi.KEY_EXCHANGE_FAILED),e.reset(),!1;void 0===s.sessionId&&(s.sessionId=s.exchangeHash);s.kexsecret=t.secret,c("DEBUG: Outgoing: Writing NEWKEYS"),s.status===sr?Cr(e,dr,void 0,!0):Cr(e,dr)}(i,e)})).on("KEXDH_GEX_GROUP",(function(e,t){!function(e,t,n){var i=e._state,r=i.outgoing;i.kex=wi.createDiffieHellman(t,n),r.pubkey=new Buffer(i.kex.generateKeys("binary"),"binary");var o=0,a=r.pubkey.length;for(;0===r.pubkey[o];)++o,--a;if(128&r.pubkey[o]){var s=new Buffer(a+1);s[0]=0,r.pubkey.copy(s,1,o),r.pubkey=s}Br(e)}(i,e,t)})),this.server&&"string"==typeof e.banner&&("\r\n"===e.banner.slice(-2)?this.push(e.banner):this.push(e.banner+"\r\n")),this.debug("DEBUG: Local ident: "+Ri(this.config.ident)),this.push(this.config.ident+"\r\n"),this._state.incoming.expectedPacket="KEXINIT"}function wr(e,t){var n,i,r,o,a,s,c,u,p,l,f,h,d,m,v=e._state.incoming,g=e._state.outgoing,b=v.payload,y=v.seqno;++v.seqno>cr&&(v.seqno=0);var x=b[0];if(void 0===x)return!1;if(g.status!==ar&&Hi[x]!==v.expectedPacket&&x<1&&x>4)return e.debug("DEBUG: Parser: IN_PACKETDATAAFTER, expected: "+v.expectedPacket+" but got: "+Hi[x]),e.disconnect(Fi.PROTOCOL_ERROR),!1;if(x===Hi.CHANNEL_DATA){if(!1===(a=ji(b,1,e,t)))return!1;if(!1===(s=Pi(b,5,e,t,32768)))return!1;e.debug("DEBUG: Parser: IN_PACKETDATAAFTER, packet: CHANNEL_DATA ("+a+")"),e.emit("CHANNEL_DATA:"+a,s)}else if(x===Hi.CHANNEL_EXTENDED_DATA){if(!1===(a=ji(b,1,e,t)))return!1;var _=ji(b,5,e,t);if(!1===_)return!1;if(!1===(s=Pi(b,9,e,t)))return!1;e.debug("DEBUG: Parser: IN_PACKETDATAAFTER, packet: CHANNEL_EXTENDED_DATA ("+a+")"),e.emit("CHANNEL_EXTENDED_DATA:"+a,_,s)}else if(x===Hi.CHANNEL_WINDOW_ADJUST){if(!1===(a=ji(b,1,e,t)))return!1;var w=ji(b,5,e,t);if(!1===w)return!1;e.debug("DEBUG: Parser: IN_PACKETDATAAFTER, packet: CHANNEL_WINDOW_ADJUST ("+a+", "+w+")"),e.emit("CHANNEL_WINDOW_ADJUST:"+a,w)}else if(x===Hi.CHANNEL_SUCCESS){if(!1===(a=ji(b,1,e,t)))return!1;e.debug("DEBUG: Parser: IN_PACKETDATAAFTER, packet: CHANNEL_SUCCESS ("+a+")"),e.emit("CHANNEL_SUCCESS:"+a)}else if(x===Hi.CHANNEL_FAILURE){if(!1===(a=ji(b,1,e,t)))return!1;e.debug("DEBUG: Parser: IN_PACKETDATAAFTER, packet: CHANNEL_FAILURE ("+a+")"),e.emit("CHANNEL_FAILURE:"+a)}else if(x===Hi.CHANNEL_EOF){if(!1===(a=ji(b,1,e,t)))return!1;e.debug("DEBUG: Parser: IN_PACKETDATAAFTER, packet: CHANNEL_EOF ("+a+")"),e.emit("CHANNEL_EOF:"+a)}else if(x===Hi.CHANNEL_OPEN){var E,S=Pi(b,1,"ascii",e,t);if(!1===S)return!1;if(!1===(p=ji(b,b._pos,e,t)))return!1;if(!1===(l=ji(b,b._pos+=4,e,t)))return!1;if(!1===(f=ji(b,b._pos+=4,e,t)))return!1;if(e.debug("DEBUG: Parser: IN_PACKETDATAAFTER, packet: CHANNEL_OPEN ("+p+", "+S+")"),"forwarded-tcpip"===S||"direct-tcpip"===S){var A=Pi(b,b._pos+=4,"ascii",e,t);if(!1===A)return!1;var R=ji(b,b._pos,e,t);if(!1===R)return!1;if(!1===(c=Pi(b,b._pos+=4,"ascii",e,t)))return!1;if(!1===(u=ji(b,b._pos,e,t)))return!1;E={type:S,sender:p,window:l,packetSize:f,data:{destIP:A,destPort:R,srcIP:c,srcPort:u}}}else if("forwarded-streamlocal@openssh.com"===S||"direct-streamlocal@openssh.com"===S){if(!1===(m=Pi(b,b._pos+=4,"utf8",e,t)))return!1;E={type:S,sender:p,window:l,packetSize:f,data:{socketPath:m}}}else if("x11"===S){if(!1===(c=Pi(b,b._pos+=4,"ascii",e,t)))return!1;if(!1===(u=ji(b,b._pos,e,t)))return!1;E={type:S,sender:p,window:l,packetSize:f,data:{srcIP:c,srcPort:u}}}else E={type:S,sender:p,window:l,packetSize:f,data:{}};e.emit("CHANNEL_OPEN",E)}else if(x===Hi.CHANNEL_OPEN_CONFIRMATION){if(!1===(h=ji(b,1,e,t)))return!1;if(!1===(p=ji(b,5,e,t)))return!1;if(!1===(l=ji(b,9,e,t)))return!1;if(!1===(f=ji(b,13,e,t)))return!1;o={recipient:h,sender:p,window:l,packetSize:f},b.length>17&&(o.data=b.slice(17)),e.emit("CHANNEL_OPEN_CONFIRMATION:"+o.recipient,o)}else if(x===Hi.CHANNEL_OPEN_FAILURE){if(!1===(h=ji(b,1,e,t)))return!1;var k=ji(b,5,e,t);if(!1===k)return!1;if(!1===(d=Pi(b,9,"utf8",e,t)))return!1;if(!1===(i=Pi(b,b._pos,"utf8",e,t)))return!1;b._pos=9,o={recipient:h,reasonCode:k,reason:Gi[k],description:d,lang:i},e.emit("CHANNEL_OPEN_FAILURE:"+o.recipient,o)}else if(x===Hi.CHANNEL_CLOSE){if(!1===(a=ji(b,1,e,t)))return!1;e.debug("DEBUG: Parser: IN_PACKETDATAAFTER, packet: CHANNEL_CLOSE ("+a+")"),e.emit("CHANNEL_CLOSE:"+a)}else if(x===Hi.IGNORE);else if(x===Hi.DISCONNECT){var T=ji(b,1,e,t);if(!1===T)return!1;var B=Fi[T];if(!1===(d=Pi(b,5,"utf8",e,t)))return!1;i=Pi(b,b._pos,"ascii",e,t),e.debug("DEBUG: Parser: IN_PACKETDATAAFTER, packet: DISCONNECT ("+B+")"),e.emit("DISCONNECT",B,T,d,i)}else if(x===Hi.DEBUG){if(!1===(r=Pi(b,2,"utf8",e,t)))return!1;if(!1===(i=Pi(b,b._pos,"ascii",e,t)))return!1;e.emit("DEBUG",r,i)}else if(x===Hi.NEWKEYS)e.emit("NEWKEYS");else if(x===Hi.SERVICE_REQUEST){if(!1===(n=Pi(b,1,"ascii",e,t)))return!1;e.emit("SERVICE_REQUEST",n)}else if(x===Hi.SERVICE_ACCEPT){if(!1===(n=Pi(b,1,"ascii",e,t)))return!1;e.emit("SERVICE_ACCEPT",n)}else if(x===Hi.USERAUTH_REQUEST){var C=Pi(b,1,"utf8",e,t);if(!1===C)return!1;var I=Pi(b,b._pos,"ascii",e,t);if(!1===I)return!1;var O,U=Pi(b,b._pos,"ascii",e,t);if(!1===U)return!1;if("password"===U){if(!1===(O=Pi(b,b._pos+1,"utf8",e,t)))return!1}else if("publickey"===U||"hostbased"===U){var N,L,D,P,j,H,M;if("publickey"===U){if(void 0===(N=b[b._pos++]))return!1;N=0!==N}if(!1===(L=Pi(b,b._pos,"ascii",e,t)))return!1;if(!1===(D=Pi(b,b._pos,e,t)))return!1;if(N||"hostbased"===U){if("hostbased"===U){if(!1===(H=Pi(b,b._pos,"ascii",e,t)))return!1;if(!1===(M=Pi(b,b._pos,"utf8",e,t)))return!1}var F=b._pos;if(!1===(P=Pi(b,F,e,t)))return!1;if(P.toString("ascii",4,11)===L&&(P=P.slice(15)),"ssh-dss"===L&&P.length<=40){var G=new Ti.Writer;G.startSequence();var q=P.slice(0,20),z=P.slice(20);if(128&q[0]){var $=new Buffer(21);$[0]=0,q.copy($,1),q=$}if(128&z[0]){var K=new Buffer(21);K[0]=0,z.copy(K,1),z=K}G.writeBuffer(q,Ti.Integer),G.writeBuffer(z,Ti.Integer),G.endSequence(),P=G.buffer}(j=new Buffer(4+g.sessionId.length+F)).writeUInt32BE(g.sessionId.length,0,!0),g.sessionId.copy(j,4),b.copy(j,4+g.sessionId.length,0,F)}O={keyAlgo:L,key:D,signature:P,blob:j,localHostname:H,localUsername:M}}else if("keyboard-interactive"===U){var W=ji(b,b._pos,e,t);if(!1===W)return!1;if(!1===(O=Pi(b,b._pos+4+W,"utf8",e,t)))return!1}else"none"!==U&&(O=b.slice(b._pos));e.debug("DEBUG: Parser: IN_PACKETDATAAFTER, packet: USERAUTH_REQUEST ("+U+")"),e.emit("USERAUTH_REQUEST",C,I,U,O)}else if(x===Hi.USERAUTH_SUCCESS)e.emit("USERAUTH_SUCCESS");else if(x===Hi.USERAUTH_FAILURE){var X=Pi(b,1,"ascii",e,t);if(!1===X)return!1;var V=b[b._pos];if(void 0===V)return!1;V=0!==V,X=X.split(","),e.emit("USERAUTH_FAILURE",X,V)}else if(x===Hi.USERAUTH_BANNER){if(!1===(r=Pi(b,1,"utf8",e,t)))return!1;if(!1===(i=Pi(b,b._pos,"utf8",e,t)))return!1;e.emit("USERAUTH_BANNER",r,i)}else if(x===Hi.GLOBAL_REQUEST){var Q=Pi(b,1,"ascii",e,t);if(!1===Q)return!1;var Y,Z=b[b._pos++];if(void 0===Z)return!1;if(Z=0!==Z,"tcpip-forward"===Q||"cancel-tcpip-forward"===Q){var J=Pi(b,b._pos,"ascii",e,t);if(!1===J)return!1;var ee=ji(b,b._pos,e,t);if(!1===ee)return!1;Y={bindAddr:J,bindPort:ee}}else if("streamlocal-forward@openssh.com"===Q||"cancel-streamlocal-forward@openssh.com"===Q){if(!1===(m=Pi(b,b._pos,"utf8",e,t)))return!1;Y={socketPath:m}}else"no-more-sessions@openssh.com"===Q||(Y=b.slice(b._pos));e.emit("GLOBAL_REQUEST",Q,Z,Y)}else if(x===Hi.REQUEST_SUCCESS)b.length>1?e.emit("REQUEST_SUCCESS",b.slice(1)):e.emit("REQUEST_SUCCESS");else if(x===Hi.REQUEST_FAILURE)e.emit("REQUEST_FAILURE");else if(x===Hi.UNIMPLEMENTED);else{if(x===Hi.KEXINIT)return function(e,t){var n,i=e._state.incoming,r=i.payload,o={algorithms:{kex:void 0,srvHostKey:void 0,cs:{encrypt:void 0,mac:void 0,compress:void 0},sc:{encrypt:void 0,mac:void 0,compress:void 0}},languages:{cs:void 0,sc:void 0}};if(n=kr(r,17,e,t),!1===n)return!1;if(o.algorithms.kex=n,n=kr(r,r._pos,e,t),!1===n)return!1;if(o.algorithms.srvHostKey=n,n=kr(r,r._pos,e,t),!1===n)return!1;if(o.algorithms.cs.encrypt=n,n=kr(r,r._pos,e,t),!1===n)return!1;if(o.algorithms.sc.encrypt=n,n=kr(r,r._pos,e,t),!1===n)return!1;if(o.algorithms.cs.mac=n,n=kr(r,r._pos,e,t),!1===n)return!1;if(o.algorithms.sc.mac=n,n=kr(r,r._pos,e,t),!1===n)return!1;if(o.algorithms.cs.compress=n,n=kr(r,r._pos,e,t),!1===n)return!1;if(o.algorithms.sc.compress=n,n=kr(r,r._pos,e,t),!1===n)return!1;if(o.languages.cs=n,n=kr(r,r._pos,e,t),!1===n)return!1;o.languages.sc=n,i.kexinit=r,e.emit("KEXINIT",o)}(e,t);if(x===Hi.CHANNEL_REQUEST)return function(e,t){var n,i,r,o,a,s,c,u=e._state.incoming.payload,p=ji(u,1,e,t);if(!1===p)return!1;var l=Pi(u,5,"ascii",e,t);if(!1===l)return!1;if("exit-status"===l){var f=ji(u,++u._pos,e,t);if(!1===f)return!1;n={recipient:p,request:l,wantReply:!1,code:f}}else if("exit-signal"===l){if(!1===(c=Pi(u,++u._pos,"ascii",e,t)))return!1;var h=u[u._pos];if(void 0===h)return!1;h=0!==h;var d=Pi(u,++u._pos,"utf8",e,t);if(!1===d)return!1;var m=Pi(u,u._pos,"utf8",e,t);if(!1===m)return!1;n={recipient:p,request:l,wantReply:!1,signal:c,coredump:h,description:d,lang:m}}else if("pty-req"===l){if(void 0===(s=u[u._pos++]))return!1;s=0!==s;var v=Pi(u,u._pos,"ascii",e,t);if(!1===v)return!1;if(!1===(i=ji(u,u._pos,e,t)))return!1;if(!1===(r=ji(u,u._pos+=4,e,t)))return!1;if(!1===(o=ji(u,u._pos+=4,e,t)))return!1;if(!1===(a=ji(u,u._pos+=4,e,t)))return!1;var g=Pi(u,u._pos+=4,e,t);if(!1===g)return!1;g=function(e){for(var t,n={},i=0,r=e.length;i<r&&!((t=e[i])===zi.TTY_OP_END||void 0===zi[t]||i+5>r);i+=5)n[zi[t]]=e.readUInt32BE(i+1,!0);return n}(g),n={recipient:p,request:l,wantReply:s,term:v,cols:i,rows:r,width:o,height:a,modes:g}}else if("window-change"===l){if(!1===(i=ji(u,++u._pos,e,t)))return!1;if(!1===(r=ji(u,u._pos+=4,e,t)))return!1;if(!1===(o=ji(u,u._pos+=4,e,t)))return!1;if(!1===(a=ji(u,u._pos+=4,e,t)))return!1;n={recipient:p,request:l,wantReply:!1,cols:i,rows:r,width:o,height:a}}else if("x11-req"===l){if(void 0===(s=u[u._pos++]))return!1;s=0!==s;var b=u[u._pos++];if(void 0===b)return!1;b=0!==b;var y=Pi(u,u._pos,"ascii",e,t);if(!1===y)return!1;var x=Pi(u,u._pos,"hex",e,t);if(!1===x)return!1;var _=ji(u,u._pos,e,t);if(!1===_)return!1;n={recipient:p,request:l,wantReply:s,single:b,protocol:y,cookie:x,screen:_}}else if("env"===l){if(void 0===(s=u[u._pos++]))return!1;s=0!==s;var w=Pi(u,u._pos,"utf8",e,t);if(!1===w)return!1;var E=Pi(u,u._pos,"utf8",e,t);if(!1===E)return!1;n={recipient:p,request:l,wantReply:s,key:w,val:E}}else if("shell"===l){if(void 0===(s=u[u._pos]))return!1;n={recipient:p,request:l,wantReply:s=0!==s}}else if("exec"===l){if(void 0===(s=u[u._pos++]))return!1;s=0!==s;var S=Pi(u,u._pos,"utf8",e,t);if(!1===S)return!1;n={recipient:p,request:l,wantReply:s,command:S}}else if("subsystem"===l){if(void 0===(s=u[u._pos++]))return!1;s=0!==s;var A=Pi(u,u._pos,"utf8",e,t);if(!1===A)return!1;n={recipient:p,request:l,wantReply:s,subsystem:A}}else if("signal"===l){if(!1===(c=Pi(u,++u._pos,"ascii",e,t)))return!1;n={recipient:p,request:l,wantReply:!1,signal:"SIG"+c}}else if("xon-xoff"===l){var R=u[++u._pos];if(void 0===R)return!1;n={recipient:p,request:l,wantReply:!1,clientControl:R=0!==R}}else if("auth-agent-req@openssh.com"===l){if(void 0===(s=u[u._pos]))return!1;n={recipient:p,request:l,wantReply:s=0!==s}}else{if(void 0===(s=u[u._pos]))return!1;n={recipient:p,request:l,wantReply:s=0!==s}}e.debug("DEBUG: Parser: IN_PACKETDATAAFTER, packet: CHANNEL_REQUEST ("+p+", "+l+")"),e.emit("CHANNEL_REQUEST:"+p,n)}(e,t);if(x>=30&&x<=49)return function(e,t,n){var i=e._state,r=i.incoming,o=r.payload;if("group"!==i.kexdh){if(e.server)return e.disconnect(Fi.PROTOCOL_ERROR),!1;if(t===Hi.KEXDH_GEX_GROUP){var a=Pi(o,1,e,n);if(!1===a)return!1;var s=Pi(o,o._pos,e,n);if(!1===s)return!1;e.emit("KEXDH_GEX_GROUP",a,s)}else if(t===Hi.KEXDH_GEX_REPLY)return Er(e,n)}else if(t===Hi.KEXDH_INIT){var c=Pi(o,1,e,n);if(!1===c)return!1;e.emit("KEXDH_INIT",c)}else if(t===Hi.KEXDH_REPLY)return Er(e,n)}(e,x,t);if(x>=60&&x<=70)return function(e,t,n){var i,r,o,a=e._state,s=a.authMethod,c=a.incoming.payload;if("password"===s){if(t===Hi.USERAUTH_PASSWD_CHANGEREQ){if(!1===(i=Pi(c,1,"utf8",e,n)))return!1;if(!1===(r=Pi(c,c._pos,"utf8",e,n)))return!1;e.emit("USERAUTH_PASSWD_CHANGEREQ",i,r)}}else if("keyboard-interactive"===s){if(t===Hi.USERAUTH_INFO_REQUEST){var u,p,l;if(!1===(u=Pi(c,1,"utf8",e,n)))return!1;if(!1===(p=Pi(c,c._pos,"utf8",e,n)))return!1;if(!1===(r=Pi(c,c._pos,"utf8",e,n)))return!1;if(!1===(l=ji(c,c._pos,e,n)))return!1;c._pos+=4;for(var f=[],h=0;h<l;++h){if(!1===(o=Pi(c,c._pos,"utf8",e,n)))return!1;var d=c[c._pos++];if(void 0===d)return!1;d=0!==d,f.push({prompt:o,echo:d})}e.emit("USERAUTH_INFO_REQUEST",u,p,r,f)}else if(t===Hi.USERAUTH_INFO_RESPONSE){var m=ji(c,1,e,n);if(!1===m)return!1;c._pos=5;for(var v=[],g=0;g<m;++g){if(!1===(o=Pi(c,c._pos,"utf8",e,n)))return!1;v.push(o)}e.emit("USERAUTH_INFO_RESPONSE",v)}}else"publickey"===s&&t===Hi.USERAUTH_PK_OK&&e.emit("USERAUTH_PK_OK")}(e,x,t);var te=new Buffer(5);te[0]=Hi.UNIMPLEMENTED,te.writeUInt32BE(y,1,!0),Cr(e,te)}}function Er(e,t){var n=e._state.incoming.payload,i=Pi(n,1,e,t);if(!1===i)return!1;var r=Pi(n,n._pos,e,t);if(!1===r)return!1;var o=Pi(n,n._pos,e,t);if(!1===o)return!1;var a={hostkey:i,hostkey_format:void 0,pubkey:r,sig:o,sig_format:void 0},s=Pi(i,0,"ascii",e,t);if(!1===s)return!1;a.hostkey_format=s;var c=Pi(o,0,"ascii",e,t);if(!1===c)return!1;a.sig_format=c,e.emit("KEXDH_REPLY",a)}function Sr(e,t){var n=e._state.incoming,i=n.hmac;if(e.debug("DEBUG: Parser: Verifying MAC"),Oi(n.decrypt.type)){var r=n.decrypt,o=r.instance;o.setAuthTag(t);var a=new Buffer(o.update(n.packet,"binary","binary"),"binary");return n.payload=a.slice(1,n.packet.length+4-a[0]),o.final("binary"),Ui(r.iv),r.instance=wi.createDecipheriv(qi[r.type],r.key,r.iv),r.instance.setAutoPadding(!1),!0}var s=wi.createHmac(qi[i.type],i.key);i.bufCompute.writeUInt32BE(n.seqno,0,!0),i.bufCompute.writeUInt32BE(n.pktLen,4,!0),i.bufCompute[8]=n.padLen,s.update(i.bufCompute),s.update(n.packet);var c=s.digest("binary");return c.length>n.hmac.size&&(c=c.slice(0,n.hmac.size)),c===t.toString("binary")}function Ar(e,t){var n=e._state.incoming.decrypt.instance;return e.debug("DEBUG: Parser: Decrypting"),new Buffer(n.update(t,"binary","binary"),"binary")}function Rr(e,t,n,i){var r=e._state.incoming.expect;r.amount=n,r.type=t,r.ptr=0,i&&e[i]?r.buf=e[i]:n&&(r.buf=new Buffer(n))}function kr(e,t,n,i){var r=Pi(e,t,"ascii",n,i);return!1!==r&&(r.length?r.split(","):[])}function Tr(e){var t,n=function(e){var t=!1;try{t=wi.randomBytes(e)}catch(e){}return t}(16),i=Mi.KEX_LIST_SIZE,r=Mi.KEX_LIST;if(e.remoteBugs&Ki.BAD_DHGEX&&~r.toString().indexOf("group-exchange")){for(var o=(r=Mi.KEX.slice()).length-1;o>=0;--o)~r[o].indexOf("group-exchange")&&r.splice(o,1);i=(r=new Buffer(r.join(","))).length}var a=21+i+4+(t=e.server?e.config.publicKey.fulltype:Mi.SERVER_HOST_KEY_LIST).length+2*(4+Mi.CIPHER_LIST_SIZE)+2*(4+Mi.HMAC_LIST_SIZE)+2*(4+Mi.COMPRESS_LIST_SIZE)+8+1+4,s=new Buffer(a),c=17;s.fill(0),s[0]=Hi.KEXINIT,!1!==n&&n.copy(s,1),s.writeUInt32BE(i,c,!0),c+=4,r.copy(s,c),c+=i,s.writeUInt32BE(t.length,c,!0),c+=4,"string"==typeof t?s.write(t,c):t.copy(s,c),c+=t.length,s.writeUInt32BE(Mi.CIPHER_LIST_SIZE,c,!0),c+=4,Mi.CIPHER_LIST.copy(s,c),c+=Mi.CIPHER_LIST_SIZE,s.writeUInt32BE(Mi.CIPHER_LIST_SIZE,c,!0),c+=4,Mi.CIPHER_LIST.copy(s,c),c+=Mi.CIPHER_LIST_SIZE,s.writeUInt32BE(Mi.HMAC_LIST_SIZE,c,!0),c+=4,Mi.HMAC_LIST.copy(s,c),c+=Mi.HMAC_LIST_SIZE,s.writeUInt32BE(Mi.HMAC_LIST_SIZE,c,!0),c+=4,Mi.HMAC_LIST.copy(s,c),c+=Mi.HMAC_LIST_SIZE;var u=Mi.COMPRESS_LIST,p=Mi.COMPRESS_LIST_SIZE;if(e.doCompress&&"none"!==Mi.COMPRESS.slice(-1)){var l=Mi.COMPRESS.indexOf("none");~l&&((u=Mi.COMPRESS.slice()).splice(l,1),u.push("none"),p=(u=new Buffer(u.join(","))).length)}s.writeUInt32BE(p,c,!0),c+=4,u.copy(s,c),c+=p,s.writeUInt32BE(p,c,!0),c+=4,u.copy(s,c),c+=p,e.debug("DEBUG: Outgoing: Writing KEXINIT"),e._state.incoming.expectedPacket="KEXINIT";var f=e._state.outgoing;return f.kexinit=s,f.status===ar&&(f.status=sr),Cr(e,s,void 0,!0)}function Br(e){var t=e._state,n=t.outgoing,i=new Buffer(5+n.pubkey.length);return"group"!==t.kexdh?(t.incoming.expectedPacket="KEXDH_GEX_REPLY",i[0]=Hi.KEXDH_GEX_INIT,e.debug("DEBUG: Outgoing: Writing KEXDH_GEX_INIT")):(t.incoming.expectedPacket="KEXDH_REPLY",i[0]=Hi.KEXDH_INIT,e.debug("DEBUG: Outgoing: Writing KEXDH_INIT")),i.writeUInt32BE(n.pubkey.length,1,!0),n.pubkey.copy(i,5),Cr(e,i,void 0,!0)}function Cr(e,t,n,i){var r=e._state;if(r){var o,a,s,c,u,p=r.outgoing,l=p.encrypt,f=p.hmac,h=p.compress.instance;if(p.status===sr&&!i)return"function"==typeof n?p.rekeyQueue.push([t,n]):p.rekeyQueue.push(t),!1;if(e._readableState.ended||e._writableState.ended)return!1;if(h&&(t=h(t)),o=t.length+9,!1!==l.instance&&Oi(l.type)){for(var d=1+t.length+4;d%l.size!=0;)++d;a=d-1-t.length,o=4+d}else a=(o+=(l.size-1)*o%l.size)-t.length-5;(s=new Buffer(o)).writeUInt32BE(o-4,0,!0),s[4]=a,t.copy(s,5),wi.randomBytes(a).copy(s,5+t.length),!1!==f.type&&f.key&&(c=wi.createHmac(qi[f.type],f.key),p.bufSeqno.writeUInt32BE(p.seqno,0,!0),c.update(p.bufSeqno),c.update(s),(c=c.digest("binary")).length>p.hmac.size&&(c=c.slice(0,p.hmac.size)),c=new Buffer(c,"binary"));var m,v=0;if(!1!==l.instance)if(Oi(l.type)){var g=wi.createCipheriv(qi[l.type],l.key,l.iv);g.setAutoPadding(!1);var b=s.slice(0,4);g.setAAD(b),e.push(b),v+=b,m=g.update(s.slice(4),"binary","binary"),e.push(m,"binary"),v+=m.length;var y=g.final("binary");y.length&&(e.push(y,"binary"),v+=y.length);var x=g.getAuthTag();u=e.push(x),v+=x.length,Ui(l.iv)}else m=l.instance.update(s,"binary","binary"),e.push(m,"binary"),v+=m.length,u=e.push(c),v+=c.length;else u=e.push(s),v=s.length;return e.bytesSent+=v,++p.seqno>cr&&(p.seqno=0),n&&n(),u}}Ai(_r,Si),_r.prototype.__read=Si.prototype._read,_r.prototype._read=function(e){return this._needContinue&&(this._needContinue=!1,this.emit("continue")),this.__read(e)},_r.prototype.__push=Si.prototype.push,_r.prototype.push=function(e,t){var n=this.__push(e,t);return this._needContinue=!1===n,n},_r.prototype._cleanup=function(e){this.reset(),this.debug("DEBUG: Parser: Malformed packet"),e&&e(new Error("Malformed packet"))},_r.prototype._transform=function(e,t,n){var i,r,o,a=!1,s=!1,c=this._state,u=c.incoming,p=c.outgoing,l=u.expect,f=u.decrypt,h=u.decompress,d=e.length,m=0,v=this.debug,g=0,b=g;for(this.bytesReceived+=d;;){if(void 0!==l.type){if(g>=d)break;if(2===l.type){m=d-g;var y=l.buf.length-l.ptr;y<=m?(e.copy(l.buf,l.ptr,g,g+y),g+=y,i=l.buf,l.buf=void 0,l.ptr=0,l.type=void 0):(e.copy(l.buf,l.ptr,g),l.ptr+=m,g+=m);continue}if(0===l.type){if(g+=u.search.push(e),void 0!==l.type)continue}else if(1===l.type){if(4+ ++l.ptr>255)return this.reset(),v("DEBUG: Parser: Identification string exceeded 255 characters"),n(new Error("Max identification string size exceeded"));if(10!==e[g]){++g===d&&b<g&&(void 0===l.buf?l.buf=e.toString("ascii",b,g):l.buf+=e.toString("ascii",b,g));continue}l.type=void 0,b<g&&(void 0===l.buf?l.buf=e.toString("ascii",b,g):l.buf+=e.toString("ascii",b,g)),i=l.buf,l.buf=void 0,++g}}if(u.status===Yi)if(this.server)if(i){if(83!==i[0]||83!==i[1]||72!==i[2]||45!==i[3])return this.reset(),v("DEBUG: Parser: Bad identification start"),n(new Error("Bad identification start"));u.status=Zi,v("DEBUG: Parser: IN_INIT (waiting for rest of identification)")}else v("DEBUG: Parser: IN_INIT (waiting for identification begin)"),Rr(this,2,4);else{v("DEBUG: Parser: IN_INIT");var x=u.search=new ki(lr);x.on("info",(function e(t,n,i,r){n&&(void 0===u.greeting?u.greeting=n.toString("binary",i,r):u.greeting+=n.toString("binary",i,r)),t&&(l.type=void 0,u.search.removeListener("info",e))})),x.maxMatches=1,Rr(this,0),u.status=Zi}else if(u.status===Zi)v("DEBUG: Parser: IN_GREETING"),u.search=void 0,b=g,Rr(this,1),u.status=Ji;else if(u.status===Ji){v("DEBUG: Parser: IN_HEADER");var _=(i=i.trim()).indexOf("-"),w=i.indexOf(" "),E={greeting:u.greeting,identRaw:"SSH-"+i,versions:{protocol:i.substr(0,_),software:-1===w?i.substring(_+1):i.substring(_+1,w)},comments:w>-1?i.substring(w+1):void 0};if(u.greeting=void 0,"1.99"!==E.versions.protocol&&"2.0"!==E.versions.protocol)return this.reset(),v("DEBUG: Parser: protocol version not supported: "+E.versions.protocol),n(new Error("Protocol version not supported"));if(this.emit("header",E),u.status===Yi)return;u.status=er}else if(u.status===er)v("DEBUG: Parser: IN_PACKETBEFORE (expecting "+f.size+")"),Rr(this,2,f.size,f.buf),u.status=tr;else if(u.status===tr){if(v("DEBUG: Parser: IN_PACKET"),s=f.instance&&Oi(f.type),f.instance&&!Oi(f.type)&&(i=Ar(this,i)),!1===(o=ji(i,0,this,n)))return;var S=u.hmac.size||0,A=o+4+S;if(A>this.maxPacketSize||A<16+S||(o+4)%f.size!=0)return this.disconnect(Fi.PROTOCOL_ERROR),v("DEBUG: Parser: Bad packet length ("+A+")"),n(new Error("Bad packet length"));u.pktLen=o;var R=u.pktLen+4-f.size;if(s?(f.instance.setAAD(i.slice(0,4)),v("DEBUG: Parser: pktLen:"+u.pktLen+",remainLen:"+R)):(u.padLen=i[4],v("DEBUG: Parser: pktLen:"+u.pktLen+",padLen:"+u.padLen+",remainLen:"+R)),R>0)u.pktExtra=s?i.slice(4):i.slice(5),Rr(this,2,R),u.status=nr;else{if(!(R<0)){a=!0,u.status=nr;continue}u.status=er}}else if(u.status===nr){v("DEBUG: Parser: IN_PACKETDATA"),s=f.instance&&Oi(f.type),!f.instance||a||s?a&&(a=!1):i=Ar(this,i);var k=u.pktLen-u.padLen-1;u.pktExtra?(r=new Buffer(u.pktExtra.length+i.length),u.pktExtra.copy(r),i.copy(r,u.pktExtra.length),u.payload=r.slice(0,k)):(r=s?i.slice(4):i.slice(5),u.payload=i.slice(5,5+k)),void 0!==u.hmac.size?(v("DEBUG: Parser: HMAC size:"+u.hmac.size),Rr(this,2,u.hmac.size,u.hmac.buf),u.status=ir,u.packet=r):u.status=rr,u.pktExtra=void 0,r=void 0}else if(u.status===ir){if(v("DEBUG: Parser: IN_PACKETDATAVERIFY"),!Sr(this,i))return this.reset(),v("DEBUG: Parser: IN_PACKETDATAVERIFY (Invalid HMAC)"),n(new Error("Invalid HMAC"));v("DEBUG: Parser: IN_PACKETDATAVERIFY (Valid HMAC)"),u.status=rr,u.packet=void 0}else if(u.status===rr){h.instance&&(v("DEBUG: Parser: Decompressing"),u.payload=h.instance(u.payload)),this.emit("packet");var T=u.payload[0];if(v!==xr){var B="DEBUG: Parser: IN_PACKETDATAAFTER, packet: ",C=c.kexdh,I=c.authMethod,O=null;p.status!==sr||T<=4||T>=20&&T<=49||(B+="(enqueued) "),"group"===C&&T===Hi.KEXDH_INIT?O="KEXDH_INIT":"group"===C&&T===Hi.KEXDH_REPLY?O="KEXDH_REPLY":"group"!==C&&T===Hi.KEXDH_GEX_GROUP?O="KEXDH_GEX_GROUP":"group"!==C&&T===Hi.KEXDH_GEX_REPLY?O="KEXDH_GEX_REPLY":60===T?"password"===I?O="USERAUTH_PASSWD_CHANGEREQ":"keyboard-interactive"===I?O="USERAUTH_INFO_REQUEST":"publickey"===I&&(O="USERAUTH_PK_OK"):61===T&&"keyboard-interactive"===I&&(O="USERAUTH_INFO_RESPONSE"),null===O&&(O=Hi[T]),T!==Hi.CHANNEL_OPEN&&T!==Hi.CHANNEL_REQUEST&&T!==Hi.CHANNEL_SUCCESS&&T!==Hi.CHANNEL_FAILURE&&T!==Hi.CHANNEL_EOF&&T!==Hi.CHANNEL_CLOSE&&T!==Hi.CHANNEL_DATA&&T!==Hi.CHANNEL_EXTENDED_DATA&&T!==Hi.CHANNEL_WINDOW_ADJUST&&T!==Hi.DISCONNECT&&T!==Hi.USERAUTH_REQUEST&&v(B+O)}if(p.status===ar||T<=4||T>=20&&T<=49){if(!1===wr(this,n))return;if(u.status===Yi)return}else if(p.status===sr){if(50===u.rekeyQueue.length)return v("DEBUG: Parser: Max incoming re-key queue length reached"),this.disconnect(Fi.PROTOCOL_ERROR),n(new Error("Incoming re-key queue length limit reached"));var U=u.seqno;++u.seqno>cr&&(u.seqno=0),u.rekeyQueue.push([U,u.payload])}u.status=er,u.payload=void 0}void 0!==i&&(i=void 0)}n()},_r.prototype.reset=function(e){if(this._state){var t=this._state;t.incoming.status=Yi,t.outgoing.status=or}else this._state={authMethod:void 0,hostkeyFormat:void 0,kex:void 0,kexdh:void 0,incoming:{status:Yi,expectedPacket:void 0,search:void 0,greeting:void 0,seqno:0,pktLen:void 0,padLen:void 0,pktExtra:void 0,payload:void 0,packet:void 0,kexinit:void 0,identRaw:void 0,rekeyQueue:[],expect:{amount:void 0,type:void 0,ptr:0,buf:void 0},decrypt:{instance:!1,size:8,iv:void 0,key:void 0,buf:void 0,type:void 0},hmac:{size:void 0,key:void 0,buf:void 0,bufCompute:new Buffer(9),type:!1},decompress:{instance:!1,type:!1}},outgoing:{status:or,seqno:0,bufSeqno:new Buffer(4),rekeyQueue:[],kexinit:void 0,kexsecret:void 0,pubkey:void 0,exchangeHash:void 0,sessionId:void 0,encrypt:{instance:!1,size:8,iv:void 0,key:void 0,type:void 0},hmac:{size:void 0,key:void 0,buf:void 0,type:!1},compress:{instance:!1,type:!1}}};e||this.readable&&this.push(null)},_r.prototype.disconnect=function(e){var t=new Buffer(13);return t.fill(0),t[0]=Hi.DISCONNECT,void 0===Fi[e]&&(e=Fi.BY_APPLICATION),t.writeUInt32BE(e,1,!0),this.debug("DEBUG: Outgoing: Writing DISCONNECT ("+Fi[e]+")"),Cr(this,t),this.reset(),!1},_r.prototype.ping=function(){return this.debug("DEBUG: Outgoing: Writing ping (GLOBAL_REQUEST: keepalive@openssh.com)"),Cr(this,hr)},_r.prototype.rekey=function(){var e=this._state.outgoing.status;if(e===sr)throw new Error("A re-key is already in progress");if(e!==ar)throw new Error("Cannot re-key yet");return this.debug("DEBUG: Outgoing: Starting re-key"),Tr(this)},_r.prototype.requestSuccess=function(e){var t;return Buffer.isBuffer(e)?((t=new Buffer(1+e.length))[0]=Hi.REQUEST_SUCCESS,e.copy(t,1)):t=vr,this.debug("DEBUG: Outgoing: Writing REQUEST_SUCCESS"),Cr(this,t)},_r.prototype.requestFailure=function(){return this.debug("DEBUG: Outgoing: Writing REQUEST_FAILURE"),Cr(this,gr)},_r.prototype.channelSuccess=function(e){var t=new Buffer(5);return t[0]=Hi.CHANNEL_SUCCESS,t.writeUInt32BE(e,1,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_SUCCESS ("+e+")"),Cr(this,t)},_r.prototype.channelFailure=function(e){var t=new Buffer(5);return t[0]=Hi.CHANNEL_FAILURE,t.writeUInt32BE(e,1,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_FAILURE ("+e+")"),Cr(this,t)},_r.prototype.channelEOF=function(e){var t=new Buffer(5);return t[0]=Hi.CHANNEL_EOF,t.writeUInt32BE(e,1,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_EOF ("+e+")"),Cr(this,t)},_r.prototype.channelClose=function(e){var t=new Buffer(5);return t[0]=Hi.CHANNEL_CLOSE,t.writeUInt32BE(e,1,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_CLOSE ("+e+")"),Cr(this,t)},_r.prototype.channelWindowAdjust=function(e,t){var n=new Buffer(9);return n[0]=Hi.CHANNEL_WINDOW_ADJUST,n.writeUInt32BE(e,1,!0),n.writeUInt32BE(t,5,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_WINDOW_ADJUST ("+e+", "+t+")"),Cr(this,n)},_r.prototype.channelData=function(e,t){var n=Buffer.isBuffer(t),i=n?t.length:Buffer.byteLength(t),r=new Buffer(9+i);return r[0]=Hi.CHANNEL_DATA,r.writeUInt32BE(e,1,!0),r.writeUInt32BE(i,5,!0),n?t.copy(r,9):r.write(t,9,i,"utf8"),this.debug("DEBUG: Outgoing: Writing CHANNEL_DATA ("+e+")"),Cr(this,r)},_r.prototype.channelExtData=function(e,t,n){var i=Buffer.isBuffer(t),r=i?t.length:Buffer.byteLength(t),o=new Buffer(13+r);return o[0]=Hi.CHANNEL_EXTENDED_DATA,o.writeUInt32BE(e,1,!0),o.writeUInt32BE(n,5,!0),o.writeUInt32BE(r,9,!0),i?t.copy(o,13):o.write(t,13,r,"utf8"),this.debug("DEBUG: Outgoing: Writing CHANNEL_EXTENDED_DATA ("+e+")"),Cr(this,o)},_r.prototype.channelOpenConfirm=function(e,t,n,i){var r=new Buffer(17);return r[0]=Hi.CHANNEL_OPEN_CONFIRMATION,r.writeUInt32BE(e,1,!0),r.writeUInt32BE(t,5,!0),r.writeUInt32BE(n,9,!0),r.writeUInt32BE(i,13,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_OPEN_CONFIRMATION (r:"+e+", l:"+t+")"),Cr(this,r)},_r.prototype.channelOpenFail=function(e,t,n,i){"string"!=typeof n&&(n=""),"string"!=typeof i&&(i="");var r=Buffer.byteLength(n),o=Buffer.byteLength(i),a=9,s=new Buffer(13+r+4+o);return s[0]=Hi.CHANNEL_OPEN_FAILURE,s.writeUInt32BE(e,1,!0),s.writeUInt32BE(t,5,!0),s.writeUInt32BE(r,a,!0),a+=4,r&&(s.write(n,a,r,"utf8"),a+=r),s.writeUInt32BE(o,a,!0),o&&s.write(i,a+=4,o,"ascii"),this.debug("DEBUG: Outgoing: Writing CHANNEL_OPEN_FAILURE ("+e+")"),Cr(this,s)},_r.prototype.service=function(e){if(this.server)throw new Error("Client-only method called in server mode");var t=Buffer.byteLength(e),n=new Buffer(5+t);return n[0]=Hi.SERVICE_REQUEST,n.writeUInt32BE(t,1,!0),n.write(e,5,t,"ascii"),this.debug("DEBUG: Outgoing: Writing SERVICE_REQUEST ("+e+")"),Cr(this,n)},_r.prototype.tcpipForward=function(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");var i=Buffer.byteLength(e),r=new Buffer(23+i+4);return r[0]=Hi.GLOBAL_REQUEST,r.writeUInt32BE(13,1,!0),r.write("tcpip-forward",5,13,"ascii"),r[18]=void 0===n||!0===n?1:0,r.writeUInt32BE(i,19,!0),r.write(e,23,i,"ascii"),r.writeUInt32BE(t,23+i,!0),this.debug("DEBUG: Outgoing: Writing GLOBAL_REQUEST (tcpip-forward)"),Cr(this,r)},_r.prototype.cancelTcpipForward=function(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");var i=Buffer.byteLength(e),r=new Buffer(30+i+4);return r[0]=Hi.GLOBAL_REQUEST,r.writeUInt32BE(20,1,!0),r.write("cancel-tcpip-forward",5,20,"ascii"),r[25]=void 0===n||!0===n?1:0,r.writeUInt32BE(i,26,!0),r.write(e,30,i,"ascii"),r.writeUInt32BE(t,30+i,!0),this.debug("DEBUG: Outgoing: Writing GLOBAL_REQUEST (cancel-tcpip-forward)"),Cr(this,r)},_r.prototype.openssh_streamLocalForward=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");var n=Buffer.byteLength(n),i=new Buffer(41+n);return i[0]=Hi.GLOBAL_REQUEST,i.writeUInt32BE(31,1,!0),i.write("streamlocal-forward@openssh.com",5,31,"ascii"),i[36]=void 0===t||!0===t?1:0,i.writeUInt32BE(n,37,!0),i.write(e,41,n,"utf8"),this.debug("DEBUG: Outgoing: Writing GLOBAL_REQUEST (streamlocal-forward@openssh.com)"),Cr(this,i)},_r.prototype.openssh_cancelStreamLocalForward=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");var n=Buffer.byteLength(n),i=new Buffer(48+n);return i[0]=Hi.GLOBAL_REQUEST,i.writeUInt32BE(38,1,!0),i.write("cancel-streamlocal-forward@openssh.com",5,38,"ascii"),i[43]=void 0===t||!0===t?1:0,i.writeUInt32BE(n,44,!0),i.write(e,48,n,"utf8"),this.debug("DEBUG: Outgoing: Writing GLOBAL_REQUEST (cancel-streamlocal-forward@openssh.com)"),Cr(this,i)},_r.prototype.directTcpip=function(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");var r=Buffer.byteLength(i.srcIP),o=Buffer.byteLength(i.dstIP),a=29,s=new Buffer(33+r+4+4+o+4);return s[0]=Hi.CHANNEL_OPEN,s.writeUInt32BE(12,1,!0),s.write("direct-tcpip",5,12,"ascii"),s.writeUInt32BE(e,17,!0),s.writeUInt32BE(t,21,!0),s.writeUInt32BE(n,25,!0),s.writeUInt32BE(o,a,!0),s.write(i.dstIP,a+=4,o,"ascii"),s.writeUInt32BE(i.dstPort,a+=o,!0),s.writeUInt32BE(r,a+=4,!0),s.write(i.srcIP,a+=4,r,"ascii"),s.writeUInt32BE(i.srcPort,a+=r,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_OPEN ("+e+", direct-tcpip)"),Cr(this,s)},_r.prototype.openssh_directStreamLocal=function(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");var r=Buffer.byteLength(i.socketPath),o=47,a=new Buffer(51+r+4);return a[0]=Hi.CHANNEL_OPEN,a.writeUInt32BE(30,1,!0),a.write("direct-streamlocal@openssh.com",5,30,"ascii"),a.writeUInt32BE(e,35,!0),a.writeUInt32BE(t,39,!0),a.writeUInt32BE(n,43,!0),a.writeUInt32BE(r,o,!0),a.write(i.socketPath,o+=4,r,"utf8"),this.debug("DEBUG: Outgoing: Writing CHANNEL_OPEN ("+e+", direct-streamlocal@openssh.com)"),Cr(this,a)},_r.prototype.openssh_noMoreSessions=function(e){if(this.server)throw new Error("Client-only method called in server mode");var t=new Buffer(34);return t[0]=Hi.GLOBAL_REQUEST,t.writeUInt32BE(28,1,!0),t.write("no-more-sessions@openssh.com",5,28,"ascii"),t[33]=void 0===e||!0===e?1:0,this.debug("DEBUG: Outgoing: Writing GLOBAL_REQUEST (no-more-sessions@openssh.com)"),Cr(this,t)},_r.prototype.session=function(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");var i=new Buffer(24);return i[0]=Hi.CHANNEL_OPEN,i.writeUInt32BE(7,1,!0),i.write("session",5,7,"ascii"),i.writeUInt32BE(e,12,!0),i.writeUInt32BE(t,16,!0),i.writeUInt32BE(n,20,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_OPEN ("+e+", session)"),Cr(this,i)},_r.prototype.windowChange=function(e,t,n,i,r){if(this.server)throw new Error("Client-only method called in server mode");var o=new Buffer(39);return o[0]=Hi.CHANNEL_REQUEST,o.writeUInt32BE(e,1,!0),o.writeUInt32BE(13,5,!0),o.write("window-change",9,13,"ascii"),o[22]=0,o.writeUInt32BE(n,23,!0),o.writeUInt32BE(t,27,!0),o.writeUInt32BE(r,31,!0),o.writeUInt32BE(i,35,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_REQUEST ("+e+", window-change)"),Cr(this,o)},_r.prototype.pty=function(e,t,n,i,r,o,a,s){if(this.server)throw new Error("Client-only method called in server mode");o&&o.length||(o="vt100"),!a||Buffer.isBuffer(a)||Array.isArray(a)||"object"!=typeof a||(a=function(e){for(var t,n,i,r=/^\d+$/,o=Object.keys(e),a=0,s=[],c=0,u=o.length;c<u;++c)t=o[c],(n=zi[t])&&!r.test(t)&&"number"==typeof e[t]&&"TTY_OP_END"!==t&&(i=e[t],s[a++]=n,s[a++]=i>>>24&255,s[a++]=i>>>16&255,s[a++]=i>>>8&255,s[a++]=255&i);return s[a]=zi.TTY_OP_END,s}(a)),a&&a.length||(a=br);var c=o.length,u=a.length,p=21,l=new Buffer(21+c+4+4+4+4+4+u);if(l[0]=Hi.CHANNEL_REQUEST,l.writeUInt32BE(e,1,!0),l.writeUInt32BE(7,5,!0),l.write("pty-req",9,7,"ascii"),l[16]=void 0===s||!0===s?1:0,l.writeUInt32BE(c,17,!0),l.write(o,21,c,"utf8"),l.writeUInt32BE(n,p+=c,!0),l.writeUInt32BE(t,p+=4,!0),l.writeUInt32BE(r,p+=4,!0),l.writeUInt32BE(i,p+=4,!0),l.writeUInt32BE(u,p+=4,!0),p+=4,Array.isArray(a))for(var f=0;f<u;++f)l[p++]=a[f];else Buffer.isBuffer(a)?a.copy(l,p):"string"==typeof a&&l.write(a,p+=4,u,"binary");return this.debug("DEBUG: Outgoing: Writing CHANNEL_REQUEST ("+e+", pty-req)"),Cr(this,l)},_r.prototype.shell=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");var n=new Buffer(15);return n[0]=Hi.CHANNEL_REQUEST,n.writeUInt32BE(e,1,!0),n.writeUInt32BE(5,5,!0),n.write("shell",9,5,"ascii"),n[14]=void 0===t||!0===t?1:0,this.debug("DEBUG: Outgoing: Writing CHANNEL_REQUEST ("+e+", shell)"),Cr(this,n)},_r.prototype.exec=function(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");var i=Buffer.isBuffer(t)?t.length:Buffer.byteLength(t),r=new Buffer(18+i);return r[0]=Hi.CHANNEL_REQUEST,r.writeUInt32BE(e,1,!0),r.writeUInt32BE(4,5,!0),r.write("exec",9,4,"ascii"),r[13]=void 0===n||!0===n?1:0,r.writeUInt32BE(i,14,!0),Buffer.isBuffer(t)?t.copy(r,18):r.write(t,18,i,"utf8"),this.debug("DEBUG: Outgoing: Writing CHANNEL_REQUEST ("+e+", exec)"),Cr(this,r)},_r.prototype.signal=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");if("SIG"===(t=t.toUpperCase()).slice(0,3)&&(t=t.substring(3)),-1===$i.indexOf(t))throw new Error("Invalid signal: "+t);var n=t.length,i=new Buffer(20+n);return i[0]=Hi.CHANNEL_REQUEST,i.writeUInt32BE(e,1,!0),i.writeUInt32BE(6,5,!0),i.write("signal",9,6,"ascii"),i[15]=0,i.writeUInt32BE(n,16,!0),i.write(t,20,n,"ascii"),this.debug("DEBUG: Outgoing: Writing CHANNEL_REQUEST ("+e+", signal)"),Cr(this,i)},_r.prototype.env=function(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");var r=Buffer.byteLength(t),o=Buffer.isBuffer(n)?n.length:Buffer.byteLength(n),a=new Buffer(17+r+4+o);return a[0]=Hi.CHANNEL_REQUEST,a.writeUInt32BE(e,1,!0),a.writeUInt32BE(3,5,!0),a.write("env",9,3,"ascii"),a[12]=void 0===i||!0===i?1:0,a.writeUInt32BE(r,13,!0),a.write(t,17,r,"ascii"),a.writeUInt32BE(o,17+r,!0),Buffer.isBuffer(n)?n.copy(a,17+r+4):a.write(n,17+r+4,o,"utf8"),this.debug("DEBUG: Outgoing: Writing CHANNEL_REQUEST ("+e+", env)"),Cr(this,a)},_r.prototype.x11Forward=function(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");var i=Buffer.byteLength(t.protocol),r=Buffer.byteLength(t.cookie),o=new Buffer(22+i+4+r+4);o[0]=Hi.CHANNEL_REQUEST,o.writeUInt32BE(e,1,!0),o.writeUInt32BE(7,5,!0),o.write("x11-req",9,7,"ascii"),o[16]=void 0===n||!0===n?1:0,o[17]=t.single?1:0,o.writeUInt32BE(i,18,!0);var a=22;return Buffer.isBuffer(t.protocol)?t.protocol.copy(o,a):o.write(t.protocol,a,i,"utf8"),a+=i,o.writeUInt32BE(r,a,!0),a+=4,Buffer.isBuffer(t.cookie)?t.cookie.copy(o,a):o.write(t.cookie,a,r,"utf8"),a+=r,o.writeUInt32BE(t.screen||0,a,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_REQUEST ("+e+", x11-req)"),Cr(this,o)},_r.prototype.subsystem=function(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");var i=Buffer.byteLength(t),r=new Buffer(23+i);return r[0]=Hi.CHANNEL_REQUEST,r.writeUInt32BE(e,1,!0),r.writeUInt32BE(9,5,!0),r.write("subsystem",9,9,"ascii"),r[18]=void 0===n||!0===n?1:0,r.writeUInt32BE(i,19,!0),r.write(t,23,i,"ascii"),this.debug("DEBUG: Outgoing: Writing CHANNEL_REQUEST ("+e+", subsystem: "+t+")"),Cr(this,r)},_r.prototype.openssh_agentForward=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");var n=new Buffer(36);return n[0]=Hi.CHANNEL_REQUEST,n.writeUInt32BE(e,1,!0),n.writeUInt32BE(26,5,!0),n.write("auth-agent-req@openssh.com",9,26,"ascii"),n[35]=void 0===t||!0===t?1:0,this.debug("DEBUG: Outgoing: Writing CHANNEL_REQUEST ("+e+", auth-agent-req@openssh.com)"),Cr(this,n)},_r.prototype.authPassword=function(e,t){if(this.server)throw new Error("Client-only method called in server mode");var n=Buffer.byteLength(e),i=Buffer.byteLength(t),r=0,o=new Buffer(5+n+4+14+4+8+1+4+i);return o[r]=Hi.USERAUTH_REQUEST,o.writeUInt32BE(n,++r,!0),o.write(e,r+=4,n,"utf8"),o.writeUInt32BE(14,r+=n,!0),o.write("ssh-connection",r+=4,14,"ascii"),o.writeUInt32BE(8,r+=14,!0),o.write("password",r+=4,8,"ascii"),o[r+=8]=0,o.writeUInt32BE(i,++r,!0),o.write(t,r+=4,i,"utf8"),this._state.authMethod="password",this.debug("DEBUG: Outgoing: Writing USERAUTH_REQUEST (password)"),Cr(this,o)},_r.prototype.authPK=function(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");var i,r=this,o=this._state.outgoing;this._state.authMethod="publickey",t.public?(i=t.fulltype,t.type,t=t.public):(i=t.toString("ascii",4,4+t.readUInt32BE(0,!0))).substring(4,7);var a=Buffer.byteLength(e),s=Buffer.byteLength(i),c=t.length,u=o.sessionId.length,p=0,l=new Buffer((n?4+u:0)+1+4+a+4+14+4+9+1+4+s+4+c);return n?(l.writeUInt32BE(u,p,!0),o.sessionId.copy(l,p+=4),l[p+=u]=Hi.USERAUTH_REQUEST):l[p]=Hi.USERAUTH_REQUEST,l.writeUInt32BE(a,++p,!0),l.write(e,p+=4,a,"utf8"),l.writeUInt32BE(14,p+=a,!0),l.write("ssh-connection",p+=4,14,"ascii"),l.writeUInt32BE(9,p+=14,!0),l.write("publickey",p+=4,9,"ascii"),l[p+=9]=n?1:0,l.writeUInt32BE(s,++p,!0),l.write(i,p+=4,s,"ascii"),l.writeUInt32BE(c,p+=s,!0),t.copy(l,p+=4),n?(n(l,(function(n){var o=n.length,u=new Buffer(5+a+4+14+4+9+1+4+s+4+c+4+4+7+4+o);return u[p=0]=Hi.USERAUTH_REQUEST,u.writeUInt32BE(a,++p,!0),u.write(e,p+=4,a,"utf8"),u.writeUInt32BE(14,p+=a,!0),u.write("ssh-connection",p+=4,14,"ascii"),u.writeUInt32BE(9,p+=14,!0),u.write("publickey",p+=4,9,"ascii"),u[p+=9]=1,u.writeUInt32BE(s,++p,!0),u.write(i,p+=4,s,"ascii"),u.writeUInt32BE(c,p+=s,!0),t.copy(u,p+=4),u.writeUInt32BE(15+o,p+=c,!0),u.writeUInt32BE(7,p+=4,!0),u.write(i,p+=4,7,"ascii"),u.writeUInt32BE(o,p+=7,!0),n.copy(u,p+=4),r.debug("DEBUG: Outgoing: Writing USERAUTH_REQUEST (publickey)"),Cr(r,u)})),!0):(this.debug("DEBUG: Outgoing: Writing USERAUTH_REQUEST (publickey -- check)"),Cr(this,l))},_r.prototype.authHostbased=function(e,t,n,i,r){if(this.server)throw new Error("Client-only method called in server mode");var o,a=this,s=this._state.outgoing;t.public?(o=t.fulltype,t.type,t=t.public):(o=t.toString("ascii",4,4+t.readUInt32BE(0,!0))).substring(4,7);var c=Buffer.byteLength(e),u=Buffer.byteLength(o),p=t.length,l=s.sessionId.length,f=Buffer.byteLength(n),h=Buffer.byteLength(i),d=0,m=new Buffer(4+l+1+4+c+4+14+4+9+4+u+4+p+4+f+4+h);return m.writeUInt32BE(l,d,!0),s.sessionId.copy(m,d+=4),m[d+=l]=Hi.USERAUTH_REQUEST,m.writeUInt32BE(c,++d,!0),m.write(e,d+=4,c,"utf8"),m.writeUInt32BE(14,d+=c,!0),m.write("ssh-connection",d+=4,14,"ascii"),m.writeUInt32BE(9,d+=14,!0),m.write("hostbased",d+=4,9,"ascii"),m.writeUInt32BE(u,d+=9,!0),m.write(o,d+=4,u,"ascii"),m.writeUInt32BE(p,d+=u,!0),t.copy(m,d+=4),m.writeUInt32BE(f,d+=p,!0),m.write(n,d+=4,f,"ascii"),m.writeUInt32BE(h,d+=f,!0),m.write(i,d+=4,h,"utf8"),r(m,(function(e){var t=e.length,n=new Buffer(m.length-l+t);return m.copy(n,0,4+l),n.writeUInt32BE(t,n.length-t-4,!0),e.copy(n,n.length-t),a._state.authMethod="hostbased",a.debug("DEBUG: Outgoing: Writing USERAUTH_REQUEST (hostbased)"),Cr(a,n)})),!0},_r.prototype.authKeyboard=function(e){if(this.server)throw new Error("Client-only method called in server mode");var t=Buffer.byteLength(e),n=0,i=new Buffer(5+t+4+14+4+20+4+4);return i[n]=Hi.USERAUTH_REQUEST,i.writeUInt32BE(t,++n,!0),i.write(e,n+=4,t,"utf8"),i.writeUInt32BE(14,n+=t,!0),i.write("ssh-connection",n+=4,14,"ascii"),i.writeUInt32BE(20,n+=14,!0),i.write("keyboard-interactive",n+=4,20,"ascii"),i.writeUInt32BE(0,n+=20,!0),i.writeUInt32BE(0,n+=4,!0),this._state.authMethod="keyboard-interactive",this.debug("DEBUG: Outgoing: Writing USERAUTH_REQUEST (keyboard-interactive)"),Cr(this,i)},_r.prototype.authNone=function(e){if(this.server)throw new Error("Client-only method called in server mode");var t=Buffer.byteLength(e),n=0,i=new Buffer(5+t+4+14+4+4);return i[n]=Hi.USERAUTH_REQUEST,i.writeUInt32BE(t,++n,!0),i.write(e,n+=4,t,"utf8"),i.writeUInt32BE(14,n+=t,!0),i.write("ssh-connection",n+=4,14,"ascii"),i.writeUInt32BE(4,n+=14,!0),i.write("none",n+=4,4,"ascii"),this._state.authMethod="none",this.debug("DEBUG: Outgoing: Writing USERAUTH_REQUEST (none)"),Cr(this,i)},_r.prototype.authInfoRes=function(e){if(this.server)throw new Error("Client-only method called in server mode");var t,n,i,r=0,o=0;if(e)for(i=0,n=e.length;i<n;++i)r+=4+Buffer.byteLength(e[i]);var a=new Buffer(5+r);if(a[o++]=Hi.USERAUTH_INFO_RESPONSE,a.writeUInt32BE(e?e.length:0,o,!0),e)for(o+=4,i=0,n=e.length;i<n;++i)t=Buffer.byteLength(e[i]),a.writeUInt32BE(t,o,!0),o+=4,t&&(a.write(e[i],o,t,"utf8"),o+=t);return this.debug("DEBUG: Outgoing: Writing USERAUTH_INFO_RESPONSE"),Cr(this,a)},_r.prototype.serviceAccept=function(e){if(!this.server)throw new Error("Server-only method called in client mode");var t=e.length,n=new Buffer(5+t);return n[0]=Hi.SERVICE_ACCEPT,n.writeUInt32BE(t,1,!0),n.write(e,5,t,"ascii"),this.debug("DEBUG: Outgoing: Writing SERVICE_ACCEPT ("+e+")"),Cr(this,n)},_r.prototype.forwardedTcpip=function(e,t,n,i){if(!this.server)throw new Error("Server-only method called in client mode");var r=Buffer.byteLength(i.boundAddr),o=Buffer.byteLength(i.remoteAddr),a=36+r,s=new Buffer(36+r+4+4+o+4);return s[0]=Hi.CHANNEL_OPEN,s.writeUInt32BE(15,1,!0),s.write("forwarded-tcpip",5,15,"ascii"),s.writeUInt32BE(e,20,!0),s.writeUInt32BE(t,24,!0),s.writeUInt32BE(n,28,!0),s.writeUInt32BE(r,32,!0),s.write(i.boundAddr,36,r,"ascii"),s.writeUInt32BE(i.boundPort,a,!0),s.writeUInt32BE(o,a+=4,!0),s.write(i.remoteAddr,a+=4,o,"ascii"),s.writeUInt32BE(i.remotePort,a+=o,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_OPEN ("+e+", forwarded-tcpip)"),Cr(this,s)},_r.prototype.x11=function(e,t,n,i){if(!this.server)throw new Error("Server-only method called in client mode");var r=Buffer.byteLength(i.originAddr),o=24+r,a=new Buffer(24+r+4);return a[0]=Hi.CHANNEL_OPEN,a.writeUInt32BE(3,1,!0),a.write("x11",5,3,"ascii"),a.writeUInt32BE(e,8,!0),a.writeUInt32BE(t,12,!0),a.writeUInt32BE(n,16,!0),a.writeUInt32BE(r,20,!0),a.write(i.originAddr,24,r,"ascii"),a.writeUInt32BE(i.originPort,o,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_OPEN ("+e+", x11)"),Cr(this,a)},_r.prototype.openssh_forwardedStreamLocal=function(e,t,n,i){if(!this.server)throw new Error("Server-only method called in client mode");var r=Buffer.byteLength(i.socketPath),o=new Buffer(54+r+4);return o[0]=Hi.CHANNEL_OPEN,o.writeUInt32BE(33,1,!0),o.write("forwarded-streamlocal@openssh.com",5,33,"ascii"),o.writeUInt32BE(e,38,!0),o.writeUInt32BE(t,42,!0),o.writeUInt32BE(n,46,!0),o.writeUInt32BE(r,50,!0),o.write(i.socketPath,54,r,"utf8"),o.writeUInt32BE(0,54+r,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_OPEN ("+e+", forwarded-streamlocal@openssh.com)"),Cr(this,o)},_r.prototype.exitStatus=function(e,t){if(!this.server)throw new Error("Server-only method called in client mode");var n=new Buffer(25);return n[0]=Hi.CHANNEL_REQUEST,n.writeUInt32BE(e,1,!0),n.writeUInt32BE(11,5,!0),n.write("exit-status",9,11,"ascii"),n[20]=0,n.writeUInt32BE(t,21,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_REQUEST ("+e+", exit-status)"),Cr(this,n)},_r.prototype.exitSignal=function(e,t,n,i){if(!this.server)throw new Error("Server-only method called in client mode");var r=Buffer.byteLength(t),o=i?Buffer.byteLength(i):0,a=25+r,s=new Buffer(25+r+1+4+o+4);return s[0]=Hi.CHANNEL_REQUEST,s.writeUInt32BE(e,1,!0),s.writeUInt32BE(11,5,!0),s.write("exit-signal",9,11,"ascii"),s[20]=0,s.writeUInt32BE(r,21,!0),s.write(t,25,r,"utf8"),s[a++]=n?1:0,s.writeUInt32BE(o,a,!0),a+=4,o&&(s.write(i,a,o,"utf8"),a+=o),s.writeUInt32BE(0,a,!0),this.debug("DEBUG: Outgoing: Writing CHANNEL_REQUEST ("+e+", exit-signal)"),Cr(this,s)},_r.prototype.authFailure=function(e,t){if(!this.server)throw new Error("Server-only method called in client mode");var n;if("boolean"==typeof e&&(t=e,e=void 0),e){n=[];for(var i=0,r=e.length;i<r;++i)"none"!==e[i].toLowerCase()&&n.push(e[i]);n=n.join(",")}else n="";var o=n.length,a=new Buffer(5+o+1);return a[0]=Hi.USERAUTH_FAILURE,a.writeUInt32BE(o,1,!0),a.write(n,5,o,"ascii"),a[5+o]=!0===t?1:0,this.debug("DEBUG: Outgoing: Writing USERAUTH_FAILURE"),Cr(this,a)},_r.prototype.authSuccess=function(){if(!this.server)throw new Error("Server-only method called in client mode");return this.debug("DEBUG: Outgoing: Writing USERAUTH_SUCCESS"),Cr(this,mr)},_r.prototype.authPKOK=function(e,t){if(!this.server)throw new Error("Server-only method called in client mode");var n=e.length,i=t.length,r=new Buffer(5+n+4+i);return r[0]=Hi.USERAUTH_PK_OK,r.writeUInt32BE(n,1,!0),r.write(e,5,n,"ascii"),r.writeUInt32BE(i,5+n,!0),t.copy(r,5+n+4),this.debug("DEBUG: Outgoing: Writing USERAUTH_PK_OK"),Cr(this,r)},_r.prototype.authPasswdChg=function(e,t){if(!this.server)throw new Error("Server-only method called in client mode");var n=Buffer.byteLength(e),i=t?t.length:0,r=0,o=new Buffer(5+n+4+i);return o[r]=Hi.USERAUTH_PASSWD_CHANGEREQ,o.writeUInt32BE(n,++r,!0),o.write(e,r+=4,n,"utf8"),o.writeUInt32BE(i,r+=n,!0),i&&o.write(t,r+=4,i,"ascii"),this.debug("DEBUG: Outgoing: Writing USERAUTH_PASSWD_CHANGEREQ"),Cr(this,o)},_r.prototype.authInfoReq=function(e,t,n){if(!this.server)throw new Error("Server-only method called in client mode");var i,r,o,a,s=0,c=e?Buffer.byteLength(e):0,u=t?Buffer.byteLength(t):0,p=0;for(a=0,o=n.length;a<o;++a)s+=4+Buffer.byteLength(n[a].prompt)+1;var l=new Buffer(5+c+4+u+4+4+s);for(l[p++]=Hi.USERAUTH_INFO_REQUEST,l.writeUInt32BE(c,p,!0),p+=4,e&&(l.write(e,p,c,"utf8"),p+=c),l.writeUInt32BE(u,p,!0),p+=4,t&&(l.write(t,p,u,"utf8"),p+=u),l.writeUInt32BE(0,p,!0),p+=4,l.writeUInt32BE(n.length,p,!0),p+=4,a=0,o=n.length;a<o;++a)r=n[a],i=Buffer.byteLength(r.prompt),l.writeUInt32BE(i,p,!0),p+=4,i&&(l.write(r.prompt,p,i,"utf8"),p+=i),l[p++]=r.echo?1:0;return this.debug("DEBUG: Outgoing: Writing USERAUTH_INFO_REQUEST"),Cr(this,l)};var Ir,Or,Ur={SFTPStream:vi,SSH2Stream:_r,utils:Tn(),constants:an},Nr={exports:{}};var Lr,Dr={};function Pr(){if(Lr)return Dr;function e(e){return Object.prototype.toString.call(e)}return Lr=1,Dr.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},Dr.isBoolean=function(e){return"boolean"==typeof e},Dr.isNull=function(e){return null===e},Dr.isNullOrUndefined=function(e){return null==e},Dr.isNumber=function(e){return"number"==typeof e},Dr.isString=function(e){return"string"==typeof e},Dr.isSymbol=function(e){return"symbol"==typeof e},Dr.isUndefined=function(e){return void 0===e},Dr.isRegExp=function(t){return"[object RegExp]"===e(t)},Dr.isObject=function(e){return"object"==typeof e&&null!==e},Dr.isDate=function(t){return"[object Date]"===e(t)},Dr.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},Dr.isFunction=function(e){return"function"==typeof e},Dr.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},Dr.isBuffer=l.Buffer.isBuffer,Dr}var jr,Hr,Mr,Fr,Gr,qr,zr,$r,Kr,Wr,Xr,Vr,Qr={};function Yr(){if(jr)return Qr;jr=1;var e=l.Buffer,t=e.isEncoding||function(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!0;default:return!1}};var n=Qr.StringDecoder=function(n){switch(this.encoding=(n||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!t(e))throw new Error("Unknown encoding: "+e)}(n),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=r;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=o;break;default:return void(this.write=i)}this.charBuffer=new e(6),this.charReceived=0,this.charLength=0};function i(e){return e.toString(this.encoding)}function r(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function o(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}return n.prototype.write=function(e){for(var t="";this.charLength;){var n=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";if(e=e.slice(n,e.length),!((r=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var i=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,i),i-=this.charReceived);var r;i=(t+=e.toString(this.encoding,0,i)).length-1;if((r=t.charCodeAt(i))>=55296&&r<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,i)}return t},n.prototype.detectIncompleteChar=function(e){for(var t=e.length>=3?3:e.length;t>0;t--){var n=e[e.length-t];if(1==t&&n>>5==6){this.charLength=2;break}if(t<=2&&n>>4==14){this.charLength=3;break}if(t<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=t},n.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var n=this.charReceived,i=this.charBuffer,r=this.encoding;t+=i.slice(0,n).toString(r)}return t},Qr}function Zr(){if(Mr)return Hr;Mr=1,Hr=c;var e=Or?Ir:(Or=1,Ir=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}),t=l.Buffer;c.ReadableState=s;var i=n.EventEmitter;i.listenerCount||(i.listenerCount=function(e,t){return e.listeners(t).length});var r,o=u,a=Pr();function s(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=!1,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.calledRead=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(r||(r=Yr().StringDecoder),this.decoder=new r(e.encoding),this.encoding=e.encoding)}function c(e){if(!(this instanceof c))return new c(e);this._readableState=new s(e),this.readable=!0,o.call(this)}function p(e,n,i,r,o){var a=function(e,n){var i=null;t.isBuffer(n)||"string"==typeof n||null==n||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk"));return i}(n,i);if(a)e.emit("error",a);else if(null==i)n.reading=!1,n.ended||function(e,t){if(t.decoder&&!t.ended){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.length>0?d(e):x(e)}(e,n);else if(n.objectMode||i&&i.length>0)if(n.ended&&!o){var s=new Error("stream.push() after EOF");e.emit("error",s)}else if(n.endEmitted&&o){s=new Error("stream.unshift() after end event");e.emit("error",s)}else!n.decoder||o||r||(i=n.decoder.write(i)),n.length+=n.objectMode?1:i.length,o?n.buffer.unshift(i):(n.reading=!1,n.buffer.push(i)),n.needReadable&&d(e),function(e,t){t.readingMore||(t.readingMore=!0,process.nextTick((function(){!function(e,t){var n=t.length;for(;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}(e,t)})))}(e,n);else o||(n.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(n)}a.inherits=Te,a.inherits(c,o),c.prototype.push=function(e,n){var i=this._readableState;return"string"!=typeof e||i.objectMode||(n=n||i.defaultEncoding)!==i.encoding&&(e=new t(e,n),n=""),p(this,i,e,n,!1)},c.prototype.unshift=function(e){return p(this,this._readableState,e,"",!0)},c.prototype.setEncoding=function(e){r||(r=Yr().StringDecoder),this._readableState.decoder=new r(e),this._readableState.encoding=e};var f=8388608;function h(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){if(e>=f)e=f;else{e--;for(var t=1;t<32;t<<=1)e|=e>>t;e++}return e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function d(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,t.sync?process.nextTick((function(){m(e)})):m(e))}function m(e){e.emit("readable")}function v(e){var t,n=e._readableState;function r(e,i,r){!1===e.write(t)&&n.awaitDrain++}for(n.awaitDrain=0;n.pipesCount&&null!==(t=e.read());)if(1===n.pipesCount?r(n.pipes):_(n.pipes,r),e.emit("data",t),n.awaitDrain>0)return;if(0===n.pipesCount)return n.flowing=!1,void(i.listenerCount(e,"data")>0&&b(e));n.ranOut=!0}function g(){this._readableState.ranOut&&(this._readableState.ranOut=!1,v(this))}function b(e,t){if(e._readableState.flowing)throw new Error("Cannot switch to old mode now.");var n=t||!1,i=!1;e.readable=!0,e.pipe=o.prototype.pipe,e.on=e.addListener=o.prototype.on,e.on("readable",(function(){var t;for(i=!0;!n&&null!==(t=e.read());)e.emit("data",t);null===t&&(i=!1,e._readableState.needReadable=!0)})),e.pause=function(){n=!0,this.emit("pause")},e.resume=function(){n=!1,i?process.nextTick((function(){e.emit("readable")})):this.read(0),this.emit("resume")},e.emit("readable")}function y(e,n){var i,r=n.buffer,o=n.length,a=!!n.decoder,s=!!n.objectMode;if(0===r.length)return null;if(0===o)i=null;else if(s)i=r.shift();else if(!e||e>=o)i=a?r.join(""):t.concat(r,o),r.length=0;else{if(e<r[0].length)i=(l=r[0]).slice(0,e),r[0]=l.slice(e);else if(e===r[0].length)i=r.shift();else{i=a?"":new t(e);for(var c=0,u=0,p=r.length;u<p&&c<e;u++){var l=r[0],f=Math.min(e-c,l.length);a?i+=l.slice(0,f):l.copy(i,c,0,f),f<l.length?r[0]=l.slice(f):r.shift(),c+=f}}}return i}function x(e){var t=e._readableState;if(t.length>0)throw new Error("endReadable called on non-empty stream");!t.endEmitted&&t.calledRead&&(t.ended=!0,process.nextTick((function(){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))})))}function _(e,t){for(var n=0,i=e.length;n<i;n++)t(e[n],n)}return c.prototype.read=function(e){var t=this._readableState;t.calledRead=!0;var n,i=e;if(("number"!=typeof e||e>0)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d(this),null;if(0===(e=h(e,t))&&t.ended)return n=null,t.length>0&&t.decoder&&(n=y(e,t),t.length-=n.length),0===t.length&&x(this),n;var r=t.needReadable;return t.length-e<=t.highWaterMark&&(r=!0),(t.ended||t.reading)&&(r=!1),r&&(t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),r&&!t.reading&&(e=h(i,t)),null===(n=e>0?y(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),t.ended&&!t.endEmitted&&0===t.length&&x(this),n},c.prototype._read=function(e){this.emit("error",new Error("not implemented"))},c.prototype.pipe=function(t,n){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1;var a=(!n||!1!==n.end)&&t!==process.stdout&&t!==process.stderr?c:p;function s(e){e===r&&p()}function c(){t.end()}o.endEmitted?process.nextTick(a):r.once("end",a),t.on("unpipe",s);var u=function(e){return function(){var t=e._readableState;t.awaitDrain--,0===t.awaitDrain&&v(e)}}(r);function p(){t.removeListener("close",f),t.removeListener("finish",h),t.removeListener("drain",u),t.removeListener("error",l),t.removeListener("unpipe",s),r.removeListener("end",c),r.removeListener("end",p),t._writableState&&!t._writableState.needDrain||u()}function l(e){d(),t.removeListener("error",l),0===i.listenerCount(t,"error")&&t.emit("error",e)}function f(){t.removeListener("finish",h),d()}function h(){t.removeListener("close",f),d()}function d(){r.unpipe(t)}return t.on("drain",u),t._events&&t._events.error?e(t._events.error)?t._events.error.unshift(l):t._events.error=[l,t._events.error]:t.on("error",l),t.once("close",f),t.once("finish",h),t.emit("pipe",r),o.flowing||(this.on("readable",g),o.flowing=!0,process.nextTick((function(){v(r)}))),t},c.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,this.removeListener("readable",g),t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,this.removeListener("readable",g),t.flowing=!1;for(var r=0;r<i;r++)n[r].emit("unpipe",this);return this}return-1===(r=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}(t.pipes,e))||(t.pipes.splice(r,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},c.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t);if("data"!==e||this._readableState.flowing||b(this),"readable"===e&&this.readable){var i=this._readableState;i.readableListening||(i.readableListening=!0,i.emittedReadable=!1,i.needReadable=!0,i.reading?i.length&&d(this):this.read(0))}return n},c.prototype.addListener=c.prototype.on,c.prototype.resume=function(){b(this),this.read(0),this.emit("resume")},c.prototype.pause=function(){b(this,!0),this.emit("pause")},c.prototype.wrap=function(e){var t=this._readableState,n=!1,i=this;for(var r in e.on("end",(function(){if(t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&i.push(e)}i.push(null)})),e.on("data",(function(r){(t.decoder&&(r=t.decoder.write(r)),t.objectMode&&null==r)||(t.objectMode||r&&r.length)&&(i.push(r)||(n=!0,e.pause()))})),e)"function"==typeof e[r]&&void 0===this[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));return _(["error","close","destroy","pause","resume"],(function(t){e.on(t,i.emit.bind(i,t))})),i._read=function(t){n&&(n=!1,e.resume())},i},c._fromList=y,Hr}function Jr(){if(Gr)return Fr;Gr=1,Fr=r;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t},t=Pr();t.inherits=Te;var n=Zr(),i=eo();function r(e){if(!(this instanceof r))return new r(e);n.call(this,e),i.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",o)}function o(){this.allowHalfOpen||this._writableState.ended||process.nextTick(this.end.bind(this))}return t.inherits(r,n),function(e,t){for(var n=0,i=e.length;n<i;n++)t(e[n],n)}(e(i.prototype),(function(e){r.prototype[e]||(r.prototype[e]=i.prototype[e])})),Fr}function eo(){if(zr)return qr;zr=1,qr=o;var e=l.Buffer;o.WritableState=r;var t=Pr();t.inherits=Te;var n=u;function i(e,t,n){this.chunk=e,this.encoding=t,this.callback=n}function r(e,t){var n=(e=e||{}).highWaterMark;this.highWaterMark=n||0===n?n:16384,this.objectMode=!!e.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=!1===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,r=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,r){n?process.nextTick((function(){r(i)})):r(i);e._writableState.errorEmitted=!0,e.emit("error",i)}(e,0,i,t,r);else{var o=c(e,n);o||n.bufferProcessing||!n.buffer.length||function(e,t){t.bufferProcessing=!0;for(var n=0;n<t.buffer.length;n++){var i=t.buffer[n],r=i.chunk,o=i.encoding,s=i.callback;if(a(e,t,t.objectMode?1:r.length,r,o,s),t.writing){n++;break}}t.bufferProcessing=!1,n<t.buffer.length?t.buffer=t.buffer.slice(n):t.buffer.length=0}(e,n),i?process.nextTick((function(){s(e,n,o,r)})):s(e,n,o,r)}}(t,e)},this.writecb=null,this.writelen=0,this.buffer=[],this.errorEmitted=!1}function o(e){var t=Jr();if(!(this instanceof o||this instanceof t))return new o(e);this._writableState=new r(e,this),this.writable=!0,n.call(this)}function a(e,t,n,i,r,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,e._write(i,r,t.onwrite),t.sync=!1}function s(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),i(),n&&p(e,t)}function c(e,t){return t.ending&&0===t.length&&!t.finished&&!t.writing}function p(e,t){var n=c(0,t);return n&&(t.finished=!0,e.emit("finish")),n}return t.inherits(o,n),o.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},o.prototype.write=function(t,n,r){var o=this._writableState,s=!1;return"function"==typeof n&&(r=n,n=null),e.isBuffer(t)?n="buffer":n||(n=o.defaultEncoding),"function"!=typeof r&&(r=function(){}),o.ended?function(e,t,n){var i=new Error("write after end");e.emit("error",i),process.nextTick((function(){n(i)}))}(this,0,r):function(t,n,i,r){var o=!0;if(!e.isBuffer(i)&&"string"!=typeof i&&null!=i&&!n.objectMode){var a=new TypeError("Invalid non-string/buffer chunk");t.emit("error",a),process.nextTick((function(){r(a)})),o=!1}return o}(this,o,t,r)&&(s=function(t,n,r,o,s){r=function(t,n,i){t.objectMode||!1===t.decodeStrings||"string"!=typeof n||(n=new e(n,i));return n}(n,r,o),e.isBuffer(r)&&(o="buffer");var c=n.objectMode?1:r.length;n.length+=c;var u=n.length<n.highWaterMark;u||(n.needDrain=!0);n.writing?n.buffer.push(new i(r,o,s)):a(t,n,c,r,o,s);return u}(this,o,t,n,r)),s},o.prototype._write=function(e,t,n){n(new Error("not implemented"))},o.prototype.end=function(e,t,n){var i=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.ending||i.finished||function(e,t,n){t.ending=!0,p(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n));t.ended=!0}(this,i,n)},qr}function to(){if(Kr)return $r;Kr=1,$r=i;var e=Jr(),t=Pr();function n(e,t){this.afterTransform=function(e,n){return function(e,t,n){var i=e._transformState;i.transforming=!1;var r=i.writecb;if(!r)return e.emit("error",new Error("no writecb in Transform class"));i.writechunk=null,i.writecb=null,null!=n&&e.push(n);r&&r(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function i(t){if(!(this instanceof i))return new i(t);e.call(this,t),this._transformState=new n(t,this);var o=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",(function(){"function"==typeof this._flush?this._flush((function(e){r(o,e)})):r(o)}))}function r(e,t){if(t)return e.emit("error",t);var n=e._writableState;e._readableState;var i=e._transformState;if(n.length)throw new Error("calling transform done when ws.length != 0");if(i.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}return t.inherits=Te,t.inherits(i,e),i.prototype.push=function(t,n){return this._transformState.needTransform=!1,e.prototype.push.call(this,t,n)},i.prototype._transform=function(e,t,n){throw new Error("not implemented")},i.prototype._write=function(e,t,n){var i=this._transformState;if(i.writecb=n,i.writechunk=e,i.writeencoding=t,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},i.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},$r}function no(){return Vr||(Vr=1,function(e,t){var n=u;(t=e.exports=Zr()).Stream=n,t.Readable=t,t.Writable=eo(),t.Duplex=Jr(),t.Transform=to(),t.PassThrough=function(){if(Xr)return Wr;Xr=1,Wr=n;var e=to(),t=Pr();function n(t){if(!(this instanceof n))return new n(t);e.call(this,t)}return t.inherits=Te,t.inherits(n,e),n.prototype._transform=function(e,t,n){n(null,e)},Wr}(),process.browser||"disable"!==process.env.READABLE_STREAM||(e.exports=u)}(Nr,Nr.exports)),Nr.exports}var io=r.inherits,ro=u.Duplex||no().Duplex,oo=u.Readable||no().Readable,ao=u.Writable||no().Writable,so=Ur.constants.CHANNEL_EXTENDED_DATATYPE.STDERR,co=1048576,uo=["CHANNEL_EOF","CHANNEL_CLOSE","CHANNEL_DATA","CHANNEL_EXTENDED_DATA","CHANNEL_WINDOW_ADJUST","CHANNEL_SUCCESS","CHANNEL_FAILURE","CHANNEL_REQUEST"],po=uo.length;function lo(e,t,n){var i={highWaterMark:co,allowHalfOpen:!n||n&&!1!==n.allowHalfOpen};this.allowHalfOpen=i.allowHalfOpen,ro.call(this,i);var r=this,o=n&&n.server;this.server=o,this.type=e.type,this.subtype=void 0;var a,s,c,u,p,l=this.incoming=e.incoming,f=l.id,h=this.outgoing=e.outgoing,d=this._callbacks=[];this._client=t,this._hasX11=!1;var m=t._channels,v=t._sshstream;function g(){r._waitClientDrain&&(r._waitClientDrain=!1,r._waitWindow||(r._chunk?r._write(r._chunk,null,r._chunkcb):r._chunkcb?r._chunkcb():r._chunkErr?r.stderr._write(r._chunkErr,null,r._chunkcbErr):r._chunkcbErr&&r._chunkcbErr()))}function b(){r.eof(),(o||!o&&!r.allowHalfOpen)&&r.close(),r.writable=!1}function y(){r.readable=!1}t._sock.on("drain",g),v.once("CHANNEL_EOF:"+f,(function(){"closed"!==l.state&&"eof"!==l.state&&(l.state="eof",r.readable&&r.push(null),o&&r.stderr.writable?r.stderr.end():!o&&r.stderr.readable&&r.stderr.push(null))})).once("CHANNEL_CLOSE:"+f,(function(){if("closed"!==l.state){l.state="closed",r.readable&&r.push(null),o&&r.stderr.writable?r.stderr.end():!o&&r.stderr.readable&&r.stderr.push(null),"open"!==h.state&&"eof"!==h.state||r.close(),"closing"===h.state&&(h.state="closed"),delete m[f];var e=r._writableState;t._sock.removeListener("drain",g),e.ending||e.finished||r.end(),r._callbacks=[];for(var n=0;n<d.length;++n)d[n](!0);d=r._callbacks,o?r.emit("close"):(null===a?r.emit("close",a,s,c,u,p):r.emit("close",a),r.stderr.emit("close"));for(n=0;n<po;++n)v.removeAllListeners(uo[n]+":"+f)}})).on("CHANNEL_DATA:"+f,(function(e){0!==l.window&&(l.window-=e.length,r.push(e)?0===l.window&&fo(r):r._waitChanDrain=!0)})).on("CHANNEL_WINDOW_ADJUST:"+f,(function(e){h.window+=e,r._waitWindow&&(r._waitWindow=!1,r._waitClientDrain||(r._chunk?r._write(r._chunk,null,r._chunkcb):r._chunkcb?r._chunkcb():r._chunkErr?r.stderr._write(r._chunkErr,null,r._chunkcbErr):r._chunkcbErr&&r._chunkcbErr()))})).on("CHANNEL_SUCCESS:"+f,(function(){o?(v._kalast=Date.now(),v._kacnt=0):t._resetKA(),d.length&&d.shift()(!1)})).on("CHANNEL_FAILURE:"+f,(function(){o?(v._kalast=Date.now(),v._kacnt=0):t._resetKA(),d.length&&d.shift()(!0)})).on("CHANNEL_REQUEST:"+f,(function(e){if(!o){if("exit-status"===e.request)return void r.emit("exit",a=e.code);if("exit-signal"===e.request)return void r.emit("exit",a=null,s="SIG"+e.signal,c=e.coredump,u=e.description,p=e.lang)}e.wantReply&&v.channelFailure(h.id)})),this.stdin=this.stdout=this,o?this.stderr=new ho(this):(this.stderr=new oo(i),this.stderr._read=function(e){r._waitChanDrain&&(r._waitChanDrain=!1,0===l.window&&fo(r))},v.on("CHANNEL_EXTENDED_DATA:"+f,(function(e,t){0!==l.window&&(l.window-=t.length,r.stderr.push(t)?0===l.window&&fo(r):r._waitChanDrain=!0)}))),this._waitClientDrain=!1,this._waitWindow=!1,this._waitChanDrain=!1,this._chunk=void 0,this._chunkcb=void 0,this._chunkErr=void 0,this._chunkcbErr=void 0,this.on("finish",b).on("prefinish",b),this.on("end",y).on("close",y)}function fo(e,t){return"open"!==e.outgoing.state||(t=t||co,e.incoming.window+=t,e._client._sshstream.channelWindowAdjust(e.outgoing.id,t))}function ho(e){ao.call(this,{highWaterMark:co}),this._channel=e}io(lo,ro),lo.prototype.eof=function(){var e=!0,t=this.outgoing;return"open"===t.state&&(t.state="eof",e=this._client._sshstream.channelEOF(t.id)),e},lo.prototype.close=function(){var e=!0,t=this.outgoing;return"open"!==t.state&&"eof"!==t.state||(t.state="closing",e=this._client._sshstream.channelClose(t.id)),e},lo.prototype._read=function(e){this._waitChanDrain&&(this._waitChanDrain=!1,0===this.incoming.window&&fo(this))},lo.prototype._write=function(e,t,n){var i,r,o,a=this._client._sshstream,s=this.outgoing,c=s.packetSize,u=s.id,p=s.window,l=e.length,f=0;if("open"===s.state){for(;l-f>0&&p>0;)if((o=l-f)>p&&(o=p),o>c&&(o=c),i=a.channelData(u,e.slice(f,f+o)),f+=o,p-=o,!i){this._waitClientDrain=!0,this._chunk=void 0,this._chunkcb=n;break}if(s.window=p,l-f>0)return 0===p&&(this._waitWindow=!0),f>0?(r=new Buffer(l-f),e.copy(r,0,f),this._chunk=r):this._chunk=e,void(this._chunkcb=n);this._waitClientDrain||n()}},lo.prototype.destroy=function(){this.end()},lo.prototype.setWindow=function(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");return"session"!==this.type||"shell"!==this.subtype&&"exec"!==this.subtype||!this.writable||"open"!==this.outgoing.state||this._client._sshstream.windowChange(this.outgoing.id,e,t,n,i)},lo.prototype.signal=function(e){if(this.server)throw new Error("Client-only method called in server mode");return"session"!==this.type||!this.writable||"open"!==this.outgoing.state||this._client._sshstream.signal(this.outgoing.id,e)},lo.prototype.exit=function(e,t,n){if(!this.server)throw new Error("Server-only method called in client mode");return"session"!==this.type||!this.writable||"open"!==this.outgoing.state||("number"==typeof e?this._client._sshstream.exitStatus(this.outgoing.id,e):this._client._sshstream.exitSignal(this.outgoing.id,e,t,n))},lo.MAX_WINDOW=co,lo.PACKET_SIZE=32768,io(ho,ao),ho.prototype._write=function(e,t,n){var i,r,o,a=this._channel,s=a._client._sshstream,c=a.outgoing,u=c.packetSize,p=c.id,l=c.window,f=e.length,h=0;if("open"===a.outgoing.state){for(;f-h>0&&l>0;)if((o=f-h)>l&&(o=l),o>u&&(o=u),i=s.channelExtData(p,e.slice(h,h+o),so),h+=o,l-=o,!i){a._waitClientDrain=!0,a._chunkErr=void 0,a._chunkcbErr=n;break}if(c.window=l,f-h>0)return 0===l&&(a._waitWindow=!0),h>0?(r=new Buffer(f-h),e.copy(r,0,h),a._chunkErr=r):a._chunkErr=e,void(a._chunkcbErr=n);a._waitClientDrain||n()}};var mo=lo,vo=s.Socket,go=n.EventEmitter,bo=r.inherits,yo=t,xo=e,_o=h,wo=/^\!<socket >(\d+) s ([A-Z0-9]{8}\-[A-Z0-9]{8}\-[A-Z0-9]{8}\-[A-Z0-9]{8})/;if("win32"===process.platform){var Eo={},So=yo.resolve(__dirname,"..","util/pagent.exe");function Ao(){this.proc=void 0,this.buffer=null}Eo[10]=new Error("Invalid pagent.exe arguments"),Eo[11]=new Error("Pageant is not running"),Eo[12]=new Error("pagent.exe could not create an mmap"),Eo[13]=new Error("pagent.exe could not set mode for stdin"),Eo[14]=new Error("pagent.exe could not set mode for stdout"),Eo[15]=new Error("pagent.exe did not get expected input payload"),bo(Ao,go),Ao.prototype.write=function(e){if(null===this.buffer?this.buffer=e:this.buffer=Buffer.concat([this.buffer,e],this.buffer.length+e.length),!(this.buffer.length<4)){var t=this.buffer.readUInt32BE(0,!0);if(!(this.buffer.length-4<t)){e=this.buffer.slice(0,4+t),this.buffer.length>4+t?this.buffer=this.buffer.slice(4+t):this.buffer=null;var n,i=this,r=!1;(n=this.proc=_o.spawn(So,[e.length])).stdout.on("data",(function(e){i.emit("data",e)})),n.once("error",(function(e){r||(r=!0,i.emit("error",e))})),n.once("close",(function(e){i.proc=void 0,Eo[e]&&!r&&(r=!0,i.emit("error",Eo[e])),i.emit("close",r)})),n.stdin.end(e)}}},Ao.prototype.end=Ao.prototype.destroy=function(){this.buffer=null,this.proc&&(this.proc.kill(),this.proc=void 0)},Ao.prototype.connect=function(){this.emit("connect")}}var Ro=r.inherits,ko=n.EventEmitter;function To(e){var t=this;ko.call(this),this._stream=e,e.on("error",(function(e){t.emit("error",e)})).on("end",(function(){t.emit("end")})).on("close",(function(){t.emit("close")})).on("continue",(function(){t.emit("continue")}))}Ro(To,ko),To.prototype.end=function(){return this._stream.end()},To.prototype.createReadStream=function(e,t){return this._stream.createReadStream(e,t)},To.prototype.createWriteStream=function(e,t){return this._stream.createWriteStream(e,t)},To.prototype.open=function(e,t,n,i){return this._stream.open(e,t,n,i)},To.prototype.close=function(e,t){return this._stream.close(e,t)},To.prototype.read=function(e,t,n,i,r,o){return this._stream.readData(e,t,n,i,r,o)},To.prototype.write=function(e,t,n,i,r,o){return this._stream.writeData(e,t,n,i,r,o)},To.prototype.fastGet=function(e,t,n,i){return this._stream.fastGet(e,t,n,i)},To.prototype.fastPut=function(e,t,n,i){return this._stream.fastPut(e,t,n,i)},To.prototype.readFile=function(e,t,n){return this._stream.readFile(e,t,n)},To.prototype.writeFile=function(e,t,n,i){return this._stream.writeFile(e,t,n,i)},To.prototype.appendFile=function(e,t,n,i){return this._stream.appendFile(e,t,n,i)},To.prototype.exists=function(e,t){return this._stream.exists(e,t)},To.prototype.unlink=function(e,t){return this._stream.unlink(e,t)},To.prototype.rename=function(e,t,n){return this._stream.rename(e,t,n)},To.prototype.mkdir=function(e,t,n){return this._stream.mkdir(e,t,n)},To.prototype.rmdir=function(e,t){return this._stream.rmdir(e,t)},To.prototype.readdir=function(e,t,n){return this._stream.readdir(e,t,n)},To.prototype.fstat=function(e,t){return this._stream.fstat(e,t)},To.prototype.stat=function(e,t){return this._stream.stat(e,t)},To.prototype.lstat=function(e,t){return this._stream.lstat(e,t)},To.prototype.opendir=function(e,t){return this._stream.opendir(e,t)},To.prototype.setstat=function(e,t,n){return this._stream.setstat(e,t,n)},To.prototype.fsetstat=function(e,t,n){return this._stream.fsetstat(e,t,n)},To.prototype.futimes=function(e,t,n,i){return this._stream.futimes(e,t,n,i)},To.prototype.utimes=function(e,t,n,i){return this._stream.utimes(e,t,n,i)},To.prototype.fchown=function(e,t,n,i){return this._stream.fchown(e,t,n,i)},To.prototype.chown=function(e,t,n,i){return this._stream.chown(e,t,n,i)},To.prototype.fchmod=function(e,t,n){return this._stream.fchmod(e,t,n)},To.prototype.chmod=function(e,t,n){return this._stream.chmod(e,t,n)},To.prototype.readlink=function(e,t){return this._stream.readlink(e,t)},To.prototype.symlink=function(e,t,n){return this._stream.symlink(e,t,n)},To.prototype.realpath=function(e,t){return this._stream.realpath(e,t)},To.prototype.ext_openssh_rename=function(e,t,n){return this._stream.ext_openssh_rename(e,t,n)},To.prototype.ext_openssh_statvfs=function(e,t){return this._stream.ext_openssh_statvfs(e,t)},To.prototype.ext_openssh_fstatvfs=function(e,t){return this._stream.ext_openssh_fstatvfs(e,t)},To.prototype.ext_openssh_hardlink=function(e,t,n){return this._stream.ext_openssh_hardlink(e,t,n)},To.prototype.ext_openssh_fsync=function(e,t){return this._stream.ext_openssh_fsync(e,t)};var Bo,Co,Io,Oo,Uo,No=To,Lo={};function Do(){if(Io)return Co;Io=1;var e=(Bo||(Bo=1,Lo.spliceOne=function(e,t){for(var n=t,i=n+1,r=e.length;i<r;n+=1,i+=1)e[n]=e[i];e.pop()}),Lo).spliceOne;function t(t,n,i){var r=this._streams=[];this._timer=void 0,this._timerInterval=t,this._timerfn=function(){for(var t,o,a=Date.now(),s=0,c=r.length;s<c;++s)if((o=(t=r[s])._kalast)&&a-o>=n)if(++t._kacnt>i){var u=new Error("Keepalive timeout");u.level="client-timeout",t.emit("error",u),t.disconnect(),e(r,s),--s,c=r.length}else t._kalast=a,t.ping()}}return t.prototype.start=function(){this._timer&&this.stop(),this._timer=setInterval(this._timerfn,this._timerInterval)},t.prototype.stop=function(){this._timer&&(clearInterval(this._timer),this._timer=void 0)},t.prototype.add=function(e){var t=this._streams,n=this;function i(){e._kalast=Date.now(),e._kacnt=0}e.once("end",(function(){n.remove(e)})).on("packet",i),t[t.length]=e,i(),this._timer||this.start()},t.prototype.remove=function(t){var n=this._streams,i=n.indexOf(t);~i&&e(n,i),n.length||this.stop()},Co=t}var Po=a,jo=s.Socket,Ho=c.lookup,Mo=n.EventEmitter,Fo=r.inherits,Go=Ur,qo=Go.SSH2Stream,zo=Go.SFTPStream,$o=Go.constants,Ko=Go.utils.parseKey,Wo=Go.utils.decryptKey,Xo=Go.utils.genPublicKey,Vo=mo,Qo=function(e,t,n,i,r){var o,a,s,c,u,p,l,f,h=0,d=Buffer.isBuffer(t),m=0,v=0,g=0,b=0,y=!1;function x(){var e;if(d){var n=9;(e=new Buffer(9+h+4+c+4)).writeUInt32BE(e.length-4,0,!0),e[4]=13,e.writeUInt32BE(h,5,!0),t.copy(e,n),e.writeUInt32BE(c,n+=h,!0),i.copy(e,n+=4),e.writeUInt32BE(0,n+=c,!0),o.write(e)}else o.write(new Buffer([0,0,0,1,11]))}function _(e){for(var n=0,i=e.length;n<i;++n)if(void 0===u)5==++m&&(u=e[n],m=0);else if(14===u)if(s){if(s[m]=e[n],++m===v)return o.removeAllListeners("data"),o.destroy()}else v<<=8,v+=e[n],4==++m&&(s=new Buffer(v),m=0);else if(12===u)if(void 0===p){if(g<<=8,g+=e[n],4==++m&&(p=new Array(g),m=0,0===g))return o.removeAllListeners("data"),o.destroy()}else if(t)if(!1===y){if(t[m]=e[n],++m===h&&(p[g-1]=t,h=0,m=0,y=!0,0==--g))return t=void 0,o.removeAllListeners("data"),o.destroy()}else!0===y?(b<<=8,b+=e[n],4==++m&&(m=0,b>0?y=b:(t=void 0,y=!1),b=0)):++m===y&&(y=!1,m=0,t=void 0);else h<<=8,h+=e[n],4==++m&&(t=new Buffer(h),m=0);else if(5===u)return a=d?new Error("Agent unable to sign data"):new Error("Unable to retrieve list of keys from agent"),o.removeAllListeners("data"),o.destroy()}function w(e){a=e}function E(){a?r(a):d&&!s||!d&&!p?r(new Error("Unexpected disconnection from agent")):d&&s?r(void 0,s):!d&&p&&r(void 0,p)}if("function"==typeof t&&"function"==typeof n?(l=t,f=n):d?(h=t.length,c=i.length):(r=t,t=void 0),"win32"===process.platform){if("pageant"!==e){var S=!1;return void xo.readFile(e,(function t(n,i){if(n)return S?r(new Error("Invalid cygwin unix socket path")):void _o.exec('cygpath -w "'+e+'"',(function(n,i,o){if(n||0===i.length)return r(new Error("Invalid cygwin unix socket path"));S=!0,e=i.toString().replace(/[\r\n]/g,""),xo.readFile(e,t)}));var a;if(a=wo.exec(i.toString("ascii"))){var s,c,u,p,l,f,h=0,d=!1,m=[],v=new Buffer(12);for(v.fill(0),s=parseInt(a[1],10),c=a[2].replace(/\-/g,""),u=new Buffer(16),l=0,f=0;f<32;++l,f+=2)u[l]=parseInt(c.substring(f,f+2),16);for(l=0;l<16;l+=4)u.writeUInt32LE(u.readUInt32BE(l,!0),l,!0);function g(){h=0,p="secret",o.write(u)}function b(e){h+=e.length,"secret"===p?16===h&&(h=0,p="creds",o.write(v)):"creds"===p&&(d||m.push(e),12===h&&(o.removeListener("connect",g),o.removeListener("data",b),o.removeListener("close",y),d?(A(),o.emit("connect")):(d=!0,(v=Buffer.concat(m)).writeUInt32LE(process.pid,0,!0),o.destroy(),x())))}function y(){r(new Error("Problem negotiating cygwin unix socket security"))}function x(){(o=new vo).once("connect",g),o.on("data",b),o.once("close",y),o.connect(s)}x()}else r(new Error("Malformed cygwin unix socket file"))}))}o=new Ao}else o=new vo;function A(){var e;l||f?(o.once("connect",(function(){e=l();var t=!1;function n(){t||(o.destroy(),t=!0)}e.once("end",n).once("close",n).on("data",(function(e){o.write(e)})),o.on("data",(function(t){e.write(t)}))})),o.once("close",(function(){e||f()}))):(o.once("connect",x),o.on("data",_),o.once("error",w),o.once("close",E))}A(),o.connect(e)},Yo=No,Zo=Math.pow(2,32)-1,Jo=/^OpenSSH_(?:(?![0-4])\d)|(?:\d{2,})/,ea=function(e){};function ta(){if(!(this instanceof ta))return new ta;Mo.call(this),this.config={host:void 0,port:void 0,forceIPv4:void 0,forceIPv6:void 0,keepaliveCountMax:void 0,keepaliveInterval:void 0,readyTimeout:void 0,compress:void 0,username:void 0,password:void 0,privateKey:void 0,publicKey:void 0,tryKeyboard:void 0,agent:void 0,allowAgentFwd:void 0,hostHashAlgo:void 0,hostHashCb:void 0,strictVendor:void 0,debug:void 0},this._readyTimeout=void 0,this._channels=void 0,this._callbacks=void 0,this._forwarding=void 0,this._acceptX11=void 0,this._agentFwdEnabled=void 0,this._curChan=void 0,this._remoteVer=void 0,this._sshstream=void 0,this._sock=void 0,this._resetKA=void 0}function na(e,t,n,i){var r=ia(e),o=Vo.MAX_WINDOW,a=Vo.PACKET_SIZE,s=!0;if(!1===r)return i(new Error("No free channels available"));"function"==typeof n&&(i=n,n={}),e._channels[r]=!0;var c=e._sshstream;return c.once("CHANNEL_OPEN_CONFIRMATION:"+r,u).once("CHANNEL_OPEN_FAILURE:"+r,p).once("CHANNEL_CLOSE:"+r,p),"session"===t?s=c.session(r,o,a):"direct-tcpip"===t?s=c.directTcpip(r,o,a,n):"direct-streamlocal@openssh.com"===t&&(s=c.openssh_directStreamLocal(r,o,a,n)),s;function u(n){c.removeListener("CHANNEL_OPEN_FAILURE:"+r,p),c.removeListener("CHANNEL_CLOSE:"+r,p);var s={type:t,incoming:{id:r,window:o,packetSize:a,state:"open"},outgoing:{id:n.sender,window:n.window,packetSize:n.packetSize,state:"open"}};i(void 0,new Vo(s,e))}function p(t){var n;c.removeListener("CHANNEL_OPEN_CONFIRMATION:"+r,u),c.removeListener("CHANNEL_OPEN_FAILURE:"+r,p),c.removeListener("CHANNEL_CLOSE:"+r,p),delete e._channels[r],t instanceof Error?n=t:"object"==typeof t&&null!==t?((n=new Error("(SSH) Channel open failure: "+t.description)).reason=t.reason,n.lang=t.lang):(n=new Error("(SSH) Channel open failure: server closed channel unexpectedly")).reason=n.lang="",i(n)}}function ia(e){if(e._curChan<Zo)return++e._curChan;for(var t=0,n=e._channels;t<Zo;++t)if(!n[t])return t;return!1}function ra(e,t,n){var i={single:!1,protocol:"MIT-MAGIC-COOKIE-1",cookie:Po.randomBytes(16).toString("hex"),screen:"number"==typeof t?t:0};"function"==typeof t?n=t:"object"==typeof t&&("boolean"==typeof t.single&&(i.single=t.single),"number"==typeof t.screen&&(i.screen=t.screen));var r="function"==typeof n;return"open"!==e.outgoing.state?(r&&n(new Error("Channel is not open")),!0):(r&&e._callbacks.push((function(t){if(t)return n(!0!==t?t:new Error("Unable to request X11"));e._hasX11=!0,++e._client._acceptX11,e.once("close",(function(){e._client._acceptX11&&--e._client._acceptX11})),n()})),e._client._sshstream.x11Forward(e.outgoing.id,i,r))}function oa(e,t,n){var i=24,r=80,o=640,a=480,s="vt100";"function"==typeof t?n=t:"object"==typeof t&&("number"==typeof t.rows&&(i=t.rows),"number"==typeof t.cols&&(r=t.cols),"number"==typeof t.width&&(o=t.width),"number"==typeof t.height&&(a=t.height),"string"==typeof t.term&&(s=t.term));var c="function"==typeof n;return"open"!==e.outgoing.state?(c&&n(new Error("Channel is not open")),!0):(c&&e._callbacks.push((function(e){if(e)return n(!0!==e?e:new Error("Unable to request a pseudo-terminal"));n()})),e._client._sshstream.pty(e.outgoing.id,i,r,a,o,s,null,c))}function aa(e,t){var n="function"==typeof t;return"open"!==e.outgoing.state?(n&&t(new Error("Channel is not open")),!0):e._client._agentFwdEnabled?(n&&t(!1),!0):(e._client._agentFwdEnabled=!0,e._callbacks.push((function(i){if(i)return e._client._agentFwdEnabled=!1,void(n&&t(!0!==i?i:new Error("Unable to request agent forwarding")));n&&t()})),e._client._sshstream.openssh_agentForward(e.outgoing.id,!0))}function sa(e,t,n){return"open"!==e.outgoing.state?(n(new Error("Channel is not open")),!0):(e._callbacks.push((function(i){if(i)return n(!0!==i?i:new Error("Unable to start subsystem: "+t));e.subtype="subsystem",n(void 0,e)})),e._client._sshstream.subsystem(e.outgoing.id,t,!0))}Fo(ta,Mo),ta.prototype.connect=function(e){var t=this;if(this._sock&&this._sock.writable)return this.once("close",(function(){t.connect(e)})),void this.end();this.config.host=e.hostname||e.host||"localhost",this.config.port=e.port||22,this.config.forceIPv4=e.forceIPv4||!1,this.config.forceIPv6=e.forceIPv6||!1,this.config.keepaliveCountMax="number"==typeof e.keepaliveCountMax&&e.keepaliveCountMax>=0?e.keepaliveCountMax:3,this.config.keepaliveInterval="number"==typeof e.keepaliveInterval&&e.keepaliveInterval>0?e.keepaliveInterval:0,this.config.readyTimeout="number"==typeof e.readyTimeout&&e.readyTimeout>=0?e.readyTimeout:2e4,this.config.compress=e.compress,this.config.username=e.username||e.user,this.config.password="string"==typeof e.password?e.password:void 0,this.config.privateKey="string"==typeof e.privateKey||Buffer.isBuffer(e.privateKey)?e.privateKey:void 0,this.config.publicKey=void 0,this.config.localHostname="string"==typeof e.localHostname&&e.localHostname.length?e.localHostname:void 0,this.config.localUsername="string"==typeof e.localUsername&&e.localUsername.length?e.localUsername:void 0,this.config.tryKeyboard=!0===e.tryKeyboard,this.config.agent="string"==typeof e.agent&&e.agent.length?e.agent:void 0,this.config.allowAgentFwd=!0===e.agentForward&&void 0!==this.config.agent,this.config.strictVendor="boolean"!=typeof e.strictVendor||e.strictVendor;var n=this.config.debug="function"==typeof e.debug?e.debug:ea;if("string"!=typeof this.config.username)throw new Error("Invalid username");if(!0===e.agentForward&&!this.config.allowAgentFwd)throw new Error("You must set a valid agent path to allow agent forwarding");var i=this._callbacks=[];if(this._channels={},this._forwarding={},this._acceptX11=0,this._agentFwdEnabled=!1,this._curChan=-1,this._remoteVer=void 0,this.config.privateKey){var r=Ko(this.config.privateKey);if(r instanceof Error)throw new Error("Cannot parse privateKey: "+r.message);if(!r.private)throw new Error("privateKey value does not contain a (valid) private key");if(r.encryption){if("string"!=typeof e.passphrase)throw new Error("Encrypted private key detected, but no passphrase given");Wo(r,e.passphrase)}this.config.privateKey=r,this.config.publicKey=Xo(r)}var o=this._sshstream=new qo({debug:n===ea?void 0:n}),a=this._sock=e.sock||new jo;this._sock.stderr&&this._sock.stderr.resume();var s,c=this.config.keepaliveInterval,u=this.config.keepaliveCountMax,p=0;function l(){if(++p>u){if(clearInterval(s),a.readable){var e=new Error("Keepalive timeout");e.level="client-timeout",t.emit("error",e),a.destroy()}}else a.writable?(i.push(f),o.ping()):clearInterval(s)}function f(){c>0&&(p=0,clearInterval(s),a.writable&&(s=setInterval(l,c)))}if(this._resetKA=f,o.on("USERAUTH_BANNER",(function(e){t.emit("banner",e)})),a.on("connect",(function(){n("DEBUG: Client: Connected"),t.emit("connect"),t._sock.setKeepAlive(!0),e.sock||o.pipe(a).pipe(o)})).on("timeout",(function(){t.emit("timeout")})).on("error",(function(e){clearTimeout(t._readyTimeout),e.level="client-socket",t.emit("error",e)})).on("end",(function(){o.unpipe(a),clearTimeout(t._readyTimeout),clearInterval(s),t.emit("end")})).on("close",(function(){o.unpipe(a),clearTimeout(t._readyTimeout),clearInterval(s),t.emit("close");var e=i,n=new Error("No response from server");i=t._callbacks=[];for(var r=0;r<e.length;++r)e[r](n);var c=Object.keys(t._channels);t._channels={};for(r=0;r<c.length;++r)o.emit("CHANNEL_OPEN_FAILURE:"+c[r],n),o.emit("CHANNEL_CLOSE:"+c[r])})),o.on("drain",(function(){t.emit("drain")})).once("header",(function(e){t._remoteVer=e.versions.software,e.greeting&&t.emit("greeting",e.greeting)})).on("continue",(function(){t.emit("continue")})).on("error",(function(e){e.level="protocol",t.emit("error",e)})),"function"==typeof e.hostVerifier&&~Po.getHashes().indexOf(e.hostHash)){var h=e.hostVerifier,d=Po.createHash(e.hostHash);o.once("fingerprint",(function(e,t){d.update(e,"binary"),t(h(d.digest("hex")))}))}var m,v,g=[],b=0;function y(){if(!g.length){o.removeListener("USERAUTH_FAILURE",w),o.removeListener("USERAUTH_PK_OK",_);var e=new Error("All configured authentication methods failed");return e.level="client-authentication",t.emit("error",e),void(o.writable&&t.end())}switch(m=g.shift()){case"password":o.authPassword(t.config.username,t.config.password);break;case"publickey":o.authPK(t.config.username,t.config.publicKey),o.once("USERAUTH_PK_OK",_);break;case"hostbased":o.authHostbased(t.config.username,t.config.publicKey,t.config.localHostname,t.config.localUsername,(function(e,n){var i=Po.createSign("rsa"===t.config.privateKey.type?"RSA-SHA1":"DSA-SHA1");if(i.update(e),i=i.sign(t.config.privateKey.privateOrig,"binary"),i=new Buffer(i,"binary"),"dss"===t.config.privateKey.type&&i.length>40){for(var r=new Buffer(40),o=4,a=5+i[3]+1;0===i[o];)++o;for(;0===i[a];)++a;i.copy(r,0,o,o+20),i.copy(r,20,a,a+20),i=r}n(i)}));break;case"agent":Qo(t.config.agent,(function(e,i){return e?(e.level="agent",t.emit("error",e),v=void 0,y()):0===i.length?(n("DEBUG: Agent: No keys stored in agent"),v=void 0,y()):(v=i,b=0,o.authPK(t.config.username,i[0]),void o.once("USERAUTH_PK_OK",_))}));break;case"keyboard-interactive":o.authKeyboard(t.config.username),o.on("USERAUTH_INFO_REQUEST",x);break;case"none":o.authNone(t.config.username)}}function x(e,i,r,a){if(0===(Array.isArray(a)?a.length:0))return n("DEBUG: Client: Sending automatic USERAUTH_INFO_RESPONSE"),o.authInfoRes();t.emit("keyboard-interactive",e,i,r,a,(function(e){o.authInfoRes(e)}))}function _(){if("agent"===m){var e=v[b],n=e.toString("ascii",4,4+e.readUInt32BE(0,!0)).substring(4,7);o.authPK(t.config.username,e,(function(i,r){Qo(t.config.agent,e,n,i,(function(e,i){if(e)return e.level="agent",t.emit("error",e),v=void 0,y();var o;o=i.toString("ascii",4,11)==="ssh-"+n?i.slice(15):i,r(o)}))}))}else"publickey"===m&&o.authPK(t.config.username,t.config.publicKey,(function(e,n){var i=Po.createSign("rsa"===t.config.privateKey.type?"RSA-SHA1":"DSA-SHA1");if(i.update(e),i=i.sign(t.config.privateKey.privateOrig,"binary"),i=new Buffer(i,"binary"),"dss"===t.config.privateKey.type&&i.length>40){for(var r=new Buffer(40),o=4,a=5+i[3]+1;0===i[o];)++o;for(;0===i[a];)++a;i.copy(r,0,o,o+20),i.copy(r,20,a,a+20),i=r}n(i)}))}function w(e,i){if(o.removeListener("USERAUTH_PK_OK",_),o.removeListener("USERAUTH_INFO_REQUEST",x),"agent"===m)return n("DEBUG: Client: Agent key #"+(b+1)+" failed"),void(++b>=v.length?(n("DEBUG: Agent: No more keys left to try"),n("DEBUG: Client: "+m+" auth failed"),v=void 0,y()):(n("DEBUG: Agent: Trying key #"+(b+1)),o.authPK(t.config.username,v[b]),o.once("USERAUTH_PK_OK",_)));n("DEBUG: Client: "+m+" auth failed"),y()}if(void 0!==this.config.password&&g.push("password"),void 0!==this.config.publicKey&&g.push("publickey"),void 0!==this.config.agent&&g.push("agent"),this.config.tryKeyboard&&g.push("keyboard-interactive"),void 0!==this.config.publicKey&&void 0!==this.config.localHostname&&void 0!==this.config.localUsername&&g.push("hostbased"),g.push("none"),o.once("USERAUTH_SUCCESS",(function(){g=void 0,o.removeListener("USERAUTH_FAILURE",w),o.removeListener("USERAUTH_INFO_REQUEST",x),f(),clearTimeout(t._readyTimeout),t.emit("ready")})).on("USERAUTH_FAILURE",w),o.once("NEWKEYS",(function(){o.service("ssh-userauth"),o.once("SERVICE_ACCEPT",(function(e){"ssh-userauth"===e&&y()}))})),o.on("CHANNEL_OPEN",(function(e){!function(e,t){var n,i=!1;function r(){var n={type:t.type,incoming:{id:i,window:Vo.MAX_WINDOW,packetSize:Vo.PACKET_SIZE,state:"open"},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:"open"}},r=new Vo(n,e);return e._sshstream.channelOpenConfirm(t.sender,i,Vo.MAX_WINDOW,Vo.PACKET_SIZE),r}function o(){void 0===n&&(n=!1===i?$o.CHANNEL_OPEN_FAILURE.RESOURCE_SHORTAGE:$o.CHANNEL_OPEN_FAILURE.CONNECT_FAILED),e._sshstream.channelOpenFail(t.sender,n,"","")}if("forwarded-tcpip"===t.type||"x11"===t.type||"auth-agent@openssh.com"===t.type){var a="forwarded-tcpip"===t.type&&!e._forwarding[t.data.destIP+":"+t.data.destPort]||"x11"===t.type&&0===e._acceptX11||"auth-agent@openssh.com"===t.type&&!e._agentFwdEnabled;a?(n=$o.CHANNEL_OPEN_FAILURE.ADMINISTRATIVELY_PROHIBITED,e.config.debug("DEBUG: Client: Automatic rejection of incoming channel open: unexpected channel open for: "+t.type)):!1===(i=ia(e))?(e.config.debug("DEBUG: Client: Automatic rejection of incoming channel open: no channels available"),a=!0):e._channels[i]=!0,a&&o(),!1!==i&&("forwarded-tcpip"===t.type?e.emit("tcp connection",t.data,r,o):"x11"===t.type?e.emit("x11",t.data,r,o):Qo(e.config.agent,r,o))}else e.config.debug("DEBUG: Client: Automatic rejection of incoming channel open: unsupported type: "+t.type),n=$o.CHANNEL_OPEN_FAILURE.UNKNOWN_CHANNEL_TYPE,o()}(t,e)})),o.on("REQUEST_SUCCESS",(function(e){i.length&&i.shift()(!1,e)})).on("REQUEST_FAILURE",(function(){i.length&&i.shift()(!0)})),o.on("GLOBAL_REQUEST",(function(e,t,n){t&&o.requestFailure()})),e.sock)k(),o.pipe(a).pipe(o);else{var E=this.config.host,S=this.config.forceIPv4,A=this.config.forceIPv6;function R(){k(),t._sock.connect(t.config.port,E),t._sock.setNoDelay(!0),t._sock.setMaxListeners(0),t._sock.setTimeout("number"==typeof e.timeout?e.timeout:0)}n("DEBUG: Client: Trying "+E+" on port "+this.config.port+" ..."),!S&&!A||S&&A?R():Ho(E,S?4:6,(function(e,n,i){if(e){var r=new Error("Error while looking up "+(S?"IPv4":"IPv6")+" address for host "+E+": "+e);return clearTimeout(t._readyTimeout),r.level="client-dns",t.emit("error",r),void t.emit("close")}E=n,R()}))}function k(){t.config.readyTimeout>0&&(t._readyTimeout=setTimeout((function(){var e=new Error("Timed out while waiting for handshake");e.level="client-timeout",t.emit("error",e),a.destroy()}),t.config.readyTimeout))}},ta.prototype.end=function(){return!!(this._sock&&this._sock.writable&&this._sshstream&&this._sshstream.writable)&&this._sshstream.disconnect()},ta.prototype.destroy=function(){this._sock&&this._sock.destroy()},ta.prototype.exec=function(e,t,n){if(!(this._sock&&this._sock.writable&&this._sshstream&&this._sshstream.writable))throw new Error("Not connected");"function"==typeof t&&(n=t,t={});var i=this;return na(this,"session",{allowHalfOpen:!1!==t.allowHalfOpen},(function(r,o){if(r)return n(r);var a=[];function s(e){if(e)return o.close(),n(e);a.length&&a.shift()()}(!0===i.config.allowAgentFwd||t&&!0===t.agentForward&&void 0!==i.config.agent)&&a.push((function(){aa(o,s)})),"object"==typeof t&&("object"==typeof t.env&&function(e,t){if("open"!==e.outgoing.state)return!0;for(var n,i,r=!0,o=Object.keys(t||{}),a=0,s=o.length;a<s;++a)i=t[n=o[a]],r=e._client._sshstream.env(e.outgoing.id,n,i,!1)}(o,t.env),"object"!=typeof t.pty&&!0!==t.pty||a.push((function(){oa(o,t.pty,s)})),"object"!=typeof t.x11&&"number"!==t.x11&&!0!==t.x11||a.push((function(){ra(o,t.x11,s)}))),a.push((function(){!function(e,t,n,i){if("open"!==e.outgoing.state)return i(new Error("Channel is not open")),!0;e._callbacks.push((function(t){if(t)return i(!0!==t?t:new Error("Unable to exec"));e.subtype="exec",e.allowHalfOpen=!1!==n.allowHalfOpen,i(void 0,e)})),e._client._sshstream.exec(e.outgoing.id,t,!0)}(o,e,t,n)})),a.shift()()}))},ta.prototype.shell=function(e,t,n){if(!(this._sock&&this._sock.writable&&this._sshstream&&this._sshstream.writable))throw new Error("Not connected");var i=this;return"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),e&&void 0!==e.x11&&(t=e,e=void 0),na(this,"session",(function(r,o){if(r)return n(r);var a=[];function s(e){if(e)return o.close(),n(e);a.length&&a.shift()()}(!0===i.config.allowAgentFwd||t&&!0===t.agentForward&&void 0!==i.config.agent)&&a.push((function(){aa(o,s)})),!1!==e&&a.push((function(){oa(o,e,s)})),"object"==typeof t&&("object"!=typeof t.x11&&"number"!==t.x11&&!0!==t.x11||a.push((function(){ra(o,t.x11,s)}))),a.push((function(){!function(e,t){if("open"!==e.outgoing.state)return t(new Error("Channel is not open")),!0;e._callbacks.push((function(n){if(n)return t(!0!==n?n:new Error("Unable to open shell"));e.subtype="shell",t(void 0,e)})),e._client._sshstream.shell(e.outgoing.id,!0)}(o,n)})),a.shift()()}))},ta.prototype.subsys=function(e,t){if(!(this._sock&&this._sock.writable&&this._sshstream&&this._sshstream.writable))throw new Error("Not connected");return na(this,"session",(function(n,i){if(n)return t(n);sa(i,e,(function(e,n){if(e)return t(e);t(void 0,n)}))}))},ta.prototype.sftp=function(e){if(!(this._sock&&this._sock.writable&&this._sshstream&&this._sshstream.writable))throw new Error("Not connected");var t=this;return na(this,"session",(function(n,i){if(n)return e(n);sa(i,"sftp",(function(n,i){if(n)return e(n);var r=t._sshstream._state.incoming.identRaw,o={debug:t.config.debug},a=new zo(o,r);function s(t){a.removeListener("ready",c),i.removeListener("exit",u),e(t)}function c(){a.removeListener("error",s),i.removeListener("exit",u),e(void 0,new Yo(a))}function u(t,n){var i;a.removeListener("ready",c),a.removeListener("error",s),i="number"==typeof t?"Received exit code "+t+" while establishing SFTP session":"Received signal "+n+" while establishing SFTP session";var r=new Error(i);r.code=t,r.signal=n,e(r)}a.once("error",s).once("ready",c).once("close",(function(){i.end()})),i.once("exit",u),a.pipe(i).pipe(a)}))}))},ta.prototype.forwardIn=function(e,t,n){if(!(this._sock&&this._sock.writable&&this._sshstream&&this._sshstream.writable))throw new Error("Not connected");var i=this,r="function"==typeof n;return r&&this._callbacks.push((function(r,o){if(r)return n(!0!==r?r:new Error("Unable to bind to "+e+":"+t));0===t&&o&&o.length>=4&&(t=o.readUInt32BE(0,!0)),i._forwarding[e+":"+t]=!0,n(void 0,t)})),this._sshstream.tcpipForward(e,t,r)},ta.prototype.unforwardIn=function(e,t,n){if(!(this._sock&&this._sock.writable&&this._sshstream&&this._sshstream.writable))throw new Error("Not connected");var i=this,r="function"==typeof n;return r&&this._callbacks.push((function(r){if(r)return n(!0!==r?r:new Error("Unable to unbind from "+e+":"+t));delete i._forwarding[e+":"+t],n()})),this._sshstream.cancelTcpipForward(e,t,r)},ta.prototype.forwardOut=function(e,t,n,i,r){if(!(this._sock&&this._sock.writable&&this._sshstream&&this._sshstream.writable))throw new Error("Not connected");return na(this,"direct-tcpip",{srcIP:e,srcPort:t,dstIP:n,dstPort:i},r)},ta.prototype.openssh_noMoreSessions=function(e){if(!(this._sock&&this._sock.writable&&this._sshstream&&this._sshstream.writable))throw new Error("Not connected");var t="function"==typeof e;return!this.config.strictVendor||this.config.strictVendor&&Jo.test(this._remoteVer)?(t&&this._callbacks.push((function(t){if(t)return e(!0!==t?t:new Error("Unable to disable future sessions"));e()})),this._sshstream.openssh_noMoreSessions(t)):(t&&process.nextTick((function(){e(new Error("strictVendor enabled and server is not OpenSSH or compatible version"))})),!0)},ta.prototype.openssh_forwardInStreamLocal=function(e,t){if(!(this._sock&&this._sock.writable&&this._sshstream&&this._sshstream.writable))throw new Error("Not connected");var n="function"==typeof t;return!this.config.strictVendor||this.config.strictVendor&&Jo.test(this._remoteVer)?(n&&this._callbacks.push((function(n){if(n)return t(!0!==n?n:new Error("Unable to bind to "+e));t()})),this._sshstream.openssh_streamLocalForward(e,n)):(n&&process.nextTick((function(){t(new Error("strictVendor enabled and server is not OpenSSH or compatible version"))})),!0)},ta.prototype.openssh_unforwardInStreamLocal=function(e,t){if(!(this._sock&&this._sock.writable&&this._sshstream&&this._sshstream.writable))throw new Error("Not connected");var n="function"==typeof t;return!this.config.strictVendor||this.config.strictVendor&&Jo.test(this._remoteVer)?(n&&this._callbacks.push((function(n){if(n)return t(!0!==n?n:new Error("Unable to unbind on "+e));t()})),this._sshstream.openssh_cancelStreamLocalForward(e,n)):(n&&process.nextTick((function(){t(new Error("strictVendor enabled and server is not OpenSSH or compatible version"))})),!0)},ta.prototype.openssh_forwardOutStreamLocal=function(e,t){if(!(this._sock&&this._sock.writable&&this._sshstream&&this._sshstream.writable))throw new Error("Not connected");return!this.config.strictVendor||this.config.strictVendor&&Jo.test(this._remoteVer)?na(this,"direct-streamlocal@openssh.com",{socketPath:e},t):(process.nextTick((function(){t(new Error("strictVendor enabled and server is not OpenSSH or compatible version"))})),!0)},ta.Client=ta,ta.Server=function(){if(Uo)return Oo;Uo=1;var e,t=s,i=n.EventEmitter,o=i.listenerCount,a=r.inherits,c=Ur.SSH2Stream,u=Ur.SFTPStream,p=Ur.constants,l=p.DISCONNECT_REASON,f=p.CHANNEL_OPEN_FAILURE,h=mo,d=Do(),m=Math.pow(2,32)-1,v=10;function g(n,r){if(!(this instanceof g))return new g(n,r);!e&&g.KEEPALIVE_INTERVAL>0&&g.KEEPALIVE_CLIENT_INTERVAL>0&&g.KEEPALIVE_CLIENT_COUNT_MAX>=0&&(e=new d(g.KEEPALIVE_INTERVAL,g.KEEPALIVE_CLIENT_INTERVAL,g.KEEPALIVE_CLIENT_COUNT_MAX));var a=this;i.call(this),"function"==typeof r&&a.on("connection",r);for(var s={},u=0,p=Object.keys(n),f=p.length;u<f;++u)s[p[u]]=n[p[u]];if(s.server=!0,"function"==typeof s.debug)var h=s.debug,m=Object.keys(s);this._srv=new t.Server((function(e){if(a._connections>=a.maxConnections)e.destroy();else{++a._connections,e.once("close",(function(e){--a._connections,u.read()})).on("error",(function(e){u.reset(),u.emit("error",e)}));var t=s;if(h){t={};for(var n,i=0;i<m.length;++i)t[n=m[i]]=s[n];var r="["+process.hrtime().join(".")+"] ";t.debug=function(e){h(r+e)}}var u=new c(t),p=new b(u,e);e.pipe(u).pipe(e),p.on("error",f),u.once("header",(function(t){if(!u._readableState.ended){if(!o(a,"connection"))return u.disconnect(l.BY_APPLICATION);p.removeListener("error",f),a.emit("connection",p,{ip:e.remoteAddress,header:t})}}))}function f(e){}})).on("error",(function(e){a.emit("error",e)})).on("listening",(function(){a.emit("listening")})).on("close",(function(){a.emit("close")})),this._connections=0,this.maxConnections=1/0}function b(t,n){i.call(this);var r=this;this._sshstream=t;var a=this._channels={};this._curChan=-1,this._sock=n,this.noMoreSessions=!1,this.authenticated=!1,t.on("end",(function(){r.emit("end")})).on("close",(function(e){r.emit("close",e)})).on("error",(function(e){r.emit("error",e)})).on("drain",(function(){r.emit("drain")})).on("continue",(function(){r.emit("continue")}));var s,c=0,u=!1,p=[];function d(e,n,i,a){if(0===c||s&&(s.username!==e||s.service!==n)||"password"!==i&&"publickey"!==i&&"hostbased"!==i&&"keyboard-interactive"!==i&&"none"!==i||p.length===v)return t.disconnect(l.PROTOCOL_ERROR);if("ssh-connection"!==n)return t.disconnect(l.SERVICE_NOT_AVAILABLE);var u;if(t._state.authMethod=i,"keyboard-interactive"===i?u=new w(t,e,n,i,a,m):"publickey"===i?u=new E(t,e,n,i,a,m):"hostbased"===i?u=new S(t,e,n,i,a,m):"password"===i?u=new A(t,e,n,i,a,m):"none"===i&&(u=new x(t,e,n,i,m)),s){if(!s._initialResponse)return p.push(u);s._multistep&&!this._finalResponse&&(s._cleanup&&s._cleanup(),s.emit("abort"))}s=u,o(r,"authentication")?r.emit("authentication",s):s.reject()}function m(e,n,i,a){s!==e||r.authenticated||(n?(t.removeListener("USERAUTH_REQUEST",d),s=void 0,r.authenticated=!0,t.authSuccess(),p=[],r.emit("ready")):(t.authFailure(i,a),p.length&&(s=p.pop(),o(r,"authentication")?r.emit("authentication",s):s.reject())))}t.on("SERVICE_REQUEST",(function(e){if(0===c||u||r.authenticated||"ssh-userauth"!==e)return t.disconnect(l.SERVICE_NOT_AVAILABLE);u=!0,t.serviceAccept(e)})).on("USERAUTH_REQUEST",d),t.on("GLOBAL_REQUEST",(function(e,n,i){if(("tcpip-forward"===e||"cancel-tcpip-forward"===e||"no-more-sessions@openssh.com"===e||"streamlocal-forward@openssh.com"===e||"cancel-streamlocal-forward@openssh.com"===e)&&o(r,"request")&&r.authenticated){var a,s;if(n){var c=!1;a=function(n){var r;if(!c)return c=!0,"tcpip-forward"===e&&0===i.bindPort&&"number"==typeof n&&(r=new Buffer(4)).writeUInt32BE(n,0,!0),t.requestSuccess(r)},s=function(){if(!c)return c=!0,t.requestFailure()}}if("no-more-sessions@openssh.com"===e)return r.noMoreSessions=!0,void(a&&a());r.emit("request",a,s,e,i)}else n&&t.requestFailure()})),t.on("CHANNEL_OPEN",(function(e){if("session"===e.type&&r.noMoreSessions||!r.authenticated){var n=f.ADMINISTRATIVELY_PROHIBITED;return t.channelOpenFail(e.sender,n)}var i,s,c=k(r),u=!1;if(!1===c)return t.channelOpenFail(e.sender,f.RESOURCE_SHORTAGE);switch(a[c]=!0,s=function(){if(!u){u=!0,delete a[c];var n=f.ADMINISTRATIVELY_PROHIBITED;return t.channelOpenFail(e.sender,n)}},e.type){case"session":o(r,"session")?(i=function(){if(!u)return u=!0,t.channelOpenConfirm(e.sender,c,h.MAX_WINDOW,h.PACKET_SIZE),new y(r,e,c)},r.emit("session",i,s)):s();break;case"direct-tcpip":o(r,"tcpip")?(i=function(){if(!u){u=!0,t.channelOpenConfirm(e.sender,c,h.MAX_WINDOW,h.PACKET_SIZE);var n={type:void 0,incoming:{id:c,window:h.MAX_WINDOW,packetSize:h.PACKET_SIZE,state:"open"},outgoing:{id:e.sender,window:e.window,packetSize:e.packetSize,state:"open"}};return new h(n,r)}},r.emit("tcpip",i,s,e.data)):s();break;case"direct-streamlocal@openssh.com":o(r,"openssh.streamlocal")?(i=function(){if(!u){u=!0,t.channelOpenConfirm(e.sender,c,h.MAX_WINDOW,h.PACKET_SIZE);var n={type:void 0,incoming:{id:c,window:h.MAX_WINDOW,packetSize:h.PACKET_SIZE,state:"open"},outgoing:{id:e.sender,window:e.window,packetSize:e.packetSize,state:"open"}};return new h(n,r)}},r.emit("openssh.streamlocal",i,s,e.data)):s();break;default:s()}})),t.on("NEWKEYS",(function(){++c>1&&r.emit("rekey")})),e&&this.once("ready",(function(){e.add(t)}))}function y(e,t,n){this.subtype=void 0;var i,r=!1,a=this,s=t.sender,c={type:"session",incoming:{id:n,window:h.MAX_WINDOW,packetSize:h.PACKET_SIZE,state:"open"},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:"open"}};e._sshstream.on("CHANNEL_REQUEST:"+n,(function(t){var n,p,l=!1;if(t.wantReply&&("shell"!==t.request&&"exec"!==t.request&&"subsystem"!==t.request&&(n=function(){if(!(l||r||i))return l=!0,e._sshstream.channelSuccess(s)}),p=function(){if(!(l||r||i))return l=!0,e._sshstream.channelFailure(s)}),r)p&&p();else switch(t.request){case"env":o(a,"env")?a.emit("env",n,p,{key:t.key,val:t.val}):p&&p();break;case"pty-req":o(a,"pty")?a.emit("pty",n,p,{cols:t.cols,rows:t.rows,width:t.width,height:t.height,term:t.term,modes:t.modes}):p&&p();break;case"window-change":o(a,"window-change")?a.emit("window-change",n,p,{cols:t.cols,rows:t.rows,width:t.width,height:t.height}):p&&p();break;case"x11-req":o(a,"x11")?a.emit("x11",n,p,{single:t.single,protocol:t.protocol,cookie:t.cookie,screen:t.screen}):p&&p();break;case"signal":o(a,"signal")?a.emit("signal",n,p,{name:t.signal}):p&&p();break;case"auth-agent-req@openssh.com":o(a,"auth-agent")?a.emit("auth-agent",n,p):p&&p();break;case"shell":o(a,"shell")?(n=function(){if(!(l||r||i))return l=!0,t.wantReply&&e._sshstream.channelSuccess(s),(i=new h(c,e,{server:!0})).subtype=a.subtype=t.request,i},a.emit("shell",n,p)):p&&p();break;case"exec":o(a,"exec")?(n=function(){if(!(l||r||i))return l=!0,t.wantReply&&e._sshstream.channelSuccess(s),(i=new h(c,e,{server:!0})).subtype=a.subtype=t.request,i},a.emit("exec",n,p,{command:t.command})):p&&p();break;case"subsystem":n=function(){if(!(l||r||i)){if(l=!0,t.wantReply&&e._sshstream.channelSuccess(s),(i=new h(c,e,{server:!0})).subtype=a.subtype=t.request+":"+t.subsystem,"sftp"===t.subsystem){var n=new u({server:!0,debug:e._sshstream.debug});return i.pipe(n).pipe(i),n}return i}},"sftp"===t.subsystem&&o(a,"sftp")?a.emit("sftp",n,p):"sftp"!==t.subsystem&&o(a,"subsystem")?a.emit("subsystem",n,p,{name:t.subsystem}):p&&p();break;default:p&&p()}})).once("CHANNEL_EOF:"+n,(function(){r=!0,a.emit("eof"),a.emit("end")})).once("CHANNEL_CLOSE:"+n,(function(){r=!0,a.emit("close")}))}function x(e,t,n,r,o){i.call(this);var a=this;this.username=this.user=t,this.service=n,this.method=r,this._initialResponse=!1,this._finalResponse=!1,this._multistep=!1,this._cbfinal=function(e,t,n){a._finalResponse||(a._finalResponse=!0,o(a,e,t,n))},this._stream=e}a(g,i),g.prototype.listen=function(){return this._srv.listen.apply(this._srv,arguments),this},g.prototype.address=function(){return this._srv.address()},g.prototype.getConnections=function(e){this._srv.getConnections(e)},g.prototype.close=function(e){return this._srv.close(e),this},g.prototype.ref=function(){this._srv.ref()},g.prototype.unref=function(){this._srv.unref()},a(b,i),b.prototype.end=function(){return this._sshstream.disconnect(l.BY_APPLICATION)},b.prototype.x11=function(e,t,n){return R(this,"x11",{originAddr:e,originPort:t},n)},b.prototype.forwardOut=function(e,t,n,i,r){return R(this,"forwarded-tcpip",{boundAddr:e,boundPort:t,remoteAddr:n,remotePort:i},r)},b.prototype.openssh_forwardOutStreamLocal=function(e,t){return R(this,"forwarded-streamlocal@openssh.com",{socketPath:e},t)},b.prototype.rekey=function(e){var t,n=this._sshstream,i=!0;try{i=n.rekey()}catch(e){t=e}return"function"==typeof e&&(t?process.nextTick((function(){e(t)})):this.once("rekey",e)),i},a(y,i),a(x,i),x.prototype.accept=function(){this._cleanup&&this._cleanup(),this._initialResponse=!0,this._cbfinal(!0)},x.prototype.reject=function(e,t){this._cleanup&&this._cleanup(),this._initialResponse=!0,this._cbfinal(!1,e,t)};var _=/[ \t\r\n]*,[ \t\r\n]*/g;function w(e,t,n,i,r,o){x.call(this,e,t,n,i,o),this._multistep=!0;var a=this;this._cb=void 0,this._onInfoResponse=function(e){if(a._cb){var t=a._cb;a._cb=void 0,t(e)}},this.submethods=r.split(_),this.on("abort",(function(){a._cb&&a._cb(new Error("Authentication request aborted"))}))}function E(e,t,n,i,r,o){x.call(this,e,t,n,i,o),this.key={algo:r.keyAlgo,data:r.key},this.signature=r.signature,this.signature?this.sigAlgo="ssh-rsa"===r.keyAlgo?"RSA-SHA1":"DSA-SHA1":this.sigAlgo=void 0,this.blob=r.blob}function S(e,t,n,i,r,o){x.call(this,e,t,n,i,o),this.key={algo:r.keyAlgo,data:r.key},this.signature=r.signature,this.signature?this.sigAlgo="ssh-rsa"===r.keyAlgo?"RSA-SHA1":"DSA-SHA1":this.sigAlgo=void 0,this.blob=r.blob,this.localHostname=r.localHostname,this.localUsername=r.localUsername}function A(e,t,n,i,r,o){x.call(this,e,t,n,i,o),this.password=r}function R(e,t,n,i){var r=k(e),o=h.MAX_WINDOW,a=h.PACKET_SIZE,s=!0;if(!1===r)return i(new Error("No free channels available"));"function"==typeof n&&(i=n,n={}),e._channels[r]=!0;var c=e._sshstream;return c.once("CHANNEL_OPEN_CONFIRMATION:"+r,(function(n){c.removeAllListeners("CHANNEL_OPEN_FAILURE:"+r);var s={type:t,incoming:{id:r,window:o,packetSize:a,state:"open"},outgoing:{id:n.sender,window:n.window,packetSize:n.packetSize,state:"open"}};i(void 0,new h(s,e,{server:!0}))})).once("CHANNEL_OPEN_FAILURE:"+r,(function(t){c.removeAllListeners("CHANNEL_OPEN_CONFIRMATION:"+r),delete e._channels[r];var n=new Error("(SSH) Channel open failure: "+t.description);n.reason=t.reason,n.lang=t.lang,i(n)})),"forwarded-tcpip"===t?s=c.forwardedTcpip(r,o,a,n):"x11"===t?s=c.x11(r,o,a,n):"forwarded-streamlocal@openssh.com"===t&&(s=c.openssh_forwardedStreamLocal(r,o,a,n)),s}function k(e){if(e._curChan<m)return++e._curChan;for(var t=0,n=e._channels;t<m;++t)if(!n[t])return t;return!1}return a(w,x),w.prototype._cleanup=function(){this._stream.removeListener("USERAUTH_INFO_RESPONSE",this._onInfoResponse)},w.prototype.prompt=function(e,t,n,i){Array.isArray(e)||(e=[e]),"function"==typeof t?(i=t,t=n=void 0):"function"==typeof n&&(i=n,n=void 0);for(var r=0;r<e.length;++r)"string"==typeof e[r]&&(e[r]={prompt:e[r],echo:!0});return this._cb=i,this._initialResponse=!0,this._stream.once("USERAUTH_INFO_RESPONSE",this._onInfoResponse),this._stream.authInfoReq(t,n,e)},a(E,x),E.prototype.accept=function(){this.signature?x.prototype.accept.call(this):(this._initialResponse=!0,this._stream.authPKOK(this.key.algo,this.key.data))},a(S,x),a(A,x),g.createServer=function(e,t){return new g(e,t)},g.KEEPALIVE_INTERVAL=1e3,g.KEEPALIVE_CLIENT_INTERVAL=15e3,g.KEEPALIVE_CLIENT_COUNT_MAX=3,Oo=g}(),ta.utils=Go.utils,ta.SFTP_STATUS_CODE=zo.STATUS_CODE,ta.SFTP_OPEN_MODE=zo.OPEN_MODE;var ca=ta,ua={exports:{}};!function(e,t){(function(){var n,i=200,r="Expected a function",o="__lodash_hash_undefined__",a="__lodash_placeholder__",s=32,c=128,u=256,p=1/0,l=9007199254740991,f=NaN,h=4294967295,d="[object Arguments]",m="[object Array]",v="[object Boolean]",g="[object Date]",b="[object Error]",y="[object Function]",x="[object GeneratorFunction]",w="[object Map]",E="[object Number]",S="[object Object]",A="[object Promise]",R="[object RegExp]",k="[object Set]",T="[object String]",B="[object Symbol]",C="[object WeakMap]",I="[object ArrayBuffer]",O="[object DataView]",U="[object Float32Array]",N="[object Float64Array]",L="[object Int8Array]",D="[object Int16Array]",P="[object Int32Array]",j="[object Uint8Array]",H="[object Uint8ClampedArray]",M="[object Uint16Array]",F="[object Uint32Array]",G=/\b__p \+= '';/g,q=/\b(__p \+=) '' \+/g,z=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39|#96);/g,K=/[&<>"'`]/g,W=RegExp($.source),X=RegExp(K.source),V=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,Y=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),ie=/^\s+|\s+$/g,re=/^\s+/,oe=/\s+$/,ae=/[a-zA-Z0-9]+/g,se=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ue=/\w*$/,pe=/^0x/i,le=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,he=/^\[object .+?Constructor\]$/,de=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,ge=/($^)/,be=/['\n\r\u2028\u2029\\]/g,ye="\\ud800-\\udfff",xe="\\u0300-\\u036f\\ufe20-\\ufe23",_e="\\u20d0-\\u20f0",we="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Se="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",Re="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ke="['’]",Te="["+ye+"]",Be="["+Re+"]",Ce="["+xe+_e+"]",Ie="\\d+",Oe="["+we+"]",Ue="["+Ee+"]",Ne="[^"+ye+Re+Ie+we+Ee+Se+"]",Le="\\ud83c[\\udffb-\\udfff]",De="[^"+ye+"]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",je="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Se+"]",Me="\\u200d",Fe="(?:"+Ue+"|"+Ne+")",Ge="(?:"+He+"|"+Ne+")",qe="(?:['’](?:d|ll|m|re|s|t|ve))?",ze="(?:['’](?:D|LL|M|RE|S|T|VE))?",$e="(?:"+Ce+"|"+Le+")"+"?",Ke="["+Ae+"]?",We=Ke+$e+("(?:"+Me+"(?:"+[De,Pe,je].join("|")+")"+Ke+$e+")*"),Xe="(?:"+[Oe,Pe,je].join("|")+")"+We,Ve="(?:"+[De+Ce+"?",Ce,Pe,je,Te].join("|")+")",Qe=RegExp(ke,"g"),Ye=RegExp(Ce,"g"),Ze=RegExp(Le+"(?="+Le+")|"+Ve+We,"g"),Je=RegExp([He+"?"+Ue+"+"+qe+"(?="+[Be,He,"$"].join("|")+")",Ge+"+"+ze+"(?="+[Be,He+Fe,"$"].join("|")+")",He+"?"+Fe+"+"+qe,He+"+"+ze,Ie,Xe].join("|"),"g"),et=RegExp("["+Me+ye+xe+_e+Ae+"]"),tt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","Reflect","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,rt={};rt[U]=rt[N]=rt[L]=rt[D]=rt[P]=rt[j]=rt[H]=rt[M]=rt[F]=!0,rt[d]=rt[m]=rt[I]=rt[v]=rt[O]=rt[g]=rt[b]=rt[y]=rt[w]=rt[E]=rt[S]=rt[R]=rt[k]=rt[T]=rt[C]=!1;var ot={};ot[d]=ot[m]=ot[I]=ot[O]=ot[v]=ot[g]=ot[U]=ot[N]=ot[L]=ot[D]=ot[P]=ot[w]=ot[E]=ot[S]=ot[R]=ot[k]=ot[T]=ot[B]=ot[j]=ot[H]=ot[M]=ot[F]=!0,ot[b]=ot[y]=ot[C]=!1;var at={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},st={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},ct={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},ut={function:!0,object:!0},pt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ft=parseInt,ht=t&&!t.nodeType?t:n,dt=e&&!e.nodeType?e:n,mt=dt&&dt.exports===ht?ht:n,vt=Xt(ht&&dt&&"object"==typeof _&&_),gt=Xt(ut[typeof self]&&self),bt=Xt(ut[typeof window]&&window),yt=Xt(ut[typeof this]&&this),xt=vt||bt!==(yt&&yt.window)&&bt||gt||yt||Function("return this")();function _t(e,t){return e.set(t[0],t[1]),e}function wt(e,t){return e.add(t),e}function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function St(e,t,n,i){for(var r=-1,o=e.length;++r<o;){var a=e[r];t(i,a,n(a),e)}return i}function At(e,t){for(var n=-1,i=e.length;++n<i&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=-1,i=e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function kt(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}function Tt(e,t){return!!e.length&&Pt(e,t,0)>-1}function Bt(e,t,n){for(var i=-1,r=e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function Ct(e,t){for(var n=-1,i=e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function It(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function Ot(e,t,n,i){var r=-1,o=e.length;for(i&&o&&(n=e[++r]);++r<o;)n=t(n,e[r],r,e);return n}function Ut(e,t,n,i){var r=e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function Nt(e,t){for(var n=-1,i=e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}function Lt(e,t,n,i){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=i?n:e,!1})),r}function Dt(e,t,n){for(var i=e.length,r=n?i:-1;n?r--:++r<i;)if(t(e[r],r,e))return r;return-1}function Pt(e,t,n){if(t!=t)return Zt(e,n);for(var i=n-1,r=e.length;++i<r;)if(e[i]===t)return i;return-1}function jt(e,t,n,i){for(var r=n-1,o=e.length;++r<o;)if(i(e[r],t))return r;return-1}function Ht(e,t){var n=e?e.length:0;return n?Ft(e,t)/n:f}function Mt(e,t,n,i,r){return r(e,(function(e,r,o){n=i?(i=!1,e):t(n,e,r,o)})),n}function Ft(e,t){for(var i,r=-1,o=e.length;++r<o;){var a=t(e[r]);a!==n&&(i=i===n?a:i+a)}return i}function Gt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function qt(e,t){return Ct(t,(function(t){return[t,e[t]]}))}function zt(e){return function(t){return e(t)}}function $t(e,t){return Ct(t,(function(t){return e[t]}))}function Kt(e,t){for(var n=-1,i=e.length;++n<i&&Pt(t,e[n],0)>-1;);return n}function Wt(e,t){for(var n=e.length;n--&&Pt(t,e[n],0)>-1;);return n}function Xt(e){return e&&e.Object===Object?e:null}function Vt(e){return at[e]}function Qt(e){return st[e]}function Yt(e){return"\\"+pt[e]}function Zt(e,t,n){for(var i=e.length,r=t+(n?0:-1);n?r--:++r<i;){var o=e[r];if(o!=o)return r}return-1}function Jt(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function en(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function tn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function nn(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var s=e[n];s!==t&&s!==a||(e[n]=a,o[r++]=n)}return o}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function on(e){if(!e||!et.test(e))return e.length;for(var t=Ze.lastIndex=0;Ze.test(e);)t++;return t}function an(e){return e.match(Ze)}function sn(e){return ct[e]}var cn=function e(t){var _=(t=t?cn.defaults({},t,cn.pick(xt,nt)):xt).Date,ye=t.Error,xe=t.Math,_e=t.RegExp,we=t.TypeError,Ee=t.Array.prototype,Se=t.Object.prototype,Ae=t.String.prototype,Re=t.Function.prototype.toString,ke=Se.hasOwnProperty,Te=0,Be=Re.call(Object),Ce=Se.toString,Ie=xt._,Oe=_e("^"+Re.call(ke).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=mt?t.Buffer:n,Ne=t.Reflect,Le=t.Symbol,De=t.Uint8Array,Pe=t.clearTimeout,je=Ne?Ne.enumerate:n,He=Object.getOwnPropertySymbols,Me="symbol"==typeof(Me=Le&&Le.iterator)?Me:n,Fe=Object.create,Ge=Se.propertyIsEnumerable,qe=t.setTimeout,ze=Ee.splice,$e=xe.ceil,Ke=xe.floor,We=Object.getPrototypeOf,Xe=t.isFinite,Ve=Ee.join,Ze=Object.keys,at=xe.max,st=xe.min,ct=t.parseInt,ut=xe.random,pt=Ae.replace,ht=Ee.reverse,dt=Ae.split,vt=Rr(t,"DataView"),gt=Rr(t,"Map"),bt=Rr(t,"Promise"),yt=Rr(t,"Set"),Xt=Rr(t,"WeakMap"),un=Rr(Object,"create"),pn=Xt&&new Xt,ln=!Ge.call({valueOf:1},"valueOf"),fn={},hn=Yr(vt),dn=Yr(gt),mn=Yr(bt),vn=Yr(yt),gn=Yr(Xt),bn=Le?Le.prototype:n,yn=bn?bn.valueOf:n,xn=bn?bn.toString:n;function _n(e){if(fa(e)&&!ia(e)&&!(e instanceof Sn)){if(e instanceof En)return e;if(ke.call(e,"__wrapped__"))return Zr(e)}return new En(e)}function wn(){}function En(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function Sn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function An(){}function Rn(e,t){return un?e[t]!==n:ke.call(e,t)}function kn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Tn(e){var t=-1,n=e?e.length:0;for(this.__data__=new kn;++t<n;)this.push(e[t])}function Bn(e,t){var n=e.__data__;if(Hr(t)){var i=n.__data__;return("string"==typeof t?i.string:i.hash)[t]===o}return n.has(t)}function Cn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function In(e,t){var n=Nn(e,t);return!(n<0)&&(n==e.length-1?e.pop():ze.call(e,n,1),!0)}function On(e,t){var i=Nn(e,t);return i<0?n:e[i][1]}function Un(e,t){return Nn(e,t)>-1}function Nn(e,t){for(var n=e.length;n--;)if(Jo(e[n][0],t))return n;return-1}function Ln(e,t,n){var i=Nn(e,t);i<0?e.push([t,n]):e[i][1]=n}function Dn(e,t,i,r){return e===n||Jo(e,Se[i])&&!ke.call(r,i)?t:e}function Pn(e,t,i){(i!==n&&!Jo(e[t],i)||"number"==typeof t&&i===n&&!(t in e))&&(e[t]=i)}function jn(e,t,i){var r=e[t];ke.call(e,t)&&Jo(r,i)&&(i!==n||t in e)||(e[t]=i)}function Hn(e,t,n,i){return Wn(e,(function(e,r,o){t(i,e,n(e),o)})),i}function Mn(e,t){return e&&Ji(t,Ma(t),e)}function Fn(e,t){for(var i=-1,r=null==e,o=t.length,a=Array(o);++i<o;)a[i]=r?n:La(e,t[i]);return a}function Gn(e,t,i){return e==e&&(i!==n&&(e=e<=i?e:i),t!==n&&(e=e>=t?e:t)),e}function qn(e,t,i,r,o,a,s){var c;if(r&&(c=a?r(e,o,a,s):r(e)),c!==n)return c;if(!la(e))return e;var u=ia(e);if(u){if(c=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&ke.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return Zi(e,c)}else{var p=Ir(e),l=p==y||p==x;if(aa(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(p==S||p==d||l&&!a){if(Jt(e))return a?e:{};if(c=function(e){return"function"!=typeof e.constructor||Fr(e)?{}:zn(Tr(e))}(l?{}:e),!t)return function(e,t){return Ji(e,Br(e),t)}(e,Mn(c,e))}else{if(!ot[p])return a?e:{};c=function(e,t,n,i){var r=e.constructor;switch(t){case I:return Xi(e);case v:case g:return new r(+e);case O:return function(e,t){var n=t?Xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,i);case U:case N:case L:case D:case P:case j:case H:case M:case F:return function(e,t){var n=t?Xi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,i);case w:return function(e,t,n){var i=t?n(tn(e),!0):tn(e);return Ot(i,_t,new e.constructor)}(e,i,n);case E:case T:return new r(e);case R:return function(e){var t=new e.constructor(e.source,ue.exec(e));return t.lastIndex=e.lastIndex,t}(e);case k:return function(e,t,n){var i=t?n(rn(e),!0):rn(e);return Ot(i,wt,new e.constructor)}(e,i,n);case B:return function(e){return yn?Object(yn.call(e)):{}}(e)}}(e,p,qn,t)}}s||(s=new Cn);var f=s.get(e);if(f)return f;if(s.set(e,c),!u)var h=i?function(e){return oi(e,Ma,Br)}(e):Ma(e);return At(h||e,(function(n,o){h&&(n=e[o=n]),jn(c,o,qn(n,t,i,r,o,e,s))})),c}function zn(e){return la(e)?Fe(e):{}}function $n(e,t,i){if("function"!=typeof e)throw new we(r);return qe((function(){e.apply(n,i)}),t)}function Kn(e,t,n,r){var o=-1,a=Tt,s=!0,c=e.length,u=[],p=t.length;if(!c)return u;n&&(t=Ct(t,zt(n))),r?(a=Bt,s=!1):t.length>=i&&(a=Bn,s=!1,t=new Tn(t));e:for(;++o<c;){var l=e[o],f=n?n(l):l;if(l=r||0!==l?l:0,s&&f==f){for(var h=p;h--;)if(t[h]===f)continue e;u.push(l)}else a(t,f,r)||u.push(l)}return u}_n.templateSettings={escape:V,evaluate:Q,interpolate:Y,variable:"",imports:{_:_n}},_n.prototype=wn.prototype,_n.prototype.constructor=_n,En.prototype=zn(wn.prototype),En.prototype.constructor=En,Sn.prototype=zn(wn.prototype),Sn.prototype.constructor=Sn,An.prototype=un?un(null):Se,kn.prototype.clear=function(){this.__data__={hash:new An,map:gt?new gt:[],string:new An}},kn.prototype.delete=function(e){var t=this.__data__;return Hr(e)?function(e,t){return Rn(e,t)&&delete e[t]}("string"==typeof e?t.string:t.hash,e):gt?t.map.delete(e):In(t.map,e)},kn.prototype.get=function(e){var t=this.__data__;return Hr(e)?function(e,t){if(un){var i=e[t];return i===o?n:i}return ke.call(e,t)?e[t]:n}("string"==typeof e?t.string:t.hash,e):gt?t.map.get(e):On(t.map,e)},kn.prototype.has=function(e){var t=this.__data__;return Hr(e)?Rn("string"==typeof e?t.string:t.hash,e):gt?t.map.has(e):Un(t.map,e)},kn.prototype.set=function(e,t){var i=this.__data__;return Hr(e)?function(e,t,i){e[t]=un&&i===n?o:i}("string"==typeof e?i.string:i.hash,e,t):gt?i.map.set(e,t):Ln(i.map,e,t),this},Tn.prototype.push=function(e){var t=this.__data__;if(Hr(e)){var n=t.__data__;("string"==typeof e?n.string:n.hash)[e]=o}else t.set(e,o)},Cn.prototype.clear=function(){this.__data__={array:[],map:null}},Cn.prototype.delete=function(e){var t=this.__data__,n=t.array;return n?In(n,e):t.map.delete(e)},Cn.prototype.get=function(e){var t=this.__data__,n=t.array;return n?On(n,e):t.map.get(e)},Cn.prototype.has=function(e){var t=this.__data__,n=t.array;return n?Un(n,e):t.map.has(e)},Cn.prototype.set=function(e,t){var n=this.__data__,i=n.array;i&&(i.length<199?Ln(i,e,t):(n.array=null,n.map=new kn(i)));var r=n.map;return r&&r.set(e,t),this};var Wn=nr(ti),Xn=nr(ni,!0);function Vn(e,t){var n=!0;return Wn(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function Qn(e,t,i){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=t(a);if(null!=s&&(c===n?s==s&&!ba(s):i(s,c)))var c=s,u=a}return u}function Yn(e,t){var n=[];return Wn(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function Zn(e,t,n,i,r){var o=-1,a=e.length;for(n||(n=Nr),r||(r=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?Zn(s,t-1,n,i,r):It(r,s):i||(r[r.length]=s)}return r}var Jn=ir(),ei=ir(!0);function ti(e,t){return e&&Jn(e,t,Ma)}function ni(e,t){return e&&ei(e,t,Ma)}function ii(e,t){return kt(t,(function(t){return ca(e[t])}))}function ri(e,t){for(var i=0,r=(t=jr(t,e)?[t]:Ki(t)).length;null!=e&&i<r;)e=e[Qr(t[i++])];return i&&i==r?e:n}function oi(e,t,n){var i=t(e);return ia(e)?i:It(i,n(e))}function ai(e,t){return e>t}function si(e,t){return ke.call(e,t)||"object"==typeof e&&t in e&&null===Tr(e)}function ci(e,t){return t in Object(e)}function ui(e,t,i){for(var r=i?Bt:Tt,o=e[0].length,a=e.length,s=a,c=Array(a),u=1/0,p=[];s--;){var l=e[s];s&&t&&(l=Ct(l,zt(t))),u=st(l.length,u),c[s]=!i&&(t||o>=120&&l.length>=120)?new Tn(s&&l):n}l=e[0];var f=-1,h=c[0];e:for(;++f<o&&p.length<u;){var d=l[f],m=t?t(d):d;if(d=i||0!==d?d:0,!(h?Bn(h,m):r(p,m,i))){for(s=a;--s;){var v=c[s];if(!(v?Bn(v,m):r(e[s],m,i)))continue e}h&&h.push(m),p.push(d)}}return p}function pi(e,t,i){jr(t,e)||(e=$r(e,t=Ki(t)),t=co(t));var r=null==e?e:e[Qr(t)];return null==r?n:Et(r,e,i)}function li(e,t,i,r,o){return e===t||(null==e||null==t||!la(e)&&!fa(t)?e!=e&&t!=t:function(e,t,i,r,o,a){var s=ia(e),c=ia(t),u=m,p=m;s||(u=(u=Ir(e))==d?S:u);c||(p=(p=Ir(t))==d?S:p);var l=u==S&&!Jt(e),f=p==S&&!Jt(t),h=u==p;if(h&&!l)return a||(a=new Cn),s||ya(e)?yr(e,t,i,r,o,a):function(e,t,n,i,r,o,a){switch(n){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!i(new De(e),new De(t)));case v:case g:return+e==+t;case b:return e.name==t.name&&e.message==t.message;case E:return e!=+e?t!=+t:e==+t;case R:case T:return e==t+"";case w:var s=tn;case k:var c=2&o;if(s||(s=rn),e.size!=t.size&&!c)return!1;var u=a.get(e);return u?u==t:(o|=1,a.set(e,t),yr(s(e),s(t),i,r,o,a));case B:if(yn)return yn.call(e)==yn.call(t)}return!1}(e,t,u,i,r,o,a);if(!(2&o)){var y=l&&ke.call(e,"__wrapped__"),x=f&&ke.call(t,"__wrapped__");if(y||x){var _=y?e.value():e,A=x?t.value():t;return a||(a=new Cn),i(_,A,r,o,a)}}if(!h)return!1;return a||(a=new Cn),function(e,t,i,r,o,a){var s=2&o,c=Ma(e),u=c.length,p=Ma(t),l=p.length;if(u!=l&&!s)return!1;var f=u;for(;f--;){var h=c[f];if(!(s?h in t:si(t,h)))return!1}var d=a.get(e);if(d)return d==t;var m=!0;a.set(e,t);var v=s;for(;++f<u;){var g=e[h=c[f]],b=t[h];if(r)var y=s?r(b,g,h,t,e,a):r(g,b,h,e,t,a);if(!(y===n?g===b||i(g,b,r,o,a):y)){m=!1;break}v||(v="constructor"==h)}if(m&&!v){var x=e.constructor,_=t.constructor;x==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(m=!1)}return a.delete(e),m}(e,t,i,r,o,a)}(e,t,li,i,r,o))}function fi(e,t,i,r){var o=i.length,a=o,s=!r;if(null==e)return!a;for(e=Object(e);o--;){var c=i[o];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<a;){var u=(c=i[o])[0],p=e[u],l=c[1];if(s&&c[2]){if(p===n&&!(u in e))return!1}else{var f=new Cn;if(r)var h=r(p,l,u,e,t,f);if(!(h===n?li(l,p,r,3,f):h))return!1}}return!0}function hi(e){return"function"==typeof e?e:null==e?ls:"object"==typeof e?ia(e)?bi(e[0],e[1]):gi(e):xs(e)}function di(e){e=null==e?e:Object(e);var t=[];for(var n in e)t.push(n);return t}function mi(e,t){return e<t}function vi(e,t){var n=-1,i=ra(e)?Array(e.length):[];return Wn(e,(function(e,r,o){i[++n]=t(e,r,o)})),i}function gi(e){var t=Ar(e);return 1==t.length&&t[0][2]?qr(t[0][0],t[0][1]):function(n){return n===e||fi(n,e,t)}}function bi(e,t){return jr(e)&&Gr(t)?qr(Qr(e),t):function(i){var r=La(i,e);return r===n&&r===t?Da(i,e):li(t,r,n,3)}}function yi(e,t,i,r,o){if(e!==t){if(!ia(t)&&!ya(t))var a=Fa(t);At(a||t,(function(s,c){if(a&&(s=t[c=s]),la(s))o||(o=new Cn),function(e,t,i,r,o,a,s){var c=e[i],u=t[i],p=s.get(u);if(p)return void Pn(e,i,p);var l=a?a(c,u,i+"",e,t,s):n,f=l===n;f&&(l=u,ia(u)||ya(u)?ia(c)?l=c:oa(c)?l=Zi(c):(f=!1,l=qn(u,!0)):ma(u)||na(u)?na(c)?l=Ra(c):!la(c)||r&&ca(c)?(f=!1,l=qn(u,!0)):l=c:f=!1);s.set(u,l),f&&o(l,u,r,a,s);s.delete(u),Pn(e,i,l)}(e,t,c,i,yi,r,o);else{var u=r?r(e[c],s,c+"",e,t,o):n;u===n&&(u=s),Pn(e,c,u)}}))}}function xi(e,t){var i=e.length;if(i)return Dr(t+=t<0?i:0,i)?e[t]:n}function _i(e,t,n){var i=-1;t=Ct(t.length?t:[ls],zt(Er()));var r=vi(e,(function(e,n,r){var o=Ct(t,(function(t){return t(e)}));return{criteria:o,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,(function(e,t){return function(e,t,n){var i=-1,r=e.criteria,o=t.criteria,a=r.length,s=n.length;for(;++i<a;){var c=Vi(r[i],o[i]);if(c)return i>=s?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function wi(e,t){return e=Object(e),Ot(t,(function(t,n){return n in e&&(t[n]=e[n]),t}),{})}function Ei(e,t){for(var n=-1,i=xr(e),r=i.length,o={};++n<r;){var a=i[n],s=e[a];t(s,a)&&(o[a]=s)}return o}function Si(e){return function(t){return null==t?n:t[e]}}function Ai(e,t,n,i){var r=i?jt:Pt,o=-1,a=t.length,s=e;for(n&&(s=Ct(e,zt(n)));++o<a;)for(var c=0,u=t[o],p=n?n(u):u;(c=r(s,p,c,i))>-1;)s!==e&&ze.call(s,c,1),ze.call(e,c,1);return e}function Ri(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==o){var o=r;if(Dr(r))ze.call(e,r,1);else if(jr(r,e))delete e[Qr(r)];else{var a=Ki(r),s=$r(e,a);null!=s&&delete s[Qr(co(a))]}}}return e}function ki(e,t){return e+Ke(ut()*(t-e+1))}function Ti(e,t){var n="";if(!e||t<1||t>l)return n;do{t%2&&(n+=e),(t=Ke(t/2))&&(e+=e)}while(t);return n}function Bi(e,t,i,r){for(var o=-1,a=(t=jr(t,e)?[t]:Ki(t)).length,s=a-1,c=e;null!=c&&++o<a;){var u=Qr(t[o]);if(la(c)){var p=i;if(o!=s){var l=c[u];(p=r?r(l,u,c):n)===n&&(p=null==l?Dr(t[o+1])?[]:{}:l)}jn(c,u,p)}c=c[u]}return e}je&&!Ge.call({valueOf:1},"valueOf")&&(di=function(e){return en(je(e))});var Ci=pn?function(e,t){return pn.set(e,t),e}:ls;function Ii(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++i<r;)o[i]=e[i+t];return o}function Oi(e,t){var n;return Wn(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function Ui(e,t,n){var i=0,r=e?e.length:i;if("number"==typeof t&&t==t&&r<=2147483647){for(;i<r;){var o=i+r>>>1,a=e[o];null!==a&&!ba(a)&&(n?a<=t:a<t)?i=o+1:r=o}return r}return Ni(e,t,ls,n)}function Ni(e,t,i,r){t=i(t);for(var o=0,a=e?e.length:0,s=t!=t,c=null===t,u=ba(t),p=t===n;o<a;){var l=Ke((o+a)/2),f=i(e[l]),h=f!==n,d=null===f,m=f==f,v=ba(f);if(s)var g=r||m;else g=p?m&&(r||h):c?m&&h&&(r||!d):u?m&&h&&!d&&(r||!v):!d&&!v&&(r?f<=t:f<t);g?o=l+1:a=l}return st(a,4294967294)}function Li(e,t){for(var n=-1,i=e.length,r=0,o=[];++n<i;){var a=e[n],s=t?t(a):a;if(!n||!Jo(s,c)){var c=s;o[r++]=0===a?0:a}}return o}function Di(e){return"number"==typeof e?e:ba(e)?f:+e}function Pi(e){if("string"==typeof e)return e;if(ba(e))return xn?xn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function ji(e,t,n){var r=-1,o=Tt,a=e.length,s=!0,c=[],u=c;if(n)s=!1,o=Bt;else if(a>=i){var p=t?null:gr(e);if(p)return rn(p);s=!1,o=Bn,u=new Tn}else u=t?[]:c;e:for(;++r<a;){var l=e[r],f=t?t(l):l;if(l=n||0!==l?l:0,s&&f==f){for(var h=u.length;h--;)if(u[h]===f)continue e;t&&u.push(f),c.push(l)}else o(u,f,n)||(u!==c&&u.push(f),c.push(l))}return c}function Hi(e,t,n,i){return Bi(e,t,n(ri(e,t)),i)}function Mi(e,t,n,i){for(var r=e.length,o=i?r:-1;(i?o--:++o<r)&&t(e[o],o,e););return n?Ii(e,i?0:o,i?o+1:r):Ii(e,i?o+1:0,i?r:o)}function Fi(e,t){var n=e;return n instanceof Sn&&(n=n.value()),Ot(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),n)}function Gi(e,t,n){for(var i=-1,r=e.length;++i<r;)var o=o?It(Kn(o,e[i],t,n),Kn(e[i],o,t,n)):e[i];return o&&o.length?ji(o,t,n):[]}function qi(e,t,i){for(var r=-1,o=e.length,a=t.length,s={};++r<o;){var c=r<a?t[r]:n;i(s,e[r],c)}return s}function zi(e){return oa(e)?e:[]}function $i(e){return"function"==typeof e?e:ls}function Ki(e){return ia(e)?e:Vr(e)}function Wi(e,t,i){var r=e.length;return i=i===n?r:i,!t&&i>=r?e:Ii(e,t,i)}function Xi(e){var t=new e.constructor(e.byteLength);return new De(t).set(new De(e)),t}function Vi(e,t){if(e!==t){var i=e!==n,r=null===e,o=e==e,a=ba(e),s=t!==n,c=null===t,u=t==t,p=ba(t);if(!c&&!p&&!a&&e>t||a&&s&&u&&!c&&!p||r&&s&&u||!i&&u||!o)return 1;if(!r&&!a&&!p&&e<t||p&&i&&o&&!r&&!a||c&&i&&o||!s&&o||!u)return-1}return 0}function Qi(e,t,n,i){for(var r=-1,o=e.length,a=n.length,s=-1,c=t.length,u=at(o-a,0),p=Array(c+u),l=!i;++s<c;)p[s]=t[s];for(;++r<a;)(l||r<o)&&(p[n[r]]=e[r]);for(;u--;)p[s++]=e[r++];return p}function Yi(e,t,n,i){for(var r=-1,o=e.length,a=-1,s=n.length,c=-1,u=t.length,p=at(o-s,0),l=Array(p+u),f=!i;++r<p;)l[r]=e[r];for(var h=r;++c<u;)l[h+c]=t[c];for(;++a<s;)(f||r<o)&&(l[h+n[a]]=e[r++]);return l}function Zi(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t}function Ji(e,t,n,i){n||(n={});for(var r=-1,o=t.length;++r<o;){var a=t[r];jn(n,a,i?i(n[a],e[a],a,n,e):e[a])}return n}function er(e,t){return function(n,i){var r=ia(n)?St:Hn,o=t?t():{};return r(n,e,Er(i),o)}}function tr(e){return Yo((function(t,i){var r=-1,o=i.length,a=o>1?i[o-1]:n,s=o>2?i[2]:n;for(a="function"==typeof a?(o--,a):n,s&&Pr(i[0],i[1],s)&&(a=o<3?n:a,o=1),t=Object(t);++r<o;){var c=i[r];c&&e(t,c,r,a)}return t}))}function nr(e,t){return function(n,i){if(null==n)return n;if(!ra(n))return e(n,i);for(var r=n.length,o=t?r:-1,a=Object(n);(t?o--:++o<r)&&!1!==i(a[o],o,a););return n}}function ir(e){return function(t,n,i){for(var r=-1,o=Object(t),a=i(t),s=a.length;s--;){var c=a[e?s:++r];if(!1===n(o[c],c,o))break}return t}}function rr(e){return function(t){t=ka(t);var i=et.test(t)?an(t):n,r=i?i[0]:t.charAt(0),o=i?Wi(i,1).join(""):t.slice(1);return r[e]()+o}}function or(e){return function(t){return Ot(os(Ya(t).replace(Qe,"")),e,"")}}function ar(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),i=e.apply(n,t);return la(i)?i:n}}function sr(e){return Yo((function(t){var o=(t=Zn(t,1)).length,a=o,s=En.prototype.thru;for(e&&t.reverse();a--;){var c=t[a];if("function"!=typeof c)throw new we(r);if(s&&!u&&"wrapper"==wr(c))var u=new En([],!0)}for(a=u?a:o;++a<o;){var p=wr(c=t[a]),l="wrapper"==p?_r(c):n;u=l&&Mr(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?u[wr(l[0])].apply(u,l[3]):1==c.length&&Mr(c)?u[p]():u.thru(c)}return function(){var e=arguments,n=e[0];if(u&&1==e.length&&ia(n)&&n.length>=i)return u.plant(n).value();for(var r=0,a=o?t[r].apply(this,e):n;++r<o;)a=t[r].call(this,a);return a}}))}function cr(e,t,i,r,o,a,s,u,p,l){var f=t&c,h=1&t,d=2&t,m=24&t,v=512&t,g=d?n:ar(e);return function c(){for(var b=arguments.length,y=b,x=Array(b);y--;)x[y]=arguments[y];if(m)var _=kr(c),w=function(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&i++;return i}(x,_);if(r&&(x=Qi(x,r,o,m)),a&&(x=Yi(x,a,s,m)),b-=w,m&&b<l){var E=nn(x,_);return mr(e,t,cr,c.placeholder,i,x,E,u,p,l-b)}var S=h?i:this,A=d?S[e]:e;return b=x.length,u?x=function(e,t){var i=e.length,r=st(t.length,i),o=Zi(e);for(;r--;){var a=t[r];e[r]=Dr(a,i)?o[a]:n}return e}(x,u):v&&b>1&&x.reverse(),f&&p<b&&(x.length=p),this&&this!==xt&&this instanceof c&&(A=g||ar(A)),A.apply(S,x)}}function ur(e,t){return function(n,i){return function(e,t,n,i){return ti(e,(function(e,r,o){t(i,n(e),r,o)})),i}(n,e,t(i),{})}}function pr(e){return function(t,i){var r;if(t===n&&i===n)return 0;if(t!==n&&(r=t),i!==n){if(r===n)return i;"string"==typeof t||"string"==typeof i?(t=Pi(t),i=Pi(i)):(t=Di(t),i=Di(i)),r=e(t,i)}return r}}function lr(e){return Yo((function(t){return t=1==t.length&&ia(t[0])?Ct(t[0],zt(Er())):Ct(Zn(t,1,Lr),zt(Er())),Yo((function(n){var i=this;return e(t,(function(e){return Et(e,i,n)}))}))}))}function fr(e,t){var i=(t=t===n?" ":Pi(t)).length;if(i<2)return i?Ti(t,e):t;var r=Ti(t,$e(e/on(t)));return et.test(t)?Wi(an(r),0,e).join(""):r.slice(0,e)}function hr(e){return function(t,i,r){return r&&"number"!=typeof r&&Pr(t,i,r)&&(i=r=n),t=(t=Aa(t))==t?t:0,i===n?(i=t,t=0):i=Aa(i)||0,function(e,t,n,i){for(var r=-1,o=at($e((t-e)/(n||1)),0),a=Array(o);o--;)a[i?o:++r]=e,e+=n;return a}(t,i,r=r===n?t<i?1:-1:Aa(r)||0,e)}}function dr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Aa(t),n=Aa(n)),e(t,n)}}function mr(e,t,i,r,o,a,c,u,p,l){var f=8&t;t|=f?s:64,4&(t&=~(f?64:s))||(t&=-4);var h=[e,t,o,f?a:n,f?c:n,f?n:a,f?n:c,u,p,l],d=i.apply(n,h);return Mr(e)&&Xr(d,h),d.placeholder=r,d}function vr(e){var t=xe[e];return function(e,n){if(e=Aa(e),n=Ea(n)){var i=(ka(e)+"e").split("e");return+((i=(ka(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var gr=yt&&1/rn(new yt([,-0]))[1]==p?function(e){return new yt(e)}:vs;function br(e,t,i,o,p,l,f,h){var d=2&t;if(!d&&"function"!=typeof e)throw new we(r);var m=o?o.length:0;if(m||(t&=-97,o=p=n),f=f===n?f:at(Ea(f),0),h=h===n?h:Ea(h),m-=p?p.length:0,64&t){var v=o,g=p;o=p=n}var b=d?n:_r(e),y=[e,t,i,o,p,v,g,l,f,h];if(b&&function(e,t){var n=e[1],i=t[1],r=n|i,o=r<131,s=i==c&&8==n||i==c&&n==u&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!o&&!s)return e;1&i&&(e[2]=t[2],r|=1&n?0:4);var p=t[3];if(p){var l=e[3];e[3]=l?Qi(l,p,t[4]):p,e[4]=l?nn(e[3],a):t[4]}p=t[5],p&&(l=e[5],e[5]=l?Yi(l,p,t[6]):p,e[6]=l?nn(e[5],a):t[6]);p=t[7],p&&(e[7]=p);i&c&&(e[8]=null==e[8]?t[8]:st(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(y,b),e=y[0],t=y[1],i=y[2],o=y[3],p=y[4],!(h=y[9]=null==y[9]?d?0:e.length:at(y[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)x=8==t||16==t?function(e,t,i){var r=ar(e);return function o(){for(var a=arguments.length,s=Array(a),c=a,u=kr(o);c--;)s[c]=arguments[c];var p=a<3&&s[0]!==u&&s[a-1]!==u?[]:nn(s,u);return(a-=p.length)<i?mr(e,t,cr,o.placeholder,n,s,p,n,n,i-a):Et(this&&this!==xt&&this instanceof o?r:e,this,s)}}(e,t,h):t!=s&&33!=t||p.length?cr.apply(n,y):function(e,t,n,i){var r=1&t,o=ar(e);return function t(){for(var a=-1,s=arguments.length,c=-1,u=i.length,p=Array(u+s),l=this&&this!==xt&&this instanceof t?o:e;++c<u;)p[c]=i[c];for(;s--;)p[c++]=arguments[++a];return Et(l,r?n:this,p)}}(e,t,i,o);else var x=function(e,t,n){var i=1&t,r=ar(e);return function t(){return(this&&this!==xt&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,i);return(b?Ci:Xr)(x,y)}function yr(e,t,i,r,o,a){var s=-1,c=2&o,u=1&o,p=e.length,l=t.length;if(p!=l&&!(c&&l>p))return!1;var f=a.get(e);if(f)return f==t;var h=!0;for(a.set(e,t);++s<p;){var d=e[s],m=t[s];if(r)var v=c?r(m,d,s,t,e,a):r(d,m,s,e,t,a);if(v!==n){if(v)continue;h=!1;break}if(u){if(!Nt(t,(function(e){return d===e||i(d,e,r,o,a)}))){h=!1;break}}else if(d!==m&&!i(d,m,r,o,a)){h=!1;break}}return a.delete(e),h}function xr(e){return oi(e,Fa,Cr)}var _r=pn?function(e){return pn.get(e)}:vs;function wr(e){for(var t=e.name+"",n=fn[t],i=ke.call(fn,t)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==e)return r.name}return t}function Er(){var e=_n.iteratee||fs;return e=e===fs?hi:e,arguments.length?e(arguments[0],arguments[1]):e}var Sr=Si("length");function Ar(e){for(var t=Ka(e),n=t.length;n--;)t[n][2]=Gr(t[n][1]);return t}function Rr(e,t){var i=e[t];return ha(i)?i:n}function kr(e){return(ke.call(_n,"placeholder")?_n:e).placeholder}function Tr(e){return We(Object(e))}function Br(e){return He(Object(e))}He||(Br=function(){return[]});var Cr=He?function(e){for(var t=[];e;)It(t,Br(e)),e=Tr(e);return t}:Br;function Ir(e){return Ce.call(e)}function Or(e,t,n){for(var i,r=-1,o=(t=jr(t,e)?[t]:Ki(t)).length;++r<o;){var a=Qr(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||!!(o=e?e.length:0)&&pa(o)&&Dr(a,o)&&(ia(e)||ga(e)||na(e))}function Ur(e){var t=e?e.length:n;return pa(t)&&(ia(e)||ga(e)||na(e))?Gt(t,String):null}function Nr(e){return oa(e)&&(ia(e)||na(e))}function Lr(e){return ia(e)&&!(2==e.length&&!ca(e[0]))}function Dr(e,t){return!!(t=null==t?l:t)&&("number"==typeof e||me.test(e))&&e>-1&&e%1==0&&e<t}function Pr(e,t,n){if(!la(n))return!1;var i=typeof t;return!!("number"==i?ra(n)&&Dr(t,n.length):"string"==i&&t in n)&&Jo(n[t],e)}function jr(e,t){if(ia(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ba(e))||(J.test(e)||!Z.test(e)||null!=t&&e in Object(t))}function Hr(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function Mr(e){var t=wr(e),n=_n[t];if("function"!=typeof n||!(t in Sn.prototype))return!1;if(e===n)return!0;var i=_r(n);return!!i&&e===i[0]}function Fr(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Se)}function Gr(e){return e==e&&!la(e)}function qr(e,t){return function(i){return null!=i&&(i[e]===t&&(t!==n||e in Object(i)))}}function zr(e,t,i,r,o,a){return la(e)&&la(t)&&yi(e,t,n,zr,a.set(t,e)),e}function $r(e,t){return 1==t.length?e:ri(e,Ii(t,0,-1))}(vt&&Ir(new vt(new ArrayBuffer(1)))!=O||gt&&Ir(new gt)!=w||bt&&Ir(bt.resolve())!=A||yt&&Ir(new yt)!=k||Xt&&Ir(new Xt)!=C)&&(Ir=function(e){var t=Ce.call(e),i=t==S?e.constructor:n,r=i?Yr(i):n;if(r)switch(r){case hn:return O;case dn:return w;case mn:return A;case vn:return k;case gn:return C}return t});var Kr,Wr,Xr=(Kr=0,Wr=0,function(e,t){var n=jo(),i=16-(n-Wr);if(Wr=n,i>0){if(++Kr>=150)return e}else Kr=0;return Ci(e,t)}),Vr=Ko((function(e){var t=[];return ka(e).replace(ee,(function(e,n,i,r){t.push(i?r.replace(se,"$1"):n||e)})),t}));function Qr(e){if("string"==typeof e||ba(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Yr(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Zr(e){if(e instanceof Sn)return e.clone();var t=new En(e.__wrapped__,e.__chain__);return t.__actions__=Zi(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Jr=Yo((function(e,t){return oa(e)?Kn(e,Zn(t,1,oa,!0)):[]})),eo=Yo((function(e,t){var i=co(t);return oa(i)&&(i=n),oa(e)?Kn(e,Zn(t,1,oa,!0),Er(i)):[]})),to=Yo((function(e,t){var i=co(t);return oa(i)&&(i=n),oa(e)?Kn(e,Zn(t,1,oa,!0),n,i):[]}));function no(e,t,i){var r=e?e.length:0;return r?Ii(e,(t=i||t===n?1:Ea(t))<0?0:t,r):[]}function io(e,t,i){var r=e?e.length:0;return r?Ii(e,0,(t=r-(t=i||t===n?1:Ea(t)))<0?0:t):[]}function ro(e){return e&&e.length?e[0]:n}var oo=Yo((function(e){var t=Ct(e,zi);return t.length&&t[0]===e[0]?ui(t):[]})),ao=Yo((function(e){var t=co(e),i=Ct(e,zi);return t===co(i)?t=n:i.pop(),i.length&&i[0]===e[0]?ui(i,Er(t)):[]})),so=Yo((function(e){var t=co(e),i=Ct(e,zi);return t===co(i)?t=n:i.pop(),i.length&&i[0]===e[0]?ui(i,n,t):[]}));function co(e){var t=e?e.length:0;return t?e[t-1]:n}var uo=Yo(po);function po(e,t){return e&&e.length&&t&&t.length?Ai(e,t):e}var lo=Yo((function(e,t){t=Zn(t,1);var n=e?e.length:0,i=Fn(e,t);return Ri(e,Ct(t,(function(e){return Dr(e,n)?+e:e})).sort(Vi)),i}));function fo(e){return e?ht.call(e):e}var ho=Yo((function(e){return ji(Zn(e,1,oa,!0))})),mo=Yo((function(e){var t=co(e);return oa(t)&&(t=n),ji(Zn(e,1,oa,!0),Er(t))})),vo=Yo((function(e){var t=co(e);return oa(t)&&(t=n),ji(Zn(e,1,oa,!0),n,t)}));function go(e){if(!e||!e.length)return[];var t=0;return e=kt(e,(function(e){if(oa(e))return t=at(e.length,t),!0})),Gt(t,(function(t){return Ct(e,Si(t))}))}function bo(e,t){if(!e||!e.length)return[];var i=go(e);return null==t?i:Ct(i,(function(e){return Et(t,n,e)}))}var yo=Yo((function(e,t){return oa(e)?Kn(e,t):[]})),xo=Yo((function(e){return Gi(kt(e,oa))})),_o=Yo((function(e){var t=co(e);return oa(t)&&(t=n),Gi(kt(e,oa),Er(t))})),wo=Yo((function(e){var t=co(e);return oa(t)&&(t=n),Gi(kt(e,oa),n,t)})),Eo=Yo(go),So=Yo((function(e){var t=e.length,i=t>1?e[t-1]:n;return i="function"==typeof i?(e.pop(),i):n,bo(e,i)}));function Ao(e){var t=_n(e);return t.__chain__=!0,t}function Ro(e,t){return t(e)}var ko=Yo((function(e){var t=(e=Zn(e,1)).length,i=t?e[0]:0,r=this.__wrapped__,o=function(t){return Fn(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Sn&&Dr(i)?((r=r.slice(i,+i+(t?1:0))).__actions__.push({func:Ro,args:[o],thisArg:n}),new En(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(o)})),To=er((function(e,t,n){ke.call(e,n)?++e[n]:e[n]=1}));function Bo(e,t){return"function"==typeof t&&ia(e)?At(e,t):Wn(e,Er(t))}function Co(e,t){return"function"==typeof t&&ia(e)?function(e,t){for(var n=e.length;n--&&!1!==t(e[n],n,e););return e}(e,t):Xn(e,Er(t))}var Io=er((function(e,t,n){ke.call(e,n)?e[n].push(t):e[n]=[t]})),Oo=Yo((function(e,t,i){var r=-1,o="function"==typeof t,a=jr(t),s=ra(e)?Array(e.length):[];return Wn(e,(function(e){var c=o?t:a&&null!=e?e[t]:n;s[++r]=c?Et(c,e,i):pi(e,t,i)})),s})),Uo=er((function(e,t,n){e[n]=t}));function No(e,t){return(ia(e)?Ct:vi)(e,Er(t,3))}var Lo=er((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));function Do(e,t,i){var r=-1,o=wa(e),a=o.length,s=a-1;for(t=(i?Pr(e,t,i):t===n)?1:Gn(Ea(t),0,a);++r<t;){var c=ki(r,s),u=o[c];o[c]=o[r],o[r]=u}return o.length=t,o}var Po=Yo((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Pr(e,t[0],t[1])?t=[]:n>2&&Pr(t[0],t[1],t[2])&&(t=[t[0]]),_i(e,t=1==t.length&&ia(t[0])?t[0]:Zn(t,1,Lr),[])})),jo=_.now;function Ho(e,t,i){return t=i?n:t,t=e&&null==t?e.length:t,br(e,c,n,n,n,n,t)}function Mo(e,t){var i;if("function"!=typeof t)throw new we(r);return e=Ea(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Fo=Yo((function(e,t,n){var i=1;if(n.length){var r=nn(n,kr(Fo));i|=s}return br(e,i,t,n,r)})),Go=Yo((function(e,t,n){var i=3;if(n.length){var r=nn(n,kr(Go));i|=s}return br(t,i,e,n,r)}));function qo(e,t,i){var o,a,s,c,u,p=0,l=0,f=!1,h=!1,d=!0;if("function"!=typeof e)throw new we(r);function m(t){var i=o,r=a;return o=a=n,l=t,c=e.apply(r,i)}function v(e){var n=e-p;return!p||n>=t||n<0||h&&e-l>=s}function g(){var e=jo();if(v(e))return b(e);u=qe(g,function(e){var n=t-(e-p);return h?st(n,s-(e-l)):n}(e))}function b(e){return Pe(u),u=n,d&&o?m(e):(o=a=n,c)}function y(){var e=jo(),i=v(e);if(o=arguments,a=this,p=e,i){if(u===n)return function(e){return l=e,u=qe(g,t),f?m(e):c}(p);if(h)return Pe(u),u=qe(g,t),m(p)}return u===n&&(u=qe(g,t)),c}return t=Aa(t)||0,la(i)&&(f=!!i.leading,s=(h="maxWait"in i)?at(Aa(i.maxWait)||0,t):s,d="trailing"in i?!!i.trailing:d),y.cancel=function(){u!==n&&Pe(u),p=l=0,o=a=u=n},y.flush=function(){return u===n?c:b(jo())},y}var zo=Yo((function(e,t){return $n(e,1,t)})),$o=Yo((function(e,t,n){return $n(e,Aa(t)||0,n)}));function Ko(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new we(r);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a),a};return n.cache=new(Ko.Cache||kn),n}Ko.Cache=kn;var Wo=Yo((function(e,t){var n=(t=1==t.length&&ia(t[0])?Ct(t[0],zt(Er())):Ct(Zn(t,1,Lr),zt(Er()))).length;return Yo((function(i){for(var r=-1,o=st(i.length,n);++r<o;)i[r]=t[r].call(this,i[r]);return Et(e,this,i)}))})),Xo=Yo((function(e,t){var i=nn(t,kr(Xo));return br(e,s,n,t,i)})),Vo=Yo((function(e,t){var i=nn(t,kr(Vo));return br(e,64,n,t,i)})),Qo=Yo((function(e,t){return br(e,u,n,n,n,Zn(t,1))}));function Yo(e,t){if("function"!=typeof e)throw new we(r);return t=at(t===n?e.length-1:Ea(t),0),function(){for(var n=arguments,i=-1,r=at(n.length-t,0),o=Array(r);++i<r;)o[i]=n[t+i];switch(t){case 0:return e.call(this,o);case 1:return e.call(this,n[0],o);case 2:return e.call(this,n[0],n[1],o)}var a=Array(t+1);for(i=-1;++i<t;)a[i]=n[i];return a[t]=o,Et(e,this,a)}}function Zo(){if(!arguments.length)return[];var e=arguments[0];return ia(e)?e:[e]}function Jo(e,t){return e===t||e!=e&&t!=t}var ea=dr(ai),ta=dr((function(e,t){return e>=t}));function na(e){return oa(e)&&ke.call(e,"callee")&&(!Ge.call(e,"callee")||Ce.call(e)==d)}var ia=Array.isArray;function ra(e){return null!=e&&pa(Sr(e))&&!ca(e)}function oa(e){return fa(e)&&ra(e)}var aa=Ue?function(e){return e instanceof Ue}:cs(!1);function sa(e){return!!fa(e)&&(Ce.call(e)==b||"string"==typeof e.message&&"string"==typeof e.name)}function ca(e){var t=la(e)?Ce.call(e):"";return t==y||t==x}function ua(e){return"number"==typeof e&&e==Ea(e)}function pa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=l}function la(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function fa(e){return!!e&&"object"==typeof e}function ha(e){return!!la(e)&&(ca(e)||Jt(e)?Oe:he).test(Yr(e))}function da(e){return"number"==typeof e||fa(e)&&Ce.call(e)==E}function ma(e){if(!fa(e)||Ce.call(e)!=S||Jt(e))return!1;var t=Tr(e);if(null===t)return!0;var n=ke.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Re.call(n)==Be}function va(e){return la(e)&&Ce.call(e)==R}function ga(e){return"string"==typeof e||!ia(e)&&fa(e)&&Ce.call(e)==T}function ba(e){return"symbol"==typeof e||fa(e)&&Ce.call(e)==B}function ya(e){return fa(e)&&pa(e.length)&&!!rt[Ce.call(e)]}var xa=dr(mi),_a=dr((function(e,t){return e<=t}));function wa(e){if(!e)return[];if(ra(e))return ga(e)?an(e):Zi(e);if(Me&&e[Me])return en(e[Me]());var t=Ir(e);return(t==w?tn:t==k?rn:Xa)(e)}function Ea(e){if(!e)return 0===e?e:0;if((e=Aa(e))===p||e===-1/0)return 17976931348623157e292*(e<0?-1:1);var t=e%1;return e==e?t?e-t:e:0}function Sa(e){return e?Gn(Ea(e),0,h):0}function Aa(e){if("number"==typeof e)return e;if(ba(e))return f;if(la(e)){var t=ca(e.valueOf)?e.valueOf():e;e=la(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(ie,"");var n=fe.test(e);return n||de.test(e)?ft(e.slice(2),n?2:8):le.test(e)?f:+e}function Ra(e){return Ji(e,Fa(e))}function ka(e){return null==e?"":Pi(e)}var Ta=tr((function(e,t){if(ln||Fr(t)||ra(t))Ji(t,Ma(t),e);else for(var n in t)ke.call(t,n)&&jn(e,n,t[n])})),Ba=tr((function(e,t){if(ln||Fr(t)||ra(t))Ji(t,Fa(t),e);else for(var n in t)jn(e,n,t[n])})),Ca=tr((function(e,t,n,i){Ji(t,Fa(t),e,i)})),Ia=tr((function(e,t,n,i){Ji(t,Ma(t),e,i)})),Oa=Yo((function(e,t){return Fn(e,Zn(t,1))})),Ua=Yo((function(e){return e.push(n,Dn),Et(Ca,n,e)})),Na=Yo((function(e){return e.push(n,zr),Et(qa,n,e)}));function La(e,t,i){var r=null==e?n:ri(e,t);return r===n?i:r}function Da(e,t){return null!=e&&Or(e,t,ci)}var Pa=ur((function(e,t,n){e[t]=n}),cs(ls)),ja=ur((function(e,t,n){ke.call(e,t)?e[t].push(n):e[t]=[n]}),Er),Ha=Yo(pi);function Ma(e){var t=Fr(e);if(!t&&!ra(e))return function(e){return Ze(Object(e))}(e);var n=Ur(e),i=!!n,r=n||[],o=r.length;for(var a in e)!si(e,a)||i&&("length"==a||Dr(a,o))||t&&"constructor"==a||r.push(a);return r}function Fa(e){for(var t=-1,n=Fr(e),i=di(e),r=i.length,o=Ur(e),a=!!o,s=o||[],c=s.length;++t<r;){var u=i[t];a&&("length"==u||Dr(u,c))||"constructor"==u&&(n||!ke.call(e,u))||s.push(u)}return s}var Ga=tr((function(e,t,n){yi(e,t,n)})),qa=tr((function(e,t,n,i){yi(e,t,n,i)})),za=Yo((function(e,t){return null==e?{}:(t=Ct(Zn(t,1),Qr),wi(e,Kn(xr(e),t)))})),$a=Yo((function(e,t){return null==e?{}:wi(e,Ct(Zn(t,1),Qr))}));function Ka(e){return qt(e,Ma(e))}function Wa(e){return qt(e,Fa(e))}function Xa(e){return e?$t(e,Ma(e)):[]}var Va=or((function(e,t,n){return t=t.toLowerCase(),e+(n?Qa(t):t)}));function Qa(e){return rs(ka(e).toLowerCase())}function Ya(e){return(e=ka(e))&&e.replace(ve,Vt).replace(Ye,"")}var Za=or((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ja=or((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),es=rr("toLowerCase"),ts=or((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),ns=or((function(e,t,n){return e+(n?" ":"")+rs(t)})),is=or((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),rs=rr("toUpperCase");function os(e,t,i){return e=ka(e),(t=i?n:t)===n&&(t=tt.test(e)?Je:ae),e.match(t)||[]}var as=Yo((function(e,t){try{return Et(e,n,t)}catch(e){return sa(e)?e:new ye(e)}})),ss=Yo((function(e,t){return At(Zn(t,1),(function(t){t=Qr(t),e[t]=Fo(e[t],e)})),e}));function cs(e){return function(){return e}}var us=sr(),ps=sr(!0);function ls(e){return e}function fs(e){return hi("function"==typeof e?e:qn(e,!0))}var hs=Yo((function(e,t){return function(n){return pi(n,e,t)}})),ds=Yo((function(e,t){return function(n){return pi(e,n,t)}}));function ms(e,t,n){var i=Ma(t),r=ii(t,i);null!=n||la(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=ii(t,Ma(t)));var o=!(la(n)&&"chain"in n&&!n.chain),a=ca(e);return At(r,(function(n){var i=t[n];e[n]=i,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=Zi(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,It([this.value()],arguments))})})),e}function vs(){}var gs=lr(Ct),bs=lr(Rt),ys=lr(Nt);function xs(e){return jr(e)?Si(Qr(e)):function(e){return function(t){return ri(t,e)}}(e)}var _s=hr(),ws=hr(!0),Es=pr((function(e,t){return e+t})),Ss=vr("ceil"),As=pr((function(e,t){return e/t})),Rs=vr("floor"),ks=pr((function(e,t){return e*t})),Ts=vr("round"),Bs=pr((function(e,t){return e-t}));return _n.after=function(e,t){if("function"!=typeof t)throw new we(r);return e=Ea(e),function(){if(--e<1)return t.apply(this,arguments)}},_n.ary=Ho,_n.assign=Ta,_n.assignIn=Ba,_n.assignInWith=Ca,_n.assignWith=Ia,_n.at=Oa,_n.before=Mo,_n.bind=Fo,_n.bindAll=ss,_n.bindKey=Go,_n.castArray=Zo,_n.chain=Ao,_n.chunk=function(e,t,i){t=(i?Pr(e,t,i):t===n)?1:at(Ea(t),0);var r=e?e.length:0;if(!r||t<1)return[];for(var o=0,a=0,s=Array($e(r/t));o<r;)s[a++]=Ii(e,o,o+=t);return s},_n.compact=function(e){for(var t=-1,n=e?e.length:0,i=0,r=[];++t<n;){var o=e[t];o&&(r[i++]=o)}return r},_n.concat=function(){var e=arguments.length,t=Zo(arguments[0]);if(e<2)return e?Zi(t):[];for(var n=Array(e-1);e--;)n[e-1]=arguments[e];return function(e,t){for(var n=-1,i=e.length,r=-1,o=t.length,a=Array(i+o);++n<i;)a[n]=e[n];for(;++r<o;)a[n++]=t[r];return a}(t,Zn(n,1))},_n.cond=function(e){var t=e?e.length:0,n=Er();return e=t?Ct(e,(function(e){if("function"!=typeof e[1])throw new we(r);return[n(e[0]),e[1]]})):[],Yo((function(n){for(var i=-1;++i<t;){var r=e[i];if(Et(r[0],this,n))return Et(r[1],this,n)}}))},_n.conforms=function(e){return function(e){var t=Ma(e),i=t.length;return function(r){if(null==r)return!i;for(var o=i;o--;){var a=t[o],s=e[a],c=r[a];if(c===n&&!(a in Object(r))||!s(c))return!1}return!0}}(qn(e,!0))},_n.constant=cs,_n.countBy=To,_n.create=function(e,t){var n=zn(e);return t?Mn(n,t):n},_n.curry=function e(t,i,r){var o=br(t,8,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},_n.curryRight=function e(t,i,r){var o=br(t,16,n,n,n,n,n,i=r?n:i);return o.placeholder=e.placeholder,o},_n.debounce=qo,_n.defaults=Ua,_n.defaultsDeep=Na,_n.defer=zo,_n.delay=$o,_n.difference=Jr,_n.differenceBy=eo,_n.differenceWith=to,_n.drop=no,_n.dropRight=io,_n.dropRightWhile=function(e,t){return e&&e.length?Mi(e,Er(t,3),!0,!0):[]},_n.dropWhile=function(e,t){return e&&e.length?Mi(e,Er(t,3),!0):[]},_n.fill=function(e,t,i,r){var o=e?e.length:0;return o?(i&&"number"!=typeof i&&Pr(e,t,i)&&(i=0,r=o),function(e,t,i,r){var o=e.length;for((i=Ea(i))<0&&(i=-i>o?0:o+i),(r=r===n||r>o?o:Ea(r))<0&&(r+=o),r=i>r?0:Sa(r);i<r;)e[i++]=t;return e}(e,t,i,r)):[]},_n.filter=function(e,t){return(ia(e)?kt:Yn)(e,Er(t,3))},_n.flatMap=function(e,t){return Zn(No(e,t),1)},_n.flatMapDeep=function(e,t){return Zn(No(e,t),p)},_n.flatMapDepth=function(e,t,i){return i=i===n?1:Ea(i),Zn(No(e,t),i)},_n.flatten=function(e){return(e?e.length:0)?Zn(e,1):[]},_n.flattenDeep=function(e){return(e?e.length:0)?Zn(e,p):[]},_n.flattenDepth=function(e,t){return(e?e.length:0)?Zn(e,t=t===n?1:Ea(t)):[]},_n.flip=function(e){return br(e,512)},_n.flow=us,_n.flowRight=ps,_n.fromPairs=function(e){for(var t=-1,n=e?e.length:0,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},_n.functions=function(e){return null==e?[]:ii(e,Ma(e))},_n.functionsIn=function(e){return null==e?[]:ii(e,Fa(e))},_n.groupBy=Io,_n.initial=function(e){return io(e,1)},_n.intersection=oo,_n.intersectionBy=ao,_n.intersectionWith=so,_n.invert=Pa,_n.invertBy=ja,_n.invokeMap=Oo,_n.iteratee=fs,_n.keyBy=Uo,_n.keys=Ma,_n.keysIn=Fa,_n.map=No,_n.mapKeys=function(e,t){var n={};return t=Er(t,3),ti(e,(function(e,i,r){n[t(e,i,r)]=e})),n},_n.mapValues=function(e,t){var n={};return t=Er(t,3),ti(e,(function(e,i,r){n[i]=t(e,i,r)})),n},_n.matches=function(e){return gi(qn(e,!0))},_n.matchesProperty=function(e,t){return bi(e,qn(t,!0))},_n.memoize=Ko,_n.merge=Ga,_n.mergeWith=qa,_n.method=hs,_n.methodOf=ds,_n.mixin=ms,_n.negate=function(e){if("function"!=typeof e)throw new we(r);return function(){return!e.apply(this,arguments)}},_n.nthArg=function(e){return e=Ea(e),Yo((function(t){return xi(t,e)}))},_n.omit=za,_n.omitBy=function(e,t){return t=Er(t),Ei(e,(function(e,n){return!t(e,n)}))},_n.once=function(e){return Mo(2,e)},_n.orderBy=function(e,t,i,r){return null==e?[]:(ia(t)||(t=null==t?[]:[t]),ia(i=r?n:i)||(i=null==i?[]:[i]),_i(e,t,i))},_n.over=gs,_n.overArgs=Wo,_n.overEvery=bs,_n.overSome=ys,_n.partial=Xo,_n.partialRight=Vo,_n.partition=Lo,_n.pick=$a,_n.pickBy=function(e,t){return null==e?{}:Ei(e,Er(t))},_n.property=xs,_n.propertyOf=function(e){return function(t){return null==e?n:ri(e,t)}},_n.pull=uo,_n.pullAll=po,_n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Ai(e,t,Er(n)):e},_n.pullAllWith=function(e,t,i){return e&&e.length&&t&&t.length?Ai(e,t,n,i):e},_n.pullAt=lo,_n.range=_s,_n.rangeRight=ws,_n.rearg=Qo,_n.reject=function(e,t){var n=ia(e)?kt:Yn;return t=Er(t,3),n(e,(function(e,n,i){return!t(e,n,i)}))},_n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],o=e.length;for(t=Er(t,3);++i<o;){var a=e[i];t(a,i,e)&&(n.push(a),r.push(i))}return Ri(e,r),n},_n.rest=Yo,_n.reverse=fo,_n.sampleSize=Do,_n.set=function(e,t,n){return null==e?e:Bi(e,t,n)},_n.setWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:Bi(e,t,i,r)},_n.shuffle=function(e){return Do(e,h)},_n.slice=function(e,t,i){var r=e?e.length:0;return r?(i&&"number"!=typeof i&&Pr(e,t,i)?(t=0,i=r):(t=null==t?0:Ea(t),i=i===n?r:Ea(i)),Ii(e,t,i)):[]},_n.sortBy=Po,_n.sortedUniq=function(e){return e&&e.length?Li(e):[]},_n.sortedUniqBy=function(e,t){return e&&e.length?Li(e,Er(t)):[]},_n.split=function(e,t,i){return i&&"number"!=typeof i&&Pr(e,t,i)&&(t=i=n),(i=i===n?h:i>>>0)?(e=ka(e))&&("string"==typeof t||null!=t&&!va(t))&&""==(t=Pi(t))&&et.test(e)?Wi(an(e),0,i):dt.call(e,t,i):[]},_n.spread=function(e,t){if("function"!=typeof e)throw new we(r);return t=t===n?0:at(Ea(t),0),Yo((function(n){var i=n[t],r=Wi(n,0,t);return i&&It(r,i),Et(e,this,r)}))},_n.tail=function(e){return no(e,1)},_n.take=function(e,t,i){return e&&e.length?Ii(e,0,(t=i||t===n?1:Ea(t))<0?0:t):[]},_n.takeRight=function(e,t,i){var r=e?e.length:0;return r?Ii(e,(t=r-(t=i||t===n?1:Ea(t)))<0?0:t,r):[]},_n.takeRightWhile=function(e,t){return e&&e.length?Mi(e,Er(t,3),!1,!0):[]},_n.takeWhile=function(e,t){return e&&e.length?Mi(e,Er(t,3)):[]},_n.tap=function(e,t){return t(e),e},_n.throttle=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new we(r);return la(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),qo(e,t,{leading:i,maxWait:t,trailing:o})},_n.thru=Ro,_n.toArray=wa,_n.toPairs=Ka,_n.toPairsIn=Wa,_n.toPath=function(e){return ia(e)?Ct(e,Qr):ba(e)?[e]:Zi(Vr(e))},_n.toPlainObject=Ra,_n.transform=function(e,t,n){var i=ia(e)||ya(e);if(t=Er(t,4),null==n)if(i||la(e)){var r=e.constructor;n=i?ia(e)?new r:[]:ca(r)?zn(Tr(e)):{}}else n={};return(i?At:ti)(e,(function(e,i,r){return t(n,e,i,r)})),n},_n.unary=function(e){return Ho(e,1)},_n.union=ho,_n.unionBy=mo,_n.unionWith=vo,_n.uniq=function(e){return e&&e.length?ji(e):[]},_n.uniqBy=function(e,t){return e&&e.length?ji(e,Er(t)):[]},_n.uniqWith=function(e,t){return e&&e.length?ji(e,n,t):[]},_n.unset=function(e,t){return null==e||function(e,t){e=$r(e,t=jr(t,e)?[t]:Ki(t));var n=Qr(co(t));return!(null!=e&&si(e,n))||delete e[n]}(e,t)},_n.unzip=go,_n.unzipWith=bo,_n.update=function(e,t,n){return null==e?e:Hi(e,t,$i(n))},_n.updateWith=function(e,t,i,r){return r="function"==typeof r?r:n,null==e?e:Hi(e,t,$i(i),r)},_n.values=Xa,_n.valuesIn=function(e){return null==e?[]:$t(e,Fa(e))},_n.without=yo,_n.words=os,_n.wrap=function(e,t){return Xo(t=null==t?ls:t,e)},_n.xor=xo,_n.xorBy=_o,_n.xorWith=wo,_n.zip=Eo,_n.zipObject=function(e,t){return qi(e||[],t||[],jn)},_n.zipObjectDeep=function(e,t){return qi(e||[],t||[],Bi)},_n.zipWith=So,_n.entries=Ka,_n.entriesIn=Wa,_n.extend=Ba,_n.extendWith=Ca,ms(_n,_n),_n.add=Es,_n.attempt=as,_n.camelCase=Va,_n.capitalize=Qa,_n.ceil=Ss,_n.clamp=function(e,t,i){return i===n&&(i=t,t=n),i!==n&&(i=(i=Aa(i))==i?i:0),t!==n&&(t=(t=Aa(t))==t?t:0),Gn(Aa(e),t,i)},_n.clone=function(e){return qn(e,!1,!0)},_n.cloneDeep=function(e){return qn(e,!0,!0)},_n.cloneDeepWith=function(e,t){return qn(e,!0,!0,t)},_n.cloneWith=function(e,t){return qn(e,!1,!0,t)},_n.deburr=Ya,_n.divide=As,_n.endsWith=function(e,t,i){e=ka(e),t=Pi(t);var r=e.length;return i=i===n?r:Gn(Ea(i),0,r),(i-=t.length)>=0&&e.indexOf(t,i)==i},_n.eq=Jo,_n.escape=function(e){return(e=ka(e))&&X.test(e)?e.replace(K,Qt):e},_n.escapeRegExp=function(e){return(e=ka(e))&&ne.test(e)?e.replace(te,"\\$&"):e},_n.every=function(e,t,i){var r=ia(e)?Rt:Vn;return i&&Pr(e,t,i)&&(t=n),r(e,Er(t,3))},_n.find=function(e,t){if(t=Er(t,3),ia(e)){var i=Dt(e,t);return i>-1?e[i]:n}return Lt(e,t,Wn)},_n.findIndex=function(e,t){return e&&e.length?Dt(e,Er(t,3)):-1},_n.findKey=function(e,t){return Lt(e,Er(t,3),ti,!0)},_n.findLast=function(e,t){if(t=Er(t,3),ia(e)){var i=Dt(e,t,!0);return i>-1?e[i]:n}return Lt(e,t,Xn)},_n.findLastIndex=function(e,t){return e&&e.length?Dt(e,Er(t,3),!0):-1},_n.findLastKey=function(e,t){return Lt(e,Er(t,3),ni,!0)},_n.floor=Rs,_n.forEach=Bo,_n.forEachRight=Co,_n.forIn=function(e,t){return null==e?e:Jn(e,Er(t),Fa)},_n.forInRight=function(e,t){return null==e?e:ei(e,Er(t),Fa)},_n.forOwn=function(e,t){return e&&ti(e,Er(t))},_n.forOwnRight=function(e,t){return e&&ni(e,Er(t))},_n.get=La,_n.gt=ea,_n.gte=ta,_n.has=function(e,t){return null!=e&&Or(e,t,si)},_n.hasIn=Da,_n.head=ro,_n.identity=ls,_n.includes=function(e,t,n,i){e=ra(e)?e:Xa(e),n=n&&!i?Ea(n):0;var r=e.length;return n<0&&(n=at(r+n,0)),ga(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Pt(e,t,n)>-1},_n.indexOf=function(e,t,n){var i=e?e.length:0;return i?((n=Ea(n))<0&&(n=at(i+n,0)),Pt(e,t,n)):-1},_n.inRange=function(e,t,i){return t=Aa(t)||0,i===n?(i=t,t=0):i=Aa(i)||0,function(e,t,n){return e>=st(t,n)&&e<at(t,n)}(e=Aa(e),t,i)},_n.invoke=Ha,_n.isArguments=na,_n.isArray=ia,_n.isArrayBuffer=function(e){return fa(e)&&Ce.call(e)==I},_n.isArrayLike=ra,_n.isArrayLikeObject=oa,_n.isBoolean=function(e){return!0===e||!1===e||fa(e)&&Ce.call(e)==v},_n.isBuffer=aa,_n.isDate=function(e){return fa(e)&&Ce.call(e)==g},_n.isElement=function(e){return!!e&&1===e.nodeType&&fa(e)&&!ma(e)},_n.isEmpty=function(e){if(ra(e)&&(ia(e)||ga(e)||ca(e.splice)||na(e)||aa(e)))return!e.length;if(fa(e)){var t=Ir(e);if(t==w||t==k)return!e.size}for(var n in e)if(ke.call(e,n))return!1;return!(ln&&Ma(e).length)},_n.isEqual=function(e,t){return li(e,t)},_n.isEqualWith=function(e,t,i){var r=(i="function"==typeof i?i:n)?i(e,t):n;return r===n?li(e,t,i):!!r},_n.isError=sa,_n.isFinite=function(e){return"number"==typeof e&&Xe(e)},_n.isFunction=ca,_n.isInteger=ua,_n.isLength=pa,_n.isMap=function(e){return fa(e)&&Ir(e)==w},_n.isMatch=function(e,t){return e===t||fi(e,t,Ar(t))},_n.isMatchWith=function(e,t,i){return i="function"==typeof i?i:n,fi(e,t,Ar(t),i)},_n.isNaN=function(e){return da(e)&&e!=+e},_n.isNative=ha,_n.isNil=function(e){return null==e},_n.isNull=function(e){return null===e},_n.isNumber=da,_n.isObject=la,_n.isObjectLike=fa,_n.isPlainObject=ma,_n.isRegExp=va,_n.isSafeInteger=function(e){return ua(e)&&e>=-9007199254740991&&e<=l},_n.isSet=function(e){return fa(e)&&Ir(e)==k},_n.isString=ga,_n.isSymbol=ba,_n.isTypedArray=ya,_n.isUndefined=function(e){return e===n},_n.isWeakMap=function(e){return fa(e)&&Ir(e)==C},_n.isWeakSet=function(e){return fa(e)&&"[object WeakSet]"==Ce.call(e)},_n.join=function(e,t){return e?Ve.call(e,t):""},_n.kebabCase=Za,_n.last=co,_n.lastIndexOf=function(e,t,i){var r=e?e.length:0;if(!r)return-1;var o=r;if(i!==n&&(o=((o=Ea(i))<0?at(r+o,0):st(o,r-1))+1),t!=t)return Zt(e,o,!0);for(;o--;)if(e[o]===t)return o;return-1},_n.lowerCase=Ja,_n.lowerFirst=es,_n.lt=xa,_n.lte=_a,_n.max=function(e){return e&&e.length?Qn(e,ls,ai):n},_n.maxBy=function(e,t){return e&&e.length?Qn(e,Er(t),ai):n},_n.mean=function(e){return Ht(e,ls)},_n.meanBy=function(e,t){return Ht(e,Er(t))},_n.min=function(e){return e&&e.length?Qn(e,ls,mi):n},_n.minBy=function(e,t){return e&&e.length?Qn(e,Er(t),mi):n},_n.multiply=ks,_n.nth=function(e,t){return e&&e.length?xi(e,Ea(t)):n},_n.noConflict=function(){return xt._===this&&(xt._=Ie),this},_n.noop=vs,_n.now=jo,_n.pad=function(e,t,n){e=ka(e);var i=(t=Ea(t))?on(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return fr(Ke(r),n)+e+fr($e(r),n)},_n.padEnd=function(e,t,n){e=ka(e);var i=(t=Ea(t))?on(e):0;return t&&i<t?e+fr(t-i,n):e},_n.padStart=function(e,t,n){e=ka(e);var i=(t=Ea(t))?on(e):0;return t&&i<t?fr(t-i,n)+e:e},_n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),e=ka(e).replace(ie,""),ct(e,t||(pe.test(e)?16:10))},_n.random=function(e,t,i){if(i&&"boolean"!=typeof i&&Pr(e,t,i)&&(t=i=n),i===n&&("boolean"==typeof t?(i=t,t=n):"boolean"==typeof e&&(i=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Aa(e)||0,t===n?(t=e,e=0):t=Aa(t)||0),e>t){var r=e;e=t,t=r}if(i||e%1||t%1){var o=ut();return st(e+o*(t-e+lt("1e-"+((o+"").length-1))),t)}return ki(e,t)},_n.reduce=function(e,t,n){var i=ia(e)?Ot:Mt,r=arguments.length<3;return i(e,Er(t,4),n,r,Wn)},_n.reduceRight=function(e,t,n){var i=ia(e)?Ut:Mt,r=arguments.length<3;return i(e,Er(t,4),n,r,Xn)},_n.repeat=function(e,t,i){return t=(i?Pr(e,t,i):t===n)?1:Ea(t),Ti(ka(e),t)},_n.replace=function(){var e=arguments,t=ka(e[0]);return e.length<3?t:pt.call(t,e[1],e[2])},_n.result=function(e,t,i){var r=-1,o=(t=jr(t,e)?[t]:Ki(t)).length;for(o||(e=n,o=1);++r<o;){var a=null==e?n:e[Qr(t[r])];a===n&&(r=o,a=i),e=ca(a)?a.call(e):a}return e},_n.round=Ts,_n.runInContext=e,_n.sample=function(e){var t=ra(e)?e:Xa(e),i=t.length;return i>0?t[ki(0,i-1)]:n},_n.size=function(e){if(null==e)return 0;if(ra(e)){var t=e.length;return t&&ga(e)?on(e):t}if(fa(e)){var n=Ir(e);if(n==w||n==k)return e.size}return Ma(e).length},_n.snakeCase=ts,_n.some=function(e,t,i){var r=ia(e)?Nt:Oi;return i&&Pr(e,t,i)&&(t=n),r(e,Er(t,3))},_n.sortedIndex=function(e,t){return Ui(e,t)},_n.sortedIndexBy=function(e,t,n){return Ni(e,t,Er(n))},_n.sortedIndexOf=function(e,t){var n=e?e.length:0;if(n){var i=Ui(e,t);if(i<n&&Jo(e[i],t))return i}return-1},_n.sortedLastIndex=function(e,t){return Ui(e,t,!0)},_n.sortedLastIndexBy=function(e,t,n){return Ni(e,t,Er(n),!0)},_n.sortedLastIndexOf=function(e,t){if(e?e.length:0){var n=Ui(e,t,!0)-1;if(Jo(e[n],t))return n}return-1},_n.startCase=ns,_n.startsWith=function(e,t,n){return e=ka(e),n=Gn(Ea(n),0,e.length),e.lastIndexOf(Pi(t),n)==n},_n.subtract=Bs,_n.sum=function(e){return e&&e.length?Ft(e,ls):0},_n.sumBy=function(e,t){return e&&e.length?Ft(e,Er(t)):0},_n.template=function(e,t,i){var r=_n.templateSettings;i&&Pr(e,t,i)&&(t=n),e=ka(e),t=Ca({},t,r,Dn);var o,a,s=Ca({},t.imports,r.imports,Dn),c=Ma(s),u=$t(s,c),p=0,l=t.interpolate||ge,f="__p += '",h=_e((t.escape||ge).source+"|"+l.source+"|"+(l===Y?ce:ge).source+"|"+(t.evaluate||ge).source+"|$","g"),d="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++it+"]")+"\n";e.replace(h,(function(t,n,i,r,s,c){return i||(i=r),f+=e.slice(p,c).replace(be,Yt),n&&(o=!0,f+="' +\n__e("+n+") +\n'"),s&&(a=!0,f+="';\n"+s+";\n__p += '"),i&&(f+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),p=c+t.length,t})),f+="';\n";var m=t.variable;m||(f="with (obj) {\n"+f+"\n}\n"),f=(a?f.replace(G,""):f).replace(q,"$1").replace(z,"$1;"),f="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=as((function(){return Function(c,d+"return "+f).apply(n,u)}));if(v.source=f,sa(v))throw v;return v},_n.times=function(e,t){if((e=Ea(e))<1||e>l)return[];var n=h,i=st(e,h);t=Er(t),e-=h;for(var r=Gt(i,t);++n<e;)t(n);return r},_n.toInteger=Ea,_n.toLength=Sa,_n.toLower=function(e){return ka(e).toLowerCase()},_n.toNumber=Aa,_n.toSafeInteger=function(e){return Gn(Ea(e),-9007199254740991,l)},_n.toString=ka,_n.toUpper=function(e){return ka(e).toUpperCase()},_n.trim=function(e,t,i){if((e=ka(e))&&(i||t===n))return e.replace(ie,"");if(!e||!(t=Pi(t)))return e;var r=an(e),o=an(t);return Wi(r,Kt(r,o),Wt(r,o)+1).join("")},_n.trimEnd=function(e,t,i){if((e=ka(e))&&(i||t===n))return e.replace(oe,"");if(!e||!(t=Pi(t)))return e;var r=an(e);return Wi(r,0,Wt(r,an(t))+1).join("")},_n.trimStart=function(e,t,i){if((e=ka(e))&&(i||t===n))return e.replace(re,"");if(!e||!(t=Pi(t)))return e;var r=an(e);return Wi(r,Kt(r,an(t))).join("")},_n.truncate=function(e,t){var i=30,r="...";if(la(t)){var o="separator"in t?t.separator:o;i="length"in t?Ea(t.length):i,r="omission"in t?Pi(t.omission):r}var a=(e=ka(e)).length;if(et.test(e)){var s=an(e);a=s.length}if(i>=a)return e;var c=i-on(r);if(c<1)return r;var u=s?Wi(s,0,c).join(""):e.slice(0,c);if(o===n)return u+r;if(s&&(c+=u.length-c),va(o)){if(e.slice(c).search(o)){var p,l=u;for(o.global||(o=_e(o.source,ka(ue.exec(o))+"g")),o.lastIndex=0;p=o.exec(l);)var f=p.index;u=u.slice(0,f===n?c:f)}}else if(e.indexOf(Pi(o),c)!=c){var h=u.lastIndexOf(o);h>-1&&(u=u.slice(0,h))}return u+r},_n.unescape=function(e){return(e=ka(e))&&W.test(e)?e.replace($,sn):e},_n.uniqueId=function(e){var t=++Te;return ka(e)+t},_n.upperCase=is,_n.upperFirst=rs,_n.each=Bo,_n.eachRight=Co,_n.first=ro,ms(_n,function(){var e={};return ti(_n,(function(t,n){ke.call(_n.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),_n.VERSION="4.11.2",At(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){_n[e].placeholder=_n})),At(["drop","take"],(function(e,t){Sn.prototype[e]=function(i){var r=this.__filtered__;if(r&&!t)return new Sn(this);i=i===n?1:at(Ea(i),0);var o=this.clone();return r?o.__takeCount__=st(i,o.__takeCount__):o.__views__.push({size:st(i,h),type:e+(o.__dir__<0?"Right":"")}),o},Sn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),At(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;Sn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Er(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),At(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Sn.prototype[e]=function(){return this[n](1).value()[0]}})),At(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Sn.prototype[e]=function(){return this.__filtered__?new Sn(this):this[n](1)}})),Sn.prototype.compact=function(){return this.filter(ls)},Sn.prototype.find=function(e){return this.filter(e).head()},Sn.prototype.findLast=function(e){return this.reverse().find(e)},Sn.prototype.invokeMap=Yo((function(e,t){return"function"==typeof e?new Sn(this):this.map((function(n){return pi(n,e,t)}))})),Sn.prototype.reject=function(e){return e=Er(e,3),this.filter((function(t){return!e(t)}))},Sn.prototype.slice=function(e,t){e=Ea(e);var i=this;return i.__filtered__&&(e>0||t<0)?new Sn(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==n&&(i=(t=Ea(t))<0?i.dropRight(-t):i.take(t-e)),i)},Sn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Sn.prototype.toArray=function(){return this.take(h)},ti(Sn.prototype,(function(e,t){var i=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=_n[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(_n.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,c=t instanceof Sn,u=s[0],p=c||ia(t),l=function(e){var t=o.apply(_n,It([e],s));return r&&f?t[0]:t};p&&i&&"function"==typeof u&&1!=u.length&&(c=p=!1);var f=this.__chain__,h=!!this.__actions__.length,d=a&&!f,m=c&&!h;if(!a&&p){t=m?t:new Sn(this);var v=e.apply(t,s);return v.__actions__.push({func:Ro,args:[l],thisArg:n}),new En(v,f)}return d&&m?e.apply(this,s):(v=this.thru(l),d?r?v.value()[0]:v.value():v)})})),At(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ee[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);_n.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(ia(r)?r:[],e)}return this[n]((function(n){return t.apply(ia(n)?n:[],e)}))}})),ti(Sn.prototype,(function(e,t){var n=_n[t];if(n){var i=n.name+"";(fn[i]||(fn[i]=[])).push({name:t,func:n})}})),fn[cr(n,2).name]=[{name:"wrapper",func:n}],Sn.prototype.clone=function(){var e=new Sn(this.__wrapped__);return e.__actions__=Zi(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Zi(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Zi(this.__views__),e},Sn.prototype.reverse=function(){if(this.__filtered__){var e=new Sn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Sn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ia(e),r=t<0,o=n?e.length:0,a=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var o=n[i],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=st(t,e+a);break;case"takeRight":e=at(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),s=a.start,c=a.end,u=c-s,p=r?c:s-1,l=this.__iteratees__,f=l.length,h=0,d=st(u,this.__takeCount__);if(!n||o<i||o==u&&d==u)return Fi(e,this.__actions__);var m=[];e:for(;u--&&h<d;){for(var v=-1,g=e[p+=t];++v<f;){var b=l[v],y=b.iteratee,x=b.type,_=y(g);if(2==x)g=_;else if(!_){if(1==x)continue e;break e}}m[h++]=g}return m},_n.prototype.at=ko,_n.prototype.chain=function(){return Ao(this)},_n.prototype.commit=function(){return new En(this.value(),this.__chain__)},_n.prototype.next=function(){this.__values__===n&&(this.__values__=wa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},_n.prototype.plant=function(e){for(var t,i=this;i instanceof wn;){var r=Zr(i);r.__index__=0,r.__values__=n,t?o.__wrapped__=r:t=r;var o=r;i=i.__wrapped__}return o.__wrapped__=e,t},_n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Sn){var t=e;return this.__actions__.length&&(t=new Sn(this)),(t=t.reverse()).__actions__.push({func:Ro,args:[fo],thisArg:n}),new En(t,this.__chain__)}return this.thru(fo)},_n.prototype.toJSON=_n.prototype.valueOf=_n.prototype.value=function(){return Fi(this.__wrapped__,this.__actions__)},Me&&(_n.prototype[Me]=function(){return this}),_n}();(bt||gt||{})._=cn,ht&&dt?(mt&&((dt.exports=cn)._=cn),ht._=cn):xt._=cn}).call(_)}(ua,ua.exports);var pa=ua.exports;!function(i,o){var a=e,s=t,c=r,u=st,p=n.EventEmitter,l=ca,f=pa;function h(e){this._options=e||{},this.remote={}}function d(e){return"win32"===process.platform?e.replace(/\\/g,"/"):e}c.inherits(h,p),h.prototype.defaults=function(e){if(!e)return this._options;this._options=e||{}},h.prototype.parse=function(e){if(f.isString(e)){var t=e.match(/^([a-zA-Z0-9\-\.]+)(\:.*)?@([^:]+):([^:]+:)?(.*)?$/);if(!t)return{};var n={username:t[1],host:t[3]};return t[2]&&(n.password=t[2].slice(1)),6===t.length&&t[4]&&(n.port=t[4].slice(0,-1)),6===t.length&&t[5]?n.path=t[5]:5===t.length&&t[4]&&(n.path=t[4]),this.remote=n,n}return this.remote=e,e},h.prototype.sftp=function(e){if(this.__sftp)e(null,this.__sftp);else{var t=f.defaults(this.remote,this._options);if(this.__ssh)this.__ssh.connect(t);else{var n=this,i=new l;i.on("connect",(function(){n.emit("connect")})),i.on("ready",(function(){n.emit("ready"),i.sftp((function(t,i){if(t)throw t;n.__sftp=i,e(t,i)}))})),i.on("error",(function(t){n.emit("error",t),e(t)})),i.on("end",(function(){n.emit("end")})),i.on("close",(function(){n.emit("close")})),i.on("keyboard-interactive",(function(e,t,i,r,o){n.emit("keyboard-interactive",e,t,i,r,o)})),i.on("change password",(function(e,t,i){n.emit("change password",e,t,i)})),i.on("tcp connection",(function(e,t,i){n.emit("tcp connection",e,t,i)})),i.connect(t),this.__ssh=i}}},h.prototype.close=function(){this.__sftp&&(this.__sftp.end(),this.__sftp=null),this.__ssh&&(this.__ssh.end(),this.__ssh=null)},h.prototype.mkdir=function(e,t,n){f.isFunction(t)&&(n=t,t=void 0),t&&(t.mode=function(e,t){var n="0755";if("win32"===e)return n;if(t)return t.mode||n}(process.platform,t));var i=this,r=[],o=!1;this.sftp((function(a,c){if(a)return n(a);var p=function(e,n){i.emit("mkdir",e),c.mkdir(e,t,n)};u.until((function(){return o}),(function(t){c.stat(e,(function(n,i){n?(r.push(e),e=s.dirname(e)):o=!0,t()}))}),(function(e){e?n(e):u.eachSeries(r.reverse(),p,n)}))}))},h.prototype.write=function(e,t){var n=e.destination;n=d(n);var i=e.attrs,r=e.content,o=e.chunkSize||32768,c=this;this.sftp((function(p,l){if(p)return t(p);var f=function(n){var s;c.emit("write",e);var f=0,h=0;if(Buffer.isBuffer(r)){var d=[];s=parseInt((r.length-1)/o,10)+1;for(var m=0;m<s;m++)d.push(r.slice(m*o,(m+1)*o));u.eachSeries(d,(function(e,t){c.emit("transfer",e,h,s),l.write(n,e,0,e.length,f,(function(n){f+=e.length,h+=1,t(n)}))}),(function(e){l.close(n,t)}))}else{if("number"!=typeof r)throw new Error("Content should be buffer or file descriptor");s=parseInt((i.size-1)/o,10)+1;var v=new Array(s);u.eachSeries(v,(function(e,t){if(o=Math.min(o,i.size-f)){var u=new Buffer(o);a.read(r,u,0,o,f,(function(e,i,r){c.emit("transfer",r,h,s),l.write(n,r,0,r.length,f,(function(e){f+=r.length,h+=1,t(e)}))}))}else t(p)}),(function(e){l.close(n,(function(e){a.close(r,t)}))}))}};l.open(n,"w",i,(function(t,r){t?(n=d(n=s.join(n,s.basename(e.source))),e.destination=n,l.open(n,"w",i,(function(e,t){f(t)}))):f(r)}))}))},h.prototype.upload=function(e,t,n){t=d(t);var i=this;u.waterfall([function(t){a.stat(e,t)},function(n,r){if(n.isDirectory())return r(new Error("Can not upload a directory"));a.stat(s.dirname(e),(function(e,o){if(e)return r(e);i.mkdir(s.dirname(t),o,(function(e){r(e,n)}))}))},function(t,n){a.open(e,"r",(function(e,i){n(e,t,i)}))},function(n,r,o){i.write({source:e,destination:t,content:r,attrs:n},o)}],(function(e){n(e)}))},h.prototype.download=function(e,t,n){var i=this;i.sftp((function(r,o){if(r)return n(r);var s=o.createReadStream(e);s.on("error",(function(e){n(e)})),s.pipe(a.createWriteStream(t)).on("close",(function(){i.emit("read",e),n(null)})).on("error",(function(e){n(e)}))}))},(i.exports=new h).Client=h}(ct);var la=ct.exports;!function(n,i){var r=e,o=t,a=it(),s=st,c=la.Client,u=new c;(i=n.exports=u).Client=c,i.scp=function(e,t,n,i){"function"==typeof n&&(i=n,n=new c),n.on("error",i);var u=n.parse(e);u.host&&u.path?function(e,t,n,i){var r=e.parse(t);/\/$/.test(n)&&(n+=o.basename(r.path)),e.download(r.path,n,(function(){e.close(),i.apply(this,arguments)}))}(n,u,t,i):function(e,t,n,i){e.parse(n);var c=function(t,n){var i=t[0];s.eachSeries(t,(function(t,n){r.stat(t,(function(r,a){if(r)n(r);else if(a.isFile()){var s=o.relative(i,t);e.upload(t,o.join(e.remote.path,s),n)}else n()}))}),(function(t){e.on("close",(function i(){n(t),e.removeListener("close",i)})),e.close()}))};-1===t.indexOf("*")?r.stat(t,(function(n,r){n?i(n):r.isFile()?e.upload(t,e.remote.path,(function(t){e.on("close",(function n(){i(t),e.removeListener("close",n)})),e.close()})):r.isDirectory()?a(t.replace(/\/$/,"")+"/**/**",(function(e,t){e?i(e):c(t,i)})):i("unsupported")})):a(t,(function(e,t){e?i(e):c(t,i)}))}(n,e,t,i)}}(E,E.exports);var fa,ha,da,ma,va,ga,ba,ya,xa=w(E.exports),_a={exports:{}},wa={exports:{}};function Ea(){if(ma)return da;ma=1;const e=ha?fa:(ha=1,fa={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),t={};for(const n of Object.keys(e))t[e[n]]=n;const n={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};da=n;for(const e of Object.keys(n)){if(!("channels"in n[e]))throw new Error("missing channels property: "+e);if(!("labels"in n[e]))throw new Error("missing channel labels property: "+e);if(n[e].labels.length!==n[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:i}=n[e];delete n[e].channels,delete n[e].labels,Object.defineProperty(n[e],"channels",{value:t}),Object.defineProperty(n[e],"labels",{value:i})}return n.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,i=e[2]/255,r=Math.min(t,n,i),o=Math.max(t,n,i),a=o-r;let s,c;o===r?s=0:t===o?s=(n-i)/a:n===o?s=2+(i-t)/a:i===o&&(s=4+(t-n)/a),s=Math.min(60*s,360),s<0&&(s+=360);const u=(r+o)/2;return c=o===r?0:u<=.5?a/(o+r):a/(2-o-r),[s,100*c,100*u]},n.rgb.hsv=function(e){let t,n,i,r,o;const a=e[0]/255,s=e[1]/255,c=e[2]/255,u=Math.max(a,s,c),p=u-Math.min(a,s,c),l=function(e){return(u-e)/6/p+.5};return 0===p?(r=0,o=0):(o=p/u,t=l(a),n=l(s),i=l(c),a===u?r=i-n:s===u?r=1/3+t-i:c===u&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*o,100*u]},n.rgb.hwb=function(e){const t=e[0],i=e[1];let r=e[2];const o=n.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(i,r));return r=1-1/255*Math.max(t,Math.max(i,r)),[o,100*a,100*r]},n.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,i=e[2]/255,r=Math.min(1-t,1-n,1-i);return[100*((1-t-r)/(1-r)||0),100*((1-n-r)/(1-r)||0),100*((1-i-r)/(1-r)||0),100*r]},n.rgb.keyword=function(n){const i=t[n];if(i)return i;let r,o=1/0;for(const t of Object.keys(e)){const i=e[t],c=(s=i,((a=n)[0]-s[0])**2+(a[1]-s[1])**2+(a[2]-s[2])**2);c<o&&(o=c,r=t)}var a,s;return r},n.keyword.rgb=function(t){return e[t]},n.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,i=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,i=i>.04045?((i+.055)/1.055)**2.4:i/12.92;return[100*(.4124*t+.3576*n+.1805*i),100*(.2126*t+.7152*n+.0722*i),100*(.0193*t+.1192*n+.9505*i)]},n.rgb.lab=function(e){const t=n.rgb.xyz(e);let i=t[0],r=t[1],o=t[2];i/=95.047,r/=100,o/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;return[116*r-16,500*(i-r),200*(r-o)]},n.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,i=e[2]/100;let r,o,a;if(0===n)return a=255*i,[a,a,a];r=i<.5?i*(1+n):i+n-i*n;const s=2*i-r,c=[0,0,0];for(let e=0;e<3;e++)o=t+1/3*-(e-1),o<0&&o++,o>1&&o--,a=6*o<1?s+6*(r-s)*o:2*o<1?r:3*o<2?s+(r-s)*(2/3-o)*6:s,c[e]=255*a;return c},n.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,i=e[2]/100,r=n;const o=Math.max(i,.01);i*=2,n*=i<=1?i:2-i,r*=o<=1?o:2-o;return[t,100*(0===i?2*r/(o+r):2*n/(i+n)),100*((i+n)/2)]},n.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let i=e[2]/100;const r=Math.floor(t)%6,o=t-Math.floor(t),a=255*i*(1-n),s=255*i*(1-n*o),c=255*i*(1-n*(1-o));switch(i*=255,r){case 0:return[i,c,a];case 1:return[s,i,a];case 2:return[a,i,c];case 3:return[a,s,i];case 4:return[c,a,i];case 5:return[i,a,s]}},n.hsv.hsl=function(e){const t=e[0],n=e[1]/100,i=e[2]/100,r=Math.max(i,.01);let o,a;a=(2-n)*i;const s=(2-n)*r;return o=n*r,o/=s<=1?s:2-s,o=o||0,a/=2,[t,100*o,100*a]},n.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,i=e[2]/100;const r=n+i;let o;r>1&&(n/=r,i/=r);const a=Math.floor(6*t),s=1-i;o=6*t-a,0!=(1&a)&&(o=1-o);const c=n+o*(s-n);let u,p,l;switch(a){default:case 6:case 0:u=s,p=c,l=n;break;case 1:u=c,p=s,l=n;break;case 2:u=n,p=s,l=c;break;case 3:u=n,p=c,l=s;break;case 4:u=c,p=n,l=s;break;case 5:u=s,p=n,l=c}return[255*u,255*p,255*l]},n.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,i=e[2]/100,r=e[3]/100;return[255*(1-Math.min(1,t*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r))]},n.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,i=e[2]/100;let r,o,a;return r=3.2406*t+-1.5372*n+-.4986*i,o=-.9689*t+1.8758*n+.0415*i,a=.0557*t+-.204*n+1.057*i,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,a=a>.0031308?1.055*a**(1/2.4)-.055:12.92*a,r=Math.min(Math.max(0,r),1),o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),[255*r,255*o,255*a]},n.xyz.lab=function(e){let t=e[0],n=e[1],i=e[2];t/=95.047,n/=100,i/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;return[116*n-16,500*(t-n),200*(n-i)]},n.lab.xyz=function(e){let t,n,i;n=(e[0]+16)/116,t=e[1]/500+n,i=n-e[2]/200;const r=n**3,o=t**3,a=i**3;return n=r>.008856?r:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,i=a>.008856?a:(i-16/116)/7.787,t*=95.047,n*=100,i*=108.883,[t,n,i]},n.lab.lch=function(e){const t=e[0],n=e[1],i=e[2];let r;r=360*Math.atan2(i,n)/2/Math.PI,r<0&&(r+=360);return[t,Math.sqrt(n*n+i*i),r]},n.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI;return[t,n*Math.cos(i),n*Math.sin(i)]},n.rgb.ansi16=function(e,t=null){const[i,r,o]=e;let a=null===t?n.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),0===a)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(i/255));return 2===a&&(s+=60),s},n.hsv.ansi16=function(e){return n.rgb.ansi16(n.hsv.rgb(e),e[2])},n.rgb.ansi256=function(e){const t=e[0],n=e[1],i=e[2];if(t===n&&n===i)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;return 16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(i/255*5)},n.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},n.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;e-=16;return[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},n.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},n.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map((e=>e+e)).join(""));const i=parseInt(n,16);return[i>>16&255,i>>8&255,255&i]},n.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,i=e[2]/255,r=Math.max(Math.max(t,n),i),o=Math.min(Math.min(t,n),i),a=r-o;let s,c;return s=a<1?o/(1-a):0,c=a<=0?0:r===t?(n-i)/a%6:r===n?2+(i-t)/a:4+(t-n)/a,c/=6,c%=1,[360*c,100*a,100*s]},n.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,i=n<.5?2*t*n:2*t*(1-n);let r=0;return i<1&&(r=(n-.5*i)/(1-i)),[e[0],100*i,100*r]},n.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,i=t*n;let r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},n.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,i=e[2]/100;if(0===n)return[255*i,255*i,255*i];const r=[0,0,0],o=t%1*6,a=o%1,s=1-a;let c=0;switch(Math.floor(o)){case 0:r[0]=1,r[1]=a,r[2]=0;break;case 1:r[0]=s,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=a;break;case 3:r[0]=0,r[1]=s,r[2]=1;break;case 4:r[0]=a,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=s}return c=(1-n)*i,[255*(n*r[0]+c),255*(n*r[1]+c),255*(n*r[2]+c)]},n.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let i=0;return n>0&&(i=t/n),[e[0],100*i,100*n]},n.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let i=0;return n>0&&n<.5?i=t/(2*n):n>=.5&&n<1&&(i=t/(2*(1-n))),[e[0],100*i,100*n]},n.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},n.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,i=n-t;let r=0;return i<1&&(r=(n-i)/(1-i)),[e[0],100*i,100*r]},n.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},n.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},n.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},n.gray.hsl=function(e){return[0,0,e[0]]},n.gray.hsv=n.gray.hsl,n.gray.hwb=function(e){return[0,100,e[0]]},n.gray.cmyk=function(e){return[0,0,0,e[0]]},n.gray.lab=function(e){return[e[0],0,0]},n.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},n.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]},da}function Sa(){if(ga)return va;ga=1;const e=Ea();function t(t){const n=function(){const t={},n=Object.keys(e);for(let e=n.length,i=0;i<e;i++)t[n[i]]={distance:-1,parent:null};return t}(),i=[t];for(n[t].distance=0;i.length;){const t=i.pop(),r=Object.keys(e[t]);for(let e=r.length,o=0;o<e;o++){const e=r[o],a=n[e];-1===a.distance&&(a.distance=n[t].distance+1,a.parent=t,i.unshift(e))}}return n}function n(e,t){return function(n){return t(e(n))}}function i(t,i){const r=[i[t].parent,t];let o=e[i[t].parent][t],a=i[t].parent;for(;i[a].parent;)r.unshift(i[a].parent),o=n(e[i[a].parent][a],o),a=i[a].parent;return o.conversion=r,o}return va=function(e){const n=t(e),r={},o=Object.keys(n);for(let e=o.length,t=0;t<e;t++){const e=o[t];null!==n[e].parent&&(r[e]=i(e,n))}return r},va}function Aa(){if(ya)return ba;ya=1;const e=Ea(),t=Sa(),n={};return Object.keys(e).forEach((i=>{n[i]={},Object.defineProperty(n[i],"channels",{value:e[i].channels}),Object.defineProperty(n[i],"labels",{value:e[i].labels});const r=t(i);Object.keys(r).forEach((e=>{const t=r[e];n[i][e]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const i=e(t);if("object"==typeof i)for(let e=i.length,t=0;t<e;t++)i[t]=Math.round(i[t]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}(t),n[i][e].raw=function(e){const t=function(...t){const n=t[0];return null==n?n:(n.length>1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(t)}))})),ba=n}!function(e){const t=(e,t)=>(...n)=>`[${e(...n)+t}m`,n=(e,t)=>(...n)=>{const i=e(...n);return`[${38+t};5;${i}m`},i=(e,t)=>(...n)=>{const i=e(...n);return`[${38+t};2;${i[0]};${i[1]};${i[2]}m`},r=e=>e,o=(e,t,n)=>[e,t,n],a=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const i=n();return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0}),i},enumerable:!0,configurable:!0})};let s;const c=(e,t,n,i)=>{void 0===s&&(s=Aa());const r=i?10:0,o={};for(const[i,a]of Object.entries(s)){const s="ansi16"===i?"ansi":i;i===t?o[s]=e(n,r):"object"==typeof a&&(o[s]=e(a[t],r))}return o};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,s={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};s.color.gray=s.color.blackBright,s.bgColor.bgGray=s.bgColor.bgBlackBright,s.color.grey=s.color.blackBright,s.bgColor.bgGrey=s.bgColor.bgBlackBright;for(const[t,n]of Object.entries(s)){for(const[t,i]of Object.entries(n))s[t]={open:`[${i[0]}m`,close:`[${i[1]}m`},n[t]=s[t],e.set(i[0],i[1]);Object.defineProperty(s,t,{value:n,enumerable:!1})}return Object.defineProperty(s,"codes",{value:e,enumerable:!1}),s.color.close="",s.bgColor.close="",a(s.color,"ansi",(()=>c(t,"ansi16",r,!1))),a(s.color,"ansi256",(()=>c(n,"ansi256",r,!1))),a(s.color,"ansi16m",(()=>c(i,"rgb",o,!1))),a(s.bgColor,"ansi",(()=>c(t,"ansi16",r,!0))),a(s.bgColor,"ansi256",(()=>c(n,"ansi256",r,!0))),a(s.bgColor,"ansi16m",(()=>c(i,"rgb",o,!0))),s}})}(wa);var Ra=wa.exports;const ka=m,Ta=v,Ba=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",i=t.indexOf(n+e),r=t.indexOf("--");return-1!==i&&(-1===r||i<r)},{env:Ca}=process;let Ia;function Oa(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Ua(e,t){if(0===Ia)return 0;if(Ba("color=16m")||Ba("color=full")||Ba("color=truecolor"))return 3;if(Ba("color=256"))return 2;if(e&&!t&&void 0===Ia)return 0;const n=Ia||0;if("dumb"===Ca.TERM)return n;if("win32"===process.platform){const e=ka.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Ca)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in Ca))||"codeship"===Ca.CI_NAME?1:n;if("TEAMCITY_VERSION"in Ca)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Ca.TEAMCITY_VERSION)?1:0;if("truecolor"===Ca.COLORTERM)return 3;if("TERM_PROGRAM"in Ca){const e=parseInt((Ca.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Ca.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Ca.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Ca.TERM)||"COLORTERM"in Ca?1:n}Ba("no-color")||Ba("no-colors")||Ba("color=false")||Ba("color=never")?Ia=0:(Ba("color")||Ba("colors")||Ba("color=true")||Ba("color=always"))&&(Ia=1),"FORCE_COLOR"in Ca&&(Ia="true"===Ca.FORCE_COLOR?1:"false"===Ca.FORCE_COLOR?0:0===Ca.FORCE_COLOR.length?1:Math.min(parseInt(Ca.FORCE_COLOR,10),3));var Na={supportsColor:function(e){return Oa(Ua(e,e&&e.isTTY))},stdout:Oa(Ua(!0,Ta.isatty(1))),stderr:Oa(Ua(!0,Ta.isatty(2)))};var La,Da,Pa={stringReplaceAll:(e,t,n)=>{let i=e.indexOf(t);if(-1===i)return e;const r=t.length;let o=0,a="";do{a+=e.substr(o,i-o)+t+n,o=i+r,i=e.indexOf(t,o)}while(-1!==i);return a+=e.substr(o),a},stringEncaseCRLFWithFirstIndex:(e,t,n,i)=>{let r=0,o="";do{const a="\r"===e[i-1];o+=e.substr(r,(a?i-1:i)-r)+t+(a?"\r\n":"\n")+n,r=i+1,i=e.indexOf("\n",r)}while(-1!==i);return o+=e.substr(r),o}};const ja=Ra,{stdout:Ha,stderr:Ma}=Na,{stringReplaceAll:Fa,stringEncaseCRLFWithFirstIndex:Ga}=Pa,{isArray:qa}=Array,za=["ansi","ansi","ansi256","ansi16m"],$a=Object.create(null);let Ka=class{constructor(e){return Wa(e)}};const Wa=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=Ha?Ha.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>ts(t.template,...e),Object.setPrototypeOf(t,Xa.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Ka,t.template};function Xa(e){return Wa(e)}for(const[by,yy]of Object.entries(ja))$a[by]={get(){const e=Za(this,Ya(yy.open,yy.close,this._styler),this._isEmpty);return Object.defineProperty(this,by,{value:e}),e}};$a.visible={get(){const e=Za(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const Va=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const xy of Va)$a[xy]={get(){const{level:e}=this;return function(...t){const n=Ya(ja.color[za[e]][xy](...t),ja.color.close,this._styler);return Za(this,n,this._isEmpty)}}};for(const _y of Va){$a["bg"+_y[0].toUpperCase()+_y.slice(1)]={get(){const{level:e}=this;return function(...t){const n=Ya(ja.bgColor[za[e]][_y](...t),ja.bgColor.close,this._styler);return Za(this,n,this._isEmpty)}}}}const Qa=Object.defineProperties((()=>{}),{...$a,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Ya=(e,t,n)=>{let i,r;return void 0===n?(i=e,r=t):(i=n.openAll+e,r=t+n.closeAll),{open:e,close:t,openAll:i,closeAll:r,parent:n}},Za=(e,t,n)=>{const i=(...e)=>qa(e[0])&&qa(e[0].raw)?Ja(i,ts(i,...e)):Ja(i,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(i,Qa),i._generator=e,i._styler=t,i._isEmpty=n,i},Ja=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:i,closeAll:r}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=Fa(t,n.close,n.open),n=n.parent;const o=t.indexOf("\n");return-1!==o&&(t=Ga(t,r,i,o)),i+t+r};let es;const ts=(e,...t)=>{const[n]=t;if(!qa(n)||!qa(n.raw))return t.join(" ");const i=t.slice(1),r=[n.raw[0]];for(let e=1;e<n.length;e++)r.push(String(i[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]));return void 0===es&&(es=function(){if(Da)return La;Da=1;const e=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,t=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,r=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function o(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):r.get(e)||e}function a(e,t){const r=[],a=t.trim().split(/\s*,\s*/g);let s;for(const t of a){const a=Number(t);if(Number.isNaN(a)){if(!(s=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(s[2].replace(i,((e,t,n)=>t?o(t):n)))}else r.push(a)}return r}function s(e){t.lastIndex=0;const n=[];let i;for(;null!==(i=t.exec(e));){const e=i[1];if(i[2]){const t=a(e,i[2]);n.push([e].concat(t))}else n.push([e])}return n}function c(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let i=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in i))throw new Error(`Unknown Chalk style: ${e}`);i=t.length>0?i[e](...t):i[e]}return i}return La=(t,n)=>{const i=[],r=[];let a=[];if(n.replace(e,((e,n,u,p,l,f)=>{if(n)a.push(o(n));else if(p){const e=a.join("");a=[],r.push(0===i.length?e:c(t,i)(e)),i.push({inverse:u,styles:s(p)})}else if(l){if(0===i.length)throw new Error("Found extraneous } in Chalk template literal");r.push(c(t,i)(a.join(""))),a=[],i.pop()}else a.push(f)})),r.push(a.join("")),i.length>0){const e=`Chalk template literal is missing ${i.length} closing bracket${1===i.length?"":"s"} (\`}\`)`;throw new Error(e)}return r.join("")},La}()),es(e,r.join(""))};Object.defineProperties(Xa.prototype,$a);const ns=Xa();ns.supportsColor=Ha,ns.stderr=Xa({level:Ma?Ma.level:0}),ns.stderr.supportsColor=Ma;var is=ns,rs={},os={exports:{}},as={exports:{}};const ss=(e,t)=>{for(const n of Reflect.ownKeys(t))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));return e};as.exports=ss,as.exports.default=ss;const cs=as.exports,us=new WeakMap,ps=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,i=0;const r=e.displayName||e.name||"<anonymous>",o=function(...a){if(us.set(o,++i),1===i)n=e.apply(this,a),e=null;else if(!0===t.throw)throw new Error(`Function \`${r}\` can only be called once`);return n};return cs(o,e),us.set(o,i),o};os.exports=ps,os.exports.default=ps,os.exports.callCount=e=>{if(!us.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return us.get(e)};var ls,fs=os.exports,hs={exports:{}},ds={exports:{}};var ms=_.process;const vs=function(e){return e&&"object"==typeof e&&"function"==typeof e.removeListener&&"function"==typeof e.emit&&"function"==typeof e.reallyExit&&"function"==typeof e.listeners&&"function"==typeof e.kill&&"number"==typeof e.pid&&"function"==typeof e.on};if(vs(ms)){var gs,bs=i,ys=(ls||(ls=1,function(e){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}(ds)),ds.exports),xs=/^win/i.test(ms.platform),_s=n;"function"!=typeof _s&&(_s=_s.EventEmitter),ms.__signal_exit_emitter__?gs=ms.__signal_exit_emitter__:((gs=ms.__signal_exit_emitter__=new _s).count=0,gs.emitted={}),gs.infinite||(gs.setMaxListeners(1/0),gs.infinite=!0),hs.exports=function(e,t){if(!vs(_.process))return function(){};bs.equal(typeof e,"function","a callback must be provided for exit handler"),!1===As&&Rs();var n="exit";t&&t.alwaysLast&&(n="afterexit");return gs.on(n,e),function(){gs.removeListener(n,e),0===gs.listeners("exit").length&&0===gs.listeners("afterexit").length&&ws()}};var ws=function(){As&&vs(_.process)&&(As=!1,ys.forEach((function(e){try{ms.removeListener(e,Ss[e])}catch(e){}})),ms.emit=Bs,ms.reallyExit=ks,gs.count-=1)};hs.exports.unload=ws;var Es=function(e,t,n){gs.emitted[e]||(gs.emitted[e]=!0,gs.emit(e,t,n))},Ss={};ys.forEach((function(e){Ss[e]=function(){vs(_.process)&&(ms.listeners(e).length===gs.count&&(ws(),Es("exit",null,e),Es("afterexit",null,e),xs&&"SIGHUP"===e&&(e="SIGINT"),ms.kill(ms.pid,e)))}})),hs.exports.signals=function(){return ys};var As=!1,Rs=function(){!As&&vs(_.process)&&(As=!0,gs.count+=1,ys=ys.filter((function(e){try{return ms.on(e,Ss[e]),!0}catch(e){return!1}})),ms.emit=Cs,ms.reallyExit=Ts)};hs.exports.load=Rs;var ks=ms.reallyExit,Ts=function(e){vs(_.process)&&(ms.exitCode=e||0,Es("exit",ms.exitCode,null),Es("afterexit",ms.exitCode,null),ks.call(ms,ms.exitCode))},Bs=ms.emit,Cs=function(e,t){if("exit"===e&&vs(_.process)){void 0!==t&&(ms.exitCode=t);var n=Bs.apply(this,arguments);return Es("exit",ms.exitCode,null),Es("afterexit",ms.exitCode,null),n}return Bs.apply(this,arguments)}}else hs.exports=function(){return function(){}};var Is=hs.exports;const Os=Is;var Us=fs((()=>{Os((()=>{process.stderr.write("[?25h")}),{alwaysLast:!0})}));!function(e){const t=Us;let n=!1;e.show=(e=process.stderr)=>{e.isTTY&&(n=!1,e.write("[?25h"))},e.hide=(e=process.stderr)=>{e.isTTY&&(t(),n=!0,e.write("[?25l"))},e.toggle=(t,i)=>{void 0!==t&&(n=t),n?e.show(i):e.hide(i)}}(rs);var Ns={dots:{interval:80,frames:["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},dots2:{interval:80,frames:["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},dots3:{interval:80,frames:["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},dots4:{interval:80,frames:["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},dots5:{interval:80,frames:["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},dots6:{interval:80,frames:["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},dots7:{interval:80,frames:["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},dots8:{interval:80,frames:["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},dots9:{interval:80,frames:["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},dots10:{interval:80,frames:["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},dots11:{interval:100,frames:["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},dots12:{interval:80,frames:["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},dots13:{interval:80,frames:["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},dots8Bit:{interval:80,frames:["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},sand:{interval:80,frames:["⠁","⠂","⠄","⡀","⡈","⡐","⡠","⣀","⣁","⣂","⣄","⣌","⣔","⣤","⣥","⣦","⣮","⣶","⣷","⣿","⡿","⠿","⢟","⠟","⡛","⠛","⠫","⢋","⠋","⠍","⡉","⠉","⠑","⠡","⢁"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["⠂","-","–","—","–","-"]},pipe:{interval:100,frames:["┤","┘","┴","└","├","┌","┬","┐"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["✶","✸","✹","✺","✹","✷"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","´","-","_","_","_"]},hamburger:{interval:100,frames:["☱","☲","☴"]},growVertical:{interval:120,frames:["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},growHorizontal:{interval:120,frames:["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","°","O","o","."]},noise:{interval:100,frames:["▓","▒","░"]},bounce:{interval:120,frames:["⠁","⠂","⠄","⠂"]},boxBounce:{interval:120,frames:["▖","▘","▝","▗"]},boxBounce2:{interval:100,frames:["▌","▀","▐","▄"]},triangle:{interval:50,frames:["◢","◣","◤","◥"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["◜","◠","◝","◞","◡","◟"]},circle:{interval:120,frames:["◡","⊙","◠"]},squareCorners:{interval:180,frames:["◰","◳","◲","◱"]},circleQuarters:{interval:120,frames:["◴","◷","◶","◵"]},circleHalves:{interval:50,frames:["◐","◓","◑","◒"]},squish:{interval:100,frames:["╫","╪"]},toggle:{interval:250,frames:["⊶","⊷"]},toggle2:{interval:80,frames:["▫","▪"]},toggle3:{interval:120,frames:["□","■"]},toggle4:{interval:100,frames:["■","□","▪","▫"]},toggle5:{interval:100,frames:["▮","▯"]},toggle6:{interval:300,frames:["ဝ","၀"]},toggle7:{interval:80,frames:["⦾","⦿"]},toggle8:{interval:100,frames:["◍","◌"]},toggle9:{interval:100,frames:["◉","◎"]},toggle10:{interval:100,frames:["㊂","㊀","㊁"]},toggle11:{interval:50,frames:["⧇","⧆"]},toggle12:{interval:120,frames:["☗","☖"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["←","↖","↑","↗","→","↘","↓","↙"]},arrow2:{interval:80,frames:["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},arrow3:{interval:120,frames:["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},smiley:{interval:200,frames:["😄 ","😝 "]},monkey:{interval:300,frames:["🙈 ","🙈 ","🙉 ","🙊 "]},hearts:{interval:100,frames:["💛 ","💙 ","💜 ","💚 ","❤️ "]},clock:{interval:100,frames:["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},earth:{interval:180,frames:["🌍 ","🌎 ","🌏 "]},material:{interval:17,frames:["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},moon:{interval:80,frames:["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},runner:{interval:140,frames:["🚶 ","🏃 "]},pong:{interval:80,frames:["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},shark:{interval:120,frames:["▐|\\____________▌","▐_|\\___________▌","▐__|\\__________▌","▐___|\\_________▌","▐____|\\________▌","▐_____|\\_______▌","▐______|\\______▌","▐_______|\\_____▌","▐________|\\____▌","▐_________|\\___▌","▐__________|\\__▌","▐___________|\\_▌","▐____________|\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},christmas:{interval:400,frames:["🌲","🎄"]},grenade:{interval:80,frames:["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},point:{interval:125,frames:["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},layer:{interval:150,frames:["-","=","≡"]},betaWave:{interval:80,frames:["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},fingerDance:{interval:160,frames:["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},fistBump:{interval:80,frames:["🤜    🤛 ","🤜    🤛 ","🤜    🤛 "," 🤜  🤛  ","  🤜🤛   "," 🤜✨🤛   ","🤜 ✨ 🤛  "]},soccerHeader:{interval:80,frames:[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},mindblown:{interval:160,frames:["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ ","  ","  ","  "]},speaker:{interval:160,frames:["🔈 ","🔉 ","🔊 ","🔉 "]},orangePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},bluePulse:{interval:100,frames:["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},orangeBluePulse:{interval:100,frames:["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},timeTravel:{interval:100,frames:["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},aesthetic:{interval:80,frames:["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},dwarfFortress:{interval:80,frames:[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}};const Ls=Object.assign({},Ns),Ds=Object.keys(Ls);Object.defineProperty(Ls,"random",{get(){const e=Math.floor(Math.random()*Ds.length),t=Ds[e];return Ls[t]}});var Ps=Ls,js=()=>"win32"!==process.platform||(Boolean(process.env.CI)||Boolean(process.env.WT_SESSION)||"vscode"===process.env.TERM_PROGRAM||"xterm-256color"===process.env.TERM||"alacritty"===process.env.TERM);const Hs=is,Ms=js,Fs={info:Hs.blue("ℹ"),success:Hs.green("✔"),warning:Hs.yellow("⚠"),error:Hs.red("✖")},Gs={info:Hs.blue("i"),success:Hs.green("√"),warning:Hs.yellow("‼"),error:Hs.red("×")};var qs=Ms()?Fs:Gs;const zs=({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")};var $s={exports:{}},Ks={exports:{}};!function(e){var t=function(){function e(t,i,r,o){"object"==typeof i&&(r=i.depth,o=i.prototype,i.filter,i=i.circular);var a=[],s=[],c="undefined"!=typeof Buffer;return void 0===i&&(i=!0),void 0===r&&(r=1/0),function t(r,u){if(null===r)return null;if(0==u)return r;var p,l;if("object"!=typeof r)return r;if(e.__isArray(r))p=[];else if(e.__isRegExp(r))p=new RegExp(r.source,n(r)),r.lastIndex&&(p.lastIndex=r.lastIndex);else if(e.__isDate(r))p=new Date(r.getTime());else{if(c&&Buffer.isBuffer(r))return p=Buffer.allocUnsafe?Buffer.allocUnsafe(r.length):new Buffer(r.length),r.copy(p),p;void 0===o?(l=Object.getPrototypeOf(r),p=Object.create(l)):(p=Object.create(o),l=o)}if(i){var f=a.indexOf(r);if(-1!=f)return s[f];a.push(r),s.push(p)}for(var h in r){var d;l&&(d=Object.getOwnPropertyDescriptor(l,h)),d&&null==d.set||(p[h]=t(r[h],u-1))}return p}(t,r)}function t(e){return Object.prototype.toString.call(e)}function n(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return e.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},e.__objToStr=t,e.__isDate=function(e){return"object"==typeof e&&"[object Date]"===t(e)},e.__isArray=function(e){return"object"==typeof e&&"[object Array]"===t(e)},e.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===t(e)},e.__getRegExpFlags=n,e}();e.exports&&(e.exports=t)}(Ks);var Ws=Ks.exports,Xs=function(e,t){return e=e||{},Object.keys(t).forEach((function(n){void 0===e[n]&&(e[n]=Ws(t[n]))})),e},Vs=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],Qs={nul:0,control:0};function Ys(e,t){if("string"!=typeof e)return Zs(e,t);for(var n=0,i=0;i<e.length;i++){var r=Zs(e.charCodeAt(i),t);if(r<0)return-1;n+=r}return n}function Zs(e,t){return 0===e?t.nul:e<32||e>=127&&e<160?t.control:function(e){var t,n=0,i=Vs.length-1;if(e<Vs[0][0]||e>Vs[i][1])return!1;for(;i>=n;)if(t=Math.floor((n+i)/2),e>Vs[t][1])n=t+1;else{if(!(e<Vs[t][0]))return!0;i=t-1}return!1}(e)?0:1+(e>=4352&&(e<=4447||9001==e||9002==e||e>=11904&&e<=42191&&12351!=e||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}$s.exports=function(e){return Ys(e,Qs)},$s.exports.config=function(e){return e=Xs(e||{},Qs),function(t){return Ys(t,e)}};var Js,ec,tc,nc,ic,rc,oc=$s.exports,ac={exports:{}},sc={exports:{}};function cc(){return ec?Js:(ec=1,Js=u)}function uc(){if(nc)return tc;function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function n(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,o(i.key),i)}}function o(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}nc=1;var a=l.Buffer,s=r.inspect,c=s&&s.custom||"inspect";function u(e,t,n){a.prototype.copy.call(e,t,n)}return tc=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var n,r,o;return n=e,r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return a.alloc(0);for(var t=a.allocUnsafe(e>>>0),n=this.head,i=0;n;)u(n.data,t,i),i+=n.data.length,n=n.next;return t}},{key:"consume",value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,i=t.data;for(e-=i.length;t=t.next;){var r=t.data,o=e>r.length?r.length:e;if(o===r.length?i+=r:i+=r.slice(0,e),0==(e-=o)){o===r.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=r.slice(o));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(e){var t=a.allocUnsafe(e),n=this.head,i=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var r=n.data,o=e>r.length?r.length:e;if(r.copy(t,t.length-e,0,o),0==(e-=o)){o===r.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=r.slice(o));break}++i}return this.length-=i,t}},{key:c,value:function(e,n){return s(this,t(t({},n),{},{depth:0,customInspect:!1}))}}],r&&i(n.prototype,r),o&&i(n,o),Object.defineProperty(n,"prototype",{writable:!1}),e}(),tc}function pc(){if(rc)return ic;function e(e,i){n(e,i),t(e)}function t(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}return rc=1,ic={destroy:function(i,r){var o=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(r?r(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,i)):process.nextTick(n,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,(function(n){!r&&n?o._writableState?o._writableState.errorEmitted?process.nextTick(t,o):(o._writableState.errorEmitted=!0,process.nextTick(e,o,n)):process.nextTick(e,o,n):r?(process.nextTick(t,o),r(n)):process.nextTick(t,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,i=e._writableState;n&&n.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}},ic}var lc,fc,hc,dc,mc,vc,gc,bc,yc,xc={};function _c(){if(lc)return xc;lc=1;const e={};function t(t,n,i){i||(i=Error);class r extends i{constructor(e,t,i){super(function(e,t,i){return"string"==typeof n?n:n(e,t,i)}(e,t,i))}}r.prototype.name=i.name,r.prototype.code=t,e[t]=r}function n(e,t){if(Array.isArray(e)){const n=e.length;return e=e.map((e=>String(e))),n>2?`one of ${t} ${e.slice(0,n-1).join(", ")}, or `+e[n-1]:2===n?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}return t("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),t("ERR_INVALID_ARG_TYPE",(function(e,t,i){let r;var o,a;let s;if("string"==typeof t&&(o="not ",t.substr(!a||a<0?0:+a,o.length)===o)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s=`The ${e} ${r} ${n(t,"type")}`;else{const i=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s=`The "${e}" ${i} ${r} ${n(t,"type")}`}return s+=". Received type "+typeof i,s}),TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),xc.codes=e,xc}function wc(){if(hc)return fc;hc=1;var e=_c().codes.ERR_INVALID_OPT_VALUE;return fc={getHighWaterMark:function(t,n,i,r){var o=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(n,r,i);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new e(r?i:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}},fc}function Ec(){if(gc)return vc;function e(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var i=e.entry;e.entry=null;for(;i;){var r=i.callback;t.pendingcb--,r(n),i=i.next}t.corkedRequestsFree.next=e}(t,e)}}var t;gc=1,vc=S,S.WritableState=E;var n={deprecate:mc?dc:(mc=1,dc=r.deprecate)},i=cc(),o=l.Buffer,a=(void 0!==_?_:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var s,c=pc(),u=wc().getHighWaterMark,p=_c().codes,f=p.ERR_INVALID_ARG_TYPE,h=p.ERR_METHOD_NOT_IMPLEMENTED,d=p.ERR_MULTIPLE_CALLBACK,m=p.ERR_STREAM_CANNOT_PIPE,v=p.ERR_STREAM_DESTROYED,g=p.ERR_STREAM_NULL_VALUES,b=p.ERR_STREAM_WRITE_AFTER_END,y=p.ERR_UNKNOWN_ENCODING,x=c.errorOrDestroy;function w(){}function E(n,i,r){t=t||Sc(),n=n||{},"boolean"!=typeof r&&(r=i instanceof t),this.objectMode=!!n.objectMode,r&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=u(this,n,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=!1===n.decodeStrings;this.decodeStrings=!o,this.defaultEncoding=n.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,i=n.sync,r=n.writecb;if("function"!=typeof r)throw new d;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,i,r){--t.pendingcb,n?(process.nextTick(r,i),process.nextTick(C,e,t),e._writableState.errorEmitted=!0,x(e,i)):(r(i),e._writableState.errorEmitted=!0,x(e,i),C(e,t))}(e,n,i,t,r);else{var o=T(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||k(e,n),i?process.nextTick(R,e,n,o,r):R(e,n,o,r)}}(i,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==n.emitClose,this.autoDestroy=!!n.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function S(e){var n=this instanceof(t=t||Sc());if(!n&&!s.call(S,this))return new S(e);this._writableState=new E(e,this,n),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),i.call(this)}function A(e,t,n,i,r,o,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v("write")):n?e._writev(r,t.onwrite):e._write(r,o,t.onwrite),t.sync=!1}function R(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),C(e,t)}function k(t,n){n.bufferProcessing=!0;var i=n.bufferedRequest;if(t._writev&&i&&i.next){var r=n.bufferedRequestCount,o=new Array(r),a=n.corkedRequestsFree;a.entry=i;for(var s=0,c=!0;i;)o[s]=i,i.isBuf||(c=!1),i=i.next,s+=1;o.allBuffers=c,A(t,n,!0,n.length,o,"",a.finish),n.pendingcb++,n.lastBufferedRequest=null,a.next?(n.corkedRequestsFree=a.next,a.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;i;){var u=i.chunk,p=i.encoding,l=i.callback;if(A(t,n,!1,n.objectMode?1:u.length,u,p,l),i=i.next,n.bufferedRequestCount--,n.writing)break}null===i&&(n.lastBufferedRequest=null)}n.bufferedRequest=i,n.bufferProcessing=!1}function T(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function B(e,t){e._final((function(n){t.pendingcb--,n&&x(e,n),t.prefinished=!0,e.emit("prefinish"),C(e,t)}))}function C(e,t){var n=T(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,process.nextTick(B,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return n}return Te(S,i),E.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(E.prototype,"buffer",{get:n.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(s=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!s.call(this,e)||this===S&&(e&&e._writableState instanceof E)}})):s=function(e){return e instanceof this},S.prototype.pipe=function(){x(this,new m)},S.prototype.write=function(e,t,n){var i,r=this._writableState,s=!1,c=!r.objectMode&&(i=e,o.isBuffer(i)||i instanceof a);return c&&!o.isBuffer(e)&&(e=function(e){return o.from(e)}(e)),"function"==typeof t&&(n=t,t=null),c?t="buffer":t||(t=r.defaultEncoding),"function"!=typeof n&&(n=w),r.ending?function(e,t){var n=new b;x(e,n),process.nextTick(t,n)}(this,n):(c||function(e,t,n,i){var r;return null===n?r=new g:"string"==typeof n||t.objectMode||(r=new f("chunk",["string","Buffer"],n)),!r||(x(e,r),process.nextTick(i,r),!1)}(this,r,e,n))&&(r.pendingcb++,s=function(e,t,n,i,r,a){if(!n){var s=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=o.from(t,n));return t}(t,i,r);i!==s&&(n=!0,r="buffer",i=s)}var c=t.objectMode?1:i.length;t.length+=c;var u=t.length<t.highWaterMark;u||(t.needDrain=!0);if(t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:r,isBuf:n,callback:a,next:null},p?p.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else A(e,t,!1,c,i,r,a);return u}(this,r,c,e,t,n)),s},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||k(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new y(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new h("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var i=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,n){t.ending=!0,C(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=c.destroy,S.prototype._undestroy=c.undestroy,S.prototype._destroy=function(e,t){t(e)},vc}function Sc(){if(yc)return bc;yc=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};bc=a;var t=Wc(),n=Ec();Te(a,t);for(var i=e(n.prototype),r=0;r<i.length;r++){var o=i[r];a.prototype[o]||(a.prototype[o]=n.prototype[o])}function a(e){if(!(this instanceof a))return new a(e);t.call(this,e),n.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",s)))}function s(){this._writableState.ended||process.nextTick(c,this)}function c(e){e.end()}return Object.defineProperty(a.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(a.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(a.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(a.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),bc}var Ac,Rc,kc,Tc,Bc,Cc,Ic,Oc,Uc,Nc,Lc,Dc,Pc,jc,Hc,Mc,Fc={},Gc={exports:{}};function qc(){if(Rc)return Fc;Rc=1;var e=(Ac||(Ac=1,function(e,t){var n=l,i=n.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(r(n,t),t.Buffer=o),o.prototype=Object.create(i.prototype),r(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(Gc,Gc.exports)),Gc.exports).Buffer,t=e.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(n){var i;switch(this.encoding=function(n){var i=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(n);if("string"!=typeof i&&(e.isEncoding===t||!t(n)))throw new Error("Unknown encoding: "+n);return i||n}(n),this.encoding){case"utf16le":this.text=o,this.end=a,i=4;break;case"utf8":this.fillLast=r,i=4;break;case"base64":this.text=s,this.end=c,i=3;break;default:return this.write=u,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(i)}function i(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function r(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function o(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function a(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function s(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function c(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function u(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}return Fc.StringDecoder=n,n.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},n.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},n.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var o=i(t[r]);if(o>=0)return o>0&&(e.lastNeed=o-1),o;if(--r<n||-2===o)return 0;if(o=i(t[r]),o>=0)return o>0&&(e.lastNeed=o-2),o;if(--r<n||-2===o)return 0;if(o=i(t[r]),o>=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},n.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length},Fc}function zc(){if(Tc)return kc;Tc=1;var e=_c().codes.ERR_STREAM_PREMATURE_CLOSE;function t(){}return kc=function n(i,r,o){if("function"==typeof r)return n(i,null,r);r||(r={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];e.apply(this,i)}}}(o||t);var a=r.readable||!1!==r.readable&&i.readable,s=r.writable||!1!==r.writable&&i.writable,c=function(){i.writable||p()},u=i._writableState&&i._writableState.finished,p=function(){s=!1,u=!0,a||o.call(i)},l=i._readableState&&i._readableState.endEmitted,f=function(){a=!1,l=!0,s||o.call(i)},h=function(e){o.call(i,e)},d=function(){var t;return a&&!l?(i._readableState&&i._readableState.ended||(t=new e),o.call(i,t)):s&&!u?(i._writableState&&i._writableState.ended||(t=new e),o.call(i,t)):void 0},m=function(){i.req.on("finish",p)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(i)?s&&!i._writableState&&(i.on("end",c),i.on("close",c)):(i.on("complete",p),i.on("abort",d),i.req?m():i.on("request",m)),i.on("end",f),i.on("finish",p),!1!==r.error&&i.on("error",h),i.on("close",d),function(){i.removeListener("complete",p),i.removeListener("abort",d),i.removeListener("request",m),i.req&&i.req.removeListener("finish",p),i.removeListener("end",c),i.removeListener("close",c),i.removeListener("finish",p),i.removeListener("end",f),i.removeListener("error",h),i.removeListener("close",d)}},kc}function $c(){if(Cc)return Bc;var e;function t(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Cc=1;var n=zc(),i=Symbol("lastResolve"),r=Symbol("lastReject"),o=Symbol("error"),a=Symbol("ended"),s=Symbol("lastPromise"),c=Symbol("handlePromise"),u=Symbol("stream");function p(e,t){return{value:e,done:t}}function l(e){var t=e[i];if(null!==t){var n=e[u].read();null!==n&&(e[s]=null,e[i]=null,e[r]=null,t(p(n,!1)))}}function f(e){process.nextTick(l,e)}var h=Object.getPrototypeOf((function(){})),d=Object.setPrototypeOf((e={get stream(){return this[u]},next:function(){var e=this,t=this[o];if(null!==t)return Promise.reject(t);if(this[a])return Promise.resolve(p(void 0,!0));if(this[u].destroyed)return new Promise((function(t,n){process.nextTick((function(){e[o]?n(e[o]):t(p(void 0,!0))}))}));var n,i=this[s];if(i)n=new Promise(function(e,t){return function(n,i){e.then((function(){t[a]?n(p(void 0,!0)):t[c](n,i)}),i)}}(i,this));else{var r=this[u].read();if(null!==r)return Promise.resolve(p(r,!1));n=new Promise(this[c])}return this[s]=n,n}},t(e,Symbol.asyncIterator,(function(){return this})),t(e,"return",(function(){var e=this;return new Promise((function(t,n){e[u].destroy(null,(function(e){e?n(e):t(p(void 0,!0))}))}))})),e),h);return Bc=function(e){var l,h=Object.create(d,(t(l={},u,{value:e,writable:!0}),t(l,i,{value:null,writable:!0}),t(l,r,{value:null,writable:!0}),t(l,o,{value:null,writable:!0}),t(l,a,{value:e._readableState.endEmitted,writable:!0}),t(l,c,{value:function(e,t){var n=h[u].read();n?(h[s]=null,h[i]=null,h[r]=null,e(p(n,!1))):(h[i]=e,h[r]=t)},writable:!0}),l));return h[s]=null,n(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=h[r];return null!==t&&(h[s]=null,h[i]=null,h[r]=null,t(e)),void(h[o]=e)}var n=h[i];null!==n&&(h[s]=null,h[i]=null,h[r]=null,n(p(void 0,!0))),h[a]=!0})),e.on("readable",f.bind(null,h)),h},Bc}function Kc(){if(Oc)return Ic;function e(e,t,n,i,r,o,a){try{var s=e[o](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(i,r)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Oc=1;var i=_c().codes.ERR_INVALID_ARG_TYPE;return Ic=function(r,o,a){var s;if(o&&"function"==typeof o.next)s=o;else if(o&&o[Symbol.asyncIterator])s=o[Symbol.asyncIterator]();else{if(!o||!o[Symbol.iterator])throw new i("iterable",["Iterable"],o);s=o[Symbol.iterator]()}var c=new r(function(e){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?t(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({objectMode:!0},a)),u=!1;function p(){return l.apply(this,arguments)}function l(){var t;return t=function*(){try{var e=yield s.next(),t=e.value;e.done?c.push(null):c.push(yield t)?p():u=!1}catch(e){c.destroy(e)}},l=function(){var n=this,i=arguments;return new Promise((function(r,o){var a=t.apply(n,i);function s(t){e(a,r,o,s,c,"next",t)}function c(t){e(a,r,o,s,c,"throw",t)}s(void 0)}))},l.apply(this,arguments)}return c._read=function(){u||(u=!0,p())},c},Ic}function Wc(){if(Nc)return Uc;var e;Nc=1,Uc=A,A.ReadableState=S,n.EventEmitter;var t=function(e,t){return e.listeners(t).length},i=cc(),o=l.Buffer,a=(void 0!==_?_:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var s,c=r;s=c&&c.debuglog?c.debuglog("stream"):function(){};var u,p,f,h=uc(),d=pc(),m=wc().getHighWaterMark,v=_c().codes,g=v.ERR_INVALID_ARG_TYPE,b=v.ERR_STREAM_PUSH_AFTER_EOF,y=v.ERR_METHOD_NOT_IMPLEMENTED,x=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;Te(A,i);var w=d.errorOrDestroy,E=["error","close","destroy","pause","resume"];function S(t,n,i){e=e||Sc(),t=t||{},"boolean"!=typeof i&&(i=n instanceof e),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=m(this,t,"readableHighWaterMark",i),this.buffer=new h,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(u||(u=qc().StringDecoder),this.decoder=new u(t.encoding),this.encoding=t.encoding)}function A(t){if(e=e||Sc(),!(this instanceof A))return new A(t);var n=this instanceof e;this._readableState=new S(t,this,n),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),i.call(this)}function R(e,t,n,i,r){s("readableAddChunk",t);var c,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(s("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?C(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,I(e)))}(e,u);else if(r||(c=function(e,t){var n;i=t,o.isBuffer(i)||i instanceof a||"string"==typeof t||void 0===t||e.objectMode||(n=new g("chunk",["string","Buffer","Uint8Array"],t));var i;return n}(u,t)),c)w(e,c);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===o.prototype||(t=function(e){return o.from(e)}(t)),i)u.endEmitted?w(e,new x):k(e,u,t,!0);else if(u.ended)w(e,new b);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!n?(t=u.decoder.write(t),u.objectMode||0!==t.length?k(e,u,t,!1):O(e,u)):k(e,u,t,!1)}else i||(u.reading=!1,O(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function k(e,t,n,i){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,i?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&C(e)),O(e,t)}Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),A.prototype.destroy=d.destroy,A.prototype._undestroy=d.undestroy,A.prototype._destroy=function(e,t){t(e)},A.prototype.push=function(e,t){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof e&&((t=t||i.defaultEncoding)!==i.encoding&&(e=o.from(e,t),t=""),n=!0),R(this,e,t,!1,n)},A.prototype.unshift=function(e){return R(this,e,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(e){u||(u=qc().StringDecoder);var t=new u(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var T=1073741824;function B(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;s("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(s("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(I,e))}function I(e){var t=e._readableState;s("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,P(e)}function O(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(U,e,t))}function U(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(s("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function N(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L(e){s("readable nexttick read 0"),e.read(0)}function D(e,t){s("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),P(e),t.flowing&&!t.reading&&e.read(0)}function P(e){var t=e._readableState;for(s("flow",t.flowing);t.flowing&&null!==e.read(););}function j(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function H(e){var t=e._readableState;s("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(M,t,e))}function M(e,t){if(s("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function F(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}return A.prototype.read=function(e){s("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return s("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?H(this):C(this),null;if(0===(e=B(e,t))&&t.ended)return 0===t.length&&H(this),null;var i,r=t.needReadable;return s("need readable",r),(0===t.length||t.length-e<t.highWaterMark)&&s("length less than watermark",r=!0),t.ended||t.reading?s("reading or ended",r=!1):r&&(s("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=B(n,t))),null===(i=e>0?j(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&H(this)),null!==i&&this.emit("data",i),i},A.prototype._read=function(e){w(this,new y("_read()"))},A.prototype.pipe=function(e,n){var i=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,s("pipe count=%d opts=%j",r.pipesCount,n);var o=(!n||!1!==n.end)&&e!==process.stdout&&e!==process.stderr?c:m;function a(t,n){s("onunpipe"),t===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,s("cleanup"),e.removeListener("close",h),e.removeListener("finish",d),e.removeListener("drain",u),e.removeListener("error",f),e.removeListener("unpipe",a),i.removeListener("end",c),i.removeListener("end",m),i.removeListener("data",l),p=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function c(){s("onend"),e.end()}r.endEmitted?process.nextTick(o):i.once("end",o),e.on("unpipe",a);var u=function(e){return function(){var n=e._readableState;s("pipeOnDrain",n.awaitDrain),n.awaitDrain&&n.awaitDrain--,0===n.awaitDrain&&t(e,"data")&&(n.flowing=!0,P(e))}}(i);e.on("drain",u);var p=!1;function l(t){s("ondata");var n=e.write(t);s("dest.write",n),!1===n&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==F(r.pipes,e))&&!p&&(s("false write response, pause",r.awaitDrain),r.awaitDrain++),i.pause())}function f(n){s("onerror",n),m(),e.removeListener("error",f),0===t(e,"error")&&w(e,n)}function h(){e.removeListener("finish",d),m()}function d(){s("onfinish"),e.removeListener("close",h),m()}function m(){s("unpipe"),i.unpipe(e)}return i.on("data",l),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",f),e.once("close",h),e.once("finish",d),e.emit("pipe",i),r.flowing||(s("pipe resume"),i.resume()),e},A.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=t.pipes,r=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o<r;o++)i[o].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},A.prototype.on=function(e,t){var n=i.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,s("on readable",r.length,r.reading),r.length?C(this):r.reading||process.nextTick(L,this))),n},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(e,t){var n=i.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(N,this),n},A.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(N,this),t},A.prototype.resume=function(){var e=this._readableState;return e.flowing||(s("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(D,e,t))}(this,e)),e.paused=!1,this},A.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},A.prototype.wrap=function(e){var t=this,n=this._readableState,i=!1;for(var r in e.on("end",(function(){if(s("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(r){(s("wrapped data"),n.decoder&&(r=n.decoder.write(r)),n.objectMode&&null==r)||(n.objectMode||r&&r.length)&&(t.push(r)||(i=!0,e.pause()))})),e)void 0===this[r]&&"function"==typeof e[r]&&(this[r]=function(t){return function(){return e[t].apply(e,arguments)}}(r));for(var o=0;o<E.length;o++)e.on(E[o],this.emit.bind(this,E[o]));return this._read=function(t){s("wrapped _read",t),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(A.prototype[Symbol.asyncIterator]=function(){return void 0===p&&(p=$c()),p(this)}),Object.defineProperty(A.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(A.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),A._fromList=j,Object.defineProperty(A.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(A.from=function(e,t){return void 0===f&&(f=Kc()),f(A,e,t)}),Uc}function Xc(){if(Dc)return Lc;Dc=1,Lc=s;var e=_c().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,n=e.ERR_MULTIPLE_CALLBACK,i=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,r=e.ERR_TRANSFORM_WITH_LENGTH_0,o=Sc();function a(e,t){var i=this._transformState;i.transforming=!1;var r=i.writecb;if(null===r)return this.emit("error",new n);i.writechunk=null,i.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function s(e){if(!(this instanceof s))return new s(e);o.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",c)}function c(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?u(this,null,null):this._flush((function(t,n){u(e,t,n)}))}function u(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new r;if(e._transformState.transforming)throw new i;return e.push(null)}return Te(s,o),s.prototype.push=function(e,t){return this._transformState.needTransform=!1,o.prototype.push.call(this,e,t)},s.prototype._transform=function(e,n,i){i(new t("_transform()"))},s.prototype._write=function(e,t,n){var i=this._transformState;if(i.writecb=n,i.writechunk=e,i.writeencoding=t,!i.transforming){var r=this._readableState;(i.needTransform||r.needReadable||r.length<r.highWaterMark)&&this._read(r.highWaterMark)}},s.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},s.prototype._destroy=function(e,t){o.prototype._destroy.call(this,e,(function(e){t(e)}))},Lc}function Vc(){if(Mc)return Hc;var e;Mc=1;var t=_c().codes,n=t.ERR_MISSING_ARGS,i=t.ERR_STREAM_DESTROYED;function r(e){if(e)throw e}function o(e){e()}function a(e,t){return e.pipe(t)}return Hc=function(){for(var t=arguments.length,s=new Array(t),c=0;c<t;c++)s[c]=arguments[c];var u,p=function(e){return e.length?"function"!=typeof e[e.length-1]?r:e.pop():r}(s);if(Array.isArray(s[0])&&(s=s[0]),s.length<2)throw new n("streams");var l=s.map((function(t,n){var r=n<s.length-1;return function(t,n,r,o){o=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(o);var a=!1;t.on("close",(function(){a=!0})),void 0===e&&(e=zc()),e(t,{readable:n,writable:r},(function(e){if(e)return o(e);a=!0,o()}));var s=!1;return function(e){if(!a&&!s)return s=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new i("pipe"))}}(t,r,n>0,(function(e){u||(u=e),e&&l.forEach(o),r||(l.forEach(o),p(u))}))}));return s.reduce(a)},Hc}!function(e,t){var n=u;"disable"===process.env.READABLE_STREAM&&n?(e.exports=n.Readable,Object.assign(e.exports,n),e.exports.Stream=n):((t=e.exports=Wc()).Stream=n||t,t.Readable=t,t.Writable=Ec(),t.Duplex=Sc(),t.Transform=Xc(),t.PassThrough=function(){if(jc)return Pc;jc=1,Pc=t;var e=Xc();function t(n){if(!(this instanceof t))return new t(n);e.call(this,n)}return Te(t,e),t.prototype._transform=function(e,t,n){n(null,e)},Pc}(),t.finished=zc(),t.pipeline=Vc())}(sc,sc.exports);var Qc=sc.exports;const{Buffer:Yc}=l,Zc=Symbol.for("BufferList");function Jc(e){if(!(this instanceof Jc))return new Jc(e);Jc._init.call(this,e)}Jc._init=function(e){Object.defineProperty(this,Zc,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},Jc.prototype._new=function(e){return new Jc(e)},Jc.prototype._offset=function(e){if(0===e)return[0,0];let t=0;for(let n=0;n<this._bufs.length;n++){const i=t+this._bufs[n].length;if(e<i||n===this._bufs.length-1)return[n,e-t];t=i}},Jc.prototype._reverseOffset=function(e){const t=e[0];let n=e[1];for(let e=0;e<t;e++)n+=this._bufs[e].length;return n},Jc.prototype.get=function(e){if(e>this.length||e<0)return;const t=this._offset(e);return this._bufs[t[0]][t[1]]},Jc.prototype.slice=function(e,t){return"number"==typeof e&&e<0&&(e+=this.length),"number"==typeof t&&t<0&&(t+=this.length),this.copy(null,0,e,t)},Jc.prototype.copy=function(e,t,n,i){if(("number"!=typeof n||n<0)&&(n=0),("number"!=typeof i||i>this.length)&&(i=this.length),n>=this.length)return e||Yc.alloc(0);if(i<=0)return e||Yc.alloc(0);const r=!!e,o=this._offset(n),a=i-n;let s=a,c=r&&t||0,u=o[1];if(0===n&&i===this.length){if(!r)return 1===this._bufs.length?this._bufs[0]:Yc.concat(this._bufs,this.length);for(let t=0;t<this._bufs.length;t++)this._bufs[t].copy(e,c),c+=this._bufs[t].length;return e}if(s<=this._bufs[o[0]].length-u)return r?this._bufs[o[0]].copy(e,t,u,u+s):this._bufs[o[0]].slice(u,u+s);r||(e=Yc.allocUnsafe(a));for(let t=o[0];t<this._bufs.length;t++){const n=this._bufs[t].length-u;if(!(s>n)){this._bufs[t].copy(e,c,u,u+s),c+=n;break}this._bufs[t].copy(e,c,u),c+=n,s-=n,u&&(u=0)}return e.length>c?e.slice(0,c):e},Jc.prototype.shallowSlice=function(e,t){if(e=e||0,t="number"!=typeof t?this.length:t,e<0&&(e+=this.length),t<0&&(t+=this.length),e===t)return this._new();const n=this._offset(e),i=this._offset(t),r=this._bufs.slice(n[0],i[0]+1);return 0===i[1]?r.pop():r[r.length-1]=r[r.length-1].slice(0,i[1]),0!==n[1]&&(r[0]=r[0].slice(n[1])),this._new(r)},Jc.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},Jc.prototype.consume=function(e){if(e=Math.trunc(e),Number.isNaN(e)||e<=0)return this;for(;this._bufs.length;){if(!(e>=this._bufs[0].length)){this._bufs[0]=this._bufs[0].slice(e),this.length-=e;break}e-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift()}return this},Jc.prototype.duplicate=function(){const e=this._new();for(let t=0;t<this._bufs.length;t++)e.append(this._bufs[t]);return e},Jc.prototype.append=function(e){if(null==e)return this;if(e.buffer)this._appendBuffer(Yc.from(e.buffer,e.byteOffset,e.byteLength));else if(Array.isArray(e))for(let t=0;t<e.length;t++)this.append(e[t]);else if(this._isBufferList(e))for(let t=0;t<e._bufs.length;t++)this.append(e._bufs[t]);else"number"==typeof e&&(e=e.toString()),this._appendBuffer(Yc.from(e));return this},Jc.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length},Jc.prototype.indexOf=function(e,t,n){if(void 0===n&&"string"==typeof t&&(n=t,t=void 0),"function"==typeof e||Array.isArray(e))throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.');if("number"==typeof e?e=Yc.from([e]):"string"==typeof e?e=Yc.from(e,n):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=Yc.from(e.buffer,e.byteOffset,e.byteLength):Yc.isBuffer(e)||(e=Yc.from(e)),t=Number(t||0),isNaN(t)&&(t=0),t<0&&(t=this.length+t),t<0&&(t=0),0===e.length)return t>this.length?this.length:t;const i=this._offset(t);let r=i[0],o=i[1];for(;r<this._bufs.length;r++){const t=this._bufs[r];for(;o<t.length;){if(t.length-o>=e.length){const n=t.indexOf(e,o);if(-1!==n)return this._reverseOffset([r,n]);o=t.length-e.length+1}else{const t=this._reverseOffset([r,o]);if(this._match(t,e))return t;o++}}o=0}return-1},Jc.prototype._match=function(e,t){if(this.length-e<t.length)return!1;for(let n=0;n<t.length;n++)if(this.get(e+n)!==t[n])return!1;return!0},function(){const e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1,readIntBE:null,readIntLE:null,readUIntBE:null,readUIntLE:null};for(const t in e)!function(t){Jc.prototype[t]=null===e[t]?function(e,n){return this.slice(e,e+n)[t](0,n)}:function(n=0){return this.slice(n,n+e[t])[t](0)}}(t)}(),Jc.prototype._isBufferList=function(e){return e instanceof Jc||Jc.isBufferList(e)},Jc.isBufferList=function(e){return null!=e&&e[Zc]};var eu=Jc;const tu=Qc.Duplex,nu=eu;function iu(e){if(!(this instanceof iu))return new iu(e);if("function"==typeof e){this._callback=e;const t=function(e){this._callback&&(this._callback(e),this._callback=null)}.bind(this);this.on("pipe",(function(e){e.on("error",t)})),this.on("unpipe",(function(e){e.removeListener("error",t)})),e=null}nu._init.call(this,e),tu.call(this)}Te(iu,tu),Object.assign(iu.prototype,nu.prototype),iu.prototype._new=function(e){return new iu(e)},iu.prototype._write=function(e,t,n){this._appendBuffer(e),"function"==typeof n&&n()},iu.prototype._read=function(e){if(!this.length)return this.push(null);e=Math.min(e,this.length),this.push(this.slice(0,e)),this.consume(e)},iu.prototype.end=function(e){tu.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},iu.prototype._destroy=function(e,t){this._bufs.length=0,this.length=0,t(e)},iu.prototype._isBufferList=function(e){return e instanceof iu||e instanceof nu||iu.isBufferList(e)},iu.isBufferList=nu.isBufferList,ac.exports=iu,ac.exports.BufferListStream=iu,ac.exports.BufferList=nu;var ru=ac.exports;const ou=d,au=is,su=rs,cu=Ps,uu=qs,pu=e=>"string"==typeof e?e.replace(zs(),""):e,lu=oc,fu=({stream:e=process.stdout}={})=>Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env)),hu=js,{BufferListStream:du}=ru,mu=Symbol("text"),vu=Symbol("prefixText");class gu{constructor(){this.requests=0,this.mutedStream=new du,this.mutedStream.pipe(process.stdout);const e=this;this.ourEmit=function(t,n,...i){const{stdin:r}=process;if(e.requests>0||r.emit===e.ourEmit){if("keypress"===t)return;"data"===t&&n.includes(3)&&process.emit("SIGINT"),Reflect.apply(e.oldEmit,this,[t,n,...i])}else Reflect.apply(process.stdin.emit,this,[t,n,...i])}}start(){this.requests++,1===this.requests&&this.realStart()}stop(){if(this.requests<=0)throw new Error("`stop` called more times than `start`");this.requests--,0===this.requests&&this.realStop()}realStart(){"win32"!==process.platform&&(this.rl=ou.createInterface({input:process.stdin,output:this.mutedStream}),this.rl.on("SIGINT",(()=>{0===process.listenerCount("SIGINT")?process.emit("SIGINT"):(this.rl.close(),process.kill(process.pid,"SIGINT"))})))}realStop(){"win32"!==process.platform&&(this.rl.close(),this.rl=void 0)}}let bu;class yu{constructor(e){bu||(bu=new gu),"string"==typeof e&&(e={text:e}),this.options={text:"",color:"cyan",stream:process.stderr,discardStdin:!0,...e},this.spinner=this.options.spinner,this.color=this.options.color,this.hideCursor=!1!==this.options.hideCursor,this.interval=this.options.interval||this.spinner.interval||100,this.stream=this.options.stream,this.id=void 0,this.isEnabled="boolean"==typeof this.options.isEnabled?this.options.isEnabled:fu({stream:this.stream}),this.isSilent="boolean"==typeof this.options.isSilent&&this.options.isSilent,this.text=this.options.text,this.prefixText=this.options.prefixText,this.linesToClear=0,this.indent=this.options.indent,this.discardStdin=this.options.discardStdin,this.isDiscardingStdin=!1}get indent(){return this._indent}set indent(e=0){if(!(e>=0&&Number.isInteger(e)))throw new Error("The `indent` option must be an integer from 0 and up");this._indent=e}_updateInterval(e){void 0!==e&&(this.interval=e)}get spinner(){return this._spinner}set spinner(e){if(this.frameIndex=0,"object"==typeof e){if(void 0===e.frames)throw new Error("The given spinner must have a `frames` property");this._spinner=e}else if(hu())if(void 0===e)this._spinner=cu.dots;else{if("default"===e||!cu[e])throw new Error(`There is no built-in spinner named '${e}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`);this._spinner=cu[e]}else this._spinner=cu.line;this._updateInterval(this._spinner.interval)}get text(){return this[mu]}set text(e){this[mu]=e,this.updateLineCount()}get prefixText(){return this[vu]}set prefixText(e){this[vu]=e,this.updateLineCount()}get isSpinning(){return void 0!==this.id}getFullPrefixText(e=this[vu],t=" "){return"string"==typeof e?e+t:"function"==typeof e?e()+t:""}updateLineCount(){const e=this.stream.columns||80,t=this.getFullPrefixText(this.prefixText,"-");this.lineCount=0;for(const n of pu(t+"--"+this[mu]).split("\n"))this.lineCount+=Math.max(1,Math.ceil(lu(n)/e))}get isEnabled(){return this._isEnabled&&!this.isSilent}set isEnabled(e){if("boolean"!=typeof e)throw new TypeError("The `isEnabled` option must be a boolean");this._isEnabled=e}get isSilent(){return this._isSilent}set isSilent(e){if("boolean"!=typeof e)throw new TypeError("The `isSilent` option must be a boolean");this._isSilent=e}frame(){const{frames:e}=this.spinner;let t=e[this.frameIndex];this.color&&(t=au[this.color](t)),this.frameIndex=++this.frameIndex%e.length;return("string"==typeof this.prefixText&&""!==this.prefixText?this.prefixText+" ":"")+t+("string"==typeof this.text?" "+this.text:"")}clear(){if(!this.isEnabled||!this.stream.isTTY)return this;for(let e=0;e<this.linesToClear;e++)e>0&&this.stream.moveCursor(0,-1),this.stream.clearLine(),this.stream.cursorTo(this.indent);return this.linesToClear=0,this}render(){return this.isSilent||(this.clear(),this.stream.write(this.frame()),this.linesToClear=this.lineCount),this}start(e){return e&&(this.text=e),this.isSilent?this:this.isEnabled?(this.isSpinning||(this.hideCursor&&su.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,bu.start()),this.render(),this.id=setInterval(this.render.bind(this),this.interval)),this):(this.text&&this.stream.write(`- ${this.text}\n`),this)}stop(){return this.isEnabled?(clearInterval(this.id),this.id=void 0,this.frameIndex=0,this.clear(),this.hideCursor&&su.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(bu.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:uu.success,text:e})}fail(e){return this.stopAndPersist({symbol:uu.error,text:e})}warn(e){return this.stopAndPersist({symbol:uu.warning,text:e})}info(e){return this.stopAndPersist({symbol:uu.info,text:e})}stopAndPersist(e={}){if(this.isSilent)return this;const t=e.prefixText||this.prefixText,n=e.text||this.text,i="string"==typeof n?" "+n:"";return this.stop(),this.stream.write(`${this.getFullPrefixText(t," ")}${e.symbol||" "}${i}\n`),this}}_a.exports=function(e){return new yu(e)},_a.exports.promise=(e,t)=>{if("function"!=typeof e.then)throw new TypeError("Parameter `action` must be a Promise");const n=new yu(t);return n.start(),(async()=>{try{await e,n.succeed()}catch{n.fail()}})(),n};var xu,_u,wu,Eu,Su=w(_a.exports),Au=function(e){if("string"!=typeof e||""===e)return!1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return!0;e=e.slice(t.index+t[0].length)}return!1},Ru={"{":"}","(":")","[":"]"},ku=function(e){if("!"===e[0])return!0;for(var t=0,n=-2,i=-2,r=-2,o=-2,a=-2;t<e.length;){if("*"===e[t])return!0;if("?"===e[t+1]&&/[\].+)]/.test(e[t]))return!0;if(-1!==i&&"["===e[t]&&"]"!==e[t+1]&&(i<t&&(i=e.indexOf("]",t)),i>t)){if(-1===a||a>i)return!0;if(-1===(a=e.indexOf("\\",t))||a>i)return!0}if(-1!==r&&"{"===e[t]&&"}"!==e[t+1]&&(r=e.indexOf("}",t))>t&&(-1===(a=e.indexOf("\\",t))||a>r))return!0;if(-1!==o&&"("===e[t]&&"?"===e[t+1]&&/[:!=]/.test(e[t+2])&&")"!==e[t+3]&&(o=e.indexOf(")",t))>t&&(-1===(a=e.indexOf("\\",t))||a>o))return!0;if(-1!==n&&"("===e[t]&&"|"!==e[t+1]&&(n<t&&(n=e.indexOf("|",t)),-1!==n&&")"!==e[n+1]&&(o=e.indexOf(")",n))>n&&(-1===(a=e.indexOf("\\",n))||a>o)))return!0;if("\\"===e[t]){var s=e[t+1];t+=2;var c=Ru[s];if(c){var u=e.indexOf(c,t);-1!==u&&(t=u+1)}if("!"===e[t])return!0}else t++}return!1},Tu=function(e){if("!"===e[0])return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if("\\"===e[t]){var n=e[t+1];t+=2;var i=Ru[n];if(i){var r=e.indexOf(i,t);-1!==r&&(t=r+1)}if("!"===e[t])return!0}else t++}return!1},Bu={exports:{}};var Cu=m;void 0!==Cu.homedir?Bu.exports=Cu.homedir:Bu.exports=function(){if(Eu)return wu;Eu=1;var t=e,n=function(){if(_u)return xu;function e(e,t){if(!e||!e.length||"#"===e.charAt(0))return null;var n=e.split(":");return{username:n[0],password:n[1],uid:n[2],gid:n[3],gecos:n[4],homedir:n[5],shell:n[6]}}return _u=1,xu=function(t){if("string"!=typeof t)throw new Error("expected a string");return t.split("\n").map(e).filter(Boolean)}}();return wu=function(){if("win32"===process.platform)return process.env.USERPROFILE?process.env.USERPROFILE:process.env.HOMEDRIVE&&process.env.HOMEPATH?process.env.HOMEDRIVE+process.env.HOMEPATH:process.env.HOME?process.env.HOME:null;if(process.env.HOME)return process.env.HOME;var e=function(e){try{return t.readFileSync(e,"utf8")}catch(e){return""}}("/etc/passwd"),i=function(e,t){for(var n=e.length,i=0;i<n;i++)if(+e[i].uid===t)return e[i].homedir}(n(e),"function"==typeof process.geteuid?process.geteuid():process.getuid());if(i)return i;var r=process.env.LOGNAME||process.env.USER||process.env.LNAME||process.env.USERNAME;return r?"darwin"===process.platform?"/Users/"+r:"/home/"+r:null},wu}();var Iu=Bu.exports,Ou=Iu,Uu=t,Nu=function(e){var t=Ou();return 126===e.charCodeAt(0)?43===e.charCodeAt(1)?Uu.join(process.cwd(),e.slice(2)):t?Uu.join(t,e.slice(1)):e:e},Lu={exports:{}},Du={exports:{}},Pu={};
9
+ /*!
10
+ * expand-tilde <https://github.com/jonschlinkert/expand-tilde>
11
+ *
12
+ * Copyright (c) 2015 Jon Schlinkert.
13
+ * Licensed under the MIT license.
14
+ */Pu.parse=Pu.decode=function(e){var t={},n=t,i=null,r=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return e.split(/[\r\n]+/g).forEach((function(e,o,a){if(e&&!e.match(/^\s*[;#]/)){var s=e.match(r);if(s){if(void 0!==s[1])return"__proto__"===(i=Gu(s[1]))?void(n={}):void(n=t[i]=t[i]||{});var c=Gu(s[2]);if("__proto__"!==c){var u=!s[3]||Gu(s[4]);switch(u){case"true":case"false":case"null":u=JSON.parse(u)}if(c.length>2&&"[]"===c.slice(-2)){if("__proto__"===(c=c.substring(0,c.length-2)))return;n[c]?Array.isArray(n[c])||(n[c]=[n[c]]):n[c]=[]}Array.isArray(n[c])?n[c].push(u):n[c]=u}}}})),Object.keys(t).filter((function(e,n,i){if(!t[e]||"object"!=typeof t[e]||Array.isArray(t[e]))return!1;var r=Hu(e),o=t,a=r.pop(),s=a.replace(/\\\./g,".");return r.forEach((function(e,t,n){"__proto__"!==e&&(o[e]&&"object"==typeof o[e]||(o[e]={}),o=o[e])})),(o!==t||s!==a)&&(o[s]=t[e],!0)})).forEach((function(e,n,i){delete t[e]})),t},Pu.stringify=Pu.encode=function e(t,n){var i=[],r="";"string"==typeof n?n={section:n,whitespace:!1}:(n=n||{}).whitespace=!0===n.whitespace;var o=n.whitespace?" = ":"=";Object.keys(t).forEach((function(e,n,a){var s=t[e];s&&Array.isArray(s)?s.forEach((function(t){r+=Fu(e+"[]")+o+Fu(t)+"\n"})):s&&"object"==typeof s?i.push(e):r+=Fu(e)+o+Fu(s)+ju})),n.section&&r.length&&(r="["+Fu(n.section)+"]"+ju+r);return i.forEach((function(i,o,a){var s=Hu(i).join("\\."),c=(n.section?n.section+".":"")+s,u=e(t[i],{section:c,whitespace:n.whitespace});r.length&&u.length&&(r+=ju),r+=u})),r},Pu.safe=Fu,Pu.unsafe=Gu;var ju="undefined"!=typeof process&&"win32"===process.platform?"\r\n":"\n";function Hu(e){return e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map((function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")}))}function Mu(e){return'"'===e.charAt(0)&&'"'===e.slice(-1)||"'"===e.charAt(0)&&"'"===e.slice(-1)}function Fu(e){return"string"!=typeof e||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&Mu(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function Gu(e,t){if(!Mu(e=(e||"").trim())){for(var n=!1,i="",r=0,o=e.length;r<o;r++){var a=e.charAt(r);if(n)-1!=="\\;#".indexOf(a)?i+=a:i+="\\"+a,n=!1;else{if(-1!==";#".indexOf(a))break;"\\"===a?n=!0:i+=a}}return n&&(i+="\\"),i.trim()}"'"===e.charAt(0)&&(e=e.substr(1,e.length-2));try{e=JSON.parse(e)}catch(e){}return e}var qu={exports:{}};
15
+ /*!
16
+ * is-windows <https://github.com/jonschlinkert/is-windows>
17
+ *
18
+ * Copyright © 2015-2018, Jon Schlinkert.
19
+ * Released under the MIT License.
20
+ */!function(e,t){!function(n){t?e.exports=n():"undefined"!=typeof window?window.isWindows=n():void 0!==_?_.isWindows=n():"undefined"!=typeof self?self.isWindows=n():this.isWindows=n()}((function(){return function(){return process&&("win32"===process.platform||/^(msys|cygwin)$/.test(process.env.OSTYPE))}}))}(qu,qu.exports);var zu,$u,Ku,Wu,Xu,Vu=qu.exports;Xu="win32"===process.platform||_.TESTING_WINDOWS?function(){if($u)return zu;$u=1,zu=i,i.sync=function(e,i){return n(t.statSync(e),e,i)};var t=e;function n(e,t,n){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var n=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!n)return!0;if(-1!==(n=n.split(";")).indexOf(""))return!0;for(var i=0;i<n.length;i++){var r=n[i].toLowerCase();if(r&&e.substr(-r.length).toLowerCase()===r)return!0}return!1}(t,n)}function i(e,i,r){t.stat(e,(function(t,o){r(t,!t&&n(o,e,i))}))}return zu}():function(){if(Wu)return Ku;Wu=1,Ku=n,n.sync=function(e,n){return i(t.statSync(e),n)};var t=e;function n(e,n,r){t.stat(e,(function(e,t){r(e,!e&&i(t,n))}))}function i(e,t){return e.isFile()&&function(e,t){var n=e.mode,i=e.uid,r=e.gid,o=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),a=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),s=parseInt("100",8),c=parseInt("010",8);return n&parseInt("001",8)||n&c&&r===a||n&s&&i===o||n&(s|c)&&0===o}(e,t)}return Ku}();var Qu,Yu,Zu=Ju;function Ju(e,t,n){if("function"==typeof t&&(n=t,t={}),!n){if("function"!=typeof Promise)throw new TypeError("callback not provided");return new Promise((function(n,i){Ju(e,t||{},(function(e,t){e?i(e):n(t)}))}))}Xu(e,t||{},(function(e,i){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,i=!1),n(e,i)}))}Ju.sync=function(e,t){try{return Xu.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}},function(n){var i,r=e,o=t,a=Nu,s=Iu,c=Pu;function u(){if(process.env.PREFIX)i=process.env.PREFIX;else{var e=s();if(e){var n=o.resolve(e,".npmrc");i=p(n)}if(!i){var c=function(){try{return r.realpathSync(function(){if(Yu)return Qu;Yu=1,Qu=s,s.sync=function(e,t){for(var i=a(e,t=t||{}),s=i.env,c=i.ext,u=i.extExe,p=[],l=0,f=s.length;l<f;l++){var h=s[l];'"'===h.charAt(0)&&'"'===h.slice(-1)&&(h=h.slice(1,-1));var d=n.join(h,e);!h&&/^\.[\\\/]/.test(e)&&(d=e.slice(0,2)+d);for(var m=0,v=c.length;m<v;m++){var g=d+c[m];try{if(r.sync(g,{pathExt:u})){if(!t.all)return g;p.push(g)}}catch(e){}}}if(t.all&&p.length)return p;if(t.nothrow)return null;throw o(e)};var e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,n=t,i=e?";":":",r=Zu;function o(e){var t=new Error("not found: "+e);return t.code="ENOENT",t}function a(t,n){var r=n.colon||i,o=n.path||process.env.PATH||"",a=[""];o=o.split(r);var s="";return e&&(o.unshift(process.cwd()),a=(s=n.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(r),-1!==t.indexOf(".")&&""!==a[0]&&a.unshift("")),(t.match(/\//)||e&&t.match(/\\/))&&(o=[""]),{env:o,ext:a,extExe:s}}function s(e,t,i){"function"==typeof t&&(i=t,t={});var s=a(e,t),c=s.env,u=s.ext,p=s.extExe,l=[];!function a(s,f){if(s===f)return t.all&&l.length?i(null,l):i(o(e));var h=c[s];'"'===h.charAt(0)&&'"'===h.slice(-1)&&(h=h.slice(1,-1));var d=n.join(h,e);!h&&/^\.[\\\/]/.test(e)&&(d=e.slice(0,2)+d),function e(n,o){if(n===o)return a(s+1,f);var c=u[n];r(d+c,{pathExt:p},(function(r,a){if(!r&&a){if(!t.all)return i(null,d+c);l.push(d+c)}return e(n+1,o)}))}(0,u.length)}(0,c.length)}return Qu}
21
+ /*!
22
+ * global-prefix <https://github.com/jonschlinkert/global-prefix>
23
+ *
24
+ * Copyright (c) 2015-2017 Jon Schlinkert.
25
+ * Licensed under the MIT license.
26
+ */().sync("npm"))}catch(e){}return null}();if(c){var u=o.resolve(c,"..","..","npmrc");if(i=p(u)){var l=o.resolve(i,"etc","npmrc");i=p(l)||i}}i||function(){var e=Vu;e()?i=process.env.APPDATA?o.join(process.env.APPDATA,"npm"):o.dirname(process.execPath):(i=o.dirname(o.dirname(process.execPath)),process.env.DESTDIR&&(i=o.join(process.env.DESTDIR,i)))}()}}if(i)return a(i)}function p(e){try{var t=r.readFileSync(e,"utf-8"),n=c.parse(t);if(n.prefix)return n.prefix}catch(e){}return null}Object.defineProperty(n,"exports",{enumerable:!0,get:function(){return i||(i=u())}})}(Du);var ep=Du.exports;
27
+ /*!
28
+ * global-modules <https://github.com/jonschlinkert/global-modules>
29
+ *
30
+ * Copyright (c) 2015-2017 Jon Schlinkert.
31
+ * Licensed under the MIT license.
32
+ */!function(e){var n,i=t,r=ep,o=Vu;Object.defineProperty(e,"exports",{enumerable:!0,get:function(){return n||(n=o()?i.resolve(r,"node_modules"):i.resolve(r,"lib/node_modules"))}})}(Lu);var tp=t,np=Nu,ip=Lu.exports,rp=e,op=t;
33
+ /*!
34
+ * resolve-dir <https://github.com/jonschlinkert/resolve-dir>
35
+ *
36
+ * Copyright (c) 2015, Jon Schlinkert.
37
+ * Licensed under the MIT License.
38
+ */var ap,sp={};(ap=sp).isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),ap.find=(e,t)=>e.nodes.find((e=>e.type===t)),ap.exceedsLimit=(e,t,n=1,i)=>!1!==i&&!(!ap.isInteger(e)||!ap.isInteger(t))&&(Number(t)-Number(e))/Number(n)>=i,ap.escapeNode=(e,t=0,n)=>{let i=e.nodes[t];i&&(n&&i.type===n||"open"===i.type||"close"===i.type)&&!0!==i.escaped&&(i.value="\\"+i.value,i.escaped=!0)},ap.encloseBrace=e=>"brace"===e.type&&e.commas>>0+e.ranges>>0==0&&(e.invalid=!0,!0),ap.isInvalidBrace=e=>!("brace"!==e.type||!0!==e.invalid&&!e.dollar&&(e.commas>>0+e.ranges>>0!=0&&!0===e.open&&!0===e.close||(e.invalid=!0,0))),ap.isOpenOrClose=e=>"open"===e.type||"close"===e.type||!0===e.open||!0===e.close,ap.reduce=e=>e.reduce(((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e)),[]),ap.flatten=(...e)=>{const t=[],n=e=>{for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?n(r):void 0!==r&&t.push(r)}return t};return n(e),t};const cp=sp;var up=(e,t={})=>{let n=(e,i={})=>{let r=t.escapeInvalid&&cp.isInvalidBrace(i),o=!0===e.invalid&&!0===t.escapeInvalid,a="";if(e.value)return(r||o)&&cp.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(let t of e.nodes)a+=n(t);return a};return n(e)};
39
+ /*!
40
+ * is-number <https://github.com/jonschlinkert/is-number>
41
+ *
42
+ * Copyright (c) 2014-present, Jon Schlinkert.
43
+ * Released under the MIT License.
44
+ */
45
+ /*!
46
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
47
+ *
48
+ * Copyright (c) 2015-present, Jon Schlinkert.
49
+ * Released under the MIT License.
50
+ */
51
+ const pp=function(e){return"number"==typeof e?e-e==0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))},lp=(e,t,n)=>{if(!1===pp(e))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===pp(t))throw new TypeError("toRegexRange: expected the second argument to be a number.");let i={relaxZeros:!0,...n};"boolean"==typeof i.strictZeros&&(i.relaxZeros=!1===i.strictZeros);let r=e+":"+t+"="+String(i.relaxZeros)+String(i.shorthand)+String(i.capture)+String(i.wrap);if(lp.cache.hasOwnProperty(r))return lp.cache[r].result;let o=Math.min(e,t),a=Math.max(e,t);if(1===Math.abs(o-a)){let n=e+"|"+t;return i.capture?`(${n})`:!1===i.wrap?n:`(?:${n})`}let s=_p(e)||_p(t),c={min:e,max:t,a:o,b:a},u=[],p=[];if(s&&(c.isPadded=s,c.maxLen=String(c.max).length),o<0){p=hp(a<0?Math.abs(a):1,Math.abs(o),c,i),o=c.a=0}return a>=0&&(u=hp(o,a,c,i)),c.negatives=p,c.positives=u,c.result=function(e,t,n){let i=dp(e,t,"-",!1)||[],r=dp(t,e,"",!1)||[],o=dp(e,t,"-?",!0)||[];return i.concat(o).concat(r).join("|")}(p,u),!0===i.capture?c.result=`(${c.result})`:!1!==i.wrap&&u.length+p.length>1&&(c.result=`(?:${c.result})`),lp.cache[r]=c,c.result};function fp(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};let i=function(e,t){let n=[];for(let i=0;i<e.length;i++)n.push([e[i],t[i]]);return n}(e,t),r=i.length,o="",a=0;for(let e=0;e<r;e++){let[t,n]=i[e];t===n?o+=t:"0"!==t||"9"!==n?o+=xp(t,n):a++}return a&&(o+=!0===n.shorthand?"\\d":"[0-9]"),{pattern:o,count:[a],digits:r}}function hp(e,t,n,i){let r,o=function(e,t){let n=1,i=1,r=gp(e,n),o=new Set([t]);for(;e<=r&&r<=t;)o.add(r),n+=1,r=gp(e,n);for(r=bp(t+1,i)-1;e<r&&r<=t;)o.add(r),i+=1,r=bp(t+1,i)-1;return o=[...o],o.sort(mp),o}(e,t),a=[],s=e;for(let e=0;e<o.length;e++){let t=o[e],c=fp(String(s),String(t),i),u="";n.isPadded||!r||r.pattern!==c.pattern?(n.isPadded&&(u=wp(t,n,i)),c.string=u+c.pattern+yp(c.count),a.push(c),s=t+1,r=c):(r.count.length>1&&r.count.pop(),r.count.push(c.count[0]),r.string=r.pattern+yp(r.count),s=t+1)}return a}function dp(e,t,n,i,r){let o=[];for(let r of e){let{string:e}=r;i||vp(t,"string",e)||o.push(n+e),i&&vp(t,"string",e)&&o.push(n+e)}return o}function mp(e,t){return e>t?1:t>e?-1:0}function vp(e,t,n){return e.some((e=>e[t]===n))}function gp(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function bp(e,t){return e-e%Math.pow(10,t)}function yp(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function xp(e,t,n){return`[${e}${t-e==1?"":"-"}${t}]`}function _p(e){return/^-?(0+)\d/.test(e)}function wp(e,t,n){if(!t.isPadded)return e;let i=Math.abs(t.maxLen-String(e).length),r=!1!==n.relaxZeros;switch(i){case 0:return"";case 1:return r?"0?":"0";case 2:return r?"0{0,2}":"00";default:return r?`0{0,${i}}`:`0{${i}}`}}lp.cache={},lp.clearCache=()=>lp.cache={};
52
+ /*!
53
+ * fill-range <https://github.com/jonschlinkert/fill-range>
54
+ *
55
+ * Copyright (c) 2014-present, Jon Schlinkert.
56
+ * Licensed under the MIT License.
57
+ */
58
+ const Ep=r,Sp=lp,Ap=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),Rp=e=>"number"==typeof e||"string"==typeof e&&""!==e,kp=e=>Number.isInteger(+e),Tp=e=>{let t=`${e}`,n=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++n];);return n>0},Bp=(e,t,n)=>{if(t>0){let n="-"===e[0]?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return!1===n?String(e):e},Cp=(e,t)=>{let n="-"===e[0]?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},Ip=(e,t,n,i)=>{if(n)return Sp(e,t,{wrap:!1,...i});let r=String.fromCharCode(e);return e===t?r:`[${r}-${String.fromCharCode(t)}]`},Op=(e,t,n)=>{if(Array.isArray(e)){let t=!0===n.wrap,i=n.capture?"":"?:";return t?`(${i}${e.join("|")})`:e.join("|")}return Sp(e,t,n)},Up=(...e)=>new RangeError("Invalid range arguments: "+Ep.inspect(...e)),Np=(e,t,n)=>{if(!0===n.strictRanges)throw Up([e,t]);return[]},Lp=(e,t,n=1,i={})=>{let r=Number(e),o=Number(t);if(!Number.isInteger(r)||!Number.isInteger(o)){if(!0===i.strictRanges)throw Up([e,t]);return[]}0===r&&(r=0),0===o&&(o=0);let a=r>o,s=String(e),c=String(t),u=String(n);n=Math.max(Math.abs(n),1);let p=Tp(s)||Tp(c)||Tp(u),l=p?Math.max(s.length,c.length,u.length):0,f=!1===p&&!1===((e,t,n)=>"string"==typeof e||"string"==typeof t||!0===n.stringify)(e,t,i),h=i.transform||(e=>t=>!0===e?Number(t):String(t))(f);if(i.toRegex&&1===n)return Ip(Cp(e,l),Cp(t,l),!0,i);let d={negatives:[],positives:[]},m=[],v=0;for(;a?r>=o:r<=o;)!0===i.toRegex&&n>1?d[(g=r)<0?"negatives":"positives"].push(Math.abs(g)):m.push(Bp(h(r,v),l,f)),r=a?r-n:r+n,v++;var g;return!0===i.toRegex?n>1?((e,t)=>{e.negatives.sort(((e,t)=>e<t?-1:e>t?1:0)),e.positives.sort(((e,t)=>e<t?-1:e>t?1:0));let n,i=t.capture?"":"?:",r="",o="";return e.positives.length&&(r=e.positives.join("|")),e.negatives.length&&(o=`-(${i}${e.negatives.join("|")})`),n=r&&o?`${r}|${o}`:r||o,t.wrap?`(${i}${n})`:n})(d,i):Op(m,null,{wrap:!1,...i}):m},Dp=(e,t,n,i={})=>{if(null==t&&Rp(e))return[e];if(!Rp(e)||!Rp(t))return Np(e,t,i);if("function"==typeof n)return Dp(e,t,1,{transform:n});if(Ap(n))return Dp(e,t,0,n);let r={...i};return!0===r.capture&&(r.wrap=!0),n=n||r.step||1,kp(n)?kp(e)&&kp(t)?Lp(e,t,n,r):((e,t,n=1,i={})=>{if(!kp(e)&&e.length>1||!kp(t)&&t.length>1)return Np(e,t,i);let r=i.transform||(e=>String.fromCharCode(e)),o=`${e}`.charCodeAt(0),a=`${t}`.charCodeAt(0),s=o>a,c=Math.min(o,a),u=Math.max(o,a);if(i.toRegex&&1===n)return Ip(c,u,!1,i);let p=[],l=0;for(;s?o>=a:o<=a;)p.push(r(o,l)),o=s?o-n:o+n,l++;return!0===i.toRegex?Op(p,null,{wrap:!1,options:i}):p})(e,t,Math.max(Math.abs(n),1),r):null==n||Ap(n)?Dp(e,t,1,n):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(n,r)};const Pp=Dp,jp=sp;var Hp=(e,t={})=>{let n=(e,i={})=>{let r=jp.isInvalidBrace(i),o=!0===e.invalid&&!0===t.escapeInvalid,a=!0===r||!0===o,s=!0===t.escapeInvalid?"\\":"",c="";if(!0===e.isOpen)return s+e.value;if(!0===e.isClose)return s+e.value;if("open"===e.type)return a?s+e.value:"(";if("close"===e.type)return a?s+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":a?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){let n=jp.reduce(e.nodes),i=Pp(...n,{...t,wrap:!1,toRegex:!0});if(0!==i.length)return n.length>1&&i.length>1?`(${i})`:i}if(e.nodes)for(let t of e.nodes)c+=n(t,e);return c};return n(e)};const Mp=Dp,Fp=up,Gp=sp,qp=(e="",t="",n=!1)=>{let i=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return n?Gp.flatten(t).map((e=>`{${e}}`)):t;for(let r of e)if(Array.isArray(r))for(let e of r)i.push(qp(e,t,n));else for(let e of t)!0===n&&"string"==typeof e&&(e=`{${e}}`),i.push(Array.isArray(e)?qp(r,e,n):r+e);return Gp.flatten(i)};var zp=(e,t={})=>{let n=void 0===t.rangeLimit?1e3:t.rangeLimit,i=(e,r={})=>{e.queue=[];let o=r,a=r.queue;for(;"brace"!==o.type&&"root"!==o.type&&o.parent;)o=o.parent,a=o.queue;if(e.invalid||e.dollar)return void a.push(qp(a.pop(),Fp(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void a.push(qp(a.pop(),["{}"]));if(e.nodes&&e.ranges>0){let i=Gp.reduce(e.nodes);if(Gp.exceedsLimit(...i,t.step,n))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let r=Mp(...i,t);return 0===r.length&&(r=Fp(e,t)),a.push(qp(a.pop(),r)),void(e.nodes=[])}let s=Gp.encloseBrace(e),c=e.queue,u=e;for(;"brace"!==u.type&&"root"!==u.type&&u.parent;)u=u.parent,c=u.queue;for(let t=0;t<e.nodes.length;t++){let n=e.nodes[t];"comma"!==n.type||"brace"!==e.type?"close"!==n.type?n.value&&"open"!==n.type?c.push(qp(c.pop(),n.value)):n.nodes&&i(n,e):a.push(qp(a.pop(),c,s)):(1===t&&c.push(""),c.push(""))}return c};return Gp.flatten(i(e))};const $p=up,{MAX_LENGTH:Kp,CHAR_BACKSLASH:Wp,CHAR_BACKTICK:Xp,CHAR_COMMA:Vp,CHAR_DOT:Qp,CHAR_LEFT_PARENTHESES:Yp,CHAR_RIGHT_PARENTHESES:Zp,CHAR_LEFT_CURLY_BRACE:Jp,CHAR_RIGHT_CURLY_BRACE:el,CHAR_LEFT_SQUARE_BRACKET:tl,CHAR_RIGHT_SQUARE_BRACKET:nl,CHAR_DOUBLE_QUOTE:il,CHAR_SINGLE_QUOTE:rl,CHAR_NO_BREAK_SPACE:ol,CHAR_ZERO_WIDTH_NOBREAK_SPACE:al}={MAX_LENGTH:65536,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"};var sl=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");let n=t||{},i="number"==typeof n.maxLength?Math.min(Kp,n.maxLength):Kp;if(e.length>i)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${i})`);let r,o={type:"root",input:e,nodes:[]},a=[o],s=o,c=o,u=0,p=e.length,l=0,f=0;const h=()=>e[l++],d=e=>{if("text"===e.type&&"dot"===c.type&&(c.type="text"),!c||"text"!==c.type||"text"!==e.type)return s.nodes.push(e),e.parent=s,e.prev=c,c=e,e;c.value+=e.value};for(d({type:"bos"});l<p;)if(s=a[a.length-1],r=h(),r!==al&&r!==ol)if(r!==Wp)if(r!==nl)if(r!==tl)if(r!==Yp)if(r!==Zp)if(r!==il&&r!==rl&&r!==Xp)if(r!==Jp)if(r!==el)if(r===Vp&&f>0){if(s.ranges>0){s.ranges=0;let e=s.nodes.shift();s.nodes=[e,{type:"text",value:$p(s)}]}d({type:"comma",value:r}),s.commas++}else if(r===Qp&&f>0&&0===s.commas){let e=s.nodes;if(0===f||0===e.length){d({type:"text",value:r});continue}if("dot"===c.type){if(s.range=[],c.value+=r,c.type="range",3!==s.nodes.length&&5!==s.nodes.length){s.invalid=!0,s.ranges=0,c.type="text";continue}s.ranges++,s.args=[];continue}if("range"===c.type){e.pop();let t=e[e.length-1];t.value+=c.value+r,c=t,s.ranges--;continue}d({type:"dot",value:r})}else d({type:"text",value:r});else{if("brace"!==s.type){d({type:"text",value:r});continue}let e="close";s=a.pop(),s.close=!0,d({type:e,value:r}),f--,s=a[a.length-1]}else{f++;let e=c.value&&"$"===c.value.slice(-1)||!0===s.dollar;s=d({type:"brace",open:!0,close:!1,dollar:e,depth:f,commas:0,ranges:0,nodes:[]}),a.push(s),d({type:"open",value:r})}else{let e,n=r;for(!0!==t.keepQuotes&&(r="");l<p&&(e=h());)if(e!==Wp){if(e===n){!0===t.keepQuotes&&(r+=e);break}r+=e}else r+=e+h();d({type:"text",value:r})}else{if("paren"!==s.type){d({type:"text",value:r});continue}s=a.pop(),d({type:"text",value:r}),s=a[a.length-1]}else s=d({type:"paren",nodes:[]}),a.push(s),d({type:"text",value:r});else{let e;for(u++;l<p&&(e=h());)if(r+=e,e!==tl)if(e!==Wp){if(e===nl&&(u--,0===u))break}else r+=h();else u++;d({type:"text",value:r})}else d({type:"text",value:"\\"+r});else d({type:"text",value:(t.keepEscaping?r:"")+h()});do{if(s=a.pop(),"root"!==s.type){s.nodes.forEach((e=>{e.nodes||("open"===e.type&&(e.isOpen=!0),"close"===e.type&&(e.isClose=!0),e.nodes||(e.type="text"),e.invalid=!0)}));let e=a[a.length-1],t=e.nodes.indexOf(s);e.nodes.splice(t,1,...s.nodes)}}while(a.length>0);return d({type:"eos"}),o};const cl=up,ul=Hp,pl=zp,ll=sl,fl=(e,t={})=>{let n=[];if(Array.isArray(e))for(let i of e){let e=fl.create(i,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(fl.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(n=[...new Set(n)]),n};fl.parse=(e,t={})=>ll(e,t),fl.stringify=(e,t={})=>cl("string"==typeof e?fl.parse(e,t):e,t),fl.compile=(e,t={})=>("string"==typeof e&&(e=fl.parse(e,t)),ul(e,t)),fl.expand=(e,t={})=>{"string"==typeof e&&(e=fl.parse(e,t));let n=pl(e,t);return!0===t.noempty&&(n=n.filter(Boolean)),!0===t.nodupes&&(n=[...new Set(n)]),n},fl.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?fl.compile(e,t):fl.expand(e,t);var hl=fl,dl={};const ml=t,vl="\\\\/",gl=`[^${vl}]`,bl="\\.",yl="\\/",xl="[^/]",_l=`(?:${yl}|$)`,wl=`(?:^|${yl})`,El=`${bl}{1,2}${_l}`,Sl={DOT_LITERAL:bl,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:yl,ONE_CHAR:"(?=.)",QMARK:xl,END_ANCHOR:_l,DOTS_SLASH:El,NO_DOT:`(?!${bl})`,NO_DOTS:`(?!${wl}${El})`,NO_DOT_SLASH:`(?!${bl}{0,1}${_l})`,NO_DOTS_SLASH:`(?!${El})`,QMARK_NO_DOT:`[^.${yl}]`,STAR:`${xl}*?`,START_ANCHOR:wl},Al={...Sl,SLASH_LITERAL:`[${vl}]`,QMARK:gl,STAR:`${gl}*?`,DOTS_SLASH:`${bl}{1,2}(?:[${vl}]|$)`,NO_DOT:`(?!${bl})`,NO_DOTS:`(?!(?:^|[${vl}])${bl}{1,2}(?:[${vl}]|$))`,NO_DOT_SLASH:`(?!${bl}{0,1}(?:[${vl}]|$))`,NO_DOTS_SLASH:`(?!${bl}{1,2}(?:[${vl}]|$))`,QMARK_NO_DOT:`[^.${vl}]`,START_ANCHOR:`(?:^|[${vl}])`,END_ANCHOR:`(?:[${vl}]|$)`};var Rl={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:ml.sep,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?Al:Sl};!function(e){const n=t,i="win32"===process.platform,{REGEX_BACKSLASH:r,REGEX_REMOVE_BACKSLASH:o,REGEX_SPECIAL_CHARS:a,REGEX_SPECIAL_CHARS_GLOBAL:s}=Rl;e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>a.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(s,"\\$1"),e.toPosixSlashes=e=>e.replace(r,"/"),e.removeBackslashes=e=>e.replace(o,(e=>"\\"===e?"":e)),e.supportsLookbehinds=()=>{const e=process.version.slice(1).split(".").map(Number);return 3===e.length&&e[0]>=9||8===e[0]&&e[1]>=10},e.isWindows=e=>e&&"boolean"==typeof e.windows?e.windows:!0===i||"\\"===n.sep,e.escapeLast=(t,n,i)=>{const r=t.lastIndexOf(n,i);return-1===r?t:"\\"===t[r-1]?e.escapeLast(t,n,r-1):`${t.slice(0,r)}\\${t.slice(r)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},e.wrapOutput=(e,t={},n={})=>{let i=`${n.contains?"":"^"}(?:${e})${n.contains?"":"$"}`;return!0===t.negated&&(i=`(?:^(?!${i}).*$)`),i}}(dl);const kl=dl,{CHAR_ASTERISK:Tl,CHAR_AT:Bl,CHAR_BACKWARD_SLASH:Cl,CHAR_COMMA:Il,CHAR_DOT:Ol,CHAR_EXCLAMATION_MARK:Ul,CHAR_FORWARD_SLASH:Nl,CHAR_LEFT_CURLY_BRACE:Ll,CHAR_LEFT_PARENTHESES:Dl,CHAR_LEFT_SQUARE_BRACKET:Pl,CHAR_PLUS:jl,CHAR_QUESTION_MARK:Hl,CHAR_RIGHT_CURLY_BRACE:Ml,CHAR_RIGHT_PARENTHESES:Fl,CHAR_RIGHT_SQUARE_BRACKET:Gl}=Rl,ql=e=>e===Nl||e===Cl,zl=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};var $l=(e,t)=>{const n=t||{},i=e.length-1,r=!0===n.parts||!0===n.scanToEnd,o=[],a=[],s=[];let c,u,p=e,l=-1,f=0,h=0,d=!1,m=!1,v=!1,g=!1,b=!1,y=!1,x=!1,_=!1,w=!1,E=!1,S=0,A={value:"",depth:0,isGlob:!1};const R=()=>l>=i,k=()=>(c=u,p.charCodeAt(++l));for(;l<i;){let e;if(u=k(),u!==Cl){if(!0===y||u===Ll){for(S++;!0!==R()&&(u=k());)if(u!==Cl)if(u!==Ll){if(!0!==y&&u===Ol&&(u=k())===Ol){if(d=A.isBrace=!0,v=A.isGlob=!0,E=!0,!0===r)continue;break}if(!0!==y&&u===Il){if(d=A.isBrace=!0,v=A.isGlob=!0,E=!0,!0===r)continue;break}if(u===Ml&&(S--,0===S)){y=!1,d=A.isBrace=!0,E=!0;break}}else S++;else x=A.backslashes=!0,k();if(!0===r)continue;break}if(u!==Nl){if(!0!==n.noext){if(!0===(u===jl||u===Bl||u===Tl||u===Hl||u===Ul)&&p.charCodeAt(l+1)===Dl){if(v=A.isGlob=!0,g=A.isExtglob=!0,E=!0,u===Ul&&l===f&&(w=!0),!0===r){for(;!0!==R()&&(u=k());)if(u!==Cl){if(u===Fl){v=A.isGlob=!0,E=!0;break}}else x=A.backslashes=!0,u=k();continue}break}}if(u===Tl){if(c===Tl&&(b=A.isGlobstar=!0),v=A.isGlob=!0,E=!0,!0===r)continue;break}if(u===Hl){if(v=A.isGlob=!0,E=!0,!0===r)continue;break}if(u===Pl){for(;!0!==R()&&(e=k());)if(e!==Cl){if(e===Gl){m=A.isBracket=!0,v=A.isGlob=!0,E=!0;break}}else x=A.backslashes=!0,k();if(!0===r)continue;break}if(!0===n.nonegate||u!==Ul||l!==f){if(!0!==n.noparen&&u===Dl){if(v=A.isGlob=!0,!0===r){for(;!0!==R()&&(u=k());)if(u!==Dl){if(u===Fl){E=!0;break}}else x=A.backslashes=!0,u=k();continue}break}if(!0===v){if(E=!0,!0===r)continue;break}}else _=A.negated=!0,f++}else{if(o.push(l),a.push(A),A={value:"",depth:0,isGlob:!1},!0===E)continue;if(c===Ol&&l===f+1){f+=2;continue}h=l+1}}else x=A.backslashes=!0,u=k(),u===Ll&&(y=!0)}!0===n.noext&&(g=!1,v=!1);let T=p,B="",C="";f>0&&(B=p.slice(0,f),p=p.slice(f),h-=f),T&&!0===v&&h>0?(T=p.slice(0,h),C=p.slice(h)):!0===v?(T="",C=p):T=p,T&&""!==T&&"/"!==T&&T!==p&&ql(T.charCodeAt(T.length-1))&&(T=T.slice(0,-1)),!0===n.unescape&&(C&&(C=kl.removeBackslashes(C)),T&&!0===x&&(T=kl.removeBackslashes(T)));const I={prefix:B,input:e,start:f,base:T,glob:C,isBrace:d,isBracket:m,isGlob:v,isExtglob:g,isGlobstar:b,negated:_,negatedExtglob:w};if(!0===n.tokens&&(I.maxDepth=0,ql(u)||a.push(A),I.tokens=a),!0===n.parts||!0===n.tokens){let t;for(let i=0;i<o.length;i++){const r=t?t+1:f,c=o[i],u=e.slice(r,c);n.tokens&&(0===i&&0!==f?(a[i].isPrefix=!0,a[i].value=B):a[i].value=u,zl(a[i]),I.maxDepth+=a[i].depth),0===i&&""===u||s.push(u),t=c}if(t&&t+1<e.length){const i=e.slice(t+1);s.push(i),n.tokens&&(a[a.length-1].value=i,zl(a[a.length-1]),I.maxDepth+=a[a.length-1].depth)}I.slashes=o,I.parts=s}return I};const Kl=Rl,Wl=dl,{MAX_LENGTH:Xl,POSIX_REGEX_SOURCE:Vl,REGEX_NON_SPECIAL_CHARS:Ql,REGEX_SPECIAL_CHARS_BACKREF:Yl,REPLACEMENTS:Zl}=Kl,Jl=(e,t)=>{if("function"==typeof t.expandRange)return t.expandRange(...e,t);e.sort();const n=`[${e.join("-")}]`;try{new RegExp(n)}catch(t){return e.map((e=>Wl.escapeRegex(e))).join("..")}return n},ef=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,tf=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=Zl[e]||e;const n={...t},i="number"==typeof n.maxLength?Math.min(Xl,n.maxLength):Xl;let r=e.length;if(r>i)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${i}`);const o={type:"bos",value:"",output:n.prepend||""},a=[o],s=n.capture?"":"?:",c=Wl.isWindows(t),u=Kl.globChars(c),p=Kl.extglobChars(u),{DOT_LITERAL:l,PLUS_LITERAL:f,SLASH_LITERAL:h,ONE_CHAR:d,DOTS_SLASH:m,NO_DOT:v,NO_DOT_SLASH:g,NO_DOTS_SLASH:b,QMARK:y,QMARK_NO_DOT:x,STAR:_,START_ANCHOR:w}=u,E=e=>`(${s}(?:(?!${w}${e.dot?m:l}).)*?)`,S=n.dot?"":v,A=n.dot?y:x;let R=!0===n.bash?E(n):_;n.capture&&(R=`(${R})`),"boolean"==typeof n.noext&&(n.noextglob=n.noext);const k={input:e,index:-1,start:0,dot:!0===n.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:a};e=Wl.removePrefix(e,k),r=e.length;const T=[],B=[],C=[];let I,O=o;const U=()=>k.index===r-1,N=k.peek=(t=1)=>e[k.index+t],L=k.advance=()=>e[++k.index]||"",D=()=>e.slice(k.index+1),P=(e="",t=0)=>{k.consumed+=e,k.index+=t},j=e=>{k.output+=null!=e.output?e.output:e.value,P(e.value)},H=()=>{let e=1;for(;"!"===N()&&("("!==N(2)||"?"===N(3));)L(),k.start++,e++;return e%2!=0&&(k.negated=!0,k.start++,!0)},M=e=>{k[e]++,C.push(e)},F=e=>{k[e]--,C.pop()},G=e=>{if("globstar"===O.type){const t=k.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||T.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(k.output=k.output.slice(0,-O.output.length),O.type="star",O.value="*",O.output=R,k.output+=O.output)}if(T.length&&"paren"!==e.type&&(T[T.length-1].inner+=e.value),(e.value||e.output)&&j(e),O&&"text"===O.type&&"text"===e.type)return O.value+=e.value,void(O.output=(O.output||"")+e.value);e.prev=O,a.push(e),O=e},q=(e,t)=>{const i={...p[t],conditions:1,inner:""};i.prev=O,i.parens=k.parens,i.output=k.output;const r=(n.capture?"(":"")+i.open;M("parens"),G({type:e,value:t,output:k.output?"":d}),G({type:"paren",extglob:!0,value:L(),output:r}),T.push(i)},z=e=>{let i,r=e.close+(n.capture?")":"");if("negate"===e.type){let o=R;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(o=E(n)),(o!==R||U()||/^\)+$/.test(D()))&&(r=e.close=`)$))${o}`),e.inner.includes("*")&&(i=D())&&/^\.[^\\/.]+$/.test(i)){const n=tf(i,{...t,fastpaths:!1}).output;r=e.close=`)${n})${o})`}"bos"===e.prev.type&&(k.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:I,output:r}),F("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let i=!1,r=e.replace(Yl,((e,t,n,r,o,a)=>"\\"===r?(i=!0,e):"?"===r?t?t+r+(o?y.repeat(o.length):""):0===a?A+(o?y.repeat(o.length):""):y.repeat(n.length):"."===r?l.repeat(n.length):"*"===r?t?t+r+(o?R:""):R:t?e:`\\${e}`));return!0===i&&(r=!0===n.unescape?r.replace(/\\/g,""):r.replace(/\\+/g,(e=>e.length%2==0?"\\\\":e?"\\":""))),r===e&&!0===n.contains?(k.output=e,k):(k.output=Wl.wrapOutput(r,k,t),k)}for(;!U();){if(I=L(),"\0"===I)continue;if("\\"===I){const e=N();if("/"===e&&!0!==n.bash)continue;if("."===e||";"===e)continue;if(!e){I+="\\",G({type:"text",value:I});continue}const t=/^\\+/.exec(D());let i=0;if(t&&t[0].length>2&&(i=t[0].length,k.index+=i,i%2!=0&&(I+="\\")),!0===n.unescape?I=L():I+=L(),0===k.brackets){G({type:"text",value:I});continue}}if(k.brackets>0&&("]"!==I||"["===O.value||"[^"===O.value)){if(!1!==n.posix&&":"===I){const e=O.value.slice(1);if(e.includes("[")&&(O.posix=!0,e.includes(":"))){const e=O.value.lastIndexOf("["),t=O.value.slice(0,e),n=O.value.slice(e+2),i=Vl[n];if(i){O.value=t+i,k.backtrack=!0,L(),o.output||1!==a.indexOf(O)||(o.output=d);continue}}}("["===I&&":"!==N()||"-"===I&&"]"===N())&&(I=`\\${I}`),"]"!==I||"["!==O.value&&"[^"!==O.value||(I=`\\${I}`),!0===n.posix&&"!"===I&&"["===O.value&&(I="^"),O.value+=I,j({value:I});continue}if(1===k.quotes&&'"'!==I){I=Wl.escapeRegex(I),O.value+=I,j({value:I});continue}if('"'===I){k.quotes=1===k.quotes?0:1,!0===n.keepQuotes&&G({type:"text",value:I});continue}if("("===I){M("parens"),G({type:"paren",value:I});continue}if(")"===I){if(0===k.parens&&!0===n.strictBrackets)throw new SyntaxError(ef("opening","("));const e=T[T.length-1];if(e&&k.parens===e.parens+1){z(T.pop());continue}G({type:"paren",value:I,output:k.parens?")":"\\)"}),F("parens");continue}if("["===I){if(!0!==n.nobracket&&D().includes("]"))M("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(ef("closing","]"));I=`\\${I}`}G({type:"bracket",value:I});continue}if("]"===I){if(!0===n.nobracket||O&&"bracket"===O.type&&1===O.value.length){G({type:"text",value:I,output:`\\${I}`});continue}if(0===k.brackets){if(!0===n.strictBrackets)throw new SyntaxError(ef("opening","["));G({type:"text",value:I,output:`\\${I}`});continue}F("brackets");const e=O.value.slice(1);if(!0===O.posix||"^"!==e[0]||e.includes("/")||(I=`/${I}`),O.value+=I,j({value:I}),!1===n.literalBrackets||Wl.hasRegexChars(e))continue;const t=Wl.escapeRegex(O.value);if(k.output=k.output.slice(0,-O.value.length),!0===n.literalBrackets){k.output+=t,O.value=t;continue}O.value=`(${s}${t}|${O.value})`,k.output+=O.value;continue}if("{"===I&&!0!==n.nobrace){M("braces");const e={type:"brace",value:I,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};B.push(e),G(e);continue}if("}"===I){const e=B[B.length-1];if(!0===n.nobrace||!e){G({type:"text",value:I,output:I});continue}let t=")";if(!0===e.dots){const e=a.slice(),i=[];for(let t=e.length-1;t>=0&&(a.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&i.unshift(e[t].value);t=Jl(i,n),k.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){const n=k.output.slice(0,e.outputIndex),i=k.tokens.slice(e.tokensIndex);e.value=e.output="\\{",I=t="\\}",k.output=n;for(const e of i)k.output+=e.output||e.value}G({type:"brace",value:I,output:t}),F("braces"),B.pop();continue}if("|"===I){T.length>0&&T[T.length-1].conditions++,G({type:"text",value:I});continue}if(","===I){let e=I;const t=B[B.length-1];t&&"braces"===C[C.length-1]&&(t.comma=!0,e="|"),G({type:"comma",value:I,output:e});continue}if("/"===I){if("dot"===O.type&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",a.pop(),O=o;continue}G({type:"slash",value:I,output:h});continue}if("."===I){if(k.braces>0&&"dot"===O.type){"."===O.value&&(O.output=l);const e=B[B.length-1];O.type="dots",O.output+=I,O.value+=I,e.dots=!0;continue}if(k.braces+k.parens===0&&"bos"!==O.type&&"slash"!==O.type){G({type:"text",value:I,output:l});continue}G({type:"dot",value:I,output:l});continue}if("?"===I){if(!(O&&"("===O.value)&&!0!==n.noextglob&&"("===N()&&"?"!==N(2)){q("qmark",I);continue}if(O&&"paren"===O.type){const e=N();let t=I;if("<"===e&&!Wl.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===O.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(D()))&&(t=`\\${I}`),G({type:"text",value:I,output:t});continue}if(!0!==n.dot&&("slash"===O.type||"bos"===O.type)){G({type:"qmark",value:I,output:x});continue}G({type:"qmark",value:I,output:y});continue}if("!"===I){if(!0!==n.noextglob&&"("===N()&&("?"!==N(2)||!/[!=<:]/.test(N(3)))){q("negate",I);continue}if(!0!==n.nonegate&&0===k.index){H();continue}}if("+"===I){if(!0!==n.noextglob&&"("===N()&&"?"!==N(2)){q("plus",I);continue}if(O&&"("===O.value||!1===n.regex){G({type:"plus",value:I,output:f});continue}if(O&&("bracket"===O.type||"paren"===O.type||"brace"===O.type)||k.parens>0){G({type:"plus",value:I});continue}G({type:"plus",value:f});continue}if("@"===I){if(!0!==n.noextglob&&"("===N()&&"?"!==N(2)){G({type:"at",extglob:!0,value:I,output:""});continue}G({type:"text",value:I});continue}if("*"!==I){"$"!==I&&"^"!==I||(I=`\\${I}`);const e=Ql.exec(D());e&&(I+=e[0],k.index+=e[0].length),G({type:"text",value:I});continue}if(O&&("globstar"===O.type||!0===O.star)){O.type="star",O.star=!0,O.value+=I,O.output=R,k.backtrack=!0,k.globstar=!0,P(I);continue}let t=D();if(!0!==n.noextglob&&/^\([^?]/.test(t)){q("star",I);continue}if("star"===O.type){if(!0===n.noglobstar){P(I);continue}const i=O.prev,r=i.prev,o="slash"===i.type||"bos"===i.type,a=r&&("star"===r.type||"globstar"===r.type);if(!0===n.bash&&(!o||t[0]&&"/"!==t[0])){G({type:"star",value:I,output:""});continue}const s=k.braces>0&&("comma"===i.type||"brace"===i.type),c=T.length&&("pipe"===i.type||"paren"===i.type);if(!o&&"paren"!==i.type&&!s&&!c){G({type:"star",value:I,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[k.index+4];if(n&&"/"!==n)break;t=t.slice(3),P("/**",3)}if("bos"===i.type&&U()){O.type="globstar",O.value+=I,O.output=E(n),k.output=O.output,k.globstar=!0,P(I);continue}if("slash"===i.type&&"bos"!==i.prev.type&&!a&&U()){k.output=k.output.slice(0,-(i.output+O.output).length),i.output=`(?:${i.output}`,O.type="globstar",O.output=E(n)+(n.strictSlashes?")":"|$)"),O.value+=I,k.globstar=!0,k.output+=i.output+O.output,P(I);continue}if("slash"===i.type&&"bos"!==i.prev.type&&"/"===t[0]){const e=void 0!==t[1]?"|$":"";k.output=k.output.slice(0,-(i.output+O.output).length),i.output=`(?:${i.output}`,O.type="globstar",O.output=`${E(n)}${h}|${h}${e})`,O.value+=I,k.output+=i.output+O.output,k.globstar=!0,P(I+L()),G({type:"slash",value:"/",output:""});continue}if("bos"===i.type&&"/"===t[0]){O.type="globstar",O.value+=I,O.output=`(?:^|${h}|${E(n)}${h})`,k.output=O.output,k.globstar=!0,P(I+L()),G({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-O.output.length),O.type="globstar",O.output=E(n),O.value+=I,k.output+=O.output,k.globstar=!0,P(I);continue}const i={type:"star",value:I,output:R};!0!==n.bash?!O||"bracket"!==O.type&&"paren"!==O.type||!0!==n.regex?(k.index!==k.start&&"slash"!==O.type&&"dot"!==O.type||("dot"===O.type?(k.output+=g,O.output+=g):!0===n.dot?(k.output+=b,O.output+=b):(k.output+=S,O.output+=S),"*"!==N()&&(k.output+=d,O.output+=d)),G(i)):(i.output=I,G(i)):(i.output=".*?","bos"!==O.type&&"slash"!==O.type||(i.output=S+i.output),G(i))}for(;k.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(ef("closing","]"));k.output=Wl.escapeLast(k.output,"["),F("brackets")}for(;k.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(ef("closing",")"));k.output=Wl.escapeLast(k.output,"("),F("parens")}for(;k.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(ef("closing","}"));k.output=Wl.escapeLast(k.output,"{"),F("braces")}if(!0===n.strictSlashes||"star"!==O.type&&"bracket"!==O.type||G({type:"maybe_slash",value:"",output:`${h}?`}),!0===k.backtrack){k.output="";for(const e of k.tokens)k.output+=null!=e.output?e.output:e.value,e.suffix&&(k.output+=e.suffix)}return k};tf.fastpaths=(e,t)=>{const n={...t},i="number"==typeof n.maxLength?Math.min(Xl,n.maxLength):Xl,r=e.length;if(r>i)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${i}`);e=Zl[e]||e;const o=Wl.isWindows(t),{DOT_LITERAL:a,SLASH_LITERAL:s,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:p,NO_DOTS:l,NO_DOTS_SLASH:f,STAR:h,START_ANCHOR:d}=Kl.globChars(o),m=n.dot?l:p,v=n.dot?f:p,g=n.capture?"":"?:";let b=!0===n.bash?".*?":h;n.capture&&(b=`(${b})`);const y=e=>!0===e.noglobstar?b:`(${g}(?:(?!${d}${e.dot?u:a}).)*?)`,x=e=>{switch(e){case"*":return`${m}${c}${b}`;case".*":return`${a}${c}${b}`;case"*.*":return`${m}${b}${a}${c}${b}`;case"*/*":return`${m}${b}${s}${c}${v}${b}`;case"**":return m+y(n);case"**/*":return`(?:${m}${y(n)}${s})?${v}${c}${b}`;case"**/*.*":return`(?:${m}${y(n)}${s})?${v}${b}${a}${c}${b}`;case"**/.*":return`(?:${m}${y(n)}${s})?${a}${c}${b}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=x(t[1]);if(!n)return;return n+a+t[2]}}},_=Wl.removePrefix(e,{negated:!1,prefix:""});let w=x(_);return w&&!0!==n.strictSlashes&&(w+=`${s}?`),w};const nf=t,rf=$l,of=tf,af=dl,sf=Rl,cf=(e,t,n=!1)=>{if(Array.isArray(e)){const i=e.map((e=>cf(e,t,n))),r=e=>{for(const t of i){const n=t(e);if(n)return n}return!1};return r}const i=(r=e)&&"object"==typeof r&&!Array.isArray(r)&&e.tokens&&e.input;var r;if(""===e||"string"!=typeof e&&!i)throw new TypeError("Expected pattern to be a non-empty string");const o=t||{},a=af.isWindows(t),s=i?cf.compileRe(e,t):cf.makeRe(e,t,!1,!0),c=s.state;delete s.state;let u=()=>!1;if(o.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};u=cf(o.ignore,e,n)}const p=(n,i=!1)=>{const{isMatch:r,match:p,output:l}=cf.test(n,s,t,{glob:e,posix:a}),f={glob:e,state:c,regex:s,posix:a,input:n,output:l,match:p,isMatch:r};return"function"==typeof o.onResult&&o.onResult(f),!1===r?(f.isMatch=!1,!!i&&f):u(n)?("function"==typeof o.onIgnore&&o.onIgnore(f),f.isMatch=!1,!!i&&f):("function"==typeof o.onMatch&&o.onMatch(f),!i||f)};return n&&(p.state=c),p};cf.test=(e,t,n,{glob:i,posix:r}={})=>{if("string"!=typeof e)throw new TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};const o=n||{},a=o.format||(r?af.toPosixSlashes:null);let s=e===i,c=s&&a?a(e):e;return!1===s&&(c=a?a(e):e,s=c===i),!1!==s&&!0!==o.capture||(s=!0===o.matchBase||!0===o.basename?cf.matchBase(e,t,n,r):t.exec(c)),{isMatch:Boolean(s),match:s,output:c}},cf.matchBase=(e,t,n,i=af.isWindows(n))=>(t instanceof RegExp?t:cf.makeRe(t,n)).test(nf.basename(e)),cf.isMatch=(e,t,n)=>cf(t,n)(e),cf.parse=(e,t)=>Array.isArray(e)?e.map((e=>cf.parse(e,t))):of(e,{...t,fastpaths:!1}),cf.scan=(e,t)=>rf(e,t),cf.compileRe=(e,t,n=!1,i=!1)=>{if(!0===n)return e.output;const r=t||{},o=r.contains?"":"^",a=r.contains?"":"$";let s=`${o}(?:${e.output})${a}`;e&&!0===e.negated&&(s=`^(?!${s}).*$`);const c=cf.toRegex(s,t);return!0===i&&(c.state=e),c},cf.makeRe=(e,t={},n=!1,i=!1)=>{if(!e||"string"!=typeof e)throw new TypeError("Expected a non-empty string");let r={negated:!1,fastpaths:!0};return!1===t.fastpaths||"."!==e[0]&&"*"!==e[0]||(r.output=of.fastpaths(e,t)),r.output||(r=of(e,t)),cf.compileRe(r,t,n,i)},cf.toRegex=(e,t)=>{try{const n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},cf.constants=sf;const uf=r,pf=hl,lf=cf,ff=dl,hf=e=>""===e||"./"===e,df=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let i=new Set,r=new Set,o=new Set,a=0,s=e=>{o.add(e.output),n&&n.onResult&&n.onResult(e)};for(let o=0;o<t.length;o++){let c=lf(String(t[o]),{...n,onResult:s},!0),u=c.state.negated||c.state.negatedExtglob;u&&a++;for(let t of e){let e=c(t,!0);(u?!e.isMatch:e.isMatch)&&(u?i.add(e.output):(i.delete(e.output),r.add(e.output)))}}let c=(a===t.length?[...o]:[...r]).filter((e=>!i.has(e)));if(n&&0===c.length){if(!0===n.failglob)throw new Error(`No matches found for "${t.join(", ")}"`);if(!0===n.nonull||!0===n.nullglob)return n.unescape?t.map((e=>e.replace(/\\/g,""))):t}return c};df.match=df,df.matcher=(e,t)=>lf(e,t),df.any=df.isMatch=(e,t,n)=>lf(t,n)(e),df.not=(e,t,n={})=>{t=[].concat(t).map(String);let i=new Set,r=[],o=new Set(df(e,t,{...n,onResult:e=>{n.onResult&&n.onResult(e),r.push(e.output)}}));for(let e of r)o.has(e)||i.add(e);return[...i]},df.contains=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${uf.inspect(e)}"`);if(Array.isArray(t))return t.some((t=>df.contains(e,t,n)));if("string"==typeof t){if(hf(e)||hf(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return df.isMatch(e,t,{...n,contains:!0})},df.matchKeys=(e,t,n)=>{if(!ff.isObject(e))throw new TypeError("Expected the first argument to be an object");let i=df(Object.keys(e),t,n),r={};for(let t of i)r[t]=e[t];return r},df.some=(e,t,n)=>{let i=[].concat(e);for(let e of[].concat(t)){let t=lf(String(e),n);if(i.some((e=>t(e))))return!0}return!1},df.every=(e,t,n)=>{let i=[].concat(e);for(let e of[].concat(t)){let t=lf(String(e),n);if(!i.every((e=>t(e))))return!1}return!0},df.all=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${uf.inspect(e)}"`);return[].concat(t).every((t=>lf(t,n)(e)))},df.capture=(e,t,n)=>{let i=ff.isWindows(n),r=lf.makeRe(String(e),{...n,capture:!0}).exec(i?ff.toPosixSlashes(t):t);if(r)return r.slice(1).map((e=>void 0===e?"":e))},df.makeRe=(...e)=>lf.makeRe(...e),df.scan=(...e)=>lf.scan(...e),df.parse=(e,t)=>{let n=[];for(let i of[].concat(e||[]))for(let e of pf(String(i),t))n.push(lf.parse(e,t));return n},df.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!/\{.*\}/.test(e)?[e]:pf(e,t)},df.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return df.braces(e,{...t,expand:!0})};var mf=e,vf=t,gf=function(e,t){if("string"!=typeof e||""===e)return!1;if(Au(e))return!0;var n=ku;return t&&!1===t.strict&&(n=Tu),n(e)},bf=function(e){return"~"===e.charAt(0)&&(e=np(e)),"@"===e.charAt(0)&&(e=tp.join(ip,e.slice(1))),e},yf=function(e,t){return e&&"string"==typeof e?rp.existsSync(e)?op.resolve(e):!0===(t=t||{}).nocase?function(e){e=op.resolve(e);var t=function(e){var t={path:e,files:[]};try{return t.files=rp.readdirSync(e),t}catch(e){}try{return t.path=op.dirname(e),t.files=rp.readdirSync(t.path),t}catch(e){}return null}(e);if(null===t)return null;if(t.path===e)return t.path;var n=e.toUpperCase(),i=t.files.length,r=-1;for(;++r<i;){var o=op.resolve(t.path,t.files[r]);if(e===o||n===o)return o;var a=o.toUpperCase();if(e===a||n===a)return o}return null}(e):null:null},xf=df;function _f(e,t,n){for(var i,r=t.length,o=-1;++o<r;)if(i=gf(t[o])?wf(e,t[o],n):Ef(e,t[o],n))return i;var a=vf.dirname(e);return a===e?null:_f(a,t,n)}function wf(e,t,n){for(var i=xf.matcher(t,n),r=function(e){try{return mf.readdirSync(e)}catch(e){}return[]}(e),o=r.length,a=-1;++a<o;){var s=r[a],c=vf.join(e,s);if(i(s)||i(c))return c}return null}function Ef(e,t,n){var i=vf.resolve(e,t);return yf(i,n)}var Sf=w((function(e,t){t=t||{};var n=vf.resolve(bf(t.cwd||""));if("string"==typeof e)return _f(n,[e],t);if(!Array.isArray(e))throw new TypeError("findup-sync expects a string or array as the first argument.");return _f(n,e,t)}));var Af,Rf,kf={stringReplaceAll:(e,t,n)=>{let i=e.indexOf(t);if(-1===i)return e;const r=t.length;let o=0,a="";do{a+=e.substr(o,i-o)+t+n,o=i+r,i=e.indexOf(t,o)}while(-1!==i);return a+=e.substr(o),a},stringEncaseCRLFWithFirstIndex:(e,t,n,i)=>{let r=0,o="";do{const a="\r"===e[i-1];o+=e.substr(r,(a?i-1:i)-r)+t+(a?"\r\n":"\n")+n,r=i+1,i=e.indexOf("\n",r)}while(-1!==i);return o+=e.substr(r),o}};const Tf=Ra,{stdout:Bf,stderr:Cf}=Na,{stringReplaceAll:If,stringEncaseCRLFWithFirstIndex:Of}=kf,{isArray:Uf}=Array,Nf=["ansi","ansi","ansi256","ansi16m"],Lf=Object.create(null);class Df{constructor(e){return Pf(e)}}const Pf=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=Bf?Bf.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>$f(t.template,...e),Object.setPrototypeOf(t,jf.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Df,t.template};function jf(e){return Pf(e)}for(const[wy,Ey]of Object.entries(Tf))Lf[wy]={get(){const e=Gf(this,Ff(Ey.open,Ey.close,this._styler),this._isEmpty);return Object.defineProperty(this,wy,{value:e}),e}};Lf.visible={get(){const e=Gf(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const Hf=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const Sy of Hf)Lf[Sy]={get(){const{level:e}=this;return function(...t){const n=Ff(Tf.color[Nf[e]][Sy](...t),Tf.color.close,this._styler);return Gf(this,n,this._isEmpty)}}};for(const Ay of Hf){Lf["bg"+Ay[0].toUpperCase()+Ay.slice(1)]={get(){const{level:e}=this;return function(...t){const n=Ff(Tf.bgColor[Nf[e]][Ay](...t),Tf.bgColor.close,this._styler);return Gf(this,n,this._isEmpty)}}}}const Mf=Object.defineProperties((()=>{}),{...Lf,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Ff=(e,t,n)=>{let i,r;return void 0===n?(i=e,r=t):(i=n.openAll+e,r=t+n.closeAll),{open:e,close:t,openAll:i,closeAll:r,parent:n}},Gf=(e,t,n)=>{const i=(...e)=>Uf(e[0])&&Uf(e[0].raw)?qf(i,$f(i,...e)):qf(i,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(i,Mf),i._generator=e,i._styler=t,i._isEmpty=n,i},qf=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:i,closeAll:r}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=If(t,n.close,n.open),n=n.parent;const o=t.indexOf("\n");return-1!==o&&(t=Of(t,r,i,o)),i+t+r};let zf;const $f=(e,...t)=>{const[n]=t;if(!Uf(n)||!Uf(n.raw))return t.join(" ");const i=t.slice(1),r=[n.raw[0]];for(let e=1;e<n.length;e++)r.push(String(i[e-1]).replace(/[{}\\]/g,"\\$&"),String(n.raw[e]));return void 0===zf&&(zf=function(){if(Rf)return Af;Rf=1;const e=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,t=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,n=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,i=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,r=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function o(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):r.get(e)||e}function a(e,t){const r=[],a=t.trim().split(/\s*,\s*/g);let s;for(const t of a){const a=Number(t);if(Number.isNaN(a)){if(!(s=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(s[2].replace(i,((e,t,n)=>t?o(t):n)))}else r.push(a)}return r}function s(e){t.lastIndex=0;const n=[];let i;for(;null!==(i=t.exec(e));){const e=i[1];if(i[2]){const t=a(e,i[2]);n.push([e].concat(t))}else n.push([e])}return n}function c(e,t){const n={};for(const e of t)for(const t of e.styles)n[t[0]]=e.inverse?null:t.slice(1);let i=e;for(const[e,t]of Object.entries(n))if(Array.isArray(t)){if(!(e in i))throw new Error(`Unknown Chalk style: ${e}`);i=t.length>0?i[e](...t):i[e]}return i}return Af=(t,n)=>{const i=[],r=[];let a=[];if(n.replace(e,((e,n,u,p,l,f)=>{if(n)a.push(o(n));else if(p){const e=a.join("");a=[],r.push(0===i.length?e:c(t,i)(e)),i.push({inverse:u,styles:s(p)})}else if(l){if(0===i.length)throw new Error("Found extraneous } in Chalk template literal");r.push(c(t,i)(a.join(""))),a=[],i.pop()}else a.push(f)})),r.push(a.join("")),i.length>0){const e=`Chalk template literal is missing ${i.length} closing bracket${1===i.length?"":"s"} (\`}\`)`;throw new Error(e)}return r.join("")},Af}()),zf(e,r.join(""))};Object.defineProperties(jf.prototype,Lf);const Kf=jf();Kf.supportsColor=Bf,Kf.stderr=jf({level:Cf?Cf.level:0}),Kf.stderr.supportsColor=Cf;var Wf=w(Kf),Xf={exports:{}},Vf={exports:{}};const Qf="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,Yf=t,Zf=Qf?";":":",Jf=Zu,eh=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),th=(e,t)=>{const n=t.colon||Zf,i=e.match(/\//)||Qf&&e.match(/\\/)?[""]:[...Qf?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],r=Qf?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",o=Qf?r.split(n):[""];return Qf&&-1!==e.indexOf(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:r}},nh=(e,t,n)=>{"function"==typeof t&&(n=t,t={}),t||(t={});const{pathEnv:i,pathExt:r,pathExtExe:o}=th(e,t),a=[],s=n=>new Promise(((r,o)=>{if(n===i.length)return t.all&&a.length?r(a):o(eh(e));const s=i[n],u=/^".*"$/.test(s)?s.slice(1,-1):s,p=Yf.join(u,e),l=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+p:p;r(c(l,n,0))})),c=(e,n,i)=>new Promise(((u,p)=>{if(i===r.length)return u(s(n+1));const l=r[i];Jf(e+l,{pathExt:o},((r,o)=>{if(!r&&o){if(!t.all)return u(e+l);a.push(e+l)}return u(c(e,n,i+1))}))}));return n?s(0).then((e=>n(null,e)),n):s(0)};var ih=nh;nh.sync=(e,t)=>{t=t||{};const{pathEnv:n,pathExt:i,pathExtExe:r}=th(e,t),o=[];for(let a=0;a<n.length;a++){const s=n[a],c=/^".*"$/.test(s)?s.slice(1,-1):s,u=Yf.join(c,e),p=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;for(let e=0;e<i.length;e++){const n=p+i[e];try{if(Jf.sync(n,{pathExt:r})){if(!t.all)return n;o.push(n)}}catch(e){}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw eh(e)};var rh={exports:{}};const oh=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find((e=>"PATH"===e.toUpperCase()))||"Path"};rh.exports=oh,rh.exports.default=oh;var ah=rh.exports;const sh=t,ch=ih,uh=ah;function ph(e,t){const n=e.options.env||process.env,i=process.cwd(),r=null!=e.options.cwd,o=r&&void 0!==process.chdir&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch(e){}let a;try{a=ch.sync(e.command,{path:n[uh({env:n})],pathExt:t?sh.delimiter:void 0})}catch(e){}finally{o&&process.chdir(i)}return a&&(a=sh.resolve(r?e.options.cwd:"",a)),a}var lh=function(e){return ph(e)||ph(e,!0)},fh={};const hh=/([()\][%!^"`<>&|;, *?])/g;fh.command=function(e){return e=e.replace(hh,"^$1")},fh.argument=function(e,t){return e=(e=`"${e=(e=(e=`${e}`).replace(/(\\*)"/g,'$1$1\\"')).replace(/(\\*)$/,"$1$1")}"`).replace(hh,"^$1"),t&&(e=e.replace(hh,"^$1")),e};const dh=/^#!(.*)/;const mh=e,vh=(e="")=>{const t=e.match(dh);if(!t)return null;const[n,i]=t[0].replace(/#! ?/,"").split(" "),r=n.split("/").pop();return"env"===r?i:i?`${r} ${i}`:r};var gh=function(e){const t=Buffer.alloc(150);let n;try{n=mh.openSync(e,"r"),mh.readSync(n,t,0,150,0),mh.closeSync(n)}catch(e){}return vh(t.toString())};const bh=t,yh=lh,xh=fh,_h=gh,wh="win32"===process.platform,Eh=/\.(?:com|exe)$/i,Sh=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Ah(e){if(!wh)return e;const t=function(e){e.file=yh(e);const t=e.file&&_h(e.file);return t?(e.args.unshift(e.file),e.command=t,yh(e)):e.file}(e),n=!Eh.test(t);if(e.options.forceShell||n){const n=Sh.test(t);e.command=bh.normalize(e.command),e.command=xh.command(e.command),e.args=e.args.map((e=>xh.argument(e,n)));const i=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${i}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}var Rh=function(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null);const i={command:e,args:t=t?t.slice(0):[],options:n=Object.assign({},n),file:void 0,original:{command:e,args:t}};return n.shell?i:Ah(i)};const kh="win32"===process.platform;function Th(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function Bh(e,t){return kh&&1===e&&!t.file?Th(t.original,"spawn"):null}var Ch={hookChildProcess:function(e,t){if(!kh)return;const n=e.emit;e.emit=function(i,r){if("exit"===i){const i=Bh(r,t);if(i)return n.call(e,"error",i)}return n.apply(e,arguments)}},verifyENOENT:Bh,verifyENOENTSync:function(e,t){return kh&&1===e&&!t.file?Th(t.original,"spawnSync"):null},notFoundError:Th};const Ih=h,Oh=Rh,Uh=Ch;function Nh(e,t,n){const i=Oh(e,t,n),r=Ih.spawn(i.command,i.args,i.options);return Uh.hookChildProcess(r,i),r}Vf.exports=Nh,Vf.exports.spawn=Nh,Vf.exports.sync=function(e,t,n){const i=Oh(e,t,n),r=Ih.spawnSync(i.command,i.args,i.options);return r.error=r.error||Uh.verifyENOENTSync(r.status,i),r},Vf.exports._parse=Oh,Vf.exports._enoent=Uh;var Lh=Vf.exports,Dh={exports:{}};!function(e){const n=t,i=ah,r=e=>{let t;e={cwd:process.cwd(),path:process.env[i()],execPath:process.execPath,...e};let r=n.resolve(e.cwd);const o=[];for(;t!==r;)o.push(n.join(r,"node_modules/.bin")),t=r,r=n.resolve(r,"..");const a=n.resolve(e.cwd,e.execPath,"..");return o.push(a),o.concat(e.path).join(n.delimiter)};e.exports=r,e.exports.default=r,e.exports.env=t=>{const n={...(t={env:process.env,...t}).env},r=i({env:n});return t.path=n[r],n[r]=e.exports(t),n}}(Dh);var Ph=Dh.exports,jh={},Hh={},Mh={};Object.defineProperty(Mh,"__esModule",{value:!0}),Mh.SIGNALS=void 0;Mh.SIGNALS=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var Fh={};Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.SIGRTMAX=Fh.getRealtimeSignals=void 0;Fh.getRealtimeSignals=function(){const e=zh-qh+1;return Array.from({length:e},Gh)};const Gh=function(e,t){return{name:`SIGRT${t+1}`,number:qh+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},qh=34,zh=64;Fh.SIGRTMAX=zh,Object.defineProperty(Hh,"__esModule",{value:!0}),Hh.getSignals=void 0;var $h=m,Kh=Mh,Wh=Fh;Hh.getSignals=function(){const e=(0,Wh.getRealtimeSignals)();return[...Kh.SIGNALS,...e].map(Xh)};const Xh=function({name:e,number:t,description:n,action:i,forced:r=!1,standard:o}){const{signals:{[e]:a}}=$h.constants,s=void 0!==a;return{name:e,number:s?a:t,description:n,supported:s,action:i,forced:r,standard:o}};Object.defineProperty(jh,"__esModule",{value:!0}),jh.signalsByNumber=jh.signalsByName=void 0;var Vh=m,Qh=Hh,Yh=Fh;const Zh=function(e,{name:t,number:n,description:i,supported:r,action:o,forced:a,standard:s}){return{...e,[t]:{name:t,number:n,description:i,supported:r,action:o,forced:a,standard:s}}},Jh=(0,Qh.getSignals)().reduce(Zh,{});jh.signalsByName=Jh;const ed=function(e,t){const n=td(e,t);if(void 0===n)return{};const{name:i,description:r,supported:o,action:a,forced:s,standard:c}=n;return{[e]:{name:i,number:e,description:r,supported:o,action:a,forced:s,standard:c}}},td=function(e,t){const n=t.find((({name:t})=>Vh.constants.signals[t]===e));return void 0!==n?n:t.find((t=>t.number===e))},nd=function(){const e=(0,Qh.getSignals)(),t=Yh.SIGRTMAX+1,n=Array.from({length:t},((t,n)=>ed(n,e)));return Object.assign({},...n)}();jh.signalsByNumber=nd;const{signalsByName:id}=jh;var rd=({stdout:e,stderr:t,all:n,error:i,signal:r,exitCode:o,command:a,escapedCommand:s,timedOut:c,isCanceled:u,killed:p,parsed:{options:{timeout:l}}})=>{o=null===o?void 0:o;const f=void 0===(r=null===r?void 0:r)?void 0:id[r].description,h=(({timedOut:e,timeout:t,errorCode:n,signal:i,signalDescription:r,exitCode:o,isCanceled:a})=>e?`timed out after ${t} milliseconds`:a?"was canceled":void 0!==n?`failed with ${n}`:void 0!==i?`was killed with ${i} (${r})`:void 0!==o?`failed with exit code ${o}`:"failed")({timedOut:c,timeout:l,errorCode:i&&i.code,signal:r,signalDescription:f,exitCode:o,isCanceled:u}),d=`Command ${h}: ${a}`,m="[object Error]"===Object.prototype.toString.call(i),v=m?`${d}\n${i.message}`:d,g=[v,t,e].filter(Boolean).join("\n");return m?(i.originalMessage=i.message,i.message=g):i=new Error(g),i.shortMessage=v,i.command=a,i.escapedCommand=s,i.exitCode=o,i.signal=r,i.signalDescription=f,i.stdout=e,i.stderr=t,void 0!==n&&(i.all=n),"bufferedData"in i&&delete i.bufferedData,i.failed=!0,i.timedOut=Boolean(c),i.isCanceled=u,i.killed=p&&!c,i},od={exports:{}};const ad=["stdin","stdout","stderr"],sd=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return ad.map((t=>e[t]));if((e=>ad.some((t=>void 0!==e[t])))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${ad.map((e=>`\`${e}\``)).join(", ")}`);if("string"==typeof t)return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);const n=Math.max(t.length,ad.length);return Array.from({length:n},((e,n)=>t[n]))};od.exports=sd,od.exports.node=e=>{const t=sd(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var cd=od.exports;const ud=m,pd=Is,ld=(e,t,n,i)=>{if(!fd(t,n,i))return;const r=dd(n),o=setTimeout((()=>{e("SIGKILL")}),r);o.unref&&o.unref()},fd=(e,{forceKillAfterTimeout:t},n)=>hd(e)&&!1!==t&&n,hd=e=>e===ud.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),dd=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return 5e3;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e};var md={spawnedKill:(e,t="SIGTERM",n={})=>{const i=e(t);return ld(e,t,n,i),i},spawnedCancel:(e,t)=>{e.kill()&&(t.isCanceled=!0)},setupTimeout:(e,{timeout:t,killSignal:n="SIGTERM"},i)=>{if(0===t||void 0===t)return i;let r;const o=new Promise(((i,o)=>{r=setTimeout((()=>{((e,t,n)=>{e.kill(t),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))})(e,n,o)}),t)})),a=i.finally((()=>{clearTimeout(r)}));return Promise.race([o,a])},validateTimeout:({timeout:e})=>{if(void 0!==e&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},setExitHandler:async(e,{cleanup:t,detached:n},i)=>{if(!t||n)return i;const r=pd((()=>{e.kill()}));return i.finally((()=>{r()}))}};const vd=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;vd.writable=e=>vd(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,vd.readable=e=>vd(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,vd.duplex=e=>vd.writable(e)&&vd.readable(e),vd.transform=e=>vd.duplex(e)&&"function"==typeof e._transform;var gd=vd,bd={exports:{}};const{PassThrough:yd}=u;const{constants:xd}=l,_d=u,{promisify:wd}=r,Ed=e=>{e={...e};const{array:t}=e;let{encoding:n}=e;const i="buffer"===n;let r=!1;t?r=!(n||i):n=n||"utf8",i&&(n=null);const o=new yd({objectMode:r});n&&o.setEncoding(n);let a=0;const s=[];return o.on("data",(e=>{s.push(e),r?a=s.length:a+=e.length})),o.getBufferedValue=()=>t?s:i?Buffer.concat(s,a):s.join(""),o.getBufferedLength=()=>a,o},Sd=wd(_d.pipeline);class Ad extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function Rd(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:n}=t,i=Ed(t);return await new Promise(((t,r)=>{const o=e=>{e&&i.getBufferedLength()<=xd.MAX_LENGTH&&(e.bufferedData=i.getBufferedValue()),r(e)};(async()=>{try{await Sd(e,i),t()}catch(e){o(e)}})(),i.on("data",(()=>{i.getBufferedLength()>n&&o(new Ad)}))})),i.getBufferedValue()}bd.exports=Rd,bd.exports.buffer=(e,t)=>Rd(e,{...t,encoding:"buffer"}),bd.exports.array=(e,t)=>Rd(e,{...t,array:!0}),bd.exports.MaxBufferError=Ad;var kd=bd.exports;const{PassThrough:Td}=u;const Bd=gd,Cd=kd,Id=function(){var e=[],t=new Td({objectMode:!0});return t.setMaxListeners(0),t.add=n,t.isEmpty=function(){return 0==e.length},t.on("unpipe",i),Array.prototype.slice.call(arguments).forEach(n),t;function n(r){return Array.isArray(r)?(r.forEach(n),this):(e.push(r),r.once("end",i.bind(null,r)),r.once("error",t.emit.bind(t,"error")),r.pipe(t,{end:!1}),this)}function i(n){!(e=e.filter((function(e){return e!==n}))).length&&t.readable&&t.end()}},Od=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},Ud=(e,{encoding:t,buffer:n,maxBuffer:i})=>{if(e&&n)return t?Cd(e,{encoding:t,maxBuffer:i}):Cd.buffer(e,{maxBuffer:i})};var Nd={handleInput:(e,t)=>{void 0!==t&&void 0!==e.stdin&&(Bd(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream:(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const n=Id();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},getSpawnedResult:async({stdout:e,stderr:t,all:n},{encoding:i,buffer:r,maxBuffer:o},a)=>{const s=Ud(e,{encoding:i,buffer:r,maxBuffer:o}),c=Ud(t,{encoding:i,buffer:r,maxBuffer:o}),u=Ud(n,{encoding:i,buffer:r,maxBuffer:2*o});try{return await Promise.all([a,s,c,u])}catch(i){return Promise.all([{error:i,signal:i.signal,timedOut:i.timedOut},Od(e,s),Od(t,c),Od(n,u)])}},validateInputSync:({input:e})=>{if(Bd(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}};const Ld=(async()=>{})().constructor.prototype,Dd=["then","catch","finally"].map((e=>[e,Reflect.getOwnPropertyDescriptor(Ld,e)]));var Pd={mergePromise:(e,t)=>{for(const[n,i]of Dd){const r="function"==typeof t?(...e)=>Reflect.apply(i.value,t(),e):i.value.bind(t);Reflect.defineProperty(e,n,{...i,value:r})}return e},getSpawnedPromise:e=>new Promise(((t,n)=>{e.on("exit",((e,n)=>{t({exitCode:e,signal:n})})),e.on("error",(e=>{n(e)})),e.stdin&&e.stdin.on("error",(e=>{n(e)}))}))};const jd=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Hd=/^[\w.-]+$/,Md=/"/g,Fd=/ +/g;var Gd={joinCommand:(e,t)=>jd(e,t).join(" "),getEscapedCommand:(e,t)=>jd(e,t).map((e=>(e=>"string"!=typeof e||Hd.test(e)?e:`"${e.replace(Md,'\\"')}"`)(e))).join(" "),parseCommand:e=>{const t=[];for(const n of e.trim().split(Fd)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t}};const qd=t,zd=h,$d=Lh,Kd=e=>{const t="string"==typeof e?"\n":"\n".charCodeAt(),n="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===n&&(e=e.slice(0,e.length-1)),e},Wd=Ph,Xd=fs,Vd=rd,Qd=cd,{spawnedKill:Yd,spawnedCancel:Zd,setupTimeout:Jd,validateTimeout:em,setExitHandler:tm}=md,{handleInput:nm,getSpawnedResult:im,makeAllStream:rm,validateInputSync:om}=Nd,{mergePromise:am,getSpawnedPromise:sm}=Pd,{joinCommand:cm,parseCommand:um,getEscapedCommand:pm}=Gd,lm=(e,t,n={})=>{const i=$d._parse(e,t,n);return e=i.command,t=i.args,(n={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(n=i.options).cwd||process.cwd(),execPath:process.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,...n}).env=(({env:e,extendEnv:t,preferLocal:n,localDir:i,execPath:r})=>{const o=t?{...process.env,...e}:e;return n?Wd.env({env:o,cwd:i,execPath:r}):o})(n),n.stdio=Qd(n),"win32"===process.platform&&"cmd"===qd.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:i}},fm=(e,t,n)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?Kd(t):t:void 0===n?void 0:"",hm=(e,t,n)=>{const i=lm(e,t,n),r=cm(e,t),o=pm(e,t);let a;em(i.options);try{a=zd.spawn(i.file,i.args,i.options)}catch(e){const t=new zd.ChildProcess,n=Promise.reject(Vd({error:e,stdout:"",stderr:"",all:"",command:r,escapedCommand:o,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return am(t,n)}const s=sm(a),c=Jd(a,i.options,s),u=tm(a,i.options,c),p={isCanceled:!1};a.kill=Yd.bind(null,a.kill.bind(a)),a.cancel=Zd.bind(null,a,p);const l=Xd((async()=>{const[{error:e,exitCode:t,signal:n,timedOut:s},c,l,f]=await im(a,i.options,u),h=fm(i.options,c),d=fm(i.options,l),m=fm(i.options,f);if(e||0!==t||null!==n){const c=Vd({error:e,exitCode:t,signal:n,stdout:h,stderr:d,all:m,command:r,escapedCommand:o,parsed:i,timedOut:s,isCanceled:p.isCanceled,killed:a.killed});if(!i.options.reject)return c;throw c}return{command:r,escapedCommand:o,exitCode:0,stdout:h,stderr:d,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}}));return nm(a,i.options.input),a.all=rm(a,i.options),am(a,l)};Xf.exports=hm,Xf.exports.sync=(e,t,n)=>{const i=lm(e,t,n),r=cm(e,t),o=pm(e,t);let a;om(i.options);try{a=zd.spawnSync(i.file,i.args,i.options)}catch(e){throw Vd({error:e,stdout:"",stderr:"",all:"",command:r,escapedCommand:o,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}const s=fm(i.options,a.stdout,a.error),c=fm(i.options,a.stderr,a.error);if(a.error||0!==a.status||null!==a.signal){const e=Vd({stdout:s,stderr:c,error:a.error,signal:a.signal,exitCode:a.status,command:r,escapedCommand:o,parsed:i,timedOut:a.error&&"ETIMEDOUT"===a.error.code,isCanceled:!1,killed:null!==a.signal});if(!i.options.reject)return e;throw e}return{command:r,escapedCommand:o,exitCode:0,stdout:s,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},Xf.exports.command=(e,t)=>{const[n,...i]=um(e);return hm(n,i,t)},Xf.exports.commandSync=(e,t)=>{const[n,...i]=um(e);return hm.sync(n,i,t)},Xf.exports.node=(e,t,n={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(n=t,t=[]);const i=Qd.node(n),r=process.execArgv.filter((e=>!e.startsWith("--inspect"))),{nodePath:o=process.execPath,nodeOptions:a=r}=n;return hm(o,[...a,e,...Array.isArray(t)?t:[]],{...n,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})};var dm=w(Xf.exports);async function mm(e){const t=Sf("dyp.config.js",{cwd:process.env.PWD}),n=await import(t);return e?n.default[e]:n.default}function vm(e,t){return ym("blue",e,t)}function gm(e,t=""){return ym("green",e,t)}function bm(e,t=""){return ym("red",e,t)}function ym(e,t,n=""){return n?console.log(Wf[e](`${t}`),n):console.log(Wf[e](`${t}`))}function xm(e,t){return function(){return e.apply(t,arguments)}}const{toString:_m}=Object.prototype,{getPrototypeOf:wm}=Object,Em=(Sm=Object.create(null),e=>{const t=_m.call(e);return Sm[t]||(Sm[t]=t.slice(8,-1).toLowerCase())});var Sm;const Am=e=>(e=e.toLowerCase(),t=>Em(t)===e),Rm=e=>t=>typeof t===e,{isArray:km}=Array,Tm=Rm("undefined");const Bm=Am("ArrayBuffer");const Cm=Rm("string"),Im=Rm("function"),Om=Rm("number"),Um=e=>null!==e&&"object"==typeof e,Nm=e=>{if("object"!==Em(e))return!1;const t=wm(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Lm=Am("Date"),Dm=Am("File"),Pm=Am("Blob"),jm=Am("FileList"),Hm=Am("URLSearchParams");function Mm(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,r;if("object"!=typeof e&&(e=[e]),km(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let a;for(i=0;i<o;i++)a=r[i],t.call(null,e[a],a,e)}}function Fm(e,t){t=t.toLowerCase();const n=Object.keys(e);let i,r=n.length;for(;r-- >0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Gm="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,qm=e=>!Tm(e)&&e!==Gm;const zm=($m="undefined"!=typeof Uint8Array&&wm(Uint8Array),e=>$m&&e instanceof $m);var $m;const Km=Am("HTMLFormElement"),Wm=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Xm=Am("RegExp"),Vm=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};Mm(n,((n,r)=>{!1!==t(n,r,e)&&(i[r]=n)})),Object.defineProperties(e,i)},Qm="abcdefghijklmnopqrstuvwxyz",Ym="0123456789",Zm={DIGIT:Ym,ALPHA:Qm,ALPHA_DIGIT:Qm+Qm.toUpperCase()+Ym};const Jm=Am("AsyncFunction");var ev={isArray:km,isArrayBuffer:Bm,isBuffer:function(e){return null!==e&&!Tm(e)&&null!==e.constructor&&!Tm(e.constructor)&&Im(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Im(e.append)&&("formdata"===(t=Em(e))||"object"===t&&Im(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Bm(e.buffer),t},isString:Cm,isNumber:Om,isBoolean:e=>!0===e||!1===e,isObject:Um,isPlainObject:Nm,isUndefined:Tm,isDate:Lm,isFile:Dm,isBlob:Pm,isRegExp:Xm,isFunction:Im,isStream:e=>Um(e)&&Im(e.pipe),isURLSearchParams:Hm,isTypedArray:zm,isFileList:jm,forEach:Mm,merge:function e(){const{caseless:t}=qm(this)&&this||{},n={},i=(i,r)=>{const o=t&&Fm(n,r)||r;Nm(n[o])&&Nm(i)?n[o]=e(n[o],i):Nm(i)?n[o]=e({},i):km(i)?n[o]=i.slice():n[o]=i};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Mm(arguments[e],i);return n},extend:(e,t,n,{allOwnKeys:i}={})=>(Mm(t,((t,i)=>{n&&Im(t)?e[i]=xm(t,n):e[i]=t}),{allOwnKeys:i}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let r,o,a;const s={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),o=r.length;o-- >0;)a=r[o],i&&!i(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&wm(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Em,kindOfTest:Am,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const i=e.indexOf(t,n);return-1!==i&&i===n},toArray:e=>{if(!e)return null;if(km(e))return e;let t=e.length;if(!Om(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=n.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const i=[];for(;null!==(n=e.exec(t));)i.push(n);return i},isHTMLForm:Km,hasOwnProperty:Wm,hasOwnProp:Wm,reduceDescriptors:Vm,freezeMethods:e=>{Vm(e,((t,n)=>{if(Im(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];Im(i)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},i=e=>{e.forEach((e=>{n[e]=!0}))};return km(e)?i(e):i(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>(e=+e,Number.isFinite(e)?e:t),findKey:Fm,global:Gm,isContextDefined:qm,ALPHABET:Zm,generateString:(e=16,t=Zm.ALPHA_DIGIT)=>{let n="";const{length:i}=t;for(;e--;)n+=t[Math.random()*i|0];return n},isSpecCompliantForm:function(e){return!!(e&&Im(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(Um(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[i]=e;const r=km(e)?[]:{};return Mm(e,((e,t)=>{const o=n(e,i+1);!Tm(o)&&(r[t]=o)})),t[i]=void 0,r}}return e};return n(e,0)},isAsyncFn:Jm,isThenable:e=>e&&(Um(e)||Im(e))&&Im(e.then)&&Im(e.catch)};function tv(e,t,n,i,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}ev.inherits(tv,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ev.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const nv=tv.prototype,iv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{iv[e]={value:e}})),Object.defineProperties(tv,iv),Object.defineProperty(nv,"isAxiosError",{value:!0}),tv.from=(e,t,n,i,r,o)=>{const a=Object.create(nv);return ev.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),tv.call(a,e.message,t,n,i,r),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var rv=u.Stream,ov=av;function av(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}r.inherits(av,rv),av.create=function(e,t){var n=new this;for(var i in t=t||{})n[i]=t[i];n.source=e;var r=e.emit;return e.emit=function(){return n._handleEmit(arguments),r.apply(e,arguments)},e.on("error",(function(){})),n.pauseStream&&e.pause(),n},Object.defineProperty(av.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),av.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},av.prototype.resume=function(){this._released||this.release(),this.source.resume()},av.prototype.pause=function(){this.source.pause()},av.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},av.prototype.pipe=function(){var e=rv.prototype.pipe.apply(this,arguments);return this.resume(),e},av.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},av.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}};var sv=r,cv=u.Stream,uv=ov,pv=lv;function lv(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}sv.inherits(lv,cv),lv.create=function(e){var t=new this;for(var n in e=e||{})t[n]=e[n];return t},lv.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},lv.prototype.append=function(e){if(lv.isStreamLike(e)){if(!(e instanceof uv)){var t=uv.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},lv.prototype.pipe=function(e,t){return cv.prototype.pipe.call(this,e,t),this.resume(),e},lv.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},lv.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){lv.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},lv.prototype._pipeNext=function(e){if(this._currentStream=e,lv.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},lv.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))},lv.prototype.write=function(e){this.emit("data",e)},lv.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},lv.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},lv.prototype.end=function(){this._reset(),this.emit("end")},lv.prototype.destroy=function(){this._reset(),this.emit("close")},lv.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},lv.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},lv.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){t.dataSize&&(e.dataSize+=t.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},lv.prototype._emitError=function(e){this._reset(),this.emit("error",e)};var fv={},hv={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};
59
+ /*!
60
+ * mime-types
61
+ * Copyright(c) 2014 Jonathan Ong
62
+ * Copyright(c) 2015 Douglas Christopher Wilson
63
+ * MIT Licensed
64
+ */
65
+ !function(e){var n=hv,i=t.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,o=/^text\//i;function a(e){if(!e||"string"!=typeof e)return!1;var t=r.exec(e),i=t&&n[t[1].toLowerCase()];return i&&i.charset?i.charset:!(!t||!o.test(t[1]))&&"UTF-8"}e.charset=a,e.charsets={lookup:a},e.contentType=function(t){if(!t||"string"!=typeof t)return!1;var n=-1===t.indexOf("/")?e.lookup(t):t;if(!n)return!1;if(-1===n.indexOf("charset")){var i=e.charset(n);i&&(n+="; charset="+i.toLowerCase())}return n},e.extension=function(t){if(!t||"string"!=typeof t)return!1;var n=r.exec(t),i=n&&e.extensions[n[1].toLowerCase()];if(!i||!i.length)return!1;return i[0]},e.extensions=Object.create(null),e.lookup=function(t){if(!t||"string"!=typeof t)return!1;var n=i("x."+t).toLowerCase().substr(1);if(!n)return!1;return e.types[n]||!1},e.types=Object.create(null),function(e,t){var i=["nginx","apache",void 0,"iana"];Object.keys(n).forEach((function(r){var o=n[r],a=o.extensions;if(a&&a.length){e[r]=a;for(var s=0;s<a.length;s++){var c=a[s];if(t[c]){var u=i.indexOf(n[t[c]].source),p=i.indexOf(o.source);if("application/octet-stream"!==t[c]&&(u>p||u===p&&"application/"===t[c].substr(0,12)))continue}t[c]=r}}}))}(e.extensions,e.types)}(fv);var dv=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},mv=function(e){var t=!1;return dv((function(){t=!0})),function(n,i){t?e(n,i):dv((function(){e(n,i)}))}};var vv=function(e){Object.keys(e.jobs).forEach(gv.bind(e)),e.jobs={}};function gv(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var bv=mv,yv=vv,xv=function(e,t,n,i){var r=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[r]=function(e,t,n,i){var r;r=2==e.length?e(n,bv(i)):e(n,t,bv(i));return r}(t,r,e[r],(function(e,t){r in n.jobs&&(delete n.jobs[r],e?yv(n):n.results[r]=t,i(e,n.results))}))};var _v=function(e,t){var n=!Array.isArray(e),i={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&i.keyedList.sort(n?t:function(n,i){return t(e[n],e[i])});return i};var wv=vv,Ev=mv,Sv=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,wv(this),Ev(e)(null,this.results)};var Av=xv,Rv=_v,kv=Sv,Tv=function(e,t,n){var i=Rv(e);for(;i.index<(i.keyedList||e).length;)Av(e,t,i,(function(e,t){e?n(e,t):0!==Object.keys(i.jobs).length||n(null,i.results)})),i.index++;return kv.bind(i,n)};var Bv={exports:{}},Cv=xv,Iv=_v,Ov=Sv;function Uv(e,t){return e<t?-1:e>t?1:0}Bv.exports=function(e,t,n,i){var r=Iv(e,n);return Cv(e,t,r,(function n(o,a){o?i(o,a):(r.index++,r.index<(r.keyedList||e).length?Cv(e,t,r,n):i(null,r.results))})),Ov.bind(r,i)},Bv.exports.ascending=Uv,Bv.exports.descending=function(e,t){return-1*Uv(e,t)};var Nv=Bv.exports,Lv=Nv;var Dv={parallel:Tv,serial:function(e,t,n){return Lv(e,t,null,n)},serialOrdered:Nv},Pv=pv,jv=r,Hv=t,Mv=b,Fv=y,Gv=x.parse,qv=e,zv=u.Stream,$v=fv,Kv=Dv,Wv=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e},Xv=Vv;function Vv(e){if(!(this instanceof Vv))return new Vv(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],Pv.call(this),e=e||{})this[t]=e[t]}jv.inherits(Vv,Pv),Vv.LINE_BREAK="\r\n",Vv.DEFAULT_CONTENT_TYPE="application/octet-stream",Vv.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var i=Pv.prototype.append.bind(this);if("number"==typeof t&&(t=""+t),jv.isArray(t))this._error(new Error("Arrays are not supported."));else{var r=this._multiPartHeader(e,t,n),o=this._multiPartFooter();i(r),i(t),i(o),this._trackLength(r,t,n)}},Vv.prototype._trackLength=function(e,t,n){var i=0;null!=n.knownLength?i+=+n.knownLength:Buffer.isBuffer(t)?i=t.length:"string"==typeof t&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+Vv.LINE_BREAK.length,t&&(t.path||t.readable&&t.hasOwnProperty("httpVersion")||t instanceof zv)&&(n.knownLength||this._valuesToMeasure.push(t))},Vv.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):qv.stat(e.path,(function(n,i){var r;n?t(n):(r=i.size-(e.start?e.start:0),t(null,r))})):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(n){e.pause(),t(null,+n.headers["content-length"])})),e.resume()):t("Unknown stream")},Vv.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var i,r=this._getContentDisposition(t,n),o=this._getContentType(t,n),a="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(r||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof n.header&&Wv(s,n.header),s)s.hasOwnProperty(c)&&null!=(i=s[c])&&(Array.isArray(i)||(i=[i]),i.length&&(a+=c+": "+i.join("; ")+Vv.LINE_BREAK));return"--"+this.getBoundary()+Vv.LINE_BREAK+a+Vv.LINE_BREAK},Vv.prototype._getContentDisposition=function(e,t){var n,i;return"string"==typeof t.filepath?n=Hv.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?n=Hv.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(n=Hv.basename(e.client._httpMessage.path||"")),n&&(i='filename="'+n+'"'),i},Vv.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e.name&&(n=$v.lookup(e.name)),!n&&e.path&&(n=$v.lookup(e.path)),!n&&e.readable&&e.hasOwnProperty("httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=$v.lookup(t.filepath||t.filename)),n||"object"!=typeof e||(n=Vv.DEFAULT_CONTENT_TYPE),n},Vv.prototype._multiPartFooter=function(){return function(e){var t=Vv.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},Vv.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Vv.LINE_BREAK},Vv.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(n[t.toLowerCase()]=e[t]);return n},Vv.prototype.setBoundary=function(e){this._boundary=e},Vv.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},Vv.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,i=this._streams.length;n<i;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(Vv.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},Vv.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},Vv.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},Vv.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},Vv.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?Kv.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,i){n?e(n):(i.forEach((function(e){t+=e})),e(null,t))})):process.nextTick(e.bind(this,null,t))},Vv.prototype.submit=function(e,t){var n,i,r={method:"post"};return"string"==typeof e?(e=Gv(e),i=Wv({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(i=Wv(e,r)).port||(i.port="https:"==i.protocol?443:80),i.headers=this.getHeaders(e.headers),n="https:"==i.protocol?Fv.request(i):Mv.request(i),this.getLength(function(e,i){if(e&&"Unknown stream"!==e)this._error(e);else if(i&&n.setHeader("Content-Length",i),this.pipe(n),t){var r,o=function(e,i){return n.removeListener("error",o),n.removeListener("response",r),t.call(this,e,i)};r=o.bind(this,null),n.on("error",o),n.on("response",r)}}.bind(this)),n},Vv.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},Vv.prototype.toString=function(){return"[object FormData]"};var Qv=w(Xv);function Yv(e){return ev.isPlainObject(e)||ev.isArray(e)}function Zv(e){return ev.endsWith(e,"[]")?e.slice(0,-2):e}function Jv(e,t,n){return e?e.concat(t).map((function(e,t){return e=Zv(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const eg=ev.toFlatObject(ev,{},null,(function(e){return/^is[A-Z]/.test(e)}));function tg(e,t,n){if(!ev.isObject(e))throw new TypeError("target must be an object");t=t||new(Qv||FormData),n=ev.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!ev.isUndefined(t[e])}));const i=n.metaTokens,r=n.visitor||u,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ev.isSpecCompliantForm(t);if(!ev.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(ev.isDate(e))return e.toISOString();if(!s&&ev.isBlob(e))throw new tv("Blob is not supported. Use a Buffer instead.");return ev.isArrayBuffer(e)||ev.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,r){let s=e;if(e&&!r&&"object"==typeof e)if(ev.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(ev.isArray(e)&&function(e){return ev.isArray(e)&&!e.some(Yv)}(e)||(ev.isFileList(e)||ev.endsWith(n,"[]"))&&(s=ev.toArray(e)))return n=Zv(n),s.forEach((function(e,i){!ev.isUndefined(e)&&null!==e&&t.append(!0===a?Jv([n],i,o):null===a?n:n+"[]",c(e))})),!1;return!!Yv(e)||(t.append(Jv(r,n,o),c(e)),!1)}const p=[],l=Object.assign(eg,{defaultVisitor:u,convertValue:c,isVisitable:Yv});if(!ev.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!ev.isUndefined(n)){if(-1!==p.indexOf(n))throw Error("Circular reference detected in "+i.join("."));p.push(n),ev.forEach(n,(function(n,o){!0===(!(ev.isUndefined(n)||null===n)&&r.call(t,n,ev.isString(o)?o.trim():o,i,l))&&e(n,i?i.concat(o):[o])})),p.pop()}}(e),t}function ng(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ig(e,t){this._pairs=[],e&&tg(e,this,t)}const rg=ig.prototype;function og(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ag(e,t,n){if(!t)return e;const i=n&&n.encode||og,r=n&&n.serialize;let o;if(o=r?r(t,n):ev.isURLSearchParams(t)?t.toString():new ig(t,n).toString(i),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}rg.append=function(e,t){this._pairs.push([e,t])},rg.toString=function(e){const t=e?function(t){return e.call(this,t,ng)}:ng;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var sg=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ev.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},cg={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ug={isNode:!0,classes:{URLSearchParams:x.URLSearchParams,FormData:Qv,Blob:"undefined"!=typeof Blob&&Blob||null},protocols:["http","https","file","data"]};function pg(e){function t(e,n,i,r){let o=e[r++];const a=Number.isFinite(+o),s=r>=e.length;if(o=!o&&ev.isArray(i)?i.length:o,s)return ev.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!a;i[o]&&ev.isObject(i[o])||(i[o]=[]);return t(e,n,i[o],r)&&ev.isArray(i[o])&&(i[o]=function(e){const t={},n=Object.keys(e);let i;const r=n.length;let o;for(i=0;i<r;i++)o=n[i],t[o]=e[o];return t}(i[o])),!a}if(ev.isFormData(e)&&ev.isFunction(e.entries)){const n={};return ev.forEachEntry(e,((e,i)=>{t(function(e){return ev.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),i,n,0)})),n}return null}const lg={"Content-Type":void 0};const fg={transitional:cg,adapter:["xhr","http"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=ev.isObject(e);r&&ev.isHTMLForm(e)&&(e=new FormData(e));if(ev.isFormData(e))return i&&i?JSON.stringify(pg(e)):e;if(ev.isArrayBuffer(e)||ev.isBuffer(e)||ev.isStream(e)||ev.isFile(e)||ev.isBlob(e))return e;if(ev.isArrayBufferView(e))return e.buffer;if(ev.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return tg(e,new ug.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,i){return ev.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=ev.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return tg(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),function(e,t,n){if(ev.isString(e))try{return(t||JSON.parse)(e),ev.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||fg.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(e&&ev.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw tv.from(e,tv.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ug.classes.FormData,Blob:ug.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};ev.forEach(["delete","get","head"],(function(e){fg.headers[e]={}})),ev.forEach(["post","put","patch"],(function(e){fg.headers[e]=ev.merge(lg)}));var hg=fg;const dg=ev.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const mg=Symbol("internals");function vg(e){return e&&String(e).trim().toLowerCase()}function gg(e){return!1===e||null==e?e:ev.isArray(e)?e.map(gg):String(e)}function bg(e,t,n,i,r){return ev.isFunction(i)?i.call(this,t,n):(r&&(t=n),ev.isString(t)?ev.isString(i)?-1!==t.indexOf(i):ev.isRegExp(i)?i.test(t):void 0:void 0)}class yg{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=vg(t);if(!r)throw new Error("header name must be a non-empty string");const o=ev.findKey(i,r);(!o||void 0===i[o]||!0===n||void 0===n&&!1!==i[o])&&(i[o||t]=gg(e))}const o=(e,t)=>ev.forEach(e,((e,n)=>r(e,n,t)));return ev.isPlainObject(e)||e instanceof this.constructor?o(e,t):ev.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o((e=>{const t={};let n,i,r;return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),n=e.substring(0,r).trim().toLowerCase(),i=e.substring(r+1).trim(),!n||t[n]&&dg[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)})),t})(e),t):null!=e&&r(t,e,n),this}get(e,t){if(e=vg(e)){const n=ev.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=n.exec(e);)t[i[1]]=i[2];return t}(e);if(ev.isFunction(t))return t.call(this,e,n);if(ev.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=vg(e)){const n=ev.findKey(this,e);return!(!n||void 0===this[n]||t&&!bg(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=vg(e)){const r=ev.findKey(n,e);!r||t&&!bg(0,n[r],r,t)||(delete n[r],i=!0)}}return ev.isArray(e)?e.forEach(r):r(e),i}clear(e){const t=Object.keys(this);let n=t.length,i=!1;for(;n--;){const r=t[n];e&&!bg(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return ev.forEach(this,((i,r)=>{const o=ev.findKey(n,r);if(o)return t[o]=gg(i),void delete t[r];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(r):String(r).trim();a!==r&&delete t[r],t[a]=gg(i),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ev.forEach(this,((n,i)=>{null!=n&&!1!==n&&(t[i]=e&&ev.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[mg]=this[mg]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=vg(e);t[i]||(!function(e,t){const n=ev.toCamelCase(" "+t);["get","set","has"].forEach((i=>{Object.defineProperty(e,i+n,{value:function(e,n,r){return this[i].call(this,t,e,n,r)},configurable:!0})}))}(n,e),t[i]=!0)}return ev.isArray(e)?e.forEach(i):i(e),this}}yg.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ev.freezeMethods(yg.prototype),ev.freezeMethods(yg);var xg=yg;function _g(e,t){const n=this||hg,i=t||n,r=xg.from(i.headers);let o=i.data;return ev.forEach(e,(function(e){o=e.call(n,o,r.normalize(),t?t.status:void 0)})),r.normalize(),o}function wg(e){return!(!e||!e.__CANCEL__)}function Eg(e,t,n){tv.call(this,null==e?"canceled":e,tv.ERR_CANCELED,t,n),this.name="CanceledError"}function Sg(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new tv("Request failed with status code "+n.status,[tv.ERR_BAD_REQUEST,tv.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function Ag(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}ev.inherits(Eg,tv,{__CANCEL__:!0});var Rg=x.parse,kg={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},Tg=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function Bg(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}var Cg,Ig,Og,Ug,Ng,Lg=function(e){var t="string"==typeof e?Rg(e):e||{},n=t.protocol,i=t.host,r=t.port;if("string"!=typeof i||!i||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(Bg("npm_config_no_proxy")||Bg("no_proxy")).toLowerCase();if(!n)return!0;if("*"===n)return!1;return n.split(/[,\s]/).every((function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),r=i?i[1]:n,o=i?parseInt(i[2]):0;return!(!o||o===t)||(/^[.*]/.test(r)?("*"===r.charAt(0)&&(r=r.slice(1)),!Tg.call(e,r)):e!==r)}))}(i=i.replace(/:\d*$/,""),r=parseInt(r)||kg[n]||0))return"";var o=Bg("npm_config_"+n+"_proxy")||Bg(n+"_proxy")||Bg("npm_config_proxy")||Bg("all_proxy");return o&&-1===o.indexOf("://")&&(o=n+"://"+o),o},Dg={exports:{}},Pg={exports:{}},jg={exports:{}};function Hg(){if(Ig)return Cg;Ig=1;var e=1e3,t=60*e,n=60*t,i=24*n,r=7*i,o=365.25*i;function a(e,t,n,i){var r=t>=1.5*n;return Math.round(e/n)+" "+i+(r?"s":"")}return Cg=function(s,c){c=c||{};var u=typeof s;if("string"===u&&s.length>0)return function(a){if((a=String(a)).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(a);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*r;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===u&&isFinite(s))return c.long?function(r){var o=Math.abs(r);if(o>=i)return a(r,o,i,"day");if(o>=n)return a(r,o,n,"hour");if(o>=t)return a(r,o,t,"minute");if(o>=e)return a(r,o,e,"second");return r+" ms"}(s):function(r){var o=Math.abs(r);if(o>=i)return Math.round(r/i)+"d";if(o>=n)return Math.round(r/n)+"h";if(o>=t)return Math.round(r/t)+"m";if(o>=e)return Math.round(r/e)+"s";return r+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}}function Mg(){if(Ug)return Og;return Ug=1,Og=function(e){function t(e){let i,r,o,a=null;function s(...e){if(!s.enabled)return;const n=s,r=Number(new Date),o=r-(i||r);n.diff=o,n.prev=i,n.curr=r,i=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((i,r)=>{if("%%"===i)return"%";a++;const o=t.formatters[r];if("function"==typeof o){const t=e[a];i=o.call(n,t),e.splice(a,1),a--}return i})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(r!==t.namespaces&&(r=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const i=("string"==typeof e?e:"").split(/[\s,]+/),r=i.length;for(n=0;n<r;n++)i[n]&&("-"===(e=i[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,i;for(n=0,i=t.skips.length;n<i;n++)if(t.skips[n].test(e))return!1;for(n=0,i=t.names.length;n<i;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=Hg(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},Og}var Fg,Gg,qg,zg={exports:{}};function $g(){return Fg||(Fg=1,function(e,t){const n=v,i=r;t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let i=0;i<n.length;i++)e.inspectOpts[n[i]]=t.inspectOpts[n[i]]},t.log=function(...e){return process.stderr.write(i.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:i,useColors:r}=this;if(r){const t=this.color,r="[3"+(t<8?t:"8;5;"+t),o=` ${r};1m${i} `;n[0]=o+n[0].split("\n").join("\n"+o),n.push(r+"m+"+e.exports.humanize(this.diff)+"")}else n[0]=function(){if(t.inspectOpts.hideDate)return"";return(new Date).toISOString()+" "}()+i+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):n.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=Na;e&&(e.stderr||e).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((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let i=process.env[t];return i=!!/^(yes|on|true|enabled)$/i.test(i)||!/^(no|off|false|disabled)$/i.test(i)&&("null"===i?null:Number(i)),e[n]=i,e}),{}),e.exports=Mg()(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}}(zg,zg.exports)),zg.exports}function Kg(){return Gg||(Gg=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?Pg.exports=(Ng||(Ng=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let i=0,r=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(r=i))})),t.splice(r,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),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"],t.log=console.debug||console.log||(()=>{}),e.exports=Mg()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(jg,jg.exports)),jg.exports):Pg.exports=$g()),Pg.exports}var Wg=x,Xg=Wg.URL,Vg=b,Qg=y,Yg=u.Writable,Zg=i,Jg=function(){if(!qg){try{qg=Kg()("follow-redirects")}catch(e){}"function"!=typeof qg&&(qg=function(){})}qg.apply(null,arguments)},eb=["abort","aborted","connect","error","socket","timeout"],tb=Object.create(null);eb.forEach((function(e){tb[e]=function(t,n,i){this._redirectable.emit(e,t,n,i)}}));var nb=fb("ERR_INVALID_URL","Invalid URL",TypeError),ib=fb("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),rb=fb("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),ob=fb("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),ab=fb("ERR_STREAM_WRITE_AFTER_END","write after end");function sb(e,t){Yg.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){n._processResponse(e)},this._performRequest()}function cb(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(i){var r=i+":",o=n[r]=e[i],a=t[i]=Object.create(o);Object.defineProperties(a,{request:{value:function(e,i,o){if(db(e)){var a;try{a=pb(new Xg(e))}catch(t){a=Wg.parse(e)}if(!db(a.protocol))throw new nb({input:e});e=a}else Xg&&e instanceof Xg?e=pb(e):(o=i,i=e,e={protocol:r});return mb(i)&&(o=i,i=null),(i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i)).nativeProtocols=n,db(i.host)||db(i.hostname)||(i.hostname="::1"),Zg.equal(i.protocol,r,"protocol mismatch"),Jg("options",i),new sb(i,o)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var i=a.request(e,t,n);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})})),t}function ub(){}function pb(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=Number(e.port)),t}function lb(e,t){var n;for(var i in t)e.test(i)&&(n=t[i],delete t[i]);return null==n?void 0:String(n).trim()}function fb(e,t,n){function i(n){Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return i.prototype=new(n||Error),i.prototype.constructor=i,i.prototype.name="Error ["+e+"]",i}function hb(e){for(var t of eb)e.removeListener(t,tb[t]);e.on("error",ub),e.abort()}function db(e){return"string"==typeof e||e instanceof String}function mb(e){return"function"==typeof e}sb.prototype=Object.create(Yg.prototype),sb.prototype.abort=function(){hb(this._currentRequest),this.emit("abort")},sb.prototype.write=function(e,t,n){if(this._ending)throw new ab;if(!db(e)&&("object"!=typeof(i=e)||!("length"in i)))throw new TypeError("data should be a string, Buffer or Uint8Array");var i;mb(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new ob),this.abort()):n&&n()},sb.prototype.end=function(e,t,n){if(mb(e)?(n=e,e=t=null):mb(t)&&(n=t,t=null),e){var i=this,r=this._currentRequest;this.write(e,t,(function(){i._ended=!0,r.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},sb.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},sb.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},sb.prototype.setTimeout=function(e,t){var n=this;function i(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function r(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),o()}),e),i(t)}function o(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",o),n.removeListener("error",o),n.removeListener("response",o),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",r)}return t&&this.on("timeout",t),this.socket?r(this.socket):this._currentRequest.once("socket",r),this.on("socket",i),this.on("abort",o),this.on("error",o),this.on("response",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){sb.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(sb.prototype,e,{get:function(){return this._currentRequest[e]}})})),sb.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},sb.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var r of(i._redirectable=this,eb))i.on(r,tb[r]);if(this._currentUrl=/^\//.test(this._options.path)?Wg.format(this._options):this._options.path,this._isRedirect){var o=0,a=this,s=this._requestBodyBuffers;!function e(t){if(i===a._currentRequest)if(t)a.emit("error",t);else if(o<s.length){var n=s[o++];i.finished||i.write(n.data,n.encoding,e)}else a._ended&&i.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},sb.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n=e.headers.location;if(!n||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(hb(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)this.emit("error",new rb);else{var i,r=this._options.beforeRedirect;r&&(i=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var o=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],lb(/^content-/i,this._options.headers));var a,s=lb(/^host$/i,this._options.headers),c=Wg.parse(this._currentUrl),u=s||c.host,p=/^\w+:/.test(n)?this._currentUrl:Wg.format(Object.assign(c,{host:u}));try{a=Wg.resolve(p,n)}catch(e){return void this.emit("error",new ib({cause:e}))}Jg("redirecting to",a),this._isRedirect=!0;var l=Wg.parse(a);if(Object.assign(this._options,l),(l.protocol!==c.protocol&&"https:"!==l.protocol||l.host!==u&&!function(e,t){Zg(db(e)&&db(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(l.host,u))&&lb(/^(?:authorization|cookie)$/i,this._options.headers),mb(r)){var f={headers:e.headers,statusCode:t},h={url:p,method:o,headers:i};try{r(this._options,f,h)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){this.emit("error",new ib({cause:e}))}}},Dg.exports=cb({http:Vg,https:Qg}),Dg.exports.wrap=cb;var vb=w(Dg.exports);const gb="1.4.0";function bb(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const yb=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function xb(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),u=i[a];r||(r=c),n[o]=s,i[o]=c;let p=a,l=0;for(;p!==o;)l+=n[p++],p%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-r<t)return;const f=u&&c-u;return f?Math.round(1e3*l/f):void 0}}const _b=Symbol("internals");class wb extends u.Transform{constructor(e){e=ev.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!ev.isUndefined(t[e]))),super({readableHighWaterMark:e.chunkSize});const t=this,n=this[_b]={length:e.length,timeWindow:e.timeWindow,ticksRate:e.ticksRate,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},i=xb(n.ticksRate*e.samplesCount,n.timeWindow);this.on("newListener",(e=>{"progress"===e&&(n.isCaptured||(n.isCaptured=!0))}));let r=0;n.updateProgress=function(e,t){let n=0;const i=1e3/t;let r=null;return function(t,o){const a=Date.now();if(t||a-n>i)return r&&(clearTimeout(r),r=null),n=a,e.apply(null,o);r||(r=setTimeout((()=>(r=null,n=Date.now(),e.apply(null,o))),i-(a-n)))}}((function(){const e=n.length,o=n.bytesSeen,a=o-r;if(!a||t.destroyed)return;const s=i(a);r=o,process.nextTick((()=>{t.emit("progress",{loaded:o,total:e,progress:e?o/e:void 0,bytes:a,rate:s||void 0,estimated:s&&e&&o<=e?(e-o)/s:void 0})}))}),n.ticksRate);const o=()=>{n.updateProgress(!0)};this.once("end",o),this.once("error",o)}_read(e){const t=this[_b];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const i=this,r=this[_b],o=r.maxRate,a=this.readableHighWaterMark,s=r.timeWindow,c=o/(1e3/s),u=!1!==r.minChunkSize?Math.max(r.minChunkSize,.01*c):0;const p=(e,t)=>{const n=Buffer.byteLength(e);let p,l=null,f=a,h=0;if(o){const e=Date.now();(!r.ts||(h=e-r.ts)>=s)&&(r.ts=e,p=c-r.bytes,r.bytes=p<0?-p:0,h=0),p=c-r.bytes}if(o){if(p<=0)return setTimeout((()=>{t(null,e)}),s-h);p<f&&(f=p)}f&&n>f&&n-f>u&&(l=e.subarray(f),e=e.subarray(0,f)),function(e,t){const n=Buffer.byteLength(e);r.bytesSeen+=n,r.bytes+=n,r.isCaptured&&r.updateProgress(),i.push(e)?process.nextTick(t):r.onReadCallback=()=>{r.onReadCallback=null,process.nextTick(t)}}(e,l?()=>{process.nextTick(t,null,l)}:t)};p(e,(function e(t,i){if(t)return n(t);i?p(i,e):n(null)}))}setLength(e){return this[_b].length=+e,this}}var Eb=wb;const{asyncIterator:Sb}=Symbol;var Ab=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Sb]?yield*e[Sb]():yield e};const Rb=ev.ALPHABET.ALPHA_DIGIT+"-_",kb=new o,Tb="\r\n",Bb=kb.encode(Tb);class Cb{constructor(e,t){const{escapeName:n}=this.constructor,i=ev.isString(t);let r=`Content-Disposition: form-data; name="${n(e)}"${!i&&t.name?`; filename="${n(t.name)}"`:""}${Tb}`;i?t=kb.encode(String(t).replace(/\r?\n|\r\n?/g,Tb)):r+=`Content-Type: ${t.type||"application/octet-stream"}${Tb}`,this.headers=kb.encode(r+Tb),this.contentLength=i?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;ev.isTypedArray(e)?yield e:yield*Ab(e),yield Bb}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}var Ib=(e,t,n)=>{const{tag:i="form-data-boundary",size:r=25,boundary:o=i+"-"+ev.generateString(r,Rb)}=n||{};if(!ev.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");const a=kb.encode("--"+o+Tb),s=kb.encode("--"+o+"--"+Tb+Tb);let c=s.byteLength;const u=Array.from(e.entries()).map((([e,t])=>{const n=new Cb(e,t);return c+=n.size,n}));c+=a.byteLength*u.length,c=ev.toFiniteNumber(c);const l={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(l["Content-Length"]=c),t&&t(l),p.from(async function*(){for(const e of u)yield a,yield*e.encode();yield s}())};class Ob extends u.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}}var Ub=Ob;var Nb=(e,t)=>ev.isAsyncFn(e)?function(...n){const i=n.pop();e.apply(this,n).then((e=>{try{t?i(null,...t(e)):i(null,e)}catch(e){i(e)}}),i)}:e;const Lb={flush:f.constants.Z_SYNC_FLUSH,finishFlush:f.constants.Z_SYNC_FLUSH},Db={flush:f.constants.BROTLI_OPERATION_FLUSH,finishFlush:f.constants.BROTLI_OPERATION_FLUSH},Pb=ev.isFunction(f.createBrotliDecompress),{http:jb,https:Hb}=vb,Mb=/https:?/,Fb=ug.protocols.map((e=>e+":"));function Gb(e){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e)}function qb(e,t,n){let i=t;if(!i&&!1!==i){const e=Lg(n);e&&(i=new URL(e))}if(i){if(i.username&&(i.auth=(i.username||"")+":"+(i.password||"")),i.auth){(i.auth.username||i.auth.password)&&(i.auth=(i.auth.username||"")+":"+(i.auth.password||""));const t=Buffer.from(i.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=i.hostname||i.host;e.hostname=t,e.host=t,e.port=i.port,e.path=n,i.protocol&&(e.protocol=i.protocol.includes(":")?i.protocol:`${i.protocol}:`)}e.beforeRedirects.proxy=function(e){qb(e,t,e.href)}}const zb="undefined"!=typeof process&&"process"===ev.kindOf(process);var $b=zb&&function(e){return t=async function(t,i,o){let{data:a,lookup:s,family:c}=e;const{responseType:p,responseEncoding:l}=e,h=e.method.toUpperCase();let d,m,v=!1;s&&ev.isAsyncFn(s)&&(s=Nb(s,(e=>{if(ev.isString(e))e=[e,e.indexOf(".")<0?6:4];else if(!ev.isArray(e))throw new TypeError("lookup async function must return an array [ip: string, family: number]]");return e})));const g=new n,x=()=>{e.cancelToken&&e.cancelToken.unsubscribe(_),e.signal&&e.signal.removeEventListener("abort",_),g.removeAllListeners()};function _(t){g.emit("abort",!t||t.type?new Eg(null,e,m):t)}o(((e,t)=>{d=!0,t&&(v=!0,x())})),g.once("abort",i),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(_),e.signal&&(e.signal.aborted?_():e.signal.addEventListener("abort",_)));const w=Ag(e.baseURL,e.url),E=new URL(w,"http://localhost"),S=E.protocol||Fb[0];if("data:"===S){let n;if("GET"!==h)return Sg(t,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{n=function(e,t,n){const i=n&&n.Blob||ug.classes.Blob,r=bb(e);if(void 0===t&&i&&(t=!0),"data"===r){e=r.length?e.slice(r.length+1):e;const n=yb.exec(e);if(!n)throw new tv("Invalid URL",tv.ERR_INVALID_URL);const o=n[1],a=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),a?"base64":"utf8");if(t){if(!i)throw new tv("Blob is not supported",tv.ERR_NOT_SUPPORT);return new i([c],{type:o})}return c}throw new tv("Unsupported protocol "+r,tv.ERR_NOT_SUPPORT)}(e.url,"blob"===p,{Blob:e.env&&e.env.Blob})}catch(t){throw tv.from(t,tv.ERR_BAD_REQUEST,e)}return"text"===p?(n=n.toString(l),l&&"utf8"!==l||(n=ev.stripBOM(n))):"stream"===p&&(n=u.Readable.from(n)),Sg(t,i,{data:n,status:200,statusText:"OK",headers:new xg,config:e})}if(-1===Fb.indexOf(S))return i(new tv("Unsupported protocol "+S,tv.ERR_BAD_REQUEST,e));const A=xg.from(e.headers).normalize();A.set("User-Agent","axios/"+gb,!1);const R=e.onDownloadProgress,k=e.onUploadProgress,T=e.maxRate;let B,C;if(ev.isSpecCompliantForm(a)){const e=A.getContentType(/boundary=([-_\w\d]{10,70})/i);a=Ib(a,(e=>{A.set(e)}),{tag:`axios-${gb}-boundary`,boundary:e&&e[1]||void 0})}else if(ev.isFormData(a)&&ev.isFunction(a.getHeaders)){if(A.set(a.getHeaders()),!A.hasContentLength())try{const e=await r.promisify(a.getLength).call(a);Number.isFinite(e)&&e>=0&&A.setContentLength(e)}catch(e){}}else if(ev.isBlob(a))a.size&&A.setContentType(a.type||"application/octet-stream"),A.setContentLength(a.size||0),a=u.Readable.from(Ab(a));else if(a&&!ev.isStream(a)){if(Buffer.isBuffer(a));else if(ev.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else{if(!ev.isString(a))return i(new tv("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",tv.ERR_BAD_REQUEST,e));a=Buffer.from(a,"utf-8")}if(A.setContentLength(a.length,!1),e.maxBodyLength>-1&&a.length>e.maxBodyLength)return i(new tv("Request body larger than maxBodyLength limit",tv.ERR_BAD_REQUEST,e))}const I=ev.toFiniteNumber(A.getContentLength());let O,U;ev.isArray(T)?(B=T[0],C=T[1]):B=C=T,a&&(k||B)&&(ev.isStream(a)||(a=u.Readable.from(a,{objectMode:!1})),a=u.pipeline([a,new Eb({length:I,maxRate:ev.toFiniteNumber(B)})],ev.noop),k&&a.on("progress",(e=>{k(Object.assign(e,{upload:!0}))}))),e.auth&&(O=(e.auth.username||"")+":"+(e.auth.password||"")),!O&&E.username&&(O=E.username+":"+E.password),O&&A.delete("authorization");try{U=ag(E.pathname+E.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const n=new Error(t.message);return n.config=e,n.url=e.url,n.exists=!0,i(n)}A.set("Accept-Encoding","gzip, compress, deflate"+(Pb?", br":""),!1);const N={path:U,method:h,headers:A.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:O,protocol:S,family:c,lookup:s,beforeRedirect:Gb,beforeRedirects:{}};let L;e.socketPath?N.socketPath=e.socketPath:(N.hostname=E.hostname,N.port=E.port,qb(N,e.proxy,S+"//"+E.hostname+(E.port?":"+E.port:"")+N.path));const D=Mb.test(N.protocol);if(N.agent=D?e.httpsAgent:e.httpAgent,e.transport?L=e.transport:0===e.maxRedirects?L=D?y:b:(e.maxRedirects&&(N.maxRedirects=e.maxRedirects),e.beforeRedirect&&(N.beforeRedirects.config=e.beforeRedirect),L=D?Hb:jb),e.maxBodyLength>-1?N.maxBodyLength=e.maxBodyLength:N.maxBodyLength=1/0,e.insecureHTTPParser&&(N.insecureHTTPParser=e.insecureHTTPParser),m=L.request(N,(function(n){if(m.destroyed)return;const r=[n],o=+n.headers["content-length"];if(R){const e=new Eb({length:ev.toFiniteNumber(o),maxRate:ev.toFiniteNumber(C)});R&&e.on("progress",(e=>{R(Object.assign(e,{download:!0}))})),r.push(e)}let a=n;const s=n.req||m;if(!1!==e.decompress&&n.headers["content-encoding"])switch("HEAD"!==h&&204!==n.statusCode||delete n.headers["content-encoding"],n.headers["content-encoding"]){case"gzip":case"x-gzip":case"compress":case"x-compress":r.push(f.createUnzip(Lb)),delete n.headers["content-encoding"];break;case"deflate":r.push(new Ub),r.push(f.createUnzip(Lb)),delete n.headers["content-encoding"];break;case"br":Pb&&(r.push(f.createBrotliDecompress(Db)),delete n.headers["content-encoding"])}a=r.length>1?u.pipeline(r,ev.noop):r[0];const c=u.finished(a,(()=>{c(),x()})),d={status:n.statusCode,statusText:n.statusMessage,headers:new xg(n.headers),config:e,request:s};if("stream"===p)d.data=a,Sg(t,i,d);else{const n=[];let r=0;a.on("data",(function(t){n.push(t),r+=t.length,e.maxContentLength>-1&&r>e.maxContentLength&&(v=!0,a.destroy(),i(new tv("maxContentLength size of "+e.maxContentLength+" exceeded",tv.ERR_BAD_RESPONSE,e,s)))})),a.on("aborted",(function(){if(v)return;const t=new tv("maxContentLength size of "+e.maxContentLength+" exceeded",tv.ERR_BAD_RESPONSE,e,s);a.destroy(t),i(t)})),a.on("error",(function(t){m.destroyed||i(tv.from(t,null,e,s))})),a.on("end",(function(){try{let e=1===n.length?n[0]:Buffer.concat(n);"arraybuffer"!==p&&(e=e.toString(l),l&&"utf8"!==l||(e=ev.stripBOM(e))),d.data=e}catch(t){i(tv.from(t,null,e,d.request,d))}Sg(t,i,d)}))}g.once("abort",(e=>{a.destroyed||(a.emit("error",e),a.destroy())}))})),g.once("abort",(e=>{i(e),m.destroy(e)})),m.on("error",(function(t){i(tv.from(t,null,e,m))})),m.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const t=parseInt(e.timeout,10);if(isNaN(t))return void i(new tv("error trying to parse `config.timeout` to int",tv.ERR_BAD_OPTION_VALUE,e,m));m.setTimeout(t,(function(){if(d)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||cg;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),i(new tv(t,n.clarifyTimeoutError?tv.ETIMEDOUT:tv.ECONNABORTED,e,m)),_()}))}if(ev.isStream(a)){let t=!1,n=!1;a.on("end",(()=>{t=!0})),a.once("error",(e=>{n=!0,m.destroy(e)})),a.on("close",(()=>{t||n||_(new Eg("Request stream has been aborted",e,m))})),a.pipe(m)}else m.end(a)},new Promise(((e,n)=>{let i,r;const o=(e,t)=>{r||(r=!0,i&&i(e,t))},a=e=>{o(e,!0),n(e)};t((t=>{o(t),e(t)}),a,(e=>i=e)).catch(a)}));var t},Kb=ug.isStandardBrowserEnv?{write:function(e,t,n,i,r,o){const a=[];a.push(e+"="+encodeURIComponent(t)),ev.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),ev.isString(i)&&a.push("path="+i),ev.isString(r)&&a.push("domain="+r),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},Wb=ug.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function i(n){let i=n;return e&&(t.setAttribute("href",i),i=t.href),t.setAttribute("href",i),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=i(window.location.href),function(e){const t=ev.isString(e)?i(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0};function Xb(e,t){let n=0;const i=xb(50,250);return r=>{const o=r.loaded,a=r.lengthComputable?r.total:void 0,s=o-n,c=i(s);n=o;const u={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:r};u[t?"download":"upload"]=!0,e(u)}}var Vb="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){let i=e.data;const r=xg.from(e.headers).normalize(),o=e.responseType;let a;function s(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}ev.isFormData(i)&&(ug.isStandardBrowserEnv||ug.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const t=e.auth.username||"",n=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(t+":"+n))}const u=Ag(e.baseURL,e.url);function p(){if(!c)return;const i=xg.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders());Sg((function(e){t(e),s()}),(function(e){n(e),s()}),{data:o&&"text"!==o&&"json"!==o?c.response:c.responseText,status:c.status,statusText:c.statusText,headers:i,config:e,request:c}),c=null}if(c.open(e.method.toUpperCase(),ag(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout,"onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){c&&4===c.readyState&&(0!==c.status||c.responseURL&&0===c.responseURL.indexOf("file:"))&&setTimeout(p)},c.onabort=function(){c&&(n(new tv("Request aborted",tv.ECONNABORTED,e,c)),c=null)},c.onerror=function(){n(new tv("Network Error",tv.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const i=e.transitional||cg;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new tv(t,i.clarifyTimeoutError?tv.ETIMEDOUT:tv.ECONNABORTED,e,c)),c=null},ug.isStandardBrowserEnv){const t=(e.withCredentials||Wb(u))&&e.xsrfCookieName&&Kb.read(e.xsrfCookieName);t&&r.set(e.xsrfHeaderName,t)}void 0===i&&r.setContentType(null),"setRequestHeader"in c&&ev.forEach(r.toJSON(),(function(e,t){c.setRequestHeader(t,e)})),ev.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),o&&"json"!==o&&(c.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&c.addEventListener("progress",Xb(e.onDownloadProgress,!0)),"function"==typeof e.onUploadProgress&&c.upload&&c.upload.addEventListener("progress",Xb(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=t=>{c&&(n(!t||t.type?new Eg(null,e,c):t),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const l=bb(u);l&&-1===ug.protocols.indexOf(l)?n(new tv("Unsupported protocol "+l+":",tv.ERR_BAD_REQUEST,e)):c.send(i||null)}))};const Qb={http:$b,xhr:Vb};ev.forEach(Qb,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));var Yb=e=>{e=ev.isArray(e)?e:[e];const{length:t}=e;let n,i;for(let r=0;r<t&&(n=e[r],!(i=ev.isString(n)?Qb[n.toLowerCase()]:n));r++);if(!i){if(!1===i)throw new tv(`Adapter ${n} is not supported by the environment`,"ERR_NOT_SUPPORT");throw new Error(ev.hasOwnProp(Qb,n)?`Adapter '${n}' is not available in the build`:`Unknown adapter '${n}'`)}if(!ev.isFunction(i))throw new TypeError("adapter is not a function");return i};function Zb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Eg(null,e)}function Jb(e){Zb(e),e.headers=xg.from(e.headers),e.data=_g.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Yb(e.adapter||hg.adapter)(e).then((function(t){return Zb(e),t.data=_g.call(e,e.transformResponse,t),t.headers=xg.from(t.headers),t}),(function(t){return wg(t)||(Zb(e),t&&t.response&&(t.response.data=_g.call(e,e.transformResponse,t.response),t.response.headers=xg.from(t.response.headers))),Promise.reject(t)}))}const ey=e=>e instanceof xg?e.toJSON():e;function ty(e,t){t=t||{};const n={};function i(e,t,n){return ev.isPlainObject(e)&&ev.isPlainObject(t)?ev.merge.call({caseless:n},e,t):ev.isPlainObject(t)?ev.merge({},t):ev.isArray(t)?t.slice():t}function r(e,t,n){return ev.isUndefined(t)?ev.isUndefined(e)?void 0:i(void 0,e,n):i(e,t,n)}function o(e,t){if(!ev.isUndefined(t))return i(void 0,t)}function a(e,t){return ev.isUndefined(t)?ev.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function s(n,r,o){return o in t?i(n,r):o in e?i(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>r(ey(e),ey(t),!0)};return ev.forEach(Object.keys(Object.assign({},e,t)),(function(i){const o=c[i]||r,a=o(e[i],t[i],i);ev.isUndefined(a)&&o!==s||(n[i]=a)})),n}const ny={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ny[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const iy={};ny.transitional=function(e,t,n){function i(e,t){return"[Axios v1.4.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,o)=>{if(!1===e)throw new tv(i(r," has been removed"+(t?" in "+t:"")),tv.ERR_DEPRECATED);return t&&!iy[r]&&(iy[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}};var ry={assertOptions:function(e,t,n){if("object"!=typeof e)throw new tv("options must be an object",tv.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const o=i[r],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new tv("option "+o+" must be "+n,tv.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new tv("Unknown option "+o,tv.ERR_BAD_OPTION)}},validators:ny};const oy=ry.validators;class ay{constructor(e){this.defaults=e,this.interceptors={request:new sg,response:new sg}}request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=ty(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;let o;void 0!==n&&ry.assertOptions(n,{silentJSONParsing:oy.transitional(oy.boolean),forcedJSONParsing:oy.transitional(oy.boolean),clarifyTimeoutError:oy.transitional(oy.boolean)},!1),null!=i&&(ev.isFunction(i)?t.paramsSerializer={serialize:i}:ry.assertOptions(i,{encode:oy.function,serialize:oy.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),o=r&&ev.merge(r.common,r[t.method]),o&&ev.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete r[e]})),t.headers=xg.concat(o,r);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let p,l=0;if(!s){const e=[Jb.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),p=e.length,u=Promise.resolve(t);l<p;)u=u.then(e[l++],e[l++]);return u}p=a.length;let f=t;for(l=0;l<p;){const e=a[l++],t=a[l++];try{f=e(f)}catch(e){t.call(this,e);break}}try{u=Jb.call(this,f)}catch(e){return Promise.reject(e)}for(l=0,p=c.length;l<p;)u=u.then(c[l++],c[l++]);return u}getUri(e){return ag(Ag((e=ty(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}ev.forEach(["delete","get","head","options"],(function(e){ay.prototype[e]=function(t,n){return this.request(ty(n||{},{method:e,url:t,data:(n||{}).data}))}})),ev.forEach(["post","put","patch"],(function(e){function t(t){return function(n,i,r){return this.request(ty(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}ay.prototype[e]=t(),ay.prototype[e+"Form"]=t(!0)}));var sy=ay;class cy{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const i=new Promise((e=>{n.subscribe(e),t=e})).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e((function(e,i,r){n.reason||(n.reason=new Eg(e,i,r),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new cy((function(t){e=t})),cancel:e}}}var uy=cy;const py={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(py).forEach((([e,t])=>{py[t]=e}));var ly=py;const fy=function e(t){const n=new sy(t),i=xm(sy.prototype.request,n);return ev.extend(i,sy.prototype,n,{allOwnKeys:!0}),ev.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(ty(t,n))},i}(hg);fy.Axios=sy,fy.CanceledError=Eg,fy.CancelToken=uy,fy.isCancel=wg,fy.VERSION=gb,fy.toFormData=tg,fy.AxiosError=tv,fy.Cancel=fy.CanceledError,fy.all=function(e){return Promise.all(e)},fy.spread=function(e){return function(t){return e.apply(null,t)}},fy.isAxiosError=function(e){return ev.isObject(e)&&!0===e.isAxiosError},fy.mergeConfig=ty,fy.AxiosHeaders=xg,fy.formToJSON=e=>pg(ev.isHTMLForm(e)?new FormData(e):e),fy.HttpStatusCode=ly,fy.default=fy;var hy=fy;const dy="https://qyapi.weixin.qq.com";async function my(e,t){let n={};n=t&&0!==Object.keys(t).length?t:await async function(){return await mm("wxServerConfig")}();const{WX_COMPANY_ID:i,WX_APP_ID:r,WX_APP_SECRET:o}=n;try{const t=await async function({id:e,secret:t}){try{return(await hy({url:`${dy}/cgi-bin/gettoken?corpid=${e}&corpsecret=${t}`,method:"GET",headers:{"Content-Type":"application/json"}})).data.access_token}catch(e){return console.log(e),""}}({id:i,secret:o}),n={...{msgtype:"text",agentid:r,...e},...e},a=await(async(e,t)=>(await hy({url:`${dy}/cgi-bin/message/send?access_token=${e}`,method:"POST",data:{touser:t.touser||"@all",...t}})).data)(t,n);return gm("wx:信息发送成功!",a),!0}catch(e){return bm("wx:信息发送失败!",e),!1}}g.locale("zh-cn"),async function(){return await mm()}().then((e=>{const t=e.uploadServeConfig,n=e.wxServerConfig,i="pro"===process.env.VUE_APP_PACK_ENV,r=process.env.VUE_APP_LINE_VERSION,o=i&&2==+r?t.host[1]:t.host[0],a=i?t.staticPath.pro:t.staticPath.dev,s=`${t.protocol}://${o}/${a}`,c=function(){const e=dm.commandSync("git rev-parse --short HEAD"),t=`git log --pretty=format:“%s” ${e.stdout} -1`,{stdout:n,stderr:i}=dm.commandSync(t);return{commitId:e.stdout,commitMsg:n}}(),u={host:o,port:"22",locaPath:`${process.env.PWD}${t.locaPath}`,...t.serverOption,pathNmae:`${t.serverOption.pathNmae}${a}`};function p(e){return`<div class="gray">${g().format("lll")}</div><div class="highlight">${t.projectTitle}${i?"生产":"开发"}环境发布${e}</div><div class="normal">commitId:${c.commitId}</div><div class="normal">commitMsg:${c.commitMsg}</div><div class="normal">访问地址:${s}</div>`}!function(e,t=""){ym("cyan",e,t)}("本次打包信息 =>",{...t.baseInfo||{},serverPath:u.pathNmae});const l=Su("正在发布到"+(i?"生产":"开发")+"服务器..."),f=new(0,require("ssh2").Client);!function(e,t=""){ym("magenta",e,t)}("正在建立连接"),f.on("ready",(function(){if(vm("已连接"),!u.pathNmae)return vm("连接已关闭"),f.end(),!1;f.exec("rm -rf "+u.pathNmae+"/*",(function(e,t){!function(e,t=""){ym("yellow",e,t)}("已删除服务端文件"),t.on("close",(function(e,t){vm("开始上传"),l.start(),xa.scp(u.locaPath,{host:u.host,port:u.port,username:u.username,password:u.password,path:u.pathNmae},(e=>{l.stop(),e?(bm("发布失败.\n",e),my({msgtype:"textcard",textcard:{title:"发布失败",description:p("失败"),url:s,btntxt:"更多"}},n)):(gm("Success! 成功发布到"+(i?"生产":"开发")+"服务器!",`访问地址====>${s}`),my({msgtype:"textcard",textcard:{title:"发布成功",description:p("成功"),url:s,btntxt:"更多"}},n)),f.end()}))}))}))})).connect({host:u.host,port:u.port,username:u.username,password:u.password})}));