@dypnb/dev-tools 1.0.23 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#! /usr/bin/env node
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("node:fs"),require("net"),require("stream"),require("path"),require("fs"),require("child_process"),require("crypto"),require("assert"),require("buffer"),require("http"),require("https"),require("tls"),require("dns"),require("events"),require("util"),require("zlib"),require("node:path"),require("readline"),require("os"),require("tty"),require("node:url"),require("url"),require("http2")):"function"==typeof define&&define.amd?define(["node:fs","net","stream","path","fs","child_process","crypto","assert","buffer","http","https","tls","dns","events","util","zlib","node:path","readline","os","tty","node:url","url","http2"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).require$$0$b,e.require$$0$7,e.stream$3,e.require$$0$5,e.require$$0$6,e.require$$4,e.require$$0$4,e.require$$0$3,e.require$$0$2,e.require$$0$a,e.require$$1,e.require$$2$1,e.require$$2,e.require$$0$9,e.require$$0$8,e.zlib$1,e.require$$1$1,e.require$$0$d,e.require$$0$c,e.require$$1$2,null,e.require$$5,e.http2)}(this,function(e,t,n,i,r,s,o,a,c,l,u,p,d,h,f,m,g,_,b,y,v,A,E){"use strict";var w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S,I={exports:{}},k={newInvalidAsn1Error:function(e){var t=new Error;return t.name="InvalidAsn1Error",t.message=e||"",t}},C={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},R=c,B=R.Buffer,T={};for(S in R)R.hasOwnProperty(S)&&"SlowBuffer"!==S&&"Buffer"!==S&&(T[S]=R[S]);var O=T.Buffer={};for(S in B)B.hasOwnProperty(S)&&"allocUnsafe"!==S&&"allocUnsafeSlow"!==S&&(O[S]=B[S]);if(T.Buffer.prototype=B.prototype,O.from&&O.from!==Uint8Array.from||(O.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 B(e,t,n)}),O.alloc||(O.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=B(e);return t&&0!==t.length?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i}),!T.kStringMaxLength)try{T.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(Ox){}T.constants||(T.constants={MAX_LENGTH:T.kMaxLength},T.kStringMaxLength&&(T.constants.MAX_STRING_LENGTH=T.kStringMaxLength));var N=T,L=a,P=N.Buffer,U=C,D=k.newInvalidAsn1Error;function M(e){if(!e||!P.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(M.prototype,"length",{enumerable:!0,get:function(){return this._len}}),Object.defineProperty(M.prototype,"offset",{enumerable:!0,get:function(){return this._offset}}),Object.defineProperty(M.prototype,"remain",{get:function(){return this._size-this._offset}}),Object.defineProperty(M.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}}),M.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},M.prototype.peek=function(){return this.readByte(!0)},M.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&~t)this._len=t;else{if(0===(t&=127))throw D("Indefinite length not supported");if(t>4)throw D("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++])}return e},M.prototype.readSequence=function(e){var t=this.peek();if(null===t)return null;if(void 0!==e&&e!==t)throw D("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)},M.prototype.readInt=function(){return this._readTag(U.Integer)},M.prototype.readBoolean=function(){return 0!==this._readTag(U.Boolean)},M.prototype.readEnumeration=function(){return this._readTag(U.Enumeration)},M.prototype.readString=function(e,t){e||(e=U.OctetString);var n=this.peek();if(null===n)return null;if(n!==e)throw D("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?P.alloc(0):"";var r=this._buf.slice(this._offset,this._offset+this.length);return this._offset+=this.length,t?r:r.toString("utf8")},M.prototype.readOID=function(e){e||(e=U.OID);var t=this.readString(e,!0);if(null===t)return null;for(var n=[],i=0,r=0;r<t.length;r++){var s=255&t[r];i<<=7,i+=127&s,128&s||(n.push(i),i=0)}return i=n.shift(),n.unshift(i%40),n.unshift(i/40|0),n.join(".")},M.prototype._readTag=function(e){L.ok(void 0!==e);var t=this.peek();if(null===t)return null;if(t!==e)throw D("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 D("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,s=0;s<this.length;s++)r<<=8,r|=255&this._buf[this._offset++];return 128&~i||4===s||(r-=1<<8*s),r|0};var H=M,F=a,j=N.Buffer,$=C,Q=k.newInvalidAsn1Error,W={size:1024,growthFactor:8};function q(e){var t,n;t=W,n=e||{},F.ok(t),F.equal(typeof t,"object"),F.ok(n),F.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=j.alloc(e.size||1024),this._size=this._buf.length,this._offset=0,this._options=e,this._seq=[]}Object.defineProperty(q.prototype,"buffer",{get:function(){if(this._seq.length)throw Q(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}}),q.prototype.writeByte=function(e){if("number"!=typeof e)throw new TypeError("argument must be a Number");this._ensure(1),this._buf[this._offset++]=e},q.prototype.writeInt=function(e,t){if("number"!=typeof e)throw new TypeError("argument must be a Number");"number"!=typeof t&&(t=$.Integer);for(var n=4;(!(4286578688&e)||-8388608==(4286578688&e))&&n>1;)n--,e<<=8;if(n>4)throw Q("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},q.prototype.writeNull=function(){this.writeByte($.Null),this.writeByte(0)},q.prototype.writeEnumeration=function(e,t){if("number"!=typeof e)throw new TypeError("argument must be a Number");return"number"!=typeof t&&(t=$.Enumeration),this.writeInt(e,t)},q.prototype.writeBoolean=function(e,t){if("boolean"!=typeof e)throw new TypeError("argument must be a Boolean");"number"!=typeof t&&(t=$.Boolean),this._ensure(3),this._buf[this._offset++]=t,this._buf[this._offset++]=1,this._buf[this._offset++]=e?255:0},q.prototype.writeString=function(e,t){if("string"!=typeof e)throw new TypeError("argument must be a string (was: "+typeof e+")");"number"!=typeof t&&(t=$.OctetString);var n=j.byteLength(e);this.writeByte(t),this.writeLength(n),n&&(this._ensure(n),this._buf.write(e,this._offset),this._offset+=n)},q.prototype.writeBuffer=function(e,t){if("number"!=typeof t)throw new TypeError("tag must be a number");if(!j.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},q.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)})},q.prototype.writeOID=function(e,t){if("string"!=typeof e)throw new TypeError("argument must be a string");if("number"!=typeof t&&(t=$.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(t>>>7&255|128),e.push(127&t)):t<268435456?(e.push(t>>>21|128),e.push(t>>>14&255|128),e.push(t>>>7&255|128),e.push(127&t)):(e.push(t>>>28&255|128),e.push(t>>>21&255|128),e.push(t>>>14&255|128),e.push(t>>>7&255|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)})},q.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 Q("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}},q.prototype.startSequence=function(e){"number"!=typeof e&&(e=$.Sequence|$.Constructor),this.writeByte(e),this._seq.push(this._offset),this._ensure(3),this._offset+=3},q.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 Q("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}},q.prototype._shift=function(e,t,n){F.ok(void 0!==e),F.ok(void 0!==t),F.ok(n),this._buf.copy(this._buf,e+n,e,e+t),this._offset+=n},q.prototype._ensure=function(e){if(F.ok(e),this._size-this._offset<e){var t=this._size*this._options.growthFactor;t-this._offset<e&&(t+=e);var n=j.alloc(t);this._buf.copy(n,0,0,this._offset),this._buf=n,this._size=t}};var Y=q;!function(e){var t=k,n=C,i=H,r=Y;for(var s in e.exports={Reader:i,Writer:r},n)n.hasOwnProperty(s)&&(e.exports[s]=n[s]);for(var o in t)t.hasOwnProperty(o)&&(e.exports[o]=t[o])}(I);var G=I.exports,K={Ber:G,BerReader:G.Reader,BerWriter:G.Writer};function z(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var X={exports:{}};!function(e){!function(e){var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),r=new Uint8Array(32);r[0]=9;var s=t(),a=t([1]),c=t([56129,1]),l=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),p=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function f(e,t,n,i){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=i>>24&255,e[t+5]=i>>16&255,e[t+6]=i>>8&255,e[t+7]=255&i}function m(e,t,n,i,r){var s,o=0;for(s=0;s<r;s++)o|=e[t+s]^n[i+s];return(1&o-1>>>8)-1}function g(e,t,n,i){return m(e,t,n,i,16)}function _(e,t,n,i){return m(e,t,n,i,32)}function b(e,t,n,i){!function(e,t,n,i){for(var r,s=255&i[0]|(255&i[1])<<8|(255&i[2])<<16|(255&i[3])<<24,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&i[4]|(255&i[5])<<8|(255&i[6])<<16|(255&i[7])<<24,p=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,f=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&i[8]|(255&i[9])<<8|(255&i[10])<<16|(255&i[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,_=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,v=255&i[12]|(255&i[13])<<8|(255&i[14])<<16|(255&i[15])<<24,A=s,E=o,w=a,x=c,S=l,I=u,k=p,C=d,R=h,B=f,T=m,O=g,N=_,L=b,P=y,U=v,D=0;D<20;D+=2)A^=(r=(N^=(r=(R^=(r=(S^=(r=A+N|0)<<7|r>>>25)+A|0)<<9|r>>>23)+S|0)<<13|r>>>19)+R|0)<<18|r>>>14,I^=(r=(E^=(r=(L^=(r=(B^=(r=I+E|0)<<7|r>>>25)+I|0)<<9|r>>>23)+B|0)<<13|r>>>19)+L|0)<<18|r>>>14,T^=(r=(k^=(r=(w^=(r=(P^=(r=T+k|0)<<7|r>>>25)+T|0)<<9|r>>>23)+P|0)<<13|r>>>19)+w|0)<<18|r>>>14,U^=(r=(O^=(r=(C^=(r=(x^=(r=U+O|0)<<7|r>>>25)+U|0)<<9|r>>>23)+x|0)<<13|r>>>19)+C|0)<<18|r>>>14,A^=(r=(x^=(r=(w^=(r=(E^=(r=A+x|0)<<7|r>>>25)+A|0)<<9|r>>>23)+E|0)<<13|r>>>19)+w|0)<<18|r>>>14,I^=(r=(S^=(r=(C^=(r=(k^=(r=I+S|0)<<7|r>>>25)+I|0)<<9|r>>>23)+k|0)<<13|r>>>19)+C|0)<<18|r>>>14,T^=(r=(B^=(r=(R^=(r=(O^=(r=T+B|0)<<7|r>>>25)+T|0)<<9|r>>>23)+O|0)<<13|r>>>19)+R|0)<<18|r>>>14,U^=(r=(P^=(r=(L^=(r=(N^=(r=U+P|0)<<7|r>>>25)+U|0)<<9|r>>>23)+N|0)<<13|r>>>19)+L|0)<<18|r>>>14;A=A+s|0,E=E+o|0,w=w+a|0,x=x+c|0,S=S+l|0,I=I+u|0,k=k+p|0,C=C+d|0,R=R+h|0,B=B+f|0,T=T+m|0,O=O+g|0,N=N+_|0,L=L+b|0,P=P+y|0,U=U+v|0,e[0]=A>>>0&255,e[1]=A>>>8&255,e[2]=A>>>16&255,e[3]=A>>>24&255,e[4]=E>>>0&255,e[5]=E>>>8&255,e[6]=E>>>16&255,e[7]=E>>>24&255,e[8]=w>>>0&255,e[9]=w>>>8&255,e[10]=w>>>16&255,e[11]=w>>>24&255,e[12]=x>>>0&255,e[13]=x>>>8&255,e[14]=x>>>16&255,e[15]=x>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=I>>>0&255,e[21]=I>>>8&255,e[22]=I>>>16&255,e[23]=I>>>24&255,e[24]=k>>>0&255,e[25]=k>>>8&255,e[26]=k>>>16&255,e[27]=k>>>24&255,e[28]=C>>>0&255,e[29]=C>>>8&255,e[30]=C>>>16&255,e[31]=C>>>24&255,e[32]=R>>>0&255,e[33]=R>>>8&255,e[34]=R>>>16&255,e[35]=R>>>24&255,e[36]=B>>>0&255,e[37]=B>>>8&255,e[38]=B>>>16&255,e[39]=B>>>24&255,e[40]=T>>>0&255,e[41]=T>>>8&255,e[42]=T>>>16&255,e[43]=T>>>24&255,e[44]=O>>>0&255,e[45]=O>>>8&255,e[46]=O>>>16&255,e[47]=O>>>24&255,e[48]=N>>>0&255,e[49]=N>>>8&255,e[50]=N>>>16&255,e[51]=N>>>24&255,e[52]=L>>>0&255,e[53]=L>>>8&255,e[54]=L>>>16&255,e[55]=L>>>24&255,e[56]=P>>>0&255,e[57]=P>>>8&255,e[58]=P>>>16&255,e[59]=P>>>24&255,e[60]=U>>>0&255,e[61]=U>>>8&255,e[62]=U>>>16&255,e[63]=U>>>24&255}(e,t,n,i)}function y(e,t,n,i){!function(e,t,n,i){for(var r,s=255&i[0]|(255&i[1])<<8|(255&i[2])<<16|(255&i[3])<<24,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&i[4]|(255&i[5])<<8|(255&i[6])<<16|(255&i[7])<<24,p=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,f=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&i[8]|(255&i[9])<<8|(255&i[10])<<16|(255&i[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,_=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,v=255&i[12]|(255&i[13])<<8|(255&i[14])<<16|(255&i[15])<<24,A=0;A<20;A+=2)s^=(r=(_^=(r=(h^=(r=(l^=(r=s+_|0)<<7|r>>>25)+s|0)<<9|r>>>23)+l|0)<<13|r>>>19)+h|0)<<18|r>>>14,u^=(r=(o^=(r=(b^=(r=(f^=(r=u+o|0)<<7|r>>>25)+u|0)<<9|r>>>23)+f|0)<<13|r>>>19)+b|0)<<18|r>>>14,m^=(r=(p^=(r=(a^=(r=(y^=(r=m+p|0)<<7|r>>>25)+m|0)<<9|r>>>23)+y|0)<<13|r>>>19)+a|0)<<18|r>>>14,v^=(r=(g^=(r=(d^=(r=(c^=(r=v+g|0)<<7|r>>>25)+v|0)<<9|r>>>23)+c|0)<<13|r>>>19)+d|0)<<18|r>>>14,s^=(r=(c^=(r=(a^=(r=(o^=(r=s+c|0)<<7|r>>>25)+s|0)<<9|r>>>23)+o|0)<<13|r>>>19)+a|0)<<18|r>>>14,u^=(r=(l^=(r=(d^=(r=(p^=(r=u+l|0)<<7|r>>>25)+u|0)<<9|r>>>23)+p|0)<<13|r>>>19)+d|0)<<18|r>>>14,m^=(r=(f^=(r=(h^=(r=(g^=(r=m+f|0)<<7|r>>>25)+m|0)<<9|r>>>23)+g|0)<<13|r>>>19)+h|0)<<18|r>>>14,v^=(r=(y^=(r=(b^=(r=(_^=(r=v+y|0)<<7|r>>>25)+v|0)<<9|r>>>23)+_|0)<<13|r>>>19)+b|0)<<18|r>>>14;e[0]=s>>>0&255,e[1]=s>>>8&255,e[2]=s>>>16&255,e[3]=s>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=m>>>0&255,e[9]=m>>>8&255,e[10]=m>>>16&255,e[11]=m>>>24&255,e[12]=v>>>0&255,e[13]=v>>>8&255,e[14]=v>>>16&255,e[15]=v>>>24&255,e[16]=p>>>0&255,e[17]=p>>>8&255,e[18]=p>>>16&255,e[19]=p>>>24&255,e[20]=d>>>0&255,e[21]=d>>>8&255,e[22]=d>>>16&255,e[23]=d>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=f>>>0&255,e[29]=f>>>8&255,e[30]=f>>>16&255,e[31]=f>>>24&255}(e,t,n,i)}var v=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function A(e,t,n,i,r,s,o){var a,c,l=new Uint8Array(16),u=new Uint8Array(64);for(c=0;c<16;c++)l[c]=0;for(c=0;c<8;c++)l[c]=s[c];for(;r>=64;){for(b(u,l,o,v),c=0;c<64;c++)e[t+c]=n[i+c]^u[c];for(a=1,c=8;c<16;c++)a=a+(255&l[c])|0,l[c]=255&a,a>>>=8;r-=64,t+=64,i+=64}if(r>0)for(b(u,l,o,v),c=0;c<r;c++)e[t+c]=n[i+c]^u[c];return 0}function E(e,t,n,i,r){var s,o,a=new Uint8Array(16),c=new Uint8Array(64);for(o=0;o<16;o++)a[o]=0;for(o=0;o<8;o++)a[o]=i[o];for(;n>=64;){for(b(c,a,r,v),o=0;o<64;o++)e[t+o]=c[o];for(s=1,o=8;o<16;o++)s=s+(255&a[o])|0,a[o]=255&s,s>>>=8;n-=64,t+=64}if(n>0)for(b(c,a,r,v),o=0;o<n;o++)e[t+o]=c[o];return 0}function w(e,t,n,i,r){var s=new Uint8Array(32);y(s,i,r,v);for(var o=new Uint8Array(8),a=0;a<8;a++)o[a]=i[a+16];return E(e,t,n,o,s)}function x(e,t,n,i,r,s,o){var a=new Uint8Array(32);y(a,s,o,v);for(var c=new Uint8Array(8),l=0;l<8;l++)c[l]=s[l+16];return A(e,t,n,i,r,c,a)}var S=function(e){var t,n,i,r,s,o,a,c;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),i=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|i<<6),r=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(i>>>7|r<<9),s=255&e[8]|(255&e[9])<<8,this.r[4]=255&(r>>>4|s<<12),this.r[5]=s>>>1&8190,o=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(s>>>14|o<<2),a=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(o>>>11|a<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(a>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function I(e,t,n,i,r,s){var o=new S(s);return o.update(n,i,r),o.finish(e,t),0}function k(e,t,n,i,r,s){var o=new Uint8Array(16);return I(o,0,n,i,r,s),g(e,t,o,0)}function C(e,t,n,i,r){var s;if(n<32)return-1;for(x(e,0,t,0,n,i,r),I(e,16,e,32,n-32,e),s=0;s<16;s++)e[s]=0;return 0}function R(e,t,n,i,r){var s,o=new Uint8Array(32);if(n<32)return-1;if(w(o,0,32,i,r),0!==k(t,16,t,32,n-32,o))return-1;for(x(e,0,t,0,n,i,r),s=0;s<32;s++)e[s]=0;return 0}function B(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function T(e){var t,n,i=1;for(t=0;t<16;t++)n=e[t]+i+65535,i=Math.floor(n/65536),e[t]=n-65536*i;e[0]+=i-1+37*(i-1)}function O(e,t,n){for(var i,r=~(n-1),s=0;s<16;s++)i=r&(e[s]^t[s]),e[s]^=i,t[s]^=i}function N(e,n){var i,r,s,o=t(),a=t();for(i=0;i<16;i++)a[i]=n[i];for(T(a),T(a),T(a),r=0;r<2;r++){for(o[0]=a[0]-65517,i=1;i<15;i++)o[i]=a[i]-65535-(o[i-1]>>16&1),o[i-1]&=65535;o[15]=a[15]-32767-(o[14]>>16&1),s=o[15]>>16&1,o[14]&=65535,O(a,o,1-s)}for(i=0;i<16;i++)e[2*i]=255&a[i],e[2*i+1]=a[i]>>8}function L(e,t){var n=new Uint8Array(32),i=new Uint8Array(32);return N(n,e),N(i,t),_(n,0,i,0)}function P(e){var t=new Uint8Array(32);return N(t,e),1&t[0]}function U(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function D(e,t,n){for(var i=0;i<16;i++)e[i]=t[i]+n[i]}function M(e,t,n){for(var i=0;i<16;i++)e[i]=t[i]-n[i]}function H(e,t,n){var i,r,s=0,o=0,a=0,c=0,l=0,u=0,p=0,d=0,h=0,f=0,m=0,g=0,_=0,b=0,y=0,v=0,A=0,E=0,w=0,x=0,S=0,I=0,k=0,C=0,R=0,B=0,T=0,O=0,N=0,L=0,P=0,U=n[0],D=n[1],M=n[2],H=n[3],F=n[4],j=n[5],$=n[6],Q=n[7],W=n[8],q=n[9],Y=n[10],G=n[11],K=n[12],z=n[13],X=n[14],V=n[15];s+=(i=t[0])*U,o+=i*D,a+=i*M,c+=i*H,l+=i*F,u+=i*j,p+=i*$,d+=i*Q,h+=i*W,f+=i*q,m+=i*Y,g+=i*G,_+=i*K,b+=i*z,y+=i*X,v+=i*V,o+=(i=t[1])*U,a+=i*D,c+=i*M,l+=i*H,u+=i*F,p+=i*j,d+=i*$,h+=i*Q,f+=i*W,m+=i*q,g+=i*Y,_+=i*G,b+=i*K,y+=i*z,v+=i*X,A+=i*V,a+=(i=t[2])*U,c+=i*D,l+=i*M,u+=i*H,p+=i*F,d+=i*j,h+=i*$,f+=i*Q,m+=i*W,g+=i*q,_+=i*Y,b+=i*G,y+=i*K,v+=i*z,A+=i*X,E+=i*V,c+=(i=t[3])*U,l+=i*D,u+=i*M,p+=i*H,d+=i*F,h+=i*j,f+=i*$,m+=i*Q,g+=i*W,_+=i*q,b+=i*Y,y+=i*G,v+=i*K,A+=i*z,E+=i*X,w+=i*V,l+=(i=t[4])*U,u+=i*D,p+=i*M,d+=i*H,h+=i*F,f+=i*j,m+=i*$,g+=i*Q,_+=i*W,b+=i*q,y+=i*Y,v+=i*G,A+=i*K,E+=i*z,w+=i*X,x+=i*V,u+=(i=t[5])*U,p+=i*D,d+=i*M,h+=i*H,f+=i*F,m+=i*j,g+=i*$,_+=i*Q,b+=i*W,y+=i*q,v+=i*Y,A+=i*G,E+=i*K,w+=i*z,x+=i*X,S+=i*V,p+=(i=t[6])*U,d+=i*D,h+=i*M,f+=i*H,m+=i*F,g+=i*j,_+=i*$,b+=i*Q,y+=i*W,v+=i*q,A+=i*Y,E+=i*G,w+=i*K,x+=i*z,S+=i*X,I+=i*V,d+=(i=t[7])*U,h+=i*D,f+=i*M,m+=i*H,g+=i*F,_+=i*j,b+=i*$,y+=i*Q,v+=i*W,A+=i*q,E+=i*Y,w+=i*G,x+=i*K,S+=i*z,I+=i*X,k+=i*V,h+=(i=t[8])*U,f+=i*D,m+=i*M,g+=i*H,_+=i*F,b+=i*j,y+=i*$,v+=i*Q,A+=i*W,E+=i*q,w+=i*Y,x+=i*G,S+=i*K,I+=i*z,k+=i*X,C+=i*V,f+=(i=t[9])*U,m+=i*D,g+=i*M,_+=i*H,b+=i*F,y+=i*j,v+=i*$,A+=i*Q,E+=i*W,w+=i*q,x+=i*Y,S+=i*G,I+=i*K,k+=i*z,C+=i*X,R+=i*V,m+=(i=t[10])*U,g+=i*D,_+=i*M,b+=i*H,y+=i*F,v+=i*j,A+=i*$,E+=i*Q,w+=i*W,x+=i*q,S+=i*Y,I+=i*G,k+=i*K,C+=i*z,R+=i*X,B+=i*V,g+=(i=t[11])*U,_+=i*D,b+=i*M,y+=i*H,v+=i*F,A+=i*j,E+=i*$,w+=i*Q,x+=i*W,S+=i*q,I+=i*Y,k+=i*G,C+=i*K,R+=i*z,B+=i*X,T+=i*V,_+=(i=t[12])*U,b+=i*D,y+=i*M,v+=i*H,A+=i*F,E+=i*j,w+=i*$,x+=i*Q,S+=i*W,I+=i*q,k+=i*Y,C+=i*G,R+=i*K,B+=i*z,T+=i*X,O+=i*V,b+=(i=t[13])*U,y+=i*D,v+=i*M,A+=i*H,E+=i*F,w+=i*j,x+=i*$,S+=i*Q,I+=i*W,k+=i*q,C+=i*Y,R+=i*G,B+=i*K,T+=i*z,O+=i*X,N+=i*V,y+=(i=t[14])*U,v+=i*D,A+=i*M,E+=i*H,w+=i*F,x+=i*j,S+=i*$,I+=i*Q,k+=i*W,C+=i*q,R+=i*Y,B+=i*G,T+=i*K,O+=i*z,N+=i*X,L+=i*V,v+=(i=t[15])*U,o+=38*(E+=i*M),a+=38*(w+=i*H),c+=38*(x+=i*F),l+=38*(S+=i*j),u+=38*(I+=i*$),p+=38*(k+=i*Q),d+=38*(C+=i*W),h+=38*(R+=i*q),f+=38*(B+=i*Y),m+=38*(T+=i*G),g+=38*(O+=i*K),_+=38*(N+=i*z),b+=38*(L+=i*X),y+=38*(P+=i*V),s=(i=(s+=38*(A+=i*D))+(r=1)+65535)-65536*(r=Math.floor(i/65536)),o=(i=o+r+65535)-65536*(r=Math.floor(i/65536)),a=(i=a+r+65535)-65536*(r=Math.floor(i/65536)),c=(i=c+r+65535)-65536*(r=Math.floor(i/65536)),l=(i=l+r+65535)-65536*(r=Math.floor(i/65536)),u=(i=u+r+65535)-65536*(r=Math.floor(i/65536)),p=(i=p+r+65535)-65536*(r=Math.floor(i/65536)),d=(i=d+r+65535)-65536*(r=Math.floor(i/65536)),h=(i=h+r+65535)-65536*(r=Math.floor(i/65536)),f=(i=f+r+65535)-65536*(r=Math.floor(i/65536)),m=(i=m+r+65535)-65536*(r=Math.floor(i/65536)),g=(i=g+r+65535)-65536*(r=Math.floor(i/65536)),_=(i=_+r+65535)-65536*(r=Math.floor(i/65536)),b=(i=b+r+65535)-65536*(r=Math.floor(i/65536)),y=(i=y+r+65535)-65536*(r=Math.floor(i/65536)),v=(i=v+r+65535)-65536*(r=Math.floor(i/65536)),s=(i=(s+=r-1+37*(r-1))+(r=1)+65535)-65536*(r=Math.floor(i/65536)),o=(i=o+r+65535)-65536*(r=Math.floor(i/65536)),a=(i=a+r+65535)-65536*(r=Math.floor(i/65536)),c=(i=c+r+65535)-65536*(r=Math.floor(i/65536)),l=(i=l+r+65535)-65536*(r=Math.floor(i/65536)),u=(i=u+r+65535)-65536*(r=Math.floor(i/65536)),p=(i=p+r+65535)-65536*(r=Math.floor(i/65536)),d=(i=d+r+65535)-65536*(r=Math.floor(i/65536)),h=(i=h+r+65535)-65536*(r=Math.floor(i/65536)),f=(i=f+r+65535)-65536*(r=Math.floor(i/65536)),m=(i=m+r+65535)-65536*(r=Math.floor(i/65536)),g=(i=g+r+65535)-65536*(r=Math.floor(i/65536)),_=(i=_+r+65535)-65536*(r=Math.floor(i/65536)),b=(i=b+r+65535)-65536*(r=Math.floor(i/65536)),y=(i=y+r+65535)-65536*(r=Math.floor(i/65536)),v=(i=v+r+65535)-65536*(r=Math.floor(i/65536)),s+=r-1+37*(r-1),e[0]=s,e[1]=o,e[2]=a,e[3]=c,e[4]=l,e[5]=u,e[6]=p,e[7]=d,e[8]=h,e[9]=f,e[10]=m,e[11]=g,e[12]=_,e[13]=b,e[14]=y,e[15]=v}function F(e,t){H(e,t,t)}function j(e,n){var i,r=t();for(i=0;i<16;i++)r[i]=n[i];for(i=253;i>=0;i--)F(r,r),2!==i&&4!==i&&H(r,r,n);for(i=0;i<16;i++)e[i]=r[i]}function $(e,n,i){var r,s,o=new Uint8Array(32),a=new Float64Array(80),l=t(),u=t(),p=t(),d=t(),h=t(),f=t();for(s=0;s<31;s++)o[s]=n[s];for(o[31]=127&n[31]|64,o[0]&=248,U(a,i),s=0;s<16;s++)u[s]=a[s],d[s]=l[s]=p[s]=0;for(l[0]=d[0]=1,s=254;s>=0;--s)O(l,u,r=o[s>>>3]>>>(7&s)&1),O(p,d,r),D(h,l,p),M(l,l,p),D(p,u,d),M(u,u,d),F(d,h),F(f,l),H(l,p,l),H(p,u,h),D(h,l,p),M(l,l,p),F(u,l),M(p,d,f),H(l,p,c),D(l,l,d),H(p,p,l),H(l,d,f),H(d,u,a),F(u,h),O(l,u,r),O(p,d,r);for(s=0;s<16;s++)a[s+16]=l[s],a[s+32]=p[s],a[s+48]=u[s],a[s+64]=d[s];var m=a.subarray(32),g=a.subarray(16);return j(m,m),H(g,g,m),N(e,g),0}function Q(e,t){return $(e,t,r)}function W(e,t){return n(t,32),Q(e,t)}function q(e,t,n){var r=new Uint8Array(32);return $(r,n,t),y(e,i,r,v)}S.prototype.blocks=function(e,t,n){for(var i,r,s,o,a,c,l,u,p,d,h,f,m,g,_,b,y,v,A,E=this.fin?0:2048,w=this.h[0],x=this.h[1],S=this.h[2],I=this.h[3],k=this.h[4],C=this.h[5],R=this.h[6],B=this.h[7],T=this.h[8],O=this.h[9],N=this.r[0],L=this.r[1],P=this.r[2],U=this.r[3],D=this.r[4],M=this.r[5],H=this.r[6],F=this.r[7],j=this.r[8],$=this.r[9];n>=16;)d=p=0,d+=(w+=8191&(i=255&e[t+0]|(255&e[t+1])<<8))*N,d+=(x+=8191&(i>>>13|(r=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*$),d+=(S+=8191&(r>>>10|(s=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*j),d+=(I+=8191&(s>>>7|(o=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*F),p=(d+=(k+=8191&(o>>>4|(a=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*H))>>>13,d&=8191,d+=(C+=a>>>1&8191)*(5*M),d+=(R+=8191&(a>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*D),d+=(B+=8191&(c>>>11|(l=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*U),d+=(T+=8191&(l>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*P),h=p+=(d+=(O+=u>>>5|E)*(5*L))>>>13,h+=w*L,h+=x*N,h+=S*(5*$),h+=I*(5*j),p=(h+=k*(5*F))>>>13,h&=8191,h+=C*(5*H),h+=R*(5*M),h+=B*(5*D),h+=T*(5*U),p+=(h+=O*(5*P))>>>13,h&=8191,f=p,f+=w*P,f+=x*L,f+=S*N,f+=I*(5*$),p=(f+=k*(5*j))>>>13,f&=8191,f+=C*(5*F),f+=R*(5*H),f+=B*(5*M),f+=T*(5*D),m=p+=(f+=O*(5*U))>>>13,m+=w*U,m+=x*P,m+=S*L,m+=I*N,p=(m+=k*(5*$))>>>13,m&=8191,m+=C*(5*j),m+=R*(5*F),m+=B*(5*H),m+=T*(5*M),g=p+=(m+=O*(5*D))>>>13,g+=w*D,g+=x*U,g+=S*P,g+=I*L,p=(g+=k*N)>>>13,g&=8191,g+=C*(5*$),g+=R*(5*j),g+=B*(5*F),g+=T*(5*H),_=p+=(g+=O*(5*M))>>>13,_+=w*M,_+=x*D,_+=S*U,_+=I*P,p=(_+=k*L)>>>13,_&=8191,_+=C*N,_+=R*(5*$),_+=B*(5*j),_+=T*(5*F),b=p+=(_+=O*(5*H))>>>13,b+=w*H,b+=x*M,b+=S*D,b+=I*U,p=(b+=k*P)>>>13,b&=8191,b+=C*L,b+=R*N,b+=B*(5*$),b+=T*(5*j),y=p+=(b+=O*(5*F))>>>13,y+=w*F,y+=x*H,y+=S*M,y+=I*D,p=(y+=k*U)>>>13,y&=8191,y+=C*P,y+=R*L,y+=B*N,y+=T*(5*$),v=p+=(y+=O*(5*j))>>>13,v+=w*j,v+=x*F,v+=S*H,v+=I*M,p=(v+=k*D)>>>13,v&=8191,v+=C*U,v+=R*P,v+=B*L,v+=T*N,A=p+=(v+=O*(5*$))>>>13,A+=w*$,A+=x*j,A+=S*F,A+=I*H,p=(A+=k*M)>>>13,A&=8191,A+=C*D,A+=R*U,A+=B*P,A+=T*L,w=d=8191&(p=(p=((p+=(A+=O*N)>>>13)<<2)+p|0)+(d&=8191)|0),x=h+=p>>>=13,S=f&=8191,I=m&=8191,k=g&=8191,C=_&=8191,R=b&=8191,B=y&=8191,T=v&=8191,O=A&=8191,t+=16,n-=16;this.h[0]=w,this.h[1]=x,this.h[2]=S,this.h[3]=I,this.h[4]=k,this.h[5]=C,this.h[6]=R,this.h[7]=B,this.h[8]=T,this.h[9]=O},S.prototype.finish=function(e,t){var n,i,r,s,o=new Uint16Array(10);if(this.leftover){for(s=this.leftover,this.buffer[s++]=1;s<16;s++)this.buffer[s]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,s=2;s<10;s++)this.h[s]+=n,n=this.h[s]>>>13,this.h[s]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,o[0]=this.h[0]+5,n=o[0]>>>13,o[0]&=8191,s=1;s<10;s++)o[s]=this.h[s]+n,n=o[s]>>>13,o[s]&=8191;for(o[9]-=8192,i=(1^n)-1,s=0;s<10;s++)o[s]&=i;for(i=~i,s=0;s<10;s++)this.h[s]=this.h[s]&i|o[s];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),r=this.h[0]+this.pad[0],this.h[0]=65535&r,s=1;s<8;s++)r=(this.h[s]+this.pad[s]|0)+(r>>>16)|0,this.h[s]=65535&r;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,n){var i,r;if(this.leftover){for((r=16-this.leftover)>n&&(r=n),i=0;i<r;i++)this.buffer[this.leftover+i]=e[t+i];if(n-=r,t+=r,this.leftover+=r,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(r=n-n%16,this.blocks(e,t,r),t+=r,n-=r),n){for(i=0;i<n;i++)this.buffer[this.leftover+i]=e[t+i];this.leftover+=n}};var Y=C,G=R;var K=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function X(e,t,n,i){for(var r,s,o,a,c,l,u,p,d,h,f,m,g,_,b,y,v,A,E,w,x,S,I,k,C,R,B=new Int32Array(16),T=new Int32Array(16),O=e[0],N=e[1],L=e[2],P=e[3],U=e[4],D=e[5],M=e[6],H=e[7],F=t[0],j=t[1],$=t[2],Q=t[3],W=t[4],q=t[5],Y=t[6],G=t[7],z=0;i>=128;){for(E=0;E<16;E++)w=8*E+z,B[E]=n[w+0]<<24|n[w+1]<<16|n[w+2]<<8|n[w+3],T[E]=n[w+4]<<24|n[w+5]<<16|n[w+6]<<8|n[w+7];for(E=0;E<80;E++)if(r=O,s=N,o=L,a=P,c=U,l=D,u=M,H,d=F,h=j,f=$,m=Q,g=W,_=q,b=Y,G,I=65535&(S=G),k=S>>>16,C=65535&(x=H),R=x>>>16,I+=65535&(S=(W>>>14|U<<18)^(W>>>18|U<<14)^(U>>>9|W<<23)),k+=S>>>16,C+=65535&(x=(U>>>14|W<<18)^(U>>>18|W<<14)^(W>>>9|U<<23)),R+=x>>>16,I+=65535&(S=W&q^~W&Y),k+=S>>>16,C+=65535&(x=U&D^~U&M),R+=x>>>16,I+=65535&(S=K[2*E+1]),k+=S>>>16,C+=65535&(x=K[2*E]),R+=x>>>16,x=B[E%16],k+=(S=T[E%16])>>>16,C+=65535&x,R+=x>>>16,C+=(k+=(I+=65535&S)>>>16)>>>16,I=65535&(S=A=65535&I|k<<16),k=S>>>16,C=65535&(x=v=65535&C|(R+=C>>>16)<<16),R=x>>>16,I+=65535&(S=(F>>>28|O<<4)^(O>>>2|F<<30)^(O>>>7|F<<25)),k+=S>>>16,C+=65535&(x=(O>>>28|F<<4)^(F>>>2|O<<30)^(F>>>7|O<<25)),R+=x>>>16,k+=(S=F&j^F&$^j&$)>>>16,C+=65535&(x=O&N^O&L^N&L),R+=x>>>16,p=65535&(C+=(k+=(I+=65535&S)>>>16)>>>16)|(R+=C>>>16)<<16,y=65535&I|k<<16,I=65535&(S=m),k=S>>>16,C=65535&(x=a),R=x>>>16,k+=(S=A)>>>16,C+=65535&(x=v),R+=x>>>16,N=r,L=s,P=o,U=a=65535&(C+=(k+=(I+=65535&S)>>>16)>>>16)|(R+=C>>>16)<<16,D=c,M=l,H=u,O=p,j=d,$=h,Q=f,W=m=65535&I|k<<16,q=g,Y=_,G=b,F=y,E%16==15)for(w=0;w<16;w++)x=B[w],I=65535&(S=T[w]),k=S>>>16,C=65535&x,R=x>>>16,x=B[(w+9)%16],I+=65535&(S=T[(w+9)%16]),k+=S>>>16,C+=65535&x,R+=x>>>16,v=B[(w+1)%16],I+=65535&(S=((A=T[(w+1)%16])>>>1|v<<31)^(A>>>8|v<<24)^(A>>>7|v<<25)),k+=S>>>16,C+=65535&(x=(v>>>1|A<<31)^(v>>>8|A<<24)^v>>>7),R+=x>>>16,v=B[(w+14)%16],k+=(S=((A=T[(w+14)%16])>>>19|v<<13)^(v>>>29|A<<3)^(A>>>6|v<<26))>>>16,C+=65535&(x=(v>>>19|A<<13)^(A>>>29|v<<3)^v>>>6),R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,B[w]=65535&C|R<<16,T[w]=65535&I|k<<16;I=65535&(S=F),k=S>>>16,C=65535&(x=O),R=x>>>16,x=e[0],k+=(S=t[0])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[0]=O=65535&C|R<<16,t[0]=F=65535&I|k<<16,I=65535&(S=j),k=S>>>16,C=65535&(x=N),R=x>>>16,x=e[1],k+=(S=t[1])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[1]=N=65535&C|R<<16,t[1]=j=65535&I|k<<16,I=65535&(S=$),k=S>>>16,C=65535&(x=L),R=x>>>16,x=e[2],k+=(S=t[2])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[2]=L=65535&C|R<<16,t[2]=$=65535&I|k<<16,I=65535&(S=Q),k=S>>>16,C=65535&(x=P),R=x>>>16,x=e[3],k+=(S=t[3])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[3]=P=65535&C|R<<16,t[3]=Q=65535&I|k<<16,I=65535&(S=W),k=S>>>16,C=65535&(x=U),R=x>>>16,x=e[4],k+=(S=t[4])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[4]=U=65535&C|R<<16,t[4]=W=65535&I|k<<16,I=65535&(S=q),k=S>>>16,C=65535&(x=D),R=x>>>16,x=e[5],k+=(S=t[5])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[5]=D=65535&C|R<<16,t[5]=q=65535&I|k<<16,I=65535&(S=Y),k=S>>>16,C=65535&(x=M),R=x>>>16,x=e[6],k+=(S=t[6])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[6]=M=65535&C|R<<16,t[6]=Y=65535&I|k<<16,I=65535&(S=G),k=S>>>16,C=65535&(x=H),R=x>>>16,x=e[7],k+=(S=t[7])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[7]=H=65535&C|R<<16,t[7]=G=65535&I|k<<16,z+=128,i-=128}return i}function V(e,t,n){var i,r=new Int32Array(8),s=new Int32Array(8),o=new Uint8Array(256),a=n;for(r[0]=1779033703,r[1]=3144134277,r[2]=1013904242,r[3]=2773480762,r[4]=1359893119,r[5]=2600822924,r[6]=528734635,r[7]=1541459225,s[0]=4089235720,s[1]=2227873595,s[2]=4271175723,s[3]=1595750129,s[4]=2917565137,s[5]=725511199,s[6]=4215389547,s[7]=327033209,X(r,s,t,n),n%=128,i=0;i<n;i++)o[i]=t[a-n+i];for(o[n]=128,o[(n=256-128*(n<112?1:0))-9]=0,f(o,n-8,a/536870912|0,a<<3),X(r,s,o,n),i=0;i<8;i++)f(e,8*i,r[i],s[i]);return 0}function J(e,n){var i=t(),r=t(),s=t(),o=t(),a=t(),c=t(),l=t(),p=t(),d=t();M(i,e[1],e[0]),M(d,n[1],n[0]),H(i,i,d),D(r,e[0],e[1]),D(d,n[0],n[1]),H(r,r,d),H(s,e[3],n[3]),H(s,s,u),H(o,e[2],n[2]),D(o,o,o),M(a,r,i),M(c,o,s),D(l,o,s),D(p,r,i),H(e[0],a,c),H(e[1],p,l),H(e[2],l,c),H(e[3],a,p)}function Z(e,t,n){var i;for(i=0;i<4;i++)O(e[i],t[i],n)}function ee(e,n){var i=t(),r=t(),s=t();j(s,n[2]),H(i,n[0],s),H(r,n[1],s),N(e,r),e[31]^=P(i)<<7}function te(e,t,n){var i,r;for(B(e[0],s),B(e[1],a),B(e[2],a),B(e[3],s),r=255;r>=0;--r)Z(e,t,i=n[r/8|0]>>(7&r)&1),J(t,e),J(e,e),Z(e,t,i)}function ne(e,n){var i=[t(),t(),t(),t()];B(i[0],p),B(i[1],d),B(i[2],a),H(i[3],p,d),te(e,i,n)}function ie(e,i,r){var s,o=new Uint8Array(64),a=[t(),t(),t(),t()];for(r||n(i,32),V(o,i,32),o[0]&=248,o[31]&=127,o[31]|=64,ne(a,o),ee(e,a),s=0;s<32;s++)i[s+32]=e[s];return 0}var re=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function se(e,t){var n,i,r,s;for(i=63;i>=32;--i){for(n=0,r=i-32,s=i-12;r<s;++r)t[r]+=n-16*t[i]*re[r-(i-32)],n=t[r]+128>>8,t[r]-=256*n;t[r]+=n,t[i]=0}for(n=0,r=0;r<32;r++)t[r]+=n-(t[31]>>4)*re[r],n=t[r]>>8,t[r]&=255;for(r=0;r<32;r++)t[r]-=n*re[r];for(i=0;i<32;i++)t[i+1]+=t[i]>>8,e[i]=255&t[i]}function oe(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;se(e,n)}function ae(e,n,i,r){var s,o,a=new Uint8Array(64),c=new Uint8Array(64),l=new Uint8Array(64),u=new Float64Array(64),p=[t(),t(),t(),t()];V(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64;var d=i+64;for(s=0;s<i;s++)e[64+s]=n[s];for(s=0;s<32;s++)e[32+s]=a[32+s];for(V(l,e.subarray(32),i+32),oe(l),ne(p,l),ee(e,p),s=32;s<64;s++)e[s]=r[s];for(V(c,e,i+64),oe(c),s=0;s<64;s++)u[s]=0;for(s=0;s<32;s++)u[s]=l[s];for(s=0;s<32;s++)for(o=0;o<32;o++)u[s+o]+=c[s]*a[o];return se(e.subarray(32),u),d}function ce(e,n){var i=t(),r=t(),o=t(),c=t(),u=t(),p=t(),d=t();return B(e[2],a),U(e[1],n),F(o,e[1]),H(c,o,l),M(o,o,e[2]),D(c,e[2],c),F(u,c),F(p,u),H(d,p,u),H(i,d,o),H(i,i,c),function(e,n){var i,r=t();for(i=0;i<16;i++)r[i]=n[i];for(i=250;i>=0;i--)F(r,r),1!==i&&H(r,r,n);for(i=0;i<16;i++)e[i]=r[i]}(i,i),H(i,i,o),H(i,i,c),H(i,i,c),H(e[0],i,c),F(r,e[0]),H(r,r,c),L(r,o)&&H(e[0],e[0],h),F(r,e[0]),H(r,r,c),L(r,o)?-1:(P(e[0])===n[31]>>7&&M(e[0],s,e[0]),H(e[3],e[0],e[1]),0)}function le(e,n,i,r){var s,o=new Uint8Array(32),a=new Uint8Array(64),c=[t(),t(),t(),t()],l=[t(),t(),t(),t()];if(i<64)return-1;if(ce(l,r))return-1;for(s=0;s<i;s++)e[s]=n[s];for(s=0;s<32;s++)e[s+32]=r[s];if(V(a,e,i),oe(a),te(c,l,a),ne(l,n.subarray(32)),J(c,l),ee(o,c),i-=64,_(n,0,o,0)){for(s=0;s<i;s++)e[s]=0;return-1}for(s=0;s<i;s++)e[s]=n[s+64];return i}var ue=16,pe=64,de=32,he=64;function fe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function me(){var e,t;for(t=0;t<arguments.length;t++)if("[object Uint8Array]"!==(e=Object.prototype.toString.call(arguments[t])))throw new TypeError("unexpected type "+e+", use Uint8Array")}function ge(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:y,crypto_stream_xor:x,crypto_stream:w,crypto_stream_salsa20_xor:A,crypto_stream_salsa20:E,crypto_onetimeauth:I,crypto_onetimeauth_verify:k,crypto_verify_16:g,crypto_verify_32:_,crypto_secretbox:C,crypto_secretbox_open:R,crypto_scalarmult:$,crypto_scalarmult_base:Q,crypto_box_beforenm:q,crypto_box_afternm:Y,crypto_box:function(e,t,n,i,r,s){var o=new Uint8Array(32);return q(o,r,s),Y(e,t,n,i,o)},crypto_box_open:function(e,t,n,i,r,s){var o=new Uint8Array(32);return q(o,r,s),G(e,t,n,i,o)},crypto_box_keypair:W,crypto_hash:V,crypto_sign:ae,crypto_sign_keypair:ie,crypto_sign_open:le,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ue,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:pe,crypto_sign_PUBLICKEYBYTES:de,crypto_sign_SECRETKEYBYTES:he,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64},e.util||(e.util={},e.util.decodeUTF8=e.util.encodeUTF8=e.util.encodeBase64=e.util.decodeBase64=function(){throw new Error("nacl.util moved into separate package: https://github.com/dchest/tweetnacl-util-js")}),e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,n){me(e,t,n),fe(n,t);for(var i=new Uint8Array(32+e.length),r=new Uint8Array(i.length),s=0;s<e.length;s++)i[s+32]=e[s];return C(r,i,i.length,t,n),r.subarray(ue)},e.secretbox.open=function(e,t,n){me(e,t,n),fe(n,t);for(var i=new Uint8Array(ue+e.length),r=new Uint8Array(i.length),s=0;s<e.length;s++)i[s+ue]=e[s];return!(i.length<32)&&(0===R(r,i,i.length,t,n)&&r.subarray(32))},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ue,e.scalarMult=function(e,t){if(me(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return $(n,e,t),n},e.scalarMult.base=function(e){if(me(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return Q(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,i,r){var s=e.box.before(i,r);return e.secretbox(t,n,s)},e.box.before=function(e,t){me(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return q(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,i,r){var s=e.box.before(i,r);return e.secretbox.open(t,n,s)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return W(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(me(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return Q(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(me(e,t),t.length!==he)throw new Error("bad secret key size");var n=new Uint8Array(pe+e.length);return ae(n,e,e.length,t),n},e.sign.open=function(e,t){if(2!==arguments.length)throw new Error("nacl.sign.open accepts 2 arguments; did you mean to use nacl.sign.detached.verify?");if(me(e,t),t.length!==de)throw new Error("bad public key size");var n=new Uint8Array(e.length),i=le(n,e,e.length,t);if(i<0)return null;for(var r=new Uint8Array(i),s=0;s<r.length;s++)r[s]=n[s];return r},e.sign.detached=function(t,n){for(var i=e.sign(t,n),r=new Uint8Array(pe),s=0;s<r.length;s++)r[s]=i[s];return r},e.sign.detached.verify=function(e,t,n){if(me(e,t,n),t.length!==pe)throw new Error("bad signature size");if(n.length!==de)throw new Error("bad public key size");var i,r=new Uint8Array(pe+e.length),s=new Uint8Array(pe+e.length);for(i=0;i<pe;i++)r[i]=t[i];for(i=0;i<e.length;i++)r[i+pe]=e[i];return le(s,r,r.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(de),t=new Uint8Array(he);return ie(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(me(e),e.length!==he)throw new Error("bad secret key size");for(var t=new Uint8Array(de),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(me(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(de),n=new Uint8Array(he),i=0;i<32;i++)n[i]=e[i];return ie(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=de,e.sign.secretKeyLength=he,e.sign.seedLength=32,e.sign.signatureLength=pe,e.hash=function(e){me(e);var t=new Uint8Array(64);return V(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return me(e,t),0!==e.length&&0!==t.length&&(e.length===t.length&&0===m(e,0,t,0,e.length))},e.setPRNG=function(e){n=e},function(){var t="undefined"!=typeof self?self.crypto||self.msCrypto:null;if(t&&t.getRandomValues){e.setPRNG(function(e,n){var i,r=new Uint8Array(n);for(i=0;i<n;i+=65536)t.getRandomValues(r.subarray(i,i+Math.min(n-i,65536)));for(i=0;i<n;i++)e[i]=r[i];ge(r)})}else void 0!==z&&(t=o)&&t.randomBytes&&e.setPRNG(function(e,n){var i,r=t.randomBytes(n);for(i=0;i<n;i++)e[i]=r[i];ge(r)})}()}(e.exports?e.exports:self.nacl=self.nacl||{})}(X);var V=X.exports.lowlevel.crypto_hash,J=0,Z=function(){this.S=[new Uint32Array([3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946]),new Uint32Array([1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055]),new Uint32Array([3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504]),new Uint32Array([976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462])],this.P=new Uint32Array([608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731])};function ee(e,t,n){return(e[0][t[n+3]]+e[1][t[n+2]]^e[2][t[n+1]])+e[3][t[n]]}function te(e,t){var n,i=0;for(n=0;n<4;n++,J++)J>=t&&(J=0),i=i<<8|e[J];return i}Z.prototype.encipher=function(e,t){void 0===t&&(t=new Uint8Array(e.buffer),0!==e.byteOffset&&(t=t.subarray(e.byteOffset))),e[0]^=this.P[0];for(var n=1;n<16;n+=2)e[1]^=ee(this.S,t,0)^this.P[n],e[0]^=ee(this.S,t,4)^this.P[n+1];var i=e[0];e[0]=e[1]^this.P[17],e[1]=i},Z.prototype.decipher=function(e){var t=new Uint8Array(e.buffer);0!==e.byteOffset&&(t=t.subarray(e.byteOffset)),e[0]^=this.P[17];for(var n=16;n>0;n-=2)e[1]^=ee(this.S,t,0)^this.P[n],e[0]^=ee(this.S,t,4)^this.P[n-1];var i=e[0];e[0]=e[1]^this.P[0],e[1]=i},Z.prototype.expand0state=function(e,t){var n,i,r=new Uint32Array(2),s=new Uint8Array(r.buffer);for(n=0,J=0;n<18;n++)this.P[n]^=te(e,t);for(J=0,n=0;n<18;n+=2)this.encipher(r,s),this.P[n]=r[0],this.P[n+1]=r[1];for(n=0;n<4;n++)for(i=0;i<256;i+=2)this.encipher(r,s),this.S[n][i]=r[0],this.S[n][i+1]=r[1]},Z.prototype.expandstate=function(e,t,n,i){var r,s,o=new Uint32Array(2);for(r=0,J=0;r<18;r++)this.P[r]^=te(n,i);for(r=0,J=0;r<18;r+=2)o[0]^=te(e,t),o[1]^=te(e,t),this.encipher(o),this.P[r]=o[0],this.P[r+1]=o[1];for(r=0;r<4;r++)for(s=0;s<256;s+=2)o[0]^=te(e,t),o[1]^=te(e,t),this.encipher(o),this.S[r][s]=o[0],this.S[r][s+1]=o[1];J=0},Z.prototype.enc=function(e,t){for(var n=0;n<t;n++)this.encipher(e.subarray(2*n))},Z.prototype.dec=function(e,t){for(var n=0;n<t;n++)this.decipher(e.subarray(2*n))};function ne(e,t,n){var i,r=new Z,s=new Uint32Array(8),o=new Uint8Array([79,120,121,99,104,114,111,109,97,116,105,99,66,108,111,119,102,105,115,104,83,119,97,116,68,121,110,97,109,105,116,101]);for(r.expandstate(t,64,e,64),i=0;i<64;i++)r.expand0state(t,64),r.expand0state(e,64);for(i=0;i<8;i++)s[i]=te(o,o.byteLength);for(i=0;i<64;i++)r.enc(s,s.byteLength/8);for(i=0;i<8;i++)n[4*i+3]=s[i]>>>24,n[4*i+2]=s[i]>>>16,n[4*i+1]=s[i]>>>8,n[4*i+0]=s[i]}var ie,re,se,oe=function(e,t,n,i,r,s,o){var a,c,l,u,p,d,h=new Uint8Array(64),f=new Uint8Array(64),m=new Uint8Array(32),g=new Uint8Array(32),_=new Uint8Array(i+4),b=s;if(o<1)return-1;if(0===t||0===i||0===s||s>m.byteLength*m.byteLength||i>1<<20)return-1;for(u=Math.floor((s+m.byteLength-1)/m.byteLength),l=Math.floor((s+u-1)/u),a=0;a<i;a++)_[a]=n[a];for(V(h,e,t),d=1;s>0;d++){for(_[i+0]=d>>>24,_[i+1]=d>>>16,_[i+2]=d>>>8,_[i+3]=d,V(f,_,i+4),ne(h,f,g),a=m.byteLength;a--;)m[a]=g[a];for(a=1;a<o;a++)for(V(f,g,g.byteLength),ne(h,f,g),c=0;c<m.byteLength;c++)m[c]^=g[c];for(l=Math.min(l,s),a=0;a<l&&!((p=a*u+(d-1))>=b);a++)r[p]=m[a];s-=a}return 0},ae={exports:{}};function ce(){return ie||(ie=1,function(e){const t=o;let n;try{n=require("cpu-features")()}catch{}const{bindingAvailable:i,CIPHER_INFO:r,MAC_INFO:s}=me(),a=(()=>{if("function"==typeof t.sign&&"function"==typeof t.verify){const e="-----BEGIN PRIVATE KEY-----\r\nMC4CAQAwBQYDK2VwBCIEIHKj+sVa9WcD/q2DJUJaf43Kptc8xYuUQA4bOFj9vC8T\r\n-----END PRIVATE KEY-----",n=Buffer.from("a");let i,r;try{i=t.sign(null,n,e),r=t.verify(null,n,e,i)}catch{}return Buffer.isBuffer(i)&&64===i.length&&!0===r}return!1})(),c="function"==typeof t.diffieHellman&&"function"==typeof t.generateKeyPairSync&&"function"==typeof t.createPublicKey,l=["ecdh-sha2-nistp256","ecdh-sha2-nistp384","ecdh-sha2-nistp521","diffie-hellman-group-exchange-sha256","diffie-hellman-group14-sha256","diffie-hellman-group15-sha512","diffie-hellman-group16-sha512","diffie-hellman-group17-sha512","diffie-hellman-group18-sha512"];c&&(l.unshift("curve25519-sha256"),l.unshift("curve25519-sha256@libssh.org"));const u=l.concat(["diffie-hellman-group-exchange-sha1","diffie-hellman-group14-sha1","diffie-hellman-group1-sha1"]),p=["ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","rsa-sha2-512","rsa-sha2-256","ssh-rsa"];a&&p.unshift("ssh-ed25519");const d=p.concat(["ssh-dss"]),h=(()=>{const e=t.getCiphers();return t=>e.includes(r[t].sslName)})();let f=["aes128-gcm@openssh.com","aes256-gcm@openssh.com","aes128-ctr","aes192-ctr","aes256-ctr"];n&&n.flags&&!n.flags.aes?i?f.unshift("chacha20-poly1305@openssh.com"):f.push("chacha20-poly1305@openssh.com"):i&&n&&"x86"===n.arch?f.splice(4,0,"chacha20-poly1305@openssh.com"):f.push("chacha20-poly1305@openssh.com"),f=f.filter(h);const m=f.concat(["aes256-cbc","aes192-cbc","aes128-cbc","blowfish-cbc","3des-cbc","aes128-gcm","aes256-gcm","arcfour256","arcfour128","cast128-cbc","arcfour"].filter(h)),g=(()=>{const e=t.getHashes();return t=>e.includes(s[t].sslName)})(),_=["hmac-sha2-256-etm@openssh.com","hmac-sha2-512-etm@openssh.com","hmac-sha1-etm@openssh.com","hmac-sha2-256","hmac-sha2-512","hmac-sha1"].filter(g),b=_.concat(["hmac-md5","hmac-sha2-256-96","hmac-sha2-512-96","hmac-ripemd160","hmac-sha1-96","hmac-md5-96"].filter(g)),y=["none","zlib@openssh.com","zlib"],v=y.concat([]),A={BAD_DHGEX:1,OLD_EXIT:2,DYN_RPORT_BUG:4,BUG_DHGEX_LARGE:8,IMPLY_RSA_SHA2_SIGALGS:16};e.exports={MESSAGE:{DISCONNECT:1,IGNORE:2,UNIMPLEMENTED:3,DEBUG:4,SERVICE_REQUEST:5,SERVICE_ACCEPT:6,EXT_INFO:7,KEXINIT:20,NEWKEYS:21,KEXDH_INIT:30,KEXDH_REPLY:31,KEXDH_GEX_GROUP:31,KEXDH_GEX_INIT:32,KEXDH_GEX_REPLY:33,KEXDH_GEX_REQUEST:34,KEXECDH_INIT:30,KEXECDH_REPLY:31,USERAUTH_REQUEST:50,USERAUTH_FAILURE:51,USERAUTH_SUCCESS:52,USERAUTH_BANNER:53,USERAUTH_PASSWD_CHANGEREQ:60,USERAUTH_PK_OK:60,USERAUTH_INFO_REQUEST:60,USERAUTH_INFO_RESPONSE:61,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},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},DISCONNECT_REASON_STR:void 0,CHANNEL_OPEN_FAILURE:{ADMINISTRATIVELY_PROHIBITED:1,CONNECT_FAILED:2,UNKNOWN_CHANNEL_TYPE:3,RESOURCE_SHORTAGE:4},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},CHANNEL_EXTENDED_DATATYPE:{STDERR:1},SIGNALS:["ABRT","ALRM","FPE","HUP","ILL","INT","QUIT","SEGV","TERM","USR1","USR2","KILL","PIPE"].reduce((e,t)=>({...e,[t]:1}),{}),COMPAT:A,COMPAT_CHECKS:[["Cisco-1.25",A.BAD_DHGEX],[/^Cisco-1[.]/,A.BUG_DHGEX_LARGE],[/^[0-9.]+$/,A.OLD_EXIT],[/^OpenSSH_5[.][0-9]+/,A.DYN_RPORT_BUG],[/^OpenSSH_7[.]4/,A.IMPLY_RSA_SHA2_SIGALGS]],DEFAULT_KEX:l,SUPPORTED_KEX:u,DEFAULT_SERVER_HOST_KEY:p,SUPPORTED_SERVER_HOST_KEY:d,DEFAULT_CIPHER:f,SUPPORTED_CIPHER:m,DEFAULT_MAC:_,SUPPORTED_MAC:b,DEFAULT_COMPRESSION:y,SUPPORTED_COMPRESSION:v,curve25519Supported:c,eddsaSupported:a},e.exports.DISCONNECT_REASON_BY_VALUE=Array.from(Object.entries(e.exports.DISCONNECT_REASON)).reduce((e,[t,n])=>({...e,[n]:t}),{})}(ae)),ae.exports}function le(){if(se)return re;se=1;const e=K.Ber;let t;const n=Buffer[Symbol.species],i=Object.getPrototypeOf(Uint8Array.prototype).fill;function r(e,t){return 16777216*e[t++]+65536*e[t++]+256*e[t++]+e[t]}function s(e,t,n,i,r){r||(r=0),i>e.length&&(i=e.length);let s=i-n;const o=t.length-r;return s>o&&(s=o),t.set(new Uint8Array(e.buffer,e.byteOffset+n,s),r),s}function o(e,t,i){return void 0===i&&(i=e.length),new n(e.buffer,e.byteOffset+t,i-t)}function a(){let e,t=0;const n={init:(n,i)=>{e=n,t="number"==typeof i?i:0},pos:()=>t,length:()=>e?e.length:0,avail:()=>e&&t<e.length?e.length-t:0,clear:()=>{e=void 0},readUInt32BE:()=>{if(e&&!(t+3>=e.length))return 16777216*e[t++]+65536*e[t++]+256*e[t++]+e[t++]},readUInt64BE:n=>{if(e&&!(t+7>=e.length))switch(n){case"always":return BigInt(`0x${e.hexSlice(t,t+=8)}`);case"maybe":if(e[t]>31)return BigInt(`0x${e.hexSlice(t,t+=8)}`);default:return 72057594037927940*e[t++]+281474976710656*e[t++]+1099511627776*e[t++]+4294967296*e[t++]+16777216*e[t++]+65536*e[t++]+256*e[t++]+e[t++]}},skip:n=>{e&&n>0&&(t+=n)},skipString:()=>{const i=n.readUInt32BE();if(void 0!==i)return t+=i,t<=e.length?i:void 0},readByte:()=>{if(e&&t<e.length)return e[t++]},readBool:()=>{if(e&&t<e.length)return!!e[t++]},readList:()=>{const e=n.readString(!0);if(void 0!==e)return e?e.split(","):[]},readString:(i,r)=>{"number"==typeof i&&(r=i,i=void 0);const a=n.readUInt32BE();if(void 0!==a&&!(e.length-t<a||"number"==typeof r&&a>r))return i?Buffer.isBuffer(i)?s(e,i,t,t+=a):e.utf8Slice(t,t+=a):o(e,t,t+=a)},readRaw:n=>{if(e)return"number"!=typeof n?o(e,t,t+=e.length-t):e.length-t>=n?o(e,t,t+=n):void 0}};return n}function c(e,t,n){const i=new Error(e);return"boolean"==typeof t?(n=t,i.level="protocol"):i.level=t||"protocol",i.fatal=!!n,i}function l(e,t,n){return e[n++]=t>>>24,e[n++]=t>>>16,e[n++]=t>>>8,e[n++]=t,n}const u=a();return re={bufferCopy:s,bufferSlice:o,FastBuffer:n,bufferFill:(e,t,n,r)=>i.call(e,t,n,r),makeError:c,doFatalError:(e,n,i,r)=>{let s;return void 0===t&&({DISCONNECT_REASON:t}=ce()),n instanceof Error?(s=n,r="number"!=typeof i?t.PROTOCOL_ERROR:i):s=c(n,i,!0),"number"!=typeof r&&(r=t.PROTOCOL_ERROR),e.disconnect(r),e._destruct(),e._onError(s),1/0},readUInt32BE:r,writeUInt32BE:l,writeUInt32LE:(e,t,n)=>(e[n++]=t,e[n++]=t>>>8,e[n++]=t>>>16,e[n++]=t>>>24,n),makeBufferParser:a,bufferParser:a(),readString:(e,t,n,i)=>{"number"==typeof n&&(i=n,n=void 0),void 0===t&&(t=0);const a=e.length-t;if(t<0||t>=e.length||a<4)return;const c=r(e,t);if(a<4+c||"number"==typeof i&&c>i)return;const l=(t+=4)+c;return e._pos=l,n?Buffer.isBuffer(n)?s(e,n,t,l):e.utf8Slice(t,l):o(e,t,l)},sigSSHToASN1:(t,n)=>{switch(n){case"ssh-dss":{if(t.length>40)return t;const n=new e.Writer;n.startSequence();let i=t.slice(0,20),r=t.slice(20);if(128&i[0]){const e=Buffer.allocUnsafe(21);e[0]=0,i.copy(e,1),i=e}else 0!==i[0]||128&i[1]||(i=i.slice(1));if(128&r[0]){const e=Buffer.allocUnsafe(21);e[0]=0,r.copy(e,1),r=e}else 0!==r[0]||128&r[1]||(r=r.slice(1));return n.writeBuffer(i,e.Integer),n.writeBuffer(r,e.Integer),n.endSequence(),n.buffer}case"ecdsa-sha2-nistp256":case"ecdsa-sha2-nistp384":case"ecdsa-sha2-nistp521":{u.init(t,0);const n=u.readString(),i=u.readString();if(u.clear(),void 0===n||void 0===i)return;const r=new e.Writer;return r.startSequence(),r.writeBuffer(n,e.Integer),r.writeBuffer(i,e.Integer),r.endSequence(),r.buffer}default:return t}},convertSignature:(t,n)=>{switch(n){case"ssh-dss":{if(t.length<=40)return t;const n=new e.Reader(t);n.readSequence();let i=n.readString(e.Integer,!0),r=n.readString(e.Integer,!0),o=0,a=0;if(i.length<20){const e=Buffer.allocUnsafe(20);e.set(i,1),i=e,i[0]=0}if(r.length<20){const e=Buffer.allocUnsafe(20);e.set(r,1),r=e,r[0]=0}i.length>20&&0===i[0]&&(o=1),r.length>20&&0===r[0]&&(a=1);const c=Buffer.allocUnsafe(i.length-o+(r.length-a));return s(i,c,o,i.length,0),s(r,c,a,r.length,i.length-o),c}case"ecdsa-sha2-nistp256":case"ecdsa-sha2-nistp384":case"ecdsa-sha2-nistp521":{if(0===t[0])return t;const n=new e.Reader(t);n.readSequence();const i=n.readString(e.Integer,!0),r=n.readString(e.Integer,!0);if(null===i||null===r)return;const s=Buffer.allocUnsafe(4+i.length+4+r.length);return l(s,i.length,0),s.set(i,4),l(s,r.length,4+i.length),s.set(r,8+i.length),s}}return t},sendPacket:(e,t,n)=>n||void 0===e._kexinit?(e._cipher.encrypt(t),!0):(void 0===e._queue&&(e._queue=[]),e._queue.push(t),e._debug&&e._debug("Outbound: ... packet queued"),!1)},re}var ue,pe,de,he={exports:{}};function fe(){return ue||(ue=1,function(e){var t,n=(t="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(t=t||__filename),function(e){var n,s,o;e=e||{},n||(n=void 0!==e?e:{}),n.ready=new Promise(function(e,t){s=e,o=t});var a,c={};for(a in n)n.hasOwnProperty(a)&&(c[a]=n[a]);var l,u,p,d,h,f="object"==typeof window,m="function"==typeof importScripts,g="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,_="";g?(_=m?i.dirname(_)+"/":__dirname+"/",l=function(e,t){var n=Q(e);return n?t?n:n.toString():(d||(d=r),h||(h=i),e=h.normalize(e),d.readFileSync(e,t?null:"utf8"))},p=function(e){return(e=l(e,!0)).buffer||(e=new Uint8Array(e)),E(e.buffer),e},u=function(e,t,n){var s=Q(e);s&&t(s),d||(d=r),h||(h=i),e=h.normalize(e),d.readFile(e,function(e,i){e?n(e):t(i.buffer)})},1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),n.inspect=function(){return"[Emscripten Module object]"}):(f||m)&&(m?_=self.location.href:"undefined"!=typeof document&&document.currentScript&&(_=document.currentScript.src),t&&(_=t),_=0!==_.indexOf("blob:")?_.substr(0,_.lastIndexOf("/")+1):"",l=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText}catch(r){if(e=Q(e)){t=[];for(var n=0;n<e.length;n++){var i=e[n];255<i&&(i&=255),t.push(String.fromCharCode(i))}return t.join("")}throw r}},m&&(p=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}catch(t){if(e=Q(e))return e;throw t}}),u=function(e,t,n){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=function(){if(200==i.status||0==i.status&&i.response)t(i.response);else{var r=Q(e);r?t(r.buffer):n()}},i.onerror=n,i.send(null)}),n.print||console.log.bind(console);var b,y=n.printErr||console.warn.bind(console);for(a in c)c.hasOwnProperty(a)&&(n[a]=c[a]);c=null,n.wasmBinary&&(b=n.wasmBinary),n.noExitRuntime,"object"!=typeof WebAssembly&&U("no native wasm support detected");var v,A=!1;function E(e,t){e||U("Assertion failed: "+t)}function w(e){var t=n["_"+e];return E(t,"Cannot call unknown function "+e+", make sure it is exported"),t}var x,S,I,k="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function C(){var e=v.buffer;x=e,n.HEAP8=S=new Int8Array(e),n.HEAP16=new Int16Array(e),n.HEAP32=new Int32Array(e),n.HEAPU8=I=new Uint8Array(e),n.HEAPU16=new Uint16Array(e),n.HEAPU32=new Uint32Array(e),n.HEAPF32=new Float32Array(e),n.HEAPF64=new Float64Array(e)}var R,B=[],T=[],O=[];function N(){var e=n.preRun.shift();B.unshift(e)}var L=0,P=null;function U(e){throw n.onAbort&&n.onAbort(e),y(e),A=!0,e=new WebAssembly.RuntimeError("abort("+e+"). Build with -s ASSERTIONS=1 for more info."),o(e),e}n.preloadedImages={},n.preloadedAudios={};var D,M="data:application/octet-stream;base64,";if(!(D="data:application/octet-stream;base64,AGFzbQEAAAABIAZgAX8Bf2ADf39/AGABfwBgAABgAAF/YAZ/f39/f38AAgcBAWEBYQAAAwsKAAEDAQAAAgQFAgQFAXABAQEFBwEBgAKAgAIGCQF/AUGAjMACCwclCQFiAgABYwADAWQACQFlAAgBZgAHAWcABgFoAAUBaQAKAWoBAAqGTQpPAQJ/QYAIKAIAIgEgAEEDakF8cSICaiEAAkAgAkEAIAAgAU0bDQAgAD8AQRB0SwRAIAAQAEUNAQtBgAggADYCACABDwtBhAhBMDYCAEF/C4wFAg5+Cn8gACgCJCEUIAAoAiAhFSAAKAIcIREgACgCGCESIAAoAhQhEyACQRBPBEAgAC0ATEVBGHQhFyAAKAIEIhZBBWytIQ8gACgCCCIYQQVsrSENIAAoAgwiGUEFbK0hCyAAKAIQIhpBBWytIQkgADUCACEIIBqtIRAgGa0hDiAYrSEMIBatIQoDQCASIAEtAAMiEiABLQAEQQh0ciABLQAFQRB0ciABLQAGIhZBGHRyQQJ2Qf///x9xaq0iAyAOfiABLwAAIAEtAAJBEHRyIBNqIBJBGHRBgICAGHFqrSIEIBB+fCARIAEtAAdBCHQgFnIgAS0ACEEQdHIgAS0ACSIRQRh0ckEEdkH///8fcWqtIgUgDH58IAEtAApBCHQgEXIgAS0AC0EQdHIgAS0ADEEYdHJBBnYgFWqtIgYgCn58IBQgF2ogAS8ADSABLQAPQRB0cmqtIgcgCH58IAMgDH4gBCAOfnwgBSAKfnwgBiAIfnwgByAJfnwgAyAKfiAEIAx+fCAFIAh+fCAGIAl+fCAHIAt+fCADIAh+IAQgCn58IAUgCX58IAYgC358IAcgDX58IAMgCX4gBCAIfnwgBSALfnwgBiANfnwgByAPfnwiA0IaiEL/////D4N8IgRCGohC/////w+DfCIFQhqIQv////8Pg3wiBkIaiEL/////D4N8IgdCGoinQQVsIAOnQf///x9xaiITQRp2IASnQf///x9xaiESIAWnQf///x9xIREgBqdB////H3EhFSAHp0H///8fcSEUIBNB////H3EhEyABQRBqIQEgAkEQayICQQ9LDQALCyAAIBQ2AiQgACAVNgIgIAAgETYCHCAAIBI2AhggACATNgIUCwMAAQu2BAEGfwJAIAAoAjgiBARAIABBPGohBQJAIAJBECAEayIDIAIgA0kbIgZFDQAgBkEDcSEHAkAgBkEBa0EDSQRAQQAhAwwBCyAGQXxxIQhBACEDA0AgBSADIARqaiABIANqLQAAOgAAIAUgA0EBciIEIAAoAjhqaiABIARqLQAAOgAAIAUgA0ECciIEIAAoAjhqaiABIARqLQAAOgAAIAUgA0EDciIEIAAoAjhqaiABIARqLQAAOgAAIANBBGohAyAAKAI4IQQgCEEEayIIDQALCyAHRQ0AA0AgBSADIARqaiABIANqLQAAOgAAIANBAWohAyAAKAI4IQQgB0EBayIHDQALCyAAIAQgBmoiAzYCOCADQRBJDQEgACAFQRAQAiAAQQA2AjggAiAGayECIAEgBmohAQsgAkEQTwRAIAAgASACQXBxIgMQAiACQQ9xIQIgASADaiEBCyACRQ0AIAJBA3EhBCAAQTxqIQVBACEDIAJBAWtBA08EQCACQXxxIQcDQCAFIAAoAjggA2pqIAEgA2otAAA6AAAgBSADQQFyIgYgACgCOGpqIAEgBmotAAA6AAAgBSADQQJyIgYgACgCOGpqIAEgBmotAAA6AAAgBSADQQNyIgYgACgCOGpqIAEgBmotAAA6AAAgA0EEaiEDIAdBBGsiBw0ACwsgBARAA0AgBSAAKAI4IANqaiABIANqLQAAOgAAIANBAWohAyAEQQFrIgQNAAsLIAAgACgCOCACajYCOAsLoS0BDH8jAEEQayIMJAACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAEH0AU0EQEGICCgCACIFQRAgAEELakF4cSAAQQtJGyIIQQN2IgJ2IgFBA3EEQCABQX9zQQFxIAJqIgNBA3QiAUG4CGooAgAiBEEIaiEAAkAgBCgCCCICIAFBsAhqIgFGBEBBiAggBUF+IAN3cTYCAAwBCyACIAE2AgwgASACNgIICyAEIANBA3QiAUEDcjYCBCABIARqIgEgASgCBEEBcjYCBAwNCyAIQZAIKAIAIgpNDQEgAQRAAkBBAiACdCIAQQAgAGtyIAEgAnRxIgBBACAAa3FBAWsiACAAQQx2QRBxIgJ2IgFBBXZBCHEiACACciABIAB2IgFBAnZBBHEiAHIgASAAdiIBQQF2QQJxIgByIAEgAHYiAUEBdkEBcSIAciABIAB2aiIDQQN0IgBBuAhqKAIAIgQoAggiASAAQbAIaiIARgRAQYgIIAVBfiADd3EiBTYCAAwBCyABIAA2AgwgACABNgIICyAEQQhqIQAgBCAIQQNyNgIEIAQgCGoiAiADQQN0IgEgCGsiA0EBcjYCBCABIARqIAM2AgAgCgRAIApBA3YiAUEDdEGwCGohB0GcCCgCACEEAn8gBUEBIAF0IgFxRQRAQYgIIAEgBXI2AgAgBwwBCyAHKAIICyEBIAcgBDYCCCABIAQ2AgwgBCAHNgIMIAQgATYCCAtBnAggAjYCAEGQCCADNgIADA0LQYwIKAIAIgZFDQEgBkEAIAZrcUEBayIAIABBDHZBEHEiAnYiAUEFdkEIcSIAIAJyIAEgAHYiAUECdkEEcSIAciABIAB2IgFBAXZBAnEiAHIgASAAdiIBQQF2QQFxIgByIAEgAHZqQQJ0QbgKaigCACIBKAIEQXhxIAhrIQMgASECA0ACQCACKAIQIgBFBEAgAigCFCIARQ0BCyAAKAIEQXhxIAhrIgIgAyACIANJIgIbIQMgACABIAIbIQEgACECDAELCyABIAhqIgkgAU0NAiABKAIYIQsgASABKAIMIgRHBEAgASgCCCIAQZgIKAIASRogACAENgIMIAQgADYCCAwMCyABQRRqIgIoAgAiAEUEQCABKAIQIgBFDQQgAUEQaiECCwNAIAIhByAAIgRBFGoiAigCACIADQAgBEEQaiECIAQoAhAiAA0ACyAHQQA2AgAMCwtBfyEIIABBv39LDQAgAEELaiIAQXhxIQhBjAgoAgAiCUUNAEEAIAhrIQMCQAJAAkACf0EAIAhBgAJJDQAaQR8gCEH///8HSw0AGiAAQQh2IgAgAEGA/j9qQRB2QQhxIgJ0IgAgAEGA4B9qQRB2QQRxIgF0IgAgAEGAgA9qQRB2QQJxIgB0QQ92IAEgAnIgAHJrIgBBAXQgCCAAQRVqdkEBcXJBHGoLIgVBAnRBuApqKAIAIgJFBEBBACEADAELQQAhACAIQQBBGSAFQQF2ayAFQR9GG3QhAQNAAkAgAigCBEF4cSAIayIHIANPDQAgAiEEIAciAw0AQQAhAyACIQAMAwsgACACKAIUIgcgByACIAFBHXZBBHFqKAIQIgJGGyAAIAcbIQAgAUEBdCEBIAINAAsLIAAgBHJFBEBBACEEQQIgBXQiAEEAIABrciAJcSIARQ0DIABBACAAa3FBAWsiACAAQQx2QRBxIgJ2IgFBBXZBCHEiACACciABIAB2IgFBAnZBBHEiAHIgASAAdiIBQQF2QQJxIgByIAEgAHYiAUEBdkEBcSIAciABIAB2akECdEG4CmooAgAhAAsgAEUNAQsDQCAAKAIEQXhxIAhrIgEgA0khAiABIAMgAhshAyAAIAQgAhshBCAAKAIQIgEEfyABBSAAKAIUCyIADQALCyAERQ0AIANBkAgoAgAgCGtPDQAgBCAIaiIGIARNDQEgBCgCGCEFIAQgBCgCDCIBRwRAIAQoAggiAEGYCCgCAEkaIAAgATYCDCABIAA2AggMCgsgBEEUaiICKAIAIgBFBEAgBCgCECIARQ0EIARBEGohAgsDQCACIQcgACIBQRRqIgIoAgAiAA0AIAFBEGohAiABKAIQIgANAAsgB0EANgIADAkLIAhBkAgoAgAiAk0EQEGcCCgCACEDAkAgAiAIayIBQRBPBEBBkAggATYCAEGcCCADIAhqIgA2AgAgACABQQFyNgIEIAIgA2ogATYCACADIAhBA3I2AgQMAQtBnAhBADYCAEGQCEEANgIAIAMgAkEDcjYCBCACIANqIgAgACgCBEEBcjYCBAsgA0EIaiEADAsLIAhBlAgoAgAiBkkEQEGUCCAGIAhrIgE2AgBBoAhBoAgoAgAiAiAIaiIANgIAIAAgAUEBcjYCBCACIAhBA3I2AgQgAkEIaiEADAsLQQAhACAIQS9qIgkCf0HgCygCAARAQegLKAIADAELQewLQn83AgBB5AtCgKCAgICABDcCAEHgCyAMQQxqQXBxQdiq1aoFczYCAEH0C0EANgIAQcQLQQA2AgBBgCALIgFqIgVBACABayIHcSICIAhNDQpBwAsoAgAiBARAQbgLKAIAIgMgAmoiASADTQ0LIAEgBEsNCwtBxAstAABBBHENBQJAAkBBoAgoAgAiAwRAQcgLIQADQCADIAAoAgAiAU8EQCABIAAoAgRqIANLDQMLIAAoAggiAA0ACwtBABABIgFBf0YNBiACIQVB5AsoAgAiA0EBayIAIAFxBEAgAiABayAAIAFqQQAgA2txaiEFCyAFIAhNDQYgBUH+////B0sNBkHACygCACIEBEBBuAsoAgAiAyAFaiIAIANNDQcgACAESw0HCyAFEAEiACABRw0BDAgLIAUgBmsgB3EiBUH+////B0sNBSAFEAEiASAAKAIAIAAoAgRqRg0EIAEhAAsCQCAAQX9GDQAgCEEwaiAFTQ0AQegLKAIAIgEgCSAFa2pBACABa3EiAUH+////B0sEQCAAIQEMCAsgARABQX9HBEAgASAFaiEFIAAhAQwIC0EAIAVrEAEaDAULIAAiAUF/Rw0GDAQLAAtBACEEDAcLQQAhAQwFCyABQX9HDQILQcQLQcQLKAIAQQRyNgIACyACQf7///8HSw0BIAIQASEBQQAQASEAIAFBf0YNASAAQX9GDQEgACABTQ0BIAAgAWsiBSAIQShqTQ0BC0G4C0G4CygCACAFaiIANgIAQbwLKAIAIABJBEBBvAsgADYCAAsCQAJAAkBBoAgoAgAiBwRAQcgLIQADQCABIAAoAgAiAyAAKAIEIgJqRg0CIAAoAggiAA0ACwwCC0GYCCgCACIAQQAgACABTRtFBEBBmAggATYCAAtBACEAQcwLIAU2AgBByAsgATYCAEGoCEF/NgIAQawIQeALKAIANgIAQdQLQQA2AgADQCAAQQN0IgNBuAhqIANBsAhqIgI2AgAgA0G8CGogAjYCACAAQQFqIgBBIEcNAAtBlAggBUEoayIDQXggAWtBB3FBACABQQhqQQdxGyIAayICNgIAQaAIIAAgAWoiADYCACAAIAJBAXI2AgQgASADakEoNgIEQaQIQfALKAIANgIADAILIAAtAAxBCHENACADIAdLDQAgASAHTQ0AIAAgAiAFajYCBEGgCCAHQXggB2tBB3FBACAHQQhqQQdxGyIAaiICNgIAQZQIQZQIKAIAIAVqIgEgAGsiADYCACACIABBAXI2AgQgASAHakEoNgIEQaQIQfALKAIANgIADAELQZgIKAIAIAFLBEBBmAggATYCAAsgASAFaiECQcgLIQACQAJAAkACQAJAAkADQCACIAAoAgBHBEAgACgCCCIADQEMAgsLIAAtAAxBCHFFDQELQcgLIQADQCAHIAAoAgAiAk8EQCACIAAoAgRqIgQgB0sNAwsgACgCCCEADAALAAsgACABNgIAIAAgACgCBCAFajYCBCABQXggAWtBB3FBACABQQhqQQdxG2oiCSAIQQNyNgIEIAJBeCACa0EHcUEAIAJBCGpBB3EbaiIFIAggCWoiBmshAiAFIAdGBEBBoAggBjYCAEGUCEGUCCgCACACaiIANgIAIAYgAEEBcjYCBAwDCyAFQZwIKAIARgRAQZwIIAY2AgBBkAhBkAgoAgAgAmoiADYCACAGIABBAXI2AgQgACAGaiAANgIADAMLIAUoAgQiAEEDcUEBRgRAIABBeHEhBwJAIABB/wFNBEAgBSgCCCIDIABBA3YiAEEDdEGwCGpGGiADIAUoAgwiAUYEQEGICEGICCgCAEF+IAB3cTYCAAwCCyADIAE2AgwgASADNgIIDAELIAUoAhghCAJAIAUgBSgCDCIBRwRAIAUoAggiACABNgIMIAEgADYCCAwBCwJAIAVBFGoiACgCACIDDQAgBUEQaiIAKAIAIgMNAEEAIQEMAQsDQCAAIQQgAyIBQRRqIgAoAgAiAw0AIAFBEGohACABKAIQIgMNAAsgBEEANgIACyAIRQ0AAkAgBSAFKAIcIgNBAnRBuApqIgAoAgBGBEAgACABNgIAIAENAUGMCEGMCCgCAEF+IAN3cTYCAAwCCyAIQRBBFCAIKAIQIAVGG2ogATYCACABRQ0BCyABIAg2AhggBSgCECIABEAgASAANgIQIAAgATYCGAsgBSgCFCIARQ0AIAEgADYCFCAAIAE2AhgLIAUgB2ohBSACIAdqIQILIAUgBSgCBEF+cTYCBCAGIAJBAXI2AgQgAiAGaiACNgIAIAJB/wFNBEAgAkEDdiIAQQN0QbAIaiECAn9BiAgoAgAiAUEBIAB0IgBxRQRAQYgIIAAgAXI2AgAgAgwBCyACKAIICyEAIAIgBjYCCCAAIAY2AgwgBiACNgIMIAYgADYCCAwDC0EfIQAgAkH///8HTQRAIAJBCHYiACAAQYD+P2pBEHZBCHEiA3QiACAAQYDgH2pBEHZBBHEiAXQiACAAQYCAD2pBEHZBAnEiAHRBD3YgASADciAAcmsiAEEBdCACIABBFWp2QQFxckEcaiEACyAGIAA2AhwgBkIANwIQIABBAnRBuApqIQQCQEGMCCgCACIDQQEgAHQiAXFFBEBBjAggASADcjYCACAEIAY2AgAgBiAENgIYDAELIAJBAEEZIABBAXZrIABBH0YbdCEAIAQoAgAhAQNAIAEiAygCBEF4cSACRg0DIABBHXYhASAAQQF0IQAgAyABQQRxaiIEKAIQIgENAAsgBCAGNgIQIAYgAzYCGAsgBiAGNgIMIAYgBjYCCAwCC0GUCCAFQShrIgNBeCABa0EHcUEAIAFBCGpBB3EbIgBrIgI2AgBBoAggACABaiIANgIAIAAgAkEBcjYCBCABIANqQSg2AgRBpAhB8AsoAgA2AgAgByAEQScgBGtBB3FBACAEQSdrQQdxG2pBL2siACAAIAdBEGpJGyICQRs2AgQgAkHQCykCADcCECACQcgLKQIANwIIQdALIAJBCGo2AgBBzAsgBTYCAEHICyABNgIAQdQLQQA2AgAgAkEYaiEAA0AgAEEHNgIEIABBCGohASAAQQRqIQAgASAESQ0ACyACIAdGDQMgAiACKAIEQX5xNgIEIAcgAiAHayIEQQFyNgIEIAIgBDYCACAEQf8BTQRAIARBA3YiAEEDdEGwCGohAgJ/QYgIKAIAIgFBASAAdCIAcUUEQEGICCAAIAFyNgIAIAIMAQsgAigCCAshACACIAc2AgggACAHNgIMIAcgAjYCDCAHIAA2AggMBAtBHyEAIAdCADcCECAEQf///wdNBEAgBEEIdiIAIABBgP4/akEQdkEIcSICdCIAIABBgOAfakEQdkEEcSIBdCIAIABBgIAPakEQdkECcSIAdEEPdiABIAJyIAByayIAQQF0IAQgAEEVanZBAXFyQRxqIQALIAcgADYCHCAAQQJ0QbgKaiEDAkBBjAgoAgAiAkEBIAB0IgFxRQRAQYwIIAEgAnI2AgAgAyAHNgIAIAcgAzYCGAwBCyAEQQBBGSAAQQF2ayAAQR9GG3QhACADKAIAIQEDQCABIgIoAgRBeHEgBEYNBCAAQR12IQEgAEEBdCEAIAIgAUEEcWoiAygCECIBDQALIAMgBzYCECAHIAI2AhgLIAcgBzYCDCAHIAc2AggMAwsgAygCCCIAIAY2AgwgAyAGNgIIIAZBADYCGCAGIAM2AgwgBiAANgIICyAJQQhqIQAMBQsgAigCCCIAIAc2AgwgAiAHNgIIIAdBADYCGCAHIAI2AgwgByAANgIIC0GUCCgCACIAIAhNDQBBlAggACAIayIBNgIAQaAIQaAIKAIAIgIgCGoiADYCACAAIAFBAXI2AgQgAiAIQQNyNgIEIAJBCGohAAwDC0GECEEwNgIAQQAhAAwCCwJAIAVFDQACQCAEKAIcIgJBAnRBuApqIgAoAgAgBEYEQCAAIAE2AgAgAQ0BQYwIIAlBfiACd3EiCTYCAAwCCyAFQRBBFCAFKAIQIARGG2ogATYCACABRQ0BCyABIAU2AhggBCgCECIABEAgASAANgIQIAAgATYCGAsgBCgCFCIARQ0AIAEgADYCFCAAIAE2AhgLAkAgA0EPTQRAIAQgAyAIaiIAQQNyNgIEIAAgBGoiACAAKAIEQQFyNgIEDAELIAQgCEEDcjYCBCAGIANBAXI2AgQgAyAGaiADNgIAIANB/wFNBEAgA0EDdiIAQQN0QbAIaiECAn9BiAgoAgAiAUEBIAB0IgBxRQRAQYgIIAAgAXI2AgAgAgwBCyACKAIICyEAIAIgBjYCCCAAIAY2AgwgBiACNgIMIAYgADYCCAwBC0EfIQAgA0H///8HTQRAIANBCHYiACAAQYD+P2pBEHZBCHEiAnQiACAAQYDgH2pBEHZBBHEiAXQiACAAQYCAD2pBEHZBAnEiAHRBD3YgASACciAAcmsiAEEBdCADIABBFWp2QQFxckEcaiEACyAGIAA2AhwgBkIANwIQIABBAnRBuApqIQICQAJAIAlBASAAdCIBcUUEQEGMCCABIAlyNgIAIAIgBjYCACAGIAI2AhgMAQsgA0EAQRkgAEEBdmsgAEEfRht0IQAgAigCACEIA0AgCCIBKAIEQXhxIANGDQIgAEEddiECIABBAXQhACABIAJBBHFqIgIoAhAiCA0ACyACIAY2AhAgBiABNgIYCyAGIAY2AgwgBiAGNgIIDAELIAEoAggiACAGNgIMIAEgBjYCCCAGQQA2AhggBiABNgIMIAYgADYCCAsgBEEIaiEADAELAkAgC0UNAAJAIAEoAhwiAkECdEG4CmoiACgCACABRgRAIAAgBDYCACAEDQFBjAggBkF+IAJ3cTYCAAwCCyALQRBBFCALKAIQIAFGG2ogBDYCACAERQ0BCyAEIAs2AhggASgCECIABEAgBCAANgIQIAAgBDYCGAsgASgCFCIARQ0AIAQgADYCFCAAIAQ2AhgLAkAgA0EPTQRAIAEgAyAIaiIAQQNyNgIEIAAgAWoiACAAKAIEQQFyNgIEDAELIAEgCEEDcjYCBCAJIANBAXI2AgQgAyAJaiADNgIAIAoEQCAKQQN2IgBBA3RBsAhqIQRBnAgoAgAhAgJ/QQEgAHQiACAFcUUEQEGICCAAIAVyNgIAIAQMAQsgBCgCCAshACAEIAI2AgggACACNgIMIAIgBDYCDCACIAA2AggLQZwIIAk2AgBBkAggAzYCAAsgAUEIaiEACyAMQRBqJAAgAAsQACMAIABrQXBxIgAkACAACwYAIAAkAAsEACMAC4AJAgh/BH4jAEGQAWsiBiQAIAYgBS0AA0EYdEGAgIAYcSAFLwAAIAUtAAJBEHRycjYCACAGIAUoAANBAnZBg/7/H3E2AgQgBiAFKAAGQQR2Qf+B/x9xNgIIIAYgBSgACUEGdkH//8AfcTYCDCAFLwANIQggBS0ADyEJIAZCADcCFCAGQgA3AhwgBkEANgIkIAYgCCAJQRB0QYCAPHFyNgIQIAYgBSgAEDYCKCAGIAUoABQ2AiwgBiAFKAAYNgIwIAUoABwhBSAGQQA6AEwgBkEANgI4IAYgBTYCNCAGIAEgAhAEIAQEQCAGIAMgBBAECyAGKAI4IgEEQCAGQTxqIgIgAWpBAToAACABQQFqQQ9NBEAgASAGakE9aiEEAkBBDyABayIDRQ0AIAMgBGoiAUEBa0EAOgAAIARBADoAACADQQNJDQAgAUECa0EAOgAAIARBADoAASABQQNrQQA6AAAgBEEAOgACIANBB0kNACABQQRrQQA6AAAgBEEAOgADIANBCUkNACAEQQAgBGtBA3EiAWoiBEEANgIAIAQgAyABa0F8cSIBaiIDQQRrQQA2AgAgAUEJSQ0AIARBADYCCCAEQQA2AgQgA0EIa0EANgIAIANBDGtBADYCACABQRlJDQAgBEEANgIYIARBADYCFCAEQQA2AhAgBEEANgIMIANBEGtBADYCACADQRRrQQA2AgAgA0EYa0EANgIAIANBHGtBADYCACABIARBBHFBGHIiAWsiA0EgSQ0AIAEgBGohAQNAIAFCADcDGCABQgA3AxAgAUIANwMIIAFCADcDACABQSBqIQEgA0EgayIDQR9LDQALCwsgBkEBOgBMIAYgAkEQEAILIAY1AjQhECAGNQIwIREgBjUCLCEOIAAgBjUCKCAGKAIkIAYoAiAgBigCHCAGKAIYIgNBGnZqIgJBGnZqIgFBGnZqIgtBgICAYHIgAUH///8fcSINIAJB////H3EiCCAGKAIUIAtBGnZBBWxqIgFB////H3EiCUEFaiIFQRp2IANB////H3EgAUEadmoiA2oiAUEadmoiAkEadmoiBEEadmoiDEEfdSIHIANxIAEgDEEfdkEBayIDQf///x9xIgpxciIBQRp0IAUgCnEgByAJcXJyrXwiDzwAACAAIA9CGIg8AAMgACAPQhCIPAACIAAgD0IIiDwAASAAIA4gByAIcSACIApxciICQRR0IAFBBnZyrXwgD0IgiHwiDjwABCAAIA5CGIg8AAcgACAOQhCIPAAGIAAgDkIIiDwABSAAIBEgByANcSAEIApxciIBQQ50IAJBDHZyrXwgDkIgiHwiDjwACCAAIA5CGIg8AAsgACAOQhCIPAAKIAAgDkIIiDwACSAAIBAgAyAMcSAHIAtxckEIdCABQRJ2cq18IA5CIIh8Ig48AAwgACAOQhiIPAAPIAAgDkIQiDwADiAAIA5CCIg8AA0gBkIANwIwIAZCADcCKCAGQgA3AiAgBkIANwIYIAZCADcCECAGQgA3AgggBkIANwIAIAZBkAFqJAALpwwBB38CQCAARQ0AIABBCGsiAyAAQQRrKAIAIgFBeHEiAGohBQJAIAFBAXENACABQQNxRQ0BIAMgAygCACIBayIDQZgIKAIASQ0BIAAgAWohACADQZwIKAIARwRAIAFB/wFNBEAgAygCCCICIAFBA3YiBEEDdEGwCGpGGiACIAMoAgwiAUYEQEGICEGICCgCAEF+IAR3cTYCAAwDCyACIAE2AgwgASACNgIIDAILIAMoAhghBgJAIAMgAygCDCIBRwRAIAMoAggiAiABNgIMIAEgAjYCCAwBCwJAIANBFGoiAigCACIEDQAgA0EQaiICKAIAIgQNAEEAIQEMAQsDQCACIQcgBCIBQRRqIgIoAgAiBA0AIAFBEGohAiABKAIQIgQNAAsgB0EANgIACyAGRQ0BAkAgAyADKAIcIgJBAnRBuApqIgQoAgBGBEAgBCABNgIAIAENAUGMCEGMCCgCAEF+IAJ3cTYCAAwDCyAGQRBBFCAGKAIQIANGG2ogATYCACABRQ0CCyABIAY2AhggAygCECICBEAgASACNgIQIAIgATYCGAsgAygCFCICRQ0BIAEgAjYCFCACIAE2AhgMAQsgBSgCBCIBQQNxQQNHDQBBkAggADYCACAFIAFBfnE2AgQgAyAAQQFyNgIEIAAgA2ogADYCAA8LIAMgBU8NACAFKAIEIgFBAXFFDQACQCABQQJxRQRAIAVBoAgoAgBGBEBBoAggAzYCAEGUCEGUCCgCACAAaiIANgIAIAMgAEEBcjYCBCADQZwIKAIARw0DQZAIQQA2AgBBnAhBADYCAA8LIAVBnAgoAgBGBEBBnAggAzYCAEGQCEGQCCgCACAAaiIANgIAIAMgAEEBcjYCBCAAIANqIAA2AgAPCyABQXhxIABqIQACQCABQf8BTQRAIAUoAggiAiABQQN2IgRBA3RBsAhqRhogAiAFKAIMIgFGBEBBiAhBiAgoAgBBfiAEd3E2AgAMAgsgAiABNgIMIAEgAjYCCAwBCyAFKAIYIQYCQCAFIAUoAgwiAUcEQCAFKAIIIgJBmAgoAgBJGiACIAE2AgwgASACNgIIDAELAkAgBUEUaiICKAIAIgQNACAFQRBqIgIoAgAiBA0AQQAhAQwBCwNAIAIhByAEIgFBFGoiAigCACIEDQAgAUEQaiECIAEoAhAiBA0ACyAHQQA2AgALIAZFDQACQCAFIAUoAhwiAkECdEG4CmoiBCgCAEYEQCAEIAE2AgAgAQ0BQYwIQYwIKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiABNgIAIAFFDQELIAEgBjYCGCAFKAIQIgIEQCABIAI2AhAgAiABNgIYCyAFKAIUIgJFDQAgASACNgIUIAIgATYCGAsgAyAAQQFyNgIEIAAgA2ogADYCACADQZwIKAIARw0BQZAIIAA2AgAPCyAFIAFBfnE2AgQgAyAAQQFyNgIEIAAgA2ogADYCAAsgAEH/AU0EQCAAQQN2IgFBA3RBsAhqIQACf0GICCgCACICQQEgAXQiAXFFBEBBiAggASACcjYCACAADAELIAAoAggLIQIgACADNgIIIAIgAzYCDCADIAA2AgwgAyACNgIIDwtBHyECIANCADcCECAAQf///wdNBEAgAEEIdiIBIAFBgP4/akEQdkEIcSIBdCICIAJBgOAfakEQdkEEcSICdCIEIARBgIAPakEQdkECcSIEdEEPdiABIAJyIARyayIBQQF0IAAgAUEVanZBAXFyQRxqIQILIAMgAjYCHCACQQJ0QbgKaiEBAkACQAJAQYwIKAIAIgRBASACdCIHcUUEQEGMCCAEIAdyNgIAIAEgAzYCACADIAE2AhgMAQsgAEEAQRkgAkEBdmsgAkEfRht0IQIgASgCACEBA0AgASIEKAIEQXhxIABGDQIgAkEddiEBIAJBAXQhAiAEIAFBBHFqIgdBEGooAgAiAQ0ACyAHIAM2AhAgAyAENgIYCyADIAM2AgwgAyADNgIIDAELIAQoAggiACADNgIMIAQgAzYCCCADQQA2AhggAyAENgIMIAMgADYCCAtBqAhBqAgoAgBBAWsiAEF/IAAbNgIACwsLCQEAQYEICwIGUA==").startsWith(M)){var H=D;D=n.locateFile?n.locateFile(H,_):_+H}function F(){var e=D;try{if(e==D&&b)return new Uint8Array(b);var t=Q(e);if(t)return t;if(p)return p(e);throw"both async and sync fetching of the wasm failed"}catch(e){U(e)}}function j(e){for(;0<e.length;){var t=e.shift();if("function"==typeof t)t(n);else{var i=t.m;"number"==typeof i?void 0===t.l?R.get(i)():R.get(i)(t.l):i(void 0===t.l?null:t.l)}}}var $="function"==typeof atob?atob:function(e){var t="",n=0;e=e.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n++)),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n++)),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n++)),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n++));i=i<<2|r>>4,r=(15&r)<<4|s>>2;var a=(3&s)<<6|o;t+=String.fromCharCode(i),64!==s&&(t+=String.fromCharCode(r)),64!==o&&(t+=String.fromCharCode(a))}while(n<e.length);return t};function Q(e){if(e.startsWith(M)){if(e=e.slice(M.length),"boolean"==typeof g&&g){var t=Buffer.from(e,"base64");t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}else try{var n=$(e),i=new Uint8Array(n.length);for(e=0;e<n.length;++e)i[e]=n.charCodeAt(e);t=i}catch(e){throw Error("Converting base64 string to bytes failed.")}return t}}var W={a:function(e){var t=I.length;if(2147483648<(e>>>=0))return!1;for(var n=1;4>=n;n*=2){var i=t*(1+.2/n);i=Math.min(i,e+100663296),0<(i=Math.max(e,i))%65536&&(i+=65536-i%65536);e:{try{v.grow(Math.min(2147483648,i)-x.byteLength+65535>>>16),C();var r=1;break e}catch(e){}r=void 0}if(r)return!0}return!1}};!function(){function e(e){n.asm=e.exports,v=n.asm.b,C(),R=n.asm.j,T.unshift(n.asm.c),L--,n.monitorRunDependencies&&n.monitorRunDependencies(L),0==L&&P&&(e=P,P=null,e())}function t(t){e(t.instance)}function i(e){return function(){if(!b&&(f||m)){if("function"==typeof fetch&&!D.startsWith("file://"))return fetch(D,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+D+"'";return e.arrayBuffer()}).catch(function(){return F()});if(u)return new Promise(function(e,t){u(D,function(t){e(new Uint8Array(t))},t)})}return Promise.resolve().then(function(){return F()})}().then(function(e){return WebAssembly.instantiate(e,r)}).then(e,function(e){y("failed to asynchronously prepare wasm: "+e),U(e)})}var r={a:W};if(L++,n.monitorRunDependencies&&n.monitorRunDependencies(L),n.instantiateWasm)try{return n.instantiateWasm(r,e)}catch(e){return y("Module.instantiateWasm callback failed with error: "+e),!1}(b||"function"!=typeof WebAssembly.instantiateStreaming||D.startsWith(M)||D.startsWith("file://")||"function"!=typeof fetch?i(t):fetch(D,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,r).then(t,function(e){return y("wasm streaming compile failed: "+e),y("falling back to ArrayBuffer instantiation"),i(t)})})).catch(o)}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.c).apply(null,arguments)},n._poly1305_auth=function(){return(n._poly1305_auth=n.asm.d).apply(null,arguments)};var q,Y=n.stackSave=function(){return(Y=n.stackSave=n.asm.e).apply(null,arguments)},G=n.stackRestore=function(){return(G=n.stackRestore=n.asm.f).apply(null,arguments)},K=n.stackAlloc=function(){return(K=n.stackAlloc=n.asm.g).apply(null,arguments)};function z(){function e(){if(!q&&(q=!0,n.calledRun=!0,!A)){if(j(T),s(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;){var e=n.postRun.shift();O.unshift(e)}j(O)}}if(!(0<L)){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)N();j(B),0<L||(n.setStatus?(n.setStatus("Running..."),setTimeout(function(){setTimeout(function(){n.setStatus("")},1),e()},1)):e())}}if(n._malloc=function(){return(n._malloc=n.asm.h).apply(null,arguments)},n._free=function(){return(n._free=n.asm.i).apply(null,arguments)},n.cwrap=function(e,t,n,i){var r=(n=n||[]).every(function(e){return"number"===e});return"string"!==t&&r&&!i?w(e):function(){return function(e,t,n,i){var r={string:function(e){var t=0;if(null!=e&&0!==e){var n=1+(e.length<<2),i=t=K(n),r=I;if(0<n){n=i+n-1;for(var s=0;s<e.length;++s){var o=e.charCodeAt(s);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++s)),127>=o){if(i>=n)break;r[i++]=o}else{if(2047>=o){if(i+1>=n)break;r[i++]=192|o>>6}else{if(65535>=o){if(i+2>=n)break;r[i++]=224|o>>12}else{if(i+3>=n)break;r[i++]=240|o>>18,r[i++]=128|o>>12&63}r[i++]=128|o>>6&63}r[i++]=128|63&o}}r[i]=0}}return t},array:function(e){var t=K(e.length);return S.set(e,t),t}},s=w(e),o=[];if(e=0,i)for(var a=0;a<i.length;a++){var c=r[n[a]];c?(0===e&&(e=Y()),o[a]=c(i[a])):o[a]=i[a]}return n=function(e){if("string"===t)if(e){for(var n=I,i=e+NaN,r=e;n[r]&&!(r>=i);)++r;if(16<r-e&&n.subarray&&k)e=k.decode(n.subarray(e,r));else{for(i="";e<r;){var s=n[e++];if(128&s){var o=63&n[e++];if(192==(224&s))i+=String.fromCharCode((31&s)<<6|o);else{var a=63&n[e++];65536>(s=224==(240&s)?(15&s)<<12|o<<6|a:(7&s)<<18|o<<12|a<<6|63&n[e++])?i+=String.fromCharCode(s):(s-=65536,i+=String.fromCharCode(55296|s>>10,56320|1023&s))}}else i+=String.fromCharCode(s)}e=i}}else e="";else e="boolean"===t?!!e:e;return e}(n=s.apply(null,o)),0!==e&&G(e),n}(e,t,n,arguments)}},P=function e(){q||z(),q||(P=e)},n.run=z,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);0<n.preInit.length;)n.preInit.pop()();return z(),e.ready});e.exports=n}(he)),he.exports}function me(){if(de)return pe;de=1;const{createCipheriv:e,createDecipheriv:t,createHmac:n,randomFillSync:i,timingSafeEqual:r}=o,{readUInt32BE:s,writeUInt32BE:a}=le(),c=Buffer[Symbol.species],l=2**32-1,u=Buffer.alloc(0),p=Buffer.alloc(4),d=new Map,h=35e3;let f,m,g,_,b,y,v;try{f=require("./crypto/build/Release/sshcrypto.node"),({AESGCMCipher:m,ChaChaPolyCipher:g,GenericCipher:_,AESGCMDecipher:b,ChaChaPolyDecipher:y,GenericDecipher:v}=f)}catch{}const A=(()=>{function e(e,t,n,i,r,s,o){return{sslName:e,blockLen:t,keyLen:n,ivLen:0!==i||1&o?i:t,authLen:r,discardLen:s,stream:!!(1&o)}}return{"chacha20-poly1305@openssh.com":e("chacha20",8,64,0,16,0,1),"aes128-gcm":e("aes-128-gcm",16,16,12,16,0,1),"aes256-gcm":e("aes-256-gcm",16,32,12,16,0,1),"aes128-gcm@openssh.com":e("aes-128-gcm",16,16,12,16,0,1),"aes256-gcm@openssh.com":e("aes-256-gcm",16,32,12,16,0,1),"aes128-cbc":e("aes-128-cbc",16,16,0,0,0,0),"aes192-cbc":e("aes-192-cbc",16,24,0,0,0,0),"aes256-cbc":e("aes-256-cbc",16,32,0,0,0,0),"rijndael-cbc@lysator.liu.se":e("aes-256-cbc",16,32,0,0,0,0),"3des-cbc":e("des-ede3-cbc",8,24,0,0,0,0),"blowfish-cbc":e("bf-cbc",8,16,0,0,0,0),"idea-cbc":e("idea-cbc",8,16,0,0,0,0),"cast128-cbc":e("cast-cbc",8,16,0,0,0,0),"aes128-ctr":e("aes-128-ctr",16,16,16,0,0,1),"aes192-ctr":e("aes-192-ctr",16,24,16,0,0,1),"aes256-ctr":e("aes-256-ctr",16,32,16,0,0,1),"3des-ctr":e("des-ede3",8,24,8,0,0,1),"blowfish-ctr":e("bf-ecb",8,16,8,0,0,1),"cast128-ctr":e("cast5-ecb",8,16,8,0,0,1),arcfour:e("rc4",8,16,0,0,1536,1),arcfour128:e("rc4",8,16,0,0,1536,1),arcfour256:e("rc4",8,32,0,0,1536,1),arcfour512:e("rc4",8,64,0,0,1536,1)}})(),E=(()=>{function e(e,t,n,i){return{sslName:e,len:t,actualLen:n,isETM:i}}return{"hmac-md5":e("md5",16,16,!1),"hmac-md5-96":e("md5",16,12,!1),"hmac-ripemd160":e("ripemd160",20,20,!1),"hmac-sha1":e("sha1",20,20,!1),"hmac-sha1-etm@openssh.com":e("sha1",20,20,!0),"hmac-sha1-96":e("sha1",20,12,!1),"hmac-sha2-256":e("sha256",32,32,!1),"hmac-sha2-256-etm@openssh.com":e("sha256",32,32,!0),"hmac-sha2-256-96":e("sha256",32,12,!1),"hmac-sha2-512":e("sha512",64,64,!1),"hmac-sha2-512-etm@openssh.com":e("sha512",64,64,!0),"hmac-sha2-512-96":e("sha512",64,12,!1)}})();const w=Buffer.alloc(32),x=Buffer.alloc(16);let S,I,k;class C{constructor(e){const t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._encKeyMain=t.cipherKey.slice(0,32),this._encKeyPktLen=t.cipherKey.slice(32),this._dead=!1}free(){this._dead=!0}allocPacket(e){let t=5+e,n=8-(t-4&7);n<4&&(n+=8),t+=n;const r=Buffer.allocUnsafe(t);return a(r,t-4,0),r[4]=n,i(r,5+e,n),r}encrypt(t){if(this._dead)return;x[0]=0,a(x,this.outSeqno,12);const n=e("chacha20",this._encKeyMain,x).update(w),i=e("chacha20",this._encKeyPktLen,x).update(t.slice(0,4));this._onWrite(i),x[0]=1;const r=e("chacha20",this._encKeyMain,x).update(t.slice(4));this._onWrite(r),k(I,i,i.length,r,r.length,n);const s=Buffer.allocUnsafe(16);s.set(new Uint8Array(S.HEAPU8.buffer,I,16),0),this._onWrite(s),this.outSeqno=this.outSeqno+1>>>0}}class R{constructor(e){const t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._instance=new g(t.cipherKey),this._dead=!1}free(){this._dead=!0,this._instance.free()}allocPacket(e){let t=5+e,n=8-(t-4&7);n<4&&(n+=8),t+=n;const r=Buffer.allocUnsafe(t+16);return a(r,t-4,0),r[4]=n,i(r,5+e,n),r}encrypt(e){this._dead||(this._instance.encrypt(e,this.outSeqno),this._onWrite(e),this.outSeqno=this.outSeqno+1>>>0)}}class B{constructor(e){const t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._encSSLName=t.cipherInfo.sslName,this._encKey=t.cipherKey,this._encIV=t.cipherIV,this._dead=!1}free(){this._dead=!0}allocPacket(e){let t=5+e,n=16-(t-4&15);n<4&&(n+=16),t+=n;const r=Buffer.allocUnsafe(t);return a(r,t-4,0),r[4]=n,i(r,5+e,n),r}encrypt(t){if(this._dead)return;const n=e(this._encSSLName,this._encKey,this._encIV);n.setAutoPadding(!1);const i=t.slice(0,4);n.setAAD(i),this._onWrite(i);const r=n.update(t.slice(4));this._onWrite(r);const s=n.final();s.length&&this._onWrite(s);const o=n.getAuthTag();this._onWrite(o),F(this._encIV),this.outSeqno=this.outSeqno+1>>>0}}class T{constructor(e){const t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._instance=new m(t.cipherInfo.sslName,t.cipherKey,t.cipherIV),this._dead=!1}free(){this._dead=!0,this._instance.free()}allocPacket(e){let t=5+e,n=16-(t-4&15);n<4&&(n+=16),t+=n;const r=Buffer.allocUnsafe(t+16);return a(r,t-4,0),r[4]=n,i(r,5+e,n),r}encrypt(e){this._dead||(this._instance.encrypt(e),this._onWrite(e),this.outSeqno=this.outSeqno+1>>>0)}}class O{constructor(t){const n=t.outbound;this.outSeqno=n.seqno,this._onWrite=n.onWrite,this._encBlockLen=n.cipherInfo.blockLen,this._cipherInstance=e(n.cipherInfo.sslName,n.cipherKey,n.cipherIV),this._macSSLName=n.macInfo.sslName,this._macKey=n.macKey,this._macActualLen=n.macInfo.actualLen,this._macETM=n.macInfo.isETM,this._aadLen=this._macETM?4:0,this._dead=!1;const i=n.cipherInfo.discardLen;if(i){let e=d.get(i);void 0===e&&(e=Buffer.alloc(i),d.set(i,e)),this._cipherInstance.update(e)}}free(){this._dead=!0}allocPacket(e){const t=this._encBlockLen;let n=5+e,r=t-(n-this._aadLen&t-1);r<4&&(r+=t),n+=r;const s=Buffer.allocUnsafe(n);return a(s,n-4,0),s[4]=r,i(s,5+e,r),s}encrypt(e){if(this._dead)return;let t;if(this._macETM){const i=new Uint8Array(e.buffer,e.byteOffset,4),r=this._cipherInstance.update(new Uint8Array(e.buffer,e.byteOffset+4,e.length-4));this._onWrite(i),this._onWrite(r),t=n(this._macSSLName,this._macKey),a(p,this.outSeqno,0),t.update(p),t.update(i),t.update(r)}else{const i=this._cipherInstance.update(e);this._onWrite(i),t=n(this._macSSLName,this._macKey),a(p,this.outSeqno,0),t.update(p),t.update(e)}let i=t.digest();i.length>this._macActualLen&&(i=i.slice(0,this._macActualLen)),this._onWrite(i),this.outSeqno=this.outSeqno+1>>>0}}class N{constructor(e){const t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._encBlockLen=t.cipherInfo.blockLen,this._macLen=t.macInfo.len,this._macActualLen=t.macInfo.actualLen,this._aadLen=t.macInfo.isETM?4:0,this._instance=new _(t.cipherInfo.sslName,t.cipherKey,t.cipherIV,t.macInfo.sslName,t.macKey,t.macInfo.isETM),this._dead=!1}free(){this._dead=!0,this._instance.free()}allocPacket(e){const t=this._encBlockLen;let n=5+e,r=t-(n-this._aadLen&t-1);r<4&&(r+=t),n+=r;const s=Buffer.allocUnsafe(n+this._macLen);return a(s,n-4,0),s[4]=r,i(s,5+e,r),s}encrypt(e){this._dead||(this._instance.encrypt(e,this.outSeqno),this._macActualLen<this._macLen&&(e=new c(e.buffer,e.byteOffset,e.length-(this._macLen-this._macActualLen))),this._onWrite(e),this.outSeqno=this.outSeqno+1>>>0)}}class L{constructor(e){const t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._decKeyMain=t.decipherKey.slice(0,32),this._decKeyPktLen=t.decipherKey.slice(32),this._len=0,this._lenBuf=Buffer.alloc(4),this._lenPos=0,this._packet=null,this._pktLen=0,this._mac=Buffer.allocUnsafe(16),this._calcMac=Buffer.allocUnsafe(16),this._macPos=0}free(){}decrypt(n,i,o){for(;i<o;){if(this._lenPos<4){let e=Math.min(4-this._lenPos,o-i);for(;e--;)this._lenBuf[this._lenPos++]=n[i++];if(this._lenPos<4)return;x[0]=0,a(x,this.inSeqno,12);const r=t("chacha20",this._decKeyPktLen,x).update(this._lenBuf);if(this._len=s(r,0),this._len>h||this._len<8||7&this._len)throw new Error("Bad packet length")}if(this._pktLen<this._len){if(i>=o)return;const e=Math.min(this._len-this._pktLen,o-i);let t;if(t=0!==i||e!==o?new Uint8Array(n.buffer,n.byteOffset+i,e):n,e===this._len?this._packet=t:(this._packet||(this._packet=Buffer.allocUnsafe(this._len)),this._packet.set(t,this._pktLen)),i+=e,this._pktLen+=e,this._pktLen<this._len||i>=o)return}{const e=Math.min(16-this._macPos,o-i);if(0!==i||e!==o?this._mac.set(new Uint8Array(n.buffer,n.byteOffset+i,e),this._macPos):this._mac.set(n,this._macPos),i+=e,this._macPos+=e,this._macPos<16)return}x[0]=0,a(x,this.inSeqno,12);const l=e("chacha20",this._decKeyMain,x).update(w);if(k(I,this._lenBuf,4,this._packet,this._packet.length,l),this._calcMac.set(new Uint8Array(S.HEAPU8.buffer,I,16),0),!r(this._calcMac,this._mac))throw new Error("Invalid MAC");x[0]=1;const u=t("chacha20",this._decKeyMain,x).update(this._packet),p=new c(u.buffer,u.byteOffset+1,u.length-u[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._len=0,this._lenPos=0,this._packet=null,this._pktLen=0,this._macPos=0;{const e=this._onPayload(p);if(void 0!==e)return!1===e?i:e}}}}class P{constructor(e){const t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._instance=new y(t.decipherKey),this._len=0,this._lenBuf=Buffer.alloc(4),this._lenPos=0,this._packet=null,this._pktLen=0,this._mac=Buffer.allocUnsafe(16),this._macPos=0}free(){this._instance.free()}decrypt(e,t,n){for(;t<n;){if(this._lenPos<4){let i=Math.min(4-this._lenPos,n-t);for(;i--;)this._lenBuf[this._lenPos++]=e[t++];if(this._lenPos<4)return;if(this._len=this._instance.decryptLen(this._lenBuf,this.inSeqno),this._len>h||this._len<8||7&this._len)throw new Error("Bad packet length");if(t>=n)return}if(this._pktLen<this._len){const i=Math.min(this._len-this._pktLen,n-t);let r;if(r=0!==t||i!==n?new Uint8Array(e.buffer,e.byteOffset+t,i):e,i===this._len?this._packet=r:(this._packet||(this._packet=Buffer.allocUnsafe(this._len)),this._packet.set(r,this._pktLen)),t+=i,this._pktLen+=i,this._pktLen<this._len||t>=n)return}{const i=Math.min(16-this._macPos,n-t);if(0!==t||i!==n?this._mac.set(new Uint8Array(e.buffer,e.byteOffset+t,i),this._macPos):this._mac.set(e,this._macPos),t+=i,this._macPos+=i,this._macPos<16)return}this._instance.decrypt(this._packet,this._mac,this.inSeqno);const i=new c(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._len=0,this._lenPos=0,this._packet=null,this._pktLen=0,this._macPos=0;{const e=this._onPayload(i);if(void 0!==e)return!1===e?t:e}}}}class U{constructor(e){const t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._decipherInstance=null,this._decipherSSLName=t.decipherInfo.sslName,this._decipherKey=t.decipherKey,this._decipherIV=t.decipherIV,this._len=0,this._lenBytes=0,this._packet=null,this._packetPos=0,this._pktLen=0,this._tag=Buffer.allocUnsafe(16),this._tagPos=0}free(){}decrypt(e,n,i){for(;n<i;){if(this._lenBytes<4){let r=Math.min(4-this._lenBytes,i-n);for(this._lenBytes+=r;r--;)this._len=(this._len<<8)+e[n++];if(this._lenBytes<4)return;if(this._len+20>h||this._len<16||15&this._len)throw new Error("Bad packet length");this._decipherInstance=t(this._decipherSSLName,this._decipherKey,this._decipherIV),this._decipherInstance.setAutoPadding(!1),this._decipherInstance.setAAD(j(this._len))}if(this._pktLen<this._len){if(n>=i)return;const t=Math.min(this._len-this._pktLen,i-n);let r;if(r=0!==n||t!==i?this._decipherInstance.update(new Uint8Array(e.buffer,e.byteOffset+n,t)):this._decipherInstance.update(e),r.length&&(t===this._len?this._packet=r:(this._packet||(this._packet=Buffer.allocUnsafe(this._len)),this._packet.set(r,this._packetPos)),this._packetPos+=r.length),n+=t,this._pktLen+=t,this._pktLen<this._len||n>=i)return}{const t=Math.min(16-this._tagPos,i-n);if(0!==n||t!==i?this._tag.set(new Uint8Array(e.buffer,e.byteOffset+n,t),this._tagPos):this._tag.set(e,this._tagPos),n+=t,this._tagPos+=t,this._tagPos<16)return}{this._decipherInstance.setAuthTag(this._tag);const e=this._decipherInstance.final();e.length&&(this._packet?this._packet.set(e,this._packetPos):this._packet=e)}const r=this._packet?new c(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1):u;this.inSeqno=this.inSeqno+1>>>0,F(this._decipherIV),this._len=0,this._lenBytes=0,this._packet=null,this._packetPos=0,this._pktLen=0,this._tagPos=0;{const e=this._onPayload(r);if(void 0!==e)return!1===e?n:e}}}}class D{constructor(e){const t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._instance=new b(t.decipherInfo.sslName,t.decipherKey,t.decipherIV),this._len=0,this._lenBytes=0,this._packet=null,this._pktLen=0,this._tag=Buffer.allocUnsafe(16),this._tagPos=0}free(){}decrypt(e,t,n){for(;t<n;){if(this._lenBytes<4){let i=Math.min(4-this._lenBytes,n-t);for(this._lenBytes+=i;i--;)this._len=(this._len<<8)+e[t++];if(this._lenBytes<4)return;if(this._len+20>h||this._len<16||15&this._len)throw new Error(`Bad packet length: ${this._len}`)}if(this._pktLen<this._len){if(t>=n)return;const i=Math.min(this._len-this._pktLen,n-t);let r;if(r=0!==t||i!==n?new Uint8Array(e.buffer,e.byteOffset+t,i):e,i===this._len?this._packet=r:(this._packet||(this._packet=Buffer.allocUnsafe(this._len)),this._packet.set(r,this._pktLen)),t+=i,this._pktLen+=i,this._pktLen<this._len||t>=n)return}{const i=Math.min(16-this._tagPos,n-t);if(0!==t||i!==n?this._tag.set(new Uint8Array(e.buffer,e.byteOffset+t,i),this._tagPos):this._tag.set(e,this._tagPos),t+=i,this._tagPos+=i,this._tagPos<16)return}this._instance.decrypt(this._packet,this._len,this._tag);const i=new c(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._len=0,this._lenBytes=0,this._packet=null,this._pktLen=0,this._tagPos=0;{const e=this._onPayload(i);if(void 0!==e)return!1===e?t:e}}}}class M{constructor(e){const n=e.inbound;this.inSeqno=n.seqno,this._onPayload=n.onPayload,this._decipherInstance=t(n.decipherInfo.sslName,n.decipherKey,n.decipherIV),this._decipherInstance.setAutoPadding(!1),this._block=Buffer.allocUnsafe(n.macInfo.isETM?4:n.decipherInfo.blockLen),this._blockSize=n.decipherInfo.blockLen,this._blockPos=0,this._len=0,this._packet=null,this._packetPos=0,this._pktLen=0,this._mac=Buffer.allocUnsafe(n.macInfo.actualLen),this._macPos=0,this._macSSLName=n.macInfo.sslName,this._macKey=n.macKey,this._macActualLen=n.macInfo.actualLen,this._macETM=n.macInfo.isETM,this._macInstance=null;const i=n.decipherInfo.discardLen;if(i){let e=d.get(i);void 0===e&&(e=Buffer.alloc(i),d.set(i,e)),this._decipherInstance.update(e)}}free(){}decrypt(e,t,i){for(;t<i;){if(this._blockPos<this._block.length){const r=Math.min(this._block.length-this._blockPos,i-t);if(0!==t||r!==i||r<e.length?this._block.set(new Uint8Array(e.buffer,e.byteOffset+t,r),this._blockPos):this._block.set(e,this._blockPos),t+=r,this._blockPos+=r,this._blockPos<this._block.length)return;let o,c;if(this._macETM?this._len=c=s(this._block,0):(o=this._decipherInstance.update(this._block),this._len=s(o,0),c=4+this._len-this._blockSize),this._len>h||this._len<5||c&this._blockSize-1)throw new Error("Bad packet length");if(this._macInstance=n(this._macSSLName,this._macKey),a(p,this.inSeqno,0),this._macInstance.update(p),this._macETM?this._macInstance.update(this._block):(this._macInstance.update(new Uint8Array(o.buffer,o.byteOffset,4)),this._pktLen=o.length-4,this._packetPos=this._pktLen,this._packet=Buffer.allocUnsafe(this._len),this._packet.set(new Uint8Array(o.buffer,o.byteOffset+4,this._packetPos),0)),t>=i)return}if(this._pktLen<this._len){const n=Math.min(this._len-this._pktLen,i-t);let r;r=0!==t||n!==i?new Uint8Array(e.buffer,e.byteOffset+t,n):e,this._macETM&&this._macInstance.update(r);const s=this._decipherInstance.update(r);if(s.length&&(n===this._len?this._packet=s:(this._packet||(this._packet=Buffer.allocUnsafe(this._len)),this._packet.set(s,this._packetPos)),this._packetPos+=s.length),t+=n,this._pktLen+=n,this._pktLen<this._len||t>=i)return}{const n=Math.min(this._macActualLen-this._macPos,i-t);if(0!==t||n!==i?this._mac.set(new Uint8Array(e.buffer,e.byteOffset+t,n),this._macPos):this._mac.set(e,this._macPos),t+=n,this._macPos+=n,this._macPos<this._macActualLen)return}this._macETM||this._macInstance.update(this._packet);let r=this._macInstance.digest();if(this._macActualLen<r.length&&(r=new Uint8Array(r.buffer,r.byteOffset,this._macActualLen)),!$(r,this._mac))throw new Error("Invalid MAC");const o=new c(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._blockPos=0,this._len=0,this._packet=null,this._packetPos=0,this._pktLen=0,this._macPos=0,this._macInstance=null;{const e=this._onPayload(o);if(void 0!==e)return!1===e?t:e}}}}class H{constructor(e){const t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._instance=new v(t.decipherInfo.sslName,t.decipherKey,t.decipherIV,t.macInfo.sslName,t.macKey,t.macInfo.isETM,t.macInfo.actualLen),this._block=Buffer.allocUnsafe(t.macInfo.isETM||t.decipherInfo.stream?4:t.decipherInfo.blockLen),this._blockPos=0,this._len=0,this._packet=null,this._pktLen=0,this._mac=Buffer.allocUnsafe(t.macInfo.actualLen),this._macPos=0,this._macActualLen=t.macInfo.actualLen,this._macETM=t.macInfo.isETM}free(){this._instance.free()}decrypt(e,t,n){for(;t<n;){if(this._blockPos<this._block.length){const i=Math.min(this._block.length-this._blockPos,n-t);if(0!==t||i!==n||i<e.length?this._block.set(new Uint8Array(e.buffer,e.byteOffset+t,i),this._blockPos):this._block.set(e,this._blockPos),t+=i,this._blockPos+=i,this._blockPos<this._block.length)return;let r;if(this._macETM?this._len=r=s(this._block,0):(this._instance.decryptBlock(this._block),this._len=s(this._block,0),r=4+this._len-this._block.length),this._len>h||this._len<5||r&this._block.length-1)throw new Error("Bad packet length");if(this._macETM||(this._pktLen=this._block.length-4,this._pktLen&&(this._packet=Buffer.allocUnsafe(this._len),this._packet.set(new Uint8Array(this._block.buffer,this._block.byteOffset+4,this._pktLen),0))),t>=n)return}if(this._pktLen<this._len){const i=Math.min(this._len-this._pktLen,n-t);let r;if(r=0!==t||i!==n?new Uint8Array(e.buffer,e.byteOffset+t,i):e,i===this._len?this._packet=r:(this._packet||(this._packet=Buffer.allocUnsafe(this._len)),this._packet.set(r,this._pktLen)),t+=i,this._pktLen+=i,this._pktLen<this._len||t>=n)return}{const i=Math.min(this._macActualLen-this._macPos,n-t);if(0!==t||i!==n?this._mac.set(new Uint8Array(e.buffer,e.byteOffset+t,i),this._macPos):this._mac.set(e,this._macPos),t+=i,this._macPos+=i,this._macPos<this._macActualLen)return}this._instance.decrypt(this._packet,this.inSeqno,this._block,this._mac);const i=new c(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._blockPos=0,this._len=0,this._packet=null,this._pktLen=0,this._macPos=0,this._macInstance=null;{const e=this._onPayload(i);if(void 0!==e)return!1===e?t:e}}}}function F(e){++e[11]>>>8&&++e[10]>>>8&&++e[9]>>>8&&++e[8]>>>8&&++e[7]>>>8&&++e[6]>>>8&&++e[5]>>>8&&++e[4]}const j=(()=>{const e=Buffer.alloc(4);return t=>(e[0]=t>>>24,e[1]=t>>>16,e[2]=t>>>8,e[3]=t,e)})();function $(e,t){return e.length!==t.length?(r(e,e),!1):r(e,t)}return pe={CIPHER_INFO:A,MAC_INFO:E,bindingAvailable:!!f,init:new Promise(async(e,t)=>{try{S=await fe()(),I=S._malloc(16),k=S.cwrap("poly1305_auth",null,["number","array","number","array","number","array"])}catch(e){return t(e)}e()}),NullCipher:class{constructor(e,t){this.outSeqno=e,this._onWrite=t,this._dead=!1}free(){this._dead=!0}allocPacket(e){let t=5+e,n=8-(7&t);n<4&&(n+=8),t+=n;const r=Buffer.allocUnsafe(t);return a(r,t-4,0),r[4]=n,i(r,5+e,n),r}encrypt(e){this._dead||(this._onWrite(e),this.outSeqno=this.outSeqno+1>>>0)}},createCipher:function(e){if("object"!=typeof e||null===e)throw new Error("Invalid config");if("object"!=typeof e.outbound||null===e.outbound)throw new Error("Invalid outbound");const t=e.outbound;if("function"!=typeof t.onWrite)throw new Error("Invalid outbound.onWrite");if("object"!=typeof t.cipherInfo||null===t.cipherInfo)throw new Error("Invalid outbound.cipherInfo");if(!Buffer.isBuffer(t.cipherKey)||t.cipherKey.length!==t.cipherInfo.keyLen)throw new Error("Invalid outbound.cipherKey");if(t.cipherInfo.ivLen&&(!Buffer.isBuffer(t.cipherIV)||t.cipherIV.length!==t.cipherInfo.ivLen))throw new Error("Invalid outbound.cipherIV");if("number"!=typeof t.seqno||t.seqno<0||t.seqno>l)throw new Error("Invalid outbound.seqno");const n=!!t.forceNative;switch(t.cipherInfo.sslName){case"aes-128-gcm":case"aes-256-gcm":return m&&!n?new T(e):new B(e);case"chacha20":return g&&!n?new R(e):new C(e);default:if("object"!=typeof t.macInfo||null===t.macInfo)throw new Error("Invalid outbound.macInfo");if(!Buffer.isBuffer(t.macKey)||t.macKey.length!==t.macInfo.len)throw new Error("Invalid outbound.macKey");return _&&!n?new N(e):new O(e)}},NullDecipher:class{constructor(e,t){this.inSeqno=e,this._onPayload=t,this._len=0,this._lenBytes=0,this._packet=null,this._packetPos=0}free(){}decrypt(e,t,n){for(;t<n;){if(this._lenBytes<4){let i=Math.min(4-this._lenBytes,n-t);for(this._lenBytes+=i;i--;)this._len=(this._len<<8)+e[t++];if(this._lenBytes<4)return;if(this._len>h||this._len<8||4+this._len&7)throw new Error("Bad packet length");if(t>=n)return}if(this._packetPos<this._len){const i=Math.min(this._len-this._packetPos,n-t);let r;if(r=0!==t||i!==n?new Uint8Array(e.buffer,e.byteOffset+t,i):e,i===this._len?this._packet=r:(this._packet||(this._packet=Buffer.allocUnsafe(this._len)),this._packet.set(r,this._packetPos)),t+=i,this._packetPos+=i,this._packetPos<this._len)return}const i=this._packet?new c(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1):u;this.inSeqno=this.inSeqno+1>>>0,this._len=0,this._lenBytes=0,this._packet=null,this._packetPos=0;{const e=this._onPayload(i);if(void 0!==e)return!1===e?t:e}}}},createDecipher:function(e){if("object"!=typeof e||null===e)throw new Error("Invalid config");if("object"!=typeof e.inbound||null===e.inbound)throw new Error("Invalid inbound");const t=e.inbound;if("function"!=typeof t.onPayload)throw new Error("Invalid inbound.onPayload");if("object"!=typeof t.decipherInfo||null===t.decipherInfo)throw new Error("Invalid inbound.decipherInfo");if(!Buffer.isBuffer(t.decipherKey)||t.decipherKey.length!==t.decipherInfo.keyLen)throw new Error("Invalid inbound.decipherKey");if(t.decipherInfo.ivLen&&(!Buffer.isBuffer(t.decipherIV)||t.decipherIV.length!==t.decipherInfo.ivLen))throw new Error("Invalid inbound.decipherIV");if("number"!=typeof t.seqno||t.seqno<0||t.seqno>l)throw new Error("Invalid inbound.seqno");const n=!!t.forceNative;switch(t.decipherInfo.sslName){case"aes-128-gcm":case"aes-256-gcm":return b&&!n?new D(e):new U(e);case"chacha20":return y&&!n?new P(e):new L(e);default:if("object"!=typeof t.macInfo||null===t.macInfo)throw new Error("Invalid inbound.macInfo");if(!Buffer.isBuffer(t.macKey)||t.macKey.length!==t.macInfo.len)throw new Error("Invalid inbound.macKey");return v&&!n?new H(e):new M(e)}}},pe}const{createDecipheriv:ge,createECDH:_e,createHash:be,createHmac:ye,createSign:ve,createVerify:Ae,getCiphers:Ee,sign:we,verify:xe}=o,Se=Ee(),{Ber:Ie}=K,ke=oe,{CIPHER_INFO:Ce}=me(),{eddsaSupported:Re,SUPPORTED_CIPHER:Be}=ce(),{bufferSlice:Te,makeBufferParser:Oe,readString:Ne,readUInt32BE:Le,writeUInt32BE:Pe}=le(),Ue=Symbol("Hash Algorithm"),De=Symbol("Private key PEM"),Me=Symbol("Public key PEM"),He=Symbol("Public key SSH"),Fe=Symbol("Decrypted Key"),je=Object.create(null);{const Nx=Object.keys(Ce);for(let Lx=0;Lx<Nx.length;++Lx){const Px=Ce[Nx[Lx]].sslName;Px&&!je[Px]&&(je[Px]=Ce[Nx[Lx]])}}const $e=Oe();function Qe(e,t){let n=(t=t.base64Slice(0,t.length)).replace(/.{64}/g,"$&\n");return 63&t.length&&(n+="\n"),`-----BEGIN ${e} KEY-----\n${n}-----END ${e} KEY-----`}function We(e,t){const n=Buffer.allocUnsafe(e.length+t.length);return n.set(e,0),n.set(t,e.length),n}function qe(e,t){const n=e.length;let i=e._pos||0;for(let r=0;r<t;++r){const t=n-i;if(i>=n||t<4)return!1;const r=Le(e,i);if(t<4+r)return!1;i+=4+r}return e._pos=i,!0}function Ye(e,t){const n=new Ie.Writer;return n.startSequence(),n.startSequence(),n.writeOID("1.2.840.113549.1.1.1"),n.writeNull(),n.endSequence(),n.startSequence(Ie.BitString),n.writeByte(0),n.startSequence(),n.writeBuffer(e,Ie.Integer),n.writeBuffer(t,Ie.Integer),n.endSequence(),n.endSequence(),n.endSequence(),Qe("PUBLIC",n.buffer)}function Ge(e,t){const n=Buffer.allocUnsafe(15+t.length+4+e.length);Pe(n,7,0),n.utf8Write("ssh-rsa",4,7);let i=11;return Pe(n,t.length,i),n.set(t,i+=4),Pe(n,e.length,i+=t.length),n.set(e,i+4),n}const Ke=(()=>{function e(e){return BigInt(`0x${e.hexSlice(0,e.length)}`)}function t(e){let t=e.toString(16);if(1&t.length)t=`0${t}`;else{const e=t.charCodeAt(0);(56===e||57===e||e>=97&&e<=102)&&(t=`00${t}`)}return Buffer.from(t,"hex")}return function(n,i,r,s,o,a){const c=e(r);return Qe("RSA PRIVATE",function(e,t,n,i,r,s,o,a){const c=new Ie.Writer;return c.startSequence(),c.writeInt(0,Ie.Integer),c.writeBuffer(e,Ie.Integer),c.writeBuffer(t,Ie.Integer),c.writeBuffer(n,Ie.Integer),c.writeBuffer(i,Ie.Integer),c.writeBuffer(r,Ie.Integer),c.writeBuffer(s,Ie.Integer),c.writeBuffer(o,Ie.Integer),c.writeBuffer(a,Ie.Integer),c.endSequence(),c.buffer}(n,i,r,o,a,t(c%(e(o)-1n)),t(c%(e(a)-1n)),s))}})();function ze(e,t,n,i){const r=new Ie.Writer;return r.startSequence(),r.startSequence(),r.writeOID("1.2.840.10040.4.1"),r.startSequence(),r.writeBuffer(e,Ie.Integer),r.writeBuffer(t,Ie.Integer),r.writeBuffer(n,Ie.Integer),r.endSequence(),r.endSequence(),r.startSequence(Ie.BitString),r.writeByte(0),r.writeBuffer(i,Ie.Integer),r.endSequence(),r.endSequence(),Qe("PUBLIC",r.buffer)}function Xe(e,t,n,i){const r=Buffer.allocUnsafe(15+e.length+4+t.length+4+n.length+4+i.length);Pe(r,7,0),r.utf8Write("ssh-dss",4,7);let s=11;return Pe(r,e.length,s),r.set(e,s+=4),Pe(r,t.length,s+=e.length),r.set(t,s+=4),Pe(r,n.length,s+=t.length),r.set(n,s+=4),Pe(r,i.length,s+=n.length),r.set(i,s+4),r}function Ve(e,t,n,i,r){const s=new Ie.Writer;return s.startSequence(),s.writeInt(0,Ie.Integer),s.writeBuffer(e,Ie.Integer),s.writeBuffer(t,Ie.Integer),s.writeBuffer(n,Ie.Integer),s.writeBuffer(i,Ie.Integer),s.writeBuffer(r,Ie.Integer),s.endSequence(),Qe("DSA PRIVATE",s.buffer)}function Je(e){const t=new Ie.Writer;return t.startSequence(),t.startSequence(),t.writeOID("1.3.101.112"),t.endSequence(),t.startSequence(Ie.BitString),t.writeByte(0),t._ensure(e.length),t._buf.set(e,t._offset),t._offset+=e.length,t.endSequence(),t.endSequence(),Qe("PUBLIC",t.buffer)}function Ze(e){const t=Buffer.allocUnsafe(19+e.length);return Pe(t,11,0),t.utf8Write("ssh-ed25519",4,11),Pe(t,e.length,15),t.set(e,19),t}function et(e){const t=new Ie.Writer;return t.startSequence(),t.writeInt(0,Ie.Integer),t.startSequence(),t.writeOID("1.3.101.112"),t.endSequence(),t.startSequence(Ie.OctetString),t.writeBuffer(e,Ie.OctetString),t.endSequence(),t.endSequence(),Qe("PRIVATE",t.buffer)}function tt(e,t){const n=new Ie.Writer;return n.startSequence(),n.startSequence(),n.writeOID("1.2.840.10045.2.1"),n.writeOID(e),n.endSequence(),n.startSequence(Ie.BitString),n.writeByte(0),n._ensure(t.length),n._buf.set(t,n._offset),n._offset+=t.length,n.endSequence(),n.endSequence(),Qe("PUBLIC",n.buffer)}function nt(e,t){let n;switch(e){case"1.2.840.10045.3.1.7":n="nistp256";break;case"1.3.132.0.34":n="nistp384";break;case"1.3.132.0.35":n="nistp521";break;default:return}const i=Buffer.allocUnsafe(39+t.length);return Pe(i,19,0),i.utf8Write(`ecdsa-sha2-${n}`,4,19),Pe(i,8,23),i.utf8Write(n,27,8),Pe(i,t.length,35),i.set(t,39),i}function it(e,t,n){const i=new Ie.Writer;return i.startSequence(),i.writeInt(1,Ie.Integer),i.writeBuffer(n,Ie.OctetString),i.startSequence(160),i.writeOID(e),i.endSequence(),i.startSequence(161),i.startSequence(Ie.BitString),i.writeByte(0),i._ensure(t.length),i._buf.set(t,i._offset),i._offset+=t.length,i.endSequence(),i.endSequence(),i.endSequence(),Qe("EC PRIVATE",i.buffer)}const rt={sign:"function"==typeof we?function(e,t){const n=this[De];if(null===n)return new Error("No private key available");t&&"string"==typeof t||(t=this[Ue]);try{return we(t,e,n)}catch(e){return e}}:function(e,t){const n=this[De];if(null===n)return new Error("No private key available");t&&"string"==typeof t||(t=this[Ue]);const i=ve(t);i.update(e);try{return i.sign(n)}catch(e){return e}},verify:"function"==typeof xe?function(e,t,n){const i=this[Me];if(null===i)return new Error("No public key available");n&&"string"==typeof n||(n=this[Ue]);try{return xe(n,e,i,t)}catch(e){return e}}:function(e,t,n){const i=this[Me];if(null===i)return new Error("No public key available");n&&"string"==typeof n||(n=this[Ue]);const r=Ae(n);r.update(e);try{return r.verify(i,t)}catch(e){return e}},isPrivateKey:function(){return null!==this[De]},getPrivatePEM:function(){return this[De]},getPublicPEM:function(){return this[Me]},getPublicSSH:function(){return this[He]},equals:function(e){const t=ht(e);return!(t instanceof Error)&&(this.type===t.type&&this[De]===t[De]&&this[Me]===t[Me]&&this[He].equals(t[He]))}};function st(e,t,n,i,r,s,o){this.type=e,this.comment=t,this[De]=n,this[Me]=i,this[He]=r,this[Ue]=s,this[Fe]=o}st.prototype=rt;{const Ux=/^-----BEGIN OPENSSH PRIVATE KEY-----(?:\r\n|\n)([\s\S]+)(?:\r\n|\n)-----END OPENSSH PRIVATE KEY-----$/;function Dx(e,t,n){const i=[];if(e.length<8)return new Error("Malformed OpenSSH private key");if(Le(e,0)!==Le(e,4))return n?new Error("OpenSSH key integrity check failed -- bad passphrase?"):new Error("OpenSSH key integrity check failed");let r,s;for(e._pos=8,r=0;r<t;++r){let t,r,o,a;const c=Ne(e,e._pos,!0);if(void 0===c)return new Error("Malformed OpenSSH private key");switch(c){case"ssh-rsa":{const n=Ne(e,e._pos);if(void 0===n)return new Error("Malformed OpenSSH private key");const i=Ne(e,e._pos);if(void 0===i)return new Error("Malformed OpenSSH private key");const s=Ne(e,e._pos);if(void 0===s)return new Error("Malformed OpenSSH private key");const c=Ne(e,e._pos);if(void 0===c)return new Error("Malformed OpenSSH private key");const l=Ne(e,e._pos);if(void 0===l)return new Error("Malformed OpenSSH private key");const u=Ne(e,e._pos);if(void 0===u)return new Error("Malformed OpenSSH private key");o=Ye(n,i),a=Ge(n,i),r=Ke(n,i,s,c,l,u),t="sha1";break}case"ssh-dss":{const n=Ne(e,e._pos);if(void 0===n)return new Error("Malformed OpenSSH private key");const i=Ne(e,e._pos);if(void 0===i)return new Error("Malformed OpenSSH private key");const s=Ne(e,e._pos);if(void 0===s)return new Error("Malformed OpenSSH private key");const c=Ne(e,e._pos);if(void 0===c)return new Error("Malformed OpenSSH private key");const l=Ne(e,e._pos);if(void 0===l)return new Error("Malformed OpenSSH private key");o=ze(n,i,s,c),a=Xe(n,i,s,c),r=Ve(n,i,s,c,l),t="sha1";break}case"ssh-ed25519":{if(!Re)return new Error(`Unsupported OpenSSH private key type: ${c}`);const n=Ne(e,e._pos);if(void 0===n||32!==n.length)return new Error("Malformed OpenSSH private key");const i=Ne(e,e._pos);if(void 0===i||64!==i.length)return new Error("Malformed OpenSSH private key");o=Je(n),a=Ze(n),r=et(Te(i,0,32)),t=null;break}case"ecdsa-sha2-nistp256":t="sha256",s="1.2.840.10045.3.1.7";case"ecdsa-sha2-nistp384":void 0===t&&(t="sha384",s="1.3.132.0.34");case"ecdsa-sha2-nistp521":{if(void 0===t&&(t="sha512",s="1.3.132.0.35"),!qe(e,1))return new Error("Malformed OpenSSH private key");const n=Ne(e,e._pos);if(void 0===n)return new Error("Malformed OpenSSH private key");const i=Ne(e,e._pos);if(void 0===i)return new Error("Malformed OpenSSH private key");o=tt(s,n),a=nt(s,n),r=it(s,n,i);break}default:return new Error(`Unsupported OpenSSH private key type: ${c}`)}const l=Ne(e,e._pos,!0);if(void 0===l)return new Error("Malformed OpenSSH private key");i.push(new st(c,l,r,o,a,t,n))}let o=0;for(r=e._pos;r<e.length;++r)if(e[r]!==++o%255)return new Error("Malformed OpenSSH private key");return i}st.parse=(e,t)=>{const n=Ux.exec(e);if(null===n)return null;let i;const r=Buffer.from(n[1],"base64");if(r.length<31)return new Error("Malformed OpenSSH private key");const s=r.utf8Slice(0,15);if("openssh-key-v1\0"!==s)return new Error(`Unsupported OpenSSH key magic: ${s}`);const o=Ne(r,15,!0);if(void 0===o)return new Error("Malformed OpenSSH private key");if("none"!==o&&-1===Be.indexOf(o))return new Error(`Unsupported cipher for OpenSSH key: ${o}`);const a=Ne(r,r._pos,!0);if(void 0===a)return new Error("Malformed OpenSSH private key");if("none"!==a){if("none"===o)return new Error("Malformed OpenSSH private key");if("bcrypt"!==a)return new Error(`Unsupported kdf name for OpenSSH key: ${a}`);if(!t)return new Error("Encrypted private OpenSSH key detected, but no passphrase given")}else if("none"!==o)return new Error("Malformed OpenSSH private key");let c,l,u;"none"!==o&&(c=Ce[o]);const p=Ne(r,r._pos);if(void 0===p)return new Error("Malformed OpenSSH private key");if(p.length)switch(a){case"none":return new Error("Malformed OpenSSH private key");case"bcrypt":{const e=Ne(p,0);if(void 0===e||p._pos+4>p.length)return new Error("Malformed OpenSSH private key");const n=Le(p,p._pos),i=Buffer.allocUnsafe(c.keyLen+c.ivLen);if(0!==ke(t,t.length,e,e.length,i,i.length,n))return new Error("Failed to generate information to decrypt key");l=Te(i,0,c.keyLen),u=Te(i,c.keyLen,i.length);break}}else if("none"!==a)return new Error("Malformed OpenSSH private key");if(r._pos+3>=r.length)return new Error("Malformed OpenSSH private key");const d=Le(r,r._pos);if(r._pos+=4,d>0){for(let e=0;e<d;++e){const e=Ne(r,r._pos);if(void 0===e)return new Error("Malformed OpenSSH private key");if(void 0===Ne(e,0,!0))return new Error("Malformed OpenSSH private key")}let e=Ne(r,r._pos);if(void 0===e)return new Error("Malformed OpenSSH private key");if(void 0!==l){if(e.length<c.blockLen||e.length%c.blockLen!==0)return new Error("Malformed OpenSSH private key");try{const t={authTagLength:c.authLen},n=ge(c.sslName,l,u,t);if(n.setAutoPadding(!1),c.authLen>0){if(r.length-r._pos<c.authLen)return new Error("Malformed OpenSSH private key");n.setAuthTag(Te(r,r._pos,r._pos+=c.authLen))}e=We(n.update(e),n.final())}catch(e){return e}}if(r._pos!==r.length)return new Error("Malformed OpenSSH private key");i=Dx(e,d,void 0!==l)}else i=[];return i instanceof Error?i:i[0]}}function ot(e,t,n,i,r,s,o){this.type=e,this.comment=t,this[De]=n,this[Me]=i,this[He]=r,this[Ue]=s,this[Fe]=o}ot.prototype=rt;{const Mx=/^-----BEGIN (RSA|DSA|EC) PRIVATE KEY-----(?:\r\n|\n)((?:[^:]+:\s*[\S].*(?:\r\n|\n))*)([\s\S]+)(?:\r\n|\n)-----END (RSA|DSA|EC) PRIVATE KEY-----$/;ot.parse=(e,t)=>{const n=Mx.exec(e);if(null===n)return null;let i,r,s,o,a,c,l=Buffer.from(n[3],"base64"),u=n[2],p=!1;if(void 0!==u){u=u.split(/\r\n|\n/g);for(let e=0;e<u.length;++e){const n=u[e];let i=n.indexOf(":");if("DEK-Info"===n.slice(0,i)){const e=n.slice(i+2);if(i=e.indexOf(","),-1===i)continue;const r=e.slice(0,i).toLowerCase();if(-1===Se.indexOf(r))return new Error(`Cipher (${r}) not supported for encrypted OpenSSH private key`);const s=je[r];if(!s)return new Error(`Cipher (${r}) not supported for encrypted OpenSSH private key`);const o=Buffer.from(e.slice(i+1),"hex");if(o.length!==s.ivLen)return new Error("Malformed encrypted OpenSSH private key");if(!t)return new Error("Encrypted OpenSSH private key detected, but no passphrase given");const a=Te(o,0,8);let c=be("md5").update(t).update(a).digest();for(;c.length<s.keyLen;)c=We(c,be("md5").update(c).update(t).update(a).digest());c.length>s.keyLen&&(c=Te(c,0,s.keyLen));try{const e=ge(r,c,o);e.setAutoPadding(!1),l=We(e.update(l),e.final()),p=!0}catch(e){return e}}}}let d="Malformed OpenSSH private key";switch(p&&(d+=". Bad passphrase?"),n[1]){case"RSA":i="ssh-rsa",r=Qe("RSA PRIVATE",l);try{c=new Ie.Reader(l),c.readSequence(),c.readInt();const e=c.readString(Ie.Integer,!0);if(null===e)return new Error(d);const t=c.readString(Ie.Integer,!0);if(null===t)return new Error(d);s=Ye(e,t),o=Ge(e,t)}catch{return new Error(d)}a="sha1";break;case"DSA":i="ssh-dss",r=Qe("DSA PRIVATE",l);try{c=new Ie.Reader(l),c.readSequence(),c.readInt();const e=c.readString(Ie.Integer,!0);if(null===e)return new Error(d);const t=c.readString(Ie.Integer,!0);if(null===t)return new Error(d);const n=c.readString(Ie.Integer,!0);if(null===n)return new Error(d);const i=c.readString(Ie.Integer,!0);if(null===i)return new Error(d);s=ze(e,t,n,i),o=Xe(e,t,n,i)}catch{return new Error(d)}a="sha1";break;case"EC":{let e,t,n;try{c=new Ie.Reader(l),c.readSequence(),c.readInt(),t=c.readString(Ie.OctetString,!0),c.readByte();const r=c.readLength();if(null===r)return new Error(d);if(c._offset=r,n=c.readOID(),null===n)return new Error(d);switch(n){case"1.2.840.10045.3.1.7":e="prime256v1",i="ecdsa-sha2-nistp256",a="sha256";break;case"1.3.132.0.34":e="secp384r1",i="ecdsa-sha2-nistp384",a="sha384";break;case"1.3.132.0.35":e="secp521r1",i="ecdsa-sha2-nistp521",a="sha512";break;default:return new Error(`Unsupported private key EC OID: ${n}`)}}catch{return new Error(d)}r=Qe("EC PRIVATE",l);const u=function(e,t){const n=_e(e);return n.setPrivateKey(t),n.getPublicKey()}(e,t);s=tt(n,u),o=nt(n,u);break}}return new ot(i,"",r,s,o,a,p)}}function at(e,t,n,i,r,s,o){this.type=e,this.comment=t,this[De]=n,this[Me]=i,this[He]=r,this[Ue]=s,this[Fe]=o}at.prototype=rt;{const Hx=Buffer.alloc(0),Fx=Buffer.from([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),jx=Buffer.from([0,0,0,0]),$x=Buffer.from([0,0,0,1]),Qx=/^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]+)/;at.parse=(e,t)=>{const n=Qx.exec(e);if(null===n)return null;const i=n[2],r="none"!==i;if(r&&!t)return new Error("Encrypted PPK private key detected, but no passphrase given");let s=Buffer.from(n[5],"base64");if(r){const e=Ce[i];let n=We(be("sha1").update(jx).update(t).digest(),be("sha1").update($x).update(t).digest());n.length>e.keyLen&&(n=Te(n,0,e.keyLen));try{const t=ge(e.sslName,n,Fx);t.setAutoPadding(!1),s=We(t.update(s),t.final())}catch(e){return e}}const o=n[1],a=n[3],c=Buffer.from(n[4],"base64"),l=n[6],u=o.length,p=i.length,d=Buffer.byteLength(a),h=c.length,f=s.length,m=Buffer.allocUnsafe(4+u+4+p+4+d+4+h+4+f);let g=0;Pe(m,u,g),m.utf8Write(o,g+=4,u),Pe(m,p,g+=u),m.utf8Write(i,g+=4,p),Pe(m,d,g+=p),m.utf8Write(a,g+=4,d),Pe(m,h,g+=d),m.set(c,g+=4),Pe(m,f,g+=h),m.set(s,g+4),t||(t=Hx);if(ye("sha1",be("sha1").update("putty-private-key-file-mac-key").update(t).digest()).update(m).digest("hex")!==l)return r?new Error("PPK private key integrity check failed -- bad passphrase?"):new Error("PPK private key integrity check failed");let _,b,y;switch(c._pos=0,qe(c,1),o){case"ssh-rsa":{const e=Ne(c,c._pos);if(void 0===e)return new Error("Malformed PPK public key");const t=Ne(c,c._pos);if(void 0===t)return new Error("Malformed PPK public key");const n=Ne(s,0);if(void 0===n)return new Error("Malformed PPK private key");const i=Ne(s,s._pos);if(void 0===i)return new Error("Malformed PPK private key");const r=Ne(s,s._pos);if(void 0===r)return new Error("Malformed PPK private key");const o=Ne(s,s._pos);if(void 0===o)return new Error("Malformed PPK private key");_=Ye(t,e),b=Ge(t,e),y=Ke(t,e,n,o,i,r);break}case"ssh-dss":{const e=Ne(c,c._pos);if(void 0===e)return new Error("Malformed PPK public key");const t=Ne(c,c._pos);if(void 0===t)return new Error("Malformed PPK public key");const n=Ne(c,c._pos);if(void 0===n)return new Error("Malformed PPK public key");const i=Ne(c,c._pos);if(void 0===i)return new Error("Malformed PPK public key");const r=Ne(s,0);if(void 0===r)return new Error("Malformed PPK private key");_=ze(e,t,n,i),b=Xe(e,t,n,i),y=Ve(e,t,n,i,r);break}}return new at(o,a,y,_,b,"sha1",r)}}function ct(e,t,n,i,r){this.type=e,this.comment=t,this[De]=null,this[Me]=n,this[He]=i,this[Ue]=r,this[Fe]=!1}ct.prototype=rt;{let Wx;Wx=Re?/^(((?:ssh-(?:rsa|dss|ed25519))|ecdsa-sha2-nistp(?:256|384|521))(?:-cert-v0[01]@openssh.com)?) ([A-Z0-9a-z/+=]+)(?:$|\s+([\S].*)?)$/:/^(((?:ssh-(?:rsa|dss))|ecdsa-sha2-nistp(?:256|384|521))(?:-cert-v0[01]@openssh.com)?) ([A-Z0-9a-z/+=]+)(?:$|\s+([\S].*)?)$/,ct.parse=e=>{const t=Wx.exec(e);if(null===t)return null;const n=t[1],i=t[2],r=Buffer.from(t[3],"base64"),s=t[4]||"",o=Ne(r,r._pos,!0);return void 0===o||0!==o.indexOf(i)?new Error("Malformed OpenSSH public key"):ut(r,i,s,n)}}function lt(e,t,n,i,r){this.type=e,this.comment=t,this[De]=null,this[Me]=n,this[He]=i,this[Ue]=r,this[Fe]=!1}lt.prototype=rt;{const qx=/^---- BEGIN SSH2 PUBLIC KEY ----(?:\r?\n)((?:.{0,72}\r?\n)+)---- END SSH2 PUBLIC KEY ----$/,Yx=/^[A-Z0-9a-z/+=\r\n]+$/,Gx=/^([\x21-\x39\x3B-\x7E]{1,64}): ((?:[^\\]*\\\r?\n)*[^\r\n]+)\r?\n/gm,Kx=/\\\r?\n/g;lt.parse=e=>{let t=qx.exec(e);if(null===t)return null;const n=t[1];let i=0,r="";for(;t=Gx.exec(n);){const e=t[1],n=t[2].replace(Kx,"");if(n.length>1024)return Gx.lastIndex=0,new Error("Malformed RFC4716 public key");i=Gx.lastIndex,"comment"===e.toLowerCase()&&(r=n,r.length>1&&34===r.charCodeAt(0)&&34===r.charCodeAt(r.length-1)&&(r=r.slice(1,-1)))}let s=n.slice(i);if(!Yx.test(s))return new Error("Malformed RFC4716 public key");s=Buffer.from(s,"base64");const o=Ne(s,0,!0);if(void 0===o)return new Error("Malformed RFC4716 public key");let a=null,c=null;switch(o){case"ssh-rsa":{const e=Ne(s,s._pos);if(void 0===e)return new Error("Malformed RFC4716 public key");const t=Ne(s,s._pos);if(void 0===t)return new Error("Malformed RFC4716 public key");a=Ye(t,e),c=Ge(t,e);break}case"ssh-dss":{const e=Ne(s,s._pos);if(void 0===e)return new Error("Malformed RFC4716 public key");const t=Ne(s,s._pos);if(void 0===t)return new Error("Malformed RFC4716 public key");const n=Ne(s,s._pos);if(void 0===n)return new Error("Malformed RFC4716 public key");const i=Ne(s,s._pos);if(void 0===i)return new Error("Malformed RFC4716 public key");a=ze(e,t,n,i),c=Xe(e,t,n,i);break}default:return new Error("Malformed RFC4716 public key")}return new lt(o,r,a,c,"sha1")}}function ut(e,t,n,i){if(!pt(t))return new Error(`Unsupported OpenSSH public key type: ${t}`);let r,s,o=null,a=null;switch(t){case"ssh-rsa":{const t=Ne(e,e._pos||0);if(void 0===t)return new Error("Malformed OpenSSH public key");const n=Ne(e,e._pos);if(void 0===n)return new Error("Malformed OpenSSH public key");o=Ye(n,t),a=Ge(n,t),r="sha1";break}case"ssh-dss":{const t=Ne(e,e._pos||0);if(void 0===t)return new Error("Malformed OpenSSH public key");const n=Ne(e,e._pos);if(void 0===n)return new Error("Malformed OpenSSH public key");const i=Ne(e,e._pos);if(void 0===i)return new Error("Malformed OpenSSH public key");const s=Ne(e,e._pos);if(void 0===s)return new Error("Malformed OpenSSH public key");o=ze(t,n,i,s),a=Xe(t,n,i,s),r="sha1";break}case"ssh-ed25519":{const t=Ne(e,e._pos||0);if(void 0===t||32!==t.length)return new Error("Malformed OpenSSH public key");o=Je(t),a=Ze(t),r=null;break}case"ecdsa-sha2-nistp256":r="sha256",s="1.2.840.10045.3.1.7";case"ecdsa-sha2-nistp384":void 0===r&&(r="sha384",s="1.3.132.0.34");case"ecdsa-sha2-nistp521":{if(void 0===r&&(r="sha512",s="1.3.132.0.35"),!qe(e,1))return new Error("Malformed OpenSSH public key");const t=Ne(e,e._pos||0);if(void 0===t)return new Error("Malformed OpenSSH public key");o=tt(s,t),a=nt(s,t);break}default:return new Error(`Unsupported OpenSSH public key type: ${t}`)}return new ct(i,n,o,a,r)}function pt(e){switch(e){case"ssh-rsa":case"ssh-dss":case"ecdsa-sha2-nistp256":case"ecdsa-sha2-nistp384":case"ecdsa-sha2-nistp521":return!0;case"ssh-ed25519":if(Re)return!0;default:return!1}}function dt(e){return!!e&&"boolean"==typeof e[Fe]}function ht(e,t){if(dt(e))return e;let n,i;if(Buffer.isBuffer(e))n=e,e=e.utf8Slice(0,e.length).trim();else{if("string"!=typeof e)return new Error("Key data must be a Buffer or string");e=e.trim()}if(null!=t)if("string"==typeof t)t=Buffer.from(t);else if(!Buffer.isBuffer(t))return new Error("Passphrase must be a string or Buffer when supplied");if(null!==(i=st.parse(e,t)))return i;if(null!==(i=ot.parse(e,t)))return i;if(null!==(i=at.parse(e,t)))return i;if(null!==(i=ct.parse(e)))return i;if(null!==(i=lt.parse(e)))return i;if(n){$e.init(n,0);const t=$e.readString(!0);void 0!==t&&void 0!==(e=$e.readRaw())&&(i=ut(e,t,"",t),i instanceof Error&&(i=null)),$e.clear()}return i||new Error("Unsupported key format")}var ft={isParsedKey:dt,isSupportedKeyType:pt,parseDERKey:(e,t)=>ut(e,t,"",t),parseKey:ht};const{Socket:mt}=t,{Duplex:gt}=n,{resolve:_t}=i,{readFile:bt}=r,{execFile:yt,spawn:vt}=s,{isParsedKey:At,parseKey:Et}=ft,{makeBufferParser:wt,readUInt32BE:xt,writeUInt32BE:St,writeUInt32LE:It}=le();function kt(e){let t=!1;return(...n)=>{t||(t=!0,e(...n))}}function Ct(){}const Rt=Buffer.alloc(0),Bt=wt();let Tt=class{getIdentities(e){e(new Error("Missing getIdentities() implementation"))}sign(e,t,n,i){"function"==typeof n&&(i=n),i(new Error("Missing sign() implementation"))}},Ot=class extends Tt{constructor(e){super(),this.socketPath=e}getStream(e){e=kt(e);const t=new mt;function n(){try{t.destroy()}catch{}e(new Error("Failed to connect to agent"))}t.on("connect",()=>{e(null,t)}),t.on("close",n).on("end",n).on("error",n),t.connect(this.socketPath)}getIdentities(e){e=kt(e),this.getStream((t,n)=>{function i(t){if(n)try{n.destroy()}catch{}t||(t=new Error("Failed to retrieve identities from agent")),e(t)}if(t)return i(t);const r=new Dt(!0);r.on("error",i),r.pipe(n).pipe(r),n.on("close",i).on("end",i).on("error",i),r.getIdentities((t,r)=>{if(t)return i(t);try{n.destroy()}catch{}e(null,r)})})}sign(e,t,n,i){"function"==typeof n?(i=n,n=void 0):"object"==typeof n&&null!==n||(n=void 0),i=kt(i),this.getStream((r,s)=>{function o(e){if(s)try{s.destroy()}catch{}e||(e=new Error("Failed to sign data with agent")),i(e)}if(r)return o(r);const a=new Dt(!0);a.on("error",o),a.pipe(s).pipe(a),s.on("close",o).on("end",o).on("error",o),a.sign(e,t,n,(e,t)=>{if(e)return o(e);try{s.destroy()}catch{}i(null,t)})})}};const Nt=(()=>{const e=10,t=11,n=12,i=13,r=14,s=15,o=_t(__dirname,"..","util/pagent.exe"),a={[e]:new Error("Invalid pagent.exe arguments"),[t]:new Error("Pageant is not running"),[n]:new Error("pagent.exe could not create an mmap"),[i]:new Error("pagent.exe could not set mode for stdin"),[r]:new Error("pagent.exe could not set mode for stdout"),[s]:new Error("pagent.exe did not get expected input payload")};function c(e){e.buffer=null,e.proc&&(e.proc.kill(),e.proc=void 0)}class l extends gt{constructor(){super(),this.proc=void 0,this.buffer=null}_read(e){}_write(e,t,n){if(null===this.buffer)this.buffer=e;else{const t=Buffer.allocUnsafe(this.buffer.length+e.length);this.buffer.copy(t,0),e.copy(t,this.buffer.length),this.buffer=t}if(this.buffer.length<4)return n();const i=xt(this.buffer,0);if(this.buffer.length-4<i)return n();if(e=this.buffer.slice(0,4+i),this.buffer.length>4+i)return n(new Error("Unexpected multiple agent requests"));let r;this.buffer=null;const s=this.proc=vt(o,[e.length]);s.stdout.on("data",e=>{this.push(e)}),s.on("error",e=>{r=e,n(r)}),s.on("close",e=>{if(this.proc=void 0,!r){if(r=a[e])return n(r);n()}}),s.stdin.end(e)}_final(e){c(this),e()}_destroy(e,t){c(this),t()}}return class extends Ot{getStream(e){e(null,new l)}}})(),Lt=(()=>{const e=/^!<socket >(\d+) s ([A-Z0-9]{8}-[A-Z0-9]{8}-[A-Z0-9]{8}-[A-Z0-9]{8})/;return class extends Ot{getStream(t){t=kt(t);let n=this.socketPath,i=!1;bt(n,function r(s,o){if(s)return i?t(new Error("Invalid cygwin unix socket path")):void yt("cygpath",["-w",n],(e,s,o)=>{if(e||0===s.length)return t(new Error("Invalid cygwin unix socket path"));i=!0,n=s.toString().replace(/[\r\n]/g,""),bt(n,r)});const a=e.exec(o.toString("ascii"));if(!a)return t(new Error("Malformed cygwin unix socket file"));let c,l=0,u=!1;const p=[];let d,h=Buffer.alloc(12);const f=parseInt(a[1],10),m=a[2].replace(/-/g,""),g=Buffer.allocUnsafe(16);for(let e=0,t=0;t<32;++e,t+=2)g[e]=parseInt(m.substring(t,t+2),16);for(let e=0;e<16;e+=4)It(g,xt(g,e),e);function _(){l=0,c="secret",d.write(g)}function b(e){if(l+=e.length,"secret"!==c){if("creds"===c&&(u||p.push(e),12===l)){if(d.removeListener("connect",_),d.removeListener("data",b),d.removeListener("error",y),d.removeListener("end",y),d.removeListener("close",y),u)return t(null,d);u=!0,h=Buffer.concat(p),It(h,process.pid,0),d.on("error",()=>{}),d.destroy(),v()}}else 16===l&&(l=0,c="creds",d.write(h))}function y(){t(new Error("Problem negotiating cygwin unix socket security"))}function v(){d=new mt,d.on("connect",_),d.on("data",b),d.on("error",y),d.on("end",y),d.on("close",y),d.connect(f)}v()})}}})(),Pt=/^[/\\][/\\]\.[/\\]pipe[/\\].+/;function Ut(e){return"win32"!==process.platform||Pt.test(e)?new Ot(e):"pageant"===e?new Nt:new Lt(e)}const Dt=(()=>{const e=Symbol("Inbound Request Type"),t=Symbol("Inbound Request Response"),n=Symbol("Inbound Request Context");class i{constructor(i,r){this[e]=i,this[t]=void 0,this[n]=r}hasResponded(){return void 0!==this[t]}getType(){return this[e]}getContext(){return this[n]}}function r(e,n,i){return n[t]=i,function(e){let n;for(;e[c].length;){const i=e[c][0][t];if(void 0===i)break;e[c].shift(),n=e.push(i)}return n}(e)}function s(e){if(e[u]=null,0===e[l]){const t=e[c];if(t&&t.length){e[c]=[];for(const e of t)e.cb(new Error("No reply from server"))}}try{e.end()}catch{}setImmediate(()=>{e[h]||e.emit("end"),e[d]||e.emit("close")})}function o(){this[d]=!0}function a(){this[h]=!0}const c=Symbol("Requests"),l=Symbol("Agent Protocol Role"),u=Symbol("Agent Protocol Buffer"),p=Symbol("Agent Protocol Current Message Length"),d=Symbol("Agent Protocol Closed"),h=Symbol("Agent Protocol Ended");return class extends gt{constructor(e){super({autoDestroy:!0,emitClose:!1}),this[l]=e?0:1,this[c]=[],this[u]=null,this[p]=-1,this.once("end",a),this.once("close",o)}_read(e){}_write(e,t,n){null===this[u]?this[u]=e:this[u]=function(e,t){const n=Buffer.allocUnsafe(e.length+t.length);return e.copy(n,0),t.copy(n,e.length),n}(this[u],e);let r=this[u],s=r.length,o=0;for(;o<s&&!(s<5)&&(-1===this[p]&&(this[p]=xt(r,o)),!(s<4+this[p]));){const e=r[o+=4];if(++o,0===this[l]){if(0===this[c].length)return n(new Error("Received unexpected message from server"));const t=this[c].shift();switch(e){case 5:t.cb(new Error("Agent responded with failure"));break;case 12:{if(11!==t.type)return n(new Error("Agent responded with wrong message type"));Bt.init(r,o);const e=Bt.readUInt32BE();if(void 0===e)return Bt.clear(),n(new Error("Malformed agent response"));const i=[];for(let t=0;t<e;++t){let e=Bt.readString();if(void 0===e)return Bt.clear(),n(new Error("Malformed agent response"));const t=Bt.readString(!0);if(void 0===t)return Bt.clear(),n(new Error("Malformed agent response"));e=Et(e),e instanceof Error||(e.comment=e.comment||t,i.push(e))}o=Bt.pos(),Bt.clear(),t.cb(null,i);break}case 14:{if(13!==t.type)return n(new Error("Agent responded with wrong message type"));Bt.init(r,o);let e=Bt.readString();if(o=Bt.pos(),Bt.clear(),void 0===e)return n(new Error("Malformed agent response"));if(Bt.init(e,0),Bt.readString(!0),e=Bt.readString(),Bt.clear(),void 0===e)return n(new Error("Malformed OpenSSH signature format"));t.cb(null,e);break}default:return n(new Error("Agent responded with unsupported message type"))}}else switch(e){case 11:{const t=new i(e);this[c].push(t),this.emit("identities",t);break}case 13:{Bt.init(r,o);let t=Bt.readString();const n=Bt.readString(),s=Bt.readUInt32BE();if(o=Bt.pos(),Bt.clear(),void 0===s){const t=new i(e);return this[c].push(t),this.failureReply(t)}if(t=Et(t),t instanceof Error){const t=new i(e);return this[c].push(t),this.failureReply(t)}const a={hash:void 0};let l;"ssh-rsa"===t.type&&(2&s?(l="rsa-sha2-256",a.hash="sha256"):4&s&&(l="rsa-sha2-512",a.hash="sha512")),void 0===l&&(l=t.type);const u=new i(e,l);this[c].push(u),this.emit("sign",u,t,n,a);break}default:{const t=new i(e);this[c].push(t),this.failureReply(t)}}if(this[p]=-1,o===s){this[u]=null;break}this[u]=r=r.slice(o),s=r.length,o=0}n()}_destroy(e,t){s(this),t()}_final(e){s(this),e()}sign(e,t,n,i){if(0!==this[l])throw new Error("Client-only method called with server role");"function"==typeof n?(i=n,n=void 0):"object"==typeof n&&null!==n||(n=void 0);let r=0;if((e=Et(e))instanceof Error)throw new Error("Invalid public key argument");if("ssh-rsa"===e.type&&n)switch(n.hash){case"sha256":r=2;break;case"sha512":r=4}const s=(e=e.getPublicSSH()).length,o=t.length;let a=0;const u=Buffer.allocUnsafe(9+s+4+o+4);return St(u,u.length-4,a),u[a+=4]=13,St(u,s,++a),e.copy(u,a+=4),St(u,o,a+=s),t.copy(u,a+=4),St(u,r,a+=o),"function"!=typeof i&&(i=Ct),this[c].push({type:13,cb:i}),this.push(u)}getIdentities(e){if(0!==this[l])throw new Error("Client-only method called with server role");let t=0;const n=Buffer.allocUnsafe(5);return St(n,n.length-4,t),n[t+=4]=11,"function"!=typeof e&&(e=Ct),this[c].push({type:11,cb:e}),this.push(n)}failureReply(e){if(1!==this[l])throw new Error("Server-only method called with client role");if(!(e instanceof i))throw new Error("Wrong request argument");if(e.hasResponded())return!0;let t=0;const n=Buffer.allocUnsafe(5);return St(n,n.length-4,t),n[t+=4]=5,r(this,e,n)}getIdentitiesReply(e,t){if(1!==this[l])throw new Error("Server-only method called with client role");if(!(e instanceof i))throw new Error("Wrong request argument");if(e.hasResponded())return!0;if(11!==e.getType())throw new Error("Invalid response to request");if(!Array.isArray(t))throw new Error("Keys argument must be an array");let n=4;const s=[];for(let e=0;e<t.length;++e){const i=t[e];if("object"!=typeof i||null===i)throw new Error(`Invalid key entry: ${i}`);let r,o;if(At(i))r=i;else if(At(i.pubKey))r=i.pubKey;else{if("object"!=typeof i.pubKey||null===i.pubKey)continue;if(({pubKey:r,comment:o}=i.pubKey),r=Et(r),r instanceof Error)continue}o=r.comment||o,r=r.getPublicSSH(),n+=4+r.length,o&&"string"==typeof o?o=Buffer.from(o):Buffer.isBuffer(o)||(o=Rt),n+=4+o.length,s.push({pubKey:r,comment:o})}let o=0;const a=Buffer.allocUnsafe(5+n);St(a,a.length-4,o),a[o+=4]=12,St(a,s.length,++o),o+=4;for(let e=0;e<s.length;++e){const{pubKey:t,comment:n}=s[e];St(a,t.length,o),t.copy(a,o+=4),St(a,n.length,o+=t.length),o+=4,n.length&&(n.copy(a,o),o+=n.length)}return r(this,e,a)}signReply(e,t){if(1!==this[l])throw new Error("Server-only method called with client role");if(!(e instanceof i))throw new Error("Wrong request argument");if(e.hasResponded())return!0;if(13!==e.getType())throw new Error("Invalid response to request");if(!Buffer.isBuffer(t))throw new Error("Signature argument must be a Buffer");if(0===t.length)throw new Error("Signature argument must be non-empty");let n=0;const s=e.getContext(),o=Buffer.byteLength(s),a=Buffer.allocUnsafe(13+o+4+t.length);return St(a,a.length-4,n),a[n+=4]=14,St(a,4+o+4+t.length,++n),St(a,o,n+=4),a.utf8Write(s,n+=4,o),St(a,t.length,n+=o),t.copy(a,n+=4),r(this,e,a)}}})(),Mt=Symbol("Agent"),Ht=Symbol("Agent Keys"),Ft=Symbol("Agent Keys Index"),jt=Symbol("Agent Init Callbacks");function $t(e){return e instanceof Tt}var Qt={AgentContext:class{constructor(e){if("string"==typeof e)e=Ut(e);else if(!$t(e))throw new Error("Invalid agent argument");this[Mt]=e,this[Ht]=null,this[Ft]=-1,this[jt]=null}init(e){if("function"!=typeof e&&(e=Ct),null===this[Ht])if(null===this[jt]){this[jt]=[e];const t=(...e)=>{process.nextTick(()=>{const t=this[jt];this[jt]=null;for(const n of t)n(...e)})};this[Mt].getIdentities(kt((e,n)=>{if(e)return t(e);if(!Array.isArray(n))return t(new Error("Agent implementation failed to provide keys"));const i=[];for(let e of n)e=Et(e),e instanceof Error||i.push(e);this[Ht]=i,this[Ft]=-1,t()}))}else this[jt].push(e);else process.nextTick(e)}nextKey(){return!(null===this[Ht]||++this[Ft]>=this[Ht].length)&&this[Ht][this[Ft]]}currentKey(){return null===this[Ht]||this[Ft]>=this[Ht].length?null:this[Ht][this[Ft]]}pos(){return null===this[Ht]||this[Ft]>=this[Ht].length?-1:this[Ft]}reset(){this[Ft]=-1}sign(...e){this[Mt].sign(...e)}},AgentProtocol:Dt,BaseAgent:Tt,createAgent:Ut,CygwinAgent:Lt,isAgent:$t,OpenSSHAgent:Ot,PageantAgent:Nt},Wt={};const{kMaxLength:qt}=c,{createInflate:Yt,constants:{DEFLATE:Gt,INFLATE:Kt,Z_DEFAULT_CHUNK:zt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_MEMLEVEL:Vt,Z_DEFAULT_STRATEGY:Jt,Z_DEFAULT_WINDOWBITS:Zt,Z_PARTIAL_FLUSH:en}}=m,tn=Yt()._handle.constructor;function nn(){throw new Error("Should not get here")}function rn(e,t,n){const i=this._owner,r=new Error(e);r.errno=t,r.code=n,i._err=r}function sn(e){e._handle&&(e._handle.close(),e._handle=null)}class on{constructor(e){const t=Zt,n=Xt,i=Vt,r=Jt;this._err=void 0,this._writeState=new Uint32Array(2),this._chunkSize=zt,this._maxOutputLength=qt,this._outBuffer=Buffer.allocUnsafe(this._chunkSize),this._outOffset=0,this._handle=new tn(e),this._handle._owner=this,this._handle.onerror=rn,this._handle.init(t,n,i,r,this._writeState,nn,void 0)}writeSync(e,t){const n=this._handle;if(!n)throw new Error("Invalid Zlib instance");let i,r,s,o=e.length,a=this._chunkSize-this._outOffset,c=0,l=0;const u=this._writeState;let p=this._outBuffer,d=this._outOffset;const h=this._chunkSize;for(;;){if(n.writeSync(en,e,c,o,p,d,a),this._err)throw this._err;i=u[0],r=u[1];const t=o-r,f=a-i;if(f>0){const e=0===d&&f===p.length?p:p.slice(d,d+f);if(d+=f,s?void 0===s.push?s=[s,e]:s.push(e):s=e,l+=e.byteLength,l>this._maxOutputLength)throw sn(this),new Error(`Output length exceeded maximum of ${this._maxOutputLength}`)}else if(0!==f)throw new Error("have should not go down");if((0===i||d>=h)&&(a=h,d=0,p=Buffer.allocUnsafe(h)),0!==i)break;c+=t,o=r}if(this._outBuffer=p,this._outOffset=d,0===l&&(s=Buffer.alloc(0)),t)return s.totalLen=l,s;if(void 0===s.push)return s;const f=Buffer.allocUnsafe(l);for(let e=0,t=0;e<s.length;++e){const n=s[e];f.set(n,t),t+=n.length}return f}}var an={PacketReader:class{cleanup(){}read(e){return e}},PacketWriter:class{constructor(e){this.allocStart=5,this.allocStartKEX=5,this._protocol=e}cleanup(){}alloc(e,t){return void 0===this._protocol._kexinit||t?this._protocol._cipher.allocPacket(e):Buffer.allocUnsafe(e)}finalize(e,t){return e}},ZlibPacketReader:class{constructor(){this._zlib=new on(Kt)}cleanup(){this._zlib&&sn(this._zlib)}read(e){return this._zlib.writeSync(e,!1)}},ZlibPacketWriter:class{constructor(e){this.allocStart=0,this.allocStartKEX=0,this._protocol=e,this._zlib=new on(Gt)}cleanup(){this._zlib&&sn(this._zlib)}alloc(e,t){return Buffer.allocUnsafe(e)}finalize(e,t){if(void 0===this._protocol._kexinit||t){const t=this._zlib.writeSync(e,!0),n=this._protocol._cipher.allocPacket(t.totalLen);if(void 0===t.push)n.set(t,5);else for(let e=0,i=5;e<t.length;++e){const r=t[e];n.set(r,i),i+=r.length}return n}return e}}};const{bufferSlice:cn,bufferParser:ln,doFatalError:un,sigSSHToASN1:pn,writeUInt32BE:dn}=le(),{CHANNEL_OPEN_FAILURE:hn,COMPAT:fn,MESSAGE:mn,TERMINAL_MODE:gn}=ce(),{parseKey:_n}=ft,bn=Array.from(Object.entries(gn)).reduce((e,[t,n])=>({...e,[t]:n}),{});var yn,vn,An,En,wn={[mn.DISCONNECT]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE(),i=ln.readString(!0),r=ln.readString();if(ln.clear(),void 0===r)return un(e,"Inbound: Malformed DISCONNECT packet");e._debug&&e._debug(`Inbound: Received DISCONNECT (${n}, "${i}")`);const s=e._handlers.DISCONNECT;s&&s(e,n,i)},[mn.IGNORE]:(e,t)=>{e._debug&&e._debug("Inbound: Received IGNORE")},[mn.UNIMPLEMENTED]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE();if(ln.clear(),void 0===n)return un(e,"Inbound: Malformed UNIMPLEMENTED packet");e._debug&&e._debug(`Inbound: Received UNIMPLEMENTED (seqno ${n})`)},[mn.DEBUG]:(e,t)=>{ln.init(t,1);const n=ln.readBool(),i=ln.readString(!0),r=ln.readString();if(ln.clear(),void 0===r)return un(e,"Inbound: Malformed DEBUG packet");e._debug&&e._debug("Inbound: Received DEBUG");const s=e._handlers.DEBUG;s&&s(e,n,i)},[mn.SERVICE_REQUEST]:(e,t)=>{ln.init(t,1);const n=ln.readString(!0);if(ln.clear(),void 0===n)return un(e,"Inbound: Malformed SERVICE_REQUEST packet");e._debug&&e._debug(`Inbound: Received SERVICE_REQUEST (${n})`);const i=e._handlers.SERVICE_REQUEST;i&&i(e,n)},[mn.SERVICE_ACCEPT]:(e,t)=>{ln.init(t,1);const n=ln.readString(!0);if(ln.clear(),void 0===n)return un(e,"Inbound: Malformed SERVICE_ACCEPT packet");e._debug&&e._debug(`Inbound: Received SERVICE_ACCEPT (${n})`);const i=e._handlers.SERVICE_ACCEPT;i&&i(e,n)},[mn.EXT_INFO]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE();let i;if(void 0!==n){i=[];for(let e=0;e<n;++e){const e=ln.readString(!0),t=ln.readString();if(void 0===t){i=void 0;break}if("server-sig-algs"===e){const n=t.latin1Slice(0,t.length).split(",");i.push({name:e,algs:n});continue}}}if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed EXT_INFO packet");e._debug&&e._debug("Inbound: Received EXT_INFO");const r=e._handlers.EXT_INFO;r&&r(e,i)},[mn.USERAUTH_REQUEST]:(e,t)=>{ln.init(t,1);const n=ln.readString(!0),i=ln.readString(!0),r=ln.readString(!0);let s,o;switch(r){case"none":s=null;break;case"password":{const e=ln.readBool();if(void 0!==e&&(s=ln.readString(!0),void 0!==s&&e)){const e=ln.readString(!0);s=void 0!==e?{oldPassword:s,newPassword:e}:void 0}break}case"publickey":{const n=ln.readBool();if(void 0!==n){const i=ln.readString(!0);let r=i;const a=ln.readString();let c;switch(i){case"rsa-sha2-256":r="ssh-rsa",c="sha256";break;case"rsa-sha2-512":r="ssh-rsa",c="sha512"}if(n){const n=ln.pos();let o=ln.readString();if(void 0!==o&&(o.length>4+i.length+4&&o.utf8Slice(4,4+i.length)===i&&(o=cn(o,4+i.length+4)),o=pn(o,r),o)){const i=e._kex.sessionID,l=Buffer.allocUnsafe(4+i.length+n);dn(l,i.length,0),l.set(i,4),l.set(new Uint8Array(t.buffer,t.byteOffset,n),4+i.length),s={keyAlgo:r,key:a,signature:o,blob:l,hashAlgo:c}}}else s={keyAlgo:r,key:a,hashAlgo:c},o="publickey -- check"}break}case"hostbased":{const n=ln.readString(!0);let i=n;const r=ln.readString(),o=ln.readString(!0),a=ln.readString(!0);let c;switch(n){case"rsa-sha2-256":i="ssh-rsa",c="sha256";break;case"rsa-sha2-512":i="ssh-rsa",c="sha512"}const l=ln.pos();let u=ln.readString();if(void 0!==u&&(u.length>4+n.length+4&&u.utf8Slice(4,4+n.length)===n&&(u=cn(u,4+n.length+4)),u=pn(u,i),void 0!==u)){const n=e._kex.sessionID,p=Buffer.allocUnsafe(4+n.length+l);dn(p,n.length,0),p.set(n,4),p.set(new Uint8Array(t.buffer,t.byteOffset,l),4+n.length),s={keyAlgo:i,key:r,signature:u,blob:p,localHostname:o,localUsername:a,hashAlgo:c}}break}case"keyboard-interactive":ln.skipString(),s=ln.readList();break;default:void 0!==r&&(s=ln.readRaw())}if(ln.clear(),void 0===s)return un(e,"Inbound: Malformed USERAUTH_REQUEST packet");void 0===o&&(o=r),e._authsQueue.push(r),e._debug&&e._debug(`Inbound: Received USERAUTH_REQUEST (${o})`);const a=e._handlers.USERAUTH_REQUEST;a&&a(e,n,i,r,s)},[mn.USERAUTH_FAILURE]:(e,t)=>{ln.init(t,1);const n=ln.readList(),i=ln.readBool();if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed USERAUTH_FAILURE packet");e._debug&&e._debug(`Inbound: Received USERAUTH_FAILURE (${n})`),e._authsQueue.shift();const r=e._handlers.USERAUTH_FAILURE;r&&r(e,n,i)},[mn.USERAUTH_SUCCESS]:(e,t)=>{e._debug&&e._debug("Inbound: Received USERAUTH_SUCCESS"),e._authsQueue.shift();const n=e._handlers.USERAUTH_SUCCESS;n&&n(e)},[mn.USERAUTH_BANNER]:(e,t)=>{ln.init(t,1);const n=ln.readString(!0),i=ln.readString();if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed USERAUTH_BANNER packet");e._debug&&e._debug("Inbound: Received USERAUTH_BANNER");const r=e._handlers.USERAUTH_BANNER;r&&r(e,n)},60:(e,t)=>{if(e._authsQueue.length)switch(e._authsQueue[0]){case"password":{ln.init(t,1);const n=ln.readString(!0),i=ln.readString();if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed USERAUTH_PASSWD_CHANGEREQ packet");e._debug&&e._debug("Inbound: Received USERAUTH_PASSWD_CHANGEREQ");const r=e._handlers.USERAUTH_PASSWD_CHANGEREQ;r&&r(e,n);break}case"publickey":{ln.init(t,1);const n=ln.readString(!0),i=ln.readString();if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed USERAUTH_PK_OK packet");e._debug&&e._debug("Inbound: Received USERAUTH_PK_OK"),e._authsQueue.shift();const r=e._handlers.USERAUTH_PK_OK;r&&r(e,n,i);break}case"keyboard-interactive":{ln.init(t,1);const n=ln.readString(!0),i=ln.readString(!0);ln.readString();const r=ln.readUInt32BE();let s;if(void 0!==r){let e;for(s=new Array(r),e=0;e<r;++e){const t=ln.readString(!0),n=ln.readBool();if(void 0===n)break;s[e]={prompt:t,echo:n}}e!==r&&(s=void 0)}if(ln.clear(),void 0===s)return un(e,"Inbound: Malformed USERAUTH_INFO_REQUEST packet");e._debug&&e._debug("Inbound: Received USERAUTH_INFO_REQUEST");const o=e._handlers.USERAUTH_INFO_REQUEST;o&&o(e,n,i,s);break}default:e._debug&&e._debug("Inbound: Received unexpected payload type 60")}else e._debug&&e._debug("Inbound: Received payload type 60 without auth")},61:(e,t)=>{if(!e._authsQueue.length)return void(e._debug&&e._debug("Inbound: Received payload type 61 without auth"));if("keyboard-interactive"!==e._authsQueue[0])return un(e,"Inbound: Received unexpected payload type 61");ln.init(t,1);const n=ln.readUInt32BE();let i;if(void 0!==n){let e;for(i=new Array(n),e=0;e<n;++e){const t=ln.readString(!0);if(void 0===t)break;i[e]=t}e!==n&&(i=void 0)}if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed USERAUTH_INFO_RESPONSE packet");e._debug&&e._debug("Inbound: Received USERAUTH_INFO_RESPONSE");const r=e._handlers.USERAUTH_INFO_RESPONSE;r&&r(e,i)},[mn.GLOBAL_REQUEST]:(e,t)=>{ln.init(t,1);const n=ln.readString(!0),i=ln.readBool();let r;if(void 0!==i)switch(n){case"tcpip-forward":case"cancel-tcpip-forward":{const e=ln.readString(!0),t=ln.readUInt32BE();void 0!==t&&(r={bindAddr:e,bindPort:t});break}case"streamlocal-forward@openssh.com":case"cancel-streamlocal-forward@openssh.com":{const e=ln.readString(!0);void 0!==e&&(r={socketPath:e});break}case"no-more-sessions@openssh.com":r=null;break;case"hostkeys-00@openssh.com":for(r=[];ln.avail()>0;){const e=ln.readString();if(void 0===e){r=void 0;break}const t=_n(e);t instanceof Error||r.push(t)}break;default:r=ln.readRaw()}if(ln.clear(),void 0===r)return un(e,"Inbound: Malformed GLOBAL_REQUEST packet");e._debug&&e._debug(`Inbound: GLOBAL_REQUEST (${n})`);const s=e._handlers.GLOBAL_REQUEST;s?s(e,n,i,r):e.requestFailure()},[mn.REQUEST_SUCCESS]:(e,t)=>{const n=t.length>1?cn(t,1):null;e._debug&&e._debug("Inbound: REQUEST_SUCCESS");const i=e._handlers.REQUEST_SUCCESS;i&&i(e,n)},[mn.REQUEST_FAILURE]:(e,t)=>{e._debug&&e._debug("Inbound: Received REQUEST_FAILURE");const n=e._handlers.REQUEST_FAILURE;n&&n(e)},[mn.CHANNEL_OPEN]:(e,t)=>{ln.init(t,1);const n=ln.readString(!0),i=ln.readUInt32BE(),r=ln.readUInt32BE(),s=ln.readUInt32BE();let o;switch(n){case"forwarded-tcpip":case"direct-tcpip":{const e=ln.readString(!0),t=ln.readUInt32BE(),a=ln.readString(!0),c=ln.readUInt32BE();void 0!==c&&(o={type:n,sender:i,window:r,packetSize:s,data:{destIP:e,destPort:t,srcIP:a,srcPort:c}});break}case"forwarded-streamlocal@openssh.com":case"direct-streamlocal@openssh.com":{const e=ln.readString(!0);void 0!==e&&(o={type:n,sender:i,window:r,packetSize:s,data:{socketPath:e}});break}case"x11":{const e=ln.readString(!0),t=ln.readUInt32BE();void 0!==t&&(o={type:n,sender:i,window:r,packetSize:s,data:{srcIP:e,srcPort:t}});break}default:o={type:n,sender:i,window:r,packetSize:s,data:{}}}if(ln.clear(),void 0===o)return un(e,"Inbound: Malformed CHANNEL_OPEN packet");e._debug&&e._debug(`Inbound: CHANNEL_OPEN (s:${i}, ${n})`);const a=e._handlers.CHANNEL_OPEN;a?a(e,o):e.channelOpenFail(o.sender,hn.ADMINISTRATIVELY_PROHIBITED,"","")},[mn.CHANNEL_OPEN_CONFIRMATION]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE(),i=ln.readUInt32BE(),r=ln.readUInt32BE(),s=ln.readUInt32BE(),o=ln.avail()?ln.readRaw():void 0;if(ln.clear(),void 0===s)return un(e,"Inbound: Malformed CHANNEL_OPEN_CONFIRMATION packet");e._debug&&e._debug(`Inbound: CHANNEL_OPEN_CONFIRMATION (r:${n}, s:${i})`);const a=e._handlers.CHANNEL_OPEN_CONFIRMATION;a&&a(e,{recipient:n,sender:i,window:r,packetSize:s,data:o})},[mn.CHANNEL_OPEN_FAILURE]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE(),i=ln.readUInt32BE(),r=ln.readString(!0),s=ln.readString();if(ln.clear(),void 0===s)return un(e,"Inbound: Malformed CHANNEL_OPEN_FAILURE packet");e._debug&&e._debug(`Inbound: CHANNEL_OPEN_FAILURE (r:${n})`);const o=e._handlers.CHANNEL_OPEN_FAILURE;o&&o(e,n,i,r)},[mn.CHANNEL_WINDOW_ADJUST]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE(),i=ln.readUInt32BE();if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed CHANNEL_WINDOW_ADJUST packet");e._debug&&e._debug(`Inbound: CHANNEL_WINDOW_ADJUST (r:${n}, ${i})`);const r=e._handlers.CHANNEL_WINDOW_ADJUST;r&&r(e,n,i)},[mn.CHANNEL_DATA]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE(),i=ln.readString();if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed CHANNEL_DATA packet");e._debug&&e._debug(`Inbound: CHANNEL_DATA (r:${n}, ${i.length})`);const r=e._handlers.CHANNEL_DATA;r&&r(e,n,i)},[mn.CHANNEL_EXTENDED_DATA]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE(),i=ln.readUInt32BE(),r=ln.readString();if(ln.clear(),void 0===r)return un(e,"Inbound: Malformed CHANNEL_EXTENDED_DATA packet");e._debug&&e._debug(`Inbound: CHANNEL_EXTENDED_DATA (r:${n}, ${r.length})`);const s=e._handlers.CHANNEL_EXTENDED_DATA;s&&s(e,n,r,i)},[mn.CHANNEL_EOF]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE();if(ln.clear(),void 0===n)return un(e,"Inbound: Malformed CHANNEL_EOF packet");e._debug&&e._debug(`Inbound: CHANNEL_EOF (r:${n})`);const i=e._handlers.CHANNEL_EOF;i&&i(e,n)},[mn.CHANNEL_CLOSE]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE();if(ln.clear(),void 0===n)return un(e,"Inbound: Malformed CHANNEL_CLOSE packet");e._debug&&e._debug(`Inbound: CHANNEL_CLOSE (r:${n})`);const i=e._handlers.CHANNEL_CLOSE;i&&i(e,n)},[mn.CHANNEL_REQUEST]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE(),i=ln.readString(!0),r=ln.readBool();let s;if(void 0!==r)switch(i){case"exit-status":s=ln.readUInt32BE(),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i}: ${s})`);break;case"exit-signal":{let t,r;if(e._compatFlags&fn.OLD_EXIT){const e=ln.readUInt32BE();switch(e){case 1:t="HUP";break;case 2:t="INT";break;case 3:t="QUIT";break;case 6:t="ABRT";break;case 9:t="KILL";break;case 14:t="ALRM";break;case 15:t="TERM";break;default:void 0!==e&&(t=`UNKNOWN (${e})`)}r=!1}else t=ln.readString(!0),r=ln.readBool(),void 0===r&&(t=void 0);const o=ln.readString(!0);void 0!==ln.skipString()&&(s={signal:t,coreDumped:r,errorMessage:o}),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i}: ${t})`);break}case"pty-req":{const t=ln.readString(!0),r=ln.readUInt32BE(),o=ln.readUInt32BE(),a=ln.readUInt32BE(),c=ln.readUInt32BE(),l=ln.readString();if(void 0!==l){ln.init(l,1);let e={};for(;ln.avail();){const t=ln.readByte();if(t===gn.TTY_OP_END)break;const n=bn[t],i=ln.readUInt32BE();if(void 0===t||void 0===n||void 0===i){e=void 0;break}e[n]=i}void 0!==e&&(s={term:t,cols:r,rows:o,width:a,height:c,modes:e})}e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i})`);break}case"window-change":{const t=ln.readUInt32BE(),r=ln.readUInt32BE(),o=ln.readUInt32BE(),a=ln.readUInt32BE();void 0!==a&&(s={cols:t,rows:r,width:o,height:a}),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i})`);break}case"x11-req":{const t=ln.readBool(),r=ln.readString(!0),o=ln.readString(),a=ln.readUInt32BE();void 0!==a&&(s={single:t,protocol:r,cookie:o,screen:a}),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i})`);break}case"env":{const t=ln.readString(!0),r=ln.readString(!0);void 0!==r&&(s={name:t,value:r}),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i}: ${t}=${r})`);break}case"shell":case"auth-agent-req@openssh.com":s=null,e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i})`);break;case"exec":case"subsystem":case"signal":s=ln.readString(!0),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i}: ${s})`);break;case"xon-xoff":s=ln.readBool(),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i}: ${s})`);break;default:s=ln.avail()?ln.readRaw():null,e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i})`)}if(ln.clear(),void 0===s)return un(e,"Inbound: Malformed CHANNEL_REQUEST packet");const o=e._handlers.CHANNEL_REQUEST;o&&o(e,n,i,r,s)},[mn.CHANNEL_SUCCESS]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE();if(ln.clear(),void 0===n)return un(e,"Inbound: Malformed CHANNEL_SUCCESS packet");e._debug&&e._debug(`Inbound: CHANNEL_SUCCESS (r:${n})`);const i=e._handlers.CHANNEL_SUCCESS;i&&i(e,n)},[mn.CHANNEL_FAILURE]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE();if(ln.clear(),void 0===n)return un(e,"Inbound: Malformed CHANNEL_FAILURE packet");e._debug&&e._debug(`Inbound: CHANNEL_FAILURE (r:${n})`);const i=e._handlers.CHANNEL_FAILURE;i&&i(e,n)}};function xn(){if(vn)return yn;vn=1;const e=new Array(256);return[Sn().HANDLERS,wn].forEach(t=>{for(let[n,i]of Object.entries(t))n=+n,isFinite(n)&&n>=0&&n<e.length&&(e[n]=i)}),yn=e}function Sn(){if(En)return An;En=1;const{createDiffieHellman:e,createDiffieHellmanGroup:t,createECDH:n,createHash:i,createPublicKey:r,diffieHellman:s,generateKeyPairSync:a,randomFillSync:c}=o,{Ber:l}=K,{COMPAT:u,curve25519Supported:p,DEFAULT_KEX:d,DEFAULT_SERVER_HOST_KEY:h,DEFAULT_CIPHER:f,DEFAULT_MAC:m,DEFAULT_COMPRESSION:g,DISCONNECT_REASON:_,MESSAGE:b}=ce(),{CIPHER_INFO:y,createCipher:v,createDecipher:A,MAC_INFO:E}=me(),{parseDERKey:w}=ft,{bufferFill:x,bufferParser:S,convertSignature:I,doFatalError:k,FastBuffer:C,sigSSHToASN1:R,writeUInt32BE:B}=le(),{PacketReader:T,PacketWriter:O,ZlibPacketReader:N,ZlibPacketWriter:L}=an;let P;const U=Buffer.alloc(0);function D(e){let t;if(e._compatFlags&u.BAD_DHGEX){const n=e._offer.lists.kex;let i=n.array,r=!1;for(let e=0;e<i.length;++e)i[e].includes("group-exchange")&&(r||(r=!0,i=i.slice()),i.splice(e--,1));if(r){let r=17+e._offer.totalSize+1+4;const s=Buffer.from(i.join(","));r-=n.buffer.length-s.length;const o=e._offer.lists.all,a=new Uint8Array(o.buffer,o.byteOffset+4+n.buffer.length,o.length-(4+n.buffer.length));t=Buffer.allocUnsafe(r),B(t,s.length,17),t.set(s,21),t.set(a,21+s.length)}}void 0===t&&(t=Buffer.allocUnsafe(17+e._offer.totalSize+1+4),e._offer.copyAllTo(t,17)),e._debug&&e._debug("Outbound: Sending KEXINIT"),t[0]=b.KEXINIT,c(t,1,16),x(t,0,t.length-5),e._kexinit=t,e._packetRW.write.allocStart=0;{const n=e._packetRW.write.allocStartKEX,i=e._packetRW.write.alloc(t.length,!0);i.set(t,n),e._cipher.encrypt(e._packetRW.write.finalize(i,!0))}}function M(e,t){const n={kex:void 0,serverHostKey:void 0,cs:{cipher:void 0,mac:void 0,compress:void 0,lang:void 0},sc:{cipher:void 0,mac:void 0,compress:void 0,lang:void 0}};if(S.init(t,17),void 0===(n.kex=S.readList())||void 0===(n.serverHostKey=S.readList())||void 0===(n.cs.cipher=S.readList())||void 0===(n.sc.cipher=S.readList())||void 0===(n.cs.mac=S.readList())||void 0===(n.sc.mac=S.readList())||void 0===(n.cs.compress=S.readList())||void 0===(n.sc.compress=S.readList())||void 0===(n.cs.lang=S.readList())||void 0===(n.sc.lang=S.readList()))return S.clear(),k(e,"Received malformed KEXINIT","handshake",_.KEY_EXCHANGE_FAILED);const i=S.pos(),r=i<t.length&&1===t[i];S.clear();const s=e._offer,o=n;let a,c,l,p=s.lists.kex.array;if(e._compatFlags&u.BAD_DHGEX){let e=!1;for(let t=0;t<p.length;++t)-1!==p[t].indexOf("group-exchange")&&(e||(e=!0,p=p.slice()),p.splice(t--,1))}const d=e._debug;let h;if(d&&d("Inbound: Handshake in progress"),d&&d(`Handshake: (local) KEX method: ${p}`),d&&d(`Handshake: (remote) KEX method: ${o.kex}`),e._server?(c=p,a=o.kex,h=-1!==a.indexOf("ext-info-c")):(c=o.kex,a=p,h=-1!==c.indexOf("ext-info-s")),void 0===e._strictMode&&(e._server?e._strictMode=-1!==a.indexOf("kex-strict-c-v00@openssh.com"):e._strictMode=-1!==c.indexOf("kex-strict-s-v00@openssh.com"),e._strictMode&&(d&&d("Handshake: strict KEX mode enabled"),1!==e._decipher.inSeqno)))return d&&d("Handshake: KEXINIT not first packet in strict KEX mode"),k(e,"Handshake failed: KEXINIT not first packet in strict KEX mode","handshake",_.KEY_EXCHANGE_FAILED);for(l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: no matching key exchange algorithm"),k(e,"Handshake failed: no matching key exchange algorithm","handshake",_.KEY_EXCHANGE_FAILED);n.kex=a[l],d&&d(`Handshake: KEX algorithm: ${a[l]}`),!r||o.kex.length&&a[l]===o.kex[0]||(e._skipNextInboundPacket=!0);const f=s.lists.serverHostKey.array;for(d&&d(`Handshake: (local) Host key format: ${f}`),d&&d(`Handshake: (remote) Host key format: ${o.serverHostKey}`),e._server?(c=f,a=o.serverHostKey):(c=o.serverHostKey,a=f),l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: No matching host key format"),k(e,"Handshake failed: no matching host key format","handshake",_.KEY_EXCHANGE_FAILED);n.serverHostKey=a[l],d&&d(`Handshake: Host key format: ${a[l]}`);const m=s.lists.cs.cipher.array;for(d&&d(`Handshake: (local) C->S cipher: ${m}`),d&&d(`Handshake: (remote) C->S cipher: ${o.cs.cipher}`),e._server?(c=m,a=o.cs.cipher):(c=o.cs.cipher,a=m),l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: No matching C->S cipher"),k(e,"Handshake failed: no matching C->S cipher","handshake",_.KEY_EXCHANGE_FAILED);n.cs.cipher=a[l],d&&d(`Handshake: C->S Cipher: ${a[l]}`);const g=s.lists.sc.cipher.array;for(d&&d(`Handshake: (local) S->C cipher: ${g}`),d&&d(`Handshake: (remote) S->C cipher: ${o.sc.cipher}`),e._server?(c=g,a=o.sc.cipher):(c=o.sc.cipher,a=g),l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: No matching S->C cipher"),k(e,"Handshake failed: no matching S->C cipher","handshake",_.KEY_EXCHANGE_FAILED);n.sc.cipher=a[l],d&&d(`Handshake: S->C cipher: ${a[l]}`);const b=s.lists.cs.mac.array;if(d&&d(`Handshake: (local) C->S MAC: ${b}`),d&&d(`Handshake: (remote) C->S MAC: ${o.cs.mac}`),y[n.cs.cipher].authLen>0)n.cs.mac="",d&&d("Handshake: C->S MAC: <implicit>");else{for(e._server?(c=b,a=o.cs.mac):(c=o.cs.mac,a=b),l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: No matching C->S MAC"),k(e,"Handshake failed: no matching C->S MAC","handshake",_.KEY_EXCHANGE_FAILED);n.cs.mac=a[l],d&&d(`Handshake: C->S MAC: ${a[l]}`)}const v=s.lists.sc.mac.array;if(d&&d(`Handshake: (local) S->C MAC: ${v}`),d&&d(`Handshake: (remote) S->C MAC: ${o.sc.mac}`),y[n.sc.cipher].authLen>0)n.sc.mac="",d&&d("Handshake: S->C MAC: <implicit>");else{for(e._server?(c=v,a=o.sc.mac):(c=o.sc.mac,a=v),l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: No matching S->C MAC"),k(e,"Handshake failed: no matching S->C MAC","handshake",_.KEY_EXCHANGE_FAILED);n.sc.mac=a[l],d&&d(`Handshake: S->C MAC: ${a[l]}`)}const A=s.lists.cs.compress.array;for(d&&d(`Handshake: (local) C->S compression: ${A}`),d&&d(`Handshake: (remote) C->S compression: ${o.cs.compress}`),e._server?(c=A,a=o.cs.compress):(c=o.cs.compress,a=A),l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: No matching C->S compression"),k(e,"Handshake failed: no matching C->S compression","handshake",_.KEY_EXCHANGE_FAILED);n.cs.compress=a[l],d&&d(`Handshake: C->S compression: ${a[l]}`);const E=s.lists.sc.compress.array;for(d&&d(`Handshake: (local) S->C compression: ${E}`),d&&d(`Handshake: (remote) S->C compression: ${o.sc.compress}`),e._server?(c=E,a=o.sc.compress):(c=o.sc.compress,a=E),l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: No matching S->C compression"),k(e,"Handshake failed: no matching S->C compression","handshake",_.KEY_EXCHANGE_FAILED);n.sc.compress=a[l],d&&d(`Handshake: S->C compression: ${a[l]}`),n.cs.lang="",n.sc.lang="",e._kex&&(e._kexinit||D(e),e._decipher._onPayload=Q.bind(e,{firstPacket:!1})),e._kex=H(n,e,t),e._kex.remoteExtInfoEnabled=h,e._kex.start()}const H=(()=>{function o(e){let t,n=0,i=e.length;for(;0===e[n];)++n,--i;return 128&e[n]?(t=Buffer.allocUnsafe(1+i),t[0]=0,e.copy(t,1,n),e=t):i!==e.length&&(t=Buffer.allocUnsafe(i),e.copy(t,0,n),e=t),e}class c{constructor(e,t,n){this._protocol=t,this.sessionID=t._kex?t._kex.sessionID:void 0,this.negotiated=e,this.remoteExtInfoEnabled=!1,this._step=1,this._public=null,this._dh=null,this._sentNEWKEYS=!1,this._receivedNEWKEYS=!1,this._finished=!1,this._hostVerified=!1,this._kexinit=t._kexinit,this._remoteKexinit=n,this._identRaw=t._identRaw,this._remoteIdentRaw=t._remoteIdentRaw,this._hostKey=void 0,this._dhData=void 0,this._sig=void 0}finish(e){if(this._finished)return!1;this._finished=!0;const t=this._protocol._server,n=this.negotiated,r=this.convertPublicKey(this._dhData);let s=this.computeSecret(this._dhData);if(s instanceof Error)return s.message=`Error while computing DH secret (${this.type}): ${s.message}`,s.level="handshake",k(this._protocol,s,_.KEY_EXCHANGE_FAILED);const o=i(this.hashName);j(o,t?this._remoteIdentRaw:this._identRaw),j(o,t?this._identRaw:this._remoteIdentRaw),j(o,t?this._remoteKexinit:this._kexinit),j(o,t?this._kexinit:this._remoteKexinit);const a=t?this._hostKey.getPublicSSH():this._hostKey;if(j(o,a),"groupex"===this.type){const e=this.getDHParams(),t=Buffer.allocUnsafe(4);B(t,this._minBits,0),o.update(t),B(t,this._prefBits,0),o.update(t),B(t,this._maxBits,0),o.update(t),j(o,e.prime),j(o,e.generator)}j(o,t?r:this.getPublicKey());const c=t?this.getPublicKey():r;j(o,c),j(o,s);const l=o.digest();if(t){let e;switch(this.negotiated.serverHostKey){case"rsa-sha2-256":e="sha256";break;case"rsa-sha2-512":e="sha512"}this._protocol._debug&&this._protocol._debug("Generating signature ...");let t=this._hostKey.sign(l,e);if(t instanceof Error)return k(this._protocol,`Handshake failed: signature generation failed for ${this._hostKey.type} host key: ${t.message}`,"handshake",_.KEY_EXCHANGE_FAILED);if(t=I(t,this._hostKey.type),!1===t)return k(this._protocol,`Handshake failed: signature conversion failed for ${this._hostKey.type} host key`,"handshake",_.KEY_EXCHANGE_FAILED);const n=this.negotiated.serverHostKey,i=Buffer.byteLength(n),r=4+i+4+t.length;let s=this._protocol._packetRW.write.allocStartKEX;const o=this._protocol._packetRW.write.alloc(5+a.length+4+c.length+4+r,!0);if(o[s]=b.KEXDH_REPLY,B(o,a.length,++s),o.set(a,s+=4),B(o,c.length,s+=a.length),o.set(c,s+=4),B(o,r,s+=c.length),B(o,i,s+=4),o.utf8Write(n,s+=4,i),B(o,t.length,s+=i),o.set(t,s+=4),this._protocol._debug){let e;switch(this.type){case"group":e="KEXDH_REPLY";break;case"groupex":e="KEXDH_GEX_REPLY";break;default:e="KEXECDH_REPLY"}this._protocol._debug(`Outbound: Sending ${e}`)}this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(o,!0))}else{S.init(this._sig,0);const e=S.readString(!0);if(!e)return k(this._protocol,"Malformed packet while reading signature","handshake",_.KEY_EXCHANGE_FAILED);if(e!==n.serverHostKey)return k(this._protocol,`Wrong signature type: ${e}, expected: ${n.serverHostKey}`,"handshake",_.KEY_EXCHANGE_FAILED);let t,i,r=S.readString();if(S.clear(),void 0===r)return k(this._protocol,"Malformed packet while reading signature","handshake",_.KEY_EXCHANGE_FAILED);if(!(r=R(r,e)))return k(this._protocol,"Malformed signature","handshake",_.KEY_EXCHANGE_FAILED);{S.init(this._hostKey,0);const e=S.readString(!0),n=this._hostKey.slice(S.pos());if(S.clear(),t=w(n,e),t instanceof Error)return t.level="handshake",k(this._protocol,t,_.KEY_EXCHANGE_FAILED)}switch(this.negotiated.serverHostKey){case"rsa-sha2-256":i="sha256";break;case"rsa-sha2-512":i="sha512"}this._protocol._debug&&this._protocol._debug("Verifying signature ...");const s=t.verify(l,r,i);if(!0!==s)return s instanceof Error?this._protocol._debug&&this._protocol._debug(`Signature verification failed: ${s.stack}`):this._protocol._debug&&this._protocol._debug("Signature verification failed"),k(this._protocol,"Handshake failed: signature verification failed","handshake",_.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug("Verified signature")}let u,p;!t&&e||W(this);const d=e=>{if(u)return W(this),u.outbound.seqno=this._protocol._cipher.outSeqno,this._protocol._cipher.free(),this._protocol._cipher=v(u),this._protocol._packetRW.write=p,u=void 0,p=void 0,this._protocol._onHandshakeComplete(n),!1;this.sessionID||(this.sessionID=l);{const e=Buffer.allocUnsafe(4+s.length);B(e,s.length,0),e.set(s,4),s=e}const i=y[n.cs.cipher],r=y[n.sc.cipher],o=$(i.ivLen,this.hashName,s,l,this.sessionID,"A"),a=$(r.ivLen,this.hashName,s,l,this.sessionID,"B"),c=$(i.keyLen,this.hashName,s,l,this.sessionID,"C"),h=$(r.keyLen,this.hashName,s,l,this.sessionID,"D");let f,m,g,_;i.authLen||(f=E[n.cs.mac],m=$(f.len,this.hashName,s,l,this.sessionID,"E")),r.authLen||(g=E[n.sc.mac],_=$(g.len,this.hashName,s,l,this.sessionID,"F"));const b={inbound:{onPayload:this._protocol._onPayload,seqno:this._protocol._decipher.inSeqno,decipherInfo:t?i:r,decipherIV:t?o:a,decipherKey:t?c:h,macInfo:t?f:g,macKey:t?m:_},outbound:{onWrite:this._protocol._onWrite,seqno:this._protocol._cipher.outSeqno,cipherInfo:t?r:i,cipherIV:t?a:o,cipherKey:t?h:c,macInfo:t?g:f,macKey:t?_:m}};this._protocol._decipher.free(),u=b,this._protocol._decipher=A(b);const w={read:void 0,write:void 0};switch(n.cs.compress){case"zlib":t?w.read=new N:w.write=new L(this._protocol);break;case"zlib@openssh.com":if(this._protocol._authenticated){t?w.read=new N:w.write=new L(this._protocol);break}default:t?w.read=new T:w.write=new O(this._protocol)}switch(n.sc.compress){case"zlib":t?w.write=new L(this._protocol):w.read=new N;break;case"zlib@openssh.com":if(this._protocol._authenticated){t?w.write=new L(this._protocol):w.read=new N;break}default:t?w.write=new O(this._protocol):w.read=new T}return this._protocol._packetRW.read.cleanup(),this._protocol._packetRW.write.cleanup(),this._protocol._packetRW.read=w.read,p=w.write,this._public=null,this._dh=null,this._kexinit=this._protocol._kexinit=void 0,this._remoteKexinit=void 0,this._identRaw=void 0,this._remoteIdentRaw=void 0,this._hostKey=void 0,this._dhData=void 0,this._sig=void 0,!e&&d()};return(t||e)&&(this.finish=d),t?void 0:d(e)}start(){if(!this._protocol._server){if(this._protocol._debug){let e;if("group"===this.type)e="KEXDH_INIT";else e="KEXECDH_INIT";this._protocol._debug(`Outbound: Sending ${e}`)}const e=this.getPublicKey();let t=this._protocol._packetRW.write.allocStartKEX;const n=this._protocol._packetRW.write.alloc(5+e.length,!0);n[t]=b.KEXDH_INIT,B(n,e.length,++t),n.set(e,t+=4),this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(n,!0))}}getPublicKey(){this.generateKeys();const e=this._public;if(e)return this.convertPublicKey(e)}convertPublicKey(e){let t,n=0,i=e.length;for(;0===e[n];)++n,--i;return 128&e[n]?(t=Buffer.allocUnsafe(1+i),t[0]=0,e.copy(t,1,n),t):(i!==e.length&&(t=Buffer.allocUnsafe(i),e.copy(t,0,n),e=t),e)}computeSecret(e){this.generateKeys();try{return o(this._dh.computeSecret(e))}catch(e){return e}}parse(e){const t=e[0];switch(this._step){case 1:if(this._protocol._server){if(t!==b.KEXDH_INIT)return k(this._protocol,`Received packet ${t} instead of ${b.KEXDH_INIT}`,"handshake",_.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug("Received DH Init"),S.init(e,1);const n=S.readString();if(S.clear(),void 0===n)return k(this._protocol,"Received malformed KEX*_INIT","handshake",_.KEY_EXCHANGE_FAILED);this._dhData=n;let i=this._protocol._hostKeys[this.negotiated.serverHostKey];Array.isArray(i)&&(i=i[0]),this._hostKey=i,this.finish()}else{if(t!==b.KEXDH_REPLY)return k(this._protocol,`Received packet ${t} instead of ${b.KEXDH_REPLY}`,"handshake",_.KEY_EXCHANGE_FAILED);let n,i,r;if(this._protocol._debug&&this._protocol._debug("Received DH Reply"),S.init(e,1),void 0===(n=S.readString())||void 0===(i=S.readString())||void 0===(r=S.readString()))return S.clear(),k(this._protocol,"Received malformed KEX*_REPLY","handshake",_.KEY_EXCHANGE_FAILED);S.clear(),S.init(n,0);const s=S.readString(!0);if(S.clear(),void 0===s)return k(this._protocol,"Received malformed host public key","handshake",_.KEY_EXCHANGE_FAILED);if(s!==this.negotiated.serverHostKey)switch(this.negotiated.serverHostKey){case"rsa-sha2-256":case"rsa-sha2-512":if("ssh-rsa"===s)break;default:return k(this._protocol,"Host key does not match negotiated type","handshake",_.KEY_EXCHANGE_FAILED)}this._hostKey=n,this._dhData=i,this._sig=r;let o,a=!1;if(void 0===this._protocol._hostVerifier?(o=!0,this._protocol._debug&&this._protocol._debug("Host accepted by default (no verification)")):o=this._protocol._hostVerifier(n,e=>{if(!a){if(a=!0,!1===e)return this._protocol._debug&&this._protocol._debug("Host denied (verification failed)"),k(this._protocol,"Host denied (verification failed)","handshake",_.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug("Host accepted (verified)"),this._hostVerified=!0,this._receivedNEWKEYS?this.finish():W(this)}}),void 0===o)return void++this._step;if(a=!0,!1===o)return this._protocol._debug&&this._protocol._debug("Host denied (verification failed)"),k(this._protocol,"Host denied (verification failed)","handshake",_.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug("Host accepted (verified)"),this._hostVerified=!0,W(this)}++this._step;break;case 2:return t!==b.NEWKEYS?k(this._protocol,`Received packet ${t} instead of ${b.NEWKEYS}`,"handshake",_.KEY_EXCHANGE_FAILED):(this._protocol._debug&&this._protocol._debug("Inbound: NEWKEYS"),this._receivedNEWKEYS=!0,this._protocol._strictMode&&(this._protocol._decipher.inSeqno=0),++this._step,this.finish(!this._protocol._server&&!this._hostVerified));default:return k(this._protocol,`Received unexpected packet ${t} after NEWKEYS`,"handshake",_.KEY_EXCHANGE_FAILED)}}}class d extends c{constructor(e,...t){super(...t),this.type="25519",this.hashName=e,this._keys=null}generateKeys(){this._keys||(this._keys=a("x25519"))}getPublicKey(){this.generateKeys();return this._keys.publicKey.export({type:"spki",format:"der"}).slice(-32)}convertPublicKey(e){let t,n=0,i=e.length;for(;0===e[n];)++n,--i;return 32===e.length||i!==e.length&&(t=Buffer.allocUnsafe(i),e.copy(t,0,n),e=t),e}computeSecret(e){this.generateKeys();try{const t=new l.Writer;return t.startSequence(),t.startSequence(),t.writeOID("1.3.101.110"),t.endSequence(),t.startSequence(l.BitString),t.writeByte(0),t._ensure(e.length),e.copy(t._buf,t._offset,0,e.length),t._offset+=e.length,t.endSequence(),t.endSequence(),o(s({privateKey:this._keys.privateKey,publicKey:r({key:t.buffer,type:"spki",format:"der"})}))}catch(e){return e}}}class h extends c{constructor(e,t,...n){super(...n),this.type="ecdh",this.curveName=e,this.hashName=t}generateKeys(){this._dh||(this._dh=n(this.curveName),this._public=this._dh.generateKeys())}}class f extends c{constructor(e,...t){super(...t),this.type="groupex",this.hashName=e,this._prime=null,this._generator=null,this._minBits=2048,this._prefBits=function(e){const t=y[e.cs.cipher],n=y[e.sc.cipher],i=8*Math.max(0,"des-ede3-cbc"===t.sslName?14:t.keyLen,t.blockLen,t.ivLen,"des-ede3-cbc"===n.sslName?14:n.keyLen,n.blockLen,n.ivLen);return i<=112?2048:i<=128?3072:i<=192?7680:8192}(this.negotiated),this._protocol._compatFlags&u.BUG_DHGEX_LARGE&&(this._prefBits=Math.min(this._prefBits,4096)),this._maxBits=8192}start(){if(this._protocol._server)return;this._protocol._debug&&this._protocol._debug("Outbound: Sending KEXDH_GEX_REQUEST");let e=this._protocol._packetRW.write.allocStartKEX;const t=this._protocol._packetRW.write.alloc(13,!0);t[e]=b.KEXDH_GEX_REQUEST,B(t,this._minBits,++e),B(t,this._prefBits,e+=4),B(t,this._maxBits,e+=4),this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(t,!0))}generateKeys(){!this._dh&&this._prime&&this._generator&&(this._dh=e(this._prime,this._generator),this._public=this._dh.generateKeys())}setDHParams(e,t){if(!Buffer.isBuffer(e))throw new Error("Invalid prime value");if(!Buffer.isBuffer(t))throw new Error("Invalid generator value");this._prime=e,this._generator=t}getDHParams(){if(this._dh)return{prime:o(this._dh.getPrime()),generator:o(this._dh.getGenerator())}}parse(e){const t=e[0];switch(this._step){case 1:{if(this._protocol._server)return t!==b.KEXDH_GEX_REQUEST?k(this._protocol,`Received packet ${t} instead of `+b.KEXDH_GEX_REQUEST,"handshake",_.KEY_EXCHANGE_FAILED):k(this._protocol,"Group exchange not implemented for server","handshake",_.KEY_EXCHANGE_FAILED);if(t!==b.KEXDH_GEX_GROUP)return k(this._protocol,`Received packet ${t} instead of ${b.KEXDH_GEX_GROUP}`,"handshake",_.KEY_EXCHANGE_FAILED);let n,i;if(this._protocol._debug&&this._protocol._debug("Received DH GEX Group"),S.init(e,1),void 0===(n=S.readString())||void 0===(i=S.readString()))return S.clear(),k(this._protocol,"Received malformed KEXDH_GEX_GROUP","handshake",_.KEY_EXCHANGE_FAILED);S.clear(),this.setDHParams(n,i),this.generateKeys();const r=this.getPublicKey();this._protocol._debug&&this._protocol._debug("Outbound: Sending KEXDH_GEX_INIT");let s=this._protocol._packetRW.write.allocStartKEX;const o=this._protocol._packetRW.write.alloc(5+r.length,!0);o[s]=b.KEXDH_GEX_INIT,B(o,r.length,++s),o.set(r,s+=4),this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(o,!0)),++this._step;break}case 2:if(this._protocol._server)return t!==b.KEXDH_GEX_INIT?k(this._protocol,`Received packet ${t} instead of ${b.KEXDH_GEX_INIT}`,"handshake",_.KEY_EXCHANGE_FAILED):(this._protocol._debug&&this._protocol._debug("Received DH GEX Init"),k(this._protocol,"Group exchange not implemented for server","handshake",_.KEY_EXCHANGE_FAILED));if(t!==b.KEXDH_GEX_REPLY)return k(this._protocol,`Received packet ${t} instead of ${b.KEXDH_GEX_REPLY}`,"handshake",_.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug("Received DH GEX Reply"),this._step=1,e[0]=b.KEXDH_REPLY,this.parse=c.prototype.parse,this.parse(e)}}}class m extends c{constructor(e,t,...n){super(...n),this.type="group",this.groupName=e,this.hashName=t}start(){if(!this._protocol._server){this._protocol._debug&&this._protocol._debug("Outbound: Sending KEXDH_INIT");const e=this.getPublicKey();let t=this._protocol._packetRW.write.allocStartKEX;const n=this._protocol._packetRW.write.alloc(5+e.length,!0);n[t]=b.KEXDH_INIT,B(n,e.length,++t),n.set(e,t+=4),this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(n,!0))}}generateKeys(){this._dh||(this._dh=t(this.groupName),this._public=this._dh.generateKeys())}getDHParams(){if(this._dh)return{prime:o(this._dh.getPrime()),generator:o(this._dh.getGenerator())}}}return(e,...t)=>{if("object"!=typeof e||null===e)throw new Error("Invalid negotiated argument");const n=e.kex;if("string"==typeof n){switch(t=[e,...t],n){case"curve25519-sha256":case"curve25519-sha256@libssh.org":if(!p)break;return new d("sha256",...t);case"ecdh-sha2-nistp256":return new h("prime256v1","sha256",...t);case"ecdh-sha2-nistp384":return new h("secp384r1","sha384",...t);case"ecdh-sha2-nistp521":return new h("secp521r1","sha512",...t);case"diffie-hellman-group1-sha1":return new m("modp2","sha1",...t);case"diffie-hellman-group14-sha1":return new m("modp14","sha1",...t);case"diffie-hellman-group14-sha256":return new m("modp14","sha256",...t);case"diffie-hellman-group15-sha512":return new m("modp15","sha512",...t);case"diffie-hellman-group16-sha512":return new m("modp16","sha512",...t);case"diffie-hellman-group17-sha512":return new m("modp17","sha512",...t);case"diffie-hellman-group18-sha512":return new m("modp18","sha512",...t);case"diffie-hellman-group-exchange-sha1":return new f("sha1",...t);case"diffie-hellman-group-exchange-sha256":return new f("sha256",...t)}throw new Error(`Unsupported key exchange algorithm: ${n}`)}throw new Error(`Invalid key exchange type: ${n}`)}})(),F=(()=>{const e=["kex","serverHostKey",["cs","cipher"],["sc","cipher"],["cs","mac"],["sc","mac"],["cs","compress"],["sc","compress"],["cs","lang"],["sc","lang"]];return class{constructor(t){if("object"!=typeof t||null===t)throw new TypeError("Argument must be an object");const n={kex:void 0,serverHostKey:void 0,cs:{cipher:void 0,mac:void 0,compress:void 0,lang:void 0},sc:{cipher:void 0,mac:void 0,compress:void 0,lang:void 0},all:void 0};let i=0;for(const r of e){let e,s,o,a;if("string"==typeof r)e=n,s=t[r],o=a=r;else{const i=r[0];e=n[i],a=r[1],s=t[i][a],o=`${i}.${a}`}const c={array:void 0,buffer:void 0};if(Buffer.isBuffer(s))c.array=(""+s).split(","),c.buffer=s,i+=4+s.length;else{if("string"==typeof s&&(s=s.split(",")),!Array.isArray(s))throw new TypeError(`Invalid \`${o}\` type: ${typeof s}`);c.array=s,c.buffer=Buffer.from(s.join(",")),i+=4+c.buffer.length}e[a]=c}const r=Buffer.allocUnsafe(i);n.all=r;let s=0;for(const t of e){let e;e="string"==typeof t?n[t].buffer:n[t[0]][t[1]].buffer,s=B(r,e.length,s),r.set(e,s),s+=e.length}this.totalSize=i,this.lists=n}copyAllTo(e,t){const n=this.lists.all;if("number"!=typeof t)throw new TypeError("Invalid offset value: "+typeof t);if(e.length-t<n.length)throw new Error("Insufficient space to copy list");return e.set(n,t),n.length}}})(),j=(()=>{const e=Buffer.allocUnsafe(4);return(t,n)=>{B(e,n.length,0),t.update(e),t.update(n)}})();function $(e,t,n,r,s,o){let a;if(e){let c=i(t).update(n).update(r).update(o).update(s).digest();for(;c.length<e;){const e=i(t).update(n).update(r).update(c).digest(),s=Buffer.allocUnsafe(c.length+e.length);s.set(c,0),s.set(e,c.length),c=s}a=c.length===e?c:new C(c.buffer,c.byteOffset,e)}else a=U;return a}function Q(e,t){if(0===t.length)return void(this._debug&&this._debug("Inbound: Skipping empty packet payload"));if(this._skipNextInboundPacket)return void(this._skipNextInboundPacket=!1);const n=(t=this._packetRW.read.read(t))[0];if(!this._strictMode)switch(n){case b.IGNORE:case b.UNIMPLEMENTED:case b.DEBUG:return P||(P=xn()),P[n](this,t)}switch(n){case b.DISCONNECT:return P||(P=xn()),P[n](this,t);case b.KEXINIT:return e.firstPacket?(e.firstPacket=!1,M(this,t)):k(this,"Received extra KEXINIT during handshake","handshake",_.KEY_EXCHANGE_FAILED);default:if(n<20||n>49)return k(this,`Received unexpected packet type ${n}`,"handshake",_.KEY_EXCHANGE_FAILED)}return this._kex.parse(t)}function W(e){if(!e._sentNEWKEYS){e._protocol._debug&&e._protocol._debug("Outbound: Sending NEWKEYS");const t=e._protocol._packetRW.write.allocStartKEX,n=e._protocol._packetRW.write.alloc(1,!0);n[t]=b.NEWKEYS,e._protocol._cipher.encrypt(e._protocol._packetRW.write.finalize(n,!0)),e._sentNEWKEYS=!0,e._protocol._strictMode&&(e._protocol._cipher.outSeqno=0)}}return An={KexInit:F,kexinit:D,onKEXPayload:Q,DEFAULT_KEXINIT_CLIENT:new F({kex:d.concat(["ext-info-c","kex-strict-c-v00@openssh.com"]),serverHostKey:h,cs:{cipher:f,mac:m,compress:g,lang:[]},sc:{cipher:f,mac:m,compress:g,lang:[]}}),DEFAULT_KEXINIT_SERVER:new F({kex:d.concat(["kex-strict-s-v00@openssh.com"]),serverHostKey:h,cs:{cipher:f,mac:m,compress:g,lang:[]},sc:{cipher:f,mac:m,compress:g,lang:[]}}),HANDLERS:{[b.KEXINIT]:M}}}var In="1.17.0";const{inspect:kn}=f,{bindingAvailable:Cn,NullCipher:Rn,NullDecipher:Bn}=me(),{COMPAT_CHECKS:Tn,DISCONNECT_REASON:On,eddsaSupported:Nn,MESSAGE:Ln,SIGNALS:Pn,TERMINAL_MODE:Un}=ce(),{DEFAULT_KEXINIT_CLIENT:Dn,DEFAULT_KEXINIT_SERVER:Mn,KexInit:Hn,kexinit:Fn,onKEXPayload:jn}=Sn(),{parseKey:$n}=ft,Qn=xn(),{bufferCopy:Wn,bufferFill:qn,bufferSlice:Yn,convertSignature:Gn,sendPacket:Kn,writeUInt32BE:zn}=le(),{PacketReader:Xn,PacketWriter:Vn,ZlibPacketReader:Jn,ZlibPacketWriter:Zn}=an,ei=In,ti=new Map(Object.values(On).map(e=>[e,1])),ni=Buffer.from(`SSH-2.0-ssh2js${ei}`),ii=Buffer.from(`${ni}\r\n`),ri=Buffer.from([Ln.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]),si=Buffer.from([Un.TTY_OP_END]);function oi(){}const ai=/^SSH-(2\.0|1\.99)-([^ ]+)(?: (.*))?$/;function ci(e,t,n){let i,r;this._buffer?(i=Buffer.allocUnsafe(this._buffer.length+(n-t)),i.set(this._buffer,0),0===t?i.set(e,this._buffer.length):i.set(new Uint8Array(e.buffer,e.byteOffset+t,n-t),this._buffer.length),r=this._buffer.length,t=0):(i=e,r=0);const s=t;let o=t,a=t,c=!1,l=0,u=0;for(;t<i.length;++t){const e=i[t];if(13!==e){if(10===e){if(a>o&&a-o>4&&83===i[o]&&83===i[o+1]&&72===i[o+2]&&45===i[o+3]){const e=i.latin1Slice(s,a+1),c=o===s?e:e.slice(o-s),l=ai.exec(c);if(!l)throw new Error("Invalid identification string");const u={greeting:o===s?"":e.slice(0,o-s),identRaw:c,versions:{protocol:l[1],software:l[2]},comments:l[3]};return this._remoteIdentRaw=Buffer.from(c),this._debug&&this._debug(`Remote ident: ${kn(c)}`),this._compatFlags=pi(u),this._buffer=void 0,this._decipher=new Bn(0,jn.bind(this,{firstPacket:!0})),this._parse=li,this._onHeader(u),this._destruct?(Fn(this),t+1-r):n}if(this._server)throw new Error("Greetings from clients not permitted");if(++u>1024)throw new Error("Max greeting lines exceeded");c=!1,o=t+1,l=0}else{if(c)throw new Error("Invalid header: expected newline");if(++l>=8192)throw new Error("Header line too long")}a=t}else c=!0}return this._buffer||(this._buffer=Yn(i,s)),t-r}function li(e,t,n){return this._decipher.decrypt(e,t,n)}function ui(e){if(this._onPacket(),0===e.length)return void(this._debug&&this._debug("Inbound: Skipping empty packet payload"));const t=(e=this._packetRW.read.read(e))[0];t!==Ln.USERAUTH_SUCCESS||this._server||this._authenticated||(this._authenticated=!0,"zlib@openssh.com"===this._kex.negotiated.cs.compress&&(this._packetRW.write=new Zn(this)),"zlib@openssh.com"===this._kex.negotiated.sc.compress&&(this._packetRW.read=new Jn));const n=Qn[t];if(void 0!==n)return n(this,e);this._debug&&this._debug(`Inbound: Unsupported message type: ${t}`)}function pi(e){const t=e.versions.software;let n=0;for(const e of Tn)"string"==typeof e[0]?t===e[0]&&(n|=e[1]):e[0].test(t)&&(n|=e[1]);return n}var di=class{constructor(e){const t=e.onWrite;if("function"!=typeof t)throw new Error("Missing onWrite function");this._onWrite=e=>{t(e)};const n=e.onError;if("function"!=typeof n)throw new Error("Missing onError function");this._onError=e=>{n(e)};const i=e.debug;this._debug="function"==typeof i?e=>{i(e)}:void 0;const r=e.onHeader;this._onHeader="function"==typeof r?(...e)=>{r(...e)}:oi;const s=e.onPacket;this._onPacket="function"==typeof s?()=>{s()}:oi;let o,a=e.onHandshakeComplete;"function"!=typeof a&&(a=oi),this._onHandshakeComplete=(...e)=>{this._debug&&this._debug("Handshake completed"),o=void 0===o;const t=this._queue;if(t){this._queue=void 0,this._debug&&this._debug(`Draining outbound queue (${t.length}) ...`);for(let e=0;e<t.length;++e){const n=t[e];let i=this._packetRW.write.finalize(n);if(i===n){const e=this._cipher.allocPacket(n.length);e.set(n,5),i=e}Kn(this,i)}this._debug&&this._debug("... finished draining outbound queue")}o&&this._server&&this._kex.remoteExtInfoEnabled&&function(e){let t="ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss";Nn&&(t=`ssh-ed25519,${t}`);const n=Buffer.byteLength(t);let i=e._packetRW.write.allocStart;const r=e._packetRW.write.alloc(28+n);r[i]=Ln.EXT_INFO,zn(r,1,++i),zn(r,15,i+=4),r.utf8Write("server-sig-algs",i+=4,15),zn(r,n,i+=15),r.utf8Write(t,i+=4,n),e._debug&&e._debug("Outbound: Sending EXT_INFO"),Kn(e,e._packetRW.write.finalize(r))}(this),a(...e)},this._queue=void 0;const c=e.messageHandlers;let l;if(this._handlers="object"==typeof c&&null!==c?c:{},this._onPayload=ui.bind(this),this._server=!!e.server,this._banner=void 0,this._server){if("object"!=typeof e.hostKeys||null===e.hostKeys)throw new Error("Missing server host key(s)");this._hostKeys=e.hostKeys,"string"==typeof e.greeting&&e.greeting.length&&(l="\r\n"===e.greeting.slice(-2)?e.greeting:`${e.greeting}\r\n`),"string"==typeof e.banner&&e.banner.length&&(this._banner="\r\n"===e.banner.slice(-2)?e.banner:`${e.banner}\r\n`)}else this._hostKeys=void 0;let u,p=e.offer;if("object"!=typeof p||null===p?p=this._server?Mn:Dn:p.constructor!==Hn&&(this._server?p.kex=p.kex.concat(["kex-strict-s-v00@openssh.com"]):p.kex=p.kex.concat(["ext-info-c","kex-strict-c-v00@openssh.com"]),p=new Hn(p)),this._kex=void 0,this._strictMode=void 0,this._kexinit=void 0,this._offer=p,this._cipher=new Rn(0,this._onWrite),this._decipher=void 0,this._skipNextInboundPacket=!1,this._packetRW={read:new Xn,write:new Vn(this)},this._hostVerifier=this._server||"function"!=typeof e.hostVerifier?void 0:e.hostVerifier,this._parse=ci,this._buffer=void 0,this._authsQueue=[],this._authenticated=!1,this._remoteIdentRaw=void 0,"string"==typeof e.ident)this._identRaw=Buffer.from(`SSH-2.0-${e.ident}`),u=Buffer.allocUnsafe(this._identRaw.length+2),u.set(this._identRaw,0),u[u.length-2]=13,u[u.length-1]=10;else if(Buffer.isBuffer(e.ident)){const t=Buffer.allocUnsafe(8+e.ident.length);t.latin1Write("SSH-2.0-",0,8),t.set(e.ident,8),this._identRaw=t,u=Buffer.allocUnsafe(t.length+2),u.set(t,0),u[u.length-2]=13,u[u.length-1]=10}else this._identRaw=ni,u=ii;this._compatFlags=0,this._debug&&(Cn?this._debug("Custom crypto binding available"):this._debug("Custom crypto binding not available")),this._debug&&this._debug(`Local ident: ${kn(this._identRaw.toString())}`),this.start=()=>{this.start=void 0,l&&this._onWrite(l),this._onWrite(u)}}_destruct(e){this._packetRW.read.cleanup(),this._packetRW.write.cleanup(),this._cipher&&this._cipher.free(),this._decipher&&this._decipher.free(),"string"==typeof e&&0!==e.length||(e="fatal error"),this.parse=()=>{throw new Error(`Instance unusable after ${e}`)},this._onWrite=()=>{throw new Error(`Instance unusable after ${e}`)},this._destruct=void 0}cleanup(){this._destruct&&this._destruct()}parse(e,t,n){for(;t<n;)t=this._parse(e,t,n)}disconnect(e){let t=this._packetRW.write.allocStartKEX;const n=this._packetRW.write.alloc(13,!0),i=t+13;ti.has(e)||(e=On.PROTOCOL_ERROR),n[t]=Ln.DISCONNECT,zn(n,e,++t),n.fill(0,t+=4,i),this._debug&&this._debug(`Outbound: Sending DISCONNECT (${e})`),Kn(this,this._packetRW.write.finalize(n,!0),!0)}ping(){const e=this._packetRW.write.allocStart,t=this._packetRW.write.alloc(ri.length);t.set(ri,e),this._debug&&this._debug("Outbound: Sending ping (GLOBAL_REQUEST: keepalive@openssh.com)"),Kn(this,this._packetRW.write.finalize(t))}rekey(){void 0===this._kexinit?(this._debug&&this._debug("Outbound: Initiated explicit rekey"),this._queue=[],Fn(this)):this._debug&&this._debug("Outbound: Ignoring rekey during handshake")}requestSuccess(e){let t,n=this._packetRW.write.allocStart;Buffer.isBuffer(e)?(t=this._packetRW.write.alloc(1+e.length),t[n]=Ln.REQUEST_SUCCESS,t.set(e,++n)):(t=this._packetRW.write.alloc(1),t[n]=Ln.REQUEST_SUCCESS),this._debug&&this._debug("Outbound: Sending REQUEST_SUCCESS"),Kn(this,this._packetRW.write.finalize(t))}requestFailure(){const e=this._packetRW.write.allocStart,t=this._packetRW.write.alloc(1);t[e]=Ln.REQUEST_FAILURE,this._debug&&this._debug("Outbound: Sending REQUEST_FAILURE"),Kn(this,this._packetRW.write.finalize(t))}channelSuccess(e){let t=this._packetRW.write.allocStart;const n=this._packetRW.write.alloc(5);n[t]=Ln.CHANNEL_SUCCESS,zn(n,e,++t),this._debug&&this._debug(`Outbound: Sending CHANNEL_SUCCESS (r:${e})`),Kn(this,this._packetRW.write.finalize(n))}channelFailure(e){let t=this._packetRW.write.allocStart;const n=this._packetRW.write.alloc(5);n[t]=Ln.CHANNEL_FAILURE,zn(n,e,++t),this._debug&&this._debug(`Outbound: Sending CHANNEL_FAILURE (r:${e})`),Kn(this,this._packetRW.write.finalize(n))}channelEOF(e){let t=this._packetRW.write.allocStart;const n=this._packetRW.write.alloc(5);n[t]=Ln.CHANNEL_EOF,zn(n,e,++t),this._debug&&this._debug(`Outbound: Sending CHANNEL_EOF (r:${e})`),Kn(this,this._packetRW.write.finalize(n))}channelClose(e){let t=this._packetRW.write.allocStart;const n=this._packetRW.write.alloc(5);n[t]=Ln.CHANNEL_CLOSE,zn(n,e,++t),this._debug&&this._debug(`Outbound: Sending CHANNEL_CLOSE (r:${e})`),Kn(this,this._packetRW.write.finalize(n))}channelWindowAdjust(e,t){let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(9);i[n]=Ln.CHANNEL_WINDOW_ADJUST,zn(i,e,++n),zn(i,t,n+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_WINDOW_ADJUST (r:${e}, ${t})`),Kn(this,this._packetRW.write.finalize(i))}channelData(e,t){const n=Buffer.isBuffer(t),i=n?t.length:Buffer.byteLength(t);let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(9+i);s[r]=Ln.CHANNEL_DATA,zn(s,e,++r),zn(s,i,r+=4),n?s.set(t,r+=4):s.utf8Write(t,r+=4,i),this._debug&&this._debug(`Outbound: Sending CHANNEL_DATA (r:${e}, ${i})`),Kn(this,this._packetRW.write.finalize(s))}channelExtData(e,t,n){const i=Buffer.isBuffer(t),r=i?t.length:Buffer.byteLength(t);let s=this._packetRW.write.allocStart;const o=this._packetRW.write.alloc(13+r);o[s]=Ln.CHANNEL_EXTENDED_DATA,zn(o,e,++s),zn(o,n,s+=4),zn(o,r,s+=4),i?o.set(t,s+=4):o.utf8Write(t,s+=4,r),this._debug&&this._debug(`Outbound: Sending CHANNEL_EXTENDED_DATA (r:${e})`),Kn(this,this._packetRW.write.finalize(o))}channelOpenConfirm(e,t,n,i){let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(17);s[r]=Ln.CHANNEL_OPEN_CONFIRMATION,zn(s,e,++r),zn(s,t,r+=4),zn(s,n,r+=4),zn(s,i,r+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN_CONFIRMATION (r:${e}, l:${t})`),Kn(this,this._packetRW.write.finalize(s))}channelOpenFail(e,t,n){"string"!=typeof n&&(n="");const i=Buffer.byteLength(n);let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(13+i+4);s[r]=Ln.CHANNEL_OPEN_FAILURE,zn(s,e,++r),zn(s,t,r+=4),zn(s,i,r+=4),r+=4,i&&(s.utf8Write(n,r,i),r+=i),zn(s,0,r),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN_FAILURE (r:${e})`),Kn(this,this._packetRW.write.finalize(s))}service(e){if(this._server)throw new Error("Client-only method called in server mode");const t=Buffer.byteLength(e);let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(5+t);i[n]=Ln.SERVICE_REQUEST,zn(i,t,++n),i.utf8Write(e,n+=4,t),this._debug&&this._debug(`Outbound: Sending SERVICE_REQUEST (${e})`),Kn(this,this._packetRW.write.finalize(i))}authPassword(e,t,n){if(this._server)throw new Error("Client-only method called in server mode");const i=Buffer.byteLength(e),r=Buffer.byteLength(t),s=n?Buffer.byteLength(n):0;let o=this._packetRW.write.allocStart;const a=this._packetRW.write.alloc(5+i+4+14+4+8+1+4+r+(n?4+s:0));a[o]=Ln.USERAUTH_REQUEST,zn(a,i,++o),a.utf8Write(e,o+=4,i),zn(a,14,o+=i),a.utf8Write("ssh-connection",o+=4,14),zn(a,8,o+=14),a.utf8Write("password",o+=4,8),a[o+=8]=n?1:0,zn(a,r,++o),Buffer.isBuffer(t)?Wn(t,a,0,r,o+=4):a.utf8Write(t,o+=4,r),n?(zn(a,s,o+=r),Buffer.isBuffer(n)?Wn(n,a,0,s,o+=4):a.utf8Write(n,o+=4,s),this._debug&&this._debug("Outbound: Sending USERAUTH_REQUEST (changed password)")):this._debug&&this._debug("Outbound: Sending USERAUTH_REQUEST (password)"),this._authsQueue.push("password"),Kn(this,this._packetRW.write.finalize(a))}authPK(e,t,n,i){if(this._server)throw new Error("Client-only method called in server mode");if((t=$n(t))instanceof Error)throw new Error("Invalid key");const r=t.type;t=t.getPublicSSH(),"function"==typeof n&&(i=n,n=void 0),n||(n=r);const s=Buffer.byteLength(e),o=Buffer.byteLength(n),a=t.length,c=this._kex.sessionID,l=c.length,u=(i?4+l:0)+1+4+s+4+14+4+9+1+4+o+4+a;let p,d;if(i?(p=Buffer.allocUnsafe(u),d=0,zn(p,l,d),p.set(c,d+=4),d+=l):(p=this._packetRW.write.alloc(u),d=this._packetRW.write.allocStart),p[d]=Ln.USERAUTH_REQUEST,zn(p,s,++d),p.utf8Write(e,d+=4,s),zn(p,14,d+=s),p.utf8Write("ssh-connection",d+=4,14),zn(p,9,d+=14),p.utf8Write("publickey",d+=4,9),p[d+=9]=i?1:0,zn(p,o,++d),p.utf8Write(n,d+=4,o),zn(p,a,d+=o),p.set(t,d+=4),!i)return this._authsQueue.push("publickey"),this._debug&&this._debug("Outbound: Sending USERAUTH_REQUEST (publickey -- check)"),void Kn(this,this._packetRW.write.finalize(p));i(p,i=>{if(!1===(i=Gn(i,r)))throw new Error("Error while converting handshake signature");const c=i.length;d=this._packetRW.write.allocStart,p=this._packetRW.write.alloc(5+s+4+14+4+9+1+4+o+4+a+4+4+o+4+c),p[d]=Ln.USERAUTH_REQUEST,zn(p,s,++d),p.utf8Write(e,d+=4,s),zn(p,14,d+=s),p.utf8Write("ssh-connection",d+=4,14),zn(p,9,d+=14),p.utf8Write("publickey",d+=4,9),p[d+=9]=1,zn(p,o,++d),p.utf8Write(n,d+=4,o),zn(p,a,d+=o),p.set(t,d+=4),zn(p,4+o+4+c,d+=a),zn(p,o,d+=4),p.utf8Write(n,d+=4,o),zn(p,c,d+=o),p.set(i,d+=4),this._authsQueue.push("publickey"),this._debug&&this._debug("Outbound: Sending USERAUTH_REQUEST (publickey)"),Kn(this,this._packetRW.write.finalize(p))})}authHostbased(e,t,n,i,r,s){if(this._server)throw new Error("Client-only method called in server mode");if((t=$n(t))instanceof Error)throw new Error("Invalid key");const o=t.type;t=t.getPublicSSH(),"function"==typeof r&&(s=r,r=void 0),r||(r=o);const a=Buffer.byteLength(e),c=Buffer.byteLength(r),l=t.length,u=this._kex.sessionID,p=u.length,d=Buffer.byteLength(n),h=Buffer.byteLength(i),f=Buffer.allocUnsafe(4+p+1+4+a+4+14+4+9+4+c+4+l+4+d+4+h);let m=0;zn(f,p,m),f.set(u,m+=4),f[m+=p]=Ln.USERAUTH_REQUEST,zn(f,a,++m),f.utf8Write(e,m+=4,a),zn(f,14,m+=a),f.utf8Write("ssh-connection",m+=4,14),zn(f,9,m+=14),f.utf8Write("hostbased",m+=4,9),zn(f,c,m+=9),f.utf8Write(r,m+=4,c),zn(f,l,m+=c),f.set(t,m+=4),zn(f,d,m+=l),f.utf8Write(n,m+=4,d),zn(f,h,m+=d),f.utf8Write(i,m+=4,h),s(f,e=>{if(!(e=Gn(e,o)))throw new Error("Error while converting handshake signature");const t=e.length,n=f.length-p-4;m=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(n+4+4+c+4+t);Wn(f,i,4+p,f.length,m),zn(i,4+c+4+t,m+=n),zn(i,c,m+=4),i.utf8Write(r,m+=4,c),zn(i,t,m+=c),i.set(e,m+=4),this._authsQueue.push("hostbased"),this._debug&&this._debug("Outbound: Sending USERAUTH_REQUEST (hostbased)"),Kn(this,this._packetRW.write.finalize(i))})}authKeyboard(e){if(this._server)throw new Error("Client-only method called in server mode");const t=Buffer.byteLength(e);let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(5+t+4+14+4+20+4+4);i[n]=Ln.USERAUTH_REQUEST,zn(i,t,++n),i.utf8Write(e,n+=4,t),zn(i,14,n+=t),i.utf8Write("ssh-connection",n+=4,14),zn(i,20,n+=14),i.utf8Write("keyboard-interactive",n+=4,20),zn(i,0,n+=20),zn(i,0,n+=4),this._authsQueue.push("keyboard-interactive"),this._debug&&this._debug("Outbound: Sending USERAUTH_REQUEST (keyboard-interactive)"),Kn(this,this._packetRW.write.finalize(i))}authNone(e){if(this._server)throw new Error("Client-only method called in server mode");const t=Buffer.byteLength(e);let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(5+t+4+14+4+4);i[n]=Ln.USERAUTH_REQUEST,zn(i,t,++n),i.utf8Write(e,n+=4,t),zn(i,14,n+=t),i.utf8Write("ssh-connection",n+=4,14),zn(i,4,n+=14),i.utf8Write("none",n+=4,4),this._authsQueue.push("none"),this._debug&&this._debug("Outbound: Sending USERAUTH_REQUEST (none)"),Kn(this,this._packetRW.write.finalize(i))}authInfoRes(e){if(this._server)throw new Error("Client-only method called in server mode");let t,n=0;if(e){t=new Array(e.length);for(let i=0;i<e.length;++i){const r=Buffer.byteLength(e[i]);t[i]=r,n+=4+r}}let i=this._packetRW.write.allocStart;const r=this._packetRW.write.alloc(5+n);if(r[i]=Ln.USERAUTH_INFO_RESPONSE,e){zn(r,e.length,++i),i+=4;for(let n=0;n<e.length;++n){const s=t[n];zn(r,s,i),i+=4,s&&(r.utf8Write(e[n],i,s),i+=s)}}else zn(r,0,++i);this._debug&&this._debug("Outbound: Sending USERAUTH_INFO_RESPONSE"),Kn(this,this._packetRW.write.finalize(r))}tcpipForward(e,t,n){if(this._server)throw new Error("Client-only method called in server mode");const i=Buffer.byteLength(e);let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(23+i+4);s[r]=Ln.GLOBAL_REQUEST,zn(s,13,++r),s.utf8Write("tcpip-forward",r+=4,13),s[r+=13]=void 0===n||!0===n?1:0,zn(s,i,++r),s.utf8Write(e,r+=4,i),zn(s,t,r+=i),this._debug&&this._debug("Outbound: Sending GLOBAL_REQUEST (tcpip-forward)"),Kn(this,this._packetRW.write.finalize(s))}cancelTcpipForward(e,t,n){if(this._server)throw new Error("Client-only method called in server mode");const i=Buffer.byteLength(e);let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(30+i+4);s[r]=Ln.GLOBAL_REQUEST,zn(s,20,++r),s.utf8Write("cancel-tcpip-forward",r+=4,20),s[r+=20]=void 0===n||!0===n?1:0,zn(s,i,++r),s.utf8Write(e,r+=4,i),zn(s,t,r+=i),this._debug&&this._debug("Outbound: Sending GLOBAL_REQUEST (cancel-tcpip-forward)"),Kn(this,this._packetRW.write.finalize(s))}openssh_streamLocalForward(e,t){if(this._server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=this._packetRW.write.allocStart;const r=this._packetRW.write.alloc(41+n);r[i]=Ln.GLOBAL_REQUEST,zn(r,31,++i),r.utf8Write("streamlocal-forward@openssh.com",i+=4,31),r[i+=31]=void 0===t||!0===t?1:0,zn(r,n,++i),r.utf8Write(e,i+=4,n),this._debug&&this._debug("Outbound: Sending GLOBAL_REQUEST (streamlocal-forward@openssh.com)"),Kn(this,this._packetRW.write.finalize(r))}openssh_cancelStreamLocalForward(e,t){if(this._server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=this._packetRW.write.allocStart;const r=this._packetRW.write.alloc(48+n);r[i]=Ln.GLOBAL_REQUEST,zn(r,38,++i),r.utf8Write("cancel-streamlocal-forward@openssh.com",i+=4,38),r[i+=38]=void 0===t||!0===t?1:0,zn(r,n,++i),r.utf8Write(e,i+=4,n),this._debug&&this._debug("Outbound: Sending GLOBAL_REQUEST (cancel-streamlocal-forward@openssh.com)"),Kn(this,this._packetRW.write.finalize(r))}directTcpip(e,t,n,i){if(this._server)throw new Error("Client-only method called in server mode");const r=Buffer.byteLength(i.srcIP),s=Buffer.byteLength(i.dstIP);let o=this._packetRW.write.allocStart;const a=this._packetRW.write.alloc(33+r+4+4+s+4);a[o]=Ln.CHANNEL_OPEN,zn(a,12,++o),a.utf8Write("direct-tcpip",o+=4,12),zn(a,e,o+=12),zn(a,t,o+=4),zn(a,n,o+=4),zn(a,s,o+=4),a.utf8Write(i.dstIP,o+=4,s),zn(a,i.dstPort,o+=s),zn(a,r,o+=4),a.utf8Write(i.srcIP,o+=4,r),zn(a,i.srcPort,o+=r),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, direct-tcpip)`),Kn(this,this._packetRW.write.finalize(a))}openssh_directStreamLocal(e,t,n,i){if(this._server)throw new Error("Client-only method called in server mode");const r=Buffer.byteLength(i.socketPath);let s=this._packetRW.write.allocStart;const o=this._packetRW.write.alloc(51+r+4+4);o[s]=Ln.CHANNEL_OPEN,zn(o,30,++s),o.utf8Write("direct-streamlocal@openssh.com",s+=4,30),zn(o,e,s+=30),zn(o,t,s+=4),zn(o,n,s+=4),zn(o,r,s+=4),o.utf8Write(i.socketPath,s+=4,r),qn(o,0,s+=r,s+8),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, direct-streamlocal@openssh.com)`),Kn(this,this._packetRW.write.finalize(o))}openssh_noMoreSessions(e){if(this._server)throw new Error("Client-only method called in server mode");let t=this._packetRW.write.allocStart;const n=this._packetRW.write.alloc(34);n[t]=Ln.GLOBAL_REQUEST,zn(n,28,++t),n.utf8Write("no-more-sessions@openssh.com",t+=4,28),n[t+=28]=void 0===e||!0===e?1:0,this._debug&&this._debug("Outbound: Sending GLOBAL_REQUEST (no-more-sessions@openssh.com)"),Kn(this,this._packetRW.write.finalize(n))}session(e,t,n){if(this._server)throw new Error("Client-only method called in server mode");let i=this._packetRW.write.allocStart;const r=this._packetRW.write.alloc(24);r[i]=Ln.CHANNEL_OPEN,zn(r,7,++i),r.utf8Write("session",i+=4,7),zn(r,e,i+=7),zn(r,t,i+=4),zn(r,n,i+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, session)`),Kn(this,this._packetRW.write.finalize(r))}windowChange(e,t,n,i,r){if(this._server)throw new Error("Client-only method called in server mode");let s=this._packetRW.write.allocStart;const o=this._packetRW.write.alloc(39);o[s]=Ln.CHANNEL_REQUEST,zn(o,e,++s),zn(o,13,s+=4),o.utf8Write("window-change",s+=4,13),o[s+=13]=0,zn(o,n,++s),zn(o,t,s+=4),zn(o,r,s+=4),zn(o,i,s+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, window-change)`),Kn(this,this._packetRW.write.finalize(o))}pty(e,t,n,i,r,s,o,a){if(this._server)throw new Error("Client-only method called in server mode");s&&s.length||(s="vt100"),!o||Buffer.isBuffer(o)||Array.isArray(o)||"object"!=typeof o||null===o||(o=function(e){const t=Object.keys(e),n=Buffer.allocUnsafe(5*t.length+1);let i=0;for(let r=0;r<t.length;++r){const s=t[r];if("TTY_OP_END"===s)continue;const o=Un[s];if(void 0===o)continue;const a=e[s];"number"==typeof a&&isFinite(a)&&(n[i++]=o,n[i++]=a>>>24,n[i++]=a>>>16,n[i++]=a>>>8,n[i++]=a)}return n[i++]=Un.TTY_OP_END,i<n.length?Yn(n,0,i):n}(o)),o&&o.length||(o=si);const c=s.length,l=o.length;let u=this._packetRW.write.allocStart;const p=this._packetRW.write.alloc(21+c+4+4+4+4+4+l);if(p[u]=Ln.CHANNEL_REQUEST,zn(p,e,++u),zn(p,7,u+=4),p.utf8Write("pty-req",u+=4,7),p[u+=7]=void 0===a||!0===a?1:0,zn(p,c,++u),p.utf8Write(s,u+=4,c),zn(p,n,u+=c),zn(p,t,u+=4),zn(p,r,u+=4),zn(p,i,u+=4),zn(p,l,u+=4),u+=4,Array.isArray(o))for(let e=0;e<l;++e)p[u++]=o[e];else Buffer.isBuffer(o)&&p.set(o,u);this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, pty-req)`),Kn(this,this._packetRW.write.finalize(p))}shell(e,t){if(this._server)throw new Error("Client-only method called in server mode");let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(15);i[n]=Ln.CHANNEL_REQUEST,zn(i,e,++n),zn(i,5,n+=4),i.utf8Write("shell",n+=4,5),i[n+=5]=void 0===t||!0===t?1:0,this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, shell)`),Kn(this,this._packetRW.write.finalize(i))}exec(e,t,n){if(this._server)throw new Error("Client-only method called in server mode");const i=Buffer.isBuffer(t),r=i?t.length:Buffer.byteLength(t);let s=this._packetRW.write.allocStart;const o=this._packetRW.write.alloc(18+r);o[s]=Ln.CHANNEL_REQUEST,zn(o,e,++s),zn(o,4,s+=4),o.utf8Write("exec",s+=4,4),o[s+=4]=void 0===n||!0===n?1:0,zn(o,r,++s),i?o.set(t,s+=4):o.utf8Write(t,s+=4,r),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, exec: ${t})`),Kn(this,this._packetRW.write.finalize(o))}signal(e,t){if(this._server)throw new Error("Client-only method called in server mode");const n=t;if("SIG"===(t=t.toUpperCase()).slice(0,3)&&(t=t.slice(3)),1!==Pn[t])throw new Error(`Invalid signal: ${n}`);const i=t.length;let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(20+i);s[r]=Ln.CHANNEL_REQUEST,zn(s,e,++r),zn(s,6,r+=4),s.utf8Write("signal",r+=4,6),s[r+=6]=0,zn(s,i,++r),s.utf8Write(t,r+=4,i),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, signal: ${t})`),Kn(this,this._packetRW.write.finalize(s))}env(e,t,n,i){if(this._server)throw new Error("Client-only method called in server mode");const r=Buffer.byteLength(t),s=Buffer.isBuffer(n),o=s?n.length:Buffer.byteLength(n);let a=this._packetRW.write.allocStart;const c=this._packetRW.write.alloc(17+r+4+o);c[a]=Ln.CHANNEL_REQUEST,zn(c,e,++a),zn(c,3,a+=4),c.utf8Write("env",a+=4,3),c[a+=3]=void 0===i||!0===i?1:0,zn(c,r,++a),c.utf8Write(t,a+=4,r),zn(c,o,a+=r),s?c.set(n,a+=4):c.utf8Write(n,a+=4,o),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, env: ${t}=${n})`),Kn(this,this._packetRW.write.finalize(c))}x11Forward(e,t,n){if(this._server)throw new Error("Client-only method called in server mode");const i=t.protocol,r=t.cookie,s=Buffer.isBuffer(i),o=s?i.length:Buffer.byteLength(i),a=Buffer.isBuffer(r),c=a?r.length:Buffer.byteLength(r);let l=this._packetRW.write.allocStart;const u=this._packetRW.write.alloc(22+o+4+c+4);u[l]=Ln.CHANNEL_REQUEST,zn(u,e,++l),zn(u,7,l+=4),u.utf8Write("x11-req",l+=4,7),u[l+=7]=void 0===n||!0===n?1:0,u[++l]=t.single?1:0,zn(u,o,++l),s?u.set(i,l+=4):u.utf8Write(i,l+=4,o),zn(u,c,l+=o),a?u.set(r,l+=4):u.latin1Write(r,l+=4,c),zn(u,t.screen||0,l+=c),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, x11-req)`),Kn(this,this._packetRW.write.finalize(u))}subsystem(e,t,n){if(this._server)throw new Error("Client-only method called in server mode");const i=Buffer.byteLength(t);let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(23+i);s[r]=Ln.CHANNEL_REQUEST,zn(s,e,++r),zn(s,9,r+=4),s.utf8Write("subsystem",r+=4,9),s[r+=9]=void 0===n||!0===n?1:0,zn(s,i,++r),s.utf8Write(t,r+=4,i),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, subsystem: ${t})`),Kn(this,this._packetRW.write.finalize(s))}openssh_agentForward(e,t){if(this._server)throw new Error("Client-only method called in server mode");let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(36);i[n]=Ln.CHANNEL_REQUEST,zn(i,e,++n),zn(i,26,n+=4),i.utf8Write("auth-agent-req@openssh.com",n+=4,26),i[n+=26]=void 0===t||!0===t?1:0,this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, auth-agent-req@openssh.com)`),Kn(this,this._packetRW.write.finalize(i))}openssh_hostKeysProve(e){if(this._server)throw new Error("Client-only method called in server mode");let t=0;const n=[];for(const i of e){const e=i.getPublicSSH();t+=4+e.length,n.push(e)}let i=this._packetRW.write.allocStart;const r=this._packetRW.write.alloc(35+t);r[i]=Ln.GLOBAL_REQUEST,zn(r,29,++i),r.utf8Write("hostkeys-prove-00@openssh.com",i+=4,29),r[i+=29]=1,++i;for(const e of n)zn(r,e.length,i),Wn(e,r,0,e.length,i+=4),i+=e.length;this._debug&&this._debug("Outbound: Sending GLOBAL_REQUEST (hostkeys-prove-00@openssh.com)"),Kn(this,this._packetRW.write.finalize(r))}serviceAccept(e){if(!this._server)throw new Error("Server-only method called in client mode");const t=Buffer.byteLength(e);let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(5+t);if(i[n]=Ln.SERVICE_ACCEPT,zn(i,t,++n),i.utf8Write(e,n+=4,t),this._debug&&this._debug(`Outbound: Sending SERVICE_ACCEPT (${e})`),Kn(this,this._packetRW.write.finalize(i)),this._server&&this._banner&&"ssh-userauth"===e){const e=this._banner;this._banner=void 0;const t=Buffer.byteLength(e);n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(5+t+4);i[n]=Ln.USERAUTH_BANNER,zn(i,t,++n),i.utf8Write(e,n+=4,t),zn(i,0,n+=t),this._debug&&this._debug("Outbound: Sending USERAUTH_BANNER"),Kn(this,this._packetRW.write.finalize(i))}}forwardedTcpip(e,t,n,i){if(!this._server)throw new Error("Server-only method called in client mode");const r=Buffer.byteLength(i.boundAddr),s=Buffer.byteLength(i.remoteAddr);let o=this._packetRW.write.allocStart;const a=this._packetRW.write.alloc(36+r+4+4+s+4);a[o]=Ln.CHANNEL_OPEN,zn(a,15,++o),a.utf8Write("forwarded-tcpip",o+=4,15),zn(a,e,o+=15),zn(a,t,o+=4),zn(a,n,o+=4),zn(a,r,o+=4),a.utf8Write(i.boundAddr,o+=4,r),zn(a,i.boundPort,o+=r),zn(a,s,o+=4),a.utf8Write(i.remoteAddr,o+=4,s),zn(a,i.remotePort,o+=s),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, forwarded-tcpip)`),Kn(this,this._packetRW.write.finalize(a))}x11(e,t,n,i){if(!this._server)throw new Error("Server-only method called in client mode");const r=Buffer.byteLength(i.originAddr);let s=this._packetRW.write.allocStart;const o=this._packetRW.write.alloc(24+r+4);o[s]=Ln.CHANNEL_OPEN,zn(o,3,++s),o.utf8Write("x11",s+=4,3),zn(o,e,s+=3),zn(o,t,s+=4),zn(o,n,s+=4),zn(o,r,s+=4),o.utf8Write(i.originAddr,s+=4,r),zn(o,i.originPort,s+=r),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, x11)`),Kn(this,this._packetRW.write.finalize(o))}openssh_authAgent(e,t,n){if(!this._server)throw new Error("Server-only method called in client mode");let i=this._packetRW.write.allocStart;const r=this._packetRW.write.alloc(39);r[i]=Ln.CHANNEL_OPEN,zn(r,22,++i),r.utf8Write("auth-agent@openssh.com",i+=4,22),zn(r,e,i+=22),zn(r,t,i+=4),zn(r,n,i+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, auth-agent@openssh.com)`),Kn(this,this._packetRW.write.finalize(r))}openssh_forwardedStreamLocal(e,t,n,i){if(!this._server)throw new Error("Server-only method called in client mode");const r=Buffer.byteLength(i.socketPath);let s=this._packetRW.write.allocStart;const o=this._packetRW.write.alloc(54+r+4);o[s]=Ln.CHANNEL_OPEN,zn(o,33,++s),o.utf8Write("forwarded-streamlocal@openssh.com",s+=4,33),zn(o,e,s+=33),zn(o,t,s+=4),zn(o,n,s+=4),zn(o,r,s+=4),o.utf8Write(i.socketPath,s+=4,r),zn(o,0,s+=r),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, forwarded-streamlocal@openssh.com)`),Kn(this,this._packetRW.write.finalize(o))}exitStatus(e,t){if(!this._server)throw new Error("Server-only method called in client mode");let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(25);i[n]=Ln.CHANNEL_REQUEST,zn(i,e,++n),zn(i,11,n+=4),i.utf8Write("exit-status",n+=4,11),i[n+=11]=0,zn(i,t,++n),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, exit-status: ${t})`),Kn(this,this._packetRW.write.finalize(i))}exitSignal(e,t,n,i){if(!this._server)throw new Error("Server-only method called in client mode");const r=t;if("string"!=typeof r||!r)throw new Error(`Invalid signal: ${r}`);let s=t.toUpperCase();if("SIG"===s.slice(0,3)&&(s=s.slice(3)),1!==Pn[s])throw new Error(`Invalid signal: ${r}`);const o=Buffer.byteLength(s),a=i?Buffer.byteLength(i):0;let c=this._packetRW.write.allocStart;const l=this._packetRW.write.alloc(25+o+1+4+a+4);l[c]=Ln.CHANNEL_REQUEST,zn(l,e,++c),zn(l,11,c+=4),l.utf8Write("exit-signal",c+=4,11),l[c+=11]=0,zn(l,o,++c),l.utf8Write(s,c+=4,o),l[c+=o]=n?1:0,zn(l,a,++c),c+=4,a&&(l.utf8Write(i,c,a),c+=a),zn(l,0,c),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, exit-signal: ${t})`),Kn(this,this._packetRW.write.finalize(l))}authFailure(e,t){if(!this._server)throw new Error("Server-only method called in client mode");if(0===this._authsQueue.length)throw new Error("No auth in progress");let n;if("boolean"==typeof e&&(t=e,e=void 0),e){n=[];for(let t=0;t<e.length;++t)"none"!==e[t].toLowerCase()&&n.push(e[t]);n=n.join(",")}else n="";const i=n.length;let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(5+i+1);s[r]=Ln.USERAUTH_FAILURE,zn(s,i,++r),s.utf8Write(n,r+=4,i),s[r+=i]=!0===t?1:0,this._authsQueue.shift(),this._debug&&this._debug("Outbound: Sending USERAUTH_FAILURE"),Kn(this,this._packetRW.write.finalize(s))}authSuccess(){if(!this._server)throw new Error("Server-only method called in client mode");if(0===this._authsQueue.length)throw new Error("No auth in progress");const e=this._packetRW.write.allocStart,t=this._packetRW.write.alloc(1);t[e]=Ln.USERAUTH_SUCCESS,this._authsQueue.shift(),this._authenticated=!0,this._debug&&this._debug("Outbound: Sending USERAUTH_SUCCESS"),Kn(this,this._packetRW.write.finalize(t)),"zlib@openssh.com"===this._kex.negotiated.cs.compress&&(this._packetRW.read=new Jn),"zlib@openssh.com"===this._kex.negotiated.sc.compress&&(this._packetRW.write=new Zn(this))}authPKOK(e,t){if(!this._server)throw new Error("Server-only method called in client mode");if(0===this._authsQueue.length||"publickey"!==this._authsQueue[0])throw new Error('"publickey" auth not in progress');const n=Buffer.byteLength(e),i=t.length;let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(5+n+4+i);s[r]=Ln.USERAUTH_PK_OK,zn(s,n,++r),s.utf8Write(e,r+=4,n),zn(s,i,r+=n),s.set(t,r+=4),this._authsQueue.shift(),this._debug&&this._debug("Outbound: Sending USERAUTH_PK_OK"),Kn(this,this._packetRW.write.finalize(s))}authPasswdChg(e){if(!this._server)throw new Error("Server-only method called in client mode");const t=Buffer.byteLength(e);let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(5+t+4);i[n]=Ln.USERAUTH_PASSWD_CHANGEREQ,zn(i,t,++n),i.utf8Write(e,n+=4,t),zn(i,0,n+=t),this._debug&&this._debug("Outbound: Sending USERAUTH_PASSWD_CHANGEREQ"),Kn(this,this._packetRW.write.finalize(i))}authInfoReq(e,t,n){if(!this._server)throw new Error("Server-only method called in client mode");let i=0;const r=e?Buffer.byteLength(e):0,s=t?Buffer.byteLength(t):0;for(let e=0;e<n.length;++e)i+=4+Buffer.byteLength(n[e].prompt)+1;let o=this._packetRW.write.allocStart;const a=this._packetRW.write.alloc(5+r+4+s+4+4+i);a[o]=Ln.USERAUTH_INFO_REQUEST,zn(a,r,++o),o+=4,e&&(a.utf8Write(e,o,r),o+=r),zn(a,s,o),o+=4,t&&(a.utf8Write(t,o,s),o+=s),zn(a,0,o),zn(a,n.length,o+=4),o+=4;for(let e=0;e<n.length;++e){const t=n[e],i=Buffer.byteLength(t.prompt);zn(a,i,o),o+=4,i&&(a.utf8Write(t.prompt,o,i),o+=i),a[o++]=t.echo?1:0}this._debug&&this._debug("Outbound: Sending USERAUTH_INFO_REQUEST"),Kn(this,this._packetRW.write.finalize(a))}},hi={};const fi=a,{inspect:mi}=f;function gi(e){let t="",n=e.length;const i="-"===e[0]?1:0;for(;n>=i+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function _i(e,t){if(fi("string"==typeof t,"`thing` has to be of type string"),Array.isArray(e)){const n=e.length;return fi(n>0,"At least one expected value needs to be specified"),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)}`}hi.ERR_INTERNAL_ASSERTION=class e extends Error{constructor(t){super(),Error.captureStackTrace(this,e);const n="This is caused by either a bug in ssh2 or incorrect usage of ssh2 internals.\nPlease open an issue with this stack trace at https://github.com/mscdex/ssh2/issues\n";this.message=void 0===t?n:`${t}\n${n}`}};const bi=2**32,yi=(()=>{try{return new Function("return 2n ** 32n")()}catch{}})();hi.ERR_OUT_OF_RANGE=class e extends RangeError{constructor(t,n,i,r){super(),Error.captureStackTrace(this,e),fi(n,'Missing "range" argument');let s,o=r?t:`The value of "${t}" is out of range.`;Number.isInteger(i)&&Math.abs(i)>bi?s=gi(String(i)):"bigint"==typeof i?(s=String(i),(i>yi||i<-yi)&&(s=gi(s)),s+="n"):s=mi(i),o+=` It must be ${n}. Received ${s}`,this.message=o}};let vi=class e extends TypeError{constructor(t,n,i){let r,s;if(super(),Error.captureStackTrace(this,e),fi("string"==typeof t,"'name' must be a string"),"string"==typeof n&&n.startsWith("not ")?(r="must not be",n=n.replace(/^not /,"")):r="must be",t.endsWith(" argument"))s=`The ${t} ${r} ${_i(n,"type")}`;else{const e=t.includes(".")?"property":"argument";s=`The "${t}" ${e} ${r} ${_i(n,"type")}`}s+=". Received type "+typeof i,this.message=s}};hi.ERR_INVALID_ARG_TYPE=vi,hi.validateNumber=function(e,t){if("number"!=typeof e)throw new vi(t,"number",e)};const Ai=h,Ei=r,{constants:wi}=Ei,{Readable:xi,Writable:Si}=n,{inherits:Ii,types:{isDate:ki}}=f,Ci=Buffer[Symbol.species],{bufferCopy:Ri,bufferSlice:Bi,makeBufferParser:Ti,writeUInt32BE:Oi}=le(),Ni=1,Li=2,Pi=4,Ui=8,Di=2147483648,Mi=Buffer.alloc(28),Hi={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},Fi=new Map(Object.values(Hi).map(e=>[e,1])),ji={[Hi.OK]:"No error",[Hi.EOF]:"End of file",[Hi.NO_SUCH_FILE]:"No such file or directory",[Hi.PERMISSION_DENIED]:"Permission denied",[Hi.FAILURE]:"Failure",[Hi.BAD_MESSAGE]:"Bad message",[Hi.NO_CONNECTION]:"No connection",[Hi.CONNECTION_LOST]:"Connection lost",[Hi.OP_UNSUPPORTED]:"Operation unsupported"},$i=1,Qi=3,Wi=4,qi=5,Yi=6,Gi=7,Ki=8,zi=9,Xi=10,Vi=11,Ji=12,Zi=13,er=14,tr=15,nr=16,ir=17,rr=18,sr=19,or=20,ar=200,cr=2,lr=101,ur=102,pr=103,dr=104,hr=105,fr=201,mr={READ:1,WRITE:2,APPEND:4,CREAT:8,TRUNC:16,EXCL:32},gr=2**32-1,_r=Buffer.from([0,0,0,5,$i,0,0,0,3]),br=Buffer.from([0,0,0,5,cr,0,0,0,3]),yr=/^SSH-2.0-(?:OpenSSH|dropbear)/,vr=262144,Ar=Ti(),Er={readable:!1,writable:!1,push:e=>{},once:()=>{},on:()=>{},emit:()=>{},end:()=>{}};function wr(){}function xr(e,t,n,i,r,s,o,a){const c=e._maxReadLen,l=Math.max(r-c,0);l&&(r=c);const u=t.length;let p=9,d=s;const h=Buffer.allocUnsafe(13+u+8+4);Oi(h,h.length-4,0),h[4]=qi;const f=e._writeReqid=e._writeReqid+1&gr;Oi(h,f,5),Oi(h,u,p),h.set(t,p+=4),p+=u;for(let e=7;e>=0;--e)h[p+e]=255&d,d/=256;Oi(h,r,p+=8),"function"!=typeof o&&(o=wr);const m=a||{nb:0,position:s,off:i,origOff:i,len:void 0,overflow:void 0,cb:(i,r,s)=>{const a=m.len,c=m.overflow;if(i){if(o._wantEOFError||i.code!==Hi.EOF)return o(i)}else{if(s>a)return o(new Error("Received more data than requested"));if(s===a&&c)return m.nb+=s,m.position+=s,m.off+=s,void xr(e,t,n,m.off,c,m.position,o,m)}s=s||0,r=0===m.origOff&&n.length===m.nb?n:Bi(n,m.origOff,m.origOff+m.nb+s),o(void 0,m.nb+s,r,m.position)},buffer:void 0};m.len=r,m.overflow=l,m.buffer=Bi(n,i,i+r),e._requests[f]=m;const g=Pr(e,h);e._debug&&e._debug(`SFTP: Outbound: ${g?"Buffered":"Sending"} READ`)}function Sr(e,t,n,i,r,s){let o,a,c,l,u=64,p=32768;"function"==typeof r?s=r:"object"==typeof r&&null!==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),"number"==typeof r.fileSize&&r.fileSize>0&&!isNaN(r.fileSize)&&(c=r.fileSize),"function"==typeof r.step&&(o=r.step),"string"!=typeof r.mode&&"number"!=typeof r.mode||(a=Br(r.mode)));let d,h,f,m=0,g=0,_=!1,b=p*u;function y(n){if(_)return;_=!0;let i,r=0;d||h?(i=()=>{0===--r&&s(n)},!d||e!==Ei&&"open"!==e.outgoing.state||++r,!h||t!==Ei&&"open"!==t.outgoing.state||++r,!d||e!==Ei&&"open"!==e.outgoing.state||e.close(d,i),!h||t!==Ei&&"open"!==t.outgoing.state||t.close(h,i)):s(n)}e.open(n,"r",(r,_)=>{if(r)return y(r);function v(r,c){if(r)return e!==Ei?void e.stat(n,(e,t)=>{if(e)return y(r);v(null,t)}):y(r);l=c.size,t.open(i,"w",(n,r)=>{if(n)return y(n);if(h=r,l<=0)return y();for(;b>l;){if(1===u){b=l;break}b-=p,--u}if(f=function(e){try{return Buffer.allocUnsafe(e)}catch(e){return e}}(b),f instanceof Error)return y(f);function c(n,i,r,a,c,u){if(n)return y(n);c=c||0,t.write(h,f,c,i,a,function(n){if(n)return y(n);if(g+=i,o&&o(g,i,l),i<u)return _(c,a+i,u-i);if(g===l)return void t.close(h,t=>{if(h=void 0,t)return y(t);e.close(d,e=>{if(d=void 0,e)return y(e);s()})});if(m>=l)return;const r=m+p>l?l-m:p;_(c,m,r),m+=r})}function _(t,n,i){e.read(d,f,t,i,n,function(e,t,n){return(i,r,s)=>{c(i,r,0,t,e,n)}}(t,n,i))}function v(){let e=0,t=0;for(;m<l&&e<u;){const n=m+p>l?l-m:p;_(t,m,n),t+=n,m+=n,++e}}void 0!==a?t.fchmod(h,a,function e(n){n?t.chmod(i,a,t=>e()):v()}):v()})}d=_,void 0===c?e.fstat(d,v):v(null,{size:c})})}function Ir(e,t,n,i,r,s,o){const a="function"==typeof o?o:void 0;e.write(t,n,i,r,s,(o,c)=>{if(o)return e.close(t,()=>{a&&a(o)});c===r?e.close(t,a):Ir(e,t,n,i+=c,r-=c,s+=c,a)})}class kr{constructor(e){this.mode=e&&e.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,this.extended=e&&e.extended}isDirectory(){return(this.mode&wi.S_IFMT)===wi.S_IFDIR}isFile(){return(this.mode&wi.S_IFMT)===wi.S_IFREG}isBlockDevice(){return(this.mode&wi.S_IFMT)===wi.S_IFBLK}isCharacterDevice(){return(this.mode&wi.S_IFMT)===wi.S_IFCHR}isSymbolicLink(){return(this.mode&wi.S_IFMT)===wi.S_IFLNK}isFIFO(){return(this.mode&wi.S_IFMT)===wi.S_IFIFO}isSocket(){return(this.mode&wi.S_IFMT)===wi.S_IFSOCK}}function Cr(e){let t=0,n=0;if("object"==typeof e&&null!==e){if("number"==typeof e.size){t|=Ni;const i=e.size;Mi[n++]=i/72057594037927940,Mi[n++]=i/281474976710656,Mi[n++]=i/1099511627776,Mi[n++]=i/4294967296,Mi[n++]=i/16777216,Mi[n++]=i/65536,Mi[n++]=i/256,Mi[n++]=i}if("number"==typeof e.uid&&"number"==typeof e.gid){t|=Li;const i=e.uid,r=e.gid;Mi[n++]=i>>>24,Mi[n++]=i>>>16,Mi[n++]=i>>>8,Mi[n++]=i,Mi[n++]=r>>>24,Mi[n++]=r>>>16,Mi[n++]=r>>>8,Mi[n++]=r}if("number"==typeof e.mode||"string"==typeof e.mode){const i=Br(e.mode);t|=Pi,Mi[n++]=i>>>24,Mi[n++]=i>>>16,Mi[n++]=i>>>8,Mi[n++]=i}if(("number"==typeof e.atime||ki(e.atime))&&("number"==typeof e.mtime||ki(e.mtime))){const i=Rr(e.atime),r=Rr(e.mtime);t|=Ui,Mi[n++]=i>>>24,Mi[n++]=i>>>16,Mi[n++]=i>>>8,Mi[n++]=i,Mi[n++]=r>>>24,Mi[n++]=r>>>16,Mi[n++]=r>>>8,Mi[n++]=r}}return{flags:t,nb:n}}function Rr(e){if("number"==typeof e&&e==e)return e;if(ki(e))return parseInt(e.getTime()/1e3,10);throw new Error(`Cannot parse time: ${e}`)}function Br(e){if("number"==typeof e&&e==e)return e;if("string"==typeof e)return Br(parseInt(e,8));throw new Error(`Cannot parse mode: ${e}`)}const Tr={r:mr.READ,"r+":mr.READ|mr.WRITE,w:mr.TRUNC|mr.CREAT|mr.WRITE,wx:mr.TRUNC|mr.CREAT|mr.WRITE|mr.EXCL,xw:mr.TRUNC|mr.CREAT|mr.WRITE|mr.EXCL,"w+":mr.TRUNC|mr.CREAT|mr.READ|mr.WRITE,"wx+":mr.TRUNC|mr.CREAT|mr.READ|mr.WRITE|mr.EXCL,"xw+":mr.TRUNC|mr.CREAT|mr.READ|mr.WRITE|mr.EXCL,a:mr.APPEND|mr.CREAT|mr.WRITE,ax:mr.APPEND|mr.CREAT|mr.WRITE|mr.EXCL,xa:mr.APPEND|mr.CREAT|mr.WRITE|mr.EXCL,"a+":mr.APPEND|mr.CREAT|mr.READ|mr.WRITE,"ax+":mr.APPEND|mr.CREAT|mr.READ|mr.WRITE|mr.EXCL,"xa+":mr.APPEND|mr.CREAT|mr.READ|mr.WRITE|mr.EXCL};function Or(e){const t=Tr[e];return void 0!==t?t:null}const Nr=(()=>{const e=Object.keys(Tr);return t=>{for(let n=0;n<e.length;++n){const i=e[n];if(Tr[i]===t)return i}return null}})();function Lr(e){const t=Ar.readUInt32BE();if(void 0===t)return;const n=new kr;if(t&Ni){const t=Ar.readUInt64BE(e);if(void 0===t)return;n.size=t}if(t&Li){const e=Ar.readUInt32BE(),t=Ar.readUInt32BE();if(void 0===t)return;n.uid=e,n.gid=t}if(t&Pi){const e=Ar.readUInt32BE();if(void 0===e)return;n.mode=e}if(t&Ui){const e=Ar.readUInt32BE(),t=Ar.readUInt32BE();if(void 0===t)return;n.atime=e,n.mtime=t}if(t&Di){const e=Ar.readUInt32BE();if(void 0===e)return;const t={};for(let n=0;n<e;++n){const e=Ar.readString(!0),n=Ar.readString();if(void 0===n)return;t[e]=n}n.extended=t}return n}function Pr(e,t){const n=Ur(e,t);return void 0===n||(e._buffer.push(n),!1)}function Ur(e,t){const n=e.outgoing;if("open"!==n.state)return;if(0===n.window)return e._waitWindow=!0,e._chunkcb=Dr,t;let i;const r=t.length;let s=0;for(;r-s>0&&n.window>0;){const i=Math.min(r-s,n.window,n.packetSize);n.window-=i,0===n.window&&(e._waitWindow=!0,e._chunkcb=Dr),0===s&&i===r?e._protocol.channelData(e.outgoing.id,t):e._protocol.channelData(e.outgoing.id,Bi(t,s,s+i)),s+=i}return r-s>0&&(i=s>0?Bi(t,s,r):t),i}function Dr(){this._chunkcb=void 0;const e=this._buffer;let t=0;for(;t<e.length;){const n=e[t],i=Ur(this,n);if(void 0!==i)return i!==n&&(e[t]=i),void(t>0&&(this._buffer=e.slice(t)));++t}t>0&&(this._buffer=[])}function Mr(e,t,n){const i=new Error(t);return i.level="sftp-protocol",!n&&e._debug&&e._debug(`SFTP: Inbound: ${t}`),e.emit("error",i),e.destroy(),Hr(e),!1}function Hr(e){const t=Object.keys(e._requests);if(0===t.length)return;const n=e._requests;e._requests={};const i=new Error("No response from server");for(let e=0;e<t.length;++e){const r=n[t[e]];"function"==typeof r.cb&&r.cb(i)}}const Fr={[cr]:(e,t)=>{if(-1!==e._version)return Mr(e,"Duplicate VERSION packet");const n={};Ar.init(t,1);let i=Ar.readUInt32BE();for(;Ar.avail();){const e=Ar.readString(!0),t=Ar.readString(!0);if(void 0===t){i=void 0;break}n[e]=t}if(Ar.clear(),void 0===i)return Mr(e,"Malformed VERSION packet");if(e._debug){const t=Object.keys(n);t.length?e._debug(`SFTP: Inbound: Received VERSION (v${i}, exts:${t})`):e._debug(`SFTP: Inbound: Received VERSION (v${i})`)}if(e._version=i,e._extensions=n,"1"===n["limits@openssh.com"])return function(e,t){let n=9;const i=Buffer.allocUnsafe(31);Oi(i,i.length-4,0),i[4]=ar;const r=e._writeReqid=e._writeReqid+1&gr;Oi(i,r,5),Oi(i,18,n),i.utf8Write("limits@openssh.com",n+=4,18),e._requests[r]={extended:"limits@openssh.com",cb:t};const s=Pr(e,i);if(e._debug){const t=s?"Buffered":"Sending";e._debug(`SFTP: Outbound: ${t} limits@openssh.com`)}}(e,(t,n)=>{t||(n.maxPktLen>0&&(e._maxOutPktLen=n.maxPktLen),n.maxReadLen>0&&(e._maxReadLen=n.maxReadLen),n.maxWriteLen>0&&(e._maxWriteLen=n.maxWriteLen),e.maxOpenHandles=n.maxOpenHandles>0?n.maxOpenHandles:1/0),e.emit("ready")});e.emit("ready")},[lr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readUInt32BE(),r=Ar.readString(!0);if(Ar.clear(),e._debug){const t=JSON.stringify(r);e._debug(`SFTP: Inbound: Received STATUS (id:${n}, ${i}, ${t})`)}const s=e._requests[n];if(delete e._requests[n],s&&"function"==typeof s.cb){if(i===Hi.OK)return void s.cb();const e=new Error(r||ji[i]||"Unknown status");e.code=i,s.cb(e)}},[ur]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString();if(Ar.clear(),void 0===i)return void 0!==n&&delete e._requests[n],Mr(e,"Malformed HANDLE packet");e._debug&&e._debug(`SFTP: Inbound: Received HANDLE (id:${n})`);const r=e._requests[n];delete e._requests[n],r&&"function"==typeof r.cb&&r.cb(void 0,i)},[pr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE();let i;if(void 0!==n&&(i=e._requests[n],delete e._requests[n]),i&&"function"==typeof i.cb)if(i.buffer){const t=Ar.readString(i.buffer);if(Ar.clear(),void 0!==t)return e._debug&&e._debug(`SFTP: Inbound: Received DATA (id:${n}, ${t})`),void i.cb(void 0,i.buffer,t)}else{const t=Ar.readString();if(Ar.clear(),void 0!==t)return e._debug&&e._debug(`SFTP: Inbound: Received DATA (id:${n}, ${t.length})`),void i.cb(void 0,t)}else{const t=Ar.skipString();if(Ar.clear(),void 0!==t)return void(e._debug&&e._debug(`SFTP: Inbound: Received DATA (id:${n}, ${t})`))}return Mr(e,"Malformed DATA packet")},[dr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE();let i;void 0!==n&&(i=e._requests[n],delete e._requests[n]);const r=Ar.readUInt32BE();if(void 0!==r){let t=[];for(let n=0;n<r;++n){const n=Ar.readString(!0),i=Ar.readString(!0),r=Lr(e._biOpt);if(void 0===r){t=void 0;break}t.push({filename:n,longname:i,attrs:r})}if(void 0!==t)return e._debug&&e._debug(`SFTP: Inbound: Received NAME (id:${n}, ${t.length})`),Ar.clear(),void(i&&"function"==typeof i.cb&&i.cb(void 0,t))}return Ar.clear(),Mr(e,"Malformed NAME packet")},[hr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE();let i;void 0!==n&&(i=e._requests[n],delete e._requests[n]);const r=Lr(e._biOpt);return Ar.clear(),void 0!==r?(e._debug&&e._debug(`SFTP: Inbound: Received ATTRS (id:${n})`),void(i&&"function"==typeof i.cb&&i.cb(void 0,r))):Mr(e,"Malformed ATTRS packet")},[fr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE();if(void 0!==n){const t=e._requests[n];if(!t)return e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ???)`),void Ar.clear();switch(delete e._requests[n],t.extended){case"statvfs@openssh.com":case"fstatvfs@openssh.com":{const i=e._biOpt,r={f_bsize:Ar.readUInt64BE(i),f_frsize:Ar.readUInt64BE(i),f_blocks:Ar.readUInt64BE(i),f_bfree:Ar.readUInt64BE(i),f_bavail:Ar.readUInt64BE(i),f_files:Ar.readUInt64BE(i),f_ffree:Ar.readUInt64BE(i),f_favail:Ar.readUInt64BE(i),f_sid:Ar.readUInt64BE(i),f_flag:Ar.readUInt64BE(i),f_namemax:Ar.readUInt64BE(i)};if(void 0===r.f_namemax)break;return e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ${t.extended})`),Ar.clear(),void("function"==typeof t.cb&&t.cb(void 0,r))}case"limits@openssh.com":{const i={maxPktLen:Ar.readUInt64BE(),maxReadLen:Ar.readUInt64BE(),maxWriteLen:Ar.readUInt64BE(),maxOpenHandles:Ar.readUInt64BE()};if(void 0===i.maxOpenHandles)break;return e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ${t.extended})`),Ar.clear(),void("function"==typeof t.cb&&t.cb(void 0,i))}case"users-groups-by-id@openssh.com":{const i=Ar.readUInt32BE();if(void 0===i)break;const r=new Array(i);for(let e=0;e<r.length;++e)r[e]=Ar.readString(!0);const s=Ar.readUInt32BE();if(void 0===s)break;const o=new Array(s);for(let e=0;e<o.length;++e)o[e]=Ar.readString(!0);if(o.length>0&&void 0===o[o.length-1])break;return e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ${t.extended})`),Ar.clear(),void("function"==typeof t.cb&&t.cb(void 0,r,o))}default:return e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ???)`),Ar.clear(),void("function"==typeof t.cb&&t.cb())}}return Ar.clear(),Mr(e,"Malformed EXTENDED_REPLY packet")}},jr={[$i]:(e,t)=>{if(-1!==e._version)return Mr(e,"Duplicate INIT packet");const n={};Ar.init(t,1);let i=Ar.readUInt32BE();for(;Ar.avail();){const e=Ar.readString(!0),t=Ar.readString(!0);if(void 0===t){i=void 0;break}n[e]=t}if(Ar.clear(),void 0===i)return Mr(e,"Malformed INIT packet");if(e._debug){const t=Object.keys(n);t.length?e._debug(`SFTP: Inbound: Received INIT (v${i}, exts:${t})`):e._debug(`SFTP: Inbound: Received INIT (v${i})`)}Pr(e,br),e._version=i,e._extensions=n,e.emit("ready")},[Qi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0),r=Ar.readUInt32BE(),s=Lr(e._biOpt);if(Ar.clear(),void 0===s)return Mr(e,"Malformed OPEN packet");e._debug&&e._debug(`SFTP: Inbound: Received OPEN (id:${n})`),e.emit("OPEN",n,i,r,s)||e.status(n,Hi.OP_UNSUPPORTED)},[Wi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString();if(Ar.clear(),void 0===i||i.length>256)return Mr(e,"Malformed CLOSE packet");e._debug&&e._debug(`SFTP: Inbound: Received CLOSE (id:${n})`),e.emit("CLOSE",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[qi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(),r=Ar.readUInt64BE(e._biOpt),s=Ar.readUInt32BE();if(Ar.clear(),void 0===s||i.length>256)return Mr(e,"Malformed READ packet");e._debug&&e._debug(`SFTP: Inbound: Received READ (id:${n})`),e.emit("READ",n,i,r,s)||e.status(n,Hi.OP_UNSUPPORTED)},[Yi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(),r=Ar.readUInt64BE(e._biOpt),s=Ar.readString();if(Ar.clear(),void 0===s||i.length>256)return Mr(e,"Malformed WRITE packet");e._debug&&e._debug(`SFTP: Inbound: Received WRITE (id:${n})`),e.emit("WRITE",n,i,r,s)||e.status(n,Hi.OP_UNSUPPORTED)},[Gi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(Ar.clear(),void 0===i)return Mr(e,"Malformed LSTAT packet");e._debug&&e._debug(`SFTP: Inbound: Received LSTAT (id:${n})`),e.emit("LSTAT",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[Ki]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString();if(Ar.clear(),void 0===i||i.length>256)return Mr(e,"Malformed FSTAT packet");e._debug&&e._debug(`SFTP: Inbound: Received FSTAT (id:${n})`),e.emit("FSTAT",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[zi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0),r=Lr(e._biOpt);if(Ar.clear(),void 0===r)return Mr(e,"Malformed SETSTAT packet");e._debug&&e._debug(`SFTP: Inbound: Received SETSTAT (id:${n})`),e.emit("SETSTAT",n,i,r)||e.status(n,Hi.OP_UNSUPPORTED)},[Xi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(),r=Lr(e._biOpt);if(Ar.clear(),void 0===r||i.length>256)return Mr(e,"Malformed FSETSTAT packet");e._debug&&e._debug(`SFTP: Inbound: Received FSETSTAT (id:${n})`),e.emit("FSETSTAT",n,i,r)||e.status(n,Hi.OP_UNSUPPORTED)},[Vi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(Ar.clear(),void 0===i)return Mr(e,"Malformed OPENDIR packet");e._debug&&e._debug(`SFTP: Inbound: Received OPENDIR (id:${n})`),e.emit("OPENDIR",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[Ji]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString();if(Ar.clear(),void 0===i||i.length>256)return Mr(e,"Malformed READDIR packet");e._debug&&e._debug(`SFTP: Inbound: Received READDIR (id:${n})`),e.emit("READDIR",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[Zi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(Ar.clear(),void 0===i)return Mr(e,"Malformed REMOVE packet");e._debug&&e._debug(`SFTP: Inbound: Received REMOVE (id:${n})`),e.emit("REMOVE",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[er]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0),r=Lr(e._biOpt);if(Ar.clear(),void 0===r)return Mr(e,"Malformed MKDIR packet");e._debug&&e._debug(`SFTP: Inbound: Received MKDIR (id:${n})`),e.emit("MKDIR",n,i,r)||e.status(n,Hi.OP_UNSUPPORTED)},[tr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(Ar.clear(),void 0===i)return Mr(e,"Malformed RMDIR packet");e._debug&&e._debug(`SFTP: Inbound: Received RMDIR (id:${n})`),e.emit("RMDIR",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[nr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(Ar.clear(),void 0===i)return Mr(e,"Malformed REALPATH packet");e._debug&&e._debug(`SFTP: Inbound: Received REALPATH (id:${n})`),e.emit("REALPATH",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[ir]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(Ar.clear(),void 0===i)return Mr(e,"Malformed STAT packet");e._debug&&e._debug(`SFTP: Inbound: Received STAT (id:${n})`),e.emit("STAT",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[rr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0),r=Ar.readString(!0);if(Ar.clear(),void 0===r)return Mr(e,"Malformed RENAME packet");e._debug&&e._debug(`SFTP: Inbound: Received RENAME (id:${n})`),e.emit("RENAME",n,i,r)||e.status(n,Hi.OP_UNSUPPORTED)},[sr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(Ar.clear(),void 0===i)return Mr(e,"Malformed READLINK packet");e._debug&&e._debug(`SFTP: Inbound: Received READLINK (id:${n})`),e.emit("READLINK",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[or]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0),r=Ar.readString(!0);if(Ar.clear(),void 0===r)return Mr(e,"Malformed SYMLINK packet");let s;e._debug&&e._debug(`SFTP: Inbound: Received SYMLINK (id:${n})`),s=e._isOpenSSH?e.emit("SYMLINK",n,r,i):e.emit("SYMLINK",n,i,r),s||e.status(n,Hi.OP_UNSUPPORTED)},[ar]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(void 0===i)return Ar.clear(),Mr(e,"Malformed EXTENDED packet");let r;Ar.avail()&&(r=Ar.readRaw()),Ar.clear(),e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED (id:${n})`),e.emit("EXTENDED",n,i,r)||e.status(n,Hi.OP_UNSUPPORTED)}},{ERR_INVALID_ARG_TYPE:$r,ERR_OUT_OF_RANGE:Qr,validateNumber:Wr}=hi;let qr;const Yr=[];function Gr(e,t){if(!Number.isSafeInteger(e)){if(Wr(e,t),!Number.isInteger(e))throw new Qr(t,"an integer",e);throw new Qr(t,">= 0 and <= 2 ** 53 - 1",e)}if(e<0)throw new Qr(t,">= 0 and <= 2 ** 53 - 1",e)}function Kr(e){return e+7&-8}function zr(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(void 0===n.highWaterMark&&(n.highWaterMark=65536),n.emitClose=!1,n.autoDestroy=!1,xi.call(this,n),this.path=t,this.flags=void 0===n.flags?"r":n.flags,this.mode=void 0===n.mode?438:n.mode,this.start=n.start,this.end=n.end,this.autoClose=void 0===n.autoClose||n.autoClose,this.pos=0,this.bytesRead=0,this.isClosed=!1,this.handle=void 0===n.handle?null:n.handle,this.sftp=e,this._opening=!1,void 0!==this.start&&(Gr(this.start,"start"),this.pos=this.start),void 0===this.end)this.end=1/0;else if(this.end!==1/0&&(Gr(this.end,"end"),void 0!==this.start&&this.start>this.end))throw new Qr("start",`<= "end" (here: ${this.end})`,this.start);this.on("end",function(){this.autoClose&&this.destroy()}),Buffer.isBuffer(this.handle)||this.open()}function Xr(e,t,n){if(!e.handle)return i();function i(i){t(i=i||n),e.isClosed=!0,i||e.emit("close")}e.sftp.close(e.handle,i)}function Vr(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)}n.emitClose=!1,n.autoDestroy=!1,Si.call(this,n),this.path=t,this.flags=void 0===n.flags?"w":n.flags,this.mode=void 0===n.mode?438:n.mode,this.start=n.start,this.autoClose=void 0===n.autoClose||n.autoClose,this.pos=0,this.bytesWritten=0,this.isClosed=!1,this.handle=void 0===n.handle?null:n.handle,this.sftp=e,this._opening=!1,void 0!==this.start&&(Gr(this.start,"start"),this.pos=this.start),n.encoding&&this.setDefaultEncoding(n.encoding),this.on("finish",function(){this._writableState.finalCalled||this.autoClose&&this.destroy()}),Buffer.isBuffer(this.handle)||this.open()}Ii(zr,xi),zr.prototype.open=function(){this._opening||(this._opening=!0,this.sftp.open(this.path,this.flags,this.mode,(e,t)=>{if(this._opening=!1,e)return this.emit("error",e),void(this.autoClose&&this.destroy());this.handle=t,this.emit("open",t),this.emit("ready"),this.read()}))},zr.prototype._read=function(e){if(!Buffer.isBuffer(this.handle))return this.once("open",()=>this._read(e));if(this.destroyed)return;var t;(!qr||qr.length-qr.used<128)&&(t=this.readableHighWaterMark||this._readableState.highWaterMark,qr=Yr.length>0?Yr.pop():Buffer.allocUnsafe(t),qr.used=0);const n=qr;let i=Math.min(qr.length-qr.used,e);const r=qr.used;if(void 0!==this.end&&(i=Math.min(this.end-this.pos+1,i)),i<=0)return this.push(null);this.sftp.read(this.handle,qr,qr.used,i,this.pos,(e,t)=>{if(e)return this.emit("error",e),void(this.autoClose&&this.destroy());let s=null;if(r+i===n.used&&n===qr)n.used=Kr(n.used+t-i);else{const e=r+i&-8,s=Kr(r+t);e-s>=128&&Yr.push(n.slice(s,e))}t>0&&(this.bytesRead+=t,s=n.slice(r,r+t)),this.pos+=t,this.push(s)}),qr.used=Kr(qr.used+i)},zr.prototype._destroy=function(e,t){!this._opening||Buffer.isBuffer(this.handle)?(Xr(this,t,e),this.handle=null,this._opening=!1):this.once("open",Xr.bind(null,this,t,e))},zr.prototype.close=function(e){this.destroy(null,e)},Object.defineProperty(zr.prototype,"pending",{get(){return null===this.handle},configurable:!0}),Ii(Vr,Si),Vr.prototype._final=function(e){this.autoClose&&this.destroy(),e()},Vr.prototype.open=function(){this._opening||(this._opening=!0,this.sftp.open(this.path,this.flags,this.mode,(e,t)=>{if(this._opening=!1,e)return this.emit("error",e),void(this.autoClose&&this.destroy());this.handle=t;const n=e=>{if(e)this.sftp.chmod(this.path,this.mode,e=>n());else{if("a"===this.flags[0]){const e=(n,i)=>{n?this.sftp.stat(this.path,(t,i)=>{if(t)return this.destroy(),void this.emit("error",n);e(null,i)}):(this.pos=i.size,this.emit("open",t),this.emit("ready"))};return void this.sftp.fstat(t,e)}this.emit("open",t),this.emit("ready")}};this.sftp.fchmod(t,this.mode,n)}))},Vr.prototype._write=function(e,t,n){if(!Buffer.isBuffer(e)){const t=new $r("data","Buffer",e);return this.emit("error",t)}if(!Buffer.isBuffer(this.handle))return this.once("open",function(){this._write(e,t,n)});this.sftp.write(this.handle,e,0,e.length,this.pos,(e,t)=>{if(e)return this.autoClose&&this.destroy(),n(e);this.bytesWritten+=t,n()}),this.pos+=e.length},Vr.prototype._writev=function(e,t){if(!Buffer.isBuffer(this.handle))return this.once("open",function(){this._writev(e,t)});const n=this.sftp,i=this.handle;let r=e.length;const s=(e,n)=>{if(e)return this.destroy(),t(e);this.bytesWritten+=n,0===--r&&t()};for(let t=0;t<e.length;++t){const r=e[t].chunk;n.write(i,r,0,r.length,this.pos,s),this.pos+=r.length}},"function"!=typeof Si.prototype.destroy&&(Vr.prototype.destroy=zr.prototype.destroy),Vr.prototype._destroy=zr.prototype._destroy,Vr.prototype.close=function(e){if(e){if(this.isClosed)return void process.nextTick(e);this.on("close",e)}this.autoClose||this.on("finish",this.destroy.bind(this)),this.end()},Vr.prototype.destroySoon=Vr.prototype.end,Object.defineProperty(Vr.prototype,"pending",{get(){return null===this.handle},configurable:!0});var Jr={flagsToString:Nr,OPEN_MODE:mr,SFTP:class extends Ai{constructor(e,t,n){super(),"object"==typeof n&&n||(n={});const i=e._protocol._remoteIdentRaw;this.server=!!n.server,this._debug="function"==typeof n.debug?n.debug:void 0,this._isOpenSSH=i&&yr.test(i),this._version=-1,this._extensions={},this._biOpt=n.biOpt,this._pktLenBytes=0,this._pktLen=0,this._pktPos=0,this._pktType=0,this._pktData=void 0,this._writeReqid=-1,this._requests={},this._maxInPktLen=vr,this._maxOutPktLen=34e3,this._maxReadLen=(this._isOpenSSH?vr:34e3)-2048,this._maxWriteLen=(this._isOpenSSH?vr:34e3)-2048,this.maxOpenHandles=void 0,this._client=e,this._protocol=e._protocol,this._callbacks=[],this._hasX11=!1,this._exit={code:void 0,signal:void 0,dump:void 0,desc:void 0},this._waitWindow=!1,this._chunkcb=void 0,this._buffer=[],this.type=t.type,this.subtype=void 0,this.incoming=t.incoming,this.outgoing=t.outgoing,this.stderr=Er,this.readable=!0}push(e){if(null===e){if(Hr(this),!this.readable)return;return this.readable=!1,void this.emit("end")}let t=0;for(;t<e.length;){if(this._pktLenBytes<4){let n=Math.min(4-this._pktLenBytes,e.length-t);for(this._pktLenBytes+=n;n--;)this._pktLen=(this._pktLen<<8)+e[t++];if(this._pktLenBytes<4)return;if(0===this._pktLen)return Mr(this,"Invalid packet length");if(this._pktLen>this._maxInPktLen){const e=this._maxInPktLen;return Mr(this,`Packet length ${this._pktLen} exceeds max length of ${e}`)}if(t>=e.length)return}if(this._pktPos<this._pktLen){const n=Math.min(this._pktLen-this._pktPos,e.length-t);if(0!==t||n!==e.length?n===this._pktLen?this._pkt=new Ci(e.buffer,e.byteOffset+t,n):(this._pkt||(this._pkt=Buffer.allocUnsafe(this._pktLen)),this._pkt.set(new Uint8Array(e.buffer,e.byteOffset+t,n),this._pktPos)):n===this._pktLen?this._pkt=e:(this._pkt||(this._pkt=Buffer.allocUnsafe(this._pktLen)),this._pkt.set(e,this._pktPos)),t+=n,this._pktPos+=n,this._pktPos<this._pktLen)return}const n=this._pkt[0],i=this._pkt;this._pktLen=0,this._pktLenBytes=0,this._pkt=void 0,this._pktPos=0;const r=this.server?jr[n]:Fr[n];if(!r)return Mr(this,`Unknown packet type ${n}`);if(-1===this._version)if(this.server){if(n!==$i)return Mr(this,`Expected INIT packet, got ${n}`)}else if(n!==cr)return Mr(this,`Expected VERSION packet, got ${n}`);if(!1===r(this,i))return}}end(){this.destroy()}destroy(){"open"!==this.outgoing.state&&"eof"!==this.outgoing.state||(this.outgoing.state="closing",this._protocol.channelClose(this.outgoing.id))}_init(){this._init=wr,this.server||Pr(this,_r)}createReadStream(e,t){if(this.server)throw new Error("Client-only method called in server mode");return new zr(this,e,t)}createWriteStream(e,t){if(this.server)throw new Error("Client-only method called in server mode");return new Vr(this,e,t)}open(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");"function"==typeof n&&(i=n,n=void 0);const r="number"==typeof t?t:Or(t);if(null===r)throw new Error(`Unknown flags string: ${t}`);let s=0,o=0;"string"!=typeof n&&"number"!=typeof n||(n={mode:n}),"object"==typeof n&&null!==n&&(s=(n=Cr(n)).flags,o=n.nb);const a=Buffer.byteLength(e);let c=9;const l=Buffer.allocUnsafe(13+a+4+4+o);Oi(l,l.length-4,0),l[4]=Qi;const u=this._writeReqid=this._writeReqid+1&gr;Oi(l,u,5),Oi(l,a,c),l.utf8Write(e,c+=4,a),Oi(l,r,c+=a),Oi(l,s,c+=4),o&&(c+=4,o===Mi.length?l.set(Mi,c):Ri(Mi,l,0,o,c),c+=o),this._requests[u]={cb:i};const p=Pr(this,l);this._debug&&this._debug(`SFTP: Outbound: ${p?"Buffered":"Sending"} OPEN`)}close(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");const n=e.length;let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=Wi;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.set(e,i+=4),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} CLOSE`)}read(e,t,n,i,r,s){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");xr(this,e,t,n,i,r,s)}readData(e,t,n,i,r,s){this.read(e,t,n,i,r,s)}write(e,t,n,i,r,s){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");if(!i)return void(s&&process.nextTick(s,void 0,0));const o=this._maxWriteLen,a=Math.max(i-o,0),c=r;a&&(i=o);const l=e.length;let u=9;const p=Buffer.allocUnsafe(13+l+8+4+i);Oi(p,p.length-4,0),p[4]=Yi;const d=this._writeReqid=this._writeReqid+1&gr;Oi(p,d,5),Oi(p,l,u),p.set(e,u+=4),u+=l;for(let e=7;e>=0;--e)p[u+e]=255&r,r/=256;Oi(p,i,u+=8),Ri(t,p,n,n+i,u+=4),this._requests[d]={cb:r=>{r?"function"==typeof s&&s(r):a?this.write(e,t,n+i,a,c+i,s):"function"==typeof s&&s(void 0,n+i)}};const h=Pr(this,p);if(this._debug){const e=h?"Sent":"Buffered";this._debug(`SFTP: Outbound: ${e} WRITE (id:${d})`)}}writeData(e,t,n,i,r,s){this.write(e,t,n,i,r,s)}fastGet(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");Sr(this,Ei,e,t,n,i)}fastPut(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");Sr(Ei,this,e,t,n,i)}readFile(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");let i;if("function"==typeof n?i=n:"function"==typeof t&&(i=t,t=void 0),"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"};const r=t.encoding;if(r&&!Buffer.isEncoding(r))throw new Error(`Unknown encoding: ${r}`);let s,o,a,c,l=0,u=0;const p=t.flag||"r",d=()=>{0===s?(o=Buffer.allocUnsafe(8192),this.read(c,o,0,8192,u,h)):this.read(c,o,l,s-l,u,h)},h=(e,t)=>{let n;if(e){if(n=e.code===Hi.EOF,!n)return this.close(c,()=>i&&i(e))}else n=!1;if(n||0===s&&0===t)return f();u+=t,l+=t,0!==s?l===s?f():d():(a.push(Bi(o,0,t)),d())};h._wantEOFError=!0;const f=()=>{this.close(c,e=>(0===s?o=Buffer.concat(a,l):l<s&&(o=Bi(o,0,l)),r&&(o=o.toString(r)),i&&i(e,o)))};this.open(e,p,438,(t,n)=>{if(t)return i&&i(t);c=n;const r=(t,n)=>{if(t)this.stat(e,(e,n)=>{if(e)return this.close(c,()=>{i&&i(t)});r(null,n)});else{if(s=n.size||0,0===s)return a=[],d();o=Buffer.allocUnsafe(s),d()}};this.fstat(c,r)})}writeFile(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");let r;if("function"==typeof i?r=i:"function"==typeof n&&(r=n,n=void 0),"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"};if(n.encoding&&!Buffer.isEncoding(n.encoding))throw new Error(`Unknown encoding: ${n.encoding}`);const s=n.flag||"w";this.open(e,s,n.mode,(i,o)=>{if(i)r&&r(i);else{const i=Buffer.isBuffer(t)?t:Buffer.from(""+t,n.encoding||"utf8"),a=/a/.test(s)?null:0;if(null===a){const t=(n,s)=>{n?this.stat(e,(e,i)=>{if(e)return this.close(o,()=>{r&&r(n)});t(null,i)}):Ir(this,o,i,0,i.length,s.size,r)};return void this.fstat(o,t)}Ir(this,o,i,0,i.length,a,r)}})}appendFile(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");let r;if("function"==typeof i?r=i:"function"==typeof n&&(r=n,n=void 0),"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"};n.flag||(n=Object.assign({flag:"a"},n)),this.writeFile(e,t,n,r)}exists(e,t){if(this.server)throw new Error("Client-only method called in server mode");this.stat(e,e=>{t&&t(!e)})}unlink(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=Zi;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.utf8Write(e,i+=4,n),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} REMOVE`)}rename(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");const i=Buffer.byteLength(e),r=Buffer.byteLength(t);let s=9;const o=Buffer.allocUnsafe(13+i+4+r);Oi(o,o.length-4,0),o[4]=rr;const a=this._writeReqid=this._writeReqid+1&gr;Oi(o,a,5),Oi(o,i,s),o.utf8Write(e,s+=4,i),Oi(o,r,s+=i),o.utf8Write(t,s+=4,r),this._requests[a]={cb:n};const c=Pr(this,o);this._debug&&this._debug(`SFTP: Outbound: ${c?"Buffered":"Sending"} RENAME`)}mkdir(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");let i=0,r=0;"function"==typeof t&&(n=t,t=void 0),"object"==typeof t&&null!==t&&(i=(t=Cr(t)).flags,r=t.nb);const s=Buffer.byteLength(e);let o=9;const a=Buffer.allocUnsafe(13+s+4+r);Oi(a,a.length-4,0),a[4]=er;const c=this._writeReqid=this._writeReqid+1&gr;Oi(a,c,5),Oi(a,s,o),a.utf8Write(e,o+=4,s),Oi(a,i,o+=s),r&&(o+=4,r===Mi.length?a.set(Mi,o):Ri(Mi,a,0,r,o),o+=r),this._requests[c]={cb:n};const l=Pr(this,a);this._debug&&this._debug(`SFTP: Outbound: ${l?"Buffered":"Sending"} MKDIR`)}rmdir(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=tr;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.utf8Write(e,i+=4,n),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} RMDIR`)}readdir(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");"function"==typeof t&&(n=t,t={}),"object"==typeof t&&null!==t||(t={});const i=!t||!t.full;if(!Buffer.isBuffer(e)&&"string"!=typeof e)throw new Error("missing directory handle or path");if("string"==typeof e){const i=[];let r=0;const s=(e,o)=>{if(e)return n(e);this.readdir(o,t,(e,t)=>{const a=e&&e.code===Hi.EOF;if(e&&!a)return this.close(o,()=>n(e));if(a)return this.close(o,e=>{if(e)return n(e);n(void 0,i)});for(let e=0;e<t.length;++e,++r)i[r]=t[e];s(void 0,o)})};return this.opendir(e,s)}const r=e.length;let s=9;const o=Buffer.allocUnsafe(13+r);Oi(o,o.length-4,0),o[4]=Ji;const a=this._writeReqid=this._writeReqid+1&gr;Oi(o,a,5),Oi(o,r,s),o.set(e,s+=4),this._requests[a]={cb:i?(e,t)=>{if("function"==typeof n){if(e)return n(e);for(let e=t.length-1;e>=0;--e)"."!==t[e].filename&&".."!==t[e].filename||t.splice(e,1);n(void 0,t)}}:n};const c=Pr(this,o);this._debug&&this._debug(`SFTP: Outbound: ${c?"Buffered":"Sending"} READDIR`)}fstat(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");const n=e.length;let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=Ki;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.set(e,i+=4),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} FSTAT`)}stat(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=ir;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.utf8Write(e,i+=4,n),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} STAT`)}lstat(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=Gi;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.utf8Write(e,i+=4,n),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} LSTAT`)}opendir(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=Vi;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.utf8Write(e,i+=4,n),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} OPENDIR`)}setstat(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");let i=0,r=0;"object"==typeof t&&null!==t?(i=(t=Cr(t)).flags,r=t.nb):"function"==typeof t&&(n=t);const s=Buffer.byteLength(e);let o=9;const a=Buffer.allocUnsafe(13+s+4+r);Oi(a,a.length-4,0),a[4]=zi;const c=this._writeReqid=this._writeReqid+1&gr;Oi(a,c,5),Oi(a,s,o),a.utf8Write(e,o+=4,s),Oi(a,i,o+=s),r&&(o+=4,r===Mi.length?a.set(Mi,o):Ri(Mi,a,0,r,o),o+=r),this._requests[c]={cb:n};const l=Pr(this,a);this._debug&&this._debug(`SFTP: Outbound: ${l?"Buffered":"Sending"} SETSTAT`)}fsetstat(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");let i=0,r=0;"object"==typeof t&&null!==t?(i=(t=Cr(t)).flags,r=t.nb):"function"==typeof t&&(n=t);const s=e.length;let o=9;const a=Buffer.allocUnsafe(13+s+4+r);Oi(a,a.length-4,0),a[4]=Xi;const c=this._writeReqid=this._writeReqid+1&gr;Oi(a,c,5),Oi(a,s,o),a.set(e,o+=4),Oi(a,i,o+=s),r&&(o+=4,r===Mi.length?a.set(Mi,o):Ri(Mi,a,0,r,o),o+=r),this._requests[c]={cb:n};const l=Pr(this,a);this._debug&&this._debug(`SFTP: Outbound: ${l?"Buffered":"Sending"} FSETSTAT`)}futimes(e,t,n,i){return this.fsetstat(e,{atime:Rr(t),mtime:Rr(n)},i)}utimes(e,t,n,i){return this.setstat(e,{atime:Rr(t),mtime:Rr(n)},i)}fchown(e,t,n,i){return this.fsetstat(e,{uid:t,gid:n},i)}chown(e,t,n,i){return this.setstat(e,{uid:t,gid:n},i)}fchmod(e,t,n){return this.fsetstat(e,{mode:t},n)}chmod(e,t,n){return this.setstat(e,{mode:t},n)}readlink(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=sr;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.utf8Write(e,i+=4,n),this._requests[s]={cb:(e,n)=>{if("function"==typeof t)return e?t(e):n&&n.length?void t(void 0,n[0].filename):t(new Error("Response missing link info"))}};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} READLINK`)}symlink(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");const i=Buffer.byteLength(t),r=Buffer.byteLength(e);let s=9;const o=Buffer.allocUnsafe(13+i+4+r);Oi(o,o.length-4,0),o[4]=or;const a=this._writeReqid=this._writeReqid+1&gr;Oi(o,a,5),this._isOpenSSH?(Oi(o,r,s),o.utf8Write(e,s+=4,r),Oi(o,i,s+=r),o.utf8Write(t,s+=4,i)):(Oi(o,i,s),o.utf8Write(t,s+=4,i),Oi(o,r,s+=i),o.utf8Write(e,s+=4,r)),this._requests[a]={cb:n};const c=Pr(this,o);this._debug&&this._debug(`SFTP: Outbound: ${c?"Buffered":"Sending"} SYMLINK`)}realpath(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=nr;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.utf8Write(e,i+=4,n),this._requests[s]={cb:(e,n)=>{if("function"==typeof t)return e?t(e):n&&n.length?void t(void 0,n[0].filename):t(new Error("Response missing path info"))}};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} REALPATH`)}ext_openssh_rename(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");const i=this._extensions["posix-rename@openssh.com"];if(!i||"1"!==i)throw new Error("Server does not support this extended request");const r=Buffer.byteLength(e),s=Buffer.byteLength(t);let o=9;const a=Buffer.allocUnsafe(41+r+4+s);Oi(a,a.length-4,0),a[4]=ar;const c=this._writeReqid=this._writeReqid+1&gr;Oi(a,c,5),Oi(a,24,o),a.utf8Write("posix-rename@openssh.com",o+=4,24),Oi(a,r,o+=24),a.utf8Write(e,o+=4,r),Oi(a,s,o+=r),a.utf8Write(t,o+=4,s),this._requests[c]={cb:n};const l=Pr(this,a);if(this._debug){const e=l?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} posix-rename@openssh.com`)}}ext_openssh_statvfs(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=this._extensions["statvfs@openssh.com"];if(!n||"2"!==n)throw new Error("Server does not support this extended request");const i=Buffer.byteLength(e);let r=9;const s=Buffer.allocUnsafe(36+i);Oi(s,s.length-4,0),s[4]=ar;const o=this._writeReqid=this._writeReqid+1&gr;Oi(s,o,5),Oi(s,19,r),s.utf8Write("statvfs@openssh.com",r+=4,19),Oi(s,i,r+=19),s.utf8Write(e,r+=4,i),this._requests[o]={extended:"statvfs@openssh.com",cb:t};const a=Pr(this,s);if(this._debug){const e=a?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} statvfs@openssh.com`)}}ext_openssh_fstatvfs(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=this._extensions["fstatvfs@openssh.com"];if(!n||"2"!==n)throw new Error("Server does not support this extended request");if(!Buffer.isBuffer(e))throw new Error("handle is not a Buffer");const i=e.length;let r=9;const s=Buffer.allocUnsafe(37+i);Oi(s,s.length-4,0),s[4]=ar;const o=this._writeReqid=this._writeReqid+1&gr;Oi(s,o,5),Oi(s,20,r),s.utf8Write("fstatvfs@openssh.com",r+=4,20),Oi(s,i,r+=20),s.set(e,r+=4),this._requests[o]={extended:"fstatvfs@openssh.com",cb:t};const a=Pr(this,s);if(this._debug){const e=a?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} fstatvfs@openssh.com`)}}ext_openssh_hardlink(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");if("1"!==this._extensions["hardlink@openssh.com"])throw new Error("Server does not support this extended request");const i=Buffer.byteLength(e),r=Buffer.byteLength(t);let s=9;const o=Buffer.allocUnsafe(37+i+4+r);Oi(o,o.length-4,0),o[4]=ar;const a=this._writeReqid=this._writeReqid+1&gr;Oi(o,a,5),Oi(o,20,s),o.utf8Write("hardlink@openssh.com",s+=4,20),Oi(o,i,s+=20),o.utf8Write(e,s+=4,i),Oi(o,r,s+=i),o.utf8Write(t,s+=4,r),this._requests[a]={cb:n};const c=Pr(this,o);if(this._debug){const e=c?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} hardlink@openssh.com`)}}ext_openssh_fsync(e,t){if(this.server)throw new Error("Client-only method called in server mode");if("1"!==this._extensions["fsync@openssh.com"])throw new Error("Server does not support this extended request");if(!Buffer.isBuffer(e))throw new Error("handle is not a Buffer");const n=e.length;let i=9;const r=Buffer.allocUnsafe(34+n);Oi(r,r.length-4,0),r[4]=ar;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,17,i),r.utf8Write("fsync@openssh.com",i+=4,17),Oi(r,n,i+=17),r.set(e,i+=4),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} fsync@openssh.com`)}ext_openssh_lsetstat(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");if("1"!==this._extensions["lsetstat@openssh.com"])throw new Error("Server does not support this extended request");let i=0,r=0;"object"==typeof t&&null!==t?(i=(t=Cr(t)).flags,r=t.nb):"function"==typeof t&&(n=t);const s=Buffer.byteLength(e);let o=9;const a=Buffer.allocUnsafe(37+s+4+r);Oi(a,a.length-4,0),a[4]=ar;const c=this._writeReqid=this._writeReqid+1&gr;Oi(a,c,5),Oi(a,20,o),a.utf8Write("lsetstat@openssh.com",o+=4,20),Oi(a,s,o+=20),a.utf8Write(e,o+=4,s),Oi(a,i,o+=s),r&&(o+=4,r===Mi.length?a.set(Mi,o):Ri(Mi,a,0,r,o),o+=r),this._requests[c]={cb:n};const l=Pr(this,a);if(this._debug){const e=l?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} lsetstat@openssh.com`)}}ext_openssh_expandPath(e,t){if(this.server)throw new Error("Client-only method called in server mode");if("1"!==this._extensions["expand-path@openssh.com"])throw new Error("Server does not support this extended request");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(40+n);Oi(r,r.length-4,0),r[4]=ar;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,23,i),r.utf8Write("expand-path@openssh.com",i+=4,23),Oi(r,n,i+=20),r.utf8Write(e,i+=4,n),this._requests[s]={cb:(e,n)=>{if("function"==typeof t)return e?t(e):n&&n.length?void t(void 0,n[0].filename):t(new Error("Response missing expanded path"))}};const o=Pr(this,r);if(this._debug){const e=o?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} expand-path@openssh.com`)}}ext_copy_data(e,t,n,i,r,s){if(this.server)throw new Error("Client-only method called in server mode");if("1"!==this._extensions["copy-data"])throw new Error("Server does not support this extended request");if(!Buffer.isBuffer(e))throw new Error("Source handle is not a Buffer");if(!Buffer.isBuffer(i))throw new Error("Destination handle is not a Buffer");let o=0;const a=Buffer.allocUnsafe(26+e.length+8+8+4+i.length+8);Oi(a,a.length-4,o),o+=4,a[o]=ar,++o;const c=this._writeReqid=this._writeReqid+1&gr;Oi(a,c,o),o+=4,Oi(a,9,o),o+=4,a.utf8Write("copy-data",o,9),o+=9,Oi(a,e.length,o),o+=4,a.set(e,o),o+=e.length;for(let e=7;e>=0;--e)a[o+e]=255&t,t/=256;o+=8;for(let e=7;e>=0;--e)a[o+e]=255&n,n/=256;o+=8,Oi(a,i.length,o),o+=4,a.set(i,o),o+=i.length;for(let e=7;e>=0;--e)a[o+e]=255&r,r/=256;this._requests[c]={cb:s};const l=Pr(this,a);if(this._debug){const e=l?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} copy-data`)}}ext_home_dir(e,t){if(this.server)throw new Error("Client-only method called in server mode");if("1"!==this._extensions["home-directory"])throw new Error("Server does not support this extended request");if("string"!=typeof e)throw new TypeError("username is not a string");let n=0;const i=Buffer.byteLength(e),r=Buffer.allocUnsafe(31+i);Oi(r,r.length-4,n),n+=4,r[n]=ar,++n;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,n),n+=4,Oi(r,14,n),n+=4,r.utf8Write("home-directory",n,14),n+=14,Oi(r,i,n),n+=4,r.utf8Write(e,n,i),n+=i,this._requests[s]={cb:(e,n)=>{if("function"==typeof t)return e?t(e):n&&n.length?void t(void 0,n[0].filename):t(new Error("Response missing home directory"))}};const o=Pr(this,r);if(this._debug){const e=o?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} home-directory`)}}ext_users_groups(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");if("1"!==this._extensions["users-groups-by-id@openssh.com"])throw new Error("Server does not support this extended request");if(!Array.isArray(e))throw new TypeError("uids is not an array");for(const t of e)if(!Number.isInteger(t)||t<0||t>2**32-1)throw new Error("uid values must all be 32-bit unsigned integers");if(!Array.isArray(t))throw new TypeError("gids is not an array");for(const e of t)if(!Number.isInteger(e)||e<0||e>2**32-1)throw new Error("gid values must all be 32-bit unsigned integers");let i=0;const r=Buffer.allocUnsafe(47+4*e.length+4+4*t.length);Oi(r,r.length-4,i),i+=4,r[i]=ar,++i;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,i),i+=4,Oi(r,30,i),i+=4,r.utf8Write("users-groups-by-id@openssh.com",i,30),i+=30,Oi(r,4*e.length,i),i+=4;for(const t of e)Oi(r,t,i),i+=4;Oi(r,4*t.length,i),i+=4;for(const e of t)Oi(r,e,i),i+=4;this._requests[s]={extended:"users-groups-by-id@openssh.com",cb:n};const o=Pr(this,r);if(this._debug){const e=o?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} users-groups-by-id@openssh.com`)}}handle(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");const n=t.length;if(n>256)throw new Error("handle too large (> 256 bytes)");let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=ur,Oi(r,e,5),Oi(r,n,i),n&&r.set(t,i+=4);const s=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${s?"Buffered":"Sending"} HANDLE`)}status(e,t,n){if(!this.server)throw new Error("Server-only method called in client mode");if(!Fi.has(t))throw new Error(`Bad status code: ${t}`);n||(n="");const i=Buffer.byteLength(n);let r=9;const s=Buffer.allocUnsafe(17+i+4);Oi(s,s.length-4,0),s[4]=lr,Oi(s,e,5),Oi(s,t,r),Oi(s,i,r+=4),r+=4,i&&(s.utf8Write(n,r,i),r+=i),Oi(s,0,r);const o=Pr(this,s);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} STATUS`)}data(e,t,n){if(!this.server)throw new Error("Server-only method called in client mode");const i=Buffer.isBuffer(t);if(!i&&"string"!=typeof t)throw new Error("data is not a Buffer or string");let r;i||n||(n=void 0,r=!0);const s=i?t.length:Buffer.byteLength(t,n);let o=9;const a=Buffer.allocUnsafe(13+s);Oi(a,a.length-4,0),a[4]=pr,Oi(a,e,5),Oi(a,s,o),s&&(i?a.set(t,o+=4):r?a.utf8Write(t,o+=4,s):a.write(t,o+=4,s,n));const c=Pr(this,a);this._debug&&this._debug(`SFTP: Outbound: ${c?"Buffered":"Sending"} DATA`)}name(e,t){if(!this.server)throw new Error("Server-only method called in client mode");if(!Array.isArray(t)){if("object"!=typeof t||null===t)throw new Error("names is not an object or array");t=[t]}const n=t.length;let i,r=0;const s=[];for(let e=0;e<n;++e){const n=t[e],o=n&&n.filename&&"string"==typeof n.filename?n.filename:"";r+=4+Buffer.byteLength(o);const a=n&&n.longname&&"string"==typeof n.longname?n.longname:"";if(r+=4+Buffer.byteLength(a),"object"==typeof n.attrs&&null!==n.attrs){if(i=Cr(n.attrs),r+=4+i.nb,i.nb){let e;i.nb===Mi.length?e=new Uint8Array(Mi):(e=new Uint8Array(i.nb),Ri(Mi,e,0,i.nb,0)),i.bytes=e}s.push(i)}else r+=4,s.push(null)}let o=9;const a=Buffer.allocUnsafe(13+r);Oi(a,a.length-4,0),a[4]=dr,Oi(a,e,5),Oi(a,n,o),o+=4;for(let e=0;e<n;++e){const n=t[e];{const e=n&&n.filename&&"string"==typeof n.filename?n.filename:"",t=Buffer.byteLength(e);Oi(a,t,o),o+=4,t&&(a.utf8Write(e,o,t),o+=t)}{const e=n&&n.longname&&"string"==typeof n.longname?n.longname:"",t=Buffer.byteLength(e);Oi(a,t,o),o+=4,t&&(a.utf8Write(e,o,t),o+=t)}const i=s[e];i?(Oi(a,i.flags,o),o+=4,i.flags&&i.bytes&&(a.set(i.bytes,o),o+=i.nb)):(Oi(a,0,o),o+=4)}const c=Pr(this,a);this._debug&&this._debug(`SFTP: Outbound: ${c?"Buffered":"Sending"} NAME`)}attrs(e,t){if(!this.server)throw new Error("Server-only method called in client mode");if("object"!=typeof t||null===t)throw new Error("attrs is not an object");const n=(t=Cr(t)).flags,i=t.nb;let r=9;const s=Buffer.allocUnsafe(13+i);Oi(s,s.length-4,0),s[4]=hr,Oi(s,e,5),Oi(s,n,r),i&&(r+=4,i===Mi.length?s.set(Mi,r):Ri(Mi,s,0,i,r),r+=i);const o=Pr(this,s);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} ATTRS`)}},Stats:kr,STATUS_CODE:Hi,stringToFlags:Or};const{Duplex:Zr,Readable:es,Writable:ts}=n,{CHANNEL_EXTENDED_DATATYPE:{STDERR:ns}}=ce(),{bufferSlice:is}=le(),rs=2097152,ss=1048576;class os extends es{constructor(e,t){super(t),this._channel=e}_read(e){this._channel._waitChanDrain&&(this._channel._waitChanDrain=!1,this._channel.incoming.window<=ss&&us(this._channel))}}class as extends ts{constructor(e){super({highWaterMark:rs}),this._channel=e}_write(e,t,n){const i=this._channel,r=i._client._protocol,s=i.outgoing,o=s.packetSize,a=s.id;let c=s.window;const l=e.length;let u=0;if("open"===s.state){for(;l-u>0&&c>0;){let t=l-u;t>c&&(t=c),t>o&&(t=o),0===u&&t===l?r.channelExtData(a,e,ns):r.channelExtData(a,is(e,u,u+t),ns),u+=t,c-=t}if(s.window=c,l-u>0)return 0===c&&(i._waitWindow=!0),i._chunkErr=u>0?is(e,u,l):e,void(i._chunkcbErr=n);n()}}}function cs(){this.eof(),!this.server&&this.allowHalfOpen||this.close(),this.writable=!1}function ls(){this.readable=!1}function us(e){if("closed"===e.outgoing.state)return;const t=rs-e.incoming.window;t<=0||(e.incoming.window+=t,e._client._protocol.channelWindowAdjust(e.outgoing.id,t))}var ps={Channel:class extends Zr{constructor(e,t,n){const i={highWaterMark:rs,allowHalfOpen:!n||n&&!1!==n.allowHalfOpen,emitClose:!1};super(i),this.allowHalfOpen=i.allowHalfOpen;const r=!(!n||!n.server);this.server=r,this.type=t.type,this.subtype=void 0,this.incoming=t.incoming,this.outgoing=t.outgoing,this._callbacks=[],this._client=e,this._hasX11=!1,this._exit={code:void 0,signal:void 0,dump:void 0,desc:void 0},this.stdin=this.stdout=this,this.stderr=r?new as(this):new os(this,i),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",cs).on("prefinish",cs),this.on("end",ls).on("close",ls)}_read(e){this._waitChanDrain&&(this._waitChanDrain=!1,this.incoming.window<=ss&&us(this))}_write(e,t,n){const i=this._client._protocol,r=this.outgoing,s=r.packetSize,o=r.id;let a=r.window;const c=e.length;let l=0;if("open"===r.state){for(;c-l>0&&a>0;){let t=c-l;t>a&&(t=a),t>s&&(t=s),0===l&&t===c?i.channelData(o,e):i.channelData(o,is(e,l,l+t)),l+=t,a-=t}if(r.window=a,c-l>0)return 0===a&&(this._waitWindow=!0),this._chunk=l>0?is(e,l,c):e,void(this._chunkcb=n);n()}}eof(){"open"===this.outgoing.state&&(this.outgoing.state="eof",this._client._protocol.channelEOF(this.outgoing.id))}close(){"open"!==this.outgoing.state&&"eof"!==this.outgoing.state||(this.outgoing.state="closing",this._client._protocol.channelClose(this.outgoing.id))}destroy(){return this.end(),this.close(),this}setWindow(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");"session"!==this.type||"shell"!==this.subtype&&"exec"!==this.subtype||!this.writable||"open"!==this.outgoing.state||this._client._protocol.windowChange(this.outgoing.id,e,t,n,i)}signal(e){if(this.server)throw new Error("Client-only method called in server mode");"session"===this.type&&this.writable&&"open"===this.outgoing.state&&this._client._protocol.signal(this.outgoing.id,e)}exit(e,t,n){if(!this.server)throw new Error("Server-only method called in client mode");"session"===this.type&&this.writable&&"open"===this.outgoing.state&&("number"==typeof e?this._client._protocol.exitStatus(this.outgoing.id,e):this._client._protocol.exitSignal(this.outgoing.id,e,t,n))}},MAX_WINDOW:rs,PACKET_SIZE:32768,windowAdjust:us,WINDOW_THRESHOLD:ss};const{SFTP:ds}=Jr,hs=2**32-1;function fs(e,t,n,i){if(e._chanMgr.remove(t),"function"!=typeof i)return;let r;n instanceof Error?r=n:"object"==typeof n&&null!==n?(r=new Error(`(SSH) Channel open failure: ${n.description}`),r.reason=n.reason):(r=new Error("(SSH) Channel open failure: server closed channel unexpectedly"),r.reason=""),i(r)}function ms(e,t,n,i,r){if("function"==typeof n)return void fs(e,t,i,n);if("object"!=typeof n||null===n)return;if(n.incoming&&"closed"===n.incoming.state)return;if(e._chanMgr.remove(t),n.server&&"Session"===n.constructor.name)return;n.incoming.state="closed",n.readable&&n.push(null),n.server?n.stderr.writable&&n.stderr.end():n.stderr.readable&&n.stderr.push(null),n.constructor===ds||"open"!==n.outgoing.state&&"eof"!==n.outgoing.state||r||n.close(),"closing"===n.outgoing.state&&(n.outgoing.state="closed");const s=n._readableState,o=n._writableState;!o||o.ending||o.finished||r||n.end();const a=n._callbacks;n._callbacks=[];for(let e=0;e<a.length;++e)a[e](!0);if(n.server)!n.readable||n.destroyed||s&&s.endEmitted?n.emit("close"):n.once("end",()=>n.emit("close"));else{let e;switch(n.type){case"direct-streamlocal@openssh.com":case"direct-tcpip":e=()=>n.emit("close");break;default:{const t=n._exit;e=()=>{null===t.code?n.emit("close",t.code,t.signal,t.dump,t.desc):n.emit("close",t.code)}}}!n.readable||n.destroyed||s&&s.endEmitted?e():n.once("end",e);const t=n.stderr._readableState;!n.stderr.readable||n.stderr.destroyed||t&&t.endEmitted?n.stderr.emit("close"):n.stderr.once("end",()=>n.stderr.emit("close"))}}const gs=(()=>{const e=Object.prototype.toString;return t=>"[object RegExp]"===e.call(t)})();var _s={ChannelManager:class{constructor(e){this._client=e,this._channels={},this._cur=-1,this._count=0}add(e){let t;if(this._cur<hs)t=++this._cur;else if(0===this._count)this._cur=0,t=0;else{const e=this._channels;for(let n=0;n<hs;++n)if(void 0===e[n]){t=n;break}}return void 0===t?-1:(this._channels[t]=e||!0,++this._count,t)}update(e,t){if("number"!=typeof e||e<0||e>=hs||!isFinite(e))throw new Error(`Invalid channel id: ${e}`);t&&this._channels[e]&&(this._channels[e]=t)}get(e){if("number"!=typeof e||e<0||e>=hs||!isFinite(e))throw new Error(`Invalid channel id: ${e}`);return this._channels[e]}remove(e){if("number"!=typeof e||e<0||e>=hs||!isFinite(e))throw new Error(`Invalid channel id: ${e}`);this._channels[e]&&(delete this._channels[e],this._count&&--this._count)}cleanup(e){const t=this._channels;this._channels={},this._cur=-1,this._count=0;const n=Object.keys(t),i=this._client;for(let r=0;r<n.length;++r){const s=+n[r],o=t[s];ms(i,s,o._channel||o,e,!0)}}},generateAlgorithmList:function(e,t,n){if(Array.isArray(e)&&e.length>0){for(let t=0;t<e.length;++t)if(-1===n.indexOf(e[t]))throw new Error(`Unsupported algorithm: ${e[t]}`);return e}if("object"==typeof e&&null!==e){const i=Object.keys(e);let r=t;for(let s=0;s<i.length;++s){const o=i[s];let a=e[o];switch(o){case"append":if(Array.isArray(a)||(a=[a]),Array.isArray(a))for(let e=0;e<a.length;++e){const i=a[e];if("string"==typeof i){if(!i||-1!==r.indexOf(i))continue;if(-1===n.indexOf(i))throw new Error(`Unsupported algorithm: ${i}`);r===t&&(r=r.slice()),r.push(i)}else if(gs(i))for(let e=0;e<n.length;++e){const s=n[e];if(i.test(s)){if(-1!==r.indexOf(s))continue;r===t&&(r=r.slice()),r.push(s)}}}break;case"prepend":if(Array.isArray(a)||(a=[a]),Array.isArray(a))for(let e=a.length;e>=0;--e){const i=a[e];if("string"==typeof i){if(!i||-1!==r.indexOf(i))continue;if(-1===n.indexOf(i))throw new Error(`Unsupported algorithm: ${i}`);r===t&&(r=r.slice()),r.unshift(i)}else if(gs(i))for(let e=n.length;e>=0;--e){const s=n[e];if(i.test(s)){if(-1!==r.indexOf(s))continue;r===t&&(r=r.slice()),r.unshift(s)}}}break;case"remove":if(Array.isArray(a)||(a=[a]),Array.isArray(a))for(let e=0;e<a.length;++e){const n=a[e];if("string"==typeof n){if(!n)continue;const e=r.indexOf(n);if(-1===e)continue;r===t&&(r=r.slice()),r.splice(e,1)}else if(gs(n))for(let e=0;e<r.length;++e)n.test(r[e])&&(r===t&&(r=r.slice()),r.splice(e,1),--e)}}}return r}return t},onChannelOpenFailure:fs,onCHANNEL_CLOSE:ms,isWritable:e=>e&&e.writable&&e._readableState&&!1===e._readableState.ended};const{createHash:bs,getHashes:ys,randomFillSync:vs}=o,{Socket:As}=t,{lookup:Es}=d,ws=h,xs=ys(),{COMPAT:Ss,CHANNEL_EXTENDED_DATATYPE:{STDERR:Is},CHANNEL_OPEN_FAILURE:ks,DEFAULT_CIPHER:Cs,DEFAULT_COMPRESSION:Rs,DEFAULT_KEX:Bs,DEFAULT_MAC:Ts,DEFAULT_SERVER_HOST_KEY:Os,DISCONNECT_REASON:Ns,DISCONNECT_REASON_BY_VALUE:Ls,SUPPORTED_CIPHER:Ps,SUPPORTED_COMPRESSION:Us,SUPPORTED_KEX:Ds,SUPPORTED_MAC:Ms,SUPPORTED_SERVER_HOST_KEY:Hs}=ce(),{init:Fs}=me(),js=di,{parseKey:$s}=ft,{SFTP:Qs}=Jr,{bufferCopy:Ws,makeBufferParser:qs,makeError:Ys,readUInt32BE:Gs,sigSSHToASN1:Ks,writeUInt32BE:zs}=le(),{AgentContext:Xs,createAgent:Vs,isAgent:Js}=Qt,{Channel:Zs,MAX_WINDOW:eo,PACKET_SIZE:to,windowAdjust:no,WINDOW_THRESHOLD:io}=ps,{ChannelManager:ro,generateAlgorithmList:so,isWritable:oo,onChannelOpenFailure:ao,onCHANNEL_CLOSE:co}=_s,lo=qs(),uo=qs(),po=/^OpenSSH_(?:(?![0-4])\d)|(?:\d{2,})/,ho=e=>{};function fo(e,t,n,i){const r=eo,s=to;"function"==typeof n&&(i=n,n={});const o=(e,t)=>{i(e,t)};o.type=t;const a=e._chanMgr.add(o);if(-1!==a)switch(t){case"session":case"sftp":e._protocol.session(a,r,s);break;case"direct-tcpip":e._protocol.directTcpip(a,r,s,n);break;case"direct-streamlocal@openssh.com":e._protocol.openssh_directStreamLocal(a,r,s,n);break;default:throw new Error(`Unsupported channel type: ${t}`)}else i(new Error("No free channels available"))}function mo(e,t,n){const i={single:!1,protocol:"MIT-MAGIC-COOKIE-1",cookie:void 0,screen:0};"function"==typeof t?n=t:"object"==typeof t&&null!==t&&("boolean"==typeof t.single&&(i.single=t.single),"number"==typeof t.screen&&(i.screen=t.screen),"string"==typeof t.protocol&&(i.protocol=t.protocol),"string"==typeof t.cookie?i.cookie=t.cookie:Buffer.isBuffer(t.cookie)&&(i.cookie=t.cookie.hexSlice(0,t.cookie.length))),void 0===i.cookie&&(i.cookie=vo());const r="function"==typeof n;"open"===e.outgoing.state?(r&&e._callbacks.push(t=>{t?n(!0!==t?t:new Error("Unable to request X11")):(e._hasX11=!0,++e._client._acceptX11,e.once("close",()=>{e._client._acceptX11&&--e._client._acceptX11}),n())}),e._client._protocol.x11Forward(e.outgoing.id,i,r)):r&&n(new Error("Channel is not open"))}function go(e,t,n){let i=24,r=80,s=640,o=480,a="vt100",c=null;"function"==typeof t?n=t:"object"==typeof t&&null!==t&&("number"==typeof t.rows&&(i=t.rows),"number"==typeof t.cols&&(r=t.cols),"number"==typeof t.width&&(s=t.width),"number"==typeof t.height&&(o=t.height),"string"==typeof t.term&&(a=t.term),"object"==typeof t.modes&&(c=t.modes));const l="function"==typeof n;"open"===e.outgoing.state?(l&&e._callbacks.push(e=>{e?n(!0!==e?e:new Error("Unable to request a pseudo-terminal")):n()}),e._client._protocol.pty(e.outgoing.id,i,r,o,s,a,c,l)):l&&n(new Error("Channel is not open"))}function _o(e,t){const n="function"==typeof t;"open"===e.outgoing.state?e._client._agentFwdEnabled?n&&t(!1):(e._client._agentFwdEnabled=!0,e._callbacks.push(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._protocol.openssh_agentForward(e.outgoing.id,!0)):n&&t(new Error("Channel is not open"))}function bo(e,t,n){const i="function"==typeof n;if("open"!==e.outgoing.state)return void(i&&n(new Error("Channel is not open")));i&&e._callbacks.push(e=>{e?n(!0!==e?e:new Error("Unable to set environment")):n()});const r=Object.keys(t||{});for(let n=0;n<r.length;++n){const s=r[n],o=t[s];e._client._protocol.env(e.outgoing.id,s,o,i)}}function yo(e,t,n){"open"===e.outgoing.state?(e._callbacks.push(i=>{i?n(!0!==i?i:new Error(`Unable to start subsystem: ${t}`)):(e.subtype="subsystem",n(void 0,e))}),e._client._protocol.subsystem(e.outgoing.id,t,!0)):n(new Error("Channel is not open"))}const vo=(()=>{const e=Buffer.allocUnsafe(16);return()=>(vs(e,0,16),e.hexSlice(0,16))})();function Ao(e){if(!Array.isArray(e))throw new Error("authList must be an array");let t=0;return(n,i,r)=>t!==e.length&&e[t++]}function Eo(e,t,n){if("ssh-rsa"===t.type){if(e._protocol._compatFlags&Ss.IMPLY_RSA_SHA2_SIGALGS&&(n=Array.isArray(n)?["rsa-sha2-256","rsa-sha2-512",...n]:["rsa-sha2-256","rsa-sha2-512"]),Array.isArray(n)){if(-1!==n.indexOf("rsa-sha2-256"))return[["rsa-sha2-256","sha256"]];if(-1!==n.indexOf("rsa-sha2-512"))return[["rsa-sha2-512","sha512"]];if(-1===n.indexOf("ssh-rsa"))return[]}return[["ssh-rsa","sha1"]]}}var wo=class extends ws{constructor(){super(),this.config={host:void 0,port:void 0,localAddress:void 0,localPort:void 0,forceIPv4:void 0,forceIPv6:void 0,keepaliveCountMax:void 0,keepaliveInterval:void 0,readyTimeout:void 0,ident:void 0,username:void 0,password:void 0,privateKey:void 0,tryKeyboard:void 0,agent:void 0,allowAgentFwd:void 0,authHandler:void 0,hostHashAlgo:void 0,hostHashCb:void 0,strictVendor:void 0,debug:void 0},this._agent=void 0,this._readyTimeout=void 0,this._chanMgr=void 0,this._callbacks=void 0,this._forwarding=void 0,this._forwardingUnix=void 0,this._acceptX11=void 0,this._agentFwdEnabled=void 0,this._remoteVer=void 0,this._protocol=void 0,this._sock=void 0,this._resetKA=void 0}connect(e){if(this._sock&&oo(this._sock))return this.once("close",()=>{this.connect(e)}),this.end(),this;this.config.host=e.hostname||e.host||"localhost",this.config.port=e.port||22,this.config.localAddress="string"==typeof e.localAddress?e.localAddress:void 0,this.config.localPort="string"==typeof e.localPort||"number"==typeof e.localPort?e.localPort:void 0,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.ident="string"==typeof e.ident||Buffer.isBuffer(e.ident)?e.ident:void 0;const t={kex:void 0,serverHostKey:void 0,cs:{cipher:void 0,mac:void 0,compress:void 0,lang:[]},sc:void 0};let n=!0;if("object"==typeof e.algorithms&&null!==e.algorithms&&(t.kex=so(e.algorithms.kex,Bs,Ds),t.kex!==Bs&&(n=!1),t.serverHostKey=so(e.algorithms.serverHostKey,Os,Hs),t.serverHostKey!==Os&&(n=!1),t.cs.cipher=so(e.algorithms.cipher,Cs,Ps),t.cs.cipher!==Cs&&(n=!1),t.cs.mac=so(e.algorithms.hmac,Ts,Ms),t.cs.mac!==Ts&&(n=!1),t.cs.compress=so(e.algorithms.compress,Rs,Us),t.cs.compress!==Rs&&(n=!1),n||(t.sc=t.cs)),"string"==typeof e.username)this.config.username=e.username;else{if("string"!=typeof e.user)throw new Error("Invalid username");this.config.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.localHostname="string"==typeof e.localHostname?e.localHostname:void 0,this.config.localUsername="string"==typeof e.localUsername?e.localUsername:void 0,this.config.tryKeyboard=!0===e.tryKeyboard,"string"==typeof e.agent&&e.agent.length?this.config.agent=Vs(e.agent):Js(e.agent)?this.config.agent=e.agent:this.config.agent=void 0,this.config.allowAgentFwd=!0===e.agentForward&&void 0!==this.config.agent;let i=this.config.authHandler="function"==typeof e.authHandler||Array.isArray(e.authHandler)?e.authHandler:void 0;this.config.strictVendor="boolean"!=typeof e.strictVendor||e.strictVendor;const r=this.config.debug="function"==typeof e.debug?e.debug:void 0;if(!0===e.agentForward&&!this.config.allowAgentFwd)throw new Error("You must set a valid agent path to allow agent forwarding");let s,o,a=this._callbacks=[];if(this._chanMgr=new ro(this),this._forwarding={},this._forwardingUnix={},this._acceptX11=0,this._agentFwdEnabled=!1,this._agent=this.config.agent?this.config.agent:void 0,this._remoteVer=void 0,this.config.privateKey){if(s=$s(this.config.privateKey,e.passphrase),s instanceof Error)throw new Error(`Cannot parse privateKey: ${s.message}`);if(Array.isArray(s)&&(s=s[0]),null===s.getPrivatePEM())throw new Error("privateKey value does not contain a (valid) private key")}if("function"==typeof e.hostVerifier){const t=e.hostVerifier;let n;-1!==xs.indexOf(e.hostHash)&&(n=e.hostHash),o=(e,i)=>{n&&(e=bs(n).update(e).digest("hex"));const r=t(e,i);void 0!==r&&i(r)}}const c=this._sock=e.sock||new As;let l=!1,u=!1;this._protocol&&this._protocol.cleanup();const p=r?(e,t,n)=>{r(`Debug output from server: ${JSON.stringify(n)}`)}:void 0;let d;const h=this._protocol=new js({ident:this.config.ident,offer:n?void 0:t,onWrite:e=>{oo(c)&&c.write(e)},onError:e=>{"handshake"===e.level&&clearTimeout(this._readyTimeout),h._destruct||c.removeAllListeners("data"),this.emit("error",e);try{c.end()}catch{}},onHeader:e=>{u=!0,this._remoteVer=e.versions.software,e.greeting&&this.emit("greeting",e.greeting)},onHandshakeComplete:e=>{this.emit("handshake",e),l||(l=!0,h.service("ssh-userauth"))},debug:r,hostVerifier:o,messageHandlers:{DEBUG:p,DISCONNECT:(e,t,n)=>{if(t!==Ns.BY_APPLICATION){n||void 0===(n=Ls[t])&&(n=`Unexpected disconnection reason: ${t}`);const e=new Error(n);e.code=t,this.emit("error",e)}c.end()},SERVICE_ACCEPT:(e,t)=>{"ssh-userauth"===t&&B()},EXT_INFO:(e,t)=>{if(void 0===d){for(const e of t)if("server-sig-algs"===e.name)return void(d=e.algs);d=null}},USERAUTH_BANNER:(e,t)=>{this.emit("banner",t)},USERAUTH_SUCCESS:e=>{y(),clearTimeout(this._readyTimeout),this.emit("ready")},USERAUTH_FAILURE:(e,t,n)=>{if(E.keyAlgos){const e=E.keyAlgos[0][0];if(r&&r(`Client: ${E.type} (${e}) auth failed`),E.keyAlgos.shift(),E.keyAlgos.length){const[e,t]=E.keyAlgos[0];switch(E.type){case"agent":return void h.authPK(E.username,E.agentCtx.currentKey(),e);case"publickey":return void h.authPK(E.username,E.key,e);case"hostbased":return void h.authHostbased(E.username,E.key,E.localHostname,E.localUsername,e,(e,n)=>{const i=E.key.sign(e,t);if(i instanceof Error)return i.message=`Error while signing with key: ${i.message}`,i.level="client-authentication",this.emit("error",i),B();n(i)})}}else E.keyAlgos=void 0}if("agent"===E.type){const e=E.agentCtx.pos();return r&&r(`Client: Agent key #${e+1} failed`),T()}r&&r(`Client: ${E.type} auth failed`),x=n,S=t,B()},USERAUTH_PASSWD_CHANGEREQ:(e,t)=>{"password"===E.type&&this.emit("change password",t,e=>{h.authPassword(this.config.username,this.config.password,e)})},USERAUTH_PK_OK:e=>{let t,n;if(E.keyAlgos&&([t,n]=E.keyAlgos[0]),"agent"===E.type){const e=E.agentCtx.currentKey();h.authPK(E.username,e,t,(t,i)=>{const r={hash:n};E.agentCtx.sign(e,t,r,(e,t)=>{if(!e)return i(t);e.level="agent",this.emit("error",e),T()})})}else"publickey"===E.type&&h.authPK(E.username,E.key,t,(e,t)=>{const i=E.key.sign(e,n);if(i instanceof Error)return i.message=`Error signing data with key: ${i.message}`,i.level="client-authentication",this.emit("error",i),B();t(i)})},USERAUTH_INFO_REQUEST:(e,t,n,i)=>{if("keyboard-interactive"===E.type){if(0===(Array.isArray(i)?i.length:0))return r&&r("Client: Sending automatic USERAUTH_INFO_RESPONSE"),void h.authInfoRes();E.prompt(t,n,"",i,e=>{h.authInfoRes(e)})}},REQUEST_SUCCESS:(e,t)=>{a.length&&a.shift()(!1,t)},REQUEST_FAILURE:e=>{a.length&&a.shift()(!0)},GLOBAL_REQUEST:(e,t,n,i)=>{if("hostkeys-00@openssh.com"===t)!function(e,t,n){if(!e._sock||!oo(e._sock))return;"function"!=typeof n&&(n=ho);if(!Array.isArray(t))throw new TypeError("Invalid keys argument type");const i=[];for(const e of t){const t=$s(e);if(t instanceof Error)throw t;i.push(t)}if(!e.config.strictVendor||e.config.strictVendor&&po.test(e._remoteVer))return e._callbacks.push((t,r)=>{if(t)return void n(!0!==t?t:new Error("Server failed to prove supplied keys"));const s=[];let o=0;for(lo.init(r,0);lo.avail()&&o!==i.length;){const t=i[o++],n=t.getPublicSSH(),r=lo.readString();uo.init(r,0);const a=uo.readString(!0);let c,l=uo.readString();if(a!==t.type){if("ssh-rsa"!==t.type)continue;switch(a){case"rsa-sha2-256":c="sha256";break;case"rsa-sha2-512":c="sha512";break;default:continue}}const u=e._protocol._kex.sessionID,p=Buffer.allocUnsafe(37+u.length+4+n.length);let d=0;zs(p,29,d),p.utf8Write("hostkeys-prove-00@openssh.com",d+=4,29),zs(p,u.length,d+=29),Ws(u,p,0,u.length,d+=4),zs(p,n.length,d+=u.length),Ws(n,p,0,n.length,d+=4),(l=Ks(l,a))&&!0===t.verify(p,l,c)&&s.push(t)}uo.clear(),lo.clear(),n(null,s)}),void e._protocol.openssh_hostKeysProve(i);process.nextTick(n,new Error("strictVendor enabled and server is not OpenSSH or compatible version"))}(this,i,(e,t)=>{e||this.emit("hostkeys",t)}),n&&h.requestSuccess();else n&&h.requestFailure()},CHANNEL_OPEN:(e,t)=>{!function(e,t){let n,i=-1;const r=()=>{const n={type:t.type,incoming:{id:i,window:eo,packetSize:to,state:"open"},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:"open"}},r=new Zs(e,n);return e._chanMgr.update(i,r),e._protocol.channelOpenConfirm(t.sender,i,eo,to),r},s=()=>{void 0===n&&(n=-1===i?ks.RESOURCE_SHORTAGE:ks.CONNECT_FAILED),-1!==i&&e._chanMgr.remove(i),e._protocol.channelOpenFail(t.sender,n,"")},o=()=>(i=e._chanMgr.add(),-1===i&&(n=ks.RESOURCE_SHORTAGE,e.config.debug&&e.config.debug("Client: Automatic rejection of incoming channel open: no channels available")),-1!==i),a=t.data;switch(t.type){case"forwarded-tcpip":{const t=e._forwarding[`${a.destIP}:${a.destPort}`];if(void 0!==t&&o())return 0===a.destPort&&(a.destPort=t),void e.emit("tcp connection",a,r,s);break}case"forwarded-streamlocal@openssh.com":if(void 0!==e._forwardingUnix[a.socketPath]&&o())return void e.emit("unix connection",a,r,s);break;case"auth-agent@openssh.com":if(e._agentFwdEnabled&&"function"==typeof e._agent.getStream&&o())return void e._agent.getStream((e,t)=>{if(e)return s();const n=r();n.pipe(t).pipe(n)});break;case"x11":if(0!==e._acceptX11&&o())return void e.emit("x11",a,r,s);break;default:n=ks.UNKNOWN_CHANNEL_TYPE,e.config.debug&&e.config.debug(`Client: Automatic rejection of unsupported incoming channel open type: ${t.type}`)}void 0===n&&(n=ks.ADMINISTRATIVELY_PROHIBITED,e.config.debug&&e.config.debug("Client: Automatic rejection of unexpected incoming channel open for: "+t.type));s()}(this,t)},CHANNEL_OPEN_CONFIRMATION:(e,t)=>{const n=this._chanMgr.get(t.recipient);if("function"!=typeof n)return;const i="sftp"===n.type,s={type:i?"session":n.type,incoming:{id:t.recipient,window:eo,packetSize:to,state:"open"},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:"open"}},o=i?new Qs(this,s,{debug:r}):new Zs(this,s);this._chanMgr.update(t.recipient,o),n(void 0,o)},CHANNEL_OPEN_FAILURE:(e,t,n,i)=>{const r=this._chanMgr.get(t);if("function"!=typeof r)return;ao(this,t,{reason:n,description:i},r)},CHANNEL_DATA:(e,t,n)=>{const i=this._chanMgr.get(t);"object"==typeof i&&null!==i&&0!==i.incoming.window&&(i.incoming.window-=n.length,!1!==i.push(n)?i.incoming.window<=io&&no(i):i._waitChanDrain=!0)},CHANNEL_EXTENDED_DATA:(e,t,n,i)=>{if(i!==Is)return;const r=this._chanMgr.get(t);"object"==typeof r&&null!==r&&0!==r.incoming.window&&(r.incoming.window-=n.length,r.stderr.push(n)?r.incoming.window<=io&&no(r):r._waitChanDrain=!0)},CHANNEL_WINDOW_ADJUST:(e,t,n)=>{const i=this._chanMgr.get(t);"object"==typeof i&&null!==i&&(i.outgoing.window+=n,i._waitWindow&&(i._waitWindow=!1,i._chunk?i._write(i._chunk,null,i._chunkcb):i._chunkcb?i._chunkcb():i._chunkErr?i.stderr._write(i._chunkErr,null,i._chunkcbErr):i._chunkcbErr&&i._chunkcbErr()))},CHANNEL_SUCCESS:(e,t)=>{const n=this._chanMgr.get(t);"object"==typeof n&&null!==n&&(this._resetKA(),n._callbacks.length&&n._callbacks.shift()(!1))},CHANNEL_FAILURE:(e,t)=>{const n=this._chanMgr.get(t);"object"==typeof n&&null!==n&&(this._resetKA(),n._callbacks.length&&n._callbacks.shift()(!0))},CHANNEL_REQUEST:(e,t,n,i,r)=>{const s=this._chanMgr.get(t);if("object"!=typeof s||null===s)return;const o=s._exit;if(void 0===o.code){switch(n){case"exit-status":return void s.emit("exit",o.code=r);case"exit-signal":return void s.emit("exit",o.code=null,o.signal=`SIG${r.signal}`,o.dump=r.coreDumped,o.desc=r.errorMessage)}i&&e.channelFailure(s.outgoing.id)}},CHANNEL_EOF:(e,t)=>{const n=this._chanMgr.get(t);"object"==typeof n&&null!==n&&"open"===n.incoming.state&&(n.incoming.state="eof",n.readable&&n.push(null),n.stderr.readable&&n.stderr.push(null))},CHANNEL_CLOSE:(e,t)=>{co(this,t,this._chanMgr.get(t))}}});c.pause();const f=this.config.keepaliveInterval,m=this.config.keepaliveCountMax;let g,_=0;const b=()=>{if(++_>m){if(clearInterval(g),c.readable){const e=new Error("Keepalive timeout");e.level="client-timeout",this.emit("error",e),c.destroy()}}else oo(c)?(a.push(y),h.ping()):clearInterval(g)};function y(){f>0&&(_=0,clearInterval(g),oo(c)&&(g=setInterval(b,f)))}this._resetKA=y;const v=(()=>{let e=!1;return()=>{if(!e&&(e=!0,w&&!u)){const e=Ys("Connection lost before handshake","protocol",!0);this.emit("error",e)}}})(),A=(()=>{let e=!1;return()=>{e||(e=!0,w=!0,r&&r("Socket connected"),this.emit("connect"),Fs.then(()=>{h.start(),c.on("data",e=>{try{h.parse(e,0,e.length)}catch(e){this.emit("error",e);try{oo(c)&&c.end()}catch{}}}),c.stderr&&"function"==typeof c.stderr.resume&&c.stderr.resume(),c.resume()}).catch(e=>{this.emit("error",e);try{oo(c)&&c.end()}catch{}}))}})();let E,w=!1;c.on("connect",A).on("timeout",()=>{this.emit("timeout")}).on("error",e=>{r&&r(`Socket error: ${e.message}`),clearTimeout(this._readyTimeout),e.level="client-socket",this.emit("error",e)}).on("end",()=>{r&&r("Socket ended"),v(),h.cleanup(),clearTimeout(this._readyTimeout),clearInterval(g),this.emit("end")}).on("close",()=>{r&&r("Socket closed"),v(),h.cleanup(),clearTimeout(this._readyTimeout),clearInterval(g),this.emit("close");const e=a;a=this._callbacks=[];const t=new Error("No response from server");for(let n=0;n<e.length;++n)e[n](t);this._chanMgr.cleanup(t)});let x=null,S=null;const I=["none"];void 0!==this.config.password&&I.push("password"),void 0!==s&&I.push("publickey"),void 0!==this._agent&&I.push("agent"),this.config.tryKeyboard&&I.push("keyboard-interactive"),void 0!==s&&void 0!==this.config.localHostname&&void 0!==this.config.localUsername&&I.push("hostbased"),Array.isArray(i)?i=Ao(i):"function"!=typeof i&&(i=Ao(I));let k=!1;const C=e=>{if(!k){if(k=!0,!1===e){const e=new Error("All configured authentication methods failed");return e.level="client-authentication",this.emit("error",e),void this.end()}if("string"==typeof e){const t=e;if(-1===I.indexOf(t))return R(`Authentication method not allowed: ${t}`);const n=this.config.username;switch(t){case"password":e={type:t,username:n,password:this.config.password};break;case"publickey":e={type:t,username:n,key:s};break;case"hostbased":e={type:t,username:n,key:s,localHostname:this.config.localHostname,localUsername:this.config.localUsername};break;case"agent":e={type:t,username:n,agentCtx:new Xs(this._agent)};break;case"keyboard-interactive":e={type:t,username:n,prompt:(...e)=>this.emit("keyboard-interactive",...e)};break;case"none":e={type:t,username:n};break;default:return R(`Skipping unsupported authentication method: ${e}`)}}else{if("object"!=typeof e||null===e)return R(`Skipping invalid authentication attempt: ${e}`);{const t=e.username;if("string"!=typeof t)return R(`Skipping invalid authentication attempt: ${e}`);const n=e.type;switch(n){case"password":{const{password:i}=e;if("string"!=typeof i&&!Buffer.isBuffer(i))return R("Skipping invalid password auth attempt");e={type:n,username:t,password:i};break}case"publickey":{const i=$s(e.key,e.passphrase);if(i instanceof Error)return R("Skipping invalid key auth attempt");if(!i.isPrivateKey())return R("Skipping non-private key");e={type:n,username:t,key:i};break}case"hostbased":{const{localHostname:i,localUsername:r}=e,s=$s(e.key,e.passphrase);if(s instanceof Error||"string"!=typeof i||"string"!=typeof r)return R("Skipping invalid hostbased auth attempt");if(!s.isPrivateKey())return R("Skipping non-private key");e={type:n,username:t,key:s,localHostname:i,localUsername:r};break}case"agent":{let i=e.agent;if("string"==typeof i&&i.length)i=Vs(i);else if(!Js(i))return R(`Skipping invalid agent: ${e.agent}`);e={type:n,username:t,agentCtx:new Xs(i)};break}case"keyboard-interactive":{const{prompt:i}=e;if("function"!=typeof i)return R("Skipping invalid keyboard-interactive auth attempt");e={type:n,username:t,prompt:i};break}case"none":e={type:n,username:t};break;default:return R(`Skipping unsupported authentication method: ${e}`)}}}E=e;try{const e=E.username;switch(E.type){case"password":h.authPassword(e,E.password);break;case"publickey":{let t;if(E.keyAlgos=Eo(this,E.key,d),E.keyAlgos){if(!E.keyAlgos.length)return R("Skipping key authentication (no mutual hash algorithm)");t=E.keyAlgos[0][0]}h.authPK(e,E.key,t);break}case"hostbased":{let t,n;if(E.keyAlgos=Eo(this,E.key,d),E.keyAlgos){if(!E.keyAlgos.length)return R("Skipping hostbased authentication (no mutual hash algorithm)");[t,n]=E.keyAlgos[0]}h.authHostbased(e,E.key,E.localHostname,E.localUsername,t,(e,t)=>{const i=E.key.sign(e,n);if(i instanceof Error)return i.message=`Error while signing with key: ${i.message}`,i.level="client-authentication",this.emit("error",i),B();t(i)});break}case"agent":E.agentCtx.init(e=>{if(e)return e.level="agent",this.emit("error",e),B();T()});break;case"keyboard-interactive":h.authKeyboard(e);break;case"none":h.authNone(e)}}finally{k=!1}}};function R(e){r&&r(e),process.nextTick(B)}function B(){k=!1;const e=i(S,x,C);k||void 0===e||C(e)}const T=()=>{if("agent"===E.type){const e=E.agentCtx.nextKey();if(!1===e)r&&r("Agent: No more keys left to try"),r&&r("Client: agent auth failed"),B();else{const t=E.agentCtx.pos();let n;if(E.keyAlgos=Eo(this,e,d),E.keyAlgos){if(!E.keyAlgos.length)return r&&r(`Agent: Skipping key #${t+1} (no mutual hash algorithm)`),void T();n=E.keyAlgos[0][0]}r&&r(`Agent: Trying key #${t+1}`),h.authPK(E.username,e,n)}}},O=()=>{this.config.readyTimeout>0&&(this._readyTimeout=setTimeout(()=>{const e=new Error("Timed out while waiting for handshake");e.level="client-timeout",this.emit("error",e),c.destroy()},this.config.readyTimeout))};if(e.sock)O(),"boolean"==typeof c.connecting&&c.connecting||A();else{let t=this.config.host;const n=this.config.forceIPv4,i=this.config.forceIPv6;r&&r(`Client: Trying ${t} on port ${this.config.port} ...`);const s=()=>{O(),c.connect({host:t,port:this.config.port,localAddress:this.config.localAddress,localPort:this.config.localPort}),c.setMaxListeners(0),c.setTimeout("number"==typeof e.timeout?e.timeout:0)};!n&&!i||n&&i?s():Es(t,n?4:6,(e,i,r)=>{if(e){const i=new Error(`Error while looking up ${n?"IPv4":"IPv6"} address for '${t}': ${e}`);return clearTimeout(this._readyTimeout),i.level="client-dns",this.emit("error",i),void this.emit("close")}t=i,s()})}return this}end(){return this._sock&&oo(this._sock)&&(this._protocol.disconnect(Ns.BY_APPLICATION),this._sock.end()),this}destroy(){return this._sock&&oo(this._sock)&&this._sock.destroy(),this}exec(e,t,n){if(!this._sock||!oo(this._sock))throw new Error("Not connected");"function"==typeof t&&(n=t,t={});return fo(this,"session",{allowHalfOpen:!1!==t.allowHalfOpen},(i,r)=>{if(i)return void n(i);const s=[];function o(e){if(e)return r.close(),void n(e);s.length&&s.shift()()}(!0===this.config.allowAgentFwd||t&&!0===t.agentForward&&void 0!==this._agent)&&s.push(()=>_o(r,o)),"object"==typeof t&&null!==t&&("object"==typeof t.env&&null!==t.env&&bo(r,t.env),("object"==typeof t.pty&&null!==t.pty||!0===t.pty)&&s.push(()=>go(r,t.pty,o)),("object"==typeof t.x11&&null!==t.x11||"number"===t.x11||!0===t.x11)&&s.push(()=>mo(r,t.x11,o))),s.push(()=>function(e,t,n,i){if("open"!==e.outgoing.state)return void i(new Error("Channel is not open"));e._callbacks.push(t=>{t?i(!0!==t?t:new Error("Unable to exec")):(e.subtype="exec",e.allowHalfOpen=!1!==n.allowHalfOpen,i(void 0,e))}),e._client._protocol.exec(e.outgoing.id,t,!0)}(r,e,t,n)),s.shift()()}),this}shell(e,t,n){if(!this._sock||!oo(this._sock))throw new Error("Not connected");return"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),!e||void 0===e.x11&&void 0===e.env||(t=e,e=void 0),fo(this,"session",(i,r)=>{if(i)return void n(i);const s=[];function o(e){if(e)return r.close(),void n(e);s.length&&s.shift()()}(!0===this.config.allowAgentFwd||t&&!0===t.agentForward&&void 0!==this._agent)&&s.push(()=>_o(r,o)),!1!==e&&s.push(()=>go(r,e,o)),"object"==typeof t&&null!==t&&("object"==typeof t.env&&null!==t.env&&bo(r,t.env),("object"==typeof t.x11&&null!==t.x11||"number"===t.x11||!0===t.x11)&&s.push(()=>mo(r,t.x11,o))),s.push(()=>function(e,t){if("open"!==e.outgoing.state)return void t(new Error("Channel is not open"));e._callbacks.push(n=>{n?t(!0!==n?n:new Error("Unable to open shell")):(e.subtype="shell",t(void 0,e))}),e._client._protocol.shell(e.outgoing.id,!0)}(r,n)),s.shift()()}),this}subsys(e,t){if(!this._sock||!oo(this._sock))throw new Error("Not connected");return fo(this,"session",(n,i)=>{n?t(n):yo(i,e,(e,n)=>{e?t(e):t(void 0,n)})}),this}forwardIn(e,t,n){if(!this._sock||!oo(this._sock))throw new Error("Not connected");const i="function"==typeof n;return i&&this._callbacks.push((i,r)=>{if(i)return void n(!0!==i?i:new Error(`Unable to bind to ${e}:${t}`));let s=t;0===t&&r&&r.length>=4&&(s=Gs(r,0),this._protocol._compatFlags&Ss.DYN_RPORT_BUG||(t=s)),this._forwarding[`${e}:${t}`]=s,n(void 0,s)}),this._protocol.tcpipForward(e,t,i),this}unforwardIn(e,t,n){if(!this._sock||!oo(this._sock))throw new Error("Not connected");const i="function"==typeof n;return i&&this._callbacks.push(i=>{i?n(!0!==i?i:new Error(`Unable to unbind from ${e}:${t}`)):(delete this._forwarding[`${e}:${t}`],n())}),this._protocol.cancelTcpipForward(e,t,i),this}forwardOut(e,t,n,i,r){if(!this._sock||!oo(this._sock))throw new Error("Not connected");return"function"!=typeof r&&(r=ho),fo(this,"direct-tcpip",{srcIP:e,srcPort:t,dstIP:n,dstPort:i},r),this}openssh_noMoreSessions(e){if(!this._sock||!oo(this._sock))throw new Error("Not connected");const t="function"==typeof e;return!this.config.strictVendor||this.config.strictVendor&&po.test(this._remoteVer)?(t&&this._callbacks.push(t=>{t?e(!0!==t?t:new Error("Unable to disable future sessions")):e()}),this._protocol.openssh_noMoreSessions(t),this):t?(process.nextTick(e,new Error("strictVendor enabled and server is not OpenSSH or compatible version")),this):this}openssh_forwardInStreamLocal(e,t){if(!this._sock||!oo(this._sock))throw new Error("Not connected");const n="function"==typeof t;return!this.config.strictVendor||this.config.strictVendor&&po.test(this._remoteVer)?(n&&this._callbacks.push(n=>{n?t(!0!==n?n:new Error(`Unable to bind to ${e}`)):(this._forwardingUnix[e]=!0,t())}),this._protocol.openssh_streamLocalForward(e,n),this):n?(process.nextTick(t,new Error("strictVendor enabled and server is not OpenSSH or compatible version")),this):this}openssh_unforwardInStreamLocal(e,t){if(!this._sock||!oo(this._sock))throw new Error("Not connected");const n="function"==typeof t;return!this.config.strictVendor||this.config.strictVendor&&po.test(this._remoteVer)?(n&&this._callbacks.push(n=>{n?t(!0!==n?n:new Error(`Unable to unbind from ${e}`)):(delete this._forwardingUnix[e],t())}),this._protocol.openssh_cancelStreamLocalForward(e,n),this):n?(process.nextTick(t,new Error("strictVendor enabled and server is not OpenSSH or compatible version")),this):this}openssh_forwardOutStreamLocal(e,t){if(!this._sock||!oo(this._sock))throw new Error("Not connected");return"function"!=typeof t&&(t=ho),!this.config.strictVendor||this.config.strictVendor&&po.test(this._remoteVer)?(fo(this,"direct-streamlocal@openssh.com",{socketPath:e},t),this):(process.nextTick(t,new Error("strictVendor enabled and server is not OpenSSH or compatible version")),this)}sftp(e,t){if(!this._sock||!oo(this._sock))throw new Error("Not connected");return"function"==typeof e&&(t=e,e=void 0),fo(this,"sftp",(n,i)=>{if(n)return void t(n);const r=(e,n)=>{function r(){i.removeListener("ready",s),i.removeListener("error",o),i.removeListener("exit",a),i.removeListener("close",a)}function s(){r(),t(void 0,i)}function o(e){r(),t(e)}function a(e,n){let i;r(),i="number"==typeof e?`Received exit code ${e} while establishing SFTP session`:void 0!==n?`Received signal ${n} while establishing SFTP session`:"Received unexpected SFTP session termination";const s=new Error(i);s.code=e,s.signal=n,t(s)}e?t(e):(i.on("ready",s).on("error",o).on("exit",a).on("close",a),i._init())};"object"==typeof e&&null!==e?bo(i,e,e=>{e?t(e):yo(i,"sftp",r)}):yo(i,"sftp",r)}),this}setNoDelay(e){return this._sock&&"function"==typeof this._sock.setNoDelay&&this._sock.setNoDelay(e),this}};!function(e){const{Agent:t}=l,{Agent:n}=u,{connect:i}=p;let r;for(const i of[t,n]){class n extends i{constructor(e,t){super(t),this._connectCfg=e,this._defaultSrcIP=t&&t.srcIP||"localhost"}createConnection(e,t){const n=e&&e.localAddress||this._defaultSrcIP,s=e&&e.localPort||0,a=e.host,c=e.port;void 0===r&&(r=wo);const l=new r;let u=!1;l.on("ready",()=>{l.forwardOut(n,s,a,c,(n,r)=>{if(u=!0,n)return l.end(),t(n);r.once("close",()=>l.end()),t(null,o(r,i,e))})}).on("error",t).on("close",()=>{u||t(new Error("Unexpected connection close"))}).connect(this._connectCfg)}}e[i===t?"SSHTTPAgent":"SSHTTPSAgent"]=n}function s(){}function o(e,n,r){if(n===t)return e.setKeepAlive=s,e.setNoDelay=s,e.setTimeout=s,e.ref=s,e.unref=s,e.destroySoon=e.destroy,e;r.socket=e;const o=i(r),a=(()=>{let t=!1;return()=>{t||(t=!0,e.isPaused()&&e.resume())}})();return o.on("end",a).on("close",a),o}}(Wt);var xo={exports:{}};const{Server:So}=t,Io=h,{listenerCount:ko}=Io,{CHANNEL_OPEN_FAILURE:Co,DEFAULT_CIPHER:Ro,DEFAULT_COMPRESSION:Bo,DEFAULT_KEX:To,DEFAULT_MAC:Oo,DEFAULT_SERVER_HOST_KEY:No,DISCONNECT_REASON:Lo,DISCONNECT_REASON_BY_VALUE:Po,SUPPORTED_CIPHER:Uo,SUPPORTED_COMPRESSION:Do,SUPPORTED_KEX:Mo,SUPPORTED_MAC:Ho,SUPPORTED_SERVER_HOST_KEY:Fo}=ce(),{init:jo}=me(),{KexInit:$o}=Sn(),{parseKey:Qo}=ft,Wo=di,{SFTP:qo}=Jr,{writeUInt32BE:Yo}=le(),{Channel:Go,MAX_WINDOW:Ko,PACKET_SIZE:zo,windowAdjust:Xo,WINDOW_THRESHOLD:Vo}=ps,{ChannelManager:Jo,generateAlgorithmList:Zo,isWritable:ea,onChannelOpenFailure:ta,onCHANNEL_CLOSE:na}=_s;class ia extends Io{constructor(e,t,n,i,r){super(),this.username=this.user=t,this.service=n,this.method=i,this._initialResponse=!1,this._finalResponse=!1,this._multistep=!1,this._cbfinal=(e,t,n)=>{this._finalResponse||(this._finalResponse=!0,r(this,e,t,n))},this._protocol=e}accept(){this._cleanup&&this._cleanup(),this._initialResponse=!0,this._cbfinal(!0)}reject(e,t){this._cleanup&&this._cleanup(),this._initialResponse=!0,this._cbfinal(!1,e,t)}}class ra extends ia{constructor(e,t,n,i,r,s){super(e,t,n,i,s),this._multistep=!0,this._cb=void 0,this._onInfoResponse=e=>{const t=this._cb;t&&(this._cb=void 0,t(e))},this.submethods=r,this.on("abort",()=>{this._cb&&this._cb(new Error("Authentication request aborted"))})}prompt(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):"function"!=typeof i&&(i=void 0);for(let t=0;t<e.length;++t)"string"==typeof e[t]&&(e[t]={prompt:e[t],echo:!0});this._cb=i,this._initialResponse=!0,this._protocol.authInfoReq(t,n,e)}}class sa extends ia{constructor(e,t,n,i,r,s){super(e,t,n,i,s),this.key={algo:r.keyAlgo,data:r.key},this.hashAlgo=r.hashAlgo,this.signature=r.signature,this.blob=r.blob}accept(){this.signature?ia.prototype.accept.call(this):(this._initialResponse=!0,this._protocol.authPKOK(this.key.algo,this.key.data))}}class oa extends ia{constructor(e,t,n,i,r,s){super(e,t,n,i,s),this.key={algo:r.keyAlgo,data:r.key},this.hashAlgo=r.hashAlgo,this.signature=r.signature,this.blob=r.blob,this.localHostname=r.localHostname,this.localUsername=r.localUsername}}class aa extends ia{constructor(e,t,n,i,r,s){super(e,t,n,i,s),this.password=r,this._changeCb=void 0}requestChange(e,t){if(this._changeCb)throw new Error("Change request already in progress");if("string"!=typeof e)throw new Error("prompt argument must be a string");if("function"!=typeof t)throw new Error("Callback argument must be a function");this._changeCb=t,this._protocol.authPasswdChg(e)}}class ca extends Io{constructor(e,t,n){super(),this.type="session",this.subtype=void 0,this.server=!0,this._ending=!1,this._channel=void 0,this._chanInfo={type:"session",incoming:{id:n,window:Ko,packetSize:zo,state:"open"},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:"open"}}}}class la extends Io{constructor(e,t){if(super(),"object"!=typeof e||null===e)throw new Error("Missing configuration object");const n=Object.create(null),i=[],r=e.hostKeys;if(!Array.isArray(r))throw new Error("hostKeys must be an array");const s="object"==typeof e.algorithms&&null!==e.algorithms?e.algorithms:{},o=Zo(s.serverHostKey,No,Fo);for(let e=0;e<r.length;++e){let t;if(t=Buffer.isBuffer(r[e])||"string"==typeof r[e]?Qo(r[e]):Qo(r[e].key,r[e].passphrase),t instanceof Error)throw new Error(`Cannot parse privateKey: ${t.message}`);if(Array.isArray(t)&&(t=t[0]),null===t.getPrivatePEM())throw new Error("privateKey value contains an invalid private key");if(!i.includes(t.type))if("ssh-rsa"===t.type){let e=o.indexOf("ssh-rsa");const r=o.indexOf("rsa-sha2-256"),s=o.indexOf("rsa-sha2-512");-1===e&&(e=1/0),[e,r,s].sort(da).forEach(o=>{if(-1===o)return;let a;switch(o){case e:a="ssh-rsa";break;case r:a="rsa-sha2-256";break;case s:a="rsa-sha2-512";break;default:return}n[a]=t,i.push(a)})}else n[t.type]=t,i.push(t.type)}const a={kex:Zo(s.kex,To,Mo).concat(["kex-strict-s-v00@openssh.com"]),serverHostKey:i,cs:{cipher:Zo(s.cipher,Ro,Uo),mac:Zo(s.hmac,Oo,Ho),compress:Zo(s.compress,Bo,Do),lang:[]},sc:void 0};a.sc=a.cs,"function"==typeof t&&this.on("connection",t);const c="function"==typeof e.debug?e.debug:void 0,l=e.ident?Buffer.from(e.ident):void 0,u=new $o(a);this._srv=new So(t=>{if(this._connections>=this.maxConnections)return void t.destroy();let i;if(++this._connections,t.once("close",()=>{--this._connections}),c){const e=`[${process.hrtime().join(".")}] `;i=t=>{c(`${e}${t}`)}}new ua(t,n,l,u,i,this,e)}).on("error",e=>{this.emit("error",e)}).on("listening",()=>{this.emit("listening")}).on("close",()=>{this.emit("close")}),this._connections=0,this.maxConnections=1/0}injectSocket(e){this._srv.emit("connection",e)}listen(...e){return this._srv.listen(...e),this}address(){return this._srv.address()}getConnections(e){return this._srv.getConnections(e),this}close(e){return this._srv.close(e),this}ref(){return this._srv.ref(),this}unref(){return this._srv.unref(),this}}la.KEEPALIVE_CLIENT_INTERVAL=15e3,la.KEEPALIVE_CLIENT_COUNT_MAX=3;let ua=class extends Io{constructor(e,t,n,i,r,s,o){super();let a,c,l,u=0,p=!1,d=[];const h=[];function f(e){}this._sock=e,this._chanMgr=new Jo(this),this._debug=r,this.noMoreSessions=!1,this.authenticated=!1,this.on("error",f);const m=r?(e,t,n)=>{r(`Debug output from client: ${JSON.stringify(n)}`)}:void 0,g="number"==typeof o.keepaliveInterval&&isFinite(o.keepaliveInterval)&&o.keepaliveInterval>0?o.keepaliveInterval:"number"==typeof la.KEEPALIVE_CLIENT_INTERVAL&&isFinite(la.KEEPALIVE_CLIENT_INTERVAL)&&la.KEEPALIVE_CLIENT_INTERVAL>0?la.KEEPALIVE_CLIENT_INTERVAL:-1,_="number"==typeof o.keepaliveCountMax&&isFinite(o.keepaliveCountMax)&&o.keepaliveCountMax>=0?o.keepaliveCountMax:"number"==typeof la.KEEPALIVE_CLIENT_COUNT_MAX&&isFinite(la.KEEPALIVE_CLIENT_COUNT_MAX)&&la.KEEPALIVE_CLIENT_COUNT_MAX>=0?la.KEEPALIVE_CLIENT_COUNT_MAX:-1;let b=0;-1!==g&&-1!==_&&(this.once("ready",()=>{const e=()=>{clearInterval(c)};this.on("close",e).on("end",e),c=setInterval(()=>{if(++b>_){clearInterval(c);const e=new Error("Keepalive timeout");e.level="client-timeout",this.emit("error",e),this.end()}else y.ping()},g)}),l=()=>{c&&c.refresh(),b=0});const y=this._protocol=new Wo({server:!0,hostKeys:t,ident:n,offer:i,onPacket:l,greeting:o.greeting,banner:o.banner,onWrite:t=>{ea(e)&&e.write(t)},onError:t=>{y._destruct||e.removeAllListeners("data"),this.emit("error",t);try{e.end()}catch{}},onHeader:t=>{this.removeListener("error",f);const n={ip:e.remoteAddress,family:e.remoteFamily,port:e.remotePort,header:t};if(!s.emit("connection",this,n))return y.disconnect(Lo.BY_APPLICATION),void e.end();t.greeting&&this.emit("greeting",t.greeting)},onHandshakeComplete:e=>{++u>1&&this.emit("rekey"),this.emit("handshake",e)},debug:r,messageHandlers:{DEBUG:m,DISCONNECT:(t,n,i)=>{if(n!==Lo.BY_APPLICATION){i||void 0===(i=Po[n])&&(i=`Unexpected disconnection reason: ${n}`);const e=new Error(i);e.code=n,this.emit("error",e)}e.end()},CHANNEL_OPEN:(e,t)=>{if("session"===t.type&&this.noMoreSessions||!this.authenticated){const e=Co.ADMINISTRATIVELY_PROHIBITED;return y.channelOpenFail(t.sender,e)}let n,i,s=-1,o=!1;const a=()=>{o||(o=!0,void 0===n&&(n=-1===s?Co.RESOURCE_SHORTAGE:Co.CONNECT_FAILED),-1!==s&&this._chanMgr.remove(s),y.channelOpenFail(t.sender,n,""))},c=()=>(s=this._chanMgr.add(),-1===s&&(n=Co.RESOURCE_SHORTAGE,r&&r("Automatic rejection of incoming channel open: no channels available")),-1!==s),l=t.data;switch(t.type){case"session":if(ko(this,"session")&&c())return i=()=>{if(o)return;o=!0;const e=new ca(this,t,s);return this._chanMgr.update(s,e),y.channelOpenConfirm(t.sender,s,Ko,zo),e},void this.emit("session",i,a);break;case"direct-tcpip":if(ko(this,"tcpip")&&c())return i=()=>{if(o)return;o=!0;const e={type:void 0,incoming:{id:s,window:Ko,packetSize:zo,state:"open"},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:"open"}},n=new Go(this,e,{server:!0});return this._chanMgr.update(s,n),y.channelOpenConfirm(t.sender,s,Ko,zo),n},void this.emit("tcpip",i,a,l);break;case"direct-streamlocal@openssh.com":if(ko(this,"openssh.streamlocal")&&c())return i=()=>{if(o)return;o=!0;const e={type:void 0,incoming:{id:s,window:Ko,packetSize:zo,state:"open"},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:"open"}},n=new Go(this,e,{server:!0});return this._chanMgr.update(s,n),y.channelOpenConfirm(t.sender,s,Ko,zo),n},void this.emit("openssh.streamlocal",i,a,l);break;default:n=Co.UNKNOWN_CHANNEL_TYPE,r&&r(`Automatic rejection of unsupported incoming channel open type: ${t.type}`)}void 0===n&&(n=Co.ADMINISTRATIVELY_PROHIBITED,r&&r(`Automatic rejection of unexpected incoming channel open for: ${t.type}`)),a()},CHANNEL_OPEN_CONFIRMATION:(e,t)=>{const n=this._chanMgr.get(t.recipient);if("function"!=typeof n)return;const i={type:n.type,incoming:{id:t.recipient,window:Ko,packetSize:zo,state:"open"},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:"open"}},r=new Go(this,i,{server:!0});this._chanMgr.update(t.recipient,r),n(void 0,r)},CHANNEL_OPEN_FAILURE:(e,t,n,i)=>{const r=this._chanMgr.get(t);if("function"!=typeof r)return;ta(this,t,{reason:n,description:i},r)},CHANNEL_DATA:(e,t,n)=>{let i=this._chanMgr.get(t);"object"==typeof i&&null!==i&&(i.constructor!==ca||(i=i._channel,i))&&0!==i.incoming.window&&(i.incoming.window-=n.length,!1!==i.push(n)?i.incoming.window<=Vo&&Xo(i):i._waitChanDrain=!0)},CHANNEL_EXTENDED_DATA:(e,t,n,i)=>{},CHANNEL_WINDOW_ADJUST:(e,t,n)=>{let i=this._chanMgr.get(t);"object"==typeof i&&null!==i&&(i.constructor!==ca||(i=i._channel,i))&&(i.outgoing.window+=n,i._waitWindow&&(i._waitWindow=!1,i._chunk?i._write(i._chunk,null,i._chunkcb):i._chunkcb?i._chunkcb():i._chunkErr?i.stderr._write(i._chunkErr,null,i._chunkcbErr):i._chunkcbErr&&i._chunkcbErr()))},CHANNEL_SUCCESS:(e,t)=>{let n=this._chanMgr.get(t);"object"==typeof n&&null!==n&&(n.constructor!==ca||(n=n._channel,n))&&n._callbacks.length&&n._callbacks.shift()(!1)},CHANNEL_FAILURE:(e,t)=>{let n=this._chanMgr.get(t);"object"==typeof n&&null!==n&&(n.constructor!==ca||(n=n._channel,n))&&n._callbacks.length&&n._callbacks.shift()(!0)},CHANNEL_REQUEST:(e,t,n,i,s)=>{const o=this._chanMgr.get(t);if("object"!=typeof o||null===o)return;let a,c,l=!1;if(o.constructor===ca)if(i&&("shell"!==n&&"exec"!==n&&"subsystem"!==n&&(a=()=>{l||o._ending||o._channel||(l=!0,y.channelSuccess(o._chanInfo.outgoing.id))}),c=()=>{l||o._ending||o._channel||(l=!0,y.channelFailure(o._chanInfo.outgoing.id))}),o._ending)c&&c();else{switch(n){case"env":if(ko(o,"env"))return void o.emit("env",a,c,{key:s.name,val:s.value});break;case"pty-req":if(ko(o,"pty"))return void o.emit("pty",a,c,s);break;case"window-change":ko(o,"window-change")?o.emit("window-change",a,c,s):c&&c();break;case"x11-req":if(ko(o,"x11"))return void o.emit("x11",a,c,s);break;case"signal":if(ko(o,"signal"))return void o.emit("signal",a,c,{name:s});break;case"auth-agent-req@openssh.com":if(ko(o,"auth-agent"))return void o.emit("auth-agent",a,c);break;case"shell":if(ko(o,"shell"))return a=()=>{if(l||o._ending||o._channel)return;l=!0,i&&y.channelSuccess(o._chanInfo.outgoing.id);const e=new Go(this,o._chanInfo,{server:!0});return e.subtype=o.subtype=n,o._channel=e,e},void o.emit("shell",a,c);break;case"exec":if(ko(o,"exec"))return a=()=>{if(l||o._ending||o._channel)return;l=!0,i&&y.channelSuccess(o._chanInfo.outgoing.id);const e=new Go(this,o._chanInfo,{server:!0});return e.subtype=o.subtype=n,o._channel=e,e},void o.emit("exec",a,c,{command:s});break;case"subsystem":{let e="sftp"===s;if(a=()=>{if(l||o._ending||o._channel)return;let t;return l=!0,i&&y.channelSuccess(o._chanInfo.outgoing.id),e?t=new qo(this,o._chanInfo,{server:!0,debug:r}):(t=new Go(this,o._chanInfo,{server:!0}),t.subtype=o.subtype=`${n}:${s}`),o._channel=t,t},"sftp"===s){if(ko(o,"sftp"))return void o.emit("sftp",a,c);e=!1}if(ko(o,"subsystem"))return void o.emit("subsystem",a,c,{name:s});break}}r&&r(`Automatic rejection of incoming channel request: ${n}`),c&&c()}else i&&y.channelFailure(o.outgoing.id)},CHANNEL_EOF:(e,t)=>{let n=this._chanMgr.get(t);"object"==typeof n&&null!==n&&(n.constructor!==ca||(n._ending||(n._ending=!0,n.emit("eof"),n.emit("end")),n=n._channel,n))&&"open"===n.incoming.state&&(n.incoming.state="eof",n.readable&&n.push(null))},CHANNEL_CLOSE:(e,t)=>{let n=this._chanMgr.get(t);"object"==typeof n&&null!==n&&(n.constructor!==ca||(n._ending=!0,n.emit("close"),n=n._channel,n))&&na(this,t,n)},SERVICE_REQUEST:(t,n)=>{if(0===u||p||this.authenticated||"ssh-userauth"!==n)return y.disconnect(Lo.SERVICE_NOT_AVAILABLE),void e.end();p=!0,y.serviceAccept(n)},USERAUTH_REQUEST:(t,n,i,r,s)=>{if(0===u||this.authenticated||a&&(a.username!==n||a.service!==i)||"password"!==r&&"publickey"!==r&&"hostbased"!==r&&"keyboard-interactive"!==r&&"none"!==r||10===d.length)return y.disconnect(Lo.PROTOCOL_ERROR),void e.end();if("ssh-connection"!==i)return y.disconnect(Lo.SERVICE_NOT_AVAILABLE),void e.end();let o;switch(r){case"keyboard-interactive":o=new ra(y,n,i,r,s,v);break;case"publickey":o=new sa(y,n,i,r,s,v);break;case"hostbased":o=new oa(y,n,i,r,s,v);break;case"password":if(a&&a instanceof aa&&a._changeCb){const e=a._changeCb;return a._changeCb=void 0,void e(s.newPassword)}o=new aa(y,n,i,r,s,v);break;case"none":o=new ia(y,n,i,r,v)}if(a){if(!a._initialResponse)return d.push(o);a._multistep&&!a._finalResponse&&(a._cleanup&&a._cleanup(),a.emit("abort"))}a=o,ko(this,"authentication")?this.emit("authentication",a):a.reject()},USERAUTH_INFO_RESPONSE:(e,t)=>{a&&a instanceof ra&&a._onInfoResponse(t)},GLOBAL_REQUEST:(e,t,n,i)=>{const r={type:null,buf:null};function s(e,t){r.type=e,r.buf=t,function(){for(;h.length>0&&h[0].type;){const e=h.shift();"SUCCESS"===e.type&&y.requestSuccess(e.buf),"FAILURE"===e.type&&y.requestFailure()}}()}if(n&&h.push(r),("tcpip-forward"===t||"cancel-tcpip-forward"===t||"no-more-sessions@openssh.com"===t||"streamlocal-forward@openssh.com"===t||"cancel-streamlocal-forward@openssh.com"===t)&&ko(this,"request")&&this.authenticated){let e,r;if(n){let n=!1;e=e=>{if(n)return;let r;n=!0,"tcpip-forward"===t&&0===i.bindPort&&"number"==typeof e&&(r=Buffer.allocUnsafe(4),Yo(r,e,0)),s("SUCCESS",r)},r=()=>{n||(n=!0,s("FAILURE"))}}if("no-more-sessions@openssh.com"===t)return this.noMoreSessions=!0,void(e&&e());this.emit("request",e,r,t,i)}else n&&s("FAILURE")}}});e.pause(),jo.then(()=>{y.start(),e.on("data",t=>{try{y.parse(t,0,t.length)}catch(t){this.emit("error",t);try{ea(e)&&e.end()}catch{}}}),e.resume()}).catch(t=>{this.emit("error",t);try{ea(e)&&e.end()}catch{}}),e.on("error",e=>{e.level="socket",this.emit("error",e)}).once("end",()=>{r&&r("Socket ended"),y.cleanup(),this.emit("end")}).once("close",()=>{r&&r("Socket closed"),y.cleanup(),this.emit("close");const e=new Error("No response from server");this._chanMgr.cleanup(e)});const v=(e,t,n,i)=>{a!==e||this.authenticated||(t?(a=void 0,this.authenticated=!0,y.authSuccess(),d=[],this.emit("ready")):(y.authFailure(n,i),d.length&&(a=d.pop(),ko(this,"authentication")?this.emit("authentication",a):a.reject())))}}end(){return this._sock&&ea(this._sock)&&(this._protocol.disconnect(Lo.BY_APPLICATION),this._sock.end()),this}x11(e,t,n){return pa(this,"x11",{originAddr:e,originPort:t},n),this}forwardOut(e,t,n,i,r){return pa(this,"forwarded-tcpip",{boundAddr:e,boundPort:t,remoteAddr:n,remotePort:i},r),this}openssh_forwardOutStreamLocal(e,t){return pa(this,"forwarded-streamlocal@openssh.com",{socketPath:e},t),this}rekey(e){let t;try{this._protocol.rekey()}catch(e){t=e}"function"==typeof e&&(t?process.nextTick(e,t):this.once("rekey",e))}setNoDelay(e){return this._sock&&"function"==typeof this._sock.setNoDelay&&this._sock.setNoDelay(e),this}};function pa(e,t,n,i){const r=Ko,s=zo;"function"==typeof n&&(i=n,n={});const o=(e,t)=>{i(e,t)};o.type=t;const a=e._chanMgr.add(o);if(-1!==a)switch(t){case"forwarded-tcpip":e._protocol.forwardedTcpip(a,r,s,n);break;case"x11":e._protocol.x11(a,r,s,n);break;case"forwarded-streamlocal@openssh.com":e._protocol.openssh_forwardedStreamLocal(a,r,s,n);break;default:throw new Error(`Unsupported channel type: ${t}`)}else i(new Error("No free channels available"))}function da(e,t){return e-t}xo.exports=la,xo.exports.IncomingClient=ua;var ha=xo.exports;const{createCipheriv:fa,generateKeyPair:ma,generateKeyPairSync:ga,getCurves:_a,randomBytes:ba}=o,{Ber:ya}=K,va=oe,{CIPHER_INFO:Aa}=me(),Ea=_a(),wa=new Map(Object.entries(Aa));function xa(e,t){if("string"!=typeof e)throw new TypeError("Key type must be a string");const n={type:"spki",format:"der"},i={type:"pkcs8",format:"der"};switch(e.toLowerCase()){case"rsa":{if("object"!=typeof t||null===t)throw new TypeError("Missing options object for RSA key");const e=t.bits;if(!Number.isInteger(e))throw new TypeError("RSA bits must be an integer");if(e<=0||e>16384)throw new RangeError("RSA bits must be non-zero and <= 16384");return["rsa",{modulusLength:e,publicKeyEncoding:n,privateKeyEncoding:i}]}case"ecdsa":{if("object"!=typeof t||null===t)throw new TypeError("Missing options object for ECDSA key");if(!Number.isInteger(t.bits))throw new TypeError("ECDSA bits must be an integer");let e;switch(t.bits){case 256:e="prime256v1";break;case 384:e="secp384r1";break;case 521:e="secp521r1";break;default:throw new Error("ECDSA bits must be 256, 384, or 521")}if(!Ea.includes(e))throw new Error("Unsupported ECDSA bits value");return["ec",{namedCurve:e,publicKeyEncoding:n,privateKeyEncoding:i}]}case"ed25519":return["ed25519",{publicKeyEncoding:n,privateKeyEncoding:i}];default:throw new Error(`Unsupported key type: ${e}`)}}function Sa(e,t,n,i){let r,s="new",o="";if("object"==typeof i&&null!==i&&("string"==typeof i.comment&&i.comment&&(o=i.comment),"string"==typeof i.format&&i.format&&(s=i.format),i.passphrase)){let e;if("string"==typeof i.passphrase)e=Buffer.from(i.passphrase);else{if(!Buffer.isBuffer(i.passphrase))throw new Error("Invalid passphrase");e=i.passphrase}if(void 0===i.cipher)throw new Error("Missing cipher name");const t=wa.get(i.cipher);if(void 0===t)throw new Error("Invalid cipher name");if("new"===s){let n=16;if(void 0!==i.rounds){if(!Number.isInteger(i.rounds))throw new TypeError("rounds must be an integer");i.rounds>0&&(n=i.rounds)}const s=Buffer.allocUnsafe(t.keyLen+t.ivLen),o=ba(16);if(0!==va(e,e.length,o,o.length,s,s.length,n))return new Error("Failed to generate information to encrypt key");const a=Buffer.allocUnsafe(4+o.length+4);{let e=0;a.writeUInt32BE(o.length,e+=0),a.set(o,e+=4),a.writeUInt32BE(n,e+=o.length)}r={cipher:t,cipherName:i.cipher,kdfName:"bcrypt",kdfOptions:a,key:s.slice(0,t.keyLen),iv:s.slice(t.keyLen)}}}if("new"===s){let i,s="-----BEGIN OPENSSH PRIVATE KEY-----\n";const a=Buffer.from(r?r.cipherName:"none"),c=Buffer.from(r?r.kdfName:"none"),l=r?r.kdfOptions:Buffer.alloc(0),u=r?r.cipher.blockLen:8,p=function(e,t,n){switch(e){case"rsa":{let e=new ya.Reader(n);if(e.readSequence(),0!==e.readInt())throw new Error("Unsupported version in RSA private key");if(e.readSequence(),"1.2.840.113549.1.1.1"!==e.readOID())throw new Error("Bad RSA private OID");if(e.readByte()!==ya.Null)throw new Error("Malformed RSA private key (expected null)");if(0!==e.readByte())throw new Error("Malformed RSA private key (expected zero-length null)");if(e=new ya.Reader(e.readString(ya.OctetString,!0)),e.readSequence(),0!==e.readInt())throw new Error("Unsupported version in RSA private key");const t=e.readString(ya.Integer,!0),i=e.readString(ya.Integer,!0),r=e.readString(ya.Integer,!0),s=e.readString(ya.Integer,!0),o=e.readString(ya.Integer,!0);e.readString(ya.Integer,!0),e.readString(ya.Integer,!0);const a=e.readString(ya.Integer,!0),c=Buffer.from("ssh-rsa"),l=Buffer.allocUnsafe(4+c.length+4+t.length+4+i.length+4+r.length+4+a.length+4+s.length+4+o.length);let u=0;l.writeUInt32BE(c.length,u+=0),l.set(c,u+=4),l.writeUInt32BE(t.length,u+=c.length),l.set(t,u+=4),l.writeUInt32BE(i.length,u+=t.length),l.set(i,u+=4),l.writeUInt32BE(r.length,u+=i.length),l.set(r,u+=4),l.writeUInt32BE(a.length,u+=r.length),l.set(a,u+=4),l.writeUInt32BE(s.length,u+=a.length),l.set(s,u+=4),l.writeUInt32BE(o.length,u+=s.length),l.set(o,u+=4);const p=Buffer.allocUnsafe(4+c.length+4+i.length+4+t.length);return u=0,p.writeUInt32BE(c.length,u+=0),p.set(c,u+=4),p.writeUInt32BE(i.length,u+=c.length),p.set(i,u+=4),p.writeUInt32BE(t.length,u+=i.length),p.set(t,u+=4),{sshName:c.toString(),priv:l,pub:p}}case"ec":{let e=new ya.Reader(t);if(e.readSequence(),e.readSequence(),"1.2.840.10045.2.1"!==e.readOID())throw new Error("Bad ECDSA public OID");e.readOID();let i,r=e.readString(ya.BitString,!0);{let e=0;for(;e<r.length&&0===r[e];++e);e>0&&(r=r.slice(e))}if(e=new ya.Reader(n),e.readSequence(),0!==e.readInt())throw new Error("Unsupported version in ECDSA private key");if(e.readSequence(),"1.2.840.10045.2.1"!==e.readOID())throw new Error("Bad ECDSA private OID");switch(e.readOID()){case"1.2.840.10045.3.1.7":i="nistp256";break;case"1.3.132.0.34":i="nistp384";break;case"1.3.132.0.35":i="nistp521";break;default:throw new Error("Unsupported curve in ECDSA private key")}if(e=new ya.Reader(e.readString(ya.OctetString,!0)),e.readSequence(),1!==e.readInt())throw new Error("Unsupported version in ECDSA private key");const s=Buffer.concat([Buffer.from([0]),e.readString(ya.OctetString,!0)]),o=Buffer.from(`ecdsa-sha2-${i}`);i=Buffer.from(i);const a=Buffer.allocUnsafe(4+o.length+4+i.length+4+r.length+4+s.length);let c=0;a.writeUInt32BE(o.length,c+=0),a.set(o,c+=4),a.writeUInt32BE(i.length,c+=o.length),a.set(i,c+=4),a.writeUInt32BE(r.length,c+=i.length),a.set(r,c+=4),a.writeUInt32BE(s.length,c+=r.length),a.set(s,c+=4);const l=Buffer.allocUnsafe(4+o.length+4+i.length+4+r.length);return c=0,l.writeUInt32BE(o.length,c+=0),l.set(o,c+=4),l.writeUInt32BE(i.length,c+=o.length),l.set(i,c+=4),l.writeUInt32BE(r.length,c+=i.length),l.set(r,c+=4),{sshName:o.toString(),priv:a,pub:l}}case"ed25519":{let e=new ya.Reader(t);if(e.readSequence(),e.readSequence(),"1.3.101.112"!==e.readOID())throw new Error("Bad ED25519 public OID");let i=e.readString(ya.BitString,!0);{let e=0;for(;e<i.length&&0===i[e];++e);e>0&&(i=i.slice(e))}if(e=new ya.Reader(n),e.readSequence(),0!==e.readInt())throw new Error("Unsupported version in ED25519 private key");if(e.readSequence(),"1.3.101.112"!==e.readOID())throw new Error("Bad ED25519 private OID");e=new ya.Reader(e.readString(ya.OctetString,!0));const r=e.readString(ya.OctetString,!0),s=Buffer.from("ssh-ed25519"),o=Buffer.allocUnsafe(4+s.length+4+i.length+4+(r.length+i.length));let a=0;o.writeUInt32BE(s.length,a+=0),o.set(s,a+=4),o.writeUInt32BE(i.length,a+=s.length),o.set(i,a+=4),o.writeUInt32BE(r.length+i.length,a+=i.length),o.set(r,a+=4),o.set(i,a+=r.length);const c=Buffer.allocUnsafe(4+s.length+4+i.length);return a=0,c.writeUInt32BE(s.length,a+=0),c.set(s,a+=4),c.writeUInt32BE(i.length,a+=s.length),c.set(i,a+=4),{sshName:s.toString(),priv:o,pub:c}}}}(e,t,n),d=ba(4),h=Buffer.from(o),f=8+p.priv.length+4+h.length;let m=[];for(let e=1;(f+m.length)%u;++e)m.push(255&e);m=Buffer.from(m);let g,_=Buffer.allocUnsafe(f+m.length);{let e=0;_.set(d,e+=0),_.set(d,e+=4),_.set(p.priv,e+=4),_.writeUInt32BE(h.length,e+=p.priv.length),_.set(h,e+=4),_.set(m,e+=h.length)}if(r){const e={authTagLength:r.cipher.authLen},t=fa(r.cipher.sslName,r.key,r.iv,e);t.setAutoPadding(!1),_=Buffer.concat([t.update(_),t.final()]),g=r.cipher.authLen>0?t.getAuthTag():Buffer.alloc(0),r.key.fill(0),r.iv.fill(0)}else g=Buffer.alloc(0);const b=Buffer.from("openssh-key-v1\0"),y=Buffer.allocUnsafe(b.length+4+a.length+4+c.length+4+l.length+4+4+p.pub.length+4+_.length+g.length);{let e=0;y.set(b,e+=0),y.writeUInt32BE(a.length,e+=b.length),y.set(a,e+=4),y.writeUInt32BE(c.length,e+=a.length),y.set(c,e+=4),y.writeUInt32BE(l.length,e+=c.length),y.set(l,e+=4),y.writeUInt32BE(1,e+=l.length),y.writeUInt32BE(p.pub.length,e+=4),y.set(p.pub,e+=4),y.writeUInt32BE(_.length,e+=p.pub.length),y.set(_,e+=4),y.set(g,e+=_.length)}{const e=y.base64Slice(0,y.length);let t=e.replace(/.{64}/g,"$&\n");63&e.length&&(t+="\n"),s+=t}{const e=p.pub.base64Slice(0,p.pub.length);i=`${p.sshName} ${e}${o?` ${o}`:""}`}return s+="-----END OPENSSH PRIVATE KEY-----\n",{private:s,public:i}}throw new Error("Invalid output key format")}function Ia(){}var ka={generateKeyPair:(e,t,n)=>{"function"==typeof t&&(n=t,t=void 0),"function"!=typeof n&&(n=Ia);const i=xa(e,t);ma(...i,(e,r,s)=>{if(e)return n(e);let o;try{o=Sa(i[0],r,s,t)}catch(e){return n(e)}n(null,o)})},generateKeyPairSync:(e,t)=>{const n=xa(e,t),{publicKey:i,privateKey:r}=ga(...n);return Sa(n[0],i,r,t)}};const{AgentProtocol:Ca,BaseAgent:Ra,createAgent:Ba,CygwinAgent:Ta,OpenSSHAgent:Oa,PageantAgent:Na}=Qt,{SSHTTPAgent:La,SSHTTPSAgent:Pa}=Wt,{parseKey:Ua}=ft,{flagsToString:Da,OPEN_MODE:Ma,STATUS_CODE:Ha,stringToFlags:Fa}=Jr;var ja,$a,Qa,Wa,qa,Ya,Ga={AgentProtocol:Ca,BaseAgent:Ra,createAgent:Ba,Client:wo,CygwinAgent:Ta,HTTPAgent:La,HTTPSAgent:Pa,OpenSSHAgent:Oa,PageantAgent:Na,Server:ha,utils:{parseKey:Ua,...ka,sftp:{flagsToString:Da,OPEN_MODE:Ma,STATUS_CODE:Ha,stringToFlags:Fa}}},Ka={exports:{}};function za(){return $a?ja:($a=1,ja=n)}function Xa(){if(Wa)return Qa;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=r(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,r(i.key),i)}}function r(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)}Wa=1;var s=c.Buffer,o=f.inspect,a=o&&o.custom||"inspect";function l(e,t,n){s.prototype.copy.call(e,t,n)}return Qa=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,c;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 s.alloc(0);for(var t=s.allocUnsafe(e>>>0),n=this.head,i=0;n;)l(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,s=e>r.length?r.length:e;if(s===r.length?i+=r:i+=r.slice(0,e),0===(e-=s)){s===r.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=r.slice(s));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(e){var t=s.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:a,value:function(e,n){return o(this,t(t({},n),{},{depth:0,customInspect:!1}))}}])&&i(n.prototype,r),c&&i(n,c),Object.defineProperty(n,"prototype",{writable:!1}),e}(),Qa}function Va(){if(Ya)return qa;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 Ya=1,qa={destroy:function(i,r){var s=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(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?s._writableState?s._writableState.errorEmitted?process.nextTick(t,s):(s._writableState.errorEmitted=!0,process.nextTick(e,s,n)):process.nextTick(e,s,n):r?(process.nextTick(t,s),r(n)):process.nextTick(t,s)}),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)}},qa}var Ja,Za,ec,tc={};function nc(){if(Ja)return tc;Ja=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 s,o;let a;if("string"==typeof t&&(s="not ",t.substr(!o||o<0?0:+o,s.length)===s)?(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"))a=`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";a=`The "${e}" ${i} ${r} ${n(t,"type")}`}return a+=". Received type "+typeof i,a},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"),tc.codes=e,tc}function ic(){if(ec)return Za;ec=1;var e=nc().codes.ERR_INVALID_OPT_VALUE;return Za={getHighWaterMark:function(t,n,i,r){var s=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(n,r,i);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new e(r?i:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}},Za}var rc,sc={exports:{}},oc={exports:{}};try{var ac=require("util");if("function"!=typeof ac.inherits)throw"";sc.exports=ac.inherits}catch(zx){sc.exports=(rc||(rc=1,"function"==typeof Object.create?oc.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:oc.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}),oc.exports)}var cc,lc,uc,pc,dc,hc,fc=sc.exports;function mc(){if(pc)return uc;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;pc=1,uc=x,x.WritableState=E;var n={deprecate:lc?cc:(lc=1,cc=f.deprecate)},i=za(),r=c.Buffer,s=(void 0!==w?w:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var o,a=Va(),l=ic().getHighWaterMark,u=nc().codes,p=u.ERR_INVALID_ARG_TYPE,d=u.ERR_METHOD_NOT_IMPLEMENTED,h=u.ERR_MULTIPLE_CALLBACK,m=u.ERR_STREAM_CANNOT_PIPE,g=u.ERR_STREAM_DESTROYED,_=u.ERR_STREAM_NULL_VALUES,b=u.ERR_STREAM_WRITE_AFTER_END,y=u.ERR_UNKNOWN_ENCODING,v=a.errorOrDestroy;function A(){}function E(n,i,r){t=t||gc(),n=n||{},"boolean"!=typeof r&&(r=i instanceof t),this.objectMode=!!n.objectMode,r&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=l(this,n,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===n.decodeStrings;this.decodeStrings=!s,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 h;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(B,e,t),e._writableState.errorEmitted=!0,v(e,i)):(r(i),e._writableState.errorEmitted=!0,v(e,i),B(e,t))}(e,n,i,t,r);else{var s=C(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||k(e,n),i?process.nextTick(I,e,n,s,r):I(e,n,s,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 x(e){var n=this instanceof(t=t||gc());if(!n&&!o.call(x,this))return new x(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 S(e,t,n,i,r,s,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(r,t.onwrite):e._write(r,s,t.onwrite),t.sync=!1}function I(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),B(e,t)}function k(t,n){n.bufferProcessing=!0;var i=n.bufferedRequest;if(t._writev&&i&&i.next){var r=n.bufferedRequestCount,s=new Array(r),o=n.corkedRequestsFree;o.entry=i;for(var a=0,c=!0;i;)s[a]=i,i.isBuf||(c=!1),i=i.next,a+=1;s.allBuffers=c,S(t,n,!0,n.length,s,"",o.finish),n.pendingcb++,n.lastBufferedRequest=null,o.next?(n.corkedRequestsFree=o.next,o.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;i;){var l=i.chunk,u=i.encoding,p=i.callback;if(S(t,n,!1,n.objectMode?1:l.length,l,u,p),i=i.next,n.bufferedRequestCount--,n.writing)break}null===i&&(n.lastBufferedRequest=null)}n.bufferedRequest=i,n.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function R(e,t){e._final(function(n){t.pendingcb--,n&&v(e,n),t.prefinished=!0,e.emit("prefinish"),B(e,t)})}function B(e,t){var n=C(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(R,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 fc(x,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]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===x&&(e&&e._writableState instanceof E)}})):o=function(e){return e instanceof this},x.prototype.pipe=function(){v(this,new m)},x.prototype.write=function(e,t,n){var i,o=this._writableState,a=!1,c=!o.objectMode&&(i=e,r.isBuffer(i)||i instanceof s);return c&&!r.isBuffer(e)&&(e=function(e){return r.from(e)}(e)),"function"==typeof t&&(n=t,t=null),c?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=A),o.ending?function(e,t){var n=new b;v(e,n),process.nextTick(t,n)}(this,n):(c||function(e,t,n,i){var r;return null===n?r=new _:"string"==typeof n||t.objectMode||(r=new p("chunk",["string","Buffer"],n)),!r||(v(e,r),process.nextTick(i,r),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,i,s,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=r.from(t,n));return t}(t,i,s);i!==a&&(n=!0,s="buffer",i=a)}var c=t.objectMode?1:i.length;t.length+=c;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:s,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,c,i,s,o);return l}(this,o,c,e,t,n)),a},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||k(this,e))},x.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(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,n){n(new d("_write()"))},x.prototype._writev=null,x.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,B(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=a.destroy,x.prototype._undestroy=a.undestroy,x.prototype._destroy=function(e,t){t(e)},uc}function gc(){if(hc)return dc;hc=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};dc=o;var t=Hc(),n=mc();fc(o,t);for(var i=e(n.prototype),r=0;r<i.length;r++){var s=i[r];o.prototype[s]||(o.prototype[s]=n.prototype[s])}function o(e){if(!(this instanceof o))return new o(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",a)))}function a(){this._writableState.ended||process.nextTick(c,this)}function c(e){e.end()}return Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(o.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)}}),dc}var _c,bc,yc,vc,Ac,Ec,wc,xc,Sc,Ic,kc,Cc,Rc,Bc,Tc,Oc,Nc={},Lc={exports:{}};function Pc(){if(bc)return Nc;bc=1;var e=(_c||(_c=1,function(e,t){var n=c,i=n.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(r(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),r(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.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},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(Lc,Lc.exports)),Lc.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=s,this.end=o,i=4;break;case"utf8":this.fillLast=r,i=4;break;case"base64":this.text=a,this.end=l,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){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 s(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 o(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 a(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 l(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 Nc.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 s=i(t[r]);if(s>=0)return s>0&&(e.lastNeed=s-1),s;if(--r<n||-2===s)return 0;if(s=i(t[r]),s>=0)return s>0&&(e.lastNeed=s-2),s;if(--r<n||-2===s)return 0;if(s=i(t[r]),s>=0)return s>0&&(2===s?s=0:e.lastNeed=s-3),s;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},Nc}function Uc(){if(vc)return yc;vc=1;var e=nc().codes.ERR_STREAM_PREMATURE_CLOSE;function t(){}return yc=function n(i,r,s){if("function"==typeof r)return n(i,null,r);r||(r={}),s=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)}}}(s||t);var o=r.readable||!1!==r.readable&&i.readable,a=r.writable||!1!==r.writable&&i.writable,c=function(){i.writable||u()},l=i._writableState&&i._writableState.finished,u=function(){a=!1,l=!0,o||s.call(i)},p=i._readableState&&i._readableState.endEmitted,d=function(){o=!1,p=!0,a||s.call(i)},h=function(e){s.call(i,e)},f=function(){var t;return o&&!p?(i._readableState&&i._readableState.ended||(t=new e),s.call(i,t)):a&&!l?(i._writableState&&i._writableState.ended||(t=new e),s.call(i,t)):void 0},m=function(){i.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(i)?a&&!i._writableState&&(i.on("end",c),i.on("close",c)):(i.on("complete",u),i.on("abort",f),i.req?m():i.on("request",m)),i.on("end",d),i.on("finish",u),!1!==r.error&&i.on("error",h),i.on("close",f),function(){i.removeListener("complete",u),i.removeListener("abort",f),i.removeListener("request",m),i.req&&i.req.removeListener("finish",u),i.removeListener("end",c),i.removeListener("close",c),i.removeListener("finish",u),i.removeListener("end",d),i.removeListener("error",h),i.removeListener("close",f)}},yc}function Dc(){if(Ec)return Ac;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}Ec=1;var n=Uc(),i=Symbol("lastResolve"),r=Symbol("lastReject"),s=Symbol("error"),o=Symbol("ended"),a=Symbol("lastPromise"),c=Symbol("handlePromise"),l=Symbol("stream");function u(e,t){return{value:e,done:t}}function p(e){var t=e[i];if(null!==t){var n=e[l].read();null!==n&&(e[a]=null,e[i]=null,e[r]=null,t(u(n,!1)))}}function d(e){process.nextTick(p,e)}var h=Object.getPrototypeOf(function(){}),f=Object.setPrototypeOf((e={get stream(){return this[l]},next:function(){var e=this,t=this[s];if(null!==t)return Promise.reject(t);if(this[o])return Promise.resolve(u(void 0,!0));if(this[l].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[s]?n(e[s]):t(u(void 0,!0))})});var n,i=this[a];if(i)n=new Promise(function(e,t){return function(n,i){e.then(function(){t[o]?n(u(void 0,!0)):t[c](n,i)},i)}}(i,this));else{var r=this[l].read();if(null!==r)return Promise.resolve(u(r,!1));n=new Promise(this[c])}return this[a]=n,n}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var e=this;return new Promise(function(t,n){e[l].destroy(null,function(e){e?n(e):t(u(void 0,!0))})})}),e),h);return Ac=function(e){var p,h=Object.create(f,(t(p={},l,{value:e,writable:!0}),t(p,i,{value:null,writable:!0}),t(p,r,{value:null,writable:!0}),t(p,s,{value:null,writable:!0}),t(p,o,{value:e._readableState.endEmitted,writable:!0}),t(p,c,{value:function(e,t){var n=h[l].read();n?(h[a]=null,h[i]=null,h[r]=null,e(u(n,!1))):(h[i]=e,h[r]=t)},writable:!0}),p));return h[a]=null,n(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=h[r];return null!==t&&(h[a]=null,h[i]=null,h[r]=null,t(e)),void(h[s]=e)}var n=h[i];null!==n&&(h[a]=null,h[i]=null,h[r]=null,n(u(void 0,!0))),h[o]=!0}),e.on("readable",d.bind(null,h)),h},Ac}function Mc(){if(xc)return wc;function e(e,t,n,i,r,s,o){try{var a=e[s](o),c=a.value}catch(e){return void n(e)}a.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}xc=1;var i=nc().codes.ERR_INVALID_ARG_TYPE;return wc=function(r,s,o){var a;if(s&&"function"==typeof s.next)a=s;else if(s&&s[Symbol.asyncIterator])a=s[Symbol.asyncIterator]();else{if(!s||!s[Symbol.iterator])throw new i("iterable",["Iterable"],s);a=s[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},o)),l=!1;function u(){return p.apply(this,arguments)}function p(){var t;return t=function*(){try{var e=yield a.next(),t=e.value;e.done?c.push(null):c.push(yield t)?u():l=!1}catch(e){c.destroy(e)}},p=function(){var n=this,i=arguments;return new Promise(function(r,s){var o=t.apply(n,i);function a(t){e(o,r,s,a,c,"next",t)}function c(t){e(o,r,s,a,c,"throw",t)}a(void 0)})},p.apply(this,arguments)}return c._read=function(){l||(l=!0,u())},c},wc}function Hc(){if(Ic)return Sc;var e;Ic=1,Sc=S,S.ReadableState=x,h.EventEmitter;var t=function(e,t){return e.listeners(t).length},n=za(),i=c.Buffer,r=(void 0!==w?w:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var s,o=f;s=o&&o.debuglog?o.debuglog("stream"):function(){};var a,l,u,p=Xa(),d=Va(),m=ic().getHighWaterMark,g=nc().codes,_=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,y=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;fc(S,n);var A=d.errorOrDestroy,E=["error","close","destroy","pause","resume"];function x(t,n,i){e=e||gc(),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 p,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&&(a||(a=Pc().StringDecoder),this.decoder=new a(t.encoding),this.encoding=t.encoding)}function S(t){if(e=e||gc(),!(this instanceof S))return new S(t);var i=this instanceof e;this._readableState=new x(t,this,i),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),n.call(this)}function I(e,t,n,o,a){s("readableAddChunk",t);var c,l=e._readableState;if(null===t)l.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?B(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,T(e)))}(e,l);else if(a||(c=function(e,t){var n;s=t,i.isBuffer(s)||s instanceof r||"string"==typeof t||void 0===t||e.objectMode||(n=new _("chunk",["string","Buffer","Uint8Array"],t));var s;return n}(l,t)),c)A(e,c);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===i.prototype||(t=function(e){return i.from(e)}(t)),o)l.endEmitted?A(e,new v):k(e,l,t,!0);else if(l.ended)A(e,new b);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(t=l.decoder.write(t),l.objectMode||0!==t.length?k(e,l,t,!1):O(e,l)):k(e,l,t,!1)}else o||(l.reading=!1,O(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.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&&B(e)),O(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=d.destroy,S.prototype._undestroy=d.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=i.from(e,t),t=""),n=!0),I(this,e,t,!1,n)},S.prototype.unshift=function(e){return I(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){a||(a=Pc().StringDecoder);var t=new a(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 C=1073741824;function R(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>=C?e=C:(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 B(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(T,e))}function T(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,D(e)}function O(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(N,e,t))}function N(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 L(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 P(e){s("readable nexttick read 0"),e.read(0)}function U(e,t){s("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(s("flow",t.flowing);t.flowing&&null!==e.read(););}function M(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(F,t,e))}function F(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 j(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}return S.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):B(this),null;if(0===(e=R(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=R(n,t))),null===(i=e>0?M(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},S.prototype._read=function(e){A(this,new y("_read()"))},S.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",f),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",a),i.removeListener("end",c),i.removeListener("end",m),i.removeListener("data",p),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function c(){s("onend"),e.end()}r.endEmitted?process.nextTick(o):i.once("end",o),e.on("unpipe",a);var l=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,D(e))}}(i);e.on("drain",l);var u=!1;function p(t){s("ondata");var n=e.write(t);s("dest.write",n),!1===n&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==j(r.pipes,e))&&!u&&(s("false write response, pause",r.awaitDrain),r.awaitDrain++),i.pause())}function d(n){s("onerror",n),m(),e.removeListener("error",d),0===t(e,"error")&&A(e,n)}function h(){e.removeListener("finish",f),m()}function f(){s("onfinish"),e.removeListener("close",h),m()}function m(){s("unpipe"),i.unpipe(e)}return i.on("data",p),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",d),e.once("close",h),e.once("finish",f),e.emit("pipe",i),r.flowing||(s("pipe resume"),i.resume()),e},S.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 s=0;s<r;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=j(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var i=n.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?B(this):r.reading||process.nextTick(P,this))),i},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var i=n.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(L,this),i},S.prototype.removeAllListeners=function(e){var t=n.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(L,this),t},S.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(U,e,t))}(this,e)),e.paused=!1,this},S.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},S.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&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=Dc()),l(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=M,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===u&&(u=Mc()),u(S,e,t)}),Sc}function Fc(){if(Cc)return kc;Cc=1,kc=a;var e=nc().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,s=gc();function o(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 s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);s.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",c)}function c(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush(function(t,n){l(e,t,n)})}function l(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 fc(a,s),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},a.prototype._transform=function(e,n,i){i(new t("_transform()"))},a.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)}},a.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))},a.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})},kc}function jc(){if(Oc)return Tc;var e;Oc=1;var t=nc().codes,n=t.ERR_MISSING_ARGS,i=t.ERR_STREAM_DESTROYED;function r(e){if(e)throw e}function s(e){e()}function o(e,t){return e.pipe(t)}return Tc=function(){for(var t=arguments.length,a=new Array(t),c=0;c<t;c++)a[c]=arguments[c];var l,u=function(e){return e.length?"function"!=typeof e[e.length-1]?r:e.pop():r}(a);if(Array.isArray(a[0])&&(a=a[0]),a.length<2)throw new n("streams");var p=a.map(function(t,n){var r=n<a.length-1;return function(t,n,r,s){s=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(s);var o=!1;t.on("close",function(){o=!0}),void 0===e&&(e=Uc()),e(t,{readable:n,writable:r},function(e){if(e)return s(e);o=!0,s()});var a=!1;return function(e){if(!o&&!a)return a=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void s(e||new i("pipe"))}}(t,r,n>0,function(e){l||(l=e),e&&p.forEach(s),r||(p.forEach(s),u(l))})});return a.reduce(o)},Tc}!function(e,t){var i=n;"disable"===process.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=Hc()).Stream=i||t,t.Readable=t,t.Writable=mc(),t.Duplex=gc(),t.Transform=Fc(),t.PassThrough=function(){if(Bc)return Rc;Bc=1,Rc=t;var e=Fc();function t(n){if(!(this instanceof t))return new t(n);e.call(this,n)}return fc(t,e),t.prototype._transform=function(e,t,n){n(null,e)},Rc}(),t.finished=Uc(),t.pipeline=jc())}(Ka,Ka.exports);var $c=Ka.exports,Qc=Object.prototype.toString,Wc="undefined"!=typeof Buffer&&"function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;var qc,Yc=function(e,t,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return i=e,"ArrayBuffer"===Qc.call(i).slice(8,-1)?function(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===n)n=i;else if((n>>>=0)>i)throw new RangeError("'length' is out of bounds");return Wc?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}(e,t,n):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return Wc?Buffer.from(e,t):new Buffer(e,t)}(e,t):Wc?Buffer.from(e):new Buffer(e);var i},Gc={};var Kc=$c.Writable,zc=fc,Xc=Yc;if("undefined"==typeof Uint8Array)var Vc=(qc||(qc=1,function(e){var t,n,i,r=void 0,s=(t=Object.prototype.toString,n=Object.prototype.hasOwnProperty,{Class:function(e){return t.call(e).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,t){return n.call(e,t)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return 0|e},ToUint32:function(e){return e>>>0}}),o=Math.LN2,a=Math.abs,c=Math.floor,l=Math.log,u=Math.min,p=Math.pow,d=Math.round;function h(e){if(f&&i){var t,n=f(e);for(t=0;t<n.length;t+=1)i(e,n[t],{value:e[n[t]],writable:!1,enumerable:!1,configurable:!1})}}i=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()?Object.defineProperty:function(e,t,n){if(!e===Object(e))throw new TypeError("Object.defineProperty called on non-object");return s.HasProperty(n,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,n.get),s.HasProperty(n,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,n.set),s.HasProperty(n,"value")&&(e[t]=n.value),e};var f=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,n=[];for(t in e)s.HasOwnProperty(e,t)&&n.push(t);return n};function m(e,t){var n=32-t;return e<<n>>n}function g(e,t){var n=32-t;return e<<n>>>n}function _(e){return[255&e]}function b(e){return m(e[0],8)}function y(e){return[255&e]}function v(e){return g(e[0],8)}function A(e){return[(e=d(Number(e)))<0?0:e>255?255:255&e]}function E(e){return[e>>8&255,255&e]}function w(e){return m(e[0]<<8|e[1],16)}function x(e){return[e>>8&255,255&e]}function S(e){return g(e[0]<<8|e[1],16)}function I(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function k(e){return m(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function C(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function R(e){return g(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function B(e,t,n){var i,r,s,d,h,f,m,g=(1<<t-1)-1;function _(e){var t=c(e),n=e-t;return n<.5?t:n>.5||t%2?t+1:t}for(e!=e?(r=(1<<t)-1,s=p(2,n-1),i=0):e===1/0||e===-1/0?(r=(1<<t)-1,s=0,i=e<0?1:0):0===e?(r=0,s=0,i=1/e==-1/0?1:0):(i=e<0,(e=a(e))>=p(2,1-g)?(r=u(c(l(e)/o),1023),(s=_(e/p(2,r)*p(2,n)))/p(2,n)>=2&&(r+=1,s=1),r>g?(r=(1<<t)-1,s=0):(r+=g,s-=p(2,n))):(r=0,s=_(e/p(2,1-g-n)))),h=[],d=n;d;d-=1)h.push(s%2?1:0),s=c(s/2);for(d=t;d;d-=1)h.push(r%2?1:0),r=c(r/2);for(h.push(i?1:0),h.reverse(),f=h.join(""),m=[];f.length;)m.push(parseInt(f.substring(0,8),2)),f=f.substring(8);return m}function T(e,t,n){var i,r,s,o,a,c,l,u,d=[];for(i=e.length;i;i-=1)for(s=e[i-1],r=8;r;r-=1)d.push(s%2?1:0),s>>=1;return d.reverse(),o=d.join(""),a=(1<<t-1)-1,c=parseInt(o.substring(0,1),2)?-1:1,l=parseInt(o.substring(1,1+t),2),u=parseInt(o.substring(1+t),2),l===(1<<t)-1?0!==u?NaN:c*(1/0):l>0?c*p(2,l-a)*(1+u/p(2,n)):0!==u?c*p(2,-(a-1))*(u/p(2,n)):c<0?-0:0}function O(e){return T(e,11,52)}function N(e){return B(e,11,52)}function L(e){return T(e,8,23)}function P(e){return B(e,8,23)}!function(){var t=function(e){if((e=s.ToInt32(e))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var t;for(this.byteLength=e,this._bytes=[],this._bytes.length=e,t=0;t<this.byteLength;t+=1)this._bytes[t]=0;h(this)};e.ArrayBuffer=e.ArrayBuffer||t;var n=function(){};function o(e,o,a){var c;return c=function(e,n,r){var o,a,l,u;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===c)for(o=arguments[0],this.length=o.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0,l=0;l<this.length;l+=1)this._setter(l,o._getter(l));else if("object"!=typeof arguments[0]||arguments[0]instanceof t||"ArrayBuffer"===s.Class(arguments[0])){if("object"!=typeof arguments[0]||!(arguments[0]instanceof t||"ArrayBuffer"===s.Class(arguments[0])))throw new TypeError("Unexpected argument type(s)");if(this.buffer=e,this.byteOffset=s.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=s.ToUint32(r),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(a=arguments[0],this.length=s.ToUint32(a.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0,l=0;l<this.length;l+=1)u=a[l],this._setter(l,Number(u));else{if(this.length=s.ToInt32(arguments[0]),r<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0}this.constructor=c,h(this),function(e){if(i){if(e.length>1e5)throw new RangeError("Array too large for polyfill");var t;for(t=0;t<e.length;t+=1)n(t)}function n(t){i(e,t,{get:function(){return e._getter(t)},set:function(n){e._setter(t,n)},enumerable:!0,configurable:!1})}}(this)},c.prototype=new n,c.prototype.BYTES_PER_ELEMENT=e,c.prototype._pack=o,c.prototype._unpack=a,c.BYTES_PER_ELEMENT=e,c.prototype._getter=function(e){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if((e=s.ToUint32(e))>=this.length)return r;var t,n,i=[];for(t=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;t<this.BYTES_PER_ELEMENT;t+=1,n+=1)i.push(this.buffer._bytes[n]);return this._unpack(i)},c.prototype.get=c.prototype._getter,c.prototype._setter=function(e,t){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if((e=s.ToUint32(e))>=this.length)return r;var n,i,o=this._pack(t);for(n=0,i=this.byteOffset+e*this.BYTES_PER_ELEMENT;n<this.BYTES_PER_ELEMENT;n+=1,i+=1)this.buffer._bytes[i]=o[n]},c.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var n,i,r,o,a,c,l,u,p,d;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(n=arguments[0],(r=s.ToUint32(arguments[1]))+n.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(u=this.byteOffset+r*this.BYTES_PER_ELEMENT,p=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(d=[],a=0,c=n.byteOffset;a<p;a+=1,c+=1)d[a]=n.buffer._bytes[c];for(a=0,l=u;a<p;a+=1,l+=1)this.buffer._bytes[l]=d[a]}else for(a=0,c=n.byteOffset,l=u;a<p;a+=1,c+=1,l+=1)this.buffer._bytes[l]=n.buffer._bytes[c]}else{if("object"!=typeof arguments[0]||void 0===arguments[0].length)throw new TypeError("Unexpected argument type(s)");if(i=arguments[0],o=s.ToUint32(i.length),(r=s.ToUint32(arguments[1]))+o>this.length)throw new RangeError("Offset plus length of array is out of range");for(a=0;a<o;a+=1)c=i[a],this._setter(r+a,Number(c))}},c.prototype.subarray=function(e,t){function n(e,t,n){return e<t?t:e>n?n:e}e=s.ToInt32(e),t=s.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=n(e,0,this.length);var i=(t=n(t,0,this.length))-e;return i<0&&(i=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,i)},c}var a=o(1,_,b),c=o(1,y,v),l=o(1,A,v),u=o(2,E,w),p=o(2,x,S),d=o(4,I,k),f=o(4,C,R),m=o(4,P,L),g=o(8,N,O);e.Int8Array=e.Int8Array||a,e.Uint8Array=e.Uint8Array||c,e.Uint8ClampedArray=e.Uint8ClampedArray||l,e.Int16Array=e.Int16Array||u,e.Uint16Array=e.Uint16Array||p,e.Int32Array=e.Int32Array||d,e.Uint32Array=e.Uint32Array||f,e.Float32Array=e.Float32Array||m,e.Float64Array=e.Float64Array||g}(),function(){function t(e,t){return s.IsCallable(e.get)?e.get(t):e[t]}var n,i=(n=new e.Uint16Array([4660]),18===t(new e.Uint8Array(n.buffer),0)),r=function(t,n,i){if(0===arguments.length)t=new e.ArrayBuffer(0);else if(!(t instanceof e.ArrayBuffer||"ArrayBuffer"===s.Class(t)))throw new TypeError("TypeError");if(this.buffer=t||new e.ArrayBuffer(0),this.byteOffset=s.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteLength=arguments.length<3?this.buffer.byteLength-this.byteOffset:s.ToUint32(i),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");h(this)};function o(n){return function(r,o){if((r=s.ToUint32(r))+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");r+=this.byteOffset;var a,c=new e.Uint8Array(this.buffer,r,n.BYTES_PER_ELEMENT),l=[];for(a=0;a<n.BYTES_PER_ELEMENT;a+=1)l.push(t(c,a));return Boolean(o)===Boolean(i)&&l.reverse(),t(new n(new e.Uint8Array(l).buffer),0)}}function a(n){return function(r,o,a){if((r=s.ToUint32(r))+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var c,l=new n([o]),u=new e.Uint8Array(l.buffer),p=[];for(c=0;c<n.BYTES_PER_ELEMENT;c+=1)p.push(t(u,c));Boolean(a)===Boolean(i)&&p.reverse(),new e.Uint8Array(this.buffer,r,n.BYTES_PER_ELEMENT).set(p)}}r.prototype.getUint8=o(e.Uint8Array),r.prototype.getInt8=o(e.Int8Array),r.prototype.getUint16=o(e.Uint16Array),r.prototype.getInt16=o(e.Int16Array),r.prototype.getUint32=o(e.Uint32Array),r.prototype.getInt32=o(e.Int32Array),r.prototype.getFloat32=o(e.Float32Array),r.prototype.getFloat64=o(e.Float64Array),r.prototype.setUint8=a(e.Uint8Array),r.prototype.setInt8=a(e.Int8Array),r.prototype.setUint16=a(e.Uint16Array),r.prototype.setInt16=a(e.Int16Array),r.prototype.setUint32=a(e.Uint32Array),r.prototype.setInt32=a(e.Int32Array),r.prototype.setFloat32=a(e.Float32Array),r.prototype.setFloat64=a(e.Float64Array),e.DataView=e.DataView||r}()}(Gc)),Gc).Uint8Array;else Vc=Uint8Array;function Jc(e,t){if(!(this instanceof Jc))return new Jc(e,t);"function"==typeof e&&(t=e,e={}),e||(e={});var n=e.encoding,i=!1;n?"u8"!==(n=String(n).toLowerCase())&&"uint8"!==n||(n="uint8array"):i=!0,Kc.call(this,{objectMode:!0}),this.encoding=n,this.shouldInferEncoding=i,t&&this.on("finish",function(){t(this.getBody())}),this.body=[]}var Zc=Jc;function el(e){return"string"==typeof e||(t=e,/Array\]$/.test(Object.prototype.toString.call(t)))||e&&"function"==typeof e.subarray;var t}function tl(e,t){for(const n in t)Object.defineProperty(e,n,{value:t[n],enumerable:!0,configurable:!0});return e}zc(Jc,Kc),Jc.prototype._write=function(e,t,n){this.body.push(e),n()},Jc.prototype.inferEncoding=function(e){var t=void 0===e?this.body[0]:e;return Buffer.isBuffer(t)?"buffer":"undefined"!=typeof Uint8Array&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":"string"==typeof t?"string":"[object Object]"===Object.prototype.toString.call(t)?"object":"buffer"},Jc.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding?function(e){for(var t=[],n=0;n<e.length;n++)t.push.apply(t,e[n]);return t}(this.body):"string"===this.encoding?function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];"string"==typeof i||Buffer.isBuffer(i)?t.push(i):el(i)?t.push(Xc(i)):t.push(Xc(String(i)))}t=Buffer.isBuffer(e[0])?(t=Buffer.concat(t)).toString("utf8"):t.join("");return t}(this.body):"buffer"===this.encoding?function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Buffer.isBuffer(i)?t.push(i):el(i)?t.push(Xc(i)):t.push(Xc(String(i)))}return Buffer.concat(t)}(this.body):"uint8array"===this.encoding?function(e){for(var t=0,n=0;n<e.length;n++)"string"==typeof e[n]&&(e[n]=Xc(e[n])),t+=e[n].length;for(var i=new Vc(t),r=(n=0,0);n<e.length;n++)for(var s=e[n],o=0;o<s.length;o++)i[r++]=s[o];return i}(this.body):this.body):[]};var nl=function(e,t,n){if(!e||"string"==typeof e)throw new TypeError("Please pass an Error to err-code");n||(n={}),"object"==typeof t&&(n=t,t=void 0),null!=t&&(n.code=t);try{return tl(e,n)}catch(t){n.message=e.message,n.stack=e.stack;const i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(e)),tl(new i,n)}},il={};function rl(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var sl=rl;rl.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts},rl.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null},rl.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(void 0===n){if(!this._cachedTimeouts)return!1;this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),n=this._timeouts.shift()}var i=this,r=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},n);return this._options.unref&&r.unref(),!0},rl.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},rl.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},rl.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},rl.prototype.start=rl.prototype.try,rl.prototype.errors=function(){return this._errors},rl.prototype.attempts=function(){return this._attempts},rl.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,n=0,i=0;i<this._errors.length;i++){var r=this._errors[i],s=r.message,o=(e[s]||0)+1;e[s]=o,o>=n&&(t=r,n=o)}return t},function(e){var t=sl;e.operation=function(n){var i=e.timeouts(n);return new t(i,{forever:n&&n.forever,unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],r=0;r<t.retries;r++)i.push(this.createTimeout(r,t));return e&&e.forever&&!i.length&&i.push(this.createTimeout(r,t)),i.sort(function(e,t){return e-t}),i},e.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,i=Math.round(n*t.minTimeout*Math.pow(t.factor,e));return i=Math.min(i,t.maxTimeout)},e.wrap=function(t,n,i){if(n instanceof Array&&(i=n,n=null),!i)for(var r in i=[],t)"function"==typeof t[r]&&i.push(r);for(var s=0;s<i.length;s++){var o=i[s],a=t[o];t[o]=function(i){var r=e.operation(n),s=Array.prototype.slice.call(arguments,1),o=s.pop();s.push(function(e){r.retry(e)||(e&&(arguments[0]=r.mainError()),o.apply(this,arguments))}),r.attempt(function(){i.apply(t,s)})}.bind(t,a),t[o].options=n}}}(il);var ol=nl,al=il,cl=Object.prototype.hasOwnProperty;function ll(e){return e&&"EPROMISERETRY"===e.code&&cl.call(e,"retried")}var ul=function(e,t){var n,i;return"object"==typeof e&&"function"==typeof t&&(n=t,t=e,e=n),i=al.operation(t),new Promise(function(t,n){i.attempt(function(r){Promise.resolve().then(function(){return e(function(e){throw ll(e)&&(e=e.retried),ol(new Error("Retrying"),"EPROMISERETRY",{retried:e})},r)}).then(t,function(e){ll(e)&&(e=e.retried,i.retry(e||new Error))||n(e)})})})};var pl={errorCode:{generic:"ERR_GENERIC_CLIENT",connect:"ERR_NOT_CONNECTED",badPath:"ERR_BAD_PATH",permission:"EACCES",notexist:"ENOENT",notdir:"ENOTDIR",badAuth:"ERR_BAD_AUTH"},targetType:{writeFile:1,readFile:2,writeDir:3,readDir:4,readObj:5,writeObj:6}};const dl=e,hl=g,{errorCode:fl}=pl;function ml(e,t,n){return i=>{if(e.endCalled||e.errorHandled)return void e.debugMsg(`${t} errorListener - ignoring handled error`);e.errorHandled=!0;const r=new Error(`${t}: ${i.message}`);if(r.code=i.code,!n)throw r;n(r)}}function gl(e,t){return function(){e.sftp=void 0,e.endCalled||e.endHandled||e.errorHandled?e.debugMsg(`${t} endListener - handled end event`):(e.endHandled=!0,e.debugMsg(`${t} Unexpected end event`))}}function _l(e,t){return function(){e.sftp=void 0,e.endCalled||e.closeHandled||e.errorHandled||e.endHandled?e.debugMsg(`${t} closeListener - handled close event`):(e.closeHandled=!0,e.debugMsg(`${t} Unexpected close event`))}}function bl(e){const t=dl.statSync(e,{throwIfNoEntry:!1});if(t){if(t.isDirectory())return"d";if(t.isFile())return"-";{const t=new Error(`Bad path: ${e}: target must be a file or directory`);throw t.code=fl.badPath,t}}return!1}function yl(e,t="r"){const n=dl.constants.F_OK|"w"===t?dl.constants.W_OK:dl.constants.R_OK;try{dl.accessSync(e,n);return{status:!0,type:bl(e),details:"access OK",code:0}}catch(t){switch(t.errno){case-2:return{status:!1,type:null,details:"not exist",code:-2};case-13:return{status:!1,type:bl(e),details:"permission denied",code:-13};case-20:return{status:!1,type:null,details:"parent not a directory"};default:return{status:!1,type:null,details:t.message}}}}var vl={globalListener:function(e,t){return()=>{e.endCalled||e.errorHandled||e.closeHandled?e.debugMsg(`Global ${t} event: Ignoring expected and handled event`):(e.debugMsg(`Global ${t} event: Handling unexpected event`),e.sftp=void 0)}},errorListener:ml,endListener:gl,closeListener:_l,addTempListeners:function(e,t,n){const i={end:gl(e,t),close:_l(e,t),error:ml(e,t,n)};return e.on("end",i.end),e.on("close",i.close),e.on("error",i.error),e._resetEventFlags(),i},removeTempListeners:function(e,t,n){try{e.removeListener("end",t.end),e.removeListener("close",t.close),e.removeListener("error",t.error)}catch(e){throw new Error(`${n}: Error removing temp listeners: ${e.message}`)}},haveLocalAccess:yl,haveLocalCreate:function(e){const{status:t,details:n,type:i}=yl(e,"w");if(!t){if("permission denied"===n)return{status:t,details:n,type:i};const r=hl.dirname(e),s=yl(r,"w");return s.status?"d"!==s.type?{status:!1,details:`${r}: not a directory`,type:null}:{status:!0,details:"access OK",type:null,code:0}:{status:s.status,details:`${r}: ${s.details}`,type:null}}return{status:t,details:n,type:i}},normalizeRemotePath:async function(e,t){try{if(t.startsWith("..")){return`${await e.realPath("..")}/${t.slice(3)}`}if(t.startsWith(".")){return`${await e.realPath(".")}/${t.slice(2)}`}return t}catch(e){throw new Error(`normalizeRemotePath: ${e.message}`)}},localExists:bl,haveConnection:function(e,t,n){if(!e.sftp){const e=new Error(`${t}: No SFTP connection available`);if(e.code=fl.connect,n)return n(e),!1;throw e}return!0},sleep:function(e){return new Promise((t,n)=>{try{Number.isNaN(Number.parseInt(e))||e<0?n("Argument must be a number >= 0"):setTimeout(()=>{t(!0)},e)}catch(e){n(e)}})},partition:function(e,t){let n=[];if(t<1)throw new Error("Partition size must be greater than zero");for(let i=0;i<e.length;i+=t)n[n.length]=e.slice(i,i+t);return n}};const{Client:Al}=Ga,El=e,wl=Zc,xl=ul,{join:Sl,parse:Il}=g,{globalListener:kl,addTempListeners:Cl,removeTempListeners:Rl,haveConnection:Bl,normalizeRemotePath:Tl,localExists:Ol,haveLocalAccess:Nl,haveLocalCreate:Ll,partition:Pl}=vl,{errorCode:Ul}=pl;var Dl,Ml,Hl,Fl,jl,$l,Ql,Wl,ql=class{constructor(e){this.version="10.0.3",this.client=new Al,this.sftp=void 0,this.clientName=e||"sftp",this.endCalled=!1,this.errorHandled=!1,this.closeHandled=!1,this.endHandled=!1,this.remotePlatform="unix",this.debug=void 0,this.promiseLimit=10,this.client.on("close",kl(this,"close")),this.client.on("end",kl(this,"end")),this.client.on("error",kl(this,"error"))}debugMsg(e,t){this.debug&&(t?this.debug(`CLIENT[${this.clientName}]: ${e} ${JSON.stringify(t,null," ")}`):this.debug(`CLIENT[${this.clientName}]: ${e}`))}fmtError(e,t="sftp",n,i){let r="",s="";const o=i?` after ${i} ${i>1?"attempts":"attempt"}`:"";if(void 0===e)r=`${t}: Undefined error - probably a bug!`,s=Ul.generic;else if("string"==typeof e)r=`${t}: ${e}${o}`,s=n||Ul.generic;else if(e.custom)r=`${t}->${e.message}${o}`,s=e.code;else{switch(e.code){case"ENOTFOUND":r=`${t}: Address lookup failed for host${o}`;break;case"ECONNREFUSED":r=`${t}: Remote host refused connection${o}`;break;case"ECONNRESET":r=`${t}: Remote host has reset the connection: ${e.message}${o}`;break;default:r=`${t}: ${e.message}${o}`}s=e.code||Ul.generic}const a=new Error(r);return a.code=s,a.custom=!0,this.debugMsg(`${a.message} (${a.code})`),a}on(e,t){this.client.prependListener(e,t)}removeListener(e,t){this.client.removeListener(e,t)}_resetEventFlags(){this.closeHandled=!1,this.endHandled=!1,this.errorHandled=!1}getConnection(e){let t,n;return new Promise((i,r)=>{n=Cl(this,"getConnection",r),t=()=>{this.debugMsg("getConnection ready listener: got connection - promise resolved"),i(!0)},this.on("ready",t);try{this.client.connect(e)}catch(e){this.debugMsg(`getConnection: ${e.message}`),r(e)}}).finally(()=>{this.removeListener("ready",t),Rl(this,n,"getConnection")})}getSftpChannel(){return new Promise((e,t)=>{this.client.sftp((n,i)=>{n?t(this.fmtError(n,"getSftpChannel",n.code)):(this.sftp=i,e(i))})})}async connect(e){let t;try{if(t=Cl(this,"connect"),e.debug&&(this.debug=e.debug,this.debugMsg("connect: Debugging turned on"),this.debugMsg(`ssh2-sftp-client Version: ${this.version} `,process.versions)),this.promiseLimit=e.promiseLimit??10,this.sftp)throw this.fmtError("An existing SFTP connection is already defined","connect",Ul.connect);const n={retries:e.retries??1,factor:e.retry_factor??2,minTimeout:e.retry_minTimeout??25e3};await xl(n,async(t,n)=>{try{this.debugMsg(`connect: Connect attempt ${n}`),await this.getConnection(e)}catch(e){switch(e.code){case"ENOTFOUND":case"ECONNREFUSED":case"ERR_SOCKET_BAD_PORT":throw e;case void 0:if(e.message.endsWith("All configured authentication methods failed")||e.message.startsWith("Cannot parse privateKey"))throw e;t(e);break;default:t(e)}}});return await this.getSftpChannel()}catch(e){throw this.end(),e.custom?e:this.fmtError(e,"connect")}finally{Rl(this,t,"connect")}}realPath(e,t=!0){let n;return new Promise((i,r)=>{t&&(n=Cl(this,"realPath",r)),this.debugMsg(`realPath -> ${e}`),this.sftp.realpath(e,(t,n)=>{t&&(2===t.code?(this.debugMsg('realPath <- ""'),i("")):(this.debugMsg(`${t.message} ${e}`,"realPath"),r(this.fmtError(`${t.message} ${e}`,"realPath",t.code)))),this.debugMsg(`realPath <- ${n}`),i(n)})}).finally(()=>{t&&Rl(this,n,"realPath")})}cwd(){return this.realPath(".")}_xstat(e,t,n=!0){let i;return new Promise((r,s)=>{const o=(e,n)=>{if(e)2===e.code||4===e.code?s(this.fmtError(`No such file: ${t}`,"_xstat",Ul.notexist)):s(this.fmtError(`${e.message} ${t}`,"_xstat",e.code));else{const e={mode:n.mode,uid:n.uid,gid:n.gid,size:n.size,accessTime:1e3*n.atime,modifyTime:1e3*n.mtime,isDirectory:n.isDirectory(),isFile:n.isFile(),isBlockDevice:n.isBlockDevice(),isCharacterDevice:n.isCharacterDevice(),isSymbolicLink:n.isSymbolicLink(),isFIFO:n.isFIFO(),isSocket:n.isSocket()};this.debugMsg("_xstat: result = ",e),r(e)}};n&&(i=Cl(this,"_xstat",s)),"stat"===e?this.sftp.stat(t,o):this.sftp.lstat(t,o)}).finally(()=>{n&&Rl(this,i,"_xstat")})}async stat(e){try{return Bl(this,"stat"),await this._xstat("stat",e)}catch(e){throw e.custom?e:this.fmtError(e,"stat",e.code)}}async lstat(e){try{return Bl(this,"lstat"),await this._xstat("lstat",e)}catch(e){throw e.custom?e:this.fmtError(e,"lstat",e.code)}}async exists(e){this.debugMsg(`exists: remotePath = ${e}`);try{if("."===e)return"d";const t=await this.lstat(e);return this.debugMsg("exists: <- ",t),t.isDirectory?"d":t.isSymbolicLink?"l":!!t.isFile&&"-"}catch(e){if(e.code===Ul.notexist)return!1;throw e.custom?e:this.fmtError(e.message,"exists",e.code)}}list(e,t,n=!0){let i;return new Promise((r,s)=>{n&&(i=Cl(this,"list",s)),Bl(this,"list",s)&&this.sftp.readdir(e,(n,i)=>{if(n)s(this.fmtError(`${n.message} ${e}`,"list",n.code));else{const e=/-/gi,n=i.map(t=>({type:t.longname.slice(0,1),name:t.filename,size:t.attrs.size,modifyTime:1e3*t.attrs.mtime,accessTime:1e3*t.attrs.atime,rights:{user:t.longname.slice(1,4).replaceAll(e,""),group:t.longname.slice(4,7).replaceAll(e,""),other:t.longname.slice(7,10).replaceAll(e,"")},owner:t.attrs.uid,group:t.attrs.gid,longname:t.longname}));r(t?n.filter(e=>t(e)):n)}})}).finally(()=>{n&&Rl(this,i,"list")})}get(e,t,n,i=!0){let r,s,o;return new Promise((a,c)=>{if(i&&(r=Cl(this,"get",c)),Bl(this,"get",c)){if(n={readStreamOptions:{...n?.readStreamOptions,autoClose:!0},writeStreamOptions:{...n?.writeStreamOptions,autoClose:!0},pipeOptions:{...n?.pipeOptions,end:!0}},s=this.sftp.createReadStream(e,n.readStreamOptions),s.once("error",n=>{t&&"string"!=typeof t&&!t.destroyed&&t.destroy(),c(this.fmtError(`${n.message} ${e}`,"get",n.code))}),void 0===t)this.debugMsg("get resolving buffer of data"),o=wl(e=>{a(e)});else if("string"==typeof t){this.debugMsg("get returning local file");const e=Ll(t);e.status?o=El.createWriteStream(t,n.writeStreamOptions):c(this.fmtError(`Bad path: ${t}: ${e.details}`,"get",e.code))}else this.debugMsg("get: returning data into supplied stream"),o=t;o.once("error",e=>{c(this.fmtError(`${e.message} ${"string"==typeof t?t:"<stream>"}`,"get",e.code))}),s.once("end",()=>{"string"==typeof t?(this.debugMsg("get: resolving with dst filename"),a(t)):void 0!==t&&(this.debugMsg("get: resolving with writer stream object"),a(o))}),s.pipe(o,n.pipeOptions)}}).finally(()=>{i&&Rl(this,r,"get")})}_fastGet(e,t,n,i=!0){let r;return new Promise((s,o)=>{i&&(r=Cl(this,"_fastGet",o)),Bl(this,"_fastGet",o)&&this.sftp.fastGet(e,t,n,n=>{n&&o(this.fmtError(`${n.message} Remote: ${e} Local: ${t}`)),s(`${e} was successfully download to ${t}!`)})}).finally(()=>{i&&Rl(this,r,"_fastGet")})}async fastGet(e,t,n){try{const i=await this.exists(e);if("-"!==i){const t=`${i?"Not a regular file":"No such file "} ${e}`;throw this.fmtError(t,"fastGet",Ul.badPath)}const r=Ll(t);if(!r.status)throw this.fmtError(`Bad path: ${t}: ${r.details}`,"fastGet",Ul.badPath);return await this._fastGet(e,t,n)}catch(e){throw this.fmtError(e,"fastGet")}}_fastPut(e,t,n,i=!0){let r;return new Promise((s,o)=>{i&&(r=Cl(this,"_fastPut",o)),Bl(this,"_fastPut",o)&&this.sftp.fastPut(e,t,n,n=>{n&&o(this.fmtError(`${n.message} Local: ${e} Remote: ${t}`,"fastPut",n.code)),s(`${e} was successfully uploaded to ${t}!`)})}).finally(()=>{i&&Rl(this,r,"_fastPut")})}async fastPut(e,t,n){try{this.debugMsg(`fastPut -> local ${e} remote ${t}`);const i=Nl(e);if(!i.status)throw this.fmtError(`Bad path: ${e}: ${i.details}`,"fastPut",i.code);if(i.status&&"d"===Ol(e))throw this.fmtError(`Bad path: ${e} not a regular file`,"fastgPut",Ul.badPath);return await this._fastPut(e,t,n)}catch(e){throw e.custom?e:this.fmtError(e.message,"fastPut",e.code)}}_put(e,t,n,i=!0){let r,s,o;return new Promise((a,c)=>{i&&(r=Cl(this,"_put",c)),n={readStreamOptions:{...n?.readStreamOptions,autoClose:!0},writeStreamOptions:{...n?.writeStreamOptions,autoClose:!0},pipeOptions:{...n?.pipeOptions,end:!0}},Bl(this,"_put",c)&&(s=this.sftp.createWriteStream(t,n.writeStreamOptions),s.once("error",e=>{c(this.fmtError(`Write stream error: ${e.message} ${t}`,"_put",e.code))}),s.once("close",()=>{a(`Uploaded data stream to ${t}`)}),e instanceof Buffer?(this.debugMsg("put source is a buffer"),s.end(e)):(o="string"==typeof e?El.createReadStream(e,n.readStreamOptions):e,o.once("error",t=>{c(this.fmtError(`Read stream error: ${t.message} ${"string"==typeof e?e:"<stream>"}`,"_put",t.code))}),o.pipe(s,n.pipeOptions)))}).finally(()=>{i&&Rl(this,r,"_put")})}async put(e,t,n){try{if("string"==typeof e){const t=Nl(e);if(!t.status)throw this.fmtError(`Bad path: ${e} ${t.details}`,"put",t.code)}return await this._put(e,t,n)}catch(e){throw e.custom?e:this.fmtError(`Re-thrown: ${e.message}`,"put",e.code)}}_append(e,t,n,i=!0){let r;return new Promise((s,o)=>{if(i&&(r=Cl(this,"_append",o)),Bl(this,"_append",o)){this.debugMsg(`append -> remote: ${t} `,n),n.flags="a";const i=this.sftp.createWriteStream(t,n);i.on("error",e=>{o(this.fmtError(`${e.message} ${t}`,"append",e.code))}),i.on("close",()=>{s(`Appended data to ${t}`)}),e instanceof Buffer?(i.write(e),i.end()):e.pipe(i)}}).finally(()=>{i&&Rl(this,r,"_append")})}async append(e,t,n={}){try{if("string"==typeof e)throw this.fmtError("Cannot append one file to another","append",Ul.badPath);const i=await this.exists(t);if(i&&"d"===i)throw this.fmtError(`Bad path: ${t}: cannot append to a directory`,"append",Ul.badPath);await this._append(e,t,n)}catch(e){throw e.custom?e:this.fmtError(e.message,"append",e.code)}}_doMkdir(e,t=!0){let n;return new Promise((i,r)=>{t&&(n=Cl(this,"_doMkdir",r)),this.sftp.mkdir(e,t=>{t?4===t.code?r(this.fmtError(`Bad path: ${e} permission denied`,"_doMkdir",Ul.badPath)):2===t.code?r(this.fmtError(`Bad path: ${e} parent not a directory or not exist`,"_doMkdir",Ul.badPath)):r(this.fmtError(`${t.message} ${e}`,"_doMkdir",t.code)):i(`${e} directory created`)})}).finally(()=>{t&&Rl(this,n,"_doMkdir")})}async _mkdir(e,t){try{const n=await Tl(this,e),i=await this.exists(n);if(i&&"d"!==i)throw this.fmtError(`Bad path: ${n} already exists as a file`,"_mkdir",Ul.badPath);if(i)return`${n} already exists`;if(!t)return await this._doMkdir(n);const r=Il(n).dir;if(r){const e=await this.exists(r);if(e){if("d"!==e)throw this.fmtError(`Bad path: ${r} not a directory`,"_mkdir",Ul.badPath)}else await this._mkdir(r,!0)}return await this._doMkdir(n)}catch(t){throw t.custom?t:this.fmtError(`${t.message} ${e}`,"_mkdir",t.code)}}async mkdir(e,t=!1){try{return Bl(this,"mkdir"),await this._mkdir(e,t)}catch(e){throw this.fmtError(`${e.message}`,"mkdir",e.code)}}async rmdir(e,t=!1){const n=e=>{let t;return new Promise((n,i)=>{t=Cl(this,"_rmdir",i),this.debugMsg(`_rmdir: dir = ${e}`),this.sftp.rmdir(e,t=>{t&&i(this.fmtError(`${t.message} ${e}`,"rmdir",t.code)),n("Successfully removed directory")})}).finally(()=>{Rl(this,t,"_rmdir")})},i=(e,t)=>{let n;return new Promise((i,r)=>{n=Cl(this,"_delFiles",r),this.debugMsg(`_delFiles: path = ${e} fileList = ${t}`);const s=[];for(const n of t)s.push(this.delete(`${e}/${n.name}`,!0,!1));i(s)}).then(e=>Promise.all(e)).finally(()=>{Rl(this,n,"_delFiles")})};try{this.debugMsg(`rmdir: dir = ${e} recursive = ${t}`);const r=await Tl(this,e),s=await this.exists(r);if(this.debugMsg(`rmdir: ${r} existStatus = ${s}`),!s)throw this.fmtError(`Bad Path: ${e}: No such directory`,"rmdir",Ul.badPath);if("d"!==s)throw this.fmtError(`Bad Path: ${e}: Not a directory`,"rmdir",Ul.badPath);if(!t)return this.debugMsg("rmdir: non-recursive - just try to remove it"),await n(r);const o=await this.list(r);if(this.debugMsg(`rmdir: listing count = ${o.length}`),!o.length)return this.debugMsg("rmdir: No sub dir or files, just rmdir"),await n(r);const a=o.filter(e=>"d"!==e.type);this.debugMsg(`rmdir: dir content files to remove = ${a.length}`);const c=o.filter(e=>"d"===e.type);this.debugMsg(`rmdir: sub-directories to remove = ${c.length}`),await i(r,a);for(const e of c)await this.rmdir(`${r}/${e.name}`,!0);return await n(r),"Successfully removed directory"}catch(t){throw t.custom?t:this.fmtError(`${t.message} ${e}`,"rmdir",t.code)}}delete(e,t=!1,n=!0){let i;return new Promise((r,s)=>{n&&(i=Cl(this,"delete",s)),this.sftp.unlink(e,n=>{n&&(t&&2===n.code?r(`Successfully deleted ${e}`):s(this.fmtError(`${n.message} ${e}`,"delete",n.code))),r(`Successfully deleted ${e}`)})}).finally(()=>{n&&Rl(this,i,"delete")})}rename(e,t,n=!0){let i;return new Promise((r,s)=>{n&&(i=Cl(this,"rename",s)),Bl(this,"rename",s)&&this.sftp.rename(e,t,n=>{n&&s(this.fmtError(`${n.message} From: ${e} To: ${t}`,"_rename",n.code)),r(`Successfully renamed ${e} to ${t}`)})}).finally(()=>{n&&Rl(this,i,"rename")})}posixRename(e,t,n=!0){let i;return new Promise((r,s)=>{n&&(i=Cl(this,"posixRename",s)),Bl(this,"posixRename",s)&&this.sftp.ext_openssh_rename(e,t,n=>{n&&s(this.fmtError(`${n.message} From: ${e} To: ${t}`,"_posixRename",n.code)),r(`Successful POSIX rename ${e} to ${t}`)})}).finally(()=>{Rl(this,i,"posixRename")})}chmod(e,t,n=!0){let i;return new Promise((r,s)=>{n&&(i=Cl(this,"chmod",s)),Bl(this,"chmod",s)&&this.sftp.chmod(e,t,t=>{t&&s(this.fmtError(`${t.message} ${e}`,"_chmod",t.code)),r("Successfully change file mode")})}).finally(()=>{n&&Rl(this,i,"chmod")})}async uploadDir(e,t,n){const i=async e=>{const t=await Tl(this,e),n=await this.exists(t);if(n&&"d"!==n)throw this.fmtError(`Bad path ${t} Not a directory`,"getRemoteStatus",Ul.badPath);return{remoteDir:t,remoteStatus:n}},r=e=>{const t=Ol(e);if(!t)throw this.fmtError(`Bad path: ${e} not exist`,"getLocalStatus",Ul.badPath);if("d"!==t)throw this.fmtError(`Bad path: ${e}: not a directory`,"getLocalStatus",Ul.badPath);return t},s=async(e,t,n,i)=>{let r=Cl(this,"uploadFiles");try{const r=[];for(const i of n){const n=Sl(e,i.name),s=`${t}/${i.name}`;r.push([n,s])}const s=Pl(r,this.promiseLimit),o=i?this._fastPut.bind(this):this._put.bind(this),a=[];for(const e of s){const t=[];for(const[n,i]of e)t.push(o(n,i,null,!1)),this.client.emit("upload",{source:n,destination:i});const n=await Promise.all(t);for(const e of n)a.push(e)}return a}catch(n){throw this.fmtError(`${n.message} ${e} to ${t}`,"uploadFiles",n.code)}finally{Rl(this,r,s)}};try{Bl(this,"uploadDir"),this.debugMsg(`uploadDir: srcDir = ${e} dstDir = ${t} options = ${n}`);const{remoteDir:o,remoteStatus:a}=await i(t);this.debugMsg(`uploadDir: remoteDir = ${o} remoteStatus = ${a}`),r(e),a||await this._mkdir(o,!0);let c=El.readdirSync(e,{encoding:"utf8",withFileTypes:!0});this.debugMsg(`uploadDir: dirEntries = ${c}`),n?.filter&&(c=c.filter(t=>n.filter(Sl(e,t.name),t.isDirectory())));const l=c.filter(e=>e.isDirectory()),u=c.filter(e=>!e.isDirectory());this.debugMsg(`uploadDir: dirUploads = ${l}`),this.debugMsg(`uploadDir: fileUploads = ${u}`),await s(e,o,u,n?.useFastput);for(const t of l){const i=Sl(e,t.name),r=`${o}/${t.name}`;await this.uploadDir(i,r,n)}return`${e} uploaded to ${t}`}catch(t){throw t.custom?t:this.fmtError(`${t.message} ${e}`,"uploadDir",t.code)}}async downloadDir(e,t,n={filter:null,useFastget:!1}){const i=async(e,t)=>{try{const n=await this.list(e);return t?n.filter(n=>t(`${e}/${n.name}`,"d"===n.type)):n}catch(e){throw e.custom?e:this.fmtError(e.message,"_getDownloadList",e.code)}},r=e=>{try{const n=Ll(e);if(!n.status&&"permission denied"===n.details)throw this.fmtError(`Bad path: ${e}: ${n.details}`,"prepareDestination",n.code);if(n.status&&!n.type)El.mkdirSync(e,{recursive:!0});else if(n.status&&"d"!==n.type)throw this.fmtError(`Bad path: ${t}: not a directory`,"_prepareDestination",Ul.badPath)}catch(e){throw e.custom?e:this.fmtError(e.message,"_prepareDestination",e.code)}},s=async(n,i,r,s)=>{let o=Cl(this,"downloadFIles");try{const e=[];for(const t of r){const r=`${n}/${t.name}`,s=Sl(i,t.name);e.push([r,s])}const t=Pl(e,this.promiseLimit),o=s?this._fastGet.bind(this):this.get.bind(this),a=[];for(const e of t){const t=[];for(const[n,i]of e)t.push(o(n,i,null,!1)),this.client.emit("download",{source:n,destination:i});const n=await Promise.all(t);for(const e of n)a.push(e)}return a}catch(n){throw this.fmtError(`${n.message} ${e} to ${t}`,"downloadFiles",n.code)}finally{Rl(this,o,"downloadFiles")}};try{Bl(this,"downloadDir");const o=await i(e,n.filter);r(t);const a=o.filter(e=>"d"!==e.type);a.length&&await s(e,t,a,n.useFastget);const c=o.filter(e=>"d"===e.type);for(const i of c){const r=`${e}/${i.name}`,s=Sl(t,i.name);await this.downloadDir(r,s,n)}return`${e} downloaded to ${t}`}catch(t){throw t.custom?t:this.fmtError(`${t.message}: ${e}`,"downloadDir",t.code)}}createReadStream(e,t){let n;try{n=Cl(this,"createReadStream"),Bl(this,"createReadStream");return this.sftp.createReadStream(e,t)}catch(e){throw e.custom?e:this.fmtError(e.message,"createReadStream",e.code)}finally{Rl(this,n,"createReadStreame")}}createWriteStream(e,t){let n;try{n=Cl(this,"createWriteStream"),Bl(this,"createWriteStream");return this.sftp.createWriteStream(e,t)}catch(e){throw e.custom?e:this.fmtError(e.message,"createWriteStream",e.code)}finally{Rl(this,n,"createWriteStream")}}_rcopy(e,t){return new Promise((n,i)=>{const r=this.sftp.createWriteStream(t),s=this.sftp.createReadStream(e);r.on("error",e=>{i(this.fmtError(`${e.message} ${t}`,"_rcopy"))}),s.on("error",t=>{i(this.fmtError(`${t.message} ${e}`,"_rcopy"))}),r.on("close",()=>{n(`${e} copied to ${t}`)}),s.pipe(r)})}async rcopy(e,t){let n;try{n=Cl(this,"rcopy"),Bl(this,"rcopy");const i=await Tl(this,e),r=await this.exists(i);if(!r)throw this.fmtError(`Source does not exist ${i}`,"rcopy",Ul.badPath);if("-"!==r)throw this.fmtError(`Source not a file ${i}`,"rcopy",Ul.badPath);const s=await Tl(this,t);if(await this.exists(s))throw this.fmtError(`Destination already exists ${s}`,"rcopy",Ul.badPath);return this._rcopy(i,s)}catch(e){throw e.custom?e:this.fmtError(e,"rcopy")}finally{Rl(this,n,"rcopy")}}end(){let e,t;return new Promise((n,i)=>{t=Cl(this,"end",i),this.endCalled=!0,e=()=>{this.sftp=void 0,this.debugMsg("end: Connection closed"),n(!0)},this.on("close",e),this.sftp?this.client.end():(this.debugMsg("end: Called when no connection active"),n(!0))}).finally(()=>{Rl(this,t,"end"),this.removeListener("close",e),this.endCalled=!1})}},Yl=x(ql),Gl={exports:{}},Kl={exports:{}};function zl(){if(Fl)return Hl;Fl=1;const e=Ml?Dl:(Ml=1,Dl={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"]}};Hl=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})}function i(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}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),s=Math.max(t,n,i),o=s-r;let a,c;s===r?a=0:t===s?a=(n-i)/o:n===s?a=2+(i-t)/o:i===s&&(a=4+(t-n)/o),a=Math.min(60*a,360),a<0&&(a+=360);const l=(r+s)/2;return c=s===r?0:l<=.5?o/(s+r):o/(2-s-r),[a,100*c,100*l]},n.rgb.hsv=function(e){let t,n,i,r,s;const o=e[0]/255,a=e[1]/255,c=e[2]/255,l=Math.max(o,a,c),u=l-Math.min(o,a,c),p=function(e){return(l-e)/6/u+.5};return 0===u?(r=0,s=0):(s=u/l,t=p(o),n=p(a),i=p(c),o===l?r=i-n:a===l?r=1/3+t-i:c===l&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*s,100*l]},n.rgb.hwb=function(e){const t=e[0],i=e[1];let r=e[2];const s=n.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(i,r));return r=1-1/255*Math.max(t,Math.max(i,r)),[s,100*o,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 r=t[n];if(r)return r;let s,o=1/0;for(const t of Object.keys(e)){const r=i(n,e[t]);r<o&&(o=r,s=t)}return s},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],s=t[2];i/=95.047,r/=100,s/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;return[116*r-16,500*(i-r),200*(r-s)]},n.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,i=e[2]/100;let r,s,o;if(0===n)return o=255*i,[o,o,o];r=i<.5?i*(1+n):i+n-i*n;const a=2*i-r,c=[0,0,0];for(let e=0;e<3;e++)s=t+1/3*-(e-1),s<0&&s++,s>1&&s--,o=6*s<1?a+6*(r-a)*s:2*s<1?r:3*s<2?a+(r-a)*(2/3-s)*6:a,c[e]=255*o;return c},n.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,i=e[2]/100,r=n;const s=Math.max(i,.01);i*=2,n*=i<=1?i:2-i,r*=s<=1?s:2-s;return[t,100*(0===i?2*r/(s+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,s=t-Math.floor(t),o=255*i*(1-n),a=255*i*(1-n*s),c=255*i*(1-n*(1-s));switch(i*=255,r){case 0:return[i,c,o];case 1:return[a,i,o];case 2:return[o,i,c];case 3:return[o,a,i];case 4:return[c,o,i];case 5:return[i,o,a]}},n.hsv.hsl=function(e){const t=e[0],n=e[1]/100,i=e[2]/100,r=Math.max(i,.01);let s,o;o=(2-n)*i;const a=(2-n)*r;return s=n*r,s/=a<=1?a:2-a,s=s||0,o/=2,[t,100*s,100*o]},n.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,i=e[2]/100;const r=n+i;let s;r>1&&(n/=r,i/=r);const o=Math.floor(6*t),a=1-i;s=6*t-o,1&o&&(s=1-s);const c=n+s*(a-n);let l,u,p;switch(o){default:case 6:case 0:l=a,u=c,p=n;break;case 1:l=c,u=a,p=n;break;case 2:l=n,u=a,p=c;break;case 3:l=n,u=c,p=a;break;case 4:l=c,u=n,p=a;break;case 5:l=a,u=n,p=c}return[255*l,255*u,255*p]},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,s,o;return r=3.2406*t+-1.5372*n+-.4986*i,s=-.9689*t+1.8758*n+.0415*i,o=.0557*t+-.204*n+1.057*i,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,r=Math.min(Math.max(0,r),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[255*r,255*s,255*o]},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,s=t**3,o=i**3;return n=r>.008856?r:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,i=o>.008856?o:(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,s]=e;let o=null===t?n.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let a=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(i/255));return 2===o&&(a+=60),a},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),s=Math.min(Math.min(t,n),i),o=r-s;let a,c;return a=o<1?s/(1-o):0,c=o<=0?0:r===t?(n-i)/o%6:r===n?2+(i-t)/o:4+(t-n)/o,c/=6,c%=1,[360*c,100*o,100*a]},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],s=t%1*6,o=s%1,a=1-o;let c=0;switch(Math.floor(s)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=a,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=a,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=a}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]},Hl}function Xl(){if($l)return jl;$l=1;const e=zl();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,s=0;s<e;s++){const e=r[s],o=n[e];-1===o.distance&&(o.distance=n[t].distance+1,o.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 s=e[i[t].parent][t],o=i[t].parent;for(;i[o].parent;)r.unshift(i[o].parent),s=n(e[i[o].parent][o],s),o=i[o].parent;return s.conversion=r,s}return jl=function(e){const n=t(e),r={},s=Object.keys(n);for(let e=s.length,t=0;t<e;t++){const e=s[t];null!==n[e].parent&&(r[e]=i(e,n))}return r}}function Vl(){if(Wl)return Ql;Wl=1;const e=zl(),t=Xl(),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)})}),Ql=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,s=(e,t,n)=>[e,t,n],o=(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 a;const c=(e,t,n,i)=>{void 0===a&&(a=Vl());const r=i?10:0,s={};for(const[i,o]of Object.entries(a)){const a="ansi16"===i?"ansi":i;i===t?s[a]=e(n,r):"object"==typeof o&&(s[a]=e(o[t],r))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,a={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]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(const[t,n]of Object.entries(a)){for(const[t,i]of Object.entries(n))a[t]={open:`[${i[0]}m`,close:`[${i[1]}m`},n[t]=a[t],e.set(i[0],i[1]);Object.defineProperty(a,t,{value:n,enumerable:!1})}return Object.defineProperty(a,"codes",{value:e,enumerable:!1}),a.color.close="[39m",a.bgColor.close="[49m",o(a.color,"ansi",()=>c(t,"ansi16",r,!1)),o(a.color,"ansi256",()=>c(n,"ansi256",r,!1)),o(a.color,"ansi16m",()=>c(i,"rgb",s,!1)),o(a.bgColor,"ansi",()=>c(t,"ansi16",r,!0)),o(a.bgColor,"ansi256",()=>c(n,"ansi256",r,!0)),o(a.bgColor,"ansi16m",()=>c(i,"rgb",s,!0)),a}})}(Kl);var Jl=Kl.exports;const Zl=b,eu=y,tu=(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:nu}=process;let iu;function ru(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function su(e,t){if(0===iu)return 0;if(tu("color=16m")||tu("color=full")||tu("color=truecolor"))return 3;if(tu("color=256"))return 2;if(e&&!t&&void 0===iu)return 0;const n=iu||0;if("dumb"===nu.TERM)return n;if("win32"===process.platform){const e=Zl.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in nu)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in nu)||"codeship"===nu.CI_NAME?1:n;if("TEAMCITY_VERSION"in nu)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(nu.TEAMCITY_VERSION)?1:0;if("truecolor"===nu.COLORTERM)return 3;if("TERM_PROGRAM"in nu){const e=parseInt((nu.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(nu.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(nu.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(nu.TERM)||"COLORTERM"in nu?1:n}tu("no-color")||tu("no-colors")||tu("color=false")||tu("color=never")?iu=0:(tu("color")||tu("colors")||tu("color=true")||tu("color=always"))&&(iu=1),"FORCE_COLOR"in nu&&(iu="true"===nu.FORCE_COLOR?1:"false"===nu.FORCE_COLOR?0:0===nu.FORCE_COLOR.length?1:Math.min(parseInt(nu.FORCE_COLOR,10),3));var ou={supportsColor:function(e){return ru(su(e,e&&e.isTTY))},stdout:ru(su(!0,eu.isatty(1))),stderr:ru(su(!0,eu.isatty(2)))};var au,cu,lu={stringReplaceAll:(e,t,n)=>{let i=e.indexOf(t);if(-1===i)return e;const r=t.length;let s=0,o="";do{o+=e.substr(s,i-s)+t+n,s=i+r,i=e.indexOf(t,s)}while(-1!==i);return o+=e.substr(s),o},stringEncaseCRLFWithFirstIndex:(e,t,n,i)=>{let r=0,s="";do{const o="\r"===e[i-1];s+=e.substr(r,(o?i-1:i)-r)+t+(o?"\r\n":"\n")+n,r=i+1,i=e.indexOf("\n",r)}while(-1!==i);return s+=e.substr(r),s}};const uu=Jl,{stdout:pu,stderr:du}=ou,{stringReplaceAll:hu,stringEncaseCRLFWithFirstIndex:fu}=lu,{isArray:mu}=Array,gu=["ansi","ansi","ansi256","ansi16m"],_u=Object.create(null);class bu{constructor(e){return yu(e)}}const yu=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=pu?pu.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>ku(t.template,...e),Object.setPrototypeOf(t,vu.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=bu,t.template};function vu(e){return yu(e)}for(const[Xx,Vx]of Object.entries(uu))_u[Xx]={get(){const e=xu(this,wu(Vx.open,Vx.close,this._styler),this._isEmpty);return Object.defineProperty(this,Xx,{value:e}),e}};_u.visible={get(){const e=xu(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const Au=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const Jx of Au)_u[Jx]={get(){const{level:e}=this;return function(...t){const n=wu(uu.color[gu[e]][Jx](...t),uu.color.close,this._styler);return xu(this,n,this._isEmpty)}}};for(const Zx of Au){_u["bg"+Zx[0].toUpperCase()+Zx.slice(1)]={get(){const{level:e}=this;return function(...t){const n=wu(uu.bgColor[gu[e]][Zx](...t),uu.bgColor.close,this._styler);return xu(this,n,this._isEmpty)}}}}const Eu=Object.defineProperties(()=>{},{..._u,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),wu=(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}},xu=(e,t,n)=>{const i=(...e)=>mu(e[0])&&mu(e[0].raw)?Su(i,ku(i,...e)):Su(i,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(i,Eu),i._generator=e,i._styler=t,i._isEmpty=n,i},Su=(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=hu(t,n.close,n.open),n=n.parent;const s=t.indexOf("\n");return-1!==s&&(t=fu(t,r,i,s)),i+t+r};let Iu;const ku=(e,...t)=>{const[n]=t;if(!mu(n)||!mu(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===Iu&&(Iu=function(){if(cu)return au;cu=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 s(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 o(e,t){const r=[],o=t.trim().split(/\s*,\s*/g);let a;for(const t of o){const o=Number(t);if(Number.isNaN(o)){if(!(a=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(a[2].replace(i,(e,t,n)=>t?s(t):n))}else r.push(o)}return r}function a(e){t.lastIndex=0;const n=[];let i;for(;null!==(i=t.exec(e));){const e=i[1];if(i[2]){const t=o(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 au=(t,n)=>{const i=[],r=[];let o=[];if(n.replace(e,(e,n,l,u,p,d)=>{if(n)o.push(s(n));else if(u){const e=o.join("");o=[],r.push(0===i.length?e:c(t,i)(e)),i.push({inverse:l,styles:a(u)})}else if(p){if(0===i.length)throw new Error("Found extraneous } in Chalk template literal");r.push(c(t,i)(o.join(""))),o=[],i.pop()}else o.push(d)}),r.push(o.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("")},au}()),Iu(e,r.join(""))};Object.defineProperties(vu.prototype,_u);const Cu=vu();Cu.supportsColor=pu,Cu.stderr=vu({level:du?du.level:0}),Cu.stderr.supportsColor=du;var Ru=Cu,Bu=x(Ru),Tu={},Ou={exports:{}},Nu={exports:{}};const Lu=(e,t)=>{for(const n of Reflect.ownKeys(t))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));return e};Nu.exports=Lu,Nu.exports.default=Lu;const Pu=Nu.exports,Uu=new WeakMap,Du=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,i=0;const r=e.displayName||e.name||"<anonymous>",s=function(...o){if(Uu.set(s,++i),1===i)n=e.apply(this,o),e=null;else if(!0===t.throw)throw new Error(`Function \`${r}\` can only be called once`);return n};return Pu(s,e),Uu.set(s,i),s};Ou.exports=Du,Ou.exports.default=Du,Ou.exports.callCount=e=>{if(!Uu.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Uu.get(e)};var Mu,Hu=Ou.exports,Fu={exports:{}},ju={exports:{}};var $u=w.process;const Qu=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(Qu($u)){var Wu,qu=a,Yu=(Mu||(Mu=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")}(ju)),ju.exports),Gu=/^win/i.test($u.platform),Ku=h;"function"!=typeof Ku&&(Ku=Ku.EventEmitter),$u.__signal_exit_emitter__?Wu=$u.__signal_exit_emitter__:((Wu=$u.__signal_exit_emitter__=new Ku).count=0,Wu.emitted={}),Wu.infinite||(Wu.setMaxListeners(1/0),Wu.infinite=!0),Fu.exports=function(e,t){if(!Qu(w.process))return function(){};qu.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Ju&&Zu();var n="exit";t&&t.alwaysLast&&(n="afterexit");return Wu.on(n,e),function(){Wu.removeListener(n,e),0===Wu.listeners("exit").length&&0===Wu.listeners("afterexit").length&&zu()}};var zu=function(){Ju&&Qu(w.process)&&(Ju=!1,Yu.forEach(function(e){try{$u.removeListener(e,Vu[e])}catch(e){}}),$u.emit=np,$u.reallyExit=ep,Wu.count-=1)};Fu.exports.unload=zu;var Xu=function(e,t,n){Wu.emitted[e]||(Wu.emitted[e]=!0,Wu.emit(e,t,n))},Vu={};Yu.forEach(function(e){Vu[e]=function(){Qu(w.process)&&($u.listeners(e).length===Wu.count&&(zu(),Xu("exit",null,e),Xu("afterexit",null,e),Gu&&"SIGHUP"===e&&(e="SIGINT"),$u.kill($u.pid,e)))}}),Fu.exports.signals=function(){return Yu};var Ju=!1,Zu=function(){!Ju&&Qu(w.process)&&(Ju=!0,Wu.count+=1,Yu=Yu.filter(function(e){try{return $u.on(e,Vu[e]),!0}catch(e){return!1}}),$u.emit=ip,$u.reallyExit=tp)};Fu.exports.load=Zu;var ep=$u.reallyExit,tp=function(e){Qu(w.process)&&($u.exitCode=e||0,Xu("exit",$u.exitCode,null),Xu("afterexit",$u.exitCode,null),ep.call($u,$u.exitCode))},np=$u.emit,ip=function(e,t){if("exit"===e&&Qu(w.process)){void 0!==t&&($u.exitCode=t);var n=np.apply(this,arguments);return Xu("exit",$u.exitCode,null),Xu("afterexit",$u.exitCode,null),n}return np.apply(this,arguments)}}else Fu.exports=function(){return function(){}};var rp=Fu.exports;const sp=rp;var op=Hu(()=>{sp(()=>{process.stderr.write("[?25h")},{alwaysLast:!0})});!function(e){const t=op;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)}}(Tu);var ap={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 cp=Object.assign({},ap),lp=Object.keys(cp);Object.defineProperty(cp,"random",{get(){const e=Math.floor(Math.random()*lp.length),t=lp[e];return cp[t]}});var up=cp,pp=()=>"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 dp=Ru,hp=pp,fp={info:dp.blue("ℹ"),success:dp.green("✔"),warning:dp.yellow("⚠"),error:dp.red("✖")},mp={info:dp.blue("i"),success:dp.green("√"),warning:dp.yellow("‼"),error:dp.red("×")};var gp=hp()?fp:mp;const _p=({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 bp={exports:{}},yp={exports:{}};!function(e){var t=function(){function e(t,i,r,s){"object"==typeof i&&(r=i.depth,s=i.prototype,i.filter,i=i.circular);var o=[],a=[],c="undefined"!=typeof Buffer;return void 0===i&&(i=!0),void 0===r&&(r=1/0),function t(r,l){if(null===r)return null;if(0==l)return r;var u,p;if("object"!=typeof r)return r;if(e.__isArray(r))u=[];else if(e.__isRegExp(r))u=new RegExp(r.source,n(r)),r.lastIndex&&(u.lastIndex=r.lastIndex);else if(e.__isDate(r))u=new Date(r.getTime());else{if(c&&Buffer.isBuffer(r))return u=Buffer.allocUnsafe?Buffer.allocUnsafe(r.length):new Buffer(r.length),r.copy(u),u;void 0===s?(p=Object.getPrototypeOf(r),u=Object.create(p)):(u=Object.create(s),p=s)}if(i){var d=o.indexOf(r);if(-1!=d)return a[d];o.push(r),a.push(u)}for(var h in r){var f;p&&(f=Object.getOwnPropertyDescriptor(p,h)),f&&null==f.set||(u[h]=t(r[h],l-1))}return u}(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)}(yp);var vp=yp.exports,Ap=function(e,t){return e=e||{},Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=vp(t[n]))}),e},Ep=[[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]],wp={nul:0,control:0};function xp(e,t){if("string"!=typeof e)return Sp(e,t);for(var n=0,i=0;i<e.length;i++){var r=Sp(e.charCodeAt(i),t);if(r<0)return-1;n+=r}return n}function Sp(e,t){return 0===e?t.nul:e<32||e>=127&&e<160?t.control:function(e){var t,n=0,i=Ep.length-1;if(e<Ep[0][0]||e>Ep[i][1])return!1;for(;i>=n;)if(t=Math.floor((n+i)/2),e>Ep[t][1])n=t+1;else{if(!(e<Ep[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))}bp.exports=function(e){return xp(e,wp)},bp.exports.config=function(e){return e=Ap(e||{},wp),function(t){return xp(t,e)}};var Ip=bp.exports,kp={exports:{}};const{Buffer:Cp}=c,Rp=Symbol.for("BufferList");function Bp(e){if(!(this instanceof Bp))return new Bp(e);Bp._init.call(this,e)}Bp._init=function(e){Object.defineProperty(this,Rp,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},Bp.prototype._new=function(e){return new Bp(e)},Bp.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}},Bp.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},Bp.prototype.get=function(e){if(e>this.length||e<0)return;const t=this._offset(e);return this._bufs[t[0]][t[1]]},Bp.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)},Bp.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||Cp.alloc(0);if(i<=0)return e||Cp.alloc(0);const r=!!e,s=this._offset(n),o=i-n;let a=o,c=r&&t||0,l=s[1];if(0===n&&i===this.length){if(!r)return 1===this._bufs.length?this._bufs[0]:Cp.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(a<=this._bufs[s[0]].length-l)return r?this._bufs[s[0]].copy(e,t,l,l+a):this._bufs[s[0]].slice(l,l+a);r||(e=Cp.allocUnsafe(o));for(let t=s[0];t<this._bufs.length;t++){const n=this._bufs[t].length-l;if(!(a>n)){this._bufs[t].copy(e,c,l,l+a),c+=n;break}this._bufs[t].copy(e,c,l),c+=n,a-=n,l&&(l=0)}return e.length>c?e.slice(0,c):e},Bp.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)},Bp.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},Bp.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},Bp.prototype.duplicate=function(){const e=this._new();for(let t=0;t<this._bufs.length;t++)e.append(this._bufs[t]);return e},Bp.prototype.append=function(e){if(null==e)return this;if(e.buffer)this._appendBuffer(Cp.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(Cp.from(e));return this},Bp.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length},Bp.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=Cp.from([e]):"string"==typeof e?e=Cp.from(e,n):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=Cp.from(e.buffer,e.byteOffset,e.byteLength):Cp.isBuffer(e)||(e=Cp.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],s=i[1];for(;r<this._bufs.length;r++){const t=this._bufs[r];for(;s<t.length;){if(t.length-s>=e.length){const n=t.indexOf(e,s);if(-1!==n)return this._reverseOffset([r,n]);s=t.length-e.length+1}else{const t=this._reverseOffset([r,s]);if(this._match(t,e))return t;s++}}s=0}return-1},Bp.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){Bp.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)}(),Bp.prototype._isBufferList=function(e){return e instanceof Bp||Bp.isBufferList(e)},Bp.isBufferList=function(e){return null!=e&&e[Rp]};var Tp=Bp;const Op=$c.Duplex,Np=Tp;function Lp(e){if(!(this instanceof Lp))return new Lp(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}Np._init.call(this,e),Op.call(this)}fc(Lp,Op),Object.assign(Lp.prototype,Np.prototype),Lp.prototype._new=function(e){return new Lp(e)},Lp.prototype._write=function(e,t,n){this._appendBuffer(e),"function"==typeof n&&n()},Lp.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)},Lp.prototype.end=function(e){Op.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},Lp.prototype._destroy=function(e,t){this._bufs.length=0,this.length=0,t(e)},Lp.prototype._isBufferList=function(e){return e instanceof Lp||e instanceof Np||Lp.isBufferList(e)},Lp.isBufferList=Np.isBufferList,kp.exports=Lp,kp.exports.BufferListStream=Lp,kp.exports.BufferList=Np;var Pp=kp.exports;const Up=_,Dp=Ru,Mp=Tu,Hp=up,Fp=gp,jp=e=>"string"==typeof e?e.replace(_p(),""):e,$p=Ip,Qp=({stream:e=process.stdout}={})=>Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env)),Wp=pp,{BufferListStream:qp}=Pp,Yp=Symbol("text"),Gp=Symbol("prefixText");class Kp{constructor(){this.requests=0,this.mutedStream=new qp,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=Up.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 zp;class Xp{constructor(e){zp||(zp=new Kp),"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:Qp({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(Wp())if(void 0===e)this._spinner=Hp.dots;else{if("default"===e||!Hp[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=Hp[e]}else this._spinner=Hp.line;this._updateInterval(this._spinner.interval)}get text(){return this[Yp]}set text(e){this[Yp]=e,this.updateLineCount()}get prefixText(){return this[Gp]}set prefixText(e){this[Gp]=e,this.updateLineCount()}get isSpinning(){return void 0!==this.id}getFullPrefixText(e=this[Gp],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 jp(t+"--"+this[Yp]).split("\n"))this.lineCount+=Math.max(1,Math.ceil($p(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=Dp[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&&Mp.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,zp.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&&Mp.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(zp.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Fp.success,text:e})}fail(e){return this.stopAndPersist({symbol:Fp.error,text:e})}warn(e){return this.stopAndPersist({symbol:Fp.warning,text:e})}info(e){return this.stopAndPersist({symbol:Fp.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}}Gl.exports=function(e){return new Xp(e)},Gl.exports.promise=(e,t)=>{if("function"!=typeof e.then)throw new TypeError("Parameter `action` must be a Promise");const n=new Xp(t);return n.start(),(async()=>{try{await e,n.succeed()}catch{n.fail()}})(),n};var Vp=x(Gl.exports),Jp={exports:{}};!function(e){e.exports=function(){var t,n;function i(){return t.apply(null,arguments)}function r(e){t=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function p(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,i=[],r=e.length;for(n=0;n<r;++n)i.push(t(e[n],n));return i}function h(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,i){return zn(e,t,n,i,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=m()),e._pf}function _(e){var t=null,i=!1,r=e._d&&!isNaN(e._d.getTime());return r&&(t=g(e),i=n.call(t.parsedDateParts,function(e){return null!=e}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function b(e){var t=f(NaN);return null!=e?h(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var y=i.momentProperties=[],v=!1;function A(e,t){var n,i,r,s=y.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=g(t)),l(t._locale)||(e._locale=t._locale),s>0)for(n=0;n<s;n++)l(r=t[i=y[n]])||(e[i]=r);return e}function E(e){A(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function w(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function x(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return h(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,s,o,c=[],l=arguments.length;for(s=0;s<l;s++){if(r="","object"==typeof arguments[s]){for(o in r+="\n["+s+"] ",arguments[0])a(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[s];c.push(r)}x(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var I,k={};function C(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),k[e]||(x(t),k[e]=!0)}function R(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function B(e){var t,n;for(n in e)a(e,n)&&(R(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function T(e,t){var n,i=h({},e);for(n in t)a(t,n)&&(o(e[n])&&o(t[n])?(i[n]={},h(i[n],e[n]),h(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)a(e,n)&&!a(t,n)&&o(e[n])&&(i[n]=h({},i[n]));return i}function O(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,I=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function L(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return R(i)?i.call(t,n):i}function P(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},H={};function F(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(H[e]=r),t&&(H[t[0]]=function(){return P(r.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function j(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $(e){var t,n,i=e.match(U);for(t=0,n=i.length;t<n;t++)H[i[t]]?i[t]=H[i[t]]:i[t]=j(i[t]);return function(t){var r,s="";for(r=0;r<n;r++)s+=R(i[r])?i[r].call(t,e):i[r];return s}}function Q(e,t){return e.isValid()?(t=W(t,e.localeData()),M[t]=M[t]||$(t),M[t](e)):e.localeData().invalidDate()}function W(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(D.lastIndex=0;n>=0&&D.test(e);)e=e.replace(D,i),D.lastIndex=0,n-=1;return e}var q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(U).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var G="Invalid date";function K(){return this._invalidDate}var X="%d",V=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,i){var r=this._relativeTime[n];return R(r)?r(e,t,n,i):r.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return R(n)?n(t):n.replace(/%s/i,t)}var ne={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ie(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function re(e){var t,n,i={};for(n in e)a(e,n)&&(t=ie(n))&&(i[t]=e[n]);return i}var se={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oe(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:se[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}var ae,ce=/\d/,le=/\d\d/,ue=/\d{3}/,pe=/\d{4}/,de=/[+-]?\d{6}/,he=/\d\d?/,fe=/\d\d\d\d?/,me=/\d\d\d\d\d\d?/,ge=/\d{1,3}/,_e=/\d{1,4}/,be=/[+-]?\d{1,6}/,ye=/\d+/,ve=/[+-]?\d+/,Ae=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,we=/[+-]?\d+(\.\d{1,3})?/,xe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Se=/^[1-9]\d?/,Ie=/^([1-9]\d|\d)/;function ke(e,t,n){ae[e]=R(t)?t:function(e,i){return e&&n?n:t}}function Ce(e,t){return a(ae,e)?ae[e](t._strict,t._locale):new RegExp(Re(e))}function Re(e){return Be(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function Be(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Te(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Oe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Te(t)),n}ae={};var Ne={};function Le(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=Oe(e)}),i=e.length,n=0;n<i;n++)Ne[e[n]]=r}function Pe(e,t){Le(e,function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)})}function Ue(e,t,n){null!=t&&a(Ne,e)&&Ne[e](t,n._a,n,e)}function De(e){return e%4==0&&e%100!=0||e%400==0}var Me=0,He=1,Fe=2,je=3,$e=4,Qe=5,We=6,qe=7,Ye=8;function Ge(e){return De(e)?366:365}F("Y",0,0,function(){var e=this.year();return e<=9999?P(e,4):"+"+e}),F(0,["YY",2],0,function(){return this.year()%100}),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),ke("Y",ve),ke("YY",he,le),ke("YYYY",_e,pe),ke("YYYYY",be,de),ke("YYYYYY",be,de),Le(["YYYYY","YYYYYY"],Me),Le("YYYY",function(e,t){t[Me]=2===e.length?i.parseTwoDigitYear(e):Oe(e)}),Le("YY",function(e,t){t[Me]=i.parseTwoDigitYear(e)}),Le("Y",function(e,t){t[Me]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return Oe(e)+(Oe(e)>68?1900:2e3)};var Ke,ze=Ve("FullYear",!0);function Xe(){return De(this.year())}function Ve(e,t){return function(n){return null!=n?(Ze(this,e,n),i.updateOffset(this,t),this):Je(this,e)}}function Je(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ze(e,t,n){var i,r,s,o,a;if(e.isValid()&&!isNaN(n)){switch(i=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}s=n,o=e.month(),a=29!==(a=e.date())||1!==o||De(s)?a:28,r?i.setUTCFullYear(s,o,a):i.setFullYear(s,o,a)}}function et(e){return R(this[e=ie(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var n,i=oe(e=re(e)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](e[i[n].unit])}else if(R(this[e=ie(e)]))return this[e](t);return this}function nt(e,t){return(e%t+t)%t}function it(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=nt(t,12);return e+=(t-n)/12,1===n?De(e)?29:28:31-n%7%2}Ke=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",function(){return this.month()+1}),F("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),F("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ke("M",he,Se),ke("MM",he,le),ke("MMM",function(e,t){return t.monthsShortRegex(e)}),ke("MMMM",function(e,t){return t.monthsRegex(e)}),Le(["M","MM"],function(e,t){t[He]=Oe(e)-1}),Le(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[He]=r:g(n).invalidMonth=e});var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),st="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ot=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=xe,ct=xe;function lt(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ot).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function ut(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ot.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function pt(e,t,n){var i,r,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Ke.call(this._shortMonthsParse,o))?r:null:-1!==(r=Ke.call(this._longMonthsParse,o))?r:null:"MMM"===t?-1!==(r=Ke.call(this._shortMonthsParse,o))||-1!==(r=Ke.call(this._longMonthsParse,o))?r:null:-1!==(r=Ke.call(this._longMonthsParse,o))||-1!==(r=Ke.call(this._shortMonthsParse,o))?r:null}function dt(e,t,n){var i,r,s;if(this._monthsParseExact)return pt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function ht(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Oe(t);else if(!u(t=e.localeData().monthsParse(t)))return e;var n=t,i=e.date();return i=i<29?i:Math.min(i,it(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,i):e._d.setMonth(n,i),e}function ft(e){return null!=e?(ht(this,e),i.updateOffset(this,!0),this):Je(this,"Month")}function mt(){return it(this.year(),this.month())}function gt(e){return this._monthsParseExact?(a(this,"_monthsRegex")||bt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function _t(e){return this._monthsParseExact?(a(this,"_monthsRegex")||bt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=ct),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function bt(){function e(e,t){return t.length-e.length}var t,n,i,r,s=[],o=[],a=[];for(t=0;t<12;t++)n=f([2e3,t]),i=Be(this.monthsShort(n,"")),r=Be(this.months(n,"")),s.push(i),o.push(r),a.push(r),a.push(i);s.sort(e),o.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function yt(e,t,n,i,r,s,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,i,r,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,i,r,s,o),a}function vt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function At(e,t,n){var i=7+t-n;return-(7+vt(e,0,i).getUTCDay()-t)%7+i-1}function Et(e,t,n,i,r){var s,o,a=1+7*(t-1)+(7+n-i)%7+At(e,i,r);return a<=0?o=Ge(s=e-1)+a:a>Ge(e)?(s=e+1,o=a-Ge(e)):(s=e,o=a),{year:s,dayOfYear:o}}function wt(e,t,n){var i,r,s=At(e.year(),t,n),o=Math.floor((e.dayOfYear()-s-1)/7)+1;return o<1?i=o+xt(r=e.year()-1,t,n):o>xt(e.year(),t,n)?(i=o-xt(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function xt(e,t,n){var i=At(e,t,n),r=At(e+1,t,n);return(Ge(e)-i+r)/7}function St(e){return wt(e,this._week.dow,this._week.doy).week}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),ke("w",he,Se),ke("ww",he,le),ke("W",he,Se),ke("WW",he,le),Pe(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=Oe(e)});var It={dow:0,doy:6};function kt(){return this._week.dow}function Ct(){return this._week.doy}function Rt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Bt(e){var t=wt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Tt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ot(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Nt(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("d",0,"do","day"),F("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),F("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),F("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),ke("d",he),ke("e",he),ke("E",he),ke("dd",function(e,t){return t.weekdaysMinRegex(e)}),ke("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ke("dddd",function(e,t){return t.weekdaysRegex(e)}),Pe(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:g(n).invalidWeekday=e}),Pe(["d","e","E"],function(e,t,n,i){t[i]=Oe(e)});var Lt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ut="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Dt=xe,Mt=xe,Ht=xe;function Ft(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Nt(n,this._week.dow):e?n[e.day()]:n}function jt(e){return!0===e?Nt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function $t(e){return!0===e?Nt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Qt(e,t,n){var i,r,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Ke.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=Ke.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=Ke.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=Ke.call(this._weekdaysParse,o))||-1!==(r=Ke.call(this._shortWeekdaysParse,o))||-1!==(r=Ke.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=Ke.call(this._shortWeekdaysParse,o))||-1!==(r=Ke.call(this._weekdaysParse,o))||-1!==(r=Ke.call(this._minWeekdaysParse,o))?r:null:-1!==(r=Ke.call(this._minWeekdaysParse,o))||-1!==(r=Ke.call(this._weekdaysParse,o))||-1!==(r=Ke.call(this._shortWeekdaysParse,o))?r:null}function Wt(e,t,n){var i,r,s;if(this._weekdaysParseExact)return Qt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function qt(e){if(!this.isValid())return null!=e?this:NaN;var t=Je(this,"Day");return null!=e?(e=Tt(e,this.localeData()),this.add(e-t,"d")):t}function Yt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Gt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ot(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Kt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Vt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Dt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function zt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Vt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Mt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Vt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ht),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Vt(){function e(e,t){return t.length-e.length}var t,n,i,r,s,o=[],a=[],c=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=Be(this.weekdaysMin(n,"")),r=Be(this.weekdaysShort(n,"")),s=Be(this.weekdays(n,"")),o.push(i),a.push(r),c.push(s),l.push(i),l.push(r),l.push(s);o.sort(e),a.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Jt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function en(e,t){F(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Jt),F("k",["kk",2],0,Zt),F("hmm",0,0,function(){return""+Jt.apply(this)+P(this.minutes(),2)}),F("hmmss",0,0,function(){return""+Jt.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)}),F("Hmm",0,0,function(){return""+this.hours()+P(this.minutes(),2)}),F("Hmmss",0,0,function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)}),en("a",!0),en("A",!1),ke("a",tn),ke("A",tn),ke("H",he,Ie),ke("h",he,Se),ke("k",he,Se),ke("HH",he,le),ke("hh",he,le),ke("kk",he,le),ke("hmm",fe),ke("hmmss",me),ke("Hmm",fe),ke("Hmmss",me),Le(["H","HH"],je),Le(["k","kk"],function(e,t,n){var i=Oe(e);t[je]=24===i?0:i}),Le(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Le(["h","hh"],function(e,t,n){t[je]=Oe(e),g(n).bigHour=!0}),Le("hmm",function(e,t,n){var i=e.length-2;t[je]=Oe(e.substr(0,i)),t[$e]=Oe(e.substr(i)),g(n).bigHour=!0}),Le("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[je]=Oe(e.substr(0,i)),t[$e]=Oe(e.substr(i,2)),t[Qe]=Oe(e.substr(r)),g(n).bigHour=!0}),Le("Hmm",function(e,t,n){var i=e.length-2;t[je]=Oe(e.substr(0,i)),t[$e]=Oe(e.substr(i))}),Le("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[je]=Oe(e.substr(0,i)),t[$e]=Oe(e.substr(i,2)),t[Qe]=Oe(e.substr(r))});var rn=/[ap]\.?m?\.?/i,sn=Ve("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,cn={calendar:N,longDateFormat:q,invalidDate:G,ordinal:X,dayOfMonthOrdinalParse:V,relativeTime:Z,months:rt,monthsShort:st,week:It,weekdays:Lt,weekdaysMin:Ut,weekdaysShort:Pt,meridiemParse:rn},ln={},un={};function pn(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function hn(e){for(var t,n,i,r,s=0;s<e.length;){for(t=(r=dn(e[s]).split("-")).length,n=(n=dn(e[s+1]))?n.split("-"):null;t>0;){if(i=mn(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&pn(r,n)>=t-1)break;t--}s++}return an}function fn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function mn(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&fn(t))try{n=an._abbr,z("./locale/"+t),gn(n)}catch(e){ln[t]=null}return ln[t]}function gn(e,t){var n;return e&&((n=l(t)?yn(e):_n(e,t))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function _n(e,t){if(null!==t){var n,i=cn;if(t.abbr=e,null!=ln[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])i=ln[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;i=n._config}return ln[e]=new O(T(i,t)),un[e]&&un[e].forEach(function(e){_n(e.name,e.config)}),gn(e),ln[e]}return delete ln[e],null}function bn(e,t){if(null!=t){var n,i,r=cn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(T(ln[e]._config,t)):(null!=(i=mn(e))&&(r=i._config),t=T(r,t),null==i&&(t.abbr=e),(n=new O(t)).parentLocale=ln[e],ln[e]=n),gn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===gn()&&gn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function yn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!s(e)){if(t=mn(e))return t;e=[e]}return hn(e)}function vn(){return I(ln)}function An(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[He]<0||n[He]>11?He:n[Fe]<1||n[Fe]>it(n[Me],n[He])?Fe:n[je]<0||n[je]>24||24===n[je]&&(0!==n[$e]||0!==n[Qe]||0!==n[We])?je:n[$e]<0||n[$e]>59?$e:n[Qe]<0||n[Qe]>59?Qe:n[We]<0||n[We]>999?We:-1,g(e)._overflowDayOfYear&&(t<Me||t>Fe)&&(t=Fe),g(e)._overflowWeeks&&-1===t&&(t=qe),g(e)._overflowWeekday&&-1===t&&(t=Ye),g(e).overflow=t),e}var En=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],In=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],kn=/^\/?Date\((-?\d+)/i,Cn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Rn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Bn(e){var t,n,i,r,s,o,a=e._i,c=En.exec(a)||wn.exec(a),l=Sn.length,u=In.length;if(c){for(g(e).iso=!0,t=0,n=l;t<n;t++)if(Sn[t][1].exec(c[1])){r=Sn[t][0],i=!1!==Sn[t][2];break}if(null==r)return void(e._isValid=!1);if(c[3]){for(t=0,n=u;t<n;t++)if(In[t][1].exec(c[3])){s=(c[2]||" ")+In[t][0];break}if(null==s)return void(e._isValid=!1)}if(!i&&null!=s)return void(e._isValid=!1);if(c[4]){if(!xn.exec(c[4]))return void(e._isValid=!1);o="Z"}e._f=r+(s||"")+(o||""),$n(e)}else e._isValid=!1}function Tn(e,t,n,i,r,s){var o=[On(e),st.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return s&&o.push(parseInt(s,10)),o}function On(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Nn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ln(e,t,n){return!e||Pt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Pn(e,t,n){if(e)return Rn[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}function Un(e){var t,n=Cn.exec(Nn(e._i));if(n){if(t=Tn(n[4],n[3],n[2],n[5],n[6],n[7]),!Ln(n[1],t,e))return;e._a=t,e._tzm=Pn(n[8],n[9],n[10]),e._d=vt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Dn(e){var t=kn.exec(e._i);null===t?(Bn(e),!1===e._isValid&&(delete e._isValid,Un(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Mn(e,t,n){return null!=e?e:null!=t?t:n}function Hn(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Fn(e){var t,n,i,r,s,o=[];if(!e._d){for(i=Hn(e),e._w&&null==e._a[Fe]&&null==e._a[He]&&jn(e),null!=e._dayOfYear&&(s=Mn(e._a[Me],i[Me]),(e._dayOfYear>Ge(s)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=vt(s,0,e._dayOfYear),e._a[He]=n.getUTCMonth(),e._a[Fe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[je]&&0===e._a[$e]&&0===e._a[Qe]&&0===e._a[We]&&(e._nextDay=!0,e._a[je]=0),e._d=(e._useUTC?vt:yt).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[je]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function jn(e){var t,n,i,r,s,o,a,c,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(s=1,o=4,n=Mn(t.GG,e._a[Me],wt(Xn(),1,4).year),i=Mn(t.W,1),((r=Mn(t.E,1))<1||r>7)&&(c=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,l=wt(Xn(),s,o),n=Mn(t.gg,e._a[Me],l.year),i=Mn(t.w,l.week),null!=t.d?((r=t.d)<0||r>6)&&(c=!0):null!=t.e?(r=t.e+s,(t.e<0||t.e>6)&&(c=!0)):r=s),i<1||i>xt(n,s,o)?g(e)._overflowWeeks=!0:null!=c?g(e)._overflowWeekday=!0:(a=Et(n,i,r,s,o),e._a[Me]=a.year,e._dayOfYear=a.dayOfYear)}function $n(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],g(e).empty=!0;var t,n,r,s,o,a,c,l=""+e._i,u=l.length,p=0;for(c=(r=W(e._f,e._locale).match(U)||[]).length,t=0;t<c;t++)s=r[t],(n=(l.match(Ce(s,e))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&g(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),p+=n.length),H[s]?(n?g(e).empty=!1:g(e).unusedTokens.push(s),Ue(s,n,e)):e._strict&&!n&&g(e).unusedTokens.push(s);g(e).charsLeftOver=u-p,l.length>0&&g(e).unusedInput.push(l),e._a[je]<=12&&!0===g(e).bigHour&&e._a[je]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[je]=Qn(e._locale,e._a[je],e._meridiem),null!==(a=g(e).era)&&(e._a[Me]=e._locale.erasConvertYear(a,e._a[Me])),Fn(e),An(e)}else Un(e);else Bn(e)}function Qn(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function Wn(e){var t,n,i,r,s,o,a=!1,c=e._f.length;if(0===c)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<c;r++)s=0,o=!1,t=A({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],$n(t),_(t)&&(o=!0),s+=g(t).charsLeftOver,s+=10*g(t).unusedTokens.length,g(t).score=s,a?s<i&&(i=s,n=t):(null==i||s<i||o)&&(i=s,n=t,o&&(a=!0));h(e,n||t)}function qn(e){if(!e._d){var t=re(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Fn(e)}}function Yn(e){var t=new E(An(Gn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Gn(e){var t=e._i,n=e._f;return e._locale=e._locale||yn(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new E(An(t)):(p(t)?e._d=t:s(n)?Wn(e):n?$n(e):Kn(e),_(e)||(e._d=null),e))}function Kn(e){var t=e._i;l(t)?e._d=new Date(i.now()):p(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Dn(e):s(t)?(e._a=d(t.slice(0),function(e){return parseInt(e,10)}),Fn(e)):o(t)?qn(e):u(t)?e._d=new Date(t):i.createFromInputFallback(e)}function zn(e,t,n,i,r){var a={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(e)&&c(e)||s(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=e,a._f=t,a._strict=i,Yn(a)}function Xn(e,t,n,i){return zn(e,t,n,i,!1)}i.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Vn=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Xn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()}),Jn=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Xn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()});function Zn(e,t){var n,i;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Xn();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function ei(){return Zn("isBefore",[].slice.call(arguments,0))}function ti(){return Zn("isAfter",[].slice.call(arguments,0))}var ni=function(){return Date.now?Date.now():+new Date},ii=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ri(e){var t,n,i=!1,r=ii.length;for(t in e)if(a(e,t)&&(-1===Ke.call(ii,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[ii[n]]){if(i)return!1;parseFloat(e[ii[n]])!==Oe(e[ii[n]])&&(i=!0)}return!0}function si(){return this._isValid}function oi(){return Ri(NaN)}function ai(e){var t=re(e),n=t.year||0,i=t.quarter||0,r=t.month||0,s=t.week||t.isoWeek||0,o=t.day||0,a=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=ri(t),this._milliseconds=+u+1e3*l+6e4*c+1e3*a*60*60,this._days=+o+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=yn(),this._bubble()}function ci(e){return e instanceof ai}function li(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ui(e,t,n){var i,r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),o=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&Oe(e[i])!==Oe(t[i]))&&o++;return o+s}function pi(e,t){F(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+P(~~(e/60),2)+t+P(~~e%60,2)})}pi("Z",":"),pi("ZZ",""),ke("Z",Ee),ke("ZZ",Ee),Le(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=hi(Ee,e)});var di=/([\+\-]|\d\d)/gi;function hi(e,t){var n,i,r=(t||"").match(e);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(di)||["-",0,0])[1]+Oe(n[2]))?0:"+"===n[0]?i:-i}function fi(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||p(e)?e.valueOf():Xn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Xn(e).local()}function mi(e){return-Math.round(e._d.getTimezoneOffset())}function gi(e,t,n){var r,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=hi(Ee,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=mi(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==e&&(!t||this._changeInProgress?Li(this,Ri(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:mi(this)}function _i(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function bi(e){return this.utcOffset(0,e)}function yi(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mi(this),"m")),this}function vi(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=hi(Ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ai(e){return!!this.isValid()&&(e=e?Xn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Ei(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wi(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return A(t,this),(t=Gn(t))._a?(e=t._isUTC?f(t._a):Xn(t._a),this._isDSTShifted=this.isValid()&&ui(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xi(){return!!this.isValid()&&!this._isUTC}function Si(){return!!this.isValid()&&this._isUTC}function Ii(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var ki=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ci=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ri(e,t){var n,i,r,s=e,o=null;return ci(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(o=ki.exec(e))?(n="-"===o[1]?-1:1,s={y:0,d:Oe(o[Fe])*n,h:Oe(o[je])*n,m:Oe(o[$e])*n,s:Oe(o[Qe])*n,ms:Oe(li(1e3*o[We]))*n}):(o=Ci.exec(e))?(n="-"===o[1]?-1:1,s={y:Bi(o[2],n),M:Bi(o[3],n),w:Bi(o[4],n),d:Bi(o[5],n),h:Bi(o[6],n),m:Bi(o[7],n),s:Bi(o[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(r=Oi(Xn(s.from),Xn(s.to)),(s={}).ms=r.milliseconds,s.M=r.months),i=new ai(s),ci(e)&&a(e,"_locale")&&(i._locale=e._locale),ci(e)&&a(e,"_isValid")&&(i._isValid=e._isValid),i}function Bi(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ti(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Oi(e,t){var n;return e.isValid()&&t.isValid()?(t=fi(t,e),e.isBefore(t)?n=Ti(e,t):((n=Ti(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ni(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Li(this,Ri(n,i),e),this}}function Li(e,t,n,r){var s=t._milliseconds,o=li(t._days),a=li(t._months);e.isValid()&&(r=null==r||r,a&&ht(e,Je(e,"Month")+a*n),o&&Ze(e,"Date",Je(e,"Date")+o*n),s&&e._d.setTime(e._d.valueOf()+s*n),r&&i.updateOffset(e,o||a))}Ri.fn=ai.prototype,Ri.invalid=oi;var Pi=Ni(1,"add"),Ui=Ni(-1,"subtract");function Di(e){return"string"==typeof e||e instanceof String}function Mi(e){return w(e)||p(e)||Di(e)||u(e)||Fi(e)||Hi(e)||null==e}function Hi(e){var t,n,i=o(e)&&!c(e),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=s.length;for(t=0;t<l;t+=1)n=s[t],r=r||a(e,n);return i&&r}function Fi(e){var t=s(e),n=!1;return t&&(n=0===e.filter(function(t){return!u(t)&&Di(e)}).length),t&&n}function ji(e){var t,n,i=o(e)&&!c(e),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<s.length;t+=1)n=s[t],r=r||a(e,n);return i&&r}function $i(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Qi(e,t){1===arguments.length&&(arguments[0]?Mi(arguments[0])?(e=arguments[0],t=void 0):ji(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Xn(),r=fi(n,this).startOf("day"),s=i.calendarFormat(this,r)||"sameElse",o=t&&(R(t[s])?t[s].call(this,n):t[s]);return this.format(o||this.localeData().calendar(s,this,Xn(n)))}function Wi(){return new E(this)}function qi(e,t){var n=w(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Yi(e,t){var n=w(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Gi(e,t,n,i){var r=w(e)?e:Xn(e),s=w(t)?t:Xn(t);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(s,n):!this.isAfter(s,n))}function Ki(e,t){var n,i=w(e)?e:Xn(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function zi(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Xi(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Vi(e,t,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=fi(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=ie(t)){case"year":s=Ji(this,i)/12;break;case"month":s=Ji(this,i);break;case"quarter":s=Ji(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return n?s:Te(s)}function Ji(e,t){if(e.date()<t.date())return-Ji(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function Zi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function er(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Q(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):R(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Q(n,"Z")):Q(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function tr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i,r="moment",s="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=s+'[")]',this.format(e+t+n+i)}function nr(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=Q(this,e);return this.localeData().postformat(t)}function ir(e,t){return this.isValid()&&(w(e)&&e.isValid()||Xn(e).isValid())?Ri({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rr(e){return this.from(Xn(),e)}function sr(e,t){return this.isValid()&&(w(e)&&e.isValid()||Xn(e).isValid())?Ri({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function or(e){return this.to(Xn(),e)}function ar(e){var t;return void 0===e?this._locale._abbr:(null!=(t=yn(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var cr=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function lr(){return this._locale}var ur=1e3,pr=60*ur,dr=60*pr,hr=3506328*dr;function fr(e,t){return(e%t+t)%t}function mr(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hr:new Date(e,t,n).valueOf()}function gr(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hr:Date.UTC(e,t,n)}function _r(e){var t,n;if(void 0===(e=ie(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gr:mr,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fr(t+(this._isUTC?0:this.utcOffset()*pr),dr);break;case"minute":t=this._d.valueOf(),t-=fr(t,pr);break;case"second":t=this._d.valueOf(),t-=fr(t,ur)}return this._d.setTime(t),i.updateOffset(this,!0),this}function br(e){var t,n;if(void 0===(e=ie(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gr:mr,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=dr-fr(t+(this._isUTC?0:this.utcOffset()*pr),dr)-1;break;case"minute":t=this._d.valueOf(),t+=pr-fr(t,pr)-1;break;case"second":t=this._d.valueOf(),t+=ur-fr(t,ur)-1}return this._d.setTime(t),i.updateOffset(this,!0),this}function yr(){return this._d.valueOf()-6e4*(this._offset||0)}function vr(){return Math.floor(this.valueOf()/1e3)}function Ar(){return new Date(this.valueOf())}function Er(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wr(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function xr(){return this.isValid()?this.toISOString():null}function Sr(){return _(this)}function Ir(){return h({},g(this))}function kr(){return g(this).overflow}function Cr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Rr(e,t){var n,r,s,o=this._eras||yn("en")._eras;for(n=0,r=o.length;n<r;++n)switch("string"==typeof o[n].since&&(s=i(o[n].since).startOf("day"),o[n].since=s.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":s=i(o[n].until).startOf("day").valueOf(),o[n].until=s.valueOf()}return o}function Br(e,t,n){var i,r,s,o,a,c=this.eras();for(e=e.toUpperCase(),i=0,r=c.length;i<r;++i)if(s=c[i].name.toUpperCase(),o=c[i].abbr.toUpperCase(),a=c[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return c[i];break;case"NNNN":if(s===e)return c[i];break;case"NNNNN":if(a===e)return c[i]}else if([s,o,a].indexOf(e)>=0)return c[i]}function Tr(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n}function Or(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""}function Nr(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""}function Lr(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""}function Pr(){var e,t,n,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=s[e].since<=s[e].until?1:-1,r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return(this.year()-i(s[e].since).year())*n+s[e].offset;return this.year()}function Ur(e){return a(this,"_erasNameRegex")||Qr.call(this),e?this._erasNameRegex:this._erasRegex}function Dr(e){return a(this,"_erasAbbrRegex")||Qr.call(this),e?this._erasAbbrRegex:this._erasRegex}function Mr(e){return a(this,"_erasNarrowRegex")||Qr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Hr(e,t){return t.erasAbbrRegex(e)}function Fr(e,t){return t.erasNameRegex(e)}function jr(e,t){return t.erasNarrowRegex(e)}function $r(e,t){return t._eraYearOrdinalRegex||ye}function Qr(){var e,t,n,i,r,s=[],o=[],a=[],c=[],l=this.eras();for(e=0,t=l.length;e<t;++e)n=Be(l[e].name),i=Be(l[e].abbr),r=Be(l[e].narrow),o.push(n),s.push(i),a.push(r),c.push(n),c.push(i),c.push(r);this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Wr(e,t){F(0,[e,e.length],0,t)}function qr(e){return Vr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Yr(e){return Vr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Gr(){return xt(this.year(),1,4)}function Kr(){return xt(this.isoWeekYear(),1,4)}function zr(){var e=this.localeData()._week;return xt(this.year(),e.dow,e.doy)}function Xr(){var e=this.localeData()._week;return xt(this.weekYear(),e.dow,e.doy)}function Vr(e,t,n,i,r){var s;return null==e?wt(this,i,r).year:(t>(s=xt(e,i,r))&&(t=s),Jr.call(this,e,t,n,i,r))}function Jr(e,t,n,i,r){var s=Et(e,t,n,i,r),o=vt(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Zr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),ke("N",Hr),ke("NN",Hr),ke("NNN",Hr),ke("NNNN",Fr),ke("NNNNN",jr),Le(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?g(n).era=r:g(n).invalidEra=e}),ke("y",ye),ke("yy",ye),ke("yyy",ye),ke("yyyy",ye),ke("yo",$r),Le(["y","yy","yyy","yyyy"],Me),Le(["yo"],function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Me]=n._locale.eraYearOrdinalParse(e,r):t[Me]=parseInt(e,10)}),F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Wr("gggg","weekYear"),Wr("ggggg","weekYear"),Wr("GGGG","isoWeekYear"),Wr("GGGGG","isoWeekYear"),ke("G",ve),ke("g",ve),ke("GG",he,le),ke("gg",he,le),ke("GGGG",_e,pe),ke("gggg",_e,pe),ke("GGGGG",be,de),ke("ggggg",be,de),Pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=Oe(e)}),Pe(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),F("Q",0,"Qo","quarter"),ke("Q",ce),Le("Q",function(e,t){t[He]=3*(Oe(e)-1)}),F("D",["DD",2],"Do","date"),ke("D",he,Se),ke("DD",he,le),ke("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Le(["D","DD"],Fe),Le("Do",function(e,t){t[Fe]=Oe(e.match(he)[0])});var es=Ve("Date",!0);function ts(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}F("DDD",["DDDD",3],"DDDo","dayOfYear"),ke("DDD",ge),ke("DDDD",ue),Le(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Oe(e)}),F("m",["mm",2],0,"minute"),ke("m",he,Ie),ke("mm",he,le),Le(["m","mm"],$e);var ns=Ve("Minutes",!1);F("s",["ss",2],0,"second"),ke("s",he,Ie),ke("ss",he,le),Le(["s","ss"],Qe);var is,rs,ss=Ve("Seconds",!1);for(F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,function(){return 10*this.millisecond()}),F(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),F(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),F(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),F(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),F(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ke("S",ge,ce),ke("SS",ge,le),ke("SSS",ge,ue),is="SSSS";is.length<=9;is+="S")ke(is,ye);function os(e,t){t[We]=Oe(1e3*("0."+e))}for(is="S";is.length<=9;is+="S")Le(is,os);function as(){return this._isUTC?"UTC":""}function cs(){return this._isUTC?"Coordinated Universal Time":""}rs=Ve("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var ls=E.prototype;function us(e){return Xn(1e3*e)}function ps(){return Xn.apply(null,arguments).parseZone()}function ds(e){return e}ls.add=Pi,ls.calendar=Qi,ls.clone=Wi,ls.diff=Vi,ls.endOf=br,ls.format=nr,ls.from=ir,ls.fromNow=rr,ls.to=sr,ls.toNow=or,ls.get=et,ls.invalidAt=kr,ls.isAfter=qi,ls.isBefore=Yi,ls.isBetween=Gi,ls.isSame=Ki,ls.isSameOrAfter=zi,ls.isSameOrBefore=Xi,ls.isValid=Sr,ls.lang=cr,ls.locale=ar,ls.localeData=lr,ls.max=Jn,ls.min=Vn,ls.parsingFlags=Ir,ls.set=tt,ls.startOf=_r,ls.subtract=Ui,ls.toArray=Er,ls.toObject=wr,ls.toDate=Ar,ls.toISOString=er,ls.inspect=tr,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ls[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ls.toJSON=xr,ls.toString=Zi,ls.unix=vr,ls.valueOf=yr,ls.creationData=Cr,ls.eraName=Or,ls.eraNarrow=Nr,ls.eraAbbr=Lr,ls.eraYear=Pr,ls.year=ze,ls.isLeapYear=Xe,ls.weekYear=qr,ls.isoWeekYear=Yr,ls.quarter=ls.quarters=Zr,ls.month=ft,ls.daysInMonth=mt,ls.week=ls.weeks=Rt,ls.isoWeek=ls.isoWeeks=Bt,ls.weeksInYear=zr,ls.weeksInWeekYear=Xr,ls.isoWeeksInYear=Gr,ls.isoWeeksInISOWeekYear=Kr,ls.date=es,ls.day=ls.days=qt,ls.weekday=Yt,ls.isoWeekday=Gt,ls.dayOfYear=ts,ls.hour=ls.hours=sn,ls.minute=ls.minutes=ns,ls.second=ls.seconds=ss,ls.millisecond=ls.milliseconds=rs,ls.utcOffset=gi,ls.utc=bi,ls.local=yi,ls.parseZone=vi,ls.hasAlignedHourOffset=Ai,ls.isDST=Ei,ls.isLocal=xi,ls.isUtcOffset=Si,ls.isUtc=Ii,ls.isUTC=Ii,ls.zoneAbbr=as,ls.zoneName=cs,ls.dates=S("dates accessor is deprecated. Use date instead.",es),ls.months=S("months accessor is deprecated. Use month instead",ft),ls.years=S("years accessor is deprecated. Use year instead",ze),ls.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",_i),ls.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wi);var hs=O.prototype;function fs(e,t,n,i){var r=yn(),s=f().set(i,t);return r[n](s,e)}function ms(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return fs(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=fs(e,i,n,"month");return r}function gs(e,t,n,i){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var r,s=yn(),o=e?s._week.dow:0,a=[];if(null!=n)return fs(t,(n+o)%7,i,"day");for(r=0;r<7;r++)a[r]=fs(t,(r+o)%7,i,"day");return a}function _s(e,t){return ms(e,t,"months")}function bs(e,t){return ms(e,t,"monthsShort")}function ys(e,t,n){return gs(e,t,n,"weekdays")}function vs(e,t,n){return gs(e,t,n,"weekdaysShort")}function As(e,t,n){return gs(e,t,n,"weekdaysMin")}hs.calendar=L,hs.longDateFormat=Y,hs.invalidDate=K,hs.ordinal=J,hs.preparse=ds,hs.postformat=ds,hs.relativeTime=ee,hs.pastFuture=te,hs.set=B,hs.eras=Rr,hs.erasParse=Br,hs.erasConvertYear=Tr,hs.erasAbbrRegex=Dr,hs.erasNameRegex=Ur,hs.erasNarrowRegex=Mr,hs.months=lt,hs.monthsShort=ut,hs.monthsParse=dt,hs.monthsRegex=_t,hs.monthsShortRegex=gt,hs.week=St,hs.firstDayOfYear=Ct,hs.firstDayOfWeek=kt,hs.weekdays=Ft,hs.weekdaysMin=$t,hs.weekdaysShort=jt,hs.weekdaysParse=Wt,hs.weekdaysRegex=Kt,hs.weekdaysShortRegex=zt,hs.weekdaysMinRegex=Xt,hs.isPM=nn,hs.meridiem=on,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Oe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=S("moment.lang is deprecated. Use moment.locale instead.",gn),i.langData=S("moment.langData is deprecated. Use moment.localeData instead.",yn);var Es=Math.abs;function ws(){var e=this._data;return this._milliseconds=Es(this._milliseconds),this._days=Es(this._days),this._months=Es(this._months),e.milliseconds=Es(e.milliseconds),e.seconds=Es(e.seconds),e.minutes=Es(e.minutes),e.hours=Es(e.hours),e.months=Es(e.months),e.years=Es(e.years),this}function xs(e,t,n,i){var r=Ri(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Ss(e,t){return xs(this,e,t,1)}function Is(e,t){return xs(this,e,t,-1)}function ks(e){return e<0?Math.floor(e):Math.ceil(e)}function Cs(){var e,t,n,i,r,s=this._milliseconds,o=this._days,a=this._months,c=this._data;return s>=0&&o>=0&&a>=0||s<=0&&o<=0&&a<=0||(s+=864e5*ks(Bs(a)+o),o=0,a=0),c.milliseconds=s%1e3,e=Te(s/1e3),c.seconds=e%60,t=Te(e/60),c.minutes=t%60,n=Te(t/60),c.hours=n%24,o+=Te(n/24),a+=r=Te(Rs(o)),o-=ks(Bs(r)),i=Te(a/12),a%=12,c.days=o,c.months=a,c.years=i,this}function Rs(e){return 4800*e/146097}function Bs(e){return 146097*e/4800}function Ts(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=ie(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Rs(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Bs(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function Os(e){return function(){return this.as(e)}}var Ns=Os("ms"),Ls=Os("s"),Ps=Os("m"),Us=Os("h"),Ds=Os("d"),Ms=Os("w"),Hs=Os("M"),Fs=Os("Q"),js=Os("y"),$s=Ns;function Qs(){return Ri(this)}function Ws(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function qs(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ys=qs("milliseconds"),Gs=qs("seconds"),Ks=qs("minutes"),zs=qs("hours"),Xs=qs("days"),Vs=qs("months"),Js=qs("years");function Zs(){return Te(this.days()/7)}var eo=Math.round,to={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function io(e,t,n,i){var r=Ri(e).abs(),s=eo(r.as("s")),o=eo(r.as("m")),a=eo(r.as("h")),c=eo(r.as("d")),l=eo(r.as("M")),u=eo(r.as("w")),p=eo(r.as("y")),d=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||o<=1&&["m"]||o<n.m&&["mm",o]||a<=1&&["h"]||a<n.h&&["hh",a]||c<=1&&["d"]||c<n.d&&["dd",c];return null!=n.w&&(d=d||u<=1&&["w"]||u<n.w&&["ww",u]),(d=d||l<=1&&["M"]||l<n.M&&["MM",l]||p<=1&&["y"]||["yy",p])[2]=t,d[3]=+e>0,d[4]=i,no.apply(null,d)}function ro(e){return void 0===e?eo:"function"==typeof e&&(eo=e,!0)}function so(e,t){return void 0!==to[e]&&(void 0===t?to[e]:(to[e]=t,"s"===e&&(to.ss=t-1),!0))}function oo(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=to;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(s=Object.assign({},to,t),null!=t.s&&null==t.ss&&(s.ss=t.s-1)),i=io(this,!r,s,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}var ao=Math.abs;function co(e){return(e>0)-(e<0)||+e}function lo(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,s,o,a,c=ao(this._milliseconds)/1e3,l=ao(this._days),u=ao(this._months),p=this.asSeconds();return p?(e=Te(c/60),t=Te(e/60),c%=60,e%=60,n=Te(u/12),u%=12,i=c?c.toFixed(3).replace(/\.?0+$/,""):"",r=p<0?"-":"",s=co(this._months)!==co(p)?"-":"",o=co(this._days)!==co(p)?"-":"",a=co(this._milliseconds)!==co(p)?"-":"",r+"P"+(n?s+n+"Y":"")+(u?s+u+"M":"")+(l?o+l+"D":"")+(t||e||c?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(c?a+i+"S":"")):"P0D"}var uo=ai.prototype;return uo.isValid=si,uo.abs=ws,uo.add=Ss,uo.subtract=Is,uo.as=Ts,uo.asMilliseconds=Ns,uo.asSeconds=Ls,uo.asMinutes=Ps,uo.asHours=Us,uo.asDays=Ds,uo.asWeeks=Ms,uo.asMonths=Hs,uo.asQuarters=Fs,uo.asYears=js,uo.valueOf=$s,uo._bubble=Cs,uo.clone=Qs,uo.get=Ws,uo.milliseconds=Ys,uo.seconds=Gs,uo.minutes=Ks,uo.hours=zs,uo.days=Xs,uo.weeks=Zs,uo.months=Vs,uo.years=Js,uo.humanize=oo,uo.toISOString=lo,uo.toString=lo,uo.toJSON=lo,uo.locale=ar,uo.localeData=lr,uo.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lo),uo.lang=cr,F("X",0,0,"unix"),F("x",0,0,"valueOf"),ke("x",ve),ke("X",we),Le("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),Le("x",function(e,t,n){n._d=new Date(Oe(e))}),i.version="2.30.1",r(Xn),i.fn=ls,i.min=ei,i.max=ti,i.now=ni,i.utc=f,i.unix=us,i.months=_s,i.isDate=p,i.locale=gn,i.invalid=b,i.duration=Ri,i.isMoment=w,i.weekdays=ys,i.parseZone=ps,i.localeData=yn,i.isDuration=ci,i.monthsShort=bs,i.weekdaysMin=As,i.defineLocale=_n,i.updateLocale=bn,i.locales=vn,i.weekdaysShort=vs,i.normalizeUnits=ie,i.relativeTimeRounding=ro,i.relativeTimeThreshold=so,i.calendarFormat=$i,i.prototype=ls,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}(Jp);var Zp,ed,td,nd,id=x(Jp.exports),rd=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},sd={"{":"}","(":")","[":"]"},od=function(e){if("!"===e[0])return!0;for(var t=0,n=-2,i=-2,r=-2,s=-2,o=-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===o||o>i)return!0;if(-1===(o=e.indexOf("\\",t))||o>i)return!0}if(-1!==r&&"{"===e[t]&&"}"!==e[t+1]&&(r=e.indexOf("}",t))>t&&(-1===(o=e.indexOf("\\",t))||o>r))return!0;if(-1!==s&&"("===e[t]&&"?"===e[t+1]&&/[:!=]/.test(e[t+2])&&")"!==e[t+3]&&(s=e.indexOf(")",t))>t&&(-1===(o=e.indexOf("\\",t))||o>s))return!0;if(-1!==n&&"("===e[t]&&"|"!==e[t+1]&&(n<t&&(n=e.indexOf("|",t)),-1!==n&&")"!==e[n+1]&&(s=e.indexOf(")",n))>n&&(-1===(o=e.indexOf("\\",n))||o>s)))return!0;if("\\"===e[t]){var a=e[t+1];t+=2;var c=sd[a];if(c){var l=e.indexOf(c,t);-1!==l&&(t=l+1)}if("!"===e[t])return!0}else t++}return!1},ad=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=sd[n];if(i){var r=e.indexOf(i,t);-1!==r&&(t=r+1)}if("!"===e[t])return!0}else t++}return!1},cd={exports:{}};var ld=b;void 0!==ld.homedir?cd.exports=ld.homedir:cd.exports=function(){if(nd)return td;nd=1;var e=r,t=function(){if(ed)return Zp;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 ed=1,Zp=function(t){if("string"!=typeof t)throw new Error("expected a string");return t.split("\n").map(e).filter(Boolean)}}();return td=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 n=function(t){try{return e.readFileSync(t,"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}(t(n),"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}}();var ud=cd.exports,pd=ud,dd=i,hd=function(e){var t=pd();return 126===e.charCodeAt(0)?43===e.charCodeAt(1)?dd.join(process.cwd(),e.slice(2)):t?dd.join(t,e.slice(1)):e:e},fd={exports:{}},md={exports:{}},gd={};gd.parse=gd.decode=function(e){var t={},n=t,i=null,r=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return e.split(/[\r\n]+/g).forEach(function(e,s,o){if(e&&!e.match(/^\s*[;#]/)){var a=e.match(r);if(a){if(void 0!==a[1])return"__proto__"===(i=Ad(a[1]))?void(n={}):void(n=t[i]=t[i]||{});var c=Ad(a[2]);if("__proto__"!==c){var l=!a[3]||Ad(a[4]);switch(l){case"true":case"false":case"null":l=JSON.parse(l)}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(l):n[c]=l}}}}),Object.keys(t).filter(function(e,n,i){if(!t[e]||"object"!=typeof t[e]||Array.isArray(t[e]))return!1;var r=bd(e),s=t,o=r.pop(),a=o.replace(/\\\./g,".");return r.forEach(function(e,t,n){"__proto__"!==e&&(s[e]&&"object"==typeof s[e]||(s[e]={}),s=s[e])}),(s!==t||a!==o)&&(s[a]=t[e],!0)}).forEach(function(e,n,i){delete t[e]}),t},gd.stringify=gd.encode=function e(t,n){var i=[],r="";"string"==typeof n?n={section:n,whitespace:!1}:(n=n||{}).whitespace=!0===n.whitespace;var s=n.whitespace?" = ":"=";Object.keys(t).forEach(function(e,n,o){var a=t[e];a&&Array.isArray(a)?a.forEach(function(t){r+=vd(e+"[]")+s+vd(t)+"\n"}):a&&"object"==typeof a?i.push(e):r+=vd(e)+s+vd(a)+_d}),n.section&&r.length&&(r="["+vd(n.section)+"]"+_d+r);return i.forEach(function(i,s,o){var a=bd(i).join("\\."),c=(n.section?n.section+".":"")+a,l=e(t[i],{section:c,whitespace:n.whitespace});r.length&&l.length&&(r+=_d),r+=l}),r},gd.safe=vd,gd.unsafe=Ad;var _d="undefined"!=typeof process&&"win32"===process.platform?"\r\n":"\n";function bd(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 yd(e){return'"'===e.charAt(0)&&'"'===e.slice(-1)||"'"===e.charAt(0)&&"'"===e.slice(-1)}function vd(e){return"string"!=typeof e||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&yd(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function Ad(e,t){if(!yd(e=(e||"").trim())){for(var n=!1,i="",r=0,s=e.length;r<s;r++){var o=e.charAt(r);if(n)-1!=="\\;#".indexOf(o)?i+=o:i+="\\"+o,n=!1;else{if(-1!==";#".indexOf(o))break;"\\"===o?n=!0:i+=o}}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 Ed={exports:{}};!function(e,t){!function(n){t?e.exports=n():"undefined"!=typeof window?window.isWindows=n():void 0!==w?w.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))}})}(Ed,Ed.exports);var wd,xd,Sd,Id,kd,Cd=Ed.exports;kd="win32"===process.platform||w.TESTING_WINDOWS?function(){if(xd)return wd;xd=1,wd=n,n.sync=function(n,i){return t(e.statSync(n),n,i)};var e=r;function t(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 n(n,i,r){e.stat(n,function(e,s){r(e,!e&&t(s,n,i))})}return wd}():function(){if(Id)return Sd;Id=1,Sd=t,t.sync=function(t,i){return n(e.statSync(t),i)};var e=r;function t(t,i,r){e.stat(t,function(e,t){r(e,!e&&n(t,i))})}function n(e,t){return e.isFile()&&function(e,t){var n=e.mode,i=e.uid,r=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),o=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8);return n&parseInt("001",8)||n&c&&r===o||n&a&&i===s||n&(a|c)&&0===s}(e,t)}return Sd}();var Rd,Bd,Td=Od;function Od(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){Od(e,t||{},function(e,t){e?i(e):n(t)})})}kd(e,t||{},function(e,i){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,i=!1),n(e,i)})}Od.sync=function(e,t){try{return kd.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}},function(e){var t,n=r,s=i,o=hd,a=ud,c=gd;function l(){if(process.env.PREFIX)t=process.env.PREFIX;else{var e=a();if(e){var r=s.resolve(e,".npmrc");t=u(r)}if(!t){var c=function(){try{return n.realpathSync(function(){if(Bd)return Rd;Bd=1,Rd=a,a.sync=function(e,n){for(var i=o(e,n=n||{}),a=i.env,c=i.ext,l=i.extExe,u=[],p=0,d=a.length;p<d;p++){var h=a[p];'"'===h.charAt(0)&&'"'===h.slice(-1)&&(h=h.slice(1,-1));var f=t.join(h,e);!h&&/^\.[\\\/]/.test(e)&&(f=e.slice(0,2)+f);for(var m=0,g=c.length;m<g;m++){var _=f+c[m];try{if(r.sync(_,{pathExt:l})){if(!n.all)return _;u.push(_)}}catch(e){}}}if(n.all&&u.length)return u;if(n.nothrow)return null;throw s(e)};var e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=i,n=e?";":":",r=Td;function s(e){var t=new Error("not found: "+e);return t.code="ENOENT",t}function o(t,i){var r=i.colon||n,s=i.path||process.env.PATH||"",o=[""];s=s.split(r);var a="";return e&&(s.unshift(process.cwd()),o=(a=i.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(r),-1!==t.indexOf(".")&&""!==o[0]&&o.unshift("")),(t.match(/\//)||e&&t.match(/\\/))&&(s=[""]),{env:s,ext:o,extExe:a}}function a(e,n,i){"function"==typeof n&&(i=n,n={});var a=o(e,n),c=a.env,l=a.ext,u=a.extExe,p=[];!function o(a,d){if(a===d)return n.all&&p.length?i(null,p):i(s(e));var h=c[a];'"'===h.charAt(0)&&'"'===h.slice(-1)&&(h=h.slice(1,-1));var f=t.join(h,e);!h&&/^\.[\\\/]/.test(e)&&(f=e.slice(0,2)+f),function e(t,s){if(t===s)return o(a+1,d);var c=l[t];r(f+c,{pathExt:u},function(r,o){if(!r&&o){if(!n.all)return i(null,f+c);p.push(f+c)}return e(t+1,s)})}(0,l.length)}(0,c.length)}return Rd}().sync("npm"))}catch(e){}return null}();if(c){var l=s.resolve(c,"..","..","npmrc");if(t=u(l)){var p=s.resolve(t,"etc","npmrc");t=u(p)||t}}t||function(){var e=Cd;e()?t=process.env.APPDATA?s.join(process.env.APPDATA,"npm"):s.dirname(process.execPath):(t=s.dirname(s.dirname(process.execPath)),process.env.DESTDIR&&(t=s.join(process.env.DESTDIR,t)))}()}}if(t)return o(t)}function u(e){try{var t=n.readFileSync(e,"utf-8"),i=c.parse(t);if(i.prefix)return i.prefix}catch(e){}return null}Object.defineProperty(e,"exports",{enumerable:!0,get:function(){return t||(t=l())}})}(md);var Nd=md.exports;!function(e){var t,n=i,r=Nd,s=Cd;Object.defineProperty(e,"exports",{enumerable:!0,get:function(){return t||(t=s()?n.resolve(r,"node_modules"):n.resolve(r,"lib/node_modules"))}})}(fd);var Ld=i,Pd=hd,Ud=fd.exports,Dd=r,Md=i;var Hd={};!function(e){e.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),e.find=(e,t)=>e.nodes.find(e=>e.type===t),e.exceedsLimit=(t,n,i=1,r)=>!1!==r&&(!(!e.isInteger(t)||!e.isInteger(n))&&(Number(n)-Number(t))/Number(i)>=r),e.escapeNode=(e,t=0,n)=>{const 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)},e.encloseBrace=e=>"brace"===e.type&&(!(e.commas>>0+e.ranges|0)&&(e.invalid=!0,!0)),e.isInvalidBrace=e=>"brace"===e.type&&(!(!0!==e.invalid&&!e.dollar)||(e.commas>>0+e.ranges|0?(!0!==e.open||!0!==e.close)&&(e.invalid=!0,!0):(e.invalid=!0,!0))),e.isOpenOrClose=e=>"open"===e.type||"close"===e.type||(!0===e.open||!0===e.close),e.reduce=e=>e.reduce((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e),[]),e.flatten=(...e)=>{const t=[],n=e=>{for(let i=0;i<e.length;i++){const r=e[i];Array.isArray(r)?n(r):void 0!==r&&t.push(r)}return t};return n(e),t}}(Hd);const Fd=Hd;var jd=(e,t={})=>{const n=(e,i={})=>{const r=t.escapeInvalid&&Fd.isInvalidBrace(i),s=!0===e.invalid&&!0===t.escapeInvalid;let o="";if(e.value)return(r||s)&&Fd.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(const t of e.nodes)o+=n(t);return o};return n(e)};const $d=function(e){return"number"==typeof e?e-e===0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))},Qd=(e,t,n)=>{if(!1===$d(e))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===$d(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(Qd.cache.hasOwnProperty(r))return Qd.cache[r].result;let s=Math.min(e,t),o=Math.max(e,t);if(1===Math.abs(s-o)){let n=e+"|"+t;return i.capture?`(${n})`:!1===i.wrap?n:`(?:${n})`}let a=Zd(e)||Zd(t),c={min:e,max:t,a:s,b:o},l=[],u=[];if(a&&(c.isPadded=a,c.maxLen=String(c.max).length),s<0){u=qd(o<0?Math.abs(o):1,Math.abs(s),c,i),s=c.a=0}return o>=0&&(l=qd(s,o,c,i)),c.negatives=u,c.positives=l,c.result=function(e,t){let n=Yd(e,t,"-",!1)||[],i=Yd(t,e,"",!1)||[],r=Yd(e,t,"-?",!0)||[];return n.concat(r).concat(i).join("|")}(u,l),!0===i.capture?c.result=`(${c.result})`:!1!==i.wrap&&l.length+u.length>1&&(c.result=`(?:${c.result})`),Qd.cache[r]=c,c.result};function Wd(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,s="",o=0;for(let e=0;e<r;e++){let[t,n]=i[e];t===n?s+=t:"0"!==t||"9"!==n?s+=Jd(t,n):o++}return o&&(s+=!0===n.shorthand?"\\d":"[0-9]"),{pattern:s,count:[o],digits:r}}function qd(e,t,n,i){let r,s=function(e,t){let n=1,i=1,r=zd(e,n),s=new Set([t]);for(;e<=r&&r<=t;)s.add(r),n+=1,r=zd(e,n);for(r=Xd(t+1,i)-1;e<r&&r<=t;)s.add(r),i+=1,r=Xd(t+1,i)-1;return s=[...s],s.sort(Gd),s}(e,t),o=[],a=e;for(let e=0;e<s.length;e++){let t=s[e],c=Wd(String(a),String(t),i),l="";n.isPadded||!r||r.pattern!==c.pattern?(n.isPadded&&(l=eh(t,n,i)),c.string=l+c.pattern+Vd(c.count),o.push(c),a=t+1,r=c):(r.count.length>1&&r.count.pop(),r.count.push(c.count[0]),r.string=r.pattern+Vd(r.count),a=t+1)}return o}function Yd(e,t,n,i,r){let s=[];for(let r of e){let{string:e}=r;i||Kd(t,"string",e)||s.push(n+e),i&&Kd(t,"string",e)&&s.push(n+e)}return s}function Gd(e,t){return e>t?1:t>e?-1:0}function Kd(e,t,n){return e.some(e=>e[t]===n)}function zd(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Xd(e,t){return e-e%Math.pow(10,t)}function Vd(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function Jd(e,t,n){return`[${e}${t-e===1?"":"-"}${t}]`}function Zd(e){return/^-?(0+)\d/.test(e)}function eh(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}}`}}Qd.cache={},Qd.clearCache=()=>Qd.cache={};const th=f,nh=Qd,ih=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),rh=e=>"number"==typeof e||"string"==typeof e&&""!==e,sh=e=>Number.isInteger(+e),oh=e=>{let t=`${e}`,n=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++n];);return n>0},ah=(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},ch=(e,t)=>{let n="-"===e[0]?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},lh=(e,t,n,i)=>{if(n)return nh(e,t,{wrap:!1,...i});let r=String.fromCharCode(e);return e===t?r:`[${r}-${String.fromCharCode(t)}]`},uh=(e,t,n)=>{if(Array.isArray(e)){let t=!0===n.wrap,i=n.capture?"":"?:";return t?`(${i}${e.join("|")})`:e.join("|")}return nh(e,t,n)},ph=(...e)=>new RangeError("Invalid range arguments: "+th.inspect(...e)),dh=(e,t,n)=>{if(!0===n.strictRanges)throw ph([e,t]);return[]},hh=(e,t,n=1,i={})=>{let r=Number(e),s=Number(t);if(!Number.isInteger(r)||!Number.isInteger(s)){if(!0===i.strictRanges)throw ph([e,t]);return[]}0===r&&(r=0),0===s&&(s=0);let o=r>s,a=String(e),c=String(t),l=String(n);n=Math.max(Math.abs(n),1);let u=oh(a)||oh(c)||oh(l),p=u?Math.max(a.length,c.length,l.length):0,d=!1===u&&!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))(d);if(i.toRegex&&1===n)return lh(ch(e,p),ch(t,p),!0,i);let f={negatives:[],positives:[]},m=e=>f[e<0?"negatives":"positives"].push(Math.abs(e)),g=[],_=0;for(;o?r>=s:r<=s;)!0===i.toRegex&&n>1?m(r):g.push(ah(h(r,_),p,d)),r=o?r-n:r+n,_++;return!0===i.toRegex?n>1?((e,t,n)=>{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 i,r=t.capture?"":"?:",s="",o="";return e.positives.length&&(s=e.positives.map(e=>ch(String(e),n)).join("|")),e.negatives.length&&(o=`-(${r}${e.negatives.map(e=>ch(String(e),n)).join("|")})`),i=s&&o?`${s}|${o}`:s||o,t.wrap?`(${r}${i})`:i})(f,i,p):uh(g,null,{wrap:!1,...i}):g},fh=(e,t,n,i={})=>{if(null==t&&rh(e))return[e];if(!rh(e)||!rh(t))return dh(e,t,i);if("function"==typeof n)return fh(e,t,1,{transform:n});if(ih(n))return fh(e,t,0,n);let r={...i};return!0===r.capture&&(r.wrap=!0),n=n||r.step||1,sh(n)?sh(e)&&sh(t)?hh(e,t,n,r):((e,t,n=1,i={})=>{if(!sh(e)&&e.length>1||!sh(t)&&t.length>1)return dh(e,t,i);let r=i.transform||(e=>String.fromCharCode(e)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,c=Math.min(s,o),l=Math.max(s,o);if(i.toRegex&&1===n)return lh(c,l,!1,i);let u=[],p=0;for(;a?s>=o:s<=o;)u.push(r(s,p)),s=a?s-n:s+n,p++;return!0===i.toRegex?uh(u,null,{wrap:!1,options:i}):u})(e,t,Math.max(Math.abs(n),1),r):null==n||ih(n)?fh(e,t,1,n):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(n,r)};const mh=fh,gh=Hd;var _h=(e,t={})=>{const n=(e,i={})=>{const r=gh.isInvalidBrace(i),s=!0===e.invalid&&!0===t.escapeInvalid,o=!0===r||!0===s,a=!0===t.escapeInvalid?"\\":"";let c="";if(!0===e.isOpen)return a+e.value;if(!0===e.isClose)return console.log("node.isClose",a,e.value),a+e.value;if("open"===e.type)return o?a+e.value:"(";if("close"===e.type)return o?a+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":o?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){const n=gh.reduce(e.nodes),i=mh(...n,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==i.length)return n.length>1&&i.length>1?`(${i})`:i}if(e.nodes)for(const t of e.nodes)c+=n(t,e);return c};return n(e)};const bh=fh,yh=jd,vh=Hd,Ah=(e="",t="",n=!1)=>{const i=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return n?vh.flatten(t).map(e=>`{${e}}`):t;for(const r of e)if(Array.isArray(r))for(const e of r)i.push(Ah(e,t,n));else for(let e of t)!0===n&&"string"==typeof e&&(e=`{${e}}`),i.push(Array.isArray(e)?Ah(r,e,n):r+e);return vh.flatten(i)};var Eh=(e,t={})=>{const n=void 0===t.rangeLimit?1e3:t.rangeLimit,i=(e,r={})=>{e.queue=[];let s=r,o=r.queue;for(;"brace"!==s.type&&"root"!==s.type&&s.parent;)s=s.parent,o=s.queue;if(e.invalid||e.dollar)return void o.push(Ah(o.pop(),yh(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void o.push(Ah(o.pop(),["{}"]));if(e.nodes&&e.ranges>0){const i=vh.reduce(e.nodes);if(vh.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=bh(...i,t);return 0===r.length&&(r=yh(e,t)),o.push(Ah(o.pop(),r)),void(e.nodes=[])}const a=vh.encloseBrace(e);let c=e.queue,l=e;for(;"brace"!==l.type&&"root"!==l.type&&l.parent;)l=l.parent,c=l.queue;for(let t=0;t<e.nodes.length;t++){const n=e.nodes[t];"comma"!==n.type||"brace"!==e.type?"close"!==n.type?n.value&&"open"!==n.type?c.push(Ah(c.pop(),n.value)):n.nodes&&i(n,e):o.push(Ah(o.pop(),c,a)):(1===t&&c.push(""),c.push(""))}return c};return vh.flatten(i(e))};const wh=jd,{MAX_LENGTH:xh,CHAR_BACKSLASH:Sh,CHAR_BACKTICK:Ih,CHAR_COMMA:kh,CHAR_DOT:Ch,CHAR_LEFT_PARENTHESES:Rh,CHAR_RIGHT_PARENTHESES:Bh,CHAR_LEFT_CURLY_BRACE:Th,CHAR_RIGHT_CURLY_BRACE:Oh,CHAR_LEFT_SQUARE_BRACKET:Nh,CHAR_RIGHT_SQUARE_BRACKET:Lh,CHAR_DOUBLE_QUOTE:Ph,CHAR_SINGLE_QUOTE:Uh,CHAR_NO_BREAK_SPACE:Dh,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Mh}={MAX_LENGTH:1e4,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 Hh=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");const n=t||{},i="number"==typeof n.maxLength?Math.min(xh,n.maxLength):xh;if(e.length>i)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${i})`);const r={type:"root",input:e,nodes:[]},s=[r];let o=r,a=r,c=0;const l=e.length;let u,p=0,d=0;const h=()=>e[p++],f=e=>{if("text"===e.type&&"dot"===a.type&&(a.type="text"),!a||"text"!==a.type||"text"!==e.type)return o.nodes.push(e),e.parent=o,e.prev=a,a=e,e;a.value+=e.value};for(f({type:"bos"});p<l;)if(o=s[s.length-1],u=h(),u!==Mh&&u!==Dh)if(u!==Sh)if(u!==Lh){if(u===Nh){let e;for(c++;p<l&&(e=h());)if(u+=e,e!==Nh)if(e!==Sh){if(e===Lh&&(c--,0===c))break}else u+=h();else c++;f({type:"text",value:u});continue}if(u!==Rh)if(u!==Bh){if(u===Ph||u===Uh||u===Ih){const e=u;let n;for(!0!==t.keepQuotes&&(u="");p<l&&(n=h());)if(n!==Sh){if(n===e){!0===t.keepQuotes&&(u+=n);break}u+=n}else u+=n+h();f({type:"text",value:u});continue}if(u===Th){d++;const e=a.value&&"$"===a.value.slice(-1)||!0===o.dollar;o=f({type:"brace",open:!0,close:!1,dollar:e,depth:d,commas:0,ranges:0,nodes:[]}),s.push(o),f({type:"open",value:u});continue}if(u===Oh){if("brace"!==o.type){f({type:"text",value:u});continue}const e="close";o=s.pop(),o.close=!0,f({type:e,value:u}),d--,o=s[s.length-1];continue}if(u===kh&&d>0){if(o.ranges>0){o.ranges=0;const e=o.nodes.shift();o.nodes=[e,{type:"text",value:wh(o)}]}f({type:"comma",value:u}),o.commas++}else{if(u===Ch&&d>0&&0===o.commas){const e=o.nodes;if(0===d||0===e.length){f({type:"text",value:u});continue}if("dot"===a.type){if(o.range=[],a.value+=u,a.type="range",3!==o.nodes.length&&5!==o.nodes.length){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if("range"===a.type){e.pop();const t=e[e.length-1];t.value+=a.value+u,a=t,o.ranges--;continue}f({type:"dot",value:u});continue}f({type:"text",value:u})}}else{if("paren"!==o.type){f({type:"text",value:u});continue}o=s.pop(),f({type:"text",value:u}),o=s[s.length-1]}else o=f({type:"paren",nodes:[]}),s.push(o),f({type:"text",value:u})}else f({type:"text",value:"\\"+u});else f({type:"text",value:(t.keepEscaping?u:"")+h()});do{if(o=s.pop(),"root"!==o.type){o.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)});const e=s[s.length-1],t=e.nodes.indexOf(o);e.nodes.splice(t,1,...o.nodes)}}while(s.length>0);return f({type:"eos"}),r};const Fh=jd,jh=_h,$h=Eh,Qh=Hh,Wh=(e,t={})=>{let n=[];if(Array.isArray(e))for(const i of e){const e=Wh.create(i,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(Wh.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(n=[...new Set(n)]),n};Wh.parse=(e,t={})=>Qh(e,t),Wh.stringify=(e,t={})=>Fh("string"==typeof e?Wh.parse(e,t):e,t),Wh.compile=(e,t={})=>("string"==typeof e&&(e=Wh.parse(e,t)),jh(e,t)),Wh.expand=(e,t={})=>{"string"==typeof e&&(e=Wh.parse(e,t));let n=$h(e,t);return!0===t.noempty&&(n=n.filter(Boolean)),!0===t.nodupes&&(n=[...new Set(n)]),n},Wh.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?Wh.compile(e,t):Wh.expand(e,t);var qh=Wh,Yh={};const Gh=i,Kh="\\\\/",zh=`[^${Kh}]`,Xh="\\.",Vh="\\/",Jh="[^/]",Zh=`(?:${Vh}|$)`,ef=`(?:^|${Vh})`,tf=`${Xh}{1,2}${Zh}`,nf={DOT_LITERAL:Xh,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:Vh,ONE_CHAR:"(?=.)",QMARK:Jh,END_ANCHOR:Zh,DOTS_SLASH:tf,NO_DOT:`(?!${Xh})`,NO_DOTS:`(?!${ef}${tf})`,NO_DOT_SLASH:`(?!${Xh}{0,1}${Zh})`,NO_DOTS_SLASH:`(?!${tf})`,QMARK_NO_DOT:`[^.${Vh}]`,STAR:`${Jh}*?`,START_ANCHOR:ef},rf={...nf,SLASH_LITERAL:`[${Kh}]`,QMARK:zh,STAR:`${zh}*?`,DOTS_SLASH:`${Xh}{1,2}(?:[${Kh}]|$)`,NO_DOT:`(?!${Xh})`,NO_DOTS:`(?!(?:^|[${Kh}])${Xh}{1,2}(?:[${Kh}]|$))`,NO_DOT_SLASH:`(?!${Xh}{0,1}(?:[${Kh}]|$))`,NO_DOTS_SLASH:`(?!${Xh}{1,2}(?:[${Kh}]|$))`,QMARK_NO_DOT:`[^.${Kh}]`,START_ANCHOR:`(?:^|[${Kh}])`,END_ANCHOR:`(?:[${Kh}]|$)`};var sf={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,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:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},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:Gh.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?rf:nf};!function(e){const t=i,n="win32"===process.platform,{REGEX_BACKSLASH:r,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:a}=sf;e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>o.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(a,"\\$1"),e.toPosixSlashes=e=>e.replace(r,"/"),e.removeBackslashes=e=>e.replace(s,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===n||"\\"===t.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}}(Yh);const of=Yh,{CHAR_ASTERISK:af,CHAR_AT:cf,CHAR_BACKWARD_SLASH:lf,CHAR_COMMA:uf,CHAR_DOT:pf,CHAR_EXCLAMATION_MARK:df,CHAR_FORWARD_SLASH:hf,CHAR_LEFT_CURLY_BRACE:ff,CHAR_LEFT_PARENTHESES:mf,CHAR_LEFT_SQUARE_BRACKET:gf,CHAR_PLUS:_f,CHAR_QUESTION_MARK:bf,CHAR_RIGHT_CURLY_BRACE:yf,CHAR_RIGHT_PARENTHESES:vf,CHAR_RIGHT_SQUARE_BRACKET:Af}=sf,Ef=e=>e===hf||e===lf,wf=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};var xf=(e,t)=>{const n=t||{},i=e.length-1,r=!0===n.parts||!0===n.scanToEnd,s=[],o=[],a=[];let c,l,u=e,p=-1,d=0,h=0,f=!1,m=!1,g=!1,_=!1,b=!1,y=!1,v=!1,A=!1,E=!1,w=!1,x=0,S={value:"",depth:0,isGlob:!1};const I=()=>p>=i,k=()=>u.charCodeAt(p+1),C=()=>(c=l,u.charCodeAt(++p));for(;p<i;){let e;if(l=C(),l!==lf){if(!0===y||l===ff){for(x++;!0!==I()&&(l=C());)if(l!==lf)if(l!==ff){if(!0!==y&&l===pf&&(l=C())===pf){if(f=S.isBrace=!0,g=S.isGlob=!0,w=!0,!0===r)continue;break}if(!0!==y&&l===uf){if(f=S.isBrace=!0,g=S.isGlob=!0,w=!0,!0===r)continue;break}if(l===yf&&(x--,0===x)){y=!1,f=S.isBrace=!0,w=!0;break}}else x++;else v=S.backslashes=!0,C();if(!0===r)continue;break}if(l!==hf){if(!0!==n.noext){if(!0===(l===_f||l===cf||l===af||l===bf||l===df)&&k()===mf){if(g=S.isGlob=!0,_=S.isExtglob=!0,w=!0,l===df&&p===d&&(E=!0),!0===r){for(;!0!==I()&&(l=C());)if(l!==lf){if(l===vf){g=S.isGlob=!0,w=!0;break}}else v=S.backslashes=!0,l=C();continue}break}}if(l===af){if(c===af&&(b=S.isGlobstar=!0),g=S.isGlob=!0,w=!0,!0===r)continue;break}if(l===bf){if(g=S.isGlob=!0,w=!0,!0===r)continue;break}if(l===gf){for(;!0!==I()&&(e=C());)if(e!==lf){if(e===Af){m=S.isBracket=!0,g=S.isGlob=!0,w=!0;break}}else v=S.backslashes=!0,C();if(!0===r)continue;break}if(!0===n.nonegate||l!==df||p!==d){if(!0!==n.noparen&&l===mf){if(g=S.isGlob=!0,!0===r){for(;!0!==I()&&(l=C());)if(l!==mf){if(l===vf){w=!0;break}}else v=S.backslashes=!0,l=C();continue}break}if(!0===g){if(w=!0,!0===r)continue;break}}else A=S.negated=!0,d++}else{if(s.push(p),o.push(S),S={value:"",depth:0,isGlob:!1},!0===w)continue;if(c===pf&&p===d+1){d+=2;continue}h=p+1}}else v=S.backslashes=!0,l=C(),l===ff&&(y=!0)}!0===n.noext&&(_=!1,g=!1);let R=u,B="",T="";d>0&&(B=u.slice(0,d),u=u.slice(d),h-=d),R&&!0===g&&h>0?(R=u.slice(0,h),T=u.slice(h)):!0===g?(R="",T=u):R=u,R&&""!==R&&"/"!==R&&R!==u&&Ef(R.charCodeAt(R.length-1))&&(R=R.slice(0,-1)),!0===n.unescape&&(T&&(T=of.removeBackslashes(T)),R&&!0===v&&(R=of.removeBackslashes(R)));const O={prefix:B,input:e,start:d,base:R,glob:T,isBrace:f,isBracket:m,isGlob:g,isExtglob:_,isGlobstar:b,negated:A,negatedExtglob:E};if(!0===n.tokens&&(O.maxDepth=0,Ef(l)||o.push(S),O.tokens=o),!0===n.parts||!0===n.tokens){let t;for(let i=0;i<s.length;i++){const r=t?t+1:d,c=s[i],l=e.slice(r,c);n.tokens&&(0===i&&0!==d?(o[i].isPrefix=!0,o[i].value=B):o[i].value=l,wf(o[i]),O.maxDepth+=o[i].depth),0===i&&""===l||a.push(l),t=c}if(t&&t+1<e.length){const i=e.slice(t+1);a.push(i),n.tokens&&(o[o.length-1].value=i,wf(o[o.length-1]),O.maxDepth+=o[o.length-1].depth)}O.slashes=s,O.parts=a}return O};const Sf=sf,If=Yh,{MAX_LENGTH:kf,POSIX_REGEX_SOURCE:Cf,REGEX_NON_SPECIAL_CHARS:Rf,REGEX_SPECIAL_CHARS_BACKREF:Bf,REPLACEMENTS:Tf}=Sf,Of=(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=>If.escapeRegex(e)).join("..")}return n},Nf=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Lf=e=>{const t=[];let n=0,i=0,r=0,s="",o=!1;for(const a of e)if(!0!==o)if("\\"!==a)if('"'!==a){if(0===r)if("["===a)n++;else if("]"===a&&n>0)n--;else if(0===n)if("("===a)i++;else if(")"===a&&i>0)i--;else if("|"===a&&0===i){t.push(s),s="";continue}s+=a}else r=1===r?0:1,s+=a;else s+=a,o=!0;else s+=a,o=!1;return t.push(s),t},Pf=e=>{let t=e.trim(),n=!0;for(;!0===n;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if((e=>{let t=!1;for(const n of e)if(!0!==t)if("\\"!==n){if(/[?*+@!()[\]{}]/.test(n))return!1}else t=!0;else t=!1;return!0})(t))return t.replace(/\\(.)/g,"$1")},Uf=(e,t=!0)=>{if("+"!==e[0]&&"*"!==e[0]||"("!==e[1])return;let n=0,i=0,r=0,s=!1;for(let o=1;o<e.length;o++){const a=e[o];if(!0!==s)if("\\"!==a)if('"'!==a){if(1!==r)if("["!==a){if("]"===a&&n>0)n--;else if(!(n>0))if("("!==a){if(")"===a&&(i--,0===i)){if(!0===t&&o!==e.length-1)return;return{type:e[0],body:e.slice(2,o),end:o}}}else i++}else n++}else r=1===r?0:1;else s=!0;else s=!1}},Df=e=>{let t=0;const n=[];for(;t<e.length;){const i=Uf(e.slice(t),!1);if(!i||"*"!==i.type)return;const r=Lf(i.body).map(e=>e.trim());if(1!==r.length)return;const s=Pf(r[0]);if(!s||1!==s.length)return;n.push(s),t+=i.end+1}if(n.length<1)return;return`${1===n.length?If.escapeRegex(n[0]):`[${n.map(e=>If.escapeRegex(e)).join("")}]`}*`},Mf=e=>{let t=0,n=e.trim(),i=Uf(n);for(;i;)t++,n=i.body.trim(),i=Uf(n);return t},Hf=(e,t)=>{if(!1===t.maxExtglobRecursion)return{risky:!1};const n="number"==typeof t.maxExtglobRecursion?t.maxExtglobRecursion:Sf.DEFAULT_MAX_EXTGLOB_RECURSION,i=Lf(e).map(e=>e.trim());if(i.length>1&&(i.some(e=>""===e)||i.some(e=>/^[*?]+$/.test(e))||(e=>{const t=e.map(Pf).filter(Boolean);for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++){const i=t[e],r=t[n],s=i[0];if(s&&i===s.repeat(i.length)&&r===s.repeat(r.length)&&(i===r||i.startsWith(r)||r.startsWith(i)))return!0}return!1})(i)))return{risky:!0};for(const e of i){const t=Df(e);if(t)return{risky:!0,safeOutput:t};if(Mf(e)>n)return{risky:!0}}return{risky:!1}},Ff=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=Tf[e]||e;const n={...t},i="number"==typeof n.maxLength?Math.min(kf,n.maxLength):kf;let r=e.length;if(r>i)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${i}`);const s={type:"bos",value:"",output:n.prepend||""},o=[s],a=n.capture?"":"?:",c=If.isWindows(t),l=Sf.globChars(c),u=Sf.extglobChars(l),{DOT_LITERAL:p,PLUS_LITERAL:d,SLASH_LITERAL:h,ONE_CHAR:f,DOTS_SLASH:m,NO_DOT:g,NO_DOT_SLASH:_,NO_DOTS_SLASH:b,QMARK:y,QMARK_NO_DOT:v,STAR:A,START_ANCHOR:E}=l,w=e=>`(${a}(?:(?!${E}${e.dot?m:p}).)*?)`,x=n.dot?"":g,S=n.dot?y:v;let I=!0===n.bash?w(n):A;n.capture&&(I=`(${I})`),"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:o};e=If.removePrefix(e,k),r=e.length;const C=[],R=[],B=[];let T,O=s;const N=()=>k.index===r-1,L=k.peek=(t=1)=>e[k.index+t],P=k.advance=()=>e[++k.index]||"",U=()=>e.slice(k.index+1),D=(e="",t=0)=>{k.consumed+=e,k.index+=t},M=e=>{k.output+=null!=e.output?e.output:e.value,D(e.value)},H=()=>{let e=1;for(;"!"===L()&&("("!==L(2)||"?"===L(3));)P(),k.start++,e++;return e%2!=0&&(k.negated=!0,k.start++,!0)},F=e=>{k[e]++,B.push(e)},j=e=>{k[e]--,B.pop()},$=e=>{if("globstar"===O.type){const t=k.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||C.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=I,k.output+=O.output)}if(C.length&&"paren"!==e.type&&(C[C.length-1].inner+=e.value),(e.value||e.output)&&M(e),O&&"text"===O.type&&"text"===e.type)return O.value+=e.value,void(O.output=(O.output||"")+e.value);e.prev=O,o.push(e),O=e},Q=(e,t)=>{const i={...u[t],conditions:1,inner:""};i.prev=O,i.parens=k.parens,i.output=k.output,i.startIndex=k.index,i.tokensIndex=o.length;const r=(n.capture?"(":"")+i.open;F("parens"),$({type:e,value:t,output:k.output?"":f}),$({type:"paren",extglob:!0,value:P(),output:r}),C.push(i)},W=i=>{const r=e.slice(i.startIndex,k.index+1),s=e.slice(i.startIndex+2,k.index),a=Hf(s,n);if(("plus"===i.type||"star"===i.type)&&a.risky){const e=a.safeOutput?(i.output?"":f)+(n.capture?`(${a.safeOutput})`:a.safeOutput):void 0,t=o[i.tokensIndex];t.type="text",t.value=r,t.output=e||If.escapeRegex(r);for(let e=i.tokensIndex+1;e<o.length;e++)o[e].value="",o[e].output="",delete o[e].suffix;return k.output=i.output+t.output,k.backtrack=!0,$({type:"paren",extglob:!0,value:T,output:""}),void j("parens")}let c,l=i.close+(n.capture?")":"");if("negate"===i.type){let e=I;if(i.inner&&i.inner.length>1&&i.inner.includes("/")&&(e=w(n)),(e!==I||N()||/^\)+$/.test(U()))&&(l=i.close=`)$))${e}`),i.inner.includes("*")&&(c=U())&&/^\.[^\\/.]+$/.test(c)){const n=Ff(c,{...t,fastpaths:!1}).output;l=i.close=`)${n})${e})`}"bos"===i.prev.type&&(k.negatedExtglob=!0)}$({type:"paren",extglob:!0,value:T,output:l}),j("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let i=!1,r=e.replace(Bf,(e,t,n,r,s,o)=>"\\"===r?(i=!0,e):"?"===r?t?t+r+(s?y.repeat(s.length):""):0===o?S+(s?y.repeat(s.length):""):y.repeat(n.length):"."===r?p.repeat(n.length):"*"===r?t?t+r+(s?I:""):I: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=If.wrapOutput(r,k,t),k)}for(;!N();){if(T=P(),"\0"===T)continue;if("\\"===T){const e=L();if("/"===e&&!0!==n.bash)continue;if("."===e||";"===e)continue;if(!e){T+="\\",$({type:"text",value:T});continue}const t=/^\\+/.exec(U());let i=0;if(t&&t[0].length>2&&(i=t[0].length,k.index+=i,i%2!=0&&(T+="\\")),!0===n.unescape?T=P():T+=P(),0===k.brackets){$({type:"text",value:T});continue}}if(k.brackets>0&&("]"!==T||"["===O.value||"[^"===O.value)){if(!1!==n.posix&&":"===T){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=Cf[n];if(i){O.value=t+i,k.backtrack=!0,P(),s.output||1!==o.indexOf(O)||(s.output=f);continue}}}("["===T&&":"!==L()||"-"===T&&"]"===L())&&(T=`\\${T}`),"]"!==T||"["!==O.value&&"[^"!==O.value||(T=`\\${T}`),!0===n.posix&&"!"===T&&"["===O.value&&(T="^"),O.value+=T,M({value:T});continue}if(1===k.quotes&&'"'!==T){T=If.escapeRegex(T),O.value+=T,M({value:T});continue}if('"'===T){k.quotes=1===k.quotes?0:1,!0===n.keepQuotes&&$({type:"text",value:T});continue}if("("===T){F("parens"),$({type:"paren",value:T});continue}if(")"===T){if(0===k.parens&&!0===n.strictBrackets)throw new SyntaxError(Nf("opening","("));const e=C[C.length-1];if(e&&k.parens===e.parens+1){W(C.pop());continue}$({type:"paren",value:T,output:k.parens?")":"\\)"}),j("parens");continue}if("["===T){if(!0!==n.nobracket&&U().includes("]"))F("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(Nf("closing","]"));T=`\\${T}`}$({type:"bracket",value:T});continue}if("]"===T){if(!0===n.nobracket||O&&"bracket"===O.type&&1===O.value.length){$({type:"text",value:T,output:`\\${T}`});continue}if(0===k.brackets){if(!0===n.strictBrackets)throw new SyntaxError(Nf("opening","["));$({type:"text",value:T,output:`\\${T}`});continue}j("brackets");const e=O.value.slice(1);if(!0===O.posix||"^"!==e[0]||e.includes("/")||(T=`/${T}`),O.value+=T,M({value:T}),!1===n.literalBrackets||If.hasRegexChars(e))continue;const t=If.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=`(${a}${t}|${O.value})`,k.output+=O.value;continue}if("{"===T&&!0!==n.nobrace){F("braces");const e={type:"brace",value:T,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};R.push(e),$(e);continue}if("}"===T){const e=R[R.length-1];if(!0===n.nobrace||!e){$({type:"text",value:T,output:T});continue}let t=")";if(!0===e.dots){const e=o.slice(),i=[];for(let t=e.length-1;t>=0&&(o.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&i.unshift(e[t].value);t=Of(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="\\{",T=t="\\}",k.output=n;for(const e of i)k.output+=e.output||e.value}$({type:"brace",value:T,output:t}),j("braces"),R.pop();continue}if("|"===T){C.length>0&&C[C.length-1].conditions++,$({type:"text",value:T});continue}if(","===T){let e=T;const t=R[R.length-1];t&&"braces"===B[B.length-1]&&(t.comma=!0,e="|"),$({type:"comma",value:T,output:e});continue}if("/"===T){if("dot"===O.type&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",o.pop(),O=s;continue}$({type:"slash",value:T,output:h});continue}if("."===T){if(k.braces>0&&"dot"===O.type){"."===O.value&&(O.output=p);const e=R[R.length-1];O.type="dots",O.output+=T,O.value+=T,e.dots=!0;continue}if(k.braces+k.parens===0&&"bos"!==O.type&&"slash"!==O.type){$({type:"text",value:T,output:p});continue}$({type:"dot",value:T,output:p});continue}if("?"===T){if(!(O&&"("===O.value)&&!0!==n.noextglob&&"("===L()&&"?"!==L(2)){Q("qmark",T);continue}if(O&&"paren"===O.type){const e=L();let t=T;if("<"===e&&!If.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===O.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(U()))&&(t=`\\${T}`),$({type:"text",value:T,output:t});continue}if(!0!==n.dot&&("slash"===O.type||"bos"===O.type)){$({type:"qmark",value:T,output:v});continue}$({type:"qmark",value:T,output:y});continue}if("!"===T){if(!0!==n.noextglob&&"("===L()&&("?"!==L(2)||!/[!=<:]/.test(L(3)))){Q("negate",T);continue}if(!0!==n.nonegate&&0===k.index){H();continue}}if("+"===T){if(!0!==n.noextglob&&"("===L()&&"?"!==L(2)){Q("plus",T);continue}if(O&&"("===O.value||!1===n.regex){$({type:"plus",value:T,output:d});continue}if(O&&("bracket"===O.type||"paren"===O.type||"brace"===O.type)||k.parens>0){$({type:"plus",value:T});continue}$({type:"plus",value:d});continue}if("@"===T){if(!0!==n.noextglob&&"("===L()&&"?"!==L(2)){$({type:"at",extglob:!0,value:T,output:""});continue}$({type:"text",value:T});continue}if("*"!==T){"$"!==T&&"^"!==T||(T=`\\${T}`);const e=Rf.exec(U());e&&(T+=e[0],k.index+=e[0].length),$({type:"text",value:T});continue}if(O&&("globstar"===O.type||!0===O.star)){O.type="star",O.star=!0,O.value+=T,O.output=I,k.backtrack=!0,k.globstar=!0,D(T);continue}let t=U();if(!0!==n.noextglob&&/^\([^?]/.test(t)){Q("star",T);continue}if("star"===O.type){if(!0===n.noglobstar){D(T);continue}const i=O.prev,r=i.prev,s="slash"===i.type||"bos"===i.type,o=r&&("star"===r.type||"globstar"===r.type);if(!0===n.bash&&(!s||t[0]&&"/"!==t[0])){$({type:"star",value:T,output:""});continue}const a=k.braces>0&&("comma"===i.type||"brace"===i.type),c=C.length&&("pipe"===i.type||"paren"===i.type);if(!s&&"paren"!==i.type&&!a&&!c){$({type:"star",value:T,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[k.index+4];if(n&&"/"!==n)break;t=t.slice(3),D("/**",3)}if("bos"===i.type&&N()){O.type="globstar",O.value+=T,O.output=w(n),k.output=O.output,k.globstar=!0,D(T);continue}if("slash"===i.type&&"bos"!==i.prev.type&&!o&&N()){k.output=k.output.slice(0,-(i.output+O.output).length),i.output=`(?:${i.output}`,O.type="globstar",O.output=w(n)+(n.strictSlashes?")":"|$)"),O.value+=T,k.globstar=!0,k.output+=i.output+O.output,D(T);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=`${w(n)}${h}|${h}${e})`,O.value+=T,k.output+=i.output+O.output,k.globstar=!0,D(T+P()),$({type:"slash",value:"/",output:""});continue}if("bos"===i.type&&"/"===t[0]){O.type="globstar",O.value+=T,O.output=`(?:^|${h}|${w(n)}${h})`,k.output=O.output,k.globstar=!0,D(T+P()),$({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-O.output.length),O.type="globstar",O.output=w(n),O.value+=T,k.output+=O.output,k.globstar=!0,D(T);continue}const i={type:"star",value:T,output:I};!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+=_,O.output+=_):!0===n.dot?(k.output+=b,O.output+=b):(k.output+=x,O.output+=x),"*"!==L()&&(k.output+=f,O.output+=f)),$(i)):(i.output=T,$(i)):(i.output=".*?","bos"!==O.type&&"slash"!==O.type||(i.output=x+i.output),$(i))}for(;k.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(Nf("closing","]"));k.output=If.escapeLast(k.output,"["),j("brackets")}for(;k.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(Nf("closing",")"));k.output=If.escapeLast(k.output,"("),j("parens")}for(;k.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(Nf("closing","}"));k.output=If.escapeLast(k.output,"{"),j("braces")}if(!0===n.strictSlashes||"star"!==O.type&&"bracket"!==O.type||$({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};Ff.fastpaths=(e,t)=>{const n={...t},i="number"==typeof n.maxLength?Math.min(kf,n.maxLength):kf,r=e.length;if(r>i)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${i}`);e=Tf[e]||e;const s=If.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:l,NO_DOT:u,NO_DOTS:p,NO_DOTS_SLASH:d,STAR:h,START_ANCHOR:f}=Sf.globChars(s),m=n.dot?p:u,g=n.dot?d:u,_=n.capture?"":"?:";let b=!0===n.bash?".*?":h;n.capture&&(b=`(${b})`);const y=e=>!0===e.noglobstar?b:`(${_}(?:(?!${f}${e.dot?l:o}).)*?)`,v=e=>{switch(e){case"*":return`${m}${c}${b}`;case".*":return`${o}${c}${b}`;case"*.*":return`${m}${b}${o}${c}${b}`;case"*/*":return`${m}${b}${a}${c}${g}${b}`;case"**":return m+y(n);case"**/*":return`(?:${m}${y(n)}${a})?${g}${c}${b}`;case"**/*.*":return`(?:${m}${y(n)}${a})?${g}${b}${o}${c}${b}`;case"**/.*":return`(?:${m}${y(n)}${a})?${o}${c}${b}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=v(t[1]);if(!n)return;return n+o+t[2]}}},A=If.removePrefix(e,{negated:!1,prefix:""});let E=v(A);return E&&!0!==n.strictSlashes&&(E+=`${a}?`),E};const jf=i,$f=xf,Qf=Ff,Wf=Yh,qf=sf,Yf=(e,t,n=!1)=>{if(Array.isArray(e)){const i=e.map(e=>Yf(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 s=t||{},o=Wf.isWindows(t),a=i?Yf.compileRe(e,t):Yf.makeRe(e,t,!1,!0),c=a.state;delete a.state;let l=()=>!1;if(s.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};l=Yf(s.ignore,e,n)}const u=(n,i=!1)=>{const{isMatch:r,match:u,output:p}=Yf.test(n,a,t,{glob:e,posix:o}),d={glob:e,state:c,regex:a,posix:o,input:n,output:p,match:u,isMatch:r};return"function"==typeof s.onResult&&s.onResult(d),!1===r?(d.isMatch=!1,!!i&&d):l(n)?("function"==typeof s.onIgnore&&s.onIgnore(d),d.isMatch=!1,!!i&&d):("function"==typeof s.onMatch&&s.onMatch(d),!i||d)};return n&&(u.state=c),u};Yf.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 s=n||{},o=s.format||(r?Wf.toPosixSlashes:null);let a=e===i,c=a&&o?o(e):e;return!1===a&&(c=o?o(e):e,a=c===i),!1!==a&&!0!==s.capture||(a=!0===s.matchBase||!0===s.basename?Yf.matchBase(e,t,n,r):t.exec(c)),{isMatch:Boolean(a),match:a,output:c}},Yf.matchBase=(e,t,n,i=Wf.isWindows(n))=>(t instanceof RegExp?t:Yf.makeRe(t,n)).test(jf.basename(e)),Yf.isMatch=(e,t,n)=>Yf(t,n)(e),Yf.parse=(e,t)=>Array.isArray(e)?e.map(e=>Yf.parse(e,t)):Qf(e,{...t,fastpaths:!1}),Yf.scan=(e,t)=>$f(e,t),Yf.compileRe=(e,t,n=!1,i=!1)=>{if(!0===n)return e.output;const r=t||{},s=r.contains?"":"^",o=r.contains?"":"$";let a=`${s}(?:${e.output})${o}`;e&&!0===e.negated&&(a=`^(?!${a}).*$`);const c=Yf.toRegex(a,t);return!0===i&&(c.state=e),c},Yf.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=Qf.fastpaths(e,t)),r.output||(r=Qf(e,t)),Yf.compileRe(r,t,n,i)},Yf.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/$^/}},Yf.constants=qf;const Gf=f,Kf=qh,zf=Yf,Xf=Yh,Vf=e=>""===e||"./"===e,Jf=e=>{const t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},Zf=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let i=new Set,r=new Set,s=new Set,o=0,a=e=>{s.add(e.output),n&&n.onResult&&n.onResult(e)};for(let s=0;s<t.length;s++){let c=zf(String(t[s]),{...n,onResult:a},!0),l=c.state.negated||c.state.negatedExtglob;l&&o++;for(let t of e){let e=c(t,!0);(l?!e.isMatch:e.isMatch)&&(l?i.add(e.output):(i.delete(e.output),r.add(e.output)))}}let c=(o===t.length?[...s]:[...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};Zf.match=Zf,Zf.matcher=(e,t)=>zf(e,t),Zf.any=Zf.isMatch=(e,t,n)=>zf(t,n)(e),Zf.not=(e,t,n={})=>{t=[].concat(t).map(String);let i=new Set,r=[],s=new Set(Zf(e,t,{...n,onResult:e=>{n.onResult&&n.onResult(e),r.push(e.output)}}));for(let e of r)s.has(e)||i.add(e);return[...i]},Zf.contains=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${Gf.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>Zf.contains(e,t,n));if("string"==typeof t){if(Vf(e)||Vf(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return Zf.isMatch(e,t,{...n,contains:!0})},Zf.matchKeys=(e,t,n)=>{if(!Xf.isObject(e))throw new TypeError("Expected the first argument to be an object");let i=Zf(Object.keys(e),t,n),r={};for(let t of i)r[t]=e[t];return r},Zf.some=(e,t,n)=>{let i=[].concat(e);for(let e of[].concat(t)){let t=zf(String(e),n);if(i.some(e=>t(e)))return!0}return!1},Zf.every=(e,t,n)=>{let i=[].concat(e);for(let e of[].concat(t)){let t=zf(String(e),n);if(!i.every(e=>t(e)))return!1}return!0},Zf.all=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${Gf.inspect(e)}"`);return[].concat(t).every(t=>zf(t,n)(e))},Zf.capture=(e,t,n)=>{let i=Xf.isWindows(n),r=zf.makeRe(String(e),{...n,capture:!0}).exec(i?Xf.toPosixSlashes(t):t);if(r)return r.slice(1).map(e=>void 0===e?"":e)},Zf.makeRe=(...e)=>zf.makeRe(...e),Zf.scan=(...e)=>zf.scan(...e),Zf.parse=(e,t)=>{let n=[];for(let i of[].concat(e||[]))for(let e of Kf(String(i),t))n.push(zf.parse(e,t));return n},Zf.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!Jf(e)?[e]:Kf(e,t)},Zf.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return Zf.braces(e,{...t,expand:!0})},Zf.hasBraces=Jf;var em=r,tm=i,nm=function(e,t){if("string"!=typeof e||""===e)return!1;if(rd(e))return!0;var n=od;return t&&!1===t.strict&&(n=ad),n(e)},im=function(e){return"~"===e.charAt(0)&&(e=Pd(e)),"@"===e.charAt(0)&&(e=Ld.join(Ud,e.slice(1))),e},rm=function(e,t){return e&&"string"==typeof e?Dd.existsSync(e)?Md.resolve(e):!0===(t=t||{}).nocase?function(e){e=Md.resolve(e);var t=function(e){var t={path:e,files:[]};try{return t.files=Dd.readdirSync(e),t}catch(e){}try{return t.path=Md.dirname(e),t.files=Dd.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 s=Md.resolve(t.path,t.files[r]);if(e===s||n===s)return s;var o=s.toUpperCase();if(e===o||n===o)return s}return null}(e):null:null},sm=Zf;function om(e,t,n){for(var i,r=t.length,s=-1;++s<r;)if(i=nm(t[s])?am(e,t[s],n):cm(e,t[s],n))return i;var o=tm.dirname(e);return o===e?null:om(o,t,n)}function am(e,t,n){for(var i=sm.matcher(t,n),r=function(e){try{return em.readdirSync(e)}catch(e){}return[]}(e),s=r.length,o=-1;++o<s;){var a=r[o],c=tm.join(e,a);if(i(a)||i(c))return c}return null}function cm(e,t,n){var i=tm.resolve(e,t);return rm(i,n)}var lm=x(function(e,t){t=t||{};var n=tm.resolve(im(t.cwd||""));if("string"==typeof e)return om(n,[e],t);if(!Array.isArray(e))throw new TypeError("findup-sync expects a string or array as the first argument.");return om(n,e,t)}),um={exports:{}},pm={exports:{}};const dm="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,hm=i,fm=dm?";":":",mm=Td,gm=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),_m=(e,t)=>{const n=t.colon||fm,i=e.match(/\//)||dm&&e.match(/\\/)?[""]:[...dm?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],r=dm?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=dm?r.split(n):[""];return dm&&-1!==e.indexOf(".")&&""!==s[0]&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:r}},bm=(e,t,n)=>{"function"==typeof t&&(n=t,t={}),t||(t={});const{pathEnv:i,pathExt:r,pathExtExe:s}=_m(e,t),o=[],a=n=>new Promise((r,s)=>{if(n===i.length)return t.all&&o.length?r(o):s(gm(e));const a=i[n],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=hm.join(l,e),p=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;r(c(p,n,0))}),c=(e,n,i)=>new Promise((l,u)=>{if(i===r.length)return l(a(n+1));const p=r[i];mm(e+p,{pathExt:s},(r,s)=>{if(!r&&s){if(!t.all)return l(e+p);o.push(e+p)}return l(c(e,n,i+1))})});return n?a(0).then(e=>n(null,e),n):a(0)};var ym=bm;bm.sync=(e,t)=>{t=t||{};const{pathEnv:n,pathExt:i,pathExtExe:r}=_m(e,t),s=[];for(let o=0;o<n.length;o++){const a=n[o],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=hm.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;e<i.length;e++){const n=u+i[e];try{if(mm.sync(n,{pathExt:r})){if(!t.all)return n;s.push(n)}}catch(e){}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw gm(e)};var vm={exports:{}};const Am=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path"};vm.exports=Am,vm.exports.default=Am;var Em=vm.exports;const wm=i,xm=ym,Sm=Em;function Im(e,t){const n=e.options.env||process.env,i=process.cwd(),r=null!=e.options.cwd,s=r&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}let o;try{o=xm.sync(e.command,{path:n[Sm({env:n})],pathExt:t?wm.delimiter:void 0})}catch(e){}finally{s&&process.chdir(i)}return o&&(o=wm.resolve(r?e.options.cwd:"",o)),o}var km=function(e){return Im(e)||Im(e,!0)},Cm={};const Rm=/([()\][%!^"`<>&|;, *?])/g;Cm.command=function(e){return e=e.replace(Rm,"^$1")},Cm.argument=function(e,t){return e=(e=`"${e=(e=(e=`${e}`).replace(/(?=(\\+?)?)\1"/g,'$1$1\\"')).replace(/(?=(\\+?)?)\1$/,"$1$1")}"`).replace(Rm,"^$1"),t&&(e=e.replace(Rm,"^$1")),e};const Bm=/^#!(.*)/;const Tm=r,Om=(e="")=>{const t=e.match(Bm);if(!t)return null;const[n,i]=t[0].replace(/#! ?/,"").split(" "),r=n.split("/").pop();return"env"===r?i:i?`${r} ${i}`:r};var Nm=function(e){const t=Buffer.alloc(150);let n;try{n=Tm.openSync(e,"r"),Tm.readSync(n,t,0,150,0),Tm.closeSync(n)}catch(e){}return Om(t.toString())};const Lm=i,Pm=km,Um=Cm,Dm=Nm,Mm="win32"===process.platform,Hm=/\.(?:com|exe)$/i,Fm=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function jm(e){if(!Mm)return e;const t=function(e){e.file=Pm(e);const t=e.file&&Dm(e.file);return t?(e.args.unshift(e.file),e.command=t,Pm(e)):e.file}(e),n=!Hm.test(t);if(e.options.forceShell||n){const n=Fm.test(t);e.command=Lm.normalize(e.command),e.command=Um.command(e.command),e.args=e.args.map(e=>Um.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 $m=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:jm(i)};const Qm="win32"===process.platform;function Wm(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 qm(e,t){return Qm&&1===e&&!t.file?Wm(t.original,"spawn"):null}var Ym={hookChildProcess:function(e,t){if(!Qm)return;const n=e.emit;e.emit=function(i,r){if("exit"===i){const i=qm(r,t);if(i)return n.call(e,"error",i)}return n.apply(e,arguments)}},verifyENOENT:qm,verifyENOENTSync:function(e,t){return Qm&&1===e&&!t.file?Wm(t.original,"spawnSync"):null},notFoundError:Wm};const Gm=s,Km=$m,zm=Ym;function Xm(e,t,n){const i=Km(e,t,n),r=Gm.spawn(i.command,i.args,i.options);return zm.hookChildProcess(r,i),r}pm.exports=Xm,pm.exports.spawn=Xm,pm.exports.sync=function(e,t,n){const i=Km(e,t,n),r=Gm.spawnSync(i.command,i.args,i.options);return r.error=r.error||zm.verifyENOENTSync(r.status,i),r},pm.exports._parse=Km,pm.exports._enoent=zm;var Vm=pm.exports,Jm={exports:{}};!function(e){const t=i,n=Em,r=e=>{let i;e={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...e};let r=t.resolve(e.cwd);const s=[];for(;i!==r;)s.push(t.join(r,"node_modules/.bin")),i=r,r=t.resolve(r,"..");const o=t.resolve(e.cwd,e.execPath,"..");return s.push(o),s.concat(e.path).join(t.delimiter)};e.exports=r,e.exports.default=r,e.exports.env=t=>{const i={...(t={env:process.env,...t}).env},r=n({env:i});return t.path=i[r],i[r]=e.exports(t),i}}(Jm);var Zm=Jm.exports,eg={},tg={},ng={};Object.defineProperty(ng,"__esModule",{value:!0}),ng.SIGNALS=void 0;ng.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 ig={};Object.defineProperty(ig,"__esModule",{value:!0}),ig.SIGRTMAX=ig.getRealtimeSignals=void 0;ig.getRealtimeSignals=function(){const e=og-sg+1;return Array.from({length:e},rg)};const rg=function(e,t){return{name:`SIGRT${t+1}`,number:sg+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},sg=34,og=64;ig.SIGRTMAX=og,Object.defineProperty(tg,"__esModule",{value:!0}),tg.getSignals=void 0;var ag=b,cg=ng,lg=ig;tg.getSignals=function(){const e=(0,lg.getRealtimeSignals)();return[...cg.SIGNALS,...e].map(ug)};const ug=function({name:e,number:t,description:n,action:i,forced:r=!1,standard:s}){const{signals:{[e]:o}}=ag.constants,a=void 0!==o;return{name:e,number:a?o:t,description:n,supported:a,action:i,forced:r,standard:s}};Object.defineProperty(eg,"__esModule",{value:!0}),eg.signalsByNumber=eg.signalsByName=void 0;var pg=b,dg=tg,hg=ig;const fg=function(e,{name:t,number:n,description:i,supported:r,action:s,forced:o,standard:a}){return{...e,[t]:{name:t,number:n,description:i,supported:r,action:s,forced:o,standard:a}}},mg=(0,dg.getSignals)().reduce(fg,{});eg.signalsByName=mg;const gg=function(e,t){const n=_g(e,t);if(void 0===n)return{};const{name:i,description:r,supported:s,action:o,forced:a,standard:c}=n;return{[e]:{name:i,number:e,description:r,supported:s,action:o,forced:a,standard:c}}},_g=function(e,t){const n=t.find(({name:t})=>pg.constants.signals[t]===e);return void 0!==n?n:t.find(t=>t.number===e)},bg=function(){const e=(0,dg.getSignals)(),t=hg.SIGRTMAX+1,n=Array.from({length:t},(t,n)=>gg(n,e));return Object.assign({},...n)}();eg.signalsByNumber=bg;const{signalsByName:yg}=eg;var vg=({stdout:e,stderr:t,all:n,error:i,signal:r,exitCode:s,command:o,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:p}}})=>{s=null===s?void 0:s;const d=void 0===(r=null===r?void 0:r)?void 0:yg[r].description,h=(({timedOut:e,timeout:t,errorCode:n,signal:i,signalDescription:r,exitCode:s,isCanceled:o})=>e?`timed out after ${t} milliseconds`:o?"was canceled":void 0!==n?`failed with ${n}`:void 0!==i?`was killed with ${i} (${r})`:void 0!==s?`failed with exit code ${s}`:"failed")({timedOut:c,timeout:p,errorCode:i&&i.code,signal:r,signalDescription:d,exitCode:s,isCanceled:l}),f=`Command ${h}: ${o}`,m="[object Error]"===Object.prototype.toString.call(i),g=m?`${f}\n${i.message}`:f,_=[g,t,e].filter(Boolean).join("\n");return m?(i.originalMessage=i.message,i.message=_):i=new Error(_),i.shortMessage=g,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=r,i.signalDescription=d,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=l,i.killed=u&&!c,i},Ag={exports:{}};const Eg=["stdin","stdout","stderr"],wg=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Eg.map(t=>e[t]);if((e=>Eg.some(t=>void 0!==e[t]))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Eg.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,Eg.length);return Array.from({length:n},(e,n)=>t[n])};Ag.exports=wg,Ag.exports.node=e=>{const t=wg(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var xg=Ag.exports;const Sg=b,Ig=rp,kg=(e,t,n,i)=>{if(!Cg(t,n,i))return;const r=Bg(n),s=setTimeout(()=>{e("SIGKILL")},r);s.unref&&s.unref()},Cg=(e,{forceKillAfterTimeout:t},n)=>Rg(e)&&!1!==t&&n,Rg=e=>e===Sg.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),Bg=({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 Tg={spawnedKill:(e,t="SIGTERM",n={})=>{const i=e(t);return kg(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 s=new Promise((i,s)=>{r=setTimeout(()=>{((e,t,n)=>{e.kill(t),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))})(e,n,s)},t)}),o=i.finally(()=>{clearTimeout(r)});return Promise.race([s,o])},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=Ig(()=>{e.kill()});return i.finally(()=>{r()})}};const Og=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;Og.writable=e=>Og(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,Og.readable=e=>Og(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,Og.duplex=e=>Og.writable(e)&&Og.readable(e),Og.transform=e=>Og.duplex(e)&&"function"==typeof e._transform;var Ng=Og,Lg={exports:{}};const{PassThrough:Pg}=n;const{constants:Ug}=c,Dg=n,{promisify:Mg}=f,Hg=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 s=new Pg({objectMode:r});n&&s.setEncoding(n);let o=0;const a=[];return s.on("data",e=>{a.push(e),r?o=a.length:o+=e.length}),s.getBufferedValue=()=>t?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s},Fg=Mg(Dg.pipeline);class jg extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function $g(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:n}=t,i=Hg(t);return await new Promise((t,r)=>{const s=e=>{e&&i.getBufferedLength()<=Ug.MAX_LENGTH&&(e.bufferedData=i.getBufferedValue()),r(e)};(async()=>{try{await Fg(e,i),t()}catch(e){s(e)}})(),i.on("data",()=>{i.getBufferedLength()>n&&s(new jg)})}),i.getBufferedValue()}Lg.exports=$g,Lg.exports.buffer=(e,t)=>$g(e,{...t,encoding:"buffer"}),Lg.exports.array=(e,t)=>$g(e,{...t,array:!0}),Lg.exports.MaxBufferError=jg;var Qg=Lg.exports;const{PassThrough:Wg}=n;const qg=Ng,Yg=Qg,Gg=function(){var e=[],t=new Wg({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()}},Kg=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},zg=(e,{encoding:t,buffer:n,maxBuffer:i})=>{if(e&&n)return t?Yg(e,{encoding:t,maxBuffer:i}):Yg.buffer(e,{maxBuffer:i})};var Xg={handleInput:(e,t)=>{void 0!==t&&void 0!==e.stdin&&(qg(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream:(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const n=Gg();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:s},o)=>{const a=zg(e,{encoding:i,buffer:r,maxBuffer:s}),c=zg(t,{encoding:i,buffer:r,maxBuffer:s}),l=zg(n,{encoding:i,buffer:r,maxBuffer:2*s});try{return await Promise.all([o,a,c,l])}catch(i){return Promise.all([{error:i,signal:i.signal,timedOut:i.timedOut},Kg(e,a),Kg(t,c),Kg(n,l)])}},validateInputSync:({input:e})=>{if(qg(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}};const Vg=(async()=>{})().constructor.prototype,Jg=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Vg,e)]);var Zg={mergePromise:(e,t)=>{for(const[n,i]of Jg){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 e_=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],t_=/^[\w.-]+$/,n_=/"/g,i_=/ +/g;var r_={joinCommand:(e,t)=>e_(e,t).join(" "),getEscapedCommand:(e,t)=>e_(e,t).map(e=>(e=>"string"!=typeof e||t_.test(e)?e:`"${e.replace(n_,'\\"')}"`)(e)).join(" "),parseCommand:e=>{const t=[];for(const n of e.trim().split(i_)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t}};const s_=i,o_=s,a_=Vm,c_=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},l_=Zm,u_=Hu,p_=vg,d_=xg,{spawnedKill:h_,spawnedCancel:f_,setupTimeout:m_,validateTimeout:g_,setExitHandler:__}=Tg,{handleInput:b_,getSpawnedResult:y_,makeAllStream:v_,validateInputSync:A_}=Xg,{mergePromise:E_,getSpawnedPromise:w_}=Zg,{joinCommand:x_,parseCommand:S_,getEscapedCommand:I_}=r_,k_=(e,t,n={})=>{const i=a_._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 s=t?{...process.env,...e}:e;return n?l_.env({env:s,cwd:i,execPath:r}):s})(n),n.stdio=d_(n),"win32"===process.platform&&"cmd"===s_.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:i}},C_=(e,t,n)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?c_(t):t:void 0===n?void 0:"",R_=(e,t,n)=>{const i=k_(e,t,n),r=x_(e,t),s=I_(e,t);let o;g_(i.options);try{o=o_.spawn(i.file,i.args,i.options)}catch(e){const t=new o_.ChildProcess,n=Promise.reject(p_({error:e,stdout:"",stderr:"",all:"",command:r,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return E_(t,n)}const a=w_(o),c=m_(o,i.options,a),l=__(o,i.options,c),u={isCanceled:!1};o.kill=h_.bind(null,o.kill.bind(o)),o.cancel=f_.bind(null,o,u);const p=u_(async()=>{const[{error:e,exitCode:t,signal:n,timedOut:a},c,p,d]=await y_(o,i.options,l),h=C_(i.options,c),f=C_(i.options,p),m=C_(i.options,d);if(e||0!==t||null!==n){const c=p_({error:e,exitCode:t,signal:n,stdout:h,stderr:f,all:m,command:r,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled,killed:o.killed});if(!i.options.reject)return c;throw c}return{command:r,escapedCommand:s,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return b_(o,i.options.input),o.all=v_(o,i.options),E_(o,p)};um.exports=R_,um.exports.sync=(e,t,n)=>{const i=k_(e,t,n),r=x_(e,t),s=I_(e,t);let o;A_(i.options);try{o=o_.spawnSync(i.file,i.args,i.options)}catch(e){throw p_({error:e,stdout:"",stderr:"",all:"",command:r,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}const a=C_(i.options,o.stdout,o.error),c=C_(i.options,o.stderr,o.error);if(o.error||0!==o.status||null!==o.signal){const e=p_({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:r,escapedCommand:s,parsed:i,timedOut:o.error&&"ETIMEDOUT"===o.error.code,isCanceled:!1,killed:null!==o.signal});if(!i.options.reject)return e;throw e}return{command:r,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},um.exports.command=(e,t)=>{const[n,...i]=S_(e);return R_(n,i,t)},um.exports.commandSync=(e,t)=>{const[n,...i]=S_(e);return R_.sync(n,i,t)},um.exports.node=(e,t,n={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(n=t,t=[]);const i=d_.node(n),r=process.execArgv.filter(e=>!e.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=r}=n;return R_(s,[...o,e,...Array.isArray(t)?t:[]],{...n,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})};var B_=x(um.exports);async function T_(e){const t=process.cwd(),n=lm("dyp.config.js",{cwd:t});if(!n)throw new Error(`未在「${t}」及其上级目录找到 dyp.config.js,请在项目根目录执行命令`);const i=await import(n);return e?i.default[e]:i.default}function O_(e,t){return P_("blue",e,t)}function N_(e,t=""){return P_("green",e,t)}function L_(e,t=""){return P_("red",e,t)}function P_(e,t,n=""){return n?console.log(Bu[e](`${t}`),n):console.log(Bu[e](`${t}`))}function U_(e,t){return function(){return e.apply(t,arguments)}}const{toString:D_}=Object.prototype,{getPrototypeOf:M_}=Object,{iterator:H_,toStringTag:F_}=Symbol,j_=($_=Object.create(null),e=>{const t=D_.call(e);return $_[t]||($_[t]=t.slice(8,-1).toLowerCase())});var $_;const Q_=e=>(e=e.toLowerCase(),t=>j_(t)===e),W_=e=>t=>typeof t===e,{isArray:q_}=Array,Y_=W_("undefined");function G_(e){return null!==e&&!Y_(e)&&null!==e.constructor&&!Y_(e.constructor)&&X_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const K_=Q_("ArrayBuffer");const z_=W_("string"),X_=W_("function"),V_=W_("number"),J_=e=>null!==e&&"object"==typeof e,Z_=e=>{if("object"!==j_(e))return!1;const t=M_(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||F_ in e||H_ in e)},eb=Q_("Date"),tb=Q_("File"),nb=Q_("Blob"),ib=Q_("FileList");const rb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},sb=void 0!==rb.FormData?rb.FormData:void 0,ob=Q_("URLSearchParams"),[ab,cb,lb,ub]=["ReadableStream","Request","Response","Headers"].map(Q_);function pb(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,r;if("object"!=typeof e&&(e=[e]),q_(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{if(G_(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let o;for(i=0;i<s;i++)o=r[i],t.call(null,e[o],o,e)}}function db(e,t){if(G_(e))return null;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 hb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,fb=e=>!Y_(e)&&e!==hb;const mb=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&M_(Uint8Array)),gb=Q_("HTMLFormElement"),_b=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),bb=Q_("RegExp"),yb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};pb(n,(n,r)=>{let s;!1!==(s=t(n,r,e))&&(i[r]=s||n)}),Object.defineProperties(e,i)};const vb=Q_("AsyncFunction"),Ab=(Eb="function"==typeof setImmediate,wb=X_(hb.postMessage),Eb?setImmediate:wb?(xb=`axios@${Math.random()}`,Sb=[],hb.addEventListener("message",({source:e,data:t})=>{e===hb&&t===xb&&Sb.length&&Sb.shift()()},!1),e=>{Sb.push(e),hb.postMessage(xb,"*")}):e=>setTimeout(e));var Eb,wb,xb,Sb;const Ib="undefined"!=typeof queueMicrotask?queueMicrotask.bind(hb):"undefined"!=typeof process&&process.nextTick||Ab;var kb={isArray:q_,isArrayBuffer:K_,isBuffer:G_,isFormData:e=>{let t;return e&&(sb&&e instanceof sb||X_(e.append)&&("formdata"===(t=j_(e))||"object"===t&&X_(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&K_(e.buffer),t},isString:z_,isNumber:V_,isBoolean:e=>!0===e||!1===e,isObject:J_,isPlainObject:Z_,isEmptyObject:e=>{if(!J_(e)||G_(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:ab,isRequest:cb,isResponse:lb,isHeaders:ub,isUndefined:Y_,isDate:eb,isFile:tb,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:nb,isRegExp:bb,isFunction:X_,isStream:e=>J_(e)&&X_(e.pipe),isURLSearchParams:ob,isTypedArray:mb,isFileList:ib,forEach:pb,merge:function e(){const{caseless:t,skipUndefined:n}=fb(this)&&this||{},i={},r=(r,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const o=t&&db(i,s)||s;Z_(i[o])&&Z_(r)?i[o]=e(i[o],r):Z_(r)?i[o]=e({},r):q_(r)?i[o]=r.slice():n&&Y_(r)||(i[o]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&pb(arguments[e],r);return i},extend:(e,t,n,{allOwnKeys:i}={})=>(pb(t,(t,i)=>{n&&X_(t)?Object.defineProperty(e,i,{value:U_(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:t,writable:!0,enumerable:!0,configurable:!0})},{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),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let r,s,o;const a={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)o=r[s],i&&!i(o,e,t)||a[o]||(t[o]=e[o],a[o]=!0);e=!1!==n&&M_(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:j_,kindOfTest:Q_,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(q_(e))return e;let t=e.length;if(!V_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[H_]).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:gb,hasOwnProperty:_b,hasOwnProp:_b,reduceDescriptors:yb,freezeMethods:e=>{yb(e,(t,n)=>{if(X_(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];X_(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 q_(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)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:db,global:hb,isContextDefined:fb,isSpecCompliantForm:function(e){return!!(e&&X_(e.append)&&"FormData"===e[F_]&&e[H_])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(J_(e)){if(t.indexOf(e)>=0)return;if(G_(e))return e;if(!("toJSON"in e)){t[i]=e;const r=q_(e)?[]:{};return pb(e,(e,t)=>{const s=n(e,i+1);!Y_(s)&&(r[t]=s)}),t[i]=void 0,r}}return e};return n(e,0)},isAsyncFn:vb,isThenable:e=>e&&(J_(e)||X_(e))&&X_(e.then)&&X_(e.catch),setImmediate:Ab,asap:Ib,isIterable:e=>null!=e&&X_(e[H_])};class Cb extends Error{static from(e,t,n,i,r,s){const o=new Cb(e.message,t||e.code,n,i,r);return o.cause=e,o.name=e.name,null!=e.status&&null==o.status&&(o.status=e.status),s&&Object.assign(o,s),o}constructor(e,t,n,i,r){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status)}toJSON(){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:kb.toJSONObject(this.config),code:this.code,status:this.status}}}Cb.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Cb.ERR_BAD_OPTION="ERR_BAD_OPTION",Cb.ECONNABORTED="ECONNABORTED",Cb.ETIMEDOUT="ETIMEDOUT",Cb.ERR_NETWORK="ERR_NETWORK",Cb.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Cb.ERR_DEPRECATED="ERR_DEPRECATED",Cb.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Cb.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Cb.ERR_CANCELED="ERR_CANCELED",Cb.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Cb.ERR_INVALID_URL="ERR_INVALID_URL";var Rb=Cb,Bb=n.Stream,Tb=Ob;function Ob(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}f.inherits(Ob,Bb),Ob.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(Ob.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),Ob.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},Ob.prototype.resume=function(){this._released||this.release(),this.source.resume()},Ob.prototype.pause=function(){this.source.pause()},Ob.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},Ob.prototype.pipe=function(){var e=Bb.prototype.pipe.apply(this,arguments);return this.resume(),e},Ob.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))},Ob.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 Nb=f,Lb=n.Stream,Pb=Tb,Ub=Db;function Db(){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}Nb.inherits(Db,Lb),Db.create=function(e){var t=new this;for(var n in e=e||{})t[n]=e[n];return t},Db.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},Db.prototype.append=function(e){if(Db.isStreamLike(e)){if(!(e instanceof Pb)){var t=Pb.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},Db.prototype.pipe=function(e,t){return Lb.prototype.pipe.call(this,e,t),this.resume(),e},Db.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}}},Db.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){Db.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},Db.prototype._pipeNext=function(e){if(this._currentStream=e,Db.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},Db.prototype._handleErrors=function(e){var t=this;e.on("error",function(e){t._emitError(e)})},Db.prototype.write=function(e){this.emit("data",e)},Db.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},Db.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")},Db.prototype.end=function(){this._reset(),this.emit("end")},Db.prototype.destroy=function(){this._reset(),this.emit("close")},Db.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},Db.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},Db.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)},Db.prototype._emitError=function(e){this._reset(),this.emit("error",e)};var Mb={},Hb={"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}};!function(e){var t=Hb,n=i.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,s=/^text\//i;function o(e){if(!e||"string"!=typeof e)return!1;var n=r.exec(e),i=n&&t[n[1].toLowerCase()];return i&&i.charset?i.charset:!(!n||!s.test(n[1]))&&"UTF-8"}e.charset=o,e.charsets={lookup:o},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 i=n("x."+t).toLowerCase().substr(1);if(!i)return!1;return e.types[i]||!1},e.types=Object.create(null),function(e,n){var i=["nginx","apache",void 0,"iana"];Object.keys(t).forEach(function(r){var s=t[r],o=s.extensions;if(o&&o.length){e[r]=o;for(var a=0;a<o.length;a++){var c=o[a];if(n[c]){var l=i.indexOf(t[n[c]].source),u=i.indexOf(s.source);if("application/octet-stream"!==n[c]&&(l>u||l===u&&"application/"===n[c].substr(0,12)))continue}n[c]=r}}})}(e.extensions,e.types)}(Mb);var Fb=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},jb=function(e){var t=!1;return Fb(function(){t=!0}),function(n,i){t?e(n,i):Fb(function(){e(n,i)})}};var $b=function(e){Object.keys(e.jobs).forEach(Qb.bind(e)),e.jobs={}};function Qb(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Wb=jb,qb=$b,Yb=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,Wb(i)):e(n,t,Wb(i));return r}(t,r,e[r],function(e,t){r in n.jobs&&(delete n.jobs[r],e?qb(n):n.results[r]=t,i(e,n.results))})};var Gb=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 Kb=$b,zb=jb,Xb=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,Kb(this),zb(e)(null,this.results)};var Vb=Yb,Jb=Gb,Zb=Xb,ey=function(e,t,n){var i=Jb(e);for(;i.index<(i.keyedList||e).length;)Vb(e,t,i,function(e,t){e?n(e,t):0!==Object.keys(i.jobs).length||n(null,i.results)}),i.index++;return Zb.bind(i,n)};var ty={exports:{}},ny=Yb,iy=Gb,ry=Xb;function sy(e,t){return e<t?-1:e>t?1:0}ty.exports=function(e,t,n,i){var r=iy(e,n);return ny(e,t,r,function n(s,o){s?i(s,o):(r.index++,r.index<(r.keyedList||e).length?ny(e,t,r,n):i(null,r.results))}),ry.bind(r,i)},ty.exports.ascending=sy,ty.exports.descending=function(e,t){return-1*sy(e,t)};var oy=ty.exports,ay=oy,cy=function(e,t,n){return ay(e,t,null,n)};var ly,uy,py={parallel:ey,serial:cy,serialOrdered:oy},dy=Object,hy=Error,fy=EvalError,my=RangeError,gy=ReferenceError,_y=SyntaxError;function by(){return uy?ly:(uy=1,ly=TypeError)}var yy=URIError,vy=Math.abs,Ay=Math.floor,Ey=Math.max,wy=Math.min,xy=Math.pow,Sy=Math.round,Iy=Number.isNaN||function(e){return e!=e},ky=Object.getOwnPropertyDescriptor;if(ky)try{ky([],"length")}catch(eS){ky=null}var Cy=ky,Ry=Object.defineProperty||!1;if(Ry)try{Ry({},"a",{value:1})}catch(tS){Ry=!1}var By,Ty,Oy,Ny,Ly,Py,Uy,Dy,My=Ry;function Hy(){return Ty?By:(Ty=1,By=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var i in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(42!==s.value||!0!==s.enumerable)return!1}return!0})}function Fy(){return Py?Ly:(Py=1,Ly="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function jy(){return Dy?Uy:(Dy=1,Uy=dy.getPrototypeOf||null)}var $y,Qy,Wy,qy,Yy,Gy,Ky,zy,Xy,Vy,Jy,Zy,ev,tv,nv=Object.prototype.toString,iv=Math.max,rv=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n},sv=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==nv.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,i=function(e,t){for(var n=[],i=t||0,r=0;i<e.length;i+=1,r+=1)n[r]=e[i];return n}(arguments,1),r=iv(0,t.length-i.length),s=[],o=0;o<r;o++)s[o]="$"+o;if(n=Function("binder","return function ("+function(e,t){for(var n="",i=0;i<e.length;i+=1)n+=e[i],i+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof n){var r=t.apply(this,rv(i,arguments));return Object(r)===r?r:this}return t.apply(e,rv(i,arguments))}),t.prototype){var a=function(){};a.prototype=t.prototype,n.prototype=new a,a.prototype=null}return n},ov=Function.prototype.bind||sv;function av(){return Qy?$y:(Qy=1,$y=Function.prototype.call)}function cv(){return qy?Wy:(qy=1,Wy=Function.prototype.apply)}function lv(){if(zy)return Ky;zy=1;var e=ov,t=cv(),n=av(),i=Gy?Yy:(Gy=1,Yy="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return Ky=i||e.call(n,t)}function uv(){if(Zy)return Jy;Zy=1;var e,t=function(){if(Vy)return Xy;Vy=1;var e=ov,t=by(),n=av(),i=lv();return Xy=function(r){if(r.length<1||"function"!=typeof r[0])throw new t("a function is required");return i(e,n,r)}}(),n=Cy;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var i=!!e&&n&&n(Object.prototype,"__proto__"),r=Object,s=r.getPrototypeOf;return Jy=i&&"function"==typeof i.get?t([i.get]):"function"==typeof s&&function(e){return s(null==e?e:r(e))}}var pv,dv=Function.prototype.call,hv=Object.prototype.hasOwnProperty,fv=ov.call(dv,hv),mv=dy,gv=hy,_v=fy,bv=my,yv=gy,vv=_y,Av=by(),Ev=yy,wv=vy,xv=Ay,Sv=Ey,Iv=wy,kv=xy,Cv=Sy,Rv=function(e){return Iy(e)||0===e?e:e<0?-1:1},Bv=Function,Tv=function(e){try{return Bv('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ov=Cy,Nv=My,Lv=function(){throw new Av},Pv=Ov?function(){try{return Lv}catch(e){try{return Ov(arguments,"callee").get}catch(e){return Lv}}}():Lv,Uv=function(){if(Ny)return Oy;Ny=1;var e="undefined"!=typeof Symbol&&Symbol,t=Hy();return Oy=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Dv=function(){if(tv)return ev;tv=1;var e=Fy(),t=jy(),n=uv();return ev=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),Mv=jy(),Hv=Fy(),Fv=cv(),jv=av(),$v={},Qv="undefined"!=typeof Uint8Array&&Dv?Dv(Uint8Array):pv,Wv={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?pv:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?pv:ArrayBuffer,"%ArrayIteratorPrototype%":Uv&&Dv?Dv([][Symbol.iterator]()):pv,"%AsyncFromSyncIteratorPrototype%":pv,"%AsyncFunction%":$v,"%AsyncGenerator%":$v,"%AsyncGeneratorFunction%":$v,"%AsyncIteratorPrototype%":$v,"%Atomics%":"undefined"==typeof Atomics?pv:Atomics,"%BigInt%":"undefined"==typeof BigInt?pv:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?pv:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?pv:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?pv:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":gv,"%eval%":eval,"%EvalError%":_v,"%Float16Array%":"undefined"==typeof Float16Array?pv:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?pv:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?pv:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?pv:FinalizationRegistry,"%Function%":Bv,"%GeneratorFunction%":$v,"%Int8Array%":"undefined"==typeof Int8Array?pv:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?pv:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?pv:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Uv&&Dv?Dv(Dv([][Symbol.iterator]())):pv,"%JSON%":"object"==typeof JSON?JSON:pv,"%Map%":"undefined"==typeof Map?pv:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Uv&&Dv?Dv((new Map)[Symbol.iterator]()):pv,"%Math%":Math,"%Number%":Number,"%Object%":mv,"%Object.getOwnPropertyDescriptor%":Ov,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?pv:Promise,"%Proxy%":"undefined"==typeof Proxy?pv:Proxy,"%RangeError%":bv,"%ReferenceError%":yv,"%Reflect%":"undefined"==typeof Reflect?pv:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?pv:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Uv&&Dv?Dv((new Set)[Symbol.iterator]()):pv,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?pv:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Uv&&Dv?Dv(""[Symbol.iterator]()):pv,"%Symbol%":Uv?Symbol:pv,"%SyntaxError%":vv,"%ThrowTypeError%":Pv,"%TypedArray%":Qv,"%TypeError%":Av,"%Uint8Array%":"undefined"==typeof Uint8Array?pv:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?pv:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?pv:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?pv:Uint32Array,"%URIError%":Ev,"%WeakMap%":"undefined"==typeof WeakMap?pv:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?pv:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?pv:WeakSet,"%Function.prototype.call%":jv,"%Function.prototype.apply%":Fv,"%Object.defineProperty%":Nv,"%Object.getPrototypeOf%":Mv,"%Math.abs%":wv,"%Math.floor%":xv,"%Math.max%":Sv,"%Math.min%":Iv,"%Math.pow%":kv,"%Math.round%":Cv,"%Math.sign%":Rv,"%Reflect.getPrototypeOf%":Hv};if(Dv)try{null.error}catch(nS){var qv=Dv(Dv(nS));Wv["%Error.prototype%"]=qv}var Yv,Gv,Kv=function e(t){var n;if("%AsyncFunction%"===t)n=Tv("async function () {}");else if("%GeneratorFunction%"===t)n=Tv("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=Tv("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&Dv&&(n=Dv(r.prototype))}return Wv[t]=n,n},zv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Xv=ov,Vv=fv,Jv=Xv.call(jv,Array.prototype.concat),Zv=Xv.call(Fv,Array.prototype.splice),eA=Xv.call(jv,String.prototype.replace),tA=Xv.call(jv,String.prototype.slice),nA=Xv.call(jv,RegExp.prototype.exec),iA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,rA=/\\(\\)?/g,sA=function(e,t){var n,i=e;if(Vv(zv,i)&&(i="%"+(n=zv[i])[0]+"%"),Vv(Wv,i)){var r=Wv[i];if(r===$v&&(r=Kv(i)),void 0===r&&!t)throw new Av("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:r}}throw new vv("intrinsic "+e+" does not exist!")};var oA=function(e,t){if("string"!=typeof e||0===e.length)throw new Av("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Av('"allowMissing" argument must be a boolean');if(null===nA(/^%?[^%]*%?$/,e))throw new vv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=tA(e,0,1),n=tA(e,-1);if("%"===t&&"%"!==n)throw new vv("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new vv("invalid intrinsic syntax, expected opening `%`");var i=[];return eA(e,iA,function(e,t,n,r){i[i.length]=n?eA(r,rA,"$1"):t||e}),i}(e),i=n.length>0?n[0]:"",r=sA("%"+i+"%",t),s=r.name,o=r.value,a=!1,c=r.alias;c&&(i=c[0],Zv(n,Jv([0,1],c)));for(var l=1,u=!0;l<n.length;l+=1){var p=n[l],d=tA(p,0,1),h=tA(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new vv("property names with quotes must have matching quotes");if("constructor"!==p&&u||(a=!0),Vv(Wv,s="%"+(i+="."+p)+"%"))o=Wv[s];else if(null!=o){if(!(p in o)){if(!t)throw new Av("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ov&&l+1>=n.length){var f=Ov(o,p);o=(u=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:o[p]}else u=Vv(o,p),o=o[p];u&&!a&&(Wv[s]=o)}}return o},aA=oA("%Object.defineProperty%",!0),cA=function(){if(Gv)return Yv;Gv=1;var e=Hy();return Yv=function(){return e()&&!!Symbol.toStringTag}}()(),lA=fv,uA=by(),pA=cA?Symbol.toStringTag:null,dA=Ub,hA=f,fA=i,mA=l,gA=u,_A=A.parse,bA=r,yA=n.Stream,vA=o,AA=Mb,EA=py,wA=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==i&&"boolean"!=typeof i)throw new uA("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!pA||!n&&lA(e,pA)||(aA?aA(e,pA,{configurable:!i,enumerable:!1,value:t,writable:!1}):e[pA]=t)},xA=fv,SA=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e};function IA(e){if(!(this instanceof IA))return new IA(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],dA.call(this),e=e||{})this[t]=e[t]}hA.inherits(IA,dA),IA.LINE_BREAK="\r\n",IA.DEFAULT_CONTENT_TYPE="application/octet-stream",IA.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var i=dA.prototype.append.bind(this);if("number"!=typeof t&&null!=t||(t=String(t)),Array.isArray(t))this._error(new Error("Arrays are not supported."));else{var r=this._multiPartHeader(e,t,n),s=this._multiPartFooter();i(r),i(t),i(s),this._trackLength(r,t,n)}},IA.prototype._trackLength=function(e,t,n){var i=0;null!=n.knownLength?i+=Number(n.knownLength):Buffer.isBuffer(t)?i=t.length:"string"==typeof t&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+IA.LINE_BREAK.length,t&&(t.path||t.readable&&xA(t,"httpVersion")||t instanceof yA)&&(n.knownLength||this._valuesToMeasure.push(t))},IA.prototype._lengthRetriever=function(e,t){xA(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):bA.stat(e.path,function(n,i){if(n)t(n);else{var r=i.size-(e.start?e.start:0);t(null,r)}}):xA(e,"httpVersion")?t(null,Number(e.headers["content-length"])):xA(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")},IA.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var i,r=this._getContentDisposition(t,n),s=this._getContentType(t,n),o="",a={"Content-Disposition":["form-data",'name="'+e+'"'].concat(r||[]),"Content-Type":[].concat(s||[])};for(var c in"object"==typeof n.header&&SA(a,n.header),a)if(xA(a,c)){if(null==(i=a[c]))continue;Array.isArray(i)||(i=[i]),i.length&&(o+=c+": "+i.join("; ")+IA.LINE_BREAK)}return"--"+this.getBoundary()+IA.LINE_BREAK+o+IA.LINE_BREAK},IA.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=fA.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=fA.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&xA(e,"httpVersion")&&(n=fA.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},IA.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=AA.lookup(e.name)),!n&&e&&e.path&&(n=AA.lookup(e.path)),!n&&e&&e.readable&&xA(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=AA.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=IA.DEFAULT_CONTENT_TYPE),n},IA.prototype._multiPartFooter=function(){return function(e){var t=IA.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},IA.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+IA.LINE_BREAK},IA.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)xA(e,t)&&(n[t.toLowerCase()]=e[t]);return n},IA.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},IA.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},IA.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(IA.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},IA.prototype._generateBoundary=function(){this._boundary="--------------------------"+vA.randomBytes(12).toString("hex")},IA.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},IA.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},IA.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?EA.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))},IA.prototype.submit=function(e,t){var n,i,r={method:"post"};return"string"==typeof e?(e=_A(e),i=SA({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(i=SA(e,r)).port||(i.port="https:"===i.protocol?443:80),i.headers=this.getHeaders(e.headers),n="https:"===i.protocol?gA.request(i):mA.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,s=function(e,i){return n.removeListener("error",s),n.removeListener("response",r),t.call(this,e,i)};r=s.bind(this,null),n.on("error",s),n.on("response",r)}}.bind(this)),n},IA.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},IA.prototype.toString=function(){return"[object FormData]"},wA(IA.prototype,"FormData");var kA=x(IA);function CA(e){return kb.isPlainObject(e)||kb.isArray(e)}function RA(e){return kb.endsWith(e,"[]")?e.slice(0,-2):e}function BA(e,t,n){return e?e.concat(t).map(function(e,t){return e=RA(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const TA=kb.toFlatObject(kb,{},null,function(e){return/^is[A-Z]/.test(e)});function OA(e,t,n){if(!kb.isObject(e))throw new TypeError("target must be an object");t=t||new(kA||FormData),n=kb.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!kb.isUndefined(t[e])});const i=n.metaTokens,r=n.visitor||l,s=n.dots,o=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&kb.isSpecCompliantForm(t);if(!kb.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(kb.isDate(e))return e.toISOString();if(kb.isBoolean(e))return e.toString();if(!a&&kb.isBlob(e))throw new Rb("Blob is not supported. Use a Buffer instead.");return kb.isArrayBuffer(e)||kb.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,r){let a=e;if(kb.isReactNative(t)&&kb.isReactNativeBlob(e))return t.append(BA(r,n,s),c(e)),!1;if(e&&!r&&"object"==typeof e)if(kb.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(kb.isArray(e)&&function(e){return kb.isArray(e)&&!e.some(CA)}(e)||(kb.isFileList(e)||kb.endsWith(n,"[]"))&&(a=kb.toArray(e)))return n=RA(n),a.forEach(function(e,i){!kb.isUndefined(e)&&null!==e&&t.append(!0===o?BA([n],i,s):null===o?n:n+"[]",c(e))}),!1;return!!CA(e)||(t.append(BA(r,n,s),c(e)),!1)}const u=[],p=Object.assign(TA,{defaultVisitor:l,convertValue:c,isVisitable:CA});if(!kb.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!kb.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+i.join("."));u.push(n),kb.forEach(n,function(n,s){!0===(!(kb.isUndefined(n)||null===n)&&r.call(t,n,kb.isString(s)?s.trim():s,i,p))&&e(n,i?i.concat(s):[s])}),u.pop()}}(e),t}function NA(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function LA(e,t){this._pairs=[],e&&OA(e,this,t)}const PA=LA.prototype;function UA(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function DA(e,t,n){if(!t)return e;const i=n&&n.encode||UA,r=kb.isFunction(n)?{serialize:n}:n,s=r&&r.serialize;let o;if(o=s?s(t,r):kb.isURLSearchParams(t)?t.toString():new LA(t,r).toString(i),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}PA.append=function(e,t){this._pairs.push([e,t])},PA.toString=function(e){const t=e?function(t){return e.call(this,t,NA)}:NA;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var MA=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){kb.forEach(this.handlers,function(t){null!==t&&e(t)})}},HA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},FA=A.URLSearchParams;const jA="abcdefghijklmnopqrstuvwxyz",$A="0123456789",QA={DIGIT:$A,ALPHA:jA,ALPHA_DIGIT:jA+jA.toUpperCase()+$A};var WA={isNode:!0,classes:{URLSearchParams:FA,FormData:kA,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:QA,generateString:(e=16,t=QA.ALPHA_DIGIT)=>{let n="";const{length:i}=t,r=new Uint32Array(e);o.randomFillSync(r);for(let s=0;s<e;s++)n+=t[r[s]%i];return n},protocols:["http","https","file","data"]};const qA="undefined"!=typeof window&&"undefined"!=typeof document,YA="object"==typeof navigator&&navigator||void 0,GA=qA&&(!YA||["ReactNative","NativeScript","NS"].indexOf(YA.product)<0),KA="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,zA=qA&&window.location.href||"http://localhost";var XA={...Object.freeze({__proto__:null,hasBrowserEnv:qA,hasStandardBrowserEnv:GA,hasStandardBrowserWebWorkerEnv:KA,navigator:YA,origin:zA}),...WA};function VA(e){function t(e,n,i,r){let s=e[r++];if("__proto__"===s)return!0;const o=Number.isFinite(+s),a=r>=e.length;if(s=!s&&kb.isArray(i)?i.length:s,a)return kb.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!o;i[s]&&kb.isObject(i[s])||(i[s]=[]);return t(e,n,i[s],r)&&kb.isArray(i[s])&&(i[s]=function(e){const t={},n=Object.keys(e);let i;const r=n.length;let s;for(i=0;i<r;i++)s=n[i],t[s]=e[s];return t}(i[s])),!o}if(kb.isFormData(e)&&kb.isFunction(e.entries)){const n={};return kb.forEachEntry(e,(e,i)=>{t(function(e){return kb.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),i,n,0)}),n}return null}const JA={transitional:HA,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=kb.isObject(e);r&&kb.isHTMLForm(e)&&(e=new FormData(e));if(kb.isFormData(e))return i?JSON.stringify(VA(e)):e;if(kb.isArrayBuffer(e)||kb.isBuffer(e)||kb.isStream(e)||kb.isFile(e)||kb.isBlob(e)||kb.isReadableStream(e))return e;if(kb.isArrayBufferView(e))return e.buffer;if(kb.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return OA(e,new XA.classes.URLSearchParams,{visitor:function(e,t,n,i){return XA.isNode&&kb.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=kb.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return OA(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),function(e,t,n){if(kb.isString(e))try{return(t||JSON.parse)(e),kb.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||JA.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(kb.isResponse(e)||kb.isReadableStream(e))return e;if(e&&kb.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw Rb.from(e,Rb.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:XA.classes.FormData,Blob:XA.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};kb.forEach(["delete","get","head","post","put","patch"],e=>{JA.headers[e]={}});var ZA=JA;const eE=kb.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 tE=Symbol("internals");function nE(e,t){if(!1!==e&&null!=e)if(kb.isArray(e))e.forEach(e=>nE(e,t));else if(!(e=>!/[\r\n]/.test(e))(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}function iE(e){return e&&String(e).trim().toLowerCase()}function rE(e){return!1===e||null==e?e:kb.isArray(e)?e.map(rE):function(e){let t=e.length;for(;t>0;){const n=e.charCodeAt(t-1);if(10!==n&&13!==n)break;t-=1}return t===e.length?e:e.slice(0,t)}(String(e))}function sE(e,t,n,i,r){return kb.isFunction(i)?i.call(this,t,n):(r&&(t=n),kb.isString(t)?kb.isString(i)?-1!==t.indexOf(i):kb.isRegExp(i)?i.test(t):void 0:void 0)}class oE{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=iE(t);if(!r)throw new Error("header name must be a non-empty string");const s=kb.findKey(i,r);(!s||void 0===i[s]||!0===n||void 0===n&&!1!==i[s])&&(nE(e,t),i[s||t]=rE(e))}const s=(e,t)=>kb.forEach(e,(e,n)=>r(e,n,t));if(kb.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(kb.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((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]&&eE[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t})(e),t);else if(kb.isObject(e)&&kb.isIterable(e)){let n,i,r={};for(const t of e){if(!kb.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[i=t[0]]=(n=r[i])?kb.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=iE(e)){const n=kb.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(kb.isFunction(t))return t.call(this,e,n);if(kb.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=iE(e)){const n=kb.findKey(this,e);return!(!n||void 0===this[n]||t&&!sE(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=iE(e)){const r=kb.findKey(n,e);!r||t&&!sE(0,n[r],r,t)||(delete n[r],i=!0)}}return kb.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&&!sE(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return kb.forEach(this,(i,r)=>{const s=kb.findKey(n,r);if(s)return t[s]=rE(i),void delete t[r];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();o!==r&&delete t[r],t[o]=rE(i),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return kb.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&kb.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")}getSetCookie(){return this.get("set-cookie")||[]}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[tE]=this[tE]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=iE(e);t[i]||(!function(e,t){const n=kb.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 kb.isArray(e)?e.forEach(i):i(e),this}}oE.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),kb.reduceDescriptors(oE.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),kb.freezeMethods(oE);var aE=oE;function cE(e,t){const n=this||ZA,i=t||n,r=aE.from(i.headers);let s=i.data;return kb.forEach(e,function(e){s=e.call(n,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function lE(e){return!(!e||!e.__CANCEL__)}var uE=class extends Rb{constructor(e,t,n){super(null==e?"canceled":e,Rb.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function pE(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new Rb("Request failed with status code "+n.status,[Rb.ERR_BAD_REQUEST,Rb.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function dE(e,t,n){let i=!function(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(i||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var hE={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function fE(e){var t=("string"==typeof e?function(e){try{return new URL(e)}catch{return null}}(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=mE("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,s=i?parseInt(i[2]):0;return!(!s||s===t)||(/^[.*]/.test(r)?("*"===r.charAt(0)&&(r=r.slice(1)),!e.endsWith(r)):e!==r)})}(i=i.replace(/:\d*$/,""),r=parseInt(r)||hE[n]||0))return"";var s=mE(n+"_proxy")||mE("all_proxy");return s&&-1===s.indexOf("://")&&(s=n+"://"+s),s}function mE(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}var gE,_E,bE,yE,vE,AE={exports:{}},EE={exports:{}},wE={exports:{}};function xE(){if(_E)return gE;_E=1;var e=1e3,t=60*e,n=60*t,i=24*n,r=7*i,s=365.25*i;function o(e,t,n,i){var r=t>=1.5*n;return Math.round(e/n)+" "+i+(r?"s":"")}return gE=function(a,c){c=c||{};var l=typeof a;if("string"===l&&a.length>0)return function(o){if((o=String(o)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;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}}(a);if("number"===l&&isFinite(a))return c.long?function(r){var s=Math.abs(r);if(s>=i)return o(r,s,i,"day");if(s>=n)return o(r,s,n,"hour");if(s>=t)return o(r,s,t,"minute");if(s>=e)return o(r,s,e,"second");return r+" ms"}(a):function(r){var s=Math.abs(r);if(s>=i)return Math.round(r/i)+"d";if(s>=n)return Math.round(r/n)+"h";if(s>=t)return Math.round(r/t)+"m";if(s>=e)return Math.round(r/e)+"s";return r+"ms"}(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))},gE}function SE(){if(yE)return bE;return yE=1,bE=function(e){function t(e){let i,r,s,o=null;function a(...e){if(!a.enabled)return;const n=a,r=Number(new Date),s=r-(i||r);n.diff=s,n.prev=i,n.curr=r,i=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(i,r)=>{if("%%"===i)return"%";o++;const s=t.formatters[r];if("function"==typeof s){const t=e[o];i=s.call(n,t),e.splice(o,1),o--}return i}),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(r!==t.namespaces&&(r=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function i(e,t){let n=0,i=0,r=-1,s=0;for(;n<e.length;)if(i<t.length&&(t[i]===e[n]||"*"===t[i]))"*"===t[i]?(r=i,s=n,i++):(n++,i++);else{if(-1===r)return!1;i=r+1,s++,n=s}for(;i<t.length&&"*"===t[i];)i++;return i===t.length}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,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(i(e,n))return!1;for(const n of t.names)if(i(e,n))return!0;return!1},t.humanize=xE(),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},bE}var IE,kE,CE,RE={exports:{}};function BE(){return IE||(IE=1,function(e,t){const n=y,i=f;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.formatWithOptions(t.inspectOpts,...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),s=` ${r};1m${i} [0m`;n[0]=s+n[0].split("\n").join("\n"+s),n.push(r+"m+"+e.exports.humanize(this.diff)+"[0m")}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=ou;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=SE()(t);const{formatters:r}=e.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}}(RE,RE.exports)),RE.exports}function TE(){return kE||(kE=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?EE.exports=(vE||(vE=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")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[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=SE()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(wE,wE.exports)),wE.exports):EE.exports=BE()),EE.exports}var OE,NE,LE,PE=A,UE=PE.URL,DE=l,ME=u,HE=n.Writable,FE=a,jE=function(){if(!CE){try{CE=TE()("follow-redirects")}catch(e){}"function"!=typeof CE&&(CE=function(){})}CE.apply(null,arguments)};OE="undefined"!=typeof process,NE="undefined"!=typeof window&&"undefined"!=typeof document,LE=cw(Error.captureStackTrace),OE||!NE&&LE||console.warn("The follow-redirects package should be excluded from browser builds.");var $E=!1;try{FE(new UE(""))}catch(vg){$E="ERR_INVALID_URL"===vg.code}var QE=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],WE=["abort","aborted","connect","error","socket","timeout"],qE=Object.create(null);WE.forEach(function(e){qE[e]=function(t,n,i){this._redirectable.emit(e,t,n,i)}});var YE=sw("ERR_INVALID_URL","Invalid URL",TypeError),GE=sw("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),KE=sw("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",GE),zE=sw("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),XE=sw("ERR_STREAM_WRITE_AFTER_END","write after end"),VE=HE.prototype.destroy||ew;function JE(e,t){HE.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){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof GE?e:new GE({cause:e}))}},this._performRequest()}function ZE(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach(function(i){var r=i+":",s=n[r]=e[i],o=t[i]=Object.create(s);Object.defineProperties(o,{request:{value:function(e,i,s){var o;return o=e,UE&&o instanceof UE?e=iw(e):aw(e)?e=iw(tw(e)):(s=i,i=nw(e),e={protocol:r}),cw(i)&&(s=i,i=null),(i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i)).nativeProtocols=n,aw(i.host)||aw(i.hostname)||(i.hostname="::1"),FE.equal(i.protocol,r,"protocol mismatch"),jE("options",i),new JE(i,s)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var i=o.request(e,t,n);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})}),t}function ew(){}function tw(e){var t;if($E)t=new UE(e);else if(!aw((t=nw(PE.parse(e))).protocol))throw new YE({input:e});return t}function nw(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new YE({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new YE({input:e.href||e});return e}function iw(e,t){var n=t||{};for(var i of QE)n[i]=e[i];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function rw(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 sw(e,t,n){function i(n){cw(Error.captureStackTrace)&&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),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),i}function ow(e,t){for(var n of WE)e.removeListener(n,qE[n]);e.on("error",ew),e.destroy(t)}function aw(e){return"string"==typeof e||e instanceof String}function cw(e){return"function"==typeof e}JE.prototype=Object.create(HE.prototype),JE.prototype.abort=function(){ow(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},JE.prototype.destroy=function(e){return ow(this._currentRequest,e),VE.call(this,e),this},JE.prototype.write=function(e,t,n){if(this._ending)throw new XE;if(!aw(e)&&("object"!=typeof(i=e)||!("length"in i)))throw new TypeError("data should be a string, Buffer or Uint8Array");var i;cw(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 zE),this.abort()):n&&n()},JE.prototype.end=function(e,t,n){if(cw(e)?(n=e,e=t=null):cw(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)},JE.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},JE.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},JE.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"),s()},e),i(t)}function s(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",s),n.removeListener("error",s),n.removeListener("response",s),n.removeListener("close",s),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",s),this.on("error",s),this.on("response",s),this.on("close",s),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){JE.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(JE.prototype,e,{get:function(){return this._currentRequest[e]}})}),JE.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))}},JE.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);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,WE))i.on(r,qE[r]);if(this._currentUrl=/^\//.test(this._options.path)?PE.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;!function e(t){if(i===o._currentRequest)if(t)o.emit("error",t);else if(s<a.length){var n=a[s++];i.finished||i.write(n.data,n.encoding,e)}else o._ended&&i.end()}()}},JE.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,i=e.headers.location;if(!i||!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(ow(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new KE;var r=this._options.beforeRedirect;r&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=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=[],rw(/^content-/i,this._options.headers));var o,a,c=rw(/^host$/i,this._options.headers),l=tw(this._currentUrl),u=c||l.host,p=/^\w+:/.test(i)?this._currentUrl:PE.format(Object.assign(l,{host:u})),d=(o=i,a=p,$E?new UE(o,a):tw(PE.resolve(a,o)));if(jE("redirecting to",d.href),this._isRedirect=!0,iw(d,this._options),(d.protocol!==l.protocol&&"https:"!==d.protocol||d.host!==u&&!function(e,t){FE(aw(e)&&aw(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(d.host,u))&&rw(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),cw(r)){var h={headers:e.headers,statusCode:t},f={url:p,method:s,headers:n};r(this._options,h,f),this._sanitizeOptions(this._options)}this._performRequest()},AE.exports=ZE({http:DE,https:ME}),AE.exports.wrap=ZE;var lw=x(AE.exports);const uw="1.15.0";function pw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const dw=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const hw=Symbol("internals");class fw extends n.Transform{constructor(e){e=kb.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!kb.isUndefined(t[e])),super({readableHighWaterMark:e.chunkSize});const t=this[hw]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){const t=this[hw];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const i=this[hw],r=i.maxRate,s=this.readableHighWaterMark,o=i.timeWindow,a=r/(1e3/o),c=!1!==i.minChunkSize?Math.max(i.minChunkSize,.01*a):0,l=(e,t)=>{const n=Buffer.byteLength(e);i.bytesSeen+=n,i.bytes+=n,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(e)?process.nextTick(t):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(t)}},u=(e,t)=>{const n=Buffer.byteLength(e);let u,p=null,d=s,h=0;if(r){const e=Date.now();(!i.ts||(h=e-i.ts)>=o)&&(i.ts=e,u=a-i.bytes,i.bytes=u<0?-u:0,h=0),u=a-i.bytes}if(r){if(u<=0)return setTimeout(()=>{t(null,e)},o-h);u<d&&(d=u)}d&&n>d&&n-d>c&&(p=e.subarray(d),e=e.subarray(0,d)),l(e,p?()=>{process.nextTick(t,null,p)}:t)};u(e,function e(t,i){if(t)return n(t);i?u(i,e):n(null)})}}var mw=fw;const{asyncIterator:gw}=Symbol;var _w=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[gw]?yield*e[gw]():yield e};const bw=XA.ALPHABET.ALPHA_DIGIT+"-_",yw="function"==typeof TextEncoder?new TextEncoder:new f.TextEncoder,vw="\r\n",Aw=yw.encode(vw);class Ew{constructor(e,t){const{escapeName:n}=this.constructor,i=kb.isString(t);let r=`Content-Disposition: form-data; name="${n(e)}"${!i&&t.name?`; filename="${n(t.name)}"`:""}${vw}`;i?t=yw.encode(String(t).replace(/\r?\n|\r\n?/g,vw)):r+=`Content-Type: ${t.type||"application/octet-stream"}${vw}`,this.headers=yw.encode(r+vw),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;kb.isTypedArray(e)?yield e:yield*_w(e),yield Aw}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e]))}}var ww=(e,t,i)=>{const{tag:r="form-data-boundary",size:s=25,boundary:o=r+"-"+XA.generateString(s,bw)}=i||{};if(!kb.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=yw.encode("--"+o+vw),c=yw.encode("--"+o+"--"+vw);let l=c.byteLength;const u=Array.from(e.entries()).map(([e,t])=>{const n=new Ew(e,t);return l+=n.size,n});l+=a.byteLength*u.length,l=kb.toFiniteNumber(l);const p={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(l)&&(p["Content-Length"]=l),t&&t(p),n.Readable.from(async function*(){for(const e of u)yield a,yield*e.encode();yield c}())};class xw extends n.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 Sw=xw;var Iw=(e,t)=>kb.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 kw={http:80,https:443,ws:80,wss:443,ftp:21},Cw=e=>e?("["===e.charAt(0)&&"]"===e.charAt(e.length-1)&&(e=e.slice(1,-1)),e.replace(/\.+$/,"")):e;function Rw(e){let t;try{t=new URL(e)}catch(e){return!1}const n=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!n)return!1;if("*"===n)return!0;const i=Number.parseInt(t.port,10)||kw[t.protocol.split(":",1)[0]]||0,r=Cw(t.hostname.toLowerCase());return n.split(/[\s,]+/).some(e=>{if(!e)return!1;let[t,n]=(e=>{let t=e,n=0;if("["===t.charAt(0)){const e=t.indexOf("]");if(-1!==e){const i=t.slice(1,e),r=t.slice(e+1);return":"===r.charAt(0)&&/^\d+$/.test(r.slice(1))&&(n=Number.parseInt(r.slice(1),10)),[i,n]}}const i=t.indexOf(":"),r=t.lastIndexOf(":");return-1!==i&&i===r&&/^\d+$/.test(t.slice(r+1))&&(n=Number.parseInt(t.slice(r+1),10),t=t.slice(0,r)),[t,n]})(e);return t=Cw(t),!!t&&((!n||n===i)&&("*"===t.charAt(0)&&(t=t.slice(1)),"."===t.charAt(0)?r.endsWith(t):r===t))})}const Bw=(e,t,n=3)=>{let i=0;const r=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,s=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=i[o];r||(r=c),n[s]=a,i[s]=c;let u=o,p=0;for(;u!==s;)p+=n[u++],u%=e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-r<t)return;const d=l&&c-l;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,i,r=0,s=1e3/t;const o=(t,s=Date.now())=>{r=s,n=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-r;a>=s?o(e,t):(n=e,i||(i=setTimeout(()=>{i=null,o(n)},s-a)))},()=>n&&o(n)]}(n=>{const s=n.loaded,o=n.lengthComputable?n.total:void 0,a=s-i,c=r(a);i=s;e({loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&s<=o?(o-s)/c:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},Tw=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Ow=e=>(...t)=>kb.asap(()=>e(...t));const Nw={flush:m.constants.Z_SYNC_FLUSH,finishFlush:m.constants.Z_SYNC_FLUSH},Lw={flush:m.constants.BROTLI_OPERATION_FLUSH,finishFlush:m.constants.BROTLI_OPERATION_FLUSH},Pw=kb.isFunction(m.createBrotliDecompress),{http:Uw,https:Dw}=lw,Mw=/https:?/,Hw=XA.protocols.map(e=>e+":"),Fw=(e,[t,n])=>(e.on("end",n).on("error",n),t);const jw=new class{constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign({sessionTimeout:1e3},t);let n=this.sessions[e];if(n){let e=n.length;for(let i=0;i<e;i++){const[e,r]=n[i];if(!e.destroyed&&!e.closed&&f.isDeepStrictEqual(r,t))return e}}const i=E.connect(e,t);let r;const s=()=>{if(r)return;r=!0;let t=n,s=t.length,o=s;for(;o--;)if(t[o][0]===i)return 1===s?delete this.sessions[e]:t.splice(o,1),void(i.closed||i.close())},o=i.request,{sessionTimeout:a}=t;if(null!=a){let e,t=0;i.request=function(){const n=o.apply(this,arguments);return t++,e&&(clearTimeout(e),e=null),n.once("close",()=>{--t||(e=setTimeout(()=>{e=null,s()},a))}),n}}i.once("close",s);let c=[i,t];return n?n.push(c):n=this.sessions[e]=[c],i}};function $w(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Qw(e,t,n){let i=t;if(!i&&!1!==i){const e=fE(n);e&&(Rw(n)||(i=new URL(e)))}if(i){if(i.username&&(i.auth=(i.username||"")+":"+(i.password||"")),i.auth){if(Boolean(i.auth.username||i.auth.password))i.auth=(i.auth.username||"")+":"+(i.auth.password||"");else if("object"==typeof i.auth)throw new Rb("Invalid proxy authorization",Rb.ERR_BAD_OPTION,{proxy:i});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){Qw(e,t,e.href)}}const Ww="undefined"!=typeof process&&"process"===kb.kindOf(process),qw=(e,t)=>(({address:e,family:t})=>{if(!kb.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(kb.isObject(e)?e:{address:e,family:t}),Yw={request(e,t){const n=e.protocol+"//"+e.hostname+":"+(e.port||("https:"===e.protocol?443:80)),{http2Options:i,headers:r}=e,s=jw.getSession(n,i),{HTTP2_HEADER_SCHEME:o,HTTP2_HEADER_METHOD:a,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=E.constants,u={[o]:e.protocol.replace(":",""),[a]:e.method,[c]:e.path};kb.forEach(r,(e,t)=>{":"!==t.charAt(0)&&(u[t]=e)});const p=s.request(u);return p.once("response",e=>{const n=p,i=(e=Object.assign({},e))[l];delete e[l],n.headers=e,n.statusCode=+i,t(n)}),p}};var Gw=Ww&&function(e){return t=async function(t,i,r){let{data:s,lookup:o,family:a,httpVersion:c=1,http2Options:p}=e;const{responseType:d,responseEncoding:g}=e,_=e.method.toUpperCase();let b,y,v=!1;if(c=+c,Number.isNaN(c))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(1!==c&&2!==c)throw TypeError(`Unsupported protocol version '${c}'`);const A=2===c;if(o){const e=Iw(o,e=>kb.isArray(e)?e:[e]);o=(t,n,i)=>{e(t,n,(e,t,r)=>{if(e)return i(e);const s=kb.isArray(t)?t.map(e=>qw(e)):[qw(t,r)];n.all?i(e,s):i(e,s[0].address,s[0].family)})}}const E=new h.EventEmitter;function w(t){try{E.emit("abort",!t||t.type?new uE(null,e,y):t)}catch(e){console.warn("emit error",e)}}E.once("abort",i);const x=()=>{e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w),E.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w))),r((e,t)=>{if(b=!0,t)return v=!0,void x();const{data:i}=e;if(i instanceof n.Readable||i instanceof n.Duplex){const e=n.finished(i,()=>{e(),x()})}else x()});const S=dE(e.baseURL,e.url,e.allowAbsoluteUrls),I=new URL(S,XA.hasBrowserEnv?XA.origin:void 0),k=I.protocol||Hw[0];if("data:"===k){if(e.maxContentLength>-1){const t=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),i=e.slice(t+1);if(/;base64/i.test(n)){let e=i.length;const t=i.length;for(let n=0;n<t;n++)if(37===i.charCodeAt(n)&&n+2<t){const t=i.charCodeAt(n+1),r=i.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102)&&(e-=2,n+=2)}let n=0,r=t-1;const s=e=>e>=2&&37===i.charCodeAt(e-2)&&51===i.charCodeAt(e-1)&&(68===i.charCodeAt(e)||100===i.charCodeAt(e));r>=0&&(61===i.charCodeAt(r)?(n++,r--):s(r)&&(n++,r-=3)),1===n&&r>=0&&(61===i.charCodeAt(r)||s(r))&&n++;const o=3*Math.floor(e/4)-(n||0);return o>0?o:0}return Buffer.byteLength(i,"utf8")}(String(e.url||S||""));if(t>e.maxContentLength)return i(new Rb("maxContentLength size of "+e.maxContentLength+" exceeded",Rb.ERR_BAD_RESPONSE,e))}let r;if("GET"!==_)return pE(t,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{r=function(e,t,n){const i=n&&n.Blob||XA.classes.Blob,r=pw(e);if(void 0===t&&i&&(t=!0),"data"===r){e=r.length?e.slice(r.length+1):e;const n=dw.exec(e);if(!n)throw new Rb("Invalid URL",Rb.ERR_INVALID_URL);const s=n[1],o=n[2],a=n[3],c=Buffer.from(decodeURIComponent(a),o?"base64":"utf8");if(t){if(!i)throw new Rb("Blob is not supported",Rb.ERR_NOT_SUPPORT);return new i([c],{type:s})}return c}throw new Rb("Unsupported protocol "+r,Rb.ERR_NOT_SUPPORT)}(e.url,"blob"===d,{Blob:e.env&&e.env.Blob})}catch(t){throw Rb.from(t,Rb.ERR_BAD_REQUEST,e)}return"text"===d?(r=r.toString(g),g&&"utf8"!==g||(r=kb.stripBOM(r))):"stream"===d&&(r=n.Readable.from(r)),pE(t,i,{data:r,status:200,statusText:"OK",headers:new aE,config:e})}if(-1===Hw.indexOf(k))return i(new Rb("Unsupported protocol "+k,Rb.ERR_BAD_REQUEST,e));const C=aE.from(e.headers).normalize();C.set("User-Agent","axios/"+uw,!1);const{onUploadProgress:R,onDownloadProgress:B}=e,T=e.maxRate;let O,N;if(kb.isSpecCompliantForm(s)){const e=C.getContentType(/boundary=([-_\w\d]{10,70})/i);s=ww(s,e=>{C.set(e)},{tag:`axios-${uw}-boundary`,boundary:e&&e[1]||void 0})}else if(kb.isFormData(s)&&kb.isFunction(s.getHeaders)){if(C.set(s.getHeaders()),!C.hasContentLength())try{const e=await f.promisify(s.getLength).call(s);Number.isFinite(e)&&e>=0&&C.setContentLength(e)}catch(e){}}else if(kb.isBlob(s)||kb.isFile(s))s.size&&C.setContentType(s.type||"application/octet-stream"),C.setContentLength(s.size||0),s=n.Readable.from(_w(s));else if(s&&!kb.isStream(s)){if(Buffer.isBuffer(s));else if(kb.isArrayBuffer(s))s=Buffer.from(new Uint8Array(s));else{if(!kb.isString(s))return i(new Rb("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",Rb.ERR_BAD_REQUEST,e));s=Buffer.from(s,"utf-8")}if(C.setContentLength(s.length,!1),e.maxBodyLength>-1&&s.length>e.maxBodyLength)return i(new Rb("Request body larger than maxBodyLength limit",Rb.ERR_BAD_REQUEST,e))}const L=kb.toFiniteNumber(C.getContentLength());let P,U;kb.isArray(T)?(O=T[0],N=T[1]):O=N=T,s&&(R||O)&&(kb.isStream(s)||(s=n.Readable.from(s,{objectMode:!1})),s=n.pipeline([s,new mw({maxRate:kb.toFiniteNumber(O)})],kb.noop),R&&s.on("progress",Fw(s,Tw(L,Bw(Ow(R),!1,3))))),e.auth&&(P=(e.auth.username||"")+":"+(e.auth.password||"")),!P&&I.username&&(P=I.username+":"+I.password),P&&C.delete("authorization");try{U=DA(I.pathname+I.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)}C.set("Accept-Encoding","gzip, compress, deflate"+(Pw?", br":""),!1);const D={path:U,method:_,headers:C.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:P,protocol:k,family:a,beforeRedirect:$w,beforeRedirects:{},http2Options:p};let M;!kb.isUndefined(o)&&(D.lookup=o),e.socketPath?D.socketPath=e.socketPath:(D.hostname=I.hostname.startsWith("[")?I.hostname.slice(1,-1):I.hostname,D.port=I.port,Qw(D,e.proxy,k+"//"+I.hostname+(I.port?":"+I.port:"")+D.path));const H=Mw.test(D.protocol);if(D.agent=H?e.httpsAgent:e.httpAgent,A?M=Yw:e.transport?M=e.transport:0===e.maxRedirects?M=H?u:l:(e.maxRedirects&&(D.maxRedirects=e.maxRedirects),e.beforeRedirect&&(D.beforeRedirects.config=e.beforeRedirect),M=H?Dw:Uw),e.maxBodyLength>-1?D.maxBodyLength=e.maxBodyLength:D.maxBodyLength=1/0,e.insecureHTTPParser&&(D.insecureHTTPParser=e.insecureHTTPParser),y=M.request(D,function(r){if(y.destroyed)return;const s=[r],o=kb.toFiniteNumber(r.headers["content-length"]);if(B||N){const e=new mw({maxRate:kb.toFiniteNumber(N)});B&&e.on("progress",Fw(e,Tw(o,Bw(Ow(B),!0,3)))),s.push(e)}let a=r;const c=r.req||y;if(!1!==e.decompress&&r.headers["content-encoding"])switch("HEAD"!==_&&204!==r.statusCode||delete r.headers["content-encoding"],(r.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":s.push(m.createUnzip(Nw)),delete r.headers["content-encoding"];break;case"deflate":s.push(new Sw),s.push(m.createUnzip(Nw)),delete r.headers["content-encoding"];break;case"br":Pw&&(s.push(m.createBrotliDecompress(Lw)),delete r.headers["content-encoding"])}a=s.length>1?n.pipeline(s,kb.noop):s[0];const l={status:r.statusCode,statusText:r.statusMessage,headers:new aE(r.headers),config:e,request:c};if("stream"===d)l.data=a,pE(t,i,l);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(),w(new Rb("maxContentLength size of "+e.maxContentLength+" exceeded",Rb.ERR_BAD_RESPONSE,e,c)))}),a.on("aborted",function(){if(v)return;const t=new Rb("stream has been aborted",Rb.ERR_BAD_RESPONSE,e,c);a.destroy(t),i(t)}),a.on("error",function(t){y.destroyed||i(Rb.from(t,null,e,c))}),a.on("end",function(){try{let e=1===n.length?n[0]:Buffer.concat(n);"arraybuffer"!==d&&(e=e.toString(g),g&&"utf8"!==g||(e=kb.stripBOM(e))),l.data=e}catch(t){return i(Rb.from(t,null,e,l.request,l))}pE(t,i,l)})}E.once("abort",e=>{a.destroyed||(a.emit("error",e),a.destroy())})}),E.once("abort",e=>{y.close?y.close():y.destroy(e)}),y.on("error",function(t){i(Rb.from(t,null,e,y))}),y.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void w(new Rb("error trying to parse `config.timeout` to int",Rb.ERR_BAD_OPTION_VALUE,e,y));y.setTimeout(t,function(){if(b)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||HA;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),w(new Rb(t,n.clarifyTimeoutError?Rb.ETIMEDOUT:Rb.ECONNABORTED,e,y))})}else y.setTimeout(0);if(kb.isStream(s)){let t=!1,n=!1;s.on("end",()=>{t=!0}),s.once("error",e=>{n=!0,y.destroy(e)}),s.on("close",()=>{t||n||w(new uE("Request stream has been aborted",e,y))}),s.pipe(y)}else s&&y.write(s),y.end()},new Promise((e,n)=>{let i,r;const s=(e,t)=>{r||(r=!0,i&&i(e,t))},o=e=>{s(e,!0),n(e)};t(t=>{s(t),e(t)},o,e=>i=e).catch(o)});var t},Kw=XA.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,XA.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(XA.origin),XA.navigator&&/(msie|trident)/i.test(XA.navigator.userAgent)):()=>!0,zw=XA.hasStandardBrowserEnv?{write(e,t,n,i,r,s,o){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];kb.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),kb.isString(i)&&a.push(`path=${i}`),kb.isString(r)&&a.push(`domain=${r}`),!0===s&&a.push("secure"),kb.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};const Xw=e=>e instanceof aE?{...e}:e;function Vw(e,t){t=t||{};const n={};function i(e,t,n,i){return kb.isPlainObject(e)&&kb.isPlainObject(t)?kb.merge.call({caseless:i},e,t):kb.isPlainObject(t)?kb.merge({},t):kb.isArray(t)?t.slice():t}function r(e,t,n,r){return kb.isUndefined(t)?kb.isUndefined(e)?void 0:i(void 0,e,0,r):i(e,t,0,r)}function s(e,t){if(!kb.isUndefined(t))return i(void 0,t)}function o(e,t){return kb.isUndefined(t)?kb.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(n,r,s){return s in t?i(n,r):s in e?i(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t,n)=>r(Xw(e),Xw(t),0,!0)};return kb.forEach(Object.keys({...e,...t}),function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;const s=kb.hasOwnProp(c,i)?c[i]:r,o=s(e[i],t[i],i);kb.isUndefined(o)&&s!==a||(n[i]=o)}),n}var Jw=e=>{const t=Vw({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:s,headers:o,auth:a}=t;if(t.headers=o=aE.from(o),t.url=DA(dE(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),kb.isFormData(n))if(XA.hasStandardBrowserEnv||XA.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(kb.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}if(XA.hasStandardBrowserEnv&&(i&&kb.isFunction(i)&&(i=i(t)),i||!1!==i&&Kw(t.url))){const e=r&&s&&zw.read(s);e&&o.set(r,e)}return t};var Zw="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const i=Jw(e);let r=i.data;const s=aE.from(i.headers).normalize();let o,a,c,l,u,{responseType:p,onUploadProgress:d,onDownloadProgress:h}=i;function f(){l&&l(),u&&u(),i.cancelToken&&i.cancelToken.unsubscribe(o),i.signal&&i.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function g(){if(!m)return;const i=aE.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());pE(function(e){t(e),f()},function(e){n(e),f()},{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:e,request:m}),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Rb("Request aborted",Rb.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const i=t&&t.message?t.message:"Network Error",r=new Rb(i,Rb.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||HA;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new Rb(t,r.clarifyTimeoutError?Rb.ETIMEDOUT:Rb.ECONNABORTED,e,m)),m=null},void 0===r&&s.setContentType(null),"setRequestHeader"in m&&kb.forEach(s.toJSON(),function(e,t){m.setRequestHeader(t,e)}),kb.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),p&&"json"!==p&&(m.responseType=i.responseType),h&&([c,u]=Bw(h,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,l]=Bw(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(i.cancelToken||i.signal)&&(o=t=>{m&&(n(!t||t.type?new uE(null,e,m):t),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(o),i.signal&&(i.signal.aborted?o():i.signal.addEventListener("abort",o)));const _=pw(i.url);_&&-1===XA.protocols.indexOf(_)?n(new Rb("Unsupported protocol "+_+":",Rb.ERR_BAD_REQUEST,e)):m.send(r||null)})};var ex=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController;const r=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;i.abort(t instanceof Rb?t:new uE(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,r(new Rb(`timeout of ${t}ms exceeded`,Rb.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const{signal:a}=i;return a.unsubscribe=()=>kb.asap(o),a}};const tx=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let i,r=0;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},nx=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ix=(e,t,n,i)=>{const r=async function*(e,t){for await(const n of nx(e))yield*tx(n,t)}(e,t);let s,o=0,a=e=>{s||(s=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await r.next();if(t)return a(),void e.close();let s=i.byteLength;if(n){let e=o+=s;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw a(e),e}},cancel:e=>(a(e),r.return())},{highWaterMark:2})},{isFunction:rx}=kb,sx=(({Request:e,Response:t})=>({Request:e,Response:t}))(kb.global),{ReadableStream:ox,TextEncoder:ax}=kb.global,cx=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},lx=e=>{e=kb.merge.call({skipUndefined:!0},sx,e);const{fetch:t,Request:n,Response:i}=e,r=t?rx(t):"function"==typeof fetch,s=rx(n),o=rx(i);if(!r)return!1;const a=r&&rx(ox),c=r&&("function"==typeof ax?(l=new ax,e=>l.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var l;const u=s&&a&&cx(()=>{let e=!1;const t=new ox,i=new n(XA.origin,{body:t,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return t.cancel(),e&&!i}),p=o&&a&&cx(()=>kb.isReadableStream(new i("").body)),d={stream:p&&(e=>e.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new Rb(`Response type '${e}' is not supported`,Rb.ERR_NOT_SUPPORT,n)})});const h=async(e,t)=>{const i=kb.toFiniteNumber(e.getContentLength());return null==i?(async e=>{if(null==e)return 0;if(kb.isBlob(e))return e.size;if(kb.isSpecCompliantForm(e)){const t=new n(XA.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return kb.isArrayBufferView(e)||kb.isArrayBuffer(e)?e.byteLength:(kb.isURLSearchParams(e)&&(e+=""),kb.isString(e)?(await c(e)).byteLength:void 0)})(t):i};return async e=>{let{url:r,method:o,data:a,signal:c,cancelToken:l,timeout:f,onDownloadProgress:m,onUploadProgress:g,responseType:_,headers:b,withCredentials:y="same-origin",fetchOptions:v}=Jw(e),A=t||fetch;_=_?(_+"").toLowerCase():"text";let E=ex([c,l&&l.toAbortSignal()],f),w=null;const x=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let S;try{if(g&&u&&"get"!==o&&"head"!==o&&0!==(S=await h(b,a))){let e,t=new n(r,{method:"POST",body:a,duplex:"half"});if(kb.isFormData(a)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=Tw(S,Bw(Ow(g)));a=ix(t.body,65536,e,n)}}kb.isString(y)||(y=y?"include":"omit");const t=s&&"credentials"in n.prototype,c={...v,signal:E,method:o.toUpperCase(),headers:b.normalize().toJSON(),body:a,duplex:"half",credentials:t?y:void 0};w=s&&new n(r,c);let l=await(s?A(w,v):A(r,c));const f=p&&("stream"===_||"response"===_);if(p&&(m||f&&x)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=l[t]});const t=kb.toFiniteNumber(l.headers.get("content-length")),[n,r]=m&&Tw(t,Bw(Ow(m),!0))||[];l=new i(ix(l.body,65536,n,()=>{r&&r(),x&&x()}),e)}_=_||"text";let I=await d[kb.findKey(d,_)||"text"](l,e);return!f&&x&&x(),await new Promise((t,n)=>{pE(t,n,{data:I,headers:aE.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:w})})}catch(t){if(x&&x(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Rb("Network Error",Rb.ERR_NETWORK,e,w,t&&t.response),{cause:t.cause||t});throw Rb.from(t,t&&t.code,e,w,t&&t.response)}}},ux=new Map,px=e=>{let t=e&&e.env||{};const{fetch:n,Request:i,Response:r}=t,s=[i,r,n];let o,a,c=s.length,l=ux;for(;c--;)o=s[c],a=l.get(o),void 0===a&&l.set(o,a=c?new Map:lx(t)),l=a;return a};px();const dx={http:Gw,xhr:Zw,fetch:{get:px}};kb.forEach(dx,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const hx=e=>`- ${e}`,fx=e=>kb.isFunction(e)||null===e||!1===e;var mx={getAdapter:function(e,t){e=kb.isArray(e)?e:[e];const{length:n}=e;let i,r;const s={};for(let o=0;o<n;o++){let n;if(i=e[o],r=i,!fx(i)&&(r=dx[(n=String(i)).toLowerCase()],void 0===r))throw new Rb(`Unknown adapter '${n}'`);if(r&&(kb.isFunction(r)||(r=r.get(t))))break;s[n||"#"+o]=r}if(!r){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(hx).join("\n"):" "+hx(e[0]):"as no adapter specified";throw new Rb("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:dx};function gx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new uE(null,e)}function _x(e){gx(e),e.headers=aE.from(e.headers),e.data=cE.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return mx.getAdapter(e.adapter||ZA.adapter,e)(e).then(function(t){return gx(e),t.data=cE.call(e,e.transformResponse,t),t.headers=aE.from(t.headers),t},function(t){return lE(t)||(gx(e),t&&t.response&&(t.response.data=cE.call(e,e.transformResponse,t.response),t.response.headers=aE.from(t.response.headers))),Promise.reject(t)})}const bx={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bx[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const yx={};bx.transitional=function(e,t,n){function i(e,t){return"[Axios v"+uw+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,s)=>{if(!1===e)throw new Rb(i(r," has been removed"+(t?" in "+t:"")),Rb.ERR_DEPRECATED);return t&&!yx[r]&&(yx[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},bx.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var vx={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Rb("options must be an object",Rb.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const s=i[r],o=t[s];if(o){const t=e[s],n=void 0===t||o(t,s,e);if(!0!==n)throw new Rb("option "+s+" must be "+n,Rb.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Rb("Unknown option "+s,Rb.ERR_BAD_OPTION)}},validators:bx};const Ax=vx.validators;class Ex{constructor(e){this.defaults=e||{},this.interceptors={request:new MA,response:new MA}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),i=-1===t?-1:n.indexOf("\n",t+1),r=-1===i?"":n.slice(i+1);String(e.stack).endsWith(r)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Vw(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&vx.assertOptions(n,{silentJSONParsing:Ax.transitional(Ax.boolean),forcedJSONParsing:Ax.transitional(Ax.boolean),clarifyTimeoutError:Ax.transitional(Ax.boolean),legacyInterceptorReqResOrdering:Ax.transitional(Ax.boolean)},!1),null!=i&&(kb.isFunction(i)?t.paramsSerializer={serialize:i}:vx.assertOptions(i,{encode:Ax.function,serialize:Ax.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),vx.assertOptions(t,{baseUrl:Ax.spelling("baseURL"),withXsrfToken:Ax.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=r&&kb.merge(r.common,r[t.method]);r&&kb.forEach(["delete","get","head","post","put","patch","common"],e=>{delete r[e]}),t.headers=aE.concat(s,r);const o=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||HA;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,p=0;if(!a){const e=[_x.bind(this),void 0];for(e.unshift(...o),e.push(...c),u=e.length,l=Promise.resolve(t);p<u;)l=l.then(e[p++],e[p++]);return l}u=o.length;let d=t;for(;p<u;){const e=o[p++],t=o[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=_x.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,u=c.length;p<u;)l=l.then(c[p++],c[p++]);return l}getUri(e){return DA(dE((e=Vw(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}kb.forEach(["delete","get","head","options"],function(e){Ex.prototype[e]=function(t,n){return this.request(Vw(n||{},{method:e,url:t,data:(n||{}).data}))}}),kb.forEach(["post","put","patch"],function(e){function t(t){return function(n,i,r){return this.request(Vw(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ex.prototype[e]=t(),Ex.prototype[e+"Form"]=t(!0)});var wx=Ex;class xx{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 uE(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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new xx(function(t){e=t}),cancel:e}}}var Sx=xx;const Ix={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ix).forEach(([e,t])=>{Ix[t]=e});var kx=Ix;const Cx=function e(t){const n=new wx(t),i=U_(wx.prototype.request,n);return kb.extend(i,wx.prototype,n,{allOwnKeys:!0}),kb.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(Vw(t,n))},i}(ZA);Cx.Axios=wx,Cx.CanceledError=uE,Cx.CancelToken=Sx,Cx.isCancel=lE,Cx.VERSION=uw,Cx.toFormData=OA,Cx.AxiosError=Rb,Cx.Cancel=Cx.CanceledError,Cx.all=function(e){return Promise.all(e)},Cx.spread=function(e){return function(t){return e.apply(null,t)}},Cx.isAxiosError=function(e){return kb.isObject(e)&&!0===e.isAxiosError},Cx.mergeConfig=Vw,Cx.AxiosHeaders=aE,Cx.formToJSON=e=>VA(kb.isHTMLForm(e)?new FormData(e):e),Cx.getAdapter=mx.getAdapter,Cx.HttpStatusCode=kx,Cx.default=Cx;var Rx=Cx;const Bx="https://qyapi.weixin.qq.com";async function Tx(e,t){let n={};n=t&&0!==Object.keys(t).length?t:await async function(){return await T_("wxServerConfig")}();const{WX_COMPANY_ID:i,WX_APP_ID:r,WX_APP_SECRET:s}=n;try{const t=await async function({id:e,secret:t}){try{return(await Rx({url:`${Bx}/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:s}),n={...{msgtype:"text",agentid:r,...e},...e},o=await(async(e,t)=>(await Rx({url:`${Bx}/cgi-bin/message/send?access_token=${e}`,method:"POST",data:{touser:t.touser||"@all",...t}})).data)(t,n);return N_("wx:信息发送成功!",o),!0}catch(e){return L_("wx:信息发送失败!",e),!1}}id.locale("zh-cn"),async function(){return await T_()}().then(t=>{const{projectInfo:n={name:""},locaPath:i,protocol:r="http",staticPath:s={},serverOption:o={},shell:a}=t.uploadServeConfig||{},c=t.wxServerConfig,l="production"===process.env.VUE_APP_PACK_ENV,u=process.env.VUE_APP_LINE_VERSION,p=l&&2===+u?o.host[1]:o.host[0],d=l?s.pro:s.dev,h=`${r}://${p}/${d}`,f={port:22,...o,host:p,locaPath:`${process.cwd()}${i}`,pathNmae:`${o.pathNmae}${d}`};if(!e.existsSync(f.locaPath))return L_("本地打包目录不存在,请先执行构建:",f.locaPath),void(process.exitCode=1);const m=Number(f.port)||22,g=a||`rm -rf ${f.pathNmae}/*`,_=function(){const e=B_.commandSync("git rev-parse --short HEAD"),t=`git log --pretty=format:“%s” ${e.stdout} -1`,{stdout:n,stderr:i}=B_.commandSync(t);return{commitId:e.stdout,commitMsg:n}}();function b(e){return`<div class="gray">${id().format("lll")}</div><div class="highlight">${n.name}${l?"生产":"开发"}环境发布${e}</div><div class="normal">commitId:${_.commitId}</div><div class="normal">commitMsg:${_.commitMsg}</div><div class="normal">访问地址:${h}</div>`}!function(e,t=""){P_("cyan",e,t)}("本次打包信息 =>",{...n||{},serverPath:f.pathNmae});const y=Vp("正在发布到"+(l?"生产":"开发")+"服务器..."),v=new Ga.Client;!function(e,t=""){P_("magenta",e,t)}("正在建立连接"),v.on("error",function(e){L_("SSH 连接失败:",e.message||e)}).on("ready",function(){if(O_("已连接"),!f.pathNmae)return O_("连接已关闭"),v.end(),!1;v.exec(g,function(e,t){if(e)return L_("远程清理命令执行失败:",e.message||e),void v.end();t.on("close",function(e,t){if(0!==e)return L_("远程清理命令异常退出,退出码:",String(e)),void v.end();!function(e,t=""){P_("yellow",e,t)}("已清理服务端目录"),O_("开始上传"),y.start();const n=new Yl,i={host:f.host,port:m,username:f.username,password:f.password};f.privateKey&&(i.privateKey=f.privateKey),n.connect(i).then(()=>n.uploadDir(f.locaPath,f.pathNmae)).then(()=>n.end()).then(()=>{y.stop(),N_("Success! 成功发布到"+(l?"生产":"开发")+"服务器!",`访问地址====>${h}`),Tx({msgtype:"textcard",textcard:{title:"发布成功",description:b("成功"),url:h,btntxt:"更多"}},c),v.end()}).catch(e=>{y.stop();try{n.end()}catch(e){}L_("发布失败(SFTP 上传):",e.message||e),Tx({msgtype:"textcard",textcard:{title:"发布失败",description:b("失败"),url:h,btntxt:"更多"}},c),v.end()})})})}).connect({host:f.host,port:m,username:f.username,password:f.password,privateKey:f.privateKey||void 0})}).catch(e=>{L_("发布流程异常:",e.message||e),process.exitCode=1})});
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("node:fs"),require("net"),require("stream"),require("path"),require("fs"),require("child_process"),require("crypto"),require("assert"),require("buffer"),require("http"),require("https"),require("tls"),require("dns"),require("events"),require("util"),require("zlib"),require("node:path"),require("readline"),require("os"),require("tty"),require("node:url"),require("url"),require("http2")):"function"==typeof define&&define.amd?define(["node:fs","net","stream","path","fs","child_process","crypto","assert","buffer","http","https","tls","dns","events","util","zlib","node:path","readline","os","tty","node:url","url","http2"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).require$$0$b,e.require$$0$7,e.stream$3,e.require$$0$5,e.require$$0$6,e.require$$4,e.require$$0$4,e.require$$0$3,e.require$$0$2,e.require$$0$a,e.require$$1,e.require$$2$1,e.require$$2,e.require$$0$9,e.require$$0$8,e.zlib$1,e.require$$1$1,e.require$$0$d,e.require$$0$c,e.require$$1$2,null,e.require$$5,e.http2)}(this,function(e,t,n,i,r,s,o,a,c,l,u,p,d,h,f,m,g,_,b,y,v,A,E){"use strict";var w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function x(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S,I={exports:{}},k={newInvalidAsn1Error:function(e){var t=new Error;return t.name="InvalidAsn1Error",t.message=e||"",t}},C={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},R=c,B=R.Buffer,T={};for(S in R)R.hasOwnProperty(S)&&"SlowBuffer"!==S&&"Buffer"!==S&&(T[S]=R[S]);var O=T.Buffer={};for(S in B)B.hasOwnProperty(S)&&"allocUnsafe"!==S&&"allocUnsafeSlow"!==S&&(O[S]=B[S]);if(T.Buffer.prototype=B.prototype,O.from&&O.from!==Uint8Array.from||(O.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 B(e,t,n)}),O.alloc||(O.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=B(e);return t&&0!==t.length?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i}),!T.kStringMaxLength)try{T.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(Ox){}T.constants||(T.constants={MAX_LENGTH:T.kMaxLength},T.kStringMaxLength&&(T.constants.MAX_STRING_LENGTH=T.kStringMaxLength));var N=T,L=a,P=N.Buffer,U=C,D=k.newInvalidAsn1Error;function M(e){if(!e||!P.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(M.prototype,"length",{enumerable:!0,get:function(){return this._len}}),Object.defineProperty(M.prototype,"offset",{enumerable:!0,get:function(){return this._offset}}),Object.defineProperty(M.prototype,"remain",{get:function(){return this._size-this._offset}}),Object.defineProperty(M.prototype,"buffer",{get:function(){return this._buf.slice(this._offset)}}),M.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},M.prototype.peek=function(){return this.readByte(!0)},M.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&~t)this._len=t;else{if(0===(t&=127))throw D("Indefinite length not supported");if(t>4)throw D("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++])}return e},M.prototype.readSequence=function(e){var t=this.peek();if(null===t)return null;if(void 0!==e&&e!==t)throw D("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)},M.prototype.readInt=function(){return this._readTag(U.Integer)},M.prototype.readBoolean=function(){return 0!==this._readTag(U.Boolean)},M.prototype.readEnumeration=function(){return this._readTag(U.Enumeration)},M.prototype.readString=function(e,t){e||(e=U.OctetString);var n=this.peek();if(null===n)return null;if(n!==e)throw D("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?P.alloc(0):"";var r=this._buf.slice(this._offset,this._offset+this.length);return this._offset+=this.length,t?r:r.toString("utf8")},M.prototype.readOID=function(e){e||(e=U.OID);var t=this.readString(e,!0);if(null===t)return null;for(var n=[],i=0,r=0;r<t.length;r++){var s=255&t[r];i<<=7,i+=127&s,128&s||(n.push(i),i=0)}return i=n.shift(),n.unshift(i%40),n.unshift(i/40|0),n.join(".")},M.prototype._readTag=function(e){L.ok(void 0!==e);var t=this.peek();if(null===t)return null;if(t!==e)throw D("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 D("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,s=0;s<this.length;s++)r<<=8,r|=255&this._buf[this._offset++];return 128&~i||4===s||(r-=1<<8*s),r|0};var H=M,F=a,j=N.Buffer,$=C,Q=k.newInvalidAsn1Error,W={size:1024,growthFactor:8};function q(e){var t,n;t=W,n=e||{},F.ok(t),F.equal(typeof t,"object"),F.ok(n),F.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=j.alloc(e.size||1024),this._size=this._buf.length,this._offset=0,this._options=e,this._seq=[]}Object.defineProperty(q.prototype,"buffer",{get:function(){if(this._seq.length)throw Q(this._seq.length+" unended sequence(s)");return this._buf.slice(0,this._offset)}}),q.prototype.writeByte=function(e){if("number"!=typeof e)throw new TypeError("argument must be a Number");this._ensure(1),this._buf[this._offset++]=e},q.prototype.writeInt=function(e,t){if("number"!=typeof e)throw new TypeError("argument must be a Number");"number"!=typeof t&&(t=$.Integer);for(var n=4;(!(4286578688&e)||-8388608==(4286578688&e))&&n>1;)n--,e<<=8;if(n>4)throw Q("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},q.prototype.writeNull=function(){this.writeByte($.Null),this.writeByte(0)},q.prototype.writeEnumeration=function(e,t){if("number"!=typeof e)throw new TypeError("argument must be a Number");return"number"!=typeof t&&(t=$.Enumeration),this.writeInt(e,t)},q.prototype.writeBoolean=function(e,t){if("boolean"!=typeof e)throw new TypeError("argument must be a Boolean");"number"!=typeof t&&(t=$.Boolean),this._ensure(3),this._buf[this._offset++]=t,this._buf[this._offset++]=1,this._buf[this._offset++]=e?255:0},q.prototype.writeString=function(e,t){if("string"!=typeof e)throw new TypeError("argument must be a string (was: "+typeof e+")");"number"!=typeof t&&(t=$.OctetString);var n=j.byteLength(e);this.writeByte(t),this.writeLength(n),n&&(this._ensure(n),this._buf.write(e,this._offset),this._offset+=n)},q.prototype.writeBuffer=function(e,t){if("number"!=typeof t)throw new TypeError("tag must be a number");if(!j.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},q.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)})},q.prototype.writeOID=function(e,t){if("string"!=typeof e)throw new TypeError("argument must be a string");if("number"!=typeof t&&(t=$.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(t>>>7&255|128),e.push(127&t)):t<268435456?(e.push(t>>>21|128),e.push(t>>>14&255|128),e.push(t>>>7&255|128),e.push(127&t)):(e.push(t>>>28&255|128),e.push(t>>>21&255|128),e.push(t>>>14&255|128),e.push(t>>>7&255|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)})},q.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 Q("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}},q.prototype.startSequence=function(e){"number"!=typeof e&&(e=$.Sequence|$.Constructor),this.writeByte(e),this._seq.push(this._offset),this._ensure(3),this._offset+=3},q.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 Q("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}},q.prototype._shift=function(e,t,n){F.ok(void 0!==e),F.ok(void 0!==t),F.ok(n),this._buf.copy(this._buf,e+n,e,e+t),this._offset+=n},q.prototype._ensure=function(e){if(F.ok(e),this._size-this._offset<e){var t=this._size*this._options.growthFactor;t-this._offset<e&&(t+=e);var n=j.alloc(t);this._buf.copy(n,0,0,this._offset),this._buf=n,this._size=t}};var Y=q;!function(e){var t=k,n=C,i=H,r=Y;for(var s in e.exports={Reader:i,Writer:r},n)n.hasOwnProperty(s)&&(e.exports[s]=n[s]);for(var o in t)t.hasOwnProperty(o)&&(e.exports[o]=t[o])}(I);var G=I.exports,K={Ber:G,BerReader:G.Reader,BerWriter:G.Writer};function z(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var X={exports:{}};!function(e){!function(e){var t=function(e){var t,n=new Float64Array(16);if(e)for(t=0;t<e.length;t++)n[t]=e[t];return n},n=function(){throw new Error("no PRNG")},i=new Uint8Array(16),r=new Uint8Array(32);r[0]=9;var s=t(),a=t([1]),c=t([56129,1]),l=t([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),u=t([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),p=t([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),d=t([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),h=t([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function f(e,t,n,i){e[t]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n,e[t+4]=i>>24&255,e[t+5]=i>>16&255,e[t+6]=i>>8&255,e[t+7]=255&i}function m(e,t,n,i,r){var s,o=0;for(s=0;s<r;s++)o|=e[t+s]^n[i+s];return(1&o-1>>>8)-1}function g(e,t,n,i){return m(e,t,n,i,16)}function _(e,t,n,i){return m(e,t,n,i,32)}function b(e,t,n,i){!function(e,t,n,i){for(var r,s=255&i[0]|(255&i[1])<<8|(255&i[2])<<16|(255&i[3])<<24,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&i[4]|(255&i[5])<<8|(255&i[6])<<16|(255&i[7])<<24,p=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,f=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&i[8]|(255&i[9])<<8|(255&i[10])<<16|(255&i[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,_=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,v=255&i[12]|(255&i[13])<<8|(255&i[14])<<16|(255&i[15])<<24,A=s,E=o,w=a,x=c,S=l,I=u,k=p,C=d,R=h,B=f,T=m,O=g,N=_,L=b,P=y,U=v,D=0;D<20;D+=2)A^=(r=(N^=(r=(R^=(r=(S^=(r=A+N|0)<<7|r>>>25)+A|0)<<9|r>>>23)+S|0)<<13|r>>>19)+R|0)<<18|r>>>14,I^=(r=(E^=(r=(L^=(r=(B^=(r=I+E|0)<<7|r>>>25)+I|0)<<9|r>>>23)+B|0)<<13|r>>>19)+L|0)<<18|r>>>14,T^=(r=(k^=(r=(w^=(r=(P^=(r=T+k|0)<<7|r>>>25)+T|0)<<9|r>>>23)+P|0)<<13|r>>>19)+w|0)<<18|r>>>14,U^=(r=(O^=(r=(C^=(r=(x^=(r=U+O|0)<<7|r>>>25)+U|0)<<9|r>>>23)+x|0)<<13|r>>>19)+C|0)<<18|r>>>14,A^=(r=(x^=(r=(w^=(r=(E^=(r=A+x|0)<<7|r>>>25)+A|0)<<9|r>>>23)+E|0)<<13|r>>>19)+w|0)<<18|r>>>14,I^=(r=(S^=(r=(C^=(r=(k^=(r=I+S|0)<<7|r>>>25)+I|0)<<9|r>>>23)+k|0)<<13|r>>>19)+C|0)<<18|r>>>14,T^=(r=(B^=(r=(R^=(r=(O^=(r=T+B|0)<<7|r>>>25)+T|0)<<9|r>>>23)+O|0)<<13|r>>>19)+R|0)<<18|r>>>14,U^=(r=(P^=(r=(L^=(r=(N^=(r=U+P|0)<<7|r>>>25)+U|0)<<9|r>>>23)+N|0)<<13|r>>>19)+L|0)<<18|r>>>14;A=A+s|0,E=E+o|0,w=w+a|0,x=x+c|0,S=S+l|0,I=I+u|0,k=k+p|0,C=C+d|0,R=R+h|0,B=B+f|0,T=T+m|0,O=O+g|0,N=N+_|0,L=L+b|0,P=P+y|0,U=U+v|0,e[0]=A>>>0&255,e[1]=A>>>8&255,e[2]=A>>>16&255,e[3]=A>>>24&255,e[4]=E>>>0&255,e[5]=E>>>8&255,e[6]=E>>>16&255,e[7]=E>>>24&255,e[8]=w>>>0&255,e[9]=w>>>8&255,e[10]=w>>>16&255,e[11]=w>>>24&255,e[12]=x>>>0&255,e[13]=x>>>8&255,e[14]=x>>>16&255,e[15]=x>>>24&255,e[16]=S>>>0&255,e[17]=S>>>8&255,e[18]=S>>>16&255,e[19]=S>>>24&255,e[20]=I>>>0&255,e[21]=I>>>8&255,e[22]=I>>>16&255,e[23]=I>>>24&255,e[24]=k>>>0&255,e[25]=k>>>8&255,e[26]=k>>>16&255,e[27]=k>>>24&255,e[28]=C>>>0&255,e[29]=C>>>8&255,e[30]=C>>>16&255,e[31]=C>>>24&255,e[32]=R>>>0&255,e[33]=R>>>8&255,e[34]=R>>>16&255,e[35]=R>>>24&255,e[36]=B>>>0&255,e[37]=B>>>8&255,e[38]=B>>>16&255,e[39]=B>>>24&255,e[40]=T>>>0&255,e[41]=T>>>8&255,e[42]=T>>>16&255,e[43]=T>>>24&255,e[44]=O>>>0&255,e[45]=O>>>8&255,e[46]=O>>>16&255,e[47]=O>>>24&255,e[48]=N>>>0&255,e[49]=N>>>8&255,e[50]=N>>>16&255,e[51]=N>>>24&255,e[52]=L>>>0&255,e[53]=L>>>8&255,e[54]=L>>>16&255,e[55]=L>>>24&255,e[56]=P>>>0&255,e[57]=P>>>8&255,e[58]=P>>>16&255,e[59]=P>>>24&255,e[60]=U>>>0&255,e[61]=U>>>8&255,e[62]=U>>>16&255,e[63]=U>>>24&255}(e,t,n,i)}function y(e,t,n,i){!function(e,t,n,i){for(var r,s=255&i[0]|(255&i[1])<<8|(255&i[2])<<16|(255&i[3])<<24,o=255&n[0]|(255&n[1])<<8|(255&n[2])<<16|(255&n[3])<<24,a=255&n[4]|(255&n[5])<<8|(255&n[6])<<16|(255&n[7])<<24,c=255&n[8]|(255&n[9])<<8|(255&n[10])<<16|(255&n[11])<<24,l=255&n[12]|(255&n[13])<<8|(255&n[14])<<16|(255&n[15])<<24,u=255&i[4]|(255&i[5])<<8|(255&i[6])<<16|(255&i[7])<<24,p=255&t[0]|(255&t[1])<<8|(255&t[2])<<16|(255&t[3])<<24,d=255&t[4]|(255&t[5])<<8|(255&t[6])<<16|(255&t[7])<<24,h=255&t[8]|(255&t[9])<<8|(255&t[10])<<16|(255&t[11])<<24,f=255&t[12]|(255&t[13])<<8|(255&t[14])<<16|(255&t[15])<<24,m=255&i[8]|(255&i[9])<<8|(255&i[10])<<16|(255&i[11])<<24,g=255&n[16]|(255&n[17])<<8|(255&n[18])<<16|(255&n[19])<<24,_=255&n[20]|(255&n[21])<<8|(255&n[22])<<16|(255&n[23])<<24,b=255&n[24]|(255&n[25])<<8|(255&n[26])<<16|(255&n[27])<<24,y=255&n[28]|(255&n[29])<<8|(255&n[30])<<16|(255&n[31])<<24,v=255&i[12]|(255&i[13])<<8|(255&i[14])<<16|(255&i[15])<<24,A=0;A<20;A+=2)s^=(r=(_^=(r=(h^=(r=(l^=(r=s+_|0)<<7|r>>>25)+s|0)<<9|r>>>23)+l|0)<<13|r>>>19)+h|0)<<18|r>>>14,u^=(r=(o^=(r=(b^=(r=(f^=(r=u+o|0)<<7|r>>>25)+u|0)<<9|r>>>23)+f|0)<<13|r>>>19)+b|0)<<18|r>>>14,m^=(r=(p^=(r=(a^=(r=(y^=(r=m+p|0)<<7|r>>>25)+m|0)<<9|r>>>23)+y|0)<<13|r>>>19)+a|0)<<18|r>>>14,v^=(r=(g^=(r=(d^=(r=(c^=(r=v+g|0)<<7|r>>>25)+v|0)<<9|r>>>23)+c|0)<<13|r>>>19)+d|0)<<18|r>>>14,s^=(r=(c^=(r=(a^=(r=(o^=(r=s+c|0)<<7|r>>>25)+s|0)<<9|r>>>23)+o|0)<<13|r>>>19)+a|0)<<18|r>>>14,u^=(r=(l^=(r=(d^=(r=(p^=(r=u+l|0)<<7|r>>>25)+u|0)<<9|r>>>23)+p|0)<<13|r>>>19)+d|0)<<18|r>>>14,m^=(r=(f^=(r=(h^=(r=(g^=(r=m+f|0)<<7|r>>>25)+m|0)<<9|r>>>23)+g|0)<<13|r>>>19)+h|0)<<18|r>>>14,v^=(r=(y^=(r=(b^=(r=(_^=(r=v+y|0)<<7|r>>>25)+v|0)<<9|r>>>23)+_|0)<<13|r>>>19)+b|0)<<18|r>>>14;e[0]=s>>>0&255,e[1]=s>>>8&255,e[2]=s>>>16&255,e[3]=s>>>24&255,e[4]=u>>>0&255,e[5]=u>>>8&255,e[6]=u>>>16&255,e[7]=u>>>24&255,e[8]=m>>>0&255,e[9]=m>>>8&255,e[10]=m>>>16&255,e[11]=m>>>24&255,e[12]=v>>>0&255,e[13]=v>>>8&255,e[14]=v>>>16&255,e[15]=v>>>24&255,e[16]=p>>>0&255,e[17]=p>>>8&255,e[18]=p>>>16&255,e[19]=p>>>24&255,e[20]=d>>>0&255,e[21]=d>>>8&255,e[22]=d>>>16&255,e[23]=d>>>24&255,e[24]=h>>>0&255,e[25]=h>>>8&255,e[26]=h>>>16&255,e[27]=h>>>24&255,e[28]=f>>>0&255,e[29]=f>>>8&255,e[30]=f>>>16&255,e[31]=f>>>24&255}(e,t,n,i)}var v=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function A(e,t,n,i,r,s,o){var a,c,l=new Uint8Array(16),u=new Uint8Array(64);for(c=0;c<16;c++)l[c]=0;for(c=0;c<8;c++)l[c]=s[c];for(;r>=64;){for(b(u,l,o,v),c=0;c<64;c++)e[t+c]=n[i+c]^u[c];for(a=1,c=8;c<16;c++)a=a+(255&l[c])|0,l[c]=255&a,a>>>=8;r-=64,t+=64,i+=64}if(r>0)for(b(u,l,o,v),c=0;c<r;c++)e[t+c]=n[i+c]^u[c];return 0}function E(e,t,n,i,r){var s,o,a=new Uint8Array(16),c=new Uint8Array(64);for(o=0;o<16;o++)a[o]=0;for(o=0;o<8;o++)a[o]=i[o];for(;n>=64;){for(b(c,a,r,v),o=0;o<64;o++)e[t+o]=c[o];for(s=1,o=8;o<16;o++)s=s+(255&a[o])|0,a[o]=255&s,s>>>=8;n-=64,t+=64}if(n>0)for(b(c,a,r,v),o=0;o<n;o++)e[t+o]=c[o];return 0}function w(e,t,n,i,r){var s=new Uint8Array(32);y(s,i,r,v);for(var o=new Uint8Array(8),a=0;a<8;a++)o[a]=i[a+16];return E(e,t,n,o,s)}function x(e,t,n,i,r,s,o){var a=new Uint8Array(32);y(a,s,o,v);for(var c=new Uint8Array(8),l=0;l<8;l++)c[l]=s[l+16];return A(e,t,n,i,r,c,a)}var S=function(e){var t,n,i,r,s,o,a,c;this.buffer=new Uint8Array(16),this.r=new Uint16Array(10),this.h=new Uint16Array(10),this.pad=new Uint16Array(8),this.leftover=0,this.fin=0,t=255&e[0]|(255&e[1])<<8,this.r[0]=8191&t,n=255&e[2]|(255&e[3])<<8,this.r[1]=8191&(t>>>13|n<<3),i=255&e[4]|(255&e[5])<<8,this.r[2]=7939&(n>>>10|i<<6),r=255&e[6]|(255&e[7])<<8,this.r[3]=8191&(i>>>7|r<<9),s=255&e[8]|(255&e[9])<<8,this.r[4]=255&(r>>>4|s<<12),this.r[5]=s>>>1&8190,o=255&e[10]|(255&e[11])<<8,this.r[6]=8191&(s>>>14|o<<2),a=255&e[12]|(255&e[13])<<8,this.r[7]=8065&(o>>>11|a<<5),c=255&e[14]|(255&e[15])<<8,this.r[8]=8191&(a>>>8|c<<8),this.r[9]=c>>>5&127,this.pad[0]=255&e[16]|(255&e[17])<<8,this.pad[1]=255&e[18]|(255&e[19])<<8,this.pad[2]=255&e[20]|(255&e[21])<<8,this.pad[3]=255&e[22]|(255&e[23])<<8,this.pad[4]=255&e[24]|(255&e[25])<<8,this.pad[5]=255&e[26]|(255&e[27])<<8,this.pad[6]=255&e[28]|(255&e[29])<<8,this.pad[7]=255&e[30]|(255&e[31])<<8};function I(e,t,n,i,r,s){var o=new S(s);return o.update(n,i,r),o.finish(e,t),0}function k(e,t,n,i,r,s){var o=new Uint8Array(16);return I(o,0,n,i,r,s),g(e,t,o,0)}function C(e,t,n,i,r){var s;if(n<32)return-1;for(x(e,0,t,0,n,i,r),I(e,16,e,32,n-32,e),s=0;s<16;s++)e[s]=0;return 0}function R(e,t,n,i,r){var s,o=new Uint8Array(32);if(n<32)return-1;if(w(o,0,32,i,r),0!==k(t,16,t,32,n-32,o))return-1;for(x(e,0,t,0,n,i,r),s=0;s<32;s++)e[s]=0;return 0}function B(e,t){var n;for(n=0;n<16;n++)e[n]=0|t[n]}function T(e){var t,n,i=1;for(t=0;t<16;t++)n=e[t]+i+65535,i=Math.floor(n/65536),e[t]=n-65536*i;e[0]+=i-1+37*(i-1)}function O(e,t,n){for(var i,r=~(n-1),s=0;s<16;s++)i=r&(e[s]^t[s]),e[s]^=i,t[s]^=i}function N(e,n){var i,r,s,o=t(),a=t();for(i=0;i<16;i++)a[i]=n[i];for(T(a),T(a),T(a),r=0;r<2;r++){for(o[0]=a[0]-65517,i=1;i<15;i++)o[i]=a[i]-65535-(o[i-1]>>16&1),o[i-1]&=65535;o[15]=a[15]-32767-(o[14]>>16&1),s=o[15]>>16&1,o[14]&=65535,O(a,o,1-s)}for(i=0;i<16;i++)e[2*i]=255&a[i],e[2*i+1]=a[i]>>8}function L(e,t){var n=new Uint8Array(32),i=new Uint8Array(32);return N(n,e),N(i,t),_(n,0,i,0)}function P(e){var t=new Uint8Array(32);return N(t,e),1&t[0]}function U(e,t){var n;for(n=0;n<16;n++)e[n]=t[2*n]+(t[2*n+1]<<8);e[15]&=32767}function D(e,t,n){for(var i=0;i<16;i++)e[i]=t[i]+n[i]}function M(e,t,n){for(var i=0;i<16;i++)e[i]=t[i]-n[i]}function H(e,t,n){var i,r,s=0,o=0,a=0,c=0,l=0,u=0,p=0,d=0,h=0,f=0,m=0,g=0,_=0,b=0,y=0,v=0,A=0,E=0,w=0,x=0,S=0,I=0,k=0,C=0,R=0,B=0,T=0,O=0,N=0,L=0,P=0,U=n[0],D=n[1],M=n[2],H=n[3],F=n[4],j=n[5],$=n[6],Q=n[7],W=n[8],q=n[9],Y=n[10],G=n[11],K=n[12],z=n[13],X=n[14],V=n[15];s+=(i=t[0])*U,o+=i*D,a+=i*M,c+=i*H,l+=i*F,u+=i*j,p+=i*$,d+=i*Q,h+=i*W,f+=i*q,m+=i*Y,g+=i*G,_+=i*K,b+=i*z,y+=i*X,v+=i*V,o+=(i=t[1])*U,a+=i*D,c+=i*M,l+=i*H,u+=i*F,p+=i*j,d+=i*$,h+=i*Q,f+=i*W,m+=i*q,g+=i*Y,_+=i*G,b+=i*K,y+=i*z,v+=i*X,A+=i*V,a+=(i=t[2])*U,c+=i*D,l+=i*M,u+=i*H,p+=i*F,d+=i*j,h+=i*$,f+=i*Q,m+=i*W,g+=i*q,_+=i*Y,b+=i*G,y+=i*K,v+=i*z,A+=i*X,E+=i*V,c+=(i=t[3])*U,l+=i*D,u+=i*M,p+=i*H,d+=i*F,h+=i*j,f+=i*$,m+=i*Q,g+=i*W,_+=i*q,b+=i*Y,y+=i*G,v+=i*K,A+=i*z,E+=i*X,w+=i*V,l+=(i=t[4])*U,u+=i*D,p+=i*M,d+=i*H,h+=i*F,f+=i*j,m+=i*$,g+=i*Q,_+=i*W,b+=i*q,y+=i*Y,v+=i*G,A+=i*K,E+=i*z,w+=i*X,x+=i*V,u+=(i=t[5])*U,p+=i*D,d+=i*M,h+=i*H,f+=i*F,m+=i*j,g+=i*$,_+=i*Q,b+=i*W,y+=i*q,v+=i*Y,A+=i*G,E+=i*K,w+=i*z,x+=i*X,S+=i*V,p+=(i=t[6])*U,d+=i*D,h+=i*M,f+=i*H,m+=i*F,g+=i*j,_+=i*$,b+=i*Q,y+=i*W,v+=i*q,A+=i*Y,E+=i*G,w+=i*K,x+=i*z,S+=i*X,I+=i*V,d+=(i=t[7])*U,h+=i*D,f+=i*M,m+=i*H,g+=i*F,_+=i*j,b+=i*$,y+=i*Q,v+=i*W,A+=i*q,E+=i*Y,w+=i*G,x+=i*K,S+=i*z,I+=i*X,k+=i*V,h+=(i=t[8])*U,f+=i*D,m+=i*M,g+=i*H,_+=i*F,b+=i*j,y+=i*$,v+=i*Q,A+=i*W,E+=i*q,w+=i*Y,x+=i*G,S+=i*K,I+=i*z,k+=i*X,C+=i*V,f+=(i=t[9])*U,m+=i*D,g+=i*M,_+=i*H,b+=i*F,y+=i*j,v+=i*$,A+=i*Q,E+=i*W,w+=i*q,x+=i*Y,S+=i*G,I+=i*K,k+=i*z,C+=i*X,R+=i*V,m+=(i=t[10])*U,g+=i*D,_+=i*M,b+=i*H,y+=i*F,v+=i*j,A+=i*$,E+=i*Q,w+=i*W,x+=i*q,S+=i*Y,I+=i*G,k+=i*K,C+=i*z,R+=i*X,B+=i*V,g+=(i=t[11])*U,_+=i*D,b+=i*M,y+=i*H,v+=i*F,A+=i*j,E+=i*$,w+=i*Q,x+=i*W,S+=i*q,I+=i*Y,k+=i*G,C+=i*K,R+=i*z,B+=i*X,T+=i*V,_+=(i=t[12])*U,b+=i*D,y+=i*M,v+=i*H,A+=i*F,E+=i*j,w+=i*$,x+=i*Q,S+=i*W,I+=i*q,k+=i*Y,C+=i*G,R+=i*K,B+=i*z,T+=i*X,O+=i*V,b+=(i=t[13])*U,y+=i*D,v+=i*M,A+=i*H,E+=i*F,w+=i*j,x+=i*$,S+=i*Q,I+=i*W,k+=i*q,C+=i*Y,R+=i*G,B+=i*K,T+=i*z,O+=i*X,N+=i*V,y+=(i=t[14])*U,v+=i*D,A+=i*M,E+=i*H,w+=i*F,x+=i*j,S+=i*$,I+=i*Q,k+=i*W,C+=i*q,R+=i*Y,B+=i*G,T+=i*K,O+=i*z,N+=i*X,L+=i*V,v+=(i=t[15])*U,o+=38*(E+=i*M),a+=38*(w+=i*H),c+=38*(x+=i*F),l+=38*(S+=i*j),u+=38*(I+=i*$),p+=38*(k+=i*Q),d+=38*(C+=i*W),h+=38*(R+=i*q),f+=38*(B+=i*Y),m+=38*(T+=i*G),g+=38*(O+=i*K),_+=38*(N+=i*z),b+=38*(L+=i*X),y+=38*(P+=i*V),s=(i=(s+=38*(A+=i*D))+(r=1)+65535)-65536*(r=Math.floor(i/65536)),o=(i=o+r+65535)-65536*(r=Math.floor(i/65536)),a=(i=a+r+65535)-65536*(r=Math.floor(i/65536)),c=(i=c+r+65535)-65536*(r=Math.floor(i/65536)),l=(i=l+r+65535)-65536*(r=Math.floor(i/65536)),u=(i=u+r+65535)-65536*(r=Math.floor(i/65536)),p=(i=p+r+65535)-65536*(r=Math.floor(i/65536)),d=(i=d+r+65535)-65536*(r=Math.floor(i/65536)),h=(i=h+r+65535)-65536*(r=Math.floor(i/65536)),f=(i=f+r+65535)-65536*(r=Math.floor(i/65536)),m=(i=m+r+65535)-65536*(r=Math.floor(i/65536)),g=(i=g+r+65535)-65536*(r=Math.floor(i/65536)),_=(i=_+r+65535)-65536*(r=Math.floor(i/65536)),b=(i=b+r+65535)-65536*(r=Math.floor(i/65536)),y=(i=y+r+65535)-65536*(r=Math.floor(i/65536)),v=(i=v+r+65535)-65536*(r=Math.floor(i/65536)),s=(i=(s+=r-1+37*(r-1))+(r=1)+65535)-65536*(r=Math.floor(i/65536)),o=(i=o+r+65535)-65536*(r=Math.floor(i/65536)),a=(i=a+r+65535)-65536*(r=Math.floor(i/65536)),c=(i=c+r+65535)-65536*(r=Math.floor(i/65536)),l=(i=l+r+65535)-65536*(r=Math.floor(i/65536)),u=(i=u+r+65535)-65536*(r=Math.floor(i/65536)),p=(i=p+r+65535)-65536*(r=Math.floor(i/65536)),d=(i=d+r+65535)-65536*(r=Math.floor(i/65536)),h=(i=h+r+65535)-65536*(r=Math.floor(i/65536)),f=(i=f+r+65535)-65536*(r=Math.floor(i/65536)),m=(i=m+r+65535)-65536*(r=Math.floor(i/65536)),g=(i=g+r+65535)-65536*(r=Math.floor(i/65536)),_=(i=_+r+65535)-65536*(r=Math.floor(i/65536)),b=(i=b+r+65535)-65536*(r=Math.floor(i/65536)),y=(i=y+r+65535)-65536*(r=Math.floor(i/65536)),v=(i=v+r+65535)-65536*(r=Math.floor(i/65536)),s+=r-1+37*(r-1),e[0]=s,e[1]=o,e[2]=a,e[3]=c,e[4]=l,e[5]=u,e[6]=p,e[7]=d,e[8]=h,e[9]=f,e[10]=m,e[11]=g,e[12]=_,e[13]=b,e[14]=y,e[15]=v}function F(e,t){H(e,t,t)}function j(e,n){var i,r=t();for(i=0;i<16;i++)r[i]=n[i];for(i=253;i>=0;i--)F(r,r),2!==i&&4!==i&&H(r,r,n);for(i=0;i<16;i++)e[i]=r[i]}function $(e,n,i){var r,s,o=new Uint8Array(32),a=new Float64Array(80),l=t(),u=t(),p=t(),d=t(),h=t(),f=t();for(s=0;s<31;s++)o[s]=n[s];for(o[31]=127&n[31]|64,o[0]&=248,U(a,i),s=0;s<16;s++)u[s]=a[s],d[s]=l[s]=p[s]=0;for(l[0]=d[0]=1,s=254;s>=0;--s)O(l,u,r=o[s>>>3]>>>(7&s)&1),O(p,d,r),D(h,l,p),M(l,l,p),D(p,u,d),M(u,u,d),F(d,h),F(f,l),H(l,p,l),H(p,u,h),D(h,l,p),M(l,l,p),F(u,l),M(p,d,f),H(l,p,c),D(l,l,d),H(p,p,l),H(l,d,f),H(d,u,a),F(u,h),O(l,u,r),O(p,d,r);for(s=0;s<16;s++)a[s+16]=l[s],a[s+32]=p[s],a[s+48]=u[s],a[s+64]=d[s];var m=a.subarray(32),g=a.subarray(16);return j(m,m),H(g,g,m),N(e,g),0}function Q(e,t){return $(e,t,r)}function W(e,t){return n(t,32),Q(e,t)}function q(e,t,n){var r=new Uint8Array(32);return $(r,n,t),y(e,i,r,v)}S.prototype.blocks=function(e,t,n){for(var i,r,s,o,a,c,l,u,p,d,h,f,m,g,_,b,y,v,A,E=this.fin?0:2048,w=this.h[0],x=this.h[1],S=this.h[2],I=this.h[3],k=this.h[4],C=this.h[5],R=this.h[6],B=this.h[7],T=this.h[8],O=this.h[9],N=this.r[0],L=this.r[1],P=this.r[2],U=this.r[3],D=this.r[4],M=this.r[5],H=this.r[6],F=this.r[7],j=this.r[8],$=this.r[9];n>=16;)d=p=0,d+=(w+=8191&(i=255&e[t+0]|(255&e[t+1])<<8))*N,d+=(x+=8191&(i>>>13|(r=255&e[t+2]|(255&e[t+3])<<8)<<3))*(5*$),d+=(S+=8191&(r>>>10|(s=255&e[t+4]|(255&e[t+5])<<8)<<6))*(5*j),d+=(I+=8191&(s>>>7|(o=255&e[t+6]|(255&e[t+7])<<8)<<9))*(5*F),p=(d+=(k+=8191&(o>>>4|(a=255&e[t+8]|(255&e[t+9])<<8)<<12))*(5*H))>>>13,d&=8191,d+=(C+=a>>>1&8191)*(5*M),d+=(R+=8191&(a>>>14|(c=255&e[t+10]|(255&e[t+11])<<8)<<2))*(5*D),d+=(B+=8191&(c>>>11|(l=255&e[t+12]|(255&e[t+13])<<8)<<5))*(5*U),d+=(T+=8191&(l>>>8|(u=255&e[t+14]|(255&e[t+15])<<8)<<8))*(5*P),h=p+=(d+=(O+=u>>>5|E)*(5*L))>>>13,h+=w*L,h+=x*N,h+=S*(5*$),h+=I*(5*j),p=(h+=k*(5*F))>>>13,h&=8191,h+=C*(5*H),h+=R*(5*M),h+=B*(5*D),h+=T*(5*U),p+=(h+=O*(5*P))>>>13,h&=8191,f=p,f+=w*P,f+=x*L,f+=S*N,f+=I*(5*$),p=(f+=k*(5*j))>>>13,f&=8191,f+=C*(5*F),f+=R*(5*H),f+=B*(5*M),f+=T*(5*D),m=p+=(f+=O*(5*U))>>>13,m+=w*U,m+=x*P,m+=S*L,m+=I*N,p=(m+=k*(5*$))>>>13,m&=8191,m+=C*(5*j),m+=R*(5*F),m+=B*(5*H),m+=T*(5*M),g=p+=(m+=O*(5*D))>>>13,g+=w*D,g+=x*U,g+=S*P,g+=I*L,p=(g+=k*N)>>>13,g&=8191,g+=C*(5*$),g+=R*(5*j),g+=B*(5*F),g+=T*(5*H),_=p+=(g+=O*(5*M))>>>13,_+=w*M,_+=x*D,_+=S*U,_+=I*P,p=(_+=k*L)>>>13,_&=8191,_+=C*N,_+=R*(5*$),_+=B*(5*j),_+=T*(5*F),b=p+=(_+=O*(5*H))>>>13,b+=w*H,b+=x*M,b+=S*D,b+=I*U,p=(b+=k*P)>>>13,b&=8191,b+=C*L,b+=R*N,b+=B*(5*$),b+=T*(5*j),y=p+=(b+=O*(5*F))>>>13,y+=w*F,y+=x*H,y+=S*M,y+=I*D,p=(y+=k*U)>>>13,y&=8191,y+=C*P,y+=R*L,y+=B*N,y+=T*(5*$),v=p+=(y+=O*(5*j))>>>13,v+=w*j,v+=x*F,v+=S*H,v+=I*M,p=(v+=k*D)>>>13,v&=8191,v+=C*U,v+=R*P,v+=B*L,v+=T*N,A=p+=(v+=O*(5*$))>>>13,A+=w*$,A+=x*j,A+=S*F,A+=I*H,p=(A+=k*M)>>>13,A&=8191,A+=C*D,A+=R*U,A+=B*P,A+=T*L,w=d=8191&(p=(p=((p+=(A+=O*N)>>>13)<<2)+p|0)+(d&=8191)|0),x=h+=p>>>=13,S=f&=8191,I=m&=8191,k=g&=8191,C=_&=8191,R=b&=8191,B=y&=8191,T=v&=8191,O=A&=8191,t+=16,n-=16;this.h[0]=w,this.h[1]=x,this.h[2]=S,this.h[3]=I,this.h[4]=k,this.h[5]=C,this.h[6]=R,this.h[7]=B,this.h[8]=T,this.h[9]=O},S.prototype.finish=function(e,t){var n,i,r,s,o=new Uint16Array(10);if(this.leftover){for(s=this.leftover,this.buffer[s++]=1;s<16;s++)this.buffer[s]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(n=this.h[1]>>>13,this.h[1]&=8191,s=2;s<10;s++)this.h[s]+=n,n=this.h[s]>>>13,this.h[s]&=8191;for(this.h[0]+=5*n,n=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=n,n=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=n,o[0]=this.h[0]+5,n=o[0]>>>13,o[0]&=8191,s=1;s<10;s++)o[s]=this.h[s]+n,n=o[s]>>>13,o[s]&=8191;for(o[9]-=8192,i=(1^n)-1,s=0;s<10;s++)o[s]&=i;for(i=~i,s=0;s<10;s++)this.h[s]=this.h[s]&i|o[s];for(this.h[0]=65535&(this.h[0]|this.h[1]<<13),this.h[1]=65535&(this.h[1]>>>3|this.h[2]<<10),this.h[2]=65535&(this.h[2]>>>6|this.h[3]<<7),this.h[3]=65535&(this.h[3]>>>9|this.h[4]<<4),this.h[4]=65535&(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14),this.h[5]=65535&(this.h[6]>>>2|this.h[7]<<11),this.h[6]=65535&(this.h[7]>>>5|this.h[8]<<8),this.h[7]=65535&(this.h[8]>>>8|this.h[9]<<5),r=this.h[0]+this.pad[0],this.h[0]=65535&r,s=1;s<8;s++)r=(this.h[s]+this.pad[s]|0)+(r>>>16)|0,this.h[s]=65535&r;e[t+0]=this.h[0]>>>0&255,e[t+1]=this.h[0]>>>8&255,e[t+2]=this.h[1]>>>0&255,e[t+3]=this.h[1]>>>8&255,e[t+4]=this.h[2]>>>0&255,e[t+5]=this.h[2]>>>8&255,e[t+6]=this.h[3]>>>0&255,e[t+7]=this.h[3]>>>8&255,e[t+8]=this.h[4]>>>0&255,e[t+9]=this.h[4]>>>8&255,e[t+10]=this.h[5]>>>0&255,e[t+11]=this.h[5]>>>8&255,e[t+12]=this.h[6]>>>0&255,e[t+13]=this.h[6]>>>8&255,e[t+14]=this.h[7]>>>0&255,e[t+15]=this.h[7]>>>8&255},S.prototype.update=function(e,t,n){var i,r;if(this.leftover){for((r=16-this.leftover)>n&&(r=n),i=0;i<r;i++)this.buffer[this.leftover+i]=e[t+i];if(n-=r,t+=r,this.leftover+=r,this.leftover<16)return;this.blocks(this.buffer,0,16),this.leftover=0}if(n>=16&&(r=n-n%16,this.blocks(e,t,r),t+=r,n-=r),n){for(i=0;i<n;i++)this.buffer[this.leftover+i]=e[t+i];this.leftover+=n}};var Y=C,G=R;var K=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function X(e,t,n,i){for(var r,s,o,a,c,l,u,p,d,h,f,m,g,_,b,y,v,A,E,w,x,S,I,k,C,R,B=new Int32Array(16),T=new Int32Array(16),O=e[0],N=e[1],L=e[2],P=e[3],U=e[4],D=e[5],M=e[6],H=e[7],F=t[0],j=t[1],$=t[2],Q=t[3],W=t[4],q=t[5],Y=t[6],G=t[7],z=0;i>=128;){for(E=0;E<16;E++)w=8*E+z,B[E]=n[w+0]<<24|n[w+1]<<16|n[w+2]<<8|n[w+3],T[E]=n[w+4]<<24|n[w+5]<<16|n[w+6]<<8|n[w+7];for(E=0;E<80;E++)if(r=O,s=N,o=L,a=P,c=U,l=D,u=M,H,d=F,h=j,f=$,m=Q,g=W,_=q,b=Y,G,I=65535&(S=G),k=S>>>16,C=65535&(x=H),R=x>>>16,I+=65535&(S=(W>>>14|U<<18)^(W>>>18|U<<14)^(U>>>9|W<<23)),k+=S>>>16,C+=65535&(x=(U>>>14|W<<18)^(U>>>18|W<<14)^(W>>>9|U<<23)),R+=x>>>16,I+=65535&(S=W&q^~W&Y),k+=S>>>16,C+=65535&(x=U&D^~U&M),R+=x>>>16,I+=65535&(S=K[2*E+1]),k+=S>>>16,C+=65535&(x=K[2*E]),R+=x>>>16,x=B[E%16],k+=(S=T[E%16])>>>16,C+=65535&x,R+=x>>>16,C+=(k+=(I+=65535&S)>>>16)>>>16,I=65535&(S=A=65535&I|k<<16),k=S>>>16,C=65535&(x=v=65535&C|(R+=C>>>16)<<16),R=x>>>16,I+=65535&(S=(F>>>28|O<<4)^(O>>>2|F<<30)^(O>>>7|F<<25)),k+=S>>>16,C+=65535&(x=(O>>>28|F<<4)^(F>>>2|O<<30)^(F>>>7|O<<25)),R+=x>>>16,k+=(S=F&j^F&$^j&$)>>>16,C+=65535&(x=O&N^O&L^N&L),R+=x>>>16,p=65535&(C+=(k+=(I+=65535&S)>>>16)>>>16)|(R+=C>>>16)<<16,y=65535&I|k<<16,I=65535&(S=m),k=S>>>16,C=65535&(x=a),R=x>>>16,k+=(S=A)>>>16,C+=65535&(x=v),R+=x>>>16,N=r,L=s,P=o,U=a=65535&(C+=(k+=(I+=65535&S)>>>16)>>>16)|(R+=C>>>16)<<16,D=c,M=l,H=u,O=p,j=d,$=h,Q=f,W=m=65535&I|k<<16,q=g,Y=_,G=b,F=y,E%16==15)for(w=0;w<16;w++)x=B[w],I=65535&(S=T[w]),k=S>>>16,C=65535&x,R=x>>>16,x=B[(w+9)%16],I+=65535&(S=T[(w+9)%16]),k+=S>>>16,C+=65535&x,R+=x>>>16,v=B[(w+1)%16],I+=65535&(S=((A=T[(w+1)%16])>>>1|v<<31)^(A>>>8|v<<24)^(A>>>7|v<<25)),k+=S>>>16,C+=65535&(x=(v>>>1|A<<31)^(v>>>8|A<<24)^v>>>7),R+=x>>>16,v=B[(w+14)%16],k+=(S=((A=T[(w+14)%16])>>>19|v<<13)^(v>>>29|A<<3)^(A>>>6|v<<26))>>>16,C+=65535&(x=(v>>>19|A<<13)^(A>>>29|v<<3)^v>>>6),R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,B[w]=65535&C|R<<16,T[w]=65535&I|k<<16;I=65535&(S=F),k=S>>>16,C=65535&(x=O),R=x>>>16,x=e[0],k+=(S=t[0])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[0]=O=65535&C|R<<16,t[0]=F=65535&I|k<<16,I=65535&(S=j),k=S>>>16,C=65535&(x=N),R=x>>>16,x=e[1],k+=(S=t[1])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[1]=N=65535&C|R<<16,t[1]=j=65535&I|k<<16,I=65535&(S=$),k=S>>>16,C=65535&(x=L),R=x>>>16,x=e[2],k+=(S=t[2])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[2]=L=65535&C|R<<16,t[2]=$=65535&I|k<<16,I=65535&(S=Q),k=S>>>16,C=65535&(x=P),R=x>>>16,x=e[3],k+=(S=t[3])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[3]=P=65535&C|R<<16,t[3]=Q=65535&I|k<<16,I=65535&(S=W),k=S>>>16,C=65535&(x=U),R=x>>>16,x=e[4],k+=(S=t[4])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[4]=U=65535&C|R<<16,t[4]=W=65535&I|k<<16,I=65535&(S=q),k=S>>>16,C=65535&(x=D),R=x>>>16,x=e[5],k+=(S=t[5])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[5]=D=65535&C|R<<16,t[5]=q=65535&I|k<<16,I=65535&(S=Y),k=S>>>16,C=65535&(x=M),R=x>>>16,x=e[6],k+=(S=t[6])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[6]=M=65535&C|R<<16,t[6]=Y=65535&I|k<<16,I=65535&(S=G),k=S>>>16,C=65535&(x=H),R=x>>>16,x=e[7],k+=(S=t[7])>>>16,C+=65535&x,R+=x>>>16,R+=(C+=(k+=(I+=65535&S)>>>16)>>>16)>>>16,e[7]=H=65535&C|R<<16,t[7]=G=65535&I|k<<16,z+=128,i-=128}return i}function V(e,t,n){var i,r=new Int32Array(8),s=new Int32Array(8),o=new Uint8Array(256),a=n;for(r[0]=1779033703,r[1]=3144134277,r[2]=1013904242,r[3]=2773480762,r[4]=1359893119,r[5]=2600822924,r[6]=528734635,r[7]=1541459225,s[0]=4089235720,s[1]=2227873595,s[2]=4271175723,s[3]=1595750129,s[4]=2917565137,s[5]=725511199,s[6]=4215389547,s[7]=327033209,X(r,s,t,n),n%=128,i=0;i<n;i++)o[i]=t[a-n+i];for(o[n]=128,o[(n=256-128*(n<112?1:0))-9]=0,f(o,n-8,a/536870912|0,a<<3),X(r,s,o,n),i=0;i<8;i++)f(e,8*i,r[i],s[i]);return 0}function J(e,n){var i=t(),r=t(),s=t(),o=t(),a=t(),c=t(),l=t(),p=t(),d=t();M(i,e[1],e[0]),M(d,n[1],n[0]),H(i,i,d),D(r,e[0],e[1]),D(d,n[0],n[1]),H(r,r,d),H(s,e[3],n[3]),H(s,s,u),H(o,e[2],n[2]),D(o,o,o),M(a,r,i),M(c,o,s),D(l,o,s),D(p,r,i),H(e[0],a,c),H(e[1],p,l),H(e[2],l,c),H(e[3],a,p)}function Z(e,t,n){var i;for(i=0;i<4;i++)O(e[i],t[i],n)}function ee(e,n){var i=t(),r=t(),s=t();j(s,n[2]),H(i,n[0],s),H(r,n[1],s),N(e,r),e[31]^=P(i)<<7}function te(e,t,n){var i,r;for(B(e[0],s),B(e[1],a),B(e[2],a),B(e[3],s),r=255;r>=0;--r)Z(e,t,i=n[r/8|0]>>(7&r)&1),J(t,e),J(e,e),Z(e,t,i)}function ne(e,n){var i=[t(),t(),t(),t()];B(i[0],p),B(i[1],d),B(i[2],a),H(i[3],p,d),te(e,i,n)}function ie(e,i,r){var s,o=new Uint8Array(64),a=[t(),t(),t(),t()];for(r||n(i,32),V(o,i,32),o[0]&=248,o[31]&=127,o[31]|=64,ne(a,o),ee(e,a),s=0;s<32;s++)i[s+32]=e[s];return 0}var re=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function se(e,t){var n,i,r,s;for(i=63;i>=32;--i){for(n=0,r=i-32,s=i-12;r<s;++r)t[r]+=n-16*t[i]*re[r-(i-32)],n=t[r]+128>>8,t[r]-=256*n;t[r]+=n,t[i]=0}for(n=0,r=0;r<32;r++)t[r]+=n-(t[31]>>4)*re[r],n=t[r]>>8,t[r]&=255;for(r=0;r<32;r++)t[r]-=n*re[r];for(i=0;i<32;i++)t[i+1]+=t[i]>>8,e[i]=255&t[i]}function oe(e){var t,n=new Float64Array(64);for(t=0;t<64;t++)n[t]=e[t];for(t=0;t<64;t++)e[t]=0;se(e,n)}function ae(e,n,i,r){var s,o,a=new Uint8Array(64),c=new Uint8Array(64),l=new Uint8Array(64),u=new Float64Array(64),p=[t(),t(),t(),t()];V(a,r,32),a[0]&=248,a[31]&=127,a[31]|=64;var d=i+64;for(s=0;s<i;s++)e[64+s]=n[s];for(s=0;s<32;s++)e[32+s]=a[32+s];for(V(l,e.subarray(32),i+32),oe(l),ne(p,l),ee(e,p),s=32;s<64;s++)e[s]=r[s];for(V(c,e,i+64),oe(c),s=0;s<64;s++)u[s]=0;for(s=0;s<32;s++)u[s]=l[s];for(s=0;s<32;s++)for(o=0;o<32;o++)u[s+o]+=c[s]*a[o];return se(e.subarray(32),u),d}function ce(e,n){var i=t(),r=t(),o=t(),c=t(),u=t(),p=t(),d=t();return B(e[2],a),U(e[1],n),F(o,e[1]),H(c,o,l),M(o,o,e[2]),D(c,e[2],c),F(u,c),F(p,u),H(d,p,u),H(i,d,o),H(i,i,c),function(e,n){var i,r=t();for(i=0;i<16;i++)r[i]=n[i];for(i=250;i>=0;i--)F(r,r),1!==i&&H(r,r,n);for(i=0;i<16;i++)e[i]=r[i]}(i,i),H(i,i,o),H(i,i,c),H(i,i,c),H(e[0],i,c),F(r,e[0]),H(r,r,c),L(r,o)&&H(e[0],e[0],h),F(r,e[0]),H(r,r,c),L(r,o)?-1:(P(e[0])===n[31]>>7&&M(e[0],s,e[0]),H(e[3],e[0],e[1]),0)}function le(e,n,i,r){var s,o=new Uint8Array(32),a=new Uint8Array(64),c=[t(),t(),t(),t()],l=[t(),t(),t(),t()];if(i<64)return-1;if(ce(l,r))return-1;for(s=0;s<i;s++)e[s]=n[s];for(s=0;s<32;s++)e[s+32]=r[s];if(V(a,e,i),oe(a),te(c,l,a),ne(l,n.subarray(32)),J(c,l),ee(o,c),i-=64,_(n,0,o,0)){for(s=0;s<i;s++)e[s]=0;return-1}for(s=0;s<i;s++)e[s]=n[s+64];return i}var ue=16,pe=64,de=32,he=64;function fe(e,t){if(32!==e.length)throw new Error("bad key size");if(24!==t.length)throw new Error("bad nonce size")}function me(){var e,t;for(t=0;t<arguments.length;t++)if("[object Uint8Array]"!==(e=Object.prototype.toString.call(arguments[t])))throw new TypeError("unexpected type "+e+", use Uint8Array")}function ge(e){for(var t=0;t<e.length;t++)e[t]=0}e.lowlevel={crypto_core_hsalsa20:y,crypto_stream_xor:x,crypto_stream:w,crypto_stream_salsa20_xor:A,crypto_stream_salsa20:E,crypto_onetimeauth:I,crypto_onetimeauth_verify:k,crypto_verify_16:g,crypto_verify_32:_,crypto_secretbox:C,crypto_secretbox_open:R,crypto_scalarmult:$,crypto_scalarmult_base:Q,crypto_box_beforenm:q,crypto_box_afternm:Y,crypto_box:function(e,t,n,i,r,s){var o=new Uint8Array(32);return q(o,r,s),Y(e,t,n,i,o)},crypto_box_open:function(e,t,n,i,r,s){var o=new Uint8Array(32);return q(o,r,s),G(e,t,n,i,o)},crypto_box_keypair:W,crypto_hash:V,crypto_sign:ae,crypto_sign_keypair:ie,crypto_sign_open:le,crypto_secretbox_KEYBYTES:32,crypto_secretbox_NONCEBYTES:24,crypto_secretbox_ZEROBYTES:32,crypto_secretbox_BOXZEROBYTES:ue,crypto_scalarmult_BYTES:32,crypto_scalarmult_SCALARBYTES:32,crypto_box_PUBLICKEYBYTES:32,crypto_box_SECRETKEYBYTES:32,crypto_box_BEFORENMBYTES:32,crypto_box_NONCEBYTES:24,crypto_box_ZEROBYTES:32,crypto_box_BOXZEROBYTES:16,crypto_sign_BYTES:pe,crypto_sign_PUBLICKEYBYTES:de,crypto_sign_SECRETKEYBYTES:he,crypto_sign_SEEDBYTES:32,crypto_hash_BYTES:64},e.util||(e.util={},e.util.decodeUTF8=e.util.encodeUTF8=e.util.encodeBase64=e.util.decodeBase64=function(){throw new Error("nacl.util moved into separate package: https://github.com/dchest/tweetnacl-util-js")}),e.randomBytes=function(e){var t=new Uint8Array(e);return n(t,e),t},e.secretbox=function(e,t,n){me(e,t,n),fe(n,t);for(var i=new Uint8Array(32+e.length),r=new Uint8Array(i.length),s=0;s<e.length;s++)i[s+32]=e[s];return C(r,i,i.length,t,n),r.subarray(ue)},e.secretbox.open=function(e,t,n){me(e,t,n),fe(n,t);for(var i=new Uint8Array(ue+e.length),r=new Uint8Array(i.length),s=0;s<e.length;s++)i[s+ue]=e[s];return!(i.length<32)&&(0===R(r,i,i.length,t,n)&&r.subarray(32))},e.secretbox.keyLength=32,e.secretbox.nonceLength=24,e.secretbox.overheadLength=ue,e.scalarMult=function(e,t){if(me(e,t),32!==e.length)throw new Error("bad n size");if(32!==t.length)throw new Error("bad p size");var n=new Uint8Array(32);return $(n,e,t),n},e.scalarMult.base=function(e){if(me(e),32!==e.length)throw new Error("bad n size");var t=new Uint8Array(32);return Q(t,e),t},e.scalarMult.scalarLength=32,e.scalarMult.groupElementLength=32,e.box=function(t,n,i,r){var s=e.box.before(i,r);return e.secretbox(t,n,s)},e.box.before=function(e,t){me(e,t),function(e,t){if(32!==e.length)throw new Error("bad public key size");if(32!==t.length)throw new Error("bad secret key size")}(e,t);var n=new Uint8Array(32);return q(n,e,t),n},e.box.after=e.secretbox,e.box.open=function(t,n,i,r){var s=e.box.before(i,r);return e.secretbox.open(t,n,s)},e.box.open.after=e.secretbox.open,e.box.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(32);return W(e,t),{publicKey:e,secretKey:t}},e.box.keyPair.fromSecretKey=function(e){if(me(e),32!==e.length)throw new Error("bad secret key size");var t=new Uint8Array(32);return Q(t,e),{publicKey:t,secretKey:new Uint8Array(e)}},e.box.publicKeyLength=32,e.box.secretKeyLength=32,e.box.sharedKeyLength=32,e.box.nonceLength=24,e.box.overheadLength=e.secretbox.overheadLength,e.sign=function(e,t){if(me(e,t),t.length!==he)throw new Error("bad secret key size");var n=new Uint8Array(pe+e.length);return ae(n,e,e.length,t),n},e.sign.open=function(e,t){if(2!==arguments.length)throw new Error("nacl.sign.open accepts 2 arguments; did you mean to use nacl.sign.detached.verify?");if(me(e,t),t.length!==de)throw new Error("bad public key size");var n=new Uint8Array(e.length),i=le(n,e,e.length,t);if(i<0)return null;for(var r=new Uint8Array(i),s=0;s<r.length;s++)r[s]=n[s];return r},e.sign.detached=function(t,n){for(var i=e.sign(t,n),r=new Uint8Array(pe),s=0;s<r.length;s++)r[s]=i[s];return r},e.sign.detached.verify=function(e,t,n){if(me(e,t,n),t.length!==pe)throw new Error("bad signature size");if(n.length!==de)throw new Error("bad public key size");var i,r=new Uint8Array(pe+e.length),s=new Uint8Array(pe+e.length);for(i=0;i<pe;i++)r[i]=t[i];for(i=0;i<e.length;i++)r[i+pe]=e[i];return le(s,r,r.length,n)>=0},e.sign.keyPair=function(){var e=new Uint8Array(de),t=new Uint8Array(he);return ie(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(me(e),e.length!==he)throw new Error("bad secret key size");for(var t=new Uint8Array(de),n=0;n<t.length;n++)t[n]=e[32+n];return{publicKey:t,secretKey:new Uint8Array(e)}},e.sign.keyPair.fromSeed=function(e){if(me(e),32!==e.length)throw new Error("bad seed size");for(var t=new Uint8Array(de),n=new Uint8Array(he),i=0;i<32;i++)n[i]=e[i];return ie(t,n,!0),{publicKey:t,secretKey:n}},e.sign.publicKeyLength=de,e.sign.secretKeyLength=he,e.sign.seedLength=32,e.sign.signatureLength=pe,e.hash=function(e){me(e);var t=new Uint8Array(64);return V(t,e,e.length),t},e.hash.hashLength=64,e.verify=function(e,t){return me(e,t),0!==e.length&&0!==t.length&&(e.length===t.length&&0===m(e,0,t,0,e.length))},e.setPRNG=function(e){n=e},function(){var t="undefined"!=typeof self?self.crypto||self.msCrypto:null;if(t&&t.getRandomValues){e.setPRNG(function(e,n){var i,r=new Uint8Array(n);for(i=0;i<n;i+=65536)t.getRandomValues(r.subarray(i,i+Math.min(n-i,65536)));for(i=0;i<n;i++)e[i]=r[i];ge(r)})}else void 0!==z&&(t=o)&&t.randomBytes&&e.setPRNG(function(e,n){var i,r=t.randomBytes(n);for(i=0;i<n;i++)e[i]=r[i];ge(r)})}()}(e.exports?e.exports:self.nacl=self.nacl||{})}(X);var V=X.exports.lowlevel.crypto_hash,J=0,Z=function(){this.S=[new Uint32Array([3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946]),new Uint32Array([1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055]),new Uint32Array([3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504]),new Uint32Array([976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462])],this.P=new Uint32Array([608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731])};function ee(e,t,n){return(e[0][t[n+3]]+e[1][t[n+2]]^e[2][t[n+1]])+e[3][t[n]]}function te(e,t){var n,i=0;for(n=0;n<4;n++,J++)J>=t&&(J=0),i=i<<8|e[J];return i}Z.prototype.encipher=function(e,t){void 0===t&&(t=new Uint8Array(e.buffer),0!==e.byteOffset&&(t=t.subarray(e.byteOffset))),e[0]^=this.P[0];for(var n=1;n<16;n+=2)e[1]^=ee(this.S,t,0)^this.P[n],e[0]^=ee(this.S,t,4)^this.P[n+1];var i=e[0];e[0]=e[1]^this.P[17],e[1]=i},Z.prototype.decipher=function(e){var t=new Uint8Array(e.buffer);0!==e.byteOffset&&(t=t.subarray(e.byteOffset)),e[0]^=this.P[17];for(var n=16;n>0;n-=2)e[1]^=ee(this.S,t,0)^this.P[n],e[0]^=ee(this.S,t,4)^this.P[n-1];var i=e[0];e[0]=e[1]^this.P[0],e[1]=i},Z.prototype.expand0state=function(e,t){var n,i,r=new Uint32Array(2),s=new Uint8Array(r.buffer);for(n=0,J=0;n<18;n++)this.P[n]^=te(e,t);for(J=0,n=0;n<18;n+=2)this.encipher(r,s),this.P[n]=r[0],this.P[n+1]=r[1];for(n=0;n<4;n++)for(i=0;i<256;i+=2)this.encipher(r,s),this.S[n][i]=r[0],this.S[n][i+1]=r[1]},Z.prototype.expandstate=function(e,t,n,i){var r,s,o=new Uint32Array(2);for(r=0,J=0;r<18;r++)this.P[r]^=te(n,i);for(r=0,J=0;r<18;r+=2)o[0]^=te(e,t),o[1]^=te(e,t),this.encipher(o),this.P[r]=o[0],this.P[r+1]=o[1];for(r=0;r<4;r++)for(s=0;s<256;s+=2)o[0]^=te(e,t),o[1]^=te(e,t),this.encipher(o),this.S[r][s]=o[0],this.S[r][s+1]=o[1];J=0},Z.prototype.enc=function(e,t){for(var n=0;n<t;n++)this.encipher(e.subarray(2*n))},Z.prototype.dec=function(e,t){for(var n=0;n<t;n++)this.decipher(e.subarray(2*n))};function ne(e,t,n){var i,r=new Z,s=new Uint32Array(8),o=new Uint8Array([79,120,121,99,104,114,111,109,97,116,105,99,66,108,111,119,102,105,115,104,83,119,97,116,68,121,110,97,109,105,116,101]);for(r.expandstate(t,64,e,64),i=0;i<64;i++)r.expand0state(t,64),r.expand0state(e,64);for(i=0;i<8;i++)s[i]=te(o,o.byteLength);for(i=0;i<64;i++)r.enc(s,s.byteLength/8);for(i=0;i<8;i++)n[4*i+3]=s[i]>>>24,n[4*i+2]=s[i]>>>16,n[4*i+1]=s[i]>>>8,n[4*i+0]=s[i]}var ie,re,se,oe=function(e,t,n,i,r,s,o){var a,c,l,u,p,d,h=new Uint8Array(64),f=new Uint8Array(64),m=new Uint8Array(32),g=new Uint8Array(32),_=new Uint8Array(i+4),b=s;if(o<1)return-1;if(0===t||0===i||0===s||s>m.byteLength*m.byteLength||i>1<<20)return-1;for(u=Math.floor((s+m.byteLength-1)/m.byteLength),l=Math.floor((s+u-1)/u),a=0;a<i;a++)_[a]=n[a];for(V(h,e,t),d=1;s>0;d++){for(_[i+0]=d>>>24,_[i+1]=d>>>16,_[i+2]=d>>>8,_[i+3]=d,V(f,_,i+4),ne(h,f,g),a=m.byteLength;a--;)m[a]=g[a];for(a=1;a<o;a++)for(V(f,g,g.byteLength),ne(h,f,g),c=0;c<m.byteLength;c++)m[c]^=g[c];for(l=Math.min(l,s),a=0;a<l&&!((p=a*u+(d-1))>=b);a++)r[p]=m[a];s-=a}return 0},ae={exports:{}};function ce(){return ie||(ie=1,function(e){const t=o;let n;try{n=require("cpu-features")()}catch{}const{bindingAvailable:i,CIPHER_INFO:r,MAC_INFO:s}=me(),a=(()=>{if("function"==typeof t.sign&&"function"==typeof t.verify){const e="-----BEGIN PRIVATE KEY-----\r\nMC4CAQAwBQYDK2VwBCIEIHKj+sVa9WcD/q2DJUJaf43Kptc8xYuUQA4bOFj9vC8T\r\n-----END PRIVATE KEY-----",n=Buffer.from("a");let i,r;try{i=t.sign(null,n,e),r=t.verify(null,n,e,i)}catch{}return Buffer.isBuffer(i)&&64===i.length&&!0===r}return!1})(),c="function"==typeof t.diffieHellman&&"function"==typeof t.generateKeyPairSync&&"function"==typeof t.createPublicKey,l=["ecdh-sha2-nistp256","ecdh-sha2-nistp384","ecdh-sha2-nistp521","diffie-hellman-group-exchange-sha256","diffie-hellman-group14-sha256","diffie-hellman-group15-sha512","diffie-hellman-group16-sha512","diffie-hellman-group17-sha512","diffie-hellman-group18-sha512"];c&&(l.unshift("curve25519-sha256"),l.unshift("curve25519-sha256@libssh.org"));const u=l.concat(["diffie-hellman-group-exchange-sha1","diffie-hellman-group14-sha1","diffie-hellman-group1-sha1"]),p=["ecdsa-sha2-nistp256","ecdsa-sha2-nistp384","ecdsa-sha2-nistp521","rsa-sha2-512","rsa-sha2-256","ssh-rsa"];a&&p.unshift("ssh-ed25519");const d=p.concat(["ssh-dss"]),h=(()=>{const e=t.getCiphers();return t=>e.includes(r[t].sslName)})();let f=["aes128-gcm@openssh.com","aes256-gcm@openssh.com","aes128-ctr","aes192-ctr","aes256-ctr"];n&&n.flags&&!n.flags.aes?i?f.unshift("chacha20-poly1305@openssh.com"):f.push("chacha20-poly1305@openssh.com"):i&&n&&"x86"===n.arch?f.splice(4,0,"chacha20-poly1305@openssh.com"):f.push("chacha20-poly1305@openssh.com"),f=f.filter(h);const m=f.concat(["aes256-cbc","aes192-cbc","aes128-cbc","blowfish-cbc","3des-cbc","aes128-gcm","aes256-gcm","arcfour256","arcfour128","cast128-cbc","arcfour"].filter(h)),g=(()=>{const e=t.getHashes();return t=>e.includes(s[t].sslName)})(),_=["hmac-sha2-256-etm@openssh.com","hmac-sha2-512-etm@openssh.com","hmac-sha1-etm@openssh.com","hmac-sha2-256","hmac-sha2-512","hmac-sha1"].filter(g),b=_.concat(["hmac-md5","hmac-sha2-256-96","hmac-sha2-512-96","hmac-ripemd160","hmac-sha1-96","hmac-md5-96"].filter(g)),y=["none","zlib@openssh.com","zlib"],v=y.concat([]),A={BAD_DHGEX:1,OLD_EXIT:2,DYN_RPORT_BUG:4,BUG_DHGEX_LARGE:8,IMPLY_RSA_SHA2_SIGALGS:16};e.exports={MESSAGE:{DISCONNECT:1,IGNORE:2,UNIMPLEMENTED:3,DEBUG:4,SERVICE_REQUEST:5,SERVICE_ACCEPT:6,EXT_INFO:7,KEXINIT:20,NEWKEYS:21,KEXDH_INIT:30,KEXDH_REPLY:31,KEXDH_GEX_GROUP:31,KEXDH_GEX_INIT:32,KEXDH_GEX_REPLY:33,KEXDH_GEX_REQUEST:34,KEXECDH_INIT:30,KEXECDH_REPLY:31,USERAUTH_REQUEST:50,USERAUTH_FAILURE:51,USERAUTH_SUCCESS:52,USERAUTH_BANNER:53,USERAUTH_PASSWD_CHANGEREQ:60,USERAUTH_PK_OK:60,USERAUTH_INFO_REQUEST:60,USERAUTH_INFO_RESPONSE:61,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},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},DISCONNECT_REASON_STR:void 0,CHANNEL_OPEN_FAILURE:{ADMINISTRATIVELY_PROHIBITED:1,CONNECT_FAILED:2,UNKNOWN_CHANNEL_TYPE:3,RESOURCE_SHORTAGE:4},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},CHANNEL_EXTENDED_DATATYPE:{STDERR:1},SIGNALS:["ABRT","ALRM","FPE","HUP","ILL","INT","QUIT","SEGV","TERM","USR1","USR2","KILL","PIPE"].reduce((e,t)=>({...e,[t]:1}),{}),COMPAT:A,COMPAT_CHECKS:[["Cisco-1.25",A.BAD_DHGEX],[/^Cisco-1[.]/,A.BUG_DHGEX_LARGE],[/^[0-9.]+$/,A.OLD_EXIT],[/^OpenSSH_5[.][0-9]+/,A.DYN_RPORT_BUG],[/^OpenSSH_7[.]4/,A.IMPLY_RSA_SHA2_SIGALGS]],DEFAULT_KEX:l,SUPPORTED_KEX:u,DEFAULT_SERVER_HOST_KEY:p,SUPPORTED_SERVER_HOST_KEY:d,DEFAULT_CIPHER:f,SUPPORTED_CIPHER:m,DEFAULT_MAC:_,SUPPORTED_MAC:b,DEFAULT_COMPRESSION:y,SUPPORTED_COMPRESSION:v,curve25519Supported:c,eddsaSupported:a},e.exports.DISCONNECT_REASON_BY_VALUE=Array.from(Object.entries(e.exports.DISCONNECT_REASON)).reduce((e,[t,n])=>({...e,[n]:t}),{})}(ae)),ae.exports}function le(){if(se)return re;se=1;const e=K.Ber;let t;const n=Buffer[Symbol.species],i=Object.getPrototypeOf(Uint8Array.prototype).fill;function r(e,t){return 16777216*e[t++]+65536*e[t++]+256*e[t++]+e[t]}function s(e,t,n,i,r){r||(r=0),i>e.length&&(i=e.length);let s=i-n;const o=t.length-r;return s>o&&(s=o),t.set(new Uint8Array(e.buffer,e.byteOffset+n,s),r),s}function o(e,t,i){return void 0===i&&(i=e.length),new n(e.buffer,e.byteOffset+t,i-t)}function a(){let e,t=0;const n={init:(n,i)=>{e=n,t="number"==typeof i?i:0},pos:()=>t,length:()=>e?e.length:0,avail:()=>e&&t<e.length?e.length-t:0,clear:()=>{e=void 0},readUInt32BE:()=>{if(e&&!(t+3>=e.length))return 16777216*e[t++]+65536*e[t++]+256*e[t++]+e[t++]},readUInt64BE:n=>{if(e&&!(t+7>=e.length))switch(n){case"always":return BigInt(`0x${e.hexSlice(t,t+=8)}`);case"maybe":if(e[t]>31)return BigInt(`0x${e.hexSlice(t,t+=8)}`);default:return 72057594037927940*e[t++]+281474976710656*e[t++]+1099511627776*e[t++]+4294967296*e[t++]+16777216*e[t++]+65536*e[t++]+256*e[t++]+e[t++]}},skip:n=>{e&&n>0&&(t+=n)},skipString:()=>{const i=n.readUInt32BE();if(void 0!==i)return t+=i,t<=e.length?i:void 0},readByte:()=>{if(e&&t<e.length)return e[t++]},readBool:()=>{if(e&&t<e.length)return!!e[t++]},readList:()=>{const e=n.readString(!0);if(void 0!==e)return e?e.split(","):[]},readString:(i,r)=>{"number"==typeof i&&(r=i,i=void 0);const a=n.readUInt32BE();if(void 0!==a&&!(e.length-t<a||"number"==typeof r&&a>r))return i?Buffer.isBuffer(i)?s(e,i,t,t+=a):e.utf8Slice(t,t+=a):o(e,t,t+=a)},readRaw:n=>{if(e)return"number"!=typeof n?o(e,t,t+=e.length-t):e.length-t>=n?o(e,t,t+=n):void 0}};return n}function c(e,t,n){const i=new Error(e);return"boolean"==typeof t?(n=t,i.level="protocol"):i.level=t||"protocol",i.fatal=!!n,i}function l(e,t,n){return e[n++]=t>>>24,e[n++]=t>>>16,e[n++]=t>>>8,e[n++]=t,n}const u=a();return re={bufferCopy:s,bufferSlice:o,FastBuffer:n,bufferFill:(e,t,n,r)=>i.call(e,t,n,r),makeError:c,doFatalError:(e,n,i,r)=>{let s;return void 0===t&&({DISCONNECT_REASON:t}=ce()),n instanceof Error?(s=n,r="number"!=typeof i?t.PROTOCOL_ERROR:i):s=c(n,i,!0),"number"!=typeof r&&(r=t.PROTOCOL_ERROR),e.disconnect(r),e._destruct(),e._onError(s),1/0},readUInt32BE:r,writeUInt32BE:l,writeUInt32LE:(e,t,n)=>(e[n++]=t,e[n++]=t>>>8,e[n++]=t>>>16,e[n++]=t>>>24,n),makeBufferParser:a,bufferParser:a(),readString:(e,t,n,i)=>{"number"==typeof n&&(i=n,n=void 0),void 0===t&&(t=0);const a=e.length-t;if(t<0||t>=e.length||a<4)return;const c=r(e,t);if(a<4+c||"number"==typeof i&&c>i)return;const l=(t+=4)+c;return e._pos=l,n?Buffer.isBuffer(n)?s(e,n,t,l):e.utf8Slice(t,l):o(e,t,l)},sigSSHToASN1:(t,n)=>{switch(n){case"ssh-dss":{if(t.length>40)return t;const n=new e.Writer;n.startSequence();let i=t.slice(0,20),r=t.slice(20);if(128&i[0]){const e=Buffer.allocUnsafe(21);e[0]=0,i.copy(e,1),i=e}else 0!==i[0]||128&i[1]||(i=i.slice(1));if(128&r[0]){const e=Buffer.allocUnsafe(21);e[0]=0,r.copy(e,1),r=e}else 0!==r[0]||128&r[1]||(r=r.slice(1));return n.writeBuffer(i,e.Integer),n.writeBuffer(r,e.Integer),n.endSequence(),n.buffer}case"ecdsa-sha2-nistp256":case"ecdsa-sha2-nistp384":case"ecdsa-sha2-nistp521":{u.init(t,0);const n=u.readString(),i=u.readString();if(u.clear(),void 0===n||void 0===i)return;const r=new e.Writer;return r.startSequence(),r.writeBuffer(n,e.Integer),r.writeBuffer(i,e.Integer),r.endSequence(),r.buffer}default:return t}},convertSignature:(t,n)=>{switch(n){case"ssh-dss":{if(t.length<=40)return t;const n=new e.Reader(t);n.readSequence();let i=n.readString(e.Integer,!0),r=n.readString(e.Integer,!0),o=0,a=0;if(i.length<20){const e=Buffer.allocUnsafe(20);e.set(i,1),i=e,i[0]=0}if(r.length<20){const e=Buffer.allocUnsafe(20);e.set(r,1),r=e,r[0]=0}i.length>20&&0===i[0]&&(o=1),r.length>20&&0===r[0]&&(a=1);const c=Buffer.allocUnsafe(i.length-o+(r.length-a));return s(i,c,o,i.length,0),s(r,c,a,r.length,i.length-o),c}case"ecdsa-sha2-nistp256":case"ecdsa-sha2-nistp384":case"ecdsa-sha2-nistp521":{if(0===t[0])return t;const n=new e.Reader(t);n.readSequence();const i=n.readString(e.Integer,!0),r=n.readString(e.Integer,!0);if(null===i||null===r)return;const s=Buffer.allocUnsafe(4+i.length+4+r.length);return l(s,i.length,0),s.set(i,4),l(s,r.length,4+i.length),s.set(r,8+i.length),s}}return t},sendPacket:(e,t,n)=>n||void 0===e._kexinit?(e._cipher.encrypt(t),!0):(void 0===e._queue&&(e._queue=[]),e._queue.push(t),e._debug&&e._debug("Outbound: ... packet queued"),!1)},re}var ue,pe,de,he={exports:{}};function fe(){return ue||(ue=1,function(e){var t,n=(t="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(t=t||__filename),function(e){var n,s,o;e=e||{},n||(n=void 0!==e?e:{}),n.ready=new Promise(function(e,t){s=e,o=t});var a,c={};for(a in n)n.hasOwnProperty(a)&&(c[a]=n[a]);var l,u,p,d,h,f="object"==typeof window,m="function"==typeof importScripts,g="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,_="";g?(_=m?i.dirname(_)+"/":__dirname+"/",l=function(e,t){var n=Q(e);return n?t?n:n.toString():(d||(d=r),h||(h=i),e=h.normalize(e),d.readFileSync(e,t?null:"utf8"))},p=function(e){return(e=l(e,!0)).buffer||(e=new Uint8Array(e)),E(e.buffer),e},u=function(e,t,n){var s=Q(e);s&&t(s),d||(d=r),h||(h=i),e=h.normalize(e),d.readFile(e,function(e,i){e?n(e):t(i.buffer)})},1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),n.inspect=function(){return"[Emscripten Module object]"}):(f||m)&&(m?_=self.location.href:"undefined"!=typeof document&&document.currentScript&&(_=document.currentScript.src),t&&(_=t),_=0!==_.indexOf("blob:")?_.substr(0,_.lastIndexOf("/")+1):"",l=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText}catch(r){if(e=Q(e)){t=[];for(var n=0;n<e.length;n++){var i=e[n];255<i&&(i&=255),t.push(String.fromCharCode(i))}return t.join("")}throw r}},m&&(p=function(e){try{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}catch(t){if(e=Q(e))return e;throw t}}),u=function(e,t,n){var i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="arraybuffer",i.onload=function(){if(200==i.status||0==i.status&&i.response)t(i.response);else{var r=Q(e);r?t(r.buffer):n()}},i.onerror=n,i.send(null)}),n.print||console.log.bind(console);var b,y=n.printErr||console.warn.bind(console);for(a in c)c.hasOwnProperty(a)&&(n[a]=c[a]);c=null,n.wasmBinary&&(b=n.wasmBinary),n.noExitRuntime,"object"!=typeof WebAssembly&&U("no native wasm support detected");var v,A=!1;function E(e,t){e||U("Assertion failed: "+t)}function w(e){var t=n["_"+e];return E(t,"Cannot call unknown function "+e+", make sure it is exported"),t}var x,S,I,k="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function C(){var e=v.buffer;x=e,n.HEAP8=S=new Int8Array(e),n.HEAP16=new Int16Array(e),n.HEAP32=new Int32Array(e),n.HEAPU8=I=new Uint8Array(e),n.HEAPU16=new Uint16Array(e),n.HEAPU32=new Uint32Array(e),n.HEAPF32=new Float32Array(e),n.HEAPF64=new Float64Array(e)}var R,B=[],T=[],O=[];function N(){var e=n.preRun.shift();B.unshift(e)}var L=0,P=null;function U(e){throw n.onAbort&&n.onAbort(e),y(e),A=!0,e=new WebAssembly.RuntimeError("abort("+e+"). Build with -s ASSERTIONS=1 for more info."),o(e),e}n.preloadedImages={},n.preloadedAudios={};var D,M="data:application/octet-stream;base64,";if(!(D="data:application/octet-stream;base64,AGFzbQEAAAABIAZgAX8Bf2ADf39/AGABfwBgAABgAAF/YAZ/f39/f38AAgcBAWEBYQAAAwsKAAEDAQAAAgQFAgQFAXABAQEFBwEBgAKAgAIGCQF/AUGAjMACCwclCQFiAgABYwADAWQACQFlAAgBZgAHAWcABgFoAAUBaQAKAWoBAAqGTQpPAQJ/QYAIKAIAIgEgAEEDakF8cSICaiEAAkAgAkEAIAAgAU0bDQAgAD8AQRB0SwRAIAAQAEUNAQtBgAggADYCACABDwtBhAhBMDYCAEF/C4wFAg5+Cn8gACgCJCEUIAAoAiAhFSAAKAIcIREgACgCGCESIAAoAhQhEyACQRBPBEAgAC0ATEVBGHQhFyAAKAIEIhZBBWytIQ8gACgCCCIYQQVsrSENIAAoAgwiGUEFbK0hCyAAKAIQIhpBBWytIQkgADUCACEIIBqtIRAgGa0hDiAYrSEMIBatIQoDQCASIAEtAAMiEiABLQAEQQh0ciABLQAFQRB0ciABLQAGIhZBGHRyQQJ2Qf///x9xaq0iAyAOfiABLwAAIAEtAAJBEHRyIBNqIBJBGHRBgICAGHFqrSIEIBB+fCARIAEtAAdBCHQgFnIgAS0ACEEQdHIgAS0ACSIRQRh0ckEEdkH///8fcWqtIgUgDH58IAEtAApBCHQgEXIgAS0AC0EQdHIgAS0ADEEYdHJBBnYgFWqtIgYgCn58IBQgF2ogAS8ADSABLQAPQRB0cmqtIgcgCH58IAMgDH4gBCAOfnwgBSAKfnwgBiAIfnwgByAJfnwgAyAKfiAEIAx+fCAFIAh+fCAGIAl+fCAHIAt+fCADIAh+IAQgCn58IAUgCX58IAYgC358IAcgDX58IAMgCX4gBCAIfnwgBSALfnwgBiANfnwgByAPfnwiA0IaiEL/////D4N8IgRCGohC/////w+DfCIFQhqIQv////8Pg3wiBkIaiEL/////D4N8IgdCGoinQQVsIAOnQf///x9xaiITQRp2IASnQf///x9xaiESIAWnQf///x9xIREgBqdB////H3EhFSAHp0H///8fcSEUIBNB////H3EhEyABQRBqIQEgAkEQayICQQ9LDQALCyAAIBQ2AiQgACAVNgIgIAAgETYCHCAAIBI2AhggACATNgIUCwMAAQu2BAEGfwJAIAAoAjgiBARAIABBPGohBQJAIAJBECAEayIDIAIgA0kbIgZFDQAgBkEDcSEHAkAgBkEBa0EDSQRAQQAhAwwBCyAGQXxxIQhBACEDA0AgBSADIARqaiABIANqLQAAOgAAIAUgA0EBciIEIAAoAjhqaiABIARqLQAAOgAAIAUgA0ECciIEIAAoAjhqaiABIARqLQAAOgAAIAUgA0EDciIEIAAoAjhqaiABIARqLQAAOgAAIANBBGohAyAAKAI4IQQgCEEEayIIDQALCyAHRQ0AA0AgBSADIARqaiABIANqLQAAOgAAIANBAWohAyAAKAI4IQQgB0EBayIHDQALCyAAIAQgBmoiAzYCOCADQRBJDQEgACAFQRAQAiAAQQA2AjggAiAGayECIAEgBmohAQsgAkEQTwRAIAAgASACQXBxIgMQAiACQQ9xIQIgASADaiEBCyACRQ0AIAJBA3EhBCAAQTxqIQVBACEDIAJBAWtBA08EQCACQXxxIQcDQCAFIAAoAjggA2pqIAEgA2otAAA6AAAgBSADQQFyIgYgACgCOGpqIAEgBmotAAA6AAAgBSADQQJyIgYgACgCOGpqIAEgBmotAAA6AAAgBSADQQNyIgYgACgCOGpqIAEgBmotAAA6AAAgA0EEaiEDIAdBBGsiBw0ACwsgBARAA0AgBSAAKAI4IANqaiABIANqLQAAOgAAIANBAWohAyAEQQFrIgQNAAsLIAAgACgCOCACajYCOAsLoS0BDH8jAEEQayIMJAACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAEH0AU0EQEGICCgCACIFQRAgAEELakF4cSAAQQtJGyIIQQN2IgJ2IgFBA3EEQCABQX9zQQFxIAJqIgNBA3QiAUG4CGooAgAiBEEIaiEAAkAgBCgCCCICIAFBsAhqIgFGBEBBiAggBUF+IAN3cTYCAAwBCyACIAE2AgwgASACNgIICyAEIANBA3QiAUEDcjYCBCABIARqIgEgASgCBEEBcjYCBAwNCyAIQZAIKAIAIgpNDQEgAQRAAkBBAiACdCIAQQAgAGtyIAEgAnRxIgBBACAAa3FBAWsiACAAQQx2QRBxIgJ2IgFBBXZBCHEiACACciABIAB2IgFBAnZBBHEiAHIgASAAdiIBQQF2QQJxIgByIAEgAHYiAUEBdkEBcSIAciABIAB2aiIDQQN0IgBBuAhqKAIAIgQoAggiASAAQbAIaiIARgRAQYgIIAVBfiADd3EiBTYCAAwBCyABIAA2AgwgACABNgIICyAEQQhqIQAgBCAIQQNyNgIEIAQgCGoiAiADQQN0IgEgCGsiA0EBcjYCBCABIARqIAM2AgAgCgRAIApBA3YiAUEDdEGwCGohB0GcCCgCACEEAn8gBUEBIAF0IgFxRQRAQYgIIAEgBXI2AgAgBwwBCyAHKAIICyEBIAcgBDYCCCABIAQ2AgwgBCAHNgIMIAQgATYCCAtBnAggAjYCAEGQCCADNgIADA0LQYwIKAIAIgZFDQEgBkEAIAZrcUEBayIAIABBDHZBEHEiAnYiAUEFdkEIcSIAIAJyIAEgAHYiAUECdkEEcSIAciABIAB2IgFBAXZBAnEiAHIgASAAdiIBQQF2QQFxIgByIAEgAHZqQQJ0QbgKaigCACIBKAIEQXhxIAhrIQMgASECA0ACQCACKAIQIgBFBEAgAigCFCIARQ0BCyAAKAIEQXhxIAhrIgIgAyACIANJIgIbIQMgACABIAIbIQEgACECDAELCyABIAhqIgkgAU0NAiABKAIYIQsgASABKAIMIgRHBEAgASgCCCIAQZgIKAIASRogACAENgIMIAQgADYCCAwMCyABQRRqIgIoAgAiAEUEQCABKAIQIgBFDQQgAUEQaiECCwNAIAIhByAAIgRBFGoiAigCACIADQAgBEEQaiECIAQoAhAiAA0ACyAHQQA2AgAMCwtBfyEIIABBv39LDQAgAEELaiIAQXhxIQhBjAgoAgAiCUUNAEEAIAhrIQMCQAJAAkACf0EAIAhBgAJJDQAaQR8gCEH///8HSw0AGiAAQQh2IgAgAEGA/j9qQRB2QQhxIgJ0IgAgAEGA4B9qQRB2QQRxIgF0IgAgAEGAgA9qQRB2QQJxIgB0QQ92IAEgAnIgAHJrIgBBAXQgCCAAQRVqdkEBcXJBHGoLIgVBAnRBuApqKAIAIgJFBEBBACEADAELQQAhACAIQQBBGSAFQQF2ayAFQR9GG3QhAQNAAkAgAigCBEF4cSAIayIHIANPDQAgAiEEIAciAw0AQQAhAyACIQAMAwsgACACKAIUIgcgByACIAFBHXZBBHFqKAIQIgJGGyAAIAcbIQAgAUEBdCEBIAINAAsLIAAgBHJFBEBBACEEQQIgBXQiAEEAIABrciAJcSIARQ0DIABBACAAa3FBAWsiACAAQQx2QRBxIgJ2IgFBBXZBCHEiACACciABIAB2IgFBAnZBBHEiAHIgASAAdiIBQQF2QQJxIgByIAEgAHYiAUEBdkEBcSIAciABIAB2akECdEG4CmooAgAhAAsgAEUNAQsDQCAAKAIEQXhxIAhrIgEgA0khAiABIAMgAhshAyAAIAQgAhshBCAAKAIQIgEEfyABBSAAKAIUCyIADQALCyAERQ0AIANBkAgoAgAgCGtPDQAgBCAIaiIGIARNDQEgBCgCGCEFIAQgBCgCDCIBRwRAIAQoAggiAEGYCCgCAEkaIAAgATYCDCABIAA2AggMCgsgBEEUaiICKAIAIgBFBEAgBCgCECIARQ0EIARBEGohAgsDQCACIQcgACIBQRRqIgIoAgAiAA0AIAFBEGohAiABKAIQIgANAAsgB0EANgIADAkLIAhBkAgoAgAiAk0EQEGcCCgCACEDAkAgAiAIayIBQRBPBEBBkAggATYCAEGcCCADIAhqIgA2AgAgACABQQFyNgIEIAIgA2ogATYCACADIAhBA3I2AgQMAQtBnAhBADYCAEGQCEEANgIAIAMgAkEDcjYCBCACIANqIgAgACgCBEEBcjYCBAsgA0EIaiEADAsLIAhBlAgoAgAiBkkEQEGUCCAGIAhrIgE2AgBBoAhBoAgoAgAiAiAIaiIANgIAIAAgAUEBcjYCBCACIAhBA3I2AgQgAkEIaiEADAsLQQAhACAIQS9qIgkCf0HgCygCAARAQegLKAIADAELQewLQn83AgBB5AtCgKCAgICABDcCAEHgCyAMQQxqQXBxQdiq1aoFczYCAEH0C0EANgIAQcQLQQA2AgBBgCALIgFqIgVBACABayIHcSICIAhNDQpBwAsoAgAiBARAQbgLKAIAIgMgAmoiASADTQ0LIAEgBEsNCwtBxAstAABBBHENBQJAAkBBoAgoAgAiAwRAQcgLIQADQCADIAAoAgAiAU8EQCABIAAoAgRqIANLDQMLIAAoAggiAA0ACwtBABABIgFBf0YNBiACIQVB5AsoAgAiA0EBayIAIAFxBEAgAiABayAAIAFqQQAgA2txaiEFCyAFIAhNDQYgBUH+////B0sNBkHACygCACIEBEBBuAsoAgAiAyAFaiIAIANNDQcgACAESw0HCyAFEAEiACABRw0BDAgLIAUgBmsgB3EiBUH+////B0sNBSAFEAEiASAAKAIAIAAoAgRqRg0EIAEhAAsCQCAAQX9GDQAgCEEwaiAFTQ0AQegLKAIAIgEgCSAFa2pBACABa3EiAUH+////B0sEQCAAIQEMCAsgARABQX9HBEAgASAFaiEFIAAhAQwIC0EAIAVrEAEaDAULIAAiAUF/Rw0GDAQLAAtBACEEDAcLQQAhAQwFCyABQX9HDQILQcQLQcQLKAIAQQRyNgIACyACQf7///8HSw0BIAIQASEBQQAQASEAIAFBf0YNASAAQX9GDQEgACABTQ0BIAAgAWsiBSAIQShqTQ0BC0G4C0G4CygCACAFaiIANgIAQbwLKAIAIABJBEBBvAsgADYCAAsCQAJAAkBBoAgoAgAiBwRAQcgLIQADQCABIAAoAgAiAyAAKAIEIgJqRg0CIAAoAggiAA0ACwwCC0GYCCgCACIAQQAgACABTRtFBEBBmAggATYCAAtBACEAQcwLIAU2AgBByAsgATYCAEGoCEF/NgIAQawIQeALKAIANgIAQdQLQQA2AgADQCAAQQN0IgNBuAhqIANBsAhqIgI2AgAgA0G8CGogAjYCACAAQQFqIgBBIEcNAAtBlAggBUEoayIDQXggAWtBB3FBACABQQhqQQdxGyIAayICNgIAQaAIIAAgAWoiADYCACAAIAJBAXI2AgQgASADakEoNgIEQaQIQfALKAIANgIADAILIAAtAAxBCHENACADIAdLDQAgASAHTQ0AIAAgAiAFajYCBEGgCCAHQXggB2tBB3FBACAHQQhqQQdxGyIAaiICNgIAQZQIQZQIKAIAIAVqIgEgAGsiADYCACACIABBAXI2AgQgASAHakEoNgIEQaQIQfALKAIANgIADAELQZgIKAIAIAFLBEBBmAggATYCAAsgASAFaiECQcgLIQACQAJAAkACQAJAAkADQCACIAAoAgBHBEAgACgCCCIADQEMAgsLIAAtAAxBCHFFDQELQcgLIQADQCAHIAAoAgAiAk8EQCACIAAoAgRqIgQgB0sNAwsgACgCCCEADAALAAsgACABNgIAIAAgACgCBCAFajYCBCABQXggAWtBB3FBACABQQhqQQdxG2oiCSAIQQNyNgIEIAJBeCACa0EHcUEAIAJBCGpBB3EbaiIFIAggCWoiBmshAiAFIAdGBEBBoAggBjYCAEGUCEGUCCgCACACaiIANgIAIAYgAEEBcjYCBAwDCyAFQZwIKAIARgRAQZwIIAY2AgBBkAhBkAgoAgAgAmoiADYCACAGIABBAXI2AgQgACAGaiAANgIADAMLIAUoAgQiAEEDcUEBRgRAIABBeHEhBwJAIABB/wFNBEAgBSgCCCIDIABBA3YiAEEDdEGwCGpGGiADIAUoAgwiAUYEQEGICEGICCgCAEF+IAB3cTYCAAwCCyADIAE2AgwgASADNgIIDAELIAUoAhghCAJAIAUgBSgCDCIBRwRAIAUoAggiACABNgIMIAEgADYCCAwBCwJAIAVBFGoiACgCACIDDQAgBUEQaiIAKAIAIgMNAEEAIQEMAQsDQCAAIQQgAyIBQRRqIgAoAgAiAw0AIAFBEGohACABKAIQIgMNAAsgBEEANgIACyAIRQ0AAkAgBSAFKAIcIgNBAnRBuApqIgAoAgBGBEAgACABNgIAIAENAUGMCEGMCCgCAEF+IAN3cTYCAAwCCyAIQRBBFCAIKAIQIAVGG2ogATYCACABRQ0BCyABIAg2AhggBSgCECIABEAgASAANgIQIAAgATYCGAsgBSgCFCIARQ0AIAEgADYCFCAAIAE2AhgLIAUgB2ohBSACIAdqIQILIAUgBSgCBEF+cTYCBCAGIAJBAXI2AgQgAiAGaiACNgIAIAJB/wFNBEAgAkEDdiIAQQN0QbAIaiECAn9BiAgoAgAiAUEBIAB0IgBxRQRAQYgIIAAgAXI2AgAgAgwBCyACKAIICyEAIAIgBjYCCCAAIAY2AgwgBiACNgIMIAYgADYCCAwDC0EfIQAgAkH///8HTQRAIAJBCHYiACAAQYD+P2pBEHZBCHEiA3QiACAAQYDgH2pBEHZBBHEiAXQiACAAQYCAD2pBEHZBAnEiAHRBD3YgASADciAAcmsiAEEBdCACIABBFWp2QQFxckEcaiEACyAGIAA2AhwgBkIANwIQIABBAnRBuApqIQQCQEGMCCgCACIDQQEgAHQiAXFFBEBBjAggASADcjYCACAEIAY2AgAgBiAENgIYDAELIAJBAEEZIABBAXZrIABBH0YbdCEAIAQoAgAhAQNAIAEiAygCBEF4cSACRg0DIABBHXYhASAAQQF0IQAgAyABQQRxaiIEKAIQIgENAAsgBCAGNgIQIAYgAzYCGAsgBiAGNgIMIAYgBjYCCAwCC0GUCCAFQShrIgNBeCABa0EHcUEAIAFBCGpBB3EbIgBrIgI2AgBBoAggACABaiIANgIAIAAgAkEBcjYCBCABIANqQSg2AgRBpAhB8AsoAgA2AgAgByAEQScgBGtBB3FBACAEQSdrQQdxG2pBL2siACAAIAdBEGpJGyICQRs2AgQgAkHQCykCADcCECACQcgLKQIANwIIQdALIAJBCGo2AgBBzAsgBTYCAEHICyABNgIAQdQLQQA2AgAgAkEYaiEAA0AgAEEHNgIEIABBCGohASAAQQRqIQAgASAESQ0ACyACIAdGDQMgAiACKAIEQX5xNgIEIAcgAiAHayIEQQFyNgIEIAIgBDYCACAEQf8BTQRAIARBA3YiAEEDdEGwCGohAgJ/QYgIKAIAIgFBASAAdCIAcUUEQEGICCAAIAFyNgIAIAIMAQsgAigCCAshACACIAc2AgggACAHNgIMIAcgAjYCDCAHIAA2AggMBAtBHyEAIAdCADcCECAEQf///wdNBEAgBEEIdiIAIABBgP4/akEQdkEIcSICdCIAIABBgOAfakEQdkEEcSIBdCIAIABBgIAPakEQdkECcSIAdEEPdiABIAJyIAByayIAQQF0IAQgAEEVanZBAXFyQRxqIQALIAcgADYCHCAAQQJ0QbgKaiEDAkBBjAgoAgAiAkEBIAB0IgFxRQRAQYwIIAEgAnI2AgAgAyAHNgIAIAcgAzYCGAwBCyAEQQBBGSAAQQF2ayAAQR9GG3QhACADKAIAIQEDQCABIgIoAgRBeHEgBEYNBCAAQR12IQEgAEEBdCEAIAIgAUEEcWoiAygCECIBDQALIAMgBzYCECAHIAI2AhgLIAcgBzYCDCAHIAc2AggMAwsgAygCCCIAIAY2AgwgAyAGNgIIIAZBADYCGCAGIAM2AgwgBiAANgIICyAJQQhqIQAMBQsgAigCCCIAIAc2AgwgAiAHNgIIIAdBADYCGCAHIAI2AgwgByAANgIIC0GUCCgCACIAIAhNDQBBlAggACAIayIBNgIAQaAIQaAIKAIAIgIgCGoiADYCACAAIAFBAXI2AgQgAiAIQQNyNgIEIAJBCGohAAwDC0GECEEwNgIAQQAhAAwCCwJAIAVFDQACQCAEKAIcIgJBAnRBuApqIgAoAgAgBEYEQCAAIAE2AgAgAQ0BQYwIIAlBfiACd3EiCTYCAAwCCyAFQRBBFCAFKAIQIARGG2ogATYCACABRQ0BCyABIAU2AhggBCgCECIABEAgASAANgIQIAAgATYCGAsgBCgCFCIARQ0AIAEgADYCFCAAIAE2AhgLAkAgA0EPTQRAIAQgAyAIaiIAQQNyNgIEIAAgBGoiACAAKAIEQQFyNgIEDAELIAQgCEEDcjYCBCAGIANBAXI2AgQgAyAGaiADNgIAIANB/wFNBEAgA0EDdiIAQQN0QbAIaiECAn9BiAgoAgAiAUEBIAB0IgBxRQRAQYgIIAAgAXI2AgAgAgwBCyACKAIICyEAIAIgBjYCCCAAIAY2AgwgBiACNgIMIAYgADYCCAwBC0EfIQAgA0H///8HTQRAIANBCHYiACAAQYD+P2pBEHZBCHEiAnQiACAAQYDgH2pBEHZBBHEiAXQiACAAQYCAD2pBEHZBAnEiAHRBD3YgASACciAAcmsiAEEBdCADIABBFWp2QQFxckEcaiEACyAGIAA2AhwgBkIANwIQIABBAnRBuApqIQICQAJAIAlBASAAdCIBcUUEQEGMCCABIAlyNgIAIAIgBjYCACAGIAI2AhgMAQsgA0EAQRkgAEEBdmsgAEEfRht0IQAgAigCACEIA0AgCCIBKAIEQXhxIANGDQIgAEEddiECIABBAXQhACABIAJBBHFqIgIoAhAiCA0ACyACIAY2AhAgBiABNgIYCyAGIAY2AgwgBiAGNgIIDAELIAEoAggiACAGNgIMIAEgBjYCCCAGQQA2AhggBiABNgIMIAYgADYCCAsgBEEIaiEADAELAkAgC0UNAAJAIAEoAhwiAkECdEG4CmoiACgCACABRgRAIAAgBDYCACAEDQFBjAggBkF+IAJ3cTYCAAwCCyALQRBBFCALKAIQIAFGG2ogBDYCACAERQ0BCyAEIAs2AhggASgCECIABEAgBCAANgIQIAAgBDYCGAsgASgCFCIARQ0AIAQgADYCFCAAIAQ2AhgLAkAgA0EPTQRAIAEgAyAIaiIAQQNyNgIEIAAgAWoiACAAKAIEQQFyNgIEDAELIAEgCEEDcjYCBCAJIANBAXI2AgQgAyAJaiADNgIAIAoEQCAKQQN2IgBBA3RBsAhqIQRBnAgoAgAhAgJ/QQEgAHQiACAFcUUEQEGICCAAIAVyNgIAIAQMAQsgBCgCCAshACAEIAI2AgggACACNgIMIAIgBDYCDCACIAA2AggLQZwIIAk2AgBBkAggAzYCAAsgAUEIaiEACyAMQRBqJAAgAAsQACMAIABrQXBxIgAkACAACwYAIAAkAAsEACMAC4AJAgh/BH4jAEGQAWsiBiQAIAYgBS0AA0EYdEGAgIAYcSAFLwAAIAUtAAJBEHRycjYCACAGIAUoAANBAnZBg/7/H3E2AgQgBiAFKAAGQQR2Qf+B/x9xNgIIIAYgBSgACUEGdkH//8AfcTYCDCAFLwANIQggBS0ADyEJIAZCADcCFCAGQgA3AhwgBkEANgIkIAYgCCAJQRB0QYCAPHFyNgIQIAYgBSgAEDYCKCAGIAUoABQ2AiwgBiAFKAAYNgIwIAUoABwhBSAGQQA6AEwgBkEANgI4IAYgBTYCNCAGIAEgAhAEIAQEQCAGIAMgBBAECyAGKAI4IgEEQCAGQTxqIgIgAWpBAToAACABQQFqQQ9NBEAgASAGakE9aiEEAkBBDyABayIDRQ0AIAMgBGoiAUEBa0EAOgAAIARBADoAACADQQNJDQAgAUECa0EAOgAAIARBADoAASABQQNrQQA6AAAgBEEAOgACIANBB0kNACABQQRrQQA6AAAgBEEAOgADIANBCUkNACAEQQAgBGtBA3EiAWoiBEEANgIAIAQgAyABa0F8cSIBaiIDQQRrQQA2AgAgAUEJSQ0AIARBADYCCCAEQQA2AgQgA0EIa0EANgIAIANBDGtBADYCACABQRlJDQAgBEEANgIYIARBADYCFCAEQQA2AhAgBEEANgIMIANBEGtBADYCACADQRRrQQA2AgAgA0EYa0EANgIAIANBHGtBADYCACABIARBBHFBGHIiAWsiA0EgSQ0AIAEgBGohAQNAIAFCADcDGCABQgA3AxAgAUIANwMIIAFCADcDACABQSBqIQEgA0EgayIDQR9LDQALCwsgBkEBOgBMIAYgAkEQEAILIAY1AjQhECAGNQIwIREgBjUCLCEOIAAgBjUCKCAGKAIkIAYoAiAgBigCHCAGKAIYIgNBGnZqIgJBGnZqIgFBGnZqIgtBgICAYHIgAUH///8fcSINIAJB////H3EiCCAGKAIUIAtBGnZBBWxqIgFB////H3EiCUEFaiIFQRp2IANB////H3EgAUEadmoiA2oiAUEadmoiAkEadmoiBEEadmoiDEEfdSIHIANxIAEgDEEfdkEBayIDQf///x9xIgpxciIBQRp0IAUgCnEgByAJcXJyrXwiDzwAACAAIA9CGIg8AAMgACAPQhCIPAACIAAgD0IIiDwAASAAIA4gByAIcSACIApxciICQRR0IAFBBnZyrXwgD0IgiHwiDjwABCAAIA5CGIg8AAcgACAOQhCIPAAGIAAgDkIIiDwABSAAIBEgByANcSAEIApxciIBQQ50IAJBDHZyrXwgDkIgiHwiDjwACCAAIA5CGIg8AAsgACAOQhCIPAAKIAAgDkIIiDwACSAAIBAgAyAMcSAHIAtxckEIdCABQRJ2cq18IA5CIIh8Ig48AAwgACAOQhiIPAAPIAAgDkIQiDwADiAAIA5CCIg8AA0gBkIANwIwIAZCADcCKCAGQgA3AiAgBkIANwIYIAZCADcCECAGQgA3AgggBkIANwIAIAZBkAFqJAALpwwBB38CQCAARQ0AIABBCGsiAyAAQQRrKAIAIgFBeHEiAGohBQJAIAFBAXENACABQQNxRQ0BIAMgAygCACIBayIDQZgIKAIASQ0BIAAgAWohACADQZwIKAIARwRAIAFB/wFNBEAgAygCCCICIAFBA3YiBEEDdEGwCGpGGiACIAMoAgwiAUYEQEGICEGICCgCAEF+IAR3cTYCAAwDCyACIAE2AgwgASACNgIIDAILIAMoAhghBgJAIAMgAygCDCIBRwRAIAMoAggiAiABNgIMIAEgAjYCCAwBCwJAIANBFGoiAigCACIEDQAgA0EQaiICKAIAIgQNAEEAIQEMAQsDQCACIQcgBCIBQRRqIgIoAgAiBA0AIAFBEGohAiABKAIQIgQNAAsgB0EANgIACyAGRQ0BAkAgAyADKAIcIgJBAnRBuApqIgQoAgBGBEAgBCABNgIAIAENAUGMCEGMCCgCAEF+IAJ3cTYCAAwDCyAGQRBBFCAGKAIQIANGG2ogATYCACABRQ0CCyABIAY2AhggAygCECICBEAgASACNgIQIAIgATYCGAsgAygCFCICRQ0BIAEgAjYCFCACIAE2AhgMAQsgBSgCBCIBQQNxQQNHDQBBkAggADYCACAFIAFBfnE2AgQgAyAAQQFyNgIEIAAgA2ogADYCAA8LIAMgBU8NACAFKAIEIgFBAXFFDQACQCABQQJxRQRAIAVBoAgoAgBGBEBBoAggAzYCAEGUCEGUCCgCACAAaiIANgIAIAMgAEEBcjYCBCADQZwIKAIARw0DQZAIQQA2AgBBnAhBADYCAA8LIAVBnAgoAgBGBEBBnAggAzYCAEGQCEGQCCgCACAAaiIANgIAIAMgAEEBcjYCBCAAIANqIAA2AgAPCyABQXhxIABqIQACQCABQf8BTQRAIAUoAggiAiABQQN2IgRBA3RBsAhqRhogAiAFKAIMIgFGBEBBiAhBiAgoAgBBfiAEd3E2AgAMAgsgAiABNgIMIAEgAjYCCAwBCyAFKAIYIQYCQCAFIAUoAgwiAUcEQCAFKAIIIgJBmAgoAgBJGiACIAE2AgwgASACNgIIDAELAkAgBUEUaiICKAIAIgQNACAFQRBqIgIoAgAiBA0AQQAhAQwBCwNAIAIhByAEIgFBFGoiAigCACIEDQAgAUEQaiECIAEoAhAiBA0ACyAHQQA2AgALIAZFDQACQCAFIAUoAhwiAkECdEG4CmoiBCgCAEYEQCAEIAE2AgAgAQ0BQYwIQYwIKAIAQX4gAndxNgIADAILIAZBEEEUIAYoAhAgBUYbaiABNgIAIAFFDQELIAEgBjYCGCAFKAIQIgIEQCABIAI2AhAgAiABNgIYCyAFKAIUIgJFDQAgASACNgIUIAIgATYCGAsgAyAAQQFyNgIEIAAgA2ogADYCACADQZwIKAIARw0BQZAIIAA2AgAPCyAFIAFBfnE2AgQgAyAAQQFyNgIEIAAgA2ogADYCAAsgAEH/AU0EQCAAQQN2IgFBA3RBsAhqIQACf0GICCgCACICQQEgAXQiAXFFBEBBiAggASACcjYCACAADAELIAAoAggLIQIgACADNgIIIAIgAzYCDCADIAA2AgwgAyACNgIIDwtBHyECIANCADcCECAAQf///wdNBEAgAEEIdiIBIAFBgP4/akEQdkEIcSIBdCICIAJBgOAfakEQdkEEcSICdCIEIARBgIAPakEQdkECcSIEdEEPdiABIAJyIARyayIBQQF0IAAgAUEVanZBAXFyQRxqIQILIAMgAjYCHCACQQJ0QbgKaiEBAkACQAJAQYwIKAIAIgRBASACdCIHcUUEQEGMCCAEIAdyNgIAIAEgAzYCACADIAE2AhgMAQsgAEEAQRkgAkEBdmsgAkEfRht0IQIgASgCACEBA0AgASIEKAIEQXhxIABGDQIgAkEddiEBIAJBAXQhAiAEIAFBBHFqIgdBEGooAgAiAQ0ACyAHIAM2AhAgAyAENgIYCyADIAM2AgwgAyADNgIIDAELIAQoAggiACADNgIMIAQgAzYCCCADQQA2AhggAyAENgIMIAMgADYCCAtBqAhBqAgoAgBBAWsiAEF/IAAbNgIACwsLCQEAQYEICwIGUA==").startsWith(M)){var H=D;D=n.locateFile?n.locateFile(H,_):_+H}function F(){var e=D;try{if(e==D&&b)return new Uint8Array(b);var t=Q(e);if(t)return t;if(p)return p(e);throw"both async and sync fetching of the wasm failed"}catch(e){U(e)}}function j(e){for(;0<e.length;){var t=e.shift();if("function"==typeof t)t(n);else{var i=t.m;"number"==typeof i?void 0===t.l?R.get(i)():R.get(i)(t.l):i(void 0===t.l?null:t.l)}}}var $="function"==typeof atob?atob:function(e){var t="",n=0;e=e.replace(/[^A-Za-z0-9\+\/=]/g,"");do{var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n++)),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n++)),s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n++)),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(e.charAt(n++));i=i<<2|r>>4,r=(15&r)<<4|s>>2;var a=(3&s)<<6|o;t+=String.fromCharCode(i),64!==s&&(t+=String.fromCharCode(r)),64!==o&&(t+=String.fromCharCode(a))}while(n<e.length);return t};function Q(e){if(e.startsWith(M)){if(e=e.slice(M.length),"boolean"==typeof g&&g){var t=Buffer.from(e,"base64");t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}else try{var n=$(e),i=new Uint8Array(n.length);for(e=0;e<n.length;++e)i[e]=n.charCodeAt(e);t=i}catch(e){throw Error("Converting base64 string to bytes failed.")}return t}}var W={a:function(e){var t=I.length;if(2147483648<(e>>>=0))return!1;for(var n=1;4>=n;n*=2){var i=t*(1+.2/n);i=Math.min(i,e+100663296),0<(i=Math.max(e,i))%65536&&(i+=65536-i%65536);e:{try{v.grow(Math.min(2147483648,i)-x.byteLength+65535>>>16),C();var r=1;break e}catch(e){}r=void 0}if(r)return!0}return!1}};!function(){function e(e){n.asm=e.exports,v=n.asm.b,C(),R=n.asm.j,T.unshift(n.asm.c),L--,n.monitorRunDependencies&&n.monitorRunDependencies(L),0==L&&P&&(e=P,P=null,e())}function t(t){e(t.instance)}function i(e){return function(){if(!b&&(f||m)){if("function"==typeof fetch&&!D.startsWith("file://"))return fetch(D,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+D+"'";return e.arrayBuffer()}).catch(function(){return F()});if(u)return new Promise(function(e,t){u(D,function(t){e(new Uint8Array(t))},t)})}return Promise.resolve().then(function(){return F()})}().then(function(e){return WebAssembly.instantiate(e,r)}).then(e,function(e){y("failed to asynchronously prepare wasm: "+e),U(e)})}var r={a:W};if(L++,n.monitorRunDependencies&&n.monitorRunDependencies(L),n.instantiateWasm)try{return n.instantiateWasm(r,e)}catch(e){return y("Module.instantiateWasm callback failed with error: "+e),!1}(b||"function"!=typeof WebAssembly.instantiateStreaming||D.startsWith(M)||D.startsWith("file://")||"function"!=typeof fetch?i(t):fetch(D,{credentials:"same-origin"}).then(function(e){return WebAssembly.instantiateStreaming(e,r).then(t,function(e){return y("wasm streaming compile failed: "+e),y("falling back to ArrayBuffer instantiation"),i(t)})})).catch(o)}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.c).apply(null,arguments)},n._poly1305_auth=function(){return(n._poly1305_auth=n.asm.d).apply(null,arguments)};var q,Y=n.stackSave=function(){return(Y=n.stackSave=n.asm.e).apply(null,arguments)},G=n.stackRestore=function(){return(G=n.stackRestore=n.asm.f).apply(null,arguments)},K=n.stackAlloc=function(){return(K=n.stackAlloc=n.asm.g).apply(null,arguments)};function z(){function e(){if(!q&&(q=!0,n.calledRun=!0,!A)){if(j(T),s(n),n.onRuntimeInitialized&&n.onRuntimeInitialized(),n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;){var e=n.postRun.shift();O.unshift(e)}j(O)}}if(!(0<L)){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)N();j(B),0<L||(n.setStatus?(n.setStatus("Running..."),setTimeout(function(){setTimeout(function(){n.setStatus("")},1),e()},1)):e())}}if(n._malloc=function(){return(n._malloc=n.asm.h).apply(null,arguments)},n._free=function(){return(n._free=n.asm.i).apply(null,arguments)},n.cwrap=function(e,t,n,i){var r=(n=n||[]).every(function(e){return"number"===e});return"string"!==t&&r&&!i?w(e):function(){return function(e,t,n,i){var r={string:function(e){var t=0;if(null!=e&&0!==e){var n=1+(e.length<<2),i=t=K(n),r=I;if(0<n){n=i+n-1;for(var s=0;s<e.length;++s){var o=e.charCodeAt(s);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++s)),127>=o){if(i>=n)break;r[i++]=o}else{if(2047>=o){if(i+1>=n)break;r[i++]=192|o>>6}else{if(65535>=o){if(i+2>=n)break;r[i++]=224|o>>12}else{if(i+3>=n)break;r[i++]=240|o>>18,r[i++]=128|o>>12&63}r[i++]=128|o>>6&63}r[i++]=128|63&o}}r[i]=0}}return t},array:function(e){var t=K(e.length);return S.set(e,t),t}},s=w(e),o=[];if(e=0,i)for(var a=0;a<i.length;a++){var c=r[n[a]];c?(0===e&&(e=Y()),o[a]=c(i[a])):o[a]=i[a]}return n=function(e){if("string"===t)if(e){for(var n=I,i=e+NaN,r=e;n[r]&&!(r>=i);)++r;if(16<r-e&&n.subarray&&k)e=k.decode(n.subarray(e,r));else{for(i="";e<r;){var s=n[e++];if(128&s){var o=63&n[e++];if(192==(224&s))i+=String.fromCharCode((31&s)<<6|o);else{var a=63&n[e++];65536>(s=224==(240&s)?(15&s)<<12|o<<6|a:(7&s)<<18|o<<12|a<<6|63&n[e++])?i+=String.fromCharCode(s):(s-=65536,i+=String.fromCharCode(55296|s>>10,56320|1023&s))}}else i+=String.fromCharCode(s)}e=i}}else e="";else e="boolean"===t?!!e:e;return e}(n=s.apply(null,o)),0!==e&&G(e),n}(e,t,n,arguments)}},P=function e(){q||z(),q||(P=e)},n.run=z,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);0<n.preInit.length;)n.preInit.pop()();return z(),e.ready});e.exports=n}(he)),he.exports}function me(){if(de)return pe;de=1;const{createCipheriv:e,createDecipheriv:t,createHmac:n,randomFillSync:i,timingSafeEqual:r}=o,{readUInt32BE:s,writeUInt32BE:a}=le(),c=Buffer[Symbol.species],l=2**32-1,u=Buffer.alloc(0),p=Buffer.alloc(4),d=new Map,h=35e3;let f,m,g,_,b,y,v;try{f=require("./crypto/build/Release/sshcrypto.node"),({AESGCMCipher:m,ChaChaPolyCipher:g,GenericCipher:_,AESGCMDecipher:b,ChaChaPolyDecipher:y,GenericDecipher:v}=f)}catch{}const A=(()=>{function e(e,t,n,i,r,s,o){return{sslName:e,blockLen:t,keyLen:n,ivLen:0!==i||1&o?i:t,authLen:r,discardLen:s,stream:!!(1&o)}}return{"chacha20-poly1305@openssh.com":e("chacha20",8,64,0,16,0,1),"aes128-gcm":e("aes-128-gcm",16,16,12,16,0,1),"aes256-gcm":e("aes-256-gcm",16,32,12,16,0,1),"aes128-gcm@openssh.com":e("aes-128-gcm",16,16,12,16,0,1),"aes256-gcm@openssh.com":e("aes-256-gcm",16,32,12,16,0,1),"aes128-cbc":e("aes-128-cbc",16,16,0,0,0,0),"aes192-cbc":e("aes-192-cbc",16,24,0,0,0,0),"aes256-cbc":e("aes-256-cbc",16,32,0,0,0,0),"rijndael-cbc@lysator.liu.se":e("aes-256-cbc",16,32,0,0,0,0),"3des-cbc":e("des-ede3-cbc",8,24,0,0,0,0),"blowfish-cbc":e("bf-cbc",8,16,0,0,0,0),"idea-cbc":e("idea-cbc",8,16,0,0,0,0),"cast128-cbc":e("cast-cbc",8,16,0,0,0,0),"aes128-ctr":e("aes-128-ctr",16,16,16,0,0,1),"aes192-ctr":e("aes-192-ctr",16,24,16,0,0,1),"aes256-ctr":e("aes-256-ctr",16,32,16,0,0,1),"3des-ctr":e("des-ede3",8,24,8,0,0,1),"blowfish-ctr":e("bf-ecb",8,16,8,0,0,1),"cast128-ctr":e("cast5-ecb",8,16,8,0,0,1),arcfour:e("rc4",8,16,0,0,1536,1),arcfour128:e("rc4",8,16,0,0,1536,1),arcfour256:e("rc4",8,32,0,0,1536,1),arcfour512:e("rc4",8,64,0,0,1536,1)}})(),E=(()=>{function e(e,t,n,i){return{sslName:e,len:t,actualLen:n,isETM:i}}return{"hmac-md5":e("md5",16,16,!1),"hmac-md5-96":e("md5",16,12,!1),"hmac-ripemd160":e("ripemd160",20,20,!1),"hmac-sha1":e("sha1",20,20,!1),"hmac-sha1-etm@openssh.com":e("sha1",20,20,!0),"hmac-sha1-96":e("sha1",20,12,!1),"hmac-sha2-256":e("sha256",32,32,!1),"hmac-sha2-256-etm@openssh.com":e("sha256",32,32,!0),"hmac-sha2-256-96":e("sha256",32,12,!1),"hmac-sha2-512":e("sha512",64,64,!1),"hmac-sha2-512-etm@openssh.com":e("sha512",64,64,!0),"hmac-sha2-512-96":e("sha512",64,12,!1)}})();const w=Buffer.alloc(32),x=Buffer.alloc(16);let S,I,k;class C{constructor(e){const t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._encKeyMain=t.cipherKey.slice(0,32),this._encKeyPktLen=t.cipherKey.slice(32),this._dead=!1}free(){this._dead=!0}allocPacket(e){let t=5+e,n=8-(t-4&7);n<4&&(n+=8),t+=n;const r=Buffer.allocUnsafe(t);return a(r,t-4,0),r[4]=n,i(r,5+e,n),r}encrypt(t){if(this._dead)return;x[0]=0,a(x,this.outSeqno,12);const n=e("chacha20",this._encKeyMain,x).update(w),i=e("chacha20",this._encKeyPktLen,x).update(t.slice(0,4));this._onWrite(i),x[0]=1;const r=e("chacha20",this._encKeyMain,x).update(t.slice(4));this._onWrite(r),k(I,i,i.length,r,r.length,n);const s=Buffer.allocUnsafe(16);s.set(new Uint8Array(S.HEAPU8.buffer,I,16),0),this._onWrite(s),this.outSeqno=this.outSeqno+1>>>0}}class R{constructor(e){const t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._instance=new g(t.cipherKey),this._dead=!1}free(){this._dead=!0,this._instance.free()}allocPacket(e){let t=5+e,n=8-(t-4&7);n<4&&(n+=8),t+=n;const r=Buffer.allocUnsafe(t+16);return a(r,t-4,0),r[4]=n,i(r,5+e,n),r}encrypt(e){this._dead||(this._instance.encrypt(e,this.outSeqno),this._onWrite(e),this.outSeqno=this.outSeqno+1>>>0)}}class B{constructor(e){const t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._encSSLName=t.cipherInfo.sslName,this._encKey=t.cipherKey,this._encIV=t.cipherIV,this._dead=!1}free(){this._dead=!0}allocPacket(e){let t=5+e,n=16-(t-4&15);n<4&&(n+=16),t+=n;const r=Buffer.allocUnsafe(t);return a(r,t-4,0),r[4]=n,i(r,5+e,n),r}encrypt(t){if(this._dead)return;const n=e(this._encSSLName,this._encKey,this._encIV);n.setAutoPadding(!1);const i=t.slice(0,4);n.setAAD(i),this._onWrite(i);const r=n.update(t.slice(4));this._onWrite(r);const s=n.final();s.length&&this._onWrite(s);const o=n.getAuthTag();this._onWrite(o),F(this._encIV),this.outSeqno=this.outSeqno+1>>>0}}class T{constructor(e){const t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._instance=new m(t.cipherInfo.sslName,t.cipherKey,t.cipherIV),this._dead=!1}free(){this._dead=!0,this._instance.free()}allocPacket(e){let t=5+e,n=16-(t-4&15);n<4&&(n+=16),t+=n;const r=Buffer.allocUnsafe(t+16);return a(r,t-4,0),r[4]=n,i(r,5+e,n),r}encrypt(e){this._dead||(this._instance.encrypt(e),this._onWrite(e),this.outSeqno=this.outSeqno+1>>>0)}}class O{constructor(t){const n=t.outbound;this.outSeqno=n.seqno,this._onWrite=n.onWrite,this._encBlockLen=n.cipherInfo.blockLen,this._cipherInstance=e(n.cipherInfo.sslName,n.cipherKey,n.cipherIV),this._macSSLName=n.macInfo.sslName,this._macKey=n.macKey,this._macActualLen=n.macInfo.actualLen,this._macETM=n.macInfo.isETM,this._aadLen=this._macETM?4:0,this._dead=!1;const i=n.cipherInfo.discardLen;if(i){let e=d.get(i);void 0===e&&(e=Buffer.alloc(i),d.set(i,e)),this._cipherInstance.update(e)}}free(){this._dead=!0}allocPacket(e){const t=this._encBlockLen;let n=5+e,r=t-(n-this._aadLen&t-1);r<4&&(r+=t),n+=r;const s=Buffer.allocUnsafe(n);return a(s,n-4,0),s[4]=r,i(s,5+e,r),s}encrypt(e){if(this._dead)return;let t;if(this._macETM){const i=new Uint8Array(e.buffer,e.byteOffset,4),r=this._cipherInstance.update(new Uint8Array(e.buffer,e.byteOffset+4,e.length-4));this._onWrite(i),this._onWrite(r),t=n(this._macSSLName,this._macKey),a(p,this.outSeqno,0),t.update(p),t.update(i),t.update(r)}else{const i=this._cipherInstance.update(e);this._onWrite(i),t=n(this._macSSLName,this._macKey),a(p,this.outSeqno,0),t.update(p),t.update(e)}let i=t.digest();i.length>this._macActualLen&&(i=i.slice(0,this._macActualLen)),this._onWrite(i),this.outSeqno=this.outSeqno+1>>>0}}class N{constructor(e){const t=e.outbound;this.outSeqno=t.seqno,this._onWrite=t.onWrite,this._encBlockLen=t.cipherInfo.blockLen,this._macLen=t.macInfo.len,this._macActualLen=t.macInfo.actualLen,this._aadLen=t.macInfo.isETM?4:0,this._instance=new _(t.cipherInfo.sslName,t.cipherKey,t.cipherIV,t.macInfo.sslName,t.macKey,t.macInfo.isETM),this._dead=!1}free(){this._dead=!0,this._instance.free()}allocPacket(e){const t=this._encBlockLen;let n=5+e,r=t-(n-this._aadLen&t-1);r<4&&(r+=t),n+=r;const s=Buffer.allocUnsafe(n+this._macLen);return a(s,n-4,0),s[4]=r,i(s,5+e,r),s}encrypt(e){this._dead||(this._instance.encrypt(e,this.outSeqno),this._macActualLen<this._macLen&&(e=new c(e.buffer,e.byteOffset,e.length-(this._macLen-this._macActualLen))),this._onWrite(e),this.outSeqno=this.outSeqno+1>>>0)}}class L{constructor(e){const t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._decKeyMain=t.decipherKey.slice(0,32),this._decKeyPktLen=t.decipherKey.slice(32),this._len=0,this._lenBuf=Buffer.alloc(4),this._lenPos=0,this._packet=null,this._pktLen=0,this._mac=Buffer.allocUnsafe(16),this._calcMac=Buffer.allocUnsafe(16),this._macPos=0}free(){}decrypt(n,i,o){for(;i<o;){if(this._lenPos<4){let e=Math.min(4-this._lenPos,o-i);for(;e--;)this._lenBuf[this._lenPos++]=n[i++];if(this._lenPos<4)return;x[0]=0,a(x,this.inSeqno,12);const r=t("chacha20",this._decKeyPktLen,x).update(this._lenBuf);if(this._len=s(r,0),this._len>h||this._len<8||7&this._len)throw new Error("Bad packet length")}if(this._pktLen<this._len){if(i>=o)return;const e=Math.min(this._len-this._pktLen,o-i);let t;if(t=0!==i||e!==o?new Uint8Array(n.buffer,n.byteOffset+i,e):n,e===this._len?this._packet=t:(this._packet||(this._packet=Buffer.allocUnsafe(this._len)),this._packet.set(t,this._pktLen)),i+=e,this._pktLen+=e,this._pktLen<this._len||i>=o)return}{const e=Math.min(16-this._macPos,o-i);if(0!==i||e!==o?this._mac.set(new Uint8Array(n.buffer,n.byteOffset+i,e),this._macPos):this._mac.set(n,this._macPos),i+=e,this._macPos+=e,this._macPos<16)return}x[0]=0,a(x,this.inSeqno,12);const l=e("chacha20",this._decKeyMain,x).update(w);if(k(I,this._lenBuf,4,this._packet,this._packet.length,l),this._calcMac.set(new Uint8Array(S.HEAPU8.buffer,I,16),0),!r(this._calcMac,this._mac))throw new Error("Invalid MAC");x[0]=1;const u=t("chacha20",this._decKeyMain,x).update(this._packet),p=new c(u.buffer,u.byteOffset+1,u.length-u[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._len=0,this._lenPos=0,this._packet=null,this._pktLen=0,this._macPos=0;{const e=this._onPayload(p);if(void 0!==e)return!1===e?i:e}}}}class P{constructor(e){const t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._instance=new y(t.decipherKey),this._len=0,this._lenBuf=Buffer.alloc(4),this._lenPos=0,this._packet=null,this._pktLen=0,this._mac=Buffer.allocUnsafe(16),this._macPos=0}free(){this._instance.free()}decrypt(e,t,n){for(;t<n;){if(this._lenPos<4){let i=Math.min(4-this._lenPos,n-t);for(;i--;)this._lenBuf[this._lenPos++]=e[t++];if(this._lenPos<4)return;if(this._len=this._instance.decryptLen(this._lenBuf,this.inSeqno),this._len>h||this._len<8||7&this._len)throw new Error("Bad packet length");if(t>=n)return}if(this._pktLen<this._len){const i=Math.min(this._len-this._pktLen,n-t);let r;if(r=0!==t||i!==n?new Uint8Array(e.buffer,e.byteOffset+t,i):e,i===this._len?this._packet=r:(this._packet||(this._packet=Buffer.allocUnsafe(this._len)),this._packet.set(r,this._pktLen)),t+=i,this._pktLen+=i,this._pktLen<this._len||t>=n)return}{const i=Math.min(16-this._macPos,n-t);if(0!==t||i!==n?this._mac.set(new Uint8Array(e.buffer,e.byteOffset+t,i),this._macPos):this._mac.set(e,this._macPos),t+=i,this._macPos+=i,this._macPos<16)return}this._instance.decrypt(this._packet,this._mac,this.inSeqno);const i=new c(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._len=0,this._lenPos=0,this._packet=null,this._pktLen=0,this._macPos=0;{const e=this._onPayload(i);if(void 0!==e)return!1===e?t:e}}}}class U{constructor(e){const t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._decipherInstance=null,this._decipherSSLName=t.decipherInfo.sslName,this._decipherKey=t.decipherKey,this._decipherIV=t.decipherIV,this._len=0,this._lenBytes=0,this._packet=null,this._packetPos=0,this._pktLen=0,this._tag=Buffer.allocUnsafe(16),this._tagPos=0}free(){}decrypt(e,n,i){for(;n<i;){if(this._lenBytes<4){let r=Math.min(4-this._lenBytes,i-n);for(this._lenBytes+=r;r--;)this._len=(this._len<<8)+e[n++];if(this._lenBytes<4)return;if(this._len+20>h||this._len<16||15&this._len)throw new Error("Bad packet length");this._decipherInstance=t(this._decipherSSLName,this._decipherKey,this._decipherIV),this._decipherInstance.setAutoPadding(!1),this._decipherInstance.setAAD(j(this._len))}if(this._pktLen<this._len){if(n>=i)return;const t=Math.min(this._len-this._pktLen,i-n);let r;if(r=0!==n||t!==i?this._decipherInstance.update(new Uint8Array(e.buffer,e.byteOffset+n,t)):this._decipherInstance.update(e),r.length&&(t===this._len?this._packet=r:(this._packet||(this._packet=Buffer.allocUnsafe(this._len)),this._packet.set(r,this._packetPos)),this._packetPos+=r.length),n+=t,this._pktLen+=t,this._pktLen<this._len||n>=i)return}{const t=Math.min(16-this._tagPos,i-n);if(0!==n||t!==i?this._tag.set(new Uint8Array(e.buffer,e.byteOffset+n,t),this._tagPos):this._tag.set(e,this._tagPos),n+=t,this._tagPos+=t,this._tagPos<16)return}{this._decipherInstance.setAuthTag(this._tag);const e=this._decipherInstance.final();e.length&&(this._packet?this._packet.set(e,this._packetPos):this._packet=e)}const r=this._packet?new c(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1):u;this.inSeqno=this.inSeqno+1>>>0,F(this._decipherIV),this._len=0,this._lenBytes=0,this._packet=null,this._packetPos=0,this._pktLen=0,this._tagPos=0;{const e=this._onPayload(r);if(void 0!==e)return!1===e?n:e}}}}class D{constructor(e){const t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._instance=new b(t.decipherInfo.sslName,t.decipherKey,t.decipherIV),this._len=0,this._lenBytes=0,this._packet=null,this._pktLen=0,this._tag=Buffer.allocUnsafe(16),this._tagPos=0}free(){}decrypt(e,t,n){for(;t<n;){if(this._lenBytes<4){let i=Math.min(4-this._lenBytes,n-t);for(this._lenBytes+=i;i--;)this._len=(this._len<<8)+e[t++];if(this._lenBytes<4)return;if(this._len+20>h||this._len<16||15&this._len)throw new Error(`Bad packet length: ${this._len}`)}if(this._pktLen<this._len){if(t>=n)return;const i=Math.min(this._len-this._pktLen,n-t);let r;if(r=0!==t||i!==n?new Uint8Array(e.buffer,e.byteOffset+t,i):e,i===this._len?this._packet=r:(this._packet||(this._packet=Buffer.allocUnsafe(this._len)),this._packet.set(r,this._pktLen)),t+=i,this._pktLen+=i,this._pktLen<this._len||t>=n)return}{const i=Math.min(16-this._tagPos,n-t);if(0!==t||i!==n?this._tag.set(new Uint8Array(e.buffer,e.byteOffset+t,i),this._tagPos):this._tag.set(e,this._tagPos),t+=i,this._tagPos+=i,this._tagPos<16)return}this._instance.decrypt(this._packet,this._len,this._tag);const i=new c(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._len=0,this._lenBytes=0,this._packet=null,this._pktLen=0,this._tagPos=0;{const e=this._onPayload(i);if(void 0!==e)return!1===e?t:e}}}}class M{constructor(e){const n=e.inbound;this.inSeqno=n.seqno,this._onPayload=n.onPayload,this._decipherInstance=t(n.decipherInfo.sslName,n.decipherKey,n.decipherIV),this._decipherInstance.setAutoPadding(!1),this._block=Buffer.allocUnsafe(n.macInfo.isETM?4:n.decipherInfo.blockLen),this._blockSize=n.decipherInfo.blockLen,this._blockPos=0,this._len=0,this._packet=null,this._packetPos=0,this._pktLen=0,this._mac=Buffer.allocUnsafe(n.macInfo.actualLen),this._macPos=0,this._macSSLName=n.macInfo.sslName,this._macKey=n.macKey,this._macActualLen=n.macInfo.actualLen,this._macETM=n.macInfo.isETM,this._macInstance=null;const i=n.decipherInfo.discardLen;if(i){let e=d.get(i);void 0===e&&(e=Buffer.alloc(i),d.set(i,e)),this._decipherInstance.update(e)}}free(){}decrypt(e,t,i){for(;t<i;){if(this._blockPos<this._block.length){const r=Math.min(this._block.length-this._blockPos,i-t);if(0!==t||r!==i||r<e.length?this._block.set(new Uint8Array(e.buffer,e.byteOffset+t,r),this._blockPos):this._block.set(e,this._blockPos),t+=r,this._blockPos+=r,this._blockPos<this._block.length)return;let o,c;if(this._macETM?this._len=c=s(this._block,0):(o=this._decipherInstance.update(this._block),this._len=s(o,0),c=4+this._len-this._blockSize),this._len>h||this._len<5||c&this._blockSize-1)throw new Error("Bad packet length");if(this._macInstance=n(this._macSSLName,this._macKey),a(p,this.inSeqno,0),this._macInstance.update(p),this._macETM?this._macInstance.update(this._block):(this._macInstance.update(new Uint8Array(o.buffer,o.byteOffset,4)),this._pktLen=o.length-4,this._packetPos=this._pktLen,this._packet=Buffer.allocUnsafe(this._len),this._packet.set(new Uint8Array(o.buffer,o.byteOffset+4,this._packetPos),0)),t>=i)return}if(this._pktLen<this._len){const n=Math.min(this._len-this._pktLen,i-t);let r;r=0!==t||n!==i?new Uint8Array(e.buffer,e.byteOffset+t,n):e,this._macETM&&this._macInstance.update(r);const s=this._decipherInstance.update(r);if(s.length&&(n===this._len?this._packet=s:(this._packet||(this._packet=Buffer.allocUnsafe(this._len)),this._packet.set(s,this._packetPos)),this._packetPos+=s.length),t+=n,this._pktLen+=n,this._pktLen<this._len||t>=i)return}{const n=Math.min(this._macActualLen-this._macPos,i-t);if(0!==t||n!==i?this._mac.set(new Uint8Array(e.buffer,e.byteOffset+t,n),this._macPos):this._mac.set(e,this._macPos),t+=n,this._macPos+=n,this._macPos<this._macActualLen)return}this._macETM||this._macInstance.update(this._packet);let r=this._macInstance.digest();if(this._macActualLen<r.length&&(r=new Uint8Array(r.buffer,r.byteOffset,this._macActualLen)),!$(r,this._mac))throw new Error("Invalid MAC");const o=new c(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._blockPos=0,this._len=0,this._packet=null,this._packetPos=0,this._pktLen=0,this._macPos=0,this._macInstance=null;{const e=this._onPayload(o);if(void 0!==e)return!1===e?t:e}}}}class H{constructor(e){const t=e.inbound;this.inSeqno=t.seqno,this._onPayload=t.onPayload,this._instance=new v(t.decipherInfo.sslName,t.decipherKey,t.decipherIV,t.macInfo.sslName,t.macKey,t.macInfo.isETM,t.macInfo.actualLen),this._block=Buffer.allocUnsafe(t.macInfo.isETM||t.decipherInfo.stream?4:t.decipherInfo.blockLen),this._blockPos=0,this._len=0,this._packet=null,this._pktLen=0,this._mac=Buffer.allocUnsafe(t.macInfo.actualLen),this._macPos=0,this._macActualLen=t.macInfo.actualLen,this._macETM=t.macInfo.isETM}free(){this._instance.free()}decrypt(e,t,n){for(;t<n;){if(this._blockPos<this._block.length){const i=Math.min(this._block.length-this._blockPos,n-t);if(0!==t||i!==n||i<e.length?this._block.set(new Uint8Array(e.buffer,e.byteOffset+t,i),this._blockPos):this._block.set(e,this._blockPos),t+=i,this._blockPos+=i,this._blockPos<this._block.length)return;let r;if(this._macETM?this._len=r=s(this._block,0):(this._instance.decryptBlock(this._block),this._len=s(this._block,0),r=4+this._len-this._block.length),this._len>h||this._len<5||r&this._block.length-1)throw new Error("Bad packet length");if(this._macETM||(this._pktLen=this._block.length-4,this._pktLen&&(this._packet=Buffer.allocUnsafe(this._len),this._packet.set(new Uint8Array(this._block.buffer,this._block.byteOffset+4,this._pktLen),0))),t>=n)return}if(this._pktLen<this._len){const i=Math.min(this._len-this._pktLen,n-t);let r;if(r=0!==t||i!==n?new Uint8Array(e.buffer,e.byteOffset+t,i):e,i===this._len?this._packet=r:(this._packet||(this._packet=Buffer.allocUnsafe(this._len)),this._packet.set(r,this._pktLen)),t+=i,this._pktLen+=i,this._pktLen<this._len||t>=n)return}{const i=Math.min(this._macActualLen-this._macPos,n-t);if(0!==t||i!==n?this._mac.set(new Uint8Array(e.buffer,e.byteOffset+t,i),this._macPos):this._mac.set(e,this._macPos),t+=i,this._macPos+=i,this._macPos<this._macActualLen)return}this._instance.decrypt(this._packet,this.inSeqno,this._block,this._mac);const i=new c(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1);this.inSeqno=this.inSeqno+1>>>0,this._blockPos=0,this._len=0,this._packet=null,this._pktLen=0,this._macPos=0,this._macInstance=null;{const e=this._onPayload(i);if(void 0!==e)return!1===e?t:e}}}}function F(e){++e[11]>>>8&&++e[10]>>>8&&++e[9]>>>8&&++e[8]>>>8&&++e[7]>>>8&&++e[6]>>>8&&++e[5]>>>8&&++e[4]}const j=(()=>{const e=Buffer.alloc(4);return t=>(e[0]=t>>>24,e[1]=t>>>16,e[2]=t>>>8,e[3]=t,e)})();function $(e,t){return e.length!==t.length?(r(e,e),!1):r(e,t)}return pe={CIPHER_INFO:A,MAC_INFO:E,bindingAvailable:!!f,init:new Promise(async(e,t)=>{try{S=await fe()(),I=S._malloc(16),k=S.cwrap("poly1305_auth",null,["number","array","number","array","number","array"])}catch(e){return t(e)}e()}),NullCipher:class{constructor(e,t){this.outSeqno=e,this._onWrite=t,this._dead=!1}free(){this._dead=!0}allocPacket(e){let t=5+e,n=8-(7&t);n<4&&(n+=8),t+=n;const r=Buffer.allocUnsafe(t);return a(r,t-4,0),r[4]=n,i(r,5+e,n),r}encrypt(e){this._dead||(this._onWrite(e),this.outSeqno=this.outSeqno+1>>>0)}},createCipher:function(e){if("object"!=typeof e||null===e)throw new Error("Invalid config");if("object"!=typeof e.outbound||null===e.outbound)throw new Error("Invalid outbound");const t=e.outbound;if("function"!=typeof t.onWrite)throw new Error("Invalid outbound.onWrite");if("object"!=typeof t.cipherInfo||null===t.cipherInfo)throw new Error("Invalid outbound.cipherInfo");if(!Buffer.isBuffer(t.cipherKey)||t.cipherKey.length!==t.cipherInfo.keyLen)throw new Error("Invalid outbound.cipherKey");if(t.cipherInfo.ivLen&&(!Buffer.isBuffer(t.cipherIV)||t.cipherIV.length!==t.cipherInfo.ivLen))throw new Error("Invalid outbound.cipherIV");if("number"!=typeof t.seqno||t.seqno<0||t.seqno>l)throw new Error("Invalid outbound.seqno");const n=!!t.forceNative;switch(t.cipherInfo.sslName){case"aes-128-gcm":case"aes-256-gcm":return m&&!n?new T(e):new B(e);case"chacha20":return g&&!n?new R(e):new C(e);default:if("object"!=typeof t.macInfo||null===t.macInfo)throw new Error("Invalid outbound.macInfo");if(!Buffer.isBuffer(t.macKey)||t.macKey.length!==t.macInfo.len)throw new Error("Invalid outbound.macKey");return _&&!n?new N(e):new O(e)}},NullDecipher:class{constructor(e,t){this.inSeqno=e,this._onPayload=t,this._len=0,this._lenBytes=0,this._packet=null,this._packetPos=0}free(){}decrypt(e,t,n){for(;t<n;){if(this._lenBytes<4){let i=Math.min(4-this._lenBytes,n-t);for(this._lenBytes+=i;i--;)this._len=(this._len<<8)+e[t++];if(this._lenBytes<4)return;if(this._len>h||this._len<8||4+this._len&7)throw new Error("Bad packet length");if(t>=n)return}if(this._packetPos<this._len){const i=Math.min(this._len-this._packetPos,n-t);let r;if(r=0!==t||i!==n?new Uint8Array(e.buffer,e.byteOffset+t,i):e,i===this._len?this._packet=r:(this._packet||(this._packet=Buffer.allocUnsafe(this._len)),this._packet.set(r,this._packetPos)),t+=i,this._packetPos+=i,this._packetPos<this._len)return}const i=this._packet?new c(this._packet.buffer,this._packet.byteOffset+1,this._packet.length-this._packet[0]-1):u;this.inSeqno=this.inSeqno+1>>>0,this._len=0,this._lenBytes=0,this._packet=null,this._packetPos=0;{const e=this._onPayload(i);if(void 0!==e)return!1===e?t:e}}}},createDecipher:function(e){if("object"!=typeof e||null===e)throw new Error("Invalid config");if("object"!=typeof e.inbound||null===e.inbound)throw new Error("Invalid inbound");const t=e.inbound;if("function"!=typeof t.onPayload)throw new Error("Invalid inbound.onPayload");if("object"!=typeof t.decipherInfo||null===t.decipherInfo)throw new Error("Invalid inbound.decipherInfo");if(!Buffer.isBuffer(t.decipherKey)||t.decipherKey.length!==t.decipherInfo.keyLen)throw new Error("Invalid inbound.decipherKey");if(t.decipherInfo.ivLen&&(!Buffer.isBuffer(t.decipherIV)||t.decipherIV.length!==t.decipherInfo.ivLen))throw new Error("Invalid inbound.decipherIV");if("number"!=typeof t.seqno||t.seqno<0||t.seqno>l)throw new Error("Invalid inbound.seqno");const n=!!t.forceNative;switch(t.decipherInfo.sslName){case"aes-128-gcm":case"aes-256-gcm":return b&&!n?new D(e):new U(e);case"chacha20":return y&&!n?new P(e):new L(e);default:if("object"!=typeof t.macInfo||null===t.macInfo)throw new Error("Invalid inbound.macInfo");if(!Buffer.isBuffer(t.macKey)||t.macKey.length!==t.macInfo.len)throw new Error("Invalid inbound.macKey");return v&&!n?new H(e):new M(e)}}},pe}const{createDecipheriv:ge,createECDH:_e,createHash:be,createHmac:ye,createSign:ve,createVerify:Ae,getCiphers:Ee,sign:we,verify:xe}=o,Se=Ee(),{Ber:Ie}=K,ke=oe,{CIPHER_INFO:Ce}=me(),{eddsaSupported:Re,SUPPORTED_CIPHER:Be}=ce(),{bufferSlice:Te,makeBufferParser:Oe,readString:Ne,readUInt32BE:Le,writeUInt32BE:Pe}=le(),Ue=Symbol("Hash Algorithm"),De=Symbol("Private key PEM"),Me=Symbol("Public key PEM"),He=Symbol("Public key SSH"),Fe=Symbol("Decrypted Key"),je=Object.create(null);{const Nx=Object.keys(Ce);for(let Lx=0;Lx<Nx.length;++Lx){const Px=Ce[Nx[Lx]].sslName;Px&&!je[Px]&&(je[Px]=Ce[Nx[Lx]])}}const $e=Oe();function Qe(e,t){let n=(t=t.base64Slice(0,t.length)).replace(/.{64}/g,"$&\n");return 63&t.length&&(n+="\n"),`-----BEGIN ${e} KEY-----\n${n}-----END ${e} KEY-----`}function We(e,t){const n=Buffer.allocUnsafe(e.length+t.length);return n.set(e,0),n.set(t,e.length),n}function qe(e,t){const n=e.length;let i=e._pos||0;for(let r=0;r<t;++r){const t=n-i;if(i>=n||t<4)return!1;const r=Le(e,i);if(t<4+r)return!1;i+=4+r}return e._pos=i,!0}function Ye(e,t){const n=new Ie.Writer;return n.startSequence(),n.startSequence(),n.writeOID("1.2.840.113549.1.1.1"),n.writeNull(),n.endSequence(),n.startSequence(Ie.BitString),n.writeByte(0),n.startSequence(),n.writeBuffer(e,Ie.Integer),n.writeBuffer(t,Ie.Integer),n.endSequence(),n.endSequence(),n.endSequence(),Qe("PUBLIC",n.buffer)}function Ge(e,t){const n=Buffer.allocUnsafe(15+t.length+4+e.length);Pe(n,7,0),n.utf8Write("ssh-rsa",4,7);let i=11;return Pe(n,t.length,i),n.set(t,i+=4),Pe(n,e.length,i+=t.length),n.set(e,i+4),n}const Ke=(()=>{function e(e){return BigInt(`0x${e.hexSlice(0,e.length)}`)}function t(e){let t=e.toString(16);if(1&t.length)t=`0${t}`;else{const e=t.charCodeAt(0);(56===e||57===e||e>=97&&e<=102)&&(t=`00${t}`)}return Buffer.from(t,"hex")}return function(n,i,r,s,o,a){const c=e(r);return Qe("RSA PRIVATE",function(e,t,n,i,r,s,o,a){const c=new Ie.Writer;return c.startSequence(),c.writeInt(0,Ie.Integer),c.writeBuffer(e,Ie.Integer),c.writeBuffer(t,Ie.Integer),c.writeBuffer(n,Ie.Integer),c.writeBuffer(i,Ie.Integer),c.writeBuffer(r,Ie.Integer),c.writeBuffer(s,Ie.Integer),c.writeBuffer(o,Ie.Integer),c.writeBuffer(a,Ie.Integer),c.endSequence(),c.buffer}(n,i,r,o,a,t(c%(e(o)-1n)),t(c%(e(a)-1n)),s))}})();function ze(e,t,n,i){const r=new Ie.Writer;return r.startSequence(),r.startSequence(),r.writeOID("1.2.840.10040.4.1"),r.startSequence(),r.writeBuffer(e,Ie.Integer),r.writeBuffer(t,Ie.Integer),r.writeBuffer(n,Ie.Integer),r.endSequence(),r.endSequence(),r.startSequence(Ie.BitString),r.writeByte(0),r.writeBuffer(i,Ie.Integer),r.endSequence(),r.endSequence(),Qe("PUBLIC",r.buffer)}function Xe(e,t,n,i){const r=Buffer.allocUnsafe(15+e.length+4+t.length+4+n.length+4+i.length);Pe(r,7,0),r.utf8Write("ssh-dss",4,7);let s=11;return Pe(r,e.length,s),r.set(e,s+=4),Pe(r,t.length,s+=e.length),r.set(t,s+=4),Pe(r,n.length,s+=t.length),r.set(n,s+=4),Pe(r,i.length,s+=n.length),r.set(i,s+4),r}function Ve(e,t,n,i,r){const s=new Ie.Writer;return s.startSequence(),s.writeInt(0,Ie.Integer),s.writeBuffer(e,Ie.Integer),s.writeBuffer(t,Ie.Integer),s.writeBuffer(n,Ie.Integer),s.writeBuffer(i,Ie.Integer),s.writeBuffer(r,Ie.Integer),s.endSequence(),Qe("DSA PRIVATE",s.buffer)}function Je(e){const t=new Ie.Writer;return t.startSequence(),t.startSequence(),t.writeOID("1.3.101.112"),t.endSequence(),t.startSequence(Ie.BitString),t.writeByte(0),t._ensure(e.length),t._buf.set(e,t._offset),t._offset+=e.length,t.endSequence(),t.endSequence(),Qe("PUBLIC",t.buffer)}function Ze(e){const t=Buffer.allocUnsafe(19+e.length);return Pe(t,11,0),t.utf8Write("ssh-ed25519",4,11),Pe(t,e.length,15),t.set(e,19),t}function et(e){const t=new Ie.Writer;return t.startSequence(),t.writeInt(0,Ie.Integer),t.startSequence(),t.writeOID("1.3.101.112"),t.endSequence(),t.startSequence(Ie.OctetString),t.writeBuffer(e,Ie.OctetString),t.endSequence(),t.endSequence(),Qe("PRIVATE",t.buffer)}function tt(e,t){const n=new Ie.Writer;return n.startSequence(),n.startSequence(),n.writeOID("1.2.840.10045.2.1"),n.writeOID(e),n.endSequence(),n.startSequence(Ie.BitString),n.writeByte(0),n._ensure(t.length),n._buf.set(t,n._offset),n._offset+=t.length,n.endSequence(),n.endSequence(),Qe("PUBLIC",n.buffer)}function nt(e,t){let n;switch(e){case"1.2.840.10045.3.1.7":n="nistp256";break;case"1.3.132.0.34":n="nistp384";break;case"1.3.132.0.35":n="nistp521";break;default:return}const i=Buffer.allocUnsafe(39+t.length);return Pe(i,19,0),i.utf8Write(`ecdsa-sha2-${n}`,4,19),Pe(i,8,23),i.utf8Write(n,27,8),Pe(i,t.length,35),i.set(t,39),i}function it(e,t,n){const i=new Ie.Writer;return i.startSequence(),i.writeInt(1,Ie.Integer),i.writeBuffer(n,Ie.OctetString),i.startSequence(160),i.writeOID(e),i.endSequence(),i.startSequence(161),i.startSequence(Ie.BitString),i.writeByte(0),i._ensure(t.length),i._buf.set(t,i._offset),i._offset+=t.length,i.endSequence(),i.endSequence(),i.endSequence(),Qe("EC PRIVATE",i.buffer)}const rt={sign:"function"==typeof we?function(e,t){const n=this[De];if(null===n)return new Error("No private key available");t&&"string"==typeof t||(t=this[Ue]);try{return we(t,e,n)}catch(e){return e}}:function(e,t){const n=this[De];if(null===n)return new Error("No private key available");t&&"string"==typeof t||(t=this[Ue]);const i=ve(t);i.update(e);try{return i.sign(n)}catch(e){return e}},verify:"function"==typeof xe?function(e,t,n){const i=this[Me];if(null===i)return new Error("No public key available");n&&"string"==typeof n||(n=this[Ue]);try{return xe(n,e,i,t)}catch(e){return e}}:function(e,t,n){const i=this[Me];if(null===i)return new Error("No public key available");n&&"string"==typeof n||(n=this[Ue]);const r=Ae(n);r.update(e);try{return r.verify(i,t)}catch(e){return e}},isPrivateKey:function(){return null!==this[De]},getPrivatePEM:function(){return this[De]},getPublicPEM:function(){return this[Me]},getPublicSSH:function(){return this[He]},equals:function(e){const t=ht(e);return!(t instanceof Error)&&(this.type===t.type&&this[De]===t[De]&&this[Me]===t[Me]&&this[He].equals(t[He]))}};function st(e,t,n,i,r,s,o){this.type=e,this.comment=t,this[De]=n,this[Me]=i,this[He]=r,this[Ue]=s,this[Fe]=o}st.prototype=rt;{const Ux=/^-----BEGIN OPENSSH PRIVATE KEY-----(?:\r\n|\n)([\s\S]+)(?:\r\n|\n)-----END OPENSSH PRIVATE KEY-----$/;function Dx(e,t,n){const i=[];if(e.length<8)return new Error("Malformed OpenSSH private key");if(Le(e,0)!==Le(e,4))return n?new Error("OpenSSH key integrity check failed -- bad passphrase?"):new Error("OpenSSH key integrity check failed");let r,s;for(e._pos=8,r=0;r<t;++r){let t,r,o,a;const c=Ne(e,e._pos,!0);if(void 0===c)return new Error("Malformed OpenSSH private key");switch(c){case"ssh-rsa":{const n=Ne(e,e._pos);if(void 0===n)return new Error("Malformed OpenSSH private key");const i=Ne(e,e._pos);if(void 0===i)return new Error("Malformed OpenSSH private key");const s=Ne(e,e._pos);if(void 0===s)return new Error("Malformed OpenSSH private key");const c=Ne(e,e._pos);if(void 0===c)return new Error("Malformed OpenSSH private key");const l=Ne(e,e._pos);if(void 0===l)return new Error("Malformed OpenSSH private key");const u=Ne(e,e._pos);if(void 0===u)return new Error("Malformed OpenSSH private key");o=Ye(n,i),a=Ge(n,i),r=Ke(n,i,s,c,l,u),t="sha1";break}case"ssh-dss":{const n=Ne(e,e._pos);if(void 0===n)return new Error("Malformed OpenSSH private key");const i=Ne(e,e._pos);if(void 0===i)return new Error("Malformed OpenSSH private key");const s=Ne(e,e._pos);if(void 0===s)return new Error("Malformed OpenSSH private key");const c=Ne(e,e._pos);if(void 0===c)return new Error("Malformed OpenSSH private key");const l=Ne(e,e._pos);if(void 0===l)return new Error("Malformed OpenSSH private key");o=ze(n,i,s,c),a=Xe(n,i,s,c),r=Ve(n,i,s,c,l),t="sha1";break}case"ssh-ed25519":{if(!Re)return new Error(`Unsupported OpenSSH private key type: ${c}`);const n=Ne(e,e._pos);if(void 0===n||32!==n.length)return new Error("Malformed OpenSSH private key");const i=Ne(e,e._pos);if(void 0===i||64!==i.length)return new Error("Malformed OpenSSH private key");o=Je(n),a=Ze(n),r=et(Te(i,0,32)),t=null;break}case"ecdsa-sha2-nistp256":t="sha256",s="1.2.840.10045.3.1.7";case"ecdsa-sha2-nistp384":void 0===t&&(t="sha384",s="1.3.132.0.34");case"ecdsa-sha2-nistp521":{if(void 0===t&&(t="sha512",s="1.3.132.0.35"),!qe(e,1))return new Error("Malformed OpenSSH private key");const n=Ne(e,e._pos);if(void 0===n)return new Error("Malformed OpenSSH private key");const i=Ne(e,e._pos);if(void 0===i)return new Error("Malformed OpenSSH private key");o=tt(s,n),a=nt(s,n),r=it(s,n,i);break}default:return new Error(`Unsupported OpenSSH private key type: ${c}`)}const l=Ne(e,e._pos,!0);if(void 0===l)return new Error("Malformed OpenSSH private key");i.push(new st(c,l,r,o,a,t,n))}let o=0;for(r=e._pos;r<e.length;++r)if(e[r]!==++o%255)return new Error("Malformed OpenSSH private key");return i}st.parse=(e,t)=>{const n=Ux.exec(e);if(null===n)return null;let i;const r=Buffer.from(n[1],"base64");if(r.length<31)return new Error("Malformed OpenSSH private key");const s=r.utf8Slice(0,15);if("openssh-key-v1\0"!==s)return new Error(`Unsupported OpenSSH key magic: ${s}`);const o=Ne(r,15,!0);if(void 0===o)return new Error("Malformed OpenSSH private key");if("none"!==o&&-1===Be.indexOf(o))return new Error(`Unsupported cipher for OpenSSH key: ${o}`);const a=Ne(r,r._pos,!0);if(void 0===a)return new Error("Malformed OpenSSH private key");if("none"!==a){if("none"===o)return new Error("Malformed OpenSSH private key");if("bcrypt"!==a)return new Error(`Unsupported kdf name for OpenSSH key: ${a}`);if(!t)return new Error("Encrypted private OpenSSH key detected, but no passphrase given")}else if("none"!==o)return new Error("Malformed OpenSSH private key");let c,l,u;"none"!==o&&(c=Ce[o]);const p=Ne(r,r._pos);if(void 0===p)return new Error("Malformed OpenSSH private key");if(p.length)switch(a){case"none":return new Error("Malformed OpenSSH private key");case"bcrypt":{const e=Ne(p,0);if(void 0===e||p._pos+4>p.length)return new Error("Malformed OpenSSH private key");const n=Le(p,p._pos),i=Buffer.allocUnsafe(c.keyLen+c.ivLen);if(0!==ke(t,t.length,e,e.length,i,i.length,n))return new Error("Failed to generate information to decrypt key");l=Te(i,0,c.keyLen),u=Te(i,c.keyLen,i.length);break}}else if("none"!==a)return new Error("Malformed OpenSSH private key");if(r._pos+3>=r.length)return new Error("Malformed OpenSSH private key");const d=Le(r,r._pos);if(r._pos+=4,d>0){for(let e=0;e<d;++e){const e=Ne(r,r._pos);if(void 0===e)return new Error("Malformed OpenSSH private key");if(void 0===Ne(e,0,!0))return new Error("Malformed OpenSSH private key")}let e=Ne(r,r._pos);if(void 0===e)return new Error("Malformed OpenSSH private key");if(void 0!==l){if(e.length<c.blockLen||e.length%c.blockLen!==0)return new Error("Malformed OpenSSH private key");try{const t={authTagLength:c.authLen},n=ge(c.sslName,l,u,t);if(n.setAutoPadding(!1),c.authLen>0){if(r.length-r._pos<c.authLen)return new Error("Malformed OpenSSH private key");n.setAuthTag(Te(r,r._pos,r._pos+=c.authLen))}e=We(n.update(e),n.final())}catch(e){return e}}if(r._pos!==r.length)return new Error("Malformed OpenSSH private key");i=Dx(e,d,void 0!==l)}else i=[];return i instanceof Error?i:i[0]}}function ot(e,t,n,i,r,s,o){this.type=e,this.comment=t,this[De]=n,this[Me]=i,this[He]=r,this[Ue]=s,this[Fe]=o}ot.prototype=rt;{const Mx=/^-----BEGIN (RSA|DSA|EC) PRIVATE KEY-----(?:\r\n|\n)((?:[^:]+:\s*[\S].*(?:\r\n|\n))*)([\s\S]+)(?:\r\n|\n)-----END (RSA|DSA|EC) PRIVATE KEY-----$/;ot.parse=(e,t)=>{const n=Mx.exec(e);if(null===n)return null;let i,r,s,o,a,c,l=Buffer.from(n[3],"base64"),u=n[2],p=!1;if(void 0!==u){u=u.split(/\r\n|\n/g);for(let e=0;e<u.length;++e){const n=u[e];let i=n.indexOf(":");if("DEK-Info"===n.slice(0,i)){const e=n.slice(i+2);if(i=e.indexOf(","),-1===i)continue;const r=e.slice(0,i).toLowerCase();if(-1===Se.indexOf(r))return new Error(`Cipher (${r}) not supported for encrypted OpenSSH private key`);const s=je[r];if(!s)return new Error(`Cipher (${r}) not supported for encrypted OpenSSH private key`);const o=Buffer.from(e.slice(i+1),"hex");if(o.length!==s.ivLen)return new Error("Malformed encrypted OpenSSH private key");if(!t)return new Error("Encrypted OpenSSH private key detected, but no passphrase given");const a=Te(o,0,8);let c=be("md5").update(t).update(a).digest();for(;c.length<s.keyLen;)c=We(c,be("md5").update(c).update(t).update(a).digest());c.length>s.keyLen&&(c=Te(c,0,s.keyLen));try{const e=ge(r,c,o);e.setAutoPadding(!1),l=We(e.update(l),e.final()),p=!0}catch(e){return e}}}}let d="Malformed OpenSSH private key";switch(p&&(d+=". Bad passphrase?"),n[1]){case"RSA":i="ssh-rsa",r=Qe("RSA PRIVATE",l);try{c=new Ie.Reader(l),c.readSequence(),c.readInt();const e=c.readString(Ie.Integer,!0);if(null===e)return new Error(d);const t=c.readString(Ie.Integer,!0);if(null===t)return new Error(d);s=Ye(e,t),o=Ge(e,t)}catch{return new Error(d)}a="sha1";break;case"DSA":i="ssh-dss",r=Qe("DSA PRIVATE",l);try{c=new Ie.Reader(l),c.readSequence(),c.readInt();const e=c.readString(Ie.Integer,!0);if(null===e)return new Error(d);const t=c.readString(Ie.Integer,!0);if(null===t)return new Error(d);const n=c.readString(Ie.Integer,!0);if(null===n)return new Error(d);const i=c.readString(Ie.Integer,!0);if(null===i)return new Error(d);s=ze(e,t,n,i),o=Xe(e,t,n,i)}catch{return new Error(d)}a="sha1";break;case"EC":{let e,t,n;try{c=new Ie.Reader(l),c.readSequence(),c.readInt(),t=c.readString(Ie.OctetString,!0),c.readByte();const r=c.readLength();if(null===r)return new Error(d);if(c._offset=r,n=c.readOID(),null===n)return new Error(d);switch(n){case"1.2.840.10045.3.1.7":e="prime256v1",i="ecdsa-sha2-nistp256",a="sha256";break;case"1.3.132.0.34":e="secp384r1",i="ecdsa-sha2-nistp384",a="sha384";break;case"1.3.132.0.35":e="secp521r1",i="ecdsa-sha2-nistp521",a="sha512";break;default:return new Error(`Unsupported private key EC OID: ${n}`)}}catch{return new Error(d)}r=Qe("EC PRIVATE",l);const u=function(e,t){const n=_e(e);return n.setPrivateKey(t),n.getPublicKey()}(e,t);s=tt(n,u),o=nt(n,u);break}}return new ot(i,"",r,s,o,a,p)}}function at(e,t,n,i,r,s,o){this.type=e,this.comment=t,this[De]=n,this[Me]=i,this[He]=r,this[Ue]=s,this[Fe]=o}at.prototype=rt;{const Hx=Buffer.alloc(0),Fx=Buffer.from([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),jx=Buffer.from([0,0,0,0]),$x=Buffer.from([0,0,0,1]),Qx=/^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]+)/;at.parse=(e,t)=>{const n=Qx.exec(e);if(null===n)return null;const i=n[2],r="none"!==i;if(r&&!t)return new Error("Encrypted PPK private key detected, but no passphrase given");let s=Buffer.from(n[5],"base64");if(r){const e=Ce[i];let n=We(be("sha1").update(jx).update(t).digest(),be("sha1").update($x).update(t).digest());n.length>e.keyLen&&(n=Te(n,0,e.keyLen));try{const t=ge(e.sslName,n,Fx);t.setAutoPadding(!1),s=We(t.update(s),t.final())}catch(e){return e}}const o=n[1],a=n[3],c=Buffer.from(n[4],"base64"),l=n[6],u=o.length,p=i.length,d=Buffer.byteLength(a),h=c.length,f=s.length,m=Buffer.allocUnsafe(4+u+4+p+4+d+4+h+4+f);let g=0;Pe(m,u,g),m.utf8Write(o,g+=4,u),Pe(m,p,g+=u),m.utf8Write(i,g+=4,p),Pe(m,d,g+=p),m.utf8Write(a,g+=4,d),Pe(m,h,g+=d),m.set(c,g+=4),Pe(m,f,g+=h),m.set(s,g+4),t||(t=Hx);if(ye("sha1",be("sha1").update("putty-private-key-file-mac-key").update(t).digest()).update(m).digest("hex")!==l)return r?new Error("PPK private key integrity check failed -- bad passphrase?"):new Error("PPK private key integrity check failed");let _,b,y;switch(c._pos=0,qe(c,1),o){case"ssh-rsa":{const e=Ne(c,c._pos);if(void 0===e)return new Error("Malformed PPK public key");const t=Ne(c,c._pos);if(void 0===t)return new Error("Malformed PPK public key");const n=Ne(s,0);if(void 0===n)return new Error("Malformed PPK private key");const i=Ne(s,s._pos);if(void 0===i)return new Error("Malformed PPK private key");const r=Ne(s,s._pos);if(void 0===r)return new Error("Malformed PPK private key");const o=Ne(s,s._pos);if(void 0===o)return new Error("Malformed PPK private key");_=Ye(t,e),b=Ge(t,e),y=Ke(t,e,n,o,i,r);break}case"ssh-dss":{const e=Ne(c,c._pos);if(void 0===e)return new Error("Malformed PPK public key");const t=Ne(c,c._pos);if(void 0===t)return new Error("Malformed PPK public key");const n=Ne(c,c._pos);if(void 0===n)return new Error("Malformed PPK public key");const i=Ne(c,c._pos);if(void 0===i)return new Error("Malformed PPK public key");const r=Ne(s,0);if(void 0===r)return new Error("Malformed PPK private key");_=ze(e,t,n,i),b=Xe(e,t,n,i),y=Ve(e,t,n,i,r);break}}return new at(o,a,y,_,b,"sha1",r)}}function ct(e,t,n,i,r){this.type=e,this.comment=t,this[De]=null,this[Me]=n,this[He]=i,this[Ue]=r,this[Fe]=!1}ct.prototype=rt;{let Wx;Wx=Re?/^(((?:ssh-(?:rsa|dss|ed25519))|ecdsa-sha2-nistp(?:256|384|521))(?:-cert-v0[01]@openssh.com)?) ([A-Z0-9a-z/+=]+)(?:$|\s+([\S].*)?)$/:/^(((?:ssh-(?:rsa|dss))|ecdsa-sha2-nistp(?:256|384|521))(?:-cert-v0[01]@openssh.com)?) ([A-Z0-9a-z/+=]+)(?:$|\s+([\S].*)?)$/,ct.parse=e=>{const t=Wx.exec(e);if(null===t)return null;const n=t[1],i=t[2],r=Buffer.from(t[3],"base64"),s=t[4]||"",o=Ne(r,r._pos,!0);return void 0===o||0!==o.indexOf(i)?new Error("Malformed OpenSSH public key"):ut(r,i,s,n)}}function lt(e,t,n,i,r){this.type=e,this.comment=t,this[De]=null,this[Me]=n,this[He]=i,this[Ue]=r,this[Fe]=!1}lt.prototype=rt;{const qx=/^---- BEGIN SSH2 PUBLIC KEY ----(?:\r?\n)((?:.{0,72}\r?\n)+)---- END SSH2 PUBLIC KEY ----$/,Yx=/^[A-Z0-9a-z/+=\r\n]+$/,Gx=/^([\x21-\x39\x3B-\x7E]{1,64}): ((?:[^\\]*\\\r?\n)*[^\r\n]+)\r?\n/gm,Kx=/\\\r?\n/g;lt.parse=e=>{let t=qx.exec(e);if(null===t)return null;const n=t[1];let i=0,r="";for(;t=Gx.exec(n);){const e=t[1],n=t[2].replace(Kx,"");if(n.length>1024)return Gx.lastIndex=0,new Error("Malformed RFC4716 public key");i=Gx.lastIndex,"comment"===e.toLowerCase()&&(r=n,r.length>1&&34===r.charCodeAt(0)&&34===r.charCodeAt(r.length-1)&&(r=r.slice(1,-1)))}let s=n.slice(i);if(!Yx.test(s))return new Error("Malformed RFC4716 public key");s=Buffer.from(s,"base64");const o=Ne(s,0,!0);if(void 0===o)return new Error("Malformed RFC4716 public key");let a=null,c=null;switch(o){case"ssh-rsa":{const e=Ne(s,s._pos);if(void 0===e)return new Error("Malformed RFC4716 public key");const t=Ne(s,s._pos);if(void 0===t)return new Error("Malformed RFC4716 public key");a=Ye(t,e),c=Ge(t,e);break}case"ssh-dss":{const e=Ne(s,s._pos);if(void 0===e)return new Error("Malformed RFC4716 public key");const t=Ne(s,s._pos);if(void 0===t)return new Error("Malformed RFC4716 public key");const n=Ne(s,s._pos);if(void 0===n)return new Error("Malformed RFC4716 public key");const i=Ne(s,s._pos);if(void 0===i)return new Error("Malformed RFC4716 public key");a=ze(e,t,n,i),c=Xe(e,t,n,i);break}default:return new Error("Malformed RFC4716 public key")}return new lt(o,r,a,c,"sha1")}}function ut(e,t,n,i){if(!pt(t))return new Error(`Unsupported OpenSSH public key type: ${t}`);let r,s,o=null,a=null;switch(t){case"ssh-rsa":{const t=Ne(e,e._pos||0);if(void 0===t)return new Error("Malformed OpenSSH public key");const n=Ne(e,e._pos);if(void 0===n)return new Error("Malformed OpenSSH public key");o=Ye(n,t),a=Ge(n,t),r="sha1";break}case"ssh-dss":{const t=Ne(e,e._pos||0);if(void 0===t)return new Error("Malformed OpenSSH public key");const n=Ne(e,e._pos);if(void 0===n)return new Error("Malformed OpenSSH public key");const i=Ne(e,e._pos);if(void 0===i)return new Error("Malformed OpenSSH public key");const s=Ne(e,e._pos);if(void 0===s)return new Error("Malformed OpenSSH public key");o=ze(t,n,i,s),a=Xe(t,n,i,s),r="sha1";break}case"ssh-ed25519":{const t=Ne(e,e._pos||0);if(void 0===t||32!==t.length)return new Error("Malformed OpenSSH public key");o=Je(t),a=Ze(t),r=null;break}case"ecdsa-sha2-nistp256":r="sha256",s="1.2.840.10045.3.1.7";case"ecdsa-sha2-nistp384":void 0===r&&(r="sha384",s="1.3.132.0.34");case"ecdsa-sha2-nistp521":{if(void 0===r&&(r="sha512",s="1.3.132.0.35"),!qe(e,1))return new Error("Malformed OpenSSH public key");const t=Ne(e,e._pos||0);if(void 0===t)return new Error("Malformed OpenSSH public key");o=tt(s,t),a=nt(s,t);break}default:return new Error(`Unsupported OpenSSH public key type: ${t}`)}return new ct(i,n,o,a,r)}function pt(e){switch(e){case"ssh-rsa":case"ssh-dss":case"ecdsa-sha2-nistp256":case"ecdsa-sha2-nistp384":case"ecdsa-sha2-nistp521":return!0;case"ssh-ed25519":if(Re)return!0;default:return!1}}function dt(e){return!!e&&"boolean"==typeof e[Fe]}function ht(e,t){if(dt(e))return e;let n,i;if(Buffer.isBuffer(e))n=e,e=e.utf8Slice(0,e.length).trim();else{if("string"!=typeof e)return new Error("Key data must be a Buffer or string");e=e.trim()}if(null!=t)if("string"==typeof t)t=Buffer.from(t);else if(!Buffer.isBuffer(t))return new Error("Passphrase must be a string or Buffer when supplied");if(null!==(i=st.parse(e,t)))return i;if(null!==(i=ot.parse(e,t)))return i;if(null!==(i=at.parse(e,t)))return i;if(null!==(i=ct.parse(e)))return i;if(null!==(i=lt.parse(e)))return i;if(n){$e.init(n,0);const t=$e.readString(!0);void 0!==t&&void 0!==(e=$e.readRaw())&&(i=ut(e,t,"",t),i instanceof Error&&(i=null)),$e.clear()}return i||new Error("Unsupported key format")}var ft={isParsedKey:dt,isSupportedKeyType:pt,parseDERKey:(e,t)=>ut(e,t,"",t),parseKey:ht};const{Socket:mt}=t,{Duplex:gt}=n,{resolve:_t}=i,{readFile:bt}=r,{execFile:yt,spawn:vt}=s,{isParsedKey:At,parseKey:Et}=ft,{makeBufferParser:wt,readUInt32BE:xt,writeUInt32BE:St,writeUInt32LE:It}=le();function kt(e){let t=!1;return(...n)=>{t||(t=!0,e(...n))}}function Ct(){}const Rt=Buffer.alloc(0),Bt=wt();let Tt=class{getIdentities(e){e(new Error("Missing getIdentities() implementation"))}sign(e,t,n,i){"function"==typeof n&&(i=n),i(new Error("Missing sign() implementation"))}},Ot=class extends Tt{constructor(e){super(),this.socketPath=e}getStream(e){e=kt(e);const t=new mt;function n(){try{t.destroy()}catch{}e(new Error("Failed to connect to agent"))}t.on("connect",()=>{e(null,t)}),t.on("close",n).on("end",n).on("error",n),t.connect(this.socketPath)}getIdentities(e){e=kt(e),this.getStream((t,n)=>{function i(t){if(n)try{n.destroy()}catch{}t||(t=new Error("Failed to retrieve identities from agent")),e(t)}if(t)return i(t);const r=new Dt(!0);r.on("error",i),r.pipe(n).pipe(r),n.on("close",i).on("end",i).on("error",i),r.getIdentities((t,r)=>{if(t)return i(t);try{n.destroy()}catch{}e(null,r)})})}sign(e,t,n,i){"function"==typeof n?(i=n,n=void 0):"object"==typeof n&&null!==n||(n=void 0),i=kt(i),this.getStream((r,s)=>{function o(e){if(s)try{s.destroy()}catch{}e||(e=new Error("Failed to sign data with agent")),i(e)}if(r)return o(r);const a=new Dt(!0);a.on("error",o),a.pipe(s).pipe(a),s.on("close",o).on("end",o).on("error",o),a.sign(e,t,n,(e,t)=>{if(e)return o(e);try{s.destroy()}catch{}i(null,t)})})}};const Nt=(()=>{const e=10,t=11,n=12,i=13,r=14,s=15,o=_t(__dirname,"..","util/pagent.exe"),a={[e]:new Error("Invalid pagent.exe arguments"),[t]:new Error("Pageant is not running"),[n]:new Error("pagent.exe could not create an mmap"),[i]:new Error("pagent.exe could not set mode for stdin"),[r]:new Error("pagent.exe could not set mode for stdout"),[s]:new Error("pagent.exe did not get expected input payload")};function c(e){e.buffer=null,e.proc&&(e.proc.kill(),e.proc=void 0)}class l extends gt{constructor(){super(),this.proc=void 0,this.buffer=null}_read(e){}_write(e,t,n){if(null===this.buffer)this.buffer=e;else{const t=Buffer.allocUnsafe(this.buffer.length+e.length);this.buffer.copy(t,0),e.copy(t,this.buffer.length),this.buffer=t}if(this.buffer.length<4)return n();const i=xt(this.buffer,0);if(this.buffer.length-4<i)return n();if(e=this.buffer.slice(0,4+i),this.buffer.length>4+i)return n(new Error("Unexpected multiple agent requests"));let r;this.buffer=null;const s=this.proc=vt(o,[e.length]);s.stdout.on("data",e=>{this.push(e)}),s.on("error",e=>{r=e,n(r)}),s.on("close",e=>{if(this.proc=void 0,!r){if(r=a[e])return n(r);n()}}),s.stdin.end(e)}_final(e){c(this),e()}_destroy(e,t){c(this),t()}}return class extends Ot{getStream(e){e(null,new l)}}})(),Lt=(()=>{const e=/^!<socket >(\d+) s ([A-Z0-9]{8}-[A-Z0-9]{8}-[A-Z0-9]{8}-[A-Z0-9]{8})/;return class extends Ot{getStream(t){t=kt(t);let n=this.socketPath,i=!1;bt(n,function r(s,o){if(s)return i?t(new Error("Invalid cygwin unix socket path")):void yt("cygpath",["-w",n],(e,s,o)=>{if(e||0===s.length)return t(new Error("Invalid cygwin unix socket path"));i=!0,n=s.toString().replace(/[\r\n]/g,""),bt(n,r)});const a=e.exec(o.toString("ascii"));if(!a)return t(new Error("Malformed cygwin unix socket file"));let c,l=0,u=!1;const p=[];let d,h=Buffer.alloc(12);const f=parseInt(a[1],10),m=a[2].replace(/-/g,""),g=Buffer.allocUnsafe(16);for(let e=0,t=0;t<32;++e,t+=2)g[e]=parseInt(m.substring(t,t+2),16);for(let e=0;e<16;e+=4)It(g,xt(g,e),e);function _(){l=0,c="secret",d.write(g)}function b(e){if(l+=e.length,"secret"!==c){if("creds"===c&&(u||p.push(e),12===l)){if(d.removeListener("connect",_),d.removeListener("data",b),d.removeListener("error",y),d.removeListener("end",y),d.removeListener("close",y),u)return t(null,d);u=!0,h=Buffer.concat(p),It(h,process.pid,0),d.on("error",()=>{}),d.destroy(),v()}}else 16===l&&(l=0,c="creds",d.write(h))}function y(){t(new Error("Problem negotiating cygwin unix socket security"))}function v(){d=new mt,d.on("connect",_),d.on("data",b),d.on("error",y),d.on("end",y),d.on("close",y),d.connect(f)}v()})}}})(),Pt=/^[/\\][/\\]\.[/\\]pipe[/\\].+/;function Ut(e){return"win32"!==process.platform||Pt.test(e)?new Ot(e):"pageant"===e?new Nt:new Lt(e)}const Dt=(()=>{const e=Symbol("Inbound Request Type"),t=Symbol("Inbound Request Response"),n=Symbol("Inbound Request Context");class i{constructor(i,r){this[e]=i,this[t]=void 0,this[n]=r}hasResponded(){return void 0!==this[t]}getType(){return this[e]}getContext(){return this[n]}}function r(e,n,i){return n[t]=i,function(e){let n;for(;e[c].length;){const i=e[c][0][t];if(void 0===i)break;e[c].shift(),n=e.push(i)}return n}(e)}function s(e){if(e[u]=null,0===e[l]){const t=e[c];if(t&&t.length){e[c]=[];for(const e of t)e.cb(new Error("No reply from server"))}}try{e.end()}catch{}setImmediate(()=>{e[h]||e.emit("end"),e[d]||e.emit("close")})}function o(){this[d]=!0}function a(){this[h]=!0}const c=Symbol("Requests"),l=Symbol("Agent Protocol Role"),u=Symbol("Agent Protocol Buffer"),p=Symbol("Agent Protocol Current Message Length"),d=Symbol("Agent Protocol Closed"),h=Symbol("Agent Protocol Ended");return class extends gt{constructor(e){super({autoDestroy:!0,emitClose:!1}),this[l]=e?0:1,this[c]=[],this[u]=null,this[p]=-1,this.once("end",a),this.once("close",o)}_read(e){}_write(e,t,n){null===this[u]?this[u]=e:this[u]=function(e,t){const n=Buffer.allocUnsafe(e.length+t.length);return e.copy(n,0),t.copy(n,e.length),n}(this[u],e);let r=this[u],s=r.length,o=0;for(;o<s&&!(s<5)&&(-1===this[p]&&(this[p]=xt(r,o)),!(s<4+this[p]));){const e=r[o+=4];if(++o,0===this[l]){if(0===this[c].length)return n(new Error("Received unexpected message from server"));const t=this[c].shift();switch(e){case 5:t.cb(new Error("Agent responded with failure"));break;case 12:{if(11!==t.type)return n(new Error("Agent responded with wrong message type"));Bt.init(r,o);const e=Bt.readUInt32BE();if(void 0===e)return Bt.clear(),n(new Error("Malformed agent response"));const i=[];for(let t=0;t<e;++t){let e=Bt.readString();if(void 0===e)return Bt.clear(),n(new Error("Malformed agent response"));const t=Bt.readString(!0);if(void 0===t)return Bt.clear(),n(new Error("Malformed agent response"));e=Et(e),e instanceof Error||(e.comment=e.comment||t,i.push(e))}o=Bt.pos(),Bt.clear(),t.cb(null,i);break}case 14:{if(13!==t.type)return n(new Error("Agent responded with wrong message type"));Bt.init(r,o);let e=Bt.readString();if(o=Bt.pos(),Bt.clear(),void 0===e)return n(new Error("Malformed agent response"));if(Bt.init(e,0),Bt.readString(!0),e=Bt.readString(),Bt.clear(),void 0===e)return n(new Error("Malformed OpenSSH signature format"));t.cb(null,e);break}default:return n(new Error("Agent responded with unsupported message type"))}}else switch(e){case 11:{const t=new i(e);this[c].push(t),this.emit("identities",t);break}case 13:{Bt.init(r,o);let t=Bt.readString();const n=Bt.readString(),s=Bt.readUInt32BE();if(o=Bt.pos(),Bt.clear(),void 0===s){const t=new i(e);return this[c].push(t),this.failureReply(t)}if(t=Et(t),t instanceof Error){const t=new i(e);return this[c].push(t),this.failureReply(t)}const a={hash:void 0};let l;"ssh-rsa"===t.type&&(2&s?(l="rsa-sha2-256",a.hash="sha256"):4&s&&(l="rsa-sha2-512",a.hash="sha512")),void 0===l&&(l=t.type);const u=new i(e,l);this[c].push(u),this.emit("sign",u,t,n,a);break}default:{const t=new i(e);this[c].push(t),this.failureReply(t)}}if(this[p]=-1,o===s){this[u]=null;break}this[u]=r=r.slice(o),s=r.length,o=0}n()}_destroy(e,t){s(this),t()}_final(e){s(this),e()}sign(e,t,n,i){if(0!==this[l])throw new Error("Client-only method called with server role");"function"==typeof n?(i=n,n=void 0):"object"==typeof n&&null!==n||(n=void 0);let r=0;if((e=Et(e))instanceof Error)throw new Error("Invalid public key argument");if("ssh-rsa"===e.type&&n)switch(n.hash){case"sha256":r=2;break;case"sha512":r=4}const s=(e=e.getPublicSSH()).length,o=t.length;let a=0;const u=Buffer.allocUnsafe(9+s+4+o+4);return St(u,u.length-4,a),u[a+=4]=13,St(u,s,++a),e.copy(u,a+=4),St(u,o,a+=s),t.copy(u,a+=4),St(u,r,a+=o),"function"!=typeof i&&(i=Ct),this[c].push({type:13,cb:i}),this.push(u)}getIdentities(e){if(0!==this[l])throw new Error("Client-only method called with server role");let t=0;const n=Buffer.allocUnsafe(5);return St(n,n.length-4,t),n[t+=4]=11,"function"!=typeof e&&(e=Ct),this[c].push({type:11,cb:e}),this.push(n)}failureReply(e){if(1!==this[l])throw new Error("Server-only method called with client role");if(!(e instanceof i))throw new Error("Wrong request argument");if(e.hasResponded())return!0;let t=0;const n=Buffer.allocUnsafe(5);return St(n,n.length-4,t),n[t+=4]=5,r(this,e,n)}getIdentitiesReply(e,t){if(1!==this[l])throw new Error("Server-only method called with client role");if(!(e instanceof i))throw new Error("Wrong request argument");if(e.hasResponded())return!0;if(11!==e.getType())throw new Error("Invalid response to request");if(!Array.isArray(t))throw new Error("Keys argument must be an array");let n=4;const s=[];for(let e=0;e<t.length;++e){const i=t[e];if("object"!=typeof i||null===i)throw new Error(`Invalid key entry: ${i}`);let r,o;if(At(i))r=i;else if(At(i.pubKey))r=i.pubKey;else{if("object"!=typeof i.pubKey||null===i.pubKey)continue;if(({pubKey:r,comment:o}=i.pubKey),r=Et(r),r instanceof Error)continue}o=r.comment||o,r=r.getPublicSSH(),n+=4+r.length,o&&"string"==typeof o?o=Buffer.from(o):Buffer.isBuffer(o)||(o=Rt),n+=4+o.length,s.push({pubKey:r,comment:o})}let o=0;const a=Buffer.allocUnsafe(5+n);St(a,a.length-4,o),a[o+=4]=12,St(a,s.length,++o),o+=4;for(let e=0;e<s.length;++e){const{pubKey:t,comment:n}=s[e];St(a,t.length,o),t.copy(a,o+=4),St(a,n.length,o+=t.length),o+=4,n.length&&(n.copy(a,o),o+=n.length)}return r(this,e,a)}signReply(e,t){if(1!==this[l])throw new Error("Server-only method called with client role");if(!(e instanceof i))throw new Error("Wrong request argument");if(e.hasResponded())return!0;if(13!==e.getType())throw new Error("Invalid response to request");if(!Buffer.isBuffer(t))throw new Error("Signature argument must be a Buffer");if(0===t.length)throw new Error("Signature argument must be non-empty");let n=0;const s=e.getContext(),o=Buffer.byteLength(s),a=Buffer.allocUnsafe(13+o+4+t.length);return St(a,a.length-4,n),a[n+=4]=14,St(a,4+o+4+t.length,++n),St(a,o,n+=4),a.utf8Write(s,n+=4,o),St(a,t.length,n+=o),t.copy(a,n+=4),r(this,e,a)}}})(),Mt=Symbol("Agent"),Ht=Symbol("Agent Keys"),Ft=Symbol("Agent Keys Index"),jt=Symbol("Agent Init Callbacks");function $t(e){return e instanceof Tt}var Qt={AgentContext:class{constructor(e){if("string"==typeof e)e=Ut(e);else if(!$t(e))throw new Error("Invalid agent argument");this[Mt]=e,this[Ht]=null,this[Ft]=-1,this[jt]=null}init(e){if("function"!=typeof e&&(e=Ct),null===this[Ht])if(null===this[jt]){this[jt]=[e];const t=(...e)=>{process.nextTick(()=>{const t=this[jt];this[jt]=null;for(const n of t)n(...e)})};this[Mt].getIdentities(kt((e,n)=>{if(e)return t(e);if(!Array.isArray(n))return t(new Error("Agent implementation failed to provide keys"));const i=[];for(let e of n)e=Et(e),e instanceof Error||i.push(e);this[Ht]=i,this[Ft]=-1,t()}))}else this[jt].push(e);else process.nextTick(e)}nextKey(){return!(null===this[Ht]||++this[Ft]>=this[Ht].length)&&this[Ht][this[Ft]]}currentKey(){return null===this[Ht]||this[Ft]>=this[Ht].length?null:this[Ht][this[Ft]]}pos(){return null===this[Ht]||this[Ft]>=this[Ht].length?-1:this[Ft]}reset(){this[Ft]=-1}sign(...e){this[Mt].sign(...e)}},AgentProtocol:Dt,BaseAgent:Tt,createAgent:Ut,CygwinAgent:Lt,isAgent:$t,OpenSSHAgent:Ot,PageantAgent:Nt},Wt={};const{kMaxLength:qt}=c,{createInflate:Yt,constants:{DEFLATE:Gt,INFLATE:Kt,Z_DEFAULT_CHUNK:zt,Z_DEFAULT_COMPRESSION:Xt,Z_DEFAULT_MEMLEVEL:Vt,Z_DEFAULT_STRATEGY:Jt,Z_DEFAULT_WINDOWBITS:Zt,Z_PARTIAL_FLUSH:en}}=m,tn=Yt()._handle.constructor;function nn(){throw new Error("Should not get here")}function rn(e,t,n){const i=this._owner,r=new Error(e);r.errno=t,r.code=n,i._err=r}function sn(e){e._handle&&(e._handle.close(),e._handle=null)}class on{constructor(e){const t=Zt,n=Xt,i=Vt,r=Jt;this._err=void 0,this._writeState=new Uint32Array(2),this._chunkSize=zt,this._maxOutputLength=qt,this._outBuffer=Buffer.allocUnsafe(this._chunkSize),this._outOffset=0,this._handle=new tn(e),this._handle._owner=this,this._handle.onerror=rn,this._handle.init(t,n,i,r,this._writeState,nn,void 0)}writeSync(e,t){const n=this._handle;if(!n)throw new Error("Invalid Zlib instance");let i,r,s,o=e.length,a=this._chunkSize-this._outOffset,c=0,l=0;const u=this._writeState;let p=this._outBuffer,d=this._outOffset;const h=this._chunkSize;for(;;){if(n.writeSync(en,e,c,o,p,d,a),this._err)throw this._err;i=u[0],r=u[1];const t=o-r,f=a-i;if(f>0){const e=0===d&&f===p.length?p:p.slice(d,d+f);if(d+=f,s?void 0===s.push?s=[s,e]:s.push(e):s=e,l+=e.byteLength,l>this._maxOutputLength)throw sn(this),new Error(`Output length exceeded maximum of ${this._maxOutputLength}`)}else if(0!==f)throw new Error("have should not go down");if((0===i||d>=h)&&(a=h,d=0,p=Buffer.allocUnsafe(h)),0!==i)break;c+=t,o=r}if(this._outBuffer=p,this._outOffset=d,0===l&&(s=Buffer.alloc(0)),t)return s.totalLen=l,s;if(void 0===s.push)return s;const f=Buffer.allocUnsafe(l);for(let e=0,t=0;e<s.length;++e){const n=s[e];f.set(n,t),t+=n.length}return f}}var an={PacketReader:class{cleanup(){}read(e){return e}},PacketWriter:class{constructor(e){this.allocStart=5,this.allocStartKEX=5,this._protocol=e}cleanup(){}alloc(e,t){return void 0===this._protocol._kexinit||t?this._protocol._cipher.allocPacket(e):Buffer.allocUnsafe(e)}finalize(e,t){return e}},ZlibPacketReader:class{constructor(){this._zlib=new on(Kt)}cleanup(){this._zlib&&sn(this._zlib)}read(e){return this._zlib.writeSync(e,!1)}},ZlibPacketWriter:class{constructor(e){this.allocStart=0,this.allocStartKEX=0,this._protocol=e,this._zlib=new on(Gt)}cleanup(){this._zlib&&sn(this._zlib)}alloc(e,t){return Buffer.allocUnsafe(e)}finalize(e,t){if(void 0===this._protocol._kexinit||t){const t=this._zlib.writeSync(e,!0),n=this._protocol._cipher.allocPacket(t.totalLen);if(void 0===t.push)n.set(t,5);else for(let e=0,i=5;e<t.length;++e){const r=t[e];n.set(r,i),i+=r.length}return n}return e}}};const{bufferSlice:cn,bufferParser:ln,doFatalError:un,sigSSHToASN1:pn,writeUInt32BE:dn}=le(),{CHANNEL_OPEN_FAILURE:hn,COMPAT:fn,MESSAGE:mn,TERMINAL_MODE:gn}=ce(),{parseKey:_n}=ft,bn=Array.from(Object.entries(gn)).reduce((e,[t,n])=>({...e,[t]:n}),{});var yn,vn,An,En,wn={[mn.DISCONNECT]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE(),i=ln.readString(!0),r=ln.readString();if(ln.clear(),void 0===r)return un(e,"Inbound: Malformed DISCONNECT packet");e._debug&&e._debug(`Inbound: Received DISCONNECT (${n}, "${i}")`);const s=e._handlers.DISCONNECT;s&&s(e,n,i)},[mn.IGNORE]:(e,t)=>{e._debug&&e._debug("Inbound: Received IGNORE")},[mn.UNIMPLEMENTED]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE();if(ln.clear(),void 0===n)return un(e,"Inbound: Malformed UNIMPLEMENTED packet");e._debug&&e._debug(`Inbound: Received UNIMPLEMENTED (seqno ${n})`)},[mn.DEBUG]:(e,t)=>{ln.init(t,1);const n=ln.readBool(),i=ln.readString(!0),r=ln.readString();if(ln.clear(),void 0===r)return un(e,"Inbound: Malformed DEBUG packet");e._debug&&e._debug("Inbound: Received DEBUG");const s=e._handlers.DEBUG;s&&s(e,n,i)},[mn.SERVICE_REQUEST]:(e,t)=>{ln.init(t,1);const n=ln.readString(!0);if(ln.clear(),void 0===n)return un(e,"Inbound: Malformed SERVICE_REQUEST packet");e._debug&&e._debug(`Inbound: Received SERVICE_REQUEST (${n})`);const i=e._handlers.SERVICE_REQUEST;i&&i(e,n)},[mn.SERVICE_ACCEPT]:(e,t)=>{ln.init(t,1);const n=ln.readString(!0);if(ln.clear(),void 0===n)return un(e,"Inbound: Malformed SERVICE_ACCEPT packet");e._debug&&e._debug(`Inbound: Received SERVICE_ACCEPT (${n})`);const i=e._handlers.SERVICE_ACCEPT;i&&i(e,n)},[mn.EXT_INFO]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE();let i;if(void 0!==n){i=[];for(let e=0;e<n;++e){const e=ln.readString(!0),t=ln.readString();if(void 0===t){i=void 0;break}if("server-sig-algs"===e){const n=t.latin1Slice(0,t.length).split(",");i.push({name:e,algs:n});continue}}}if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed EXT_INFO packet");e._debug&&e._debug("Inbound: Received EXT_INFO");const r=e._handlers.EXT_INFO;r&&r(e,i)},[mn.USERAUTH_REQUEST]:(e,t)=>{ln.init(t,1);const n=ln.readString(!0),i=ln.readString(!0),r=ln.readString(!0);let s,o;switch(r){case"none":s=null;break;case"password":{const e=ln.readBool();if(void 0!==e&&(s=ln.readString(!0),void 0!==s&&e)){const e=ln.readString(!0);s=void 0!==e?{oldPassword:s,newPassword:e}:void 0}break}case"publickey":{const n=ln.readBool();if(void 0!==n){const i=ln.readString(!0);let r=i;const a=ln.readString();let c;switch(i){case"rsa-sha2-256":r="ssh-rsa",c="sha256";break;case"rsa-sha2-512":r="ssh-rsa",c="sha512"}if(n){const n=ln.pos();let o=ln.readString();if(void 0!==o&&(o.length>4+i.length+4&&o.utf8Slice(4,4+i.length)===i&&(o=cn(o,4+i.length+4)),o=pn(o,r),o)){const i=e._kex.sessionID,l=Buffer.allocUnsafe(4+i.length+n);dn(l,i.length,0),l.set(i,4),l.set(new Uint8Array(t.buffer,t.byteOffset,n),4+i.length),s={keyAlgo:r,key:a,signature:o,blob:l,hashAlgo:c}}}else s={keyAlgo:r,key:a,hashAlgo:c},o="publickey -- check"}break}case"hostbased":{const n=ln.readString(!0);let i=n;const r=ln.readString(),o=ln.readString(!0),a=ln.readString(!0);let c;switch(n){case"rsa-sha2-256":i="ssh-rsa",c="sha256";break;case"rsa-sha2-512":i="ssh-rsa",c="sha512"}const l=ln.pos();let u=ln.readString();if(void 0!==u&&(u.length>4+n.length+4&&u.utf8Slice(4,4+n.length)===n&&(u=cn(u,4+n.length+4)),u=pn(u,i),void 0!==u)){const n=e._kex.sessionID,p=Buffer.allocUnsafe(4+n.length+l);dn(p,n.length,0),p.set(n,4),p.set(new Uint8Array(t.buffer,t.byteOffset,l),4+n.length),s={keyAlgo:i,key:r,signature:u,blob:p,localHostname:o,localUsername:a,hashAlgo:c}}break}case"keyboard-interactive":ln.skipString(),s=ln.readList();break;default:void 0!==r&&(s=ln.readRaw())}if(ln.clear(),void 0===s)return un(e,"Inbound: Malformed USERAUTH_REQUEST packet");void 0===o&&(o=r),e._authsQueue.push(r),e._debug&&e._debug(`Inbound: Received USERAUTH_REQUEST (${o})`);const a=e._handlers.USERAUTH_REQUEST;a&&a(e,n,i,r,s)},[mn.USERAUTH_FAILURE]:(e,t)=>{ln.init(t,1);const n=ln.readList(),i=ln.readBool();if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed USERAUTH_FAILURE packet");e._debug&&e._debug(`Inbound: Received USERAUTH_FAILURE (${n})`),e._authsQueue.shift();const r=e._handlers.USERAUTH_FAILURE;r&&r(e,n,i)},[mn.USERAUTH_SUCCESS]:(e,t)=>{e._debug&&e._debug("Inbound: Received USERAUTH_SUCCESS"),e._authsQueue.shift();const n=e._handlers.USERAUTH_SUCCESS;n&&n(e)},[mn.USERAUTH_BANNER]:(e,t)=>{ln.init(t,1);const n=ln.readString(!0),i=ln.readString();if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed USERAUTH_BANNER packet");e._debug&&e._debug("Inbound: Received USERAUTH_BANNER");const r=e._handlers.USERAUTH_BANNER;r&&r(e,n)},60:(e,t)=>{if(e._authsQueue.length)switch(e._authsQueue[0]){case"password":{ln.init(t,1);const n=ln.readString(!0),i=ln.readString();if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed USERAUTH_PASSWD_CHANGEREQ packet");e._debug&&e._debug("Inbound: Received USERAUTH_PASSWD_CHANGEREQ");const r=e._handlers.USERAUTH_PASSWD_CHANGEREQ;r&&r(e,n);break}case"publickey":{ln.init(t,1);const n=ln.readString(!0),i=ln.readString();if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed USERAUTH_PK_OK packet");e._debug&&e._debug("Inbound: Received USERAUTH_PK_OK"),e._authsQueue.shift();const r=e._handlers.USERAUTH_PK_OK;r&&r(e,n,i);break}case"keyboard-interactive":{ln.init(t,1);const n=ln.readString(!0),i=ln.readString(!0);ln.readString();const r=ln.readUInt32BE();let s;if(void 0!==r){let e;for(s=new Array(r),e=0;e<r;++e){const t=ln.readString(!0),n=ln.readBool();if(void 0===n)break;s[e]={prompt:t,echo:n}}e!==r&&(s=void 0)}if(ln.clear(),void 0===s)return un(e,"Inbound: Malformed USERAUTH_INFO_REQUEST packet");e._debug&&e._debug("Inbound: Received USERAUTH_INFO_REQUEST");const o=e._handlers.USERAUTH_INFO_REQUEST;o&&o(e,n,i,s);break}default:e._debug&&e._debug("Inbound: Received unexpected payload type 60")}else e._debug&&e._debug("Inbound: Received payload type 60 without auth")},61:(e,t)=>{if(!e._authsQueue.length)return void(e._debug&&e._debug("Inbound: Received payload type 61 without auth"));if("keyboard-interactive"!==e._authsQueue[0])return un(e,"Inbound: Received unexpected payload type 61");ln.init(t,1);const n=ln.readUInt32BE();let i;if(void 0!==n){let e;for(i=new Array(n),e=0;e<n;++e){const t=ln.readString(!0);if(void 0===t)break;i[e]=t}e!==n&&(i=void 0)}if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed USERAUTH_INFO_RESPONSE packet");e._debug&&e._debug("Inbound: Received USERAUTH_INFO_RESPONSE");const r=e._handlers.USERAUTH_INFO_RESPONSE;r&&r(e,i)},[mn.GLOBAL_REQUEST]:(e,t)=>{ln.init(t,1);const n=ln.readString(!0),i=ln.readBool();let r;if(void 0!==i)switch(n){case"tcpip-forward":case"cancel-tcpip-forward":{const e=ln.readString(!0),t=ln.readUInt32BE();void 0!==t&&(r={bindAddr:e,bindPort:t});break}case"streamlocal-forward@openssh.com":case"cancel-streamlocal-forward@openssh.com":{const e=ln.readString(!0);void 0!==e&&(r={socketPath:e});break}case"no-more-sessions@openssh.com":r=null;break;case"hostkeys-00@openssh.com":for(r=[];ln.avail()>0;){const e=ln.readString();if(void 0===e){r=void 0;break}const t=_n(e);t instanceof Error||r.push(t)}break;default:r=ln.readRaw()}if(ln.clear(),void 0===r)return un(e,"Inbound: Malformed GLOBAL_REQUEST packet");e._debug&&e._debug(`Inbound: GLOBAL_REQUEST (${n})`);const s=e._handlers.GLOBAL_REQUEST;s?s(e,n,i,r):e.requestFailure()},[mn.REQUEST_SUCCESS]:(e,t)=>{const n=t.length>1?cn(t,1):null;e._debug&&e._debug("Inbound: REQUEST_SUCCESS");const i=e._handlers.REQUEST_SUCCESS;i&&i(e,n)},[mn.REQUEST_FAILURE]:(e,t)=>{e._debug&&e._debug("Inbound: Received REQUEST_FAILURE");const n=e._handlers.REQUEST_FAILURE;n&&n(e)},[mn.CHANNEL_OPEN]:(e,t)=>{ln.init(t,1);const n=ln.readString(!0),i=ln.readUInt32BE(),r=ln.readUInt32BE(),s=ln.readUInt32BE();let o;switch(n){case"forwarded-tcpip":case"direct-tcpip":{const e=ln.readString(!0),t=ln.readUInt32BE(),a=ln.readString(!0),c=ln.readUInt32BE();void 0!==c&&(o={type:n,sender:i,window:r,packetSize:s,data:{destIP:e,destPort:t,srcIP:a,srcPort:c}});break}case"forwarded-streamlocal@openssh.com":case"direct-streamlocal@openssh.com":{const e=ln.readString(!0);void 0!==e&&(o={type:n,sender:i,window:r,packetSize:s,data:{socketPath:e}});break}case"x11":{const e=ln.readString(!0),t=ln.readUInt32BE();void 0!==t&&(o={type:n,sender:i,window:r,packetSize:s,data:{srcIP:e,srcPort:t}});break}default:o={type:n,sender:i,window:r,packetSize:s,data:{}}}if(ln.clear(),void 0===o)return un(e,"Inbound: Malformed CHANNEL_OPEN packet");e._debug&&e._debug(`Inbound: CHANNEL_OPEN (s:${i}, ${n})`);const a=e._handlers.CHANNEL_OPEN;a?a(e,o):e.channelOpenFail(o.sender,hn.ADMINISTRATIVELY_PROHIBITED,"","")},[mn.CHANNEL_OPEN_CONFIRMATION]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE(),i=ln.readUInt32BE(),r=ln.readUInt32BE(),s=ln.readUInt32BE(),o=ln.avail()?ln.readRaw():void 0;if(ln.clear(),void 0===s)return un(e,"Inbound: Malformed CHANNEL_OPEN_CONFIRMATION packet");e._debug&&e._debug(`Inbound: CHANNEL_OPEN_CONFIRMATION (r:${n}, s:${i})`);const a=e._handlers.CHANNEL_OPEN_CONFIRMATION;a&&a(e,{recipient:n,sender:i,window:r,packetSize:s,data:o})},[mn.CHANNEL_OPEN_FAILURE]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE(),i=ln.readUInt32BE(),r=ln.readString(!0),s=ln.readString();if(ln.clear(),void 0===s)return un(e,"Inbound: Malformed CHANNEL_OPEN_FAILURE packet");e._debug&&e._debug(`Inbound: CHANNEL_OPEN_FAILURE (r:${n})`);const o=e._handlers.CHANNEL_OPEN_FAILURE;o&&o(e,n,i,r)},[mn.CHANNEL_WINDOW_ADJUST]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE(),i=ln.readUInt32BE();if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed CHANNEL_WINDOW_ADJUST packet");e._debug&&e._debug(`Inbound: CHANNEL_WINDOW_ADJUST (r:${n}, ${i})`);const r=e._handlers.CHANNEL_WINDOW_ADJUST;r&&r(e,n,i)},[mn.CHANNEL_DATA]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE(),i=ln.readString();if(ln.clear(),void 0===i)return un(e,"Inbound: Malformed CHANNEL_DATA packet");e._debug&&e._debug(`Inbound: CHANNEL_DATA (r:${n}, ${i.length})`);const r=e._handlers.CHANNEL_DATA;r&&r(e,n,i)},[mn.CHANNEL_EXTENDED_DATA]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE(),i=ln.readUInt32BE(),r=ln.readString();if(ln.clear(),void 0===r)return un(e,"Inbound: Malformed CHANNEL_EXTENDED_DATA packet");e._debug&&e._debug(`Inbound: CHANNEL_EXTENDED_DATA (r:${n}, ${r.length})`);const s=e._handlers.CHANNEL_EXTENDED_DATA;s&&s(e,n,r,i)},[mn.CHANNEL_EOF]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE();if(ln.clear(),void 0===n)return un(e,"Inbound: Malformed CHANNEL_EOF packet");e._debug&&e._debug(`Inbound: CHANNEL_EOF (r:${n})`);const i=e._handlers.CHANNEL_EOF;i&&i(e,n)},[mn.CHANNEL_CLOSE]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE();if(ln.clear(),void 0===n)return un(e,"Inbound: Malformed CHANNEL_CLOSE packet");e._debug&&e._debug(`Inbound: CHANNEL_CLOSE (r:${n})`);const i=e._handlers.CHANNEL_CLOSE;i&&i(e,n)},[mn.CHANNEL_REQUEST]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE(),i=ln.readString(!0),r=ln.readBool();let s;if(void 0!==r)switch(i){case"exit-status":s=ln.readUInt32BE(),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i}: ${s})`);break;case"exit-signal":{let t,r;if(e._compatFlags&fn.OLD_EXIT){const e=ln.readUInt32BE();switch(e){case 1:t="HUP";break;case 2:t="INT";break;case 3:t="QUIT";break;case 6:t="ABRT";break;case 9:t="KILL";break;case 14:t="ALRM";break;case 15:t="TERM";break;default:void 0!==e&&(t=`UNKNOWN (${e})`)}r=!1}else t=ln.readString(!0),r=ln.readBool(),void 0===r&&(t=void 0);const o=ln.readString(!0);void 0!==ln.skipString()&&(s={signal:t,coreDumped:r,errorMessage:o}),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i}: ${t})`);break}case"pty-req":{const t=ln.readString(!0),r=ln.readUInt32BE(),o=ln.readUInt32BE(),a=ln.readUInt32BE(),c=ln.readUInt32BE(),l=ln.readString();if(void 0!==l){ln.init(l,1);let e={};for(;ln.avail();){const t=ln.readByte();if(t===gn.TTY_OP_END)break;const n=bn[t],i=ln.readUInt32BE();if(void 0===t||void 0===n||void 0===i){e=void 0;break}e[n]=i}void 0!==e&&(s={term:t,cols:r,rows:o,width:a,height:c,modes:e})}e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i})`);break}case"window-change":{const t=ln.readUInt32BE(),r=ln.readUInt32BE(),o=ln.readUInt32BE(),a=ln.readUInt32BE();void 0!==a&&(s={cols:t,rows:r,width:o,height:a}),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i})`);break}case"x11-req":{const t=ln.readBool(),r=ln.readString(!0),o=ln.readString(),a=ln.readUInt32BE();void 0!==a&&(s={single:t,protocol:r,cookie:o,screen:a}),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i})`);break}case"env":{const t=ln.readString(!0),r=ln.readString(!0);void 0!==r&&(s={name:t,value:r}),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i}: ${t}=${r})`);break}case"shell":case"auth-agent-req@openssh.com":s=null,e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i})`);break;case"exec":case"subsystem":case"signal":s=ln.readString(!0),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i}: ${s})`);break;case"xon-xoff":s=ln.readBool(),e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i}: ${s})`);break;default:s=ln.avail()?ln.readRaw():null,e._debug&&e._debug(`Inbound: CHANNEL_REQUEST (r:${n}, ${i})`)}if(ln.clear(),void 0===s)return un(e,"Inbound: Malformed CHANNEL_REQUEST packet");const o=e._handlers.CHANNEL_REQUEST;o&&o(e,n,i,r,s)},[mn.CHANNEL_SUCCESS]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE();if(ln.clear(),void 0===n)return un(e,"Inbound: Malformed CHANNEL_SUCCESS packet");e._debug&&e._debug(`Inbound: CHANNEL_SUCCESS (r:${n})`);const i=e._handlers.CHANNEL_SUCCESS;i&&i(e,n)},[mn.CHANNEL_FAILURE]:(e,t)=>{ln.init(t,1);const n=ln.readUInt32BE();if(ln.clear(),void 0===n)return un(e,"Inbound: Malformed CHANNEL_FAILURE packet");e._debug&&e._debug(`Inbound: CHANNEL_FAILURE (r:${n})`);const i=e._handlers.CHANNEL_FAILURE;i&&i(e,n)}};function xn(){if(vn)return yn;vn=1;const e=new Array(256);return[Sn().HANDLERS,wn].forEach(t=>{for(let[n,i]of Object.entries(t))n=+n,isFinite(n)&&n>=0&&n<e.length&&(e[n]=i)}),yn=e}function Sn(){if(En)return An;En=1;const{createDiffieHellman:e,createDiffieHellmanGroup:t,createECDH:n,createHash:i,createPublicKey:r,diffieHellman:s,generateKeyPairSync:a,randomFillSync:c}=o,{Ber:l}=K,{COMPAT:u,curve25519Supported:p,DEFAULT_KEX:d,DEFAULT_SERVER_HOST_KEY:h,DEFAULT_CIPHER:f,DEFAULT_MAC:m,DEFAULT_COMPRESSION:g,DISCONNECT_REASON:_,MESSAGE:b}=ce(),{CIPHER_INFO:y,createCipher:v,createDecipher:A,MAC_INFO:E}=me(),{parseDERKey:w}=ft,{bufferFill:x,bufferParser:S,convertSignature:I,doFatalError:k,FastBuffer:C,sigSSHToASN1:R,writeUInt32BE:B}=le(),{PacketReader:T,PacketWriter:O,ZlibPacketReader:N,ZlibPacketWriter:L}=an;let P;const U=Buffer.alloc(0);function D(e){let t;if(e._compatFlags&u.BAD_DHGEX){const n=e._offer.lists.kex;let i=n.array,r=!1;for(let e=0;e<i.length;++e)i[e].includes("group-exchange")&&(r||(r=!0,i=i.slice()),i.splice(e--,1));if(r){let r=17+e._offer.totalSize+1+4;const s=Buffer.from(i.join(","));r-=n.buffer.length-s.length;const o=e._offer.lists.all,a=new Uint8Array(o.buffer,o.byteOffset+4+n.buffer.length,o.length-(4+n.buffer.length));t=Buffer.allocUnsafe(r),B(t,s.length,17),t.set(s,21),t.set(a,21+s.length)}}void 0===t&&(t=Buffer.allocUnsafe(17+e._offer.totalSize+1+4),e._offer.copyAllTo(t,17)),e._debug&&e._debug("Outbound: Sending KEXINIT"),t[0]=b.KEXINIT,c(t,1,16),x(t,0,t.length-5),e._kexinit=t,e._packetRW.write.allocStart=0;{const n=e._packetRW.write.allocStartKEX,i=e._packetRW.write.alloc(t.length,!0);i.set(t,n),e._cipher.encrypt(e._packetRW.write.finalize(i,!0))}}function M(e,t){const n={kex:void 0,serverHostKey:void 0,cs:{cipher:void 0,mac:void 0,compress:void 0,lang:void 0},sc:{cipher:void 0,mac:void 0,compress:void 0,lang:void 0}};if(S.init(t,17),void 0===(n.kex=S.readList())||void 0===(n.serverHostKey=S.readList())||void 0===(n.cs.cipher=S.readList())||void 0===(n.sc.cipher=S.readList())||void 0===(n.cs.mac=S.readList())||void 0===(n.sc.mac=S.readList())||void 0===(n.cs.compress=S.readList())||void 0===(n.sc.compress=S.readList())||void 0===(n.cs.lang=S.readList())||void 0===(n.sc.lang=S.readList()))return S.clear(),k(e,"Received malformed KEXINIT","handshake",_.KEY_EXCHANGE_FAILED);const i=S.pos(),r=i<t.length&&1===t[i];S.clear();const s=e._offer,o=n;let a,c,l,p=s.lists.kex.array;if(e._compatFlags&u.BAD_DHGEX){let e=!1;for(let t=0;t<p.length;++t)-1!==p[t].indexOf("group-exchange")&&(e||(e=!0,p=p.slice()),p.splice(t--,1))}const d=e._debug;let h;if(d&&d("Inbound: Handshake in progress"),d&&d(`Handshake: (local) KEX method: ${p}`),d&&d(`Handshake: (remote) KEX method: ${o.kex}`),e._server?(c=p,a=o.kex,h=-1!==a.indexOf("ext-info-c")):(c=o.kex,a=p,h=-1!==c.indexOf("ext-info-s")),void 0===e._strictMode&&(e._server?e._strictMode=-1!==a.indexOf("kex-strict-c-v00@openssh.com"):e._strictMode=-1!==c.indexOf("kex-strict-s-v00@openssh.com"),e._strictMode&&(d&&d("Handshake: strict KEX mode enabled"),1!==e._decipher.inSeqno)))return d&&d("Handshake: KEXINIT not first packet in strict KEX mode"),k(e,"Handshake failed: KEXINIT not first packet in strict KEX mode","handshake",_.KEY_EXCHANGE_FAILED);for(l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: no matching key exchange algorithm"),k(e,"Handshake failed: no matching key exchange algorithm","handshake",_.KEY_EXCHANGE_FAILED);n.kex=a[l],d&&d(`Handshake: KEX algorithm: ${a[l]}`),!r||o.kex.length&&a[l]===o.kex[0]||(e._skipNextInboundPacket=!0);const f=s.lists.serverHostKey.array;for(d&&d(`Handshake: (local) Host key format: ${f}`),d&&d(`Handshake: (remote) Host key format: ${o.serverHostKey}`),e._server?(c=f,a=o.serverHostKey):(c=o.serverHostKey,a=f),l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: No matching host key format"),k(e,"Handshake failed: no matching host key format","handshake",_.KEY_EXCHANGE_FAILED);n.serverHostKey=a[l],d&&d(`Handshake: Host key format: ${a[l]}`);const m=s.lists.cs.cipher.array;for(d&&d(`Handshake: (local) C->S cipher: ${m}`),d&&d(`Handshake: (remote) C->S cipher: ${o.cs.cipher}`),e._server?(c=m,a=o.cs.cipher):(c=o.cs.cipher,a=m),l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: No matching C->S cipher"),k(e,"Handshake failed: no matching C->S cipher","handshake",_.KEY_EXCHANGE_FAILED);n.cs.cipher=a[l],d&&d(`Handshake: C->S Cipher: ${a[l]}`);const g=s.lists.sc.cipher.array;for(d&&d(`Handshake: (local) S->C cipher: ${g}`),d&&d(`Handshake: (remote) S->C cipher: ${o.sc.cipher}`),e._server?(c=g,a=o.sc.cipher):(c=o.sc.cipher,a=g),l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: No matching S->C cipher"),k(e,"Handshake failed: no matching S->C cipher","handshake",_.KEY_EXCHANGE_FAILED);n.sc.cipher=a[l],d&&d(`Handshake: S->C cipher: ${a[l]}`);const b=s.lists.cs.mac.array;if(d&&d(`Handshake: (local) C->S MAC: ${b}`),d&&d(`Handshake: (remote) C->S MAC: ${o.cs.mac}`),y[n.cs.cipher].authLen>0)n.cs.mac="",d&&d("Handshake: C->S MAC: <implicit>");else{for(e._server?(c=b,a=o.cs.mac):(c=o.cs.mac,a=b),l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: No matching C->S MAC"),k(e,"Handshake failed: no matching C->S MAC","handshake",_.KEY_EXCHANGE_FAILED);n.cs.mac=a[l],d&&d(`Handshake: C->S MAC: ${a[l]}`)}const v=s.lists.sc.mac.array;if(d&&d(`Handshake: (local) S->C MAC: ${v}`),d&&d(`Handshake: (remote) S->C MAC: ${o.sc.mac}`),y[n.sc.cipher].authLen>0)n.sc.mac="",d&&d("Handshake: S->C MAC: <implicit>");else{for(e._server?(c=v,a=o.sc.mac):(c=o.sc.mac,a=v),l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: No matching S->C MAC"),k(e,"Handshake failed: no matching S->C MAC","handshake",_.KEY_EXCHANGE_FAILED);n.sc.mac=a[l],d&&d(`Handshake: S->C MAC: ${a[l]}`)}const A=s.lists.cs.compress.array;for(d&&d(`Handshake: (local) C->S compression: ${A}`),d&&d(`Handshake: (remote) C->S compression: ${o.cs.compress}`),e._server?(c=A,a=o.cs.compress):(c=o.cs.compress,a=A),l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: No matching C->S compression"),k(e,"Handshake failed: no matching C->S compression","handshake",_.KEY_EXCHANGE_FAILED);n.cs.compress=a[l],d&&d(`Handshake: C->S compression: ${a[l]}`);const E=s.lists.sc.compress.array;for(d&&d(`Handshake: (local) S->C compression: ${E}`),d&&d(`Handshake: (remote) S->C compression: ${o.sc.compress}`),e._server?(c=E,a=o.sc.compress):(c=o.sc.compress,a=E),l=0;l<a.length&&-1===c.indexOf(a[l]);++l);if(l===a.length)return d&&d("Handshake: No matching S->C compression"),k(e,"Handshake failed: no matching S->C compression","handshake",_.KEY_EXCHANGE_FAILED);n.sc.compress=a[l],d&&d(`Handshake: S->C compression: ${a[l]}`),n.cs.lang="",n.sc.lang="",e._kex&&(e._kexinit||D(e),e._decipher._onPayload=Q.bind(e,{firstPacket:!1})),e._kex=H(n,e,t),e._kex.remoteExtInfoEnabled=h,e._kex.start()}const H=(()=>{function o(e){let t,n=0,i=e.length;for(;0===e[n];)++n,--i;return 128&e[n]?(t=Buffer.allocUnsafe(1+i),t[0]=0,e.copy(t,1,n),e=t):i!==e.length&&(t=Buffer.allocUnsafe(i),e.copy(t,0,n),e=t),e}class c{constructor(e,t,n){this._protocol=t,this.sessionID=t._kex?t._kex.sessionID:void 0,this.negotiated=e,this.remoteExtInfoEnabled=!1,this._step=1,this._public=null,this._dh=null,this._sentNEWKEYS=!1,this._receivedNEWKEYS=!1,this._finished=!1,this._hostVerified=!1,this._kexinit=t._kexinit,this._remoteKexinit=n,this._identRaw=t._identRaw,this._remoteIdentRaw=t._remoteIdentRaw,this._hostKey=void 0,this._dhData=void 0,this._sig=void 0}finish(e){if(this._finished)return!1;this._finished=!0;const t=this._protocol._server,n=this.negotiated,r=this.convertPublicKey(this._dhData);let s=this.computeSecret(this._dhData);if(s instanceof Error)return s.message=`Error while computing DH secret (${this.type}): ${s.message}`,s.level="handshake",k(this._protocol,s,_.KEY_EXCHANGE_FAILED);const o=i(this.hashName);j(o,t?this._remoteIdentRaw:this._identRaw),j(o,t?this._identRaw:this._remoteIdentRaw),j(o,t?this._remoteKexinit:this._kexinit),j(o,t?this._kexinit:this._remoteKexinit);const a=t?this._hostKey.getPublicSSH():this._hostKey;if(j(o,a),"groupex"===this.type){const e=this.getDHParams(),t=Buffer.allocUnsafe(4);B(t,this._minBits,0),o.update(t),B(t,this._prefBits,0),o.update(t),B(t,this._maxBits,0),o.update(t),j(o,e.prime),j(o,e.generator)}j(o,t?r:this.getPublicKey());const c=t?this.getPublicKey():r;j(o,c),j(o,s);const l=o.digest();if(t){let e;switch(this.negotiated.serverHostKey){case"rsa-sha2-256":e="sha256";break;case"rsa-sha2-512":e="sha512"}this._protocol._debug&&this._protocol._debug("Generating signature ...");let t=this._hostKey.sign(l,e);if(t instanceof Error)return k(this._protocol,`Handshake failed: signature generation failed for ${this._hostKey.type} host key: ${t.message}`,"handshake",_.KEY_EXCHANGE_FAILED);if(t=I(t,this._hostKey.type),!1===t)return k(this._protocol,`Handshake failed: signature conversion failed for ${this._hostKey.type} host key`,"handshake",_.KEY_EXCHANGE_FAILED);const n=this.negotiated.serverHostKey,i=Buffer.byteLength(n),r=4+i+4+t.length;let s=this._protocol._packetRW.write.allocStartKEX;const o=this._protocol._packetRW.write.alloc(5+a.length+4+c.length+4+r,!0);if(o[s]=b.KEXDH_REPLY,B(o,a.length,++s),o.set(a,s+=4),B(o,c.length,s+=a.length),o.set(c,s+=4),B(o,r,s+=c.length),B(o,i,s+=4),o.utf8Write(n,s+=4,i),B(o,t.length,s+=i),o.set(t,s+=4),this._protocol._debug){let e;switch(this.type){case"group":e="KEXDH_REPLY";break;case"groupex":e="KEXDH_GEX_REPLY";break;default:e="KEXECDH_REPLY"}this._protocol._debug(`Outbound: Sending ${e}`)}this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(o,!0))}else{S.init(this._sig,0);const e=S.readString(!0);if(!e)return k(this._protocol,"Malformed packet while reading signature","handshake",_.KEY_EXCHANGE_FAILED);if(e!==n.serverHostKey)return k(this._protocol,`Wrong signature type: ${e}, expected: ${n.serverHostKey}`,"handshake",_.KEY_EXCHANGE_FAILED);let t,i,r=S.readString();if(S.clear(),void 0===r)return k(this._protocol,"Malformed packet while reading signature","handshake",_.KEY_EXCHANGE_FAILED);if(!(r=R(r,e)))return k(this._protocol,"Malformed signature","handshake",_.KEY_EXCHANGE_FAILED);{S.init(this._hostKey,0);const e=S.readString(!0),n=this._hostKey.slice(S.pos());if(S.clear(),t=w(n,e),t instanceof Error)return t.level="handshake",k(this._protocol,t,_.KEY_EXCHANGE_FAILED)}switch(this.negotiated.serverHostKey){case"rsa-sha2-256":i="sha256";break;case"rsa-sha2-512":i="sha512"}this._protocol._debug&&this._protocol._debug("Verifying signature ...");const s=t.verify(l,r,i);if(!0!==s)return s instanceof Error?this._protocol._debug&&this._protocol._debug(`Signature verification failed: ${s.stack}`):this._protocol._debug&&this._protocol._debug("Signature verification failed"),k(this._protocol,"Handshake failed: signature verification failed","handshake",_.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug("Verified signature")}let u,p;!t&&e||W(this);const d=e=>{if(u)return W(this),u.outbound.seqno=this._protocol._cipher.outSeqno,this._protocol._cipher.free(),this._protocol._cipher=v(u),this._protocol._packetRW.write=p,u=void 0,p=void 0,this._protocol._onHandshakeComplete(n),!1;this.sessionID||(this.sessionID=l);{const e=Buffer.allocUnsafe(4+s.length);B(e,s.length,0),e.set(s,4),s=e}const i=y[n.cs.cipher],r=y[n.sc.cipher],o=$(i.ivLen,this.hashName,s,l,this.sessionID,"A"),a=$(r.ivLen,this.hashName,s,l,this.sessionID,"B"),c=$(i.keyLen,this.hashName,s,l,this.sessionID,"C"),h=$(r.keyLen,this.hashName,s,l,this.sessionID,"D");let f,m,g,_;i.authLen||(f=E[n.cs.mac],m=$(f.len,this.hashName,s,l,this.sessionID,"E")),r.authLen||(g=E[n.sc.mac],_=$(g.len,this.hashName,s,l,this.sessionID,"F"));const b={inbound:{onPayload:this._protocol._onPayload,seqno:this._protocol._decipher.inSeqno,decipherInfo:t?i:r,decipherIV:t?o:a,decipherKey:t?c:h,macInfo:t?f:g,macKey:t?m:_},outbound:{onWrite:this._protocol._onWrite,seqno:this._protocol._cipher.outSeqno,cipherInfo:t?r:i,cipherIV:t?a:o,cipherKey:t?h:c,macInfo:t?g:f,macKey:t?_:m}};this._protocol._decipher.free(),u=b,this._protocol._decipher=A(b);const w={read:void 0,write:void 0};switch(n.cs.compress){case"zlib":t?w.read=new N:w.write=new L(this._protocol);break;case"zlib@openssh.com":if(this._protocol._authenticated){t?w.read=new N:w.write=new L(this._protocol);break}default:t?w.read=new T:w.write=new O(this._protocol)}switch(n.sc.compress){case"zlib":t?w.write=new L(this._protocol):w.read=new N;break;case"zlib@openssh.com":if(this._protocol._authenticated){t?w.write=new L(this._protocol):w.read=new N;break}default:t?w.write=new O(this._protocol):w.read=new T}return this._protocol._packetRW.read.cleanup(),this._protocol._packetRW.write.cleanup(),this._protocol._packetRW.read=w.read,p=w.write,this._public=null,this._dh=null,this._kexinit=this._protocol._kexinit=void 0,this._remoteKexinit=void 0,this._identRaw=void 0,this._remoteIdentRaw=void 0,this._hostKey=void 0,this._dhData=void 0,this._sig=void 0,!e&&d()};return(t||e)&&(this.finish=d),t?void 0:d(e)}start(){if(!this._protocol._server){if(this._protocol._debug){let e;if("group"===this.type)e="KEXDH_INIT";else e="KEXECDH_INIT";this._protocol._debug(`Outbound: Sending ${e}`)}const e=this.getPublicKey();let t=this._protocol._packetRW.write.allocStartKEX;const n=this._protocol._packetRW.write.alloc(5+e.length,!0);n[t]=b.KEXDH_INIT,B(n,e.length,++t),n.set(e,t+=4),this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(n,!0))}}getPublicKey(){this.generateKeys();const e=this._public;if(e)return this.convertPublicKey(e)}convertPublicKey(e){let t,n=0,i=e.length;for(;0===e[n];)++n,--i;return 128&e[n]?(t=Buffer.allocUnsafe(1+i),t[0]=0,e.copy(t,1,n),t):(i!==e.length&&(t=Buffer.allocUnsafe(i),e.copy(t,0,n),e=t),e)}computeSecret(e){this.generateKeys();try{return o(this._dh.computeSecret(e))}catch(e){return e}}parse(e){const t=e[0];switch(this._step){case 1:if(this._protocol._server){if(t!==b.KEXDH_INIT)return k(this._protocol,`Received packet ${t} instead of ${b.KEXDH_INIT}`,"handshake",_.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug("Received DH Init"),S.init(e,1);const n=S.readString();if(S.clear(),void 0===n)return k(this._protocol,"Received malformed KEX*_INIT","handshake",_.KEY_EXCHANGE_FAILED);this._dhData=n;let i=this._protocol._hostKeys[this.negotiated.serverHostKey];Array.isArray(i)&&(i=i[0]),this._hostKey=i,this.finish()}else{if(t!==b.KEXDH_REPLY)return k(this._protocol,`Received packet ${t} instead of ${b.KEXDH_REPLY}`,"handshake",_.KEY_EXCHANGE_FAILED);let n,i,r;if(this._protocol._debug&&this._protocol._debug("Received DH Reply"),S.init(e,1),void 0===(n=S.readString())||void 0===(i=S.readString())||void 0===(r=S.readString()))return S.clear(),k(this._protocol,"Received malformed KEX*_REPLY","handshake",_.KEY_EXCHANGE_FAILED);S.clear(),S.init(n,0);const s=S.readString(!0);if(S.clear(),void 0===s)return k(this._protocol,"Received malformed host public key","handshake",_.KEY_EXCHANGE_FAILED);if(s!==this.negotiated.serverHostKey)switch(this.negotiated.serverHostKey){case"rsa-sha2-256":case"rsa-sha2-512":if("ssh-rsa"===s)break;default:return k(this._protocol,"Host key does not match negotiated type","handshake",_.KEY_EXCHANGE_FAILED)}this._hostKey=n,this._dhData=i,this._sig=r;let o,a=!1;if(void 0===this._protocol._hostVerifier?(o=!0,this._protocol._debug&&this._protocol._debug("Host accepted by default (no verification)")):o=this._protocol._hostVerifier(n,e=>{if(!a){if(a=!0,!1===e)return this._protocol._debug&&this._protocol._debug("Host denied (verification failed)"),k(this._protocol,"Host denied (verification failed)","handshake",_.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug("Host accepted (verified)"),this._hostVerified=!0,this._receivedNEWKEYS?this.finish():W(this)}}),void 0===o)return void++this._step;if(a=!0,!1===o)return this._protocol._debug&&this._protocol._debug("Host denied (verification failed)"),k(this._protocol,"Host denied (verification failed)","handshake",_.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug("Host accepted (verified)"),this._hostVerified=!0,W(this)}++this._step;break;case 2:return t!==b.NEWKEYS?k(this._protocol,`Received packet ${t} instead of ${b.NEWKEYS}`,"handshake",_.KEY_EXCHANGE_FAILED):(this._protocol._debug&&this._protocol._debug("Inbound: NEWKEYS"),this._receivedNEWKEYS=!0,this._protocol._strictMode&&(this._protocol._decipher.inSeqno=0),++this._step,this.finish(!this._protocol._server&&!this._hostVerified));default:return k(this._protocol,`Received unexpected packet ${t} after NEWKEYS`,"handshake",_.KEY_EXCHANGE_FAILED)}}}class d extends c{constructor(e,...t){super(...t),this.type="25519",this.hashName=e,this._keys=null}generateKeys(){this._keys||(this._keys=a("x25519"))}getPublicKey(){this.generateKeys();return this._keys.publicKey.export({type:"spki",format:"der"}).slice(-32)}convertPublicKey(e){let t,n=0,i=e.length;for(;0===e[n];)++n,--i;return 32===e.length||i!==e.length&&(t=Buffer.allocUnsafe(i),e.copy(t,0,n),e=t),e}computeSecret(e){this.generateKeys();try{const t=new l.Writer;return t.startSequence(),t.startSequence(),t.writeOID("1.3.101.110"),t.endSequence(),t.startSequence(l.BitString),t.writeByte(0),t._ensure(e.length),e.copy(t._buf,t._offset,0,e.length),t._offset+=e.length,t.endSequence(),t.endSequence(),o(s({privateKey:this._keys.privateKey,publicKey:r({key:t.buffer,type:"spki",format:"der"})}))}catch(e){return e}}}class h extends c{constructor(e,t,...n){super(...n),this.type="ecdh",this.curveName=e,this.hashName=t}generateKeys(){this._dh||(this._dh=n(this.curveName),this._public=this._dh.generateKeys())}}class f extends c{constructor(e,...t){super(...t),this.type="groupex",this.hashName=e,this._prime=null,this._generator=null,this._minBits=2048,this._prefBits=function(e){const t=y[e.cs.cipher],n=y[e.sc.cipher],i=8*Math.max(0,"des-ede3-cbc"===t.sslName?14:t.keyLen,t.blockLen,t.ivLen,"des-ede3-cbc"===n.sslName?14:n.keyLen,n.blockLen,n.ivLen);return i<=112?2048:i<=128?3072:i<=192?7680:8192}(this.negotiated),this._protocol._compatFlags&u.BUG_DHGEX_LARGE&&(this._prefBits=Math.min(this._prefBits,4096)),this._maxBits=8192}start(){if(this._protocol._server)return;this._protocol._debug&&this._protocol._debug("Outbound: Sending KEXDH_GEX_REQUEST");let e=this._protocol._packetRW.write.allocStartKEX;const t=this._protocol._packetRW.write.alloc(13,!0);t[e]=b.KEXDH_GEX_REQUEST,B(t,this._minBits,++e),B(t,this._prefBits,e+=4),B(t,this._maxBits,e+=4),this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(t,!0))}generateKeys(){!this._dh&&this._prime&&this._generator&&(this._dh=e(this._prime,this._generator),this._public=this._dh.generateKeys())}setDHParams(e,t){if(!Buffer.isBuffer(e))throw new Error("Invalid prime value");if(!Buffer.isBuffer(t))throw new Error("Invalid generator value");this._prime=e,this._generator=t}getDHParams(){if(this._dh)return{prime:o(this._dh.getPrime()),generator:o(this._dh.getGenerator())}}parse(e){const t=e[0];switch(this._step){case 1:{if(this._protocol._server)return t!==b.KEXDH_GEX_REQUEST?k(this._protocol,`Received packet ${t} instead of `+b.KEXDH_GEX_REQUEST,"handshake",_.KEY_EXCHANGE_FAILED):k(this._protocol,"Group exchange not implemented for server","handshake",_.KEY_EXCHANGE_FAILED);if(t!==b.KEXDH_GEX_GROUP)return k(this._protocol,`Received packet ${t} instead of ${b.KEXDH_GEX_GROUP}`,"handshake",_.KEY_EXCHANGE_FAILED);let n,i;if(this._protocol._debug&&this._protocol._debug("Received DH GEX Group"),S.init(e,1),void 0===(n=S.readString())||void 0===(i=S.readString()))return S.clear(),k(this._protocol,"Received malformed KEXDH_GEX_GROUP","handshake",_.KEY_EXCHANGE_FAILED);S.clear(),this.setDHParams(n,i),this.generateKeys();const r=this.getPublicKey();this._protocol._debug&&this._protocol._debug("Outbound: Sending KEXDH_GEX_INIT");let s=this._protocol._packetRW.write.allocStartKEX;const o=this._protocol._packetRW.write.alloc(5+r.length,!0);o[s]=b.KEXDH_GEX_INIT,B(o,r.length,++s),o.set(r,s+=4),this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(o,!0)),++this._step;break}case 2:if(this._protocol._server)return t!==b.KEXDH_GEX_INIT?k(this._protocol,`Received packet ${t} instead of ${b.KEXDH_GEX_INIT}`,"handshake",_.KEY_EXCHANGE_FAILED):(this._protocol._debug&&this._protocol._debug("Received DH GEX Init"),k(this._protocol,"Group exchange not implemented for server","handshake",_.KEY_EXCHANGE_FAILED));if(t!==b.KEXDH_GEX_REPLY)return k(this._protocol,`Received packet ${t} instead of ${b.KEXDH_GEX_REPLY}`,"handshake",_.KEY_EXCHANGE_FAILED);this._protocol._debug&&this._protocol._debug("Received DH GEX Reply"),this._step=1,e[0]=b.KEXDH_REPLY,this.parse=c.prototype.parse,this.parse(e)}}}class m extends c{constructor(e,t,...n){super(...n),this.type="group",this.groupName=e,this.hashName=t}start(){if(!this._protocol._server){this._protocol._debug&&this._protocol._debug("Outbound: Sending KEXDH_INIT");const e=this.getPublicKey();let t=this._protocol._packetRW.write.allocStartKEX;const n=this._protocol._packetRW.write.alloc(5+e.length,!0);n[t]=b.KEXDH_INIT,B(n,e.length,++t),n.set(e,t+=4),this._protocol._cipher.encrypt(this._protocol._packetRW.write.finalize(n,!0))}}generateKeys(){this._dh||(this._dh=t(this.groupName),this._public=this._dh.generateKeys())}getDHParams(){if(this._dh)return{prime:o(this._dh.getPrime()),generator:o(this._dh.getGenerator())}}}return(e,...t)=>{if("object"!=typeof e||null===e)throw new Error("Invalid negotiated argument");const n=e.kex;if("string"==typeof n){switch(t=[e,...t],n){case"curve25519-sha256":case"curve25519-sha256@libssh.org":if(!p)break;return new d("sha256",...t);case"ecdh-sha2-nistp256":return new h("prime256v1","sha256",...t);case"ecdh-sha2-nistp384":return new h("secp384r1","sha384",...t);case"ecdh-sha2-nistp521":return new h("secp521r1","sha512",...t);case"diffie-hellman-group1-sha1":return new m("modp2","sha1",...t);case"diffie-hellman-group14-sha1":return new m("modp14","sha1",...t);case"diffie-hellman-group14-sha256":return new m("modp14","sha256",...t);case"diffie-hellman-group15-sha512":return new m("modp15","sha512",...t);case"diffie-hellman-group16-sha512":return new m("modp16","sha512",...t);case"diffie-hellman-group17-sha512":return new m("modp17","sha512",...t);case"diffie-hellman-group18-sha512":return new m("modp18","sha512",...t);case"diffie-hellman-group-exchange-sha1":return new f("sha1",...t);case"diffie-hellman-group-exchange-sha256":return new f("sha256",...t)}throw new Error(`Unsupported key exchange algorithm: ${n}`)}throw new Error(`Invalid key exchange type: ${n}`)}})(),F=(()=>{const e=["kex","serverHostKey",["cs","cipher"],["sc","cipher"],["cs","mac"],["sc","mac"],["cs","compress"],["sc","compress"],["cs","lang"],["sc","lang"]];return class{constructor(t){if("object"!=typeof t||null===t)throw new TypeError("Argument must be an object");const n={kex:void 0,serverHostKey:void 0,cs:{cipher:void 0,mac:void 0,compress:void 0,lang:void 0},sc:{cipher:void 0,mac:void 0,compress:void 0,lang:void 0},all:void 0};let i=0;for(const r of e){let e,s,o,a;if("string"==typeof r)e=n,s=t[r],o=a=r;else{const i=r[0];e=n[i],a=r[1],s=t[i][a],o=`${i}.${a}`}const c={array:void 0,buffer:void 0};if(Buffer.isBuffer(s))c.array=(""+s).split(","),c.buffer=s,i+=4+s.length;else{if("string"==typeof s&&(s=s.split(",")),!Array.isArray(s))throw new TypeError(`Invalid \`${o}\` type: ${typeof s}`);c.array=s,c.buffer=Buffer.from(s.join(",")),i+=4+c.buffer.length}e[a]=c}const r=Buffer.allocUnsafe(i);n.all=r;let s=0;for(const t of e){let e;e="string"==typeof t?n[t].buffer:n[t[0]][t[1]].buffer,s=B(r,e.length,s),r.set(e,s),s+=e.length}this.totalSize=i,this.lists=n}copyAllTo(e,t){const n=this.lists.all;if("number"!=typeof t)throw new TypeError("Invalid offset value: "+typeof t);if(e.length-t<n.length)throw new Error("Insufficient space to copy list");return e.set(n,t),n.length}}})(),j=(()=>{const e=Buffer.allocUnsafe(4);return(t,n)=>{B(e,n.length,0),t.update(e),t.update(n)}})();function $(e,t,n,r,s,o){let a;if(e){let c=i(t).update(n).update(r).update(o).update(s).digest();for(;c.length<e;){const e=i(t).update(n).update(r).update(c).digest(),s=Buffer.allocUnsafe(c.length+e.length);s.set(c,0),s.set(e,c.length),c=s}a=c.length===e?c:new C(c.buffer,c.byteOffset,e)}else a=U;return a}function Q(e,t){if(0===t.length)return void(this._debug&&this._debug("Inbound: Skipping empty packet payload"));if(this._skipNextInboundPacket)return void(this._skipNextInboundPacket=!1);const n=(t=this._packetRW.read.read(t))[0];if(!this._strictMode)switch(n){case b.IGNORE:case b.UNIMPLEMENTED:case b.DEBUG:return P||(P=xn()),P[n](this,t)}switch(n){case b.DISCONNECT:return P||(P=xn()),P[n](this,t);case b.KEXINIT:return e.firstPacket?(e.firstPacket=!1,M(this,t)):k(this,"Received extra KEXINIT during handshake","handshake",_.KEY_EXCHANGE_FAILED);default:if(n<20||n>49)return k(this,`Received unexpected packet type ${n}`,"handshake",_.KEY_EXCHANGE_FAILED)}return this._kex.parse(t)}function W(e){if(!e._sentNEWKEYS){e._protocol._debug&&e._protocol._debug("Outbound: Sending NEWKEYS");const t=e._protocol._packetRW.write.allocStartKEX,n=e._protocol._packetRW.write.alloc(1,!0);n[t]=b.NEWKEYS,e._protocol._cipher.encrypt(e._protocol._packetRW.write.finalize(n,!0)),e._sentNEWKEYS=!0,e._protocol._strictMode&&(e._protocol._cipher.outSeqno=0)}}return An={KexInit:F,kexinit:D,onKEXPayload:Q,DEFAULT_KEXINIT_CLIENT:new F({kex:d.concat(["ext-info-c","kex-strict-c-v00@openssh.com"]),serverHostKey:h,cs:{cipher:f,mac:m,compress:g,lang:[]},sc:{cipher:f,mac:m,compress:g,lang:[]}}),DEFAULT_KEXINIT_SERVER:new F({kex:d.concat(["kex-strict-s-v00@openssh.com"]),serverHostKey:h,cs:{cipher:f,mac:m,compress:g,lang:[]},sc:{cipher:f,mac:m,compress:g,lang:[]}}),HANDLERS:{[b.KEXINIT]:M}}}var In="1.17.0";const{inspect:kn}=f,{bindingAvailable:Cn,NullCipher:Rn,NullDecipher:Bn}=me(),{COMPAT_CHECKS:Tn,DISCONNECT_REASON:On,eddsaSupported:Nn,MESSAGE:Ln,SIGNALS:Pn,TERMINAL_MODE:Un}=ce(),{DEFAULT_KEXINIT_CLIENT:Dn,DEFAULT_KEXINIT_SERVER:Mn,KexInit:Hn,kexinit:Fn,onKEXPayload:jn}=Sn(),{parseKey:$n}=ft,Qn=xn(),{bufferCopy:Wn,bufferFill:qn,bufferSlice:Yn,convertSignature:Gn,sendPacket:Kn,writeUInt32BE:zn}=le(),{PacketReader:Xn,PacketWriter:Vn,ZlibPacketReader:Jn,ZlibPacketWriter:Zn}=an,ei=In,ti=new Map(Object.values(On).map(e=>[e,1])),ni=Buffer.from(`SSH-2.0-ssh2js${ei}`),ii=Buffer.from(`${ni}\r\n`),ri=Buffer.from([Ln.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]),si=Buffer.from([Un.TTY_OP_END]);function oi(){}const ai=/^SSH-(2\.0|1\.99)-([^ ]+)(?: (.*))?$/;function ci(e,t,n){let i,r;this._buffer?(i=Buffer.allocUnsafe(this._buffer.length+(n-t)),i.set(this._buffer,0),0===t?i.set(e,this._buffer.length):i.set(new Uint8Array(e.buffer,e.byteOffset+t,n-t),this._buffer.length),r=this._buffer.length,t=0):(i=e,r=0);const s=t;let o=t,a=t,c=!1,l=0,u=0;for(;t<i.length;++t){const e=i[t];if(13!==e){if(10===e){if(a>o&&a-o>4&&83===i[o]&&83===i[o+1]&&72===i[o+2]&&45===i[o+3]){const e=i.latin1Slice(s,a+1),c=o===s?e:e.slice(o-s),l=ai.exec(c);if(!l)throw new Error("Invalid identification string");const u={greeting:o===s?"":e.slice(0,o-s),identRaw:c,versions:{protocol:l[1],software:l[2]},comments:l[3]};return this._remoteIdentRaw=Buffer.from(c),this._debug&&this._debug(`Remote ident: ${kn(c)}`),this._compatFlags=pi(u),this._buffer=void 0,this._decipher=new Bn(0,jn.bind(this,{firstPacket:!0})),this._parse=li,this._onHeader(u),this._destruct?(Fn(this),t+1-r):n}if(this._server)throw new Error("Greetings from clients not permitted");if(++u>1024)throw new Error("Max greeting lines exceeded");c=!1,o=t+1,l=0}else{if(c)throw new Error("Invalid header: expected newline");if(++l>=8192)throw new Error("Header line too long")}a=t}else c=!0}return this._buffer||(this._buffer=Yn(i,s)),t-r}function li(e,t,n){return this._decipher.decrypt(e,t,n)}function ui(e){if(this._onPacket(),0===e.length)return void(this._debug&&this._debug("Inbound: Skipping empty packet payload"));const t=(e=this._packetRW.read.read(e))[0];t!==Ln.USERAUTH_SUCCESS||this._server||this._authenticated||(this._authenticated=!0,"zlib@openssh.com"===this._kex.negotiated.cs.compress&&(this._packetRW.write=new Zn(this)),"zlib@openssh.com"===this._kex.negotiated.sc.compress&&(this._packetRW.read=new Jn));const n=Qn[t];if(void 0!==n)return n(this,e);this._debug&&this._debug(`Inbound: Unsupported message type: ${t}`)}function pi(e){const t=e.versions.software;let n=0;for(const e of Tn)"string"==typeof e[0]?t===e[0]&&(n|=e[1]):e[0].test(t)&&(n|=e[1]);return n}var di=class{constructor(e){const t=e.onWrite;if("function"!=typeof t)throw new Error("Missing onWrite function");this._onWrite=e=>{t(e)};const n=e.onError;if("function"!=typeof n)throw new Error("Missing onError function");this._onError=e=>{n(e)};const i=e.debug;this._debug="function"==typeof i?e=>{i(e)}:void 0;const r=e.onHeader;this._onHeader="function"==typeof r?(...e)=>{r(...e)}:oi;const s=e.onPacket;this._onPacket="function"==typeof s?()=>{s()}:oi;let o,a=e.onHandshakeComplete;"function"!=typeof a&&(a=oi),this._onHandshakeComplete=(...e)=>{this._debug&&this._debug("Handshake completed"),o=void 0===o;const t=this._queue;if(t){this._queue=void 0,this._debug&&this._debug(`Draining outbound queue (${t.length}) ...`);for(let e=0;e<t.length;++e){const n=t[e];let i=this._packetRW.write.finalize(n);if(i===n){const e=this._cipher.allocPacket(n.length);e.set(n,5),i=e}Kn(this,i)}this._debug&&this._debug("... finished draining outbound queue")}o&&this._server&&this._kex.remoteExtInfoEnabled&&function(e){let t="ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss";Nn&&(t=`ssh-ed25519,${t}`);const n=Buffer.byteLength(t);let i=e._packetRW.write.allocStart;const r=e._packetRW.write.alloc(28+n);r[i]=Ln.EXT_INFO,zn(r,1,++i),zn(r,15,i+=4),r.utf8Write("server-sig-algs",i+=4,15),zn(r,n,i+=15),r.utf8Write(t,i+=4,n),e._debug&&e._debug("Outbound: Sending EXT_INFO"),Kn(e,e._packetRW.write.finalize(r))}(this),a(...e)},this._queue=void 0;const c=e.messageHandlers;let l;if(this._handlers="object"==typeof c&&null!==c?c:{},this._onPayload=ui.bind(this),this._server=!!e.server,this._banner=void 0,this._server){if("object"!=typeof e.hostKeys||null===e.hostKeys)throw new Error("Missing server host key(s)");this._hostKeys=e.hostKeys,"string"==typeof e.greeting&&e.greeting.length&&(l="\r\n"===e.greeting.slice(-2)?e.greeting:`${e.greeting}\r\n`),"string"==typeof e.banner&&e.banner.length&&(this._banner="\r\n"===e.banner.slice(-2)?e.banner:`${e.banner}\r\n`)}else this._hostKeys=void 0;let u,p=e.offer;if("object"!=typeof p||null===p?p=this._server?Mn:Dn:p.constructor!==Hn&&(this._server?p.kex=p.kex.concat(["kex-strict-s-v00@openssh.com"]):p.kex=p.kex.concat(["ext-info-c","kex-strict-c-v00@openssh.com"]),p=new Hn(p)),this._kex=void 0,this._strictMode=void 0,this._kexinit=void 0,this._offer=p,this._cipher=new Rn(0,this._onWrite),this._decipher=void 0,this._skipNextInboundPacket=!1,this._packetRW={read:new Xn,write:new Vn(this)},this._hostVerifier=this._server||"function"!=typeof e.hostVerifier?void 0:e.hostVerifier,this._parse=ci,this._buffer=void 0,this._authsQueue=[],this._authenticated=!1,this._remoteIdentRaw=void 0,"string"==typeof e.ident)this._identRaw=Buffer.from(`SSH-2.0-${e.ident}`),u=Buffer.allocUnsafe(this._identRaw.length+2),u.set(this._identRaw,0),u[u.length-2]=13,u[u.length-1]=10;else if(Buffer.isBuffer(e.ident)){const t=Buffer.allocUnsafe(8+e.ident.length);t.latin1Write("SSH-2.0-",0,8),t.set(e.ident,8),this._identRaw=t,u=Buffer.allocUnsafe(t.length+2),u.set(t,0),u[u.length-2]=13,u[u.length-1]=10}else this._identRaw=ni,u=ii;this._compatFlags=0,this._debug&&(Cn?this._debug("Custom crypto binding available"):this._debug("Custom crypto binding not available")),this._debug&&this._debug(`Local ident: ${kn(this._identRaw.toString())}`),this.start=()=>{this.start=void 0,l&&this._onWrite(l),this._onWrite(u)}}_destruct(e){this._packetRW.read.cleanup(),this._packetRW.write.cleanup(),this._cipher&&this._cipher.free(),this._decipher&&this._decipher.free(),"string"==typeof e&&0!==e.length||(e="fatal error"),this.parse=()=>{throw new Error(`Instance unusable after ${e}`)},this._onWrite=()=>{throw new Error(`Instance unusable after ${e}`)},this._destruct=void 0}cleanup(){this._destruct&&this._destruct()}parse(e,t,n){for(;t<n;)t=this._parse(e,t,n)}disconnect(e){let t=this._packetRW.write.allocStartKEX;const n=this._packetRW.write.alloc(13,!0),i=t+13;ti.has(e)||(e=On.PROTOCOL_ERROR),n[t]=Ln.DISCONNECT,zn(n,e,++t),n.fill(0,t+=4,i),this._debug&&this._debug(`Outbound: Sending DISCONNECT (${e})`),Kn(this,this._packetRW.write.finalize(n,!0),!0)}ping(){const e=this._packetRW.write.allocStart,t=this._packetRW.write.alloc(ri.length);t.set(ri,e),this._debug&&this._debug("Outbound: Sending ping (GLOBAL_REQUEST: keepalive@openssh.com)"),Kn(this,this._packetRW.write.finalize(t))}rekey(){void 0===this._kexinit?(this._debug&&this._debug("Outbound: Initiated explicit rekey"),this._queue=[],Fn(this)):this._debug&&this._debug("Outbound: Ignoring rekey during handshake")}requestSuccess(e){let t,n=this._packetRW.write.allocStart;Buffer.isBuffer(e)?(t=this._packetRW.write.alloc(1+e.length),t[n]=Ln.REQUEST_SUCCESS,t.set(e,++n)):(t=this._packetRW.write.alloc(1),t[n]=Ln.REQUEST_SUCCESS),this._debug&&this._debug("Outbound: Sending REQUEST_SUCCESS"),Kn(this,this._packetRW.write.finalize(t))}requestFailure(){const e=this._packetRW.write.allocStart,t=this._packetRW.write.alloc(1);t[e]=Ln.REQUEST_FAILURE,this._debug&&this._debug("Outbound: Sending REQUEST_FAILURE"),Kn(this,this._packetRW.write.finalize(t))}channelSuccess(e){let t=this._packetRW.write.allocStart;const n=this._packetRW.write.alloc(5);n[t]=Ln.CHANNEL_SUCCESS,zn(n,e,++t),this._debug&&this._debug(`Outbound: Sending CHANNEL_SUCCESS (r:${e})`),Kn(this,this._packetRW.write.finalize(n))}channelFailure(e){let t=this._packetRW.write.allocStart;const n=this._packetRW.write.alloc(5);n[t]=Ln.CHANNEL_FAILURE,zn(n,e,++t),this._debug&&this._debug(`Outbound: Sending CHANNEL_FAILURE (r:${e})`),Kn(this,this._packetRW.write.finalize(n))}channelEOF(e){let t=this._packetRW.write.allocStart;const n=this._packetRW.write.alloc(5);n[t]=Ln.CHANNEL_EOF,zn(n,e,++t),this._debug&&this._debug(`Outbound: Sending CHANNEL_EOF (r:${e})`),Kn(this,this._packetRW.write.finalize(n))}channelClose(e){let t=this._packetRW.write.allocStart;const n=this._packetRW.write.alloc(5);n[t]=Ln.CHANNEL_CLOSE,zn(n,e,++t),this._debug&&this._debug(`Outbound: Sending CHANNEL_CLOSE (r:${e})`),Kn(this,this._packetRW.write.finalize(n))}channelWindowAdjust(e,t){let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(9);i[n]=Ln.CHANNEL_WINDOW_ADJUST,zn(i,e,++n),zn(i,t,n+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_WINDOW_ADJUST (r:${e}, ${t})`),Kn(this,this._packetRW.write.finalize(i))}channelData(e,t){const n=Buffer.isBuffer(t),i=n?t.length:Buffer.byteLength(t);let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(9+i);s[r]=Ln.CHANNEL_DATA,zn(s,e,++r),zn(s,i,r+=4),n?s.set(t,r+=4):s.utf8Write(t,r+=4,i),this._debug&&this._debug(`Outbound: Sending CHANNEL_DATA (r:${e}, ${i})`),Kn(this,this._packetRW.write.finalize(s))}channelExtData(e,t,n){const i=Buffer.isBuffer(t),r=i?t.length:Buffer.byteLength(t);let s=this._packetRW.write.allocStart;const o=this._packetRW.write.alloc(13+r);o[s]=Ln.CHANNEL_EXTENDED_DATA,zn(o,e,++s),zn(o,n,s+=4),zn(o,r,s+=4),i?o.set(t,s+=4):o.utf8Write(t,s+=4,r),this._debug&&this._debug(`Outbound: Sending CHANNEL_EXTENDED_DATA (r:${e})`),Kn(this,this._packetRW.write.finalize(o))}channelOpenConfirm(e,t,n,i){let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(17);s[r]=Ln.CHANNEL_OPEN_CONFIRMATION,zn(s,e,++r),zn(s,t,r+=4),zn(s,n,r+=4),zn(s,i,r+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN_CONFIRMATION (r:${e}, l:${t})`),Kn(this,this._packetRW.write.finalize(s))}channelOpenFail(e,t,n){"string"!=typeof n&&(n="");const i=Buffer.byteLength(n);let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(13+i+4);s[r]=Ln.CHANNEL_OPEN_FAILURE,zn(s,e,++r),zn(s,t,r+=4),zn(s,i,r+=4),r+=4,i&&(s.utf8Write(n,r,i),r+=i),zn(s,0,r),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN_FAILURE (r:${e})`),Kn(this,this._packetRW.write.finalize(s))}service(e){if(this._server)throw new Error("Client-only method called in server mode");const t=Buffer.byteLength(e);let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(5+t);i[n]=Ln.SERVICE_REQUEST,zn(i,t,++n),i.utf8Write(e,n+=4,t),this._debug&&this._debug(`Outbound: Sending SERVICE_REQUEST (${e})`),Kn(this,this._packetRW.write.finalize(i))}authPassword(e,t,n){if(this._server)throw new Error("Client-only method called in server mode");const i=Buffer.byteLength(e),r=Buffer.byteLength(t),s=n?Buffer.byteLength(n):0;let o=this._packetRW.write.allocStart;const a=this._packetRW.write.alloc(5+i+4+14+4+8+1+4+r+(n?4+s:0));a[o]=Ln.USERAUTH_REQUEST,zn(a,i,++o),a.utf8Write(e,o+=4,i),zn(a,14,o+=i),a.utf8Write("ssh-connection",o+=4,14),zn(a,8,o+=14),a.utf8Write("password",o+=4,8),a[o+=8]=n?1:0,zn(a,r,++o),Buffer.isBuffer(t)?Wn(t,a,0,r,o+=4):a.utf8Write(t,o+=4,r),n?(zn(a,s,o+=r),Buffer.isBuffer(n)?Wn(n,a,0,s,o+=4):a.utf8Write(n,o+=4,s),this._debug&&this._debug("Outbound: Sending USERAUTH_REQUEST (changed password)")):this._debug&&this._debug("Outbound: Sending USERAUTH_REQUEST (password)"),this._authsQueue.push("password"),Kn(this,this._packetRW.write.finalize(a))}authPK(e,t,n,i){if(this._server)throw new Error("Client-only method called in server mode");if((t=$n(t))instanceof Error)throw new Error("Invalid key");const r=t.type;t=t.getPublicSSH(),"function"==typeof n&&(i=n,n=void 0),n||(n=r);const s=Buffer.byteLength(e),o=Buffer.byteLength(n),a=t.length,c=this._kex.sessionID,l=c.length,u=(i?4+l:0)+1+4+s+4+14+4+9+1+4+o+4+a;let p,d;if(i?(p=Buffer.allocUnsafe(u),d=0,zn(p,l,d),p.set(c,d+=4),d+=l):(p=this._packetRW.write.alloc(u),d=this._packetRW.write.allocStart),p[d]=Ln.USERAUTH_REQUEST,zn(p,s,++d),p.utf8Write(e,d+=4,s),zn(p,14,d+=s),p.utf8Write("ssh-connection",d+=4,14),zn(p,9,d+=14),p.utf8Write("publickey",d+=4,9),p[d+=9]=i?1:0,zn(p,o,++d),p.utf8Write(n,d+=4,o),zn(p,a,d+=o),p.set(t,d+=4),!i)return this._authsQueue.push("publickey"),this._debug&&this._debug("Outbound: Sending USERAUTH_REQUEST (publickey -- check)"),void Kn(this,this._packetRW.write.finalize(p));i(p,i=>{if(!1===(i=Gn(i,r)))throw new Error("Error while converting handshake signature");const c=i.length;d=this._packetRW.write.allocStart,p=this._packetRW.write.alloc(5+s+4+14+4+9+1+4+o+4+a+4+4+o+4+c),p[d]=Ln.USERAUTH_REQUEST,zn(p,s,++d),p.utf8Write(e,d+=4,s),zn(p,14,d+=s),p.utf8Write("ssh-connection",d+=4,14),zn(p,9,d+=14),p.utf8Write("publickey",d+=4,9),p[d+=9]=1,zn(p,o,++d),p.utf8Write(n,d+=4,o),zn(p,a,d+=o),p.set(t,d+=4),zn(p,4+o+4+c,d+=a),zn(p,o,d+=4),p.utf8Write(n,d+=4,o),zn(p,c,d+=o),p.set(i,d+=4),this._authsQueue.push("publickey"),this._debug&&this._debug("Outbound: Sending USERAUTH_REQUEST (publickey)"),Kn(this,this._packetRW.write.finalize(p))})}authHostbased(e,t,n,i,r,s){if(this._server)throw new Error("Client-only method called in server mode");if((t=$n(t))instanceof Error)throw new Error("Invalid key");const o=t.type;t=t.getPublicSSH(),"function"==typeof r&&(s=r,r=void 0),r||(r=o);const a=Buffer.byteLength(e),c=Buffer.byteLength(r),l=t.length,u=this._kex.sessionID,p=u.length,d=Buffer.byteLength(n),h=Buffer.byteLength(i),f=Buffer.allocUnsafe(4+p+1+4+a+4+14+4+9+4+c+4+l+4+d+4+h);let m=0;zn(f,p,m),f.set(u,m+=4),f[m+=p]=Ln.USERAUTH_REQUEST,zn(f,a,++m),f.utf8Write(e,m+=4,a),zn(f,14,m+=a),f.utf8Write("ssh-connection",m+=4,14),zn(f,9,m+=14),f.utf8Write("hostbased",m+=4,9),zn(f,c,m+=9),f.utf8Write(r,m+=4,c),zn(f,l,m+=c),f.set(t,m+=4),zn(f,d,m+=l),f.utf8Write(n,m+=4,d),zn(f,h,m+=d),f.utf8Write(i,m+=4,h),s(f,e=>{if(!(e=Gn(e,o)))throw new Error("Error while converting handshake signature");const t=e.length,n=f.length-p-4;m=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(n+4+4+c+4+t);Wn(f,i,4+p,f.length,m),zn(i,4+c+4+t,m+=n),zn(i,c,m+=4),i.utf8Write(r,m+=4,c),zn(i,t,m+=c),i.set(e,m+=4),this._authsQueue.push("hostbased"),this._debug&&this._debug("Outbound: Sending USERAUTH_REQUEST (hostbased)"),Kn(this,this._packetRW.write.finalize(i))})}authKeyboard(e){if(this._server)throw new Error("Client-only method called in server mode");const t=Buffer.byteLength(e);let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(5+t+4+14+4+20+4+4);i[n]=Ln.USERAUTH_REQUEST,zn(i,t,++n),i.utf8Write(e,n+=4,t),zn(i,14,n+=t),i.utf8Write("ssh-connection",n+=4,14),zn(i,20,n+=14),i.utf8Write("keyboard-interactive",n+=4,20),zn(i,0,n+=20),zn(i,0,n+=4),this._authsQueue.push("keyboard-interactive"),this._debug&&this._debug("Outbound: Sending USERAUTH_REQUEST (keyboard-interactive)"),Kn(this,this._packetRW.write.finalize(i))}authNone(e){if(this._server)throw new Error("Client-only method called in server mode");const t=Buffer.byteLength(e);let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(5+t+4+14+4+4);i[n]=Ln.USERAUTH_REQUEST,zn(i,t,++n),i.utf8Write(e,n+=4,t),zn(i,14,n+=t),i.utf8Write("ssh-connection",n+=4,14),zn(i,4,n+=14),i.utf8Write("none",n+=4,4),this._authsQueue.push("none"),this._debug&&this._debug("Outbound: Sending USERAUTH_REQUEST (none)"),Kn(this,this._packetRW.write.finalize(i))}authInfoRes(e){if(this._server)throw new Error("Client-only method called in server mode");let t,n=0;if(e){t=new Array(e.length);for(let i=0;i<e.length;++i){const r=Buffer.byteLength(e[i]);t[i]=r,n+=4+r}}let i=this._packetRW.write.allocStart;const r=this._packetRW.write.alloc(5+n);if(r[i]=Ln.USERAUTH_INFO_RESPONSE,e){zn(r,e.length,++i),i+=4;for(let n=0;n<e.length;++n){const s=t[n];zn(r,s,i),i+=4,s&&(r.utf8Write(e[n],i,s),i+=s)}}else zn(r,0,++i);this._debug&&this._debug("Outbound: Sending USERAUTH_INFO_RESPONSE"),Kn(this,this._packetRW.write.finalize(r))}tcpipForward(e,t,n){if(this._server)throw new Error("Client-only method called in server mode");const i=Buffer.byteLength(e);let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(23+i+4);s[r]=Ln.GLOBAL_REQUEST,zn(s,13,++r),s.utf8Write("tcpip-forward",r+=4,13),s[r+=13]=void 0===n||!0===n?1:0,zn(s,i,++r),s.utf8Write(e,r+=4,i),zn(s,t,r+=i),this._debug&&this._debug("Outbound: Sending GLOBAL_REQUEST (tcpip-forward)"),Kn(this,this._packetRW.write.finalize(s))}cancelTcpipForward(e,t,n){if(this._server)throw new Error("Client-only method called in server mode");const i=Buffer.byteLength(e);let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(30+i+4);s[r]=Ln.GLOBAL_REQUEST,zn(s,20,++r),s.utf8Write("cancel-tcpip-forward",r+=4,20),s[r+=20]=void 0===n||!0===n?1:0,zn(s,i,++r),s.utf8Write(e,r+=4,i),zn(s,t,r+=i),this._debug&&this._debug("Outbound: Sending GLOBAL_REQUEST (cancel-tcpip-forward)"),Kn(this,this._packetRW.write.finalize(s))}openssh_streamLocalForward(e,t){if(this._server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=this._packetRW.write.allocStart;const r=this._packetRW.write.alloc(41+n);r[i]=Ln.GLOBAL_REQUEST,zn(r,31,++i),r.utf8Write("streamlocal-forward@openssh.com",i+=4,31),r[i+=31]=void 0===t||!0===t?1:0,zn(r,n,++i),r.utf8Write(e,i+=4,n),this._debug&&this._debug("Outbound: Sending GLOBAL_REQUEST (streamlocal-forward@openssh.com)"),Kn(this,this._packetRW.write.finalize(r))}openssh_cancelStreamLocalForward(e,t){if(this._server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=this._packetRW.write.allocStart;const r=this._packetRW.write.alloc(48+n);r[i]=Ln.GLOBAL_REQUEST,zn(r,38,++i),r.utf8Write("cancel-streamlocal-forward@openssh.com",i+=4,38),r[i+=38]=void 0===t||!0===t?1:0,zn(r,n,++i),r.utf8Write(e,i+=4,n),this._debug&&this._debug("Outbound: Sending GLOBAL_REQUEST (cancel-streamlocal-forward@openssh.com)"),Kn(this,this._packetRW.write.finalize(r))}directTcpip(e,t,n,i){if(this._server)throw new Error("Client-only method called in server mode");const r=Buffer.byteLength(i.srcIP),s=Buffer.byteLength(i.dstIP);let o=this._packetRW.write.allocStart;const a=this._packetRW.write.alloc(33+r+4+4+s+4);a[o]=Ln.CHANNEL_OPEN,zn(a,12,++o),a.utf8Write("direct-tcpip",o+=4,12),zn(a,e,o+=12),zn(a,t,o+=4),zn(a,n,o+=4),zn(a,s,o+=4),a.utf8Write(i.dstIP,o+=4,s),zn(a,i.dstPort,o+=s),zn(a,r,o+=4),a.utf8Write(i.srcIP,o+=4,r),zn(a,i.srcPort,o+=r),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, direct-tcpip)`),Kn(this,this._packetRW.write.finalize(a))}openssh_directStreamLocal(e,t,n,i){if(this._server)throw new Error("Client-only method called in server mode");const r=Buffer.byteLength(i.socketPath);let s=this._packetRW.write.allocStart;const o=this._packetRW.write.alloc(51+r+4+4);o[s]=Ln.CHANNEL_OPEN,zn(o,30,++s),o.utf8Write("direct-streamlocal@openssh.com",s+=4,30),zn(o,e,s+=30),zn(o,t,s+=4),zn(o,n,s+=4),zn(o,r,s+=4),o.utf8Write(i.socketPath,s+=4,r),qn(o,0,s+=r,s+8),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, direct-streamlocal@openssh.com)`),Kn(this,this._packetRW.write.finalize(o))}openssh_noMoreSessions(e){if(this._server)throw new Error("Client-only method called in server mode");let t=this._packetRW.write.allocStart;const n=this._packetRW.write.alloc(34);n[t]=Ln.GLOBAL_REQUEST,zn(n,28,++t),n.utf8Write("no-more-sessions@openssh.com",t+=4,28),n[t+=28]=void 0===e||!0===e?1:0,this._debug&&this._debug("Outbound: Sending GLOBAL_REQUEST (no-more-sessions@openssh.com)"),Kn(this,this._packetRW.write.finalize(n))}session(e,t,n){if(this._server)throw new Error("Client-only method called in server mode");let i=this._packetRW.write.allocStart;const r=this._packetRW.write.alloc(24);r[i]=Ln.CHANNEL_OPEN,zn(r,7,++i),r.utf8Write("session",i+=4,7),zn(r,e,i+=7),zn(r,t,i+=4),zn(r,n,i+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, session)`),Kn(this,this._packetRW.write.finalize(r))}windowChange(e,t,n,i,r){if(this._server)throw new Error("Client-only method called in server mode");let s=this._packetRW.write.allocStart;const o=this._packetRW.write.alloc(39);o[s]=Ln.CHANNEL_REQUEST,zn(o,e,++s),zn(o,13,s+=4),o.utf8Write("window-change",s+=4,13),o[s+=13]=0,zn(o,n,++s),zn(o,t,s+=4),zn(o,r,s+=4),zn(o,i,s+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, window-change)`),Kn(this,this._packetRW.write.finalize(o))}pty(e,t,n,i,r,s,o,a){if(this._server)throw new Error("Client-only method called in server mode");s&&s.length||(s="vt100"),!o||Buffer.isBuffer(o)||Array.isArray(o)||"object"!=typeof o||null===o||(o=function(e){const t=Object.keys(e),n=Buffer.allocUnsafe(5*t.length+1);let i=0;for(let r=0;r<t.length;++r){const s=t[r];if("TTY_OP_END"===s)continue;const o=Un[s];if(void 0===o)continue;const a=e[s];"number"==typeof a&&isFinite(a)&&(n[i++]=o,n[i++]=a>>>24,n[i++]=a>>>16,n[i++]=a>>>8,n[i++]=a)}return n[i++]=Un.TTY_OP_END,i<n.length?Yn(n,0,i):n}(o)),o&&o.length||(o=si);const c=s.length,l=o.length;let u=this._packetRW.write.allocStart;const p=this._packetRW.write.alloc(21+c+4+4+4+4+4+l);if(p[u]=Ln.CHANNEL_REQUEST,zn(p,e,++u),zn(p,7,u+=4),p.utf8Write("pty-req",u+=4,7),p[u+=7]=void 0===a||!0===a?1:0,zn(p,c,++u),p.utf8Write(s,u+=4,c),zn(p,n,u+=c),zn(p,t,u+=4),zn(p,r,u+=4),zn(p,i,u+=4),zn(p,l,u+=4),u+=4,Array.isArray(o))for(let e=0;e<l;++e)p[u++]=o[e];else Buffer.isBuffer(o)&&p.set(o,u);this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, pty-req)`),Kn(this,this._packetRW.write.finalize(p))}shell(e,t){if(this._server)throw new Error("Client-only method called in server mode");let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(15);i[n]=Ln.CHANNEL_REQUEST,zn(i,e,++n),zn(i,5,n+=4),i.utf8Write("shell",n+=4,5),i[n+=5]=void 0===t||!0===t?1:0,this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, shell)`),Kn(this,this._packetRW.write.finalize(i))}exec(e,t,n){if(this._server)throw new Error("Client-only method called in server mode");const i=Buffer.isBuffer(t),r=i?t.length:Buffer.byteLength(t);let s=this._packetRW.write.allocStart;const o=this._packetRW.write.alloc(18+r);o[s]=Ln.CHANNEL_REQUEST,zn(o,e,++s),zn(o,4,s+=4),o.utf8Write("exec",s+=4,4),o[s+=4]=void 0===n||!0===n?1:0,zn(o,r,++s),i?o.set(t,s+=4):o.utf8Write(t,s+=4,r),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, exec: ${t})`),Kn(this,this._packetRW.write.finalize(o))}signal(e,t){if(this._server)throw new Error("Client-only method called in server mode");const n=t;if("SIG"===(t=t.toUpperCase()).slice(0,3)&&(t=t.slice(3)),1!==Pn[t])throw new Error(`Invalid signal: ${n}`);const i=t.length;let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(20+i);s[r]=Ln.CHANNEL_REQUEST,zn(s,e,++r),zn(s,6,r+=4),s.utf8Write("signal",r+=4,6),s[r+=6]=0,zn(s,i,++r),s.utf8Write(t,r+=4,i),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, signal: ${t})`),Kn(this,this._packetRW.write.finalize(s))}env(e,t,n,i){if(this._server)throw new Error("Client-only method called in server mode");const r=Buffer.byteLength(t),s=Buffer.isBuffer(n),o=s?n.length:Buffer.byteLength(n);let a=this._packetRW.write.allocStart;const c=this._packetRW.write.alloc(17+r+4+o);c[a]=Ln.CHANNEL_REQUEST,zn(c,e,++a),zn(c,3,a+=4),c.utf8Write("env",a+=4,3),c[a+=3]=void 0===i||!0===i?1:0,zn(c,r,++a),c.utf8Write(t,a+=4,r),zn(c,o,a+=r),s?c.set(n,a+=4):c.utf8Write(n,a+=4,o),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, env: ${t}=${n})`),Kn(this,this._packetRW.write.finalize(c))}x11Forward(e,t,n){if(this._server)throw new Error("Client-only method called in server mode");const i=t.protocol,r=t.cookie,s=Buffer.isBuffer(i),o=s?i.length:Buffer.byteLength(i),a=Buffer.isBuffer(r),c=a?r.length:Buffer.byteLength(r);let l=this._packetRW.write.allocStart;const u=this._packetRW.write.alloc(22+o+4+c+4);u[l]=Ln.CHANNEL_REQUEST,zn(u,e,++l),zn(u,7,l+=4),u.utf8Write("x11-req",l+=4,7),u[l+=7]=void 0===n||!0===n?1:0,u[++l]=t.single?1:0,zn(u,o,++l),s?u.set(i,l+=4):u.utf8Write(i,l+=4,o),zn(u,c,l+=o),a?u.set(r,l+=4):u.latin1Write(r,l+=4,c),zn(u,t.screen||0,l+=c),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, x11-req)`),Kn(this,this._packetRW.write.finalize(u))}subsystem(e,t,n){if(this._server)throw new Error("Client-only method called in server mode");const i=Buffer.byteLength(t);let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(23+i);s[r]=Ln.CHANNEL_REQUEST,zn(s,e,++r),zn(s,9,r+=4),s.utf8Write("subsystem",r+=4,9),s[r+=9]=void 0===n||!0===n?1:0,zn(s,i,++r),s.utf8Write(t,r+=4,i),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, subsystem: ${t})`),Kn(this,this._packetRW.write.finalize(s))}openssh_agentForward(e,t){if(this._server)throw new Error("Client-only method called in server mode");let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(36);i[n]=Ln.CHANNEL_REQUEST,zn(i,e,++n),zn(i,26,n+=4),i.utf8Write("auth-agent-req@openssh.com",n+=4,26),i[n+=26]=void 0===t||!0===t?1:0,this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, auth-agent-req@openssh.com)`),Kn(this,this._packetRW.write.finalize(i))}openssh_hostKeysProve(e){if(this._server)throw new Error("Client-only method called in server mode");let t=0;const n=[];for(const i of e){const e=i.getPublicSSH();t+=4+e.length,n.push(e)}let i=this._packetRW.write.allocStart;const r=this._packetRW.write.alloc(35+t);r[i]=Ln.GLOBAL_REQUEST,zn(r,29,++i),r.utf8Write("hostkeys-prove-00@openssh.com",i+=4,29),r[i+=29]=1,++i;for(const e of n)zn(r,e.length,i),Wn(e,r,0,e.length,i+=4),i+=e.length;this._debug&&this._debug("Outbound: Sending GLOBAL_REQUEST (hostkeys-prove-00@openssh.com)"),Kn(this,this._packetRW.write.finalize(r))}serviceAccept(e){if(!this._server)throw new Error("Server-only method called in client mode");const t=Buffer.byteLength(e);let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(5+t);if(i[n]=Ln.SERVICE_ACCEPT,zn(i,t,++n),i.utf8Write(e,n+=4,t),this._debug&&this._debug(`Outbound: Sending SERVICE_ACCEPT (${e})`),Kn(this,this._packetRW.write.finalize(i)),this._server&&this._banner&&"ssh-userauth"===e){const e=this._banner;this._banner=void 0;const t=Buffer.byteLength(e);n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(5+t+4);i[n]=Ln.USERAUTH_BANNER,zn(i,t,++n),i.utf8Write(e,n+=4,t),zn(i,0,n+=t),this._debug&&this._debug("Outbound: Sending USERAUTH_BANNER"),Kn(this,this._packetRW.write.finalize(i))}}forwardedTcpip(e,t,n,i){if(!this._server)throw new Error("Server-only method called in client mode");const r=Buffer.byteLength(i.boundAddr),s=Buffer.byteLength(i.remoteAddr);let o=this._packetRW.write.allocStart;const a=this._packetRW.write.alloc(36+r+4+4+s+4);a[o]=Ln.CHANNEL_OPEN,zn(a,15,++o),a.utf8Write("forwarded-tcpip",o+=4,15),zn(a,e,o+=15),zn(a,t,o+=4),zn(a,n,o+=4),zn(a,r,o+=4),a.utf8Write(i.boundAddr,o+=4,r),zn(a,i.boundPort,o+=r),zn(a,s,o+=4),a.utf8Write(i.remoteAddr,o+=4,s),zn(a,i.remotePort,o+=s),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, forwarded-tcpip)`),Kn(this,this._packetRW.write.finalize(a))}x11(e,t,n,i){if(!this._server)throw new Error("Server-only method called in client mode");const r=Buffer.byteLength(i.originAddr);let s=this._packetRW.write.allocStart;const o=this._packetRW.write.alloc(24+r+4);o[s]=Ln.CHANNEL_OPEN,zn(o,3,++s),o.utf8Write("x11",s+=4,3),zn(o,e,s+=3),zn(o,t,s+=4),zn(o,n,s+=4),zn(o,r,s+=4),o.utf8Write(i.originAddr,s+=4,r),zn(o,i.originPort,s+=r),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, x11)`),Kn(this,this._packetRW.write.finalize(o))}openssh_authAgent(e,t,n){if(!this._server)throw new Error("Server-only method called in client mode");let i=this._packetRW.write.allocStart;const r=this._packetRW.write.alloc(39);r[i]=Ln.CHANNEL_OPEN,zn(r,22,++i),r.utf8Write("auth-agent@openssh.com",i+=4,22),zn(r,e,i+=22),zn(r,t,i+=4),zn(r,n,i+=4),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, auth-agent@openssh.com)`),Kn(this,this._packetRW.write.finalize(r))}openssh_forwardedStreamLocal(e,t,n,i){if(!this._server)throw new Error("Server-only method called in client mode");const r=Buffer.byteLength(i.socketPath);let s=this._packetRW.write.allocStart;const o=this._packetRW.write.alloc(54+r+4);o[s]=Ln.CHANNEL_OPEN,zn(o,33,++s),o.utf8Write("forwarded-streamlocal@openssh.com",s+=4,33),zn(o,e,s+=33),zn(o,t,s+=4),zn(o,n,s+=4),zn(o,r,s+=4),o.utf8Write(i.socketPath,s+=4,r),zn(o,0,s+=r),this._debug&&this._debug(`Outbound: Sending CHANNEL_OPEN (r:${e}, forwarded-streamlocal@openssh.com)`),Kn(this,this._packetRW.write.finalize(o))}exitStatus(e,t){if(!this._server)throw new Error("Server-only method called in client mode");let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(25);i[n]=Ln.CHANNEL_REQUEST,zn(i,e,++n),zn(i,11,n+=4),i.utf8Write("exit-status",n+=4,11),i[n+=11]=0,zn(i,t,++n),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, exit-status: ${t})`),Kn(this,this._packetRW.write.finalize(i))}exitSignal(e,t,n,i){if(!this._server)throw new Error("Server-only method called in client mode");const r=t;if("string"!=typeof r||!r)throw new Error(`Invalid signal: ${r}`);let s=t.toUpperCase();if("SIG"===s.slice(0,3)&&(s=s.slice(3)),1!==Pn[s])throw new Error(`Invalid signal: ${r}`);const o=Buffer.byteLength(s),a=i?Buffer.byteLength(i):0;let c=this._packetRW.write.allocStart;const l=this._packetRW.write.alloc(25+o+1+4+a+4);l[c]=Ln.CHANNEL_REQUEST,zn(l,e,++c),zn(l,11,c+=4),l.utf8Write("exit-signal",c+=4,11),l[c+=11]=0,zn(l,o,++c),l.utf8Write(s,c+=4,o),l[c+=o]=n?1:0,zn(l,a,++c),c+=4,a&&(l.utf8Write(i,c,a),c+=a),zn(l,0,c),this._debug&&this._debug(`Outbound: Sending CHANNEL_REQUEST (r:${e}, exit-signal: ${t})`),Kn(this,this._packetRW.write.finalize(l))}authFailure(e,t){if(!this._server)throw new Error("Server-only method called in client mode");if(0===this._authsQueue.length)throw new Error("No auth in progress");let n;if("boolean"==typeof e&&(t=e,e=void 0),e){n=[];for(let t=0;t<e.length;++t)"none"!==e[t].toLowerCase()&&n.push(e[t]);n=n.join(",")}else n="";const i=n.length;let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(5+i+1);s[r]=Ln.USERAUTH_FAILURE,zn(s,i,++r),s.utf8Write(n,r+=4,i),s[r+=i]=!0===t?1:0,this._authsQueue.shift(),this._debug&&this._debug("Outbound: Sending USERAUTH_FAILURE"),Kn(this,this._packetRW.write.finalize(s))}authSuccess(){if(!this._server)throw new Error("Server-only method called in client mode");if(0===this._authsQueue.length)throw new Error("No auth in progress");const e=this._packetRW.write.allocStart,t=this._packetRW.write.alloc(1);t[e]=Ln.USERAUTH_SUCCESS,this._authsQueue.shift(),this._authenticated=!0,this._debug&&this._debug("Outbound: Sending USERAUTH_SUCCESS"),Kn(this,this._packetRW.write.finalize(t)),"zlib@openssh.com"===this._kex.negotiated.cs.compress&&(this._packetRW.read=new Jn),"zlib@openssh.com"===this._kex.negotiated.sc.compress&&(this._packetRW.write=new Zn(this))}authPKOK(e,t){if(!this._server)throw new Error("Server-only method called in client mode");if(0===this._authsQueue.length||"publickey"!==this._authsQueue[0])throw new Error('"publickey" auth not in progress');const n=Buffer.byteLength(e),i=t.length;let r=this._packetRW.write.allocStart;const s=this._packetRW.write.alloc(5+n+4+i);s[r]=Ln.USERAUTH_PK_OK,zn(s,n,++r),s.utf8Write(e,r+=4,n),zn(s,i,r+=n),s.set(t,r+=4),this._authsQueue.shift(),this._debug&&this._debug("Outbound: Sending USERAUTH_PK_OK"),Kn(this,this._packetRW.write.finalize(s))}authPasswdChg(e){if(!this._server)throw new Error("Server-only method called in client mode");const t=Buffer.byteLength(e);let n=this._packetRW.write.allocStart;const i=this._packetRW.write.alloc(5+t+4);i[n]=Ln.USERAUTH_PASSWD_CHANGEREQ,zn(i,t,++n),i.utf8Write(e,n+=4,t),zn(i,0,n+=t),this._debug&&this._debug("Outbound: Sending USERAUTH_PASSWD_CHANGEREQ"),Kn(this,this._packetRW.write.finalize(i))}authInfoReq(e,t,n){if(!this._server)throw new Error("Server-only method called in client mode");let i=0;const r=e?Buffer.byteLength(e):0,s=t?Buffer.byteLength(t):0;for(let e=0;e<n.length;++e)i+=4+Buffer.byteLength(n[e].prompt)+1;let o=this._packetRW.write.allocStart;const a=this._packetRW.write.alloc(5+r+4+s+4+4+i);a[o]=Ln.USERAUTH_INFO_REQUEST,zn(a,r,++o),o+=4,e&&(a.utf8Write(e,o,r),o+=r),zn(a,s,o),o+=4,t&&(a.utf8Write(t,o,s),o+=s),zn(a,0,o),zn(a,n.length,o+=4),o+=4;for(let e=0;e<n.length;++e){const t=n[e],i=Buffer.byteLength(t.prompt);zn(a,i,o),o+=4,i&&(a.utf8Write(t.prompt,o,i),o+=i),a[o++]=t.echo?1:0}this._debug&&this._debug("Outbound: Sending USERAUTH_INFO_REQUEST"),Kn(this,this._packetRW.write.finalize(a))}},hi={};const fi=a,{inspect:mi}=f;function gi(e){let t="",n=e.length;const i="-"===e[0]?1:0;for(;n>=i+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function _i(e,t){if(fi("string"==typeof t,"`thing` has to be of type string"),Array.isArray(e)){const n=e.length;return fi(n>0,"At least one expected value needs to be specified"),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)}`}hi.ERR_INTERNAL_ASSERTION=class e extends Error{constructor(t){super(),Error.captureStackTrace(this,e);const n="This is caused by either a bug in ssh2 or incorrect usage of ssh2 internals.\nPlease open an issue with this stack trace at https://github.com/mscdex/ssh2/issues\n";this.message=void 0===t?n:`${t}\n${n}`}};const bi=2**32,yi=(()=>{try{return new Function("return 2n ** 32n")()}catch{}})();hi.ERR_OUT_OF_RANGE=class e extends RangeError{constructor(t,n,i,r){super(),Error.captureStackTrace(this,e),fi(n,'Missing "range" argument');let s,o=r?t:`The value of "${t}" is out of range.`;Number.isInteger(i)&&Math.abs(i)>bi?s=gi(String(i)):"bigint"==typeof i?(s=String(i),(i>yi||i<-yi)&&(s=gi(s)),s+="n"):s=mi(i),o+=` It must be ${n}. Received ${s}`,this.message=o}};let vi=class e extends TypeError{constructor(t,n,i){let r,s;if(super(),Error.captureStackTrace(this,e),fi("string"==typeof t,"'name' must be a string"),"string"==typeof n&&n.startsWith("not ")?(r="must not be",n=n.replace(/^not /,"")):r="must be",t.endsWith(" argument"))s=`The ${t} ${r} ${_i(n,"type")}`;else{const e=t.includes(".")?"property":"argument";s=`The "${t}" ${e} ${r} ${_i(n,"type")}`}s+=". Received type "+typeof i,this.message=s}};hi.ERR_INVALID_ARG_TYPE=vi,hi.validateNumber=function(e,t){if("number"!=typeof e)throw new vi(t,"number",e)};const Ai=h,Ei=r,{constants:wi}=Ei,{Readable:xi,Writable:Si}=n,{inherits:Ii,types:{isDate:ki}}=f,Ci=Buffer[Symbol.species],{bufferCopy:Ri,bufferSlice:Bi,makeBufferParser:Ti,writeUInt32BE:Oi}=le(),Ni=1,Li=2,Pi=4,Ui=8,Di=2147483648,Mi=Buffer.alloc(28),Hi={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},Fi=new Map(Object.values(Hi).map(e=>[e,1])),ji={[Hi.OK]:"No error",[Hi.EOF]:"End of file",[Hi.NO_SUCH_FILE]:"No such file or directory",[Hi.PERMISSION_DENIED]:"Permission denied",[Hi.FAILURE]:"Failure",[Hi.BAD_MESSAGE]:"Bad message",[Hi.NO_CONNECTION]:"No connection",[Hi.CONNECTION_LOST]:"Connection lost",[Hi.OP_UNSUPPORTED]:"Operation unsupported"},$i=1,Qi=3,Wi=4,qi=5,Yi=6,Gi=7,Ki=8,zi=9,Xi=10,Vi=11,Ji=12,Zi=13,er=14,tr=15,nr=16,ir=17,rr=18,sr=19,or=20,ar=200,cr=2,lr=101,ur=102,pr=103,dr=104,hr=105,fr=201,mr={READ:1,WRITE:2,APPEND:4,CREAT:8,TRUNC:16,EXCL:32},gr=2**32-1,_r=Buffer.from([0,0,0,5,$i,0,0,0,3]),br=Buffer.from([0,0,0,5,cr,0,0,0,3]),yr=/^SSH-2.0-(?:OpenSSH|dropbear)/,vr=262144,Ar=Ti(),Er={readable:!1,writable:!1,push:e=>{},once:()=>{},on:()=>{},emit:()=>{},end:()=>{}};function wr(){}function xr(e,t,n,i,r,s,o,a){const c=e._maxReadLen,l=Math.max(r-c,0);l&&(r=c);const u=t.length;let p=9,d=s;const h=Buffer.allocUnsafe(13+u+8+4);Oi(h,h.length-4,0),h[4]=qi;const f=e._writeReqid=e._writeReqid+1&gr;Oi(h,f,5),Oi(h,u,p),h.set(t,p+=4),p+=u;for(let e=7;e>=0;--e)h[p+e]=255&d,d/=256;Oi(h,r,p+=8),"function"!=typeof o&&(o=wr);const m=a||{nb:0,position:s,off:i,origOff:i,len:void 0,overflow:void 0,cb:(i,r,s)=>{const a=m.len,c=m.overflow;if(i){if(o._wantEOFError||i.code!==Hi.EOF)return o(i)}else{if(s>a)return o(new Error("Received more data than requested"));if(s===a&&c)return m.nb+=s,m.position+=s,m.off+=s,void xr(e,t,n,m.off,c,m.position,o,m)}s=s||0,r=0===m.origOff&&n.length===m.nb?n:Bi(n,m.origOff,m.origOff+m.nb+s),o(void 0,m.nb+s,r,m.position)},buffer:void 0};m.len=r,m.overflow=l,m.buffer=Bi(n,i,i+r),e._requests[f]=m;const g=Pr(e,h);e._debug&&e._debug(`SFTP: Outbound: ${g?"Buffered":"Sending"} READ`)}function Sr(e,t,n,i,r,s){let o,a,c,l,u=64,p=32768;"function"==typeof r?s=r:"object"==typeof r&&null!==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),"number"==typeof r.fileSize&&r.fileSize>0&&!isNaN(r.fileSize)&&(c=r.fileSize),"function"==typeof r.step&&(o=r.step),"string"!=typeof r.mode&&"number"!=typeof r.mode||(a=Br(r.mode)));let d,h,f,m=0,g=0,_=!1,b=p*u;function y(n){if(_)return;_=!0;let i,r=0;d||h?(i=()=>{0===--r&&s(n)},!d||e!==Ei&&"open"!==e.outgoing.state||++r,!h||t!==Ei&&"open"!==t.outgoing.state||++r,!d||e!==Ei&&"open"!==e.outgoing.state||e.close(d,i),!h||t!==Ei&&"open"!==t.outgoing.state||t.close(h,i)):s(n)}e.open(n,"r",(r,_)=>{if(r)return y(r);function v(r,c){if(r)return e!==Ei?void e.stat(n,(e,t)=>{if(e)return y(r);v(null,t)}):y(r);l=c.size,t.open(i,"w",(n,r)=>{if(n)return y(n);if(h=r,l<=0)return y();for(;b>l;){if(1===u){b=l;break}b-=p,--u}if(f=function(e){try{return Buffer.allocUnsafe(e)}catch(e){return e}}(b),f instanceof Error)return y(f);function c(n,i,r,a,c,u){if(n)return y(n);c=c||0,t.write(h,f,c,i,a,function(n){if(n)return y(n);if(g+=i,o&&o(g,i,l),i<u)return _(c,a+i,u-i);if(g===l)return void t.close(h,t=>{if(h=void 0,t)return y(t);e.close(d,e=>{if(d=void 0,e)return y(e);s()})});if(m>=l)return;const r=m+p>l?l-m:p;_(c,m,r),m+=r})}function _(t,n,i){e.read(d,f,t,i,n,function(e,t,n){return(i,r,s)=>{c(i,r,0,t,e,n)}}(t,n,i))}function v(){let e=0,t=0;for(;m<l&&e<u;){const n=m+p>l?l-m:p;_(t,m,n),t+=n,m+=n,++e}}void 0!==a?t.fchmod(h,a,function e(n){n?t.chmod(i,a,t=>e()):v()}):v()})}d=_,void 0===c?e.fstat(d,v):v(null,{size:c})})}function Ir(e,t,n,i,r,s,o){const a="function"==typeof o?o:void 0;e.write(t,n,i,r,s,(o,c)=>{if(o)return e.close(t,()=>{a&&a(o)});c===r?e.close(t,a):Ir(e,t,n,i+=c,r-=c,s+=c,a)})}class kr{constructor(e){this.mode=e&&e.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,this.extended=e&&e.extended}isDirectory(){return(this.mode&wi.S_IFMT)===wi.S_IFDIR}isFile(){return(this.mode&wi.S_IFMT)===wi.S_IFREG}isBlockDevice(){return(this.mode&wi.S_IFMT)===wi.S_IFBLK}isCharacterDevice(){return(this.mode&wi.S_IFMT)===wi.S_IFCHR}isSymbolicLink(){return(this.mode&wi.S_IFMT)===wi.S_IFLNK}isFIFO(){return(this.mode&wi.S_IFMT)===wi.S_IFIFO}isSocket(){return(this.mode&wi.S_IFMT)===wi.S_IFSOCK}}function Cr(e){let t=0,n=0;if("object"==typeof e&&null!==e){if("number"==typeof e.size){t|=Ni;const i=e.size;Mi[n++]=i/72057594037927940,Mi[n++]=i/281474976710656,Mi[n++]=i/1099511627776,Mi[n++]=i/4294967296,Mi[n++]=i/16777216,Mi[n++]=i/65536,Mi[n++]=i/256,Mi[n++]=i}if("number"==typeof e.uid&&"number"==typeof e.gid){t|=Li;const i=e.uid,r=e.gid;Mi[n++]=i>>>24,Mi[n++]=i>>>16,Mi[n++]=i>>>8,Mi[n++]=i,Mi[n++]=r>>>24,Mi[n++]=r>>>16,Mi[n++]=r>>>8,Mi[n++]=r}if("number"==typeof e.mode||"string"==typeof e.mode){const i=Br(e.mode);t|=Pi,Mi[n++]=i>>>24,Mi[n++]=i>>>16,Mi[n++]=i>>>8,Mi[n++]=i}if(("number"==typeof e.atime||ki(e.atime))&&("number"==typeof e.mtime||ki(e.mtime))){const i=Rr(e.atime),r=Rr(e.mtime);t|=Ui,Mi[n++]=i>>>24,Mi[n++]=i>>>16,Mi[n++]=i>>>8,Mi[n++]=i,Mi[n++]=r>>>24,Mi[n++]=r>>>16,Mi[n++]=r>>>8,Mi[n++]=r}}return{flags:t,nb:n}}function Rr(e){if("number"==typeof e&&e==e)return e;if(ki(e))return parseInt(e.getTime()/1e3,10);throw new Error(`Cannot parse time: ${e}`)}function Br(e){if("number"==typeof e&&e==e)return e;if("string"==typeof e)return Br(parseInt(e,8));throw new Error(`Cannot parse mode: ${e}`)}const Tr={r:mr.READ,"r+":mr.READ|mr.WRITE,w:mr.TRUNC|mr.CREAT|mr.WRITE,wx:mr.TRUNC|mr.CREAT|mr.WRITE|mr.EXCL,xw:mr.TRUNC|mr.CREAT|mr.WRITE|mr.EXCL,"w+":mr.TRUNC|mr.CREAT|mr.READ|mr.WRITE,"wx+":mr.TRUNC|mr.CREAT|mr.READ|mr.WRITE|mr.EXCL,"xw+":mr.TRUNC|mr.CREAT|mr.READ|mr.WRITE|mr.EXCL,a:mr.APPEND|mr.CREAT|mr.WRITE,ax:mr.APPEND|mr.CREAT|mr.WRITE|mr.EXCL,xa:mr.APPEND|mr.CREAT|mr.WRITE|mr.EXCL,"a+":mr.APPEND|mr.CREAT|mr.READ|mr.WRITE,"ax+":mr.APPEND|mr.CREAT|mr.READ|mr.WRITE|mr.EXCL,"xa+":mr.APPEND|mr.CREAT|mr.READ|mr.WRITE|mr.EXCL};function Or(e){const t=Tr[e];return void 0!==t?t:null}const Nr=(()=>{const e=Object.keys(Tr);return t=>{for(let n=0;n<e.length;++n){const i=e[n];if(Tr[i]===t)return i}return null}})();function Lr(e){const t=Ar.readUInt32BE();if(void 0===t)return;const n=new kr;if(t&Ni){const t=Ar.readUInt64BE(e);if(void 0===t)return;n.size=t}if(t&Li){const e=Ar.readUInt32BE(),t=Ar.readUInt32BE();if(void 0===t)return;n.uid=e,n.gid=t}if(t&Pi){const e=Ar.readUInt32BE();if(void 0===e)return;n.mode=e}if(t&Ui){const e=Ar.readUInt32BE(),t=Ar.readUInt32BE();if(void 0===t)return;n.atime=e,n.mtime=t}if(t&Di){const e=Ar.readUInt32BE();if(void 0===e)return;const t={};for(let n=0;n<e;++n){const e=Ar.readString(!0),n=Ar.readString();if(void 0===n)return;t[e]=n}n.extended=t}return n}function Pr(e,t){const n=Ur(e,t);return void 0===n||(e._buffer.push(n),!1)}function Ur(e,t){const n=e.outgoing;if("open"!==n.state)return;if(0===n.window)return e._waitWindow=!0,e._chunkcb=Dr,t;let i;const r=t.length;let s=0;for(;r-s>0&&n.window>0;){const i=Math.min(r-s,n.window,n.packetSize);n.window-=i,0===n.window&&(e._waitWindow=!0,e._chunkcb=Dr),0===s&&i===r?e._protocol.channelData(e.outgoing.id,t):e._protocol.channelData(e.outgoing.id,Bi(t,s,s+i)),s+=i}return r-s>0&&(i=s>0?Bi(t,s,r):t),i}function Dr(){this._chunkcb=void 0;const e=this._buffer;let t=0;for(;t<e.length;){const n=e[t],i=Ur(this,n);if(void 0!==i)return i!==n&&(e[t]=i),void(t>0&&(this._buffer=e.slice(t)));++t}t>0&&(this._buffer=[])}function Mr(e,t,n){const i=new Error(t);return i.level="sftp-protocol",!n&&e._debug&&e._debug(`SFTP: Inbound: ${t}`),e.emit("error",i),e.destroy(),Hr(e),!1}function Hr(e){const t=Object.keys(e._requests);if(0===t.length)return;const n=e._requests;e._requests={};const i=new Error("No response from server");for(let e=0;e<t.length;++e){const r=n[t[e]];"function"==typeof r.cb&&r.cb(i)}}const Fr={[cr]:(e,t)=>{if(-1!==e._version)return Mr(e,"Duplicate VERSION packet");const n={};Ar.init(t,1);let i=Ar.readUInt32BE();for(;Ar.avail();){const e=Ar.readString(!0),t=Ar.readString(!0);if(void 0===t){i=void 0;break}n[e]=t}if(Ar.clear(),void 0===i)return Mr(e,"Malformed VERSION packet");if(e._debug){const t=Object.keys(n);t.length?e._debug(`SFTP: Inbound: Received VERSION (v${i}, exts:${t})`):e._debug(`SFTP: Inbound: Received VERSION (v${i})`)}if(e._version=i,e._extensions=n,"1"===n["limits@openssh.com"])return function(e,t){let n=9;const i=Buffer.allocUnsafe(31);Oi(i,i.length-4,0),i[4]=ar;const r=e._writeReqid=e._writeReqid+1&gr;Oi(i,r,5),Oi(i,18,n),i.utf8Write("limits@openssh.com",n+=4,18),e._requests[r]={extended:"limits@openssh.com",cb:t};const s=Pr(e,i);if(e._debug){const t=s?"Buffered":"Sending";e._debug(`SFTP: Outbound: ${t} limits@openssh.com`)}}(e,(t,n)=>{t||(n.maxPktLen>0&&(e._maxOutPktLen=n.maxPktLen),n.maxReadLen>0&&(e._maxReadLen=n.maxReadLen),n.maxWriteLen>0&&(e._maxWriteLen=n.maxWriteLen),e.maxOpenHandles=n.maxOpenHandles>0?n.maxOpenHandles:1/0),e.emit("ready")});e.emit("ready")},[lr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readUInt32BE(),r=Ar.readString(!0);if(Ar.clear(),e._debug){const t=JSON.stringify(r);e._debug(`SFTP: Inbound: Received STATUS (id:${n}, ${i}, ${t})`)}const s=e._requests[n];if(delete e._requests[n],s&&"function"==typeof s.cb){if(i===Hi.OK)return void s.cb();const e=new Error(r||ji[i]||"Unknown status");e.code=i,s.cb(e)}},[ur]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString();if(Ar.clear(),void 0===i)return void 0!==n&&delete e._requests[n],Mr(e,"Malformed HANDLE packet");e._debug&&e._debug(`SFTP: Inbound: Received HANDLE (id:${n})`);const r=e._requests[n];delete e._requests[n],r&&"function"==typeof r.cb&&r.cb(void 0,i)},[pr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE();let i;if(void 0!==n&&(i=e._requests[n],delete e._requests[n]),i&&"function"==typeof i.cb)if(i.buffer){const t=Ar.readString(i.buffer);if(Ar.clear(),void 0!==t)return e._debug&&e._debug(`SFTP: Inbound: Received DATA (id:${n}, ${t})`),void i.cb(void 0,i.buffer,t)}else{const t=Ar.readString();if(Ar.clear(),void 0!==t)return e._debug&&e._debug(`SFTP: Inbound: Received DATA (id:${n}, ${t.length})`),void i.cb(void 0,t)}else{const t=Ar.skipString();if(Ar.clear(),void 0!==t)return void(e._debug&&e._debug(`SFTP: Inbound: Received DATA (id:${n}, ${t})`))}return Mr(e,"Malformed DATA packet")},[dr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE();let i;void 0!==n&&(i=e._requests[n],delete e._requests[n]);const r=Ar.readUInt32BE();if(void 0!==r){let t=[];for(let n=0;n<r;++n){const n=Ar.readString(!0),i=Ar.readString(!0),r=Lr(e._biOpt);if(void 0===r){t=void 0;break}t.push({filename:n,longname:i,attrs:r})}if(void 0!==t)return e._debug&&e._debug(`SFTP: Inbound: Received NAME (id:${n}, ${t.length})`),Ar.clear(),void(i&&"function"==typeof i.cb&&i.cb(void 0,t))}return Ar.clear(),Mr(e,"Malformed NAME packet")},[hr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE();let i;void 0!==n&&(i=e._requests[n],delete e._requests[n]);const r=Lr(e._biOpt);return Ar.clear(),void 0!==r?(e._debug&&e._debug(`SFTP: Inbound: Received ATTRS (id:${n})`),void(i&&"function"==typeof i.cb&&i.cb(void 0,r))):Mr(e,"Malformed ATTRS packet")},[fr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE();if(void 0!==n){const t=e._requests[n];if(!t)return e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ???)`),void Ar.clear();switch(delete e._requests[n],t.extended){case"statvfs@openssh.com":case"fstatvfs@openssh.com":{const i=e._biOpt,r={f_bsize:Ar.readUInt64BE(i),f_frsize:Ar.readUInt64BE(i),f_blocks:Ar.readUInt64BE(i),f_bfree:Ar.readUInt64BE(i),f_bavail:Ar.readUInt64BE(i),f_files:Ar.readUInt64BE(i),f_ffree:Ar.readUInt64BE(i),f_favail:Ar.readUInt64BE(i),f_sid:Ar.readUInt64BE(i),f_flag:Ar.readUInt64BE(i),f_namemax:Ar.readUInt64BE(i)};if(void 0===r.f_namemax)break;return e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ${t.extended})`),Ar.clear(),void("function"==typeof t.cb&&t.cb(void 0,r))}case"limits@openssh.com":{const i={maxPktLen:Ar.readUInt64BE(),maxReadLen:Ar.readUInt64BE(),maxWriteLen:Ar.readUInt64BE(),maxOpenHandles:Ar.readUInt64BE()};if(void 0===i.maxOpenHandles)break;return e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ${t.extended})`),Ar.clear(),void("function"==typeof t.cb&&t.cb(void 0,i))}case"users-groups-by-id@openssh.com":{const i=Ar.readUInt32BE();if(void 0===i)break;const r=new Array(i);for(let e=0;e<r.length;++e)r[e]=Ar.readString(!0);const s=Ar.readUInt32BE();if(void 0===s)break;const o=new Array(s);for(let e=0;e<o.length;++e)o[e]=Ar.readString(!0);if(o.length>0&&void 0===o[o.length-1])break;return e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ${t.extended})`),Ar.clear(),void("function"==typeof t.cb&&t.cb(void 0,r,o))}default:return e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED_REPLY (id:${n}, ???)`),Ar.clear(),void("function"==typeof t.cb&&t.cb())}}return Ar.clear(),Mr(e,"Malformed EXTENDED_REPLY packet")}},jr={[$i]:(e,t)=>{if(-1!==e._version)return Mr(e,"Duplicate INIT packet");const n={};Ar.init(t,1);let i=Ar.readUInt32BE();for(;Ar.avail();){const e=Ar.readString(!0),t=Ar.readString(!0);if(void 0===t){i=void 0;break}n[e]=t}if(Ar.clear(),void 0===i)return Mr(e,"Malformed INIT packet");if(e._debug){const t=Object.keys(n);t.length?e._debug(`SFTP: Inbound: Received INIT (v${i}, exts:${t})`):e._debug(`SFTP: Inbound: Received INIT (v${i})`)}Pr(e,br),e._version=i,e._extensions=n,e.emit("ready")},[Qi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0),r=Ar.readUInt32BE(),s=Lr(e._biOpt);if(Ar.clear(),void 0===s)return Mr(e,"Malformed OPEN packet");e._debug&&e._debug(`SFTP: Inbound: Received OPEN (id:${n})`),e.emit("OPEN",n,i,r,s)||e.status(n,Hi.OP_UNSUPPORTED)},[Wi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString();if(Ar.clear(),void 0===i||i.length>256)return Mr(e,"Malformed CLOSE packet");e._debug&&e._debug(`SFTP: Inbound: Received CLOSE (id:${n})`),e.emit("CLOSE",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[qi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(),r=Ar.readUInt64BE(e._biOpt),s=Ar.readUInt32BE();if(Ar.clear(),void 0===s||i.length>256)return Mr(e,"Malformed READ packet");e._debug&&e._debug(`SFTP: Inbound: Received READ (id:${n})`),e.emit("READ",n,i,r,s)||e.status(n,Hi.OP_UNSUPPORTED)},[Yi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(),r=Ar.readUInt64BE(e._biOpt),s=Ar.readString();if(Ar.clear(),void 0===s||i.length>256)return Mr(e,"Malformed WRITE packet");e._debug&&e._debug(`SFTP: Inbound: Received WRITE (id:${n})`),e.emit("WRITE",n,i,r,s)||e.status(n,Hi.OP_UNSUPPORTED)},[Gi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(Ar.clear(),void 0===i)return Mr(e,"Malformed LSTAT packet");e._debug&&e._debug(`SFTP: Inbound: Received LSTAT (id:${n})`),e.emit("LSTAT",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[Ki]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString();if(Ar.clear(),void 0===i||i.length>256)return Mr(e,"Malformed FSTAT packet");e._debug&&e._debug(`SFTP: Inbound: Received FSTAT (id:${n})`),e.emit("FSTAT",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[zi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0),r=Lr(e._biOpt);if(Ar.clear(),void 0===r)return Mr(e,"Malformed SETSTAT packet");e._debug&&e._debug(`SFTP: Inbound: Received SETSTAT (id:${n})`),e.emit("SETSTAT",n,i,r)||e.status(n,Hi.OP_UNSUPPORTED)},[Xi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(),r=Lr(e._biOpt);if(Ar.clear(),void 0===r||i.length>256)return Mr(e,"Malformed FSETSTAT packet");e._debug&&e._debug(`SFTP: Inbound: Received FSETSTAT (id:${n})`),e.emit("FSETSTAT",n,i,r)||e.status(n,Hi.OP_UNSUPPORTED)},[Vi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(Ar.clear(),void 0===i)return Mr(e,"Malformed OPENDIR packet");e._debug&&e._debug(`SFTP: Inbound: Received OPENDIR (id:${n})`),e.emit("OPENDIR",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[Ji]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString();if(Ar.clear(),void 0===i||i.length>256)return Mr(e,"Malformed READDIR packet");e._debug&&e._debug(`SFTP: Inbound: Received READDIR (id:${n})`),e.emit("READDIR",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[Zi]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(Ar.clear(),void 0===i)return Mr(e,"Malformed REMOVE packet");e._debug&&e._debug(`SFTP: Inbound: Received REMOVE (id:${n})`),e.emit("REMOVE",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[er]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0),r=Lr(e._biOpt);if(Ar.clear(),void 0===r)return Mr(e,"Malformed MKDIR packet");e._debug&&e._debug(`SFTP: Inbound: Received MKDIR (id:${n})`),e.emit("MKDIR",n,i,r)||e.status(n,Hi.OP_UNSUPPORTED)},[tr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(Ar.clear(),void 0===i)return Mr(e,"Malformed RMDIR packet");e._debug&&e._debug(`SFTP: Inbound: Received RMDIR (id:${n})`),e.emit("RMDIR",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[nr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(Ar.clear(),void 0===i)return Mr(e,"Malformed REALPATH packet");e._debug&&e._debug(`SFTP: Inbound: Received REALPATH (id:${n})`),e.emit("REALPATH",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[ir]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(Ar.clear(),void 0===i)return Mr(e,"Malformed STAT packet");e._debug&&e._debug(`SFTP: Inbound: Received STAT (id:${n})`),e.emit("STAT",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[rr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0),r=Ar.readString(!0);if(Ar.clear(),void 0===r)return Mr(e,"Malformed RENAME packet");e._debug&&e._debug(`SFTP: Inbound: Received RENAME (id:${n})`),e.emit("RENAME",n,i,r)||e.status(n,Hi.OP_UNSUPPORTED)},[sr]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(Ar.clear(),void 0===i)return Mr(e,"Malformed READLINK packet");e._debug&&e._debug(`SFTP: Inbound: Received READLINK (id:${n})`),e.emit("READLINK",n,i)||e.status(n,Hi.OP_UNSUPPORTED)},[or]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0),r=Ar.readString(!0);if(Ar.clear(),void 0===r)return Mr(e,"Malformed SYMLINK packet");let s;e._debug&&e._debug(`SFTP: Inbound: Received SYMLINK (id:${n})`),s=e._isOpenSSH?e.emit("SYMLINK",n,r,i):e.emit("SYMLINK",n,i,r),s||e.status(n,Hi.OP_UNSUPPORTED)},[ar]:(e,t)=>{Ar.init(t,1);const n=Ar.readUInt32BE(),i=Ar.readString(!0);if(void 0===i)return Ar.clear(),Mr(e,"Malformed EXTENDED packet");let r;Ar.avail()&&(r=Ar.readRaw()),Ar.clear(),e._debug&&e._debug(`SFTP: Inbound: Received EXTENDED (id:${n})`),e.emit("EXTENDED",n,i,r)||e.status(n,Hi.OP_UNSUPPORTED)}},{ERR_INVALID_ARG_TYPE:$r,ERR_OUT_OF_RANGE:Qr,validateNumber:Wr}=hi;let qr;const Yr=[];function Gr(e,t){if(!Number.isSafeInteger(e)){if(Wr(e,t),!Number.isInteger(e))throw new Qr(t,"an integer",e);throw new Qr(t,">= 0 and <= 2 ** 53 - 1",e)}if(e<0)throw new Qr(t,">= 0 and <= 2 ** 53 - 1",e)}function Kr(e){return e+7&-8}function zr(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(void 0===n.highWaterMark&&(n.highWaterMark=65536),n.emitClose=!1,n.autoDestroy=!1,xi.call(this,n),this.path=t,this.flags=void 0===n.flags?"r":n.flags,this.mode=void 0===n.mode?438:n.mode,this.start=n.start,this.end=n.end,this.autoClose=void 0===n.autoClose||n.autoClose,this.pos=0,this.bytesRead=0,this.isClosed=!1,this.handle=void 0===n.handle?null:n.handle,this.sftp=e,this._opening=!1,void 0!==this.start&&(Gr(this.start,"start"),this.pos=this.start),void 0===this.end)this.end=1/0;else if(this.end!==1/0&&(Gr(this.end,"end"),void 0!==this.start&&this.start>this.end))throw new Qr("start",`<= "end" (here: ${this.end})`,this.start);this.on("end",function(){this.autoClose&&this.destroy()}),Buffer.isBuffer(this.handle)||this.open()}function Xr(e,t,n){if(!e.handle)return i();function i(i){t(i=i||n),e.isClosed=!0,i||e.emit("close")}e.sftp.close(e.handle,i)}function Vr(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)}n.emitClose=!1,n.autoDestroy=!1,Si.call(this,n),this.path=t,this.flags=void 0===n.flags?"w":n.flags,this.mode=void 0===n.mode?438:n.mode,this.start=n.start,this.autoClose=void 0===n.autoClose||n.autoClose,this.pos=0,this.bytesWritten=0,this.isClosed=!1,this.handle=void 0===n.handle?null:n.handle,this.sftp=e,this._opening=!1,void 0!==this.start&&(Gr(this.start,"start"),this.pos=this.start),n.encoding&&this.setDefaultEncoding(n.encoding),this.on("finish",function(){this._writableState.finalCalled||this.autoClose&&this.destroy()}),Buffer.isBuffer(this.handle)||this.open()}Ii(zr,xi),zr.prototype.open=function(){this._opening||(this._opening=!0,this.sftp.open(this.path,this.flags,this.mode,(e,t)=>{if(this._opening=!1,e)return this.emit("error",e),void(this.autoClose&&this.destroy());this.handle=t,this.emit("open",t),this.emit("ready"),this.read()}))},zr.prototype._read=function(e){if(!Buffer.isBuffer(this.handle))return this.once("open",()=>this._read(e));if(this.destroyed)return;var t;(!qr||qr.length-qr.used<128)&&(t=this.readableHighWaterMark||this._readableState.highWaterMark,qr=Yr.length>0?Yr.pop():Buffer.allocUnsafe(t),qr.used=0);const n=qr;let i=Math.min(qr.length-qr.used,e);const r=qr.used;if(void 0!==this.end&&(i=Math.min(this.end-this.pos+1,i)),i<=0)return this.push(null);this.sftp.read(this.handle,qr,qr.used,i,this.pos,(e,t)=>{if(e)return this.emit("error",e),void(this.autoClose&&this.destroy());let s=null;if(r+i===n.used&&n===qr)n.used=Kr(n.used+t-i);else{const e=r+i&-8,s=Kr(r+t);e-s>=128&&Yr.push(n.slice(s,e))}t>0&&(this.bytesRead+=t,s=n.slice(r,r+t)),this.pos+=t,this.push(s)}),qr.used=Kr(qr.used+i)},zr.prototype._destroy=function(e,t){!this._opening||Buffer.isBuffer(this.handle)?(Xr(this,t,e),this.handle=null,this._opening=!1):this.once("open",Xr.bind(null,this,t,e))},zr.prototype.close=function(e){this.destroy(null,e)},Object.defineProperty(zr.prototype,"pending",{get(){return null===this.handle},configurable:!0}),Ii(Vr,Si),Vr.prototype._final=function(e){this.autoClose&&this.destroy(),e()},Vr.prototype.open=function(){this._opening||(this._opening=!0,this.sftp.open(this.path,this.flags,this.mode,(e,t)=>{if(this._opening=!1,e)return this.emit("error",e),void(this.autoClose&&this.destroy());this.handle=t;const n=e=>{if(e)this.sftp.chmod(this.path,this.mode,e=>n());else{if("a"===this.flags[0]){const e=(n,i)=>{n?this.sftp.stat(this.path,(t,i)=>{if(t)return this.destroy(),void this.emit("error",n);e(null,i)}):(this.pos=i.size,this.emit("open",t),this.emit("ready"))};return void this.sftp.fstat(t,e)}this.emit("open",t),this.emit("ready")}};this.sftp.fchmod(t,this.mode,n)}))},Vr.prototype._write=function(e,t,n){if(!Buffer.isBuffer(e)){const t=new $r("data","Buffer",e);return this.emit("error",t)}if(!Buffer.isBuffer(this.handle))return this.once("open",function(){this._write(e,t,n)});this.sftp.write(this.handle,e,0,e.length,this.pos,(e,t)=>{if(e)return this.autoClose&&this.destroy(),n(e);this.bytesWritten+=t,n()}),this.pos+=e.length},Vr.prototype._writev=function(e,t){if(!Buffer.isBuffer(this.handle))return this.once("open",function(){this._writev(e,t)});const n=this.sftp,i=this.handle;let r=e.length;const s=(e,n)=>{if(e)return this.destroy(),t(e);this.bytesWritten+=n,0===--r&&t()};for(let t=0;t<e.length;++t){const r=e[t].chunk;n.write(i,r,0,r.length,this.pos,s),this.pos+=r.length}},"function"!=typeof Si.prototype.destroy&&(Vr.prototype.destroy=zr.prototype.destroy),Vr.prototype._destroy=zr.prototype._destroy,Vr.prototype.close=function(e){if(e){if(this.isClosed)return void process.nextTick(e);this.on("close",e)}this.autoClose||this.on("finish",this.destroy.bind(this)),this.end()},Vr.prototype.destroySoon=Vr.prototype.end,Object.defineProperty(Vr.prototype,"pending",{get(){return null===this.handle},configurable:!0});var Jr={flagsToString:Nr,OPEN_MODE:mr,SFTP:class extends Ai{constructor(e,t,n){super(),"object"==typeof n&&n||(n={});const i=e._protocol._remoteIdentRaw;this.server=!!n.server,this._debug="function"==typeof n.debug?n.debug:void 0,this._isOpenSSH=i&&yr.test(i),this._version=-1,this._extensions={},this._biOpt=n.biOpt,this._pktLenBytes=0,this._pktLen=0,this._pktPos=0,this._pktType=0,this._pktData=void 0,this._writeReqid=-1,this._requests={},this._maxInPktLen=vr,this._maxOutPktLen=34e3,this._maxReadLen=(this._isOpenSSH?vr:34e3)-2048,this._maxWriteLen=(this._isOpenSSH?vr:34e3)-2048,this.maxOpenHandles=void 0,this._client=e,this._protocol=e._protocol,this._callbacks=[],this._hasX11=!1,this._exit={code:void 0,signal:void 0,dump:void 0,desc:void 0},this._waitWindow=!1,this._chunkcb=void 0,this._buffer=[],this.type=t.type,this.subtype=void 0,this.incoming=t.incoming,this.outgoing=t.outgoing,this.stderr=Er,this.readable=!0}push(e){if(null===e){if(Hr(this),!this.readable)return;return this.readable=!1,void this.emit("end")}let t=0;for(;t<e.length;){if(this._pktLenBytes<4){let n=Math.min(4-this._pktLenBytes,e.length-t);for(this._pktLenBytes+=n;n--;)this._pktLen=(this._pktLen<<8)+e[t++];if(this._pktLenBytes<4)return;if(0===this._pktLen)return Mr(this,"Invalid packet length");if(this._pktLen>this._maxInPktLen){const e=this._maxInPktLen;return Mr(this,`Packet length ${this._pktLen} exceeds max length of ${e}`)}if(t>=e.length)return}if(this._pktPos<this._pktLen){const n=Math.min(this._pktLen-this._pktPos,e.length-t);if(0!==t||n!==e.length?n===this._pktLen?this._pkt=new Ci(e.buffer,e.byteOffset+t,n):(this._pkt||(this._pkt=Buffer.allocUnsafe(this._pktLen)),this._pkt.set(new Uint8Array(e.buffer,e.byteOffset+t,n),this._pktPos)):n===this._pktLen?this._pkt=e:(this._pkt||(this._pkt=Buffer.allocUnsafe(this._pktLen)),this._pkt.set(e,this._pktPos)),t+=n,this._pktPos+=n,this._pktPos<this._pktLen)return}const n=this._pkt[0],i=this._pkt;this._pktLen=0,this._pktLenBytes=0,this._pkt=void 0,this._pktPos=0;const r=this.server?jr[n]:Fr[n];if(!r)return Mr(this,`Unknown packet type ${n}`);if(-1===this._version)if(this.server){if(n!==$i)return Mr(this,`Expected INIT packet, got ${n}`)}else if(n!==cr)return Mr(this,`Expected VERSION packet, got ${n}`);if(!1===r(this,i))return}}end(){this.destroy()}destroy(){"open"!==this.outgoing.state&&"eof"!==this.outgoing.state||(this.outgoing.state="closing",this._protocol.channelClose(this.outgoing.id))}_init(){this._init=wr,this.server||Pr(this,_r)}createReadStream(e,t){if(this.server)throw new Error("Client-only method called in server mode");return new zr(this,e,t)}createWriteStream(e,t){if(this.server)throw new Error("Client-only method called in server mode");return new Vr(this,e,t)}open(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");"function"==typeof n&&(i=n,n=void 0);const r="number"==typeof t?t:Or(t);if(null===r)throw new Error(`Unknown flags string: ${t}`);let s=0,o=0;"string"!=typeof n&&"number"!=typeof n||(n={mode:n}),"object"==typeof n&&null!==n&&(s=(n=Cr(n)).flags,o=n.nb);const a=Buffer.byteLength(e);let c=9;const l=Buffer.allocUnsafe(13+a+4+4+o);Oi(l,l.length-4,0),l[4]=Qi;const u=this._writeReqid=this._writeReqid+1&gr;Oi(l,u,5),Oi(l,a,c),l.utf8Write(e,c+=4,a),Oi(l,r,c+=a),Oi(l,s,c+=4),o&&(c+=4,o===Mi.length?l.set(Mi,c):Ri(Mi,l,0,o,c),c+=o),this._requests[u]={cb:i};const p=Pr(this,l);this._debug&&this._debug(`SFTP: Outbound: ${p?"Buffered":"Sending"} OPEN`)}close(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");const n=e.length;let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=Wi;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.set(e,i+=4),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} CLOSE`)}read(e,t,n,i,r,s){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");xr(this,e,t,n,i,r,s)}readData(e,t,n,i,r,s){this.read(e,t,n,i,r,s)}write(e,t,n,i,r,s){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");if(!i)return void(s&&process.nextTick(s,void 0,0));const o=this._maxWriteLen,a=Math.max(i-o,0),c=r;a&&(i=o);const l=e.length;let u=9;const p=Buffer.allocUnsafe(13+l+8+4+i);Oi(p,p.length-4,0),p[4]=Yi;const d=this._writeReqid=this._writeReqid+1&gr;Oi(p,d,5),Oi(p,l,u),p.set(e,u+=4),u+=l;for(let e=7;e>=0;--e)p[u+e]=255&r,r/=256;Oi(p,i,u+=8),Ri(t,p,n,n+i,u+=4),this._requests[d]={cb:r=>{r?"function"==typeof s&&s(r):a?this.write(e,t,n+i,a,c+i,s):"function"==typeof s&&s(void 0,n+i)}};const h=Pr(this,p);if(this._debug){const e=h?"Sent":"Buffered";this._debug(`SFTP: Outbound: ${e} WRITE (id:${d})`)}}writeData(e,t,n,i,r,s){this.write(e,t,n,i,r,s)}fastGet(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");Sr(this,Ei,e,t,n,i)}fastPut(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");Sr(Ei,this,e,t,n,i)}readFile(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");let i;if("function"==typeof n?i=n:"function"==typeof t&&(i=t,t=void 0),"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"};const r=t.encoding;if(r&&!Buffer.isEncoding(r))throw new Error(`Unknown encoding: ${r}`);let s,o,a,c,l=0,u=0;const p=t.flag||"r",d=()=>{0===s?(o=Buffer.allocUnsafe(8192),this.read(c,o,0,8192,u,h)):this.read(c,o,l,s-l,u,h)},h=(e,t)=>{let n;if(e){if(n=e.code===Hi.EOF,!n)return this.close(c,()=>i&&i(e))}else n=!1;if(n||0===s&&0===t)return f();u+=t,l+=t,0!==s?l===s?f():d():(a.push(Bi(o,0,t)),d())};h._wantEOFError=!0;const f=()=>{this.close(c,e=>(0===s?o=Buffer.concat(a,l):l<s&&(o=Bi(o,0,l)),r&&(o=o.toString(r)),i&&i(e,o)))};this.open(e,p,438,(t,n)=>{if(t)return i&&i(t);c=n;const r=(t,n)=>{if(t)this.stat(e,(e,n)=>{if(e)return this.close(c,()=>{i&&i(t)});r(null,n)});else{if(s=n.size||0,0===s)return a=[],d();o=Buffer.allocUnsafe(s),d()}};this.fstat(c,r)})}writeFile(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");let r;if("function"==typeof i?r=i:"function"==typeof n&&(r=n,n=void 0),"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"};if(n.encoding&&!Buffer.isEncoding(n.encoding))throw new Error(`Unknown encoding: ${n.encoding}`);const s=n.flag||"w";this.open(e,s,n.mode,(i,o)=>{if(i)r&&r(i);else{const i=Buffer.isBuffer(t)?t:Buffer.from(""+t,n.encoding||"utf8"),a=/a/.test(s)?null:0;if(null===a){const t=(n,s)=>{n?this.stat(e,(e,i)=>{if(e)return this.close(o,()=>{r&&r(n)});t(null,i)}):Ir(this,o,i,0,i.length,s.size,r)};return void this.fstat(o,t)}Ir(this,o,i,0,i.length,a,r)}})}appendFile(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");let r;if("function"==typeof i?r=i:"function"==typeof n&&(r=n,n=void 0),"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"};n.flag||(n=Object.assign({flag:"a"},n)),this.writeFile(e,t,n,r)}exists(e,t){if(this.server)throw new Error("Client-only method called in server mode");this.stat(e,e=>{t&&t(!e)})}unlink(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=Zi;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.utf8Write(e,i+=4,n),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} REMOVE`)}rename(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");const i=Buffer.byteLength(e),r=Buffer.byteLength(t);let s=9;const o=Buffer.allocUnsafe(13+i+4+r);Oi(o,o.length-4,0),o[4]=rr;const a=this._writeReqid=this._writeReqid+1&gr;Oi(o,a,5),Oi(o,i,s),o.utf8Write(e,s+=4,i),Oi(o,r,s+=i),o.utf8Write(t,s+=4,r),this._requests[a]={cb:n};const c=Pr(this,o);this._debug&&this._debug(`SFTP: Outbound: ${c?"Buffered":"Sending"} RENAME`)}mkdir(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");let i=0,r=0;"function"==typeof t&&(n=t,t=void 0),"object"==typeof t&&null!==t&&(i=(t=Cr(t)).flags,r=t.nb);const s=Buffer.byteLength(e);let o=9;const a=Buffer.allocUnsafe(13+s+4+r);Oi(a,a.length-4,0),a[4]=er;const c=this._writeReqid=this._writeReqid+1&gr;Oi(a,c,5),Oi(a,s,o),a.utf8Write(e,o+=4,s),Oi(a,i,o+=s),r&&(o+=4,r===Mi.length?a.set(Mi,o):Ri(Mi,a,0,r,o),o+=r),this._requests[c]={cb:n};const l=Pr(this,a);this._debug&&this._debug(`SFTP: Outbound: ${l?"Buffered":"Sending"} MKDIR`)}rmdir(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=tr;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.utf8Write(e,i+=4,n),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} RMDIR`)}readdir(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");"function"==typeof t&&(n=t,t={}),"object"==typeof t&&null!==t||(t={});const i=!t||!t.full;if(!Buffer.isBuffer(e)&&"string"!=typeof e)throw new Error("missing directory handle or path");if("string"==typeof e){const i=[];let r=0;const s=(e,o)=>{if(e)return n(e);this.readdir(o,t,(e,t)=>{const a=e&&e.code===Hi.EOF;if(e&&!a)return this.close(o,()=>n(e));if(a)return this.close(o,e=>{if(e)return n(e);n(void 0,i)});for(let e=0;e<t.length;++e,++r)i[r]=t[e];s(void 0,o)})};return this.opendir(e,s)}const r=e.length;let s=9;const o=Buffer.allocUnsafe(13+r);Oi(o,o.length-4,0),o[4]=Ji;const a=this._writeReqid=this._writeReqid+1&gr;Oi(o,a,5),Oi(o,r,s),o.set(e,s+=4),this._requests[a]={cb:i?(e,t)=>{if("function"==typeof n){if(e)return n(e);for(let e=t.length-1;e>=0;--e)"."!==t[e].filename&&".."!==t[e].filename||t.splice(e,1);n(void 0,t)}}:n};const c=Pr(this,o);this._debug&&this._debug(`SFTP: Outbound: ${c?"Buffered":"Sending"} READDIR`)}fstat(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");const n=e.length;let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=Ki;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.set(e,i+=4),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} FSTAT`)}stat(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=ir;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.utf8Write(e,i+=4,n),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} STAT`)}lstat(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=Gi;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.utf8Write(e,i+=4,n),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} LSTAT`)}opendir(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=Vi;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.utf8Write(e,i+=4,n),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} OPENDIR`)}setstat(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");let i=0,r=0;"object"==typeof t&&null!==t?(i=(t=Cr(t)).flags,r=t.nb):"function"==typeof t&&(n=t);const s=Buffer.byteLength(e);let o=9;const a=Buffer.allocUnsafe(13+s+4+r);Oi(a,a.length-4,0),a[4]=zi;const c=this._writeReqid=this._writeReqid+1&gr;Oi(a,c,5),Oi(a,s,o),a.utf8Write(e,o+=4,s),Oi(a,i,o+=s),r&&(o+=4,r===Mi.length?a.set(Mi,o):Ri(Mi,a,0,r,o),o+=r),this._requests[c]={cb:n};const l=Pr(this,a);this._debug&&this._debug(`SFTP: Outbound: ${l?"Buffered":"Sending"} SETSTAT`)}fsetstat(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");let i=0,r=0;"object"==typeof t&&null!==t?(i=(t=Cr(t)).flags,r=t.nb):"function"==typeof t&&(n=t);const s=e.length;let o=9;const a=Buffer.allocUnsafe(13+s+4+r);Oi(a,a.length-4,0),a[4]=Xi;const c=this._writeReqid=this._writeReqid+1&gr;Oi(a,c,5),Oi(a,s,o),a.set(e,o+=4),Oi(a,i,o+=s),r&&(o+=4,r===Mi.length?a.set(Mi,o):Ri(Mi,a,0,r,o),o+=r),this._requests[c]={cb:n};const l=Pr(this,a);this._debug&&this._debug(`SFTP: Outbound: ${l?"Buffered":"Sending"} FSETSTAT`)}futimes(e,t,n,i){return this.fsetstat(e,{atime:Rr(t),mtime:Rr(n)},i)}utimes(e,t,n,i){return this.setstat(e,{atime:Rr(t),mtime:Rr(n)},i)}fchown(e,t,n,i){return this.fsetstat(e,{uid:t,gid:n},i)}chown(e,t,n,i){return this.setstat(e,{uid:t,gid:n},i)}fchmod(e,t,n){return this.fsetstat(e,{mode:t},n)}chmod(e,t,n){return this.setstat(e,{mode:t},n)}readlink(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=sr;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.utf8Write(e,i+=4,n),this._requests[s]={cb:(e,n)=>{if("function"==typeof t)return e?t(e):n&&n.length?void t(void 0,n[0].filename):t(new Error("Response missing link info"))}};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} READLINK`)}symlink(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");const i=Buffer.byteLength(t),r=Buffer.byteLength(e);let s=9;const o=Buffer.allocUnsafe(13+i+4+r);Oi(o,o.length-4,0),o[4]=or;const a=this._writeReqid=this._writeReqid+1&gr;Oi(o,a,5),this._isOpenSSH?(Oi(o,r,s),o.utf8Write(e,s+=4,r),Oi(o,i,s+=r),o.utf8Write(t,s+=4,i)):(Oi(o,i,s),o.utf8Write(t,s+=4,i),Oi(o,r,s+=i),o.utf8Write(e,s+=4,r)),this._requests[a]={cb:n};const c=Pr(this,o);this._debug&&this._debug(`SFTP: Outbound: ${c?"Buffered":"Sending"} SYMLINK`)}realpath(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=nr;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,n,i),r.utf8Write(e,i+=4,n),this._requests[s]={cb:(e,n)=>{if("function"==typeof t)return e?t(e):n&&n.length?void t(void 0,n[0].filename):t(new Error("Response missing path info"))}};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} REALPATH`)}ext_openssh_rename(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");const i=this._extensions["posix-rename@openssh.com"];if(!i||"1"!==i)throw new Error("Server does not support this extended request");const r=Buffer.byteLength(e),s=Buffer.byteLength(t);let o=9;const a=Buffer.allocUnsafe(41+r+4+s);Oi(a,a.length-4,0),a[4]=ar;const c=this._writeReqid=this._writeReqid+1&gr;Oi(a,c,5),Oi(a,24,o),a.utf8Write("posix-rename@openssh.com",o+=4,24),Oi(a,r,o+=24),a.utf8Write(e,o+=4,r),Oi(a,s,o+=r),a.utf8Write(t,o+=4,s),this._requests[c]={cb:n};const l=Pr(this,a);if(this._debug){const e=l?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} posix-rename@openssh.com`)}}ext_openssh_statvfs(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=this._extensions["statvfs@openssh.com"];if(!n||"2"!==n)throw new Error("Server does not support this extended request");const i=Buffer.byteLength(e);let r=9;const s=Buffer.allocUnsafe(36+i);Oi(s,s.length-4,0),s[4]=ar;const o=this._writeReqid=this._writeReqid+1&gr;Oi(s,o,5),Oi(s,19,r),s.utf8Write("statvfs@openssh.com",r+=4,19),Oi(s,i,r+=19),s.utf8Write(e,r+=4,i),this._requests[o]={extended:"statvfs@openssh.com",cb:t};const a=Pr(this,s);if(this._debug){const e=a?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} statvfs@openssh.com`)}}ext_openssh_fstatvfs(e,t){if(this.server)throw new Error("Client-only method called in server mode");const n=this._extensions["fstatvfs@openssh.com"];if(!n||"2"!==n)throw new Error("Server does not support this extended request");if(!Buffer.isBuffer(e))throw new Error("handle is not a Buffer");const i=e.length;let r=9;const s=Buffer.allocUnsafe(37+i);Oi(s,s.length-4,0),s[4]=ar;const o=this._writeReqid=this._writeReqid+1&gr;Oi(s,o,5),Oi(s,20,r),s.utf8Write("fstatvfs@openssh.com",r+=4,20),Oi(s,i,r+=20),s.set(e,r+=4),this._requests[o]={extended:"fstatvfs@openssh.com",cb:t};const a=Pr(this,s);if(this._debug){const e=a?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} fstatvfs@openssh.com`)}}ext_openssh_hardlink(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");if("1"!==this._extensions["hardlink@openssh.com"])throw new Error("Server does not support this extended request");const i=Buffer.byteLength(e),r=Buffer.byteLength(t);let s=9;const o=Buffer.allocUnsafe(37+i+4+r);Oi(o,o.length-4,0),o[4]=ar;const a=this._writeReqid=this._writeReqid+1&gr;Oi(o,a,5),Oi(o,20,s),o.utf8Write("hardlink@openssh.com",s+=4,20),Oi(o,i,s+=20),o.utf8Write(e,s+=4,i),Oi(o,r,s+=i),o.utf8Write(t,s+=4,r),this._requests[a]={cb:n};const c=Pr(this,o);if(this._debug){const e=c?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} hardlink@openssh.com`)}}ext_openssh_fsync(e,t){if(this.server)throw new Error("Client-only method called in server mode");if("1"!==this._extensions["fsync@openssh.com"])throw new Error("Server does not support this extended request");if(!Buffer.isBuffer(e))throw new Error("handle is not a Buffer");const n=e.length;let i=9;const r=Buffer.allocUnsafe(34+n);Oi(r,r.length-4,0),r[4]=ar;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,17,i),r.utf8Write("fsync@openssh.com",i+=4,17),Oi(r,n,i+=17),r.set(e,i+=4),this._requests[s]={cb:t};const o=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} fsync@openssh.com`)}ext_openssh_lsetstat(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");if("1"!==this._extensions["lsetstat@openssh.com"])throw new Error("Server does not support this extended request");let i=0,r=0;"object"==typeof t&&null!==t?(i=(t=Cr(t)).flags,r=t.nb):"function"==typeof t&&(n=t);const s=Buffer.byteLength(e);let o=9;const a=Buffer.allocUnsafe(37+s+4+r);Oi(a,a.length-4,0),a[4]=ar;const c=this._writeReqid=this._writeReqid+1&gr;Oi(a,c,5),Oi(a,20,o),a.utf8Write("lsetstat@openssh.com",o+=4,20),Oi(a,s,o+=20),a.utf8Write(e,o+=4,s),Oi(a,i,o+=s),r&&(o+=4,r===Mi.length?a.set(Mi,o):Ri(Mi,a,0,r,o),o+=r),this._requests[c]={cb:n};const l=Pr(this,a);if(this._debug){const e=l?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} lsetstat@openssh.com`)}}ext_openssh_expandPath(e,t){if(this.server)throw new Error("Client-only method called in server mode");if("1"!==this._extensions["expand-path@openssh.com"])throw new Error("Server does not support this extended request");const n=Buffer.byteLength(e);let i=9;const r=Buffer.allocUnsafe(40+n);Oi(r,r.length-4,0),r[4]=ar;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,5),Oi(r,23,i),r.utf8Write("expand-path@openssh.com",i+=4,23),Oi(r,n,i+=20),r.utf8Write(e,i+=4,n),this._requests[s]={cb:(e,n)=>{if("function"==typeof t)return e?t(e):n&&n.length?void t(void 0,n[0].filename):t(new Error("Response missing expanded path"))}};const o=Pr(this,r);if(this._debug){const e=o?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} expand-path@openssh.com`)}}ext_copy_data(e,t,n,i,r,s){if(this.server)throw new Error("Client-only method called in server mode");if("1"!==this._extensions["copy-data"])throw new Error("Server does not support this extended request");if(!Buffer.isBuffer(e))throw new Error("Source handle is not a Buffer");if(!Buffer.isBuffer(i))throw new Error("Destination handle is not a Buffer");let o=0;const a=Buffer.allocUnsafe(26+e.length+8+8+4+i.length+8);Oi(a,a.length-4,o),o+=4,a[o]=ar,++o;const c=this._writeReqid=this._writeReqid+1&gr;Oi(a,c,o),o+=4,Oi(a,9,o),o+=4,a.utf8Write("copy-data",o,9),o+=9,Oi(a,e.length,o),o+=4,a.set(e,o),o+=e.length;for(let e=7;e>=0;--e)a[o+e]=255&t,t/=256;o+=8;for(let e=7;e>=0;--e)a[o+e]=255&n,n/=256;o+=8,Oi(a,i.length,o),o+=4,a.set(i,o),o+=i.length;for(let e=7;e>=0;--e)a[o+e]=255&r,r/=256;this._requests[c]={cb:s};const l=Pr(this,a);if(this._debug){const e=l?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} copy-data`)}}ext_home_dir(e,t){if(this.server)throw new Error("Client-only method called in server mode");if("1"!==this._extensions["home-directory"])throw new Error("Server does not support this extended request");if("string"!=typeof e)throw new TypeError("username is not a string");let n=0;const i=Buffer.byteLength(e),r=Buffer.allocUnsafe(31+i);Oi(r,r.length-4,n),n+=4,r[n]=ar,++n;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,n),n+=4,Oi(r,14,n),n+=4,r.utf8Write("home-directory",n,14),n+=14,Oi(r,i,n),n+=4,r.utf8Write(e,n,i),n+=i,this._requests[s]={cb:(e,n)=>{if("function"==typeof t)return e?t(e):n&&n.length?void t(void 0,n[0].filename):t(new Error("Response missing home directory"))}};const o=Pr(this,r);if(this._debug){const e=o?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} home-directory`)}}ext_users_groups(e,t,n){if(this.server)throw new Error("Client-only method called in server mode");if("1"!==this._extensions["users-groups-by-id@openssh.com"])throw new Error("Server does not support this extended request");if(!Array.isArray(e))throw new TypeError("uids is not an array");for(const t of e)if(!Number.isInteger(t)||t<0||t>2**32-1)throw new Error("uid values must all be 32-bit unsigned integers");if(!Array.isArray(t))throw new TypeError("gids is not an array");for(const e of t)if(!Number.isInteger(e)||e<0||e>2**32-1)throw new Error("gid values must all be 32-bit unsigned integers");let i=0;const r=Buffer.allocUnsafe(47+4*e.length+4+4*t.length);Oi(r,r.length-4,i),i+=4,r[i]=ar,++i;const s=this._writeReqid=this._writeReqid+1&gr;Oi(r,s,i),i+=4,Oi(r,30,i),i+=4,r.utf8Write("users-groups-by-id@openssh.com",i,30),i+=30,Oi(r,4*e.length,i),i+=4;for(const t of e)Oi(r,t,i),i+=4;Oi(r,4*t.length,i),i+=4;for(const e of t)Oi(r,e,i),i+=4;this._requests[s]={extended:"users-groups-by-id@openssh.com",cb:n};const o=Pr(this,r);if(this._debug){const e=o?"Buffered":"Sending";this._debug(`SFTP: Outbound: ${e} users-groups-by-id@openssh.com`)}}handle(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");const n=t.length;if(n>256)throw new Error("handle too large (> 256 bytes)");let i=9;const r=Buffer.allocUnsafe(13+n);Oi(r,r.length-4,0),r[4]=ur,Oi(r,e,5),Oi(r,n,i),n&&r.set(t,i+=4);const s=Pr(this,r);this._debug&&this._debug(`SFTP: Outbound: ${s?"Buffered":"Sending"} HANDLE`)}status(e,t,n){if(!this.server)throw new Error("Server-only method called in client mode");if(!Fi.has(t))throw new Error(`Bad status code: ${t}`);n||(n="");const i=Buffer.byteLength(n);let r=9;const s=Buffer.allocUnsafe(17+i+4);Oi(s,s.length-4,0),s[4]=lr,Oi(s,e,5),Oi(s,t,r),Oi(s,i,r+=4),r+=4,i&&(s.utf8Write(n,r,i),r+=i),Oi(s,0,r);const o=Pr(this,s);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} STATUS`)}data(e,t,n){if(!this.server)throw new Error("Server-only method called in client mode");const i=Buffer.isBuffer(t);if(!i&&"string"!=typeof t)throw new Error("data is not a Buffer or string");let r;i||n||(n=void 0,r=!0);const s=i?t.length:Buffer.byteLength(t,n);let o=9;const a=Buffer.allocUnsafe(13+s);Oi(a,a.length-4,0),a[4]=pr,Oi(a,e,5),Oi(a,s,o),s&&(i?a.set(t,o+=4):r?a.utf8Write(t,o+=4,s):a.write(t,o+=4,s,n));const c=Pr(this,a);this._debug&&this._debug(`SFTP: Outbound: ${c?"Buffered":"Sending"} DATA`)}name(e,t){if(!this.server)throw new Error("Server-only method called in client mode");if(!Array.isArray(t)){if("object"!=typeof t||null===t)throw new Error("names is not an object or array");t=[t]}const n=t.length;let i,r=0;const s=[];for(let e=0;e<n;++e){const n=t[e],o=n&&n.filename&&"string"==typeof n.filename?n.filename:"";r+=4+Buffer.byteLength(o);const a=n&&n.longname&&"string"==typeof n.longname?n.longname:"";if(r+=4+Buffer.byteLength(a),"object"==typeof n.attrs&&null!==n.attrs){if(i=Cr(n.attrs),r+=4+i.nb,i.nb){let e;i.nb===Mi.length?e=new Uint8Array(Mi):(e=new Uint8Array(i.nb),Ri(Mi,e,0,i.nb,0)),i.bytes=e}s.push(i)}else r+=4,s.push(null)}let o=9;const a=Buffer.allocUnsafe(13+r);Oi(a,a.length-4,0),a[4]=dr,Oi(a,e,5),Oi(a,n,o),o+=4;for(let e=0;e<n;++e){const n=t[e];{const e=n&&n.filename&&"string"==typeof n.filename?n.filename:"",t=Buffer.byteLength(e);Oi(a,t,o),o+=4,t&&(a.utf8Write(e,o,t),o+=t)}{const e=n&&n.longname&&"string"==typeof n.longname?n.longname:"",t=Buffer.byteLength(e);Oi(a,t,o),o+=4,t&&(a.utf8Write(e,o,t),o+=t)}const i=s[e];i?(Oi(a,i.flags,o),o+=4,i.flags&&i.bytes&&(a.set(i.bytes,o),o+=i.nb)):(Oi(a,0,o),o+=4)}const c=Pr(this,a);this._debug&&this._debug(`SFTP: Outbound: ${c?"Buffered":"Sending"} NAME`)}attrs(e,t){if(!this.server)throw new Error("Server-only method called in client mode");if("object"!=typeof t||null===t)throw new Error("attrs is not an object");const n=(t=Cr(t)).flags,i=t.nb;let r=9;const s=Buffer.allocUnsafe(13+i);Oi(s,s.length-4,0),s[4]=hr,Oi(s,e,5),Oi(s,n,r),i&&(r+=4,i===Mi.length?s.set(Mi,r):Ri(Mi,s,0,i,r),r+=i);const o=Pr(this,s);this._debug&&this._debug(`SFTP: Outbound: ${o?"Buffered":"Sending"} ATTRS`)}},Stats:kr,STATUS_CODE:Hi,stringToFlags:Or};const{Duplex:Zr,Readable:es,Writable:ts}=n,{CHANNEL_EXTENDED_DATATYPE:{STDERR:ns}}=ce(),{bufferSlice:is}=le(),rs=2097152,ss=1048576;class os extends es{constructor(e,t){super(t),this._channel=e}_read(e){this._channel._waitChanDrain&&(this._channel._waitChanDrain=!1,this._channel.incoming.window<=ss&&us(this._channel))}}class as extends ts{constructor(e){super({highWaterMark:rs}),this._channel=e}_write(e,t,n){const i=this._channel,r=i._client._protocol,s=i.outgoing,o=s.packetSize,a=s.id;let c=s.window;const l=e.length;let u=0;if("open"===s.state){for(;l-u>0&&c>0;){let t=l-u;t>c&&(t=c),t>o&&(t=o),0===u&&t===l?r.channelExtData(a,e,ns):r.channelExtData(a,is(e,u,u+t),ns),u+=t,c-=t}if(s.window=c,l-u>0)return 0===c&&(i._waitWindow=!0),i._chunkErr=u>0?is(e,u,l):e,void(i._chunkcbErr=n);n()}}}function cs(){this.eof(),!this.server&&this.allowHalfOpen||this.close(),this.writable=!1}function ls(){this.readable=!1}function us(e){if("closed"===e.outgoing.state)return;const t=rs-e.incoming.window;t<=0||(e.incoming.window+=t,e._client._protocol.channelWindowAdjust(e.outgoing.id,t))}var ps={Channel:class extends Zr{constructor(e,t,n){const i={highWaterMark:rs,allowHalfOpen:!n||n&&!1!==n.allowHalfOpen,emitClose:!1};super(i),this.allowHalfOpen=i.allowHalfOpen;const r=!(!n||!n.server);this.server=r,this.type=t.type,this.subtype=void 0,this.incoming=t.incoming,this.outgoing=t.outgoing,this._callbacks=[],this._client=e,this._hasX11=!1,this._exit={code:void 0,signal:void 0,dump:void 0,desc:void 0},this.stdin=this.stdout=this,this.stderr=r?new as(this):new os(this,i),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",cs).on("prefinish",cs),this.on("end",ls).on("close",ls)}_read(e){this._waitChanDrain&&(this._waitChanDrain=!1,this.incoming.window<=ss&&us(this))}_write(e,t,n){const i=this._client._protocol,r=this.outgoing,s=r.packetSize,o=r.id;let a=r.window;const c=e.length;let l=0;if("open"===r.state){for(;c-l>0&&a>0;){let t=c-l;t>a&&(t=a),t>s&&(t=s),0===l&&t===c?i.channelData(o,e):i.channelData(o,is(e,l,l+t)),l+=t,a-=t}if(r.window=a,c-l>0)return 0===a&&(this._waitWindow=!0),this._chunk=l>0?is(e,l,c):e,void(this._chunkcb=n);n()}}eof(){"open"===this.outgoing.state&&(this.outgoing.state="eof",this._client._protocol.channelEOF(this.outgoing.id))}close(){"open"!==this.outgoing.state&&"eof"!==this.outgoing.state||(this.outgoing.state="closing",this._client._protocol.channelClose(this.outgoing.id))}destroy(){return this.end(),this.close(),this}setWindow(e,t,n,i){if(this.server)throw new Error("Client-only method called in server mode");"session"!==this.type||"shell"!==this.subtype&&"exec"!==this.subtype||!this.writable||"open"!==this.outgoing.state||this._client._protocol.windowChange(this.outgoing.id,e,t,n,i)}signal(e){if(this.server)throw new Error("Client-only method called in server mode");"session"===this.type&&this.writable&&"open"===this.outgoing.state&&this._client._protocol.signal(this.outgoing.id,e)}exit(e,t,n){if(!this.server)throw new Error("Server-only method called in client mode");"session"===this.type&&this.writable&&"open"===this.outgoing.state&&("number"==typeof e?this._client._protocol.exitStatus(this.outgoing.id,e):this._client._protocol.exitSignal(this.outgoing.id,e,t,n))}},MAX_WINDOW:rs,PACKET_SIZE:32768,windowAdjust:us,WINDOW_THRESHOLD:ss};const{SFTP:ds}=Jr,hs=2**32-1;function fs(e,t,n,i){if(e._chanMgr.remove(t),"function"!=typeof i)return;let r;n instanceof Error?r=n:"object"==typeof n&&null!==n?(r=new Error(`(SSH) Channel open failure: ${n.description}`),r.reason=n.reason):(r=new Error("(SSH) Channel open failure: server closed channel unexpectedly"),r.reason=""),i(r)}function ms(e,t,n,i,r){if("function"==typeof n)return void fs(e,t,i,n);if("object"!=typeof n||null===n)return;if(n.incoming&&"closed"===n.incoming.state)return;if(e._chanMgr.remove(t),n.server&&"Session"===n.constructor.name)return;n.incoming.state="closed",n.readable&&n.push(null),n.server?n.stderr.writable&&n.stderr.end():n.stderr.readable&&n.stderr.push(null),n.constructor===ds||"open"!==n.outgoing.state&&"eof"!==n.outgoing.state||r||n.close(),"closing"===n.outgoing.state&&(n.outgoing.state="closed");const s=n._readableState,o=n._writableState;!o||o.ending||o.finished||r||n.end();const a=n._callbacks;n._callbacks=[];for(let e=0;e<a.length;++e)a[e](!0);if(n.server)!n.readable||n.destroyed||s&&s.endEmitted?n.emit("close"):n.once("end",()=>n.emit("close"));else{let e;switch(n.type){case"direct-streamlocal@openssh.com":case"direct-tcpip":e=()=>n.emit("close");break;default:{const t=n._exit;e=()=>{null===t.code?n.emit("close",t.code,t.signal,t.dump,t.desc):n.emit("close",t.code)}}}!n.readable||n.destroyed||s&&s.endEmitted?e():n.once("end",e);const t=n.stderr._readableState;!n.stderr.readable||n.stderr.destroyed||t&&t.endEmitted?n.stderr.emit("close"):n.stderr.once("end",()=>n.stderr.emit("close"))}}const gs=(()=>{const e=Object.prototype.toString;return t=>"[object RegExp]"===e.call(t)})();var _s={ChannelManager:class{constructor(e){this._client=e,this._channels={},this._cur=-1,this._count=0}add(e){let t;if(this._cur<hs)t=++this._cur;else if(0===this._count)this._cur=0,t=0;else{const e=this._channels;for(let n=0;n<hs;++n)if(void 0===e[n]){t=n;break}}return void 0===t?-1:(this._channels[t]=e||!0,++this._count,t)}update(e,t){if("number"!=typeof e||e<0||e>=hs||!isFinite(e))throw new Error(`Invalid channel id: ${e}`);t&&this._channels[e]&&(this._channels[e]=t)}get(e){if("number"!=typeof e||e<0||e>=hs||!isFinite(e))throw new Error(`Invalid channel id: ${e}`);return this._channels[e]}remove(e){if("number"!=typeof e||e<0||e>=hs||!isFinite(e))throw new Error(`Invalid channel id: ${e}`);this._channels[e]&&(delete this._channels[e],this._count&&--this._count)}cleanup(e){const t=this._channels;this._channels={},this._cur=-1,this._count=0;const n=Object.keys(t),i=this._client;for(let r=0;r<n.length;++r){const s=+n[r],o=t[s];ms(i,s,o._channel||o,e,!0)}}},generateAlgorithmList:function(e,t,n){if(Array.isArray(e)&&e.length>0){for(let t=0;t<e.length;++t)if(-1===n.indexOf(e[t]))throw new Error(`Unsupported algorithm: ${e[t]}`);return e}if("object"==typeof e&&null!==e){const i=Object.keys(e);let r=t;for(let s=0;s<i.length;++s){const o=i[s];let a=e[o];switch(o){case"append":if(Array.isArray(a)||(a=[a]),Array.isArray(a))for(let e=0;e<a.length;++e){const i=a[e];if("string"==typeof i){if(!i||-1!==r.indexOf(i))continue;if(-1===n.indexOf(i))throw new Error(`Unsupported algorithm: ${i}`);r===t&&(r=r.slice()),r.push(i)}else if(gs(i))for(let e=0;e<n.length;++e){const s=n[e];if(i.test(s)){if(-1!==r.indexOf(s))continue;r===t&&(r=r.slice()),r.push(s)}}}break;case"prepend":if(Array.isArray(a)||(a=[a]),Array.isArray(a))for(let e=a.length;e>=0;--e){const i=a[e];if("string"==typeof i){if(!i||-1!==r.indexOf(i))continue;if(-1===n.indexOf(i))throw new Error(`Unsupported algorithm: ${i}`);r===t&&(r=r.slice()),r.unshift(i)}else if(gs(i))for(let e=n.length;e>=0;--e){const s=n[e];if(i.test(s)){if(-1!==r.indexOf(s))continue;r===t&&(r=r.slice()),r.unshift(s)}}}break;case"remove":if(Array.isArray(a)||(a=[a]),Array.isArray(a))for(let e=0;e<a.length;++e){const n=a[e];if("string"==typeof n){if(!n)continue;const e=r.indexOf(n);if(-1===e)continue;r===t&&(r=r.slice()),r.splice(e,1)}else if(gs(n))for(let e=0;e<r.length;++e)n.test(r[e])&&(r===t&&(r=r.slice()),r.splice(e,1),--e)}}}return r}return t},onChannelOpenFailure:fs,onCHANNEL_CLOSE:ms,isWritable:e=>e&&e.writable&&e._readableState&&!1===e._readableState.ended};const{createHash:bs,getHashes:ys,randomFillSync:vs}=o,{Socket:As}=t,{lookup:Es}=d,ws=h,xs=ys(),{COMPAT:Ss,CHANNEL_EXTENDED_DATATYPE:{STDERR:Is},CHANNEL_OPEN_FAILURE:ks,DEFAULT_CIPHER:Cs,DEFAULT_COMPRESSION:Rs,DEFAULT_KEX:Bs,DEFAULT_MAC:Ts,DEFAULT_SERVER_HOST_KEY:Os,DISCONNECT_REASON:Ns,DISCONNECT_REASON_BY_VALUE:Ls,SUPPORTED_CIPHER:Ps,SUPPORTED_COMPRESSION:Us,SUPPORTED_KEX:Ds,SUPPORTED_MAC:Ms,SUPPORTED_SERVER_HOST_KEY:Hs}=ce(),{init:Fs}=me(),js=di,{parseKey:$s}=ft,{SFTP:Qs}=Jr,{bufferCopy:Ws,makeBufferParser:qs,makeError:Ys,readUInt32BE:Gs,sigSSHToASN1:Ks,writeUInt32BE:zs}=le(),{AgentContext:Xs,createAgent:Vs,isAgent:Js}=Qt,{Channel:Zs,MAX_WINDOW:eo,PACKET_SIZE:to,windowAdjust:no,WINDOW_THRESHOLD:io}=ps,{ChannelManager:ro,generateAlgorithmList:so,isWritable:oo,onChannelOpenFailure:ao,onCHANNEL_CLOSE:co}=_s,lo=qs(),uo=qs(),po=/^OpenSSH_(?:(?![0-4])\d)|(?:\d{2,})/,ho=e=>{};function fo(e,t,n,i){const r=eo,s=to;"function"==typeof n&&(i=n,n={});const o=(e,t)=>{i(e,t)};o.type=t;const a=e._chanMgr.add(o);if(-1!==a)switch(t){case"session":case"sftp":e._protocol.session(a,r,s);break;case"direct-tcpip":e._protocol.directTcpip(a,r,s,n);break;case"direct-streamlocal@openssh.com":e._protocol.openssh_directStreamLocal(a,r,s,n);break;default:throw new Error(`Unsupported channel type: ${t}`)}else i(new Error("No free channels available"))}function mo(e,t,n){const i={single:!1,protocol:"MIT-MAGIC-COOKIE-1",cookie:void 0,screen:0};"function"==typeof t?n=t:"object"==typeof t&&null!==t&&("boolean"==typeof t.single&&(i.single=t.single),"number"==typeof t.screen&&(i.screen=t.screen),"string"==typeof t.protocol&&(i.protocol=t.protocol),"string"==typeof t.cookie?i.cookie=t.cookie:Buffer.isBuffer(t.cookie)&&(i.cookie=t.cookie.hexSlice(0,t.cookie.length))),void 0===i.cookie&&(i.cookie=vo());const r="function"==typeof n;"open"===e.outgoing.state?(r&&e._callbacks.push(t=>{t?n(!0!==t?t:new Error("Unable to request X11")):(e._hasX11=!0,++e._client._acceptX11,e.once("close",()=>{e._client._acceptX11&&--e._client._acceptX11}),n())}),e._client._protocol.x11Forward(e.outgoing.id,i,r)):r&&n(new Error("Channel is not open"))}function go(e,t,n){let i=24,r=80,s=640,o=480,a="vt100",c=null;"function"==typeof t?n=t:"object"==typeof t&&null!==t&&("number"==typeof t.rows&&(i=t.rows),"number"==typeof t.cols&&(r=t.cols),"number"==typeof t.width&&(s=t.width),"number"==typeof t.height&&(o=t.height),"string"==typeof t.term&&(a=t.term),"object"==typeof t.modes&&(c=t.modes));const l="function"==typeof n;"open"===e.outgoing.state?(l&&e._callbacks.push(e=>{e?n(!0!==e?e:new Error("Unable to request a pseudo-terminal")):n()}),e._client._protocol.pty(e.outgoing.id,i,r,o,s,a,c,l)):l&&n(new Error("Channel is not open"))}function _o(e,t){const n="function"==typeof t;"open"===e.outgoing.state?e._client._agentFwdEnabled?n&&t(!1):(e._client._agentFwdEnabled=!0,e._callbacks.push(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._protocol.openssh_agentForward(e.outgoing.id,!0)):n&&t(new Error("Channel is not open"))}function bo(e,t,n){const i="function"==typeof n;if("open"!==e.outgoing.state)return void(i&&n(new Error("Channel is not open")));i&&e._callbacks.push(e=>{e?n(!0!==e?e:new Error("Unable to set environment")):n()});const r=Object.keys(t||{});for(let n=0;n<r.length;++n){const s=r[n],o=t[s];e._client._protocol.env(e.outgoing.id,s,o,i)}}function yo(e,t,n){"open"===e.outgoing.state?(e._callbacks.push(i=>{i?n(!0!==i?i:new Error(`Unable to start subsystem: ${t}`)):(e.subtype="subsystem",n(void 0,e))}),e._client._protocol.subsystem(e.outgoing.id,t,!0)):n(new Error("Channel is not open"))}const vo=(()=>{const e=Buffer.allocUnsafe(16);return()=>(vs(e,0,16),e.hexSlice(0,16))})();function Ao(e){if(!Array.isArray(e))throw new Error("authList must be an array");let t=0;return(n,i,r)=>t!==e.length&&e[t++]}function Eo(e,t,n){if("ssh-rsa"===t.type){if(e._protocol._compatFlags&Ss.IMPLY_RSA_SHA2_SIGALGS&&(n=Array.isArray(n)?["rsa-sha2-256","rsa-sha2-512",...n]:["rsa-sha2-256","rsa-sha2-512"]),Array.isArray(n)){if(-1!==n.indexOf("rsa-sha2-256"))return[["rsa-sha2-256","sha256"]];if(-1!==n.indexOf("rsa-sha2-512"))return[["rsa-sha2-512","sha512"]];if(-1===n.indexOf("ssh-rsa"))return[]}return[["ssh-rsa","sha1"]]}}var wo=class extends ws{constructor(){super(),this.config={host:void 0,port:void 0,localAddress:void 0,localPort:void 0,forceIPv4:void 0,forceIPv6:void 0,keepaliveCountMax:void 0,keepaliveInterval:void 0,readyTimeout:void 0,ident:void 0,username:void 0,password:void 0,privateKey:void 0,tryKeyboard:void 0,agent:void 0,allowAgentFwd:void 0,authHandler:void 0,hostHashAlgo:void 0,hostHashCb:void 0,strictVendor:void 0,debug:void 0},this._agent=void 0,this._readyTimeout=void 0,this._chanMgr=void 0,this._callbacks=void 0,this._forwarding=void 0,this._forwardingUnix=void 0,this._acceptX11=void 0,this._agentFwdEnabled=void 0,this._remoteVer=void 0,this._protocol=void 0,this._sock=void 0,this._resetKA=void 0}connect(e){if(this._sock&&oo(this._sock))return this.once("close",()=>{this.connect(e)}),this.end(),this;this.config.host=e.hostname||e.host||"localhost",this.config.port=e.port||22,this.config.localAddress="string"==typeof e.localAddress?e.localAddress:void 0,this.config.localPort="string"==typeof e.localPort||"number"==typeof e.localPort?e.localPort:void 0,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.ident="string"==typeof e.ident||Buffer.isBuffer(e.ident)?e.ident:void 0;const t={kex:void 0,serverHostKey:void 0,cs:{cipher:void 0,mac:void 0,compress:void 0,lang:[]},sc:void 0};let n=!0;if("object"==typeof e.algorithms&&null!==e.algorithms&&(t.kex=so(e.algorithms.kex,Bs,Ds),t.kex!==Bs&&(n=!1),t.serverHostKey=so(e.algorithms.serverHostKey,Os,Hs),t.serverHostKey!==Os&&(n=!1),t.cs.cipher=so(e.algorithms.cipher,Cs,Ps),t.cs.cipher!==Cs&&(n=!1),t.cs.mac=so(e.algorithms.hmac,Ts,Ms),t.cs.mac!==Ts&&(n=!1),t.cs.compress=so(e.algorithms.compress,Rs,Us),t.cs.compress!==Rs&&(n=!1),n||(t.sc=t.cs)),"string"==typeof e.username)this.config.username=e.username;else{if("string"!=typeof e.user)throw new Error("Invalid username");this.config.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.localHostname="string"==typeof e.localHostname?e.localHostname:void 0,this.config.localUsername="string"==typeof e.localUsername?e.localUsername:void 0,this.config.tryKeyboard=!0===e.tryKeyboard,"string"==typeof e.agent&&e.agent.length?this.config.agent=Vs(e.agent):Js(e.agent)?this.config.agent=e.agent:this.config.agent=void 0,this.config.allowAgentFwd=!0===e.agentForward&&void 0!==this.config.agent;let i=this.config.authHandler="function"==typeof e.authHandler||Array.isArray(e.authHandler)?e.authHandler:void 0;this.config.strictVendor="boolean"!=typeof e.strictVendor||e.strictVendor;const r=this.config.debug="function"==typeof e.debug?e.debug:void 0;if(!0===e.agentForward&&!this.config.allowAgentFwd)throw new Error("You must set a valid agent path to allow agent forwarding");let s,o,a=this._callbacks=[];if(this._chanMgr=new ro(this),this._forwarding={},this._forwardingUnix={},this._acceptX11=0,this._agentFwdEnabled=!1,this._agent=this.config.agent?this.config.agent:void 0,this._remoteVer=void 0,this.config.privateKey){if(s=$s(this.config.privateKey,e.passphrase),s instanceof Error)throw new Error(`Cannot parse privateKey: ${s.message}`);if(Array.isArray(s)&&(s=s[0]),null===s.getPrivatePEM())throw new Error("privateKey value does not contain a (valid) private key")}if("function"==typeof e.hostVerifier){const t=e.hostVerifier;let n;-1!==xs.indexOf(e.hostHash)&&(n=e.hostHash),o=(e,i)=>{n&&(e=bs(n).update(e).digest("hex"));const r=t(e,i);void 0!==r&&i(r)}}const c=this._sock=e.sock||new As;let l=!1,u=!1;this._protocol&&this._protocol.cleanup();const p=r?(e,t,n)=>{r(`Debug output from server: ${JSON.stringify(n)}`)}:void 0;let d;const h=this._protocol=new js({ident:this.config.ident,offer:n?void 0:t,onWrite:e=>{oo(c)&&c.write(e)},onError:e=>{"handshake"===e.level&&clearTimeout(this._readyTimeout),h._destruct||c.removeAllListeners("data"),this.emit("error",e);try{c.end()}catch{}},onHeader:e=>{u=!0,this._remoteVer=e.versions.software,e.greeting&&this.emit("greeting",e.greeting)},onHandshakeComplete:e=>{this.emit("handshake",e),l||(l=!0,h.service("ssh-userauth"))},debug:r,hostVerifier:o,messageHandlers:{DEBUG:p,DISCONNECT:(e,t,n)=>{if(t!==Ns.BY_APPLICATION){n||void 0===(n=Ls[t])&&(n=`Unexpected disconnection reason: ${t}`);const e=new Error(n);e.code=t,this.emit("error",e)}c.end()},SERVICE_ACCEPT:(e,t)=>{"ssh-userauth"===t&&B()},EXT_INFO:(e,t)=>{if(void 0===d){for(const e of t)if("server-sig-algs"===e.name)return void(d=e.algs);d=null}},USERAUTH_BANNER:(e,t)=>{this.emit("banner",t)},USERAUTH_SUCCESS:e=>{y(),clearTimeout(this._readyTimeout),this.emit("ready")},USERAUTH_FAILURE:(e,t,n)=>{if(E.keyAlgos){const e=E.keyAlgos[0][0];if(r&&r(`Client: ${E.type} (${e}) auth failed`),E.keyAlgos.shift(),E.keyAlgos.length){const[e,t]=E.keyAlgos[0];switch(E.type){case"agent":return void h.authPK(E.username,E.agentCtx.currentKey(),e);case"publickey":return void h.authPK(E.username,E.key,e);case"hostbased":return void h.authHostbased(E.username,E.key,E.localHostname,E.localUsername,e,(e,n)=>{const i=E.key.sign(e,t);if(i instanceof Error)return i.message=`Error while signing with key: ${i.message}`,i.level="client-authentication",this.emit("error",i),B();n(i)})}}else E.keyAlgos=void 0}if("agent"===E.type){const e=E.agentCtx.pos();return r&&r(`Client: Agent key #${e+1} failed`),T()}r&&r(`Client: ${E.type} auth failed`),x=n,S=t,B()},USERAUTH_PASSWD_CHANGEREQ:(e,t)=>{"password"===E.type&&this.emit("change password",t,e=>{h.authPassword(this.config.username,this.config.password,e)})},USERAUTH_PK_OK:e=>{let t,n;if(E.keyAlgos&&([t,n]=E.keyAlgos[0]),"agent"===E.type){const e=E.agentCtx.currentKey();h.authPK(E.username,e,t,(t,i)=>{const r={hash:n};E.agentCtx.sign(e,t,r,(e,t)=>{if(!e)return i(t);e.level="agent",this.emit("error",e),T()})})}else"publickey"===E.type&&h.authPK(E.username,E.key,t,(e,t)=>{const i=E.key.sign(e,n);if(i instanceof Error)return i.message=`Error signing data with key: ${i.message}`,i.level="client-authentication",this.emit("error",i),B();t(i)})},USERAUTH_INFO_REQUEST:(e,t,n,i)=>{if("keyboard-interactive"===E.type){if(0===(Array.isArray(i)?i.length:0))return r&&r("Client: Sending automatic USERAUTH_INFO_RESPONSE"),void h.authInfoRes();E.prompt(t,n,"",i,e=>{h.authInfoRes(e)})}},REQUEST_SUCCESS:(e,t)=>{a.length&&a.shift()(!1,t)},REQUEST_FAILURE:e=>{a.length&&a.shift()(!0)},GLOBAL_REQUEST:(e,t,n,i)=>{if("hostkeys-00@openssh.com"===t)!function(e,t,n){if(!e._sock||!oo(e._sock))return;"function"!=typeof n&&(n=ho);if(!Array.isArray(t))throw new TypeError("Invalid keys argument type");const i=[];for(const e of t){const t=$s(e);if(t instanceof Error)throw t;i.push(t)}if(!e.config.strictVendor||e.config.strictVendor&&po.test(e._remoteVer))return e._callbacks.push((t,r)=>{if(t)return void n(!0!==t?t:new Error("Server failed to prove supplied keys"));const s=[];let o=0;for(lo.init(r,0);lo.avail()&&o!==i.length;){const t=i[o++],n=t.getPublicSSH(),r=lo.readString();uo.init(r,0);const a=uo.readString(!0);let c,l=uo.readString();if(a!==t.type){if("ssh-rsa"!==t.type)continue;switch(a){case"rsa-sha2-256":c="sha256";break;case"rsa-sha2-512":c="sha512";break;default:continue}}const u=e._protocol._kex.sessionID,p=Buffer.allocUnsafe(37+u.length+4+n.length);let d=0;zs(p,29,d),p.utf8Write("hostkeys-prove-00@openssh.com",d+=4,29),zs(p,u.length,d+=29),Ws(u,p,0,u.length,d+=4),zs(p,n.length,d+=u.length),Ws(n,p,0,n.length,d+=4),(l=Ks(l,a))&&!0===t.verify(p,l,c)&&s.push(t)}uo.clear(),lo.clear(),n(null,s)}),void e._protocol.openssh_hostKeysProve(i);process.nextTick(n,new Error("strictVendor enabled and server is not OpenSSH or compatible version"))}(this,i,(e,t)=>{e||this.emit("hostkeys",t)}),n&&h.requestSuccess();else n&&h.requestFailure()},CHANNEL_OPEN:(e,t)=>{!function(e,t){let n,i=-1;const r=()=>{const n={type:t.type,incoming:{id:i,window:eo,packetSize:to,state:"open"},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:"open"}},r=new Zs(e,n);return e._chanMgr.update(i,r),e._protocol.channelOpenConfirm(t.sender,i,eo,to),r},s=()=>{void 0===n&&(n=-1===i?ks.RESOURCE_SHORTAGE:ks.CONNECT_FAILED),-1!==i&&e._chanMgr.remove(i),e._protocol.channelOpenFail(t.sender,n,"")},o=()=>(i=e._chanMgr.add(),-1===i&&(n=ks.RESOURCE_SHORTAGE,e.config.debug&&e.config.debug("Client: Automatic rejection of incoming channel open: no channels available")),-1!==i),a=t.data;switch(t.type){case"forwarded-tcpip":{const t=e._forwarding[`${a.destIP}:${a.destPort}`];if(void 0!==t&&o())return 0===a.destPort&&(a.destPort=t),void e.emit("tcp connection",a,r,s);break}case"forwarded-streamlocal@openssh.com":if(void 0!==e._forwardingUnix[a.socketPath]&&o())return void e.emit("unix connection",a,r,s);break;case"auth-agent@openssh.com":if(e._agentFwdEnabled&&"function"==typeof e._agent.getStream&&o())return void e._agent.getStream((e,t)=>{if(e)return s();const n=r();n.pipe(t).pipe(n)});break;case"x11":if(0!==e._acceptX11&&o())return void e.emit("x11",a,r,s);break;default:n=ks.UNKNOWN_CHANNEL_TYPE,e.config.debug&&e.config.debug(`Client: Automatic rejection of unsupported incoming channel open type: ${t.type}`)}void 0===n&&(n=ks.ADMINISTRATIVELY_PROHIBITED,e.config.debug&&e.config.debug("Client: Automatic rejection of unexpected incoming channel open for: "+t.type));s()}(this,t)},CHANNEL_OPEN_CONFIRMATION:(e,t)=>{const n=this._chanMgr.get(t.recipient);if("function"!=typeof n)return;const i="sftp"===n.type,s={type:i?"session":n.type,incoming:{id:t.recipient,window:eo,packetSize:to,state:"open"},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:"open"}},o=i?new Qs(this,s,{debug:r}):new Zs(this,s);this._chanMgr.update(t.recipient,o),n(void 0,o)},CHANNEL_OPEN_FAILURE:(e,t,n,i)=>{const r=this._chanMgr.get(t);if("function"!=typeof r)return;ao(this,t,{reason:n,description:i},r)},CHANNEL_DATA:(e,t,n)=>{const i=this._chanMgr.get(t);"object"==typeof i&&null!==i&&0!==i.incoming.window&&(i.incoming.window-=n.length,!1!==i.push(n)?i.incoming.window<=io&&no(i):i._waitChanDrain=!0)},CHANNEL_EXTENDED_DATA:(e,t,n,i)=>{if(i!==Is)return;const r=this._chanMgr.get(t);"object"==typeof r&&null!==r&&0!==r.incoming.window&&(r.incoming.window-=n.length,r.stderr.push(n)?r.incoming.window<=io&&no(r):r._waitChanDrain=!0)},CHANNEL_WINDOW_ADJUST:(e,t,n)=>{const i=this._chanMgr.get(t);"object"==typeof i&&null!==i&&(i.outgoing.window+=n,i._waitWindow&&(i._waitWindow=!1,i._chunk?i._write(i._chunk,null,i._chunkcb):i._chunkcb?i._chunkcb():i._chunkErr?i.stderr._write(i._chunkErr,null,i._chunkcbErr):i._chunkcbErr&&i._chunkcbErr()))},CHANNEL_SUCCESS:(e,t)=>{const n=this._chanMgr.get(t);"object"==typeof n&&null!==n&&(this._resetKA(),n._callbacks.length&&n._callbacks.shift()(!1))},CHANNEL_FAILURE:(e,t)=>{const n=this._chanMgr.get(t);"object"==typeof n&&null!==n&&(this._resetKA(),n._callbacks.length&&n._callbacks.shift()(!0))},CHANNEL_REQUEST:(e,t,n,i,r)=>{const s=this._chanMgr.get(t);if("object"!=typeof s||null===s)return;const o=s._exit;if(void 0===o.code){switch(n){case"exit-status":return void s.emit("exit",o.code=r);case"exit-signal":return void s.emit("exit",o.code=null,o.signal=`SIG${r.signal}`,o.dump=r.coreDumped,o.desc=r.errorMessage)}i&&e.channelFailure(s.outgoing.id)}},CHANNEL_EOF:(e,t)=>{const n=this._chanMgr.get(t);"object"==typeof n&&null!==n&&"open"===n.incoming.state&&(n.incoming.state="eof",n.readable&&n.push(null),n.stderr.readable&&n.stderr.push(null))},CHANNEL_CLOSE:(e,t)=>{co(this,t,this._chanMgr.get(t))}}});c.pause();const f=this.config.keepaliveInterval,m=this.config.keepaliveCountMax;let g,_=0;const b=()=>{if(++_>m){if(clearInterval(g),c.readable){const e=new Error("Keepalive timeout");e.level="client-timeout",this.emit("error",e),c.destroy()}}else oo(c)?(a.push(y),h.ping()):clearInterval(g)};function y(){f>0&&(_=0,clearInterval(g),oo(c)&&(g=setInterval(b,f)))}this._resetKA=y;const v=(()=>{let e=!1;return()=>{if(!e&&(e=!0,w&&!u)){const e=Ys("Connection lost before handshake","protocol",!0);this.emit("error",e)}}})(),A=(()=>{let e=!1;return()=>{e||(e=!0,w=!0,r&&r("Socket connected"),this.emit("connect"),Fs.then(()=>{h.start(),c.on("data",e=>{try{h.parse(e,0,e.length)}catch(e){this.emit("error",e);try{oo(c)&&c.end()}catch{}}}),c.stderr&&"function"==typeof c.stderr.resume&&c.stderr.resume(),c.resume()}).catch(e=>{this.emit("error",e);try{oo(c)&&c.end()}catch{}}))}})();let E,w=!1;c.on("connect",A).on("timeout",()=>{this.emit("timeout")}).on("error",e=>{r&&r(`Socket error: ${e.message}`),clearTimeout(this._readyTimeout),e.level="client-socket",this.emit("error",e)}).on("end",()=>{r&&r("Socket ended"),v(),h.cleanup(),clearTimeout(this._readyTimeout),clearInterval(g),this.emit("end")}).on("close",()=>{r&&r("Socket closed"),v(),h.cleanup(),clearTimeout(this._readyTimeout),clearInterval(g),this.emit("close");const e=a;a=this._callbacks=[];const t=new Error("No response from server");for(let n=0;n<e.length;++n)e[n](t);this._chanMgr.cleanup(t)});let x=null,S=null;const I=["none"];void 0!==this.config.password&&I.push("password"),void 0!==s&&I.push("publickey"),void 0!==this._agent&&I.push("agent"),this.config.tryKeyboard&&I.push("keyboard-interactive"),void 0!==s&&void 0!==this.config.localHostname&&void 0!==this.config.localUsername&&I.push("hostbased"),Array.isArray(i)?i=Ao(i):"function"!=typeof i&&(i=Ao(I));let k=!1;const C=e=>{if(!k){if(k=!0,!1===e){const e=new Error("All configured authentication methods failed");return e.level="client-authentication",this.emit("error",e),void this.end()}if("string"==typeof e){const t=e;if(-1===I.indexOf(t))return R(`Authentication method not allowed: ${t}`);const n=this.config.username;switch(t){case"password":e={type:t,username:n,password:this.config.password};break;case"publickey":e={type:t,username:n,key:s};break;case"hostbased":e={type:t,username:n,key:s,localHostname:this.config.localHostname,localUsername:this.config.localUsername};break;case"agent":e={type:t,username:n,agentCtx:new Xs(this._agent)};break;case"keyboard-interactive":e={type:t,username:n,prompt:(...e)=>this.emit("keyboard-interactive",...e)};break;case"none":e={type:t,username:n};break;default:return R(`Skipping unsupported authentication method: ${e}`)}}else{if("object"!=typeof e||null===e)return R(`Skipping invalid authentication attempt: ${e}`);{const t=e.username;if("string"!=typeof t)return R(`Skipping invalid authentication attempt: ${e}`);const n=e.type;switch(n){case"password":{const{password:i}=e;if("string"!=typeof i&&!Buffer.isBuffer(i))return R("Skipping invalid password auth attempt");e={type:n,username:t,password:i};break}case"publickey":{const i=$s(e.key,e.passphrase);if(i instanceof Error)return R("Skipping invalid key auth attempt");if(!i.isPrivateKey())return R("Skipping non-private key");e={type:n,username:t,key:i};break}case"hostbased":{const{localHostname:i,localUsername:r}=e,s=$s(e.key,e.passphrase);if(s instanceof Error||"string"!=typeof i||"string"!=typeof r)return R("Skipping invalid hostbased auth attempt");if(!s.isPrivateKey())return R("Skipping non-private key");e={type:n,username:t,key:s,localHostname:i,localUsername:r};break}case"agent":{let i=e.agent;if("string"==typeof i&&i.length)i=Vs(i);else if(!Js(i))return R(`Skipping invalid agent: ${e.agent}`);e={type:n,username:t,agentCtx:new Xs(i)};break}case"keyboard-interactive":{const{prompt:i}=e;if("function"!=typeof i)return R("Skipping invalid keyboard-interactive auth attempt");e={type:n,username:t,prompt:i};break}case"none":e={type:n,username:t};break;default:return R(`Skipping unsupported authentication method: ${e}`)}}}E=e;try{const e=E.username;switch(E.type){case"password":h.authPassword(e,E.password);break;case"publickey":{let t;if(E.keyAlgos=Eo(this,E.key,d),E.keyAlgos){if(!E.keyAlgos.length)return R("Skipping key authentication (no mutual hash algorithm)");t=E.keyAlgos[0][0]}h.authPK(e,E.key,t);break}case"hostbased":{let t,n;if(E.keyAlgos=Eo(this,E.key,d),E.keyAlgos){if(!E.keyAlgos.length)return R("Skipping hostbased authentication (no mutual hash algorithm)");[t,n]=E.keyAlgos[0]}h.authHostbased(e,E.key,E.localHostname,E.localUsername,t,(e,t)=>{const i=E.key.sign(e,n);if(i instanceof Error)return i.message=`Error while signing with key: ${i.message}`,i.level="client-authentication",this.emit("error",i),B();t(i)});break}case"agent":E.agentCtx.init(e=>{if(e)return e.level="agent",this.emit("error",e),B();T()});break;case"keyboard-interactive":h.authKeyboard(e);break;case"none":h.authNone(e)}}finally{k=!1}}};function R(e){r&&r(e),process.nextTick(B)}function B(){k=!1;const e=i(S,x,C);k||void 0===e||C(e)}const T=()=>{if("agent"===E.type){const e=E.agentCtx.nextKey();if(!1===e)r&&r("Agent: No more keys left to try"),r&&r("Client: agent auth failed"),B();else{const t=E.agentCtx.pos();let n;if(E.keyAlgos=Eo(this,e,d),E.keyAlgos){if(!E.keyAlgos.length)return r&&r(`Agent: Skipping key #${t+1} (no mutual hash algorithm)`),void T();n=E.keyAlgos[0][0]}r&&r(`Agent: Trying key #${t+1}`),h.authPK(E.username,e,n)}}},O=()=>{this.config.readyTimeout>0&&(this._readyTimeout=setTimeout(()=>{const e=new Error("Timed out while waiting for handshake");e.level="client-timeout",this.emit("error",e),c.destroy()},this.config.readyTimeout))};if(e.sock)O(),"boolean"==typeof c.connecting&&c.connecting||A();else{let t=this.config.host;const n=this.config.forceIPv4,i=this.config.forceIPv6;r&&r(`Client: Trying ${t} on port ${this.config.port} ...`);const s=()=>{O(),c.connect({host:t,port:this.config.port,localAddress:this.config.localAddress,localPort:this.config.localPort}),c.setMaxListeners(0),c.setTimeout("number"==typeof e.timeout?e.timeout:0)};!n&&!i||n&&i?s():Es(t,n?4:6,(e,i,r)=>{if(e){const i=new Error(`Error while looking up ${n?"IPv4":"IPv6"} address for '${t}': ${e}`);return clearTimeout(this._readyTimeout),i.level="client-dns",this.emit("error",i),void this.emit("close")}t=i,s()})}return this}end(){return this._sock&&oo(this._sock)&&(this._protocol.disconnect(Ns.BY_APPLICATION),this._sock.end()),this}destroy(){return this._sock&&oo(this._sock)&&this._sock.destroy(),this}exec(e,t,n){if(!this._sock||!oo(this._sock))throw new Error("Not connected");"function"==typeof t&&(n=t,t={});return fo(this,"session",{allowHalfOpen:!1!==t.allowHalfOpen},(i,r)=>{if(i)return void n(i);const s=[];function o(e){if(e)return r.close(),void n(e);s.length&&s.shift()()}(!0===this.config.allowAgentFwd||t&&!0===t.agentForward&&void 0!==this._agent)&&s.push(()=>_o(r,o)),"object"==typeof t&&null!==t&&("object"==typeof t.env&&null!==t.env&&bo(r,t.env),("object"==typeof t.pty&&null!==t.pty||!0===t.pty)&&s.push(()=>go(r,t.pty,o)),("object"==typeof t.x11&&null!==t.x11||"number"===t.x11||!0===t.x11)&&s.push(()=>mo(r,t.x11,o))),s.push(()=>function(e,t,n,i){if("open"!==e.outgoing.state)return void i(new Error("Channel is not open"));e._callbacks.push(t=>{t?i(!0!==t?t:new Error("Unable to exec")):(e.subtype="exec",e.allowHalfOpen=!1!==n.allowHalfOpen,i(void 0,e))}),e._client._protocol.exec(e.outgoing.id,t,!0)}(r,e,t,n)),s.shift()()}),this}shell(e,t,n){if(!this._sock||!oo(this._sock))throw new Error("Not connected");return"function"==typeof e?(n=e,e=t=void 0):"function"==typeof t&&(n=t,t=void 0),!e||void 0===e.x11&&void 0===e.env||(t=e,e=void 0),fo(this,"session",(i,r)=>{if(i)return void n(i);const s=[];function o(e){if(e)return r.close(),void n(e);s.length&&s.shift()()}(!0===this.config.allowAgentFwd||t&&!0===t.agentForward&&void 0!==this._agent)&&s.push(()=>_o(r,o)),!1!==e&&s.push(()=>go(r,e,o)),"object"==typeof t&&null!==t&&("object"==typeof t.env&&null!==t.env&&bo(r,t.env),("object"==typeof t.x11&&null!==t.x11||"number"===t.x11||!0===t.x11)&&s.push(()=>mo(r,t.x11,o))),s.push(()=>function(e,t){if("open"!==e.outgoing.state)return void t(new Error("Channel is not open"));e._callbacks.push(n=>{n?t(!0!==n?n:new Error("Unable to open shell")):(e.subtype="shell",t(void 0,e))}),e._client._protocol.shell(e.outgoing.id,!0)}(r,n)),s.shift()()}),this}subsys(e,t){if(!this._sock||!oo(this._sock))throw new Error("Not connected");return fo(this,"session",(n,i)=>{n?t(n):yo(i,e,(e,n)=>{e?t(e):t(void 0,n)})}),this}forwardIn(e,t,n){if(!this._sock||!oo(this._sock))throw new Error("Not connected");const i="function"==typeof n;return i&&this._callbacks.push((i,r)=>{if(i)return void n(!0!==i?i:new Error(`Unable to bind to ${e}:${t}`));let s=t;0===t&&r&&r.length>=4&&(s=Gs(r,0),this._protocol._compatFlags&Ss.DYN_RPORT_BUG||(t=s)),this._forwarding[`${e}:${t}`]=s,n(void 0,s)}),this._protocol.tcpipForward(e,t,i),this}unforwardIn(e,t,n){if(!this._sock||!oo(this._sock))throw new Error("Not connected");const i="function"==typeof n;return i&&this._callbacks.push(i=>{i?n(!0!==i?i:new Error(`Unable to unbind from ${e}:${t}`)):(delete this._forwarding[`${e}:${t}`],n())}),this._protocol.cancelTcpipForward(e,t,i),this}forwardOut(e,t,n,i,r){if(!this._sock||!oo(this._sock))throw new Error("Not connected");return"function"!=typeof r&&(r=ho),fo(this,"direct-tcpip",{srcIP:e,srcPort:t,dstIP:n,dstPort:i},r),this}openssh_noMoreSessions(e){if(!this._sock||!oo(this._sock))throw new Error("Not connected");const t="function"==typeof e;return!this.config.strictVendor||this.config.strictVendor&&po.test(this._remoteVer)?(t&&this._callbacks.push(t=>{t?e(!0!==t?t:new Error("Unable to disable future sessions")):e()}),this._protocol.openssh_noMoreSessions(t),this):t?(process.nextTick(e,new Error("strictVendor enabled and server is not OpenSSH or compatible version")),this):this}openssh_forwardInStreamLocal(e,t){if(!this._sock||!oo(this._sock))throw new Error("Not connected");const n="function"==typeof t;return!this.config.strictVendor||this.config.strictVendor&&po.test(this._remoteVer)?(n&&this._callbacks.push(n=>{n?t(!0!==n?n:new Error(`Unable to bind to ${e}`)):(this._forwardingUnix[e]=!0,t())}),this._protocol.openssh_streamLocalForward(e,n),this):n?(process.nextTick(t,new Error("strictVendor enabled and server is not OpenSSH or compatible version")),this):this}openssh_unforwardInStreamLocal(e,t){if(!this._sock||!oo(this._sock))throw new Error("Not connected");const n="function"==typeof t;return!this.config.strictVendor||this.config.strictVendor&&po.test(this._remoteVer)?(n&&this._callbacks.push(n=>{n?t(!0!==n?n:new Error(`Unable to unbind from ${e}`)):(delete this._forwardingUnix[e],t())}),this._protocol.openssh_cancelStreamLocalForward(e,n),this):n?(process.nextTick(t,new Error("strictVendor enabled and server is not OpenSSH or compatible version")),this):this}openssh_forwardOutStreamLocal(e,t){if(!this._sock||!oo(this._sock))throw new Error("Not connected");return"function"!=typeof t&&(t=ho),!this.config.strictVendor||this.config.strictVendor&&po.test(this._remoteVer)?(fo(this,"direct-streamlocal@openssh.com",{socketPath:e},t),this):(process.nextTick(t,new Error("strictVendor enabled and server is not OpenSSH or compatible version")),this)}sftp(e,t){if(!this._sock||!oo(this._sock))throw new Error("Not connected");return"function"==typeof e&&(t=e,e=void 0),fo(this,"sftp",(n,i)=>{if(n)return void t(n);const r=(e,n)=>{function r(){i.removeListener("ready",s),i.removeListener("error",o),i.removeListener("exit",a),i.removeListener("close",a)}function s(){r(),t(void 0,i)}function o(e){r(),t(e)}function a(e,n){let i;r(),i="number"==typeof e?`Received exit code ${e} while establishing SFTP session`:void 0!==n?`Received signal ${n} while establishing SFTP session`:"Received unexpected SFTP session termination";const s=new Error(i);s.code=e,s.signal=n,t(s)}e?t(e):(i.on("ready",s).on("error",o).on("exit",a).on("close",a),i._init())};"object"==typeof e&&null!==e?bo(i,e,e=>{e?t(e):yo(i,"sftp",r)}):yo(i,"sftp",r)}),this}setNoDelay(e){return this._sock&&"function"==typeof this._sock.setNoDelay&&this._sock.setNoDelay(e),this}};!function(e){const{Agent:t}=l,{Agent:n}=u,{connect:i}=p;let r;for(const i of[t,n]){class n extends i{constructor(e,t){super(t),this._connectCfg=e,this._defaultSrcIP=t&&t.srcIP||"localhost"}createConnection(e,t){const n=e&&e.localAddress||this._defaultSrcIP,s=e&&e.localPort||0,a=e.host,c=e.port;void 0===r&&(r=wo);const l=new r;let u=!1;l.on("ready",()=>{l.forwardOut(n,s,a,c,(n,r)=>{if(u=!0,n)return l.end(),t(n);r.once("close",()=>l.end()),t(null,o(r,i,e))})}).on("error",t).on("close",()=>{u||t(new Error("Unexpected connection close"))}).connect(this._connectCfg)}}e[i===t?"SSHTTPAgent":"SSHTTPSAgent"]=n}function s(){}function o(e,n,r){if(n===t)return e.setKeepAlive=s,e.setNoDelay=s,e.setTimeout=s,e.ref=s,e.unref=s,e.destroySoon=e.destroy,e;r.socket=e;const o=i(r),a=(()=>{let t=!1;return()=>{t||(t=!0,e.isPaused()&&e.resume())}})();return o.on("end",a).on("close",a),o}}(Wt);var xo={exports:{}};const{Server:So}=t,Io=h,{listenerCount:ko}=Io,{CHANNEL_OPEN_FAILURE:Co,DEFAULT_CIPHER:Ro,DEFAULT_COMPRESSION:Bo,DEFAULT_KEX:To,DEFAULT_MAC:Oo,DEFAULT_SERVER_HOST_KEY:No,DISCONNECT_REASON:Lo,DISCONNECT_REASON_BY_VALUE:Po,SUPPORTED_CIPHER:Uo,SUPPORTED_COMPRESSION:Do,SUPPORTED_KEX:Mo,SUPPORTED_MAC:Ho,SUPPORTED_SERVER_HOST_KEY:Fo}=ce(),{init:jo}=me(),{KexInit:$o}=Sn(),{parseKey:Qo}=ft,Wo=di,{SFTP:qo}=Jr,{writeUInt32BE:Yo}=le(),{Channel:Go,MAX_WINDOW:Ko,PACKET_SIZE:zo,windowAdjust:Xo,WINDOW_THRESHOLD:Vo}=ps,{ChannelManager:Jo,generateAlgorithmList:Zo,isWritable:ea,onChannelOpenFailure:ta,onCHANNEL_CLOSE:na}=_s;class ia extends Io{constructor(e,t,n,i,r){super(),this.username=this.user=t,this.service=n,this.method=i,this._initialResponse=!1,this._finalResponse=!1,this._multistep=!1,this._cbfinal=(e,t,n)=>{this._finalResponse||(this._finalResponse=!0,r(this,e,t,n))},this._protocol=e}accept(){this._cleanup&&this._cleanup(),this._initialResponse=!0,this._cbfinal(!0)}reject(e,t){this._cleanup&&this._cleanup(),this._initialResponse=!0,this._cbfinal(!1,e,t)}}class ra extends ia{constructor(e,t,n,i,r,s){super(e,t,n,i,s),this._multistep=!0,this._cb=void 0,this._onInfoResponse=e=>{const t=this._cb;t&&(this._cb=void 0,t(e))},this.submethods=r,this.on("abort",()=>{this._cb&&this._cb(new Error("Authentication request aborted"))})}prompt(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):"function"!=typeof i&&(i=void 0);for(let t=0;t<e.length;++t)"string"==typeof e[t]&&(e[t]={prompt:e[t],echo:!0});this._cb=i,this._initialResponse=!0,this._protocol.authInfoReq(t,n,e)}}class sa extends ia{constructor(e,t,n,i,r,s){super(e,t,n,i,s),this.key={algo:r.keyAlgo,data:r.key},this.hashAlgo=r.hashAlgo,this.signature=r.signature,this.blob=r.blob}accept(){this.signature?ia.prototype.accept.call(this):(this._initialResponse=!0,this._protocol.authPKOK(this.key.algo,this.key.data))}}class oa extends ia{constructor(e,t,n,i,r,s){super(e,t,n,i,s),this.key={algo:r.keyAlgo,data:r.key},this.hashAlgo=r.hashAlgo,this.signature=r.signature,this.blob=r.blob,this.localHostname=r.localHostname,this.localUsername=r.localUsername}}class aa extends ia{constructor(e,t,n,i,r,s){super(e,t,n,i,s),this.password=r,this._changeCb=void 0}requestChange(e,t){if(this._changeCb)throw new Error("Change request already in progress");if("string"!=typeof e)throw new Error("prompt argument must be a string");if("function"!=typeof t)throw new Error("Callback argument must be a function");this._changeCb=t,this._protocol.authPasswdChg(e)}}class ca extends Io{constructor(e,t,n){super(),this.type="session",this.subtype=void 0,this.server=!0,this._ending=!1,this._channel=void 0,this._chanInfo={type:"session",incoming:{id:n,window:Ko,packetSize:zo,state:"open"},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:"open"}}}}class la extends Io{constructor(e,t){if(super(),"object"!=typeof e||null===e)throw new Error("Missing configuration object");const n=Object.create(null),i=[],r=e.hostKeys;if(!Array.isArray(r))throw new Error("hostKeys must be an array");const s="object"==typeof e.algorithms&&null!==e.algorithms?e.algorithms:{},o=Zo(s.serverHostKey,No,Fo);for(let e=0;e<r.length;++e){let t;if(t=Buffer.isBuffer(r[e])||"string"==typeof r[e]?Qo(r[e]):Qo(r[e].key,r[e].passphrase),t instanceof Error)throw new Error(`Cannot parse privateKey: ${t.message}`);if(Array.isArray(t)&&(t=t[0]),null===t.getPrivatePEM())throw new Error("privateKey value contains an invalid private key");if(!i.includes(t.type))if("ssh-rsa"===t.type){let e=o.indexOf("ssh-rsa");const r=o.indexOf("rsa-sha2-256"),s=o.indexOf("rsa-sha2-512");-1===e&&(e=1/0),[e,r,s].sort(da).forEach(o=>{if(-1===o)return;let a;switch(o){case e:a="ssh-rsa";break;case r:a="rsa-sha2-256";break;case s:a="rsa-sha2-512";break;default:return}n[a]=t,i.push(a)})}else n[t.type]=t,i.push(t.type)}const a={kex:Zo(s.kex,To,Mo).concat(["kex-strict-s-v00@openssh.com"]),serverHostKey:i,cs:{cipher:Zo(s.cipher,Ro,Uo),mac:Zo(s.hmac,Oo,Ho),compress:Zo(s.compress,Bo,Do),lang:[]},sc:void 0};a.sc=a.cs,"function"==typeof t&&this.on("connection",t);const c="function"==typeof e.debug?e.debug:void 0,l=e.ident?Buffer.from(e.ident):void 0,u=new $o(a);this._srv=new So(t=>{if(this._connections>=this.maxConnections)return void t.destroy();let i;if(++this._connections,t.once("close",()=>{--this._connections}),c){const e=`[${process.hrtime().join(".")}] `;i=t=>{c(`${e}${t}`)}}new ua(t,n,l,u,i,this,e)}).on("error",e=>{this.emit("error",e)}).on("listening",()=>{this.emit("listening")}).on("close",()=>{this.emit("close")}),this._connections=0,this.maxConnections=1/0}injectSocket(e){this._srv.emit("connection",e)}listen(...e){return this._srv.listen(...e),this}address(){return this._srv.address()}getConnections(e){return this._srv.getConnections(e),this}close(e){return this._srv.close(e),this}ref(){return this._srv.ref(),this}unref(){return this._srv.unref(),this}}la.KEEPALIVE_CLIENT_INTERVAL=15e3,la.KEEPALIVE_CLIENT_COUNT_MAX=3;let ua=class extends Io{constructor(e,t,n,i,r,s,o){super();let a,c,l,u=0,p=!1,d=[];const h=[];function f(e){}this._sock=e,this._chanMgr=new Jo(this),this._debug=r,this.noMoreSessions=!1,this.authenticated=!1,this.on("error",f);const m=r?(e,t,n)=>{r(`Debug output from client: ${JSON.stringify(n)}`)}:void 0,g="number"==typeof o.keepaliveInterval&&isFinite(o.keepaliveInterval)&&o.keepaliveInterval>0?o.keepaliveInterval:"number"==typeof la.KEEPALIVE_CLIENT_INTERVAL&&isFinite(la.KEEPALIVE_CLIENT_INTERVAL)&&la.KEEPALIVE_CLIENT_INTERVAL>0?la.KEEPALIVE_CLIENT_INTERVAL:-1,_="number"==typeof o.keepaliveCountMax&&isFinite(o.keepaliveCountMax)&&o.keepaliveCountMax>=0?o.keepaliveCountMax:"number"==typeof la.KEEPALIVE_CLIENT_COUNT_MAX&&isFinite(la.KEEPALIVE_CLIENT_COUNT_MAX)&&la.KEEPALIVE_CLIENT_COUNT_MAX>=0?la.KEEPALIVE_CLIENT_COUNT_MAX:-1;let b=0;-1!==g&&-1!==_&&(this.once("ready",()=>{const e=()=>{clearInterval(c)};this.on("close",e).on("end",e),c=setInterval(()=>{if(++b>_){clearInterval(c);const e=new Error("Keepalive timeout");e.level="client-timeout",this.emit("error",e),this.end()}else y.ping()},g)}),l=()=>{c&&c.refresh(),b=0});const y=this._protocol=new Wo({server:!0,hostKeys:t,ident:n,offer:i,onPacket:l,greeting:o.greeting,banner:o.banner,onWrite:t=>{ea(e)&&e.write(t)},onError:t=>{y._destruct||e.removeAllListeners("data"),this.emit("error",t);try{e.end()}catch{}},onHeader:t=>{this.removeListener("error",f);const n={ip:e.remoteAddress,family:e.remoteFamily,port:e.remotePort,header:t};if(!s.emit("connection",this,n))return y.disconnect(Lo.BY_APPLICATION),void e.end();t.greeting&&this.emit("greeting",t.greeting)},onHandshakeComplete:e=>{++u>1&&this.emit("rekey"),this.emit("handshake",e)},debug:r,messageHandlers:{DEBUG:m,DISCONNECT:(t,n,i)=>{if(n!==Lo.BY_APPLICATION){i||void 0===(i=Po[n])&&(i=`Unexpected disconnection reason: ${n}`);const e=new Error(i);e.code=n,this.emit("error",e)}e.end()},CHANNEL_OPEN:(e,t)=>{if("session"===t.type&&this.noMoreSessions||!this.authenticated){const e=Co.ADMINISTRATIVELY_PROHIBITED;return y.channelOpenFail(t.sender,e)}let n,i,s=-1,o=!1;const a=()=>{o||(o=!0,void 0===n&&(n=-1===s?Co.RESOURCE_SHORTAGE:Co.CONNECT_FAILED),-1!==s&&this._chanMgr.remove(s),y.channelOpenFail(t.sender,n,""))},c=()=>(s=this._chanMgr.add(),-1===s&&(n=Co.RESOURCE_SHORTAGE,r&&r("Automatic rejection of incoming channel open: no channels available")),-1!==s),l=t.data;switch(t.type){case"session":if(ko(this,"session")&&c())return i=()=>{if(o)return;o=!0;const e=new ca(this,t,s);return this._chanMgr.update(s,e),y.channelOpenConfirm(t.sender,s,Ko,zo),e},void this.emit("session",i,a);break;case"direct-tcpip":if(ko(this,"tcpip")&&c())return i=()=>{if(o)return;o=!0;const e={type:void 0,incoming:{id:s,window:Ko,packetSize:zo,state:"open"},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:"open"}},n=new Go(this,e,{server:!0});return this._chanMgr.update(s,n),y.channelOpenConfirm(t.sender,s,Ko,zo),n},void this.emit("tcpip",i,a,l);break;case"direct-streamlocal@openssh.com":if(ko(this,"openssh.streamlocal")&&c())return i=()=>{if(o)return;o=!0;const e={type:void 0,incoming:{id:s,window:Ko,packetSize:zo,state:"open"},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:"open"}},n=new Go(this,e,{server:!0});return this._chanMgr.update(s,n),y.channelOpenConfirm(t.sender,s,Ko,zo),n},void this.emit("openssh.streamlocal",i,a,l);break;default:n=Co.UNKNOWN_CHANNEL_TYPE,r&&r(`Automatic rejection of unsupported incoming channel open type: ${t.type}`)}void 0===n&&(n=Co.ADMINISTRATIVELY_PROHIBITED,r&&r(`Automatic rejection of unexpected incoming channel open for: ${t.type}`)),a()},CHANNEL_OPEN_CONFIRMATION:(e,t)=>{const n=this._chanMgr.get(t.recipient);if("function"!=typeof n)return;const i={type:n.type,incoming:{id:t.recipient,window:Ko,packetSize:zo,state:"open"},outgoing:{id:t.sender,window:t.window,packetSize:t.packetSize,state:"open"}},r=new Go(this,i,{server:!0});this._chanMgr.update(t.recipient,r),n(void 0,r)},CHANNEL_OPEN_FAILURE:(e,t,n,i)=>{const r=this._chanMgr.get(t);if("function"!=typeof r)return;ta(this,t,{reason:n,description:i},r)},CHANNEL_DATA:(e,t,n)=>{let i=this._chanMgr.get(t);"object"==typeof i&&null!==i&&(i.constructor!==ca||(i=i._channel,i))&&0!==i.incoming.window&&(i.incoming.window-=n.length,!1!==i.push(n)?i.incoming.window<=Vo&&Xo(i):i._waitChanDrain=!0)},CHANNEL_EXTENDED_DATA:(e,t,n,i)=>{},CHANNEL_WINDOW_ADJUST:(e,t,n)=>{let i=this._chanMgr.get(t);"object"==typeof i&&null!==i&&(i.constructor!==ca||(i=i._channel,i))&&(i.outgoing.window+=n,i._waitWindow&&(i._waitWindow=!1,i._chunk?i._write(i._chunk,null,i._chunkcb):i._chunkcb?i._chunkcb():i._chunkErr?i.stderr._write(i._chunkErr,null,i._chunkcbErr):i._chunkcbErr&&i._chunkcbErr()))},CHANNEL_SUCCESS:(e,t)=>{let n=this._chanMgr.get(t);"object"==typeof n&&null!==n&&(n.constructor!==ca||(n=n._channel,n))&&n._callbacks.length&&n._callbacks.shift()(!1)},CHANNEL_FAILURE:(e,t)=>{let n=this._chanMgr.get(t);"object"==typeof n&&null!==n&&(n.constructor!==ca||(n=n._channel,n))&&n._callbacks.length&&n._callbacks.shift()(!0)},CHANNEL_REQUEST:(e,t,n,i,s)=>{const o=this._chanMgr.get(t);if("object"!=typeof o||null===o)return;let a,c,l=!1;if(o.constructor===ca)if(i&&("shell"!==n&&"exec"!==n&&"subsystem"!==n&&(a=()=>{l||o._ending||o._channel||(l=!0,y.channelSuccess(o._chanInfo.outgoing.id))}),c=()=>{l||o._ending||o._channel||(l=!0,y.channelFailure(o._chanInfo.outgoing.id))}),o._ending)c&&c();else{switch(n){case"env":if(ko(o,"env"))return void o.emit("env",a,c,{key:s.name,val:s.value});break;case"pty-req":if(ko(o,"pty"))return void o.emit("pty",a,c,s);break;case"window-change":ko(o,"window-change")?o.emit("window-change",a,c,s):c&&c();break;case"x11-req":if(ko(o,"x11"))return void o.emit("x11",a,c,s);break;case"signal":if(ko(o,"signal"))return void o.emit("signal",a,c,{name:s});break;case"auth-agent-req@openssh.com":if(ko(o,"auth-agent"))return void o.emit("auth-agent",a,c);break;case"shell":if(ko(o,"shell"))return a=()=>{if(l||o._ending||o._channel)return;l=!0,i&&y.channelSuccess(o._chanInfo.outgoing.id);const e=new Go(this,o._chanInfo,{server:!0});return e.subtype=o.subtype=n,o._channel=e,e},void o.emit("shell",a,c);break;case"exec":if(ko(o,"exec"))return a=()=>{if(l||o._ending||o._channel)return;l=!0,i&&y.channelSuccess(o._chanInfo.outgoing.id);const e=new Go(this,o._chanInfo,{server:!0});return e.subtype=o.subtype=n,o._channel=e,e},void o.emit("exec",a,c,{command:s});break;case"subsystem":{let e="sftp"===s;if(a=()=>{if(l||o._ending||o._channel)return;let t;return l=!0,i&&y.channelSuccess(o._chanInfo.outgoing.id),e?t=new qo(this,o._chanInfo,{server:!0,debug:r}):(t=new Go(this,o._chanInfo,{server:!0}),t.subtype=o.subtype=`${n}:${s}`),o._channel=t,t},"sftp"===s){if(ko(o,"sftp"))return void o.emit("sftp",a,c);e=!1}if(ko(o,"subsystem"))return void o.emit("subsystem",a,c,{name:s});break}}r&&r(`Automatic rejection of incoming channel request: ${n}`),c&&c()}else i&&y.channelFailure(o.outgoing.id)},CHANNEL_EOF:(e,t)=>{let n=this._chanMgr.get(t);"object"==typeof n&&null!==n&&(n.constructor!==ca||(n._ending||(n._ending=!0,n.emit("eof"),n.emit("end")),n=n._channel,n))&&"open"===n.incoming.state&&(n.incoming.state="eof",n.readable&&n.push(null))},CHANNEL_CLOSE:(e,t)=>{let n=this._chanMgr.get(t);"object"==typeof n&&null!==n&&(n.constructor!==ca||(n._ending=!0,n.emit("close"),n=n._channel,n))&&na(this,t,n)},SERVICE_REQUEST:(t,n)=>{if(0===u||p||this.authenticated||"ssh-userauth"!==n)return y.disconnect(Lo.SERVICE_NOT_AVAILABLE),void e.end();p=!0,y.serviceAccept(n)},USERAUTH_REQUEST:(t,n,i,r,s)=>{if(0===u||this.authenticated||a&&(a.username!==n||a.service!==i)||"password"!==r&&"publickey"!==r&&"hostbased"!==r&&"keyboard-interactive"!==r&&"none"!==r||10===d.length)return y.disconnect(Lo.PROTOCOL_ERROR),void e.end();if("ssh-connection"!==i)return y.disconnect(Lo.SERVICE_NOT_AVAILABLE),void e.end();let o;switch(r){case"keyboard-interactive":o=new ra(y,n,i,r,s,v);break;case"publickey":o=new sa(y,n,i,r,s,v);break;case"hostbased":o=new oa(y,n,i,r,s,v);break;case"password":if(a&&a instanceof aa&&a._changeCb){const e=a._changeCb;return a._changeCb=void 0,void e(s.newPassword)}o=new aa(y,n,i,r,s,v);break;case"none":o=new ia(y,n,i,r,v)}if(a){if(!a._initialResponse)return d.push(o);a._multistep&&!a._finalResponse&&(a._cleanup&&a._cleanup(),a.emit("abort"))}a=o,ko(this,"authentication")?this.emit("authentication",a):a.reject()},USERAUTH_INFO_RESPONSE:(e,t)=>{a&&a instanceof ra&&a._onInfoResponse(t)},GLOBAL_REQUEST:(e,t,n,i)=>{const r={type:null,buf:null};function s(e,t){r.type=e,r.buf=t,function(){for(;h.length>0&&h[0].type;){const e=h.shift();"SUCCESS"===e.type&&y.requestSuccess(e.buf),"FAILURE"===e.type&&y.requestFailure()}}()}if(n&&h.push(r),("tcpip-forward"===t||"cancel-tcpip-forward"===t||"no-more-sessions@openssh.com"===t||"streamlocal-forward@openssh.com"===t||"cancel-streamlocal-forward@openssh.com"===t)&&ko(this,"request")&&this.authenticated){let e,r;if(n){let n=!1;e=e=>{if(n)return;let r;n=!0,"tcpip-forward"===t&&0===i.bindPort&&"number"==typeof e&&(r=Buffer.allocUnsafe(4),Yo(r,e,0)),s("SUCCESS",r)},r=()=>{n||(n=!0,s("FAILURE"))}}if("no-more-sessions@openssh.com"===t)return this.noMoreSessions=!0,void(e&&e());this.emit("request",e,r,t,i)}else n&&s("FAILURE")}}});e.pause(),jo.then(()=>{y.start(),e.on("data",t=>{try{y.parse(t,0,t.length)}catch(t){this.emit("error",t);try{ea(e)&&e.end()}catch{}}}),e.resume()}).catch(t=>{this.emit("error",t);try{ea(e)&&e.end()}catch{}}),e.on("error",e=>{e.level="socket",this.emit("error",e)}).once("end",()=>{r&&r("Socket ended"),y.cleanup(),this.emit("end")}).once("close",()=>{r&&r("Socket closed"),y.cleanup(),this.emit("close");const e=new Error("No response from server");this._chanMgr.cleanup(e)});const v=(e,t,n,i)=>{a!==e||this.authenticated||(t?(a=void 0,this.authenticated=!0,y.authSuccess(),d=[],this.emit("ready")):(y.authFailure(n,i),d.length&&(a=d.pop(),ko(this,"authentication")?this.emit("authentication",a):a.reject())))}}end(){return this._sock&&ea(this._sock)&&(this._protocol.disconnect(Lo.BY_APPLICATION),this._sock.end()),this}x11(e,t,n){return pa(this,"x11",{originAddr:e,originPort:t},n),this}forwardOut(e,t,n,i,r){return pa(this,"forwarded-tcpip",{boundAddr:e,boundPort:t,remoteAddr:n,remotePort:i},r),this}openssh_forwardOutStreamLocal(e,t){return pa(this,"forwarded-streamlocal@openssh.com",{socketPath:e},t),this}rekey(e){let t;try{this._protocol.rekey()}catch(e){t=e}"function"==typeof e&&(t?process.nextTick(e,t):this.once("rekey",e))}setNoDelay(e){return this._sock&&"function"==typeof this._sock.setNoDelay&&this._sock.setNoDelay(e),this}};function pa(e,t,n,i){const r=Ko,s=zo;"function"==typeof n&&(i=n,n={});const o=(e,t)=>{i(e,t)};o.type=t;const a=e._chanMgr.add(o);if(-1!==a)switch(t){case"forwarded-tcpip":e._protocol.forwardedTcpip(a,r,s,n);break;case"x11":e._protocol.x11(a,r,s,n);break;case"forwarded-streamlocal@openssh.com":e._protocol.openssh_forwardedStreamLocal(a,r,s,n);break;default:throw new Error(`Unsupported channel type: ${t}`)}else i(new Error("No free channels available"))}function da(e,t){return e-t}xo.exports=la,xo.exports.IncomingClient=ua;var ha=xo.exports;const{createCipheriv:fa,generateKeyPair:ma,generateKeyPairSync:ga,getCurves:_a,randomBytes:ba}=o,{Ber:ya}=K,va=oe,{CIPHER_INFO:Aa}=me(),Ea=_a(),wa=new Map(Object.entries(Aa));function xa(e,t){if("string"!=typeof e)throw new TypeError("Key type must be a string");const n={type:"spki",format:"der"},i={type:"pkcs8",format:"der"};switch(e.toLowerCase()){case"rsa":{if("object"!=typeof t||null===t)throw new TypeError("Missing options object for RSA key");const e=t.bits;if(!Number.isInteger(e))throw new TypeError("RSA bits must be an integer");if(e<=0||e>16384)throw new RangeError("RSA bits must be non-zero and <= 16384");return["rsa",{modulusLength:e,publicKeyEncoding:n,privateKeyEncoding:i}]}case"ecdsa":{if("object"!=typeof t||null===t)throw new TypeError("Missing options object for ECDSA key");if(!Number.isInteger(t.bits))throw new TypeError("ECDSA bits must be an integer");let e;switch(t.bits){case 256:e="prime256v1";break;case 384:e="secp384r1";break;case 521:e="secp521r1";break;default:throw new Error("ECDSA bits must be 256, 384, or 521")}if(!Ea.includes(e))throw new Error("Unsupported ECDSA bits value");return["ec",{namedCurve:e,publicKeyEncoding:n,privateKeyEncoding:i}]}case"ed25519":return["ed25519",{publicKeyEncoding:n,privateKeyEncoding:i}];default:throw new Error(`Unsupported key type: ${e}`)}}function Sa(e,t,n,i){let r,s="new",o="";if("object"==typeof i&&null!==i&&("string"==typeof i.comment&&i.comment&&(o=i.comment),"string"==typeof i.format&&i.format&&(s=i.format),i.passphrase)){let e;if("string"==typeof i.passphrase)e=Buffer.from(i.passphrase);else{if(!Buffer.isBuffer(i.passphrase))throw new Error("Invalid passphrase");e=i.passphrase}if(void 0===i.cipher)throw new Error("Missing cipher name");const t=wa.get(i.cipher);if(void 0===t)throw new Error("Invalid cipher name");if("new"===s){let n=16;if(void 0!==i.rounds){if(!Number.isInteger(i.rounds))throw new TypeError("rounds must be an integer");i.rounds>0&&(n=i.rounds)}const s=Buffer.allocUnsafe(t.keyLen+t.ivLen),o=ba(16);if(0!==va(e,e.length,o,o.length,s,s.length,n))return new Error("Failed to generate information to encrypt key");const a=Buffer.allocUnsafe(4+o.length+4);{let e=0;a.writeUInt32BE(o.length,e+=0),a.set(o,e+=4),a.writeUInt32BE(n,e+=o.length)}r={cipher:t,cipherName:i.cipher,kdfName:"bcrypt",kdfOptions:a,key:s.slice(0,t.keyLen),iv:s.slice(t.keyLen)}}}if("new"===s){let i,s="-----BEGIN OPENSSH PRIVATE KEY-----\n";const a=Buffer.from(r?r.cipherName:"none"),c=Buffer.from(r?r.kdfName:"none"),l=r?r.kdfOptions:Buffer.alloc(0),u=r?r.cipher.blockLen:8,p=function(e,t,n){switch(e){case"rsa":{let e=new ya.Reader(n);if(e.readSequence(),0!==e.readInt())throw new Error("Unsupported version in RSA private key");if(e.readSequence(),"1.2.840.113549.1.1.1"!==e.readOID())throw new Error("Bad RSA private OID");if(e.readByte()!==ya.Null)throw new Error("Malformed RSA private key (expected null)");if(0!==e.readByte())throw new Error("Malformed RSA private key (expected zero-length null)");if(e=new ya.Reader(e.readString(ya.OctetString,!0)),e.readSequence(),0!==e.readInt())throw new Error("Unsupported version in RSA private key");const t=e.readString(ya.Integer,!0),i=e.readString(ya.Integer,!0),r=e.readString(ya.Integer,!0),s=e.readString(ya.Integer,!0),o=e.readString(ya.Integer,!0);e.readString(ya.Integer,!0),e.readString(ya.Integer,!0);const a=e.readString(ya.Integer,!0),c=Buffer.from("ssh-rsa"),l=Buffer.allocUnsafe(4+c.length+4+t.length+4+i.length+4+r.length+4+a.length+4+s.length+4+o.length);let u=0;l.writeUInt32BE(c.length,u+=0),l.set(c,u+=4),l.writeUInt32BE(t.length,u+=c.length),l.set(t,u+=4),l.writeUInt32BE(i.length,u+=t.length),l.set(i,u+=4),l.writeUInt32BE(r.length,u+=i.length),l.set(r,u+=4),l.writeUInt32BE(a.length,u+=r.length),l.set(a,u+=4),l.writeUInt32BE(s.length,u+=a.length),l.set(s,u+=4),l.writeUInt32BE(o.length,u+=s.length),l.set(o,u+=4);const p=Buffer.allocUnsafe(4+c.length+4+i.length+4+t.length);return u=0,p.writeUInt32BE(c.length,u+=0),p.set(c,u+=4),p.writeUInt32BE(i.length,u+=c.length),p.set(i,u+=4),p.writeUInt32BE(t.length,u+=i.length),p.set(t,u+=4),{sshName:c.toString(),priv:l,pub:p}}case"ec":{let e=new ya.Reader(t);if(e.readSequence(),e.readSequence(),"1.2.840.10045.2.1"!==e.readOID())throw new Error("Bad ECDSA public OID");e.readOID();let i,r=e.readString(ya.BitString,!0);{let e=0;for(;e<r.length&&0===r[e];++e);e>0&&(r=r.slice(e))}if(e=new ya.Reader(n),e.readSequence(),0!==e.readInt())throw new Error("Unsupported version in ECDSA private key");if(e.readSequence(),"1.2.840.10045.2.1"!==e.readOID())throw new Error("Bad ECDSA private OID");switch(e.readOID()){case"1.2.840.10045.3.1.7":i="nistp256";break;case"1.3.132.0.34":i="nistp384";break;case"1.3.132.0.35":i="nistp521";break;default:throw new Error("Unsupported curve in ECDSA private key")}if(e=new ya.Reader(e.readString(ya.OctetString,!0)),e.readSequence(),1!==e.readInt())throw new Error("Unsupported version in ECDSA private key");const s=Buffer.concat([Buffer.from([0]),e.readString(ya.OctetString,!0)]),o=Buffer.from(`ecdsa-sha2-${i}`);i=Buffer.from(i);const a=Buffer.allocUnsafe(4+o.length+4+i.length+4+r.length+4+s.length);let c=0;a.writeUInt32BE(o.length,c+=0),a.set(o,c+=4),a.writeUInt32BE(i.length,c+=o.length),a.set(i,c+=4),a.writeUInt32BE(r.length,c+=i.length),a.set(r,c+=4),a.writeUInt32BE(s.length,c+=r.length),a.set(s,c+=4);const l=Buffer.allocUnsafe(4+o.length+4+i.length+4+r.length);return c=0,l.writeUInt32BE(o.length,c+=0),l.set(o,c+=4),l.writeUInt32BE(i.length,c+=o.length),l.set(i,c+=4),l.writeUInt32BE(r.length,c+=i.length),l.set(r,c+=4),{sshName:o.toString(),priv:a,pub:l}}case"ed25519":{let e=new ya.Reader(t);if(e.readSequence(),e.readSequence(),"1.3.101.112"!==e.readOID())throw new Error("Bad ED25519 public OID");let i=e.readString(ya.BitString,!0);{let e=0;for(;e<i.length&&0===i[e];++e);e>0&&(i=i.slice(e))}if(e=new ya.Reader(n),e.readSequence(),0!==e.readInt())throw new Error("Unsupported version in ED25519 private key");if(e.readSequence(),"1.3.101.112"!==e.readOID())throw new Error("Bad ED25519 private OID");e=new ya.Reader(e.readString(ya.OctetString,!0));const r=e.readString(ya.OctetString,!0),s=Buffer.from("ssh-ed25519"),o=Buffer.allocUnsafe(4+s.length+4+i.length+4+(r.length+i.length));let a=0;o.writeUInt32BE(s.length,a+=0),o.set(s,a+=4),o.writeUInt32BE(i.length,a+=s.length),o.set(i,a+=4),o.writeUInt32BE(r.length+i.length,a+=i.length),o.set(r,a+=4),o.set(i,a+=r.length);const c=Buffer.allocUnsafe(4+s.length+4+i.length);return a=0,c.writeUInt32BE(s.length,a+=0),c.set(s,a+=4),c.writeUInt32BE(i.length,a+=s.length),c.set(i,a+=4),{sshName:s.toString(),priv:o,pub:c}}}}(e,t,n),d=ba(4),h=Buffer.from(o),f=8+p.priv.length+4+h.length;let m=[];for(let e=1;(f+m.length)%u;++e)m.push(255&e);m=Buffer.from(m);let g,_=Buffer.allocUnsafe(f+m.length);{let e=0;_.set(d,e+=0),_.set(d,e+=4),_.set(p.priv,e+=4),_.writeUInt32BE(h.length,e+=p.priv.length),_.set(h,e+=4),_.set(m,e+=h.length)}if(r){const e={authTagLength:r.cipher.authLen},t=fa(r.cipher.sslName,r.key,r.iv,e);t.setAutoPadding(!1),_=Buffer.concat([t.update(_),t.final()]),g=r.cipher.authLen>0?t.getAuthTag():Buffer.alloc(0),r.key.fill(0),r.iv.fill(0)}else g=Buffer.alloc(0);const b=Buffer.from("openssh-key-v1\0"),y=Buffer.allocUnsafe(b.length+4+a.length+4+c.length+4+l.length+4+4+p.pub.length+4+_.length+g.length);{let e=0;y.set(b,e+=0),y.writeUInt32BE(a.length,e+=b.length),y.set(a,e+=4),y.writeUInt32BE(c.length,e+=a.length),y.set(c,e+=4),y.writeUInt32BE(l.length,e+=c.length),y.set(l,e+=4),y.writeUInt32BE(1,e+=l.length),y.writeUInt32BE(p.pub.length,e+=4),y.set(p.pub,e+=4),y.writeUInt32BE(_.length,e+=p.pub.length),y.set(_,e+=4),y.set(g,e+=_.length)}{const e=y.base64Slice(0,y.length);let t=e.replace(/.{64}/g,"$&\n");63&e.length&&(t+="\n"),s+=t}{const e=p.pub.base64Slice(0,p.pub.length);i=`${p.sshName} ${e}${o?` ${o}`:""}`}return s+="-----END OPENSSH PRIVATE KEY-----\n",{private:s,public:i}}throw new Error("Invalid output key format")}function Ia(){}var ka={generateKeyPair:(e,t,n)=>{"function"==typeof t&&(n=t,t=void 0),"function"!=typeof n&&(n=Ia);const i=xa(e,t);ma(...i,(e,r,s)=>{if(e)return n(e);let o;try{o=Sa(i[0],r,s,t)}catch(e){return n(e)}n(null,o)})},generateKeyPairSync:(e,t)=>{const n=xa(e,t),{publicKey:i,privateKey:r}=ga(...n);return Sa(n[0],i,r,t)}};const{AgentProtocol:Ca,BaseAgent:Ra,createAgent:Ba,CygwinAgent:Ta,OpenSSHAgent:Oa,PageantAgent:Na}=Qt,{SSHTTPAgent:La,SSHTTPSAgent:Pa}=Wt,{parseKey:Ua}=ft,{flagsToString:Da,OPEN_MODE:Ma,STATUS_CODE:Ha,stringToFlags:Fa}=Jr;var ja,$a,Qa,Wa,qa,Ya,Ga={AgentProtocol:Ca,BaseAgent:Ra,createAgent:Ba,Client:wo,CygwinAgent:Ta,HTTPAgent:La,HTTPSAgent:Pa,OpenSSHAgent:Oa,PageantAgent:Na,Server:ha,utils:{parseKey:Ua,...ka,sftp:{flagsToString:Da,OPEN_MODE:Ma,STATUS_CODE:Ha,stringToFlags:Fa}}},Ka={exports:{}};function za(){return $a?ja:($a=1,ja=n)}function Xa(){if(Wa)return Qa;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=r(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,r(i.key),i)}}function r(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)}Wa=1;var s=c.Buffer,o=f.inspect,a=o&&o.custom||"inspect";function l(e,t,n){s.prototype.copy.call(e,t,n)}return Qa=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,c;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 s.alloc(0);for(var t=s.allocUnsafe(e>>>0),n=this.head,i=0;n;)l(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,s=e>r.length?r.length:e;if(s===r.length?i+=r:i+=r.slice(0,e),0===(e-=s)){s===r.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=r.slice(s));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(e){var t=s.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:a,value:function(e,n){return o(this,t(t({},n),{},{depth:0,customInspect:!1}))}}])&&i(n.prototype,r),c&&i(n,c),Object.defineProperty(n,"prototype",{writable:!1}),e}(),Qa}function Va(){if(Ya)return qa;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 Ya=1,qa={destroy:function(i,r){var s=this,o=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return o||a?(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?s._writableState?s._writableState.errorEmitted?process.nextTick(t,s):(s._writableState.errorEmitted=!0,process.nextTick(e,s,n)):process.nextTick(e,s,n):r?(process.nextTick(t,s),r(n)):process.nextTick(t,s)}),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)}},qa}var Ja,Za,ec,tc={};function nc(){if(Ja)return tc;Ja=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 s,o;let a;if("string"==typeof t&&(s="not ",t.substr(!o||o<0?0:+o,s.length)===s)?(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"))a=`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";a=`The "${e}" ${i} ${r} ${n(t,"type")}`}return a+=". Received type "+typeof i,a},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"),tc.codes=e,tc}function ic(){if(ec)return Za;ec=1;var e=nc().codes.ERR_INVALID_OPT_VALUE;return Za={getHighWaterMark:function(t,n,i,r){var s=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(n,r,i);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new e(r?i:"highWaterMark",s);return Math.floor(s)}return t.objectMode?16:16384}},Za}var rc,sc={exports:{}},oc={exports:{}};try{var ac=require("util");if("function"!=typeof ac.inherits)throw"";sc.exports=ac.inherits}catch(zx){sc.exports=(rc||(rc=1,"function"==typeof Object.create?oc.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:oc.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}),oc.exports)}var cc,lc,uc,pc,dc,hc,fc=sc.exports;function mc(){if(pc)return uc;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;pc=1,uc=x,x.WritableState=E;var n={deprecate:lc?cc:(lc=1,cc=f.deprecate)},i=za(),r=c.Buffer,s=(void 0!==w?w:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var o,a=Va(),l=ic().getHighWaterMark,u=nc().codes,p=u.ERR_INVALID_ARG_TYPE,d=u.ERR_METHOD_NOT_IMPLEMENTED,h=u.ERR_MULTIPLE_CALLBACK,m=u.ERR_STREAM_CANNOT_PIPE,g=u.ERR_STREAM_DESTROYED,_=u.ERR_STREAM_NULL_VALUES,b=u.ERR_STREAM_WRITE_AFTER_END,y=u.ERR_UNKNOWN_ENCODING,v=a.errorOrDestroy;function A(){}function E(n,i,r){t=t||gc(),n=n||{},"boolean"!=typeof r&&(r=i instanceof t),this.objectMode=!!n.objectMode,r&&(this.objectMode=this.objectMode||!!n.writableObjectMode),this.highWaterMark=l(this,n,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===n.decodeStrings;this.decodeStrings=!s,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 h;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(B,e,t),e._writableState.errorEmitted=!0,v(e,i)):(r(i),e._writableState.errorEmitted=!0,v(e,i),B(e,t))}(e,n,i,t,r);else{var s=C(n)||e.destroyed;s||n.corked||n.bufferProcessing||!n.bufferedRequest||k(e,n),i?process.nextTick(I,e,n,s,r):I(e,n,s,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 x(e){var n=this instanceof(t=t||gc());if(!n&&!o.call(x,this))return new x(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 S(e,t,n,i,r,s,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new g("write")):n?e._writev(r,t.onwrite):e._write(r,s,t.onwrite),t.sync=!1}function I(e,t,n,i){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,i(),B(e,t)}function k(t,n){n.bufferProcessing=!0;var i=n.bufferedRequest;if(t._writev&&i&&i.next){var r=n.bufferedRequestCount,s=new Array(r),o=n.corkedRequestsFree;o.entry=i;for(var a=0,c=!0;i;)s[a]=i,i.isBuf||(c=!1),i=i.next,a+=1;s.allBuffers=c,S(t,n,!0,n.length,s,"",o.finish),n.pendingcb++,n.lastBufferedRequest=null,o.next?(n.corkedRequestsFree=o.next,o.next=null):n.corkedRequestsFree=new e(n),n.bufferedRequestCount=0}else{for(;i;){var l=i.chunk,u=i.encoding,p=i.callback;if(S(t,n,!1,n.objectMode?1:l.length,l,u,p),i=i.next,n.bufferedRequestCount--,n.writing)break}null===i&&(n.lastBufferedRequest=null)}n.bufferedRequest=i,n.bufferProcessing=!1}function C(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function R(e,t){e._final(function(n){t.pendingcb--,n&&v(e,n),t.prefinished=!0,e.emit("prefinish"),B(e,t)})}function B(e,t){var n=C(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(R,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 fc(x,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]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:function(e){return!!o.call(this,e)||this===x&&(e&&e._writableState instanceof E)}})):o=function(e){return e instanceof this},x.prototype.pipe=function(){v(this,new m)},x.prototype.write=function(e,t,n){var i,o=this._writableState,a=!1,c=!o.objectMode&&(i=e,r.isBuffer(i)||i instanceof s);return c&&!r.isBuffer(e)&&(e=function(e){return r.from(e)}(e)),"function"==typeof t&&(n=t,t=null),c?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=A),o.ending?function(e,t){var n=new b;v(e,n),process.nextTick(t,n)}(this,n):(c||function(e,t,n,i){var r;return null===n?r=new _:"string"==typeof n||t.objectMode||(r=new p("chunk",["string","Buffer"],n)),!r||(v(e,r),process.nextTick(i,r),!1)}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,i,s,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=r.from(t,n));return t}(t,i,s);i!==a&&(n=!0,s="buffer",i=a)}var c=t.objectMode?1:i.length;t.length+=c;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:s,isBuf:n,callback:o,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else S(e,t,!1,c,i,s,o);return l}(this,o,c,e,t,n)),a},x.prototype.cork=function(){this._writableState.corked++},x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||k(this,e))},x.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(x.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),x.prototype._write=function(e,t,n){n(new d("_write()"))},x.prototype._writev=null,x.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,B(e,t),n&&(t.finished?process.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,i,n),this},Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),x.prototype.destroy=a.destroy,x.prototype._undestroy=a.undestroy,x.prototype._destroy=function(e,t){t(e)},uc}function gc(){if(hc)return dc;hc=1;var e=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};dc=o;var t=Hc(),n=mc();fc(o,t);for(var i=e(n.prototype),r=0;r<i.length;r++){var s=i[r];o.prototype[s]||(o.prototype[s]=n.prototype[s])}function o(e){if(!(this instanceof o))return new o(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",a)))}function a(){this._writableState.ended||process.nextTick(c,this)}function c(e){e.end()}return Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(o.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)}}),dc}var _c,bc,yc,vc,Ac,Ec,wc,xc,Sc,Ic,kc,Cc,Rc,Bc,Tc,Oc,Nc={},Lc={exports:{}};function Pc(){if(bc)return Nc;bc=1;var e=(_c||(_c=1,function(e,t){var n=c,i=n.Buffer;function r(e,t){for(var n in e)t[n]=e[n]}function s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(r(n,t),t.Buffer=s),s.prototype=Object.create(i.prototype),r(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.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},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(Lc,Lc.exports)),Lc.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=s,this.end=o,i=4;break;case"utf8":this.fillLast=r,i=4;break;case"base64":this.text=a,this.end=l,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){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 s(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 o(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 a(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 l(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 Nc.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 s=i(t[r]);if(s>=0)return s>0&&(e.lastNeed=s-1),s;if(--r<n||-2===s)return 0;if(s=i(t[r]),s>=0)return s>0&&(e.lastNeed=s-2),s;if(--r<n||-2===s)return 0;if(s=i(t[r]),s>=0)return s>0&&(2===s?s=0:e.lastNeed=s-3),s;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},Nc}function Uc(){if(vc)return yc;vc=1;var e=nc().codes.ERR_STREAM_PREMATURE_CLOSE;function t(){}return yc=function n(i,r,s){if("function"==typeof r)return n(i,null,r);r||(r={}),s=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)}}}(s||t);var o=r.readable||!1!==r.readable&&i.readable,a=r.writable||!1!==r.writable&&i.writable,c=function(){i.writable||u()},l=i._writableState&&i._writableState.finished,u=function(){a=!1,l=!0,o||s.call(i)},p=i._readableState&&i._readableState.endEmitted,d=function(){o=!1,p=!0,a||s.call(i)},h=function(e){s.call(i,e)},f=function(){var t;return o&&!p?(i._readableState&&i._readableState.ended||(t=new e),s.call(i,t)):a&&!l?(i._writableState&&i._writableState.ended||(t=new e),s.call(i,t)):void 0},m=function(){i.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(i)?a&&!i._writableState&&(i.on("end",c),i.on("close",c)):(i.on("complete",u),i.on("abort",f),i.req?m():i.on("request",m)),i.on("end",d),i.on("finish",u),!1!==r.error&&i.on("error",h),i.on("close",f),function(){i.removeListener("complete",u),i.removeListener("abort",f),i.removeListener("request",m),i.req&&i.req.removeListener("finish",u),i.removeListener("end",c),i.removeListener("close",c),i.removeListener("finish",u),i.removeListener("end",d),i.removeListener("error",h),i.removeListener("close",f)}},yc}function Dc(){if(Ec)return Ac;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}Ec=1;var n=Uc(),i=Symbol("lastResolve"),r=Symbol("lastReject"),s=Symbol("error"),o=Symbol("ended"),a=Symbol("lastPromise"),c=Symbol("handlePromise"),l=Symbol("stream");function u(e,t){return{value:e,done:t}}function p(e){var t=e[i];if(null!==t){var n=e[l].read();null!==n&&(e[a]=null,e[i]=null,e[r]=null,t(u(n,!1)))}}function d(e){process.nextTick(p,e)}var h=Object.getPrototypeOf(function(){}),f=Object.setPrototypeOf((e={get stream(){return this[l]},next:function(){var e=this,t=this[s];if(null!==t)return Promise.reject(t);if(this[o])return Promise.resolve(u(void 0,!0));if(this[l].destroyed)return new Promise(function(t,n){process.nextTick(function(){e[s]?n(e[s]):t(u(void 0,!0))})});var n,i=this[a];if(i)n=new Promise(function(e,t){return function(n,i){e.then(function(){t[o]?n(u(void 0,!0)):t[c](n,i)},i)}}(i,this));else{var r=this[l].read();if(null!==r)return Promise.resolve(u(r,!1));n=new Promise(this[c])}return this[a]=n,n}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var e=this;return new Promise(function(t,n){e[l].destroy(null,function(e){e?n(e):t(u(void 0,!0))})})}),e),h);return Ac=function(e){var p,h=Object.create(f,(t(p={},l,{value:e,writable:!0}),t(p,i,{value:null,writable:!0}),t(p,r,{value:null,writable:!0}),t(p,s,{value:null,writable:!0}),t(p,o,{value:e._readableState.endEmitted,writable:!0}),t(p,c,{value:function(e,t){var n=h[l].read();n?(h[a]=null,h[i]=null,h[r]=null,e(u(n,!1))):(h[i]=e,h[r]=t)},writable:!0}),p));return h[a]=null,n(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=h[r];return null!==t&&(h[a]=null,h[i]=null,h[r]=null,t(e)),void(h[s]=e)}var n=h[i];null!==n&&(h[a]=null,h[i]=null,h[r]=null,n(u(void 0,!0))),h[o]=!0}),e.on("readable",d.bind(null,h)),h},Ac}function Mc(){if(xc)return wc;function e(e,t,n,i,r,s,o){try{var a=e[s](o),c=a.value}catch(e){return void n(e)}a.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}xc=1;var i=nc().codes.ERR_INVALID_ARG_TYPE;return wc=function(r,s,o){var a;if(s&&"function"==typeof s.next)a=s;else if(s&&s[Symbol.asyncIterator])a=s[Symbol.asyncIterator]();else{if(!s||!s[Symbol.iterator])throw new i("iterable",["Iterable"],s);a=s[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},o)),l=!1;function u(){return p.apply(this,arguments)}function p(){var t;return t=function*(){try{var e=yield a.next(),t=e.value;e.done?c.push(null):c.push(yield t)?u():l=!1}catch(e){c.destroy(e)}},p=function(){var n=this,i=arguments;return new Promise(function(r,s){var o=t.apply(n,i);function a(t){e(o,r,s,a,c,"next",t)}function c(t){e(o,r,s,a,c,"throw",t)}a(void 0)})},p.apply(this,arguments)}return c._read=function(){l||(l=!0,u())},c},wc}function Hc(){if(Ic)return Sc;var e;Ic=1,Sc=S,S.ReadableState=x,h.EventEmitter;var t=function(e,t){return e.listeners(t).length},n=za(),i=c.Buffer,r=(void 0!==w?w:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var s,o=f;s=o&&o.debuglog?o.debuglog("stream"):function(){};var a,l,u,p=Xa(),d=Va(),m=ic().getHighWaterMark,g=nc().codes,_=g.ERR_INVALID_ARG_TYPE,b=g.ERR_STREAM_PUSH_AFTER_EOF,y=g.ERR_METHOD_NOT_IMPLEMENTED,v=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;fc(S,n);var A=d.errorOrDestroy,E=["error","close","destroy","pause","resume"];function x(t,n,i){e=e||gc(),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 p,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&&(a||(a=Pc().StringDecoder),this.decoder=new a(t.encoding),this.encoding=t.encoding)}function S(t){if(e=e||gc(),!(this instanceof S))return new S(t);var i=this instanceof e;this._readableState=new x(t,this,i),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),n.call(this)}function I(e,t,n,o,a){s("readableAddChunk",t);var c,l=e._readableState;if(null===t)l.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?B(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,T(e)))}(e,l);else if(a||(c=function(e,t){var n;s=t,i.isBuffer(s)||s instanceof r||"string"==typeof t||void 0===t||e.objectMode||(n=new _("chunk",["string","Buffer","Uint8Array"],t));var s;return n}(l,t)),c)A(e,c);else if(l.objectMode||t&&t.length>0)if("string"==typeof t||l.objectMode||Object.getPrototypeOf(t)===i.prototype||(t=function(e){return i.from(e)}(t)),o)l.endEmitted?A(e,new v):k(e,l,t,!0);else if(l.ended)A(e,new b);else{if(l.destroyed)return!1;l.reading=!1,l.decoder&&!n?(t=l.decoder.write(t),l.objectMode||0!==t.length?k(e,l,t,!1):O(e,l)):k(e,l,t,!1)}else o||(l.reading=!1,O(e,l));return!l.ended&&(l.length<l.highWaterMark||0===l.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&&B(e)),O(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=d.destroy,S.prototype._undestroy=d.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=i.from(e,t),t=""),n=!0),I(this,e,t,!1,n)},S.prototype.unshift=function(e){return I(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){a||(a=Pc().StringDecoder);var t=new a(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 C=1073741824;function R(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>=C?e=C:(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 B(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(T,e))}function T(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,D(e)}function O(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(N,e,t))}function N(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 L(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 P(e){s("readable nexttick read 0"),e.read(0)}function U(e,t){s("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(s("flow",t.flowing);t.flowing&&null!==e.read(););}function M(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(F,t,e))}function F(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 j(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1}return S.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):B(this),null;if(0===(e=R(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=R(n,t))),null===(i=e>0?M(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},S.prototype._read=function(e){A(this,new y("_read()"))},S.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",f),e.removeListener("drain",l),e.removeListener("error",d),e.removeListener("unpipe",a),i.removeListener("end",c),i.removeListener("end",m),i.removeListener("data",p),u=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function c(){s("onend"),e.end()}r.endEmitted?process.nextTick(o):i.once("end",o),e.on("unpipe",a);var l=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,D(e))}}(i);e.on("drain",l);var u=!1;function p(t){s("ondata");var n=e.write(t);s("dest.write",n),!1===n&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==j(r.pipes,e))&&!u&&(s("false write response, pause",r.awaitDrain),r.awaitDrain++),i.pause())}function d(n){s("onerror",n),m(),e.removeListener("error",d),0===t(e,"error")&&A(e,n)}function h(){e.removeListener("finish",f),m()}function f(){s("onfinish"),e.removeListener("close",h),m()}function m(){s("unpipe"),i.unpipe(e)}return i.on("data",p),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",d),e.once("close",h),e.once("finish",f),e.emit("pipe",i),r.flowing||(s("pipe resume"),i.resume()),e},S.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 s=0;s<r;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=j(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var i=n.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?B(this):r.reading||process.nextTick(P,this))),i},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var i=n.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(L,this),i},S.prototype.removeAllListeners=function(e){var t=n.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(L,this),t},S.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(U,e,t))}(this,e)),e.paused=!1,this},S.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},S.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&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===l&&(l=Dc()),l(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=M,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===u&&(u=Mc()),u(S,e,t)}),Sc}function Fc(){if(Cc)return kc;Cc=1,kc=a;var e=nc().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,s=gc();function o(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 s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);s.call(this,e),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",c)}function c(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?l(this,null,null):this._flush(function(t,n){l(e,t,n)})}function l(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 fc(a,s),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,s.prototype.push.call(this,e,t)},a.prototype._transform=function(e,n,i){i(new t("_transform()"))},a.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)}},a.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))},a.prototype._destroy=function(e,t){s.prototype._destroy.call(this,e,function(e){t(e)})},kc}function jc(){if(Oc)return Tc;var e;Oc=1;var t=nc().codes,n=t.ERR_MISSING_ARGS,i=t.ERR_STREAM_DESTROYED;function r(e){if(e)throw e}function s(e){e()}function o(e,t){return e.pipe(t)}return Tc=function(){for(var t=arguments.length,a=new Array(t),c=0;c<t;c++)a[c]=arguments[c];var l,u=function(e){return e.length?"function"!=typeof e[e.length-1]?r:e.pop():r}(a);if(Array.isArray(a[0])&&(a=a[0]),a.length<2)throw new n("streams");var p=a.map(function(t,n){var r=n<a.length-1;return function(t,n,r,s){s=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(s);var o=!1;t.on("close",function(){o=!0}),void 0===e&&(e=Uc()),e(t,{readable:n,writable:r},function(e){if(e)return s(e);o=!0,s()});var a=!1;return function(e){if(!o&&!a)return a=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void s(e||new i("pipe"))}}(t,r,n>0,function(e){l||(l=e),e&&p.forEach(s),r||(p.forEach(s),u(l))})});return a.reduce(o)},Tc}!function(e,t){var i=n;"disable"===process.env.READABLE_STREAM&&i?(e.exports=i.Readable,Object.assign(e.exports,i),e.exports.Stream=i):((t=e.exports=Hc()).Stream=i||t,t.Readable=t,t.Writable=mc(),t.Duplex=gc(),t.Transform=Fc(),t.PassThrough=function(){if(Bc)return Rc;Bc=1,Rc=t;var e=Fc();function t(n){if(!(this instanceof t))return new t(n);e.call(this,n)}return fc(t,e),t.prototype._transform=function(e,t,n){n(null,e)},Rc}(),t.finished=Uc(),t.pipeline=jc())}(Ka,Ka.exports);var $c=Ka.exports,Qc=Object.prototype.toString,Wc="undefined"!=typeof Buffer&&"function"==typeof Buffer.alloc&&"function"==typeof Buffer.allocUnsafe&&"function"==typeof Buffer.from;var qc,Yc=function(e,t,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return i=e,"ArrayBuffer"===Qc.call(i).slice(8,-1)?function(e,t,n){t>>>=0;var i=e.byteLength-t;if(i<0)throw new RangeError("'offset' is out of bounds");if(void 0===n)n=i;else if((n>>>=0)>i)throw new RangeError("'length' is out of bounds");return Wc?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}(e,t,n):"string"==typeof e?function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return Wc?Buffer.from(e,t):new Buffer(e,t)}(e,t):Wc?Buffer.from(e):new Buffer(e);var i},Gc={};var Kc=$c.Writable,zc=fc,Xc=Yc;if("undefined"==typeof Uint8Array)var Vc=(qc||(qc=1,function(e){var t,n,i,r=void 0,s=(t=Object.prototype.toString,n=Object.prototype.hasOwnProperty,{Class:function(e){return t.call(e).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,t){return n.call(e,t)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return 0|e},ToUint32:function(e){return e>>>0}}),o=Math.LN2,a=Math.abs,c=Math.floor,l=Math.log,u=Math.min,p=Math.pow,d=Math.round;function h(e){if(f&&i){var t,n=f(e);for(t=0;t<n.length;t+=1)i(e,n[t],{value:e[n[t]],writable:!1,enumerable:!1,configurable:!1})}}i=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}()?Object.defineProperty:function(e,t,n){if(!e===Object(e))throw new TypeError("Object.defineProperty called on non-object");return s.HasProperty(n,"get")&&Object.prototype.__defineGetter__&&Object.prototype.__defineGetter__.call(e,t,n.get),s.HasProperty(n,"set")&&Object.prototype.__defineSetter__&&Object.prototype.__defineSetter__.call(e,t,n.set),s.HasProperty(n,"value")&&(e[t]=n.value),e};var f=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,n=[];for(t in e)s.HasOwnProperty(e,t)&&n.push(t);return n};function m(e,t){var n=32-t;return e<<n>>n}function g(e,t){var n=32-t;return e<<n>>>n}function _(e){return[255&e]}function b(e){return m(e[0],8)}function y(e){return[255&e]}function v(e){return g(e[0],8)}function A(e){return[(e=d(Number(e)))<0?0:e>255?255:255&e]}function E(e){return[e>>8&255,255&e]}function w(e){return m(e[0]<<8|e[1],16)}function x(e){return[e>>8&255,255&e]}function S(e){return g(e[0]<<8|e[1],16)}function I(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function k(e){return m(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function C(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function R(e){return g(e[0]<<24|e[1]<<16|e[2]<<8|e[3],32)}function B(e,t,n){var i,r,s,d,h,f,m,g=(1<<t-1)-1;function _(e){var t=c(e),n=e-t;return n<.5?t:n>.5||t%2?t+1:t}for(e!=e?(r=(1<<t)-1,s=p(2,n-1),i=0):e===1/0||e===-1/0?(r=(1<<t)-1,s=0,i=e<0?1:0):0===e?(r=0,s=0,i=1/e==-1/0?1:0):(i=e<0,(e=a(e))>=p(2,1-g)?(r=u(c(l(e)/o),1023),(s=_(e/p(2,r)*p(2,n)))/p(2,n)>=2&&(r+=1,s=1),r>g?(r=(1<<t)-1,s=0):(r+=g,s-=p(2,n))):(r=0,s=_(e/p(2,1-g-n)))),h=[],d=n;d;d-=1)h.push(s%2?1:0),s=c(s/2);for(d=t;d;d-=1)h.push(r%2?1:0),r=c(r/2);for(h.push(i?1:0),h.reverse(),f=h.join(""),m=[];f.length;)m.push(parseInt(f.substring(0,8),2)),f=f.substring(8);return m}function T(e,t,n){var i,r,s,o,a,c,l,u,d=[];for(i=e.length;i;i-=1)for(s=e[i-1],r=8;r;r-=1)d.push(s%2?1:0),s>>=1;return d.reverse(),o=d.join(""),a=(1<<t-1)-1,c=parseInt(o.substring(0,1),2)?-1:1,l=parseInt(o.substring(1,1+t),2),u=parseInt(o.substring(1+t),2),l===(1<<t)-1?0!==u?NaN:c*(1/0):l>0?c*p(2,l-a)*(1+u/p(2,n)):0!==u?c*p(2,-(a-1))*(u/p(2,n)):c<0?-0:0}function O(e){return T(e,11,52)}function N(e){return B(e,11,52)}function L(e){return T(e,8,23)}function P(e){return B(e,8,23)}!function(){var t=function(e){if((e=s.ToInt32(e))<0)throw new RangeError("ArrayBuffer size is not a small enough positive integer");var t;for(this.byteLength=e,this._bytes=[],this._bytes.length=e,t=0;t<this.byteLength;t+=1)this._bytes[t]=0;h(this)};e.ArrayBuffer=e.ArrayBuffer||t;var n=function(){};function o(e,o,a){var c;return c=function(e,n,r){var o,a,l,u;if(arguments.length&&"number"!=typeof arguments[0])if("object"==typeof arguments[0]&&arguments[0].constructor===c)for(o=arguments[0],this.length=o.length,this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0,l=0;l<this.length;l+=1)this._setter(l,o._getter(l));else if("object"!=typeof arguments[0]||arguments[0]instanceof t||"ArrayBuffer"===s.Class(arguments[0])){if("object"!=typeof arguments[0]||!(arguments[0]instanceof t||"ArrayBuffer"===s.Class(arguments[0])))throw new TypeError("Unexpected argument type(s)");if(this.buffer=e,this.byteOffset=s.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteOffset%this.BYTES_PER_ELEMENT)throw new RangeError("ArrayBuffer length minus the byteOffset is not a multiple of the element size.");if(arguments.length<3){if(this.byteLength=this.buffer.byteLength-this.byteOffset,this.byteLength%this.BYTES_PER_ELEMENT)throw new RangeError("length of buffer minus byteOffset not a multiple of the element size");this.length=this.byteLength/this.BYTES_PER_ELEMENT}else this.length=s.ToUint32(r),this.byteLength=this.length*this.BYTES_PER_ELEMENT;if(this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer")}else for(a=arguments[0],this.length=s.ToUint32(a.length),this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0,l=0;l<this.length;l+=1)u=a[l],this._setter(l,Number(u));else{if(this.length=s.ToInt32(arguments[0]),r<0)throw new RangeError("ArrayBufferView size is not a small enough positive integer");this.byteLength=this.length*this.BYTES_PER_ELEMENT,this.buffer=new t(this.byteLength),this.byteOffset=0}this.constructor=c,h(this),function(e){if(i){if(e.length>1e5)throw new RangeError("Array too large for polyfill");var t;for(t=0;t<e.length;t+=1)n(t)}function n(t){i(e,t,{get:function(){return e._getter(t)},set:function(n){e._setter(t,n)},enumerable:!0,configurable:!1})}}(this)},c.prototype=new n,c.prototype.BYTES_PER_ELEMENT=e,c.prototype._pack=o,c.prototype._unpack=a,c.BYTES_PER_ELEMENT=e,c.prototype._getter=function(e){if(arguments.length<1)throw new SyntaxError("Not enough arguments");if((e=s.ToUint32(e))>=this.length)return r;var t,n,i=[];for(t=0,n=this.byteOffset+e*this.BYTES_PER_ELEMENT;t<this.BYTES_PER_ELEMENT;t+=1,n+=1)i.push(this.buffer._bytes[n]);return this._unpack(i)},c.prototype.get=c.prototype._getter,c.prototype._setter=function(e,t){if(arguments.length<2)throw new SyntaxError("Not enough arguments");if((e=s.ToUint32(e))>=this.length)return r;var n,i,o=this._pack(t);for(n=0,i=this.byteOffset+e*this.BYTES_PER_ELEMENT;n<this.BYTES_PER_ELEMENT;n+=1,i+=1)this.buffer._bytes[i]=o[n]},c.prototype.set=function(e,t){if(arguments.length<1)throw new SyntaxError("Not enough arguments");var n,i,r,o,a,c,l,u,p,d;if("object"==typeof arguments[0]&&arguments[0].constructor===this.constructor){if(n=arguments[0],(r=s.ToUint32(arguments[1]))+n.length>this.length)throw new RangeError("Offset plus length of array is out of range");if(u=this.byteOffset+r*this.BYTES_PER_ELEMENT,p=n.length*this.BYTES_PER_ELEMENT,n.buffer===this.buffer){for(d=[],a=0,c=n.byteOffset;a<p;a+=1,c+=1)d[a]=n.buffer._bytes[c];for(a=0,l=u;a<p;a+=1,l+=1)this.buffer._bytes[l]=d[a]}else for(a=0,c=n.byteOffset,l=u;a<p;a+=1,c+=1,l+=1)this.buffer._bytes[l]=n.buffer._bytes[c]}else{if("object"!=typeof arguments[0]||void 0===arguments[0].length)throw new TypeError("Unexpected argument type(s)");if(i=arguments[0],o=s.ToUint32(i.length),(r=s.ToUint32(arguments[1]))+o>this.length)throw new RangeError("Offset plus length of array is out of range");for(a=0;a<o;a+=1)c=i[a],this._setter(r+a,Number(c))}},c.prototype.subarray=function(e,t){function n(e,t,n){return e<t?t:e>n?n:e}e=s.ToInt32(e),t=s.ToInt32(t),arguments.length<1&&(e=0),arguments.length<2&&(t=this.length),e<0&&(e=this.length+e),t<0&&(t=this.length+t),e=n(e,0,this.length);var i=(t=n(t,0,this.length))-e;return i<0&&(i=0),new this.constructor(this.buffer,this.byteOffset+e*this.BYTES_PER_ELEMENT,i)},c}var a=o(1,_,b),c=o(1,y,v),l=o(1,A,v),u=o(2,E,w),p=o(2,x,S),d=o(4,I,k),f=o(4,C,R),m=o(4,P,L),g=o(8,N,O);e.Int8Array=e.Int8Array||a,e.Uint8Array=e.Uint8Array||c,e.Uint8ClampedArray=e.Uint8ClampedArray||l,e.Int16Array=e.Int16Array||u,e.Uint16Array=e.Uint16Array||p,e.Int32Array=e.Int32Array||d,e.Uint32Array=e.Uint32Array||f,e.Float32Array=e.Float32Array||m,e.Float64Array=e.Float64Array||g}(),function(){function t(e,t){return s.IsCallable(e.get)?e.get(t):e[t]}var n,i=(n=new e.Uint16Array([4660]),18===t(new e.Uint8Array(n.buffer),0)),r=function(t,n,i){if(0===arguments.length)t=new e.ArrayBuffer(0);else if(!(t instanceof e.ArrayBuffer||"ArrayBuffer"===s.Class(t)))throw new TypeError("TypeError");if(this.buffer=t||new e.ArrayBuffer(0),this.byteOffset=s.ToUint32(n),this.byteOffset>this.buffer.byteLength)throw new RangeError("byteOffset out of range");if(this.byteLength=arguments.length<3?this.buffer.byteLength-this.byteOffset:s.ToUint32(i),this.byteOffset+this.byteLength>this.buffer.byteLength)throw new RangeError("byteOffset and length reference an area beyond the end of the buffer");h(this)};function o(n){return function(r,o){if((r=s.ToUint32(r))+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");r+=this.byteOffset;var a,c=new e.Uint8Array(this.buffer,r,n.BYTES_PER_ELEMENT),l=[];for(a=0;a<n.BYTES_PER_ELEMENT;a+=1)l.push(t(c,a));return Boolean(o)===Boolean(i)&&l.reverse(),t(new n(new e.Uint8Array(l).buffer),0)}}function a(n){return function(r,o,a){if((r=s.ToUint32(r))+n.BYTES_PER_ELEMENT>this.byteLength)throw new RangeError("Array index out of range");var c,l=new n([o]),u=new e.Uint8Array(l.buffer),p=[];for(c=0;c<n.BYTES_PER_ELEMENT;c+=1)p.push(t(u,c));Boolean(a)===Boolean(i)&&p.reverse(),new e.Uint8Array(this.buffer,r,n.BYTES_PER_ELEMENT).set(p)}}r.prototype.getUint8=o(e.Uint8Array),r.prototype.getInt8=o(e.Int8Array),r.prototype.getUint16=o(e.Uint16Array),r.prototype.getInt16=o(e.Int16Array),r.prototype.getUint32=o(e.Uint32Array),r.prototype.getInt32=o(e.Int32Array),r.prototype.getFloat32=o(e.Float32Array),r.prototype.getFloat64=o(e.Float64Array),r.prototype.setUint8=a(e.Uint8Array),r.prototype.setInt8=a(e.Int8Array),r.prototype.setUint16=a(e.Uint16Array),r.prototype.setInt16=a(e.Int16Array),r.prototype.setUint32=a(e.Uint32Array),r.prototype.setInt32=a(e.Int32Array),r.prototype.setFloat32=a(e.Float32Array),r.prototype.setFloat64=a(e.Float64Array),e.DataView=e.DataView||r}()}(Gc)),Gc).Uint8Array;else Vc=Uint8Array;function Jc(e,t){if(!(this instanceof Jc))return new Jc(e,t);"function"==typeof e&&(t=e,e={}),e||(e={});var n=e.encoding,i=!1;n?"u8"!==(n=String(n).toLowerCase())&&"uint8"!==n||(n="uint8array"):i=!0,Kc.call(this,{objectMode:!0}),this.encoding=n,this.shouldInferEncoding=i,t&&this.on("finish",function(){t(this.getBody())}),this.body=[]}var Zc=Jc;function el(e){return"string"==typeof e||(t=e,/Array\]$/.test(Object.prototype.toString.call(t)))||e&&"function"==typeof e.subarray;var t}function tl(e,t){for(const n in t)Object.defineProperty(e,n,{value:t[n],enumerable:!0,configurable:!0});return e}zc(Jc,Kc),Jc.prototype._write=function(e,t,n){this.body.push(e),n()},Jc.prototype.inferEncoding=function(e){var t=void 0===e?this.body[0]:e;return Buffer.isBuffer(t)?"buffer":"undefined"!=typeof Uint8Array&&t instanceof Uint8Array?"uint8array":Array.isArray(t)?"array":"string"==typeof t?"string":"[object Object]"===Object.prototype.toString.call(t)?"object":"buffer"},Jc.prototype.getBody=function(){return this.encoding||0!==this.body.length?(this.shouldInferEncoding&&(this.encoding=this.inferEncoding()),"array"===this.encoding?function(e){for(var t=[],n=0;n<e.length;n++)t.push.apply(t,e[n]);return t}(this.body):"string"===this.encoding?function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];"string"==typeof i||Buffer.isBuffer(i)?t.push(i):el(i)?t.push(Xc(i)):t.push(Xc(String(i)))}t=Buffer.isBuffer(e[0])?(t=Buffer.concat(t)).toString("utf8"):t.join("");return t}(this.body):"buffer"===this.encoding?function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Buffer.isBuffer(i)?t.push(i):el(i)?t.push(Xc(i)):t.push(Xc(String(i)))}return Buffer.concat(t)}(this.body):"uint8array"===this.encoding?function(e){for(var t=0,n=0;n<e.length;n++)"string"==typeof e[n]&&(e[n]=Xc(e[n])),t+=e[n].length;for(var i=new Vc(t),r=(n=0,0);n<e.length;n++)for(var s=e[n],o=0;o<s.length;o++)i[r++]=s[o];return i}(this.body):this.body):[]};var nl=function(e,t,n){if(!e||"string"==typeof e)throw new TypeError("Please pass an Error to err-code");n||(n={}),"object"==typeof t&&(n=t,t=void 0),null!=t&&(n.code=t);try{return tl(e,n)}catch(t){n.message=e.message,n.stack=e.stack;const i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(e)),tl(new i,n)}},il={};function rl(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}var sl=rl;rl.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts},rl.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null},rl.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=(new Date).getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var n=this._timeouts.shift();if(void 0===n){if(!this._cachedTimeouts)return!1;this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),n=this._timeouts.shift()}var i=this,r=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},n);return this._options.unref&&r.unref(),!0},rl.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var n=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){n._operationTimeoutCb()},n._operationTimeout)),this._operationStart=(new Date).getTime(),this._fn(this._attempts)},rl.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},rl.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},rl.prototype.start=rl.prototype.try,rl.prototype.errors=function(){return this._errors},rl.prototype.attempts=function(){return this._attempts},rl.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,n=0,i=0;i<this._errors.length;i++){var r=this._errors[i],s=r.message,o=(e[s]||0)+1;e[s]=o,o>=n&&(t=r,n=o)}return t},function(e){var t=sl;e.operation=function(n){var i=e.timeouts(n);return new t(i,{forever:n&&n.forever,unref:n&&n.unref,maxRetryTime:n&&n.maxRetryTime})},e.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var n in e)t[n]=e[n];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var i=[],r=0;r<t.retries;r++)i.push(this.createTimeout(r,t));return e&&e.forever&&!i.length&&i.push(this.createTimeout(r,t)),i.sort(function(e,t){return e-t}),i},e.createTimeout=function(e,t){var n=t.randomize?Math.random()+1:1,i=Math.round(n*t.minTimeout*Math.pow(t.factor,e));return i=Math.min(i,t.maxTimeout)},e.wrap=function(t,n,i){if(n instanceof Array&&(i=n,n=null),!i)for(var r in i=[],t)"function"==typeof t[r]&&i.push(r);for(var s=0;s<i.length;s++){var o=i[s],a=t[o];t[o]=function(i){var r=e.operation(n),s=Array.prototype.slice.call(arguments,1),o=s.pop();s.push(function(e){r.retry(e)||(e&&(arguments[0]=r.mainError()),o.apply(this,arguments))}),r.attempt(function(){i.apply(t,s)})}.bind(t,a),t[o].options=n}}}(il);var ol=nl,al=il,cl=Object.prototype.hasOwnProperty;function ll(e){return e&&"EPROMISERETRY"===e.code&&cl.call(e,"retried")}var ul=function(e,t){var n,i;return"object"==typeof e&&"function"==typeof t&&(n=t,t=e,e=n),i=al.operation(t),new Promise(function(t,n){i.attempt(function(r){Promise.resolve().then(function(){return e(function(e){throw ll(e)&&(e=e.retried),ol(new Error("Retrying"),"EPROMISERETRY",{retried:e})},r)}).then(t,function(e){ll(e)&&(e=e.retried,i.retry(e||new Error))||n(e)})})})};var pl={errorCode:{generic:"ERR_GENERIC_CLIENT",connect:"ERR_NOT_CONNECTED",badPath:"ERR_BAD_PATH",permission:"EACCES",notexist:"ENOENT",notdir:"ENOTDIR",badAuth:"ERR_BAD_AUTH"},targetType:{writeFile:1,readFile:2,writeDir:3,readDir:4,readObj:5,writeObj:6}};const dl=e,hl=g,{errorCode:fl}=pl;function ml(e,t,n){return i=>{if(e.endCalled||e.errorHandled)return void e.debugMsg(`${t} errorListener - ignoring handled error`);e.errorHandled=!0;const r=new Error(`${t}: ${i.message}`);if(r.code=i.code,!n)throw r;n(r)}}function gl(e,t){return function(){e.sftp=void 0,e.endCalled||e.endHandled||e.errorHandled?e.debugMsg(`${t} endListener - handled end event`):(e.endHandled=!0,e.debugMsg(`${t} Unexpected end event`))}}function _l(e,t){return function(){e.sftp=void 0,e.endCalled||e.closeHandled||e.errorHandled||e.endHandled?e.debugMsg(`${t} closeListener - handled close event`):(e.closeHandled=!0,e.debugMsg(`${t} Unexpected close event`))}}function bl(e){const t=dl.statSync(e,{throwIfNoEntry:!1});if(t){if(t.isDirectory())return"d";if(t.isFile())return"-";{const t=new Error(`Bad path: ${e}: target must be a file or directory`);throw t.code=fl.badPath,t}}return!1}function yl(e,t="r"){const n=dl.constants.F_OK|"w"===t?dl.constants.W_OK:dl.constants.R_OK;try{dl.accessSync(e,n);return{status:!0,type:bl(e),details:"access OK",code:0}}catch(t){switch(t.errno){case-2:return{status:!1,type:null,details:"not exist",code:-2};case-13:return{status:!1,type:bl(e),details:"permission denied",code:-13};case-20:return{status:!1,type:null,details:"parent not a directory"};default:return{status:!1,type:null,details:t.message}}}}var vl={globalListener:function(e,t){return()=>{e.endCalled||e.errorHandled||e.closeHandled?e.debugMsg(`Global ${t} event: Ignoring expected and handled event`):(e.debugMsg(`Global ${t} event: Handling unexpected event`),e.sftp=void 0)}},errorListener:ml,endListener:gl,closeListener:_l,addTempListeners:function(e,t,n){const i={end:gl(e,t),close:_l(e,t),error:ml(e,t,n)};return e.on("end",i.end),e.on("close",i.close),e.on("error",i.error),e._resetEventFlags(),i},removeTempListeners:function(e,t,n){try{e.removeListener("end",t.end),e.removeListener("close",t.close),e.removeListener("error",t.error)}catch(e){throw new Error(`${n}: Error removing temp listeners: ${e.message}`)}},haveLocalAccess:yl,haveLocalCreate:function(e){const{status:t,details:n,type:i}=yl(e,"w");if(!t){if("permission denied"===n)return{status:t,details:n,type:i};const r=hl.dirname(e),s=yl(r,"w");return s.status?"d"!==s.type?{status:!1,details:`${r}: not a directory`,type:null}:{status:!0,details:"access OK",type:null,code:0}:{status:s.status,details:`${r}: ${s.details}`,type:null}}return{status:t,details:n,type:i}},normalizeRemotePath:async function(e,t){try{if(t.startsWith("..")){return`${await e.realPath("..")}/${t.slice(3)}`}if(t.startsWith(".")){return`${await e.realPath(".")}/${t.slice(2)}`}return t}catch(e){throw new Error(`normalizeRemotePath: ${e.message}`)}},localExists:bl,haveConnection:function(e,t,n){if(!e.sftp){const e=new Error(`${t}: No SFTP connection available`);if(e.code=fl.connect,n)return n(e),!1;throw e}return!0},sleep:function(e){return new Promise((t,n)=>{try{Number.isNaN(Number.parseInt(e))||e<0?n("Argument must be a number >= 0"):setTimeout(()=>{t(!0)},e)}catch(e){n(e)}})},partition:function(e,t){let n=[];if(t<1)throw new Error("Partition size must be greater than zero");for(let i=0;i<e.length;i+=t)n[n.length]=e.slice(i,i+t);return n}};const{Client:Al}=Ga,El=e,wl=Zc,xl=ul,{join:Sl,parse:Il}=g,{globalListener:kl,addTempListeners:Cl,removeTempListeners:Rl,haveConnection:Bl,normalizeRemotePath:Tl,localExists:Ol,haveLocalAccess:Nl,haveLocalCreate:Ll,partition:Pl}=vl,{errorCode:Ul}=pl;var Dl,Ml,Hl,Fl,jl,$l,Ql,Wl,ql=class{constructor(e){this.version="10.0.3",this.client=new Al,this.sftp=void 0,this.clientName=e||"sftp",this.endCalled=!1,this.errorHandled=!1,this.closeHandled=!1,this.endHandled=!1,this.remotePlatform="unix",this.debug=void 0,this.promiseLimit=10,this.client.on("close",kl(this,"close")),this.client.on("end",kl(this,"end")),this.client.on("error",kl(this,"error"))}debugMsg(e,t){this.debug&&(t?this.debug(`CLIENT[${this.clientName}]: ${e} ${JSON.stringify(t,null," ")}`):this.debug(`CLIENT[${this.clientName}]: ${e}`))}fmtError(e,t="sftp",n,i){let r="",s="";const o=i?` after ${i} ${i>1?"attempts":"attempt"}`:"";if(void 0===e)r=`${t}: Undefined error - probably a bug!`,s=Ul.generic;else if("string"==typeof e)r=`${t}: ${e}${o}`,s=n||Ul.generic;else if(e.custom)r=`${t}->${e.message}${o}`,s=e.code;else{switch(e.code){case"ENOTFOUND":r=`${t}: Address lookup failed for host${o}`;break;case"ECONNREFUSED":r=`${t}: Remote host refused connection${o}`;break;case"ECONNRESET":r=`${t}: Remote host has reset the connection: ${e.message}${o}`;break;default:r=`${t}: ${e.message}${o}`}s=e.code||Ul.generic}const a=new Error(r);return a.code=s,a.custom=!0,this.debugMsg(`${a.message} (${a.code})`),a}on(e,t){this.client.prependListener(e,t)}removeListener(e,t){this.client.removeListener(e,t)}_resetEventFlags(){this.closeHandled=!1,this.endHandled=!1,this.errorHandled=!1}getConnection(e){let t,n;return new Promise((i,r)=>{n=Cl(this,"getConnection",r),t=()=>{this.debugMsg("getConnection ready listener: got connection - promise resolved"),i(!0)},this.on("ready",t);try{this.client.connect(e)}catch(e){this.debugMsg(`getConnection: ${e.message}`),r(e)}}).finally(()=>{this.removeListener("ready",t),Rl(this,n,"getConnection")})}getSftpChannel(){return new Promise((e,t)=>{this.client.sftp((n,i)=>{n?t(this.fmtError(n,"getSftpChannel",n.code)):(this.sftp=i,e(i))})})}async connect(e){let t;try{if(t=Cl(this,"connect"),e.debug&&(this.debug=e.debug,this.debugMsg("connect: Debugging turned on"),this.debugMsg(`ssh2-sftp-client Version: ${this.version} `,process.versions)),this.promiseLimit=e.promiseLimit??10,this.sftp)throw this.fmtError("An existing SFTP connection is already defined","connect",Ul.connect);const n={retries:e.retries??1,factor:e.retry_factor??2,minTimeout:e.retry_minTimeout??25e3};await xl(n,async(t,n)=>{try{this.debugMsg(`connect: Connect attempt ${n}`),await this.getConnection(e)}catch(e){switch(e.code){case"ENOTFOUND":case"ECONNREFUSED":case"ERR_SOCKET_BAD_PORT":throw e;case void 0:if(e.message.endsWith("All configured authentication methods failed")||e.message.startsWith("Cannot parse privateKey"))throw e;t(e);break;default:t(e)}}});return await this.getSftpChannel()}catch(e){throw this.end(),e.custom?e:this.fmtError(e,"connect")}finally{Rl(this,t,"connect")}}realPath(e,t=!0){let n;return new Promise((i,r)=>{t&&(n=Cl(this,"realPath",r)),this.debugMsg(`realPath -> ${e}`),this.sftp.realpath(e,(t,n)=>{t&&(2===t.code?(this.debugMsg('realPath <- ""'),i("")):(this.debugMsg(`${t.message} ${e}`,"realPath"),r(this.fmtError(`${t.message} ${e}`,"realPath",t.code)))),this.debugMsg(`realPath <- ${n}`),i(n)})}).finally(()=>{t&&Rl(this,n,"realPath")})}cwd(){return this.realPath(".")}_xstat(e,t,n=!0){let i;return new Promise((r,s)=>{const o=(e,n)=>{if(e)2===e.code||4===e.code?s(this.fmtError(`No such file: ${t}`,"_xstat",Ul.notexist)):s(this.fmtError(`${e.message} ${t}`,"_xstat",e.code));else{const e={mode:n.mode,uid:n.uid,gid:n.gid,size:n.size,accessTime:1e3*n.atime,modifyTime:1e3*n.mtime,isDirectory:n.isDirectory(),isFile:n.isFile(),isBlockDevice:n.isBlockDevice(),isCharacterDevice:n.isCharacterDevice(),isSymbolicLink:n.isSymbolicLink(),isFIFO:n.isFIFO(),isSocket:n.isSocket()};this.debugMsg("_xstat: result = ",e),r(e)}};n&&(i=Cl(this,"_xstat",s)),"stat"===e?this.sftp.stat(t,o):this.sftp.lstat(t,o)}).finally(()=>{n&&Rl(this,i,"_xstat")})}async stat(e){try{return Bl(this,"stat"),await this._xstat("stat",e)}catch(e){throw e.custom?e:this.fmtError(e,"stat",e.code)}}async lstat(e){try{return Bl(this,"lstat"),await this._xstat("lstat",e)}catch(e){throw e.custom?e:this.fmtError(e,"lstat",e.code)}}async exists(e){this.debugMsg(`exists: remotePath = ${e}`);try{if("."===e)return"d";const t=await this.lstat(e);return this.debugMsg("exists: <- ",t),t.isDirectory?"d":t.isSymbolicLink?"l":!!t.isFile&&"-"}catch(e){if(e.code===Ul.notexist)return!1;throw e.custom?e:this.fmtError(e.message,"exists",e.code)}}list(e,t,n=!0){let i;return new Promise((r,s)=>{n&&(i=Cl(this,"list",s)),Bl(this,"list",s)&&this.sftp.readdir(e,(n,i)=>{if(n)s(this.fmtError(`${n.message} ${e}`,"list",n.code));else{const e=/-/gi,n=i.map(t=>({type:t.longname.slice(0,1),name:t.filename,size:t.attrs.size,modifyTime:1e3*t.attrs.mtime,accessTime:1e3*t.attrs.atime,rights:{user:t.longname.slice(1,4).replaceAll(e,""),group:t.longname.slice(4,7).replaceAll(e,""),other:t.longname.slice(7,10).replaceAll(e,"")},owner:t.attrs.uid,group:t.attrs.gid,longname:t.longname}));r(t?n.filter(e=>t(e)):n)}})}).finally(()=>{n&&Rl(this,i,"list")})}get(e,t,n,i=!0){let r,s,o;return new Promise((a,c)=>{if(i&&(r=Cl(this,"get",c)),Bl(this,"get",c)){if(n={readStreamOptions:{...n?.readStreamOptions,autoClose:!0},writeStreamOptions:{...n?.writeStreamOptions,autoClose:!0},pipeOptions:{...n?.pipeOptions,end:!0}},s=this.sftp.createReadStream(e,n.readStreamOptions),s.once("error",n=>{t&&"string"!=typeof t&&!t.destroyed&&t.destroy(),c(this.fmtError(`${n.message} ${e}`,"get",n.code))}),void 0===t)this.debugMsg("get resolving buffer of data"),o=wl(e=>{a(e)});else if("string"==typeof t){this.debugMsg("get returning local file");const e=Ll(t);e.status?o=El.createWriteStream(t,n.writeStreamOptions):c(this.fmtError(`Bad path: ${t}: ${e.details}`,"get",e.code))}else this.debugMsg("get: returning data into supplied stream"),o=t;o.once("error",e=>{c(this.fmtError(`${e.message} ${"string"==typeof t?t:"<stream>"}`,"get",e.code))}),s.once("end",()=>{"string"==typeof t?(this.debugMsg("get: resolving with dst filename"),a(t)):void 0!==t&&(this.debugMsg("get: resolving with writer stream object"),a(o))}),s.pipe(o,n.pipeOptions)}}).finally(()=>{i&&Rl(this,r,"get")})}_fastGet(e,t,n,i=!0){let r;return new Promise((s,o)=>{i&&(r=Cl(this,"_fastGet",o)),Bl(this,"_fastGet",o)&&this.sftp.fastGet(e,t,n,n=>{n&&o(this.fmtError(`${n.message} Remote: ${e} Local: ${t}`)),s(`${e} was successfully download to ${t}!`)})}).finally(()=>{i&&Rl(this,r,"_fastGet")})}async fastGet(e,t,n){try{const i=await this.exists(e);if("-"!==i){const t=`${i?"Not a regular file":"No such file "} ${e}`;throw this.fmtError(t,"fastGet",Ul.badPath)}const r=Ll(t);if(!r.status)throw this.fmtError(`Bad path: ${t}: ${r.details}`,"fastGet",Ul.badPath);return await this._fastGet(e,t,n)}catch(e){throw this.fmtError(e,"fastGet")}}_fastPut(e,t,n,i=!0){let r;return new Promise((s,o)=>{i&&(r=Cl(this,"_fastPut",o)),Bl(this,"_fastPut",o)&&this.sftp.fastPut(e,t,n,n=>{n&&o(this.fmtError(`${n.message} Local: ${e} Remote: ${t}`,"fastPut",n.code)),s(`${e} was successfully uploaded to ${t}!`)})}).finally(()=>{i&&Rl(this,r,"_fastPut")})}async fastPut(e,t,n){try{this.debugMsg(`fastPut -> local ${e} remote ${t}`);const i=Nl(e);if(!i.status)throw this.fmtError(`Bad path: ${e}: ${i.details}`,"fastPut",i.code);if(i.status&&"d"===Ol(e))throw this.fmtError(`Bad path: ${e} not a regular file`,"fastgPut",Ul.badPath);return await this._fastPut(e,t,n)}catch(e){throw e.custom?e:this.fmtError(e.message,"fastPut",e.code)}}_put(e,t,n,i=!0){let r,s,o;return new Promise((a,c)=>{i&&(r=Cl(this,"_put",c)),n={readStreamOptions:{...n?.readStreamOptions,autoClose:!0},writeStreamOptions:{...n?.writeStreamOptions,autoClose:!0},pipeOptions:{...n?.pipeOptions,end:!0}},Bl(this,"_put",c)&&(s=this.sftp.createWriteStream(t,n.writeStreamOptions),s.once("error",e=>{c(this.fmtError(`Write stream error: ${e.message} ${t}`,"_put",e.code))}),s.once("close",()=>{a(`Uploaded data stream to ${t}`)}),e instanceof Buffer?(this.debugMsg("put source is a buffer"),s.end(e)):(o="string"==typeof e?El.createReadStream(e,n.readStreamOptions):e,o.once("error",t=>{c(this.fmtError(`Read stream error: ${t.message} ${"string"==typeof e?e:"<stream>"}`,"_put",t.code))}),o.pipe(s,n.pipeOptions)))}).finally(()=>{i&&Rl(this,r,"_put")})}async put(e,t,n){try{if("string"==typeof e){const t=Nl(e);if(!t.status)throw this.fmtError(`Bad path: ${e} ${t.details}`,"put",t.code)}return await this._put(e,t,n)}catch(e){throw e.custom?e:this.fmtError(`Re-thrown: ${e.message}`,"put",e.code)}}_append(e,t,n,i=!0){let r;return new Promise((s,o)=>{if(i&&(r=Cl(this,"_append",o)),Bl(this,"_append",o)){this.debugMsg(`append -> remote: ${t} `,n),n.flags="a";const i=this.sftp.createWriteStream(t,n);i.on("error",e=>{o(this.fmtError(`${e.message} ${t}`,"append",e.code))}),i.on("close",()=>{s(`Appended data to ${t}`)}),e instanceof Buffer?(i.write(e),i.end()):e.pipe(i)}}).finally(()=>{i&&Rl(this,r,"_append")})}async append(e,t,n={}){try{if("string"==typeof e)throw this.fmtError("Cannot append one file to another","append",Ul.badPath);const i=await this.exists(t);if(i&&"d"===i)throw this.fmtError(`Bad path: ${t}: cannot append to a directory`,"append",Ul.badPath);await this._append(e,t,n)}catch(e){throw e.custom?e:this.fmtError(e.message,"append",e.code)}}_doMkdir(e,t=!0){let n;return new Promise((i,r)=>{t&&(n=Cl(this,"_doMkdir",r)),this.sftp.mkdir(e,t=>{t?4===t.code?r(this.fmtError(`Bad path: ${e} permission denied`,"_doMkdir",Ul.badPath)):2===t.code?r(this.fmtError(`Bad path: ${e} parent not a directory or not exist`,"_doMkdir",Ul.badPath)):r(this.fmtError(`${t.message} ${e}`,"_doMkdir",t.code)):i(`${e} directory created`)})}).finally(()=>{t&&Rl(this,n,"_doMkdir")})}async _mkdir(e,t){try{const n=await Tl(this,e),i=await this.exists(n);if(i&&"d"!==i)throw this.fmtError(`Bad path: ${n} already exists as a file`,"_mkdir",Ul.badPath);if(i)return`${n} already exists`;if(!t)return await this._doMkdir(n);const r=Il(n).dir;if(r){const e=await this.exists(r);if(e){if("d"!==e)throw this.fmtError(`Bad path: ${r} not a directory`,"_mkdir",Ul.badPath)}else await this._mkdir(r,!0)}return await this._doMkdir(n)}catch(t){throw t.custom?t:this.fmtError(`${t.message} ${e}`,"_mkdir",t.code)}}async mkdir(e,t=!1){try{return Bl(this,"mkdir"),await this._mkdir(e,t)}catch(e){throw this.fmtError(`${e.message}`,"mkdir",e.code)}}async rmdir(e,t=!1){const n=e=>{let t;return new Promise((n,i)=>{t=Cl(this,"_rmdir",i),this.debugMsg(`_rmdir: dir = ${e}`),this.sftp.rmdir(e,t=>{t&&i(this.fmtError(`${t.message} ${e}`,"rmdir",t.code)),n("Successfully removed directory")})}).finally(()=>{Rl(this,t,"_rmdir")})},i=(e,t)=>{let n;return new Promise((i,r)=>{n=Cl(this,"_delFiles",r),this.debugMsg(`_delFiles: path = ${e} fileList = ${t}`);const s=[];for(const n of t)s.push(this.delete(`${e}/${n.name}`,!0,!1));i(s)}).then(e=>Promise.all(e)).finally(()=>{Rl(this,n,"_delFiles")})};try{this.debugMsg(`rmdir: dir = ${e} recursive = ${t}`);const r=await Tl(this,e),s=await this.exists(r);if(this.debugMsg(`rmdir: ${r} existStatus = ${s}`),!s)throw this.fmtError(`Bad Path: ${e}: No such directory`,"rmdir",Ul.badPath);if("d"!==s)throw this.fmtError(`Bad Path: ${e}: Not a directory`,"rmdir",Ul.badPath);if(!t)return this.debugMsg("rmdir: non-recursive - just try to remove it"),await n(r);const o=await this.list(r);if(this.debugMsg(`rmdir: listing count = ${o.length}`),!o.length)return this.debugMsg("rmdir: No sub dir or files, just rmdir"),await n(r);const a=o.filter(e=>"d"!==e.type);this.debugMsg(`rmdir: dir content files to remove = ${a.length}`);const c=o.filter(e=>"d"===e.type);this.debugMsg(`rmdir: sub-directories to remove = ${c.length}`),await i(r,a);for(const e of c)await this.rmdir(`${r}/${e.name}`,!0);return await n(r),"Successfully removed directory"}catch(t){throw t.custom?t:this.fmtError(`${t.message} ${e}`,"rmdir",t.code)}}delete(e,t=!1,n=!0){let i;return new Promise((r,s)=>{n&&(i=Cl(this,"delete",s)),this.sftp.unlink(e,n=>{n&&(t&&2===n.code?r(`Successfully deleted ${e}`):s(this.fmtError(`${n.message} ${e}`,"delete",n.code))),r(`Successfully deleted ${e}`)})}).finally(()=>{n&&Rl(this,i,"delete")})}rename(e,t,n=!0){let i;return new Promise((r,s)=>{n&&(i=Cl(this,"rename",s)),Bl(this,"rename",s)&&this.sftp.rename(e,t,n=>{n&&s(this.fmtError(`${n.message} From: ${e} To: ${t}`,"_rename",n.code)),r(`Successfully renamed ${e} to ${t}`)})}).finally(()=>{n&&Rl(this,i,"rename")})}posixRename(e,t,n=!0){let i;return new Promise((r,s)=>{n&&(i=Cl(this,"posixRename",s)),Bl(this,"posixRename",s)&&this.sftp.ext_openssh_rename(e,t,n=>{n&&s(this.fmtError(`${n.message} From: ${e} To: ${t}`,"_posixRename",n.code)),r(`Successful POSIX rename ${e} to ${t}`)})}).finally(()=>{Rl(this,i,"posixRename")})}chmod(e,t,n=!0){let i;return new Promise((r,s)=>{n&&(i=Cl(this,"chmod",s)),Bl(this,"chmod",s)&&this.sftp.chmod(e,t,t=>{t&&s(this.fmtError(`${t.message} ${e}`,"_chmod",t.code)),r("Successfully change file mode")})}).finally(()=>{n&&Rl(this,i,"chmod")})}async uploadDir(e,t,n){const i=async e=>{const t=await Tl(this,e),n=await this.exists(t);if(n&&"d"!==n)throw this.fmtError(`Bad path ${t} Not a directory`,"getRemoteStatus",Ul.badPath);return{remoteDir:t,remoteStatus:n}},r=e=>{const t=Ol(e);if(!t)throw this.fmtError(`Bad path: ${e} not exist`,"getLocalStatus",Ul.badPath);if("d"!==t)throw this.fmtError(`Bad path: ${e}: not a directory`,"getLocalStatus",Ul.badPath);return t},s=async(e,t,n,i)=>{let r=Cl(this,"uploadFiles");try{const r=[];for(const i of n){const n=Sl(e,i.name),s=`${t}/${i.name}`;r.push([n,s])}const s=Pl(r,this.promiseLimit),o=i?this._fastPut.bind(this):this._put.bind(this),a=[];for(const e of s){const t=[];for(const[n,i]of e)t.push(o(n,i,null,!1)),this.client.emit("upload",{source:n,destination:i});const n=await Promise.all(t);for(const e of n)a.push(e)}return a}catch(n){throw this.fmtError(`${n.message} ${e} to ${t}`,"uploadFiles",n.code)}finally{Rl(this,r,s)}};try{Bl(this,"uploadDir"),this.debugMsg(`uploadDir: srcDir = ${e} dstDir = ${t} options = ${n}`);const{remoteDir:o,remoteStatus:a}=await i(t);this.debugMsg(`uploadDir: remoteDir = ${o} remoteStatus = ${a}`),r(e),a||await this._mkdir(o,!0);let c=El.readdirSync(e,{encoding:"utf8",withFileTypes:!0});this.debugMsg(`uploadDir: dirEntries = ${c}`),n?.filter&&(c=c.filter(t=>n.filter(Sl(e,t.name),t.isDirectory())));const l=c.filter(e=>e.isDirectory()),u=c.filter(e=>!e.isDirectory());this.debugMsg(`uploadDir: dirUploads = ${l}`),this.debugMsg(`uploadDir: fileUploads = ${u}`),await s(e,o,u,n?.useFastput);for(const t of l){const i=Sl(e,t.name),r=`${o}/${t.name}`;await this.uploadDir(i,r,n)}return`${e} uploaded to ${t}`}catch(t){throw t.custom?t:this.fmtError(`${t.message} ${e}`,"uploadDir",t.code)}}async downloadDir(e,t,n={filter:null,useFastget:!1}){const i=async(e,t)=>{try{const n=await this.list(e);return t?n.filter(n=>t(`${e}/${n.name}`,"d"===n.type)):n}catch(e){throw e.custom?e:this.fmtError(e.message,"_getDownloadList",e.code)}},r=e=>{try{const n=Ll(e);if(!n.status&&"permission denied"===n.details)throw this.fmtError(`Bad path: ${e}: ${n.details}`,"prepareDestination",n.code);if(n.status&&!n.type)El.mkdirSync(e,{recursive:!0});else if(n.status&&"d"!==n.type)throw this.fmtError(`Bad path: ${t}: not a directory`,"_prepareDestination",Ul.badPath)}catch(e){throw e.custom?e:this.fmtError(e.message,"_prepareDestination",e.code)}},s=async(n,i,r,s)=>{let o=Cl(this,"downloadFIles");try{const e=[];for(const t of r){const r=`${n}/${t.name}`,s=Sl(i,t.name);e.push([r,s])}const t=Pl(e,this.promiseLimit),o=s?this._fastGet.bind(this):this.get.bind(this),a=[];for(const e of t){const t=[];for(const[n,i]of e)t.push(o(n,i,null,!1)),this.client.emit("download",{source:n,destination:i});const n=await Promise.all(t);for(const e of n)a.push(e)}return a}catch(n){throw this.fmtError(`${n.message} ${e} to ${t}`,"downloadFiles",n.code)}finally{Rl(this,o,"downloadFiles")}};try{Bl(this,"downloadDir");const o=await i(e,n.filter);r(t);const a=o.filter(e=>"d"!==e.type);a.length&&await s(e,t,a,n.useFastget);const c=o.filter(e=>"d"===e.type);for(const i of c){const r=`${e}/${i.name}`,s=Sl(t,i.name);await this.downloadDir(r,s,n)}return`${e} downloaded to ${t}`}catch(t){throw t.custom?t:this.fmtError(`${t.message}: ${e}`,"downloadDir",t.code)}}createReadStream(e,t){let n;try{n=Cl(this,"createReadStream"),Bl(this,"createReadStream");return this.sftp.createReadStream(e,t)}catch(e){throw e.custom?e:this.fmtError(e.message,"createReadStream",e.code)}finally{Rl(this,n,"createReadStreame")}}createWriteStream(e,t){let n;try{n=Cl(this,"createWriteStream"),Bl(this,"createWriteStream");return this.sftp.createWriteStream(e,t)}catch(e){throw e.custom?e:this.fmtError(e.message,"createWriteStream",e.code)}finally{Rl(this,n,"createWriteStream")}}_rcopy(e,t){return new Promise((n,i)=>{const r=this.sftp.createWriteStream(t),s=this.sftp.createReadStream(e);r.on("error",e=>{i(this.fmtError(`${e.message} ${t}`,"_rcopy"))}),s.on("error",t=>{i(this.fmtError(`${t.message} ${e}`,"_rcopy"))}),r.on("close",()=>{n(`${e} copied to ${t}`)}),s.pipe(r)})}async rcopy(e,t){let n;try{n=Cl(this,"rcopy"),Bl(this,"rcopy");const i=await Tl(this,e),r=await this.exists(i);if(!r)throw this.fmtError(`Source does not exist ${i}`,"rcopy",Ul.badPath);if("-"!==r)throw this.fmtError(`Source not a file ${i}`,"rcopy",Ul.badPath);const s=await Tl(this,t);if(await this.exists(s))throw this.fmtError(`Destination already exists ${s}`,"rcopy",Ul.badPath);return this._rcopy(i,s)}catch(e){throw e.custom?e:this.fmtError(e,"rcopy")}finally{Rl(this,n,"rcopy")}}end(){let e,t;return new Promise((n,i)=>{t=Cl(this,"end",i),this.endCalled=!0,e=()=>{this.sftp=void 0,this.debugMsg("end: Connection closed"),n(!0)},this.on("close",e),this.sftp?this.client.end():(this.debugMsg("end: Called when no connection active"),n(!0))}).finally(()=>{Rl(this,t,"end"),this.removeListener("close",e),this.endCalled=!1})}},Yl=x(ql),Gl={exports:{}},Kl={exports:{}};function zl(){if(Fl)return Hl;Fl=1;const e=Ml?Dl:(Ml=1,Dl={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"]}};Hl=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})}function i(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}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),s=Math.max(t,n,i),o=s-r;let a,c;s===r?a=0:t===s?a=(n-i)/o:n===s?a=2+(i-t)/o:i===s&&(a=4+(t-n)/o),a=Math.min(60*a,360),a<0&&(a+=360);const l=(r+s)/2;return c=s===r?0:l<=.5?o/(s+r):o/(2-s-r),[a,100*c,100*l]},n.rgb.hsv=function(e){let t,n,i,r,s;const o=e[0]/255,a=e[1]/255,c=e[2]/255,l=Math.max(o,a,c),u=l-Math.min(o,a,c),p=function(e){return(l-e)/6/u+.5};return 0===u?(r=0,s=0):(s=u/l,t=p(o),n=p(a),i=p(c),o===l?r=i-n:a===l?r=1/3+t-i:c===l&&(r=2/3+n-t),r<0?r+=1:r>1&&(r-=1)),[360*r,100*s,100*l]},n.rgb.hwb=function(e){const t=e[0],i=e[1];let r=e[2];const s=n.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(i,r));return r=1-1/255*Math.max(t,Math.max(i,r)),[s,100*o,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 r=t[n];if(r)return r;let s,o=1/0;for(const t of Object.keys(e)){const r=i(n,e[t]);r<o&&(o=r,s=t)}return s},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],s=t[2];i/=95.047,r/=100,s/=108.883,i=i>.008856?i**(1/3):7.787*i+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,s=s>.008856?s**(1/3):7.787*s+16/116;return[116*r-16,500*(i-r),200*(r-s)]},n.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,i=e[2]/100;let r,s,o;if(0===n)return o=255*i,[o,o,o];r=i<.5?i*(1+n):i+n-i*n;const a=2*i-r,c=[0,0,0];for(let e=0;e<3;e++)s=t+1/3*-(e-1),s<0&&s++,s>1&&s--,o=6*s<1?a+6*(r-a)*s:2*s<1?r:3*s<2?a+(r-a)*(2/3-s)*6:a,c[e]=255*o;return c},n.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,i=e[2]/100,r=n;const s=Math.max(i,.01);i*=2,n*=i<=1?i:2-i,r*=s<=1?s:2-s;return[t,100*(0===i?2*r/(s+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,s=t-Math.floor(t),o=255*i*(1-n),a=255*i*(1-n*s),c=255*i*(1-n*(1-s));switch(i*=255,r){case 0:return[i,c,o];case 1:return[a,i,o];case 2:return[o,i,c];case 3:return[o,a,i];case 4:return[c,o,i];case 5:return[i,o,a]}},n.hsv.hsl=function(e){const t=e[0],n=e[1]/100,i=e[2]/100,r=Math.max(i,.01);let s,o;o=(2-n)*i;const a=(2-n)*r;return s=n*r,s/=a<=1?a:2-a,s=s||0,o/=2,[t,100*s,100*o]},n.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,i=e[2]/100;const r=n+i;let s;r>1&&(n/=r,i/=r);const o=Math.floor(6*t),a=1-i;s=6*t-o,1&o&&(s=1-s);const c=n+s*(a-n);let l,u,p;switch(o){default:case 6:case 0:l=a,u=c,p=n;break;case 1:l=c,u=a,p=n;break;case 2:l=n,u=a,p=c;break;case 3:l=n,u=c,p=a;break;case 4:l=c,u=n,p=a;break;case 5:l=a,u=n,p=c}return[255*l,255*u,255*p]},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,s,o;return r=3.2406*t+-1.5372*n+-.4986*i,s=-.9689*t+1.8758*n+.0415*i,o=.0557*t+-.204*n+1.057*i,r=r>.0031308?1.055*r**(1/2.4)-.055:12.92*r,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,r=Math.min(Math.max(0,r),1),s=Math.min(Math.max(0,s),1),o=Math.min(Math.max(0,o),1),[255*r,255*s,255*o]},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,s=t**3,o=i**3;return n=r>.008856?r:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,i=o>.008856?o:(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,s]=e;let o=null===t?n.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let a=30+(Math.round(s/255)<<2|Math.round(r/255)<<1|Math.round(i/255));return 2===o&&(a+=60),a},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),s=Math.min(Math.min(t,n),i),o=r-s;let a,c;return a=o<1?s/(1-o):0,c=o<=0?0:r===t?(n-i)/o%6:r===n?2+(i-t)/o:4+(t-n)/o,c/=6,c%=1,[360*c,100*o,100*a]},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],s=t%1*6,o=s%1,a=1-o;let c=0;switch(Math.floor(s)){case 0:r[0]=1,r[1]=o,r[2]=0;break;case 1:r[0]=a,r[1]=1,r[2]=0;break;case 2:r[0]=0,r[1]=1,r[2]=o;break;case 3:r[0]=0,r[1]=a,r[2]=1;break;case 4:r[0]=o,r[1]=0,r[2]=1;break;default:r[0]=1,r[1]=0,r[2]=a}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]},Hl}function Xl(){if($l)return jl;$l=1;const e=zl();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,s=0;s<e;s++){const e=r[s],o=n[e];-1===o.distance&&(o.distance=n[t].distance+1,o.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 s=e[i[t].parent][t],o=i[t].parent;for(;i[o].parent;)r.unshift(i[o].parent),s=n(e[i[o].parent][o],s),o=i[o].parent;return s.conversion=r,s}return jl=function(e){const n=t(e),r={},s=Object.keys(n);for(let e=s.length,t=0;t<e;t++){const e=s[t];null!==n[e].parent&&(r[e]=i(e,n))}return r}}function Vl(){if(Wl)return Ql;Wl=1;const e=zl(),t=Xl(),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)})}),Ql=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,s=(e,t,n)=>[e,t,n],o=(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 a;const c=(e,t,n,i)=>{void 0===a&&(a=Vl());const r=i?10:0,s={};for(const[i,o]of Object.entries(a)){const a="ansi16"===i?"ansi":i;i===t?s[a]=e(n,r):"object"==typeof o&&(s[a]=e(o[t],r))}return s};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,a={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]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(const[t,n]of Object.entries(a)){for(const[t,i]of Object.entries(n))a[t]={open:`[${i[0]}m`,close:`[${i[1]}m`},n[t]=a[t],e.set(i[0],i[1]);Object.defineProperty(a,t,{value:n,enumerable:!1})}return Object.defineProperty(a,"codes",{value:e,enumerable:!1}),a.color.close="[39m",a.bgColor.close="[49m",o(a.color,"ansi",()=>c(t,"ansi16",r,!1)),o(a.color,"ansi256",()=>c(n,"ansi256",r,!1)),o(a.color,"ansi16m",()=>c(i,"rgb",s,!1)),o(a.bgColor,"ansi",()=>c(t,"ansi16",r,!0)),o(a.bgColor,"ansi256",()=>c(n,"ansi256",r,!0)),o(a.bgColor,"ansi16m",()=>c(i,"rgb",s,!0)),a}})}(Kl);var Jl=Kl.exports;const Zl=b,eu=y,tu=(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:nu}=process;let iu;function ru(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function su(e,t){if(0===iu)return 0;if(tu("color=16m")||tu("color=full")||tu("color=truecolor"))return 3;if(tu("color=256"))return 2;if(e&&!t&&void 0===iu)return 0;const n=iu||0;if("dumb"===nu.TERM)return n;if("win32"===process.platform){const e=Zl.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in nu)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in nu)||"codeship"===nu.CI_NAME?1:n;if("TEAMCITY_VERSION"in nu)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(nu.TEAMCITY_VERSION)?1:0;if("truecolor"===nu.COLORTERM)return 3;if("TERM_PROGRAM"in nu){const e=parseInt((nu.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(nu.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(nu.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(nu.TERM)||"COLORTERM"in nu?1:n}tu("no-color")||tu("no-colors")||tu("color=false")||tu("color=never")?iu=0:(tu("color")||tu("colors")||tu("color=true")||tu("color=always"))&&(iu=1),"FORCE_COLOR"in nu&&(iu="true"===nu.FORCE_COLOR?1:"false"===nu.FORCE_COLOR?0:0===nu.FORCE_COLOR.length?1:Math.min(parseInt(nu.FORCE_COLOR,10),3));var ou={supportsColor:function(e){return ru(su(e,e&&e.isTTY))},stdout:ru(su(!0,eu.isatty(1))),stderr:ru(su(!0,eu.isatty(2)))};var au,cu,lu={stringReplaceAll:(e,t,n)=>{let i=e.indexOf(t);if(-1===i)return e;const r=t.length;let s=0,o="";do{o+=e.substr(s,i-s)+t+n,s=i+r,i=e.indexOf(t,s)}while(-1!==i);return o+=e.substr(s),o},stringEncaseCRLFWithFirstIndex:(e,t,n,i)=>{let r=0,s="";do{const o="\r"===e[i-1];s+=e.substr(r,(o?i-1:i)-r)+t+(o?"\r\n":"\n")+n,r=i+1,i=e.indexOf("\n",r)}while(-1!==i);return s+=e.substr(r),s}};const uu=Jl,{stdout:pu,stderr:du}=ou,{stringReplaceAll:hu,stringEncaseCRLFWithFirstIndex:fu}=lu,{isArray:mu}=Array,gu=["ansi","ansi","ansi256","ansi16m"],_u=Object.create(null);class bu{constructor(e){return yu(e)}}const yu=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=pu?pu.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>ku(t.template,...e),Object.setPrototypeOf(t,vu.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=bu,t.template};function vu(e){return yu(e)}for(const[Xx,Vx]of Object.entries(uu))_u[Xx]={get(){const e=xu(this,wu(Vx.open,Vx.close,this._styler),this._isEmpty);return Object.defineProperty(this,Xx,{value:e}),e}};_u.visible={get(){const e=xu(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const Au=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const Jx of Au)_u[Jx]={get(){const{level:e}=this;return function(...t){const n=wu(uu.color[gu[e]][Jx](...t),uu.color.close,this._styler);return xu(this,n,this._isEmpty)}}};for(const Zx of Au){_u["bg"+Zx[0].toUpperCase()+Zx.slice(1)]={get(){const{level:e}=this;return function(...t){const n=wu(uu.bgColor[gu[e]][Zx](...t),uu.bgColor.close,this._styler);return xu(this,n,this._isEmpty)}}}}const Eu=Object.defineProperties(()=>{},{..._u,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),wu=(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}},xu=(e,t,n)=>{const i=(...e)=>mu(e[0])&&mu(e[0].raw)?Su(i,ku(i,...e)):Su(i,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(i,Eu),i._generator=e,i._styler=t,i._isEmpty=n,i},Su=(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=hu(t,n.close,n.open),n=n.parent;const s=t.indexOf("\n");return-1!==s&&(t=fu(t,r,i,s)),i+t+r};let Iu;const ku=(e,...t)=>{const[n]=t;if(!mu(n)||!mu(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===Iu&&(Iu=function(){if(cu)return au;cu=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 s(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 o(e,t){const r=[],o=t.trim().split(/\s*,\s*/g);let a;for(const t of o){const o=Number(t);if(Number.isNaN(o)){if(!(a=t.match(n)))throw new Error(`Invalid Chalk template style argument: ${t} (in style '${e}')`);r.push(a[2].replace(i,(e,t,n)=>t?s(t):n))}else r.push(o)}return r}function a(e){t.lastIndex=0;const n=[];let i;for(;null!==(i=t.exec(e));){const e=i[1];if(i[2]){const t=o(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 au=(t,n)=>{const i=[],r=[];let o=[];if(n.replace(e,(e,n,l,u,p,d)=>{if(n)o.push(s(n));else if(u){const e=o.join("");o=[],r.push(0===i.length?e:c(t,i)(e)),i.push({inverse:l,styles:a(u)})}else if(p){if(0===i.length)throw new Error("Found extraneous } in Chalk template literal");r.push(c(t,i)(o.join(""))),o=[],i.pop()}else o.push(d)}),r.push(o.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("")},au}()),Iu(e,r.join(""))};Object.defineProperties(vu.prototype,_u);const Cu=vu();Cu.supportsColor=pu,Cu.stderr=vu({level:du?du.level:0}),Cu.stderr.supportsColor=du;var Ru=Cu,Bu=x(Ru),Tu={},Ou={exports:{}},Nu={exports:{}};const Lu=(e,t)=>{for(const n of Reflect.ownKeys(t))Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n));return e};Nu.exports=Lu,Nu.exports.default=Lu;const Pu=Nu.exports,Uu=new WeakMap,Du=(e,t={})=>{if("function"!=typeof e)throw new TypeError("Expected a function");let n,i=0;const r=e.displayName||e.name||"<anonymous>",s=function(...o){if(Uu.set(s,++i),1===i)n=e.apply(this,o),e=null;else if(!0===t.throw)throw new Error(`Function \`${r}\` can only be called once`);return n};return Pu(s,e),Uu.set(s,i),s};Ou.exports=Du,Ou.exports.default=Du,Ou.exports.callCount=e=>{if(!Uu.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return Uu.get(e)};var Mu,Hu=Ou.exports,Fu={exports:{}},ju={exports:{}};var $u=w.process;const Qu=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(Qu($u)){var Wu,qu=a,Yu=(Mu||(Mu=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")}(ju)),ju.exports),Gu=/^win/i.test($u.platform),Ku=h;"function"!=typeof Ku&&(Ku=Ku.EventEmitter),$u.__signal_exit_emitter__?Wu=$u.__signal_exit_emitter__:((Wu=$u.__signal_exit_emitter__=new Ku).count=0,Wu.emitted={}),Wu.infinite||(Wu.setMaxListeners(1/0),Wu.infinite=!0),Fu.exports=function(e,t){if(!Qu(w.process))return function(){};qu.equal(typeof e,"function","a callback must be provided for exit handler"),!1===Ju&&Zu();var n="exit";t&&t.alwaysLast&&(n="afterexit");return Wu.on(n,e),function(){Wu.removeListener(n,e),0===Wu.listeners("exit").length&&0===Wu.listeners("afterexit").length&&zu()}};var zu=function(){Ju&&Qu(w.process)&&(Ju=!1,Yu.forEach(function(e){try{$u.removeListener(e,Vu[e])}catch(e){}}),$u.emit=np,$u.reallyExit=ep,Wu.count-=1)};Fu.exports.unload=zu;var Xu=function(e,t,n){Wu.emitted[e]||(Wu.emitted[e]=!0,Wu.emit(e,t,n))},Vu={};Yu.forEach(function(e){Vu[e]=function(){Qu(w.process)&&($u.listeners(e).length===Wu.count&&(zu(),Xu("exit",null,e),Xu("afterexit",null,e),Gu&&"SIGHUP"===e&&(e="SIGINT"),$u.kill($u.pid,e)))}}),Fu.exports.signals=function(){return Yu};var Ju=!1,Zu=function(){!Ju&&Qu(w.process)&&(Ju=!0,Wu.count+=1,Yu=Yu.filter(function(e){try{return $u.on(e,Vu[e]),!0}catch(e){return!1}}),$u.emit=ip,$u.reallyExit=tp)};Fu.exports.load=Zu;var ep=$u.reallyExit,tp=function(e){Qu(w.process)&&($u.exitCode=e||0,Xu("exit",$u.exitCode,null),Xu("afterexit",$u.exitCode,null),ep.call($u,$u.exitCode))},np=$u.emit,ip=function(e,t){if("exit"===e&&Qu(w.process)){void 0!==t&&($u.exitCode=t);var n=np.apply(this,arguments);return Xu("exit",$u.exitCode,null),Xu("afterexit",$u.exitCode,null),n}return np.apply(this,arguments)}}else Fu.exports=function(){return function(){}};var rp=Fu.exports;const sp=rp;var op=Hu(()=>{sp(()=>{process.stderr.write("[?25h")},{alwaysLast:!0})});!function(e){const t=op;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)}}(Tu);var ap={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 cp=Object.assign({},ap),lp=Object.keys(cp);Object.defineProperty(cp,"random",{get(){const e=Math.floor(Math.random()*lp.length),t=lp[e];return cp[t]}});var up=cp,pp=()=>"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 dp=Ru,hp=pp,fp={info:dp.blue("ℹ"),success:dp.green("✔"),warning:dp.yellow("⚠"),error:dp.red("✖")},mp={info:dp.blue("i"),success:dp.green("√"),warning:dp.yellow("‼"),error:dp.red("×")};var gp=hp()?fp:mp;const _p=({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 bp={exports:{}},yp={exports:{}};!function(e){var t=function(){function e(t,i,r,s){"object"==typeof i&&(r=i.depth,s=i.prototype,i.filter,i=i.circular);var o=[],a=[],c="undefined"!=typeof Buffer;return void 0===i&&(i=!0),void 0===r&&(r=1/0),function t(r,l){if(null===r)return null;if(0==l)return r;var u,p;if("object"!=typeof r)return r;if(e.__isArray(r))u=[];else if(e.__isRegExp(r))u=new RegExp(r.source,n(r)),r.lastIndex&&(u.lastIndex=r.lastIndex);else if(e.__isDate(r))u=new Date(r.getTime());else{if(c&&Buffer.isBuffer(r))return u=Buffer.allocUnsafe?Buffer.allocUnsafe(r.length):new Buffer(r.length),r.copy(u),u;void 0===s?(p=Object.getPrototypeOf(r),u=Object.create(p)):(u=Object.create(s),p=s)}if(i){var d=o.indexOf(r);if(-1!=d)return a[d];o.push(r),a.push(u)}for(var h in r){var f;p&&(f=Object.getOwnPropertyDescriptor(p,h)),f&&null==f.set||(u[h]=t(r[h],l-1))}return u}(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)}(yp);var vp=yp.exports,Ap=function(e,t){return e=e||{},Object.keys(t).forEach(function(n){void 0===e[n]&&(e[n]=vp(t[n]))}),e},Ep=[[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]],wp={nul:0,control:0};function xp(e,t){if("string"!=typeof e)return Sp(e,t);for(var n=0,i=0;i<e.length;i++){var r=Sp(e.charCodeAt(i),t);if(r<0)return-1;n+=r}return n}function Sp(e,t){return 0===e?t.nul:e<32||e>=127&&e<160?t.control:function(e){var t,n=0,i=Ep.length-1;if(e<Ep[0][0]||e>Ep[i][1])return!1;for(;i>=n;)if(t=Math.floor((n+i)/2),e>Ep[t][1])n=t+1;else{if(!(e<Ep[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))}bp.exports=function(e){return xp(e,wp)},bp.exports.config=function(e){return e=Ap(e||{},wp),function(t){return xp(t,e)}};var Ip=bp.exports,kp={exports:{}};const{Buffer:Cp}=c,Rp=Symbol.for("BufferList");function Bp(e){if(!(this instanceof Bp))return new Bp(e);Bp._init.call(this,e)}Bp._init=function(e){Object.defineProperty(this,Rp,{value:!0}),this._bufs=[],this.length=0,e&&this.append(e)},Bp.prototype._new=function(e){return new Bp(e)},Bp.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}},Bp.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},Bp.prototype.get=function(e){if(e>this.length||e<0)return;const t=this._offset(e);return this._bufs[t[0]][t[1]]},Bp.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)},Bp.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||Cp.alloc(0);if(i<=0)return e||Cp.alloc(0);const r=!!e,s=this._offset(n),o=i-n;let a=o,c=r&&t||0,l=s[1];if(0===n&&i===this.length){if(!r)return 1===this._bufs.length?this._bufs[0]:Cp.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(a<=this._bufs[s[0]].length-l)return r?this._bufs[s[0]].copy(e,t,l,l+a):this._bufs[s[0]].slice(l,l+a);r||(e=Cp.allocUnsafe(o));for(let t=s[0];t<this._bufs.length;t++){const n=this._bufs[t].length-l;if(!(a>n)){this._bufs[t].copy(e,c,l,l+a),c+=n;break}this._bufs[t].copy(e,c,l),c+=n,a-=n,l&&(l=0)}return e.length>c?e.slice(0,c):e},Bp.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)},Bp.prototype.toString=function(e,t,n){return this.slice(t,n).toString(e)},Bp.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},Bp.prototype.duplicate=function(){const e=this._new();for(let t=0;t<this._bufs.length;t++)e.append(this._bufs[t]);return e},Bp.prototype.append=function(e){if(null==e)return this;if(e.buffer)this._appendBuffer(Cp.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(Cp.from(e));return this},Bp.prototype._appendBuffer=function(e){this._bufs.push(e),this.length+=e.length},Bp.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=Cp.from([e]):"string"==typeof e?e=Cp.from(e,n):this._isBufferList(e)?e=e.slice():Array.isArray(e.buffer)?e=Cp.from(e.buffer,e.byteOffset,e.byteLength):Cp.isBuffer(e)||(e=Cp.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],s=i[1];for(;r<this._bufs.length;r++){const t=this._bufs[r];for(;s<t.length;){if(t.length-s>=e.length){const n=t.indexOf(e,s);if(-1!==n)return this._reverseOffset([r,n]);s=t.length-e.length+1}else{const t=this._reverseOffset([r,s]);if(this._match(t,e))return t;s++}}s=0}return-1},Bp.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){Bp.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)}(),Bp.prototype._isBufferList=function(e){return e instanceof Bp||Bp.isBufferList(e)},Bp.isBufferList=function(e){return null!=e&&e[Rp]};var Tp=Bp;const Op=$c.Duplex,Np=Tp;function Lp(e){if(!(this instanceof Lp))return new Lp(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}Np._init.call(this,e),Op.call(this)}fc(Lp,Op),Object.assign(Lp.prototype,Np.prototype),Lp.prototype._new=function(e){return new Lp(e)},Lp.prototype._write=function(e,t,n){this._appendBuffer(e),"function"==typeof n&&n()},Lp.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)},Lp.prototype.end=function(e){Op.prototype.end.call(this,e),this._callback&&(this._callback(null,this.slice()),this._callback=null)},Lp.prototype._destroy=function(e,t){this._bufs.length=0,this.length=0,t(e)},Lp.prototype._isBufferList=function(e){return e instanceof Lp||e instanceof Np||Lp.isBufferList(e)},Lp.isBufferList=Np.isBufferList,kp.exports=Lp,kp.exports.BufferListStream=Lp,kp.exports.BufferList=Np;var Pp=kp.exports;const Up=_,Dp=Ru,Mp=Tu,Hp=up,Fp=gp,jp=e=>"string"==typeof e?e.replace(_p(),""):e,$p=Ip,Qp=({stream:e=process.stdout}={})=>Boolean(e&&e.isTTY&&"dumb"!==process.env.TERM&&!("CI"in process.env)),Wp=pp,{BufferListStream:qp}=Pp,Yp=Symbol("text"),Gp=Symbol("prefixText");class Kp{constructor(){this.requests=0,this.mutedStream=new qp,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=Up.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 zp;class Xp{constructor(e){zp||(zp=new Kp),"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:Qp({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(Wp())if(void 0===e)this._spinner=Hp.dots;else{if("default"===e||!Hp[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=Hp[e]}else this._spinner=Hp.line;this._updateInterval(this._spinner.interval)}get text(){return this[Yp]}set text(e){this[Yp]=e,this.updateLineCount()}get prefixText(){return this[Gp]}set prefixText(e){this[Gp]=e,this.updateLineCount()}get isSpinning(){return void 0!==this.id}getFullPrefixText(e=this[Gp],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 jp(t+"--"+this[Yp]).split("\n"))this.lineCount+=Math.max(1,Math.ceil($p(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=Dp[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&&Mp.hide(this.stream),this.discardStdin&&process.stdin.isTTY&&(this.isDiscardingStdin=!0,zp.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&&Mp.show(this.stream),this.discardStdin&&process.stdin.isTTY&&this.isDiscardingStdin&&(zp.stop(),this.isDiscardingStdin=!1),this):this}succeed(e){return this.stopAndPersist({symbol:Fp.success,text:e})}fail(e){return this.stopAndPersist({symbol:Fp.error,text:e})}warn(e){return this.stopAndPersist({symbol:Fp.warning,text:e})}info(e){return this.stopAndPersist({symbol:Fp.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}}Gl.exports=function(e){return new Xp(e)},Gl.exports.promise=(e,t)=>{if("function"!=typeof e.then)throw new TypeError("Parameter `action` must be a Promise");const n=new Xp(t);return n.start(),(async()=>{try{await e,n.succeed()}catch{n.fail()}})(),n};var Vp=x(Gl.exports),Jp={exports:{}};!function(e){e.exports=function(){var t,n;function i(){return t.apply(null,arguments)}function r(e){t=e}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function l(e){return void 0===e}function u(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function p(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var n,i=[],r=e.length;for(n=0;n<r;++n)i.push(t(e[n],n));return i}function h(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function f(e,t,n,i){return zn(e,t,n,i,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=m()),e._pf}function _(e){var t=null,i=!1,r=e._d&&!isNaN(e._d.getTime());return r&&(t=g(e),i=n.call(t.parsedDateParts,function(e){return null!=e}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i),e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?r:(e._isValid=r,e._isValid)}function b(e){var t=f(NaN);return null!=e?h(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),i=n.length>>>0;for(t=0;t<i;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var y=i.momentProperties=[],v=!1;function A(e,t){var n,i,r,s=y.length;if(l(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),l(t._i)||(e._i=t._i),l(t._f)||(e._f=t._f),l(t._l)||(e._l=t._l),l(t._strict)||(e._strict=t._strict),l(t._tzm)||(e._tzm=t._tzm),l(t._isUTC)||(e._isUTC=t._isUTC),l(t._offset)||(e._offset=t._offset),l(t._pf)||(e._pf=g(t)),l(t._locale)||(e._locale=t._locale),s>0)for(n=0;n<s;n++)l(r=t[i=y[n]])||(e[i]=r);return e}function E(e){A(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,i.updateOffset(this),v=!1)}function w(e){return e instanceof E||null!=e&&null!=e._isAMomentObject}function x(e){!1===i.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function S(e,t){var n=!0;return h(function(){if(null!=i.deprecationHandler&&i.deprecationHandler(null,e),n){var r,s,o,c=[],l=arguments.length;for(s=0;s<l;s++){if(r="","object"==typeof arguments[s]){for(o in r+="\n["+s+"] ",arguments[0])a(arguments[0],o)&&(r+=o+": "+arguments[0][o]+", ");r=r.slice(0,-2)}else r=arguments[s];c.push(r)}x(e+"\nArguments: "+Array.prototype.slice.call(c).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)},t)}var I,k={};function C(e,t){null!=i.deprecationHandler&&i.deprecationHandler(e,t),k[e]||(x(t),k[e]=!0)}function R(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function B(e){var t,n;for(n in e)a(e,n)&&(R(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function T(e,t){var n,i=h({},e);for(n in t)a(t,n)&&(o(e[n])&&o(t[n])?(i[n]={},h(i[n],e[n]),h(i[n],t[n])):null!=t[n]?i[n]=t[n]:delete i[n]);for(n in e)a(e,n)&&!a(t,n)&&o(e[n])&&(i[n]=h({},i[n]));return i}function O(e){null!=e&&this.set(e)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null,I=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function L(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return R(i)?i.call(t,n):i}function P(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var U=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,M={},H={};function F(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(H[e]=r),t&&(H[t[0]]=function(){return P(r.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function j(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $(e){var t,n,i=e.match(U);for(t=0,n=i.length;t<n;t++)H[i[t]]?i[t]=H[i[t]]:i[t]=j(i[t]);return function(t){var r,s="";for(r=0;r<n;r++)s+=R(i[r])?i[r].call(t,e):i[r];return s}}function Q(e,t){return e.isValid()?(t=W(t,e.localeData()),M[t]=M[t]||$(t),M[t](e)):e.localeData().invalidDate()}function W(e,t){var n=5;function i(e){return t.longDateFormat(e)||e}for(D.lastIndex=0;n>=0&&D.test(e);)e=e.replace(D,i),D.lastIndex=0,n-=1;return e}var q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Y(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(U).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])}var G="Invalid date";function K(){return this._invalidDate}var X="%d",V=/\d{1,2}/;function J(e){return this._ordinal.replace("%d",e)}var Z={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ee(e,t,n,i){var r=this._relativeTime[n];return R(r)?r(e,t,n,i):r.replace(/%d/i,e)}function te(e,t){var n=this._relativeTime[e>0?"future":"past"];return R(n)?n(t):n.replace(/%s/i,t)}var ne={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ie(e){return"string"==typeof e?ne[e]||ne[e.toLowerCase()]:void 0}function re(e){var t,n,i={};for(n in e)a(e,n)&&(t=ie(n))&&(i[t]=e[n]);return i}var se={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oe(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:se[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}var ae,ce=/\d/,le=/\d\d/,ue=/\d{3}/,pe=/\d{4}/,de=/[+-]?\d{6}/,he=/\d\d?/,fe=/\d\d\d\d?/,me=/\d\d\d\d\d\d?/,ge=/\d{1,3}/,_e=/\d{1,4}/,be=/[+-]?\d{1,6}/,ye=/\d+/,ve=/[+-]?\d+/,Ae=/Z|[+-]\d\d:?\d\d/gi,Ee=/Z|[+-]\d\d(?::?\d\d)?/gi,we=/[+-]?\d+(\.\d{1,3})?/,xe=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Se=/^[1-9]\d?/,Ie=/^([1-9]\d|\d)/;function ke(e,t,n){ae[e]=R(t)?t:function(e,i){return e&&n?n:t}}function Ce(e,t){return a(ae,e)?ae[e](t._strict,t._locale):new RegExp(Re(e))}function Re(e){return Be(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}))}function Be(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Te(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Oe(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Te(t)),n}ae={};var Ne={};function Le(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),u(t)&&(r=function(e,n){n[t]=Oe(e)}),i=e.length,n=0;n<i;n++)Ne[e[n]]=r}function Pe(e,t){Le(e,function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)})}function Ue(e,t,n){null!=t&&a(Ne,e)&&Ne[e](t,n._a,n,e)}function De(e){return e%4==0&&e%100!=0||e%400==0}var Me=0,He=1,Fe=2,je=3,$e=4,Qe=5,We=6,qe=7,Ye=8;function Ge(e){return De(e)?366:365}F("Y",0,0,function(){var e=this.year();return e<=9999?P(e,4):"+"+e}),F(0,["YY",2],0,function(){return this.year()%100}),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),ke("Y",ve),ke("YY",he,le),ke("YYYY",_e,pe),ke("YYYYY",be,de),ke("YYYYYY",be,de),Le(["YYYYY","YYYYYY"],Me),Le("YYYY",function(e,t){t[Me]=2===e.length?i.parseTwoDigitYear(e):Oe(e)}),Le("YY",function(e,t){t[Me]=i.parseTwoDigitYear(e)}),Le("Y",function(e,t){t[Me]=parseInt(e,10)}),i.parseTwoDigitYear=function(e){return Oe(e)+(Oe(e)>68?1900:2e3)};var Ke,ze=Ve("FullYear",!0);function Xe(){return De(this.year())}function Ve(e,t){return function(n){return null!=n?(Ze(this,e,n),i.updateOffset(this,t),this):Je(this,e)}}function Je(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Ze(e,t,n){var i,r,s,o,a;if(e.isValid()&&!isNaN(n)){switch(i=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}s=n,o=e.month(),a=29!==(a=e.date())||1!==o||De(s)?a:28,r?i.setUTCFullYear(s,o,a):i.setFullYear(s,o,a)}}function et(e){return R(this[e=ie(e)])?this[e]():this}function tt(e,t){if("object"==typeof e){var n,i=oe(e=re(e)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](e[i[n].unit])}else if(R(this[e=ie(e)]))return this[e](t);return this}function nt(e,t){return(e%t+t)%t}function it(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=nt(t,12);return e+=(t-n)/12,1===n?De(e)?29:28:31-n%7%2}Ke=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},F("M",["MM",2],"Mo",function(){return this.month()+1}),F("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),F("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ke("M",he,Se),ke("MM",he,le),ke("MMM",function(e,t){return t.monthsShortRegex(e)}),ke("MMMM",function(e,t){return t.monthsRegex(e)}),Le(["M","MM"],function(e,t){t[He]=Oe(e)-1}),Le(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[He]=r:g(n).invalidMonth=e});var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),st="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ot=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,at=xe,ct=xe;function lt(e,t){return e?s(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ot).test(t)?"format":"standalone"][e.month()]:s(this._months)?this._months:this._months.standalone}function ut(e,t){return e?s(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ot.test(t)?"format":"standalone"][e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function pt(e,t,n){var i,r,s,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=f([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(r=Ke.call(this._shortMonthsParse,o))?r:null:-1!==(r=Ke.call(this._longMonthsParse,o))?r:null:"MMM"===t?-1!==(r=Ke.call(this._shortMonthsParse,o))||-1!==(r=Ke.call(this._longMonthsParse,o))?r:null:-1!==(r=Ke.call(this._longMonthsParse,o))||-1!==(r=Ke.call(this._shortMonthsParse,o))?r:null}function dt(e,t,n){var i,r,s;if(this._monthsParseExact)return pt.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function ht(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Oe(t);else if(!u(t=e.localeData().monthsParse(t)))return e;var n=t,i=e.date();return i=i<29?i:Math.min(i,it(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,i):e._d.setMonth(n,i),e}function ft(e){return null!=e?(ht(this,e),i.updateOffset(this,!0),this):Je(this,"Month")}function mt(){return it(this.year(),this.month())}function gt(e){return this._monthsParseExact?(a(this,"_monthsRegex")||bt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=at),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function _t(e){return this._monthsParseExact?(a(this,"_monthsRegex")||bt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=ct),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function bt(){function e(e,t){return t.length-e.length}var t,n,i,r,s=[],o=[],a=[];for(t=0;t<12;t++)n=f([2e3,t]),i=Be(this.monthsShort(n,"")),r=Be(this.months(n,"")),s.push(i),o.push(r),a.push(r),a.push(i);s.sort(e),o.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function yt(e,t,n,i,r,s,o){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,i,r,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,i,r,s,o),a}function vt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function At(e,t,n){var i=7+t-n;return-(7+vt(e,0,i).getUTCDay()-t)%7+i-1}function Et(e,t,n,i,r){var s,o,a=1+7*(t-1)+(7+n-i)%7+At(e,i,r);return a<=0?o=Ge(s=e-1)+a:a>Ge(e)?(s=e+1,o=a-Ge(e)):(s=e,o=a),{year:s,dayOfYear:o}}function wt(e,t,n){var i,r,s=At(e.year(),t,n),o=Math.floor((e.dayOfYear()-s-1)/7)+1;return o<1?i=o+xt(r=e.year()-1,t,n):o>xt(e.year(),t,n)?(i=o-xt(e.year(),t,n),r=e.year()+1):(r=e.year(),i=o),{week:i,year:r}}function xt(e,t,n){var i=At(e,t,n),r=At(e+1,t,n);return(Ge(e)-i+r)/7}function St(e){return wt(e,this._week.dow,this._week.doy).week}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),ke("w",he,Se),ke("ww",he,le),ke("W",he,Se),ke("WW",he,le),Pe(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=Oe(e)});var It={dow:0,doy:6};function kt(){return this._week.dow}function Ct(){return this._week.doy}function Rt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Bt(e){var t=wt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Tt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ot(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Nt(e,t){return e.slice(t,7).concat(e.slice(0,t))}F("d",0,"do","day"),F("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),F("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),F("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),ke("d",he),ke("e",he),ke("E",he),ke("dd",function(e,t){return t.weekdaysMinRegex(e)}),ke("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ke("dddd",function(e,t){return t.weekdaysRegex(e)}),Pe(["dd","ddd","dddd"],function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:g(n).invalidWeekday=e}),Pe(["d","e","E"],function(e,t,n,i){t[i]=Oe(e)});var Lt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ut="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Dt=xe,Mt=xe,Ht=xe;function Ft(e,t){var n=s(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Nt(n,this._week.dow):e?n[e.day()]:n}function jt(e){return!0===e?Nt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function $t(e){return!0===e?Nt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Qt(e,t,n){var i,r,s,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Ke.call(this._weekdaysParse,o))?r:null:"ddd"===t?-1!==(r=Ke.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=Ke.call(this._minWeekdaysParse,o))?r:null:"dddd"===t?-1!==(r=Ke.call(this._weekdaysParse,o))||-1!==(r=Ke.call(this._shortWeekdaysParse,o))||-1!==(r=Ke.call(this._minWeekdaysParse,o))?r:null:"ddd"===t?-1!==(r=Ke.call(this._shortWeekdaysParse,o))||-1!==(r=Ke.call(this._weekdaysParse,o))||-1!==(r=Ke.call(this._minWeekdaysParse,o))?r:null:-1!==(r=Ke.call(this._minWeekdaysParse,o))||-1!==(r=Ke.call(this._weekdaysParse,o))||-1!==(r=Ke.call(this._shortWeekdaysParse,o))?r:null}function Wt(e,t,n){var i,r,s;if(this._weekdaysParseExact)return Qt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function qt(e){if(!this.isValid())return null!=e?this:NaN;var t=Je(this,"Day");return null!=e?(e=Tt(e,this.localeData()),this.add(e-t,"d")):t}function Yt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Gt(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ot(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Kt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Vt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Dt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function zt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Vt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Mt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Xt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Vt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ht),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Vt(){function e(e,t){return t.length-e.length}var t,n,i,r,s,o=[],a=[],c=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=Be(this.weekdaysMin(n,"")),r=Be(this.weekdaysShort(n,"")),s=Be(this.weekdays(n,"")),o.push(i),a.push(r),c.push(s),l.push(i),l.push(r),l.push(s);o.sort(e),a.sort(e),c.sort(e),l.sort(e),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Jt(){return this.hours()%12||12}function Zt(){return this.hours()||24}function en(e,t){F(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Jt),F("k",["kk",2],0,Zt),F("hmm",0,0,function(){return""+Jt.apply(this)+P(this.minutes(),2)}),F("hmmss",0,0,function(){return""+Jt.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)}),F("Hmm",0,0,function(){return""+this.hours()+P(this.minutes(),2)}),F("Hmmss",0,0,function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)}),en("a",!0),en("A",!1),ke("a",tn),ke("A",tn),ke("H",he,Ie),ke("h",he,Se),ke("k",he,Se),ke("HH",he,le),ke("hh",he,le),ke("kk",he,le),ke("hmm",fe),ke("hmmss",me),ke("Hmm",fe),ke("Hmmss",me),Le(["H","HH"],je),Le(["k","kk"],function(e,t,n){var i=Oe(e);t[je]=24===i?0:i}),Le(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Le(["h","hh"],function(e,t,n){t[je]=Oe(e),g(n).bigHour=!0}),Le("hmm",function(e,t,n){var i=e.length-2;t[je]=Oe(e.substr(0,i)),t[$e]=Oe(e.substr(i)),g(n).bigHour=!0}),Le("hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[je]=Oe(e.substr(0,i)),t[$e]=Oe(e.substr(i,2)),t[Qe]=Oe(e.substr(r)),g(n).bigHour=!0}),Le("Hmm",function(e,t,n){var i=e.length-2;t[je]=Oe(e.substr(0,i)),t[$e]=Oe(e.substr(i))}),Le("Hmmss",function(e,t,n){var i=e.length-4,r=e.length-2;t[je]=Oe(e.substr(0,i)),t[$e]=Oe(e.substr(i,2)),t[Qe]=Oe(e.substr(r))});var rn=/[ap]\.?m?\.?/i,sn=Ve("Hours",!0);function on(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,cn={calendar:N,longDateFormat:q,invalidDate:G,ordinal:X,dayOfMonthOrdinalParse:V,relativeTime:Z,months:rt,monthsShort:st,week:It,weekdays:Lt,weekdaysMin:Ut,weekdaysShort:Pt,meridiemParse:rn},ln={},un={};function pn(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n<i;n+=1)if(e[n]!==t[n])return n;return i}function dn(e){return e?e.toLowerCase().replace("_","-"):e}function hn(e){for(var t,n,i,r,s=0;s<e.length;){for(t=(r=dn(e[s]).split("-")).length,n=(n=dn(e[s+1]))?n.split("-"):null;t>0;){if(i=mn(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&pn(r,n)>=t-1)break;t--}s++}return an}function fn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function mn(t){var n=null;if(void 0===ln[t]&&e&&e.exports&&fn(t))try{n=an._abbr,z("./locale/"+t),gn(n)}catch(e){ln[t]=null}return ln[t]}function gn(e,t){var n;return e&&((n=l(t)?yn(e):_n(e,t))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function _n(e,t){if(null!==t){var n,i=cn;if(t.abbr=e,null!=ln[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=ln[e]._config;else if(null!=t.parentLocale)if(null!=ln[t.parentLocale])i=ln[t.parentLocale]._config;else{if(null==(n=mn(t.parentLocale)))return un[t.parentLocale]||(un[t.parentLocale]=[]),un[t.parentLocale].push({name:e,config:t}),null;i=n._config}return ln[e]=new O(T(i,t)),un[e]&&un[e].forEach(function(e){_n(e.name,e.config)}),gn(e),ln[e]}return delete ln[e],null}function bn(e,t){if(null!=t){var n,i,r=cn;null!=ln[e]&&null!=ln[e].parentLocale?ln[e].set(T(ln[e]._config,t)):(null!=(i=mn(e))&&(r=i._config),t=T(r,t),null==i&&(t.abbr=e),(n=new O(t)).parentLocale=ln[e],ln[e]=n),gn(e)}else null!=ln[e]&&(null!=ln[e].parentLocale?(ln[e]=ln[e].parentLocale,e===gn()&&gn(e)):null!=ln[e]&&delete ln[e]);return ln[e]}function yn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!s(e)){if(t=mn(e))return t;e=[e]}return hn(e)}function vn(){return I(ln)}function An(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[He]<0||n[He]>11?He:n[Fe]<1||n[Fe]>it(n[Me],n[He])?Fe:n[je]<0||n[je]>24||24===n[je]&&(0!==n[$e]||0!==n[Qe]||0!==n[We])?je:n[$e]<0||n[$e]>59?$e:n[Qe]<0||n[Qe]>59?Qe:n[We]<0||n[We]>999?We:-1,g(e)._overflowDayOfYear&&(t<Me||t>Fe)&&(t=Fe),g(e)._overflowWeeks&&-1===t&&(t=qe),g(e)._overflowWeekday&&-1===t&&(t=Ye),g(e).overflow=t),e}var En=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],In=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],kn=/^\/?Date\((-?\d+)/i,Cn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Rn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Bn(e){var t,n,i,r,s,o,a=e._i,c=En.exec(a)||wn.exec(a),l=Sn.length,u=In.length;if(c){for(g(e).iso=!0,t=0,n=l;t<n;t++)if(Sn[t][1].exec(c[1])){r=Sn[t][0],i=!1!==Sn[t][2];break}if(null==r)return void(e._isValid=!1);if(c[3]){for(t=0,n=u;t<n;t++)if(In[t][1].exec(c[3])){s=(c[2]||" ")+In[t][0];break}if(null==s)return void(e._isValid=!1)}if(!i&&null!=s)return void(e._isValid=!1);if(c[4]){if(!xn.exec(c[4]))return void(e._isValid=!1);o="Z"}e._f=r+(s||"")+(o||""),$n(e)}else e._isValid=!1}function Tn(e,t,n,i,r,s){var o=[On(e),st.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(r,10)];return s&&o.push(parseInt(s,10)),o}function On(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Nn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Ln(e,t,n){return!e||Pt.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Pn(e,t,n){if(e)return Rn[e];if(t)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}function Un(e){var t,n=Cn.exec(Nn(e._i));if(n){if(t=Tn(n[4],n[3],n[2],n[5],n[6],n[7]),!Ln(n[1],t,e))return;e._a=t,e._tzm=Pn(n[8],n[9],n[10]),e._d=vt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Dn(e){var t=kn.exec(e._i);null===t?(Bn(e),!1===e._isValid&&(delete e._isValid,Un(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:i.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Mn(e,t,n){return null!=e?e:null!=t?t:n}function Hn(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Fn(e){var t,n,i,r,s,o=[];if(!e._d){for(i=Hn(e),e._w&&null==e._a[Fe]&&null==e._a[He]&&jn(e),null!=e._dayOfYear&&(s=Mn(e._a[Me],i[Me]),(e._dayOfYear>Ge(s)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=vt(s,0,e._dayOfYear),e._a[He]=n.getUTCMonth(),e._a[Fe]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[je]&&0===e._a[$e]&&0===e._a[Qe]&&0===e._a[We]&&(e._nextDay=!0,e._a[je]=0),e._d=(e._useUTC?vt:yt).apply(null,o),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[je]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function jn(e){var t,n,i,r,s,o,a,c,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(s=1,o=4,n=Mn(t.GG,e._a[Me],wt(Xn(),1,4).year),i=Mn(t.W,1),((r=Mn(t.E,1))<1||r>7)&&(c=!0)):(s=e._locale._week.dow,o=e._locale._week.doy,l=wt(Xn(),s,o),n=Mn(t.gg,e._a[Me],l.year),i=Mn(t.w,l.week),null!=t.d?((r=t.d)<0||r>6)&&(c=!0):null!=t.e?(r=t.e+s,(t.e<0||t.e>6)&&(c=!0)):r=s),i<1||i>xt(n,s,o)?g(e)._overflowWeeks=!0:null!=c?g(e)._overflowWeekday=!0:(a=Et(n,i,r,s,o),e._a[Me]=a.year,e._dayOfYear=a.dayOfYear)}function $n(e){if(e._f!==i.ISO_8601)if(e._f!==i.RFC_2822){e._a=[],g(e).empty=!0;var t,n,r,s,o,a,c,l=""+e._i,u=l.length,p=0;for(c=(r=W(e._f,e._locale).match(U)||[]).length,t=0;t<c;t++)s=r[t],(n=(l.match(Ce(s,e))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&g(e).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),p+=n.length),H[s]?(n?g(e).empty=!1:g(e).unusedTokens.push(s),Ue(s,n,e)):e._strict&&!n&&g(e).unusedTokens.push(s);g(e).charsLeftOver=u-p,l.length>0&&g(e).unusedInput.push(l),e._a[je]<=12&&!0===g(e).bigHour&&e._a[je]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[je]=Qn(e._locale,e._a[je],e._meridiem),null!==(a=g(e).era)&&(e._a[Me]=e._locale.erasConvertYear(a,e._a[Me])),Fn(e),An(e)}else Un(e);else Bn(e)}function Qn(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function Wn(e){var t,n,i,r,s,o,a=!1,c=e._f.length;if(0===c)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;r<c;r++)s=0,o=!1,t=A({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],$n(t),_(t)&&(o=!0),s+=g(t).charsLeftOver,s+=10*g(t).unusedTokens.length,g(t).score=s,a?s<i&&(i=s,n=t):(null==i||s<i||o)&&(i=s,n=t,o&&(a=!0));h(e,n||t)}function qn(e){if(!e._d){var t=re(e._i),n=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),Fn(e)}}function Yn(e){var t=new E(An(Gn(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Gn(e){var t=e._i,n=e._f;return e._locale=e._locale||yn(e._l),null===t||void 0===n&&""===t?b({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new E(An(t)):(p(t)?e._d=t:s(n)?Wn(e):n?$n(e):Kn(e),_(e)||(e._d=null),e))}function Kn(e){var t=e._i;l(t)?e._d=new Date(i.now()):p(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Dn(e):s(t)?(e._a=d(t.slice(0),function(e){return parseInt(e,10)}),Fn(e)):o(t)?qn(e):u(t)?e._d=new Date(t):i.createFromInputFallback(e)}function zn(e,t,n,i,r){var a={};return!0!==t&&!1!==t||(i=t,t=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(o(e)&&c(e)||s(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=e,a._f=t,a._strict=i,Yn(a)}function Xn(e,t,n,i){return zn(e,t,n,i,!1)}i.createFromInputFallback=S("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),i.ISO_8601=function(){},i.RFC_2822=function(){};var Vn=S("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Xn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:b()}),Jn=S("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Xn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:b()});function Zn(e,t){var n,i;if(1===t.length&&s(t[0])&&(t=t[0]),!t.length)return Xn();for(n=t[0],i=1;i<t.length;++i)t[i].isValid()&&!t[i][e](n)||(n=t[i]);return n}function ei(){return Zn("isBefore",[].slice.call(arguments,0))}function ti(){return Zn("isAfter",[].slice.call(arguments,0))}var ni=function(){return Date.now?Date.now():+new Date},ii=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ri(e){var t,n,i=!1,r=ii.length;for(t in e)if(a(e,t)&&(-1===Ke.call(ii,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<r;++n)if(e[ii[n]]){if(i)return!1;parseFloat(e[ii[n]])!==Oe(e[ii[n]])&&(i=!0)}return!0}function si(){return this._isValid}function oi(){return Ri(NaN)}function ai(e){var t=re(e),n=t.year||0,i=t.quarter||0,r=t.month||0,s=t.week||t.isoWeek||0,o=t.day||0,a=t.hour||0,c=t.minute||0,l=t.second||0,u=t.millisecond||0;this._isValid=ri(t),this._milliseconds=+u+1e3*l+6e4*c+1e3*a*60*60,this._days=+o+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=yn(),this._bubble()}function ci(e){return e instanceof ai}function li(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function ui(e,t,n){var i,r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),o=0;for(i=0;i<r;i++)(n&&e[i]!==t[i]||!n&&Oe(e[i])!==Oe(t[i]))&&o++;return o+s}function pi(e,t){F(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+P(~~(e/60),2)+t+P(~~e%60,2)})}pi("Z",":"),pi("ZZ",""),ke("Z",Ee),ke("ZZ",Ee),Le(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=hi(Ee,e)});var di=/([\+\-]|\d\d)/gi;function hi(e,t){var n,i,r=(t||"").match(e);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(di)||["-",0,0])[1]+Oe(n[2]))?0:"+"===n[0]?i:-i}function fi(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(w(e)||p(e)?e.valueOf():Xn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),i.updateOffset(n,!1),n):Xn(e).local()}function mi(e){return-Math.round(e._d.getTimezoneOffset())}function gi(e,t,n){var r,s=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=hi(Ee,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=mi(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),s!==e&&(!t||this._changeInProgress?Li(this,Ri(e-s,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?s:mi(this)}function _i(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function bi(e){return this.utcOffset(0,e)}function yi(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(mi(this),"m")),this}function vi(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=hi(Ae,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ai(e){return!!this.isValid()&&(e=e?Xn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Ei(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function wi(){if(!l(this._isDSTShifted))return this._isDSTShifted;var e,t={};return A(t,this),(t=Gn(t))._a?(e=t._isUTC?f(t._a):Xn(t._a),this._isDSTShifted=this.isValid()&&ui(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xi(){return!!this.isValid()&&!this._isUTC}function Si(){return!!this.isValid()&&this._isUTC}function Ii(){return!!this.isValid()&&this._isUTC&&0===this._offset}i.updateOffset=function(){};var ki=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ci=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ri(e,t){var n,i,r,s=e,o=null;return ci(e)?s={ms:e._milliseconds,d:e._days,M:e._months}:u(e)||!isNaN(+e)?(s={},t?s[t]=+e:s.milliseconds=+e):(o=ki.exec(e))?(n="-"===o[1]?-1:1,s={y:0,d:Oe(o[Fe])*n,h:Oe(o[je])*n,m:Oe(o[$e])*n,s:Oe(o[Qe])*n,ms:Oe(li(1e3*o[We]))*n}):(o=Ci.exec(e))?(n="-"===o[1]?-1:1,s={y:Bi(o[2],n),M:Bi(o[3],n),w:Bi(o[4],n),d:Bi(o[5],n),h:Bi(o[6],n),m:Bi(o[7],n),s:Bi(o[8],n)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(r=Oi(Xn(s.from),Xn(s.to)),(s={}).ms=r.milliseconds,s.M=r.months),i=new ai(s),ci(e)&&a(e,"_locale")&&(i._locale=e._locale),ci(e)&&a(e,"_isValid")&&(i._isValid=e._isValid),i}function Bi(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Ti(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Oi(e,t){var n;return e.isValid()&&t.isValid()?(t=fi(t,e),e.isBefore(t)?n=Ti(e,t):((n=Ti(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ni(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Li(this,Ri(n,i),e),this}}function Li(e,t,n,r){var s=t._milliseconds,o=li(t._days),a=li(t._months);e.isValid()&&(r=null==r||r,a&&ht(e,Je(e,"Month")+a*n),o&&Ze(e,"Date",Je(e,"Date")+o*n),s&&e._d.setTime(e._d.valueOf()+s*n),r&&i.updateOffset(e,o||a))}Ri.fn=ai.prototype,Ri.invalid=oi;var Pi=Ni(1,"add"),Ui=Ni(-1,"subtract");function Di(e){return"string"==typeof e||e instanceof String}function Mi(e){return w(e)||p(e)||Di(e)||u(e)||Fi(e)||Hi(e)||null==e}function Hi(e){var t,n,i=o(e)&&!c(e),r=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=s.length;for(t=0;t<l;t+=1)n=s[t],r=r||a(e,n);return i&&r}function Fi(e){var t=s(e),n=!1;return t&&(n=0===e.filter(function(t){return!u(t)&&Di(e)}).length),t&&n}function ji(e){var t,n,i=o(e)&&!c(e),r=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<s.length;t+=1)n=s[t],r=r||a(e,n);return i&&r}function $i(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Qi(e,t){1===arguments.length&&(arguments[0]?Mi(arguments[0])?(e=arguments[0],t=void 0):ji(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Xn(),r=fi(n,this).startOf("day"),s=i.calendarFormat(this,r)||"sameElse",o=t&&(R(t[s])?t[s].call(this,n):t[s]);return this.format(o||this.localeData().calendar(s,this,Xn(n)))}function Wi(){return new E(this)}function qi(e,t){var n=w(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function Yi(e,t){var n=w(e)?e:Xn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function Gi(e,t,n,i){var r=w(e)?e:Xn(e),s=w(t)?t:Xn(t);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(s,n):!this.isAfter(s,n))}function Ki(e,t){var n,i=w(e)?e:Xn(e);return!(!this.isValid()||!i.isValid())&&("millisecond"===(t=ie(t)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function zi(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Xi(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Vi(e,t,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=fi(e,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),t=ie(t)){case"year":s=Ji(this,i)/12;break;case"month":s=Ji(this,i);break;case"quarter":s=Ji(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return n?s:Te(s)}function Ji(e,t){if(e.date()<t.date())return-Ji(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),i=e.clone().add(n,"months");return-(n+(t-i<0?(t-i)/(i-e.clone().add(n-1,"months")):(t-i)/(e.clone().add(n+1,"months")-i)))||0}function Zi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function er(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?Q(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):R(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Q(n,"Z")):Q(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function tr(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i,r="moment",s="";return this.isLocal()||(r=0===this.utcOffset()?"moment.utc":"moment.parseZone",s="Z"),e="["+r+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",i=s+'[")]',this.format(e+t+n+i)}function nr(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=Q(this,e);return this.localeData().postformat(t)}function ir(e,t){return this.isValid()&&(w(e)&&e.isValid()||Xn(e).isValid())?Ri({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function rr(e){return this.from(Xn(),e)}function sr(e,t){return this.isValid()&&(w(e)&&e.isValid()||Xn(e).isValid())?Ri({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function or(e){return this.to(Xn(),e)}function ar(e){var t;return void 0===e?this._locale._abbr:(null!=(t=yn(e))&&(this._locale=t),this)}i.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",i.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var cr=S("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function lr(){return this._locale}var ur=1e3,pr=60*ur,dr=60*pr,hr=3506328*dr;function fr(e,t){return(e%t+t)%t}function mr(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-hr:new Date(e,t,n).valueOf()}function gr(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-hr:Date.UTC(e,t,n)}function _r(e){var t,n;if(void 0===(e=ie(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gr:mr,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=fr(t+(this._isUTC?0:this.utcOffset()*pr),dr);break;case"minute":t=this._d.valueOf(),t-=fr(t,pr);break;case"second":t=this._d.valueOf(),t-=fr(t,ur)}return this._d.setTime(t),i.updateOffset(this,!0),this}function br(e){var t,n;if(void 0===(e=ie(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gr:mr,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=dr-fr(t+(this._isUTC?0:this.utcOffset()*pr),dr)-1;break;case"minute":t=this._d.valueOf(),t+=pr-fr(t,pr)-1;break;case"second":t=this._d.valueOf(),t+=ur-fr(t,ur)-1}return this._d.setTime(t),i.updateOffset(this,!0),this}function yr(){return this._d.valueOf()-6e4*(this._offset||0)}function vr(){return Math.floor(this.valueOf()/1e3)}function Ar(){return new Date(this.valueOf())}function Er(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function wr(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function xr(){return this.isValid()?this.toISOString():null}function Sr(){return _(this)}function Ir(){return h({},g(this))}function kr(){return g(this).overflow}function Cr(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Rr(e,t){var n,r,s,o=this._eras||yn("en")._eras;for(n=0,r=o.length;n<r;++n)switch("string"==typeof o[n].since&&(s=i(o[n].since).startOf("day"),o[n].since=s.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":s=i(o[n].until).startOf("day").valueOf(),o[n].until=s.valueOf()}return o}function Br(e,t,n){var i,r,s,o,a,c=this.eras();for(e=e.toUpperCase(),i=0,r=c.length;i<r;++i)if(s=c[i].name.toUpperCase(),o=c[i].abbr.toUpperCase(),a=c[i].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(o===e)return c[i];break;case"NNNN":if(s===e)return c[i];break;case"NNNNN":if(a===e)return c[i]}else if([s,o,a].indexOf(e)>=0)return c[i]}function Tr(e,t){var n=e.since<=e.until?1:-1;return void 0===t?i(e.since).year():i(e.since).year()+(t-e.offset)*n}function Or(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].name;if(i[e].until<=n&&n<=i[e].since)return i[e].name}return""}function Nr(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].narrow;if(i[e].until<=n&&n<=i[e].since)return i[e].narrow}return""}function Lr(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),i[e].since<=n&&n<=i[e].until)return i[e].abbr;if(i[e].until<=n&&n<=i[e].since)return i[e].abbr}return""}function Pr(){var e,t,n,r,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(n=s[e].since<=s[e].until?1:-1,r=this.clone().startOf("day").valueOf(),s[e].since<=r&&r<=s[e].until||s[e].until<=r&&r<=s[e].since)return(this.year()-i(s[e].since).year())*n+s[e].offset;return this.year()}function Ur(e){return a(this,"_erasNameRegex")||Qr.call(this),e?this._erasNameRegex:this._erasRegex}function Dr(e){return a(this,"_erasAbbrRegex")||Qr.call(this),e?this._erasAbbrRegex:this._erasRegex}function Mr(e){return a(this,"_erasNarrowRegex")||Qr.call(this),e?this._erasNarrowRegex:this._erasRegex}function Hr(e,t){return t.erasAbbrRegex(e)}function Fr(e,t){return t.erasNameRegex(e)}function jr(e,t){return t.erasNarrowRegex(e)}function $r(e,t){return t._eraYearOrdinalRegex||ye}function Qr(){var e,t,n,i,r,s=[],o=[],a=[],c=[],l=this.eras();for(e=0,t=l.length;e<t;++e)n=Be(l[e].name),i=Be(l[e].abbr),r=Be(l[e].narrow),o.push(n),s.push(i),a.push(r),c.push(n),c.push(i),c.push(r);this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+o.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Wr(e,t){F(0,[e,e.length],0,t)}function qr(e){return Vr.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function Yr(e){return Vr.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Gr(){return xt(this.year(),1,4)}function Kr(){return xt(this.isoWeekYear(),1,4)}function zr(){var e=this.localeData()._week;return xt(this.year(),e.dow,e.doy)}function Xr(){var e=this.localeData()._week;return xt(this.weekYear(),e.dow,e.doy)}function Vr(e,t,n,i,r){var s;return null==e?wt(this,i,r).year:(t>(s=xt(e,i,r))&&(t=s),Jr.call(this,e,t,n,i,r))}function Jr(e,t,n,i,r){var s=Et(e,t,n,i,r),o=vt(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Zr(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),ke("N",Hr),ke("NN",Hr),ke("NNN",Hr),ke("NNNN",Fr),ke("NNNNN",jr),Le(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?g(n).era=r:g(n).invalidEra=e}),ke("y",ye),ke("yy",ye),ke("yyy",ye),ke("yyyy",ye),ke("yo",$r),Le(["y","yy","yyy","yyyy"],Me),Le(["yo"],function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Me]=n._locale.eraYearOrdinalParse(e,r):t[Me]=parseInt(e,10)}),F(0,["gg",2],0,function(){return this.weekYear()%100}),F(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Wr("gggg","weekYear"),Wr("ggggg","weekYear"),Wr("GGGG","isoWeekYear"),Wr("GGGGG","isoWeekYear"),ke("G",ve),ke("g",ve),ke("GG",he,le),ke("gg",he,le),ke("GGGG",_e,pe),ke("gggg",_e,pe),ke("GGGGG",be,de),ke("ggggg",be,de),Pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=Oe(e)}),Pe(["gg","GG"],function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)}),F("Q",0,"Qo","quarter"),ke("Q",ce),Le("Q",function(e,t){t[He]=3*(Oe(e)-1)}),F("D",["DD",2],"Do","date"),ke("D",he,Se),ke("DD",he,le),ke("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Le(["D","DD"],Fe),Le("Do",function(e,t){t[Fe]=Oe(e.match(he)[0])});var es=Ve("Date",!0);function ts(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}F("DDD",["DDDD",3],"DDDo","dayOfYear"),ke("DDD",ge),ke("DDDD",ue),Le(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Oe(e)}),F("m",["mm",2],0,"minute"),ke("m",he,Ie),ke("mm",he,le),Le(["m","mm"],$e);var ns=Ve("Minutes",!1);F("s",["ss",2],0,"second"),ke("s",he,Ie),ke("ss",he,le),Le(["s","ss"],Qe);var is,rs,ss=Ve("Seconds",!1);for(F("S",0,0,function(){return~~(this.millisecond()/100)}),F(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,function(){return 10*this.millisecond()}),F(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),F(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),F(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),F(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),F(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ke("S",ge,ce),ke("SS",ge,le),ke("SSS",ge,ue),is="SSSS";is.length<=9;is+="S")ke(is,ye);function os(e,t){t[We]=Oe(1e3*("0."+e))}for(is="S";is.length<=9;is+="S")Le(is,os);function as(){return this._isUTC?"UTC":""}function cs(){return this._isUTC?"Coordinated Universal Time":""}rs=Ve("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var ls=E.prototype;function us(e){return Xn(1e3*e)}function ps(){return Xn.apply(null,arguments).parseZone()}function ds(e){return e}ls.add=Pi,ls.calendar=Qi,ls.clone=Wi,ls.diff=Vi,ls.endOf=br,ls.format=nr,ls.from=ir,ls.fromNow=rr,ls.to=sr,ls.toNow=or,ls.get=et,ls.invalidAt=kr,ls.isAfter=qi,ls.isBefore=Yi,ls.isBetween=Gi,ls.isSame=Ki,ls.isSameOrAfter=zi,ls.isSameOrBefore=Xi,ls.isValid=Sr,ls.lang=cr,ls.locale=ar,ls.localeData=lr,ls.max=Jn,ls.min=Vn,ls.parsingFlags=Ir,ls.set=tt,ls.startOf=_r,ls.subtract=Ui,ls.toArray=Er,ls.toObject=wr,ls.toDate=Ar,ls.toISOString=er,ls.inspect=tr,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ls[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ls.toJSON=xr,ls.toString=Zi,ls.unix=vr,ls.valueOf=yr,ls.creationData=Cr,ls.eraName=Or,ls.eraNarrow=Nr,ls.eraAbbr=Lr,ls.eraYear=Pr,ls.year=ze,ls.isLeapYear=Xe,ls.weekYear=qr,ls.isoWeekYear=Yr,ls.quarter=ls.quarters=Zr,ls.month=ft,ls.daysInMonth=mt,ls.week=ls.weeks=Rt,ls.isoWeek=ls.isoWeeks=Bt,ls.weeksInYear=zr,ls.weeksInWeekYear=Xr,ls.isoWeeksInYear=Gr,ls.isoWeeksInISOWeekYear=Kr,ls.date=es,ls.day=ls.days=qt,ls.weekday=Yt,ls.isoWeekday=Gt,ls.dayOfYear=ts,ls.hour=ls.hours=sn,ls.minute=ls.minutes=ns,ls.second=ls.seconds=ss,ls.millisecond=ls.milliseconds=rs,ls.utcOffset=gi,ls.utc=bi,ls.local=yi,ls.parseZone=vi,ls.hasAlignedHourOffset=Ai,ls.isDST=Ei,ls.isLocal=xi,ls.isUtcOffset=Si,ls.isUtc=Ii,ls.isUTC=Ii,ls.zoneAbbr=as,ls.zoneName=cs,ls.dates=S("dates accessor is deprecated. Use date instead.",es),ls.months=S("months accessor is deprecated. Use month instead",ft),ls.years=S("years accessor is deprecated. Use year instead",ze),ls.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",_i),ls.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",wi);var hs=O.prototype;function fs(e,t,n,i){var r=yn(),s=f().set(i,t);return r[n](s,e)}function ms(e,t,n){if(u(e)&&(t=e,e=void 0),e=e||"",null!=t)return fs(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=fs(e,i,n,"month");return r}function gs(e,t,n,i){"boolean"==typeof e?(u(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,u(t)&&(n=t,t=void 0),t=t||"");var r,s=yn(),o=e?s._week.dow:0,a=[];if(null!=n)return fs(t,(n+o)%7,i,"day");for(r=0;r<7;r++)a[r]=fs(t,(r+o)%7,i,"day");return a}function _s(e,t){return ms(e,t,"months")}function bs(e,t){return ms(e,t,"monthsShort")}function ys(e,t,n){return gs(e,t,n,"weekdays")}function vs(e,t,n){return gs(e,t,n,"weekdaysShort")}function As(e,t,n){return gs(e,t,n,"weekdaysMin")}hs.calendar=L,hs.longDateFormat=Y,hs.invalidDate=K,hs.ordinal=J,hs.preparse=ds,hs.postformat=ds,hs.relativeTime=ee,hs.pastFuture=te,hs.set=B,hs.eras=Rr,hs.erasParse=Br,hs.erasConvertYear=Tr,hs.erasAbbrRegex=Dr,hs.erasNameRegex=Ur,hs.erasNarrowRegex=Mr,hs.months=lt,hs.monthsShort=ut,hs.monthsParse=dt,hs.monthsRegex=_t,hs.monthsShortRegex=gt,hs.week=St,hs.firstDayOfYear=Ct,hs.firstDayOfWeek=kt,hs.weekdays=Ft,hs.weekdaysMin=$t,hs.weekdaysShort=jt,hs.weekdaysParse=Wt,hs.weekdaysRegex=Kt,hs.weekdaysShortRegex=zt,hs.weekdaysMinRegex=Xt,hs.isPM=nn,hs.meridiem=on,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Oe(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=S("moment.lang is deprecated. Use moment.locale instead.",gn),i.langData=S("moment.langData is deprecated. Use moment.localeData instead.",yn);var Es=Math.abs;function ws(){var e=this._data;return this._milliseconds=Es(this._milliseconds),this._days=Es(this._days),this._months=Es(this._months),e.milliseconds=Es(e.milliseconds),e.seconds=Es(e.seconds),e.minutes=Es(e.minutes),e.hours=Es(e.hours),e.months=Es(e.months),e.years=Es(e.years),this}function xs(e,t,n,i){var r=Ri(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Ss(e,t){return xs(this,e,t,1)}function Is(e,t){return xs(this,e,t,-1)}function ks(e){return e<0?Math.floor(e):Math.ceil(e)}function Cs(){var e,t,n,i,r,s=this._milliseconds,o=this._days,a=this._months,c=this._data;return s>=0&&o>=0&&a>=0||s<=0&&o<=0&&a<=0||(s+=864e5*ks(Bs(a)+o),o=0,a=0),c.milliseconds=s%1e3,e=Te(s/1e3),c.seconds=e%60,t=Te(e/60),c.minutes=t%60,n=Te(t/60),c.hours=n%24,o+=Te(n/24),a+=r=Te(Rs(o)),o-=ks(Bs(r)),i=Te(a/12),a%=12,c.days=o,c.months=a,c.years=i,this}function Rs(e){return 4800*e/146097}function Bs(e){return 146097*e/4800}function Ts(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=ie(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Rs(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Bs(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function Os(e){return function(){return this.as(e)}}var Ns=Os("ms"),Ls=Os("s"),Ps=Os("m"),Us=Os("h"),Ds=Os("d"),Ms=Os("w"),Hs=Os("M"),Fs=Os("Q"),js=Os("y"),$s=Ns;function Qs(){return Ri(this)}function Ws(e){return e=ie(e),this.isValid()?this[e+"s"]():NaN}function qs(e){return function(){return this.isValid()?this._data[e]:NaN}}var Ys=qs("milliseconds"),Gs=qs("seconds"),Ks=qs("minutes"),zs=qs("hours"),Xs=qs("days"),Vs=qs("months"),Js=qs("years");function Zs(){return Te(this.days()/7)}var eo=Math.round,to={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function io(e,t,n,i){var r=Ri(e).abs(),s=eo(r.as("s")),o=eo(r.as("m")),a=eo(r.as("h")),c=eo(r.as("d")),l=eo(r.as("M")),u=eo(r.as("w")),p=eo(r.as("y")),d=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||o<=1&&["m"]||o<n.m&&["mm",o]||a<=1&&["h"]||a<n.h&&["hh",a]||c<=1&&["d"]||c<n.d&&["dd",c];return null!=n.w&&(d=d||u<=1&&["w"]||u<n.w&&["ww",u]),(d=d||l<=1&&["M"]||l<n.M&&["MM",l]||p<=1&&["y"]||["yy",p])[2]=t,d[3]=+e>0,d[4]=i,no.apply(null,d)}function ro(e){return void 0===e?eo:"function"==typeof e&&(eo=e,!0)}function so(e,t){return void 0!==to[e]&&(void 0===t?to[e]:(to[e]=t,"s"===e&&(to.ss=t-1),!0))}function oo(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=to;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(s=Object.assign({},to,t),null!=t.s&&null==t.ss&&(s.ss=t.s-1)),i=io(this,!r,s,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)}var ao=Math.abs;function co(e){return(e>0)-(e<0)||+e}function lo(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,s,o,a,c=ao(this._milliseconds)/1e3,l=ao(this._days),u=ao(this._months),p=this.asSeconds();return p?(e=Te(c/60),t=Te(e/60),c%=60,e%=60,n=Te(u/12),u%=12,i=c?c.toFixed(3).replace(/\.?0+$/,""):"",r=p<0?"-":"",s=co(this._months)!==co(p)?"-":"",o=co(this._days)!==co(p)?"-":"",a=co(this._milliseconds)!==co(p)?"-":"",r+"P"+(n?s+n+"Y":"")+(u?s+u+"M":"")+(l?o+l+"D":"")+(t||e||c?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(c?a+i+"S":"")):"P0D"}var uo=ai.prototype;return uo.isValid=si,uo.abs=ws,uo.add=Ss,uo.subtract=Is,uo.as=Ts,uo.asMilliseconds=Ns,uo.asSeconds=Ls,uo.asMinutes=Ps,uo.asHours=Us,uo.asDays=Ds,uo.asWeeks=Ms,uo.asMonths=Hs,uo.asQuarters=Fs,uo.asYears=js,uo.valueOf=$s,uo._bubble=Cs,uo.clone=Qs,uo.get=Ws,uo.milliseconds=Ys,uo.seconds=Gs,uo.minutes=Ks,uo.hours=zs,uo.days=Xs,uo.weeks=Zs,uo.months=Vs,uo.years=Js,uo.humanize=oo,uo.toISOString=lo,uo.toString=lo,uo.toJSON=lo,uo.locale=ar,uo.localeData=lr,uo.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lo),uo.lang=cr,F("X",0,0,"unix"),F("x",0,0,"valueOf"),ke("x",ve),ke("X",we),Le("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),Le("x",function(e,t,n){n._d=new Date(Oe(e))}),i.version="2.30.1",r(Xn),i.fn=ls,i.min=ei,i.max=ti,i.now=ni,i.utc=f,i.unix=us,i.months=_s,i.isDate=p,i.locale=gn,i.invalid=b,i.duration=Ri,i.isMoment=w,i.weekdays=ys,i.parseZone=ps,i.localeData=yn,i.isDuration=ci,i.monthsShort=bs,i.weekdaysMin=As,i.defineLocale=_n,i.updateLocale=bn,i.locales=vn,i.weekdaysShort=vs,i.normalizeUnits=ie,i.relativeTimeRounding=ro,i.relativeTimeThreshold=so,i.calendarFormat=$i,i.prototype=ls,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}(Jp);var Zp,ed,td,nd,id=x(Jp.exports),rd=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},sd={"{":"}","(":")","[":"]"},od=function(e){if("!"===e[0])return!0;for(var t=0,n=-2,i=-2,r=-2,s=-2,o=-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===o||o>i)return!0;if(-1===(o=e.indexOf("\\",t))||o>i)return!0}if(-1!==r&&"{"===e[t]&&"}"!==e[t+1]&&(r=e.indexOf("}",t))>t&&(-1===(o=e.indexOf("\\",t))||o>r))return!0;if(-1!==s&&"("===e[t]&&"?"===e[t+1]&&/[:!=]/.test(e[t+2])&&")"!==e[t+3]&&(s=e.indexOf(")",t))>t&&(-1===(o=e.indexOf("\\",t))||o>s))return!0;if(-1!==n&&"("===e[t]&&"|"!==e[t+1]&&(n<t&&(n=e.indexOf("|",t)),-1!==n&&")"!==e[n+1]&&(s=e.indexOf(")",n))>n&&(-1===(o=e.indexOf("\\",n))||o>s)))return!0;if("\\"===e[t]){var a=e[t+1];t+=2;var c=sd[a];if(c){var l=e.indexOf(c,t);-1!==l&&(t=l+1)}if("!"===e[t])return!0}else t++}return!1},ad=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=sd[n];if(i){var r=e.indexOf(i,t);-1!==r&&(t=r+1)}if("!"===e[t])return!0}else t++}return!1},cd={exports:{}};var ld=b;void 0!==ld.homedir?cd.exports=ld.homedir:cd.exports=function(){if(nd)return td;nd=1;var e=r,t=function(){if(ed)return Zp;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 ed=1,Zp=function(t){if("string"!=typeof t)throw new Error("expected a string");return t.split("\n").map(e).filter(Boolean)}}();return td=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 n=function(t){try{return e.readFileSync(t,"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}(t(n),"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}}();var ud=cd.exports,pd=ud,dd=i,hd=function(e){var t=pd();return 126===e.charCodeAt(0)?43===e.charCodeAt(1)?dd.join(process.cwd(),e.slice(2)):t?dd.join(t,e.slice(1)):e:e},fd={exports:{}},md={exports:{}},gd={};gd.parse=gd.decode=function(e){var t={},n=t,i=null,r=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;return e.split(/[\r\n]+/g).forEach(function(e,s,o){if(e&&!e.match(/^\s*[;#]/)){var a=e.match(r);if(a){if(void 0!==a[1])return"__proto__"===(i=Ad(a[1]))?void(n={}):void(n=t[i]=t[i]||{});var c=Ad(a[2]);if("__proto__"!==c){var l=!a[3]||Ad(a[4]);switch(l){case"true":case"false":case"null":l=JSON.parse(l)}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(l):n[c]=l}}}}),Object.keys(t).filter(function(e,n,i){if(!t[e]||"object"!=typeof t[e]||Array.isArray(t[e]))return!1;var r=bd(e),s=t,o=r.pop(),a=o.replace(/\\\./g,".");return r.forEach(function(e,t,n){"__proto__"!==e&&(s[e]&&"object"==typeof s[e]||(s[e]={}),s=s[e])}),(s!==t||a!==o)&&(s[a]=t[e],!0)}).forEach(function(e,n,i){delete t[e]}),t},gd.stringify=gd.encode=function e(t,n){var i=[],r="";"string"==typeof n?n={section:n,whitespace:!1}:(n=n||{}).whitespace=!0===n.whitespace;var s=n.whitespace?" = ":"=";Object.keys(t).forEach(function(e,n,o){var a=t[e];a&&Array.isArray(a)?a.forEach(function(t){r+=vd(e+"[]")+s+vd(t)+"\n"}):a&&"object"==typeof a?i.push(e):r+=vd(e)+s+vd(a)+_d}),n.section&&r.length&&(r="["+vd(n.section)+"]"+_d+r);return i.forEach(function(i,s,o){var a=bd(i).join("\\."),c=(n.section?n.section+".":"")+a,l=e(t[i],{section:c,whitespace:n.whitespace});r.length&&l.length&&(r+=_d),r+=l}),r},gd.safe=vd,gd.unsafe=Ad;var _d="undefined"!=typeof process&&"win32"===process.platform?"\r\n":"\n";function bd(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 yd(e){return'"'===e.charAt(0)&&'"'===e.slice(-1)||"'"===e.charAt(0)&&"'"===e.slice(-1)}function vd(e){return"string"!=typeof e||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&yd(e)||e!==e.trim()?JSON.stringify(e):e.replace(/;/g,"\\;").replace(/#/g,"\\#")}function Ad(e,t){if(!yd(e=(e||"").trim())){for(var n=!1,i="",r=0,s=e.length;r<s;r++){var o=e.charAt(r);if(n)-1!=="\\;#".indexOf(o)?i+=o:i+="\\"+o,n=!1;else{if(-1!==";#".indexOf(o))break;"\\"===o?n=!0:i+=o}}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 Ed={exports:{}};!function(e,t){!function(n){t?e.exports=n():"undefined"!=typeof window?window.isWindows=n():void 0!==w?w.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))}})}(Ed,Ed.exports);var wd,xd,Sd,Id,kd,Cd=Ed.exports;kd="win32"===process.platform||w.TESTING_WINDOWS?function(){if(xd)return wd;xd=1,wd=n,n.sync=function(n,i){return t(e.statSync(n),n,i)};var e=r;function t(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 n(n,i,r){e.stat(n,function(e,s){r(e,!e&&t(s,n,i))})}return wd}():function(){if(Id)return Sd;Id=1,Sd=t,t.sync=function(t,i){return n(e.statSync(t),i)};var e=r;function t(t,i,r){e.stat(t,function(e,t){r(e,!e&&n(t,i))})}function n(e,t){return e.isFile()&&function(e,t){var n=e.mode,i=e.uid,r=e.gid,s=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),o=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8);return n&parseInt("001",8)||n&c&&r===o||n&a&&i===s||n&(a|c)&&0===s}(e,t)}return Sd}();var Rd,Bd,Td=Od;function Od(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){Od(e,t||{},function(e,t){e?i(e):n(t)})})}kd(e,t||{},function(e,i){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,i=!1),n(e,i)})}Od.sync=function(e,t){try{return kd.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||"EACCES"===e.code)return!1;throw e}},function(e){var t,n=r,s=i,o=hd,a=ud,c=gd;function l(){if(process.env.PREFIX)t=process.env.PREFIX;else{var e=a();if(e){var r=s.resolve(e,".npmrc");t=u(r)}if(!t){var c=function(){try{return n.realpathSync(function(){if(Bd)return Rd;Bd=1,Rd=a,a.sync=function(e,n){for(var i=o(e,n=n||{}),a=i.env,c=i.ext,l=i.extExe,u=[],p=0,d=a.length;p<d;p++){var h=a[p];'"'===h.charAt(0)&&'"'===h.slice(-1)&&(h=h.slice(1,-1));var f=t.join(h,e);!h&&/^\.[\\\/]/.test(e)&&(f=e.slice(0,2)+f);for(var m=0,g=c.length;m<g;m++){var _=f+c[m];try{if(r.sync(_,{pathExt:l})){if(!n.all)return _;u.push(_)}}catch(e){}}}if(n.all&&u.length)return u;if(n.nothrow)return null;throw s(e)};var e="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,t=i,n=e?";":":",r=Td;function s(e){var t=new Error("not found: "+e);return t.code="ENOENT",t}function o(t,i){var r=i.colon||n,s=i.path||process.env.PATH||"",o=[""];s=s.split(r);var a="";return e&&(s.unshift(process.cwd()),o=(a=i.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM").split(r),-1!==t.indexOf(".")&&""!==o[0]&&o.unshift("")),(t.match(/\//)||e&&t.match(/\\/))&&(s=[""]),{env:s,ext:o,extExe:a}}function a(e,n,i){"function"==typeof n&&(i=n,n={});var a=o(e,n),c=a.env,l=a.ext,u=a.extExe,p=[];!function o(a,d){if(a===d)return n.all&&p.length?i(null,p):i(s(e));var h=c[a];'"'===h.charAt(0)&&'"'===h.slice(-1)&&(h=h.slice(1,-1));var f=t.join(h,e);!h&&/^\.[\\\/]/.test(e)&&(f=e.slice(0,2)+f),function e(t,s){if(t===s)return o(a+1,d);var c=l[t];r(f+c,{pathExt:u},function(r,o){if(!r&&o){if(!n.all)return i(null,f+c);p.push(f+c)}return e(t+1,s)})}(0,l.length)}(0,c.length)}return Rd}().sync("npm"))}catch(e){}return null}();if(c){var l=s.resolve(c,"..","..","npmrc");if(t=u(l)){var p=s.resolve(t,"etc","npmrc");t=u(p)||t}}t||function(){var e=Cd;e()?t=process.env.APPDATA?s.join(process.env.APPDATA,"npm"):s.dirname(process.execPath):(t=s.dirname(s.dirname(process.execPath)),process.env.DESTDIR&&(t=s.join(process.env.DESTDIR,t)))}()}}if(t)return o(t)}function u(e){try{var t=n.readFileSync(e,"utf-8"),i=c.parse(t);if(i.prefix)return i.prefix}catch(e){}return null}Object.defineProperty(e,"exports",{enumerable:!0,get:function(){return t||(t=l())}})}(md);var Nd=md.exports;!function(e){var t,n=i,r=Nd,s=Cd;Object.defineProperty(e,"exports",{enumerable:!0,get:function(){return t||(t=s()?n.resolve(r,"node_modules"):n.resolve(r,"lib/node_modules"))}})}(fd);var Ld=i,Pd=hd,Ud=fd.exports,Dd=r,Md=i;var Hd={};!function(e){e.isInteger=e=>"number"==typeof e?Number.isInteger(e):"string"==typeof e&&""!==e.trim()&&Number.isInteger(Number(e)),e.find=(e,t)=>e.nodes.find(e=>e.type===t),e.exceedsLimit=(t,n,i=1,r)=>!1!==r&&(!(!e.isInteger(t)||!e.isInteger(n))&&(Number(n)-Number(t))/Number(i)>=r),e.escapeNode=(e,t=0,n)=>{const 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)},e.encloseBrace=e=>"brace"===e.type&&(!(e.commas>>0+e.ranges|0)&&(e.invalid=!0,!0)),e.isInvalidBrace=e=>"brace"===e.type&&(!(!0!==e.invalid&&!e.dollar)||(e.commas>>0+e.ranges|0?(!0!==e.open||!0!==e.close)&&(e.invalid=!0,!0):(e.invalid=!0,!0))),e.isOpenOrClose=e=>"open"===e.type||"close"===e.type||(!0===e.open||!0===e.close),e.reduce=e=>e.reduce((e,t)=>("text"===t.type&&e.push(t.value),"range"===t.type&&(t.type="text"),e),[]),e.flatten=(...e)=>{const t=[],n=e=>{for(let i=0;i<e.length;i++){const r=e[i];Array.isArray(r)?n(r):void 0!==r&&t.push(r)}return t};return n(e),t}}(Hd);const Fd=Hd;var jd=(e,t={})=>{const n=(e,i={})=>{const r=t.escapeInvalid&&Fd.isInvalidBrace(i),s=!0===e.invalid&&!0===t.escapeInvalid;let o="";if(e.value)return(r||s)&&Fd.isOpenOrClose(e)?"\\"+e.value:e.value;if(e.value)return e.value;if(e.nodes)for(const t of e.nodes)o+=n(t);return o};return n(e)};const $d=function(e){return"number"==typeof e?e-e===0:"string"==typeof e&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))},Qd=(e,t,n)=>{if(!1===$d(e))throw new TypeError("toRegexRange: expected the first argument to be a number");if(void 0===t||e===t)return String(e);if(!1===$d(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(Qd.cache.hasOwnProperty(r))return Qd.cache[r].result;let s=Math.min(e,t),o=Math.max(e,t);if(1===Math.abs(s-o)){let n=e+"|"+t;return i.capture?`(${n})`:!1===i.wrap?n:`(?:${n})`}let a=Zd(e)||Zd(t),c={min:e,max:t,a:s,b:o},l=[],u=[];if(a&&(c.isPadded=a,c.maxLen=String(c.max).length),s<0){u=qd(o<0?Math.abs(o):1,Math.abs(s),c,i),s=c.a=0}return o>=0&&(l=qd(s,o,c,i)),c.negatives=u,c.positives=l,c.result=function(e,t){let n=Yd(e,t,"-",!1)||[],i=Yd(t,e,"",!1)||[],r=Yd(e,t,"-?",!0)||[];return n.concat(r).concat(i).join("|")}(u,l),!0===i.capture?c.result=`(${c.result})`:!1!==i.wrap&&l.length+u.length>1&&(c.result=`(?:${c.result})`),Qd.cache[r]=c,c.result};function Wd(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,s="",o=0;for(let e=0;e<r;e++){let[t,n]=i[e];t===n?s+=t:"0"!==t||"9"!==n?s+=Jd(t,n):o++}return o&&(s+=!0===n.shorthand?"\\d":"[0-9]"),{pattern:s,count:[o],digits:r}}function qd(e,t,n,i){let r,s=function(e,t){let n=1,i=1,r=zd(e,n),s=new Set([t]);for(;e<=r&&r<=t;)s.add(r),n+=1,r=zd(e,n);for(r=Xd(t+1,i)-1;e<r&&r<=t;)s.add(r),i+=1,r=Xd(t+1,i)-1;return s=[...s],s.sort(Gd),s}(e,t),o=[],a=e;for(let e=0;e<s.length;e++){let t=s[e],c=Wd(String(a),String(t),i),l="";n.isPadded||!r||r.pattern!==c.pattern?(n.isPadded&&(l=eh(t,n,i)),c.string=l+c.pattern+Vd(c.count),o.push(c),a=t+1,r=c):(r.count.length>1&&r.count.pop(),r.count.push(c.count[0]),r.string=r.pattern+Vd(r.count),a=t+1)}return o}function Yd(e,t,n,i,r){let s=[];for(let r of e){let{string:e}=r;i||Kd(t,"string",e)||s.push(n+e),i&&Kd(t,"string",e)&&s.push(n+e)}return s}function Gd(e,t){return e>t?1:t>e?-1:0}function Kd(e,t,n){return e.some(e=>e[t]===n)}function zd(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Xd(e,t){return e-e%Math.pow(10,t)}function Vd(e){let[t=0,n=""]=e;return n||t>1?`{${t+(n?","+n:"")}}`:""}function Jd(e,t,n){return`[${e}${t-e===1?"":"-"}${t}]`}function Zd(e){return/^-?(0+)\d/.test(e)}function eh(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}}`}}Qd.cache={},Qd.clearCache=()=>Qd.cache={};const th=f,nh=Qd,ih=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),rh=e=>"number"==typeof e||"string"==typeof e&&""!==e,sh=e=>Number.isInteger(+e),oh=e=>{let t=`${e}`,n=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++n];);return n>0},ah=(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},ch=(e,t)=>{let n="-"===e[0]?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return n?"-"+e:e},lh=(e,t,n,i)=>{if(n)return nh(e,t,{wrap:!1,...i});let r=String.fromCharCode(e);return e===t?r:`[${r}-${String.fromCharCode(t)}]`},uh=(e,t,n)=>{if(Array.isArray(e)){let t=!0===n.wrap,i=n.capture?"":"?:";return t?`(${i}${e.join("|")})`:e.join("|")}return nh(e,t,n)},ph=(...e)=>new RangeError("Invalid range arguments: "+th.inspect(...e)),dh=(e,t,n)=>{if(!0===n.strictRanges)throw ph([e,t]);return[]},hh=(e,t,n=1,i={})=>{let r=Number(e),s=Number(t);if(!Number.isInteger(r)||!Number.isInteger(s)){if(!0===i.strictRanges)throw ph([e,t]);return[]}0===r&&(r=0),0===s&&(s=0);let o=r>s,a=String(e),c=String(t),l=String(n);n=Math.max(Math.abs(n),1);let u=oh(a)||oh(c)||oh(l),p=u?Math.max(a.length,c.length,l.length):0,d=!1===u&&!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))(d);if(i.toRegex&&1===n)return lh(ch(e,p),ch(t,p),!0,i);let f={negatives:[],positives:[]},m=e=>f[e<0?"negatives":"positives"].push(Math.abs(e)),g=[],_=0;for(;o?r>=s:r<=s;)!0===i.toRegex&&n>1?m(r):g.push(ah(h(r,_),p,d)),r=o?r-n:r+n,_++;return!0===i.toRegex?n>1?((e,t,n)=>{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 i,r=t.capture?"":"?:",s="",o="";return e.positives.length&&(s=e.positives.map(e=>ch(String(e),n)).join("|")),e.negatives.length&&(o=`-(${r}${e.negatives.map(e=>ch(String(e),n)).join("|")})`),i=s&&o?`${s}|${o}`:s||o,t.wrap?`(${r}${i})`:i})(f,i,p):uh(g,null,{wrap:!1,...i}):g},fh=(e,t,n,i={})=>{if(null==t&&rh(e))return[e];if(!rh(e)||!rh(t))return dh(e,t,i);if("function"==typeof n)return fh(e,t,1,{transform:n});if(ih(n))return fh(e,t,0,n);let r={...i};return!0===r.capture&&(r.wrap=!0),n=n||r.step||1,sh(n)?sh(e)&&sh(t)?hh(e,t,n,r):((e,t,n=1,i={})=>{if(!sh(e)&&e.length>1||!sh(t)&&t.length>1)return dh(e,t,i);let r=i.transform||(e=>String.fromCharCode(e)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,c=Math.min(s,o),l=Math.max(s,o);if(i.toRegex&&1===n)return lh(c,l,!1,i);let u=[],p=0;for(;a?s>=o:s<=o;)u.push(r(s,p)),s=a?s-n:s+n,p++;return!0===i.toRegex?uh(u,null,{wrap:!1,options:i}):u})(e,t,Math.max(Math.abs(n),1),r):null==n||ih(n)?fh(e,t,1,n):((e,t)=>{if(!0===t.strictRanges)throw new TypeError(`Expected step "${e}" to be a number`);return[]})(n,r)};const mh=fh,gh=Hd;var _h=(e,t={})=>{const n=(e,i={})=>{const r=gh.isInvalidBrace(i),s=!0===e.invalid&&!0===t.escapeInvalid,o=!0===r||!0===s,a=!0===t.escapeInvalid?"\\":"";let c="";if(!0===e.isOpen)return a+e.value;if(!0===e.isClose)return console.log("node.isClose",a,e.value),a+e.value;if("open"===e.type)return o?a+e.value:"(";if("close"===e.type)return o?a+e.value:")";if("comma"===e.type)return"comma"===e.prev.type?"":o?e.value:"|";if(e.value)return e.value;if(e.nodes&&e.ranges>0){const n=gh.reduce(e.nodes),i=mh(...n,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(0!==i.length)return n.length>1&&i.length>1?`(${i})`:i}if(e.nodes)for(const t of e.nodes)c+=n(t,e);return c};return n(e)};const bh=fh,yh=jd,vh=Hd,Ah=(e="",t="",n=!1)=>{const i=[];if(e=[].concat(e),!(t=[].concat(t)).length)return e;if(!e.length)return n?vh.flatten(t).map(e=>`{${e}}`):t;for(const r of e)if(Array.isArray(r))for(const e of r)i.push(Ah(e,t,n));else for(let e of t)!0===n&&"string"==typeof e&&(e=`{${e}}`),i.push(Array.isArray(e)?Ah(r,e,n):r+e);return vh.flatten(i)};var Eh=(e,t={})=>{const n=void 0===t.rangeLimit?1e3:t.rangeLimit,i=(e,r={})=>{e.queue=[];let s=r,o=r.queue;for(;"brace"!==s.type&&"root"!==s.type&&s.parent;)s=s.parent,o=s.queue;if(e.invalid||e.dollar)return void o.push(Ah(o.pop(),yh(e,t)));if("brace"===e.type&&!0!==e.invalid&&2===e.nodes.length)return void o.push(Ah(o.pop(),["{}"]));if(e.nodes&&e.ranges>0){const i=vh.reduce(e.nodes);if(vh.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=bh(...i,t);return 0===r.length&&(r=yh(e,t)),o.push(Ah(o.pop(),r)),void(e.nodes=[])}const a=vh.encloseBrace(e);let c=e.queue,l=e;for(;"brace"!==l.type&&"root"!==l.type&&l.parent;)l=l.parent,c=l.queue;for(let t=0;t<e.nodes.length;t++){const n=e.nodes[t];"comma"!==n.type||"brace"!==e.type?"close"!==n.type?n.value&&"open"!==n.type?c.push(Ah(c.pop(),n.value)):n.nodes&&i(n,e):o.push(Ah(o.pop(),c,a)):(1===t&&c.push(""),c.push(""))}return c};return vh.flatten(i(e))};const wh=jd,{MAX_LENGTH:xh,CHAR_BACKSLASH:Sh,CHAR_BACKTICK:Ih,CHAR_COMMA:kh,CHAR_DOT:Ch,CHAR_LEFT_PARENTHESES:Rh,CHAR_RIGHT_PARENTHESES:Bh,CHAR_LEFT_CURLY_BRACE:Th,CHAR_RIGHT_CURLY_BRACE:Oh,CHAR_LEFT_SQUARE_BRACKET:Nh,CHAR_RIGHT_SQUARE_BRACKET:Lh,CHAR_DOUBLE_QUOTE:Ph,CHAR_SINGLE_QUOTE:Uh,CHAR_NO_BREAK_SPACE:Dh,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Mh}={MAX_LENGTH:1e4,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 Hh=(e,t={})=>{if("string"!=typeof e)throw new TypeError("Expected a string");const n=t||{},i="number"==typeof n.maxLength?Math.min(xh,n.maxLength):xh;if(e.length>i)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${i})`);const r={type:"root",input:e,nodes:[]},s=[r];let o=r,a=r,c=0;const l=e.length;let u,p=0,d=0;const h=()=>e[p++],f=e=>{if("text"===e.type&&"dot"===a.type&&(a.type="text"),!a||"text"!==a.type||"text"!==e.type)return o.nodes.push(e),e.parent=o,e.prev=a,a=e,e;a.value+=e.value};for(f({type:"bos"});p<l;)if(o=s[s.length-1],u=h(),u!==Mh&&u!==Dh)if(u!==Sh)if(u!==Lh){if(u===Nh){let e;for(c++;p<l&&(e=h());)if(u+=e,e!==Nh)if(e!==Sh){if(e===Lh&&(c--,0===c))break}else u+=h();else c++;f({type:"text",value:u});continue}if(u!==Rh)if(u!==Bh){if(u===Ph||u===Uh||u===Ih){const e=u;let n;for(!0!==t.keepQuotes&&(u="");p<l&&(n=h());)if(n!==Sh){if(n===e){!0===t.keepQuotes&&(u+=n);break}u+=n}else u+=n+h();f({type:"text",value:u});continue}if(u===Th){d++;const e=a.value&&"$"===a.value.slice(-1)||!0===o.dollar;o=f({type:"brace",open:!0,close:!1,dollar:e,depth:d,commas:0,ranges:0,nodes:[]}),s.push(o),f({type:"open",value:u});continue}if(u===Oh){if("brace"!==o.type){f({type:"text",value:u});continue}const e="close";o=s.pop(),o.close=!0,f({type:e,value:u}),d--,o=s[s.length-1];continue}if(u===kh&&d>0){if(o.ranges>0){o.ranges=0;const e=o.nodes.shift();o.nodes=[e,{type:"text",value:wh(o)}]}f({type:"comma",value:u}),o.commas++}else{if(u===Ch&&d>0&&0===o.commas){const e=o.nodes;if(0===d||0===e.length){f({type:"text",value:u});continue}if("dot"===a.type){if(o.range=[],a.value+=u,a.type="range",3!==o.nodes.length&&5!==o.nodes.length){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if("range"===a.type){e.pop();const t=e[e.length-1];t.value+=a.value+u,a=t,o.ranges--;continue}f({type:"dot",value:u});continue}f({type:"text",value:u})}}else{if("paren"!==o.type){f({type:"text",value:u});continue}o=s.pop(),f({type:"text",value:u}),o=s[s.length-1]}else o=f({type:"paren",nodes:[]}),s.push(o),f({type:"text",value:u})}else f({type:"text",value:"\\"+u});else f({type:"text",value:(t.keepEscaping?u:"")+h()});do{if(o=s.pop(),"root"!==o.type){o.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)});const e=s[s.length-1],t=e.nodes.indexOf(o);e.nodes.splice(t,1,...o.nodes)}}while(s.length>0);return f({type:"eos"}),r};const Fh=jd,jh=_h,$h=Eh,Qh=Hh,Wh=(e,t={})=>{let n=[];if(Array.isArray(e))for(const i of e){const e=Wh.create(i,t);Array.isArray(e)?n.push(...e):n.push(e)}else n=[].concat(Wh.create(e,t));return t&&!0===t.expand&&!0===t.nodupes&&(n=[...new Set(n)]),n};Wh.parse=(e,t={})=>Qh(e,t),Wh.stringify=(e,t={})=>Fh("string"==typeof e?Wh.parse(e,t):e,t),Wh.compile=(e,t={})=>("string"==typeof e&&(e=Wh.parse(e,t)),jh(e,t)),Wh.expand=(e,t={})=>{"string"==typeof e&&(e=Wh.parse(e,t));let n=$h(e,t);return!0===t.noempty&&(n=n.filter(Boolean)),!0===t.nodupes&&(n=[...new Set(n)]),n},Wh.create=(e,t={})=>""===e||e.length<3?[e]:!0!==t.expand?Wh.compile(e,t):Wh.expand(e,t);var qh=Wh,Yh={};const Gh=i,Kh="\\\\/",zh=`[^${Kh}]`,Xh="\\.",Vh="\\/",Jh="[^/]",Zh=`(?:${Vh}|$)`,ef=`(?:^|${Vh})`,tf=`${Xh}{1,2}${Zh}`,nf={DOT_LITERAL:Xh,PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:Vh,ONE_CHAR:"(?=.)",QMARK:Jh,END_ANCHOR:Zh,DOTS_SLASH:tf,NO_DOT:`(?!${Xh})`,NO_DOTS:`(?!${ef}${tf})`,NO_DOT_SLASH:`(?!${Xh}{0,1}${Zh})`,NO_DOTS_SLASH:`(?!${tf})`,QMARK_NO_DOT:`[^.${Vh}]`,STAR:`${Jh}*?`,START_ANCHOR:ef},rf={...nf,SLASH_LITERAL:`[${Kh}]`,QMARK:zh,STAR:`${zh}*?`,DOTS_SLASH:`${Xh}{1,2}(?:[${Kh}]|$)`,NO_DOT:`(?!${Xh})`,NO_DOTS:`(?!(?:^|[${Kh}])${Xh}{1,2}(?:[${Kh}]|$))`,NO_DOT_SLASH:`(?!${Xh}{0,1}(?:[${Kh}]|$))`,NO_DOTS_SLASH:`(?!${Xh}{1,2}(?:[${Kh}]|$))`,QMARK_NO_DOT:`[^.${Kh}]`,START_ANCHOR:`(?:^|[${Kh}])`,END_ANCHOR:`(?:[${Kh}]|$)`};var sf={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{__proto__:null,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:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},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:Gh.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?rf:nf};!function(e){const t=i,n="win32"===process.platform,{REGEX_BACKSLASH:r,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:o,REGEX_SPECIAL_CHARS_GLOBAL:a}=sf;e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>o.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(a,"\\$1"),e.toPosixSlashes=e=>e.replace(r,"/"),e.removeBackslashes=e=>e.replace(s,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===n||"\\"===t.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}}(Yh);const of=Yh,{CHAR_ASTERISK:af,CHAR_AT:cf,CHAR_BACKWARD_SLASH:lf,CHAR_COMMA:uf,CHAR_DOT:pf,CHAR_EXCLAMATION_MARK:df,CHAR_FORWARD_SLASH:hf,CHAR_LEFT_CURLY_BRACE:ff,CHAR_LEFT_PARENTHESES:mf,CHAR_LEFT_SQUARE_BRACKET:gf,CHAR_PLUS:_f,CHAR_QUESTION_MARK:bf,CHAR_RIGHT_CURLY_BRACE:yf,CHAR_RIGHT_PARENTHESES:vf,CHAR_RIGHT_SQUARE_BRACKET:Af}=sf,Ef=e=>e===hf||e===lf,wf=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};var xf=(e,t)=>{const n=t||{},i=e.length-1,r=!0===n.parts||!0===n.scanToEnd,s=[],o=[],a=[];let c,l,u=e,p=-1,d=0,h=0,f=!1,m=!1,g=!1,_=!1,b=!1,y=!1,v=!1,A=!1,E=!1,w=!1,x=0,S={value:"",depth:0,isGlob:!1};const I=()=>p>=i,k=()=>u.charCodeAt(p+1),C=()=>(c=l,u.charCodeAt(++p));for(;p<i;){let e;if(l=C(),l!==lf){if(!0===y||l===ff){for(x++;!0!==I()&&(l=C());)if(l!==lf)if(l!==ff){if(!0!==y&&l===pf&&(l=C())===pf){if(f=S.isBrace=!0,g=S.isGlob=!0,w=!0,!0===r)continue;break}if(!0!==y&&l===uf){if(f=S.isBrace=!0,g=S.isGlob=!0,w=!0,!0===r)continue;break}if(l===yf&&(x--,0===x)){y=!1,f=S.isBrace=!0,w=!0;break}}else x++;else v=S.backslashes=!0,C();if(!0===r)continue;break}if(l!==hf){if(!0!==n.noext){if(!0===(l===_f||l===cf||l===af||l===bf||l===df)&&k()===mf){if(g=S.isGlob=!0,_=S.isExtglob=!0,w=!0,l===df&&p===d&&(E=!0),!0===r){for(;!0!==I()&&(l=C());)if(l!==lf){if(l===vf){g=S.isGlob=!0,w=!0;break}}else v=S.backslashes=!0,l=C();continue}break}}if(l===af){if(c===af&&(b=S.isGlobstar=!0),g=S.isGlob=!0,w=!0,!0===r)continue;break}if(l===bf){if(g=S.isGlob=!0,w=!0,!0===r)continue;break}if(l===gf){for(;!0!==I()&&(e=C());)if(e!==lf){if(e===Af){m=S.isBracket=!0,g=S.isGlob=!0,w=!0;break}}else v=S.backslashes=!0,C();if(!0===r)continue;break}if(!0===n.nonegate||l!==df||p!==d){if(!0!==n.noparen&&l===mf){if(g=S.isGlob=!0,!0===r){for(;!0!==I()&&(l=C());)if(l!==mf){if(l===vf){w=!0;break}}else v=S.backslashes=!0,l=C();continue}break}if(!0===g){if(w=!0,!0===r)continue;break}}else A=S.negated=!0,d++}else{if(s.push(p),o.push(S),S={value:"",depth:0,isGlob:!1},!0===w)continue;if(c===pf&&p===d+1){d+=2;continue}h=p+1}}else v=S.backslashes=!0,l=C(),l===ff&&(y=!0)}!0===n.noext&&(_=!1,g=!1);let R=u,B="",T="";d>0&&(B=u.slice(0,d),u=u.slice(d),h-=d),R&&!0===g&&h>0?(R=u.slice(0,h),T=u.slice(h)):!0===g?(R="",T=u):R=u,R&&""!==R&&"/"!==R&&R!==u&&Ef(R.charCodeAt(R.length-1))&&(R=R.slice(0,-1)),!0===n.unescape&&(T&&(T=of.removeBackslashes(T)),R&&!0===v&&(R=of.removeBackslashes(R)));const O={prefix:B,input:e,start:d,base:R,glob:T,isBrace:f,isBracket:m,isGlob:g,isExtglob:_,isGlobstar:b,negated:A,negatedExtglob:E};if(!0===n.tokens&&(O.maxDepth=0,Ef(l)||o.push(S),O.tokens=o),!0===n.parts||!0===n.tokens){let t;for(let i=0;i<s.length;i++){const r=t?t+1:d,c=s[i],l=e.slice(r,c);n.tokens&&(0===i&&0!==d?(o[i].isPrefix=!0,o[i].value=B):o[i].value=l,wf(o[i]),O.maxDepth+=o[i].depth),0===i&&""===l||a.push(l),t=c}if(t&&t+1<e.length){const i=e.slice(t+1);a.push(i),n.tokens&&(o[o.length-1].value=i,wf(o[o.length-1]),O.maxDepth+=o[o.length-1].depth)}O.slashes=s,O.parts=a}return O};const Sf=sf,If=Yh,{MAX_LENGTH:kf,POSIX_REGEX_SOURCE:Cf,REGEX_NON_SPECIAL_CHARS:Rf,REGEX_SPECIAL_CHARS_BACKREF:Bf,REPLACEMENTS:Tf}=Sf,Of=(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=>If.escapeRegex(e)).join("..")}return n},Nf=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Lf=e=>{const t=[];let n=0,i=0,r=0,s="",o=!1;for(const a of e)if(!0!==o)if("\\"!==a)if('"'!==a){if(0===r)if("["===a)n++;else if("]"===a&&n>0)n--;else if(0===n)if("("===a)i++;else if(")"===a&&i>0)i--;else if("|"===a&&0===i){t.push(s),s="";continue}s+=a}else r=1===r?0:1,s+=a;else s+=a,o=!0;else s+=a,o=!1;return t.push(s),t},Pf=e=>{let t=e.trim(),n=!0;for(;!0===n;)n=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),n=!0);if((e=>{let t=!1;for(const n of e)if(!0!==t)if("\\"!==n){if(/[?*+@!()[\]{}]/.test(n))return!1}else t=!0;else t=!1;return!0})(t))return t.replace(/\\(.)/g,"$1")},Uf=(e,t=!0)=>{if("+"!==e[0]&&"*"!==e[0]||"("!==e[1])return;let n=0,i=0,r=0,s=!1;for(let o=1;o<e.length;o++){const a=e[o];if(!0!==s)if("\\"!==a)if('"'!==a){if(1!==r)if("["!==a){if("]"===a&&n>0)n--;else if(!(n>0))if("("!==a){if(")"===a&&(i--,0===i)){if(!0===t&&o!==e.length-1)return;return{type:e[0],body:e.slice(2,o),end:o}}}else i++}else n++}else r=1===r?0:1;else s=!0;else s=!1}},Df=e=>{let t=0;const n=[];for(;t<e.length;){const i=Uf(e.slice(t),!1);if(!i||"*"!==i.type)return;const r=Lf(i.body).map(e=>e.trim());if(1!==r.length)return;const s=Pf(r[0]);if(!s||1!==s.length)return;n.push(s),t+=i.end+1}if(n.length<1)return;return`${1===n.length?If.escapeRegex(n[0]):`[${n.map(e=>If.escapeRegex(e)).join("")}]`}*`},Mf=e=>{let t=0,n=e.trim(),i=Uf(n);for(;i;)t++,n=i.body.trim(),i=Uf(n);return t},Hf=(e,t)=>{if(!1===t.maxExtglobRecursion)return{risky:!1};const n="number"==typeof t.maxExtglobRecursion?t.maxExtglobRecursion:Sf.DEFAULT_MAX_EXTGLOB_RECURSION,i=Lf(e).map(e=>e.trim());if(i.length>1&&(i.some(e=>""===e)||i.some(e=>/^[*?]+$/.test(e))||(e=>{const t=e.map(Pf).filter(Boolean);for(let e=0;e<t.length;e++)for(let n=e+1;n<t.length;n++){const i=t[e],r=t[n],s=i[0];if(s&&i===s.repeat(i.length)&&r===s.repeat(r.length)&&(i===r||i.startsWith(r)||r.startsWith(i)))return!0}return!1})(i)))return{risky:!0};for(const e of i){const t=Df(e);if(t)return{risky:!0,safeOutput:t};if(Mf(e)>n)return{risky:!0}}return{risky:!1}},Ff=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");e=Tf[e]||e;const n={...t},i="number"==typeof n.maxLength?Math.min(kf,n.maxLength):kf;let r=e.length;if(r>i)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${i}`);const s={type:"bos",value:"",output:n.prepend||""},o=[s],a=n.capture?"":"?:",c=If.isWindows(t),l=Sf.globChars(c),u=Sf.extglobChars(l),{DOT_LITERAL:p,PLUS_LITERAL:d,SLASH_LITERAL:h,ONE_CHAR:f,DOTS_SLASH:m,NO_DOT:g,NO_DOT_SLASH:_,NO_DOTS_SLASH:b,QMARK:y,QMARK_NO_DOT:v,STAR:A,START_ANCHOR:E}=l,w=e=>`(${a}(?:(?!${E}${e.dot?m:p}).)*?)`,x=n.dot?"":g,S=n.dot?y:v;let I=!0===n.bash?w(n):A;n.capture&&(I=`(${I})`),"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:o};e=If.removePrefix(e,k),r=e.length;const C=[],R=[],B=[];let T,O=s;const N=()=>k.index===r-1,L=k.peek=(t=1)=>e[k.index+t],P=k.advance=()=>e[++k.index]||"",U=()=>e.slice(k.index+1),D=(e="",t=0)=>{k.consumed+=e,k.index+=t},M=e=>{k.output+=null!=e.output?e.output:e.value,D(e.value)},H=()=>{let e=1;for(;"!"===L()&&("("!==L(2)||"?"===L(3));)P(),k.start++,e++;return e%2!=0&&(k.negated=!0,k.start++,!0)},F=e=>{k[e]++,B.push(e)},j=e=>{k[e]--,B.pop()},$=e=>{if("globstar"===O.type){const t=k.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||C.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=I,k.output+=O.output)}if(C.length&&"paren"!==e.type&&(C[C.length-1].inner+=e.value),(e.value||e.output)&&M(e),O&&"text"===O.type&&"text"===e.type)return O.value+=e.value,void(O.output=(O.output||"")+e.value);e.prev=O,o.push(e),O=e},Q=(e,t)=>{const i={...u[t],conditions:1,inner:""};i.prev=O,i.parens=k.parens,i.output=k.output,i.startIndex=k.index,i.tokensIndex=o.length;const r=(n.capture?"(":"")+i.open;F("parens"),$({type:e,value:t,output:k.output?"":f}),$({type:"paren",extglob:!0,value:P(),output:r}),C.push(i)},W=i=>{const r=e.slice(i.startIndex,k.index+1),s=e.slice(i.startIndex+2,k.index),a=Hf(s,n);if(("plus"===i.type||"star"===i.type)&&a.risky){const e=a.safeOutput?(i.output?"":f)+(n.capture?`(${a.safeOutput})`:a.safeOutput):void 0,t=o[i.tokensIndex];t.type="text",t.value=r,t.output=e||If.escapeRegex(r);for(let e=i.tokensIndex+1;e<o.length;e++)o[e].value="",o[e].output="",delete o[e].suffix;return k.output=i.output+t.output,k.backtrack=!0,$({type:"paren",extglob:!0,value:T,output:""}),void j("parens")}let c,l=i.close+(n.capture?")":"");if("negate"===i.type){let e=I;if(i.inner&&i.inner.length>1&&i.inner.includes("/")&&(e=w(n)),(e!==I||N()||/^\)+$/.test(U()))&&(l=i.close=`)$))${e}`),i.inner.includes("*")&&(c=U())&&/^\.[^\\/.]+$/.test(c)){const n=Ff(c,{...t,fastpaths:!1}).output;l=i.close=`)${n})${e})`}"bos"===i.prev.type&&(k.negatedExtglob=!0)}$({type:"paren",extglob:!0,value:T,output:l}),j("parens")};if(!1!==n.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(e)){let i=!1,r=e.replace(Bf,(e,t,n,r,s,o)=>"\\"===r?(i=!0,e):"?"===r?t?t+r+(s?y.repeat(s.length):""):0===o?S+(s?y.repeat(s.length):""):y.repeat(n.length):"."===r?p.repeat(n.length):"*"===r?t?t+r+(s?I:""):I: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=If.wrapOutput(r,k,t),k)}for(;!N();){if(T=P(),"\0"===T)continue;if("\\"===T){const e=L();if("/"===e&&!0!==n.bash)continue;if("."===e||";"===e)continue;if(!e){T+="\\",$({type:"text",value:T});continue}const t=/^\\+/.exec(U());let i=0;if(t&&t[0].length>2&&(i=t[0].length,k.index+=i,i%2!=0&&(T+="\\")),!0===n.unescape?T=P():T+=P(),0===k.brackets){$({type:"text",value:T});continue}}if(k.brackets>0&&("]"!==T||"["===O.value||"[^"===O.value)){if(!1!==n.posix&&":"===T){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=Cf[n];if(i){O.value=t+i,k.backtrack=!0,P(),s.output||1!==o.indexOf(O)||(s.output=f);continue}}}("["===T&&":"!==L()||"-"===T&&"]"===L())&&(T=`\\${T}`),"]"!==T||"["!==O.value&&"[^"!==O.value||(T=`\\${T}`),!0===n.posix&&"!"===T&&"["===O.value&&(T="^"),O.value+=T,M({value:T});continue}if(1===k.quotes&&'"'!==T){T=If.escapeRegex(T),O.value+=T,M({value:T});continue}if('"'===T){k.quotes=1===k.quotes?0:1,!0===n.keepQuotes&&$({type:"text",value:T});continue}if("("===T){F("parens"),$({type:"paren",value:T});continue}if(")"===T){if(0===k.parens&&!0===n.strictBrackets)throw new SyntaxError(Nf("opening","("));const e=C[C.length-1];if(e&&k.parens===e.parens+1){W(C.pop());continue}$({type:"paren",value:T,output:k.parens?")":"\\)"}),j("parens");continue}if("["===T){if(!0!==n.nobracket&&U().includes("]"))F("brackets");else{if(!0!==n.nobracket&&!0===n.strictBrackets)throw new SyntaxError(Nf("closing","]"));T=`\\${T}`}$({type:"bracket",value:T});continue}if("]"===T){if(!0===n.nobracket||O&&"bracket"===O.type&&1===O.value.length){$({type:"text",value:T,output:`\\${T}`});continue}if(0===k.brackets){if(!0===n.strictBrackets)throw new SyntaxError(Nf("opening","["));$({type:"text",value:T,output:`\\${T}`});continue}j("brackets");const e=O.value.slice(1);if(!0===O.posix||"^"!==e[0]||e.includes("/")||(T=`/${T}`),O.value+=T,M({value:T}),!1===n.literalBrackets||If.hasRegexChars(e))continue;const t=If.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=`(${a}${t}|${O.value})`,k.output+=O.value;continue}if("{"===T&&!0!==n.nobrace){F("braces");const e={type:"brace",value:T,output:"(",outputIndex:k.output.length,tokensIndex:k.tokens.length};R.push(e),$(e);continue}if("}"===T){const e=R[R.length-1];if(!0===n.nobrace||!e){$({type:"text",value:T,output:T});continue}let t=")";if(!0===e.dots){const e=o.slice(),i=[];for(let t=e.length-1;t>=0&&(o.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&i.unshift(e[t].value);t=Of(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="\\{",T=t="\\}",k.output=n;for(const e of i)k.output+=e.output||e.value}$({type:"brace",value:T,output:t}),j("braces"),R.pop();continue}if("|"===T){C.length>0&&C[C.length-1].conditions++,$({type:"text",value:T});continue}if(","===T){let e=T;const t=R[R.length-1];t&&"braces"===B[B.length-1]&&(t.comma=!0,e="|"),$({type:"comma",value:T,output:e});continue}if("/"===T){if("dot"===O.type&&k.index===k.start+1){k.start=k.index+1,k.consumed="",k.output="",o.pop(),O=s;continue}$({type:"slash",value:T,output:h});continue}if("."===T){if(k.braces>0&&"dot"===O.type){"."===O.value&&(O.output=p);const e=R[R.length-1];O.type="dots",O.output+=T,O.value+=T,e.dots=!0;continue}if(k.braces+k.parens===0&&"bos"!==O.type&&"slash"!==O.type){$({type:"text",value:T,output:p});continue}$({type:"dot",value:T,output:p});continue}if("?"===T){if(!(O&&"("===O.value)&&!0!==n.noextglob&&"("===L()&&"?"!==L(2)){Q("qmark",T);continue}if(O&&"paren"===O.type){const e=L();let t=T;if("<"===e&&!If.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");("("===O.value&&!/[!=<:]/.test(e)||"<"===e&&!/<([!=]|\w+>)/.test(U()))&&(t=`\\${T}`),$({type:"text",value:T,output:t});continue}if(!0!==n.dot&&("slash"===O.type||"bos"===O.type)){$({type:"qmark",value:T,output:v});continue}$({type:"qmark",value:T,output:y});continue}if("!"===T){if(!0!==n.noextglob&&"("===L()&&("?"!==L(2)||!/[!=<:]/.test(L(3)))){Q("negate",T);continue}if(!0!==n.nonegate&&0===k.index){H();continue}}if("+"===T){if(!0!==n.noextglob&&"("===L()&&"?"!==L(2)){Q("plus",T);continue}if(O&&"("===O.value||!1===n.regex){$({type:"plus",value:T,output:d});continue}if(O&&("bracket"===O.type||"paren"===O.type||"brace"===O.type)||k.parens>0){$({type:"plus",value:T});continue}$({type:"plus",value:d});continue}if("@"===T){if(!0!==n.noextglob&&"("===L()&&"?"!==L(2)){$({type:"at",extglob:!0,value:T,output:""});continue}$({type:"text",value:T});continue}if("*"!==T){"$"!==T&&"^"!==T||(T=`\\${T}`);const e=Rf.exec(U());e&&(T+=e[0],k.index+=e[0].length),$({type:"text",value:T});continue}if(O&&("globstar"===O.type||!0===O.star)){O.type="star",O.star=!0,O.value+=T,O.output=I,k.backtrack=!0,k.globstar=!0,D(T);continue}let t=U();if(!0!==n.noextglob&&/^\([^?]/.test(t)){Q("star",T);continue}if("star"===O.type){if(!0===n.noglobstar){D(T);continue}const i=O.prev,r=i.prev,s="slash"===i.type||"bos"===i.type,o=r&&("star"===r.type||"globstar"===r.type);if(!0===n.bash&&(!s||t[0]&&"/"!==t[0])){$({type:"star",value:T,output:""});continue}const a=k.braces>0&&("comma"===i.type||"brace"===i.type),c=C.length&&("pipe"===i.type||"paren"===i.type);if(!s&&"paren"!==i.type&&!a&&!c){$({type:"star",value:T,output:""});continue}for(;"/**"===t.slice(0,3);){const n=e[k.index+4];if(n&&"/"!==n)break;t=t.slice(3),D("/**",3)}if("bos"===i.type&&N()){O.type="globstar",O.value+=T,O.output=w(n),k.output=O.output,k.globstar=!0,D(T);continue}if("slash"===i.type&&"bos"!==i.prev.type&&!o&&N()){k.output=k.output.slice(0,-(i.output+O.output).length),i.output=`(?:${i.output}`,O.type="globstar",O.output=w(n)+(n.strictSlashes?")":"|$)"),O.value+=T,k.globstar=!0,k.output+=i.output+O.output,D(T);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=`${w(n)}${h}|${h}${e})`,O.value+=T,k.output+=i.output+O.output,k.globstar=!0,D(T+P()),$({type:"slash",value:"/",output:""});continue}if("bos"===i.type&&"/"===t[0]){O.type="globstar",O.value+=T,O.output=`(?:^|${h}|${w(n)}${h})`,k.output=O.output,k.globstar=!0,D(T+P()),$({type:"slash",value:"/",output:""});continue}k.output=k.output.slice(0,-O.output.length),O.type="globstar",O.output=w(n),O.value+=T,k.output+=O.output,k.globstar=!0,D(T);continue}const i={type:"star",value:T,output:I};!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+=_,O.output+=_):!0===n.dot?(k.output+=b,O.output+=b):(k.output+=x,O.output+=x),"*"!==L()&&(k.output+=f,O.output+=f)),$(i)):(i.output=T,$(i)):(i.output=".*?","bos"!==O.type&&"slash"!==O.type||(i.output=x+i.output),$(i))}for(;k.brackets>0;){if(!0===n.strictBrackets)throw new SyntaxError(Nf("closing","]"));k.output=If.escapeLast(k.output,"["),j("brackets")}for(;k.parens>0;){if(!0===n.strictBrackets)throw new SyntaxError(Nf("closing",")"));k.output=If.escapeLast(k.output,"("),j("parens")}for(;k.braces>0;){if(!0===n.strictBrackets)throw new SyntaxError(Nf("closing","}"));k.output=If.escapeLast(k.output,"{"),j("braces")}if(!0===n.strictSlashes||"star"!==O.type&&"bracket"!==O.type||$({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};Ff.fastpaths=(e,t)=>{const n={...t},i="number"==typeof n.maxLength?Math.min(kf,n.maxLength):kf,r=e.length;if(r>i)throw new SyntaxError(`Input length: ${r}, exceeds maximum allowed length: ${i}`);e=Tf[e]||e;const s=If.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:l,NO_DOT:u,NO_DOTS:p,NO_DOTS_SLASH:d,STAR:h,START_ANCHOR:f}=Sf.globChars(s),m=n.dot?p:u,g=n.dot?d:u,_=n.capture?"":"?:";let b=!0===n.bash?".*?":h;n.capture&&(b=`(${b})`);const y=e=>!0===e.noglobstar?b:`(${_}(?:(?!${f}${e.dot?l:o}).)*?)`,v=e=>{switch(e){case"*":return`${m}${c}${b}`;case".*":return`${o}${c}${b}`;case"*.*":return`${m}${b}${o}${c}${b}`;case"*/*":return`${m}${b}${a}${c}${g}${b}`;case"**":return m+y(n);case"**/*":return`(?:${m}${y(n)}${a})?${g}${c}${b}`;case"**/*.*":return`(?:${m}${y(n)}${a})?${g}${b}${o}${c}${b}`;case"**/.*":return`(?:${m}${y(n)}${a})?${o}${c}${b}`;default:{const t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;const n=v(t[1]);if(!n)return;return n+o+t[2]}}},A=If.removePrefix(e,{negated:!1,prefix:""});let E=v(A);return E&&!0!==n.strictSlashes&&(E+=`${a}?`),E};const jf=i,$f=xf,Qf=Ff,Wf=Yh,qf=sf,Yf=(e,t,n=!1)=>{if(Array.isArray(e)){const i=e.map(e=>Yf(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 s=t||{},o=Wf.isWindows(t),a=i?Yf.compileRe(e,t):Yf.makeRe(e,t,!1,!0),c=a.state;delete a.state;let l=()=>!1;if(s.ignore){const e={...t,ignore:null,onMatch:null,onResult:null};l=Yf(s.ignore,e,n)}const u=(n,i=!1)=>{const{isMatch:r,match:u,output:p}=Yf.test(n,a,t,{glob:e,posix:o}),d={glob:e,state:c,regex:a,posix:o,input:n,output:p,match:u,isMatch:r};return"function"==typeof s.onResult&&s.onResult(d),!1===r?(d.isMatch=!1,!!i&&d):l(n)?("function"==typeof s.onIgnore&&s.onIgnore(d),d.isMatch=!1,!!i&&d):("function"==typeof s.onMatch&&s.onMatch(d),!i||d)};return n&&(u.state=c),u};Yf.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 s=n||{},o=s.format||(r?Wf.toPosixSlashes:null);let a=e===i,c=a&&o?o(e):e;return!1===a&&(c=o?o(e):e,a=c===i),!1!==a&&!0!==s.capture||(a=!0===s.matchBase||!0===s.basename?Yf.matchBase(e,t,n,r):t.exec(c)),{isMatch:Boolean(a),match:a,output:c}},Yf.matchBase=(e,t,n,i=Wf.isWindows(n))=>(t instanceof RegExp?t:Yf.makeRe(t,n)).test(jf.basename(e)),Yf.isMatch=(e,t,n)=>Yf(t,n)(e),Yf.parse=(e,t)=>Array.isArray(e)?e.map(e=>Yf.parse(e,t)):Qf(e,{...t,fastpaths:!1}),Yf.scan=(e,t)=>$f(e,t),Yf.compileRe=(e,t,n=!1,i=!1)=>{if(!0===n)return e.output;const r=t||{},s=r.contains?"":"^",o=r.contains?"":"$";let a=`${s}(?:${e.output})${o}`;e&&!0===e.negated&&(a=`^(?!${a}).*$`);const c=Yf.toRegex(a,t);return!0===i&&(c.state=e),c},Yf.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=Qf.fastpaths(e,t)),r.output||(r=Qf(e,t)),Yf.compileRe(r,t,n,i)},Yf.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/$^/}},Yf.constants=qf;const Gf=f,Kf=qh,zf=Yf,Xf=Yh,Vf=e=>""===e||"./"===e,Jf=e=>{const t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},Zf=(e,t,n)=>{t=[].concat(t),e=[].concat(e);let i=new Set,r=new Set,s=new Set,o=0,a=e=>{s.add(e.output),n&&n.onResult&&n.onResult(e)};for(let s=0;s<t.length;s++){let c=zf(String(t[s]),{...n,onResult:a},!0),l=c.state.negated||c.state.negatedExtglob;l&&o++;for(let t of e){let e=c(t,!0);(l?!e.isMatch:e.isMatch)&&(l?i.add(e.output):(i.delete(e.output),r.add(e.output)))}}let c=(o===t.length?[...s]:[...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};Zf.match=Zf,Zf.matcher=(e,t)=>zf(e,t),Zf.any=Zf.isMatch=(e,t,n)=>zf(t,n)(e),Zf.not=(e,t,n={})=>{t=[].concat(t).map(String);let i=new Set,r=[],s=new Set(Zf(e,t,{...n,onResult:e=>{n.onResult&&n.onResult(e),r.push(e.output)}}));for(let e of r)s.has(e)||i.add(e);return[...i]},Zf.contains=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${Gf.inspect(e)}"`);if(Array.isArray(t))return t.some(t=>Zf.contains(e,t,n));if("string"==typeof t){if(Vf(e)||Vf(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return Zf.isMatch(e,t,{...n,contains:!0})},Zf.matchKeys=(e,t,n)=>{if(!Xf.isObject(e))throw new TypeError("Expected the first argument to be an object");let i=Zf(Object.keys(e),t,n),r={};for(let t of i)r[t]=e[t];return r},Zf.some=(e,t,n)=>{let i=[].concat(e);for(let e of[].concat(t)){let t=zf(String(e),n);if(i.some(e=>t(e)))return!0}return!1},Zf.every=(e,t,n)=>{let i=[].concat(e);for(let e of[].concat(t)){let t=zf(String(e),n);if(!i.every(e=>t(e)))return!1}return!0},Zf.all=(e,t,n)=>{if("string"!=typeof e)throw new TypeError(`Expected a string: "${Gf.inspect(e)}"`);return[].concat(t).every(t=>zf(t,n)(e))},Zf.capture=(e,t,n)=>{let i=Xf.isWindows(n),r=zf.makeRe(String(e),{...n,capture:!0}).exec(i?Xf.toPosixSlashes(t):t);if(r)return r.slice(1).map(e=>void 0===e?"":e)},Zf.makeRe=(...e)=>zf.makeRe(...e),Zf.scan=(...e)=>zf.scan(...e),Zf.parse=(e,t)=>{let n=[];for(let i of[].concat(e||[]))for(let e of Kf(String(i),t))n.push(zf.parse(e,t));return n},Zf.braces=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return t&&!0===t.nobrace||!Jf(e)?[e]:Kf(e,t)},Zf.braceExpand=(e,t)=>{if("string"!=typeof e)throw new TypeError("Expected a string");return Zf.braces(e,{...t,expand:!0})},Zf.hasBraces=Jf;var em=r,tm=i,nm=function(e,t){if("string"!=typeof e||""===e)return!1;if(rd(e))return!0;var n=od;return t&&!1===t.strict&&(n=ad),n(e)},im=function(e){return"~"===e.charAt(0)&&(e=Pd(e)),"@"===e.charAt(0)&&(e=Ld.join(Ud,e.slice(1))),e},rm=function(e,t){return e&&"string"==typeof e?Dd.existsSync(e)?Md.resolve(e):!0===(t=t||{}).nocase?function(e){e=Md.resolve(e);var t=function(e){var t={path:e,files:[]};try{return t.files=Dd.readdirSync(e),t}catch(e){}try{return t.path=Md.dirname(e),t.files=Dd.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 s=Md.resolve(t.path,t.files[r]);if(e===s||n===s)return s;var o=s.toUpperCase();if(e===o||n===o)return s}return null}(e):null:null},sm=Zf;function om(e,t,n){for(var i,r=t.length,s=-1;++s<r;)if(i=nm(t[s])?am(e,t[s],n):cm(e,t[s],n))return i;var o=tm.dirname(e);return o===e?null:om(o,t,n)}function am(e,t,n){for(var i=sm.matcher(t,n),r=function(e){try{return em.readdirSync(e)}catch(e){}return[]}(e),s=r.length,o=-1;++o<s;){var a=r[o],c=tm.join(e,a);if(i(a)||i(c))return c}return null}function cm(e,t,n){var i=tm.resolve(e,t);return rm(i,n)}var lm=x(function(e,t){t=t||{};var n=tm.resolve(im(t.cwd||""));if("string"==typeof e)return om(n,[e],t);if(!Array.isArray(e))throw new TypeError("findup-sync expects a string or array as the first argument.");return om(n,e,t)}),um={exports:{}},pm={exports:{}};const dm="win32"===process.platform||"cygwin"===process.env.OSTYPE||"msys"===process.env.OSTYPE,hm=i,fm=dm?";":":",mm=Td,gm=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),_m=(e,t)=>{const n=t.colon||fm,i=e.match(/\//)||dm&&e.match(/\\/)?[""]:[...dm?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],r=dm?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",s=dm?r.split(n):[""];return dm&&-1!==e.indexOf(".")&&""!==s[0]&&s.unshift(""),{pathEnv:i,pathExt:s,pathExtExe:r}},bm=(e,t,n)=>{"function"==typeof t&&(n=t,t={}),t||(t={});const{pathEnv:i,pathExt:r,pathExtExe:s}=_m(e,t),o=[],a=n=>new Promise((r,s)=>{if(n===i.length)return t.all&&o.length?r(o):s(gm(e));const a=i[n],l=/^".*"$/.test(a)?a.slice(1,-1):a,u=hm.join(l,e),p=!l&&/^\.[\\\/]/.test(e)?e.slice(0,2)+u:u;r(c(p,n,0))}),c=(e,n,i)=>new Promise((l,u)=>{if(i===r.length)return l(a(n+1));const p=r[i];mm(e+p,{pathExt:s},(r,s)=>{if(!r&&s){if(!t.all)return l(e+p);o.push(e+p)}return l(c(e,n,i+1))})});return n?a(0).then(e=>n(null,e),n):a(0)};var ym=bm;bm.sync=(e,t)=>{t=t||{};const{pathEnv:n,pathExt:i,pathExtExe:r}=_m(e,t),s=[];for(let o=0;o<n.length;o++){const a=n[o],c=/^".*"$/.test(a)?a.slice(1,-1):a,l=hm.join(c,e),u=!c&&/^\.[\\\/]/.test(e)?e.slice(0,2)+l:l;for(let e=0;e<i.length;e++){const n=u+i[e];try{if(mm.sync(n,{pathExt:r})){if(!t.all)return n;s.push(n)}}catch(e){}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw gm(e)};var vm={exports:{}};const Am=(e={})=>{const t=e.env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path"};vm.exports=Am,vm.exports.default=Am;var Em=vm.exports;const wm=i,xm=ym,Sm=Em;function Im(e,t){const n=e.options.env||process.env,i=process.cwd(),r=null!=e.options.cwd,s=r&&void 0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd)}catch(e){}let o;try{o=xm.sync(e.command,{path:n[Sm({env:n})],pathExt:t?wm.delimiter:void 0})}catch(e){}finally{s&&process.chdir(i)}return o&&(o=wm.resolve(r?e.options.cwd:"",o)),o}var km=function(e){return Im(e)||Im(e,!0)},Cm={};const Rm=/([()\][%!^"`<>&|;, *?])/g;Cm.command=function(e){return e=e.replace(Rm,"^$1")},Cm.argument=function(e,t){return e=(e=`"${e=(e=(e=`${e}`).replace(/(?=(\\+?)?)\1"/g,'$1$1\\"')).replace(/(?=(\\+?)?)\1$/,"$1$1")}"`).replace(Rm,"^$1"),t&&(e=e.replace(Rm,"^$1")),e};const Bm=/^#!(.*)/;const Tm=r,Om=(e="")=>{const t=e.match(Bm);if(!t)return null;const[n,i]=t[0].replace(/#! ?/,"").split(" "),r=n.split("/").pop();return"env"===r?i:i?`${r} ${i}`:r};var Nm=function(e){const t=Buffer.alloc(150);let n;try{n=Tm.openSync(e,"r"),Tm.readSync(n,t,0,150,0),Tm.closeSync(n)}catch(e){}return Om(t.toString())};const Lm=i,Pm=km,Um=Cm,Dm=Nm,Mm="win32"===process.platform,Hm=/\.(?:com|exe)$/i,Fm=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function jm(e){if(!Mm)return e;const t=function(e){e.file=Pm(e);const t=e.file&&Dm(e.file);return t?(e.args.unshift(e.file),e.command=t,Pm(e)):e.file}(e),n=!Hm.test(t);if(e.options.forceShell||n){const n=Fm.test(t);e.command=Lm.normalize(e.command),e.command=Um.command(e.command),e.args=e.args.map(e=>Um.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 $m=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:jm(i)};const Qm="win32"===process.platform;function Wm(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 qm(e,t){return Qm&&1===e&&!t.file?Wm(t.original,"spawn"):null}var Ym={hookChildProcess:function(e,t){if(!Qm)return;const n=e.emit;e.emit=function(i,r){if("exit"===i){const i=qm(r,t);if(i)return n.call(e,"error",i)}return n.apply(e,arguments)}},verifyENOENT:qm,verifyENOENTSync:function(e,t){return Qm&&1===e&&!t.file?Wm(t.original,"spawnSync"):null},notFoundError:Wm};const Gm=s,Km=$m,zm=Ym;function Xm(e,t,n){const i=Km(e,t,n),r=Gm.spawn(i.command,i.args,i.options);return zm.hookChildProcess(r,i),r}pm.exports=Xm,pm.exports.spawn=Xm,pm.exports.sync=function(e,t,n){const i=Km(e,t,n),r=Gm.spawnSync(i.command,i.args,i.options);return r.error=r.error||zm.verifyENOENTSync(r.status,i),r},pm.exports._parse=Km,pm.exports._enoent=zm;var Vm=pm.exports,Jm={exports:{}};!function(e){const t=i,n=Em,r=e=>{let i;e={cwd:process.cwd(),path:process.env[n()],execPath:process.execPath,...e};let r=t.resolve(e.cwd);const s=[];for(;i!==r;)s.push(t.join(r,"node_modules/.bin")),i=r,r=t.resolve(r,"..");const o=t.resolve(e.cwd,e.execPath,"..");return s.push(o),s.concat(e.path).join(t.delimiter)};e.exports=r,e.exports.default=r,e.exports.env=t=>{const i={...(t={env:process.env,...t}).env},r=n({env:i});return t.path=i[r],i[r]=e.exports(t),i}}(Jm);var Zm=Jm.exports,eg={},tg={},ng={};Object.defineProperty(ng,"__esModule",{value:!0}),ng.SIGNALS=void 0;ng.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 ig={};Object.defineProperty(ig,"__esModule",{value:!0}),ig.SIGRTMAX=ig.getRealtimeSignals=void 0;ig.getRealtimeSignals=function(){const e=og-sg+1;return Array.from({length:e},rg)};const rg=function(e,t){return{name:`SIGRT${t+1}`,number:sg+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},sg=34,og=64;ig.SIGRTMAX=og,Object.defineProperty(tg,"__esModule",{value:!0}),tg.getSignals=void 0;var ag=b,cg=ng,lg=ig;tg.getSignals=function(){const e=(0,lg.getRealtimeSignals)();return[...cg.SIGNALS,...e].map(ug)};const ug=function({name:e,number:t,description:n,action:i,forced:r=!1,standard:s}){const{signals:{[e]:o}}=ag.constants,a=void 0!==o;return{name:e,number:a?o:t,description:n,supported:a,action:i,forced:r,standard:s}};Object.defineProperty(eg,"__esModule",{value:!0}),eg.signalsByNumber=eg.signalsByName=void 0;var pg=b,dg=tg,hg=ig;const fg=function(e,{name:t,number:n,description:i,supported:r,action:s,forced:o,standard:a}){return{...e,[t]:{name:t,number:n,description:i,supported:r,action:s,forced:o,standard:a}}},mg=(0,dg.getSignals)().reduce(fg,{});eg.signalsByName=mg;const gg=function(e,t){const n=_g(e,t);if(void 0===n)return{};const{name:i,description:r,supported:s,action:o,forced:a,standard:c}=n;return{[e]:{name:i,number:e,description:r,supported:s,action:o,forced:a,standard:c}}},_g=function(e,t){const n=t.find(({name:t})=>pg.constants.signals[t]===e);return void 0!==n?n:t.find(t=>t.number===e)},bg=function(){const e=(0,dg.getSignals)(),t=hg.SIGRTMAX+1,n=Array.from({length:t},(t,n)=>gg(n,e));return Object.assign({},...n)}();eg.signalsByNumber=bg;const{signalsByName:yg}=eg;var vg=({stdout:e,stderr:t,all:n,error:i,signal:r,exitCode:s,command:o,escapedCommand:a,timedOut:c,isCanceled:l,killed:u,parsed:{options:{timeout:p}}})=>{s=null===s?void 0:s;const d=void 0===(r=null===r?void 0:r)?void 0:yg[r].description,h=(({timedOut:e,timeout:t,errorCode:n,signal:i,signalDescription:r,exitCode:s,isCanceled:o})=>e?`timed out after ${t} milliseconds`:o?"was canceled":void 0!==n?`failed with ${n}`:void 0!==i?`was killed with ${i} (${r})`:void 0!==s?`failed with exit code ${s}`:"failed")({timedOut:c,timeout:p,errorCode:i&&i.code,signal:r,signalDescription:d,exitCode:s,isCanceled:l}),f=`Command ${h}: ${o}`,m="[object Error]"===Object.prototype.toString.call(i),g=m?`${f}\n${i.message}`:f,_=[g,t,e].filter(Boolean).join("\n");return m?(i.originalMessage=i.message,i.message=_):i=new Error(_),i.shortMessage=g,i.command=o,i.escapedCommand=a,i.exitCode=s,i.signal=r,i.signalDescription=d,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=l,i.killed=u&&!c,i},Ag={exports:{}};const Eg=["stdin","stdout","stderr"],wg=e=>{if(!e)return;const{stdio:t}=e;if(void 0===t)return Eg.map(t=>e[t]);if((e=>Eg.some(t=>void 0!==e[t]))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${Eg.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,Eg.length);return Array.from({length:n},(e,n)=>t[n])};Ag.exports=wg,Ag.exports.node=e=>{const t=wg(e);return"ipc"===t?"ipc":void 0===t||"string"==typeof t?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]};var xg=Ag.exports;const Sg=b,Ig=rp,kg=(e,t,n,i)=>{if(!Cg(t,n,i))return;const r=Bg(n),s=setTimeout(()=>{e("SIGKILL")},r);s.unref&&s.unref()},Cg=(e,{forceKillAfterTimeout:t},n)=>Rg(e)&&!1!==t&&n,Rg=e=>e===Sg.constants.signals.SIGTERM||"string"==typeof e&&"SIGTERM"===e.toUpperCase(),Bg=({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 Tg={spawnedKill:(e,t="SIGTERM",n={})=>{const i=e(t);return kg(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 s=new Promise((i,s)=>{r=setTimeout(()=>{((e,t,n)=>{e.kill(t),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))})(e,n,s)},t)}),o=i.finally(()=>{clearTimeout(r)});return Promise.race([s,o])},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=Ig(()=>{e.kill()});return i.finally(()=>{r()})}};const Og=e=>null!==e&&"object"==typeof e&&"function"==typeof e.pipe;Og.writable=e=>Og(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState,Og.readable=e=>Og(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState,Og.duplex=e=>Og.writable(e)&&Og.readable(e),Og.transform=e=>Og.duplex(e)&&"function"==typeof e._transform;var Ng=Og,Lg={exports:{}};const{PassThrough:Pg}=n;const{constants:Ug}=c,Dg=n,{promisify:Mg}=f,Hg=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 s=new Pg({objectMode:r});n&&s.setEncoding(n);let o=0;const a=[];return s.on("data",e=>{a.push(e),r?o=a.length:o+=e.length}),s.getBufferedValue=()=>t?a:i?Buffer.concat(a,o):a.join(""),s.getBufferedLength=()=>o,s},Fg=Mg(Dg.pipeline);class jg extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}}async function $g(e,t){if(!e)throw new Error("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:n}=t,i=Hg(t);return await new Promise((t,r)=>{const s=e=>{e&&i.getBufferedLength()<=Ug.MAX_LENGTH&&(e.bufferedData=i.getBufferedValue()),r(e)};(async()=>{try{await Fg(e,i),t()}catch(e){s(e)}})(),i.on("data",()=>{i.getBufferedLength()>n&&s(new jg)})}),i.getBufferedValue()}Lg.exports=$g,Lg.exports.buffer=(e,t)=>$g(e,{...t,encoding:"buffer"}),Lg.exports.array=(e,t)=>$g(e,{...t,array:!0}),Lg.exports.MaxBufferError=jg;var Qg=Lg.exports;const{PassThrough:Wg}=n;const qg=Ng,Yg=Qg,Gg=function(){var e=[],t=new Wg({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()}},Kg=async(e,t)=>{if(e){e.destroy();try{return await t}catch(e){return e.bufferedData}}},zg=(e,{encoding:t,buffer:n,maxBuffer:i})=>{if(e&&n)return t?Yg(e,{encoding:t,maxBuffer:i}):Yg.buffer(e,{maxBuffer:i})};var Xg={handleInput:(e,t)=>{void 0!==t&&void 0!==e.stdin&&(qg(t)?t.pipe(e.stdin):e.stdin.end(t))},makeAllStream:(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;const n=Gg();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:s},o)=>{const a=zg(e,{encoding:i,buffer:r,maxBuffer:s}),c=zg(t,{encoding:i,buffer:r,maxBuffer:s}),l=zg(n,{encoding:i,buffer:r,maxBuffer:2*s});try{return await Promise.all([o,a,c,l])}catch(i){return Promise.all([{error:i,signal:i.signal,timedOut:i.timedOut},Kg(e,a),Kg(t,c),Kg(n,l)])}},validateInputSync:({input:e})=>{if(qg(e))throw new TypeError("The `input` option cannot be a stream in sync mode")}};const Vg=(async()=>{})().constructor.prototype,Jg=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Vg,e)]);var Zg={mergePromise:(e,t)=>{for(const[n,i]of Jg){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 e_=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],t_=/^[\w.-]+$/,n_=/"/g,i_=/ +/g;var r_={joinCommand:(e,t)=>e_(e,t).join(" "),getEscapedCommand:(e,t)=>e_(e,t).map(e=>(e=>"string"!=typeof e||t_.test(e)?e:`"${e.replace(n_,'\\"')}"`)(e)).join(" "),parseCommand:e=>{const t=[];for(const n of e.trim().split(i_)){const e=t[t.length-1];e&&e.endsWith("\\")?t[t.length-1]=`${e.slice(0,-1)} ${n}`:t.push(n)}return t}};const s_=i,o_=s,a_=Vm,c_=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},l_=Zm,u_=Hu,p_=vg,d_=xg,{spawnedKill:h_,spawnedCancel:f_,setupTimeout:m_,validateTimeout:g_,setExitHandler:__}=Tg,{handleInput:b_,getSpawnedResult:y_,makeAllStream:v_,validateInputSync:A_}=Xg,{mergePromise:E_,getSpawnedPromise:w_}=Zg,{joinCommand:x_,parseCommand:S_,getEscapedCommand:I_}=r_,k_=(e,t,n={})=>{const i=a_._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 s=t?{...process.env,...e}:e;return n?l_.env({env:s,cwd:i,execPath:r}):s})(n),n.stdio=d_(n),"win32"===process.platform&&"cmd"===s_.basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:n,parsed:i}},C_=(e,t,n)=>"string"==typeof t||Buffer.isBuffer(t)?e.stripFinalNewline?c_(t):t:void 0===n?void 0:"",R_=(e,t,n)=>{const i=k_(e,t,n),r=x_(e,t),s=I_(e,t);let o;g_(i.options);try{o=o_.spawn(i.file,i.args,i.options)}catch(e){const t=new o_.ChildProcess,n=Promise.reject(p_({error:e,stdout:"",stderr:"",all:"",command:r,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1}));return E_(t,n)}const a=w_(o),c=m_(o,i.options,a),l=__(o,i.options,c),u={isCanceled:!1};o.kill=h_.bind(null,o.kill.bind(o)),o.cancel=f_.bind(null,o,u);const p=u_(async()=>{const[{error:e,exitCode:t,signal:n,timedOut:a},c,p,d]=await y_(o,i.options,l),h=C_(i.options,c),f=C_(i.options,p),m=C_(i.options,d);if(e||0!==t||null!==n){const c=p_({error:e,exitCode:t,signal:n,stdout:h,stderr:f,all:m,command:r,escapedCommand:s,parsed:i,timedOut:a,isCanceled:u.isCanceled,killed:o.killed});if(!i.options.reject)return c;throw c}return{command:r,escapedCommand:s,exitCode:0,stdout:h,stderr:f,all:m,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return b_(o,i.options.input),o.all=v_(o,i.options),E_(o,p)};um.exports=R_,um.exports.sync=(e,t,n)=>{const i=k_(e,t,n),r=x_(e,t),s=I_(e,t);let o;A_(i.options);try{o=o_.spawnSync(i.file,i.args,i.options)}catch(e){throw p_({error:e,stdout:"",stderr:"",all:"",command:r,escapedCommand:s,parsed:i,timedOut:!1,isCanceled:!1,killed:!1})}const a=C_(i.options,o.stdout,o.error),c=C_(i.options,o.stderr,o.error);if(o.error||0!==o.status||null!==o.signal){const e=p_({stdout:a,stderr:c,error:o.error,signal:o.signal,exitCode:o.status,command:r,escapedCommand:s,parsed:i,timedOut:o.error&&"ETIMEDOUT"===o.error.code,isCanceled:!1,killed:null!==o.signal});if(!i.options.reject)return e;throw e}return{command:r,escapedCommand:s,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}},um.exports.command=(e,t)=>{const[n,...i]=S_(e);return R_(n,i,t)},um.exports.commandSync=(e,t)=>{const[n,...i]=S_(e);return R_.sync(n,i,t)},um.exports.node=(e,t,n={})=>{t&&!Array.isArray(t)&&"object"==typeof t&&(n=t,t=[]);const i=d_.node(n),r=process.execArgv.filter(e=>!e.startsWith("--inspect")),{nodePath:s=process.execPath,nodeOptions:o=r}=n;return R_(s,[...o,e,...Array.isArray(t)?t:[]],{...n,stdin:void 0,stdout:void 0,stderr:void 0,stdio:i,shell:!1})};var B_=x(um.exports);async function T_(e){const t=process.cwd(),n=lm("dyp.config.js",{cwd:t});if(!n)throw new Error(`未在「${t}」及其上级目录找到 dyp.config.js,请在项目根目录执行命令`);const i=await import(n);return e?i.default[e]:i.default}function O_(e,t){return P_("blue",e,t)}function N_(e,t=""){return P_("green",e,t)}function L_(e,t=""){return P_("red",e,t)}function P_(e,t,n=""){return n?console.log(Bu[e](`${t}`),n):console.log(Bu[e](`${t}`))}function U_(e,t){return function(){return e.apply(t,arguments)}}const{toString:D_}=Object.prototype,{getPrototypeOf:M_}=Object,{iterator:H_,toStringTag:F_}=Symbol,j_=($_=Object.create(null),e=>{const t=D_.call(e);return $_[t]||($_[t]=t.slice(8,-1).toLowerCase())});var $_;const Q_=e=>(e=e.toLowerCase(),t=>j_(t)===e),W_=e=>t=>typeof t===e,{isArray:q_}=Array,Y_=W_("undefined");function G_(e){return null!==e&&!Y_(e)&&null!==e.constructor&&!Y_(e.constructor)&&X_(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const K_=Q_("ArrayBuffer");const z_=W_("string"),X_=W_("function"),V_=W_("number"),J_=e=>null!==e&&"object"==typeof e,Z_=e=>{if("object"!==j_(e))return!1;const t=M_(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||F_ in e||H_ in e)},eb=Q_("Date"),tb=Q_("File"),nb=Q_("Blob"),ib=Q_("FileList");const rb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},sb=void 0!==rb.FormData?rb.FormData:void 0,ob=Q_("URLSearchParams"),[ab,cb,lb,ub]=["ReadableStream","Request","Response","Headers"].map(Q_);function pb(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let i,r;if("object"!=typeof e&&(e=[e]),q_(e))for(i=0,r=e.length;i<r;i++)t.call(null,e[i],i,e);else{if(G_(e))return;const r=n?Object.getOwnPropertyNames(e):Object.keys(e),s=r.length;let o;for(i=0;i<s;i++)o=r[i],t.call(null,e[o],o,e)}}function db(e,t){if(G_(e))return null;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 hb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,fb=e=>!Y_(e)&&e!==hb;const mb=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&M_(Uint8Array)),gb=Q_("HTMLFormElement"),_b=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),bb=Q_("RegExp"),yb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),i={};pb(n,(n,r)=>{let s;!1!==(s=t(n,r,e))&&(i[r]=s||n)}),Object.defineProperties(e,i)};const vb=Q_("AsyncFunction"),Ab=(Eb="function"==typeof setImmediate,wb=X_(hb.postMessage),Eb?setImmediate:wb?(xb=`axios@${Math.random()}`,Sb=[],hb.addEventListener("message",({source:e,data:t})=>{e===hb&&t===xb&&Sb.length&&Sb.shift()()},!1),e=>{Sb.push(e),hb.postMessage(xb,"*")}):e=>setTimeout(e));var Eb,wb,xb,Sb;const Ib="undefined"!=typeof queueMicrotask?queueMicrotask.bind(hb):"undefined"!=typeof process&&process.nextTick||Ab;var kb={isArray:q_,isArrayBuffer:K_,isBuffer:G_,isFormData:e=>{let t;return e&&(sb&&e instanceof sb||X_(e.append)&&("formdata"===(t=j_(e))||"object"===t&&X_(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&K_(e.buffer),t},isString:z_,isNumber:V_,isBoolean:e=>!0===e||!1===e,isObject:J_,isPlainObject:Z_,isEmptyObject:e=>{if(!J_(e)||G_(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:ab,isRequest:cb,isResponse:lb,isHeaders:ub,isUndefined:Y_,isDate:eb,isFile:tb,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:nb,isRegExp:bb,isFunction:X_,isStream:e=>J_(e)&&X_(e.pipe),isURLSearchParams:ob,isTypedArray:mb,isFileList:ib,forEach:pb,merge:function e(){const{caseless:t,skipUndefined:n}=fb(this)&&this||{},i={},r=(r,s)=>{if("__proto__"===s||"constructor"===s||"prototype"===s)return;const o=t&&db(i,s)||s;Z_(i[o])&&Z_(r)?i[o]=e(i[o],r):Z_(r)?i[o]=e({},r):q_(r)?i[o]=r.slice():n&&Y_(r)||(i[o]=r)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&pb(arguments[e],r);return i},extend:(e,t,n,{allOwnKeys:i}={})=>(pb(t,(t,i)=>{n&&X_(t)?Object.defineProperty(e,i,{value:U_(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{value:t,writable:!0,enumerable:!0,configurable:!0})},{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),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,i)=>{let r,s,o;const a={};if(t=t||{},null==e)return t;do{for(r=Object.getOwnPropertyNames(e),s=r.length;s-- >0;)o=r[s],i&&!i(o,e,t)||a[o]||(t[o]=e[o],a[o]=!0);e=!1!==n&&M_(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:j_,kindOfTest:Q_,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(q_(e))return e;let t=e.length;if(!V_(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[H_]).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:gb,hasOwnProperty:_b,hasOwnProp:_b,reduceDescriptors:yb,freezeMethods:e=>{yb(e,(t,n)=>{if(X_(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const i=e[n];X_(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 q_(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)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:db,global:hb,isContextDefined:fb,isSpecCompliantForm:function(e){return!!(e&&X_(e.append)&&"FormData"===e[F_]&&e[H_])},toJSONObject:e=>{const t=new Array(10),n=(e,i)=>{if(J_(e)){if(t.indexOf(e)>=0)return;if(G_(e))return e;if(!("toJSON"in e)){t[i]=e;const r=q_(e)?[]:{};return pb(e,(e,t)=>{const s=n(e,i+1);!Y_(s)&&(r[t]=s)}),t[i]=void 0,r}}return e};return n(e,0)},isAsyncFn:vb,isThenable:e=>e&&(J_(e)||X_(e))&&X_(e.then)&&X_(e.catch),setImmediate:Ab,asap:Ib,isIterable:e=>null!=e&&X_(e[H_])};class Cb extends Error{static from(e,t,n,i,r,s){const o=new Cb(e.message,t||e.code,n,i,r);return o.cause=e,o.name=e.name,null!=e.status&&null==o.status&&(o.status=e.status),s&&Object.assign(o,s),o}constructor(e,t,n,i,r){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r,this.status=r.status)}toJSON(){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:kb.toJSONObject(this.config),code:this.code,status:this.status}}}Cb.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Cb.ERR_BAD_OPTION="ERR_BAD_OPTION",Cb.ECONNABORTED="ECONNABORTED",Cb.ETIMEDOUT="ETIMEDOUT",Cb.ERR_NETWORK="ERR_NETWORK",Cb.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Cb.ERR_DEPRECATED="ERR_DEPRECATED",Cb.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Cb.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Cb.ERR_CANCELED="ERR_CANCELED",Cb.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Cb.ERR_INVALID_URL="ERR_INVALID_URL";var Rb=Cb,Bb=n.Stream,Tb=Ob;function Ob(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}f.inherits(Ob,Bb),Ob.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(Ob.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),Ob.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},Ob.prototype.resume=function(){this._released||this.release(),this.source.resume()},Ob.prototype.pause=function(){this.source.pause()},Ob.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},Ob.prototype.pipe=function(){var e=Bb.prototype.pipe.apply(this,arguments);return this.resume(),e},Ob.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))},Ob.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 Nb=f,Lb=n.Stream,Pb=Tb,Ub=Db;function Db(){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}Nb.inherits(Db,Lb),Db.create=function(e){var t=new this;for(var n in e=e||{})t[n]=e[n];return t},Db.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},Db.prototype.append=function(e){if(Db.isStreamLike(e)){if(!(e instanceof Pb)){var t=Pb.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},Db.prototype.pipe=function(e,t){return Lb.prototype.pipe.call(this,e,t),this.resume(),e},Db.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}}},Db.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){Db.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},Db.prototype._pipeNext=function(e){if(this._currentStream=e,Db.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},Db.prototype._handleErrors=function(e){var t=this;e.on("error",function(e){t._emitError(e)})},Db.prototype.write=function(e){this.emit("data",e)},Db.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},Db.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")},Db.prototype.end=function(){this._reset(),this.emit("end")},Db.prototype.destroy=function(){this._reset(),this.emit("close")},Db.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},Db.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},Db.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)},Db.prototype._emitError=function(e){this._reset(),this.emit("error",e)};var Mb={},Hb={"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}};!function(e){var t=Hb,n=i.extname,r=/^\s*([^;\s]*)(?:;|\s|$)/,s=/^text\//i;function o(e){if(!e||"string"!=typeof e)return!1;var n=r.exec(e),i=n&&t[n[1].toLowerCase()];return i&&i.charset?i.charset:!(!n||!s.test(n[1]))&&"UTF-8"}e.charset=o,e.charsets={lookup:o},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 i=n("x."+t).toLowerCase().substr(1);if(!i)return!1;return e.types[i]||!1},e.types=Object.create(null),function(e,n){var i=["nginx","apache",void 0,"iana"];Object.keys(t).forEach(function(r){var s=t[r],o=s.extensions;if(o&&o.length){e[r]=o;for(var a=0;a<o.length;a++){var c=o[a];if(n[c]){var l=i.indexOf(t[n[c]].source),u=i.indexOf(s.source);if("application/octet-stream"!==n[c]&&(l>u||l===u&&"application/"===n[c].substr(0,12)))continue}n[c]=r}}})}(e.extensions,e.types)}(Mb);var Fb=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)},jb=function(e){var t=!1;return Fb(function(){t=!0}),function(n,i){t?e(n,i):Fb(function(){e(n,i)})}};var $b=function(e){Object.keys(e.jobs).forEach(Qb.bind(e)),e.jobs={}};function Qb(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}var Wb=jb,qb=$b,Yb=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,Wb(i)):e(n,t,Wb(i));return r}(t,r,e[r],function(e,t){r in n.jobs&&(delete n.jobs[r],e?qb(n):n.results[r]=t,i(e,n.results))})};var Gb=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 Kb=$b,zb=jb,Xb=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,Kb(this),zb(e)(null,this.results)};var Vb=Yb,Jb=Gb,Zb=Xb,ey=function(e,t,n){var i=Jb(e);for(;i.index<(i.keyedList||e).length;)Vb(e,t,i,function(e,t){e?n(e,t):0!==Object.keys(i.jobs).length||n(null,i.results)}),i.index++;return Zb.bind(i,n)};var ty={exports:{}},ny=Yb,iy=Gb,ry=Xb;function sy(e,t){return e<t?-1:e>t?1:0}ty.exports=function(e,t,n,i){var r=iy(e,n);return ny(e,t,r,function n(s,o){s?i(s,o):(r.index++,r.index<(r.keyedList||e).length?ny(e,t,r,n):i(null,r.results))}),ry.bind(r,i)},ty.exports.ascending=sy,ty.exports.descending=function(e,t){return-1*sy(e,t)};var oy=ty.exports,ay=oy,cy=function(e,t,n){return ay(e,t,null,n)};var ly,uy,py={parallel:ey,serial:cy,serialOrdered:oy},dy=Object,hy=Error,fy=EvalError,my=RangeError,gy=ReferenceError,_y=SyntaxError;function by(){return uy?ly:(uy=1,ly=TypeError)}var yy=URIError,vy=Math.abs,Ay=Math.floor,Ey=Math.max,wy=Math.min,xy=Math.pow,Sy=Math.round,Iy=Number.isNaN||function(e){return e!=e},ky=Object.getOwnPropertyDescriptor;if(ky)try{ky([],"length")}catch(eS){ky=null}var Cy=ky,Ry=Object.defineProperty||!1;if(Ry)try{Ry({},"a",{value:1})}catch(tS){Ry=!1}var By,Ty,Oy,Ny,Ly,Py,Uy,Dy,My=Ry;function Hy(){return Ty?By:(Ty=1,By=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var i in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(42!==s.value||!0!==s.enumerable)return!1}return!0})}function Fy(){return Py?Ly:(Py=1,Ly="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function jy(){return Dy?Uy:(Dy=1,Uy=dy.getPrototypeOf||null)}var $y,Qy,Wy,qy,Yy,Gy,Ky,zy,Xy,Vy,Jy,Zy,ev,tv,nv=Object.prototype.toString,iv=Math.max,rv=function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var r=0;r<t.length;r+=1)n[r+e.length]=t[r];return n},sv=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==nv.apply(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var n,i=function(e,t){for(var n=[],i=t||0,r=0;i<e.length;i+=1,r+=1)n[r]=e[i];return n}(arguments,1),r=iv(0,t.length-i.length),s=[],o=0;o<r;o++)s[o]="$"+o;if(n=Function("binder","return function ("+function(e,t){for(var n="",i=0;i<e.length;i+=1)n+=e[i],i+1<e.length&&(n+=t);return n}(s,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof n){var r=t.apply(this,rv(i,arguments));return Object(r)===r?r:this}return t.apply(e,rv(i,arguments))}),t.prototype){var a=function(){};a.prototype=t.prototype,n.prototype=new a,a.prototype=null}return n},ov=Function.prototype.bind||sv;function av(){return Qy?$y:(Qy=1,$y=Function.prototype.call)}function cv(){return qy?Wy:(qy=1,Wy=Function.prototype.apply)}function lv(){if(zy)return Ky;zy=1;var e=ov,t=cv(),n=av(),i=Gy?Yy:(Gy=1,Yy="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return Ky=i||e.call(n,t)}function uv(){if(Zy)return Jy;Zy=1;var e,t=function(){if(Vy)return Xy;Vy=1;var e=ov,t=by(),n=av(),i=lv();return Xy=function(r){if(r.length<1||"function"!=typeof r[0])throw new t("a function is required");return i(e,n,r)}}(),n=Cy;try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var i=!!e&&n&&n(Object.prototype,"__proto__"),r=Object,s=r.getPrototypeOf;return Jy=i&&"function"==typeof i.get?t([i.get]):"function"==typeof s&&function(e){return s(null==e?e:r(e))}}var pv,dv=Function.prototype.call,hv=Object.prototype.hasOwnProperty,fv=ov.call(dv,hv),mv=dy,gv=hy,_v=fy,bv=my,yv=gy,vv=_y,Av=by(),Ev=yy,wv=vy,xv=Ay,Sv=Ey,Iv=wy,kv=xy,Cv=Sy,Rv=function(e){return Iy(e)||0===e?e:e<0?-1:1},Bv=Function,Tv=function(e){try{return Bv('"use strict"; return ('+e+").constructor;")()}catch(e){}},Ov=Cy,Nv=My,Lv=function(){throw new Av},Pv=Ov?function(){try{return Lv}catch(e){try{return Ov(arguments,"callee").get}catch(e){return Lv}}}():Lv,Uv=function(){if(Ny)return Oy;Ny=1;var e="undefined"!=typeof Symbol&&Symbol,t=Hy();return Oy=function(){return"function"==typeof e&&("function"==typeof Symbol&&("symbol"==typeof e("foo")&&("symbol"==typeof Symbol("bar")&&t())))}}()(),Dv=function(){if(tv)return ev;tv=1;var e=Fy(),t=jy(),n=uv();return ev=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}(),Mv=jy(),Hv=Fy(),Fv=cv(),jv=av(),$v={},Qv="undefined"!=typeof Uint8Array&&Dv?Dv(Uint8Array):pv,Wv={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?pv:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?pv:ArrayBuffer,"%ArrayIteratorPrototype%":Uv&&Dv?Dv([][Symbol.iterator]()):pv,"%AsyncFromSyncIteratorPrototype%":pv,"%AsyncFunction%":$v,"%AsyncGenerator%":$v,"%AsyncGeneratorFunction%":$v,"%AsyncIteratorPrototype%":$v,"%Atomics%":"undefined"==typeof Atomics?pv:Atomics,"%BigInt%":"undefined"==typeof BigInt?pv:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?pv:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?pv:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?pv:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":gv,"%eval%":eval,"%EvalError%":_v,"%Float16Array%":"undefined"==typeof Float16Array?pv:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?pv:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?pv:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?pv:FinalizationRegistry,"%Function%":Bv,"%GeneratorFunction%":$v,"%Int8Array%":"undefined"==typeof Int8Array?pv:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?pv:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?pv:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Uv&&Dv?Dv(Dv([][Symbol.iterator]())):pv,"%JSON%":"object"==typeof JSON?JSON:pv,"%Map%":"undefined"==typeof Map?pv:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&Uv&&Dv?Dv((new Map)[Symbol.iterator]()):pv,"%Math%":Math,"%Number%":Number,"%Object%":mv,"%Object.getOwnPropertyDescriptor%":Ov,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?pv:Promise,"%Proxy%":"undefined"==typeof Proxy?pv:Proxy,"%RangeError%":bv,"%ReferenceError%":yv,"%Reflect%":"undefined"==typeof Reflect?pv:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?pv:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&Uv&&Dv?Dv((new Set)[Symbol.iterator]()):pv,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?pv:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Uv&&Dv?Dv(""[Symbol.iterator]()):pv,"%Symbol%":Uv?Symbol:pv,"%SyntaxError%":vv,"%ThrowTypeError%":Pv,"%TypedArray%":Qv,"%TypeError%":Av,"%Uint8Array%":"undefined"==typeof Uint8Array?pv:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?pv:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?pv:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?pv:Uint32Array,"%URIError%":Ev,"%WeakMap%":"undefined"==typeof WeakMap?pv:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?pv:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?pv:WeakSet,"%Function.prototype.call%":jv,"%Function.prototype.apply%":Fv,"%Object.defineProperty%":Nv,"%Object.getPrototypeOf%":Mv,"%Math.abs%":wv,"%Math.floor%":xv,"%Math.max%":Sv,"%Math.min%":Iv,"%Math.pow%":kv,"%Math.round%":Cv,"%Math.sign%":Rv,"%Reflect.getPrototypeOf%":Hv};if(Dv)try{null.error}catch(nS){var qv=Dv(Dv(nS));Wv["%Error.prototype%"]=qv}var Yv,Gv,Kv=function e(t){var n;if("%AsyncFunction%"===t)n=Tv("async function () {}");else if("%GeneratorFunction%"===t)n=Tv("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=Tv("async function* () {}");else if("%AsyncGenerator%"===t){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===t){var r=e("%AsyncGenerator%");r&&Dv&&(n=Dv(r.prototype))}return Wv[t]=n,n},zv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Xv=ov,Vv=fv,Jv=Xv.call(jv,Array.prototype.concat),Zv=Xv.call(Fv,Array.prototype.splice),eA=Xv.call(jv,String.prototype.replace),tA=Xv.call(jv,String.prototype.slice),nA=Xv.call(jv,RegExp.prototype.exec),iA=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,rA=/\\(\\)?/g,sA=function(e,t){var n,i=e;if(Vv(zv,i)&&(i="%"+(n=zv[i])[0]+"%"),Vv(Wv,i)){var r=Wv[i];if(r===$v&&(r=Kv(i)),void 0===r&&!t)throw new Av("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:r}}throw new vv("intrinsic "+e+" does not exist!")};var oA=function(e,t){if("string"!=typeof e||0===e.length)throw new Av("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Av('"allowMissing" argument must be a boolean');if(null===nA(/^%?[^%]*%?$/,e))throw new vv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=tA(e,0,1),n=tA(e,-1);if("%"===t&&"%"!==n)throw new vv("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new vv("invalid intrinsic syntax, expected opening `%`");var i=[];return eA(e,iA,function(e,t,n,r){i[i.length]=n?eA(r,rA,"$1"):t||e}),i}(e),i=n.length>0?n[0]:"",r=sA("%"+i+"%",t),s=r.name,o=r.value,a=!1,c=r.alias;c&&(i=c[0],Zv(n,Jv([0,1],c)));for(var l=1,u=!0;l<n.length;l+=1){var p=n[l],d=tA(p,0,1),h=tA(p,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new vv("property names with quotes must have matching quotes");if("constructor"!==p&&u||(a=!0),Vv(Wv,s="%"+(i+="."+p)+"%"))o=Wv[s];else if(null!=o){if(!(p in o)){if(!t)throw new Av("base intrinsic for "+e+" exists, but the property is not available.");return}if(Ov&&l+1>=n.length){var f=Ov(o,p);o=(u=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:o[p]}else u=Vv(o,p),o=o[p];u&&!a&&(Wv[s]=o)}}return o},aA=oA("%Object.defineProperty%",!0),cA=function(){if(Gv)return Yv;Gv=1;var e=Hy();return Yv=function(){return e()&&!!Symbol.toStringTag}}()(),lA=fv,uA=by(),pA=cA?Symbol.toStringTag:null,dA=Ub,hA=f,fA=i,mA=l,gA=u,_A=A.parse,bA=r,yA=n.Stream,vA=o,AA=Mb,EA=py,wA=function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(void 0!==n&&"boolean"!=typeof n||void 0!==i&&"boolean"!=typeof i)throw new uA("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");!pA||!n&&lA(e,pA)||(aA?aA(e,pA,{configurable:!i,enumerable:!1,value:t,writable:!1}):e[pA]=t)},xA=fv,SA=function(e,t){return Object.keys(t).forEach(function(n){e[n]=e[n]||t[n]}),e};function IA(e){if(!(this instanceof IA))return new IA(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],dA.call(this),e=e||{})this[t]=e[t]}hA.inherits(IA,dA),IA.LINE_BREAK="\r\n",IA.DEFAULT_CONTENT_TYPE="application/octet-stream",IA.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var i=dA.prototype.append.bind(this);if("number"!=typeof t&&null!=t||(t=String(t)),Array.isArray(t))this._error(new Error("Arrays are not supported."));else{var r=this._multiPartHeader(e,t,n),s=this._multiPartFooter();i(r),i(t),i(s),this._trackLength(r,t,n)}},IA.prototype._trackLength=function(e,t,n){var i=0;null!=n.knownLength?i+=Number(n.knownLength):Buffer.isBuffer(t)?i=t.length:"string"==typeof t&&(i=Buffer.byteLength(t)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+IA.LINE_BREAK.length,t&&(t.path||t.readable&&xA(t,"httpVersion")||t instanceof yA)&&(n.knownLength||this._valuesToMeasure.push(t))},IA.prototype._lengthRetriever=function(e,t){xA(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):bA.stat(e.path,function(n,i){if(n)t(n);else{var r=i.size-(e.start?e.start:0);t(null,r)}}):xA(e,"httpVersion")?t(null,Number(e.headers["content-length"])):xA(e,"httpModule")?(e.on("response",function(n){e.pause(),t(null,Number(n.headers["content-length"]))}),e.resume()):t("Unknown stream")},IA.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var i,r=this._getContentDisposition(t,n),s=this._getContentType(t,n),o="",a={"Content-Disposition":["form-data",'name="'+e+'"'].concat(r||[]),"Content-Type":[].concat(s||[])};for(var c in"object"==typeof n.header&&SA(a,n.header),a)if(xA(a,c)){if(null==(i=a[c]))continue;Array.isArray(i)||(i=[i]),i.length&&(o+=c+": "+i.join("; ")+IA.LINE_BREAK)}return"--"+this.getBoundary()+IA.LINE_BREAK+o+IA.LINE_BREAK},IA.prototype._getContentDisposition=function(e,t){var n;if("string"==typeof t.filepath?n=fA.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?n=fA.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&xA(e,"httpVersion")&&(n=fA.basename(e.client._httpMessage.path||"")),n)return'filename="'+n+'"'},IA.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e&&e.name&&(n=AA.lookup(e.name)),!n&&e&&e.path&&(n=AA.lookup(e.path)),!n&&e&&e.readable&&xA(e,"httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=AA.lookup(t.filepath||t.filename)),!n&&e&&"object"==typeof e&&(n=IA.DEFAULT_CONTENT_TYPE),n},IA.prototype._multiPartFooter=function(){return function(e){var t=IA.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},IA.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+IA.LINE_BREAK},IA.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)xA(e,t)&&(n[t.toLowerCase()]=e[t]);return n},IA.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},IA.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},IA.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(IA.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},IA.prototype._generateBoundary=function(){this._boundary="--------------------------"+vA.randomBytes(12).toString("hex")},IA.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},IA.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},IA.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?EA.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))},IA.prototype.submit=function(e,t){var n,i,r={method:"post"};return"string"==typeof e?(e=_A(e),i=SA({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},r)):(i=SA(e,r)).port||(i.port="https:"===i.protocol?443:80),i.headers=this.getHeaders(e.headers),n="https:"===i.protocol?gA.request(i):mA.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,s=function(e,i){return n.removeListener("error",s),n.removeListener("response",r),t.call(this,e,i)};r=s.bind(this,null),n.on("error",s),n.on("response",r)}}.bind(this)),n},IA.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},IA.prototype.toString=function(){return"[object FormData]"},wA(IA.prototype,"FormData");var kA=x(IA);function CA(e){return kb.isPlainObject(e)||kb.isArray(e)}function RA(e){return kb.endsWith(e,"[]")?e.slice(0,-2):e}function BA(e,t,n){return e?e.concat(t).map(function(e,t){return e=RA(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const TA=kb.toFlatObject(kb,{},null,function(e){return/^is[A-Z]/.test(e)});function OA(e,t,n){if(!kb.isObject(e))throw new TypeError("target must be an object");t=t||new(kA||FormData),n=kb.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!kb.isUndefined(t[e])});const i=n.metaTokens,r=n.visitor||l,s=n.dots,o=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&kb.isSpecCompliantForm(t);if(!kb.isFunction(r))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(kb.isDate(e))return e.toISOString();if(kb.isBoolean(e))return e.toString();if(!a&&kb.isBlob(e))throw new Rb("Blob is not supported. Use a Buffer instead.");return kb.isArrayBuffer(e)||kb.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,r){let a=e;if(kb.isReactNative(t)&&kb.isReactNativeBlob(e))return t.append(BA(r,n,s),c(e)),!1;if(e&&!r&&"object"==typeof e)if(kb.endsWith(n,"{}"))n=i?n:n.slice(0,-2),e=JSON.stringify(e);else if(kb.isArray(e)&&function(e){return kb.isArray(e)&&!e.some(CA)}(e)||(kb.isFileList(e)||kb.endsWith(n,"[]"))&&(a=kb.toArray(e)))return n=RA(n),a.forEach(function(e,i){!kb.isUndefined(e)&&null!==e&&t.append(!0===o?BA([n],i,s):null===o?n:n+"[]",c(e))}),!1;return!!CA(e)||(t.append(BA(r,n,s),c(e)),!1)}const u=[],p=Object.assign(TA,{defaultVisitor:l,convertValue:c,isVisitable:CA});if(!kb.isObject(e))throw new TypeError("data must be an object");return function e(n,i){if(!kb.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+i.join("."));u.push(n),kb.forEach(n,function(n,s){!0===(!(kb.isUndefined(n)||null===n)&&r.call(t,n,kb.isString(s)?s.trim():s,i,p))&&e(n,i?i.concat(s):[s])}),u.pop()}}(e),t}function NA(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function LA(e,t){this._pairs=[],e&&OA(e,this,t)}const PA=LA.prototype;function UA(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function DA(e,t,n){if(!t)return e;const i=n&&n.encode||UA,r=kb.isFunction(n)?{serialize:n}:n,s=r&&r.serialize;let o;if(o=s?s(t,r):kb.isURLSearchParams(t)?t.toString():new LA(t,r).toString(i),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}PA.append=function(e,t){this._pairs.push([e,t])},PA.toString=function(e){const t=e?function(t){return e.call(this,t,NA)}:NA;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var MA=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){kb.forEach(this.handlers,function(t){null!==t&&e(t)})}},HA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},FA=A.URLSearchParams;const jA="abcdefghijklmnopqrstuvwxyz",$A="0123456789",QA={DIGIT:$A,ALPHA:jA,ALPHA_DIGIT:jA+jA.toUpperCase()+$A};var WA={isNode:!0,classes:{URLSearchParams:FA,FormData:kA,Blob:"undefined"!=typeof Blob&&Blob||null},ALPHABET:QA,generateString:(e=16,t=QA.ALPHA_DIGIT)=>{let n="";const{length:i}=t,r=new Uint32Array(e);o.randomFillSync(r);for(let s=0;s<e;s++)n+=t[r[s]%i];return n},protocols:["http","https","file","data"]};const qA="undefined"!=typeof window&&"undefined"!=typeof document,YA="object"==typeof navigator&&navigator||void 0,GA=qA&&(!YA||["ReactNative","NativeScript","NS"].indexOf(YA.product)<0),KA="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,zA=qA&&window.location.href||"http://localhost";var XA={...Object.freeze({__proto__:null,hasBrowserEnv:qA,hasStandardBrowserEnv:GA,hasStandardBrowserWebWorkerEnv:KA,navigator:YA,origin:zA}),...WA};function VA(e){function t(e,n,i,r){let s=e[r++];if("__proto__"===s)return!0;const o=Number.isFinite(+s),a=r>=e.length;if(s=!s&&kb.isArray(i)?i.length:s,a)return kb.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!o;i[s]&&kb.isObject(i[s])||(i[s]=[]);return t(e,n,i[s],r)&&kb.isArray(i[s])&&(i[s]=function(e){const t={},n=Object.keys(e);let i;const r=n.length;let s;for(i=0;i<r;i++)s=n[i],t[s]=e[s];return t}(i[s])),!o}if(kb.isFormData(e)&&kb.isFunction(e.entries)){const n={};return kb.forEachEntry(e,(e,i)=>{t(function(e){return kb.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),i,n,0)}),n}return null}const JA={transitional:HA,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",i=n.indexOf("application/json")>-1,r=kb.isObject(e);r&&kb.isHTMLForm(e)&&(e=new FormData(e));if(kb.isFormData(e))return i?JSON.stringify(VA(e)):e;if(kb.isArrayBuffer(e)||kb.isBuffer(e)||kb.isStream(e)||kb.isFile(e)||kb.isBlob(e)||kb.isReadableStream(e))return e;if(kb.isArrayBufferView(e))return e.buffer;if(kb.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return OA(e,new XA.classes.URLSearchParams,{visitor:function(e,t,n,i){return XA.isNode&&kb.isBuffer(e)?(this.append(t,e.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((s=kb.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return OA(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||i?(t.setContentType("application/json",!1),function(e,t,n){if(kb.isString(e))try{return(t||JSON.parse)(e),kb.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||JA.transitional,n=t&&t.forcedJSONParsing,i="json"===this.responseType;if(kb.isResponse(e)||kb.isReadableStream(e))return e;if(e&&kb.isString(e)&&(n&&!this.responseType||i)){const n=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw Rb.from(e,Rb.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:XA.classes.FormData,Blob:XA.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};kb.forEach(["delete","get","head","post","put","patch"],e=>{JA.headers[e]={}});var ZA=JA;const eE=kb.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 tE=Symbol("internals");function nE(e,t){if(!1!==e&&null!=e)if(kb.isArray(e))e.forEach(e=>nE(e,t));else if(!(e=>!/[\r\n]/.test(e))(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}function iE(e){return e&&String(e).trim().toLowerCase()}function rE(e){return!1===e||null==e?e:kb.isArray(e)?e.map(rE):function(e){let t=e.length;for(;t>0;){const n=e.charCodeAt(t-1);if(10!==n&&13!==n)break;t-=1}return t===e.length?e:e.slice(0,t)}(String(e))}function sE(e,t,n,i,r){return kb.isFunction(i)?i.call(this,t,n):(r&&(t=n),kb.isString(t)?kb.isString(i)?-1!==t.indexOf(i):kb.isRegExp(i)?i.test(t):void 0:void 0)}class oE{constructor(e){e&&this.set(e)}set(e,t,n){const i=this;function r(e,t,n){const r=iE(t);if(!r)throw new Error("header name must be a non-empty string");const s=kb.findKey(i,r);(!s||void 0===i[s]||!0===n||void 0===n&&!1!==i[s])&&(nE(e,t),i[s||t]=rE(e))}const s=(e,t)=>kb.forEach(e,(e,n)=>r(e,n,t));if(kb.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(kb.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((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]&&eE[n]||("set-cookie"===n?t[n]?t[n].push(i):t[n]=[i]:t[n]=t[n]?t[n]+", "+i:i)}),t})(e),t);else if(kb.isObject(e)&&kb.isIterable(e)){let n,i,r={};for(const t of e){if(!kb.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[i=t[0]]=(n=r[i])?kb.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(r,t)}else null!=e&&r(t,e,n);return this}get(e,t){if(e=iE(e)){const n=kb.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(kb.isFunction(t))return t.call(this,e,n);if(kb.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=iE(e)){const n=kb.findKey(this,e);return!(!n||void 0===this[n]||t&&!sE(0,this[n],n,t))}return!1}delete(e,t){const n=this;let i=!1;function r(e){if(e=iE(e)){const r=kb.findKey(n,e);!r||t&&!sE(0,n[r],r,t)||(delete n[r],i=!0)}}return kb.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&&!sE(0,this[r],r,e,!0)||(delete this[r],i=!0)}return i}normalize(e){const t=this,n={};return kb.forEach(this,(i,r)=>{const s=kb.findKey(n,r);if(s)return t[s]=rE(i),void delete t[r];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(r):String(r).trim();o!==r&&delete t[r],t[o]=rE(i),n[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return kb.forEach(this,(n,i)=>{null!=n&&!1!==n&&(t[i]=e&&kb.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")}getSetCookie(){return this.get("set-cookie")||[]}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[tE]=this[tE]={accessors:{}}).accessors,n=this.prototype;function i(e){const i=iE(e);t[i]||(!function(e,t){const n=kb.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 kb.isArray(e)?e.forEach(i):i(e),this}}oE.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),kb.reduceDescriptors(oE.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),kb.freezeMethods(oE);var aE=oE;function cE(e,t){const n=this||ZA,i=t||n,r=aE.from(i.headers);let s=i.data;return kb.forEach(e,function(e){s=e.call(n,s,r.normalize(),t?t.status:void 0)}),r.normalize(),s}function lE(e){return!(!e||!e.__CANCEL__)}var uE=class extends Rb{constructor(e,t,n){super(null==e?"canceled":e,Rb.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function pE(e,t,n){const i=n.config.validateStatus;n.status&&i&&!i(n.status)?t(new Rb("Request failed with status code "+n.status,[Rb.ERR_BAD_REQUEST,Rb.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function dE(e,t,n){let i=!function(e){return"string"==typeof e&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t);return e&&(i||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var hE={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443};function fE(e){var t=("string"==typeof e?function(e){try{return new URL(e)}catch{return null}}(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=mE("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,s=i?parseInt(i[2]):0;return!(!s||s===t)||(/^[.*]/.test(r)?("*"===r.charAt(0)&&(r=r.slice(1)),!e.endsWith(r)):e!==r)})}(i=i.replace(/:\d*$/,""),r=parseInt(r)||hE[n]||0))return"";var s=mE(n+"_proxy")||mE("all_proxy");return s&&-1===s.indexOf("://")&&(s=n+"://"+s),s}function mE(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}var gE,_E,bE,yE,vE,AE={exports:{}},EE={exports:{}},wE={exports:{}};function xE(){if(_E)return gE;_E=1;var e=1e3,t=60*e,n=60*t,i=24*n,r=7*i,s=365.25*i;function o(e,t,n,i){var r=t>=1.5*n;return Math.round(e/n)+" "+i+(r?"s":"")}return gE=function(a,c){c=c||{};var l=typeof a;if("string"===l&&a.length>0)return function(o){if((o=String(o)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*s;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}}(a);if("number"===l&&isFinite(a))return c.long?function(r){var s=Math.abs(r);if(s>=i)return o(r,s,i,"day");if(s>=n)return o(r,s,n,"hour");if(s>=t)return o(r,s,t,"minute");if(s>=e)return o(r,s,e,"second");return r+" ms"}(a):function(r){var s=Math.abs(r);if(s>=i)return Math.round(r/i)+"d";if(s>=n)return Math.round(r/n)+"h";if(s>=t)return Math.round(r/t)+"m";if(s>=e)return Math.round(r/e)+"s";return r+"ms"}(a);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a))},gE}function SE(){if(yE)return bE;return yE=1,bE=function(e){function t(e){let i,r,s,o=null;function a(...e){if(!a.enabled)return;const n=a,r=Number(new Date),s=r-(i||r);n.diff=s,n.prev=i,n.curr=r,i=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(i,r)=>{if("%%"===i)return"%";o++;const s=t.formatters[r];if("function"==typeof s){const t=e[o];i=s.call(n,t),e.splice(o,1),o--}return i}),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(r!==t.namespaces&&(r=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){const i=t(this.namespace+(void 0===n?":":n)+e);return i.log=this.log,i}function i(e,t){let n=0,i=0,r=-1,s=0;for(;n<e.length;)if(i<t.length&&(t[i]===e[n]||"*"===t[i]))"*"===t[i]?(r=i,s=n,i++):(n++,i++);else{if(-1===r)return!1;i=r+1,s++,n=s}for(;i<t.length&&"*"===t[i];)i++;return i===t.length}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,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(i(e,n))return!1;for(const n of t.names)if(i(e,n))return!0;return!1},t.humanize=xE(),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},bE}var IE,kE,CE,RE={exports:{}};function BE(){return IE||(IE=1,function(e,t){const n=y,i=f;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.formatWithOptions(t.inspectOpts,...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),s=` ${r};1m${i} [0m`;n[0]=s+n[0].split("\n").join("\n"+s),n.push(r+"m+"+e.exports.humanize(this.diff)+"[0m")}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=ou;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=SE()(t);const{formatters:r}=e.exports;r.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map(e=>e.trim()).join(" ")},r.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}}(RE,RE.exports)),RE.exports}function TE(){return kE||(kE=1,"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?EE.exports=(vE||(vE=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")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"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&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[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=SE()(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(wE,wE.exports)),wE.exports):EE.exports=BE()),EE.exports}var OE,NE,LE,PE=A,UE=PE.URL,DE=l,ME=u,HE=n.Writable,FE=a,jE=function(){if(!CE){try{CE=TE()("follow-redirects")}catch(e){}"function"!=typeof CE&&(CE=function(){})}CE.apply(null,arguments)};OE="undefined"!=typeof process,NE="undefined"!=typeof window&&"undefined"!=typeof document,LE=cw(Error.captureStackTrace),OE||!NE&&LE||console.warn("The follow-redirects package should be excluded from browser builds.");var $E=!1;try{FE(new UE(""))}catch(vg){$E="ERR_INVALID_URL"===vg.code}var QE=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],WE=["abort","aborted","connect","error","socket","timeout"],qE=Object.create(null);WE.forEach(function(e){qE[e]=function(t,n,i){this._redirectable.emit(e,t,n,i)}});var YE=sw("ERR_INVALID_URL","Invalid URL",TypeError),GE=sw("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),KE=sw("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",GE),zE=sw("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),XE=sw("ERR_STREAM_WRITE_AFTER_END","write after end"),VE=HE.prototype.destroy||ew;function JE(e,t){HE.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){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof GE?e:new GE({cause:e}))}},this._performRequest()}function ZE(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach(function(i){var r=i+":",s=n[r]=e[i],o=t[i]=Object.create(s);Object.defineProperties(o,{request:{value:function(e,i,s){var o;return o=e,UE&&o instanceof UE?e=iw(e):aw(e)?e=iw(tw(e)):(s=i,i=nw(e),e={protocol:r}),cw(i)&&(s=i,i=null),(i=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,i)).nativeProtocols=n,aw(i.host)||aw(i.hostname)||(i.hostname="::1"),FE.equal(i.protocol,r,"protocol mismatch"),jE("options",i),new JE(i,s)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var i=o.request(e,t,n);return i.end(),i},configurable:!0,enumerable:!0,writable:!0}})}),t}function ew(){}function tw(e){var t;if($E)t=new UE(e);else if(!aw((t=nw(PE.parse(e))).protocol))throw new YE({input:e});return t}function nw(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new YE({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new YE({input:e.href||e});return e}function iw(e,t){var n=t||{};for(var i of QE)n[i]=e[i];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function rw(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 sw(e,t,n){function i(n){cw(Error.captureStackTrace)&&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),Object.defineProperties(i.prototype,{constructor:{value:i,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),i}function ow(e,t){for(var n of WE)e.removeListener(n,qE[n]);e.on("error",ew),e.destroy(t)}function aw(e){return"string"==typeof e||e instanceof String}function cw(e){return"function"==typeof e}JE.prototype=Object.create(HE.prototype),JE.prototype.abort=function(){ow(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},JE.prototype.destroy=function(e){return ow(this._currentRequest,e),VE.call(this,e),this},JE.prototype.write=function(e,t,n){if(this._ending)throw new XE;if(!aw(e)&&("object"!=typeof(i=e)||!("length"in i)))throw new TypeError("data should be a string, Buffer or Uint8Array");var i;cw(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 zE),this.abort()):n&&n()},JE.prototype.end=function(e,t,n){if(cw(e)?(n=e,e=t=null):cw(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)},JE.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},JE.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},JE.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"),s()},e),i(t)}function s(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",s),n.removeListener("error",s),n.removeListener("response",s),n.removeListener("close",s),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",s),this.on("error",s),this.on("response",s),this.on("close",s),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(e){JE.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}}),["aborted","connection","socket"].forEach(function(e){Object.defineProperty(JE.prototype,e,{get:function(){return this._currentRequest[e]}})}),JE.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))}},JE.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);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,WE))i.on(r,qE[r]);if(this._currentUrl=/^\//.test(this._options.path)?PE.format(this._options):this._options.path,this._isRedirect){var s=0,o=this,a=this._requestBodyBuffers;!function e(t){if(i===o._currentRequest)if(t)o.emit("error",t);else if(s<a.length){var n=a[s++];i.finished||i.write(n.data,n.encoding,e)}else o._ended&&i.end()}()}},JE.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,i=e.headers.location;if(!i||!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(ow(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new KE;var r=this._options.beforeRedirect;r&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=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=[],rw(/^content-/i,this._options.headers));var o,a,c=rw(/^host$/i,this._options.headers),l=tw(this._currentUrl),u=c||l.host,p=/^\w+:/.test(i)?this._currentUrl:PE.format(Object.assign(l,{host:u})),d=(o=i,a=p,$E?new UE(o,a):tw(PE.resolve(a,o)));if(jE("redirecting to",d.href),this._isRedirect=!0,iw(d,this._options),(d.protocol!==l.protocol&&"https:"!==d.protocol||d.host!==u&&!function(e,t){FE(aw(e)&&aw(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(d.host,u))&&rw(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),cw(r)){var h={headers:e.headers,statusCode:t},f={url:p,method:s,headers:n};r(this._options,h,f),this._sanitizeOptions(this._options)}this._performRequest()},AE.exports=ZE({http:DE,https:ME}),AE.exports.wrap=ZE;var lw=x(AE.exports);const uw="1.15.0";function pw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const dw=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;const hw=Symbol("internals");class fw extends n.Transform{constructor(e){e=kb.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(e,t)=>!kb.isUndefined(t[e])),super({readableHighWaterMark:e.chunkSize});const t=this[hw]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){const t=this[hw];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const i=this[hw],r=i.maxRate,s=this.readableHighWaterMark,o=i.timeWindow,a=r/(1e3/o),c=!1!==i.minChunkSize?Math.max(i.minChunkSize,.01*a):0,l=(e,t)=>{const n=Buffer.byteLength(e);i.bytesSeen+=n,i.bytes+=n,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(e)?process.nextTick(t):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(t)}},u=(e,t)=>{const n=Buffer.byteLength(e);let u,p=null,d=s,h=0;if(r){const e=Date.now();(!i.ts||(h=e-i.ts)>=o)&&(i.ts=e,u=a-i.bytes,i.bytes=u<0?-u:0,h=0),u=a-i.bytes}if(r){if(u<=0)return setTimeout(()=>{t(null,e)},o-h);u<d&&(d=u)}d&&n>d&&n-d>c&&(p=e.subarray(d),e=e.subarray(0,d)),l(e,p?()=>{process.nextTick(t,null,p)}:t)};u(e,function e(t,i){if(t)return n(t);i?u(i,e):n(null)})}}var mw=fw;const{asyncIterator:gw}=Symbol;var _w=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[gw]?yield*e[gw]():yield e};const bw=XA.ALPHABET.ALPHA_DIGIT+"-_",yw="function"==typeof TextEncoder?new TextEncoder:new f.TextEncoder,vw="\r\n",Aw=yw.encode(vw);class Ew{constructor(e,t){const{escapeName:n}=this.constructor,i=kb.isString(t);let r=`Content-Disposition: form-data; name="${n(e)}"${!i&&t.name?`; filename="${n(t.name)}"`:""}${vw}`;i?t=yw.encode(String(t).replace(/\r?\n|\r\n?/g,vw)):r+=`Content-Type: ${t.type||"application/octet-stream"}${vw}`,this.headers=yw.encode(r+vw),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;kb.isTypedArray(e)?yield e:yield*_w(e),yield Aw}static escapeName(e){return String(e).replace(/[\r\n"]/g,e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e]))}}var ww=(e,t,i)=>{const{tag:r="form-data-boundary",size:s=25,boundary:o=r+"-"+XA.generateString(s,bw)}=i||{};if(!kb.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=yw.encode("--"+o+vw),c=yw.encode("--"+o+"--"+vw);let l=c.byteLength;const u=Array.from(e.entries()).map(([e,t])=>{const n=new Ew(e,t);return l+=n.size,n});l+=a.byteLength*u.length,l=kb.toFiniteNumber(l);const p={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(l)&&(p["Content-Length"]=l),t&&t(p),n.Readable.from(async function*(){for(const e of u)yield a,yield*e.encode();yield c}())};class xw extends n.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 Sw=xw;var Iw=(e,t)=>kb.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 kw={http:80,https:443,ws:80,wss:443,ftp:21},Cw=e=>e?("["===e.charAt(0)&&"]"===e.charAt(e.length-1)&&(e=e.slice(1,-1)),e.replace(/\.+$/,"")):e;function Rw(e){let t;try{t=new URL(e)}catch(e){return!1}const n=(process.env.no_proxy||process.env.NO_PROXY||"").toLowerCase();if(!n)return!1;if("*"===n)return!0;const i=Number.parseInt(t.port,10)||kw[t.protocol.split(":",1)[0]]||0,r=Cw(t.hostname.toLowerCase());return n.split(/[\s,]+/).some(e=>{if(!e)return!1;let[t,n]=(e=>{let t=e,n=0;if("["===t.charAt(0)){const e=t.indexOf("]");if(-1!==e){const i=t.slice(1,e),r=t.slice(e+1);return":"===r.charAt(0)&&/^\d+$/.test(r.slice(1))&&(n=Number.parseInt(r.slice(1),10)),[i,n]}}const i=t.indexOf(":"),r=t.lastIndexOf(":");return-1!==i&&i===r&&/^\d+$/.test(t.slice(r+1))&&(n=Number.parseInt(t.slice(r+1),10),t=t.slice(0,r)),[t,n]})(e);return t=Cw(t),!!t&&((!n||n===i)&&("*"===t.charAt(0)&&(t=t.slice(1)),"."===t.charAt(0)?r.endsWith(t):r===t))})}const Bw=(e,t,n=3)=>{let i=0;const r=function(e,t){e=e||10;const n=new Array(e),i=new Array(e);let r,s=0,o=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),l=i[o];r||(r=c),n[s]=a,i[s]=c;let u=o,p=0;for(;u!==s;)p+=n[u++],u%=e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),c-r<t)return;const d=l&&c-l;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,i,r=0,s=1e3/t;const o=(t,s=Date.now())=>{r=s,n=null,i&&(clearTimeout(i),i=null),e(...t)};return[(...e)=>{const t=Date.now(),a=t-r;a>=s?o(e,t):(n=e,i||(i=setTimeout(()=>{i=null,o(n)},s-a)))},()=>n&&o(n)]}(n=>{const s=n.loaded,o=n.lengthComputable?n.total:void 0,a=s-i,c=r(a);i=s;e({loaded:s,total:o,progress:o?s/o:void 0,bytes:a,rate:c||void 0,estimated:c&&o&&s<=o?(o-s)/c:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})},n)},Tw=(e,t)=>{const n=null!=e;return[i=>t[0]({lengthComputable:n,total:e,loaded:i}),t[1]]},Ow=e=>(...t)=>kb.asap(()=>e(...t));const Nw={flush:m.constants.Z_SYNC_FLUSH,finishFlush:m.constants.Z_SYNC_FLUSH},Lw={flush:m.constants.BROTLI_OPERATION_FLUSH,finishFlush:m.constants.BROTLI_OPERATION_FLUSH},Pw=kb.isFunction(m.createBrotliDecompress),{http:Uw,https:Dw}=lw,Mw=/https:?/,Hw=XA.protocols.map(e=>e+":"),Fw=(e,[t,n])=>(e.on("end",n).on("error",n),t);const jw=new class{constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign({sessionTimeout:1e3},t);let n=this.sessions[e];if(n){let e=n.length;for(let i=0;i<e;i++){const[e,r]=n[i];if(!e.destroyed&&!e.closed&&f.isDeepStrictEqual(r,t))return e}}const i=E.connect(e,t);let r;const s=()=>{if(r)return;r=!0;let t=n,s=t.length,o=s;for(;o--;)if(t[o][0]===i)return 1===s?delete this.sessions[e]:t.splice(o,1),void(i.closed||i.close())},o=i.request,{sessionTimeout:a}=t;if(null!=a){let e,t=0;i.request=function(){const n=o.apply(this,arguments);return t++,e&&(clearTimeout(e),e=null),n.once("close",()=>{--t||(e=setTimeout(()=>{e=null,s()},a))}),n}}i.once("close",s);let c=[i,t];return n?n.push(c):n=this.sessions[e]=[c],i}};function $w(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function Qw(e,t,n){let i=t;if(!i&&!1!==i){const e=fE(n);e&&(Rw(n)||(i=new URL(e)))}if(i){if(i.username&&(i.auth=(i.username||"")+":"+(i.password||"")),i.auth){if(Boolean(i.auth.username||i.auth.password))i.auth=(i.auth.username||"")+":"+(i.auth.password||"");else if("object"==typeof i.auth)throw new Rb("Invalid proxy authorization",Rb.ERR_BAD_OPTION,{proxy:i});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){Qw(e,t,e.href)}}const Ww="undefined"!=typeof process&&"process"===kb.kindOf(process),qw=(e,t)=>(({address:e,family:t})=>{if(!kb.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(kb.isObject(e)?e:{address:e,family:t}),Yw={request(e,t){const n=e.protocol+"//"+e.hostname+":"+(e.port||("https:"===e.protocol?443:80)),{http2Options:i,headers:r}=e,s=jw.getSession(n,i),{HTTP2_HEADER_SCHEME:o,HTTP2_HEADER_METHOD:a,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=E.constants,u={[o]:e.protocol.replace(":",""),[a]:e.method,[c]:e.path};kb.forEach(r,(e,t)=>{":"!==t.charAt(0)&&(u[t]=e)});const p=s.request(u);return p.once("response",e=>{const n=p,i=(e=Object.assign({},e))[l];delete e[l],n.headers=e,n.statusCode=+i,t(n)}),p}};var Gw=Ww&&function(e){return t=async function(t,i,r){let{data:s,lookup:o,family:a,httpVersion:c=1,http2Options:p}=e;const{responseType:d,responseEncoding:g}=e,_=e.method.toUpperCase();let b,y,v=!1;if(c=+c,Number.isNaN(c))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(1!==c&&2!==c)throw TypeError(`Unsupported protocol version '${c}'`);const A=2===c;if(o){const e=Iw(o,e=>kb.isArray(e)?e:[e]);o=(t,n,i)=>{e(t,n,(e,t,r)=>{if(e)return i(e);const s=kb.isArray(t)?t.map(e=>qw(e)):[qw(t,r)];n.all?i(e,s):i(e,s[0].address,s[0].family)})}}const E=new h.EventEmitter;function w(t){try{E.emit("abort",!t||t.type?new uE(null,e,y):t)}catch(e){console.warn("emit error",e)}}E.once("abort",i);const x=()=>{e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w),E.removeAllListeners()};(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w))),r((e,t)=>{if(b=!0,t)return v=!0,void x();const{data:i}=e;if(i instanceof n.Readable||i instanceof n.Duplex){const e=n.finished(i,()=>{e(),x()})}else x()});const S=dE(e.baseURL,e.url,e.allowAbsoluteUrls),I=new URL(S,XA.hasBrowserEnv?XA.origin:void 0),k=I.protocol||Hw[0];if("data:"===k){if(e.maxContentLength>-1){const t=function(e){if(!e||"string"!=typeof e)return 0;if(!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),i=e.slice(t+1);if(/;base64/i.test(n)){let e=i.length;const t=i.length;for(let n=0;n<t;n++)if(37===i.charCodeAt(n)&&n+2<t){const t=i.charCodeAt(n+1),r=i.charCodeAt(n+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102)&&(e-=2,n+=2)}let n=0,r=t-1;const s=e=>e>=2&&37===i.charCodeAt(e-2)&&51===i.charCodeAt(e-1)&&(68===i.charCodeAt(e)||100===i.charCodeAt(e));r>=0&&(61===i.charCodeAt(r)?(n++,r--):s(r)&&(n++,r-=3)),1===n&&r>=0&&(61===i.charCodeAt(r)||s(r))&&n++;const o=3*Math.floor(e/4)-(n||0);return o>0?o:0}return Buffer.byteLength(i,"utf8")}(String(e.url||S||""));if(t>e.maxContentLength)return i(new Rb("maxContentLength size of "+e.maxContentLength+" exceeded",Rb.ERR_BAD_RESPONSE,e))}let r;if("GET"!==_)return pE(t,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{r=function(e,t,n){const i=n&&n.Blob||XA.classes.Blob,r=pw(e);if(void 0===t&&i&&(t=!0),"data"===r){e=r.length?e.slice(r.length+1):e;const n=dw.exec(e);if(!n)throw new Rb("Invalid URL",Rb.ERR_INVALID_URL);const s=n[1],o=n[2],a=n[3],c=Buffer.from(decodeURIComponent(a),o?"base64":"utf8");if(t){if(!i)throw new Rb("Blob is not supported",Rb.ERR_NOT_SUPPORT);return new i([c],{type:s})}return c}throw new Rb("Unsupported protocol "+r,Rb.ERR_NOT_SUPPORT)}(e.url,"blob"===d,{Blob:e.env&&e.env.Blob})}catch(t){throw Rb.from(t,Rb.ERR_BAD_REQUEST,e)}return"text"===d?(r=r.toString(g),g&&"utf8"!==g||(r=kb.stripBOM(r))):"stream"===d&&(r=n.Readable.from(r)),pE(t,i,{data:r,status:200,statusText:"OK",headers:new aE,config:e})}if(-1===Hw.indexOf(k))return i(new Rb("Unsupported protocol "+k,Rb.ERR_BAD_REQUEST,e));const C=aE.from(e.headers).normalize();C.set("User-Agent","axios/"+uw,!1);const{onUploadProgress:R,onDownloadProgress:B}=e,T=e.maxRate;let O,N;if(kb.isSpecCompliantForm(s)){const e=C.getContentType(/boundary=([-_\w\d]{10,70})/i);s=ww(s,e=>{C.set(e)},{tag:`axios-${uw}-boundary`,boundary:e&&e[1]||void 0})}else if(kb.isFormData(s)&&kb.isFunction(s.getHeaders)){if(C.set(s.getHeaders()),!C.hasContentLength())try{const e=await f.promisify(s.getLength).call(s);Number.isFinite(e)&&e>=0&&C.setContentLength(e)}catch(e){}}else if(kb.isBlob(s)||kb.isFile(s))s.size&&C.setContentType(s.type||"application/octet-stream"),C.setContentLength(s.size||0),s=n.Readable.from(_w(s));else if(s&&!kb.isStream(s)){if(Buffer.isBuffer(s));else if(kb.isArrayBuffer(s))s=Buffer.from(new Uint8Array(s));else{if(!kb.isString(s))return i(new Rb("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",Rb.ERR_BAD_REQUEST,e));s=Buffer.from(s,"utf-8")}if(C.setContentLength(s.length,!1),e.maxBodyLength>-1&&s.length>e.maxBodyLength)return i(new Rb("Request body larger than maxBodyLength limit",Rb.ERR_BAD_REQUEST,e))}const L=kb.toFiniteNumber(C.getContentLength());let P,U;kb.isArray(T)?(O=T[0],N=T[1]):O=N=T,s&&(R||O)&&(kb.isStream(s)||(s=n.Readable.from(s,{objectMode:!1})),s=n.pipeline([s,new mw({maxRate:kb.toFiniteNumber(O)})],kb.noop),R&&s.on("progress",Fw(s,Tw(L,Bw(Ow(R),!1,3))))),e.auth&&(P=(e.auth.username||"")+":"+(e.auth.password||"")),!P&&I.username&&(P=I.username+":"+I.password),P&&C.delete("authorization");try{U=DA(I.pathname+I.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)}C.set("Accept-Encoding","gzip, compress, deflate"+(Pw?", br":""),!1);const D={path:U,method:_,headers:C.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:P,protocol:k,family:a,beforeRedirect:$w,beforeRedirects:{},http2Options:p};let M;!kb.isUndefined(o)&&(D.lookup=o),e.socketPath?D.socketPath=e.socketPath:(D.hostname=I.hostname.startsWith("[")?I.hostname.slice(1,-1):I.hostname,D.port=I.port,Qw(D,e.proxy,k+"//"+I.hostname+(I.port?":"+I.port:"")+D.path));const H=Mw.test(D.protocol);if(D.agent=H?e.httpsAgent:e.httpAgent,A?M=Yw:e.transport?M=e.transport:0===e.maxRedirects?M=H?u:l:(e.maxRedirects&&(D.maxRedirects=e.maxRedirects),e.beforeRedirect&&(D.beforeRedirects.config=e.beforeRedirect),M=H?Dw:Uw),e.maxBodyLength>-1?D.maxBodyLength=e.maxBodyLength:D.maxBodyLength=1/0,e.insecureHTTPParser&&(D.insecureHTTPParser=e.insecureHTTPParser),y=M.request(D,function(r){if(y.destroyed)return;const s=[r],o=kb.toFiniteNumber(r.headers["content-length"]);if(B||N){const e=new mw({maxRate:kb.toFiniteNumber(N)});B&&e.on("progress",Fw(e,Tw(o,Bw(Ow(B),!0,3)))),s.push(e)}let a=r;const c=r.req||y;if(!1!==e.decompress&&r.headers["content-encoding"])switch("HEAD"!==_&&204!==r.statusCode||delete r.headers["content-encoding"],(r.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":s.push(m.createUnzip(Nw)),delete r.headers["content-encoding"];break;case"deflate":s.push(new Sw),s.push(m.createUnzip(Nw)),delete r.headers["content-encoding"];break;case"br":Pw&&(s.push(m.createBrotliDecompress(Lw)),delete r.headers["content-encoding"])}a=s.length>1?n.pipeline(s,kb.noop):s[0];const l={status:r.statusCode,statusText:r.statusMessage,headers:new aE(r.headers),config:e,request:c};if("stream"===d)l.data=a,pE(t,i,l);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(),w(new Rb("maxContentLength size of "+e.maxContentLength+" exceeded",Rb.ERR_BAD_RESPONSE,e,c)))}),a.on("aborted",function(){if(v)return;const t=new Rb("stream has been aborted",Rb.ERR_BAD_RESPONSE,e,c);a.destroy(t),i(t)}),a.on("error",function(t){y.destroyed||i(Rb.from(t,null,e,c))}),a.on("end",function(){try{let e=1===n.length?n[0]:Buffer.concat(n);"arraybuffer"!==d&&(e=e.toString(g),g&&"utf8"!==g||(e=kb.stripBOM(e))),l.data=e}catch(t){return i(Rb.from(t,null,e,l.request,l))}pE(t,i,l)})}E.once("abort",e=>{a.destroyed||(a.emit("error",e),a.destroy())})}),E.once("abort",e=>{y.close?y.close():y.destroy(e)}),y.on("error",function(t){i(Rb.from(t,null,e,y))}),y.on("socket",function(e){e.setKeepAlive(!0,6e4)}),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void w(new Rb("error trying to parse `config.timeout` to int",Rb.ERR_BAD_OPTION_VALUE,e,y));y.setTimeout(t,function(){if(b)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const n=e.transitional||HA;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),w(new Rb(t,n.clarifyTimeoutError?Rb.ETIMEDOUT:Rb.ECONNABORTED,e,y))})}else y.setTimeout(0);if(kb.isStream(s)){let t=!1,n=!1;s.on("end",()=>{t=!0}),s.once("error",e=>{n=!0,y.destroy(e)}),s.on("close",()=>{t||n||w(new uE("Request stream has been aborted",e,y))}),s.pipe(y)}else s&&y.write(s),y.end()},new Promise((e,n)=>{let i,r;const s=(e,t)=>{r||(r=!0,i&&i(e,t))},o=e=>{s(e,!0),n(e)};t(t=>{s(t),e(t)},o,e=>i=e).catch(o)});var t},Kw=XA.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,XA.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(XA.origin),XA.navigator&&/(msie|trident)/i.test(XA.navigator.userAgent)):()=>!0,zw=XA.hasStandardBrowserEnv?{write(e,t,n,i,r,s,o){if("undefined"==typeof document)return;const a=[`${e}=${encodeURIComponent(t)}`];kb.isNumber(n)&&a.push(`expires=${new Date(n).toUTCString()}`),kb.isString(i)&&a.push(`path=${i}`),kb.isString(r)&&a.push(`domain=${r}`),!0===s&&a.push("secure"),kb.isString(o)&&a.push(`SameSite=${o}`),document.cookie=a.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};const Xw=e=>e instanceof aE?{...e}:e;function Vw(e,t){t=t||{};const n={};function i(e,t,n,i){return kb.isPlainObject(e)&&kb.isPlainObject(t)?kb.merge.call({caseless:i},e,t):kb.isPlainObject(t)?kb.merge({},t):kb.isArray(t)?t.slice():t}function r(e,t,n,r){return kb.isUndefined(t)?kb.isUndefined(e)?void 0:i(void 0,e,0,r):i(e,t,0,r)}function s(e,t){if(!kb.isUndefined(t))return i(void 0,t)}function o(e,t){return kb.isUndefined(t)?kb.isUndefined(e)?void 0:i(void 0,e):i(void 0,t)}function a(n,r,s){return s in t?i(n,r):s in e?i(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(e,t,n)=>r(Xw(e),Xw(t),0,!0)};return kb.forEach(Object.keys({...e,...t}),function(i){if("__proto__"===i||"constructor"===i||"prototype"===i)return;const s=kb.hasOwnProp(c,i)?c[i]:r,o=s(e[i],t[i],i);kb.isUndefined(o)&&s!==a||(n[i]=o)}),n}var Jw=e=>{const t=Vw({},e);let{data:n,withXSRFToken:i,xsrfHeaderName:r,xsrfCookieName:s,headers:o,auth:a}=t;if(t.headers=o=aE.from(o),t.url=DA(dE(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),kb.isFormData(n))if(XA.hasStandardBrowserEnv||XA.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(kb.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)})}if(XA.hasStandardBrowserEnv&&(i&&kb.isFunction(i)&&(i=i(t)),i||!1!==i&&Kw(t.url))){const e=r&&s&&zw.read(s);e&&o.set(r,e)}return t};var Zw="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const i=Jw(e);let r=i.data;const s=aE.from(i.headers).normalize();let o,a,c,l,u,{responseType:p,onUploadProgress:d,onDownloadProgress:h}=i;function f(){l&&l(),u&&u(),i.cancelToken&&i.cancelToken.unsubscribe(o),i.signal&&i.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function g(){if(!m)return;const i=aE.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());pE(function(e){t(e),f()},function(e){n(e),f()},{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:i,config:e,request:m}),m=null}m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Rb("Request aborted",Rb.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const i=t&&t.message?t.message:"Network Error",r=new Rb(i,Rb.ERR_NETWORK,e,m);r.event=t||null,n(r),m=null},m.ontimeout=function(){let t=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const r=i.transitional||HA;i.timeoutErrorMessage&&(t=i.timeoutErrorMessage),n(new Rb(t,r.clarifyTimeoutError?Rb.ETIMEDOUT:Rb.ECONNABORTED,e,m)),m=null},void 0===r&&s.setContentType(null),"setRequestHeader"in m&&kb.forEach(s.toJSON(),function(e,t){m.setRequestHeader(t,e)}),kb.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),p&&"json"!==p&&(m.responseType=i.responseType),h&&([c,u]=Bw(h,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,l]=Bw(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",l)),(i.cancelToken||i.signal)&&(o=t=>{m&&(n(!t||t.type?new uE(null,e,m):t),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(o),i.signal&&(i.signal.aborted?o():i.signal.addEventListener("abort",o)));const _=pw(i.url);_&&-1===XA.protocols.indexOf(_)?n(new Rb("Unsupported protocol "+_+":",Rb.ERR_BAD_REQUEST,e)):m.send(r||null)})};var ex=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,i=new AbortController;const r=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;i.abort(t instanceof Rb?t:new uE(t instanceof Error?t.message:t))}};let s=t&&setTimeout(()=>{s=null,r(new Rb(`timeout of ${t}ms exceeded`,Rb.ETIMEDOUT))},t);const o=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(r):e.removeEventListener("abort",r)}),e=null)};e.forEach(e=>e.addEventListener("abort",r));const{signal:a}=i;return a.unsubscribe=()=>kb.asap(o),a}};const tx=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let i,r=0;for(;r<n;)i=r+t,yield e.slice(r,i),r=i},nx=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},ix=(e,t,n,i)=>{const r=async function*(e,t){for await(const n of nx(e))yield*tx(n,t)}(e,t);let s,o=0,a=e=>{s||(s=!0,i&&i(e))};return new ReadableStream({async pull(e){try{const{done:t,value:i}=await r.next();if(t)return a(),void e.close();let s=i.byteLength;if(n){let e=o+=s;n(e)}e.enqueue(new Uint8Array(i))}catch(e){throw a(e),e}},cancel:e=>(a(e),r.return())},{highWaterMark:2})},{isFunction:rx}=kb,sx=(({Request:e,Response:t})=>({Request:e,Response:t}))(kb.global),{ReadableStream:ox,TextEncoder:ax}=kb.global,cx=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},lx=e=>{e=kb.merge.call({skipUndefined:!0},sx,e);const{fetch:t,Request:n,Response:i}=e,r=t?rx(t):"function"==typeof fetch,s=rx(n),o=rx(i);if(!r)return!1;const a=r&&rx(ox),c=r&&("function"==typeof ax?(l=new ax,e=>l.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var l;const u=s&&a&&cx(()=>{let e=!1;const t=new ox,i=new n(XA.origin,{body:t,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return t.cancel(),e&&!i}),p=o&&a&&cx(()=>kb.isReadableStream(new i("").body)),d={stream:p&&(e=>e.body)};r&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,n)=>{let i=t&&t[e];if(i)return i.call(t);throw new Rb(`Response type '${e}' is not supported`,Rb.ERR_NOT_SUPPORT,n)})});const h=async(e,t)=>{const i=kb.toFiniteNumber(e.getContentLength());return null==i?(async e=>{if(null==e)return 0;if(kb.isBlob(e))return e.size;if(kb.isSpecCompliantForm(e)){const t=new n(XA.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return kb.isArrayBufferView(e)||kb.isArrayBuffer(e)?e.byteLength:(kb.isURLSearchParams(e)&&(e+=""),kb.isString(e)?(await c(e)).byteLength:void 0)})(t):i};return async e=>{let{url:r,method:o,data:a,signal:c,cancelToken:l,timeout:f,onDownloadProgress:m,onUploadProgress:g,responseType:_,headers:b,withCredentials:y="same-origin",fetchOptions:v}=Jw(e),A=t||fetch;_=_?(_+"").toLowerCase():"text";let E=ex([c,l&&l.toAbortSignal()],f),w=null;const x=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let S;try{if(g&&u&&"get"!==o&&"head"!==o&&0!==(S=await h(b,a))){let e,t=new n(r,{method:"POST",body:a,duplex:"half"});if(kb.isFormData(a)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=Tw(S,Bw(Ow(g)));a=ix(t.body,65536,e,n)}}kb.isString(y)||(y=y?"include":"omit");const t=s&&"credentials"in n.prototype,c={...v,signal:E,method:o.toUpperCase(),headers:b.normalize().toJSON(),body:a,duplex:"half",credentials:t?y:void 0};w=s&&new n(r,c);let l=await(s?A(w,v):A(r,c));const f=p&&("stream"===_||"response"===_);if(p&&(m||f&&x)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=l[t]});const t=kb.toFiniteNumber(l.headers.get("content-length")),[n,r]=m&&Tw(t,Bw(Ow(m),!0))||[];l=new i(ix(l.body,65536,n,()=>{r&&r(),x&&x()}),e)}_=_||"text";let I=await d[kb.findKey(d,_)||"text"](l,e);return!f&&x&&x(),await new Promise((t,n)=>{pE(t,n,{data:I,headers:aE.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:w})})}catch(t){if(x&&x(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Rb("Network Error",Rb.ERR_NETWORK,e,w,t&&t.response),{cause:t.cause||t});throw Rb.from(t,t&&t.code,e,w,t&&t.response)}}},ux=new Map,px=e=>{let t=e&&e.env||{};const{fetch:n,Request:i,Response:r}=t,s=[i,r,n];let o,a,c=s.length,l=ux;for(;c--;)o=s[c],a=l.get(o),void 0===a&&l.set(o,a=c?new Map:lx(t)),l=a;return a};px();const dx={http:Gw,xhr:Zw,fetch:{get:px}};kb.forEach(dx,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const hx=e=>`- ${e}`,fx=e=>kb.isFunction(e)||null===e||!1===e;var mx={getAdapter:function(e,t){e=kb.isArray(e)?e:[e];const{length:n}=e;let i,r;const s={};for(let o=0;o<n;o++){let n;if(i=e[o],r=i,!fx(i)&&(r=dx[(n=String(i)).toLowerCase()],void 0===r))throw new Rb(`Unknown adapter '${n}'`);if(r&&(kb.isFunction(r)||(r=r.get(t))))break;s[n||"#"+o]=r}if(!r){const e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=n?e.length>1?"since :\n"+e.map(hx).join("\n"):" "+hx(e[0]):"as no adapter specified";throw new Rb("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return r},adapters:dx};function gx(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new uE(null,e)}function _x(e){gx(e),e.headers=aE.from(e.headers),e.data=cE.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return mx.getAdapter(e.adapter||ZA.adapter,e)(e).then(function(t){return gx(e),t.data=cE.call(e,e.transformResponse,t),t.headers=aE.from(t.headers),t},function(t){return lE(t)||(gx(e),t&&t.response&&(t.response.data=cE.call(e,e.transformResponse,t.response),t.response.headers=aE.from(t.response.headers))),Promise.reject(t)})}const bx={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bx[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const yx={};bx.transitional=function(e,t,n){function i(e,t){return"[Axios v"+uw+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,r,s)=>{if(!1===e)throw new Rb(i(r," has been removed"+(t?" in "+t:"")),Rb.ERR_DEPRECATED);return t&&!yx[r]&&(yx[r]=!0,console.warn(i(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,s)}},bx.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var vx={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Rb("options must be an object",Rb.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let r=i.length;for(;r-- >0;){const s=i[r],o=t[s];if(o){const t=e[s],n=void 0===t||o(t,s,e);if(!0!==n)throw new Rb("option "+s+" must be "+n,Rb.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new Rb("Unknown option "+s,Rb.ERR_BAD_OPTION)}},validators:bx};const Ax=vx.validators;class Ex{constructor(e){this.defaults=e||{},this.interceptors={request:new MA,response:new MA}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=(()=>{if(!t.stack)return"";const e=t.stack.indexOf("\n");return-1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(n){const t=n.indexOf("\n"),i=-1===t?-1:n.indexOf("\n",t+1),r=-1===i?"":n.slice(i+1);String(e.stack).endsWith(r)||(e.stack+="\n"+n)}}else e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Vw(this.defaults,t);const{transitional:n,paramsSerializer:i,headers:r}=t;void 0!==n&&vx.assertOptions(n,{silentJSONParsing:Ax.transitional(Ax.boolean),forcedJSONParsing:Ax.transitional(Ax.boolean),clarifyTimeoutError:Ax.transitional(Ax.boolean),legacyInterceptorReqResOrdering:Ax.transitional(Ax.boolean)},!1),null!=i&&(kb.isFunction(i)?t.paramsSerializer={serialize:i}:vx.assertOptions(i,{encode:Ax.function,serialize:Ax.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),vx.assertOptions(t,{baseUrl:Ax.spelling("baseURL"),withXsrfToken:Ax.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=r&&kb.merge(r.common,r[t.method]);r&&kb.forEach(["delete","get","head","post","put","patch","common"],e=>{delete r[e]}),t.headers=aE.concat(s,r);const o=[];let a=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;a=a&&e.synchronous;const n=t.transitional||HA;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(e.fulfilled,e.rejected)});const c=[];let l;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,p=0;if(!a){const e=[_x.bind(this),void 0];for(e.unshift(...o),e.push(...c),u=e.length,l=Promise.resolve(t);p<u;)l=l.then(e[p++],e[p++]);return l}u=o.length;let d=t;for(;p<u;){const e=o[p++],t=o[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=_x.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,u=c.length;p<u;)l=l.then(c[p++],c[p++]);return l}getUri(e){return DA(dE((e=Vw(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}kb.forEach(["delete","get","head","options"],function(e){Ex.prototype[e]=function(t,n){return this.request(Vw(n||{},{method:e,url:t,data:(n||{}).data}))}}),kb.forEach(["post","put","patch"],function(e){function t(t){return function(n,i,r){return this.request(Vw(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}Ex.prototype[e]=t(),Ex.prototype[e+"Form"]=t(!0)});var wx=Ex;class xx{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 uE(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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new xx(function(t){e=t}),cancel:e}}}var Sx=xx;const Ix={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Ix).forEach(([e,t])=>{Ix[t]=e});var kx=Ix;const Cx=function e(t){const n=new wx(t),i=U_(wx.prototype.request,n);return kb.extend(i,wx.prototype,n,{allOwnKeys:!0}),kb.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(Vw(t,n))},i}(ZA);Cx.Axios=wx,Cx.CanceledError=uE,Cx.CancelToken=Sx,Cx.isCancel=lE,Cx.VERSION=uw,Cx.toFormData=OA,Cx.AxiosError=Rb,Cx.Cancel=Cx.CanceledError,Cx.all=function(e){return Promise.all(e)},Cx.spread=function(e){return function(t){return e.apply(null,t)}},Cx.isAxiosError=function(e){return kb.isObject(e)&&!0===e.isAxiosError},Cx.mergeConfig=Vw,Cx.AxiosHeaders=aE,Cx.formToJSON=e=>VA(kb.isHTMLForm(e)?new FormData(e):e),Cx.getAdapter=mx.getAdapter,Cx.HttpStatusCode=kx,Cx.default=Cx;var Rx=Cx;const Bx="https://qyapi.weixin.qq.com";async function Tx(e,t){let n={};n=t&&0!==Object.keys(t).length?t:await async function(){return await T_("wxServerConfig")}();const{WX_COMPANY_ID:i,WX_APP_ID:r,WX_APP_SECRET:s}=n;try{const t=await async function({id:e,secret:t}){try{return(await Rx({url:`${Bx}/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:s}),n={...{msgtype:"text",agentid:r,...e},...e},o=await(async(e,t)=>(await Rx({url:`${Bx}/cgi-bin/message/send?access_token=${e}`,method:"POST",data:{touser:t.touser||"@all",...t}})).data)(t,n);return N_("wx:信息发送成功!",o),!0}catch(e){return L_("wx:信息发送失败!",e),!1}}id.locale("zh-cn"),async function(){return await T_()}().then(t=>{const{projectInfo:n={name:""},locaPath:i,protocol:r="http",staticPath:s={},serverOption:o={},shell:a}=t.uploadServeConfig||{},c=t.wxServerConfig,l="production"===process.env.VUE_APP_PACK_ENV,u=process.env.VUE_APP_LINE_VERSION,p=l&&2===+u?o.host[1]:o.host[0],d=l?s.pro:s.dev,h=`${r}://${p}/${d}`,f={port:22,...o,host:p,locaPath:`${process.cwd()}${i}`,pathNmae:`${o.pathNmae}${d}`};if(!e.existsSync(f.locaPath))return L_("本地打包目录不存在,请先执行构建:",f.locaPath),void(process.exitCode=1);const m=Number(f.port)||22,g=a||`mkdir -p ${f.pathNmae} && rm -rf ${f.pathNmae}/*`,_=function(){const e=B_.commandSync("git rev-parse --short HEAD"),t=`git log --pretty=format:“%s” ${e.stdout} -1`,{stdout:n,stderr:i}=B_.commandSync(t);return{commitId:e.stdout,commitMsg:n}}();function b(e){return`<div class="gray">${id().format("lll")}</div><div class="highlight">${n.name}${l?"生产":"开发"}环境发布${e}</div><div class="normal">commitId:${_.commitId}</div><div class="normal">commitMsg:${_.commitMsg}</div><div class="normal">访问地址:${h}</div>`}!function(e,t=""){P_("cyan",e,t)}("本次打包信息 =>",{...n||{},serverPath:f.pathNmae});const y=Vp("正在发布到"+(l?"生产":"开发")+"服务器..."),v=new Ga.Client;!function(e,t=""){P_("magenta",e,t)}("正在建立连接"),v.on("error",function(e){L_("SSH 连接失败:",e.message||e)}).on("ready",function(){if(O_("已连接"),!f.pathNmae)return O_("连接已关闭"),v.end(),!1;v.exec(g,function(e,t){if(e)return L_("远程清理命令执行失败:",e.message||e),void v.end();t.on("data",()=>{}),t.stderr&&t.stderr.on("data",()=>{}),t.on("close",function(e,t){if(v.end(),t)return void L_("远程清理被信号中断:",String(t));if(null!=e&&0!==e)return void L_("远程清理命令异常退出,退出码:",String(e));!function(e,t=""){P_("yellow",e,t)}("已清理服务端目录"),O_("开始上传(SFTP)"),y.start();const n=new Yl("dyp-publish"),i={host:f.host,port:m,username:f.username,password:f.password};f.privateKey&&(i.privateKey=f.privateKey),"1"===process.env.DYP_PUBLISH_DEBUG&&(i.debug=e=>O_("[SFTP DEBUG] "+e)),n.connect(i).then(()=>n.uploadDir(f.locaPath,f.pathNmae,{useFastput:!0,promiseLimit:8})).then(()=>n.end()).then(()=>{y.stop(),N_("Success! 成功发布到"+(l?"生产":"开发")+"服务器!",`访问地址====>${h}`),Tx({msgtype:"textcard",textcard:{title:"发布成功",description:b("成功"),url:h,btntxt:"更多"}},c),v.end()}).catch(e=>{y.stop();try{n.end()}catch(e){}L_("发布失败(SFTP 上传):",e.message||e),Tx({msgtype:"textcard",textcard:{title:"发布失败",description:b("失败"),url:h,btntxt:"更多"}},c),v.end()})})})}).connect({host:f.host,port:m,username:f.username,password:f.password,privateKey:f.privateKey||void 0})}).catch(e=>{L_("发布流程异常:",e.message||e),process.exitCode=1})});
|