=0?l:u;i.length&&(a=[o,s])}return a}});var W3=v((Bke,M3)=>{var hde=k3(),N3=L3();M3.exports=mde;var q3="\0SLASH"+Math.random()+"\0",$3="\0OPEN"+Math.random()+"\0",UD="\0CLOSE"+Math.random()+"\0",B3="\0COMMA"+Math.random()+"\0",j3="\0PERIOD"+Math.random()+"\0";function WD(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function gde(r){return r.split("\\\\").join(q3).split("\\{").join($3).split("\\}").join(UD).split("\\,").join(B3).split("\\.").join(j3)}function vde(r){return r.split(q3).join("\\").split($3).join("{").split(UD).join("}").split(B3).join(",").split(j3).join(".")}function U3(r){if(!r)return[""];var e=[],t=N3("{","}",r);if(!t)return r.split(",");var i=t.pre,n=t.body,o=t.post,s=i.split(",");s[s.length-1]+="{"+n+"}";var a=U3(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),e.push.apply(e,s),e}function mde(r){return r?(r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),zl(gde(r),!0).map(vde)):[]}function yde(r){return"{"+r+"}"}function bde(r){return/^-?0\d/.test(r)}function wde(r,e){return r<=e}function xde(r,e){return r>=e}function zl(r,e){var t=[],i=N3("{","}",r);if(!i||/\$$/.test(i.pre))return[r];var n=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),o=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),s=n||o,a=i.body.indexOf(",")>=0;if(!s&&!a)return i.post.match(/,.*\}/)?(r=i.pre+"{"+i.body+UD+i.post,zl(r)):[r];var l;if(s)l=i.body.split(/\.\./);else if(l=U3(i.body),l.length===1&&(l=zl(l[0],!1).map(yde),l.length===1)){var c=i.post.length?zl(i.post,!1):[""];return c.map(function(R){return i.pre+l[0]+R})}var u=i.pre,c=i.post.length?zl(i.post,!1):[""],f;if(s){var p=WD(l[0]),d=WD(l[1]),h=Math.max(l[0].length,l[1].length),m=l.length==3?Math.abs(WD(l[2])):1,y=wde,g=d0){var k=new Array(P+1).join("0");x<0?E="-"+k+E.slice(1):E=k+E}}f.push(E)}}else f=hde(l,function(O){return zl(O,!1)});for(var _=0;_{H3.exports=Ei;Ei.Minimatch=Ot;var Xf={sep:"/"};try{Xf=require("path")}catch(r){}var HD=Ei.GLOBSTAR=Ot.GLOBSTAR={},Dde=W3(),z3={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},zD="[^/]",GD=zD+"*?",Sde="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Ede="(?:(?!(?:\\/|^)\\.).)*?",G3=Cde("().*{}+?[]^$\\!");function Cde(r){return r.split("").reduce(function(e,t){return e[t]=!0,e},{})}var V3=/\/+/;Ei.filter=_de;function _de(r,e){return e=e||{},function(t,i,n){return Ei(t,r,e)}}function K3(r,e){r=r||{},e=e||{};var t={};return Object.keys(e).forEach(function(i){t[i]=e[i]}),Object.keys(r).forEach(function(i){t[i]=r[i]}),t}Ei.defaults=function(r){if(!r||!Object.keys(r).length)return Ei;var e=Ei,t=function(n,o,s){return e.minimatch(n,o,K3(r,s))};return t.Minimatch=function(n,o){return new e.Minimatch(n,K3(r,o))},t};Ot.defaults=function(r){return!r||!Object.keys(r).length?Ot:Ei.defaults(r).Minimatch};function Ei(r,e,t){if(typeof e!="string")throw new TypeError("glob pattern string required");return t||(t={}),!t.nocomment&&e.charAt(0)==="#"?!1:e.trim()===""?r==="":new Ot(e,t).match(r)}function Ot(r,e){if(!(this instanceof Ot))return new Ot(r,e);if(typeof r!="string")throw new TypeError("glob pattern string required");e||(e={}),r=r.trim(),Xf.sep!=="/"&&(r=r.split(Xf.sep).join("/")),this.options=e,this.set=[],this.pattern=r,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}Ot.prototype.debug=function(){};Ot.prototype.make=Pde;function Pde(){if(!this._made){var r=this.pattern,e=this.options;if(!e.nocomment&&r.charAt(0)==="#"){this.comment=!0;return}if(!r){this.empty=!0;return}this.parseNegate();var t=this.globSet=this.braceExpand();e.debug&&(this.debug=console.error),this.debug(this.pattern,t),t=this.globParts=t.map(function(i){return i.split(V3)}),this.debug(this.pattern,t),t=t.map(function(i,n,o){return i.map(this.parse,this)},this),this.debug(this.pattern,t),t=t.filter(function(i){return i.indexOf(!1)===-1}),this.debug(this.pattern,t),this.set=t}}Ot.prototype.parseNegate=Tde;function Tde(){var r=this.pattern,e=!1,t=this.options,i=0;if(!t.nonegate){for(var n=0,o=r.length;n1024*64)throw new TypeError("pattern is too long");var t=this.options;if(!t.noglobstar&&r==="**")return HD;if(r==="")return"";var i="",n=!!t.nocase,o=!1,s=[],a=[],l,u=!1,c=-1,f=-1,p=r.charAt(0)==="."?"":t.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",d=this;function h(){if(l){switch(l){case"*":i+=GD,n=!0;break;case"?":i+=zD,n=!0;break;default:i+="\\"+l;break}d.debug("clearStateChar %j %j",l,i),l=!1}}for(var m=0,y=r.length,g;m-1;L--){var I=a[L],O=i.slice(0,I.reStart),R=i.slice(I.reStart,I.reEnd-8),F=i.slice(I.reEnd-8,I.reEnd),q=i.slice(I.reEnd);F+=q;var K=O.split("(").length-1,ae=q;for(m=0;m=0&&(n=r[o],!n);o--);for(o=0;o>> no match, partial?`,r,c,e,f),c===s))}var d;if(typeof l=="string"?(i.nocase?d=u.toLowerCase()===l.toLowerCase():d=u===l,this.debug("string match",l,u,d)):(d=u.match(l),this.debug("pattern match",l,u,d)),!d)return!1}if(n===s&&o===a)return!0;if(n===s)return t;if(o===a){var h=n===s-1&&r[n]==="";return h}throw new Error("wtf?")};function kde(r){return r.replace(/\\(.)/g,"$1")}function Fde(r){return r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var bj=v((cIe,vj)=>{var h0=4294967296,yj=[];for(var ip=0;ip<256;ip++)yj[ip]=(ip>15?"":"0")+ip.toString(16);var np=vj.exports=function(r,e){r instanceof Buffer?(this.buffer=r,this.offset=e||0):Object.prototype.toString.call(r)=="[object Uint8Array]"?(this.buffer=new Buffer(r),this.offset=e||0):(this.buffer=this.buffer||new Buffer(8),this.offset=0,this.setValue.apply(this,arguments))};np.MAX_INT=Math.pow(2,53);np.MIN_INT=-Math.pow(2,53);np.prototype={constructor:np,_2scomp:function(){for(var r=this.buffer,e=this.offset,t=1,i=e+7;i>=e;i--){var n=(r[i]^255)+t;r[i]=n&255,t=n>>8}},setValue:function(r,e){var t=!1;if(arguments.length==1)if(typeof r=="number"){if(t=r<0,r=Math.abs(r),e=r%h0,r=r/h0,r>h0)throw new RangeError(r+" is outside Int64 range");r=r|0}else if(typeof r=="string")r=(r+"").replace(/^0x/,""),e=r.substr(-8),r=r.length>8?r.substr(0,r.length-8):"",r=parseInt(r,16),e=parseInt(e,16);else throw new Error(r+" must be a Number or String");for(var i=this.buffer,n=this.offset,o=7;o>=0;o--)i[n+o]=e&255,e=o==4?r:e>>>8;t&&this._2scomp()},toNumber:function(r){for(var e=this.buffer,t=this.offset,i=e[t]&128,n=0,o=1,s=7,a=1;s>=0;s--,a*=256){var l=e[t+s];i&&(l=(l^255)+o,o=l>>8,l=l&255),n+=l*a}return!r&&n>=np.MAX_INT?i?-Infinity:Infinity:i?-n:n},valueOf:function(){return this.toNumber(!1)},toString:function(r){return this.valueOf().toString(r||10)},toOctetString:function(r){for(var e=new Array(8),t=this.buffer,i=this.offset,n=0;n<8;n++)e[n]=yj[t[i+n]];return e.join(r||"")},toBuffer:function(r){if(r&&this.offset===0)return this.buffer;var e=new Buffer(8);return this.buffer.copy(e,0,this.offset,this.offset+8),e},copy:function(r,e){this.buffer.copy(r,e||0,this.offset,this.offset+8)},compare:function(r){if((this.buffer[this.offset]&128)!=(r.buffer[r.offset]&128))return r.buffer[r.offset]-this.buffer[this.offset];for(var e=0;e<8;e++)if(this.buffer[this.offset+e]!==r.buffer[r.offset+e])return this.buffer[this.offset+e]-r.buffer[r.offset+e];return 0},equals:function(r){return this.compare(r)===0},inspect:function(){return"[Int64 value:"+this+" octets:"+this.toOctetString(" ")+"]"}}});var kj=v(op=>{var wj=require("events").EventEmitter,$de=require("util"),Bde=require("os"),fIe=require("assert"),sp=bj(),Ho=Bde.endianness()=="BE";function xj(r){return Math.pow(2,Math.ceil(Math.log(r)/Math.LN2))}function Lt(r){this.buf=Buffer.alloc(xj(r||8192)),this.readOffset=0,this.writeOffset=0}op.Accumulator=Lt;Lt.prototype.writeAvail=function(){return this.buf.length-this.writeOffset};Lt.prototype.readAvail=function(){return this.writeOffset-this.readOffset};Lt.prototype.reserve=function(r){if(!(r0&&(this.buf.copy(this.buf,0,this.readOffset,this.writeOffset),this.writeOffset-=this.readOffset,this.readOffset=0),!(r0)this.assertReadableSize(r);else if(r<0&&this.readOffset+r<0)throw new Error("advance with negative offset "+r+" would seek off the start of the buffer");this.readOffset+=r};Lt.prototype.writeByte=function(r){this.reserve(1),this.buf.writeInt8(r,this.writeOffset),++this.writeOffset};Lt.prototype.writeInt=function(r,e){switch(this.reserve(e),e){case 1:this.buf.writeInt8(r,this.writeOffset);break;case 2:Ho?this.buf.writeInt16BE(r,this.writeOffset):this.buf.writeInt16LE(r,this.writeOffset);break;case 4:Ho?this.buf.writeInt32BE(r,this.writeOffset):this.buf.writeInt32LE(r,this.writeOffset);break;default:throw new Error("unsupported integer size "+e)}this.writeOffset+=e};Lt.prototype.writeDouble=function(r){this.reserve(8),Ho?this.buf.writeDoubleBE(r,this.writeOffset):this.buf.writeDoubleLE(r,this.writeOffset),this.writeOffset+=8};var m0=0,g0=1,v0=2,y0=3,b0=4,ag=5,lg=6,Sj=7,Ej=8,Cj=9,_j=10,Pj=11,jde=12,w0=0,Tj=1,Ude=127,Wde=32767,Hde=2147483647;function Or(){wj.call(this),this.buf=new Lt,this.state=w0}$de.inherits(Or,wj);op.BunserBuf=Or;Or.prototype.append=function(r,e){if(e)return this.buf.append(r),this.process(e);try{this.buf.append(r)}catch(t){this.emit("error",t);return}this.processLater()};Or.prototype.processLater=function(){var r=this;process.nextTick(function(){try{r.process(!1)}catch(e){r.emit("error",e)}})};Or.prototype.process=function(r){if(this.state==w0){if(this.buf.readAvail()<2)return;if(this.expectCode(0),this.expectCode(1),this.pduLen=this.decodeInt(!0),this.pduLen===!1){this.buf.readAdvance(-2);return}this.buf.reserve(this.pduLen),this.state=Tj}if(this.state==Tj){if(this.buf.readAvail()0&&this.processLater()};Or.prototype.raise=function(r){throw new Error(r+", in Buffer of length "+this.buf.buf.length+" ("+this.buf.readAvail()+" readable) at offset "+this.buf.readOffset+" buffer: "+JSON.stringify(this.buf.buf.slice(this.buf.readOffset,this.buf.readOffset+32).toJSON()))};Or.prototype.expectCode=function(r){var e=this.buf.readInt(1);e!=r&&this.raise("expected bser opcode "+r+" but got "+e)};Or.prototype.decodeAny=function(){var r=this.buf.peekInt(1);switch(r){case y0:case b0:case ag:case lg:return this.decodeInt();case Sj:return this.buf.readAdvance(1),this.buf.readDouble();case Ej:return this.buf.readAdvance(1),!0;case Cj:return this.buf.readAdvance(1),!1;case _j:return this.buf.readAdvance(1),null;case v0:return this.decodeString();case m0:return this.decodeArray();case g0:return this.decodeObject();case Pj:return this.decodeTemplate();default:this.raise("unhandled bser opcode "+r)}};Or.prototype.decodeArray=function(){this.expectCode(m0);for(var r=this.decodeInt(),e=[],t=0;t{"use strict";var Vde=require("net"),Fj=require("events").EventEmitter,Kde=require("util"),Jde=require("child_process"),Aj=kj(),Oj=["subscription","log"];function Kn(r){var e=this;Fj.call(this),this.watchmanBinaryPath="watchman",r&&r.watchmanBinaryPath&&(this.watchmanBinaryPath=r.watchmanBinaryPath.trim()),this.commands=[]}Kde.inherits(Kn,Fj);Ij.exports.Client=Kn;Kn.prototype.sendNextCommand=function(){this.currentCommand||(this.currentCommand=this.commands.shift(),!!this.currentCommand&&this.socket.write(Aj.dumpToBuffer(this.currentCommand.cmd)))};Kn.prototype.cancelCommands=function(r){var e=new Error(r),t=this.commands;this.commands=[],this.currentCommand&&(t.unshift(this.currentCommand),this.currentCommand=null),t.forEach(function(i){i.cb(e)})};Kn.prototype.connect=function(){var r=this;function e(l){r.bunser=new Aj.BunserBuf,r.bunser.on("value",function(u){for(var c=!1,f=0;f=0:!1}Kn.prototype._synthesizeCapabilityCheck=function(r,e,t){r.capabilities={};var i=r.version;return e.forEach(function(n){r.capabilities[n]=Mj(i,n)}),t.forEach(function(n){var o=Mj(i,n);r.capabilities[n]=o,o||(r.error="client required capability `"+n+"` is not supported by this server")}),r};Kn.prototype.capabilityCheck=function(r,e){var t=r.optional||[],i=r.required||[],n=this;this.command(["version",{optional:t,required:i}],function(o,s){if(o){e(o);return}if(!("capabilities"in s)&&(s=n._synthesizeCapabilityCheck(s,t,i),s.error)){o=new Error(s.error),o.watchmanResponse=s,e(o);return}e(null,s)})};Kn.prototype.end=function(){this.cancelCommands("The client was ended"),this.socket&&(this.socket.end(),this.socket=null),this.bunser=null}});var lU=v(oa=>{oa.parse=oa.decode=lhe;oa.stringify=oa.encode=oU;oa.safe=eu;oa.unsafe=vg;var A0=typeof process!="undefined"&&process.platform==="win32"?`\r
-`:`
-`;function oU(r,e){var t=[],i="";typeof e=="string"?e={section:e,whitespace:!1}:(e=e||{},e.whitespace=e.whitespace===!0);var n=e.whitespace?" = ":"=";return Object.keys(r).forEach(function(o,s,a){var l=r[o];l&&Array.isArray(l)?l.forEach(function(u){i+=eu(o+"[]")+n+eu(u)+`
-`}):l&&typeof l=="object"?t.push(o):i+=eu(o)+n+eu(l)+A0}),e.section&&i.length&&(i="["+eu(e.section)+"]"+A0+i),t.forEach(function(o,s,a){var l=sU(o).join("\\."),u=(e.section?e.section+".":"")+l,c=oU(r[o],{section:u,whitespace:e.whitespace});i.length&&c.length&&(i+=A0),i+=c}),i}function sU(r){return r.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(function(e){return e.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")})}function lhe(r){var e={},t=e,i=null,n=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,o=r.split(/[\r\n]+/g);return o.forEach(function(s,a,l){if(!(!s||s.match(/^\s*[;#]/))){var u=s.match(n);if(!!u){if(u[1]!==void 0){i=vg(u[1]),t=e[i]=e[i]||{};return}var c=vg(u[2]),f=u[3]?vg(u[4]):!0;switch(f){case"true":case"false":case"null":f=JSON.parse(f)}c.length>2&&c.slice(-2)==="[]"&&(c=c.substring(0,c.length-2),t[c]?Array.isArray(t[c])||(t[c]=[t[c]]):t[c]=[]),Array.isArray(t[c])?t[c].push(f):t[c]=f}}}),Object.keys(e).filter(function(s,a,l){if(!e[s]||typeof e[s]!="object"||Array.isArray(e[s]))return!1;var u=sU(s),c=e,f=u.pop(),p=f.replace(/\\\./g,".");return u.forEach(function(d,h,m){(!c[d]||typeof c[d]!="object")&&(c[d]={}),c=c[d]}),c===e&&p===f?!1:(c[p]=e[s],!0)}).forEach(function(s,a,l){delete e[s]}),e}function aU(r){return r.charAt(0)==='"'&&r.slice(-1)==='"'||r.charAt(0)==="'"&&r.slice(-1)==="'"}function eu(r){return typeof r!="string"||r.match(/[=\r\n]/)||r.match(/^\[/)||r.length>1&&aU(r)||r!==r.trim()?JSON.stringify(r):r.replace(/;/g,"\\;").replace(/#/g,"\\#")}function vg(r,e){if(r=(r||"").trim(),aU(r)){r.charAt(0)==="'"&&(r=r.substr(1,r.length-2));try{r=JSON.parse(r)}catch(a){}}else{for(var t=!1,i="",n=0,o=r.length;n{"use strict";var O0=1,cU=2;function uhe(){return""}function che(r,e,t){return r.slice(e,t).replace(/\S/g," ")}uU.exports=function(r,e){e=e||{};for(var t,i,n=!1,o=!1,s=0,a="",l=e.whitespace===!1?uhe:che,u=0;u{"use strict";var pU=require("fs"),fhe=lU(),pp=require("path"),phe=fU(),dhe=tu.parse=function(r){return/^\s*{/.test(r)?JSON.parse(phe(r)):fhe.parse(r)},hhe=tu.file=function(){var r=[].slice.call(arguments).filter(function(n){return n!=null});for(var e in r)if(typeof r[e]!="string")return;var t=pp.join.apply(null,r),i;try{return pU.readFileSync(t,"utf-8")}catch(n){return}},MAe=tu.json=function(){var r=hhe.apply(null,arguments);return r?dhe(r):null},NAe=tu.env=function(r,e){e=e||process.env;var t={},i=r.length;for(var n in e)if(n.toLowerCase().indexOf(r.toLowerCase())===0){for(var o=n.substring(i).split("__"),s;(s=o.indexOf(""))>-1;)o.splice(s,1);var a=t;o.forEach(function(u,c){!u||typeof a!="object"||(c===o.length-1&&(a[u]=e[n]),a[u]===void 0&&(a[u]={}),a=a[u])})}return t},qAe=tu.find=function(){var r=pp.join.apply(null,[].slice.call(arguments));function e(t,i){var n=pp.join(t,i);try{return pU.statSync(n),n}catch(o){if(pp.dirname(t)!==t)return e(pp.dirname(t),i)}}return e(process.cwd(),r)}});var bU=v((BAe,hU)=>{"use strict";function mU(r){return r instanceof Buffer||r instanceof Date||r instanceof RegExp}function gU(r){if(r instanceof Buffer){var e=Buffer.alloc?Buffer.alloc(r.length):new Buffer(r.length);return r.copy(e),e}else{if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp)return new RegExp(r);throw new Error("Unexpected situation")}}function vU(r){var e=[];return r.forEach(function(t,i){typeof t=="object"&&t!==null?Array.isArray(t)?e[i]=vU(t):mU(t)?e[i]=gU(t):e[i]=L0({},t):e[i]=t}),e}function yU(r,e){return e==="__proto__"?void 0:r[e]}var L0=hU.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var r=arguments[0],e=Array.prototype.slice.call(arguments,1),t,i,n;return e.forEach(function(o){typeof o!="object"||o===null||Array.isArray(o)||Object.keys(o).forEach(function(s){if(i=yU(r,s),t=yU(o,s),t!==r)if(typeof t!="object"||t===null){r[s]=t;return}else if(Array.isArray(t)){r[s]=vU(t);return}else if(mU(t)){r[s]=gU(t);return}else if(typeof i!="object"||i===null||Array.isArray(i)){r[s]=L0({},t);return}else{r[s]=L0(i,t);return}})}),r}});var DU=v((jAe,wU)=>{wU.exports=function(r,e){e||(e={});var t={bools:{},strings:{},unknownFn:null};typeof e.unknown=="function"&&(t.unknownFn=e.unknown),typeof e.boolean=="boolean"&&e.boolean?t.allBools=!0:[].concat(e.boolean).filter(Boolean).forEach(function(E){t.bools[E]=!0});var i={};Object.keys(e.alias||{}).forEach(function(E){i[E]=[].concat(e.alias[E]),i[E].forEach(function(P){i[P]=[E].concat(i[E].filter(function(k){return P!==k}))})}),[].concat(e.string).filter(Boolean).forEach(function(E){t.strings[E]=!0,i[E]&&(t.strings[i[E]]=!0)});var n=e.default||{},o={_:[]};Object.keys(t.bools).forEach(function(E){l(E,n[E]===void 0?!1:n[E])});var s=[];r.indexOf("--")!==-1&&(s=r.slice(r.indexOf("--")+1),r=r.slice(0,r.indexOf("--")));function a(E,P){return t.allBools&&/^--[^=]+$/.test(P)||t.strings[E]||t.bools[E]||i[E]}function l(E,P,k){if(!(k&&t.unknownFn&&!a(E,k)&&t.unknownFn(k)===!1)){var _=!t.strings[E]&&xU(P)?Number(P):P;u(o,E.split("."),_),(i[E]||[]).forEach(function(L){u(o,L.split("."),_)})}}function u(E,P,k){for(var _=E,L=0;L{var dp=dU(),ru=require("path").join,ghe=bU(),EU="/etc",CU=process.platform==="win32",hp=CU?process.env.USERPROFILE:process.env.HOME;SU.exports=function(r,e,t,i){if(typeof r!="string")throw new Error("rc(name): name *must* be string");t||(t=DU()(process.argv.slice(2))),e=(typeof e=="string"?dp.json(e):e)||{},i=i||dp.parse;var n=dp.env(r+"_"),o=[e],s=[];function a(l){if(!(s.indexOf(l)>=0)){var u=dp.file(l);u&&(o.push(i(u)),s.push(l))}}return CU||[ru(EU,r,"config"),ru(EU,r+"rc")].forEach(a),hp&&[ru(hp,".config",r,"config"),ru(hp,".config",r),ru(hp,"."+r,"config"),ru(hp,"."+r+"rc")].forEach(a),a(dp.find("."+r+"rc")),n.config&&a(n.config),t.config&&a(t.config),ghe.apply(null,o.concat([n,t,s.length?{configs:s,config:s[s.length-1]}:void 0]))}});var RU=v((M0,PU)=>{var yg=require("buffer"),Yn=yg.Buffer;function TU(r,e){for(var t in r)e[t]=r[t]}Yn.from&&Yn.alloc&&Yn.allocUnsafe&&Yn.allocUnsafeSlow?PU.exports=yg:(TU(yg,M0),M0.Buffer=iu);function iu(r,e,t){return Yn(r,e,t)}TU(Yn,iu);iu.from=function(r,e,t){if(typeof r=="number")throw new TypeError("Argument must not be a number");return Yn(r,e,t)};iu.alloc=function(r,e,t){if(typeof r!="number")throw new TypeError("Argument must be a number");var i=Yn(r);return e!==void 0?typeof t=="string"?i.fill(e,t):i.fill(e):i.fill(0),i};iu.allocUnsafe=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return Yn(r)};iu.allocUnsafeSlow=function(r){if(typeof r!="number")throw new TypeError("Argument must be a number");return yg.SlowBuffer(r)}});var LU=v((WAe,N0)=>{"use strict";N0.exports=vhe;N0.exports.parse=yhe;var kU=require("path").basename,bhe=RU().Buffer,whe=/[\x00-\x20"'()*,/:;<=>?@[\\\]{}\x7f]/g,xhe=/%[0-9A-Fa-f]{2}/,Dhe=/%([0-9A-Fa-f]{2})/g,IU=/[^\x20-\x7e\xa0-\xff]/g,She=/\\([\u0000-\u007f])/g,Ehe=/([\\"])/g,FU=/;[\x09\x20]*([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*=[\x09\x20]*("(?:[\x20!\x23-\x5b\x5d-\x7e\x80-\xff]|\\[\x20-\x7e])*"|[!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*/g,Che=/^[\x20-\x7e\x80-\xff]+$/,_he=/^[!#$%&'*+.0-9A-Z^_`a-z|~-]+$/,Phe=/^([A-Za-z0-9!#$%&+\-^_`{}~]+)'(?:[A-Za-z]{2,3}(?:-[A-Za-z]{3}){0,3}|[A-Za-z]{4,8}|)'((?:%[0-9A-Fa-f]{2}|[A-Za-z0-9!#$&+.^_`|~-])+)$/,The=/^([!#$%&'*+.0-9A-Z^_`a-z|~-]+)[\x09\x20]*(?:$|;)/;function vhe(r,e){var t=e||{},i=t.type||"attachment",n=Rhe(r,t.fallback);return khe(new AU(i,n))}function Rhe(r,e){if(r!==void 0){var t={};if(typeof r!="string")throw new TypeError("filename must be a string");if(e===void 0&&(e=!0),typeof e!="string"&&typeof e!="boolean")throw new TypeError("fallback must be a string or boolean");if(typeof e=="string"&&IU.test(e))throw new TypeError("fallback must be ISO-8859-1 string");var i=kU(r),n=Che.test(i),o=typeof e!="string"?e&&OU(i):kU(e),s=typeof o=="string"&&o!==i;return(s||!n||xhe.test(i))&&(t["filename*"]=i),(n||s)&&(t.filename=s?o:i),t}}function khe(r){var e=r.parameters,t=r.type;if(!t||typeof t!="string"||!_he.test(t))throw new TypeError("invalid type");var i=String(t).toLowerCase();if(e&&typeof e=="object")for(var n,o=Object.keys(e).sort(),s=0;s{var q0;try{q0=vt()("follow-redirects")}catch(r){q0=function(){}}MU.exports=q0});var W0=v((zAe,$0)=>{var nu=require("url"),B0=nu.URL,Mhe=require("http"),Nhe=require("https"),qU=require("stream").Writable,qhe=require("assert"),$U=NU(),j0=Object.create(null);["abort","aborted","connect","error","socket","timeout"].forEach(function(r){j0[r]=function(e,t,i){this._redirectable.emit(r,e,t,i)}});var $he=bg("ERR_FR_REDIRECTION_FAILURE",""),Bhe=bg("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),jhe=bg("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Uhe=bg("ERR_STREAM_WRITE_AFTER_END","write after end");function Ti(r,e){qU.call(this),this._sanitizeOptions(r),this._options=r,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var t=this;this._onNativeResponse=function(i){t._processResponse(i)},this._performRequest()}Ti.prototype=Object.create(qU.prototype);Ti.prototype.write=function(r,e,t){if(this._ending)throw new Uhe;if(!(typeof r=="string"||typeof r=="object"&&"length"in r))throw new TypeError("data should be a string, Buffer or Uint8Array");if(typeof e=="function"&&(t=e,e=null),r.length===0){t&&t();return}this._requestBodyLength+r.length<=this._options.maxBodyLength?(this._requestBodyLength+=r.length,this._requestBodyBuffers.push({data:r,encoding:e}),this._currentRequest.write(r,e,t)):(this.emit("error",new jhe),this.abort())};Ti.prototype.end=function(r,e,t){if(typeof r=="function"?(t=r,r=e=null):typeof e=="function"&&(t=e,e=null),!r)this._ended=this._ending=!0,this._currentRequest.end(null,null,t);else{var i=this,n=this._currentRequest;this.write(r,e,function(){i._ended=!0,n.end(null,null,t)}),this._ending=!0}};Ti.prototype.setHeader=function(r,e){this._options.headers[r]=e,this._currentRequest.setHeader(r,e)};Ti.prototype.removeHeader=function(r){delete this._options.headers[r],this._currentRequest.removeHeader(r)};Ti.prototype.setTimeout=function(r,e){if(e&&this.once("timeout",e),this.socket)BU(this,r);else{var t=this;this._currentRequest.once("socket",function(){BU(t,r)})}return this.once("response",jU),this.once("error",jU),this};function BU(r,e){clearTimeout(r._timeout),r._timeout=setTimeout(function(){r.emit("timeout")},e)}function jU(){clearTimeout(this._timeout)}["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(r){Ti.prototype[r]=function(e,t){return this._currentRequest[r](e,t)}});["aborted","connection","socket"].forEach(function(r){Object.defineProperty(Ti.prototype,r,{get:function(){return this._currentRequest[r]}})});Ti.prototype._sanitizeOptions=function(r){if(r.headers||(r.headers={}),r.host&&(r.hostname||(r.hostname=r.host),delete r.host),!r.pathname&&r.path){var e=r.path.indexOf("?");e<0?r.pathname=r.path:(r.pathname=r.path.substring(0,e),r.search=r.path.substring(e))}};Ti.prototype._performRequest=function(){var r=this._options.protocol,e=this._options.nativeProtocols[r];if(!e){this.emit("error",new TypeError("Unsupported protocol "+r));return}if(this._options.agents){var t=r.substr(0,r.length-1);this._options.agent=this._options.agents[t]}var i=this._currentRequest=e.request(this._options,this._onNativeResponse);this._currentUrl=nu.format(this._options),i._redirectable=this;for(var n in j0)n&&i.on(n,j0[n]);if(this._isRedirect){var o=0,s=this,a=this._requestBodyBuffers;(function l(u){if(i===s._currentRequest)if(u)s.emit("error",u);else if(o=300&&e<400){if(this._currentRequest.removeAllListeners(),this._currentRequest.on("error",Whe),this._currentRequest.abort(),r.destroy(),++this._redirectCount>this._options.maxRedirects){this.emit("error",new Bhe);return}((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],U0(/^content-/i,this._options.headers));var i=U0(/^host$/i,this._options.headers)||nu.parse(this._currentUrl).hostname,n=nu.resolve(this._currentUrl,t);$U("redirecting to",n),this._isRedirect=!0;var o=nu.parse(n);if(Object.assign(this._options,o),o.hostname!==i&&U0(/^authorization$/i,this._options.headers),typeof this._options.beforeRedirect=="function"){var s={headers:r.headers};try{this._options.beforeRedirect.call(null,this._options,s)}catch(l){this.emit("error",l);return}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(l){var a=new $he("Redirected request failed: "+l.message);a.cause=l,this.emit("error",a)}}else r.responseUrl=this._currentUrl,r.redirects=this._redirects,this.emit("response",r),this._requestBodyBuffers=[]};function WU(r){var e={maxRedirects:21,maxBodyLength:10*1024*1024},t={};return Object.keys(r).forEach(function(i){var n=i+":",o=t[n]=r[i],s=e[i]=Object.create(o);s.request=function(a,l,u){if(typeof a=="string"){var c=a;try{a=UU(new B0(c))}catch(f){a=nu.parse(c)}}else B0&&a instanceof B0?a=UU(a):(u=l,l=a,a={protocol:n});return typeof l=="function"&&(u=l,l=null),l=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},a,l),l.nativeProtocols=t,qhe.equal(l.protocol,n,"protocol mismatch"),$U("options",l),new Ti(l,u)},s.get=function(a,l,u){var c=s.request(a,l,u);return c.end(),c}}),e}function Whe(){}function UU(r){var e={protocol:r.protocol,hostname:r.hostname.startsWith("[")?r.hostname.slice(1,-1):r.hostname,hash:r.hash,search:r.search,pathname:r.pathname,path:r.pathname+r.search,href:r.href};return r.port!==""&&(e.port=Number(r.port)),e}function U0(r,e){var t;for(var i in e)r.test(i)&&(t=e[i],delete e[i]);return t}function bg(r,e){function t(i){Error.captureStackTrace(this,this.constructor),this.message=i||e}return t.prototype=new Error,t.prototype.constructor=t,t.prototype.name="Error ["+r+"]",t.prototype.code=r,t}$0.exports=WU({http:Mhe,https:Nhe});$0.exports.wrap=WU});var ou=v((VAe,HU)=>{"use strict";var zU=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]),GAe=HU.exports=r=>r?Object.keys(r).map(e=>[zU.has(e)?zU.get(e):e,r[e]]).reduce((e,t)=>(e[t[0]]=t[1],e),Object.create(null)):{}});var VU=v((KAe,GU)=>{"use strict";GU.exports=function(r){r.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}});var wg=v((JAe,KU)=>{"use strict";KU.exports=Ae;Ae.Node=sa;Ae.create=Ae;function Ae(r){var e=this;if(e instanceof Ae||(e=new Ae),e.tail=null,e.head=null,e.length=0,r&&typeof r.forEach=="function")r.forEach(function(n){e.push(n)});else if(arguments.length>0)for(var t=0,i=arguments.length;t1)t=e;else if(this.head)i=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=0;i!==null;n++)t=r(t,i.value,n),i=i.next;return t};Ae.prototype.reduceReverse=function(r,e){var t,i=this.tail;if(arguments.length>1)t=e;else if(this.tail)i=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var n=this.length-1;i!==null;n--)t=r(t,i.value,n),i=i.prev;return t};Ae.prototype.toArray=function(){for(var r=new Array(this.length),e=0,t=this.head;t!==null;e++)r[e]=t.value,t=t.next;return r};Ae.prototype.toArrayReverse=function(){for(var r=new Array(this.length),e=0,t=this.tail;t!==null;e++)r[e]=t.value,t=t.prev;return r};Ae.prototype.slice=function(r,e){e=e||this.length,e<0&&(e+=this.length),r=r||0,r<0&&(r+=this.length);var t=new Ae;if(ethis.length&&(e=this.length);for(var i=0,n=this.head;n!==null&&ithis.length&&(e=this.length);for(var i=this.length,n=this.tail;n!==null&&i>e;i--)n=n.prev;for(;n!==null&&i>r;i--,n=n.prev)t.push(n.value);return t};Ae.prototype.splice=function(r,e,...t){r>this.length&&(r=this.length-1),r<0&&(r=this.length+r);for(var i=0,n=this.head;n!==null&&i{"use strict";var Vhe=require("events"),YU=require("stream"),mp=wg(),XU=require("string_decoder").StringDecoder,Xn=Symbol("EOF"),gp=Symbol("maybeEmitEnd"),Vo=Symbol("emittedEnd"),xg=Symbol("emittingEnd"),Dg=Symbol("closed"),ZU=Symbol("read"),QU=Symbol("flush"),e6=Symbol("flushChunk"),Lr=Symbol("encoding"),Zn=Symbol("decoder"),Sg=Symbol("flowing"),vp=Symbol("paused"),yp=Symbol("resume"),Mr=Symbol("bufferLength"),t6=Symbol("bufferPush"),H0=Symbol("bufferShift"),ur=Symbol("objectMode"),cr=Symbol("destroyed"),r6=global._MP_NO_ITERATOR_SYMBOLS_!=="1",Khe=r6&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),Jhe=r6&&Symbol.iterator||Symbol("iterator not implemented"),i6=r=>r==="end"||r==="finish"||r==="prefinish",Yhe=r=>r instanceof ArrayBuffer||typeof r=="object"&&r.constructor&&r.constructor.name==="ArrayBuffer"&&r.byteLength>=0,Xhe=r=>!Buffer.isBuffer(r)&&ArrayBuffer.isView(r);JU.exports=class n6 extends YU{constructor(e){super();this[Sg]=!1,this[vp]=!1,this.pipes=new mp,this.buffer=new mp,this[ur]=e&&e.objectMode||!1,this[ur]?this[Lr]=null:this[Lr]=e&&e.encoding||null,this[Lr]==="buffer"&&(this[Lr]=null),this[Zn]=this[Lr]?new XU(this[Lr]):null,this[Xn]=!1,this[Vo]=!1,this[xg]=!1,this[Dg]=!1,this.writable=!0,this.readable=!0,this[Mr]=0,this[cr]=!1}get bufferLength(){return this[Mr]}get encoding(){return this[Lr]}set encoding(e){if(this[ur])throw new Error("cannot set encoding in objectMode");if(this[Lr]&&e!==this[Lr]&&(this[Zn]&&this[Zn].lastNeed||this[Mr]))throw new Error("cannot change encoding");this[Lr]!==e&&(this[Zn]=e?new XU(e):null,this.buffer.length&&(this.buffer=this.buffer.map(t=>this[Zn].write(t)))),this[Lr]=e}setEncoding(e){this.encoding=e}get objectMode(){return this[ur]}set objectMode(e){this[ur]=this[ur]||!!e}write(e,t,i){if(this[Xn])throw new Error("write after end");if(this[cr])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;if(typeof t=="function"&&(i=t,t="utf8"),t||(t="utf8"),!this[ur]&&!Buffer.isBuffer(e)&&(Xhe(e)?e=Buffer.from(e.buffer,e.byteOffset,e.byteLength):Yhe(e)?e=Buffer.from(e):typeof e!="string"&&(this.objectMode=!0)),!this.objectMode&&!e.length){let n=this.flowing;return this[Mr]!==0&&this.emit("readable"),i&&i(),n}typeof e=="string"&&!this[ur]&&!(t===this[Lr]&&!this[Zn].lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Lr]&&(e=this[Zn].write(e));try{return this.flowing?(this.emit("data",e),this.flowing):(this[t6](e),!1)}finally{this[Mr]!==0&&this.emit("readable"),i&&i()}}read(e){if(this[cr])return null;try{return this[Mr]===0||e===0||e>this[Mr]?null:(this[ur]&&(e=null),this.buffer.length>1&&!this[ur]&&(this.encoding?this.buffer=new mp([Array.from(this.buffer).join("")]):this.buffer=new mp([Buffer.concat(Array.from(this.buffer),this[Mr])])),this[ZU](e||null,this.buffer.head.value))}finally{this[gp]()}}[ZU](e,t){return e===t.length||e===null?this[H0]():(this.buffer.head.value=t.slice(e),t=t.slice(0,e),this[Mr]-=e),this.emit("data",t),!this.buffer.length&&!this[Xn]&&this.emit("drain"),t}end(e,t,i){return typeof e=="function"&&(i=e,e=null),typeof t=="function"&&(i=t,t="utf8"),e&&this.write(e,t),i&&this.once("end",i),this[Xn]=!0,this.writable=!1,(this.flowing||!this[vp])&&this[gp](),this}[yp](){this[cr]||(this[vp]=!1,this[Sg]=!0,this.emit("resume"),this.buffer.length?this[QU]():this[Xn]?this[gp]():this.emit("drain"))}resume(){return this[yp]()}pause(){this[Sg]=!1,this[vp]=!0}get destroyed(){return this[cr]}get flowing(){return this[Sg]}get paused(){return this[vp]}[t6](e){return this[ur]?this[Mr]+=1:this[Mr]+=e.length,this.buffer.push(e)}[H0](){return this.buffer.length&&(this[ur]?this[Mr]-=1:this[Mr]-=this.buffer.head.value.length),this.buffer.shift()}[QU](){do;while(this[e6](this[H0]()));!this.buffer.length&&!this[Xn]&&this.emit("drain")}[e6](e){return e?(this.emit("data",e),this.flowing):!1}pipe(e,t){if(this[cr])return;let i=this[Vo];t=t||{},e===process.stdout||e===process.stderr?t.end=!1:t.end=t.end!==!1;let n={dest:e,opts:t,ondrain:o=>this[yp]()};return this.pipes.push(n),e.on("drain",n.ondrain),this[yp](),i&&n.opts.end&&n.dest.end(),e}addListener(e,t){return this.on(e,t)}on(e,t){try{return super.on(e,t)}finally{e==="data"&&!this.pipes.length&&!this.flowing?this[yp]():i6(e)&&this[Vo]&&(super.emit(e),this.removeAllListeners(e))}}get emittedEnd(){return this[Vo]}[gp](){!this[xg]&&!this[Vo]&&!this[cr]&&this.buffer.length===0&&this[Xn]&&(this[xg]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Dg]&&this.emit("close"),this[xg]=!1)}emit(e,t){if(e!=="error"&&e!=="close"&&e!==cr&&this[cr])return;if(e==="data"){if(!t)return;this.pipes.length&&this.pipes.forEach(n=>n.dest.write(t)===!1&&this.pause())}else if(e==="end"){if(this[Vo]===!0)return;this[Vo]=!0,this.readable=!1,this[Zn]&&(t=this[Zn].end(),t&&(this.pipes.forEach(n=>n.dest.write(t)),super.emit("data",t))),this.pipes.forEach(n=>{n.dest.removeListener("drain",n.ondrain),n.opts.end&&n.dest.end()})}else if(e==="close"&&(this[Dg]=!0,!this[Vo]&&!this[cr]))return;let i=new Array(arguments.length);if(i[0]=e,i[1]=t,arguments.length>2)for(let n=2;n{e.push(i),this[ur]||(e.dataLength+=i.length)}),t.then(()=>e)}concat(){return this[ur]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then(e=>this[ur]?Promise.reject(new Error("cannot concat in objectMode")):this[Lr]?e.join(""):Buffer.concat(e,e.dataLength))}promise(){return new Promise((e,t)=>{this.on(cr,()=>t(new Error("stream destroyed"))),this.on("end",()=>e()),this.on("error",i=>t(i))})}[Khe](){return{next:()=>{let t=this.read();if(t!==null)return Promise.resolve({done:!1,value:t});if(this[Xn])return Promise.resolve({done:!0});let i=null,n=null,o=u=>{this.removeListener("data",s),this.removeListener("end",a),n(u)},s=u=>{this.removeListener("error",o),this.removeListener("end",a),this.pause(),i({value:u,done:!!this[Xn]})},a=()=>{this.removeListener("error",o),this.removeListener("data",s),i({done:!0})},l=()=>o(new Error("stream destroyed"));return new Promise((u,c)=>{n=c,i=u,this.once(cr,l),this.once("error",o),this.once("end",a),this.once("data",s)})}}}[Jhe](){return{next:()=>{let t=this.read();return{value:t,done:t===null}}}}destroy(e){return this[cr]?(e?this.emit("error",e):this.emit(cr),this):(this[cr]=!0,this.buffer=new mp,this[Mr]=0,typeof this.close=="function"&&!this[Dg]&&this.close(),e?this.emit("error",e):this.emit(cr),this)}static isStream(e){return!!e&&(e instanceof n6||e instanceof YU||e instanceof Vhe&&(typeof e.pipe=="function"||typeof e.write=="function"&&typeof e.end=="function"))}}});var s6=v((XAe,o6)=>{var Zhe=require("zlib").constants||{ZLIB_VERNUM:4736};o6.exports=Object.freeze(Object.assign(Object.create(null),{Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_VERSION_ERROR:-6,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,DEFLATE:1,INFLATE:2,GZIP:3,GUNZIP:4,DEFLATERAW:5,INFLATERAW:6,UNZIP:7,BROTLI_DECODE:8,BROTLI_ENCODE:9,Z_MIN_WINDOWBITS:8,Z_MAX_WINDOWBITS:15,Z_DEFAULT_WINDOWBITS:15,Z_MIN_CHUNK:64,Z_MAX_CHUNK:Infinity,Z_DEFAULT_CHUNK:16384,Z_MIN_MEMLEVEL:1,Z_MAX_MEMLEVEL:9,Z_DEFAULT_MEMLEVEL:8,Z_MIN_LEVEL:-1,Z_MAX_LEVEL:9,Z_DEFAULT_LEVEL:-1,BROTLI_OPERATION_PROCESS:0,BROTLI_OPERATION_FLUSH:1,BROTLI_OPERATION_FINISH:2,BROTLI_OPERATION_EMIT_METADATA:3,BROTLI_MODE_GENERIC:0,BROTLI_MODE_TEXT:1,BROTLI_MODE_FONT:2,BROTLI_DEFAULT_MODE:0,BROTLI_MIN_QUALITY:0,BROTLI_MAX_QUALITY:11,BROTLI_DEFAULT_QUALITY:11,BROTLI_MIN_WINDOW_BITS:10,BROTLI_MAX_WINDOW_BITS:24,BROTLI_LARGE_MAX_WINDOW_BITS:30,BROTLI_DEFAULT_WINDOW:22,BROTLI_MIN_INPUT_BLOCK_BITS:16,BROTLI_MAX_INPUT_BLOCK_BITS:24,BROTLI_PARAM_MODE:0,BROTLI_PARAM_QUALITY:1,BROTLI_PARAM_LGWIN:2,BROTLI_PARAM_LGBLOCK:3,BROTLI_PARAM_DISABLE_LITERAL_CONTEXT_MODELING:4,BROTLI_PARAM_SIZE_HINT:5,BROTLI_PARAM_LARGE_WINDOW:6,BROTLI_PARAM_NPOSTFIX:7,BROTLI_PARAM_NDIRECT:8,BROTLI_DECODER_RESULT_ERROR:0,BROTLI_DECODER_RESULT_SUCCESS:1,BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT:2,BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_PARAM_DISABLE_RING_BUFFER_REALLOCATION:0,BROTLI_DECODER_PARAM_LARGE_WINDOW:1,BROTLI_DECODER_NO_ERROR:0,BROTLI_DECODER_SUCCESS:1,BROTLI_DECODER_NEEDS_MORE_INPUT:2,BROTLI_DECODER_NEEDS_MORE_OUTPUT:3,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_NIBBLE:-1,BROTLI_DECODER_ERROR_FORMAT_RESERVED:-2,BROTLI_DECODER_ERROR_FORMAT_EXUBERANT_META_NIBBLE:-3,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_ALPHABET:-4,BROTLI_DECODER_ERROR_FORMAT_SIMPLE_HUFFMAN_SAME:-5,BROTLI_DECODER_ERROR_FORMAT_CL_SPACE:-6,BROTLI_DECODER_ERROR_FORMAT_HUFFMAN_SPACE:-7,BROTLI_DECODER_ERROR_FORMAT_CONTEXT_MAP_REPEAT:-8,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_1:-9,BROTLI_DECODER_ERROR_FORMAT_BLOCK_LENGTH_2:-10,BROTLI_DECODER_ERROR_FORMAT_TRANSFORM:-11,BROTLI_DECODER_ERROR_FORMAT_DICTIONARY:-12,BROTLI_DECODER_ERROR_FORMAT_WINDOW_BITS:-13,BROTLI_DECODER_ERROR_FORMAT_PADDING_1:-14,BROTLI_DECODER_ERROR_FORMAT_PADDING_2:-15,BROTLI_DECODER_ERROR_FORMAT_DISTANCE:-16,BROTLI_DECODER_ERROR_DICTIONARY_NOT_SET:-19,BROTLI_DECODER_ERROR_INVALID_ARGUMENTS:-20,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MODES:-21,BROTLI_DECODER_ERROR_ALLOC_TREE_GROUPS:-22,BROTLI_DECODER_ERROR_ALLOC_CONTEXT_MAP:-25,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_1:-26,BROTLI_DECODER_ERROR_ALLOC_RING_BUFFER_2:-27,BROTLI_DECODER_ERROR_ALLOC_BLOCK_TYPE_TREES:-30,BROTLI_DECODER_ERROR_UNREACHABLE:-31},Zhe))});var Q0=v(ti=>{"use strict";var z0=require("assert"),Ko=require("buffer").Buffer,a6=require("zlib"),aa=ti.constants=s6(),Qhe=su(),l6=Ko.concat,la=Symbol("_superWrite"),bp=class extends Error{constructor(e){super("zlib: "+e.message);this.code=e.code,this.errno=e.errno,this.code||(this.code="ZLIB_ERROR"),this.message="zlib: "+e.message,Error.captureStackTrace(this,this.constructor)}get name(){return"ZlibError"}},eme=Symbol("opts"),wp=Symbol("flushFlag"),u6=Symbol("finishFlushFlag"),G0=Symbol("fullFlushFlag"),Ze=Symbol("handle"),Eg=Symbol("onError"),au=Symbol("sawError"),V0=Symbol("level"),K0=Symbol("strategy"),J0=Symbol("ended"),ZAe=Symbol("_defaultFullFlush"),Y0=class extends Qhe{constructor(e,t){if(!e||typeof e!="object")throw new TypeError("invalid options for ZlibBase constructor");super(e);this[au]=!1,this[J0]=!1,this[eme]=e,this[wp]=e.flush,this[u6]=e.finishFlush;try{this[Ze]=new a6[t](e)}catch(i){throw new bp(i)}this[Eg]=i=>{this[au]||(this[au]=!0,this.close(),this.emit("error",i))},this[Ze].on("error",i=>this[Eg](new bp(i))),this.once("end",()=>this.close)}close(){this[Ze]&&(this[Ze].close(),this[Ze]=null,this.emit("close"))}reset(){if(!this[au])return z0(this[Ze],"zlib binding closed"),this[Ze].reset()}flush(e){this.ended||(typeof e!="number"&&(e=this[G0]),this.write(Object.assign(Ko.alloc(0),{[wp]:e})))}end(e,t,i){return e&&this.write(e,t),this.flush(this[u6]),this[J0]=!0,super.end(null,null,i)}get ended(){return this[J0]}write(e,t,i){if(typeof t=="function"&&(i=t,t="utf8"),typeof e=="string"&&(e=Ko.from(e,t)),this[au])return;z0(this[Ze],"zlib binding closed");let n=this[Ze]._handle,o=n.close;n.close=()=>{};let s=this[Ze].close;this[Ze].close=()=>{},Ko.concat=u=>u;let a;try{let u=typeof e[wp]=="number"?e[wp]:this[wp];a=this[Ze]._processChunk(e,u),Ko.concat=l6}catch(u){Ko.concat=l6,this[Eg](new bp(u))}finally{this[Ze]&&(this[Ze]._handle=n,n.close=o,this[Ze].close=s,this[Ze].removeAllListeners("error"))}this[Ze]&&this[Ze].on("error",u=>this[Eg](new bp(u)));let l;if(a)if(Array.isArray(a)&&a.length>0){l=this[la](Ko.from(a[0]));for(let u=1;u{this.flush(n),o()};try{this[Ze].params(e,t)}finally{this[Ze].flush=i}this[Ze]&&(this[V0]=e,this[K0]=t)}}}},c6=class extends Jo{constructor(e){super(e,"Deflate")}},f6=class extends Jo{constructor(e){super(e,"Inflate")}},X0=Symbol("_portable"),p6=class extends Jo{constructor(e){super(e,"Gzip");this[X0]=e&&!!e.portable}[la](e){return this[X0]?(this[X0]=!1,e[9]=255,super[la](e)):super[la](e)}},d6=class extends Jo{constructor(e){super(e,"Gunzip")}},h6=class extends Jo{constructor(e){super(e,"DeflateRaw")}},m6=class extends Jo{constructor(e){super(e,"InflateRaw")}},g6=class extends Jo{constructor(e){super(e,"Unzip")}},Z0=class extends Y0{constructor(e,t){e=e||{},e.flush=e.flush||aa.BROTLI_OPERATION_PROCESS,e.finishFlush=e.finishFlush||aa.BROTLI_OPERATION_FINISH,super(e,t),this[G0]=aa.BROTLI_OPERATION_FLUSH}},v6=class extends Z0{constructor(e){super(e,"BrotliCompress")}},y6=class extends Z0{constructor(e){super(e,"BrotliDecompress")}};ti.Deflate=c6;ti.Inflate=f6;ti.Gzip=p6;ti.Gunzip=d6;ti.DeflateRaw=h6;ti.InflateRaw=m6;ti.Unzip=g6;typeof a6.BrotliCompress=="function"?(ti.BrotliCompress=v6,ti.BrotliDecompress=y6):ti.BrotliCompress=ti.BrotliDecompress=class{constructor(){throw new Error("Brotli is not supported in this version of Node.js")}}});var xp=v(Cg=>{"use strict";Cg.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);Cg.code=new Map(Array.from(Cg.name).map(r=>[r[1],r[0]]))});var Dp=v((iOe,b6)=>{"use strict";var tOe=xp(),tme=su(),eS=Symbol("slurp");b6.exports=class extends tme{constructor(e,t,i){super();switch(this.pause(),this.extended=t,this.globalExtended=i,this.header=e,this.startBlockSize=512*Math.ceil(e.size/512),this.blockRemain=this.startBlockSize,this.remain=e.size,this.type=e.type,this.meta=!1,this.ignore=!1,this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=!0;break;default:this.ignore=!0}this.path=e.path,this.mode=e.mode,this.mode&&(this.mode=this.mode&4095),this.uid=e.uid,this.gid=e.gid,this.uname=e.uname,this.gname=e.gname,this.size=e.size,this.mtime=e.mtime,this.atime=e.atime,this.ctime=e.ctime,this.linkpath=e.linkpath,this.uname=e.uname,this.gname=e.gname,t&&this[eS](t),i&&this[eS](i,!0)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");let i=this.remain,n=this.blockRemain;return this.remain=Math.max(0,i-t),this.blockRemain=Math.max(0,n-t),this.ignore?!0:i>=t?super.write(e):super.write(e.slice(0,i))}[eS](e,t){for(let i in e)e[i]!==null&&e[i]!==void 0&&!(t&&i==="path")&&(this[i]=e[i])}}});var D6=v(tS=>{"use strict";var nOe=tS.encode=(r,e)=>{if(Number.isSafeInteger(r))r<0?ime(r,e):rme(r,e);else throw Error("cannot encode number outside of javascript safe integer range");return e},rme=(r,e)=>{e[0]=128;for(var t=e.length;t>1;t--)e[t-1]=r&255,r=Math.floor(r/256)},ime=(r,e)=>{e[0]=255;var t=!1;r=r*-1;for(var i=e.length;i>1;i--){var n=r&255;r=Math.floor(r/256),t?e[i-1]=w6(n):n===0?e[i-1]=0:(t=!0,e[i-1]=x6(n))}},oOe=tS.parse=r=>{var e=r[r.length-1],t=r[0],i;if(t===128)i=ome(r.slice(1,r.length));else if(t===255)i=nme(r);else throw Error("invalid base256 encoding");if(!Number.isSafeInteger(i))throw Error("parsed number outside of javascript safe integer range");return i},nme=r=>{for(var e=r.length,t=0,i=!1,n=e-1;n>-1;n--){var o=r[n],s;i?s=w6(o):o===0?s=o:(i=!0,s=x6(o)),s!==0&&(t-=s*Math.pow(256,e-n-1))}return t},ome=r=>{for(var e=r.length,t=0,i=e-1;i>-1;i--){var n=r[i];n!==0&&(t+=n*Math.pow(256,e-i-1))}return t},w6=r=>(255^r)&255,x6=r=>(255^r)+1&255});var uu=v((aOe,S6)=>{"use strict";var rS=xp(),lu=require("path").posix,E6=D6(),iS=Symbol("slurp"),ri=Symbol("type"),C6=class{constructor(e,t,i,n){this.cksumValid=!1,this.needPax=!1,this.nullBlock=!1,this.block=null,this.path=null,this.mode=null,this.uid=null,this.gid=null,this.size=null,this.mtime=null,this.cksum=null,this[ri]="0",this.linkpath=null,this.uname=null,this.gname=null,this.devmaj=0,this.devmin=0,this.atime=null,this.ctime=null,Buffer.isBuffer(e)?this.decode(e,t||0,i,n):e&&this.set(e)}decode(e,t,i,n){if(t||(t=0),!e||!(e.length>=t+512))throw new Error("need 512 bytes for header");if(this.path=ua(e,t,100),this.mode=Yo(e,t+100,8),this.uid=Yo(e,t+108,8),this.gid=Yo(e,t+116,8),this.size=Yo(e,t+124,12),this.mtime=nS(e,t+136,12),this.cksum=Yo(e,t+148,12),this[iS](i),this[iS](n,!0),this[ri]=ua(e,t+156,1),this[ri]===""&&(this[ri]="0"),this[ri]==="0"&&this.path.substr(-1)==="/"&&(this[ri]="5"),this[ri]==="5"&&(this.size=0),this.linkpath=ua(e,t+157,100),e.slice(t+257,t+265).toString()==="ustar\x0000")if(this.uname=ua(e,t+265,32),this.gname=ua(e,t+297,32),this.devmaj=Yo(e,t+329,8),this.devmin=Yo(e,t+337,8),e[t+475]!==0){let s=ua(e,t+345,155);this.path=s+"/"+this.path}else{let s=ua(e,t+345,130);s&&(this.path=s+"/"+this.path),this.atime=nS(e,t+476,12),this.ctime=nS(e,t+488,12)}let o=8*32;for(let s=t;s=t+512))throw new Error("need 512 bytes for header");let i=this.ctime||this.atime?130:155,n=sme(this.path||"",i),o=n[0],s=n[1];this.needPax=n[2],this.needPax=ca(e,t,100,o)||this.needPax,this.needPax=Xo(e,t+100,8,this.mode)||this.needPax,this.needPax=Xo(e,t+108,8,this.uid)||this.needPax,this.needPax=Xo(e,t+116,8,this.gid)||this.needPax,this.needPax=Xo(e,t+124,12,this.size)||this.needPax,this.needPax=oS(e,t+136,12,this.mtime)||this.needPax,e[t+156]=this[ri].charCodeAt(0),this.needPax=ca(e,t+157,100,this.linkpath)||this.needPax,e.write("ustar\x0000",t+257,8),this.needPax=ca(e,t+265,32,this.uname)||this.needPax,this.needPax=ca(e,t+297,32,this.gname)||this.needPax,this.needPax=Xo(e,t+329,8,this.devmaj)||this.needPax,this.needPax=Xo(e,t+337,8,this.devmin)||this.needPax,this.needPax=ca(e,t+345,i,s)||this.needPax,e[t+475]!==0?this.needPax=ca(e,t+345,155,s)||this.needPax:(this.needPax=ca(e,t+345,130,s)||this.needPax,this.needPax=oS(e,t+476,12,this.atime)||this.needPax,this.needPax=oS(e,t+488,12,this.ctime)||this.needPax);let a=8*32;for(let l=t;l{let t=100,i=r,n="",o,s=lu.parse(r).root||".";if(Buffer.byteLength(i)t&&Buffer.byteLength(n)<=e?o=[i.substr(0,t-1),n,!0]:(i=lu.join(lu.basename(n),i),n=lu.dirname(n));while(n!==s&&!o);o||(o=[r.substr(0,t-1),"",!0])}return o},ua=(r,e,t)=>r.slice(e,e+t).toString("utf8").replace(/\0.*/,""),nS=(r,e,t)=>ame(Yo(r,e,t)),ame=r=>r===null?null:new Date(r*1e3),Yo=(r,e,t)=>r[e]&128?E6.parse(r.slice(e,e+t)):lme(r,e,t),ume=r=>isNaN(r)?null:r,lme=(r,e,t)=>ume(parseInt(r.slice(e,e+t).toString("utf8").replace(/\0.*$/,"").trim(),8)),cme={12:8589934591,8:2097151},Xo=(r,e,t,i)=>i===null?!1:i>cme[t]||i<0?(E6.encode(i,r.slice(e,e+t)),!0):(fme(r,e,t,i),!1),fme=(r,e,t,i)=>r.write(pme(i,t),e,t,"ascii"),pme=(r,e)=>dme(Math.floor(r).toString(8),e),dme=(r,e)=>(r.length===e-1?r:new Array(e-r.length-1).join("0")+r+" ")+"\0",oS=(r,e,t,i)=>i===null?!1:Xo(r,e,t,i.getTime()/1e3),hme=new Array(156).join("\0"),ca=(r,e,t,i)=>i===null?!1:(r.write(i+hme,e,t,"utf8"),i.length!==Buffer.byteLength(i)||i.length>t);S6.exports=C6});var Pg=v((lOe,_6)=>{"use strict";var mme=uu(),gme=require("path"),_g=class{constructor(e,t){this.atime=e.atime||null,this.charset=e.charset||null,this.comment=e.comment||null,this.ctime=e.ctime||null,this.gid=e.gid||null,this.gname=e.gname||null,this.linkpath=e.linkpath||null,this.mtime=e.mtime||null,this.path=e.path||null,this.size=e.size||null,this.uid=e.uid||null,this.uname=e.uname||null,this.dev=e.dev||null,this.ino=e.ino||null,this.nlink=e.nlink||null,this.global=t||!1}encode(){let e=this.encodeBody();if(e==="")return null;let t=Buffer.byteLength(e),i=512*Math.ceil(1+t/512),n=Buffer.allocUnsafe(i);for(let o=0;o<512;o++)n[o]=0;new mme({path:("PaxHeader/"+gme.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:t,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(n),n.write(e,512,t,"utf8");for(let o=t+512;o=Math.pow(10,o)&&(o+=1),o+n+i}};_g.parse=(r,e,t)=>new _g(vme(yme(r),e),t);var vme=(r,e)=>e?Object.keys(r).reduce((t,i)=>(t[i]=r[i],t),e):r,yme=r=>r.replace(/\n$/,"").split(`
-`).reduce(bme,Object.create(null)),bme=(r,e)=>{let t=parseInt(e,10);if(t!==Buffer.byteLength(e)+1)return r;e=e.substr((t+" ").length);let i=e.split("="),n=i.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!n)return r;let o=i.join("=");return r[n]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(n)?new Date(o*1e3):/^[0-9]+$/.test(o)?+o:o,r};_6.exports=_g});var Tg=v((uOe,P6)=>{"use strict";P6.exports=r=>class extends r{warn(e,t,i={}){this.file&&(i.file=this.file),this.cwd&&(i.cwd=this.cwd),i.code=t instanceof Error&&t.code||e,i.tarCode=e,!this.strict&&i.recoverable!==!1?(t instanceof Error&&(i=Object.assign(t,i),t=t.message),this.emit("warn",i.tarCode,t,i)):t instanceof Error?this.emit("error",Object.assign(t,i)):this.emit("error",Object.assign(new Error(`${e}: ${t}`),i))}}});var aS=v((cOe,T6)=>{"use strict";var Rg=["|","<",">","?",":"],sS=Rg.map(r=>String.fromCharCode(61440+r.charCodeAt(0))),wme=new Map(Rg.map((r,e)=>[r,sS[e]])),xme=new Map(sS.map((r,e)=>[r,Rg[e]]));T6.exports={encode:r=>Rg.reduce((e,t)=>e.split(t).join(wme.get(t)),r),decode:r=>sS.reduce((e,t)=>e.split(t).join(xme.get(t)),r)}});var k6=v((fOe,R6)=>{"use strict";R6.exports=(r,e,t)=>(r&=4095,t&&(r=(r|384)&~18),e&&(r&256&&(r|=64),r&32&&(r|=8),r&4&&(r|=1)),r)});var hS=v((gOe,I6)=>{"use strict";var F6=su(),A6=Pg(),O6=uu(),pOe=Dp(),bn=require("fs"),cu=require("path"),dOe=xp(),Dme=16*1024*1024,L6=Symbol("process"),M6=Symbol("file"),N6=Symbol("directory"),lS=Symbol("symlink"),q6=Symbol("hardlink"),Sp=Symbol("header"),kg=Symbol("read"),uS=Symbol("lstat"),Ig=Symbol("onlstat"),cS=Symbol("onread"),fS=Symbol("onreadlink"),pS=Symbol("openfile"),dS=Symbol("onopenfile"),fa=Symbol("close"),Fg=Symbol("mode"),$6=Tg(),Sme=aS(),B6=k6(),Ag=$6(class extends F6{constructor(e,t){if(t=t||{},super(t),typeof e!="string")throw new TypeError("path is required");this.path=e,this.portable=!!t.portable,this.myuid=process.getuid&&process.getuid(),this.myuser=process.env.USER||"",this.maxReadSize=t.maxReadSize||Dme,this.linkCache=t.linkCache||new Map,this.statCache=t.statCache||new Map,this.preservePaths=!!t.preservePaths,this.cwd=t.cwd||process.cwd(),this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.mtime=t.mtime||null,typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let i=!1;if(!this.preservePaths&&cu.win32.isAbsolute(e)){let n=cu.win32.parse(e);this.path=e.substr(n.root.length),i=n.root}this.win32=!!t.win32||process.platform==="win32",this.win32&&(this.path=Sme.decode(this.path.replace(/\\/g,"/")),e=e.replace(/\\/g,"/")),this.absolute=t.absolute||cu.resolve(this.cwd,e),this.path===""&&(this.path="./"),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.statCache.has(this.absolute)?this[Ig](this.statCache.get(this.absolute)):this[uS]()}[uS](){bn.lstat(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[Ig](t)})}[Ig](e){this.statCache.set(this.absolute,e),this.stat=e,e.isFile()||(e.size=0),this.type=Eme(e),this.emit("stat",e),this[L6]()}[L6](){switch(this.type){case"File":return this[M6]();case"Directory":return this[N6]();case"SymbolicLink":return this[lS]();default:return this.end()}}[Fg](e){return B6(e,this.type==="Directory",this.portable)}[Sp](){this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.header=new O6({path:this.path,linkpath:this.linkpath,mode:this[Fg](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime}),this.header.encode()&&!this.noPax&&this.write(new A6({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this.path,linkpath:this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode()),this.write(this.header.block)}[N6](){this.path.substr(-1)!=="/"&&(this.path+="/"),this.stat.size=0,this[Sp](),this.end()}[lS](){bn.readlink(this.absolute,(e,t)=>{if(e)return this.emit("error",e);this[fS](t)})}[fS](e){this.linkpath=e.replace(/\\/g,"/"),this[Sp](),this.end()}[q6](e){this.type="Link",this.linkpath=cu.relative(this.cwd,e).replace(/\\/g,"/"),this.stat.size=0,this[Sp](),this.end()}[M6](){if(this.stat.nlink>1){let e=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(e)){let t=this.linkCache.get(e);if(t.indexOf(this.cwd)===0)return this[q6](t)}this.linkCache.set(e,this.absolute)}if(this[Sp](),this.stat.size===0)return this.end();this[pS]()}[pS](){bn.open(this.absolute,"r",(e,t)=>{if(e)return this.emit("error",e);this[dS](t)})}[dS](e){let t=512*Math.ceil(this.stat.size/512),i=Math.min(t,this.maxReadSize),n=Buffer.allocUnsafe(i);this[kg](e,n,0,n.length,0,this.stat.size,t)}[kg](e,t,i,n,o,s,a){bn.read(e,t,i,n,o,(l,u)=>{if(l)return this[fa](e,()=>this.emit("error",l));this[cS](e,t,i,n,o,s,a,u)})}[fa](e,t){bn.close(e,t)}[cS](e,t,i,n,o,s,a,l){if(l<=0&&s>0){let c=new Error("encountered unexpected EOF");return c.path=this.absolute,c.syscall="read",c.code="EOF",this[fa](e,()=>this.emit("error",c))}if(l>s){let c=new Error("did not encounter expected EOF");return c.path=this.absolute,c.syscall="read",c.code="EOF",this[fa](e,()=>this.emit("error",c))}if(l===s)for(let c=l;cc?this.emit("error",c):this.end());i>=n&&(t=Buffer.allocUnsafe(n),i=0),n=t.length-i,this[kg](e,t,i,n,o,s,a)}}),j6=class extends Ag{constructor(e,t){super(e,t)}[uS](){this[Ig](bn.lstatSync(this.absolute))}[lS](){this[fS](bn.readlinkSync(this.absolute))}[pS](){this[dS](bn.openSync(this.absolute,"r"))}[kg](e,t,i,n,o,s,a){let l=!0;try{let u=bn.readSync(e,t,i,n,o);this[cS](e,t,i,n,o,s,a,u),l=!1}finally{if(l)try{this[fa](e,()=>{})}catch(u){}}}[fa](e,t){bn.closeSync(e),t()}},Cme=$6(class extends F6{constructor(e,t){t=t||{},super(t),this.preservePaths=!!t.preservePaths,this.portable=!!t.portable,this.strict=!!t.strict,this.noPax=!!t.noPax,this.noMtime=!!t.noMtime,this.readEntry=e,this.type=e.type,this.type==="Directory"&&this.portable&&(this.noMtime=!0),this.path=e.path,this.mode=this[Fg](e.mode),this.uid=this.portable?null:e.uid,this.gid=this.portable?null:e.gid,this.uname=this.portable?null:e.uname,this.gname=this.portable?null:e.gname,this.size=e.size,this.mtime=this.noMtime?null:t.mtime||e.mtime,this.atime=this.portable?null:e.atime,this.ctime=this.portable?null:e.ctime,this.linkpath=e.linkpath,typeof t.onwarn=="function"&&this.on("warn",t.onwarn);let i=!1;if(cu.isAbsolute(this.path)&&!this.preservePaths){let n=cu.parse(this.path);i=n.root,this.path=this.path.substr(n.root.length)}this.remain=e.size,this.blockRemain=e.startBlockSize,this.header=new O6({path:this.path,linkpath:this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime}),i&&this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path}),this.header.encode()&&!this.noPax&&super.write(new A6({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this.path,linkpath:this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode()),super.write(this.header.block),e.pipe(this)}[Fg](e){return B6(e,this.type==="Directory",this.portable)}write(e){let t=e.length;if(t>this.blockRemain)throw new Error("writing more to entry than is appropriate");return this.blockRemain-=t,super.write(e)}end(){return this.blockRemain&&this.write(Buffer.alloc(this.blockRemain)),super.end()}});Ag.Sync=j6;Ag.Tar=Cme;var Eme=r=>r.isFile()?"File":r.isDirectory()?"Directory":r.isSymbolicLink()?"SymbolicLink":"Unsupported";I6.exports=Ag});var jg=v((yOe,U6)=>{"use strict";var mS=class{constructor(e,t){this.path=e||"./",this.absolute=t,this.entry=null,this.stat=null,this.readdir=null,this.pending=!1,this.ignore=!1,this.piped=!1}},_me=su(),Pme=Q0(),Tme=Dp(),gS=hS(),Rme=gS.Sync,kme=gS.Tar,Ime=wg(),W6=Buffer.alloc(1024),Og=Symbol("onStat"),Lg=Symbol("ended"),wn=Symbol("queue"),fu=Symbol("current"),pa=Symbol("process"),Mg=Symbol("processing"),H6=Symbol("processJob"),xn=Symbol("jobs"),vS=Symbol("jobDone"),Ng=Symbol("addFSEntry"),z6=Symbol("addTarEntry"),yS=Symbol("stat"),bS=Symbol("readdir"),qg=Symbol("onreaddir"),$g=Symbol("pipe"),G6=Symbol("entry"),wS=Symbol("entryOpt"),xS=Symbol("writeEntryClass"),V6=Symbol("write"),DS=Symbol("ondrain"),Bg=require("fs"),K6=require("path"),Fme=Tg(),SS=Fme(class extends _me{constructor(e){super(e);e=e||Object.create(null),this.opt=e,this.file=e.file||"",this.cwd=e.cwd||process.cwd(),this.maxReadSize=e.maxReadSize,this.preservePaths=!!e.preservePaths,this.strict=!!e.strict,this.noPax=!!e.noPax,this.prefix=(e.prefix||"").replace(/(\\|\/)+$/,""),this.linkCache=e.linkCache||new Map,this.statCache=e.statCache||new Map,this.readdirCache=e.readdirCache||new Map,this[xS]=gS,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),this.portable=!!e.portable,this.zip=null,e.gzip?(typeof e.gzip!="object"&&(e.gzip={}),this.portable&&(e.gzip.portable=!0),this.zip=new Pme.Gzip(e.gzip),this.zip.on("data",t=>super.write(t)),this.zip.on("end",t=>super.end()),this.zip.on("drain",t=>this[DS]()),this.on("resume",t=>this.zip.resume())):this.on("drain",this[DS]),this.noDirRecurse=!!e.noDirRecurse,this.follow=!!e.follow,this.noMtime=!!e.noMtime,this.mtime=e.mtime||null,this.filter=typeof e.filter=="function"?e.filter:t=>!0,this[wn]=new Ime,this[xn]=0,this.jobs=+e.jobs||4,this[Mg]=!1,this[Lg]=!1}[V6](e){return super.write(e)}add(e){return this.write(e),this}end(e){return e&&this.write(e),this[Lg]=!0,this[pa](),this}write(e){if(this[Lg])throw new Error("write after end");return e instanceof Tme?this[z6](e):this[Ng](e),this.flowing}[z6](e){let t=K6.resolve(this.cwd,e.path);if(this.prefix&&(e.path=this.prefix+"/"+e.path.replace(/^\.(\/+|$)/,"")),!this.filter(e.path,e))e.resume();else{let i=new mS(e.path,t,!1);i.entry=new kme(e,this[wS](i)),i.entry.on("end",n=>this[vS](i)),this[xn]+=1,this[wn].push(i)}this[pa]()}[Ng](e){let t=K6.resolve(this.cwd,e);this.prefix&&(e=this.prefix+"/"+e.replace(/^\.(\/+|$)/,"")),this[wn].push(new mS(e,t)),this[pa]()}[yS](e){e.pending=!0,this[xn]+=1;let t=this.follow?"stat":"lstat";Bg[t](e.absolute,(i,n)=>{e.pending=!1,this[xn]-=1,i?this.emit("error",i):this[Og](e,n)})}[Og](e,t){this.statCache.set(e.absolute,t),e.stat=t,this.filter(e.path,t)||(e.ignore=!0),this[pa]()}[bS](e){e.pending=!0,this[xn]+=1,Bg.readdir(e.absolute,(t,i)=>{if(e.pending=!1,this[xn]-=1,t)return this.emit("error",t);this[qg](e,i)})}[qg](e,t){this.readdirCache.set(e.absolute,t),e.readdir=t,this[pa]()}[pa](){if(!this[Mg]){this[Mg]=!0;for(let e=this[wn].head;e!==null&&this[xn]this.warn(t,i,n),noPax:this.noPax,cwd:this.cwd,absolute:e.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime}}[G6](e){this[xn]+=1;try{return new this[xS](e.path,this[wS](e)).on("end",()=>this[vS](e)).on("error",t=>this.emit("error",t))}catch(t){this.emit("error",t)}}[DS](){this[fu]&&this[fu].entry&&this[fu].entry.resume()}[$g](e){e.piped=!0,e.readdir&&e.readdir.forEach(n=>{let o=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path,s=o==="./"?"":o.replace(/\/*$/,"/");this[Ng](s+n)});let t=e.entry,i=this.zip;i?t.on("data",n=>{i.write(n)||t.pause()}):t.on("data",n=>{super.write(n)||t.pause()})}pause(){return this.zip&&this.zip.pause(),super.pause()}}),J6=class extends SS{constructor(e){super(e);this[xS]=Rme}pause(){}resume(){}[yS](e){let t=this.follow?"statSync":"lstatSync";this[Og](e,Bg[t](e.absolute))}[bS](e,t){this[qg](e,Bg.readdirSync(e.absolute))}[$g](e){let t=e.entry,i=this.zip;e.readdir&&e.readdir.forEach(n=>{let o=this.prefix?e.path.slice(this.prefix.length+1)||"./":e.path,s=o==="./"?"":o.replace(/\/*$/,"/");this[Ng](s+n)}),i?t.on("data",n=>{i.write(n)}):t.on("data",n=>{super[V6](n)})}};SS.Sync=J6;U6.exports=SS});var bu=v(Ep=>{"use strict";var Ame=su(),Ome=require("events").EventEmitter,Nr=require("fs"),ES=Nr.writev;if(!ES){let r=process.binding("fs"),e=r.FSReqWrap||r.FSReqCallback;ES=(t,i,n,o)=>{let s=(l,u)=>o(l,u,i),a=new e;a.oncomplete=s,r.writeBuffers(t,i,n,a)}}var pu=Symbol("_autoClose"),rn=Symbol("_close"),Cp=Symbol("_ended"),ze=Symbol("_fd"),Y6=Symbol("_finished"),Zo=Symbol("_flags"),CS=Symbol("_flush"),_S=Symbol("_handleChunk"),PS=Symbol("_makeBuf"),Ug=Symbol("_mode"),Wg=Symbol("_needDrain"),du=Symbol("_onerror"),hu=Symbol("_onopen"),TS=Symbol("_onread"),mu=Symbol("_onwrite"),Qo=Symbol("_open"),Qn=Symbol("_path"),da=Symbol("_pos"),Dn=Symbol("_queue"),gu=Symbol("_read"),X6=Symbol("_readSize"),es=Symbol("_reading"),Hg=Symbol("_remain"),Z6=Symbol("_size"),zg=Symbol("_write"),vu=Symbol("_writing"),Gg=Symbol("_defaultFlag"),yu=Symbol("_errored"),RS=class extends Ame{constructor(e,t){if(t=t||{},super(t),this.readable=!0,this.writable=!1,typeof e!="string")throw new TypeError("path must be a string");this[yu]=!1,this[ze]=typeof t.fd=="number"?t.fd:null,this[Qn]=e,this[X6]=t.readSize||16*1024*1024,this[es]=!1,this[Z6]=typeof t.size=="number"?t.size:Infinity,this[Hg]=this[Z6],this[pu]=typeof t.autoClose=="boolean"?t.autoClose:!0,typeof this[ze]=="number"?this[gu]():this[Qo]()}get fd(){return this[ze]}get path(){return this[Qn]}write(){throw new TypeError("this is a readable stream")}end(){throw new TypeError("this is a readable stream")}[Qo](){Nr.open(this[Qn],"r",(e,t)=>this[hu](e,t))}[hu](e,t){e?this[du](e):(this[ze]=t,this.emit("open",t),this[gu]())}[PS](){return Buffer.allocUnsafe(Math.min(this[X6],this[Hg]))}[gu](){if(!this[es]){this[es]=!0;let e=this[PS]();if(e.length===0)return process.nextTick(()=>this[TS](null,0,e));Nr.read(this[ze],e,0,e.length,null,(t,i,n)=>this[TS](t,i,n))}}[TS](e,t,i){this[es]=!1,e?this[du](e):this[_S](t,i)&&this[gu]()}[rn](){if(this[pu]&&typeof this[ze]=="number"){let e=this[ze];this[ze]=null,Nr.close(e,t=>t?this.emit("error",t):this.emit("close"))}}[du](e){this[es]=!0,this[rn](),this.emit("error",e)}[_S](e,t){let i=!1;return this[Hg]-=e,e>0&&(i=super.write(ethis[hu](e,t))}[hu](e,t){this[Gg]&&this[Zo]==="r+"&&e&&e.code==="ENOENT"?(this[Zo]="w",this[Qo]()):e?this[du](e):(this[ze]=t,this.emit("open",t),this[CS]())}end(e,t){return e&&this.write(e,t),this[Cp]=!0,!this[vu]&&!this[Dn].length&&typeof this[ze]=="number"&&this[mu](null,0),this}write(e,t){return typeof e=="string"&&(e=Buffer.from(e,t)),this[Cp]?(this.emit("error",new Error("write() after end()")),!1):this[ze]===null||this[vu]||this[Dn].length?(this[Dn].push(e),this[Wg]=!0,!1):(this[vu]=!0,this[zg](e),!0)}[zg](e){Nr.write(this[ze],e,0,e.length,this[da],(t,i)=>this[mu](t,i))}[mu](e,t){e?this[du](e):(this[da]!==null&&(this[da]+=t),this[Dn].length?this[CS]():(this[vu]=!1,this[Cp]&&!this[Y6]?(this[Y6]=!0,this[rn](),this.emit("finish")):this[Wg]&&(this[Wg]=!1,this.emit("drain"))))}[CS](){if(this[Dn].length===0)this[Cp]&&this[mu](null,0);else if(this[Dn].length===1)this[zg](this[Dn].pop());else{let e=this[Dn];this[Dn]=[],ES(this[ze],e,this[da],(t,i)=>this[mu](t,i))}}[rn](){if(this[pu]&&typeof this[ze]=="number"){let e=this[ze];this[ze]=null,Nr.close(e,t=>t?this.emit("error",t):this.emit("close"))}}},e8=class extends kS{[Qo](){let e;if(this[Gg]&&this[Zo]==="r+")try{e=Nr.openSync(this[Qn],this[Zo],this[Ug])}catch(t){if(t.code==="ENOENT")return this[Zo]="w",this[Qo]();throw t}else e=Nr.openSync(this[Qn],this[Zo],this[Ug]);this[hu](null,e)}[rn](){if(this[pu]&&typeof this[ze]=="number"){let e=this[ze];this[ze]=null,Nr.closeSync(e),this.emit("close")}}[zg](e){let t=!0;try{this[mu](null,Nr.writeSync(this[ze],e,0,e.length,this[da])),t=!1}finally{if(t)try{this[rn]()}catch(i){}}}};Ep.ReadStream=RS;Ep.ReadStreamSync=Q6;Ep.WriteStream=kS;Ep.WriteStreamSync=e8});var Tp=v((DOe,t8)=>{"use strict";var Lme=Tg(),wOe=require("path"),Mme=uu(),Nme=require("events"),qme=wg(),$me=1024*1024,Bme=Dp(),r8=Pg(),jme=Q0(),IS=Buffer.from([31,139]),Ri=Symbol("state"),ha=Symbol("writeEntry"),eo=Symbol("readEntry"),FS=Symbol("nextEntry"),i8=Symbol("processEntry"),ki=Symbol("extendedHeader"),_p=Symbol("globalExtendedHeader"),ts=Symbol("meta"),n8=Symbol("emitMeta"),tt=Symbol("buffer"),to=Symbol("queue"),ma=Symbol("ended"),o8=Symbol("emittedEnd"),ga=Symbol("emit"),qr=Symbol("unzip"),Vg=Symbol("consumeChunk"),Kg=Symbol("consumeChunkSub"),AS=Symbol("consumeBody"),s8=Symbol("consumeMeta"),a8=Symbol("consumeHeader"),Jg=Symbol("consuming"),OS=Symbol("bufferConcat"),LS=Symbol("maybeEnd"),Pp=Symbol("writing"),rs=Symbol("aborted"),Yg=Symbol("onDone"),va=Symbol("sawValidEntry"),Xg=Symbol("sawNullBlock"),Zg=Symbol("sawEOF"),Ume=r=>!0;t8.exports=Lme(class extends Nme{constructor(e){e=e||{},super(e),this.file=e.file||"",this[va]=null,this.on(Yg,t=>{(this[Ri]==="begin"||this[va]===!1)&&this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}),e.ondone?this.on(Yg,e.ondone):this.on(Yg,t=>{this.emit("prefinish"),this.emit("finish"),this.emit("end"),this.emit("close")}),this.strict=!!e.strict,this.maxMetaEntrySize=e.maxMetaEntrySize||$me,this.filter=typeof e.filter=="function"?e.filter:Ume,this.writable=!0,this.readable=!1,this[to]=new qme,this[tt]=null,this[eo]=null,this[ha]=null,this[Ri]="begin",this[ts]="",this[ki]=null,this[_p]=null,this[ma]=!1,this[qr]=null,this[rs]=!1,this[Xg]=!1,this[Zg]=!1,typeof e.onwarn=="function"&&this.on("warn",e.onwarn),typeof e.onentry=="function"&&this.on("entry",e.onentry)}[a8](e,t){this[va]===null&&(this[va]=!1);let i;try{i=new Mme(e,t,this[ki],this[_p])}catch(n){return this.warn("TAR_ENTRY_INVALID",n)}if(i.nullBlock)this[Xg]?(this[Zg]=!0,this[Ri]==="begin"&&(this[Ri]="header"),this[ga]("eof")):(this[Xg]=!0,this[ga]("nullBlock"));else if(this[Xg]=!1,!i.cksumValid)this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i});else if(!i.path)this.warn("TAR_ENTRY_INVALID","path is required",{header:i});else{let n=i.type;if(/^(Symbolic)?Link$/.test(n)&&!i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i});else if(!/^(Symbolic)?Link$/.test(n)&&i.linkpath)this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i});else{let o=this[ha]=new Bme(i,this[ki],this[_p]);if(!this[va])if(o.remain){let s=()=>{o.invalid||(this[va]=!0)};o.on("end",s)}else this[va]=!0;o.meta?o.size>this.maxMetaEntrySize?(o.ignore=!0,this[ga]("ignoredEntry",o),this[Ri]="ignore",o.resume()):o.size>0&&(this[ts]="",o.on("data",s=>this[ts]+=s),this[Ri]="meta"):(this[ki]=null,o.ignore=o.ignore||!this.filter(o.path,o),o.ignore?(this[ga]("ignoredEntry",o),this[Ri]=o.remain?"ignore":"header",o.resume()):(o.remain?this[Ri]="body":(this[Ri]="header",o.end()),this[eo]?this[to].push(o):(this[to].push(o),this[FS]())))}}}[i8](e){let t=!0;return e?Array.isArray(e)?this.emit.apply(this,e):(this[eo]=e,this.emit("entry",e),e.emittedEnd||(e.on("end",i=>this[FS]()),t=!1)):(this[eo]=null,t=!1),t}[FS](){do;while(this[i8](this[to].shift()));if(!this[to].length){let e=this[eo];!e||e.flowing||e.size===e.remain?this[Pp]||this.emit("drain"):e.once("drain",i=>this.emit("drain"))}}[AS](e,t){let i=this[ha],n=i.blockRemain,o=n>=e.length&&t===0?e:e.slice(t,t+n);return i.write(o),i.blockRemain||(this[Ri]="header",this[ha]=null,i.end()),o.length}[s8](e,t){let i=this[ha],n=this[AS](e,t);return this[ha]||this[n8](i),n}[ga](e,t,i){!this[to].length&&!this[eo]?this.emit(e,t,i):this[to].push([e,t,i])}[n8](e){switch(this[ga]("meta",this[ts]),e.type){case"ExtendedHeader":case"OldExtendedHeader":this[ki]=r8.parse(this[ts],this[ki],!1);break;case"GlobalExtendedHeader":this[_p]=r8.parse(this[ts],this[_p],!0);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[ki]=this[ki]||Object.create(null),this[ki].path=this[ts].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[ki]=this[ki]||Object.create(null),this[ki].linkpath=this[ts].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+e.type)}}abort(e){this[rs]=!0,this.emit("abort",e),this.warn("TAR_ABORT",e,{recoverable:!1})}write(e){if(this[rs])return;if(this[qr]===null&&e){if(this[tt]&&(e=Buffer.concat([this[tt],e]),this[tt]=null),e.lengththis[Vg](o)),this[qr].on("error",o=>this.abort(o)),this[qr].on("end",o=>{this[ma]=!0,this[Vg]()}),this[Pp]=!0;let n=this[qr][i?"end":"write"](e);return this[Pp]=!1,n}}this[Pp]=!0,this[qr]?this[qr].write(e):this[Vg](e),this[Pp]=!1;let t=this[to].length?!1:this[eo]?this[eo].flowing:!0;return!t&&!this[to].length&&this[eo].once("drain",i=>this.emit("drain")),t}[OS](e){e&&!this[rs]&&(this[tt]=this[tt]?Buffer.concat([this[tt],e]):e)}[LS](){if(this[ma]&&!this[o8]&&!this[rs]&&!this[Jg]){this[o8]=!0;let e=this[ha];if(e&&e.blockRemain){let t=this[tt]?this[tt].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${e.blockRemain} more bytes, only ${t} available)`,{entry:e}),this[tt]&&e.write(this[tt]),e.end()}this[ga](Yg)}}[Vg](e){if(this[Jg])this[OS](e);else if(!e&&!this[tt])this[LS]();else{if(this[Jg]=!0,this[tt]){this[OS](e);let t=this[tt];this[tt]=null,this[Kg](t)}else this[Kg](e);for(;this[tt]&&this[tt].length>=512&&!this[rs]&&!this[Zg];){let t=this[tt];this[tt]=null,this[Kg](t)}this[Jg]=!1}(!this[tt]||this[ma])&&this[LS]()}[Kg](e){let t=0,i=e.length;for(;t+512<=i&&!this[rs]&&!this[Zg];)switch(this[Ri]){case"begin":case"header":this[a8](e,t),t+=512;break;case"ignore":case"body":t+=this[AS](e,t);break;case"meta":t+=this[s8](e,t);break;default:throw new Error("invalid state: "+this[Ri])}t{"use strict";var Wme=ou(),u8=Tp(),wu=require("fs"),Hme=bu(),c8=require("path"),SOe=l8.exports=(r,e,t)=>{typeof r=="function"?(t=r,e=null,r={}):Array.isArray(r)&&(e=r,r={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let i=Wme(r);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&Gme(i,e),i.noResume||zme(i),i.file&&i.sync?Vme(i):i.file?Kme(i,t):f8(i)},zme=r=>{let e=r.onentry;r.onentry=e?t=>{e(t),t.resume()}:t=>t.resume()},Gme=(r,e)=>{let t=new Map(e.map(o=>[o.replace(/\/+$/,""),!0])),i=r.filter,n=(o,s)=>{let a=s||c8.parse(o).root||".",l=o===a?!1:t.has(o)?t.get(o):n(c8.dirname(o),a);return t.set(o,l),l};r.filter=i?(o,s)=>i(o,s)&&n(o.replace(/\/+$/,"")):o=>n(o.replace(/\/+$/,""))},Vme=r=>{let e=f8(r),t=r.file,i=!0,n;try{let o=wu.statSync(t),s=r.maxReadSize||16*1024*1024;if(o.size{let t=new u8(r),i=r.maxReadSize||16*1024*1024,n=r.file,o=new Promise((s,a)=>{t.on("error",a),t.on("end",s),wu.stat(n,(l,u)=>{if(l)a(l);else{let c=new Hme.ReadStream(n,{readSize:i,size:u.size});c.on("error",a),c.pipe(t)}})});return e?o.then(e,e):o},f8=r=>new u8(r)});var v8=v((POe,p8)=>{"use strict";var Jme=ou(),ev=jg(),COe=require("fs"),d8=bu(),h8=Qg(),m8=require("path"),_Oe=p8.exports=(r,e,t)=>{if(typeof e=="function"&&(t=e),Array.isArray(r)&&(e=r,r={}),!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");e=Array.from(e);let i=Jme(r);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return i.file&&i.sync?Yme(i,e):i.file?Xme(i,e,t):i.sync?Zme(i,e):Qme(i,e)},Yme=(r,e)=>{let t=new ev.Sync(r),i=new d8.WriteStreamSync(r.file,{mode:r.mode||438});t.pipe(i),g8(t,e)},Xme=(r,e,t)=>{let i=new ev(r),n=new d8.WriteStream(r.file,{mode:r.mode||438});i.pipe(n);let o=new Promise((s,a)=>{n.on("error",a),n.on("close",s),i.on("error",a)});return MS(i,e),t?o.then(t,t):o},g8=(r,e)=>{e.forEach(t=>{t.charAt(0)==="@"?h8({file:m8.resolve(r.cwd,t.substr(1)),sync:!0,noResume:!0,onentry:i=>r.add(i)}):r.add(t)}),r.end()},MS=(r,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return h8({file:m8.resolve(r.cwd,t.substr(1)),noResume:!0,onentry:i=>r.add(i)}).then(i=>MS(r,e));r.add(t)}r.end()},Zme=(r,e)=>{let t=new ev.Sync(r);return g8(t,e),t},Qme=(r,e)=>{let t=new ev(r);return MS(t,e),t}});var NS=v((kOe,y8)=>{"use strict";var ege=ou(),b8=jg(),TOe=Tp(),Ii=require("fs"),w8=bu(),x8=Qg(),D8=require("path"),S8=uu(),ROe=y8.exports=(r,e,t)=>{let i=ege(r);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),i.sync?tge(i,e):rge(i,e,t)},tge=(r,e)=>{let t=new b8.Sync(r),i=!0,n,o;try{try{n=Ii.openSync(r.file,"r+")}catch(l){if(l.code==="ENOENT")n=Ii.openSync(r.file,"w+");else throw l}let s=Ii.fstatSync(n),a=Buffer.alloc(512);e:for(o=0;os.size)break;o+=u,r.mtimeCache&&r.mtimeCache.set(l.path,l.mtime)}i=!1,ige(r,t,o,n,e)}finally{if(i)try{Ii.closeSync(n)}catch(s){}}},ige=(r,e,t,i,n)=>{let o=new w8.WriteStreamSync(r.file,{fd:i,start:t});e.pipe(o),nge(e,n)},rge=(r,e,t)=>{e=Array.from(e);let i=new b8(r),n=(s,a,l)=>{let u=(h,m)=>{h?Ii.close(s,y=>l(h)):l(null,m)},c=0;if(a===0)return u(null,0);let f=0,p=Buffer.alloc(512),d=(h,m)=>{if(h)return u(h);if(f+=m,f<512&&m)return Ii.read(s,p,f,p.length-f,c+f,d);if(c===0&&p[0]===31&&p[1]===139)return u(new Error("cannot append to compressed archives"));if(f<512)return u(null,c);let y=new S8(p);if(!y.cksumValid)return u(null,c);let g=512*Math.ceil(y.size/512);if(c+g+512>a||(c+=g+512,c>=a))return u(null,c);r.mtimeCache&&r.mtimeCache.set(y.path,y.mtime),f=0,Ii.read(s,p,0,512,c,d)};Ii.read(s,p,0,512,c,d)},o=new Promise((s,a)=>{i.on("error",a);let l="r+",u=(c,f)=>{if(c&&c.code==="ENOENT"&&l==="r+")return l="w+",Ii.open(r.file,l,u);if(c)return a(c);Ii.fstat(f,(p,d)=>{if(p)return a(p);n(f,d.size,(h,m)=>{if(h)return a(h);let y=new w8.WriteStream(r.file,{fd:f,start:m});i.pipe(y),y.on("error",a),y.on("close",s),E8(i,e)})})};Ii.open(r.file,l,u)});return t?o.then(t,t):o},nge=(r,e)=>{e.forEach(t=>{t.charAt(0)==="@"?x8({file:D8.resolve(r.cwd,t.substr(1)),sync:!0,noResume:!0,onentry:i=>r.add(i)}):r.add(t)}),r.end()},E8=(r,e)=>{for(;e.length;){let t=e.shift();if(t.charAt(0)==="@")return x8({file:D8.resolve(r.cwd,t.substr(1)),noResume:!0,onentry:i=>r.add(i)}).then(i=>E8(r,e));r.add(t)}r.end()}});var _8=v((FOe,C8)=>{"use strict";var oge=ou(),sge=NS(),IOe=C8.exports=(r,e,t)=>{let i=oge(r);if(!i.file)throw new TypeError("file is required");if(i.gzip)throw new TypeError("cannot append to compressed archives");if(!e||!Array.isArray(e)||!e.length)throw new TypeError("no files or directories specified");return e=Array.from(e),age(i),sge(i,e,t)},age=r=>{let e=r.filter;r.mtimeCache||(r.mtimeCache=new Map),r.filter=e?(t,i)=>e(t,i)&&!(r.mtimeCache.get(t)>i.mtime):(t,i)=>!(r.mtimeCache.get(t)>i.mtime)}});var R8=v((AOe,P8)=>{var{promisify:T8}=require("util"),is=require("fs"),lge=r=>{if(!r)r={mode:511,fs:is};else if(typeof r=="object")r={mode:511,fs:is,...r};else if(typeof r=="number")r={mode:r,fs:is};else if(typeof r=="string")r={mode:parseInt(r,8),fs:is};else throw new TypeError("invalid options argument");return r.mkdir=r.mkdir||r.fs.mkdir||is.mkdir,r.mkdirAsync=T8(r.mkdir),r.stat=r.stat||r.fs.stat||is.stat,r.statAsync=T8(r.stat),r.statSync=r.statSync||r.fs.statSync||is.statSync,r.mkdirSync=r.mkdirSync||r.fs.mkdirSync||is.mkdirSync,r};P8.exports=lge});var I8=v((OOe,k8)=>{var uge=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:cge,parse:fge}=require("path"),pge=r=>{if(/\0/.test(r))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:r,code:"ERR_INVALID_ARG_VALUE"});if(r=cge(r),uge==="win32"){let e=/[*|"<>?:]/,{root:t}=fge(r);if(e.test(r.substr(t.length)))throw Object.assign(new Error("Illegal characters in path."),{path:r,code:"EINVAL"})}return r};k8.exports=pge});var M8=v((LOe,F8)=>{var{dirname:A8}=require("path"),O8=(r,e,t=void 0)=>t===e?Promise.resolve():r.statAsync(e).then(i=>i.isDirectory()?t:void 0,i=>i.code==="ENOENT"?O8(r,A8(e),e):void 0),L8=(r,e,t=void 0)=>{if(t!==e)try{return r.statSync(e).isDirectory()?t:void 0}catch(i){return i.code==="ENOENT"?L8(r,A8(e),e):void 0}};F8.exports={findMade:O8,findMadeSync:L8}});var BS=v((MOe,N8)=>{var{dirname:q8}=require("path"),qS=(r,e,t)=>{e.recursive=!1;let i=q8(r);return i===r?e.mkdirAsync(r,e).catch(n=>{if(n.code!=="EISDIR")throw n}):e.mkdirAsync(r,e).then(()=>t||r,n=>{if(n.code==="ENOENT")return qS(i,e).then(o=>qS(r,e,o));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;return e.statAsync(r).then(o=>{if(o.isDirectory())return t;throw n},()=>{throw n})})},$S=(r,e,t)=>{let i=q8(r);if(e.recursive=!1,i===r)try{return e.mkdirSync(r,e)}catch(n){if(n.code!=="EISDIR")throw n;return}try{return e.mkdirSync(r,e),t||r}catch(n){if(n.code==="ENOENT")return $S(r,e,$S(i,e,t));if(n.code!=="EEXIST"&&n.code!=="EROFS")throw n;try{if(!e.statSync(r).isDirectory())throw n}catch(o){throw n}}};N8.exports={mkdirpManual:qS,mkdirpManualSync:$S}});var j8=v((NOe,$8)=>{var{dirname:B8}=require("path"),{findMade:dge,findMadeSync:hge}=M8(),{mkdirpManual:mge,mkdirpManualSync:gge}=BS(),vge=(r,e)=>(e.recursive=!0,B8(r)===r?e.mkdirAsync(r,e):dge(e,r).then(i=>e.mkdirAsync(r,e).then(()=>i).catch(n=>{if(n.code==="ENOENT")return mge(r,e);throw n}))),yge=(r,e)=>{if(e.recursive=!0,B8(r)===r)return e.mkdirSync(r,e);let i=hge(e,r);try{return e.mkdirSync(r,e),i}catch(n){if(n.code==="ENOENT")return gge(r,e);throw n}};$8.exports={mkdirpNative:vge,mkdirpNativeSync:yge}});var z8=v((qOe,U8)=>{var W8=require("fs"),bge=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,jS=bge.replace(/^v/,"").split("."),H8=+jS[0]>10||+jS[0]==10&&+jS[1]>=12,wge=H8?r=>r.mkdir===W8.mkdir:()=>!1,xge=H8?r=>r.mkdirSync===W8.mkdirSync:()=>!1;U8.exports={useNative:wge,useNativeSync:xge}});var X8=v(($Oe,G8)=>{var xu=R8(),Du=I8(),{mkdirpNative:V8,mkdirpNativeSync:K8}=j8(),{mkdirpManual:J8,mkdirpManualSync:Y8}=BS(),{useNative:Dge,useNativeSync:Sge}=z8(),Su=(r,e)=>(r=Du(r),e=xu(e),Dge(e)?V8(r,e):J8(r,e)),Ege=(r,e)=>(r=Du(r),e=xu(e),Sge(e)?K8(r,e):Y8(r,e));Su.sync=Ege;Su.native=(r,e)=>V8(Du(r),xu(e));Su.manual=(r,e)=>J8(Du(r),xu(e));Su.nativeSync=(r,e)=>K8(Du(r),xu(e));Su.manualSync=(r,e)=>Y8(Du(r),xu(e));G8.exports=Su});var nW=v((BOe,Z8)=>{"use strict";var Fi=require("fs"),ya=require("path"),Cge=Fi.lchown?"lchown":"chown",_ge=Fi.lchownSync?"lchownSync":"chownSync",Q8=Fi.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),eW=(r,e,t)=>{try{return Fi[_ge](r,e,t)}catch(i){if(i.code!=="ENOENT")throw i}},Pge=(r,e,t)=>{try{return Fi.chownSync(r,e,t)}catch(i){if(i.code!=="ENOENT")throw i}},Tge=Q8?(r,e,t,i)=>n=>{!n||n.code!=="EISDIR"?i(n):Fi.chown(r,e,t,i)}:(r,e,t,i)=>i,US=Q8?(r,e,t)=>{try{return eW(r,e,t)}catch(i){if(i.code!=="EISDIR")throw i;Pge(r,e,t)}}:(r,e,t)=>eW(r,e,t),Rge=process.version,tW=(r,e,t)=>Fi.readdir(r,e,t),kge=(r,e)=>Fi.readdirSync(r,e);/^v4\./.test(Rge)&&(tW=(r,e,t)=>Fi.readdir(r,t));var tv=(r,e,t,i)=>{Fi[Cge](r,e,t,Tge(r,e,t,n=>{i(n&&n.code!=="ENOENT"?n:null)}))},rW=(r,e,t,i,n)=>{if(typeof e=="string")return Fi.lstat(ya.resolve(r,e),(o,s)=>{if(o)return n(o.code!=="ENOENT"?o:null);s.name=e,rW(r,s,t,i,n)});if(e.isDirectory())WS(ya.resolve(r,e.name),t,i,o=>{if(o)return n(o);let s=ya.resolve(r,e.name);tv(s,t,i,n)});else{let o=ya.resolve(r,e.name);tv(o,t,i,n)}},WS=(r,e,t,i)=>{tW(r,{withFileTypes:!0},(n,o)=>{if(n){if(n.code==="ENOENT")return i();if(n.code!=="ENOTDIR"&&n.code!=="ENOTSUP")return i(n)}if(n||!o.length)return tv(r,e,t,i);let s=o.length,a=null,l=u=>{if(!a){if(u)return i(a=u);if(--s==0)return tv(r,e,t,i)}};o.forEach(u=>rW(r,u,e,t,l))})},Ige=(r,e,t,i)=>{if(typeof e=="string")try{let n=Fi.lstatSync(ya.resolve(r,e));n.name=e,e=n}catch(n){if(n.code==="ENOENT")return;throw n}e.isDirectory()&&iW(ya.resolve(r,e.name),t,i),US(ya.resolve(r,e.name),t,i)},iW=(r,e,t)=>{let i;try{i=kge(r,{withFileTypes:!0})}catch(n){if(n.code==="ENOENT")return;if(n.code==="ENOTDIR"||n.code==="ENOTSUP")return US(r,e,t);throw n}return i&&i.length&&i.forEach(n=>Ige(r,n,e,t)),US(r,e,t)};Z8.exports=WS;WS.sync=iW});var lW=v((WOe,HS)=>{"use strict";var oW=X8(),Ai=require("fs"),rv=require("path"),sW=nW(),zS=class extends Error{constructor(e,t){super("Cannot extract through symbolic link");this.path=t,this.symlink=e}get name(){return"SylinkError"}},Rp=class extends Error{constructor(e,t){super(t+": Cannot cd into '"+e+"'");this.path=e,this.code=t}get name(){return"CwdError"}},jOe=HS.exports=(r,e,t)=>{let i=e.umask,n=e.mode|448,o=(n&i)!=0,s=e.uid,a=e.gid,l=typeof s=="number"&&typeof a=="number"&&(s!==e.processUid||a!==e.processGid),u=e.preserve,c=e.unlink,f=e.cache,p=e.cwd,d=(y,g)=>{y?t(y):(f.set(r,!0),g&&l?sW(g,s,a,w=>d(w)):o?Ai.chmod(r,n,t):t())};if(f&&f.get(r)===!0)return d();if(r===p)return Ai.stat(r,(y,g)=>{(y||!g.isDirectory())&&(y=new Rp(r,y&&y.code||"ENOTDIR")),d(y)});if(u)return oW(r,{mode:n}).then(y=>d(null,y),d);let m=rv.relative(p,r).split(/\/|\\/);iv(p,m,n,f,c,p,null,d)},iv=(r,e,t,i,n,o,s,a)=>{if(!e.length)return a(null,s);let l=e.shift(),u=r+"/"+l;if(i.get(u))return iv(u,e,t,i,n,o,s,a);Ai.mkdir(u,t,aW(u,e,t,i,n,o,s,a))},aW=(r,e,t,i,n,o,s,a)=>l=>{if(l){if(l.path&&rv.dirname(l.path)===o&&(l.code==="ENOTDIR"||l.code==="ENOENT"))return a(new Rp(o,l.code));Ai.lstat(r,(u,c)=>{if(u)a(u);else if(c.isDirectory())iv(r,e,t,i,n,o,s,a);else if(n)Ai.unlink(r,f=>{if(f)return a(f);Ai.mkdir(r,t,aW(r,e,t,i,n,o,s,a))});else{if(c.isSymbolicLink())return a(new zS(r,r+"/"+e.join("/")));a(l)}})}else s=s||r,iv(r,e,t,i,n,o,s,a)},UOe=HS.exports.sync=(r,e)=>{let t=e.umask,i=e.mode|448,n=(i&t)!=0,o=e.uid,s=e.gid,a=typeof o=="number"&&typeof s=="number"&&(o!==e.processUid||s!==e.processGid),l=e.preserve,u=e.unlink,c=e.cache,f=e.cwd,p=y=>{c.set(r,!0),y&&a&&sW.sync(y,o,s),n&&Ai.chmodSync(r,i)};if(c&&c.get(r)===!0)return p();if(r===f){let y=!1,g="ENOTDIR";try{y=Ai.statSync(r).isDirectory()}catch(w){g=w.code}finally{if(!y)throw new Rp(r,g)}p();return}if(l)return p(oW.sync(r,i));let h=rv.relative(f,r).split(/\/|\\/),m=null;for(let y=h.shift(),g=f;y&&(g+="/"+y);y=h.shift())if(!c.get(g))try{Ai.mkdirSync(g,i),m=m||g,c.set(g,!0)}catch(w){if(w.path&&rv.dirname(w.path)===f&&(w.code==="ENOTDIR"||w.code==="ENOENT"))return new Rp(f,w.code);let x=Ai.lstatSync(g);if(x.isDirectory()){c.set(g,!0);continue}else if(u){Ai.unlinkSync(g),Ai.mkdirSync(g,i),m=m||g,c.set(g,!0);continue}else if(x.isSymbolicLink())return new zS(g,g+"/"+h.join("/"))}return p(m)}});var fW=v((HOe,uW)=>{var cW=require("assert");uW.exports=()=>{let r=new Map,e=new Map,{join:t}=require("path"),i=c=>t(c).split(/[\\\/]/).slice(0,-1).reduce((f,p)=>f.length?f.concat(t(f[f.length-1],p)):[p],[]),n=new Set,o=c=>{let f=e.get(c);if(!f)throw new Error("function does not have any path reservations");return{paths:f.paths.map(p=>r.get(p)),dirs:[...f.dirs].map(p=>r.get(p))}},s=c=>{let{paths:f,dirs:p}=o(c);return f.every(d=>d[0]===c)&&p.every(d=>d[0]instanceof Set&&d[0].has(c))},a=c=>n.has(c)||!s(c)?!1:(n.add(c),c(()=>l(c)),!0),l=c=>{if(!n.has(c))return!1;let{paths:f,dirs:p}=e.get(c),d=new Set;return f.forEach(h=>{let m=r.get(h);cW.equal(m[0],c),m.length===1?r.delete(h):(m.shift(),typeof m[0]=="function"?d.add(m[0]):m[0].forEach(y=>d.add(y)))}),p.forEach(h=>{let m=r.get(h);cW(m[0]instanceof Set),m[0].size===1&&m.length===1?r.delete(h):m[0].size===1?(m.shift(),d.add(m[0])):m[0].delete(c)}),n.delete(c),d.forEach(h=>a(h)),!0};return{check:s,reserve:(c,f)=>{let p=new Set(c.map(d=>i(d)).reduce((d,h)=>d.concat(h)));return e.set(f,{dirs:p,paths:c}),c.forEach(d=>{let h=r.get(d);h?h.push(f):r.set(d,[f])}),p.forEach(d=>{let h=r.get(d);h?h[h.length-1]instanceof Set?h[h.length-1].add(f):h.push(new Set([f])):r.set(d,[new Set([f])])}),a(f)}}}});var hW=v((zOe,pW)=>{var Fge=process.env.__FAKE_PLATFORM__||process.platform,Age=Fge==="win32",Oge=global.__FAKE_TESTING_FS__||require("fs"),{O_CREAT:Lge,O_TRUNC:Mge,O_WRONLY:Nge,UV_FS_O_FILEMAP:dW=0}=Oge.constants,qge=Age&&!!dW,$ge=512*1024,Bge=dW|Mge|Lge|Nge;pW.exports=qge?r=>r<$ge?Bge:"w":()=>"w"});var eE=v((JOe,mW)=>{"use strict";var jge=require("assert"),GOe=require("events").EventEmitter,Uge=Tp(),$e=require("fs"),Wge=bu(),ro=require("path"),GS=lW(),VOe=GS.sync,gW=aS(),Hge=fW(),vW=Symbol("onEntry"),VS=Symbol("checkFs"),yW=Symbol("checkFs2"),KS=Symbol("isReusable"),io=Symbol("makeFs"),JS=Symbol("file"),YS=Symbol("directory"),nv=Symbol("link"),bW=Symbol("symlink"),wW=Symbol("hardlink"),xW=Symbol("unsupported"),KOe=Symbol("unknown"),DW=Symbol("checkPath"),Eu=Symbol("mkdir"),Dr=Symbol("onError"),ov=Symbol("pending"),SW=Symbol("pend"),Cu=Symbol("unpend"),XS=Symbol("ended"),ZS=Symbol("maybeClose"),QS=Symbol("skip"),kp=Symbol("doChown"),Ip=Symbol("uid"),Fp=Symbol("gid"),EW=require("crypto"),CW=hW(),sv=()=>{throw new Error("sync function called cb somehow?!?")},zge=(r,e)=>{if(process.platform!=="win32")return $e.unlink(r,e);let t=r+".DELETE."+EW.randomBytes(16).toString("hex");$e.rename(r,t,i=>{if(i)return e(i);$e.unlink(t,e)})},Gge=r=>{if(process.platform!=="win32")return $e.unlinkSync(r);let e=r+".DELETE."+EW.randomBytes(16).toString("hex");$e.renameSync(r,e),$e.unlinkSync(e)},_W=(r,e,t)=>r===r>>>0?r:e===e>>>0?e:t,av=class extends Uge{constructor(e){if(e||(e={}),e.ondone=t=>{this[XS]=!0,this[ZS]()},super(e),this.reservations=Hge(),this.transform=typeof e.transform=="function"?e.transform:null,this.writable=!0,this.readable=!1,this[ov]=0,this[XS]=!1,this.dirCache=e.dirCache||new Map,typeof e.uid=="number"||typeof e.gid=="number"){if(typeof e.uid!="number"||typeof e.gid!="number")throw new TypeError("cannot set owner without number uid and gid");if(e.preserveOwner)throw new TypeError("cannot preserve owner in archive and also set owner explicitly");this.uid=e.uid,this.gid=e.gid,this.setOwner=!0}else this.uid=null,this.gid=null,this.setOwner=!1;e.preserveOwner===void 0&&typeof e.uid!="number"?this.preserveOwner=process.getuid&&process.getuid()===0:this.preserveOwner=!!e.preserveOwner,this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null,this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null,this.forceChown=e.forceChown===!0,this.win32=!!e.win32||process.platform==="win32",this.newer=!!e.newer,this.keep=!!e.keep,this.noMtime=!!e.noMtime,this.preservePaths=!!e.preservePaths,this.unlink=!!e.unlink,this.cwd=ro.resolve(e.cwd||process.cwd()),this.strip=+e.strip||0,this.processUmask=process.umask(),this.umask=typeof e.umask=="number"?e.umask:this.processUmask,this.dmode=e.dmode||511&~this.umask,this.fmode=e.fmode||438&~this.umask,this.on("entry",t=>this[vW](t))}warn(e,t,i={}){return(e==="TAR_BAD_ARCHIVE"||e==="TAR_ABORT")&&(i.recoverable=!1),super.warn(e,t,i)}[ZS](){this[XS]&&this[ov]===0&&(this.emit("prefinish"),this.emit("finish"),this.emit("end"),this.emit("close"))}[DW](e){if(this.strip){let t=e.path.split(/\/|\\/);if(t.length=this.strip&&(e.linkpath=i.slice(this.strip).join("/"))}}if(!this.preservePaths){let t=e.path;if(t.match(/(^|\/|\\)\.\.(\\|\/|$)/))return this.warn("TAR_ENTRY_ERROR","path contains '..'",{entry:e,path:t}),!1;if(ro.win32.isAbsolute(t)){let i=ro.win32.parse(t);e.path=t.substr(i.root.length);let n=i.root;this.warn("TAR_ENTRY_INFO",`stripping ${n} from absolute path`,{entry:e,path:t})}}if(this.win32){let t=ro.win32.parse(e.path);e.path=t.root===""?gW.encode(e.path):t.root+gW.encode(e.path.substr(t.root.length))}return ro.isAbsolute(e.path)?e.absolute=e.path:e.absolute=ro.resolve(this.cwd,e.path),!0}[vW](e){if(!this[DW](e))return e.resume();switch(jge.equal(typeof e.absolute,"string"),e.type){case"Directory":case"GNUDumpDir":e.mode&&(e.mode=e.mode|448);case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[VS](e);case"CharacterDevice":case"BlockDevice":case"FIFO":return this[xW](e)}}[Dr](e,t){e.name==="CwdError"?this.emit("error",e):(this.warn("TAR_ENTRY_ERROR",e,{entry:t}),this[Cu](),t.resume())}[Eu](e,t,i){GS(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t},i)}[kp](e){return this.forceChown||this.preserveOwner&&(typeof e.uid=="number"&&e.uid!==this.processUid||typeof e.gid=="number"&&e.gid!==this.processGid)||typeof this.uid=="number"&&this.uid!==this.processUid||typeof this.gid=="number"&&this.gid!==this.processGid}[Ip](e){return _W(this.uid,e.uid,this.processUid)}[Fp](e){return _W(this.gid,e.gid,this.processGid)}[JS](e,t){let i=e.mode&4095||this.fmode,n=new Wge.WriteStream(e.absolute,{flags:CW(e.size),mode:i,autoClose:!1});n.on("error",l=>this[Dr](l,e));let o=1,s=l=>{if(l)return this[Dr](l,e);--o==0&&$e.close(n.fd,u=>{t(),u?this[Dr](u,e):this[Cu]()})};n.on("finish",l=>{let u=e.absolute,c=n.fd;if(e.mtime&&!this.noMtime){o++;let f=e.atime||new Date,p=e.mtime;$e.futimes(c,f,p,d=>d?$e.utimes(u,f,p,h=>s(h&&d)):s())}if(this[kp](e)){o++;let f=this[Ip](e),p=this[Fp](e);$e.fchown(c,f,p,d=>d?$e.chown(u,f,p,h=>s(h&&d)):s())}s()});let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>this[Dr](l,e)),e.pipe(a)),a.pipe(n)}[YS](e,t){let i=e.mode&4095||this.dmode;this[Eu](e.absolute,i,n=>{if(n)return t(),this[Dr](n,e);let o=1,s=a=>{--o==0&&(t(),this[Cu](),e.resume())};e.mtime&&!this.noMtime&&(o++,$e.utimes(e.absolute,e.atime||new Date,e.mtime,s)),this[kp](e)&&(o++,$e.chown(e.absolute,this[Ip](e),this[Fp](e),s)),s()})}[xW](e){e.unsupported=!0,this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${e.type}`,{entry:e}),e.resume()}[bW](e,t){this[nv](e,e.linkpath,"symlink",t)}[wW](e,t){this[nv](e,ro.resolve(this.cwd,e.linkpath),"link",t)}[SW](){this[ov]++}[Cu](){this[ov]--,this[ZS]()}[QS](e){this[Cu](),e.resume()}[KS](e,t){return e.type==="File"&&!this.unlink&&t.isFile()&&t.nlink<=1&&process.platform!=="win32"}[VS](e){this[SW]();let t=[e.path];e.linkpath&&t.push(e.linkpath),this.reservations.reserve(t,i=>this[yW](e,i))}[yW](e,t){this[Eu](ro.dirname(e.absolute),this.dmode,i=>{if(i)return t(),this[Dr](i,e);$e.lstat(e.absolute,(n,o)=>{o&&(this.keep||this.newer&&o.mtime>e.mtime)?(this[QS](e),t()):n||this[KS](e,o)?this[io](null,e,t):o.isDirectory()?e.type==="Directory"?!e.mode||(o.mode&4095)===e.mode?this[io](null,e,t):$e.chmod(e.absolute,e.mode,s=>this[io](s,e,t)):$e.rmdir(e.absolute,s=>this[io](s,e,t)):zge(e.absolute,s=>this[io](s,e,t))})})}[io](e,t,i){if(e)return this[Dr](e,t);switch(t.type){case"File":case"OldFile":case"ContiguousFile":return this[JS](t,i);case"Link":return this[wW](t,i);case"SymbolicLink":return this[bW](t,i);case"Directory":case"GNUDumpDir":return this[YS](t,i)}}[nv](e,t,i,n){$e[i](t,e.absolute,o=>{if(o)return this[Dr](o,e);n(),this[Cu](),e.resume()})}},PW=class extends av{constructor(e){super(e)}[VS](e){let t=this[Eu](ro.dirname(e.absolute),this.dmode,sv);if(t)return this[Dr](t,e);try{let i=$e.lstatSync(e.absolute);if(this.keep||this.newer&&i.mtime>e.mtime)return this[QS](e);if(this[KS](e,i))return this[io](null,e,sv);try{return i.isDirectory()?e.type==="Directory"?e.mode&&(i.mode&4095)!==e.mode&&$e.chmodSync(e.absolute,e.mode):$e.rmdirSync(e.absolute):Gge(e.absolute),this[io](null,e,sv)}catch(n){return this[Dr](n,e)}}catch(i){return this[io](null,e,sv)}}[JS](e,t){let i=e.mode&4095||this.fmode,n=l=>{let u;try{$e.closeSync(s)}catch(c){u=c}(l||u)&&this[Dr](l||u,e)},o,s;try{s=$e.openSync(e.absolute,CW(e.size),i)}catch(l){return n(l)}let a=this.transform&&this.transform(e)||e;a!==e&&(a.on("error",l=>this[Dr](l,e)),e.pipe(a)),a.on("data",l=>{try{$e.writeSync(s,l,0,l.length)}catch(u){n(u)}}),a.on("end",l=>{let u=null;if(e.mtime&&!this.noMtime){let c=e.atime||new Date,f=e.mtime;try{$e.futimesSync(s,c,f)}catch(p){try{$e.utimesSync(e.absolute,c,f)}catch(d){u=p}}}if(this[kp](e)){let c=this[Ip](e),f=this[Fp](e);try{$e.fchownSync(s,c,f)}catch(p){try{$e.chownSync(e.absolute,c,f)}catch(d){u=u||p}}}n(u)})}[YS](e,t){let i=e.mode&4095||this.dmode,n=this[Eu](e.absolute,i);if(n)return this[Dr](n,e);if(e.mtime&&!this.noMtime)try{$e.utimesSync(e.absolute,e.atime||new Date,e.mtime)}catch(o){}if(this[kp](e))try{$e.chownSync(e.absolute,this[Ip](e),this[Fp](e))}catch(o){}e.resume()}[Eu](e,t){try{return GS.sync(e,{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:t})}catch(i){return i}}[nv](e,t,i,n){try{$e[i+"Sync"](t,e.absolute),e.resume()}catch(o){return this[Dr](o,e)}}};av.Sync=PW;mW.exports=av});var FW=v((XOe,TW)=>{"use strict";var Vge=ou(),lv=eE(),RW=require("fs"),kW=bu(),IW=require("path"),YOe=TW.exports=(r,e,t)=>{typeof r=="function"?(t=r,e=null,r={}):Array.isArray(r)&&(e=r,r={}),typeof e=="function"&&(t=e,e=null),e?e=Array.from(e):e=[];let i=Vge(r);if(i.sync&&typeof t=="function")throw new TypeError("callback not supported for sync tar functions");if(!i.file&&typeof t=="function")throw new TypeError("callback only supported with file option");return e.length&&Kge(i,e),i.file&&i.sync?Jge(i):i.file?Yge(i,t):i.sync?Xge(i):Zge(i)},Kge=(r,e)=>{let t=new Map(e.map(o=>[o.replace(/\/+$/,""),!0])),i=r.filter,n=(o,s)=>{let a=s||IW.parse(o).root||".",l=o===a?!1:t.has(o)?t.get(o):n(IW.dirname(o),a);return t.set(o,l),l};r.filter=i?(o,s)=>i(o,s)&&n(o.replace(/\/+$/,"")):o=>n(o.replace(/\/+$/,""))},Jge=r=>{let e=new lv.Sync(r),t=r.file,i=!0,n,o=RW.statSync(t),s=r.maxReadSize||16*1024*1024;new kW.ReadStreamSync(t,{readSize:s,size:o.size}).pipe(e)},Yge=(r,e)=>{let t=new lv(r),i=r.maxReadSize||16*1024*1024,n=r.file,o=new Promise((s,a)=>{t.on("error",a),t.on("close",s),RW.stat(n,(l,u)=>{if(l)a(l);else{let c=new kW.ReadStream(n,{readSize:i,size:u.size});c.on("error",a),c.pipe(t)}})});return e?o.then(e,e):o},Xge=r=>new lv.Sync(r),Zge=r=>new lv(r)});var AW=v(Ft=>{"use strict";Ft.c=Ft.create=v8();Ft.r=Ft.replace=NS();Ft.t=Ft.list=Qg();Ft.u=Ft.update=_8();Ft.x=Ft.extract=FW();Ft.Pack=jg();Ft.Unpack=eE();Ft.Parse=Tp();Ft.ReadEntry=Dp();Ft.WriteEntry=hS();Ft.Header=uu();Ft.Pax=Pg();Ft.types=xp()});var NW=v((QOe,OW)=>{OW.exports=fr;function fr(r){if(!(this instanceof fr))return new fr(r);this.value=r}fr.prototype.get=function(r){for(var e=this.value,t=0;t{var Qge=NW(),eve=require("events").EventEmitter;qW.exports=_u;function _u(r){var e=_u.saw(r,{}),t=r.call(e.handlers,e);return t!==void 0&&(e.handlers=t),e.record(),e.chain()}_u.light=function(e){var t=_u.saw(e,{}),i=e.call(t.handlers,t);return i!==void 0&&(t.handlers=i),t.chain()};_u.saw=function(r,e){var t=new eve;return t.handlers=e,t.actions=[],t.chain=function(){var i=Qge(t.handlers).map(function(n){if(this.isRoot)return n;var o=this.path;typeof n=="function"&&this.update(function(){return t.actions.push({path:o,args:[].slice.call(arguments)}),i})});return process.nextTick(function(){t.emit("begin"),t.next()}),i},t.pop=function(){return t.actions.shift()},t.next=function(){var i=t.pop();if(!i)t.emit("end");else if(!i.trap){var n=t.handlers;i.path.forEach(function(o){n=n[o]}),n.apply(t.handlers,i.args)}},t.nest=function(i){var n=[].slice.call(arguments,1),o=!0;if(typeof i=="boolean"){var o=i;i=n.shift()}var s=_u.saw(r,{}),a=r.call(s.handlers,s);a!==void 0&&(s.handlers=a),typeof t.step!="undefined"&&s.record(),i.apply(s.chain(),n),o!==!1&&s.on("end",t.next)},t.record=function(){tve(t)},["trap","down","jump"].forEach(function(i){t[i]=function(){throw new Error("To use the trap, down and jump features, please call record() first to start recording actions.")}}),t};function tve(r){r.step=0,r.pop=function(){return r.actions[r.step++]},r.trap=function(e,t){var i=Array.isArray(e)?e:[e];r.actions.push({path:i,step:r.step,cb:t,trap:!0})},r.down=function(e){var t=(Array.isArray(e)?e:[e]).join("/"),i=r.actions.slice(r.step).map(function(o){return o.trap&&o.step<=r.step?!1:o.path.join("/")==t}).indexOf(!0);i>=0?r.step+=i:r.step=r.actions.length;var n=r.actions[r.step-1];n&&n.trap?(r.step=n.step,n.cb()):r.next()},r.jump=function(e){r.step=e,r.next()}}});var jW=v((tLe,BW)=>{BW.exports=Sr;function Sr(r){if(!(this instanceof Sr))return new Sr(r);this.buffers=r||[],this.length=this.buffers.reduce(function(e,t){return e+t.length},0)}Sr.prototype.push=function(){for(var r=0;r=0?r:this.length-r,n=[].slice.call(arguments,2);e===void 0?e=this.length-i:e>this.length-i&&(e=this.length-i);for(var r=0;r0){var u=i-a;if(u+e0){var d=n.slice();d.unshift(f),d.push(p),t.splice.apply(t,[l,1].concat(d)),l+=d.length,n=[]}else t.splice(l,1,f,p),l+=2}else o.push(t[l].slice(u)),t[l]=t[l].slice(0,u),l++}for(n.length>0&&(t.splice.apply(t,[l,0].concat(n)),l+=n.length);o.lengththis.length&&(e=this.length);for(var i=0,n=0;n=e-r?Math.min(u+(e-r)-s,l):l;t[a].copy(o,s,u,c),s+=c-u}return o};Sr.prototype.pos=function(r){if(r<0||r>=this.length)throw new Error("oob");for(var e=r,t=0,i=null;;){if(i=this.buffers[t],e=this.buffers[t].length;)if(i=0,t++,t>=this.buffers.length)return-1;var l=this.buffers[t][i];if(l==r[n]){if(n==0&&(o={i:t,j:i,pos:s}),n++,n==r.length)return o.pos}else n!=0&&(t=o.i,i=o.j,s=o.pos,n=0);i++,s++}};Sr.prototype.toBuffer=function(){return this.slice()};Sr.prototype.toString=function(r,e,t){return this.slice(e,t).toString(r)}});var WW=v((rLe,UW)=>{UW.exports=function(r){function e(i,n){var o=t.store,s=i.split(".");s.slice(0,-1).forEach(function(l){o[l]===void 0&&(o[l]={}),o=o[l]});var a=s[s.length-1];return arguments.length==1?o[a]:o[a]=n}var t={get:function(i){return e(i)},set:function(i,n){return e(i,n)},store:r||{}};return t}});var JW=v((ba,HW)=>{var rve=$W(),zW=require("events").EventEmitter,ive=jW(),uv=WW(),nve=require("stream").Stream;ba=HW.exports=function(r,e){if(Buffer.isBuffer(r))return ba.parse(r);var t=ba.stream();return r&&r.pipe?r.pipe(t):r&&(r.on(e||"data",function(i){t.write(i)}),r.on("end",function(){t.end()})),t};ba.stream=function(r){if(r)return ba.apply(null,arguments);var e=null;function t(f,p,d){e={bytes:f,skip:d,cb:function(h){e=null,p(h)}},n()}var i=null;function n(){if(!e){c&&(u=!0);return}if(typeof e=="function")e();else{var f=i+e.bytes;if(a.length>=f){var p;i==null?(p=a.splice(0,f),e.skip||(p=p.slice())):(e.skip||(p=a.slice(i,f)),i=f),e.skip?e.cb():e.cb(p)}}}function o(f){function p(){u||f.next()}var d=GW(function(h,m){return function(y){t(h,function(g){l.set(y,m(g)),p()})}});return d.tap=function(h){f.nest(h,l.store)},d.into=function(h,m){l.get(h)||l.set(h,{});var y=l;l=uv(y.get(h)),f.nest(function(){m.apply(this,arguments),this.tap(function(){l=y})},l.store)},d.flush=function(){l.store={},p()},d.loop=function(h){var m=!1;f.nest(!1,function y(){this.vars=l.store,h.call(this,function(){m=!0,p()},l.store),this.tap(function(){m?f.next():y.call(this)}.bind(this))},l.store)},d.buffer=function(h,m){typeof m=="string"&&(m=l.get(m)),t(m,function(y){l.set(h,y),p()})},d.skip=function(h){typeof h=="string"&&(h=l.get(h)),t(h,function(){p()})},d.scan=function(m,y){if(typeof y=="string")y=new Buffer(y);else if(!Buffer.isBuffer(y))throw new Error("search must be a Buffer or a string");var g=0;e=function(){var w=a.indexOf(y,i+g),x=w-i-g;w!==-1?(e=null,i!=null?(l.set(m,a.slice(i,i+g+x)),i+=g+x+y.length):(l.set(m,a.slice(0,g+x)),a.splice(0,g+x+y.length)),p(),n()):x=Math.max(a.length-y.length-i-g,0),g+=x},n()},d.peek=function(h){i=0,f.nest(function(){h.call(this,l.store),this.tap(function(){i=null})})},d}var s=rve.light(o);s.writable=!0;var a=ive();s.write=function(f){a.push(f),n()};var l=uv(),u=!1,c=!1;return s.end=function(){c=!0},s.pipe=nve.prototype.pipe,Object.getOwnPropertyNames(zW.prototype).forEach(function(f){s[f]=zW.prototype[f]}),s};ba.parse=function(e){var t=GW(function(o,s){return function(a){if(i+o<=e.length){var l=e.slice(i,i+o);i+=o,n.set(a,s(l))}else n.set(a,null);return t}}),i=0,n=uv();return t.vars=n.store,t.tap=function(o){return o.call(t,n.store),t},t.into=function(o,s){n.get(o)||n.set(o,{});var a=n;return n=uv(a.get(o)),s.call(t,n.store),n=a,t},t.loop=function(o){for(var s=!1,a=function(){s=!0};s===!1;)o.call(t,a,n.store);return t},t.buffer=function(o,s){typeof s=="string"&&(s=n.get(s));var a=e.slice(i,Math.min(e.length,i+s));return i+=s,n.set(o,a),t},t.skip=function(o){return typeof o=="string"&&(o=n.get(o)),i+=o,t},t.scan=function(o,s){if(typeof s=="string")s=new Buffer(s);else if(!Buffer.isBuffer(s))throw new Error("search must be a Buffer or a string");n.set(o,null);for(var a=0;a+i<=e.length-s.length+1;a++){for(var l=0;l=e.length},t};function VW(r){for(var e=0,t=0;t{var XW=require("stream").Transform,ave=require("util");function wa(r,e){if(!(this instanceof wa))return new wa;XW.call(this);var t=typeof r=="object"?r.pattern:r;this.pattern=Buffer.isBuffer(t)?t:Buffer.from(t),this.requiredLength=this.pattern.length,r.requiredExtraSize&&(this.requiredLength+=r.requiredExtraSize),this.data=new Buffer(""),this.bytesSoFar=0,this.matchFn=e}ave.inherits(wa,XW);wa.prototype.checkDataChunk=function(r){var e=this.data.length>=this.requiredLength;if(!!e){var t=this.data.indexOf(this.pattern,r?1:0);if(t>=0&&t+this.requiredLength>this.data.length){if(t>0){var i=this.data.slice(0,t);this.push(i),this.bytesSoFar+=t,this.data=this.data.slice(t)}return}if(t===-1){var n=this.data.length-this.requiredLength+1,i=this.data.slice(0,n);this.push(i),this.bytesSoFar+=n,this.data=this.data.slice(n);return}if(t>0){var i=this.data.slice(0,t);this.data=this.data.slice(t),this.push(i),this.bytesSoFar+=t}var o=this.matchFn?this.matchFn(this.data,this.bytesSoFar):!0;if(o){this.data=new Buffer("");return}return!0}};wa.prototype._transform=function(r,e,t){this.data=Buffer.concat([this.data,r]);for(var i=!0;this.checkDataChunk(!i);)i=!1;t()};wa.prototype._flush=function(r){if(this.data.length>0)for(var e=!0;this.checkDataChunk(!e);)e=!1;this.data.length>0&&(this.push(this.data),this.data=null),r()};YW.exports=wa});var e5=v((nLe,QW)=>{"use strict";var tE=require("stream"),lve=require("util").inherits;function Ap(){if(!(this instanceof Ap))return new Ap;tE.PassThrough.call(this),this.path=null,this.type=null,this.isDirectory=!1}lve(Ap,tE.PassThrough);Ap.prototype.autodrain=function(){return this.pipe(new tE.Transform({transform:function(r,e,t){t()}}))};QW.exports=Ap});var iE=v((oLe,t5)=>{"use strict";var ns=JW(),rE=require("stream"),uve=require("util"),cve=require("zlib"),fve=ZW(),r5=e5(),oe={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99},Op=4294967296,pve=67324752,dve=134695760,hve=33639248,mve=101075792,gve=117853008,vve=101010256;function zt(r){if(!(this instanceof zt))return new zt(r);rE.Transform.call(this),this.options=r||{},this.data=new Buffer(""),this.state=oe.STREAM_START,this.skippedBytes=0,this.parsedEntity=null,this.outStreamInfo={}}uve.inherits(zt,rE.Transform);zt.prototype.processDataChunk=function(r){var e;switch(this.state){case oe.STREAM_START:case oe.START:e=4;break;case oe.LOCAL_FILE_HEADER:e=26;break;case oe.LOCAL_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case oe.DATA_DESCRIPTOR:e=12;break;case oe.CENTRAL_DIRECTORY_FILE_HEADER:e=42;break;case oe.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:e=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case oe.CDIR64_END:e=52;break;case oe.CDIR64_END_DATA_SECTOR:e=this.parsedEntity.centralDirectoryRecordSize-44;break;case oe.CDIR64_LOCATOR:e=16;break;case oe.CENTRAL_DIRECTORY_END:e=18;break;case oe.CENTRAL_DIRECTORY_END_COMMENT:e=this.parsedEntity.commentLength;break;case oe.FILE_DATA:return 0;case oe.FILE_DATA_END:return 0;case oe.TRAILING_JUNK:return this.options.debug&&console.log("found",r.length,"bytes of TRAILING_JUNK"),r.length;default:return r.length}var t=r.length;if(t>>8,(o&255)==80){s=a;break}return this.skippedBytes+=s,this.options.debug&&console.log("Skipped",this.skippedBytes,"bytes"),s}this.state=oe.ERROR;var l=n?"Not a valid zip file":"Invalid signature in zip file";if(this.options.debug){var u=r.readUInt32LE(0),c;try{c=r.slice(0,4).toString()}catch(E){}console.log("Unexpected signature in zip file: 0x"+u.toString(16),'"'+c+'", skipped',this.skippedBytes,"bytes")}return this.emit("error",new Error(l)),r.length}return this.skippedBytes=0,e;case oe.LOCAL_FILE_HEADER:return this.parsedEntity=this._readFile(r),this.state=oe.LOCAL_FILE_HEADER_SUFFIX,e;case oe.LOCAL_FILE_HEADER_SUFFIX:var f=new r5,p=(this.parsedEntity.flags&2048)!=0;f.path=this._decodeString(r.slice(0,this.parsedEntity.fileNameLength),p);var d=r.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),h=this._readExtraFields(d);if(h&&h.parsed&&(h.parsed.path&&!p&&(f.path=h.parsed.path),Number.isFinite(h.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===Op-1&&(this.parsedEntity.uncompressedSize=h.parsed.uncompressedSize),Number.isFinite(h.parsed.compressedSize)&&this.parsedEntity.compressedSize===Op-1&&(this.parsedEntity.compressedSize=h.parsed.compressedSize)),this.parsedEntity.extra=h.parsed||{},this.options.debug){let E=Object.assign({},this.parsedEntity,{path:f.path,flags:"0x"+this.parsedEntity.flags.toString(16),extraFields:h&&h.debug});console.log("decoded LOCAL_FILE_HEADER:",JSON.stringify(E,null,2))}return this._prepareOutStream(this.parsedEntity,f),this.emit("entry",f),this.state=oe.FILE_DATA,e;case oe.CENTRAL_DIRECTORY_FILE_HEADER:return this.parsedEntity=this._readCentralDirectoryEntry(r),this.state=oe.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX,e;case oe.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var p=(this.parsedEntity.flags&2048)!=0,m=this._decodeString(r.slice(0,this.parsedEntity.fileNameLength),p),d=r.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength),h=this._readExtraFields(d);h&&h.parsed&&h.parsed.path&&!p&&(m=h.parsed.path),this.parsedEntity.extra=h.parsed;var y=(this.parsedEntity.versionMadeBy&65280)>>8==3,g,w;if(y){g=this.parsedEntity.externalFileAttributes>>>16;var x=g>>>12;w=(x&10)==10}if(this.options.debug){let E=Object.assign({},this.parsedEntity,{path:m,flags:"0x"+this.parsedEntity.flags.toString(16),unixAttrs:g&&"0"+g.toString(8),isSymlink:w,extraFields:h.debug});console.log("decoded CENTRAL_DIRECTORY_FILE_HEADER:",JSON.stringify(E,null,2))}return this.state=oe.START,e;case oe.CDIR64_END:return this.parsedEntity=this._readEndOfCentralDirectory64(r),this.options.debug&&console.log("decoded CDIR64_END_RECORD:",this.parsedEntity),this.state=oe.CDIR64_END_DATA_SECTOR,e;case oe.CDIR64_END_DATA_SECTOR:return this.state=oe.START,e;case oe.CDIR64_LOCATOR:return this.state=oe.START,e;case oe.CENTRAL_DIRECTORY_END:return this.parsedEntity=this._readEndOfCentralDirectory(r),this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END:",this.parsedEntity),this.state=oe.CENTRAL_DIRECTORY_END_COMMENT,e;case oe.CENTRAL_DIRECTORY_END_COMMENT:return this.options.debug&&console.log("decoded CENTRAL_DIRECTORY_END_COMMENT:",r.slice(0,e).toString()),this.state=oe.TRAILING_JUNK,e;case oe.ERROR:return r.length;default:return console.log("didn't handle state #",this.state,"discarding"),r.length}};zt.prototype._prepareOutStream=function(r,e){var t=this,i=r.uncompressedSize===0&&/[\/\\]$/.test(e.path);e.path=e.path.replace(/^([/\\]*[.]+[/\\]+)*[/\\]*/,""),e.type=i?"Directory":"File",e.isDirectory=i;var n=!(r.flags&8);n&&(e.size=r.uncompressedSize);var o=r.versionsNeededToExtract<=45;if(this.outStreamInfo={stream:null,limit:n?r.compressedSize:-1,written:0},n)this.outStreamInfo.stream=new rE.PassThrough;else{var s=new Buffer(4);s.writeUInt32LE(dve,0);var a=r.extra.zip64Mode,l=a?20:12,u={pattern:s,requiredExtraSize:l},c=new fve(u,function(m,y){var g=t._readDataDescriptor(m,a),w=g.compressedSize===y;if(!a&&!w&&y>=Op)for(var x=y-Op;x>=0&&(w=g.compressedSize===x,!w);)x-=Op;if(!!w){t.state=oe.FILE_DATA_END;var E=a?24:16;return t.data.length>0?t.data=Buffer.concat([m.slice(E),t.data]):t.data=m.slice(E),!0}});this.outStreamInfo.stream=c}var f=r.flags&1||r.flags&64;if(f||!o){var p=f?"Encrypted files are not supported!":"Zip version "+Math.floor(r.versionsNeededToExtract/10)+"."+r.versionsNeededToExtract%10+" is not supported";e.skip=!0,setImmediate(()=>{e.emit("error",new Error(p))}),this.outStreamInfo.stream.pipe(new r5().autodrain());return}var d=r.compressionMethod>0;if(d){var h=cve.createInflateRaw();h.on("error",function(m){t.state=oe.ERROR,t.emit("error",m)}),this.outStreamInfo.stream.pipe(h).pipe(e)}else this.outStreamInfo.stream.pipe(e);this._drainAllEntries&&e.autodrain()};zt.prototype._readFile=function(r){var e=ns.parse(r).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return e};zt.prototype._readExtraFields=function(r){var e={},t={parsed:e};this.options.debug&&(t.debug=[]);for(var i=0;i=l+4&&a&1&&(e.mtime=new Date(r.readUInt32LE(i+l)*1e3),l+=4),n.extraSize>=l+4&&a&2&&(e.atime=new Date(r.readUInt32LE(i+l)*1e3),l+=4),n.extraSize>=l+4&&a&4&&(e.ctime=new Date(r.readUInt32LE(i+l)*1e3));break;case 28789:o="Info-ZIP Unicode Path Extra Field";var u=r.readUInt8(i);if(u===1){var l=1,c=r.readUInt32LE(i+l);l+=4;var f=r.slice(i+l);e.path=f.toString()}break;case 13:case 22613:o=n.extraId===13?"PKWARE Unix":"Info-ZIP UNIX (type 1)";var l=0;if(n.extraSize>=8){var p=new Date(r.readUInt32LE(i+l)*1e3);l+=4;var d=new Date(r.readUInt32LE(i+l)*1e3);if(l+=4,e.atime=p,e.mtime=d,n.extraSize>=12){var h=r.readUInt16LE(i+l);l+=2;var m=r.readUInt16LE(i+l);l+=2,e.uid=h,e.gid=m}}break;case 30805:o="Info-ZIP UNIX (type 2)";var l=0;if(n.extraSize>=4){var h=r.readUInt16LE(i+l);l+=2;var m=r.readUInt16LE(i+l);l+=2,e.uid=h,e.gid=m}break;case 30837:o="Info-ZIP New Unix";var l=0,y=r.readUInt8(i);if(l+=1,y===1){var g=r.readUInt8(i+l);l+=1,g<=6&&(e.uid=r.readUIntLE(i+l,g)),l+=g;var w=r.readUInt8(i+l);l+=1,w<=6&&(e.gid=r.readUIntLE(i+l,w))}break;case 30062:o="ASi Unix";var l=0;if(n.extraSize>=14){var x=r.readUInt32LE(i+l);l+=4;var E=r.readUInt16LE(i+l);l+=2;var P=r.readUInt32LE(i+l);l+=4;var h=r.readUInt16LE(i+l);l+=2;var m=r.readUInt16LE(i+l);if(l+=2,e.mode=E,e.uid=h,e.gid=m,n.extraSize>14){var k=i+l,_=i+n.extraSize-14,L=this._decodeString(r.slice(k,_));e.symlink=L}}break}this.options.debug&&t.debug.push({extraId:"0x"+n.extraId.toString(16),description:o,data:r.slice(i,i+n.extraSize).inspect()}),i+=n.extraSize}return t};zt.prototype._readDataDescriptor=function(r,e){if(e){var t=ns.parse(r).word32lu("dataDescriptorSignature").word32lu("crc32").word64lu("compressedSize").word64lu("uncompressedSize").vars;return t}var t=ns.parse(r).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return t};zt.prototype._readCentralDirectoryEntry=function(r){var e=ns.parse(r).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return e};zt.prototype._readEndOfCentralDirectory64=function(r){var e=ns.parse(r).word64lu("centralDirectoryRecordSize").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskNumberWithCentralDirectoryStart").word64lu("centralDirectoryEntries").word64lu("totalCentralDirectoryEntries").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;return e};zt.prototype._readEndOfCentralDirectory=function(r){var e=ns.parse(r).word16lu("diskNumber").word16lu("diskStart").word16lu("centralDirectoryEntries").word16lu("totalCentralDirectoryEntries").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return e};var yve="\0\u263A\u263B\u2665\u2666\u2663\u2660\u2022\u25D8\u25CB\u25D9\u2642\u2640\u266A\u266B\u263C\u25BA\u25C4\u2195\u203C\xB6\xA7\u25AC\u21A8\u2191\u2193\u2192\u2190\u221F\u2194\u25B2\u25BC !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\u2302\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xA2\xA3\xA5\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0 ";zt.prototype._decodeString=function(r,e){if(e)return r.toString("utf8");if(this.options.decodeString)return this.options.decodeString(r);let t="";for(var i=0;i0&&(this.data=this.data.slice(t),this.data.length!==0););if(this.state===oe.FILE_DATA){if(this.outStreamInfo.limit>=0){var i=this.outStreamInfo.limit-this.outStreamInfo.written,n;i{if(this.state===oe.FILE_DATA_END)return this.state=oe.START,o.end(e);e()})}return}e()};zt.prototype.drainAll=function(){this._drainAllEntries=!0};zt.prototype._transform=function(r,e,t){var i=this;i.data.length>0?i.data=Buffer.concat([i.data,r]):i.data=r;var n=i.data.length,o=function(){if(i.data.length>0&&i.data.length0){e._parseOrOutput("buffer",function(){if(e.data.length>0)return setImmediate(function(){e._flush(r)});r()});return}if(e.state===oe.FILE_DATA)return r(new Error("Stream finished in an invalid state, uncompression failed"));setImmediate(r)};t5.exports=zt});var n5=v((sLe,i5)=>{var Lp=require("stream").Transform,bve=require("util"),wve=iE();function os(r){if(!(this instanceof os))return new os(r);var e=r||{};Lp.call(this,{readableObjectMode:!0}),this.opts=r||{},this.unzipStream=new wve(this.opts);var t=this;this.unzipStream.on("entry",function(i){t.push(i)}),this.unzipStream.on("error",function(i){t.emit("error",i)})}bve.inherits(os,Lp);os.prototype._transform=function(r,e,t){this.unzipStream.write(r,e,t)};os.prototype._flush=function(r){var e=this;this.unzipStream.end(function(){process.nextTick(function(){e.emit("close")}),r()})};os.prototype.on=function(r,e){return r==="entry"?Lp.prototype.on.call(this,"data",e):Lp.prototype.on.call(this,r,e)};os.prototype.drainAll=function(){return this.unzipStream.drainAll(),this.pipe(new Lp({objectMode:!0,transform:function(r,e,t){t()}}))};i5.exports=os});var l5=v((aLe,o5)=>{var Mp=require("path"),s5=require("fs"),a5=parseInt("0777",8);o5.exports=Pu.mkdirp=Pu.mkdirP=Pu;function Pu(r,e,t,i){typeof e=="function"?(t=e,e={}):(!e||typeof e!="object")&&(e={mode:e});var n=e.mode,o=e.fs||s5;n===void 0&&(n=a5),i||(i=null);var s=t||function(){};r=Mp.resolve(r),o.mkdir(r,n,function(a){if(!a)return i=i||r,s(null,i);switch(a.code){case"ENOENT":if(Mp.dirname(r)===r)return s(a);Pu(Mp.dirname(r),e,function(l,u){l?s(l,u):Pu(r,e,s,u)});break;default:o.stat(r,function(l,u){l||!u.isDirectory()?s(a,i):s(null,i)});break}})}Pu.sync=function r(e,t,i){(!t||typeof t!="object")&&(t={mode:t});var n=t.mode,o=t.fs||s5;n===void 0&&(n=a5),i||(i=null),e=Mp.resolve(e);try{o.mkdirSync(e,n),i=i||e}catch(a){switch(a.code){case"ENOENT":i=r(Mp.dirname(e),t,i),r(e,t,i);break;default:var s;try{s=o.statSync(e)}catch(l){throw a}if(!s.isDirectory())throw a;break}}return i}});var p5=v((lLe,u5)=>{var xve=require("fs"),c5=require("path"),Dve=require("util"),Sve=l5(),f5=require("stream").Transform,Eve=iE();function ss(r){if(!(this instanceof ss))return new ss(r);f5.call(this),this.opts=r||{},this.unzipStream=new Eve(this.opts),this.unfinishedEntries=0,this.afterFlushWait=!1,this.createdDirectories={};var e=this;this.unzipStream.on("entry",this._processEntry.bind(this)),this.unzipStream.on("error",function(t){e.emit("error",t)})}Dve.inherits(ss,f5);ss.prototype._transform=function(r,e,t){this.unzipStream.write(r,e,t)};ss.prototype._flush=function(r){var e=this,t=function(){process.nextTick(function(){e.emit("close")}),r()};this.unzipStream.end(function(){if(e.unfinishedEntries>0)return e.afterFlushWait=!0,e.on("await-finished",t);t()})};ss.prototype._processEntry=function(r){var e=this,t=c5.join(this.opts.path,r.path),i=r.isDirectory?t:c5.dirname(t);this.unfinishedEntries++;var n=function(){var o=xve.createWriteStream(t);o.on("close",function(){e.unfinishedEntries--,e._notifyAwaiter()}),o.on("error",function(s){e.emit("error",s)}),r.pipe(o)};if(this.createdDirectories[i]||i===".")return n();Sve(i,function(o){if(o)return e.emit("error",o);if(e.createdDirectories[i]=!0,r.isDirectory){e.unfinishedEntries--,e._notifyAwaiter();return}n()})};ss.prototype._notifyAwaiter=function(){this.afterFlushWait&&this.unfinishedEntries===0&&(this.emit("await-finished"),this.afterFlushWait=!1)};u5.exports=ss});var d5=v(nE=>{"use strict";nE.Parse=n5();nE.Extract=p5()});var m5=v((cLe,h5)=>{"use strict";function Cve(){}function cv(r,e){let t=cv.spread(r,e),i=t.then(n=>n[0]);return i.cancel=t.cancel,i}(function(r){function e(t,i){let n=null,o=new Promise((s,a)=>{function l(){t.removeListener(i,u),t.removeListener("error",c),o.cancel=Cve}function u(...f){l(),s(f)}function c(f){l(),a(f)}n=l,t.on(i,u),t.on("error",c)});if(!n)throw new TypeError("Could not get `cancel()` function");return o.cancel=n,o}r.spread=e})(cv||(cv={}));h5.exports=cv});var g5=v(oE=>{"use strict";Object.defineProperty(oE,"__esModule",{value:!0});function _ve(r){return function(e,t){return new Promise((i,n)=>{r.call(this,e,t,(o,s)=>{o?n(o):i(s)})})}}oE.default=_ve});var lE=v((sE,v5)=>{"use strict";var y5=sE&&sE.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},Pve=require("events"),Tve=y5(vt()),Rve=y5(g5()),Np=Tve.default("agent-base");function kve(r){return Boolean(r)&&typeof r.addRequest=="function"}function aE(){let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
-`).some(e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1)}function fv(r,e){return new fv.Agent(r,e)}(function(r){class e extends Pve.EventEmitter{constructor(i,n){super();let o=n;typeof i=="function"?this.callback=i:i&&(o=i),this.timeout=null,o&&typeof o.timeout=="number"&&(this.timeout=o.timeout),this.maxFreeSockets=1,this.maxSockets=1,this.maxTotalSockets=Infinity,this.sockets={},this.freeSockets={},this.requests={},this.options={}}get defaultPort(){return typeof this.explicitDefaultPort=="number"?this.explicitDefaultPort:aE()?443:80}set defaultPort(i){this.explicitDefaultPort=i}get protocol(){return typeof this.explicitProtocol=="string"?this.explicitProtocol:aE()?"https:":"http:"}set protocol(i){this.explicitProtocol=i}callback(i,n,o){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(i,n){let o=Object.assign({},n);typeof o.secureEndpoint!="boolean"&&(o.secureEndpoint=aE()),o.host==null&&(o.host="localhost"),o.port==null&&(o.port=o.secureEndpoint?443:80),o.protocol==null&&(o.protocol=o.secureEndpoint?"https:":"http:"),o.host&&o.path&&delete o.path,delete o.agent,delete o.hostname,delete o._defaultAgent,delete o.defaultPort,delete o.createConnection,i._last=!0,i.shouldKeepAlive=!1;let s=!1,a=null,l=o.timeout||this.timeout,u=d=>{i._hadError||(i.emit("error",d),i._hadError=!0)},c=()=>{a=null,s=!0;let d=new Error(`A "socket" was not created for HTTP request before ${l}ms`);d.code="ETIMEOUT",u(d)},f=d=>{s||(a!==null&&(clearTimeout(a),a=null),u(d))},p=d=>{if(s)return;if(a!=null&&(clearTimeout(a),a=null),kve(d)){Np("Callback returned another Agent instance %o",d.constructor.name),d.addRequest(i,o);return}if(d){d.once("free",()=>{this.freeSocket(d,o)}),i.onSocket(d);return}let h=new Error(`no Duplex stream was returned to agent-base for \`${i.method} ${i.path}\``);u(h)};if(typeof this.callback!="function"){u(new Error("`callback` is not defined"));return}this.promisifiedCallback||(this.callback.length>=3?(Np("Converting legacy callback function to promise"),this.promisifiedCallback=Rve.default(this.callback)):this.promisifiedCallback=this.callback),typeof l=="number"&&l>0&&(a=setTimeout(c,l)),"port"in o&&typeof o.port!="number"&&(o.port=Number(o.port));try{Np("Resolving socket for %o request: %o",o.protocol,`${i.method} ${i.path}`),Promise.resolve(this.promisifiedCallback(i,o)).then(p,f)}catch(d){Promise.reject(d).catch(f)}}freeSocket(i,n){Np("Freeing socket %o %o",i.constructor.name,n),i.destroy()}destroy(){Np("Destroying agent %o",this.constructor.name)}}r.Agent=e,r.prototype=r.Agent.prototype})(fv||(fv={}));v5.exports=fv});var w5=v(xa=>{"use strict";var Ive=xa&&xa.__awaiter||function(r,e,t,i){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(c){try{u(i.next(c))}catch(f){s(f)}}function l(c){try{u(i.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):n(c.value).then(a,l)}u((i=i.apply(r,e||[])).next())})},qp=xa&&xa.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(xa,"__esModule",{value:!0});var Fve=qp(require("net")),Ave=qp(require("tls")),uE=qp(require("url")),Ove=qp(vt()),Lve=qp(m5()),Mve=lE(),as=Ove.default("http-proxy-agent");function Nve(r){return typeof r=="string"?/^https:?$/i.test(r):!1}var b5=class extends Mve.Agent{constructor(e){let t;if(typeof e=="string"?t=uE.default.parse(e):t=e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");as("Creating new HttpProxyAgent instance: %o",t),super(t);let i=Object.assign({},t);this.secureProxy=t.secureProxy||Nve(i.protocol),i.host=i.hostname||i.host,typeof i.port=="string"&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,t){return Ive(this,void 0,void 0,function*(){let{proxy:i,secureProxy:n}=this,o=uE.default.parse(e.path);o.protocol||(o.protocol="http:"),o.hostname||(o.hostname=t.hostname||t.host||null),o.port==null&&typeof t.port&&(o.port=String(t.port)),o.port==="80"&&delete o.port,e.path=uE.default.format(o),i.auth&&e.setHeader("Proxy-Authorization",`Basic ${Buffer.from(i.auth).toString("base64")}`);let s;if(n?(as("Creating `tls.Socket`: %o",i),s=Ave.default.connect(i)):(as("Creating `net.Socket`: %o",i),s=Fve.default.connect(i)),e._header){let a,l;as("Regenerating stored HTTP header string for request"),e._header=null,e._implicitHeader(),e.output&&e.output.length>0?(as("Patching connection write() output buffer with updated header"),a=e.output[0],l=a.indexOf(`\r
-\r
-`)+4,e.output[0]=e._header+a.substring(l),as("Output buffer: %o",e.output)):e.outputData&&e.outputData.length>0&&(as("Patching connection write() output buffer with updated header"),a=e.outputData[0].data,l=a.indexOf(`\r
-\r
-`)+4,e.outputData[0].data=e._header+a.substring(l),as("Output buffer: %o",e.outputData[0].data))}return yield Lve.default(s,"connect"),s})}};xa.default=b5});var D5=v((cE,x5)=>{"use strict";var qve=cE&&cE.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},fE=qve(w5());function pE(r){return new fE.default(r)}(function(r){r.HttpProxyAgent=fE.default,r.prototype=fE.default.prototype})(pE||(pE={}));x5.exports=pE});var S5=v($p=>{"use strict";var $ve=$p&&$p.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($p,"__esModule",{value:!0});var Bve=$ve(vt()),Bp=Bve.default("https-proxy-agent:parse-proxy-response");function jve(r){return new Promise((e,t)=>{let i=0,n=[];function o(){let f=r.read();f?c(f):r.once("readable",o)}function s(){r.removeListener("end",l),r.removeListener("error",u),r.removeListener("close",a),r.removeListener("readable",o)}function a(f){Bp("onclose had error %o",f)}function l(){Bp("onend")}function u(f){s(),Bp("onerror %o",f),t(f)}function c(f){n.push(f),i+=f.length;let p=Buffer.concat(n,i);if(p.indexOf(`\r
-\r
-`)===-1){Bp("have not received end of HTTP headers yet..."),o();return}let h=p.toString("ascii",0,p.indexOf(`\r
-`)),m=+h.split(" ")[1];Bp("got proxy server response: %o",h),e({statusCode:m,buffered:p})}r.on("error",u),r.on("close",a),r.on("end",l),o()})}$p.default=jve});var P5=v(Da=>{"use strict";var Uve=Da&&Da.__awaiter||function(r,e,t,i){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(c){try{u(i.next(c))}catch(f){s(f)}}function l(c){try{u(i.throw(c))}catch(f){s(f)}}function u(c){c.done?o(c.value):n(c.value).then(a,l)}u((i=i.apply(r,e||[])).next())})},Tu=Da&&Da.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Da,"__esModule",{value:!0});var E5=Tu(require("net")),C5=Tu(require("tls")),Wve=Tu(require("url")),Hve=Tu(require("assert")),zve=Tu(vt()),Gve=lE(),Vve=Tu(S5()),jp=zve.default("https-proxy-agent:agent"),_5=class extends Gve.Agent{constructor(e){let t;if(typeof e=="string"?t=Wve.default.parse(e):t=e,!t)throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!");jp("creating new HttpsProxyAgent instance: %o",t),super(t);let i=Object.assign({},t);this.secureProxy=t.secureProxy||Yve(i.protocol),i.host=i.hostname||i.host,typeof i.port=="string"&&(i.port=parseInt(i.port,10)),!i.port&&i.host&&(i.port=this.secureProxy?443:80),this.secureProxy&&!("ALPNProtocols"in i)&&(i.ALPNProtocols=["http 1.1"]),i.host&&i.path&&(delete i.path,delete i.pathname),this.proxy=i}callback(e,t){return Uve(this,void 0,void 0,function*(){let{proxy:i,secureProxy:n}=this,o;n?(jp("Creating `tls.Socket`: %o",i),o=C5.default.connect(i)):(jp("Creating `net.Socket`: %o",i),o=E5.default.connect(i));let s=Object.assign({},i.headers),l=`CONNECT ${`${t.host}:${t.port}`} HTTP/1.1\r
-`;i.auth&&(s["Proxy-Authorization"]=`Basic ${Buffer.from(i.auth).toString("base64")}`);let{host:u,port:c,secureEndpoint:f}=t;Jve(c,f)||(u+=`:${c}`),s.Host=u,s.Connection="close";for(let y of Object.keys(s))l+=`${y}: ${s[y]}\r
-`;let p=Vve.default(o);o.write(`${l}\r
-`);let{statusCode:d,buffered:h}=yield p;if(d===200){if(e.once("socket",Kve),t.secureEndpoint){let y=t.servername||t.host;if(!y)throw new Error('Could not determine "servername"');return jp("Upgrading socket connection to TLS"),C5.default.connect(Object.assign(Object.assign({},Xve(t,"host","hostname","path","port")),{socket:o,servername:y}))}return o}o.destroy();let m=new E5.default.Socket;return m.readable=!0,e.once("socket",y=>{jp("replaying proxy buffer for failed request"),Hve.default(y.listenerCount("data")>0),y.push(h),y.push(null)}),m})}};Da.default=_5;function Kve(r){r.resume()}function Jve(r,e){return Boolean(!e&&r===80||e&&r===443)}function Yve(r){return typeof r=="string"?/^https:?$/i.test(r):!1}function Xve(r,...e){let t={},i;for(i in r)e.includes(i)||(t[i]=r[i]);return t}});var R5=v((dE,T5)=>{"use strict";var Zve=dE&&dE.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},hE=Zve(P5());function mE(r){return new hE.default(r)}(function(r){r.HttpsProxyAgent=hE.default,r.prototype=hE.default.prototype})(mE||(mE={}));T5.exports=mE});var I5=v((mLe,k5)=>{"use strict";var Qve=["aborted","complete","headers","httpVersion","httpVersionMinor","httpVersionMajor","method","rawHeaders","rawTrailers","setTimeout","socket","statusCode","statusMessage","trailers","url"];k5.exports=(r,e)=>{if(e._readableState.autoDestroy)throw new Error("The second stream must have the `autoDestroy` option set to `false`");let t=new Set(Object.keys(r).concat(Qve)),i={};for(let n of t)n in e||(i[n]={get(){let o=r[n];return typeof o=="function"?o.bind(r):o},set(o){r[n]=o},enumerable:!0,configurable:!1});return Object.defineProperties(e,i),r.once("aborted",()=>{e.destroy(),e.emit("aborted")}),r.once("close",()=>{r.complete&&e.readable?e.once("end",()=>{e.emit("close")}):e.emit("close")}),e}});var A5=v((gLe,F5)=>{"use strict";var{Transform:eye,PassThrough:tye}=require("stream"),gE=require("zlib"),rye=I5();F5.exports=r=>{let e=(r.headers["content-encoding"]||"").toLowerCase();if(!["gzip","deflate","br"].includes(e))return r;let t=e==="br";if(t&&typeof gE.createBrotliDecompress!="function")return r.destroy(new Error("Brotli is not supported on Node.js < 12")),r;let i=!0,n=new eye({transform(a,l,u){i=!1,u(null,a)},flush(a){a()}}),o=new tye({autoDestroy:!1,destroy(a,l){r.destroy(),l(a)}}),s=t?gE.createBrotliDecompress():gE.createUnzip();return s.once("error",a=>{if(i&&!r.readable){o.end();return}o.destroy(a)}),rye(r,o),r.pipe(n).pipe(s).pipe(o),o}});var Hz=v(Vye=>{ho(Vye,{BaseLanguageClient:()=>xv,BasicList:()=>Nt,Buffer:()=>qu.Buffer,CancellationToken:()=>ie.CancellationToken,CancellationTokenSource:()=>ie.CancellationTokenSource,ClientState:()=>be,CloseAction:()=>no,CodeActionKind:()=>ie.CodeActionKind,CompletionItemKind:()=>ie.CompletionItemKind,CompletionTriggerKind:()=>ie.CompletionTriggerKind,ConfigurationTarget:()=>dt,Diagnostic:()=>ie.Diagnostic,DiagnosticSeverity:()=>ie.DiagnosticSeverity,DiagnosticTag:()=>ie.DiagnosticTag,Disposable:()=>ie.Disposable,Document:()=>rg,DocumentHighlightKind:()=>ie.DocumentHighlightKind,Emitter:()=>ie.Emitter,ErrorAction:()=>Fu,Event:()=>ie.Event,ExtensionType:()=>Yr,FileChangeType:()=>ie.FileChangeType,FileSystemWatcher:()=>og,FloatFactory:()=>mn,Highligher:()=>ls,InsertTextFormat:()=>ie.InsertTextFormat,LanguageClient:()=>Tv,Location:()=>ie.Location,LocationLink:()=>ie.LocationLink,MarkupKind:()=>ie.MarkupKind,MessageLevel:()=>gn,MessageTransports:()=>Vp,Mru:()=>Jl,Mutex:()=>ar,Neovim:()=>qu.Neovim,NotificationType:()=>ie.NotificationType,NotificationType0:()=>ie.NotificationType0,NullLogger:()=>iH,PatternType:()=>Jr,Position:()=>ie.Position,ProgressType:()=>Wz.ProgressType,ProposedFeatures:()=>Rv,Range:()=>ie.Range,RequestType:()=>ie.RequestType,RequestType0:()=>ie.RequestType0,RevealOutputChannelOn:()=>ii,ServiceStat:()=>ye,SettingMonitor:()=>jH,SignatureHelpTriggerKind:()=>ie.SignatureHelpTriggerKind,SourceType:()=>Xr,State:()=>ni,SymbolKind:()=>ie.SymbolKind,TextDocumentFeature:()=>Ve,TextEdit:()=>ie.TextEdit,TransportKind:()=>Gt,Uri:()=>$,Watchman:()=>ia,Window:()=>qu.Window,ansiparse:()=>jf,commands:()=>me,concurrent:()=>xf,diagnosticManager:()=>mt,disposeAll:()=>z,download:()=>Wp,events:()=>A,executable:()=>wf,extensions:()=>ge,fetch:()=>Ru,isRunning:()=>dq,languages:()=>B,listManager:()=>Kt,runCommand:()=>hn,services:()=>Vt,snippetManager:()=>At,sources:()=>Ge,wait:()=>He,watchFile:()=>Rl,window:()=>C,workspace:()=>b});var qu=S(qw()),ie=S(W()),Wz=S(bi())});var i9=v(Qye=>{ho(Qye,{default:()=>ebe,regist:()=>tbe});var r9=S(W()),uHe=U()("source-around"),Bv=class extends Tn{constructor(){super({name:"around",filepath:__filename})}doComplete(e){let{bufnr:t,input:i}=e;if(i.length===0)return null;let n=b.getDocument(t);if(!n)return null;let o=n.words,s=n.getMoreWords();return o.push(...s),o=this.filterWords(o,e),Promise.resolve({items:o.map(a=>({word:a,menu:this.menu}))})}},ebe=Bv;function tbe(r){return r.set("around",new Bv),r9.Disposable.create(()=>{r.delete("around")})}});var o9=v(rbe=>{ho(rbe,{default:()=>ibe,regist:()=>nbe});var n9=S(W()),dHe=U()("source-buffer"),jv=class extends Tn{constructor(){super({name:"buffer",filepath:__filename})}get ignoreGitignore(){return this.getConfig("ignoreGitignore",!0)}getWords(e){let{ignoreGitignore:t}=this,i=[];return b.documents.forEach(n=>{if(n.bufnr!=e&&!(t&&n.isIgnored))for(let o of n.words)i.includes(o)||i.push(o)}),i}doComplete(e){let{bufnr:t,input:i}=e;if(i.length==0)return null;let n=this.getWords(t);return n=this.filterWords(n,e),Promise.resolve({items:n.map(o=>({word:o,menu:this.menu}))})}},ibe=jv;function nbe(r){return r.set("buffer",new jv),n9.Disposable.create(()=>{r.delete("buffer")})}});var u9=v(obe=>{ho(obe,{default:()=>lbe,regist:()=>ube});var Uv=S(require("fs")),s9=S(ta()),oi=S(require("path")),a9=S(require("util")),l9=S(W()),sbe=U()("source-file"),abe=/(?:\.{0,2}|~|\$HOME|([\w]+)|)\/(?:[\w.@()-]+\/)*(?:[\w.@()-])*$/,Wv=class extends Tn{constructor(){super({name:"file",filepath:__filename})}resolveEnvVariables(e){let t=e;return t=t.replace(/%([^%]+)%/g,(i,n)=>process.env[n]),t=t.replace(/\$([A-Z_]+[A-Z0-9_]*)|\${([A-Z0-9_]*)}/gi,(i,n,o)=>process.env[n||o]),t}getPathOption(e){let{line:t,colnr:i}=e,n=Rt(t,0,i-1);if(n=this.resolveEnvVariables(n),!n||n.endsWith("//"))return null;let o=n.match(abe);if(o&&o.length){let s=b.expand(o[0]),a=o[0].match(/[^/]*$/)[0];return{pathstr:s,part:o[1],startcol:i-a.length-1,input:a}}return null}async getFileItem(e,t){let i=oi.default.join(e,t),n=await It(i);if(n){let o=n.isDirectory()?t+"/":t;return{word:t,abbr:o}}return null}filterFiles(e){let t=this.getConfig("ignoreHidden",!0),i=this.getConfig("ignorePatterns",[]);return e.filter(n=>{if(n==null||t&&n.startsWith("."))return!1;for(let o of i)if(s9.default(n,o,{dot:!0}))return!1;return!0})}async getItemsFromRoot(e,t){let i=[],n=e.endsWith("/")?e:oi.default.dirname(e),o=oi.default.isAbsolute(e)?n:oi.default.join(t,n);try{let s=await It(o);if(s&&s.isDirectory()){let a=await a9.default.promisify(Uv.default.readdir)(o);a=this.filterFiles(a);let l=await Promise.all(a.map(u=>this.getFileItem(o,u)));i=i.concat(l)}return i=i.filter(a=>a!=null),i}catch(s){return sbe.error("Error on list files:",s),i}}get trimSameExts(){return this.getConfig("trimSameExts",[])}async doComplete(e){let{col:t,filepath:i}=e,n=this.getPathOption(e);if(!n)return null;let{pathstr:o,part:s,startcol:a,input:l}=n;if(ag.word[0]===y)),{items:h.map(g=>{let w=oi.default.extname(g.word);return g.word=m&&w===f?g.word.replace(f,""):g.word,{word:`${u}${g.word}`,abbr:`${u}${g.abbr}`,menu:this.menu}})}}},lbe=Wv;function ube(r){return r.set("file",new Wv),l9.Disposable.create(()=>{r.delete("file")})}});var lo=v((L9e,F9)=>{"use strict";var hbe=un();F9.exports=hbe.call(Function.call,Object.prototype.hasOwnProperty)});var Yv=v((M9e,A9)=>{"use strict";var we,sd=SyntaxError,mbe=Function,Hu=TypeError,r_=function(r){try{return Function('"use strict"; return ('+r+").constructor;")()}catch(e){}},Ra=Object.getOwnPropertyDescriptor;if(Ra)try{Ra({},"")}catch(r){Ra=null}var i_=function(){throw new Hu},gbe=Ra?function(){try{return arguments.callee,i_}catch(r){try{return Ra(arguments,"callee").get}catch(e){return i_}}}():i_,zu=Li()(),ds=Object.getPrototypeOf||function(r){return r.__proto__},n_=r_("async function* () {}"),o_=n_?n_.prototype:we,O9=o_?o_.prototype:we,vbe=typeof Uint8Array=="undefined"?we:ds(Uint8Array),ad={"%AggregateError%":typeof AggregateError=="undefined"?we:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?we:ArrayBuffer,"%ArrayIteratorPrototype%":zu?ds([][Symbol.iterator]()):we,"%AsyncFromSyncIteratorPrototype%":we,"%AsyncFunction%":r_("async function () {}"),"%AsyncGenerator%":o_,"%AsyncGeneratorFunction%":n_,"%AsyncIteratorPrototype%":O9?ds(O9):we,"%Atomics%":typeof Atomics=="undefined"?we:Atomics,"%BigInt%":typeof BigInt=="undefined"?we:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?we:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?we:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?we:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?we:FinalizationRegistry,"%Function%":mbe,"%GeneratorFunction%":r_("function* () {}"),"%Int8Array%":typeof Int8Array=="undefined"?we:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?we:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?we:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":zu?ds(ds([][Symbol.iterator]())):we,"%JSON%":typeof JSON=="object"?JSON:we,"%Map%":typeof Map=="undefined"?we:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!zu?we:ds(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?we:Promise,"%Proxy%":typeof Proxy=="undefined"?we:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?we:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?we:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!zu?we:ds(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?we:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":zu?ds(""[Symbol.iterator]()):we,"%Symbol%":zu?Symbol:we,"%SyntaxError%":sd,"%ThrowTypeError%":gbe,"%TypedArray%":vbe,"%TypeError%":Hu,"%Uint8Array%":typeof Uint8Array=="undefined"?we:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?we:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?we:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?we:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?we:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?we:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?we:WeakSet},L9={"%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"]},Vv=un(),Kv=lo(),ybe=Vv.call(Function.call,Array.prototype.concat),bbe=Vv.call(Function.apply,Array.prototype.splice),M9=Vv.call(Function.call,String.prototype.replace),Jv=Vv.call(Function.call,String.prototype.slice),wbe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,xbe=/\\(\\)?/g,Dbe=function(e){var t=Jv(e,0,1),i=Jv(e,-1);if(t==="%"&&i!=="%")throw new sd("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&t!=="%")throw new sd("invalid intrinsic syntax, expected opening `%`");var n=[];return M9(e,wbe,function(o,s,a,l){n[n.length]=a?M9(l,xbe,"$1"):s||o}),n},Sbe=function(e,t){var i=e,n;if(Kv(L9,i)&&(n=L9[i],i="%"+n[0]+"%"),Kv(ad,i)){var o=ad[i];if(typeof o=="undefined"&&!t)throw new Hu("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:o}}throw new sd("intrinsic "+e+" does not exist!")};A9.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new Hu("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Hu('"allowMissing" argument must be a boolean');var i=Dbe(e),n=i.length>0?i[0]:"",o=Sbe("%"+n+"%",t),s=o.name,a=o.value,l=!1,u=o.alias;u&&(n=u[0],bbe(i,ybe([0,1],u)));for(var c=1,f=!0;c=i.length){var m=Ra(a,p);f=!!m,f&&"get"in m&&!("originalValue"in m.get)?a=m.get:a=a[p]}else f=Kv(a,p),a=a[p];f&&!l&&(ad[s]=a)}}return a}});var a_=v((N9e,Xv)=>{"use strict";var s_=un(),Zv=Yv(),N9=Zv("%Function.prototype.apply%"),q9=Zv("%Function.prototype.call%"),$9=Zv("%Reflect.apply%",!0)||s_.call(q9,N9),ld=Zv("%Object.defineProperty%",!0);if(ld)try{ld({},"a",{value:1})}catch(r){ld=null}Xv.exports=function(){return $9(s_,q9,arguments)};var B9=function(){return $9(s_,N9,arguments)};ld?ld(Xv.exports,"apply",{value:B9}):Xv.exports.apply=B9});var Oe=v((q9e,j9)=>{"use strict";var De,U9=SyntaxError,Ebe=Function,Gu=TypeError,l_=function(r){try{return Function('"use strict"; return ('+r+").constructor;")()}catch(e){}},ka=Object.getOwnPropertyDescriptor;if(ka)try{ka({},"")}catch(r){ka=null}var u_=function(){throw new Gu},Cbe=ka?function(){try{return arguments.callee,u_}catch(r){try{return ka(arguments,"callee").get}catch(e){return u_}}}():u_,Vu=Li()(),hs=Object.getPrototypeOf||function(r){return r.__proto__},c_=l_("async function* () {}"),f_=c_?c_.prototype:De,W9=f_?f_.prototype:De,_be=typeof Uint8Array=="undefined"?De:hs(Uint8Array),ud={"%AggregateError%":typeof AggregateError=="undefined"?De:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?De:ArrayBuffer,"%ArrayIteratorPrototype%":Vu?hs([][Symbol.iterator]()):De,"%AsyncFromSyncIteratorPrototype%":De,"%AsyncFunction%":l_("async function () {}"),"%AsyncGenerator%":f_,"%AsyncGeneratorFunction%":c_,"%AsyncIteratorPrototype%":W9?hs(W9):De,"%Atomics%":typeof Atomics=="undefined"?De:Atomics,"%BigInt%":typeof BigInt=="undefined"?De:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?De:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?De:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?De:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?De:FinalizationRegistry,"%Function%":Ebe,"%GeneratorFunction%":l_("function* () {}"),"%Int8Array%":typeof Int8Array=="undefined"?De:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?De:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?De:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Vu?hs(hs([][Symbol.iterator]())):De,"%JSON%":typeof JSON=="object"?JSON:De,"%Map%":typeof Map=="undefined"?De:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Vu?De:hs(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?De:Promise,"%Proxy%":typeof Proxy=="undefined"?De:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?De:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?De:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Vu?De:hs(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?De:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Vu?hs(""[Symbol.iterator]()):De,"%Symbol%":Vu?Symbol:De,"%SyntaxError%":U9,"%ThrowTypeError%":Cbe,"%TypedArray%":_be,"%TypeError%":Gu,"%Uint8Array%":typeof Uint8Array=="undefined"?De:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?De:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?De:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?De:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?De:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?De:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?De:WeakSet},H9={"%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"]},p_=un(),Qv=lo(),Pbe=p_.call(Function.call,Array.prototype.concat),Tbe=p_.call(Function.apply,Array.prototype.splice),z9=p_.call(Function.call,String.prototype.replace),Rbe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kbe=/\\(\\)?/g,Ibe=function(e){var t=[];return z9(e,Rbe,function(i,n,o,s){t[t.length]=o?z9(s,kbe,"$1"):n||i}),t},Fbe=function(e,t){var i=e,n;if(Qv(H9,i)&&(n=H9[i],i="%"+n[0]+"%"),Qv(ud,i)){var o=ud[i];if(typeof o=="undefined"&&!t)throw new Gu("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:o}}throw new U9("intrinsic "+e+" does not exist!")};j9.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new Gu("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Gu('"allowMissing" argument must be a boolean');var i=Ibe(e),n=i.length>0?i[0]:"",o=Fbe("%"+n+"%",t),s=o.name,a=o.value,l=!1,u=o.alias;u&&(n=u[0],Tbe(i,Pbe([0,1],u)));for(var c=1,f=!0;c=i.length){var d=ka(a,p);if(f=!!d,!t&&!(p in a))throw new Gu("base intrinsic for "+e+" exists, but the property is not available.");f&&"get"in d&&!("originalValue"in d.get)?a=d.get:a=a[p]}else f=Qv(a,p),a=a[p];f&&!l&&(ud[s]=a)}}return a}});var h_=v(($9e,ey)=>{"use strict";var d_=un(),ty=Oe(),G9=ty("%Function.prototype.apply%"),V9=ty("%Function.prototype.call%"),K9=ty("%Reflect.apply%",!0)||d_.call(V9,G9),cd=ty("%Object.defineProperty%",!0);if(cd)try{cd({},"a",{value:1})}catch(r){cd=null}ey.exports=function(){return K9(d_,V9,arguments)};var J9=function(){return K9(d_,G9,arguments)};cd?cd(ey.exports,"apply",{value:J9}):ey.exports.apply=J9});var Ia=v((B9e,Y9)=>{"use strict";var X9=Oe(),Z9=h_(),Abe=Z9(X9("String.prototype.indexOf"));Y9.exports=function(e,t){var i=X9(e,!!t);return typeof i=="function"&&Abe(e,".prototype.")?Z9(i):i}});var m_=v((j9e,Q9)=>{"use strict";var Obe=Oe(),Lbe=Ia(),Mbe=Obe("%Reflect.apply%",!0)||Lbe("%Function.prototype.apply%");Q9.exports=function(e,t){var i=arguments.length>2?arguments[2]:[];return Mbe(e,t,i)}});var t7=v((U9e,e7)=>{e7.exports=require("util").inspect});var E_=v((W9e,r7)=>{var g_=typeof Map=="function"&&Map.prototype,v_=Object.getOwnPropertyDescriptor&&g_?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ry=g_&&v_&&typeof v_.get=="function"?v_.get:null,Nbe=g_&&Map.prototype.forEach,y_=typeof Set=="function"&&Set.prototype,b_=Object.getOwnPropertyDescriptor&&y_?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,iy=y_&&b_&&typeof b_.get=="function"?b_.get:null,qbe=y_&&Set.prototype.forEach,$be=typeof WeakMap=="function"&&WeakMap.prototype,fd=$be?WeakMap.prototype.has:null,Bbe=typeof WeakSet=="function"&&WeakSet.prototype,pd=Bbe?WeakSet.prototype.has:null,jbe=Boolean.prototype.valueOf,Ube=Object.prototype.toString,Wbe=Function.prototype.toString,Hbe=String.prototype.match,zbe=typeof BigInt=="function"?BigInt.prototype.valueOf:null,i7=Object.getOwnPropertySymbols,Gbe=typeof Symbol=="function"?Symbol.prototype.toString:null,Vbe=Object.prototype.propertyIsEnumerable,w_=t7().custom,x_=w_&&n7(w_)?w_:null;r7.exports=function r(e,t,i,n){var o=t||{};if(Fa(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Fa(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==Infinity:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=Fa(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean")throw new TypeError('option "customInspect", if provided, must be `true` or `false`');if(Fa(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return a7(e,o);if(typeof e=="number")return e===0?Infinity/e>0?"0":"-0":String(e);if(typeof e=="bigint")return String(e)+"n";var a=typeof o.depth=="undefined"?5:o.depth;if(typeof i=="undefined"&&(i=0),i>=a&&a>0&&typeof e=="object")return D_(e)?"[Array]":"[Object]";var l=uwe(o,i);if(typeof n=="undefined")n=[];else if(s7(n,e)>=0)return"[Circular]";function u(P,k,_){if(k&&(n=n.slice(),n.push(k)),_){var L={depth:o.depth};return Fa(o,"quoteStyle")&&(L.quoteStyle=o.quoteStyle),r(P,L,i+1,n)}return r(P,o,i+1,n)}if(typeof e=="function"){var c=rwe(e),f=ny(e,u);return"[Function"+(c?": "+c:" (anonymous)")+"]"+(f.length>0?" { "+f.join(", ")+" }":"")}if(n7(e)){var p=Gbe.call(e);return typeof e=="object"?dd(p):p}if(awe(e)){for(var d="<"+String(e.nodeName).toLowerCase(),h=e.attributes||[],m=0;m",e.childNodes&&e.childNodes.length&&(d+="..."),d+=""+String(e.nodeName).toLowerCase()+">",d}if(D_(e)){if(e.length===0)return"[]";var y=ny(e,u);return l&&!lwe(y)?"["+S_(y,l)+"]":"[ "+y.join(", ")+" ]"}if(Xbe(e)){var g=ny(e,u);return g.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+g.join(", ")+" }"}if(typeof e=="object"&&s){if(x_&&typeof e[x_]=="function")return e[x_]();if(typeof e.inspect=="function")return e.inspect()}if(iwe(e)){var w=[];return Nbe.call(e,function(P,k){w.push(u(k,e,!0)+" => "+u(P,e))}),u7("Map",ry.call(e),w,l)}if(owe(e)){var x=[];return qbe.call(e,function(P){x.push(u(P,e))}),u7("Set",iy.call(e),x,l)}if(nwe(e))return l7("WeakMap");if(swe(e))return l7("WeakSet");if(Qbe(e))return dd(u(Number(e)));if(ewe(e))return dd(u(zbe.call(e)));if(twe(e))return dd(jbe.call(e));if(Zbe(e))return dd(u(String(e)));if(!Jbe(e)&&!Ybe(e)){var E=ny(e,u);return E.length===0?"{}":l?"{"+S_(E,l)+"}":"{ "+E.join(", ")+" }"}return String(e)};function o7(r,e,t){var i=(t.quoteStyle||e)==="double"?'"':"'";return i+r+i}function Kbe(r){return String(r).replace(/"/g,""")}function D_(r){return uo(r)==="[object Array]"}function Jbe(r){return uo(r)==="[object Date]"}function Ybe(r){return uo(r)==="[object RegExp]"}function Xbe(r){return uo(r)==="[object Error]"}function n7(r){return uo(r)==="[object Symbol]"}function Zbe(r){return uo(r)==="[object String]"}function Qbe(r){return uo(r)==="[object Number]"}function ewe(r){return uo(r)==="[object BigInt]"}function twe(r){return uo(r)==="[object Boolean]"}var cwe=Object.prototype.hasOwnProperty||function(r){return r in this};function Fa(r,e){return cwe.call(r,e)}function uo(r){return Ube.call(r)}function rwe(r){if(r.name)return r.name;var e=Hbe.call(Wbe.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function s7(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,i=r.length;te.maxStringLength){var t=r.length-e.maxStringLength,i="... "+t+" more character"+(t>1?"s":"");return a7(r.slice(0,e.maxStringLength),e)+i}var n=r.replace(/(['\\])/g,"\\$1").replace(/[\x00-\x1f]/g,fwe);return o7(n,"single",e)}function fwe(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+e.toString(16).toUpperCase()}function dd(r){return"Object("+r+")"}function l7(r){return r+" { ? }"}function u7(r,e,t,i){var n=i?S_(t,i):t.join(", ");return r+" ("+e+") {"+n+"}"}function lwe(r){for(var e=0;e=0)return!1;return!0}function uwe(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=Array(r.indent+1).join(" ");else return null;return{base:t,prev:Array(e+1).join(t)}}function S_(r,e){if(r.length===0)return"";var t=`
-`+e.prev+e.base;return t+r.join(","+t)+`
-`+e.prev}function ny(r,e){var t=D_(r),i=[];if(t){i.length=r.length;for(var n=0;n{"use strict";c7.exports=function(e){return typeof e=="string"||typeof e=="symbol"}});var p7=v((z9e,f7)=>{"use strict";f7.exports=function(e){if(e===null)return"Null";if(typeof e=="undefined")return"Undefined";if(typeof e=="function"||typeof e=="object")return"Object";if(typeof e=="number")return"Number";if(typeof e=="boolean")return"Boolean";if(typeof e=="string")return"String"}});var dr=v((G9e,d7)=>{"use strict";var pwe=p7();d7.exports=function(e){return typeof e=="symbol"?"Symbol":typeof e=="bigint"?"BigInt":pwe(e)}});var hd=v((V9e,h7)=>{"use strict";var dwe=Oe(),m7=dwe("%TypeError%"),hwe=E_(),mwe=Ku(),gwe=dr();h7.exports=function(e,t){if(gwe(e)!=="Object")throw new m7("Assertion failed: Type(O) is not Object");if(!mwe(t))throw new m7("Assertion failed: IsPropertyKey(P) is not true, got "+hwe(t));return e[t]}});var v7=v((K9e,g7)=>{"use strict";var vwe=Oe(),ywe=vwe("%TypeError%");g7.exports=function(e,t){if(e==null)throw new ywe(t||"Cannot call method on "+e);return e}});var C_=v((J9e,y7)=>{"use strict";y7.exports=v7()});var w7=v((Y9e,b7)=>{"use strict";var bwe=Oe(),wwe=bwe("%Object%"),xwe=C_();b7.exports=function(e){return xwe(e),wwe(e)}});var D7=v((X9e,x7)=>{"use strict";var Dwe=Oe(),Swe=Dwe("%TypeError%"),Ewe=Ku(),Cwe=w7();x7.exports=function(e,t){if(!Ewe(t))throw new Swe("Assertion failed: IsPropertyKey(P) is not true");var i=Cwe(e);return i[t]}});var C7=v((Z9e,S7)=>{"use strict";var E7=Function.prototype.toString,Ju=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,__,oy;if(typeof Ju=="function"&&typeof Object.defineProperty=="function")try{__=Object.defineProperty({},"length",{get:function(){throw oy}}),oy={},Ju(function(){throw 42},null,__)}catch(r){r!==oy&&(Ju=null)}else Ju=null;var _we=/^\s*class\b/,P_=function(e){try{var t=E7.call(e);return _we.test(t)}catch(i){return!1}},Pwe=function(e){try{return P_(e)?!1:(E7.call(e),!0)}catch(t){return!1}},Twe=Object.prototype.toString,Rwe="[object Function]",kwe="[object GeneratorFunction]",Iwe=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";S7.exports=Ju?function(e){if(!e||typeof e!="function"&&typeof e!="object")return!1;if(typeof e=="function"&&!e.prototype)return!0;try{Ju(e,null,__)}catch(t){if(t!==oy)return!1}return!P_(e)}:function(e){if(!e||typeof e!="function"&&typeof e!="object")return!1;if(typeof e=="function"&&!e.prototype)return!0;if(Iwe)return Pwe(e);if(P_(e))return!1;var t=Twe.call(e);return t===Rwe||t===kwe}});var sy=v((Q9e,_7)=>{"use strict";_7.exports=C7()});var R7=v((e7e,P7)=>{"use strict";var Fwe=Oe(),T7=Fwe("%TypeError%"),Awe=D7(),Owe=sy(),Lwe=Ku();P7.exports=function(e,t){if(!Lwe(t))throw new T7("Assertion failed: IsPropertyKey(P) is not true");var i=Awe(e,t);if(i!=null){if(!Owe(i))throw new T7(t+"is not a function");return i}}});var O7=v((t7e,k7)=>{"use strict";var Mwe=Li()(),I7=Mwe&&typeof Symbol.toStringTag=="symbol",F7,A7,T_,R_;I7&&(F7=Function.call.bind(Object.prototype.hasOwnProperty),A7=Function.call.bind(RegExp.prototype.exec),T_={},ay=function(){throw T_},R_={toString:ay,valueOf:ay},typeof Symbol.toPrimitive=="symbol"&&(R_[Symbol.toPrimitive]=ay));var ay,Nwe=Object.prototype.toString,qwe=Object.getOwnPropertyDescriptor,$we="[object RegExp]";k7.exports=I7?function(e){if(!e||typeof e!="object")return!1;var t=qwe(e,"lastIndex"),i=t&&F7(t,"value");if(!i)return!1;try{A7(e,R_)}catch(n){return n===T_}}:function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:Nwe.call(e)===$we}});var k_=v((r7e,L7)=>{"use strict";L7.exports=function(e){return!!e}});var q7=v((i7e,M7)=>{"use strict";var Bwe=Oe(),N7=Bwe("%Symbol.match%",!0),jwe=O7(),Uwe=k_();M7.exports=function(e){if(!e||typeof e!="object")return!1;if(N7){var t=e[N7];if(typeof t!="undefined")return Uwe(t)}return jwe(e)}});var ly=v((n7e,$7)=>{"use strict";var B7=Oe(),Wwe=B7("%String%"),Hwe=B7("%TypeError%");$7.exports=function(e){if(typeof e=="symbol")throw new Hwe("Cannot convert a Symbol value to a string");return Wwe(e)}});var I_=v((o7e,j7)=>{"use strict";var U7=Yv(),W7=a_(),zwe=W7(U7("String.prototype.indexOf"));j7.exports=function(e,t){var i=U7(e,!!t);return typeof i=="function"&&zwe(e,".prototype.")>-1?W7(i):i}});var $_=v((s7e,H7)=>{"use strict";var Z,md=TypeError,Aa=Object.getOwnPropertyDescriptor;if(Aa)try{Aa({},"")}catch(r){Aa=null}var F_=function(){throw new md},Gwe=Aa?function(){try{return arguments.callee,F_}catch(r){try{return Aa(arguments,"callee").get}catch(e){return F_}}}():F_,ms=Li()(),on=Object.getPrototypeOf||function(r){return r.__proto__},uy,A_=uy?on(uy):Z,z7,O_=z7?z7.constructor:Z,gd,L_=gd?on(gd):Z,M_=gd?gd():Z,N_=typeof Uint8Array=="undefined"?Z:on(Uint8Array),q_={"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Z:ArrayBuffer,"%ArrayBufferPrototype%":typeof ArrayBuffer=="undefined"?Z:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":ms?on([][Symbol.iterator]()):Z,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":Z,"%AsyncFunction%":O_,"%AsyncFunctionPrototype%":O_?O_.prototype:Z,"%AsyncGenerator%":gd?on(M_):Z,"%AsyncGeneratorFunction%":L_,"%AsyncGeneratorPrototype%":L_?L_.prototype:Z,"%AsyncIteratorPrototype%":M_&&ms&&Symbol.asyncIterator?M_[Symbol.asyncIterator]():Z,"%Atomics%":typeof Atomics=="undefined"?Z:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":typeof DataView=="undefined"?Z:DataView,"%DataViewPrototype%":typeof DataView=="undefined"?Z:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":typeof Float32Array=="undefined"?Z:Float32Array,"%Float32ArrayPrototype%":typeof Float32Array=="undefined"?Z:Float32Array.prototype,"%Float64Array%":typeof Float64Array=="undefined"?Z:Float64Array,"%Float64ArrayPrototype%":typeof Float64Array=="undefined"?Z:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":uy?on(uy()):Z,"%GeneratorFunction%":A_,"%GeneratorPrototype%":A_?A_.prototype:Z,"%Int8Array%":typeof Int8Array=="undefined"?Z:Int8Array,"%Int8ArrayPrototype%":typeof Int8Array=="undefined"?Z:Int8Array.prototype,"%Int16Array%":typeof Int16Array=="undefined"?Z:Int16Array,"%Int16ArrayPrototype%":typeof Int16Array=="undefined"?Z:Int8Array.prototype,"%Int32Array%":typeof Int32Array=="undefined"?Z:Int32Array,"%Int32ArrayPrototype%":typeof Int32Array=="undefined"?Z:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ms?on(on([][Symbol.iterator]())):Z,"%JSON%":typeof JSON=="object"?JSON:Z,"%JSONParse%":typeof JSON=="object"?JSON.parse:Z,"%Map%":typeof Map=="undefined"?Z:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ms?Z:on(new Map()[Symbol.iterator]()),"%MapPrototype%":typeof Map=="undefined"?Z:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Z:Promise,"%PromisePrototype%":typeof Promise=="undefined"?Z:Promise.prototype,"%PromiseProto_then%":typeof Promise=="undefined"?Z:Promise.prototype.then,"%Promise_all%":typeof Promise=="undefined"?Z:Promise.all,"%Promise_reject%":typeof Promise=="undefined"?Z:Promise.reject,"%Promise_resolve%":typeof Promise=="undefined"?Z:Promise.resolve,"%Proxy%":typeof Proxy=="undefined"?Z:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":typeof Reflect=="undefined"?Z:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":typeof Set=="undefined"?Z:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ms?Z:on(new Set()[Symbol.iterator]()),"%SetPrototype%":typeof Set=="undefined"?Z:Set.prototype,"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Z:SharedArrayBuffer,"%SharedArrayBufferPrototype%":typeof SharedArrayBuffer=="undefined"?Z:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":ms?on(""[Symbol.iterator]()):Z,"%StringPrototype%":String.prototype,"%Symbol%":ms?Symbol:Z,"%SymbolPrototype%":ms?Symbol.prototype:Z,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":Gwe,"%TypedArray%":N_,"%TypedArrayPrototype%":N_?N_.prototype:Z,"%TypeError%":md,"%TypeErrorPrototype%":md.prototype,"%Uint8Array%":typeof Uint8Array=="undefined"?Z:Uint8Array,"%Uint8ArrayPrototype%":typeof Uint8Array=="undefined"?Z:Uint8Array.prototype,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Z:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":typeof Uint8ClampedArray=="undefined"?Z:Uint8ClampedArray.prototype,"%Uint16Array%":typeof Uint16Array=="undefined"?Z:Uint16Array,"%Uint16ArrayPrototype%":typeof Uint16Array=="undefined"?Z:Uint16Array.prototype,"%Uint32Array%":typeof Uint32Array=="undefined"?Z:Uint32Array,"%Uint32ArrayPrototype%":typeof Uint32Array=="undefined"?Z:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":typeof WeakMap=="undefined"?Z:WeakMap,"%WeakMapPrototype%":typeof WeakMap=="undefined"?Z:WeakMap.prototype,"%WeakSet%":typeof WeakSet=="undefined"?Z:WeakSet,"%WeakSetPrototype%":typeof WeakSet=="undefined"?Z:WeakSet.prototype},Vwe=un(),G7=Vwe.call(Function.call,String.prototype.replace),Kwe=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Jwe=/\\(\\)?/g,Ywe=function(e){var t=[];return G7(e,Kwe,function(i,n,o,s){t[t.length]=o?G7(s,Jwe,"$1"):n||i}),t},Xwe=function(e,t){if(!(e in q_))throw new SyntaxError("intrinsic "+e+" does not exist!");if(typeof q_[e]=="undefined"&&!t)throw new md("intrinsic "+e+" exists, but is not available. Please file an issue!");return q_[e]};H7.exports=function(e,t){if(typeof e!="string"||e.length===0)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new TypeError('"allowMissing" argument must be a boolean');for(var i=Ywe(e),n=Xwe("%"+(i.length>0?i[0]:"")+"%",t),o=1;o=i.length){var s=Aa(n,i[o]);if(!t&&!(i[o]in n))throw new md("base intrinsic for "+e+" exists, but the property is not available.");n=s&&"get"in s&&!("originalValue"in s.get)?s.get:n[i[o]]}else n=n[i[o]];return n}});var X7=v((a7e,cy)=>{"use strict";var B_=un(),fy=$_(),V7=fy("%Function.prototype.apply%"),K7=fy("%Function.prototype.call%"),J7=fy("%Reflect.apply%",!0)||B_.call(K7,V7),vd=fy("%Object.defineProperty%",!0);if(vd)try{vd({},"a",{value:1})}catch(r){vd=null}cy.exports=function(){return J7(B_,K7,arguments)};var Y7=function(){return J7(B_,V7,arguments)};vd?vd(cy.exports,"apply",{value:Y7}):cy.exports.apply=Y7});var j_=v((l7e,Z7)=>{"use strict";var Zwe=Object,Qwe=TypeError;Z7.exports=function(){if(this!=null&&this!==Zwe(this))throw new Qwe("RegExp.prototype.flags getter called on non-object");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e}});var U_=v((u7e,Q7)=>{"use strict";var exe=j_(),txe=Fn().supportsDescriptors,rxe=Object.getOwnPropertyDescriptor,ixe=TypeError;Q7.exports=function(){if(!txe)throw new ixe("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");if(/a/mig.flags==="gim"){var e=rxe(RegExp.prototype,"flags");if(e&&typeof e.get=="function"&&typeof/a/.dotAll=="boolean")return e.get}return exe}});var rG=v((c7e,eG)=>{"use strict";var nxe=Fn().supportsDescriptors,oxe=U_(),sxe=Object.getOwnPropertyDescriptor,axe=Object.defineProperty,lxe=TypeError,tG=Object.getPrototypeOf,uxe=/a/;eG.exports=function(){if(!nxe||!tG)throw new lxe("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=oxe(),t=tG(uxe),i=sxe(t,"flags");return(!i||i.get!==e)&&axe(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}});var W_=v((f7e,iG)=>{"use strict";var cxe=Fn(),fxe=X7(),nG=j_(),pxe=U_(),dxe=rG(),oG=fxe(nG);cxe(oG,{getPolyfill:pxe,implementation:nG,shim:dxe});iG.exports=oG});var py=v((p7e,sG)=>{"use strict";sG.exports=Number.isNaN||function(e){return e!==e}});var H_=v((d7e,aG)=>{"use strict";var lG=py();aG.exports=function(e,t){return e===t?e===0?1/e==1/t:!0:lG(e)&&lG(t)}});var z_=v((h7e,uG)=>{"use strict";var hxe=Oe(),dy=hxe("%TypeError%"),mxe=Ku(),cG=H_(),fG=dr(),pG=function(){try{return delete[].length,!0}catch(r){return!1}}();uG.exports=function(e,t,i,n){if(fG(e)!=="Object")throw new dy("Assertion failed: `O` must be an Object");if(!mxe(t))throw new dy("Assertion failed: `P` must be a Property Key");if(fG(n)!=="Boolean")throw new dy("Assertion failed: `Throw` must be a Boolean");if(n){if(e[t]=i,pG&&!cG(e[t],i))throw new dy("Attempted to assign to readonly property.");return!0}else try{return e[t]=i,pG?cG(e[t],i):!0}catch(o){return!1}}});var hG=v((m7e,dG)=>{"use strict";var gxe=Oe(),vxe=lo(),yxe=gxe("%TypeError%");dG.exports=function(e,t){if(e.Type(t)!=="Object")return!1;var i={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in t)if(vxe(t,n)&&!i[n])return!1;if(e.IsDataDescriptor(t)&&e.IsAccessorDescriptor(t))throw new yxe("Property Descriptors may not be both accessor and data descriptors");return!0}});var gG=v((g7e,mG)=>{"use strict";var bxe=Oe(),yd=bxe("%Object.defineProperty%",!0);if(yd)try{yd({},"a",{value:1})}catch(r){yd=null}var wxe=Ia(),xxe=wxe("Object.prototype.propertyIsEnumerable");mG.exports=function(e,t,i,n,o,s){if(!yd){if(!e(s)||!s["[[Configurable]]"]||!s["[[Writable]]"]||o in n&&xxe(n,o)!==!!s["[[Enumerable]]"])return!1;var a=s["[[Value]]"];return n[o]=a,t(n[o],a)}return yd(n,o,i(s)),!0}});var my=v((v7e,vG)=>{"use strict";var yG=Oe(),bG=yG("%TypeError%"),Dxe=yG("%SyntaxError%"),hy=lo(),Sxe={"Property Descriptor":function(e,t){if(e(t)!=="Object")return!1;var i={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var n in t)if(hy(t,n)&&!i[n])return!1;var o=hy(t,"[[Value]]"),s=hy(t,"[[Get]]")||hy(t,"[[Set]]");if(o&&s)throw new bG("Property Descriptors may not be both accessor and data descriptors");return!0}};vG.exports=function(e,t,i,n){var o=Sxe[t];if(typeof o!="function")throw new Dxe("unknown record type: "+t);if(!o(e,n))throw new bG(i+" must be a "+t)}});var xG=v((y7e,wG)=>{"use strict";var Exe=my(),Cxe=dr();wG.exports=function(e){if(typeof e=="undefined")return e;Exe(Cxe,"Property Descriptor","Desc",e);var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=e["[[Configurable]]"]),t}});var EG=v((b7e,DG)=>{"use strict";var SG=lo(),_xe=my(),Pxe=dr();DG.exports=function(e){return!(typeof e=="undefined"||(_xe(Pxe,"Property Descriptor","Desc",e),!SG(e,"[[Get]]")&&!SG(e,"[[Set]]")))}});var PG=v((w7e,CG)=>{"use strict";var _G=lo(),Txe=my(),Rxe=dr();CG.exports=function(e){return!(typeof e=="undefined"||(Txe(Rxe,"Property Descriptor","Desc",e),!_G(e,"[[Value]]")&&!_G(e,"[[Writable]]")))}});var kG=v((x7e,TG)=>{"use strict";var Rn=lo(),kxe=Oe(),gy=kxe("%TypeError%"),Ixe=dr(),G_=k_(),RG=sy();TG.exports=function(e){if(Ixe(e)!=="Object")throw new gy("ToPropertyDescriptor requires an object");var t={};if(Rn(e,"enumerable")&&(t["[[Enumerable]]"]=G_(e.enumerable)),Rn(e,"configurable")&&(t["[[Configurable]]"]=G_(e.configurable)),Rn(e,"value")&&(t["[[Value]]"]=e.value),Rn(e,"writable")&&(t["[[Writable]]"]=G_(e.writable)),Rn(e,"get")){var i=e.get;if(typeof i!="undefined"&&!RG(i))throw new gy("getter must be a function");t["[[Get]]"]=i}if(Rn(e,"set")){var n=e.set;if(typeof n!="undefined"&&!RG(n))throw new gy("setter must be a function");t["[[Set]]"]=n}if((Rn(t,"[[Get]]")||Rn(t,"[[Set]]"))&&(Rn(t,"[[Value]]")||Rn(t,"[[Writable]]")))throw new gy("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}});var OG=v((D7e,IG)=>{"use strict";var Fxe=Oe(),V_=Fxe("%TypeError%"),FG=hG(),Axe=gG(),Oxe=xG(),AG=EG(),K_=PG(),Lxe=Ku(),Mxe=H_(),Nxe=kG(),J_=dr();IG.exports=function(e,t,i){if(J_(e)!=="Object")throw new V_("Assertion failed: Type(O) is not Object");if(!Lxe(t))throw new V_("Assertion failed: IsPropertyKey(P) is not true");var n=FG({Type:J_,IsDataDescriptor:K_,IsAccessorDescriptor:AG},i)?i:Nxe(i);if(!FG({Type:J_,IsDataDescriptor:K_,IsAccessorDescriptor:AG},n))throw new V_("Assertion failed: Desc is not a valid Property Descriptor");return Axe(K_,Mxe,Oxe,e,t,n)}});var MG=v((S7e,Y_)=>{"use strict";var qxe=Oe(),LG=qxe("%Reflect.construct%",!0),vy=OG();try{vy({},"",{"[[Get]]":function(){}})}catch(r){vy=null}vy&&LG?(X_={},Z_={},vy(Z_,"length",{"[[Get]]":function(){throw X_},"[[Enumerable]]":!0}),Y_.exports=function(e){try{LG(e,Z_)}catch(t){return t===X_}}):Y_.exports=function(e){return typeof e=="function"&&!!e.prototype};var X_,Z_});var jG=v((E7e,NG)=>{"use strict";var qG=Oe(),$G=qG("%Symbol.species%",!0),Q_=qG("%TypeError%"),$xe=MG(),BG=dr();NG.exports=function(e,t){if(BG(e)!=="Object")throw new Q_("Assertion failed: Type(O) is not Object");var i=e.constructor;if(typeof i=="undefined")return t;if(BG(i)!=="Object")throw new Q_("O.constructor is not an Object");var n=$G?i[$G]:void 0;if(n==null)return t;if($xe(n))return n;throw new Q_("no constructor found")}});var eP=v((C7e,UG)=>{"use strict";var WG=Oe(),Bxe=WG("%Math%"),jxe=WG("%Number%");UG.exports=jxe.MAX_SAFE_INTEGER||Bxe.pow(2,53)-1});var zG=v((_7e,HG)=>{"use strict";var Uxe=Oe(),Wxe=Uxe("%Math.abs%");HG.exports=function(e){return Wxe(e)}});var VG=v((P7e,GG)=>{"use strict";var Hxe=Math.floor;GG.exports=function(e){return Hxe(e)}});var JG=v((T7e,KG)=>{"use strict";KG.exports=function(e){return+e}});var tP=v((R7e,YG)=>{"use strict";var zxe=Number.isNaN||function(r){return r!==r};YG.exports=Number.isFinite||function(r){return typeof r=="number"&&!zxe(r)&&r!==Infinity&&r!==-Infinity}});var ZG=v((k7e,XG)=>{"use strict";XG.exports=function(e){return e>=0?1:-1}});var eV=v((I7e,QG)=>{"use strict";var Gxe=zG(),Vxe=VG(),Kxe=JG(),Jxe=py(),Yxe=tP(),Xxe=ZG();QG.exports=function(e){var t=Kxe(e);return Jxe(t)?0:t===0||!Yxe(t)?t:Xxe(t)*Vxe(Gxe(t))}});var rV=v((F7e,tV)=>{"use strict";var Zxe=Oe(),Qxe=Zxe("RegExp.prototype.test"),eDe=h_();tV.exports=function(e){return eDe(Qxe,e)}});var nV=v((A7e,iV)=>{"use strict";iV.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var sV=v((O7e,oV)=>{"use strict";oV.exports=function(e){return e===null||typeof e!="function"&&typeof e!="object"}});var lV=v((L7e,aV)=>{"use strict";var tDe=Date.prototype.getDay,rDe=function(e){try{return tDe.call(e),!0}catch(t){return!1}},iDe=Object.prototype.toString,nDe="[object Date]",oDe=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";aV.exports=function(e){return typeof e!="object"||e===null?!1:oDe?rDe(e):iDe.call(e)===nDe}});var pV=v((M7e,rP)=>{"use strict";var sDe=Object.prototype.toString,aDe=Li()();aDe?(uV=Symbol.prototype.toString,cV=/^Symbol\(.*\)$/,fV=function(e){return typeof e.valueOf()!="symbol"?!1:cV.test(uV.call(e))},rP.exports=function(e){if(typeof e=="symbol")return!0;if(sDe.call(e)!=="[object Symbol]")return!1;try{return fV(e)}catch(t){return!1}}):rP.exports=function(e){return!1};var uV,cV,fV});var gV=v((N7e,dV)=>{"use strict";var lDe=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol",iP=sV(),hV=Ny(),uDe=lV(),mV=pV(),cDe=function(e,t){if(typeof e=="undefined"||e===null)throw new TypeError("Cannot call method on "+e);if(typeof t!="string"||t!=="number"&&t!=="string")throw new TypeError('hint must be "string" or "number"');var i=t==="string"?["toString","valueOf"]:["valueOf","toString"],n,o,s;for(s=0;s1&&(arguments[1]===String?t="string":arguments[1]===Number&&(t="number"));var i;if(lDe&&(Symbol.toPrimitive?i=fDe(e,Symbol.toPrimitive):mV(e)&&(i=Symbol.prototype.valueOf)),typeof i!="undefined"){var n=i.call(e,t);if(iP(n))return n;throw new TypeError("unable to convert exotic object to primitive")}return t==="default"&&(uDe(e)||mV(e))&&(t="string"),cDe(e,t==="default"?"number":t)}});var bV=v((q7e,vV)=>{"use strict";var yV=gV();vV.exports=function(e){return arguments.length>1?yV(e,arguments[1]):yV(e)}});var _V=v(($7e,wV)=>{"use strict";var yy=Oe(),pDe=yy("%TypeError%"),xV=yy("%Number%"),dDe=yy("%RegExp%"),DV=yy("%parseInt%"),SV=Ia(),by=rV(),hDe=nV(),EV=SV("String.prototype.slice"),mDe=by(/^0b[01]+$/i),gDe=by(/^0o[0-7]+$/i),vDe=by(/^[-+]0x[0-9a-f]+$/i),yDe=["\x85","\u200B","\uFFFE"].join(""),bDe=new dDe("["+yDe+"]","g"),wDe=by(bDe),CV=[`
-\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003`,"\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028","\u2029\uFEFF"].join(""),xDe=new RegExp("(^["+CV+"]+)|(["+CV+"]+$)","g"),DDe=SV("String.prototype.replace"),SDe=function(r){return DDe(r,xDe,"")},EDe=bV();wV.exports=function r(e){var t=hDe(e)?e:EDe(e,xV);if(typeof t=="symbol")throw new pDe("Cannot convert a Symbol value to a number");if(typeof t=="string"){if(mDe(t))return r(DV(EV(t,2),2));if(gDe(t))return r(DV(EV(t,2),8));if(wDe(t)||vDe(t))return NaN;var i=SDe(t);if(i!==t)return r(i)}return xV(t)}});var TV=v((B7e,PV)=>{"use strict";var CDe=eV(),_De=_V();PV.exports=function(e){var t=_De(e);return t!==0&&(t=CDe(t)),t===0?0:t}});var nP=v((j7e,RV)=>{"use strict";var kV=eP(),PDe=TV();RV.exports=function(e){var t=PDe(e);return t<=0?0:t>kV?kV:t}});var oP=v((U7e,IV)=>{"use strict";IV.exports=function(e){return typeof e=="number"&&e>=55296&&e<=56319}});var sP=v((W7e,FV)=>{"use strict";FV.exports=function(e){return typeof e=="number"&&e>=56320&&e<=57343}});var MV=v((H7e,AV)=>{"use strict";var OV=Oe(),TDe=OV("%TypeError%"),LV=OV("%String.fromCharCode%"),RDe=oP(),kDe=sP();AV.exports=function(e,t){if(!RDe(e)||!kDe(t))throw new TDe("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return LV(e)+LV(t)}});var UV=v((z7e,NV)=>{"use strict";var IDe=Oe(),qV=IDe("%TypeError%"),$V=Ia(),FDe=oP(),BV=sP(),ADe=dr(),ODe=MV(),LDe=$V("String.prototype.charAt"),jV=$V("String.prototype.charCodeAt");NV.exports=function(e,t){if(ADe(e)!=="String")throw new qV("Assertion failed: `string` must be a String");var i=e.length;if(t<0||t>=i)throw new qV("Assertion failed: `position` must be >= 0, and < the length of `string`");var n=jV(e,t),o=LDe(e,t),s=FDe(n),a=BV(n);if(!s&&!a)return{"[[CodePoint]]":o,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(a||t+1===i)return{"[[CodePoint]]":o,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var l=jV(e,t+1);return BV(l)?{"[[CodePoint]]":ODe(n,l),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":o,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}});var HV=v((G7e,WV)=>{"use strict";var MDe=Oe(),NDe=MDe("%Math.abs%");WV.exports=function(e){return NDe(e)}});var GV=v((V7e,zV)=>{"use strict";var qDe=Math.floor;zV.exports=function(e){return qDe(e)}});var KV=v((K7e,VV)=>{"use strict";var $De=HV(),BDe=GV(),jDe=py(),UDe=tP();VV.exports=function(e){if(typeof e!="number"||jDe(e)||!UDe(e))return!1;var t=$De(e);return BDe(t)===t}});var XV=v((J7e,JV)=>{"use strict";var WDe=Oe(),HDe=UV(),zDe=KV(),YV=dr(),GDe=eP(),aP=WDe("%TypeError%");JV.exports=function(e,t,i){if(YV(e)!=="String")throw new aP("Assertion failed: `S` must be a String");if(!zDe(t)||t<0||t>GDe)throw new aP("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if(YV(i)!=="Boolean")throw new aP("Assertion failed: `unicode` must be a Boolean");if(!i)return t+1;var n=e.length;if(t+1>=n)return t+1;var o=HDe(e,t);return t+o["[[CodeUnitCount]]"]}});var QV=v((Y7e,ZV)=>{"use strict";var VDe=Oe(),KDe=VDe("%TypeError%"),JDe=dr();ZV.exports=function(e,t){if(JDe(t)!=="Boolean")throw new KDe("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}}});var rK=v((X7e,eK)=>{"use strict";var YDe=Oe(),tK=YDe("%Array%"),XDe=!tK.isArray&&Ia()("Object.prototype.toString");eK.exports=tK.isArray||function(e){return XDe(e)==="[object Array]"}});var aK=v((Z7e,iK)=>{"use strict";var lP=Oe(),nK=lP("%Object.create%",!0),oK=lP("%TypeError%"),sK=lP("%SyntaxError%"),ZDe=rK(),QDe=dr(),e0e=!({__proto__:null}instanceof Object);iK.exports=function(e){if(e!==null&&QDe(e)!=="Object")throw new oK("Assertion failed: `proto` must be null or an object");var t=arguments.length<2?[]:arguments[1];if(!ZDe(t))throw new oK("Assertion failed: `additionalInternalSlotsList` must be an Array");if(t.length>0)throw new sK("es-abstract does not yet support internal slots");if(nK)return nK(e);if(e0e)return{__proto__:e};if(e===null)throw new sK("native Object.create support is required to create null objects");var i=function(){};return i.prototype=e,new i}});var uK=v((Q7e,lK)=>{"use strict";var t0e=Oe(),uP=t0e("%TypeError%"),r0e=Ia()("RegExp.prototype.exec"),i0e=m_(),n0e=hd(),o0e=sy(),cP=dr();lK.exports=function(e,t){if(cP(e)!=="Object")throw new uP("Assertion failed: `R` must be an Object");if(cP(t)!=="String")throw new uP("Assertion failed: `S` must be a String");var i=n0e(e,"exec");if(o0e(i)){var n=i0e(i,e,[t]);if(n===null||cP(n)==="Object")return n;throw new uP('"exec" method must return `null` or an Object')}return r0e(e,t)}});var fK=v((eGe,cK)=>{"use strict";var fP=Yv(),Yu=I_(),s0e=E_(),a0e=fP("%TypeError%"),wy=fP("%WeakMap%",!0),xy=fP("%Map%",!0),l0e=Yu("WeakMap.prototype.get",!0),u0e=Yu("WeakMap.prototype.set",!0),c0e=Yu("WeakMap.prototype.has",!0),f0e=Yu("Map.prototype.get",!0),p0e=Yu("Map.prototype.set",!0),d0e=Yu("Map.prototype.has",!0),pP=function(r,e){for(var t=r,i;(i=t.next)!==null;t=i)if(i.key===e)return t.next=i.next,i.next=r.next,r.next=i,i},h0e=function(r,e){var t=pP(r,e);return t&&t.value},m0e=function(r,e,t){var i=pP(r,e);i?i.value=t:r.next={key:e,next:r.next,value:t}},g0e=function(r,e){return!!pP(r,e)};cK.exports=function(){var e,t,i,n={assert:function(o){if(!n.has(o))throw new a0e("Side channel does not contain "+s0e(o))},get:function(o){if(wy&&o&&(typeof o=="object"||typeof o=="function")){if(e)return l0e(e,o)}else if(xy){if(t)return f0e(t,o)}else if(i)return h0e(i,o)},has:function(o){if(wy&&o&&(typeof o=="object"||typeof o=="function")){if(e)return c0e(e,o)}else if(xy){if(t)return d0e(t,o)}else if(i)return g0e(i,o);return!1},set:function(o,s){wy&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new wy),u0e(e,o,s)):xy?(t||(t=new xy),p0e(t,o,s)):(i||(i={key:{},next:null}),m0e(i,o,s))}};return n}});var hK=v((tGe,pK)=>{"use strict";var v0e=$_(),y0e=lo(),bd=fK()(),gs=v0e("%TypeError%"),dK={assert:function(r,e){if(!r||typeof r!="object"&&typeof r!="function")throw new gs("`O` is not an object");if(typeof e!="string")throw new gs("`slot` must be a string");bd.assert(r)},get:function(r,e){if(!r||typeof r!="object"&&typeof r!="function")throw new gs("`O` is not an object");if(typeof e!="string")throw new gs("`slot` must be a string");var t=bd.get(r);return t&&t["$"+e]},has:function(r,e){if(!r||typeof r!="object"&&typeof r!="function")throw new gs("`O` is not an object");if(typeof e!="string")throw new gs("`slot` must be a string");var t=bd.get(r);return!!t&&y0e(t,"$"+e)},set:function(r,e,t){if(!r||typeof r!="object"&&typeof r!="function")throw new gs("`O` is not an object");if(typeof e!="string")throw new gs("`slot` must be a string");var i=bd.get(r);i||(i={},bd.set(r,i)),i["$"+e]=t}};Object.freeze&&Object.freeze(dK);pK.exports=dK});var bK=v((rGe,mK)=>{"use strict";var gK=Fn(),b0e=XV(),Dy=QV(),vK=hd(),w0e=Oe(),x0e=aK(),D0e=uK(),S0e=z_(),E0e=nP(),C0e=ly(),Sy=dr(),_0e=Li()(),Jt=hK(),yK,co=function(e,t,i,n){if(Sy(t)!=="String")throw new TypeError("S must be a string");if(Sy(i)!=="Boolean")throw new TypeError("global must be a boolean");if(Sy(n)!=="Boolean")throw new TypeError("fullUnicode must be a boolean");Jt.set(this,"[[IteratingRegExp]]",e),Jt.set(this,"[[IteratedString]]",t),Jt.set(this,"[[Global]]",i),Jt.set(this,"[[Unicode]]",n),Jt.set(this,"[[Done]]",!1)},dP=w0e("%IteratorPrototype%",!0);dP&&(co.prototype=x0e(dP));gK(co.prototype,{next:function(){var e=this;if(Sy(e)!=="Object")throw new TypeError("receiver must be an object");if(!(e instanceof co)||!Jt.has(e,"[[IteratingRegExp]]")||!Jt.has(e,"[[IteratedString]]")||!Jt.has(e,"[[Global]]")||!Jt.has(e,"[[Unicode]]")||!Jt.has(e,"[[Done]]"))throw new TypeError('"this" value must be a RegExpStringIterator instance');if(Jt.get(e,"[[Done]]"))return Dy(yK,!0);var t=Jt.get(e,"[[IteratingRegExp]]"),i=Jt.get(e,"[[IteratedString]]"),n=Jt.get(e,"[[Global]]"),o=Jt.get(e,"[[Unicode]]"),s=D0e(t,i);if(s===null)return Jt.set(e,"[[Done]]",!0),Dy(yK,!0);if(n){var a=C0e(vK(s,"0"));if(a===""){var l=E0e(vK(t,"lastIndex")),u=b0e(i,l,o);S0e(t,"lastIndex",u,!0)}return Dy(s,!1)}return Jt.set(e,"[[Done]]",!0),Dy(s,!1)}});_0e&&(hP=Object.defineProperty,Symbol.toStringTag&&(hP?hP(co.prototype,Symbol.toStringTag,{configurable:!0,enumerable:!1,value:"RegExp String Iterator",writable:!1}):co.prototype[Symbol.toStringTag]="RegExp String Iterator"),!dP&&Symbol.iterator&&(Ey={},Ey[Symbol.iterator]=co.prototype[Symbol.iterator]||function(){return this},mP={},mP[Symbol.iterator]=function(){return co.prototype[Symbol.iterator]!==Ey[Symbol.iterator]},gK(co.prototype,Ey,mP)));var hP,Ey,mP;mK.exports=co});var _K=v((iGe,wK)=>{"use strict";var xK=hd(),P0e=z_(),T0e=jG(),R0e=nP(),DK=ly(),Cy=dr(),k0e=W_(),I0e=bK(),SK=RegExp,F0e=function(e,t,i,n){if(Cy(t)!=="String")throw new TypeError('"S" value must be a String');if(Cy(i)!=="Boolean")throw new TypeError('"global" value must be a Boolean');if(Cy(n)!=="Boolean")throw new TypeError('"fullUnicode" value must be a Boolean');var o=new I0e(e,t,i,n);return o},A0e="flags"in RegExp.prototype,O0e=function(e,t){var i,n="flags"in t?xK(t,"flags"):DK(k0e(t));return A0e&&typeof n=="string"?i=new e(t,n):e===SK?i=new e(t.source,n):i=new e(t,n),{flags:n,matcher:i}},gP=function(e){var t=this;if(Cy(t)!=="Object")throw new TypeError('"this" value must be an Object');var i=DK(e),n=T0e(t,SK),o=O0e(n,t),s=o.flags,a=o.matcher,l=R0e(xK(t,"lastIndex"));P0e(a,"lastIndex",l,!0);var u=s.indexOf("g")>-1,c=s.indexOf("u")>-1;return F0e(a,i,u,c)},EK=Object.defineProperty,CK=Object.getOwnPropertyDescriptor;EK&&CK&&(vP=CK(gP,"name"),vP&&vP.configurable&&EK(gP,"name",{value:"[Symbol.matchAll]"}));var vP;wK.exports=gP});var yP=v((nGe,PK)=>{"use strict";var L0e=Li()(),M0e=_K();PK.exports=function(){return!L0e||typeof Symbol.matchAll!="symbol"||typeof RegExp.prototype[Symbol.matchAll]!="function"?M0e:RegExp.prototype[Symbol.matchAll]}});var bP=v((oGe,TK)=>{"use strict";var RK=m_(),N0e=hd(),q0e=R7(),kK=q7(),IK=ly(),FK=C_(),$0e=I_(),B0e=Li()(),j0e=W_(),U0e=$0e("String.prototype.indexOf"),W0e=yP(),AK=function(e){var t=W0e();if(B0e&&typeof Symbol.matchAll=="symbol"){var i=q0e(e,Symbol.matchAll);return i===RegExp.prototype[Symbol.matchAll]&&i!==t?t:i}if(kK(e))return t};TK.exports=function(e){var t=FK(this);if(typeof e!="undefined"&&e!==null){var i=kK(e);if(i){var n="flags"in e?N0e(e,"flags"):j0e(e);if(FK(n),U0e(IK(n),"g")<0)throw new TypeError("matchAll requires a global regular expression")}var o=AK(e);if(typeof o!="undefined")return RK(o,e,[t])}var s=IK(t),a=new RegExp(e,"g");return RK(AK(a),a,[s])}});var wP=v((sGe,OK)=>{"use strict";var H0e=bP();OK.exports=function(){if(String.prototype.matchAll)try{"".matchAll(RegExp.prototype)}catch(e){return String.prototype.matchAll}return H0e}});var qK=v((aGe,LK)=>{"use strict";var xP=Fn(),z0e=Li()(),G0e=wP(),V0e=yP(),MK=Object.defineProperty,NK=Object.getOwnPropertyDescriptor;LK.exports=function(){var e=G0e();if(xP(String.prototype,{matchAll:e},{matchAll:function(){return String.prototype.matchAll!==e}}),z0e){var t=Symbol.matchAll||(Symbol.for?Symbol.for("Symbol.matchAll"):Symbol("Symbol.matchAll"));if(xP(Symbol,{matchAll:t},{matchAll:function(){return Symbol.matchAll!==t}}),MK&&NK){var i=NK(Symbol,t);(!i||i.configurable)&&MK(Symbol,t,{configurable:!1,enumerable:!1,value:t,writable:!1})}var n=V0e(),o={};o[t]=n;var s={};s[t]=function(){return RegExp.prototype[t]!==n},xP(RegExp.prototype,o,s)}return e}});var UK=v((lGe,$K)=>{"use strict";var K0e=a_(),J0e=Fn(),BK=bP(),Y0e=wP(),X0e=qK(),jK=K0e(BK);J0e(jK,{getPolyfill:Y0e,implementation:BK,shim:X0e});$K.exports=jK});var TJ=v(lSe=>{ho(lSe,{default:()=>cSe});var CJ=S(qw()),_J=S(Mb()),PJ=S(If()),po=U()("attach"),uSe=global.hasOwnProperty("__TEST__"),cSe=(r,e=!0)=>{let t=CJ.attach(r,_J.default.getLogger("node-client"),e);global.hasOwnProperty("__TEST__")||t.call("coc#util#path_replace_patterns").then(s=>{if(xt(s)){let a=$.file;$.file=l=>(l=l.replace(/\\/g,"/"),Object.keys(s).forEach(u=>l=l.replace(new RegExp("^"+u),s[u])),a(l))}}).logError(),t.setVar("coc_process_pid",process.pid,!0);let i=new EJ(t),n=!1,o=!1;return t.on("notification",async(s,a)=>{switch(s){case"VimEnter":{!o&&n&&(o=!0,await i.init());break}case"TaskExit":case"TaskStderr":case"TaskStdout":case"GlobalChange":case"PromptInsert":case"InputChar":case"MenuInput":case"OptionSet":case"FloatBtnClick":await A.fire(s,a);break;case"CocAutocmd":po.debug("Notification autocmd:",...a),await A.fire(a[0],a.slice(1));break;default:{if(!i.hasAction(s)){if(global.hasOwnProperty("__TEST__"))return;console.error(`action "${s}" not registered`);return}try{i.isReady?po.info("receive notification:",s,a):po.warn(`Plugin not ready when received "${s}"`,a),await i.ready,await i.cocAction(s,...a)}catch(u){console.error(`Error on notification "${s}": ${u.message||u.toString()}`),po.error("Notification error:",s,a,u)}}}}),t.on("request",async(s,a,l)=>{s!="redraw"&&po.info("receive request:",s,a);let u=setTimeout(()=>{po.error("Request cost more than 3s",s,a)},3e3);try{if(s=="CocAutocmd")po.debug("Request autocmd:",...a),await A.fire(a[0],a.slice(1)),l.send();else{i.isReady||po.warn(`Plugin not ready when received "${s}"`,a);let c=await i.cocAction(s,...a);l.send(c)}clearTimeout(u)}catch(c){clearTimeout(u),l.send(c.message||c.toString(),!0),po.error("Request error:",s,a,c)}}),t.channelId.then(async s=>{n=!0,uSe&&t.command(`let g:coc_node_channel_id = ${s}`,!0);let{major:a,minor:l,patch:u}=PJ.default.parse(dg);t.setClientInfo("coc",{major:a,minor:l,patch:u},"remote",{},{}),await t.getVvar("vim_did_enter")&&!o&&(o=!0,await i.init())}).catch(s=>{console.error(`Channel create error: ${s.message}`)}),i}});var fSe=UT();bh();Object.defineProperty(console,"log",{value(){$P.info(...arguments)}});fSe.shim();var $P=U()("server");var Nx=S(W());var lq=S(require("child_process")),uq=S(Vr()),cq=S(require("fs")),fq=S(Px()),Ax=S(require("path")),Ox=S(W());"use strict";var Ole=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o])},r(e,t)};return function(e,t){r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}}(),ft,bf;typeof process=="object"?bf=process.platform==="win32":typeof navigator=="object"&&(NN=navigator.userAgent,bf=NN.indexOf("Windows")>=0);var NN;var Lle=/^\w[\w\d+.-]*$/,Mle=/^\//,Nle=/^\/\//;function qle(r,e){if(!r.scheme&&e)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+r.authority+'", path: "'+r.path+'", query: "'+r.query+'", fragment: "'+r.fragment+'"}');if(r.scheme&&!Lle.test(r.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(r.path){if(r.authority){if(!Mle.test(r.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Nle.test(r.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function $le(r,e){return!r&&!e?"file":r}function Ble(r,e){switch(r){case"https":case"http":case"file":e?e[0]!==zi&&(e=zi+e):e=zi;break}return e}var Je="",zi="/",jle=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,$=function(){function r(e,t,i,n,o,s){s===void 0&&(s=!1),typeof e=="object"?(this.scheme=e.scheme||Je,this.authority=e.authority||Je,this.path=e.path||Je,this.query=e.query||Je,this.fragment=e.fragment||Je):(this.scheme=$le(e,s),this.authority=t||Je,this.path=Ble(this.scheme,i||Je),this.query=n||Je,this.fragment=o||Je,qle(this,s))}return r.isUri=function(e){return e instanceof r?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="function"&&typeof e.with=="function"&&typeof e.toString=="function":!1},Object.defineProperty(r.prototype,"fsPath",{get:function(){return $N(this,!1)},enumerable:!0,configurable:!0}),r.prototype.with=function(e){if(!e)return this;var t=e.scheme,i=e.authority,n=e.path,o=e.query,s=e.fragment;return t===void 0?t=this.scheme:t===null&&(t=Je),i===void 0?i=this.authority:i===null&&(i=Je),n===void 0?n=this.path:n===null&&(n=Je),o===void 0?o=this.query:o===null&&(o=Je),s===void 0?s=this.fragment:s===null&&(s=Je),t===this.scheme&&i===this.authority&&n===this.path&&o===this.query&&s===this.fragment?this:new El(t,i,n,o,s)},r.parse=function(e,t){t===void 0&&(t=!1);var i=jle.exec(e);return i?new El(i[2]||Je,lm(i[4]||Je),lm(i[5]||Je),lm(i[7]||Je),lm(i[9]||Je),t):new El(Je,Je,Je,Je,Je)},r.file=function(e){var t=Je;if(bf&&(e=e.replace(/\\/g,zi)),e[0]===zi&&e[1]===zi){var i=e.indexOf(zi,2);i===-1?(t=e.substring(2),e=zi):(t=e.substring(2,i),e=e.substring(i)||zi)}return new El("file",t,e,Je,Je)},r.from=function(e){return new El(e.scheme,e.authority,e.path,e.query,e.fragment)},r.prototype.toString=function(e){return e===void 0&&(e=!1),Tx(this,e)},r.prototype.toJSON=function(){return this},r.revive=function(e){if(e){if(e instanceof r)return e;var t=new El(e);return t._formatted=e.external,t._fsPath=e._sep===qN?e.fsPath:null,t}else return e},r}();var qN=bf?1:void 0,El=function(r){Ole(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return Object.defineProperty(e.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=$N(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),e.prototype.toString=function(t){return t===void 0&&(t=!1),t?Tx(this,!0):(this._formatted||(this._formatted=Tx(this,!1)),this._formatted)},e.prototype.toJSON=function(){var t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=qN),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t},e}($),BN=(ft={},ft[58]="%3A",ft[47]="%2F",ft[63]="%3F",ft[35]="%23",ft[91]="%5B",ft[93]="%5D",ft[64]="%40",ft[33]="%21",ft[36]="%24",ft[38]="%26",ft[39]="%27",ft[40]="%28",ft[41]="%29",ft[42]="%2A",ft[43]="%2B",ft[44]="%2C",ft[59]="%3B",ft[61]="%3D",ft[32]="%20",ft);function jN(r,e){for(var t=void 0,i=-1,n=0;n=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||o===45||o===46||o===95||o===126||e&&o===47)i!==-1&&(t+=encodeURIComponent(r.substring(i,n)),i=-1),t!==void 0&&(t+=r.charAt(n));else{t===void 0&&(t=r.substr(0,n));var s=BN[o];s!==void 0?(i!==-1&&(t+=encodeURIComponent(r.substring(i,n)),i=-1),t+=s):i===-1&&(i=n)}}return i!==-1&&(t+=encodeURIComponent(r.substring(i))),t!==void 0?t:r}function Ule(r){for(var e=void 0,t=0;t1&&r.scheme==="file"?t="//"+r.authority+r.path:r.path.charCodeAt(0)===47&&(r.path.charCodeAt(1)>=65&&r.path.charCodeAt(1)<=90||r.path.charCodeAt(1)>=97&&r.path.charCodeAt(1)<=122)&&r.path.charCodeAt(2)===58?e?t=r.path.substr(1):t=r.path[1].toLowerCase()+r.path.substr(2):t=r.path,bf&&(t=t.replace(/\//g,"\\")),t}function Tx(r,e){var t=e?Ule:jN,i="",n=r.scheme,o=r.authority,s=r.path,a=r.query,l=r.fragment;if(n&&(i+=n,i+=":"),(o||n==="file")&&(i+=zi,i+=zi),o){var u=o.indexOf("@");if(u!==-1){var c=o.substr(0,u);o=o.substr(u+1),u=c.indexOf(":"),u===-1?i+=t(c,!1):(i+=t(c.substr(0,u),!1),i+=":",i+=t(c.substr(u+1),!1)),i+="@"}o=o.toLowerCase(),u=o.indexOf(":"),u===-1?i+=t(o,!1):(i+=t(o.substr(0,u),!1),i+=o.substr(u))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){var f=s.charCodeAt(1);f>=65&&f<=90&&(s="/"+String.fromCharCode(f+32)+":"+s.substr(3))}else if(s.length>=2&&s.charCodeAt(1)===58){var f=s.charCodeAt(0);f>=65&&f<=90&&(s=String.fromCharCode(f+32)+":"+s.substr(2))}i+=t(s,!0)}return a&&(i+="?",i+=t(a,!1)),l&&(i+="#",i+=e?l:jN(l,!1)),i}function UN(r){try{return decodeURIComponent(r)}catch(e){return r.length>3?r.substr(0,3)+UN(r.substr(3)):r}}var WN=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function lm(r){return r.match(WN)?r.replace(WN,function(e){return UN(e)}):r}var pq=S(_l());var Pl={};ho(Pl,{OS:()=>nue,OperatingSystem:()=>Tl,Platform:()=>Gs,globals:()=>iue,isLinux:()=>Zle,isMacintosh:()=>Fx,isNative:()=>Qle,isWeb:()=>eue,isWindows:()=>Hn,language:()=>Xle,platform:()=>tue});var cm=!1,fm=!1,kx=!1,Ix=!1,Yle=!1,Xle="en";typeof process=="object"&&typeof process.nextTick=="function"&&typeof process.platform=="string"&&(cm=process.platform==="win32",fm=process.platform==="darwin",kx=process.platform==="linux",Ix=!0);var Gs;(function(r){r[r.Web=0]="Web",r[r.Mac=1]="Mac",r[r.Linux=2]="Linux",r[r.Windows=3]="Windows"})(Gs||(Gs={}));var pm=0;Ix&&(fm?pm=1:cm?pm=3:kx&&(pm=2));var Hn=cm,Fx=fm,Zle=kx,Qle=Ix,eue=Yle,tue=pm,rue=typeof self=="object"?self:typeof global=="object"?global:{},iue=rue,Tl;(function(r){r[r.Windows=1]="Windows",r[r.Macintosh=2]="Macintosh",r[r.Linux=3]="Linux"})(Tl||(Tl={}));var nue=fm?2:cm?1:3;var gPe=U()("util-index"),Gi="coc-settings.json";function He(r){return new Promise(e=>{setTimeout(()=>{e(void 0)},r)})}function dm(r,e,t,i){return r?(Hn&&!i&&!r.startsWith("jdt://")&&(r=Ax.default.win32.normalize(r)),Ax.default.isAbsolute(r)?$.file(r).toString():fq.default.isValid(r)?$.parse(r).toString():t!=""?`${t}:${e}`:`unknown:${e}`):`untitled:${e}`}function z(r){for(;r.length;){let e=r.pop();e&&e.dispose()}}function wf(r){try{pq.default.sync(r)}catch(e){return!1}return!0}function hn(r,e={},t){return Hn||(e.shell=e.shell||process.env.SHELL),e.maxBuffer=500*1024,new Promise((i,n)=>{let o;t&&(o=setTimeout(()=>{n(new Error(`timeout after ${t}s`))},t*1e3)),lq.exec(r,e,(s,a,l)=>{if(o&&clearTimeout(o),s){n(new Error(`exited with ${s.code}
-${s}
-${l}`));return}i(a)})})}function Rl(r,e){let t=uq.default(e,100);try{let i=cq.default.watch(r,{persistent:!0,recursive:!1,encoding:"utf8"},()=>{t()});return Ox.Disposable.create(()=>{t.clear(),i.close()})}catch(i){return Ox.Disposable.create(()=>{t.clear()})}}function dq(r){try{return process.kill(r,0)==!0}catch(e){return e.code==="EPERM"}}function Lx(r){return r=="n"||r=="o"||r=="x"||r=="v"?"":r=="i"?"":r=="s"?"":""}function xf(r,e,t=3){if(r.length==0)return Promise.resolve();let i=0,n=r.length,o=r.slice();return new Promise(s=>{let a=l=>{let u=()=>{if(i=i+1,i==n)s();else if(o.length){let c=o.shift();a(c)}};e(l).then(u,u)};for(let l=0;l{r[t]&&typeof r[t]=="object"?e[t]=zn(r[t]):e[t]=r[t]}),e}var sue=Object.prototype.hasOwnProperty;function hq(r){if(!r||typeof r!="object")return r;let e=[r];for(;e.length>0;){let t=e.shift();Object.freeze(t);for(let i in t)if(sue.call(t,i)){let n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&e.push(n)}}return r}function Mx(r,e,t=!0){return xt(r)?(xt(e)&&Object.keys(e).forEach(i=>{i in r?t&&(xt(r[i])&&xt(e[i])?Mx(r[i],e[i],t):r[i]=e[i]):r[i]=e[i]}),r):e}function qe(r,e){if(r===e)return!0;if(r==null||e===null||e===void 0||typeof r!=typeof e||typeof r!="object"||Array.isArray(r)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(r)){if(r.length!==e.length)return!1;for(t=0;tn(t)))}catch(n){n.message&&n.message.indexOf("transport disconnected")==-1&&console.error(`Error on ${e}: ${n.message}${n.stack?`
-`+n.stack:""} `),mq.error(`Handler Error on ${e}`,n.stack)}}on(e,t,i,n){if(Array.isArray(e)){let o=n||[];for(let s of e)this.on(s,t,i,o);return Nx.Disposable.create(()=>{z(o)})}else{let o=this.handlers.get(e)||[],s=Error().stack,a=u=>new Promise((c,f)=>{let p;try{Promise.resolve(t.apply(i||null,u)).then(()=>{p&&clearTimeout(p),c(void 0)},d=>{p&&clearTimeout(p),f(d)}),p=setTimeout(()=>{mq.warn(`Handler of ${e} blocked more than 2s:`,s)},2e3)}catch(d){f(d)}});o.push(a),this.handlers.set(e,o);let l=Nx.Disposable.create(()=>{let u=o.indexOf(a);u!==-1&&o.splice(u,1)});return n&&n.push(l),l}}},A=new gq;var DJ=S(require("events")),SJ=S(require("path")),NP=S(require("fs")),Ed=S(W());var Gv=S(W());var eU=S(Vr()),tU=S(If()),ht=S(W());var qB=S(Vr()),$m=S(W());var vD=S(E$());var DB=S(pB());var xr=S(vB());function yB(r){return`${xr.default.gray.open}${r}${xr.default.gray.close}`}function fD(r){return`${xr.default.magenta.open}${r}${xr.default.magenta.close}`}function bB(r){return`${xr.default.bold.open}${r}${xr.default.bold.close}`}function Nm(r){return`${xr.default.underline.open}${r}${xr.default.underline.close}`}function wB(r){return`${xr.default.italic.open}${r}${xr.default.italic.close}`}function xB(r){return`${xr.default.yellow.open}${r}${xr.default.yellow.close}`}function pD(r){return`${xr.default.blue.open}${r}${xr.default.blue.close}`}var KTe=U()("markdown-renderer"),SB="^*||*^",dD="*|*|*|*",Spe=new RegExp(EB(dD),"g"),CB="*#COLON|*",Epe=new RegExp(EB(CB),"g"),Cpe=[" "],_pe="\r",_B={code:Ki,blockquote:Ki,html:yB,heading:fD,firstHeading:fD,hr:Ki,listitem:Ki,list:Ppe,table:Ki,paragraph:Ki,strong:bB,em:wB,codespan:xB,del:Nm,link:Nm,href:Nm,text:Ki,unescape:!0,emoji:!1,width:80,showSectionPrefix:!0,tab:2,tableOptions:{}};function PB(r,e){return e?r.replace(_pe,/\n/g):r}function Rpe(r,e){return typeof r=="number"?new Array(r+1).join(" "):typeof r=="string"&&Tpe(r)?r:new Array(e+1).join(" ")}function Tpe(r){return Cpe.some(function(e){return r.match("^("+e+")+$")})}function kpe(r,e){return e.replace(/(^|\n)(.+)/g,"$1"+r+"$2")}function Ipe(r,e){return e&&r+e.split(`
-`).join(`
-`+r)}var Fpe="\\*",Ape="\\d+\\.",TB="(?:"+[Fpe,Ape].join("|")+")";function Ope(r,e){let t=new RegExp("(\\S(?: | )?)((?:"+e+")+)("+TB+"(?:.*)+)$","gm");return r.replace(t,`$1
-`+e+"$2$3")}var RB=function(r,e){return r.match("^(?:"+e+")*"+TB)};function kB(r){return" ".repeat(r.length)}var hD="* ";function Lpe(r,e){return RB(e,r)?e:kB(hD)+e}function Mpe(r,e){let t=Lpe.bind(null,e);return r.split(`
-`).filter(Ki).map(t).join(`
-`)}var IB=function(r){return r+". "};function Npe(r,e,t){return RB(e,r)?{num:t+1,line:e.replace(hD,IB(t+1))}:{num:t,line:kB(IB(t))+e}}function qpe(r,e){let t=Npe.bind(null,e),i=0;return r.split(`
-`).filter(Ki).map(n=>{let o=t(n,i);return i=o.num,o.line}).join(`
-`)}function Ppe(r,e,t){return r=r.trim(),r=e?qpe(r,t):Mpe(r,t),r}function $f(r){return r+`
-
-`}function $pe(r){return r.replace(Epe,":")}function FB(r,e=null){if(!r)return[];e=e||Ki;let t=e(r).split(`
-`),i=[];return t.forEach(function(n){if(!n)return;let o=n.replace(Spe,"").split(SB);i.push(o.splice(0,o.length-1))}),i}function EB(r){return r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Bpe(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}function Ki(r){return r}var mD=new Map,AB=class{constructor(e={},t={}){this.options=e;this.highlightOptions=t;this.o=Object.assign({},_B,e),this.tab=Rpe(this.o.tab,_B.tab),this.tableSettings=this.o.tableOptions,this.unescape=this.o.unescape?Bpe:Ki,this.highlightOptions=t||{},this.transform=this.compose($pe,this.unescape)}textLength(e){return e.replace(/\u001b\[(?:\d{1,3})(?:;\d{1,3})*m/g,"").length}text(e){return this.o.text(e)}code(e,t,i){return"``` "+t+`
-`+e+"\n```\n"}blockquote(e){return $f(this.o.blockquote(Ipe(this.tab,e.trim())))}html(e){return this.o.html(e)}heading(e,t,i){return e=this.transform(e),e=(this.o.showSectionPrefix?new Array(t+1).join("#")+" ":"")+e,$f(t===1?this.o.firstHeading(e):this.o.heading(e))}hr(){return`---
-
-`}list(e,t){return e=this.o.list(e,t,this.tab),$f(Ope(kpe(this.tab,e),this.tab))}listitem(e){let t=this.compose(this.o.listitem,this.transform);return e.indexOf(`
-`)!==-1&&(e=e.trim()),`
-`+hD+t(e)}checkbox(e){return"["+(e?"X":" ")+"] "}paragraph(e){return e=this.compose(this.o.paragraph,this.transform)(e),$f(e)}table(e,t){let i=new DB.default(Object.assign({},{head:FB(e)[0]},this.tableSettings));return FB(t,this.transform).forEach(function(n){i.push(n)}),$f(this.o.table(i.toString()))}tablerow(e){return dD+e+dD+`
-`}tablecell(e,t){return e+SB}strong(e){return this.o.strong(e)}em(e){return e=PB(e,this.o.reflowText),this.o.em(e)}codespan(e){return e=PB(e,this.o.reflowText),this.o.codespan(e.replace(/:/g,CB))}br(){return`
-`}del(e){return this.o.del(e)}link(e,t,i){let n;if(this.options.sanitize){try{n=decodeURIComponent(unescape(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(s){return""}if(n.startsWith("javascript:"))return""}if(i&&e&&i!=e&&mD.set(i,e),i&&i!=e)return pD(i);let o=this.o.href(e);return this.o.link(o)}image(e,t,i){if(typeof this.o.image=="function")return this.o.image(e,t,i);let n="
-`}compose(...e){return(...t)=>{for(let i=e.length;i-- >0;)t=[e[i].apply(this,t)];return t[0]}}static getLinks(){let e=[];for(let[t,i]of mD.entries())e.push(`${pD(t)}: ${i}`);return mD.clear(),e}},gD=AB;function ue(r){return Buffer.byteLength(r)}function ql(r){return r?r[0].toUpperCase()+r.slice(1):""}function Kr(r,e){let t=r.slice(0,e);return Buffer.byteLength(t)}function Bf(r,e){return Buffer.from(r,"utf8").slice(0,e).toString("utf8").length}function Rt(r,e,t){return Buffer.from(r,"utf8").slice(e,t).toString("utf8")}function OB(r){let e=r.charCodeAt(0);return e>128?!1:e==95||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}var LB={30:"black",31:"red",32:"green",33:"yellow",34:"blue",35:"magenta",36:"cyan",37:"white",90:"grey"},MB={40:"black",41:"red",42:"green",43:"yellow",44:"blue",45:"magenta",46:"cyan",47:"white"},NB={1:"bold",3:"italic",4:"underline"};function $l(r,e=!1){let t=jf(r),i=[],n="";for(let o of t){if(!o.text)continue;let{foreground:s,background:a,bold:l,italic:u,underline:c}=o,f=ue(n);if(s||a||l||u||c){let p=[f,f+ue(o.text)],d="";s&&a?d=`CocList${ql(s)}${ql(a)}`:s?e?s=="yellow"?d="CocMarkdownCode":s=="blue"?d="CocMarkdownLink":s=="magenta"?d="CocMarkdownHeader":d=`CocListFg${ql(s)}`:d=`CocListFg${ql(s)}`:a?d=`CocListBg${ql(a)}`:l?d="CocBold":u?d="CocItalic":c&&(d="CocUnderline"),i.push({span:p,hlGroup:d})}n=n+o.text}return{line:n,highlights:i}}function jf(r){let e=null,t=null,i="",n=[],o=[],s={},a;a=()=>{let l,u;i.length?i=i.substr(0,i.length-1):o.length&&(l=o.length-1,u=o[l].text,u.length===1?o.pop():o[l].text=u.substr(0,u.length-1))};for(let l=0;l{LB[u]?s.foreground=LB[u]:MB[u]?s.background=MB[u]:u==39?delete s.foreground:u==49?delete s.background:NB[u]?s[NB[u]]=!0:u==22?s.bold=!1:u==23?s.italic=!1:u==24&&(s.underline=!1)}),n=[]):t+=r[l];continue}r[l]==""?e=r[l]:r[l]=="\b"?a():i+=r[l]}return i&&(s.text=i+(e||""),o.push(s)),o}var jpe=["Error","Warning","Info","Hint"],rRe=U()("markdown-index");vD.default.setOptions({renderer:new gD});function qm(r){let e=[],t=[],i=[],n=0;for(let o of r){let s=e.length,{content:a,filetype:l}=o;if(l=="markdown"){let u=Wpe(a);i.push(...u.codes.map(c=>(c.startLine=c.startLine+s,c.endLine=c.endLine+s,c))),t.push(...u.highlights.map(c=>(c.lnum=c.lnum+s,c))),e.push(...u.lines)}else{let u=a.trim().split(/\r?\n/);jpe.includes(o.filetype)?i.push({hlGroup:`Coc${l}Float`,startLine:s,endLine:s+u.length}):i.push({filetype:o.filetype,startLine:s,endLine:s+u.length}),e.push(...u)}if(o.active){let u=Upe(a,s,o.active);u.length&&t.push(...u)}n!=r.length-1&&e.push("\u2014"),n=n+1}return{lines:e,highlights:t,codes:i}}function Upe(r,e,t){let i=[],[n,o]=t,s=r.split(/\r?\n/),a=0,l=!1;for(let u=0;uo){let f=ue(c.slice(0,o-a));i.push({colStart:0,colEnd:f,lnum:u+e,hlGroup:"CocUnderline"}),l=!1;break}else{let f=ue(c);i.push({colStart:0,colEnd:f,lnum:u+e,hlGroup:"CocUnderline"})}else if(a+c.length>n){l=!0;let f=ue(c.slice(0,n-a));if(a+c.length>o){let p=ue(c.slice(0,o-a));l=!1,i.push({colStart:f,colEnd:p,lnum:u+e,hlGroup:"CocUnderline"});break}else{let p=ue(c);i.push({colStart:f,colEnd:p,lnum:u+e,hlGroup:"CocUnderline"})}}a=a+c.length+1}return i}function Wpe(r){let e=[],t=[],i=[],n=0,o=!1,s,a=0,l=vD.default(r),u=gD.getLinks();u.length&&(l=l+`
-
-`+u.join(`
-`));for(let c of l.replace(/\s*$/,"").split(/\n/)){if(!c.length){let p=e[e.length-1];p&&p.length&&(e.push(c),n++);continue}if(/\s*```\s*([A-Za-z0-9_,]+)?$/.test(c)){o?(o=!1,i.push({filetype:s,startLine:a,endLine:n})):(o=!0,s=c.replace(/^\s*```\s*/,""),s=="js"&&(s="javascript"),s=="ts"&&(s="typescript"),s=="bash"&&(s="sh"),a=n);continue}if(o){e.push(c),n++;continue}let f=$l(c,!0);if(f.highlights)for(let p of f.highlights){let{hlGroup:d,span:h}=p;t.push({hlGroup:d,lnum:n,colStart:h[0],colEnd:h[1]})}e.push(f.line),n++}return{lines:e,highlights:t,codes:i}}var ar=class{constructor(){this.tasks=[];this.count=1}sched(){this.count>0&&this.tasks.length>0&&(this.count--,this.tasks.shift()())}get busy(){return this.count==0}acquire(){return new Promise(e=>{let t=()=>{let i=!1;e(()=>{i||(i=!0,this.count++,this.sched())})};this.tasks.push(t),process.nextTick(this.sched.bind(this))})}use(e){return this.acquire().then(t=>e().then(i=>(t(),i)).catch(i=>{throw t(),i}))}};var $B=process.env.VIM_NODE_RPC=="1",BB=U()("model-float"),yD=class{constructor(e){this.nvim=e;this.winid=0;this._bufnr=0;this.mutex=new ar;this.disposables=[];this.alignTop=!1;this.pumAlignTop=!1;this.autoHide=!0;this.mutex=new ar,A.on("BufEnter",t=>{t==this._bufnr||t==this.targetBufnr||this.close()},null,this.disposables),A.on("InsertEnter",t=>{t==this._bufnr||!this.autoHide||this.close()},null,this.disposables),A.on("InsertLeave",()=>{this.close()},null,this.disposables),A.on("MenuPopupChanged",(t,i)=>{(this.pumAlignTop=i>t.row)==this.alignTop&&this.close()},null,this.disposables),this.onCursorMoved=qB.default(this._onCursorMoved.bind(this),300),A.on("CursorMoved",this.onCursorMoved.bind(this,!1),null,this.disposables),A.on("CursorMovedI",this.onCursorMoved.bind(this,!0),null,this.disposables),this.disposables.push($m.Disposable.create(()=>{this.onCursorMoved.clear(),this.cancel()}))}_onCursorMoved(e,t,i){if(t!=this._bufnr&&!(t==this.targetBufnr&&qe(i,this.cursor))){if(this.autoHide){this.close();return}if(!e||t!=this.targetBufnr){this.close();return}}}async create(e,t=!1,i=0){if(this.onCursorMoved.clear(),e.length==0||e.every(o=>o.content.length==0)){this.close();return}let n=await this.mutex.acquire();try{await this.createPopup(e,{offsetX:i}),n()}catch(o){n(),BB.error("Error on create popup:",o.message),this.close()}}async show(e,t={}){if(this.onCursorMoved.clear(),e.length==0||e.every(n=>n.content.length==0)){this.close();return}let i=await this.mutex.acquire();try{await this.createPopup(e,t),i()}catch(n){i(),BB.error("Error on create popup:",n.message),this.close()}}async createPopup(e,t){let n=(this.tokenSource=new $m.CancellationTokenSource).token;e=e.filter(m=>m.content.trim().length>0);let{lines:o,codes:s,highlights:a}=qm(e),l={pumAlignTop:this.pumAlignTop,preferTop:typeof t.preferTop=="boolean"?t.preferTop:!1,offsetX:t.offsetX||0,title:t.title||"",close:t.close?1:0,codes:s,highlights:a,modes:t.modes||["n","i","ic","s"]};t.maxHeight&&(l.maxHeight=t.maxHeight),t.maxWidth&&(l.maxWidth=t.maxWidth),t.border&&!t.border.every(m=>m==0)&&(l.border=t.border),t.title&&!l.border&&(l.border=[1,1,1,1]),t.highlight&&(l.highlight=t.highlight),t.borderhighlight&&(l.borderhighlight=[t.borderhighlight]),t.cursorline&&(l.cursorline=1),this.autoHide=t.autoHide!=!1,this.autoHide&&(l.autohide=1);let u=await this.nvim.call("coc#float#create_cursor_float",[this.winid,this._bufnr,o,l]);if($B&&this.nvim.command("redraw",!0),!u||u.length==0){this.winid=null;return}let[c,f,p,d]=u;if(this.winid=p,n.isCancellationRequested){this.close();return}let h=await this.nvim.call("coc#float#cursor_relative",[p]);h&&(this.alignTop=h.row<0),this._bufnr=d,this.tokenSource.dispose(),this.tokenSource=null,this.targetBufnr=c,this.cursor=f,this.onCursorMoved.clear()}close(){let{winid:e,nvim:t}=this;this.cancel(),e&&(this.winid=0,t.pauseNotification(),t.call("coc#float#close",[e],!0),$B&&this.nvim.command("redraw",!0),t.resumeNotification(!1,!0))}cancel(){let{tokenSource:e}=this;e&&(e.cancel(),this.tokenSource=null)}dispose(){z(this.disposables)}get bufnr(){return this._bufnr}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):null}get window(){return this.winid?this.nvim.createWindow(this.winid):null}async activated(){return this.winid?await this.nvim.call("coc#float#valid",[this.winid])!=0:!1}},mn=yD;function Ji(r,e){return Ht(r.start,e)===0&&Ht(r.end,e)===0}function Bm(r,e){let{start:t,end:i}=r;return!(Ne(i,e.start)<=0||Ne(t,e.end)>=0)}function Bl(r,e){return!!(Ht(r.start,e)==0||Ht(r.end,e)==0||Ji(e,r))}function jB(r,e){let{start:t,end:i}=e;return r>=t.line&&r<=i.line}function Gn(r){let{start:e,end:t}=r;return e.line==t.line&&e.character==t.character}function Ht(r,e){let{start:t,end:i}=e;return Ne(r,t)<0?-1:Ne(r,i)>0?1:0}function Ne(r,e){return r.line>e.line||e.line==r.line&&r.character>e.character?1:e.line==r.line&&r.character==e.character?0:-1}function Hpe(r){return r.start.line==r.end.line}function bD(r,e){let{range:t,newText:i}=e;if(Ne(t.end,r)<=0){let n=i.split(`
-`),o=n.length-(t.end.line-t.start.line)-1,s=0;if(t.end.line==r.line){let a=Hpe(t)&&o==0,l=a?t.end.character-t.start.character:t.end.character;s=(a?i.length:n[n.length-1].length)-l}return{line:o,character:s}}return{line:0,character:0}}function UB(r,e){let{range:t,newText:i}=e;if(Ne(t.start,r)>1)return r;let{start:n,end:o}=t,s=i.split(`
-`),a=o.line-n.line-s.length+1,l=s[s.length-1],u=r.line-a;if(r.line!=o.line)return{line:u,character:r.character};let c=s.length==1&&n.line!=o.line?n.character:0,f=n.line==o.line&&s.length==1?o.character-n.character:o.character,p=c+r.character+l.length-f;return{line:u,character:p}}function WB(r,e,t){let i=0;for(let n=0;n<=e;n++)n==e?i+=t:i+=r[n].length+1;return i}function HB(r,e,t){if(!Ji(t.range,r))return e;let{start:i,end:n}=t.range,o=e.split(`
-`),s=i.line==r.start.line?i.character-r.start.character:i.character,a=WB(o,i.line-r.start.line,s);s=n.line==r.start.line?n.character-r.start.character:n.character;let l=WB(o,n.line-r.start.line,s);return`${e.slice(0,a)}${t.newText}${e.slice(l,e.length)}`}function jl(r,e){let t={line:0,character:0};for(let i of e){let n=bD(r,i);t={line:t.line+n.line,character:t.character+n.character}}return t.line==0&&t.character==0?null:t}var S0=S(require("fs")),Gj=S(require("os")),E0=S(require("path")),Vj=S(W());var dRe=U()("outpubChannel"),wD=class{constructor(e,t,i){this.name=e;this.nvim=t;this.onDispose=i;this._disposed=!1;this.lines=[""];this.disposables=[]}get content(){return this.lines.join(`
-`)}_append(e){let{nvim:t}=this,i=this.lines.length-1,n=e.split(/\r?\n/),o=this.lines[i]+n[0];this.lines[i]=o;let s=n.slice(1);this.lines=this.lines.concat(s),t.pauseNotification(),t.call("setbufline",[this.bufname,"$",o],!0),s.length&&t.call("appendbufline",[this.bufname,"$",s],!0),t.resumeNotification(!1,!0)}append(e){!this.validate()||this._append(e)}appendLine(e){!this.validate()||this._append(e+`
-`)}clear(e){if(!this.validate())return;let{nvim:t}=this;this.lines=e?this.lines.slice(-e):[],t.pauseNotification(),t.call("deletebufline",[this.bufname,1,"$"],!0),this.lines.length&&t.call("appendbufline",[this.bufname,"$",this.lines],!0),t.resumeNotification(!1,!0)}hide(){this.nvim.command(`exe 'silent! bd! '.fnameescape('${this.bufname}')`,!0)}get bufname(){return`output:///${this.name}`}show(e){let{nvim:t}=this;t.pauseNotification(),t.command(`exe 'vsplit '.fnameescape('${this.bufname}')`,!0),e&&t.command("wincmd p",!0),t.command("redraw",!0),t.resumeNotification(!1,!0)}validate(){return!this._disposed}dispose(){this._disposed||(this.onDispose&&this.onDispose(),this._disposed=!0,this.hide(),this.lines=[],z(this.disposables))}},zB=wD;var Vn=new Map,GB=class{getProvider(e){return{onDidChange:null,provideTextDocumentContent:async i=>{let n=this.get(i.path.slice(1));return n?(e.pauseNotification(),e.command("setlocal nospell nofoldenable nowrap noswapfile",!0),e.command("setlocal buftype=nofile bufhidden=hide",!0),e.command("setfiletype log",!0),await e.resumeNotification(),n.content):""}}}get names(){return Array.from(Vn.keys())}get(e){return Vn.get(e)}create(e,t){if(Vn.has(e))return Vn.get(e);if(!/^[\w\s-.]+$/.test(e))throw new Error(`Invalid channel name "${e}", only word characters and white space allowed.`);let i=new zB(e,t,()=>{Vn.delete(e)});return Vn.set(e,i),i}show(e,t){let i=Vn.get(e);!i||i.show(t)}dispose(){for(let e of Vn.values())e.dispose();Vn.clear()}},Qs=new GB;var bRe=U()("model-dialog"),xD=class{constructor(e,t){this.nvim=e;this.config=t;this.disposables=[];A.on("BufWinLeave",i=>{i==this.bufnr&&(this.dispose(),t.callback&&t.callback(-1))},null,this.disposables),A.on("FloatBtnClick",(i,n)=>{if(i==this.bufnr){this.dispose();let o=t==null?void 0:t.buttons.filter(s=>s.disabled!=!0);t.callback&&t.callback(o[n].index)}},null,this.disposables)}get lines(){return[...this.config.content.split(/\r?\n/)]}async show(e){let{nvim:t}=this,{title:i,close:n,buttons:o}=this.config,s=this.config.borderhighlight||e.floatBorderHighlight,a=this.config.highlight||e.floatHighlight,l={maxwidth:e.maxWidth||80};i&&(l.title=i),(n||typeof n=="undefined")&&(l.close=1),e.maxHeight&&(l.maxHeight=e.maxHeight),e.maxWidth&&(l.maxWidth=e.maxWidth),a&&(l.highlight=a),s&&(l.borderhighlight=[s]),o&&(l.buttons=o.filter(c=>!c.disabled).map(c=>c.text));let u=await t.call("coc#float#create_dialog",[this.lines,l]);!u[1]||(this.bufnr=u[1],t.command("redraw",!0))}get winid(){return this.bufnr?this.nvim.call("bufwinid",[this.bufnr]):Promise.resolve(null)}dispose(){this.bufnr=void 0,z(this.disposables),this.disposables=[]}},VB=xD;var KB=S(W());var jm=process.env.VIM_NODE_RPC=="1",DD=class{constructor(e,t,i){this.nvim=e;this.winid=t;this.bufnr=i}get valid(){return this.nvim.call("coc#float#valid",[this.winid]).then(e=>!!e)}close(){this.nvim.call("coc#float#close",[this.winid],!0)}refreshScrollbar(){jm||this.nvim.call("coc#float#nvim_scrollbar",[this.winid],!0)}execute(e){this.nvim.call("coc#float#execute",[this.winid,e],!0)}click(e,t){let{nvim:i}=this;i.call("win_gotoid",[this.winid],!0),i.call("cursor",[e,t],!0),i.call("coc#float#nvim_float_click",[],!0)}async scrollForward(){let{nvim:e,bufnr:t,winid:i}=this,o=await e.createBuffer(t).length,s;if(jm)s=await e.eval(`get(popup_getpos(${i}), 'lastline', 0)`);else{let a=await e.call("getwininfo",[i]);if(!a||!a.length)return;s=a[0].botline}s>=o||s==0||(e.pauseNotification(),this.setCursor(s-1),this.execute(`normal! ${s}Gzt`),this.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0))}async scrollBackward(){let{nvim:e,winid:t}=this,i;if(jm)i=await e.eval(`get(popup_getpos(${t}), 'firstline', 0)`);else{let n=await e.call("getwininfo",[t]);if(!n||!n.length)return;i=n[0].topline}i!=1&&(e.pauseNotification(),this.setCursor(i-1),this.execute(`normal! ${i}Gzb`),this.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0))}setCursor(e){let{nvim:t,bufnr:i,winid:n}=this;jm?t.call("win_execute",[n,`exe ${e+1}`],!0):(t.createWindow(n).notify("nvim_win_set_cursor",[[e+1,0]]),t.command(`sign unplace 6 buffer=${i}`,!0),t.command(`sign place 6 line=${e+1} name=CocCurrentLine buffer=${i}`,!0))}},Um=DD;var zpe=U()("model-menu"),SD=class{constructor(e,t,i){this.nvim=e;this.config=t;this.currIndex=0;this.disposables=[];this.keyMappings=new Map;this._onDidClose=new KB.Emitter;this.onDidClose=this._onDidClose.event;this.total=t.items.length,i&&i.onCancellationRequested(()=>{var n;(n=this.win)==null||n.close()}),this.disposables.push(this._onDidClose),this.addKeymappings()}attachEvents(){A.on("InputChar",this.onInputChar.bind(this),null,this.disposables),A.on("BufWinLeave",e=>{e==this.bufnr&&(this._onDidClose.fire(-1),this.bufnr=void 0,this.win=void 0,this.dispose())},null,this.disposables)}addKeymappings(){let{nvim:e}=this;this.addKeys(["",""],()=>{this._onDidClose.fire(-1),this.dispose()}),this.addKeys(["\r",""],()=>{this._onDidClose.fire(this.currIndex),this.dispose()});let t=o=>{var s;!this.win||(e.pauseNotification(),this.setCursor(o),(s=this.win)==null||s.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0))};this.addKeys("",async()=>{var o;await((o=this.win)==null?void 0:o.scrollForward())}),this.addKeys("",async()=>{var o;await((o=this.win)==null?void 0:o.scrollBackward())}),this.addKeys(["j","","",""],()=>{let o=this.currIndex==this.total-1?0:this.currIndex+1;t(o)}),this.addKeys(["k","","",""],()=>{let o=this.currIndex==0?this.total-1:this.currIndex-1;t(o)}),this.addKeys(["g"],()=>{t(0)}),this.addKeys(["G"],()=>{t(this.total-1)});let i,n;this.addKeys(["0","1","2","3","4","5","6","7","8","9"],o=>{i&&clearTimeout(i);let s=parseInt(o,10);if(!(isNaN(s)||s>this.total)&&!(n==null&&s==0)){if(n){let a=n*10+s;n=void 0,this._onDidClose.fire(a-1),this.dispose();return}if(this.total<10||s*10>this.total){this._onDidClose.fire(s-1),this.dispose();return}i=setTimeout(async()=>{this._onDidClose.fire(s-1),this.dispose()},200),n=s}})}async show(e={}){let{nvim:t}=this,{title:i,items:n}=this.config,o={};i&&(o.title=i),e.maxHeight&&(o.maxHeight=e.maxHeight),e.maxWidth&&(o.maxWidth=e.maxWidth),e.floatHighlight&&(o.highlight=e.floatHighlight),e.floatBorderHighlight&&(o.borderhighlight=[e.floatBorderHighlight]);let s=n.map((l,u)=>u<99?`${u+1}. ${l}`:l);e.confirmKey&&e.confirmKey!=""&&this.addKeys(e.confirmKey,()=>{this._onDidClose.fire(this.currIndex),this.dispose()});let a=await t.call("coc#float#create_menu",[s,o]);return this.win=new Um(t,a[0],a[1]),this.bufnr=a[1],this.attachEvents(),t.call("coc#prompt#start_prompt",["menu"],!0),a[0]}get buffer(){return this.bufnr?this.nvim.createBuffer(this.bufnr):void 0}dispose(){var e;z(this.disposables),this.disposables=[],this.nvim.call("coc#prompt#stop_prompt",["menu"],!0),(e=this.win)==null||e.close(),this.win=void 0}async onInputChar(e,t){if(e!="menu"||!this.win)return;let i=this.keyMappings.get(t);i?await Promise.resolve(i(t)):zpe.warn(`Ignored key press: ${t}`)}setCursor(e){!this.win||(this.currIndex=e,this.win.setCursor(e))}addKeys(e,t){if(Array.isArray(e))for(let i of e)this.keyMappings.set(i,t);else this.keyMappings.set(e,t)}},JB=SD;var YB=process.env.VIM_NODE_RPC=="1",IRe=U()("model-notification"),ED=class{constructor(e,t,i=!0){this.nvim=e;this.config=t;this.disposables=[];this._disposed=!1;i&&(A.on("BufWinLeave",n=>{n==this.bufnr&&(this.dispose(),t.callback&&t.callback(-1))},null,this.disposables),A.on("FloatBtnClick",(n,o)=>{if(n==this.bufnr){this.dispose();let s=t==null?void 0:t.buttons.filter(a=>a.disabled!=!0);t.callback&&t.callback(s[o].index)}},null,this.disposables))}get lines(){return this.config.content.split(/\r?\n/)}async show(e){let{nvim:t}=this,{title:i,close:n,timeout:o,buttons:s,borderhighlight:a}=this.config,l=Object.assign({},e);l.close=n?1:0,i&&(l.title=i),a&&(l.borderhighlight=a),s&&(l.buttons=s.filter(c=>!c.disabled).map(c=>c.text)),o&&(l.timeout=o);let u=await t.call("coc#float#create_notification",[this.lines,l]);return u?(this._disposed?(this.nvim.call("coc#float#close",[u[0]],!0),YB&&this.nvim.command("redraw",!0)):(this._winid=u[0],this.bufnr=u[1]),this._winid!=null):!1}get winid(){return this._winid}dispose(){if(this._disposed)return;this._disposed=!0;let{winid:e}=this;e&&(this.nvim.call("coc#float#close",[e],!0),YB&&this.nvim.command("redraw",!0)),this.bufnr=void 0,this._winid=void 0,z(this.disposables),this.disposables=[]}},Uf=ED;var XB=S(W());var Gpe=U()("model-dialog"),ZB=process.env.VIM_NODE_RPC=="1",CD=class{constructor(e,t,i){this.nvim=e;this.config=t;this.picked=new Set;this.currIndex=0;this.disposables=[];this.keyMappings=new Map;this._onDidClose=new XB.Emitter;this.onDidClose=this._onDidClose.event;for(let n=0;n{var n;(n=this.win)==null||n.close()}),this.disposables.push(this._onDidClose),this.addKeymappings()}attachEvents(){A.on("InputChar",this.onInputChar.bind(this),null,this.disposables),A.on("BufWinLeave",e=>{e==this.bufnr&&(this._onDidClose.fire(void 0),this.bufnr=void 0,this.win=void 0,this.dispose())},null,this.disposables),A.on("FloatBtnClick",(e,t)=>{if(e==this.bufnr){if(t==0){let i=Array.from(this.picked);this._onDidClose.fire(i.length?i:void 0)}else this._onDidClose.fire(void 0);this.dispose()}},null,this.disposables)}addKeymappings(){let{nvim:e}=this,t=n=>{this.picked.has(n)?this.picked.delete(n):this.picked.add(n)};this.addKeys("",async()=>{if(ZB||!this.win)return;let[n,o,s]=await e.eval("[v:mouse_winid,v:mouse_lnum,v:mouse_col]");if(global.hasOwnProperty("__TEST__")){let a=await e.getVar("mouse_position");n=a[0],o=a[1],s=a[2]}e.pauseNotification(),n==this.win.winid&&(s<=3?(t(o-1),this.changeLine(o-1)):this.setCursor(o-1)),e.call("win_gotoid",[n],!0),e.call("cursor",[o,s],!0),e.call("coc#float#nvim_float_click",[],!0),e.command("redraw",!0),await e.resumeNotification()}),this.addKeys(["",""],()=>{this._onDidClose.fire(void 0),this.dispose()}),this.addKeys("",()=>{if(this.picked.size==0)this._onDidClose.fire(void 0);else{let n=Array.from(this.picked);this._onDidClose.fire(n)}this.dispose()});let i=n=>{e.pauseNotification(),this.setCursor(n),this.win.refreshScrollbar(),e.command("redraw",!0),e.resumeNotification(!1,!0)};this.addKeys(["j","","",""],()=>{let n=this.currIndex==this.total-1?0:this.currIndex+1;i(n)}),this.addKeys(["k","","",""],()=>{let n=this.currIndex==0?this.total-1:this.currIndex-1;i(n)}),this.addKeys(["g"],()=>{i(0)}),this.addKeys(["G"],()=>{i(this.total-1)}),this.addKeys(" ",async()=>{let n=this.currIndex;t(n),e.pauseNotification(),this.changeLine(n),this.currIndex!=this.total-1&&this.setCursor(this.currIndex+1),e.command("redraw",!0),await e.resumeNotification()}),this.addKeys("",async()=>{var n;await((n=this.win)==null?void 0:n.scrollForward())}),this.addKeys("",async()=>{var n;await((n=this.win)==null?void 0:n.scrollBackward())})}async show(e={}){let{nvim:t}=this,{title:i,items:n}=this.config,o={close:1,cursorline:1};if(e.maxHeight&&(o.maxHeight=e.maxHeight),e.maxWidth&&(o.maxWidth=e.maxWidth),i&&(o.title=i),o.close=1,o.cursorline=1,e.floatHighlight&&(o.highlight=e.floatHighlight),e.floatBorderHighlight&&(o.borderhighlight=[e.floatBorderHighlight]),e.pickerButtons){let c=e.pickerButtonShortcut;o.buttons=["Submit"+(c?" ":""),"Cancel"+(c?"