@sap/generator-fiori
Version:
Create an SAPUI5 application using SAP Fiori elements or a freestyle approach
2 lines • 50.6 kB
JavaScript
const __esmImportMetaUrl = require('node:url').pathToFileURL(__filename).href;
"use strict";var Gr=Object.defineProperty;var n=(e,t)=>Gr(e,"name",{value:t,configurable:!0});var u=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Ce=u((ot,ft)=>{ot=ft.exports=function(e){for(var t=0;t<e.length;){if(e[t]==9||e[t]==10||e[t]==13||32<=e[t]&&e[t]<=126){t+=1;continue}if(194<=e[t]&&e[t]<=223&&128<=e[t+1]&&e[t+1]<=191){t+=2;continue}if(e[t]==224&&160<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191||(225<=e[t]&&e[t]<=236||e[t]==238||e[t]==239)&&128<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191||e[t]==237&&128<=e[t+1]&&e[t+1]<=159&&128<=e[t+2]&&e[t+2]<=191){t+=3;continue}if(e[t]==240&&144<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191&&128<=e[t+3]&&e[t+3]<=191||241<=e[t]&&e[t]<=243&&128<=e[t+1]&&e[t+1]<=191&&128<=e[t+2]&&e[t+2]<=191&&128<=e[t+3]&&e[t+3]<=191||e[t]==244&&128<=e[t+1]&&e[t+1]<=143&&128<=e[t+2]&&e[t+2]<=191&&128<=e[t+3]&&e[t+3]<=191){t+=4;continue}return!1}return!0}});var lt=u(($n,ut)=>{"use strict";var Jr=Ce();ut.exports=e=>{if(!Buffer.isBuffer(e))throw new TypeError("Expected a Buffer, got "+typeof e);return e[0]===239&&e[1]===187&&e[2]===191&&Jr(e)?e.slice(3):e}});var I=u((Gn,Te)=>{"use strict";typeof process>"u"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0?Te.exports={nextTick:Qr}:Te.exports=process;function Qr(e,t,r,i){if(typeof e!="function")throw new TypeError('"callback" argument must be a function');var a=arguments.length,s,o;switch(a){case 0:case 1:return process.nextTick(e);case 2:return process.nextTick(n(function(){e.call(null,t)},"afterTickOne"));case 3:return process.nextTick(n(function(){e.call(null,t,r)},"afterTickTwo"));case 4:return process.nextTick(n(function(){e.call(null,t,r,i)},"afterTickThree"));default:for(s=new Array(a-1),o=0;o<s.length;)s[o++]=arguments[o];return process.nextTick(n(function(){e.apply(null,s)},"afterTick"))}}n(Qr,"nextTick")});var ct=u((Qn,ht)=>{var Yr={}.toString;ht.exports=Array.isArray||function(e){return Yr.call(e)=="[object Array]"}});var Me=u((Yn,dt)=>{dt.exports=require("stream")});var ee=u((Re,gt)=>{var de=require("buffer"),B=de.Buffer;function pt(e,t){for(var r in e)t[r]=e[r]}n(pt,"copyProps");B.from&&B.alloc&&B.allocUnsafe&&B.allocUnsafeSlow?gt.exports=de:(pt(de,Re),Re.Buffer=H);function H(e,t,r){return B(e,t,r)}n(H,"SafeBuffer");pt(B,H);H.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return B(e,t,r)};H.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var i=B(e);return t!==void 0?typeof r=="string"?i.fill(t,r):i.fill(t):i.fill(0),i};H.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return B(e)};H.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return de.SlowBuffer(e)}});var z=u(m=>{function Zr(e){return Array.isArray?Array.isArray(e):pe(e)==="[object Array]"}n(Zr,"isArray");m.isArray=Zr;function ei(e){return typeof e=="boolean"}n(ei,"isBoolean");m.isBoolean=ei;function ti(e){return e===null}n(ti,"isNull");m.isNull=ti;function ri(e){return e==null}n(ri,"isNullOrUndefined");m.isNullOrUndefined=ri;function ii(e){return typeof e=="number"}n(ii,"isNumber");m.isNumber=ii;function ni(e){return typeof e=="string"}n(ni,"isString");m.isString=ni;function ai(e){return typeof e=="symbol"}n(ai,"isSymbol");m.isSymbol=ai;function si(e){return e===void 0}n(si,"isUndefined");m.isUndefined=si;function oi(e){return pe(e)==="[object RegExp]"}n(oi,"isRegExp");m.isRegExp=oi;function fi(e){return typeof e=="object"&&e!==null}n(fi,"isObject");m.isObject=fi;function ui(e){return pe(e)==="[object Date]"}n(ui,"isDate");m.isDate=ui;function li(e){return pe(e)==="[object Error]"||e instanceof Error}n(li,"isError");m.isError=li;function hi(e){return typeof e=="function"}n(hi,"isFunction");m.isFunction=hi;function ci(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}n(ci,"isPrimitive");m.isPrimitive=ci;m.isBuffer=Buffer.isBuffer;function pe(e){return Object.prototype.toString.call(e)}n(pe,"objectToString")});var wt=u((ra,Oe)=>{typeof Object.create=="function"?Oe.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"):Oe.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 D=u((na,Pe)=>{try{if(Fe=require("util"),typeof Fe.inherits!="function")throw"";Pe.exports=Fe.inherits}catch{Pe.exports=wt()}var Fe});var vt=u((aa,De)=>{"use strict";function di(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n(di,"_classCallCheck");var yt=ee().Buffer,te=require("util");function pi(e,t,r){e.copy(t,r)}n(pi,"copyBuffer");De.exports=(function(){function e(){di(this,e),this.head=null,this.tail=null,this.length=0}return n(e,"BufferList"),e.prototype.push=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"),e.prototype.unshift=n(function(r){var i={data:r,next:this.head};this.length===0&&(this.tail=i),this.head=i,++this.length},"unshift"),e.prototype.shift=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"),e.prototype.clear=n(function(){this.head=this.tail=null,this.length=0},"clear"),e.prototype.join=n(function(r){if(this.length===0)return"";for(var i=this.head,a=""+i.data;i=i.next;)a+=r+i.data;return a},"join"),e.prototype.concat=n(function(r){if(this.length===0)return yt.alloc(0);if(this.length===1)return this.head.data;for(var i=yt.allocUnsafe(r>>>0),a=this.head,s=0;a;)pi(a.data,i,s),s+=a.data.length,a=a.next;return i},"concat"),e})();te&&te.inspect&&te.inspect.custom&&(De.exports.prototype[te.inspect.custom]=function(){var e=te.inspect({length:this.length});return this.constructor.name+" "+e})});var Le=u((oa,_t)=>{"use strict";var bt=I();function gi(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):e&&(!this._writableState||!this._writableState.errorEmitted)&&bt.nextTick(mt,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(s){!t&&s?(bt.nextTick(mt,r,s),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(s)}),this)}n(gi,"destroy");function wi(){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.finished=!1,this._writableState.errorEmitted=!1)}n(wi,"undestroy");function mt(e,t){e.emit("error",t)}n(mt,"emitErrorNT");_t.exports={destroy:gi,undestroy:wi}});var St=u((ua,xt)=>{xt.exports=require("util").deprecate});var We=u((la,Mt)=>{"use strict";var L=I();Mt.exports=v;function qt(e){var t=this;this.next=null,this.entry=null,this.finish=function(){Fi(t,e)}}n(qt,"CorkedRequest");var yi=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:L.nextTick,V;v.WritableState=ie;var jt=Object.create(z());jt.inherits=D();var vi={deprecate:St()},Bt=Me(),we=ee().Buffer,bi=global.Uint8Array||function(){};function mi(e){return we.from(e)}n(mi,"_uint8ArrayToBuffer");function _i(e){return we.isBuffer(e)||e instanceof bi}n(_i,"_isUint8Array");var kt=Le();jt.inherits(v,Bt);function xi(){}n(xi,"nop");function ie(e,t){V=V||N(),e=e||{};var r=t instanceof V;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,a=e.writableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(a||a===0)?this.highWaterMark=a:this.highWaterMark=s,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(h){Ci(t,h)},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 qt(this)}n(ie,"WritableState");ie.prototype.getBuffer=n(function(){for(var t=this.bufferedRequest,r=[];t;)r.push(t),t=t.next;return r},"getBuffer");(function(){try{Object.defineProperty(ie.prototype,"buffer",{get:vi.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var ge;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(ge=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:n(function(e){return ge.call(this,e)?!0:this!==v?!1:e&&e._writableState instanceof ie},"value")})):ge=n(function(e){return e instanceof this},"realHasInstance");function v(e){if(V=V||N(),!ge.call(v,this)&&!(this instanceof V))return new v(e);this._writableState=new ie(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)),Bt.call(this)}n(v,"Writable");v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function Si(e,t){var r=new Error("write after end");e.emit("error",r),L.nextTick(t,r)}n(Si,"writeAfterEnd");function Ei(e,t,r,i){var a=!0,s=!1;return r===null?s=new TypeError("May not write null values to stream"):typeof r!="string"&&r!==void 0&&!t.objectMode&&(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),L.nextTick(i,s),a=!1),a}n(Ei,"validChunk");v.prototype.write=function(e,t,r){var i=this._writableState,a=!1,s=!i.objectMode&&_i(e);return s&&!we.isBuffer(e)&&(e=mi(e)),typeof t=="function"&&(r=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),typeof r!="function"&&(r=xi),i.ended?Si(this,r):(s||Ei(this,i,e,r))&&(i.pendingcb++,a=ji(this,i,s,e,t,r)),a};v.prototype.cork=function(){var e=this._writableState;e.corked++};v.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest&&Ct(this,e))};v.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 TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},"setDefaultEncoding");function qi(e,t,r){return!e.objectMode&&e.decodeStrings!==!1&&typeof t=="string"&&(t=we.from(t,r)),t}n(qi,"decodeChunk");Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function ji(e,t,r,i,a,s){if(!r){var o=qi(t,i,a);i!==o&&(r=!0,a="buffer",i=o)}var h=t.objectMode?1:i.length;t.length+=h;var w=t.length<t.highWaterMark;if(w||(t.needDrain=!0),t.writing||t.corked){var _=t.lastBufferedRequest;t.lastBufferedRequest={chunk:i,encoding:a,isBuf:r,callback:s,next:null},_?_.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else Ne(e,t,!1,h,i,a,s);return w}n(ji,"writeOrBuffer");function Ne(e,t,r,i,a,s,o){t.writelen=i,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(a,t.onwrite):e._write(a,s,t.onwrite),t.sync=!1}n(Ne,"doWrite");function Bi(e,t,r,i,a){--t.pendingcb,r?(L.nextTick(a,i),L.nextTick(re,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),re(e,t))}n(Bi,"onwriteError");function ki(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}n(ki,"onwriteStateUpdate");function Ci(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if(ki(r),t)Bi(e,r,i,t,a);else{var s=Tt(r);!s&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest&&Ct(e,r),i?yi(Et,e,r,s,a):Et(e,r,s,a)}}n(Ci,"onwrite");function Et(e,t,r,i){r||Ti(e,t),t.pendingcb--,i(),re(e,t)}n(Et,"afterWrite");function Ti(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}n(Ti,"onwriteDrain");function Ct(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var i=t.bufferedRequestCount,a=new Array(i),s=t.corkedRequestsFree;s.entry=r;for(var o=0,h=!0;r;)a[o]=r,r.isBuf||(h=!1),r=r.next,o+=1;a.allBuffers=h,Ne(e,t,!0,t.length,a,"",s.finish),t.pendingcb++,t.lastBufferedRequest=null,s.next?(t.corkedRequestsFree=s.next,s.next=null):t.corkedRequestsFree=new qt(t),t.bufferedRequestCount=0}else{for(;r;){var w=r.chunk,_=r.encoding,c=r.callback,l=t.objectMode?1:w.length;if(Ne(e,t,!1,l,w,_,c),r=r.next,t.bufferedRequestCount--,t.writing)break}r===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}n(Ct,"clearBuffer");v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))};v.prototype._writev=null;v.prototype.end=function(e,t,r){var i=this._writableState;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&&!i.finished&&Oi(this,i,r)};function Tt(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}n(Tt,"needFinish");function Mi(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),re(e,t)})}n(Mi,"callFinal");function Ri(e,t){!t.prefinished&&!t.finalCalled&&(typeof e._final=="function"?(t.pendingcb++,t.finalCalled=!0,L.nextTick(Mi,e,t)):(t.prefinished=!0,e.emit("prefinish")))}n(Ri,"prefinish");function re(e,t){var r=Tt(t);return r&&(Ri(e,t),t.pendingcb===0&&(t.finished=!0,e.emit("finish"))),r}n(re,"finishMaybe");function Oi(e,t,r){t.ending=!0,re(e,t),r&&(t.finished?L.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}n(Oi,"endWritable");function Fi(e,t,r){var i=e.entry;for(e.entry=null;i;){var a=i.callback;t.pendingcb--,a(r),i=i.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}n(Fi,"onCorkedFinish");Object.defineProperty(v.prototype,"destroyed",{get:n(function(){return this._writableState===void 0?!1:this._writableState.destroyed},"get"),set:n(function(e){this._writableState&&(this._writableState.destroyed=e)},"set")});v.prototype.destroy=kt.destroy;v.prototype._undestroy=kt.undestroy;v.prototype._destroy=function(e,t){this.end(),t(e)}});var N=u((ca,Pt)=>{"use strict";var Rt=I(),Pi=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};Pt.exports=k;var Ot=Object.create(z());Ot.inherits=D();var Ft=Ie(),Ue=We();Ot.inherits(k,Ft);for(Ae=Pi(Ue.prototype),ye=0;ye<Ae.length;ye++)ve=Ae[ye],k.prototype[ve]||(k.prototype[ve]=Ue.prototype[ve]);var Ae,ve,ye;function k(e){if(!(this instanceof k))return new k(e);Ft.call(this,e),Ue.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",Di)}n(k,"Duplex");Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:n(function(){return this._writableState.highWaterMark},"get")});function Di(){this.allowHalfOpen||this._writableState.ended||Rt.nextTick(Li,this)}n(Di,"onend");function Li(e){e.end()}n(Li,"onEndNT");Object.defineProperty(k.prototype,"destroyed",{get:n(function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},"get"),set:n(function(e){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=e,this._writableState.destroyed=e)},"set")});k.prototype._destroy=function(e,t){this.push(null),this.end(),Rt.nextTick(t,e)}});var Ve=u(Lt=>{"use strict";var ze=ee().Buffer,Dt=ze.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 Ni(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(Ni,"_normalizeEncoding");function Wi(e){var t=Ni(e);if(typeof t!="string"&&(ze.isEncoding===Dt||!Dt(e)))throw new Error("Unknown encoding: "+e);return t||e}n(Wi,"normalizeEncoding");Lt.StringDecoder=ne;function ne(e){this.encoding=Wi(e);var t;switch(this.encoding){case"utf16le":this.text=Vi,this.end=Ki,t=4;break;case"utf8":this.fillLast=Ii,t=4;break;case"base64":this.text=Xi,this.end=$i,t=3;break;default:this.write=Gi,this.end=Ji;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=ze.allocUnsafe(t)}n(ne,"StringDecoder");ne.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||""};ne.prototype.end=zi;ne.prototype.text=Hi;ne.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 Ai(e,t,r){var i=t.length-1;if(i<r)return 0;var a=He(t[i]);return a>=0?(a>0&&(e.lastNeed=a-1),a):--i<r||a===-2?0:(a=He(t[i]),a>=0?(a>0&&(e.lastNeed=a-2),a):--i<r||a===-2?0:(a=He(t[i]),a>=0?(a>0&&(a===2?a=0:e.lastNeed=a-3),a):0))}n(Ai,"utf8CheckIncomplete");function Ui(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(Ui,"utf8CheckExtraBytes");function Ii(e){var t=this.lastTotal-this.lastNeed,r=Ui(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(Ii,"utf8FillLast");function Hi(e,t){var r=Ai(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(Hi,"utf8Text");function zi(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\uFFFD":t}n(zi,"utf8End");function Vi(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(Vi,"utf16Text");function Ki(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(Ki,"utf16End");function Xi(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(Xi,"base64Text");function $i(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}n($i,"base64End");function Gi(e){return e.toString(this.encoding)}n(Gi,"simpleWrite");function Ji(e){return e&&e.length?this.write(e):""}n(Ji,"simpleEnd")});var Ie=u((ya,Gt)=>{"use strict";var X=I();Gt.exports=p;var Qi=ct(),ae;p.ReadableState=zt;var wa=require("events").EventEmitter,Ut=n(function(e,t){return e.listeners(t).length},"EElistenerCount"),Je=Me(),se=ee().Buffer,Yi=global.Uint8Array||function(){};function Zi(e){return se.from(e)}n(Zi,"_uint8ArrayToBuffer");function en(e){return se.isBuffer(e)||e instanceof Yi}n(en,"_isUint8Array");var It=Object.create(z());It.inherits=D();var Ke=require("util"),d=void 0;Ke&&Ke.debuglog?d=Ke.debuglog("stream"):d=n(function(){},"debug");var tn=vt(),Ht=Le(),K;It.inherits(p,Je);var Xe=["error","close","destroy","pause","resume"];function rn(e,t,r){if(typeof e.prependListener=="function")return e.prependListener(t,r);!e._events||!e._events[t]?e.on(t,r):Qi(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]}n(rn,"prependListener");function zt(e,t){ae=ae||N(),e=e||{};var r=t instanceof ae;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16*1024;i||i===0?this.highWaterMark=i:r&&(a||a===0)?this.highWaterMark=a:this.highWaterMark=s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new tn,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&&(K||(K=Ve().StringDecoder),this.decoder=new K(e.encoding),this.encoding=e.encoding)}n(zt,"ReadableState");function p(e){if(ae=ae||N(),!(this instanceof p))return new p(e);this._readableState=new zt(e,this),this.readable=!0,e&&(typeof e.read=="function"&&(this._read=e.read),typeof e.destroy=="function"&&(this._destroy=e.destroy)),Je.call(this)}n(p,"Readable");Object.defineProperty(p.prototype,"destroyed",{get:n(function(){return this._readableState===void 0?!1:this._readableState.destroyed},"get"),set:n(function(e){this._readableState&&(this._readableState.destroyed=e)},"set")});p.prototype.destroy=Ht.destroy;p.prototype._undestroy=Ht.undestroy;p.prototype._destroy=function(e,t){this.push(null),t(e)};p.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=se.from(e,t),t=""),i=!0),Vt(this,e,t,!1,i)};p.prototype.unshift=function(e){return Vt(this,e,null,!0,!1)};function Vt(e,t,r,i,a){var s=e._readableState;if(t===null)s.reading=!1,on(e,s);else{var o;a||(o=nn(s,t)),o?e.emit("error",o):s.objectMode||t&&t.length>0?(typeof t!="string"&&!s.objectMode&&Object.getPrototypeOf(t)!==se.prototype&&(t=Zi(t)),i?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):$e(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||t.length!==0?$e(e,s,t,!1):Kt(e,s)):$e(e,s,t,!1))):i||(s.reading=!1)}return an(s)}n(Vt,"readableAddChunk");function $e(e,t,r,i){t.flowing&&t.length===0&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&be(e)),Kt(e,t)}n($e,"addChunk");function nn(e,t){var r;return!en(t)&&typeof t!="string"&&t!==void 0&&!e.objectMode&&(r=new TypeError("Invalid non-string/buffer chunk")),r}n(nn,"chunkInvalid");function an(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||e.length===0)}n(an,"needMoreData");p.prototype.isPaused=function(){return this._readableState.flowing===!1};p.prototype.setEncoding=function(e){return K||(K=Ve().StringDecoder),this._readableState.decoder=new K(e),this._readableState.encoding=e,this};var Nt=8388608;function sn(e){return e>=Nt?e=Nt:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}n(sn,"computeNewHighWaterMark");function Wt(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=sn(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}n(Wt,"howMuchToRead");p.prototype.read=function(e){d("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 d("read: emitReadable",t.length,t.ended),t.length===0&&t.ended?Ge(this):be(this),null;if(e=Wt(e,t),e===0&&t.ended)return t.length===0&&Ge(this),null;var i=t.needReadable;d("need readable",i),(t.length===0||t.length-e<t.highWaterMark)&&(i=!0,d("length less than watermark",i)),t.ended||t.reading?(i=!1,d("reading or ended",i)):i&&(d("do read"),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=Wt(r,t)));var a;return e>0?a=Xt(e,t):a=null,a===null?(t.needReadable=!0,e=0):t.length-=e,t.length===0&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&Ge(this)),a!==null&&this.emit("data",a),a};function on(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,be(e)}}n(on,"onEofChunk");function be(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?X.nextTick(At,e):At(e))}n(be,"emitReadable");function At(e){d("emit readable"),e.emit("readable"),Qe(e)}n(At,"emitReadable_");function Kt(e,t){t.readingMore||(t.readingMore=!0,X.nextTick(fn,e,t))}n(Kt,"maybeReadMore");function fn(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}n(fn,"maybeReadMore_");p.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))};p.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,d("pipe count=%d opts=%j",i.pipesCount,t);var a=(!t||t.end!==!1)&&e!==process.stdout&&e!==process.stderr,s=a?h:M;i.endEmitted?X.nextTick(s):r.once("end",s),e.on("unpipe",o);function o(R,x){d("onunpipe"),R===r&&x&&x.hasUnpiped===!1&&(x.hasUnpiped=!0,c())}n(o,"onunpipe");function h(){d("onend"),e.end()}n(h,"onend");var w=un(r);e.on("drain",w);var _=!1;function c(){d("cleanup"),e.removeListener("close",P),e.removeListener("finish",A),e.removeListener("drain",w),e.removeListener("error",T),e.removeListener("unpipe",o),r.removeListener("end",h),r.removeListener("end",M),r.removeListener("data",E),_=!0,i.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&w()}n(c,"cleanup");var l=!1;r.on("data",E);function E(R){d("ondata"),l=!1;var x=e.write(R);x===!1&&!l&&((i.pipesCount===1&&i.pipes===e||i.pipesCount>1&&$t(i.pipes,e)!==-1)&&!_&&(d("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,l=!0),r.pause())}n(E,"ondata");function T(R){d("onerror",R),M(),e.removeListener("error",T),Ut(e,"error")===0&&e.emit("error",R)}n(T,"onerror"),rn(e,"error",T);function P(){e.removeListener("finish",A),M()}n(P,"onclose"),e.once("close",P);function A(){d("onfinish"),e.removeListener("close",P),M()}n(A,"onfinish"),e.once("finish",A);function M(){d("unpipe"),r.unpipe(e)}return n(M,"unpipe"),e.emit("pipe",r),i.flowing||(d("pipe resume"),r.resume()),e};function un(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&Ut(e,"data")&&(t.flowing=!0,Qe(e))}}n(un,"pipeOnDrain");p.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,a=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<a;s++)i[s].emit("unpipe",this,r);return this}var o=$t(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)};p.prototype.on=function(e,t){var r=Je.prototype.on.call(this,e,t);if(e==="data")this._readableState.flowing!==!1&&this.resume();else if(e==="readable"){var i=this._readableState;!i.endEmitted&&!i.readableListening&&(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&be(this):X.nextTick(ln,this))}return r};p.prototype.addListener=p.prototype.on;function ln(e){d("readable nexttick read 0"),e.read(0)}n(ln,"nReadingNextTick");p.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,hn(this,e)),this};function hn(e,t){t.resumeScheduled||(t.resumeScheduled=!0,X.nextTick(cn,e,t))}n(hn,"resume");function cn(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),Qe(e),t.flowing&&!t.reading&&e.read(0)}n(cn,"resume_");p.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function Qe(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&e.read()!==null;);}n(Qe,"flow");p.prototype.wrap=function(e){var t=this,r=this._readableState,i=!1;e.on("end",function(){if(d("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(d("wrapped data"),r.decoder&&(o=r.decoder.write(o)),!(r.objectMode&&o==null)&&!(!r.objectMode&&(!o||!o.length))){var h=t.push(o);h||(i=!0,e.pause())}});for(var a in e)this[a]===void 0&&typeof e[a]=="function"&&(this[a]=(function(o){return function(){return e[o].apply(e,arguments)}})(a));for(var s=0;s<Xe.length;s++)e.on(Xe[s],this.emit.bind(this,Xe[s]));return this._read=function(o){d("wrapped _read",o),i&&(i=!1,e.resume())},this};Object.defineProperty(p.prototype,"readableHighWaterMark",{enumerable:!1,get:n(function(){return this._readableState.highWaterMark},"get")});p._fromList=Xt;function Xt(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=dn(e,t.buffer,t.decoder),r}n(Xt,"fromList");function dn(e,t,r){var i;return e<t.head.data.length?(i=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):e===t.head.data.length?i=t.shift():i=r?pn(e,t):gn(e,t),i}n(dn,"fromListPartial");function pn(e,t){var r=t.head,i=1,a=r.data;for(e-=a.length;r=r.next;){var s=r.data,o=e>s.length?s.length:e;if(o===s.length?a+=s:a+=s.slice(0,e),e-=o,e===0){o===s.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(o));break}++i}return t.length-=i,a}n(pn,"copyFromBufferString");function gn(e,t){var r=se.allocUnsafe(e),i=t.head,a=1;for(i.data.copy(r),e-=i.data.length;i=i.next;){var s=i.data,o=e>s.length?s.length:e;if(s.copy(r,r.length-e,0,o),e-=o,e===0){o===s.length?(++a,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=s.slice(o));break}++a}return t.length-=a,r}n(gn,"copyFromBuffer");function Ge(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,X.nextTick(wn,t,e))}n(Ge,"endReadable");function wn(e,t){!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit("end"))}n(wn,"endReadableNT");function $t(e,t){for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}n($t,"indexOf")});var Ye=u((ba,Yt)=>{"use strict";Yt.exports=C;var me=N(),Qt=Object.create(z());Qt.inherits=D();Qt.inherits(C,me);function yn(e,t){var r=this._transformState;r.transforming=!1;var i=r.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,t!=null&&this.push(t),i(e);var a=this._readableState;a.reading=!1,(a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}n(yn,"afterTransform");function C(e){if(!(this instanceof C))return new C(e);me.call(this,e),this._transformState={afterTransform:yn.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",vn)}n(C,"Transform");function vn(){var e=this;typeof this._flush=="function"?this._flush(function(t,r){Jt(e,t,r)}):Jt(this,null,null)}n(vn,"prefinish");C.prototype.push=function(e,t){return this._transformState.needTransform=!1,me.prototype.push.call(this,e,t)};C.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")};C.prototype._write=function(e,t,r){var i=this._transformState;if(i.writecb=r,i.writechunk=e,i.writeencoding=t,!i.transforming){var a=this._readableState;(i.needTransform||a.needReadable||a.length<a.highWaterMark)&&this._read(a.highWaterMark)}};C.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};C.prototype._destroy=function(e,t){var r=this;me.prototype._destroy.call(this,e,function(i){t(i),r.emit("close")})};function Jt(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)}n(Jt,"done")});var rr=u((_a,tr)=>{"use strict";tr.exports=oe;var Zt=Ye(),er=Object.create(z());er.inherits=D();er.inherits(oe,Zt);function oe(e){if(!(this instanceof oe))return new oe(e);Zt.call(this,e)}n(oe,"PassThrough");oe.prototype._transform=function(e,t,r){r(null,e)}});var Ze=u((b,_e)=>{var q=require("stream");process.env.READABLE_STREAM==="disable"&&q?(_e.exports=q,b=_e.exports=q.Readable,b.Readable=q.Readable,b.Writable=q.Writable,b.Duplex=q.Duplex,b.Transform=q.Transform,b.PassThrough=q.PassThrough,b.Stream=q):(b=_e.exports=Ie(),b.Stream=q||b,b.Readable=b,b.Writable=We(),b.Duplex=N(),b.Transform=Ye(),b.PassThrough=rr())});var ar=u((Sa,nr)=>{"use strict";var bn=require("util"),ir=Ze().Duplex;function xe(e,t){var r=this,i={sent:!1,chunks:[],size:0};if(!(this instanceof xe))return new xe(e,t);if(e=e||{},!(t instanceof Function))throw new Error("FirstChunkStream constructor requires a callback as its second argument.");if(typeof e.chunkLength!="number")throw new Error("FirstChunkStream constructor requires `options.chunkLength` to be a number.");if(e.objectMode)throw new Error("FirstChunkStream doesn't support `objectMode` yet.");ir.call(this,e),i.manager=mn(this),i.errorHandler=n(function(o){a(o,Buffer.concat(i.chunks,i.size),i.encoding,function(){})},"firstChunkStreamErrorHandler"),this.on("error",i.errorHandler);function a(s,o,h,w){s?setImmediate(function(){r.removeListener("error",i.errorHandler)}):r.removeListener("error",i.errorHandler),i.sent=!0,t(s,o,h,function(_,c,l){if(_){setImmediate(function(){r.emit("error",_)});return}if(!c){w();return}i.manager.programPush(c,l,w)})}n(a,"processCallback"),this._write=n(function(o,h,w){i.encoding=h,i.sent?i.manager.programPush(o,i.encoding,w):o.length<e.chunkLength-i.size?(i.chunks.push(o),i.size+=o.length,w()):(i.chunks.push(o.slice(0,e.chunkLength-i.size)),o=o.slice(e.chunkLength-i.size),i.size+=i.chunks[i.chunks.length-1].length,a(null,Buffer.concat(i.chunks,i.size),i.encoding,function(){if(!o.length){w();return}i.manager.programPush(o,i.encoding,w)}))},"firstChunkStreamWrite"),this.on("finish",n(function(){if(!i.sent)return a(null,Buffer.concat(i.chunks,i.size),i.encoding,function(){i.manager.programPush(null,i.encoding)});i.manager.programPush(null,i.encoding)},"firstChunkStreamFinish"))}n(xe,"FirstChunkStream");bn.inherits(xe,ir);function mn(e){var t={waitPush:!0,programmedPushs:[],programPush:n(function(i,a,s){s=s||function(){},t.programmedPushs.push([i,a,s]),setImmediate(t.attemptPush),e.emit("readable"),e.emit("drain")},"programPush"),attemptPush:n(function(){var r;t.waitPush?t.programmedPushs.length&&(r=t.programmedPushs.shift(),t.waitPush=e.push(r[0],r[1]),r[2]()):setImmediate(function(){e.emit("readable")})},"attemptPush")};return e._read=n(function(){t.waitPush=!0,setImmediate(t.attemptPush)},"streamFilterRestoreRead"),t}n(mn,"createReadStreamBackpressureManager");nr.exports=xe});var or=u((qa,sr)=>{"use strict";var _n=Ce();sr.exports=function(e){return typeof e=="string"&&e.charCodeAt(0)===65279?e.slice(1):Buffer.isBuffer(e)&&_n(e)&&e[0]===239&&e[1]===187&&e[2]===191?e.slice(3):e}});var ur=u((ja,fr)=>{"use strict";var xn=ar(),Sn=or();fr.exports=function(){return xn({chunkLength:3},function(e,t,r,i){if(e){i(e);return}i(null,Sn(t))})}});var lr=u((Ba,Se)=>{var En=(function(){"use strict";function e(c,l){return l!=null&&c instanceof l}n(e,"_instanceof");var t;try{t=Map}catch{t=n(function(){},"nativeMap")}var r;try{r=Set}catch{r=n(function(){},"nativeSet")}var i;try{i=Promise}catch{i=n(function(){},"nativePromise")}function a(c,l,E,T,P){typeof l=="object"&&(E=l.depth,T=l.prototype,P=l.includeNonEnumerable,l=l.circular);var A=[],M=[],R=typeof Buffer<"u";typeof l>"u"&&(l=!0),typeof E>"u"&&(E=1/0);function x(f,j){if(f===null)return null;if(j===0)return f;var g,J;if(typeof f!="object")return f;if(e(f,t))g=new t;else if(e(f,r))g=new r;else if(e(f,i))g=new i(function(Q,Y){f.then(function(Z){Q(x(Z,j-1))},function(Z){Y(x(Z,j-1))})});else if(a.__isArray(f))g=[];else if(a.__isRegExp(f))g=new RegExp(f.source,_(f)),f.lastIndex&&(g.lastIndex=f.lastIndex);else if(a.__isDate(f))g=new Date(f.getTime());else{if(R&&Buffer.isBuffer(f))return Buffer.allocUnsafe?g=Buffer.allocUnsafe(f.length):g=new Buffer(f.length),f.copy(g),g;e(f,Error)?g=Object.create(f):typeof T>"u"?(J=Object.getPrototypeOf(f),g=Object.create(J)):(g=Object.create(T),J=T)}if(l){var nt=A.indexOf(f);if(nt!=-1)return M[nt];A.push(f),M.push(g)}e(f,t)&&f.forEach(function(Q,Y){var Z=x(Y,j-1),$r=x(Q,j-1);g.set(Z,$r)}),e(f,r)&&f.forEach(function(Q){var Y=x(Q,j-1);g.add(Y)});for(var S in f){var ke;J&&(ke=Object.getOwnPropertyDescriptor(J,S)),!(ke&&ke.set==null)&&(g[S]=x(f[S],j-1))}if(Object.getOwnPropertySymbols)for(var at=Object.getOwnPropertySymbols(f),S=0;S<at.length;S++){var he=at[S],U=Object.getOwnPropertyDescriptor(f,he);U&&!U.enumerable&&!P||(g[he]=x(f[he],j-1),U.enumerable||Object.defineProperty(g,he,{enumerable:!1}))}if(P)for(var st=Object.getOwnPropertyNames(f),S=0;S<st.length;S++){var ce=st[S],U=Object.getOwnPropertyDescriptor(f,ce);U&&U.enumerable||(g[ce]=x(f[ce],j-1),Object.defineProperty(g,ce,{enumerable:!1}))}return g}return n(x,"_clone"),x(c,E)}n(a,"clone"),a.clonePrototype=n(function(l){if(l===null)return null;var E=n(function(){},"c");return E.prototype=l,new E},"clonePrototype");function s(c){return Object.prototype.toString.call(c)}n(s,"__objToStr"),a.__objToStr=s;function o(c){return typeof c=="object"&&s(c)==="[object Date]"}n(o,"__isDate"),a.__isDate=o;function h(c){return typeof c=="object"&&s(c)==="[object Array]"}n(h,"__isArray"),a.__isArray=h;function w(c){return typeof c=="object"&&s(c)==="[object RegExp]"}n(w,"__isRegExp"),a.__isRegExp=w;function _(c){var l="";return c.global&&(l+="g"),c.ignoreCase&&(l+="i"),c.multiline&&(l+="m"),l}return n(_,"__getRegExpFlags"),a.__getRegExpFlags=_,a})();typeof Se=="object"&&Se.exports&&(Se.exports=En)});var gr=u((Ca,pr)=>{"use strict";var Ee=Ze().PassThrough,hr=D(),$=I();function O(e,t){if(!(this instanceof O))return new O(e,t);var r=e._readableState.objectMode;this._original=e,this._clonesCount=1,t=t||{},t.objectMode=r,Ee.call(this,t),dr(e,this),this.on("newListener",fe),this.once("resume",cr),this._hasListener=!0}n(O,"Cloneable");hr(O,Ee);function fe(e,t){(e==="data"||e==="readable")&&(this._hasListener=!1,this.removeListener("newListener",fe),this.removeListener("resume",cr),$.nextTick(qe,this))}n(fe,"onData");function cr(){this._hasListener=!1,this.removeListener("newListener",fe),$.nextTick(qe,this)}n(cr,"onResume");O.prototype.clone=function(){if(!this._original)throw new Error("already started");this._clonesCount++,this.removeListener("newListener",fe);var e=new W(this);return this._hasListener&&this.on("newListener",fe),e};O.prototype._destroy=function(e,t){e||(this.push(null),this.end(),this.emit("close")),$.nextTick(t,e)};function dr(e,t){e.on("error",r),e.on("close",i);function r(a){e.removeListener("close",i),t.destroy(a)}n(r,"destroy");function i(){t.end()}n(i,"onClose")}n(dr,"forwardDestroy");function qe(e){--e._clonesCount===0&&!e._readableState.destroyed&&(e._original.pipe(e),e._original=void 0)}n(qe,"clonePiped");function W(e,t){if(!(this instanceof W))return new W(e,t);var r=e._readableState.objectMode;t=t||{},t.objectMode=r,this.parent=e,Ee.call(this,t),dr(e,this),e.pipe(this),this.on("newListener",et),this.on("resume",qn)}n(W,"Clone");function et(e,t){(e==="data"||e==="readable"||e==="close")&&($.nextTick(qe,this.parent),this.removeListener("newListener",et))}n(et,"onDataClone");function qn(){this.removeListener("newListener",et),$.nextTick(qe,this.parent)}n(qn,"onResumeClone");hr(W,Ee);W.prototype.clone=function(){return this.parent.clone()};O.isCloneable=function(e){return e instanceof O||e instanceof W};W.prototype._destroy=function(e,t){e||(this.push(null),this.end(),this.emit("close")),$.nextTick(t,e)};pr.exports=O});var yr=u((Ma,wr)=>{"use strict";var G=require("path");function jn(e,t){if(typeof e!="string"||e.length===0)return e;var r=G.basename(e,G.extname(e))+t,i=G.join(G.dirname(e),r);return Bn(e)?"."+G.sep+i:i}n(jn,"replaceExt");function Bn(e){var t=e.slice(0,2);return t==="."+G.sep||t==="./"}n(Bn,"startsWithSingleDot");wr.exports=jn});var br=u((Oa,vr)=>{var kn=require("fs").Stats;vr.exports=Cn;function Cn(e){var t=new kn;return Object.keys(e).forEach(function(r){t[r]=e[r]}),t}n(Cn,"cloneStats")});var Sr=u((Pa,xr)=>{"use strict";var ue=require("buffer").Buffer;function mr(){return ue.hasOwnProperty("from")&&typeof ue.from=="function"}n(mr,"hasFrom");function _r(e){if(!ue.isBuffer(e))throw new Error("Can only clone Buffer.");if(mr())return ue.from(e);var t=new ue(e.length);return e.copy(t),t}n(_r,"cloneBuffer");_r.hasFrom=mr;xr.exports=_r});var qr=u((La,Er)=>{var Tn=process.platform==="win32";Er.exports=function(e){var t=e.length-1;if(t<2)return e;for(;Mn(e,t);)t--;return e.substr(0,t+1)};function Mn(e,t){var r=e[t];return t>0&&(r==="/"||Tn&&r==="\\")}n(Mn,"isSeparator")});var Br=u((Wa,jr)=>{"use strict";function Rn(e){return!(!e||typeof e.pipe!="function")}n(Rn,"isStream");jr.exports=Rn});var Cr=u((Ua,kr)=>{"use strict";var On=require("path");function Fn(e){return e===""?e:On.normalize(e)}n(Fn,"normalize");kr.exports=Fn});var Mr=u((Ha,Tr)=>{"use strict";function Pn(e){var t=e.constructor.name;return t==="Stream"&&(t=""),"<"+t+"Stream>"}n(Pn,"inspectStream");Tr.exports=Pn});var rt=u((Va,Pr)=>{"use strict";var F=require("path"),Rr=require("util"),Fr=require("buffer").Buffer.isBuffer,Dn=lr(),Or=gr(),Ln=yr(),Nn=br(),Wn=Sr(),je=qr(),tt=Br(),Be=Cr(),An=Mr(),Un=["_contents","_symlink","contents","stat","history","path","_base","base","_cwd","cwd"];function y(e){var t=this;e||(e={}),this.stat=e.stat||null,this.contents=e.contents||null;var r=Array.prototype.slice.call(e.history||[]);e.path&&r.push(e.path),this.history=[],r.forEach(function(i){t.path=i}),this.cwd=e.cwd||process.cwd(),this.base=e.base,this._isVinyl=!0,this._symlink=null,Object.keys(e).forEach(function(i){t.constructor.isCustomProp(i)&&(t[i]=e[i])})}n(y,"File");y.prototype.isBuffer=function(){return Fr(this.contents)};y.prototype.isStream=function(){return tt(this.contents)};y.prototype.isNull=function(){return this.contents===null};y.prototype.isDirectory=function(){return this.isNull()&&this.stat&&typeof this.stat.isDirectory=="function"?this.stat.isDirectory():!1};y.prototype.isSymbolic=function(){return this.isNull()&&this.stat&&typeof this.stat.isSymbolicLink=="function"?this.stat.isSymbolicLink():!1};y.prototype.clone=function(e){var t=this;typeof e=="boolean"?e={deep:e,contents:!0}:e?(e.deep=e.deep===!0,e.contents=e.contents!==!1):e={deep:!0,contents:!0};var r;this.isStream()?r=this.contents.clone():this.isBuffer()&&(r=e.contents?Wn(this.contents):this.contents);var i=new this.constructor({cwd:this.cwd,base:this.base,stat:this.stat?Nn(this.stat):null,history:this.history.slice(),contents:r});return this.isSymbolic()&&(i.symlink=this.symlink),Object.keys(this).forEach(function(a){t.constructor.isCustomProp(a)&&(i[a]=e.deep?Dn(t[a],!0):t[a])}),i};y.prototype.inspect=function(){var e=[],t=this.path?this.relative:null;return t&&e.push('"'+t+'"'),this.isBuffer()&&e.push(this.contents.inspect()),this.isStream()&&e.push(An(this.contents)),"<File "+e.join(" ")+">"};Rr.inspect.custom&&(y.prototype[Rr.inspect.custom]=y.prototype.inspect);y.isCustomProp=function(e){return Un.indexOf(e)===-1};y.isVinyl=function(e){return e&&e._isVinyl===!0||!1};Object.defineProperty(y.prototype,"contents",{get:n(function(){return this._contents},"get"),set:n(function(e){if(!Fr(e)&&!tt(e)&&e!==null)throw new Error("File.contents can only be a Buffer, a Stream, or null.");tt(e)&&!Or.isCloneable(e)&&(e=Or(e)),this._contents=e},"set")});Object.defineProperty(y.prototype,"cwd",{get:n(function(){return this._cwd},"get"),set:n(function(e){if(!e||typeof e!="string")throw new Error("cwd must be a non-empty string.");this._cwd=je(Be(e))},"set")});Object.defineProperty(y.prototype,"base",{get:n(function(){return this._base||this._cwd},"get"),set:n(function(e){if(e==null){delete this._base;return}if(typeof e!="string"||!e)throw new Error("base must be a non-empty string, or null/undefined.");e=je(Be(e)),e!==this._cwd?this._base=e:delete this._base},"set")});Object.defineProperty(y.prototype,"relative",{get:n(function(){if(!this.path)throw new Error("No path specified! Can not get relative.");return F.relative(this.base,this.path)},"get"),set:n(function(){throw new Error("File.relative is generated from the base and path attributes. Do not modify it.")},"set")});Object.defineProperty(y.prototype,"dirname",{get:n(function(){if(!this.path)throw new Error("No path specified! Can not get dirname.");return F.dirname(this.path)},"get"),set:n(function(e){if(!this.path)throw new Error("No path specified! Can not set dirname.");this.path=F.join(e,this.basename)},"set")});Object.defineProperty(y.prototype,"basename",{get:n(function(){if(!this.path)throw new Error("No path specified! Can not get basename.");return F.basename(this.path)},"get"),set:n(function(e){if(!this.path)throw new Error("No path specified! Can not set basename.");this.path=F.join(this.dirname,e)},"set")});Object.defineProperty(y.prototype,"stem",{get:n(function(){if(!this.path)throw new Error("No path specified! Can not get stem.");return F.basename(this.path,this.extname)},"get"),set:n(function(e){if(!this.path)throw new Error("No path specified! Can not set stem.");this.path=F.join(this.dirname,e+this.extname)},"set")});Object.defineProperty(y.prototype,"extname",{get:n(function(){if(!this.path)throw new Error("No path specified! Can not get extname.");return F.extname(this.path)},"get"),set:n(function(e){if(!this.path)throw new Error("No path specified! Can not set extname.");this.path=Ln(this.path,e)},"set")});Object.defineProperty(y.prototype,"path",{get:n(function(){return this.history[this.history.length-1]},"get"),set:n(function(e){if(typeof e!="string")throw new Error("path should be a string.");e=je(Be(e)),e&&e!==this.path&&this.history.push(e)},"set")});Object.defineProperty(y.prototype,"symlink",{get:n(function(){return this._symlink},"get"),set:n(function(e){if(typeof e!="string")throw new Error("symlink should be a string");this._symlink=je(Be(e))},"set")});Pr.exports=y});var Wr=u((Xa,Nr)=>{"use strict";var Dr=n(function(e,t,r){return function(){for(var i=this,a=new Array(arguments.length),s=0;s<arguments.length;s++)a[s]=arguments[s];return new t(function(o,h){a.push(function(w,_){if(w)h(w);else if(r.multiArgs){for(var c=new Array(arguments.length-1),l=1;l<arguments.length;l++)c[l-1]=arguments[l];o(c)}else o(_)}),e.apply(i,a)})}},"processFn"),Lr=Nr.exports=function(e,t,r){typeof t!="function"&&(r=t,t=Promise),r=r||{},r.exclude=r.exclude||[/.+Sync$/];var i=n(function(s){var o=n(function(h){return typeof h=="string"?s===h:h.test(s)},"match");return r.include?r.include.some(o):!r.exclude.some(o)},"filter"),a=typeof e=="function"?function(){return r.excludeMain?e.apply(this,arguments):Dr(e,t,r).apply(this,arguments)}:{};return Object.keys(e).reduce(function(s,o){var h=e[o];return s[o]=typeof h=="function"&&i(o)?Dr(h,t,r):h,s},a)};Lr.all=Lr});var Vr=u(it=>{"use strict";var Ur=require("path"),le=require("../../commonlibs/graceful-fs/index.js"),Ir=lt(),Hr=ur(),zr=rt(),In=Wr(),Ar=In(le);it.read=(e,t)=>{t=t||{};let r=t.cwd||process.cwd(),i=t.base||r;return e=Ur.resolve(r,e),Ar.stat(e).then(a=>{let s=new zr({cwd:r,base:i,path:e,stat:a});return t.read===!1?s:t.buffer===!1?(s.contents=le.createReadStream(e).pipe(Hr()),s):Ar.readFile(e).then(o=>(s.contents=Ir(o),s))})};it.readSync=(e,t)=>{t=t||{};let r=t.cwd||process.cwd(),i=t.base||r;e=Ur.resolve(r,e);let a;return t.read!==!1&&(a=t.buffer===!1?le.createReadStream(e).pipe(Hr()):Ir(le.readFileSync(e))),new zr({cwd:r,base:i,path:e,stat:le.statSync(e),contents:a})}});var Kr=require("events"),Xr=require("path"),Hn=require("util"),zn=Vr(),Vn=rt(),{PassThrough:Kn}=require("stream");exports.create=function(){var e={};function t(a){return new Vn({cwd:process.cwd(),base:process.cwd(),path:a,contents:null})}n(t,"createFile");function r(a){var s;try{s=zn.readSync(a)}catch{s=t(a)}return e[a