(q,K)
| 846 | |
| 847 | see https://github.com/jprichardson/node-fs-extra/issues/269`,"Warning","fs-extra-WARN0002");let{srcStat:z,destStat:Y}=fi6.checkPathsSync(q,K,"copy",_);return fi6.checkParentPathsSync(q,z,K,"copy"),hm_(Y,q,K,_)}function hm_(q,K,_,z){if(z.filter&&!z.filter(K,_))return;let Y=Di6.dirname(_);if(!kG.existsSync(Y))Em_(Y);return K$4(q,K,_,z)}function Sm_(q,K,_,z){if(z.filter&&!z.filter(K,_))return;return K$4(q,K,_,z)}function K$4(q,K,_,z){let $=(z.dereference?kG.statSync:kG.lstatSync)(K);if($.isDirectory())return pm_($,q,K,_,z);else if($.isFile()||$.isCharacterDevice()||$.isBlockDevice())return Cm_($,q,K,_,z);else if($.isSymbolicLink())return Fm_(q,K,_,z);else if($.isSocket())throw Error(`Cannot copy a socket file: ${K}`);else if($.isFIFO())throw Error(`Cannot copy a FIFO pipe: ${K}`);throw Error(`Unknown file: ${K}`)}function Cm_(q,K,_,z,Y){if(!K)return _$4(q,_,z,Y);return bm_(q,_,z,Y)}function bm_(q,K,_,z){if(z.overwrite)return kG.unlinkSync(_),_$4(q,K,_,z);else if(z.errorOnExist)throw Error(`'${_}' already exists`)}function _$4(q,K,_,z){if(kG.copyFileSync(K,_),z.preserveTimestamps)xm_(q.mode,K,_);return QC1(_,q.mode)}function xm_(q,K,_){if(Im_(q))um_(_,q);return mm_(K,_)}function Im_(q){return(q&128)===0}function um_(q,K){return QC1(q,K|128)}function QC1(q,K){return kG.chmodSync(q,K)}function mm_(q,K){let _=kG.statSync(q);return Lm_(K,_.atime,_.mtime)}function pm_(q,K,_,z,Y){if(!K)return Bm_(q.mode,_,z,Y);return z$4(_,z,Y)}function Bm_(q,K,_,z){return kG.mkdirSync(_),z$4(K,_,z),QC1(_,q)}function z$4(q,K,_){kG.readdirSync(q).forEach((z)=>gm_(z,q,K,_))}function gm_(q,K,_,z){let Y=Di6.join(K,q),$=Di6.join(_,q),{destStat:A}=fi6.checkPathsSync(Y,$,"copy",z);return Sm_(A,Y,$,z)}function Fm_(q,K,_,z){let Y=kG.readlinkSync(K);if(z.dereference)Y=Di6.resolve(process.cwd(),Y);if(!q)return kG.symlinkSync(Y,_);else{let $;try{$=kG.readlinkSync(_)}catch(A){if(A.code==="EINVAL"||A.code==="UNKNOWN")return kG.symlinkSync(Y,_);throw A}if(z.dereference)$=Di6.resolve(process.cwd(),$);if(fi6.isSrcSubdir(Y,$))throw Error(`Cannot copy '${Y}' to a subdirectory of itself, '${$}'.`);if(kG.statSync(_).isDirectory()&&fi6.isSrcSubdir($,Y))throw Error(`Cannot overwrite '${$}' with '${Y}'.`);return Um_(Y,_)}}function Um_(q,K){return kG.unlinkSync(K),kG.symlinkSync(q,K)}Y$4.exports=Rm_});var Hv8=m((ZcA,A$4)=>{var Qm_=ow().fromCallback;A$4.exports={copy:Qm_(q$4()),copySync:$$4()}});var W$4=m((GcA,P$4)=>{var O$4=kA(),J$4=U6("path"),Xw=U6("assert"),Zi6=process.platform==="win32";function M$4(q){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach((_)=>{q[_]=q[_]||O$4[_],_=_+"Sync",q[_]=q[_]||O$4[_]}),q.maxBusyTries=q.maxBusyTries||3}function dC1(q,K,_){let z=0;if(typeof K==="function")_=K,K={};Xw(q,"rimraf: missing path"),Xw.strictEqual(typeof q,"string","rimraf: path should be a string"),Xw.strictEqual(typeof _,"function","rimraf: callback function required"),Xw(K,"rimraf: invalid options argument provided"),Xw.strictEqual(typeof K,"object","rimraf: options should be object"),M$4(K),w$4(q,K,function Y($){if($){if(($.code==="EBUSY"||$.code==="ENOTEMPTY"||$.code==="EPERM")&&z<K.maxBusyTries){z++;let A=z*100;return setTimeout(()=>w$4(q,K,Y),A)}if($.code==="ENOENT")$=null}_($)})}function w$4(q,K,_){Xw(q),Xw(K),Xw(typeof _==="function"),K.lstat(q,(z,Y)=>{if(z&&z.code==="ENOENT")return _(null);if(z&&z.code==="EPERM"&&Zi6)return j$4(q,K,z,_);if(Y&&Y.isDirectory())return Jv8(q,K,z,_);K.unlink(q,($)=>{if($){if($.code==="ENOENT")return _(null);if($.code==="EPERM")return Zi6?j$4(q,K,$,_):Jv8(q,K,$,_);if($.code==="EISDIR")return Jv8(q,K,$,_)}return _($)})})}function j$4(q,K,_,z){Xw(q),Xw(K),Xw(typeof z==="function"),K.chmod(q,438,(Y)=>{if(Y)z(Y.code==="ENOENT"?null:_);else K.stat(q,($,A)=>{if($)z($.code==="ENOENT"?null:_);else if(A.isDirectory())Jv8(q,K,_,z);else K.unlink(q,z)})})}function H$4(q,K,_){let z;Xw(q),Xw(K);try{K.chmodSync(q,438)}catch(Y){if(Y.code==="ENOENT")return;else throw _}try{z=K.statSync(q)}catch(Y){if(Y.code==="ENOENT")return;else throw _}if(z.isDirectory())Mv8(q,K,_);else K.unlinkSync(q)}function Jv8(q,K,_,z){Xw(q),Xw(K),Xw(typeof z==="function"),K.rmdir(q,(Y)=>{if(Y&&(Y.code==="ENOTEMPTY"||Y.code==="EEXIST"||Y.code==="EPERM"))dm_(q,K,z);else if(Y&&Y.code==="ENOTDIR")z(_);else z(Y)})}function dm_(q,K,_){Xw(q),Xw(K),Xw(typeof _==="function"),K.readdir(q,(z,Y)=>{if(z)return _(z);let $=Y.length,A;if($===0)return K.rmdir(q,_);Y.forEach((O)=>{dC1(J$4.join(q,O),K,(w)=>{if(A)return;if(w)return _(A=w);if(--$===0)K.rmdir(q,_)})})})}function X$4(q,K){let _;K=K||{},M$4(K),Xw(q,"rimraf: missing path"),Xw.strictEqual(typeof q,"string","rimraf: path should be a string"),Xw(K,"rimraf: missing options"),Xw.strictEqual(typeof K,"object","rimraf: options should be object");try{_=K.lstatSync(q)}catch(z){if(z.code==="ENOENT")return;if(z.code==="EPERM"&&Zi6)H$4(q,K,z)}try{if(_&&_.isDirectory())Mv8(q,K,null);else K.unlinkSync(q)}catch(z){if(z.code==="ENOENT")return;else if(z.code==="EPERM")return Zi6?H$4(q,K,z):Mv8(q,K,z);else if(z.code!=="EISDIR")throw z;Mv8(q,K,z)}}function Mv8(q,K,_){Xw(q),Xw(K);try{K.rmdirSync(q)}catch(z){if(z.code==="ENOTDIR")throw _;else if(z.code==="ENOTEMPTY"||z.code==="EEXIST"||z.code==="EPERM")cm_(q,K);else if(z.code!=="ENOENT")throw z}}function cm_(q,K){if(Xw(q),Xw(K),K.readdirSync(q).forEach((_)=>X$4(J$4.join(q,_),K)),Zi6){let _=Date.now();do try{return K.rmdirSync(q,K)}catch{}while(Date.now()-_<500)}else return K.rmdirSync(q,K)}P$4.exports=dC1;dC1.sync=X$4});var Gi6=m((TcA,f$4)=>{var Xv8=kA(),lm_=ow().fromCallback,D$4=W$4();function nm_(q,K){if(Xv8.rm)return Xv8.rm(q,{recursive:!0,force:!0},K);D$4(q,K)}function im_(q){if(Xv8.rmSync)return Xv8.rmSync(q,{recursive:!0,force:!0});D$4.sync(q)}f$4.exports={remove:lm_(nm_),removeSync:im_}});var y$4=m((vcA,N$4)=>{var rm_=ow().fromPromise,T$4=wO6(),v$4=U6("path"),k$4=Cu(),V$4=Gi6(),Z$4=rm_(async function(K){let _;try{_=await T$4.readdir(K)}catch{return k$4.mkdirs(K)}return Promise.all(_.map((z)=>V$4.remove(v$4.join(K,z))))});function G$4(q){let K;try{K=T$4.readdirSync(q)}catch{return k$4.mkdirsSync(q)}K.forEach((_)=>{_=v$4.join(q,_),V$4.removeSync(_)})}N$4.exports={emptyDirSync:G$4,emptydirSync:G$4,emptyDir:Z$4,emptydir:Z$4}});var h$4=m((kcA,R$4)=>{var om_=ow().fromCallback,E$4=U6("path"),v76=kA(),L$4=Cu();function am_(q,K){function _(){v76.writeFile(q,"",(z)=>{if(z)return K(z);K()})}v76.stat(q,(z,Y)=>{if(!z&&Y.isFile())return K();let $=E$4.dirname(q);v76.stat($,(A,O)=>{if(A){if(A.code==="ENOENT")return L$4.mkdirs($,(w)=>{if(w)return K(w);_()});return K(A)}if(O.isDirectory())_();else v76.readdir($,(w)=>{if(w)return K(w)})})})}function sm_(q){let K;try{K=v76.statSync(q)}catch{}if(K&&K.isFile())return;let _=E$4.dirname(q);try{if(!v76.statSync(_).isDirectory())v76.readdirSync(_)}catch(z){if(z&&z.code==="ENOENT")L$4.mkdirsSync(_);else throw z}v76.writeFileSync(q,"")}R$4.exports={createFile:om_(am_),createFileSync:sm_}});var I$4=m((VcA,x$4)=>{var tm_=ow().fromCallback,S$4=U6("path"),k76=kA(),C$4=Cu(),em_=T76().pathExists,{areIdentical:b$4}=jO6();function qp_(q,K,_){function z(Y,$){k76.link(Y,$,(A)=>{if(A)return _(A);_(null)})}k76.lstat(K,(Y,$)=>{k76.lstat(q,(A,O)=>{if(A)return A.message=A.message.replace("lstat","ensureLink"),_(A);if($&&b$4(O,$))return _(null);let w=S$4.dirname(K);em_(w,(j,H)=>{if(j)return _(j);if(H)return z(q,K);C$4.mkdirs(w,(J)=>{if(J)return _(J);z(q,K)})})})})}function Kp_(q,K){let _;try{_=k76.lstatSync(K)}catch{}try{let $=k76.lstatSync(q);if(_&&b$4($,_))return}catch($){throw $.message=$.message.replace("lstat","ensureLink"),$}let z=S$4.dirname(K);if(k76.existsSync(z))return k76.linkSync(q,K);return C$4.mkdirsSync(z),k76.linkSync(q,K)}x$4.exports={createLink:tm_(qp_),createLinkSync:Kp_}});var m$4=m((NcA,u$4)=>{var V76=U6("path"),Ti6=kA(),_p_=T76().pathExists;function zp_(q,K,_){if(V76.isAbsolute(q))return Ti6.lstat(q,(z)=>{if(z)return z.message=z.message.replace("lstat","ensureSymlink"),_(z);return _(null,{toCwd:q,toDst:q})});else{let z=V76.dirname(K),Y=V76.join(z,q);return _p_(Y,($,A)=>{if($)return _($);if(A)return _(null,{toCwd:Y,toDst:q});else return Ti6.lstat(q,(O)=>{if(O)return O.message=O.message.replace("lstat","ensureSymlink"),_(O);return _(null,{toCwd:q,toDst:V76.relative(z,q)})})})}}function Yp_(q,K){let _;if(V76.isAbsolute(q)){if(_=Ti6.existsSync(q),!_)throw Error("absolute srcpath does not exist");return{toCwd:q,toDst:q}}else{let z=V76.dirname(K),Y=V76.join(z,q);if(_=Ti6.existsSync(Y),_)return{toCwd:Y,toDst:q};else{if(_=Ti6.existsSync(q),!_)throw Error("relative srcpath does not exist");return{toCwd:q,toDst:V76.relative(z,q)}}}}u$4.exports={symlinkPaths:zp_,symlinkPathsSync:Yp_}});var g$4=m((ycA,B$4)=>{var p$4=kA();function $p_(q,K,_){if(_=typeof K==="function"?K:_,K=typeof K==="function"?!1:K,K)return _(null,K);p$4.lstat(q,(z,Y)=>{if(z)return _(null,"file");K=Y&&Y.isDirectory()?"dir":"file",_(null,K)})}function Ap_(q,K){let _;if(K)return K;try{_=p$4.lstatSync(q)}catch{return"file"}return _&&_.isDirectory()?"dir":"file"}B$4.exports={symlinkType:$p_,symlinkTypeSync:Ap_}});var i$4=m((EcA,n$4)=>{var Op_=ow().fromCallback,U$4=U6("path"),bu=wO6(),Q$4=Cu(),wp_=Q$4.mkdirs,jp_=Q$4.mkdirsSync,d$4=m$4(),Hp_=d$4.symlinkPaths,Jp_=d$4.symlinkPathsSync,c$4=g$4(),Mp_=c$4.symlinkType,Xp_=c$4.symlinkTypeSync,Pp_=T76().pathExists,{areIdentical:l$4}=jO6();function Wp_(q,K,_,z){z=typeof _==="function"?_:z,_=typeof _==="function"?!1:_,bu.lstat(K,(Y,$)=>{if(!Y&&$.isSymbolicLink())Promise.all([bu.stat(q),bu.stat(K)]).then(([A,O])=>{if(l$4(A,O))return z(null);F$4(q,K,_,z)});else F$4(q,K,_,z)})}function F$4(q,K,_,z){Hp_(q,K,(Y,$)=>{if(Y)return z(Y);q=$.toDst,Mp_($.toCwd,_,(A,O)=>{if(A)return z(A);let w=U$4.dirname(K);Pp_(w,(j,H)=>{if(j)return z(j);if(H)return bu.symlink(q,K,O,z);wp_(w,(J)=>{if(J)return z(J);bu.symlink(q,K,O,z)})})})})}function Dp_(q,K,_){let z;try{z=bu.lstatSync(K)}catch{}if(z&&z.isSymbolicLink()){let O=bu.statSync(q),w=bu.statSync(K);if(l$4(O,w))return}let Y=Jp_(q,K);q=Y.toDst,_=Xp_(Y.toCwd,_);let $=U$4.dirname(K);if(bu.existsSync($))return bu.symlinkSync(q,K,_);return jp_($),bu.symlinkSync(q,K,_)}n$4.exports={createSymlink:Op_(Wp_),createSymlinkSync:Dp_}});var KA4=m((LcA,qA4)=>{var{createFile:r$4,createFileSync:o$4}=h$4(),{createLink:a$4,createLinkSync:s$4}=I$4(),{createSymlink:t$4,createSymlinkSync:e$4}=i$4();qA4.exports={createFile:r$4,createFileSync:o$4,ensureFile:r$4,ensureFileSync:o$4,createLink:a$4,createLinkSync:s$4,ensureLink:a$4,ensureLinkSync:s$4,createSymlink:t$4,createSymlinkSync:e$4,ensureSymlink:t$4,ensureSymlinkSync:e$4}});var zA4=m((RcA,_A4)=>{var Pv8=CC1();_A4.exports={readJson:Pv8.readFile,readJsonSync:Pv8.readFileSync,writeJson:Pv8.writeFile,writeJsonSync:Pv8.writeFileSync}});var Wv8=m((hcA,AA4)=>{var fp_=ow().fromCallback,vi6=kA(),YA4=U6("path"),$A4=Cu(),Zp_=T76().pathExists;function Gp_(q,K,_,z){if(typeof _==="function")z=_,_="utf8";let Y=YA4.dirname(q);Zp_(Y,($,A)=>{if($)return z($);if(A)return vi6.writeFile(q,K,_,z);$A4.mkdirs(Y,(O)=>{if(O)return z(O);vi6.writeFile(q,K,_,z)})})}function Tp_(q,...K){let _=YA4.dirname(q);if(vi6.existsSync(_))return vi6.writeFileSync(q,...K);$A4.mkdirsSync(_),vi6.writeFileSync(q,...K)}AA4.exports={outputFile:fp_(Gp_),outputFileSync:Tp_}});var wA4=m((ScA,OA4)=>{var{stringify:vp_}=sv6(),{outputFile:kp_}=Wv8();async function Vp_(q,K,_={}){let z=vp_(K,_);await kp_(q,z,_)}OA4.exports=Vp_});var HA4=m((CcA,jA4)=>{var{stringify:Np_}=sv6(),{outputFileSync:yp_}=Wv8();function Ep_(q,K,_){let z=Np_(K,_);yp_(q,z,_)}jA4.exports=Ep_});var MA4=m((bcA,JA4)=>{var Lp_=ow().fromPromise,Cv=zA4();Cv.outputJson=Lp_(wA4());Cv.outputJsonSync=HA4();Cv.outputJSON=Cv.outputJson;Cv.outputJSONSync=Cv.outputJsonSync;Cv.writeJSON=Cv.writeJson;Cv.writeJSONSync=Cv.writeJsonSync;Cv.readJSON=Cv.readJson;Cv.readJSONSync=Cv.readJsonSync;JA4.exports=Cv});var fA4=m((xcA,DA4)=>{var Rp_=kA(),lC1=U6("path"),hp_=Hv8().copy,WA4=Gi6().remove,Sp_=Cu().mkdirp,Cp_=T76().pathExists,XA4=jO6();function bp_(q,K,_,z){if(typeof _==="function")z=_,_={};_=_||{};let Y=_.overwrite||_.clobber||!1;XA4.checkPaths(q,K,"move",_,($,A)=>{if($)return z($);let{srcStat:O,isChangingCase:w=!1}=A;XA4.checkParentPaths(q,O,K,"move",(j)=>{if(j)return z(j);if(xp_(K))return PA4(q,K,Y,w,z);Sp_(lC1.dirname(K),(H)=>{if(H)return z(H);return PA4(q,K,Y,w,z)})})})}function xp_(q){let K=lC1.dirname(q);return lC1.parse(K).root===K}function PA4(q,K,_,z,Y){if(z)return cC1(q,K,_,Y);if(_)return WA4(K,($)=>{if($)return Y($);return cC1(q,K,_,Y)});Cp_(K,($,A)=>{if($)return Y($);if(A)return Y(Error("dest already exists."));return cC1(q,K,_,Y)})}function cC1(q,K,_,z){Rp_.rename(q,K,(Y)=>{if(!Y)return z();if(Y.code!=="EXDEV")return z(Y);return Ip_(q,K,_,z)})}function Ip_(q,K,_,z){hp_(q,K,{overwrite:_,errorOnExist:!0},($)=>{if($)return z($);return WA4(q,z)})}DA4.exports=bp_});var kA4=m((IcA,vA4)=>{var GA4=kA(),iC1=U6("path"),up_=Hv8().copySync,TA4=Gi6().removeSync,mp_=Cu().mkdirpSync,ZA4=jO6();function pp_(q,K,_){_=_||{};let z=_.overwrite||_.clobber||!1,{srcStat:Y,isChangingCase:$=!1}=ZA4.checkPathsSync(q,K,"move",_);if(ZA4.checkParentPathsSync(q,Y,K,"move"),!Bp_(K))mp_(iC1.dirname(K));return gp_(q,K,z,$)}function Bp_(q){let K=iC1.dirname(q);return iC1.parse(K).root===K}function gp_(q,K,_,z){if(z)return nC1(q,K,_);if(_)return TA4(K),nC1(q,K,_);if(GA4.existsSync(K))throw Error("dest already exists.");return nC1(q,K,_)}function nC1(q,K,_){try{GA4.renameSync(q,K)}catch(z){if(z.code!=="EXDEV")throw z;return Fp_(q,K,_)}}function Fp_(q,K,_){return up_(q,K,{overwrite:_,errorOnExist:!0}),TA4(q)}vA4.exports=pp_});var NA4=m((ucA,VA4)=>{var Up_=ow().fromCallback;VA4.exports={move:Up_(fA4()),moveSync:kA4()}});var EA4=m((mcA,yA4)=>{yA4.exports={...wO6(),...Hv8(),...y$4(),...KA4(),...MA4(),...Cu(),...NA4(),...Wv8(),...T76(),...Gi6()}});var rC1=m((RA4)=>{Object.defineProperty(RA4,"__esModule",{value:!0});RA4.childDepType=RA4.depTypeGreater=RA4.DepType=void 0;var O9;(function(q){q[q.PROD=0]="PROD",q[q.DEV=1]="DEV",q[q.OPTIONAL=2]="OPTIONAL",q[q.DEV_OPTIONAL=3]="DEV_OPTIONAL",q[q.ROOT=4]="ROOT"})(O9=RA4.DepType||(RA4.DepType={}));var Qp_=(q,K)=>{switch(K){case O9.DEV:switch(q){case O9.OPTIONAL:case O9.PROD:case O9.ROOT:return!0;case O9.DEV:case O9.DEV_OPTIONAL:default:return!1}case O9.DEV_OPTIONAL:switch(q){case O9.OPTIONAL:case O9.PROD:case O9.ROOT:case O9.DEV:return!0;case O9.DEV_OPTIONAL:default:return!1}case O9.OPTIONAL:switch(q){case O9.PROD:case O9.ROOT:return!0;case O9.OPTIONAL:case O9.DEV:case O9.DEV_OPTIONAL:default:return!1}case O9.PROD:switch(q){case O9.ROOT:return!0;case O9.PROD:case O9.OPTIONAL:case O9.DEV:case O9.DEV_OPTIONAL:default:return!1}case O9.ROOT:switch(q){case O9.ROOT:case O9.PROD:case O9.OPTIONAL:case O9.DEV:case O9.DEV_OPTIONAL:default:return!1}default:return!1}};RA4.depTypeGreater=Qp_;var dp_=(q,K)=>{if(K===O9.ROOT)throw Error("Something went wrong, a child dependency can't be marked as the ROOT");switch(q){case O9.ROOT:return K;case O9.PROD:if(K===O9.OPTIONAL)return O9.OPTIONAL;return O9.PROD;case O9.OPTIONAL:return O9.OPTIONAL;case O9.DEV_OPTIONAL:return O9.DEV_OPTIONAL;case O9.DEV:if(K===O9.OPTIONAL)return O9.DEV_OPTIONAL;return O9.DEV}};RA4.childDepType=dp_});var CA4=m((SA4)=>{Object.defineProperty(SA4,"__esModule",{value:!0});SA4.NativeModuleType=void 0;var lp_;(function(q){q[q.NONE=0]="NONE",q[q.NODE_GYP=1]="NODE_GYP",q[q.PREBUILD=2]="PREBUILD"})(lp_=SA4.NativeModuleType||(SA4.NativeModuleType={}))});var uA4=m((xA4)=>{Object.defineProperty(xA4,"__esModule",{value:!0});xA4.Walker=void 0;var np_=XW6(),Dv8=EA4(),N76=U6("path"),PC=rC1(),aC1=CA4(),zr=np_("flora-colossus");class bA4{constructor(q){if(this.modules=[],this.walkHistory=new Set,this.cache=null,!q||typeof q!=="string")throw Error("modulePath must be provided as a string");zr(`creating walker with rootModule=${q}`),this.rootModule=q}relativeModule(q,K){return N76.resolve(q,"node_modules",K)}async loadPackageJSON(q){let K=N76.resolve(q,"package.json");if(await Dv8.pathExists(K)){let _=await Dv8.readJson(K);if(!_.dependencies)_.dependencies={};if(!_.devDependencies)_.devDependencies={};if(!_.optionalDependencies)_.optionalDependencies={};return _}return null}async walkDependenciesForModuleInModule(q,K,_){let z=K,Y=null,$=null;while(!Y&&this.relativeModule(z,q)!==$)if($=this.relativeModule(z,q),await Dv8.pathExists($))Y=$;else{if(N76.basename(N76.dirname(z))!=="node_modules")z=N76.dirname(z);z=N76.dirname(N76.dirname(z))}if(!Y&&_!==PC.DepType.OPTIONAL&&_!==PC.DepType.DEV_OPTIONAL)throw Error(`Failed to locate module "${q}" from "${K}" |
| 848 | |
| 849 | This normally means that either you have deleted this package already somehow (check your ignore settings if using electron-packager). Or your module installation failed.`);if(Y)await this.walkDependenciesForModule(Y,_)}async detectNativeModuleType(q,K){if(K.dependencies["prebuild-install"])return aC1.NativeModuleType.PREBUILD;else if(await Dv8.pathExists(N76.join(q,"binding.gyp")))return aC1.NativeModuleType.NODE_GYP;return aC1.NativeModuleType.NONE}async walkDependenciesForModule(q,K){if(zr("walk reached:",q," Type is:",PC.DepType[K]),this.walkHistory.has(q)){zr("already walked this route");let z=this.modules.find((Y)=>Y.path===q);if((0,PC.depTypeGreater)(K,z.depType))zr(`existing module has a type of "${z.depType}", new module type would be "${K}" therefore updating`),z.depType=K;return}let _=await this.loadPackageJSON(q);if(!_){zr("walk hit a dead end, this module is incomplete");return}this.walkHistory.add(q),this.modules.push({depType:K,nativeModuleType:await this.detectNativeModuleType(q,_),path:q,name:_.name});for(let z in _.dependencies){if(z in _.optionalDependencies){zr(`found ${z} in prod deps of ${q} but it is also marked optional`);continue}await this.walkDependenciesForModuleInModule(z,q,(0,PC.childDepType)(K,PC.DepType.PROD))}for(let z in _.optionalDependencies)await this.walkDependenciesForModuleInModule(z,q,(0,PC.childDepType)(K,PC.DepType.OPTIONAL));if(K===PC.DepType.ROOT){zr("we're still at the beginning, walking down the dev route");for(let z in _.devDependencies)await this.walkDependenciesForModuleInModule(z,q,(0,PC.childDepType)(K,PC.DepType.DEV))}}async walkTree(){if(zr("starting tree walk"),!this.cache)this.cache=new Promise(async(q,K)=>{this.modules=[];try{await this.walkDependenciesForModule(this.rootModule,PC.DepType.ROOT)}catch(_){K(_);return}q(this.modules)});else zr("tree walk in progress / completed already, waiting for existing walk to complete");return await this.cache}getRootModule(){return this.rootModule}}xA4.Walker=bA4});var sC1=m((y76)=>{var ip_=y76&&y76.__createBinding||(Object.create?function(q,K,_,z){if(z===void 0)z=_;var Y=Object.getOwnPropertyDescriptor(K,_);if(!Y||("get"in Y?!K.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return K[_]}};Object.defineProperty(q,z,Y)}:function(q,K,_,z){if(z===void 0)z=_;q[z]=K[_]}),mA4=y76&&y76.__exportStar||function(q,K){for(var _ in q)if(_!=="default"&&!Object.prototype.hasOwnProperty.call(K,_))ip_(K,q,_)};Object.defineProperty(y76,"__esModule",{value:!0});mA4(uA4(),y76);mA4(rC1(),y76)});var FA4=m((BA4)=>{Object.defineProperty(BA4,"__esModule",{value:!0});BA4.DestroyerOfModules=void 0;var fv8=bY4(),Kk6=U6("path"),tC1=sC1();class pA4{constructor({rootDirectory:q,walker:K,shouldKeepModuleTest:_}){if(q)this.walker=new tC1.Walker(q);else if(K)this.walker=K;else throw Error("Must either provide rootDirectory or walker argument");if(_)this.shouldKeepFn=_}async destroyModule(q,K){if(K.get(q)){let z=Kk6.resolve(q,"node_modules");if(!await fv8.pathExists(z))return;for(let Y of await fv8.readdir(z))if(Y.startsWith("@"))for(let $ of await fv8.readdir(Kk6.resolve(z,Y)))await this.destroyModule(Kk6.resolve(z,Y,$),K);else await this.destroyModule(Kk6.resolve(z,Y),K)}else await fv8.remove(q)}async collectKeptModules({relativePaths:q=!1}){let K=await this.walker.walkTree(),_=new Map,z=Kk6.resolve(this.walker.getRootModule());for(let Y of K)if(this.shouldKeepModule(Y)){let $=Y.path;if(q)$=$.replace(`${z}${Kk6.sep}`,"");_.set($,Y)}return _}async destroy(){await this.destroyModule(this.walker.getRootModule(),await this.collectKeptModules({relativePaths:!1}))}shouldKeepModule(q){let K=q.depType===tC1.DepType.DEV||q.depType===tC1.DepType.DEV_OPTIONAL;return this.shouldKeepFn?this.shouldKeepFn(q,K):!K}}BA4.DestroyerOfModules=pA4});var QA4=m((E76)=>{var rp_=E76&&E76.__createBinding||(Object.create?function(q,K,_,z){if(z===void 0)z=_;var Y=Object.getOwnPropertyDescriptor(K,_);if(!Y||("get"in Y?!K.__esModule:Y.writable||Y.configurable))Y={enumerable:!0,get:function(){return K[_]}};Object.defineProperty(q,z,Y)}:function(q,K,_,z){if(z===void 0)z=_;q[z]=K[_]}),UA4=E76&&E76.__exportStar||function(q,K){for(var _ in q)if(_!=="default"&&!Object.prototype.hasOwnProperty.call(K,_))rp_(K,q,_)};Object.defineProperty(E76,"__esModule",{value:!0});UA4(FA4(),E76);UA4(sC1(),E76)});var lA4=m((dcA,cA4)=>{var op_=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],ap_=["B","kiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],sp_=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],tp_=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],dA4=(q,K,_)=>{let z=q;if(typeof K==="string"||Array.isArray(K))z=q.toLocaleString(K,_);else if(K===!0||_!==void 0)z=q.toLocaleString(void 0,_);return z};cA4.exports=(q,K)=>{if(!Number.isFinite(q))throw TypeError(`Expected a finite number, got ${typeof q}: ${q}`);K=Object.assign({bits:!1,binary:!1},K);let _=K.bits?K.binary?tp_:sp_:K.binary?ap_:op_;if(K.signed&&q===0)return` 0 ${_[0]}`;let z=q<0,Y=z?"-":K.signed?"+":"";if(z)q=-q;let $;if(K.minimumFractionDigits!==void 0)$={minimumFractionDigits:K.minimumFractionDigits};if(K.maximumFractionDigits!==void 0)$=Object.assign({maximumFractionDigits:K.maximumFractionDigits},$);if(q<1){let j=dA4(q,K.locale,$);return Y+j+" "+_[0]}let A=Math.min(Math.floor(K.binary?Math.log(q)/Math.log(1024):Math.log10(q)/3),_.length-1);if(q/=Math.pow(K.binary?1024:1000,A),!$)q=q.toPrecision(3);let O=dA4(Number(q),K.locale,$),w=_[A];return Y+O+" "+w}});var E_=m((ccA,nA4)=>{nA4.exports={options:{usePureJavaScript:!1}}});var oA4=m((lcA,rA4)=>{var eC1={};rA4.exports=eC1;var iA4={};eC1.encode=function(q,K,_){if(typeof K!=="string")throw TypeError('"alphabet" must be a string.');if(_!==void 0&&typeof _!=="number")throw TypeError('"maxline" must be a number.');var z="";if(!(q instanceof Uint8Array))z=ep_(q,K);else{var Y=0,$=K.length,A=K.charAt(0),O=[0];for(Y=0;Y<q.length;++Y){for(var w=0,j=q[Y];w<O.length;++w)j+=O[w]<<8,O[w]=j%$,j=j/$|0;while(j>0)O.push(j%$),j=j/$|0}for(Y=0;q[Y]===0&&Y<q.length-1;++Y)z+=A;for(Y=O.length-1;Y>=0;--Y)z+=K[O[Y]]}if(_){var H=new RegExp(".{1,"+_+"}","g");z=z.match(H).join(`\r |
| 850 | `)}return z};eC1.decode=function(q,K){if(typeof q!=="string")throw TypeError('"input" must be a string.');if(typeof K!=="string")throw TypeError('"alphabet" must be a string.');var _=iA4[K];if(!_){_=iA4[K]=[];for(var z=0;z<K.length;++z)_[K.charCodeAt(z)]=z}q=q.replace(/\s/g,"");var Y=K.length,$=K.charAt(0),A=[0];for(var z=0;z<q.length;z++){var O=_[q.charCodeAt(z)];if(O===void 0)return;for(var w=0,j=O;w<A.length;++w)j+=A[w]*Y,A[w]=j&255,j>>=8;while(j>0)A.push(j&255),j>>=8}for(var H=0;q[H]===$&&H<q.length-1;++H)A.push(0);if(typeof Buffer<"u")return Buffer.from(A.reverse());return new Uint8Array(A.reverse())};function ep_(q,K){var _=0,z=K.length,Y=K.charAt(0),$=[0];for(_=0;_<q.length();++_){for(var A=0,O=q.at(_);A<$.length;++A)O+=$[A]<<8,$[A]=O%z,O=O/z|0;while(O>0)$.push(O%z),O=O/z|0}var w="";for(_=0;q.at(_)===0&&_<q.length()-1;++_)w+=Y;for(_=$.length-1;_>=0;--_)w+=K[$[_]];return w}});var _$=m((ncA,eA4)=>{var aA4=E_(),sA4=oA4(),e8=eA4.exports=aA4.util=aA4.util||{};(function(){if(typeof process<"u"&&process.nextTick){if(e8.nextTick=process.nextTick,typeof setImmediate==="function")e8.setImmediate=setImmediate;else e8.setImmediate=e8.nextTick;return}if(typeof setImmediate==="function"){e8.setImmediate=function(){return setImmediate.apply(void 0,arguments)},e8.nextTick=function(O){return setImmediate(O)};return}if(e8.setImmediate=function(O){setTimeout(O,0)},typeof window<"u"&&typeof window.postMessage==="function"){let O=function(w){if(w.source===window&&w.data===q){w.stopPropagation();var j=K.slice();K.length=0,j.forEach(function(H){H()})}};var A=O,q="forge.setImmediate",K=[];e8.setImmediate=function(w){if(K.push(w),K.length===1)window.postMessage(q,"*")},window.addEventListener("message",O,!0)}if(typeof MutationObserver<"u"){var _=Date.now(),z=!0,Y=document.createElement("div"),K=[];new MutationObserver(function(){var w=K.slice();K.length=0,w.forEach(function(j){j()})}).observe(Y,{attributes:!0});var $=e8.setImmediate;e8.setImmediate=function(w){if(Date.now()-_>15)_=Date.now(),$(w);else if(K.push(w),K.length===1)Y.setAttribute("a",z=!z)}}e8.nextTick=e8.setImmediate})();e8.isNodejs=typeof process<"u"&&process.versions&&process.versions.node;e8.globalScope=function(){if(e8.isNodejs)return global;return typeof self>"u"?window:self}();e8.isArray=Array.isArray||function(q){return Object.prototype.toString.call(q)==="[object Array]"};e8.isArrayBuffer=function(q){return typeof ArrayBuffer<"u"&&q instanceof ArrayBuffer};e8.isArrayBufferView=function(q){return q&&e8.isArrayBuffer(q.buffer)&&q.byteLength!==void 0};function ki6(q){if(!(q===8||q===16||q===24||q===32))throw Error("Only 8, 16, 24, or 32 bits supported: "+q)}e8.ByteBuffer=qb1;function qb1(q){if(this.data="",this.read=0,typeof q==="string")this.data=q;else if(e8.isArrayBuffer(q)||e8.isArrayBufferView(q))if(typeof Buffer<"u"&&q instanceof Buffer)this.data=q.toString("binary");else{var K=new Uint8Array(q);try{this.data=String.fromCharCode.apply(null,K)}catch(z){for(var _=0;_<K.length;++_)this.putByte(K[_])}}else if(q instanceof qb1||typeof q==="object"&&typeof q.data==="string"&&typeof q.read==="number")this.data=q.data,this.read=q.read;this._constructedStringLength=0}e8.ByteStringBuffer=qb1;var qB_=4096;e8.ByteStringBuffer.prototype._optimizeConstructedString=function(q){if(this._constructedStringLength+=q,this._constructedStringLength>qB_)this.data.substr(0,1),this._constructedStringLength=0};e8.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read};e8.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0};e8.ByteStringBuffer.prototype.putByte=function(q){return this.putBytes(String.fromCharCode(q))};e8.ByteStringBuffer.prototype.fillWithByte=function(q,K){q=String.fromCharCode(q);var _=this.data;while(K>0){if(K&1)_+=q;if(K>>>=1,K>0)q+=q}return this.data=_,this._optimizeConstructedString(K),this};e8.ByteStringBuffer.prototype.putBytes=function(q){return this.data+=q,this._optimizeConstructedString(q.length),this};e8.ByteStringBuffer.prototype.putString=function(q){return this.putBytes(e8.encodeUtf8(q))};e8.ByteStringBuffer.prototype.putInt16=function(q){return this.putBytes(String.fromCharCode(q>>8&255)+String.fromCharCode(q&255))};e8.ByteStringBuffer.prototype.putInt24=function(q){return this.putBytes(String.fromCharCode(q>>16&255)+String.fromCharCode(q>>8&255)+String.fromCharCode(q&255))};e8.ByteStringBuffer.prototype.putInt32=function(q){return this.putBytes(String.fromCharCode(q>>24&255)+String.fromCharCode(q>>16&255)+String.fromCharCode(q>>8&255)+String.fromCharCode(q&255))};e8.ByteStringBuffer.prototype.putInt16Le=function(q){return this.putBytes(String.fromCharCode(q&255)+String.fromCharCode(q>>8&255))};e8.ByteStringBuffer.prototype.putInt24Le=function(q){return this.putBytes(String.fromCharCode(q&255)+String.fromCharCode(q>>8&255)+String.fromCharCode(q>>16&255))};e8.ByteStringBuffer.prototype.putInt32Le=function(q){return this.putBytes(String.fromCharCode(q&255)+String.fromCharCode(q>>8&255)+String.fromCharCode(q>>16&255)+String.fromCharCode(q>>24&255))};e8.ByteStringBuffer.prototype.putInt=function(q,K){ki6(K);var _="";do K-=8,_+=String.fromCharCode(q>>K&255);while(K>0);return this.putBytes(_)};e8.ByteStringBuffer.prototype.putSignedInt=function(q,K){if(q<0)q+=2<<K-1;return this.putInt(q,K)};e8.ByteStringBuffer.prototype.putBuffer=function(q){return this.putBytes(q.getBytes())};e8.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)};e8.ByteStringBuffer.prototype.getInt16=function(){var q=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,q};e8.ByteStringBuffer.prototype.getInt24=function(){var q=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,q};e8.ByteStringBuffer.prototype.getInt32=function(){var q=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,q};e8.ByteStringBuffer.prototype.getInt16Le=function(){var q=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,q};e8.ByteStringBuffer.prototype.getInt24Le=function(){var q=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,q};e8.ByteStringBuffer.prototype.getInt32Le=function(){var q=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,q};e8.ByteStringBuffer.prototype.getInt=function(q){ki6(q);var K=0;do K=(K<<8)+this.data.charCodeAt(this.read++),q-=8;while(q>0);return K};e8.ByteStringBuffer.prototype.getSignedInt=function(q){var K=this.getInt(q),_=2<<q-2;if(K>=_)K-=_<<1;return K};e8.ByteStringBuffer.prototype.getBytes=function(q){var K;if(q)q=Math.min(this.length(),q),K=this.data.slice(this.read,this.read+q),this.read+=q;else if(q===0)K="";else K=this.read===0?this.data:this.data.slice(this.read),this.clear();return K};e8.ByteStringBuffer.prototype.bytes=function(q){return typeof q>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+q)};e8.ByteStringBuffer.prototype.at=function(q){return this.data.charCodeAt(this.read+q)};e8.ByteStringBuffer.prototype.setAt=function(q,K){return this.data=this.data.substr(0,this.read+q)+String.fromCharCode(K)+this.data.substr(this.read+q+1),this};e8.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)};e8.ByteStringBuffer.prototype.copy=function(){var q=e8.createBuffer(this.data);return q.read=this.read,q};e8.ByteStringBuffer.prototype.compact=function(){if(this.read>0)this.data=this.data.slice(this.read),this.read=0;return this};e8.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this};e8.ByteStringBuffer.prototype.truncate=function(q){var K=Math.max(0,this.length()-q);return this.data=this.data.substr(this.read,K),this.read=0,this};e8.ByteStringBuffer.prototype.toHex=function(){var q="";for(var K=this.read;K<this.data.length;++K){var _=this.data.charCodeAt(K);if(_<16)q+="0";q+=_.toString(16)}return q};e8.ByteStringBuffer.prototype.toString=function(){return e8.decodeUtf8(this.bytes())};function KB_(q,K){K=K||{},this.read=K.readOffset||0,this.growSize=K.growSize||1024;var _=e8.isArrayBuffer(q),z=e8.isArrayBufferView(q);if(_||z){if(_)this.data=new DataView(q);else this.data=new DataView(q.buffer,q.byteOffset,q.byteLength);this.write="writeOffset"in K?K.writeOffset:this.data.byteLength;return}if(this.data=new DataView(new ArrayBuffer(0)),this.write=0,q!==null&&q!==void 0)this.putBytes(q);if("writeOffset"in K)this.write=K.writeOffset}e8.DataBuffer=KB_;e8.DataBuffer.prototype.length=function(){return this.write-this.read};e8.DataBuffer.prototype.isEmpty=function(){return this.length()<=0};e8.DataBuffer.prototype.accommodate=function(q,K){if(this.length()>=q)return this;K=Math.max(K||this.growSize,q);var _=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),z=new Uint8Array(this.length()+K);return z.set(_),this.data=new DataView(z.buffer),this};e8.DataBuffer.prototype.putByte=function(q){return this.accommodate(1),this.data.setUint8(this.write++,q),this};e8.DataBuffer.prototype.fillWithByte=function(q,K){this.accommodate(K);for(var _=0;_<K;++_)this.data.setUint8(q);return this};e8.DataBuffer.prototype.putBytes=function(q,K){if(e8.isArrayBufferView(q)){var _=new Uint8Array(q.buffer,q.byteOffset,q.byteLength),z=_.byteLength-_.byteOffset;this.accommodate(z);var Y=new Uint8Array(this.data.buffer,this.write);return Y.set(_),this.write+=z,this}if(e8.isArrayBuffer(q)){var _=new Uint8Array(q);this.accommodate(_.byteLength);var Y=new Uint8Array(this.data.buffer);return Y.set(_,this.write),this.write+=_.byteLength,this}if(q instanceof e8.DataBuffer||typeof q==="object"&&typeof q.read==="number"&&typeof q.write==="number"&&e8.isArrayBufferView(q.data)){var _=new Uint8Array(q.data.byteLength,q.read,q.length());this.accommodate(_.byteLength);var Y=new Uint8Array(q.data.byteLength,this.write);return Y.set(_),this.write+=_.byteLength,this}if(q instanceof e8.ByteStringBuffer)q=q.data,K="binary";if(K=K||"binary",typeof q==="string"){var $;if(K==="hex")return this.accommodate(Math.ceil(q.length/2)),$=new Uint8Array(this.data.buffer,this.write),this.write+=e8.binary.hex.decode(q,$,this.write),this;if(K==="base64")return this.accommodate(Math.ceil(q.length/4)*3),$=new Uint8Array(this.data.buffer,this.write),this.write+=e8.binary.base64.decode(q,$,this.write),this;if(K==="utf8")q=e8.encodeUtf8(q),K="binary";if(K==="binary"||K==="raw")return this.accommodate(q.length),$=new Uint8Array(this.data.buffer,this.write),this.write+=e8.binary.raw.decode($),this;if(K==="utf16")return this.accommodate(q.length*2),$=new Uint16Array(this.data.buffer,this.write),this.write+=e8.text.utf16.encode($),this;throw Error("Invalid encoding: "+K)}throw Error("Invalid parameter: "+q)};e8.DataBuffer.prototype.putBuffer=function(q){return this.putBytes(q),q.clear(),this};e8.DataBuffer.prototype.putString=function(q){return this.putBytes(q,"utf16")};e8.DataBuffer.prototype.putInt16=function(q){return this.accommodate(2),this.data.setInt16(this.write,q),this.write+=2,this};e8.DataBuffer.prototype.putInt24=function(q){return this.accommodate(3),this.data.setInt16(this.write,q>>8&65535),this.data.setInt8(this.write,q>>16&255),this.write+=3,this};e8.DataBuffer.prototype.putInt32=function(q){return this.accommodate(4),this.data.setInt32(this.write,q),this.write+=4,this};e8.DataBuffer.prototype.putInt16Le=function(q){return this.accommodate(2),this.data.setInt16(this.write,q,!0),this.write+=2,this};e8.DataBuffer.prototype.putInt24Le=function(q){return this.accommodate(3),this.data.setInt8(this.write,q>>16&255),this.data.setInt16(this.write,q>>8&65535,!0),this.write+=3,this};e8.DataBuffer.prototype.putInt32Le=function(q){return this.accommodate(4),this.data.setInt32(this.write,q,!0),this.write+=4,this};e8.DataBuffer.prototype.putInt=function(q,K){ki6(K),this.accommodate(K/8);do K-=8,this.data.setInt8(this.write++,q>>K&255);while(K>0);return this};e8.DataBuffer.prototype.putSignedInt=function(q,K){if(ki6(K),this.accommodate(K/8),q<0)q+=2<<K-1;return this.putInt(q,K)};e8.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)};e8.DataBuffer.prototype.getInt16=function(){var q=this.data.getInt16(this.read);return this.read+=2,q};e8.DataBuffer.prototype.getInt24=function(){var q=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,q};e8.DataBuffer.prototype.getInt32=function(){var q=this.data.getInt32(this.read);return this.read+=4,q};e8.DataBuffer.prototype.getInt16Le=function(){var q=this.data.getInt16(this.read,!0);return this.read+=2,q};e8.DataBuffer.prototype.getInt24Le=function(){var q=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,q};e8.DataBuffer.prototype.getInt32Le=function(){var q=this.data.getInt32(this.read,!0);return this.read+=4,q};e8.DataBuffer.prototype.getInt=function(q){ki6(q);var K=0;do K=(K<<8)+this.data.getInt8(this.read++),q-=8;while(q>0);return K};e8.DataBuffer.prototype.getSignedInt=function(q){var K=this.getInt(q),_=2<<q-2;if(K>=_)K-=_<<1;return K};e8.DataBuffer.prototype.getBytes=function(q){var K;if(q)q=Math.min(this.length(),q),K=this.data.slice(this.read,this.read+q),this.read+=q;else if(q===0)K="";else K=this.read===0?this.data:this.data.slice(this.read),this.clear();return K};e8.DataBuffer.prototype.bytes=function(q){return typeof q>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+q)};e8.DataBuffer.prototype.at=function(q){return this.data.getUint8(this.read+q)};e8.DataBuffer.prototype.setAt=function(q,K){return this.data.setUint8(q,K),this};e8.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)};e8.DataBuffer.prototype.copy=function(){return new e8.DataBuffer(this)};e8.DataBuffer.prototype.compact=function(){if(this.read>0){var q=new Uint8Array(this.data.buffer,this.read),K=new Uint8Array(q.byteLength);K.set(q),this.data=new DataView(K),this.write-=this.read,this.read=0}return this};e8.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this};e8.DataBuffer.prototype.truncate=function(q){return this.write=Math.max(0,this.length()-q),this.read=Math.min(this.read,this.write),this};e8.DataBuffer.prototype.toHex=function(){var q="";for(var K=this.read;K<this.data.byteLength;++K){var _=this.data.getUint8(K);if(_<16)q+="0";q+=_.toString(16)}return q};e8.DataBuffer.prototype.toString=function(q){var K=new Uint8Array(this.data,this.read,this.length());if(q=q||"utf8",q==="binary"||q==="raw")return e8.binary.raw.encode(K);if(q==="hex")return e8.binary.hex.encode(K);if(q==="base64")return e8.binary.base64.encode(K);if(q==="utf8")return e8.text.utf8.decode(K);if(q==="utf16")return e8.text.utf16.decode(K);throw Error("Invalid encoding: "+q)};e8.createBuffer=function(q,K){if(K=K||"raw",q!==void 0&&K==="utf8")q=e8.encodeUtf8(q);return new e8.ByteBuffer(q)};e8.fillString=function(q,K){var _="";while(K>0){if(K&1)_+=q;if(K>>>=1,K>0)q+=q}return _};e8.xorBytes=function(q,K,_){var z="",Y="",$="",A=0,O=0;for(;_>0;--_,++A){if(Y=q.charCodeAt(A)^K.charCodeAt(A),O>=10)z+=$,$="",O=0;$+=String.fromCharCode(Y),++O}return z+=$,z};e8.hexToBytes=function(q){var K="",_=0;if(q.length&!0)_=1,K+=String.fromCharCode(parseInt(q[0],16));for(;_<q.length;_+=2)K+=String.fromCharCode(parseInt(q.substr(_,2),16));return K};e8.bytesToHex=function(q){return e8.createBuffer(q).toHex()};e8.int32ToBytes=function(q){return String.fromCharCode(q>>24&255)+String.fromCharCode(q>>16&255)+String.fromCharCode(q>>8&255)+String.fromCharCode(q&255)};var L76="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",R76=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],tA4="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";e8.encode64=function(q,K){var _="",z="",Y,$,A,O=0;while(O<q.length){if(Y=q.charCodeAt(O++),$=q.charCodeAt(O++),A=q.charCodeAt(O++),_+=L76.charAt(Y>>2),_+=L76.charAt((Y&3)<<4|$>>4),isNaN($))_+="==";else _+=L76.charAt(($&15)<<2|A>>6),_+=isNaN(A)?"=":L76.charAt(A&63);if(K&&_.length>K)z+=_.substr(0,K)+`\r |
| 851 | `,_=_.substr(K)}return z+=_,z};e8.decode64=function(q){q=q.replace(/[^A-Za-z0-9\+\/\=]/g,"");var K="",_,z,Y,$,A=0;while(A<q.length)if(_=R76[q.charCodeAt(A++)-43],z=R76[q.charCodeAt(A++)-43],Y=R76[q.charCodeAt(A++)-43],$=R76[q.charCodeAt(A++)-43],K+=String.fromCharCode(_<<2|z>>4),Y!==64){if(K+=String.fromCharCode((z&15)<<4|Y>>2),$!==64)K+=String.fromCharCode((Y&3)<<6|$)}return K};e8.encodeUtf8=function(q){return unescape(encodeURIComponent(q))};e8.decodeUtf8=function(q){return decodeURIComponent(escape(q))};e8.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:sA4.encode,decode:sA4.decode}};e8.binary.raw.encode=function(q){return String.fromCharCode.apply(null,q)};e8.binary.raw.decode=function(q,K,_){var z=K;if(!z)z=new Uint8Array(q.length);_=_||0;var Y=_;for(var $=0;$<q.length;++$)z[Y++]=q.charCodeAt($);return K?Y-_:z};e8.binary.hex.encode=e8.bytesToHex;e8.binary.hex.decode=function(q,K,_){var z=K;if(!z)z=new Uint8Array(Math.ceil(q.length/2));_=_||0;var Y=0,$=_;if(q.length&1)Y=1,z[$++]=parseInt(q[0],16);for(;Y<q.length;Y+=2)z[$++]=parseInt(q.substr(Y,2),16);return K?$-_:z};e8.binary.base64.encode=function(q,K){var _="",z="",Y,$,A,O=0;while(O<q.byteLength){if(Y=q[O++],$=q[O++],A=q[O++],_+=L76.charAt(Y>>2),_+=L76.charAt((Y&3)<<4|$>>4),isNaN($))_+="==";else _+=L76.charAt(($&15)<<2|A>>6),_+=isNaN(A)?"=":L76.charAt(A&63);if(K&&_.length>K)z+=_.substr(0,K)+`\r |
no test coverage detected