@sap/generator-fiori
Version:
Create an SAPUI5 application using SAP Fiori elements or a freestyle approach
2 lines • 61.1 kB
JavaScript
const __esmImportMetaUrl = require('node:url').pathToFileURL(__filename).href;
"use strict";var Cr=Object.defineProperty;var n=(e,t)=>Cr(e,"name",{value:t,configurable:!0});var p=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var lt=p((Vn,ne)=>{var Dr=(function(){"use strict";function e(a,o,l,d){var _;typeof o=="object"&&(l=o.depth,d=o.prototype,_=o.filter,o=o.circular);var b=[],E=[],m=typeof Buffer<"u";typeof o>"u"&&(o=!0),typeof l>"u"&&(l=1/0);function v(c,D){if(c===null)return null;if(D==0)return c;var y,V;if(typeof c!="object")return c;if(e.__isArray(c))y=[];else if(e.__isRegExp(c))y=new RegExp(c.source,f(c)),c.lastIndex&&(y.lastIndex=c.lastIndex);else if(e.__isDate(c))y=new Date(c.getTime());else{if(m&&Buffer.isBuffer(c))return Buffer.allocUnsafe?y=Buffer.allocUnsafe(c.length):y=new Buffer(c.length),c.copy(y),y;typeof d>"u"?(V=Object.getPrototypeOf(c),y=Object.create(V)):(y=Object.create(d),V=d)}if(o){var ot=b.indexOf(c);if(ot!=-1)return E[ot];b.push(c),E.push(y)}for(var me in c){var Te;V&&(Te=Object.getOwnPropertyDescriptor(V,me)),!(Te&&Te.set==null)&&(y[me]=v(c[me],D-1))}return y}return n(v,"_clone"),v(a,l)}n(e,"clone"),e.clonePrototype=n(function(o){if(o===null)return null;var l=n(function(){},"c");return l.prototype=o,new l},"clonePrototype");function t(a){return Object.prototype.toString.call(a)}n(t,"__objToStr"),e.__objToStr=t;function r(a){return typeof a=="object"&&t(a)==="[object Date]"}n(r,"__isDate"),e.__isDate=r;function i(a){return typeof a=="object"&&t(a)==="[object Array]"}n(i,"__isArray"),e.__isArray=i;function s(a){return typeof a=="object"&&t(a)==="[object RegExp]"}n(s,"__isRegExp"),e.__isRegExp=s;function f(a){var o="";return a.global&&(o+="g"),a.ignoreCase&&(o+="i"),a.multiline&&(o+="m"),o}return n(f,"__getRegExpFlags"),e.__getRegExpFlags=f,e})();typeof ne=="object"&&ne.exports&&(ne.exports=Dr)});var ht=p((Kn,ut)=>{var Br=lt();ut.exports=function(e,t){return e=e||{},Object.keys(t).forEach(function(r){typeof e[r]>"u"&&(e[r]=Br(t[r]))}),e}});var ct=p((Xn,dt)=>{dt.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]});var bt=p((Jn,Ae)=>{"use strict";var Or=ht(),Y=ct(),gt={nul:0,control:0};Ae.exports=n(function(t){return _t(t,gt)},"wcwidth");Ae.exports.config=function(e){return e=Or(e||{},gt),n(function(r){return _t(r,e)},"wcwidth")};function _t(e,t){if(typeof e!="string")return pt(e,t);for(var r=0,i=0;i<e.length;i++){var s=pt(e.charCodeAt(i),t);if(s<0)return-1;r+=s}return r}n(_t,"wcswidth");function pt(e,t){return e===0?t.nul:e<32||e>=127&&e<160?t.control:Mr(e)?0:1+(e>=4352&&(e<=4447||e==9001||e==9002||e>=11904&&e<=42191&&e!=12351||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||e>=131072&&e<=196605||e>=196608&&e<=262141))}n(pt,"wcwidth");function Mr(e){var t=0,r=Y.length-1,i;if(e<Y[0][0]||e>Y[r][1])return!1;for(;r>=t;)if(i=Math.floor((t+r)/2),e>Y[i][1])t=i+1;else if(e<Y[i][0])r=i-1;else return!0;return!1}n(Mr,"bisearch")});var yt=p((Zn,xt)=>{"use strict";xt.exports=()=>process.platform!=="win32"?!0:!!process.env.CI||!!process.env.WT_SESSION||process.env.TERM_PROGRAM==="vscode"||process.env.TERM==="xterm-256color"||process.env.TERM==="alacritty"});var Ce=p((zn,wt)=>{wt.exports=require("stream")});var Rt=p((es,St)=>{"use strict";function Et(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}n(Et,"ownKeys");function Lr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Et(Object(r),!0).forEach(function(i){Nr(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Et(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}n(Lr,"_objectSpread");function Nr(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}n(Nr,"_defineProperty");function Pr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(Pr,"_classCallCheck");function vt(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n(vt,"_defineProperties");function qr(e,t,r){return t&&vt(e.prototype,t),r&&vt(e,r),e}n(qr,"_createClass");var Ir=require("buffer"),se=Ir.Buffer,Fr=require("util"),De=Fr.inspect,jr=De&&De.custom||"inspect";function kr(e,t,r){se.prototype.copy.call(e,t,r)}n(kr,"copyBuffer");St.exports=(function(){function e(){Pr(this,e),this.head=null,this.tail=null,this.length=0}return n(e,"BufferList"),qr(e,[{key:"push",value:n(function(r){var i={data:r,next:null};this.length>0?this.tail.next=i:this.head=i,this.tail=i,++this.length},"push")},{key:"unshift",value:n(function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},"unshift")},{key:"shift",value:n(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}},"shift")},{key:"clear",value:n(function(){this.head=this.tail=null,this.length=0},"clear")},{key:"join",value:n(function(r){if(this.length===0)return"";for(var i=this.head,s=""+i.data;i=i.next;)s+=r+i.data;return s},"join")},{key:"concat",value:n(function(r){if(this.length===0)return se.alloc(0);for(var i=se.allocUnsafe(r>>>0),s=this.head,f=0;s;)kr(s.data,i,f),f+=s.data.length,s=s.next;return i},"concat")},{key:"consume",value:n(function(r,i){var s;return r<this.head.data.length?(s=this.head.data.slice(0,r),this.head.data=this.head.data.slice(r)):r===this.head.data.length?s=this.shift():s=i?this._getString(r):this._getBuffer(r),s},"consume")},{key:"first",value:n(function(){return this.head.data},"first")},{key:"_getString",value:n(function(r){var i=this.head,s=1,f=i.data;for(r-=f.length;i=i.next;){var a=i.data,o=r>a.length?a.length:r;if(o===a.length?f+=a:f+=a.slice(0,r),r-=o,r===0){o===a.length?(++s,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(o));break}++s}return this.length-=s,f},"_getString")},{key:"_getBuffer",value:n(function(r){var i=se.allocUnsafe(r),s=this.head,f=1;for(s.data.copy(i),r-=s.data.length;s=s.next;){var a=s.data,o=r>a.length?a.length:r;if(a.copy(i,i.length-r,0,o),r-=o,r===0){o===a.length?(++f,s.next?this.head=s.next:this.head=this.tail=null):(this.head=s,s.data=a.slice(o));break}++f}return this.length-=f,i},"_getBuffer")},{key:jr,value:n(function(r,i){return De(this,Lr({},i,{depth:0,customInspect:!1}))},"value")}]),e})()});var Oe=p((rs,Tt)=>{"use strict";function Ur(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Be,this,e)):process.nextTick(Be,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(f){!t&&f?r._writableState?r._writableState.errorEmitted?process.nextTick(fe,r):(r._writableState.errorEmitted=!0,process.nextTick(mt,r,f)):process.nextTick(mt,r,f):t?(process.nextTick(fe,r),t(f)):process.nextTick(fe,r)}),this)}n(Ur,"destroy");function mt(e,t){Be(e,t),fe(e)}n(mt,"emitErrorAndCloseNT");function fe(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}n(fe,"emitCloseNT");function Wr(){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)}n(Wr,"undestroy");function Be(e,t){e.emit("error",t)}n(Be,"emitErrorNT");function Hr(e,t){var r=e._readableState,i=e._writableState;r&&r.autoDestroy||i&&i.autoDestroy?e.destroy(t):e.emit("error",t)}n(Hr,"errorOrDestroy");Tt.exports={destroy:Ur,undestroy:Wr,errorOrDestroy:Hr}});var O=p((ns,Dt)=>{"use strict";var Ct={};function S(e,t,r){r||(r=Error);function i(f,a,o){return typeof t=="string"?t:t(f,a,o)}n(i,"getMessage");class s extends r{static{n(this,"NodeError")}constructor(a,o,l){super(i(a,o,l))}}s.prototype.name=r.name,s.prototype.code=e,Ct[e]=s}n(S,"createErrorType");function At(e,t){if(Array.isArray(e)){let r=e.length;return e=e.map(i=>String(i)),r>2?`one of ${t} ${e.slice(0,r-1).join(", ")}, or `+e[r-1]:r===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}else return`of ${t} ${String(e)}`}n(At,"oneOf");function $r(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}n($r,"startsWith");function Gr(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}n(Gr,"endsWith");function Vr(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}n(Vr,"includes");S("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);S("ERR_INVALID_ARG_TYPE",function(e,t,r){let i;typeof t=="string"&&$r(t,"not ")?(i="must not be",t=t.replace(/^not /,"")):i="must be";let s;if(Gr(e," argument"))s=`The ${e} ${i} ${At(t,"type")}`;else{let f=Vr(e,".")?"property":"argument";s=`The "${e}" ${f} ${i} ${At(t,"type")}`}return s+=`. Received type ${typeof r}`,s},TypeError);S("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");S("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});S("ERR_STREAM_PREMATURE_CLOSE","Premature close");S("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});S("ERR_MULTIPLE_CALLBACK","Callback called multiple times");S("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");S("ERR_STREAM_WRITE_AFTER_END","write after end");S("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);S("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);S("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Dt.exports.codes=Ct});var Me=p((fs,Bt)=>{"use strict";var Yr=O().codes.ERR_INVALID_OPT_VALUE;function Kr(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}n(Kr,"highWaterMarkFrom");function Xr(e,t,r,i){var s=Kr(t,i,r);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var f=i?r:"highWaterMark";throw new Yr(f,s)}return Math.floor(s)}return e.objectMode?16:16*1024}n(Xr,"getHighWaterMark");Bt.exports={getHighWaterMark:Xr}});var Ot=p((os,Le)=>{typeof Object.create=="function"?Le.exports=n(function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))},"inherits"):Le.exports=n(function(t,r){if(r){t.super_=r;var i=n(function(){},"TempCtor");i.prototype=r.prototype,t.prototype=new i,t.prototype.constructor=t}},"inherits")});var q=p((us,Pe)=>{try{if(Ne=require("util"),typeof Ne.inherits!="function")throw"";Pe.exports=Ne.inherits}catch{Pe.exports=Ot()}var Ne});var Lt=p((hs,Mt)=>{Mt.exports=require("util").deprecate});var Fe=p((ds,jt)=>{"use strict";jt.exports=x;function Pt(e){var t=this;this.next=null,this.entry=null,this.finish=function(){vi(t,e)}}n(Pt,"CorkedRequest");var W;x.WritableState=X;var Jr={deprecate:Lt()},qt=Ce(),oe=require("buffer").Buffer,Qr=global.Uint8Array||function(){};function Zr(e){return oe.from(e)}n(Zr,"_uint8ArrayToBuffer");function zr(e){return oe.isBuffer(e)||e instanceof Qr}n(zr,"_isUint8Array");var Ie=Oe(),ei=Me(),ti=ei.getHighWaterMark,M=O().codes,ri=M.ERR_INVALID_ARG_TYPE,ii=M.ERR_METHOD_NOT_IMPLEMENTED,ni=M.ERR_MULTIPLE_CALLBACK,si=M.ERR_STREAM_CANNOT_PIPE,fi=M.ERR_STREAM_DESTROYED,ai=M.ERR_STREAM_NULL_VALUES,oi=M.ERR_STREAM_WRITE_AFTER_END,li=M.ERR_UNKNOWN_ENCODING,H=Ie.errorOrDestroy;q()(x,qt);function ui(){}n(ui,"nop");function X(e,t,r){W=W||I(),e=e||{},typeof r!="boolean"&&(r=t instanceof W),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=ti(this,e,"writableHighWaterMark",r),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var i=e.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(s){bi(t,s)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new Pt(this)}n(X,"WritableState");X.prototype.getBuffer=n(function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r},"getBuffer");(function(){try{Object.defineProperty(X.prototype,"buffer",{get:Jr.deprecate(n(function(){return this.getBuffer()},"writableStateBufferGetter"),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ae;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ae=Function.prototype[Symbol.hasInstance],Object.defineProperty(x,Symbol.hasInstance,{value:n(function(t){return ae.call(this,t)?!0:this!==x?!1:t&&t._writableState instanceof X},"value")})):ae=n(function(t){return t instanceof this},"realHasInstance");function x(e){W=W||I();var t=this instanceof W;if(!t&&!ae.call(x,this))return new x(e);this._writableState=new X(e,this,t),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)),qt.call(this)}n(x,"Writable");x.prototype.pipe=function(){H(this,new si)};function hi(e,t){var r=new oi;H(e,r),process.nextTick(t,r)}n(hi,"writeAfterEnd");function di(e,t,r,i){var s;return r===null?s=new ai:typeof r!="string"&&!t.objectMode&&(s=new ri("chunk",["string","Buffer"],r)),s?(H(e,s),process.nextTick(i,s),!1):!0}n(di,"validChunk");x.prototype.write=function(e,t,r){var i=this._writableState,s=!1,f=!i.objectMode&&zr(e);return f&&!oe.isBuffer(e)&&(e=Zr(e)),typeof t=="function"&&(r=t,t=null),f?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=ui),i.ending?hi(this,r):(f||di(this,i,e,r))&&(i.pendingcb++,s=pi(this,i,f,e,t,r)),s};x.prototype.cork=function(){this._writableState.corked++};x.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest&&It(this,e))};x.prototype.setDefaultEncoding=n(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 li(t);return this._writableState.defaultEncoding=t,this},"setDefaultEncoding");Object.defineProperty(x.prototype,"writableBuffer",{enumerable:!1,get:n(function(){return this._writableState&&this._writableState.getBuffer()},"get")});function ci(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=oe.from(t,r)),t}n(ci,"decodeChunk");Object.defineProperty(x.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function pi(e,t,r,i,s,f){if(!r){var a=ci(t,i,s);i!==a&&(r=!0,s="buffer",i=a)}var o=t.objectMode?1:i.length;t.length+=o;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var d=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:s,isBuf:r,callback:f,next:null},d?d.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else qe(e,t,!1,o,i,s,f);return l}n(pi,"writeOrBuffer");function qe(e,t,r,i,s,f,a){t.writelen=i,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new fi("write")):r?e._writev(s,t.onwrite):e._write(s,f,t.onwrite),t.sync=!1}n(qe,"doWrite");function gi(e,t,r,i,s){--t.pendingcb,r?(process.nextTick(s,i),process.nextTick(K,e,t),e._writableState.errorEmitted=!0,H(e,i)):(s(i),e._writableState.errorEmitted=!0,H(e,i),K(e,t))}n(gi,"onwriteError");function _i(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}n(_i,"onwriteStateUpdate");function bi(e,t){var r=e._writableState,i=r.sync,s=r.writecb;if(typeof s!="function")throw new ni;if(_i(r),t)gi(e,r,i,t,s);else{var f=Ft(r)||e.destroyed;!f&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&It(e,r),i?process.nextTick(Nt,e,r,f,s):Nt(e,r,f,s)}}n(bi,"onwrite");function Nt(e,t,r,i){r||xi(e,t),t.pendingcb--,i(),K(e,t)}n(Nt,"afterWrite");function xi(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}n(xi,"onwriteDrain");function It(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,s=new Array(i),f=t.corkedRequestsFree;f.entry=r;for(var a=0,o=!0;r;)s[a]=r,r.isBuf||(o=!1),r=r.next,a+=1;s.allBuffers=o,qe(e,t,!0,t.length,s,"",f.finish),t.pendingcb++,t.lastBufferedRequest=null,f.next?(t.corkedRequestsFree=f.next,f.next=null):t.corkedRequestsFree=new Pt(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,d=r.encoding,_=r.callback,b=t.objectMode?1:l.length;if(qe(e,t,!1,b,l,d,_),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}n(It,"clearBuffer");x.prototype._write=function(e,t,r){r(new ii("_write()"))};x.prototype._writev=null;x.prototype.end=function(e,t,r){var i=this._writableState;return typeof e=="function"?(r=e,e=null,t=null):typeof t=="function"&&(r=t,t=null),e!=null&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||Ei(this,i,r),this};Object.defineProperty(x.prototype,"writableLength",{enumerable:!1,get:n(function(){return this._writableState.length},"get")});function Ft(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}n(Ft,"needFinish");function yi(e,t){e._final(function(r){t.pendingcb--,r&&H(e,r),t.prefinished=!0,e.emit("prefinish"),K(e,t)})}n(yi,"callFinal");function wi(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"&&!t.destroyed?(t.pendingcb++,t.finalCalled=!0,process.nextTick(yi,e,t)):(t.prefinished=!0,e.emit("prefinish")))}n(wi,"prefinish");function K(e,t){var r=Ft(t);if(r&&(wi(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var i=e._readableState;(!i||i.autoDestroy&&i.endEmitted)&&e.destroy()}return r}n(K,"finishMaybe");function Ei(e,t,r){t.ending=!0,K(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}n(Ei,"endWritable");function vi(e,t,r){var i=e.entry;for(e.entry=null;i;){var s=i.callback;t.pendingcb--,s(r),i=i.next}t.corkedRequestsFree.next=e}n(vi,"onCorkedFinish");Object.defineProperty(x.prototype,"destroyed",{enumerable:!1,get:n(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:n(function(t){this._writableState&&(this._writableState.destroyed=t)},"set")});x.prototype.destroy=Ie.destroy;x.prototype._undestroy=Ie.undestroy;x.prototype._destroy=function(e,t){t(e)}});var I=p((ps,Ut)=>{"use strict";var Si=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Ut.exports=A;var kt=Ue(),ke=Fe();q()(A,kt);for(je=Si(ke.prototype),le=0;le<je.length;le++)ue=je[le],A.prototype[ue]||(A.prototype[ue]=ke.prototype[ue]);var je,ue,le;function A(e){if(!(this instanceof A))return new A(e);kt.call(this,e),ke.call(this,e),this.allowHalfOpen=!0,e&&(e.readable===!1&&(this.readable=!1),e.writable===!1&&(this.writable=!1),e.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",Ri)))}n(A,"Duplex");Object.defineProperty(A.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});Object.defineProperty(A.prototype,"writableBuffer",{enumerable:!1,get:n(function(){return this._writableState&&this._writableState.getBuffer()},"get")});Object.defineProperty(A.prototype,"writableLength",{enumerable:!1,get:n(function(){return this._writableState.length},"get")});function Ri(){this._writableState.ended||process.nextTick(mi,this)}n(Ri,"onend");function mi(e){e.end()}n(mi,"onEndNT");Object.defineProperty(A.prototype,"destroyed",{enumerable:!1,get:n(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:n(function(t){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=t,this._writableState.destroyed=t)},"set")})});var $t=p((We,Ht)=>{var he=require("buffer"),C=he.Buffer;function Wt(e,t){for(var r in e)t[r]=e[r]}n(Wt,"copyProps");C.from&&C.alloc&&C.allocUnsafe&&C.allocUnsafeSlow?Ht.exports=he:(Wt(he,We),We.Buffer=F);function F(e,t,r){return C(e,t,r)}n(F,"SafeBuffer");F.prototype=Object.create(C.prototype);Wt(C,F);F.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return C(e,t,r)};F.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=C(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};F.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return C(e)};F.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return he.SlowBuffer(e)}});var Ge=p(Vt=>{"use strict";var $e=$t().Buffer,Gt=$e.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 Ti(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}n(Ti,"_normalizeEncoding");function Ai(e){var t=Ti(e);if(typeof t!="string"&&($e.isEncoding===Gt||!Gt(e)))throw new Error("Unknown encoding: "+e);return t||e}n(Ai,"normalizeEncoding");Vt.StringDecoder=J;function J(e){this.encoding=Ai(e);var t;switch(this.encoding){case"utf16le":this.text=Li,this.end=Ni,t=4;break;case"utf8":this.fillLast=Bi,t=4;break;case"base64":this.text=Pi,this.end=qi,t=3;break;default:this.write=Ii,this.end=Fi;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=$e.allocUnsafe(t)}n(J,"StringDecoder");J.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||""};J.prototype.end=Mi;J.prototype.text=Oi;J.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 He(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}n(He,"utf8CheckByte");function Ci(e,t,r){var i=t.length-1;if(i<r)return 0;var s=He(t[i]);return s>=0?(s>0&&(e.lastNeed=s-1),s):--i<r||s===-2?0:(s=He(t[i]),s>=0?(s>0&&(e.lastNeed=s-2),s):--i<r||s===-2?0:(s=He(t[i]),s>=0?(s>0&&(s===2?s=0:e.lastNeed=s-3),s):0))}n(Ci,"utf8CheckIncomplete");function Di(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"}}n(Di,"utf8CheckExtraBytes");function Bi(e){var t=this.lastTotal-this.lastNeed,r=Di(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}n(Bi,"utf8FillLast");function Oi(e,t){var r=Ci(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var i=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",t,i)}n(Oi,"utf8Text");function Mi(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}n(Mi,"utf8End");function Li(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var i=r.charCodeAt(r.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],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)}n(Li,"utf16Text");function Ni(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}n(Ni,"utf16End");function Pi(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))}n(Pi,"base64Text");function qi(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}n(qi,"base64End");function Ii(e){return e.toString(this.encoding)}n(Ii,"simpleWrite");function Fi(e){return e&&e.length?this.write(e):""}n(Fi,"simpleEnd")});var de=p((ys,Xt)=>{"use strict";var Yt=O().codes.ERR_STREAM_PREMATURE_CLOSE;function ji(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];e.apply(this,i)}}}n(ji,"once");function ki(){}n(ki,"noop");function Ui(e){return e.setHeader&&typeof e.abort=="function"}n(Ui,"isRequest");function Kt(e,t,r){if(typeof t=="function")return Kt(e,null,t);t||(t={}),r=ji(r||ki);var i=t.readable||t.readable!==!1&&e.readable,s=t.writable||t.writable!==!1&&e.writable,f=n(function(){e.writable||o()},"onlegacyfinish"),a=e._writableState&&e._writableState.finished,o=n(function(){s=!1,a=!0,i||r.call(e)},"onfinish"),l=e._readableState&&e._readableState.endEmitted,d=n(function(){i=!1,l=!0,s||r.call(e)},"onend"),_=n(function(v){r.call(e,v)},"onerror"),b=n(function(){var v;if(i&&!l)return(!e._readableState||!e._readableState.ended)&&(v=new Yt),r.call(e,v);if(s&&!a)return(!e._writableState||!e._writableState.ended)&&(v=new Yt),r.call(e,v)},"onclose"),E=n(function(){e.req.on("finish",o)},"onrequest");return Ui(e)?(e.on("complete",o),e.on("abort",b),e.req?E():e.on("request",E)):s&&!e._writableState&&(e.on("end",f),e.on("close",f)),e.on("end",d),e.on("finish",o),t.error!==!1&&e.on("error",_),e.on("close",b),function(){e.removeListener("complete",o),e.removeListener("abort",b),e.removeListener("request",E),e.req&&e.req.removeListener("finish",o),e.removeListener("end",f),e.removeListener("close",f),e.removeListener("finish",o),e.removeListener("end",d),e.removeListener("error",_),e.removeListener("close",b)}}n(Kt,"eos");Xt.exports=Kt});var Qt=p((Es,Jt)=>{"use strict";var ce;function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}n(L,"_defineProperty");var Wi=de(),N=Symbol("lastResolve"),j=Symbol("lastReject"),Q=Symbol("error"),pe=Symbol("ended"),k=Symbol("lastPromise"),Ve=Symbol("handlePromise"),U=Symbol("stream");function P(e,t){return{value:e,done:t}}n(P,"createIterResult");function Hi(e){var t=e[N];if(t!==null){var r=e[U].read();r!==null&&(e[k]=null,e[N]=null,e[j]=null,t(P(r,!1)))}}n(Hi,"readAndResolve");function $i(e){process.nextTick(Hi,e)}n($i,"onReadable");function Gi(e,t){return function(r,i){e.then(function(){if(t[pe]){r(P(void 0,!0));return}t[Ve](r,i)},i)}}n(Gi,"wrapForNext");var Vi=Object.getPrototypeOf(function(){}),Yi=Object.setPrototypeOf((ce={get stream(){return this[U]},next:n(function(){var t=this,r=this[Q];if(r!==null)return Promise.reject(r);if(this[pe])return Promise.resolve(P(void 0,!0));if(this[U].destroyed)return new Promise(function(a,o){process.nextTick(function(){t[Q]?o(t[Q]):a(P(void 0,!0))})});var i=this[k],s;if(i)s=new Promise(Gi(i,this));else{var f=this[U].read();if(f!==null)return Promise.resolve(P(f,!1));s=new Promise(this[Ve])}return this[k]=s,s},"next")},L(ce,Symbol.asyncIterator,function(){return this}),L(ce,"return",n(function(){var t=this;return new Promise(function(r,i){t[U].destroy(null,function(s){if(s){i(s);return}r(P(void 0,!0))})})},"_return")),ce),Vi),Ki=n(function(t){var r,i=Object.create(Yi,(r={},L(r,U,{value:t,writable:!0}),L(r,N,{value:null,writable:!0}),L(r,j,{value:null,writable:!0}),L(r,Q,{value:null,writable:!0}),L(r,pe,{value:t._readableState.endEmitted,writable:!0}),L(r,Ve,{value:n(function(f,a){var o=i[U].read();o?(i[k]=null,i[N]=null,i[j]=null,f(P(o,!1))):(i[N]=f,i[j]=a)},"value"),writable:!0}),r));return i[k]=null,Wi(t,function(s){if(s&&s.code!=="ERR_STREAM_PREMATURE_CLOSE"){var f=i[j];f!==null&&(i[k]=null,i[N]=null,i[j]=null,f(s)),i[Q]=s;return}var a=i[N];a!==null&&(i[k]=null,i[N]=null,i[j]=null,a(P(void 0,!0))),i[pe]=!0}),t.on("readable",$i.bind(null,i)),i},"createReadableStreamAsyncIterator");Jt.exports=Ki});var tr=p((Ss,er)=>{"use strict";function Zt(e,t,r,i,s,f,a){try{var o=e[f](a),l=o.value}catch(d){r(d);return}o.done?t(l):Promise.resolve(l).then(i,s)}n(Zt,"asyncGeneratorStep");function Xi(e){return function(){var t=this,r=arguments;return new Promise(function(i,s){var f=e.apply(t,r);function a(l){Zt(f,i,s,a,o,"next",l)}n(a,"_next");function o(l){Zt(f,i,s,a,o,"throw",l)}n(o,"_throw"),a(void 0)})}}n(Xi,"_asyncToGenerator");function zt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}n(zt,"ownKeys");function Ji(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?zt(Object(r),!0).forEach(function(i){Qi(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zt(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}n(Ji,"_objectSpread");function Qi(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}n(Qi,"_defineProperty");var Zi=O().codes.ERR_INVALID_ARG_TYPE;function zi(e,t,r){var i;if(t&&typeof t.next=="function")i=t;else if(t&&t[Symbol.asyncIterator])i=t[Symbol.asyncIterator]();else if(t&&t[Symbol.iterator])i=t[Symbol.iterator]();else throw new Zi("iterable",["Iterable"],t);var s=new e(Ji({objectMode:!0},r)),f=!1;s._read=function(){f||(f=!0,a())};function a(){return o.apply(this,arguments)}n(a,"next");function o(){return o=Xi(function*(){try{var l=yield i.next(),d=l.value,_=l.done;_?s.push(null):s.push(yield d)?a():f=!1}catch(b){s.destroy(b)}}),o.apply(this,arguments)}return n(o,"_next2"),s}n(zi,"from");er.exports=zi});var Ue=p((Ts,hr)=>{"use strict";hr.exports=h;var $;h.ReadableState=sr;var ms=require("events").EventEmitter,nr=n(function(t,r){return t.listeners(r).length},"EElistenerCount"),z=Ce(),ge=require("buffer").Buffer,en=global.Uint8Array||function(){};function tn(e){return ge.from(e)}n(tn,"_uint8ArrayToBuffer");function rn(e){return ge.isBuffer(e)||e instanceof en}n(rn,"_isUint8Array");var Ye=require("util"),u;Ye&&Ye.debuglog?u=Ye.debuglog("stream"):u=n(function(){},"debug");var nn=Rt(),et=Oe(),sn=Me(),fn=sn.getHighWaterMark,_e=O().codes,an=_e.ERR_INVALID_ARG_TYPE,on=_e.ERR_STREAM_PUSH_AFTER_EOF,ln=_e.ERR_METHOD_NOT_IMPLEMENTED,un=_e.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,G,Ke,Xe;q()(h,z);var Z=et.errorOrDestroy,Je=["error","close","destroy","pause","resume"];function hn(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}n(hn,"prependListener");function sr(e,t,r){$=$||I(),e=e||{},typeof r!="boolean"&&(r=t instanceof $),this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=fn(this,e,"readableHighWaterMark",r),this.buffer=new nn,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=e.emitClose!==!1,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(G||(G=Ge().StringDecoder),this.decoder=new G(e.encoding),this.encoding=e.encoding)}n(sr,"ReadableState");function h(e){if($=$||I(),!(this instanceof h))return new h(e);var t=this instanceof $;this._readableState=new sr(e,this,t),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),z.call(this)}n(h,"Readable");Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:n(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:n(function(t){this._readableState&&(this._readableState.destroyed=t)},"set")});h.prototype.destroy=et.destroy;h.prototype._undestroy=et.undestroy;h.prototype._destroy=function(e,t){t(e)};h.prototype.push=function(e,t){var r=this._readableState,i;return r.objectMode?i=!0:typeof e=="string"&&(t=t||r.defaultEncoding,t!==r.encoding&&(e=ge.from(e,t),t=""),i=!0),fr(this,e,t,!1,i)};h.prototype.unshift=function(e){return fr(this,e,null,!0,!1)};function fr(e,t,r,i,s){u("readableAddChunk",t);var f=e._readableState;if(t===null)f.reading=!1,pn(e,f);else{var a;if(s||(a=dn(f,t)),a)Z(e,a);else if(f.objectMode||t&&t.length>0)if(typeof t!="string"&&!f.objectMode&&Object.getPrototypeOf(t)!==ge.prototype&&(t=tn(t)),i)f.endEmitted?Z(e,new un):Qe(e,f,t,!0);else if(f.ended)Z(e,new on);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!r?(t=f.decoder.write(t),f.objectMode||t.length!==0?Qe(e,f,t,!1):ze(e,f)):Qe(e,f,t,!1)}else i||(f.reading=!1,ze(e,f))}return!f.ended&&(f.length<f.highWaterMark||f.length===0)}n(fr,"readableAddChunk");function Qe(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&be(e)),ze(e,t)}n(Qe,"addChunk");function dn(e,t){var r;return!rn(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new an("chunk",["string","Buffer","Uint8Array"],t)),r}n(dn,"chunkInvalid");h.prototype.isPaused=function(){return this._readableState.flowing===!1};h.prototype.setEncoding=function(e){G||(G=Ge().StringDecoder);var t=new G(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";r!==null;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==""&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var rr=1073741824;function cn(e){return e>=rr?e=rr:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}n(cn,"computeNewHighWaterMark");function ir(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=cn(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}n(ir,"howMuchToRead");h.prototype.read=function(e){u("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Ze(this):be(this),null;if(e=ir(e,t),e===0&&t.ended)return t.length===0&&Ze(this),null;var i=t.needReadable;u("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,u("length less than watermark",i)),t.ended||t.reading?(i=!1,u("reading or ended",i)):i&&(u("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=ir(r,t)));var s;return e>0?s=lr(e,t):s=null,s===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Ze(this)),s!==null&&this.emit("data",s),s};function pn(e,t){if(u("onEofChunk"),!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,t.sync?be(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,ar(e)))}}n(pn,"onEofChunk");function be(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(ar,e))}n(be,"emitReadable");function ar(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),!t.destroyed&&(t.length||t.ended)&&(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,tt(e)}n(ar,"emitReadable_");function ze(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(gn,e,t))}n(ze,"maybeReadMore");function gn(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var r=t.length;if(u("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}n(gn,"maybeReadMore_");h.prototype._read=function(e){Z(this,new ln("_read()"))};h.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e);break}i.pipesCount+=1,u("pipe count=%d opts=%j",i.pipesCount,t);var s=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,f=s?o:c;i.endEmitted?process.nextTick(f):r.once("end",f),e.on("unpipe",a);function a(D,y){u("onunpipe"),D===r&&y&&y.hasUnpiped===!1&&(y.hasUnpiped=!0,_())}n(a,"onunpipe");function o(){u("onend"),e.end()}n(o,"onend");var l=_n(r);e.on("drain",l);var d=!1;function _(){u("cleanup"),e.removeListener("close",m),e.removeListener("finish",v),e.removeListener("drain",l),e.removeListener("error",E),e.removeListener("unpipe",a),r.removeListener("end",o),r.removeListener("end",c),r.removeListener("data",b),d=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l()}n(_,"cleanup"),r.on("data",b);function b(D){u("ondata");var y=e.write(D);u("dest.write",y),y===!1&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&ur(i.pipes,e)!==-1)&&!d&&(u("false write response, pause",i.awaitDrain),i.awaitDrain++),r.pause())}n(b,"ondata");function E(D){u("onerror",D),c(),e.removeListener("error",E),nr(e,"error")===0&&Z(e,D)}n(E,"onerror"),hn(e,"error",E);function m(){e.removeListener("finish",v),c()}n(m,"onclose"),e.once("close",m);function v(){u("onfinish"),e.removeListener("close",m),c()}n(v,"onfinish"),e.once("finish",v);function c(){u("unpipe"),r.unpipe(e)}return n(c,"unpipe"),e.emit("pipe",r),i.flowing||(u("pipe resume"),r.resume()),e};function _n(e){return n(function(){var r=e._readableState;u("pipeOnDrain",r.awaitDrain),r.awaitDrain&&r.awaitDrain--,r.awaitDrain===0&&nr(e,"data")&&(r.flowing=!0,tt(e))},"pipeOnDrainFunctionResult")}n(_n,"pipeOnDrain");h.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 i=t.pipes,s=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var f=0;f<s;f++)i[f].emit("unpipe",this,{hasUnpiped:!1});return this}var a=ur(t.pipes,e);return a===-1?this:(t.pipes.splice(a,1),t.pipesCount-=1,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r),this)};h.prototype.on=function(e,t){var r=z.prototype.on.call(this,e,t),i=this._readableState;return e==="data"?(i.readableListening=this.listenerCount("readable")>0,i.flowing!==!1&&this.resume()):e==="readable"&&!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,u("on readable",i.length,i.reading),i.length?be(this):i.reading||process.nextTick(bn,this)),r};h.prototype.addListener=h.prototype.on;h.prototype.removeListener=function(e,t){var r=z.prototype.removeListener.call(this,e,t);return e==="readable"&&process.nextTick(or,this),r};h.prototype.removeAllListeners=function(e){var t=z.prototype.removeAllListeners.apply(this,arguments);return(e==="readable"||e===void 0)&&process.nextTick(or,this),t};function or(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}n(or,"updateReadableListening");function bn(e){u("readable nexttick read 0"),e.read(0)}n(bn,"nReadingNextTick");h.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,xn(this,e)),e.paused=!1,this};function xn(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick(yn,e,t))}n(xn,"resume");function yn(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),tt(e),t.flowing&&!t.reading&&e.read(0)}n(yn,"resume_");h.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function tt(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&e.read()!==null;);}n(tt,"flow");h.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(u("wrapped end"),r.decoder&&!r.ended){var a=r.decoder.end();a&&a.length&&t.push(a)}t.push(null)}),e.on("data",function(a){if(u("wrapped data"),r.decoder&&(a=r.decoder.write(a)),!(r.objectMode&&a==null)&&!(!r.objectMode&&(!a||!a.length))){var o=t.push(a);o||(i=!0,e.pause())}});for(var s in e)this[s]===void 0&&typeof e[s]=="function"&&(this[s]=n(function(o){return n(function(){return e[o].apply(e,arguments)},"methodWrapReturnFunction")},"methodWrap")(s));for(var f=0;f<Je.length;f++)e.on(Je[f],this.emit.bind(this,Je[f]));return this._read=function(a){u("wrapped _read",a),i&&(i=!1,e.resume())},this};typeof Symbol=="function"&&(h.prototype[Symbol.asyncIterator]=function(){return Ke===void 0&&(Ke=Qt()),Ke(this)});Object.defineProperty(h.prototype,"readableHighWaterMark",{enumerable:!1,get:n(function(){return this._readableState.highWaterMark},"get")});Object.defineProperty(h.prototype,"readableBuffer",{enumerable:!1,get:n(function(){return this._readableState&&this._readableState.buffer},"get")});Object.defineProperty(h.prototype,"readableFlowing",{enumerable:!1,get:n(function(){return this._readableState.flowing},"get"),set:n(function(t){this._readableState&&(this._readableState.flowing=t)},"set")});h._fromList=lr;Object.defineProperty(h.prototype,"readableLength",{enumerable:!1,get:n(function(){return this._readableState.length},"get")});function lr(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.first():r=t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r}n(lr,"fromList");function Ze(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(wn,t,e))}n(Ze,"endReadable");function wn(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}n(wn,"endReadableNT");typeof Symbol=="function"&&(h.from=function(e,t){return Xe===void 0&&(Xe=tr()),Xe(h,e,t)});function ur(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}n(ur,"indexOf")});var rt=p((Cs,cr)=>{"use strict";cr.exports=B;var xe=O().codes,En=xe.ERR_METHOD_NOT_IMPLEMENTED,vn=xe.ERR_MULTIPLE_CALLBACK,Sn=xe.ERR_TRANSFORM_ALREADY_TRANSFORMING,Rn=xe.ERR_TRANSFORM_WITH_LENGTH_0,ye=I();q()(B,ye);function mn(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(i===null)return this.emit("error",new vn);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var s=this._readableState;s.reading=!1,(s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}n(mn,"afterTransform");function B(e){if(!(this instanceof B))return new B(e);ye.call(this,e),this._transformState={afterTransform:mn.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",Tn)}n(B,"Transform");function Tn(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){dr(e,t,r)}):dr(this,null,null)}n(Tn,"prefinish");B.prototype.push=function(e,t){return this._transformState.needTransform=!1,ye.prototype.push.call(this,e,t)};B.prototype._transform=function(e,t,r){r(new En("_transform()"))};B.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var s=this._readableState;(i.needTransform||s.needReadable||s.length<s.highWaterMark)&&this._read(s.highWaterMark)}};B.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};B.prototype._destroy=function(e,t){ye.prototype._destroy.call(this,e,function(r){t(r)})};function dr(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Rn;if(e._transformState.transforming)throw new Sn;return e.push(null)}n(dr,"done")});var _r=p((Bs,gr)=>{"use strict";gr.exports=ee;var pr=rt();q()(ee,pr);function ee(e){if(!(this instanceof ee))return new ee(e);pr.call(this,e)}n(ee,"PassThrough");ee.prototype._transform=function(e,t,r){r(null,e)}});var Er=p((Ms,wr)=>{"use strict";var it;function An(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}n(An,"once");var yr=O().codes,Cn=yr.ERR_MISSING_ARGS,Dn=yr.ERR_STREAM_DESTROYED;function br(e){if(e)throw e}n(br,"noop");function Bn(e){return e.setHeader&&typeof e.abort=="function"}n(Bn,"isRequest");function On(e,t,r,i){i=An(i);var s=!1;e.on("close",function(){s=!0}),it===void 0&&(it=de()),it(e,{readable:t,writable:r},function(a){if(a)return i(a);s=!0,i()});var f=!1;return function(a){if(!s&&!f){if(f=!0,Bn(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();i(a||new Dn("pipe"))}}}n(On,"destroyer");function xr(e){e()}n(xr,"call");function Mn(e,t){return e.pipe(t)}n(Mn,"pipe");function Ln(e){return!e.length||typeof e[e.length-1]!="function"?br:e.pop()}n(Ln,"popCallback");function Nn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=Ln(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Cn("streams");var s,f=t.map(function(a,o){var l=o<t.length-1,d=o>0;return On(a,l,d,function(_){s||(s=_),_&&f.forEach(xr),!l&&(f.forEach(xr),i(s))})});return t.reduce(Mn)}n(Nn,"pipeline");wr.exports=Nn});var vr=p((R,re)=>{var te=require("stream");process.env.READABLE_STREAM==="disable"&&te?(re.exports=te.Readable,Object.assign(re.exports,te),re.exports.Stream=te):(R=re.exports=Ue(),R.Stream=te||R,R.Readable=R,R.Writable=Fe(),R.Duplex=I(),R.Transform=rt(),R.PassThrough=_r(),R.finished=de(),R.pipeline=Er())});var mr=p((Ns,Rr)=>{"use strict";var{Buffer:T}=require("buffer"),Sr=Symbol.for("BufferList");function g(e){if(!(this instanceof g))return new g(e);g._init.call(this,e)}n(g,"BufferList");g._init=n(function(t){Object.defineProperty(this,Sr,{value:!0}),this._bufs=[],this.length=0,t&&this.append(t)},"_init");g.prototype._new=n(function(t){return new g(t)},"_new");g.prototype._offset=n(function(t){if(t===0)return[0,0];let r=0;for(let i=0;i<this._bufs.length;i++){let s=r+this._bufs[i].length;if(t<s||i===this._bufs.length-1)return[i,t-r];r=s}},"_offset");g.prototype._reverseOffset=function(e){let t=e[0],r=e[1];for(