@serverless-devs/s 3.1.3-615309d3 → 3.1.4-2f4ff585

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -320,7 +320,7 @@ ${" ".repeat(t)}`):"").join(`
320
320
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let n=new this(t);return r.forEach(u=>n.set(u)),n}static accessor(t){let n=(this[Jbt]=this[Jbt]={accessors:{}}).accessors,u=this.prototype;function i(o){let s=Ok(o);n[s]||(KEn(u,o),n[s]=!0)}return xt.isArray(t)?t.forEach(i):i(t),this}};Lx.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);xt.reduceDescriptors(Lx.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});xt.freezeMethods(Lx);var vh=Lx;function Cbe(e,t){let r=this||Nbe,n=t||r,u=vh.from(n.headers),i=n.data;return xt.forEach(e,function(s){i=s.call(r,i,u.normalize(),t?t.status:void 0)}),u.normalize(),i}function _4t(e){return!!(e&&e.__CANCEL__)}function c3(e,t,r){wr.call(this,e==null?"canceled":e,wr.ERR_CANCELED,t,r),this.name="CanceledError"}xt.inherits(c3,wr,{__CANCEL__:!0});function Tk(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new wr("Request failed with status code "+r.status,[wr.ERR_BAD_REQUEST,wr.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function YEn(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function JEn(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function qbe(e,t){return e&&!YEn(t)?JEn(e,t):t}var UQ="1.6.2";function B4t(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}var XEn=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function QEn(e,t,r){let n=r&&r.Blob||mh.classes.Blob,u=B4t(e);if(t===void 0&&n&&(t=!0),u==="data"){e=u.length?e.slice(u.length+1):e;let i=XEn.exec(e);if(!i)throw new wr("Invalid URL",wr.ERR_INVALID_URL);let o=i[1],s=i[2],a=i[3],c=Buffer.from(decodeURIComponent(a),s?"base64":"utf8");if(t){if(!n)throw new wr("Blob is not supported",wr.ERR_NOT_SUPPORT);return new n([c],{type:o})}return c}throw new wr("Unsupported protocol "+u,wr.ERR_NOT_SUPPORT)}function ZEn(e,t){let r=0,n=1e3/t,u=null;return function(o,s){let a=Date.now();if(o||a-r>n)return u&&(clearTimeout(u),u=null),r=a,e.apply(null,s);u||(u=setTimeout(()=>(u=null,r=Date.now(),e.apply(null,s)),n-(a-r)))}}function w4t(e,t){e=e||10;let r=new Array(e),n=new Array(e),u=0,i=0,o;return t=t!==void 0?t:1e3,function(a){let c=Date.now(),l=n[i];o||(o=c),r[u]=a,n[u]=c;let f=i,p=0;for(;f!==u;)p+=r[f++],f=f%e;if(u=(u+1)%e,u===i&&(i=(i+1)%e),c-o<t)return;let h=l&&c-l;return h?Math.round(p*1e3/h):void 0}}var LQ=Symbol("internals"),Bbe=class extends nv.default.Transform{constructor(t){t=xt.toFlatObject(t,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(s,a)=>!xt.isUndefined(a[s])),super({readableHighWaterMark:t.chunkSize});let r=this,n=this[LQ]={length:t.length,timeWindow:t.timeWindow,ticksRate:t.ticksRate,chunkSize:t.chunkSize,maxRate:t.maxRate,minChunkSize:t.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null},u=w4t(n.ticksRate*t.samplesCount,n.timeWindow);this.on("newListener",s=>{s==="progress"&&(n.isCaptured||(n.isCaptured=!0))});let i=0;n.updateProgress=ZEn(function(){let a=n.length,c=n.bytesSeen,l=c-i;if(!l||r.destroyed)return;let f=u(l);i=c,process.nextTick(()=>{r.emit("progress",{loaded:c,total:a,progress:a?c/a:void 0,bytes:l,rate:f||void 0,estimated:f&&a&&c<=a?(a-c)/f:void 0})})},n.ticksRate);let o=()=>{n.updateProgress(!0)};this.once("end",o),this.once("error",o)}_read(t){let r=this[LQ];return r.onReadCallback&&r.onReadCallback(),super._read(t)}_transform(t,r,n){let u=this,i=this[LQ],o=i.maxRate,s=this.readableHighWaterMark,a=i.timeWindow,c=1e3/a,l=o/c,f=i.minChunkSize!==!1?Math.max(i.minChunkSize,l*.01):0;function p(d,m){let v=Buffer.byteLength(d);i.bytesSeen+=v,i.bytes+=v,i.isCaptured&&i.updateProgress(),u.push(d)?process.nextTick(m):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(m)}}let h=(d,m)=>{let v=Buffer.byteLength(d),D=null,g=s,y,E=0;if(o){let b=Date.now();(!i.ts||(E=b-i.ts)>=a)&&(i.ts=b,y=l-i.bytes,i.bytes=y<0?-y:0,E=0),y=l-i.bytes}if(o){if(y<=0)return setTimeout(()=>{m(null,d)},a-E);y<g&&(g=y)}g&&v>g&&v-g>f&&(D=d.subarray(g),d=d.subarray(0,g)),p(d,D?()=>{process.nextTick(m,null,D)}:m)};h(t,function d(m,v){if(m)return n(m);v?h(v,d):n(null)})}setLength(t){return this[LQ].length=+t,this}},Xbt=Bbe,{asyncIterator:Qbt}=Symbol,e3n=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[Qbt]?yield*e[Qbt]():yield e},S4t=e3n,t3n=xt.ALPHABET.ALPHA_DIGIT+"-_",kk=new a4t.TextEncoder,uv=`\r
321
321
  `,r3n=kk.encode(uv),n3n=2,wbe=class{constructor(t,r){let{escapeName:n}=this.constructor,u=xt.isString(r),i=`Content-Disposition: form-data; name="${n(t)}"${!u&&r.name?`; filename="${n(r.name)}"`:""}${uv}`;u?r=kk.encode(String(r).replace(/\r?\n|\r\n?/g,uv)):i+=`Content-Type: ${r.type||"application/octet-stream"}${uv}`,this.headers=kk.encode(i+uv),this.contentLength=u?r.byteLength:r.size,this.size=this.headers.byteLength+this.contentLength+n3n,this.name=t,this.value=r}async*encode(){yield this.headers;let{value:t}=this;xt.isTypedArray(t)?yield t:yield*S4t(t),yield r3n}static escapeName(t){return String(t).replace(/[\r\n"]/g,r=>({"\r":"%0D","\n":"%0A",'"':"%22"})[r])}},u3n=(e,t,r)=>{let{tag:n="form-data-boundary",size:u=25,boundary:i=n+"-"+xt.generateString(u,t3n)}=r||{};if(!xt.isFormData(e))throw TypeError("FormData instance required");if(i.length<1||i.length>70)throw Error("boundary must be 10-70 characters long");let o=kk.encode("--"+i+uv),s=kk.encode("--"+i+"--"+uv+uv),a=s.byteLength,c=Array.from(e.entries()).map(([f,p])=>{let h=new wbe(f,p);return a+=h.size,h});a+=o.byteLength*c.length,a=xt.toFiniteNumber(a);let l={"Content-Type":`multipart/form-data; boundary=${i}`};return Number.isFinite(a)&&(l["Content-Length"]=a),t&&t(l),c4t.Readable.from(async function*(){for(let f of c)yield o,yield*f.encode();yield s}())},i3n=u3n,Sbe=class extends nv.default.Transform{__transform(t,r,n){this.push(t),n()}_transform(t,r,n){if(t.length!==0&&(this._transform=this.__transform,t[0]!==120)){let u=Buffer.alloc(2);u[0]=120,u[1]=156,this.push(u,r)}this.__transform(t,r,n)}},o3n=Sbe,s3n=(e,t)=>xt.isAsyncFn(e)?function(...r){let n=r.pop();e.apply(this,r).then(u=>{try{t?n(null,...t(u)):n(null,u)}catch(i){n(i)}},n)}:e,a3n=s3n,Zbt={flush:iv.default.constants.Z_SYNC_FLUSH,finishFlush:iv.default.constants.Z_SYNC_FLUSH},c3n={flush:iv.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:iv.default.constants.BROTLI_OPERATION_FLUSH},e4t=xt.isFunction(iv.default.createBrotliDecompress),{http:l3n,https:f3n}=YDn.default,p3n=/https:?/,t4t=mh.protocols.map(e=>e+":");function h3n(e){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e)}function O4t(e,t,r){let n=t;if(!n&&n!==!1){let u=qDn.getProxyForUrl(r);u&&(n=new URL(u))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){(n.auth.username||n.auth.password)&&(n.auth=(n.auth.username||"")+":"+(n.auth.password||""));let i=Buffer.from(n.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+i}e.headers.host=e.hostname+(e.port?":"+e.port:"");let u=n.hostname||n.host;e.hostname=u,e.host=u,e.port=n.port,e.path=r,n.protocol&&(e.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}e.beforeRedirects.proxy=function(i){O4t(i,t,i.href)}}var d3n=typeof process<"u"&&xt.kindOf(process)==="process",m3n=e=>new Promise((t,r)=>{let n,u,i=(a,c)=>{u||(u=!0,n&&n(a,c))},o=a=>{i(a),t(a)},s=a=>{i(a,!0),r(a)};e(o,s,a=>n=a).catch(s)}),g3n=({address:e,family:t})=>{if(!xt.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}},r4t=(e,t)=>g3n(xt.isObject(e)?e:{address:e,family:t}),v3n=d3n&&function(t){return m3n(async function(n,u,i){let{data:o,lookup:s,family:a}=t,{responseType:c,responseEncoding:l}=t,f=t.method.toUpperCase(),p,h=!1,d;if(s){let $=a3n(s,G=>xt.isArray(G)?G:[G]);s=(G,I,U)=>{$(G,I,(z,V,X)=>{let Z=xt.isArray(V)?V.map(ie=>r4t(ie)):[r4t(V,X)];I.all?U(z,Z):U(z,Z[0].address,Z[0].family)})}}let m=new JDn.default,v=()=>{t.cancelToken&&t.cancelToken.unsubscribe(D),t.signal&&t.signal.removeEventListener("abort",D),m.removeAllListeners()};i(($,G)=>{p=!0,G&&(h=!0,v())});function D($){m.emit("abort",!$||$.type?new c3(null,t,d):$)}m.once("abort",u),(t.cancelToken||t.signal)&&(t.cancelToken&&t.cancelToken.subscribe(D),t.signal&&(t.signal.aborted?D():t.signal.addEventListener("abort",D)));let g=qbe(t.baseURL,t.url),y=new URL(g,"http://localhost"),E=y.protocol||t4t[0];if(E==="data:"){let $;if(f!=="GET")return Tk(n,u,{status:405,statusText:"method not allowed",headers:{},config:t});try{$=QEn(t.url,c==="blob",{Blob:t.env&&t.env.Blob})}catch(G){throw wr.from(G,wr.ERR_BAD_REQUEST,t)}return c==="text"?($=$.toString(l),(!l||l==="utf8")&&($=xt.stripBOM($))):c==="stream"&&($=nv.default.Readable.from($)),Tk(n,u,{data:$,status:200,statusText:"OK",headers:new vh,config:t})}if(t4t.indexOf(E)===-1)return u(new wr("Unsupported protocol "+E,wr.ERR_BAD_REQUEST,t));let b=vh.from(t.headers).normalize();b.set("User-Agent","axios/"+UQ,!1);let C=t.onDownloadProgress,x=t.onUploadProgress,A=t.maxRate,F,S;if(xt.isSpecCompliantForm(o)){let $=b.getContentType(/boundary=([-_\w\d]{10,70})/i);o=i3n(o,G=>{b.set(G)},{tag:`axios-${UQ}-boundary`,boundary:$&&$[1]||void 0})}else if(xt.isFormData(o)&&xt.isFunction(o.getHeaders)){if(b.set(o.getHeaders()),!b.hasContentLength())try{let $=await KDn.default.promisify(o.getLength).call(o);Number.isFinite($)&&$>=0&&b.setContentLength($)}catch{}}else if(xt.isBlob(o))o.size&&b.setContentType(o.type||"application/octet-stream"),b.setContentLength(o.size||0),o=nv.default.Readable.from(S4t(o));else if(o&&!xt.isStream(o)){if(!Buffer.isBuffer(o))if(xt.isArrayBuffer(o))o=Buffer.from(new Uint8Array(o));else if(xt.isString(o))o=Buffer.from(o,"utf-8");else return u(new wr("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",wr.ERR_BAD_REQUEST,t));if(b.setContentLength(o.length,!1),t.maxBodyLength>-1&&o.length>t.maxBodyLength)return u(new wr("Request body larger than maxBodyLength limit",wr.ERR_BAD_REQUEST,t))}let B=xt.toFiniteNumber(b.getContentLength());xt.isArray(A)?(F=A[0],S=A[1]):F=S=A,o&&(x||F)&&(xt.isStream(o)||(o=nv.default.Readable.from(o,{objectMode:!1})),o=nv.default.pipeline([o,new Xbt({length:B,maxRate:xt.toFiniteNumber(F)})],xt.noop),x&&o.on("progress",$=>{x(Object.assign($,{upload:!0}))}));let O;if(t.auth){let $=t.auth.username||"",G=t.auth.password||"";O=$+":"+G}if(!O&&y.username){let $=y.username,G=y.password;O=$+":"+G}O&&b.delete("authorization");let T;try{T=jbe(y.pathname+y.search,t.params,t.paramsSerializer).replace(/^\?/,"")}catch($){let G=new Error($.message);return G.config=t,G.url=t.url,G.exists=!0,u(G)}b.set("Accept-Encoding","gzip, compress, deflate"+(e4t?", br":""),!1);let P={path:T,method:f,headers:b.toJSON(),agents:{http:t.httpAgent,https:t.httpsAgent},auth:O,protocol:E,family:a,beforeRedirect:h3n,beforeRedirects:{}};!xt.isUndefined(s)&&(P.lookup=s),t.socketPath?P.socketPath=t.socketPath:(P.hostname=y.hostname,P.port=y.port,O4t(P,t.proxy,E+"//"+y.hostname+(y.port?":"+y.port:"")+P.path));let L,N=p3n.test(P.protocol);if(P.agent=N?t.httpsAgent:t.httpAgent,t.transport?L=t.transport:t.maxRedirects===0?L=N?HDn.default:VDn.default:(t.maxRedirects&&(P.maxRedirects=t.maxRedirects),t.beforeRedirect&&(P.beforeRedirects.config=t.beforeRedirect),L=N?f3n:l3n),t.maxBodyLength>-1?P.maxBodyLength=t.maxBodyLength:P.maxBodyLength=1/0,t.insecureHTTPParser&&(P.insecureHTTPParser=t.insecureHTTPParser),d=L.request(P,function(G){if(d.destroyed)return;let I=[G],U=+G.headers["content-length"];if(C){let ie=new Xbt({length:xt.toFiniteNumber(U),maxRate:xt.toFiniteNumber(S)});C&&ie.on("progress",te=>{C(Object.assign(te,{download:!0}))}),I.push(ie)}let z=G,V=G.req||d;if(t.decompress!==!1&&G.headers["content-encoding"])switch((f==="HEAD"||G.statusCode===204)&&delete G.headers["content-encoding"],(G.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":I.push(iv.default.createUnzip(Zbt)),delete G.headers["content-encoding"];break;case"deflate":I.push(new o3n),I.push(iv.default.createUnzip(Zbt)),delete G.headers["content-encoding"];break;case"br":e4t&&(I.push(iv.default.createBrotliDecompress(c3n)),delete G.headers["content-encoding"])}z=I.length>1?nv.default.pipeline(I,xt.noop):I[0];let X=nv.default.finished(z,()=>{X(),v()}),Z={status:G.statusCode,statusText:G.statusMessage,headers:new vh(G.headers),config:t,request:V};if(c==="stream")Z.data=z,Tk(n,u,Z);else{let ie=[],te=0;z.on("data",function(ee){ie.push(ee),te+=ee.length,t.maxContentLength>-1&&te>t.maxContentLength&&(h=!0,z.destroy(),u(new wr("maxContentLength size of "+t.maxContentLength+" exceeded",wr.ERR_BAD_RESPONSE,t,V)))}),z.on("aborted",function(){if(h)return;let ee=new wr("maxContentLength size of "+t.maxContentLength+" exceeded",wr.ERR_BAD_RESPONSE,t,V);z.destroy(ee),u(ee)}),z.on("error",function(ee){d.destroyed||u(wr.from(ee,null,t,V))}),z.on("end",function(){try{let ee=ie.length===1?ie[0]:Buffer.concat(ie);c!=="arraybuffer"&&(ee=ee.toString(l),(!l||l==="utf8")&&(ee=xt.stripBOM(ee))),Z.data=ee}catch(ee){return u(wr.from(ee,null,t,Z.request,Z))}Tk(n,u,Z)})}m.once("abort",ie=>{z.destroyed||(z.emit("error",ie),z.destroy())})}),m.once("abort",$=>{u($),d.destroy($)}),d.on("error",function(G){u(wr.from(G,null,t,d))}),d.on("socket",function(G){G.setKeepAlive(!0,1e3*60)}),t.timeout){let $=parseInt(t.timeout,10);if(Number.isNaN($)){u(new wr("error trying to parse `config.timeout` to int",wr.ERR_BAD_OPTION_VALUE,t,d));return}d.setTimeout($,function(){if(p)return;let I=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",U=t.transitional||Ibe;t.timeoutErrorMessage&&(I=t.timeoutErrorMessage),u(new wr(I,U.clarifyTimeoutError?wr.ETIMEDOUT:wr.ECONNABORTED,t,d)),D()})}if(xt.isStream(o)){let $=!1,G=!1;o.on("end",()=>{$=!0}),o.once("error",I=>{G=!0,d.destroy(I)}),o.on("close",()=>{!$&&!G&&D(new c3("Request stream has been aborted",t,d))}),o.pipe(d)}else d.end(o)})},y3n=mh.hasStandardBrowserEnv?{write(e,t,r,n,u,i){let o=[e+"="+encodeURIComponent(t)];xt.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),xt.isString(n)&&o.push("path="+n),xt.isString(u)&&o.push("domain="+u),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){let t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}},D3n=mh.hasStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),n;function u(i){let o=i;return t&&(r.setAttribute("href",o),o=r.href),r.setAttribute("href",o),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=u(window.location.href),function(o){let s=xt.isString(o)?u(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}();function n4t(e,t){let r=0,n=w4t(50,250);return u=>{let i=u.loaded,o=u.lengthComputable?u.total:void 0,s=i-r,a=n(s),c=i<=o;r=i;let l={loaded:i,total:o,progress:o?i/o:void 0,bytes:s,rate:a||void 0,estimated:a&&o&&c?(o-i)/a:void 0,event:u};l[t?"download":"upload"]=!0,e(l)}}var E3n=typeof XMLHttpRequest<"u",b3n=E3n&&function(e){return new Promise(function(r,n){let u=e.data,i=vh.from(e.headers).normalize(),{responseType:o,withXSRFToken:s}=e,a;function c(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let l;if(xt.isFormData(u)){if(mh.hasStandardBrowserEnv||mh.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((l=i.getContentType())!==!1){let[m,...v]=l?l.split(";").map(D=>D.trim()).filter(Boolean):[];i.setContentType([m||"multipart/form-data",...v].join("; "))}}let f=new XMLHttpRequest;if(e.auth){let m=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(m+":"+v))}let p=qbe(e.baseURL,e.url);f.open(e.method.toUpperCase(),jbe(p,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function h(){if(!f)return;let m=vh.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),D={data:!o||o==="text"||o==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:m,config:e,request:f};Tk(function(y){r(y),c()},function(y){n(y),c()},D),f=null}if("onloadend"in f?f.onloadend=h:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(h)},f.onabort=function(){f&&(n(new wr("Request aborted",wr.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new wr("Network Error",wr.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",D=e.transitional||Ibe;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),n(new wr(v,D.clarifyTimeoutError?wr.ETIMEDOUT:wr.ECONNABORTED,e,f)),f=null},mh.hasStandardBrowserEnv&&(s&&xt.isFunction(s)&&(s=s(e)),s||s!==!1&&D3n(p))){let m=e.xsrfHeaderName&&e.xsrfCookieName&&y3n.read(e.xsrfCookieName);m&&i.set(e.xsrfHeaderName,m)}u===void 0&&i.setContentType(null),"setRequestHeader"in f&&xt.forEach(i.toJSON(),function(v,D){f.setRequestHeader(D,v)}),xt.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),o&&o!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",n4t(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",n4t(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=m=>{f&&(n(!m||m.type?new c3(null,e,f):m),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));let d=B4t(p);if(d&&mh.protocols.indexOf(d)===-1){n(new wr("Unsupported protocol "+d+":",wr.ERR_BAD_REQUEST,e));return}f.send(u||null)})},Obe={http:v3n,xhr:b3n};xt.forEach(Obe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var u4t=e=>`- ${e}`,C3n=e=>xt.isFunction(e)||e===null||e===!1,T4t={getAdapter:e=>{e=xt.isArray(e)?e:[e];let{length:t}=e,r,n,u={};for(let i=0;i<t;i++){r=e[i];let o;if(n=r,!C3n(r)&&(n=Obe[(o=String(r)).toLowerCase()],n===void 0))throw new wr(`Unknown adapter '${o}'`);if(n)break;u[o||"#"+i]=n}if(!n){let i=Object.entries(u).map(([s,a])=>`adapter ${s} `+(a===!1?"is not supported by the environment":"is not available in the build")),o=t?i.length>1?`since :
322
322
  `+i.map(u4t).join(`
323
- `):" "+u4t(i[0]):"as no adapter specified";throw new wr("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Obe};function xbe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new c3(null,e)}function i4t(e){return xbe(e),e.headers=vh.from(e.headers),e.data=Cbe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),T4t.getAdapter(e.adapter||Nbe.adapter)(e).then(function(n){return xbe(e),n.data=Cbe.call(e,e.transformResponse,n),n.headers=vh.from(n.headers),n},function(n){return _4t(n)||(xbe(e),n&&n.response&&(n.response.data=Cbe.call(e,e.transformResponse,n.response),n.response.headers=vh.from(n.response.headers))),Promise.reject(n)})}var o4t=e=>e instanceof vh?e.toJSON():e;function Nx(e,t){t=t||{};let r={};function n(c,l,f){return xt.isPlainObject(c)&&xt.isPlainObject(l)?xt.merge.call({caseless:f},c,l):xt.isPlainObject(l)?xt.merge({},l):xt.isArray(l)?l.slice():l}function u(c,l,f){if(xt.isUndefined(l)){if(!xt.isUndefined(c))return n(void 0,c,f)}else return n(c,l,f)}function i(c,l){if(!xt.isUndefined(l))return n(void 0,l)}function o(c,l){if(xt.isUndefined(l)){if(!xt.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function s(c,l,f){if(f in t)return n(c,l);if(f in e)return n(void 0,c)}let a={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,l)=>u(o4t(c),o4t(l),!0)};return xt.forEach(Object.keys(Object.assign({},e,t)),function(l){let f=a[l]||u,p=f(e[l],t[l],l);xt.isUndefined(p)&&f!==s||(r[l]=p)}),r}var Mbe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Mbe[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var s4t={};Mbe.transitional=function(t,r,n){function u(i,o){return"[Axios v"+UQ+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(t===!1)throw new wr(u(o," has been removed"+(r?" in "+r:"")),wr.ERR_DEPRECATED);return r&&!s4t[o]&&(s4t[o]=!0,console.warn(u(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}};function x3n(e,t,r){if(typeof e!="object")throw new wr("options must be an object",wr.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),u=n.length;for(;u-- >0;){let i=n[u],o=t[i];if(o){let s=e[i],a=s===void 0||o(s,i,e);if(a!==!0)throw new wr("option "+i+" must be "+a,wr.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new wr("Unknown option "+i,wr.ERR_BAD_OPTION)}}var Tbe={assertOptions:x3n,validators:Mbe},rv=Tbe.validators,qx=class{constructor(t){this.defaults=t,this.interceptors={request:new Ybt,response:new Ybt}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Nx(this.defaults,r);let{transitional:n,paramsSerializer:u,headers:i}=r;n!==void 0&&Tbe.assertOptions(n,{silentJSONParsing:rv.transitional(rv.boolean),forcedJSONParsing:rv.transitional(rv.boolean),clarifyTimeoutError:rv.transitional(rv.boolean)},!1),u!=null&&(xt.isFunction(u)?r.paramsSerializer={serialize:u}:Tbe.assertOptions(u,{encode:rv.function,serialize:rv.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&xt.merge(i.common,i[r.method]);i&&xt.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),r.headers=vh.concat(o,i);let s=[],a=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(a=a&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});let c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let l,f=0,p;if(!a){let d=[i4t.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,c),p=d.length,l=Promise.resolve(r);f<p;)l=l.then(d[f++],d[f++]);return l}p=s.length;let h=r;for(f=0;f<p;){let d=s[f++],m=s[f++];try{h=d(h)}catch(v){m.call(this,v);break}}try{l=i4t.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,p=c.length;f<p;)l=l.then(c[f++],c[f++]);return l}getUri(t){t=Nx(this.defaults,t);let r=qbe(t.baseURL,t.url);return jbe(r,t.params,t.paramsSerializer)}};xt.forEach(["delete","get","head","options"],function(t){qx.prototype[t]=function(r,n){return this.request(Nx(n||{},{method:t,url:r,data:(n||{}).data}))}});xt.forEach(["post","put","patch"],function(t){function r(n){return function(i,o,s){return this.request(Nx(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}qx.prototype[t]=r(),qx.prototype[t+"Form"]=r(!0)});var MQ=qx,Pbe=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});let n=this;this.promise.then(u=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](u);n._listeners=null}),this.promise.then=u=>{let i,o=new Promise(s=>{n.subscribe(s),i=s}).then(u);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,s){n.reason||(n.reason=new c3(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new e(function(u){t=u}),cancel:t}}},A3n=Pbe;function F3n(e){return function(r){return e.apply(null,r)}}function _3n(e){return xt.isObject(e)&&e.isAxiosError===!0}var kbe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kbe).forEach(([e,t])=>{kbe[t]=e});var B3n=kbe;function P4t(e){let t=new MQ(e),r=f4t(MQ.prototype.request,t);return xt.extend(r,MQ.prototype,t,{allOwnKeys:!0}),xt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(u){return P4t(Nx(e,u))},r}var as=P4t(Nbe);as.Axios=MQ;as.CanceledError=c3;as.CancelToken=A3n;as.isCancel=_4t;as.VERSION=UQ;as.toFormData=WQ;as.AxiosError=wr;as.Cancel=as.CanceledError;as.all=function(t){return Promise.all(t)};as.spread=F3n;as.isAxiosError=_3n;as.mergeConfig=Nx;as.AxiosHeaders=vh;as.formToJSON=e=>F4t(xt.isHTMLForm(e)?new FormData(e):e);as.getAdapter=T4t.getAdapter;as.HttpStatusCode=B3n;as.default=as;k4t.exports=as});var R4t=j(Ux=>{"use strict";Object.defineProperty(Ux,"__esModule",{value:!0});Ux.PROVIDER=Ux.BASE_URL=void 0;Ux.BASE_URL="https://api.devsapp.cn/v3";Ux.PROVIDER="devsapp/"});var L4t=j(ra=>{"use strict";var $be=ra&&ra.__awaiter||function(e,t,r,n){function u(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(l){try{c(n.next(l))}catch(f){o(f)}}function a(l){try{c(n.throw(l))}catch(f){o(f)}}function c(l){l.done?i(l.value):u(l.value).then(s,a)}c((n=n.apply(e,t||[])).next())})},HQ=ra&&ra.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ra,"__esModule",{value:!0});ra.isValidUrl=ra.getComponentCachePath=ra.getZipballUrl=ra.getProvider=ra.buildComponentInstance=ra.readJsonFile=void 0;var K5=HQ(require("path")),jk=HQ(ii()),qc=Xt(),w3n=HQ(VQ()),zbe=dr(),I4t=R4t(),S3n=HQ(require("assert")),j4t=Ld()("serverless-devs:load-component"),O3n=e=>`${I4t.BASE_URL}/packages/${e}/release/latest`,T3n=(e,t)=>`${I4t.BASE_URL}/packages/${e}/release/tags/${t}`;function Ube(e){if(jk.default.existsSync(e)){let t=jk.default.readFileSync(e,"utf8");try{return JSON.parse(t)}catch{}}}ra.readJsonFile=Ube;var P3n=e=>$be(void 0,void 0,void 0,function*(){let t=yield jk.default.stat(e);if(t.isFile()||!t.isDirectory())return e;let r=Ube(K5.default.resolve(e,"package.json")),n=(0,qc.get)(r,"main");if(n)return K5.default.resolve(e,n);let u=K5.default.resolve(e,"tsconfig.json"),i=Ube(u);if(n=(0,qc.get)(i,"compilerOptions.outDir"),n)return K5.default.resolve(e,n);let o=K5.default.resolve(e,"./src/index.js");if(jk.default.existsSync(o))return o;let s=K5.default.resolve(e,"./index.js");if(jk.default.existsSync(s))return s;throw new Error("The component cannot be required. Please check whether the setting of the component entry file is correct. In the current directory, first look for main under the package json file, secondly look for compiler options out dir under the tsconfig json file, thirdly look for src index js, and finally look for index js")}),k3n=(e,t,r=!1)=>$be(void 0,void 0,void 0,function*(){let n=yield P3n(e);if(r&&require.cache[n])try{delete require.cache[n]}catch{}let u=yield require(n),i=u.default||u;try{let o=new i(t);if(o){o.__path=e;let s=(0,zbe.getYamlContent)(K5.default.join(e,"publish.yaml")),a=(0,qc.get)(s,"Schema");o.schemaPath=a?K5.default.join(e,a):void 0;let c=(0,qc.get)(s,"Version");c&&(o.__version=c,o.__info=`${(0,qc.get)(s,"Name")}@${c}`)}return o}catch{return i}});ra.buildComponentInstance=k3n;function R3n(e){if(Gbe(e))return[e,"CUSTOM"];(0,S3n.default)(!(0,qc.includes)(e,"/"),`The component name ${e} cannot contain /`);let[t,r]=(0,qc.split)(e,"@"),{core_load_serverless_devs_component:n}=process.env;if(n){let u=(0,qc.filter)((0,qc.split)(n,";"),a=>(0,qc.includes)(a,"@")),i=[],o={};for(let a of u){let[c,l]=(0,qc.split)(a,"@");i.push(c),o[c]=l}let s=t;if((0,qc.find)(i,a=>a===s))return[t,o[s]]}return[t,r]}ra.getProvider=R3n;var j3n=(e,t)=>$be(void 0,void 0,void 0,function*(){if(t==="CUSTOM")return{};let r=t?T3n(e,t):O3n(e);j4t(`url: ${r}`);try{let n=yield w3n.default.get(r,{headers:zbe.registry.getSignHeaders()});j4t(`res: ${JSON.stringify(n.data)}`);let u=(0,qc.get)(n,"data.body.zipball_url");if((0,qc.isEmpty)(u))throw new Error(`url: ${r} is not found`);return{zipballUrl:u,version:(0,qc.get)(n,"data.body.tag_name")}}catch(n){if((0,qc.get)(n,"response.status")===404){let u=t?`${e}@${t}`:e;throw new Error(`Component or plugin ${u} is not found`)}throw n}});ra.getZipballUrl=j3n;var I3n=(e,t)=>{var r;return e=Gbe(e)?((r=e.split("/").pop())===null||r===void 0?void 0:r.split(".")[0])||"":e,K5.default.join((0,zbe.getRootHome)(),"components","devsapp.cn","v3",t?`${e}@${t}`:e)};ra.getComponentCachePath=I3n;function Gbe(e){try{return new URL(e),!0}catch{return!1}}ra.isValidUrl=Gbe});var Wbe=j((zMu,N4t)=>{"use strict";N4t.exports=e=>{let t=new Uint8Array(e);if(!(t&&t.length>1))return null;let r=(n,u)=>{u=Object.assign({offset:0},u);for(let i=0;i<n.length;i++)if(n[i]!==t[i+u.offset])return!1;return!0};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])&&r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r([80,75,3,4])&&r([77,69,84,65,45,73,78,70,47,109,111,122,105,108,108,97,46,114,115,97],{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(r([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(t[6]===0||t[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([0,0,0])&&(t[3]===24||t[3]===32)&&r([102,116,121,112],{offset:4})||r([51,103,112,53])||r([0,0,0,28,102,116,121,112,109,112,52,50])&&r([109,112,52,49,109,112,52,50,105,115,111,109],{offset:16})||r([0,0,0,28,102,116,121,112,105,115,111,109])||r([0,0,0,28,102,116,121,112,109,112,52,50,0,0,0,0]))return{ext:"mp4",mime:"video/mp4"};if(r([0,0,0,28,102,116,121,112,77,52,86]))return{ext:"m4v",mime:"video/x-m4v"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){let n=t.subarray(4,4100),u=n.findIndex((i,o,s)=>s[o]===66&&s[o+1]===130);if(u>=0){let i=u+3,o=s=>Array.from(s).every((a,c)=>n[i+c]===a.charCodeAt(0));if(o("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(o("webm"))return{ext:"webm",mime:"video/webm"}}}return r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:r([82,73,70,70])&&r([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:r([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:r([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:r([73,68,51])||r([255,251])?{ext:"mp3",mime:"audio/mpeg"}:r([102,116,121,112,77,52,65],{offset:4})||r([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:r([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:r([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:r([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:r([82,73,70,70])&&r([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:r([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:r([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:r([77,90])?{ext:"exe",mime:"application/x-msdownload"}:(t[0]===67||t[0]===70)&&r([87,83],{offset:1})?{ext:"swf",mime:"application/x-shockwave-flash"}:r([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:r([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:r([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:r([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:r([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:r([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:r([37,33])?{ext:"ps",mime:"application/postscript"}:r([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:r([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:r([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:r([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:r([77,83,67,70])||r([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:r([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:r([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:r([31,160])||r([31,157])?{ext:"Z",mime:"application/x-compress"}:r([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:r([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:r([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:r([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:r([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null}});var KQ=j((GMu,q4t)=>{"use strict";var Y5=q4t.exports=function(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"};Y5.writable=function(e){return Y5(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"};Y5.readable=function(e){return Y5(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object"};Y5.duplex=function(e){return Y5.writable(e)&&Y5.readable(e)};Y5.transform=function(e){return Y5.duplex(e)&&typeof e._transform=="function"&&typeof e._transformState=="object"}});var W0=j((WMu,Vbe)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Vbe.exports={nextTick:L3n}:Vbe.exports=process;function L3n(e,t,r,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var u=arguments.length,i,o;switch(u){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,r)});case 4:return process.nextTick(function(){e.call(null,t,r,n)});default:for(i=new Array(u-1),o=0;o<i.length;)i[o++]=arguments[o];return process.nextTick(function(){e.apply(null,i)})}}});var YQ=j((VMu,M4t)=>{var N3n={}.toString;M4t.exports=Array.isArray||function(e){return N3n.call(e)=="[object Array]"}});var Hbe=j((HMu,U4t)=>{U4t.exports=require("stream")});var zx=j((Kbe,z4t)=>{var JQ=require("buffer"),J5=JQ.Buffer;function $4t(e,t){for(var r in e)t[r]=e[r]}J5.from&&J5.alloc&&J5.allocUnsafe&&J5.allocUnsafeSlow?z4t.exports=JQ:($4t(JQ,Kbe),Kbe.Buffer=$x);function $x(e,t,r){return J5(e,t,r)}$4t(J5,$x);$x.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return J5(e,t,r)};$x.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=J5(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};$x.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return J5(e)};$x.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return JQ.SlowBuffer(e)}});var Uc=j(Mc=>{function q3n(e){return Array.isArray?Array.isArray(e):XQ(e)==="[object Array]"}Mc.isArray=q3n;function M3n(e){return typeof e=="boolean"}Mc.isBoolean=M3n;function U3n(e){return e===null}Mc.isNull=U3n;function $3n(e){return e==null}Mc.isNullOrUndefined=$3n;function z3n(e){return typeof e=="number"}Mc.isNumber=z3n;function G3n(e){return typeof e=="string"}Mc.isString=G3n;function W3n(e){return typeof e=="symbol"}Mc.isSymbol=W3n;function V3n(e){return e===void 0}Mc.isUndefined=V3n;function H3n(e){return XQ(e)==="[object RegExp]"}Mc.isRegExp=H3n;function K3n(e){return typeof e=="object"&&e!==null}Mc.isObject=K3n;function Y3n(e){return XQ(e)==="[object Date]"}Mc.isDate=Y3n;function J3n(e){return XQ(e)==="[object Error]"||e instanceof Error}Mc.isError=J3n;function X3n(e){return typeof e=="function"}Mc.isFunction=X3n;function Q3n(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Mc.isPrimitive=Q3n;Mc.isBuffer=require("buffer").Buffer.isBuffer;function XQ(e){return Object.prototype.toString.call(e)}});var W4t=j((YMu,Ybe)=>{"use strict";function Z3n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var G4t=zx().Buffer,Ik=require("util");function e7n(e,t,r){e.copy(t,r)}Ybe.exports=function(){function e(){Z3n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var n=this.head,u=""+n.data;n=n.next;)u+=r+n.data;return u},e.prototype.concat=function(r){if(this.length===0)return G4t.alloc(0);for(var n=G4t.allocUnsafe(r>>>0),u=this.head,i=0;u;)e7n(u.data,n,i),i+=u.data.length,u=u.next;return n},e}();Ik&&Ik.inspect&&Ik.inspect.custom&&(Ybe.exports.prototype[Ik.inspect.custom]=function(){var e=Ik.inspect({length:this.length});return this.constructor.name+" "+e})});var Jbe=j((JMu,V4t)=>{"use strict";var QQ=W0();function t7n(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return n||u?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,QQ.nextTick(ZQ,this,e)):QQ.nextTick(ZQ,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!t&&i?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,QQ.nextTick(ZQ,r,i)):QQ.nextTick(ZQ,r,i):t&&t(i)}),this)}function r7n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ZQ(e,t){e.emit("error",t)}V4t.exports={destroy:t7n,undestroy:r7n}});var Qbe=j((XMu,eCt)=>{"use strict";var l3=W0();eCt.exports=cs;function K4t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){E7n(t,e)}}var n7n=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:l3.nextTick,Gx;cs.WritableState=Nk;var Y4t=Object.create(Uc());Y4t.inherits=Oi();var u7n={deprecate:MT()},J4t=Hbe(),tZ=zx().Buffer,i7n=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o7n(e){return tZ.from(e)}function s7n(e){return tZ.isBuffer(e)||e instanceof i7n}var X4t=Jbe();Y4t.inherits(cs,J4t);function a7n(){}function Nk(e,t){Gx=Gx||f3(),e=e||{};var r=t instanceof Gx;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,u=e.writableHighWaterMark,i=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(u||u===0)?this.highWaterMark=u:this.highWaterMark=i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(s){m7n(t,s)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new K4t(this)}Nk.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Nk.prototype,"buffer",{get:u7n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var eZ;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(eZ=Function.prototype[Symbol.hasInstance],Object.defineProperty(cs,Symbol.hasInstance,{value:function(e){return eZ.call(this,e)?!0:this!==cs?!1:e&&e._writableState instanceof Nk}})):eZ=function(e){return e instanceof this};function cs(e){if(Gx=Gx||f3(),!eZ.call(cs,this)&&!(this instanceof Gx))return new cs(e);this._writableState=new Nk(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),J4t.call(this)}cs.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function c7n(e,t){var r=new Error("write after end");e.emit("error",r),l3.nextTick(t,r)}function l7n(e,t,r,n){var u=!0,i=!1;return r===null?i=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),l3.nextTick(n,i),u=!1),u}cs.prototype.write=function(e,t,r){var n=this._writableState,u=!1,i=!n.objectMode&&s7n(e);return i&&!tZ.isBuffer(e)&&(e=o7n(e)),typeof t=="function"&&(r=t,t=null),i?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=a7n),n.ended?c7n(this,r):(i||l7n(this,n,e,r))&&(n.pendingcb++,u=p7n(this,n,i,e,t,r)),u};cs.prototype.cork=function(){var e=this._writableState;e.corked++};cs.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Q4t(this,e))};cs.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function f7n(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=tZ.from(t,r)),t}Object.defineProperty(cs.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function p7n(e,t,r,n,u,i){if(!r){var o=f7n(t,n,u);n!==o&&(r=!0,u="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var a=t.length<t.highWaterMark;if(a||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:u,isBuf:r,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Xbe(e,t,!1,s,n,u,i);return a}function Xbe(e,t,r,n,u,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(u,t.onwrite):e._write(u,i,t.onwrite),t.sync=!1}function h7n(e,t,r,n,u){--t.pendingcb,r?(l3.nextTick(u,n),l3.nextTick(Lk,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(u(n),e._writableState.errorEmitted=!0,e.emit("error",n),Lk(e,t))}function d7n(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function m7n(e,t){var r=e._writableState,n=r.sync,u=r.writecb;if(d7n(r),t)h7n(e,r,n,t,u);else{var i=Z4t(r);!i&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Q4t(e,r),n?n7n(H4t,e,r,i,u):H4t(e,r,i,u)}}function H4t(e,t,r,n){r||g7n(e,t),t.pendingcb--,n(),Lk(e,t)}function g7n(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Q4t(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,u=new Array(n),i=t.corkedRequestsFree;i.entry=r;for(var o=0,s=!0;r;)u[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;u.allBuffers=s,Xbe(e,t,!0,t.length,u,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new K4t(t),t.bufferedRequestCount=0}else{for(;r;){var a=r.chunk,c=r.encoding,l=r.callback,f=t.objectMode?1:a.length;if(Xbe(e,t,!1,f,a,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}cs.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};cs.prototype._writev=null;cs.prototype.end=function(e,t,r){var n=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||D7n(this,n,r)};function Z4t(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function v7n(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Lk(e,t)})}function y7n(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,l3.nextTick(v7n,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Lk(e,t){var r=Z4t(t);return r&&(y7n(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function D7n(e,t,r){t.ending=!0,Lk(e,t),r&&(t.finished?l3.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function E7n(e,t,r){var n=e.entry;for(e.entry=null;n;){var u=n.callback;t.pendingcb--,u(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(cs.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});cs.prototype.destroy=X4t.destroy;cs.prototype._undestroy=X4t.undestroy;cs.prototype._destroy=function(e,t){this.end(),t(e)}});var f3=j((QMu,uCt)=>{"use strict";var tCt=W0(),b7n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};uCt.exports=X5;var rCt=Object.create(Uc());rCt.inherits=Oi();var nCt=t4e(),e4e=Qbe();rCt.inherits(X5,nCt);for(Zbe=b7n(e4e.prototype),rZ=0;rZ<Zbe.length;rZ++)nZ=Zbe[rZ],X5.prototype[nZ]||(X5.prototype[nZ]=e4e.prototype[nZ]);var Zbe,nZ,rZ;function X5(e){if(!(this instanceof X5))return new X5(e);nCt.call(this,e),e4e.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",C7n)}Object.defineProperty(X5.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function C7n(){this.allowHalfOpen||this._writableState.ended||tCt.nextTick(x7n,this)}function x7n(e){e.end()}Object.defineProperty(X5.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});X5.prototype._destroy=function(e,t){this.push(null),this.end(),tCt.nextTick(t,e)}});var u4e=j(oCt=>{"use strict";var n4e=zx().Buffer,iCt=n4e.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function A7n(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function F7n(e){var t=A7n(e);if(typeof t!="string"&&(n4e.isEncoding===iCt||!iCt(e)))throw new Error("Unknown encoding: "+e);return t||e}oCt.StringDecoder=qk;function qk(e){this.encoding=F7n(e);var t;switch(this.encoding){case"utf16le":this.text=T7n,this.end=P7n,t=4;break;case"utf8":this.fillLast=w7n,t=4;break;case"base64":this.text=k7n,this.end=R7n,t=3;break;default:this.write=j7n,this.end=I7n;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n4e.allocUnsafe(t)}qk.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};qk.prototype.end=O7n;qk.prototype.text=S7n;qk.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function r4e(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function _7n(e,t,r){var n=t.length-1;if(n<r)return 0;var u=r4e(t[n]);return u>=0?(u>0&&(e.lastNeed=u-1),u):--n<r||u===-2?0:(u=r4e(t[n]),u>=0?(u>0&&(e.lastNeed=u-2),u):--n<r||u===-2?0:(u=r4e(t[n]),u>=0?(u>0&&(u===2?u=0:e.lastNeed=u-3),u):0))}function B7n(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function w7n(e){var t=this.lastTotal-this.lastNeed,r=B7n(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function S7n(e,t){var r=_7n(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function O7n(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function T7n(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function P7n(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function k7n(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function R7n(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function j7n(e){return e.toString(this.encoding)}function I7n(e){return e&&e.length?this.write(e):""}});var t4e=j((tUu,yCt)=>{"use strict";var Vx=W0();yCt.exports=Ti;var L7n=YQ(),Mk;Ti.ReadableState=hCt;var eUu=require("events").EventEmitter,lCt=function(e,t){return e.listeners(t).length},c4e=Hbe(),Uk=zx().Buffer,N7n=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function q7n(e){return Uk.from(e)}function M7n(e){return Uk.isBuffer(e)||e instanceof N7n}var fCt=Object.create(Uc());fCt.inherits=Oi();var i4e=require("util"),wu=void 0;i4e&&i4e.debuglog?wu=i4e.debuglog("stream"):wu=function(){};var U7n=W4t(),pCt=Jbe(),Wx;fCt.inherits(Ti,c4e);var o4e=["error","close","destroy","pause","resume"];function $7n(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):L7n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function hCt(e,t){Mk=Mk||f3(),e=e||{};var r=t instanceof Mk;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,u=e.readableHighWaterMark,i=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(u||u===0)?this.highWaterMark=u:this.highWaterMark=i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new U7n,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Wx||(Wx=u4e().StringDecoder),this.decoder=new Wx(e.encoding),this.encoding=e.encoding)}function Ti(e){if(Mk=Mk||f3(),!(this instanceof Ti))return new Ti(e);this._readableState=new hCt(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),c4e.call(this)}Object.defineProperty(Ti.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Ti.prototype.destroy=pCt.destroy;Ti.prototype._undestroy=pCt.undestroy;Ti.prototype._destroy=function(e,t){this.push(null),t(e)};Ti.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Uk.from(e,t),t=""),n=!0),dCt(this,e,t,!1,n)};Ti.prototype.unshift=function(e){return dCt(this,e,null,!0,!1)};function dCt(e,t,r,n,u){var i=e._readableState;if(t===null)i.reading=!1,V7n(e,i);else{var o;u||(o=z7n(i,t)),o?e.emit("error",o):i.objectMode||t&&t.length>0?(typeof t!="string"&&!i.objectMode&&Object.getPrototypeOf(t)!==Uk.prototype&&(t=q7n(t)),n?i.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):s4e(e,i,t,!0):i.ended?e.emit("error",new Error("stream.push() after EOF")):(i.reading=!1,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||t.length!==0?s4e(e,i,t,!1):mCt(e,i)):s4e(e,i,t,!1))):n||(i.reading=!1)}return G7n(i)}function s4e(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&uZ(e)),mCt(e,t)}function z7n(e,t){var r;return!M7n(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function G7n(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Ti.prototype.isPaused=function(){return this._readableState.flowing===!1};Ti.prototype.setEncoding=function(e){return Wx||(Wx=u4e().StringDecoder),this._readableState.decoder=new Wx(e),this._readableState.encoding=e,this};var sCt=8388608;function W7n(e){return e>=sCt?e=sCt:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function aCt(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=W7n(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Ti.prototype.read=function(e){wu("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return wu("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?a4e(this):uZ(this),null;if(e=aCt(e,t),e===0&&t.ended)return t.length===0&&a4e(this),null;var n=t.needReadable;wu("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,wu("length less than watermark",n)),t.ended||t.reading?(n=!1,wu("reading or ended",n)):n&&(wu("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=aCt(r,t)));var u;return e>0?u=gCt(e,t):u=null,u===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&a4e(this)),u!==null&&this.emit("data",u),u};function V7n(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,uZ(e)}}function uZ(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(wu("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Vx.nextTick(cCt,e):cCt(e))}function cCt(e){wu("emit readable"),e.emit("readable"),l4e(e)}function mCt(e,t){t.readingMore||(t.readingMore=!0,Vx.nextTick(H7n,e,t))}function H7n(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(wu("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}Ti.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Ti.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,wu("pipe count=%d opts=%j",n.pipesCount,t);var u=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,i=u?s:v;n.endEmitted?Vx.nextTick(i):r.once("end",i),e.on("unpipe",o);function o(D,g){wu("onunpipe"),D===r&&g&&g.hasUnpiped===!1&&(g.hasUnpiped=!0,l())}function s(){wu("onend"),e.end()}var a=K7n(r);e.on("drain",a);var c=!1;function l(){wu("cleanup"),e.removeListener("close",d),e.removeListener("finish",m),e.removeListener("drain",a),e.removeListener("error",h),e.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",v),r.removeListener("data",p),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&a()}var f=!1;r.on("data",p);function p(D){wu("ondata"),f=!1;var g=e.write(D);g===!1&&!f&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&vCt(n.pipes,e)!==-1)&&!c&&(wu("false write response, pause",n.awaitDrain),n.awaitDrain++,f=!0),r.pause())}function h(D){wu("onerror",D),v(),e.removeListener("error",h),lCt(e,"error")===0&&e.emit("error",D)}$7n(e,"error",h);function d(){e.removeListener("finish",m),v()}e.once("close",d);function m(){wu("onfinish"),e.removeListener("close",d),v()}e.once("finish",m);function v(){wu("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(wu("pipe resume"),r.resume()),e};function K7n(e){return function(){var t=e._readableState;wu("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&lCt(e,"data")&&(t.flowing=!0,l4e(e))}}Ti.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,u=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<u;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var o=vCt(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};Ti.prototype.on=function(e,t){var r=c4e.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&uZ(this):Vx.nextTick(Y7n,this))}return r};Ti.prototype.addListener=Ti.prototype.on;function Y7n(e){wu("readable nexttick read 0"),e.read(0)}Ti.prototype.resume=function(){var e=this._readableState;return e.flowing||(wu("resume"),e.flowing=!0,J7n(this,e)),this};function J7n(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Vx.nextTick(X7n,e,t))}function X7n(e,t){t.reading||(wu("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),l4e(e),t.flowing&&!t.reading&&e.read(0)}Ti.prototype.pause=function(){return wu("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(wu("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function l4e(e){var t=e._readableState;for(wu("flow",t.flowing);t.flowing&&e.read()!==null;);}Ti.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(wu("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(wu("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var u in e)this[u]===void 0&&typeof e[u]=="function"&&(this[u]=function(o){return function(){return e[o].apply(e,arguments)}}(u));for(var i=0;i<o4e.length;i++)e.on(o4e[i],this.emit.bind(this,o4e[i]));return this._read=function(o){wu("wrapped _read",o),n&&(n=!1,e.resume())},this};Object.defineProperty(Ti.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Ti._fromList=gCt;function gCt(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=Q7n(e,t.buffer,t.decoder),r}function Q7n(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?n=t.shift():n=r?Z7n(e,t):e9n(e,t),n}function Z7n(e,t){var r=t.head,n=1,u=r.data;for(e-=u.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(o===i.length?u+=i:u+=i.slice(0,e),e-=o,e===0){o===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(o));break}++n}return t.length-=n,u}function e9n(e,t){var r=Uk.allocUnsafe(e),n=t.head,u=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,o),e-=o,e===0){o===i.length?(++u,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(o));break}++u}return t.length-=u,r}function a4e(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Vx.nextTick(t9n,t,e))}function t9n(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function vCt(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var f4e=j((rUu,bCt)=>{"use strict";bCt.exports=Q5;var iZ=f3(),ECt=Object.create(Uc());ECt.inherits=Oi();ECt.inherits(Q5,iZ);function r9n(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var u=this._readableState;u.reading=!1,(u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}function Q5(e){if(!(this instanceof Q5))return new Q5(e);iZ.call(this,e),this._transformState={afterTransform:r9n.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",n9n)}function n9n(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){DCt(e,t,r)}):DCt(this,null,null)}Q5.prototype.push=function(e,t){return this._transformState.needTransform=!1,iZ.prototype.push.call(this,e,t)};Q5.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Q5.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var u=this._readableState;(n.needTransform||u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}};Q5.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Q5.prototype._destroy=function(e,t){var r=this;iZ.prototype._destroy.call(this,e,function(n){t(n),r.emit("close")})};function DCt(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var FCt=j((nUu,ACt)=>{"use strict";ACt.exports=$k;var CCt=f4e(),xCt=Object.create(Uc());xCt.inherits=Oi();xCt.inherits($k,CCt);function $k(e){if(!(this instanceof $k))return new $k(e);CCt.call(this,e)}$k.prototype._transform=function(e,t,r){r(null,e)}});var Hx=j((Wa,oZ)=>{var N2=require("stream");process.env.READABLE_STREAM==="disable"&&N2?(oZ.exports=N2,Wa=oZ.exports=N2.Readable,Wa.Readable=N2.Readable,Wa.Writable=N2.Writable,Wa.Duplex=N2.Duplex,Wa.Transform=N2.Transform,Wa.PassThrough=N2.PassThrough,Wa.Stream=N2):(Wa=oZ.exports=t4e(),Wa.Stream=N2||Wa,Wa.Readable=Wa,Wa.Writable=Qbe(),Wa.Duplex=f3(),Wa.Transform=f4e(),Wa.PassThrough=FCt())});var BCt=j((uUu,_Ct)=>{_Ct.exports=Hx().Duplex});var SCt=j((iUu,wCt)=>{var p4e=BCt(),u9n=require("util"),Kx=zx().Buffer;function Fo(e){if(!(this instanceof Fo))return new Fo(e);if(this._bufs=[],this.length=0,typeof e=="function"){this._callback=e;var t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)})}else this.append(e);p4e.call(this)}u9n.inherits(Fo,p4e);Fo.prototype._offset=function(t){var r=0,n=0,u;if(t===0)return[0,0];for(;n<this._bufs.length;n++){if(u=r+this._bufs[n].length,t<u||n==this._bufs.length-1)return[n,t-r];r=u}};Fo.prototype.append=function(t){var r=0;if(Kx.isBuffer(t))this._appendBuffer(t);else if(Array.isArray(t))for(;r<t.length;r++)this.append(t[r]);else if(t instanceof Fo)for(;r<t._bufs.length;r++)this.append(t._bufs[r]);else t!=null&&(typeof t=="number"&&(t=t.toString()),this._appendBuffer(Kx.from(t)));return this};Fo.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};Fo.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};Fo.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};Fo.prototype.end=function(t){p4e.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};Fo.prototype.get=function(t){return this.slice(t,t+1)[0]};Fo.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};Fo.prototype.copy=function(t,r,n,u){if((typeof n!="number"||n<0)&&(n=0),(typeof u!="number"||u>this.length)&&(u=this.length),n>=this.length||u<=0)return t||Kx.alloc(0);var i=!!t,o=this._offset(n),s=u-n,a=s,c=i&&r||0,l=o[1],f,p;if(n===0&&u==this.length){if(!i)return this._bufs.length===1?this._bufs[0]:Kx.concat(this._bufs,this.length);for(p=0;p<this._bufs.length;p++)this._bufs[p].copy(t,c),c+=this._bufs[p].length;return t}if(a<=this._bufs[o[0]].length-l)return i?this._bufs[o[0]].copy(t,r,l,l+a):this._bufs[o[0]].slice(l,l+a);for(i||(t=Kx.allocUnsafe(s)),p=o[0];p<this._bufs.length;p++){if(f=this._bufs[p].length-l,a>f)this._bufs[p].copy(t,c,l),c+=f;else{this._bufs[p].copy(t,c,l,l+a),c+=f;break}a-=f,l&&(l=0)}return t.length>c?t.slice(0,c):t};Fo.prototype.shallowSlice=function(t,r){t=t||0,r=r||this.length,t<0&&(t+=this.length),r<0&&(r+=this.length);var n=this._offset(t),u=this._offset(r),i=this._bufs.slice(n[0],u[0]+1);return u[1]==0?i.pop():i[i.length-1]=i[i.length-1].slice(0,u[1]),n[1]!=0&&(i[0]=i[0].slice(n[1])),new Fo(i)};Fo.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};Fo.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};Fo.prototype.duplicate=function(){for(var t=0,r=new Fo;t<this._bufs.length;t++)r.append(this._bufs[t]);return r};Fo.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)};(function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var t in e)(function(r){Fo.prototype[r]=function(n){return this.slice(n,n+e[r])[r](0)}})(t)})();wCt.exports=Fo});var TCt=j((oUu,OCt)=>{OCt.exports=o9n;var i9n=Object.prototype.hasOwnProperty;function o9n(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)i9n.call(r,n)&&(e[n]=r[n])}return e}});var h4e=j((sUu,kCt)=>{kCt.exports=a9n;var PCt=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from:s9n;function s9n(e,t){return new Buffer(e,t)}function a9n(e,t){if(Buffer.isBuffer(e))return e;if(typeof e=="string")return PCt(e,t);if(Array.isArray(e))return PCt(e);throw new Error("Input should be a buffer or a string")}});var jCt=j((aUu,RCt)=>{var c9n=function(){try{if(!Buffer.isEncoding("latin1"))return!1;var e=Buffer.alloc?Buffer.alloc(4):new Buffer(4);return e.fill("ab","ucs2"),e.toString("hex")==="61006200"}catch{return!1}}();function l9n(e){return e.length===1&&e.charCodeAt(0)<256}function sZ(e,t,r,n){if(r<0||n>e.length)throw new RangeError("Out of range index");return r=r>>>0,n=n===void 0?e.length:n>>>0,n>r&&e.fill(t,r,n),e}function f9n(e,t,r,n){if(r<0||n>e.length)throw new RangeError("Out of range index");if(n<=r)return e;r=r>>>0,n=n===void 0?e.length:n>>>0;for(var u=r,i=t.length;u<=n-i;)t.copy(e,u),u+=i;return u!==n&&t.copy(e,u,0,n-u),e}function p9n(e,t,r,n,u){if(c9n)return e.fill(t,r,n,u);if(typeof t=="number")return sZ(e,t,r,n);if(typeof t=="string"){if(typeof r=="string"?(u=r,r=0,n=e.length):typeof n=="string"&&(u=n,n=e.length),u!==void 0&&typeof u!="string")throw new TypeError("encoding must be a string");if(u==="latin1"&&(u="binary"),typeof u=="string"&&!Buffer.isEncoding(u))throw new TypeError("Unknown encoding: "+u);if(t==="")return sZ(e,0,r,n);if(l9n(t))return sZ(e,t.charCodeAt(0),r,n);t=new Buffer(t,u)}return Buffer.isBuffer(t)?f9n(e,t,r,n):sZ(e,0,r,n)}RCt.exports=p9n});var LCt=j((cUu,ICt)=>{function h9n(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');return Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e)}ICt.exports=h9n});var d4e=j((lUu,qCt)=>{var NCt=jCt(),d9n=LCt();qCt.exports=function(t,r,n){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative');if(Buffer.alloc)return Buffer.alloc(t,r,n);var u=d9n(t);return t===0?u:r===void 0?NCt(u,0):(typeof n!="string"&&(n=void 0),NCt(u,r,n))}});var g4e=j(Jx=>{var m9n=h4e(),g9n=d4e(),v9n="0000000000000000000",y9n="7777777777777777777",MCt=48,D9n="ustar\x0000",E9n=parseInt("7777",8),b9n=function(e,t,r){return typeof e!="number"?r:(e=~~e,e>=t?t:e>=0||(e+=t,e>=0)?e:0)},C9n=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null},x9n=function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0},UCt=function(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n},$Ct=function(e){for(var t=256,r=0;r<148;r++)t+=e[r];for(var n=156;n<512;n++)t+=e[n];return t},ov=function(e,t){return e=e.toString(8),e.length>t?y9n.slice(0,t)+" ":v9n.slice(0,t-e.length)+e+" "};function A9n(e){var t;if(e[0]===128)t=!0;else if(e[0]===255)t=!1;else return null;for(var r=!1,n=[],u=e.length-1;u>0;u--){var i=e[u];t?n.push(i):r&&i===0?n.push(0):r?(r=!1,n.push(256-i)):n.push(255-i)}var o=0,s=n.length;for(u=0;u<s;u++)o+=n[u]*Math.pow(256,u);return t?o:-1*o}var sv=function(e,t,r){if(e=e.slice(t,t+r),t=0,e[t]&128)return A9n(e);for(;t<e.length&&e[t]===32;)t++;for(var n=b9n(UCt(e,32,t,e.length),e.length,e.length);t<n&&e[t]===0;)t++;return n===t?0:parseInt(e.slice(t,n).toString(),8)},Yx=function(e,t,r,n){return e.slice(t,UCt(e,0,t,t+r)).toString(n)},m4e=function(e){var t=Buffer.byteLength(e),r=Math.floor(Math.log(t)/Math.log(10))+1;return t+r>=Math.pow(10,r)&&r++,t+r+e};Jx.decodeLongPath=function(e,t){return Yx(e,0,e.length,t)};Jx.encodePax=function(e){var t="";e.name&&(t+=m4e(" path="+e.name+`
323
+ `):" "+u4t(i[0]):"as no adapter specified";throw new wr("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Obe};function xbe(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new c3(null,e)}function i4t(e){return xbe(e),e.headers=vh.from(e.headers),e.data=Cbe.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),T4t.getAdapter(e.adapter||Nbe.adapter)(e).then(function(n){return xbe(e),n.data=Cbe.call(e,e.transformResponse,n),n.headers=vh.from(n.headers),n},function(n){return _4t(n)||(xbe(e),n&&n.response&&(n.response.data=Cbe.call(e,e.transformResponse,n.response),n.response.headers=vh.from(n.response.headers))),Promise.reject(n)})}var o4t=e=>e instanceof vh?e.toJSON():e;function Nx(e,t){t=t||{};let r={};function n(c,l,f){return xt.isPlainObject(c)&&xt.isPlainObject(l)?xt.merge.call({caseless:f},c,l):xt.isPlainObject(l)?xt.merge({},l):xt.isArray(l)?l.slice():l}function u(c,l,f){if(xt.isUndefined(l)){if(!xt.isUndefined(c))return n(void 0,c,f)}else return n(c,l,f)}function i(c,l){if(!xt.isUndefined(l))return n(void 0,l)}function o(c,l){if(xt.isUndefined(l)){if(!xt.isUndefined(c))return n(void 0,c)}else return n(void 0,l)}function s(c,l,f){if(f in t)return n(c,l);if(f in e)return n(void 0,c)}let a={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,l)=>u(o4t(c),o4t(l),!0)};return xt.forEach(Object.keys(Object.assign({},e,t)),function(l){let f=a[l]||u,p=f(e[l],t[l],l);xt.isUndefined(p)&&f!==s||(r[l]=p)}),r}var Mbe={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Mbe[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var s4t={};Mbe.transitional=function(t,r,n){function u(i,o){return"[Axios v"+UQ+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(t===!1)throw new wr(u(o," has been removed"+(r?" in "+r:"")),wr.ERR_DEPRECATED);return r&&!s4t[o]&&(s4t[o]=!0,console.warn(u(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}};function x3n(e,t,r){if(typeof e!="object")throw new wr("options must be an object",wr.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),u=n.length;for(;u-- >0;){let i=n[u],o=t[i];if(o){let s=e[i],a=s===void 0||o(s,i,e);if(a!==!0)throw new wr("option "+i+" must be "+a,wr.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new wr("Unknown option "+i,wr.ERR_BAD_OPTION)}}var Tbe={assertOptions:x3n,validators:Mbe},rv=Tbe.validators,qx=class{constructor(t){this.defaults=t,this.interceptors={request:new Ybt,response:new Ybt}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Nx(this.defaults,r);let{transitional:n,paramsSerializer:u,headers:i}=r;n!==void 0&&Tbe.assertOptions(n,{silentJSONParsing:rv.transitional(rv.boolean),forcedJSONParsing:rv.transitional(rv.boolean),clarifyTimeoutError:rv.transitional(rv.boolean)},!1),u!=null&&(xt.isFunction(u)?r.paramsSerializer={serialize:u}:Tbe.assertOptions(u,{encode:rv.function,serialize:rv.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&xt.merge(i.common,i[r.method]);i&&xt.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),r.headers=vh.concat(o,i);let s=[],a=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(a=a&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});let c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let l,f=0,p;if(!a){let d=[i4t.bind(this),void 0];for(d.unshift.apply(d,s),d.push.apply(d,c),p=d.length,l=Promise.resolve(r);f<p;)l=l.then(d[f++],d[f++]);return l}p=s.length;let h=r;for(f=0;f<p;){let d=s[f++],m=s[f++];try{h=d(h)}catch(v){m.call(this,v);break}}try{l=i4t.call(this,h)}catch(d){return Promise.reject(d)}for(f=0,p=c.length;f<p;)l=l.then(c[f++],c[f++]);return l}getUri(t){t=Nx(this.defaults,t);let r=qbe(t.baseURL,t.url);return jbe(r,t.params,t.paramsSerializer)}};xt.forEach(["delete","get","head","options"],function(t){qx.prototype[t]=function(r,n){return this.request(Nx(n||{},{method:t,url:r,data:(n||{}).data}))}});xt.forEach(["post","put","patch"],function(t){function r(n){return function(i,o,s){return this.request(Nx(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}qx.prototype[t]=r(),qx.prototype[t+"Form"]=r(!0)});var MQ=qx,Pbe=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});let n=this;this.promise.then(u=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](u);n._listeners=null}),this.promise.then=u=>{let i,o=new Promise(s=>{n.subscribe(s),i=s}).then(u);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,s){n.reason||(n.reason=new c3(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new e(function(u){t=u}),cancel:t}}},A3n=Pbe;function F3n(e){return function(r){return e.apply(null,r)}}function _3n(e){return xt.isObject(e)&&e.isAxiosError===!0}var kbe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kbe).forEach(([e,t])=>{kbe[t]=e});var B3n=kbe;function P4t(e){let t=new MQ(e),r=f4t(MQ.prototype.request,t);return xt.extend(r,MQ.prototype,t,{allOwnKeys:!0}),xt.extend(r,t,null,{allOwnKeys:!0}),r.create=function(u){return P4t(Nx(e,u))},r}var as=P4t(Nbe);as.Axios=MQ;as.CanceledError=c3;as.CancelToken=A3n;as.isCancel=_4t;as.VERSION=UQ;as.toFormData=WQ;as.AxiosError=wr;as.Cancel=as.CanceledError;as.all=function(t){return Promise.all(t)};as.spread=F3n;as.isAxiosError=_3n;as.mergeConfig=Nx;as.AxiosHeaders=vh;as.formToJSON=e=>F4t(xt.isHTMLForm(e)?new FormData(e):e);as.getAdapter=T4t.getAdapter;as.HttpStatusCode=B3n;as.default=as;k4t.exports=as});var R4t=j(Ux=>{"use strict";Object.defineProperty(Ux,"__esModule",{value:!0});Ux.PROVIDER=Ux.BASE_URL=void 0;Ux.BASE_URL="https://api.devsapp.cn/v3";Ux.PROVIDER="devsapp/"});var L4t=j(ra=>{"use strict";var $be=ra&&ra.__awaiter||function(e,t,r,n){function u(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(l){try{c(n.next(l))}catch(f){o(f)}}function a(l){try{c(n.throw(l))}catch(f){o(f)}}function c(l){l.done?i(l.value):u(l.value).then(s,a)}c((n=n.apply(e,t||[])).next())})},HQ=ra&&ra.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ra,"__esModule",{value:!0});ra.isValidUrl=ra.getComponentCachePath=ra.getZipballUrl=ra.getProvider=ra.buildComponentInstance=ra.readJsonFile=void 0;var K5=HQ(require("path")),jk=HQ(ii()),qc=Xt(),w3n=HQ(VQ()),zbe=dr(),I4t=R4t(),S3n=HQ(require("assert")),j4t=Ld()("serverless-devs:load-component"),O3n=e=>`${I4t.BASE_URL}/packages/${e}/release/latest`,T3n=(e,t)=>`${I4t.BASE_URL}/packages/${e}/release/tags/${encodeURIComponent(t)}`;function Ube(e){if(jk.default.existsSync(e)){let t=jk.default.readFileSync(e,"utf8");try{return JSON.parse(t)}catch{}}}ra.readJsonFile=Ube;var P3n=e=>$be(void 0,void 0,void 0,function*(){let t=yield jk.default.stat(e);if(t.isFile()||!t.isDirectory())return e;let r=Ube(K5.default.resolve(e,"package.json")),n=(0,qc.get)(r,"main");if(n)return K5.default.resolve(e,n);let u=K5.default.resolve(e,"tsconfig.json"),i=Ube(u);if(n=(0,qc.get)(i,"compilerOptions.outDir"),n)return K5.default.resolve(e,n);let o=K5.default.resolve(e,"./src/index.js");if(jk.default.existsSync(o))return o;let s=K5.default.resolve(e,"./index.js");if(jk.default.existsSync(s))return s;throw new Error("The component cannot be required. Please check whether the setting of the component entry file is correct. In the current directory, first look for main under the package json file, secondly look for compiler options out dir under the tsconfig json file, thirdly look for src index js, and finally look for index js")}),k3n=(e,t,r=!1)=>$be(void 0,void 0,void 0,function*(){let n=yield P3n(e);if(r&&require.cache[n])try{delete require.cache[n]}catch{}let u=yield require(n),i=u.default||u;try{let o=new i(t);if(o){o.__path=e;let s=(0,zbe.getYamlContent)(K5.default.join(e,"publish.yaml")),a=(0,qc.get)(s,"Schema");o.schemaPath=a?K5.default.join(e,a):void 0;let c=(0,qc.get)(s,"Version");c&&(o.__version=c,o.__info=`${(0,qc.get)(s,"Name")}@${c}`)}return o}catch{return i}});ra.buildComponentInstance=k3n;function R3n(e){if(Gbe(e))return[e,"CUSTOM"];(0,S3n.default)(!(0,qc.includes)(e,"/"),`The component name ${e} cannot contain /`);let[t,r]=(0,qc.split)(e,"@"),{core_load_serverless_devs_component:n}=process.env;if(n){let u=(0,qc.filter)((0,qc.split)(n,";"),a=>(0,qc.includes)(a,"@")),i=[],o={};for(let a of u){let[c,l]=(0,qc.split)(a,"@");i.push(c),o[c]=l}let s=t;if((0,qc.find)(i,a=>a===s))return[t,o[s]]}return[t,r]}ra.getProvider=R3n;var j3n=(e,t)=>$be(void 0,void 0,void 0,function*(){if(t==="CUSTOM")return{};let r=t?T3n(e,t):O3n(e);j4t(`url: ${r}`);try{let n=yield w3n.default.get(r,{headers:zbe.registry.getSignHeaders()});j4t(`res: ${JSON.stringify(n.data)}`);let u=(0,qc.get)(n,"data.body.zipball_url");if((0,qc.isEmpty)(u))throw new Error(`url: ${r} is not found`);return{zipballUrl:u,version:(0,qc.get)(n,"data.body.tag_name")}}catch(n){if((0,qc.get)(n,"response.status")===404){let u=t?`${e}@${t}`:e;throw new Error(`Component or plugin ${u} is not found`)}throw n}});ra.getZipballUrl=j3n;var I3n=(e,t)=>{var r;return e=Gbe(e)?((r=e.split("/").pop())===null||r===void 0?void 0:r.split(".")[0])||"":e,K5.default.join((0,zbe.getRootHome)(),"components","devsapp.cn","v3",t?`${e}@${t}`:e)};ra.getComponentCachePath=I3n;function Gbe(e){try{return new URL(e),!0}catch{return!1}}ra.isValidUrl=Gbe});var Wbe=j((zMu,N4t)=>{"use strict";N4t.exports=e=>{let t=new Uint8Array(e);if(!(t&&t.length>1))return null;let r=(n,u)=>{u=Object.assign({offset:0},u);for(let i=0;i<n.length;i++)if(n[i]!==t[i+u.offset])return!1;return!0};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])&&r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r([80,75,3,4])&&r([77,69,84,65,45,73,78,70,47,109,111,122,105,108,108,97,46,114,115,97],{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(r([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(t[6]===0||t[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([0,0,0])&&(t[3]===24||t[3]===32)&&r([102,116,121,112],{offset:4})||r([51,103,112,53])||r([0,0,0,28,102,116,121,112,109,112,52,50])&&r([109,112,52,49,109,112,52,50,105,115,111,109],{offset:16})||r([0,0,0,28,102,116,121,112,105,115,111,109])||r([0,0,0,28,102,116,121,112,109,112,52,50,0,0,0,0]))return{ext:"mp4",mime:"video/mp4"};if(r([0,0,0,28,102,116,121,112,77,52,86]))return{ext:"m4v",mime:"video/x-m4v"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){let n=t.subarray(4,4100),u=n.findIndex((i,o,s)=>s[o]===66&&s[o+1]===130);if(u>=0){let i=u+3,o=s=>Array.from(s).every((a,c)=>n[i+c]===a.charCodeAt(0));if(o("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(o("webm"))return{ext:"webm",mime:"video/webm"}}}return r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([119,105,100,101],{offset:4})?{ext:"mov",mime:"video/quicktime"}:r([82,73,70,70])&&r([65,86,73],{offset:8})?{ext:"avi",mime:"video/x-msvideo"}:r([48,38,178,117,142,102,207,17,166,217])?{ext:"wmv",mime:"video/x-ms-wmv"}:r([0,0,1,186])?{ext:"mpg",mime:"video/mpeg"}:r([73,68,51])||r([255,251])?{ext:"mp3",mime:"audio/mpeg"}:r([102,116,121,112,77,52,65],{offset:4})||r([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:r([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:r([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:r([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:r([82,73,70,70])&&r([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:r([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:r([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:r([77,90])?{ext:"exe",mime:"application/x-msdownload"}:(t[0]===67||t[0]===70)&&r([87,83],{offset:1})?{ext:"swf",mime:"application/x-shockwave-flash"}:r([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:r([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:r([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:r([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:r([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:r([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:r([37,33])?{ext:"ps",mime:"application/postscript"}:r([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:r([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:r([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:r([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:r([77,83,67,70])||r([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:r([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:r([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:r([31,160])||r([31,157])?{ext:"Z",mime:"application/x-compress"}:r([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:r([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:r([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:r([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:r([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null}});var KQ=j((GMu,q4t)=>{"use strict";var Y5=q4t.exports=function(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"};Y5.writable=function(e){return Y5(e)&&e.writable!==!1&&typeof e._write=="function"&&typeof e._writableState=="object"};Y5.readable=function(e){return Y5(e)&&e.readable!==!1&&typeof e._read=="function"&&typeof e._readableState=="object"};Y5.duplex=function(e){return Y5.writable(e)&&Y5.readable(e)};Y5.transform=function(e){return Y5.duplex(e)&&typeof e._transform=="function"&&typeof e._transformState=="object"}});var W0=j((WMu,Vbe)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Vbe.exports={nextTick:L3n}:Vbe.exports=process;function L3n(e,t,r,n){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var u=arguments.length,i,o;switch(u){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(function(){e.call(null,t)});case 3:return process.nextTick(function(){e.call(null,t,r)});case 4:return process.nextTick(function(){e.call(null,t,r,n)});default:for(i=new Array(u-1),o=0;o<i.length;)i[o++]=arguments[o];return process.nextTick(function(){e.apply(null,i)})}}});var YQ=j((VMu,M4t)=>{var N3n={}.toString;M4t.exports=Array.isArray||function(e){return N3n.call(e)=="[object Array]"}});var Hbe=j((HMu,U4t)=>{U4t.exports=require("stream")});var zx=j((Kbe,z4t)=>{var JQ=require("buffer"),J5=JQ.Buffer;function $4t(e,t){for(var r in e)t[r]=e[r]}J5.from&&J5.alloc&&J5.allocUnsafe&&J5.allocUnsafeSlow?z4t.exports=JQ:($4t(JQ,Kbe),Kbe.Buffer=$x);function $x(e,t,r){return J5(e,t,r)}$4t(J5,$x);$x.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return J5(e,t,r)};$x.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var n=J5(e);return t!==void 0?typeof r=="string"?n.fill(t,r):n.fill(t):n.fill(0),n};$x.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return J5(e)};$x.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return JQ.SlowBuffer(e)}});var Uc=j(Mc=>{function q3n(e){return Array.isArray?Array.isArray(e):XQ(e)==="[object Array]"}Mc.isArray=q3n;function M3n(e){return typeof e=="boolean"}Mc.isBoolean=M3n;function U3n(e){return e===null}Mc.isNull=U3n;function $3n(e){return e==null}Mc.isNullOrUndefined=$3n;function z3n(e){return typeof e=="number"}Mc.isNumber=z3n;function G3n(e){return typeof e=="string"}Mc.isString=G3n;function W3n(e){return typeof e=="symbol"}Mc.isSymbol=W3n;function V3n(e){return e===void 0}Mc.isUndefined=V3n;function H3n(e){return XQ(e)==="[object RegExp]"}Mc.isRegExp=H3n;function K3n(e){return typeof e=="object"&&e!==null}Mc.isObject=K3n;function Y3n(e){return XQ(e)==="[object Date]"}Mc.isDate=Y3n;function J3n(e){return XQ(e)==="[object Error]"||e instanceof Error}Mc.isError=J3n;function X3n(e){return typeof e=="function"}Mc.isFunction=X3n;function Q3n(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}Mc.isPrimitive=Q3n;Mc.isBuffer=require("buffer").Buffer.isBuffer;function XQ(e){return Object.prototype.toString.call(e)}});var W4t=j((YMu,Ybe)=>{"use strict";function Z3n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var G4t=zx().Buffer,Ik=require("util");function e7n(e,t,r){e.copy(t,r)}Ybe.exports=function(){function e(){Z3n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(r){var n={data:r,next:null};this.length>0?this.tail.next=n:this.head=n,this.tail=n,++this.length},e.prototype.unshift=function(r){var n={data:r,next:this.head};this.length===0&&(this.tail=n),this.head=n,++this.length},e.prototype.shift=function(){if(this.length!==0){var r=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,r}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(r){if(this.length===0)return"";for(var n=this.head,u=""+n.data;n=n.next;)u+=r+n.data;return u},e.prototype.concat=function(r){if(this.length===0)return G4t.alloc(0);for(var n=G4t.allocUnsafe(r>>>0),u=this.head,i=0;u;)e7n(u.data,n,i),i+=u.data.length,u=u.next;return n},e}();Ik&&Ik.inspect&&Ik.inspect.custom&&(Ybe.exports.prototype[Ik.inspect.custom]=function(){var e=Ik.inspect({length:this.length});return this.constructor.name+" "+e})});var Jbe=j((JMu,V4t)=>{"use strict";var QQ=W0();function t7n(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return n||u?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,QQ.nextTick(ZQ,this,e)):QQ.nextTick(ZQ,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(i){!t&&i?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,QQ.nextTick(ZQ,r,i)):QQ.nextTick(ZQ,r,i):t&&t(i)}),this)}function r7n(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function ZQ(e,t){e.emit("error",t)}V4t.exports={destroy:t7n,undestroy:r7n}});var Qbe=j((XMu,eCt)=>{"use strict";var l3=W0();eCt.exports=cs;function K4t(e){var t=this;this.next=null,this.entry=null,this.finish=function(){E7n(t,e)}}var n7n=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:l3.nextTick,Gx;cs.WritableState=Nk;var Y4t=Object.create(Uc());Y4t.inherits=Oi();var u7n={deprecate:MT()},J4t=Hbe(),tZ=zx().Buffer,i7n=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o7n(e){return tZ.from(e)}function s7n(e){return tZ.isBuffer(e)||e instanceof i7n}var X4t=Jbe();Y4t.inherits(cs,J4t);function a7n(){}function Nk(e,t){Gx=Gx||f3(),e=e||{};var r=t instanceof Gx;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var n=e.highWaterMark,u=e.writableHighWaterMark,i=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(u||u===0)?this.highWaterMark=u:this.highWaterMark=i,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var o=e.decodeStrings===!1;this.decodeStrings=!o,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(s){m7n(t,s)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new K4t(this)}Nk.prototype.getBuffer=function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r};(function(){try{Object.defineProperty(Nk.prototype,"buffer",{get:u7n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var eZ;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(eZ=Function.prototype[Symbol.hasInstance],Object.defineProperty(cs,Symbol.hasInstance,{value:function(e){return eZ.call(this,e)?!0:this!==cs?!1:e&&e._writableState instanceof Nk}})):eZ=function(e){return e instanceof this};function cs(e){if(Gx=Gx||f3(),!eZ.call(cs,this)&&!(this instanceof Gx))return new cs(e);this._writableState=new Nk(e,this),this.writable=!0,e&&(typeof e.write=="function"&&(this._write=e.write),typeof e.writev=="function"&&(this._writev=e.writev),typeof e.destroy=="function"&&(this._destroy=e.destroy),typeof e.final=="function"&&(this._final=e.final)),J4t.call(this)}cs.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function c7n(e,t){var r=new Error("write after end");e.emit("error",r),l3.nextTick(t,r)}function l7n(e,t,r,n){var u=!0,i=!1;return r===null?i=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(i=new TypeError("Invalid non-string/buffer chunk")),i&&(e.emit("error",i),l3.nextTick(n,i),u=!1),u}cs.prototype.write=function(e,t,r){var n=this._writableState,u=!1,i=!n.objectMode&&s7n(e);return i&&!tZ.isBuffer(e)&&(e=o7n(e)),typeof t=="function"&&(r=t,t=null),i?t="buffer":t||(t=n.defaultEncoding),typeof r!="function"&&(r=a7n),n.ended?c7n(this,r):(i||l7n(this,n,e,r))&&(n.pendingcb++,u=p7n(this,n,i,e,t,r)),u};cs.prototype.cork=function(){var e=this._writableState;e.corked++};cs.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&Q4t(this,e))};cs.prototype.setDefaultEncoding=function(t){if(typeof t=="string"&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this};function f7n(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=tZ.from(t,r)),t}Object.defineProperty(cs.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function p7n(e,t,r,n,u,i){if(!r){var o=f7n(t,n,u);n!==o&&(r=!0,u="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var a=t.length<t.highWaterMark;if(a||(t.needDrain=!0),t.writing||t.corked){var c=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:u,isBuf:r,callback:i,next:null},c?c.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Xbe(e,t,!1,s,n,u,i);return a}function Xbe(e,t,r,n,u,i,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(u,t.onwrite):e._write(u,i,t.onwrite),t.sync=!1}function h7n(e,t,r,n,u){--t.pendingcb,r?(l3.nextTick(u,n),l3.nextTick(Lk,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(u(n),e._writableState.errorEmitted=!0,e.emit("error",n),Lk(e,t))}function d7n(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}function m7n(e,t){var r=e._writableState,n=r.sync,u=r.writecb;if(d7n(r),t)h7n(e,r,n,t,u);else{var i=Z4t(r);!i&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Q4t(e,r),n?n7n(H4t,e,r,i,u):H4t(e,r,i,u)}}function H4t(e,t,r,n){r||g7n(e,t),t.pendingcb--,n(),Lk(e,t)}function g7n(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}function Q4t(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,u=new Array(n),i=t.corkedRequestsFree;i.entry=r;for(var o=0,s=!0;r;)u[o]=r,r.isBuf||(s=!1),r=r.next,o+=1;u.allBuffers=s,Xbe(e,t,!0,t.length,u,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new K4t(t),t.bufferedRequestCount=0}else{for(;r;){var a=r.chunk,c=r.encoding,l=r.callback,f=t.objectMode?1:a.length;if(Xbe(e,t,!1,f,a,c,l),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}cs.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};cs.prototype._writev=null;cs.prototype.end=function(e,t,r){var n=this._writableState;typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||D7n(this,n,r)};function Z4t(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}function v7n(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),Lk(e,t)})}function y7n(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,l3.nextTick(v7n,e,t)):(t.prefinished=!0,e.emit("prefinish")))}function Lk(e,t){var r=Z4t(t);return r&&(y7n(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}function D7n(e,t,r){t.ending=!0,Lk(e,t),r&&(t.finished?l3.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}function E7n(e,t,r){var n=e.entry;for(e.entry=null;n;){var u=n.callback;t.pendingcb--,u(r),n=n.next}t.corkedRequestsFree.next=e}Object.defineProperty(cs.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}});cs.prototype.destroy=X4t.destroy;cs.prototype._undestroy=X4t.undestroy;cs.prototype._destroy=function(e,t){this.end(),t(e)}});var f3=j((QMu,uCt)=>{"use strict";var tCt=W0(),b7n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};uCt.exports=X5;var rCt=Object.create(Uc());rCt.inherits=Oi();var nCt=t4e(),e4e=Qbe();rCt.inherits(X5,nCt);for(Zbe=b7n(e4e.prototype),rZ=0;rZ<Zbe.length;rZ++)nZ=Zbe[rZ],X5.prototype[nZ]||(X5.prototype[nZ]=e4e.prototype[nZ]);var Zbe,nZ,rZ;function X5(e){if(!(this instanceof X5))return new X5(e);nCt.call(this,e),e4e.call(this,e),e&&e.readable===!1&&(this.readable=!1),e&&e.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,e&&e.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",C7n)}Object.defineProperty(X5.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function C7n(){this.allowHalfOpen||this._writableState.ended||tCt.nextTick(x7n,this)}function x7n(e){e.end()}Object.defineProperty(X5.prototype,"destroyed",{get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)}});X5.prototype._destroy=function(e,t){this.push(null),this.end(),tCt.nextTick(t,e)}});var u4e=j(oCt=>{"use strict";var n4e=zx().Buffer,iCt=n4e.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function A7n(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function F7n(e){var t=A7n(e);if(typeof t!="string"&&(n4e.isEncoding===iCt||!iCt(e)))throw new Error("Unknown encoding: "+e);return t||e}oCt.StringDecoder=qk;function qk(e){this.encoding=F7n(e);var t;switch(this.encoding){case"utf16le":this.text=T7n,this.end=P7n,t=4;break;case"utf8":this.fillLast=w7n,t=4;break;case"base64":this.text=k7n,this.end=R7n,t=3;break;default:this.write=j7n,this.end=I7n;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=n4e.allocUnsafe(t)}qk.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};qk.prototype.end=O7n;qk.prototype.text=S7n;qk.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function r4e(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function _7n(e,t,r){var n=t.length-1;if(n<r)return 0;var u=r4e(t[n]);return u>=0?(u>0&&(e.lastNeed=u-1),u):--n<r||u===-2?0:(u=r4e(t[n]),u>=0?(u>0&&(e.lastNeed=u-2),u):--n<r||u===-2?0:(u=r4e(t[n]),u>=0?(u>0&&(u===2?u=0:e.lastNeed=u-3),u):0))}function B7n(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"\uFFFD";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"\uFFFD";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"\uFFFD"}}function w7n(e){var t=this.lastTotal-this.lastNeed,r=B7n(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function S7n(e,t){var r=_7n(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function O7n(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}function T7n(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function P7n(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function k7n(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function R7n(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function j7n(e){return e.toString(this.encoding)}function I7n(e){return e&&e.length?this.write(e):""}});var t4e=j((tUu,yCt)=>{"use strict";var Vx=W0();yCt.exports=Ti;var L7n=YQ(),Mk;Ti.ReadableState=hCt;var eUu=require("events").EventEmitter,lCt=function(e,t){return e.listeners(t).length},c4e=Hbe(),Uk=zx().Buffer,N7n=(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function q7n(e){return Uk.from(e)}function M7n(e){return Uk.isBuffer(e)||e instanceof N7n}var fCt=Object.create(Uc());fCt.inherits=Oi();var i4e=require("util"),wu=void 0;i4e&&i4e.debuglog?wu=i4e.debuglog("stream"):wu=function(){};var U7n=W4t(),pCt=Jbe(),Wx;fCt.inherits(Ti,c4e);var o4e=["error","close","destroy","pause","resume"];function $7n(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):L7n(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}function hCt(e,t){Mk=Mk||f3(),e=e||{};var r=t instanceof Mk;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,u=e.readableHighWaterMark,i=this.objectMode?16:16*1024;n||n===0?this.highWaterMark=n:r&&(u||u===0)?this.highWaterMark=u:this.highWaterMark=i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new U7n,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(Wx||(Wx=u4e().StringDecoder),this.decoder=new Wx(e.encoding),this.encoding=e.encoding)}function Ti(e){if(Mk=Mk||f3(),!(this instanceof Ti))return new Ti(e);this._readableState=new hCt(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),c4e.call(this)}Object.defineProperty(Ti.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}});Ti.prototype.destroy=pCt.destroy;Ti.prototype._undestroy=pCt.undestroy;Ti.prototype._destroy=function(e,t){this.push(null),t(e)};Ti.prototype.push=function(e,t){var r=this._readableState,n;return r.objectMode?n=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=Uk.from(e,t),t=""),n=!0),dCt(this,e,t,!1,n)};Ti.prototype.unshift=function(e){return dCt(this,e,null,!0,!1)};function dCt(e,t,r,n,u){var i=e._readableState;if(t===null)i.reading=!1,V7n(e,i);else{var o;u||(o=z7n(i,t)),o?e.emit("error",o):i.objectMode||t&&t.length>0?(typeof t!="string"&&!i.objectMode&&Object.getPrototypeOf(t)!==Uk.prototype&&(t=q7n(t)),n?i.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):s4e(e,i,t,!0):i.ended?e.emit("error",new Error("stream.push() after EOF")):(i.reading=!1,i.decoder&&!r?(t=i.decoder.write(t),i.objectMode||t.length!==0?s4e(e,i,t,!1):mCt(e,i)):s4e(e,i,t,!1))):n||(i.reading=!1)}return G7n(i)}function s4e(e,t,r,n){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&uZ(e)),mCt(e,t)}function z7n(e,t){var r;return!M7n(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}function G7n(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}Ti.prototype.isPaused=function(){return this._readableState.flowing===!1};Ti.prototype.setEncoding=function(e){return Wx||(Wx=u4e().StringDecoder),this._readableState.decoder=new Wx(e),this._readableState.encoding=e,this};var sCt=8388608;function W7n(e){return e>=sCt?e=sCt:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function aCt(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=W7n(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}Ti.prototype.read=function(e){wu("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return wu("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?a4e(this):uZ(this),null;if(e=aCt(e,t),e===0&&t.ended)return t.length===0&&a4e(this),null;var n=t.needReadable;wu("need readable",n),(t.length===0||t.length-e<t.highWaterMark)&&(n=!0,wu("length less than watermark",n)),t.ended||t.reading?(n=!1,wu("reading or ended",n)):n&&(wu("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=aCt(r,t)));var u;return e>0?u=gCt(e,t):u=null,u===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&a4e(this)),u!==null&&this.emit("data",u),u};function V7n(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,uZ(e)}}function uZ(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(wu("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?Vx.nextTick(cCt,e):cCt(e))}function cCt(e){wu("emit readable"),e.emit("readable"),l4e(e)}function mCt(e,t){t.readingMore||(t.readingMore=!0,Vx.nextTick(H7n,e,t))}function H7n(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(wu("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}Ti.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};Ti.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e);break}n.pipesCount+=1,wu("pipe count=%d opts=%j",n.pipesCount,t);var u=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,i=u?s:v;n.endEmitted?Vx.nextTick(i):r.once("end",i),e.on("unpipe",o);function o(D,g){wu("onunpipe"),D===r&&g&&g.hasUnpiped===!1&&(g.hasUnpiped=!0,l())}function s(){wu("onend"),e.end()}var a=K7n(r);e.on("drain",a);var c=!1;function l(){wu("cleanup"),e.removeListener("close",d),e.removeListener("finish",m),e.removeListener("drain",a),e.removeListener("error",h),e.removeListener("unpipe",o),r.removeListener("end",s),r.removeListener("end",v),r.removeListener("data",p),c=!0,n.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&a()}var f=!1;r.on("data",p);function p(D){wu("ondata"),f=!1;var g=e.write(D);g===!1&&!f&&((n.pipesCount===1&&n.pipes===e||n.pipesCount>1&&vCt(n.pipes,e)!==-1)&&!c&&(wu("false write response, pause",n.awaitDrain),n.awaitDrain++,f=!0),r.pause())}function h(D){wu("onerror",D),v(),e.removeListener("error",h),lCt(e,"error")===0&&e.emit("error",D)}$7n(e,"error",h);function d(){e.removeListener("finish",m),v()}e.once("close",d);function m(){wu("onfinish"),e.removeListener("close",d),v()}e.once("finish",m);function v(){wu("unpipe"),r.unpipe(e)}return e.emit("pipe",r),n.flowing||(wu("pipe resume"),r.resume()),e};function K7n(e){return function(){var t=e._readableState;wu("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&lCt(e,"data")&&(t.flowing=!0,l4e(e))}}Ti.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,u=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<u;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var o=vCt(t.pipes,e);return o===-1?this:(t.pipes.splice(o,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};Ti.prototype.on=function(e,t){var r=c4e.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var n=this._readableState;!n.endEmitted&&!n.readableListening&&(n.readableListening=n.needReadable=!0,n.emittedReadable=!1,n.reading?n.length&&uZ(this):Vx.nextTick(Y7n,this))}return r};Ti.prototype.addListener=Ti.prototype.on;function Y7n(e){wu("readable nexttick read 0"),e.read(0)}Ti.prototype.resume=function(){var e=this._readableState;return e.flowing||(wu("resume"),e.flowing=!0,J7n(this,e)),this};function J7n(e,t){t.resumeScheduled||(t.resumeScheduled=!0,Vx.nextTick(X7n,e,t))}function X7n(e,t){t.reading||(wu("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),l4e(e),t.flowing&&!t.reading&&e.read(0)}Ti.prototype.pause=function(){return wu("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(wu("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function l4e(e){var t=e._readableState;for(wu("flow",t.flowing);t.flowing&&e.read()!==null;);}Ti.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;e.on("end",function(){if(wu("wrapped end"),r.decoder&&!r.ended){var o=r.decoder.end();o&&o.length&&t.push(o)}t.push(null)}),e.on("data",function(o){if(wu("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var s=t.push(o);s||(n=!0,e.pause())}});for(var u in e)this[u]===void 0&&typeof e[u]=="function"&&(this[u]=function(o){return function(){return e[o].apply(e,arguments)}}(u));for(var i=0;i<o4e.length;i++)e.on(o4e[i],this.emit.bind(this,o4e[i]));return this._read=function(o){wu("wrapped _read",o),n&&(n=!1,e.resume())},this};Object.defineProperty(Ti.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}});Ti._fromList=gCt;function gCt(e,t){if(t.length===0)return null;var r;return t.objectMode?r=t.buffer.shift():!e||e>=t.length?(t.decoder?r=t.buffer.join(""):t.buffer.length===1?r=t.buffer.head.data:r=t.buffer.concat(t.length),t.buffer.clear()):r=Q7n(e,t.buffer,t.decoder),r}function Q7n(e,t,r){var n;return e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?n=t.shift():n=r?Z7n(e,t):e9n(e,t),n}function Z7n(e,t){var r=t.head,n=1,u=r.data;for(e-=u.length;r=r.next;){var i=r.data,o=e>i.length?i.length:e;if(o===i.length?u+=i:u+=i.slice(0,e),e-=o,e===0){o===i.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(o));break}++n}return t.length-=n,u}function e9n(e,t){var r=Uk.allocUnsafe(e),n=t.head,u=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var i=n.data,o=e>i.length?i.length:e;if(i.copy(r,r.length-e,0,o),e-=o,e===0){o===i.length?(++u,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(o));break}++u}return t.length-=u,r}function a4e(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,Vx.nextTick(t9n,t,e))}function t9n(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function vCt(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}});var f4e=j((rUu,bCt)=>{"use strict";bCt.exports=Q5;var iZ=f3(),ECt=Object.create(Uc());ECt.inherits=Oi();ECt.inherits(Q5,iZ);function r9n(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var u=this._readableState;u.reading=!1,(u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}function Q5(e){if(!(this instanceof Q5))return new Q5(e);iZ.call(this,e),this._transformState={afterTransform:r9n.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",n9n)}function n9n(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){DCt(e,t,r)}):DCt(this,null,null)}Q5.prototype.push=function(e,t){return this._transformState.needTransform=!1,iZ.prototype.push.call(this,e,t)};Q5.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};Q5.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var u=this._readableState;(n.needTransform||u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}};Q5.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};Q5.prototype._destroy=function(e,t){var r=this;iZ.prototype._destroy.call(this,e,function(n){t(n),r.emit("close")})};function DCt(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}});var FCt=j((nUu,ACt)=>{"use strict";ACt.exports=$k;var CCt=f4e(),xCt=Object.create(Uc());xCt.inherits=Oi();xCt.inherits($k,CCt);function $k(e){if(!(this instanceof $k))return new $k(e);CCt.call(this,e)}$k.prototype._transform=function(e,t,r){r(null,e)}});var Hx=j((Wa,oZ)=>{var N2=require("stream");process.env.READABLE_STREAM==="disable"&&N2?(oZ.exports=N2,Wa=oZ.exports=N2.Readable,Wa.Readable=N2.Readable,Wa.Writable=N2.Writable,Wa.Duplex=N2.Duplex,Wa.Transform=N2.Transform,Wa.PassThrough=N2.PassThrough,Wa.Stream=N2):(Wa=oZ.exports=t4e(),Wa.Stream=N2||Wa,Wa.Readable=Wa,Wa.Writable=Qbe(),Wa.Duplex=f3(),Wa.Transform=f4e(),Wa.PassThrough=FCt())});var BCt=j((uUu,_Ct)=>{_Ct.exports=Hx().Duplex});var SCt=j((iUu,wCt)=>{var p4e=BCt(),u9n=require("util"),Kx=zx().Buffer;function Fo(e){if(!(this instanceof Fo))return new Fo(e);if(this._bufs=[],this.length=0,typeof e=="function"){this._callback=e;var t=function(n){this._callback&&(this._callback(n),this._callback=null)}.bind(this);this.on("pipe",function(n){n.on("error",t)}),this.on("unpipe",function(n){n.removeListener("error",t)})}else this.append(e);p4e.call(this)}u9n.inherits(Fo,p4e);Fo.prototype._offset=function(t){var r=0,n=0,u;if(t===0)return[0,0];for(;n<this._bufs.length;n++){if(u=r+this._bufs[n].length,t<u||n==this._bufs.length-1)return[n,t-r];r=u}};Fo.prototype.append=function(t){var r=0;if(Kx.isBuffer(t))this._appendBuffer(t);else if(Array.isArray(t))for(;r<t.length;r++)this.append(t[r]);else if(t instanceof Fo)for(;r<t._bufs.length;r++)this.append(t._bufs[r]);else t!=null&&(typeof t=="number"&&(t=t.toString()),this._appendBuffer(Kx.from(t)));return this};Fo.prototype._appendBuffer=function(t){this._bufs.push(t),this.length+=t.length};Fo.prototype._write=function(t,r,n){this._appendBuffer(t),typeof n=="function"&&n()};Fo.prototype._read=function(t){if(!this.length)return this.push(null);t=Math.min(t,this.length),this.push(this.slice(0,t)),this.consume(t)};Fo.prototype.end=function(t){p4e.prototype.end.call(this,t),this._callback&&(this._callback(null,this.slice()),this._callback=null)};Fo.prototype.get=function(t){return this.slice(t,t+1)[0]};Fo.prototype.slice=function(t,r){return typeof t=="number"&&t<0&&(t+=this.length),typeof r=="number"&&r<0&&(r+=this.length),this.copy(null,0,t,r)};Fo.prototype.copy=function(t,r,n,u){if((typeof n!="number"||n<0)&&(n=0),(typeof u!="number"||u>this.length)&&(u=this.length),n>=this.length||u<=0)return t||Kx.alloc(0);var i=!!t,o=this._offset(n),s=u-n,a=s,c=i&&r||0,l=o[1],f,p;if(n===0&&u==this.length){if(!i)return this._bufs.length===1?this._bufs[0]:Kx.concat(this._bufs,this.length);for(p=0;p<this._bufs.length;p++)this._bufs[p].copy(t,c),c+=this._bufs[p].length;return t}if(a<=this._bufs[o[0]].length-l)return i?this._bufs[o[0]].copy(t,r,l,l+a):this._bufs[o[0]].slice(l,l+a);for(i||(t=Kx.allocUnsafe(s)),p=o[0];p<this._bufs.length;p++){if(f=this._bufs[p].length-l,a>f)this._bufs[p].copy(t,c,l),c+=f;else{this._bufs[p].copy(t,c,l,l+a),c+=f;break}a-=f,l&&(l=0)}return t.length>c?t.slice(0,c):t};Fo.prototype.shallowSlice=function(t,r){t=t||0,r=r||this.length,t<0&&(t+=this.length),r<0&&(r+=this.length);var n=this._offset(t),u=this._offset(r),i=this._bufs.slice(n[0],u[0]+1);return u[1]==0?i.pop():i[i.length-1]=i[i.length-1].slice(0,u[1]),n[1]!=0&&(i[0]=i[0].slice(n[1])),new Fo(i)};Fo.prototype.toString=function(t,r,n){return this.slice(r,n).toString(t)};Fo.prototype.consume=function(t){if(t=Math.trunc(t),Number.isNaN(t)||t<=0)return this;for(;this._bufs.length;)if(t>=this._bufs[0].length)t-=this._bufs[0].length,this.length-=this._bufs[0].length,this._bufs.shift();else{this._bufs[0]=this._bufs[0].slice(t),this.length-=t;break}return this};Fo.prototype.duplicate=function(){for(var t=0,r=new Fo;t<this._bufs.length;t++)r.append(this._bufs[t]);return r};Fo.prototype.destroy=function(){this._bufs.length=0,this.length=0,this.push(null)};(function(){var e={readDoubleBE:8,readDoubleLE:8,readFloatBE:4,readFloatLE:4,readInt32BE:4,readInt32LE:4,readUInt32BE:4,readUInt32LE:4,readInt16BE:2,readInt16LE:2,readUInt16BE:2,readUInt16LE:2,readInt8:1,readUInt8:1};for(var t in e)(function(r){Fo.prototype[r]=function(n){return this.slice(n,n+e[r])[r](0)}})(t)})();wCt.exports=Fo});var TCt=j((oUu,OCt)=>{OCt.exports=o9n;var i9n=Object.prototype.hasOwnProperty;function o9n(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)i9n.call(r,n)&&(e[n]=r[n])}return e}});var h4e=j((sUu,kCt)=>{kCt.exports=a9n;var PCt=Buffer.from&&Buffer.from!==Uint8Array.from?Buffer.from:s9n;function s9n(e,t){return new Buffer(e,t)}function a9n(e,t){if(Buffer.isBuffer(e))return e;if(typeof e=="string")return PCt(e,t);if(Array.isArray(e))return PCt(e);throw new Error("Input should be a buffer or a string")}});var jCt=j((aUu,RCt)=>{var c9n=function(){try{if(!Buffer.isEncoding("latin1"))return!1;var e=Buffer.alloc?Buffer.alloc(4):new Buffer(4);return e.fill("ab","ucs2"),e.toString("hex")==="61006200"}catch{return!1}}();function l9n(e){return e.length===1&&e.charCodeAt(0)<256}function sZ(e,t,r,n){if(r<0||n>e.length)throw new RangeError("Out of range index");return r=r>>>0,n=n===void 0?e.length:n>>>0,n>r&&e.fill(t,r,n),e}function f9n(e,t,r,n){if(r<0||n>e.length)throw new RangeError("Out of range index");if(n<=r)return e;r=r>>>0,n=n===void 0?e.length:n>>>0;for(var u=r,i=t.length;u<=n-i;)t.copy(e,u),u+=i;return u!==n&&t.copy(e,u,0,n-u),e}function p9n(e,t,r,n,u){if(c9n)return e.fill(t,r,n,u);if(typeof t=="number")return sZ(e,t,r,n);if(typeof t=="string"){if(typeof r=="string"?(u=r,r=0,n=e.length):typeof n=="string"&&(u=n,n=e.length),u!==void 0&&typeof u!="string")throw new TypeError("encoding must be a string");if(u==="latin1"&&(u="binary"),typeof u=="string"&&!Buffer.isEncoding(u))throw new TypeError("Unknown encoding: "+u);if(t==="")return sZ(e,0,r,n);if(l9n(t))return sZ(e,t.charCodeAt(0),r,n);t=new Buffer(t,u)}return Buffer.isBuffer(t)?f9n(e,t,r,n):sZ(e,0,r,n)}RCt.exports=p9n});var LCt=j((cUu,ICt)=>{function h9n(e){if(typeof e!="number")throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative');return Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e)}ICt.exports=h9n});var d4e=j((lUu,qCt)=>{var NCt=jCt(),d9n=LCt();qCt.exports=function(t,r,n){if(typeof t!="number")throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative');if(Buffer.alloc)return Buffer.alloc(t,r,n);var u=d9n(t);return t===0?u:r===void 0?NCt(u,0):(typeof n!="string"&&(n=void 0),NCt(u,r,n))}});var g4e=j(Jx=>{var m9n=h4e(),g9n=d4e(),v9n="0000000000000000000",y9n="7777777777777777777",MCt=48,D9n="ustar\x0000",E9n=parseInt("7777",8),b9n=function(e,t,r){return typeof e!="number"?r:(e=~~e,e>=t?t:e>=0||(e+=t,e>=0)?e:0)},C9n=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null},x9n=function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0},UCt=function(e,t,r,n){for(;r<n;r++)if(e[r]===t)return r;return n},$Ct=function(e){for(var t=256,r=0;r<148;r++)t+=e[r];for(var n=156;n<512;n++)t+=e[n];return t},ov=function(e,t){return e=e.toString(8),e.length>t?y9n.slice(0,t)+" ":v9n.slice(0,t-e.length)+e+" "};function A9n(e){var t;if(e[0]===128)t=!0;else if(e[0]===255)t=!1;else return null;for(var r=!1,n=[],u=e.length-1;u>0;u--){var i=e[u];t?n.push(i):r&&i===0?n.push(0):r?(r=!1,n.push(256-i)):n.push(255-i)}var o=0,s=n.length;for(u=0;u<s;u++)o+=n[u]*Math.pow(256,u);return t?o:-1*o}var sv=function(e,t,r){if(e=e.slice(t,t+r),t=0,e[t]&128)return A9n(e);for(;t<e.length&&e[t]===32;)t++;for(var n=b9n(UCt(e,32,t,e.length),e.length,e.length);t<n&&e[t]===0;)t++;return n===t?0:parseInt(e.slice(t,n).toString(),8)},Yx=function(e,t,r,n){return e.slice(t,UCt(e,0,t,t+r)).toString(n)},m4e=function(e){var t=Buffer.byteLength(e),r=Math.floor(Math.log(t)/Math.log(10))+1;return t+r>=Math.pow(10,r)&&r++,t+r+e};Jx.decodeLongPath=function(e,t){return Yx(e,0,e.length,t)};Jx.encodePax=function(e){var t="";e.name&&(t+=m4e(" path="+e.name+`
324
324
  `)),e.linkname&&(t+=m4e(" linkpath="+e.linkname+`
325
325
  `));var r=e.pax;if(r)for(var n in r)t+=m4e(" "+n+"="+r[n]+`
326
326
  `);return m9n(t)};Jx.decodePax=function(e){for(var t={};e.length;){for(var r=0;r<e.length&&e[r]!==32;)r++;var n=parseInt(e.slice(0,r).toString(),10);if(!n)return t;var u=e.slice(r+1,n-1).toString(),i=u.indexOf("=");if(i===-1)return t;t[u.slice(0,i)]=u.slice(i+1),e=e.slice(n)}return t};Jx.encode=function(e){var t=g9n(512),r=e.name,n="";if(e.typeflag===5&&r[r.length-1]!=="/"&&(r+="/"),Buffer.byteLength(r)!==r.length)return null;for(;Buffer.byteLength(r)>100;){var u=r.indexOf("/");if(u===-1)return null;n+=n?"/"+r.slice(0,u):r.slice(0,u),r=r.slice(u+1)}return Buffer.byteLength(r)>100||Buffer.byteLength(n)>155||e.linkname&&Buffer.byteLength(e.linkname)>100?null:(t.write(r),t.write(ov(e.mode&E9n,6),100),t.write(ov(e.uid,6),108),t.write(ov(e.gid,6),116),t.write(ov(e.size,11),124),t.write(ov(e.mtime.getTime()/1e3|0,11),136),t[156]=MCt+x9n(e.type),e.linkname&&t.write(e.linkname,157),t.write(D9n,257),e.uname&&t.write(e.uname,265),e.gname&&t.write(e.gname,297),t.write(ov(e.devmajor||0,6),329),t.write(ov(e.devminor||0,6),337),n&&t.write(n,345),t.write(ov($Ct(t),6),148),t)};Jx.decode=function(e,t){var r=e[156]===0?0:e[156]-MCt,n=Yx(e,0,100,t),u=sv(e,100,8),i=sv(e,108,8),o=sv(e,116,8),s=sv(e,124,12),a=sv(e,136,12),c=C9n(r),l=e[157]===0?null:Yx(e,157,100,t),f=Yx(e,265,32),p=Yx(e,297,32),h=sv(e,329,8),d=sv(e,337,8);e[345]&&(n=Yx(e,345,155,t)+"/"+n),r===0&&n&&n[n.length-1]==="/"&&(r=5);var m=$Ct(e);if(m===8*32)return null;if(m!==sv(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");return{name:n,mode:u,uid:i,gid:o,size:s,mtime:new Date(1e3*a),type:c,linkname:l,uname:f,gname:p,devmajor:h,devminor:d}}});var YCt=j((pUu,KCt)=>{var GCt=require("util"),F9n=SCt(),_9n=TCt(),zk=g4e(),WCt=Hx().Writable,VCt=Hx().PassThrough,HCt=function(){},zCt=function(e){return e&=511,e&&512-e},B9n=function(e,t){var r=new aZ(e,t);return r.end(),r},w9n=function(e,t){return t.path&&(e.name=t.path),t.linkpath&&(e.linkname=t.linkpath),t.size&&(e.size=parseInt(t.size,10)),e.pax=t,e},aZ=function(e,t){this._parent=e,this.offset=t,VCt.call(this)};GCt.inherits(aZ,VCt);aZ.prototype.destroy=function(e){this._parent.destroy(e)};var Z5=function(e){if(!(this instanceof Z5))return new Z5(e);WCt.call(this,e),e=e||{},this._offset=0,this._buffer=F9n(),this._missing=0,this._partial=!1,this._onparse=HCt,this._header=null,this._stream=null,this._overflow=null,this._cb=null,this._locked=!1,this._destroyed=!1,this._pax=null,this._paxGlobal=null,this._gnuLongPath=null,this._gnuLongLinkPath=null;var t=this,r=t._buffer,n=function(){t._continue()},u=function(p){if(t._locked=!1,p)return t.destroy(p);t._stream||n()},i=function(){t._stream=null;var p=zCt(t._header.size);p?t._parse(p,o):t._parse(512,f),t._locked||n()},o=function(){t._buffer.consume(zCt(t._header.size)),t._parse(512,f),n()},s=function(){var p=t._header.size;t._paxGlobal=zk.decodePax(r.slice(0,p)),r.consume(p),i()},a=function(){var p=t._header.size;t._pax=zk.decodePax(r.slice(0,p)),t._paxGlobal&&(t._pax=_9n(t._paxGlobal,t._pax)),r.consume(p),i()},c=function(){var p=t._header.size;this._gnuLongPath=zk.decodeLongPath(r.slice(0,p),e.filenameEncoding),r.consume(p),i()},l=function(){var p=t._header.size;this._gnuLongLinkPath=zk.decodeLongPath(r.slice(0,p),e.filenameEncoding),r.consume(p),i()},f=function(){var p=t._offset,h;try{h=t._header=zk.decode(r.slice(0,512),e.filenameEncoding)}catch(d){t.emit("error",d)}if(r.consume(512),!h){t._parse(512,f),n();return}if(h.type==="gnu-long-path"){t._parse(h.size,c),n();return}if(h.type==="gnu-long-link-path"){t._parse(h.size,l),n();return}if(h.type==="pax-global-header"){t._parse(h.size,s),n();return}if(h.type==="pax-header"){t._parse(h.size,a),n();return}if(t._gnuLongPath&&(h.name=t._gnuLongPath,t._gnuLongPath=null),t._gnuLongLinkPath&&(h.linkname=t._gnuLongLinkPath,t._gnuLongLinkPath=null),t._pax&&(t._header=h=w9n(h,t._pax),t._pax=null),t._locked=!0,!h.size||h.type==="directory"){t._parse(512,f),t.emit("entry",h,B9n(t,p),u);return}t._stream=new aZ(t,p),t.emit("entry",h,t._stream,u),t._parse(h.size,i),n()};this._onheader=f,this._parse(512,f)};GCt.inherits(Z5,WCt);Z5.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.emit("close"))};Z5.prototype._parse=function(e,t){this._destroyed||(this._offset+=e,this._missing=e,t===this._onheader&&(this._partial=!1),this._onparse=t)};Z5.prototype._continue=function(){if(!this._destroyed){var e=this._cb;this._cb=HCt,this._overflow?this._write(this._overflow,void 0,e):e()}};Z5.prototype._write=function(e,t,r){if(!this._destroyed){var n=this._stream,u=this._buffer,i=this._missing;if(e.length&&(this._partial=!0),e.length<i)return this._missing-=e.length,this._overflow=null,n?n.write(e,r):(u.append(e),r());this._cb=r,this._missing=0;var o=null;e.length>i&&(o=e.slice(i),e=e.slice(0,i)),n?n.end(e):u.append(e),this._overflow=o,this._onparse()}};Z5.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};KCt.exports=Z5});var v4e=j((hUu,JCt)=>{JCt.exports=require("fs").constants||require("constants")});var y4e=j((dUu,QCt)=>{QCt.exports=XCt;function XCt(e,t){if(e&&t)return XCt(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),u=0;u<n.length;u++)n[u]=arguments[u];var i=e.apply(this,n),o=n[n.length-1];return typeof i=="function"&&i!==o&&Object.keys(o).forEach(function(s){i[s]=o[s]}),i}}});var Gk=j((mUu,D4e)=>{var ZCt=y4e();D4e.exports=ZCt(cZ);D4e.exports.strict=ZCt(ext);cZ.proto=cZ(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return cZ(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return ext(this)},configurable:!0})});function cZ(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function ext(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var E4e=j((gUu,rxt)=>{var S9n=Gk(),O9n=function(){},T9n=function(e){return e.setHeader&&typeof e.abort=="function"},P9n=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3},txt=function(e,t,r){if(typeof t=="function")return txt(e,null,t);t||(t={}),r=S9n(r||O9n);var n=e._writableState,u=e._readableState,i=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,s=!1,a=function(){e.writable||c()},c=function(){o=!1,i||r.call(e)},l=function(){i=!1,o||r.call(e)},f=function(v){r.call(e,v?new Error("exited with error code: "+v):null)},p=function(v){r.call(e,v)},h=function(){process.nextTick(d)},d=function(){if(!s){if(i&&!(u&&u.ended&&!u.destroyed))return r.call(e,new Error("premature close"));if(o&&!(n&&n.ended&&!n.destroyed))return r.call(e,new Error("premature close"))}},m=function(){e.req.on("finish",c)};return T9n(e)?(e.on("complete",c),e.on("abort",h),e.req?m():e.on("request",m)):o&&!n&&(e.on("end",a),e.on("close",a)),P9n(e)&&e.on("exit",f),e.on("end",l),e.on("finish",c),t.error!==!1&&e.on("error",p),e.on("close",h),function(){s=!0,e.removeListener("complete",c),e.removeListener("abort",h),e.removeListener("request",m),e.req&&e.req.removeListener("finish",c),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",c),e.removeListener("exit",f),e.removeListener("end",l),e.removeListener("error",p),e.removeListener("close",h)}};rxt.exports=txt});var sxt=j((vUu,oxt)=>{var Xx=v4e(),nxt=E4e(),fZ=require("util"),k9n=d4e(),R9n=h4e(),uxt=Hx().Readable,Qx=Hx().Writable,j9n=require("string_decoder").StringDecoder,lZ=g4e(),I9n=parseInt("755",8),L9n=parseInt("644",8),ixt=k9n(1024),C4e=function(){},b4e=function(e,t){t&=511,t&&e.push(ixt.slice(0,512-t))};function N9n(e){switch(e&Xx.S_IFMT){case Xx.S_IFBLK:return"block-device";case Xx.S_IFCHR:return"character-device";case Xx.S_IFDIR:return"directory";case Xx.S_IFIFO:return"fifo";case Xx.S_IFLNK:return"symlink"}return"file"}var pZ=function(e){Qx.call(this),this.written=0,this._to=e,this._destroyed=!1};fZ.inherits(pZ,Qx);pZ.prototype._write=function(e,t,r){if(this.written+=e.length,this._to.push(e))return r();this._to._drain=r};pZ.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var hZ=function(){Qx.call(this),this.linkname="",this._decoder=new j9n("utf-8"),this._destroyed=!1};fZ.inherits(hZ,Qx);hZ.prototype._write=function(e,t,r){this.linkname+=this._decoder.write(e),r()};hZ.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var Wk=function(){Qx.call(this),this._destroyed=!1};fZ.inherits(Wk,Qx);Wk.prototype._write=function(e,t,r){r(new Error("No body allowed for this entry"))};Wk.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.emit("close"))};var q2=function(e){if(!(this instanceof q2))return new q2(e);uxt.call(this,e),this._drain=C4e,this._finalized=!1,this._finalizing=!1,this._destroyed=!1,this._stream=null};fZ.inherits(q2,uxt);q2.prototype.entry=function(e,t,r){if(this._stream)throw new Error("already piping an entry");if(!(this._finalized||this._destroyed)){typeof t=="function"&&(r=t,t=null),r||(r=C4e);var n=this;if((!e.size||e.type==="symlink")&&(e.size=0),e.type||(e.type=N9n(e.mode)),e.mode||(e.mode=e.type==="directory"?I9n:L9n),e.uid||(e.uid=0),e.gid||(e.gid=0),e.mtime||(e.mtime=new Date),typeof t=="string"&&(t=R9n(t)),Buffer.isBuffer(t))return e.size=t.length,this._encode(e),this.push(t),b4e(n,e.size),process.nextTick(r),new Wk;if(e.type==="symlink"&&!e.linkname){var u=new hZ;return nxt(u,function(o){if(o)return n.destroy(),r(o);e.linkname=u.linkname,n._encode(e),r()}),u}if(this._encode(e),e.type!=="file"&&e.type!=="contiguous-file")return process.nextTick(r),new Wk;var i=new pZ(this);return this._stream=i,nxt(i,function(o){if(n._stream=null,o)return n.destroy(),r(o);if(i.written!==e.size)return n.destroy(),r(new Error("size mismatch"));b4e(n,e.size),n._finalizing&&n.finalize(),r()}),i}};q2.prototype.finalize=function(){if(this._stream){this._finalizing=!0;return}this._finalized||(this._finalized=!0,this.push(ixt),this.push(null))};q2.prototype.destroy=function(e){this._destroyed||(this._destroyed=!0,e&&this.emit("error",e),this.emit("close"),this._stream&&this._stream.destroy&&this._stream.destroy())};q2.prototype._encode=function(e){if(!e.pax){var t=lZ.encode(e);if(t){this.push(t);return}}this._encodePax(e)};q2.prototype._encodePax=function(e){var t=lZ.encodePax({name:e.name,linkname:e.linkname,pax:e.pax}),r={name:"PaxHeader",mode:e.mode,uid:e.uid,gid:e.gid,size:t.length,mtime:e.mtime,type:"pax-header",linkname:e.linkname&&"PaxHeader",uname:e.uname,gname:e.gname,devmajor:e.devmajor,devminor:e.devminor};this.push(lZ.encode(r)),this.push(t),b4e(this,t.length),r.size=e.size,r.type=e.type,this.push(lZ.encode(r))};q2.prototype._read=function(e){var t=this._drain;this._drain=C4e,t()};oxt.exports=q2});var axt=j(x4e=>{x4e.extract=YCt();x4e.pack=sxt()});var dZ=j((DUu,lxt)=>{"use strict";var cxt=Wbe(),q9n=KQ(),M9n=axt();lxt.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!q9n(e))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`));if(Buffer.isBuffer(e)&&(!cxt(e)||cxt(e).ext!=="tar"))return Promise.resolve([]);let t=M9n.extract(),r=[];t.on("entry",(u,i,o)=>{let s=[];i.on("data",a=>s.push(a)),i.on("end",()=>{let a={data:Buffer.concat(s),mode:u.mode,mtime:u.mtime,path:u.name,type:u.type};(u.type==="symlink"||u.type==="link")&&(a.linkname=u.linkname),r.push(a),o()})});let n=new Promise((u,i)=>{Buffer.isBuffer(e)||e.on("error",i),t.on("finish",()=>u(r)),t.on("error",i)});return t.then=n.then.bind(n),t.catch=n.catch.bind(n),Buffer.isBuffer(e)?t.end(e):e.pipe(t),t}});var pxt=j((EUu,fxt)=>{"use strict";var Zx=e=>Array.from(e).map(t=>t.charCodeAt(0)),U9n=Zx("META-INF/mozilla.rsa"),$9n=Zx("[Content_Types].xml"),z9n=Zx("_rels/.rels");fxt.exports=e=>{let t=new Uint8Array(e);if(!(t&&t.length>1))return null;let r=(n,u)=>{u=Object.assign({offset:0},u);for(let i=0;i<n.length;i++)if(u.mask){if(n[i]!==(u.mask[i]&t[i+u.offset]))return!1}else if(n[i]!==t[i+u.offset])return!1;return!0};if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])){if(r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r(U9n,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(r($9n,{offset:30})||r(z9n,{offset:30})){let n=t.subarray(4,2004),u=o=>o.findIndex((s,a,c)=>c[a]===80&&c[a+1]===75&&c[a+2]===3&&c[a+3]===4),i=u(n);if(i!==-1){let o=t.subarray(i+8,i+8+1e3),s=u(o);if(s!==-1){let a=8+i+s+30;if(r(Zx("word/"),{offset:a}))return{ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"};if(r(Zx("ppt/"),{offset:a}))return{ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"};if(r(Zx("xl/"),{offset:a}))return{ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}}}}}if(r([80,75])&&(t[2]===3||t[2]===5||t[2]===7)&&(t[3]===4||t[3]===6||t[3]===8))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(t[6]===0||t[6]===1))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([51,103,112,53])||r([0,0,0])&&r([102,116,121,112],{offset:4})&&(r([109,112,52,49],{offset:8})||r([109,112,52,50],{offset:8})||r([105,115,111,109],{offset:8})||r([105,115,111,50],{offset:8})||r([109,109,112,52],{offset:8})||r([77,52,86],{offset:8})||r([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){let n=t.subarray(4,4100),u=n.findIndex((i,o,s)=>s[o]===66&&s[o+1]===130);if(u!==-1){let i=u+3,o=s=>Array.from(s).every((a,c)=>n[i+c]===a.charCodeAt(0));if(o("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(o("webm"))return{ext:"webm",mime:"video/webm"}}}if(r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(r([82,73,70,70])&&r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/x-msvideo"};if(r([48,38,178,117,142,102,207,17,166,217]))return{ext:"wmv",mime:"video/x-ms-wmv"};if(r([0,0,1,186]))return{ext:"mpg",mime:"video/mpeg"};for(let n=0;n<2&&n<t.length-16;n++)if(r([73,68,51],{offset:n})||r([255,226],{offset:n,mask:[255,226]}))return{ext:"mp3",mime:"audio/mpeg"};return r([102,116,121,112,77,52,65],{offset:4})||r([77,52,65,32])?{ext:"m4a",mime:"audio/m4a"}:r([79,112,117,115,72,101,97,100],{offset:28})?{ext:"opus",mime:"audio/opus"}:r([79,103,103,83])?{ext:"ogg",mime:"audio/ogg"}:r([102,76,97,67])?{ext:"flac",mime:"audio/x-flac"}:r([82,73,70,70])&&r([87,65,86,69],{offset:8})?{ext:"wav",mime:"audio/x-wav"}:r([35,33,65,77,82,10])?{ext:"amr",mime:"audio/amr"}:r([37,80,68,70])?{ext:"pdf",mime:"application/pdf"}:r([77,90])?{ext:"exe",mime:"application/x-msdownload"}:(t[0]===67||t[0]===70)&&r([87,83],{offset:1})?{ext:"swf",mime:"application/x-shockwave-flash"}:r([123,92,114,116,102])?{ext:"rtf",mime:"application/rtf"}:r([0,97,115,109])?{ext:"wasm",mime:"application/wasm"}:r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff",mime:"font/woff"}:r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4}))?{ext:"woff2",mime:"font/woff2"}:r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8}))?{ext:"eot",mime:"application/octet-stream"}:r([0,1,0,0,0])?{ext:"ttf",mime:"font/ttf"}:r([79,84,84,79,0])?{ext:"otf",mime:"font/otf"}:r([0,0,1,0])?{ext:"ico",mime:"image/x-icon"}:r([70,76,86,1])?{ext:"flv",mime:"video/x-flv"}:r([37,33])?{ext:"ps",mime:"application/postscript"}:r([253,55,122,88,90,0])?{ext:"xz",mime:"application/x-xz"}:r([83,81,76,105])?{ext:"sqlite",mime:"application/x-sqlite3"}:r([78,69,83,26])?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:r([67,114,50,52])?{ext:"crx",mime:"application/x-google-chrome-extension"}:r([77,83,67,70])||r([73,83,99,40])?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121])?{ext:"deb",mime:"application/x-deb"}:r([33,60,97,114,99,104,62])?{ext:"ar",mime:"application/x-unix-archive"}:r([237,171,238,219])?{ext:"rpm",mime:"application/x-rpm"}:r([31,160])||r([31,157])?{ext:"Z",mime:"application/x-compress"}:r([76,90,73,80])?{ext:"lz",mime:"application/x-lzip"}:r([208,207,17,224,161,177,26,225])?{ext:"msi",mime:"application/x-msi"}:r([6,14,43,52,2,5,1,1,13,1,2,1,1,2])?{ext:"mxf",mime:"application/mxf"}:r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196}))?{ext:"mts",mime:"video/mp2t"}:r([66,76,69,78,68,69,82])?{ext:"blend",mime:"application/x-blender"}:r([66,80,71,251])?{ext:"bpg",mime:"image/bpg"}:null}});var mxt=j((bUu,dxt)=>{var hxt=[0,1,3,7,15,31,63,127,255],Vk=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};Vk.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)};Vk.prototype.read=function(e){for(var t=0;e>0;){this._ensureByte();var r=8-this.bitOffset;if(e>=r)t<<=r,t|=hxt[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,e-=r;else{t<<=e;var n=r-e;t|=(this.curByte&hxt[e]<<n)>>n,this.bitOffset+=e,e=0}}return t};Vk.prototype.seek=function(e){var t=e%8,r=(e-t)/8;this.bitOffset=t,this.stream.seek(r),this.hasByte=!1};Vk.prototype.pi=function(){var e=new Buffer(6),t;for(t=0;t<e.length;t++)e[t]=this.read(8);return e.toString("hex")};dxt.exports=Vk});var vxt=j((CUu,gxt)=>{var p3=function(){};p3.prototype.readByte=function(){throw new Error("abstract method readByte() not implemented")};p3.prototype.read=function(e,t,r){for(var n=0;n<r;){var u=this.readByte();if(u<0)return n===0?-1:n;e[t++]=u,n++}return n};p3.prototype.seek=function(e){throw new Error("abstract method seek() not implemented")};p3.prototype.writeByte=function(e){throw new Error("abstract method readByte() not implemented")};p3.prototype.write=function(e,t,r){var n;for(n=0;n<r;n++)this.writeByte(e[t++]);return r};p3.prototype.flush=function(){};gxt.exports=p3});var Dxt=j((xUu,yxt)=>{yxt.exports=function(){var e=new Uint32Array([0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188]),t=function(){var r=4294967295;this.getCRC=function(){return~r>>>0},this.updateCRC=function(n){r=r<<8^e[(r>>>24^n)&255]},this.updateCRCRun=function(n,u){for(;u-- >0;)r=r<<8^e[(r>>>24^n)&255]}};return t}()});var Ext=j((AUu,G9n)=>{G9n.exports={name:"seek-bzip",version:"1.0.6",contributors:["C. Scott Ananian (http://cscott.net)","Eli Skeggs","Kevin Kwok","Rob Landley (http://landley.net)"],description:"a pure-JavaScript Node.JS module for random-access decoding bzip2 data",main:"./lib/index.js",repository:{type:"git",url:"https://github.com/cscott/seek-bzip.git"},license:"MIT",bin:{"seek-bunzip":"./bin/seek-bunzip","seek-table":"./bin/seek-bzip-table"},directories:{test:"test"},dependencies:{commander:"^2.8.1"},devDependencies:{fibers:"~1.0.6",mocha:"~2.2.5"},scripts:{test:"mocha"}}});var wxt=j((FUu,Bxt)=>{var W9n=mxt(),Hk=vxt(),Axt=Dxt(),Fxt=Ext(),mZ=20,bxt=258,Cxt=0,V9n=1,H9n=2,K9n=6,Y9n=50,J9n="314159265359",X9n="177245385090",xxt=function(e,t){var r=e[t],n;for(n=t;n>0;n--)e[n]=e[n-1];return e[0]=r,r},Pi={OK:0,LAST_BLOCK:-1,NOT_BZIP_DATA:-2,UNEXPECTED_INPUT_EOF:-3,UNEXPECTED_OUTPUT_EOF:-4,DATA_ERROR:-5,OUT_OF_MEMORY:-6,OBSOLETE_INPUT:-7,END_OF_BLOCK:-8},av={};av[Pi.LAST_BLOCK]="Bad file checksum";av[Pi.NOT_BZIP_DATA]="Not bzip data";av[Pi.UNEXPECTED_INPUT_EOF]="Unexpected input EOF";av[Pi.UNEXPECTED_OUTPUT_EOF]="Unexpected output EOF";av[Pi.DATA_ERROR]="Data error";av[Pi.OUT_OF_MEMORY]="Out of memory";av[Pi.OBSOLETE_INPUT]="Obsolete (pre 0.9.5) bzip format not supported.";var Va=function(e,t){var r=av[e]||"unknown error";t&&(r+=": "+t);var n=new TypeError(r);throw n.errorCode=e,n},Ol=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};Ol.prototype._init_block=function(){var e=this._get_next_block();return e?(this.blockCRC=new Axt,!0):(this.writeCount=-1,!1)};Ol.prototype._start_bunzip=function(e,t){var r=new Buffer(4);(e.read(r,0,4)!==4||String.fromCharCode(r[0],r[1],r[2])!=="BZh")&&Va(Pi.NOT_BZIP_DATA,"bad magic");var n=r[3]-48;(n<1||n>9)&&Va(Pi.NOT_BZIP_DATA,"level out of range"),this.reader=new W9n(e),this.dbufSize=1e5*n,this.nextoutput=0,this.outputStream=t,this.streamCRC=0};Ol.prototype._get_next_block=function(){var e,t,r,n=this.reader,u=n.pi();if(u===X9n)return!1;u!==J9n&&Va(Pi.NOT_BZIP_DATA),this.targetBlockCRC=n.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,n.read(1)&&Va(Pi.OBSOLETE_INPUT);var i=n.read(24);i>this.dbufSize&&Va(Pi.DATA_ERROR,"initial position out of bounds");var o=n.read(16),s=new Buffer(256),a=0;for(e=0;e<16;e++)if(o&1<<15-e){var c=e*16;for(r=n.read(16),t=0;t<16;t++)r&1<<15-t&&(s[a++]=c+t)}var l=n.read(3);(l<H9n||l>K9n)&&Va(Pi.DATA_ERROR);var f=n.read(15);f===0&&Va(Pi.DATA_ERROR);var p=new Buffer(256);for(e=0;e<l;e++)p[e]=e;var h=new Buffer(f);for(e=0;e<f;e++){for(t=0;n.read(1);t++)t>=l&&Va(Pi.DATA_ERROR);h[e]=xxt(p,t)}var d=a+2,m=[],v;for(t=0;t<l;t++){var D=new Buffer(d),g=new Uint16Array(mZ+1);for(o=n.read(5),e=0;e<d;e++){for(;(o<1||o>mZ)&&Va(Pi.DATA_ERROR),!!n.read(1);)n.read(1)?o--:o++;D[e]=o}var y,E;for(y=E=D[0],e=1;e<d;e++)D[e]>E?E=D[e]:D[e]<y&&(y=D[e]);v={},m.push(v),v.permute=new Uint16Array(bxt),v.limit=new Uint32Array(mZ+2),v.base=new Uint32Array(mZ+1),v.minLen=y,v.maxLen=E;var b=0;for(e=y;e<=E;e++)for(g[e]=v.limit[e]=0,o=0;o<d;o++)D[o]===e&&(v.permute[b++]=o);for(e=0;e<d;e++)g[D[e]]++;for(b=o=0,e=y;e<E;e++)b+=g[e],v.limit[e]=b-1,b<<=1,o+=g[e],v.base[e+1]=b-o;v.limit[E+1]=Number.MAX_VALUE,v.limit[E]=b+g[E]-1,v.base[y]=0}var C=new Uint32Array(256);for(e=0;e<256;e++)p[e]=e;var x=0,A=0,F=0,S,B=this.dbuf=new Uint32Array(this.dbufSize);for(d=0;;){for(d--||(d=Y9n-1,F>=f&&Va(Pi.DATA_ERROR),v=m[h[F++]]),e=v.minLen,t=n.read(e);e>v.maxLen&&Va(Pi.DATA_ERROR),!(t<=v.limit[e]);e++)t=t<<1|n.read(1);t-=v.base[e],(t<0||t>=bxt)&&Va(Pi.DATA_ERROR);var O=v.permute[t];if(O===Cxt||O===V9n){x||(x=1,o=0),O===Cxt?o+=x:o+=2*x,x<<=1;continue}if(x)for(x=0,A+o>this.dbufSize&&Va(Pi.DATA_ERROR),S=s[p[0]],C[S]+=o;o--;)B[A++]=S;if(O>a)break;A>=this.dbufSize&&Va(Pi.DATA_ERROR),e=O-1,S=xxt(p,e),S=s[S],C[S]++,B[A++]=S}for((i<0||i>=A)&&Va(Pi.DATA_ERROR),t=0,e=0;e<256;e++)r=t+C[e],C[e]=t,t=r;for(e=0;e<A;e++)S=B[e]&255,B[C[S]]|=e<<8,C[S]++;var T=0,P=0,L=0;return A&&(T=B[i],P=T&255,T>>=8,L=-1),this.writePos=T,this.writeCurrent=P,this.writeCount=A,this.writeRun=L,!0};Ol.prototype._read_bunzip=function(e,t){var r,n,u;if(this.writeCount<0)return 0;for(var i=0,o=this.dbuf,s=this.writePos,a=this.writeCurrent,c=this.writeCount,l=this.outputsize,f=this.writeRun;c;){for(c--,n=a,s=o[s],a=s&255,s>>=8,f++===3?(r=a,u=n,a=-1):(r=1,u=a),this.blockCRC.updateCRCRun(u,r);r--;)this.outputStream.writeByte(u),this.nextoutput++;a!=n&&(f=0)}return this.writeCount=c,this.blockCRC.getCRC()!==this.targetBlockCRC&&Va(Pi.DATA_ERROR,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var A4e=function(e){if("readByte"in e)return e;var t=new Hk;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(r){this.pos=r},t.eof=function(){return this.pos>=e.length},t},_xt=function(e){var t=new Hk,r=!0;if(e)if(typeof e=="number")t.buffer=new Buffer(e),r=!1;else{if("writeByte"in e)return e;t.buffer=e,r=!1}else t.buffer=new Buffer(16384);return t.pos=0,t.writeByte=function(n){if(r&&this.pos>=this.buffer.length){var u=new Buffer(this.buffer.length*2);this.buffer.copy(u),this.buffer=u}this.buffer[this.pos++]=n},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!r)throw new TypeError("outputsize does not match decoded input");var n=new Buffer(this.pos);this.buffer.copy(n,0,0,this.pos),this.buffer=n}return this.buffer},t._coerced=!0,t};Ol.Err=Pi;Ol.decode=function(e,t,r){for(var n=A4e(e),u=_xt(t),i=new Ol(n,u);!("eof"in n&&n.eof());)if(i._init_block())i._read_bunzip();else{var o=i.reader.read(32)>>>0;if(o!==i.streamCRC&&Va(Pi.DATA_ERROR,"Bad stream CRC (got "+i.streamCRC.toString(16)+" expected "+o.toString(16)+")"),r&&"eof"in n&&!n.eof())i._start_bunzip(n,u);else break}if("getBuffer"in u)return u.getBuffer()};Ol.decodeBlock=function(e,t,r){var n=A4e(e),u=_xt(r),i=new Ol(n,u);i.reader.seek(t);var o=i._get_next_block();if(o&&(i.blockCRC=new Axt,i.writeCopies=0,i._read_bunzip()),"getBuffer"in u)return u.getBuffer()};Ol.table=function(e,t,r){var n=new Hk;n.delegate=A4e(e),n.pos=0,n.readByte=function(){return this.pos++,this.delegate.readByte()},n.delegate.eof&&(n.eof=n.delegate.eof.bind(n.delegate));var u=new Hk;u.pos=0,u.writeByte=function(){this.pos++};for(var i=new Ol(n,u),o=i.dbufSize;!("eof"in n&&n.eof());){var s=n.pos*8+i.reader.bitOffset;if(i.reader.hasByte&&(s-=8),i._init_block()){var a=u.pos;i._read_bunzip(),t(s,u.pos-a)}else{var c=i.reader.read(32);if(r&&"eof"in n&&!n.eof())i._start_bunzip(n,u),console.assert(i.dbufSize===o,"shouldn't change block size within multistream file");else break}}};Ol.Stream=Hk;Ol.version=Fxt.version;Ol.license=Fxt.license;Bxt.exports=Ol});var Oxt=j((_Uu,Sxt)=>{function F4e(e){this.name="Bzip2Error",this.message=e,this.stack=new Error().stack}F4e.prototype=new Error;var Ha={Error:function(e){throw new F4e(e)}},M2={};M2.Bzip2Error=F4e;M2.crcTable=[0,79764919,159529838,222504665,319059676,398814059,445009330,507990021,638119352,583659535,797628118,726387553,890018660,835552979,1015980042,944750013,1276238704,1221641927,1167319070,1095957929,1595256236,1540665371,1452775106,1381403509,1780037320,1859660671,1671105958,1733955601,2031960084,2111593891,1889500026,1952343757,2552477408,2632100695,2443283854,2506133561,2334638140,2414271883,2191915858,2254759653,3190512472,3135915759,3081330742,3009969537,2905550212,2850959411,2762807018,2691435357,3560074640,3505614887,3719321342,3648080713,3342211916,3287746299,3467911202,3396681109,4063920168,4143685023,4223187782,4286162673,3779000052,3858754371,3904687514,3967668269,881225847,809987520,1023691545,969234094,662832811,591600412,771767749,717299826,311336399,374308984,453813921,533576470,25881363,88864420,134795389,214552010,2023205639,2086057648,1897238633,1976864222,1804852699,1867694188,1645340341,1724971778,1587496639,1516133128,1461550545,1406951526,1302016099,1230646740,1142491917,1087903418,2896545431,2825181984,2770861561,2716262478,3215044683,3143675388,3055782693,3001194130,2326604591,2389456536,2200899649,2280525302,2578013683,2640855108,2418763421,2498394922,3769900519,3832873040,3912640137,3992402750,4088425275,4151408268,4197601365,4277358050,3334271071,3263032808,3476998961,3422541446,3585640067,3514407732,3694837229,3640369242,1762451694,1842216281,1619975040,1682949687,2047383090,2127137669,1938468188,2001449195,1325665622,1271206113,1183200824,1111960463,1543535498,1489069629,1434599652,1363369299,622672798,568075817,748617968,677256519,907627842,853037301,1067152940,995781531,51762726,131386257,177728840,240578815,269590778,349224269,429104020,491947555,4046411278,4126034873,4172115296,4234965207,3794477266,3874110821,3953728444,4016571915,3609705398,3555108353,3735388376,3664026991,3290680682,3236090077,3449943556,3378572211,3174993278,3120533705,3032266256,2961025959,2923101090,2868635157,2813903052,2742672763,2604032198,2683796849,2461293480,2524268063,2284983834,2364738477,2175806836,2238787779,1569362073,1498123566,1409854455,1355396672,1317987909,1246755826,1192025387,1137557660,2072149281,2135122070,1912620623,1992383480,1753615357,1816598090,1627664531,1707420964,295390185,358241886,404320391,483945776,43990325,106832002,186451547,266083308,932423249,861060070,1041341759,986742920,613929101,542559546,756411363,701822548,3316196985,3244833742,3425377559,3370778784,3601682597,3530312978,3744426955,3689838204,3819031489,3881883254,3928223919,4007849240,4037393693,4100235434,4180117107,4259748804,2310601993,2373574846,2151335527,2231098320,2596047829,2659030626,2470359227,2550115596,2947551409,2876312838,2788305887,2733848168,3165939309,3094707162,3040238851,2985771188];M2.array=function(e){var t=0,r=0,n=[0,1,3,7,15,31,63,127,255];return function(u){for(var i=0;u>0;){var o=8-t;u>=o?(i<<=o,i|=n[o]&e[r++],t=0,u-=o):(i<<=u,i|=(e[r]&n[u]<<8-u-t)>>8-u-t,t+=u,u=0)}return i}};M2.simple=function(e,t){var r=M2.array(e),n=M2.header(r),u=!1,i=1e5*n,o=new Int32Array(i);do u=M2.decompress(r,t,o,i);while(!u)};M2.header=function(e){this.byteCount=new Int32Array(256),this.symToByte=new Uint8Array(256),this.mtfSymbol=new Int32Array(256),this.selectors=new Uint8Array(32768),e(8*3)!=4348520&&Ha.Error("No magic number found");var t=e(8)-48;return(t<1||t>9)&&Ha.Error("Not a BZIP archive"),t};M2.decompress=function(e,t,r,n,u){for(var i=20,o=258,s=0,a=1,c=50,l=-1,f="",p=0;p<6;p++)f+=e(8).toString(16);if(f=="177245385090"){var h=e(32)|0;return h!==u&&Ha.Error("Error in bzip2: crc32 do not match"),e(null),null}f!="314159265359"&&Ha.Error("eek not valid bzip data");var d=e(32)|0;e(1)&&Ha.Error("unsupported obsolete version");var m=e(24);m>n&&Ha.Error("Initial position larger than buffer size");var v=e(16),D=0;for(p=0;p<16;p++)if(v&1<<15-p){var g=e(16);for(U=0;U<16;U++)g&1<<15-U&&(this.symToByte[D++]=16*p+U)}var y=e(3);(y<2||y>6)&&Ha.Error("another error");var E=e(15);E==0&&Ha.Error("meh");for(var p=0;p<y;p++)this.mtfSymbol[p]=p;for(var p=0;p<E;p++){for(var U=0;e(1);U++)U>=y&&Ha.Error("whoops another error");for(var b=this.mtfSymbol[U],g=U-1;g>=0;g--)this.mtfSymbol[g+1]=this.mtfSymbol[g];this.mtfSymbol[0]=b,this.selectors[p]=b}for(var $=D+2,C=[],x=new Uint8Array(o),A=new Uint16Array(i+1),F,U=0;U<y;U++){v=e(5);for(var p=0;p<$;p++){for(;(v<1||v>i)&&Ha.Error("I gave up a while ago on writing error messages"),!!e(1);)e(1)?v--:v++;x[p]=v}var S,B;S=B=x[0];for(var p=1;p<$;p++)x[p]>B?B=x[p]:x[p]<S&&(S=x[p]);F=C[U]={},F.permute=new Int32Array(o),F.limit=new Int32Array(i+1),F.base=new Int32Array(i+1),F.minLen=S,F.maxLen=B;for(var O=F.base,T=F.limit,P=0,p=S;p<=B;p++)for(var v=0;v<$;v++)x[v]==p&&(F.permute[P++]=v);for(p=S;p<=B;p++)A[p]=T[p]=0;for(p=0;p<$;p++)A[x[p]]++;for(P=v=0,p=S;p<B;p++)P+=A[p],T[p]=P-1,P<<=1,O[p+1]=P-(v+=A[p]);T[B]=P+A[B]-1,O[S]=0}for(var p=0;p<256;p++)this.mtfSymbol[p]=p,this.byteCount[p]=0;var L,N,$,G;for(L=N=$=G=0;;){for($--||($=c-1,G>=E&&Ha.Error("meow i'm a kitty, that's an error"),F=C[this.selectors[G++]],O=F.base,T=F.limit),p=F.minLen,U=e(p);p>F.maxLen&&Ha.Error("rawr i'm a dinosaur"),!(U<=T[p]);)p++,U=U<<1|e(1);U-=O[p],(U<0||U>=o)&&Ha.Error("moo i'm a cow");var I=F.permute[U];if(I==s||I==a){L||(L=1,v=0),I==s?v+=L:v+=2*L,L<<=1;continue}if(L)for(L=0,N+v>n&&Ha.Error("Boom."),b=this.symToByte[this.mtfSymbol[0]],this.byteCount[b]+=v;v--;)r[N++]=b;if(I>D)break;N>=n&&Ha.Error("I can't think of anything. Error"),p=I-1,b=this.mtfSymbol[p];for(var g=p-1;g>=0;g--)this.mtfSymbol[g+1]=this.mtfSymbol[g];this.mtfSymbol[0]=b,b=this.symToByte[b],this.byteCount[b]++,r[N++]=b}(m<0||m>=N)&&Ha.Error("I'm a monkey and I'm throwing something at someone, namely you");for(var U=0,p=0;p<256;p++)g=U+this.byteCount[p],this.byteCount[p]=U,U=g;for(var p=0;p<N;p++)b=r[p]&255,r[this.byteCount[b]]|=p<<8,this.byteCount[b]++;var z=0,V=0,X=0;N&&(z=r[m],V=z&255,z>>=8,X=-1),N=N;for(var Z,ie,te;N;){for(N--,ie=V,z=r[z],V=z&255,z>>=8,X++==3?(Z=V,te=ie,V=-1):(Z=1,te=V);Z--;)l=(l<<8^this.crcTable[(l>>24^te)&255])&4294967295,t(te);V!=ie&&(X=0)}return l=(l^-1)>>>0,(l|0)!=(d|0)&&Ha.Error("Error in bzip2: crc32 do not match"),u=(l^(u<<1|u>>>31))&4294967295,u};Sxt.exports=M2});var kxt=j((BUu,Pxt)=>{var Txt=[0,1,3,7,15,31,63,127,255];Pxt.exports=function(t){var r=0,n=0,u=t(),i=function(o){if(o===null&&r!=0){r=0,n++;return}for(var s=0;o>0;){n>=u.length&&(n=0,u=t());var a=8-r;r===0&&o>0&&i.bytesRead++,o>=a?(s<<=a,s|=Txt[a]&u[n++],r=0,o-=a):(s<<=o,s|=(u[n]&Txt[o]<<8-o-r)>>8-o-r,r+=o,o=0)}return s};return i.bytesRead=0,i}});var Ixt=j((wUu,jxt)=>{var Q9n=$W(),Rxt=Oxt(),Z9n=kxt();jxt.exports=ebn;function ebn(){var e=[],t=0,r=0,n=!1,u=!1,i=null,o=null;function s(l){if(r){var f=1e5*r,p=new Int32Array(f),h=[],d=function(m){h.push(m)};return o=Rxt.decompress(i,d,p,f,o),o===null?(r=0,!1):(l(Buffer.from(h)),!0)}else return r=Rxt.header(i),o=0,!0}var a=0;function c(l){if(!n)try{return s(function(f){l.queue(f),f!==null&&(a+=f.length)})}catch(f){return l.emit("error",f),n=!0,!1}}return Q9n(function(f){for(e.push(f),t+=f.length,i===null&&(i=Z9n(function(){return e.shift()}));!n&&t-i.bytesRead+1>=(25e3+1e5*r||4);)c(this)},function(f){for(;!n&&i&&t>i.bytesRead;)c(this);n||(o!==null&&this.emit("error",new Error("input stream ended prematurely")),this.queue(null))})}});var Mxt=j((SUu,qxt)=>{"use strict";var Lxt=dZ(),Nxt=pxt(),tbn=KQ(),rbn=wxt(),nbn=Ixt();qxt.exports=()=>e=>!Buffer.isBuffer(e)&&!tbn(e)?Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`)):Buffer.isBuffer(e)&&(!Nxt(e)||Nxt(e).ext!=="bz2")?Promise.resolve([]):Buffer.isBuffer(e)?Lxt()(rbn.decode(e)):Lxt()(e.pipe(nbn()))});var zxt=j((OUu,$xt)=>{"use strict";var ubn=require("zlib"),ibn=dZ(),Uxt=Wbe(),obn=KQ();$xt.exports=()=>e=>{if(!Buffer.isBuffer(e)&&!obn(e))return Promise.reject(new TypeError(`Expected a Buffer or Stream, got ${typeof e}`));if(Buffer.isBuffer(e)&&(!Uxt(e)||Uxt(e).ext!=="gz"))return Promise.resolve([]);let t=ubn.createGunzip(),r=ibn()(t);return Buffer.isBuffer(e)?t.end(e):e.pipe(t),r}});var Wxt=j((TUu,Gxt)=>{"use strict";Gxt.exports=function(e){return e&&e.length>1?e[0]===255&&e[1]===216&&e[2]===255?{ext:"jpg",mime:"image/jpeg"}:e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71?{ext:"png",mime:"image/png"}:e[0]===71&&e[1]===73&&e[2]===70?{ext:"gif",mime:"image/gif"}:e[8]===87&&e[9]===69&&e[10]===66&&e[11]===80?{ext:"webp",mime:"image/webp"}:e[0]===70&&e[1]===76&&e[2]===73&&e[3]===70?{ext:"flif",mime:"image/flif"}:(e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42)&&e[8]===67&&e[9]===82?{ext:"cr2",mime:"image/x-canon-cr2"}:e[0]===73&&e[1]===73&&e[2]===42&&e[3]===0||e[0]===77&&e[1]===77&&e[2]===0&&e[3]===42?{ext:"tif",mime:"image/tiff"}:e[0]===66&&e[1]===77?{ext:"bmp",mime:"image/bmp"}:e[0]===73&&e[1]===73&&e[2]===188?{ext:"jxr",mime:"image/vnd.ms-photo"}:e[0]===56&&e[1]===66&&e[2]===80&&e[3]===83?{ext:"psd",mime:"image/vnd.adobe.photoshop"}:e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===109&&e[31]===105&&e[32]===109&&e[33]===101&&e[34]===116&&e[35]===121&&e[36]===112&&e[37]===101&&e[38]===97&&e[39]===112&&e[40]===112&&e[41]===108&&e[42]===105&&e[43]===99&&e[44]===97&&e[45]===116&&e[46]===105&&e[47]===111&&e[48]===110&&e[49]===47&&e[50]===101&&e[51]===112&&e[52]===117&&e[53]===98&&e[54]===43&&e[55]===122&&e[56]===105&&e[57]===112?{ext:"epub",mime:"application/epub+zip"}:e[0]===80&&e[1]===75&&e[2]===3&&e[3]===4&&e[30]===77&&e[31]===69&&e[32]===84&&e[33]===65&&e[34]===45&&e[35]===73&&e[36]===78&&e[37]===70&&e[38]===47&&e[39]===109&&e[40]===111&&e[41]===122&&e[42]===105&&e[43]===108&&e[44]===108&&e[45]===97&&e[46]===46&&e[47]===114&&e[48]===115&&e[49]===97?{ext:"xpi",mime:"application/x-xpinstall"}:e[0]===80&&e[1]===75&&(e[2]===3||e[2]===5||e[2]===7)&&(e[3]===4||e[3]===6||e[3]===8)?{ext:"zip",mime:"application/zip"}:e[257]===117&&e[258]===115&&e[259]===116&&e[260]===97&&e[261]===114?{ext:"tar",mime:"application/x-tar"}:e[0]===82&&e[1]===97&&e[2]===114&&e[3]===33&&e[4]===26&&e[5]===7&&(e[6]===0||e[6]===1)?{ext:"rar",mime:"application/x-rar-compressed"}:e[0]===31&&e[1]===139&&e[2]===8?{ext:"gz",mime:"application/gzip"}:e[0]===66&&e[1]===90&&e[2]===104?{ext:"bz2",mime:"application/x-bzip2"}:e[0]===55&&e[1]===122&&e[2]===188&&e[3]===175&&e[4]===39&&e[5]===28?{ext:"7z",mime:"application/x-7z-compressed"}:e[0]===120&&e[1]===1?{ext:"dmg",mime:"application/x-apple-diskimage"}:e[0]===0&&e[1]===0&&e[2]===0&&(e[3]===24||e[3]===32)&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112||e[0]===51&&e[1]===103&&e[2]===112&&e[3]===53||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[16]===109&&e[17]===112&&e[18]===52&&e[19]===49&&e[20]===109&&e[21]===112&&e[22]===52&&e[23]===50&&e[24]===105&&e[25]===115&&e[26]===111&&e[27]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===105&&e[9]===115&&e[10]===111&&e[11]===109||e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===109&&e[9]===112&&e[10]===52&&e[11]===50&&e[12]===0&&e[13]===0&&e[14]===0&&e[15]===0?{ext:"mp4",mime:"video/mp4"}:e[0]===0&&e[1]===0&&e[2]===0&&e[3]===28&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===86?{ext:"m4v",mime:"video/x-m4v"}:e[0]===77&&e[1]===84&&e[2]===104&&e[3]===100?{ext:"mid",mime:"audio/midi"}:e[31]===109&&e[32]===97&&e[33]===116&&e[34]===114&&e[35]===111&&e[36]===115&&e[37]===107&&e[38]===97?{ext:"mkv",mime:"video/x-matroska"}:e[0]===26&&e[1]===69&&e[2]===223&&e[3]===163?{ext:"webm",mime:"video/webm"}:e[0]===0&&e[1]===0&&e[2]===0&&e[3]===20&&e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112?{ext:"mov",mime:"video/quicktime"}:e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===65&&e[9]===86&&e[10]===73?{ext:"avi",mime:"video/x-msvideo"}:e[0]===48&&e[1]===38&&e[2]===178&&e[3]===117&&e[4]===142&&e[5]===102&&e[6]===207&&e[7]===17&&e[8]===166&&e[9]===217?{ext:"wmv",mime:"video/x-ms-wmv"}:e[0]===0&&e[1]===0&&e[2]===1&&e[3].toString(16)[0]==="b"?{ext:"mpg",mime:"video/mpeg"}:e[0]===73&&e[1]===68&&e[2]===51||e[0]===255&&e[1]===251?{ext:"mp3",mime:"audio/mpeg"}:e[4]===102&&e[5]===116&&e[6]===121&&e[7]===112&&e[8]===77&&e[9]===52&&e[10]===65||e[0]===77&&e[1]===52&&e[2]===65&&e[3]===32?{ext:"m4a",mime:"audio/m4a"}:e[28]===79&&e[29]===112&&e[30]===117&&e[31]===115&&e[32]===72&&e[33]===101&&e[34]===97&&e[35]===100?{ext:"opus",mime:"audio/opus"}:e[0]===79&&e[1]===103&&e[2]===103&&e[3]===83?{ext:"ogg",mime:"audio/ogg"}:e[0]===102&&e[1]===76&&e[2]===97&&e[3]===67?{ext:"flac",mime:"audio/x-flac"}:e[0]===82&&e[1]===73&&e[2]===70&&e[3]===70&&e[8]===87&&e[9]===65&&e[10]===86&&e[11]===69?{ext:"wav",mime:"audio/x-wav"}:e[0]===35&&e[1]===33&&e[2]===65&&e[3]===77&&e[4]===82&&e[5]===10?{ext:"amr",mime:"audio/amr"}:e[0]===37&&e[1]===80&&e[2]===68&&e[3]===70?{ext:"pdf",mime:"application/pdf"}:e[0]===77&&e[1]===90?{ext:"exe",mime:"application/x-msdownload"}:(e[0]===67||e[0]===70)&&e[1]===87&&e[2]===83?{ext:"swf",mime:"application/x-shockwave-flash"}:e[0]===123&&e[1]===92&&e[2]===114&&e[3]===116&&e[4]===102?{ext:"rtf",mime:"application/rtf"}:e[0]===119&&e[1]===79&&e[2]===70&&e[3]===70&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)?{ext:"woff",mime:"application/font-woff"}:e[0]===119&&e[1]===79&&e[2]===70&&e[3]===50&&(e[4]===0&&e[5]===1&&e[6]===0&&e[7]===0||e[4]===79&&e[5]===84&&e[6]===84&&e[7]===79)?{ext:"woff2",mime:"application/font-woff"}:e[34]===76&&e[35]===80&&(e[8]===0&&e[9]===0&&e[10]===1||e[8]===1&&e[9]===0&&e[10]===2||e[8]===2&&e[9]===0&&e[10]===2)?{ext:"eot",mime:"application/octet-stream"}:e[0]===0&&e[1]===1&&e[2]===0&&e[3]===0&&e[4]===0?{ext:"ttf",mime:"application/font-sfnt"}:e[0]===79&&e[1]===84&&e[2]===84&&e[3]===79&&e[4]===0?{ext:"otf",mime:"application/font-sfnt"}:e[0]===0&&e[1]===0&&e[2]===1&&e[3]===0?{ext:"ico",mime:"image/x-icon"}:e[0]===70&&e[1]===76&&e[2]===86&&e[3]===1?{ext:"flv",mime:"video/x-flv"}:e[0]===37&&e[1]===33?{ext:"ps",mime:"application/postscript"}:e[0]===253&&e[1]===55&&e[2]===122&&e[3]===88&&e[4]===90&&e[5]===0?{ext:"xz",mime:"application/x-xz"}:e[0]===83&&e[1]===81&&e[2]===76&&e[3]===105?{ext:"sqlite",mime:"application/x-sqlite3"}:e[0]===78&&e[1]===69&&e[2]===83&&e[3]===26?{ext:"nes",mime:"application/x-nintendo-nes-rom"}:e[0]===67&&e[1]===114&&e[2]===50&&e[3]===52?{ext:"crx",mime:"application/x-google-chrome-extension"}:e[0]===77&&e[1]===83&&e[2]===67&&e[3]===70||e[0]===73&&e[1]===83&&e[2]===99&&e[3]===40?{ext:"cab",mime:"application/vnd.ms-cab-compressed"}:e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62&&e[7]===10&&e[8]===100&&e[9]===101&&e[10]===98&&e[11]===105&&e[12]===97&&e[13]===110&&e[14]===45&&e[15]===98&&e[16]===105&&e[17]===110&&e[18]===97&&e[19]===114&&e[20]===121?{ext:"deb",mime:"application/x-deb"}:e[0]===33&&e[1]===60&&e[2]===97&&e[3]===114&&e[4]===99&&e[5]===104&&e[6]===62?{ext:"ar",mime:"application/x-unix-archive"}:e[0]===237&&e[1]===171&&e[2]===238&&e[3]===219?{ext:"rpm",mime:"application/x-rpm"}:e[0]===31&&e[1]===160||e[0]===31&&e[1]===157?{ext:"Z",mime:"application/x-compress"}:e[0]===76&&e[1]===90&&e[2]===73&&e[3]===80?{ext:"lz",mime:"application/x-lzip"}:e[0]===208&&e[1]===207&&e[2]===17&&e[3]===224&&e[4]===161&&e[5]===177&&e[6]===26&&e[7]===225?{ext:"msi",mime:"application/x-msi"}:null:null}});var Zxt=j((PUu,Qxt)=>{"use strict";var B4e="pending",Vxt="settled",gZ="fulfilled",vZ="rejected",sbn=function(){},Hxt=typeof global<"u"&&typeof global.process<"u"&&typeof global.process.emit=="function",abn=typeof setImmediate>"u"?setTimeout:setImmediate,Kk=[],_4e;function cbn(){for(var e=0;e<Kk.length;e++)Kk[e][0](Kk[e][1]);Kk=[],_4e=!1}function yZ(e,t){Kk.push([e,t]),_4e||(_4e=!0,abn(cbn,0))}function lbn(e,t){function r(u){w4e(t,u)}function n(u){Yk(t,u)}try{e(r,n)}catch(u){n(u)}}function Kxt(e){var t=e.owner,r=t._state,n=t._data,u=e[r],i=e.then;if(typeof u=="function"){r=gZ;try{n=u(n)}catch(o){Yk(i,o)}}Yxt(i,n)||(r===gZ&&w4e(i,n),r===vZ&&Yk(i,n))}function Yxt(e,t){var r;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&(typeof t=="function"||typeof t=="object")){var n=t.then;if(typeof n=="function")return n.call(t,function(u){r||(r=!0,t===u?Jxt(e,u):w4e(e,u))},function(u){r||(r=!0,Yk(e,u))}),!0}}catch(u){return r||Yk(e,u),!0}return!1}function w4e(e,t){(e===t||!Yxt(e,t))&&Jxt(e,t)}function Jxt(e,t){e._state===B4e&&(e._state=Vxt,e._data=t,yZ(fbn,e))}function Yk(e,t){e._state===B4e&&(e._state=Vxt,e._data=t,yZ(pbn,e))}function Xxt(e){e._then=e._then.forEach(Kxt)}function fbn(e){e._state=gZ,Xxt(e)}function pbn(e){e._state=vZ,Xxt(e),!e._handled&&Hxt&&global.process.emit("unhandledRejection",e._data,e)}function hbn(e){global.process.emit("rejectionHandled",e)}function V0(e){if(typeof e!="function")throw new TypeError("Promise resolver "+e+" is not a function");if(!(this instanceof V0))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],lbn(e,this)}V0.prototype={constructor:V0,_state:B4e,_then:null,_data:void 0,_handled:!1,then:function(e,t){var r={owner:this,then:new this.constructor(sbn),fulfilled:e,rejected:t};return(t||e)&&!this._handled&&(this._handled=!0,this._state===vZ&&Hxt&&yZ(hbn,this)),this._state===gZ||this._state===vZ?yZ(Kxt,r):this._then.push(r),r.then},catch:function(e){return this.then(null,e)}};V0.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new V0(function(t,r){var n=[],u=0;function i(a){return u++,function(c){n[a]=c,--u||t(n)}}for(var o=0,s;o<e.length;o++)s=e[o],s&&typeof s.then=="function"?s.then(i(o),r):n[o]=s;u||t(n)})};V0.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new V0(function(t,r){for(var n=0,u;n<e.length;n++)u=e[n],u&&typeof u.then=="function"?u.then(t,r):t(u)})};V0.resolve=function(e){return e&&typeof e=="object"&&e.constructor===V0?e:new V0(function(t){t(e)})};V0.reject=function(e){return new V0(function(t,r){r(e)})};Qxt.exports=V0});var tAt=j((kUu,eAt)=>{"use strict";eAt.exports=typeof Promise=="function"?Promise:Zxt()});var S4e=j((RUu,nAt)=>{"use strict";var rAt=Object.getOwnPropertySymbols,dbn=Object.prototype.hasOwnProperty,mbn=Object.prototype.propertyIsEnumerable;function gbn(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function vbn(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;var n=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(n.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(i){u[i]=i}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}nAt.exports=vbn()?Object.assign:function(e,t){for(var r,n=gbn(e),u,i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var o in r)dbn.call(r,o)&&(n[o]=r[o]);if(rAt){u=rAt(r);for(var s=0;s<u.length;s++)mbn.call(r,u[s])&&(n[u[s]]=r[u[s]])}}return n}});var iAt=j((jUu,uAt)=>{var ybn=require("stream").PassThrough,Dbn=S4e();uAt.exports=function(e){e=Dbn({},e);var t=e.array,r=e.encoding,n=r==="buffer",u=!1;t?u=!(r||n):r=r||"utf8",n&&(r=null);var i=0,o=[],s=new ybn({objectMode:u});return r&&s.setEncoding(r),s.on("data",function(a){o.push(a),u?i=o.length:i+=a.length}),s.getBufferedValue=function(){return t?o:n?Buffer.concat(o,i):o.join("")},s.getBufferedLength=function(){return i},s}});var sAt=j((IUu,DZ)=>{"use strict";var oAt=tAt(),O4e=S4e(),Ebn=iAt();function T4e(e,t){if(!e)return oAt.reject(new Error("Expected a stream"));t=O4e({maxBuffer:1/0},t);var r=t.maxBuffer,n,u,i=new oAt(function(o,s){n=Ebn(t),e.once("error",a),e.pipe(n),n.on("data",function(){n.getBufferedLength()>r&&s(new Error("maxBuffer exceeded"))}),n.once("error",a),n.on("end",o),u=function(){e.unpipe&&e.unpipe(n)};function a(c){c&&(c.bufferedData=n.getBufferedValue()),s(c)}});return i.then(u,u),i.then(function(){return n.getBufferedValue()})}DZ.exports=T4e;DZ.exports.buffer=function(e,t){return T4e(e,O4e({},t,{encoding:"buffer"}))};DZ.exports.array=function(e,t){return T4e(e,O4e({},t,{array:!0}))}});var P4e=j((LUu,lAt)=>{"use strict";var aAt=function(e,t,r){return function(){for(var n=this,u=new Array(arguments.length),i=0;i<arguments.length;i++)u[i]=arguments[i];return new t(function(o,s){u.push(function(a,c){if(a)s(a);else if(r.multiArgs){for(var l=new Array(arguments.length-1),f=1;f<arguments.length;f++)l[f-1]=arguments[f];o(l)}else o(c)}),e.apply(n,u)})}},cAt=lAt.exports=function(e,t,r){typeof t!="function"&&(r=t,t=Promise),r=r||{},r.exclude=r.exclude||[/.+Sync$/];var n=function(i){var o=function(s){return typeof s=="string"?i===s:s.test(i)};return r.include?r.include.some(o):!r.exclude.some(o)},u=typeof e=="function"?function(){return r.excludeMain?e.apply(this,arguments):aAt(e,t,r).apply(this,arguments)}:{};return Object.keys(e).reduce(function(i,o){var s=e[o];return i[o]=typeof s=="function"&&n(o)?aAt(s,t,r):s,i},u)};cAt.all=cAt});var dAt=j((NUu,hAt)=>{hAt.exports=EZ;function EZ(){this.pending=0,this.max=1/0,this.listeners=[],this.waiting=[],this.error=null}EZ.prototype.go=function(e){this.pending<this.max?pAt(this,e):this.waiting.push(e)};EZ.prototype.wait=function(e){this.pending===0?e(this.error):this.listeners.push(e)};EZ.prototype.hold=function(){return fAt(this)};function fAt(e){e.pending+=1;var t=!1;return r;function r(u){if(t)throw new Error("callback called twice");if(t=!0,e.error=e.error||u,e.pending-=1,e.waiting.length>0&&e.pending<e.max)pAt(e,e.waiting.shift());else if(e.pending===0){var i=e.listeners;e.listeners=[],i.forEach(n)}}function n(u){u(e.error)}}function pAt(e,t){t(fAt(e))}});var gAt=j(Xk=>{var Jk=require("fs"),bZ=require("util"),k4e=require("stream"),mAt=k4e.Readable,R4e=k4e.Writable,bbn=k4e.PassThrough,Cbn=dAt(),CZ=require("events").EventEmitter;Xk.createFromBuffer=xbn;Xk.createFromFd=Abn;Xk.BufferSlicer=tg;Xk.FdSlicer=eg;bZ.inherits(eg,CZ);function eg(e,t){t=t||{},CZ.call(this),this.fd=e,this.pend=new Cbn,this.pend.max=1,this.refCount=0,this.autoClose=!!t.autoClose}eg.prototype.read=function(e,t,r,n,u){var i=this;i.pend.go(function(o){Jk.read(i.fd,e,t,r,n,function(s,a,c){o(),u(s,a,c)})})};eg.prototype.write=function(e,t,r,n,u){var i=this;i.pend.go(function(o){Jk.write(i.fd,e,t,r,n,function(s,a,c){o(),u(s,a,c)})})};eg.prototype.createReadStream=function(e){return new xZ(this,e)};eg.prototype.createWriteStream=function(e){return new AZ(this,e)};eg.prototype.ref=function(){this.refCount+=1};eg.prototype.unref=function(){var e=this;if(e.refCount-=1,e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");e.autoClose&&Jk.close(e.fd,t);function t(r){r?e.emit("error",r):e.emit("close")}};bZ.inherits(xZ,mAt);function xZ(e,t){t=t||{},mAt.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=t.end,this.pos=this.start,this.destroyed=!1}xZ.prototype._read=function(e){var t=this;if(!t.destroyed){var r=Math.min(t._readableState.highWaterMark,e);if(t.endOffset!=null&&(r=Math.min(r,t.endOffset-t.pos)),r<=0){t.destroyed=!0,t.push(null),t.context.unref();return}t.context.pend.go(function(n){if(t.destroyed)return n();var u=new Buffer(r);Jk.read(t.context.fd,u,0,r,t.pos,function(i,o){i?t.destroy(i):o===0?(t.destroyed=!0,t.push(null),t.context.unref()):(t.pos+=o,t.push(u.slice(0,o))),n()})})}};xZ.prototype.destroy=function(e){this.destroyed||(e=e||new Error("stream destroyed"),this.destroyed=!0,this.emit("error",e),this.context.unref())};bZ.inherits(AZ,R4e);function AZ(e,t){t=t||{},R4e.call(this,t),this.context=e,this.context.ref(),this.start=t.start||0,this.endOffset=t.end==null?1/0:+t.end,this.bytesWritten=0,this.pos=this.start,this.destroyed=!1,this.on("finish",this.destroy.bind(this))}AZ.prototype._write=function(e,t,r){var n=this;if(!n.destroyed){if(n.pos+e.length>n.endOffset){var u=new Error("maximum file length exceeded");u.code="ETOOBIG",n.destroy(),r(u);return}n.context.pend.go(function(i){if(n.destroyed)return i();Jk.write(n.context.fd,e,0,e.length,n.pos,function(o,s){o?(n.destroy(),i(),r(o)):(n.bytesWritten+=s,n.pos+=s,n.emit("progress"),i(),r())})})}};AZ.prototype.destroy=function(){this.destroyed||(this.destroyed=!0,this.context.unref())};bZ.inherits(tg,CZ);function tg(e,t){CZ.call(this),t=t||{},this.refCount=0,this.buffer=e,this.maxChunkSize=t.maxChunkSize||Number.MAX_SAFE_INTEGER}tg.prototype.read=function(e,t,r,n,u){var i=n+r,o=i-this.buffer.length,s=o>0?o:r;this.buffer.copy(e,t,n,i),setImmediate(function(){u(null,s)})};tg.prototype.write=function(e,t,r,n,u){e.copy(this.buffer,n,t,t+r),setImmediate(function(){u(null,r,e)})};tg.prototype.createReadStream=function(e){e=e||{};var t=new bbn(e);t.destroyed=!1,t.start=e.start||0,t.endOffset=e.end,t.pos=t.endOffset||this.buffer.length;for(var r=this.buffer.slice(t.start,t.pos),n=0;;){var u=n+this.maxChunkSize;if(u>=r.length){n<r.length&&t.write(r.slice(n,r.length));break}t.write(r.slice(n,u)),n=u}return t.end(),t.destroy=function(){t.destroyed=!0},t};tg.prototype.createWriteStream=function(e){var t=this;e=e||{};var r=new R4e(e);return r.start=e.start||0,r.endOffset=e.end==null?this.buffer.length:+e.end,r.bytesWritten=0,r.pos=r.start,r.destroyed=!1,r._write=function(n,u,i){if(!r.destroyed){var o=r.pos+n.length;if(o>r.endOffset){var s=new Error("maximum file length exceeded");s.code="ETOOBIG",r.destroyed=!0,i(s);return}n.copy(t.buffer,r.pos,0,n.length),r.bytesWritten+=n.length,r.pos=o,r.emit("progress"),i()}},r.destroy=function(){r.destroyed=!0},r};tg.prototype.ref=function(){this.refCount+=1};tg.prototype.unref=function(){if(this.refCount-=1,this.refCount<0)throw new Error("invalid unref")};function xbn(e,t){return new tg(e,t)}function Abn(e,t){return new eg(e,t)}});var FZ=j((MUu,yAt)=>{var cv=require("buffer").Buffer,j4e=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];typeof Int32Array<"u"&&(j4e=new Int32Array(j4e));function vAt(e){if(cv.isBuffer(e))return e;var t=typeof cv.alloc=="function"&&typeof cv.from=="function";if(typeof e=="number")return t?cv.alloc(e):new cv(e);if(typeof e=="string")return t?cv.from(e):new cv(e);throw new Error("input must be buffer, number, or string, received "+typeof e)}function Fbn(e){var t=vAt(4);return t.writeInt32BE(e,0),t}function I4e(e,t){e=vAt(e),cv.isBuffer(t)&&(t=t.readUInt32BE(0));for(var r=~~t^-1,n=0;n<e.length;n++)r=j4e[(r^e[n])&255]^r>>>8;return r^-1}function L4e(){return Fbn(I4e.apply(null,arguments))}L4e.signed=function(){return I4e.apply(null,arguments)};L4e.unsigned=function(){return I4e.apply(null,arguments)>>>0};yAt.exports=L4e});var FAt=j($2=>{var N4e=require("fs"),_bn=require("zlib"),DAt=gAt(),Bbn=FZ(),wZ=require("util"),SZ=require("events").EventEmitter,EAt=require("stream").Transform,q4e=require("stream").PassThrough,wbn=require("stream").Writable;$2.open=Sbn;$2.fromFd=bAt;$2.fromBuffer=Obn;$2.fromRandomAccessReader=M4e;$2.dosDateTimeToDate=xAt;$2.validateFileName=AAt;$2.ZipFile=lv;$2.Entry=Qk;$2.RandomAccessReader=fv;function Sbn(e,t,r){typeof t=="function"&&(r=t,t=null),t==null&&(t={}),t.autoClose==null&&(t.autoClose=!0),t.lazyEntries==null&&(t.lazyEntries=!1),t.decodeStrings==null&&(t.decodeStrings=!0),t.validateEntrySizes==null&&(t.validateEntrySizes=!0),t.strictFileNames==null&&(t.strictFileNames=!1),r==null&&(r=BZ),N4e.open(e,"r",function(n,u){if(n)return r(n);bAt(u,t,function(i,o){i&&N4e.close(u,BZ),r(i,o)})})}function bAt(e,t,r){typeof t=="function"&&(r=t,t=null),t==null&&(t={}),t.autoClose==null&&(t.autoClose=!1),t.lazyEntries==null&&(t.lazyEntries=!1),t.decodeStrings==null&&(t.decodeStrings=!0),t.validateEntrySizes==null&&(t.validateEntrySizes=!0),t.strictFileNames==null&&(t.strictFileNames=!1),r==null&&(r=BZ),N4e.fstat(e,function(n,u){if(n)return r(n);var i=DAt.createFromFd(e,{autoClose:!0});M4e(i,u.size,t,r)})}function Obn(e,t,r){typeof t=="function"&&(r=t,t=null),t==null&&(t={}),t.autoClose=!1,t.lazyEntries==null&&(t.lazyEntries=!1),t.decodeStrings==null&&(t.decodeStrings=!0),t.validateEntrySizes==null&&(t.validateEntrySizes=!0),t.strictFileNames==null&&(t.strictFileNames=!1);var n=DAt.createFromBuffer(e,{maxChunkSize:65536});M4e(n,e.length,t,r)}function M4e(e,t,r,n){typeof r=="function"&&(n=r,r=null),r==null&&(r={}),r.autoClose==null&&(r.autoClose=!0),r.lazyEntries==null&&(r.lazyEntries=!1),r.decodeStrings==null&&(r.decodeStrings=!0);var u=!!r.decodeStrings;if(r.validateEntrySizes==null&&(r.validateEntrySizes=!0),r.strictFileNames==null&&(r.strictFileNames=!1),n==null&&(n=BZ),typeof t!="number")throw new Error("expected totalSize parameter to be a number");if(t>Number.MAX_SAFE_INTEGER)throw new Error("zip file too large. only file sizes up to 2^52 are supported due to JavaScript's Number type being an IEEE 754 double.");e.ref();var i=22,o=65535,s=Math.min(i+o,t),a=U2(s),c=t-a.length;eA(e,a,0,s,c,function(l){if(l)return n(l);for(var f=s-i;f>=0;f-=1)if(a.readUInt32LE(f)===101010256){var p=a.slice(f),h=p.readUInt16LE(4);if(h!==0)return n(new Error("multi-disk zip files are not supported: found disk number: "+h));var d=p.readUInt16LE(10),m=p.readUInt32LE(16),v=p.readUInt16LE(20),D=p.length-i;if(v!==D)return n(new Error("invalid comment length. expected: "+D+". found: "+v));var g=u?_Z(p,22,p.length,!1):p.slice(22);if(!(d===65535||m===4294967295))return n(null,new lv(e,m,t,d,g,r.autoClose,r.lazyEntries,u,r.validateEntrySizes,r.strictFileNames));var y=U2(20),E=c+f-y.length;eA(e,y,0,y.length,E,function(b){if(b)return n(b);if(y.readUInt32LE(0)!==117853008)return n(new Error("invalid zip64 end of central directory locator signature"));var C=tA(y,8),x=U2(56);eA(e,x,0,x.length,C,function(A){return A?n(A):x.readUInt32LE(0)!==101075792?n(new Error("invalid zip64 end of central directory record signature")):(d=tA(x,32),m=tA(x,48),n(null,new lv(e,m,t,d,g,r.autoClose,r.lazyEntries,u,r.validateEntrySizes,r.strictFileNames)))})});return}n(new Error("end of central directory record signature not found"))})}wZ.inherits(lv,SZ);function lv(e,t,r,n,u,i,o,s,a,c){var l=this;SZ.call(l),l.reader=e,l.reader.on("error",function(f){CAt(l,f)}),l.reader.once("close",function(){l.emit("close")}),l.readEntryCursor=t,l.fileSize=r,l.entryCount=n,l.comment=u,l.entriesRead=0,l.autoClose=!!i,l.lazyEntries=!!o,l.decodeStrings=!!s,l.validateEntrySizes=!!a,l.strictFileNames=!!c,l.isOpen=!0,l.emittedError=!1,l.lazyEntries||l._readEntry()}lv.prototype.close=function(){this.isOpen&&(this.isOpen=!1,this.reader.unref())};function Gd(e,t){e.autoClose&&e.close(),CAt(e,t)}function CAt(e,t){e.emittedError||(e.emittedError=!0,e.emit("error",t))}lv.prototype.readEntry=function(){if(!this.lazyEntries)throw new Error("readEntry() called without lazyEntries:true");this._readEntry()};lv.prototype._readEntry=function(){var e=this;if(e.entryCount===e.entriesRead){setImmediate(function(){e.autoClose&&e.close(),!e.emittedError&&e.emit("end")});return}if(!e.emittedError){var t=U2(46);eA(e.reader,t,0,t.length,e.readEntryCursor,function(r){if(r)return Gd(e,r);if(!e.emittedError){var n=new Qk,u=t.readUInt32LE(0);if(u!==33639248)return Gd(e,new Error("invalid central directory file header signature: 0x"+u.toString(16)));if(n.versionMadeBy=t.readUInt16LE(4),n.versionNeededToExtract=t.readUInt16LE(6),n.generalPurposeBitFlag=t.readUInt16LE(8),n.compressionMethod=t.readUInt16LE(10),n.lastModFileTime=t.readUInt16LE(12),n.lastModFileDate=t.readUInt16LE(14),n.crc32=t.readUInt32LE(16),n.compressedSize=t.readUInt32LE(20),n.uncompressedSize=t.readUInt32LE(24),n.fileNameLength=t.readUInt16LE(28),n.extraFieldLength=t.readUInt16LE(30),n.fileCommentLength=t.readUInt16LE(32),n.internalFileAttributes=t.readUInt16LE(36),n.externalFileAttributes=t.readUInt32LE(38),n.relativeOffsetOfLocalHeader=t.readUInt32LE(42),n.generalPurposeBitFlag&64)return Gd(e,new Error("strong encryption is not supported"));e.readEntryCursor+=46,t=U2(n.fileNameLength+n.extraFieldLength+n.fileCommentLength),eA(e.reader,t,0,t.length,e.readEntryCursor,function(i){if(i)return Gd(e,i);if(!e.emittedError){var o=(n.generalPurposeBitFlag&2048)!==0;n.fileName=e.decodeStrings?_Z(t,0,n.fileNameLength,o):t.slice(0,n.fileNameLength);var s=n.fileNameLength+n.extraFieldLength,a=t.slice(n.fileNameLength,s);n.extraFields=[];for(var c=0;c<a.length-3;){var l=a.readUInt16LE(c+0),f=a.readUInt16LE(c+2),p=c+4,h=p+f;if(h>a.length)return Gd(e,new Error("extra field length exceeds extra field buffer size"));var d=U2(f);a.copy(d,0,p,h),n.extraFields.push({id:l,data:d}),c=h}if(n.fileComment=e.decodeStrings?_Z(t,s,s+n.fileCommentLength,o):t.slice(s,s+n.fileCommentLength),n.comment=n.fileComment,e.readEntryCursor+=t.length,e.entriesRead+=1,n.uncompressedSize===4294967295||n.compressedSize===4294967295||n.relativeOffsetOfLocalHeader===4294967295){for(var m=null,c=0;c<n.extraFields.length;c++){var v=n.extraFields[c];if(v.id===1){m=v.data;break}}if(m==null)return Gd(e,new Error("expected zip64 extended information extra field"));var D=0;if(n.uncompressedSize===4294967295){if(D+8>m.length)return Gd(e,new Error("zip64 extended information extra field does not include uncompressed size"));n.uncompressedSize=tA(m,D),D+=8}if(n.compressedSize===4294967295){if(D+8>m.length)return Gd(e,new Error("zip64 extended information extra field does not include compressed size"));n.compressedSize=tA(m,D),D+=8}if(n.relativeOffsetOfLocalHeader===4294967295){if(D+8>m.length)return Gd(e,new Error("zip64 extended information extra field does not include relative header offset"));n.relativeOffsetOfLocalHeader=tA(m,D),D+=8}}if(e.decodeStrings)for(var c=0;c<n.extraFields.length;c++){var v=n.extraFields[c];if(v.id===28789){if(v.data.length<6||v.data.readUInt8(0)!==1)continue;var g=v.data.readUInt32LE(1);if(Bbn.unsigned(t.slice(0,n.fileNameLength))!==g)continue;n.fileName=_Z(v.data,5,v.data.length,!0);break}}if(e.validateEntrySizes&&n.compressionMethod===0){var y=n.uncompressedSize;if(n.isEncrypted()&&(y+=12),n.compressedSize!==y){var E="compressed/uncompressed size mismatch for stored file: "+n.compressedSize+" != "+n.uncompressedSize;return Gd(e,new Error(E))}}if(e.decodeStrings){e.strictFileNames||(n.fileName=n.fileName.replace(/\\/g,"/"));var b=AAt(n.fileName,e.validateFileNameOptions);if(b!=null)return Gd(e,new Error(b))}e.emit("entry",n),e.lazyEntries||e._readEntry()}})}})}};lv.prototype.openReadStream=function(e,t,r){var n=this,u=0,i=e.compressedSize;if(r==null)r=t,t={};else{if(t.decrypt!=null){if(!e.isEncrypted())throw new Error("options.decrypt can only be specified for encrypted entries");if(t.decrypt!==!1)throw new Error("invalid options.decrypt value: "+t.decrypt);if(e.isCompressed()&&t.decompress!==!1)throw new Error("entry is encrypted and compressed, and options.decompress !== false")}if(t.decompress!=null){if(!e.isCompressed())throw new Error("options.decompress can only be specified for compressed entries");if(!(t.decompress===!1||t.decompress===!0))throw new Error("invalid options.decompress value: "+t.decompress)}if(t.start!=null||t.end!=null){if(e.isCompressed()&&t.decompress!==!1)throw new Error("start/end range not allowed for compressed entry without options.decompress === false");if(e.isEncrypted()&&t.decrypt!==!1)throw new Error("start/end range not allowed for encrypted entry without options.decrypt === false")}if(t.start!=null){if(u=t.start,u<0)throw new Error("options.start < 0");if(u>e.compressedSize)throw new Error("options.start > entry.compressedSize")}if(t.end!=null){if(i=t.end,i<0)throw new Error("options.end < 0");if(i>e.compressedSize)throw new Error("options.end > entry.compressedSize");if(i<u)throw new Error("options.end < options.start")}}if(!n.isOpen)return r(new Error("closed"));if(e.isEncrypted()&&t.decrypt!==!1)return r(new Error("entry is encrypted, and options.decrypt !== false"));n.reader.ref();var o=U2(30);eA(n.reader,o,0,o.length,e.relativeOffsetOfLocalHeader,function(s){try{if(s)return r(s);var a=o.readUInt32LE(0);if(a!==67324752)return r(new Error("invalid local file header signature: 0x"+a.toString(16)));var c=o.readUInt16LE(26),l=o.readUInt16LE(28),f=e.relativeOffsetOfLocalHeader+o.length+c+l,p;if(e.compressionMethod===0)p=!1;else if(e.compressionMethod===8)p=t.decompress!=null?t.decompress:!0;else return r(new Error("unsupported compression method: "+e.compressionMethod));var h=f,d=h+e.compressedSize;if(e.compressedSize!==0&&d>n.fileSize)return r(new Error("file data overflows file bounds: "+h+" + "+e.compressedSize+" > "+n.fileSize));var m=n.reader.createReadStream({start:h+u,end:h+i}),v=m;if(p){var D=!1,g=_bn.createInflateRaw();m.on("error",function(y){setImmediate(function(){D||g.emit("error",y)})}),m.pipe(g),n.validateEntrySizes?(v=new Zk(e.uncompressedSize),g.on("error",function(y){setImmediate(function(){D||v.emit("error",y)})}),g.pipe(v)):v=g,v.destroy=function(){D=!0,g!==v&&g.unpipe(v),m.unpipe(g),m.destroy()}}r(null,v)}finally{n.reader.unref()}})};function Qk(){}Qk.prototype.getLastModDate=function(){return xAt(this.lastModFileDate,this.lastModFileTime)};Qk.prototype.isEncrypted=function(){return(this.generalPurposeBitFlag&1)!==0};Qk.prototype.isCompressed=function(){return this.compressionMethod===8};function xAt(e,t){var r=e&31,n=(e>>5&15)-1,u=(e>>9&127)+1980,i=0,o=(t&31)*2,s=t>>5&63,a=t>>11&31;return new Date(u,n,r,a,s,o,i)}function AAt(e){return e.indexOf("\\")!==-1?"invalid characters in fileName: "+e:/^[a-zA-Z]:/.test(e)||/^\//.test(e)?"absolute path: "+e:e.split("/").indexOf("..")!==-1?"invalid relative path: "+e:null}function eA(e,t,r,n,u,i){if(n===0)return setImmediate(function(){i(null,U2(0))});e.read(t,r,n,u,function(o,s){if(o)return i(o);if(s<n)return i(new Error("unexpected EOF"));i()})}wZ.inherits(Zk,EAt);function Zk(e){EAt.call(this),this.actualByteCount=0,this.expectedByteCount=e}Zk.prototype._transform=function(e,t,r){if(this.actualByteCount+=e.length,this.actualByteCount>this.expectedByteCount){var n="too many bytes in the stream. expected "+this.expectedByteCount+". got at least "+this.actualByteCount;return r(new Error(n))}r(null,e)};Zk.prototype._flush=function(e){if(this.actualByteCount<this.expectedByteCount){var t="not enough bytes in the stream. expected "+this.expectedByteCount+". got only "+this.actualByteCount;return e(new Error(t))}e()};wZ.inherits(fv,SZ);function fv(){SZ.call(this),this.refCount=0}fv.prototype.ref=function(){this.refCount+=1};fv.prototype.unref=function(){var e=this;if(e.refCount-=1,e.refCount>0)return;if(e.refCount<0)throw new Error("invalid unref");e.close(t);function t(r){if(r)return e.emit("error",r);e.emit("close")}};fv.prototype.createReadStream=function(e){var t=e.start,r=e.end;if(t===r){var n=new q4e;return setImmediate(function(){n.end()}),n}var u=this._readStreamForRange(t,r),i=!1,o=new OZ(this);u.on("error",function(a){setImmediate(function(){i||o.emit("error",a)})}),o.destroy=function(){u.unpipe(o),o.unref(),u.destroy()};var s=new Zk(r-t);return o.on("error",function(a){setImmediate(function(){i||s.emit("error",a)})}),s.destroy=function(){i=!0,o.unpipe(s),o.destroy()},u.pipe(o).pipe(s)};fv.prototype._readStreamForRange=function(e,t){throw new Error("not implemented")};fv.prototype.read=function(e,t,r,n,u){var i=this.createReadStream({start:n,end:n+r}),o=new wbn,s=0;o._write=function(a,c,l){a.copy(e,t+s,0,a.length),s+=a.length,l()},o.on("finish",u),i.on("error",function(a){u(a)}),i.pipe(o)};fv.prototype.close=function(e){setImmediate(e)};wZ.inherits(OZ,q4e);function OZ(e){q4e.call(this),this.context=e,this.context.ref(),this.unreffedYet=!1}OZ.prototype._flush=function(e){this.unref(),e()};OZ.prototype.unref=function(e){this.unreffedYet||(this.unreffedYet=!0,this.context.unref())};var Tbn="\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\xA0";function _Z(e,t,r,n){if(n)return e.toString("utf8",t,r);for(var u="",i=t;i<r;i++)u+=Tbn[e[i]];return u}function tA(e,t){var r=e.readUInt32LE(t),n=e.readUInt32LE(t+4);return n*4294967296+r}var U2;typeof Buffer.allocUnsafe=="function"?U2=function(e){return Buffer.allocUnsafe(e)}:U2=function(e){return new Buffer(e)};function BZ(e){if(e)throw e}});var SAt=j(($Uu,wAt)=>{"use strict";var _At=Wxt(),Pbn=sAt(),BAt=P4e(),kbn=FAt(),Rbn=(e,t)=>{let i=e.versionMadeBy>>8;return(t&61440)===40960?"symlink":(t&61440)===16384||i===0&&e.externalFileAttributes===16?"directory":"file"},jbn=(e,t)=>{let r={mode:e.externalFileAttributes>>16&65535,mtime:e.getLastModDate(),path:e.fileName};return r.type=Rbn(e,r.mode),r.mode===0&&r.type==="directory"&&(r.mode=493),r.mode===0&&(r.mode=420),BAt(t.openReadStream.bind(t))(e).then(Pbn.buffer).then(n=>(r.data=n,r.type==="symlink"&&(r.linkname=n.toString()),r)).catch(n=>{throw t.close(),n})},Ibn=e=>new Promise((t,r)=>{let n=[];e.readEntry(),e.on("entry",u=>{jbn(u,e).catch(r).then(i=>{n.push(i),e.readEntry()})}),e.on("error",r),e.on("end",()=>t(n))});wAt.exports=()=>e=>Buffer.isBuffer(e)?!_At(e)||_At(e).ext!=="zip"?Promise.resolve([]):BAt(kbn.fromBuffer)(e,{lazyEntries:!0}).then(Ibn):Promise.reject(new TypeError(`Expected a Buffer, got ${typeof e}`))});var PAt=j((zUu,TAt)=>{"use strict";var OAt=(e,t)=>function(){let r=t.promiseModule,n=new Array(arguments.length);for(let u=0;u<arguments.length;u++)n[u]=arguments[u];return new r((u,i)=>{t.errorFirst?n.push(function(o,s){if(t.multiArgs){let a=new Array(arguments.length-1);for(let c=1;c<arguments.length;c++)a[c-1]=arguments[c];o?(a.unshift(o),i(a)):u(a)}else o?i(o):u(s)}):n.push(function(o){if(t.multiArgs){let s=new Array(arguments.length-1);for(let a=0;a<arguments.length;a++)s[a]=arguments[a];u(s)}else u(o)}),e.apply(this,n)})};TAt.exports=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);let r=u=>{let i=o=>typeof o=="string"?u===o:o.test(u);return t.include?t.include.some(i):!t.exclude.some(i)},n;typeof e=="function"?n=function(){return t.excludeMain?e.apply(this,arguments):OAt(e,t).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(let u in e){let i=e[u];n[u]=typeof i=="function"&&r(u)?OAt(i,t):i}return n}});var IAt=j((GUu,U4e)=>{"use strict";var Lbn=require("fs"),h3=require("path"),kAt=PAt(),RAt={mode:511&~process.umask(),fs:Lbn},jAt=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(h3.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}};U4e.exports=(e,t)=>Promise.resolve().then(()=>{jAt(e),t=Object.assign({},RAt,t);let r=kAt(t.fs.mkdir),n=kAt(t.fs.stat),u=i=>r(i,t.mode).then(()=>i).catch(o=>{if(o.code==="ENOENT"){if(o.message.includes("null bytes")||h3.dirname(i)===i)throw o;return u(h3.dirname(i)).then(()=>u(i))}return n(i).then(s=>s.isDirectory()?i:Promise.reject()).catch(()=>{throw o})});return u(h3.resolve(e))});U4e.exports.sync=(e,t)=>{jAt(e),t=Object.assign({},RAt,t);let r=n=>{try{t.fs.mkdirSync(n,t.mode)}catch(u){if(u.code==="ENOENT"){if(u.message.includes("null bytes")||h3.dirname(n)===n)throw u;return r(h3.dirname(n)),r(n)}try{if(!t.fs.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw u}}return n};return r(h3.resolve(e))}});var NAt=j((WUu,LAt)=>{"use strict";LAt.exports=function(t,r){if(r){if(typeof r!="object")throw new TypeError(String(r)+" is not an object. Expected an object that has boolean `includeZero` property.");if("includeZero"in r){if(typeof r.includeZero!="boolean")throw new TypeError(String(r.includeZero)+" is neither true nor false. `includeZero` option must be a Boolean value.");if(r.includeZero&&t===0)return!0}}return Number.isSafeInteger(t)&&t>=1}});var MAt=j((VUu,qAt)=>{"use strict";var eR=require("path"),tR=require("util"),Nbn=NAt();qAt.exports=function(t,r,n){if(typeof t!="string")throw new TypeError(tR.inspect(t)+" is not a string. First argument to strip-dirs must be a path string.");if(eR.posix.isAbsolute(t)||eR.win32.isAbsolute(t))throw new Error(`${t} is an absolute path. strip-dirs requires a relative path.`);if(!Nbn(r,{includeZero:!0}))throw new Error("The Second argument of strip-dirs must be a natural number or 0, but received "+tR.inspect(r)+".");if(n){if(typeof n!="object")throw new TypeError(tR.inspect(n)+" is not an object. Expected an object with a boolean `disallowOverflow` property.");if(Array.isArray(n))throw new TypeError(tR.inspect(n)+" is an array. Expected an object with a boolean `disallowOverflow` property.");if("disallowOverflow"in n&&typeof n.disallowOverflow!="boolean")throw new TypeError(tR.inspect(n.disallowOverflow)+" is neither true nor false. `disallowOverflow` option must be a Boolean value.")}else n={disallowOverflow:!1};let u=eR.normalize(t).split(eR.sep);if(u.length>1&&u[0]==="."&&u.shift(),r>u.length-1){if(n.disallowOverflow)throw new RangeError("Cannot strip more directories than there are.");r=u.length-1}return eR.join.apply(null,u.slice(r))}});var $At=j((HUu,UAt)=>{"use strict";var TZ=require("path"),qbn=Bs(),Mbn=dZ(),Ubn=Mxt(),$bn=zxt(),zbn=SAt(),$4e=IAt(),Gbn=P4e(),Wbn=MAt(),H0=Gbn(qbn),Vbn=(e,t)=>t.plugins.length===0?Promise.resolve([]):Promise.all(t.plugins.map(r=>r(e,t))).then(r=>r.reduce((n,u)=>n.concat(u))),z4e=(e,t)=>H0.realpath(e).catch(r=>{let n=TZ.dirname(e);return z4e(n,t)}).then(r=>{if(r.indexOf(t)!==0)throw new Error("Refusing to create a directory outside the output path.");return $4e(e).then(H0.realpath)}),Hbn=(e,t)=>H0.readlink(e).catch(r=>null).then(r=>{if(r)throw new Error("Refusing to write into a symlink");return t}),Kbn=(e,t,r)=>Vbn(e,r).then(n=>(r.strip>0&&(n=n.map(u=>(u.path=Wbn(u.path,r.strip),u)).filter(u=>u.path!==".")),typeof r.filter=="function"&&(n=n.filter(r.filter)),typeof r.map=="function"&&(n=n.map(r.map)),t?Promise.all(n.map(u=>{let i=TZ.join(t,u.path),o=u.mode&~process.umask(),s=new Date;return u.type==="directory"?$4e(t).then(a=>H0.realpath(a)).then(a=>z4e(i,a)).then(()=>H0.utimes(i,s,u.mtime)).then(()=>u):$4e(t).then(a=>H0.realpath(a)).then(a=>z4e(TZ.dirname(i),a).then(()=>a)).then(a=>u.type==="file"?Hbn(i,a):a).then(a=>H0.realpath(TZ.dirname(i)).then(c=>{if(c.indexOf(a)!==0)throw new Error("Refusing to write outside output directory: "+c)})).then(()=>u.type==="link"||u.type==="symlink"&&process.platform==="win32"?H0.link(u.linkname,i):u.type==="symlink"?H0.symlink(u.linkname,i):H0.writeFile(i,u.data,{mode:o})).then(()=>u.type==="file"&&H0.utimes(i,s,u.mtime)).then(()=>u)})):n));UAt.exports=(e,t,r)=>typeof e!="string"&&!Buffer.isBuffer(e)?Promise.reject(new TypeError("Input file required")):(typeof t=="object"&&(r=t,t=null),r=Object.assign({plugins:[Mbn(),Ubn(),$bn(),zbn()]},r),(typeof e=="string"?H0.readFile(e):Promise.resolve(e)).then(u=>Kbn(u,t,r)))});var GAt=j((KUu,zAt)=>{"use strict";zAt.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var G4e=j((YUu,VAt)=>{var rR=GAt(),WAt={};for(let e of Object.keys(rR))WAt[rR[e]]=e;var Er={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};VAt.exports=Er;for(let e of Object.keys(Er)){if(!("channels"in Er[e]))throw new Error("missing channels property: "+e);if(!("labels"in Er[e]))throw new Error("missing channel labels property: "+e);if(Er[e].labels.length!==Er[e].channels)throw new Error("channel and label counts mismatch: "+e);let{channels:t,labels:r}=Er[e];delete Er[e].channels,delete Er[e].labels,Object.defineProperty(Er[e],"channels",{value:t}),Object.defineProperty(Er[e],"labels",{value:r})}Er.rgb.hsl=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,u=Math.min(t,r,n),i=Math.max(t,r,n),o=i-u,s,a;i===u?s=0:t===i?s=(r-n)/o:r===i?s=2+(n-t)/o:n===i&&(s=4+(t-r)/o),s=Math.min(s*60,360),s<0&&(s+=360);let c=(u+i)/2;return i===u?a=0:c<=.5?a=o/(i+u):a=o/(2-i-u),[s,a*100,c*100]};Er.rgb.hsv=function(e){let t,r,n,u,i,o=e[0]/255,s=e[1]/255,a=e[2]/255,c=Math.max(o,s,a),l=c-Math.min(o,s,a),f=function(p){return(c-p)/6/l+1/2};return l===0?(u=0,i=0):(i=l/c,t=f(o),r=f(s),n=f(a),o===c?u=n-r:s===c?u=1/3+t-n:a===c&&(u=2/3+r-t),u<0?u+=1:u>1&&(u-=1)),[u*360,i*100,c*100]};Er.rgb.hwb=function(e){let t=e[0],r=e[1],n=e[2],u=Er.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(r,n));return n=1-1/255*Math.max(t,Math.max(r,n)),[u,i*100,n*100]};Er.rgb.cmyk=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,u=Math.min(1-t,1-r,1-n),i=(1-t-u)/(1-u)||0,o=(1-r-u)/(1-u)||0,s=(1-n-u)/(1-u)||0;return[i*100,o*100,s*100,u*100]};function Ybn(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Er.rgb.keyword=function(e){let t=WAt[e];if(t)return t;let r=1/0,n;for(let u of Object.keys(rR)){let i=rR[u],o=Ybn(e,i);o<r&&(r=o,n=u)}return n};Er.keyword.rgb=function(e){return rR[e]};Er.rgb.xyz=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92;let u=t*.4124+r*.3576+n*.1805,i=t*.2126+r*.7152+n*.0722,o=t*.0193+r*.1192+n*.9505;return[u*100,i*100,o*100]};Er.rgb.lab=function(e){let t=Er.rgb.xyz(e),r=t[0],n=t[1],u=t[2];r/=95.047,n/=100,u/=108.883,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,u=u>.008856?u**(1/3):7.787*u+16/116;let i=116*n-16,o=500*(r-n),s=200*(n-u);return[i,o,s]};Er.hsl.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,u,i,o;if(r===0)return o=n*255,[o,o,o];n<.5?u=n*(1+r):u=n+r-n*r;let s=2*n-u,a=[0,0,0];for(let c=0;c<3;c++)i=t+1/3*-(c-1),i<0&&i++,i>1&&i--,6*i<1?o=s+(u-s)*6*i:2*i<1?o=u:3*i<2?o=s+(u-s)*(2/3-i)*6:o=s,a[c]=o*255;return a};Er.hsl.hsv=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,u=r,i=Math.max(n,.01);n*=2,r*=n<=1?n:2-n,u*=i<=1?i:2-i;let o=(n+r)/2,s=n===0?2*u/(i+u):2*r/(n+r);return[t,s*100,o*100]};Er.hsv.rgb=function(e){let t=e[0]/60,r=e[1]/100,n=e[2]/100,u=Math.floor(t)%6,i=t-Math.floor(t),o=255*n*(1-r),s=255*n*(1-r*i),a=255*n*(1-r*(1-i));switch(n*=255,u){case 0:return[n,a,o];case 1:return[s,n,o];case 2:return[o,n,a];case 3:return[o,s,n];case 4:return[a,o,n];case 5:return[n,o,s]}};Er.hsv.hsl=function(e){let t=e[0],r=e[1]/100,n=e[2]/100,u=Math.max(n,.01),i,o;o=(2-r)*n;let s=(2-r)*u;return i=r*u,i/=s<=1?s:2-s,i=i||0,o/=2,[t,i*100,o*100]};Er.hwb.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100,u=r+n,i;u>1&&(r/=u,n/=u);let o=Math.floor(6*t),s=1-n;i=6*t-o,o&1&&(i=1-i);let a=r+i*(s-r),c,l,f;switch(o){default:case 6:case 0:c=s,l=a,f=r;break;case 1:c=a,l=s,f=r;break;case 2:c=r,l=s,f=a;break;case 3:c=r,l=a,f=s;break;case 4:c=a,l=r,f=s;break;case 5:c=s,l=r,f=a;break}return[c*255,l*255,f*255]};Er.cmyk.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,u=e[3]/100,i=1-Math.min(1,t*(1-u)+u),o=1-Math.min(1,r*(1-u)+u),s=1-Math.min(1,n*(1-u)+u);return[i*255,o*255,s*255]};Er.xyz.rgb=function(e){let t=e[0]/100,r=e[1]/100,n=e[2]/100,u,i,o;return u=t*3.2406+r*-1.5372+n*-.4986,i=t*-.9689+r*1.8758+n*.0415,o=t*.0557+r*-.204+n*1.057,u=u>.0031308?1.055*u**(1/2.4)-.055:u*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,u=Math.min(Math.max(0,u),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[u*255,i*255,o*255]};Er.xyz.lab=function(e){let t=e[0],r=e[1],n=e[2];t/=95.047,r/=100,n/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,n=n>.008856?n**(1/3):7.787*n+16/116;let u=116*r-16,i=500*(t-r),o=200*(r-n);return[u,i,o]};Er.lab.xyz=function(e){let t=e[0],r=e[1],n=e[2],u,i,o;i=(t+16)/116,u=r/500+i,o=i-n/200;let s=i**3,a=u**3,c=o**3;return i=s>.008856?s:(i-16/116)/7.787,u=a>.008856?a:(u-16/116)/7.787,o=c>.008856?c:(o-16/116)/7.787,u*=95.047,i*=100,o*=108.883,[u,i,o]};Er.lab.lch=function(e){let t=e[0],r=e[1],n=e[2],u;u=Math.atan2(n,r)*360/2/Math.PI,u<0&&(u+=360);let o=Math.sqrt(r*r+n*n);return[t,o,u]};Er.lch.lab=function(e){let t=e[0],r=e[1],u=e[2]/360*2*Math.PI,i=r*Math.cos(u),o=r*Math.sin(u);return[t,i,o]};Er.rgb.ansi16=function(e,t=null){let[r,n,u]=e,i=t===null?Er.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let o=30+(Math.round(u/255)<<2|Math.round(n/255)<<1|Math.round(r/255));return i===2&&(o+=60),o};Er.hsv.ansi16=function(e){return Er.rgb.ansi16(Er.hsv.rgb(e),e[2])};Er.rgb.ansi256=function(e){let t=e[0],r=e[1],n=e[2];return t===r&&r===n?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5)};Er.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];let r=(~~(e>50)+1)*.5,n=(t&1)*r*255,u=(t>>1&1)*r*255,i=(t>>2&1)*r*255;return[n,u,i]};Er.ansi256.rgb=function(e){if(e>=232){let i=(e-232)*10+8;return[i,i,i]}e-=16;let t,r=Math.floor(e/36)/5*255,n=Math.floor((t=e%36)/6)/5*255,u=t%6/5*255;return[r,n,u]};Er.rgb.hex=function(e){let r=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(r.length)+r};Er.hex.rgb=function(e){let t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let r=t[0];t[0].length===3&&(r=r.split("").map(s=>s+s).join(""));let n=parseInt(r,16),u=n>>16&255,i=n>>8&255,o=n&255;return[u,i,o]};Er.rgb.hcg=function(e){let t=e[0]/255,r=e[1]/255,n=e[2]/255,u=Math.max(Math.max(t,r),n),i=Math.min(Math.min(t,r),n),o=u-i,s,a;return o<1?s=i/(1-o):s=0,o<=0?a=0:u===t?a=(r-n)/o%6:u===r?a=2+(n-t)/o:a=4+(t-r)/o,a/=6,a%=1,[a*360,o*100,s*100]};Er.hsl.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=r<.5?2*t*r:2*t*(1-r),u=0;return n<1&&(u=(r-.5*n)/(1-n)),[e[0],n*100,u*100]};Er.hsv.hcg=function(e){let t=e[1]/100,r=e[2]/100,n=t*r,u=0;return n<1&&(u=(r-n)/(1-n)),[e[0],n*100,u*100]};Er.hcg.rgb=function(e){let t=e[0]/360,r=e[1]/100,n=e[2]/100;if(r===0)return[n*255,n*255,n*255];let u=[0,0,0],i=t%1*6,o=i%1,s=1-o,a=0;switch(Math.floor(i)){case 0:u[0]=1,u[1]=o,u[2]=0;break;case 1:u[0]=s,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=o;break;case 3:u[0]=0,u[1]=s,u[2]=1;break;case 4:u[0]=o,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=s}return a=(1-r)*n,[(r*u[0]+a)*255,(r*u[1]+a)*255,(r*u[2]+a)*255]};Er.hcg.hsv=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t),u=0;return n>0&&(u=t/n),[e[0],u*100,n*100]};Er.hcg.hsl=function(e){let t=e[1]/100,n=e[2]/100*(1-t)+.5*t,u=0;return n>0&&n<.5?u=t/(2*n):n>=.5&&n<1&&(u=t/(2*(1-n))),[e[0],u*100,n*100]};Er.hcg.hwb=function(e){let t=e[1]/100,r=e[2]/100,n=t+r*(1-t);return[e[0],(n-t)*100,(1-n)*100]};Er.hwb.hcg=function(e){let t=e[1]/100,n=1-e[2]/100,u=n-t,i=0;return u<1&&(i=(n-u)/(1-u)),[e[0],u*100,i*100]};Er.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Er.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Er.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Er.gray.hsl=function(e){return[0,0,e[0]]};Er.gray.hsv=Er.gray.hsl;Er.gray.hwb=function(e){return[0,100,e[0]]};Er.gray.cmyk=function(e){return[0,0,0,e[0]]};Er.gray.lab=function(e){return[e[0],0,0]};Er.gray.hex=function(e){let t=Math.round(e[0]/100*255)&255,n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n};Er.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}});var KAt=j((JUu,HAt)=>{var PZ=G4e();function Jbn(){let e={},t=Object.keys(PZ);for(let r=t.length,n=0;n<r;n++)e[t[n]]={distance:-1,parent:null};return e}function Xbn(e){let t=Jbn(),r=[e];for(t[e].distance=0;r.length;){let n=r.pop(),u=Object.keys(PZ[n]);for(let i=u.length,o=0;o<i;o++){let s=u[o],a=t[s];a.distance===-1&&(a.distance=t[n].distance+1,a.parent=n,r.unshift(s))}}return t}function Qbn(e,t){return function(r){return t(e(r))}}function Zbn(e,t){let r=[t[e].parent,e],n=PZ[t[e].parent][e],u=t[e].parent;for(;t[u].parent;)r.unshift(t[u].parent),n=Qbn(PZ[t[u].parent][u],n),u=t[u].parent;return n.conversion=r,n}HAt.exports=function(e){let t=Xbn(e),r={},n=Object.keys(t);for(let u=n.length,i=0;i<u;i++){let o=n[i];t[o].parent!==null&&(r[o]=Zbn(o,t))}return r}});var JAt=j((XUu,YAt)=>{var W4e=G4e(),e4n=KAt(),rA={},t4n=Object.keys(W4e);function r4n(e){let t=function(...r){let n=r[0];return n==null?n:(n.length>1&&(r=n),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function n4n(e){let t=function(...r){let n=r[0];if(n==null)return n;n.length>1&&(r=n);let u=e(r);if(typeof u=="object")for(let i=u.length,o=0;o<i;o++)u[o]=Math.round(u[o]);return u};return"conversion"in e&&(t.conversion=e.conversion),t}t4n.forEach(e=>{rA[e]={},Object.defineProperty(rA[e],"channels",{value:W4e[e].channels}),Object.defineProperty(rA[e],"labels",{value:W4e[e].labels});let t=e4n(e);Object.keys(t).forEach(n=>{let u=t[n];rA[e][n]=n4n(u),rA[e][n].raw=r4n(u)})});YAt.exports=rA});var rFt=j((QUu,tFt)=>{"use strict";var XAt=(e,t)=>(...r)=>`\x1B[${e(...r)+t}m`,QAt=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};5;${n}m`},ZAt=(e,t)=>(...r)=>{let n=e(...r);return`\x1B[${38+t};2;${n[0]};${n[1]};${n[2]}m`},kZ=e=>e,eFt=(e,t,r)=>[e,t,r],nA=(e,t,r)=>{Object.defineProperty(e,t,{get:()=>{let n=r();return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0}),n},enumerable:!0,configurable:!0})},V4e,uA=(e,t,r,n)=>{V4e===void 0&&(V4e=JAt());let u=n?10:0,i={};for(let[o,s]of Object.entries(V4e)){let a=o==="ansi16"?"ansi":o;o===t?i[a]=e(r,u):typeof s=="object"&&(i[a]=e(s[t],u))}return i};function u4n(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(let[r,n]of Object.entries(t)){for(let[u,i]of Object.entries(n))t[u]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},n[u]=t[u],e.set(i[0],i[1]);Object.defineProperty(t,r,{value:n,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",nA(t.color,"ansi",()=>uA(XAt,"ansi16",kZ,!1)),nA(t.color,"ansi256",()=>uA(QAt,"ansi256",kZ,!1)),nA(t.color,"ansi16m",()=>uA(ZAt,"rgb",eFt,!1)),nA(t.bgColor,"ansi",()=>uA(XAt,"ansi16",kZ,!0)),nA(t.bgColor,"ansi256",()=>uA(QAt,"ansi256",kZ,!0)),nA(t.bgColor,"ansi16m",()=>uA(ZAt,"rgb",eFt,!0)),t}Object.defineProperty(tFt,"exports",{enumerable:!0,get:u4n})});var uFt=j((ZUu,nFt)=>{"use strict";var i4n=(e,t,r)=>{let n=e.indexOf(t);if(n===-1)return e;let u=t.length,i=0,o="";do o+=e.substr(i,n-i)+t+r,i=n+u,n=e.indexOf(t,i);while(n!==-1);return o+=e.substr(i),o},o4n=(e,t,r,n)=>{let u=0,i="";do{let o=e[n-1]==="\r";i+=e.substr(u,(o?n-1:n)-u)+t+(o?`\r
@@ -336,7 +336,7 @@ ${" ".repeat(t)}`):"").join(`
336
336
  ${rwt("ERROR:")}`),dt.write(`
337
337
  ${t}
338
338
  `),r&&dt.write(`${ct.gray(r)}
339
- `)}},kR=JCe});var RR=j((Rzu,e_n)=>{e_n.exports={name:"@serverless-devs/s",version:"3.1.3-615309d3",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"Apache 2.0",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",test:"jest --testTimeout 10000","test:watch":"jest --testTimeout 10000 --watchAll",format:"prettier --write src/ __tests__/**/*.test.ts",watch:"npm run build -- --watch",prebuild:"cross-os prebuild",build:"node ./scripts/build.js","build:ci":"node ./scripts/build.js",pkg:"pkg . --out-path releases",prepublishOnly:"npm run build",beta:"npm publish --tag=beta",canary:"npm publish --tag=canary",pub:"npm publish",eslint:"eslint . --ext .ts,.tsx","eslint:fix":"eslint . --ext .ts,.tsx --fix"},"cross-os":{prebuild:{darwin:"rm -rf node_modules && npm install --production false",linux:"rm -rf node_modules && npm install --production false",win32:"rmdir /s /q node_modules && npm install --production false"}},pkg:{scripts:["./lib/daemon/**/*.js"]},main:"./lib/index.js",bin:{s:"bin/s"},engines:{node:">=14.14.0"},devDependencies:{"@serverless-devs/core":"^0.1.67-beta.1","@serverless-devs/credential":"^0.0.10-beta.2","@serverless-devs/engine":"^0.1.5-beta.11","@serverless-devs/load-application":"^0.0.15-beta.7","@serverless-devs/load-component":"^0.0.8","@serverless-devs/logger":"^0.0.5","@serverless-devs/parse-spec":"^0.0.29-beta.4","@serverless-devs/registry":"^0.0.10","@serverless-devs/secret":"^0.0.2","@serverless-devs/utils":"^0.0.16","@types/fs-extra":"^11.0.4","@types/inquirer":"^9.0.7","@types/jest":"^29.5.8","@types/js-yaml":"^4.0.9","@types/lodash":"^4.14.201","@types/node":"^20.9.1","@types/semver":"^7.5.5","@typescript-eslint/eslint-plugin":"^7.3.1","@typescript-eslint/parser":"^7.3.1",ajv:"^8.17.1",axios:"^1.6.2",boxen:"^7.1.1",chalk:"^5.3.0",commander:"^11.1.0","cross-os":"^1.5.0",dotenv:"^16.3.1","dotenv-expand":"^10.0.0",esbuild:"^0.19.12",eslint:"^8.57.0","eslint-plugin-prettier":"^5.1.3","fs-extra":"^11.1.1","global-agent":"^3.0.0",inquirer:"^9.2.12","inquirer-autocomplete-prompt":"^3.0.1",jest:"^29.7.0","js-yaml":"^4.1.0","latest-version":"^7.0.0",leven:"^4.0.0",lodash:"^4.17.21",pkg:"^5.8.1",prettier:"^3.1.0",prettyjson:"^1.2.5",rimraf:"^5.0.5",semver:"^7.5.4","semver-diff":"^4.0.0","strip-ansi":"^7.1.0","table-layout":"^3.0.2","ts-jest":"^29.1.1","ts-node":"^10.9.1",typescript:"^5.2.2"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"}}});var Y0,jR,IR,lwt,E3,fee,swt,t_n,awt,r_n,cwt,Yd,vv=vt(()=>{Y0=tt(dr());bn();ir();jR=tt(require("path")),IR=tt(ii());Jr();lwt=tt(dr()),E3=tt(Xt());mv();owt();fee=tt(dr()),swt=RR(),t_n=async(e,t={})=>{dt.unsilent();let{silent:r}=(0,lwt.parseArgv)(process.argv.slice(2)),n=jR.default.join((0,Y0.getRootHome)(),"logs",process.env.serverless_devs_traceid,"error.json");IR.default.ensureFileSync(n),IR.default.writeJSONSync(n,[],{spaces:2});let u=1;if((0,E3.isArray)(e))for(let i of e){awt(i,t);let o=(0,E3.get)(i,"exitCode");o&&(u=o)}else{awt(e,t);let i=(0,E3.get)(e,"exitCode");i&&(u=i)}fee.getGlobalConfig("log")!=="disable"&&(dt.write(" "),dt.write(ct.gray(`A complete log of this run can be found in: ${ct.underline(jR.default.join(fee.getRootHome(),"logs",process.env.serverless_devs_traceid))}`))),dt.write(" "),dt.write(ct.gray(XCe([{key:"Env:",value:`${swt.name}: ${swt.version}, ${process.platform}-${process.arch} node-${process.version}`},{key:"Logs:",value:ct.underline(jR.default.join((0,Y0.getRootHome)(),"logs",process.env.serverless_devs_traceid))},{key:"Feedback:",value:ct.cyan.underline("https://github.com/Serverless-Devs/Serverless-Devs/issues")}]))),r&&dt.silent(),process.exitCode=u},awt=(e,t={})=>{Gc("report.js",{argv:process.argv.slice(2),userAgent:(0,Y0.getUserAgent)(),...t,type:(0,E3.get)(e,"trackerType"),message:e.message}),r_n(e),dt.write(" ");let r=e;if(r.CODE===Y0.DevsError.CODE){let i=r.prefix?[`${ct.red("\u2716")} ${r.prefix}`,"===================="]:[];i.push(ct.red("Error Message:"),ct.red((0,Y0.isDebugMode)()?r.stack:r.message)),r.tips&&i.push(`
339
+ `)}},kR=JCe});var RR=j((Rzu,e_n)=>{e_n.exports={name:"@serverless-devs/s",version:"3.1.4-2f4ff585",description:"Serverless devs tool, serverless developer tool, supports Alibaba cloud, AWS, azure, baidu cloud, Huawei cloud, Google cloud and Tencent cloud.",homepage:"https://www.serverless-devs.com",keywords:["serverless","alibaba","tencent","azure","baidu","huawei","google","function","faas","serverless-devs"],publishConfig:{access:"public",registry:"https://registry.npmjs.org"},license:"Apache 2.0",repository:{type:"git",url:"https://github.com/Serverless-Devs/Serverless-Devs"},bugs:{url:"https://github.com/Serverless-Devs/Serverless-Devs/issues"},scripts:{start:"npm run watch",test:"jest --testTimeout 10000","test:watch":"jest --testTimeout 10000 --watchAll",format:"prettier --write src/ __tests__/**/*.test.ts",watch:"npm run build -- --watch",prebuild:"cross-os prebuild",build:"node ./scripts/build.js","build:ci":"node ./scripts/build.js",pkg:"pkg . --out-path releases",prepublishOnly:"npm run build",beta:"npm publish --tag=beta",canary:"npm publish --tag=canary",pub:"npm publish",eslint:"eslint . --ext .ts,.tsx","eslint:fix":"eslint . --ext .ts,.tsx --fix"},"cross-os":{prebuild:{darwin:"rm -rf node_modules && npm install --production false",linux:"rm -rf node_modules && npm install --production false",win32:"rmdir /s /q node_modules && npm install --production false"}},pkg:{scripts:["./lib/daemon/**/*.js"]},main:"./lib/index.js",bin:{s:"bin/s"},engines:{node:">=14.14.0"},devDependencies:{"@serverless-devs/core":"^0.1.67-beta.1","@serverless-devs/credential":"^0.0.10-beta.2","@serverless-devs/engine":"^0.1.5-beta.12","@serverless-devs/load-application":"^0.0.15-beta.8","@serverless-devs/load-component":"^0.0.9-beta.1","@serverless-devs/logger":"^0.0.5","@serverless-devs/parse-spec":"^0.0.29-beta.4","@serverless-devs/registry":"^0.0.10","@serverless-devs/secret":"^0.0.2","@serverless-devs/utils":"^0.0.16","@types/fs-extra":"^11.0.4","@types/inquirer":"^9.0.7","@types/jest":"^29.5.8","@types/js-yaml":"^4.0.9","@types/lodash":"^4.14.201","@types/node":"^20.9.1","@types/semver":"^7.5.5","@typescript-eslint/eslint-plugin":"^7.3.1","@typescript-eslint/parser":"^7.3.1",ajv:"^8.17.1",axios:"^1.6.2",boxen:"^7.1.1",chalk:"^5.3.0",commander:"^11.1.0","cross-os":"^1.5.0",dotenv:"^16.3.1","dotenv-expand":"^10.0.0",esbuild:"^0.19.12",eslint:"^8.57.0","eslint-plugin-prettier":"^5.1.3","fs-extra":"^11.1.1","global-agent":"^3.0.0",inquirer:"^9.2.12","inquirer-autocomplete-prompt":"^3.0.1",jest:"^29.7.0","js-yaml":"^4.1.0","latest-version":"^7.0.0",leven:"^4.0.0",lodash:"^4.17.21",pkg:"^5.8.1",prettier:"^3.1.0",prettyjson:"^1.2.5",rimraf:"^5.0.5",semver:"^7.5.4","semver-diff":"^4.0.0","strip-ansi":"^7.1.0","table-layout":"^3.0.2","ts-jest":"^29.1.1","ts-node":"^10.9.1",typescript:"^5.2.2"},"lint-staged":{"**/*.{js,jsx,ts}":"f2elint exec eslint"}}});var Y0,jR,IR,lwt,E3,fee,swt,t_n,awt,r_n,cwt,Yd,vv=vt(()=>{Y0=tt(dr());bn();ir();jR=tt(require("path")),IR=tt(ii());Jr();lwt=tt(dr()),E3=tt(Xt());mv();owt();fee=tt(dr()),swt=RR(),t_n=async(e,t={})=>{dt.unsilent();let{silent:r}=(0,lwt.parseArgv)(process.argv.slice(2)),n=jR.default.join((0,Y0.getRootHome)(),"logs",process.env.serverless_devs_traceid,"error.json");IR.default.ensureFileSync(n),IR.default.writeJSONSync(n,[],{spaces:2});let u=1;if((0,E3.isArray)(e))for(let i of e){awt(i,t);let o=(0,E3.get)(i,"exitCode");o&&(u=o)}else{awt(e,t);let i=(0,E3.get)(e,"exitCode");i&&(u=i)}fee.getGlobalConfig("log")!=="disable"&&(dt.write(" "),dt.write(ct.gray(`A complete log of this run can be found in: ${ct.underline(jR.default.join(fee.getRootHome(),"logs",process.env.serverless_devs_traceid))}`))),dt.write(" "),dt.write(ct.gray(XCe([{key:"Env:",value:`${swt.name}: ${swt.version}, ${process.platform}-${process.arch} node-${process.version}`},{key:"Logs:",value:ct.underline(jR.default.join((0,Y0.getRootHome)(),"logs",process.env.serverless_devs_traceid))},{key:"Feedback:",value:ct.cyan.underline("https://github.com/Serverless-Devs/Serverless-Devs/issues")}]))),r&&dt.silent(),process.exitCode=u},awt=(e,t={})=>{Gc("report.js",{argv:process.argv.slice(2),userAgent:(0,Y0.getUserAgent)(),...t,type:(0,E3.get)(e,"trackerType"),message:e.message}),r_n(e),dt.write(" ");let r=e;if(r.CODE===Y0.DevsError.CODE){let i=r.prefix?[`${ct.red("\u2716")} ${r.prefix}`,"===================="]:[];i.push(ct.red("Error Message:"),ct.red((0,Y0.isDebugMode)()?r.stack:r.message)),r.tips&&i.push(`
340
340
  \u{1F37C} Tips`,"====================",ct.yellow(`${r.tips}`)),dt.write(i.join(`
341
341
  `)),cwt(r.stack);return}let n=e,u=[ct.red("Error Message:"),ct.red((0,Y0.isDebugMode)()?n.stack:n.message)];dt.write(u.join(`
342
342
  `)),cwt(n.stack)},r_n=e=>{let t=u=>{let i=(0,E3.get)(u,"data");if(i)return i;let o=u;return o.CODE===Y0.DevsError.CODE?{prefix:o.prefix,message:o.message,exitCode:o.exitCode,tips:o.tips}:{message:o.message}},r=jR.default.join((0,Y0.getRootHome)(),"logs",process.env.serverless_devs_traceid,"error.json"),n=IR.default.readJSONSync(r);n.push(t(e)),IR.default.writeJSONSync(r,n,{spaces:2})},cwt=e=>{(0,Y0.isDebugMode)()||dt.debug(e)},Yd=t_n});function u_n(){let{version:e}=QCe.default.minVersion(n_n.engines.node);QCe.default.gte(process.versions.node,e)||(new kR(`Node.js version must be greater than or equal to ${e}`,`Your current Node.js version is ${process.versions.node}, please upgrade your Node.js version at ${ct.underline("https://nodejs.org/en")}.`),process.exit(1))}var QCe,n_n,pee,fwt=vt(()=>{vv();ir();QCe=tt(y3()),n_n=RR();pee=u_n});var pwt=j(hee=>{"use strict";Object.defineProperty(hee,"__esModule",{value:!0});hee.boolean=void 0;var i_n=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return["true","t","yes","y","on","1"].includes(e.trim().toLowerCase());case"[object Number]":return e.valueOf()===1;case"[object Boolean]":return e.valueOf();default:return!1}};hee.boolean=i_n});var hwt=j(dee=>{"use strict";Object.defineProperty(dee,"__esModule",{value:!0});dee.isBooleanable=void 0;var o_n=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return["true","t","yes","y","on","1","false","f","no","n","off","0"].includes(e.trim().toLowerCase());case"[object Number]":return[0,1].includes(e.valueOf());case"[object Boolean]":return!0;default:return!1}};dee.isBooleanable=o_n});var mee=j(mA=>{"use strict";Object.defineProperty(mA,"__esModule",{value:!0});mA.isBooleanable=mA.boolean=void 0;var s_n=pwt();Object.defineProperty(mA,"boolean",{enumerable:!0,get:function(){return s_n.boolean}});var a_n=hwt();Object.defineProperty(mA,"isBooleanable",{enumerable:!0,get:function(){return a_n.isBooleanable}})});var gee=j((Hzu,dwt)=>{dwt.exports=Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"});var ZCe=j((Kzu,gwt)=>{"use strict";var mwt=Object.prototype.toString;gwt.exports=function(t){var r=mwt.call(t),n=r==="[object Arguments]";return n||(n=r!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&mwt.call(t.callee)==="[object Function]"),n}});var Fwt=j((Yzu,Awt)=>{"use strict";var xwt;Object.keys||(LR=Object.prototype.hasOwnProperty,exe=Object.prototype.toString,vwt=ZCe(),txe=Object.prototype.propertyIsEnumerable,ywt=!txe.call({toString:null},"toString"),Dwt=txe.call(function(){},"prototype"),NR=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],vee=function(e){var t=e.constructor;return t&&t.prototype===e},Ewt={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},bwt=function(){if(typeof window>"u")return!1;for(var e in window)try{if(!Ewt["$"+e]&&LR.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{vee(window[e])}catch{return!0}}catch{return!0}return!1}(),Cwt=function(e){if(typeof window>"u"||!bwt)return vee(e);try{return vee(e)}catch{return!1}},xwt=function(t){var r=t!==null&&typeof t=="object",n=exe.call(t)==="[object Function]",u=vwt(t),i=r&&exe.call(t)==="[object String]",o=[];if(!r&&!n&&!u)throw new TypeError("Object.keys called on a non-object");var s=Dwt&&n;if(i&&t.length>0&&!LR.call(t,0))for(var a=0;a<t.length;++a)o.push(String(a));if(u&&t.length>0)for(var c=0;c<t.length;++c)o.push(String(c));else for(var l in t)!(s&&l==="prototype")&&LR.call(t,l)&&o.push(String(l));if(ywt)for(var f=Cwt(t),p=0;p<NR.length;++p)!(f&&NR[p]==="constructor")&&LR.call(t,NR[p])&&o.push(NR[p]);return o});var LR,exe,vwt,txe,ywt,Dwt,NR,vee,Ewt,bwt,Cwt;Awt.exports=xwt});var Swt=j((Jzu,wwt)=>{"use strict";var c_n=Array.prototype.slice,l_n=ZCe(),_wt=Object.keys,yee=_wt?function(t){return _wt(t)}:Fwt(),Bwt=Object.keys;yee.shim=function(){if(Object.keys){var t=function(){var r=Object.keys(arguments);return r&&r.length===arguments.length}(1,2);t||(Object.keys=function(n){return l_n(n)?Bwt(c_n.call(n)):Bwt(n)})}else Object.keys=yee;return Object.keys||yee};wwt.exports=yee});var Twt=j((Xzu,Owt)=>{"use strict";Owt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var u=42;t[r]=u;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var i=Object.getOwnPropertySymbols(t);if(i.length!==1||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==u||o.enumerable!==!0)return!1}return!0}});var Rwt=j((Qzu,kwt)=>{"use strict";var Pwt=typeof Symbol<"u"&&Symbol,f_n=Twt();kwt.exports=function(){return typeof Pwt!="function"||typeof Symbol!="function"||typeof Pwt("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:f_n()}});var Lwt=j((Zzu,Iwt)=>{"use strict";var jwt={foo:{}},p_n=Object;Iwt.exports=function(){return{__proto__:jwt}.foo===jwt.foo&&!({__proto__:null}instanceof p_n)}});var Mwt=j((eGu,qwt)=>{"use strict";var h_n="Function.prototype.bind called on incompatible ",d_n=Object.prototype.toString,m_n=Math.max,g_n="[object Function]",Nwt=function(t,r){for(var n=[],u=0;u<t.length;u+=1)n[u]=t[u];for(var i=0;i<r.length;i+=1)n[i+t.length]=r[i];return n},v_n=function(t,r){for(var n=[],u=r||0,i=0;u<t.length;u+=1,i+=1)n[i]=t[u];return n},y_n=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};qwt.exports=function(t){var r=this;if(typeof r!="function"||d_n.apply(r)!==g_n)throw new TypeError(h_n+r);for(var n=v_n(arguments,1),u,i=function(){if(this instanceof u){var l=r.apply(this,Nwt(n,arguments));return Object(l)===l?l:this}return r.apply(t,Nwt(n,arguments))},o=m_n(0,r.length-n.length),s=[],a=0;a<o;a++)s[a]="$"+a;if(u=Function("binder","return function ("+y_n(s,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var c=function(){};c.prototype=r.prototype,u.prototype=new c,c.prototype=null}return u}});var Dee=j((tGu,Uwt)=>{"use strict";var D_n=Mwt();Uwt.exports=Function.prototype.bind||D_n});var zwt=j((rGu,$wt)=>{"use strict";var E_n=Function.prototype.call,b_n=Object.prototype.hasOwnProperty,C_n=Dee();$wt.exports=C_n.call(E_n,b_n)});var EA=j((nGu,Kwt)=>{"use strict";var Yn,DA=SyntaxError,Hwt=Function,yA=TypeError,rxe=function(e){try{return Hwt('"use strict"; return ('+e+").constructor;")()}catch{}},b3=Object.getOwnPropertyDescriptor;if(b3)try{b3({},"")}catch{b3=null}var nxe=function(){throw new yA},x_n=b3?function(){try{return arguments.callee,nxe}catch{try{return b3(arguments,"callee").get}catch{return nxe}}}():nxe,gA=Rwt()(),A_n=Lwt()(),ua=Object.getPrototypeOf||(A_n?function(e){return e.__proto__}:null),vA={},F_n=typeof Uint8Array>"u"||!ua?Yn:ua(Uint8Array),C3={"%AggregateError%":typeof AggregateError>"u"?Yn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Yn:ArrayBuffer,"%ArrayIteratorPrototype%":gA&&ua?ua([][Symbol.iterator]()):Yn,"%AsyncFromSyncIteratorPrototype%":Yn,"%AsyncFunction%":vA,"%AsyncGenerator%":vA,"%AsyncGeneratorFunction%":vA,"%AsyncIteratorPrototype%":vA,"%Atomics%":typeof Atomics>"u"?Yn:Atomics,"%BigInt%":typeof BigInt>"u"?Yn:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Yn:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Yn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Yn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?Yn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Yn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Yn:FinalizationRegistry,"%Function%":Hwt,"%GeneratorFunction%":vA,"%Int8Array%":typeof Int8Array>"u"?Yn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Yn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Yn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":gA&&ua?ua(ua([][Symbol.iterator]())):Yn,"%JSON%":typeof JSON=="object"?JSON:Yn,"%Map%":typeof Map>"u"?Yn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!gA||!ua?Yn:ua(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Yn:Promise,"%Proxy%":typeof Proxy>"u"?Yn:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?Yn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Yn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!gA||!ua?Yn:ua(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Yn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":gA&&ua?ua(""[Symbol.iterator]()):Yn,"%Symbol%":gA?Symbol:Yn,"%SyntaxError%":DA,"%ThrowTypeError%":x_n,"%TypedArray%":F_n,"%TypeError%":yA,"%Uint8Array%":typeof Uint8Array>"u"?Yn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Yn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Yn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Yn:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?Yn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Yn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Yn:WeakSet};if(ua)try{null.error}catch(e){Gwt=ua(ua(e)),C3["%Error.prototype%"]=Gwt}var Gwt,__n=function e(t){var r;if(t==="%AsyncFunction%")r=rxe("async function () {}");else if(t==="%GeneratorFunction%")r=rxe("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=rxe("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var u=e("%AsyncGenerator%");u&&ua&&(r=ua(u.prototype))}return C3[t]=r,r},Wwt={"%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"]},qR=Dee(),Eee=zwt(),B_n=qR.call(Function.call,Array.prototype.concat),w_n=qR.call(Function.apply,Array.prototype.splice),Vwt=qR.call(Function.call,String.prototype.replace),bee=qR.call(Function.call,String.prototype.slice),S_n=qR.call(Function.call,RegExp.prototype.exec),O_n=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,T_n=/\\(\\)?/g,P_n=function(t){var r=bee(t,0,1),n=bee(t,-1);if(r==="%"&&n!=="%")throw new DA("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new DA("invalid intrinsic syntax, expected opening `%`");var u=[];return Vwt(t,O_n,function(i,o,s,a){u[u.length]=s?Vwt(a,T_n,"$1"):o||i}),u},k_n=function(t,r){var n=t,u;if(Eee(Wwt,n)&&(u=Wwt[n],n="%"+u[0]+"%"),Eee(C3,n)){var i=C3[n];if(i===vA&&(i=__n(n)),typeof i>"u"&&!r)throw new yA("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:u,name:n,value:i}}throw new DA("intrinsic "+t+" does not exist!")};Kwt.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new yA("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new yA('"allowMissing" argument must be a boolean');if(S_n(/^%?[^%]*%?$/,t)===null)throw new DA("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=P_n(t),u=n.length>0?n[0]:"",i=k_n("%"+u+"%",r),o=i.name,s=i.value,a=!1,c=i.alias;c&&(u=c[0],w_n(n,B_n([0,1],c)));for(var l=1,f=!0;l<n.length;l+=1){var p=n[l],h=bee(p,0,1),d=bee(p,-1);if((h==='"'||h==="'"||h==="`"||d==='"'||d==="'"||d==="`")&&h!==d)throw new DA("property names with quotes must have matching quotes");if((p==="constructor"||!f)&&(a=!0),u+="."+p,o="%"+u+"%",Eee(C3,o))s=C3[o];else if(s!=null){if(!(p in s)){if(!r)throw new yA("base intrinsic for "+t+" exists, but the property is not available.");return}if(b3&&l+1>=n.length){var m=b3(s,p);f=!!m,f&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[p]}else f=Eee(s,p),s=s[p];f&&!a&&(C3[o]=s)}}return s}});var Cee=j((uGu,Ywt)=>{"use strict";var R_n=EA(),uxe=R_n("%Object.defineProperty%",!0),ixe=function(){if(uxe)try{return uxe({},"a",{value:1}),!0}catch{return!1}return!1};ixe.hasArrayLengthDefineBug=function(){if(!ixe())return null;try{return uxe([],"length",{value:1}).length!==1}catch{return!0}};Ywt.exports=ixe});var oxe=j((iGu,Jwt)=>{"use strict";var j_n=EA(),xee=j_n("%Object.getOwnPropertyDescriptor%",!0);if(xee)try{xee([],"length")}catch{xee=null}Jwt.exports=xee});var axe=j((oGu,Qwt)=>{"use strict";var I_n=Cee()(),sxe=EA(),MR=I_n&&sxe("%Object.defineProperty%",!0);if(MR)try{MR({},"a",{value:1})}catch{MR=!1}var L_n=sxe("%SyntaxError%"),bA=sxe("%TypeError%"),Xwt=oxe();Qwt.exports=function(t,r,n){if(!t||typeof t!="object"&&typeof t!="function")throw new bA("`obj` must be an object or a function`");if(typeof r!="string"&&typeof r!="symbol")throw new bA("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new bA("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new bA("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new bA("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new bA("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,o=arguments.length>5?arguments[5]:null,s=arguments.length>6?arguments[6]:!1,a=!!Xwt&&Xwt(t,r);if(MR)MR(t,r,{configurable:o===null&&a?a.configurable:!o,enumerable:u===null&&a?a.enumerable:!u,value:n,writable:i===null&&a?a.writable:!i});else if(s||!u&&!i&&!o)t[r]=n;else throw new L_n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var cxe=j((sGu,rSt)=>{"use strict";var N_n=Swt(),q_n=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",M_n=Object.prototype.toString,U_n=Array.prototype.concat,Zwt=axe(),$_n=function(e){return typeof e=="function"&&M_n.call(e)==="[object Function]"},eSt=Cee()(),z_n=function(e,t,r,n){if(t in e){if(n===!0){if(e[t]===r)return}else if(!$_n(n)||!n())return}eSt?Zwt(e,t,r,!0):Zwt(e,t,r)},tSt=function(e,t){var r=arguments.length>2?arguments[2]:{},n=N_n(t);q_n&&(n=U_n.call(n,Object.getOwnPropertySymbols(t)));for(var u=0;u<n.length;u+=1)z_n(e,n[u],t[n[u]],r[n[u]])};tSt.supportsDescriptors=!!eSt;rSt.exports=tSt});var lxe=j((aGu,nSt)=>{"use strict";nSt.exports=global});var fxe=j((cGu,uSt)=>{"use strict";var G_n=lxe();uSt.exports=function(){return typeof global!="object"||!global||global.Math!==Math||global.Array!==Array?G_n:global}});var oSt=j((lGu,iSt)=>{"use strict";var W_n=cxe(),V_n=fxe();iSt.exports=function(){var t=V_n();if(W_n.supportsDescriptors){var r=Object.getOwnPropertyDescriptor(t,"globalThis");(!r||r.configurable&&(r.enumerable||!r.writable||globalThis!==t))&&Object.defineProperty(t,"globalThis",{configurable:!0,enumerable:!1,value:t,writable:!0})}else(typeof globalThis!="object"||globalThis!==t)&&(t.globalThis=t);return t}});var pxe=j((fGu,cSt)=>{"use strict";var H_n=cxe(),K_n=lxe(),sSt=fxe(),Y_n=oSt(),J_n=sSt(),aSt=function(){return J_n};H_n(aSt,{getPolyfill:sSt,implementation:K_n,shim:Y_n});cSt.exports=aSt});var pSt=j((hxe,fSt)=>{hxe=fSt.exports=X_n;hxe.getSerialize=lSt;function X_n(e,t,r,n){return JSON.stringify(e,lSt(t,n),r)}function lSt(e,t){var r=[],n=[];return t==null&&(t=function(u,i){return r[0]===i?"[Circular ~]":"[Circular ~."+n.slice(0,r.indexOf(i)).join(".")+"]"}),function(u,i){if(r.length>0){var o=r.indexOf(this);~o?r.splice(o+1):r.push(this),~o?n.splice(o,1/0,u):n.push(u),~r.indexOf(i)&&(i=t.call(this,u,i))}else r.push(i);return e==null?i:e.call(this,u,i)}}});var hSt=j(Aee=>{(function(){"use strict";var e={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function t(o){return n(i(o),arguments)}function r(o,s){return t.apply(null,[o].concat(s||[]))}function n(o,s){var a=1,c=o.length,l,f="",p,h,d,m,v,D,g,y;for(p=0;p<c;p++)if(typeof o[p]=="string")f+=o[p];else if(typeof o[p]=="object"){if(d=o[p],d.keys)for(l=s[a],h=0;h<d.keys.length;h++){if(l==null)throw new Error(t('[sprintf] Cannot access property "%s" of undefined value "%s"',d.keys[h],d.keys[h-1]));l=l[d.keys[h]]}else d.param_no?l=s[d.param_no]:l=s[a++];if(e.not_type.test(d.type)&&e.not_primitive.test(d.type)&&l instanceof Function&&(l=l()),e.numeric_arg.test(d.type)&&typeof l!="number"&&isNaN(l))throw new TypeError(t("[sprintf] expecting number but found %T",l));switch(e.number.test(d.type)&&(g=l>=0),d.type){case"b":l=parseInt(l,10).toString(2);break;case"c":l=String.fromCharCode(parseInt(l,10));break;case"d":case"i":l=parseInt(l,10);break;case"j":l=JSON.stringify(l,null,d.width?parseInt(d.width):0);break;case"e":l=d.precision?parseFloat(l).toExponential(d.precision):parseFloat(l).toExponential();break;case"f":l=d.precision?parseFloat(l).toFixed(d.precision):parseFloat(l);break;case"g":l=d.precision?String(Number(l.toPrecision(d.precision))):parseFloat(l);break;case"o":l=(parseInt(l,10)>>>0).toString(8);break;case"s":l=String(l),l=d.precision?l.substring(0,d.precision):l;break;case"t":l=String(!!l),l=d.precision?l.substring(0,d.precision):l;break;case"T":l=Object.prototype.toString.call(l).slice(8,-1).toLowerCase(),l=d.precision?l.substring(0,d.precision):l;break;case"u":l=parseInt(l,10)>>>0;break;case"v":l=l.valueOf(),l=d.precision?l.substring(0,d.precision):l;break;case"x":l=(parseInt(l,10)>>>0).toString(16);break;case"X":l=(parseInt(l,10)>>>0).toString(16).toUpperCase();break}e.json.test(d.type)?f+=l:(e.number.test(d.type)&&(!g||d.sign)?(y=g?"+":"-",l=l.toString().replace(e.sign,"")):y="",v=d.pad_char?d.pad_char==="0"?"0":d.pad_char.charAt(1):" ",D=d.width-(y+l).length,m=d.width&&D>0?v.repeat(D):"",f+=d.align?y+l+m:v==="0"?y+m+l:m+y+l)}return f}var u=Object.create(null);function i(o){if(u[o])return u[o];for(var s=o,a,c=[],l=0;s;){if((a=e.text.exec(s))!==null)c.push(a[0]);else if((a=e.modulo.exec(s))!==null)c.push("%");else if((a=e.placeholder.exec(s))!==null){if(a[2]){l|=1;var f=[],p=a[2],h=[];if((h=e.key.exec(p))!==null)for(f.push(h[1]);(p=p.substring(h[0].length))!=="";)if((h=e.key_access.exec(p))!==null)f.push(h[1]);else if((h=e.index_access.exec(p))!==null)f.push(h[1]);else throw new SyntaxError("[sprintf] failed to parse named argument key");else throw new SyntaxError("[sprintf] failed to parse named argument key");a[2]=f}else l|=2;if(l===3)throw new Error("[sprintf] mixing positional and named placeholders is not (yet) supported");c.push({placeholder:a[0],param_no:a[1],keys:a[2],sign:a[3],pad_char:a[4],align:a[5],width:a[6],precision:a[7],type:a[8]})}else throw new SyntaxError("[sprintf] unexpected placeholder");s=s.substring(a[0].length)}return u[o]=c}typeof Aee<"u"&&(Aee.sprintf=t,Aee.vsprintf=r),typeof window<"u"&&(window.sprintf=t,window.vsprintf=r,typeof define=="function"&&define.amd&&define(function(){return{sprintf:t,vsprintf:r}}))})()});var dxe=j(Fee=>{"use strict";Object.defineProperty(Fee,"__esModule",{value:!0});Fee.logLevels=void 0;var Q_n={debug:20,error:50,fatal:60,info:30,trace:10,warn:40};Fee.logLevels=Q_n});var gSt=j(Bee=>{"use strict";Object.defineProperty(Bee,"__esModule",{value:!0});Bee.default=void 0;var Z_n=yxe(gee()),eBn=yxe(pxe()),tBn=yxe(pSt()),mxe=hSt(),dSt=dxe();function yxe(e){return e&&e.__esModule?e:{default:e}}function gxe(){return gxe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gxe.apply(this,arguments)}function mSt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(e,u).enumerable})),r.push.apply(r,n)}return r}function Mf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mSt(Object(r),!0).forEach(function(n){rBn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mSt(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rBn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var nBn=(0,eBn.default)(),UR;Z_n.default&&(UR=require("domain"));var uBn=()=>{if(!UR)return{};let e=[],t=process.domain;if(!t||!t.parentDomain)return{};for(;t&&t.parentDomain;)t=t.parentDomain,t.roarr&&t.roarr.context&&e.push(t.roarr.context);let r={};for(let n of e)r=Mf(Mf({},r),n);return r},_ee=()=>{if(!UR)return{};let e=process.domain;if(e&&e.roarr&&e.roarr.context)return e.roarr.context;if(!e||!e.parentDomain)return{};for(;e&&e.parentDomain;)if(e=e.parentDomain,e.roarr&&e.roarr.context)return e.roarr.context;return{}},vxe=(e,t)=>{let r=(n,u,i,o,s,a,c,l,f,p)=>{let h=Date.now(),d=nBn.ROARR.sequence++,m,v;if(typeof n=="string"){m=Mf(Mf({},_ee()),t||{});let D=gxe({},{a:n,b:u,c:i,d:o,e:s,f:a,g:c,h:l,i:f,k:p});v=Object.keys(D).map(E=>D[E]).reduce((E,b)=>E+=typeof b>"u"?0:1,0)===1?(0,mxe.sprintf)("%s",n):(0,mxe.sprintf)(n,u,i,o,s,a,c,l,f,p)}else{if(typeof u!="string")throw new TypeError("Message must be a string.");m=JSON.parse((0,tBn.default)(Mf(Mf(Mf({},_ee()),t||{}),n))),v=(0,mxe.sprintf)(u,i,o,s,a,c,l,f,p)}e({context:m,message:v,sequence:d,time:h,version:"1.0.0"})};r.child=n=>typeof n=="function"?vxe(u=>{if(typeof n!="function")throw new TypeError("Unexpected state.");e(n(u))},t):vxe(e,Mf(Mf(Mf({},_ee()),t),n)),r.getContext=()=>Mf(Mf({},_ee()),t||{}),r.adopt=async(n,u)=>{if(!UR)return n();let i=UR.create();return i.run(()=>(i.roarr={context:Mf(Mf({},uBn()),u)},n()))};for(let n of Object.keys(dSt.logLevels))r[n]=(u,i,o,s,a,c,l,f,p,h)=>r.child({logLevel:dSt.logLevels[n]})(u,i,o,s,a,c,l,f,p,h);return r},iBn=vxe;Bee.default=iBn});var DSt=j(wee=>{"use strict";Object.defineProperty(wee,"__esModule",{value:!0});wee.default=void 0;var vSt=dxe(),ySt=(e,t)=>{let r=(n,u,i,o,s,a,c,l,f,p)=>{};r.adopt=async n=>n(),r.child=n=>ySt(e,t),r.getContext=()=>({});for(let n of Object.keys(vSt.logLevels))r[n]=(u,i,o,s,a,c,l,f,p,h)=>r.child({logLevel:vSt.logLevels[n]})(u,i,o,s,a,c,l,f,p,h);return r},oBn=ySt;wee.default=oBn});var bSt=j((gGu,ESt)=>{ESt.exports=function(t,r){for(var n=t.split("."),u=r.split("."),i=0;i<3;i++){var o=Number(n[i]),s=Number(u[i]);if(o>s)return 1;if(s>o)return-1;if(!isNaN(o)&&isNaN(s))return 1;if(isNaN(o)&&!isNaN(s))return-1}return 0}});var CSt=j((vGu,sBn)=>{sBn.exports={author:{email:"gajus@gajus.com",name:"Gajus Kuizinas",url:"http://gajus.com"},ava:{babel:{compileAsTests:["test/helpers/**/*"]},files:["test/roarr/**/*"],require:["@babel/register"]},dependencies:{boolean:"^3.0.1","detect-node":"^2.0.4",globalthis:"^1.0.1","json-stringify-safe":"^5.0.1","semver-compare":"^1.0.0","sprintf-js":"^1.1.2"},description:"JSON logger for Node.js and browser.",devDependencies:{"@ava/babel":"^1.0.1","@babel/cli":"^7.11.6","@babel/core":"^7.11.6","@babel/node":"^7.10.5","@babel/plugin-transform-flow-strip-types":"^7.10.4","@babel/preset-env":"^7.11.5","@babel/register":"^7.11.5",ava:"^3.12.1","babel-plugin-istanbul":"^6.0.0","babel-plugin-transform-export-default-name":"^2.0.4",coveralls:"^3.1.0","domain-parent":"^1.0.0",eslint:"^7.9.0","eslint-config-canonical":"^24.1.1","flow-bin":"^0.133.0","flow-copy-source":"^2.0.9",gitdown:"^3.1.3",husky:"^4.3.0",nyc:"^15.1.0","semantic-release":"^17.1.1"},engines:{node:">=8.0"},husky:{hooks:{"pre-commit":"npm run lint && npm run test && npm run build","pre-push":"gitdown ./.README/README.md --output-file ./README.md --check"}},keywords:["log","logger","json"],main:"./dist/log.js",name:"roarr",nyc:{include:["src/**/*.js"],instrument:!1,reporter:["text-lcov"],require:["@babel/register"],sourceMap:!1},license:"BSD-3-Clause",repository:{type:"git",url:"git@github.com:gajus/roarr.git"},scripts:{build:"rm -fr ./dist && NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps && flow-copy-source src dist","create-readme":"gitdown ./.README/README.md --output-file ./README.md",dev:"NODE_ENV=production babel ./src --out-dir ./dist --copy-files --source-maps --watch",lint:"eslint ./src ./test && flow",test:"NODE_ENV=test ava --serial --verbose"},version:"2.15.4"}});var xSt=j(See=>{"use strict";Object.defineProperty(See,"__esModule",{value:!0});See.default=void 0;var aBn=e=>({write:t=>{e.write(t+`
@@ -970,7 +970,7 @@ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.pus
970
970
  `)+r,u=n+1,n=e.indexOf(`
971
971
  `,u)}while(n!==-1);return i+=e.substr(u),i};CVt.exports={stringReplaceAll:miu,stringEncaseCRLFWithFirstIndex:giu}});var wVt=j((gQu,BVt)=>{"use strict";var viu=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,AVt=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,yiu=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Diu=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,Eiu=new Map([["n",`
972
972
  `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function _Vt(e){let t=e[0]==="u",r=e[1]==="{";return t&&!r&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):t&&r?String.fromCodePoint(parseInt(e.slice(2,-1),16)):Eiu.get(e)||e}function biu(e,t){let r=[],n=t.trim().split(/\s*,\s*/g),u;for(let i of n){let o=Number(i);if(!Number.isNaN(o))r.push(o);else if(u=i.match(yiu))r.push(u[2].replace(Diu,(s,a,c)=>a?_Vt(a):c));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`)}return r}function Ciu(e){AVt.lastIndex=0;let t=[],r;for(;(r=AVt.exec(e))!==null;){let n=r[1];if(r[2]){let u=biu(n,r[2]);t.push([n].concat(u))}else t.push([n])}return t}function FVt(e,t){let r={};for(let u of t)for(let i of u.styles)r[i[0]]=u.inverse?null:i.slice(1);let n=e;for(let[u,i]of Object.entries(r))if(Array.isArray(i)){if(!(u in n))throw new Error(`Unknown Chalk style: ${u}`);n=i.length>0?n[u](...i):n[u]}return n}BVt.exports=(e,t)=>{let r=[],n=[],u=[];if(t.replace(viu,(i,o,s,a,c,l)=>{if(o)u.push(_Vt(o));else if(a){let f=u.join("");u=[],n.push(r.length===0?f:FVt(e,r)(f)),r.push({inverse:s,styles:Ciu(a)})}else if(c){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");n.push(FVt(e,r)(u.join(""))),u=[],r.pop()}else u.push(l)}),n.push(u.join("")),r.length>0){let i=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return n.join("")}});var Gl=j((vQu,RVt)=>{"use strict";var cN=_Te(),{stdout:wTe,stderr:STe}=R0(),{stringReplaceAll:xiu,stringEncaseCRLFWithFirstIndex:Aiu}=xVt(),{isArray:xie}=Array,OVt=["ansi","ansi","ansi256","ansi16m"],o_=Object.create(null),Fiu=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let r=wTe?wTe.level:0;e.level=t.level===void 0?r:t.level},OTe=class{constructor(t){return TVt(t)}},TVt=e=>{let t={};return Fiu(t,e),t.template=(...r)=>kVt(t.template,...r),Object.setPrototypeOf(t,Aie.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=OTe,t.template};function Aie(e){return TVt(e)}for(let[e,t]of Object.entries(cN))o_[e]={get(){let r=Fie(this,TTe(t.open,t.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:r}),r}};o_.visible={get(){let e=Fie(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var PVt=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of PVt)o_[e]={get(){let{level:t}=this;return function(...r){let n=TTe(cN.color[OVt[t]][e](...r),cN.color.close,this._styler);return Fie(this,n,this._isEmpty)}}};for(let e of PVt){let t="bg"+e[0].toUpperCase()+e.slice(1);o_[t]={get(){let{level:r}=this;return function(...n){let u=TTe(cN.bgColor[OVt[r]][e](...n),cN.bgColor.close,this._styler);return Fie(this,u,this._isEmpty)}}}}var _iu=Object.defineProperties(()=>{},{...o_,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),TTe=(e,t,r)=>{let n,u;return r===void 0?(n=e,u=t):(n=r.openAll+e,u=t+r.closeAll),{open:e,close:t,openAll:n,closeAll:u,parent:r}},Fie=(e,t,r)=>{let n=(...u)=>xie(u[0])&&xie(u[0].raw)?SVt(n,kVt(n,...u)):SVt(n,u.length===1?""+u[0]:u.join(" "));return Object.setPrototypeOf(n,_iu),n._generator=e,n._styler=t,n._isEmpty=r,n},SVt=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let r=e._styler;if(r===void 0)return t;let{openAll:n,closeAll:u}=r;if(t.indexOf("\x1B")!==-1)for(;r!==void 0;)t=xiu(t,r.close,r.open),r=r.parent;let i=t.indexOf(`
973
- `);return i!==-1&&(t=Aiu(t,u,n,i)),n+t+u},BTe,kVt=(e,...t)=>{let[r]=t;if(!xie(r)||!xie(r.raw))return t.join(" ");let n=t.slice(1),u=[r.raw[0]];for(let i=1;i<r.length;i++)u.push(String(n[i-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[i]));return BTe===void 0&&(BTe=wVt()),BTe(e,u.join(""))};Object.defineProperties(Aie.prototype,o_);var _ie=Aie();_ie.supportsColor=wTe;_ie.stderr=Aie({level:STe?STe.level:0});_ie.stderr.supportsColor=STe;RVt.exports=_ie});var C7=j(wo=>{"use strict";var Biu=wo&&wo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wo,"__esModule",{value:!0});wo.DIPPER_VARIABLES_PATH=wo.REGX=wo.DEFAULT_MAGIC_ACCESS=wo.CONFIGURE_LATER=wo.REGISTRY=wo.GITHUB_REGISTRY=wo.DEVSAPP=wo.RANDOM_PATTERN=wo.gray=void 0;var wiu=Biu(Gl()),Siu=dr();wo.gray=wiu.default.hex("#8c8d91");wo.RANDOM_PATTERN="${default-suffix}";wo.DEVSAPP="devsapp";wo.GITHUB_REGISTRY="https://api.github.com/repos";wo.REGISTRY={V2:"https://registry.devsapp.cn/simple",V3:"https://api.devsapp.cn/v3",CUSTOM_URL:(0,Siu.getGlobalConfig)("registry")};wo.CONFIGURE_LATER="configure_later";wo.DEFAULT_MAGIC_ACCESS="{{ access }}";wo.REGX=/\${([\w\W]*?)}/;wo.DIPPER_VARIABLES_PATH="variable.yaml"});var IVt=j(s_=>{"use strict";Object.defineProperty(s_,"__esModule",{value:!0});s_.getInputs=void 0;var jVt=Xt(),Oiu=C7(),Tiu=(e={},t={},r)=>{if((0,jVt.isEmpty)(e))return;r.defaults.rules=(0,jVt.filter)(r.defaults.rules,u=>String(u.test)!==String(Oiu.REGX));function n(u){let i=u.constructor===Array?[]:{};if(typeof u=="object")for(var o in u){let s=u[o];typeof s=="object"?i[o]=n(s):i[o]=typeof s=="string"?r.compile(s)(t):s}else i=u;return i}return n(e)};s_.getInputs=Tiu;s_.default=s_.getInputs});var RTe=j(ho=>{"use strict";var LVt=ho&&ho.__awaiter||function(e,t,r,n){function u(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(l){try{c(n.next(l))}catch(f){o(f)}}function a(l){try{c(n.throw(l))}catch(f){o(f)}}function c(l){l.done?i(l.value):u(l.value).then(s,a)}c((n=n.apply(e,t||[])).next())})},PTe=ho&&ho.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ho,"__esModule",{value:!0});ho.getSecretManager=ho.getDefaultValue=ho.getAllCredential=ho.randomId=ho.getUrlWithVersion=ho.getUrlWithLatest=ho.tryfun=ho.getInputs=void 0;var kTe=Xt(),x7=C7(),Piu=PTe(xl()),kiu=PTe($O()),Riu=IVt();Object.defineProperty(ho,"getInputs",{enumerable:!0,get:function(){return PTe(Riu).default}});var jiu=(e,...t)=>LVt(void 0,void 0,void 0,function*(){try{return yield e(...t)}catch{}});ho.tryfun=jiu;var Iiu=e=>x7.REGISTRY.CUSTOM_URL===x7.GITHUB_REGISTRY?(0,kTe.split)(e,"/").length===1?`${x7.REGISTRY.CUSTOM_URL}/devsapp/${e}`:`${x7.REGISTRY.CUSTOM_URL}/${e}`:`${x7.REGISTRY.V3}/packages/${e}/release/latest`;ho.getUrlWithLatest=Iiu;var Liu=(e,t)=>`${x7.REGISTRY.V3}/packages/${e}/release/tags/${t}`;ho.getUrlWithVersion=Liu;var Niu=()=>Math.random().toString(36).substring(2,6);ho.randomId=Niu;var qiu=({logger:e})=>LVt(void 0,void 0,void 0,function*(){let t=new Piu.default({logger:e});return(0,kTe.keys)(t.getAll())});ho.getAllCredential=qiu;var Miu=e=>{if(typeof e=="string")return(0,kTe.replace)(e,x7.RANDOM_PATTERN,(0,ho.randomId)())};ho.getDefaultValue=Miu;var Uiu=()=>kiu.default.getInstance();ho.getSecretManager=Uiu});var qVt=j((bQu,NVt)=>{"use strict";var $iu=/[|\\{}()[\]^$+*?.]/g;NVt.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace($iu,"\\$&")}});var Sie=j((CQu,wie)=>{"use strict";var ziu=qVt(),{platform:MVt}=process,gm={tick:"\u2714",cross:"\u2716",star:"\u2605",square:"\u2587",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",play:"\u25B6",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",circleQuestionMark:"?\u20DD",bullet:"\u25CF",dot:"\u2024",line:"\u2500",ellipsis:"\u2026",pointer:"\u276F",pointerSmall:"\u203A",info:"\u2139",warning:"\u26A0",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",heart:"\u2665",nodejs:"\u2B22",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",questionMarkPrefix:"?\u20DD",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneSeventh:"\u2150",oneEighth:"\u215B",oneNinth:"\u2151",oneTenth:"\u2152",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E"},UVt={tick:"\u221A",cross:"\xD7",star:"*",square:"\u2588",squareSmall:"[ ]",squareSmallFilled:"[\u2588]",play:"\u25BA",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",circleQuestionMark:"(?)",bullet:"*",dot:".",line:"\u2500",ellipsis:"...",pointer:">",pointerSmall:"\xBB",info:"i",warning:"\u203C",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",heart:gm.heart,nodejs:"\u2666",arrowUp:gm.arrowUp,arrowDown:gm.arrowDown,arrowLeft:gm.arrowLeft,arrowRight:gm.arrowRight,radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",questionMarkPrefix:"\uFF1F",oneHalf:"1/2",oneThird:"1/3",oneQuarter:"1/4",oneFifth:"1/5",oneSixth:"1/6",oneSeventh:"1/7",oneEighth:"1/8",oneNinth:"1/9",oneTenth:"1/10",twoThirds:"2/3",twoFifths:"2/5",threeQuarters:"3/4",threeFifths:"3/5",threeEighths:"3/8",fourFifths:"4/5",fiveSixths:"5/6",fiveEighths:"5/8",sevenEighths:"7/8"};MVt==="linux"&&(gm.questionMarkPrefix="?");var Bie=MVt==="win32"?UVt:gm,Giu=e=>{if(Bie===gm)return e;for(let[t,r]of Object.entries(gm))r!==Bie[t]&&(e=e.replace(new RegExp(ziu(r),"g"),Bie[t]));return e};wie.exports=Object.assign(Giu,Bie);wie.exports.main=gm;wie.exports.windows=UVt});var lN=j((xQu,$Vt)=>{"use strict";var Wiu=Gl(),Viu=Sie(),Oie=class{constructor(t){this.type="separator",this.line=Wiu.dim(t||new Array(15).join(Viu.line))}toString(){return this.line}};Oie.exclude=function(e){return e.type!=="separator"};$Vt.exports=Oie});var ITe=j((AQu,zVt)=>{"use strict";var Hiu=zW(),Kiu=require("readline"),jTe=class{constructor(t){this.rl||(this.rl=Kiu.createInterface(Yiu(t))),this.rl.resume(),this.onForceClose=this.onForceClose.bind(this),process.on("exit",this.onForceClose),this.rl.on("SIGINT",this.onForceClose)}onForceClose(){this.close(),process.kill(process.pid,"SIGINT"),console.log("")}close(){this.rl.removeListener("SIGINT",this.onForceClose),process.removeListener("exit",this.onForceClose),this.rl.output.unmute(),this.activePrompt&&typeof this.activePrompt.close=="function"&&this.activePrompt.close(),this.rl.output.end(),this.rl.pause(),this.rl.close()}};function Yiu(e={}){e.skipTTYChecks=e.skipTTYChecks===void 0?!0:e.skipTTYChecks;let t=e.input||process.stdin;if(!e.skipTTYChecks&&!t.isTTY){let u=new Error("Prompts can not be meaningfully rendered in non-TTY environments");throw u.isTtyError=!0,u}let r=new Hiu;return r.pipe(e.output||process.stdout),{terminal:!0,...e,input:t,output:r}}zVt.exports=jTe});var LTe=j(a_=>{"use strict";var fN=WW();a_.left=function(e,t){e.output.write(fN.cursorBackward(t))};a_.right=function(e,t){e.output.write(fN.cursorForward(t))};a_.up=function(e,t){e.output.write(fN.cursorUp(t))};a_.down=function(e,t){e.output.write(fN.cursorDown(t))};a_.clearLine=function(e,t){e.output.write(fN.eraseLines(t))}});var WVt=j((_Qu,GVt)=>{"use strict";var Jiu=$W(),Xiu=ITe(),NTe=LTe(),qTe=class extends Xiu{constructor(t={}){super(t),this.log=Jiu(this.writeLog.bind(this)),this.bottomBar=t.bottomBar||"",this.render()}render(){return this.write(this.bottomBar),this}clean(){return NTe.clearLine(this.rl,this.bottomBar.split(`
973
+ `);return i!==-1&&(t=Aiu(t,u,n,i)),n+t+u},BTe,kVt=(e,...t)=>{let[r]=t;if(!xie(r)||!xie(r.raw))return t.join(" ");let n=t.slice(1),u=[r.raw[0]];for(let i=1;i<r.length;i++)u.push(String(n[i-1]).replace(/[{}\\]/g,"\\$&"),String(r.raw[i]));return BTe===void 0&&(BTe=wVt()),BTe(e,u.join(""))};Object.defineProperties(Aie.prototype,o_);var _ie=Aie();_ie.supportsColor=wTe;_ie.stderr=Aie({level:STe?STe.level:0});_ie.stderr.supportsColor=STe;RVt.exports=_ie});var C7=j(wo=>{"use strict";var Biu=wo&&wo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wo,"__esModule",{value:!0});wo.DIPPER_VARIABLES_PATH=wo.REGX=wo.DEFAULT_MAGIC_ACCESS=wo.CONFIGURE_LATER=wo.REGISTRY=wo.GITHUB_REGISTRY=wo.DEVSAPP=wo.RANDOM_PATTERN=wo.gray=void 0;var wiu=Biu(Gl()),Siu=dr();wo.gray=wiu.default.hex("#8c8d91");wo.RANDOM_PATTERN="${default-suffix}";wo.DEVSAPP="devsapp";wo.GITHUB_REGISTRY="https://api.github.com/repos";wo.REGISTRY={V2:"https://registry.devsapp.cn/simple",V3:"https://api.devsapp.cn/v3",CUSTOM_URL:(0,Siu.getGlobalConfig)("registry")};wo.CONFIGURE_LATER="configure_later";wo.DEFAULT_MAGIC_ACCESS="{{ access }}";wo.REGX=/\${([\w\W]*?)}/;wo.DIPPER_VARIABLES_PATH="variable.yaml"});var IVt=j(s_=>{"use strict";Object.defineProperty(s_,"__esModule",{value:!0});s_.getInputs=void 0;var jVt=Xt(),Oiu=C7(),Tiu=(e={},t={},r)=>{if((0,jVt.isEmpty)(e))return;r.defaults.rules=(0,jVt.filter)(r.defaults.rules,u=>String(u.test)!==String(Oiu.REGX));function n(u){let i=u.constructor===Array?[]:{};if(typeof u=="object")for(var o in u){let s=u[o];typeof s=="object"?i[o]=n(s):i[o]=typeof s=="string"?r.compile(s)(t):s}else i=u;return i}return n(e)};s_.getInputs=Tiu;s_.default=s_.getInputs});var RTe=j(ho=>{"use strict";var LVt=ho&&ho.__awaiter||function(e,t,r,n){function u(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(l){try{c(n.next(l))}catch(f){o(f)}}function a(l){try{c(n.throw(l))}catch(f){o(f)}}function c(l){l.done?i(l.value):u(l.value).then(s,a)}c((n=n.apply(e,t||[])).next())})},PTe=ho&&ho.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ho,"__esModule",{value:!0});ho.getSecretManager=ho.getDefaultValue=ho.getAllCredential=ho.randomId=ho.getUrlWithVersion=ho.getUrlWithLatest=ho.tryfun=ho.getInputs=void 0;var kTe=Xt(),x7=C7(),Piu=PTe(xl()),kiu=PTe($O()),Riu=IVt();Object.defineProperty(ho,"getInputs",{enumerable:!0,get:function(){return PTe(Riu).default}});var jiu=(e,...t)=>LVt(void 0,void 0,void 0,function*(){try{return yield e(...t)}catch{}});ho.tryfun=jiu;var Iiu=e=>x7.REGISTRY.CUSTOM_URL===x7.GITHUB_REGISTRY?(0,kTe.split)(e,"/").length===1?`${x7.REGISTRY.CUSTOM_URL}/devsapp/${e}`:`${x7.REGISTRY.CUSTOM_URL}/${e}`:`${x7.REGISTRY.V3}/packages/${e}/release/latest`;ho.getUrlWithLatest=Iiu;var Liu=(e,t)=>`${x7.REGISTRY.V3}/packages/${e}/release/tags/${encodeURIComponent(t)}`;ho.getUrlWithVersion=Liu;var Niu=()=>Math.random().toString(36).substring(2,6);ho.randomId=Niu;var qiu=({logger:e})=>LVt(void 0,void 0,void 0,function*(){let t=new Piu.default({logger:e});return(0,kTe.keys)(t.getAll())});ho.getAllCredential=qiu;var Miu=e=>{if(typeof e=="string")return(0,kTe.replace)(e,x7.RANDOM_PATTERN,(0,ho.randomId)())};ho.getDefaultValue=Miu;var Uiu=()=>kiu.default.getInstance();ho.getSecretManager=Uiu});var qVt=j((bQu,NVt)=>{"use strict";var $iu=/[|\\{}()[\]^$+*?.]/g;NVt.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace($iu,"\\$&")}});var Sie=j((CQu,wie)=>{"use strict";var ziu=qVt(),{platform:MVt}=process,gm={tick:"\u2714",cross:"\u2716",star:"\u2605",square:"\u2587",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",play:"\u25B6",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",circleQuestionMark:"?\u20DD",bullet:"\u25CF",dot:"\u2024",line:"\u2500",ellipsis:"\u2026",pointer:"\u276F",pointerSmall:"\u203A",info:"\u2139",warning:"\u26A0",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",heart:"\u2665",nodejs:"\u2B22",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",questionMarkPrefix:"?\u20DD",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneSeventh:"\u2150",oneEighth:"\u215B",oneNinth:"\u2151",oneTenth:"\u2152",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E"},UVt={tick:"\u221A",cross:"\xD7",star:"*",square:"\u2588",squareSmall:"[ ]",squareSmallFilled:"[\u2588]",play:"\u25BA",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",circleQuestionMark:"(?)",bullet:"*",dot:".",line:"\u2500",ellipsis:"...",pointer:">",pointerSmall:"\xBB",info:"i",warning:"\u203C",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",heart:gm.heart,nodejs:"\u2666",arrowUp:gm.arrowUp,arrowDown:gm.arrowDown,arrowLeft:gm.arrowLeft,arrowRight:gm.arrowRight,radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",questionMarkPrefix:"\uFF1F",oneHalf:"1/2",oneThird:"1/3",oneQuarter:"1/4",oneFifth:"1/5",oneSixth:"1/6",oneSeventh:"1/7",oneEighth:"1/8",oneNinth:"1/9",oneTenth:"1/10",twoThirds:"2/3",twoFifths:"2/5",threeQuarters:"3/4",threeFifths:"3/5",threeEighths:"3/8",fourFifths:"4/5",fiveSixths:"5/6",fiveEighths:"5/8",sevenEighths:"7/8"};MVt==="linux"&&(gm.questionMarkPrefix="?");var Bie=MVt==="win32"?UVt:gm,Giu=e=>{if(Bie===gm)return e;for(let[t,r]of Object.entries(gm))r!==Bie[t]&&(e=e.replace(new RegExp(ziu(r),"g"),Bie[t]));return e};wie.exports=Object.assign(Giu,Bie);wie.exports.main=gm;wie.exports.windows=UVt});var lN=j((xQu,$Vt)=>{"use strict";var Wiu=Gl(),Viu=Sie(),Oie=class{constructor(t){this.type="separator",this.line=Wiu.dim(t||new Array(15).join(Viu.line))}toString(){return this.line}};Oie.exclude=function(e){return e.type!=="separator"};$Vt.exports=Oie});var ITe=j((AQu,zVt)=>{"use strict";var Hiu=zW(),Kiu=require("readline"),jTe=class{constructor(t){this.rl||(this.rl=Kiu.createInterface(Yiu(t))),this.rl.resume(),this.onForceClose=this.onForceClose.bind(this),process.on("exit",this.onForceClose),this.rl.on("SIGINT",this.onForceClose)}onForceClose(){this.close(),process.kill(process.pid,"SIGINT"),console.log("")}close(){this.rl.removeListener("SIGINT",this.onForceClose),process.removeListener("exit",this.onForceClose),this.rl.output.unmute(),this.activePrompt&&typeof this.activePrompt.close=="function"&&this.activePrompt.close(),this.rl.output.end(),this.rl.pause(),this.rl.close()}};function Yiu(e={}){e.skipTTYChecks=e.skipTTYChecks===void 0?!0:e.skipTTYChecks;let t=e.input||process.stdin;if(!e.skipTTYChecks&&!t.isTTY){let u=new Error("Prompts can not be meaningfully rendered in non-TTY environments");throw u.isTtyError=!0,u}let r=new Hiu;return r.pipe(e.output||process.stdout),{terminal:!0,...e,input:t,output:r}}zVt.exports=jTe});var LTe=j(a_=>{"use strict";var fN=WW();a_.left=function(e,t){e.output.write(fN.cursorBackward(t))};a_.right=function(e,t){e.output.write(fN.cursorForward(t))};a_.up=function(e,t){e.output.write(fN.cursorUp(t))};a_.down=function(e,t){e.output.write(fN.cursorDown(t))};a_.clearLine=function(e,t){e.output.write(fN.eraseLines(t))}});var WVt=j((_Qu,GVt)=>{"use strict";var Jiu=$W(),Xiu=ITe(),NTe=LTe(),qTe=class extends Xiu{constructor(t={}){super(t),this.log=Jiu(this.writeLog.bind(this)),this.bottomBar=t.bottomBar||"",this.render()}render(){return this.write(this.bottomBar),this}clean(){return NTe.clearLine(this.rl,this.bottomBar.split(`
974
974
  `).length),this}updateBottomBar(t){return NTe.clearLine(this.rl,1),this.rl.output.unmute(),this.clean(),this.bottomBar=t,this.render(),this.rl.output.mute(),this}writeLog(t){return this.rl.output.unmute(),this.clean(),this.rl.output.write(this.enforceLF(t.toString())),this.render(),this.rl.output.mute(),this}enforceLF(t){return t.match(/[\r\n]$/)?t:t+`
975
975
  `}write(t){let r=t.split(/\n/);this.height=r.length,this.rl.setPrompt(r[r.length-1]),this.rl.output.rows===0&&this.rl.output.columns===0&&NTe.left(this.rl,t.length+this.rl.line.length),this.rl.output.write(t)}};GVt.exports=qTe});var pN=j((BQu,KVt)=>{"use strict";function VVt(e){return!!e&&(typeof e=="object"||typeof e=="function")&&typeof e.then=="function"}var HVt=KVt.exports=function(e,t){return t=t||function(){},function(){var r=arguments,n=new Promise(function(u,i){var o=!1;let s=function(d){o&&console.warn("Run-async promise already resolved."),o=!0,u(d)};var a=!1;let c=function(d){a&&console.warn("Run-async promise already rejected."),a=!0,i(d)};var l=!1,f=!1,p=!1,h=e.apply({async:function(){return p?(console.warn("Run-async async() called outside a valid run-async context, callback will be ignored."),function(){}):(f&&console.warn(`Run-async wrapped function (async) returned a promise.
976
976
  Calls to async() callback can have unexpected results.`),l=!0,function(d,m){d?c(d):s(m)})}},Array.prototype.slice.call(r));l?VVt(h)&&console.warn("Run-async wrapped function (sync) returned a promise but async() callback must be executed to resolve."):VVt(h)?(f=!0,h.then(s,c)):s(h),p=!0});return n.then(t.bind(null,null),t),n}};HVt.cb=function(e,t){return HVt(function(){var r=Array.prototype.slice.call(arguments);return r.length===e.length-1&&r.push(this.async()),e.apply(this,r)},t)}});var JVt=j(YVt=>{"use strict";var{from:Qiu,of:Ziu}=zo(),eou=pN();YVt.fetchAsyncQuestionProperty=function(e,t,r){return typeof e[t]!="function"?Ziu(e):Qiu(eou(e[t])(r).then(n=>(e[t]=n,e)))}});var ZVt=j((SQu,QVt)=>{"use strict";var hN={isPlainObject:HW(),get:aT(),set:eV()},{defer:Tie,empty:XVt,from:MTe,of:UTe}=zo(),{concatMap:A7,filter:tou,publish:rou,reduce:nou}=Eo(),uou=pN(),$Te=JVt(),iou=ITe(),zTe=class extends iou{constructor(t,r){super(r),this.prompts=t}run(t,r){hN.isPlainObject(r)?this.answers={...r}:this.answers={},hN.isPlainObject(t)&&(t=Object.values(t).every(u=>hN.isPlainObject(u)&&u.name===void 0)?Object.entries(t).map(([u,i])=>({name:u,...i})):[t]);let n=Array.isArray(t)?MTe(t):t;return this.process=n.pipe(A7(this.processQuestion.bind(this)),rou()),this.process.connect(),this.process.pipe(nou((u,i)=>(hN.set(u,i.name,i.answer),u),this.answers)).toPromise(Promise).then(this.onCompletion.bind(this),this.onError.bind(this))}onCompletion(){return this.close(),this.answers}onError(t){return this.close(),Promise.reject(t)}processQuestion(t){return t={...t},Tie(()=>UTe(t).pipe(A7(this.setDefaultType.bind(this)),A7(this.filterIfRunnable.bind(this)),A7(()=>$Te.fetchAsyncQuestionProperty(t,"message",this.answers)),A7(()=>$Te.fetchAsyncQuestionProperty(t,"default",this.answers)),A7(()=>$Te.fetchAsyncQuestionProperty(t,"choices",this.answers)),A7(this.fetchAnswer.bind(this))))}fetchAnswer(t){let r=this.prompts[t.type];return this.activePrompt=new r(t,this.rl,this.answers),Tie(()=>MTe(this.activePrompt.run().then(n=>({name:t.name,answer:n}))))}setDefaultType(t){return this.prompts[t.type]||(t.type="input"),Tie(()=>UTe(t))}filterIfRunnable(t){if(t.askAnswered!==!0&&hN.get(this.answers,t.name)!==void 0||t.when===!1)return XVt();if(typeof t.when!="function")return UTe(t);let{answers:r}=this;return Tie(()=>MTe(uou(t.when)(r).then(n=>{if(n)return t})).pipe(tou(n=>n!=null)))}};QVt.exports=zTe});var rHt=j((OQu,tHt)=>{"use strict";tHt.exports=class eHt{constructor(t,r){if(t instanceof eHt||t.type==="separator")return t;typeof t=="string"||typeof t=="number"?(this.name=String(t),this.value=t,this.short=String(t)):Object.assign(this,t,{name:t.name||t.value,value:"value"in t?t.value:t.name,short:t.short||t.name||t.value}),typeof t.disabled=="function"?this.disabled=t.disabled(r):this.disabled=t.disabled}}});var sHt=j((PQu,oHt)=>{"use strict";var nHt=require("assert"),uHt={filter:VY(),map:HY()},Pie=lN(),iHt=rHt();oHt.exports=class{constructor(t,r){this.choices=t.map(n=>n.type==="separator"?(n instanceof Pie||(n=new Pie(n.line)),n):new iHt(n,r)),this.realChoices=this.choices.filter(Pie.exclude).filter(n=>!n.disabled),Object.defineProperty(this,"length",{get(){return this.choices.length},set(n){this.choices.length=n}}),Object.defineProperty(this,"realLength",{get(){return this.realChoices.length},set(){throw new Error("Cannot set `realLength` of a Choices collection")}})}getChoice(t){return nHt(typeof t=="number"),this.realChoices[t]}get(t){return nHt(typeof t=="number"),this.choices[t]}where(t){return uHt.filter(this.realChoices,t)}pluck(t){return uHt.map(this.realChoices,t)}indexOf(...t){return this.choices.indexOf(...t)}forEach(...t){return this.choices.forEach(...t)}filter(...t){return this.choices.filter(...t)}reduce(...t){return this.choices.reduce(...t)}find(t){return this.choices.find(t)}push(...t){let r=t.map(n=>new iHt(n));return this.choices.push(...r),this.realChoices=this.choices.filter(Pie.exclude).filter(n=>!n.disabled),this.choices}}});var lHt=j((aHt,cHt)=>{"use strict";aHt=cHt.exports=sou;function oou(e){let t={defaultWidth:0,output:process.stdout,tty:require("tty")};return e?(Object.keys(t).forEach(function(r){e[r]||(e[r]=t[r])}),e):t}function sou(e){let t=oou(e);if(t.output.getWindowSize)return t.output.getWindowSize()[0]||t.defaultWidth;if(t.tty.getWindowSize)return t.tty.getWindowSize()[1]||t.defaultWidth;if(t.output.columns)return t.output.columns;if(process.env.CLI_WIDTH){let r=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(r)&&r!==0)return r}return t.defaultWidth}});var kie=j((kQu,fHt)=>{"use strict";var aou=SC();fHt.exports=e=>typeof e=="string"?e.replace(aou(),""):e});var hHt=j((RQu,pHt)=>{"use strict";pHt.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var WTe=j((jQu,GTe)=>{"use strict";var cou=kie(),lou=kT(),fou=hHt(),dHt=e=>{if(typeof e!="string"||e.length===0||(e=cou(e),e.length===0))return 0;e=e.replace(fou()," ");let t=0;for(let r=0;r<e.length;r++){let n=e.codePointAt(r);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&r++,t+=lou(n)?2:1)}return t};GTe.exports=dHt;GTe.exports.default=dHt});var vHt=j((IQu,gHt)=>{"use strict";var dN=WTe(),pou=kie(),hou=_Te(),HTe=new Set(["\x1B","\x9B"]),dou=39,mHt=e=>`${HTe.values().next().value}[${e}m`,mou=e=>e.split(" ").map(t=>dN(t)),VTe=(e,t,r)=>{let n=[...t],u=!1,i=dN(pou(e[e.length-1]));for(let[o,s]of n.entries()){let a=dN(s);if(i+a<=r?e[e.length-1]+=s:(e.push(s),i=0),HTe.has(s))u=!0;else if(u&&s==="m"){u=!1;continue}u||(i+=a,i===r&&o<n.length-1&&(e.push(""),i=0))}!i&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},gou=e=>{let t=e.split(" "),r=t.length;for(;r>0&&!(dN(t[r-1])>0);)r--;return r===t.length?e:t.slice(0,r).join(" ")+t.slice(r).join("")},vou=(e,t,r={})=>{if(r.trim!==!1&&e.trim()==="")return"";let n="",u="",i,o=mou(e),s=[""];for(let[a,c]of e.split(" ").entries()){r.trim!==!1&&(s[s.length-1]=s[s.length-1].trimLeft());let l=dN(s[s.length-1]);if(a!==0&&(l>=t&&(r.wordWrap===!1||r.trim===!1)&&(s.push(""),l=0),(l>0||r.trim===!1)&&(s[s.length-1]+=" ",l++)),r.hard&&o[a]>t){let f=t-l,p=1+Math.floor((o[a]-f-1)/t);Math.floor((o[a]-1)/t)<p&&s.push(""),VTe(s,c,t);continue}if(l+o[a]>t&&l>0&&o[a]>0){if(r.wordWrap===!1&&l<t){VTe(s,c,t);continue}s.push("")}if(l+o[a]>t&&r.wordWrap===!1){VTe(s,c,t);continue}s[s.length-1]+=c}r.trim!==!1&&(s=s.map(gou)),n=s.join(`