ado-npm-auth 0.3.1 → 0.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,130 +1,147 @@
1
- var iC=Object.create;var Fh=Object.defineProperty;var sC=Object.getOwnPropertyDescriptor;var oC=Object.getOwnPropertyNames;var aC=Object.getPrototypeOf,uC=Object.prototype.hasOwnProperty;var M=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var F=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var cC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of oC(t))!uC.call(e,i)&&i!==r&&Fh(e,i,{get:()=>t[i],enumerable:!(n=sC(t,i))||n.enumerable});return e};var kh=(e,t,r)=>(r=e!=null?iC(aC(e)):{},cC(t||!e||!e.__esModule?Fh(r,"default",{value:e,enumerable:!0}):r,e));var Os=F(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.getPackageDependencies=void 0;function lC(e,t,r={withDevDependencies:!0}){let n={...e.dependencies,...r.withDevDependencies&&e.devDependencies,...r.withPeerDependencies&&e.peerDependencies};return Object.keys(t).filter(i=>!!n[i])}bs.getPackageDependencies=lC});var Ph=F(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.getTransitiveProviders=vr.getTransitiveConsumers=vr.getDependentMap=void 0;var fC=Os(),La=new Map;function hC(e,t=[]){return JSON.stringify({packages:e,scope:t})}function Na(e,t=[]){let r=hC(e,t);if(La.has(r))return La.get(r);let n=[],i=new Set,s=t.length>0?[...t]:Object.keys(e);for(;s.length>0;){let o=s.pop();if(i.has(o))continue;i.add(o);let a=e[o],u=(0,fC.getPackageDependencies)(a,e);if(u.length>0)for(let c of u)s.push(c),n.push([c,o]);else n.push([null,o])}return La.set(r,n),n}function dC(e){let t=Na(e),r=new Map;for(let[n,i]of t)r.has(i)||r.set(i,new Set),n&&r.get(i).add(n);return r}vr.getDependentMap=dC;function pC(e,t,r=[]){let n=Na(t,r),i=[...e],s=new Set;for(;i.length>0;){let o=i.shift();if(!s.has(o)){s.add(o);for(let[a,u]of n)a===o&&i.push(u)}}return[...s].filter(o=>!e.includes(o))}vr.getTransitiveConsumers=pC;function gC(e,t){let r=Na(t),n=[...e],i=new Set;for(;n.length>0;){let s=n.shift();if(!i.has(s)){i.add(s);for(let[o,a]of r)a===s&&o&&n.push(o)}}return[...i].filter(s=>!e.includes(s))}vr.getTransitiveProviders=gC});var Dh=F(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.getInternalDeps=At.getTransitiveConsumers=At.getTransitiveDependents=At.getTransitiveProviders=At.getTransitiveDependencies=void 0;var Rs=Ph();Object.defineProperty(At,"getTransitiveConsumers",{enumerable:!0,get:function(){return Rs.getTransitiveConsumers}});Object.defineProperty(At,"getTransitiveProviders",{enumerable:!0,get:function(){return Rs.getTransitiveProviders}});var mC=Os();At.getTransitiveDependencies=Rs.getTransitiveProviders;At.getTransitiveDependents=Rs.getTransitiveConsumers;At.getInternalDeps=mC.getPackageDependencies});var Th=F(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.infoFromPackageJson=void 0;function yC(e,t){return{packageJsonPath:t,...e}}Fs.infoFromPackageJson=yC});var Lh=F((nj,Ih)=>{var Ba=class{constructor(t){this.value=t,this.next=void 0}},$a=class{constructor(){this.clear()}enqueue(t){let r=new Ba(t);this._head?(this._tail.next=r,this._tail=r):(this._head=r,this._tail=r),this._size++}dequeue(){let t=this._head;if(t)return this._head=this._head.next,this._size--,t.value}clear(){this._head=void 0,this._tail=void 0,this._size=0}get size(){return this._size}*[Symbol.iterator](){let t=this._head;for(;t;)yield t.value,t=t.next}};Ih.exports=$a});var Bh=F((ij,Nh)=>{"use strict";var vC=Lh(),EC=e=>{if(!((Number.isInteger(e)||e===1/0)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");let t=new vC,r=0,n=()=>{r--,t.size>0&&t.dequeue()()},i=async(a,u,...c)=>{r++;let f=(async()=>a(...c))();u(f);try{await f}catch{}n()},s=(a,u,...c)=>{t.enqueue(i.bind(null,a,u,...c)),(async()=>(await Promise.resolve(),r<e&&t.size>0&&t.dequeue()()))()},o=(a,...u)=>new Promise(c=>{s(a,c,...u)});return Object.defineProperties(o,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),o};Nh.exports=EC});var jh=F((sj,Mh)=>{"use strict";var $h=Bh(),ks=class extends Error{constructor(t){super(),this.value=t}},AC=async(e,t)=>t(await e),SC=async e=>{let t=await Promise.all(e);if(t[1]===!0)throw new ks(t[0]);return!1},wC=async(e,t,r)=>{r={concurrency:1/0,preserveOrder:!0,...r};let n=$h(r.concurrency),i=[...e].map(o=>[o,n(AC,o,t)]),s=$h(r.preserveOrder?1:1/0);try{await Promise.all(i.map(o=>s(SC,o)))}catch(o){if(o instanceof ks)return o.value;throw o}};Mh.exports=wC});var Yh=F((oj,Ma)=>{"use strict";var qh=M("path"),Ps=M("fs"),{promisify:Hh}=M("util"),CC=jh(),_C=Hh(Ps.stat),xC=Hh(Ps.lstat),Gh={directory:"isDirectory",file:"isFile"};function Uh({type:e}){if(!(e in Gh))throw new Error(`Invalid type specified: ${e}`)}var Wh=(e,t)=>e===void 0||t[Gh[e]]();Ma.exports=async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:!0,...t},Uh(t);let r=t.allowSymlinks?_C:xC;return CC(e,async n=>{try{let i=await r(qh.resolve(t.cwd,n));return Wh(t.type,i)}catch{return!1}},t)};Ma.exports.sync=(e,t)=>{t={cwd:process.cwd(),allowSymlinks:!0,type:"file",...t},Uh(t);let r=t.allowSymlinks?Ps.statSync:Ps.lstatSync;for(let n of e)try{let i=r(qh.resolve(t.cwd,n));if(Wh(t.type,i))return n}catch{}}});var Vh=F((aj,ja)=>{"use strict";var zh=M("fs"),{promisify:bC}=M("util"),OC=bC(zh.access);ja.exports=async e=>{try{return await OC(e),!0}catch{return!1}};ja.exports.sync=e=>{try{return zh.accessSync(e),!0}catch{return!1}}});var Cn=F((uj,wn)=>{"use strict";var Er=M("path"),Ds=Yh(),Kh=Vh(),qa=Symbol("findUp.stop");wn.exports=async(e,t={})=>{let r=Er.resolve(t.cwd||""),{root:n}=Er.parse(r),i=[].concat(e),s=async o=>{if(typeof e!="function")return Ds(i,o);let a=await e(o.cwd);return typeof a=="string"?Ds([a],o):a};for(;;){let o=await s({...t,cwd:r});if(o===qa)return;if(o)return Er.resolve(r,o);if(r===n)return;r=Er.dirname(r)}};wn.exports.sync=(e,t={})=>{let r=Er.resolve(t.cwd||""),{root:n}=Er.parse(r),i=[].concat(e),s=o=>{if(typeof e!="function")return Ds.sync(i,o);let a=e(o.cwd);return typeof a=="string"?Ds.sync([a],o):a};for(;;){let o=s({...t,cwd:r});if(o===qa)return;if(o)return Er.resolve(r,o);if(r===n)return;r=Er.dirname(r)}};wn.exports.exists=Kh;wn.exports.sync.exists=Kh.sync;wn.exports.stop=qa});var Ts=F(Ar=>{"use strict";var Xh=Ar&&Ar.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ar,"__esModule",{value:!0});Ar.getWorkspaceImplementation=Ar.getWorkspaceImplementationAndLockFile=void 0;var RC=Xh(Cn()),FC=Xh(M("path")),Qh={};function Jh(e,t=Qh){if(t[e])return t[e];let r=RC.default.sync(["lerna.json","rush.json","yarn.lock","pnpm-workspace.yaml","package-lock.json"],{cwd:e});if(r){switch(FC.default.basename(r)){case"lerna.json":t[e]={implementation:"lerna",lockFile:r};break;case"yarn.lock":t[e]={implementation:"yarn",lockFile:r};break;case"pnpm-workspace.yaml":t[e]={implementation:"pnpm",lockFile:r};break;case"rush.json":t[e]={implementation:"rush",lockFile:r};break;case"package-lock.json":t[e]={implementation:"npm",lockFile:r};break}return t[e]}}Ar.getWorkspaceImplementationAndLockFile=Jh;function kC(e,t=Qh){var r;return(r=Jh(e,t))===null||r===void 0?void 0:r.implementation}Ar.getWorkspaceImplementation=kC});var ed=F((lj,Zh)=>{"use strict";Zh.exports=(...e)=>[...new Set([].concat(...e))]});var Ha=F((fj,nd)=>{"use strict";var PC=M("stream"),td=PC.PassThrough,DC=Array.prototype.slice;nd.exports=TC;function TC(){let e=[],t=DC.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=td(n);function a(){for(let f=0,l=arguments.length;f<l;f++)e.push(rd(arguments[f],n));return u(),this}function u(){if(r)return;r=!0;let f=e.shift();if(!f){process.nextTick(c);return}Array.isArray(f)||(f=[f]);let l=f.length+1;function h(){--l>0||(r=!1,u())}function d(g){function S(){g.removeListener("merge2UnpipeEnd",S),g.removeListener("end",S),s&&g.removeListener("error",w),h()}function w(k){o.emit("error",k)}if(g._readableState.endEmitted)return h();g.on("merge2UnpipeEnd",S),g.on("end",S),s&&g.on("error",w),g.pipe(o,{end:!1}),g.resume()}for(let g=0;g<f.length;g++)d(f[g]);h()}function c(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function rd(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=rd(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(td(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var id=F(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.splitWhen=_n.flatten=void 0;function IC(e){return e.reduce((t,r)=>[].concat(t,r),[])}_n.flatten=IC;function LC(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}_n.splitWhen=LC});var sd=F(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.isEnoentCodeError=void 0;function NC(e){return e.code==="ENOENT"}Is.isEnoentCodeError=NC});var od=F(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.createDirentFromStats=void 0;var Ga=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function BC(e,t){return new Ga(e,t)}Ls.createDirentFromStats=BC});var ld=F(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.convertPosixPathToPattern=De.convertWindowsPathToPattern=De.convertPathToPattern=De.escapePosixPath=De.escapeWindowsPath=De.escape=De.removeLeadingDotSegment=De.makeAbsolute=De.unixify=void 0;var $C=M("os"),MC=M("path"),ad=$C.platform()==="win32",jC=2,qC=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,HC=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,GC=/^\\\\([.?])/,UC=/\\(?![!()+@[\]{}])/g;function WC(e){return e.replace(/\\/g,"/")}De.unixify=WC;function YC(e,t){return MC.resolve(e,t)}De.makeAbsolute=YC;function zC(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(jC)}return e}De.removeLeadingDotSegment=zC;De.escape=ad?Ua:Wa;function Ua(e){return e.replace(HC,"\\$2")}De.escapeWindowsPath=Ua;function Wa(e){return e.replace(qC,"\\$2")}De.escapePosixPath=Wa;De.convertPathToPattern=ad?ud:cd;function ud(e){return Ua(e).replace(GC,"//$1").replace(UC,"/")}De.convertWindowsPathToPattern=ud;function cd(e){return Wa(e)}De.convertPosixPathToPattern=cd});var hd=F((mj,fd)=>{fd.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var gd=F((yj,pd)=>{var VC=hd(),dd={"{":"}","(":")","[":"]"},KC=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var u=dd[a];if(u){var c=e.indexOf(u,t);c!==-1&&(t=c+1)}if(e[t]==="!")return!0}else t++}return!1},XC=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=dd[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};pd.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(VC(t))return!0;var n=KC;return r&&r.strict===!1&&(n=XC),n(t)}});var yd=F((vj,md)=>{"use strict";var QC=gd(),JC=M("path").posix.dirname,ZC=M("os").platform()==="win32",Ya="/",e_=/\\/g,t_=/[\{\[].*[\}\]]$/,r_=/(^|[^\\])([\{\[]|\([^\)]+$)/,n_=/\\([\!\*\?\|\[\]\(\)\{\}])/g;md.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&ZC&&t.indexOf(Ya)<0&&(t=t.replace(e_,Ya)),t_.test(t)&&(t+=Ya),t+="a";do t=JC(t);while(QC(t)||r_.test(t));return t.replace(n_,"$1")}});var Ns=F(St=>{"use strict";St.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;St.find=(e,t)=>e.nodes.find(r=>r.type===t);St.exceedsLimit=(e,t,r=1,n)=>n===!1||!St.isInteger(e)||!St.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;St.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};St.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);St.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;St.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;St.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);St.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var Bs=F((Aj,Ed)=>{"use strict";var vd=Ns();Ed.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&vd.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&vd.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let u of n.nodes)a+=r(u);return a};return r(e)}});var Sd=F((Sj,Ad)=>{"use strict";Ad.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var kd=F((wj,Fd)=>{"use strict";var wd=Sd(),Yr=(e,t,r)=>{if(wd(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(wd(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),u=e+":"+t+"="+i+s+o+a;if(Yr.cache.hasOwnProperty(u))return Yr.cache[u].result;let c=Math.min(e,t),f=Math.max(e,t);if(Math.abs(c-f)===1){let S=e+"|"+t;return n.capture?`(${S})`:n.wrap===!1?S:`(?:${S})`}let l=Rd(e)||Rd(t),h={min:e,max:t,a:c,b:f},d=[],g=[];if(l&&(h.isPadded=l,h.maxLen=String(h.max).length),c<0){let S=f<0?Math.abs(f):1;g=Cd(S,Math.abs(c),h,n),c=h.a=0}return f>=0&&(d=Cd(c,f,h,n)),h.negatives=g,h.positives=d,h.result=i_(g,d,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&d.length+g.length>1&&(h.result=`(?:${h.result})`),Yr.cache[u]=h,h.result};function i_(e,t,r){let n=za(e,t,"-",!1,r)||[],i=za(t,e,"",!1,r)||[],s=za(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function s_(e,t){let r=1,n=1,i=xd(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=xd(e,r);for(i=bd(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=bd(t+1,n)-1;return s=[...s],s.sort(u_),s}function o_(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=a_(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[u,c]=n[a];u===c?s+=u:u!=="0"||c!=="9"?s+=c_(u,c,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Cd(e,t,r,n){let i=s_(e,t),s=[],o=e,a;for(let u=0;u<i.length;u++){let c=i[u],f=o_(String(o),String(c),n),l="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+Od(a.count),o=c+1;continue}r.isPadded&&(l=l_(c,r,n)),f.string=l+f.pattern+Od(f.count),s.push(f),o=c+1,a=f}return s}function za(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!_d(t,"string",a)&&s.push(r+a),n&&_d(t,"string",a)&&s.push(r+a)}return s}function a_(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function u_(e,t){return e>t?1:t>e?-1:0}function _d(e,t,r){return e.some(n=>n[t]===r)}function xd(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function bd(e,t){return e-e%Math.pow(10,t)}function Od(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function c_(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function Rd(e){return/^-?(0+)\d/.test(e)}function l_(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Yr.cache={};Yr.clearCache=()=>Yr.cache={};Fd.exports=Yr});var Xa=F((Cj,Bd)=>{"use strict";var f_=M("util"),Dd=kd(),Pd=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),h_=e=>t=>e===!0?Number(t):String(t),Va=e=>typeof e=="number"||typeof e=="string"&&e!=="",_i=e=>Number.isInteger(+e),Ka=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},d_=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,p_=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},Ms=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},g_=(e,t,r)=>{e.negatives.sort((a,u)=>a<u?-1:a>u?1:0),e.positives.sort((a,u)=>a<u?-1:a>u?1:0);let n=t.capture?"":"?:",i="",s="",o;return e.positives.length&&(i=e.positives.map(a=>Ms(String(a),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(a=>Ms(String(a),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,t.wrap?`(${n}${o})`:o},Td=(e,t,r,n)=>{if(r)return Dd(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Id=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Dd(e,t,r)},Ld=(...e)=>new RangeError("Invalid range arguments: "+f_.inspect(...e)),Nd=(e,t,r)=>{if(r.strictRanges===!0)throw Ld([e,t]);return[]},m_=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},y_=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Ld([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),u=String(t),c=String(r);r=Math.max(Math.abs(r),1);let f=Ka(a)||Ka(u)||Ka(c),l=f?Math.max(a.length,u.length,c.length):0,h=f===!1&&d_(e,t,n)===!1,d=n.transform||h_(h);if(n.toRegex&&r===1)return Td(Ms(e,l),Ms(t,l),!0,n);let g={negatives:[],positives:[]},S=_=>g[_<0?"negatives":"positives"].push(Math.abs(_)),w=[],k=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?S(i):w.push(p_(d(i,k),l,h)),i=o?i-r:i+r,k++;return n.toRegex===!0?r>1?g_(g,n,l):Id(w,null,{wrap:!1,...n}):w},v_=(e,t,r=1,n={})=>{if(!_i(e)&&e.length>1||!_i(t)&&t.length>1)return Nd(e,t,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,u=Math.min(s,o),c=Math.max(s,o);if(n.toRegex&&r===1)return Td(u,c,!1,n);let f=[],l=0;for(;a?s>=o:s<=o;)f.push(i(s,l)),s=a?s-r:s+r,l++;return n.toRegex===!0?Id(f,null,{wrap:!1,options:n}):f},$s=(e,t,r,n={})=>{if(t==null&&Va(e))return[e];if(!Va(e)||!Va(t))return Nd(e,t,n);if(typeof r=="function")return $s(e,t,1,{transform:r});if(Pd(r))return $s(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,_i(r)?_i(e)&&_i(t)?y_(e,t,r,i):v_(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Pd(r)?m_(r,i):$s(e,t,1,r)};Bd.exports=$s});var jd=F((_j,Md)=>{"use strict";var E_=Xa(),$d=Ns(),A_=(e,t={})=>{let r=(n,i={})=>{let s=$d.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,u=t.escapeInvalid===!0?"\\":"",c="";if(n.isOpen===!0)return u+n.value;if(n.isClose===!0)return console.log("node.isClose",u,n.value),u+n.value;if(n.type==="open")return a?u+n.value:"(";if(n.type==="close")return a?u+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=$d.reduce(n.nodes),l=E_(...f,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(l.length!==0)return f.length>1&&l.length>1?`(${l})`:l}if(n.nodes)for(let f of n.nodes)c+=r(f,n);return c};return r(e)};Md.exports=A_});var Gd=F((xj,Hd)=>{"use strict";var S_=Xa(),qd=Bs(),xn=Ns(),zr=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?xn.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(zr(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?zr(i,s,r):i+s);return xn.flatten(n)},w_=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(zr(a.pop(),qd(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(zr(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let l=xn.reduce(i.nodes);if(xn.exceedsLimit(...l,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=S_(...l,t);h.length===0&&(h=qd(i,t)),a.push(zr(a.pop(),h)),i.nodes=[];return}let u=xn.encloseBrace(i),c=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,c=f.queue;for(let l=0;l<i.nodes.length;l++){let h=i.nodes[l];if(h.type==="comma"&&i.type==="brace"){l===1&&c.push(""),c.push("");continue}if(h.type==="close"){a.push(zr(a.pop(),c,u));continue}if(h.value&&h.type!=="open"){c.push(zr(c.pop(),h.value));continue}h.nodes&&n(h,i)}return c};return xn.flatten(n(e))};Hd.exports=w_});var Wd=F((bj,Ud)=>{"use strict";Ud.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
2
- `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Xd=F((Oj,Kd)=>{"use strict";var C_=Bs(),{MAX_LENGTH:Yd,CHAR_BACKSLASH:Qa,CHAR_BACKTICK:__,CHAR_COMMA:x_,CHAR_DOT:b_,CHAR_LEFT_PARENTHESES:O_,CHAR_RIGHT_PARENTHESES:R_,CHAR_LEFT_CURLY_BRACE:F_,CHAR_RIGHT_CURLY_BRACE:k_,CHAR_LEFT_SQUARE_BRACKET:zd,CHAR_RIGHT_SQUARE_BRACKET:Vd,CHAR_DOUBLE_QUOTE:P_,CHAR_SINGLE_QUOTE:D_,CHAR_NO_BREAK_SPACE:T_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:I_}=Wd(),L_=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(Yd,r.maxLength):Yd;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,u=0,c=e.length,f=0,l=0,h,d=()=>e[f++],g=S=>{if(S.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&S.type==="text"){a.value+=S.value;return}return o.nodes.push(S),S.parent=o,S.prev=a,a=S,S};for(g({type:"bos"});f<c;)if(o=s[s.length-1],h=d(),!(h===I_||h===T_)){if(h===Qa){g({type:"text",value:(t.keepEscaping?h:"")+d()});continue}if(h===Vd){g({type:"text",value:"\\"+h});continue}if(h===zd){u++;let S;for(;f<c&&(S=d());){if(h+=S,S===zd){u++;continue}if(S===Qa){h+=d();continue}if(S===Vd&&(u--,u===0))break}g({type:"text",value:h});continue}if(h===O_){o=g({type:"paren",nodes:[]}),s.push(o),g({type:"text",value:h});continue}if(h===R_){if(o.type!=="paren"){g({type:"text",value:h});continue}o=s.pop(),g({type:"text",value:h}),o=s[s.length-1];continue}if(h===P_||h===D_||h===__){let S=h,w;for(t.keepQuotes!==!0&&(h="");f<c&&(w=d());){if(w===Qa){h+=w+d();continue}if(w===S){t.keepQuotes===!0&&(h+=w);break}h+=w}g({type:"text",value:h});continue}if(h===F_){l++;let w={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:l,commas:0,ranges:0,nodes:[]};o=g(w),s.push(o),g({type:"open",value:h});continue}if(h===k_){if(o.type!=="brace"){g({type:"text",value:h});continue}let S="close";o=s.pop(),o.close=!0,g({type:S,value:h}),l--,o=s[s.length-1];continue}if(h===x_&&l>0){if(o.ranges>0){o.ranges=0;let S=o.nodes.shift();o.nodes=[S,{type:"text",value:C_(o)}]}g({type:"comma",value:h}),o.commas++;continue}if(h===b_&&l>0&&o.commas===0){let S=o.nodes;if(l===0||S.length===0){g({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){S.pop();let w=S[S.length-1];w.value+=a.value+h,a=w,o.ranges--;continue}g({type:"dot",value:h});continue}g({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(k=>{k.nodes||(k.type==="open"&&(k.isOpen=!0),k.type==="close"&&(k.isClose=!0),k.nodes||(k.type="text"),k.invalid=!0)});let S=s[s.length-1],w=S.nodes.indexOf(o);S.nodes.splice(w,1,...o.nodes)}while(s.length>0);return g({type:"eos"}),i};Kd.exports=L_});var Zd=F((Rj,Jd)=>{"use strict";var Qd=Bs(),N_=jd(),B_=Gd(),$_=Xd(),mt=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=mt.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(mt.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};mt.parse=(e,t={})=>$_(e,t);mt.stringify=(e,t={})=>Qd(typeof e=="string"?mt.parse(e,t):e,t);mt.compile=(e,t={})=>(typeof e=="string"&&(e=mt.parse(e,t)),N_(e,t));mt.expand=(e,t={})=>{typeof e=="string"&&(e=mt.parse(e,t));let r=B_(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};mt.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?mt.compile(e,t):mt.expand(e,t);Jd.exports=mt});var xi=F((Fj,ip)=>{"use strict";var M_=M("path"),jt="\\\\/",ep=`[^${jt}]`,Jt="\\.",j_="\\+",q_="\\?",js="\\/",H_="(?=.)",tp="[^/]",Ja=`(?:${js}|$)`,rp=`(?:^|${js})`,Za=`${Jt}{1,2}${Ja}`,G_=`(?!${Jt})`,U_=`(?!${rp}${Za})`,W_=`(?!${Jt}{0,1}${Ja})`,Y_=`(?!${Za})`,z_=`[^.${js}]`,V_=`${tp}*?`,np={DOT_LITERAL:Jt,PLUS_LITERAL:j_,QMARK_LITERAL:q_,SLASH_LITERAL:js,ONE_CHAR:H_,QMARK:tp,END_ANCHOR:Ja,DOTS_SLASH:Za,NO_DOT:G_,NO_DOTS:U_,NO_DOT_SLASH:W_,NO_DOTS_SLASH:Y_,QMARK_NO_DOT:z_,STAR:V_,START_ANCHOR:rp},K_={...np,SLASH_LITERAL:`[${jt}]`,QMARK:ep,STAR:`${ep}*?`,DOTS_SLASH:`${Jt}{1,2}(?:[${jt}]|$)`,NO_DOT:`(?!${Jt})`,NO_DOTS:`(?!(?:^|[${jt}])${Jt}{1,2}(?:[${jt}]|$))`,NO_DOT_SLASH:`(?!${Jt}{0,1}(?:[${jt}]|$))`,NO_DOTS_SLASH:`(?!${Jt}{1,2}(?:[${jt}]|$))`,QMARK_NO_DOT:`[^.${jt}]`,START_ANCHOR:`(?:^|[${jt}])`,END_ANCHOR:`(?:[${jt}]|$)`},X_={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};ip.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:X_,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:M_.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?K_:np}}});var bi=F(st=>{"use strict";var Q_=M("path"),J_=process.platform==="win32",{REGEX_BACKSLASH:Z_,REGEX_REMOVE_BACKSLASH:ex,REGEX_SPECIAL_CHARS:tx,REGEX_SPECIAL_CHARS_GLOBAL:rx}=xi();st.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);st.hasRegexChars=e=>tx.test(e);st.isRegexChar=e=>e.length===1&&st.hasRegexChars(e);st.escapeRegex=e=>e.replace(rx,"\\$1");st.toPosixSlashes=e=>e.replace(Z_,"/");st.removeBackslashes=e=>e.replace(ex,t=>t==="\\"?"":t);st.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};st.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:J_===!0||Q_.sep==="\\";st.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?st.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};st.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};st.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var hp=F((Pj,fp)=>{"use strict";var sp=bi(),{CHAR_ASTERISK:eu,CHAR_AT:nx,CHAR_BACKWARD_SLASH:Oi,CHAR_COMMA:ix,CHAR_DOT:tu,CHAR_EXCLAMATION_MARK:ru,CHAR_FORWARD_SLASH:lp,CHAR_LEFT_CURLY_BRACE:nu,CHAR_LEFT_PARENTHESES:iu,CHAR_LEFT_SQUARE_BRACKET:sx,CHAR_PLUS:ox,CHAR_QUESTION_MARK:op,CHAR_RIGHT_CURLY_BRACE:ax,CHAR_RIGHT_PARENTHESES:ap,CHAR_RIGHT_SQUARE_BRACKET:ux}=xi(),up=e=>e===lp||e===Oi,cp=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},cx=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],u=e,c=-1,f=0,l=0,h=!1,d=!1,g=!1,S=!1,w=!1,k=!1,_=!1,N=!1,D=!1,A=!1,R=0,b,O,T={value:"",depth:0,isGlob:!1},x=()=>c>=n,p=()=>u.charCodeAt(c+1),m=()=>(b=O,u.charCodeAt(++c));for(;c<n;){O=m();let P;if(O===Oi){_=T.backslashes=!0,O=m(),O===nu&&(k=!0);continue}if(k===!0||O===nu){for(R++;x()!==!0&&(O=m());){if(O===Oi){_=T.backslashes=!0,m();continue}if(O===nu){R++;continue}if(k!==!0&&O===tu&&(O=m())===tu){if(h=T.isBrace=!0,g=T.isGlob=!0,A=!0,i===!0)continue;break}if(k!==!0&&O===ix){if(h=T.isBrace=!0,g=T.isGlob=!0,A=!0,i===!0)continue;break}if(O===ax&&(R--,R===0)){k=!1,h=T.isBrace=!0,A=!0;break}}if(i===!0)continue;break}if(O===lp){if(s.push(c),o.push(T),T={value:"",depth:0,isGlob:!1},A===!0)continue;if(b===tu&&c===f+1){f+=2;continue}l=c+1;continue}if(r.noext!==!0&&(O===ox||O===nx||O===eu||O===op||O===ru)===!0&&p()===iu){if(g=T.isGlob=!0,S=T.isExtglob=!0,A=!0,O===ru&&c===f&&(D=!0),i===!0){for(;x()!==!0&&(O=m());){if(O===Oi){_=T.backslashes=!0,O=m();continue}if(O===ap){g=T.isGlob=!0,A=!0;break}}continue}break}if(O===eu){if(b===eu&&(w=T.isGlobstar=!0),g=T.isGlob=!0,A=!0,i===!0)continue;break}if(O===op){if(g=T.isGlob=!0,A=!0,i===!0)continue;break}if(O===sx){for(;x()!==!0&&(P=m());){if(P===Oi){_=T.backslashes=!0,m();continue}if(P===ux){d=T.isBracket=!0,g=T.isGlob=!0,A=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&O===ru&&c===f){N=T.negated=!0,f++;continue}if(r.noparen!==!0&&O===iu){if(g=T.isGlob=!0,i===!0){for(;x()!==!0&&(O=m());){if(O===iu){_=T.backslashes=!0,O=m();continue}if(O===ap){A=!0;break}}continue}break}if(g===!0){if(A=!0,i===!0)continue;break}}r.noext===!0&&(S=!1,g=!1);let E=u,C="",y="";f>0&&(C=u.slice(0,f),u=u.slice(f),l-=f),E&&g===!0&&l>0?(E=u.slice(0,l),y=u.slice(l)):g===!0?(E="",y=u):E=u,E&&E!==""&&E!=="/"&&E!==u&&up(E.charCodeAt(E.length-1))&&(E=E.slice(0,-1)),r.unescape===!0&&(y&&(y=sp.removeBackslashes(y)),E&&_===!0&&(E=sp.removeBackslashes(E)));let v={prefix:C,input:e,start:f,base:E,glob:y,isBrace:h,isBracket:d,isGlob:g,isExtglob:S,isGlobstar:w,negated:N,negatedExtglob:D};if(r.tokens===!0&&(v.maxDepth=0,up(O)||o.push(T),v.tokens=o),r.parts===!0||r.tokens===!0){let P;for(let I=0;I<s.length;I++){let L=P?P+1:f,$=s[I],U=e.slice(L,$);r.tokens&&(I===0&&f!==0?(o[I].isPrefix=!0,o[I].value=C):o[I].value=U,cp(o[I]),v.maxDepth+=o[I].depth),(I!==0||U!=="")&&a.push(U),P=$}if(P&&P+1<e.length){let I=e.slice(P+1);a.push(I),r.tokens&&(o[o.length-1].value=I,cp(o[o.length-1]),v.maxDepth+=o[o.length-1].depth)}v.slashes=s,v.parts=a}return v};fp.exports=cx});var gp=F((Dj,pp)=>{"use strict";var qs=xi(),yt=bi(),{MAX_LENGTH:Hs,POSIX_REGEX_SOURCE:lx,REGEX_NON_SPECIAL_CHARS:fx,REGEX_SPECIAL_CHARS_BACKREF:hx,REPLACEMENTS:dp}=qs,dx=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>yt.escapeRegex(i)).join("..")}return r},bn=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,su=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=dp[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Hs,r.maxLength):Hs,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",u=yt.isWindows(t),c=qs.globChars(u),f=qs.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:h,SLASH_LITERAL:d,ONE_CHAR:g,DOTS_SLASH:S,NO_DOT:w,NO_DOT_SLASH:k,NO_DOTS_SLASH:_,QMARK:N,QMARK_NO_DOT:D,STAR:A,START_ANCHOR:R}=c,b=q=>`(${a}(?:(?!${R}${q.dot?S:l}).)*?)`,O=r.dot?"":w,T=r.dot?N:D,x=r.bash===!0?b(r):A;r.capture&&(x=`(${x})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let p={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=yt.removePrefix(e,p),i=e.length;let m=[],E=[],C=[],y=s,v,P=()=>p.index===i-1,I=p.peek=(q=1)=>e[p.index+q],L=p.advance=()=>e[++p.index]||"",$=()=>e.slice(p.index+1),U=(q="",ie=0)=>{p.consumed+=q,p.index+=ie},z=q=>{p.output+=q.output!=null?q.output:q.value,U(q.value)},oe=()=>{let q=1;for(;I()==="!"&&(I(2)!=="("||I(3)==="?");)L(),p.start++,q++;return q%2===0?!1:(p.negated=!0,p.start++,!0)},H=q=>{p[q]++,C.push(q)},B=q=>{p[q]--,C.pop()},j=q=>{if(y.type==="globstar"){let ie=p.braces>0&&(q.type==="comma"||q.type==="brace"),G=q.extglob===!0||m.length&&(q.type==="pipe"||q.type==="paren");q.type!=="slash"&&q.type!=="paren"&&!ie&&!G&&(p.output=p.output.slice(0,-y.output.length),y.type="star",y.value="*",y.output=x,p.output+=y.output)}if(m.length&&q.type!=="paren"&&(m[m.length-1].inner+=q.value),(q.value||q.output)&&z(q),y&&y.type==="text"&&q.type==="text"){y.value+=q.value,y.output=(y.output||"")+q.value;return}q.prev=y,o.push(q),y=q},te=(q,ie)=>{let G={...f[ie],conditions:1,inner:""};G.prev=y,G.parens=p.parens,G.output=p.output;let ne=(r.capture?"(":"")+G.open;H("parens"),j({type:q,value:ie,output:p.output?"":g}),j({type:"paren",extglob:!0,value:L(),output:ne}),m.push(G)},re=q=>{let ie=q.close+(r.capture?")":""),G;if(q.type==="negate"){let ne=x;if(q.inner&&q.inner.length>1&&q.inner.includes("/")&&(ne=b(r)),(ne!==x||P()||/^\)+$/.test($()))&&(ie=q.close=`)$))${ne}`),q.inner.includes("*")&&(G=$())&&/^\.[^\\/.]+$/.test(G)){let ce=su(G,{...t,fastpaths:!1}).output;ie=q.close=`)${ce})${ne})`}q.prev.type==="bos"&&(p.negatedExtglob=!0)}j({type:"paren",extglob:!0,value:v,output:ie}),B("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let q=!1,ie=e.replace(hx,(G,ne,ce,Ee,fe,Re)=>Ee==="\\"?(q=!0,G):Ee==="?"?ne?ne+Ee+(fe?N.repeat(fe.length):""):Re===0?T+(fe?N.repeat(fe.length):""):N.repeat(ce.length):Ee==="."?l.repeat(ce.length):Ee==="*"?ne?ne+Ee+(fe?x:""):x:ne?G:`\\${G}`);return q===!0&&(r.unescape===!0?ie=ie.replace(/\\/g,""):ie=ie.replace(/\\+/g,G=>G.length%2===0?"\\\\":G?"\\":"")),ie===e&&r.contains===!0?(p.output=e,p):(p.output=yt.wrapOutput(ie,p,t),p)}for(;!P();){if(v=L(),v==="\0")continue;if(v==="\\"){let G=I();if(G==="/"&&r.bash!==!0||G==="."||G===";")continue;if(!G){v+="\\",j({type:"text",value:v});continue}let ne=/^\\+/.exec($()),ce=0;if(ne&&ne[0].length>2&&(ce=ne[0].length,p.index+=ce,ce%2!==0&&(v+="\\")),r.unescape===!0?v=L():v+=L(),p.brackets===0){j({type:"text",value:v});continue}}if(p.brackets>0&&(v!=="]"||y.value==="["||y.value==="[^")){if(r.posix!==!1&&v===":"){let G=y.value.slice(1);if(G.includes("[")&&(y.posix=!0,G.includes(":"))){let ne=y.value.lastIndexOf("["),ce=y.value.slice(0,ne),Ee=y.value.slice(ne+2),fe=lx[Ee];if(fe){y.value=ce+fe,p.backtrack=!0,L(),!s.output&&o.indexOf(y)===1&&(s.output=g);continue}}}(v==="["&&I()!==":"||v==="-"&&I()==="]")&&(v=`\\${v}`),v==="]"&&(y.value==="["||y.value==="[^")&&(v=`\\${v}`),r.posix===!0&&v==="!"&&y.value==="["&&(v="^"),y.value+=v,z({value:v});continue}if(p.quotes===1&&v!=='"'){v=yt.escapeRegex(v),y.value+=v,z({value:v});continue}if(v==='"'){p.quotes=p.quotes===1?0:1,r.keepQuotes===!0&&j({type:"text",value:v});continue}if(v==="("){H("parens"),j({type:"paren",value:v});continue}if(v===")"){if(p.parens===0&&r.strictBrackets===!0)throw new SyntaxError(bn("opening","("));let G=m[m.length-1];if(G&&p.parens===G.parens+1){re(m.pop());continue}j({type:"paren",value:v,output:p.parens?")":"\\)"}),B("parens");continue}if(v==="["){if(r.nobracket===!0||!$().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(bn("closing","]"));v=`\\${v}`}else H("brackets");j({type:"bracket",value:v});continue}if(v==="]"){if(r.nobracket===!0||y&&y.type==="bracket"&&y.value.length===1){j({type:"text",value:v,output:`\\${v}`});continue}if(p.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(bn("opening","["));j({type:"text",value:v,output:`\\${v}`});continue}B("brackets");let G=y.value.slice(1);if(y.posix!==!0&&G[0]==="^"&&!G.includes("/")&&(v=`/${v}`),y.value+=v,z({value:v}),r.literalBrackets===!1||yt.hasRegexChars(G))continue;let ne=yt.escapeRegex(y.value);if(p.output=p.output.slice(0,-y.value.length),r.literalBrackets===!0){p.output+=ne,y.value=ne;continue}y.value=`(${a}${ne}|${y.value})`,p.output+=y.value;continue}if(v==="{"&&r.nobrace!==!0){H("braces");let G={type:"brace",value:v,output:"(",outputIndex:p.output.length,tokensIndex:p.tokens.length};E.push(G),j(G);continue}if(v==="}"){let G=E[E.length-1];if(r.nobrace===!0||!G){j({type:"text",value:v,output:v});continue}let ne=")";if(G.dots===!0){let ce=o.slice(),Ee=[];for(let fe=ce.length-1;fe>=0&&(o.pop(),ce[fe].type!=="brace");fe--)ce[fe].type!=="dots"&&Ee.unshift(ce[fe].value);ne=dx(Ee,r),p.backtrack=!0}if(G.comma!==!0&&G.dots!==!0){let ce=p.output.slice(0,G.outputIndex),Ee=p.tokens.slice(G.tokensIndex);G.value=G.output="\\{",v=ne="\\}",p.output=ce;for(let fe of Ee)p.output+=fe.output||fe.value}j({type:"brace",value:v,output:ne}),B("braces"),E.pop();continue}if(v==="|"){m.length>0&&m[m.length-1].conditions++,j({type:"text",value:v});continue}if(v===","){let G=v,ne=E[E.length-1];ne&&C[C.length-1]==="braces"&&(ne.comma=!0,G="|"),j({type:"comma",value:v,output:G});continue}if(v==="/"){if(y.type==="dot"&&p.index===p.start+1){p.start=p.index+1,p.consumed="",p.output="",o.pop(),y=s;continue}j({type:"slash",value:v,output:d});continue}if(v==="."){if(p.braces>0&&y.type==="dot"){y.value==="."&&(y.output=l);let G=E[E.length-1];y.type="dots",y.output+=v,y.value+=v,G.dots=!0;continue}if(p.braces+p.parens===0&&y.type!=="bos"&&y.type!=="slash"){j({type:"text",value:v,output:l});continue}j({type:"dot",value:v,output:l});continue}if(v==="?"){if(!(y&&y.value==="(")&&r.noextglob!==!0&&I()==="("&&I(2)!=="?"){te("qmark",v);continue}if(y&&y.type==="paren"){let ne=I(),ce=v;if(ne==="<"&&!yt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(y.value==="("&&!/[!=<:]/.test(ne)||ne==="<"&&!/<([!=]|\w+>)/.test($()))&&(ce=`\\${v}`),j({type:"text",value:v,output:ce});continue}if(r.dot!==!0&&(y.type==="slash"||y.type==="bos")){j({type:"qmark",value:v,output:D});continue}j({type:"qmark",value:v,output:N});continue}if(v==="!"){if(r.noextglob!==!0&&I()==="("&&(I(2)!=="?"||!/[!=<:]/.test(I(3)))){te("negate",v);continue}if(r.nonegate!==!0&&p.index===0){oe();continue}}if(v==="+"){if(r.noextglob!==!0&&I()==="("&&I(2)!=="?"){te("plus",v);continue}if(y&&y.value==="("||r.regex===!1){j({type:"plus",value:v,output:h});continue}if(y&&(y.type==="bracket"||y.type==="paren"||y.type==="brace")||p.parens>0){j({type:"plus",value:v});continue}j({type:"plus",value:h});continue}if(v==="@"){if(r.noextglob!==!0&&I()==="("&&I(2)!=="?"){j({type:"at",extglob:!0,value:v,output:""});continue}j({type:"text",value:v});continue}if(v!=="*"){(v==="$"||v==="^")&&(v=`\\${v}`);let G=fx.exec($());G&&(v+=G[0],p.index+=G[0].length),j({type:"text",value:v});continue}if(y&&(y.type==="globstar"||y.star===!0)){y.type="star",y.star=!0,y.value+=v,y.output=x,p.backtrack=!0,p.globstar=!0,U(v);continue}let q=$();if(r.noextglob!==!0&&/^\([^?]/.test(q)){te("star",v);continue}if(y.type==="star"){if(r.noglobstar===!0){U(v);continue}let G=y.prev,ne=G.prev,ce=G.type==="slash"||G.type==="bos",Ee=ne&&(ne.type==="star"||ne.type==="globstar");if(r.bash===!0&&(!ce||q[0]&&q[0]!=="/")){j({type:"star",value:v,output:""});continue}let fe=p.braces>0&&(G.type==="comma"||G.type==="brace"),Re=m.length&&(G.type==="pipe"||G.type==="paren");if(!ce&&G.type!=="paren"&&!fe&&!Re){j({type:"star",value:v,output:""});continue}for(;q.slice(0,3)==="/**";){let xe=e[p.index+4];if(xe&&xe!=="/")break;q=q.slice(3),U("/**",3)}if(G.type==="bos"&&P()){y.type="globstar",y.value+=v,y.output=b(r),p.output=y.output,p.globstar=!0,U(v);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&!Ee&&P()){p.output=p.output.slice(0,-(G.output+y.output).length),G.output=`(?:${G.output}`,y.type="globstar",y.output=b(r)+(r.strictSlashes?")":"|$)"),y.value+=v,p.globstar=!0,p.output+=G.output+y.output,U(v);continue}if(G.type==="slash"&&G.prev.type!=="bos"&&q[0]==="/"){let xe=q[1]!==void 0?"|$":"";p.output=p.output.slice(0,-(G.output+y.output).length),G.output=`(?:${G.output}`,y.type="globstar",y.output=`${b(r)}${d}|${d}${xe})`,y.value+=v,p.output+=G.output+y.output,p.globstar=!0,U(v+L()),j({type:"slash",value:"/",output:""});continue}if(G.type==="bos"&&q[0]==="/"){y.type="globstar",y.value+=v,y.output=`(?:^|${d}|${b(r)}${d})`,p.output=y.output,p.globstar=!0,U(v+L()),j({type:"slash",value:"/",output:""});continue}p.output=p.output.slice(0,-y.output.length),y.type="globstar",y.output=b(r),y.value+=v,p.output+=y.output,p.globstar=!0,U(v);continue}let ie={type:"star",value:v,output:x};if(r.bash===!0){ie.output=".*?",(y.type==="bos"||y.type==="slash")&&(ie.output=O+ie.output),j(ie);continue}if(y&&(y.type==="bracket"||y.type==="paren")&&r.regex===!0){ie.output=v,j(ie);continue}(p.index===p.start||y.type==="slash"||y.type==="dot")&&(y.type==="dot"?(p.output+=k,y.output+=k):r.dot===!0?(p.output+=_,y.output+=_):(p.output+=O,y.output+=O),I()!=="*"&&(p.output+=g,y.output+=g)),j(ie)}for(;p.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(bn("closing","]"));p.output=yt.escapeLast(p.output,"["),B("brackets")}for(;p.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(bn("closing",")"));p.output=yt.escapeLast(p.output,"("),B("parens")}for(;p.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(bn("closing","}"));p.output=yt.escapeLast(p.output,"{"),B("braces")}if(r.strictSlashes!==!0&&(y.type==="star"||y.type==="bracket")&&j({type:"maybe_slash",value:"",output:`${d}?`}),p.backtrack===!0){p.output="";for(let q of p.tokens)p.output+=q.output!=null?q.output:q.value,q.suffix&&(p.output+=q.suffix)}return p};su.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Hs,r.maxLength):Hs,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=dp[e]||e;let s=yt.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:u,DOTS_SLASH:c,NO_DOT:f,NO_DOTS:l,NO_DOTS_SLASH:h,STAR:d,START_ANCHOR:g}=qs.globChars(s),S=r.dot?l:f,w=r.dot?h:f,k=r.capture?"":"?:",_={negated:!1,prefix:""},N=r.bash===!0?".*?":d;r.capture&&(N=`(${N})`);let D=O=>O.noglobstar===!0?N:`(${k}(?:(?!${g}${O.dot?c:o}).)*?)`,A=O=>{switch(O){case"*":return`${S}${u}${N}`;case".*":return`${o}${u}${N}`;case"*.*":return`${S}${N}${o}${u}${N}`;case"*/*":return`${S}${N}${a}${u}${w}${N}`;case"**":return S+D(r);case"**/*":return`(?:${S}${D(r)}${a})?${w}${u}${N}`;case"**/*.*":return`(?:${S}${D(r)}${a})?${w}${N}${o}${u}${N}`;case"**/.*":return`(?:${S}${D(r)}${a})?${o}${u}${N}`;default:{let T=/^(.*?)\.(\w+)$/.exec(O);if(!T)return;let x=A(T[1]);return x?x+o+T[2]:void 0}}},R=yt.removePrefix(e,_),b=A(R);return b&&r.strictSlashes!==!0&&(b+=`${a}?`),b};pp.exports=su});var yp=F((Tj,mp)=>{"use strict";var px=M("path"),gx=hp(),ou=gp(),au=bi(),mx=xi(),yx=e=>e&&typeof e=="object"&&!Array.isArray(e),Pe=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(h=>Pe(h,t,r));return h=>{for(let d of f){let g=d(h);if(g)return g}return!1}}let n=yx(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=au.isWindows(t),o=n?Pe.compileRe(e,t):Pe.makeRe(e,t,!1,!0),a=o.state;delete o.state;let u=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};u=Pe(i.ignore,f,r)}let c=(f,l=!1)=>{let{isMatch:h,match:d,output:g}=Pe.test(f,o,t,{glob:e,posix:s}),S={glob:e,state:a,regex:o,posix:s,input:f,output:g,match:d,isMatch:h};return typeof i.onResult=="function"&&i.onResult(S),h===!1?(S.isMatch=!1,l?S:!1):u(f)?(typeof i.onIgnore=="function"&&i.onIgnore(S),S.isMatch=!1,l?S:!1):(typeof i.onMatch=="function"&&i.onMatch(S),l?S:!0)};return r&&(c.state=a),c};Pe.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?au.toPosixSlashes:null),a=e===n,u=a&&o?o(e):e;return a===!1&&(u=o?o(e):e,a=u===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Pe.matchBase(e,t,r,i):a=t.exec(u)),{isMatch:!!a,match:a,output:u}};Pe.matchBase=(e,t,r,n=au.isWindows(r))=>(t instanceof RegExp?t:Pe.makeRe(t,r)).test(px.basename(e));Pe.isMatch=(e,t,r)=>Pe(t,r)(e);Pe.parse=(e,t)=>Array.isArray(e)?e.map(r=>Pe.parse(r,t)):ou(e,{...t,fastpaths:!1});Pe.scan=(e,t)=>gx(e,t);Pe.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let u=Pe.toRegex(a,t);return n===!0&&(u.state=e),u};Pe.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=ou.fastpaths(e,t)),i.output||(i=ou(e,t)),Pe.compileRe(i,t,r,n)};Pe.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Pe.constants=mx;mp.exports=Pe});var Ep=F((Ij,vp)=>{"use strict";vp.exports=yp()});var Ri=F((Lj,Cp)=>{"use strict";var Sp=M("util"),wp=Zd(),qt=Ep(),uu=bi(),Ap=e=>e===""||e==="./",be=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let l=qt(String(t[f]),{...r,onResult:a},!0),h=l.state.negated||l.state.negatedExtglob;h&&o++;for(let d of e){let g=l(d,!0);(h?!g.isMatch:g.isMatch)&&(h?n.add(g.output):(n.delete(g.output),i.add(g.output)))}}let c=(o===t.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&c.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(f=>f.replace(/\\/g,"")):t}return c};be.match=be;be.matcher=(e,t)=>qt(e,t);be.isMatch=(e,t,r)=>qt(t,r)(e);be.any=be.isMatch;be.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(be(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};be.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Sp.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>be.contains(e,n,r));if(typeof t=="string"){if(Ap(e)||Ap(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return be.isMatch(e,t,{...r,contains:!0})};be.matchKeys=(e,t,r)=>{if(!uu.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=be(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};be.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=qt(String(i),r);if(n.some(o=>s(o)))return!0}return!1};be.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=qt(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};be.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Sp.inspect(e)}"`);return[].concat(t).every(n=>qt(n,r)(e))};be.capture=(e,t,r)=>{let n=uu.isWindows(r),s=qt.makeRe(String(e),{...r,capture:!0}).exec(n?uu.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};be.makeRe=(...e)=>qt.makeRe(...e);be.scan=(...e)=>qt.scan(...e);be.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of wp(String(n),t))r.push(qt.parse(i,t));return r};be.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!/\{.*\}/.test(e)?[e]:wp(e,t)};be.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return be.braces(e,{...t,expand:!0})};Cp.exports=be});var Pp=F(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.removeDuplicateSlashes=ae.matchAny=ae.convertPatternsToRe=ae.makeRe=ae.getPatternParts=ae.expandBraceExpansion=ae.expandPatternsWithBraceExpansion=ae.isAffectDepthOfReadingPattern=ae.endsWithSlashGlobStar=ae.hasGlobStar=ae.getBaseDirectory=ae.isPatternRelatedToParentDirectory=ae.getPatternsOutsideCurrentDirectory=ae.getPatternsInsideCurrentDirectory=ae.getPositivePatterns=ae.getNegativePatterns=ae.isPositivePattern=ae.isNegativePattern=ae.convertToNegativePattern=ae.convertToPositivePattern=ae.isDynamicPattern=ae.isStaticPattern=void 0;var vx=M("path"),Ex=yd(),cu=Ri(),_p="**",Ax="\\",Sx=/[*?]|^!/,wx=/\[[^[]*]/,Cx=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,_x=/[!*+?@]\([^(]*\)/,xx=/,|\.\./,bx=/(?!^)\/{2,}/g;function xp(e,t={}){return!bp(e,t)}ae.isStaticPattern=xp;function bp(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(Ax)||Sx.test(e)||wx.test(e)||Cx.test(e)||t.extglob!==!1&&_x.test(e)||t.braceExpansion!==!1&&Ox(e))}ae.isDynamicPattern=bp;function Ox(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return xx.test(n)}function Rx(e){return Gs(e)?e.slice(1):e}ae.convertToPositivePattern=Rx;function Fx(e){return"!"+e}ae.convertToNegativePattern=Fx;function Gs(e){return e.startsWith("!")&&e[1]!=="("}ae.isNegativePattern=Gs;function Op(e){return!Gs(e)}ae.isPositivePattern=Op;function kx(e){return e.filter(Gs)}ae.getNegativePatterns=kx;function Px(e){return e.filter(Op)}ae.getPositivePatterns=Px;function Dx(e){return e.filter(t=>!lu(t))}ae.getPatternsInsideCurrentDirectory=Dx;function Tx(e){return e.filter(lu)}ae.getPatternsOutsideCurrentDirectory=Tx;function lu(e){return e.startsWith("..")||e.startsWith("./..")}ae.isPatternRelatedToParentDirectory=lu;function Ix(e){return Ex(e,{flipBackslashes:!1})}ae.getBaseDirectory=Ix;function Lx(e){return e.includes(_p)}ae.hasGlobStar=Lx;function Rp(e){return e.endsWith("/"+_p)}ae.endsWithSlashGlobStar=Rp;function Nx(e){let t=vx.basename(e);return Rp(e)||xp(t)}ae.isAffectDepthOfReadingPattern=Nx;function Bx(e){return e.reduce((t,r)=>t.concat(Fp(r)),[])}ae.expandPatternsWithBraceExpansion=Bx;function Fp(e){let t=cu.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}ae.expandBraceExpansion=Fp;function $x(e,t){let{parts:r}=cu.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}ae.getPatternParts=$x;function kp(e,t){return cu.makeRe(e,t)}ae.makeRe=kp;function Mx(e,t){return e.map(r=>kp(r,t))}ae.convertPatternsToRe=Mx;function jx(e,t){return t.some(r=>r.test(e))}ae.matchAny=jx;function qx(e){return e.replace(bx,"/")}ae.removeDuplicateSlashes=qx});var Tp=F(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.merge=void 0;var Hx=Ha();function Gx(e){let t=Hx(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Dp(e)),t.once("end",()=>Dp(e)),t}Us.merge=Gx;function Dp(e){e.forEach(t=>t.emit("close"))}});var Ip=F(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.isEmpty=On.isString=void 0;function Ux(e){return typeof e=="string"}On.isString=Ux;function Wx(e){return e===""}On.isEmpty=Wx});var Zt=F(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.string=Ge.stream=Ge.pattern=Ge.path=Ge.fs=Ge.errno=Ge.array=void 0;var Yx=id();Ge.array=Yx;var zx=sd();Ge.errno=zx;var Vx=od();Ge.fs=Vx;var Kx=ld();Ge.path=Kx;var Xx=Pp();Ge.pattern=Xx;var Qx=Tp();Ge.stream=Qx;var Jx=Ip();Ge.string=Jx});var $p=F(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.convertPatternGroupToTask=Ue.convertPatternGroupsToTasks=Ue.groupPatternsByBaseDirectory=Ue.getNegativePatternsAsPositive=Ue.getPositivePatterns=Ue.convertPatternsToTasks=Ue.generate=void 0;var Lt=Zt();function Zx(e,t){let r=Lp(e,t),n=Lp(t.ignore,t),i=Np(r),s=Bp(r,n),o=i.filter(f=>Lt.pattern.isStaticPattern(f,t)),a=i.filter(f=>Lt.pattern.isDynamicPattern(f,t)),u=fu(o,s,!1),c=fu(a,s,!0);return u.concat(c)}Ue.generate=Zx;function Lp(e,t){let r=e;return t.braceExpansion&&(r=Lt.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>Lt.pattern.removeDuplicateSlashes(n))}function fu(e,t,r){let n=[],i=Lt.pattern.getPatternsOutsideCurrentDirectory(e),s=Lt.pattern.getPatternsInsideCurrentDirectory(e),o=hu(i),a=hu(s);return n.push(...du(o,t,r)),"."in a?n.push(pu(".",s,t,r)):n.push(...du(a,t,r)),n}Ue.convertPatternsToTasks=fu;function Np(e){return Lt.pattern.getPositivePatterns(e)}Ue.getPositivePatterns=Np;function Bp(e,t){return Lt.pattern.getNegativePatterns(e).concat(t).map(Lt.pattern.convertToPositivePattern)}Ue.getNegativePatternsAsPositive=Bp;function hu(e){let t={};return e.reduce((r,n)=>{let i=Lt.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}Ue.groupPatternsByBaseDirectory=hu;function du(e,t,r){return Object.keys(e).map(n=>pu(n,e[n],t,r))}Ue.convertPatternGroupsToTasks=du;function pu(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(Lt.pattern.convertToNegativePattern))}}Ue.convertPatternGroupToTask=pu});var jp=F(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.read=void 0;function eb(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){Mp(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){gu(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){Mp(r,s);return}gu(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),gu(r,o)})})}Ws.read=eb;function Mp(e,t){e(t)}function gu(e,t){e(null,t)}});var qp=F(Ys=>{"use strict";Object.defineProperty(Ys,"__esModule",{value:!0});Ys.read=void 0;function tb(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Ys.read=tb});var Hp=F(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.createFileSystemAdapter=Sr.FILE_SYSTEM_ADAPTER=void 0;var zs=M("fs");Sr.FILE_SYSTEM_ADAPTER={lstat:zs.lstat,stat:zs.stat,lstatSync:zs.lstatSync,statSync:zs.statSync};function rb(e){return e===void 0?Sr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Sr.FILE_SYSTEM_ADAPTER),e)}Sr.createFileSystemAdapter=rb});var Gp=F(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});var nb=Hp(),mu=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=nb.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};yu.default=mu});var Vr=F(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.statSync=wr.stat=wr.Settings=void 0;var Up=jp(),ib=qp(),vu=Gp();wr.Settings=vu.default;function sb(e,t,r){if(typeof t=="function"){Up.read(e,Eu(),t);return}Up.read(e,Eu(t),r)}wr.stat=sb;function ob(e,t){let r=Eu(t);return ib.read(e,r)}wr.statSync=ob;function Eu(e={}){return e instanceof vu.default?e:new vu.default(e)}});var zp=F((Yj,Yp)=>{var Wp;Yp.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Wp||(Wp=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var Kp=F((zj,Vp)=>{Vp.exports=ub;var ab=zp();function ub(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(u){function c(){t&&t(u,r),t=null}s?ab(c):c()}function a(u,c,f){r[u]=f,(--n===0||c)&&o(c)}n?i?i.forEach(function(u){e[u](function(c,f){a(u,c,f)})}):e.forEach(function(u,c){u(function(f,l){a(c,f,l)})}):o(null),s=!1}});var Au=F(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Vs=process.versions.node.split(".");if(Vs[0]===void 0||Vs[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var Xp=Number.parseInt(Vs[0],10),cb=Number.parseInt(Vs[1],10),Qp=10,lb=10,fb=Xp>Qp,hb=Xp===Qp&&cb>=lb;Ks.IS_SUPPORT_READDIR_WITH_FILE_TYPES=fb||hb});var Jp=F(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});Xs.createDirentFromStats=void 0;var Su=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function db(e,t){return new Su(e,t)}Xs.createDirentFromStats=db});var wu=F(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.fs=void 0;var pb=Jp();Qs.fs=pb});var Cu=F(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.joinPathSegments=void 0;function gb(e,t,r){return e.endsWith(r)?e+t:e+r+t}Js.joinPathSegments=gb});var ig=F(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.readdir=Cr.readdirWithFileTypes=Cr.read=void 0;var mb=Vr(),Zp=Kp(),yb=Au(),eg=wu(),tg=Cu();function vb(e,t,r){if(!t.stats&&yb.IS_SUPPORT_READDIR_WITH_FILE_TYPES){rg(e,t,r);return}ng(e,t,r)}Cr.read=vb;function rg(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Zs(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:tg.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){_u(r,s);return}let o=s.map(a=>Eb(a,t));Zp(o,(a,u)=>{if(a!==null){Zs(r,a);return}_u(r,u)})})}Cr.readdirWithFileTypes=rg;function Eb(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=eg.fs.createDirentFromStats(e.name,i),r(null,e)})}}function ng(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Zs(r,n);return}let s=i.map(o=>{let a=tg.joinPathSegments(e,o,t.pathSegmentSeparator);return u=>{mb.stat(a,t.fsStatSettings,(c,f)=>{if(c!==null){u(c);return}let l={name:o,path:a,dirent:eg.fs.createDirentFromStats(o,f)};t.stats&&(l.stats=f),u(null,l)})}});Zp(s,(o,a)=>{if(o!==null){Zs(r,o);return}_u(r,a)})})}Cr.readdir=ng;function Zs(e,t){e(t)}function _u(e,t){e(null,t)}});var cg=F(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.readdir=_r.readdirWithFileTypes=_r.read=void 0;var Ab=Vr(),Sb=Au(),sg=wu(),og=Cu();function wb(e,t){return!t.stats&&Sb.IS_SUPPORT_READDIR_WITH_FILE_TYPES?ag(e,t):ug(e,t)}_r.read=wb;function ag(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:og.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=sg.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}_r.readdirWithFileTypes=ag;function ug(e,t){return t.fs.readdirSync(e).map(n=>{let i=og.joinPathSegments(e,n,t.pathSegmentSeparator),s=Ab.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:sg.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}_r.readdir=ug});var lg=F(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.createFileSystemAdapter=xr.FILE_SYSTEM_ADAPTER=void 0;var Rn=M("fs");xr.FILE_SYSTEM_ADAPTER={lstat:Rn.lstat,stat:Rn.stat,lstatSync:Rn.lstatSync,statSync:Rn.statSync,readdir:Rn.readdir,readdirSync:Rn.readdirSync};function Cb(e){return e===void 0?xr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},xr.FILE_SYSTEM_ADAPTER),e)}xr.createFileSystemAdapter=Cb});var fg=F(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});var _b=M("path"),xb=Vr(),bb=lg(),xu=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=bb.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,_b.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new xb.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};bu.default=xu});var eo=F(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.Settings=br.scandirSync=br.scandir=void 0;var hg=ig(),Ob=cg(),Ou=fg();br.Settings=Ou.default;function Rb(e,t,r){if(typeof t=="function"){hg.read(e,Ru(),t);return}hg.read(e,Ru(t),r)}br.scandir=Rb;function Fb(e,t){let r=Ru(t);return Ob.read(e,r)}br.scandirSync=Fb;function Ru(e={}){return e instanceof Ou.default?e:new Ou.default(e)}});var pg=F((nq,dg)=>{"use strict";function kb(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}dg.exports=kb});var mg=F((iq,Fu)=>{"use strict";var Pb=pg();function gg(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=Pb(Db),i=null,s=null,o=0,a=null,u={push:S,drain:wt,saturated:wt,pause:f,paused:!1,get concurrency(){return r},set concurrency(A){if(!(A>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=A,!u.paused)for(;i&&o<r;)o++,k()},running:c,resume:d,idle:g,length:l,getQueue:h,unshift:w,empty:wt,kill:_,killAndDrain:N,error:D};return u;function c(){return o}function f(){u.paused=!0}function l(){for(var A=i,R=0;A;)A=A.next,R++;return R}function h(){for(var A=i,R=[];A;)R.push(A.value),A=A.next;return R}function d(){if(u.paused){if(u.paused=!1,i===null){o++,k();return}for(;i&&o<r;)o++,k()}}function g(){return o===0&&u.length()===0}function S(A,R){var b=n.get();b.context=e,b.release=k,b.value=A,b.callback=R||wt,b.errorHandler=a,o>=r||u.paused?s?(s.next=b,s=b):(i=b,s=b,u.saturated()):(o++,t.call(e,b.value,b.worked))}function w(A,R){var b=n.get();b.context=e,b.release=k,b.value=A,b.callback=R||wt,b.errorHandler=a,o>=r||u.paused?i?(b.next=i,i=b):(i=b,s=b,u.saturated()):(o++,t.call(e,b.value,b.worked))}function k(A){A&&n.release(A);var R=i;R&&o<=r?u.paused?o--:(s===i&&(s=null),i=R.next,R.next=null,t.call(e,R.value,R.worked),s===null&&u.empty()):--o===0&&u.drain()}function _(){i=null,s=null,u.drain=wt}function N(){i=null,s=null,u.drain(),u.drain=wt}function D(A){a=A}}function wt(){}function Db(){this.value=null,this.callback=wt,this.next=null,this.release=wt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=wt,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function Tb(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(f,l){t.call(this,f).then(function(h){l(null,h)},l)}var i=gg(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=u,i.drained=c,i;function a(f){var l=new Promise(function(h,d){s(f,function(g,S){if(g){d(g);return}h(S)})});return l.catch(wt),l}function u(f){var l=new Promise(function(h,d){o(f,function(g,S){if(g){d(g);return}h(S)})});return l.catch(wt),l}function c(){if(i.idle())return new Promise(function(h){h()});var f=i.drain,l=new Promise(function(h){i.drain=function(){f(),h()}});return l}}Fu.exports=gg;Fu.exports.promise=Tb});var to=F(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.joinPathSegments=Ht.replacePathSegmentSeparator=Ht.isAppliedFilter=Ht.isFatalError=void 0;function Ib(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}Ht.isFatalError=Ib;function Lb(e,t){return e===null||e(t)}Ht.isAppliedFilter=Lb;function Nb(e,t){return e.split(/[/\\]/).join(t)}Ht.replacePathSegmentSeparator=Nb;function Bb(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}Ht.joinPathSegments=Bb});var Du=F(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});var $b=to(),ku=class{constructor(t,r){this._root=t,this._settings=r,this._root=$b.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};Pu.default=ku});var Lu=F(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});var Mb=M("events"),jb=eo(),qb=mg(),ro=to(),Hb=Du(),Tu=class extends Hb.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=jb.scandir,this._emitter=new Mb.EventEmitter,this._queue=qb(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!ro.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=ro.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),ro.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&ro.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};Iu.default=Tu});var yg=F(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});var Gb=Lu(),Nu=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Gb.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{Ub(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{Wb(t,this._storage)}),this._reader.read()}};Bu.default=Nu;function Ub(e,t){e(t)}function Wb(e,t){e(null,t)}});var vg=F(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var Yb=M("stream"),zb=Lu(),$u=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new zb.default(this._root,this._settings),this._stream=new Yb.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};Mu.default=$u});var Eg=F(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});var Vb=eo(),no=to(),Kb=Du(),ju=class extends Kb.default{constructor(){super(...arguments),this._scandir=Vb.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(no.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=no.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),no.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&no.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};qu.default=ju});var Ag=F(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});var Xb=Eg(),Hu=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new Xb.default(this._root,this._settings)}read(){return this._reader.read()}};Gu.default=Hu});var Sg=F(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});var Qb=M("path"),Jb=eo(),Uu=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,Qb.sep),this.fsScandirSettings=new Jb.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Wu.default=Uu});var so=F(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.Settings=Gt.walkStream=Gt.walkSync=Gt.walk=void 0;var wg=yg(),Zb=vg(),eO=Ag(),Yu=Sg();Gt.Settings=Yu.default;function tO(e,t,r){if(typeof t=="function"){new wg.default(e,io()).read(t);return}new wg.default(e,io(t)).read(r)}Gt.walk=tO;function rO(e,t){let r=io(t);return new eO.default(e,r).read()}Gt.walkSync=rO;function nO(e,t){let r=io(t);return new Zb.default(e,r).read()}Gt.walkStream=nO;function io(e={}){return e instanceof Yu.default?e:new Yu.default(e)}});var oo=F(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});var iO=M("path"),sO=Vr(),Cg=Zt(),zu=class{constructor(t){this._settings=t,this._fsStatSettings=new sO.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return iO.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:Cg.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!Cg.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};Vu.default=zu});var Qu=F(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});var oO=M("stream"),aO=Vr(),uO=so(),cO=oo(),Ku=class extends cO.default{constructor(){super(...arguments),this._walkStream=uO.walkStream,this._stat=aO.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new oO.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(u=>{u!==null&&r.entryFilter(u)&&i.push(u),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Xu.default=Ku});var _g=F(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});var lO=so(),fO=oo(),hO=Qu(),Ju=class extends fO.default{constructor(){super(...arguments),this._walkAsync=lO.walk,this._readerStream=new hO.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Zu.default=Ju});var xg=F(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});var Fi=Zt(),ec=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:t,segments:r,sections:n})}}_getPatternSegments(t){return Fi.pattern.getPatternParts(t,this._micromatchOptions).map(n=>Fi.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:Fi.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return Fi.array.splitWhen(t,r=>r.dynamic&&Fi.pattern.hasGlobStar(r.pattern))}};tc.default=ec});var bg=F(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});var dO=xg(),rc=class extends dO.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((u,c)=>{let f=s.segments[c];return!!(f.dynamic&&f.patternRe.test(u)||!f.dynamic&&f.pattern===u)}))return!0}return!1}};nc.default=rc});var Og=F(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var ao=Zt(),pO=bg(),ic=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new pO.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(ao.pattern.isAffectDepthOfReadingPattern);return ao.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=ao.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!ao.pattern.matchAny(t,r)}};sc.default=ic});var Rg=F(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});var Kr=Zt(),oc=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let n=Kr.pattern.convertPatternsToRe(t,this._micromatchOptions),i=Kr.pattern.convertPatternsToRe(r,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return s=>this._filter(s,n,i)}_filter(t,r,n){let i=Kr.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(i)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t)||this._isSkippedByAbsoluteNegativePatterns(i,n))return!1;let s=t.dirent.isDirectory(),o=this._isMatchToPatterns(i,r,s)&&!this._isMatchToPatterns(i,n,s);return this._settings.unique&&o&&this._createIndexRecord(i),o}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(t,r){if(!this._settings.absolute)return!1;let n=Kr.path.makeAbsolute(this._settings.cwd,t);return Kr.pattern.matchAny(n,r)}_isMatchToPatterns(t,r,n){let i=Kr.pattern.matchAny(t,r);return!i&&n?Kr.pattern.matchAny(t+"/",r):i}};ac.default=oc});var Fg=F(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});var gO=Zt(),uc=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return gO.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};cc.default=uc});var Pg=F(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});var kg=Zt(),lc=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=kg.path.makeAbsolute(this._settings.cwd,r),r=kg.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};fc.default=lc});var uo=F(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});var mO=M("path"),yO=Og(),vO=Rg(),EO=Fg(),AO=Pg(),hc=class{constructor(t){this._settings=t,this.errorFilter=new EO.default(this._settings),this.entryFilter=new vO.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new yO.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new AO.default(this._settings)}_getRootDirectory(t){return mO.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};dc.default=hc});var Dg=F(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});var SO=_g(),wO=uo(),pc=class extends wO.default{constructor(){super(...arguments),this._reader=new SO.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};gc.default=pc});var Tg=F(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});var CO=M("stream"),_O=Qu(),xO=uo(),mc=class extends xO.default{constructor(){super(...arguments),this._reader=new _O.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new CO.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};yc.default=mc});var Ig=F(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});var bO=Vr(),OO=so(),RO=oo(),vc=class extends RO.default{constructor(){super(...arguments),this._walkSync=OO.walkSync,this._statSync=bO.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Ec.default=vc});var Lg=F(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var FO=Ig(),kO=uo(),Ac=class extends kO.default{constructor(){super(...arguments),this._reader=new FO.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Sc.default=Ac});var Ng=F(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var Fn=M("fs"),PO=M("os"),DO=Math.max(PO.cpus().length,1);kn.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:Fn.lstat,lstatSync:Fn.lstatSync,stat:Fn.stat,statSync:Fn.statSync,readdir:Fn.readdir,readdirSync:Fn.readdirSync};var wc=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,DO),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},kn.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};kn.default=wc});var bc=F((Fq,$g)=>{"use strict";var Bg=$p(),TO=Dg(),IO=Tg(),LO=Lg(),Cc=Ng(),Ct=Zt();async function _c(e,t){Nt(e);let r=xc(e,TO.default,t),n=await Promise.all(r);return Ct.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(c,f){Nt(c);let l=xc(c,LO.default,f);return Ct.array.flatten(l)}e.sync=t;function r(c,f){Nt(c);let l=xc(c,IO.default,f);return Ct.stream.merge(l)}e.stream=r;function n(c,f){Nt(c);let l=[].concat(c),h=new Cc.default(f);return Bg.generate(l,h)}e.generateTasks=n;function i(c,f){Nt(c);let l=new Cc.default(f);return Ct.pattern.isDynamicPattern(c,l)}e.isDynamicPattern=i;function s(c){return Nt(c),Ct.path.escape(c)}e.escapePath=s;function o(c){return Nt(c),Ct.path.convertPathToPattern(c)}e.convertPathToPattern=o;let a;(function(c){function f(h){return Nt(h),Ct.path.escapePosixPath(h)}c.escapePath=f;function l(h){return Nt(h),Ct.path.convertPosixPathToPattern(h)}c.convertPathToPattern=l})(a=e.posix||(e.posix={}));let u;(function(c){function f(h){return Nt(h),Ct.path.escapeWindowsPath(h)}c.escapePath=f;function l(h){return Nt(h),Ct.path.convertWindowsPathToPattern(h)}c.convertPathToPattern=l})(u=e.win32||(e.win32={}))})(_c||(_c={}));function xc(e,t,r){let n=[].concat(e),i=new Cc.default(r),s=Bg.generate(n,i),o=new t(i);return s.map(o.read,o)}function Nt(e){if(![].concat(e).every(n=>Ct.string.isString(n)&&!Ct.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}$g.exports=_c});var jg=F(Xr=>{"use strict";var{promisify:NO}=M("util"),Mg=M("fs");async function Oc(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return(await NO(Mg[e])(r))[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}function Rc(e,t,r){if(typeof r!="string")throw new TypeError(`Expected a string, got ${typeof r}`);try{return Mg[e](r)[t]()}catch(n){if(n.code==="ENOENT")return!1;throw n}}Xr.isFile=Oc.bind(null,"stat","isFile");Xr.isDirectory=Oc.bind(null,"stat","isDirectory");Xr.isSymlink=Oc.bind(null,"lstat","isSymbolicLink");Xr.isFileSync=Rc.bind(null,"statSync","isFile");Xr.isDirectorySync=Rc.bind(null,"statSync","isDirectory");Xr.isSymlinkSync=Rc.bind(null,"lstatSync","isSymbolicLink")});var Wg=F((Pq,Fc)=>{"use strict";var Qr=M("path"),qg=jg(),Hg=e=>e.length>1?`{${e.join(",")}}`:e[0],Gg=(e,t)=>{let r=e[0]==="!"?e.slice(1):e;return Qr.isAbsolute(r)?r:Qr.join(t,r)},BO=(e,t)=>Qr.extname(e)?`**/${e}`:`**/${e}.${Hg(t)}`,Ug=(e,t)=>{if(t.files&&!Array.isArray(t.files))throw new TypeError(`Expected \`files\` to be of type \`Array\` but received type \`${typeof t.files}\``);if(t.extensions&&!Array.isArray(t.extensions))throw new TypeError(`Expected \`extensions\` to be of type \`Array\` but received type \`${typeof t.extensions}\``);return t.files&&t.extensions?t.files.map(r=>Qr.posix.join(e,BO(r,t.extensions))):t.files?t.files.map(r=>Qr.posix.join(e,`**/${r}`)):t.extensions?[Qr.posix.join(e,`**/*.${Hg(t.extensions)}`)]:[Qr.posix.join(e,"**")]};Fc.exports=async(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=await Promise.all([].concat(e).map(async n=>await qg.isDirectory(Gg(n,t.cwd))?Ug(n,t):n));return[].concat.apply([],r)};Fc.exports.sync=(e,t)=>{if(t={cwd:process.cwd(),...t},typeof t.cwd!="string")throw new TypeError(`Expected \`cwd\` to be of type \`string\` but received type \`${typeof t.cwd}\``);let r=[].concat(e).map(n=>qg.isDirectorySync(Gg(n,t.cwd))?Ug(n,t):n);return[].concat.apply([],r)}});var e0=F((Dq,Zg)=>{function Yg(e){return Array.isArray(e)?e:[e]}var Dc="",zg=" ",kc="\\",$O=/^\s+$/,MO=/(?:[^\\]|^)\\$/,jO=/^\\!/,qO=/^\\#/,HO=/\r?\n/g,GO=/^\.*\/|^\.+$/,Pc="/",Xg="node-ignore";typeof Symbol<"u"&&(Xg=Symbol.for("node-ignore"));var Vg=Xg,UO=(e,t,r)=>Object.defineProperty(e,t,{value:r}),WO=/([0-z])-([0-z])/g,Qg=()=>!1,YO=e=>e.replace(WO,(t,r,n)=>r.charCodeAt(0)<=n.charCodeAt(0)?t:Dc),zO=e=>{let{length:t}=e;return e.slice(0,t-t%2)},VO=[[/^\uFEFF/,()=>Dc],[/\\?\s+$/,e=>e.indexOf("\\")===0?zg:Dc],[/\\\s/g,()=>zg],[/[\\$.|*+(){^]/g,e=>`\\${e}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(e,t,r)=>t+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(e,t,r)=>{let n=r.replace(/\\\*/g,"[^\\/]*");return t+n}],[/\\\\\\(?=[$.|*+(){^])/g,()=>kc],[/\\\\/g,()=>kc],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(e,t,r,n,i)=>t===kc?`\\[${r}${zO(n)}${i}`:i==="]"&&n.length%2===0?`[${YO(r)}${n}]`:"[]"],[/(?:[^*])$/,e=>/\/$/.test(e)?`${e}$`:`${e}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(e,t)=>`${t?`${t}[^/]+`:"[^/]*"}(?=$|\\/$)`]],Kg=Object.create(null),KO=(e,t)=>{let r=Kg[e];return r||(r=VO.reduce((n,i)=>n.replace(i[0],i[1].bind(e)),e),Kg[e]=r),t?new RegExp(r,"i"):new RegExp(r)},Lc=e=>typeof e=="string",XO=e=>e&&Lc(e)&&!$O.test(e)&&!MO.test(e)&&e.indexOf("#")!==0,QO=e=>e.split(HO),Tc=class{constructor(t,r,n,i){this.origin=t,this.pattern=r,this.negative=n,this.regex=i}},JO=(e,t)=>{let r=e,n=!1;e.indexOf("!")===0&&(n=!0,e=e.substr(1)),e=e.replace(jO,"!").replace(qO,"#");let i=KO(e,t);return new Tc(r,e,n,i)},ZO=(e,t)=>{throw new t(e)},er=(e,t,r)=>Lc(e)?e?er.isNotRelative(e)?r(`path should be a \`path.relative()\`d string, but got "${t}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${t}\``,TypeError),Jg=e=>GO.test(e);er.isNotRelative=Jg;er.convert=e=>e;var Ic=class{constructor({ignorecase:t=!0,ignoreCase:r=t,allowRelativePaths:n=!1}={}){UO(this,Vg,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=n,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(t){if(t&&t[Vg]){this._rules=this._rules.concat(t._rules),this._added=!0;return}if(XO(t)){let r=JO(t,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(t){return this._added=!1,Yg(Lc(t)?QO(t):t).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(t){return this.add(t)}_testOne(t,r){let n=!1,i=!1;return this._rules.forEach(s=>{let{negative:o}=s;if(i===o&&n!==i||o&&!n&&!i&&!r)return;s.regex.test(t)&&(n=!o,i=o)}),{ignored:n,unignored:i}}_test(t,r,n,i){let s=t&&er.convert(t);return er(s,t,this._allowRelativePaths?Qg:ZO),this._t(s,r,n,i)}_t(t,r,n,i){if(t in r)return r[t];if(i||(i=t.split(Pc)),i.pop(),!i.length)return r[t]=this._testOne(t,n);let s=this._t(i.join(Pc)+Pc,r,n,i);return r[t]=s.ignored?s:this._testOne(t,n)}ignores(t){return this._test(t,this._ignoreCache,!1).ignored}createFilter(){return t=>!this.ignores(t)}filter(t){return Yg(t).filter(this.createFilter())}test(t){return this._test(t,this._testCache,!0)}},co=e=>new Ic(e),eR=e=>er(e&&er.convert(e),e,Qg);co.isPathValid=eR;co.default=co;Zg.exports=co;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let e=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");er.convert=e;let t=/^[a-z]:\//i;er.isNotRelative=r=>t.test(r)||Jg(r)}});var r0=F((Tq,t0)=>{"use strict";t0.exports=e=>{let t=/^\\\\\?\\/.test(e),r=/[^\u0000-\u0080]+/.test(e);return t||r?e:e.replace(/\\/g,"/")}});var c0=F((Iq,Nc)=>{"use strict";var{promisify:tR}=M("util"),n0=M("fs"),tr=M("path"),i0=bc(),rR=e0(),ki=r0(),s0=["**/node_modules/**","**/flow-typed/**","**/coverage/**","**/.git"],nR=tR(n0.readFile),iR=e=>t=>t.startsWith("!")?"!"+tr.posix.join(e,t.slice(1)):tr.posix.join(e,t),sR=(e,t)=>{let r=ki(tr.relative(t.cwd,tr.dirname(t.fileName)));return e.split(/\r?\n/).filter(Boolean).filter(n=>!n.startsWith("#")).map(iR(r))},o0=e=>{let t=rR();for(let r of e)t.add(sR(r.content,{cwd:r.cwd,fileName:r.filePath}));return t},oR=(e,t)=>{if(e=ki(e),tr.isAbsolute(t)){if(ki(t).startsWith(e))return t;throw new Error(`Path ${t} is not in cwd ${e}`)}return tr.join(e,t)},a0=(e,t)=>r=>e.ignores(ki(tr.relative(t,oR(t,r.path||r)))),aR=async(e,t)=>{let r=tr.join(t,e),n=await nR(r,"utf8");return{cwd:t,filePath:r,content:n}},uR=(e,t)=>{let r=tr.join(t,e),n=n0.readFileSync(r,"utf8");return{cwd:t,filePath:r,content:n}},u0=({ignore:e=[],cwd:t=ki(process.cwd())}={})=>({ignore:e,cwd:t});Nc.exports=async e=>{e=u0(e);let t=await i0("**/.gitignore",{ignore:s0.concat(e.ignore),cwd:e.cwd}),r=await Promise.all(t.map(i=>aR(i,e.cwd))),n=o0(r);return a0(n,e.cwd)};Nc.exports.sync=e=>{e=u0(e);let r=i0.sync("**/.gitignore",{ignore:s0.concat(e.ignore),cwd:e.cwd}).map(i=>uR(i,e.cwd)),n=o0(r);return a0(n,e.cwd)}});var f0=F((Lq,l0)=>{"use strict";var{Transform:cR}=M("stream"),lo=class extends cR{constructor(){super({objectMode:!0})}},Bc=class extends lo{constructor(t){super(),this._filter=t}_transform(t,r,n){this._filter(t)&&this.push(t),n()}},$c=class extends lo{constructor(){super(),this._pushed=new Set}_transform(t,r,n){this._pushed.has(t)||(this.push(t),this._pushed.add(t)),n()}};l0.exports={FilterStream:Bc,UniqueStream:$c}});var m0=F((Nq,Jr)=>{"use strict";var d0=M("fs"),fo=ed(),lR=Ha(),ho=bc(),po=Wg(),Mc=c0(),{FilterStream:fR,UniqueStream:hR}=f0(),p0=()=>!1,h0=e=>e[0]==="!",dR=e=>{if(!e.every(t=>typeof t=="string"))throw new TypeError("Patterns must be a string or an array of strings")},pR=(e={})=>{if(!e.cwd)return;let t;try{t=d0.statSync(e.cwd)}catch{return}if(!t.isDirectory())throw new Error("The `cwd` option must be a path to a directory")},gR=e=>e.stats instanceof d0.Stats?e.path:e,go=(e,t)=>{e=fo([].concat(e)),dR(e),pR(t);let r=[];t={ignore:[],expandDirectories:!0,...t};for(let[n,i]of e.entries()){if(h0(i))continue;let s=e.slice(n).filter(a=>h0(a)).map(a=>a.slice(1)),o={...t,ignore:t.ignore.concat(s)};r.push({pattern:i,options:o})}return r},mR=(e,t)=>{let r={};return e.options.cwd&&(r.cwd=e.options.cwd),Array.isArray(e.options.expandDirectories)?r={...r,files:e.options.expandDirectories}:typeof e.options.expandDirectories=="object"&&(r={...r,...e.options.expandDirectories}),t(e.pattern,r)},jc=(e,t)=>e.options.expandDirectories?mR(e,t):[e.pattern],g0=e=>e&&e.gitignore?Mc.sync({cwd:e.cwd,ignore:e.ignore}):p0,qc=e=>t=>{let{options:r}=e;return r.ignore&&Array.isArray(r.ignore)&&r.expandDirectories&&(r.ignore=po.sync(r.ignore)),{pattern:t,options:r}};Jr.exports=async(e,t)=>{let r=go(e,t),n=async()=>t&&t.gitignore?Mc({cwd:t.cwd,ignore:t.ignore}):p0,i=async()=>{let u=await Promise.all(r.map(async c=>{let f=await jc(c,po);return Promise.all(f.map(qc(c)))}));return fo(...u)},[s,o]=await Promise.all([n(),i()]),a=await Promise.all(o.map(u=>ho(u.pattern,u.options)));return fo(...a).filter(u=>!s(gR(u)))};Jr.exports.sync=(e,t)=>{let r=go(e,t),n=[];for(let o of r){let a=jc(o,po.sync).map(qc(o));n.push(...a)}let i=g0(t),s=[];for(let o of n)s=fo(s,ho.sync(o.pattern,o.options));return s.filter(o=>!i(o))};Jr.exports.stream=(e,t)=>{let r=go(e,t),n=[];for(let a of r){let u=jc(a,po.sync).map(qc(a));n.push(...u)}let i=g0(t),s=new fR(a=>!i(a)),o=new hR;return lR(n.map(a=>ho.stream(a.pattern,a.options))).pipe(s).pipe(o)};Jr.exports.generateGlobTasks=go;Jr.exports.hasMagic=(e,t)=>[].concat(e).some(r=>ho.isDynamicPattern(r,t));Jr.exports.gitignore=Mc});var yo=F(Pn=>{"use strict";var y0=Pn&&Pn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.getPackagePaths=void 0;var mo=y0(M("path")),yR=y0(m0()),Pi={};function vR(e,t,r){if(Pi[e])return Pi[e];let n=yR.default.sync(t.map(i=>mo.default.join(i,"package.json").replace(/\\/g,"/")),{cwd:e,absolute:!0,ignore:["**/node_modules/**","**/__fixtures__/**"],stats:!1}).map(i=>mo.default.dirname(i));return mo.default.sep==="/"?Pi[e]=n:Pi[e]=n.map(i=>i.replace(/\//g,mo.default.sep)),Pi[e]}Pn.getPackagePaths=vR});var Di=F(Dn=>{"use strict";var v0=Dn&&Dn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.getWorkspacePackageInfo=void 0;var ER=v0(M("path")),AR=v0(M("fs"));function SR(e){return e?e.reduce((t,r)=>{let n,i=ER.default.join(r,"package.json");try{n=JSON.parse(AR.default.readFileSync(i,"utf-8"))}catch{return t}return[...t,{name:n.name,path:r,packageJson:{...n,packageJsonPath:i}}]},[]):[]}Dn.getWorkspacePackageInfo=SR});var Hc=F(Or=>{"use strict";var E0=Or&&Or.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Or,"__esModule",{value:!0});Or.getWorkspaceInfoFromWorkspaceRoot=Or.getPackageJsonWorkspaceRoot=void 0;var wR=E0(M("fs")),A0=E0(M("path")),CR=Ts(),_R=yo(),xR=Di();function bR(e){var t;let r=(t=(0,CR.getWorkspaceImplementationAndLockFile)(e))===null||t===void 0?void 0:t.lockFile;return r?A0.default.dirname(r):e}Or.getPackageJsonWorkspaceRoot=bR;function OR(e){let t=A0.default.join(e,"package.json");try{return JSON.parse(wR.default.readFileSync(t,"utf-8"))}catch{throw new Error("Could not load package.json from workspaces root")}}function RR(e){let{workspaces:t}=e;if(t&&Array.isArray(t))return t;if(!t||!t.packages)throw new Error("Could not find a workspaces object in package.json");return t.packages}function FR(e){try{let t=OR(e),r=RR(t),n=(0,_R.getPackagePaths)(e,r);return(0,xR.getWorkspacePackageInfo)(n)}catch{return[]}}Or.getWorkspaceInfoFromWorkspaceRoot=FR});var vo=F(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.getYarnWorkspaces=Tn.getYarnWorkspaceRoot=void 0;var S0=Hc();function w0(e){let t=(0,S0.getPackageJsonWorkspaceRoot)(e);if(!t)throw new Error("Could not find yarn workspaces root");return t}Tn.getYarnWorkspaceRoot=w0;function kR(e){let t=w0(e);return(0,S0.getWorkspaceInfoFromWorkspaceRoot)(t)}Tn.getYarnWorkspaces=kR});var In=F((qq,Zr)=>{"use strict";function C0(e){return typeof e>"u"||e===null}function PR(e){return typeof e=="object"&&e!==null}function DR(e){return Array.isArray(e)?e:C0(e)?[]:[e]}function TR(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function IR(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function LR(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Zr.exports.isNothing=C0;Zr.exports.isObject=PR;Zr.exports.toArray=DR;Zr.exports.repeat=IR;Zr.exports.isNegativeZero=LR;Zr.exports.extend=TR});var Ln=F((Hq,x0)=>{"use strict";function _0(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
1
+ var UP=Object.create;var Cd=Object.defineProperty;var HP=Object.getOwnPropertyDescriptor;var YP=Object.getOwnPropertyNames;var zP=Object.getPrototypeOf,VP=Object.prototype.hasOwnProperty;var q=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var R=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var KP=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of YP(t))!VP.call(e,i)&&i!==r&&Cd(e,i,{get:()=>t[i],enumerable:!(n=HP(t,i))||n.enumerable});return e};var xd=(e,t,r)=>(r=e!=null?UP(zP(e)):{},KP(t||!e||!e.__esModule?Cd(r,"default",{value:e,enumerable:!0}):r,e));var wo=R(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.getPackageDependencies=void 0;function XP(e,t){let r=e.dependencies?.[t]||e.devDependencies?.[t]||e.peerDependencies?.[t]||e.optionalDependencies?.[t];return r?!r.startsWith("npm:")&&!r.startsWith("file:"):!1}function JP(e,t,r={withDevDependencies:!0}){let n=[];if(e.dependencies)for(let s of Object.keys(e.dependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.devDependencies&&r.withDevDependencies)for(let s of Object.keys(e.devDependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.peerDependencies&&r.withPeerDependencies)for(let s of Object.keys(e.peerDependencies))s!==e.name&&t.has(s)&&n.push(s);if(e.optionalDependencies&&r.withOptionalDependencies)for(let s of Object.keys(e.optionalDependencies))s!==e.name&&t.has(s)&&n.push(s);return n.filter(s=>XP(e,s))}Eo.getPackageDependencies=JP});var zn=R(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.isCachingEnabled=Yn.setCachingEnabled=void 0;var Pd=!0;function QP(e){Pd=e}Yn.setCachingEnabled=QP;function ZP(){return Pd}Yn.isCachingEnabled=ZP});var Od=R(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.getTransitiveProviders=Yr.getTransitiveConsumers=Yr.getDependentMap=void 0;var eO=wo(),tO=zn(),rc=new Map;function rO(e,t=[]){return JSON.stringify({packages:e,scope:t})}function nc(e,t=[]){let r=new Set(Object.keys(e)),n=rO(e,t);if((0,tO.isCachingEnabled)()&&rc.has(n))return rc.get(n);let i=[],s=new Set,o=t.length>0?[...t]:Object.keys(e);for(;o.length>0;){let a=o.pop();if(s.has(a))continue;s.add(a);let c=e[a],u=(0,eO.getPackageDependencies)(c,r);if(u.length>0)for(let f of u)o.push(f),i.push([f,a]);else i.push([null,a])}return rc.set(n,i),i}function nO(e){let t=nc(e),r=new Map;for(let[n,i]of t)r.has(i)||r.set(i,new Set),n&&r.get(i).add(n);return r}Yr.getDependentMap=nO;function iO(e,t,r=[]){let n=nc(t,r),i=[...e],s=new Set;for(;i.length>0;){let o=i.shift();if(!s.has(o)){s.add(o);for(let[a,c]of n)a===o&&i.push(c)}}return[...s].filter(o=>!e.includes(o))}Yr.getTransitiveConsumers=iO;function sO(e,t){let r=nc(t),n=[...e],i=new Set;for(;n.length>0;){let s=n.shift();if(!i.has(s)){i.add(s);for(let[o,a]of r)a===s&&o&&n.push(o)}}return[...i].filter(s=>!e.includes(s))}Yr.getTransitiveProviders=sO});var Rd=R(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getInternalDeps=Bt.getTransitiveConsumers=Bt.getTransitiveDependents=Bt.getTransitiveProviders=Bt.getTransitiveDependencies=void 0;var So=Od();Object.defineProperty(Bt,"getTransitiveConsumers",{enumerable:!0,get:function(){return So.getTransitiveConsumers}});Object.defineProperty(Bt,"getTransitiveProviders",{enumerable:!0,get:function(){return So.getTransitiveProviders}});var oO=wo();Bt.getTransitiveDependencies=So.getTransitiveProviders;Bt.getTransitiveDependents=So.getTransitiveConsumers;Bt.getInternalDeps=oO.getPackageDependencies});var ic=R(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.infoFromPackageJson=void 0;function aO(e,t){return{packageJsonPath:t,...e}}bo.infoFromPackageJson=aO});var sc=R(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.getWorkspaceRoot=void 0;var uO=Vn();function cO(e,t){return(0,uO.getWorkspaceManagerAndRoot)(e,void 0,t)?.root}Co.getWorkspaceRoot=cO});var zi=R(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.gitFailFast=Mt.git=Mt.clearGitObservers=Mt.addGitObserver=Mt.GitError=void 0;var lO=q("child_process"),xo=class extends Error{constructor(t,r){r instanceof Error?super(`${t}: ${r.message}`):super(t),this.originalError=r}};Mt.GitError=xo;var fO=process.env.GIT_MAX_BUFFER?parseInt(process.env.GIT_MAX_BUFFER):500*1024*1024,_d=!!process.env.GIT_DEBUG,Kn=[],oc;function hO(e){return Kn.push(e),()=>dO(e)}Mt.addGitObserver=hO;function pO(){Kn.splice(0,Kn.length)}Mt.clearGitObservers=pO;function dO(e){let t=Kn.indexOf(e);t>-1&&Kn.splice(t,1)}function kd(e,t){_d&&console.log(`git ${e.join(" ")}`);let r=(0,lO.spawnSync)("git",e,{maxBuffer:fO,...t}),n={...r,stderr:(r.stderr||"").toString().trimEnd(),stdout:(r.stdout||"").toString().trimEnd(),success:r.status===0};if(_d&&(console.log("exited with code "+r.status),n.stdout&&console.log(`git stdout:
2
+ `,n.stdout),n.stderr&&console.warn(`git stderr:
3
+ `,n.stderr)),!oc){oc=!0;for(let i of Kn)i(e,n);oc=!1}return n}Mt.git=kd;function gO(e,t){let r=kd(e,t);if(!r.success)throw t?.noExitCode||(process.exitCode=1),new xo(`CRITICAL ERROR: running git command: git ${e.join(" ")}!
4
+ ${r.stdout?.toString().trimEnd()}
5
+ ${r.stderr?.toString().trimEnd()}`)}Mt.gitFailFast=gO});var ac=R((F9,Dd)=>{"use strict";Dd.exports=function(t,r){r===!0&&(r=0);var n="";if(typeof t=="string")try{n=new URL(t).protocol}catch{}else t&&t.constructor===URL&&(n=t.protocol);var i=n.split(/\:|\+/).filter(Boolean);return typeof r=="number"?i[r]:i}});var Ld=R((L9,Fd)=>{"use strict";var mO=ac();function yO(e){var t={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:e,query:{},parse_failed:!1};try{var r=new URL(e);t.protocols=mO(r),t.protocol=t.protocols[0],t.port=r.port,t.resource=r.hostname,t.host=r.host,t.user=r.username||"",t.password=r.password||"",t.pathname=r.pathname,t.hash=r.hash.slice(1),t.search=r.search.slice(1),t.href=r.href,t.query=Object.fromEntries(r.searchParams)}catch{t.protocols=["file"],t.protocol=t.protocols[0],t.port="",t.resource="",t.user="",t.pathname="",t.hash="",t.search="",t.href=e,t.query={},t.parse_failed=!0}return t}Fd.exports=yO});var Id=R((T9,Nd)=>{"use strict";var vO=Ld();function AO(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var EO=AO(vO),wO="text/plain",SO="us-ascii",Td=(e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),bO=(e,{stripHash:t})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=t?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let c=(o.shift()||"").toLowerCase(),f=[...o.map(l=>{let[h,p=""]=l.split("=").map(d=>d.trim());return h==="charset"&&(p=p.toLowerCase(),p===SO)?"":`${h}${p?`=${p}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length>0||c&&c!==wO)&&f.unshift(c),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`};function CO(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return bO(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let i=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),t.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),t.stripAuthentication&&(i.username="",i.password=""),t.stripHash?i.hash="":t.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname){let o=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,a=0,c="";for(;;){let f=o.exec(i.pathname);if(!f)break;let l=f[0],h=f.index,p=i.pathname.slice(a,h);c+=p.replace(/\/{2,}/g,"/"),c+=l,a=h+l.length}let u=i.pathname.slice(a,i.pathname.length);c+=u.replace(/\/{2,}/g,"/"),i.pathname=c}if(i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];Td(a,t.removeDirectoryIndex)&&(o=o.slice(0,-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let o of[...i.searchParams.keys()])Td(o,t.removeQueryParameters)&&i.searchParams.delete(o);if(t.removeQueryParameters===!0&&(i.search=""),t.sortQueryParameters){i.searchParams.sort();try{i.search=decodeURIComponent(i.search)}catch{}}t.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=e;return e=i.toString(),!t.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}var uc=(e,t=!1)=>{let r=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,n=s=>{let o=new Error(s);throw o.subject_url=e,o};(typeof e!="string"||!e.trim())&&n("Invalid url."),e.length>uc.MAX_INPUT_LENGTH&&n("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),t&&(typeof t!="object"&&(t={stripHash:!1}),e=CO(e,t));let i=EO.default(e);if(i.parse_failed){let s=i.href.match(r);s?(i.protocols=["ssh"],i.protocol="ssh",i.resource=s[2],i.host=s[2],i.user=s[1],i.pathname=`/${s[3]}`,i.parse_failed=!1):n("URL parsing failed.")}return i};uc.MAX_INPUT_LENGTH=2048;Nd.exports=uc});var Md=R((N9,Bd)=>{"use strict";var xO=ac();function $d(e){if(Array.isArray(e))return e.indexOf("ssh")!==-1||e.indexOf("rsync")!==-1;if(typeof e!="string")return!1;var t=xO(e);if(e=e.substring(e.indexOf("://")+3),$d(t))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!e.match(r)&&e.indexOf("@")<e.indexOf(":")}Bd.exports=$d});var Wd=R((I9,qd)=>{"use strict";var PO=Id(),jd=Md();function OO(e){var t=PO(e);return t.token="",t.password==="x-oauth-basic"?t.token=t.user:t.user==="x-token-auth"&&(t.token=t.password),jd(t.protocols)||t.protocols.length===0&&jd(e)?t.protocol="ssh":t.protocols.length?t.protocol=t.protocols[0]:(t.protocol="file",t.protocols=["file"]),t.href=t.href.replace(/\/$/,""),t}qd.exports=OO});var Ud=R(($9,Gd)=>{"use strict";var RO=Wd();function cc(e){if(typeof e!="string")throw new Error("The url must be a string.");var t=/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i;t.test(e)&&(e="https://github.com/"+e);var r=RO(e),n=r.resource.split("."),i=null;switch(r.toString=function(v){return cc.stringify(this,v)},r.source=n.length>2?n.slice(1-n.length).join("."):r.source=r.resource,r.git_suffix=/\.git$/.test(r.pathname),r.name=decodeURIComponent((r.pathname||r.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),r.owner=decodeURIComponent(r.user),r.source){case"git.cloudforge.com":r.owner=r.user,r.organization=n[0],r.source="cloudforge.com";break;case"visualstudio.com":if(r.resource==="vs-ssh.visualstudio.com"){i=r.name.split("/"),i.length===4&&(r.organization=i[1],r.owner=i[2],r.name=i[3],r.full_name=i[2]+"/"+i[3]);break}else{i=r.name.split("/"),i.length===2?(r.owner=i[1],r.name=i[1],r.full_name="_git/"+r.name):i.length===3?(r.name=i[2],i[0]==="DefaultCollection"?(r.owner=i[2],r.organization=i[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=i[0],r.full_name=r.owner+"/_git/"+r.name)):i.length===4&&(r.organization=i[0],r.owner=i[1],r.name=i[3],r.full_name=r.organization+"/"+r.owner+"/_git/"+r.name);break}case"dev.azure.com":case"azure.com":if(r.resource==="ssh.dev.azure.com"){i=r.name.split("/"),i.length===4&&(r.organization=i[1],r.owner=i[2],r.name=i[3]);break}else{i=r.name.split("/"),i.length===5?(r.organization=i[0],r.owner=i[1],r.name=i[4],r.full_name="_git/"+r.name):i.length===3?(r.name=i[2],i[0]==="DefaultCollection"?(r.owner=i[2],r.organization=i[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=i[0],r.full_name=r.owner+"/_git/"+r.name)):i.length===4&&(r.organization=i[0],r.owner=i[1],r.name=i[3],r.full_name=r.organization+"/"+r.owner+"/_git/"+r.name),r.query&&r.query.path&&(r.filepath=r.query.path.replace(/^\/+/g,"")),r.query&&r.query.version&&(r.ref=r.query.version.replace(/^GB/,""));break}default:i=r.name.split("/");var s=i.length-1;if(i.length>=2){var o=i.indexOf("-",2),a=i.indexOf("blob",2),c=i.indexOf("tree",2),u=i.indexOf("commit",2),f=i.indexOf("src",2),l=i.indexOf("raw",2),h=i.indexOf("edit",2);s=o>0?o-1:a>0?a-1:c>0?c-1:u>0?u-1:f>0?f-1:l>0?l-1:h>0?h-1:s,r.owner=i.slice(0,s).join("/"),r.name=i[s],u&&(r.commit=i[s+2])}r.ref="",r.filepathtype="",r.filepath="";var p=i.length>s&&i[s+1]==="-"?s+1:s;i.length>p+2&&["raw","src","blob","tree","edit"].indexOf(i[p+1])>=0&&(r.filepathtype=i[p+1],r.ref=i[p+2],i.length>p+3&&(r.filepath=i.slice(p+3).join("/"))),r.organization=r.owner;break}r.full_name||(r.full_name=r.owner,r.name&&(r.full_name&&(r.full_name+="/"),r.full_name+=r.name)),r.owner.startsWith("scm/")&&(r.source="bitbucket-server",r.owner=r.owner.replace("scm/",""),r.organization=r.owner,r.full_name=r.owner+"/"+r.name);var d=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/,m=d.exec(r.pathname);return m!=null&&(r.source="bitbucket-server",m[1]==="users"?r.owner="~"+m[2]:r.owner=m[2],r.organization=r.owner,r.name=m[3],i=m[4].split("/"),i.length>1&&(["raw","browse"].indexOf(i[1])>=0?(r.filepathtype=i[1],i.length>2&&(r.filepath=i.slice(2).join("/"))):i[1]==="commits"&&i.length>2&&(r.commit=i[2])),r.full_name=r.owner+"/"+r.name,r.query.at?r.ref=r.query.at:r.ref=""),r}cc.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var r=e.port?":"+e.port:"",n=e.user||"git",i=e.git_suffix?".git":"";switch(t){case"ssh":return r?"ssh://"+n+"@"+e.resource+r+"/"+e.full_name+i:n+"@"+e.resource+":"+e.full_name+i;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+n+"@"+e.resource+r+"/"+e.full_name+i;case"http":case"https":var s=e.token?_O(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"";return t+"://"+s+e.resource+r+"/"+kO(e)+i;default:return e.href}};function _O(e){switch(e.source){case"bitbucket.org":return"x-token-auth:"+e.token+"@";default:return e.token+"@"}}function kO(e){switch(e.source){case"bitbucket-server":return"scm/"+e.full_name;default:return""+e.full_name}}Gd.exports=cc});var Hd=R(Xn=>{"use strict";var DO=Xn&&Xn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.getRepositoryName=void 0;var FO=DO(Ud());function LO(e){try{let t=e.replace("/_optimized/","/").replace("/DefaultCollection/","/"),r=(0,FO.default)(t),n=t.includes(".visualstudio.com"),i=t.includes("dev.azure.com");if(!n&&!i)return r.full_name;let s=r.full_name.match(/(vs-ssh\.visualstudio\.com|ssh\.dev\.azure\.com):v\d+\/([^/]+)\/([^/]+)/);if(s)return`${s[2]}/${s[3]}/${r.name}`;let o=r.organization;return!o&&n&&(o=r.resource.match(/([^.@]+)\.visualstudio\.com/)?.[1]),`${o}/${r.owner}/${r.name}`}catch{return""}}Xn.getRepositoryName=LO});var lc=R(Jn=>{"use strict";var zd=Jn&&Jn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.getDefaultRemote=void 0;var TO=zd(q("fs")),NO=zd(q("path")),IO=Vi(),Yd=Hd(),$O=zi();function BO(e){let t=typeof e=="string"?{cwd:e}:e,{cwd:r,strict:n,verbose:i}=t,s=P=>i&&console.log(P),o=P=>{if(n)throw new Error(P);s(P)},a=(0,IO.findGitRoot)(r),c={},u=NO.default.join(a,"package.json");try{c=JSON.parse(TO.default.readFileSync(u,"utf8").trim())}catch{o(`Could not read "${u}"`)}let{repository:f}=c,l=typeof f=="string"?f:f&&f.url||"";l||console.log(`Valid "repository" key not found in "${u}". Consider adding this info for more accurate git remote detection.`);let h=(0,Yd.getRepositoryName)(l),p=(0,$O.git)(["remote","-v"],{cwd:r});p.success||o(`Could not determine available git remotes under "${r}"`);let d={};if(p.stdout.split(`
6
+ `).forEach(P=>{let[C,F]=P.split(/\s+/),D=(0,Yd.getRepositoryName)(F);D&&(d[D]=C)}),h){if(d[h])return d[h];o(`Could not find remote pointing to repository "${h}".`)}let m=Object.values(d),v=["upstream","origin",...m];for(let P of v)if(m.includes(P))return s(`Default to remote "${P}"`),P;return o(`Could not find any remotes in git repo at "${a}".`),s('Assuming default remote "origin".'),"origin"}Jn.getDefaultRemote=BO});var fc=R(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.listAllTrackedFiles=ae.getDefaultBranch=ae.parseRemoteBranch=ae.getRemoteBranch=ae.getParentBranch=ae.revertLocalChanges=ae.stageAndCommit=ae.commit=ae.stage=ae.init=ae.getFileAddedHash=ae.getCurrentHash=ae.getShortBranchName=ae.getFullBranchRef=ae.getBranchName=ae.getUserEmail=ae.getRecentCommitMessages=ae.getStagedChanges=ae.getChangesBetweenRefs=ae.getBranchChanges=ae.getChanges=ae.getUnstagedChanges=ae.fetchRemoteBranch=ae.fetchRemote=ae.getUntrackedChanges=void 0;var fe=zi();function MO(e){try{return Ki((0,fe.git)(["ls-files","--others","--exclude-standard"],{cwd:e}))}catch(t){throw new fe.GitError("Cannot gather information about untracked changes",t)}}ae.getUntrackedChanges=MO;function jO(e,t){if(!(0,fe.git)(["fetch","--",e],{cwd:t}).success)throw new fe.GitError(`Cannot fetch remote "${e}"`)}ae.fetchRemote=jO;function qO(e,t,r){if(!(0,fe.git)(["fetch","--",e,t],{cwd:r}).success)throw new fe.GitError(`Cannot fetch branch "${t}" from remote "${e}"`)}ae.fetchRemoteBranch=qO;function WO(e){try{return Ki((0,fe.git)(["--no-pager","diff","--name-only","--relative"],{cwd:e}))}catch(t){throw new fe.GitError("Cannot gather information about unstaged changes",t)}}ae.getUnstagedChanges=WO;function GO(e,t){try{return Ki((0,fe.git)(["--no-pager","diff","--relative","--name-only",e+"..."],{cwd:t}))}catch(r){throw new fe.GitError("Cannot gather information about changes",r)}}ae.getChanges=GO;function UO(e,t){return Vd(e,"",[],"",t)}ae.getBranchChanges=UO;function Vd(e,t,r,n,i){try{return Ki((0,fe.git)(["--no-pager","diff","--name-only","--relative",...r,`${e}...${t}`,...n?["--",n]:[]],{cwd:i}))}catch(s){throw new fe.GitError(`Cannot gather information about change between refs changes (${e} to ${t})`,s)}}ae.getChangesBetweenRefs=Vd;function HO(e){try{return Ki((0,fe.git)(["--no-pager","diff","--relative","--staged","--name-only"],{cwd:e}))}catch(t){throw new fe.GitError("Cannot gather information about staged changes",t)}}ae.getStagedChanges=HO;function YO(e,t){try{let r=(0,fe.git)(["log","--decorate","--pretty=format:%s",`${e}..HEAD`],{cwd:t});return r.success?r.stdout.split(/\n/).map(n=>n.trim()).filter(n=>!!n):[]}catch(r){throw new fe.GitError("Cannot gather information about recent commits",r)}}ae.getRecentCommitMessages=YO;function zO(e){try{let t=(0,fe.git)(["config","user.email"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new fe.GitError("Cannot gather information about user.email",t)}}ae.getUserEmail=zO;function Kd(e){try{let t=(0,fe.git)(["rev-parse","--abbrev-ref","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new fe.GitError("Cannot get branch name",t)}}ae.getBranchName=Kd;function VO(e,t){let r=(0,fe.git)(["show-ref","--heads",e],{cwd:t});return r.success?r.stdout.split(" ")[1]:null}ae.getFullBranchRef=VO;function KO(e,t){let r=(0,fe.git)(["name-rev","--name-only",e],{cwd:t});return r.success?r.stdout:null}ae.getShortBranchName=KO;function XO(e){try{let t=(0,fe.git)(["rev-parse","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new fe.GitError("Cannot get current git hash",t)}}ae.getCurrentHash=XO;function JO(e,t){let r=(0,fe.git)(["rev-list","--max-count=1","HEAD",e],{cwd:t});if(r.success)return r.stdout.trim()}ae.getFileAddedHash=JO;function QO(e,t,r){(0,fe.git)(["init"],{cwd:e});let n=(0,fe.git)(["config","--list"],{cwd:e}).stdout.split(`
7
+ `);if(!n.find(i=>i.includes("user.name"))){if(!r)throw new fe.GitError("must include a username when initializing git repo");(0,fe.git)(["config","user.name",r],{cwd:e})}if(!n.find(i=>i.includes("user.email"))){if(!t)throw new Error("must include a email when initializing git repo");(0,fe.git)(["config","user.email",t],{cwd:e})}}ae.init=QO;function Xd(e,t){try{e.forEach(r=>{(0,fe.git)(["add",r],{cwd:t})})}catch(r){throw new fe.GitError("Cannot stage changes",r)}}ae.stage=Xd;function Jd(e,t,r=[]){try{let n=(0,fe.git)(["commit","-m",e,...r],{cwd:t});if(!n.success)throw new Error(`Cannot commit changes: ${n.stdout} ${n.stderr}`)}catch(n){throw new fe.GitError("Cannot commit changes",n)}}ae.commit=Jd;function ZO(e,t,r,n=[]){Xd(e,r),Jd(t,r,n)}ae.stageAndCommit=ZO;function eR(e){let t=`workspace-tools_${new Date().getTime()}`;(0,fe.git)(["stash","push","-u","-m",t],{cwd:e});let r=(0,fe.git)(["stash","list"]);if(r.success){let i=r.stdout.split(/\n/).find(s=>s.includes(t));if(i){let s=i.match(/^[^:]+/);if(s)return(0,fe.git)(["stash","drop",s[0]]),!0}}return!1}ae.revertLocalChanges=eR;function tR(e){let t=Kd(e);if(!t||t==="HEAD")return null;let r=(0,fe.git)(["show-branch","-a"],{cwd:e});if(r.success){let s=r.stdout.split(/\n/).find(o=>o.includes("*")&&!o.includes(t)&&!o.includes("publish_"))?.match(/\[(.*)\]/);return s?s[1]:null}return null}ae.getParentBranch=tR;function rR(e,t){let r=(0,fe.git)(["rev-parse","--abbrev-ref","--symbolic-full-name",`${e}@{u}`],{cwd:t});return r.success?r.stdout.trim():null}ae.getRemoteBranch=rR;function nR(e){let t=e.indexOf("/",0),r=e.substring(0,t),n=e.substring(t+1);return{remote:r,remoteBranch:n}}ae.parseRemoteBranch=nR;function iR(e){let t=(0,fe.git)(["config","init.defaultBranch"],{cwd:e});return t.success?t.stdout.trim():"master"}ae.getDefaultBranch=iR;function sR(e,t){let r=(0,fe.git)(["ls-files",...e],{cwd:t});return r.success&&r.stdout.trim()?r.stdout.trim().split(/\n/):[]}ae.listAllTrackedFiles=sR;function Ki(e){if(!e.success){if(e.stderr)throw new Error(e.stderr);return[]}return e.stdout.split(/\n/).map(t=>t.trim()).filter(t=>!!t&&!t.includes("node_modules"))}});var Qd=R(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.getDefaultRemoteBranch=void 0;var oR=lc(),aR=zi(),uR=fc();function cR(...e){let[t,r]=e,n=typeof t=="string"?{branch:t,cwd:r}:t,{cwd:i,branch:s}=n,o=(0,oR.getDefaultRemote)(n);if(s)return`${o}/${s}`;let a=(0,aR.git)(["remote","show",o],{cwd:i}),c;return a.success&&(c=a.stdout.split(/\n/).find(u=>u.includes("HEAD branch"))?.replace(/^\s*HEAD branch:\s+/,"")),`${o}/${c||(0,uR.getDefaultBranch)(i)}`}Po.getDefaultRemoteBranch=cR});var Ro=R(lr=>{"use strict";var lR=lr&&lr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Oo=lr&&lr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&lR(t,e,r)};Object.defineProperty(lr,"__esModule",{value:!0});Oo(zi(),lr);Oo(lc(),lr);Oo(Qd(),lr);Oo(fc(),lr)});var wn=R(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.logVerboseWarning=void 0;function fR(e,t){process.env.VERBOSE&&console.warn(`${e}${t?`:
8
+ `:""}`,t?.stack||t||"")}_o.logVerboseWarning=fR});var Vi=R(wt=>{"use strict";var eg=wt&&wt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wt,"__esModule",{value:!0});wt.isChildOf=wt.findProjectRoot=wt.findPackageRoot=wt.findGitRoot=wt.searchUp=void 0;var zr=eg(q("path")),hR=eg(q("fs")),pR=sc(),dR=Ro(),Zd=wn();function tg(e,t){let r=typeof e=="string"?[e]:e;t=zr.default.resolve(t);let n=zr.default.parse(t).root,i;for(;!i&&t!==n&&(i=r.find(s=>hR.default.existsSync(zr.default.join(t,s))),!i);)t=zr.default.dirname(t);return i?zr.default.join(t,i):void 0}wt.searchUp=tg;function rg(e){let t=(0,dR.git)(["rev-parse","--show-toplevel"],{cwd:e});if(!t.success)throw new Error(`Directory "${e}" is not in a git repository`);return zr.default.normalize(t.stdout)}wt.findGitRoot=rg;function gR(e){let t=tg("package.json",e);return t&&zr.default.dirname(t)}wt.findPackageRoot=gR;function mR(e){let t;try{t=(0,pR.getWorkspaceRoot)(e)}catch(r){(0,Zd.logVerboseWarning)(`Error getting workspace root for ${e}`,r)}return t||(0,Zd.logVerboseWarning)(`Could not find workspace root for ${e}. Falling back to git root.`),t||rg(e)}wt.findProjectRoot=mR;function yR(e,t){let r=zr.default.relative(e,t);return/^[.\/\\]+$/.test(r)}wt.isChildOf=yR});var Qn=R(Vr=>{"use strict";var vR=Vr&&Vr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vr,"__esModule",{value:!0});Vr.getWorkspaceManagerAndRoot=Vr.getPreferredWorkspaceManager=void 0;var ng=vR(q("path")),AR=Vi(),ER=zn(),wR=new Map,Xi={lerna:"lerna.json",rush:"rush.json",yarn:"yarn.lock",pnpm:"pnpm-workspace.yaml",npm:"package-lock.json"};function ig(){let e=process.env.PREFERRED_WORKSPACE_MANAGER;return e&&Xi[e]?e:void 0}Vr.getPreferredWorkspaceManager=ig;function SR(e,t,r){if(t=t||wR,(0,ER.isCachingEnabled)()&&t.has(e))return t.get(e);r=r||ig();let n=(0,AR.searchUp)(r&&Xi[r]||Object.values(Xi),e);if(n){let i=ng.default.basename(n);t.set(e,{manager:Object.keys(Xi).find(s=>Xi[s]===i),root:ng.default.dirname(n)})}else t.set(e,void 0);return t.get(e)}Vr.getWorkspaceManagerAndRoot=SR});var sg=R(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.splitWhen=Zn.flatten=void 0;function bR(e){return e.reduce((t,r)=>[].concat(t,r),[])}Zn.flatten=bR;function CR(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}Zn.splitWhen=CR});var og=R(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.isEnoentCodeError=void 0;function xR(e){return e.code==="ENOENT"}ko.isEnoentCodeError=xR});var ag=R(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.createDirentFromStats=void 0;var hc=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function PR(e,t){return new hc(e,t)}Do.createDirentFromStats=PR});var fg=R($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.convertPosixPathToPattern=$e.convertWindowsPathToPattern=$e.convertPathToPattern=$e.escapePosixPath=$e.escapeWindowsPath=$e.escape=$e.removeLeadingDotSegment=$e.makeAbsolute=$e.unixify=void 0;var OR=q("os"),RR=q("path"),ug=OR.platform()==="win32",_R=2,kR=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,DR=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,FR=/^\\\\([.?])/,LR=/\\(?![!()+@[\]{}])/g;function TR(e){return e.replace(/\\/g,"/")}$e.unixify=TR;function NR(e,t){return RR.resolve(e,t)}$e.makeAbsolute=NR;function IR(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(_R)}return e}$e.removeLeadingDotSegment=IR;$e.escape=ug?pc:dc;function pc(e){return e.replace(DR,"\\$2")}$e.escapeWindowsPath=pc;function dc(e){return e.replace(kR,"\\$2")}$e.escapePosixPath=dc;$e.convertPathToPattern=ug?cg:lg;function cg(e){return pc(e).replace(FR,"//$1").replace(LR,"/")}$e.convertWindowsPathToPattern=cg;function lg(e){return dc(e)}$e.convertPosixPathToPattern=lg});var pg=R((X9,hg)=>{hg.exports=function(t){if(typeof t!="string"||t==="")return!1;for(var r;r=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(r[2])return!0;t=t.slice(r.index+r[0].length)}return!1}});var mg=R((J9,gg)=>{var $R=pg(),dg={"{":"}","(":")","[":"]"},BR=function(e){if(e[0]==="!")return!0;for(var t=0,r=-2,n=-2,i=-2,s=-2,o=-2;t<e.length;){if(e[t]==="*"||e[t+1]==="?"&&/[\].+)]/.test(e[t])||n!==-1&&e[t]==="["&&e[t+1]!=="]"&&(n<t&&(n=e.indexOf("]",t)),n>t&&(o===-1||o>n||(o=e.indexOf("\\",t),o===-1||o>n)))||i!==-1&&e[t]==="{"&&e[t+1]!=="}"&&(i=e.indexOf("}",t),i>t&&(o=e.indexOf("\\",t),o===-1||o>i))||s!==-1&&e[t]==="("&&e[t+1]==="?"&&/[:!=]/.test(e[t+2])&&e[t+3]!==")"&&(s=e.indexOf(")",t),s>t&&(o=e.indexOf("\\",t),o===-1||o>s))||r!==-1&&e[t]==="("&&e[t+1]!=="|"&&(r<t&&(r=e.indexOf("|",t)),r!==-1&&e[r+1]!==")"&&(s=e.indexOf(")",r),s>r&&(o=e.indexOf("\\",r),o===-1||o>s))))return!0;if(e[t]==="\\"){var a=e[t+1];t+=2;var c=dg[a];if(c){var u=e.indexOf(c,t);u!==-1&&(t=u+1)}if(e[t]==="!")return!0}else t++}return!1},MR=function(e){if(e[0]==="!")return!0;for(var t=0;t<e.length;){if(/[*?{}()[\]]/.test(e[t]))return!0;if(e[t]==="\\"){var r=e[t+1];t+=2;var n=dg[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};gg.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if($R(t))return!0;var n=BR;return r&&r.strict===!1&&(n=MR),n(t)}});var vg=R((Q9,yg)=>{"use strict";var jR=mg(),qR=q("path").posix.dirname,WR=q("os").platform()==="win32",gc="/",GR=/\\/g,UR=/[\{\[].*[\}\]]$/,HR=/(^|[^\\])([\{\[]|\([^\)]+$)/,YR=/\\([\!\*\?\|\[\]\(\)\{\}])/g;yg.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&WR&&t.indexOf(gc)<0&&(t=t.replace(GR,gc)),UR.test(t)&&(t+=gc),t+="a";do t=qR(t);while(jR(t)||HR.test(t));return t.replace(YR,"$1")}});var Fo=R(jt=>{"use strict";jt.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1;jt.find=(e,t)=>e.nodes.find(r=>r.type===t);jt.exceedsLimit=(e,t,r=1,n)=>n===!1||!jt.isInteger(e)||!jt.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=n;jt.escapeNode=(e,t=0,r)=>{let n=e.nodes[t];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};jt.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0);jt.isInvalidBrace=e=>e.type!=="brace"?!1:e.invalid===!0||e.dollar?!0:!(e.commas>>0+e.ranges>>0)||e.open!==!0||e.close!==!0?(e.invalid=!0,!0):!1;jt.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0;jt.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]);jt.flatten=(...e)=>{let t=[],r=n=>{for(let i=0;i<n.length;i++){let s=n[i];if(Array.isArray(s)){r(s);continue}s!==void 0&&t.push(s)}return t};return r(e),t}});var Lo=R((e6,Eg)=>{"use strict";var Ag=Fo();Eg.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&Ag.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&Ag.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)a+=r(c);return a};return r(e)}});var Sg=R((t6,wg)=>{"use strict";wg.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Dg=R((r6,kg)=>{"use strict";var bg=Sg(),Sn=(e,t,r)=>{if(bg(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(bg(t)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),s=String(n.shorthand),o=String(n.capture),a=String(n.wrap),c=e+":"+t+"="+i+s+o+a;if(Sn.cache.hasOwnProperty(c))return Sn.cache[c].result;let u=Math.min(e,t),f=Math.max(e,t);if(Math.abs(u-f)===1){let m=e+"|"+t;return n.capture?`(${m})`:n.wrap===!1?m:`(?:${m})`}let l=_g(e)||_g(t),h={min:e,max:t,a:u,b:f},p=[],d=[];if(l&&(h.isPadded=l,h.maxLen=String(h.max).length),u<0){let m=f<0?Math.abs(f):1;d=Cg(m,Math.abs(u),h,n),u=h.a=0}return f>=0&&(p=Cg(u,f,h,n)),h.negatives=d,h.positives=p,h.result=zR(d,p,n),n.capture===!0?h.result=`(${h.result})`:n.wrap!==!1&&p.length+d.length>1&&(h.result=`(?:${h.result})`),Sn.cache[c]=h,h.result};function zR(e,t,r){let n=mc(e,t,"-",!1,r)||[],i=mc(t,e,"",!1,r)||[],s=mc(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function VR(e,t){let r=1,n=1,i=Pg(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Pg(e,r);for(i=Og(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Og(t+1,n)-1;return s=[...s],s.sort(JR),s}function KR(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=XR(e,t),i=n.length,s="",o=0;for(let a=0;a<i;a++){let[c,u]=n[a];c===u?s+=c:c!=="0"||u!=="9"?s+=QR(c,u,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Cg(e,t,r,n){let i=VR(e,t),s=[],o=e,a;for(let c=0;c<i.length;c++){let u=i[c],f=KR(String(o),String(u),n),l="";if(!r.isPadded&&a&&a.pattern===f.pattern){a.count.length>1&&a.count.pop(),a.count.push(f.count[0]),a.string=a.pattern+Rg(a.count),o=u+1;continue}r.isPadded&&(l=ZR(u,r,n)),f.string=l+f.pattern+Rg(f.count),s.push(f),o=u+1,a=f}return s}function mc(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!xg(t,"string",a)&&s.push(r+a),n&&xg(t,"string",a)&&s.push(r+a)}return s}function XR(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function JR(e,t){return e>t?1:t>e?-1:0}function xg(e,t,r){return e.some(n=>n[t]===r)}function Pg(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Og(e,t){return e-e%Math.pow(10,t)}function Rg(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function QR(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function _g(e){return/^-?(0+)\d/.test(e)}function ZR(e,t,r){if(!t.isPadded)return e;let n=Math.abs(t.maxLen-String(e).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Sn.cache={};Sn.clearCache=()=>Sn.cache={};kg.exports=Sn});var Ac=R((n6,Bg)=>{"use strict";var e_=q("util"),Lg=Dg(),Fg=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),t_=e=>t=>e===!0?Number(t):String(t),yc=e=>typeof e=="number"||typeof e=="string"&&e!=="",Ji=e=>Number.isInteger(+e),vc=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},r_=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,n_=(e,t,r)=>{if(t>0){let n=e[0]==="-"?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return r===!1?String(e):e},No=(e,t)=>{let r=e[0]==="-"?"-":"";for(r&&(e=e.slice(1),t--);e.length<t;)e="0"+e;return r?"-"+e:e},i_=(e,t,r)=>{e.negatives.sort((a,c)=>a<c?-1:a>c?1:0),e.positives.sort((a,c)=>a<c?-1:a>c?1:0);let n=t.capture?"":"?:",i="",s="",o;return e.positives.length&&(i=e.positives.map(a=>No(String(a),r)).join("|")),e.negatives.length&&(s=`-(${n}${e.negatives.map(a=>No(String(a),r)).join("|")})`),i&&s?o=`${i}|${s}`:o=i||s,t.wrap?`(${n}${o})`:o},Tg=(e,t,r,n)=>{if(r)return Lg(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Ng=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return Lg(e,t,r)},Ig=(...e)=>new RangeError("Invalid range arguments: "+e_.inspect(...e)),$g=(e,t,r)=>{if(r.strictRanges===!0)throw Ig([e,t]);return[]},s_=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},o_=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Ig([e,t]);return[]}i===0&&(i=0),s===0&&(s=0);let o=i>s,a=String(e),c=String(t),u=String(r);r=Math.max(Math.abs(r),1);let f=vc(a)||vc(c)||vc(u),l=f?Math.max(a.length,c.length,u.length):0,h=f===!1&&r_(e,t,n)===!1,p=n.transform||t_(h);if(n.toRegex&&r===1)return Tg(No(e,l),No(t,l),!0,n);let d={negatives:[],positives:[]},m=C=>d[C<0?"negatives":"positives"].push(Math.abs(C)),v=[],P=0;for(;o?i>=s:i<=s;)n.toRegex===!0&&r>1?m(i):v.push(n_(p(i,P),l,h)),i=o?i-r:i+r,P++;return n.toRegex===!0?r>1?i_(d,n,l):Ng(v,null,{wrap:!1,...n}):v},a_=(e,t,r=1,n={})=>{if(!Ji(e)&&e.length>1||!Ji(t)&&t.length>1)return $g(e,t,n);let i=n.transform||(h=>String.fromCharCode(h)),s=`${e}`.charCodeAt(0),o=`${t}`.charCodeAt(0),a=s>o,c=Math.min(s,o),u=Math.max(s,o);if(n.toRegex&&r===1)return Tg(c,u,!1,n);let f=[],l=0;for(;a?s>=o:s<=o;)f.push(i(s,l)),s=a?s-r:s+r,l++;return n.toRegex===!0?Ng(f,null,{wrap:!1,options:n}):f},To=(e,t,r,n={})=>{if(t==null&&yc(e))return[e];if(!yc(e)||!yc(t))return $g(e,t,n);if(typeof r=="function")return To(e,t,1,{transform:r});if(Fg(r))return To(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Ji(r)?Ji(e)&&Ji(t)?o_(e,t,r,i):a_(e,t,Math.max(Math.abs(r),1),i):r!=null&&!Fg(r)?s_(r,i):To(e,t,1,r)};Bg.exports=To});var qg=R((i6,jg)=>{"use strict";var u_=Ac(),Mg=Fo(),c_=(e,t={})=>{let r=(n,i={})=>{let s=Mg.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a=s===!0||o===!0,c=t.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0)return c+n.value;if(n.isClose===!0)return console.log("node.isClose",c,n.value),c+n.value;if(n.type==="open")return a?c+n.value:"(";if(n.type==="close")return a?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":a?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let f=Mg.reduce(n.nodes),l=u_(...f,{...t,wrap:!1,toRegex:!0,strictZeros:!0});if(l.length!==0)return f.length>1&&l.length>1?`(${l})`:l}if(n.nodes)for(let f of n.nodes)u+=r(f,n);return u};return r(e)};jg.exports=c_});var Ug=R((s6,Gg)=>{"use strict";var l_=Ac(),Wg=Lo(),ei=Fo(),bn=(e="",t="",r=!1)=>{let n=[];if(e=[].concat(e),t=[].concat(t),!t.length)return e;if(!e.length)return r?ei.flatten(t).map(i=>`{${i}}`):t;for(let i of e)if(Array.isArray(i))for(let s of i)n.push(bn(s,t,r));else for(let s of t)r===!0&&typeof s=="string"&&(s=`{${s}}`),n.push(Array.isArray(s)?bn(i,s,r):i+s);return ei.flatten(n)},f_=(e,t={})=>{let r=t.rangeLimit===void 0?1e3:t.rangeLimit,n=(i,s={})=>{i.queue=[];let o=s,a=s.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(i.invalid||i.dollar){a.push(bn(a.pop(),Wg(i,t)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){a.push(bn(a.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let l=ei.reduce(i.nodes);if(ei.exceedsLimit(...l,t.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=l_(...l,t);h.length===0&&(h=Wg(i,t)),a.push(bn(a.pop(),h)),i.nodes=[];return}let c=ei.encloseBrace(i),u=i.queue,f=i;for(;f.type!=="brace"&&f.type!=="root"&&f.parent;)f=f.parent,u=f.queue;for(let l=0;l<i.nodes.length;l++){let h=i.nodes[l];if(h.type==="comma"&&i.type==="brace"){l===1&&u.push(""),u.push("");continue}if(h.type==="close"){a.push(bn(a.pop(),u,c));continue}if(h.value&&h.type!=="open"){u.push(bn(u.pop(),h.value));continue}h.nodes&&n(h,i)}return u};return ei.flatten(n(e))};Gg.exports=f_});var Yg=R((o6,Hg)=>{"use strict";Hg.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
9
+ `,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var Jg=R((a6,Xg)=>{"use strict";var h_=Lo(),{MAX_LENGTH:zg,CHAR_BACKSLASH:Ec,CHAR_BACKTICK:p_,CHAR_COMMA:d_,CHAR_DOT:g_,CHAR_LEFT_PARENTHESES:m_,CHAR_RIGHT_PARENTHESES:y_,CHAR_LEFT_CURLY_BRACE:v_,CHAR_RIGHT_CURLY_BRACE:A_,CHAR_LEFT_SQUARE_BRACKET:Vg,CHAR_RIGHT_SQUARE_BRACKET:Kg,CHAR_DOUBLE_QUOTE:E_,CHAR_SINGLE_QUOTE:w_,CHAR_NO_BREAK_SPACE:S_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:b_}=Yg(),C_=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(zg,r.maxLength):zg;if(e.length>n)throw new SyntaxError(`Input length (${e.length}), exceeds max characters (${n})`);let i={type:"root",input:e,nodes:[]},s=[i],o=i,a=i,c=0,u=e.length,f=0,l=0,h,p=()=>e[f++],d=m=>{if(m.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&m.type==="text"){a.value+=m.value;return}return o.nodes.push(m),m.parent=o,m.prev=a,a=m,m};for(d({type:"bos"});f<u;)if(o=s[s.length-1],h=p(),!(h===b_||h===S_)){if(h===Ec){d({type:"text",value:(t.keepEscaping?h:"")+p()});continue}if(h===Kg){d({type:"text",value:"\\"+h});continue}if(h===Vg){c++;let m;for(;f<u&&(m=p());){if(h+=m,m===Vg){c++;continue}if(m===Ec){h+=p();continue}if(m===Kg&&(c--,c===0))break}d({type:"text",value:h});continue}if(h===m_){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:h});continue}if(h===y_){if(o.type!=="paren"){d({type:"text",value:h});continue}o=s.pop(),d({type:"text",value:h}),o=s[s.length-1];continue}if(h===E_||h===w_||h===p_){let m=h,v;for(t.keepQuotes!==!0&&(h="");f<u&&(v=p());){if(v===Ec){h+=v+p();continue}if(v===m){t.keepQuotes===!0&&(h+=v);break}h+=v}d({type:"text",value:h});continue}if(h===v_){l++;let v={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:l,commas:0,ranges:0,nodes:[]};o=d(v),s.push(o),d({type:"open",value:h});continue}if(h===A_){if(o.type!=="brace"){d({type:"text",value:h});continue}let m="close";o=s.pop(),o.close=!0,d({type:m,value:h}),l--,o=s[s.length-1];continue}if(h===d_&&l>0){if(o.ranges>0){o.ranges=0;let m=o.nodes.shift();o.nodes=[m,{type:"text",value:h_(o)}]}d({type:"comma",value:h}),o.commas++;continue}if(h===g_&&l>0&&o.commas===0){let m=o.nodes;if(l===0||m.length===0){d({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){m.pop();let v=m[m.length-1];v.value+=a.value+h,a=v,o.ranges--;continue}d({type:"dot",value:h});continue}d({type:"text",value:h})}do if(o=s.pop(),o.type!=="root"){o.nodes.forEach(P=>{P.nodes||(P.type==="open"&&(P.isOpen=!0),P.type==="close"&&(P.isClose=!0),P.nodes||(P.type="text"),P.invalid=!0)});let m=s[s.length-1],v=m.nodes.indexOf(o);m.nodes.splice(v,1,...o.nodes)}while(s.length>0);return d({type:"eos"}),i};Xg.exports=C_});var em=R((u6,Zg)=>{"use strict";var Qg=Lo(),x_=qg(),P_=Ug(),O_=Jg(),Lt=(e,t={})=>{let r=[];if(Array.isArray(e))for(let n of e){let i=Lt.create(n,t);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(Lt.create(e,t));return t&&t.expand===!0&&t.nodupes===!0&&(r=[...new Set(r)]),r};Lt.parse=(e,t={})=>O_(e,t);Lt.stringify=(e,t={})=>Qg(typeof e=="string"?Lt.parse(e,t):e,t);Lt.compile=(e,t={})=>(typeof e=="string"&&(e=Lt.parse(e,t)),x_(e,t));Lt.expand=(e,t={})=>{typeof e=="string"&&(e=Lt.parse(e,t));let r=P_(e,t);return t.noempty===!0&&(r=r.filter(Boolean)),t.nodupes===!0&&(r=[...new Set(r)]),r};Lt.create=(e,t={})=>e===""||e.length<3?[e]:t.expand!==!0?Lt.compile(e,t):Lt.expand(e,t);Zg.exports=Lt});var Qi=R((c6,sm)=>{"use strict";var R_=q("path"),fr="\\\\/",tm=`[^${fr}]`,_r="\\.",__="\\+",k_="\\?",Io="\\/",D_="(?=.)",rm="[^/]",wc=`(?:${Io}|$)`,nm=`(?:^|${Io})`,Sc=`${_r}{1,2}${wc}`,F_=`(?!${_r})`,L_=`(?!${nm}${Sc})`,T_=`(?!${_r}{0,1}${wc})`,N_=`(?!${Sc})`,I_=`[^.${Io}]`,$_=`${rm}*?`,im={DOT_LITERAL:_r,PLUS_LITERAL:__,QMARK_LITERAL:k_,SLASH_LITERAL:Io,ONE_CHAR:D_,QMARK:rm,END_ANCHOR:wc,DOTS_SLASH:Sc,NO_DOT:F_,NO_DOTS:L_,NO_DOT_SLASH:T_,NO_DOTS_SLASH:N_,QMARK_NO_DOT:I_,STAR:$_,START_ANCHOR:nm},B_={...im,SLASH_LITERAL:`[${fr}]`,QMARK:tm,STAR:`${tm}*?`,DOTS_SLASH:`${_r}{1,2}(?:[${fr}]|$)`,NO_DOT:`(?!${_r})`,NO_DOTS:`(?!(?:^|[${fr}])${_r}{1,2}(?:[${fr}]|$))`,NO_DOT_SLASH:`(?!${_r}{0,1}(?:[${fr}]|$))`,NO_DOTS_SLASH:`(?!${_r}{1,2}(?:[${fr}]|$))`,QMARK_NO_DOT:`[^.${fr}]`,START_ANCHOR:`(?:^|[${fr}])`,END_ANCHOR:`(?:[${fr}]|$)`},M_={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};sm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:M_,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:R_.sep,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?B_:im}}});var Zi=R(St=>{"use strict";var j_=q("path"),q_=process.platform==="win32",{REGEX_BACKSLASH:W_,REGEX_REMOVE_BACKSLASH:G_,REGEX_SPECIAL_CHARS:U_,REGEX_SPECIAL_CHARS_GLOBAL:H_}=Qi();St.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);St.hasRegexChars=e=>U_.test(e);St.isRegexChar=e=>e.length===1&&St.hasRegexChars(e);St.escapeRegex=e=>e.replace(H_,"\\$1");St.toPosixSlashes=e=>e.replace(W_,"/");St.removeBackslashes=e=>e.replace(G_,t=>t==="\\"?"":t);St.supportsLookbehinds=()=>{let e=process.version.slice(1).split(".").map(Number);return e.length===3&&e[0]>=9||e[0]===8&&e[1]>=10};St.isWindows=e=>e&&typeof e.windows=="boolean"?e.windows:q_===!0||j_.sep==="\\";St.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?St.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};St.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};St.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",s=`${n}(?:${e})${i}`;return t.negated===!0&&(s=`(?:^(?!${s}).*$)`),s}});var pm=R((f6,hm)=>{"use strict";var om=Zi(),{CHAR_ASTERISK:bc,CHAR_AT:Y_,CHAR_BACKWARD_SLASH:es,CHAR_COMMA:z_,CHAR_DOT:Cc,CHAR_EXCLAMATION_MARK:xc,CHAR_FORWARD_SLASH:fm,CHAR_LEFT_CURLY_BRACE:Pc,CHAR_LEFT_PARENTHESES:Oc,CHAR_LEFT_SQUARE_BRACKET:V_,CHAR_PLUS:K_,CHAR_QUESTION_MARK:am,CHAR_RIGHT_CURLY_BRACE:X_,CHAR_RIGHT_PARENTHESES:um,CHAR_RIGHT_SQUARE_BRACKET:J_}=Qi(),cm=e=>e===fm||e===es,lm=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Q_=(e,t)=>{let r=t||{},n=e.length-1,i=r.parts===!0||r.scanToEnd===!0,s=[],o=[],a=[],c=e,u=-1,f=0,l=0,h=!1,p=!1,d=!1,m=!1,v=!1,P=!1,C=!1,F=!1,D=!1,E=!1,O=0,k,_,T={value:"",depth:0,isGlob:!1},b=()=>u>=n,g=()=>c.charCodeAt(u+1),y=()=>(k=_,c.charCodeAt(++u));for(;u<n;){_=y();let L;if(_===es){C=T.backslashes=!0,_=y(),_===Pc&&(P=!0);continue}if(P===!0||_===Pc){for(O++;b()!==!0&&(_=y());){if(_===es){C=T.backslashes=!0,y();continue}if(_===Pc){O++;continue}if(P!==!0&&_===Cc&&(_=y())===Cc){if(h=T.isBrace=!0,d=T.isGlob=!0,E=!0,i===!0)continue;break}if(P!==!0&&_===z_){if(h=T.isBrace=!0,d=T.isGlob=!0,E=!0,i===!0)continue;break}if(_===X_&&(O--,O===0)){P=!1,h=T.isBrace=!0,E=!0;break}}if(i===!0)continue;break}if(_===fm){if(s.push(u),o.push(T),T={value:"",depth:0,isGlob:!1},E===!0)continue;if(k===Cc&&u===f+1){f+=2;continue}l=u+1;continue}if(r.noext!==!0&&(_===K_||_===Y_||_===bc||_===am||_===xc)===!0&&g()===Oc){if(d=T.isGlob=!0,m=T.isExtglob=!0,E=!0,_===xc&&u===f&&(D=!0),i===!0){for(;b()!==!0&&(_=y());){if(_===es){C=T.backslashes=!0,_=y();continue}if(_===um){d=T.isGlob=!0,E=!0;break}}continue}break}if(_===bc){if(k===bc&&(v=T.isGlobstar=!0),d=T.isGlob=!0,E=!0,i===!0)continue;break}if(_===am){if(d=T.isGlob=!0,E=!0,i===!0)continue;break}if(_===V_){for(;b()!==!0&&(L=y());){if(L===es){C=T.backslashes=!0,y();continue}if(L===J_){p=T.isBracket=!0,d=T.isGlob=!0,E=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&_===xc&&u===f){F=T.negated=!0,f++;continue}if(r.noparen!==!0&&_===Oc){if(d=T.isGlob=!0,i===!0){for(;b()!==!0&&(_=y());){if(_===Oc){C=T.backslashes=!0,_=y();continue}if(_===um){E=!0;break}}continue}break}if(d===!0){if(E=!0,i===!0)continue;break}}r.noext===!0&&(m=!1,d=!1);let w=c,x="",A="";f>0&&(x=c.slice(0,f),c=c.slice(f),l-=f),w&&d===!0&&l>0?(w=c.slice(0,l),A=c.slice(l)):d===!0?(w="",A=c):w=c,w&&w!==""&&w!=="/"&&w!==c&&cm(w.charCodeAt(w.length-1))&&(w=w.slice(0,-1)),r.unescape===!0&&(A&&(A=om.removeBackslashes(A)),w&&C===!0&&(w=om.removeBackslashes(w)));let S={prefix:x,input:e,start:f,base:w,glob:A,isBrace:h,isBracket:p,isGlob:d,isExtglob:m,isGlobstar:v,negated:F,negatedExtglob:D};if(r.tokens===!0&&(S.maxDepth=0,cm(_)||o.push(T),S.tokens=o),r.parts===!0||r.tokens===!0){let L;for(let N=0;N<s.length;N++){let I=L?L+1:f,B=s[N],W=e.slice(I,B);r.tokens&&(N===0&&f!==0?(o[N].isPrefix=!0,o[N].value=x):o[N].value=W,lm(o[N]),S.maxDepth+=o[N].depth),(N!==0||W!=="")&&a.push(W),L=B}if(L&&L+1<e.length){let N=e.slice(L+1);a.push(N),r.tokens&&(o[o.length-1].value=N,lm(o[o.length-1]),S.maxDepth+=o[o.length-1].depth)}S.slashes=s,S.parts=a}return S};hm.exports=Q_});var mm=R((h6,gm)=>{"use strict";var $o=Qi(),Tt=Zi(),{MAX_LENGTH:Bo,POSIX_REGEX_SOURCE:Z_,REGEX_NON_SPECIAL_CHARS:ek,REGEX_SPECIAL_CHARS_BACKREF:tk,REPLACEMENTS:dm}=$o,rk=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(i=>Tt.escapeRegex(i)).join("..")}return r},ti=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Rc=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=dm[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Bo,r.maxLength):Bo,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let s={type:"bos",value:"",output:r.prepend||""},o=[s],a=r.capture?"":"?:",c=Tt.isWindows(t),u=$o.globChars(c),f=$o.extglobChars(u),{DOT_LITERAL:l,PLUS_LITERAL:h,SLASH_LITERAL:p,ONE_CHAR:d,DOTS_SLASH:m,NO_DOT:v,NO_DOT_SLASH:P,NO_DOTS_SLASH:C,QMARK:F,QMARK_NO_DOT:D,STAR:E,START_ANCHOR:O}=u,k=j=>`(${a}(?:(?!${O}${j.dot?m:l}).)*?)`,_=r.dot?"":v,T=r.dot?F:D,b=r.bash===!0?k(r):E;r.capture&&(b=`(${b})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let g={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};e=Tt.removePrefix(e,g),i=e.length;let y=[],w=[],x=[],A=s,S,L=()=>g.index===i-1,N=g.peek=(j=1)=>e[g.index+j],I=g.advance=()=>e[++g.index]||"",B=()=>e.slice(g.index+1),W=(j="",oe=0)=>{g.consumed+=j,g.index+=oe},Y=j=>{g.output+=j.output!=null?j.output:j.value,W(j.value)},se=()=>{let j=1;for(;N()==="!"&&(N(2)!=="("||N(3)==="?");)I(),g.start++,j++;return j%2===0?!1:(g.negated=!0,g.start++,!0)},G=j=>{g[j]++,x.push(j)},$=j=>{g[j]--,x.pop()},M=j=>{if(A.type==="globstar"){let oe=g.braces>0&&(j.type==="comma"||j.type==="brace"),U=j.extglob===!0||y.length&&(j.type==="pipe"||j.type==="paren");j.type!=="slash"&&j.type!=="paren"&&!oe&&!U&&(g.output=g.output.slice(0,-A.output.length),A.type="star",A.value="*",A.output=b,g.output+=A.output)}if(y.length&&j.type!=="paren"&&(y[y.length-1].inner+=j.value),(j.value||j.output)&&Y(j),A&&A.type==="text"&&j.type==="text"){A.value+=j.value,A.output=(A.output||"")+j.value;return}j.prev=A,o.push(j),A=j},re=(j,oe)=>{let U={...f[oe],conditions:1,inner:""};U.prev=A,U.parens=g.parens,U.output=g.output;let ie=(r.capture?"(":"")+U.open;G("parens"),M({type:j,value:oe,output:g.output?"":d}),M({type:"paren",extglob:!0,value:I(),output:ie}),y.push(U)},ne=j=>{let oe=j.close+(r.capture?")":""),U;if(j.type==="negate"){let ie=b;if(j.inner&&j.inner.length>1&&j.inner.includes("/")&&(ie=k(r)),(ie!==b||L()||/^\)+$/.test(B()))&&(oe=j.close=`)$))${ie}`),j.inner.includes("*")&&(U=B())&&/^\.[^\\/.]+$/.test(U)){let le=Rc(U,{...t,fastpaths:!1}).output;oe=j.close=`)${le})${ie})`}j.prev.type==="bos"&&(g.negatedExtglob=!0)}M({type:"paren",extglob:!0,value:S,output:oe}),$("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let j=!1,oe=e.replace(tk,(U,ie,le,be,he,Fe)=>be==="\\"?(j=!0,U):be==="?"?ie?ie+be+(he?F.repeat(he.length):""):Fe===0?T+(he?F.repeat(he.length):""):F.repeat(le.length):be==="."?l.repeat(le.length):be==="*"?ie?ie+be+(he?b:""):b:ie?U:`\\${U}`);return j===!0&&(r.unescape===!0?oe=oe.replace(/\\/g,""):oe=oe.replace(/\\+/g,U=>U.length%2===0?"\\\\":U?"\\":"")),oe===e&&r.contains===!0?(g.output=e,g):(g.output=Tt.wrapOutput(oe,g,t),g)}for(;!L();){if(S=I(),S==="\0")continue;if(S==="\\"){let U=N();if(U==="/"&&r.bash!==!0||U==="."||U===";")continue;if(!U){S+="\\",M({type:"text",value:S});continue}let ie=/^\\+/.exec(B()),le=0;if(ie&&ie[0].length>2&&(le=ie[0].length,g.index+=le,le%2!==0&&(S+="\\")),r.unescape===!0?S=I():S+=I(),g.brackets===0){M({type:"text",value:S});continue}}if(g.brackets>0&&(S!=="]"||A.value==="["||A.value==="[^")){if(r.posix!==!1&&S===":"){let U=A.value.slice(1);if(U.includes("[")&&(A.posix=!0,U.includes(":"))){let ie=A.value.lastIndexOf("["),le=A.value.slice(0,ie),be=A.value.slice(ie+2),he=Z_[be];if(he){A.value=le+he,g.backtrack=!0,I(),!s.output&&o.indexOf(A)===1&&(s.output=d);continue}}}(S==="["&&N()!==":"||S==="-"&&N()==="]")&&(S=`\\${S}`),S==="]"&&(A.value==="["||A.value==="[^")&&(S=`\\${S}`),r.posix===!0&&S==="!"&&A.value==="["&&(S="^"),A.value+=S,Y({value:S});continue}if(g.quotes===1&&S!=='"'){S=Tt.escapeRegex(S),A.value+=S,Y({value:S});continue}if(S==='"'){g.quotes=g.quotes===1?0:1,r.keepQuotes===!0&&M({type:"text",value:S});continue}if(S==="("){G("parens"),M({type:"paren",value:S});continue}if(S===")"){if(g.parens===0&&r.strictBrackets===!0)throw new SyntaxError(ti("opening","("));let U=y[y.length-1];if(U&&g.parens===U.parens+1){ne(y.pop());continue}M({type:"paren",value:S,output:g.parens?")":"\\)"}),$("parens");continue}if(S==="["){if(r.nobracket===!0||!B().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(ti("closing","]"));S=`\\${S}`}else G("brackets");M({type:"bracket",value:S});continue}if(S==="]"){if(r.nobracket===!0||A&&A.type==="bracket"&&A.value.length===1){M({type:"text",value:S,output:`\\${S}`});continue}if(g.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(ti("opening","["));M({type:"text",value:S,output:`\\${S}`});continue}$("brackets");let U=A.value.slice(1);if(A.posix!==!0&&U[0]==="^"&&!U.includes("/")&&(S=`/${S}`),A.value+=S,Y({value:S}),r.literalBrackets===!1||Tt.hasRegexChars(U))continue;let ie=Tt.escapeRegex(A.value);if(g.output=g.output.slice(0,-A.value.length),r.literalBrackets===!0){g.output+=ie,A.value=ie;continue}A.value=`(${a}${ie}|${A.value})`,g.output+=A.value;continue}if(S==="{"&&r.nobrace!==!0){G("braces");let U={type:"brace",value:S,output:"(",outputIndex:g.output.length,tokensIndex:g.tokens.length};w.push(U),M(U);continue}if(S==="}"){let U=w[w.length-1];if(r.nobrace===!0||!U){M({type:"text",value:S,output:S});continue}let ie=")";if(U.dots===!0){let le=o.slice(),be=[];for(let he=le.length-1;he>=0&&(o.pop(),le[he].type!=="brace");he--)le[he].type!=="dots"&&be.unshift(le[he].value);ie=rk(be,r),g.backtrack=!0}if(U.comma!==!0&&U.dots!==!0){let le=g.output.slice(0,U.outputIndex),be=g.tokens.slice(U.tokensIndex);U.value=U.output="\\{",S=ie="\\}",g.output=le;for(let he of be)g.output+=he.output||he.value}M({type:"brace",value:S,output:ie}),$("braces"),w.pop();continue}if(S==="|"){y.length>0&&y[y.length-1].conditions++,M({type:"text",value:S});continue}if(S===","){let U=S,ie=w[w.length-1];ie&&x[x.length-1]==="braces"&&(ie.comma=!0,U="|"),M({type:"comma",value:S,output:U});continue}if(S==="/"){if(A.type==="dot"&&g.index===g.start+1){g.start=g.index+1,g.consumed="",g.output="",o.pop(),A=s;continue}M({type:"slash",value:S,output:p});continue}if(S==="."){if(g.braces>0&&A.type==="dot"){A.value==="."&&(A.output=l);let U=w[w.length-1];A.type="dots",A.output+=S,A.value+=S,U.dots=!0;continue}if(g.braces+g.parens===0&&A.type!=="bos"&&A.type!=="slash"){M({type:"text",value:S,output:l});continue}M({type:"dot",value:S,output:l});continue}if(S==="?"){if(!(A&&A.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){re("qmark",S);continue}if(A&&A.type==="paren"){let ie=N(),le=S;if(ie==="<"&&!Tt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(A.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(B()))&&(le=`\\${S}`),M({type:"text",value:S,output:le});continue}if(r.dot!==!0&&(A.type==="slash"||A.type==="bos")){M({type:"qmark",value:S,output:D});continue}M({type:"qmark",value:S,output:F});continue}if(S==="!"){if(r.noextglob!==!0&&N()==="("&&(N(2)!=="?"||!/[!=<:]/.test(N(3)))){re("negate",S);continue}if(r.nonegate!==!0&&g.index===0){se();continue}}if(S==="+"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){re("plus",S);continue}if(A&&A.value==="("||r.regex===!1){M({type:"plus",value:S,output:h});continue}if(A&&(A.type==="bracket"||A.type==="paren"||A.type==="brace")||g.parens>0){M({type:"plus",value:S});continue}M({type:"plus",value:h});continue}if(S==="@"){if(r.noextglob!==!0&&N()==="("&&N(2)!=="?"){M({type:"at",extglob:!0,value:S,output:""});continue}M({type:"text",value:S});continue}if(S!=="*"){(S==="$"||S==="^")&&(S=`\\${S}`);let U=ek.exec(B());U&&(S+=U[0],g.index+=U[0].length),M({type:"text",value:S});continue}if(A&&(A.type==="globstar"||A.star===!0)){A.type="star",A.star=!0,A.value+=S,A.output=b,g.backtrack=!0,g.globstar=!0,W(S);continue}let j=B();if(r.noextglob!==!0&&/^\([^?]/.test(j)){re("star",S);continue}if(A.type==="star"){if(r.noglobstar===!0){W(S);continue}let U=A.prev,ie=U.prev,le=U.type==="slash"||U.type==="bos",be=ie&&(ie.type==="star"||ie.type==="globstar");if(r.bash===!0&&(!le||j[0]&&j[0]!=="/")){M({type:"star",value:S,output:""});continue}let he=g.braces>0&&(U.type==="comma"||U.type==="brace"),Fe=y.length&&(U.type==="pipe"||U.type==="paren");if(!le&&U.type!=="paren"&&!he&&!Fe){M({type:"star",value:S,output:""});continue}for(;j.slice(0,3)==="/**";){let De=e[g.index+4];if(De&&De!=="/")break;j=j.slice(3),W("/**",3)}if(U.type==="bos"&&L()){A.type="globstar",A.value+=S,A.output=k(r),g.output=A.output,g.globstar=!0,W(S);continue}if(U.type==="slash"&&U.prev.type!=="bos"&&!be&&L()){g.output=g.output.slice(0,-(U.output+A.output).length),U.output=`(?:${U.output}`,A.type="globstar",A.output=k(r)+(r.strictSlashes?")":"|$)"),A.value+=S,g.globstar=!0,g.output+=U.output+A.output,W(S);continue}if(U.type==="slash"&&U.prev.type!=="bos"&&j[0]==="/"){let De=j[1]!==void 0?"|$":"";g.output=g.output.slice(0,-(U.output+A.output).length),U.output=`(?:${U.output}`,A.type="globstar",A.output=`${k(r)}${p}|${p}${De})`,A.value+=S,g.output+=U.output+A.output,g.globstar=!0,W(S+I()),M({type:"slash",value:"/",output:""});continue}if(U.type==="bos"&&j[0]==="/"){A.type="globstar",A.value+=S,A.output=`(?:^|${p}|${k(r)}${p})`,g.output=A.output,g.globstar=!0,W(S+I()),M({type:"slash",value:"/",output:""});continue}g.output=g.output.slice(0,-A.output.length),A.type="globstar",A.output=k(r),A.value+=S,g.output+=A.output,g.globstar=!0,W(S);continue}let oe={type:"star",value:S,output:b};if(r.bash===!0){oe.output=".*?",(A.type==="bos"||A.type==="slash")&&(oe.output=_+oe.output),M(oe);continue}if(A&&(A.type==="bracket"||A.type==="paren")&&r.regex===!0){oe.output=S,M(oe);continue}(g.index===g.start||A.type==="slash"||A.type==="dot")&&(A.type==="dot"?(g.output+=P,A.output+=P):r.dot===!0?(g.output+=C,A.output+=C):(g.output+=_,A.output+=_),N()!=="*"&&(g.output+=d,A.output+=d)),M(oe)}for(;g.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(ti("closing","]"));g.output=Tt.escapeLast(g.output,"["),$("brackets")}for(;g.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(ti("closing",")"));g.output=Tt.escapeLast(g.output,"("),$("parens")}for(;g.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(ti("closing","}"));g.output=Tt.escapeLast(g.output,"{"),$("braces")}if(r.strictSlashes!==!0&&(A.type==="star"||A.type==="bracket")&&M({type:"maybe_slash",value:"",output:`${p}?`}),g.backtrack===!0){g.output="";for(let j of g.tokens)g.output+=j.output!=null?j.output:j.value,j.suffix&&(g.output+=j.suffix)}return g};Rc.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Bo,r.maxLength):Bo,i=e.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);e=dm[e]||e;let s=Tt.isWindows(t),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:f,NO_DOTS:l,NO_DOTS_SLASH:h,STAR:p,START_ANCHOR:d}=$o.globChars(s),m=r.dot?l:f,v=r.dot?h:f,P=r.capture?"":"?:",C={negated:!1,prefix:""},F=r.bash===!0?".*?":p;r.capture&&(F=`(${F})`);let D=_=>_.noglobstar===!0?F:`(${P}(?:(?!${d}${_.dot?u:o}).)*?)`,E=_=>{switch(_){case"*":return`${m}${c}${F}`;case".*":return`${o}${c}${F}`;case"*.*":return`${m}${F}${o}${c}${F}`;case"*/*":return`${m}${F}${a}${c}${v}${F}`;case"**":return m+D(r);case"**/*":return`(?:${m}${D(r)}${a})?${v}${c}${F}`;case"**/*.*":return`(?:${m}${D(r)}${a})?${v}${F}${o}${c}${F}`;case"**/.*":return`(?:${m}${D(r)}${a})?${o}${c}${F}`;default:{let T=/^(.*?)\.(\w+)$/.exec(_);if(!T)return;let b=E(T[1]);return b?b+o+T[2]:void 0}}},O=Tt.removePrefix(e,C),k=E(O);return k&&r.strictSlashes!==!0&&(k+=`${a}?`),k};gm.exports=Rc});var vm=R((p6,ym)=>{"use strict";var nk=q("path"),ik=pm(),_c=mm(),kc=Zi(),sk=Qi(),ok=e=>e&&typeof e=="object"&&!Array.isArray(e),Ne=(e,t,r=!1)=>{if(Array.isArray(e)){let f=e.map(h=>Ne(h,t,r));return h=>{for(let p of f){let d=p(h);if(d)return d}return!1}}let n=ok(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=t||{},s=kc.isWindows(t),o=n?Ne.compileRe(e,t):Ne.makeRe(e,t,!1,!0),a=o.state;delete o.state;let c=()=>!1;if(i.ignore){let f={...t,ignore:null,onMatch:null,onResult:null};c=Ne(i.ignore,f,r)}let u=(f,l=!1)=>{let{isMatch:h,match:p,output:d}=Ne.test(f,o,t,{glob:e,posix:s}),m={glob:e,state:a,regex:o,posix:s,input:f,output:d,match:p,isMatch:h};return typeof i.onResult=="function"&&i.onResult(m),h===!1?(m.isMatch=!1,l?m:!1):c(f)?(typeof i.onIgnore=="function"&&i.onIgnore(m),m.isMatch=!1,l?m:!1):(typeof i.onMatch=="function"&&i.onMatch(m),l?m:!0)};return r&&(u.state=a),u};Ne.test=(e,t,r,{glob:n,posix:i}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let s=r||{},o=s.format||(i?kc.toPosixSlashes:null),a=e===n,c=a&&o?o(e):e;return a===!1&&(c=o?o(e):e,a=c===n),(a===!1||s.capture===!0)&&(s.matchBase===!0||s.basename===!0?a=Ne.matchBase(e,t,r,i):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};Ne.matchBase=(e,t,r,n=kc.isWindows(r))=>(t instanceof RegExp?t:Ne.makeRe(t,r)).test(nk.basename(e));Ne.isMatch=(e,t,r)=>Ne(t,r)(e);Ne.parse=(e,t)=>Array.isArray(e)?e.map(r=>Ne.parse(r,t)):_c(e,{...t,fastpaths:!1});Ne.scan=(e,t)=>ik(e,t);Ne.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let i=t||{},s=i.contains?"":"^",o=i.contains?"":"$",a=`${s}(?:${e.output})${o}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let c=Ne.toRegex(a,t);return n===!0&&(c.state=e),c};Ne.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(i.output=_c.fastpaths(e,t)),i.output||(i=_c(e,t)),Ne.compileRe(i,t,r,n)};Ne.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Ne.constants=sk;ym.exports=Ne});var Em=R((d6,Am)=>{"use strict";Am.exports=vm()});var ts=R((g6,xm)=>{"use strict";var Sm=q("util"),bm=em(),hr=Em(),Dc=Zi(),wm=e=>e===""||e==="./",Cm=e=>{let t=e.indexOf("{");return t>-1&&e.indexOf("}",t)>-1},Re=(e,t,r)=>{t=[].concat(t),e=[].concat(e);let n=new Set,i=new Set,s=new Set,o=0,a=f=>{s.add(f.output),r&&r.onResult&&r.onResult(f)};for(let f=0;f<t.length;f++){let l=hr(String(t[f]),{...r,onResult:a},!0),h=l.state.negated||l.state.negatedExtglob;h&&o++;for(let p of e){let d=l(p,!0);(h?!d.isMatch:d.isMatch)&&(h?n.add(d.output):(n.delete(d.output),i.add(d.output)))}}let u=(o===t.length?[...s]:[...i]).filter(f=>!n.has(f));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${t.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?t.map(f=>f.replace(/\\/g,"")):t}return u};Re.match=Re;Re.matcher=(e,t)=>hr(e,t);Re.isMatch=(e,t,r)=>hr(t,r)(e);Re.any=Re.isMatch;Re.not=(e,t,r={})=>{t=[].concat(t).map(String);let n=new Set,i=[],s=a=>{r.onResult&&r.onResult(a),i.push(a.output)},o=new Set(Re(e,t,{...r,onResult:s}));for(let a of i)o.has(a)||n.add(a);return[...n]};Re.contains=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Sm.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>Re.contains(e,n,r));if(typeof t=="string"){if(wm(e)||wm(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}return Re.isMatch(e,t,{...r,contains:!0})};Re.matchKeys=(e,t,r)=>{if(!Dc.isObject(e))throw new TypeError("Expected the first argument to be an object");let n=Re(Object.keys(e),t,r),i={};for(let s of n)i[s]=e[s];return i};Re.some=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=hr(String(i),r);if(n.some(o=>s(o)))return!0}return!1};Re.every=(e,t,r)=>{let n=[].concat(e);for(let i of[].concat(t)){let s=hr(String(i),r);if(!n.every(o=>s(o)))return!1}return!0};Re.all=(e,t,r)=>{if(typeof e!="string")throw new TypeError(`Expected a string: "${Sm.inspect(e)}"`);return[].concat(t).every(n=>hr(n,r)(e))};Re.capture=(e,t,r)=>{let n=Dc.isWindows(r),s=hr.makeRe(String(e),{...r,capture:!0}).exec(n?Dc.toPosixSlashes(t):t);if(s)return s.slice(1).map(o=>o===void 0?"":o)};Re.makeRe=(...e)=>hr.makeRe(...e);Re.scan=(...e)=>hr.scan(...e);Re.parse=(e,t)=>{let r=[];for(let n of[].concat(e||[]))for(let i of bm(String(n),t))r.push(hr.parse(i,t));return r};Re.braces=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return t&&t.nobrace===!0||!Cm(e)?[e]:bm(e,t)};Re.braceExpand=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");return Re.braces(e,{...t,expand:!0})};Re.hasBraces=Cm;xm.exports=Re});var Nm=R(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.isAbsolute=ue.partitionAbsoluteAndRelative=ue.removeDuplicateSlashes=ue.matchAny=ue.convertPatternsToRe=ue.makeRe=ue.getPatternParts=ue.expandBraceExpansion=ue.expandPatternsWithBraceExpansion=ue.isAffectDepthOfReadingPattern=ue.endsWithSlashGlobStar=ue.hasGlobStar=ue.getBaseDirectory=ue.isPatternRelatedToParentDirectory=ue.getPatternsOutsideCurrentDirectory=ue.getPatternsInsideCurrentDirectory=ue.getPositivePatterns=ue.getNegativePatterns=ue.isPositivePattern=ue.isNegativePattern=ue.convertToNegativePattern=ue.convertToPositivePattern=ue.isDynamicPattern=ue.isStaticPattern=void 0;var Pm=q("path"),ak=vg(),Fc=ts(),Om="**",uk="\\",ck=/[*?]|^!/,lk=/\[[^[]*]/,fk=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,hk=/[!*+?@]\([^(]*\)/,pk=/,|\.\./,dk=/(?!^)\/{2,}/g;function Rm(e,t={}){return!_m(e,t)}ue.isStaticPattern=Rm;function _m(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(uk)||ck.test(e)||lk.test(e)||fk.test(e)||t.extglob!==!1&&hk.test(e)||t.braceExpansion!==!1&&gk(e))}ue.isDynamicPattern=_m;function gk(e){let t=e.indexOf("{");if(t===-1)return!1;let r=e.indexOf("}",t+1);if(r===-1)return!1;let n=e.slice(t,r);return pk.test(n)}function mk(e){return Mo(e)?e.slice(1):e}ue.convertToPositivePattern=mk;function yk(e){return"!"+e}ue.convertToNegativePattern=yk;function Mo(e){return e.startsWith("!")&&e[1]!=="("}ue.isNegativePattern=Mo;function km(e){return!Mo(e)}ue.isPositivePattern=km;function vk(e){return e.filter(Mo)}ue.getNegativePatterns=vk;function Ak(e){return e.filter(km)}ue.getPositivePatterns=Ak;function Ek(e){return e.filter(t=>!Lc(t))}ue.getPatternsInsideCurrentDirectory=Ek;function wk(e){return e.filter(Lc)}ue.getPatternsOutsideCurrentDirectory=wk;function Lc(e){return e.startsWith("..")||e.startsWith("./..")}ue.isPatternRelatedToParentDirectory=Lc;function Sk(e){return ak(e,{flipBackslashes:!1})}ue.getBaseDirectory=Sk;function bk(e){return e.includes(Om)}ue.hasGlobStar=bk;function Dm(e){return e.endsWith("/"+Om)}ue.endsWithSlashGlobStar=Dm;function Ck(e){let t=Pm.basename(e);return Dm(e)||Rm(t)}ue.isAffectDepthOfReadingPattern=Ck;function xk(e){return e.reduce((t,r)=>t.concat(Fm(r)),[])}ue.expandPatternsWithBraceExpansion=xk;function Fm(e){let t=Fc.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}ue.expandBraceExpansion=Fm;function Pk(e,t){let{parts:r}=Fc.scan(e,Object.assign(Object.assign({},t),{parts:!0}));return r.length===0&&(r=[e]),r[0].startsWith("/")&&(r[0]=r[0].slice(1),r.unshift("")),r}ue.getPatternParts=Pk;function Lm(e,t){return Fc.makeRe(e,t)}ue.makeRe=Lm;function Ok(e,t){return e.map(r=>Lm(r,t))}ue.convertPatternsToRe=Ok;function Rk(e,t){return t.some(r=>r.test(e))}ue.matchAny=Rk;function _k(e){return e.replace(dk,"/")}ue.removeDuplicateSlashes=_k;function kk(e){let t=[],r=[];for(let n of e)Tm(n)?t.push(n):r.push(n);return[t,r]}ue.partitionAbsoluteAndRelative=kk;function Tm(e){return Pm.isAbsolute(e)}ue.isAbsolute=Tm});var Mm=R((y6,Bm)=>{"use strict";var Dk=q("stream"),Im=Dk.PassThrough,Fk=Array.prototype.slice;Bm.exports=Lk;function Lk(){let e=[],t=Fk.call(arguments),r=!1,n=t[t.length-1];n&&!Array.isArray(n)&&n.pipe==null?t.pop():n={};let i=n.end!==!1,s=n.pipeError===!0;n.objectMode==null&&(n.objectMode=!0),n.highWaterMark==null&&(n.highWaterMark=64*1024);let o=Im(n);function a(){for(let f=0,l=arguments.length;f<l;f++)e.push($m(arguments[f],n));return c(),this}function c(){if(r)return;r=!0;let f=e.shift();if(!f){process.nextTick(u);return}Array.isArray(f)||(f=[f]);let l=f.length+1;function h(){--l>0||(r=!1,c())}function p(d){function m(){d.removeListener("merge2UnpipeEnd",m),d.removeListener("end",m),s&&d.removeListener("error",v),h()}function v(P){o.emit("error",P)}if(d._readableState.endEmitted)return h();d.on("merge2UnpipeEnd",m),d.on("end",m),s&&d.on("error",v),d.pipe(o,{end:!1}),d.resume()}for(let d=0;d<f.length;d++)p(f[d]);h()}function u(){r=!1,o.emit("queueDrain"),i&&o.end()}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(f){f.emit("merge2UnpipeEnd")}),t.length&&a.apply(null,t),o}function $m(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=$m(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Im(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var qm=R(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.merge=void 0;var Tk=Mm();function Nk(e){let t=Tk(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>jm(e)),t.once("end",()=>jm(e)),t}jo.merge=Nk;function jm(e){e.forEach(t=>t.emit("close"))}});var Wm=R(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.isEmpty=ri.isString=void 0;function Ik(e){return typeof e=="string"}ri.isString=Ik;function $k(e){return e===""}ri.isEmpty=$k});var kr=R(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.string=Ze.stream=Ze.pattern=Ze.path=Ze.fs=Ze.errno=Ze.array=void 0;var Bk=sg();Ze.array=Bk;var Mk=og();Ze.errno=Mk;var jk=ag();Ze.fs=jk;var qk=fg();Ze.path=qk;var Wk=Nm();Ze.pattern=Wk;var Gk=qm();Ze.stream=Gk;var Uk=Wm();Ze.string=Uk});var Ym=R(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.convertPatternGroupToTask=et.convertPatternGroupsToTasks=et.groupPatternsByBaseDirectory=et.getNegativePatternsAsPositive=et.getPositivePatterns=et.convertPatternsToTasks=et.generate=void 0;var nr=kr();function Hk(e,t){let r=Gm(e,t),n=Gm(t.ignore,t),i=Um(r),s=Hm(r,n),o=i.filter(f=>nr.pattern.isStaticPattern(f,t)),a=i.filter(f=>nr.pattern.isDynamicPattern(f,t)),c=Tc(o,s,!1),u=Tc(a,s,!0);return c.concat(u)}et.generate=Hk;function Gm(e,t){let r=e;return t.braceExpansion&&(r=nr.pattern.expandPatternsWithBraceExpansion(r)),t.baseNameMatch&&(r=r.map(n=>n.includes("/")?n:`**/${n}`)),r.map(n=>nr.pattern.removeDuplicateSlashes(n))}function Tc(e,t,r){let n=[],i=nr.pattern.getPatternsOutsideCurrentDirectory(e),s=nr.pattern.getPatternsInsideCurrentDirectory(e),o=Nc(i),a=Nc(s);return n.push(...Ic(o,t,r)),"."in a?n.push($c(".",s,t,r)):n.push(...Ic(a,t,r)),n}et.convertPatternsToTasks=Tc;function Um(e){return nr.pattern.getPositivePatterns(e)}et.getPositivePatterns=Um;function Hm(e,t){return nr.pattern.getNegativePatterns(e).concat(t).map(nr.pattern.convertToPositivePattern)}et.getNegativePatternsAsPositive=Hm;function Nc(e){let t={};return e.reduce((r,n)=>{let i=nr.pattern.getBaseDirectory(n);return i in r?r[i].push(n):r[i]=[n],r},t)}et.groupPatternsByBaseDirectory=Nc;function Ic(e,t,r){return Object.keys(e).map(n=>$c(n,e[n],t,r))}et.convertPatternGroupsToTasks=Ic;function $c(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(nr.pattern.convertToNegativePattern))}}et.convertPatternGroupToTask=$c});var Vm=R(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.read=void 0;function Yk(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){zm(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Bc(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){zm(r,s);return}Bc(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Bc(r,o)})})}qo.read=Yk;function zm(e,t){e(t)}function Bc(e,t){e(null,t)}});var Km=R(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.read=void 0;function zk(e,t){let r=t.fs.lstatSync(e);if(!r.isSymbolicLink()||!t.followSymbolicLink)return r;try{let n=t.fs.statSync(e);return t.markSymbolicLink&&(n.isSymbolicLink=()=>!0),n}catch(n){if(!t.throwErrorOnBrokenSymbolicLink)return r;throw n}}Wo.read=zk});var Xm=R(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.createFileSystemAdapter=Kr.FILE_SYSTEM_ADAPTER=void 0;var Go=q("fs");Kr.FILE_SYSTEM_ADAPTER={lstat:Go.lstat,stat:Go.stat,lstatSync:Go.lstatSync,statSync:Go.statSync};function Vk(e){return e===void 0?Kr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Kr.FILE_SYSTEM_ADAPTER),e)}Kr.createFileSystemAdapter=Vk});var Jm=R(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});var Kk=Xm(),Mc=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=Kk.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0)}_getValue(t,r){return t??r}};jc.default=Mc});var Cn=R(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.statSync=Xr.stat=Xr.Settings=void 0;var Qm=Vm(),Xk=Km(),qc=Jm();Xr.Settings=qc.default;function Jk(e,t,r){if(typeof t=="function"){Qm.read(e,Wc(),t);return}Qm.read(e,Wc(t),r)}Xr.stat=Jk;function Qk(e,t){let r=Wc(t);return Xk.read(e,r)}Xr.statSync=Qk;function Wc(e={}){return e instanceof qc.default?e:new qc.default(e)}});var t0=R((O6,e0)=>{var Zm;e0.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(Zm||(Zm=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var n0=R((R6,r0)=>{r0.exports=eD;var Zk=t0();function eD(e,t){let r,n,i,s=!0;Array.isArray(e)?(r=[],n=e.length):(i=Object.keys(e),r={},n=i.length);function o(c){function u(){t&&t(c,r),t=null}s?Zk(u):u()}function a(c,u,f){r[c]=f,(--n===0||u)&&o(u)}n?i?i.forEach(function(c){e[c](function(u,f){a(c,u,f)})}):e.forEach(function(c,u){c(function(f,l){a(u,f,l)})}):o(null),s=!1}});var Gc=R(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;var Uo=process.versions.node.split(".");if(Uo[0]===void 0||Uo[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);var i0=Number.parseInt(Uo[0],10),tD=Number.parseInt(Uo[1],10),s0=10,rD=10,nD=i0>s0,iD=i0===s0&&tD>=rD;Ho.IS_SUPPORT_READDIR_WITH_FILE_TYPES=nD||iD});var o0=R(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.createDirentFromStats=void 0;var Uc=class{constructor(t,r){this.name=t,this.isBlockDevice=r.isBlockDevice.bind(r),this.isCharacterDevice=r.isCharacterDevice.bind(r),this.isDirectory=r.isDirectory.bind(r),this.isFIFO=r.isFIFO.bind(r),this.isFile=r.isFile.bind(r),this.isSocket=r.isSocket.bind(r),this.isSymbolicLink=r.isSymbolicLink.bind(r)}};function sD(e,t){return new Uc(e,t)}Yo.createDirentFromStats=sD});var Hc=R(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.fs=void 0;var oD=o0();zo.fs=oD});var Yc=R(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.joinPathSegments=void 0;function aD(e,t,r){return e.endsWith(r)?e+t:e+r+t}Vo.joinPathSegments=aD});var h0=R(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.readdir=Jr.readdirWithFileTypes=Jr.read=void 0;var uD=Cn(),a0=n0(),cD=Gc(),u0=Hc(),c0=Yc();function lD(e,t,r){if(!t.stats&&cD.IS_SUPPORT_READDIR_WITH_FILE_TYPES){l0(e,t,r);return}f0(e,t,r)}Jr.read=lD;function l0(e,t,r){t.fs.readdir(e,{withFileTypes:!0},(n,i)=>{if(n!==null){Ko(r,n);return}let s=i.map(a=>({dirent:a,name:a.name,path:c0.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){zc(r,s);return}let o=s.map(a=>fD(a,t));a0(o,(a,c)=>{if(a!==null){Ko(r,a);return}zc(r,c)})})}Jr.readdirWithFileTypes=l0;function fD(e,t){return r=>{if(!e.dirent.isSymbolicLink()){r(null,e);return}t.fs.stat(e.path,(n,i)=>{if(n!==null){if(t.throwErrorOnBrokenSymbolicLink){r(n);return}r(null,e);return}e.dirent=u0.fs.createDirentFromStats(e.name,i),r(null,e)})}}function f0(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Ko(r,n);return}let s=i.map(o=>{let a=c0.joinPathSegments(e,o,t.pathSegmentSeparator);return c=>{uD.stat(a,t.fsStatSettings,(u,f)=>{if(u!==null){c(u);return}let l={name:o,path:a,dirent:u0.fs.createDirentFromStats(o,f)};t.stats&&(l.stats=f),c(null,l)})}});a0(s,(o,a)=>{if(o!==null){Ko(r,o);return}zc(r,a)})})}Jr.readdir=f0;function Ko(e,t){e(t)}function zc(e,t){e(null,t)}});var y0=R(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.readdir=Qr.readdirWithFileTypes=Qr.read=void 0;var hD=Cn(),pD=Gc(),p0=Hc(),d0=Yc();function dD(e,t){return!t.stats&&pD.IS_SUPPORT_READDIR_WITH_FILE_TYPES?g0(e,t):m0(e,t)}Qr.read=dD;function g0(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:d0.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=p0.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Qr.readdirWithFileTypes=g0;function m0(e,t){return t.fs.readdirSync(e).map(n=>{let i=d0.joinPathSegments(e,n,t.pathSegmentSeparator),s=hD.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:p0.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Qr.readdir=m0});var v0=R(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.createFileSystemAdapter=Zr.FILE_SYSTEM_ADAPTER=void 0;var ni=q("fs");Zr.FILE_SYSTEM_ADAPTER={lstat:ni.lstat,stat:ni.stat,lstatSync:ni.lstatSync,statSync:ni.statSync,readdir:ni.readdir,readdirSync:ni.readdirSync};function gD(e){return e===void 0?Zr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Zr.FILE_SYSTEM_ADAPTER),e)}Zr.createFileSystemAdapter=gD});var A0=R(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var mD=q("path"),yD=Cn(),vD=v0(),Vc=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=vD.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,mD.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new yD.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Kc.default=Vc});var Xo=R(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.Settings=en.scandirSync=en.scandir=void 0;var E0=h0(),AD=y0(),Xc=A0();en.Settings=Xc.default;function ED(e,t,r){if(typeof t=="function"){E0.read(e,Jc(),t);return}E0.read(e,Jc(t),r)}en.scandir=ED;function wD(e,t){let r=Jc(t);return AD.read(e,r)}en.scandirSync=wD;function Jc(e={}){return e instanceof Xc.default?e:new Xc.default(e)}});var S0=R((B6,w0)=>{"use strict";function SD(e){var t=new e,r=t;function n(){var s=t;return s.next?t=s.next:(t=new e,r=t),s.next=null,s}function i(s){r.next=s,r=s}return{get:n,release:i}}w0.exports=SD});var C0=R((M6,Qc)=>{"use strict";var bD=S0();function b0(e,t,r){if(typeof e=="function"&&(r=t,t=e,e=null),!(r>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var n=bD(CD),i=null,s=null,o=0,a=null,c={push:m,drain:qt,saturated:qt,pause:f,paused:!1,get concurrency(){return r},set concurrency(E){if(!(E>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=E,!c.paused)for(;i&&o<r;)o++,P()},running:u,resume:p,idle:d,length:l,getQueue:h,unshift:v,empty:qt,kill:C,killAndDrain:F,error:D};return c;function u(){return o}function f(){c.paused=!0}function l(){for(var E=i,O=0;E;)E=E.next,O++;return O}function h(){for(var E=i,O=[];E;)O.push(E.value),E=E.next;return O}function p(){if(c.paused){if(c.paused=!1,i===null){o++,P();return}for(;i&&o<r;)o++,P()}}function d(){return o===0&&c.length()===0}function m(E,O){var k=n.get();k.context=e,k.release=P,k.value=E,k.callback=O||qt,k.errorHandler=a,o>=r||c.paused?s?(s.next=k,s=k):(i=k,s=k,c.saturated()):(o++,t.call(e,k.value,k.worked))}function v(E,O){var k=n.get();k.context=e,k.release=P,k.value=E,k.callback=O||qt,k.errorHandler=a,o>=r||c.paused?i?(k.next=i,i=k):(i=k,s=k,c.saturated()):(o++,t.call(e,k.value,k.worked))}function P(E){E&&n.release(E);var O=i;O&&o<=r?c.paused?o--:(s===i&&(s=null),i=O.next,O.next=null,t.call(e,O.value,O.worked),s===null&&c.empty()):--o===0&&c.drain()}function C(){i=null,s=null,c.drain=qt}function F(){i=null,s=null,c.drain(),c.drain=qt}function D(E){a=E}}function qt(){}function CD(){this.value=null,this.callback=qt,this.next=null,this.release=qt,this.context=null,this.errorHandler=null;var e=this;this.worked=function(r,n){var i=e.callback,s=e.errorHandler,o=e.value;e.value=null,e.callback=qt,e.errorHandler&&s(r,o),i.call(e.context,r,n),e.release(e)}}function xD(e,t,r){typeof e=="function"&&(r=t,t=e,e=null);function n(f,l){t.call(this,f).then(function(h){l(null,h)},l)}var i=b0(e,n,r),s=i.push,o=i.unshift;return i.push=a,i.unshift=c,i.drained=u,i;function a(f){var l=new Promise(function(h,p){s(f,function(d,m){if(d){p(d);return}h(m)})});return l.catch(qt),l}function c(f){var l=new Promise(function(h,p){o(f,function(d,m){if(d){p(d);return}h(m)})});return l.catch(qt),l}function u(){if(i.idle())return new Promise(function(h){h()});var f=i.drain,l=new Promise(function(h){i.drain=function(){f(),h()}});return l}}Qc.exports=b0;Qc.exports.promise=xD});var Jo=R(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.joinPathSegments=pr.replacePathSegmentSeparator=pr.isAppliedFilter=pr.isFatalError=void 0;function PD(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}pr.isFatalError=PD;function OD(e,t){return e===null||e(t)}pr.isAppliedFilter=OD;function RD(e,t){return e.split(/[/\\]/).join(t)}pr.replacePathSegmentSeparator=RD;function _D(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}pr.joinPathSegments=_D});var tl=R(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var kD=Jo(),Zc=class{constructor(t,r){this._root=t,this._settings=r,this._root=kD.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};el.default=Zc});var il=R(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var DD=q("events"),FD=Xo(),LD=C0(),Qo=Jo(),TD=tl(),rl=class extends TD.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=FD.scandir,this._emitter=new DD.EventEmitter,this._queue=LD(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end")}}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath)}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain()}onEntry(t){this._emitter.on("entry",t)}onError(t){this._emitter.once("error",t)}onEnd(t){this._emitter.once("end",t)}_pushToQueue(t,r){let n={directory:t,base:r};this._queue.push(n,i=>{i!==null&&this._handleError(i)})}_worker(t,r){this._scandir(t.directory,this._settings.fsScandirSettings,(n,i)=>{if(n!==null){r(n,void 0);return}for(let s of i)this._handleEntry(s,t.base);r(null,void 0)})}_handleError(t){this._isDestroyed||!Qo.isFatalError(this._settings,t)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",t))}_handleEntry(t,r){if(this._isDestroyed||this._isFatalError)return;let n=t.path;r!==void 0&&(t.path=Qo.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Qo.isAppliedFilter(this._settings.entryFilter,t)&&this._emitEntry(t),t.dirent.isDirectory()&&Qo.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_emitEntry(t){this._emitter.emit("entry",t)}};nl.default=rl});var x0=R(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});var ND=il(),sl=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new ND.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{ID(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{$D(t,this._storage)}),this._reader.read()}};ol.default=sl;function ID(e,t){e(t)}function $D(e,t){e(null,t)}});var P0=R(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var BD=q("stream"),MD=il(),al=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new MD.default(this._root,this._settings),this._stream=new BD.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy()}})}read(){return this._reader.onError(t=>{this._stream.emit("error",t)}),this._reader.onEntry(t=>{this._stream.push(t)}),this._reader.onEnd(()=>{this._stream.push(null)}),this._reader.read(),this._stream}};ul.default=al});var O0=R(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var jD=Xo(),Zo=Jo(),qD=tl(),cl=class extends qD.default{constructor(){super(...arguments),this._scandir=jD.scandirSync,this._storage=[],this._queue=new Set}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(t,r){this._queue.add({directory:t,base:r})}_handleQueue(){for(let t of this._queue.values())this._handleDirectory(t.directory,t.base)}_handleDirectory(t,r){try{let n=this._scandir(t,this._settings.fsScandirSettings);for(let i of n)this._handleEntry(i,r)}catch(n){this._handleError(n)}}_handleError(t){if(Zo.isFatalError(this._settings,t))throw t}_handleEntry(t,r){let n=t.path;r!==void 0&&(t.path=Zo.joinPathSegments(r,t.name,this._settings.pathSegmentSeparator)),Zo.isAppliedFilter(this._settings.entryFilter,t)&&this._pushToStorage(t),t.dirent.isDirectory()&&Zo.isAppliedFilter(this._settings.deepFilter,t)&&this._pushToQueue(n,r===void 0?void 0:t.path)}_pushToStorage(t){this._storage.push(t)}};ll.default=cl});var R0=R(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var WD=O0(),fl=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new WD.default(this._root,this._settings)}read(){return this._reader.read()}};hl.default=fl});var _0=R(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var GD=q("path"),UD=Xo(),pl=class{constructor(t={}){this._options=t,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,GD.sep),this.fsScandirSettings=new UD.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};dl.default=pl});var ta=R(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.Settings=dr.walkStream=dr.walkSync=dr.walk=void 0;var k0=x0(),HD=P0(),YD=R0(),gl=_0();dr.Settings=gl.default;function zD(e,t,r){if(typeof t=="function"){new k0.default(e,ea()).read(t);return}new k0.default(e,ea(t)).read(r)}dr.walk=zD;function VD(e,t){let r=ea(t);return new YD.default(e,r).read()}dr.walkSync=VD;function KD(e,t){let r=ea(t);return new HD.default(e,r).read()}dr.walkStream=KD;function ea(e={}){return e instanceof gl.default?e:new gl.default(e)}});var ra=R(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var XD=q("path"),JD=Cn(),D0=kr(),ml=class{constructor(t){this._settings=t,this._fsStatSettings=new JD.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return XD.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:D0.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!D0.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};yl.default=ml});var El=R(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var QD=q("stream"),ZD=Cn(),eF=ta(),tF=ra(),vl=class extends tF.default{constructor(){super(...arguments),this._walkStream=eF.walkStream,this._stat=ZD.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new QD.PassThrough({objectMode:!0});i._write=(s,o,a)=>this._getEntry(n[s],t[s],r).then(c=>{c!==null&&r.entryFilter(c)&&i.push(c),s===n.length-1&&i.end(),a()}).catch(a);for(let s=0;s<n.length;s++)i.write(s);return i}_getEntry(t,r,n){return this._getStat(t).then(i=>this._makeEntry(i,r)).catch(i=>{if(n.errorFilter(i))return null;throw i})}_getStat(t){return new Promise((r,n)=>{this._stat(t,this._fsStatSettings,(i,s)=>i===null?r(s):n(i))})}};Al.default=vl});var F0=R(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var rF=ta(),nF=ra(),iF=El(),wl=class extends nF.default{constructor(){super(...arguments),this._walkAsync=rF.walk,this._readerStream=new iF.default(this._settings)}dynamic(t,r){return new Promise((n,i)=>{this._walkAsync(t,r,(s,o)=>{s===null?n(o):i(s)})})}async static(t,r){let n=[],i=this._readerStream.static(t,r);return new Promise((s,o)=>{i.once("error",o),i.on("data",a=>n.push(a)),i.once("end",()=>s(n))})}};Sl.default=wl});var L0=R(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});var rs=kr(),bl=class{constructor(t,r,n){this._patterns=t,this._settings=r,this._micromatchOptions=n,this._storage=[],this._fillStorage()}_fillStorage(){for(let t of this._patterns){let r=this._getPatternSegments(t),n=this._splitSegmentsIntoSections(r);this._storage.push({complete:n.length<=1,pattern:t,segments:r,sections:n})}}_getPatternSegments(t){return rs.pattern.getPatternParts(t,this._micromatchOptions).map(n=>rs.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:rs.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return rs.array.splitWhen(t,r=>r.dynamic&&rs.pattern.hasGlobStar(r.pattern))}};Cl.default=bl});var T0=R(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});var sF=L0(),xl=class extends sF.default{match(t){let r=t.split("/"),n=r.length,i=this._storage.filter(s=>!s.complete||s.segments.length>n);for(let s of i){let o=s.sections[0];if(!s.complete&&n>o.length||r.every((c,u)=>{let f=s.segments[u];return!!(f.dynamic&&f.patternRe.test(c)||!f.dynamic&&f.pattern===c)}))return!0}return!1}};Pl.default=xl});var N0=R(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});var na=kr(),oF=T0(),Ol=class{constructor(t,r){this._settings=t,this._micromatchOptions=r}getFilter(t,r,n){let i=this._getMatcher(r),s=this._getNegativePatternsRe(n);return o=>this._filter(t,o,i,s)}_getMatcher(t){return new oF.default(t,this._settings,this._micromatchOptions)}_getNegativePatternsRe(t){let r=t.filter(na.pattern.isAffectDepthOfReadingPattern);return na.pattern.convertPatternsToRe(r,this._micromatchOptions)}_filter(t,r,n,i){if(this._isSkippedByDeep(t,r.path)||this._isSkippedSymbolicLink(r))return!1;let s=na.path.removeLeadingDotSegment(r.path);return this._isSkippedByPositivePatterns(s,n)?!1:this._isSkippedByNegativePatterns(s,i)}_isSkippedByDeep(t,r){return this._settings.deep===1/0?!1:this._getEntryLevel(t,r)>=this._settings.deep}_getEntryLevel(t,r){let n=r.split("/").length;if(t==="")return n;let i=t.split("/").length;return n-i}_isSkippedSymbolicLink(t){return!this._settings.followSymbolicLinks&&t.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(t,r){return!this._settings.baseNameMatch&&!r.match(t)}_isSkippedByNegativePatterns(t,r){return!na.pattern.matchAny(t,r)}};Rl.default=Ol});var I0=R(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});var tn=kr(),_l=class{constructor(t,r){this._settings=t,this._micromatchOptions=r,this.index=new Map}getFilter(t,r){let[n,i]=tn.pattern.partitionAbsoluteAndRelative(r),s={positive:{all:tn.pattern.convertPatternsToRe(t,this._micromatchOptions)},negative:{absolute:tn.pattern.convertPatternsToRe(n,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0})),relative:tn.pattern.convertPatternsToRe(i,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}))}};return o=>this._filter(o,s)}_filter(t,r){let n=tn.path.removeLeadingDotSegment(t.path);if(this._settings.unique&&this._isDuplicateEntry(n)||this._onlyFileFilter(t)||this._onlyDirectoryFilter(t))return!1;let i=this._isMatchToPatternsSet(n,r,t.dirent.isDirectory());return this._settings.unique&&i&&this._createIndexRecord(n),i}_isDuplicateEntry(t){return this.index.has(t)}_createIndexRecord(t){this.index.set(t,void 0)}_onlyFileFilter(t){return this._settings.onlyFiles&&!t.dirent.isFile()}_onlyDirectoryFilter(t){return this._settings.onlyDirectories&&!t.dirent.isDirectory()}_isMatchToPatternsSet(t,r,n){return!(!this._isMatchToPatterns(t,r.positive.all,n)||this._isMatchToPatterns(t,r.negative.relative,n)||this._isMatchToAbsoluteNegative(t,r.negative.absolute,n))}_isMatchToAbsoluteNegative(t,r,n){if(r.length===0)return!1;let i=tn.path.makeAbsolute(this._settings.cwd,t);return this._isMatchToPatterns(i,r,n)}_isMatchToPatterns(t,r,n){if(r.length===0)return!1;let i=tn.pattern.matchAny(t,r);return!i&&n?tn.pattern.matchAny(t+"/",r):i}};kl.default=_l});var $0=R(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});var aF=kr(),Dl=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return aF.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Fl.default=Dl});var M0=R(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});var B0=kr(),Ll=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=B0.path.makeAbsolute(this._settings.cwd,r),r=B0.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Tl.default=Ll});var ia=R(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});var uF=q("path"),cF=N0(),lF=I0(),fF=$0(),hF=M0(),Nl=class{constructor(t){this._settings=t,this.errorFilter=new fF.default(this._settings),this.entryFilter=new lF.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new cF.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new hF.default(this._settings)}_getRootDirectory(t){return uF.resolve(this._settings.cwd,t.base)}_getReaderOptions(t){let r=t.base==="."?"":t.base;return{basePath:r,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(r,t.positive,t.negative),entryFilter:this.entryFilter.getFilter(t.positive,t.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};Il.default=Nl});var j0=R(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});var pF=F0(),dF=ia(),$l=class extends dF.default{constructor(){super(...arguments),this._reader=new pF.default(this._settings)}async read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return(await this.api(r,t,n)).map(s=>n.transform(s))}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Bl.default=$l});var q0=R(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});var gF=q("stream"),mF=El(),yF=ia(),Ml=class extends yF.default{constructor(){super(...arguments),this._reader=new mF.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new gF.Readable({objectMode:!0,read:()=>{}});return i.once("error",o=>s.emit("error",o)).on("data",o=>s.emit("data",n.transform(o))).once("end",()=>s.emit("end")),s.once("close",()=>i.destroy()),s}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};jl.default=Ml});var W0=R(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var vF=Cn(),AF=ta(),EF=ra(),ql=class extends EF.default{constructor(){super(...arguments),this._walkSync=AF.walkSync,this._statSync=vF.statSync}dynamic(t,r){return this._walkSync(t,r)}static(t,r){let n=[];for(let i of t){let s=this._getFullEntryPath(i),o=this._getEntry(s,i,r);o===null||!r.entryFilter(o)||n.push(o)}return n}_getEntry(t,r,n){try{let i=this._getStat(t);return this._makeEntry(i,r)}catch(i){if(n.errorFilter(i))return null;throw i}}_getStat(t){return this._statSync(t,this._fsStatSettings)}};Wl.default=ql});var G0=R(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});var wF=W0(),SF=ia(),Gl=class extends SF.default{constructor(){super(...arguments),this._reader=new wF.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t);return this.api(r,t,n).map(n.transform)}api(t,r,n){return r.dynamic?this._reader.dynamic(t,n):this._reader.static(r.patterns,n)}};Ul.default=Gl});var U0=R(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var ii=q("fs"),bF=q("os"),CF=Math.max(bF.cpus().length,1);si.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:ii.lstat,lstatSync:ii.lstatSync,stat:ii.stat,statSync:ii.statSync,readdir:ii.readdir,readdirSync:ii.readdirSync};var Hl=class{constructor(t={}){this._options=t,this.absolute=this._getValue(this._options.absolute,!1),this.baseNameMatch=this._getValue(this._options.baseNameMatch,!1),this.braceExpansion=this._getValue(this._options.braceExpansion,!0),this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,!0),this.concurrency=this._getValue(this._options.concurrency,CF),this.cwd=this._getValue(this._options.cwd,process.cwd()),this.deep=this._getValue(this._options.deep,1/0),this.dot=this._getValue(this._options.dot,!1),this.extglob=this._getValue(this._options.extglob,!0),this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!0),this.fs=this._getFileSystemMethods(this._options.fs),this.globstar=this._getValue(this._options.globstar,!0),this.ignore=this._getValue(this._options.ignore,[]),this.markDirectories=this._getValue(this._options.markDirectories,!1),this.objectMode=this._getValue(this._options.objectMode,!1),this.onlyDirectories=this._getValue(this._options.onlyDirectories,!1),this.onlyFiles=this._getValue(this._options.onlyFiles,!0),this.stats=this._getValue(this._options.stats,!1),this.suppressErrors=this._getValue(this._options.suppressErrors,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!1),this.unique=this._getValue(this._options.unique,!0),this.onlyDirectories&&(this.onlyFiles=!1),this.stats&&(this.objectMode=!0),this.ignore=[].concat(this.ignore)}_getValue(t,r){return t===void 0?r:t}_getFileSystemMethods(t={}){return Object.assign(Object.assign({},si.DEFAULT_FILE_SYSTEM_ADAPTER),t)}};si.default=Hl});var z0=R((l8,Y0)=>{"use strict";var H0=Ym(),xF=j0(),PF=q0(),OF=G0(),Yl=U0(),Wt=kr();async function zl(e,t){ir(e);let r=Vl(e,xF.default,t),n=await Promise.all(r);return Wt.array.flatten(n)}(function(e){e.glob=e,e.globSync=t,e.globStream=r,e.async=e;function t(u,f){ir(u);let l=Vl(u,OF.default,f);return Wt.array.flatten(l)}e.sync=t;function r(u,f){ir(u);let l=Vl(u,PF.default,f);return Wt.stream.merge(l)}e.stream=r;function n(u,f){ir(u);let l=[].concat(u),h=new Yl.default(f);return H0.generate(l,h)}e.generateTasks=n;function i(u,f){ir(u);let l=new Yl.default(f);return Wt.pattern.isDynamicPattern(u,l)}e.isDynamicPattern=i;function s(u){return ir(u),Wt.path.escape(u)}e.escapePath=s;function o(u){return ir(u),Wt.path.convertPathToPattern(u)}e.convertPathToPattern=o;let a;(function(u){function f(h){return ir(h),Wt.path.escapePosixPath(h)}u.escapePath=f;function l(h){return ir(h),Wt.path.convertPosixPathToPattern(h)}u.convertPathToPattern=l})(a=e.posix||(e.posix={}));let c;(function(u){function f(h){return ir(h),Wt.path.escapeWindowsPath(h)}u.escapePath=f;function l(h){return ir(h),Wt.path.convertWindowsPathToPattern(h)}u.convertPathToPattern=l})(c=e.win32||(e.win32={}))})(zl||(zl={}));function Vl(e,t,r){let n=[].concat(e),i=new Yl.default(r),s=H0.generate(n,i),o=new t(i);return s.map(o.read,o)}function ir(e){if(![].concat(e).every(n=>Wt.string.isString(n)&&!Wt.string.isEmpty(n)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}Y0.exports=zl});var oa=R(nn=>{"use strict";var V0=nn&&nn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(nn,"__esModule",{value:!0});nn.getPackagePathsAsync=nn.getPackagePaths=void 0;var sa=V0(q("path")),K0=V0(z0()),X0=zn(),rn={},J0={absolute:!0,ignore:["**/node_modules/**","**/__fixtures__/**"],stats:!1};function RF(e,t){return(0,X0.isCachingEnabled)()&&rn[e]||(rn[e]=K0.default.sync(Q0(t),{cwd:e,...J0}).map(Z0)),rn[e]}nn.getPackagePaths=RF;async function _F(e,t){return(0,X0.isCachingEnabled)()&&rn[e]||(rn[e]=(await(0,K0.default)(Q0(t),{cwd:e,...J0})).map(Z0)),rn[e]}nn.getPackagePathsAsync=_F;function Q0(e){return e.map(t=>sa.default.join(t,"package.json").replace(/\\/g,"/"))}function Z0(e){let t=sa.default.dirname(e);return sa.default.sep==="/"?t:t.replace(/\//g,sa.default.sep)}});var ns=R(sn=>{"use strict";var Kl=sn&&sn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(sn,"__esModule",{value:!0});sn.getWorkspacePackageInfoAsync=sn.getWorkspacePackageInfo=void 0;var ey=Kl(q("path")),kF=Kl(q("fs")),DF=Kl(q("fs/promises")),ty=wn(),ry=ic();function FF(e){return e?e.map(t=>{let r,n=ey.default.join(t,"package.json");try{r=JSON.parse(kF.default.readFileSync(n,"utf-8"))}catch(i){return(0,ty.logVerboseWarning)(`Error reading or parsing ${n} while getting workspace package info`,i),null}return{name:r.name,path:t,packageJson:(0,ry.infoFromPackageJson)(r,n)}}).filter(Boolean):[]}sn.getWorkspacePackageInfo=FF;async function LF(e){if(!e)return[];let t=e.map(async r=>{let n=ey.default.join(r,"package.json");try{let i=JSON.parse(await DF.default.readFile(n,"utf-8"));return{name:i.name,path:r,packageJson:(0,ry.infoFromPackageJson)(i,n)}}catch(i){return(0,ty.logVerboseWarning)(`Error reading or parsing ${n} while getting workspace package info`,i),null}});return(await Promise.all(t)).filter(Boolean)}sn.getWorkspacePackageInfoAsync=LF});var Xl=R(Gt=>{"use strict";var ny=Gt&&Gt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.getWorkspaceInfoFromWorkspaceRootAsync=Gt.getWorkspaceInfoFromWorkspaceRoot=Gt.getPackagePathsFromWorkspaceRootAsync=Gt.getPackagePathsFromWorkspaceRoot=void 0;var TF=ny(q("fs")),NF=ny(q("path")),iy=oa(),sy=ns(),aa=wn();function oy(e){let t=NF.default.join(e,"package.json"),r;try{r=JSON.parse(TF.default.readFileSync(t,"utf-8"))}catch{throw new Error("Could not load package.json from workspaces root")}let{workspaces:n}=r;if(Array.isArray(n))return n;if(!n?.packages)throw new Error("Could not find a workspaces object in package.json (expected if this is not a monorepo)");return n.packages}function ay(e){try{let t=oy(e);return t?(0,iy.getPackagePaths)(e,t):[]}catch(t){return(0,aa.logVerboseWarning)(`Error getting package paths for ${e}`,t),[]}}Gt.getPackagePathsFromWorkspaceRoot=ay;async function uy(e){try{let t=oy(e);return t?(0,iy.getPackagePathsAsync)(e,t):[]}catch(t){return(0,aa.logVerboseWarning)(`Error getting package paths for ${e}`,t),[]}}Gt.getPackagePathsFromWorkspaceRootAsync=uy;function IF(e){try{let t=ay(e);return(0,sy.getWorkspacePackageInfo)(t)}catch(t){return(0,aa.logVerboseWarning)(`Error getting workspace info for ${e}`,t),[]}}Gt.getWorkspaceInfoFromWorkspaceRoot=IF;async function $F(e){try{let t=await uy(e);return(0,sy.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,aa.logVerboseWarning)(`Error getting workspace info for ${e}`,t),[]}}Gt.getWorkspaceInfoFromWorkspaceRootAsync=$F});var Jl=R(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.getWorkspacesAsync=tt.getWorkspaces=tt.getYarnWorkspacesAsync=tt.getYarnWorkspaces=tt.getWorkspacePackagePathsAsync=tt.getWorkspacePackagePaths=tt.getYarnWorkspaceRoot=void 0;var BF=Vn(),ua=Xl();function is(e){let t=(0,BF.getWorkspaceManagerAndRoot)(e,void 0,"yarn")?.root;if(!t)throw new Error("Could not find yarn workspace root from "+e);return t}tt.getYarnWorkspaceRoot=is;function MF(e){let t=is(e);return(0,ua.getPackagePathsFromWorkspaceRoot)(t)}tt.getWorkspacePackagePaths=MF;function jF(e){let t=is(e);return(0,ua.getPackagePathsFromWorkspaceRootAsync)(t)}tt.getWorkspacePackagePathsAsync=jF;function cy(e){let t=is(e);return(0,ua.getWorkspaceInfoFromWorkspaceRoot)(t)}tt.getYarnWorkspaces=cy;tt.getWorkspaces=cy;function ly(e){let t=is(e);return(0,ua.getWorkspaceInfoFromWorkspaceRootAsync)(t)}tt.getYarnWorkspacesAsync=ly;tt.getWorkspacesAsync=ly});var oi=R((g8,xn)=>{"use strict";function fy(e){return typeof e>"u"||e===null}function qF(e){return typeof e=="object"&&e!==null}function WF(e){return Array.isArray(e)?e:fy(e)?[]:[e]}function GF(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function UF(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function HF(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}xn.exports.isNothing=fy;xn.exports.isObject=qF;xn.exports.toArray=WF;xn.exports.repeat=UF;xn.exports.isNegativeZero=HF;xn.exports.extend=GF});var ai=R((m8,py)=>{"use strict";function hy(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
3
10
 
4
- `+e.mark.snippet),n+" "+r):n}function Ti(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=_0(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ti.prototype=Object.create(Error.prototype);Ti.prototype.constructor=Ti;Ti.prototype.toString=function(t){return this.name+": "+_0(this,t)};x0.exports=Ti});var O0=F((Gq,b0)=>{"use strict";var Ii=In();function Gc(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function Uc(e,t){return Ii.repeat(" ",t-e.length)+e}function NR(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,c,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)c=Gc(e.buffer,n[o-u],i[o-u],e.position-(n[o]-n[o-u]),l),a=Ii.repeat(" ",t.indent)+Uc((e.line-u+1).toString(),f)+" | "+c.str+`
5
- `+a;for(c=Gc(e.buffer,n[o],i[o],e.position,l),a+=Ii.repeat(" ",t.indent)+Uc((e.line+1).toString(),f)+" | "+c.str+`
6
- `,a+=Ii.repeat("-",t.indent+f+3+c.pos)+`^
7
- `,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)c=Gc(e.buffer,n[o+u],i[o+u],e.position-(n[o]-n[o+u]),l),a+=Ii.repeat(" ",t.indent)+Uc((e.line+u+1).toString(),f)+" | "+c.str+`
8
- `;return a.replace(/\n$/,"")}b0.exports=NR});var We=F((Uq,F0)=>{"use strict";var R0=Ln(),BR=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],$R=["scalar","sequence","mapping"];function MR(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function jR(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(BR.indexOf(r)===-1)throw new R0('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=MR(t.styleAliases||null),$R.indexOf(this.kind)===-1)throw new R0('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}F0.exports=jR});var zc=F((Wq,P0)=>{"use strict";var Li=Ln(),Wc=We();function k0(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function qR(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Yc(e){return this.extend(e)}Yc.prototype.extend=function(t){var r=[],n=[];if(t instanceof Wc)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new Li("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Wc))throw new Li("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Li("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Li("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof Wc))throw new Li("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Yc.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=k0(i,"implicit"),i.compiledExplicit=k0(i,"explicit"),i.compiledTypeMap=qR(i.compiledImplicit,i.compiledExplicit),i};P0.exports=Yc});var Vc=F((Yq,D0)=>{"use strict";var HR=We();D0.exports=new HR("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var Kc=F((zq,T0)=>{"use strict";var GR=We();T0.exports=new GR("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var Xc=F((Vq,I0)=>{"use strict";var UR=We();I0.exports=new UR("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var Qc=F((Kq,L0)=>{"use strict";var WR=zc();L0.exports=new WR({explicit:[Vc(),Kc(),Xc()]})});var Jc=F((Xq,N0)=>{"use strict";var YR=We();function zR(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function VR(){return null}function KR(e){return e===null}N0.exports=new YR("tag:yaml.org,2002:null",{kind:"scalar",resolve:zR,construct:VR,predicate:KR,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var Zc=F((Qq,B0)=>{"use strict";var XR=We();function QR(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function JR(e){return e==="true"||e==="True"||e==="TRUE"}function ZR(e){return Object.prototype.toString.call(e)==="[object Boolean]"}B0.exports=new XR("tag:yaml.org,2002:bool",{kind:"scalar",resolve:QR,construct:JR,predicate:ZR,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var el=F((Jq,$0)=>{"use strict";var eF=In(),tF=We();function rF(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function nF(e){return 48<=e&&e<=55}function iF(e){return 48<=e&&e<=57}function sF(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!rF(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!nF(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!iF(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function oF(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function aF(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!eF.isNegativeZero(e)}$0.exports=new tF("tag:yaml.org,2002:int",{kind:"scalar",resolve:sF,construct:oF,predicate:aF,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var tl=F((Zq,j0)=>{"use strict";var M0=In(),uF=We(),cF=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function lF(e){return!(e===null||!cF.test(e)||e[e.length-1]==="_")}function fF(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var hF=/^[-+]?[0-9]+e/;function dF(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(M0.isNegativeZero(e))return"-0.0";return r=e.toString(10),hF.test(r)?r.replace("e",".e"):r}function pF(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||M0.isNegativeZero(e))}j0.exports=new uF("tag:yaml.org,2002:float",{kind:"scalar",resolve:lF,construct:fF,predicate:pF,represent:dF,defaultStyle:"lowercase"})});var rl=F((e6,q0)=>{"use strict";q0.exports=Qc().extend({implicit:[Jc(),Zc(),el(),tl()]})});var nl=F((t6,H0)=>{"use strict";H0.exports=rl()});var il=F((r6,W0)=>{"use strict";var gF=We(),G0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),U0=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function mF(e){return e===null?!1:G0.exec(e)!==null||U0.exec(e)!==null}function yF(e){var t,r,n,i,s,o,a,u=0,c=null,f,l,h;if(t=G0.exec(e),t===null&&(t=U0.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],l=+(t[11]||0),c=(f*60+l)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,i,s,o,a,u)),c&&h.setTime(h.getTime()-c),h}function vF(e){return e.toISOString()}W0.exports=new gF("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:mF,construct:yF,instanceOf:Date,represent:vF})});var sl=F((n6,Y0)=>{"use strict";var EF=We();function AF(e){return e==="<<"||e===null}Y0.exports=new EF("tag:yaml.org,2002:merge",{kind:"scalar",resolve:AF})});var al=F((i6,z0)=>{"use strict";var SF=We(),ol=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
9
- \r`;function wF(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=ol;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function CF(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=ol,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function _F(e){var t="",r=0,n,i,s=e.length,o=ol;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function xF(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}z0.exports=new SF("tag:yaml.org,2002:binary",{kind:"scalar",resolve:wF,construct:CF,predicate:xF,represent:_F})});var ul=F((s6,V0)=>{"use strict";var bF=We(),OF=Object.prototype.hasOwnProperty,RF=Object.prototype.toString;function FF(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,RF.call(i)!=="[object Object]")return!1;for(s in i)if(OF.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function kF(e){return e!==null?e:[]}V0.exports=new bF("tag:yaml.org,2002:omap",{kind:"sequence",resolve:FF,construct:kF})});var cl=F((o6,K0)=>{"use strict";var PF=We(),DF=Object.prototype.toString;function TF(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],DF.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function IF(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}K0.exports=new PF("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:TF,construct:IF})});var ll=F((a6,X0)=>{"use strict";var LF=We(),NF=Object.prototype.hasOwnProperty;function BF(e){if(e===null)return!0;var t,r=e;for(t in r)if(NF.call(r,t)&&r[t]!==null)return!1;return!0}function $F(e){return e!==null?e:{}}X0.exports=new LF("tag:yaml.org,2002:set",{kind:"mapping",resolve:BF,construct:$F})});var Eo=F((u6,Q0)=>{"use strict";Q0.exports=nl().extend({implicit:[il(),sl()],explicit:[al(),ul(),cl(),ll()]})});var dm=F((c6,pl)=>{"use strict";var tn=In(),im=Ln(),MF=O0(),jF=Eo(),Fr=Object.prototype.hasOwnProperty,Ao=1,sm=2,om=3,So=4,fl=1,qF=2,J0=3,HF=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,GF=/[\x85\u2028\u2029]/,UF=/[,\[\]\{\}]/,am=/^(?:!|!!|![a-z\-]+!)$/i,um=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Z0(e){return Object.prototype.toString.call(e)}function Ut(e){return e===10||e===13}function rn(e){return e===9||e===32}function ot(e){return e===9||e===32||e===10||e===13}function Nn(e){return e===44||e===91||e===93||e===123||e===125}function WF(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function YF(e){return e===120?2:e===117?4:e===85?8:0}function zF(e){return 48<=e&&e<=57?e-48:-1}function em(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
10
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function VF(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var cm=new Array(256),lm=new Array(256);for(en=0;en<256;en++)cm[en]=em(en)?1:0,lm[en]=em(en);var en;function KF(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||jF,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function fm(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=MF(r),new im(t,r)}function Z(e,t){throw fm(e,t)}function wo(e,t){e.onWarning&&e.onWarning.call(null,fm(e,t))}var tm={YAML:function(t,r,n){var i,s,o;t.version!==null&&Z(t,"duplication of %YAML directive"),n.length!==1&&Z(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Z(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&Z(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&wo(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&Z(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],am.test(i)||Z(t,"ill-formed tag handle (first argument) of the TAG directive"),Fr.call(t.tagMap,i)&&Z(t,'there is a previously declared suffix for "'+i+'" tag handle'),um.test(s)||Z(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Z(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Rr(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||Z(e,"expected valid JSON character");else HF.test(a)&&Z(e,"the stream contains non-printable characters");e.result+=a}}function rm(e,t,r,n){var i,s,o,a;for(tn.isObject(r)||Z(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],Fr.call(t,s)||(t[s]=r[s],n[s]=!0)}function Bn(e,t,r,n,i,s,o,a,u){var c,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,f=i.length;c<f;c+=1)Array.isArray(i[c])&&Z(e,"nested arrays are not supported inside keys"),typeof i=="object"&&Z0(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&Z0(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,f=s.length;c<f;c+=1)rm(e,t,s[c],r);else rm(e,t,s,r);else!e.json&&!Fr.call(r,i)&&Fr.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,Z(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function hl(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Z(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Te(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;rn(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Ut(i))for(hl(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&wo(e,"deficient indentation"),n}function Co(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||ot(r)))}function dl(e,t){t===1?e.result+=" ":t>1&&(e.result+=tn.repeat(`
11
- `,t-1))}function XF(e,t,r){var n,i,s,o,a,u,c,f,l=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),ot(d)||Nn(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),ot(i)||r&&Nn(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),ot(i)||r&&Nn(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),ot(n))break}else{if(e.position===e.lineStart&&Co(e)||r&&Nn(d))break;if(Ut(d))if(u=e.line,c=e.lineStart,f=e.lineIndent,Te(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=c,e.lineIndent=f;break}}a&&(Rr(e,s,o,!1),dl(e,e.line-u),s=o=e.position,a=!1),rn(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Rr(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function QF(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Rr(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Ut(r)?(Rr(e,n,i,!0),dl(e,Te(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Co(e)?Z(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Z(e,"unexpected end of the stream within a single quoted scalar")}function JF(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Rr(e,r,e.position,!0),e.position++,!0;if(a===92){if(Rr(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Ut(a))Te(e,!1,t);else if(a<256&&cm[a])e.result+=lm[a],e.position++;else if((o=YF(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=WF(a))>=0?s=(s<<4)+o:Z(e,"expected hexadecimal character");e.result+=VF(s),e.position++}else Z(e,"unknown escape sequence");r=n=e.position}else Ut(a)?(Rr(e,r,n,!0),dl(e,Te(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Co(e)?Z(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Z(e,"unexpected end of the stream within a double quoted scalar")}function ZF(e,t){var r=!0,n,i,s,o=e.tag,a,u=e.anchor,c,f,l,h,d,g=Object.create(null),S,w,k,_;if(_=e.input.charCodeAt(e.position),_===91)f=93,d=!1,a=[];else if(_===123)f=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),_=e.input.charCodeAt(++e.position);_!==0;){if(Te(e,!0,t),_=e.input.charCodeAt(e.position),_===f)return e.position++,e.tag=o,e.anchor=u,e.kind=d?"mapping":"sequence",e.result=a,!0;r?_===44&&Z(e,"expected the node content, but found ','"):Z(e,"missed comma between flow collection entries"),w=S=k=null,l=h=!1,_===63&&(c=e.input.charCodeAt(e.position+1),ot(c)&&(l=h=!0,e.position++,Te(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,$n(e,t,Ao,!1,!0),w=e.tag,S=e.result,Te(e,!0,t),_=e.input.charCodeAt(e.position),(h||e.line===n)&&_===58&&(l=!0,_=e.input.charCodeAt(++e.position),Te(e,!0,t),$n(e,t,Ao,!1,!0),k=e.result),d?Bn(e,a,g,w,S,k,n,i,s):l?a.push(Bn(e,null,g,w,S,k,n,i,s)):a.push(S),Te(e,!0,t),_=e.input.charCodeAt(e.position),_===44?(r=!0,_=e.input.charCodeAt(++e.position)):r=!1}Z(e,"unexpected end of the stream within a flow collection")}function ek(e,t){var r,n,i=fl,s=!1,o=!1,a=t,u=0,c=!1,f,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)fl===i?i=l===43?J0:qF:Z(e,"repeat of a chomping mode identifier");else if((f=zF(l))>=0)f===0?Z(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Z(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(rn(l)){do l=e.input.charCodeAt(++e.position);while(rn(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!Ut(l)&&l!==0)}for(;l!==0;){for(hl(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Ut(l)){u++;continue}if(e.lineIndent<a){i===J0?e.result+=tn.repeat(`
12
- `,s?1+u:u):i===fl&&s&&(e.result+=`
13
- `);break}for(n?rn(l)?(c=!0,e.result+=tn.repeat(`
14
- `,s?1+u:u)):c?(c=!1,e.result+=tn.repeat(`
15
- `,u+1)):u===0?s&&(e.result+=" "):e.result+=tn.repeat(`
16
- `,u):e.result+=tn.repeat(`
17
- `,s?1+u:u),s=!0,o=!0,u=0,r=e.position;!Ut(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Rr(e,r,e.position,!1)}return!0}function nm(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Z(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!ot(o))));){if(a=!0,e.position++,Te(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,$n(e,t,om,!1,!0),s.push(e.result),Te(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)Z(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function tk(e,t,r){var n,i,s,o,a,u,c=e.tag,f=e.anchor,l={},h=Object.create(null),d=null,g=null,S=null,w=!1,k=!1,_;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),_=e.input.charCodeAt(e.position);_!==0;){if(!w&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Z(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(_===63||_===58)&&ot(n))_===63?(w&&(Bn(e,l,h,d,g,null,o,a,u),d=g=S=null),k=!0,w=!0,i=!0):w?(w=!1,i=!0):Z(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,_=n;else{if(o=e.line,a=e.lineStart,u=e.position,!$n(e,r,sm,!1,!0))break;if(e.line===s){for(_=e.input.charCodeAt(e.position);rn(_);)_=e.input.charCodeAt(++e.position);if(_===58)_=e.input.charCodeAt(++e.position),ot(_)||Z(e,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(Bn(e,l,h,d,g,null,o,a,u),d=g=S=null),k=!0,w=!1,i=!1,d=e.tag,g=e.result;else if(k)Z(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=f,!0}else if(k)Z(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(w&&(o=e.line,a=e.lineStart,u=e.position),$n(e,t,So,!0,i)&&(w?g=e.result:S=e.result),w||(Bn(e,l,h,d,g,S,o,a,u),d=g=S=null),Te(e,!0,-1),_=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&_!==0)Z(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return w&&Bn(e,l,h,d,g,null,o,a,u),k&&(e.tag=c,e.anchor=f,e.kind="mapping",e.result=l),k}function rk(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&Z(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):Z(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ot(o);)o===33&&(n?Z(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),am.test(i)||Z(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),UF.test(s)&&Z(e,"tag suffix cannot contain flow indicator characters")}s&&!um.test(s)&&Z(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Z(e,"tag name is malformed: "+s)}return r?e.tag=s:Fr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:Z(e,'undeclared tag handle "'+i+'"'),!0}function nk(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Z(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!ot(r)&&!Nn(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Z(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ik(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!ot(n)&&!Nn(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Z(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Fr.call(e.anchorMap,r)||Z(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Te(e,!0,-1),!0}function $n(e,t,r,n,i){var s,o,a,u=1,c=!1,f=!1,l,h,d,g,S,w;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=So===r||om===r,n&&Te(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;rk(e)||nk(e);)Te(e,!0,-1)?(c=!0,a=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||So===r)&&(Ao===r||sm===r?S=t:S=t+1,w=e.position-e.lineStart,u===1?a&&(nm(e,w)||tk(e,w,S))||ZF(e,S)?f=!0:(o&&ek(e,S)||QF(e,S)||JF(e,S)?f=!0:ik(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&Z(e,"alias node should not have any properties")):XF(e,S,Ao===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=a&&nm(e,w))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Z(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(g=e.implicitTypes[l],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Fr.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,h=d.length;l<h;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){g=d[l];break}g||Z(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&Z(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Z(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function sk(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Te(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!ot(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&Z(e,"directive name must not be less than one character in length");o!==0;){for(;rn(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Ut(o));break}if(Ut(o))break;for(r=e.position;o!==0&&!ot(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&hl(e),Fr.call(tm,n)?tm[n](e,n,i):wo(e,'unknown document directive "'+n+'"')}if(Te(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Te(e,!0,-1)):s&&Z(e,"directives end mark is expected"),$n(e,e.lineIndent-1,So,!1,!0),Te(e,!0,-1),e.checkLineBreaks&&GF.test(e.input.slice(t,e.position))&&wo(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Co(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Te(e,!0,-1));return}if(e.position<e.length-1)Z(e,"end of the stream or a document separator is expected");else return}function hm(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
18
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new KF(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,Z(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)sk(r);return r.documents}function ok(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=hm(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function ak(e,t){var r=hm(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new im("expected a single document in the stream, but found more")}}pl.exports.loadAll=ok;pl.exports.load=ak});var Im=F((l6,Tm)=>{"use strict";var bo=In(),ji=Ln(),uk=Eo(),wm=Object.prototype.toString,Cm=Object.prototype.hasOwnProperty,El=65279,ck=9,Bi=10,lk=13,fk=32,hk=33,dk=34,gl=35,pk=37,gk=38,mk=39,yk=42,_m=44,vk=45,_o=58,Ek=61,Ak=62,Sk=63,wk=64,xm=91,bm=93,Ck=96,Om=123,_k=124,Rm=125,Ye={};Ye[0]="\\0";Ye[7]="\\a";Ye[8]="\\b";Ye[9]="\\t";Ye[10]="\\n";Ye[11]="\\v";Ye[12]="\\f";Ye[13]="\\r";Ye[27]="\\e";Ye[34]='\\"';Ye[92]="\\\\";Ye[133]="\\N";Ye[160]="\\_";Ye[8232]="\\L";Ye[8233]="\\P";var xk=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],bk=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ok(e,t){var r,n,i,s,o,a,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&Cm.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function Rk(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new ji("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+bo.repeat("0",n-t.length)+t}var Fk=1,$i=2;function kk(e){this.schema=e.schema||uk,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=bo.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Ok(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?$i:Fk,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function pm(e,t){for(var r=bo.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
11
+ `+e.mark.snippet),n+" "+r):n}function ss(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=hy(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ss.prototype=Object.create(Error.prototype);ss.prototype.constructor=ss;ss.prototype.toString=function(t){return this.name+": "+hy(this,t)};py.exports=ss});var gy=R((y8,dy)=>{"use strict";var os=oi();function Ql(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function Zl(e,t){return os.repeat(" ",t-e.length)+e}function YF(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",c,u,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)u=Ql(e.buffer,n[o-c],i[o-c],e.position-(n[o]-n[o-c]),l),a=os.repeat(" ",t.indent)+Zl((e.line-c+1).toString(),f)+" | "+u.str+`
12
+ `+a;for(u=Ql(e.buffer,n[o],i[o],e.position,l),a+=os.repeat(" ",t.indent)+Zl((e.line+1).toString(),f)+" | "+u.str+`
13
+ `,a+=os.repeat("-",t.indent+f+3+u.pos)+`^
14
+ `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)u=Ql(e.buffer,n[o+c],i[o+c],e.position-(n[o]-n[o+c]),l),a+=os.repeat(" ",t.indent)+Zl((e.line+c+1).toString(),f)+" | "+u.str+`
15
+ `;return a.replace(/\n$/,"")}dy.exports=YF});var rt=R((v8,yy)=>{"use strict";var my=ai(),zF=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],VF=["scalar","sequence","mapping"];function KF(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function XF(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(zF.indexOf(r)===-1)throw new my('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=KF(t.styleAliases||null),VF.indexOf(this.kind)===-1)throw new my('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}yy.exports=XF});var rf=R((A8,Ay)=>{"use strict";var as=ai(),ef=rt();function vy(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function JF(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function tf(e){return this.extend(e)}tf.prototype.extend=function(t){var r=[],n=[];if(t instanceof ef)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new as("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof ef))throw new as("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new as("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new as("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof ef))throw new as("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(tf.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=vy(i,"implicit"),i.compiledExplicit=vy(i,"explicit"),i.compiledTypeMap=JF(i.compiledImplicit,i.compiledExplicit),i};Ay.exports=tf});var nf=R((E8,Ey)=>{"use strict";var QF=rt();Ey.exports=new QF("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var sf=R((w8,wy)=>{"use strict";var ZF=rt();wy.exports=new ZF("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var of=R((S8,Sy)=>{"use strict";var eL=rt();Sy.exports=new eL("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var af=R((b8,by)=>{"use strict";var tL=rf();by.exports=new tL({explicit:[nf(),sf(),of()]})});var uf=R((C8,Cy)=>{"use strict";var rL=rt();function nL(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function iL(){return null}function sL(e){return e===null}Cy.exports=new rL("tag:yaml.org,2002:null",{kind:"scalar",resolve:nL,construct:iL,predicate:sL,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var cf=R((x8,xy)=>{"use strict";var oL=rt();function aL(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function uL(e){return e==="true"||e==="True"||e==="TRUE"}function cL(e){return Object.prototype.toString.call(e)==="[object Boolean]"}xy.exports=new oL("tag:yaml.org,2002:bool",{kind:"scalar",resolve:aL,construct:uL,predicate:cL,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var lf=R((P8,Py)=>{"use strict";var lL=oi(),fL=rt();function hL(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function pL(e){return 48<=e&&e<=55}function dL(e){return 48<=e&&e<=57}function gL(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!hL(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!pL(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!dL(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function mL(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function yL(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!lL.isNegativeZero(e)}Py.exports=new fL("tag:yaml.org,2002:int",{kind:"scalar",resolve:gL,construct:mL,predicate:yL,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var ff=R((O8,Ry)=>{"use strict";var Oy=oi(),vL=rt(),AL=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function EL(e){return!(e===null||!AL.test(e)||e[e.length-1]==="_")}function wL(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var SL=/^[-+]?[0-9]+e/;function bL(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Oy.isNegativeZero(e))return"-0.0";return r=e.toString(10),SL.test(r)?r.replace("e",".e"):r}function CL(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Oy.isNegativeZero(e))}Ry.exports=new vL("tag:yaml.org,2002:float",{kind:"scalar",resolve:EL,construct:wL,predicate:CL,represent:bL,defaultStyle:"lowercase"})});var hf=R((R8,_y)=>{"use strict";_y.exports=af().extend({implicit:[uf(),cf(),lf(),ff()]})});var pf=R((_8,ky)=>{"use strict";ky.exports=hf()});var df=R((k8,Ly)=>{"use strict";var xL=rt(),Dy=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Fy=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function PL(e){return e===null?!1:Dy.exec(e)!==null||Fy.exec(e)!==null}function OL(e){var t,r,n,i,s,o,a,c=0,u=null,f,l,h;if(t=Dy.exec(e),t===null&&(t=Fy.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(f=+t[10],l=+(t[11]||0),u=(f*60+l)*6e4,t[9]==="-"&&(u=-u)),h=new Date(Date.UTC(r,n,i,s,o,a,c)),u&&h.setTime(h.getTime()-u),h}function RL(e){return e.toISOString()}Ly.exports=new xL("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:PL,construct:OL,instanceOf:Date,represent:RL})});var gf=R((D8,Ty)=>{"use strict";var _L=rt();function kL(e){return e==="<<"||e===null}Ty.exports=new _L("tag:yaml.org,2002:merge",{kind:"scalar",resolve:kL})});var yf=R((F8,Ny)=>{"use strict";var DL=rt(),mf=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
16
+ \r`;function FL(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=mf;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function LL(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=mf,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function TL(e){var t="",r=0,n,i,s=e.length,o=mf;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function NL(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}Ny.exports=new DL("tag:yaml.org,2002:binary",{kind:"scalar",resolve:FL,construct:LL,predicate:NL,represent:TL})});var vf=R((L8,Iy)=>{"use strict";var IL=rt(),$L=Object.prototype.hasOwnProperty,BL=Object.prototype.toString;function ML(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,BL.call(i)!=="[object Object]")return!1;for(s in i)if($L.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function jL(e){return e!==null?e:[]}Iy.exports=new IL("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ML,construct:jL})});var Af=R((T8,$y)=>{"use strict";var qL=rt(),WL=Object.prototype.toString;function GL(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],WL.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function UL(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}$y.exports=new qL("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:GL,construct:UL})});var Ef=R((N8,By)=>{"use strict";var HL=rt(),YL=Object.prototype.hasOwnProperty;function zL(e){if(e===null)return!0;var t,r=e;for(t in r)if(YL.call(r,t)&&r[t]!==null)return!1;return!0}function VL(e){return e!==null?e:{}}By.exports=new HL("tag:yaml.org,2002:set",{kind:"mapping",resolve:zL,construct:VL})});var ca=R((I8,My)=>{"use strict";My.exports=pf().extend({implicit:[df(),gf()],explicit:[yf(),vf(),Af(),Ef()]})});var tv=R(($8,Cf)=>{"use strict";var On=oi(),Yy=ai(),KL=gy(),XL=ca(),an=Object.prototype.hasOwnProperty,la=1,zy=2,Vy=3,fa=4,wf=1,JL=2,jy=3,QL=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ZL=/[\x85\u2028\u2029]/,eT=/[,\[\]\{\}]/,Ky=/^(?:!|!!|![a-z\-]+!)$/i,Xy=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function qy(e){return Object.prototype.toString.call(e)}function gr(e){return e===10||e===13}function Rn(e){return e===9||e===32}function bt(e){return e===9||e===32||e===10||e===13}function ui(e){return e===44||e===91||e===93||e===123||e===125}function tT(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function rT(e){return e===120?2:e===117?4:e===85?8:0}function nT(e){return 48<=e&&e<=57?e-48:-1}function Wy(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
17
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function iT(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Jy=new Array(256),Qy=new Array(256);for(Pn=0;Pn<256;Pn++)Jy[Pn]=Wy(Pn)?1:0,Qy[Pn]=Wy(Pn);var Pn;function sT(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||XL,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Zy(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=KL(r),new Yy(t,r)}function ee(e,t){throw Zy(e,t)}function ha(e,t){e.onWarning&&e.onWarning.call(null,Zy(e,t))}var Gy={YAML:function(t,r,n){var i,s,o;t.version!==null&&ee(t,"duplication of %YAML directive"),n.length!==1&&ee(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ee(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&ee(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&ha(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&ee(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Ky.test(i)||ee(t,"ill-formed tag handle (first argument) of the TAG directive"),an.call(t.tagMap,i)&&ee(t,'there is a previously declared suffix for "'+i+'" tag handle'),Xy.test(s)||ee(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ee(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function on(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||ee(e,"expected valid JSON character");else QL.test(a)&&ee(e,"the stream contains non-printable characters");e.result+=a}}function Uy(e,t,r,n){var i,s,o,a;for(On.isObject(r)||ee(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],an.call(t,s)||(t[s]=r[s],n[s]=!0)}function ci(e,t,r,n,i,s,o,a,c){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&ee(e,"nested arrays are not supported inside keys"),typeof i=="object"&&qy(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&qy(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,f=s.length;u<f;u+=1)Uy(e,t,s[u],r);else Uy(e,t,s,r);else!e.json&&!an.call(r,i)&&an.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,ee(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function Sf(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ee(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Be(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Rn(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(gr(i))for(Sf(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&ha(e,"deficient indentation"),n}function pa(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||bt(r)))}function bf(e,t){t===1?e.result+=" ":t>1&&(e.result+=On.repeat(`
18
+ `,t-1))}function oT(e,t,r){var n,i,s,o,a,c,u,f,l=e.kind,h=e.result,p;if(p=e.input.charCodeAt(e.position),bt(p)||ui(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),bt(i)||r&&ui(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),bt(i)||r&&ui(i))break}else if(p===35){if(n=e.input.charCodeAt(e.position-1),bt(n))break}else{if(e.position===e.lineStart&&pa(e)||r&&ui(p))break;if(gr(p))if(c=e.line,u=e.lineStart,f=e.lineIndent,Be(e,!1,-1),e.lineIndent>=t){a=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=u,e.lineIndent=f;break}}a&&(on(e,s,o,!1),bf(e,e.line-c),s=o=e.position,a=!1),Rn(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return on(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function aT(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(on(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else gr(r)?(on(e,n,i,!0),bf(e,Be(e,!1,t)),n=i=e.position):e.position===e.lineStart&&pa(e)?ee(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ee(e,"unexpected end of the stream within a single quoted scalar")}function uT(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return on(e,r,e.position,!0),e.position++,!0;if(a===92){if(on(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),gr(a))Be(e,!1,t);else if(a<256&&Jy[a])e.result+=Qy[a],e.position++;else if((o=rT(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=tT(a))>=0?s=(s<<4)+o:ee(e,"expected hexadecimal character");e.result+=iT(s),e.position++}else ee(e,"unknown escape sequence");r=n=e.position}else gr(a)?(on(e,r,n,!0),bf(e,Be(e,!1,t)),r=n=e.position):e.position===e.lineStart&&pa(e)?ee(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ee(e,"unexpected end of the stream within a double quoted scalar")}function cT(e,t){var r=!0,n,i,s,o=e.tag,a,c=e.anchor,u,f,l,h,p,d=Object.create(null),m,v,P,C;if(C=e.input.charCodeAt(e.position),C===91)f=93,p=!1,a=[];else if(C===123)f=125,p=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),C=e.input.charCodeAt(++e.position);C!==0;){if(Be(e,!0,t),C=e.input.charCodeAt(e.position),C===f)return e.position++,e.tag=o,e.anchor=c,e.kind=p?"mapping":"sequence",e.result=a,!0;r?C===44&&ee(e,"expected the node content, but found ','"):ee(e,"missed comma between flow collection entries"),v=m=P=null,l=h=!1,C===63&&(u=e.input.charCodeAt(e.position+1),bt(u)&&(l=h=!0,e.position++,Be(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,li(e,t,la,!1,!0),v=e.tag,m=e.result,Be(e,!0,t),C=e.input.charCodeAt(e.position),(h||e.line===n)&&C===58&&(l=!0,C=e.input.charCodeAt(++e.position),Be(e,!0,t),li(e,t,la,!1,!0),P=e.result),p?ci(e,a,d,v,m,P,n,i,s):l?a.push(ci(e,null,d,v,m,P,n,i,s)):a.push(m),Be(e,!0,t),C=e.input.charCodeAt(e.position),C===44?(r=!0,C=e.input.charCodeAt(++e.position)):r=!1}ee(e,"unexpected end of the stream within a flow collection")}function lT(e,t){var r,n,i=wf,s=!1,o=!1,a=t,c=0,u=!1,f,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)wf===i?i=l===43?jy:JL:ee(e,"repeat of a chomping mode identifier");else if((f=nT(l))>=0)f===0?ee(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ee(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(Rn(l)){do l=e.input.charCodeAt(++e.position);while(Rn(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!gr(l)&&l!==0)}for(;l!==0;){for(Sf(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),gr(l)){c++;continue}if(e.lineIndent<a){i===jy?e.result+=On.repeat(`
19
+ `,s?1+c:c):i===wf&&s&&(e.result+=`
20
+ `);break}for(n?Rn(l)?(u=!0,e.result+=On.repeat(`
21
+ `,s?1+c:c)):u?(u=!1,e.result+=On.repeat(`
22
+ `,c+1)):c===0?s&&(e.result+=" "):e.result+=On.repeat(`
23
+ `,c):e.result+=On.repeat(`
24
+ `,s?1+c:c),s=!0,o=!0,c=0,r=e.position;!gr(l)&&l!==0;)l=e.input.charCodeAt(++e.position);on(e,r,e.position,!1)}return!0}function Hy(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ee(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!bt(o))));){if(a=!0,e.position++,Be(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,li(e,t,Vy,!1,!0),s.push(e.result),Be(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)ee(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function fT(e,t,r){var n,i,s,o,a,c,u=e.tag,f=e.anchor,l={},h=Object.create(null),p=null,d=null,m=null,v=!1,P=!1,C;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),C=e.input.charCodeAt(e.position);C!==0;){if(!v&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ee(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(C===63||C===58)&&bt(n))C===63?(v&&(ci(e,l,h,p,d,null,o,a,c),p=d=m=null),P=!0,v=!0,i=!0):v?(v=!1,i=!0):ee(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,C=n;else{if(o=e.line,a=e.lineStart,c=e.position,!li(e,r,zy,!1,!0))break;if(e.line===s){for(C=e.input.charCodeAt(e.position);Rn(C);)C=e.input.charCodeAt(++e.position);if(C===58)C=e.input.charCodeAt(++e.position),bt(C)||ee(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(ci(e,l,h,p,d,null,o,a,c),p=d=m=null),P=!0,v=!1,i=!1,p=e.tag,d=e.result;else if(P)ee(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(P)ee(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(v&&(o=e.line,a=e.lineStart,c=e.position),li(e,t,fa,!0,i)&&(v?d=e.result:m=e.result),v||(ci(e,l,h,p,d,m,o,a,c),p=d=m=null),Be(e,!0,-1),C=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&C!==0)ee(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&ci(e,l,h,p,d,null,o,a,c),P&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=l),P}function hT(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ee(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ee(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!bt(o);)o===33&&(n?ee(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Ky.test(i)||ee(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),eT.test(s)&&ee(e,"tag suffix cannot contain flow indicator characters")}s&&!Xy.test(s)&&ee(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ee(e,"tag name is malformed: "+s)}return r?e.tag=s:an.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ee(e,'undeclared tag handle "'+i+'"'),!0}function pT(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ee(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!bt(r)&&!ui(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function dT(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!bt(n)&&!ui(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),an.call(e.anchorMap,r)||ee(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Be(e,!0,-1),!0}function li(e,t,r,n,i){var s,o,a,c=1,u=!1,f=!1,l,h,p,d,m,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=fa===r||Vy===r,n&&Be(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;hT(e)||pT(e);)Be(e,!0,-1)?(u=!0,a=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=u||i),(c===1||fa===r)&&(la===r||zy===r?m=t:m=t+1,v=e.position-e.lineStart,c===1?a&&(Hy(e,v)||fT(e,v,m))||cT(e,m)?f=!0:(o&&lT(e,m)||aT(e,m)||uT(e,m)?f=!0:dT(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&ee(e,"alias node should not have any properties")):oT(e,m,la===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(f=a&&Hy(e,v))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ee(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(d=e.implicitTypes[l],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(an.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,p=e.typeMap.multi[e.kind||"fallback"],l=0,h=p.length;l<h;l+=1)if(e.tag.slice(0,p[l].tag.length)===p[l].tag){d=p[l];break}d||ee(e,"unknown tag !<"+e.tag+">"),e.result!==null&&d.kind!==e.kind&&ee(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ee(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function gT(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Be(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!bt(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ee(e,"directive name must not be less than one character in length");o!==0;){for(;Rn(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!gr(o));break}if(gr(o))break;for(r=e.position;o!==0&&!bt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&Sf(e),an.call(Gy,n)?Gy[n](e,n,i):ha(e,'unknown document directive "'+n+'"')}if(Be(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Be(e,!0,-1)):s&&ee(e,"directives end mark is expected"),li(e,e.lineIndent-1,fa,!1,!0),Be(e,!0,-1),e.checkLineBreaks&&ZL.test(e.input.slice(t,e.position))&&ha(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&pa(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Be(e,!0,-1));return}if(e.position<e.length-1)ee(e,"end of the stream or a document separator is expected");else return}function ev(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
25
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new sT(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ee(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)gT(r);return r.documents}function mT(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=ev(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function yT(e,t){var r=ev(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Yy("expected a single document in the stream, but found more")}}Cf.exports.loadAll=mT;Cf.exports.load=yT});var Sv=R((B8,wv)=>{"use strict";var ma=oi(),hs=ai(),vT=ca(),lv=Object.prototype.toString,fv=Object.prototype.hasOwnProperty,_f=65279,AT=9,cs=10,ET=13,wT=32,ST=33,bT=34,xf=35,CT=37,xT=38,PT=39,OT=42,hv=44,RT=45,da=58,_T=61,kT=62,DT=63,FT=64,pv=91,dv=93,LT=96,gv=123,TT=124,mv=125,nt={};nt[0]="\\0";nt[7]="\\a";nt[8]="\\b";nt[9]="\\t";nt[10]="\\n";nt[11]="\\v";nt[12]="\\f";nt[13]="\\r";nt[27]="\\e";nt[34]='\\"';nt[92]="\\\\";nt[133]="\\N";nt[160]="\\_";nt[8232]="\\L";nt[8233]="\\P";var NT=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],IT=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function $T(e,t){var r,n,i,s,o,a,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&fv.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function BT(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new hs("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ma.repeat("0",n-t.length)+t}var MT=1,ls=2;function jT(e){this.schema=e.schema||vT,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ma.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=$T(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?ls:MT,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function rv(e,t){for(var r=ma.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
19
26
  `,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
20
- `&&(s+=r),s+=o;return s}function ml(e,t){return`
21
- `+bo.repeat(" ",e.indent*t)}function Pk(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function xo(e){return e===fk||e===ck}function Mi(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==El||65536<=e&&e<=1114111}function gm(e){return Mi(e)&&e!==El&&e!==lk&&e!==Bi}function mm(e,t,r){var n=gm(e),i=n&&!xo(e);return(r?n:n&&e!==_m&&e!==xm&&e!==bm&&e!==Om&&e!==Rm)&&e!==gl&&!(t===_o&&!i)||gm(t)&&!xo(t)&&e===gl||t===_o&&i}function Dk(e){return Mi(e)&&e!==El&&!xo(e)&&e!==vk&&e!==Sk&&e!==_o&&e!==_m&&e!==xm&&e!==bm&&e!==Om&&e!==Rm&&e!==gl&&e!==gk&&e!==yk&&e!==hk&&e!==_k&&e!==Ek&&e!==Ak&&e!==mk&&e!==dk&&e!==pk&&e!==wk&&e!==Ck}function Tk(e){return!xo(e)&&e!==_o}function Ni(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function Fm(e){var t=/^\n* /;return t.test(e)}var km=1,yl=2,Pm=3,Dm=4,Mn=5;function Ik(e,t,r,n,i,s,o,a){var u,c=0,f=null,l=!1,h=!1,d=n!==-1,g=-1,S=Dk(Ni(e,0))&&Tk(Ni(e,e.length-1));if(t||o)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Ni(e,u),!Mi(c))return Mn;S=S&&mm(c,f,a),f=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Ni(e,u),c===Bi)l=!0,d&&(h=h||u-g-1>n&&e[g+1]!==" ",g=u);else if(!Mi(c))return Mn;S=S&&mm(c,f,a),f=c}h=h||d&&u-g-1>n&&e[g+1]!==" "}return!l&&!h?S&&!o&&!i(e)?km:s===$i?Mn:yl:r>9&&Fm(e)?Mn:o?s===$i?Mn:yl:h?Dm:Pm}function Lk(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===$i?'""':"''";if(!e.noCompatMode&&(xk.indexOf(t)!==-1||bk.test(t)))return e.quotingType===$i?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return Pk(e,c)}switch(Ik(t,a,e.indent,o,u,e.quotingType,e.forceQuotes&&!n,i)){case km:return t;case yl:return"'"+t.replace(/'/g,"''")+"'";case Pm:return"|"+ym(t,e.indent)+vm(pm(t,s));case Dm:return">"+ym(t,e.indent)+vm(pm(Nk(t,o),s));case Mn:return'"'+Bk(t,o)+'"';default:throw new ji("impossible error: invalid scalar style")}}()}function ym(e,t){var r=Fm(e)?String(t):"",n=e[e.length-1]===`
27
+ `&&(s+=r),s+=o;return s}function Pf(e,t){return`
28
+ `+ma.repeat(" ",e.indent*t)}function qT(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function ga(e){return e===wT||e===AT}function fs(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==_f||65536<=e&&e<=1114111}function nv(e){return fs(e)&&e!==_f&&e!==ET&&e!==cs}function iv(e,t,r){var n=nv(e),i=n&&!ga(e);return(r?n:n&&e!==hv&&e!==pv&&e!==dv&&e!==gv&&e!==mv)&&e!==xf&&!(t===da&&!i)||nv(t)&&!ga(t)&&e===xf||t===da&&i}function WT(e){return fs(e)&&e!==_f&&!ga(e)&&e!==RT&&e!==DT&&e!==da&&e!==hv&&e!==pv&&e!==dv&&e!==gv&&e!==mv&&e!==xf&&e!==xT&&e!==OT&&e!==ST&&e!==TT&&e!==_T&&e!==kT&&e!==PT&&e!==bT&&e!==CT&&e!==FT&&e!==LT}function GT(e){return!ga(e)&&e!==da}function us(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function yv(e){var t=/^\n* /;return t.test(e)}var vv=1,Of=2,Av=3,Ev=4,fi=5;function UT(e,t,r,n,i,s,o,a){var c,u=0,f=null,l=!1,h=!1,p=n!==-1,d=-1,m=WT(us(e,0))&&GT(us(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=us(e,c),!fs(u))return fi;m=m&&iv(u,f,a),f=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=us(e,c),u===cs)l=!0,p&&(h=h||c-d-1>n&&e[d+1]!==" ",d=c);else if(!fs(u))return fi;m=m&&iv(u,f,a),f=u}h=h||p&&c-d-1>n&&e[d+1]!==" "}return!l&&!h?m&&!o&&!i(e)?vv:s===ls?fi:Of:r>9&&yv(e)?fi:o?s===ls?fi:Of:h?Ev:Av}function HT(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===ls?'""':"''";if(!e.noCompatMode&&(NT.indexOf(t)!==-1||IT.test(t)))return e.quotingType===ls?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return qT(e,u)}switch(UT(t,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!n,i)){case vv:return t;case Of:return"'"+t.replace(/'/g,"''")+"'";case Av:return"|"+sv(t,e.indent)+ov(rv(t,s));case Ev:return">"+sv(t,e.indent)+ov(rv(YT(t,o),s));case fi:return'"'+zT(t,o)+'"';default:throw new hs("impossible error: invalid scalar style")}}()}function sv(e,t){var r=yv(e)?String(t):"",n=e[e.length-1]===`
22
29
  `,i=n&&(e[e.length-2]===`
23
30
  `||e===`
24
31
  `),s=i?"+":n?"":"-";return r+s+`
25
- `}function vm(e){return e[e.length-1]===`
26
- `?e.slice(0,-1):e}function Nk(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
27
- `);return c=c!==-1?c:e.length,r.lastIndex=c,Em(e.slice(0,c),t)}(),i=e[0]===`
28
- `||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],u=o[2];s=u[0]===" ",n+=a+(!i&&!s&&u!==""?`
29
- `:"")+Em(u,t),i=s}return n}function Em(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,u="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,u+=`
30
- `+e.slice(i,s),i=s+1),o=a;return u+=`
31
- `,e.length-i>t&&o>i?u+=e.slice(i,o)+`
32
- `+e.slice(o+1):u+=e.slice(i),u.slice(1)}function Bk(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=Ni(e,i),n=Ye[r],!n&&Mi(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||Rk(r);return t}function $k(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(rr(e,t,a,!1,!1)||typeof a>"u"&&rr(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function Am(e,t,r,n){var i="",s=e.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],e.replacer&&(u=e.replacer.call(r,String(o),u)),(rr(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&rr(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=ml(e,t)),e.dump&&Bi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function Mk(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,u,c,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[o],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),rr(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),rr(e,t,c,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function jk(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,u,c,f,l,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new ji("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)h="",(!n||i!=="")&&(h+=ml(e,t)),c=o[a],f=r[c],e.replacer&&(f=e.replacer.call(r,c,f)),rr(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&Bi===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=ml(e,t)),rr(e,t+1,f,!0,l)&&(e.dump&&Bi===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function Sm(e,t,r){var n,i,s,o,a,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(u=e.styleMap[a.tag]||a.defaultStyle,wm.call(a.represent)==="[object Function]")n=a.represent(t,u);else if(Cm.call(a.represent,u))n=a.represent[u](t,u);else throw new ji("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function rr(e,t,r,n,i,s,o){e.tag=null,e.dump=r,Sm(e,r,!1)||Sm(e,r,!0);var a=wm.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",l,h;if(f&&(l=e.duplicates.indexOf(r),h=l!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(jk(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(Mk(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?Am(e,t-1,e.dump,i):Am(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):($k(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&Lk(e,e.dump,t,s,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ji("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function qk(e,t){var r=[],n=[],i,s;for(vl(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function vl(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)vl(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)vl(e[n[i]],t,r)}function Hk(e,t){t=t||{};var r=new kk(t);r.noRefs||qk(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),rr(r,0,n,!0,!0)?r.dump+`
33
- `:""}Tm.exports.dump=Hk});var Nm=F((f6,et)=>{"use strict";var Lm=dm(),Gk=Im();function Al(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}et.exports.Type=We();et.exports.Schema=zc();et.exports.FAILSAFE_SCHEMA=Qc();et.exports.JSON_SCHEMA=rl();et.exports.CORE_SCHEMA=nl();et.exports.DEFAULT_SCHEMA=Eo();et.exports.load=Lm.load;et.exports.loadAll=Lm.loadAll;et.exports.dump=Gk.dump;et.exports.YAMLException=Ln();et.exports.types={binary:al(),float:tl(),map:Xc(),null:Jc(),pairs:cl(),set:ll(),timestamp:il(),bool:Zc(),int:el(),merge:sl(),omap:ul(),seq:Kc(),str:Vc()};et.exports.safeLoad=Al("safeLoad","load");et.exports.safeLoadAll=Al("safeLoadAll","loadAll");et.exports.safeDump=Al("safeDump","dump")});var Sl=F(jn=>{"use strict";var Uk=jn&&jn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jn,"__esModule",{value:!0});jn.readYaml=void 0;var Wk=Uk(M("fs"));function Yk(e){let t=Nm(),r=Wk.default.readFileSync(e,"utf8");return t.load(r)}jn.readYaml=Yk});var Oo=F(kr=>{"use strict";var Bm=kr&&kr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kr,"__esModule",{value:!0});kr.getPnpmWorkspaces=kr.getPnpmWorkspaceRoot=void 0;var $m=Bm(M("path")),zk=Bm(Cn()),Vk=yo(),Kk=Di(),Xk=Sl();function Mm(e){let t=zk.default.sync("pnpm-workspace.yaml",{cwd:e});if(!t)throw new Error("Could not find pnpm workspaces root");return $m.default.dirname(t)}kr.getPnpmWorkspaceRoot=Mm;function Qk(e){try{let t=Mm(e),r=$m.default.join(t,"pnpm-workspace.yaml"),n=(0,Xk.readYaml)(r),i=(0,Vk.getPackagePaths)(t,n.packages);return(0,Kk.getWorkspacePackageInfo)(i)}catch{return[]}}kr.getPnpmWorkspaces=Qk});var wl=F((p6,Wt)=>{var jm=Wt.exports;Wt.exports.isWhiteSpace=function(t){return t===" "||t==="\xA0"||t==="\uFEFF"||t>=" "&&t<="\r"||t==="\u1680"||t>="\u2000"&&t<="\u200A"||t==="\u2028"||t==="\u2029"||t==="\u202F"||t==="\u205F"||t==="\u3000"};Wt.exports.isWhiteSpaceJSON=function(t){return t===" "||t===" "||t===`
34
- `||t==="\r"};Wt.exports.isLineTerminator=function(t){return t===`
35
- `||t==="\r"||t==="\u2028"||t==="\u2029"};Wt.exports.isLineTerminatorJSON=function(t){return t===`
36
- `||t==="\r"};Wt.exports.isIdentifierStart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="\x80"&&jm.NonAsciiIdentifierStart.test(t)};Wt.exports.isIdentifierPart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="0"&&t<="9"||t>="\x80"&&jm.NonAsciiIdentifierPart.test(t)};Wt.exports.NonAsciiIdentifierStart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;Wt.exports.NonAsciiIdentifierPart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/});var Hi=F((g6,Ro)=>{var nr=wl();function qn(e){return e>="0"&&e<="9"||e>="A"&&e<="F"||e>="a"&&e<="f"}function Hn(e){return e>="0"&&e<="7"}function qi(e){return e>="0"&&e<="9"}var qm={"'":"'",'"':'"',"\\":"\\",b:"\b",f:"\f",n:`
37
- `,r:"\r",t:" ",v:"\v","/":"/"};function Jk(e,t,r,n,i,s){var o=t+" at "+(n+1)+":"+(i+1),a=r-i-1,u="",c="",f=s?nr.isLineTerminator:nr.isLineTerminatorJSON;for(a<r-70&&(a=r-70);;){var l=e[++a];if(f(l)||a===e.length){r>=a&&(c+="^");break}if(u+=l,r===a?c+="^":r>a&&(c+=e[a]===" "?" ":" "),u.length>78)break}return o+`
38
- `+u+`
39
- `+c}function Zk(e,t){var r=!1,n=!1;t.legacy||t.mode==="json"||(t.mode==="cjson"?n=!0:(t.mode,r=!0));var i=r?nr.isLineTerminator:nr.isLineTerminatorJSON,s=r?nr.isWhiteSpace:nr.isWhiteSpaceJSON,o=e.length,a=0,u=0,c=0,f=[],l=function(){},h=function(x){return x};t._tokenize&&function(){var x=null;l=function(){if(x!==null)throw Error("internal error, token overlap");x=c},h=function(p,m){if(x!=c){var E={raw:e.substr(x,c-x),type:m,stack:f.slice(0)};p!==void 0&&(E.value=p),t._tokenize.call(null,E)}return x=null,p}}();function d(x){var p=c-u;if(!x)if(c<o){var m="'"+JSON.stringify(e[c]).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";x||(x="Unexpected token "+m)}else x||(x="Unexpected end of input");var E=SyntaxError(Jk(e,x,c,a,p,r));throw E.row=a+1,E.column=p+1,E}function g(x){x==="\r"&&e[c]===`
40
- `&&c++,u=c,a++}function S(){for(var x;c<o;){l();var p=e[c++];return p==='"'||p==="'"&&r?h(O(p),"literal"):p==="{"?(h(void 0,"separator"),D()):p==="["?(h(void 0,"separator"),A()):p==="-"||p==="."||qi(p)||r&&(p==="+"||p==="I"||p==="N")?h(R(),"literal"):p==="n"?(N("null"),h(null,"literal")):p==="t"?(N("true"),h(!0,"literal")):p==="f"?(N("false"),h(!1,"literal")):(c--,h(void 0))}}function w(){for(var x;c<o;){l();var p=e[c++];if(p==='"'||p==="'"&&r)return h(O(p),"key");if(p==="{")return h(void 0,"separator"),D();if(p==="[")return h(void 0,"separator"),A();if(p==="."||qi(p))return h(R(!0),"key");if(r&&nr.isIdentifierStart(p)||p==="\\"&&e[c]==="u"){var m=c-1,x=b();return x===void 0?(c=m,h(void 0)):h(x,"key")}else return c--,h(void 0)}}function k(){for(l();c<o;){var x=e[c++];if(i(x))c--,h(void 0,"whitespace"),l(),c++,g(x),h(void 0,"newline"),l();else if(!s(x))if(x==="/"&&(r||n)&&(e[c]==="/"||e[c]==="*"))c--,h(void 0,"whitespace"),l(),c++,_(e[c++]==="*"),h(void 0,"comment"),l();else{c--;break}}return h(void 0,"whitespace")}function _(x){for(;c<o;){var p=e[c++];if(i(p)){if(!x){c--;return}g(p)}else if(p==="*"&&x&&e[c]==="/"){c++;return}}x&&d("Unclosed multiline comment")}function N(x){for(var p=c,m=x.length,E=1;E<m;E++)(c>=o||x[E]!=e[c])&&(c=p-1,d()),c++}function D(){for(var x=t.null_prototype?Object.create(null):{},p={},m=!1;c<o;){k();var E=w();k(),l();var C=e[c++];if(h(void 0,"separator"),C==="}"&&E===void 0)return!r&&m&&(c--,d("Trailing comma in object")),x;if(C===":"&&E!==void 0){k(),f.push(E);var y=S();f.pop(),y===void 0&&d("No value found for key "+E),typeof E!="string"&&(!r||typeof E!="number")&&d("Wrong key type: "+E),(E in p||p[E]!=null)&&t.reserved_keys!=="replace"?t.reserved_keys==="throw"&&d("Reserved key: "+E):(typeof t.reviver=="function"&&(y=t.reviver.call(null,E,y)),y!==void 0&&(m=!0,Object.defineProperty(x,E,{value:y,enumerable:!0,configurable:!0,writable:!0}))),k(),l();var C=e[c++];if(h(void 0,"separator"),C===",")continue;if(C==="}")return x;d()}else c--,d()}d()}function A(){for(var x=[];c<o;){k(),f.push(x.length);var p=S();f.pop(),k(),l();var m=e[c++];if(h(void 0,"separator"),p!==void 0&&(typeof t.reviver=="function"&&(p=t.reviver.call(null,String(x.length),p)),p===void 0?(x.length++,p=!0):x.push(p)),m===",")p===void 0&&d("Elisions are not supported");else{if(m==="]")return!r&&p===void 0&&x.length&&(c--,d("Trailing comma in array")),x;c--,d()}}}function R(){c--;var x=c,p=e[c++],m,E=function(P){var I=e.substr(x,c-x);if(P)var L=parseInt(I.replace(/^0o?/,""),8);else var L=Number(I);if(Number.isNaN(L))c--,d('Bad numeric literal - "'+e.substr(x,c-x+1)+'"');else if(!r&&!I.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))c--,d('Non-json numeric literal - "'+e.substr(x,c-x+1)+'"');else return L};if((p==="-"||p==="+"&&r)&&(p=e[c++]),p==="N"&&r)return N("NaN"),NaN;if(p==="I"&&r)return N("Infinity"),E();if(p>="1"&&p<="9"){for(;c<o&&qi(e[c]);)c++;p=e[c++]}if(p==="0"){p=e[c++];var C=p==="o"||p==="O"||Hn(p),y=p==="x"||p==="X";if(r&&(C||y)){for(;c<o&&(y?qn:Hn)(e[c]);)c++;var v=1;return e[x]==="-"?(v=-1,x++):e[x]==="+"&&x++,v*E(C)}}if(p==="."){for(;c<o&&qi(e[c]);)c++;p=e[c++]}if(p==="e"||p==="E"){for(p=e[c++],(p==="-"||p==="+")&&c++;c<o&&qi(e[c]);)c++;p=e[c++]}return c--,E()}function b(){c--;for(var x="";c<o;){var p=e[c++];if(p==="\\"&&e[c]==="u"&&qn(e[c+1])&&qn(e[c+2])&&qn(e[c+3])&&qn(e[c+4])&&(p=String.fromCharCode(parseInt(e.substr(c+1,4),16)),c+=5),x.length)if(nr.isIdentifierPart(p))x+=p;else return c--,x;else if(nr.isIdentifierStart(p))x+=p;else return}d()}function O(x){for(var p="";c<o;){var m=e[c++];if(m===x)return p;if(m==="\\")if(c>=o&&d(),m=e[c++],qm[m]&&(r||m!="v"&&m!="'"))p+=qm[m];else if(r&&i(m))g(m);else if(m==="u"||m==="x"&&r){for(var E=m==="u"?4:2,C=0;C<E;C++)c>=o&&d(),qn(e[c])||d("Bad escape sequence"),c++;p+=String.fromCharCode(parseInt(e.substr(c-E,E),16))}else if(r&&Hn(m)){if(m<"4"&&Hn(e[c])&&Hn(e[c+1]))var y=3;else if(Hn(e[c]))var y=2;else var y=1;c+=y-1,p+=String.fromCharCode(parseInt(e.substr(c-y,y),8))}else r?p+=m:(c--,d());else i(m)?d():(!r&&m.charCodeAt(0)<32&&(c--,d("Unexpected control character")),p+=m)}d()}k();var T=S();if(T!==void 0||c<o){if(k(),c>=o)return typeof t.reviver=="function"&&(T=t.reviver.call(null,"",T)),T;d()}else d(c?"No data, only a whitespace":"No data, empty input")}Ro.exports.parse=function(t,r){if(typeof r=="function"&&(r={reviver:r}),t!==void 0){typeof t!="string"&&(t=String(t)),r==null&&(r={}),r.reserved_keys==null&&(r.reserved_keys="ignore"),(r.reserved_keys==="throw"||r.reserved_keys==="ignore")&&r.null_prototype==null&&(r.null_prototype=!0);try{return Zk(t,r)}catch(i){if(i instanceof SyntaxError&&i.row!=null&&i.column!=null){var n=i;i=SyntaxError(n.message),i.column=n.column,i.row=n.row}throw i}}};Ro.exports.tokenize=function(t,r){r==null&&(r={}),r._tokenize=function(i){r._addstack&&i.stack.unshift.apply(i.stack,r._addstack),n.push(i)};var n=[];return n.data=Ro.exports.parse(t,r),n}});var xl=F((m6,Gm)=>{var Cl=wl();(function(){}).name||Object.defineProperty(function(){}.constructor.prototype,"name",{get:function(){var e=this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];return Object.defineProperty(this,"name",{value:e}),e}});var eP={0:"\\0",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",92:"\\\\"},tP=Object.prototype.hasOwnProperty,Hm=/[\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/;function _l(e,t,r,n){var i=t.mode==="json5"||!t.mode;function s(l,h){var d=t._prefix?t._prefix:"";if(!t.indent)return d+l;for(var g="",S=r+(h||0),w=0;w<S;w++)g+=t.indent;return d+g+l+(h?`
41
- `:"")}function o(l){if(t.quote_keys)return a(l);if(String(Number(l))==l&&l[0]!="-")return l;if(l=="")return a(l);for(var h="",d=0;d<l.length;d++){if(d>0){if(!Cl.isIdentifierPart(l[d]))return a(l)}else if(!Cl.isIdentifierStart(l[d]))return a(l);var g=l.charCodeAt(d);t.ascii?g<128?h+=l[d]:h+="\\u"+("0000"+g.toString(16)).slice(-4):Hm.exec(l[d])?h+="\\u"+("0000"+g.toString(16)).slice(-4):h+=l[d]}return h}function a(l){for(var h=t.quote,d=h.charCodeAt(0),g="",S=0;S<l.length;S++){var w=l.charCodeAt(S);if(w<16)w===0&&i?g+="\\0":w>=8&&w<=13&&(i||w!==11)?g+=eP[w]:i?g+="\\x0"+w.toString(16):g+="\\u000"+w.toString(16);else if(w<32)i?g+="\\x"+w.toString(16):g+="\\u00"+w.toString(16);else if(w>=32&&w<128)w===47&&S&&l[S-1]==="<"?g+="\\"+l[S]:w===92?g+="\\\\":w===d?g+="\\"+h:g+=l[S];else if(t.ascii||Cl.isLineTerminator(l[S])||Hm.exec(l[S]))if(w<256)i?g+="\\x"+w.toString(16):g+="\\u00"+w.toString(16);else if(w<4096)g+="\\u0"+w.toString(16);else if(w<65536)g+="\\u"+w.toString(16);else throw Error("weird codepoint");else g+=l[S]}return h+g+h}function u(){if(e===null)return"null";var l=[],h=0,d;if(Array.isArray(e)){d="[]";for(var g=0;g<e.length;g++){var S=_l(e[g],t,r+1,String(g));S===void 0&&(S="null"),h+=S.length+2,l.push(S+",")}}else{d="{}";var w=function(N){var D=_l(e[N],t,r+1,N);D!==void 0&&(D=o(N)+":"+(t.indent?" ":"")+D+",",h+=D.length+1,l.push(D))};if(Array.isArray(t.replacer))for(var g=0;g<t.replacer.length;g++)tP.call(e,t.replacer[g])&&w(t.replacer[g]);else{var k=Object.keys(e);t.sort_keys&&(k=k.sort(typeof t.sort_keys=="function"?t.sort_keys:void 0)),k.forEach(w)}}if(h-=2,t.indent&&(h>t._splitMax-r*t.indent.length||h>t._splitMin)){t.no_trailing_comma&&l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var _=l.map(function(N){return s(N,1)}).join("");return d[0]+(t.indent?`
42
- `:"")+_+s(d[1])}else{l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var _=l.join(t.indent?" ":"");return d[0]+_+d[1]}}function c(l){switch(typeof t.replacer=="function"&&(l=t.replacer.call(null,n,l)),typeof l){case"string":return a(l);case"number":return l===0&&1/l<0?"-0":!i&&!Number.isFinite(l)?"null":l.toString();case"boolean":return l.toString();case"undefined":return;case"function":default:return JSON.stringify(l)}}if(t._stringify_key)return o(e);if(typeof e=="object"){if(e===null)return"null";var f;return(typeof(f=e.toJSON5)=="function"&&t.mode!=="json"||typeof(f=e.toJSON)=="function")&&(e=f.call(e,n)),e===null?"null":typeof e!="object"?c(e):e.constructor===Number||e.constructor===Boolean||e.constructor===String?(e=e.valueOf(),c(e)):e.constructor===Date?c(e.toISOString()):typeof t.replacer=="function"&&(e=t.replacer.call(null,n,e),typeof e!="object")?c(e):u(e)}else return c(e)}Gm.exports.stringify=function(t,r,n){return typeof r=="function"||Array.isArray(r)?r={replacer:r}:typeof r=="object"&&r!==null||(r={}),n!=null&&(r.indent=n),r.indent==null&&(r.indent=" "),r.quote==null&&(r.quote="'"),r.ascii==null&&(r.ascii=!1),r.mode==null&&(r.mode="json5"),(r.mode==="json"||r.mode==="cjson")&&(r.quote='"',r.no_trailing_comma=!0,r.quote_keys=!0),typeof r.indent=="object"&&(r.indent.constructor===Number||r.indent.constructor===Boolean||r.indent.constructor===String)&&(r.indent=r.indent.valueOf()),typeof r.indent=="number"?r.indent>=0?r.indent=Array(Math.min(~~r.indent,10)+1).join(" "):r.indent=!1:typeof r.indent=="string"&&(r.indent=r.indent.substr(0,10)),r._splitMin==null&&(r._splitMin=50),r._splitMax==null&&(r._splitMax=70),_l(t,r,0,"")}});var bl=F((y6,Um)=>{var rP=Hi().tokenize;Um.exports.analyze=function(t,r){r==null&&(r={}),Array.isArray(t)||(t=rP(t,r));for(var n={has_whitespace:!1,has_comments:!1,has_newlines:!1,has_trailing_comma:!1,indent:"",newline:`
43
- `,quote:'"',quote_keys:!0},i={indent:{},newline:{},quote:{}},s=0;s<t.length;s++){if(t[s].type==="newline"){if(t[s+1]&&t[s+1].type==="whitespace"&&(t[s+1].raw[0]===" "&&(i.indent[" "]=(i.indent[" "]||0)+1),t[s+1].raw.match(/^\x20+$/))){var o=t[s+1].raw.length,a=t[s+1].stack.length+1;if(o%a===0){var u=Array(o/a+1).join(" ");i.indent[u]=(i.indent[u]||0)+1}}i.newline[t[s].raw]=(i.newline[t[s].raw]||0)+1}if(t[s].type==="newline"&&(n.has_newlines=!0),t[s].type==="whitespace"&&(n.has_whitespace=!0),t[s].type==="comment"&&(n.has_comments=!0),t[s].type==="key"&&t[s].raw[0]!=='"'&&t[s].raw[0]!=="'"&&(n.quote_keys=!1),(t[s].type==="key"||t[s].type==="literal")&&(t[s].raw[0]==='"'||t[s].raw[0]==="'")&&(i.quote[t[s].raw[0]]=(i.quote[t[s].raw[0]]||0)+1),t[s].type==="separator"&&t[s].raw===",")for(var c=s+1;c<t.length&&!(t[c].type==="literal"||t[c].type==="key");c++)t[c].type==="separator"&&(n.has_trailing_comma=!0)}for(var f in i)Object.keys(i[f]).length&&(n[f]=Object.keys(i[f]).reduce(function(l,h){return i[f][l]>i[f][h]?l:h}));return n}});var Xm=F((v6,Rl)=>{var Bt=M("assert"),Km=Hi().tokenize,nP=xl().stringify,iP=bl().analyze;function Ui(e){return typeof e=="object"&&e!==null}function Fo(e,t,r,n,i){r=Object.create(r),r._stringify_key=!!n,i&&(r._prefix=i.prefix.map(function(a){return a.raw}).join("")),r._splitMin==null&&(r._splitMin=0),r._splitMax==null&&(r._splitMax=0);var s=nP(e,r);if(n)return[{raw:s,type:"key",stack:t,value:e}];r._addstack=t;var o=Km(s,{_addstack:t});return o.data=null,o}function Ol(e){if(typeof e=="number"&&(e=String(e)),e===""&&(e=[]),typeof e=="string"&&(e=e.split(".")),!Array.isArray(e))throw Error("Invalid path type, string or array expected");return e}function Wm(e,t,r,n,i){for(;r[n].stack[t]!=e;)if(n++>=i)return!1;for(;r[i].stack[t]!=e;)if(i--<n)return!1;return[n,i]}function Gi(e){return e==="whitespace"||e==="newline"||e==="comment"}function Ym(e,t,r){for(;Gi(e[t].type);)if(t++>=r)return!1;return t}function Gn(e,t,r){for(;Gi(e[r].type);)if(r--<t)return!1;return r}function zm(e,t,r,n,i){var s={sep1:[],sep2:[],suffix:[],prefix:[],newline:[]};if(e[n].type==="separator"&&e[n].stack.length!==i+1&&e[n].raw!==","||(e[n].type==="separator"&&(n=Gn(e,r,n-1)),n===!1))return s;for(;e[n].stack.length>i;)n--;if(!t){for(;Gi(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep2.unshift(e[n]);else return s;n--}for(Bt.equal(e[n].type,"separator"),Bt.equal(e[n].raw,":");Gi(e[--n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep1.unshift(e[n]);else return s}Bt.equal(e[n].type,"key"),n--}for(;Gi(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.prefix.unshift(e[n]);else return e[n].type==="newline"&&s.newline.unshift(e[n]),s;n--}return s}function ir(e,t){var r=Object.create(ir.prototype);t==null&&(t={});var n=r._tokens=Km(e,t);r._data=n.data,n.data=null,r._options=t;var i=iP(e,t);return t.indent==null&&(t.indent=i.indent),t.quote==null&&(t.quote=i.quote),t.quote_keys==null&&(t.quote_keys=i.quote_keys),t.no_trailing_comma==null&&(t.no_trailing_comma=!i.has_trailing_comma),r}function Vm(e,t,r){function n(i){return Error("You can't "+(r?"unset":"set")+" key '"+e+"'"+i)}if(!Ui(t))throw n(" of an non-object");if(Array.isArray(t))if(String(e).match(/^\d+$/)){if(e=Number(String(e)),t.length<e||r&&t.length===e)throw n(", out of bounds");if(r&&t.length!==e+1)throw n(" in the middle of an array");return!0}else throw n(" of an array");else return!0}ir.prototype.set=function(e,t){if(e=Ol(e),e.length===0){if(t===void 0)throw Error("can't remove root document");this._data=t;var r=!1}else{for(var n=this._data,i=0;i<e.length-1;i++)Vm(e[i],n,!1),n=n[e[i]];i===e.length-1&&Vm(e[i],n,t===void 0);var r=!(e[i]in n);t===void 0?Array.isArray(n)?n.pop():delete n[e[i]]:n[e[i]]=t}this._tokens.length||(this._tokens=[{raw:"",type:"literal",stack:[],value:void 0}]);for(var s=[Ym(this._tokens,0,this._tokens.length-1),Gn(this._tokens,0,this._tokens.length-1)],i=0;i<e.length-1;i++)if(s=Wm(e[i],i,this._tokens,s[0],s[1]),s==!1)throw Error("internal error, please report this");if(e.length===0)var o=Fo(t,e,this._options);else if(r){var f=e.slice(0,i),u=Gn(this._tokens,s[0]+1,s[1]-1);Bt(u!==!1);var c=u!==!1?zm(this._tokens,Array.isArray(n),s[0]+1,u,i):{},o=Fo(t,e,this._options,!1,c),l=[];c.newline&&c.newline.length&&(l=l.concat(c.newline)),c.prefix&&c.prefix.length&&(l=l.concat(c.prefix)),Array.isArray(n)||(l=l.concat(Fo(e[e.length-1],f,this._options,!0)),c.sep1&&c.sep1.length&&(l=l.concat(c.sep1)),l.push({raw:":",type:"separator",stack:f}),c.sep2&&c.sep2.length&&(l=l.concat(c.sep2))),o.unshift.apply(o,l),this._tokens[u].type==="separator"&&this._tokens[u].stack.length===e.length-1?this._tokens[u].raw===","&&o.push({raw:",",type:"separator",stack:f}):o.unshift({raw:",",type:"separator",stack:f}),c.suffix&&c.suffix.length&&o.push.apply(o,c.suffix),Bt.equal(this._tokens[s[1]].type,"separator"),s[0]=u+1,s[1]=u}else{var a=s;if(s=Wm(e[i],i,this._tokens,s[0],s[1]),t===void 0&&s!==!1){var o=[];if(!Array.isArray(n)){var u=Gn(this._tokens,a[0],s[0]-1);Bt.equal(this._tokens[u].type,"separator"),Bt.equal(this._tokens[u].raw,":"),s[0]=u;var u=Gn(this._tokens,a[0],s[0]-1);Bt.equal(this._tokens[u].type,"key"),Bt.equal(this._tokens[u].value,e[e.length-1]),s[0]=u}var u=Gn(this._tokens,a[0],s[0]-1);Bt.equal(this._tokens[u].type,"separator"),this._tokens[u].raw===","?s[0]=u:(u=Ym(this._tokens,s[1]+1,a[1]),Bt.equal(this._tokens[u].type,"separator"),this._tokens[u].raw===","&&(s[1]=u))}else var c=u!==!1?zm(this._tokens,Array.isArray(n),a[0],s[1]-1,i):{},o=Fo(t,e,this._options,!1,c)}return o.unshift(s[1]-s[0]+1),o.unshift(s[0]),this._tokens.splice.apply(this._tokens,o),this};ir.prototype.unset=function(e){return this.set(e,void 0)};ir.prototype.get=function(e){e=Ol(e);for(var t=this._data,r=0;r<e.length;r++){if(!Ui(t))return;t=t[e[r]]}return t};ir.prototype.has=function(e){e=Ol(e);for(var t=this._data,r=0;r<e.length;r++){if(!Ui(t))return!1;t=t[e[r]]}return t!==void 0};ir.prototype.update=function(e){var t=this;return r([],t._data,e),t;function r(n,i,s){if(!Ui(s)||!Ui(i))s!==i&&t.set(n,s);else if(Array.isArray(s)!=Array.isArray(i))t.set(n,s);else if(Array.isArray(s))if(s.length>i.length)for(var o=0;o<s.length;o++)n.push(String(o)),r(n,i[o],s[o]),n.pop();else for(var o=i.length-1;o>=0;o--)n.push(String(o)),r(n,i[o],s[o]),n.pop();else{for(var o in s)n.push(String(o)),r(n,i[o],s[o]),n.pop();for(var o in i)o in s||(n.push(String(o)),r(n,i[o],s[o]),n.pop())}}};ir.prototype.toString=function(){return this._tokens.map(function(e){return e.raw}).join("")};Rl.exports.Document=ir;Rl.exports.update=function(t,r,n){return ir(t,n).update(r).toString()}});var Qm=F((E6,ko)=>{var sP=M("fs"),oP=Wi();ko.exports.register=function(){var e=M,t="extensions";e[t][".json5"]=function(r,n){r.exports=oP.parse(sP.readFileSync(n,"utf8"))}};ko.exports.patch_JSON_parse=function(){var e=JSON.parse;JSON.parse=function(t,r){try{return e(t,r)}catch(n){throw Wi().parse(t,{mode:"json",legacy:!0,reviver:r,reserved_keys:"replace",null_prototype:!1}),n}}};ko.exports.middleware=function(){return function(e,t,r){throw Error("this function is removed, use express-json5 instead")}}});var Wi=F((S6,nn)=>{nn.exports.__defineGetter__("parse",function(){return Hi().parse});nn.exports.__defineGetter__("stringify",function(){return xl().stringify});nn.exports.__defineGetter__("tokenize",function(){return Hi().tokenize});nn.exports.__defineGetter__("update",function(){return Xm().update});nn.exports.__defineGetter__("analyze",function(){return bl().analyze});nn.exports.__defineGetter__("utils",function(){return Qm()})});var To=F(Pr=>{"use strict";var Do=Pr&&Pr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pr,"__esModule",{value:!0});Pr.getRushWorkspaces=Pr.getRushWorkspaceRoot=void 0;var aP=Do(Cn()),Po=Do(M("path")),uP=Do(Wi()),cP=Do(M("fs")),lP=Di();function Jm(e){let t=aP.default.sync("rush.json",{cwd:e});if(!t)throw new Error("Could not find rush workspaces root");return Po.default.dirname(t)}Pr.getRushWorkspaceRoot=Jm;function fP(e){try{let t=Jm(e),r=Po.default.join(t,"rush.json"),n=uP.default.parse(cP.default.readFileSync(r,"utf-8")),i=Po.default.dirname(r);return(0,lP.getWorkspacePackageInfo)(n.projects.map(s=>Po.default.join(i,s.projectFolder)))}catch{return[]}}Pr.getRushWorkspaces=fP});var Fl=F(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.getNpmWorkspaces=Un.getNpmWorkspaceRoot=void 0;var Zm=Hc();function ey(e){let t=(0,Zm.getPackageJsonWorkspaceRoot)(e);if(!t)throw new Error("Could not find NPM workspaces root");return t}Un.getNpmWorkspaceRoot=ey;function hP(e){let t=ey(e);return(0,Zm.getWorkspaceInfoFromWorkspaceRoot)(t)}Un.getNpmWorkspaces=hP});var kl=F(Dr=>{"use strict";var Io=Dr&&Dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.getLernaWorkspaces=Dr.getLernaWorkspaceRoot=void 0;var dP=Io(Cn()),pP=Io(M("fs")),gP=Io(Wi()),ty=Io(M("path")),mP=yo(),yP=Di();function ry(e){let t=dP.default.sync("lerna.json",{cwd:e});if(!t)throw new Error("Could not find lerna workspace root");return ty.default.dirname(t)}Dr.getLernaWorkspaceRoot=ry;function vP(e,t){try{let r=ry(e),n=ty.default.join(r,"lerna.json"),i=gP.default.parse(pP.default.readFileSync(n,"utf-8")),s=(0,mP.getPackagePaths)(r,i.packages,t);return(0,yP.getWorkspacePackageInfo)(s)}catch{return[]}}Dr.getLernaWorkspaces=vP});var No=F(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.getWorkspaces=void 0;var EP=Ts(),AP=process.env.PREFERRED_WORKSPACE_MANAGER;function SP(e){let t=AP||(0,EP.getWorkspaceImplementation)(e);if(!t)return[];switch(t){case"yarn":return vo().getYarnWorkspaces(e);case"pnpm":return Oo().getPnpmWorkspaces(e);case"rush":return To().getRushWorkspaces(e);case"npm":return Fl().getNpmWorkspaces(e);case"lerna":return kl().getLernaWorkspaces(e)}}Lo.getWorkspaces=SP});var Pl=F(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});Wn._resetCache=Wn.getAllPackageJsonFiles=void 0;var wP=No(),Bo=new Map;function CP(e){if(Bo.has(e))return Bo.get(e);let r=(0,wP.getWorkspaces)(e).map(n=>n.packageJson.packageJsonPath);return Bo.set(e,r),r}Wn.getAllPackageJsonFiles=CP;function _P(){Bo.clear()}Wn._resetCache=_P});var ny=F(Yn=>{"use strict";var xP=Yn&&Yn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.getPackageInfos=void 0;var bP=xP(M("fs")),OP=Th(),RP=Pl();function FP(e){let t=(0,RP.getAllPackageJsonFiles)(e),r={};return t&&t.length>0?(t.forEach(n=>{try{let i=JSON.parse(bP.default.readFileSync(n,"utf-8"));r[i.name]=(0,OP.infoFromPackageJson)(i,n)}catch(i){throw i instanceof Error?new Error(`Invalid package.json file detected ${n}: ${i.message}`):i}}),r):{}}Yn.getPackageInfos=FP});var Yi=F(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.gitFailFast=_t.git=_t.clearGitObservers=_t.addGitObserver=_t.GitError=void 0;var kP=M("child_process"),$o=class extends Error{constructor(t,r){r instanceof Error?super(`${t}: ${r.message}`):super(t),this.originalError=r}};_t.GitError=$o;var PP=process.env.GIT_MAX_BUFFER?parseInt(process.env.GIT_MAX_BUFFER):500*1024*1024,zn=[],Dl;function DP(e){return zn.push(e),()=>IP(e)}_t.addGitObserver=DP;function TP(){zn.splice(0,zn.length)}_t.clearGitObservers=TP;function IP(e){let t=zn.indexOf(e);t>-1&&zn.splice(t,1)}function iy(e,t){let r=(0,kP.spawnSync)("git",e,{maxBuffer:PP,...t}),n={stderr:r.stderr.toString().trimRight(),stdout:r.stdout.toString().trimRight(),success:r.status===0};if(!Dl){Dl=!0;for(let i of zn)i(e,n);Dl=!1}return n}_t.git=iy;function LP(e,t){var r,n;let i=iy(e,t);if(!i.success)throw t?.noExitCode||(process.exitCode=1),new $o(`CRITICAL ERROR: running git command: git ${e.join(" ")}!
44
- ${(r=i.stdout)===null||r===void 0?void 0:r.toString().trimRight()}
45
- ${(n=i.stderr)===null||n===void 0?void 0:n.toString().trimRight()}`)}_t.gitFailFast=LP});var Tl=F(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.getWorkspaceRoot=void 0;var NP=Ts(),BP=process.env.PREFERRED_WORKSPACE_MANAGER;function $P(e){let t=BP||(0,NP.getWorkspaceImplementation)(e);if(t)switch(t){case"yarn":return vo().getYarnWorkspaceRoot(e);case"pnpm":return Oo().getPnpmWorkspaceRoot(e);case"rush":return To().getRushWorkspaceRoot(e);case"npm":return Fl().getNpmWorkspaceRoot(e);case"lerna":return kl().getLernaWorkspaceRoot(e)}}Mo.getWorkspaceRoot=$P});var Il=F(at=>{"use strict";var sy=at&&at.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(at,"__esModule",{value:!0});at.isChildOf=at.findProjectRoot=at.findPackageRoot=at.findGitRoot=at.searchUp=void 0;var zi=sy(M("path")),MP=sy(M("fs")),jP=Tl(),qP=jo();function oy(e,t){let r=zi.default.parse(t).root,n=!1;for(;!n&&t!==r;){if(MP.default.existsSync(zi.default.join(t,e))){n=!0;break}t=zi.default.dirname(t)}return n?t:null}at.searchUp=oy;function ay(e){let t=(0,qP.git)(["rev-parse","--show-toplevel"],{cwd:e});if(!t.success)throw new Error(`Directory "${e}" is not in a git repository`);return zi.default.normalize(t.stdout)}at.findGitRoot=ay;function HP(e){return oy("package.json",e)}at.findPackageRoot=HP;function GP(e){let t;try{t=(0,jP.getWorkspaceRoot)(e)}catch{}return t||ay(e)}at.findProjectRoot=GP;function UP(e,t){let r=zi.default.relative(e,t);return/^[.\/\\]+$/.test(r)}at.isChildOf=UP});var Ll=F((P6,uy)=>{"use strict";uy.exports=function(t,r){r===!0&&(r=0);var n="";if(typeof t=="string")try{n=new URL(t).protocol}catch{}else t&&t.constructor===URL&&(n=t.protocol);var i=n.split(/\:|\+/).filter(Boolean);return typeof r=="number"?i[r]:i}});var ly=F((D6,cy)=>{"use strict";var WP=Ll();function YP(e){var t={protocols:[],protocol:null,port:null,resource:"",host:"",user:"",password:"",pathname:"",hash:"",search:"",href:e,query:{},parse_failed:!1};try{var r=new URL(e);t.protocols=WP(r),t.protocol=t.protocols[0],t.port=r.port,t.resource=r.hostname,t.host=r.host,t.user=r.username||"",t.password=r.password||"",t.pathname=r.pathname,t.hash=r.hash.slice(1),t.search=r.search.slice(1),t.href=r.href,t.query=Object.fromEntries(r.searchParams)}catch{t.protocols=["file"],t.protocol=t.protocols[0],t.port="",t.resource="",t.user="",t.pathname="",t.hash="",t.search="",t.href=e,t.query={},t.parse_failed=!0}return t}cy.exports=YP});var dy=F((T6,hy)=>{"use strict";var zP=ly();function VP(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var KP=VP(zP),XP="text/plain",QP="us-ascii",fy=(e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),JP=(e,{stripHash:t})=>{let r=/^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(e);if(!r)throw new Error(`Invalid URL: ${e}`);let{type:n,data:i,hash:s}=r.groups,o=n.split(";");s=t?"":s;let a=!1;o[o.length-1]==="base64"&&(o.pop(),a=!0);let u=(o.shift()||"").toLowerCase(),f=[...o.map(l=>{let[h,d=""]=l.split("=").map(g=>g.trim());return h==="charset"&&(d=d.toLowerCase(),d===QP)?"":`${h}${d?`=${d}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length>0||u&&u!==XP)&&f.unshift(u),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`};function ZP(e,t){if(t={defaultProtocol:"http:",normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,sortQueryParameters:!0,...t},e=e.trim(),/^data:/i.test(e))return JP(e,t);if(/^view-source:/i.test(e))throw new Error("`view-source:` is not supported as it is a non-standard protocol");let r=e.startsWith("//");!r&&/^\.*\//.test(e)||(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let i=new URL(e);if(t.forceHttp&&t.forceHttps)throw new Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&i.protocol==="https:"&&(i.protocol="http:"),t.forceHttps&&i.protocol==="http:"&&(i.protocol="https:"),t.stripAuthentication&&(i.username="",i.password=""),t.stripHash?i.hash="":t.stripTextFragment&&(i.hash=i.hash.replace(/#?:~:text.*?$/i,"")),i.pathname){let o=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,a=0,u="";for(;;){let f=o.exec(i.pathname);if(!f)break;let l=f[0],h=f.index,d=i.pathname.slice(a,h);u+=d.replace(/\/{2,}/g,"/"),u+=l,a=h+l.length}let c=i.pathname.slice(a,i.pathname.length);u+=c.replace(/\/{2,}/g,"/"),i.pathname=u}if(i.pathname)try{i.pathname=decodeURI(i.pathname)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let o=i.pathname.split("/"),a=o[o.length-1];fy(a,t.removeDirectoryIndex)&&(o=o.slice(0,-1),i.pathname=o.slice(1).join("/")+"/")}if(i.hostname&&(i.hostname=i.hostname.replace(/\.$/,""),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(i.hostname)&&(i.hostname=i.hostname.replace(/^www\./,""))),Array.isArray(t.removeQueryParameters))for(let o of[...i.searchParams.keys()])fy(o,t.removeQueryParameters)&&i.searchParams.delete(o);if(t.removeQueryParameters===!0&&(i.search=""),t.sortQueryParameters){i.searchParams.sort();try{i.search=decodeURIComponent(i.search)}catch{}}t.removeTrailingSlash&&(i.pathname=i.pathname.replace(/\/$/,""));let s=e;return e=i.toString(),!t.removeSingleSlash&&i.pathname==="/"&&!s.endsWith("/")&&i.hash===""&&(e=e.replace(/\/$/,"")),(t.removeTrailingSlash||i.pathname==="/")&&i.hash===""&&t.removeSingleSlash&&(e=e.replace(/\/$/,"")),r&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,"//")),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,"")),e}var Nl=(e,t=!1)=>{let r=/^(?:([a-z_][a-z0-9_-]{0,31})@|https?:\/\/)([\w\.\-@]+)[\/:]([\~,\.\w,\-,\_,\/]+?(?:\.git|\/)?)$/,n=s=>{let o=new Error(s);throw o.subject_url=e,o};(typeof e!="string"||!e.trim())&&n("Invalid url."),e.length>Nl.MAX_INPUT_LENGTH&&n("Input exceeds maximum length. If needed, change the value of parseUrl.MAX_INPUT_LENGTH."),t&&(typeof t!="object"&&(t={stripHash:!1}),e=ZP(e,t));let i=KP.default(e);if(i.parse_failed){let s=i.href.match(r);s?(i.protocols=["ssh"],i.protocol="ssh",i.resource=s[2],i.host=s[2],i.user=s[1],i.pathname=`/${s[3]}`,i.parse_failed=!1):n("URL parsing failed.")}return i};Nl.MAX_INPUT_LENGTH=2048;hy.exports=Nl});var my=F((I6,gy)=>{"use strict";var eD=Ll();function py(e){if(Array.isArray(e))return e.indexOf("ssh")!==-1||e.indexOf("rsync")!==-1;if(typeof e!="string")return!1;var t=eD(e);if(e=e.substring(e.indexOf("://")+3),py(t))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!e.match(r)&&e.indexOf("@")<e.indexOf(":")}gy.exports=py});var Ey=F((L6,vy)=>{"use strict";var tD=dy(),yy=my();function rD(e){var t=tD(e);return t.token="",t.password==="x-oauth-basic"?t.token=t.user:t.user==="x-token-auth"&&(t.token=t.password),yy(t.protocols)||t.protocols.length===0&&yy(e)?t.protocol="ssh":t.protocols.length?t.protocol=t.protocols[0]:(t.protocol="file",t.protocols=["file"]),t.href=t.href.replace(/\/$/,""),t}vy.exports=rD});var Sy=F((N6,Ay)=>{"use strict";var nD=Ey();function Bl(e){if(typeof e!="string")throw new Error("The url must be a string.");var t=/^([a-z\d-]{1,39})\/([-\.\w]{1,100})$/i;t.test(e)&&(e="https://github.com/"+e);var r=nD(e),n=r.resource.split("."),i=null;switch(r.toString=function(w){return Bl.stringify(this,w)},r.source=n.length>2?n.slice(1-n.length).join("."):r.source=r.resource,r.git_suffix=/\.git$/.test(r.pathname),r.name=decodeURIComponent((r.pathname||r.href).replace(/(^\/)|(\/$)/g,"").replace(/\.git$/,"")),r.owner=decodeURIComponent(r.user),r.source){case"git.cloudforge.com":r.owner=r.user,r.organization=n[0],r.source="cloudforge.com";break;case"visualstudio.com":if(r.resource==="vs-ssh.visualstudio.com"){i=r.name.split("/"),i.length===4&&(r.organization=i[1],r.owner=i[2],r.name=i[3],r.full_name=i[2]+"/"+i[3]);break}else{i=r.name.split("/"),i.length===2?(r.owner=i[1],r.name=i[1],r.full_name="_git/"+r.name):i.length===3?(r.name=i[2],i[0]==="DefaultCollection"?(r.owner=i[2],r.organization=i[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=i[0],r.full_name=r.owner+"/_git/"+r.name)):i.length===4&&(r.organization=i[0],r.owner=i[1],r.name=i[3],r.full_name=r.organization+"/"+r.owner+"/_git/"+r.name);break}case"dev.azure.com":case"azure.com":if(r.resource==="ssh.dev.azure.com"){i=r.name.split("/"),i.length===4&&(r.organization=i[1],r.owner=i[2],r.name=i[3]);break}else{i=r.name.split("/"),i.length===5?(r.organization=i[0],r.owner=i[1],r.name=i[4],r.full_name="_git/"+r.name):i.length===3?(r.name=i[2],i[0]==="DefaultCollection"?(r.owner=i[2],r.organization=i[0],r.full_name=r.organization+"/_git/"+r.name):(r.owner=i[0],r.full_name=r.owner+"/_git/"+r.name)):i.length===4&&(r.organization=i[0],r.owner=i[1],r.name=i[3],r.full_name=r.organization+"/"+r.owner+"/_git/"+r.name),r.query&&r.query.path&&(r.filepath=r.query.path.replace(/^\/+/g,"")),r.query&&r.query.version&&(r.ref=r.query.version.replace(/^GB/,""));break}default:i=r.name.split("/");var s=i.length-1;if(i.length>=2){var o=i.indexOf("-",2),a=i.indexOf("blob",2),u=i.indexOf("tree",2),c=i.indexOf("commit",2),f=i.indexOf("src",2),l=i.indexOf("raw",2),h=i.indexOf("edit",2);s=o>0?o-1:a>0?a-1:u>0?u-1:c>0?c-1:f>0?f-1:l>0?l-1:h>0?h-1:s,r.owner=i.slice(0,s).join("/"),r.name=i[s],c&&(r.commit=i[s+2])}r.ref="",r.filepathtype="",r.filepath="";var d=i.length>s&&i[s+1]==="-"?s+1:s;i.length>d+2&&["raw","src","blob","tree","edit"].indexOf(i[d+1])>=0&&(r.filepathtype=i[d+1],r.ref=i[d+2],i.length>d+3&&(r.filepath=i.slice(d+3).join("/"))),r.organization=r.owner;break}r.full_name||(r.full_name=r.owner,r.name&&(r.full_name&&(r.full_name+="/"),r.full_name+=r.name)),r.owner.startsWith("scm/")&&(r.source="bitbucket-server",r.owner=r.owner.replace("scm/",""),r.organization=r.owner,r.full_name=r.owner+"/"+r.name);var g=/(projects|users)\/(.*?)\/repos\/(.*?)((\/.*$)|$)/,S=g.exec(r.pathname);return S!=null&&(r.source="bitbucket-server",S[1]==="users"?r.owner="~"+S[2]:r.owner=S[2],r.organization=r.owner,r.name=S[3],i=S[4].split("/"),i.length>1&&(["raw","browse"].indexOf(i[1])>=0?(r.filepathtype=i[1],i.length>2&&(r.filepath=i.slice(2).join("/"))):i[1]==="commits"&&i.length>2&&(r.commit=i[2])),r.full_name=r.owner+"/"+r.name,r.query.at?r.ref=r.query.at:r.ref=""),r}Bl.stringify=function(e,t){t=t||(e.protocols&&e.protocols.length?e.protocols.join("+"):e.protocol);var r=e.port?":"+e.port:"",n=e.user||"git",i=e.git_suffix?".git":"";switch(t){case"ssh":return r?"ssh://"+n+"@"+e.resource+r+"/"+e.full_name+i:n+"@"+e.resource+":"+e.full_name+i;case"git+ssh":case"ssh+git":case"ftp":case"ftps":return t+"://"+n+"@"+e.resource+r+"/"+e.full_name+i;case"http":case"https":var s=e.token?iD(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"";return t+"://"+s+e.resource+r+"/"+sD(e)+i;default:return e.href}};function iD(e){switch(e.source){case"bitbucket.org":return"x-token-auth:"+e.token+"@";default:return e.token+"@"}}function sD(e){switch(e.source){case"bitbucket-server":return"scm/"+e.full_name;default:return""+e.full_name}}Ay.exports=Bl});var wy=F(Vn=>{"use strict";var oD=Vn&&Vn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.getRepositoryName=void 0;var aD=oD(Sy());function uD(e){var t;try{let r=e.replace("/_optimized/","/").replace("/DefaultCollection/","/"),n=(0,aD.default)(r),i=r.includes(".visualstudio.com"),s=r.includes("dev.azure.com");if(!i&&!s)return n.full_name;let o=n.full_name.match(/(vs-ssh\.visualstudio\.com|ssh\.dev\.azure\.com):v\d+\/([^/]+)\/([^/]+)/);if(o)return`${o[2]}/${o[3]}/${n.name}`;let a=n.organization;return!a&&i&&(a=(t=n.resource.match(/([^.@]+)\.visualstudio\.com/))===null||t===void 0?void 0:t[1]),`${a}/${n.owner}/${n.name}`}catch{return""}}Vn.getRepositoryName=uD});var $l=F(Kn=>{"use strict";var _y=Kn&&Kn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Kn,"__esModule",{value:!0});Kn.getDefaultRemote=void 0;var cD=_y(M("fs")),lD=_y(M("path")),fD=Il(),Cy=wy(),hD=Yi();function dD(e){let t=typeof e=="string"?{cwd:e}:e,{cwd:r,strict:n,verbose:i}=t,s=k=>i&&console.log(k),o=k=>{if(n)throw new Error(k);s(k)},a=(0,fD.findGitRoot)(r),u={},c=lD.default.join(a,"package.json");try{u=JSON.parse(cD.default.readFileSync(c,"utf8").trim())}catch{o(`Could not read "${c}"`)}let{repository:f}=u,l=typeof f=="string"?f:f&&f.url||"";l||console.log(`Valid "repository" key not found in "${c}". Consider adding this info for more accurate git remote detection.`);let h=(0,Cy.getRepositoryName)(l),d=(0,hD.git)(["remote","-v"],{cwd:r});d.success||o(`Could not determine available git remotes under "${r}"`);let g={};if(d.stdout.split(`
46
- `).forEach(k=>{let[_,N]=k.split(/\s+/),D=(0,Cy.getRepositoryName)(N);D&&(g[D]=_)}),h){if(g[h])return g[h];o(`Could not find remote pointing to repository "${h}".`)}let S=Object.values(g),w=["upstream","origin",...S];for(let k of w)if(S.includes(k))return s(`Default to remote "${k}"`),k;return o(`Could not find any remotes in git repo at "${a}".`),s('Assuming default remote "origin".'),"origin"}Kn.getDefaultRemote=dD});var Ml=F(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.listAllTrackedFiles=se.getDefaultBranch=se.parseRemoteBranch=se.getRemoteBranch=se.getParentBranch=se.revertLocalChanges=se.stageAndCommit=se.commit=se.stage=se.init=se.getFileAddedHash=se.getCurrentHash=se.getShortBranchName=se.getFullBranchRef=se.getBranchName=se.getUserEmail=se.getRecentCommitMessages=se.getStagedChanges=se.getChangesBetweenRefs=se.getBranchChanges=se.getChanges=se.getUnstagedChanges=se.fetchRemoteBranch=se.fetchRemote=se.getUntrackedChanges=void 0;var le=Yi();function pD(e){try{return Vi((0,le.git)(["ls-files","--others","--exclude-standard"],{cwd:e}))}catch(t){throw new le.GitError("Cannot gather information about untracked changes",t)}}se.getUntrackedChanges=pD;function gD(e,t){if(!(0,le.git)(["fetch","--",e],{cwd:t}).success)throw new le.GitError(`Cannot fetch remote "${e}"`)}se.fetchRemote=gD;function mD(e,t,r){if(!(0,le.git)(["fetch","--",e,t],{cwd:r}).success)throw new le.GitError(`Cannot fetch branch "${t}" from remote "${e}"`)}se.fetchRemoteBranch=mD;function yD(e){try{return Vi((0,le.git)(["--no-pager","diff","--name-only","--relative"],{cwd:e}))}catch(t){throw new le.GitError("Cannot gather information about unstaged changes",t)}}se.getUnstagedChanges=yD;function vD(e,t){try{return Vi((0,le.git)(["--no-pager","diff","--relative","--name-only",e+"..."],{cwd:t}))}catch(r){throw new le.GitError("Cannot gather information about changes",r)}}se.getChanges=vD;function ED(e,t){return xy(e,"",[],"",t)}se.getBranchChanges=ED;function xy(e,t,r,n,i){try{return Vi((0,le.git)(["--no-pager","diff","--name-only","--relative",...r,`${e}...${t}`,...n?["--",n]:[]],{cwd:i}))}catch(s){throw new le.GitError(`Cannot gather information about change between refs changes (${e} to ${t})`,s)}}se.getChangesBetweenRefs=xy;function AD(e){try{return Vi((0,le.git)(["--no-pager","diff","--relative","--staged","--name-only"],{cwd:e}))}catch(t){throw new le.GitError("Cannot gather information about staged changes",t)}}se.getStagedChanges=AD;function SD(e,t){try{let r=(0,le.git)(["log","--decorate","--pretty=format:%s",`${e}..HEAD`],{cwd:t});return r.success?r.stdout.split(/\n/).map(n=>n.trim()):[]}catch(r){throw new le.GitError("Cannot gather information about recent commits",r)}}se.getRecentCommitMessages=SD;function wD(e){try{let t=(0,le.git)(["config","user.email"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new le.GitError("Cannot gather information about user.email",t)}}se.getUserEmail=wD;function by(e){try{let t=(0,le.git)(["rev-parse","--abbrev-ref","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new le.GitError("Cannot get branch name",t)}}se.getBranchName=by;function CD(e,t){let r=(0,le.git)(["show-ref","--heads",e],{cwd:t});return r.success?r.stdout.split(" ")[1]:null}se.getFullBranchRef=CD;function _D(e,t){let r=(0,le.git)(["name-rev","--name-only",e],{cwd:t});return r.success?r.stdout:null}se.getShortBranchName=_D;function xD(e){try{let t=(0,le.git)(["rev-parse","HEAD"],{cwd:e});return t.success?t.stdout:null}catch(t){throw new le.GitError("Cannot get current git hash",t)}}se.getCurrentHash=xD;function bD(e,t){let r=(0,le.git)(["rev-list","HEAD",e],{cwd:t});if(r.success)return r.stdout.trim().split(`
47
- `).slice(-1)[0]}se.getFileAddedHash=bD;function OD(e,t,r){(0,le.git)(["init"],{cwd:e});let n=(0,le.git)(["config","--list"],{cwd:e}).stdout.split(`
48
- `);if(!n.find(i=>i.includes("user.name"))){if(!r)throw new le.GitError("must include a username when initializing git repo");(0,le.git)(["config","user.name",r],{cwd:e})}if(!n.find(i=>i.includes("user.email"))){if(!t)throw new Error("must include a email when initializing git repo");(0,le.git)(["config","user.email",t],{cwd:e})}}se.init=OD;function Oy(e,t){try{e.forEach(r=>{(0,le.git)(["add",r],{cwd:t})})}catch(r){throw new le.GitError("Cannot stage changes",r)}}se.stage=Oy;function Ry(e,t,r=[]){try{let n=(0,le.git)(["commit","-m",e,...r],{cwd:t});if(!n.success)throw new Error(`Cannot commit changes: ${n.stdout} ${n.stderr}`)}catch(n){throw new le.GitError("Cannot commit changes",n)}}se.commit=Ry;function RD(e,t,r,n=[]){Oy(e,r),Ry(t,r,n)}se.stageAndCommit=RD;function FD(e){let t=`workspace-tools_${new Date().getTime()}`;(0,le.git)(["stash","push","-u","-m",t],{cwd:e});let r=(0,le.git)(["stash","list"]);if(r.success){let i=r.stdout.split(/\n/).find(s=>s.includes(t));if(i){let s=i.match(/^[^:]+/);if(s)return(0,le.git)(["stash","drop",s[0]]),!0}}return!1}se.revertLocalChanges=FD;function kD(e){let t=by(e);if(!t||t==="HEAD")return null;let r=(0,le.git)(["show-branch","-a"],{cwd:e});if(r.success){let i=r.stdout.split(/\n/).find(o=>o.includes("*")&&!o.includes(t)&&!o.includes("publish_")),s=i?.match(/\[(.*)\]/);return s?s[1]:null}return null}se.getParentBranch=kD;function PD(e,t){let r=(0,le.git)(["rev-parse","--abbrev-ref","--symbolic-full-name",`${e}@{u}`],{cwd:t});return r.success?r.stdout.trim():null}se.getRemoteBranch=PD;function DD(e){let t=e.indexOf("/",0),r=e.substring(0,t),n=e.substring(t+1);return{remote:r,remoteBranch:n}}se.parseRemoteBranch=DD;function TD(e){let t=(0,le.git)(["config","init.defaultBranch"],{cwd:e});return t.success?t.stdout.trim():"master"}se.getDefaultBranch=TD;function ID(e,t){let r=(0,le.git)(["ls-files",...e],{cwd:t});return r.success&&r.stdout.trim()?r.stdout.trim().split(/\n/):[]}se.listAllTrackedFiles=ID;function Vi(e){return e.success?e.stdout.split(/\n/).map(t=>t.trim()).filter(t=>!!t&&!t.includes("node_modules")):[]}});var Fy=F(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.getDefaultRemoteBranch=void 0;var LD=$l(),ND=Yi(),BD=Ml();function $D(...e){var t;let[r,n]=e,i=typeof r=="string"?{branch:r,cwd:n}:r,{cwd:s,branch:o}=i,a=(0,LD.getDefaultRemote)(i);if(o)return`${a}/${o}`;let u=(0,ND.git)(["remote","show",a],{cwd:s}),c;return u.success&&(c=(t=u.stdout.split(/\n/).find(f=>f.includes("HEAD branch")))===null||t===void 0?void 0:t.replace(/^\s*HEAD branch:\s+/,"")),`${a}/${c||(0,BD.getDefaultBranch)(s)}`}qo.getDefaultRemoteBranch=$D});var jo=F(Yt=>{"use strict";var MD=Yt&&Yt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ho=Yt&&Yt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&MD(t,e,r)};Object.defineProperty(Yt,"__esModule",{value:!0});Ho(Yi(),Yt);Ho($l(),Yt);Ho(Fy(),Yt);Ho(Ml(),Yt)});var jl=F(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.createDependencyMap=void 0;var jD=Os();function qD(e,t={withDevDependencies:!0,withPeerDependencies:!1}){let r={dependencies:new Map,dependents:new Map};for(let[n,i]of Object.entries(e)){let s=(0,jD.getPackageDependencies)(i,e,t);for(let o of s)r.dependencies.has(n)||r.dependencies.set(n,new Set),r.dependencies.get(n).add(o),r.dependents.has(o)||r.dependents.set(o,new Set),r.dependents.get(o).add(n)}return r}Go.createDependencyMap=qD});var Py=F(Xn=>{"use strict";var HD=Xn&&Xn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.createPackageGraph=void 0;var Ki=jl(),GD=HD(Ri());function UD(e,t){let r=new Set,n=[],i=new Set,s,o,a,u;function c(h,d,g,S){if(r.add(d),!h||h.includeDependencies&&g)for(let w of g){let k=f(d,w);i.has(k)||(i.add(k),n.push({name:d,dependency:w})),r.add(w)}if(!h||h.includeDependents&&S)for(let w of S){let k=f(w,d);i.has(k)||(i.add(k),n.push({name:w,dependency:d})),r.add(w)}}if(t){t=Array.isArray(t)?t:[t];for(let h of t){let d=c.bind(void 0,h),g=l(e,h);ky(e,g,d,h)}}else{let h=c.bind(void 0,void 0),d=l(e);ky(e,d,h)}return{packages:[...r],dependencies:n};function f(h,d){return`${h}->${d}`}function l(h,d){return d?d.withDevDependencies&&d.withPeerDependencies?(s??(s=(0,Ki.createDependencyMap)(h,d)),s):d.withDevDependencies&&!d.withPeerDependencies?(a??(a=(0,Ki.createDependencyMap)(h,d)),a):!d.withDevDependencies&&d.withPeerDependencies?(o??(o=(0,Ki.createDependencyMap)(h,d)),o):(u??(u=(0,Ki.createDependencyMap)(h,d)),u):(0,Ki.createDependencyMap)(h)}}Xn.createPackageGraph=UD;function ky(e,t,r,n){var i,s;let o=new Set,a=Object.keys(e),u=n?(0,GD.default)(a,n.namePatterns):a;for(;u.length>0;){let c=u.pop();if(o.has(c))continue;let f=new Set,l=[],h=[];if(!n||n.includeDependencies){l=[...(i=t.dependencies.get(c))!==null&&i!==void 0?i:[]];for(let d of l)f.add(d)}if(!n||n.includeDependents){h=[...(s=t.dependents.get(c))!==null&&s!==void 0?s:[]];for(let d of h)f.add(d)}if(r(c,l,h),o.add(c),f.size>0)for(let d of f)u.push(d)}}});var Dy=F(sr=>{"use strict";var WD=sr&&sr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),YD=sr&&sr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&WD(t,e,r)};Object.defineProperty(sr,"__esModule",{value:!0});sr.getDependentMap=void 0;YD(Py(),sr);var zD=jl();function VD(e){return(0,zD.createDependencyMap)(e).dependencies}sr.getDependentMap=VD});var Xi=F(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});Uo.nameAtVersion=void 0;function KD(e,t){return`${e}@${t}`}Uo.nameAtVersion=KD});var Ty=F(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.parsePnpmLock=void 0;var XD=Xi();function QD(e){let t={};if(e&&e.packages)for(let[r,n]of Object.entries(e.packages)){let i=r.split(/\//),s=i.length>3?`${i[1]}/${i[2]}`:i[1],o=i.length>3?i[3]:i[2];t[(0,XD.nameAtVersion)(s,o)]={version:o,dependencies:n.dependencies}}return{object:t,type:"success"}}Wo.parsePnpmLock=QD});var Iy=F(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.parseNpmLock=void 0;var JD=Xi();function ZD(e){var t;return{object:Object.fromEntries(Object.entries((t=e.dependencies)!==null&&t!==void 0?t:{}).map(([n,i])=>[(0,JD.nameAtVersion)(n,i.version),i])),type:"success"}}Yo.parseNpmLock=ZD});var Ny=F((V6,Ly)=>{Ly.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.i=function(n){return n},r.d=function(n,i,s){r.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:s})},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=14)}([function(e,t){e.exports=M("path")},function(e,t,r){"use strict";t.__esModule=!0;var n=r(173),i=s(n);function s(o){return o&&o.__esModule?o:{default:o}}t.default=function(o){return function(){var a=o.apply(this,arguments);return new i.default(function(u,c){function f(l,h){try{var d=a[l](h),g=d.value}catch(S){c(S);return}if(d.done)u(g);else return i.default.resolve(g).then(function(S){f("next",S)},function(S){f("throw",S)})}return f("next")})}}},function(e,t){e.exports=M("util")},function(e,t){e.exports=M("fs")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(c,f){super(c),this.code=f}}t.MessageError=n;class i extends n{constructor(c,f,l){super(c,f),this.process=l}}t.ProcessSpawnError=i;class s extends n{}t.SecurityError=s;class o extends n{}t.ProcessTermError=o;class a extends Error{constructor(c,f){super(c),this.responseCode=f}}t.ResponseError=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstSuitableFolder=t.readFirstAvailableStream=t.makeTempDir=t.hardlinksWork=t.writeFilePreservingEol=t.getFileSizeOnDisk=t.walk=t.symlink=t.find=t.readJsonAndFile=t.readJson=t.readFileAny=t.hardlinkBulk=t.copyBulk=t.unlink=t.glob=t.link=t.chmod=t.lstat=t.exists=t.mkdirp=t.stat=t.access=t.rename=t.readdir=t.realpath=t.readlink=t.writeFile=t.open=t.readFileBuffer=t.lockQueue=t.constants=void 0;var n;function i(){return n=B(r(1))}let s=(()=>{var J=(0,(n||i()).default)(function*(K,Y,W,V){let he=(()=>{var ye=(0,(n||i()).default)(function*(je){let we=je.src,de=je.dest,Ci=je.type,ht=je.onFresh||Et,Fe=je.onDone||Et;if(ve.has(de.toLowerCase())?V.verbose(`The case-insensitive file ${de} shouldn't be copied twice in one bulk copy`):ve.add(de.toLowerCase()),Ci==="symlink"){yield xe((m||E()).default.dirname(de)),ht(),Ke.symlink.push({dest:de,linkname:we}),Fe();return}if(Y.ignoreBasenames.indexOf((m||E()).default.basename(we))>=0)return;let ke=yield Me(we),Kt;ke.isDirectory()&&(Kt=yield ce(we));let it;try{it=yield Me(de)}catch(Ze){if(Ze.code!=="ENOENT")throw Ze}if(it){let Ze=ke.isSymbolicLink()&&it.isSymbolicLink(),Xt=ke.isDirectory()&&it.isDirectory(),It=ke.isFile()&&it.isFile();if(It&&Se.has(de)){Fe(),V.verbose(V.lang("verboseFileSkipArtifact",we));return}if(It&&ke.size===it.size&&(0,(z||oe()).fileDatesEqual)(ke.mtime,it.mtime)){Fe(),V.verbose(V.lang("verboseFileSkip",we,de,ke.size,+ke.mtime));return}if(Ze){let qe=yield G(we);if(qe===(yield G(de))){Fe(),V.verbose(V.lang("verboseFileSkipSymlink",we,de,qe));return}}if(Xt){let qe=yield ce(de);vn(Kt,"src files not initialised");for(var Pt=qe,pr=Array.isArray(Pt),dt=0,Pt=pr?Pt:Pt[Symbol.iterator]();;){var An;if(pr){if(dt>=Pt.length)break;An=Pt[dt++]}else{if(dt=Pt.next(),dt.done)break;An=dt.value}let yr=An;if(Kt.indexOf(yr)<0){let Qt=(m||E()).default.join(de,yr);if(W.add(Qt),(yield Me(Qt)).isDirectory())for(var Dt=yield ce(Qt),gr=Array.isArray(Dt),pt=0,Dt=gr?Dt:Dt[Symbol.iterator]();;){var Sn;if(gr){if(pt>=Dt.length)break;Sn=Dt[pt++]}else{if(pt=Dt.next(),pt.done)break;Sn=pt.value}let Ia=Sn;W.add((m||E()).default.join(Qt,Ia))}}}}}if(it&&it.isSymbolicLink()&&(yield(0,(z||oe()).unlink)(de),it=null),ke.isSymbolicLink()){ht();let Ze=yield G(we);Ke.symlink.push({dest:de,linkname:Ze}),Fe()}else if(ke.isDirectory()){it||(V.verbose(V.lang("verboseFileFolder",de)),yield xe(de));let Ze=de.split((m||E()).default.sep);for(;Ze.length;)ve.add(Ze.join((m||E()).default.sep).toLowerCase()),Ze.pop();vn(Kt,"src files not initialised");let Xt=Kt.length;Xt||Fe();for(var Tt=Kt,mr=Array.isArray(Tt),gt=0,Tt=mr?Tt:Tt[Symbol.iterator]();;){var Je;if(mr){if(gt>=Tt.length)break;Je=Tt[gt++]}else{if(gt=Tt.next(),gt.done)break;Je=gt.value}let It=Je;K.push({dest:(m||E()).default.join(de,It),onFresh:ht,onDone:function(qe){function yr(){return qe.apply(this,arguments)}return yr.toString=function(){return qe.toString()},yr}(function(){--Xt===0&&Fe()}),src:(m||E()).default.join(we,It)})}}else if(ke.isFile())ht(),Ke.file.push({src:we,dest:de,atime:ke.atime,mtime:ke.mtime,mode:ke.mode}),Fe();else throw new Error(`unsure how to copy this: ${we}`)});return function(we){return ye.apply(this,arguments)}})(),Se=new Set(Y.artifactFiles||[]),ve=new Set;for(var ge=K,Ae=Array.isArray(ge),pe=0,ge=Ae?ge:ge[Symbol.iterator]();;){var ft;if(Ae){if(pe>=ge.length)break;ft=ge[pe++]}else{if(pe=ge.next(),pe.done)break;ft=pe.value}let ye=ft,je=ye.onDone;ye.onDone=function(){Y.onProgress(ye.dest),je&&je()}}Y.onStart(K.length);let Ke={file:[],symlink:[],link:[]};for(;K.length;){let ye=K.splice(0,Gr);yield Promise.all(ye.map(he))}for(var Xe=Se,dr=Array.isArray(Xe),Ft=0,Xe=dr?Xe:Xe[Symbol.iterator]();;){var Ur;if(dr){if(Ft>=Xe.length)break;Ur=Xe[Ft++]}else{if(Ft=Xe.next(),Ft.done)break;Ur=Ft.value}let ye=Ur;W.has(ye)&&(V.verbose(V.lang("verboseFilePhantomExtraneous",ye)),W.delete(ye))}for(var Qe=W,wi=Array.isArray(Qe),kt=0,Qe=wi?Qe:Qe[Symbol.iterator]();;){var Wr;if(wi){if(kt>=Qe.length)break;Wr=Qe[kt++]}else{if(kt=Qe.next(),kt.done)break;Wr=kt.value}let ye=Wr;ve.has(ye.toLowerCase())&&W.delete(ye)}return Ke});return function(Y,W,V,he){return J.apply(this,arguments)}})(),o=(()=>{var J=(0,(n||i()).default)(function*(K,Y,W,V){let he=(()=>{var ye=(0,(n||i()).default)(function*(je){let we=je.src,de=je.dest,Ci=je.onFresh||Et,ht=je.onDone||Et;if(ve.has(de.toLowerCase())){ht();return}if(ve.add(de.toLowerCase()),Y.ignoreBasenames.indexOf((m||E()).default.basename(we))>=0)return;let Fe=yield Me(we),ke;Fe.isDirectory()&&(ke=yield ce(we));let Kt=yield Rt(de);if(Kt){let Je=yield Me(de),Ze=Fe.isSymbolicLink()&&Je.isSymbolicLink(),Xt=Fe.isDirectory()&&Je.isDirectory(),It=Fe.isFile()&&Je.isFile();if(Fe.mode!==Je.mode)try{yield fe(de,Fe.mode)}catch(qe){V.verbose(qe)}if(It&&Se.has(de)){ht(),V.verbose(V.lang("verboseFileSkipArtifact",we));return}if(It&&Fe.ino!==null&&Fe.ino===Je.ino){ht(),V.verbose(V.lang("verboseFileSkip",we,de,Fe.ino));return}if(Ze){let qe=yield G(we);if(qe===(yield G(de))){ht(),V.verbose(V.lang("verboseFileSkipSymlink",we,de,qe));return}}if(Xt){let qe=yield ce(de);vn(ke,"src files not initialised");for(var dt=qe,it=Array.isArray(dt),pr=0,dt=it?dt:dt[Symbol.iterator]();;){var Pt;if(it){if(pr>=dt.length)break;Pt=dt[pr++]}else{if(pr=dt.next(),pr.done)break;Pt=pr.value}let yr=Pt;if(ke.indexOf(yr)<0){let Qt=(m||E()).default.join(de,yr);if(W.add(Qt),(yield Me(Qt)).isDirectory())for(var pt=yield ce(Qt),An=Array.isArray(pt),gr=0,pt=An?pt:pt[Symbol.iterator]();;){var Dt;if(An){if(gr>=pt.length)break;Dt=pt[gr++]}else{if(gr=pt.next(),gr.done)break;Dt=gr.value}let Ia=Dt;W.add((m||E()).default.join(Qt,Ia))}}}}}if(Fe.isSymbolicLink()){Ci();let Je=yield G(we);Ke.symlink.push({dest:de,linkname:Je}),ht()}else if(Fe.isDirectory()){V.verbose(V.lang("verboseFileFolder",de)),yield xe(de);let Je=de.split((m||E()).default.sep);for(;Je.length;)ve.add(Je.join((m||E()).default.sep).toLowerCase()),Je.pop();vn(ke,"src files not initialised");let Ze=ke.length;Ze||ht();for(var gt=ke,Sn=Array.isArray(gt),mr=0,gt=Sn?gt:gt[Symbol.iterator]();;){var Tt;if(Sn){if(mr>=gt.length)break;Tt=gt[mr++]}else{if(mr=gt.next(),mr.done)break;Tt=mr.value}let Xt=Tt;K.push({onFresh:Ci,src:(m||E()).default.join(we,Xt),dest:(m||E()).default.join(de,Xt),onDone:function(It){function qe(){return It.apply(this,arguments)}return qe.toString=function(){return It.toString()},qe}(function(){--Ze===0&&ht()})})}}else if(Fe.isFile())Ci(),Ke.link.push({src:we,dest:de,removeDest:Kt}),ht();else throw new Error(`unsure how to copy this: ${we}`)});return function(we){return ye.apply(this,arguments)}})(),Se=new Set(Y.artifactFiles||[]),ve=new Set;for(var ge=K,Ae=Array.isArray(ge),pe=0,ge=Ae?ge:ge[Symbol.iterator]();;){var ft;if(Ae){if(pe>=ge.length)break;ft=ge[pe++]}else{if(pe=ge.next(),pe.done)break;ft=pe.value}let ye=ft,je=ye.onDone||Et;ye.onDone=function(){Y.onProgress(ye.dest),je()}}Y.onStart(K.length);let Ke={file:[],symlink:[],link:[]};for(;K.length;){let ye=K.splice(0,Gr);yield Promise.all(ye.map(he))}for(var Xe=Se,dr=Array.isArray(Xe),Ft=0,Xe=dr?Xe:Xe[Symbol.iterator]();;){var Ur;if(dr){if(Ft>=Xe.length)break;Ur=Xe[Ft++]}else{if(Ft=Xe.next(),Ft.done)break;Ur=Ft.value}let ye=Ur;W.has(ye)&&(V.verbose(V.lang("verboseFilePhantomExtraneous",ye)),W.delete(ye))}for(var Qe=W,wi=Array.isArray(Qe),kt=0,Qe=wi?Qe:Qe[Symbol.iterator]();;){var Wr;if(wi){if(kt>=Qe.length)break;Wr=Qe[kt++]}else{if(kt=Qe.next(),kt.done)break;Wr=kt.value}let ye=Wr;ve.has(ye.toLowerCase())&&W.delete(ye)}return Ke});return function(Y,W,V,he){return J.apply(this,arguments)}})(),a=t.copyBulk=(()=>{var J=(0,(n||i()).default)(function*(K,Y,W){let V={onStart:W&&W.onStart||Et,onProgress:W&&W.onProgress||Et,possibleExtraneous:W?W.possibleExtraneous:new Set,ignoreBasenames:W&&W.ignoreBasenames||[],artifactFiles:W&&W.artifactFiles||[]},he=yield s(K,V,V.possibleExtraneous,Y);V.onStart(he.file.length+he.symlink.length+he.link.length);let Se=he.file,ve=new Map;yield(v||P()).queue(Se,(()=>{var pe=(0,(n||i()).default)(function*(ge){let ft;for(;ft=ve.get(ge.dest);)yield ft;Y.verbose(Y.lang("verboseFileCopy",ge.src,ge.dest));let Ke=(0,(z||oe()).copyFile)(ge,function(){return ve.delete(ge.dest)});return ve.set(ge.dest,Ke),V.onProgress(ge.dest),Ke});return function(ge){return pe.apply(this,arguments)}})(),Gr);let Ae=he.symlink;yield(v||P()).queue(Ae,function(pe){let ge=(m||E()).default.resolve((m||E()).default.dirname(pe.dest),pe.linkname);return Y.verbose(Y.lang("verboseFileSymlink",pe.dest,ge)),d(ge,pe.dest)})});return function(Y,W,V){return J.apply(this,arguments)}})(),u=t.hardlinkBulk=(()=>{var J=(0,(n||i()).default)(function*(K,Y,W){let V={onStart:W&&W.onStart||Et,onProgress:W&&W.onProgress||Et,possibleExtraneous:W?W.possibleExtraneous:new Set,artifactFiles:W&&W.artifactFiles||[],ignoreBasenames:[]},he=yield o(K,V,V.possibleExtraneous,Y);V.onStart(he.file.length+he.symlink.length+he.link.length);let Se=he.link;yield(v||P()).queue(Se,(()=>{var Ae=(0,(n||i()).default)(function*(pe){Y.verbose(Y.lang("verboseFileLink",pe.src,pe.dest)),pe.removeDest&&(yield(0,(z||oe()).unlink)(pe.dest)),yield ws(pe.src,pe.dest)});return function(pe){return Ae.apply(this,arguments)}})(),Gr);let ve=he.symlink;yield(v||P()).queue(ve,function(Ae){let pe=(m||E()).default.resolve((m||E()).default.dirname(Ae.dest),Ae.linkname);return Y.verbose(Y.lang("verboseFileSymlink",Ae.dest,pe)),d(pe,Ae.dest)})});return function(Y,W,V){return J.apply(this,arguments)}})(),c=t.readFileAny=(()=>{var J=(0,(n||i()).default)(function*(K){for(var V=K,Y=Array.isArray(V),W=0,V=Y?V:V[Symbol.iterator]();;){var he;if(Y){if(W>=V.length)break;he=V[W++]}else{if(W=V.next(),W.done)break;he=W.value}let Se=he;if(yield Rt(Se))return Ta(Se)}return null});return function(Y){return J.apply(this,arguments)}})(),f=t.readJson=(()=>{var J=(0,(n||i()).default)(function*(K){return(yield l(K)).object});return function(Y){return J.apply(this,arguments)}})(),l=t.readJsonAndFile=(()=>{var J=(0,(n||i()).default)(function*(K){let Y=yield Ta(K);try{return{object:(0,($||U()).default)(JSON.parse(Si(Y))),content:Y}}catch(W){throw W.message=`${K}: ${W.message}`,W}});return function(Y){return J.apply(this,arguments)}})(),h=t.find=(()=>{var J=(0,(n||i()).default)(function*(K,Y){let W=Y.split((m||E()).default.sep);for(;W.length;){let V=W.concat(K).join((m||E()).default.sep);if(yield Rt(V))return V;W.pop()}return!1});return function(Y,W){return J.apply(this,arguments)}})(),d=t.symlink=(()=>{var J=(0,(n||i()).default)(function*(K,Y){try{if((yield Me(Y)).isSymbolicLink()&&(yield ne(Y))===K)return}catch(W){if(W.code!=="ENOENT")throw W}if(yield(0,(z||oe()).unlink)(Y),process.platform==="win32")yield _s(K,Y,"junction");else{let W;try{W=(m||E()).default.relative((R||b()).default.realpathSync((m||E()).default.dirname(Y)),(R||b()).default.realpathSync(K))}catch(V){if(V.code!=="ENOENT")throw V;W=(m||E()).default.relative((m||E()).default.dirname(Y),K)}yield _s(W||".",Y)}});return function(Y,W){return J.apply(this,arguments)}})(),g=t.walk=(()=>{var J=(0,(n||i()).default)(function*(K,Y,W=new Set){let V=[],he=yield ce(K);W.size&&(he=he.filter(function(ge){return!W.has(ge)}));for(var Ae=he,Se=Array.isArray(Ae),ve=0,Ae=Se?Ae:Ae[Symbol.iterator]();;){var pe;if(Se){if(ve>=Ae.length)break;pe=Ae[ve++]}else{if(ve=Ae.next(),ve.done)break;pe=ve.value}let ge=pe,ft=Y?(m||E()).default.join(Y,ge):ge,Ke=(m||E()).default.join(K,ge),dr=yield Me(Ke);V.push({relative:ft,basename:ge,absolute:Ke,mtime:+dr.mtime}),dr.isDirectory()&&(V=V.concat(yield g(Ke,ft,W)))}return V});return function(Y,W){return J.apply(this,arguments)}})(),S=t.getFileSizeOnDisk=(()=>{var J=(0,(n||i()).default)(function*(K){let Y=yield Me(K),W=Y.size,V=Y.blksize;return Math.ceil(W/V)*V});return function(Y){return J.apply(this,arguments)}})(),w=(()=>{var J=(0,(n||i()).default)(function*(K){if(!(yield Rt(K)))return;let Y=yield re(K);for(let W=0;W<Y.length;++W){if(Y[W]===rC)return`\r
49
- `;if(Y[W]===nC)return`
50
- `}});return function(Y){return J.apply(this,arguments)}})(),k=t.writeFilePreservingEol=(()=>{var J=(0,(n||i()).default)(function*(K,Y){let W=(yield w(K))||(x||p()).default.EOL;W!==`
51
- `&&(Y=Y.replace(/\n/g,W)),yield ie(K,Y)});return function(Y,W){return J.apply(this,arguments)}})(),_=t.hardlinksWork=(()=>{var J=(0,(n||i()).default)(function*(K){let Y="test-file"+Math.random(),W=(m||E()).default.join(K,Y),V=(m||E()).default.join(K,Y+"-link");try{yield ie(W,"test"),yield ws(W,V)}catch{return!1}finally{yield(0,(z||oe()).unlink)(W),yield(0,(z||oe()).unlink)(V)}return!0});return function(Y){return J.apply(this,arguments)}})(),N=t.makeTempDir=(()=>{var J=(0,(n||i()).default)(function*(K){let Y=(m||E()).default.join((x||p()).default.tmpdir(),`yarn-${K||""}-${Date.now()}-${Math.random()}`);return yield(0,(z||oe()).unlink)(Y),yield xe(Y),Y});return function(Y){return J.apply(this,arguments)}})(),D=t.readFirstAvailableStream=(()=>{var J=(0,(n||i()).default)(function*(K){for(var V=K,Y=Array.isArray(V),W=0,V=Y?V:V[Symbol.iterator]();;){var he;if(Y){if(W>=V.length)break;he=V[W++]}else{if(W=V.next(),W.done)break;he=W.value}let Se=he;try{let ve=yield q(Se,"r");return(R||b()).default.createReadStream(Se,{fd:ve})}catch{}}return null});return function(Y){return J.apply(this,arguments)}})(),A=t.getFirstSuitableFolder=(()=>{var J=(0,(n||i()).default)(function*(K,Y=j.W_OK|j.X_OK){let W={skipped:[],folder:null};for(var Se=K,V=Array.isArray(Se),he=0,Se=V?Se:Se[Symbol.iterator]();;){var ve;if(V){if(he>=Se.length)break;ve=Se[he++]}else{if(he=Se.next(),he.done)break;ve=he.value}let Ae=ve;try{return yield xe(Ae),yield fe(Ae,Y),W.folder=Ae,W}catch(pe){W.skipped.push({error:pe,folder:Ae})}}return W});return function(Y){return J.apply(this,arguments)}})();t.copy=xs,t.readFile=Ta,t.readFileRaw=tC,t.normalizeOS=Rh;var R;function b(){return R=B(r(3))}var O;function T(){return O=B(r(75))}var x;function p(){return x=B(r(36))}var m;function E(){return m=B(r(0))}var C;function y(){return C=B(r(84))}var v;function P(){return v=H(r(40))}var I;function L(){return I=r(40)}var $;function U(){return $=B(r(20))}var z;function oe(){return z=r(164)}function H(J){if(J&&J.__esModule)return J;var K={};if(J!=null)for(var Y in J)Object.prototype.hasOwnProperty.call(J,Y)&&(K[Y]=J[Y]);return K.default=J,K}function B(J){return J&&J.__esModule?J:{default:J}}let j=t.constants=typeof(R||b()).default.constants<"u"?(R||b()).default.constants:{R_OK:(R||b()).default.R_OK,W_OK:(R||b()).default.W_OK,X_OK:(R||b()).default.X_OK},te=t.lockQueue=new(C||y()).default("fs lock"),re=t.readFileBuffer=(0,(I||L()).promisify)((R||b()).default.readFile),q=t.open=(0,(I||L()).promisify)((R||b()).default.open),ie=t.writeFile=(0,(I||L()).promisify)((R||b()).default.writeFile),G=t.readlink=(0,(I||L()).promisify)((R||b()).default.readlink),ne=t.realpath=(0,(I||L()).promisify)((R||b()).default.realpath),ce=t.readdir=(0,(I||L()).promisify)((R||b()).default.readdir),Ee=t.rename=(0,(I||L()).promisify)((R||b()).default.rename),fe=t.access=(0,(I||L()).promisify)((R||b()).default.access),Re=t.stat=(0,(I||L()).promisify)((R||b()).default.stat),xe=t.mkdirp=(0,(I||L()).promisify)(r(116)),Rt=t.exists=(0,(I||L()).promisify)((R||b()).default.exists,!0),Me=t.lstat=(0,(I||L()).promisify)((R||b()).default.lstat),Vt=t.chmod=(0,(I||L()).promisify)((R||b()).default.chmod),ws=t.link=(0,(I||L()).promisify)((R||b()).default.link),Cs=t.glob=(0,(I||L()).promisify)((O||T()).default);t.unlink=(z||oe()).unlink;let Gr=(R||b()).default.copyFile?128:4,_s=(0,(I||L()).promisify)((R||b()).default.symlink),vn=r(7),Si=r(122),Et=()=>{};function xs(J,K,Y){return a([{src:J,dest:K}],Y)}function En(J,K){return new Promise((Y,W)=>{(R||b()).default.readFile(J,K,function(V,he){V?W(V):Y(he)})})}function Ta(J){return En(J,"utf8").then(Rh)}function tC(J){return En(J,"binary")}function Rh(J){return J.replace(/\r\n/g,`
52
- `)}let rC=13,nC=10},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathKey=fe;let n=r(36),i=r(0),s=r(45).default;var o=r(171);let a=o.getCacheDir,u=o.getConfigDir,c=o.getDataDir,f=r(227),l=t.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"],h=t.RESOLUTIONS="resolutions",d=t.MANIFEST_FIELDS=[h,...l],g=t.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",S=t.YARN_REGISTRY="https://registry.yarnpkg.com",w=t.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",k=t.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",_=t.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",N=t.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",D=t.CACHE_VERSION=2,A=t.LOCKFILE_VERSION=1,R=t.NETWORK_CONCURRENCY=8,b=t.NETWORK_TIMEOUT=30*1e3,O=t.CHILD_CONCURRENCY=5,T=t.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function x(){let xe=[a()];return process.getuid&&xe.push(i.join(n.tmpdir(),`.yarn-cache-${process.getuid()}`)),xe.push(i.join(n.tmpdir(),".yarn-cache")),xe}let p=t.PREFERRED_MODULE_CACHE_DIRECTORIES=x(),m=t.CONFIG_DIRECTORY=u(),E=t.DATA_DIRECTORY=c(),C=t.LINK_REGISTRY_DIRECTORY=i.join(E,"link"),y=t.GLOBAL_MODULE_DIRECTORY=i.join(E,"global"),v=t.NODE_BIN_PATH=process.execPath,P=t.YARN_BIN_PATH=I();function I(){return f?__filename:i.join(__dirname,"..","bin","yarn.js")}let L=t.NODE_MODULES_FOLDER="node_modules",$=t.NODE_PACKAGE_JSON="package.json",U=t.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`,z=t.FALLBACK_GLOBAL_PREFIX=i.join(s,".yarn"),oe=t.META_FOLDER=".yarn-meta",H=t.INTEGRITY_FILENAME=".yarn-integrity",B=t.LOCKFILE_FILENAME="yarn.lock",j=t.METADATA_FILENAME=".yarn-metadata.json",te=t.TARBALL_FILENAME=".yarn-tarball.tgz",re=t.CLEAN_FILENAME=".yarnclean",q=t.NPM_LOCK_FILENAME="package-lock.json",ie=t.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",G=t.DEFAULT_INDENT=" ",ne=t.SINGLE_INSTANCE_PORT=31997,ce=t.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",Ee=t.ENV_PATH_KEY=fe(process.platform,process.env);function fe(xe,Rt){let Me="PATH";if(xe==="win32"){Me="Path";for(let Vt in Rt)Vt.toLowerCase()==="path"&&(Me=Vt)}return Me}let Re=t.VERSION_COLOR_SCHEME={major:"red",premajor:"red",minor:"yellow",preminor:"yellow",patch:"green",prepatch:"green",prerelease:"red",unchanged:"white",unknown:"red"}},function(e,t,r){"use strict";var n=process.env.NODE_ENV,i=function(s,o,a,u,c,f,l,h){if(n!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!s){var d;if(o===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=[a,u,c,f,l,h],S=0;d=new Error(o.replace(/%s/g,function(){return g[S++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}};e.exports=i},,function(e,t){e.exports=M("crypto")},,function(e,t){var r=e.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=r)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortAlpha=i,t.entries=s,t.removePrefix=o,t.removeSuffix=a,t.addSuffix=u,t.hyphenate=c,t.camelCase=f,t.compareSortedArrays=l,t.sleep=h;let n=r(176);function i(d,g){let S=Math.min(d.length,g.length);for(let w=0;w<S;w++){let k=d.charCodeAt(w),_=g.charCodeAt(w);if(k!==_)return k-_}return d.length-g.length}function s(d){let g=[];if(d)for(let S in d)g.push([S,d[S]]);return g}function o(d,g){return d.startsWith(g)&&(d=d.slice(g.length)),d}function a(d,g){return d.endsWith(g)?d.slice(0,-g.length):d}function u(d,g){return d.endsWith(g)?d:d+g}function c(d){return d.replace(/[A-Z]/g,g=>"-"+g.charAt(0).toLowerCase())}function f(d){return/[A-Z]/.test(d)?null:n(d)}function l(d,g){if(d.length!==g.length)return!1;for(let S=0,w=d.length;S<w;S++)if(d[S]!==g[S])return!1;return!0}function h(d){return new Promise(g=>{setTimeout(g,d)})}},function(e,t,r){var n=r(107)("wks"),i=r(111),s=r(11).Symbol,o=typeof s=="function",a=e.exports=function(u){return n[u]||(n[u]=o&&s[u]||(o?s:i)("Symbol."+u))};a.store=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=void 0;var n;function i(){return n=D(r(1))}var s;function o(){return s=r(81)}Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return D(s||o()).default}});var a;function u(){return a=r(150)}Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return D(a||u()).default}}),t.implodeEntry=m,t.explodeEntry=E;var c;function f(){return c=r(12)}var l;function h(){return l=r(29)}var d;function g(){return d=D(r(81))}var S;function w(){return S=r(6)}var k;function _(){return k=N(r(5))}function N(y){if(y&&y.__esModule)return y;var v={};if(y!=null)for(var P in y)Object.prototype.hasOwnProperty.call(y,P)&&(v[P]=y[P]);return v.default=y,v}function D(y){return y&&y.__esModule?y:{default:y}}let A=r(7),R=r(0),b=r(55);function O(y){return(0,(l||h()).normalizePattern)(y).name}function T(y){return y&&Object.keys(y).length?y:void 0}function x(y){return y.resolved||(y.reference&&y.hash?`${y.reference}#${y.hash}`:null)}function p(y){return y.toString().split(" ").sort().join(" ")}function m(y,v){let P=O(y),I=v.integrity?p(v.integrity):"",L={name:P===v.name?void 0:v.name,version:v.version,uid:v.uid===v.version?void 0:v.uid,resolved:v.resolved,registry:v.registry==="npm"?void 0:v.registry,dependencies:T(v.dependencies),optionalDependencies:T(v.optionalDependencies),permissions:T(v.permissions),prebuiltVariants:T(v.prebuiltVariants)};return I&&(L.integrity=I),L}function E(y,v){v.optionalDependencies=v.optionalDependencies||{},v.dependencies=v.dependencies||{},v.uid=v.uid||v.version,v.permissions=v.permissions||{},v.registry=v.registry||"npm",v.name=v.name||O(y);let P=v.integrity;return P&&P.isIntegrity&&(v.integrity=b.parse(P)),v}class C{constructor({cache:v,source:P,parseResultType:I}={}){this.source=P||"",this.cache=v,this.parseResultType=I}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(let v in this.cache)if(!/^.*@(file:|http)/.test(v)&&this.cache[v]&&!this.cache[v].integrity)return!0;return!1}static fromDirectory(v,P){return(0,(n||i()).default)(function*(){let I=R.join(v,(S||w()).LOCKFILE_FILENAME),L,$="",U;return(yield(k||_()).exists(I))?($=yield(k||_()).readFile(I),U=(0,(d||g()).default)($,I),P&&(U.type==="merge"?P.info(P.lang("lockfileMerged")):U.type==="conflict"&&P.warn(P.lang("lockfileConflict"))),L=U.object):P&&P.info(P.lang("noLockfileFound")),new C({cache:L,source:$,parseResultType:U&&U.type})})()}getLocked(v){let P=this.cache;if(!P)return;let I=v in P&&P[v];if(typeof I=="string")return this.getLocked(I);if(I)return E(v,I),I}removePattern(v){let P=this.cache;P&&delete P[v]}getLockfile(v){let P={},I=new Map,L=Object.keys(v).sort((c||f()).sortAlpha);for(var z=L,$=Array.isArray(z),U=0,z=$?z:z[Symbol.iterator]();;){var oe;if($){if(U>=z.length)break;oe=z[U++]}else{if(U=z.next(),U.done)break;oe=U.value}let H=oe,B=v[H],j=B._remote,te=B._reference;A(te,"Package is missing a reference"),A(j,"Package is missing a remote");let re=x(j),q=re&&I.get(re);if(q){P[H]=q,!q.name&&O(H)!==B.name&&(q.name=B.name);continue}let ie=m(H,{name:B.name,version:B.version,uid:B._uid,resolved:j.resolved,integrity:j.integrity,registry:j.registry,dependencies:B.dependencies,peerDependencies:B.peerDependencies,optionalDependencies:B.optionalDependencies,permissions:te.permissions,prebuiltVariants:B.prebuiltVariants});P[H]=ie,re&&I.set(re,ie)}return P}}t.default=C},,,function(e,t){e.exports=M("stream")},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i={}){if(Array.isArray(i))for(var a=i,s=Array.isArray(a),o=0,a=s?a:a[Symbol.iterator]();;){var u;if(s){if(o>=a.length)break;u=a[o++]}else{if(o=a.next(),o.done)break;u=o.value}n(u)}else if((i!==null&&typeof i=="object"||typeof i=="function")&&(Object.setPrototypeOf(i,null),typeof i=="object"))for(let c in i)n(i[c]);return i}},,function(e,t){e.exports=M("assert")},function(e,t){var r=e.exports={version:"2.5.7"};typeof __e=="number"&&(__e=r)},,,,function(e,t,r){var n=r(34);e.exports=function(i){if(!n(i))throw TypeError(i+" is not an object!");return i}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePattern=n;function n(i){let s=!1,o="latest",a=i,u=!1;a[0]==="@"&&(u=!0,a=a.slice(1));let c=a.split("@");return c.length>1&&(a=c.shift(),o=c.join("@"),o?s=!0:o="*"),u&&(a=`@${a}`),{name:a,range:o,hasVersion:s}}},,function(e,t,r){var n=r(50),i=r(106);e.exports=r(33)?function(s,o,a){return n.f(s,o,i(1,a))}:function(s,o,a){return s[o]=a,s}},function(e,t,r){var n=r(63),i=n.Buffer;function s(a,u){for(var c in a)u[c]=a[c]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=o);function o(a,u,c){return i(a,u,c)}s(i,o),o.from=function(a,u,c){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,u,c)},o.alloc=function(a,u,c){if(typeof a!="number")throw new TypeError("Argument must be a number");var f=i(a);return u!==void 0?typeof c=="string"?f.fill(u,c):f.fill(u):f.fill(0),f},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}},function(e,t,r){e.exports=!r(85)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(e,t){e.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},function(e,t){e.exports={}},function(e,t){e.exports=M("os")},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wait=n,t.promisify=i,t.queue=s;function n(o){return new Promise(a=>{setTimeout(a,o)})}function i(o,a){return function(...u){return new Promise(function(c,f){u.push(function(l,...h){let d=h;h.length<=1&&(d=h[0]),a&&(d=l,l=null),l?f(l):c(d)}),o.apply(null,u)})}}function s(o,a,u=1/0){u=Math.min(u,o.length),o=o.slice();let c=[],f=o.length;return f?new Promise((l,h)=>{for(let g=0;g<u;g++)d();function d(){let g=o.shift();a(g).then(function(w){c.push(w),f--,f===0?l(c):o.length&&d()},h)}}):Promise.resolve(c)}},function(e,t,r){var n=r(11),i=r(23),s=r(48),o=r(31),a=r(49),u="prototype",c=function(f,l,h){var d=f&c.F,g=f&c.G,S=f&c.S,w=f&c.P,k=f&c.B,_=f&c.W,N=g?i:i[l]||(i[l]={}),D=N[u],A=g?n:S?n[l]:(n[l]||{})[u],R,b,O;g&&(h=l);for(R in h)b=!d&&A&&A[R]!==void 0,!(b&&a(N,R))&&(O=b?A[R]:h[R],N[R]=g&&typeof A[R]!="function"?h[R]:k&&b?s(O,n):_&&A[R]==O?function(T){var x=function(p,m,E){if(this instanceof T){switch(arguments.length){case 0:return new T;case 1:return new T(p);case 2:return new T(p,m)}return new T(p,m,E)}return T.apply(this,arguments)};return x[u]=T[u],x}(O):w&&typeof O=="function"?s(Function.call,O):O,w&&((N.virtual||(N.virtual={}))[R]=O,f&c.R&&D&&!D[R]&&o(D,R,O)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,r){try{var n=r(2);if(typeof n.inherits!="function")throw"";e.exports=n.inherits}catch{e.exports=r(224)}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.home=void 0;var n;function i(){return n=s(r(169))}function s(c){return c&&c.__esModule?c:{default:c}}let o=r(0),a=t.home=r(36).homedir(),u=(n||i()).default?o.resolve("/usr/local/share"):a;t.default=u},function(e,t){e.exports=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r}},function(e,t){var r={}.toString;e.exports=function(n){return r.call(n).slice(8,-1)}},function(e,t,r){var n=r(46);e.exports=function(i,s,o){if(n(i),s===void 0)return i;switch(o){case 1:return function(a){return i.call(s,a)};case 2:return function(a,u){return i.call(s,a,u)};case 3:return function(a,u,c){return i.call(s,a,u,c)}}return function(){return i.apply(s,arguments)}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(n,i){return r.call(n,i)}},function(e,t,r){var n=r(27),i=r(184),s=r(201),o=Object.defineProperty;t.f=r(33)?Object.defineProperty:function(u,c,f){if(n(u),c=s(c,!0),n(f),i)try{return o(u,c,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(u[c]=f.value),u}},,,,function(e,t){e.exports=M("events")},function(e,t,r){"use strict";let n=r(32).Buffer,i=r(9),s=r(17).Transform,o=["sha256","sha384","sha512"],a=/^[a-z0-9+/]+(?:=?=?)$/i,u=/^([^-]+)-([^?]+)([?\S*]*)$/,c=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,f=/^[\x21-\x7E]+$/;class l{get isHash(){return!0}constructor(p,m){let E=!!(m&&m.strict);this.source=p.trim();let C=this.source.match(E?c:u);if(!C||E&&!o.some(v=>v===C[1]))return;this.algorithm=C[1],this.digest=C[2];let y=C[3];this.options=y?y.slice(1).split("?"):[]}hexDigest(){return this.digest&&n.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(p){if(p&&p.strict&&!(o.some(E=>E===this.algorithm)&&this.digest.match(a)&&(this.options||[]).every(E=>E.match(f))))return"";let m=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${m}`}}class h{get isIntegrity(){return!0}toJSON(){return this.toString()}toString(p){p=p||{};let m=p.sep||" ";return p.strict&&(m=m.replace(/\S+/g," ")),Object.keys(this).map(E=>this[E].map(C=>l.prototype.toString.call(C,p)).filter(C=>C.length).join(m)).filter(E=>E.length).join(m)}concat(p,m){let E=typeof p=="string"?p:S(p,m);return d(`${this.toString(m)} ${E}`,m)}hexDigest(){return d(this,{single:!0}).hexDigest()}match(p,m){let E=d(p,m),C=E.pickAlgorithm(m);return this[C]&&E[C]&&this[C].find(y=>E[C].find(v=>y.digest===v.digest))||!1}pickAlgorithm(p){let m=p&&p.pickAlgorithm||T,E=Object.keys(this);if(!E.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return E.reduce((C,y)=>m(C,y)||C)}}e.exports.parse=d;function d(x,p){if(p=p||{},typeof x=="string")return g(x,p);if(x.algorithm&&x.digest){let m=new h;return m[x.algorithm]=[x],g(S(m,p),p)}else return g(S(x,p),p)}function g(x,p){return p.single?new l(x,p):x.trim().split(/\s+/).reduce((m,E)=>{let C=new l(E,p);if(C.algorithm&&C.digest){let y=C.algorithm;m[y]||(m[y]=[]),m[y].push(C)}return m},new h)}e.exports.stringify=S;function S(x,p){return x.algorithm&&x.digest?l.prototype.toString.call(x,p):typeof x=="string"?S(d(x,p),p):h.prototype.toString.call(x,p)}e.exports.fromHex=w;function w(x,p,m){let E=m&&m.options&&m.options.length?`?${m.options.join("?")}`:"";return d(`${p}-${n.from(x,"hex").toString("base64")}${E}`,m)}e.exports.fromData=k;function k(x,p){p=p||{};let m=p.algorithms||["sha512"],E=p.options&&p.options.length?`?${p.options.join("?")}`:"";return m.reduce((C,y)=>{let v=i.createHash(y).update(x).digest("base64"),P=new l(`${y}-${v}${E}`,p);if(P.algorithm&&P.digest){let I=P.algorithm;C[I]||(C[I]=[]),C[I].push(P)}return C},new h)}e.exports.fromStream=_;function _(x,p){p=p||{};let m=p.Promise||Promise,E=A(p);return new m((C,y)=>{x.pipe(E),x.on("error",y),E.on("error",y);let v;E.on("integrity",P=>{v=P}),E.on("end",()=>C(v)),E.on("data",()=>{})})}e.exports.checkData=N;function N(x,p,m){if(m=m||{},p=d(p,m),!Object.keys(p).length){if(m.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let E=p.pickAlgorithm(m),C=i.createHash(E).update(x).digest("base64"),y=d({algorithm:E,digest:C}),v=y.match(p,m);if(v||!m.error)return v;if(typeof m.size=="number"&&x.length!==m.size){let P=new Error(`data size mismatch when checking ${p}.
53
- Wanted: ${m.size}
54
- Found: ${x.length}`);throw P.code="EBADSIZE",P.found=x.length,P.expected=m.size,P.sri=p,P}else{let P=new Error(`Integrity checksum failed when using ${E}: Wanted ${p}, but got ${y}. (${x.length} bytes)`);throw P.code="EINTEGRITY",P.found=y,P.expected=p,P.algorithm=E,P.sri=p,P}}e.exports.checkStream=D;function D(x,p,m){m=m||{};let E=m.Promise||Promise,C=A(Object.assign({},m,{integrity:p}));return new E((y,v)=>{x.pipe(C),x.on("error",v),C.on("error",v);let P;C.on("verified",I=>{P=I}),C.on("end",()=>y(P)),C.on("data",()=>{})})}e.exports.integrityStream=A;function A(x){x=x||{};let p=x.integrity&&d(x.integrity,x),m=p&&Object.keys(p).length,E=m&&p.pickAlgorithm(x),C=m&&p[E],y=Array.from(new Set((x.algorithms||["sha512"]).concat(E?[E]:[]))),v=y.map(i.createHash),P=0,I=new s({transform(L,$,U){P+=L.length,v.forEach(z=>z.update(L,$)),U(null,L,$)}}).on("end",()=>{let L=x.options&&x.options.length?`?${x.options.join("?")}`:"",$=d(v.map((z,oe)=>`${y[oe]}-${z.digest("base64")}${L}`).join(" "),x),U=m&&$.match(p,x);if(typeof x.size=="number"&&P!==x.size){let z=new Error(`stream size mismatch when checking ${p}.
55
- Wanted: ${x.size}
56
- Found: ${P}`);z.code="EBADSIZE",z.found=P,z.expected=x.size,z.sri=p,I.emit("error",z)}else if(x.integrity&&!U){let z=new Error(`${p} integrity checksum failed when using ${E}: wanted ${C} but got ${$}. (${P} bytes)`);z.code="EINTEGRITY",z.found=$,z.expected=C,z.algorithm=E,z.sri=p,I.emit("error",z)}else I.emit("size",P),I.emit("integrity",$),U&&I.emit("verified",U)});return I}e.exports.create=R;function R(x){x=x||{};let p=x.algorithms||["sha512"],m=x.options&&x.options.length?`?${x.options.join("?")}`:"",E=p.map(i.createHash);return{update:function(C,y){return E.forEach(v=>v.update(C,y)),this},digest:function(C){return p.reduce((v,P)=>{let I=E.shift().digest("base64"),L=new l(`${P}-${I}${m}`,x);if(L.algorithm&&L.digest){let $=L.algorithm;v[$]||(v[$]=[]),v[$].push(L)}return v},new h)}}}let b=new Set(i.getHashes()),O=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(x=>b.has(x));function T(x,p){return O.indexOf(x.toLowerCase())>=O.indexOf(p.toLowerCase())?x:p}},,,,,function(e,t,r){e.exports=w,w.Minimatch=k;var n={sep:"/"};try{n=r(0)}catch{}var i=w.GLOBSTAR=k.GLOBSTAR={},s=r(175),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",u=a+"*?",c="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",f="(?:(?!(?:\\/|^)\\.).)*?",l=h("().*{}+?[]^$\\!");function h(p){return p.split("").reduce(function(m,E){return m[E]=!0,m},{})}var d=/\/+/;w.filter=g;function g(p,m){return m=m||{},function(E,C,y){return w(E,p,m)}}function S(p,m){p=p||{},m=m||{};var E={};return Object.keys(m).forEach(function(C){E[C]=m[C]}),Object.keys(p).forEach(function(C){E[C]=p[C]}),E}w.defaults=function(p){if(!p||!Object.keys(p).length)return w;var m=w,E=function(y,v,P){return m.minimatch(y,v,S(p,P))};return E.Minimatch=function(y,v){return new m.Minimatch(y,S(p,v))},E},k.defaults=function(p){return!p||!Object.keys(p).length?k:w.defaults(p).Minimatch};function w(p,m,E){if(typeof m!="string")throw new TypeError("glob pattern string required");return E||(E={}),!E.nocomment&&m.charAt(0)==="#"?!1:m.trim()===""?p==="":new k(m,E).match(p)}function k(p,m){if(!(this instanceof k))return new k(p,m);if(typeof p!="string")throw new TypeError("glob pattern string required");m||(m={}),p=p.trim(),n.sep!=="/"&&(p=p.split(n.sep).join("/")),this.options=m,this.set=[],this.pattern=p,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}k.prototype.debug=function(){},k.prototype.make=_;function _(){if(!this._made){var p=this.pattern,m=this.options;if(!m.nocomment&&p.charAt(0)==="#"){this.comment=!0;return}if(!p){this.empty=!0;return}this.parseNegate();var E=this.globSet=this.braceExpand();m.debug&&(this.debug=console.error),this.debug(this.pattern,E),E=this.globParts=E.map(function(C){return C.split(d)}),this.debug(this.pattern,E),E=E.map(function(C,y,v){return C.map(this.parse,this)},this),this.debug(this.pattern,E),E=E.filter(function(C){return C.indexOf(!1)===-1}),this.debug(this.pattern,E),this.set=E}}k.prototype.parseNegate=N;function N(){var p=this.pattern,m=!1,E=this.options,C=0;if(!E.nonegate){for(var y=0,v=p.length;y<v&&p.charAt(y)==="!";y++)m=!m,C++;C&&(this.pattern=p.substr(C)),this.negate=m}}w.braceExpand=function(p,m){return D(p,m)},k.prototype.braceExpand=D;function D(p,m){if(m||(this instanceof k?m=this.options:m={}),p=typeof p>"u"?this.pattern:p,typeof p>"u")throw new TypeError("undefined pattern");return m.nobrace||!p.match(/\{.*\}/)?[p]:s(p)}k.prototype.parse=R;var A={};function R(p,m){if(p.length>1024*64)throw new TypeError("pattern is too long");var E=this.options;if(!E.noglobstar&&p==="**")return i;if(p==="")return"";var C="",y=!!E.nocase,v=!1,P=[],I=[],L,$=!1,U=-1,z=-1,oe=p.charAt(0)==="."?"":E.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",H=this;function B(){if(L){switch(L){case"*":C+=u,y=!0;break;case"?":C+=a,y=!0;break;default:C+="\\"+L;break}H.debug("clearStateChar %j %j",L,C),L=!1}}for(var j=0,te=p.length,re;j<te&&(re=p.charAt(j));j++){if(this.debug("%s %s %s %j",p,j,C,re),v&&l[re]){C+="\\"+re,v=!1;continue}switch(re){case"/":return!1;case"\\":B(),v=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",p,j,C,re),$){this.debug(" in class"),re==="!"&&j===z+1&&(re="^"),C+=re;continue}H.debug("call clearStateChar %j",L),B(),L=re,E.noext&&B();continue;case"(":if($){C+="(";continue}if(!L){C+="\\(";continue}P.push({type:L,start:j-1,reStart:C.length,open:o[L].open,close:o[L].close}),C+=L==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",L,C),L=!1;continue;case")":if($||!P.length){C+="\\)";continue}B(),y=!0;var q=P.pop();C+=q.close,q.type==="!"&&I.push(q),q.reEnd=C.length;continue;case"|":if($||!P.length||v){C+="\\|",v=!1;continue}B(),C+="|";continue;case"[":if(B(),$){C+="\\"+re;continue}$=!0,z=j,U=C.length,C+=re;continue;case"]":if(j===z+1||!$){C+="\\"+re,v=!1;continue}if($){var ie=p.substring(z+1,j);try{RegExp("["+ie+"]")}catch{var G=this.parse(ie,A);C=C.substr(0,U)+"\\["+G[0]+"\\]",y=y||G[1],$=!1;continue}}y=!0,$=!1,C+=re;continue;default:B(),v?v=!1:l[re]&&!(re==="^"&&$)&&(C+="\\"),C+=re}}for($&&(ie=p.substr(z+1),G=this.parse(ie,A),C=C.substr(0,U)+"\\["+G[0],y=y||G[1]),q=P.pop();q;q=P.pop()){var ne=C.slice(q.reStart+q.open.length);this.debug("setting tail",C,q),ne=ne.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(Et,xs,En){return En||(En="\\"),xs+xs+En+"|"}),this.debug(`tail=%j
57
- %s`,ne,ne,q,C);var ce=q.type==="*"?u:q.type==="?"?a:"\\"+q.type;y=!0,C=C.slice(0,q.reStart)+ce+"\\("+ne}B(),v&&(C+="\\\\");var Ee=!1;switch(C.charAt(0)){case".":case"[":case"(":Ee=!0}for(var fe=I.length-1;fe>-1;fe--){var Re=I[fe],xe=C.slice(0,Re.reStart),Rt=C.slice(Re.reStart,Re.reEnd-8),Me=C.slice(Re.reEnd-8,Re.reEnd),Vt=C.slice(Re.reEnd);Me+=Vt;var ws=xe.split("(").length-1,Cs=Vt;for(j=0;j<ws;j++)Cs=Cs.replace(/\)[+*?]?/,"");Vt=Cs;var Gr="";Vt===""&&m!==A&&(Gr="$");var _s=xe+Rt+Vt+Gr+Me;C=_s}if(C!==""&&y&&(C="(?=.)"+C),Ee&&(C=oe+C),m===A)return[C,y];if(!y)return T(p);var vn=E.nocase?"i":"";try{var Si=new RegExp("^"+C+"$",vn)}catch{return new RegExp("$.")}return Si._glob=p,Si._src=C,Si}w.makeRe=function(p,m){return new k(p,m||{}).makeRe()},k.prototype.makeRe=b;function b(){if(this.regexp||this.regexp===!1)return this.regexp;var p=this.set;if(!p.length)return this.regexp=!1,this.regexp;var m=this.options,E=m.noglobstar?u:m.dot?c:f,C=m.nocase?"i":"",y=p.map(function(v){return v.map(function(P){return P===i?E:typeof P=="string"?x(P):P._src}).join("\\/")}).join("|");y="^(?:"+y+")$",this.negate&&(y="^(?!"+y+").*$");try{this.regexp=new RegExp(y,C)}catch{this.regexp=!1}return this.regexp}w.match=function(p,m,E){E=E||{};var C=new k(m,E);return p=p.filter(function(y){return C.match(y)}),C.options.nonull&&!p.length&&p.push(m),p},k.prototype.match=O;function O(p,m){if(this.debug("match",p,this.pattern),this.comment)return!1;if(this.empty)return p==="";if(p==="/"&&m)return!0;var E=this.options;n.sep!=="/"&&(p=p.split(n.sep).join("/")),p=p.split(d),this.debug(this.pattern,"split",p);var C=this.set;this.debug(this.pattern,"set",C);var y,v;for(v=p.length-1;v>=0&&(y=p[v],!y);v--);for(v=0;v<C.length;v++){var P=C[v],I=p;E.matchBase&&P.length===1&&(I=[y]);var L=this.matchOne(I,P,m);if(L)return E.flipNegate?!0:!this.negate}return E.flipNegate?!1:this.negate}k.prototype.matchOne=function(p,m,E){var C=this.options;this.debug("matchOne",{this:this,file:p,pattern:m}),this.debug("matchOne",p.length,m.length);for(var y=0,v=0,P=p.length,I=m.length;y<P&&v<I;y++,v++){this.debug("matchOne loop");var L=m[v],$=p[y];if(this.debug(m,L,$),L===!1)return!1;if(L===i){this.debug("GLOBSTAR",[m,L,$]);var U=y,z=v+1;if(z===I){for(this.debug("** at the end");y<P;y++)if(p[y]==="."||p[y]===".."||!C.dot&&p[y].charAt(0)===".")return!1;return!0}for(;U<P;){var oe=p[U];if(this.debug(`
58
- globstar while`,p,U,m,z,oe),this.matchOne(p.slice(U),m.slice(z),E))return this.debug("globstar found match!",U,P,oe),!0;if(oe==="."||oe===".."||!C.dot&&oe.charAt(0)==="."){this.debug("dot detected!",p,U,m,z);break}this.debug("globstar swallow a segment, and continue"),U++}return!!(E&&(this.debug(`
59
- >>> no match, partial?`,p,U,m,z),U===P))}var H;if(typeof L=="string"?(C.nocase?H=$.toLowerCase()===L.toLowerCase():H=$===L,this.debug("string match",L,$,H)):(H=$.match(L),this.debug("pattern match",L,$,H)),!H)return!1}if(y===P&&v===I)return!0;if(y===P)return E;if(v===I){var B=y===P-1&&p[y]==="";return B}throw new Error("wtf?")};function T(p){return p.replace(/\\(.)/g,"$1")}function x(p){return p.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},function(e,t,r){var n=r(123);e.exports=n(i),e.exports.strict=n(s),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})});function i(o){var a=function(){return a.called?a.value:(a.called=!0,a.value=o.apply(this,arguments))};return a.called=!1,a}function s(o){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=o.apply(this,arguments)},u=o.name||"Function wrapped with `once`";return a.onceError=u+" shouldn't be called more than once",a.called=!1,a}},,function(e,t){e.exports=M("buffer")},,,,function(e,t){e.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}},function(e,t,r){var n=r(34),i=r(11).document,s=n(i)&&n(i.createElement);e.exports=function(o){return s?i.createElement(o):{}}},function(e,t){e.exports=!0},function(e,t,r){"use strict";var n=r(46);function i(s){var o,a;this.promise=new s(function(u,c){if(o!==void 0||a!==void 0)throw TypeError("Bad Promise constructor");o=u,a=c}),this.resolve=n(o),this.reject=n(a)}e.exports.f=function(s){return new i(s)}},function(e,t,r){var n=r(50).f,i=r(49),s=r(13)("toStringTag");e.exports=function(o,a,u){o&&!i(o=u?o:o.prototype,s)&&n(o,s,{configurable:!0,value:a})}},function(e,t,r){var n=r(107)("keys"),i=r(111);e.exports=function(s){return n[s]||(n[s]=i(s))}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(i){return isNaN(i=+i)?0:(i>0?n:r)(i)}},function(e,t,r){var n=r(131),i=r(67);e.exports=function(s){return n(i(s))}},function(e,t,r){e.exports=b;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(42),u=r(54).EventEmitter,c=r(0),f=r(22),l=r(76),h=r(218),d=r(115),g=d.alphasort,S=d.alphasorti,w=d.setopts,k=d.ownProp,_=r(223),N=r(2),D=d.childrenIgnored,A=d.isIgnored,R=r(61);function b(m,E,C){if(typeof E=="function"&&(C=E,E={}),E||(E={}),E.sync){if(C)throw new TypeError("callback provided to sync glob");return h(m,E)}return new x(m,E,C)}b.sync=h;var O=b.GlobSync=h.GlobSync;b.glob=b;function T(m,E){if(E===null||typeof E!="object")return m;for(var C=Object.keys(E),y=C.length;y--;)m[C[y]]=E[C[y]];return m}b.hasMagic=function(m,E){var C=T({},E);C.noprocess=!0;var y=new x(m,C),v=y.minimatch.set;if(!m)return!1;if(v.length>1)return!0;for(var P=0;P<v[0].length;P++)if(typeof v[0][P]!="string")return!0;return!1},b.Glob=x,a(x,u);function x(m,E,C){if(typeof E=="function"&&(C=E,E=null),E&&E.sync){if(C)throw new TypeError("callback provided to sync glob");return new O(m,E)}if(!(this instanceof x))return new x(m,E,C);w(this,m,E),this._didRealPath=!1;var y=this.minimatch.set.length;this.matches=new Array(y),typeof C=="function"&&(C=R(C),this.on("error",C),this.on("end",function($){C(null,$)}));var v=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(y===0)return L();for(var P=!0,I=0;I<y;I++)this._process(this.minimatch.set[I],I,!1,L);P=!1;function L(){--v._processing,v._processing<=0&&(P?process.nextTick(function(){v._finish()}):v._finish())}}x.prototype._finish=function(){if(f(this instanceof x),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();d.finish(this),this.emit("end",this.found)}},x.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var m=this.matches.length;if(m===0)return this._finish();for(var E=this,C=0;C<this.matches.length;C++)this._realpathSet(C,y);function y(){--m===0&&E._finish()}},x.prototype._realpathSet=function(m,E){var C=this.matches[m];if(!C)return E();var y=Object.keys(C),v=this,P=y.length;if(P===0)return E();var I=this.matches[m]=Object.create(null);y.forEach(function(L,$){L=v._makeAbs(L),i.realpath(L,v.realpathCache,function(U,z){U?U.syscall==="stat"?I[L]=!0:v.emit("error",U):I[z]=!0,--P===0&&(v.matches[m]=I,E())})})},x.prototype._mark=function(m){return d.mark(this,m)},x.prototype._makeAbs=function(m){return d.makeAbs(this,m)},x.prototype.abort=function(){this.aborted=!0,this.emit("abort")},x.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},x.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var m=this._emitQueue.slice(0);this._emitQueue.length=0;for(var E=0;E<m.length;E++){var C=m[E];this._emitMatch(C[0],C[1])}}if(this._processQueue.length){var y=this._processQueue.slice(0);this._processQueue.length=0;for(var E=0;E<y.length;E++){var v=y[E];this._processing--,this._process(v[0],v[1],v[2],v[3])}}}},x.prototype._process=function(m,E,C,y){if(f(this instanceof x),f(typeof y=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([m,E,C,y]);return}for(var v=0;typeof m[v]=="string";)v++;var P;switch(v){case m.length:this._processSimple(m.join("/"),E,y);return;case 0:P=null;break;default:P=m.slice(0,v).join("/");break}var I=m.slice(v),L;P===null?L=".":((l(P)||l(m.join("/")))&&(!P||!l(P))&&(P="/"+P),L=P);var $=this._makeAbs(L);if(D(this,L))return y();var U=I[0]===s.GLOBSTAR;U?this._processGlobStar(P,L,$,I,E,C,y):this._processReaddir(P,L,$,I,E,C,y)}},x.prototype._processReaddir=function(m,E,C,y,v,P,I){var L=this;this._readdir(C,P,function($,U){return L._processReaddir2(m,E,C,y,v,P,U,I)})},x.prototype._processReaddir2=function(m,E,C,y,v,P,I,L){if(!I)return L();for(var $=y[0],U=!!this.minimatch.negate,z=$._glob,oe=this.dot||z.charAt(0)===".",H=[],B=0;B<I.length;B++){var j=I[B];if(j.charAt(0)!=="."||oe){var te;U&&!m?te=!j.match($):te=j.match($),te&&H.push(j)}}var re=H.length;if(re===0)return L();if(y.length===1&&!this.mark&&!this.stat){this.matches[v]||(this.matches[v]=Object.create(null));for(var B=0;B<re;B++){var j=H[B];m&&(m!=="/"?j=m+"/"+j:j=m+j),j.charAt(0)==="/"&&!this.nomount&&(j=c.join(this.root,j)),this._emitMatch(v,j)}return L()}y.shift();for(var B=0;B<re;B++){var j=H[B],q;m&&(m!=="/"?j=m+"/"+j:j=m+j),this._process([j].concat(y),v,P,L)}L()},x.prototype._emitMatch=function(m,E){if(!this.aborted&&!A(this,E)){if(this.paused){this._emitQueue.push([m,E]);return}var C=l(E)?E:this._makeAbs(E);if(this.mark&&(E=this._mark(E)),this.absolute&&(E=C),!this.matches[m][E]){if(this.nodir){var y=this.cache[C];if(y==="DIR"||Array.isArray(y))return}this.matches[m][E]=!0;var v=this.statCache[C];v&&this.emit("stat",E,v),this.emit("match",E)}}},x.prototype._readdirInGlobStar=function(m,E){if(this.aborted)return;if(this.follow)return this._readdir(m,!1,E);var C="lstat\0"+m,y=this,v=_(C,P);v&&n.lstat(m,v);function P(I,L){if(I&&I.code==="ENOENT")return E();var $=L&&L.isSymbolicLink();y.symlinks[m]=$,!$&&L&&!L.isDirectory()?(y.cache[m]="FILE",E()):y._readdir(m,!1,E)}},x.prototype._readdir=function(m,E,C){if(!this.aborted&&(C=_("readdir\0"+m+"\0"+E,C),!!C)){if(E&&!k(this.symlinks,m))return this._readdirInGlobStar(m,C);if(k(this.cache,m)){var y=this.cache[m];if(!y||y==="FILE")return C();if(Array.isArray(y))return C(null,y)}var v=this;n.readdir(m,p(this,m,C))}};function p(m,E,C){return function(y,v){y?m._readdirError(E,y,C):m._readdirEntries(E,v,C)}}x.prototype._readdirEntries=function(m,E,C){if(!this.aborted){if(!this.mark&&!this.stat)for(var y=0;y<E.length;y++){var v=E[y];m==="/"?v=m+v:v=m+"/"+v,this.cache[v]=!0}return this.cache[m]=E,C(null,E)}},x.prototype._readdirError=function(m,E,C){if(!this.aborted){switch(E.code){case"ENOTSUP":case"ENOTDIR":var y=this._makeAbs(m);if(this.cache[y]="FILE",y===this.cwdAbs){var v=new Error(E.code+" invalid cwd "+this.cwd);v.path=this.cwd,v.code=E.code,this.emit("error",v),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(m)]=!1;break;default:this.cache[this._makeAbs(m)]=!1,this.strict&&(this.emit("error",E),this.abort()),this.silent||console.error("glob error",E);break}return C()}},x.prototype._processGlobStar=function(m,E,C,y,v,P,I){var L=this;this._readdir(C,P,function($,U){L._processGlobStar2(m,E,C,y,v,P,U,I)})},x.prototype._processGlobStar2=function(m,E,C,y,v,P,I,L){if(!I)return L();var $=y.slice(1),U=m?[m]:[],z=U.concat($);this._process(z,v,!1,L);var oe=this.symlinks[C],H=I.length;if(oe&&P)return L();for(var B=0;B<H;B++){var j=I[B];if(!(j.charAt(0)==="."&&!this.dot)){var te=U.concat(I[B],$);this._process(te,v,!0,L);var re=U.concat(I[B],y);this._process(re,v,!0,L)}}L()},x.prototype._processSimple=function(m,E,C){var y=this;this._stat(m,function(v,P){y._processSimple2(m,E,v,P,C)})},x.prototype._processSimple2=function(m,E,C,y,v){if(this.matches[E]||(this.matches[E]=Object.create(null)),!y)return v();if(m&&l(m)&&!this.nomount){var P=/[\/\\]$/.test(m);m.charAt(0)==="/"?m=c.join(this.root,m):(m=c.resolve(this.root,m),P&&(m+="/"))}process.platform==="win32"&&(m=m.replace(/\\/g,"/")),this._emitMatch(E,m),v()},x.prototype._stat=function(m,E){var C=this._makeAbs(m),y=m.slice(-1)==="/";if(m.length>this.maxLength)return E();if(!this.stat&&k(this.cache,C)){var v=this.cache[C];if(Array.isArray(v)&&(v="DIR"),!y||v==="DIR")return E(null,v);if(y&&v==="FILE")return E()}var P,I=this.statCache[C];if(I!==void 0){if(I===!1)return E(null,I);var L=I.isDirectory()?"DIR":"FILE";return y&&L==="FILE"?E():E(null,L,I)}var $=this,U=_("stat\0"+C,z);U&&n.lstat(C,U);function z(oe,H){if(H&&H.isSymbolicLink())return n.stat(C,function(B,j){B?$._stat2(m,C,null,H,E):$._stat2(m,C,B,j,E)});$._stat2(m,C,oe,H,E)}},x.prototype._stat2=function(m,E,C,y,v){if(C&&(C.code==="ENOENT"||C.code==="ENOTDIR"))return this.statCache[E]=!1,v();var P=m.slice(-1)==="/";if(this.statCache[E]=y,E.slice(-1)==="/"&&y&&!y.isDirectory())return v(null,!1,y);var I=!0;return y&&(I=y.isDirectory()?"DIR":"FILE"),this.cache[E]=this.cache[E]||I,P&&I==="FILE"?v():v(null,I,y)}},function(e,t,r){"use strict";function n(s){return s.charAt(0)==="/"}function i(s){var o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,a=o.exec(s),u=a[1]||"",c=!!(u&&u.charAt(1)!==":");return!!(a[2]||c)}e.exports=process.platform==="win32"?i:n,e.exports.posix=n,e.exports.win32=i},,,function(e,t){e.exports=M("tty")},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(C,y="lockfile"){return C=(0,(a||u()).default)(C),p(C)?E(C,y):{type:"success",object:m(C,y)}};var n;function i(){return n=S(r(2))}var s;function o(){return s=S(r(7))}var a;function u(){return a=S(r(122))}var c;function f(){return c=r(6)}var l;function h(){return l=r(4)}var d;function g(){return d=S(r(20))}function S(C){return C&&C.__esModule?C:{default:C}}let w=/^yarn lockfile v(\d+)$/,k={boolean:"BOOLEAN",string:"STRING",identifier:"IDENTIFIER",eof:"EOF",colon:"COLON",newline:"NEWLINE",comment:"COMMENT",indent:"INDENT",invalid:"INVALID",number:"NUMBER",comma:"COMMA"},_=[k.boolean,k.string,k.number];function N(C){return _.indexOf(C.type)>=0}function*D(C){let y=!1,v=1,P=0;function I(L,$){return{line:v,col:P,type:L,value:$}}for(;C.length;){let L=0;if(C[0]===`
60
- `||C[0]==="\r")L++,C[1]===`
61
- `&&L++,v++,P=0,yield I(k.newline);else if(C[0]==="#"){L++;let $="";for(;C[L]!==`
62
- `;)$+=C[L],L++;yield I(k.comment,$)}else if(C[0]===" ")if(y){let $="";for(let U=0;C[U]===" ";U++)$+=C[U];if($.length%2)throw new TypeError("Invalid number of spaces");L=$.length,yield I(k.indent,$.length/2)}else L++;else if(C[0]==='"'){let $="";for(let U=0;;U++){let z=C[U];if($+=z,U>0&&z==='"'&&!(C[U-1]==="\\"&&C[U-2]!=="\\"))break}L=$.length;try{yield I(k.string,JSON.parse($))}catch(U){if(U instanceof SyntaxError)yield I(k.invalid);else throw U}}else if(/^[0-9]/.test(C)){let $="";for(let U=0;/^[0-9]$/.test(C[U]);U++)$+=C[U];L=$.length,yield I(k.number,+$)}else if(/^true/.test(C))yield I(k.boolean,!0),L=4;else if(/^false/.test(C))yield I(k.boolean,!1),L=5;else if(C[0]===":")yield I(k.colon),L++;else if(C[0]===",")yield I(k.comma),L++;else if(/^[a-zA-Z\/-]/g.test(C)){let $="";for(let U=0;U<C.length;U++){let z=C[U];if(z===":"||z===" "||z===`
63
- `||z==="\r"||z===",")break;$+=z}L=$.length,yield I(k.string,$)}else yield I(k.invalid);L||(yield I(k.invalid)),P+=L,y=C[0]===`
64
- `||C[0]==="\r"&&C[1]===`
65
- `,C=C.slice(L)}yield I(k.eof)}class A{constructor(y,v="lockfile"){this.comments=[],this.tokens=D(y),this.fileLoc=v}onComment(y){let v=y.value;(0,(s||o()).default)(typeof v=="string","expected token value to be a string");let P=v.trim(),I=P.match(w);if(I){let L=+I[1];if(L>(c||f()).LOCKFILE_VERSION)throw new(l||h()).MessageError(`Can't install from a lockfile of version ${L} as you're on an old yarn version that only supports versions up to ${(c||f()).LOCKFILE_VERSION}. Run \`$ yarn self-update\` to upgrade to the latest version.`)}this.comments.push(P)}next(){let y=this.tokens.next();(0,(s||o()).default)(y,"expected a token");let v=y.done,P=y.value;if(v||!P)throw new Error("No more tokens");return P.type===k.comment?(this.onComment(P),this.next()):this.token=P}unexpected(y="Unexpected token"){throw new SyntaxError(`${y} ${this.token.line}:${this.token.col} in ${this.fileLoc}`)}expect(y){this.token.type===y?this.next():this.unexpected()}eat(y){return this.token.type===y?(this.next(),!0):!1}parse(y=0){let v=(0,(d||g()).default)();for(;;){let B=this.token;if(B.type===k.newline){let j=this.next();if(!y)continue;if(j.type!==k.indent)break;if(j.value===y)this.next();else break}else if(B.type===k.indent)if(B.value===y)this.next();else break;else{if(B.type===k.eof)break;if(B.type===k.string){let j=B.value;(0,(s||o()).default)(j,"Expected a key");let te=[j];for(this.next();this.token.type===k.comma;){this.next();let q=this.token;q.type!==k.string&&this.unexpected("Expected string");let ie=q.value;(0,(s||o()).default)(ie,"Expected a key"),te.push(ie),this.next()}let re=this.token;if(re.type===k.colon){this.next();let q=this.parse(y+1);for(var L=te,P=Array.isArray(L),I=0,L=P?L:L[Symbol.iterator]();;){var $;if(P){if(I>=L.length)break;$=L[I++]}else{if(I=L.next(),I.done)break;$=I.value}let ie=$;v[ie]=q}if(y&&this.token.type!==k.indent)break}else if(N(re)){for(var oe=te,U=Array.isArray(oe),z=0,oe=U?oe:oe[Symbol.iterator]();;){var H;if(U){if(z>=oe.length)break;H=oe[z++]}else{if(z=oe.next(),z.done)break;H=z.value}let q=H;v[q]=re.value}this.next()}else this.unexpected("Invalid value type")}else this.unexpected(`Unknown token: ${(n||i()).default.inspect(B)}`)}}return v}}let R="|||||||",b=">>>>>>>",O="=======",T="<<<<<<<";function x(C){let y=[[],[]],v=C.split(/\r?\n/g),P=!1;for(;v.length;){let I=v.shift();if(I.startsWith(T)){for(;v.length;){let L=v.shift();if(L===O){P=!1;break}else if(P||L.startsWith(R)){P=!0;continue}else y[0].push(L)}for(;v.length;){let L=v.shift();if(L.startsWith(b))break;y[1].push(L)}}else y[0].push(I),y[1].push(I)}return[y[0].join(`
66
- `),y[1].join(`
67
- `)]}function p(C){return C.includes(T)&&C.includes(O)&&C.includes(b)}function m(C,y){let v=new A(C,y);return v.next(),v.parse()}function E(C,y){let v=x(C);try{return{type:"merge",object:Object.assign({},m(v[0],y),m(v[1],y))}}catch(P){if(P instanceof SyntaxError)return{type:"conflict",object:{}};throw P}}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n;function i(){return n=s(r(20))}function s(u){return u&&u.__esModule?u:{default:u}}let o=r(212)("yarn");class a{constructor(c,f=1/0){this.concurrencyQueue=[],this.maxConcurrency=f,this.runningCount=0,this.warnedStuck=!1,this.alias=c,this.first=!0,this.running=(0,(n||i()).default)(),this.queue=(0,(n||i()).default)(),this.stuckTick=this.stuckTick.bind(this)}stillActive(){this.stuckTimer&&clearTimeout(this.stuckTimer),this.stuckTimer=setTimeout(this.stuckTick,5e3),this.stuckTimer.unref&&this.stuckTimer.unref()}stuckTick(){this.runningCount===1&&(this.warnedStuck=!0,o(`The ${JSON.stringify(this.alias)} blocking queue may be stuck. 5 seconds without any activity with 1 worker: ${Object.keys(this.running)[0]}`))}push(c,f){return this.first?this.first=!1:this.stillActive(),new Promise((l,h)=>{(this.queue[c]=this.queue[c]||[]).push({factory:f,resolve:l,reject:h}),this.running[c]||this.shift(c)})}shift(c){this.running[c]&&(delete this.running[c],this.runningCount--,this.stuckTimer&&(clearTimeout(this.stuckTimer),this.stuckTimer=null),this.warnedStuck&&(this.warnedStuck=!1,o(`${JSON.stringify(this.alias)} blocking queue finally resolved. Nothing to worry about.`)));let f=this.queue[c];if(!f)return;var l=f.shift();let h=l.resolve,d=l.reject,g=l.factory;f.length||delete this.queue[c];let S=()=>{this.shift(c),this.shiftConcurrencyQueue()},w=()=>{this.running[c]=!0,this.runningCount++,g().then(function(k){return h(k),S(),null}).catch(function(k){d(k),S()})};this.maybePushConcurrencyQueue(w)}maybePushConcurrencyQueue(c){this.runningCount<this.maxConcurrency?c():this.concurrencyQueue.push(c)}shiftConcurrencyQueue(){if(this.runningCount<this.maxConcurrency){let c=this.concurrencyQueue.shift();c&&c()}}}t.default=a},function(e,t){e.exports=function(r){try{return!!r()}catch{return!0}}},,,,,,,,,,,,,,,function(e,t,r){var n=r(47),i=r(13)("toStringTag"),s=n(function(){return arguments}())=="Arguments",o=function(a,u){try{return a[u]}catch{}};e.exports=function(a){var u,c,f;return a===void 0?"Undefined":a===null?"Null":typeof(c=o(u=Object(a),i))=="string"?c:s?n(u):(f=n(u))=="Object"&&typeof u.callee=="function"?"Arguments":f}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(11).document;e.exports=n&&n.documentElement},function(e,t,r){"use strict";var n=r(69),i=r(41),s=r(197),o=r(31),a=r(35),u=r(188),c=r(71),f=r(194),l=r(13)("iterator"),h=!([].keys&&"next"in[].keys()),d="@@iterator",g="keys",S="values",w=function(){return this};e.exports=function(k,_,N,D,A,R,b){u(N,_,D);var O=function($){if(!h&&$ in m)return m[$];switch($){case g:return function(){return new N(this,$)};case S:return function(){return new N(this,$)}}return function(){return new N(this,$)}},T=_+" Iterator",x=A==S,p=!1,m=k.prototype,E=m[l]||m[d]||A&&m[A],C=E||O(A),y=A?x?O("entries"):C:void 0,v=_=="Array"&&m.entries||E,P,I,L;if(v&&(L=f(v.call(new k)),L!==Object.prototype&&L.next&&(c(L,T,!0),!n&&typeof L[l]!="function"&&o(L,l,w))),x&&E&&E.name!==S&&(p=!0,C=function(){return E.call(this)}),(!n||b)&&(h||p||!m[l])&&o(m,l,C),a[_]=C,a[T]=w,A)if(P={values:x?C:O(S),keys:R?C:O(g),entries:y},b)for(I in P)I in m||s(m,I,P[I]);else i(i.P+i.F*(h||p),_,P);return P}},function(e,t){e.exports=function(r){try{return{e:!1,v:r()}}catch(n){return{e:!0,v:n}}}},function(e,t,r){var n=r(27),i=r(34),s=r(70);e.exports=function(o,a){if(n(o),i(a)&&a.constructor===o)return a;var u=s.f(o),c=u.resolve;return c(a),u.promise}},function(e,t){e.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},function(e,t,r){var n=r(23),i=r(11),s="__core-js_shared__",o=i[s]||(i[s]={});(e.exports=function(a,u){return o[a]||(o[a]=u!==void 0?u:{})})("versions",[]).push({version:n.version,mode:r(69)?"pure":"global",copyright:"\xA9 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(27),i=r(46),s=r(13)("species");e.exports=function(o,a){var u=n(o).constructor,c;return u===void 0||(c=n(u)[s])==null?a:i(c)}},function(e,t,r){var n=r(48),i=r(185),s=r(102),o=r(68),a=r(11),u=a.process,c=a.setImmediate,f=a.clearImmediate,l=a.MessageChannel,h=a.Dispatch,d=0,g={},S="onreadystatechange",w,k,_,N=function(){var A=+this;if(g.hasOwnProperty(A)){var R=g[A];delete g[A],R()}},D=function(A){N.call(A.data)};(!c||!f)&&(c=function(R){for(var b=[],O=1;arguments.length>O;)b.push(arguments[O++]);return g[++d]=function(){i(typeof R=="function"?R:Function(R),b)},w(d),d},f=function(R){delete g[R]},r(47)(u)=="process"?w=function(A){u.nextTick(n(N,A,1))}:h&&h.now?w=function(A){h.now(n(N,A,1))}:l?(k=new l,_=k.port2,k.port1.onmessage=D,w=n(_.postMessage,_,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(w=function(A){a.postMessage(A+"","*")},a.addEventListener("message",D,!1)):S in o("script")?w=function(A){s.appendChild(o("script"))[S]=function(){s.removeChild(this),N.call(A)}}:w=function(A){setTimeout(n(N,A,1),0)}),e.exports={set:c,clear:f}},function(e,t,r){var n=r(73),i=Math.min;e.exports=function(s){return s>0?i(n(s),9007199254740991):0}},function(e,t){var r=0,n=Math.random();e.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++r+n).toString(36))}},function(e,t,r){t=e.exports=i.debug=i.default=i,t.coerce=c,t.disable=a,t.enable=o,t.enabled=u,t.humanize=r(229),t.instances=[],t.names=[],t.skips=[],t.formatters={};function n(f){var l=0,h;for(h in f)l=(l<<5)-l+f.charCodeAt(h),l|=0;return t.colors[Math.abs(l)%t.colors.length]}function i(f){var l;function h(){if(h.enabled){var d=h,g=+new Date,S=g-(l||g);d.diff=S,d.prev=l,d.curr=g,l=g;for(var w=new Array(arguments.length),k=0;k<w.length;k++)w[k]=arguments[k];w[0]=t.coerce(w[0]),typeof w[0]!="string"&&w.unshift("%O");var _=0;w[0]=w[0].replace(/%([a-zA-Z%])/g,function(D,A){if(D==="%%")return D;_++;var R=t.formatters[A];if(typeof R=="function"){var b=w[_];D=R.call(d,b),w.splice(_,1),_--}return D}),t.formatArgs.call(d,w);var N=h.log||t.log||console.log.bind(console);N.apply(d,w)}}return h.namespace=f,h.enabled=t.enabled(f),h.useColors=t.useColors(),h.color=n(f),h.destroy=s,typeof t.init=="function"&&t.init(h),t.instances.push(h),h}function s(){var f=t.instances.indexOf(this);return f!==-1?(t.instances.splice(f,1),!0):!1}function o(f){t.save(f),t.names=[],t.skips=[];var l,h=(typeof f=="string"?f:"").split(/[\s,]+/),d=h.length;for(l=0;l<d;l++)h[l]&&(f=h[l].replace(/\*/g,".*?"),f[0]==="-"?t.skips.push(new RegExp("^"+f.substr(1)+"$")):t.names.push(new RegExp("^"+f+"$")));for(l=0;l<t.instances.length;l++){var g=t.instances[l];g.enabled=t.enabled(g.namespace)}}function a(){t.enable("")}function u(f){if(f[f.length-1]==="*")return!0;var l,h;for(l=0,h=t.skips.length;l<h;l++)if(t.skips[l].test(f))return!1;for(l=0,h=t.names.length;l<h;l++)if(t.names[l].test(f))return!0;return!1}function c(f){return f instanceof Error?f.stack||f.message:f}},,function(e,t,r){e.exports=f,f.realpath=f,f.sync=l,f.realpathSync=l,f.monkeypatch=h,f.unmonkeypatch=d;var n=r(3),i=n.realpath,s=n.realpathSync,o=process.version,a=/^v[0-5]\./.test(o),u=r(217);function c(g){return g&&g.syscall==="realpath"&&(g.code==="ELOOP"||g.code==="ENOMEM"||g.code==="ENAMETOOLONG")}function f(g,S,w){if(a)return i(g,S,w);typeof S=="function"&&(w=S,S=null),i(g,S,function(k,_){c(k)?u.realpath(g,S,w):w(k,_)})}function l(g,S){if(a)return s(g,S);try{return s(g,S)}catch(w){if(c(w))return u.realpathSync(g,S);throw w}}function h(){n.realpath=f,n.realpathSync=l}function d(){n.realpath=i,n.realpathSync=s}},function(e,t,r){t.alphasort=c,t.alphasorti=u,t.setopts=h,t.ownProp=n,t.makeAbs=S,t.finish=d,t.mark=g,t.isIgnored=w,t.childrenIgnored=k;function n(_,N){return Object.prototype.hasOwnProperty.call(_,N)}var i=r(0),s=r(60),o=r(76),a=s.Minimatch;function u(_,N){return _.toLowerCase().localeCompare(N.toLowerCase())}function c(_,N){return _.localeCompare(N)}function f(_,N){_.ignore=N.ignore||[],Array.isArray(_.ignore)||(_.ignore=[_.ignore]),_.ignore.length&&(_.ignore=_.ignore.map(l))}function l(_){var N=null;if(_.slice(-3)==="/**"){var D=_.replace(/(\/\*\*)+$/,"");N=new a(D,{dot:!0})}return{matcher:new a(_,{dot:!0}),gmatcher:N}}function h(_,N,D){if(D||(D={}),D.matchBase&&N.indexOf("/")===-1){if(D.noglobstar)throw new Error("base matching requires globstar");N="**/"+N}_.silent=!!D.silent,_.pattern=N,_.strict=D.strict!==!1,_.realpath=!!D.realpath,_.realpathCache=D.realpathCache||Object.create(null),_.follow=!!D.follow,_.dot=!!D.dot,_.mark=!!D.mark,_.nodir=!!D.nodir,_.nodir&&(_.mark=!0),_.sync=!!D.sync,_.nounique=!!D.nounique,_.nonull=!!D.nonull,_.nosort=!!D.nosort,_.nocase=!!D.nocase,_.stat=!!D.stat,_.noprocess=!!D.noprocess,_.absolute=!!D.absolute,_.maxLength=D.maxLength||1/0,_.cache=D.cache||Object.create(null),_.statCache=D.statCache||Object.create(null),_.symlinks=D.symlinks||Object.create(null),f(_,D),_.changedCwd=!1;var A=process.cwd();n(D,"cwd")?(_.cwd=i.resolve(D.cwd),_.changedCwd=_.cwd!==A):_.cwd=A,_.root=D.root||i.resolve(_.cwd,"/"),_.root=i.resolve(_.root),process.platform==="win32"&&(_.root=_.root.replace(/\\/g,"/")),_.cwdAbs=o(_.cwd)?_.cwd:S(_,_.cwd),process.platform==="win32"&&(_.cwdAbs=_.cwdAbs.replace(/\\/g,"/")),_.nomount=!!D.nomount,D.nonegate=!0,D.nocomment=!0,_.minimatch=new a(N,D),_.options=_.minimatch.options}function d(_){for(var N=_.nounique,D=N?[]:Object.create(null),A=0,R=_.matches.length;A<R;A++){var b=_.matches[A];if(!b||Object.keys(b).length===0){if(_.nonull){var O=_.minimatch.globSet[A];N?D.push(O):D[O]=!0}}else{var T=Object.keys(b);N?D.push.apply(D,T):T.forEach(function(x){D[x]=!0})}}if(N||(D=Object.keys(D)),_.nosort||(D=D.sort(_.nocase?u:c)),_.mark){for(var A=0;A<D.length;A++)D[A]=_._mark(D[A]);_.nodir&&(D=D.filter(function(x){var p=!/\/$/.test(x),m=_.cache[x]||_.cache[S(_,x)];return p&&m&&(p=m!=="DIR"&&!Array.isArray(m)),p}))}_.ignore.length&&(D=D.filter(function(x){return!w(_,x)})),_.found=D}function g(_,N){var D=S(_,N),A=_.cache[D],R=N;if(A){var b=A==="DIR"||Array.isArray(A),O=N.slice(-1)==="/";if(b&&!O?R+="/":!b&&O&&(R=R.slice(0,-1)),R!==N){var T=S(_,R);_.statCache[T]=_.statCache[D],_.cache[T]=_.cache[D]}}return R}function S(_,N){var D=N;return N.charAt(0)==="/"?D=i.join(_.root,N):o(N)||N===""?D=N:_.changedCwd?D=i.resolve(_.cwd,N):D=i.resolve(N),process.platform==="win32"&&(D=D.replace(/\\/g,"/")),D}function w(_,N){return _.ignore.length?_.ignore.some(function(D){return D.matcher.match(N)||!!(D.gmatcher&&D.gmatcher.match(N))}):!1}function k(_,N){return _.ignore.length?_.ignore.some(function(D){return!!(D.gmatcher&&D.gmatcher.match(N))}):!1}},function(e,t,r){var n=r(0),i=r(3),s=parseInt("0777",8);e.exports=o.mkdirp=o.mkdirP=o;function o(a,u,c,f){typeof u=="function"?(c=u,u={}):(!u||typeof u!="object")&&(u={mode:u});var l=u.mode,h=u.fs||i;l===void 0&&(l=s&~process.umask()),f||(f=null);var d=c||function(){};a=n.resolve(a),h.mkdir(a,l,function(g){if(!g)return f=f||a,d(null,f);switch(g.code){case"ENOENT":o(n.dirname(a),u,function(S,w){S?d(S,w):o(a,u,d,w)});break;default:h.stat(a,function(S,w){S||!w.isDirectory()?d(g,f):d(null,f)});break}})}o.sync=function a(u,c,f){(!c||typeof c!="object")&&(c={mode:c});var l=c.mode,h=c.fs||i;l===void 0&&(l=s&~process.umask()),f||(f=null),u=n.resolve(u);try{h.mkdirSync(u,l),f=f||u}catch(g){switch(g.code){case"ENOENT":f=a(n.dirname(u),c,f),a(u,c,f);break;default:var d;try{d=h.statSync(u)}catch{throw g}if(!d.isDirectory())throw g;break}}return f}},,,,,,function(e,t,r){"use strict";e.exports=n=>{if(typeof n!="string")throw new TypeError("Expected a string, got "+typeof n);return n.charCodeAt(0)===65279?n.slice(1):n}},function(e,t){e.exports=r;function r(n,i){if(n&&i)return r(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(o){s[o]=n[o]}),s;function s(){for(var o=new Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];var u=n.apply(this,o),c=o[o.length-1];return typeof u=="function"&&u!==c&&Object.keys(c).forEach(function(f){u[f]=c[f]}),u}}},,,,,,,,function(e,t,r){var n=r(47);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(i){return n(i)=="String"?i.split(""):Object(i)}},function(e,t,r){var n=r(195),i=r(101);e.exports=Object.keys||function(o){return n(o,i)}},function(e,t,r){var n=r(67);e.exports=function(i){return Object(n(i))}},,,,,,,,,,,,function(e,t){e.exports={name:"yarn",installationMethod:"unknown",version:"1.10.0-0",license:"BSD-2-Clause",preferGlobal:!0,description:"\u{1F4E6}\u{1F408} Fast, reliable, and secure dependency management.",dependencies:{"@zkochan/cmd-shim":"^2.2.4","babel-runtime":"^6.26.0",bytes:"^3.0.0",camelcase:"^4.0.0",chalk:"^2.1.0",commander:"^2.9.0",death:"^1.0.0",debug:"^3.0.0","deep-equal":"^1.0.1","detect-indent":"^5.0.0",dnscache:"^1.0.1",glob:"^7.1.1","gunzip-maybe":"^1.4.0","hash-for-dep":"^1.2.3","imports-loader":"^0.8.0",ini:"^1.3.4",inquirer:"^3.0.1",invariant:"^2.2.0","is-builtin-module":"^2.0.0","is-ci":"^1.0.10","is-webpack-bundle":"^1.0.0",leven:"^2.0.0","loud-rejection":"^1.2.0",micromatch:"^2.3.11",mkdirp:"^0.5.1","node-emoji":"^1.6.1","normalize-url":"^2.0.0","npm-logical-tree":"^1.2.1","object-path":"^0.11.2","proper-lockfile":"^2.0.0",puka:"^1.0.0",read:"^1.0.7",request:"^2.87.0","request-capture-har":"^1.2.2",rimraf:"^2.5.0",semver:"^5.1.0",ssri:"^5.3.0","strip-ansi":"^4.0.0","strip-bom":"^3.0.0","tar-fs":"^1.16.0","tar-stream":"^1.6.1",uuid:"^3.0.1","v8-compile-cache":"^2.0.0","validate-npm-package-license":"^3.0.3",yn:"^2.0.0"},devDependencies:{"babel-core":"^6.26.0","babel-eslint":"^7.2.3","babel-loader":"^6.2.5","babel-plugin-array-includes":"^2.0.3","babel-plugin-transform-builtin-extend":"^1.1.2","babel-plugin-transform-inline-imports-commonjs":"^1.0.0","babel-plugin-transform-runtime":"^6.4.3","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-preset-stage-0":"^6.0.0",babylon:"^6.5.0",commitizen:"^2.9.6","cz-conventional-changelog":"^2.0.0",eslint:"^4.3.0","eslint-config-fb-strict":"^22.0.0","eslint-plugin-babel":"^5.0.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-jasmine":"^2.6.2","eslint-plugin-jest":"^21.0.0","eslint-plugin-jsx-a11y":"^6.0.2","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","eslint-plugin-relay":"^0.0.24","eslint-plugin-yarn-internal":"file:scripts/eslint-rules",execa:"^0.10.0","flow-bin":"^0.66.0","git-release-notes":"^3.0.0",gulp:"^3.9.0","gulp-babel":"^7.0.0","gulp-if":"^2.0.1","gulp-newer":"^1.0.0","gulp-plumber":"^1.0.1","gulp-sourcemaps":"^2.2.0","gulp-util":"^3.0.7","gulp-watch":"^5.0.0",jest:"^22.4.4",jsinspect:"^0.12.6",minimatch:"^3.0.4","mock-stdin":"^0.3.0",prettier:"^1.5.2",temp:"^0.8.3",webpack:"^2.1.0-beta.25",yargs:"^6.3.0"},resolutions:{sshpk:"^1.14.2"},engines:{node:">=4.0.0"},repository:"yarnpkg/yarn",bin:{yarn:"./bin/yarn.js",yarnpkg:"./bin/yarn.js"},scripts:{build:"gulp build","build-bundle":"node ./scripts/build-webpack.js","build-chocolatey":"powershell ./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash ./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat",changelog:"git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect ./src",lint:"eslint . && flow check","pkg-tests":"yarn --cwd packages/pkg-tests jest yarn.test.js",prettier:"eslint src __tests__ --fix","release-branch":"./scripts/release-branch.sh",test:"yarn lint && yarn test-only","test-only":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --verbose","test-coverage":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose",watch:"gulp watch",commit:"git-cz"},jest:{collectCoverageFrom:["src/**/*.js"],testEnvironment:"node",modulePathIgnorePatterns:["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],testPathIgnorePatterns:["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},config:{commitizen:{path:"./node_modules/cz-conventional-changelog"}}}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=S;var n;function i(){return n=r(12)}var s;function o(){return s=r(6)}var a;function u(){return a=r(145)}let c=process.version;function f(w){return w.indexOf("true")===0||w.indexOf("false")===0||/[:\s\n\\",\[\]]/g.test(w)||/^[0-9]/g.test(w)||!/^[a-zA-Z]/g.test(w)}function l(w){return typeof w=="boolean"||typeof w=="number"||f(w)?JSON.stringify(w):w}let h={name:1,version:2,uid:3,resolved:4,integrity:5,registry:6,dependencies:7};function d(w,k){return h[w]||h[k]?(h[w]||100)>(h[k]||100)?1:-1:(0,(n||i()).sortAlpha)(w,k)}function g(w,k){if(typeof w!="object")throw new TypeError;let _=k.indent,N=[],D=Object.keys(w).sort(d),A=[];for(let R=0;R<D.length;R++){let b=D[R],O=w[b];if(O==null||A.indexOf(b)>=0)continue;let T=[b];if(typeof O=="object")for(let p=R+1;p<D.length;p++){let m=D[p];O===w[m]&&T.push(m)}let x=T.sort((n||i()).sortAlpha).map(l).join(", ");if(typeof O=="string"||typeof O=="boolean"||typeof O=="number")N.push(`${x} ${l(O)}`);else if(typeof O=="object")N.push(`${x}:
68
- ${g(O,{indent:_+" "})}`+(k.topLevel?`
69
- `:""));else throw new TypeError;A=A.concat(T)}return _+N.join(`
70
- ${_}`)}function S(w,k,_){let N=g(w,{indent:"",topLevel:!0});if(k)return N;let D=[];return D.push("# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."),D.push(`# yarn lockfile v${(s||o()).LOCKFILE_VERSION}`),_&&(D.push(`# yarn v${(a||u()).version}`),D.push(`# node ${c}`)),D.push(`
71
- `),D.push(N),D.join(`
72
- `)}},,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileDatesEqual=t.copyFile=t.unlink=void 0;var n;function i(){return n=f(r(1))}let s=(()=>{var b=(0,(n||i()).default)(function*(O,T,x){let p=O===void 0,m=O||-1;if(l===void 0){let E=yield g(T);l=R(E.mtime,x.mtime)}if(!l){if(p)try{m=yield S(T,"a",x.mode)}catch{try{m=yield S(T,"r",x.mode)}catch{return}}try{m&&(yield w(m,x.atime,x.mtime))}catch{}finally{p&&m&&(yield d(m))}}});return function(T,x,p){return b.apply(this,arguments)}})();var o;function a(){return o=f(r(3))}var u;function c(){return u=r(40)}function f(b){return b&&b.__esModule?b:{default:b}}let l,h=(0,(u||c()).promisify)((o||a()).default.readFile),d=(0,(u||c()).promisify)((o||a()).default.close),g=(0,(u||c()).promisify)((o||a()).default.lstat),S=(0,(u||c()).promisify)((o||a()).default.open),w=(0,(u||c()).promisify)((o||a()).default.futimes),k=(0,(u||c()).promisify)((o||a()).default.write),_=t.unlink=(0,(u||c()).promisify)(r(233)),N=t.copyFile=(()=>{var b=(0,(n||i()).default)(function*(O,T){try{yield _(O.dest),yield D(O.src,O.dest,0,O)}finally{T&&T()}});return function(T,x){return b.apply(this,arguments)}})(),D=(b,O,T,x)=>(o||a()).default.copyFile?new Promise((p,m)=>(o||a()).default.copyFile(b,O,T,E=>{E?m(E):s(void 0,O,x).then(()=>p()).catch(C=>m(C))})):A(b,O,T,x),A=(()=>{var b=(0,(n||i()).default)(function*(O,T,x,p){let m=yield S(T,"w",p.mode);try{let E=yield h(O);yield k(m,E,0,E.length),yield s(m,T,p)}finally{yield d(m)}});return function(T,x,p,m){return b.apply(this,arguments)}})(),R=t.fileDatesEqual=(b,O)=>{let T=b.getTime(),x=O.getTime();if(process.platform!=="win32")return T===x;if(Math.abs(T-x)<=1)return!0;let p=Math.floor(T/1e3),m=Math.floor(x/1e3);return T-p*1e3===0||x-m*1e3===0?p===m:T===x}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFakeRoot=i,t.isRootUser=s;function n(){return process.platform!=="win32"&&process.getuid?process.getuid():null}t.default=s(n())&&!i();function i(){return!!process.env.FAKEROOTKEY}function s(o){return o===0}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDataDir=a,t.getCacheDir=u,t.getConfigDir=c;let n=r(0),i=r(45).default,s=n.join(i,".config","yarn"),o=n.join(i,".cache","yarn");function a(){if(process.platform==="win32"){let l=f();return l==null?s:n.join(l,"Data")}else return process.env.XDG_DATA_HOME?n.join(process.env.XDG_DATA_HOME,"yarn"):s}function u(){return process.platform==="win32"?n.join(f()||n.join(i,"AppData","Local","Yarn"),"Cache"):process.env.XDG_CACHE_HOME?n.join(process.env.XDG_CACHE_HOME,"yarn"):process.platform==="darwin"?n.join(i,"Library","Caches","Yarn"):o}function c(){if(process.platform==="win32"){let l=f();return l==null?s:n.join(l,"Config")}else return process.env.XDG_CONFIG_HOME?n.join(process.env.XDG_CONFIG_HOME,"yarn"):s}function f(){return process.env.LOCALAPPDATA?n.join(process.env.LOCALAPPDATA,"Yarn"):null}},,function(e,t,r){e.exports={default:r(179),__esModule:!0}},function(e,t,r){"use strict";e.exports=n;function n(o,a,u){o instanceof RegExp&&(o=i(o,u)),a instanceof RegExp&&(a=i(a,u));var c=s(o,a,u);return c&&{start:c[0],end:c[1],pre:u.slice(0,c[0]),body:u.slice(c[0]+o.length,c[1]),post:u.slice(c[1]+a.length)}}function i(o,a){var u=a.match(o);return u?u[0]:null}n.range=s;function s(o,a,u){var c,f,l,h,d,g=u.indexOf(o),S=u.indexOf(a,g+1),w=g;if(g>=0&&S>0){for(c=[],l=u.length;w>=0&&!d;)w==g?(c.push(w),g=u.indexOf(o,w+1)):c.length==1?d=[c.pop(),S]:(f=c.pop(),f<l&&(l=f,h=S),S=u.indexOf(a,w+1)),w=g<S&&g>=0?g:S;c.length&&(d=[l,h])}return d}},function(e,t,r){var n=r(178),i=r(174);e.exports=g;var s="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",u="\0COMMA"+Math.random()+"\0",c="\0PERIOD"+Math.random()+"\0";function f(A){return parseInt(A,10)==A?parseInt(A,10):A.charCodeAt(0)}function l(A){return A.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(u).split("\\.").join(c)}function h(A){return A.split(s).join("\\").split(o).join("{").split(a).join("}").split(u).join(",").split(c).join(".")}function d(A){if(!A)return[""];var R=[],b=i("{","}",A);if(!b)return A.split(",");var O=b.pre,T=b.body,x=b.post,p=O.split(",");p[p.length-1]+="{"+T+"}";var m=d(x);return x.length&&(p[p.length-1]+=m.shift(),p.push.apply(p,m)),R.push.apply(R,p),R}function g(A){return A?(A.substr(0,2)==="{}"&&(A="\\{\\}"+A.substr(2)),D(l(A),!0).map(h)):[]}function S(A){return A}function w(A){return"{"+A+"}"}function k(A){return/^-?0\d/.test(A)}function _(A,R){return A<=R}function N(A,R){return A>=R}function D(A,R){var b=[],O=i("{","}",A);if(!O||/\$$/.test(O.pre))return[A];var T=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(O.body),x=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(O.body),p=T||x,m=O.body.indexOf(",")>=0;if(!p&&!m)return O.post.match(/,.*\}/)?(A=O.pre+"{"+O.body+a+O.post,D(A)):[A];var E;if(p)E=O.body.split(/\.\./);else if(E=d(O.body),E.length===1&&(E=D(E[0],!1).map(w),E.length===1)){var y=O.post.length?D(O.post,!1):[""];return y.map(function(ne){return O.pre+E[0]+ne})}var C=O.pre,y=O.post.length?D(O.post,!1):[""],v;if(p){var P=f(E[0]),I=f(E[1]),L=Math.max(E[0].length,E[1].length),$=E.length==3?Math.abs(f(E[2])):1,U=_,z=I<P;z&&($*=-1,U=N);var oe=E.some(k);v=[];for(var H=P;U(H,I);H+=$){var B;if(x)B=String.fromCharCode(H),B==="\\"&&(B="");else if(B=String(H),oe){var j=L-B.length;if(j>0){var te=new Array(j+1).join("0");H<0?B="-"+te+B.slice(1):B=te+B}}v.push(B)}}else v=n(E,function(G){return D(G,!1)});for(var re=0;re<v.length;re++)for(var q=0;q<y.length;q++){var ie=C+v[re]+y[q];(!R||p||ie)&&b.push(ie)}return b}},function(e,t,r){"use strict";function n(i){let s=!1,o=!1,a=!1;for(let u=0;u<i.length;u++){let c=i[u];s&&/[a-zA-Z]/.test(c)&&c.toUpperCase()===c?(i=i.substr(0,u)+"-"+i.substr(u),s=!1,a=o,o=!0,u++):o&&a&&/[a-zA-Z]/.test(c)&&c.toLowerCase()===c?(i=i.substr(0,u-1)+"-"+i.substr(u-1),a=o,o=!1,s=!0):(s=c.toLowerCase()===c,a=o,o=c.toUpperCase()===c)}return i}e.exports=function(i){return arguments.length>1?i=Array.from(arguments).map(o=>o.trim()).filter(o=>o.length).join("-"):i=i.trim(),i.length===0?"":i.length===1?i.toLowerCase():/^[a-z0-9]+$/.test(i)?i:(i!==i.toLowerCase()&&(i=n(i)),i.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(o,a)=>a.toUpperCase()))}},,function(e,t){e.exports=function(n,i){for(var s=[],o=0;o<n.length;o++){var a=i(n[o],o);r(a)?s.push.apply(s,a):s.push(a)}return s};var r=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"}},function(e,t,r){r(205),r(207),r(210),r(206),r(208),r(209),e.exports=r(23).Promise},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(r,n,i,s){if(!(r instanceof n)||s!==void 0&&s in r)throw TypeError(i+": incorrect invocation!");return r}},function(e,t,r){var n=r(74),i=r(110),s=r(200);e.exports=function(o){return function(a,u,c){var f=n(a),l=i(f.length),h=s(c,l),d;if(o&&u!=u){for(;l>h;)if(d=f[h++],d!=d)return!0}else for(;l>h;h++)if((o||h in f)&&f[h]===u)return o||h||0;return!o&&-1}}},function(e,l,r){var n=r(48),i=r(187),s=r(186),o=r(27),a=r(110),u=r(203),c={},f={},l=e.exports=function(h,d,g,S,w){var k=w?function(){return h}:u(h),_=n(g,S,d?2:1),N=0,D,A,R,b;if(typeof k!="function")throw TypeError(h+" is not iterable!");if(s(k)){for(D=a(h.length);D>N;N++)if(b=d?_(o(A=h[N])[0],A[1]):_(h[N]),b===c||b===f)return b}else for(R=k.call(h);!(A=R.next()).done;)if(b=i(R,_,A.value,d),b===c||b===f)return b};l.BREAK=c,l.RETURN=f},function(e,t,r){e.exports=!r(33)&&!r(85)(function(){return Object.defineProperty(r(68)("div"),"a",{get:function(){return 7}}).a!=7})},function(e,t){e.exports=function(r,n,i){var s=i===void 0;switch(n.length){case 0:return s?r():r.call(i);case 1:return s?r(n[0]):r.call(i,n[0]);case 2:return s?r(n[0],n[1]):r.call(i,n[0],n[1]);case 3:return s?r(n[0],n[1],n[2]):r.call(i,n[0],n[1],n[2]);case 4:return s?r(n[0],n[1],n[2],n[3]):r.call(i,n[0],n[1],n[2],n[3])}return r.apply(i,n)}},function(e,t,r){var n=r(35),i=r(13)("iterator"),s=Array.prototype;e.exports=function(o){return o!==void 0&&(n.Array===o||s[i]===o)}},function(e,t,r){var n=r(27);e.exports=function(i,s,o,a){try{return a?s(n(o)[0],o[1]):s(o)}catch(c){var u=i.return;throw u!==void 0&&n(u.call(i)),c}}},function(e,t,r){"use strict";var n=r(192),i=r(106),s=r(71),o={};r(31)(o,r(13)("iterator"),function(){return this}),e.exports=function(a,u,c){a.prototype=n(o,{next:i(1,c)}),s(a,u+" Iterator")}},function(e,t,r){var n=r(13)("iterator"),i=!1;try{var s=[7][n]();s.return=function(){i=!0},Array.from(s,function(){throw 2})}catch{}e.exports=function(o,a){if(!a&&!i)return!1;var u=!1;try{var c=[7],f=c[n]();f.next=function(){return{done:u=!0}},c[n]=function(){return f},o(c)}catch{}return u}},function(e,t){e.exports=function(r,n){return{value:n,done:!!r}}},function(e,t,r){var n=r(11),i=r(109).set,s=n.MutationObserver||n.WebKitMutationObserver,o=n.process,a=n.Promise,u=r(47)(o)=="process";e.exports=function(){var c,f,l,h=function(){var w,k;for(u&&(w=o.domain)&&w.exit();c;){k=c.fn,c=c.next;try{k()}catch(_){throw c?l():f=void 0,_}}f=void 0,w&&w.enter()};if(u)l=function(){o.nextTick(h)};else if(s&&!(n.navigator&&n.navigator.standalone)){var d=!0,g=document.createTextNode("");new s(h).observe(g,{characterData:!0}),l=function(){g.data=d=!d}}else if(a&&a.resolve){var S=a.resolve(void 0);l=function(){S.then(h)}}else l=function(){i.call(n,h)};return function(w){var k={fn:w,next:void 0};f&&(f.next=k),c||(c=k,l()),f=k}}},function(e,t,r){var n=r(27),i=r(193),s=r(101),o=r(72)("IE_PROTO"),a=function(){},u="prototype",c=function(){var f=r(68)("iframe"),l=s.length,h="<",d=">",g;for(f.style.display="none",r(102).appendChild(f),f.src="javascript:",g=f.contentWindow.document,g.open(),g.write(h+"script"+d+"document.F=Object"+h+"/script"+d),g.close(),c=g.F;l--;)delete c[u][s[l]];return c()};e.exports=Object.create||function(l,h){var d;return l!==null?(a[u]=n(l),d=new a,a[u]=null,d[o]=l):d=c(),h===void 0?d:i(d,h)}},function(e,t,r){var n=r(50),i=r(27),s=r(132);e.exports=r(33)?Object.defineProperties:function(a,u){i(a);for(var c=s(u),f=c.length,l=0,h;f>l;)n.f(a,h=c[l++],u[h]);return a}},function(e,t,r){var n=r(49),i=r(133),s=r(72)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(a){return a=i(a),n(a,s)?a[s]:typeof a.constructor=="function"&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?o:null}},function(e,t,r){var n=r(49),i=r(74),s=r(182)(!1),o=r(72)("IE_PROTO");e.exports=function(a,u){var c=i(a),f=0,l=[],h;for(h in c)h!=o&&n(c,h)&&l.push(h);for(;u.length>f;)n(c,h=u[f++])&&(~s(l,h)||l.push(h));return l}},function(e,t,r){var n=r(31);e.exports=function(i,s,o){for(var a in s)o&&i[a]?i[a]=s[a]:n(i,a,s[a]);return i}},function(e,t,r){e.exports=r(31)},function(e,t,r){"use strict";var n=r(11),i=r(23),s=r(50),o=r(33),a=r(13)("species");e.exports=function(u){var c=typeof i[u]=="function"?i[u]:n[u];o&&c&&!c[a]&&s.f(c,a,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(73),i=r(67);e.exports=function(s){return function(o,a){var u=String(i(o)),c=n(a),f=u.length,l,h;return c<0||c>=f?s?"":void 0:(l=u.charCodeAt(c),l<55296||l>56319||c+1===f||(h=u.charCodeAt(c+1))<56320||h>57343?s?u.charAt(c):l:s?u.slice(c,c+2):(l-55296<<10)+(h-56320)+65536)}}},function(e,t,r){var n=r(73),i=Math.max,s=Math.min;e.exports=function(o,a){return o=n(o),o<0?i(o+a,0):s(o,a)}},function(e,t,r){var n=r(34);e.exports=function(i,s){if(!n(i))return i;var o,a;if(s&&typeof(o=i.toString)=="function"&&!n(a=o.call(i))||typeof(o=i.valueOf)=="function"&&!n(a=o.call(i))||!s&&typeof(o=i.toString)=="function"&&!n(a=o.call(i)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(11),i=n.navigator;e.exports=i&&i.userAgent||""},function(e,t,r){var n=r(100),i=r(13)("iterator"),s=r(35);e.exports=r(23).getIteratorMethod=function(o){if(o!=null)return o[i]||o["@@iterator"]||s[n(o)]}},function(e,t,r){"use strict";var n=r(180),i=r(190),s=r(35),o=r(74);e.exports=r(103)(Array,"Array",function(a,u){this._t=o(a),this._i=0,this._k=u},function(){var a=this._t,u=this._k,c=this._i++;return!a||c>=a.length?(this._t=void 0,i(1)):u=="keys"?i(0,c):u=="values"?i(0,a[c]):i(0,[c,a[c]])},"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},function(e,t){},function(e,t,r){"use strict";var n=r(69),i=r(11),s=r(48),o=r(100),a=r(41),u=r(34),c=r(46),f=r(181),l=r(183),h=r(108),d=r(109).set,g=r(191)(),S=r(70),w=r(104),k=r(202),_=r(105),N="Promise",D=i.TypeError,A=i.process,R=A&&A.versions,b=R&&R.v8||"",O=i[N],T=o(A)=="process",x=function(){},p,m,E,C,y=m=S.f,v=!!function(){try{var H=O.resolve(1),B=(H.constructor={})[r(13)("species")]=function(j){j(x,x)};return(T||typeof PromiseRejectionEvent=="function")&&H.then(x)instanceof B&&b.indexOf("6.6")!==0&&k.indexOf("Chrome/66")===-1}catch{}}(),P=function(H){var B;return u(H)&&typeof(B=H.then)=="function"?B:!1},I=function(H,B){if(!H._n){H._n=!0;var j=H._c;g(function(){for(var te=H._v,re=H._s==1,q=0,ie=function(G){var ne=re?G.ok:G.fail,ce=G.resolve,Ee=G.reject,fe=G.domain,Re,xe,Rt;try{ne?(re||(H._h==2&&U(H),H._h=1),ne===!0?Re=te:(fe&&fe.enter(),Re=ne(te),fe&&(fe.exit(),Rt=!0)),Re===G.promise?Ee(D("Promise-chain cycle")):(xe=P(Re))?xe.call(Re,ce,Ee):ce(Re)):Ee(te)}catch(Me){fe&&!Rt&&fe.exit(),Ee(Me)}};j.length>q;)ie(j[q++]);H._c=[],H._n=!1,B&&!H._h&&L(H)})}},L=function(H){d.call(i,function(){var B=H._v,j=$(H),te,re,q;if(j&&(te=w(function(){T?A.emit("unhandledRejection",B,H):(re=i.onunhandledrejection)?re({promise:H,reason:B}):(q=i.console)&&q.error&&q.error("Unhandled promise rejection",B)}),H._h=T||$(H)?2:1),H._a=void 0,j&&te.e)throw te.v})},$=function(H){return H._h!==1&&(H._a||H._c).length===0},U=function(H){d.call(i,function(){var B;T?A.emit("rejectionHandled",H):(B=i.onrejectionhandled)&&B({promise:H,reason:H._v})})},z=function(H){var B=this;B._d||(B._d=!0,B=B._w||B,B._v=H,B._s=2,B._a||(B._a=B._c.slice()),I(B,!0))},oe=function(H){var B=this,j;if(!B._d){B._d=!0,B=B._w||B;try{if(B===H)throw D("Promise can't be resolved itself");(j=P(H))?g(function(){var te={_w:B,_d:!1};try{j.call(H,s(oe,te,1),s(z,te,1))}catch(re){z.call(te,re)}}):(B._v=H,B._s=1,I(B,!1))}catch(te){z.call({_w:B,_d:!1},te)}}};v||(O=function(B){f(this,O,N,"_h"),c(B),p.call(this);try{B(s(oe,this,1),s(z,this,1))}catch(j){z.call(this,j)}},p=function(B){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},p.prototype=r(196)(O.prototype,{then:function(B,j){var te=y(h(this,O));return te.ok=typeof B=="function"?B:!0,te.fail=typeof j=="function"&&j,te.domain=T?A.domain:void 0,this._c.push(te),this._a&&this._a.push(te),this._s&&I(this,!1),te.promise},catch:function(H){return this.then(void 0,H)}}),E=function(){var H=new p;this.promise=H,this.resolve=s(oe,H,1),this.reject=s(z,H,1)},S.f=y=function(H){return H===O||H===C?new E(H):m(H)}),a(a.G+a.W+a.F*!v,{Promise:O}),r(71)(O,N),r(198)(N),C=r(23)[N],a(a.S+a.F*!v,N,{reject:function(B){var j=y(this),te=j.reject;return te(B),j.promise}}),a(a.S+a.F*(n||!v),N,{resolve:function(B){return _(n&&this===C?O:this,B)}}),a(a.S+a.F*!(v&&r(189)(function(H){O.all(H).catch(x)})),N,{all:function(B){var j=this,te=y(j),re=te.resolve,q=te.reject,ie=w(function(){var G=[],ne=0,ce=1;l(B,!1,function(Ee){var fe=ne++,Re=!1;G.push(void 0),ce++,j.resolve(Ee).then(function(xe){Re||(Re=!0,G[fe]=xe,--ce||re(G))},q)}),--ce||re(G)});return ie.e&&q(ie.v),te.promise},race:function(B){var j=this,te=y(j),re=te.reject,q=w(function(){l(B,!1,function(ie){j.resolve(ie).then(te.resolve,re)})});return q.e&&re(q.v),te.promise}})},function(e,t,r){"use strict";var n=r(199)(!0);r(103)(String,"String",function(i){this._t=String(i),this._i=0},function(){var i=this._t,s=this._i,o;return s>=i.length?{value:void 0,done:!0}:(o=n(i,s),this._i+=o.length,{value:o,done:!1})})},function(e,t,r){"use strict";var n=r(41),i=r(23),s=r(11),o=r(108),a=r(105);n(n.P+n.R,"Promise",{finally:function(u){var c=o(this,i.Promise||s.Promise),f=typeof u=="function";return this.then(f?function(l){return a(c,u()).then(function(){return l})}:u,f?function(l){return a(c,u()).then(function(){throw l})}:u)}})},function(e,t,r){"use strict";var n=r(41),i=r(70),s=r(104);n(n.S,"Promise",{try:function(o){var a=i.f(this),u=s(o);return(u.e?a.reject:a.resolve)(u.v),a.promise}})},function(e,t,r){r(204);for(var n=r(11),i=r(31),s=r(35),o=r(13)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var c=a[u],f=n[c],l=f&&f.prototype;l&&!l[o]&&i(l,o,c),s[c]=s.Array}},function(e,t,r){t=e.exports=r(112),t.log=s,t.formatArgs=i,t.save=o,t.load=a,t.useColors=n,t.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:u(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(c){try{return JSON.stringify(c)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function i(c){var f=this.useColors;if(c[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+c[0]+(f?"%c ":" ")+"+"+t.humanize(this.diff),!!f){var l="color: "+this.color;c.splice(1,0,l,"color: inherit");var h=0,d=0;c[0].replace(/%[a-zA-Z%]/g,function(g){g!=="%%"&&(h++,g==="%c"&&(d=h))}),c.splice(d,0,l)}}function s(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch{}}function a(){var c;try{c=t.storage.debug}catch{}return!c&&typeof process<"u"&&"env"in process&&(c=process.env.DEBUG),c}t.enable(a());function u(){try{return window.localStorage}catch{}}},function(e,t,r){typeof process>"u"||process.type==="renderer"?e.exports=r(211):e.exports=r(213)},function(e,t,r){var n=r(79),i=r(2);t=e.exports=r(112),t.init=h,t.log=c,t.formatArgs=a,t.save=f,t.load=l,t.useColors=o,t.colors=[6,2,3,4,5,1];try{var s=r(239);s&&s.level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(function(d){return/^debug_/i.test(d)}).reduce(function(d,g){var S=g.substring(6).toLowerCase().replace(/_([a-z])/g,function(k,_){return _.toUpperCase()}),w=process.env[g];return/^(yes|on|true|enabled)$/i.test(w)?w=!0:/^(no|off|false|disabled)$/i.test(w)?w=!1:w==="null"?w=null:w=Number(w),d[S]=w,d},{});function o(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:n.isatty(process.stderr.fd)}t.formatters.o=function(d){return this.inspectOpts.colors=this.useColors,i.inspect(d,this.inspectOpts).split(`
73
- `).map(function(g){return g.trim()}).join(" ")},t.formatters.O=function(d){return this.inspectOpts.colors=this.useColors,i.inspect(d,this.inspectOpts)};function a(d){var g=this.namespace,S=this.useColors;if(S){var w=this.color,k="\x1B[3"+(w<8?w:"8;5;"+w),_=" "+k+";1m"+g+" \x1B[0m";d[0]=_+d[0].split(`
32
+ `}function ov(e){return e[e.length-1]===`
33
+ `?e.slice(0,-1):e}function YT(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
34
+ `);return u=u!==-1?u:e.length,r.lastIndex=u,av(e.slice(0,u),t)}(),i=e[0]===`
35
+ `||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],c=o[2];s=c[0]===" ",n+=a+(!i&&!s&&c!==""?`
36
+ `:"")+av(c,t),i=s}return n}function av(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,c="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,c+=`
37
+ `+e.slice(i,s),i=s+1),o=a;return c+=`
38
+ `,e.length-i>t&&o>i?c+=e.slice(i,o)+`
39
+ `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function zT(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=us(e,i),n=nt[r],!n&&fs(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||BT(r);return t}function VT(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(Dr(e,t,a,!1,!1)||typeof a>"u"&&Dr(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function uv(e,t,r,n){var i="",s=e.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],e.replacer&&(c=e.replacer.call(r,String(o),c)),(Dr(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&Dr(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Pf(e,t)),e.dump&&cs===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function KT(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,c,u,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),c=s[o],u=r[c],e.replacer&&(u=e.replacer.call(r,c,u)),Dr(e,t,c,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Dr(e,t,u,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function XT(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,c,u,f,l,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new hs("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!n||i!=="")&&(h+=Pf(e,t)),u=o[a],f=r[u],e.replacer&&(f=e.replacer.call(r,u,f)),Dr(e,t+1,u,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&cs===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=Pf(e,t)),Dr(e,t+1,f,!0,l)&&(e.dump&&cs===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function cv(e,t,r){var n,i,s,o,a,c;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,lv.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(fv.call(a.represent,c))n=a.represent[c](t,c);else throw new hs("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function Dr(e,t,r,n,i,s,o){e.tag=null,e.dump=r,cv(e,r,!1)||cv(e,r,!0);var a=lv.call(e.dump),c=n,u;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",l,h;if(f&&(l=e.duplicates.indexOf(r),h=l!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(XT(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(KT(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?uv(e,t-1,e.dump,i):uv(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(VT(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&HT(e,e.dump,t,s,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new hs("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function JT(e,t){var r=[],n=[],i,s;for(Rf(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Rf(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Rf(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Rf(e[n[i]],t,r)}function QT(e,t){t=t||{};var r=new jT(t);r.noRefs||JT(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Dr(r,0,n,!0,!0)?r.dump+`
40
+ `:""}wv.exports.dump=QT});var Cv=R((M8,dt)=>{"use strict";var bv=tv(),ZT=Sv();function kf(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}dt.exports.Type=rt();dt.exports.Schema=rf();dt.exports.FAILSAFE_SCHEMA=af();dt.exports.JSON_SCHEMA=hf();dt.exports.CORE_SCHEMA=pf();dt.exports.DEFAULT_SCHEMA=ca();dt.exports.load=bv.load;dt.exports.loadAll=bv.loadAll;dt.exports.dump=ZT.dump;dt.exports.YAMLException=ai();dt.exports.types={binary:yf(),float:ff(),map:of(),null:uf(),pairs:Af(),set:Ef(),timestamp:df(),bool:cf(),int:lf(),merge:gf(),omap:vf(),seq:sf(),str:nf()};dt.exports.safeLoad=kf("safeLoad","load");dt.exports.safeLoadAll=kf("safeLoadAll","loadAll");dt.exports.safeDump=kf("safeDump","dump")});var Df=R(hi=>{"use strict";var eN=hi&&hi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hi,"__esModule",{value:!0});hi.readYaml=void 0;var tN=eN(q("fs"));function rN(e){let t=Cv(),r=tN.default.readFileSync(e,"utf8");return t.load(r)}hi.readYaml=rN});var Tf=R(it=>{"use strict";var nN=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(it,"__esModule",{value:!0});it.getWorkspacesAsync=it.getWorkspaces=it.getPnpmWorkspacesAsync=it.getPnpmWorkspaces=it.getWorkspacePackagePaths=it.getPnpmWorkspaceRoot=void 0;var iN=nN(q("path")),sN=oa(),xv=ns(),oN=Df(),Ff=wn(),aN=Qn();function Pv(e){let t=(0,aN.getWorkspaceManagerAndRoot)(e,void 0,"pnpm")?.root;if(!t)throw new Error("Could not find pnpm workspace root from "+e);return t}it.getPnpmWorkspaceRoot=Pv;function Lf(e){try{let t=Pv(e),r=iN.default.join(t,"pnpm-workspace.yaml"),n=(0,oN.readYaml)(r);return(0,sN.getPackagePaths)(t,n.packages)}catch(t){return(0,Ff.logVerboseWarning)(`Error getting pnpm workspace package paths for ${e}`,t),[]}}it.getWorkspacePackagePaths=Lf;function Ov(e){try{let t=Lf(e);return(0,xv.getWorkspacePackageInfo)(t)}catch(t){return(0,Ff.logVerboseWarning)(`Error getting pnpm workspaces for ${e}`,t),[]}}it.getPnpmWorkspaces=Ov;it.getWorkspaces=Ov;async function Rv(e){try{let t=Lf(e);return(0,xv.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,Ff.logVerboseWarning)(`Error getting pnpm workspaces for ${e}`,t),[]}}it.getPnpmWorkspacesAsync=Rv;it.getWorkspacesAsync=Rv});var Nf=R((W8,mr)=>{var _v=mr.exports;mr.exports.isWhiteSpace=function(t){return t===" "||t==="\xA0"||t==="\uFEFF"||t>=" "&&t<="\r"||t==="\u1680"||t>="\u2000"&&t<="\u200A"||t==="\u2028"||t==="\u2029"||t==="\u202F"||t==="\u205F"||t==="\u3000"};mr.exports.isWhiteSpaceJSON=function(t){return t===" "||t===" "||t===`
41
+ `||t==="\r"};mr.exports.isLineTerminator=function(t){return t===`
42
+ `||t==="\r"||t==="\u2028"||t==="\u2029"};mr.exports.isLineTerminatorJSON=function(t){return t===`
43
+ `||t==="\r"};mr.exports.isIdentifierStart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="\x80"&&_v.NonAsciiIdentifierStart.test(t)};mr.exports.isIdentifierPart=function(t){return t==="$"||t==="_"||t>="A"&&t<="Z"||t>="a"&&t<="z"||t>="0"&&t<="9"||t>="\x80"&&_v.NonAsciiIdentifierPart.test(t)};mr.exports.NonAsciiIdentifierStart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/;mr.exports.NonAsciiIdentifierPart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/});var ds=R((G8,ya)=>{var Fr=Nf();function pi(e){return e>="0"&&e<="9"||e>="A"&&e<="F"||e>="a"&&e<="f"}function di(e){return e>="0"&&e<="7"}function ps(e){return e>="0"&&e<="9"}var kv={"'":"'",'"':'"',"\\":"\\",b:"\b",f:"\f",n:`
44
+ `,r:"\r",t:" ",v:"\v","/":"/"};function uN(e,t,r,n,i,s){var o=t+" at "+(n+1)+":"+(i+1),a=r-i-1,c="",u="",f=s?Fr.isLineTerminator:Fr.isLineTerminatorJSON;for(a<r-70&&(a=r-70);;){var l=e[++a];if(f(l)||a===e.length){r>=a&&(u+="^");break}if(c+=l,r===a?u+="^":r>a&&(u+=e[a]===" "?" ":" "),c.length>78)break}return o+`
45
+ `+c+`
46
+ `+u}function cN(e,t){var r=!1,n=!1;t.legacy||t.mode==="json"||(t.mode==="cjson"?n=!0:(t.mode,r=!0));var i=r?Fr.isLineTerminator:Fr.isLineTerminatorJSON,s=r?Fr.isWhiteSpace:Fr.isWhiteSpaceJSON,o=e.length,a=0,c=0,u=0,f=[],l=function(){},h=function(b){return b};t._tokenize&&function(){var b=null;l=function(){if(b!==null)throw Error("internal error, token overlap");b=u},h=function(g,y){if(b!=u){var w={raw:e.substr(b,u-b),type:y,stack:f.slice(0)};g!==void 0&&(w.value=g),t._tokenize.call(null,w)}return b=null,g}}();function p(b){var g=u-c;if(!b)if(u<o){var y="'"+JSON.stringify(e[u]).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";b||(b="Unexpected token "+y)}else b||(b="Unexpected end of input");var w=SyntaxError(uN(e,b,u,a,g,r));throw w.row=a+1,w.column=g+1,w}function d(b){b==="\r"&&e[u]===`
47
+ `&&u++,c=u,a++}function m(){for(var b;u<o;){l();var g=e[u++];return g==='"'||g==="'"&&r?h(_(g),"literal"):g==="{"?(h(void 0,"separator"),D()):g==="["?(h(void 0,"separator"),E()):g==="-"||g==="."||ps(g)||r&&(g==="+"||g==="I"||g==="N")?h(O(),"literal"):g==="n"?(F("null"),h(null,"literal")):g==="t"?(F("true"),h(!0,"literal")):g==="f"?(F("false"),h(!1,"literal")):(u--,h(void 0))}}function v(){for(var b;u<o;){l();var g=e[u++];if(g==='"'||g==="'"&&r)return h(_(g),"key");if(g==="{")return h(void 0,"separator"),D();if(g==="[")return h(void 0,"separator"),E();if(g==="."||ps(g))return h(O(!0),"key");if(r&&Fr.isIdentifierStart(g)||g==="\\"&&e[u]==="u"){var y=u-1,b=k();return b===void 0?(u=y,h(void 0)):h(b,"key")}else return u--,h(void 0)}}function P(){for(l();u<o;){var b=e[u++];if(i(b))u--,h(void 0,"whitespace"),l(),u++,d(b),h(void 0,"newline"),l();else if(!s(b))if(b==="/"&&(r||n)&&(e[u]==="/"||e[u]==="*"))u--,h(void 0,"whitespace"),l(),u++,C(e[u++]==="*"),h(void 0,"comment"),l();else{u--;break}}return h(void 0,"whitespace")}function C(b){for(;u<o;){var g=e[u++];if(i(g)){if(!b){u--;return}d(g)}else if(g==="*"&&b&&e[u]==="/"){u++;return}}b&&p("Unclosed multiline comment")}function F(b){for(var g=u,y=b.length,w=1;w<y;w++)(u>=o||b[w]!=e[u])&&(u=g-1,p()),u++}function D(){for(var b=t.null_prototype?Object.create(null):{},g={},y=!1;u<o;){P();var w=v();P(),l();var x=e[u++];if(h(void 0,"separator"),x==="}"&&w===void 0)return!r&&y&&(u--,p("Trailing comma in object")),b;if(x===":"&&w!==void 0){P(),f.push(w);var A=m();f.pop(),A===void 0&&p("No value found for key "+w),typeof w!="string"&&(!r||typeof w!="number")&&p("Wrong key type: "+w),(w in g||g[w]!=null)&&t.reserved_keys!=="replace"?t.reserved_keys==="throw"&&p("Reserved key: "+w):(typeof t.reviver=="function"&&(A=t.reviver.call(null,w,A)),A!==void 0&&(y=!0,Object.defineProperty(b,w,{value:A,enumerable:!0,configurable:!0,writable:!0}))),P(),l();var x=e[u++];if(h(void 0,"separator"),x===",")continue;if(x==="}")return b;p()}else u--,p()}p()}function E(){for(var b=[];u<o;){P(),f.push(b.length);var g=m();f.pop(),P(),l();var y=e[u++];if(h(void 0,"separator"),g!==void 0&&(typeof t.reviver=="function"&&(g=t.reviver.call(null,String(b.length),g)),g===void 0?(b.length++,g=!0):b.push(g)),y===",")g===void 0&&p("Elisions are not supported");else{if(y==="]")return!r&&g===void 0&&b.length&&(u--,p("Trailing comma in array")),b;u--,p()}}}function O(){u--;var b=u,g=e[u++],y,w=function(L){var N=e.substr(b,u-b);if(L)var I=parseInt(N.replace(/^0o?/,""),8);else var I=Number(N);if(Number.isNaN(I))u--,p('Bad numeric literal - "'+e.substr(b,u-b+1)+'"');else if(!r&&!N.match(/^-?(0|[1-9][0-9]*)(\.[0-9]+)?(e[+-]?[0-9]+)?$/i))u--,p('Non-json numeric literal - "'+e.substr(b,u-b+1)+'"');else return I};if((g==="-"||g==="+"&&r)&&(g=e[u++]),g==="N"&&r)return F("NaN"),NaN;if(g==="I"&&r)return F("Infinity"),w();if(g>="1"&&g<="9"){for(;u<o&&ps(e[u]);)u++;g=e[u++]}if(g==="0"){g=e[u++];var x=g==="o"||g==="O"||di(g),A=g==="x"||g==="X";if(r&&(x||A)){for(;u<o&&(A?pi:di)(e[u]);)u++;var S=1;return e[b]==="-"?(S=-1,b++):e[b]==="+"&&b++,S*w(x)}}if(g==="."){for(;u<o&&ps(e[u]);)u++;g=e[u++]}if(g==="e"||g==="E"){for(g=e[u++],(g==="-"||g==="+")&&u++;u<o&&ps(e[u]);)u++;g=e[u++]}return u--,w()}function k(){u--;for(var b="";u<o;){var g=e[u++];if(g==="\\"&&e[u]==="u"&&pi(e[u+1])&&pi(e[u+2])&&pi(e[u+3])&&pi(e[u+4])&&(g=String.fromCharCode(parseInt(e.substr(u+1,4),16)),u+=5),b.length)if(Fr.isIdentifierPart(g))b+=g;else return u--,b;else if(Fr.isIdentifierStart(g))b+=g;else return}p()}function _(b){for(var g="";u<o;){var y=e[u++];if(y===b)return g;if(y==="\\")if(u>=o&&p(),y=e[u++],kv[y]&&(r||y!="v"&&y!="'"))g+=kv[y];else if(r&&i(y))d(y);else if(y==="u"||y==="x"&&r){for(var w=y==="u"?4:2,x=0;x<w;x++)u>=o&&p(),pi(e[u])||p("Bad escape sequence"),u++;g+=String.fromCharCode(parseInt(e.substr(u-w,w),16))}else if(r&&di(y)){if(y<"4"&&di(e[u])&&di(e[u+1]))var A=3;else if(di(e[u]))var A=2;else var A=1;u+=A-1,g+=String.fromCharCode(parseInt(e.substr(u-A,A),8))}else r?g+=y:(u--,p());else i(y)?p():(!r&&y.charCodeAt(0)<32&&(u--,p("Unexpected control character")),g+=y)}p()}P();var T=m();if(T!==void 0||u<o){if(P(),u>=o)return typeof t.reviver=="function"&&(T=t.reviver.call(null,"",T)),T;p()}else p(u?"No data, only a whitespace":"No data, empty input")}ya.exports.parse=function(t,r){if(typeof r=="function"&&(r={reviver:r}),t!==void 0){typeof t!="string"&&(t=String(t)),r==null&&(r={}),r.reserved_keys==null&&(r.reserved_keys="ignore"),(r.reserved_keys==="throw"||r.reserved_keys==="ignore")&&r.null_prototype==null&&(r.null_prototype=!0);try{return cN(t,r)}catch(i){if(i instanceof SyntaxError&&i.row!=null&&i.column!=null){var n=i;i=SyntaxError(n.message),i.column=n.column,i.row=n.row}throw i}}};ya.exports.tokenize=function(t,r){r==null&&(r={}),r._tokenize=function(i){r._addstack&&i.stack.unshift.apply(i.stack,r._addstack),n.push(i)};var n=[];return n.data=ya.exports.parse(t,r),n}});var Bf=R((U8,Fv)=>{var If=Nf();(function(){}).name||Object.defineProperty(function(){}.constructor.prototype,"name",{get:function(){var e=this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];return Object.defineProperty(this,"name",{value:e}),e}});var lN={0:"\\0",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",92:"\\\\"},fN=Object.prototype.hasOwnProperty,Dv=/[\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/;function $f(e,t,r,n){var i=t.mode==="json5"||!t.mode;function s(l,h){var p=t._prefix?t._prefix:"";if(!t.indent)return p+l;for(var d="",m=r+(h||0),v=0;v<m;v++)d+=t.indent;return p+d+l+(h?`
48
+ `:"")}function o(l){if(t.quote_keys)return a(l);if(String(Number(l))==l&&l[0]!="-")return l;if(l=="")return a(l);for(var h="",p=0;p<l.length;p++){if(p>0){if(!If.isIdentifierPart(l[p]))return a(l)}else if(!If.isIdentifierStart(l[p]))return a(l);var d=l.charCodeAt(p);t.ascii?d<128?h+=l[p]:h+="\\u"+("0000"+d.toString(16)).slice(-4):Dv.exec(l[p])?h+="\\u"+("0000"+d.toString(16)).slice(-4):h+=l[p]}return h}function a(l){for(var h=t.quote,p=h.charCodeAt(0),d="",m=0;m<l.length;m++){var v=l.charCodeAt(m);if(v<16)v===0&&i?d+="\\0":v>=8&&v<=13&&(i||v!==11)?d+=lN[v]:i?d+="\\x0"+v.toString(16):d+="\\u000"+v.toString(16);else if(v<32)i?d+="\\x"+v.toString(16):d+="\\u00"+v.toString(16);else if(v>=32&&v<128)v===47&&m&&l[m-1]==="<"?d+="\\"+l[m]:v===92?d+="\\\\":v===p?d+="\\"+h:d+=l[m];else if(t.ascii||If.isLineTerminator(l[m])||Dv.exec(l[m]))if(v<256)i?d+="\\x"+v.toString(16):d+="\\u00"+v.toString(16);else if(v<4096)d+="\\u0"+v.toString(16);else if(v<65536)d+="\\u"+v.toString(16);else throw Error("weird codepoint");else d+=l[m]}return h+d+h}function c(){if(e===null)return"null";var l=[],h=0,p;if(Array.isArray(e)){p="[]";for(var d=0;d<e.length;d++){var m=$f(e[d],t,r+1,String(d));m===void 0&&(m="null"),h+=m.length+2,l.push(m+",")}}else{p="{}";var v=function(F){var D=$f(e[F],t,r+1,F);D!==void 0&&(D=o(F)+":"+(t.indent?" ":"")+D+",",h+=D.length+1,l.push(D))};if(Array.isArray(t.replacer))for(var d=0;d<t.replacer.length;d++)fN.call(e,t.replacer[d])&&v(t.replacer[d]);else{var P=Object.keys(e);t.sort_keys&&(P=P.sort(typeof t.sort_keys=="function"?t.sort_keys:void 0)),P.forEach(v)}}if(h-=2,t.indent&&(h>t._splitMax-r*t.indent.length||h>t._splitMin)){t.no_trailing_comma&&l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var C=l.map(function(F){return s(F,1)}).join("");return p[0]+(t.indent?`
49
+ `:"")+C+s(p[1])}else{l.length&&(l[l.length-1]=l[l.length-1].substring(0,l[l.length-1].length-1));var C=l.join(t.indent?" ":"");return p[0]+C+p[1]}}function u(l){switch(typeof t.replacer=="function"&&(l=t.replacer.call(null,n,l)),typeof l){case"string":return a(l);case"number":return l===0&&1/l<0?"-0":!i&&!Number.isFinite(l)?"null":l.toString();case"boolean":return l.toString();case"undefined":return;case"function":default:return JSON.stringify(l)}}if(t._stringify_key)return o(e);if(typeof e=="object"){if(e===null)return"null";var f;return(typeof(f=e.toJSON5)=="function"&&t.mode!=="json"||typeof(f=e.toJSON)=="function")&&(e=f.call(e,n)),e===null?"null":typeof e!="object"?u(e):e.constructor===Number||e.constructor===Boolean||e.constructor===String?(e=e.valueOf(),u(e)):e.constructor===Date?u(e.toISOString()):typeof t.replacer=="function"&&(e=t.replacer.call(null,n,e),typeof e!="object")?u(e):c(e)}else return u(e)}Fv.exports.stringify=function(t,r,n){return typeof r=="function"||Array.isArray(r)?r={replacer:r}:typeof r=="object"&&r!==null||(r={}),n!=null&&(r.indent=n),r.indent==null&&(r.indent=" "),r.quote==null&&(r.quote="'"),r.ascii==null&&(r.ascii=!1),r.mode==null&&(r.mode="json5"),(r.mode==="json"||r.mode==="cjson")&&(r.quote='"',r.no_trailing_comma=!0,r.quote_keys=!0),typeof r.indent=="object"&&(r.indent.constructor===Number||r.indent.constructor===Boolean||r.indent.constructor===String)&&(r.indent=r.indent.valueOf()),typeof r.indent=="number"?r.indent>=0?r.indent=Array(Math.min(~~r.indent,10)+1).join(" "):r.indent=!1:typeof r.indent=="string"&&(r.indent=r.indent.substr(0,10)),r._splitMin==null&&(r._splitMin=50),r._splitMax==null&&(r._splitMax=70),$f(t,r,0,"")}});var Mf=R((H8,Lv)=>{var hN=ds().tokenize;Lv.exports.analyze=function(t,r){r==null&&(r={}),Array.isArray(t)||(t=hN(t,r));for(var n={has_whitespace:!1,has_comments:!1,has_newlines:!1,has_trailing_comma:!1,indent:"",newline:`
50
+ `,quote:'"',quote_keys:!0},i={indent:{},newline:{},quote:{}},s=0;s<t.length;s++){if(t[s].type==="newline"){if(t[s+1]&&t[s+1].type==="whitespace"&&(t[s+1].raw[0]===" "&&(i.indent[" "]=(i.indent[" "]||0)+1),t[s+1].raw.match(/^\x20+$/))){var o=t[s+1].raw.length,a=t[s+1].stack.length+1;if(o%a===0){var c=Array(o/a+1).join(" ");i.indent[c]=(i.indent[c]||0)+1}}i.newline[t[s].raw]=(i.newline[t[s].raw]||0)+1}if(t[s].type==="newline"&&(n.has_newlines=!0),t[s].type==="whitespace"&&(n.has_whitespace=!0),t[s].type==="comment"&&(n.has_comments=!0),t[s].type==="key"&&t[s].raw[0]!=='"'&&t[s].raw[0]!=="'"&&(n.quote_keys=!1),(t[s].type==="key"||t[s].type==="literal")&&(t[s].raw[0]==='"'||t[s].raw[0]==="'")&&(i.quote[t[s].raw[0]]=(i.quote[t[s].raw[0]]||0)+1),t[s].type==="separator"&&t[s].raw===",")for(var u=s+1;u<t.length&&!(t[u].type==="literal"||t[u].type==="key");u++)t[u].type==="separator"&&(n.has_trailing_comma=!0)}for(var f in i)Object.keys(i[f]).length&&(n[f]=Object.keys(i[f]).reduce(function(l,h){return i[f][l]>i[f][h]?l:h}));return n}});var Mv=R((Y8,qf)=>{var sr=q("assert"),Bv=ds().tokenize,pN=Bf().stringify,dN=Mf().analyze;function ms(e){return typeof e=="object"&&e!==null}function va(e,t,r,n,i){r=Object.create(r),r._stringify_key=!!n,i&&(r._prefix=i.prefix.map(function(a){return a.raw}).join("")),r._splitMin==null&&(r._splitMin=0),r._splitMax==null&&(r._splitMax=0);var s=pN(e,r);if(n)return[{raw:s,type:"key",stack:t,value:e}];r._addstack=t;var o=Bv(s,{_addstack:t});return o.data=null,o}function jf(e){if(typeof e=="number"&&(e=String(e)),e===""&&(e=[]),typeof e=="string"&&(e=e.split(".")),!Array.isArray(e))throw Error("Invalid path type, string or array expected");return e}function Tv(e,t,r,n,i){for(;r[n].stack[t]!=e;)if(n++>=i)return!1;for(;r[i].stack[t]!=e;)if(i--<n)return!1;return[n,i]}function gs(e){return e==="whitespace"||e==="newline"||e==="comment"}function Nv(e,t,r){for(;gs(e[t].type);)if(t++>=r)return!1;return t}function gi(e,t,r){for(;gs(e[r].type);)if(r--<t)return!1;return r}function Iv(e,t,r,n,i){var s={sep1:[],sep2:[],suffix:[],prefix:[],newline:[]};if(e[n].type==="separator"&&e[n].stack.length!==i+1&&e[n].raw!==","||(e[n].type==="separator"&&(n=gi(e,r,n-1)),n===!1))return s;for(;e[n].stack.length>i;)n--;if(!t){for(;gs(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep2.unshift(e[n]);else return s;n--}for(sr.equal(e[n].type,"separator"),sr.equal(e[n].raw,":");gs(e[--n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.sep1.unshift(e[n]);else return s}sr.equal(e[n].type,"key"),n--}for(;gs(e[n].type);){if(n<r)return s;if(e[n].type==="whitespace")s.prefix.unshift(e[n]);else return e[n].type==="newline"&&s.newline.unshift(e[n]),s;n--}return s}function Lr(e,t){var r=Object.create(Lr.prototype);t==null&&(t={});var n=r._tokens=Bv(e,t);r._data=n.data,n.data=null,r._options=t;var i=dN(e,t);return t.indent==null&&(t.indent=i.indent),t.quote==null&&(t.quote=i.quote),t.quote_keys==null&&(t.quote_keys=i.quote_keys),t.no_trailing_comma==null&&(t.no_trailing_comma=!i.has_trailing_comma),r}function $v(e,t,r){function n(i){return Error("You can't "+(r?"unset":"set")+" key '"+e+"'"+i)}if(!ms(t))throw n(" of an non-object");if(Array.isArray(t))if(String(e).match(/^\d+$/)){if(e=Number(String(e)),t.length<e||r&&t.length===e)throw n(", out of bounds");if(r&&t.length!==e+1)throw n(" in the middle of an array");return!0}else throw n(" of an array");else return!0}Lr.prototype.set=function(e,t){if(e=jf(e),e.length===0){if(t===void 0)throw Error("can't remove root document");this._data=t;var r=!1}else{for(var n=this._data,i=0;i<e.length-1;i++)$v(e[i],n,!1),n=n[e[i]];i===e.length-1&&$v(e[i],n,t===void 0);var r=!(e[i]in n);t===void 0?Array.isArray(n)?n.pop():delete n[e[i]]:n[e[i]]=t}this._tokens.length||(this._tokens=[{raw:"",type:"literal",stack:[],value:void 0}]);for(var s=[Nv(this._tokens,0,this._tokens.length-1),gi(this._tokens,0,this._tokens.length-1)],i=0;i<e.length-1;i++)if(s=Tv(e[i],i,this._tokens,s[0],s[1]),s==!1)throw Error("internal error, please report this");if(e.length===0)var o=va(t,e,this._options);else if(r){var f=e.slice(0,i),c=gi(this._tokens,s[0]+1,s[1]-1);sr(c!==!1);var u=c!==!1?Iv(this._tokens,Array.isArray(n),s[0]+1,c,i):{},o=va(t,e,this._options,!1,u),l=[];u.newline&&u.newline.length&&(l=l.concat(u.newline)),u.prefix&&u.prefix.length&&(l=l.concat(u.prefix)),Array.isArray(n)||(l=l.concat(va(e[e.length-1],f,this._options,!0)),u.sep1&&u.sep1.length&&(l=l.concat(u.sep1)),l.push({raw:":",type:"separator",stack:f}),u.sep2&&u.sep2.length&&(l=l.concat(u.sep2))),o.unshift.apply(o,l),this._tokens[c].type==="separator"&&this._tokens[c].stack.length===e.length-1?this._tokens[c].raw===","&&o.push({raw:",",type:"separator",stack:f}):o.unshift({raw:",",type:"separator",stack:f}),u.suffix&&u.suffix.length&&o.push.apply(o,u.suffix),sr.equal(this._tokens[s[1]].type,"separator"),s[0]=c+1,s[1]=c}else{var a=s;if(s=Tv(e[i],i,this._tokens,s[0],s[1]),t===void 0&&s!==!1){var o=[];if(!Array.isArray(n)){var c=gi(this._tokens,a[0],s[0]-1);sr.equal(this._tokens[c].type,"separator"),sr.equal(this._tokens[c].raw,":"),s[0]=c;var c=gi(this._tokens,a[0],s[0]-1);sr.equal(this._tokens[c].type,"key"),sr.equal(this._tokens[c].value,e[e.length-1]),s[0]=c}var c=gi(this._tokens,a[0],s[0]-1);sr.equal(this._tokens[c].type,"separator"),this._tokens[c].raw===","?s[0]=c:(c=Nv(this._tokens,s[1]+1,a[1]),sr.equal(this._tokens[c].type,"separator"),this._tokens[c].raw===","&&(s[1]=c))}else var u=c!==!1?Iv(this._tokens,Array.isArray(n),a[0],s[1]-1,i):{},o=va(t,e,this._options,!1,u)}return o.unshift(s[1]-s[0]+1),o.unshift(s[0]),this._tokens.splice.apply(this._tokens,o),this};Lr.prototype.unset=function(e){return this.set(e,void 0)};Lr.prototype.get=function(e){e=jf(e);for(var t=this._data,r=0;r<e.length;r++){if(!ms(t))return;t=t[e[r]]}return t};Lr.prototype.has=function(e){e=jf(e);for(var t=this._data,r=0;r<e.length;r++){if(!ms(t))return!1;t=t[e[r]]}return t!==void 0};Lr.prototype.update=function(e){var t=this;return r([],t._data,e),t;function r(n,i,s){if(!ms(s)||!ms(i))s!==i&&t.set(n,s);else if(Array.isArray(s)!=Array.isArray(i))t.set(n,s);else if(Array.isArray(s))if(s.length>i.length)for(var o=0;o<s.length;o++)n.push(String(o)),r(n,i[o],s[o]),n.pop();else for(var o=i.length-1;o>=0;o--)n.push(String(o)),r(n,i[o],s[o]),n.pop();else{for(var o in s)n.push(String(o)),r(n,i[o],s[o]),n.pop();for(var o in i)o in s||(n.push(String(o)),r(n,i[o],s[o]),n.pop())}}};Lr.prototype.toString=function(){return this._tokens.map(function(e){return e.raw}).join("")};qf.exports.Document=Lr;qf.exports.update=function(t,r,n){return Lr(t,n).update(r).toString()}});var jv=R((z8,Aa)=>{var gN=q("fs"),mN=ys();Aa.exports.register=function(){var e=q,t="extensions";e[t][".json5"]=function(r,n){r.exports=mN.parse(gN.readFileSync(n,"utf8"))}};Aa.exports.patch_JSON_parse=function(){var e=JSON.parse;JSON.parse=function(t,r){try{return e(t,r)}catch(n){throw ys().parse(t,{mode:"json",legacy:!0,reviver:r,reserved_keys:"replace",null_prototype:!1}),n}}};Aa.exports.middleware=function(){return function(e,t,r){throw Error("this function is removed, use express-json5 instead")}}});var ys=R((K8,_n)=>{_n.exports.__defineGetter__("parse",function(){return ds().parse});_n.exports.__defineGetter__("stringify",function(){return Bf().stringify});_n.exports.__defineGetter__("tokenize",function(){return ds().tokenize});_n.exports.__defineGetter__("update",function(){return Mv().update});_n.exports.__defineGetter__("analyze",function(){return Mf().analyze});_n.exports.__defineGetter__("utils",function(){return jv()})});var Yf=R(st=>{"use strict";var Gf=st&&st.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(st,"__esModule",{value:!0});st.getWorkspacesAsync=st.getWorkspaces=st.getRushWorkspacesAsync=st.getRushWorkspaces=st.getWorkspacePackagePaths=st.getRushWorkspaceRoot=void 0;var Wf=Gf(q("path")),yN=Gf(ys()),vN=Gf(q("fs")),qv=ns(),Uf=wn(),AN=Qn();function Wv(e){let t=(0,AN.getWorkspaceManagerAndRoot)(e,void 0,"rush")?.root;if(!t)throw new Error("Could not find rush workspace root from "+e);return t}st.getRushWorkspaceRoot=Wv;function Hf(e){try{let t=Wv(e),r=Wf.default.join(t,"rush.json"),n=yN.default.parse(vN.default.readFileSync(r,"utf-8")),i=Wf.default.dirname(r);return n.projects.map(s=>Wf.default.join(i,s.projectFolder))}catch(t){return(0,Uf.logVerboseWarning)(`Error getting rush workspace package paths for ${e}`,t),[]}}st.getWorkspacePackagePaths=Hf;function Gv(e){try{let t=Hf(e);return(0,qv.getWorkspacePackageInfo)(t)}catch(t){return(0,Uf.logVerboseWarning)(`Error getting rush workspaces for ${e}`,t),[]}}st.getRushWorkspaces=Gv;st.getWorkspaces=Gv;async function Uv(e){try{let t=Hf(e);return(0,qv.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,Uf.logVerboseWarning)(`Error getting rush workspaces for ${e}`,t),[]}}st.getRushWorkspacesAsync=Uv;st.getWorkspacesAsync=Uv});var zv=R(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.getWorkspacesAsync=Ct.getWorkspaces=Ct.getNpmWorkspacesAsync=Ct.getNpmWorkspaces=Ct.getWorkspacePackagePathsAsync=Ct.getWorkspacePackagePaths=void 0;var EN=Vn(),Ea=Xl();function wa(e){let t=(0,EN.getWorkspaceManagerAndRoot)(e,void 0,"npm")?.root;if(!t)throw new Error("Could not find npm workspace root from "+e);return t}function wN(e){let t=wa(e);return(0,Ea.getPackagePathsFromWorkspaceRoot)(t)}Ct.getWorkspacePackagePaths=wN;function SN(e){let t=wa(e);return(0,Ea.getPackagePathsFromWorkspaceRootAsync)(t)}Ct.getWorkspacePackagePathsAsync=SN;function Hv(e){let t=wa(e);return(0,Ea.getWorkspaceInfoFromWorkspaceRoot)(t)}Ct.getNpmWorkspaces=Hv;Ct.getWorkspaces=Hv;function Yv(e){let t=wa(e);return(0,Ea.getWorkspaceInfoFromWorkspaceRootAsync)(t)}Ct.getNpmWorkspacesAsync=Yv;Ct.getWorkspacesAsync=Yv});var Jv=R(xt=>{"use strict";var zf=xt&&xt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xt,"__esModule",{value:!0});xt.getWorkspacesAsync=xt.getWorkspaces=xt.getLernaWorkspacesAsync=xt.getLernaWorkspaces=xt.getWorkspacePackagePaths=void 0;var bN=zf(q("fs")),CN=zf(ys()),xN=zf(q("path")),PN=oa(),Vv=ns(),Vf=wn(),ON=Qn();function RN(e){let t=(0,ON.getWorkspaceManagerAndRoot)(e,void 0,"lerna")?.root;if(!t)throw new Error("Could not find lerna workspace root from "+e);return t}function Kf(e){try{let t=RN(e),r=xN.default.join(t,"lerna.json"),n=CN.default.parse(bN.default.readFileSync(r,"utf-8"));return(0,PN.getPackagePaths)(t,n.packages)}catch(t){return(0,Vf.logVerboseWarning)(`Error getting lerna workspace package paths for ${e}`,t),[]}}xt.getWorkspacePackagePaths=Kf;function Kv(e){try{let t=Kf(e);return(0,Vv.getWorkspacePackageInfo)(t)}catch(t){return(0,Vf.logVerboseWarning)(`Error getting lerna workspaces for ${e}`,t),[]}}xt.getLernaWorkspaces=Kv;xt.getWorkspaces=Kv;async function Xv(e){try{let t=Kf(e);return(0,Vv.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,Vf.logVerboseWarning)(`Error getting lerna workspaces for ${e}`,t),[]}}xt.getLernaWorkspacesAsync=Xv;xt.getWorkspacesAsync=Xv});var Qv=R(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.getWorkspaceUtilities=void 0;var _N=Qn();function kN(e){switch((0,_N.getWorkspaceManagerAndRoot)(e)?.manager){case"yarn":return Jl();case"pnpm":return Tf();case"rush":return Yf();case"npm":return zv();case"lerna":return Jv()}}Sa.getWorkspaceUtilities=kN});var Vn=R(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.getWorkspaceUtilities=mi.getWorkspaceManagerAndRoot=void 0;var DN=Qn();Object.defineProperty(mi,"getWorkspaceManagerAndRoot",{enumerable:!0,get:function(){return DN.getWorkspaceManagerAndRoot}});var FN=Qv();Object.defineProperty(mi,"getWorkspaceUtilities",{enumerable:!0,get:function(){return FN.getWorkspaceUtilities}})});var ba=R(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.getWorkspacesAsync=yi.getWorkspaces=void 0;var Xf=Vn();function LN(e){return(0,Xf.getWorkspaceUtilities)(e)?.getWorkspaces(e)||[]}yi.getWorkspaces=LN;async function TN(e){let t=(0,Xf.getWorkspaceUtilities)(e);if(!t)return[];if(!t.getWorkspacesAsync){let r=(0,Xf.getWorkspaceManagerAndRoot)(e)?.manager;throw new Error(`${e} is using ${r} which has not been converted to async yet`)}return t.getWorkspacesAsync(e)}yi.getWorkspacesAsync=TN});var nA=R(un=>{"use strict";var eA=un&&un.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(un,"__esModule",{value:!0});un.getPackageInfosAsync=un.getPackageInfos=void 0;var Zv=eA(q("fs")),NN=eA(q("path")),IN=ic(),tA=ba();function $N(e){let t={},r=(0,tA.getWorkspaces)(e);if(r.length)for(let n of r)t[n.name]=n.packageJson;else{let n=rA(e);n&&(t[n.name]=n)}return t}un.getPackageInfos=$N;async function BN(e){let t={},r=await(0,tA.getWorkspacesAsync)(e);if(r.length)for(let n of r)t[n.name]=n.packageJson;else{let n=rA(e);n&&(t[n.name]=n)}return t}un.getPackageInfosAsync=BN;function rA(e){let t=NN.default.join(e,"package.json");if(Zv.default.existsSync(t))try{let r=JSON.parse(Zv.default.readFileSync(t,"utf-8"));return(0,IN.infoFromPackageJson)(r,t)}catch(r){throw new Error(`Invalid package.json file detected ${t}: ${r?.message||r}`)}}});var xa=R(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.createDependencyMap=void 0;var MN=wo();function jN(e,t={withDevDependencies:!0,withPeerDependencies:!1}){let r={dependencies:new Map,dependents:new Map},n=new Set(Object.keys(e));for(let[i,s]of Object.entries(e)){let o=(0,MN.getPackageDependencies)(s,n,t);for(let a of o)r.dependencies.has(i)||r.dependencies.set(i,new Set),r.dependencies.get(i).add(a),r.dependents.has(a)||r.dependents.set(a,new Set),r.dependents.get(a).add(i)}return r}Ca.createDependencyMap=jN});var sA=R(vi=>{"use strict";var qN=vi&&vi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vi,"__esModule",{value:!0});vi.createPackageGraph=void 0;var WN=xa(),GN=qN(ts());function UN(e,t){let r=new Set,n=[],i=new Set,s=new Map;function o(f,l,h,p){if(r.add(l),!f||f.includeDependencies&&h)for(let d of h){let m=a(l,d);i.has(m)||(i.add(m),n.push({name:l,dependency:d})),r.add(d)}if(!f||f.includeDependents&&p)for(let d of p){let m=a(d,l);i.has(m)||(i.add(m),n.push({name:d,dependency:l})),r.add(d)}}if(t){t=Array.isArray(t)?t:[t];for(let f of t){let l=o.bind(void 0,f),h=c(e,f);iA(e,h,l,f)}}else{let f=o.bind(void 0,void 0),l=c(e);iA(e,l,f)}return{packages:[...r],dependencies:n};function a(f,l){return`${f}->${l}`}function c(f,l){let h=u(l);if(!s.has(h)){let p=(0,WN.createDependencyMap)(f,l);s.set(h,p)}return s.get(h)}function u(f){return f?[f.withDevDependencies?"dev":"",f.withPeerDependencies?"peer":"",f.withOptionalDependencies?"optional":""].filter(Boolean).join("_")||"prod":"default"}}vi.createPackageGraph=UN;function iA(e,t,r,n){let i=new Set,s=Object.keys(e),o=n?(0,GN.default)(s,n.namePatterns):s;for(;o.length>0;){let a=o.pop();if(i.has(a))continue;let c=new Set,u=[],f=[];if(!n||n.includeDependencies){u=[...t.dependencies.get(a)??[]];for(let l of u)c.add(l)}if(!n||n.includeDependents){f=[...t.dependents.get(a)??[]];for(let l of f)c.add(l)}if(r(a,u,f),i.add(a),c.size>0)for(let l of c)o.push(l)}}});var aA=R(yr=>{"use strict";var HN=yr&&yr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),oA=yr&&yr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&HN(t,e,r)};Object.defineProperty(yr,"__esModule",{value:!0});yr.getDependentMap=void 0;oA(sA(),yr);oA(xa(),yr);var YN=xa();function zN(e){return(0,YN.createDependencyMap)(e).dependencies}yr.getDependentMap=zN});var vs=R(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.nameAtVersion=void 0;function VN(e,t){return`${e}@${t}`}Pa.nameAtVersion=VN});var uA=R(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.parsePnpmLock=void 0;var KN=vs();function XN(e){let t={};if(e&&e.packages)for(let[r,n]of Object.entries(e.packages)){let i=r.split(/\//),s=i.length>3?`${i[1]}/${i[2]}`:i[1],o=i.length>3?i[3]:i[2];t[(0,KN.nameAtVersion)(s,o)]={version:o,dependencies:n.dependencies}}return{object:t,type:"success"}}Oa.parsePnpmLock=XN});var cA=R(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.parseNpmLock=void 0;var JN=vs();function QN(e){return{object:Object.fromEntries(Object.entries(e.dependencies??{}).map(([r,n])=>[(0,JN.nameAtVersion)(r,n.version),n])),type:"success"}}Ra.parseNpmLock=QN});var lA=R(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.parseBerryLock=void 0;function ZN(e){let t={};if(e)for(let[r,n]of Object.entries(e)){if(r==="__metadata")continue;let i=r.split(", ");for(let s of i){let o=e2(s);t[o]={version:n.version,dependencies:n.dependencies??{}}}}return{object:t,type:"success"}}_a.parseBerryLock=ZN;function e2(e){return e.includes("npm:")?e.replace(/npm:/,""):e}});var hA=R((l4,fA)=>{fA.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.i=function(n){return n},r.d=function(n,i,s){r.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:s})},r.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return r.d(i,"a",i),i},r.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},r.p="",r(r.s=14)}([function(e,t){e.exports=q("path")},function(e,t,r){"use strict";t.__esModule=!0;var n=r(173),i=s(n);function s(o){return o&&o.__esModule?o:{default:o}}t.default=function(o){return function(){var a=o.apply(this,arguments);return new i.default(function(c,u){function f(l,h){try{var p=a[l](h),d=p.value}catch(m){u(m);return}if(p.done)c(d);else return i.default.resolve(d).then(function(m){f("next",m)},function(m){f("throw",m)})}return f("next")})}}},function(e,t){e.exports=q("util")},function(e,t){e.exports=q("fs")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(u,f){super(u),this.code=f}}t.MessageError=n;class i extends n{constructor(u,f,l){super(u,f),this.process=l}}t.ProcessSpawnError=i;class s extends n{}t.SecurityError=s;class o extends n{}t.ProcessTermError=o;class a extends Error{constructor(u,f){super(u),this.responseCode=f}}t.ResponseError=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstSuitableFolder=t.readFirstAvailableStream=t.makeTempDir=t.hardlinksWork=t.writeFilePreservingEol=t.getFileSizeOnDisk=t.walk=t.symlink=t.find=t.readJsonAndFile=t.readJson=t.readFileAny=t.hardlinkBulk=t.copyBulk=t.unlink=t.glob=t.link=t.chmod=t.lstat=t.exists=t.mkdirp=t.stat=t.access=t.rename=t.readdir=t.realpath=t.readlink=t.writeFile=t.open=t.readFileBuffer=t.lockQueue=t.constants=void 0;var n;function i(){return n=$(r(1))}let s=(()=>{var Z=(0,(n||i()).default)(function*(K,z,H,V){let pe=(()=>{var we=(0,(n||i()).default)(function*(Ke){let Oe=Ke.src,ge=Ke.dest,Yi=Ke.type,_t=Ke.onFresh||$t,Le=Ke.onDone||$t;if(Se.has(ge.toLowerCase())?V.verbose(`The case-insensitive file ${ge} shouldn't be copied twice in one bulk copy`):Se.add(ge.toLowerCase()),Yi==="symlink"){yield De((y||w()).default.dirname(ge)),_t(),ct.symlink.push({dest:ge,linkname:Oe}),Le();return}if(z.ignoreBasenames.indexOf((y||w()).default.basename(Oe))>=0)return;let Te=yield Ue(Oe),Pr;Te.isDirectory()&&(Pr=yield le(Oe));let Et;try{Et=yield Ue(ge)}catch(pt){if(pt.code!=="ENOENT")throw pt}if(Et){let pt=Te.isSymbolicLink()&&Et.isSymbolicLink(),Or=Te.isDirectory()&&Et.isDirectory(),rr=Te.isFile()&&Et.isFile();if(rr&&Pe.has(ge)){Le(),V.verbose(V.lang("verboseFileSkipArtifact",Oe));return}if(rr&&Te.size===Et.size&&(0,(Y||se()).fileDatesEqual)(Te.mtime,Et.mtime)){Le(),V.verbose(V.lang("verboseFileSkip",Oe,ge,Te.size,+Te.mtime));return}if(pt){let Xe=yield U(Oe);if(Xe===(yield U(ge))){Le(),V.verbose(V.lang("verboseFileSkipSymlink",Oe,ge,Xe));return}}if(Or){let Xe=yield le(ge);Wn(Pr,"src files not initialised");for(var Zt=Xe,Wr=Array.isArray(Zt),kt=0,Zt=Wr?Zt:Zt[Symbol.iterator]();;){var Un;if(Wr){if(kt>=Zt.length)break;Un=Zt[kt++]}else{if(kt=Zt.next(),kt.done)break;Un=kt.value}let Hr=Un;if(Pr.indexOf(Hr)<0){let Rr=(y||w()).default.join(ge,Hr);if(H.add(Rr),(yield Ue(Rr)).isDirectory())for(var er=yield le(Rr),Gr=Array.isArray(er),Dt=0,er=Gr?er:er[Symbol.iterator]();;){var Hn;if(Gr){if(Dt>=er.length)break;Hn=er[Dt++]}else{if(Dt=er.next(),Dt.done)break;Hn=Dt.value}let tc=Hn;H.add((y||w()).default.join(Rr,tc))}}}}}if(Et&&Et.isSymbolicLink()&&(yield(0,(Y||se()).unlink)(ge),Et=null),Te.isSymbolicLink()){_t();let pt=yield U(Oe);ct.symlink.push({dest:ge,linkname:pt}),Le()}else if(Te.isDirectory()){Et||(V.verbose(V.lang("verboseFileFolder",ge)),yield De(ge));let pt=ge.split((y||w()).default.sep);for(;pt.length;)Se.add(pt.join((y||w()).default.sep).toLowerCase()),pt.pop();Wn(Pr,"src files not initialised");let Or=Pr.length;Or||Le();for(var tr=Pr,Ur=Array.isArray(tr),Ft=0,tr=Ur?tr:tr[Symbol.iterator]();;){var ht;if(Ur){if(Ft>=tr.length)break;ht=tr[Ft++]}else{if(Ft=tr.next(),Ft.done)break;ht=Ft.value}let rr=ht;K.push({dest:(y||w()).default.join(ge,rr),onFresh:_t,onDone:function(Xe){function Hr(){return Xe.apply(this,arguments)}return Hr.toString=function(){return Xe.toString()},Hr}(function(){--Or===0&&Le()}),src:(y||w()).default.join(Oe,rr)})}}else if(Te.isFile())_t(),ct.file.push({src:Oe,dest:ge,atime:Te.atime,mtime:Te.mtime,mode:Te.mode}),Le();else throw new Error(`unsure how to copy this: ${Oe}`)});return function(Oe){return we.apply(this,arguments)}})(),Pe=new Set(z.artifactFiles||[]),Se=new Set;for(var ve=K,Ce=Array.isArray(ve),ye=0,ve=Ce?ve:ve[Symbol.iterator]();;){var Rt;if(Ce){if(ye>=ve.length)break;Rt=ve[ye++]}else{if(ye=ve.next(),ye.done)break;Rt=ye.value}let we=Rt,Ke=we.onDone;we.onDone=function(){z.onProgress(we.dest),Ke&&Ke()}}z.onStart(K.length);let ct={file:[],symlink:[],link:[]};for(;K.length;){let we=K.splice(0,vn);yield Promise.all(we.map(pe))}for(var lt=Pe,qr=Array.isArray(lt),Jt=0,lt=qr?lt:lt[Symbol.iterator]();;){var An;if(qr){if(Jt>=lt.length)break;An=lt[Jt++]}else{if(Jt=lt.next(),Jt.done)break;An=Jt.value}let we=An;H.has(we)&&(V.verbose(V.lang("verboseFilePhantomExtraneous",we)),H.delete(we))}for(var ft=H,Hi=Array.isArray(ft),Qt=0,ft=Hi?ft:ft[Symbol.iterator]();;){var En;if(Hi){if(Qt>=ft.length)break;En=ft[Qt++]}else{if(Qt=ft.next(),Qt.done)break;En=Qt.value}let we=En;Se.has(we.toLowerCase())&&H.delete(we)}return ct});return function(z,H,V,pe){return Z.apply(this,arguments)}})(),o=(()=>{var Z=(0,(n||i()).default)(function*(K,z,H,V){let pe=(()=>{var we=(0,(n||i()).default)(function*(Ke){let Oe=Ke.src,ge=Ke.dest,Yi=Ke.onFresh||$t,_t=Ke.onDone||$t;if(Se.has(ge.toLowerCase())){_t();return}if(Se.add(ge.toLowerCase()),z.ignoreBasenames.indexOf((y||w()).default.basename(Oe))>=0)return;let Le=yield Ue(Oe),Te;Le.isDirectory()&&(Te=yield le(Oe));let Pr=yield Xt(ge);if(Pr){let ht=yield Ue(ge),pt=Le.isSymbolicLink()&&ht.isSymbolicLink(),Or=Le.isDirectory()&&ht.isDirectory(),rr=Le.isFile()&&ht.isFile();if(Le.mode!==ht.mode)try{yield he(ge,Le.mode)}catch(Xe){V.verbose(Xe)}if(rr&&Pe.has(ge)){_t(),V.verbose(V.lang("verboseFileSkipArtifact",Oe));return}if(rr&&Le.ino!==null&&Le.ino===ht.ino){_t(),V.verbose(V.lang("verboseFileSkip",Oe,ge,Le.ino));return}if(pt){let Xe=yield U(Oe);if(Xe===(yield U(ge))){_t(),V.verbose(V.lang("verboseFileSkipSymlink",Oe,ge,Xe));return}}if(Or){let Xe=yield le(ge);Wn(Te,"src files not initialised");for(var kt=Xe,Et=Array.isArray(kt),Wr=0,kt=Et?kt:kt[Symbol.iterator]();;){var Zt;if(Et){if(Wr>=kt.length)break;Zt=kt[Wr++]}else{if(Wr=kt.next(),Wr.done)break;Zt=Wr.value}let Hr=Zt;if(Te.indexOf(Hr)<0){let Rr=(y||w()).default.join(ge,Hr);if(H.add(Rr),(yield Ue(Rr)).isDirectory())for(var Dt=yield le(Rr),Un=Array.isArray(Dt),Gr=0,Dt=Un?Dt:Dt[Symbol.iterator]();;){var er;if(Un){if(Gr>=Dt.length)break;er=Dt[Gr++]}else{if(Gr=Dt.next(),Gr.done)break;er=Gr.value}let tc=er;H.add((y||w()).default.join(Rr,tc))}}}}}if(Le.isSymbolicLink()){Yi();let ht=yield U(Oe);ct.symlink.push({dest:ge,linkname:ht}),_t()}else if(Le.isDirectory()){V.verbose(V.lang("verboseFileFolder",ge)),yield De(ge);let ht=ge.split((y||w()).default.sep);for(;ht.length;)Se.add(ht.join((y||w()).default.sep).toLowerCase()),ht.pop();Wn(Te,"src files not initialised");let pt=Te.length;pt||_t();for(var Ft=Te,Hn=Array.isArray(Ft),Ur=0,Ft=Hn?Ft:Ft[Symbol.iterator]();;){var tr;if(Hn){if(Ur>=Ft.length)break;tr=Ft[Ur++]}else{if(Ur=Ft.next(),Ur.done)break;tr=Ur.value}let Or=tr;K.push({onFresh:Yi,src:(y||w()).default.join(Oe,Or),dest:(y||w()).default.join(ge,Or),onDone:function(rr){function Xe(){return rr.apply(this,arguments)}return Xe.toString=function(){return rr.toString()},Xe}(function(){--pt===0&&_t()})})}}else if(Le.isFile())Yi(),ct.link.push({src:Oe,dest:ge,removeDest:Pr}),_t();else throw new Error(`unsure how to copy this: ${Oe}`)});return function(Oe){return we.apply(this,arguments)}})(),Pe=new Set(z.artifactFiles||[]),Se=new Set;for(var ve=K,Ce=Array.isArray(ve),ye=0,ve=Ce?ve:ve[Symbol.iterator]();;){var Rt;if(Ce){if(ye>=ve.length)break;Rt=ve[ye++]}else{if(ye=ve.next(),ye.done)break;Rt=ye.value}let we=Rt,Ke=we.onDone||$t;we.onDone=function(){z.onProgress(we.dest),Ke()}}z.onStart(K.length);let ct={file:[],symlink:[],link:[]};for(;K.length;){let we=K.splice(0,vn);yield Promise.all(we.map(pe))}for(var lt=Pe,qr=Array.isArray(lt),Jt=0,lt=qr?lt:lt[Symbol.iterator]();;){var An;if(qr){if(Jt>=lt.length)break;An=lt[Jt++]}else{if(Jt=lt.next(),Jt.done)break;An=Jt.value}let we=An;H.has(we)&&(V.verbose(V.lang("verboseFilePhantomExtraneous",we)),H.delete(we))}for(var ft=H,Hi=Array.isArray(ft),Qt=0,ft=Hi?ft:ft[Symbol.iterator]();;){var En;if(Hi){if(Qt>=ft.length)break;En=ft[Qt++]}else{if(Qt=ft.next(),Qt.done)break;En=Qt.value}let we=En;Se.has(we.toLowerCase())&&H.delete(we)}return ct});return function(z,H,V,pe){return Z.apply(this,arguments)}})(),a=t.copyBulk=(()=>{var Z=(0,(n||i()).default)(function*(K,z,H){let V={onStart:H&&H.onStart||$t,onProgress:H&&H.onProgress||$t,possibleExtraneous:H?H.possibleExtraneous:new Set,ignoreBasenames:H&&H.ignoreBasenames||[],artifactFiles:H&&H.artifactFiles||[]},pe=yield s(K,V,V.possibleExtraneous,z);V.onStart(pe.file.length+pe.symlink.length+pe.link.length);let Pe=pe.file,Se=new Map;yield(S||L()).queue(Pe,(()=>{var ye=(0,(n||i()).default)(function*(ve){let Rt;for(;Rt=Se.get(ve.dest);)yield Rt;z.verbose(z.lang("verboseFileCopy",ve.src,ve.dest));let ct=(0,(Y||se()).copyFile)(ve,function(){return Se.delete(ve.dest)});return Se.set(ve.dest,ct),V.onProgress(ve.dest),ct});return function(ve){return ye.apply(this,arguments)}})(),vn);let Ce=pe.symlink;yield(S||L()).queue(Ce,function(ye){let ve=(y||w()).default.resolve((y||w()).default.dirname(ye.dest),ye.linkname);return z.verbose(z.lang("verboseFileSymlink",ye.dest,ve)),p(ve,ye.dest)})});return function(z,H,V){return Z.apply(this,arguments)}})(),c=t.hardlinkBulk=(()=>{var Z=(0,(n||i()).default)(function*(K,z,H){let V={onStart:H&&H.onStart||$t,onProgress:H&&H.onProgress||$t,possibleExtraneous:H?H.possibleExtraneous:new Set,artifactFiles:H&&H.artifactFiles||[],ignoreBasenames:[]},pe=yield o(K,V,V.possibleExtraneous,z);V.onStart(pe.file.length+pe.symlink.length+pe.link.length);let Pe=pe.link;yield(S||L()).queue(Pe,(()=>{var Ce=(0,(n||i()).default)(function*(ye){z.verbose(z.lang("verboseFileLink",ye.src,ye.dest)),ye.removeDest&&(yield(0,(Y||se()).unlink)(ye.dest)),yield mo(ye.src,ye.dest)});return function(ye){return Ce.apply(this,arguments)}})(),vn);let Se=pe.symlink;yield(S||L()).queue(Se,function(Ce){let ye=(y||w()).default.resolve((y||w()).default.dirname(Ce.dest),Ce.linkname);return z.verbose(z.lang("verboseFileSymlink",Ce.dest,ye)),p(ye,Ce.dest)})});return function(z,H,V){return Z.apply(this,arguments)}})(),u=t.readFileAny=(()=>{var Z=(0,(n||i()).default)(function*(K){for(var V=K,z=Array.isArray(V),H=0,V=z?V:V[Symbol.iterator]();;){var pe;if(z){if(H>=V.length)break;pe=V[H++]}else{if(H=V.next(),H.done)break;pe=H.value}let Pe=pe;if(yield Xt(Pe))return ec(Pe)}return null});return function(z){return Z.apply(this,arguments)}})(),f=t.readJson=(()=>{var Z=(0,(n||i()).default)(function*(K){return(yield l(K)).object});return function(z){return Z.apply(this,arguments)}})(),l=t.readJsonAndFile=(()=>{var Z=(0,(n||i()).default)(function*(K){let z=yield ec(K);try{return{object:(0,(B||W()).default)(JSON.parse(Ui(z))),content:z}}catch(H){throw H.message=`${K}: ${H.message}`,H}});return function(z){return Z.apply(this,arguments)}})(),h=t.find=(()=>{var Z=(0,(n||i()).default)(function*(K,z){let H=z.split((y||w()).default.sep);for(;H.length;){let V=H.concat(K).join((y||w()).default.sep);if(yield Xt(V))return V;H.pop()}return!1});return function(z,H){return Z.apply(this,arguments)}})(),p=t.symlink=(()=>{var Z=(0,(n||i()).default)(function*(K,z){try{if((yield Ue(z)).isSymbolicLink()&&(yield ie(z))===K)return}catch(H){if(H.code!=="ENOENT")throw H}if(yield(0,(Y||se()).unlink)(z),process.platform==="win32")yield vo(K,z,"junction");else{let H;try{H=(y||w()).default.relative((O||k()).default.realpathSync((y||w()).default.dirname(z)),(O||k()).default.realpathSync(K))}catch(V){if(V.code!=="ENOENT")throw V;H=(y||w()).default.relative((y||w()).default.dirname(z),K)}yield vo(H||".",z)}});return function(z,H){return Z.apply(this,arguments)}})(),d=t.walk=(()=>{var Z=(0,(n||i()).default)(function*(K,z,H=new Set){let V=[],pe=yield le(K);H.size&&(pe=pe.filter(function(ve){return!H.has(ve)}));for(var Ce=pe,Pe=Array.isArray(Ce),Se=0,Ce=Pe?Ce:Ce[Symbol.iterator]();;){var ye;if(Pe){if(Se>=Ce.length)break;ye=Ce[Se++]}else{if(Se=Ce.next(),Se.done)break;ye=Se.value}let ve=ye,Rt=z?(y||w()).default.join(z,ve):ve,ct=(y||w()).default.join(K,ve),qr=yield Ue(ct);V.push({relative:Rt,basename:ve,absolute:ct,mtime:+qr.mtime}),qr.isDirectory()&&(V=V.concat(yield d(ct,Rt,H)))}return V});return function(z,H){return Z.apply(this,arguments)}})(),m=t.getFileSizeOnDisk=(()=>{var Z=(0,(n||i()).default)(function*(K){let z=yield Ue(K),H=z.size,V=z.blksize;return Math.ceil(H/V)*V});return function(z){return Z.apply(this,arguments)}})(),v=(()=>{var Z=(0,(n||i()).default)(function*(K){if(!(yield Xt(K)))return;let z=yield ne(K);for(let H=0;H<z.length;++H){if(z[H]===WP)return`\r
51
+ `;if(z[H]===GP)return`
52
+ `}});return function(z){return Z.apply(this,arguments)}})(),P=t.writeFilePreservingEol=(()=>{var Z=(0,(n||i()).default)(function*(K,z){let H=(yield v(K))||(b||g()).default.EOL;H!==`
53
+ `&&(z=z.replace(/\n/g,H)),yield oe(K,z)});return function(z,H){return Z.apply(this,arguments)}})(),C=t.hardlinksWork=(()=>{var Z=(0,(n||i()).default)(function*(K){let z="test-file"+Math.random(),H=(y||w()).default.join(K,z),V=(y||w()).default.join(K,z+"-link");try{yield oe(H,"test"),yield mo(H,V)}catch{return!1}finally{yield(0,(Y||se()).unlink)(H),yield(0,(Y||se()).unlink)(V)}return!0});return function(z){return Z.apply(this,arguments)}})(),F=t.makeTempDir=(()=>{var Z=(0,(n||i()).default)(function*(K){let z=(y||w()).default.join((b||g()).default.tmpdir(),`yarn-${K||""}-${Date.now()}-${Math.random()}`);return yield(0,(Y||se()).unlink)(z),yield De(z),z});return function(z){return Z.apply(this,arguments)}})(),D=t.readFirstAvailableStream=(()=>{var Z=(0,(n||i()).default)(function*(K){for(var V=K,z=Array.isArray(V),H=0,V=z?V:V[Symbol.iterator]();;){var pe;if(z){if(H>=V.length)break;pe=V[H++]}else{if(H=V.next(),H.done)break;pe=H.value}let Pe=pe;try{let Se=yield j(Pe,"r");return(O||k()).default.createReadStream(Pe,{fd:Se})}catch{}}return null});return function(z){return Z.apply(this,arguments)}})(),E=t.getFirstSuitableFolder=(()=>{var Z=(0,(n||i()).default)(function*(K,z=M.W_OK|M.X_OK){let H={skipped:[],folder:null};for(var Pe=K,V=Array.isArray(Pe),pe=0,Pe=V?Pe:Pe[Symbol.iterator]();;){var Se;if(V){if(pe>=Pe.length)break;Se=Pe[pe++]}else{if(pe=Pe.next(),pe.done)break;Se=pe.value}let Ce=Se;try{return yield De(Ce),yield he(Ce,z),H.folder=Ce,H}catch(ye){H.skipped.push({error:ye,folder:Ce})}}return H});return function(z){return Z.apply(this,arguments)}})();t.copy=Ao,t.readFile=ec,t.readFileRaw=qP,t.normalizeOS=bd;var O;function k(){return O=$(r(3))}var _;function T(){return _=$(r(75))}var b;function g(){return b=$(r(36))}var y;function w(){return y=$(r(0))}var x;function A(){return x=$(r(84))}var S;function L(){return S=G(r(40))}var N;function I(){return N=r(40)}var B;function W(){return B=$(r(20))}var Y;function se(){return Y=r(164)}function G(Z){if(Z&&Z.__esModule)return Z;var K={};if(Z!=null)for(var z in Z)Object.prototype.hasOwnProperty.call(Z,z)&&(K[z]=Z[z]);return K.default=Z,K}function $(Z){return Z&&Z.__esModule?Z:{default:Z}}let M=t.constants=typeof(O||k()).default.constants<"u"?(O||k()).default.constants:{R_OK:(O||k()).default.R_OK,W_OK:(O||k()).default.W_OK,X_OK:(O||k()).default.X_OK},re=t.lockQueue=new(x||A()).default("fs lock"),ne=t.readFileBuffer=(0,(N||I()).promisify)((O||k()).default.readFile),j=t.open=(0,(N||I()).promisify)((O||k()).default.open),oe=t.writeFile=(0,(N||I()).promisify)((O||k()).default.writeFile),U=t.readlink=(0,(N||I()).promisify)((O||k()).default.readlink),ie=t.realpath=(0,(N||I()).promisify)((O||k()).default.realpath),le=t.readdir=(0,(N||I()).promisify)((O||k()).default.readdir),be=t.rename=(0,(N||I()).promisify)((O||k()).default.rename),he=t.access=(0,(N||I()).promisify)((O||k()).default.access),Fe=t.stat=(0,(N||I()).promisify)((O||k()).default.stat),De=t.mkdirp=(0,(N||I()).promisify)(r(116)),Xt=t.exists=(0,(N||I()).promisify)((O||k()).default.exists,!0),Ue=t.lstat=(0,(N||I()).promisify)((O||k()).default.lstat),xr=t.chmod=(0,(N||I()).promisify)((O||k()).default.chmod),mo=t.link=(0,(N||I()).promisify)((O||k()).default.link),yo=t.glob=(0,(N||I()).promisify)((_||T()).default);t.unlink=(Y||se()).unlink;let vn=(O||k()).default.copyFile?128:4,vo=(0,(N||I()).promisify)((O||k()).default.symlink),Wn=r(7),Ui=r(122),$t=()=>{};function Ao(Z,K,z){return a([{src:Z,dest:K}],z)}function Gn(Z,K){return new Promise((z,H)=>{(O||k()).default.readFile(Z,K,function(V,pe){V?H(V):z(pe)})})}function ec(Z){return Gn(Z,"utf8").then(bd)}function qP(Z){return Gn(Z,"binary")}function bd(Z){return Z.replace(/\r\n/g,`
54
+ `)}let WP=13,GP=10},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathKey=he;let n=r(36),i=r(0),s=r(45).default;var o=r(171);let a=o.getCacheDir,c=o.getConfigDir,u=o.getDataDir,f=r(227),l=t.DEPENDENCY_TYPES=["devDependencies","dependencies","optionalDependencies","peerDependencies"],h=t.RESOLUTIONS="resolutions",p=t.MANIFEST_FIELDS=[h,...l],d=t.SUPPORTED_NODE_VERSIONS="^4.8.0 || ^5.7.0 || ^6.2.2 || >=8.0.0",m=t.YARN_REGISTRY="https://registry.yarnpkg.com",v=t.YARN_DOCS="https://yarnpkg.com/en/docs/cli/",P=t.YARN_INSTALLER_SH="https://yarnpkg.com/install.sh",C=t.YARN_INSTALLER_MSI="https://yarnpkg.com/latest.msi",F=t.SELF_UPDATE_VERSION_URL="https://yarnpkg.com/latest-version",D=t.CACHE_VERSION=2,E=t.LOCKFILE_VERSION=1,O=t.NETWORK_CONCURRENCY=8,k=t.NETWORK_TIMEOUT=30*1e3,_=t.CHILD_CONCURRENCY=5,T=t.REQUIRED_PACKAGE_KEYS=["name","version","_uid"];function b(){let De=[a()];return process.getuid&&De.push(i.join(n.tmpdir(),`.yarn-cache-${process.getuid()}`)),De.push(i.join(n.tmpdir(),".yarn-cache")),De}let g=t.PREFERRED_MODULE_CACHE_DIRECTORIES=b(),y=t.CONFIG_DIRECTORY=c(),w=t.DATA_DIRECTORY=u(),x=t.LINK_REGISTRY_DIRECTORY=i.join(w,"link"),A=t.GLOBAL_MODULE_DIRECTORY=i.join(w,"global"),S=t.NODE_BIN_PATH=process.execPath,L=t.YARN_BIN_PATH=N();function N(){return f?__filename:i.join(__dirname,"..","bin","yarn.js")}let I=t.NODE_MODULES_FOLDER="node_modules",B=t.NODE_PACKAGE_JSON="package.json",W=t.POSIX_GLOBAL_PREFIX=`${process.env.DESTDIR||""}/usr/local`,Y=t.FALLBACK_GLOBAL_PREFIX=i.join(s,".yarn"),se=t.META_FOLDER=".yarn-meta",G=t.INTEGRITY_FILENAME=".yarn-integrity",$=t.LOCKFILE_FILENAME="yarn.lock",M=t.METADATA_FILENAME=".yarn-metadata.json",re=t.TARBALL_FILENAME=".yarn-tarball.tgz",ne=t.CLEAN_FILENAME=".yarnclean",j=t.NPM_LOCK_FILENAME="package-lock.json",oe=t.NPM_SHRINKWRAP_FILENAME="npm-shrinkwrap.json",U=t.DEFAULT_INDENT=" ",ie=t.SINGLE_INSTANCE_PORT=31997,le=t.SINGLE_INSTANCE_FILENAME=".yarn-single-instance",be=t.ENV_PATH_KEY=he(process.platform,process.env);function he(De,Xt){let Ue="PATH";if(De==="win32"){Ue="Path";for(let xr in Xt)xr.toLowerCase()==="path"&&(Ue=xr)}return Ue}let Fe=t.VERSION_COLOR_SCHEME={major:"red",premajor:"red",minor:"yellow",preminor:"yellow",patch:"green",prepatch:"green",prerelease:"red",unchanged:"white",unknown:"red"}},function(e,t,r){"use strict";var n=process.env.NODE_ENV,i=function(s,o,a,c,u,f,l,h){if(n!=="production"&&o===void 0)throw new Error("invariant requires an error message argument");if(!s){var p;if(o===void 0)p=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var d=[a,c,u,f,l,h],m=0;p=new Error(o.replace(/%s/g,function(){return d[m++]})),p.name="Invariant Violation"}throw p.framesToPop=1,p}};e.exports=i},,function(e,t){e.exports=q("crypto")},,function(e,t){var r=e.exports=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=r)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sortAlpha=i,t.entries=s,t.removePrefix=o,t.removeSuffix=a,t.addSuffix=c,t.hyphenate=u,t.camelCase=f,t.compareSortedArrays=l,t.sleep=h;let n=r(176);function i(p,d){let m=Math.min(p.length,d.length);for(let v=0;v<m;v++){let P=p.charCodeAt(v),C=d.charCodeAt(v);if(P!==C)return P-C}return p.length-d.length}function s(p){let d=[];if(p)for(let m in p)d.push([m,p[m]]);return d}function o(p,d){return p.startsWith(d)&&(p=p.slice(d.length)),p}function a(p,d){return p.endsWith(d)?p.slice(0,-d.length):p}function c(p,d){return p.endsWith(d)?p:p+d}function u(p){return p.replace(/[A-Z]/g,d=>"-"+d.charAt(0).toLowerCase())}function f(p){return/[A-Z]/.test(p)?null:n(p)}function l(p,d){if(p.length!==d.length)return!1;for(let m=0,v=p.length;m<v;m++)if(p[m]!==d[m])return!1;return!0}function h(p){return new Promise(d=>{setTimeout(d,p)})}},function(e,t,r){var n=r(107)("wks"),i=r(111),s=r(11).Symbol,o=typeof s=="function",a=e.exports=function(c){return n[c]||(n[c]=o&&s[c]||(o?s:i)("Symbol."+c))};a.store=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=t.parse=void 0;var n;function i(){return n=D(r(1))}var s;function o(){return s=r(81)}Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return D(s||o()).default}});var a;function c(){return a=r(150)}Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return D(a||c()).default}}),t.implodeEntry=y,t.explodeEntry=w;var u;function f(){return u=r(12)}var l;function h(){return l=r(29)}var p;function d(){return p=D(r(81))}var m;function v(){return m=r(6)}var P;function C(){return P=F(r(5))}function F(A){if(A&&A.__esModule)return A;var S={};if(A!=null)for(var L in A)Object.prototype.hasOwnProperty.call(A,L)&&(S[L]=A[L]);return S.default=A,S}function D(A){return A&&A.__esModule?A:{default:A}}let E=r(7),O=r(0),k=r(55);function _(A){return(0,(l||h()).normalizePattern)(A).name}function T(A){return A&&Object.keys(A).length?A:void 0}function b(A){return A.resolved||(A.reference&&A.hash?`${A.reference}#${A.hash}`:null)}function g(A){return A.toString().split(" ").sort().join(" ")}function y(A,S){let L=_(A),N=S.integrity?g(S.integrity):"",I={name:L===S.name?void 0:S.name,version:S.version,uid:S.uid===S.version?void 0:S.uid,resolved:S.resolved,registry:S.registry==="npm"?void 0:S.registry,dependencies:T(S.dependencies),optionalDependencies:T(S.optionalDependencies),permissions:T(S.permissions),prebuiltVariants:T(S.prebuiltVariants)};return N&&(I.integrity=N),I}function w(A,S){S.optionalDependencies=S.optionalDependencies||{},S.dependencies=S.dependencies||{},S.uid=S.uid||S.version,S.permissions=S.permissions||{},S.registry=S.registry||"npm",S.name=S.name||_(A);let L=S.integrity;return L&&L.isIntegrity&&(S.integrity=k.parse(L)),S}class x{constructor({cache:S,source:L,parseResultType:N}={}){this.source=L||"",this.cache=S,this.parseResultType=N}hasEntriesExistWithoutIntegrity(){if(!this.cache)return!1;for(let S in this.cache)if(!/^.*@(file:|http)/.test(S)&&this.cache[S]&&!this.cache[S].integrity)return!0;return!1}static fromDirectory(S,L){return(0,(n||i()).default)(function*(){let N=O.join(S,(m||v()).LOCKFILE_FILENAME),I,B="",W;return(yield(P||C()).exists(N))?(B=yield(P||C()).readFile(N),W=(0,(p||d()).default)(B,N),L&&(W.type==="merge"?L.info(L.lang("lockfileMerged")):W.type==="conflict"&&L.warn(L.lang("lockfileConflict"))),I=W.object):L&&L.info(L.lang("noLockfileFound")),new x({cache:I,source:B,parseResultType:W&&W.type})})()}getLocked(S){let L=this.cache;if(!L)return;let N=S in L&&L[S];if(typeof N=="string")return this.getLocked(N);if(N)return w(S,N),N}removePattern(S){let L=this.cache;L&&delete L[S]}getLockfile(S){let L={},N=new Map,I=Object.keys(S).sort((u||f()).sortAlpha);for(var Y=I,B=Array.isArray(Y),W=0,Y=B?Y:Y[Symbol.iterator]();;){var se;if(B){if(W>=Y.length)break;se=Y[W++]}else{if(W=Y.next(),W.done)break;se=W.value}let G=se,$=S[G],M=$._remote,re=$._reference;E(re,"Package is missing a reference"),E(M,"Package is missing a remote");let ne=b(M),j=ne&&N.get(ne);if(j){L[G]=j,!j.name&&_(G)!==$.name&&(j.name=$.name);continue}let oe=y(G,{name:$.name,version:$.version,uid:$._uid,resolved:M.resolved,integrity:M.integrity,registry:M.registry,dependencies:$.dependencies,peerDependencies:$.peerDependencies,optionalDependencies:$.optionalDependencies,permissions:re.permissions,prebuiltVariants:$.prebuiltVariants});L[G]=oe,ne&&N.set(ne,oe)}return L}}t.default=x},,,function(e,t){e.exports=q("stream")},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(i={}){if(Array.isArray(i))for(var a=i,s=Array.isArray(a),o=0,a=s?a:a[Symbol.iterator]();;){var c;if(s){if(o>=a.length)break;c=a[o++]}else{if(o=a.next(),o.done)break;c=o.value}n(c)}else if((i!==null&&typeof i=="object"||typeof i=="function")&&(Object.setPrototypeOf(i,null),typeof i=="object"))for(let u in i)n(i[u]);return i}},,function(e,t){e.exports=q("assert")},function(e,t){var r=e.exports={version:"2.5.7"};typeof __e=="number"&&(__e=r)},,,,function(e,t,r){var n=r(34);e.exports=function(i){if(!n(i))throw TypeError(i+" is not an object!");return i}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePattern=n;function n(i){let s=!1,o="latest",a=i,c=!1;a[0]==="@"&&(c=!0,a=a.slice(1));let u=a.split("@");return u.length>1&&(a=u.shift(),o=u.join("@"),o?s=!0:o="*"),c&&(a=`@${a}`),{name:a,range:o,hasVersion:s}}},,function(e,t,r){var n=r(50),i=r(106);e.exports=r(33)?function(s,o,a){return n.f(s,o,i(1,a))}:function(s,o,a){return s[o]=a,s}},function(e,t,r){var n=r(63),i=n.Buffer;function s(a,c){for(var u in a)c[u]=a[u]}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=o);function o(a,c,u){return i(a,c,u)}s(i,o),o.from=function(a,c,u){if(typeof a=="number")throw new TypeError("Argument must not be a number");return i(a,c,u)},o.alloc=function(a,c,u){if(typeof a!="number")throw new TypeError("Argument must be a number");var f=i(a);return c!==void 0?typeof u=="string"?f.fill(c,u):f.fill(c):f.fill(0),f},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return i(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}},function(e,t,r){e.exports=!r(85)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(e,t){e.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},function(e,t){e.exports={}},function(e,t){e.exports=q("os")},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wait=n,t.promisify=i,t.queue=s;function n(o){return new Promise(a=>{setTimeout(a,o)})}function i(o,a){return function(...c){return new Promise(function(u,f){c.push(function(l,...h){let p=h;h.length<=1&&(p=h[0]),a&&(p=l,l=null),l?f(l):u(p)}),o.apply(null,c)})}}function s(o,a,c=1/0){c=Math.min(c,o.length),o=o.slice();let u=[],f=o.length;return f?new Promise((l,h)=>{for(let d=0;d<c;d++)p();function p(){let d=o.shift();a(d).then(function(v){u.push(v),f--,f===0?l(u):o.length&&p()},h)}}):Promise.resolve(u)}},function(e,t,r){var n=r(11),i=r(23),s=r(48),o=r(31),a=r(49),c="prototype",u=function(f,l,h){var p=f&u.F,d=f&u.G,m=f&u.S,v=f&u.P,P=f&u.B,C=f&u.W,F=d?i:i[l]||(i[l]={}),D=F[c],E=d?n:m?n[l]:(n[l]||{})[c],O,k,_;d&&(h=l);for(O in h)k=!p&&E&&E[O]!==void 0,!(k&&a(F,O))&&(_=k?E[O]:h[O],F[O]=d&&typeof E[O]!="function"?h[O]:P&&k?s(_,n):C&&E[O]==_?function(T){var b=function(g,y,w){if(this instanceof T){switch(arguments.length){case 0:return new T;case 1:return new T(g);case 2:return new T(g,y)}return new T(g,y,w)}return T.apply(this,arguments)};return b[c]=T[c],b}(_):v&&typeof _=="function"?s(Function.call,_):_,v&&((F.virtual||(F.virtual={}))[O]=_,f&u.R&&D&&!D[O]&&o(D,O,_)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,r){try{var n=r(2);if(typeof n.inherits!="function")throw"";e.exports=n.inherits}catch{e.exports=r(224)}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.home=void 0;var n;function i(){return n=s(r(169))}function s(u){return u&&u.__esModule?u:{default:u}}let o=r(0),a=t.home=r(36).homedir(),c=(n||i()).default?o.resolve("/usr/local/share"):a;t.default=c},function(e,t){e.exports=function(r){if(typeof r!="function")throw TypeError(r+" is not a function!");return r}},function(e,t){var r={}.toString;e.exports=function(n){return r.call(n).slice(8,-1)}},function(e,t,r){var n=r(46);e.exports=function(i,s,o){if(n(i),s===void 0)return i;switch(o){case 1:return function(a){return i.call(s,a)};case 2:return function(a,c){return i.call(s,a,c)};case 3:return function(a,c,u){return i.call(s,a,c,u)}}return function(){return i.apply(s,arguments)}}},function(e,t){var r={}.hasOwnProperty;e.exports=function(n,i){return r.call(n,i)}},function(e,t,r){var n=r(27),i=r(184),s=r(201),o=Object.defineProperty;t.f=r(33)?Object.defineProperty:function(c,u,f){if(n(c),u=s(u,!0),n(f),i)try{return o(c,u,f)}catch{}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(c[u]=f.value),c}},,,,function(e,t){e.exports=q("events")},function(e,t,r){"use strict";let n=r(32).Buffer,i=r(9),s=r(17).Transform,o=["sha256","sha384","sha512"],a=/^[a-z0-9+/]+(?:=?=?)$/i,c=/^([^-]+)-([^?]+)([?\S*]*)$/,u=/^([^-]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/,f=/^[\x21-\x7E]+$/;class l{get isHash(){return!0}constructor(g,y){let w=!!(y&&y.strict);this.source=g.trim();let x=this.source.match(w?u:c);if(!x||w&&!o.some(S=>S===x[1]))return;this.algorithm=x[1],this.digest=x[2];let A=x[3];this.options=A?A.slice(1).split("?"):[]}hexDigest(){return this.digest&&n.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}toString(g){if(g&&g.strict&&!(o.some(w=>w===this.algorithm)&&this.digest.match(a)&&(this.options||[]).every(w=>w.match(f))))return"";let y=this.options&&this.options.length?`?${this.options.join("?")}`:"";return`${this.algorithm}-${this.digest}${y}`}}class h{get isIntegrity(){return!0}toJSON(){return this.toString()}toString(g){g=g||{};let y=g.sep||" ";return g.strict&&(y=y.replace(/\S+/g," ")),Object.keys(this).map(w=>this[w].map(x=>l.prototype.toString.call(x,g)).filter(x=>x.length).join(y)).filter(w=>w.length).join(y)}concat(g,y){let w=typeof g=="string"?g:m(g,y);return p(`${this.toString(y)} ${w}`,y)}hexDigest(){return p(this,{single:!0}).hexDigest()}match(g,y){let w=p(g,y),x=w.pickAlgorithm(y);return this[x]&&w[x]&&this[x].find(A=>w[x].find(S=>A.digest===S.digest))||!1}pickAlgorithm(g){let y=g&&g.pickAlgorithm||T,w=Object.keys(this);if(!w.length)throw new Error(`No algorithms available for ${JSON.stringify(this.toString())}`);return w.reduce((x,A)=>y(x,A)||x)}}e.exports.parse=p;function p(b,g){if(g=g||{},typeof b=="string")return d(b,g);if(b.algorithm&&b.digest){let y=new h;return y[b.algorithm]=[b],d(m(y,g),g)}else return d(m(b,g),g)}function d(b,g){return g.single?new l(b,g):b.trim().split(/\s+/).reduce((y,w)=>{let x=new l(w,g);if(x.algorithm&&x.digest){let A=x.algorithm;y[A]||(y[A]=[]),y[A].push(x)}return y},new h)}e.exports.stringify=m;function m(b,g){return b.algorithm&&b.digest?l.prototype.toString.call(b,g):typeof b=="string"?m(p(b,g),g):h.prototype.toString.call(b,g)}e.exports.fromHex=v;function v(b,g,y){let w=y&&y.options&&y.options.length?`?${y.options.join("?")}`:"";return p(`${g}-${n.from(b,"hex").toString("base64")}${w}`,y)}e.exports.fromData=P;function P(b,g){g=g||{};let y=g.algorithms||["sha512"],w=g.options&&g.options.length?`?${g.options.join("?")}`:"";return y.reduce((x,A)=>{let S=i.createHash(A).update(b).digest("base64"),L=new l(`${A}-${S}${w}`,g);if(L.algorithm&&L.digest){let N=L.algorithm;x[N]||(x[N]=[]),x[N].push(L)}return x},new h)}e.exports.fromStream=C;function C(b,g){g=g||{};let y=g.Promise||Promise,w=E(g);return new y((x,A)=>{b.pipe(w),b.on("error",A),w.on("error",A);let S;w.on("integrity",L=>{S=L}),w.on("end",()=>x(S)),w.on("data",()=>{})})}e.exports.checkData=F;function F(b,g,y){if(y=y||{},g=p(g,y),!Object.keys(g).length){if(y.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let w=g.pickAlgorithm(y),x=i.createHash(w).update(b).digest("base64"),A=p({algorithm:w,digest:x}),S=A.match(g,y);if(S||!y.error)return S;if(typeof y.size=="number"&&b.length!==y.size){let L=new Error(`data size mismatch when checking ${g}.
55
+ Wanted: ${y.size}
56
+ Found: ${b.length}`);throw L.code="EBADSIZE",L.found=b.length,L.expected=y.size,L.sri=g,L}else{let L=new Error(`Integrity checksum failed when using ${w}: Wanted ${g}, but got ${A}. (${b.length} bytes)`);throw L.code="EINTEGRITY",L.found=A,L.expected=g,L.algorithm=w,L.sri=g,L}}e.exports.checkStream=D;function D(b,g,y){y=y||{};let w=y.Promise||Promise,x=E(Object.assign({},y,{integrity:g}));return new w((A,S)=>{b.pipe(x),b.on("error",S),x.on("error",S);let L;x.on("verified",N=>{L=N}),x.on("end",()=>A(L)),x.on("data",()=>{})})}e.exports.integrityStream=E;function E(b){b=b||{};let g=b.integrity&&p(b.integrity,b),y=g&&Object.keys(g).length,w=y&&g.pickAlgorithm(b),x=y&&g[w],A=Array.from(new Set((b.algorithms||["sha512"]).concat(w?[w]:[]))),S=A.map(i.createHash),L=0,N=new s({transform(I,B,W){L+=I.length,S.forEach(Y=>Y.update(I,B)),W(null,I,B)}}).on("end",()=>{let I=b.options&&b.options.length?`?${b.options.join("?")}`:"",B=p(S.map((Y,se)=>`${A[se]}-${Y.digest("base64")}${I}`).join(" "),b),W=y&&B.match(g,b);if(typeof b.size=="number"&&L!==b.size){let Y=new Error(`stream size mismatch when checking ${g}.
57
+ Wanted: ${b.size}
58
+ Found: ${L}`);Y.code="EBADSIZE",Y.found=L,Y.expected=b.size,Y.sri=g,N.emit("error",Y)}else if(b.integrity&&!W){let Y=new Error(`${g} integrity checksum failed when using ${w}: wanted ${x} but got ${B}. (${L} bytes)`);Y.code="EINTEGRITY",Y.found=B,Y.expected=x,Y.algorithm=w,Y.sri=g,N.emit("error",Y)}else N.emit("size",L),N.emit("integrity",B),W&&N.emit("verified",W)});return N}e.exports.create=O;function O(b){b=b||{};let g=b.algorithms||["sha512"],y=b.options&&b.options.length?`?${b.options.join("?")}`:"",w=g.map(i.createHash);return{update:function(x,A){return w.forEach(S=>S.update(x,A)),this},digest:function(x){return g.reduce((S,L)=>{let N=w.shift().digest("base64"),I=new l(`${L}-${N}${y}`,b);if(I.algorithm&&I.digest){let B=I.algorithm;S[B]||(S[B]=[]),S[B].push(I)}return S},new h)}}}let k=new Set(i.getHashes()),_=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(b=>k.has(b));function T(b,g){return _.indexOf(b.toLowerCase())>=_.indexOf(g.toLowerCase())?b:g}},,,,,function(e,t,r){e.exports=v,v.Minimatch=P;var n={sep:"/"};try{n=r(0)}catch{}var i=v.GLOBSTAR=P.GLOBSTAR={},s=r(175),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c=a+"*?",u="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",f="(?:(?!(?:\\/|^)\\.).)*?",l=h("().*{}+?[]^$\\!");function h(g){return g.split("").reduce(function(y,w){return y[w]=!0,y},{})}var p=/\/+/;v.filter=d;function d(g,y){return y=y||{},function(w,x,A){return v(w,g,y)}}function m(g,y){g=g||{},y=y||{};var w={};return Object.keys(y).forEach(function(x){w[x]=y[x]}),Object.keys(g).forEach(function(x){w[x]=g[x]}),w}v.defaults=function(g){if(!g||!Object.keys(g).length)return v;var y=v,w=function(A,S,L){return y.minimatch(A,S,m(g,L))};return w.Minimatch=function(A,S){return new y.Minimatch(A,m(g,S))},w},P.defaults=function(g){return!g||!Object.keys(g).length?P:v.defaults(g).Minimatch};function v(g,y,w){if(typeof y!="string")throw new TypeError("glob pattern string required");return w||(w={}),!w.nocomment&&y.charAt(0)==="#"?!1:y.trim()===""?g==="":new P(y,w).match(g)}function P(g,y){if(!(this instanceof P))return new P(g,y);if(typeof g!="string")throw new TypeError("glob pattern string required");y||(y={}),g=g.trim(),n.sep!=="/"&&(g=g.split(n.sep).join("/")),this.options=y,this.set=[],this.pattern=g,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}P.prototype.debug=function(){},P.prototype.make=C;function C(){if(!this._made){var g=this.pattern,y=this.options;if(!y.nocomment&&g.charAt(0)==="#"){this.comment=!0;return}if(!g){this.empty=!0;return}this.parseNegate();var w=this.globSet=this.braceExpand();y.debug&&(this.debug=console.error),this.debug(this.pattern,w),w=this.globParts=w.map(function(x){return x.split(p)}),this.debug(this.pattern,w),w=w.map(function(x,A,S){return x.map(this.parse,this)},this),this.debug(this.pattern,w),w=w.filter(function(x){return x.indexOf(!1)===-1}),this.debug(this.pattern,w),this.set=w}}P.prototype.parseNegate=F;function F(){var g=this.pattern,y=!1,w=this.options,x=0;if(!w.nonegate){for(var A=0,S=g.length;A<S&&g.charAt(A)==="!";A++)y=!y,x++;x&&(this.pattern=g.substr(x)),this.negate=y}}v.braceExpand=function(g,y){return D(g,y)},P.prototype.braceExpand=D;function D(g,y){if(y||(this instanceof P?y=this.options:y={}),g=typeof g>"u"?this.pattern:g,typeof g>"u")throw new TypeError("undefined pattern");return y.nobrace||!g.match(/\{.*\}/)?[g]:s(g)}P.prototype.parse=O;var E={};function O(g,y){if(g.length>1024*64)throw new TypeError("pattern is too long");var w=this.options;if(!w.noglobstar&&g==="**")return i;if(g==="")return"";var x="",A=!!w.nocase,S=!1,L=[],N=[],I,B=!1,W=-1,Y=-1,se=g.charAt(0)==="."?"":w.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",G=this;function $(){if(I){switch(I){case"*":x+=c,A=!0;break;case"?":x+=a,A=!0;break;default:x+="\\"+I;break}G.debug("clearStateChar %j %j",I,x),I=!1}}for(var M=0,re=g.length,ne;M<re&&(ne=g.charAt(M));M++){if(this.debug("%s %s %s %j",g,M,x,ne),S&&l[ne]){x+="\\"+ne,S=!1;continue}switch(ne){case"/":return!1;case"\\":$(),S=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",g,M,x,ne),B){this.debug(" in class"),ne==="!"&&M===Y+1&&(ne="^"),x+=ne;continue}G.debug("call clearStateChar %j",I),$(),I=ne,w.noext&&$();continue;case"(":if(B){x+="(";continue}if(!I){x+="\\(";continue}L.push({type:I,start:M-1,reStart:x.length,open:o[I].open,close:o[I].close}),x+=I==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",I,x),I=!1;continue;case")":if(B||!L.length){x+="\\)";continue}$(),A=!0;var j=L.pop();x+=j.close,j.type==="!"&&N.push(j),j.reEnd=x.length;continue;case"|":if(B||!L.length||S){x+="\\|",S=!1;continue}$(),x+="|";continue;case"[":if($(),B){x+="\\"+ne;continue}B=!0,Y=M,W=x.length,x+=ne;continue;case"]":if(M===Y+1||!B){x+="\\"+ne,S=!1;continue}if(B){var oe=g.substring(Y+1,M);try{RegExp("["+oe+"]")}catch{var U=this.parse(oe,E);x=x.substr(0,W)+"\\["+U[0]+"\\]",A=A||U[1],B=!1;continue}}A=!0,B=!1,x+=ne;continue;default:$(),S?S=!1:l[ne]&&!(ne==="^"&&B)&&(x+="\\"),x+=ne}}for(B&&(oe=g.substr(Y+1),U=this.parse(oe,E),x=x.substr(0,W)+"\\["+U[0],A=A||U[1]),j=L.pop();j;j=L.pop()){var ie=x.slice(j.reStart+j.open.length);this.debug("setting tail",x,j),ie=ie.replace(/((?:\\{2}){0,64})(\\?)\|/g,function($t,Ao,Gn){return Gn||(Gn="\\"),Ao+Ao+Gn+"|"}),this.debug(`tail=%j
59
+ %s`,ie,ie,j,x);var le=j.type==="*"?c:j.type==="?"?a:"\\"+j.type;A=!0,x=x.slice(0,j.reStart)+le+"\\("+ie}$(),S&&(x+="\\\\");var be=!1;switch(x.charAt(0)){case".":case"[":case"(":be=!0}for(var he=N.length-1;he>-1;he--){var Fe=N[he],De=x.slice(0,Fe.reStart),Xt=x.slice(Fe.reStart,Fe.reEnd-8),Ue=x.slice(Fe.reEnd-8,Fe.reEnd),xr=x.slice(Fe.reEnd);Ue+=xr;var mo=De.split("(").length-1,yo=xr;for(M=0;M<mo;M++)yo=yo.replace(/\)[+*?]?/,"");xr=yo;var vn="";xr===""&&y!==E&&(vn="$");var vo=De+Xt+xr+vn+Ue;x=vo}if(x!==""&&A&&(x="(?=.)"+x),be&&(x=se+x),y===E)return[x,A];if(!A)return T(g);var Wn=w.nocase?"i":"";try{var Ui=new RegExp("^"+x+"$",Wn)}catch{return new RegExp("$.")}return Ui._glob=g,Ui._src=x,Ui}v.makeRe=function(g,y){return new P(g,y||{}).makeRe()},P.prototype.makeRe=k;function k(){if(this.regexp||this.regexp===!1)return this.regexp;var g=this.set;if(!g.length)return this.regexp=!1,this.regexp;var y=this.options,w=y.noglobstar?c:y.dot?u:f,x=y.nocase?"i":"",A=g.map(function(S){return S.map(function(L){return L===i?w:typeof L=="string"?b(L):L._src}).join("\\/")}).join("|");A="^(?:"+A+")$",this.negate&&(A="^(?!"+A+").*$");try{this.regexp=new RegExp(A,x)}catch{this.regexp=!1}return this.regexp}v.match=function(g,y,w){w=w||{};var x=new P(y,w);return g=g.filter(function(A){return x.match(A)}),x.options.nonull&&!g.length&&g.push(y),g},P.prototype.match=_;function _(g,y){if(this.debug("match",g,this.pattern),this.comment)return!1;if(this.empty)return g==="";if(g==="/"&&y)return!0;var w=this.options;n.sep!=="/"&&(g=g.split(n.sep).join("/")),g=g.split(p),this.debug(this.pattern,"split",g);var x=this.set;this.debug(this.pattern,"set",x);var A,S;for(S=g.length-1;S>=0&&(A=g[S],!A);S--);for(S=0;S<x.length;S++){var L=x[S],N=g;w.matchBase&&L.length===1&&(N=[A]);var I=this.matchOne(N,L,y);if(I)return w.flipNegate?!0:!this.negate}return w.flipNegate?!1:this.negate}P.prototype.matchOne=function(g,y,w){var x=this.options;this.debug("matchOne",{this:this,file:g,pattern:y}),this.debug("matchOne",g.length,y.length);for(var A=0,S=0,L=g.length,N=y.length;A<L&&S<N;A++,S++){this.debug("matchOne loop");var I=y[S],B=g[A];if(this.debug(y,I,B),I===!1)return!1;if(I===i){this.debug("GLOBSTAR",[y,I,B]);var W=A,Y=S+1;if(Y===N){for(this.debug("** at the end");A<L;A++)if(g[A]==="."||g[A]===".."||!x.dot&&g[A].charAt(0)===".")return!1;return!0}for(;W<L;){var se=g[W];if(this.debug(`
60
+ globstar while`,g,W,y,Y,se),this.matchOne(g.slice(W),y.slice(Y),w))return this.debug("globstar found match!",W,L,se),!0;if(se==="."||se===".."||!x.dot&&se.charAt(0)==="."){this.debug("dot detected!",g,W,y,Y);break}this.debug("globstar swallow a segment, and continue"),W++}return!!(w&&(this.debug(`
61
+ >>> no match, partial?`,g,W,y,Y),W===L))}var G;if(typeof I=="string"?(x.nocase?G=B.toLowerCase()===I.toLowerCase():G=B===I,this.debug("string match",I,B,G)):(G=B.match(I),this.debug("pattern match",I,B,G)),!G)return!1}if(A===L&&S===N)return!0;if(A===L)return w;if(S===N){var $=A===L-1&&g[A]==="";return $}throw new Error("wtf?")};function T(g){return g.replace(/\\(.)/g,"$1")}function b(g){return g.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},function(e,t,r){var n=r(123);e.exports=n(i),e.exports.strict=n(s),i.proto=i(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return i(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})});function i(o){var a=function(){return a.called?a.value:(a.called=!0,a.value=o.apply(this,arguments))};return a.called=!1,a}function s(o){var a=function(){if(a.called)throw new Error(a.onceError);return a.called=!0,a.value=o.apply(this,arguments)},c=o.name||"Function wrapped with `once`";return a.onceError=c+" shouldn't be called more than once",a.called=!1,a}},,function(e,t){e.exports=q("buffer")},,,,function(e,t){e.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}},function(e,t,r){var n=r(34),i=r(11).document,s=n(i)&&n(i.createElement);e.exports=function(o){return s?i.createElement(o):{}}},function(e,t){e.exports=!0},function(e,t,r){"use strict";var n=r(46);function i(s){var o,a;this.promise=new s(function(c,u){if(o!==void 0||a!==void 0)throw TypeError("Bad Promise constructor");o=c,a=u}),this.resolve=n(o),this.reject=n(a)}e.exports.f=function(s){return new i(s)}},function(e,t,r){var n=r(50).f,i=r(49),s=r(13)("toStringTag");e.exports=function(o,a,c){o&&!i(o=c?o:o.prototype,s)&&n(o,s,{configurable:!0,value:a})}},function(e,t,r){var n=r(107)("keys"),i=r(111);e.exports=function(s){return n[s]||(n[s]=i(s))}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(i){return isNaN(i=+i)?0:(i>0?n:r)(i)}},function(e,t,r){var n=r(131),i=r(67);e.exports=function(s){return n(i(s))}},function(e,t,r){e.exports=k;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(42),c=r(54).EventEmitter,u=r(0),f=r(22),l=r(76),h=r(218),p=r(115),d=p.alphasort,m=p.alphasorti,v=p.setopts,P=p.ownProp,C=r(223),F=r(2),D=p.childrenIgnored,E=p.isIgnored,O=r(61);function k(y,w,x){if(typeof w=="function"&&(x=w,w={}),w||(w={}),w.sync){if(x)throw new TypeError("callback provided to sync glob");return h(y,w)}return new b(y,w,x)}k.sync=h;var _=k.GlobSync=h.GlobSync;k.glob=k;function T(y,w){if(w===null||typeof w!="object")return y;for(var x=Object.keys(w),A=x.length;A--;)y[x[A]]=w[x[A]];return y}k.hasMagic=function(y,w){var x=T({},w);x.noprocess=!0;var A=new b(y,x),S=A.minimatch.set;if(!y)return!1;if(S.length>1)return!0;for(var L=0;L<S[0].length;L++)if(typeof S[0][L]!="string")return!0;return!1},k.Glob=b,a(b,c);function b(y,w,x){if(typeof w=="function"&&(x=w,w=null),w&&w.sync){if(x)throw new TypeError("callback provided to sync glob");return new _(y,w)}if(!(this instanceof b))return new b(y,w,x);v(this,y,w),this._didRealPath=!1;var A=this.minimatch.set.length;this.matches=new Array(A),typeof x=="function"&&(x=O(x),this.on("error",x),this.on("end",function(B){x(null,B)}));var S=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(A===0)return I();for(var L=!0,N=0;N<A;N++)this._process(this.minimatch.set[N],N,!1,I);L=!1;function I(){--S._processing,S._processing<=0&&(L?process.nextTick(function(){S._finish()}):S._finish())}}b.prototype._finish=function(){if(f(this instanceof b),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();p.finish(this),this.emit("end",this.found)}},b.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var y=this.matches.length;if(y===0)return this._finish();for(var w=this,x=0;x<this.matches.length;x++)this._realpathSet(x,A);function A(){--y===0&&w._finish()}},b.prototype._realpathSet=function(y,w){var x=this.matches[y];if(!x)return w();var A=Object.keys(x),S=this,L=A.length;if(L===0)return w();var N=this.matches[y]=Object.create(null);A.forEach(function(I,B){I=S._makeAbs(I),i.realpath(I,S.realpathCache,function(W,Y){W?W.syscall==="stat"?N[I]=!0:S.emit("error",W):N[Y]=!0,--L===0&&(S.matches[y]=N,w())})})},b.prototype._mark=function(y){return p.mark(this,y)},b.prototype._makeAbs=function(y){return p.makeAbs(this,y)},b.prototype.abort=function(){this.aborted=!0,this.emit("abort")},b.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))},b.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var y=this._emitQueue.slice(0);this._emitQueue.length=0;for(var w=0;w<y.length;w++){var x=y[w];this._emitMatch(x[0],x[1])}}if(this._processQueue.length){var A=this._processQueue.slice(0);this._processQueue.length=0;for(var w=0;w<A.length;w++){var S=A[w];this._processing--,this._process(S[0],S[1],S[2],S[3])}}}},b.prototype._process=function(y,w,x,A){if(f(this instanceof b),f(typeof A=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([y,w,x,A]);return}for(var S=0;typeof y[S]=="string";)S++;var L;switch(S){case y.length:this._processSimple(y.join("/"),w,A);return;case 0:L=null;break;default:L=y.slice(0,S).join("/");break}var N=y.slice(S),I;L===null?I=".":((l(L)||l(y.join("/")))&&(!L||!l(L))&&(L="/"+L),I=L);var B=this._makeAbs(I);if(D(this,I))return A();var W=N[0]===s.GLOBSTAR;W?this._processGlobStar(L,I,B,N,w,x,A):this._processReaddir(L,I,B,N,w,x,A)}},b.prototype._processReaddir=function(y,w,x,A,S,L,N){var I=this;this._readdir(x,L,function(B,W){return I._processReaddir2(y,w,x,A,S,L,W,N)})},b.prototype._processReaddir2=function(y,w,x,A,S,L,N,I){if(!N)return I();for(var B=A[0],W=!!this.minimatch.negate,Y=B._glob,se=this.dot||Y.charAt(0)===".",G=[],$=0;$<N.length;$++){var M=N[$];if(M.charAt(0)!=="."||se){var re;W&&!y?re=!M.match(B):re=M.match(B),re&&G.push(M)}}var ne=G.length;if(ne===0)return I();if(A.length===1&&!this.mark&&!this.stat){this.matches[S]||(this.matches[S]=Object.create(null));for(var $=0;$<ne;$++){var M=G[$];y&&(y!=="/"?M=y+"/"+M:M=y+M),M.charAt(0)==="/"&&!this.nomount&&(M=u.join(this.root,M)),this._emitMatch(S,M)}return I()}A.shift();for(var $=0;$<ne;$++){var M=G[$],j;y&&(y!=="/"?M=y+"/"+M:M=y+M),this._process([M].concat(A),S,L,I)}I()},b.prototype._emitMatch=function(y,w){if(!this.aborted&&!E(this,w)){if(this.paused){this._emitQueue.push([y,w]);return}var x=l(w)?w:this._makeAbs(w);if(this.mark&&(w=this._mark(w)),this.absolute&&(w=x),!this.matches[y][w]){if(this.nodir){var A=this.cache[x];if(A==="DIR"||Array.isArray(A))return}this.matches[y][w]=!0;var S=this.statCache[x];S&&this.emit("stat",w,S),this.emit("match",w)}}},b.prototype._readdirInGlobStar=function(y,w){if(this.aborted)return;if(this.follow)return this._readdir(y,!1,w);var x="lstat\0"+y,A=this,S=C(x,L);S&&n.lstat(y,S);function L(N,I){if(N&&N.code==="ENOENT")return w();var B=I&&I.isSymbolicLink();A.symlinks[y]=B,!B&&I&&!I.isDirectory()?(A.cache[y]="FILE",w()):A._readdir(y,!1,w)}},b.prototype._readdir=function(y,w,x){if(!this.aborted&&(x=C("readdir\0"+y+"\0"+w,x),!!x)){if(w&&!P(this.symlinks,y))return this._readdirInGlobStar(y,x);if(P(this.cache,y)){var A=this.cache[y];if(!A||A==="FILE")return x();if(Array.isArray(A))return x(null,A)}var S=this;n.readdir(y,g(this,y,x))}};function g(y,w,x){return function(A,S){A?y._readdirError(w,A,x):y._readdirEntries(w,S,x)}}b.prototype._readdirEntries=function(y,w,x){if(!this.aborted){if(!this.mark&&!this.stat)for(var A=0;A<w.length;A++){var S=w[A];y==="/"?S=y+S:S=y+"/"+S,this.cache[S]=!0}return this.cache[y]=w,x(null,w)}},b.prototype._readdirError=function(y,w,x){if(!this.aborted){switch(w.code){case"ENOTSUP":case"ENOTDIR":var A=this._makeAbs(y);if(this.cache[A]="FILE",A===this.cwdAbs){var S=new Error(w.code+" invalid cwd "+this.cwd);S.path=this.cwd,S.code=w.code,this.emit("error",S),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(y)]=!1;break;default:this.cache[this._makeAbs(y)]=!1,this.strict&&(this.emit("error",w),this.abort()),this.silent||console.error("glob error",w);break}return x()}},b.prototype._processGlobStar=function(y,w,x,A,S,L,N){var I=this;this._readdir(x,L,function(B,W){I._processGlobStar2(y,w,x,A,S,L,W,N)})},b.prototype._processGlobStar2=function(y,w,x,A,S,L,N,I){if(!N)return I();var B=A.slice(1),W=y?[y]:[],Y=W.concat(B);this._process(Y,S,!1,I);var se=this.symlinks[x],G=N.length;if(se&&L)return I();for(var $=0;$<G;$++){var M=N[$];if(!(M.charAt(0)==="."&&!this.dot)){var re=W.concat(N[$],B);this._process(re,S,!0,I);var ne=W.concat(N[$],A);this._process(ne,S,!0,I)}}I()},b.prototype._processSimple=function(y,w,x){var A=this;this._stat(y,function(S,L){A._processSimple2(y,w,S,L,x)})},b.prototype._processSimple2=function(y,w,x,A,S){if(this.matches[w]||(this.matches[w]=Object.create(null)),!A)return S();if(y&&l(y)&&!this.nomount){var L=/[\/\\]$/.test(y);y.charAt(0)==="/"?y=u.join(this.root,y):(y=u.resolve(this.root,y),L&&(y+="/"))}process.platform==="win32"&&(y=y.replace(/\\/g,"/")),this._emitMatch(w,y),S()},b.prototype._stat=function(y,w){var x=this._makeAbs(y),A=y.slice(-1)==="/";if(y.length>this.maxLength)return w();if(!this.stat&&P(this.cache,x)){var S=this.cache[x];if(Array.isArray(S)&&(S="DIR"),!A||S==="DIR")return w(null,S);if(A&&S==="FILE")return w()}var L,N=this.statCache[x];if(N!==void 0){if(N===!1)return w(null,N);var I=N.isDirectory()?"DIR":"FILE";return A&&I==="FILE"?w():w(null,I,N)}var B=this,W=C("stat\0"+x,Y);W&&n.lstat(x,W);function Y(se,G){if(G&&G.isSymbolicLink())return n.stat(x,function($,M){$?B._stat2(y,x,null,G,w):B._stat2(y,x,$,M,w)});B._stat2(y,x,se,G,w)}},b.prototype._stat2=function(y,w,x,A,S){if(x&&(x.code==="ENOENT"||x.code==="ENOTDIR"))return this.statCache[w]=!1,S();var L=y.slice(-1)==="/";if(this.statCache[w]=A,w.slice(-1)==="/"&&A&&!A.isDirectory())return S(null,!1,A);var N=!0;return A&&(N=A.isDirectory()?"DIR":"FILE"),this.cache[w]=this.cache[w]||N,L&&N==="FILE"?S():S(null,N,A)}},function(e,t,r){"use strict";function n(s){return s.charAt(0)==="/"}function i(s){var o=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,a=o.exec(s),c=a[1]||"",u=!!(c&&c.charAt(1)!==":");return!!(a[2]||u)}e.exports=process.platform==="win32"?i:n,e.exports.posix=n,e.exports.win32=i},,,function(e,t){e.exports=q("tty")},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(x,A="lockfile"){return x=(0,(a||c()).default)(x),g(x)?w(x,A):{type:"success",object:y(x,A)}};var n;function i(){return n=m(r(2))}var s;function o(){return s=m(r(7))}var a;function c(){return a=m(r(122))}var u;function f(){return u=r(6)}var l;function h(){return l=r(4)}var p;function d(){return p=m(r(20))}function m(x){return x&&x.__esModule?x:{default:x}}let v=/^yarn lockfile v(\d+)$/,P={boolean:"BOOLEAN",string:"STRING",identifier:"IDENTIFIER",eof:"EOF",colon:"COLON",newline:"NEWLINE",comment:"COMMENT",indent:"INDENT",invalid:"INVALID",number:"NUMBER",comma:"COMMA"},C=[P.boolean,P.string,P.number];function F(x){return C.indexOf(x.type)>=0}function*D(x){let A=!1,S=1,L=0;function N(I,B){return{line:S,col:L,type:I,value:B}}for(;x.length;){let I=0;if(x[0]===`
62
+ `||x[0]==="\r")I++,x[1]===`
63
+ `&&I++,S++,L=0,yield N(P.newline);else if(x[0]==="#"){I++;let B="";for(;x[I]!==`
64
+ `;)B+=x[I],I++;yield N(P.comment,B)}else if(x[0]===" ")if(A){let B="";for(let W=0;x[W]===" ";W++)B+=x[W];if(B.length%2)throw new TypeError("Invalid number of spaces");I=B.length,yield N(P.indent,B.length/2)}else I++;else if(x[0]==='"'){let B="";for(let W=0;;W++){let Y=x[W];if(B+=Y,W>0&&Y==='"'&&!(x[W-1]==="\\"&&x[W-2]!=="\\"))break}I=B.length;try{yield N(P.string,JSON.parse(B))}catch(W){if(W instanceof SyntaxError)yield N(P.invalid);else throw W}}else if(/^[0-9]/.test(x)){let B="";for(let W=0;/^[0-9]$/.test(x[W]);W++)B+=x[W];I=B.length,yield N(P.number,+B)}else if(/^true/.test(x))yield N(P.boolean,!0),I=4;else if(/^false/.test(x))yield N(P.boolean,!1),I=5;else if(x[0]===":")yield N(P.colon),I++;else if(x[0]===",")yield N(P.comma),I++;else if(/^[a-zA-Z\/-]/g.test(x)){let B="";for(let W=0;W<x.length;W++){let Y=x[W];if(Y===":"||Y===" "||Y===`
65
+ `||Y==="\r"||Y===",")break;B+=Y}I=B.length,yield N(P.string,B)}else yield N(P.invalid);I||(yield N(P.invalid)),L+=I,A=x[0]===`
66
+ `||x[0]==="\r"&&x[1]===`
67
+ `,x=x.slice(I)}yield N(P.eof)}class E{constructor(A,S="lockfile"){this.comments=[],this.tokens=D(A),this.fileLoc=S}onComment(A){let S=A.value;(0,(s||o()).default)(typeof S=="string","expected token value to be a string");let L=S.trim(),N=L.match(v);if(N){let I=+N[1];if(I>(u||f()).LOCKFILE_VERSION)throw new(l||h()).MessageError(`Can't install from a lockfile of version ${I} as you're on an old yarn version that only supports versions up to ${(u||f()).LOCKFILE_VERSION}. Run \`$ yarn self-update\` to upgrade to the latest version.`)}this.comments.push(L)}next(){let A=this.tokens.next();(0,(s||o()).default)(A,"expected a token");let S=A.done,L=A.value;if(S||!L)throw new Error("No more tokens");return L.type===P.comment?(this.onComment(L),this.next()):this.token=L}unexpected(A="Unexpected token"){throw new SyntaxError(`${A} ${this.token.line}:${this.token.col} in ${this.fileLoc}`)}expect(A){this.token.type===A?this.next():this.unexpected()}eat(A){return this.token.type===A?(this.next(),!0):!1}parse(A=0){let S=(0,(p||d()).default)();for(;;){let $=this.token;if($.type===P.newline){let M=this.next();if(!A)continue;if(M.type!==P.indent)break;if(M.value===A)this.next();else break}else if($.type===P.indent)if($.value===A)this.next();else break;else{if($.type===P.eof)break;if($.type===P.string){let M=$.value;(0,(s||o()).default)(M,"Expected a key");let re=[M];for(this.next();this.token.type===P.comma;){this.next();let j=this.token;j.type!==P.string&&this.unexpected("Expected string");let oe=j.value;(0,(s||o()).default)(oe,"Expected a key"),re.push(oe),this.next()}let ne=this.token;if(ne.type===P.colon){this.next();let j=this.parse(A+1);for(var I=re,L=Array.isArray(I),N=0,I=L?I:I[Symbol.iterator]();;){var B;if(L){if(N>=I.length)break;B=I[N++]}else{if(N=I.next(),N.done)break;B=N.value}let oe=B;S[oe]=j}if(A&&this.token.type!==P.indent)break}else if(F(ne)){for(var se=re,W=Array.isArray(se),Y=0,se=W?se:se[Symbol.iterator]();;){var G;if(W){if(Y>=se.length)break;G=se[Y++]}else{if(Y=se.next(),Y.done)break;G=Y.value}let j=G;S[j]=ne.value}this.next()}else this.unexpected("Invalid value type")}else this.unexpected(`Unknown token: ${(n||i()).default.inspect($)}`)}}return S}}let O="|||||||",k=">>>>>>>",_="=======",T="<<<<<<<";function b(x){let A=[[],[]],S=x.split(/\r?\n/g),L=!1;for(;S.length;){let N=S.shift();if(N.startsWith(T)){for(;S.length;){let I=S.shift();if(I===_){L=!1;break}else if(L||I.startsWith(O)){L=!0;continue}else A[0].push(I)}for(;S.length;){let I=S.shift();if(I.startsWith(k))break;A[1].push(I)}}else A[0].push(N),A[1].push(N)}return[A[0].join(`
68
+ `),A[1].join(`
69
+ `)]}function g(x){return x.includes(T)&&x.includes(_)&&x.includes(k)}function y(x,A){let S=new E(x,A);return S.next(),S.parse()}function w(x,A){let S=b(x);try{return{type:"merge",object:Object.assign({},y(S[0],A),y(S[1],A))}}catch(L){if(L instanceof SyntaxError)return{type:"conflict",object:{}};throw L}}},,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n;function i(){return n=s(r(20))}function s(c){return c&&c.__esModule?c:{default:c}}let o=r(212)("yarn");class a{constructor(u,f=1/0){this.concurrencyQueue=[],this.maxConcurrency=f,this.runningCount=0,this.warnedStuck=!1,this.alias=u,this.first=!0,this.running=(0,(n||i()).default)(),this.queue=(0,(n||i()).default)(),this.stuckTick=this.stuckTick.bind(this)}stillActive(){this.stuckTimer&&clearTimeout(this.stuckTimer),this.stuckTimer=setTimeout(this.stuckTick,5e3),this.stuckTimer.unref&&this.stuckTimer.unref()}stuckTick(){this.runningCount===1&&(this.warnedStuck=!0,o(`The ${JSON.stringify(this.alias)} blocking queue may be stuck. 5 seconds without any activity with 1 worker: ${Object.keys(this.running)[0]}`))}push(u,f){return this.first?this.first=!1:this.stillActive(),new Promise((l,h)=>{(this.queue[u]=this.queue[u]||[]).push({factory:f,resolve:l,reject:h}),this.running[u]||this.shift(u)})}shift(u){this.running[u]&&(delete this.running[u],this.runningCount--,this.stuckTimer&&(clearTimeout(this.stuckTimer),this.stuckTimer=null),this.warnedStuck&&(this.warnedStuck=!1,o(`${JSON.stringify(this.alias)} blocking queue finally resolved. Nothing to worry about.`)));let f=this.queue[u];if(!f)return;var l=f.shift();let h=l.resolve,p=l.reject,d=l.factory;f.length||delete this.queue[u];let m=()=>{this.shift(u),this.shiftConcurrencyQueue()},v=()=>{this.running[u]=!0,this.runningCount++,d().then(function(P){return h(P),m(),null}).catch(function(P){p(P),m()})};this.maybePushConcurrencyQueue(v)}maybePushConcurrencyQueue(u){this.runningCount<this.maxConcurrency?u():this.concurrencyQueue.push(u)}shiftConcurrencyQueue(){if(this.runningCount<this.maxConcurrency){let u=this.concurrencyQueue.shift();u&&u()}}}t.default=a},function(e,t){e.exports=function(r){try{return!!r()}catch{return!0}}},,,,,,,,,,,,,,,function(e,t,r){var n=r(47),i=r(13)("toStringTag"),s=n(function(){return arguments}())=="Arguments",o=function(a,c){try{return a[c]}catch{}};e.exports=function(a){var c,u,f;return a===void 0?"Undefined":a===null?"Null":typeof(u=o(c=Object(a),i))=="string"?u:s?n(c):(f=n(c))=="Object"&&typeof c.callee=="function"?"Arguments":f}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(11).document;e.exports=n&&n.documentElement},function(e,t,r){"use strict";var n=r(69),i=r(41),s=r(197),o=r(31),a=r(35),c=r(188),u=r(71),f=r(194),l=r(13)("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",m="values",v=function(){return this};e.exports=function(P,C,F,D,E,O,k){c(F,C,D);var _=function(B){if(!h&&B in y)return y[B];switch(B){case d:return function(){return new F(this,B)};case m:return function(){return new F(this,B)}}return function(){return new F(this,B)}},T=C+" Iterator",b=E==m,g=!1,y=P.prototype,w=y[l]||y[p]||E&&y[E],x=w||_(E),A=E?b?_("entries"):x:void 0,S=C=="Array"&&y.entries||w,L,N,I;if(S&&(I=f(S.call(new P)),I!==Object.prototype&&I.next&&(u(I,T,!0),!n&&typeof I[l]!="function"&&o(I,l,v))),b&&w&&w.name!==m&&(g=!0,x=function(){return w.call(this)}),(!n||k)&&(h||g||!y[l])&&o(y,l,x),a[C]=x,a[T]=v,E)if(L={values:b?x:_(m),keys:O?x:_(d),entries:A},k)for(N in L)N in y||s(y,N,L[N]);else i(i.P+i.F*(h||g),C,L);return L}},function(e,t){e.exports=function(r){try{return{e:!1,v:r()}}catch(n){return{e:!0,v:n}}}},function(e,t,r){var n=r(27),i=r(34),s=r(70);e.exports=function(o,a){if(n(o),i(a)&&a.constructor===o)return a;var c=s.f(o),u=c.resolve;return u(a),c.promise}},function(e,t){e.exports=function(r,n){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:n}}},function(e,t,r){var n=r(23),i=r(11),s="__core-js_shared__",o=i[s]||(i[s]={});(e.exports=function(a,c){return o[a]||(o[a]=c!==void 0?c:{})})("versions",[]).push({version:n.version,mode:r(69)?"pure":"global",copyright:"\xA9 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(27),i=r(46),s=r(13)("species");e.exports=function(o,a){var c=n(o).constructor,u;return c===void 0||(u=n(c)[s])==null?a:i(u)}},function(e,t,r){var n=r(48),i=r(185),s=r(102),o=r(68),a=r(11),c=a.process,u=a.setImmediate,f=a.clearImmediate,l=a.MessageChannel,h=a.Dispatch,p=0,d={},m="onreadystatechange",v,P,C,F=function(){var E=+this;if(d.hasOwnProperty(E)){var O=d[E];delete d[E],O()}},D=function(E){F.call(E.data)};(!u||!f)&&(u=function(O){for(var k=[],_=1;arguments.length>_;)k.push(arguments[_++]);return d[++p]=function(){i(typeof O=="function"?O:Function(O),k)},v(p),p},f=function(O){delete d[O]},r(47)(c)=="process"?v=function(E){c.nextTick(n(F,E,1))}:h&&h.now?v=function(E){h.now(n(F,E,1))}:l?(P=new l,C=P.port2,P.port1.onmessage=D,v=n(C.postMessage,C,1)):a.addEventListener&&typeof postMessage=="function"&&!a.importScripts?(v=function(E){a.postMessage(E+"","*")},a.addEventListener("message",D,!1)):m in o("script")?v=function(E){s.appendChild(o("script"))[m]=function(){s.removeChild(this),F.call(E)}}:v=function(E){setTimeout(n(F,E,1),0)}),e.exports={set:u,clear:f}},function(e,t,r){var n=r(73),i=Math.min;e.exports=function(s){return s>0?i(n(s),9007199254740991):0}},function(e,t){var r=0,n=Math.random();e.exports=function(i){return"Symbol(".concat(i===void 0?"":i,")_",(++r+n).toString(36))}},function(e,t,r){t=e.exports=i.debug=i.default=i,t.coerce=u,t.disable=a,t.enable=o,t.enabled=c,t.humanize=r(229),t.instances=[],t.names=[],t.skips=[],t.formatters={};function n(f){var l=0,h;for(h in f)l=(l<<5)-l+f.charCodeAt(h),l|=0;return t.colors[Math.abs(l)%t.colors.length]}function i(f){var l;function h(){if(h.enabled){var p=h,d=+new Date,m=d-(l||d);p.diff=m,p.prev=l,p.curr=d,l=d;for(var v=new Array(arguments.length),P=0;P<v.length;P++)v[P]=arguments[P];v[0]=t.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");var C=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,function(D,E){if(D==="%%")return D;C++;var O=t.formatters[E];if(typeof O=="function"){var k=v[C];D=O.call(p,k),v.splice(C,1),C--}return D}),t.formatArgs.call(p,v);var F=h.log||t.log||console.log.bind(console);F.apply(p,v)}}return h.namespace=f,h.enabled=t.enabled(f),h.useColors=t.useColors(),h.color=n(f),h.destroy=s,typeof t.init=="function"&&t.init(h),t.instances.push(h),h}function s(){var f=t.instances.indexOf(this);return f!==-1?(t.instances.splice(f,1),!0):!1}function o(f){t.save(f),t.names=[],t.skips=[];var l,h=(typeof f=="string"?f:"").split(/[\s,]+/),p=h.length;for(l=0;l<p;l++)h[l]&&(f=h[l].replace(/\*/g,".*?"),f[0]==="-"?t.skips.push(new RegExp("^"+f.substr(1)+"$")):t.names.push(new RegExp("^"+f+"$")));for(l=0;l<t.instances.length;l++){var d=t.instances[l];d.enabled=t.enabled(d.namespace)}}function a(){t.enable("")}function c(f){if(f[f.length-1]==="*")return!0;var l,h;for(l=0,h=t.skips.length;l<h;l++)if(t.skips[l].test(f))return!1;for(l=0,h=t.names.length;l<h;l++)if(t.names[l].test(f))return!0;return!1}function u(f){return f instanceof Error?f.stack||f.message:f}},,function(e,t,r){e.exports=f,f.realpath=f,f.sync=l,f.realpathSync=l,f.monkeypatch=h,f.unmonkeypatch=p;var n=r(3),i=n.realpath,s=n.realpathSync,o=process.version,a=/^v[0-5]\./.test(o),c=r(217);function u(d){return d&&d.syscall==="realpath"&&(d.code==="ELOOP"||d.code==="ENOMEM"||d.code==="ENAMETOOLONG")}function f(d,m,v){if(a)return i(d,m,v);typeof m=="function"&&(v=m,m=null),i(d,m,function(P,C){u(P)?c.realpath(d,m,v):v(P,C)})}function l(d,m){if(a)return s(d,m);try{return s(d,m)}catch(v){if(u(v))return c.realpathSync(d,m);throw v}}function h(){n.realpath=f,n.realpathSync=l}function p(){n.realpath=i,n.realpathSync=s}},function(e,t,r){t.alphasort=u,t.alphasorti=c,t.setopts=h,t.ownProp=n,t.makeAbs=m,t.finish=p,t.mark=d,t.isIgnored=v,t.childrenIgnored=P;function n(C,F){return Object.prototype.hasOwnProperty.call(C,F)}var i=r(0),s=r(60),o=r(76),a=s.Minimatch;function c(C,F){return C.toLowerCase().localeCompare(F.toLowerCase())}function u(C,F){return C.localeCompare(F)}function f(C,F){C.ignore=F.ignore||[],Array.isArray(C.ignore)||(C.ignore=[C.ignore]),C.ignore.length&&(C.ignore=C.ignore.map(l))}function l(C){var F=null;if(C.slice(-3)==="/**"){var D=C.replace(/(\/\*\*)+$/,"");F=new a(D,{dot:!0})}return{matcher:new a(C,{dot:!0}),gmatcher:F}}function h(C,F,D){if(D||(D={}),D.matchBase&&F.indexOf("/")===-1){if(D.noglobstar)throw new Error("base matching requires globstar");F="**/"+F}C.silent=!!D.silent,C.pattern=F,C.strict=D.strict!==!1,C.realpath=!!D.realpath,C.realpathCache=D.realpathCache||Object.create(null),C.follow=!!D.follow,C.dot=!!D.dot,C.mark=!!D.mark,C.nodir=!!D.nodir,C.nodir&&(C.mark=!0),C.sync=!!D.sync,C.nounique=!!D.nounique,C.nonull=!!D.nonull,C.nosort=!!D.nosort,C.nocase=!!D.nocase,C.stat=!!D.stat,C.noprocess=!!D.noprocess,C.absolute=!!D.absolute,C.maxLength=D.maxLength||1/0,C.cache=D.cache||Object.create(null),C.statCache=D.statCache||Object.create(null),C.symlinks=D.symlinks||Object.create(null),f(C,D),C.changedCwd=!1;var E=process.cwd();n(D,"cwd")?(C.cwd=i.resolve(D.cwd),C.changedCwd=C.cwd!==E):C.cwd=E,C.root=D.root||i.resolve(C.cwd,"/"),C.root=i.resolve(C.root),process.platform==="win32"&&(C.root=C.root.replace(/\\/g,"/")),C.cwdAbs=o(C.cwd)?C.cwd:m(C,C.cwd),process.platform==="win32"&&(C.cwdAbs=C.cwdAbs.replace(/\\/g,"/")),C.nomount=!!D.nomount,D.nonegate=!0,D.nocomment=!0,C.minimatch=new a(F,D),C.options=C.minimatch.options}function p(C){for(var F=C.nounique,D=F?[]:Object.create(null),E=0,O=C.matches.length;E<O;E++){var k=C.matches[E];if(!k||Object.keys(k).length===0){if(C.nonull){var _=C.minimatch.globSet[E];F?D.push(_):D[_]=!0}}else{var T=Object.keys(k);F?D.push.apply(D,T):T.forEach(function(b){D[b]=!0})}}if(F||(D=Object.keys(D)),C.nosort||(D=D.sort(C.nocase?c:u)),C.mark){for(var E=0;E<D.length;E++)D[E]=C._mark(D[E]);C.nodir&&(D=D.filter(function(b){var g=!/\/$/.test(b),y=C.cache[b]||C.cache[m(C,b)];return g&&y&&(g=y!=="DIR"&&!Array.isArray(y)),g}))}C.ignore.length&&(D=D.filter(function(b){return!v(C,b)})),C.found=D}function d(C,F){var D=m(C,F),E=C.cache[D],O=F;if(E){var k=E==="DIR"||Array.isArray(E),_=F.slice(-1)==="/";if(k&&!_?O+="/":!k&&_&&(O=O.slice(0,-1)),O!==F){var T=m(C,O);C.statCache[T]=C.statCache[D],C.cache[T]=C.cache[D]}}return O}function m(C,F){var D=F;return F.charAt(0)==="/"?D=i.join(C.root,F):o(F)||F===""?D=F:C.changedCwd?D=i.resolve(C.cwd,F):D=i.resolve(F),process.platform==="win32"&&(D=D.replace(/\\/g,"/")),D}function v(C,F){return C.ignore.length?C.ignore.some(function(D){return D.matcher.match(F)||!!(D.gmatcher&&D.gmatcher.match(F))}):!1}function P(C,F){return C.ignore.length?C.ignore.some(function(D){return!!(D.gmatcher&&D.gmatcher.match(F))}):!1}},function(e,t,r){var n=r(0),i=r(3),s=parseInt("0777",8);e.exports=o.mkdirp=o.mkdirP=o;function o(a,c,u,f){typeof c=="function"?(u=c,c={}):(!c||typeof c!="object")&&(c={mode:c});var l=c.mode,h=c.fs||i;l===void 0&&(l=s&~process.umask()),f||(f=null);var p=u||function(){};a=n.resolve(a),h.mkdir(a,l,function(d){if(!d)return f=f||a,p(null,f);switch(d.code){case"ENOENT":o(n.dirname(a),c,function(m,v){m?p(m,v):o(a,c,p,v)});break;default:h.stat(a,function(m,v){m||!v.isDirectory()?p(d,f):p(null,f)});break}})}o.sync=function a(c,u,f){(!u||typeof u!="object")&&(u={mode:u});var l=u.mode,h=u.fs||i;l===void 0&&(l=s&~process.umask()),f||(f=null),c=n.resolve(c);try{h.mkdirSync(c,l),f=f||c}catch(d){switch(d.code){case"ENOENT":f=a(n.dirname(c),u,f),a(c,u,f);break;default:var p;try{p=h.statSync(c)}catch{throw d}if(!p.isDirectory())throw d;break}}return f}},,,,,,function(e,t,r){"use strict";e.exports=n=>{if(typeof n!="string")throw new TypeError("Expected a string, got "+typeof n);return n.charCodeAt(0)===65279?n.slice(1):n}},function(e,t){e.exports=r;function r(n,i){if(n&&i)return r(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(o){s[o]=n[o]}),s;function s(){for(var o=new Array(arguments.length),a=0;a<o.length;a++)o[a]=arguments[a];var c=n.apply(this,o),u=o[o.length-1];return typeof c=="function"&&c!==u&&Object.keys(u).forEach(function(f){c[f]=u[f]}),c}}},,,,,,,,function(e,t,r){var n=r(47);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(i){return n(i)=="String"?i.split(""):Object(i)}},function(e,t,r){var n=r(195),i=r(101);e.exports=Object.keys||function(o){return n(o,i)}},function(e,t,r){var n=r(67);e.exports=function(i){return Object(n(i))}},,,,,,,,,,,,function(e,t){e.exports={name:"yarn",installationMethod:"unknown",version:"1.10.0-0",license:"BSD-2-Clause",preferGlobal:!0,description:"\u{1F4E6}\u{1F408} Fast, reliable, and secure dependency management.",dependencies:{"@zkochan/cmd-shim":"^2.2.4","babel-runtime":"^6.26.0",bytes:"^3.0.0",camelcase:"^4.0.0",chalk:"^2.1.0",commander:"^2.9.0",death:"^1.0.0",debug:"^3.0.0","deep-equal":"^1.0.1","detect-indent":"^5.0.0",dnscache:"^1.0.1",glob:"^7.1.1","gunzip-maybe":"^1.4.0","hash-for-dep":"^1.2.3","imports-loader":"^0.8.0",ini:"^1.3.4",inquirer:"^3.0.1",invariant:"^2.2.0","is-builtin-module":"^2.0.0","is-ci":"^1.0.10","is-webpack-bundle":"^1.0.0",leven:"^2.0.0","loud-rejection":"^1.2.0",micromatch:"^2.3.11",mkdirp:"^0.5.1","node-emoji":"^1.6.1","normalize-url":"^2.0.0","npm-logical-tree":"^1.2.1","object-path":"^0.11.2","proper-lockfile":"^2.0.0",puka:"^1.0.0",read:"^1.0.7",request:"^2.87.0","request-capture-har":"^1.2.2",rimraf:"^2.5.0",semver:"^5.1.0",ssri:"^5.3.0","strip-ansi":"^4.0.0","strip-bom":"^3.0.0","tar-fs":"^1.16.0","tar-stream":"^1.6.1",uuid:"^3.0.1","v8-compile-cache":"^2.0.0","validate-npm-package-license":"^3.0.3",yn:"^2.0.0"},devDependencies:{"babel-core":"^6.26.0","babel-eslint":"^7.2.3","babel-loader":"^6.2.5","babel-plugin-array-includes":"^2.0.3","babel-plugin-transform-builtin-extend":"^1.1.2","babel-plugin-transform-inline-imports-commonjs":"^1.0.0","babel-plugin-transform-runtime":"^6.4.3","babel-preset-env":"^1.6.0","babel-preset-flow":"^6.23.0","babel-preset-stage-0":"^6.0.0",babylon:"^6.5.0",commitizen:"^2.9.6","cz-conventional-changelog":"^2.0.0",eslint:"^4.3.0","eslint-config-fb-strict":"^22.0.0","eslint-plugin-babel":"^5.0.0","eslint-plugin-flowtype":"^2.35.0","eslint-plugin-jasmine":"^2.6.2","eslint-plugin-jest":"^21.0.0","eslint-plugin-jsx-a11y":"^6.0.2","eslint-plugin-prefer-object-spread":"^1.2.1","eslint-plugin-prettier":"^2.1.2","eslint-plugin-react":"^7.1.0","eslint-plugin-relay":"^0.0.24","eslint-plugin-yarn-internal":"file:scripts/eslint-rules",execa:"^0.10.0","flow-bin":"^0.66.0","git-release-notes":"^3.0.0",gulp:"^3.9.0","gulp-babel":"^7.0.0","gulp-if":"^2.0.1","gulp-newer":"^1.0.0","gulp-plumber":"^1.0.1","gulp-sourcemaps":"^2.2.0","gulp-util":"^3.0.7","gulp-watch":"^5.0.0",jest:"^22.4.4",jsinspect:"^0.12.6",minimatch:"^3.0.4","mock-stdin":"^0.3.0",prettier:"^1.5.2",temp:"^0.8.3",webpack:"^2.1.0-beta.25",yargs:"^6.3.0"},resolutions:{sshpk:"^1.14.2"},engines:{node:">=4.0.0"},repository:"yarnpkg/yarn",bin:{yarn:"./bin/yarn.js",yarnpkg:"./bin/yarn.js"},scripts:{build:"gulp build","build-bundle":"node ./scripts/build-webpack.js","build-chocolatey":"powershell ./scripts/build-chocolatey.ps1","build-deb":"./scripts/build-deb.sh","build-dist":"bash ./scripts/build-dist.sh","build-win-installer":"scripts\\build-windows-installer.bat",changelog:"git-release-notes $(git describe --tags --abbrev=0 $(git describe --tags --abbrev=0)^)..$(git describe --tags --abbrev=0) scripts/changelog.md","dupe-check":"yarn jsinspect ./src",lint:"eslint . && flow check","pkg-tests":"yarn --cwd packages/pkg-tests jest yarn.test.js",prettier:"eslint src __tests__ --fix","release-branch":"./scripts/release-branch.sh",test:"yarn lint && yarn test-only","test-only":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --verbose","test-only-debug":"node --inspect-brk --max_old_space_size=4096 node_modules/jest/bin/jest.js --runInBand --verbose","test-coverage":"node --max_old_space_size=4096 node_modules/jest/bin/jest.js --coverage --verbose",watch:"gulp watch",commit:"git-cz"},jest:{collectCoverageFrom:["src/**/*.js"],testEnvironment:"node",modulePathIgnorePatterns:["__tests__/fixtures/","packages/pkg-tests/pkg-tests-fixtures","dist/"],testPathIgnorePatterns:["__tests__/(fixtures|__mocks__)/","updates/","_(temp|mock|install|init|helpers).js$","packages/pkg-tests"]},config:{commitizen:{path:"./node_modules/cz-conventional-changelog"}}}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var n;function i(){return n=r(12)}var s;function o(){return s=r(6)}var a;function c(){return a=r(145)}let u=process.version;function f(v){return v.indexOf("true")===0||v.indexOf("false")===0||/[:\s\n\\",\[\]]/g.test(v)||/^[0-9]/g.test(v)||!/^[a-zA-Z]/g.test(v)}function l(v){return typeof v=="boolean"||typeof v=="number"||f(v)?JSON.stringify(v):v}let h={name:1,version:2,uid:3,resolved:4,integrity:5,registry:6,dependencies:7};function p(v,P){return h[v]||h[P]?(h[v]||100)>(h[P]||100)?1:-1:(0,(n||i()).sortAlpha)(v,P)}function d(v,P){if(typeof v!="object")throw new TypeError;let C=P.indent,F=[],D=Object.keys(v).sort(p),E=[];for(let O=0;O<D.length;O++){let k=D[O],_=v[k];if(_==null||E.indexOf(k)>=0)continue;let T=[k];if(typeof _=="object")for(let g=O+1;g<D.length;g++){let y=D[g];_===v[y]&&T.push(y)}let b=T.sort((n||i()).sortAlpha).map(l).join(", ");if(typeof _=="string"||typeof _=="boolean"||typeof _=="number")F.push(`${b} ${l(_)}`);else if(typeof _=="object")F.push(`${b}:
70
+ ${d(_,{indent:C+" "})}`+(P.topLevel?`
71
+ `:""));else throw new TypeError;E=E.concat(T)}return C+F.join(`
72
+ ${C}`)}function m(v,P,C){let F=d(v,{indent:"",topLevel:!0});if(P)return F;let D=[];return D.push("# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY."),D.push(`# yarn lockfile v${(s||o()).LOCKFILE_VERSION}`),C&&(D.push(`# yarn v${(a||c()).version}`),D.push(`# node ${u}`)),D.push(`
73
+ `),D.push(F),D.join(`
74
+ `)}},,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fileDatesEqual=t.copyFile=t.unlink=void 0;var n;function i(){return n=f(r(1))}let s=(()=>{var k=(0,(n||i()).default)(function*(_,T,b){let g=_===void 0,y=_||-1;if(l===void 0){let w=yield d(T);l=O(w.mtime,b.mtime)}if(!l){if(g)try{y=yield m(T,"a",b.mode)}catch{try{y=yield m(T,"r",b.mode)}catch{return}}try{y&&(yield v(y,b.atime,b.mtime))}catch{}finally{g&&y&&(yield p(y))}}});return function(T,b,g){return k.apply(this,arguments)}})();var o;function a(){return o=f(r(3))}var c;function u(){return c=r(40)}function f(k){return k&&k.__esModule?k:{default:k}}let l,h=(0,(c||u()).promisify)((o||a()).default.readFile),p=(0,(c||u()).promisify)((o||a()).default.close),d=(0,(c||u()).promisify)((o||a()).default.lstat),m=(0,(c||u()).promisify)((o||a()).default.open),v=(0,(c||u()).promisify)((o||a()).default.futimes),P=(0,(c||u()).promisify)((o||a()).default.write),C=t.unlink=(0,(c||u()).promisify)(r(233)),F=t.copyFile=(()=>{var k=(0,(n||i()).default)(function*(_,T){try{yield C(_.dest),yield D(_.src,_.dest,0,_)}finally{T&&T()}});return function(T,b){return k.apply(this,arguments)}})(),D=(k,_,T,b)=>(o||a()).default.copyFile?new Promise((g,y)=>(o||a()).default.copyFile(k,_,T,w=>{w?y(w):s(void 0,_,b).then(()=>g()).catch(x=>y(x))})):E(k,_,T,b),E=(()=>{var k=(0,(n||i()).default)(function*(_,T,b,g){let y=yield m(T,"w",g.mode);try{let w=yield h(_);yield P(y,w,0,w.length),yield s(y,T,g)}finally{yield p(y)}});return function(T,b,g,y){return k.apply(this,arguments)}})(),O=t.fileDatesEqual=(k,_)=>{let T=k.getTime(),b=_.getTime();if(process.platform!=="win32")return T===b;if(Math.abs(T-b)<=1)return!0;let g=Math.floor(T/1e3),y=Math.floor(b/1e3);return T-g*1e3===0||b-y*1e3===0?g===y:T===b}},,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFakeRoot=i,t.isRootUser=s;function n(){return process.platform!=="win32"&&process.getuid?process.getuid():null}t.default=s(n())&&!i();function i(){return!!process.env.FAKEROOTKEY}function s(o){return o===0}},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDataDir=a,t.getCacheDir=c,t.getConfigDir=u;let n=r(0),i=r(45).default,s=n.join(i,".config","yarn"),o=n.join(i,".cache","yarn");function a(){if(process.platform==="win32"){let l=f();return l==null?s:n.join(l,"Data")}else return process.env.XDG_DATA_HOME?n.join(process.env.XDG_DATA_HOME,"yarn"):s}function c(){return process.platform==="win32"?n.join(f()||n.join(i,"AppData","Local","Yarn"),"Cache"):process.env.XDG_CACHE_HOME?n.join(process.env.XDG_CACHE_HOME,"yarn"):process.platform==="darwin"?n.join(i,"Library","Caches","Yarn"):o}function u(){if(process.platform==="win32"){let l=f();return l==null?s:n.join(l,"Config")}else return process.env.XDG_CONFIG_HOME?n.join(process.env.XDG_CONFIG_HOME,"yarn"):s}function f(){return process.env.LOCALAPPDATA?n.join(process.env.LOCALAPPDATA,"Yarn"):null}},,function(e,t,r){e.exports={default:r(179),__esModule:!0}},function(e,t,r){"use strict";e.exports=n;function n(o,a,c){o instanceof RegExp&&(o=i(o,c)),a instanceof RegExp&&(a=i(a,c));var u=s(o,a,c);return u&&{start:u[0],end:u[1],pre:c.slice(0,u[0]),body:c.slice(u[0]+o.length,u[1]),post:c.slice(u[1]+a.length)}}function i(o,a){var c=a.match(o);return c?c[0]:null}n.range=s;function s(o,a,c){var u,f,l,h,p,d=c.indexOf(o),m=c.indexOf(a,d+1),v=d;if(d>=0&&m>0){for(u=[],l=c.length;v>=0&&!p;)v==d?(u.push(v),d=c.indexOf(o,v+1)):u.length==1?p=[u.pop(),m]:(f=u.pop(),f<l&&(l=f,h=m),m=c.indexOf(a,v+1)),v=d<m&&d>=0?d:m;u.length&&(p=[l,h])}return p}},function(e,t,r){var n=r(178),i=r(174);e.exports=d;var s="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",a="\0CLOSE"+Math.random()+"\0",c="\0COMMA"+Math.random()+"\0",u="\0PERIOD"+Math.random()+"\0";function f(E){return parseInt(E,10)==E?parseInt(E,10):E.charCodeAt(0)}function l(E){return E.split("\\\\").join(s).split("\\{").join(o).split("\\}").join(a).split("\\,").join(c).split("\\.").join(u)}function h(E){return E.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function p(E){if(!E)return[""];var O=[],k=i("{","}",E);if(!k)return E.split(",");var _=k.pre,T=k.body,b=k.post,g=_.split(",");g[g.length-1]+="{"+T+"}";var y=p(b);return b.length&&(g[g.length-1]+=y.shift(),g.push.apply(g,y)),O.push.apply(O,g),O}function d(E){return E?(E.substr(0,2)==="{}"&&(E="\\{\\}"+E.substr(2)),D(l(E),!0).map(h)):[]}function m(E){return E}function v(E){return"{"+E+"}"}function P(E){return/^-?0\d/.test(E)}function C(E,O){return E<=O}function F(E,O){return E>=O}function D(E,O){var k=[],_=i("{","}",E);if(!_||/\$$/.test(_.pre))return[E];var T=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(_.body),b=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(_.body),g=T||b,y=_.body.indexOf(",")>=0;if(!g&&!y)return _.post.match(/,.*\}/)?(E=_.pre+"{"+_.body+a+_.post,D(E)):[E];var w;if(g)w=_.body.split(/\.\./);else if(w=p(_.body),w.length===1&&(w=D(w[0],!1).map(v),w.length===1)){var A=_.post.length?D(_.post,!1):[""];return A.map(function(ie){return _.pre+w[0]+ie})}var x=_.pre,A=_.post.length?D(_.post,!1):[""],S;if(g){var L=f(w[0]),N=f(w[1]),I=Math.max(w[0].length,w[1].length),B=w.length==3?Math.abs(f(w[2])):1,W=C,Y=N<L;Y&&(B*=-1,W=F);var se=w.some(P);S=[];for(var G=L;W(G,N);G+=B){var $;if(b)$=String.fromCharCode(G),$==="\\"&&($="");else if($=String(G),se){var M=I-$.length;if(M>0){var re=new Array(M+1).join("0");G<0?$="-"+re+$.slice(1):$=re+$}}S.push($)}}else S=n(w,function(U){return D(U,!1)});for(var ne=0;ne<S.length;ne++)for(var j=0;j<A.length;j++){var oe=x+S[ne]+A[j];(!O||g||oe)&&k.push(oe)}return k}},function(e,t,r){"use strict";function n(i){let s=!1,o=!1,a=!1;for(let c=0;c<i.length;c++){let u=i[c];s&&/[a-zA-Z]/.test(u)&&u.toUpperCase()===u?(i=i.substr(0,c)+"-"+i.substr(c),s=!1,a=o,o=!0,c++):o&&a&&/[a-zA-Z]/.test(u)&&u.toLowerCase()===u?(i=i.substr(0,c-1)+"-"+i.substr(c-1),a=o,o=!1,s=!0):(s=u.toLowerCase()===u,a=o,o=u.toUpperCase()===u)}return i}e.exports=function(i){return arguments.length>1?i=Array.from(arguments).map(o=>o.trim()).filter(o=>o.length).join("-"):i=i.trim(),i.length===0?"":i.length===1?i.toLowerCase():/^[a-z0-9]+$/.test(i)?i:(i!==i.toLowerCase()&&(i=n(i)),i.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(o,a)=>a.toUpperCase()))}},,function(e,t){e.exports=function(n,i){for(var s=[],o=0;o<n.length;o++){var a=i(n[o],o);r(a)?s.push.apply(s,a):s.push(a)}return s};var r=Array.isArray||function(n){return Object.prototype.toString.call(n)==="[object Array]"}},function(e,t,r){r(205),r(207),r(210),r(206),r(208),r(209),e.exports=r(23).Promise},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(r,n,i,s){if(!(r instanceof n)||s!==void 0&&s in r)throw TypeError(i+": incorrect invocation!");return r}},function(e,t,r){var n=r(74),i=r(110),s=r(200);e.exports=function(o){return function(a,c,u){var f=n(a),l=i(f.length),h=s(u,l),p;if(o&&c!=c){for(;l>h;)if(p=f[h++],p!=p)return!0}else for(;l>h;h++)if((o||h in f)&&f[h]===c)return o||h||0;return!o&&-1}}},function(e,l,r){var n=r(48),i=r(187),s=r(186),o=r(27),a=r(110),c=r(203),u={},f={},l=e.exports=function(h,p,d,m,v){var P=v?function(){return h}:c(h),C=n(d,m,p?2:1),F=0,D,E,O,k;if(typeof P!="function")throw TypeError(h+" is not iterable!");if(s(P)){for(D=a(h.length);D>F;F++)if(k=p?C(o(E=h[F])[0],E[1]):C(h[F]),k===u||k===f)return k}else for(O=P.call(h);!(E=O.next()).done;)if(k=i(O,C,E.value,p),k===u||k===f)return k};l.BREAK=u,l.RETURN=f},function(e,t,r){e.exports=!r(33)&&!r(85)(function(){return Object.defineProperty(r(68)("div"),"a",{get:function(){return 7}}).a!=7})},function(e,t){e.exports=function(r,n,i){var s=i===void 0;switch(n.length){case 0:return s?r():r.call(i);case 1:return s?r(n[0]):r.call(i,n[0]);case 2:return s?r(n[0],n[1]):r.call(i,n[0],n[1]);case 3:return s?r(n[0],n[1],n[2]):r.call(i,n[0],n[1],n[2]);case 4:return s?r(n[0],n[1],n[2],n[3]):r.call(i,n[0],n[1],n[2],n[3])}return r.apply(i,n)}},function(e,t,r){var n=r(35),i=r(13)("iterator"),s=Array.prototype;e.exports=function(o){return o!==void 0&&(n.Array===o||s[i]===o)}},function(e,t,r){var n=r(27);e.exports=function(i,s,o,a){try{return a?s(n(o)[0],o[1]):s(o)}catch(u){var c=i.return;throw c!==void 0&&n(c.call(i)),u}}},function(e,t,r){"use strict";var n=r(192),i=r(106),s=r(71),o={};r(31)(o,r(13)("iterator"),function(){return this}),e.exports=function(a,c,u){a.prototype=n(o,{next:i(1,u)}),s(a,c+" Iterator")}},function(e,t,r){var n=r(13)("iterator"),i=!1;try{var s=[7][n]();s.return=function(){i=!0},Array.from(s,function(){throw 2})}catch{}e.exports=function(o,a){if(!a&&!i)return!1;var c=!1;try{var u=[7],f=u[n]();f.next=function(){return{done:c=!0}},u[n]=function(){return f},o(u)}catch{}return c}},function(e,t){e.exports=function(r,n){return{value:n,done:!!r}}},function(e,t,r){var n=r(11),i=r(109).set,s=n.MutationObserver||n.WebKitMutationObserver,o=n.process,a=n.Promise,c=r(47)(o)=="process";e.exports=function(){var u,f,l,h=function(){var v,P;for(c&&(v=o.domain)&&v.exit();u;){P=u.fn,u=u.next;try{P()}catch(C){throw u?l():f=void 0,C}}f=void 0,v&&v.enter()};if(c)l=function(){o.nextTick(h)};else if(s&&!(n.navigator&&n.navigator.standalone)){var p=!0,d=document.createTextNode("");new s(h).observe(d,{characterData:!0}),l=function(){d.data=p=!p}}else if(a&&a.resolve){var m=a.resolve(void 0);l=function(){m.then(h)}}else l=function(){i.call(n,h)};return function(v){var P={fn:v,next:void 0};f&&(f.next=P),u||(u=P,l()),f=P}}},function(e,t,r){var n=r(27),i=r(193),s=r(101),o=r(72)("IE_PROTO"),a=function(){},c="prototype",u=function(){var f=r(68)("iframe"),l=s.length,h="<",p=">",d;for(f.style.display="none",r(102).appendChild(f),f.src="javascript:",d=f.contentWindow.document,d.open(),d.write(h+"script"+p+"document.F=Object"+h+"/script"+p),d.close(),u=d.F;l--;)delete u[c][s[l]];return u()};e.exports=Object.create||function(l,h){var p;return l!==null?(a[c]=n(l),p=new a,a[c]=null,p[o]=l):p=u(),h===void 0?p:i(p,h)}},function(e,t,r){var n=r(50),i=r(27),s=r(132);e.exports=r(33)?Object.defineProperties:function(a,c){i(a);for(var u=s(c),f=u.length,l=0,h;f>l;)n.f(a,h=u[l++],c[h]);return a}},function(e,t,r){var n=r(49),i=r(133),s=r(72)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(a){return a=i(a),n(a,s)?a[s]:typeof a.constructor=="function"&&a instanceof a.constructor?a.constructor.prototype:a instanceof Object?o:null}},function(e,t,r){var n=r(49),i=r(74),s=r(182)(!1),o=r(72)("IE_PROTO");e.exports=function(a,c){var u=i(a),f=0,l=[],h;for(h in u)h!=o&&n(u,h)&&l.push(h);for(;c.length>f;)n(u,h=c[f++])&&(~s(l,h)||l.push(h));return l}},function(e,t,r){var n=r(31);e.exports=function(i,s,o){for(var a in s)o&&i[a]?i[a]=s[a]:n(i,a,s[a]);return i}},function(e,t,r){e.exports=r(31)},function(e,t,r){"use strict";var n=r(11),i=r(23),s=r(50),o=r(33),a=r(13)("species");e.exports=function(c){var u=typeof i[c]=="function"?i[c]:n[c];o&&u&&!u[a]&&s.f(u,a,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(73),i=r(67);e.exports=function(s){return function(o,a){var c=String(i(o)),u=n(a),f=c.length,l,h;return u<0||u>=f?s?"":void 0:(l=c.charCodeAt(u),l<55296||l>56319||u+1===f||(h=c.charCodeAt(u+1))<56320||h>57343?s?c.charAt(u):l:s?c.slice(u,u+2):(l-55296<<10)+(h-56320)+65536)}}},function(e,t,r){var n=r(73),i=Math.max,s=Math.min;e.exports=function(o,a){return o=n(o),o<0?i(o+a,0):s(o,a)}},function(e,t,r){var n=r(34);e.exports=function(i,s){if(!n(i))return i;var o,a;if(s&&typeof(o=i.toString)=="function"&&!n(a=o.call(i))||typeof(o=i.valueOf)=="function"&&!n(a=o.call(i))||!s&&typeof(o=i.toString)=="function"&&!n(a=o.call(i)))return a;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){var n=r(11),i=n.navigator;e.exports=i&&i.userAgent||""},function(e,t,r){var n=r(100),i=r(13)("iterator"),s=r(35);e.exports=r(23).getIteratorMethod=function(o){if(o!=null)return o[i]||o["@@iterator"]||s[n(o)]}},function(e,t,r){"use strict";var n=r(180),i=r(190),s=r(35),o=r(74);e.exports=r(103)(Array,"Array",function(a,c){this._t=o(a),this._i=0,this._k=c},function(){var a=this._t,c=this._k,u=this._i++;return!a||u>=a.length?(this._t=void 0,i(1)):c=="keys"?i(0,u):c=="values"?i(0,a[u]):i(0,[u,a[u]])},"values"),s.Arguments=s.Array,n("keys"),n("values"),n("entries")},function(e,t){},function(e,t,r){"use strict";var n=r(69),i=r(11),s=r(48),o=r(100),a=r(41),c=r(34),u=r(46),f=r(181),l=r(183),h=r(108),p=r(109).set,d=r(191)(),m=r(70),v=r(104),P=r(202),C=r(105),F="Promise",D=i.TypeError,E=i.process,O=E&&E.versions,k=O&&O.v8||"",_=i[F],T=o(E)=="process",b=function(){},g,y,w,x,A=y=m.f,S=!!function(){try{var G=_.resolve(1),$=(G.constructor={})[r(13)("species")]=function(M){M(b,b)};return(T||typeof PromiseRejectionEvent=="function")&&G.then(b)instanceof $&&k.indexOf("6.6")!==0&&P.indexOf("Chrome/66")===-1}catch{}}(),L=function(G){var $;return c(G)&&typeof($=G.then)=="function"?$:!1},N=function(G,$){if(!G._n){G._n=!0;var M=G._c;d(function(){for(var re=G._v,ne=G._s==1,j=0,oe=function(U){var ie=ne?U.ok:U.fail,le=U.resolve,be=U.reject,he=U.domain,Fe,De,Xt;try{ie?(ne||(G._h==2&&W(G),G._h=1),ie===!0?Fe=re:(he&&he.enter(),Fe=ie(re),he&&(he.exit(),Xt=!0)),Fe===U.promise?be(D("Promise-chain cycle")):(De=L(Fe))?De.call(Fe,le,be):le(Fe)):be(re)}catch(Ue){he&&!Xt&&he.exit(),be(Ue)}};M.length>j;)oe(M[j++]);G._c=[],G._n=!1,$&&!G._h&&I(G)})}},I=function(G){p.call(i,function(){var $=G._v,M=B(G),re,ne,j;if(M&&(re=v(function(){T?E.emit("unhandledRejection",$,G):(ne=i.onunhandledrejection)?ne({promise:G,reason:$}):(j=i.console)&&j.error&&j.error("Unhandled promise rejection",$)}),G._h=T||B(G)?2:1),G._a=void 0,M&&re.e)throw re.v})},B=function(G){return G._h!==1&&(G._a||G._c).length===0},W=function(G){p.call(i,function(){var $;T?E.emit("rejectionHandled",G):($=i.onrejectionhandled)&&$({promise:G,reason:G._v})})},Y=function(G){var $=this;$._d||($._d=!0,$=$._w||$,$._v=G,$._s=2,$._a||($._a=$._c.slice()),N($,!0))},se=function(G){var $=this,M;if(!$._d){$._d=!0,$=$._w||$;try{if($===G)throw D("Promise can't be resolved itself");(M=L(G))?d(function(){var re={_w:$,_d:!1};try{M.call(G,s(se,re,1),s(Y,re,1))}catch(ne){Y.call(re,ne)}}):($._v=G,$._s=1,N($,!1))}catch(re){Y.call({_w:$,_d:!1},re)}}};S||(_=function($){f(this,_,F,"_h"),u($),g.call(this);try{$(s(se,this,1),s(Y,this,1))}catch(M){Y.call(this,M)}},g=function($){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},g.prototype=r(196)(_.prototype,{then:function($,M){var re=A(h(this,_));return re.ok=typeof $=="function"?$:!0,re.fail=typeof M=="function"&&M,re.domain=T?E.domain:void 0,this._c.push(re),this._a&&this._a.push(re),this._s&&N(this,!1),re.promise},catch:function(G){return this.then(void 0,G)}}),w=function(){var G=new g;this.promise=G,this.resolve=s(se,G,1),this.reject=s(Y,G,1)},m.f=A=function(G){return G===_||G===x?new w(G):y(G)}),a(a.G+a.W+a.F*!S,{Promise:_}),r(71)(_,F),r(198)(F),x=r(23)[F],a(a.S+a.F*!S,F,{reject:function($){var M=A(this),re=M.reject;return re($),M.promise}}),a(a.S+a.F*(n||!S),F,{resolve:function($){return C(n&&this===x?_:this,$)}}),a(a.S+a.F*!(S&&r(189)(function(G){_.all(G).catch(b)})),F,{all:function($){var M=this,re=A(M),ne=re.resolve,j=re.reject,oe=v(function(){var U=[],ie=0,le=1;l($,!1,function(be){var he=ie++,Fe=!1;U.push(void 0),le++,M.resolve(be).then(function(De){Fe||(Fe=!0,U[he]=De,--le||ne(U))},j)}),--le||ne(U)});return oe.e&&j(oe.v),re.promise},race:function($){var M=this,re=A(M),ne=re.reject,j=v(function(){l($,!1,function(oe){M.resolve(oe).then(re.resolve,ne)})});return j.e&&ne(j.v),re.promise}})},function(e,t,r){"use strict";var n=r(199)(!0);r(103)(String,"String",function(i){this._t=String(i),this._i=0},function(){var i=this._t,s=this._i,o;return s>=i.length?{value:void 0,done:!0}:(o=n(i,s),this._i+=o.length,{value:o,done:!1})})},function(e,t,r){"use strict";var n=r(41),i=r(23),s=r(11),o=r(108),a=r(105);n(n.P+n.R,"Promise",{finally:function(c){var u=o(this,i.Promise||s.Promise),f=typeof c=="function";return this.then(f?function(l){return a(u,c()).then(function(){return l})}:c,f?function(l){return a(u,c()).then(function(){throw l})}:c)}})},function(e,t,r){"use strict";var n=r(41),i=r(70),s=r(104);n(n.S,"Promise",{try:function(o){var a=i.f(this),c=s(o);return(c.e?a.reject:a.resolve)(c.v),a.promise}})},function(e,t,r){r(204);for(var n=r(11),i=r(31),s=r(35),o=r(13)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var u=a[c],f=n[u],l=f&&f.prototype;l&&!l[o]&&i(l,o,u),s[u]=s.Array}},function(e,t,r){t=e.exports=r(112),t.log=s,t.formatArgs=i,t.save=o,t.load=a,t.useColors=n,t.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:c(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(u){try{return JSON.stringify(u)}catch(f){return"[UnexpectedJSONParseError]: "+f.message}};function i(u){var f=this.useColors;if(u[0]=(f?"%c":"")+this.namespace+(f?" %c":" ")+u[0]+(f?"%c ":" ")+"+"+t.humanize(this.diff),!!f){var l="color: "+this.color;u.splice(1,0,l,"color: inherit");var h=0,p=0;u[0].replace(/%[a-zA-Z%]/g,function(d){d!=="%%"&&(h++,d==="%c"&&(p=h))}),u.splice(p,0,l)}}function s(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(u){try{u==null?t.storage.removeItem("debug"):t.storage.debug=u}catch{}}function a(){var u;try{u=t.storage.debug}catch{}return!u&&typeof process<"u"&&"env"in process&&(u=process.env.DEBUG),u}t.enable(a());function c(){try{return window.localStorage}catch{}}},function(e,t,r){typeof process>"u"||process.type==="renderer"?e.exports=r(211):e.exports=r(213)},function(e,t,r){var n=r(79),i=r(2);t=e.exports=r(112),t.init=h,t.log=u,t.formatArgs=a,t.save=f,t.load=l,t.useColors=o,t.colors=[6,2,3,4,5,1];try{var s=r(239);s&&s.level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}t.inspectOpts=Object.keys(process.env).filter(function(p){return/^debug_/i.test(p)}).reduce(function(p,d){var m=d.substring(6).toLowerCase().replace(/_([a-z])/g,function(P,C){return C.toUpperCase()}),v=process.env[d];return/^(yes|on|true|enabled)$/i.test(v)?v=!0:/^(no|off|false|disabled)$/i.test(v)?v=!1:v==="null"?v=null:v=Number(v),p[m]=v,p},{});function o(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:n.isatty(process.stderr.fd)}t.formatters.o=function(p){return this.inspectOpts.colors=this.useColors,i.inspect(p,this.inspectOpts).split(`
75
+ `).map(function(d){return d.trim()}).join(" ")},t.formatters.O=function(p){return this.inspectOpts.colors=this.useColors,i.inspect(p,this.inspectOpts)};function a(p){var d=this.namespace,m=this.useColors;if(m){var v=this.color,P="\x1B[3"+(v<8?v:"8;5;"+v),C=" "+P+";1m"+d+" \x1B[0m";p[0]=C+p[0].split(`
74
76
  `).join(`
75
- `+_),d.push(k+"m+"+t.humanize(this.diff)+"\x1B[0m")}else d[0]=u()+g+" "+d[0]}function u(){return t.inspectOpts.hideDate?"":new Date().toISOString()+" "}function c(){return process.stderr.write(i.format.apply(i,arguments)+`
76
- `)}function f(d){d==null?delete process.env.DEBUG:process.env.DEBUG=d}function l(){return process.env.DEBUG}function h(d){d.inspectOpts={};for(var g=Object.keys(t.inspectOpts),S=0;S<g.length;S++)d.inspectOpts[g[S]]=t.inspectOpts[g[S]]}t.enable(l())},,,,function(e,t,r){var n=r(0),i=process.platform==="win32",s=r(3),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(){var h;if(o){var d=new Error;h=g}else h=S;return h;function g(w){w&&(d.message=w.message,w=d,S(w))}function S(w){if(w){if(process.throwDeprecation)throw w;if(!process.noDeprecation){var k="fs: missing callback "+(w.stack||w.message);process.traceDeprecation?console.trace(k):console.error(k)}}}}function u(h){return typeof h=="function"?h:a()}var c=n.normalize;if(i)var f=/(.*?)(?:[\/\\]+|$)/g;else var f=/(.*?)(?:[\/]+|$)/g;if(i)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else var l=/^[\/]*/;t.realpathSync=function(d,g){if(d=n.resolve(d),g&&Object.prototype.hasOwnProperty.call(g,d))return g[d];var S=d,w={},k={},_,N,D,A;R();function R(){var m=l.exec(d);_=m[0].length,N=m[0],D=m[0],A="",i&&!k[D]&&(s.lstatSync(D),k[D]=!0)}for(;_<d.length;){f.lastIndex=_;var b=f.exec(d);if(A=N,N+=b[0],D=A+b[1],_=f.lastIndex,!(k[D]||g&&g[D]===D)){var O;if(g&&Object.prototype.hasOwnProperty.call(g,D))O=g[D];else{var T=s.lstatSync(D);if(!T.isSymbolicLink()){k[D]=!0,g&&(g[D]=D);continue}var x=null;if(!i){var p=T.dev.toString(32)+":"+T.ino.toString(32);w.hasOwnProperty(p)&&(x=w[p])}x===null&&(s.statSync(D),x=s.readlinkSync(D)),O=n.resolve(A,x),g&&(g[D]=O),i||(w[p]=x)}d=n.resolve(O,d.slice(_)),R()}}return g&&(g[S]=d),d},t.realpath=function(d,g,S){if(typeof S!="function"&&(S=u(g),g=null),d=n.resolve(d),g&&Object.prototype.hasOwnProperty.call(g,d))return process.nextTick(S.bind(null,null,g[d]));var w=d,k={},_={},N,D,A,R;b();function b(){var m=l.exec(d);N=m[0].length,D=m[0],A=m[0],R="",i&&!_[A]?s.lstat(A,function(E){if(E)return S(E);_[A]=!0,O()}):process.nextTick(O)}function O(){if(N>=d.length)return g&&(g[w]=d),S(null,d);f.lastIndex=N;var m=f.exec(d);return R=D,D+=m[0],A=R+m[1],N=f.lastIndex,_[A]||g&&g[A]===A?process.nextTick(O):g&&Object.prototype.hasOwnProperty.call(g,A)?p(g[A]):s.lstat(A,T)}function T(m,E){if(m)return S(m);if(!E.isSymbolicLink())return _[A]=!0,g&&(g[A]=A),process.nextTick(O);if(!i){var C=E.dev.toString(32)+":"+E.ino.toString(32);if(k.hasOwnProperty(C))return x(null,k[C],A)}s.stat(A,function(y){if(y)return S(y);s.readlink(A,function(v,P){i||(k[C]=P),x(v,P)})})}function x(m,E,C){if(m)return S(m);var y=n.resolve(R,E);g&&(g[C]=y),p(y)}function p(m){d=n.resolve(m,d.slice(N)),b()}}},function(e,t,r){e.exports=N,N.GlobSync=D;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(75).Glob,u=r(2),c=r(0),f=r(22),l=r(76),h=r(115),d=h.alphasort,g=h.alphasorti,S=h.setopts,w=h.ownProp,k=h.childrenIgnored,_=h.isIgnored;function N(A,R){if(typeof R=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
77
- See: https://github.com/isaacs/node-glob/issues/167`);return new D(A,R).found}function D(A,R){if(!A)throw new Error("must provide pattern");if(typeof R=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
78
- See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof D))return new D(A,R);if(S(this,A,R),this.noprocess)return this;var b=this.minimatch.set.length;this.matches=new Array(b);for(var O=0;O<b;O++)this._process(this.minimatch.set[O],O,!1);this._finish()}D.prototype._finish=function(){if(f(this instanceof D),this.realpath){var A=this;this.matches.forEach(function(R,b){var O=A.matches[b]=Object.create(null);for(var T in R)try{T=A._makeAbs(T);var x=i.realpathSync(T,A.realpathCache);O[x]=!0}catch(p){if(p.syscall==="stat")O[A._makeAbs(T)]=!0;else throw p}})}h.finish(this)},D.prototype._process=function(A,R,b){f(this instanceof D);for(var O=0;typeof A[O]=="string";)O++;var T;switch(O){case A.length:this._processSimple(A.join("/"),R);return;case 0:T=null;break;default:T=A.slice(0,O).join("/");break}var x=A.slice(O),p;T===null?p=".":((l(T)||l(A.join("/")))&&(!T||!l(T))&&(T="/"+T),p=T);var m=this._makeAbs(p);if(!k(this,p)){var E=x[0]===s.GLOBSTAR;E?this._processGlobStar(T,p,m,x,R,b):this._processReaddir(T,p,m,x,R,b)}},D.prototype._processReaddir=function(A,R,b,O,T,x){var p=this._readdir(b,x);if(p){for(var m=O[0],E=!!this.minimatch.negate,C=m._glob,y=this.dot||C.charAt(0)===".",v=[],P=0;P<p.length;P++){var I=p[P];if(I.charAt(0)!=="."||y){var L;E&&!A?L=!I.match(m):L=I.match(m),L&&v.push(I)}}var $=v.length;if($!==0){if(O.length===1&&!this.mark&&!this.stat){this.matches[T]||(this.matches[T]=Object.create(null));for(var P=0;P<$;P++){var I=v[P];A&&(A.slice(-1)!=="/"?I=A+"/"+I:I=A+I),I.charAt(0)==="/"&&!this.nomount&&(I=c.join(this.root,I)),this._emitMatch(T,I)}return}O.shift();for(var P=0;P<$;P++){var I=v[P],U;A?U=[A,I]:U=[I],this._process(U.concat(O),T,x)}}}},D.prototype._emitMatch=function(A,R){if(!_(this,R)){var b=this._makeAbs(R);if(this.mark&&(R=this._mark(R)),this.absolute&&(R=b),!this.matches[A][R]){if(this.nodir){var O=this.cache[b];if(O==="DIR"||Array.isArray(O))return}this.matches[A][R]=!0,this.stat&&this._stat(R)}}},D.prototype._readdirInGlobStar=function(A){if(this.follow)return this._readdir(A,!1);var R,b,O;try{b=n.lstatSync(A)}catch(x){if(x.code==="ENOENT")return null}var T=b&&b.isSymbolicLink();return this.symlinks[A]=T,!T&&b&&!b.isDirectory()?this.cache[A]="FILE":R=this._readdir(A,!1),R},D.prototype._readdir=function(A,R){var b;if(R&&!w(this.symlinks,A))return this._readdirInGlobStar(A);if(w(this.cache,A)){var O=this.cache[A];if(!O||O==="FILE")return null;if(Array.isArray(O))return O}try{return this._readdirEntries(A,n.readdirSync(A))}catch(T){return this._readdirError(A,T),null}},D.prototype._readdirEntries=function(A,R){if(!this.mark&&!this.stat)for(var b=0;b<R.length;b++){var O=R[b];A==="/"?O=A+O:O=A+"/"+O,this.cache[O]=!0}return this.cache[A]=R,R},D.prototype._readdirError=function(A,R){switch(R.code){case"ENOTSUP":case"ENOTDIR":var b=this._makeAbs(A);if(this.cache[b]="FILE",b===this.cwdAbs){var O=new Error(R.code+" invalid cwd "+this.cwd);throw O.path=this.cwd,O.code=R.code,O}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(A)]=!1;break;default:if(this.cache[this._makeAbs(A)]=!1,this.strict)throw R;this.silent||console.error("glob error",R);break}},D.prototype._processGlobStar=function(A,R,b,O,T,x){var p=this._readdir(b,x);if(p){var m=O.slice(1),E=A?[A]:[],C=E.concat(m);this._process(C,T,!1);var y=p.length,v=this.symlinks[b];if(!(v&&x))for(var P=0;P<y;P++){var I=p[P];if(!(I.charAt(0)==="."&&!this.dot)){var L=E.concat(p[P],m);this._process(L,T,!0);var $=E.concat(p[P],O);this._process($,T,!0)}}}},D.prototype._processSimple=function(A,R){var b=this._stat(A);if(this.matches[R]||(this.matches[R]=Object.create(null)),!!b){if(A&&l(A)&&!this.nomount){var O=/[\/\\]$/.test(A);A.charAt(0)==="/"?A=c.join(this.root,A):(A=c.resolve(this.root,A),O&&(A+="/"))}process.platform==="win32"&&(A=A.replace(/\\/g,"/")),this._emitMatch(R,A)}},D.prototype._stat=function(A){var R=this._makeAbs(A),b=A.slice(-1)==="/";if(A.length>this.maxLength)return!1;if(!this.stat&&w(this.cache,R)){var p=this.cache[R];if(Array.isArray(p)&&(p="DIR"),!b||p==="DIR")return p;if(b&&p==="FILE")return!1}var O,T=this.statCache[R];if(!T){var x;try{x=n.lstatSync(R)}catch(m){if(m&&(m.code==="ENOENT"||m.code==="ENOTDIR"))return this.statCache[R]=!1,!1}if(x&&x.isSymbolicLink())try{T=n.statSync(R)}catch{T=x}else T=x}this.statCache[R]=T;var p=!0;return T&&(p=T.isDirectory()?"DIR":"FILE"),this.cache[R]=this.cache[R]||p,b&&p==="FILE"?!1:p},D.prototype._mark=function(A){return h.mark(this,A)},D.prototype._makeAbs=function(A){return h.makeAbs(this,A)}},,,function(e,t,r){"use strict";e.exports=function(n,i){i=i||process.argv;var s=i.indexOf("--"),o=/^--/.test(n)?"":"--",a=i.indexOf(o+n);return a!==-1&&(s!==-1?a<s:!0)}},,function(e,t,r){var n=r(123),i=Object.create(null),s=r(61);e.exports=n(o);function o(c,f){return i[c]?(i[c].push(f),null):(i[c]=[f],a(c))}function a(c){return s(function f(){var l=i[c],h=l.length,d=u(arguments);try{for(var g=0;g<h;g++)l[g].apply(null,d)}finally{l.length>h?(l.splice(0,h),process.nextTick(function(){f.apply(null,d)})):delete i[c]}})}function u(c){for(var f=c.length,l=[],h=0;h<f;h++)l[h]=c[h];return l}},function(e,t){typeof Object.create=="function"?e.exports=function(n,i){n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,i){n.super_=i;var s=function(){};s.prototype=i.prototype,n.prototype=new s,n.prototype.constructor=n}},,,function(e,t,r){e.exports=typeof r<"u"},,function(e,t){var r=1e3,n=r*60,i=n*60,s=i*24,o=s*365.25;e.exports=function(l,h){h=h||{};var d=typeof l;if(d==="string"&&l.length>0)return a(l);if(d==="number"&&isNaN(l)===!1)return h.long?c(l):u(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function a(l){if(l=String(l),!(l.length>100)){var h=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(h){var d=parseFloat(h[1]),g=(h[2]||"ms").toLowerCase();switch(g){case"years":case"year":case"yrs":case"yr":case"y":return d*o;case"days":case"day":case"d":return d*s;case"hours":case"hour":case"hrs":case"hr":case"h":return d*i;case"minutes":case"minute":case"mins":case"min":case"m":return d*n;case"seconds":case"second":case"secs":case"sec":case"s":return d*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function u(l){return l>=s?Math.round(l/s)+"d":l>=i?Math.round(l/i)+"h":l>=n?Math.round(l/n)+"m":l>=r?Math.round(l/r)+"s":l+"ms"}function c(l){return f(l,s,"day")||f(l,i,"hour")||f(l,n,"minute")||f(l,r,"second")||l+" ms"}function f(l,h,d){if(!(l<h))return l<h*1.5?Math.floor(l/h)+" "+d:Math.ceil(l/h)+" "+d+"s"}},,,,function(e,t,r){e.exports=h,h.sync=_;var n=r(22),i=r(0),s=r(3),o=r(75),a=parseInt("666",8),u={nosort:!0,silent:!0},c=0,f=process.platform==="win32";function l(A){var R=["unlink","chmod","stat","lstat","rmdir","readdir"];R.forEach(function(b){A[b]=A[b]||s[b],b=b+"Sync",A[b]=A[b]||s[b]}),A.maxBusyTries=A.maxBusyTries||3,A.emfileWait=A.emfileWait||1e3,A.glob===!1&&(A.disableGlob=!0),A.disableGlob=A.disableGlob||!1,A.glob=A.glob||u}function h(A,R,b){typeof R=="function"&&(b=R,R={}),n(A,"rimraf: missing path"),n.equal(typeof A,"string","rimraf: path should be a string"),n.equal(typeof b,"function","rimraf: callback function required"),n(R,"rimraf: invalid options argument provided"),n.equal(typeof R,"object","rimraf: options should be object"),l(R);var O=0,T=null,x=0;if(R.disableGlob||!o.hasMagic(A))return m(null,[A]);R.lstat(A,function(E,C){if(!E)return m(null,[A]);o(A,R.glob,m)});function p(E){T=T||E,--x===0&&b(T)}function m(E,C){if(E)return b(E);if(x=C.length,x===0)return b();C.forEach(function(y){d(y,R,function v(P){if(P){if((P.code==="EBUSY"||P.code==="ENOTEMPTY"||P.code==="EPERM")&&O<R.maxBusyTries){O++;var I=O*100;return setTimeout(function(){d(y,R,v)},I)}if(P.code==="EMFILE"&&c<R.emfileWait)return setTimeout(function(){d(y,R,v)},c++);P.code==="ENOENT"&&(P=null)}c=0,p(P)})})}}function d(A,R,b){n(A),n(R),n(typeof b=="function"),R.lstat(A,function(O,T){if(O&&O.code==="ENOENT")return b(null);if(O&&O.code==="EPERM"&&f&&g(A,R,O,b),T&&T.isDirectory())return w(A,R,O,b);R.unlink(A,function(x){if(x){if(x.code==="ENOENT")return b(null);if(x.code==="EPERM")return f?g(A,R,x,b):w(A,R,x,b);if(x.code==="EISDIR")return w(A,R,x,b)}return b(x)})})}function g(A,R,b,O){n(A),n(R),n(typeof O=="function"),b&&n(b instanceof Error),R.chmod(A,a,function(T){T?O(T.code==="ENOENT"?null:b):R.stat(A,function(x,p){x?O(x.code==="ENOENT"?null:b):p.isDirectory()?w(A,R,b,O):R.unlink(A,O)})})}function S(A,R,b){n(A),n(R),b&&n(b instanceof Error);try{R.chmodSync(A,a)}catch(T){if(T.code==="ENOENT")return;throw b}try{var O=R.statSync(A)}catch(T){if(T.code==="ENOENT")return;throw b}O.isDirectory()?N(A,R,b):R.unlinkSync(A)}function w(A,R,b,O){n(A),n(R),b&&n(b instanceof Error),n(typeof O=="function"),R.rmdir(A,function(T){T&&(T.code==="ENOTEMPTY"||T.code==="EEXIST"||T.code==="EPERM")?k(A,R,O):T&&T.code==="ENOTDIR"?O(b):O(T)})}function k(A,R,b){n(A),n(R),n(typeof b=="function"),R.readdir(A,function(O,T){if(O)return b(O);var x=T.length;if(x===0)return R.rmdir(A,b);var p;T.forEach(function(m){h(i.join(A,m),R,function(E){if(!p){if(E)return b(p=E);--x===0&&R.rmdir(A,b)}})})})}function _(A,R){R=R||{},l(R),n(A,"rimraf: missing path"),n.equal(typeof A,"string","rimraf: path should be a string"),n(R,"rimraf: missing options"),n.equal(typeof R,"object","rimraf: options should be object");var b;if(R.disableGlob||!o.hasMagic(A))b=[A];else try{R.lstatSync(A),b=[A]}catch{b=o.sync(A,R.glob)}if(b.length)for(var O=0;O<b.length;O++){var A=b[O];try{var T=R.lstatSync(A)}catch(p){if(p.code==="ENOENT")return;p.code==="EPERM"&&f&&S(A,R,p)}try{T&&T.isDirectory()?N(A,R,null):R.unlinkSync(A)}catch(p){if(p.code==="ENOENT")return;if(p.code==="EPERM")return f?S(A,R,p):N(A,R,p);if(p.code!=="EISDIR")throw p;N(A,R,p)}}}function N(A,R,b){n(A),n(R),b&&n(b instanceof Error);try{R.rmdirSync(A)}catch(O){if(O.code==="ENOENT")return;if(O.code==="ENOTDIR")throw b;(O.code==="ENOTEMPTY"||O.code==="EEXIST"||O.code==="EPERM")&&D(A,R)}}function D(A,R){n(A),n(R),R.readdirSync(A).forEach(function(p){_(i.join(A,p),R)});var b=f?100:1,O=0;do{var T=!0;try{var x=R.rmdirSync(A,R);return T=!1,x}finally{if(++O<b&&T)continue}}while(!0)}},,,,,,function(e,t,r){"use strict";var n=r(221),i=function(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}},s=function(){return n("no-color")||n("no-colors")||n("color=false")?0:n("color=16m")||n("color=full")||n("color=truecolor")?3:n("color=256")?2:n("color")||n("colors")||n("color=true")||n("color=always")?1:process.stdout&&!process.stdout.isTTY?0:process.platform==="win32"?1:"CI"in process.env?"TRAVIS"in process.env||process.env.CI==="Travis"?1:0:"TEAMCITY_VERSION"in process.env?process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM==="dumb",0)}();s===0&&"FORCE_COLOR"in process.env&&(s=1),e.exports=process&&i(s)}])});var By=F(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.queryLockFile=void 0;var eT=Xi();function tT(e,t,r){let n=(0,eT.nameAtVersion)(e,t);return r.object[n]}zo.queryLockFile=tT});var My=F($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0})});var Gy=F(Ne=>{"use strict";var qy=Ne&&Ne.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),rT=Ne&&Ne.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),nT=Ne&&Ne.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&qy(t,e,r);return rT(t,e),t},iT=Ne&&Ne.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&qy(t,e,r)},Hy=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ne,"__esModule",{value:!0});Ne.queryLockFile=Ne.nameAtVersion=Ne.parseLockFile=void 0;var ql=Hy(Cn()),jy=Hy(M("fs")),sT=Xi();Object.defineProperty(Ne,"nameAtVersion",{enumerable:!0,get:function(){return sT.nameAtVersion}});var oT=Ty(),aT=Iy(),uT=Sl(),$t={};async function cT(e){let t=await(0,ql.default)(["yarn.lock","common/config/rush/yarn.lock"],{cwd:e});if(t){if($t[t])return $t[t];let i=(await Promise.resolve().then(()=>nT(Ny()))).parse,s=jy.default.readFileSync(t,"utf-8"),o=i(s);return $t[t]=o,o}let r=await(0,ql.default)(["pnpm-lock.yaml","common/config/rush/pnpm-lock.yaml"],{cwd:e});if(r){if($t[r])return $t[r];let i=(0,uT.readYaml)(r),s=(0,oT.parsePnpmLock)(i);return $t[r]=s,$t[r]}let n=await(0,ql.default)(["package-lock.json"],{cwd:e});if(n){if($t[n])return $t[n];let i;try{i=jy.default.readFileSync(n,"utf-8")}catch{throw new Error("Couldn\u2019t parse package-lock.json.")}let s=JSON.parse(i.toString());if(!s?.lockfileVersion||s.lockfileVersion<2)throw new Error(`Your package-lock.json version is not supported: lockfileVersion is ${s.lockfileVersion}. You need npm version 7 or above and package-lock version 2 or above. Please, upgrade npm or choose a different package manager.`);return $t[n]=(0,aT.parseNpmLock)(s),$t[n]}throw new Error("You do not have yarn.lock, pnpm-lock.yaml or package-lock.json. Please use one of these package managers.")}Ne.parseLockFile=cT;var lT=By();Object.defineProperty(Ne,"queryLockFile",{enumerable:!0,get:function(){return lT.queryLockFile}});iT(My(),Ne)});var Wy=F(Qn=>{"use strict";var fT=Qn&&Qn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qn,"__esModule",{value:!0});Qn.getScopedPackages=void 0;var Uy=fT(Ri());function hT(e,t){let r=Array.isArray(t)?t:Object.keys(t),n=new Set,i=e.filter(o=>o.startsWith("@")||o.startsWith("!@"));if(i.length>0){let o=(0,Uy.default)(r,i);for(let a of o)n.add(a)}let s=e.filter(o=>!o.startsWith("@")&&!o.startsWith("!@"));if(s.length>0){let o=dT(r),a=(0,Uy.default)(Object.keys(o),s);for(let u of a)for(let c of o[u])n.add(c)}return[...n]}Qn.getScopedPackages=hT;function dT(e){let t={};for(let r of e){let n=r.replace(/^@[^/]+\//,"");t[n]=t[n]||[],t[n].push(r)}return t}});var zy=F(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0})});var Ky=F(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0})});var Qy=F(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0})});var Jy=F(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.findWorkspacePath=void 0;function pT(e,t){let r=e.find(({name:n})=>n===t);if(r)return r.path}Vo.findWorkspacePath=pT});var Hl=F(Jn=>{"use strict";var Zy=Jn&&Jn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.getPackagesByFiles=void 0;var gT=Zy(Ri()),mT=Zy(M("path")),yT=No();function vT(e,t,r=[],n=!1){let i=(0,yT.getWorkspaces)(e),s=new Set((0,gT.default)(t,r));t=t.filter(a=>!s.has(a));let o=new Set;for(let a of t){let u=i.filter(c=>a.indexOf(mT.default.relative(e,c.path).replace(/\\/g,"/"))===0);if(u&&u.length>0){let c=u.reduce((f,l)=>f.path.length>l.path.length?f:l,u[0]);o.add(c.name)}else if(n)return i.map(c=>c.name)}return[...o]}Jn.getPackagesByFiles=vT});var tv=F(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.getChangedPackages=Zn.getChangedPackagesBetweenRefs=void 0;var or=jo(),ev=Hl();function ET(e,t,r="",n=[]){let i=[...new Set([...(0,or.getUntrackedChanges)(e)||[],...(0,or.getUnstagedChanges)(e)||[],...(0,or.getChangesBetweenRefs)(t,r,[],"",e)||[],...(0,or.getStagedChanges)(e)||[]])];return(0,ev.getPackagesByFiles)(e,i,n,!0)}Zn.getChangedPackagesBetweenRefs=ET;function AT(e,t,r=[]){let n=t||(0,or.getDefaultRemoteBranch)({cwd:e}),i=[...new Set([...(0,or.getUntrackedChanges)(e)||[],...(0,or.getUnstagedChanges)(e)||[],...(0,or.getBranchChanges)(n,e)||[],...(0,or.getStagedChanges)(e)||[]])];return(0,ev.getPackagesByFiles)(e,i,r,!0)}Zn.getChangedPackages=AT});var rv=F(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.listOfWorkspacePackageNames=void 0;function ST(e){return e.map(({name:t})=>t)}Ko.listOfWorkspacePackageNames=ST});var nv=F(Ce=>{"use strict";var wT=Ce&&Ce.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ie=Ce&&Ce.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&wT(t,e,r)};Object.defineProperty(Ce,"__esModule",{value:!0});Ie(Dh(),Ce);Ie(ny(),Ce);Ie(jo(),Ce);Ie(Dy(),Ce);Ie(Gy(),Ce);Ie(Il(),Ce);Ie(Wy(),Ce);Ie(zy(),Ce);Ie(Ky(),Ce);Ie(Qy(),Ce);Ie(Jy(),Ce);Ie(No(),Ce);Ie(Tl(),Ce);Ie(Oo(),Ce);Ie(To(),Ce);Ie(vo(),Ce);Ie(tv(),Ce);Ie(Hl(),Ce);Ie(rv(),Ce);Ie(Pl(),Ce)});var mE=F((D9,gE)=>{var{dirname:V2,resolve:K2}=M("path");gE.exports=function*(e){for(e=K2(e);e;){yield e;let t=V2(e);t===e?e=null:e=t}}});var SE=F((T9,AE)=>{var{hasOwnProperty:sf}=Object.prototype,ia=typeof process<"u"&&process.platform==="win32"?`\r
77
+ `+C),p.push(P+"m+"+t.humanize(this.diff)+"\x1B[0m")}else p[0]=c()+d+" "+p[0]}function c(){return t.inspectOpts.hideDate?"":new Date().toISOString()+" "}function u(){return process.stderr.write(i.format.apply(i,arguments)+`
78
+ `)}function f(p){p==null?delete process.env.DEBUG:process.env.DEBUG=p}function l(){return process.env.DEBUG}function h(p){p.inspectOpts={};for(var d=Object.keys(t.inspectOpts),m=0;m<d.length;m++)p.inspectOpts[d[m]]=t.inspectOpts[d[m]]}t.enable(l())},,,,function(e,t,r){var n=r(0),i=process.platform==="win32",s=r(3),o=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(){var h;if(o){var p=new Error;h=d}else h=m;return h;function d(v){v&&(p.message=v.message,v=p,m(v))}function m(v){if(v){if(process.throwDeprecation)throw v;if(!process.noDeprecation){var P="fs: missing callback "+(v.stack||v.message);process.traceDeprecation?console.trace(P):console.error(P)}}}}function c(h){return typeof h=="function"?h:a()}var u=n.normalize;if(i)var f=/(.*?)(?:[\/\\]+|$)/g;else var f=/(.*?)(?:[\/]+|$)/g;if(i)var l=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else var l=/^[\/]*/;t.realpathSync=function(p,d){if(p=n.resolve(p),d&&Object.prototype.hasOwnProperty.call(d,p))return d[p];var m=p,v={},P={},C,F,D,E;O();function O(){var y=l.exec(p);C=y[0].length,F=y[0],D=y[0],E="",i&&!P[D]&&(s.lstatSync(D),P[D]=!0)}for(;C<p.length;){f.lastIndex=C;var k=f.exec(p);if(E=F,F+=k[0],D=E+k[1],C=f.lastIndex,!(P[D]||d&&d[D]===D)){var _;if(d&&Object.prototype.hasOwnProperty.call(d,D))_=d[D];else{var T=s.lstatSync(D);if(!T.isSymbolicLink()){P[D]=!0,d&&(d[D]=D);continue}var b=null;if(!i){var g=T.dev.toString(32)+":"+T.ino.toString(32);v.hasOwnProperty(g)&&(b=v[g])}b===null&&(s.statSync(D),b=s.readlinkSync(D)),_=n.resolve(E,b),d&&(d[D]=_),i||(v[g]=b)}p=n.resolve(_,p.slice(C)),O()}}return d&&(d[m]=p),p},t.realpath=function(p,d,m){if(typeof m!="function"&&(m=c(d),d=null),p=n.resolve(p),d&&Object.prototype.hasOwnProperty.call(d,p))return process.nextTick(m.bind(null,null,d[p]));var v=p,P={},C={},F,D,E,O;k();function k(){var y=l.exec(p);F=y[0].length,D=y[0],E=y[0],O="",i&&!C[E]?s.lstat(E,function(w){if(w)return m(w);C[E]=!0,_()}):process.nextTick(_)}function _(){if(F>=p.length)return d&&(d[v]=p),m(null,p);f.lastIndex=F;var y=f.exec(p);return O=D,D+=y[0],E=O+y[1],F=f.lastIndex,C[E]||d&&d[E]===E?process.nextTick(_):d&&Object.prototype.hasOwnProperty.call(d,E)?g(d[E]):s.lstat(E,T)}function T(y,w){if(y)return m(y);if(!w.isSymbolicLink())return C[E]=!0,d&&(d[E]=E),process.nextTick(_);if(!i){var x=w.dev.toString(32)+":"+w.ino.toString(32);if(P.hasOwnProperty(x))return b(null,P[x],E)}s.stat(E,function(A){if(A)return m(A);s.readlink(E,function(S,L){i||(P[x]=L),b(S,L)})})}function b(y,w,x){if(y)return m(y);var A=n.resolve(O,w);d&&(d[x]=A),g(A)}function g(y){p=n.resolve(y,p.slice(F)),k()}}},function(e,t,r){e.exports=F,F.GlobSync=D;var n=r(3),i=r(114),s=r(60),o=s.Minimatch,a=r(75).Glob,c=r(2),u=r(0),f=r(22),l=r(76),h=r(115),p=h.alphasort,d=h.alphasorti,m=h.setopts,v=h.ownProp,P=h.childrenIgnored,C=h.isIgnored;function F(E,O){if(typeof O=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
79
+ See: https://github.com/isaacs/node-glob/issues/167`);return new D(E,O).found}function D(E,O){if(!E)throw new Error("must provide pattern");if(typeof O=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
80
+ See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof D))return new D(E,O);if(m(this,E,O),this.noprocess)return this;var k=this.minimatch.set.length;this.matches=new Array(k);for(var _=0;_<k;_++)this._process(this.minimatch.set[_],_,!1);this._finish()}D.prototype._finish=function(){if(f(this instanceof D),this.realpath){var E=this;this.matches.forEach(function(O,k){var _=E.matches[k]=Object.create(null);for(var T in O)try{T=E._makeAbs(T);var b=i.realpathSync(T,E.realpathCache);_[b]=!0}catch(g){if(g.syscall==="stat")_[E._makeAbs(T)]=!0;else throw g}})}h.finish(this)},D.prototype._process=function(E,O,k){f(this instanceof D);for(var _=0;typeof E[_]=="string";)_++;var T;switch(_){case E.length:this._processSimple(E.join("/"),O);return;case 0:T=null;break;default:T=E.slice(0,_).join("/");break}var b=E.slice(_),g;T===null?g=".":((l(T)||l(E.join("/")))&&(!T||!l(T))&&(T="/"+T),g=T);var y=this._makeAbs(g);if(!P(this,g)){var w=b[0]===s.GLOBSTAR;w?this._processGlobStar(T,g,y,b,O,k):this._processReaddir(T,g,y,b,O,k)}},D.prototype._processReaddir=function(E,O,k,_,T,b){var g=this._readdir(k,b);if(g){for(var y=_[0],w=!!this.minimatch.negate,x=y._glob,A=this.dot||x.charAt(0)===".",S=[],L=0;L<g.length;L++){var N=g[L];if(N.charAt(0)!=="."||A){var I;w&&!E?I=!N.match(y):I=N.match(y),I&&S.push(N)}}var B=S.length;if(B!==0){if(_.length===1&&!this.mark&&!this.stat){this.matches[T]||(this.matches[T]=Object.create(null));for(var L=0;L<B;L++){var N=S[L];E&&(E.slice(-1)!=="/"?N=E+"/"+N:N=E+N),N.charAt(0)==="/"&&!this.nomount&&(N=u.join(this.root,N)),this._emitMatch(T,N)}return}_.shift();for(var L=0;L<B;L++){var N=S[L],W;E?W=[E,N]:W=[N],this._process(W.concat(_),T,b)}}}},D.prototype._emitMatch=function(E,O){if(!C(this,O)){var k=this._makeAbs(O);if(this.mark&&(O=this._mark(O)),this.absolute&&(O=k),!this.matches[E][O]){if(this.nodir){var _=this.cache[k];if(_==="DIR"||Array.isArray(_))return}this.matches[E][O]=!0,this.stat&&this._stat(O)}}},D.prototype._readdirInGlobStar=function(E){if(this.follow)return this._readdir(E,!1);var O,k,_;try{k=n.lstatSync(E)}catch(b){if(b.code==="ENOENT")return null}var T=k&&k.isSymbolicLink();return this.symlinks[E]=T,!T&&k&&!k.isDirectory()?this.cache[E]="FILE":O=this._readdir(E,!1),O},D.prototype._readdir=function(E,O){var k;if(O&&!v(this.symlinks,E))return this._readdirInGlobStar(E);if(v(this.cache,E)){var _=this.cache[E];if(!_||_==="FILE")return null;if(Array.isArray(_))return _}try{return this._readdirEntries(E,n.readdirSync(E))}catch(T){return this._readdirError(E,T),null}},D.prototype._readdirEntries=function(E,O){if(!this.mark&&!this.stat)for(var k=0;k<O.length;k++){var _=O[k];E==="/"?_=E+_:_=E+"/"+_,this.cache[_]=!0}return this.cache[E]=O,O},D.prototype._readdirError=function(E,O){switch(O.code){case"ENOTSUP":case"ENOTDIR":var k=this._makeAbs(E);if(this.cache[k]="FILE",k===this.cwdAbs){var _=new Error(O.code+" invalid cwd "+this.cwd);throw _.path=this.cwd,_.code=O.code,_}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(E)]=!1;break;default:if(this.cache[this._makeAbs(E)]=!1,this.strict)throw O;this.silent||console.error("glob error",O);break}},D.prototype._processGlobStar=function(E,O,k,_,T,b){var g=this._readdir(k,b);if(g){var y=_.slice(1),w=E?[E]:[],x=w.concat(y);this._process(x,T,!1);var A=g.length,S=this.symlinks[k];if(!(S&&b))for(var L=0;L<A;L++){var N=g[L];if(!(N.charAt(0)==="."&&!this.dot)){var I=w.concat(g[L],y);this._process(I,T,!0);var B=w.concat(g[L],_);this._process(B,T,!0)}}}},D.prototype._processSimple=function(E,O){var k=this._stat(E);if(this.matches[O]||(this.matches[O]=Object.create(null)),!!k){if(E&&l(E)&&!this.nomount){var _=/[\/\\]$/.test(E);E.charAt(0)==="/"?E=u.join(this.root,E):(E=u.resolve(this.root,E),_&&(E+="/"))}process.platform==="win32"&&(E=E.replace(/\\/g,"/")),this._emitMatch(O,E)}},D.prototype._stat=function(E){var O=this._makeAbs(E),k=E.slice(-1)==="/";if(E.length>this.maxLength)return!1;if(!this.stat&&v(this.cache,O)){var g=this.cache[O];if(Array.isArray(g)&&(g="DIR"),!k||g==="DIR")return g;if(k&&g==="FILE")return!1}var _,T=this.statCache[O];if(!T){var b;try{b=n.lstatSync(O)}catch(y){if(y&&(y.code==="ENOENT"||y.code==="ENOTDIR"))return this.statCache[O]=!1,!1}if(b&&b.isSymbolicLink())try{T=n.statSync(O)}catch{T=b}else T=b}this.statCache[O]=T;var g=!0;return T&&(g=T.isDirectory()?"DIR":"FILE"),this.cache[O]=this.cache[O]||g,k&&g==="FILE"?!1:g},D.prototype._mark=function(E){return h.mark(this,E)},D.prototype._makeAbs=function(E){return h.makeAbs(this,E)}},,,function(e,t,r){"use strict";e.exports=function(n,i){i=i||process.argv;var s=i.indexOf("--"),o=/^--/.test(n)?"":"--",a=i.indexOf(o+n);return a!==-1&&(s!==-1?a<s:!0)}},,function(e,t,r){var n=r(123),i=Object.create(null),s=r(61);e.exports=n(o);function o(u,f){return i[u]?(i[u].push(f),null):(i[u]=[f],a(u))}function a(u){return s(function f(){var l=i[u],h=l.length,p=c(arguments);try{for(var d=0;d<h;d++)l[d].apply(null,p)}finally{l.length>h?(l.splice(0,h),process.nextTick(function(){f.apply(null,p)})):delete i[u]}})}function c(u){for(var f=u.length,l=[],h=0;h<f;h++)l[h]=u[h];return l}},function(e,t){typeof Object.create=="function"?e.exports=function(n,i){n.super_=i,n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,i){n.super_=i;var s=function(){};s.prototype=i.prototype,n.prototype=new s,n.prototype.constructor=n}},,,function(e,t,r){e.exports=typeof r<"u"},,function(e,t){var r=1e3,n=r*60,i=n*60,s=i*24,o=s*365.25;e.exports=function(l,h){h=h||{};var p=typeof l;if(p==="string"&&l.length>0)return a(l);if(p==="number"&&isNaN(l)===!1)return h.long?u(l):c(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function a(l){if(l=String(l),!(l.length>100)){var h=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(h){var p=parseFloat(h[1]),d=(h[2]||"ms").toLowerCase();switch(d){case"years":case"year":case"yrs":case"yr":case"y":return p*o;case"days":case"day":case"d":return p*s;case"hours":case"hour":case"hrs":case"hr":case"h":return p*i;case"minutes":case"minute":case"mins":case"min":case"m":return p*n;case"seconds":case"second":case"secs":case"sec":case"s":return p*r;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return}}}}function c(l){return l>=s?Math.round(l/s)+"d":l>=i?Math.round(l/i)+"h":l>=n?Math.round(l/n)+"m":l>=r?Math.round(l/r)+"s":l+"ms"}function u(l){return f(l,s,"day")||f(l,i,"hour")||f(l,n,"minute")||f(l,r,"second")||l+" ms"}function f(l,h,p){if(!(l<h))return l<h*1.5?Math.floor(l/h)+" "+p:Math.ceil(l/h)+" "+p+"s"}},,,,function(e,t,r){e.exports=h,h.sync=C;var n=r(22),i=r(0),s=r(3),o=r(75),a=parseInt("666",8),c={nosort:!0,silent:!0},u=0,f=process.platform==="win32";function l(E){var O=["unlink","chmod","stat","lstat","rmdir","readdir"];O.forEach(function(k){E[k]=E[k]||s[k],k=k+"Sync",E[k]=E[k]||s[k]}),E.maxBusyTries=E.maxBusyTries||3,E.emfileWait=E.emfileWait||1e3,E.glob===!1&&(E.disableGlob=!0),E.disableGlob=E.disableGlob||!1,E.glob=E.glob||c}function h(E,O,k){typeof O=="function"&&(k=O,O={}),n(E,"rimraf: missing path"),n.equal(typeof E,"string","rimraf: path should be a string"),n.equal(typeof k,"function","rimraf: callback function required"),n(O,"rimraf: invalid options argument provided"),n.equal(typeof O,"object","rimraf: options should be object"),l(O);var _=0,T=null,b=0;if(O.disableGlob||!o.hasMagic(E))return y(null,[E]);O.lstat(E,function(w,x){if(!w)return y(null,[E]);o(E,O.glob,y)});function g(w){T=T||w,--b===0&&k(T)}function y(w,x){if(w)return k(w);if(b=x.length,b===0)return k();x.forEach(function(A){p(A,O,function S(L){if(L){if((L.code==="EBUSY"||L.code==="ENOTEMPTY"||L.code==="EPERM")&&_<O.maxBusyTries){_++;var N=_*100;return setTimeout(function(){p(A,O,S)},N)}if(L.code==="EMFILE"&&u<O.emfileWait)return setTimeout(function(){p(A,O,S)},u++);L.code==="ENOENT"&&(L=null)}u=0,g(L)})})}}function p(E,O,k){n(E),n(O),n(typeof k=="function"),O.lstat(E,function(_,T){if(_&&_.code==="ENOENT")return k(null);if(_&&_.code==="EPERM"&&f&&d(E,O,_,k),T&&T.isDirectory())return v(E,O,_,k);O.unlink(E,function(b){if(b){if(b.code==="ENOENT")return k(null);if(b.code==="EPERM")return f?d(E,O,b,k):v(E,O,b,k);if(b.code==="EISDIR")return v(E,O,b,k)}return k(b)})})}function d(E,O,k,_){n(E),n(O),n(typeof _=="function"),k&&n(k instanceof Error),O.chmod(E,a,function(T){T?_(T.code==="ENOENT"?null:k):O.stat(E,function(b,g){b?_(b.code==="ENOENT"?null:k):g.isDirectory()?v(E,O,k,_):O.unlink(E,_)})})}function m(E,O,k){n(E),n(O),k&&n(k instanceof Error);try{O.chmodSync(E,a)}catch(T){if(T.code==="ENOENT")return;throw k}try{var _=O.statSync(E)}catch(T){if(T.code==="ENOENT")return;throw k}_.isDirectory()?F(E,O,k):O.unlinkSync(E)}function v(E,O,k,_){n(E),n(O),k&&n(k instanceof Error),n(typeof _=="function"),O.rmdir(E,function(T){T&&(T.code==="ENOTEMPTY"||T.code==="EEXIST"||T.code==="EPERM")?P(E,O,_):T&&T.code==="ENOTDIR"?_(k):_(T)})}function P(E,O,k){n(E),n(O),n(typeof k=="function"),O.readdir(E,function(_,T){if(_)return k(_);var b=T.length;if(b===0)return O.rmdir(E,k);var g;T.forEach(function(y){h(i.join(E,y),O,function(w){if(!g){if(w)return k(g=w);--b===0&&O.rmdir(E,k)}})})})}function C(E,O){O=O||{},l(O),n(E,"rimraf: missing path"),n.equal(typeof E,"string","rimraf: path should be a string"),n(O,"rimraf: missing options"),n.equal(typeof O,"object","rimraf: options should be object");var k;if(O.disableGlob||!o.hasMagic(E))k=[E];else try{O.lstatSync(E),k=[E]}catch{k=o.sync(E,O.glob)}if(k.length)for(var _=0;_<k.length;_++){var E=k[_];try{var T=O.lstatSync(E)}catch(g){if(g.code==="ENOENT")return;g.code==="EPERM"&&f&&m(E,O,g)}try{T&&T.isDirectory()?F(E,O,null):O.unlinkSync(E)}catch(g){if(g.code==="ENOENT")return;if(g.code==="EPERM")return f?m(E,O,g):F(E,O,g);if(g.code!=="EISDIR")throw g;F(E,O,g)}}}function F(E,O,k){n(E),n(O),k&&n(k instanceof Error);try{O.rmdirSync(E)}catch(_){if(_.code==="ENOENT")return;if(_.code==="ENOTDIR")throw k;(_.code==="ENOTEMPTY"||_.code==="EEXIST"||_.code==="EPERM")&&D(E,O)}}function D(E,O){n(E),n(O),O.readdirSync(E).forEach(function(g){C(i.join(E,g),O)});var k=f?100:1,_=0;do{var T=!0;try{var b=O.rmdirSync(E,O);return T=!1,b}finally{if(++_<k&&T)continue}}while(!0)}},,,,,,function(e,t,r){"use strict";var n=r(221),i=function(o){return o===0?!1:{level:o,hasBasic:!0,has256:o>=2,has16m:o>=3}},s=function(){return n("no-color")||n("no-colors")||n("color=false")?0:n("color=16m")||n("color=full")||n("color=truecolor")?3:n("color=256")?2:n("color")||n("colors")||n("color=true")||n("color=always")?1:process.stdout&&!process.stdout.isTTY?0:process.platform==="win32"?1:"CI"in process.env?"TRAVIS"in process.env||process.env.CI==="Travis"?1:0:"TEAMCITY_VERSION"in process.env?process.env.TEAMCITY_VERSION.match(/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/)===null?0:1:/^(screen|xterm)-256(?:color)?/.test(process.env.TERM)?2:/^screen|^xterm|^vt100|color|ansi|cygwin|linux/i.test(process.env.TERM)||"COLORTERM"in process.env?1:(process.env.TERM==="dumb",0)}();s===0&&"FORCE_COLOR"in process.env&&(s=1),e.exports=process&&i(s)}])});var pA=R(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.queryLockFile=void 0;var t2=vs();function r2(e,t,r){let n=(0,t2.nameAtVersion)(e,t);return r.object[n]}ka.queryLockFile=r2});var gA=R(dA=>{"use strict";Object.defineProperty(dA,"__esModule",{value:!0})});var AA=R(qe=>{"use strict";var yA=qe&&qe.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),n2=qe&&qe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i2=qe&&qe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&yA(t,e,r);return n2(t,e),t},s2=qe&&qe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&yA(t,e,r)},vA=qe&&qe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qe,"__esModule",{value:!0});qe.queryLockFile=qe.nameAtVersion=qe.parseLockFile=void 0;var Jf=vA(q("fs")),o2=vA(q("path")),a2=vs();Object.defineProperty(qe,"nameAtVersion",{enumerable:!0,get:function(){return a2.nameAtVersion}});var Qf=Vi(),u2=uA(),c2=cA(),mA=Df(),l2=lA(),or={};async function f2(e){let t=(0,Qf.searchUp)(["yarn.lock","common/config/rush/yarn.lock"],e);if(t){if(or[t])return or[t];let i=Jf.default.readFileSync(t,"utf-8"),s=i.includes("__metadata")||Jf.default.existsSync(o2.default.resolve(i.replace("yarn.lock",".yarnrc.yml"))),o={type:"success",object:{}};if(s){let a=(0,mA.readYaml)(t);o=(0,l2.parseBerryLock)(a)}else{let a=(await Promise.resolve().then(()=>i2(hA()))).parse;o=a(i)}return or[t]=o,o}let r=(0,Qf.searchUp)(["pnpm-lock.yaml","common/config/rush/pnpm-lock.yaml"],e);if(r){if(or[r])return or[r];let i=(0,mA.readYaml)(r),s=(0,u2.parsePnpmLock)(i);return or[r]=s,or[r]}let n=(0,Qf.searchUp)("package-lock.json",e);if(n){if(or[n])return or[n];let i;try{i=Jf.default.readFileSync(n,"utf-8")}catch{throw new Error("Couldn't read package-lock.json")}let s=JSON.parse(i.toString());if(!s?.lockfileVersion||s.lockfileVersion<2)throw new Error(`Your package-lock.json version is not supported: lockfileVersion is ${s.lockfileVersion}. You need npm version 7 or above and package-lock version 2 or above. Please, upgrade npm or choose a different package manager.`);return or[n]=(0,c2.parseNpmLock)(s),or[n]}throw new Error("You do not have yarn.lock, pnpm-lock.yaml or package-lock.json. Please use one of these package managers.")}qe.parseLockFile=f2;var h2=pA();Object.defineProperty(qe,"queryLockFile",{enumerable:!0,get:function(){return h2.queryLockFile}});s2(gA(),qe)});var wA=R(Ai=>{"use strict";var p2=Ai&&Ai.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ai,"__esModule",{value:!0});Ai.getScopedPackages=void 0;var EA=p2(ts());function d2(e,t){let r=Array.isArray(t)?t:Object.keys(t),n=new Set,i=e.filter(o=>o.startsWith("@")||o.startsWith("!@"));if(i.length>0){let o=(0,EA.default)(r,i,{nocase:!0});for(let a of o)n.add(a)}let s=e.filter(o=>!o.startsWith("@")&&!o.startsWith("!@"));if(s.length>0){let o=g2(r),a=(0,EA.default)(Object.keys(o),s,{nocase:!0});for(let c of a)for(let u of o[c])n.add(u)}return[...n]}Ai.getScopedPackages=d2;function g2(e){let t={};for(let r of e){let n=r.replace(/^@[^/]+\//,"");t[n]=t[n]||[],t[n].push(r)}return t}});var bA=R(SA=>{"use strict";Object.defineProperty(SA,"__esModule",{value:!0})});var xA=R(CA=>{"use strict";Object.defineProperty(CA,"__esModule",{value:!0})});var OA=R(PA=>{"use strict";Object.defineProperty(PA,"__esModule",{value:!0})});var RA=R(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.findWorkspacePath=void 0;function m2(e,t){return e.find(({name:r})=>r===t)?.path}Da.findWorkspacePath=m2});var eh=R(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.getWorkspacePackagePathsAsync=Ei.getWorkspacePackagePaths=void 0;var Zf=Vn();function y2(e){return(0,Zf.getWorkspaceUtilities)(e)?.getWorkspacePackagePaths(e)||[]}Ei.getWorkspacePackagePaths=y2;async function v2(e){let t=(0,Zf.getWorkspaceUtilities)(e);if(!t)return[];if(!t.getWorkspacePackagePathsAsync){let r=(0,Zf.getWorkspaceManagerAndRoot)(e)?.manager;throw new Error(`${e} is using ${r} which has not been converted to async yet`)}return t.getWorkspacePackagePathsAsync(e)}Ei.getWorkspacePackagePathsAsync=v2});var th=R(wi=>{"use strict";var _A=wi&&wi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wi,"__esModule",{value:!0});wi.getPackagesByFiles=void 0;var A2=_A(ts()),E2=_A(q("path")),w2=ba();function S2(e,t,r=[],n=!1){let i=(0,w2.getWorkspaces)(e),s=new Set((0,A2.default)(t,r));t=t.filter(a=>!s.has(a));let o=new Set;for(let a of t){let c=i.filter(u=>a.indexOf(E2.default.relative(e,u.path).replace(/\\/g,"/"))===0);if(c&&c.length>0){let u=c.reduce((f,l)=>f.path.length>l.path.length?f:l,c[0]);o.add(u.name)}else if(n)return i.map(u=>u.name)}return[...o]}wi.getPackagesByFiles=S2});var DA=R(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.getChangedPackages=Si.getChangedPackagesBetweenRefs=void 0;var Tr=Ro(),kA=th();function b2(e,t,r="",n=[]){let i=[...new Set([...(0,Tr.getUntrackedChanges)(e)||[],...(0,Tr.getUnstagedChanges)(e)||[],...(0,Tr.getChangesBetweenRefs)(t,r,[],"",e)||[],...(0,Tr.getStagedChanges)(e)||[]])];return(0,kA.getPackagesByFiles)(e,i,n,!0)}Si.getChangedPackagesBetweenRefs=b2;function C2(e,t,r=[]){let n=t||(0,Tr.getDefaultRemoteBranch)({cwd:e}),i=[...new Set([...(0,Tr.getUntrackedChanges)(e)||[],...(0,Tr.getUnstagedChanges)(e)||[],...(0,Tr.getBranchChanges)(n,e)||[],...(0,Tr.getStagedChanges)(e)||[]])];return(0,kA.getPackagesByFiles)(e,i,r,!0)}Si.getChangedPackages=C2});var FA=R(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.listOfWorkspacePackageNames=void 0;function x2(e){return e.map(({name:t})=>t)}Fa.listOfWorkspacePackageNames=x2});var IA=R(vr=>{"use strict";var P2=vr&&vr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vr,"__esModule",{value:!0});vr.getAllPackageJsonFilesAsync=vr._resetPackageJsonFilesCache=vr.getAllPackageJsonFiles=void 0;var LA=P2(q("path")),TA=eh(),NA=zn(),kn=new Map;function O2(e){if((0,NA.isCachingEnabled)()&&kn.has(e))return kn.get(e);let t=(0,TA.getWorkspacePackagePaths)(e).map(r=>LA.default.join(r,"package.json"));return kn.set(e,t),t}vr.getAllPackageJsonFiles=O2;function R2(){kn.clear()}vr._resetPackageJsonFilesCache=R2;async function _2(e){if((0,NA.isCachingEnabled)()&&kn.has(e))return kn.get(e);let t=(await(0,TA.getWorkspacePackagePathsAsync)(e)).map(r=>LA.default.join(r,"package.json"));return kn.set(e,t),t}vr.getAllPackageJsonFilesAsync=_2});var jA=R(de=>{"use strict";var k2=de&&de.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),He=de&&de.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&k2(t,e,r)};Object.defineProperty(de,"__esModule",{value:!0});de.getYarnWorkspaces=de.getYarnWorkspaceRoot=de.getRushWorkspaces=de.getRushWorkspaceRoot=de.getPnpmWorkspaces=de.getPnpmWorkspaceRoot=de.setCachingEnabled=void 0;He(Rd(),de);He(nA(),de);He(Ro(),de);He(aA(),de);var D2=zn();Object.defineProperty(de,"setCachingEnabled",{enumerable:!0,get:function(){return D2.setCachingEnabled}});He(AA(),de);He(Vi(),de);He(wA(),de);He(bA(),de);He(xA(),de);He(OA(),de);He(RA(),de);He(ba(),de);He(eh(),de);He(sc(),de);var $A=Tf();Object.defineProperty(de,"getPnpmWorkspaceRoot",{enumerable:!0,get:function(){return $A.getPnpmWorkspaceRoot}});Object.defineProperty(de,"getPnpmWorkspaces",{enumerable:!0,get:function(){return $A.getPnpmWorkspaces}});var BA=Yf();Object.defineProperty(de,"getRushWorkspaceRoot",{enumerable:!0,get:function(){return BA.getRushWorkspaceRoot}});Object.defineProperty(de,"getRushWorkspaces",{enumerable:!0,get:function(){return BA.getRushWorkspaces}});var MA=Jl();Object.defineProperty(de,"getYarnWorkspaceRoot",{enumerable:!0,get:function(){return MA.getYarnWorkspaceRoot}});Object.defineProperty(de,"getYarnWorkspaces",{enumerable:!0,get:function(){return MA.getYarnWorkspaces}});He(DA(),de);He(th(),de);He(FA(),de);He(IA(),de)});var QE=R(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.walkUp=void 0;var JE=q("path"),nB=function*(e){for(e=(0,JE.resolve)(e);e;){yield e;let t=(0,JE.dirname)(e);if(t===e)break;e=t}};qa.walkUp=nB});var Eh=R((J4,rw)=>{var{hasOwnProperty:vh}=Object.prototype,Ah=(e,t={})=>{typeof t=="string"&&(t={section:t}),t.align=t.align===!0,t.newline=t.newline===!0,t.sort=t.sort===!0,t.whitespace=t.whitespace===!0||t.align===!0,t.platform=t.platform||typeof process<"u"&&process.platform,t.bracketedArray=t.bracketedArray!==!1;let r=t.platform==="win32"?`\r
79
81
  `:`
80
- `,of=(e,t)=>{let r=[],n="";typeof t=="string"?t={section:t,whitespace:!1}:(t=t||Object.create(null),t.whitespace=t.whitespace===!0);let i=t.whitespace?" = ":"=";for(let s of Object.keys(e)){let o=e[s];if(o&&Array.isArray(o))for(let a of o)n+=oi(s+"[]")+i+oi(a)+ia;else o&&typeof o=="object"?r.push(s):n+=oi(s)+i+oi(o)+ia}t.section&&n.length&&(n="["+oi(t.section)+"]"+ia+n);for(let s of r){let o=vE(s).join("\\."),a=(t.section?t.section+".":"")+o,{whitespace:u}=t,c=of(e[s],{section:a,whitespace:u});n.length&&c.length&&(n+=ia),n+=c}return n},vE=e=>e.replace(/\1/g,"LITERAL\\1LITERAL").replace(/\\\./g,"").split(/\./).map(t=>t.replace(/\1/g,"\\.").replace(/\2LITERAL\\1LITERAL\2/g,"")),yE=e=>{let t=Object.create(null),r=t,n=null,i=/^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i,s=e.split(/[\r\n]+/g);for(let a of s){if(!a||a.match(/^\s*[;#]/))continue;let u=a.match(i);if(!u)continue;if(u[1]!==void 0){if(n=sa(u[1]),n==="__proto__"){r=Object.create(null);continue}r=t[n]=t[n]||Object.create(null);continue}let c=sa(u[2]),f=c.length>2&&c.slice(-2)==="[]",l=f?c.slice(0,-2):c;if(l==="__proto__")continue;let h=u[3]?sa(u[4]):!0,d=h==="true"||h==="false"||h==="null"?JSON.parse(h):h;f&&(sf.call(r,l)?Array.isArray(r[l])||(r[l]=[r[l]]):r[l]=[]),Array.isArray(r[l])?r[l].push(d):r[l]=d}let o=[];for(let a of Object.keys(t)){if(!sf.call(t,a)||typeof t[a]!="object"||Array.isArray(t[a]))continue;let u=vE(a);r=t;let c=u.pop(),f=c.replace(/\\\./g,".");for(let l of u)l!=="__proto__"&&((!sf.call(r,l)||typeof r[l]!="object")&&(r[l]=Object.create(null)),r=r[l]);r===t&&f===c||(r[f]=t[a],o.push(a))}for(let a of o)delete t[a];return t},EE=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),oi=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&EE(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),sa=(e,t)=>{if(e=(e||"").trim(),EE(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let r=!1,n="";for(let i=0,s=e.length;i<s;i++){let o=e.charAt(i);if(r)"\\;#".indexOf(o)!==-1?n+=o:n+="\\"+o,r=!1;else{if(";#".indexOf(o)!==-1)break;o==="\\"?r=!0:n+=o}}return r&&(n+="\\"),n.trim()}return e};AE.exports={parse:yE,decode:yE,stringify:of,encode:of,safe:oi,unsafe:sa}});var _E=F((wE,CE)=>{CE.exports=wE=rs.abbrev=rs;rs.monkeyPatch=X2;function X2(){Object.defineProperty(Array.prototype,"abbrev",{value:function(){return rs(this)},enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(Object.prototype,"abbrev",{value:function(){return rs(Object.keys(this))},enumerable:!1,configurable:!0,writable:!0})}function rs(e){(arguments.length!==1||!Array.isArray(e))&&(e=Array.prototype.slice.call(arguments,0));for(var t=0,r=e.length,n=[];t<r;t++)n[t]=typeof e[t]=="string"?e[t]:String(e[t]);n=n.sort(Q2);for(var i={},s="",t=0,r=n.length;t<r;t++){var o=n[t],a=n[t+1]||"",u=!0,c=!0;if(o!==a){for(var f=0,l=o.length;f<l;f++){var h=o.charAt(f);if(u=u&&h===a.charAt(f),c=c&&h===s.charAt(f),!u&&!c){f++;break}}if(s=o,f===l){i[o]=o;continue}for(var d=o.substr(0,f);f<=l;f++)i[d]=o,d+=o.charAt(f)}}return i}function Q2(e,t){return e===t?0:e>t?1:-1}});var uf=F((ur,kE)=>{var Oe=process.env.DEBUG_NOPT||process.env.NOPT_DEBUG?function(){console.error.apply(console,arguments)}:function(){},bE=M("url"),af=M("path"),OE=M("stream").Stream,xE=_E(),J2=M("os");kE.exports=ur=Z2;ur.clean=RE;ur.typeDefs={String:{type:String,validate:eL},Boolean:{type:Boolean,validate:iL},url:{type:bE,validate:sL},Number:{type:Number,validate:rL},path:{type:af,validate:tL},Stream:{type:OE,validate:oL},Date:{type:Date,validate:nL}};function Z2(e,t,r,n){r=r||process.argv,e=e||{},t=t||{},typeof n!="number"&&(n=2),Oe(e,t,r,n),r=r.slice(n);var i={},s={remain:[],cooked:r,original:r.slice(0)};return aL(r,i,s.remain,e,t),RE(i,e,ur.typeDefs),i.argv=s,Object.defineProperty(i.argv,"toString",{value:function(){return this.original.map(JSON.stringify).join(" ")},enumerable:!1}),i}function RE(e,t,r){r=r||ur.typeDefs;var n={},i=[!1,!0,null,String,Array];Object.keys(e).forEach(function(s){if(s!=="argv"){var o=e[s],a=Array.isArray(o),u=t[s];a||(o=[o]),u||(u=i),u===Array&&(u=i.concat(Array)),Array.isArray(u)||(u=[u]),Oe("val=%j",o),Oe("types=",u),o=o.map(function(c){if(typeof c=="string"&&(Oe("string %j",c),c=c.trim(),c==="null"&&~u.indexOf(null)||c==="true"&&(~u.indexOf(!0)||~u.indexOf(Boolean))||c==="false"&&(~u.indexOf(!1)||~u.indexOf(Boolean))?(c=JSON.parse(c),Oe("jsonable %j",c)):~u.indexOf(Number)&&!isNaN(c)?(Oe("convert to number",c),c=+c):~u.indexOf(Date)&&!isNaN(Date.parse(c))&&(Oe("convert to date",c),c=new Date(c))),!Object.prototype.hasOwnProperty.call(t,s))return c;c===!1&&~u.indexOf(null)&&!(~u.indexOf(!1)||~u.indexOf(Boolean))&&(c=null);var f={};return f[s]=c,Oe("prevalidated val",f,c,t[s]),FE(f,s,c,t[s],r)?(Oe("validated v",f,c,t[s]),f[s]):(ur.invalidHandler?ur.invalidHandler(s,c,t[s],e):ur.invalidHandler!==!1&&Oe("invalid: "+s+"="+c,t[s]),n)}).filter(function(c){return c!==n}),!o.length&&u.indexOf(Array)===-1?(Oe("VAL HAS NO LENGTH, DELETE IT",o,s,u.indexOf(Array)),delete e[s]):a?(Oe(a,e[s],o),e[s]=o):e[s]=o[0],Oe("k=%s val=%j",s,o,e[s])}})}function eL(e,t,r){e[t]=String(r)}function tL(e,t,r){if(r===!0)return!1;if(r===null)return!0;r=String(r);var n=process.platform==="win32",i=n?/^~(\/|\\)/:/^~\//,s=J2.homedir();return s&&r.match(i)?e[t]=af.resolve(s,r.slice(2)):e[t]=af.resolve(r),!0}function rL(e,t,r){if(Oe("validate Number %j %j %j",t,r,isNaN(r)),isNaN(r))return!1;e[t]=+r}function nL(e,t,r){var n=Date.parse(r);if(Oe("validate Date %j %j %j",t,r,n),isNaN(n))return!1;e[t]=new Date(r)}function iL(e,t,r){r instanceof Boolean?r=r.valueOf():typeof r=="string"?isNaN(r)?r==="null"||r==="false"?r=!1:r=!0:r=!!+r:r=!!r,e[t]=r}function sL(e,t,r){if(r=bE.parse(String(r)),!r.host)return!1;e[t]=r.href}function oL(e,t,r){if(!(r instanceof OE))return!1;e[t]=r}function FE(e,t,r,n,i){if(Array.isArray(n)){for(let c=0,f=n.length;c<f;c++)if(n[c]!==Array&&FE(e,t,r,n[c],i))return!0;return delete e[t],!1}if(n===Array)return!0;if(n!==n)return Oe("Poison NaN",t,r,n),delete e[t],!1;if(r===n)return Oe("Explicitly allowed %j",r),e[t]=r,!0;var s=!1,o=Object.keys(i);for(let c=0,f=o.length;c<f;c++){Oe("test type %j %j %j",t,r,o[c]);var a=i[o[c]];if(a&&(n&&n.name&&a.type&&a.type.name?n.name===a.type.name:n===a.type)){var u={};if(s=a.validate(u,t,r)!==!1,r=u[t],s){e[t]=r;break}}}return Oe("OK? %j (%j %j %j)",s,t,r,o[o.length-1]),s||delete e[t],s}function aL(e,t,r,n,i){Oe("parse",e,t,r);for(var s=xE(Object.keys(n)),o=xE(Object.keys(i)),a=0;a<e.length;a++){var u=e[a];if(Oe("arg",u),u.match(/^-{2,}$/)){r.push.apply(r,e.slice(a+1)),e[a]="--";break}var c=!1;if(u.charAt(0)==="-"&&u.length>1){var f=u.indexOf("=");if(f>-1){c=!0;var l=u.slice(f+1);u=u.slice(0,f),e.splice(a,1,u,l)}var h=uL(u,i,o,s);if(Oe("arg=%j shRes=%j",u,h),h&&(Oe(u,h),e.splice.apply(e,[a,1].concat(h)),u!==h[0])){a--;continue}u=u.replace(/^-+/,"");for(var d=null;u.toLowerCase().indexOf("no-")===0;)d=!d,u=u.slice(3);s[u]&&(u=s[u]);var g=n[u],S=Array.isArray(g);S&&g.length===1&&(S=!1,g=g[0]);var w=g===Array||S&&g.indexOf(Array)!==-1;!Object.prototype.hasOwnProperty.call(n,u)&&Object.prototype.hasOwnProperty.call(t,u)&&(Array.isArray(t[u])||(t[u]=[t[u]]),w=!0);var k,_=e[a+1],N=typeof d=="boolean"||g===Boolean||S&&g.indexOf(Boolean)!==-1||typeof g>"u"&&!c||_==="false"&&(g===null||S&&~g.indexOf(null));if(N){k=!d,(_==="true"||_==="false")&&(k=JSON.parse(_),_=null,d&&(k=!k),a++),S&&_&&(~g.indexOf(_)?(k=_,a++):_==="null"&&~g.indexOf(null)?(k=null,a++):!_.match(/^-{2,}[^-]/)&&!isNaN(_)&&~g.indexOf(Number)?(k=+_,a++):!_.match(/^-[^-]/)&&~g.indexOf(String)&&(k=_,a++)),w?(t[u]=t[u]||[]).push(k):t[u]=k;continue}g===String&&(_===void 0?_="":_.match(/^-{1,2}[^-]+/)&&(_="",a--)),_&&_.match(/^-{2,}$/)&&(_=void 0,a--),k=_===void 0?!0:_,w?(t[u]=t[u]||[]).push(k):t[u]=k,a++;continue}r.push(u)}}function uL(e,t,r,n){if(e=e.replace(/^-+/,""),n[e]===e)return null;if(t[e])return t[e]&&!Array.isArray(t[e])&&(t[e]=t[e].split(/\s+/)),t[e];var i=t.___singles;i||(i=Object.keys(t).filter(function(o){return o.length===1}).reduce(function(o,a){return o[a]=!0,o},{}),t.___singles=i,Oe("shorthand singles",i));var s=e.split("").filter(function(o){return i[o]});return s.join("")===e?s.map(function(o){return t[o]}).reduce(function(o,a){return o.concat(a)},[]):n[e]&&!t[e]?null:(r[e]&&(e=r[e]),t[e]&&!Array.isArray(t[e])&&(t[e]=t[e].split(/\s+/)),t[e])}});var LE=F((I9,oa)=>{var cr=new Map,PE=M("fs"),{dirname:DE,resolve:cf}=M("path"),cL=e=>new Promise((t,r)=>PE.lstat(e,(n,i)=>n?r(n):t(i))),TE=e=>{if(e=cf(e),cr.has(e))return Promise.resolve(cr.get(e));let t=i=>{let{uid:s,gid:o}=i;return cr.set(e,{uid:s,gid:o}),{uid:s,gid:o}},r=DE(e),n=r===e?null:i=>TE(r).then(s=>(cr.set(e,s),s));return cL(e).then(t,n)},IE=e=>{if(e=cf(e),cr.has(e))return cr.get(e);let t=DE(e),r=!0;try{let n=PE.lstatSync(e);r=!1;let{uid:i,gid:s}=n;return cr.set(e,{uid:i,gid:s}),{uid:i,gid:s}}finally{if(r&&t!==e){let n=IE(t);return cr.set(e,n),n}}},ns=new Map;oa.exports=e=>{if(e=cf(e),ns.has(e))return Promise.resolve(ns.get(e));let t=TE(e).then(r=>(ns.delete(e),r));return ns.set(e,t),t};oa.exports.sync=IE;oa.exports.clearCache=()=>{cr.clear(),ns.clear()}});var $E=F((L9,BE)=>{var{promisify:NE}=M("util"),Nr=M("fs"),lL=e=>{if(!e)e={mode:511,fs:Nr};else if(typeof e=="object")e={mode:511,fs:Nr,...e};else if(typeof e=="number")e={mode:e,fs:Nr};else if(typeof e=="string")e={mode:parseInt(e,8),fs:Nr};else throw new TypeError("invalid options argument");return e.mkdir=e.mkdir||e.fs.mkdir||Nr.mkdir,e.mkdirAsync=NE(e.mkdir),e.stat=e.stat||e.fs.stat||Nr.stat,e.statAsync=NE(e.stat),e.statSync=e.statSync||e.fs.statSync||Nr.statSync,e.mkdirSync=e.mkdirSync||e.fs.mkdirSync||Nr.mkdirSync,e};BE.exports=lL});var jE=F((N9,ME)=>{var fL=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,{resolve:hL,parse:dL}=M("path"),pL=e=>{if(/\0/.test(e))throw Object.assign(new TypeError("path must be a string without null bytes"),{path:e,code:"ERR_INVALID_ARG_VALUE"});if(e=hL(e),fL==="win32"){let t=/[*|"<>?:]/,{root:r}=dL(e);if(t.test(e.substr(r.length)))throw Object.assign(new Error("Illegal characters in path."),{path:e,code:"EINVAL"})}return e};ME.exports=pL});var WE=F((B9,UE)=>{var{dirname:qE}=M("path"),HE=(e,t,r=void 0)=>r===t?Promise.resolve():e.statAsync(t).then(n=>n.isDirectory()?r:void 0,n=>n.code==="ENOENT"?HE(e,qE(t),t):void 0),GE=(e,t,r=void 0)=>{if(r!==t)try{return e.statSync(t).isDirectory()?r:void 0}catch(n){return n.code==="ENOENT"?GE(e,qE(t),t):void 0}};UE.exports={findMade:HE,findMadeSync:GE}});var hf=F(($9,zE)=>{var{dirname:YE}=M("path"),lf=(e,t,r)=>{t.recursive=!1;let n=YE(e);return n===e?t.mkdirAsync(e,t).catch(i=>{if(i.code!=="EISDIR")throw i}):t.mkdirAsync(e,t).then(()=>r||e,i=>{if(i.code==="ENOENT")return lf(n,t).then(s=>lf(e,t,s));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;return t.statAsync(e).then(s=>{if(s.isDirectory())return r;throw i},()=>{throw i})})},ff=(e,t,r)=>{let n=YE(e);if(t.recursive=!1,n===e)try{return t.mkdirSync(e,t)}catch(i){if(i.code!=="EISDIR")throw i;return}try{return t.mkdirSync(e,t),r||e}catch(i){if(i.code==="ENOENT")return ff(e,t,ff(n,t,r));if(i.code!=="EEXIST"&&i.code!=="EROFS")throw i;try{if(!t.statSync(e).isDirectory())throw i}catch{throw i}}};zE.exports={mkdirpManual:lf,mkdirpManualSync:ff}});var XE=F((M9,KE)=>{var{dirname:VE}=M("path"),{findMade:gL,findMadeSync:mL}=WE(),{mkdirpManual:yL,mkdirpManualSync:vL}=hf(),EL=(e,t)=>(t.recursive=!0,VE(e)===e?t.mkdirAsync(e,t):gL(t,e).then(n=>t.mkdirAsync(e,t).then(()=>n).catch(i=>{if(i.code==="ENOENT")return yL(e,t);throw i}))),AL=(e,t)=>{if(t.recursive=!0,VE(e)===e)return t.mkdirSync(e,t);let n=mL(t,e);try{return t.mkdirSync(e,t),n}catch(i){if(i.code==="ENOENT")return vL(e,t);throw i}};KE.exports={mkdirpNative:EL,mkdirpNativeSync:AL}});var eA=F((j9,ZE)=>{var QE=M("fs"),SL=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version,df=SL.replace(/^v/,"").split("."),JE=+df[0]>10||+df[0]==10&&+df[1]>=12,wL=JE?e=>e.mkdir===QE.mkdir:()=>!1,CL=JE?e=>e.mkdirSync===QE.mkdirSync:()=>!1;ZE.exports={useNative:wL,useNativeSync:CL}});var oA=F((q9,sA)=>{var ai=$E(),ui=jE(),{mkdirpNative:tA,mkdirpNativeSync:rA}=XE(),{mkdirpManual:nA,mkdirpManualSync:iA}=hf(),{useNative:_L,useNativeSync:xL}=eA(),ci=(e,t)=>(e=ui(e),t=ai(t),_L(t)?tA(e,t):nA(e,t)),bL=(e,t)=>(e=ui(e),t=ai(t),xL(t)?rA(e,t):iA(e,t));ci.sync=bL;ci.native=(e,t)=>tA(ui(e),ai(t));ci.manual=(e,t)=>nA(ui(e),ai(t));ci.nativeSync=(e,t)=>rA(ui(e),ai(t));ci.manualSync=(e,t)=>iA(ui(e),ai(t));sA.exports=ci});var dA=F((H9,hA)=>{"use strict";var xt=M("fs"),an=M("path"),OL=xt.lchown?"lchown":"chown",RL=xt.lchownSync?"lchownSync":"chownSync",uA=xt.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/),aA=(e,t,r)=>{try{return xt[RL](e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},FL=(e,t,r)=>{try{return xt.chownSync(e,t,r)}catch(n){if(n.code!=="ENOENT")throw n}},kL=uA?(e,t,r,n)=>i=>{!i||i.code!=="EISDIR"?n(i):xt.chown(e,t,r,n)}:(e,t,r,n)=>n,pf=uA?(e,t,r)=>{try{return aA(e,t,r)}catch(n){if(n.code!=="EISDIR")throw n;FL(e,t,r)}}:(e,t,r)=>aA(e,t,r),PL=process.version,cA=(e,t,r)=>xt.readdir(e,t,r),DL=(e,t)=>xt.readdirSync(e,t);/^v4\./.test(PL)&&(cA=(e,t,r)=>xt.readdir(e,r));var aa=(e,t,r,n)=>{xt[OL](e,t,r,kL(e,t,r,i=>{n(i&&i.code!=="ENOENT"?i:null)}))},lA=(e,t,r,n,i)=>{if(typeof t=="string")return xt.lstat(an.resolve(e,t),(s,o)=>{if(s)return i(s.code!=="ENOENT"?s:null);o.name=t,lA(e,o,r,n,i)});if(t.isDirectory())gf(an.resolve(e,t.name),r,n,s=>{if(s)return i(s);let o=an.resolve(e,t.name);aa(o,r,n,i)});else{let s=an.resolve(e,t.name);aa(s,r,n,i)}},gf=(e,t,r,n)=>{cA(e,{withFileTypes:!0},(i,s)=>{if(i){if(i.code==="ENOENT")return n();if(i.code!=="ENOTDIR"&&i.code!=="ENOTSUP")return n(i)}if(i||!s.length)return aa(e,t,r,n);let o=s.length,a=null,u=c=>{if(!a){if(c)return n(a=c);if(--o===0)return aa(e,t,r,n)}};s.forEach(c=>lA(e,c,t,r,u))})},TL=(e,t,r,n)=>{if(typeof t=="string")try{let i=xt.lstatSync(an.resolve(e,t));i.name=t,t=i}catch(i){if(i.code==="ENOENT")return;throw i}t.isDirectory()&&fA(an.resolve(e,t.name),r,n),pf(an.resolve(e,t.name),r,n)},fA=(e,t,r)=>{let n;try{n=DL(e,{withFileTypes:!0})}catch(i){if(i.code==="ENOENT")return;if(i.code==="ENOTDIR"||i.code==="ENOTSUP")return pf(e,t,r);throw i}return n&&n.length&&n.forEach(i=>TL(e,i,t,r)),pf(e,t,r)};hA.exports=gf;gf.sync=fA});var yA=F((G9,mf)=>{var pA=LE(),ua=oA(),{promisify:IL}=M("util"),gA=IL(dA()),LL=process.env.__TESTING_MKDIRP_INFER_OWNER_PLATFORM__||process.platform,NL=LL==="win32",BL=process.getuid&&process.getuid()===0,mA=!NL&&BL;mf.exports=mA?(e,t)=>pA(e).then(({uid:r,gid:n})=>ua(e,t).then(i=>r!==0||n!==process.getgid()?gA(i||e,r,n).then(()=>i):i)):(e,t)=>ua(e,t);mf.exports.sync=mA?(e,t)=>{let{uid:r,gid:n}=pA.sync(e),i=ua.sync(e);return(r!==0||n!==process.getgid())&&gA.sync(i||e,r,n),i}:(e,t)=>ua.sync(e,t)});var AA=F((U9,EA)=>{var{basename:vA,dirname:$L}=M("path"),ML=(e,t)=>e.charAt(0)==="@"?`${e}/${t}`:t;EA.exports=e=>e?ML(vA($L(e)),vA(e)):!1});var wA=F((W9,SA)=>{var jL=typeof process=="object"&&process&&process.platform==="win32";SA.exports=jL?{sep:"\\"}:{sep:"/"}});var OA=F((Y9,bA)=>{"use strict";bA.exports=_A;function _A(e,t,r){e instanceof RegExp&&(e=CA(e,r)),t instanceof RegExp&&(t=CA(t,r));var n=xA(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function CA(e,t){var r=t.match(e);return r?r[0]:null}_A.range=xA;function xA(e,t,r){var n,i,s,o,a,u=r.indexOf(e),c=r.indexOf(t,u+1),f=u;if(u>=0&&c>0){if(e===t)return[u,c];for(n=[],s=r.length;f>=0&&!a;)f==u?(n.push(f),u=r.indexOf(e,f+1)):n.length==1?a=[n.pop(),c]:(i=n.pop(),i<s&&(s=i,o=c),c=r.indexOf(t,f+1)),f=u<c&&u>=0?u:c;n.length&&(a=[s,o])}return a}});var LA=F((z9,IA)=>{var RA=OA();IA.exports=GL;var FA="\0SLASH"+Math.random()+"\0",kA="\0OPEN"+Math.random()+"\0",vf="\0CLOSE"+Math.random()+"\0",PA="\0COMMA"+Math.random()+"\0",DA="\0PERIOD"+Math.random()+"\0";function yf(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function qL(e){return e.split("\\\\").join(FA).split("\\{").join(kA).split("\\}").join(vf).split("\\,").join(PA).split("\\.").join(DA)}function HL(e){return e.split(FA).join("\\").split(kA).join("{").split(vf).join("}").split(PA).join(",").split(DA).join(".")}function TA(e){if(!e)return[""];var t=[],r=RA("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,s=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var a=TA(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function GL(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),is(qL(e),!0).map(HL)):[]}function UL(e){return"{"+e+"}"}function WL(e){return/^-?0\d/.test(e)}function YL(e,t){return e<=t}function zL(e,t){return e>=t}function is(e,t){var r=[],n=RA("{","}",e);if(!n)return[e];var i=n.pre,s=n.post.length?is(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<s.length;o++){var a=i+"{"+n.body+"}"+s[o];r.push(a)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),f=u||c,l=n.body.indexOf(",")>=0;if(!f&&!l)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+vf+n.post,is(e)):[e];var h;if(f)h=n.body.split(/\.\./);else if(h=TA(n.body),h.length===1&&(h=is(h[0],!1).map(UL),h.length===1))return s.map(function(x){return n.pre+h[0]+x});var d;if(f){var g=yf(h[0]),S=yf(h[1]),w=Math.max(h[0].length,h[1].length),k=h.length==3?Math.abs(yf(h[2])):1,_=YL,N=S<g;N&&(k*=-1,_=zL);var D=h.some(WL);d=[];for(var A=g;_(A,S);A+=k){var R;if(c)R=String.fromCharCode(A),R==="\\"&&(R="");else if(R=String(A),D){var b=w-R.length;if(b>0){var O=new Array(b+1).join("0");A<0?R="-"+O+R.slice(1):R=O+R}}d.push(R)}}else{d=[];for(var T=0;T<h.length;T++)d.push.apply(d,is(h[T],!1))}for(var T=0;T<d.length;T++)for(var o=0;o<s.length;o++){var a=i+d[T]+s[o];(!t||f||a)&&r.push(a)}}return r}});var ss=F((K9,Cf)=>{var vt=Cf.exports=(e,t,r={})=>(ca(t),!r.nocomment&&t.charAt(0)==="#"?!1:new li(t,r).match(e));Cf.exports=vt;var Sf=wA();vt.sep=Sf.sep;var Mt=Symbol("globstar **");vt.GLOBSTAR=Mt;var VL=LA(),NA={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},wf="[^/]",Ef=wf+"*?",KL="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",XL="(?:(?!(?:\\/|^)\\.).)*?",MA=e=>e.split("").reduce((t,r)=>(t[r]=!0,t),{}),BA=MA("().*{}+?[]^$\\!"),QL=MA("[.("),$A=/\/+/;vt.filter=(e,t={})=>(r,n,i)=>vt(r,e,t);var Br=(e,t={})=>{let r={};return Object.keys(e).forEach(n=>r[n]=e[n]),Object.keys(t).forEach(n=>r[n]=t[n]),r};vt.defaults=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return vt;let t=vt,r=(n,i,s)=>t(n,i,Br(e,s));return r.Minimatch=class extends t.Minimatch{constructor(i,s){super(i,Br(e,s))}},r.Minimatch.defaults=n=>t.defaults(Br(e,n)).Minimatch,r.filter=(n,i)=>t.filter(n,Br(e,i)),r.defaults=n=>t.defaults(Br(e,n)),r.makeRe=(n,i)=>t.makeRe(n,Br(e,i)),r.braceExpand=(n,i)=>t.braceExpand(n,Br(e,i)),r.match=(n,i,s)=>t.match(n,i,Br(e,s)),r};vt.braceExpand=(e,t)=>jA(e,t);var jA=(e,t={})=>(ca(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:VL(e)),JL=1024*64,ca=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>JL)throw new TypeError("pattern is too long")},Af=Symbol("subparse");vt.makeRe=(e,t)=>new li(e,t||{}).makeRe();vt.match=(e,t,r={})=>{let n=new li(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};var ZL=e=>e.replace(/\\(.)/g,"$1"),eN=e=>e.replace(/\\([^-\]])/g,"$1"),tN=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),rN=e=>e.replace(/[[\]\\]/g,"\\$&"),li=class{constructor(t,r){ca(t),r||(r={}),this.options=r,this.set=[],this.pattern=t,this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.make()}debug(){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate();let n=this.globSet=this.braceExpand();r.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,n),n=this.globParts=n.map(i=>i.split($A)),this.debug(this.pattern,n),n=n.map((i,s,o)=>i.map(this.parse,this)),this.debug(this.pattern,n),n=n.filter(i=>i.indexOf(!1)===-1),this.debug(this.pattern,n),this.set=n}parseNegate(){if(this.options.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n){var i=this.options;this.debug("matchOne",{this:this,file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var s=0,o=0,a=t.length,u=r.length;s<a&&o<u;s++,o++){this.debug("matchOne loop");var c=r[o],f=t[s];if(this.debug(r,c,f),c===!1)return!1;if(c===Mt){this.debug("GLOBSTAR",[r,c,f]);var l=s,h=o+1;if(h===u){for(this.debug("** at the end");s<a;s++)if(t[s]==="."||t[s]===".."||!i.dot&&t[s].charAt(0)===".")return!1;return!0}for(;l<a;){var d=t[l];if(this.debug(`
81
- globstar while`,t,l,r,h,d),this.matchOne(t.slice(l),r.slice(h),n))return this.debug("globstar found match!",l,a,d),!0;if(d==="."||d===".."||!i.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,l,r,h);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(n&&(this.debug(`
82
- >>> no match, partial?`,t,l,r,h),l===a))}var g;if(typeof c=="string"?(g=f===c,this.debug("string match",c,f,g)):(g=f.match(c),this.debug("pattern match",c,f,g)),!g)return!1}if(s===a&&o===u)return!0;if(s===a)return n;if(o===u)return s===a-1&&t[s]==="";throw new Error("wtf?")}braceExpand(){return jA(this.pattern,this.options)}parse(t,r){ca(t);let n=this.options;if(t==="**")if(n.noglobstar)t="*";else return Mt;if(t==="")return"";let i="",s=!1,o=!1,a=[],u=[],c,f=!1,l=-1,h=-1,d,g,S,w=t.charAt(0)===".",k=n.dot||w,_=()=>w?"":k?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",N=b=>b.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",D=()=>{if(c){switch(c){case"*":i+=Ef,s=!0;break;case"?":i+=wf,s=!0;break;default:i+="\\"+c;break}this.debug("clearStateChar %j %j",c,i),c=!1}};for(let b=0,O;b<t.length&&(O=t.charAt(b));b++){if(this.debug("%s %s %s %j",t,b,i,O),o){if(O==="/")return!1;BA[O]&&(i+="\\"),i+=O,o=!1;continue}switch(O){case"/":return!1;case"\\":if(f&&t.charAt(b+1)==="-"){i+=O;continue}D(),o=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",t,b,i,O),f){this.debug(" in class"),O==="!"&&b===h+1&&(O="^"),i+=O;continue}this.debug("call clearStateChar %j",c),D(),c=O,n.noext&&D();continue;case"(":{if(f){i+="(";continue}if(!c){i+="\\(";continue}let T={type:c,start:b-1,reStart:i.length,open:NA[c].open,close:NA[c].close};this.debug(this.pattern," ",T),a.push(T),i+=T.open,T.start===0&&T.type!=="!"&&(w=!0,i+=N(t.slice(b+1))),this.debug("plType %j %j",c,i),c=!1;continue}case")":{let T=a[a.length-1];if(f||!T){i+="\\)";continue}a.pop(),D(),s=!0,g=T,i+=g.close,g.type==="!"&&u.push(Object.assign(g,{reEnd:i.length}));continue}case"|":{let T=a[a.length-1];if(f||!T){i+="\\|";continue}D(),i+="|",T.start===0&&T.type!=="!"&&(w=!0,i+=N(t.slice(b+1)));continue}case"[":if(D(),f){i+="\\"+O;continue}f=!0,h=b,l=i.length,i+=O;continue;case"]":if(b===h+1||!f){i+="\\"+O;continue}d=t.substring(h+1,b);try{RegExp("["+rN(eN(d))+"]"),i+=O}catch{i=i.substring(0,l)+"(?:$.)"}s=!0,f=!1;continue;default:D(),BA[O]&&!(O==="^"&&f)&&(i+="\\"),i+=O;break}}for(f&&(d=t.slice(h+1),S=this.parse(d,Af),i=i.substring(0,l)+"\\["+S[0],s=s||S[1]),g=a.pop();g;g=a.pop()){let b;b=i.slice(g.reStart+g.open.length),this.debug("setting tail",i,g),b=b.replace(/((?:\\{2}){0,64})(\\?)\|/g,(T,x,p)=>(p||(p="\\"),x+x+p+"|")),this.debug(`tail=%j
83
- %s`,b,b,g,i);let O=g.type==="*"?Ef:g.type==="?"?wf:"\\"+g.type;s=!0,i=i.slice(0,g.reStart)+O+"\\("+b}D(),o&&(i+="\\\\");let A=QL[i.charAt(0)];for(let b=u.length-1;b>-1;b--){let O=u[b],T=i.slice(0,O.reStart),x=i.slice(O.reStart,O.reEnd-8),p=i.slice(O.reEnd),m=i.slice(O.reEnd-8,O.reEnd)+p,E=T.split(")").length,C=T.split("(").length-E,y=p;for(let P=0;P<C;P++)y=y.replace(/\)[+*?]?/,"");p=y;let v=p===""&&r!==Af?"(?:$|\\/)":"";i=T+x+p+v+m}if(i!==""&&s&&(i="(?=.)"+i),A&&(i=_()+i),r===Af)return[i,s];if(n.nocase&&!s&&(s=t.toUpperCase()!==t.toLowerCase()),!s)return ZL(t);let R=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",R),{_glob:t,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Ef:r.dot?KL:XL,i=r.nocase?"i":"",s=t.map(o=>(o=o.map(a=>typeof a=="string"?tN(a):a===Mt?Mt:a._src).reduce((a,u)=>(a[a.length-1]===Mt&&u===Mt||a.push(u),a),[]),o.forEach((a,u)=>{a!==Mt||o[u-1]===Mt||(u===0?o.length>1?o[u+1]="(?:\\/|"+n+"\\/)?"+o[u+1]:o[u]=n:u===o.length-1?o[u-1]+="(?:\\/|"+n+")?":(o[u-1]+="(?:\\/|\\/"+n+"\\/)"+o[u+1],o[u+1]=Mt))}),o.filter(a=>a!==Mt).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;Sf.sep!=="/"&&(t=t.split(Sf.sep).join("/")),t=t.split($A),this.debug(this.pattern,"split",t);let i=this.set;this.debug(this.pattern,"set",i);let s;for(let o=t.length-1;o>=0&&(s=t[o],!s);o--);for(let o=0;o<i.length;o++){let a=i[o],u=t;if(n.matchBase&&a.length===1&&(u=[s]),this.matchOne(u,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return vt.defaults(t).Minimatch}};vt.Minimatch=li});var GA=F((X9,HA)=>{"use strict";var nN=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return"0x"+(t.length%2?"0":"")+t},iN=(e,t,r)=>{if(!t)return{message:e.message+" while parsing empty string",position:0};let n=e.message.match(/^Unexpected token (.) .*position\s+(\d+)/i),i=n?+n[2]:e.message.match(/^Unexpected end of JSON.*/i)?t.length-1:null,s=n?e.message.replace(/^Unexpected token ./,`Unexpected token ${JSON.stringify(n[1])} (${nN(n[1])})`):e.message;if(i!=null){let o=i<=r?0:i-r,a=i+r>=t.length?t.length:i+r,u=(o===0?"":"...")+t.slice(o,a)+(a===t.length?"":"...");return{message:s+` while parsing ${t===u?"":"near "}${JSON.stringify(u)}`,position:i}}else return{message:s+` while parsing '${t.slice(0,r*2)}'`,position:0}},la=class extends SyntaxError{constructor(t,r,n,i){n=n||20;let s=iN(t,r,n);super(s.message),Object.assign(this,s),this.code="EJSONPARSE",this.systemError=t,Error.captureStackTrace(this,i||this.constructor)}get name(){return this.constructor.name}set name(t){}get[Symbol.toStringTag](){return this.constructor.name}},sN=Symbol.for("indent"),oN=Symbol.for("newline"),aN=/^\s*[{\[]((?:\r?\n)+)([\s\t]*)/,uN=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,fa=(e,t,r)=>{let n=qA(e);r=r||20;try{let[,i=`
84
- `,s=" "]=n.match(uN)||n.match(aN)||[,"",""],o=JSON.parse(n,t);return o&&typeof o=="object"&&(o[oN]=i,o[sN]=s),o}catch(i){if(typeof e!="string"&&!Buffer.isBuffer(e)){let s=Array.isArray(e)&&e.length===0;throw Object.assign(new TypeError(`Cannot parse ${s?"an empty array":String(e)}`),{code:"EJSONPARSE",systemError:i})}throw new la(i,n,r,fa)}},qA=e=>String(e).replace(/^\uFEFF/,"");HA.exports=fa;fa.JSONParseError=la;fa.noExceptions=(e,t)=>{try{return JSON.parse(qA(e),t)}catch{}}});var zA=F((Q9,YA)=>{var{join:UA,basename:WA}=M("path"),cN=e=>e.bin?typeof e.bin=="string"?lN(e):Array.isArray(e.bin)?fN(e):typeof e.bin=="object"?xf(e):_f(e):_f(e),lN=e=>e.name?(e.bin={[e.name]:e.bin},xf(e)):_f(e),fN=e=>(e.bin=e.bin.reduce((t,r)=>(t[WA(r)]=r,t),{}),xf(e)),_f=e=>(delete e.bin,e),xf=e=>{let t=e.bin,r={},n=!1;return Object.keys(t).forEach(i=>{let s=UA("/",WA(i.replace(/\\|:/g,"/"))).substr(1);if(typeof t[i]!="string"||!s)return;let o=UA("/",t[i]).replace(/\\/g,"/").substr(1);o&&(r[s]=o,n=!0)}),n?e.bin=r:delete e.bin,e};YA.exports=cN});var Ff=F((J9,JA)=>{var{promisify:Of}=M("util"),Rf=M("fs"),hN=Of(Rf.readFile),dN=Of(Rf.lstat),pN=Of(Rf.readdir),gN=GA(),{resolve:VA,dirname:mN,join:bf,relative:yN}=M("path"),KA=e=>hN(e,"utf8").then(t=>EN(e,QA(AN(gN(t))))).catch(t=>{throw t.path=e,t}),vN=zA(),EN=async(e,t)=>{if(t.bin)return t;let r=t.directories&&t.directories.bin;if(!r||typeof r!="string")return t;let n=mN(e),i=bf(".",bf("/",r));return t.bin=await XA(n,i,{}),t},XA=async(e,t,r)=>{let n=await pN(VA(e,t)).catch(()=>[]);for(let i of n){if(i.charAt(0)===".")continue;let s=VA(e,t,i),o=await dN(s).catch(()=>null);if(o)o.isFile()?r[i]=yN(e,s):o.isDirectory()&&await XA(e,bf(t,i),r);else continue}return r},AN=e=>{for(let t of Object.keys(e).filter(r=>/^_/.test(r)))delete e[t];return e},QA=e=>(SN(e),CN(e),wN(e),_N(e),xN(e),vN(e),e);KA.normalize=QA;var SN=e=>(e.name&&e.version&&(e._id=`${e.name}@${e.version}`),e),wN=e=>{let t=e.optionalDependencies,r=e.dependencies||{};if(t&&typeof t=="object")for(let n of Object.keys(t))delete r[n];return Object.keys(r).length===0&&delete e.dependencies,e},CN=e=>{let t=e.bundledDependencies,r=e.bundleDependencies===void 0?t:e.bundleDependencies;return r===!1?e.bundleDependencies=[]:r===!0?e.bundleDependencies=Object.keys(e.dependencies||{}):r&&typeof r=="object"?Array.isArray(r)?e.bundleDependencies=r:e.bundleDependencies=Object.keys(r):delete e.bundleDependencies,delete e.bundledDependencies,e},_N=e=>{if(!e.scripts||typeof e.scripts!="object")return delete e.scripts,e;for(let[t,r]of Object.entries(e.scripts))typeof r!="string"&&delete e.scripts[t];return e},xN=e=>(e.funding&&typeof e.funding=="string"&&(e.funding={url:e.funding}),e);JA.exports=KA});var ZA=F(kf=>{var un=M("path"),Mr=process.platform==="win32",$r=M("fs"),bN=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function ON(){var e;if(bN){var t=new Error;e=r}else e=n;return e;function r(i){i&&(t.message=i.message,i=t,n(i))}function n(i){if(i){if(process.throwDeprecation)throw i;if(!process.noDeprecation){var s="fs: missing callback "+(i.stack||i.message);process.traceDeprecation?console.trace(s):console.error(s)}}}}function RN(e){return typeof e=="function"?e:ON()}var Z9=un.normalize;Mr?lr=/(.*?)(?:[\/\\]+|$)/g:lr=/(.*?)(?:[\/]+|$)/g;var lr;Mr?os=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:os=/^[\/]*/;var os;kf.realpathSync=function(t,r){if(t=un.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return r[t];var n=t,i={},s={},o,a,u,c;f();function f(){var w=os.exec(t);o=w[0].length,a=w[0],u=w[0],c="",Mr&&!s[u]&&($r.lstatSync(u),s[u]=!0)}for(;o<t.length;){lr.lastIndex=o;var l=lr.exec(t);if(c=a,a+=l[0],u=c+l[1],o=lr.lastIndex,!(s[u]||r&&r[u]===u)){var h;if(r&&Object.prototype.hasOwnProperty.call(r,u))h=r[u];else{var d=$r.lstatSync(u);if(!d.isSymbolicLink()){s[u]=!0,r&&(r[u]=u);continue}var g=null;if(!Mr){var S=d.dev.toString(32)+":"+d.ino.toString(32);i.hasOwnProperty(S)&&(g=i[S])}g===null&&($r.statSync(u),g=$r.readlinkSync(u)),h=un.resolve(c,g),r&&(r[u]=h),Mr||(i[S]=g)}t=un.resolve(h,t.slice(o)),f()}}return r&&(r[n]=t),t};kf.realpath=function(t,r,n){if(typeof n!="function"&&(n=RN(r),r=null),t=un.resolve(t),r&&Object.prototype.hasOwnProperty.call(r,t))return process.nextTick(n.bind(null,null,r[t]));var i=t,s={},o={},a,u,c,f;l();function l(){var w=os.exec(t);a=w[0].length,u=w[0],c=w[0],f="",Mr&&!o[c]?$r.lstat(c,function(k){if(k)return n(k);o[c]=!0,h()}):process.nextTick(h)}function h(){if(a>=t.length)return r&&(r[i]=t),n(null,t);lr.lastIndex=a;var w=lr.exec(t);return f=u,u+=w[0],c=f+w[1],a=lr.lastIndex,o[c]||r&&r[c]===c?process.nextTick(h):r&&Object.prototype.hasOwnProperty.call(r,c)?S(r[c]):$r.lstat(c,d)}function d(w,k){if(w)return n(w);if(!k.isSymbolicLink())return o[c]=!0,r&&(r[c]=c),process.nextTick(h);if(!Mr){var _=k.dev.toString(32)+":"+k.ino.toString(32);if(s.hasOwnProperty(_))return g(null,s[_],c)}$r.stat(c,function(N){if(N)return n(N);$r.readlink(c,function(D,A){Mr||(s[_]=A),g(D,A)})})}function g(w,k,_){if(w)return n(w);var N=un.resolve(f,k);r&&(r[_]=N),S(N)}function S(w){t=un.resolve(w,t.slice(a)),l()}}});var If=F((tH,n1)=>{n1.exports=jr;jr.realpath=jr;jr.sync=Tf;jr.realpathSync=Tf;jr.monkeypatch=kN;jr.unmonkeypatch=PN;var fi=M("fs"),Pf=fi.realpath,Df=fi.realpathSync,FN=process.version,e1=/^v[0-5]\./.test(FN),t1=ZA();function r1(e){return e&&e.syscall==="realpath"&&(e.code==="ELOOP"||e.code==="ENOMEM"||e.code==="ENAMETOOLONG")}function jr(e,t,r){if(e1)return Pf(e,t,r);typeof t=="function"&&(r=t,t=null),Pf(e,t,function(n,i){r1(n)?t1.realpath(e,t,r):r(n,i)})}function Tf(e,t){if(e1)return Df(e,t);try{return Df(e,t)}catch(r){if(r1(r))return t1.realpathSync(e,t);throw r}}function kN(){fi.realpath=jr,fi.realpathSync=Tf}function PN(){fi.realpath=Pf,fi.realpathSync=Df}});var i1=F((rH,Lf)=>{typeof Object.create=="function"?Lf.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Lf.exports=function(t,r){if(r){t.super_=r;var n=function(){};n.prototype=r.prototype,t.prototype=new n,t.prototype.constructor=t}}});var s1=F((nH,Bf)=>{try{if(Nf=M("util"),typeof Nf.inherits!="function")throw"";Bf.exports=Nf.inherits}catch{Bf.exports=i1()}var Nf});var Mf=F(qr=>{qr.setopts=BN;qr.ownProp=o1;qr.makeAbs=as;qr.finish=$N;qr.mark=MN;qr.isIgnored=u1;qr.childrenIgnored=jN;function o1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var DN=M("fs"),cn=M("path"),TN=ss(),a1=M("path").isAbsolute,$f=TN.Minimatch;function IN(e,t){return e.localeCompare(t,"en")}function LN(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]),e.ignore.length&&(e.ignore=e.ignore.map(NN))}function NN(e){var t=null;if(e.slice(-3)==="/**"){var r=e.replace(/(\/\*\*)+$/,"");t=new $f(r,{dot:!0})}return{matcher:new $f(e,{dot:!0}),gmatcher:t}}function BN(e,t,r){if(r||(r={}),r.matchBase&&t.indexOf("/")===-1){if(r.noglobstar)throw new Error("base matching requires globstar");t="**/"+t}e.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,e.windowsPathsNoEscape&&(t=t.replace(/\\/g,"/")),e.silent=!!r.silent,e.pattern=t,e.strict=r.strict!==!1,e.realpath=!!r.realpath,e.realpathCache=r.realpathCache||Object.create(null),e.follow=!!r.follow,e.dot=!!r.dot,e.mark=!!r.mark,e.nodir=!!r.nodir,e.nodir&&(e.mark=!0),e.sync=!!r.sync,e.nounique=!!r.nounique,e.nonull=!!r.nonull,e.nosort=!!r.nosort,e.nocase=!!r.nocase,e.stat=!!r.stat,e.noprocess=!!r.noprocess,e.absolute=!!r.absolute,e.fs=r.fs||DN,e.maxLength=r.maxLength||1/0,e.cache=r.cache||Object.create(null),e.statCache=r.statCache||Object.create(null),e.symlinks=r.symlinks||Object.create(null),LN(e,r),e.changedCwd=!1;var n=process.cwd();o1(r,"cwd")?(e.cwd=cn.resolve(r.cwd),e.changedCwd=e.cwd!==n):e.cwd=cn.resolve(n),e.root=r.root||cn.resolve(e.cwd,"/"),e.root=cn.resolve(e.root),e.cwdAbs=a1(e.cwd)?e.cwd:as(e,e.cwd),e.nomount=!!r.nomount,process.platform==="win32"&&(e.root=e.root.replace(/\\/g,"/"),e.cwd=e.cwd.replace(/\\/g,"/"),e.cwdAbs=e.cwdAbs.replace(/\\/g,"/")),r.nonegate=!0,r.nocomment=!0,e.minimatch=new $f(t,r),e.options=e.minimatch.options}function $N(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n<i;n++){var s=e.matches[n];if(!s||Object.keys(s).length===0){if(e.nonull){var o=e.minimatch.globSet[n];t?r.push(o):r[o]=!0}}else{var a=Object.keys(s);t?r.push.apply(r,a):a.forEach(function(u){r[u]=!0})}}if(t||(r=Object.keys(r)),e.nosort||(r=r.sort(IN)),e.mark){for(var n=0;n<r.length;n++)r[n]=e._mark(r[n]);e.nodir&&(r=r.filter(function(u){var c=!/\/$/.test(u),f=e.cache[u]||e.cache[as(e,u)];return c&&f&&(c=f!=="DIR"&&!Array.isArray(f)),c}))}e.ignore.length&&(r=r.filter(function(u){return!u1(e,u)})),e.found=r}function MN(e,t){var r=as(e,t),n=e.cache[r],i=t;if(n){var s=n==="DIR"||Array.isArray(n),o=t.slice(-1)==="/";if(s&&!o?i+="/":!s&&o&&(i=i.slice(0,-1)),i!==t){var a=as(e,i);e.statCache[a]=e.statCache[r],e.cache[a]=e.cache[r]}}return i}function as(e,t){var r=t;return t.charAt(0)==="/"?r=cn.join(e.root,t):a1(t)||t===""?r=t:e.changedCwd?r=cn.resolve(e.cwd,t):r=cn.resolve(t),process.platform==="win32"&&(r=r.replace(/\\/g,"/")),r}function u1(e,t){return e.ignore.length?e.ignore.some(function(r){return r.matcher.match(t)||!!(r.gmatcher&&r.gmatcher.match(t))}):!1}function jN(e,t){return e.ignore.length?e.ignore.some(function(r){return!!(r.gmatcher&&r.gmatcher.match(t))}):!1}});var d1=F((uH,h1)=>{h1.exports=f1;f1.GlobSync=$e;var qN=If(),c1=ss(),sH=c1.Minimatch,oH=Hf().Glob,aH=M("util"),jf=M("path"),l1=M("assert"),ha=M("path").isAbsolute,ln=Mf(),HN=ln.setopts,qf=ln.ownProp,GN=ln.childrenIgnored,UN=ln.isIgnored;function f1(e,t){if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
85
- See: https://github.com/isaacs/node-glob/issues/167`);return new $e(e,t).found}function $e(e,t){if(!e)throw new Error("must provide pattern");if(typeof t=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob
86
- See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof $e))return new $e(e,t);if(HN(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;n<r;n++)this._process(this.minimatch.set[n],n,!1);this._finish()}$e.prototype._finish=function(){if(l1.ok(this instanceof $e),this.realpath){var e=this;this.matches.forEach(function(t,r){var n=e.matches[r]=Object.create(null);for(var i in t)try{i=e._makeAbs(i);var s=qN.realpathSync(i,e.realpathCache);n[s]=!0}catch(o){if(o.syscall==="stat")n[e._makeAbs(i)]=!0;else throw o}})}ln.finish(this)};$e.prototype._process=function(e,t,r){l1.ok(this instanceof $e);for(var n=0;typeof e[n]=="string";)n++;var i;switch(n){case e.length:this._processSimple(e.join("/"),t);return;case 0:i=null;break;default:i=e.slice(0,n).join("/");break}var s=e.slice(n),o;i===null?o=".":((ha(i)||ha(e.map(function(c){return typeof c=="string"?c:"[*]"}).join("/")))&&(!i||!ha(i))&&(i="/"+i),o=i);var a=this._makeAbs(o);if(!GN(this,o)){var u=s[0]===c1.GLOBSTAR;u?this._processGlobStar(i,o,a,s,t,r):this._processReaddir(i,o,a,s,t,r)}};$e.prototype._processReaddir=function(e,t,r,n,i,s){var o=this._readdir(r,s);if(o){for(var a=n[0],u=!!this.minimatch.negate,c=a._glob,f=this.dot||c.charAt(0)===".",l=[],h=0;h<o.length;h++){var d=o[h];if(d.charAt(0)!=="."||f){var g;u&&!e?g=!d.match(a):g=d.match(a),g&&l.push(d)}}var S=l.length;if(S!==0){if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var h=0;h<S;h++){var d=l[h];e&&(e.slice(-1)!=="/"?d=e+"/"+d:d=e+d),d.charAt(0)==="/"&&!this.nomount&&(d=jf.join(this.root,d)),this._emitMatch(i,d)}return}n.shift();for(var h=0;h<S;h++){var d=l[h],w;e?w=[e,d]:w=[d],this._process(w.concat(n),i,s)}}}};$e.prototype._emitMatch=function(e,t){if(!UN(this,t)){var r=this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=!0,this.stat&&this._stat(t)}}};$e.prototype._readdirInGlobStar=function(e){if(this.follow)return this._readdir(e,!1);var t,r,n;try{r=this.fs.lstatSync(e)}catch(s){if(s.code==="ENOENT")return null}var i=r&&r.isSymbolicLink();return this.symlinks[e]=i,!i&&r&&!r.isDirectory()?this.cache[e]="FILE":t=this._readdir(e,!1),t};$e.prototype._readdir=function(e,t){var r;if(t&&!qf(this.symlinks,e))return this._readdirInGlobStar(e);if(qf(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return null;if(Array.isArray(n))return n}try{return this._readdirEntries(e,this.fs.readdirSync(e))}catch(i){return this._readdirError(e,i),null}};$e.prototype._readdirEntries=function(e,t){if(!this.mark&&!this.stat)for(var r=0;r<t.length;r++){var n=t[r];e==="/"?n=e+n:n=e+"/"+n,this.cache[n]=!0}return this.cache[e]=t,t};$e.prototype._readdirError=function(e,t){switch(t.code){case"ENOTSUP":case"ENOTDIR":var r=this._makeAbs(e);if(this.cache[r]="FILE",r===this.cwdAbs){var n=new Error(t.code+" invalid cwd "+this.cwd);throw n.path=this.cwd,n.code=t.code,n}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:if(this.cache[this._makeAbs(e)]=!1,this.strict)throw t;this.silent||console.error("glob error",t);break}};$e.prototype._processGlobStar=function(e,t,r,n,i,s){var o=this._readdir(r,s);if(o){var a=n.slice(1),u=e?[e]:[],c=u.concat(a);this._process(c,i,!1);var f=o.length,l=this.symlinks[r];if(!(l&&s))for(var h=0;h<f;h++){var d=o[h];if(!(d.charAt(0)==="."&&!this.dot)){var g=u.concat(o[h],a);this._process(g,i,!0);var S=u.concat(o[h],n);this._process(S,i,!0)}}}};$e.prototype._processSimple=function(e,t){var r=this._stat(e);if(this.matches[t]||(this.matches[t]=Object.create(null)),!!r){if(e&&ha(e)&&!this.nomount){var n=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=jf.join(this.root,e):(e=jf.resolve(this.root,e),n&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e)}};$e.prototype._stat=function(e){var t=this._makeAbs(e),r=e.slice(-1)==="/";if(e.length>this.maxLength)return!1;if(!this.stat&&qf(this.cache,t)){var o=this.cache[t];if(Array.isArray(o)&&(o="DIR"),!r||o==="DIR")return o;if(r&&o==="FILE")return!1}var n,i=this.statCache[t];if(!i){var s;try{s=this.fs.lstatSync(t)}catch(a){if(a&&(a.code==="ENOENT"||a.code==="ENOTDIR"))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{i=this.fs.statSync(t)}catch{i=s}else i=s}this.statCache[t]=i;var o=!0;return i&&(o=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,r&&o==="FILE"?!1:o};$e.prototype._mark=function(e){return ln.mark(this,e)};$e.prototype._makeAbs=function(e){return ln.makeAbs(this,e)}});var Gf=F((cH,g1)=>{g1.exports=p1;function p1(e,t){if(e&&t)return p1(e)(t);if(typeof e!="function")throw new TypeError("need wrapper function");return Object.keys(e).forEach(function(n){r[n]=e[n]}),r;function r(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];var s=e.apply(this,n),o=n[n.length-1];return typeof s=="function"&&s!==o&&Object.keys(o).forEach(function(a){s[a]=o[a]}),s}}});var Wf=F((lH,Uf)=>{var m1=Gf();Uf.exports=m1(da);Uf.exports.strict=m1(y1);da.proto=da(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return da(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return y1(this)},configurable:!0})});function da(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function y1(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}});var E1=F((fH,v1)=>{var WN=Gf(),us=Object.create(null),YN=Wf();v1.exports=WN(zN);function zN(e,t){return us[e]?(us[e].push(t),null):(us[e]=[t],VN(e))}function VN(e){return YN(function t(){var r=us[e],n=r.length,i=KN(arguments);try{for(var s=0;s<n;s++)r[s].apply(null,i)}finally{r.length>n?(r.splice(0,n),process.nextTick(function(){t.apply(null,i)})):delete us[e]}})}function KN(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n]=e[n];return r}});var Hf=F((pH,S1)=>{S1.exports=fn;var XN=If(),A1=ss(),hH=A1.Minimatch,QN=s1(),JN=M("events").EventEmitter,Yf=M("path"),zf=M("assert"),cs=M("path").isAbsolute,Kf=d1(),hn=Mf(),ZN=hn.setopts,Vf=hn.ownProp,Xf=E1(),dH=M("util"),eB=hn.childrenIgnored,tB=hn.isIgnored,rB=Wf();function fn(e,t,r){if(typeof t=="function"&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return Kf(e,t)}return new me(e,t,r)}fn.sync=Kf;var nB=fn.GlobSync=Kf.GlobSync;fn.glob=fn;function iB(e,t){if(t===null||typeof t!="object")return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}fn.hasMagic=function(e,t){var r=iB({},t);r.noprocess=!0;var n=new me(e,r),i=n.minimatch.set;if(!e)return!1;if(i.length>1)return!0;for(var s=0;s<i[0].length;s++)if(typeof i[0][s]!="string")return!0;return!1};fn.Glob=me;QN(me,JN);function me(e,t,r){if(typeof t=="function"&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new nB(e,t)}if(!(this instanceof me))return new me(e,t,r);ZN(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),typeof r=="function"&&(r=rB(r),this.on("error",r),this.on("end",function(u){r(null,u)}));var i=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(n===0)return a();for(var s=!0,o=0;o<n;o++)this._process(this.minimatch.set[o],o,!1,a);s=!1;function a(){--i._processing,i._processing<=0&&(s?process.nextTick(function(){i._finish()}):i._finish())}}me.prototype._finish=function(){if(zf(this instanceof me),!this.aborted){if(this.realpath&&!this._didRealpath)return this._realpath();hn.finish(this),this.emit("end",this.found)}};me.prototype._realpath=function(){if(this._didRealpath)return;this._didRealpath=!0;var e=this.matches.length;if(e===0)return this._finish();for(var t=this,r=0;r<this.matches.length;r++)this._realpathSet(r,n);function n(){--e===0&&t._finish()}};me.prototype._realpathSet=function(e,t){var r=this.matches[e];if(!r)return t();var n=Object.keys(r),i=this,s=n.length;if(s===0)return t();var o=this.matches[e]=Object.create(null);n.forEach(function(a,u){a=i._makeAbs(a),XN.realpath(a,i.realpathCache,function(c,f){c?c.syscall==="stat"?o[a]=!0:i.emit("error",c):o[f]=!0,--s===0&&(i.matches[e]=o,t())})})};me.prototype._mark=function(e){return hn.mark(this,e)};me.prototype._makeAbs=function(e){return hn.makeAbs(this,e)};me.prototype.abort=function(){this.aborted=!0,this.emit("abort")};me.prototype.pause=function(){this.paused||(this.paused=!0,this.emit("pause"))};me.prototype.resume=function(){if(this.paused){if(this.emit("resume"),this.paused=!1,this._emitQueue.length){var e=this._emitQueue.slice(0);this._emitQueue.length=0;for(var t=0;t<e.length;t++){var r=e[t];this._emitMatch(r[0],r[1])}}if(this._processQueue.length){var n=this._processQueue.slice(0);this._processQueue.length=0;for(var t=0;t<n.length;t++){var i=n[t];this._processing--,this._process(i[0],i[1],i[2],i[3])}}}};me.prototype._process=function(e,t,r,n){if(zf(this instanceof me),zf(typeof n=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([e,t,r,n]);return}for(var i=0;typeof e[i]=="string";)i++;var s;switch(i){case e.length:this._processSimple(e.join("/"),t,n);return;case 0:s=null;break;default:s=e.slice(0,i).join("/");break}var o=e.slice(i),a;s===null?a=".":((cs(s)||cs(e.map(function(f){return typeof f=="string"?f:"[*]"}).join("/")))&&(!s||!cs(s))&&(s="/"+s),a=s);var u=this._makeAbs(a);if(eB(this,a))return n();var c=o[0]===A1.GLOBSTAR;c?this._processGlobStar(s,a,u,o,t,r,n):this._processReaddir(s,a,u,o,t,r,n)}};me.prototype._processReaddir=function(e,t,r,n,i,s,o){var a=this;this._readdir(r,s,function(u,c){return a._processReaddir2(e,t,r,n,i,s,c,o)})};me.prototype._processReaddir2=function(e,t,r,n,i,s,o,a){if(!o)return a();for(var u=n[0],c=!!this.minimatch.negate,f=u._glob,l=this.dot||f.charAt(0)===".",h=[],d=0;d<o.length;d++){var g=o[d];if(g.charAt(0)!=="."||l){var S;c&&!e?S=!g.match(u):S=g.match(u),S&&h.push(g)}}var w=h.length;if(w===0)return a();if(n.length===1&&!this.mark&&!this.stat){this.matches[i]||(this.matches[i]=Object.create(null));for(var d=0;d<w;d++){var g=h[d];e&&(e!=="/"?g=e+"/"+g:g=e+g),g.charAt(0)==="/"&&!this.nomount&&(g=Yf.join(this.root,g)),this._emitMatch(i,g)}return a()}n.shift();for(var d=0;d<w;d++){var g=h[d],k;e&&(e!=="/"?g=e+"/"+g:g=e+g),this._process([g].concat(n),i,s,a)}a()};me.prototype._emitMatch=function(e,t){if(!this.aborted&&!tB(this,t)){if(this.paused){this._emitQueue.push([e,t]);return}var r=cs(t)?t:this._makeAbs(t);if(this.mark&&(t=this._mark(t)),this.absolute&&(t=r),!this.matches[e][t]){if(this.nodir){var n=this.cache[r];if(n==="DIR"||Array.isArray(n))return}this.matches[e][t]=!0;var i=this.statCache[r];i&&this.emit("stat",t,i),this.emit("match",t)}}};me.prototype._readdirInGlobStar=function(e,t){if(this.aborted)return;if(this.follow)return this._readdir(e,!1,t);var r="lstat\0"+e,n=this,i=Xf(r,s);i&&n.fs.lstat(e,i);function s(o,a){if(o&&o.code==="ENOENT")return t();var u=a&&a.isSymbolicLink();n.symlinks[e]=u,!u&&a&&!a.isDirectory()?(n.cache[e]="FILE",t()):n._readdir(e,!1,t)}};me.prototype._readdir=function(e,t,r){if(!this.aborted&&(r=Xf("readdir\0"+e+"\0"+t,r),!!r)){if(t&&!Vf(this.symlinks,e))return this._readdirInGlobStar(e,r);if(Vf(this.cache,e)){var n=this.cache[e];if(!n||n==="FILE")return r();if(Array.isArray(n))return r(null,n)}var i=this;i.fs.readdir(e,sB(this,e,r))}};function sB(e,t,r){return function(n,i){n?e._readdirError(t,n,r):e._readdirEntries(t,i,r)}}me.prototype._readdirEntries=function(e,t,r){if(!this.aborted){if(!this.mark&&!this.stat)for(var n=0;n<t.length;n++){var i=t[n];e==="/"?i=e+i:i=e+"/"+i,this.cache[i]=!0}return this.cache[e]=t,r(null,t)}};me.prototype._readdirError=function(e,t,r){if(!this.aborted){switch(t.code){case"ENOTSUP":case"ENOTDIR":var n=this._makeAbs(e);if(this.cache[n]="FILE",n===this.cwdAbs){var i=new Error(t.code+" invalid cwd "+this.cwd);i.path=this.cwd,i.code=t.code,this.emit("error",i),this.abort()}break;case"ENOENT":case"ELOOP":case"ENAMETOOLONG":case"UNKNOWN":this.cache[this._makeAbs(e)]=!1;break;default:this.cache[this._makeAbs(e)]=!1,this.strict&&(this.emit("error",t),this.abort()),this.silent||console.error("glob error",t);break}return r()}};me.prototype._processGlobStar=function(e,t,r,n,i,s,o){var a=this;this._readdir(r,s,function(u,c){a._processGlobStar2(e,t,r,n,i,s,c,o)})};me.prototype._processGlobStar2=function(e,t,r,n,i,s,o,a){if(!o)return a();var u=n.slice(1),c=e?[e]:[],f=c.concat(u);this._process(f,i,!1,a);var l=this.symlinks[r],h=o.length;if(l&&s)return a();for(var d=0;d<h;d++){var g=o[d];if(!(g.charAt(0)==="."&&!this.dot)){var S=c.concat(o[d],u);this._process(S,i,!0,a);var w=c.concat(o[d],n);this._process(w,i,!0,a)}}a()};me.prototype._processSimple=function(e,t,r){var n=this;this._stat(e,function(i,s){n._processSimple2(e,t,i,s,r)})};me.prototype._processSimple2=function(e,t,r,n,i){if(this.matches[t]||(this.matches[t]=Object.create(null)),!n)return i();if(e&&cs(e)&&!this.nomount){var s=/[\/\\]$/.test(e);e.charAt(0)==="/"?e=Yf.join(this.root,e):(e=Yf.resolve(this.root,e),s&&(e+="/"))}process.platform==="win32"&&(e=e.replace(/\\/g,"/")),this._emitMatch(t,e),i()};me.prototype._stat=function(e,t){var r=this._makeAbs(e),n=e.slice(-1)==="/";if(e.length>this.maxLength)return t();if(!this.stat&&Vf(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!n||i==="DIR")return t(null,i);if(n&&i==="FILE")return t()}var s,o=this.statCache[r];if(o!==void 0){if(o===!1)return t(null,o);var a=o.isDirectory()?"DIR":"FILE";return n&&a==="FILE"?t():t(null,a,o)}var u=this,c=Xf("stat\0"+r,f);c&&u.fs.lstat(r,c);function f(l,h){if(h&&h.isSymbolicLink())return u.fs.stat(r,function(d,g){d?u._stat2(e,r,null,h,t):u._stat2(e,r,d,g,t)});u._stat2(e,r,l,h,t)}};me.prototype._stat2=function(e,t,r,n,i){if(r&&(r.code==="ENOENT"||r.code==="ENOTDIR"))return this.statCache[t]=!1,i();var s=e.slice(-1)==="/";if(this.statCache[t]=n,t.slice(-1)==="/"&&n&&!n.isDirectory())return i(null,!1,n);var o=!0;return n&&(o=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,s&&o==="FILE"?i():i(null,o,n)}});var R1=F((gH,O1)=>{var{promisify:oB}=M("util"),w1=M("path"),aB=AA(),uB=ss(),cB=Ff(),lB=Hf(),fB=oB(lB);function hB(e){let t=[];for(let r of e){let n=r.match(/^!+/);n&&(r=r.slice(n[0].length)),r=r.replace(/^\/+/,"");let i=n&&n[0].length%2===1;t.push({pattern:r,negate:i})}return t}function C1(e){let t=Array.isArray(e.packages)?e.packages:e;if(!Array.isArray(t))throw pa({message:"workspaces config expects an Array",code:"EWORKSPACESCONFIG"});return hB(t)}function _1(e,t){let{name:r}=e;return r||aB(t)}function x1(e){return(...t)=>{let r=e.cwd?e.cwd:process.cwd();return w1.join.apply(null,[r,...t])}}function dB(e){return e=e.replace(/\\/g,"/"),e.endsWith("/")?e:`${e}/`}function pa({Type:e=TypeError,message:t,code:r}){return Object.assign(new e(t),{code:r})}function pB(e){return new Map(Array.from(e,t=>t.reverse()))}async function b1(e={}){if(!e||!e.pkg)throw pa({message:"mapWorkspaces missing pkg info",code:"EMAPWORKSPACESPKG"});let{workspaces:t=[]}=e.pkg,r=C1(t),n=new Map,i=new Map;if(!r.length)return n;let s=()=>({...e,ignore:[...e.ignore||[],"**/node_modules/**"]}),o=x1(e);for(let u of r){let c=await fB(dB(u.pattern),s());for(let f of c){let l,h=o(f,"package.json"),d=w1.dirname(h);try{l=await cB(h)}catch(w){if(w.code==="ENOENT")continue;throw w}let g=_1(l,d),S=i.get(g);S||(S=new Set,i.set(g,S)),u.negate?S.delete(d):S.add(d)}}let a=["must not have multiple workspaces with the same name"];for(let[u,c]of i)c.size!==0&&(c.size>1?gB(a,u,c):n.set(u,c.values().next().value));if(a.length>1)throw pa({Type:Error,message:a.join(`
87
- `),code:"EDUPLICATEWORKSPACE"});return n}function gB(e,t,r){e.push(`package '${t}' has conflicts in the following paths:`);for(let n of r)e.push(" "+n)}b1.virtual=function(e={}){if(!e||!e.lockfile)throw pa({message:"mapWorkspaces.virtual missing lockfile info",code:"EMAPWORKSPACESLOCKFILE"});let{packages:t={}}=e.lockfile,{workspaces:r=[]}=t[""]||{},n=new Map,i=C1(r);if(!i.length)return n;i.push({pattern:"**/node_modules/**",negate:!0});let s=x1(e);for(let o of Object.keys(t))if(o!==""){for(let a of i)if(uB(o,a.pattern)){let u=s(o),c=_1(t[o],u);a.negate?n.delete(u):n.set(u,c)}}return pB(n)};O1.exports=b1});var P1=F((mH,k1)=>{var F1=["notice","error","warn","info","verbose","http","silly","pause","resume"],mB=e=>(...t)=>process.emit("log",e,...t),Qf={};for(let e of F1)Qf[e]=mB(e);Qf.LEVELS=F1;k1.exports=Qf});var Zf=F((yH,T1)=>{var Jf=class{},D1=e=>{if(typeof e=="string"){if(/^0o?[0-7]+$/.test(e))return parseInt(e.replace(/^0o?/,""),8);if(/^[1-9][0-9]*$/.test(e))return parseInt(e,10);throw new Error(`invalid umask value: ${e}`)}if(typeof e!="number")throw new Error(`invalid umask value: ${e}`);if(e=Math.floor(e),e<0||e>511)throw new Error(`invalid umask value: ${e}`);return e},yB=(e,t,r)=>{try{return e[t]=D1(r),!0}catch{return!1}};T1.exports={Umask:Jf,parse:D1,validate:yB}});var ls=F((vH,I1)=>{var vB="2.0.0",EB=Number.MAX_SAFE_INTEGER||9007199254740991,AB=16,SB=250,wB=["major","premajor","minor","preminor","patch","prepatch","prerelease"];I1.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:AB,MAX_SAFE_BUILD_LENGTH:SB,MAX_SAFE_INTEGER:EB,RELEASE_TYPES:wB,SEMVER_SPEC_VERSION:vB,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var fs=F((EH,L1)=>{var CB=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};L1.exports=CB});var hi=F((fr,N1)=>{var{MAX_SAFE_COMPONENT_LENGTH:eh,MAX_SAFE_BUILD_LENGTH:_B,MAX_LENGTH:xB}=ls(),bB=fs();fr=N1.exports={};var OB=fr.re=[],RB=fr.safeRe=[],X=fr.src=[],Q=fr.t={},FB=0,th="[a-zA-Z0-9-]",kB=[["\\s",1],["\\d",xB],[th,_B]],PB=e=>{for(let[t,r]of kB)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},ue=(e,t,r)=>{let n=PB(t),i=FB++;bB(e,i,t),Q[e]=i,X[i]=t,OB[i]=new RegExp(t,r?"g":void 0),RB[i]=new RegExp(n,r?"g":void 0)};ue("NUMERICIDENTIFIER","0|[1-9]\\d*");ue("NUMERICIDENTIFIERLOOSE","\\d+");ue("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${th}*`);ue("MAINVERSION",`(${X[Q.NUMERICIDENTIFIER]})\\.(${X[Q.NUMERICIDENTIFIER]})\\.(${X[Q.NUMERICIDENTIFIER]})`);ue("MAINVERSIONLOOSE",`(${X[Q.NUMERICIDENTIFIERLOOSE]})\\.(${X[Q.NUMERICIDENTIFIERLOOSE]})\\.(${X[Q.NUMERICIDENTIFIERLOOSE]})`);ue("PRERELEASEIDENTIFIER",`(?:${X[Q.NUMERICIDENTIFIER]}|${X[Q.NONNUMERICIDENTIFIER]})`);ue("PRERELEASEIDENTIFIERLOOSE",`(?:${X[Q.NUMERICIDENTIFIERLOOSE]}|${X[Q.NONNUMERICIDENTIFIER]})`);ue("PRERELEASE",`(?:-(${X[Q.PRERELEASEIDENTIFIER]}(?:\\.${X[Q.PRERELEASEIDENTIFIER]})*))`);ue("PRERELEASELOOSE",`(?:-?(${X[Q.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${X[Q.PRERELEASEIDENTIFIERLOOSE]})*))`);ue("BUILDIDENTIFIER",`${th}+`);ue("BUILD",`(?:\\+(${X[Q.BUILDIDENTIFIER]}(?:\\.${X[Q.BUILDIDENTIFIER]})*))`);ue("FULLPLAIN",`v?${X[Q.MAINVERSION]}${X[Q.PRERELEASE]}?${X[Q.BUILD]}?`);ue("FULL",`^${X[Q.FULLPLAIN]}$`);ue("LOOSEPLAIN",`[v=\\s]*${X[Q.MAINVERSIONLOOSE]}${X[Q.PRERELEASELOOSE]}?${X[Q.BUILD]}?`);ue("LOOSE",`^${X[Q.LOOSEPLAIN]}$`);ue("GTLT","((?:<|>)?=?)");ue("XRANGEIDENTIFIERLOOSE",`${X[Q.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ue("XRANGEIDENTIFIER",`${X[Q.NUMERICIDENTIFIER]}|x|X|\\*`);ue("XRANGEPLAIN",`[v=\\s]*(${X[Q.XRANGEIDENTIFIER]})(?:\\.(${X[Q.XRANGEIDENTIFIER]})(?:\\.(${X[Q.XRANGEIDENTIFIER]})(?:${X[Q.PRERELEASE]})?${X[Q.BUILD]}?)?)?`);ue("XRANGEPLAINLOOSE",`[v=\\s]*(${X[Q.XRANGEIDENTIFIERLOOSE]})(?:\\.(${X[Q.XRANGEIDENTIFIERLOOSE]})(?:\\.(${X[Q.XRANGEIDENTIFIERLOOSE]})(?:${X[Q.PRERELEASELOOSE]})?${X[Q.BUILD]}?)?)?`);ue("XRANGE",`^${X[Q.GTLT]}\\s*${X[Q.XRANGEPLAIN]}$`);ue("XRANGELOOSE",`^${X[Q.GTLT]}\\s*${X[Q.XRANGEPLAINLOOSE]}$`);ue("COERCEPLAIN",`(^|[^\\d])(\\d{1,${eh}})(?:\\.(\\d{1,${eh}}))?(?:\\.(\\d{1,${eh}}))?`);ue("COERCE",`${X[Q.COERCEPLAIN]}(?:$|[^\\d])`);ue("COERCEFULL",X[Q.COERCEPLAIN]+`(?:${X[Q.PRERELEASE]})?(?:${X[Q.BUILD]})?(?:$|[^\\d])`);ue("COERCERTL",X[Q.COERCE],!0);ue("COERCERTLFULL",X[Q.COERCEFULL],!0);ue("LONETILDE","(?:~>?)");ue("TILDETRIM",`(\\s*)${X[Q.LONETILDE]}\\s+`,!0);fr.tildeTrimReplace="$1~";ue("TILDE",`^${X[Q.LONETILDE]}${X[Q.XRANGEPLAIN]}$`);ue("TILDELOOSE",`^${X[Q.LONETILDE]}${X[Q.XRANGEPLAINLOOSE]}$`);ue("LONECARET","(?:\\^)");ue("CARETTRIM",`(\\s*)${X[Q.LONECARET]}\\s+`,!0);fr.caretTrimReplace="$1^";ue("CARET",`^${X[Q.LONECARET]}${X[Q.XRANGEPLAIN]}$`);ue("CARETLOOSE",`^${X[Q.LONECARET]}${X[Q.XRANGEPLAINLOOSE]}$`);ue("COMPARATORLOOSE",`^${X[Q.GTLT]}\\s*(${X[Q.LOOSEPLAIN]})$|^$`);ue("COMPARATOR",`^${X[Q.GTLT]}\\s*(${X[Q.FULLPLAIN]})$|^$`);ue("COMPARATORTRIM",`(\\s*)${X[Q.GTLT]}\\s*(${X[Q.LOOSEPLAIN]}|${X[Q.XRANGEPLAIN]})`,!0);fr.comparatorTrimReplace="$1$2$3";ue("HYPHENRANGE",`^\\s*(${X[Q.XRANGEPLAIN]})\\s+-\\s+(${X[Q.XRANGEPLAIN]})\\s*$`);ue("HYPHENRANGELOOSE",`^\\s*(${X[Q.XRANGEPLAINLOOSE]})\\s+-\\s+(${X[Q.XRANGEPLAINLOOSE]})\\s*$`);ue("STAR","(<|>)?=?\\s*\\*");ue("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ue("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var ga=F((AH,B1)=>{var DB=Object.freeze({loose:!0}),TB=Object.freeze({}),IB=e=>e?typeof e!="object"?DB:e:TB;B1.exports=IB});var rh=F((SH,j1)=>{var $1=/^[0-9]+$/,M1=(e,t)=>{let r=$1.test(e),n=$1.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},LB=(e,t)=>M1(t,e);j1.exports={compareIdentifiers:M1,rcompareIdentifiers:LB}});var Ve=F((wH,U1)=>{var ma=fs(),{MAX_LENGTH:q1,MAX_SAFE_INTEGER:ya}=ls(),{safeRe:H1,t:G1}=hi(),NB=ga(),{compareIdentifiers:di}=rh(),nh=class e{constructor(t,r){if(r=NB(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>q1)throw new TypeError(`version is longer than ${q1} characters`);ma("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?H1[G1.LOOSE]:H1[G1.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>ya||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ya||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ya||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<ya)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(ma("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),di(this.major,t.major)||di(this.minor,t.minor)||di(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(ma("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return di(n,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(ma("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return di(n,i)}while(++r)}inc(t,r,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),di(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};U1.exports=nh});var dn=F((CH,Y1)=>{var W1=Ve(),BB=(e,t,r=!1)=>{if(e instanceof W1)return e;try{return new W1(e,t)}catch(n){if(!r)return null;throw n}};Y1.exports=BB});var V1=F((_H,z1)=>{var $B=dn(),MB=(e,t)=>{let r=$B(e,t);return r?r.version:null};z1.exports=MB});var X1=F((xH,K1)=>{var jB=dn(),qB=(e,t)=>{let r=jB(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};K1.exports=qB});var Z1=F((bH,J1)=>{var Q1=Ve(),HB=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Q1(e instanceof Q1?e.version:e,r).inc(t,n,i).version}catch{return null}};J1.exports=HB});var rS=F((OH,tS)=>{var eS=dn(),GB=(e,t)=>{let r=eS(e,null,!0),n=eS(t,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,o=s?r:n,a=s?n:r,u=!!o.prerelease.length;if(!!a.prerelease.length&&!u)return!a.patch&&!a.minor?"major":o.patch?"patch":o.minor?"minor":"major";let f=u?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};tS.exports=GB});var iS=F((RH,nS)=>{var UB=Ve(),WB=(e,t)=>new UB(e,t).major;nS.exports=WB});var oS=F((FH,sS)=>{var YB=Ve(),zB=(e,t)=>new YB(e,t).minor;sS.exports=zB});var uS=F((kH,aS)=>{var VB=Ve(),KB=(e,t)=>new VB(e,t).patch;aS.exports=KB});var lS=F((PH,cS)=>{var XB=dn(),QB=(e,t)=>{let r=XB(e,t);return r&&r.prerelease.length?r.prerelease:null};cS.exports=QB});var bt=F((DH,hS)=>{var fS=Ve(),JB=(e,t,r)=>new fS(e,r).compare(new fS(t,r));hS.exports=JB});var pS=F((TH,dS)=>{var ZB=bt(),e$=(e,t,r)=>ZB(t,e,r);dS.exports=e$});var mS=F((IH,gS)=>{var t$=bt(),r$=(e,t)=>t$(e,t,!0);gS.exports=r$});var va=F((LH,vS)=>{var yS=Ve(),n$=(e,t,r)=>{let n=new yS(e,r),i=new yS(t,r);return n.compare(i)||n.compareBuild(i)};vS.exports=n$});var AS=F((NH,ES)=>{var i$=va(),s$=(e,t)=>e.sort((r,n)=>i$(r,n,t));ES.exports=s$});var wS=F((BH,SS)=>{var o$=va(),a$=(e,t)=>e.sort((r,n)=>o$(n,r,t));SS.exports=a$});var hs=F(($H,CS)=>{var u$=bt(),c$=(e,t,r)=>u$(e,t,r)>0;CS.exports=c$});var Ea=F((MH,_S)=>{var l$=bt(),f$=(e,t,r)=>l$(e,t,r)<0;_S.exports=f$});var ih=F((jH,xS)=>{var h$=bt(),d$=(e,t,r)=>h$(e,t,r)===0;xS.exports=d$});var sh=F((qH,bS)=>{var p$=bt(),g$=(e,t,r)=>p$(e,t,r)!==0;bS.exports=g$});var Aa=F((HH,OS)=>{var m$=bt(),y$=(e,t,r)=>m$(e,t,r)>=0;OS.exports=y$});var Sa=F((GH,RS)=>{var v$=bt(),E$=(e,t,r)=>v$(e,t,r)<=0;RS.exports=E$});var oh=F((UH,FS)=>{var A$=ih(),S$=sh(),w$=hs(),C$=Aa(),_$=Ea(),x$=Sa(),b$=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return A$(e,r,n);case"!=":return S$(e,r,n);case">":return w$(e,r,n);case">=":return C$(e,r,n);case"<":return _$(e,r,n);case"<=":return x$(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};FS.exports=b$});var PS=F((WH,kS)=>{var O$=Ve(),R$=dn(),{safeRe:wa,t:Ca}=hi(),F$=(e,t)=>{if(e instanceof O$)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?wa[Ca.COERCEFULL]:wa[Ca.COERCE]);else{let u=t.includePrerelease?wa[Ca.COERCERTLFULL]:wa[Ca.COERCERTL],c;for(;(c=u.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||c.index+c[0].length!==r.index+r[0].length)&&(r=c),u.lastIndex=c.index+c[1].length+c[2].length;u.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return R$(`${n}.${i}.${s}${o}${a}`,t)};kS.exports=F$});var TS=F((YH,DS)=>{var ah=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}};DS.exports=ah});var Ot=F((zH,BS)=>{var k$=/\s+/g,uh=class e{constructor(t,r){if(r=D$(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof ch)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(k$," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!LS(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&M$(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&B$)|(this.options.loose&&$$))+":"+t,i=IS.get(n);if(i)return i;let s=this.options.loose,o=s?ct[rt.HYPHENRANGELOOSE]:ct[rt.HYPHENRANGE];t=t.replace(o,K$(this.options.includePrerelease)),_e("hyphen replace",t),t=t.replace(ct[rt.COMPARATORTRIM],I$),_e("comparator trim",t),t=t.replace(ct[rt.TILDETRIM],L$),_e("tilde trim",t),t=t.replace(ct[rt.CARETTRIM],N$),_e("caret trim",t);let a=t.split(" ").map(l=>j$(l,this.options)).join(" ").split(/\s+/).map(l=>V$(l,this.options));s&&(a=a.filter(l=>(_e("loose invalid filter",l,this.options),!!l.match(ct[rt.COMPARATORLOOSE])))),_e("range list",a);let u=new Map,c=a.map(l=>new ch(l,this.options));for(let l of c){if(LS(l))return[l];u.set(l.value,l)}u.size>1&&u.has("")&&u.delete("");let f=[...u.values()];return IS.set(n,f),f}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>NS(n,r)&&t.set.some(i=>NS(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new T$(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(X$(this.set[r],t,this.options))return!0;return!1}};BS.exports=uh;var P$=TS(),IS=new P$,D$=ga(),ch=ds(),_e=fs(),T$=Ve(),{safeRe:ct,t:rt,comparatorTrimReplace:I$,tildeTrimReplace:L$,caretTrimReplace:N$}=hi(),{FLAG_INCLUDE_PRERELEASE:B$,FLAG_LOOSE:$$}=ls(),LS=e=>e.value==="<0.0.0-0",M$=e=>e.value==="",NS=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},j$=(e,t)=>(_e("comp",e,t),e=G$(e,t),_e("caret",e),e=q$(e,t),_e("tildes",e),e=W$(e,t),_e("xrange",e),e=z$(e,t),_e("stars",e),e),nt=e=>!e||e.toLowerCase()==="x"||e==="*",q$=(e,t)=>e.trim().split(/\s+/).map(r=>H$(r,t)).join(" "),H$=(e,t)=>{let r=t.loose?ct[rt.TILDELOOSE]:ct[rt.TILDE];return e.replace(r,(n,i,s,o,a)=>{_e("tilde",e,n,i,s,o,a);let u;return nt(i)?u="":nt(s)?u=`>=${i}.0.0 <${+i+1}.0.0-0`:nt(o)?u=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(_e("replaceTilde pr",a),u=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):u=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,_e("tilde return",u),u})},G$=(e,t)=>e.trim().split(/\s+/).map(r=>U$(r,t)).join(" "),U$=(e,t)=>{_e("caret",e,t);let r=t.loose?ct[rt.CARETLOOSE]:ct[rt.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,a,u)=>{_e("caret",e,i,s,o,a,u);let c;return nt(s)?c="":nt(o)?c=`>=${s}.0.0${n} <${+s+1}.0.0-0`:nt(a)?s==="0"?c=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:u?(_e("replaceCaret pr",u),s==="0"?o==="0"?c=`>=${s}.${o}.${a}-${u} <${s}.${o}.${+a+1}-0`:c=`>=${s}.${o}.${a}-${u} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${a}-${u} <${+s+1}.0.0-0`):(_e("no pr"),s==="0"?o==="0"?c=`>=${s}.${o}.${a}${n} <${s}.${o}.${+a+1}-0`:c=`>=${s}.${o}.${a}${n} <${s}.${+o+1}.0-0`:c=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),_e("caret return",c),c})},W$=(e,t)=>(_e("replaceXRanges",e,t),e.split(/\s+/).map(r=>Y$(r,t)).join(" ")),Y$=(e,t)=>{e=e.trim();let r=t.loose?ct[rt.XRANGELOOSE]:ct[rt.XRANGE];return e.replace(r,(n,i,s,o,a,u)=>{_e("xRange",e,n,i,s,o,a,u);let c=nt(s),f=c||nt(o),l=f||nt(a),h=l;return i==="="&&h&&(i=""),u=t.includePrerelease?"-0":"",c?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(f&&(o=0),a=0,i===">"?(i=">=",f?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",f?s=+s+1:o=+o+1),i==="<"&&(u="-0"),n=`${i+s}.${o}.${a}${u}`):f?n=`>=${s}.0.0${u} <${+s+1}.0.0-0`:l&&(n=`>=${s}.${o}.0${u} <${s}.${+o+1}.0-0`),_e("xRange return",n),n})},z$=(e,t)=>(_e("replaceStars",e,t),e.trim().replace(ct[rt.STAR],"")),V$=(e,t)=>(_e("replaceGTE0",e,t),e.trim().replace(ct[t.includePrerelease?rt.GTE0PRE:rt.GTE0],"")),K$=e=>(t,r,n,i,s,o,a,u,c,f,l,h)=>(nt(n)?r="":nt(i)?r=`>=${n}.0.0${e?"-0":""}`:nt(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,nt(c)?u="":nt(f)?u=`<${+c+1}.0.0-0`:nt(l)?u=`<${c}.${+f+1}.0-0`:h?u=`<=${c}.${f}.${l}-${h}`:e?u=`<${c}.${f}.${+l+1}-0`:u=`<=${u}`,`${r} ${u}`.trim()),X$=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(_e(e[n].semver),e[n].semver!==ch.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}});var ds=F((VH,GS)=>{var ps=Symbol("SemVer ANY"),hh=class e{static get ANY(){return ps}constructor(t,r){if(r=$S(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),fh("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===ps?this.value="":this.value=this.operator+this.semver.version,fh("comp",this)}parse(t){let r=this.options.loose?MS[jS.COMPARATORLOOSE]:MS[jS.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new qS(n[2],this.options.loose):this.semver=ps}toString(){return this.value}test(t){if(fh("Comparator.test",t,this.options.loose),this.semver===ps||t===ps)return!0;if(typeof t=="string")try{t=new qS(t,this.options)}catch{return!1}return lh(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new HS(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new HS(this.value,r).test(t.semver):(r=$S(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||lh(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||lh(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};GS.exports=hh;var $S=ga(),{safeRe:MS,t:jS}=hi(),lh=oh(),fh=fs(),qS=Ve(),HS=Ot()});var gs=F((KH,US)=>{var Q$=Ot(),J$=(e,t,r)=>{try{t=new Q$(t,r)}catch{return!1}return t.test(e)};US.exports=J$});var YS=F((XH,WS)=>{var Z$=Ot(),eM=(e,t)=>new Z$(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));WS.exports=eM});var VS=F((QH,zS)=>{var tM=Ve(),rM=Ot(),nM=(e,t,r)=>{let n=null,i=null,s=null;try{s=new rM(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new tM(n,r))}),n};zS.exports=nM});var XS=F((JH,KS)=>{var iM=Ve(),sM=Ot(),oM=(e,t,r)=>{let n=null,i=null,s=null;try{s=new sM(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new iM(n,r))}),n};KS.exports=oM});var ZS=F((ZH,JS)=>{var dh=Ve(),aM=Ot(),QS=hs(),uM=(e,t)=>{e=new aM(e,t);let r=new dh("0.0.0");if(e.test(r)||(r=new dh("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],s=null;i.forEach(o=>{let a=new dh(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||QS(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||QS(r,s))&&(r=s)}return r&&e.test(r)?r:null};JS.exports=uM});var tw=F((e8,ew)=>{var cM=Ot(),lM=(e,t)=>{try{return new cM(e,t).range||"*"}catch{return null}};ew.exports=lM});var _a=F((t8,sw)=>{var fM=Ve(),iw=ds(),{ANY:hM}=iw,dM=Ot(),pM=gs(),rw=hs(),nw=Ea(),gM=Sa(),mM=Aa(),yM=(e,t,r,n)=>{e=new fM(e,n),t=new dM(t,n);let i,s,o,a,u;switch(r){case">":i=rw,s=gM,o=nw,a=">",u=">=";break;case"<":i=nw,s=mM,o=rw,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(pM(e,t,n))return!1;for(let c=0;c<t.set.length;++c){let f=t.set[c],l=null,h=null;if(f.forEach(d=>{d.semver===hM&&(d=new iw(">=0.0.0")),l=l||d,h=h||d,i(d.semver,l.semver,n)?l=d:o(d.semver,h.semver,n)&&(h=d)}),l.operator===a||l.operator===u||(!h.operator||h.operator===a)&&s(e,h.semver))return!1;if(h.operator===u&&o(e,h.semver))return!1}return!0};sw.exports=yM});var aw=F((r8,ow)=>{var vM=_a(),EM=(e,t,r)=>vM(e,t,">",r);ow.exports=EM});var cw=F((n8,uw)=>{var AM=_a(),SM=(e,t,r)=>AM(e,t,"<",r);uw.exports=SM});var hw=F((i8,fw)=>{var lw=Ot(),wM=(e,t,r)=>(e=new lw(e,r),t=new lw(t,r),e.intersects(t,r));fw.exports=wM});var pw=F((s8,dw)=>{var CM=gs(),_M=bt();dw.exports=(e,t,r)=>{let n=[],i=null,s=null,o=e.sort((f,l)=>_M(f,l,r));for(let f of o)CM(f,t,r)?(s=f,i||(i=f)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let a=[];for(let[f,l]of n)f===l?a.push(f):!l&&f===o[0]?a.push("*"):l?f===o[0]?a.push(`<=${l}`):a.push(`${f} - ${l}`):a.push(`>=${f}`);let u=a.join(" || "),c=typeof t.raw=="string"?t.raw:String(t);return u.length<c.length?u:t}});var Aw=F((o8,Ew)=>{var gw=Ot(),gh=ds(),{ANY:ph}=gh,ms=gs(),mh=bt(),xM=(e,t,r={})=>{if(e===t)return!0;e=new gw(e,r),t=new gw(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let o=OM(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},bM=[new gh(">=0.0.0-0")],mw=[new gh(">=0.0.0")],OM=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===ph){if(t.length===1&&t[0].semver===ph)return!0;r.includePrerelease?e=bM:e=mw}if(t.length===1&&t[0].semver===ph){if(r.includePrerelease)return!0;t=mw}let n=new Set,i,s;for(let d of e)d.operator===">"||d.operator===">="?i=yw(i,d,r):d.operator==="<"||d.operator==="<="?s=vw(s,d,r):n.add(d.semver);if(n.size>1)return null;let o;if(i&&s){if(o=mh(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let d of n){if(i&&!ms(d,String(i),r)||s&&!ms(d,String(s),r))return null;for(let g of t)if(!ms(d,String(g),r))return!1;return!0}let a,u,c,f,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(let d of t){if(f=f||d.operator===">"||d.operator===">=",c=c||d.operator==="<"||d.operator==="<=",i){if(h&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===h.major&&d.semver.minor===h.minor&&d.semver.patch===h.patch&&(h=!1),d.operator===">"||d.operator===">="){if(a=yw(i,d,r),a===d&&a!==i)return!1}else if(i.operator===">="&&!ms(i.semver,String(d),r))return!1}if(s){if(l&&d.semver.prerelease&&d.semver.prerelease.length&&d.semver.major===l.major&&d.semver.minor===l.minor&&d.semver.patch===l.patch&&(l=!1),d.operator==="<"||d.operator==="<="){if(u=vw(s,d,r),u===d&&u!==s)return!1}else if(s.operator==="<="&&!ms(s.semver,String(d),r))return!1}if(!d.operator&&(s||i)&&o!==0)return!1}return!(i&&c&&!s&&o!==0||s&&f&&!i&&o!==0||h||l)},yw=(e,t,r)=>{if(!e)return t;let n=mh(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},vw=(e,t,r)=>{if(!e)return t;let n=mh(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};Ew.exports=xM});var _w=F((a8,Cw)=>{var yh=hi(),Sw=ls(),RM=Ve(),ww=rh(),FM=dn(),kM=V1(),PM=X1(),DM=Z1(),TM=rS(),IM=iS(),LM=oS(),NM=uS(),BM=lS(),$M=bt(),MM=pS(),jM=mS(),qM=va(),HM=AS(),GM=wS(),UM=hs(),WM=Ea(),YM=ih(),zM=sh(),VM=Aa(),KM=Sa(),XM=oh(),QM=PS(),JM=ds(),ZM=Ot(),e3=gs(),t3=YS(),r3=VS(),n3=XS(),i3=ZS(),s3=tw(),o3=_a(),a3=aw(),u3=cw(),c3=hw(),l3=pw(),f3=Aw();Cw.exports={parse:FM,valid:kM,clean:PM,inc:DM,diff:TM,major:IM,minor:LM,patch:NM,prerelease:BM,compare:$M,rcompare:MM,compareLoose:jM,compareBuild:qM,sort:HM,rsort:GM,gt:UM,lt:WM,eq:YM,neq:zM,gte:VM,lte:KM,cmp:XM,coerce:QM,Comparator:JM,Range:ZM,satisfies:e3,toComparators:t3,maxSatisfying:r3,minSatisfying:n3,minVersion:i3,validRange:s3,outside:o3,gtr:a3,ltr:u3,intersects:c3,simplifyRange:l3,subset:f3,SemVer:RM,re:yh.re,src:yh.src,tokens:yh.t,SEMVER_SPEC_VERSION:Sw.SEMVER_SPEC_VERSION,RELEASE_TYPES:Sw.RELEASE_TYPES,compareIdentifiers:ww.compareIdentifiers,rcompareIdentifiers:ww.rcompareIdentifiers}});var xa=F((u8,vh)=>{var Hr=uf(),{Umask:h3,validate:d3}=Zf(),xw=_w(),p3=(e,t,r)=>{let n=xw.valid(r);if(!n)return!1;e[t]=n},g3=Hr.typeDefs.path.validate,m3=(e,t,r)=>typeof r!="string"?!1:g3(e,t,r);vh.exports={...Hr.typeDefs,semver:{type:xw,validate:p3,description:"full valid SemVer string"},Umask:{type:h3,validate:d3,description:"octal number in range 0o000..0o777 (0..511)"},url:{...Hr.typeDefs.url,description:'full url with "http://"'},path:{...Hr.typeDefs.path,validate:m3,description:"valid filesystem path"},Number:{...Hr.typeDefs.Number,description:"numeric value"},Boolean:{...Hr.typeDefs.Boolean,description:"boolean value (true or false)"},Date:{...Hr.typeDefs.Date,description:"valid Date string"}};Hr.typeDefs=vh.exports});var Rw=F((c8,Ow)=>{var{URL:bw}=M("url");Ow.exports=e=>{let t=new bw(e),r=`${t.protocol}//${t.host}${t.pathname}`,n=new bw(".",r);return`//${n.host}${n.pathname}`}});var Eh=F((l8,Fw)=>{var y3=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;Fw.exports=(e,t)=>e.replace(y3,(r,n,i)=>{let s=t[i]!==void 0?t[i]:`\${${i}}`;return n.length%2?r.slice((n.length+1)/2):n.slice(n.length/2)+s})});var Dw=F((f8,Pw)=>{var ys=xa(),v3=Eh(),{resolve:kw}=M("path"),{parse:E3}=Zf(),Ah=(e,t,r,n=!1)=>{if(typeof e!="string"&&!Array.isArray(e))return e;let{platform:i,types:s,home:o,env:a}=r,u=new Set([].concat(s[t])),c=u.has(ys.path.type),f=u.has(ys.Boolean.type),l=c||u.has(ys.String.type),h=u.has(ys.Umask.type),d=u.has(ys.Number.type),g=!n&&u.has(Array);if(Array.isArray(e))return g?e.map(S=>Ah(S,t,r,!0)):e;if(e=e.trim(),g)return Ah(e.split(`
82
+ `,n=t.whitespace?" = ":"=",i=[],s=t.sort?Object.keys(e).sort():Object.keys(e),o=0;t.align&&(o=Ir(s.filter(u=>e[u]===null||Array.isArray(e[u])||typeof e[u]!="object").map(u=>Array.isArray(e[u])?`${u}[]`:u).concat([""]).reduce((u,f)=>Ir(u).length>=Ir(f).length?u:f)).length);let a="",c=t.bracketedArray?"[]":"";for(let u of s){let f=e[u];if(f&&Array.isArray(f))for(let l of f)a+=Ir(`${u}${c}`).padEnd(o," ")+n+Ir(l)+r;else f&&typeof f=="object"?i.push(u):a+=Ir(u).padEnd(o," ")+n+Ir(f)+r}t.section&&a.length&&(a="["+Ir(t.section)+"]"+(t.newline?r+r:r)+a);for(let u of i){let f=ew(u,".").join("\\."),l=(t.section?t.section+".":"")+f,h=Ah(e[u],{...t,section:l});a.length&&h.length&&(a+=r),a+=h}return a};function ew(e,t){var r=0,n=0,i=0,s=[];do if(i=e.indexOf(t,r),i!==-1){if(r=i+t.length,i>0&&e[i-1]==="\\")continue;s.push(e.slice(n,i)),n=i+t.length}while(i!==-1);return s.push(e.slice(n)),s}var ZE=(e,t={})=>{t.bracketedArray=t.bracketedArray!==!1;let r=Object.create(null),n=r,i=null,s=/^\[([^\]]*)\]\s*$|^([^=]+)(=(.*))?$/i,o=e.split(/[\r\n]+/g),a={};for(let u of o){if(!u||u.match(/^\s*[;#]/)||u.match(/^\s*$/))continue;let f=u.match(s);if(!f)continue;if(f[1]!==void 0){if(i=Wa(f[1]),i==="__proto__"){n=Object.create(null);continue}n=r[i]=r[i]||Object.create(null);continue}let l=Wa(f[2]),h;t.bracketedArray?h=l.length>2&&l.slice(-2)==="[]":(a[l]=(a?.[l]||0)+1,h=a[l]>1);let p=h&&l.endsWith("[]")?l.slice(0,-2):l;if(p==="__proto__")continue;let d=f[3]?Wa(f[4]):!0,m=d==="true"||d==="false"||d==="null"?JSON.parse(d):d;h&&(vh.call(n,p)?Array.isArray(n[p])||(n[p]=[n[p]]):n[p]=[]),Array.isArray(n[p])?n[p].push(m):n[p]=m}let c=[];for(let u of Object.keys(r)){if(!vh.call(r,u)||typeof r[u]!="object"||Array.isArray(r[u]))continue;let f=ew(u,".");n=r;let l=f.pop(),h=l.replace(/\\\./g,".");for(let p of f)p!=="__proto__"&&((!vh.call(n,p)||typeof n[p]!="object")&&(n[p]=Object.create(null)),n=n[p]);n===r&&h===l||(n[h]=r[u],c.push(u))}for(let u of c)delete r[u];return r},tw=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),Ir=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&tw(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),Wa=e=>{if(e=(e||"").trim(),tw(e)){e.charAt(0)==="'"&&(e=e.slice(1,-1));try{e=JSON.parse(e)}catch{}}else{let t=!1,r="";for(let n=0,i=e.length;n<i;n++){let s=e.charAt(n);if(t)"\\;#".indexOf(s)!==-1?r+=s:r+="\\"+s,t=!1;else{if(";#".indexOf(s)!==-1)break;s==="\\"?t=!0:r+=s}}return t&&(r+="\\"),r.trim()}return e};rw.exports={parse:ZE,decode:ZE,stringify:Ah,encode:Ah,safe:Ir,unsafe:Wa}});var iw=R((Q4,nw)=>{nw.exports=iB;function iB(...e){let t=e.length===1||Array.isArray(e[0])?e[0]:e;for(let i=0,s=t.length;i<s;i++)t[i]=typeof t[i]=="string"?t[i]:String(t[i]);t=t.sort(sB);let r={},n="";for(let i=0,s=t.length;i<s;i++){let o=t[i],a=t[i+1]||"",c=!0,u=!0;if(o===a)continue;let f=0,l=o.length;for(;f<l;f++){let h=o.charAt(f);if(c=c&&h===a.charAt(f),u=u&&h===n.charAt(f),!c&&!u){f++;break}}if(n=o,f===l){r[o]=o;continue}for(let h=o.slice(0,f);f<=l;f++)r[h]=o,h+=o.charAt(f)}return r}function sB(e,t){return e===t?0:e>t?1:-1}});var wh=R((Z4,sw)=>{sw.exports=process.env.DEBUG_NOPT||process.env.NOPT_DEBUG?(...e)=>console.error(...e):()=>{}});var bh=R((e7,cw)=>{var ow=q("url"),Sh=q("path"),aw=q("stream").Stream,oB=q("os"),uw=wh();function aB(e,t,r){e[t]=String(r)}function uB(e,t,r){if(r===!0)return!1;if(r===null)return!0;r=String(r);let i=process.platform==="win32"?/^~(\/|\\)/:/^~\//,s=oB.homedir();return s&&r.match(i)?e[t]=Sh.resolve(s,r.slice(2)):e[t]=Sh.resolve(r),!0}function cB(e,t,r){if(uw("validate Number %j %j %j",t,r,isNaN(r)),isNaN(r))return!1;e[t]=+r}function lB(e,t,r){let n=Date.parse(r);if(uw("validate Date %j %j %j",t,r,n),isNaN(n))return!1;e[t]=new Date(r)}function fB(e,t,r){typeof r=="string"?isNaN(r)?r==="null"||r==="false"?r=!1:r=!0:r=!!+r:r=!!r,e[t]=r}function hB(e,t,r){if(r=ow.parse(String(r)),!r.host)return!1;e[t]=r.href}function pB(e,t,r){if(!(r instanceof aw))return!1;e[t]=r}cw.exports={String:{type:String,validate:aB},Boolean:{type:Boolean,validate:fB},url:{type:ow,validate:hB},Number:{type:Number,validate:cB},path:{type:Sh,validate:uB},Stream:{type:aw,validate:pB},Date:{type:Date,validate:lB},Array:{type:Array}}});var yw=R((t7,mw)=>{var Ga=iw(),xe=wh(),dB=bh(),fw=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),hw=(e,{types:t,dynamicTypes:r})=>{let n=fw(t,e),i=t[e];if(!n&&typeof r=="function"){let s=r(e);s!==void 0&&(i=s,n=!0)}return[n,i]},_i=(e,t)=>t&&e===t,Er=(e,t)=>t&&e.indexOf(t)!==-1,gB=(e,t)=>t&&!Er(e,t);function mB(e,{types:t,shorthands:r,typeDefs:n,invalidHandler:i,unknownHandler:s,abbrevHandler:o,typeDefault:a,dynamicTypes:c}={}){xe(t,r,e,n);let u={},f={remain:[],cooked:e,original:e.slice(0)};return dw(e,u,f.remain,{typeDefs:n,types:t,dynamicTypes:c,shorthands:r,unknownHandler:s,abbrevHandler:o}),pw(u,{types:t,dynamicTypes:c,typeDefs:n,invalidHandler:i,typeDefault:a}),u.argv=f,Object.defineProperty(u.argv,"toString",{value:function(){return this.original.map(JSON.stringify).join(" ")},enumerable:!1}),u}function pw(e,{types:t={},typeDefs:r={},dynamicTypes:n,invalidHandler:i,typeDefault:s}={}){let o=r.String?.type,a=r.Number?.type,c=r.Array?.type,u=r.Boolean?.type,f=r.Date?.type,l=typeof s<"u";l||(s=[!1,!0,null],o&&s.push(o),c&&s.push(c));let h={};Object.keys(e).forEach(p=>{if(p==="argv")return;let d=e[p];xe("val=%j",d);let m=Array.isArray(d),[v,P]=hw(p,{types:t,dynamicTypes:n}),C=P;m||(d=[d]),C||(C=s),_i(C,c)&&(C=s.concat(c)),Array.isArray(C)||(C=[C]),xe("val=%j",d),xe("types=",C),d=d.map(F=>{if(typeof F=="string"&&(xe("string %j",F),F=F.trim(),F==="null"&&~C.indexOf(null)||F==="true"&&(~C.indexOf(!0)||Er(C,u))||F==="false"&&(~C.indexOf(!1)||Er(C,u))?(F=JSON.parse(F),xe("jsonable %j",F)):Er(C,a)&&!isNaN(F)?(xe("convert to number",F),F=+F):Er(C,f)&&!isNaN(Date.parse(F))&&(xe("convert to date",F),F=new Date(F))),!v){if(!l)return F;P=s}F===!1&&~C.indexOf(null)&&!(~C.indexOf(!1)||Er(C,u))&&(F=null);let D={};return D[p]=F,xe("prevalidated val",D,F,P),Ch(D,p,F,P,{typeDefs:r})?(xe("validated v",D,F,P),D[p]):(i?i(p,F,P,e):i!==!1&&xe("invalid: "+p+"="+F,P),h)}).filter(F=>F!==h),!d.length&&gB(C,c)?(xe("VAL HAS NO LENGTH, DELETE IT",d,p,C.indexOf(c)),delete e[p]):m?(xe(m,e[p],d),e[p]=d):e[p]=d[0],xe("k=%s val=%j",p,d,e[p])})}function Ch(e,t,r,n,{typeDefs:i}={}){let s=i?.Array?.type;if(Array.isArray(n)){for(let c=0,u=n.length;c<u;c++)if(!_i(n[c],s)&&Ch(e,t,r,n[c],{typeDefs:i}))return!0;return delete e[t],!1}if(_i(n,s))return!0;if(n!==n)return xe("Poison NaN",t,r,n),delete e[t],!1;if(r===n)return xe("Explicitly allowed %j",r),e[t]=r,!0;let o=!1,a=Object.keys(i);for(let c=0,u=a.length;c<u;c++){xe("test type %j %j %j",t,r,a[c]);let f=i[a[c]];if(f&&(n&&n.name&&f.type&&f.type.name?n.name===f.type.name:n===f.type)){let l={};if(o=f.validate(l,t,r)!==!1,r=l[t],o){e[t]=r;break}}}return xe("OK? %j (%j %j %j)",o,t,r,a[a.length-1]),o||delete e[t],o}function dw(e,t,r,{types:n={},typeDefs:i={},shorthands:s={},dynamicTypes:o,unknownHandler:a,abbrevHandler:c}={}){let u=i.String?.type,f=i.Number?.type,l=i.Array?.type,h=i.Boolean?.type;xe("parse",e,t,r);let p=Ga(Object.keys(n));xe("abbrevs=%j",p);let d=Ga(Object.keys(s));for(let m=0;m<e.length;m++){let v=e[m];if(xe("arg",v),v.match(/^-{2,}$/)){r.push.apply(r,e.slice(m+1)),e[m]="--";break}let P=!1;if(v.charAt(0)==="-"&&v.length>1){let C=v.indexOf("=");if(C>-1){P=!0;let y=v.slice(C+1);v=v.slice(0,C),e.splice(m,1,v,y)}let F=gw(v,d,p,{shorthands:s,abbrevHandler:c});if(xe("arg=%j shRes=%j",v,F),F&&(e.splice.apply(e,[m,1].concat(F)),v!==F[0])){m--;continue}v=v.replace(/^-+/,"");let D=null;for(;v.toLowerCase().indexOf("no-")===0;)D=!D,v=v.slice(3);p[v]&&p[v]!==v&&(c?c(v,p[v]):c!==!1&&xe(`abbrev: ${v} -> ${p[v]}`),v=p[v]);let[E,O]=hw(v,{types:n,dynamicTypes:o}),k=Array.isArray(O);k&&O.length===1&&(k=!1,O=O[0]);let _=_i(O,l)||k&&Er(O,l);!E&&fw(t,v)&&(Array.isArray(t[v])||(t[v]=[t[v]]),_=!0);let T,b=e[m+1],g=typeof D=="boolean"||_i(O,h)||k&&Er(O,h)||typeof O>"u"&&!P||b==="false"&&(O===null||k&&~O.indexOf(null));if(typeof O>"u"){let y=!P&&b&&!b?.startsWith("-")&&!["true","false"].includes(b);a?y?a(v,b):a(v):a!==!1&&(xe(`unknown: ${v}`),y&&xe(`unknown: ${b} parsed as normal opt`))}if(g){T=!D,(b==="true"||b==="false")&&(T=JSON.parse(b),b=null,D&&(T=!T),m++),k&&b&&(~O.indexOf(b)?(T=b,m++):b==="null"&&~O.indexOf(null)?(T=null,m++):!b.match(/^-{2,}[^-]/)&&!isNaN(b)&&Er(O,f)?(T=+b,m++):!b.match(/^-[^-]/)&&Er(O,u)&&(T=b,m++)),_?(t[v]=t[v]||[]).push(T):t[v]=T;continue}_i(O,u)&&(b===void 0?b="":b.match(/^-{1,2}[^-]+/)&&(b="",m--)),b&&b.match(/^-{2,}$/)&&(b=void 0,m--),T=b===void 0?!0:b,_?(t[v]=t[v]||[]).push(T):t[v]=T,m++;continue}r.push(v)}}var lw=Symbol("singles"),yB=(e,t)=>{let r=t[lw];r||(r=Object.keys(t).filter(i=>i.length===1).reduce((i,s)=>(i[s]=!0,i),{}),t[lw]=r,xe("shorthand singles",r));let n=e.split("").filter(i=>r[i]);return n.join("")===e?n:null};function gw(e,...t){let{abbrevHandler:r,types:n={},shorthands:i={}}=t.length?t.pop():{},s=t[0]??Ga(Object.keys(i)),o=t[1]??Ga(Object.keys(n));if(e=e.replace(/^-+/,""),o[e]===e)return null;if(i[e])return i[e]&&!Array.isArray(i[e])&&(i[e]=i[e].split(/\s+/)),i[e];let a=yB(e,i);return a?a.map(c=>i[c]).reduce((c,u)=>c.concat(u),[]):o[e]&&!i[e]?null:(s[e]&&(r?r(e,s[e]):r!==!1&&xe(`abbrev: ${e} -> ${s[e]}`),e=s[e]),i[e]&&!Array.isArray(i[e])&&(i[e]=i[e].split(/\s+/)),i[e])}mw.exports={nopt:mB,clean:pw,parse:dw,validate:Ch,resolveShort:gw,typeDefs:dB}});var Ph=R((Nt,vw)=>{var xh=yw(),vB=bh();vw.exports=Nt=AB;Nt.clean=EB;Nt.typeDefs=vB;Nt.lib=xh;function AB(e,t,r=process.argv,n=2){return xh.nopt(r.slice(n),{types:e||{},shorthands:t||{},typeDefs:Nt.typeDefs,invalidHandler:Nt.invalidHandler,unknownHandler:Nt.unknownHandler,abbrevHandler:Nt.abbrevHandler})}function EB(e,t,r=Nt.typeDefs){return xh.clean(e,{types:t||{},typeDefs:r,invalidHandler:Nt.invalidHandler,unknownHandler:Nt.unknownHandler,abbrevHandler:Nt.abbrevHandler})}});var Cs=R((r7,Aw)=>{var wB=Symbol("proc-log.meta");Aw.exports={META:wB,output:{LEVELS:["standard","error","buffer","flush"],KEYS:{standard:"standard",error:"error",buffer:"buffer",flush:"flush"},standard:function(...e){return process.emit("output","standard",...e)},error:function(...e){return process.emit("output","error",...e)},buffer:function(...e){return process.emit("output","buffer",...e)},flush:function(...e){return process.emit("output","flush",...e)}},log:{LEVELS:["notice","error","warn","info","verbose","http","silly","timing","pause","resume"],KEYS:{notice:"notice",error:"error",warn:"warn",info:"info",verbose:"verbose",http:"http",silly:"silly",timing:"timing",pause:"pause",resume:"resume"},error:function(...e){return process.emit("log","error",...e)},notice:function(...e){return process.emit("log","notice",...e)},warn:function(...e){return process.emit("log","warn",...e)},info:function(...e){return process.emit("log","info",...e)},verbose:function(...e){return process.emit("log","verbose",...e)},http:function(...e){return process.emit("log","http",...e)},silly:function(...e){return process.emit("log","silly",...e)},timing:function(...e){return process.emit("log","timing",...e)},pause:function(){return process.emit("log","pause")},resume:function(){return process.emit("log","resume")}},time:{LEVELS:["start","end"],KEYS:{start:"start",end:"end"},start:function(e,t){process.emit("time","start",e);function r(){return process.emit("time","end",e)}if(typeof t=="function"){let n=t();return n&&n.finally?n.finally(r):(r(),n)}return r},end:function(e){return process.emit("time","end",e)}},input:{LEVELS:["start","end","read"],KEYS:{start:"start",end:"end",read:"read"},start:function(e){process.emit("input","start");function t(){return process.emit("input","end")}if(typeof e=="function"){let r=e();return r&&r.finally?r.finally(t):(t(),r)}return t},end:function(){return process.emit("input","end")},read:function(...e){let t,r,n=new Promise((i,s)=>{t=i,r=s});return process.emit("input","read",t,r,...e),n}}}});var Oh=R((n7,ww)=>{var Ew=e=>{if(typeof e=="string"){if(/^0o?[0-7]+$/.test(e))return parseInt(e.replace(/^0o?/,""),8);if(/^[1-9][0-9]*$/.test(e))return parseInt(e,10);throw new Error(`invalid umask value: ${e}`)}else{if(typeof e!="number")throw new Error(`invalid umask value: ${e}`);if(e=Math.floor(e),e<0||e>511)throw new Error(`invalid umask value: ${e}`);return e}},SB=(e,t,r)=>{try{return e[t]=Ew(r),!0}catch{return!1}};ww.exports={parse:Ew,validate:SB}});var xs=R((i7,Sw)=>{var bB=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};Sw.exports=bB});var Ps=R((s7,bw)=>{var CB="2.0.0",xB=Number.MAX_SAFE_INTEGER||9007199254740991,PB=16,OB=250,RB=["major","premajor","minor","preminor","patch","prepatch","prerelease"];bw.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:PB,MAX_SAFE_BUILD_LENGTH:OB,MAX_SAFE_INTEGER:xB,RELEASE_TYPES:RB,SEMVER_SPEC_VERSION:CB,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ki=R((wr,Cw)=>{var{MAX_SAFE_COMPONENT_LENGTH:Rh,MAX_SAFE_BUILD_LENGTH:_B,MAX_LENGTH:kB}=Ps(),DB=xs();wr=Cw.exports={};var FB=wr.re=[],LB=wr.safeRe=[],X=wr.src=[],TB=wr.safeSrc=[],J=wr.t={},NB=0,_h="[a-zA-Z0-9-]",IB=[["\\s",1],["\\d",kB],[_h,_B]],$B=e=>{for(let[t,r]of IB)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},ce=(e,t,r)=>{let n=$B(t),i=NB++;DB(e,i,t),J[e]=i,X[i]=t,TB[i]=n,FB[i]=new RegExp(t,r?"g":void 0),LB[i]=new RegExp(n,r?"g":void 0)};ce("NUMERICIDENTIFIER","0|[1-9]\\d*");ce("NUMERICIDENTIFIERLOOSE","\\d+");ce("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${_h}*`);ce("MAINVERSION",`(${X[J.NUMERICIDENTIFIER]})\\.(${X[J.NUMERICIDENTIFIER]})\\.(${X[J.NUMERICIDENTIFIER]})`);ce("MAINVERSIONLOOSE",`(${X[J.NUMERICIDENTIFIERLOOSE]})\\.(${X[J.NUMERICIDENTIFIERLOOSE]})\\.(${X[J.NUMERICIDENTIFIERLOOSE]})`);ce("PRERELEASEIDENTIFIER",`(?:${X[J.NUMERICIDENTIFIER]}|${X[J.NONNUMERICIDENTIFIER]})`);ce("PRERELEASEIDENTIFIERLOOSE",`(?:${X[J.NUMERICIDENTIFIERLOOSE]}|${X[J.NONNUMERICIDENTIFIER]})`);ce("PRERELEASE",`(?:-(${X[J.PRERELEASEIDENTIFIER]}(?:\\.${X[J.PRERELEASEIDENTIFIER]})*))`);ce("PRERELEASELOOSE",`(?:-?(${X[J.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${X[J.PRERELEASEIDENTIFIERLOOSE]})*))`);ce("BUILDIDENTIFIER",`${_h}+`);ce("BUILD",`(?:\\+(${X[J.BUILDIDENTIFIER]}(?:\\.${X[J.BUILDIDENTIFIER]})*))`);ce("FULLPLAIN",`v?${X[J.MAINVERSION]}${X[J.PRERELEASE]}?${X[J.BUILD]}?`);ce("FULL",`^${X[J.FULLPLAIN]}$`);ce("LOOSEPLAIN",`[v=\\s]*${X[J.MAINVERSIONLOOSE]}${X[J.PRERELEASELOOSE]}?${X[J.BUILD]}?`);ce("LOOSE",`^${X[J.LOOSEPLAIN]}$`);ce("GTLT","((?:<|>)?=?)");ce("XRANGEIDENTIFIERLOOSE",`${X[J.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ce("XRANGEIDENTIFIER",`${X[J.NUMERICIDENTIFIER]}|x|X|\\*`);ce("XRANGEPLAIN",`[v=\\s]*(${X[J.XRANGEIDENTIFIER]})(?:\\.(${X[J.XRANGEIDENTIFIER]})(?:\\.(${X[J.XRANGEIDENTIFIER]})(?:${X[J.PRERELEASE]})?${X[J.BUILD]}?)?)?`);ce("XRANGEPLAINLOOSE",`[v=\\s]*(${X[J.XRANGEIDENTIFIERLOOSE]})(?:\\.(${X[J.XRANGEIDENTIFIERLOOSE]})(?:\\.(${X[J.XRANGEIDENTIFIERLOOSE]})(?:${X[J.PRERELEASELOOSE]})?${X[J.BUILD]}?)?)?`);ce("XRANGE",`^${X[J.GTLT]}\\s*${X[J.XRANGEPLAIN]}$`);ce("XRANGELOOSE",`^${X[J.GTLT]}\\s*${X[J.XRANGEPLAINLOOSE]}$`);ce("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Rh}})(?:\\.(\\d{1,${Rh}}))?(?:\\.(\\d{1,${Rh}}))?`);ce("COERCE",`${X[J.COERCEPLAIN]}(?:$|[^\\d])`);ce("COERCEFULL",X[J.COERCEPLAIN]+`(?:${X[J.PRERELEASE]})?(?:${X[J.BUILD]})?(?:$|[^\\d])`);ce("COERCERTL",X[J.COERCE],!0);ce("COERCERTLFULL",X[J.COERCEFULL],!0);ce("LONETILDE","(?:~>?)");ce("TILDETRIM",`(\\s*)${X[J.LONETILDE]}\\s+`,!0);wr.tildeTrimReplace="$1~";ce("TILDE",`^${X[J.LONETILDE]}${X[J.XRANGEPLAIN]}$`);ce("TILDELOOSE",`^${X[J.LONETILDE]}${X[J.XRANGEPLAINLOOSE]}$`);ce("LONECARET","(?:\\^)");ce("CARETTRIM",`(\\s*)${X[J.LONECARET]}\\s+`,!0);wr.caretTrimReplace="$1^";ce("CARET",`^${X[J.LONECARET]}${X[J.XRANGEPLAIN]}$`);ce("CARETLOOSE",`^${X[J.LONECARET]}${X[J.XRANGEPLAINLOOSE]}$`);ce("COMPARATORLOOSE",`^${X[J.GTLT]}\\s*(${X[J.LOOSEPLAIN]})$|^$`);ce("COMPARATOR",`^${X[J.GTLT]}\\s*(${X[J.FULLPLAIN]})$|^$`);ce("COMPARATORTRIM",`(\\s*)${X[J.GTLT]}\\s*(${X[J.LOOSEPLAIN]}|${X[J.XRANGEPLAIN]})`,!0);wr.comparatorTrimReplace="$1$2$3";ce("HYPHENRANGE",`^\\s*(${X[J.XRANGEPLAIN]})\\s+-\\s+(${X[J.XRANGEPLAIN]})\\s*$`);ce("HYPHENRANGELOOSE",`^\\s*(${X[J.XRANGEPLAINLOOSE]})\\s+-\\s+(${X[J.XRANGEPLAINLOOSE]})\\s*$`);ce("STAR","(<|>)?=?\\s*\\*");ce("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ce("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Ua=R((o7,xw)=>{var BB=Object.freeze({loose:!0}),MB=Object.freeze({}),jB=e=>e?typeof e!="object"?BB:e:MB;xw.exports=jB});var kh=R((a7,Rw)=>{var Pw=/^[0-9]+$/,Ow=(e,t)=>{let r=Pw.test(e),n=Pw.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},qB=(e,t)=>Ow(t,e);Rw.exports={compareIdentifiers:Ow,rcompareIdentifiers:qB}});var at=R((u7,Fw)=>{var Ha=xs(),{MAX_LENGTH:_w,MAX_SAFE_INTEGER:Ya}=Ps(),{safeRe:kw,safeSrc:Dw,t:za}=ki(),WB=Ua(),{compareIdentifiers:Di}=kh(),Dh=class e{constructor(t,r){if(r=WB(r),t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>_w)throw new TypeError(`version is longer than ${_w} characters`);Ha("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?kw[za.LOOSE]:kw[za.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Ya||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Ya||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Ya||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(i=>{if(/^[0-9]+$/.test(i)){let s=+i;if(s>=0&&s<Ya)return s}return i}):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(Ha("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),Di(this.major,t.major)||Di(this.minor,t.minor)||Di(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let n=this.prerelease[r],i=t.prerelease[r];if(Ha("prerelease compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Di(n,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let n=this.build[r],i=t.build[r];if(Ha("build compare",r,n,i),n===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(n===void 0)return-1;if(n===i)continue;return Di(n,i)}while(++r)}inc(t,r,n){if(t.startsWith("pre")){if(!r&&n===!1)throw new Error("invalid increment argument: identifier is empty");if(r){let i=new RegExp(`^${this.options.loose?Dw[za.PRERELEASELOOSE]:Dw[za.PRERELEASE]}$`),s=`-${r}`.match(i);if(!s||s[1]!==r)throw new Error(`invalid identifier: ${r}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",r,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",r,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",r,n),this.inc("pre",r,n);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",r,n),this.inc("pre",r,n);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let i=Number(n)?1:0;if(this.prerelease.length===0)this.prerelease=[i];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(i)}}if(r){let s=[r,i];n===!1&&(s=[r]),Di(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};Fw.exports=Dh});var Ln=R((c7,Tw)=>{var Lw=at(),GB=(e,t,r=!1)=>{if(e instanceof Lw)return e;try{return new Lw(e,t)}catch(n){if(!r)return null;throw n}};Tw.exports=GB});var Va=R((l7,Nw)=>{var UB=Ln(),HB=(e,t)=>{let r=UB(e,t);return r?r.version:null};Nw.exports=HB});var Ka=R((f7,Th)=>{var hn=Ph(),{validate:YB}=Oh(),Fh=class{},Lh=class{},zB=Va(),VB=(e,t,r)=>{let n=zB(r);if(!n)return!1;e[t]=n},KB=hn.typeDefs.path.validate,XB=(e,t,r)=>typeof r!="string"?!1:KB(e,t,r);Th.exports={...hn.typeDefs,semver:{type:Lh,validate:VB,description:"full valid SemVer string"},Umask:{type:Fh,validate:YB,description:"octal number in range 0o000..0o777 (0..511)"},url:{...hn.typeDefs.url,description:'full url with "http://"'},path:{...hn.typeDefs.path,validate:XB,description:"valid filesystem path"},Number:{...hn.typeDefs.Number,description:"numeric value"},Boolean:{...hn.typeDefs.Boolean,description:"boolean value (true or false)"},Date:{...hn.typeDefs.Date,description:"valid Date string"}};hn.typeDefs=Th.exports});var Bw=R((h7,$w)=>{var{URL:Iw}=q("node:url");$w.exports=e=>{let t=new Iw(e),r=`${t.protocol}//${t.host}${t.pathname}`,n=new Iw(".",r);return`//${n.host}${n.pathname}`}});var Nh=R((p7,Mw)=>{var JB=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;Mw.exports=(e,t)=>e.replace(JB,(r,n,i)=>{let s=t[i]!==void 0?t[i]:`\${${i}}`;return n.length%2?r.slice((n.length+1)/2):n.slice(n.length/2)+s})});var Ww=R((d7,qw)=>{var Fi=Ka(),QB=Nh(),{resolve:jw}=q("node:path"),{parse:ZB}=Oh(),Ih=(e,t,r,n=!1)=>{if(typeof e!="string"&&!Array.isArray(e))return e;let{platform:i,types:s,home:o,env:a}=r,c=new Set([].concat(s[t])),u=c.has(Fi.path.type),f=c.has(Fi.Boolean.type),l=u||c.has(Fi.String.type),h=c.has(Fi.Umask.type),p=c.has(Fi.Number.type),d=!n&&c.has(Array),m=c.has(Fi.Date.type);if(Array.isArray(e))return d?e.map(v=>Ih(v,t,r,!0)):e;if(e=e.trim(),d)return Ih(e.split(`
88
83
 
89
- `),t,r);if(f&&!l&&e==="")return!0;if(!l&&!c&&!d)switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}if(e=v3(e,a),c&&((i==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&o?e=kw(o,e.slice(2)):e=kw(e)),h)try{return E3(e)}catch{return e}return d&&!isNaN(e)&&(e=+e),e};Pw.exports=Ah});var Lw=F((h8,Iw)=>{var A3=xa(),Tw=e=>{if(!e||typeof e!="function"&&typeof e!="object")return e;if(Array.isArray(e))return e.map(t=>Tw(t));for(let{type:t,description:r}of Object.values(A3))if(t===e)return r||t;return e};Iw.exports=e=>[].concat(Tw(e)).filter(t=>t!==void 0)});var Mw=F((d8,$w)=>{var S3=(e,t)=>!/^[/@_]/.test(e)&&typeof Sh(t)=="string"&&`npm_config_${e.replace(/-/g,"_").toLowerCase()}`,Sh=e=>Array.isArray(e)?e.map(t=>Sh(t)).join(`
84
+ `),t,r);if(f&&!l&&e==="")return!0;if(!l&&!u&&!p)switch(e){case"true":return!0;case"false":return!1;case"null":return null;case"undefined":return}if(e=QB(e,a),m)return new Date(e);if(u&&((i==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&o?e=jw(o,e.slice(2)):e=jw(e)),h)try{return ZB(e)}catch{return e}return p&&!isNaN(e)&&(e=+e),e};qw.exports=Ih});var Yw=R((g7,Hw)=>{var eM=(e,t)=>!/^[/@_]/.test(e)&&typeof $h(t)=="string"&&`npm_config_${e.replace(/-/g,"_").toLowerCase()}`,$h=e=>Array.isArray(e)?e.map(t=>$h(t)).join(`
90
85
 
91
- `):e==null||e===!1?"":typeof e=="object"?null:String(e),Nw=(e,t)=>!Array.isArray(t)||!Array.isArray(e)?e===t:w3(e,t),w3=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},Bw=(e,t,r)=>{let n=Sh(r),i=S3(t,n);i&&n!==null&&(e[i]=n)},C3=e=>{let{env:t,defaults:r,definitions:n,list:[i,s]}=e;t.INIT_CWD=process.cwd();let o=new Set(Object.keys(i)),a=new Set(Object.keys(s));for(let u in i){let{deprecated:c,envExport:f=!0}=n[u]||{};c||f===!1||(Nw(r[u],i[u])?Nw(s[u],i[u])||Bw(t,u,i[u]):a.has(u)&&!o.has(u)||Bw(t,u,i[u]))}t.HOME=e.home,t.npm_config_global_prefix=e.globalPrefix,t.npm_config_local_prefix=e.localPrefix,i.editor&&(t.EDITOR=i.editor),i["node-options"]&&(t.NODE_OPTIONS=i["node-options"]),M.main&&M.main.filename&&(t.npm_execpath=M.main.filename),t.NODE=t.npm_node_execpath=e.execPath};$w.exports=C3});var Vw=F((g8,zw)=>{var _3=mE(),jw=SE(),pi=uf(),x3=yA(),b3=R1(),O3=Ff(),hr=P1(),qw=process.getuid&&process.getuid(),R3=process.getgid&&process.getgid(),{resolve:pn,dirname:ba,join:F3}=M("path"),{homedir:k3}=M("os"),{promisify:Ei}=M("util"),Ai=M("fs"),P3=Ei(Ai.readFile),D3=Ei(Ai.writeFile),T3=Ei(Ai.chmod),I3=Ei(Ai.chown),L3=Ei(Ai.unlink),Oa=Ei(Ai.stat),Ra=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Hw=(e,t,r)=>{Object.defineProperty(e,t,{get:r,set(n){Object.defineProperty(e,t,{value:n,configurable:!0,writable:!0,enumerable:!0})},configurable:!0,enumerable:!0})},vs=xa(),gn=Rw(),N3=Eh(),B3=Dw(),$3=Lw(),M3=Mw(),Yw=new Set(["global","user","project"]),Es=new Set(["default","builtin",...Yw,"env","cli"]),wh=Symbol("loaded"),lt=Symbol("get"),Gw=Symbol("find"),gi=Symbol("loadObject"),As=Symbol("loadFile"),Ch=Symbol("checkDeprecated"),Uw=Symbol("flatten"),mn=Symbol("flatOptions"),_h=class{static get typeDefs(){return vs}constructor({definitions:t,shorthands:r,flatten:n,npmPath:i,env:s=process.env,argv:o=process.argv,platform:a=process.platform,execPath:u=process.execPath,cwd:c=process.cwd()}){this.definitions=t;let f={},l={};this.deprecated={};for(let[g,S]of Object.entries(t))l[g]=S.default,f[g]=S.type,S.deprecated&&(this.deprecated[g]=S.deprecated.trim().replace(/\n +/,`
92
- `));this[mn]=null,this[Uw]=n,this.types=f,this.shorthands=r,this.defaults=l,this.npmPath=i,this.argv=o,this.env=s,this.execPath=u,this.platform=a,this.cwd=c,this.globalPrefix=null,this.localPrefix=null,this.home=null;let h=[...Es];this.data=new Map;let d=null;for(let g of h)this.data.set(g,d=new xh(d));this.data.set=()=>{throw new Error("cannot change internal config data structure")},this.data.delete=()=>{throw new Error("cannot change internal config data structure")},this.sources=new Map([]),this.list=[];for(let{data:g}of this.data.values())this.list.unshift(g);Object.freeze(this.list),this[wh]=!1}get loaded(){return this[wh]}get prefix(){return this[lt]("global")?this.globalPrefix:this.localPrefix}find(t){if(!this.loaded)throw new Error("call config.load() before reading values");return this[Gw](t)}[Gw](t){let r=[...this.data.entries()];for(let n=r.length-1;n>-1;n--){let[i,{data:s}]=r[n];if(Ra(s,t))return i}return null}get(t,r){if(!this.loaded)throw new Error("call config.load() before reading values");return this[lt](t,r)}[lt](t,r=null){if(r!==null&&!Es.has(r))throw new Error("invalid config location param: "+r);let{data:n}=this.data.get(r||"cli");return r===null||Ra(n,t)?n[t]:void 0}set(t,r,n="cli"){if(!this.loaded)throw new Error("call config.load() before setting values");if(!Es.has(n))throw new Error("invalid config location param: "+n);this[Ch](t);let{data:i}=this.data.get(n);i[t]=r,this.data.get(n)[vi]=null,this[mn]=null}get flat(){if(this[mn])return this[mn];process.emit("time","config:load:flatten"),this[mn]={};for(let{data:t}of this.data.values())this[Uw](t,this[mn]);return process.emit("timeEnd","config:load:flatten"),this[mn]}delete(t,r="cli"){if(!this.loaded)throw new Error("call config.load() before deleting values");if(!Es.has(r))throw new Error("invalid config location param: "+r);delete this.data.get(r).data[t]}async load(){if(this.loaded)throw new Error("attempting to load npm config multiple times");process.emit("time","config:load"),process.emit("time","config:load:defaults"),this.loadDefaults(),process.emit("timeEnd","config:load:defaults"),process.emit("time","config:load:builtin"),await this.loadBuiltinConfig(),process.emit("timeEnd","config:load:builtin"),process.emit("time","config:load:cli"),this.loadCLI(),process.emit("timeEnd","config:load:cli"),process.emit("time","config:load:env"),this.loadEnv(),process.emit("timeEnd","config:load:env"),process.emit("time","config:load:project"),await this.loadProjectConfig(),process.emit("timeEnd","config:load:project"),process.emit("time","config:load:user"),await this.loadUserConfig(),process.emit("timeEnd","config:load:user"),process.emit("time","config:load:global"),await this.loadGlobalConfig(),process.emit("timeEnd","config:load:global"),process.emit("time","config:load:validate"),this.validate(),process.emit("timeEnd","config:load:validate"),this[wh]=!0,process.emit("time","config:load:credentials");let t=this.get("registry"),r=this.getCredentialsByURI(t);try{this.setCredentialsByURI(t,r)}catch{}process.emit("timeEnd","config:load:credentials"),this.globalPrefix=this.get("prefix"),process.emit("time","config:load:setEnvs"),this.setEnvs(),process.emit("timeEnd","config:load:setEnvs"),process.emit("timeEnd","config:load")}loadDefaults(){this.loadGlobalPrefix(),this.loadHome(),this[gi]({...this.defaults,prefix:this.globalPrefix},"default","default values");let{data:t}=this.data.get("default");Hw(t,"metrics-registry",()=>this[lt]("registry")),Hw(t,"globalconfig",()=>pn(this[lt]("prefix"),"etc/npmrc"))}loadHome(){if(this.env.HOME)return this.home=this.env.HOME;this.home=k3()}loadGlobalPrefix(){if(this.globalPrefix)throw new Error("cannot load default global prefix more than once");this.env.PREFIX?this.globalPrefix=this.env.PREFIX:this.platform==="win32"?this.globalPrefix=ba(this.execPath):(this.globalPrefix=ba(ba(this.execPath)),this.env.DESTDIR&&(this.globalPrefix=F3(this.env.DESTDIR,this.globalPrefix)))}loadEnv(){let t=Object.create(null);for(let[r,n]of Object.entries(this.env)){if(!/^npm_config_/i.test(r)||n==="")continue;let i=r.slice(11);i.startsWith("//")||(i=i.replace(/(?!^)_/g,"-").toLowerCase()),t[i]=n}this[gi](t,"env","environment")}loadCLI(){pi.invalidHandler=(r,n,i)=>this.invalidHandler(r,n,i,"command line options","cli");let t=pi(this.types,this.shorthands,this.argv);pi.invalidHandler=null,this.parsedArgv=t.argv,delete t.argv,this[gi](t,"cli","command line options")}get valid(){for(let[t,{valid:r}]of this.data.entries())if(r===!1||r===null&&!this.validate(t))return!1;return!0}validate(t){if(t){let r=this.data.get(t);return r[vi]=!0,pi.invalidHandler=(n,i,s)=>this.invalidHandler(n,i,s,r.source,t),pi.clean(r.data,this.types,this.typeDefs),pi.invalidHandler=null,r[vi]}else{let r=!0;for(let[n]of this.data.entries()){if(n==="default"||n==="builtin"||n==="cli")continue;let i=this.validate(n);r=r&&i}return r}}isDefault(t){let[r,...n]=[...Es],i=this.data.get(r).data;return Ra(i,t)&&n.every(s=>{let o=this.data.get(s).data;return!Ra(o,t)})}invalidHandler(t,r,n,i,s){hr.warn("invalid config",t+"="+JSON.stringify(r),`set in ${i}`),this.data.get(s)[vi]=!1,Array.isArray(n)&&(n.includes(vs.url.type)?n=vs.url.type:n.includes(vs.path.type)&&(n=vs.path.type));let o=$3(n),a=o.indexOf(Array)!==-1,u=o.filter(h=>h!==void 0&&h!==Array),f="Must be"+(u.length===1&&a?" one or more":u.length>1&&a?" one or more of:":u.length>1?" one of:":""),l=u.length===1?u[0]:u.filter(h=>h!==Array).map(h=>typeof h=="string"?h:JSON.stringify(h)).join(", ");hr.warn("invalid config",f,l)}[gi](t,r,n,i=null){let s=this.data.get(r);if(s.source){let o=`double-loading "${r}" configs from ${n}, previously loaded from ${s.source}`;throw new Error(o)}if(this.sources.has(n)){let o=`double-loading config "${n}" as "${r}", previously loaded as "${this.sources.get(n)}"`;throw new Error(o)}if(s.source=n,this.sources.set(n,r),i)s.loadError=i,i.code!=="ENOENT"&&hr.verbose("config",`error loading ${r} config`,i);else{s.raw=t;for(let[o,a]of Object.entries(t)){let u=N3(o,this.env),c=this.parseField(a,u);r!=="default"&&this[Ch](u,r,t,[o,a]),s.data[u]=c}}}[Ch](t,r,n,i){this.deprecated[t]&&hr.warn("config",t,this.deprecated[t])}parseField(t,r,n=!1){return B3(t,r,this,n)}async[As](t,r){process.emit("time","config:load:file:"+t),await P3(t,"utf8").then(n=>this[gi](jw.parse(n),r,t),n=>this[gi](null,r,t,n)),process.emit("timeEnd","config:load:file:"+t)}loadBuiltinConfig(){return this[As](pn(this.npmPath,"npmrc"),"builtin")}async loadProjectConfig(){if(await this.loadLocalPrefix(),this[lt]("global")===!0||this[lt]("location")==="global"){this.data.get("project").source="(global mode enabled, ignored)",this.sources.set(this.data.get("project").source,"project");return}let t=pn(this.localPrefix,".npmrc");if(t!==this[lt]("userconfig"))return this[As](t,"project");this.data.get("project").source='(same as "user" config, ignored)',this.sources.set(this.data.get("project").source,"project")}async loadLocalPrefix(){let t=this[lt]("prefix","cli");if(t){this.localPrefix=t;return}let r=this[lt]("workspaces","cli"),n=this[lt]("global")||this[lt]("location")==="global";for(let i of _3(this.cwd)){let s=await Oa(pn(i,"node_modules")).then(a=>a.isDirectory()).catch(()=>!1),o=await Oa(pn(i,"package.json")).then(a=>a.isFile()).catch(()=>!1);if(!this.localPrefix&&(s||o)){if(this.localPrefix=i,r===!1||n)return;continue}if(this.localPrefix&&o){let a=await O3(pn(i,"package.json")).catch(()=>!1);if(!a)continue;let u=await b3({cwd:i,pkg:a});for(let c of u.values())if(c===this.localPrefix){await Oa(pn(this.localPrefix,".npmrc")).then(h=>h.isFile()).catch(()=>!1)&&hr.warn(`ignoring workspace config at ${this.localPrefix}/.npmrc`);let{data:l}=this.data.get("default");l.workspace=[this.localPrefix],this.localPrefix=i,hr.info(`found workspace root at ${this.localPrefix}`);return}}}this.localPrefix||(this.localPrefix=this.cwd)}loadUserConfig(){return this[As](this[lt]("userconfig"),"user")}loadGlobalConfig(){return this[As](this[lt]("globalconfig"),"global")}async save(t){if(!this.loaded)throw new Error("call config.load() before saving");if(!Yw.has(t))throw new Error("invalid config location param: "+t);let r=this.data.get(t);if(r[mi]={...r.data},r[yi]=null,t==="user"){let o=this.get("registry"),a=this.getCredentialsByURI(o);try{this.setCredentialsByURI(o,a)}catch{}}let n=jw.stringify(r.data).trim()+`
93
- `;if(!n.trim()){await L3(r.source).catch(o=>{});return}let i=ba(r.source);if(await x3(i),await D3(r.source,n,"utf8"),qw===0){let o=await Oa(i).catch(()=>null);o&&(o.uid!==qw||o.gid!==R3)&&await I3(r.source,o.uid,o.gid).catch(()=>{})}let s=t==="user"?384:438;await T3(r.source,s)}clearCredentialsByURI(t){let r=gn(t);gn(this.get("registry"))===r&&(this.delete("-authtoken","user"),this.delete("_authToken","user"),this.delete("_authtoken","user"),this.delete("_auth","user"),this.delete("_password","user"),this.delete("username","user")),this.delete(`${r}:_authToken`,"user"),this.delete(`${r}:_auth`,"user"),this.delete(`${r}:_password`,"user"),this.delete(`${r}:username`,"user"),this.delete(`${r}:email`,"user"),this.delete(`${r}:certfile`,"user"),this.delete(`${r}:keyfile`,"user")}setCredentialsByURI(t,{token:r,username:n,password:i,email:s,certfile:o,keyfile:a}){let u=gn(t),c=gn(this.get("registry"));if(c===u&&(this.delete("_password","user"),this.delete("username","user"),this.delete("_auth","user"),this.delete("_authtoken","user"),this.delete("-authtoken","user"),this.delete("_authToken","user")),u===c&&(s=s||this.get("email","user")||this.get(`${u}:email`,"user"),s&&this.set("email",s,"user")),this.delete(`${u}:always-auth`,"user"),this.delete(`${u}:email`,"user"),o&&a&&(this.set(`${u}:certfile`,o,"user"),this.set(`${u}:keyfile`,a,"user")),r)this.set(`${u}:_authToken`,r,"user"),this.delete(`${u}:_password`,"user"),this.delete(`${u}:username`,"user");else if(n||i){if(!n)throw new Error("must include username");if(!i)throw new Error("must include password");this.delete(`${u}:_authToken`,"user"),this.set(`${u}:username`,n,"user");let f=Buffer.from(i,"utf8").toString("base64");this.set(`${u}:_password`,f,"user")}else if(!o||!a)throw new Error("No credentials to set.")}getCredentialsByURI(t){let r=gn(t),n={},i=["`_auth`, `_authToken`, `username` and `_password` must be scoped to a registry.","see `npm help npmrc` for more information."].join(" "),s=this.get(`${r}:email`)||this.get("email");s&&(n.email=s);let o=this.get(`${r}:certfile`),a=this.get(`${r}:keyfile`);o&&a&&(n.certfile=o,n.keyfile=a);let u=gn(this.get("registry"))&&this.get("_authToken"),c=this.get(`${r}:_authToken`)||u;if(c)return c===u&&hr.warn("config",i),n.token=c,n;let f=this.get(`${r}:username`),l=this.get(`${r}:_password`);if(f&&l){n.username=f,n.password=Buffer.from(l,"base64").toString("utf8");let N=`${n.username}:${n.password}`;return n.auth=Buffer.from(N,"utf8").toString("base64"),n}let h=this.get(`${r}:_auth`);if(h){let D=Buffer.from(h,"base64").toString("utf8").split(":");return n.username=D.shift(),n.password=D.join(":"),n.auth=h,n}let d=gn(this.get("registry"));if(r!==d)return n;let g=this.get("username"),S=this.get("_password");if(g&&S){hr.warn("config",i),n.username=g,n.password=Buffer.from(S,"base64").toString("utf8");let N=`${n.username}:${n.password}`;return n.auth=Buffer.from(N,"utf8").toString("base64"),n}let w=this.get("_auth");if(!w)return n;hr.warn("config",i);let _=Buffer.from(w,"base64").toString("utf8").split(":");return n.username=_.shift(),n.password=_.join(":"),n.auth=w,n}setEnvs(){M3(this)}},Ww=Symbol("data"),mi=Symbol("raw"),yi=Symbol("loadError"),Fa=Symbol("source"),vi=Symbol("valid"),xh=class{constructor(t){this[Ww]=Object.create(t&&t.data),this[Fa]=null,this[yi]=null,this[mi]=null,this[vi]=!0}get data(){return this[Ww]}get valid(){return this[vi]}set source(t){if(this[Fa])throw new Error("cannot set ConfigData source more than once");this[Fa]=t}get source(){return this[Fa]}set loadError(t){if(this[yi]||this[mi])throw new Error("cannot set ConfigData loadError after load");this[yi]=t}get loadError(){return this[yi]}set raw(t){if(this[mi]||this[yi])throw new Error("cannot set ConfigData raw after load");this[mi]=t}get raw(){return this[mi]}};zw.exports=_h});var uv=kh(nv(),1);import{join as ov}from"node:path";import bT from"node:fs/promises";import av from"node:path";import{homedir as OT}from"node:os";var CT=e=>{try{e.startsWith("https://")||(e="https://"+e);let t=new URL(e),r=t.hostname,n=t.pathname;if(r.endsWith("dev.azure.com")){let i=n.split("/").filter(Boolean);if(i.length>=2)return{organization:i[0],project:i[1]};throw new Error("Not enough segments in path for a valid organization and project extraction.")}if(r.endsWith("visualstudio.com")){let i=r.split(".")[0],s=n.split("/").filter(Boolean);if(i&&s.length>=1)return{organization:i,project:s[0]};throw new Error("Not enough segments in path or missing subdomain for a valid organization and project extraction.")}throw new Error("URL format not recognized or does not contain enough information.")}catch{throw new Error("Invalid URL or unsupported format")}},ei=(e,t="")=>{try{let{organization:r}=CT(e);return r}catch{return t}};function Tr(e){return Buffer.from(e||"").toString("base64")}var Xo=e=>Buffer.from(e,"base64").toString("utf8");import _T from"https";var xT={port:443,method:"GET"},iv=async e=>new Promise((t,r)=>{let n={...xT,...e};_T.request(n,s=>{let o="",a={},u=s.statusCode===200;s.on("data",c=>{o+=c}),s.on("end",()=>{o&&n?.headers?.Accept==="application/json"&&(a=JSON.parse(o.toString().trim())),u?t(a||o):(a&&(a={...a,statusCode:s.statusCode}),r(a||o||new Error(`Error code: ${s.statusCode}.`)))}),s.on("error",c=>{r(new Error(c))})}).end()});var sv=async({password:e,organization:t})=>{let r=`Basic ${Tr(`.:${e}`)}`,n={hostname:"feeds.dev.azure.com",port:443,path:`/${t}/_apis/packaging/feeds/1?api-version=6.1-preview.1`,method:"GET",headers:{Accept:"application/json",Authorization:r}};try{await iv(n)}catch(i){if(i.statusCode===404)return;throw i}};var cv="me",lv="me@example.com",ti=class{constructor(t,r,n){this.id=t;this.workspaceFileName=r;let i;if(n&&av.basename(n)===this.workspaceFileName)i=av.resolve(n);else{let o=(0,uv.getWorkspaceRoot)(process.cwd())||"";i=ov(o,this.workspaceFileName)}this.workspaceFilePath=i;let s=process.env.HOME||process.env.USERPROFILE||OT()||"";this.userFilePath=ov(s,r),this.feeds=new Map}async isSupportedInRepo(){try{await bT.access(this.workspaceFilePath)}catch{return!1}return!0}async validateAllUsedFeeds(){await this.prepUserFile();let t=[],r=await this.getWorkspaceRegistries(),n=await this.getUserFeeds();for(let i of r){let s=n.get(i);if(s){let o=!0;try{await sv({password:s.authToken||"",organization:s.adoOrganization})}catch{o=!1}t.push({feed:s,isValid:o,fileProvider:this})}else t.push({feed:{registry:i,adoOrganization:ei(i)},isValid:!1,fileProvider:this})}return t}};function bv(e){return typeof e>"u"||e===null}function RT(e){return typeof e=="object"&&e!==null}function FT(e){return Array.isArray(e)?e:bv(e)?[]:[e]}function kT(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function PT(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function DT(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var TT=bv,IT=RT,LT=FT,NT=PT,BT=DT,$T=kT,Be={isNothing:TT,isObject:IT,toArray:LT,repeat:NT,isNegativeZero:BT,extend:$T};function Ov(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
86
+ `):e==null||e===!1?"":typeof e=="object"?null:String(e),Gw=(e,t)=>!Array.isArray(t)||!Array.isArray(e)?e===t:tM(e,t),tM=(e,t)=>{if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0},Uw=(e,t,r)=>{let n=$h(r),i=eM(t,n);i&&n!==null&&(e[i]=n)},rM=e=>{let{env:t,defaults:r,definitions:n,list:[i,s]}=e;t.INIT_CWD=process.cwd();let o=new Set(Object.keys(i)),a=new Set(Object.keys(s));for(let c in i){let{deprecated:u,envExport:f=!0}=n[c]||{};u||f===!1||(Gw(r[c],i[c])?Gw(s[c],i[c])||Uw(t,c,i[c]):a.has(c)&&!o.has(c)||Uw(t,c,i[c]))}t.HOME=e.home,t.npm_config_global_prefix=e.globalPrefix,t.npm_config_local_prefix=e.localPrefix,i.editor&&(t.EDITOR=i.editor),i["node-options"]&&(t.NODE_OPTIONS=i["node-options"]),t.npm_execpath=e.npmBin,t.NODE=t.npm_node_execpath=e.execPath};Hw.exports=rM});var Vw=R((m7,zw)=>{"use strict";var Bh=class extends Error{constructor(t){let r="Invalid auth configuration found: ";r+=t.map(n=>{if(n.action==="delete")return`\`${n.key}\` is not allowed in ${n.where} config`;if(n.action==="rename")return`\`${n.from}\` must be renamed to \`${n.to}\` in ${n.where} config`}).join(", "),r+="\nPlease run `npm config fix` to repair your configuration.`",super(r),this.code="ERR_INVALID_AUTH",this.problems=t}};zw.exports={ErrInvalidAuth:Bh}});var Jw=R((y7,Xw)=>{var nM=Ka(),Kw=e=>{if(!e||typeof e!="function"&&typeof e!="object")return e;if(Array.isArray(e))return e.map(t=>Kw(t));for(let{type:t,description:r}of Object.values(nM))if(t===e)return r||t;return e};Xw.exports=e=>[].concat(Kw(e)).filter(t=>t!==void 0)});var jh=R((v7,tS)=>{"use strict";var iM=Symbol.for("indent"),sM=Symbol.for("newline"),oM=`
87
+ `,aM=" ",uM=/^\uFEFF/,cM=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,lM=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,Qw=/^Unexpected token '?(.)'?(,)? /i,fM=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return`0x${t.length%2?"0":""}${t}`},Zw=e=>String(e).replace(uM,""),Mh=(e,t,r=0)=>({message:`${e} while parsing ${t}`,position:r}),hM=(e,t,r=20)=>{let n=e.message;if(!t)return Mh(n,"empty string");let i=n.match(Qw),s=n.match(/ position\s+(\d+)/i);i&&(n=n.replace(Qw,`Unexpected token ${JSON.stringify(i[1])} (${fM(i[1])})$2 `));let o;if(s?o=+s[1]:n.match(/^Unexpected end of JSON.*/i)&&(o=t.length-1),o==null)return Mh(n,`'${t.slice(0,r*2)}'`);let a=o<=r?0:o-r,c=o+r>=t.length?t.length:o+r,u=`${a?"...":""}${t.slice(a,c)}${c===t.length?"":"..."}`;return Mh(n,`${t===u?"":"near "}${JSON.stringify(u)}`,o)},Xa=class extends SyntaxError{constructor(t,r,n,i){let s=hM(t,r,n);super(s.message),Object.assign(this,s),this.code="EJSONPARSE",this.systemError=t,Error.captureStackTrace(this,i||this.constructor)}get name(){return this.constructor.name}set name(t){}get[Symbol.toStringTag](){return this.constructor.name}},eS=(e,t)=>{let r=JSON.parse(e,t);if(r&&typeof r=="object"){let n=e.match(lM)||e.match(cM)||[null,"",""];r[sM]=n[1]??oM,r[iM]=n[2]??aM}return r},Ja=(e,t,r)=>{let n=Zw(e);try{return eS(n,t)}catch(i){if(typeof e!="string"&&!Buffer.isBuffer(e)){let s=Array.isArray(e)&&e.length===0?"an empty array":String(e);throw Object.assign(new TypeError(`Cannot parse ${s}`),{code:"EJSONPARSE",systemError:i})}throw new Xa(i,n,r,Ja)}};tS.exports=Ja;Ja.JSONParseError=Xa;Ja.noExceptions=(e,t)=>{try{return eS(Zw(e),t)}catch{}}});var iS=R((A7,nS)=>{var qh=new Set(["dependencies","optionalDependencies","devDependencies","peerDependencies"]),pM=e=>{for(let t of qh)e&&e[t]&&(e[t]=Object.keys(e[t]).sort((r,n)=>r.localeCompare(n,"en")).reduce((r,n)=>(r[n]=e[t][n],r),{}));return e},rS=({content:e,originalContent:t})=>{let r=pM({...e});if(r.dependencies&&r.optionalDependencies)for(let a of Object.keys(r.optionalDependencies))delete r.dependencies[a];let n={...t};for(let a of qh)r[a]&&(n[a]=r[a]),r[a]&&typeof r=="object"&&Object.keys(r[a]).length===0&&delete n[a];let{dependencies:i,peerDependencies:s}=t||{},{peerDependencies:o}=n;if(i&&s&&o)for(let a of Object.keys(s))i[a]!==void 0&&o[a]!==void 0&&(n.dependencies=n.dependencies||{},n.dependencies[a]=o[a]);return n};rS.knownKeys=qh;nS.exports=rS});var oS=R((E7,sS)=>{var dM=({content:e,originalContent:t={}})=>{let r=e.scripts;if(!r)return t;if(Object.entries(r).some(([i,s])=>typeof i!="string"||typeof s!="string"))throw Object.assign(new TypeError("package.json scripts should be a key-value pair of strings."),{code:"ESCRIPTSINVALID"});return{...t,scripts:{...r}}};sS.exports=dM});var uS=R((w7,aS)=>{var gM=({content:e,originalContent:t={}})=>{let r=e.workspaces;if(!r)return t;let n=()=>r.some(i=>typeof i!="string");if(!r.length||n())throw Object.assign(new TypeError("workspaces should be an array of strings."),{code:"EWORKSPACESINVALID"});return{...t,workspaces:[...r]}};aS.exports=gM});var Wh=R((S7,cS)=>{var mM=Ln(),yM=(e,t)=>{let r=mM(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};cS.exports=yM});var eu=R(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.LRUCache=void 0;var Li=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,fS=new Set,Gh=typeof process=="object"&&process?process:{},hS=(e,t,r,n)=>{typeof Gh.emitWarning=="function"?Gh.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},Qa=globalThis.AbortController,lS=globalThis.AbortSignal;if(typeof Qa>"u"){lS=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},Qa=class{constructor(){t()}signal=new lS;abort(n){if(!this.signal.aborted){this.signal.reason=n,this.signal.aborted=!0;for(let i of this.signal._onabort)i(n);this.signal.onabort?.(n)}}};let e=Gh.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,hS("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",t))}}var vM=e=>!fS.has(e),x7=Symbol("type"),pn=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),pS=e=>pn(e)?e<=Math.pow(2,8)?Uint8Array:e<=Math.pow(2,16)?Uint16Array:e<=Math.pow(2,32)?Uint32Array:e<=Number.MAX_SAFE_INTEGER?Ti:null:null,Ti=class extends Array{constructor(t){super(t),this.fill(0)}},Uh=class e{heap;length;static#e=!1;static create(t){let r=pS(t);if(!r)return[];e.#e=!0;let n=new e(t,r);return e.#e=!1,n}constructor(t,r){if(!e.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(t),this.length=0}push(t){this.heap[this.length++]=t}pop(){return this.heap[--this.length]}},Hh=class e{#e;#r;#t;#n;#o;#h;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#l;#a;#u;#s;#y;#v;#d;#p;#b;#m;#C;#x;#E;#w;#S;#g;static unsafeExposeInternals(t){return{starts:t.#x,ttls:t.#E,sizes:t.#C,keyMap:t.#a,keyList:t.#u,valList:t.#s,next:t.#y,prev:t.#v,get head(){return t.#d},get tail(){return t.#p},free:t.#b,isBackgroundFetch:r=>t.#f(r),backgroundFetch:(r,n,i,s)=>t.#B(r,n,i,s),moveToTail:r=>t.#j(r),indexes:r=>t.#O(r),rindexes:r=>t.#R(r),isStale:r=>t.#A(r)}}get max(){return this.#e}get maxSize(){return this.#r}get calculatedSize(){return this.#l}get size(){return this.#c}get fetchMethod(){return this.#o}get memoMethod(){return this.#h}get dispose(){return this.#t}get disposeAfter(){return this.#n}constructor(t){let{max:r=0,ttl:n,ttlResolution:i=1,ttlAutopurge:s,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:c,dispose:u,disposeAfter:f,noDisposeOnSet:l,noUpdateTTL:h,maxSize:p=0,maxEntrySize:d=0,sizeCalculation:m,fetchMethod:v,memoMethod:P,noDeleteOnFetchRejection:C,noDeleteOnStaleGet:F,allowStaleOnFetchRejection:D,allowStaleOnFetchAbort:E,ignoreFetchAbort:O}=t;if(r!==0&&!pn(r))throw new TypeError("max option must be a nonnegative integer");let k=r?pS(r):Array;if(!k)throw new Error("invalid max value: "+r);if(this.#e=r,this.#r=p,this.maxEntrySize=d||this.#r,this.sizeCalculation=m,this.sizeCalculation){if(!this.#r&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(P!==void 0&&typeof P!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#h=P,v!==void 0&&typeof v!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=v,this.#S=!!v,this.#a=new Map,this.#u=new Array(r).fill(void 0),this.#s=new Array(r).fill(void 0),this.#y=new k(r),this.#v=new k(r),this.#d=0,this.#p=0,this.#b=Uh.create(r),this.#c=0,this.#l=0,typeof u=="function"&&(this.#t=u),typeof f=="function"?(this.#n=f,this.#m=[]):(this.#n=void 0,this.#m=void 0),this.#w=!!this.#t,this.#g=!!this.#n,this.noDisposeOnSet=!!l,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!C,this.allowStaleOnFetchRejection=!!D,this.allowStaleOnFetchAbort=!!E,this.ignoreFetchAbort=!!O,this.maxEntrySize!==0){if(this.#r!==0&&!pn(this.#r))throw new TypeError("maxSize must be a positive integer if specified");if(!pn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#k()}if(this.allowStale=!!c,this.noDeleteOnStaleGet=!!F,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=pn(i)||i===0?i:1,this.ttlAutopurge=!!s,this.ttl=n||0,this.ttl){if(!pn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#_()}if(this.#e===0&&this.ttl===0&&this.#r===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#r){let _="LRU_CACHE_UNBOUNDED";vM(_)&&(fS.add(_),hS("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",_,e))}}getRemainingTTL(t){return this.#a.has(t)?1/0:0}#_(){let t=new Ti(this.#e),r=new Ti(this.#e);this.#E=t,this.#x=r,this.#F=(s,o,a=Li.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let c=setTimeout(()=>{this.#A(s)&&this.#D(this.#u[s],"expire")},o+1);c.unref&&c.unref()}},this.#P=s=>{r[s]=t[s]!==0?Li.now():0},this.#i=(s,o)=>{if(t[o]){let a=t[o],c=r[o];if(!a||!c)return;s.ttl=a,s.start=c,s.now=n||i();let u=s.now-c;s.remainingTTL=a-u}};let n=0,i=()=>{let s=Li.now();if(this.ttlResolution>0){n=s;let o=setTimeout(()=>n=0,this.ttlResolution);o.unref&&o.unref()}return s};this.getRemainingTTL=s=>{let o=this.#a.get(s);if(o===void 0)return 0;let a=t[o],c=r[o];if(!a||!c)return 1/0;let u=(n||i())-c;return a-u},this.#A=s=>{let o=r[s],a=t[s];return!!a&&!!o&&(n||i())-o>a}}#P=()=>{};#i=()=>{};#F=()=>{};#A=()=>!1;#k(){let t=new Ti(this.#e);this.#l=0,this.#C=t,this.#L=r=>{this.#l-=t[r],t[r]=0},this.#N=(r,n,i,s)=>{if(this.#f(n))return 0;if(!pn(i))if(s){if(typeof s!="function")throw new TypeError("sizeCalculation must be a function");if(i=s(n,r),!pn(i))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return i},this.#T=(r,n,i)=>{if(t[r]=n,this.#r){let s=this.#r-t[r];for(;this.#l>s;)this.#$(!0)}this.#l+=t[r],i&&(i.entrySize=n,i.totalCalculatedSize=this.#l)}}#L=t=>{};#T=(t,r,n)=>{};#N=(t,r,n,i)=>{if(n||i)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#O({allowStale:t=this.allowStale}={}){if(this.#c)for(let r=this.#p;!(!this.#I(r)||((t||!this.#A(r))&&(yield r),r===this.#d));)r=this.#v[r]}*#R({allowStale:t=this.allowStale}={}){if(this.#c)for(let r=this.#d;!(!this.#I(r)||((t||!this.#A(r))&&(yield r),r===this.#p));)r=this.#y[r]}#I(t){return t!==void 0&&this.#a.get(this.#u[t])===t}*entries(){for(let t of this.#O())this.#s[t]!==void 0&&this.#u[t]!==void 0&&!this.#f(this.#s[t])&&(yield[this.#u[t],this.#s[t]])}*rentries(){for(let t of this.#R())this.#s[t]!==void 0&&this.#u[t]!==void 0&&!this.#f(this.#s[t])&&(yield[this.#u[t],this.#s[t]])}*keys(){for(let t of this.#O()){let r=this.#u[t];r!==void 0&&!this.#f(this.#s[t])&&(yield r)}}*rkeys(){for(let t of this.#R()){let r=this.#u[t];r!==void 0&&!this.#f(this.#s[t])&&(yield r)}}*values(){for(let t of this.#O())this.#s[t]!==void 0&&!this.#f(this.#s[t])&&(yield this.#s[t])}*rvalues(){for(let t of this.#R())this.#s[t]!==void 0&&!this.#f(this.#s[t])&&(yield this.#s[t])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(let n of this.#O()){let i=this.#s[n],s=this.#f(i)?i.__staleWhileFetching:i;if(s!==void 0&&t(s,this.#u[n],this))return this.get(this.#u[n],r)}}forEach(t,r=this){for(let n of this.#O()){let i=this.#s[n],s=this.#f(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#u[n],this)}}rforEach(t,r=this){for(let n of this.#R()){let i=this.#s[n],s=this.#f(i)?i.__staleWhileFetching:i;s!==void 0&&t.call(r,s,this.#u[n],this)}}purgeStale(){let t=!1;for(let r of this.#R({allowStale:!0}))this.#A(r)&&(this.#D(this.#u[r],"expire"),t=!0);return t}info(t){let r=this.#a.get(t);if(r===void 0)return;let n=this.#s[r],i=this.#f(n)?n.__staleWhileFetching:n;if(i===void 0)return;let s={value:i};if(this.#E&&this.#x){let o=this.#E[r],a=this.#x[r];if(o&&a){let c=o-(Li.now()-a);s.ttl=c,s.start=Date.now()}}return this.#C&&(s.size=this.#C[r]),s}dump(){let t=[];for(let r of this.#O({allowStale:!0})){let n=this.#u[r],i=this.#s[r],s=this.#f(i)?i.__staleWhileFetching:i;if(s===void 0||n===void 0)continue;let o={value:s};if(this.#E&&this.#x){o.ttl=this.#E[r];let a=Li.now()-this.#x[r];o.start=Math.floor(Date.now()-a)}this.#C&&(o.size=this.#C[r]),t.unshift([n,o])}return t}load(t){this.clear();for(let[r,n]of t){if(n.start){let i=Date.now()-n.start;n.start=Li.now()-i}this.set(r,n.value,n)}}set(t,r,n={}){if(r===void 0)return this.delete(t),this;let{ttl:i=this.ttl,start:s,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:c}=n,{noUpdateTTL:u=this.noUpdateTTL}=n,f=this.#N(t,r,n.size||0,a);if(this.maxEntrySize&&f>this.maxEntrySize)return c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this.#D(t,"set"),this;let l=this.#c===0?void 0:this.#a.get(t);if(l===void 0)l=this.#c===0?this.#p:this.#b.length!==0?this.#b.pop():this.#c===this.#e?this.#$(!1):this.#c,this.#u[l]=t,this.#s[l]=r,this.#a.set(t,l),this.#y[this.#p]=l,this.#v[l]=this.#p,this.#p=l,this.#c++,this.#T(l,f,c),c&&(c.set="add"),u=!1;else{this.#j(l);let h=this.#s[l];if(r!==h){if(this.#S&&this.#f(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:p}=h;p!==void 0&&!o&&(this.#w&&this.#t?.(p,t,"set"),this.#g&&this.#m?.push([p,t,"set"]))}else o||(this.#w&&this.#t?.(h,t,"set"),this.#g&&this.#m?.push([h,t,"set"]));if(this.#L(l),this.#T(l,f,c),this.#s[l]=r,c){c.set="replace";let p=h&&this.#f(h)?h.__staleWhileFetching:h;p!==void 0&&(c.oldValue=p)}}else c&&(c.set="update")}if(i!==0&&!this.#E&&this.#_(),this.#E&&(u||this.#F(l,i,s),c&&this.#i(c,l)),!o&&this.#g&&this.#m){let h=this.#m,p;for(;p=h?.shift();)this.#n?.(...p)}return this}pop(){try{for(;this.#c;){let t=this.#s[this.#d];if(this.#$(!0),this.#f(t)){if(t.__staleWhileFetching)return t.__staleWhileFetching}else if(t!==void 0)return t}}finally{if(this.#g&&this.#m){let t=this.#m,r;for(;r=t?.shift();)this.#n?.(...r)}}}#$(t){let r=this.#d,n=this.#u[r],i=this.#s[r];return this.#S&&this.#f(i)?i.__abortController.abort(new Error("evicted")):(this.#w||this.#g)&&(this.#w&&this.#t?.(i,n,"evict"),this.#g&&this.#m?.push([i,n,"evict"])),this.#L(r),t&&(this.#u[r]=void 0,this.#s[r]=void 0,this.#b.push(r)),this.#c===1?(this.#d=this.#p=0,this.#b.length=0):this.#d=this.#y[r],this.#a.delete(n),this.#c--,r}has(t,r={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:i}=r,s=this.#a.get(t);if(s!==void 0){let o=this.#s[s];if(this.#f(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#A(s))i&&(i.has="stale",this.#i(i,s));else return n&&this.#P(s),i&&(i.has="hit",this.#i(i,s)),!0}else i&&(i.has="miss");return!1}peek(t,r={}){let{allowStale:n=this.allowStale}=r,i=this.#a.get(t);if(i===void 0||!n&&this.#A(i))return;let s=this.#s[i];return this.#f(s)?s.__staleWhileFetching:s}#B(t,r,n,i){let s=r===void 0?void 0:this.#s[r];if(this.#f(s))return s;let o=new Qa,{signal:a}=n;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let c={signal:o.signal,options:n,context:i},u=(m,v=!1)=>{let{aborted:P}=o.signal,C=n.ignoreFetchAbort&&m!==void 0;if(n.status&&(P&&!v?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,C&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),P&&!C&&!v)return l(o.signal.reason);let F=p;return this.#s[r]===p&&(m===void 0?F.__staleWhileFetching?this.#s[r]=F.__staleWhileFetching:this.#D(t,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.set(t,m,c.options))),m},f=m=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=m),l(m)),l=m=>{let{aborted:v}=o.signal,P=v&&n.allowStaleOnFetchAbort,C=P||n.allowStaleOnFetchRejection,F=C||n.noDeleteOnFetchRejection,D=p;if(this.#s[r]===p&&(!F||D.__staleWhileFetching===void 0?this.#D(t,"fetch"):P||(this.#s[r]=D.__staleWhileFetching)),C)return n.status&&D.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),D.__staleWhileFetching;if(D.__returned===D)throw m},h=(m,v)=>{let P=this.#o?.(t,s,c);P&&P instanceof Promise&&P.then(C=>m(C===void 0?void 0:C),v),o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(m(void 0),n.allowStaleOnFetchAbort&&(m=C=>u(C,!0)))})};n.status&&(n.status.fetchDispatched=!0);let p=new Promise(h).then(u,f),d=Object.assign(p,{__abortController:o,__staleWhileFetching:s,__returned:void 0});return r===void 0?(this.set(t,d,{...c.options,status:void 0}),r=this.#a.get(t)):this.#s[r]=d,d}#f(t){if(!this.#S)return!1;let r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof Qa}async fetch(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:c=0,sizeCalculation:u=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:l=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:p=this.ignoreFetchAbort,allowStaleOnFetchAbort:d=this.allowStaleOnFetchAbort,context:m,forceRefresh:v=!1,status:P,signal:C}=r;if(!this.#S)return P&&(P.fetch="get"),this.get(t,{allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,status:P});let F={allowStale:n,updateAgeOnGet:i,noDeleteOnStaleGet:s,ttl:o,noDisposeOnSet:a,size:c,sizeCalculation:u,noUpdateTTL:f,noDeleteOnFetchRejection:l,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:d,ignoreFetchAbort:p,status:P,signal:C},D=this.#a.get(t);if(D===void 0){P&&(P.fetch="miss");let E=this.#B(t,D,F,m);return E.__returned=E}else{let E=this.#s[D];if(this.#f(E)){let b=n&&E.__staleWhileFetching!==void 0;return P&&(P.fetch="inflight",b&&(P.returnedStale=!0)),b?E.__staleWhileFetching:E.__returned=E}let O=this.#A(D);if(!v&&!O)return P&&(P.fetch="hit"),this.#j(D),i&&this.#P(D),P&&this.#i(P,D),E;let k=this.#B(t,D,F,m),T=k.__staleWhileFetching!==void 0&&n;return P&&(P.fetch=O?"stale":"refresh",T&&O&&(P.returnedStale=!0)),T?k.__staleWhileFetching:k.__returned=k}}async forceFetch(t,r={}){let n=await this.fetch(t,r);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(t,r={}){let n=this.#h;if(!n)throw new Error("no memoMethod provided to constructor");let{context:i,forceRefresh:s,...o}=r,a=this.get(t,o);if(!s&&a!==void 0)return a;let c=n(t,a,{options:o,context:i});return this.set(t,c,o),c}get(t,r={}){let{allowStale:n=this.allowStale,updateAgeOnGet:i=this.updateAgeOnGet,noDeleteOnStaleGet:s=this.noDeleteOnStaleGet,status:o}=r,a=this.#a.get(t);if(a!==void 0){let c=this.#s[a],u=this.#f(c);return o&&this.#i(o,a),this.#A(a)?(o&&(o.get="stale"),u?(o&&n&&c.__staleWhileFetching!==void 0&&(o.returnedStale=!0),n?c.__staleWhileFetching:void 0):(s||this.#D(t,"expire"),o&&n&&(o.returnedStale=!0),n?c:void 0)):(o&&(o.get="hit"),u?c.__staleWhileFetching:(this.#j(a),i&&this.#P(a),c))}else o&&(o.get="miss")}#M(t,r){this.#v[r]=t,this.#y[t]=r}#j(t){t!==this.#p&&(t===this.#d?this.#d=this.#y[t]:this.#M(this.#v[t],this.#y[t]),this.#M(this.#p,t),this.#p=t)}delete(t){return this.#D(t,"delete")}#D(t,r){let n=!1;if(this.#c!==0){let i=this.#a.get(t);if(i!==void 0)if(n=!0,this.#c===1)this.#q(r);else{this.#L(i);let s=this.#s[i];if(this.#f(s)?s.__abortController.abort(new Error("deleted")):(this.#w||this.#g)&&(this.#w&&this.#t?.(s,t,r),this.#g&&this.#m?.push([s,t,r])),this.#a.delete(t),this.#u[i]=void 0,this.#s[i]=void 0,i===this.#p)this.#p=this.#v[i];else if(i===this.#d)this.#d=this.#y[i];else{let o=this.#v[i];this.#y[o]=this.#y[i];let a=this.#y[i];this.#v[a]=this.#v[i]}this.#c--,this.#b.push(i)}}if(this.#g&&this.#m?.length){let i=this.#m,s;for(;s=i?.shift();)this.#n?.(...s)}return n}clear(){return this.#q("delete")}#q(t){for(let r of this.#R({allowStale:!0})){let n=this.#s[r];if(this.#f(n))n.__abortController.abort(new Error("deleted"));else{let i=this.#u[r];this.#w&&this.#t?.(n,i,t),this.#g&&this.#m?.push([n,i,t])}}if(this.#a.clear(),this.#s.fill(void 0),this.#u.fill(void 0),this.#E&&this.#x&&(this.#E.fill(0),this.#x.fill(0)),this.#C&&this.#C.fill(0),this.#d=0,this.#p=0,this.#b.length=0,this.#l=0,this.#c=0,this.#g&&this.#m){let r=this.#m,n;for(;n=r?.shift();)this.#n?.(...n)}}};Za.LRUCache=Hh});var mS=R((O7,gS)=>{"use strict";var Ae=(...e)=>e.every(t=>t)?e.join(""):"",je=e=>e?encodeURIComponent(e):"",dS=e=>e.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),AM={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${Ae("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${Ae("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${Ae("/",i,"/",je(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${Ae("/",i,"/",je(n))}`,browsetreetemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${je(n||"HEAD")}/${s}${Ae("#",a(o||""))}`,browseblobtemplate:({domain:e,user:t,project:r,committish:n,blobpath:i,path:s,fragment:o,hashformat:a})=>`https://${e}/${t}/${r}/${i}/${je(n||"HEAD")}/${s}${Ae("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${Ae("/",n,"/",je(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${Ae(e,"@")}${t}/${r}/${n}.git${Ae("#",i)}`,filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/raw/${je(n||"HEAD")}/${i}`,shortcuttemplate:({type:e,user:t,project:r,committish:n})=>`${e}:${t}/${r}${Ae("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${Ae("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:dS},dn={};dn.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:e,user:t,project:r,committish:n,path:i})=>`https://${Ae(e,"@")}raw.githubusercontent.com/${t}/${r}/${je(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${Ae(e,"@")}${t}/${r}/${n}.git${Ae("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://codeload.${e}/${t}/${r}/tar.gz/${je(n||"HEAD")}`,extract:e=>{let[,t,r,n,i]=e.pathname.split("/",5);if(!(n&&n!=="tree")&&(n||(i=e.hash.slice(1)),r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:i}}};dn.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:e,user:t,project:r,committish:n,treepath:i,path:s,editpath:o})=>`https://${e}/${t}/${r}${Ae("/",i,"/",je(n||"HEAD"),"/",s,o)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/get/${je(n||"HEAD")}.tar.gz`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["get"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};dn.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${Ae(e,"@")}${t}/${r}/${n}.git${Ae("#",i)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/repository/archive.tar.gz?ref=${je(n||"HEAD")}`,extract:e=>{let t=e.pathname.slice(1);if(t.includes("/-/")||t.includes("/archive.tar.gz"))return;let r=t.split("/"),n=r.pop();n.endsWith(".git")&&(n=n.slice(0,-4));let i=r.join("/");if(!(!i||!n))return{user:i,project:n,committish:e.hash.slice(1)}}};dn.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:e,project:t,committish:r})=>`git@${e}:${t}.git${Ae("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${Ae("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${Ae("/",je(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${Ae("/",je(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${Ae("/",je(r))}${Ae("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${Ae("/",je(r))}${Ae("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${Ae("/",je(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${Ae("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${Ae("/",je(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${Ae("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${Ae("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${Ae("#",r)}`,tarballtemplate:({project:e,committish:t})=>`https://codeload.github.com/gist/${e}/tar.gz/${je(t||"HEAD")}`,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(n!=="raw"){if(!r){if(!t)return;r=t,t=null}return r.endsWith(".git")&&(r=r.slice(0,-4)),{user:t,project:r,committish:e.hash.slice(1)}}},hashformat:function(e){return e&&"file-"+dS(e)}};dn.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:e,user:t,project:r,committish:n,path:i})=>`https://${e}/${t}/${r}/blob/${je(n)||"HEAD"}/${i}`,httpstemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}.git${Ae("#",n)}`,tarballtemplate:({domain:e,user:t,project:r,committish:n})=>`https://${e}/${t}/${r}/archive/${je(n)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:e=>{let[,t,r,n]=e.pathname.split("/",4);if(!["archive"].includes(n)&&(r&&r.endsWith(".git")&&(r=r.slice(0,-4)),!(!t||!r)))return{user:t,project:r,committish:e.hash.slice(1)}}};for(let[e,t]of Object.entries(dn))dn[e]=Object.assign({},AM,t);gS.exports=dn});var zh=R((R7,vS)=>{var EM=q("url"),Yh=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},yS=e=>{try{return new EM.URL(e)}catch{}},wM=(e,t)=>{let r=e.indexOf(":"),n=e.slice(0,r+1);if(Object.prototype.hasOwnProperty.call(t,n))return e;let i=e.indexOf("@");return i>-1?i>r?`git+ssh://${e}`:e:e.indexOf("//")===r+1?e:`${e.slice(0,r+1)}//${e.slice(r+1)}`},SM=e=>{let t=Yh(e,"@","#"),r=Yh(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),Yh(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};vS.exports=(e,t)=>{let r=t?wM(e,t):e;return yS(r)||yS(SM(r))}});var ES=R((_7,AS)=>{"use strict";var bM=zh(),CM=e=>{let t=e.indexOf("#"),r=e.indexOf("/"),n=e.indexOf("/",r+1),i=e.indexOf(":"),s=/\s/.exec(e),o=e.indexOf("@"),a=!s||t>-1&&s.index>t,c=o===-1||t>-1&&o>t,u=i===-1||t>-1&&i>t,f=n===-1||t>-1&&n>t,l=r>0,h=t>-1?e[t-1]!=="/":!e.endsWith("/"),p=!e.startsWith(".");return a&&l&&h&&p&&c&&u&&f};AS.exports=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=CM(e)?`github:${e}`:e,s=bM(i,n);if(!s)return;let o=r.byShortcut[s.protocol],a=r.byDomain[s.hostname.startsWith("www.")?s.hostname.slice(4):s.hostname],c=o||a;if(!c)return;let u=r[o||a],f=null;n[s.protocol]?.auth&&(s.username||s.password)&&(f=`${s.username}${s.password?":"+s.password:""}`);let l=null,h=null,p=null,d=null;try{if(o){let m=s.pathname.startsWith("/")?s.pathname.slice(1):s.pathname,v=m.indexOf("@");v>-1&&(m=m.slice(v+1));let P=m.lastIndexOf("/");P>-1?(h=decodeURIComponent(m.slice(0,P)),h||(h=null),p=decodeURIComponent(m.slice(P+1))):p=decodeURIComponent(m),p.endsWith(".git")&&(p=p.slice(0,-4)),s.hash&&(l=decodeURIComponent(s.hash.slice(1))),d="shortcut"}else{if(!u.protocols.includes(s.protocol))return;let m=u.extract(s);if(!m)return;h=m.user&&decodeURIComponent(m.user),p=decodeURIComponent(m.project),l=decodeURIComponent(m.committish),d=n[s.protocol]?.name||s.protocol.slice(0,-1)}}catch(m){if(m instanceof URIError)return;throw m}return[c,h,f,p,l,d,t]}});var ru=R((k7,wS)=>{"use strict";var{LRUCache:xM}=eu(),PM=mS(),OM=ES(),RM=zh(),Vh=new xM({max:1e3}),tu=class e{constructor(t,r,n,i,s,o,a={}){Object.assign(this,e.#e[t],{type:t,user:r,auth:n,project:i,committish:s,default:o,opts:a})}static#e={byShortcut:{},byDomain:{}};static#r={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(t,r){e.#e[t]=r,e.#e.byDomain[r.domain]=t,e.#e.byShortcut[`${t}:`]=t,e.#r[`${t}:`]={name:t}}static fromUrl(t,r){if(typeof t!="string")return;let n=t+JSON.stringify(r||{});if(!Vh.has(n)){let i=OM(t,r,{gitHosts:e.#e,protocols:e.#r});Vh.set(n,i?new e(...i):void 0)}return Vh.get(n)}static parseUrl(t){return RM(t)}#t(t,r){if(typeof t!="function")return null;let n={...this,...this.opts,...r};n.path||(n.path=""),n.path.startsWith("/")&&(n.path=n.path.slice(1)),n.noCommittish&&(n.committish=null);let i=t(n);return n.noGitPlus&&i.startsWith("git+")?i.slice(4):i}hash(){return this.committish?`#${this.committish}`:""}ssh(t){return this.#t(this.sshtemplate,t)}sshurl(t){return this.#t(this.sshurltemplate,t)}browse(t,...r){return typeof t!="string"?this.#t(this.browsetemplate,t):typeof r[0]!="string"?this.#t(this.browsetreetemplate,{...r[0],path:t}):this.#t(this.browsetreetemplate,{...r[1],fragment:r[0],path:t})}browseFile(t,...r){return typeof r[0]!="string"?this.#t(this.browseblobtemplate,{...r[0],path:t}):this.#t(this.browseblobtemplate,{...r[1],fragment:r[0],path:t})}docs(t){return this.#t(this.docstemplate,t)}bugs(t){return this.#t(this.bugstemplate,t)}https(t){return this.#t(this.httpstemplate,t)}git(t){return this.#t(this.gittemplate,t)}shortcut(t){return this.#t(this.shortcuttemplate,t)}path(t){return this.#t(this.pathtemplate,t)}tarball(t){return this.#t(this.tarballtemplate,{...t,noCommittish:!1})}file(t,r){return this.#t(this.filetemplate,{...r,path:t})}edit(t,r){return this.#t(this.edittemplate,{...r,path:t})}getDefaultRepresentation(){return this.default}toString(t){return this.default&&typeof this[this.default]=="function"?this[this.default](t):this.sshurl(t)}};for(let[e,t]of Object.entries(PM))tu.addHost(e,t);wS.exports=tu});var PS=R((D7,xS)=>{"use strict";xS.exports=bS;function bS(e,t,r){e instanceof RegExp&&(e=SS(e,r)),t instanceof RegExp&&(t=SS(t,r));var n=CS(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function SS(e,t){var r=t.match(e);return r?r[0]:null}bS.range=CS;function CS(e,t,r){var n,i,s,o,a,c=r.indexOf(e),u=r.indexOf(t,c+1),f=c;if(c>=0&&u>0){if(e===t)return[c,u];for(n=[],s=r.length;f>=0&&!a;)f==c?(n.push(f),c=r.indexOf(e,f+1)):n.length==1?a=[n.pop(),u]:(i=n.pop(),i<s&&(s=i,o=u),u=r.indexOf(t,f+1)),f=c<u&&c>=0?c:u;n.length&&(a=[s,o])}return a}});var TS=R((F7,LS)=>{var OS=PS();LS.exports=DM;var RS="\0SLASH"+Math.random()+"\0",_S="\0OPEN"+Math.random()+"\0",Xh="\0CLOSE"+Math.random()+"\0",kS="\0COMMA"+Math.random()+"\0",DS="\0PERIOD"+Math.random()+"\0";function Kh(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function _M(e){return e.split("\\\\").join(RS).split("\\{").join(_S).split("\\}").join(Xh).split("\\,").join(kS).split("\\.").join(DS)}function kM(e){return e.split(RS).join("\\").split(_S).join("{").split(Xh).join("}").split(kS).join(",").split(DS).join(".")}function FS(e){if(!e)return[""];var t=[],r=OS("{","}",e);if(!r)return e.split(",");var n=r.pre,i=r.body,s=r.post,o=n.split(",");o[o.length-1]+="{"+i+"}";var a=FS(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function DM(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Os(_M(e),!0).map(kM)):[]}function FM(e){return"{"+e+"}"}function LM(e){return/^-?0\d/.test(e)}function TM(e,t){return e<=t}function NM(e,t){return e>=t}function Os(e,t){var r=[],n=OS("{","}",e);if(!n)return[e];var i=n.pre,s=n.post.length?Os(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<s.length;o++){var a=i+"{"+n.body+"}"+s[o];r.push(a)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),f=c||u,l=n.body.indexOf(",")>=0;if(!f&&!l)return n.post.match(/,.*\}/)?(e=n.pre+"{"+n.body+Xh+n.post,Os(e)):[e];var h;if(f)h=n.body.split(/\.\./);else if(h=FS(n.body),h.length===1&&(h=Os(h[0],!1).map(FM),h.length===1))return s.map(function(b){return n.pre+h[0]+b});var p;if(f){var d=Kh(h[0]),m=Kh(h[1]),v=Math.max(h[0].length,h[1].length),P=h.length==3?Math.abs(Kh(h[2])):1,C=TM,F=m<d;F&&(P*=-1,C=NM);var D=h.some(LM);p=[];for(var E=d;C(E,m);E+=P){var O;if(u)O=String.fromCharCode(E),O==="\\"&&(O="");else if(O=String(E),D){var k=v-O.length;if(k>0){var _=new Array(k+1).join("0");E<0?O="-"+_+O.slice(1):O=_+O}}p.push(O)}}else{p=[];for(var T=0;T<h.length;T++)p.push.apply(p,Os(h[T],!1))}for(var T=0;T<p.length;T++)for(var o=0;o<s.length;o++){var a=i+p[T]+s[o];(!t||f||a)&&r.push(a)}}return r}});var NS=R(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.assertValidPattern=void 0;var IM=1024*64,$M=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>IM)throw new TypeError("pattern is too long")};nu.assertValidPattern=$M});var $S=R(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.parseClass=void 0;var BM={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Rs=e=>e.replace(/[[\]\\-]/g,"\\$&"),MM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),IS=e=>e.join(""),jM=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],s=r+1,o=!1,a=!1,c=!1,u=!1,f=r,l="";e:for(;s<e.length;){let m=e.charAt(s);if((m==="!"||m==="^")&&s===r+1){u=!0,s++;continue}if(m==="]"&&o&&!c){f=s+1;break}if(o=!0,m==="\\"&&!c){c=!0,s++;continue}if(m==="["&&!c){for(let[v,[P,C,F]]of Object.entries(BM))if(e.startsWith(v,s)){if(l)return["$.",!1,e.length-r,!0];s+=v.length,F?i.push(P):n.push(P),a=a||C;continue e}}if(c=!1,l){m>l?n.push(Rs(l)+"-"+Rs(m)):m===l&&n.push(Rs(m)),l="",s++;continue}if(e.startsWith("-]",s+1)){n.push(Rs(m+"-")),s+=2;continue}if(e.startsWith("-",s+1)){l=m,s+=2;continue}n.push(Rs(m)),s++}if(f<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!u){let m=n[0].length===2?n[0].slice(-1):n[0];return[MM(m),!1,f-r,!1]}let h="["+(u?"^":"")+IS(n)+"]",p="["+(u?"":"^")+IS(i)+"]";return[n.length&&i.length?"("+h+"|"+p+")":n.length?h:p,a,f-r,!0]};iu.parseClass=jM});var ou=R(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.unescape=void 0;var qM=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");su.unescape=qM});var Zh=R(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.AST=void 0;var WM=$S(),au=ou(),GM=new Set(["!","?","+","*","@"]),BS=e=>GM.has(e),UM="(?!(?:^|/)\\.\\.?(?:$|/))",uu="(?!\\.)",HM=new Set(["[","."]),YM=new Set(["..","."]),zM=new Set("().*{}+?[]^$\\!"),VM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Qh="[^/]",MS=Qh+"*?",jS=Qh+"+?",Jh=class e{type;#e;#r;#t=!1;#n=[];#o;#h;#c;#l=!1;#a;#u;#s=!1;constructor(t,r,n={}){this.type=t,t&&(this.#r=!0),this.#o=r,this.#e=this.#o?this.#o.#e:this,this.#a=this.#e===this?n:this.#e.#a,this.#c=this.#e===this?[]:this.#e.#c,t==="!"&&!this.#e.#l&&this.#c.push(this),this.#h=this.#o?this.#o.#n.length:0}get hasMagic(){if(this.#r!==void 0)return this.#r;for(let t of this.#n)if(typeof t!="string"&&(t.type||t.hasMagic))return this.#r=!0;return this.#r}toString(){return this.#u!==void 0?this.#u:this.type?this.#u=this.type+"("+this.#n.map(t=>String(t)).join("|")+")":this.#u=this.#n.map(t=>String(t)).join("")}#y(){if(this!==this.#e)throw new Error("should only call on root");if(this.#l)return this;this.toString(),this.#l=!0;let t;for(;t=this.#c.pop();){if(t.type!=="!")continue;let r=t,n=r.#o;for(;n;){for(let i=r.#h+1;!n.type&&i<n.#n.length;i++)for(let s of t.#n){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(n.#n[i])}r=n,n=r.#o}}return this}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof e&&r.#o===this))throw new Error("invalid part: "+r);this.#n.push(r)}}toJSON(){let t=this.type===null?this.#n.slice().map(r=>typeof r=="string"?r:r.toJSON()):[this.type,...this.#n.map(r=>r.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#l&&this.#o?.type==="!")&&t.push({}),t}isStart(){if(this.#e===this)return!0;if(!this.#o?.isStart())return!1;if(this.#h===0)return!0;let t=this.#o;for(let r=0;r<this.#h;r++){let n=t.#n[r];if(!(n instanceof e&&n.type==="!"))return!1}return!0}isEnd(){if(this.#e===this||this.#o?.type==="!")return!0;if(!this.#o?.isEnd())return!1;if(!this.type)return this.#o?.isEnd();let t=this.#o?this.#o.#n.length:0;return this.#h===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new e(this.type,t);for(let n of this.#n)r.copyIn(n);return r}static#v(t,r,n,i){let s=!1,o=!1,a=-1,c=!1;if(r.type===null){let p=n,d="";for(;p<t.length;){let m=t.charAt(p++);if(s||m==="\\"){s=!s,d+=m;continue}if(o){p===a+1?(m==="^"||m==="!")&&(c=!0):m==="]"&&!(p===a+2&&c)&&(o=!1),d+=m;continue}else if(m==="["){o=!0,a=p,c=!1,d+=m;continue}if(!i.noext&&BS(m)&&t.charAt(p)==="("){r.push(d),d="";let v=new e(m,r);p=e.#v(t,v,p,i),r.push(v);continue}d+=m}return r.push(d),p}let u=n+1,f=new e(null,r),l=[],h="";for(;u<t.length;){let p=t.charAt(u++);if(s||p==="\\"){s=!s,h+=p;continue}if(o){u===a+1?(p==="^"||p==="!")&&(c=!0):p==="]"&&!(u===a+2&&c)&&(o=!1),h+=p;continue}else if(p==="["){o=!0,a=u,c=!1,h+=p;continue}if(BS(p)&&t.charAt(u)==="("){f.push(h),h="";let d=new e(p,f);f.push(d),u=e.#v(t,d,u,i);continue}if(p==="|"){f.push(h),h="",l.push(f),f=new e(null,r);continue}if(p===")")return h===""&&r.#n.length===0&&(r.#s=!0),f.push(h),h="",r.push(...l,f),u;h+=p}return r.type=null,r.#r=void 0,r.#n=[t.substring(n-1)],u}static fromGlob(t,r={}){let n=new e(null,void 0,r);return e.#v(t,n,0,r),n}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let t=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||this.#r||this.#a.nocase&&!this.#a.nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;let a=(this.#a.nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return this.#a}toRegExpSource(t){let r=t??!!this.#a.dot;if(this.#e===this&&this.#y(),!this.type){let c=this.isStart()&&this.isEnd(),u=this.#n.map(p=>{let[d,m,v,P]=typeof p=="string"?e.#p(p,this.#r,c):p.toRegExpSource(t);return this.#r=this.#r||v,this.#t=this.#t||P,d}).join(""),f="";if(this.isStart()&&typeof this.#n[0]=="string"&&!(this.#n.length===1&&YM.has(this.#n[0]))){let d=HM,m=r&&d.has(u.charAt(0))||u.startsWith("\\.")&&d.has(u.charAt(2))||u.startsWith("\\.\\.")&&d.has(u.charAt(4)),v=!r&&!t&&d.has(u.charAt(0));f=m?UM:v?uu:""}let l="";return this.isEnd()&&this.#e.#l&&this.#o?.type==="!"&&(l="(?:$|\\/)"),[f+u+l,(0,au.unescape)(u),this.#r=!!this.#r,this.#t]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",s=this.#d(r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){let c=this.toString();return this.#n=[c],this.type=null,this.#r=void 0,[c,(0,au.unescape)(this.toString()),!1,!1]}let o=!n||t||r||!uu?"":this.#d(!0);o===s&&(o=""),o&&(s=`(?:${s})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!r?uu:"")+jS;else{let c=this.type==="!"?"))"+(this.isStart()&&!r&&!t?uu:"")+MS+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=i+s+c}return[a,(0,au.unescape)(s),this.#r=!!this.#r,this.#t]}#d(t){return this.#n.map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,s,o]=r.toRegExpSource(t);return this.#t=this.#t||o,n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")}static#p(t,r,n=!1){let i=!1,s="",o=!1;for(let a=0;a<t.length;a++){let c=t.charAt(a);if(i){i=!1,s+=(zM.has(c)?"\\":"")+c;continue}if(c==="\\"){a===t.length-1?s+="\\\\":i=!0;continue}if(c==="["){let[u,f,l,h]=(0,WM.parseClass)(t,a);if(l){s+=u,o=o||f,a+=l-1,r=r||h;continue}}if(c==="*"){n&&t==="*"?s+=jS:s+=MS,r=!0;continue}if(c==="?"){s+=Qh,r=!0;continue}s+=VM(c)}return[s,(0,au.unescape)(t),!!r,o]}};cu.AST=Jh});var ep=R(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.escape=void 0;var KM=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");lu.escape=KM});var $r=R(Q=>{"use strict";var XM=Q&&Q.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Q,"__esModule",{value:!0});Q.unescape=Q.escape=Q.AST=Q.Minimatch=Q.match=Q.makeRe=Q.braceExpand=Q.defaults=Q.filter=Q.GLOBSTAR=Q.sep=Q.minimatch=void 0;var JM=XM(TS()),fu=NS(),GS=Zh(),QM=ep(),ZM=ou(),ej=(e,t,r={})=>((0,fu.assertValidPattern)(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Tn(t,r).match(e));Q.minimatch=ej;var tj=/^\*+([^+@!?\*\[\(]*)$/,rj=e=>t=>!t.startsWith(".")&&t.endsWith(e),nj=e=>t=>t.endsWith(e),ij=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),sj=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),oj=/^\*+\.\*+$/,aj=e=>!e.startsWith(".")&&e.includes("."),uj=e=>e!=="."&&e!==".."&&e.includes("."),cj=/^\.\*+$/,lj=e=>e!=="."&&e!==".."&&e.startsWith("."),fj=/^\*+$/,hj=e=>e.length!==0&&!e.startsWith("."),pj=e=>e.length!==0&&e!=="."&&e!=="..",dj=/^\?+([^+@!?\*\[\(]*)?$/,gj=([e,t=""])=>{let r=US([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},mj=([e,t=""])=>{let r=HS([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},yj=([e,t=""])=>{let r=HS([e]);return t?n=>r(n)&&n.endsWith(t):r},vj=([e,t=""])=>{let r=US([e]);return t?n=>r(n)&&n.endsWith(t):r},US=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},HS=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},YS=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",qS={win32:{sep:"\\"},posix:{sep:"/"}};Q.sep=YS==="win32"?qS.win32.sep:qS.posix.sep;Q.minimatch.sep=Q.sep;Q.GLOBSTAR=Symbol("globstar **");Q.minimatch.GLOBSTAR=Q.GLOBSTAR;var Aj="[^/]",Ej=Aj+"*?",wj="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Sj="(?:(?!(?:\\/|^)\\.).)*?",bj=(e,t={})=>r=>(0,Q.minimatch)(r,e,t);Q.filter=bj;Q.minimatch.filter=Q.filter;var Ut=(e,t={})=>Object.assign({},e,t),Cj=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Q.minimatch;let t=Q.minimatch;return Object.assign((n,i,s={})=>t(n,i,Ut(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,Ut(e,s))}static defaults(i){return t.defaults(Ut(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,o={}){super(i,s,Ut(e,o))}static fromGlob(i,s={}){return t.AST.fromGlob(i,Ut(e,s))}},unescape:(n,i={})=>t.unescape(n,Ut(e,i)),escape:(n,i={})=>t.escape(n,Ut(e,i)),filter:(n,i={})=>t.filter(n,Ut(e,i)),defaults:n=>t.defaults(Ut(e,n)),makeRe:(n,i={})=>t.makeRe(n,Ut(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,Ut(e,i)),match:(n,i,s={})=>t.match(n,i,Ut(e,s)),sep:t.sep,GLOBSTAR:Q.GLOBSTAR})};Q.defaults=Cj;Q.minimatch.defaults=Q.defaults;var xj=(e,t={})=>((0,fu.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,JM.default)(e));Q.braceExpand=xj;Q.minimatch.braceExpand=Q.braceExpand;var Pj=(e,t={})=>new Tn(e,t).makeRe();Q.makeRe=Pj;Q.minimatch.makeRe=Q.makeRe;var Oj=(e,t,r={})=>{let n=new Tn(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};Q.match=Oj;Q.minimatch.match=Q.match;var WS=/[?*]|[+@!]\(.*?\)|\[|\]/,Rj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Tn=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,r={}){(0,fu.assertValidPattern)(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||YS,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=s[0]===""&&s[1]===""&&(s[2]==="?"||!WS.test(s[2]))&&!WS.test(s[3]),u=/^[a-z]:/i.test(s[0]);if(c)return[...s.slice(0,4),...s.slice(4).map(f=>this.parse(f))];if(u)return[s[0],...s.slice(1).map(f=>this.parse(f))]}return s.map(c=>this.parse(c))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){let o=this.set[s];o[0]===""&&o[1]===""&&this.globParts[s][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let i=0;i<t[n].length;i++)t[n][i]==="**"&&(t[n][i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{let s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let s=t[i];i===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){let i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let o=i;for(;n[o+1]==="**";)o++;o>i&&n.splice(i+1,o-i);let a=n[i+1],c=n[i+2],u=n[i+3];if(a!==".."||!c||c==="."||c===".."||!u||u==="."||u==="..")continue;r=!0,n.splice(i,1);let f=n.slice(0);f[i]="**",t.push(f),i--}if(!this.preserveMultipleSlashes){for(let o=1;o<n.length-1;o++){let a=n[o];o===1&&a===""&&n[0]===""||(a==="."||a==="")&&(r=!0,n.splice(o,1),o--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){let o=n[s-1];if(o&&o!=="."&&o!==".."&&o!=="**"){r=!0;let c=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...c),n.length===0&&n.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){let i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,s=0,o=[],a="";for(;i<t.length&&s<r.length;)if(t[i]===r[s])o.push(a==="b"?r[s]:t[i]),i++,s++;else if(n&&t[i]==="**"&&r[s]===t[i+1])o.push(t[i]),i++;else if(n&&r[s]==="**"&&t[i]===r[s+1])o.push(r[s]),s++;else if(t[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(a==="b")return!1;a="a",o.push(t[i]),i++,s++}else if(r[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="a")return!1;a="b",o.push(r[s]),i++,s++}else return!1;return t.length===r.length&&o}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=this.options;if(this.isWindows){let m=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),v=!m&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),P=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),C=!P&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),F=v?3:m?0:void 0,D=C?3:P?0:void 0;if(typeof F=="number"&&typeof D=="number"){let[E,O]=[t[F],r[D]];E.toLowerCase()===O.toLowerCase()&&(r[D]=E,D>F?r=r.slice(D):F>D&&(t=t.slice(F)))}}let{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var o=0,a=0,c=t.length,u=r.length;o<c&&a<u;o++,a++){this.debug("matchOne loop");var f=r[a],l=t[o];if(this.debug(r,f,l),f===!1)return!1;if(f===Q.GLOBSTAR){this.debug("GLOBSTAR",[r,f,l]);var h=o,p=a+1;if(p===u){for(this.debug("** at the end");o<c;o++)if(t[o]==="."||t[o]===".."||!i.dot&&t[o].charAt(0)===".")return!1;return!0}for(;h<c;){var d=t[h];if(this.debug(`
88
+ globstar while`,t,h,r,p,d),this.matchOne(t.slice(h),r.slice(p),n))return this.debug("globstar found match!",h,c,d),!0;if(d==="."||d===".."||!i.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,h,r,p);break}this.debug("globstar swallow a segment, and continue"),h++}return!!(n&&(this.debug(`
89
+ >>> no match, partial?`,t,h,r,p),h===c))}let m;if(typeof f=="string"?(m=l===f,this.debug("string match",f,l,m)):(m=f.test(l),this.debug("pattern match",f,l,m)),!m)return!1}if(o===c&&a===u)return!0;if(o===c)return n;if(a===u)return o===c-1&&t[o]==="";throw new Error("wtf?")}braceExpand(){return(0,Q.braceExpand)(this.pattern,this.options)}parse(t){(0,fu.assertValidPattern)(t);let r=this.options;if(t==="**")return Q.GLOBSTAR;if(t==="")return"";let n,i=null;(n=t.match(fj))?i=r.dot?pj:hj:(n=t.match(tj))?i=(r.nocase?r.dot?sj:ij:r.dot?nj:rj)(n[1]):(n=t.match(dj))?i=(r.nocase?r.dot?mj:gj:r.dot?yj:vj)(n):(n=t.match(oj))?i=r.dot?uj:aj:(n=t.match(cj))&&(i=lj);let s=GS.AST.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Ej:r.dot?wj:Sj,i=new Set(r.nocase?["i"]:[]),s=t.map(c=>{let u=c.map(f=>{if(f instanceof RegExp)for(let l of f.flags.split(""))i.add(l);return typeof f=="string"?Rj(f):f===Q.GLOBSTAR?Q.GLOBSTAR:f._src});return u.forEach((f,l)=>{let h=u[l+1],p=u[l-1];f!==Q.GLOBSTAR||p===Q.GLOBSTAR||(p===void 0?h!==void 0&&h!==Q.GLOBSTAR?u[l+1]="(?:\\/|"+n+"\\/)?"+h:u[l]=n:h===void 0?u[l-1]=p+"(?:\\/|"+n+")?":h!==Q.GLOBSTAR&&(u[l-1]=p+"(?:\\/|\\/"+n+"\\/)"+h,u[l+1]=Q.GLOBSTAR))}),u.filter(f=>f!==Q.GLOBSTAR).join("/")}).join("|"),[o,a]=t.length>1?["(?:",")"]:["",""];s="^"+o+s+a+"$",this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let s=this.set;this.debug(this.pattern,"set",s);let o=i[i.length-1];if(!o)for(let a=i.length-2;!o&&a>=0;a--)o=i[a];for(let a=0;a<s.length;a++){let c=s[a],u=i;if(n.matchBase&&c.length===1&&(u=[o]),this.matchOne(u,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return Q.minimatch.defaults(t).Minimatch}};Q.Minimatch=Tn;var _j=Zh();Object.defineProperty(Q,"AST",{enumerable:!0,get:function(){return _j.AST}});var kj=ep();Object.defineProperty(Q,"escape",{enumerable:!0,get:function(){return kj.escape}});var Dj=ou();Object.defineProperty(Q,"unescape",{enumerable:!0,get:function(){return Dj.unescape}});Q.minimatch.AST=GS.AST;Q.minimatch.Minimatch=Tn;Q.minimatch.escape=QM.escape;Q.minimatch.unescape=ZM.unescape});var up=R(yt=>{"use strict";var Fj=yt&&yt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yt,"__esModule",{value:!0});yt.Minipass=yt.isWritable=yt.isReadable=yt.isStream=void 0;var zS=typeof process=="object"&&process?process:{stdout:null,stderr:null},ap=q("node:events"),JS=Fj(q("node:stream")),Lj=q("node:string_decoder"),Tj=e=>!!e&&typeof e=="object"&&(e instanceof vu||e instanceof JS.default||(0,yt.isReadable)(e)||(0,yt.isWritable)(e));yt.isStream=Tj;var Nj=e=>!!e&&typeof e=="object"&&e instanceof ap.EventEmitter&&typeof e.pipe=="function"&&e.pipe!==JS.default.Writable.prototype.pipe;yt.isReadable=Nj;var Ij=e=>!!e&&typeof e=="object"&&e instanceof ap.EventEmitter&&typeof e.write=="function"&&typeof e.end=="function";yt.isWritable=Ij;var Br=Symbol("EOF"),Mr=Symbol("maybeEmitEnd"),gn=Symbol("emittedEnd"),hu=Symbol("emittingEnd"),_s=Symbol("emittedError"),pu=Symbol("closed"),VS=Symbol("read"),du=Symbol("flush"),KS=Symbol("flushChunk"),ar=Symbol("encoding"),Ni=Symbol("decoder"),Ye=Symbol("flowing"),ks=Symbol("paused"),Ii=Symbol("resume"),ze=Symbol("buffer"),mt=Symbol("pipes"),Ve=Symbol("bufferLength"),tp=Symbol("bufferPush"),gu=Symbol("bufferShift"),ut=Symbol("objectMode"),Ie=Symbol("destroyed"),rp=Symbol("error"),np=Symbol("emitData"),XS=Symbol("emitEnd"),ip=Symbol("emitEnd2"),Sr=Symbol("async"),sp=Symbol("abort"),mu=Symbol("aborted"),Ds=Symbol("signal"),Nn=Symbol("dataListeners"),It=Symbol("discarded"),Fs=e=>Promise.resolve().then(e),$j=e=>e(),Bj=e=>e==="end"||e==="finish"||e==="prefinish",Mj=e=>e instanceof ArrayBuffer||!!e&&typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,jj=e=>!Buffer.isBuffer(e)&&ArrayBuffer.isView(e),yu=class{src;dest;opts;ondrain;constructor(t,r,n){this.src=t,this.dest=r,this.opts=n,this.ondrain=()=>t[Ii](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},op=class extends yu{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(t,r,n){super(t,r,n),this.proxyErrors=i=>r.emit("error",i),t.on("error",this.proxyErrors)}},qj=e=>!!e.objectMode,Wj=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer",vu=class extends ap.EventEmitter{[Ye]=!1;[ks]=!1;[mt]=[];[ze]=[];[ut];[ar];[Sr];[Ni];[Br]=!1;[gn]=!1;[hu]=!1;[pu]=!1;[_s]=null;[Ve]=0;[Ie]=!1;[Ds];[mu]=!1;[Nn]=0;[It]=!1;writable=!0;readable=!0;constructor(...t){let r=t[0]||{};if(super(),r.objectMode&&typeof r.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");qj(r)?(this[ut]=!0,this[ar]=null):Wj(r)?(this[ar]=r.encoding,this[ut]=!1):(this[ut]=!1,this[ar]=null),this[Sr]=!!r.async,this[Ni]=this[ar]?new Lj.StringDecoder(this[ar]):null,r&&r.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[ze]}),r&&r.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[mt]});let{signal:n}=r;n&&(this[Ds]=n,n.aborted?this[sp]():n.addEventListener("abort",()=>this[sp]()))}get bufferLength(){return this[Ve]}get encoding(){return this[ar]}set encoding(t){throw new Error("Encoding must be set at instantiation time")}setEncoding(t){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[ut]}set objectMode(t){throw new Error("objectMode must be set at instantiation time")}get async(){return this[Sr]}set async(t){this[Sr]=this[Sr]||!!t}[sp](){this[mu]=!0,this.emit("abort",this[Ds]?.reason),this.destroy(this[Ds]?.reason)}get aborted(){return this[mu]}set aborted(t){}write(t,r,n){if(this[mu])return!1;if(this[Br])throw new Error("write after end");if(this[Ie])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof r=="function"&&(n=r,r="utf8"),r||(r="utf8");let i=this[Sr]?Fs:$j;if(!this[ut]&&!Buffer.isBuffer(t)){if(jj(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(Mj(t))t=Buffer.from(t);else if(typeof t!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[ut]?(this[Ye]&&this[Ve]!==0&&this[du](!0),this[Ye]?this.emit("data",t):this[tp](t),this[Ve]!==0&&this.emit("readable"),n&&i(n),this[Ye]):t.length?(typeof t=="string"&&!(r===this[ar]&&!this[Ni]?.lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[ar]&&(t=this[Ni].write(t)),this[Ye]&&this[Ve]!==0&&this[du](!0),this[Ye]?this.emit("data",t):this[tp](t),this[Ve]!==0&&this.emit("readable"),n&&i(n),this[Ye]):(this[Ve]!==0&&this.emit("readable"),n&&i(n),this[Ye])}read(t){if(this[Ie])return null;if(this[It]=!1,this[Ve]===0||t===0||t&&t>this[Ve])return this[Mr](),null;this[ut]&&(t=null),this[ze].length>1&&!this[ut]&&(this[ze]=[this[ar]?this[ze].join(""):Buffer.concat(this[ze],this[Ve])]);let r=this[VS](t||null,this[ze][0]);return this[Mr](),r}[VS](t,r){if(this[ut])this[gu]();else{let n=r;t===n.length||t===null?this[gu]():typeof n=="string"?(this[ze][0]=n.slice(t),r=n.slice(0,t),this[Ve]-=t):(this[ze][0]=n.subarray(t),r=n.subarray(0,t),this[Ve]-=t)}return this.emit("data",r),!this[ze].length&&!this[Br]&&this.emit("drain"),r}end(t,r,n){return typeof t=="function"&&(n=t,t=void 0),typeof r=="function"&&(n=r,r="utf8"),t!==void 0&&this.write(t,r),n&&this.once("end",n),this[Br]=!0,this.writable=!1,(this[Ye]||!this[ks])&&this[Mr](),this}[Ii](){this[Ie]||(!this[Nn]&&!this[mt].length&&(this[It]=!0),this[ks]=!1,this[Ye]=!0,this.emit("resume"),this[ze].length?this[du]():this[Br]?this[Mr]():this.emit("drain"))}resume(){return this[Ii]()}pause(){this[Ye]=!1,this[ks]=!0,this[It]=!1}get destroyed(){return this[Ie]}get flowing(){return this[Ye]}get paused(){return this[ks]}[tp](t){this[ut]?this[Ve]+=1:this[Ve]+=t.length,this[ze].push(t)}[gu](){return this[ut]?this[Ve]-=1:this[Ve]-=this[ze][0].length,this[ze].shift()}[du](t=!1){do;while(this[KS](this[gu]())&&this[ze].length);!t&&!this[ze].length&&!this[Br]&&this.emit("drain")}[KS](t){return this.emit("data",t),this[Ye]}pipe(t,r){if(this[Ie])return t;this[It]=!1;let n=this[gn];return r=r||{},t===zS.stdout||t===zS.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[mt].push(r.proxyErrors?new op(this,t,r):new yu(this,t,r)),this[Sr]?Fs(()=>this[Ii]()):this[Ii]()),t}unpipe(t){let r=this[mt].find(n=>n.dest===t);r&&(this[mt].length===1?(this[Ye]&&this[Nn]===0&&(this[Ye]=!1),this[mt]=[]):this[mt].splice(this[mt].indexOf(r),1),r.unpipe())}addListener(t,r){return this.on(t,r)}on(t,r){let n=super.on(t,r);if(t==="data")this[It]=!1,this[Nn]++,!this[mt].length&&!this[Ye]&&this[Ii]();else if(t==="readable"&&this[Ve]!==0)super.emit("readable");else if(Bj(t)&&this[gn])super.emit(t),this.removeAllListeners(t);else if(t==="error"&&this[_s]){let i=r;this[Sr]?Fs(()=>i.call(this,this[_s])):i.call(this,this[_s])}return n}removeListener(t,r){return this.off(t,r)}off(t,r){let n=super.off(t,r);return t==="data"&&(this[Nn]=this.listeners("data").length,this[Nn]===0&&!this[It]&&!this[mt].length&&(this[Ye]=!1)),n}removeAllListeners(t){let r=super.removeAllListeners(t);return(t==="data"||t===void 0)&&(this[Nn]=0,!this[It]&&!this[mt].length&&(this[Ye]=!1)),r}get emittedEnd(){return this[gn]}[Mr](){!this[hu]&&!this[gn]&&!this[Ie]&&this[ze].length===0&&this[Br]&&(this[hu]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[pu]&&this.emit("close"),this[hu]=!1)}emit(t,...r){let n=r[0];if(t!=="error"&&t!=="close"&&t!==Ie&&this[Ie])return!1;if(t==="data")return!this[ut]&&!n?!1:this[Sr]?(Fs(()=>this[np](n)),!0):this[np](n);if(t==="end")return this[XS]();if(t==="close"){if(this[pu]=!0,!this[gn]&&!this[Ie])return!1;let s=super.emit("close");return this.removeAllListeners("close"),s}else if(t==="error"){this[_s]=n,super.emit(rp,n);let s=!this[Ds]||this.listeners("error").length?super.emit("error",n):!1;return this[Mr](),s}else if(t==="resume"){let s=super.emit("resume");return this[Mr](),s}else if(t==="finish"||t==="prefinish"){let s=super.emit(t);return this.removeAllListeners(t),s}let i=super.emit(t,...r);return this[Mr](),i}[np](t){for(let n of this[mt])n.dest.write(t)===!1&&this.pause();let r=this[It]?!1:super.emit("data",t);return this[Mr](),r}[XS](){return this[gn]?!1:(this[gn]=!0,this.readable=!1,this[Sr]?(Fs(()=>this[ip]()),!0):this[ip]())}[ip](){if(this[Ni]){let r=this[Ni].end();if(r){for(let n of this[mt])n.dest.write(r);this[It]||super.emit("data",r)}}for(let r of this[mt])r.end();let t=super.emit("end");return this.removeAllListeners("end"),t}async collect(){let t=Object.assign([],{dataLength:0});this[ut]||(t.dataLength=0);let r=this.promise();return this.on("data",n=>{t.push(n),this[ut]||(t.dataLength+=n.length)}),await r,t}async concat(){if(this[ut])throw new Error("cannot concat in objectMode");let t=await this.collect();return this[ar]?t.join(""):Buffer.concat(t,t.dataLength)}async promise(){return new Promise((t,r)=>{this.on(Ie,()=>r(new Error("stream destroyed"))),this.on("error",n=>r(n)),this.on("end",()=>t())})}[Symbol.asyncIterator](){this[It]=!1;let t=!1,r=async()=>(this.pause(),t=!0,{value:void 0,done:!0});return{next:()=>{if(t)return r();let i=this.read();if(i!==null)return Promise.resolve({done:!1,value:i});if(this[Br])return r();let s,o,a=l=>{this.off("data",c),this.off("end",u),this.off(Ie,f),r(),o(l)},c=l=>{this.off("error",a),this.off("end",u),this.off(Ie,f),this.pause(),s({value:l,done:!!this[Br]})},u=()=>{this.off("error",a),this.off("data",c),this.off(Ie,f),r(),s({done:!0,value:void 0})},f=()=>a(new Error("stream destroyed"));return new Promise((l,h)=>{o=h,s=l,this.once(Ie,f),this.once("error",a),this.once("end",u),this.once("data",c)})},throw:r,return:r,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[It]=!1;let t=!1,r=()=>(this.pause(),this.off(rp,r),this.off(Ie,r),this.off("end",r),t=!0,{done:!0,value:void 0}),n=()=>{if(t)return r();let i=this.read();return i===null?r():{done:!1,value:i}};return this.once("end",r),this.once(rp,r),this.once(Ie,r),{next:n,throw:r,return:r,[Symbol.iterator](){return this}}}destroy(t){if(this[Ie])return t?this.emit("error",t):this.emit(Ie),this;this[Ie]=!0,this[It]=!0,this[ze].length=0,this[Ve]=0;let r=this;return typeof r.close=="function"&&!this[pu]&&r.close(),t?this.emit("error",t):this.emit(Ie),this}static get isStream(){return yt.isStream}};yt.Minipass=vu});var h1=R(Ee=>{"use strict";var Gj=Ee&&Ee.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Uj=Ee&&Ee.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Hj=Ee&&Ee.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&Gj(t,e,r);return Uj(t,e),t};Object.defineProperty(Ee,"__esModule",{value:!0});Ee.PathScurry=Ee.Path=Ee.PathScurryDarwin=Ee.PathScurryPosix=Ee.PathScurryWin32=Ee.PathScurryBase=Ee.PathPosix=Ee.PathWin32=Ee.PathBase=Ee.ChildrenCache=Ee.ResolveCache=void 0;var n1=eu(),bu=q("node:path"),Yj=q("node:url"),Ts=q("fs"),zj=Hj(q("node:fs")),Vj=Ts.realpathSync.native,Au=q("node:fs/promises"),QS=up(),Ns={lstatSync:Ts.lstatSync,readdir:Ts.readdir,readdirSync:Ts.readdirSync,readlinkSync:Ts.readlinkSync,realpathSync:Vj,promises:{lstat:Au.lstat,readdir:Au.readdir,readlink:Au.readlink,realpath:Au.realpath}},i1=e=>!e||e===Ns||e===zj?Ns:{...Ns,...e,promises:{...Ns.promises,...e.promises||{}}},s1=/^\\\\\?\\([a-z]:)\\?$/i,Kj=e=>e.replace(/\//g,"\\").replace(s1,"$1\\"),Xj=/[\\\/]/,Yt=0,o1=1,a1=2,br=4,u1=6,c1=8,In=10,l1=12,Ht=15,Ls=~Ht,cp=16,ZS=32,Is=64,ur=128,Eu=256,Su=512,e1=Is|ur|Su,Jj=1023,lp=e=>e.isFile()?c1:e.isDirectory()?br:e.isSymbolicLink()?In:e.isCharacterDevice()?a1:e.isBlockDevice()?u1:e.isSocket()?l1:e.isFIFO()?o1:Yt,t1=new Map,$s=e=>{let t=t1.get(e);if(t)return t;let r=e.normalize("NFKD");return t1.set(e,r),r},r1=new Map,wu=e=>{let t=r1.get(e);if(t)return t;let r=$s(e.toLowerCase());return r1.set(e,r),r},Bs=class extends n1.LRUCache{constructor(){super({max:256})}};Ee.ResolveCache=Bs;var Cu=class extends n1.LRUCache{constructor(t=16*1024){super({maxSize:t,sizeCalculation:r=>r.length+1})}};Ee.ChildrenCache=Cu;var f1=Symbol("PathScurry setAsCwd"),Qe=class{name;root;roots;parent;nocase;isCWD=!1;#e;#r;get dev(){return this.#r}#t;get mode(){return this.#t}#n;get nlink(){return this.#n}#o;get uid(){return this.#o}#h;get gid(){return this.#h}#c;get rdev(){return this.#c}#l;get blksize(){return this.#l}#a;get ino(){return this.#a}#u;get size(){return this.#u}#s;get blocks(){return this.#s}#y;get atimeMs(){return this.#y}#v;get mtimeMs(){return this.#v}#d;get ctimeMs(){return this.#d}#p;get birthtimeMs(){return this.#p}#b;get atime(){return this.#b}#m;get mtime(){return this.#m}#C;get ctime(){return this.#C}#x;get birthtime(){return this.#x}#E;#w;#S;#g;#_;#P;#i;#F;#A;#k;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(t,r=Yt,n,i,s,o,a){this.name=t,this.#E=s?wu(t):$s(t),this.#i=r&Jj,this.nocase=s,this.roots=i,this.root=n||this,this.#F=o,this.#S=a.fullpath,this.#_=a.relative,this.#P=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=i1(a.fs)}depth(){return this.#w!==void 0?this.#w:this.parent?this.#w=this.parent.depth()+1:this.#w=0}childrenCache(){return this.#F}resolve(t){if(!t)return this;let r=this.getRootString(t),i=t.substring(r.length).split(this.splitSep);return r?this.getRoot(r).#L(i):this.#L(i)}#L(t){let r=this;for(let n of t)r=r.child(n);return r}children(){let t=this.#F.get(this);if(t)return t;let r=Object.assign([],{provisional:0});return this.#F.set(this,r),this.#i&=~cp,r}child(t,r){if(t===""||t===".")return this;if(t==="..")return this.parent||this;let n=this.children(),i=this.nocase?wu(t):$s(t);for(let c of n)if(c.#E===i)return c;let s=this.parent?this.sep:"",o=this.#S?this.#S+s+t:void 0,a=this.newChild(t,Yt,{...r,parent:this,fullpath:o});return this.canReaddir()||(a.#i|=ur),n.push(a),a}relative(){if(this.isCWD)return"";if(this.#_!==void 0)return this.#_;let t=this.name,r=this.parent;if(!r)return this.#_=this.name;let n=r.relative();return n+(!n||!r.parent?"":this.sep)+t}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#P!==void 0)return this.#P;let t=this.name,r=this.parent;if(!r)return this.#P=this.fullpathPosix();let n=r.relativePosix();return n+(!n||!r.parent?"":"/")+t}fullpath(){if(this.#S!==void 0)return this.#S;let t=this.name,r=this.parent;if(!r)return this.#S=this.name;let i=r.fullpath()+(r.parent?this.sep:"")+t;return this.#S=i}fullpathPosix(){if(this.#g!==void 0)return this.#g;if(this.sep==="/")return this.#g=this.fullpath();if(!this.parent){let i=this.fullpath().replace(/\\/g,"/");return/^[a-z]:\//i.test(i)?this.#g=`//?/${i}`:this.#g=i}let t=this.parent,r=t.fullpathPosix(),n=r+(!r||!t.parent?"":"/")+this.name;return this.#g=n}isUnknown(){return(this.#i&Ht)===Yt}isType(t){return this[`is${t}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#i&Ht)===c1}isDirectory(){return(this.#i&Ht)===br}isCharacterDevice(){return(this.#i&Ht)===a1}isBlockDevice(){return(this.#i&Ht)===u1}isFIFO(){return(this.#i&Ht)===o1}isSocket(){return(this.#i&Ht)===l1}isSymbolicLink(){return(this.#i&In)===In}lstatCached(){return this.#i&ZS?this:void 0}readlinkCached(){return this.#A}realpathCached(){return this.#k}readdirCached(){let t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#A)return!0;if(!this.parent)return!1;let t=this.#i&Ht;return!(t!==Yt&&t!==In||this.#i&Eu||this.#i&ur)}calledReaddir(){return!!(this.#i&cp)}isENOENT(){return!!(this.#i&ur)}isNamed(t){return this.nocase?this.#E===wu(t):this.#E===$s(t)}async readlink(){let t=this.#A;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=await this.#e.promises.readlink(this.fullpath()),n=(await this.parent.realpath())?.resolve(r);if(n)return this.#A=n}catch(r){this.#f(r.code);return}}readlinkSync(){let t=this.#A;if(t)return t;if(this.canReadlink()&&this.parent)try{let r=this.#e.readlinkSync(this.fullpath()),n=this.parent.realpathSync()?.resolve(r);if(n)return this.#A=n}catch(r){this.#f(r.code);return}}#T(t){this.#i|=cp;for(let r=t.provisional;r<t.length;r++){let n=t[r];n&&n.#N()}}#N(){this.#i&ur||(this.#i=(this.#i|ur)&Ls,this.#O())}#O(){let t=this.children();t.provisional=0;for(let r of t)r.#N()}#R(){this.#i|=Su,this.#I()}#I(){if(this.#i&Is)return;let t=this.#i;(t&Ht)===br&&(t&=Ls),this.#i=t|Is,this.#O()}#$(t=""){t==="ENOTDIR"||t==="EPERM"?this.#I():t==="ENOENT"?this.#N():this.children().provisional=0}#B(t=""){t==="ENOTDIR"?this.parent.#I():t==="ENOENT"&&this.#N()}#f(t=""){let r=this.#i;r|=Eu,t==="ENOENT"&&(r|=ur),(t==="EINVAL"||t==="UNKNOWN")&&(r&=Ls),this.#i=r,t==="ENOTDIR"&&this.parent&&this.parent.#I()}#M(t,r){return this.#D(t,r)||this.#j(t,r)}#j(t,r){let n=lp(t),i=this.newChild(t.name,n,{parent:this}),s=i.#i&Ht;return s!==br&&s!==In&&s!==Yt&&(i.#i|=Is),r.unshift(i),r.provisional++,i}#D(t,r){for(let n=r.provisional;n<r.length;n++){let i=r[n];if((this.nocase?wu(t.name):$s(t.name))===i.#E)return this.#q(t,i,n,r)}}#q(t,r,n,i){let s=r.name;return r.#i=r.#i&Ls|lp(t),s!==t.name&&(r.name=t.name),n!==i.provisional&&(n===i.length-1?i.pop():i.splice(n,1),i.unshift(r)),i.provisional++,r}async lstat(){if(!(this.#i&ur))try{return this.#H(await this.#e.promises.lstat(this.fullpath())),this}catch(t){this.#B(t.code)}}lstatSync(){if(!(this.#i&ur))try{return this.#H(this.#e.lstatSync(this.fullpath())),this}catch(t){this.#B(t.code)}}#H(t){let{atime:r,atimeMs:n,birthtime:i,birthtimeMs:s,blksize:o,blocks:a,ctime:c,ctimeMs:u,dev:f,gid:l,ino:h,mode:p,mtime:d,mtimeMs:m,nlink:v,rdev:P,size:C,uid:F}=t;this.#b=r,this.#y=n,this.#x=i,this.#p=s,this.#l=o,this.#s=a,this.#C=c,this.#d=u,this.#r=f,this.#h=l,this.#a=h,this.#t=p,this.#m=d,this.#v=m,this.#n=v,this.#c=P,this.#u=C,this.#o=F;let D=lp(t);this.#i=this.#i&Ls|D|ZS,D!==Yt&&D!==br&&D!==In&&(this.#i|=Is)}#G=[];#U=!1;#Y(t){this.#U=!1;let r=this.#G.slice();this.#G.length=0,r.forEach(n=>n(null,t))}readdirCB(t,r=!1){if(!this.canReaddir()){r?t(null,[]):queueMicrotask(()=>t(null,[]));return}let n=this.children();if(this.calledReaddir()){let s=n.slice(0,n.provisional);r?t(null,s):queueMicrotask(()=>t(null,s));return}if(this.#G.push(t),this.#U)return;this.#U=!0;let i=this.fullpath();this.#e.readdir(i,{withFileTypes:!0},(s,o)=>{if(s)this.#$(s.code),n.provisional=0;else{for(let a of o)this.#M(a,n);this.#T(n)}this.#Y(n.slice(0,n.provisional))})}#W;async readdir(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();if(this.#W)await this.#W;else{let n=()=>{};this.#W=new Promise(i=>n=i);try{for(let i of await this.#e.promises.readdir(r,{withFileTypes:!0}))this.#M(i,t);this.#T(t)}catch(i){this.#$(i.code),t.provisional=0}this.#W=void 0,n()}return t.slice(0,t.provisional)}readdirSync(){if(!this.canReaddir())return[];let t=this.children();if(this.calledReaddir())return t.slice(0,t.provisional);let r=this.fullpath();try{for(let n of this.#e.readdirSync(r,{withFileTypes:!0}))this.#M(n,t);this.#T(t)}catch(n){this.#$(n.code),t.provisional=0}return t.slice(0,t.provisional)}canReaddir(){if(this.#i&e1)return!1;let t=Ht&this.#i;return t===Yt||t===br||t===In}shouldWalk(t,r){return(this.#i&br)===br&&!(this.#i&e1)&&!t.has(this)&&(!r||r(this))}async realpath(){if(this.#k)return this.#k;if(!((Su|Eu|ur)&this.#i))try{let t=await this.#e.promises.realpath(this.fullpath());return this.#k=this.resolve(t)}catch{this.#R()}}realpathSync(){if(this.#k)return this.#k;if(!((Su|Eu|ur)&this.#i))try{let t=this.#e.realpathSync(this.fullpath());return this.#k=this.resolve(t)}catch{this.#R()}}[f1](t){if(t===this)return;t.isCWD=!1,this.isCWD=!0;let r=new Set([]),n=[],i=this;for(;i&&i.parent;)r.add(i),i.#_=n.join(this.sep),i.#P=n.join("/"),i=i.parent,n.push("..");for(i=t;i&&i.parent&&!r.has(i);)i.#_=void 0,i.#P=void 0,i=i.parent}};Ee.PathBase=Qe;var Ms=class e extends Qe{sep="\\";splitSep=Xj;constructor(t,r=Yt,n,i,s,o,a){super(t,r,n,i,s,o,a)}newChild(t,r=Yt,n={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}getRootString(t){return bu.win32.parse(t).root}getRoot(t){if(t=Kj(t.toUpperCase()),t===this.root.name)return this.root;for(let[r,n]of Object.entries(this.roots))if(this.sameRoot(t,r))return this.roots[t]=n;return this.roots[t]=new Ws(t,this).root}sameRoot(t,r=this.root.name){return t=t.toUpperCase().replace(/\//g,"\\").replace(s1,"$1\\"),t===r}};Ee.PathWin32=Ms;var js=class e extends Qe{splitSep="/";sep="/";constructor(t,r=Yt,n,i,s,o,a){super(t,r,n,i,s,o,a)}getRootString(t){return t.startsWith("/")?"/":""}getRoot(t){return this.root}newChild(t,r=Yt,n={}){return new e(t,r,this.root,this.roots,this.nocase,this.childrenCache(),n)}};Ee.PathPosix=js;var qs=class{root;rootPath;roots;cwd;#e;#r;#t;nocase;#n;constructor(t=process.cwd(),r,n,{nocase:i,childrenCacheSize:s=16*1024,fs:o=Ns}={}){this.#n=i1(o),(t instanceof URL||t.startsWith("file://"))&&(t=(0,Yj.fileURLToPath)(t));let a=r.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new Bs,this.#r=new Bs,this.#t=new Cu(s);let c=a.substring(this.rootPath.length).split(n);if(c.length===1&&!c[0]&&c.pop(),i===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=i,this.root=this.newRoot(this.#n),this.roots[this.rootPath]=this.root;let u=this.root,f=c.length-1,l=r.sep,h=this.rootPath,p=!1;for(let d of c){let m=f--;u=u.child(d,{relative:new Array(m).fill("..").join(l),relativePosix:new Array(m).fill("..").join("/"),fullpath:h+=(p?"":l)+d}),p=!0}this.cwd=u}depth(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.depth()}childrenCache(){return this.#t}resolve(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let n=this.#e.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpath();return this.#e.set(r,i),i}resolvePosix(...t){let r="";for(let s=t.length-1;s>=0;s--){let o=t[s];if(!(!o||o===".")&&(r=r?`${o}/${r}`:o,this.isAbsolute(o)))break}let n=this.#r.get(r);if(n!==void 0)return n;let i=this.cwd.resolve(r).fullpathPosix();return this.#r.set(r,i),i}relative(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relative()}relativePosix(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.relativePosix()}basename(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.name}dirname(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),(t.parent||t).fullpath()}async readdir(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Qe||(r=t,t=this.cwd);let{withFileTypes:n}=r;if(t.canReaddir()){let i=await t.readdir();return n?i:i.map(s=>s.name)}else return[]}readdirSync(t=this.cwd,r={withFileTypes:!0}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Qe||(r=t,t=this.cwd);let{withFileTypes:n=!0}=r;return t.canReaddir()?n?t.readdirSync():t.readdirSync().map(i=>i.name):[]}async lstat(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstat()}lstatSync(t=this.cwd){return typeof t=="string"&&(t=this.cwd.resolve(t)),t.lstatSync()}async readlink(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Qe||(r=t.withFileTypes,t=this.cwd);let n=await t.readlink();return r?n:n?.fullpath()}readlinkSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Qe||(r=t.withFileTypes,t=this.cwd);let n=t.readlinkSync();return r?n:n?.fullpath()}async realpath(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Qe||(r=t.withFileTypes,t=this.cwd);let n=await t.realpath();return r?n:n?.fullpath()}realpathSync(t=this.cwd,{withFileTypes:r}={withFileTypes:!1}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Qe||(r=t.withFileTypes,t=this.cwd);let n=t.realpathSync();return r?n:n?.fullpath()}async walk(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Qe||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(n?t:t.fullpath());let c=new Set,u=(l,h)=>{c.add(l),l.readdirCB((p,d)=>{if(p)return h(p);let m=d.length;if(!m)return h();let v=()=>{--m===0&&h()};for(let P of d)(!s||s(P))&&a.push(n?P:P.fullpath()),i&&P.isSymbolicLink()?P.realpath().then(C=>C?.isUnknown()?C.lstat():C).then(C=>C?.shouldWalk(c,o)?u(C,v):v()):P.shouldWalk(c,o)?u(P,v):v()},!0)},f=t;return new Promise((l,h)=>{u(f,p=>{if(p)return h(p);l(a)})})}walkSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Qe||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=[];(!s||s(t))&&a.push(n?t:t.fullpath());let c=new Set([t]);for(let u of c){let f=u.readdirSync();for(let l of f){(!s||s(l))&&a.push(n?l:l.fullpath());let h=l;if(l.isSymbolicLink()){if(!(i&&(h=l.realpathSync())))continue;h.isUnknown()&&h.lstatSync()}h.shouldWalk(c,o)&&c.add(h)}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(t=this.cwd,r={}){return typeof t=="string"?t=this.cwd.resolve(t):t instanceof Qe||(r=t,t=this.cwd),this.stream(t,r)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Qe||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r;(!s||s(t))&&(yield n?t:t.fullpath());let a=new Set([t]);for(let c of a){let u=c.readdirSync();for(let f of u){(!s||s(f))&&(yield n?f:f.fullpath());let l=f;if(f.isSymbolicLink()){if(!(i&&(l=f.realpathSync())))continue;l.isUnknown()&&l.lstatSync()}l.shouldWalk(a,o)&&a.add(l)}}}stream(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Qe||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=new QS.Minipass({objectMode:!0});(!s||s(t))&&a.write(n?t:t.fullpath());let c=new Set,u=[t],f=0,l=()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){f===0&&a.end();return}f++,c.add(p);let d=(v,P,C=!1)=>{if(v)return a.emit("error",v);if(i&&!C){let F=[];for(let D of P)D.isSymbolicLink()&&F.push(D.realpath().then(E=>E?.isUnknown()?E.lstat():E));if(F.length){Promise.all(F).then(()=>d(null,P,!0));return}}for(let F of P)F&&(!s||s(F))&&(a.write(n?F:F.fullpath())||(h=!0));f--;for(let F of P){let D=F.realpathCached()||F;D.shouldWalk(c,o)&&u.push(D)}h&&!a.flowing?a.once("drain",l):m||l()},m=!0;p.readdirCB(d,!0),m=!1}};return l(),a}streamSync(t=this.cwd,r={}){typeof t=="string"?t=this.cwd.resolve(t):t instanceof Qe||(r=t,t=this.cwd);let{withFileTypes:n=!0,follow:i=!1,filter:s,walkFilter:o}=r,a=new QS.Minipass({objectMode:!0}),c=new Set;(!s||s(t))&&a.write(n?t:t.fullpath());let u=[t],f=0,l=()=>{let h=!1;for(;!h;){let p=u.shift();if(!p){f===0&&a.end();return}f++,c.add(p);let d=p.readdirSync();for(let m of d)(!s||s(m))&&(a.write(n?m:m.fullpath())||(h=!0));f--;for(let m of d){let v=m;if(m.isSymbolicLink()){if(!(i&&(v=m.realpathSync())))continue;v.isUnknown()&&v.lstatSync()}v.shouldWalk(c,o)&&u.push(v)}}h&&!a.flowing&&a.once("drain",l)};return l(),a}chdir(t=this.cwd){let r=this.cwd;this.cwd=typeof t=="string"?this.cwd.resolve(t):t,this.cwd[f1](r)}};Ee.PathScurryBase=qs;var Ws=class extends qs{sep="\\";constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,bu.win32,"\\",{...r,nocase:n}),this.nocase=n;for(let i=this.cwd;i;i=i.parent)i.nocase=this.nocase}parseRootPath(t){return bu.win32.parse(t).root.toUpperCase()}newRoot(t){return new Ms(this.rootPath,br,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")||t.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(t)}};Ee.PathScurryWin32=Ws;var Gs=class extends qs{sep="/";constructor(t=process.cwd(),r={}){let{nocase:n=!1}=r;super(t,bu.posix,"/",{...r,nocase:n}),this.nocase=n}parseRootPath(t){return"/"}newRoot(t){return new js(this.rootPath,br,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}};Ee.PathScurryPosix=Gs;var xu=class extends Gs{constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,{...r,nocase:n})}};Ee.PathScurryDarwin=xu;Ee.Path=process.platform==="win32"?Ms:js;Ee.PathScurry=process.platform==="win32"?Ws:process.platform==="darwin"?xu:Gs});var hp=R(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.Pattern=void 0;var Qj=$r(),Zj=e=>e.length>=1,e3=e=>e.length>=1,fp=class e{#e;#r;#t;length;#n;#o;#h;#c;#l;#a;#u=!0;constructor(t,r,n,i){if(!Zj(t))throw new TypeError("empty pattern list");if(!e3(r))throw new TypeError("empty glob list");if(r.length!==t.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=t.length,n<0||n>=this.length)throw new TypeError("index out of range");if(this.#e=t,this.#r=r,this.#t=n,this.#n=i,this.#t===0){if(this.isUNC()){let[s,o,a,c,...u]=this.#e,[f,l,h,p,...d]=this.#r;u[0]===""&&(u.shift(),d.shift());let m=[s,o,a,c,""].join("/"),v=[f,l,h,p,""].join("/");this.#e=[m,...u],this.#r=[v,...d],this.length=this.#e.length}else if(this.isDrive()||this.isAbsolute()){let[s,...o]=this.#e,[a,...c]=this.#r;o[0]===""&&(o.shift(),c.shift());let u=s+"/",f=a+"/";this.#e=[u,...o],this.#r=[f,...c],this.length=this.#e.length}}}pattern(){return this.#e[this.#t]}isString(){return typeof this.#e[this.#t]=="string"}isGlobstar(){return this.#e[this.#t]===Qj.GLOBSTAR}isRegExp(){return this.#e[this.#t]instanceof RegExp}globString(){return this.#h=this.#h||(this.#t===0?this.isAbsolute()?this.#r[0]+this.#r.slice(1).join("/"):this.#r.join("/"):this.#r.slice(this.#t).join("/"))}hasMore(){return this.length>this.#t+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new e(this.#e,this.#r,this.#t+1,this.#n),this.#o.#a=this.#a,this.#o.#l=this.#l,this.#o.#c=this.#c,this.#o):this.#o=null}isUNC(){let t=this.#e;return this.#l!==void 0?this.#l:this.#l=this.#n==="win32"&&this.#t===0&&t[0]===""&&t[1]===""&&typeof t[2]=="string"&&!!t[2]&&typeof t[3]=="string"&&!!t[3]}isDrive(){let t=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#n==="win32"&&this.#t===0&&this.length>1&&typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0])}isAbsolute(){let t=this.#e;return this.#a!==void 0?this.#a:this.#a=t[0]===""&&t.length>1||this.isDrive()||this.isUNC()}root(){let t=this.#e[0];return typeof t=="string"&&this.isAbsolute()&&this.#t===0?t:""}checkFollowGlobstar(){return!(this.#t===0||!this.isGlobstar()||!this.#u)}markFollowGlobstar(){return this.#t===0||!this.isGlobstar()||!this.#u?!1:(this.#u=!1,!0)}};Pu.Pattern=fp});var dp=R(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.Ignore=void 0;var p1=$r(),t3=hp(),r3=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",pp=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:r,nocase:n,noext:i,noglobstar:s,platform:o=r3}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:r,nocase:n,noext:i,noglobstar:s,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of t)this.add(a)}add(t){let r=new p1.Minimatch(t,this.mmopts);for(let n=0;n<r.set.length;n++){let i=r.set[n],s=r.globParts[n];if(!i||!s)throw new Error("invalid pattern object");for(;i[0]==="."&&s[0]===".";)i.shift(),s.shift();let o=new t3.Pattern(i,s,0,this.platform),a=new p1.Minimatch(o.globString(),this.mmopts),c=s[s.length-1]==="**",u=o.isAbsolute();u?this.absolute.push(a):this.relative.push(a),c&&(u?this.absoluteChildren.push(a):this.relativeChildren.push(a))}}ignored(t){let r=t.fullpath(),n=`${r}/`,i=t.relative()||".",s=`${i}/`;for(let o of this.relative)if(o.match(i)||o.match(s))return!0;for(let o of this.absolute)if(o.match(r)||o.match(n))return!0;return!1}childrenIgnored(t){let r=t.fullpath()+"/",n=(t.relative()||".")+"/";for(let i of this.relativeChildren)if(i.match(n))return!0;for(let i of this.absoluteChildren)if(i.match(r))return!0;return!1}};Ou.Ignore=pp});var g1=R(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Processor=Cr.SubWalks=Cr.MatchRecord=Cr.HasWalkedCache=void 0;var d1=$r(),Ru=class e{store;constructor(t=new Map){this.store=t}copy(){return new e(new Map(this.store))}hasWalked(t,r){return this.store.get(t.fullpath())?.has(r.globString())}storeWalked(t,r){let n=t.fullpath(),i=this.store.get(n);i?i.add(r.globString()):this.store.set(n,new Set([r.globString()]))}};Cr.HasWalkedCache=Ru;var _u=class{store=new Map;add(t,r,n){let i=(r?2:0)|(n?1:0),s=this.store.get(t);this.store.set(t,s===void 0?i:i&s)}entries(){return[...this.store.entries()].map(([t,r])=>[t,!!(r&2),!!(r&1)])}};Cr.MatchRecord=_u;var ku=class{store=new Map;add(t,r){if(!t.canReaddir())return;let n=this.store.get(t);n?n.find(i=>i.globString()===r.globString())||n.push(r):this.store.set(t,[r])}get(t){let r=this.store.get(t);if(!r)throw new Error("attempting to walk unknown path");return r}entries(){return this.keys().map(t=>[t,this.store.get(t)])}keys(){return[...this.store.keys()].filter(t=>t.canReaddir())}};Cr.SubWalks=ku;var gp=class e{hasWalkedCache;matches=new _u;subwalks=new ku;patterns;follow;dot;opts;constructor(t,r){this.opts=t,this.follow=!!t.follow,this.dot=!!t.dot,this.hasWalkedCache=r?r.copy():new Ru}processPatterns(t,r){this.patterns=r;let n=r.map(i=>[t,i]);for(let[i,s]of n){this.hasWalkedCache.storeWalked(i,s);let o=s.root(),a=s.isAbsolute()&&this.opts.absolute!==!1;if(o){i=i.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let l=s.rest();if(l)s=l;else{this.matches.add(i,!0,!1);continue}}if(i.isENOENT())continue;let c,u,f=!1;for(;typeof(c=s.pattern())=="string"&&(u=s.rest());)i=i.resolve(c),s=u,f=!0;if(c=s.pattern(),u=s.rest(),f){if(this.hasWalkedCache.hasWalked(i,s))continue;this.hasWalkedCache.storeWalked(i,s)}if(typeof c=="string"){let l=c===".."||c===""||c===".";this.matches.add(i.resolve(c),a,l);continue}else if(c===d1.GLOBSTAR){(!i.isSymbolicLink()||this.follow||s.checkFollowGlobstar())&&this.subwalks.add(i,s);let l=u?.pattern(),h=u?.rest();if(!u||(l===""||l===".")&&!h)this.matches.add(i,a,l===""||l===".");else if(l===".."){let p=i.parent||i;h?this.hasWalkedCache.hasWalked(p,h)||this.subwalks.add(p,h):this.matches.add(p,a,!0)}}else c instanceof RegExp&&this.subwalks.add(i,s)}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new e(this.opts,this.hasWalkedCache)}filterEntries(t,r){let n=this.subwalks.get(t),i=this.child();for(let s of r)for(let o of n){let a=o.isAbsolute(),c=o.pattern(),u=o.rest();c===d1.GLOBSTAR?i.testGlobstar(s,o,u,a):c instanceof RegExp?i.testRegExp(s,c,u,a):i.testString(s,c,u,a)}return i}testGlobstar(t,r,n,i){if((this.dot||!t.name.startsWith("."))&&(r.hasMore()||this.matches.add(t,i,!1),t.canReaddir()&&(this.follow||!t.isSymbolicLink()?this.subwalks.add(t,r):t.isSymbolicLink()&&(n&&r.checkFollowGlobstar()?this.subwalks.add(t,n):r.markFollowGlobstar()&&this.subwalks.add(t,r)))),n){let s=n.pattern();if(typeof s=="string"&&s!==".."&&s!==""&&s!==".")this.testString(t,s,n.rest(),i);else if(s===".."){let o=t.parent||t;this.subwalks.add(o,n)}else s instanceof RegExp&&this.testRegExp(t,s,n.rest(),i)}}testRegExp(t,r,n,i){r.test(t.name)&&(n?this.subwalks.add(t,n):this.matches.add(t,i,!1))}testString(t,r,n,i){t.isNamed(r)&&(n?this.subwalks.add(t,n):this.matches.add(t,i,!1))}};Cr.Processor=gp});var v1=R(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.GlobStream=mn.GlobWalker=mn.GlobUtil=void 0;var n3=up(),m1=dp(),y1=g1(),i3=(e,t)=>typeof e=="string"?new m1.Ignore([e],t):Array.isArray(e)?new m1.Ignore(e,t):e,Us=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#r;#t;signal;maxDepth;includeChildMatches;constructor(t,r,n){if(this.patterns=t,this.path=r,this.opts=n,this.#t=!n.posix&&n.platform==="win32"?"\\":"/",this.includeChildMatches=n.includeChildMatches!==!1,(n.ignore||!this.includeChildMatches)&&(this.#r=i3(n.ignore??[],n),!this.includeChildMatches&&typeof this.#r.add!="function")){let i="cannot ignore child matches, ignore lacks add() method.";throw new Error(i)}this.maxDepth=n.maxDepth||1/0,n.signal&&(this.signal=n.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0}))}#n(t){return this.seen.has(t)||!!this.#r?.ignored?.(t)}#o(t){return!!this.#r?.childrenIgnored?.(t)}pause(){this.paused=!0}resume(){if(this.signal?.aborted)return;this.paused=!1;let t;for(;!this.paused&&(t=this.#e.shift());)t()}onResume(t){this.signal?.aborted||(this.paused?this.#e.push(t):t())}async matchCheck(t,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=t.realpathCached()||await t.realpath(),!n)return;t=n}let s=t.isUnknown()||this.opts.stat?await t.lstat():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=await s.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat()}return this.matchCheckTest(s,r)}matchCheckTest(t,r){return t&&(this.maxDepth===1/0||t.depth()<=this.maxDepth)&&(!r||t.canReaddir())&&(!this.opts.nodir||!t.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!t.isSymbolicLink()||!t.realpathCached()?.isDirectory())&&!this.#n(t)?t:void 0}matchCheckSync(t,r){if(r&&this.opts.nodir)return;let n;if(this.opts.realpath){if(n=t.realpathCached()||t.realpathSync(),!n)return;t=n}let s=t.isUnknown()||this.opts.stat?t.lstatSync():t;if(this.opts.follow&&this.opts.nodir&&s?.isSymbolicLink()){let o=s.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync()}return this.matchCheckTest(s,r)}matchFinish(t,r){if(this.#n(t))return;if(!this.includeChildMatches&&this.#r?.add){let s=`${t.relativePosix()}/**`;this.#r.add(s)}let n=this.opts.absolute===void 0?r:this.opts.absolute;this.seen.add(t);let i=this.opts.mark&&t.isDirectory()?this.#t:"";if(this.opts.withFileTypes)this.matchEmit(t);else if(n){let s=this.opts.posix?t.fullpathPosix():t.fullpath();this.matchEmit(s+i)}else{let s=this.opts.posix?t.relativePosix():t.relative(),o=this.opts.dotRelative&&!s.startsWith(".."+this.#t)?"."+this.#t:"";this.matchEmit(s?o+s+i:"."+i)}}async match(t,r,n){let i=await this.matchCheck(t,n);i&&this.matchFinish(i,r)}matchSync(t,r,n){let i=this.matchCheckSync(t,n);i&&this.matchFinish(i,r)}walkCB(t,r,n){this.signal?.aborted&&n(),this.walkCB2(t,r,new y1.Processor(this.opts),n)}walkCB2(t,r,n,i){if(this.#o(t))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2(t,r,n,i));return}n.processPatterns(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,c,u]of n.matches.entries())this.#n(a)||(s++,this.match(a,c,u).then(()=>o()));for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let c=a.readdirCached();a.calledReaddir()?this.walkCB3(a,c,n,o):a.readdirCB((u,f)=>this.walkCB3(a,f,n,o),!0)}o()}walkCB3(t,r,n,i){n=n.filterEntries(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,c,u]of n.matches.entries())this.#n(a)||(s++,this.match(a,c,u).then(()=>o()));for(let[a,c]of n.subwalks.entries())s++,this.walkCB2(a,c,n.child(),o);o()}walkCBSync(t,r,n){this.signal?.aborted&&n(),this.walkCB2Sync(t,r,new y1.Processor(this.opts),n)}walkCB2Sync(t,r,n,i){if(this.#o(t))return i();if(this.signal?.aborted&&i(),this.paused){this.onResume(()=>this.walkCB2Sync(t,r,n,i));return}n.processPatterns(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,c,u]of n.matches.entries())this.#n(a)||this.matchSync(a,c,u);for(let a of n.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;s++;let c=a.readdirSync();this.walkCB3Sync(a,c,n,o)}o()}walkCB3Sync(t,r,n,i){n=n.filterEntries(t,r);let s=1,o=()=>{--s===0&&i()};for(let[a,c,u]of n.matches.entries())this.#n(a)||this.matchSync(a,c,u);for(let[a,c]of n.subwalks.entries())s++,this.walkCB2Sync(a,c,n.child(),o);o()}};mn.GlobUtil=Us;var mp=class extends Us{matches=new Set;constructor(t,r,n){super(t,r,n)}matchEmit(t){this.matches.add(t)}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((t,r)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?r(this.signal.reason):t(this.matches)})}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}};mn.GlobWalker=mp;var yp=class extends Us{results;constructor(t,r,n){super(t,r,n),this.results=new n3.Minipass({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume())}matchEmit(t){this.results.write(t),this.results.flowing||this.pause()}stream(){let t=this.path;return t.isUnknown()?t.lstat().then(()=>{this.walkCB(t,this.patterns,()=>this.results.end())}):this.walkCB(t,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}};mn.GlobStream=yp});var Ap=R(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.Glob=void 0;var s3=$r(),o3=q("node:url"),Du=h1(),a3=hp(),Fu=v1(),u3=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",vp=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(t,r){if(!r)throw new TypeError("glob options required");if(this.withFileTypes=!!r.withFileTypes,this.signal=r.signal,this.follow=!!r.follow,this.dot=!!r.dot,this.dotRelative=!!r.dotRelative,this.nodir=!!r.nodir,this.mark=!!r.mark,r.cwd?(r.cwd instanceof URL||r.cwd.startsWith("file://"))&&(r.cwd=(0,o3.fileURLToPath)(r.cwd)):this.cwd="",this.cwd=r.cwd||"",this.root=r.root,this.magicalBraces=!!r.magicalBraces,this.nobrace=!!r.nobrace,this.noext=!!r.noext,this.realpath=!!r.realpath,this.absolute=r.absolute,this.includeChildMatches=r.includeChildMatches!==!1,this.noglobstar=!!r.noglobstar,this.matchBase=!!r.matchBase,this.maxDepth=typeof r.maxDepth=="number"?r.maxDepth:1/0,this.stat=!!r.stat,this.ignore=r.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof t=="string"&&(t=[t]),this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(t=t.map(c=>c.replace(/\\/g,"/"))),this.matchBase){if(r.noglobstar)throw new TypeError("base matching requires globstar");t=t.map(c=>c.includes("/")?c:`./**/${c}`)}if(this.pattern=t,this.platform=r.platform||u3,this.opts={...r,platform:this.platform},r.scurry){if(this.scurry=r.scurry,r.nocase!==void 0&&r.nocase!==r.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else{let c=r.platform==="win32"?Du.PathScurryWin32:r.platform==="darwin"?Du.PathScurryDarwin:r.platform?Du.PathScurryPosix:Du.PathScurry;this.scurry=new c(this.cwd,{nocase:r.nocase,fs:r.fs})}this.nocase=this.scurry.nocase;let n=this.platform==="darwin"||this.platform==="win32",i={...r,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:n,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},s=this.pattern.map(c=>new s3.Minimatch(c,i)),[o,a]=s.reduce((c,u)=>(c[0].push(...u.set),c[1].push(...u.globParts),c),[[],[]]);this.patterns=o.map((c,u)=>{let f=a[u];if(!f)throw new Error("invalid pattern object");return new a3.Pattern(c,f,0,this.platform)})}async walk(){return[...await new Fu.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new Fu.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Fu.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Fu.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}};Lu.Glob=vp});var Ep=R(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.hasMagic=void 0;var c3=$r(),l3=(e,t={})=>{Array.isArray(e)||(e=[e]);for(let r of e)if(new c3.Minimatch(r,t).hasMagic())return!0;return!1};Tu.hasMagic=l3});var Cp=R(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.glob=me.sync=me.iterate=me.iterateSync=me.stream=me.streamSync=me.Ignore=me.hasMagic=me.Glob=me.unescape=me.escape=void 0;me.globStreamSync=Hs;me.globStream=wp;me.globSync=Sp;me.globIterateSync=Ys;me.globIterate=bp;var A1=$r(),$n=Ap(),f3=Ep(),w1=$r();Object.defineProperty(me,"escape",{enumerable:!0,get:function(){return w1.escape}});Object.defineProperty(me,"unescape",{enumerable:!0,get:function(){return w1.unescape}});var h3=Ap();Object.defineProperty(me,"Glob",{enumerable:!0,get:function(){return h3.Glob}});var p3=Ep();Object.defineProperty(me,"hasMagic",{enumerable:!0,get:function(){return p3.hasMagic}});var d3=dp();Object.defineProperty(me,"Ignore",{enumerable:!0,get:function(){return d3.Ignore}});function Hs(e,t={}){return new $n.Glob(e,t).streamSync()}function wp(e,t={}){return new $n.Glob(e,t).stream()}function Sp(e,t={}){return new $n.Glob(e,t).walkSync()}async function E1(e,t={}){return new $n.Glob(e,t).walk()}function Ys(e,t={}){return new $n.Glob(e,t).iterateSync()}function bp(e,t={}){return new $n.Glob(e,t).iterate()}me.streamSync=Hs;me.stream=Object.assign(wp,{sync:Hs});me.iterateSync=Ys;me.iterate=Object.assign(bp,{sync:Ys});me.sync=Object.assign(Sp,{stream:Hs,iterate:Ys});me.glob=Object.assign(E1,{glob:E1,globSync:Sp,sync:me.sync,globStream:wp,stream:me.stream,globStreamSync:Hs,streamSync:me.streamSync,globIterate:bp,iterate:me.iterate,globIterateSync:Ys,iterateSync:me.iterateSync,Glob:$n.Glob,hasMagic:f3.hasMagic,escape:A1.escape,unescape:A1.unescape});me.glob.glob=me.glob});var b1=R($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.sync=$i.isexe=void 0;var g3=q("fs"),m3=q("fs/promises"),y3=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return S1(await(0,m3.stat)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};$i.isexe=y3;var v3=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return S1((0,g3.statSync)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};$i.sync=v3;var S1=(e,t)=>e.isFile()&&A3(e,t),A3=(e,t)=>{let r=t.uid??process.getuid?.(),n=t.groups??process.getgroups?.()??[],i=t.gid??process.getgid?.()??n[0];if(r===void 0||i===void 0)throw new Error("cannot get uid or gid");let s=new Set([i,...n]),o=e.mode,a=e.uid,c=e.gid,u=parseInt("100",8),f=parseInt("010",8),l=parseInt("001",8),h=u|f;return!!(o&l||o&f&&s.has(c)||o&u&&a===r||o&h&&r===0)}});var x1=R(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.sync=Bi.isexe=void 0;var E3=q("fs"),w3=q("fs/promises"),S3=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return C1(await(0,w3.stat)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};Bi.isexe=S3;var b3=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return C1((0,E3.statSync)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};Bi.sync=b3;var C3=(e,t)=>{let{pathExt:r=process.env.PATHEXT||""}=t,n=r.split(";");if(n.indexOf("")!==-1)return!0;for(let i=0;i<n.length;i++){let s=n[i].toLowerCase(),o=e.substring(e.length-s.length).toLowerCase();if(s&&o===s)return!0}return!1},C1=(e,t,r)=>e.isFile()&&C3(t,r)});var O1=R(P1=>{"use strict";Object.defineProperty(P1,"__esModule",{value:!0})});var L1=R(Ge=>{"use strict";var R1=Ge&&Ge.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),x3=Ge&&Ge.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),_1=Ge&&Ge.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&R1(t,e,r);return x3(t,e),t},P3=Ge&&Ge.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&R1(t,e,r)};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.sync=Ge.isexe=Ge.posix=Ge.win32=void 0;var k1=_1(b1());Ge.posix=k1;var D1=_1(x1());Ge.win32=D1;P3(O1(),Ge);var O3=process.env._ISEXE_TEST_PLATFORM_||process.platform,F1=O3==="win32"?D1:k1;Ge.isexe=F1.isexe;Ge.sync=F1.sync});var xp=R((e5,W1)=>{var{isexe:R3,sync:_3}=L1(),{join:k3,delimiter:D3,sep:T1,posix:N1}=q("path"),I1=process.platform==="win32",$1=new RegExp(`[${N1.sep}${T1===N1.sep?"":T1}]`.replace(/(\\)/g,"\\$1")),F3=new RegExp(`^\\.${$1.source}`),B1=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),M1=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=D3})=>{let i=e.match($1)?[""]:[...I1?[process.cwd()]:[],...(t||"").split(n)];if(I1){let s=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=s.split(n).flatMap(a=>[a,a.toLowerCase()]);return e.includes(".")&&o[0]!==""&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:s}}return{pathEnv:i,pathExt:[""]}},j1=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&F3.test(t)?t.slice(0,2):"")+k3(r,t)},q1=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=M1(e,t),s=[];for(let o of r){let a=j1(o,e);for(let c of n){let u=a+c;if(await R3(u,{pathExt:i,ignoreErrors:!0})){if(!t.all)return u;s.push(u)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw B1(e)},L3=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=M1(e,t),s=[];for(let o of r){let a=j1(o,e);for(let c of n){let u=a+c;if(_3(u,{pathExt:i,ignoreErrors:!0})){if(!t.all)return u;s.push(u)}}}if(t.all&&s.length)return s;if(t.nothrow)return null;throw B1(e)};W1.exports=q1;q1.sync=L3});var U1=R((t5,G1)=>{"use strict";var T3=(e,t)=>{if(!e.length)return'""';let r;if(!/[ \t\n\v"]/.test(e))r=e;else{r='"';for(let n=0;n<=e.length;++n){let i=0;for(;e[n]==="\\";)++n,++i;if(n===e.length){r+="\\".repeat(i*2);break}e[n]==='"'?(r+="\\".repeat(i*2+1),r+=e[n]):(r+="\\".repeat(i),r+=e[n])}r+='"'}return r=r.replace(/[ !%^&()<>|"]/g,"^$&"),t&&(r=r.replace(/[ !%^&()<>|"]/g,"^$&")),r},N3=e=>e.length?/[\t\n\r "#$&'()*;<>?\\`|~]/.test(e)?`'${e.replace(/'/g,"'\\''")}'`.replace(/^(?:'')+(?!$)/,"").replace(/\\'''/g,"\\'"):e:"''";G1.exports={cmd:T3,sh:N3}});var K1=R((r5,V1)=>{"use strict";var{spawn:I3}=q("child_process"),$3=q("os"),B3=xp(),H1=U1(),Op=(e,t,r={},n={})=>{if(r.shell)return z1(e,t,r,n);let i,s,o=new Promise((p,d)=>{i=p,s=d}),a=new Error("command failed"),c=[],u=[],f=p=>({cmd:e,args:t,...p,...j3(c,u,r),...n}),l=(p,d)=>{let m=f(d);s(Object.assign(p,m))},h=I3(e,t,r);return o.stdin=h.stdin,o.process=h,h.on("error",l),h.stdout&&(h.stdout.on("data",p=>c.push(p)),h.stdout.on("error",l)),h.stderr&&(h.stderr.on("data",p=>u.push(p)),h.stderr.on("error",l)),h.on("close",(p,d)=>{p||d?l(a,{code:p,signal:d}):i(f({code:p,signal:d}))}),o},z1=(e,t,r,n)=>{let i=r.shell;i===!0&&(i=process.platform==="win32"?process.env.ComSpec:"sh");let s={...r,shell:!1},o=[],a=e;if(/(?:^|\\)cmd(?:\.exe)?$/i.test(i)){let u=!1,f="",l=!1;for(let p=0;p<e.length;++p){let d=e.charAt(p);if(d===" "&&!l)break;f+=d,(d==='"'||d==="'")&&(l=!l)}let h;try{h=B3.sync(f,{path:s.env&&Y1(s.env,"PATH")||process.env.PATH,pathext:s.env&&Y1(s.env,"PATHEXT")||process.env.PATHEXT}).toLowerCase()}catch{h=f.toLowerCase()}u=h.endsWith(".cmd")||h.endsWith(".bat");for(let p of t)a+=` ${H1.cmd(p,u)}`;o.push("/d","/s","/c",a),s.windowsVerbatimArguments=!0}else{for(let u of t)a+=` ${H1.sh(u)}`;o.push("-c",a)}return Op(i,o,s,n)},M3=(e,t={},r={})=>{let n={...t,shell:!0},i=[].concat(e),s=process.platform;if(s==="linux"&&$3.release().toLowerCase().includes("microsoft")&&(s="wsl",!process.env.BROWSER))return Promise.reject(new Error("Set the BROWSER environment variable to your desired browser."));let o=n.command;return o||(s==="win32"?(n.shell=process.env.ComSpec,o='start ""'):s==="wsl"?o="sensible-browser":s==="darwin"?o="open":o="xdg-open"),z1(o,i,n,r)};Op.open=M3;var Pp=(e="pipe",t)=>e==="pipe"||e===null?!0:Array.isArray(e)?Pp(e[t],t):!1,j3=(e,t,{stdioString:r=!0,stdio:n})=>{let i={stdout:null,stderr:null};return Pp(n,1)&&(i.stdout=Buffer.concat(e),r&&(i.stdout=i.stdout.toString().trim())),Pp(n,2)&&(i.stderr=Buffer.concat(t),r&&(i.stderr=i.stderr.toString().trim())),i},Y1=(e,t)=>{t=t.toLowerCase();for(let r of Object.keys(e).sort())if(r.toLowerCase()===t)return e[r]};V1.exports=Op});var Q1=R((n5,J1)=>{"use strict";function X1(e,t){for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!0,configurable:!0});return e}function q3(e,t,r){if(!e||typeof e=="string")throw new TypeError("Please pass an Error to err-code");r||(r={}),typeof t=="object"&&(r=t,t=void 0),t!=null&&(r.code=t);try{return X1(e,r)}catch{r.message=e.message,r.stack=e.stack;let i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(e)),X1(new i,r)}}J1.exports=q3});var eb=R((i5,Z1)=>{function zt(e,t){typeof t=="boolean"&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}Z1.exports=zt;zt.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts};zt.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timeouts=[],this._cachedTimeouts=null};zt.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.unshift(new Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(r===void 0)if(this._cachedTimeouts)this._errors.splice(this._errors.length-1,this._errors.length),this._timeouts=this._cachedTimeouts.slice(0),r=this._timeouts.shift();else return!1;var n=this,i=setTimeout(function(){n._attempts++,n._operationTimeoutCb&&(n._timeout=setTimeout(function(){n._operationTimeoutCb(n._attempts)},n._operationTimeout),n._options.unref&&n._timeout.unref()),n._fn(n._attempts)},r);return this._options.unref&&i.unref(),!0};zt.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)};zt.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)};zt.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)};zt.prototype.start=zt.prototype.try;zt.prototype.errors=function(){return this._errors};zt.prototype.attempts=function(){return this._attempts};zt.prototype.mainError=function(){if(this._errors.length===0)return null;for(var e={},t=null,r=0,n=0;n<this._errors.length;n++){var i=this._errors[n],s=i.message,o=(e[s]||0)+1;e[s]=o,o>=r&&(t=i,r=o)}return t}});var tb=R(Bn=>{var W3=eb();Bn.operation=function(e){var t=Bn.timeouts(e);return new W3(t,{forever:e&&e.forever,unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})};Bn.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");for(var n=[],i=0;i<t.retries;i++)n.push(this.createTimeout(i,t));return e&&e.forever&&!n.length&&n.push(this.createTimeout(i,t)),n.sort(function(s,o){return s-o}),n};Bn.createTimeout=function(e,t){var r=t.randomize?Math.random()+1:1,n=Math.round(r*t.minTimeout*Math.pow(t.factor,e));return n=Math.min(n,t.maxTimeout),n};Bn.wrap=function(e,t,r){if(t instanceof Array&&(r=t,t=null),!r){r=[];for(var n in e)typeof e[n]=="function"&&r.push(n)}for(var i=0;i<r.length;i++){var s=r[i],o=e[s];e[s]=function(c){var u=Bn.operation(t),f=Array.prototype.slice.call(arguments,1),l=f.pop();f.push(function(h){u.retry(h)||(h&&(arguments[0]=u.mainError()),l.apply(this,arguments))}),u.attempt(function(){c.apply(e,f)})}.bind(e,o),e[s].options=t}}});var nb=R((o5,rb)=>{rb.exports=tb()});var ob=R((a5,sb)=>{"use strict";var G3=Q1(),U3=nb(),H3=Object.prototype.hasOwnProperty;function ib(e){return e&&e.code==="EPROMISERETRY"&&H3.call(e,"retried")}function Y3(e,t){var r,n;return typeof e=="object"&&typeof t=="function"&&(r=t,t=e,e=r),n=U3.operation(t),new Promise(function(i,s){n.attempt(function(o){Promise.resolve().then(function(){return e(function(a){throw ib(a)&&(a=a.retried),G3(new Error("Retrying"),"EPROMISERETRY",{retried:a})},o)}).then(i,function(a){ib(a)&&(a=a.retried,n.retry(a||new Error))||s(a)})})})}sb.exports=Y3});var Dp=R((u5,ab)=>{var zs=class extends Error{shouldRetry(){return!1}},Rp=class extends zs{constructor(){super("A git connection error occurred")}shouldRetry(t){return t<3}},_p=class extends zs{constructor(){super("The git reference could not be found")}},kp=class extends zs{constructor(){super("An unknown git error occurred")}};ab.exports={GitConnectionError:Rp,GitPathspecError:_p,GitUnknownError:kp}});var cb=R((c5,ub)=>{var{GitConnectionError:z3,GitPathspecError:V3,GitUnknownError:K3}=Dp(),X3=new RegExp(["remote error: Internal Server Error","The remote end hung up unexpectedly","Connection timed out","Operation timed out","Failed to connect to .* Timed out","Connection reset by peer","SSL_ERROR_SYSCALL","The requested URL returned error: 503"].join("|")),J3=/pathspec .* did not match any file\(s\) known to git/;function Q3(e){let t=e.stderr,r;return X3.test(t)?r=new z3(t):J3.test(t)?r=new V3(t):r=new K3(t),Object.assign(r,e)}ub.exports=Q3});var pb=R((l5,Fp)=>{var lb=q("node:fs"),Z3=q("node:os"),eq=q("node:path"),tq=Eh(),fb=eq.join(Z3.homedir(),".gitconfig"),Vs=null,hb=()=>{if(Vs===null)try{if(Vs={},lb.existsSync(fb)){let e=lb.readFileSync(fb,"utf-8");Vs=tq.parse(e)}}catch{Vs={}}return Vs},rq=()=>{let e=hb();return{sshCommandSetInConfig:e?.core?.sshCommand!==void 0,askPassSetInConfig:e?.core?.askpass!==void 0}},nq=process.env.GIT_SSH_COMMAND!==void 0,iq=process.env.GIT_ASKPASS!==void 0,{sshCommandSetInConfig:sq,askPassSetInConfig:oq}=rq(),aq={...iq||oq?{}:{GIT_ASKPASS:"echo"},...nq||sq?{}:{GIT_SSH_COMMAND:"ssh -oStrictHostKeyChecking=accept-new"}};Fp.exports=(e={})=>({stdioString:!0,...e,shell:!1,env:e.env||{...aq,...process.env}});Fp.exports.loadGitConfig=hb});var gb=R((f5,db)=>{var uq=xp(),Lp;try{Lp=uq.sync("git")}catch{}db.exports=(e={})=>e.git?e.git:!Lp||e.git===!1?Object.assign(new Error("No git binary found in $PATH"),{code:"ENOGIT"}):Lp});var Ks=R((h5,mb)=>{var cq=K1(),lq=ob(),{log:fq}=Cs(),hq=cb(),pq=pb();mb.exports=(e,t={})=>{let n=gb()(t);if(n instanceof Error)return Promise.reject(n);let i=t.allowReplace||e[0]==="--no-replace-objects"?e:["--no-replace-objects",...e],s=t.retry;return s==null&&(s={retries:t.fetchRetries||2,factor:t.fetchRetryFactor||10,maxTimeout:t.fetchRetryMaxtimeout||6e4,minTimeout:t.fetchRetryMintimeout||1e3}),lq((o,a)=>(a!==1&&fq.silly("git",`Retrying git command: ${i.join(" ")} attempt # ${a}`),cq(n,i,pq(t)).catch(c=>{let u=hq(c);if(!u.shouldRetry(a))throw u;o(u)})),s)}});var Ab=R((p5,vb)=>{var yb=at(),dq=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new yb(e instanceof yb?e.version:e,r).inc(t,n,i).version}catch{return null}};vb.exports=dq});var Sb=R((d5,wb)=>{var Eb=Ln(),gq=(e,t)=>{let r=Eb(e,null,!0),n=Eb(t,null,!0),i=r.compare(n);if(i===0)return null;let s=i>0,o=s?r:n,a=s?n:r,c=!!o.prerelease.length;if(!!a.prerelease.length&&!c){if(!a.patch&&!a.minor)return"major";if(a.compareMain(o)===0)return a.minor&&!a.patch?"minor":"patch"}let f=c?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};wb.exports=gq});var Cb=R((g5,bb)=>{var mq=at(),yq=(e,t)=>new mq(e,t).major;bb.exports=yq});var Pb=R((m5,xb)=>{var vq=at(),Aq=(e,t)=>new vq(e,t).minor;xb.exports=Aq});var Rb=R((y5,Ob)=>{var Eq=at(),wq=(e,t)=>new Eq(e,t).patch;Ob.exports=wq});var kb=R((v5,_b)=>{var Sq=Ln(),bq=(e,t)=>{let r=Sq(e,t);return r&&r.prerelease.length?r.prerelease:null};_b.exports=bq});var Vt=R((A5,Fb)=>{var Db=at(),Cq=(e,t,r)=>new Db(e,r).compare(new Db(t,r));Fb.exports=Cq});var Tb=R((E5,Lb)=>{var xq=Vt(),Pq=(e,t,r)=>xq(t,e,r);Lb.exports=Pq});var Ib=R((w5,Nb)=>{var Oq=Vt(),Rq=(e,t)=>Oq(e,t,!0);Nb.exports=Rq});var Nu=R((S5,Bb)=>{var $b=at(),_q=(e,t,r)=>{let n=new $b(e,r),i=new $b(t,r);return n.compare(i)||n.compareBuild(i)};Bb.exports=_q});var jb=R((b5,Mb)=>{var kq=Nu(),Dq=(e,t)=>e.sort((r,n)=>kq(r,n,t));Mb.exports=Dq});var Wb=R((C5,qb)=>{var Fq=Nu(),Lq=(e,t)=>e.sort((r,n)=>Fq(n,r,t));qb.exports=Lq});var Xs=R((x5,Gb)=>{var Tq=Vt(),Nq=(e,t,r)=>Tq(e,t,r)>0;Gb.exports=Nq});var Iu=R((P5,Ub)=>{var Iq=Vt(),$q=(e,t,r)=>Iq(e,t,r)<0;Ub.exports=$q});var Tp=R((O5,Hb)=>{var Bq=Vt(),Mq=(e,t,r)=>Bq(e,t,r)===0;Hb.exports=Mq});var Np=R((R5,Yb)=>{var jq=Vt(),qq=(e,t,r)=>jq(e,t,r)!==0;Yb.exports=qq});var $u=R((_5,zb)=>{var Wq=Vt(),Gq=(e,t,r)=>Wq(e,t,r)>=0;zb.exports=Gq});var Bu=R((k5,Vb)=>{var Uq=Vt(),Hq=(e,t,r)=>Uq(e,t,r)<=0;Vb.exports=Hq});var Ip=R((D5,Kb)=>{var Yq=Tp(),zq=Np(),Vq=Xs(),Kq=$u(),Xq=Iu(),Jq=Bu(),Qq=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return Yq(e,r,n);case"!=":return zq(e,r,n);case">":return Vq(e,r,n);case">=":return Kq(e,r,n);case"<":return Xq(e,r,n);case"<=":return Jq(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};Kb.exports=Qq});var Jb=R((F5,Xb)=>{var Zq=at(),eW=Ln(),{safeRe:Mu,t:ju}=ki(),tW=(e,t)=>{if(e instanceof Zq)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Mu[ju.COERCEFULL]:Mu[ju.COERCE]);else{let c=t.includePrerelease?Mu[ju.COERCERTLFULL]:Mu[ju.COERCERTL],u;for(;(u=c.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),c.lastIndex=u.index+u[1].length+u[2].length;c.lastIndex=-1}if(r===null)return null;let n=r[2],i=r[3]||"0",s=r[4]||"0",o=t.includePrerelease&&r[5]?`-${r[5]}`:"",a=t.includePrerelease&&r[6]?`+${r[6]}`:"";return eW(`${n}.${i}.${s}${o}${a}`,t)};Xb.exports=tW});var Zb=R((L5,Qb)=>{var $p=class{constructor(){this.max=1e3,this.map=new Map}get(t){let r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){let i=this.map.keys().next().value;this.delete(i)}this.map.set(t,r)}return this}};Qb.exports=$p});var Kt=R((T5,nC)=>{var rW=/\s+/g,Bp=class e{constructor(t,r){if(r=iW(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof Mp)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(rW," "),this.set=this.raw.split("||").map(n=>this.parseRange(n.trim())).filter(n=>n.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let n=this.set[0];if(this.set=this.set.filter(i=>!tC(i[0])),this.set.length===0)this.set=[n];else if(this.set.length>1){for(let i of this.set)if(i.length===1&&fW(i[0])){this.set=[i];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let r=this.set[t];for(let n=0;n<r.length;n++)n>0&&(this.formatted+=" "),this.formatted+=r[n].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){let n=((this.options.includePrerelease&&cW)|(this.options.loose&&lW))+":"+t,i=eC.get(n);if(i)return i;let s=this.options.loose,o=s?Ot[vt.HYPHENRANGELOOSE]:Ot[vt.HYPHENRANGE];t=t.replace(o,wW(this.options.includePrerelease)),_e("hyphen replace",t),t=t.replace(Ot[vt.COMPARATORTRIM],oW),_e("comparator trim",t),t=t.replace(Ot[vt.TILDETRIM],aW),_e("tilde trim",t),t=t.replace(Ot[vt.CARETTRIM],uW),_e("caret trim",t);let a=t.split(" ").map(l=>hW(l,this.options)).join(" ").split(/\s+/).map(l=>EW(l,this.options));s&&(a=a.filter(l=>(_e("loose invalid filter",l,this.options),!!l.match(Ot[vt.COMPARATORLOOSE])))),_e("range list",a);let c=new Map,u=a.map(l=>new Mp(l,this.options));for(let l of u){if(tC(l))return[l];c.set(l.value,l)}c.size>1&&c.has("")&&c.delete("");let f=[...c.values()];return eC.set(n,f),f}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>rC(n,r)&&t.set.some(i=>rC(i,r)&&n.every(s=>i.every(o=>s.intersects(o,r)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new sW(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(SW(this.set[r],t,this.options))return!0;return!1}};nC.exports=Bp;var nW=Zb(),eC=new nW,iW=Ua(),Mp=Js(),_e=xs(),sW=at(),{safeRe:Ot,t:vt,comparatorTrimReplace:oW,tildeTrimReplace:aW,caretTrimReplace:uW}=ki(),{FLAG_INCLUDE_PRERELEASE:cW,FLAG_LOOSE:lW}=Ps(),tC=e=>e.value==="<0.0.0-0",fW=e=>e.value==="",rC=(e,t)=>{let r=!0,n=e.slice(),i=n.pop();for(;r&&n.length;)r=n.every(s=>i.intersects(s,t)),i=n.pop();return r},hW=(e,t)=>(_e("comp",e,t),e=gW(e,t),_e("caret",e),e=pW(e,t),_e("tildes",e),e=yW(e,t),_e("xrange",e),e=AW(e,t),_e("stars",e),e),At=e=>!e||e.toLowerCase()==="x"||e==="*",pW=(e,t)=>e.trim().split(/\s+/).map(r=>dW(r,t)).join(" "),dW=(e,t)=>{let r=t.loose?Ot[vt.TILDELOOSE]:Ot[vt.TILDE];return e.replace(r,(n,i,s,o,a)=>{_e("tilde",e,n,i,s,o,a);let c;return At(i)?c="":At(s)?c=`>=${i}.0.0 <${+i+1}.0.0-0`:At(o)?c=`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?(_e("replaceTilde pr",a),c=`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`):c=`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`,_e("tilde return",c),c})},gW=(e,t)=>e.trim().split(/\s+/).map(r=>mW(r,t)).join(" "),mW=(e,t)=>{_e("caret",e,t);let r=t.loose?Ot[vt.CARETLOOSE]:Ot[vt.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,(i,s,o,a,c)=>{_e("caret",e,i,s,o,a,c);let u;return At(s)?u="":At(o)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:At(a)?s==="0"?u=`>=${s}.${o}.0${n} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.0${n} <${+s+1}.0.0-0`:c?(_e("replaceCaret pr",c),s==="0"?o==="0"?u=`>=${s}.${o}.${a}-${c} <${s}.${o}.${+a+1}-0`:u=`>=${s}.${o}.${a}-${c} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.${a}-${c} <${+s+1}.0.0-0`):(_e("no pr"),s==="0"?o==="0"?u=`>=${s}.${o}.${a}${n} <${s}.${o}.${+a+1}-0`:u=`>=${s}.${o}.${a}${n} <${s}.${+o+1}.0-0`:u=`>=${s}.${o}.${a} <${+s+1}.0.0-0`),_e("caret return",u),u})},yW=(e,t)=>(_e("replaceXRanges",e,t),e.split(/\s+/).map(r=>vW(r,t)).join(" ")),vW=(e,t)=>{e=e.trim();let r=t.loose?Ot[vt.XRANGELOOSE]:Ot[vt.XRANGE];return e.replace(r,(n,i,s,o,a,c)=>{_e("xRange",e,n,i,s,o,a,c);let u=At(s),f=u||At(o),l=f||At(a),h=l;return i==="="&&h&&(i=""),c=t.includePrerelease?"-0":"",u?i===">"||i==="<"?n="<0.0.0-0":n="*":i&&h?(f&&(o=0),a=0,i===">"?(i=">=",f?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",f?s=+s+1:o=+o+1),i==="<"&&(c="-0"),n=`${i+s}.${o}.${a}${c}`):f?n=`>=${s}.0.0${c} <${+s+1}.0.0-0`:l&&(n=`>=${s}.${o}.0${c} <${s}.${+o+1}.0-0`),_e("xRange return",n),n})},AW=(e,t)=>(_e("replaceStars",e,t),e.trim().replace(Ot[vt.STAR],"")),EW=(e,t)=>(_e("replaceGTE0",e,t),e.trim().replace(Ot[t.includePrerelease?vt.GTE0PRE:vt.GTE0],"")),wW=e=>(t,r,n,i,s,o,a,c,u,f,l,h)=>(At(n)?r="":At(i)?r=`>=${n}.0.0${e?"-0":""}`:At(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,At(u)?c="":At(f)?c=`<${+u+1}.0.0-0`:At(l)?c=`<${u}.${+f+1}.0-0`:h?c=`<=${u}.${f}.${l}-${h}`:e?c=`<${u}.${f}.${+l+1}-0`:c=`<=${c}`,`${r} ${c}`.trim()),SW=(e,t,r)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(let n=0;n<e.length;n++)if(_e(e[n].semver),e[n].semver!==Mp.ANY&&e[n].semver.prerelease.length>0){let i=e[n].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}});var Js=R((N5,cC)=>{var Qs=Symbol("SemVer ANY"),Wp=class e{static get ANY(){return Qs}constructor(t,r){if(r=iC(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),qp("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Qs?this.value="":this.value=this.operator+this.semver.version,qp("comp",this)}parse(t){let r=this.options.loose?sC[oC.COMPARATORLOOSE]:sC[oC.COMPARATOR],n=t.match(r);if(!n)throw new TypeError(`Invalid comparator: ${t}`);this.operator=n[1]!==void 0?n[1]:"",this.operator==="="&&(this.operator=""),n[2]?this.semver=new aC(n[2],this.options.loose):this.semver=Qs}toString(){return this.value}test(t){if(qp("Comparator.test",t,this.options.loose),this.semver===Qs||t===Qs)return!0;if(typeof t=="string")try{t=new aC(t,this.options)}catch{return!1}return jp(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new uC(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new uC(this.value,r).test(t.semver):(r=iC(r),r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||jp(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||jp(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};cC.exports=Wp;var iC=Ua(),{safeRe:sC,t:oC}=ki(),jp=Ip(),qp=xs(),aC=at(),uC=Kt()});var Mi=R((I5,lC)=>{var bW=Kt(),CW=(e,t,r)=>{try{t=new bW(t,r)}catch{return!1}return t.test(e)};lC.exports=CW});var hC=R(($5,fC)=>{var xW=Kt(),PW=(e,t)=>new xW(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));fC.exports=PW});var dC=R((B5,pC)=>{var OW=at(),RW=Kt(),_W=(e,t,r)=>{let n=null,i=null,s=null;try{s=new RW(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new OW(n,r))}),n};pC.exports=_W});var mC=R((M5,gC)=>{var kW=at(),DW=Kt(),FW=(e,t,r)=>{let n=null,i=null,s=null;try{s=new DW(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new kW(n,r))}),n};gC.exports=FW});var AC=R((j5,vC)=>{var Gp=at(),LW=Kt(),yC=Xs(),TW=(e,t)=>{e=new LW(e,t);let r=new Gp("0.0.0");if(e.test(r)||(r=new Gp("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n<e.set.length;++n){let i=e.set[n],s=null;i.forEach(o=>{let a=new Gp(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||yC(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||yC(r,s))&&(r=s)}return r&&e.test(r)?r:null};vC.exports=TW});var Up=R((q5,EC)=>{var NW=Kt(),IW=(e,t)=>{try{return new NW(e,t).range||"*"}catch{return null}};EC.exports=IW});var qu=R((W5,CC)=>{var $W=at(),bC=Js(),{ANY:BW}=bC,MW=Kt(),jW=Mi(),wC=Xs(),SC=Iu(),qW=Bu(),WW=$u(),GW=(e,t,r,n)=>{e=new $W(e,n),t=new MW(t,n);let i,s,o,a,c;switch(r){case">":i=wC,s=qW,o=SC,a=">",c=">=";break;case"<":i=SC,s=WW,o=wC,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(jW(e,t,n))return!1;for(let u=0;u<t.set.length;++u){let f=t.set[u],l=null,h=null;if(f.forEach(p=>{p.semver===BW&&(p=new bC(">=0.0.0")),l=l||p,h=h||p,i(p.semver,l.semver,n)?l=p:o(p.semver,h.semver,n)&&(h=p)}),l.operator===a||l.operator===c||(!h.operator||h.operator===a)&&s(e,h.semver))return!1;if(h.operator===c&&o(e,h.semver))return!1}return!0};CC.exports=GW});var PC=R((G5,xC)=>{var UW=qu(),HW=(e,t,r)=>UW(e,t,">",r);xC.exports=HW});var RC=R((U5,OC)=>{var YW=qu(),zW=(e,t,r)=>YW(e,t,"<",r);OC.exports=zW});var DC=R((H5,kC)=>{var _C=Kt(),VW=(e,t,r)=>(e=new _C(e,r),t=new _C(t,r),e.intersects(t,r));kC.exports=VW});var LC=R((Y5,FC)=>{var KW=Mi(),XW=Vt();FC.exports=(e,t,r)=>{let n=[],i=null,s=null,o=e.sort((f,l)=>XW(f,l,r));for(let f of o)KW(f,t,r)?(s=f,i||(i=f)):(s&&n.push([i,s]),s=null,i=null);i&&n.push([i,null]);let a=[];for(let[f,l]of n)f===l?a.push(f):!l&&f===o[0]?a.push("*"):l?f===o[0]?a.push(`<=${l}`):a.push(`${f} - ${l}`):a.push(`>=${f}`);let c=a.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return c.length<u.length?c:t}});var MC=R((z5,BC)=>{var TC=Kt(),Yp=Js(),{ANY:Hp}=Yp,Zs=Mi(),zp=Vt(),JW=(e,t,r={})=>{if(e===t)return!0;e=new TC(e,r),t=new TC(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let o=ZW(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},QW=[new Yp(">=0.0.0-0")],NC=[new Yp(">=0.0.0")],ZW=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Hp){if(t.length===1&&t[0].semver===Hp)return!0;r.includePrerelease?e=QW:e=NC}if(t.length===1&&t[0].semver===Hp){if(r.includePrerelease)return!0;t=NC}let n=new Set,i,s;for(let p of e)p.operator===">"||p.operator===">="?i=IC(i,p,r):p.operator==="<"||p.operator==="<="?s=$C(s,p,r):n.add(p.semver);if(n.size>1)return null;let o;if(i&&s){if(o=zp(i.semver,s.semver,r),o>0)return null;if(o===0&&(i.operator!==">="||s.operator!=="<="))return null}for(let p of n){if(i&&!Zs(p,String(i),r)||s&&!Zs(p,String(s),r))return null;for(let d of t)if(!Zs(p,String(d),r))return!1;return!0}let a,c,u,f,l=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1,h=i&&!r.includePrerelease&&i.semver.prerelease.length?i.semver:!1;l&&l.prerelease.length===1&&s.operator==="<"&&l.prerelease[0]===0&&(l=!1);for(let p of t){if(f=f||p.operator===">"||p.operator===">=",u=u||p.operator==="<"||p.operator==="<=",i){if(h&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===h.major&&p.semver.minor===h.minor&&p.semver.patch===h.patch&&(h=!1),p.operator===">"||p.operator===">="){if(a=IC(i,p,r),a===p&&a!==i)return!1}else if(i.operator===">="&&!Zs(i.semver,String(p),r))return!1}if(s){if(l&&p.semver.prerelease&&p.semver.prerelease.length&&p.semver.major===l.major&&p.semver.minor===l.minor&&p.semver.patch===l.patch&&(l=!1),p.operator==="<"||p.operator==="<="){if(c=$C(s,p,r),c===p&&c!==s)return!1}else if(s.operator==="<="&&!Zs(s.semver,String(p),r))return!1}if(!p.operator&&(s||i)&&o!==0)return!1}return!(i&&u&&!s&&o!==0||s&&f&&!i&&o!==0||h||l)},IC=(e,t,r)=>{if(!e)return t;let n=zp(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},$C=(e,t,r)=>{if(!e)return t;let n=zp(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};BC.exports=JW});var eo=R((V5,WC)=>{var Vp=ki(),jC=Ps(),eG=at(),qC=kh(),tG=Ln(),rG=Va(),nG=Wh(),iG=Ab(),sG=Sb(),oG=Cb(),aG=Pb(),uG=Rb(),cG=kb(),lG=Vt(),fG=Tb(),hG=Ib(),pG=Nu(),dG=jb(),gG=Wb(),mG=Xs(),yG=Iu(),vG=Tp(),AG=Np(),EG=$u(),wG=Bu(),SG=Ip(),bG=Jb(),CG=Js(),xG=Kt(),PG=Mi(),OG=hC(),RG=dC(),_G=mC(),kG=AC(),DG=Up(),FG=qu(),LG=PC(),TG=RC(),NG=DC(),IG=LC(),$G=MC();WC.exports={parse:tG,valid:rG,clean:nG,inc:iG,diff:sG,major:oG,minor:aG,patch:uG,prerelease:cG,compare:lG,rcompare:fG,compareLoose:hG,compareBuild:pG,sort:dG,rsort:gG,gt:mG,lt:yG,eq:vG,neq:AG,gte:EG,lte:wG,cmp:SG,coerce:bG,Comparator:CG,Range:xG,satisfies:PG,toComparators:OG,maxSatisfying:RG,minSatisfying:_G,minVersion:kG,validRange:DG,outside:FG,gtr:LG,ltr:TG,intersects:NG,simplifyRange:IG,subset:$G,SemVer:eG,re:Vp.re,src:Vp.src,tokens:Vp.t,SEMVER_SPEC_VERSION:jC.SEMVER_SPEC_VERSION,RELEASE_TYPES:jC.RELEASE_TYPES,compareIdentifiers:qC.compareIdentifiers,rcompareIdentifiers:qC.rcompareIdentifiers}});var HC=R((K5,UC)=>{var GC=eo();UC.exports=e=>BG(e.reduce(UG,{versions:{},"dist-tags":{},refs:{},shas:{}}));var BG=e=>qG(MG(jG(e))),MG=e=>(Object.keys(e.refs).forEach(t=>{let r=e.refs[t];e.shas[r.sha]?e.shas[r.sha].push(t):e.shas[r.sha]=[t]}),e),jG=e=>(Object.keys(e.refs).filter(t=>t.endsWith("^{}")).forEach(t=>{let r=e.refs[t],n=e.refs[t.replace(/\^\{\}$/,"")];n&&(n.sha=r.sha,delete e.refs[t])}),e),qG=e=>{let t=e.refs.HEAD||{};return Object.keys(e.versions).forEach(n=>{let i=e.versions[n];e.refs.latest&&i.sha===e.refs.latest.sha?e["dist-tags"].latest=n:i.sha===t.sha&&(e["dist-tags"].HEAD=n,e.refs.latest||(e["dist-tags"].latest=n))}),e},WG=e=>e.startsWith("refs/tags/")?"tag":e.startsWith("refs/heads/")?"branch":e.startsWith("refs/pull/")?"pull":e==="HEAD"?"head":"other",GG=e=>{let t=e.trim().split(/\s+/,2);if(t.length<2)return null;let r=t[0].trim(),n=t[1].trim(),i=WG(n);if(i==="tag"){let s=n.slice(10);return{sha:r,ref:s,rawRef:n,type:i}}if(i==="branch"){let s=n.slice(11);return{sha:r,ref:s,rawRef:n,type:i}}if(i==="pull"){let s=n.slice(5).replace(/\/head$/,"");return{sha:r,ref:s,rawRef:n,type:i}}return i==="head"?{sha:r,ref:"HEAD",rawRef:n,type:i}:{sha:r,ref:n,rawRef:n,type:i}},UG=(e,t)=>{let r=GG(t);if(!r)return e;if(e.refs[r.ref]=r,e.refs[r.rawRef]=r,r.type==="tag"){let n=!r.ref.endsWith("^{}")&&r.ref.match(/v?(\d+\.\d+\.\d+(?:[-+].+)?)$/);n&&GC.valid(n[1],!0)&&(e.versions[GC.clean(n[1],!0)]=r)}return e}});var Kp=R((X5,zC)=>{var HG=Ks(),{LRUCache:YG}=eu(),zG=HC(),YC=new YG({max:100,ttl:5*60*1e3});zC.exports=async(e,t={})=>{if(!t.noGitRevCache){let i=YC.get(e);if(i)return i}let{stdout:r}=await HG(["ls-remote",e],t),n=zG(r.trim().split(`
90
+ `));return YC.set(e,n),n}});var KC=R(VC=>{var VG=e=>(e.fakePlatform||process.platform)==="win32";VC.isWindows=VG});var JC=R((Q5,XC)=>{"use strict";var{builtinModules:KG}=q("module"),XG=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),JG=["node_modules","favicon.ico"];function QG(e){var t=[],r=[];if(e===null)return r.push("name cannot be null"),to(t,r);if(e===void 0)return r.push("name cannot be undefined"),to(t,r);if(typeof e!="string")return r.push("name must be a string"),to(t,r);if(e.length||r.push("name length must be greater than zero"),e.match(/^\./)&&r.push("name cannot start with a period"),e.match(/^_/)&&r.push("name cannot start with an underscore"),e.trim()!==e&&r.push("name cannot contain leading or trailing spaces"),JG.forEach(function(o){e.toLowerCase()===o&&r.push(o+" is a blacklisted name")}),KG.includes(e.toLowerCase())&&t.push(e+" is a core module name"),e.length>214&&t.push("name can no longer contain more than 214 characters"),e.toLowerCase()!==e&&t.push("name can no longer contain capital letters"),/[~'!()*]/.test(e.split("/").slice(-1)[0])&&t.push(`name can no longer contain special characters ("~'!()*")`),encodeURIComponent(e)!==e){var n=e.match(XG);if(n){var i=n[1],s=n[2];if(encodeURIComponent(i)===i&&encodeURIComponent(s)===s)return to(t,r)}r.push("name can only contain URL-friendly characters")}return to(t,r)}var to=function(e,t){var r={validForNewPackages:t.length===0&&e.length===0,validForOldPackages:t.length===0,warnings:e,errors:t};return r.warnings.length||delete r.warnings,r.errors.length||delete r.errors,r};XC.exports=QG});var ox=R((Z5,so)=>{"use strict";var io=process.platform==="win32",{URL:Xp}=q("node:url"),ji=io?q("node:path/win32"):q("node:path"),{homedir:ZG}=q("node:os"),eU=ru(),QC=eo(),rx=JC(),{log:tU}=Cs(),nx=io?/\\|[/]/:/[/]/,ix=/^(?:git[+])?[a-z]+:/i,rU=/^[^@]+@[^:.]+\.[^:]+:.+$/i,Qp=/[.](?:tgz|tar.gz|tar)$/i,nU=/:[0-9]+(\/|$)/i,iU=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,sU=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/,ZC="https://registry.npmjs.org";function ro(e,t){let r,n;if(typeof e=="object")return e instanceof no&&(!t||t===e.where)?e:e.name&&e.rawSpec?ro.resolve(e.name,e.rawSpec,t||e.where):ro(e.raw,t||e.where);let i=e.indexOf("@",1),s=i>0?e.slice(0,i):e;return ix.test(e)?n=e:rU.test(e)?n=`git+ssh://${e}`:!s.startsWith("@")&&(nx.test(s)||Qp.test(s))?n=e:i>0?(r=s,n=e.slice(i+1)||"*"):rx(e).validForOldPackages?(r=e,n="*"):n=e,sx(r,n,t,e)}function oU(e){return e?e.toLowerCase().startsWith("file:")?!0:io?iU.test(e):sU.test(e):!1}function aU(e){return e?e.toLowerCase().startsWith("npm:"):!1}function sx(e,t,r,n){let i=new no({raw:n,name:e,rawSpec:t,fromArgument:n!=null});if(e&&(i.name=e),r||(r=process.cwd()),oU(t))return tx(i,r);if(aU(t))return mU(i,r);let s=eU.fromUrl(t,{noGitPlus:!0,noCommittish:!0});return s?pU(i,s):t&&ix.test(t)?gU(i):t&&(nx.test(t)||Qp.test(t))?tx(i,r):yU(i)}function uU(e,t=ZC){let r=ro(e);if(r.type!=="version")throw fU(r.type,r.raw);let n="pkg:npm/"+r.name.replace(/^@/,"%40")+"@"+r.rawSpec;return t!==ZC&&(n+="?repository_url="+t),n}function cU(e,t,r){let n=new Error(`Invalid package name "${e}" of package "${r}": ${t.errors.join("; ")}.`);return n.code="EINVALIDPACKAGENAME",n}function lU(e,t){let r=new Error(`Invalid tag name "${e}" of package "${t}": Tags may not have any characters that encodeURIComponent encodes.`);return r.code="EINVALIDTAGNAME",r}function fU(e,t){let r=new Error(`Invalid type "${e}" of package "${t}": Purl can only be generated for "version" types.`);return r.code="EINVALIDPURLTYPE",r}var no=class{constructor(t){this.type=t.type,this.registry=t.registry,this.where=t.where,t.raw==null?this.raw=t.name?`${t.name}@${t.rawSpec}`:t.rawSpec:this.raw=t.raw,this.name=void 0,this.escapedName=void 0,this.scope=void 0,this.rawSpec=t.rawSpec||"",this.saveSpec=t.saveSpec,this.fetchSpec=t.fetchSpec,t.name&&this.setName(t.name),this.gitRange=t.gitRange,this.gitCommittish=t.gitCommittish,this.gitSubdir=t.gitSubdir,this.hosted=t.hosted}setName(t){let r=rx(t);if(!r.validForOldPackages)throw cU(t,r,this.raw);return this.name=t,this.scope=t[0]==="@"?t.slice(0,t.indexOf("/")):void 0,this.escapedName=t.replace("/","%2f"),this}toString(){let t=[];this.name!=null&&this.name!==""&&t.push(this.name);let r=this.saveSpec||this.fetchSpec||this.rawSpec;return r!=null&&r!==""&&t.push(r),t.length?t.join("@"):this.raw}toJSON(){let t=Object.assign({},this);return delete t.hosted,t}};function Jp(e,t){if(!t){e.gitCommittish=null;return}for(let r of t.split("::")){if(!r.includes(":")){if(e.gitRange)throw new Error("cannot override existing semver range with a committish");if(e.gitCommittish)throw new Error("cannot override existing committish with a second committish");e.gitCommittish=r;continue}let[n,i]=r.split(":");if(n==="semver"){if(e.gitCommittish)throw new Error("cannot override existing committish with a semver range");if(e.gitRange)throw new Error("cannot override existing semver range with a second semver range");e.gitRange=decodeURIComponent(i);continue}if(n==="path"){if(e.gitSubdir)throw new Error("cannot override existing path with a second path");e.gitSubdir=`/${i}`;continue}tU.warn("npm-package-arg",`ignoring unknown key "${n}"`)}}var hU=new Map([["\0","%00"],[" ","%09"],[`
91
+ `,"%0A"],["\r","%0D"],[" ","%20"],['"',"%22"],["#","%23"],["%","%25"],["?","%3F"],["[","%5B"],["\\",io?"/":"%5C"],["]","%5D"],["^","%5E"],["|","%7C"],["~","%7E"]]);function ex(e){let t="";for(let r=0;r<e.length;r++)t=`${t}${hU.get(e[r])??e[r]}`;return t.startsWith("file:")?t:`file:${t}`}function tx(e,t){e.type=Qp.test(e.rawSpec)?"file":"directory",e.where=t;let r=ex(e.rawSpec);r.startsWith("file:/")&&(/^file:\/\/[^/]/.test(r)&&(r=`file:/${r.slice(5)}`),/^\/{1,3}\.\.?(\/|$)/.test(r.slice(5))&&(r=r.replace(/^file:\/{1,3}/,"file:")));let n,i;try{n=new Xp(r,`${ex(ji.resolve(t))}/`),i=new Xp(r)}catch(a){let c=new Error("Invalid file: URL, must comply with RFC 8089");throw Object.assign(c,{raw:e.rawSpec,spec:e,where:t,originalError:a})}let s=decodeURIComponent(i.pathname),o=decodeURIComponent(n.pathname);return io&&(s=s.replace(/^\/+([a-z]:\/)/i,"$1"),o=o.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(s)?(e.saveSpec=`file:${s.substr(1)}`,o=ji.resolve(ZG(),s.substr(3))):ji.isAbsolute(r.slice(5))?e.saveSpec=`file:${ji.resolve(o)}`:e.saveSpec=`file:${ji.relative(t,o)}`,e.fetchSpec=ji.resolve(t,o),e.saveSpec=e.saveSpec.split("\\").join("/"),e.saveSpec.startsWith("file://")&&(e.saveSpec=`file:/${e.saveSpec.slice(7)}`),e}function pU(e,t){return e.type="git",e.hosted=t,e.saveSpec=t.toString({noGitPlus:!1,noCommittish:!1}),e.fetchSpec=t.getDefaultRepresentation()==="shortcut"?null:t.toString(),Jp(e,t.committish),e}function dU(e,t){let r=new Error(`Unsupported URL Type "${e}": ${t}`);return r.code="EUNSUPPORTEDPROTOCOL",r}function gU(e){let t=e.rawSpec;if(e.saveSpec=t,t.startsWith("git+ssh:")){let n=t.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i);if(n&&!n[1].match(nU))return e.type="git",Jp(e,n[2]),e.fetchSpec=n[1],e}else t.startsWith("git+file://")&&(t=t.replace(/\\/g,"/"));let r=new Xp(t);switch(r.protocol){case"git:":case"git+http:":case"git+https:":case"git+rsync:":case"git+ftp:":case"git+file:":case"git+ssh:":e.type="git",Jp(e,r.hash.slice(1)),r.protocol==="git+file:"&&/^git\+file:\/\/[a-z]:/i.test(t)?e.fetchSpec=`git+file://${r.host.toLowerCase()}:${r.pathname}`:(r.hash="",e.fetchSpec=r.toString()),e.fetchSpec.startsWith("git+")&&(e.fetchSpec=e.fetchSpec.slice(4));break;case"http:":case"https:":e.type="remote",e.fetchSpec=e.saveSpec;break;default:throw dU(r.protocol,t)}return e}function mU(e,t){let r=ro(e.rawSpec.substr(4),t);if(r.type==="alias")throw new Error("nested aliases not supported");if(!r.registry)throw new Error("aliases only work for registry deps");if(!r.name)throw new Error("aliases must have a name");return e.subSpec=r,e.registry=!0,e.type="alias",e.saveSpec=null,e.fetchSpec=null,e}function yU(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let r=QC.valid(t,!0),n=QC.validRange(t,!0);if(r)e.type="version";else if(n)e.type="range";else{if(encodeURIComponent(t)!==t)throw lU(t,e.raw);e.type="tag"}return e}so.exports=ro;so.exports.resolve=sx;so.exports.toPurl=uU;so.exports.Result=no});var fx=R((eY,lx)=>{var Mn=q("node:process"),vU=q("node:os"),AU=q("node:fs");function EU(e){return e.includes("libc.musl-")||e.includes("ld-musl-")}function ax(){return Mn.platform}function ux(){return Mn.arch}var wU="/usr/bin/ldd";function SU(){try{let e=AU.readFileSync(wU,"utf-8");return e.includes("musl")?"musl":e.includes("GNU C Library")?"glibc":null}catch{return}}function bU(){let e=Mn.report.excludeNetwork;Mn.report.excludeNetwork=!0;let t=Mn.report.getReport();return Mn.report.excludeNetwork=e,t.header?.glibcVersionRuntime?jr="glibc":Array.isArray(t.sharedObjects)&&t.sharedObjects.some(EU)?jr="musl":jr=null,jr}var jr;function cx(e){if(e==="linux")return jr===void 0&&(jr=SU(),jr===void 0&&(jr=bU())),jr}function CU(e={}){let t=e.os||ax();return{cpu:{name:e.cpu||ux()},libc:{name:e.libc||cx(t)},os:{name:t,version:e.osVersion||vU.release()},packageManager:{name:"npm",version:e.npmVersion},runtime:{name:"node",version:e.nodeVersion||Mn.version}}}lx.exports={cpu:ux,libc:cx,os:ax,devEngines:CU}});var px=R((tY,hx)=>{var xU=Mi(),PU=Up(),OU=["ignore","warn","error","download"],RU=["name","version","onFail"],_U=["packageManager","runtime","cpu","libc","os"];function kU(e,t,r){let{engine:n}=r;if(typeof e!="object"||e===null||Array.isArray(e))throw new Error(`Invalid non-object value for "${n}"`);let i=Object.keys(e);for(let s of i)if(!RU.includes(s))throw new Error(`Invalid property "${s}" for "${n}"`);if(!i.includes("name"))throw new Error(`Missing "name" property for "${n}"`);if(typeof e.name!="string")throw new Error(`Invalid non-string value for "name" within "${n}"`);if(typeof t.name!="string"||t.name==="")throw new Error(`Unable to determine "name" for "${n}"`);if(i.includes("onFail")){if(typeof e.onFail!="string")throw new Error(`Invalid non-string value for "onFail" within "${n}"`);if(!OU.includes(e.onFail))throw new Error(`Invalid onFail value "${e.onFail}" for "${n}"`)}if(e.name!==t.name)return new Error(`Invalid name "${e.name}" does not match "${t.name}" for "${n}"`);if(i.includes("version")){if(typeof e.version!="string")throw new Error(`Invalid non-string value for "version" within "${n}"`);if(typeof t.version!="string"||t.version==="")throw new Error(`Unable to determine "version" for "${n}" "${e.name}"`);if(PU(e.version)){if(!xU(t.version,e.version,r.semver))return new Error(`Invalid semver version "${e.version}" does not match "${t.version}" for "${n}"`)}else if(e.version!==t.version)return new Error(`Invalid version "${e.version}" does not match "${t.version}" for "${n}"`)}}function DU(e,t={},r={}){if(typeof e!="object"||e===null||Array.isArray(e))throw new Error("Invalid non-object value for devEngines");let n=[];for(let i of Object.keys(e)){if(!_U.includes(i))throw new Error(`Invalid property "${i}"`);let s=e[i],o=[s].flat(),a=t[i]||{};if(o.length===0)continue;let c=[];for(let f of o){let l=kU(f,a,{...r,engine:i});l&&c.push(l)}if(c.length===o.length){let l=o[o.length-1].onFail||"error";l==="download"&&(l="error");let h=Object.assign(new Error(`Invalid engine "${i}"`),{errors:c,engine:i,isWarn:l==="warn",isError:l==="error",current:a,required:s});n.push(h)}}return n}hx.exports={checkDevEngines:DU}});var mx=R((rY,gx)=>{var dx=eo(),Wu=fx(),{checkDevEngines:FU}=px(),LU=(e,t,r,n=!1)=>{let i=n?null:r,s=e.engines,o={includePrerelease:!0};if(!s)return;let a=i&&s.node&&!dx.satisfies(i,s.node,o),c=t&&s.npm&&!dx.satisfies(t,s.npm,o);if(a||c)throw Object.assign(new Error("Unsupported engine"),{pkgid:e._id,current:{node:r,npm:t},required:s,code:"EBADENGINE"})},TU=(e,t=!1,r={})=>{if(t)return;let n=r.os||Wu.os(),i=r.cpu||Wu.cpu(),s=r.libc||Wu.libc(n),o=e.os?Zp(n,e.os):!0,a=e.cpu?Zp(i,e.cpu):!0,c=e.libc?Zp(s,e.libc):!0;if(e.libc&&!s&&(c=!1),!o||!a||!c)throw Object.assign(new Error("Unsupported platform"),{pkgid:e._id,current:{os:n,cpu:i,libc:s},required:{os:e.os,cpu:e.cpu,libc:e.libc},code:"EBADPLATFORM"})},Zp=(e,t)=>{if(typeof t=="string"&&(t=[t]),t.length===1&&t[0]==="any")return!0;let r=0,n=!1;for(let i of t){let s=i.charAt(0)==="!",o=s?i.slice(1):i;if(s){if(r++,e===o)return!1}else n=n||e===o}return n||r===t.length};gx.exports={checkEngine:LU,checkPlatform:TU,checkDevEngines:FU,currentEnv:Wu}});var Ex=R((nY,Ax)=>{var{join:yx,basename:vx}=q("path"),NU=e=>e.bin?typeof e.bin=="string"?IU(e):Array.isArray(e.bin)?$U(e):typeof e.bin=="object"?td(e):ed(e):ed(e),IU=e=>e.name?(e.bin={[e.name]:e.bin},td(e)):ed(e),$U=e=>(e.bin=e.bin.reduce((t,r)=>(t[vx(r)]=r,t),{}),td(e)),ed=e=>(delete e.bin,e),td=e=>{let t=e.bin,r={},n=!1;return Object.keys(t).forEach(i=>{let s=yx("/",vx(i.replace(/\\|:/g,"/"))).slice(1);if(typeof t[i]!="string"||!s)return;let o=yx("/",t[i].replace(/\\/g,"/")).replace(/\\/g,"/").slice(1);o&&(r[s]=o,n=!0)}),n?e.bin=r:delete e.bin,e};Ax.exports=NU});var bx=R((iY,Sx)=>{"use strict";var wx=ox(),oo=eo(),{checkEngine:BU}=mx(),MU=Ex(),rd=(e,t,r)=>{try{return BU(e,t,r),!0}catch{return!1}},Gu=(e,t,r)=>!e||!e[t]||Date.parse(e[t])<=r,jU={includePrerelease:!0,loose:!0},Uu=(e,t)=>t&&oo.satisfies(e,t,jU),nd=(e,t)=>e&&Uu(e.version,t)?{...e,_shouldAvoid:!0}:e,ao=(e,t,r)=>{let{defaultTag:n="latest",before:i=null,nodeVersion:s=process.version,npmVersion:o=null,includeStaged:a=!1,avoid:c=null,avoidStrict:u=!1}=r,{name:f,time:l}=e,h=e.versions||{};if(u){let _={...r,avoidStrict:!1},T=ao(e,t,_);if(!T||!T._shouldAvoid)return T;let b=ao(e,`^${T.version}`,_);if(!b||!b._shouldAvoid)return{...b,_outsideDependencyRange:!0,_isSemVerMajor:!1};let g=ao(e,"*",_);if(!g||!g._shouldAvoid)return{...g,_outsideDependencyRange:!0,_isSemVerMajor:!0};throw Object.assign(new Error(`No avoidable versions for ${f}`),{code:"ETARGET",name:f,wanted:t,avoid:c,before:i,versions:Object.keys(h)})}let p=a&&e.stagedVersions&&e.stagedVersions.versions||{},d=e.policyRestrictions&&e.policyRestrictions.versions||{},m=i&&l?+new Date(i):1/0,P=wx.resolve(f,t||n).type,C=e["dist-tags"]||{};if(P!=="tag"&&P!=="version"&&P!=="range")throw new Error("Only tag, version, and range are supported");if(t&&P==="tag"){let _=C[t];return Gu(l,_,m)?nd(h[_]||p[_]||d[_],c):ao(e,`<=${_}`,r)}if(t&&P==="version"){let _=oo.clean(t,{loose:!0}),T=h[_]||p[_]||d[_];return Gu(l,_,m)?nd(T,c):null}let F=P==="range"?t:"*",D=C[n];if(D&&(F==="*"||oo.satisfies(D,F,{loose:!0}))&&!d[D]&&!Uu(D,c)){let _=h[D];if(_&&Gu(l,D,m)&&rd(_,o,s)&&!_.deprecated&&!p[D])return _}let E=Object.entries(h).concat(Object.entries(p)).concat(Object.entries(d)).filter(([_])=>Gu(l,_,m));if(!E.length)throw Object.assign(new Error(`No versions available for ${f}`),{code:"ENOVERSIONS",name:f,type:P,wanted:t,before:i,versions:Object.keys(h)});let O={loose:!0},k=E.filter(([_])=>oo.satisfies(_,F,{loose:!0})).sort((_,T)=>{let[b,g]=_,[y,w]=T,x=!Uu(b,c),A=!Uu(y,c),S=!d[b],L=!d[y],N=!p[b],I=!p[y],B=!g.deprecated,W=!w.deprecated,Y=rd(g,o,s),se=rd(w,o,s);return A-x||L-S||I-N||(W&&se)-(B&&Y)||se-Y||W-B||oo.rcompare(b,y,O)});return nd(k[0]&&k[0][1],c)};Sx.exports=(e,t,r={})=>{let n=ao(e,t,r),i=n&&MU(n),s=e.policyRestrictions,o=s&&s.versions||{};if(i&&!o[i.version])return i;let{before:a=null,defaultTag:c="latest"}=r,u=a?new Date(a).toLocaleString():"",{name:f}=e,l=`${f}@${t}`+(a?` with a date before ${u}`:""),h=i&&!!o[i.version],p=h?s.message:"",d=h?`Could not download ${l} due to policy violations:
92
+ ${p}`:`No matching version found for ${l}.`,m=h?"E403":"ETARGET";throw Object.assign(new Error(d),{code:m,type:wx.resolve(e.name,t).type,wanted:t,versions:Object.keys(e.versions??{}),name:f,distTags:e["dist-tags"],defaultTag:c})}});var Ox=R((sY,Px)=>{var qU=new Set(["github.com","gist.github.com","gitlab.com","bitbucket.com","bitbucket.org"]),{parse:WU}=q("url"),Cx=q("path"),GU=Kp(),uo=Ks(),{isWindows:Hu}=KC(),UU=bx(),id=q("fs/promises");Px.exports=(e,t="HEAD",r=null,n={})=>GU(e,n).then(i=>YU(e,i,t,zU(i,t,n),r||HU(e,n.cwd),n));var sd=(e,t)=>t.gitShallow===!1||t.gitShallow?t.gitShallow:qU.has(WU(e).host),HU=(e,t=process.cwd())=>Cx.resolve(t,Cx.basename(e.replace(/[/\\]?\.git$/,""))),YU=(e,t,r,n,i,s)=>n?n.sha===t.refs.HEAD.sha?XU(e,n,i,s):n.type==="tag"||n.type==="branch"?KU(e,n,i,s):VU(e,n,i,s):JU(e,r,i,s),zU=(e,t,r)=>{let{spec:n={}}=r;return t=n.gitCommittish||t,e?n.gitRange?UU(e,n.gitRange,r):t?e.refs[t]?e.refs[t]:e.shas[t]?e.refs[e.shas[t][0]]:null:e.refs.HEAD:null},VU=(e,t,r,n)=>{let i=sd(e,n),s=["fetch","origin",t.rawRef].concat(i?["--depth=1"]:[]),o=a=>uo(a,{...n,cwd:r});return id.mkdir(r,{recursive:!0}).then(()=>o(["init"])).then(()=>Hu(n)?o(["config","--local","--add","core.longpaths","true"]):null).then(()=>o(["remote","add","origin",e])).then(()=>o(s)).then(()=>o(["checkout",t.sha])).then(()=>xx(r,n)).then(()=>t.sha)},KU=(e,t,r,n)=>{let i=["clone","-b",t.ref,e,r,"--recurse-submodules"];return sd(e,n)&&i.push("--depth=1"),Hu(n)&&i.push("--config","core.longpaths=true"),uo(i,n).then(()=>t.sha)},XU=(e,t,r,n)=>{let i=["clone",e,r,"--recurse-submodules"];return sd(e,n)&&i.push("--depth=1"),Hu(n)&&i.push("--config","core.longpaths=true"),uo(i,n).then(()=>t.sha)},xx=async(e,t)=>await id.stat(`${e}/.gitmodules`).then(()=>!0).catch(()=>!1)?uo(["submodule","update","-q","--init","--recursive"],{...t,cwd:e}):null,JU=(e,t,r,n)=>{let i=Hu(n)?["--config","core.longpaths=true"]:[],s=["clone","--mirror","-q",e,r+"/.git"],o=a=>uo(a,{...n,cwd:r});return id.mkdir(r,{recursive:!0}).then(()=>o(s.concat(i))).then(()=>o(["init"])).then(()=>o(["checkout",t])).then(()=>xx(r,n)).then(()=>o(["rev-parse","--revs-only","HEAD"])).then(({stdout:a})=>a.trim())}});var od=R((oY,Rx)=>{var{stat:QU}=q("fs/promises");Rx.exports=({cwd:e=process.cwd()}={})=>QU(e+"/.git").then(()=>!0,()=>!1)});var kx=R((aY,_x)=>{var ZU=od(),{dirname:eH}=q("path");_x.exports=async({cwd:e=process.cwd(),root:t}={})=>{for(;;){if(await ZU({cwd:e}))return e;let r=eH(e);if(e===t||e===r)return null;e=r}}});var Fx=R((uY,Dx)=>{var tH=Ks();Dx.exports=(e={})=>tH(["status","--porcelain=v1","-uno"],e).then(t=>!t.stdout.trim().split(/\r?\n+/).map(r=>r.trim()).filter(r=>r).length)});var Tx=R((cY,Lx)=>{Lx.exports={clone:Ox(),revs:Kp(),spawn:Ks(),is:od(),find:kx(),isClean:Fx(),errors:Dp()}});var ad=R((lY,rH)=>{rH.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var Nx=R((fY,nH)=>{nH.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var Ix=R((hY,iH)=>{iH.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var Bx=R((pY,$x)=>{"use strict";var sH=[].concat(ad()).concat(Nx()),oH=Ix();$x.exports=function(e){var t=0;function r(){return t<e.length}function n(d){if(d instanceof RegExp){var m=e.slice(t),v=m.match(d);if(v)return t+=v[0].length,v[0]}else if(e.indexOf(d,t)===t)return t+=d.length,d}function i(){n(/[ ]*/)}function s(){for(var d,m=["WITH","AND","OR","(",")",":","+"],v=0;v<m.length&&(d=n(m[v]),!d);v++);if(d==="+"&&t>1&&e[t-2]===" ")throw new Error("Space before `+`");return d&&{type:"OPERATOR",string:d}}function o(){return n(/[A-Za-z0-9-.]+/)}function a(){var d=o();if(!d)throw new Error("Expected idstring at offset "+t);return d}function c(){if(n("DocumentRef-")){var d=a();return{type:"DOCUMENTREF",string:d}}}function u(){if(n("LicenseRef-")){var d=a();return{type:"LICENSEREF",string:d}}}function f(){var d=t,m=o();if(sH.indexOf(m)!==-1)return{type:"LICENSE",string:m};if(oH.indexOf(m)!==-1)return{type:"EXCEPTION",string:m};t=d}function l(){return s()||c()||u()||f()}for(var h=[];r()&&(i(),!!r());){var p=l();if(!p)throw new Error("Unexpected `"+e[t]+"` at offset "+t);h.push(p)}return h}});var jx=R((dY,Mx)=>{"use strict";Mx.exports=function(e){var t=0;function r(){return t<e.length}function n(){return r()?e[t]:null}function i(){if(!r())throw new Error;t++}function s(m){var v=n();if(v&&v.type==="OPERATOR"&&m===v.string)return i(),v.string}function o(){if(s("WITH")){var m=n();if(m&&m.type==="EXCEPTION")return i(),m.string;throw new Error("Expected exception after `WITH`")}}function a(){var m=t,v="",P=n();if(P.type==="DOCUMENTREF"&&(i(),v+="DocumentRef-"+P.string+":",!s(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(P=n(),P.type==="LICENSEREF")return i(),v+="LicenseRef-"+P.string,{license:v};t=m}function c(){var m=n();if(m&&m.type==="LICENSE"){i();var v={license:m.string};s("+")&&(v.plus=!0);var P=o();return P&&(v.exception=P),v}}function u(){var m=s("(");if(m){var v=p();if(!s(")"))throw new Error("Expected `)`");return v}}function f(){return u()||a()||c()}function l(m,v){return function P(){var C=v();if(C){if(!s(m))return C;var F=P();if(!F)throw new Error("Expected expression");return{left:C,conjunction:m.toLowerCase(),right:F}}}}var h=l("AND",f),p=l("OR",h),d=p();if(!d||r())throw new Error("Syntax error");return d}});var ud=R((gY,qx)=>{"use strict";var aH=Bx(),uH=jx();qx.exports=function(e){return uH(aH(e))}});var Xx=R((mY,Kx)=>{var cH=ud(),lH=ad();function Yu(e){try{return cH(e),!0}catch{return!1}}function Vx(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var Wx=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(Vx),fH=0,hH=1,Gx=[function(e){return e.toUpperCase()},function(e){return e.trim()},function(e){return e.replace(/\./g,"")},function(e){return e.replace(/\s+/g,"")},function(e){return e.replace(/\s+/g,"-")},function(e){return e.replace("v","-")},function(e){return e.replace(/,?\s*(\d)/,"-$1")},function(e){return e.replace(/,?\s*(\d)/,"-$1.0")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(e){return e.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(e){return e[0].toUpperCase()+e.slice(1)},function(e){return e.replace("/","-")},function(e){return e.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(e){return e.indexOf("3.0")!==-1?e+"-or-later":e+"-only"},function(e){return e+"only"},function(e){return e.replace(/(\d)$/,"-$1.0")},function(e){return e.replace(/(-| )?(\d)$/,"-$2-Clause")},function(e){return e.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(e){return e.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(e){return e.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(e){return e.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(e){return e.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(e){return e.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(e){return"CC-"+e},function(e){return"CC-"+e+"-4.0"},function(e){return e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(e){return"CC-"+e.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],cd=lH.map(function(e){var t=/^(.*)-\d+\.\d+$/.exec(e);return t?[t[0],t[1]]:[e,null]}).reduce(function(e,t){var r=t[1];return e[r]=e[r]||[],e[r].push(t[0]),e},{}),pH=Object.keys(cd).map(function(t){return[t,cd[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});cd=void 0;var Ux=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(pH).sort(Vx),dH=0,gH=1,Hx=function(e){for(var t=0;t<Gx.length;t++){var r=Gx[t](e).trim();if(r!==e&&Yu(r))return r}return null},Yx=function(e){for(var t=e.toUpperCase(),r=0;r<Ux.length;r++){var n=Ux[r];if(t.indexOf(n[dH])>-1)return n[gH]}return null},zx=function(e,t){for(var r=0;r<Wx.length;r++){var n=Wx[r],i=n[fH];if(e.indexOf(i)>-1){var s=e.replace(i,n[hH]),o=t(s);if(o!==null)return o}}return null};Kx.exports=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?mH(a):a}var i=typeof e=="string"&&e.trim().length!==0;if(!i)throw Error("Invalid argument. Expected non-empty string.");if(e=e.trim(),Yu(e))return n(e);var s=e.replace(/\+$/,"").trim();if(Yu(s))return n(s);var o=Hx(e);return o!==null||(o=zx(e,function(a){return Yu(a)?a:Hx(a)}),o!==null)||(o=Yx(e),o!==null)||(o=zx(e,Yx),o!==null)?n(o):null};function mH(e){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(e)!==-1?e+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(e)!==-1?e.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(e)!==-1?e+"-or-later":e}});var eP=R((yY,Zx)=>{var yH=ud(),vH=Xx(),Jx='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',AH=/^SEE LICEN[CS]E IN (.+)$/;function Qx(e,t){return t.slice(0,e.length)===e}function ld(e){if(e.hasOwnProperty("license")){var t=e.license;return Qx("LicenseRef",t)||Qx("DocumentRef",t)}else return ld(e.left)||ld(e.right)}Zx.exports=function(e){var t;try{t=yH(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=AH.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[Jx]};if(e.trim().length!==0){var i=vH(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return ld(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[Jx]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var oP=R((vY,sP)=>{var fd=q("node:url"),tP=ru(),EH=eP(),rP={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},nP=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf(".");function wH(e){let t=e.trim().split(`
93
+ `),r=0;for(;t[r]?.trim().match(/^(#|$)/);)r++;let n=r+1;for(;n<t.length&&t[n].trim();)n++;return t.slice(r,n).join(" ").trim()}function iP(e){if(typeof e!="string"){let s=e.name||"",o=e.url||e.web,a=o?" ("+o+")":"",c=e.email||e.mail,u=c?" <"+c+">":"";e=s+u+a}let t=e.match(/^([^(<]+)/),r=e.match(/\(([^()]+)\)/),n=e.match(/<([^<>]+)>/),i={};return t?.[0].trim()&&(i.name=t[0].trim()),n&&(i.email=n[1]),r&&(i.url=r[1]),i}function SH(e,t){e.description&&typeof e.description!="string"&&(t?.push("'description' field should be a string"),delete e.description),e.readme&&!e.description&&e.readme!=="ERROR: No README data found!"&&(e.description=wH(e.readme)),e.description===void 0&&delete e.description,e.description||t?.push("No description"),e.modules&&(t?.push("modules field is deprecated"),delete e.modules);let r=e.files;if(r&&!Array.isArray(r)?(t?.push("Invalid 'files' member"),delete e.files):e.files&&(e.files=e.files.filter(function(o){return!o||typeof o!="string"?(t?.push(`Invalid filename in 'files' list: ${o}`),!1):!0})),e.man&&typeof e.man=="string"&&(e.man=[e.man]),!e.bugs&&e.repository?.url){let o=tP.fromUrl(e.repository.url);o&&o.bugs()&&(e.bugs={url:o.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")nP(e.bugs)?e.bugs={email:e.bugs}:fd.parse(e.bugs).protocol?e.bugs={url:e.bugs}:t?.push("Bug string field must be url, email, or {email,url}");else{for(let a in e.bugs)["web","name"].includes(a)&&(t?.push(`bugs['${a}'] should probably be bugs['url'].`),e.bugs.url=e.bugs[a],delete e.bugs[a]);let o=e.bugs;e.bugs={},o.url&&(typeof o.url=="string"&&fd.parse(o.url).protocol?e.bugs.url=o.url:t?.push("bugs.url field must be a string url. Deleted.")),o.email&&(typeof o.email=="string"&&nP(o.email)?e.bugs.email=o.email:t?.push("bugs.email field must be a string email. Deleted."))}!e.bugs.email&&!e.bugs.url&&(delete e.bugs,t?.push("Normalized value of bugs field is an empty object. Deleted."))}typeof e.keywords=="string"&&(e.keywords=e.keywords.split(/,\s+/)),e.keywords&&!Array.isArray(e.keywords)?(delete e.keywords,t?.push("keywords should be an array of strings")):e.keywords&&(e.keywords=e.keywords.filter(function(o){return typeof o!="string"||!o?(t?.push("keywords should be an array of strings"),!1):!0}));let n="bundledDependencies",i="bundleDependencies";if(e[n]&&!e[i]&&(e[i]=e[n],delete e[n]),e[i]&&!Array.isArray(e[i])?(t?.push("Invalid 'bundleDependencies' list. Must be array of package names"),delete e[i]):e[i]&&(e[i]=e[i].filter(function(o){return!o||typeof o!="string"?(t?.push(`Invalid bundleDependencies member: ${o}`),!1):(e.dependencies||(e.dependencies={}),Object.prototype.hasOwnProperty.call(e.dependencies,o)||(t?.push(`Non-dependency in bundleDependencies: ${o}`),e.dependencies[o]="*"),!0)})),!e.homepage&&e.repository&&e.repository.url){let o=tP.fromUrl(e.repository.url);o&&(e.homepage=o.docs())}e.homepage&&(typeof e.homepage!="string"?(t?.push("homepage field must be a string url. Deleted."),delete e.homepage):fd.parse(e.homepage).protocol||(e.homepage="http://"+e.homepage)),e.readme||(t?.push("No README data"),e.readme="ERROR: No README data found!");let s=e.license||e.licence;s?typeof s!="string"||s.length<1||s.trim()===""?t?.push("license should be a valid SPDX license expression"):EH(s).validForNewPackages||t?.push("license should be a valid SPDX license expression"):t?.push("No license field."),e.author&&(e.author=iP(e.author)),["maintainers","contributors"].forEach(function(o){Array.isArray(e[o])&&(e[o]=e[o].map(iP))});for(let o in rP)Object.prototype.hasOwnProperty.call(e,o)&&t?.push(`${o} should probably be ${rP[o]}.`)}sP.exports={normalizeData:SH}});var fP=R((AY,lP)=>{var bH=Va(),CH=Wh(),yn=q("node:fs/promises"),ke=q("node:path"),{log:xH}=Cs(),hd;function aP(){return hd||(hd=ru()),hd}var pd;function zu(){return pd||(pd=Cp().glob),pd}function uP(e,t){if(e.bin&&(typeof e.bin=="string"&&e.name?(t?.push('"bin" was converted to an object'),e.bin={[e.name]:e.bin}):Array.isArray(e.bin)&&(t?.push('"bin" was converted to an object'),e.bin=e.bin.reduce((r,n)=>(r[ke.basename(n)]=n,r),{})),typeof e.bin=="object")){for(let r in e.bin){if(typeof e.bin[r]!="string"){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}let n=ke.basename(co(r));if(!n){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}let i=co(e.bin[r]);if(!i){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}n!==r&&(delete e.bin[r],t?.push(`"bin[${r}]" was renamed to "bin[${n}]"`)),i!==e.bin[r]&&t?.push(`"bin[${n}]" script name was cleaned`),e.bin[n]=i}return Object.keys(e.bin).length===0&&(t?.push('empty "bin" was removed'),delete e.bin),e}delete e.bin}function PH(e,t){if(e.man){let r=[];for(let n of Array.isArray(e.man)?e.man:[e.man])typeof n!="string"?t?.push(`removed invalid "man [${n}]"`):r.push(co(n));if(!r.length)t?.push('empty "man" was removed');else return e.man=r,e}delete e.man}function OH(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function RH(e){if(e.charAt(0)!=="@")return!1;let t=e.slice(1).split("/");return t.length!==2?!1:t[0]&&t[1]&&t[0]===encodeURIComponent(t[0])&&t[1]===encodeURIComponent(t[1])}function cP(e){return e.replace(/\\|:/g,"/")}function co(e){let t=cP(ke.join(".",ke.join("/",cP(e))));return t.startsWith("./")?"":t}var _H=async(e,{strict:t,steps:r,root:n,changes:i,allowLegacyCase:s})=>{if(!e.content)throw new Error("Can not normalize without content");let o=e.content,a=o.scripts||{},c=`${o.name??""}@${o.version??""}`;if(r.includes("fixNameField")||r.includes("normalizeData"))if(!o.name&&!t)i?.push('Missing "name" field was set to an empty string'),o.name="";else{if(typeof o.name!="string")throw new Error("name field must be a string.");if(!t){let u=o.name.trim();o.name!==u&&(i?.push('Whitespace was trimmed from "name"'),o.name=u)}if(o.name.startsWith(".")||!(RH(o.name)||OH(o.name))||t&&!s&&o.name!==o.name.toLowerCase()||o.name.toLowerCase()==="node_modules"||o.name.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(o.name))}if(r.includes("fixVersionField")||r.includes("normalizeData")){let u=!t;if(!o.version)o.version="";else{if(!bH(o.version,u))throw new Error(`Invalid version: "${o.version}"`);let f=CH(o.version,u);f!==o.version&&(i?.push(`"version" was cleaned and set to "${f}"`),o.version=f)}}if(r.includes("_attributes"))for(let u in o)u.startsWith("_")&&(i?.push(`"${u}" was removed`),delete e.content[u]);if(r.includes("_id")&&o.name&&o.version&&(i?.push(`"_id" was set to ${c}`),o._id=c),r.includes("bundledDependencies")&&(o.bundleDependencies===void 0&&o.bundledDependencies!==void 0&&(o.bundleDependencies=o.bundledDependencies),i?.push('Deleted incorrect "bundledDependencies"'),delete o.bundledDependencies),r.includes("bundleDependencies")){let u=o.bundleDependencies;u===!1&&!r.includes("bundleDependenciesDeleteFalse")?(i?.push('"bundleDependencies" was changed from "false" to "[]"'),o.bundleDependencies=[]):u===!0?(i?.push('"bundleDependencies" was auto-populated from "dependencies"'),o.bundleDependencies=Object.keys(o.dependencies||{})):u&&typeof u=="object"?Array.isArray(u)||(i?.push('"bundleDependencies" was changed from an object to an array'),o.bundleDependencies=Object.keys(u)):"bundleDependencies"in o&&(i?.push('"bundleDependencies" was removed'),delete o.bundleDependencies)}if(r.includes("optionalDedupe")&&o.dependencies&&o.optionalDependencies&&typeof o.optionalDependencies=="object"){for(let u in o.optionalDependencies)i?.push(`optionalDependencies."${u}" was removed`),delete o.dependencies[u];Object.keys(o.dependencies).length||(i?.push('Empty "optionalDependencies" was removed'),delete o.dependencies)}if(r.includes("gypfile")&&!a.install&&!a.preinstall&&o.gypfile!==!1&&(await zu()("*.gyp",{cwd:e.path})).length&&(a.install="node-gyp rebuild",o.scripts=a,o.gypfile=!0,i?.push('"scripts.install" was set to "node-gyp rebuild"'),i?.push('"gypfile" was set to "true"')),r.includes("serverjs")&&!a.start)try{await yn.access(ke.join(e.path,"server.js")),a.start="node server.js",o.scripts=a,i?.push('"scripts.start" was set to "node server.js"')}catch{}if((r.includes("scripts")||r.includes("scriptpath"))&&o.scripts!==void 0){let u=/^(\.[/\\])?node_modules[/\\].bin[\\/]/;if(typeof o.scripts=="object")for(let f in o.scripts)typeof o.scripts[f]!="string"?(delete o.scripts[f],i?.push(`Invalid scripts."${f}" was removed`)):r.includes("scriptpath")&&u.test(o.scripts[f])&&(o.scripts[f]=o.scripts[f].replace(u,""),i?.push(`scripts entry "${f}" was fixed to remove node_modules/.bin reference`));else i?.push('Removed invalid "scripts"'),delete o.scripts}if(r.includes("funding")&&o.funding&&typeof o.funding=="string"&&(o.funding={url:o.funding},i?.push('"funding" was changed to an object with a url attribute')),r.includes("authors")&&!o.contributors)try{let f=(await yn.readFile(ke.join(e.path,"AUTHORS"),"utf8")).split(/\r?\n/g).map(l=>l.replace(/^\s*#.*$/,"").trim()).filter(l=>l);o.contributors=f,i?.push('"contributors" was auto-populated with the contents of the "AUTHORS" file')}catch{}if(r.includes("readme")&&!o.readme){let u=/\.m?a?r?k?d?o?w?n?$/i,f=await zu()("{README,README.*}",{cwd:e.path,nocase:!0,mark:!0}),l;for(let h of f)if(!h.endsWith(ke.sep)){if(h.match(u)){l=h;break}h.endsWith("README")&&(l=h)}if(l){let h=await yn.readFile(ke.join(e.path,l),"utf8");o.readme=h,o.readmeFilename=l,i?.push(`"readme" was set to the contents of ${l}`),i?.push(`"readmeFilename" was set to ${l}`)}o.readme||(o.readme="ERROR: No README data found!")}if(r.includes("mans")){if(o.directories?.man&&!o.man){let u=co(o.directories.man),f=ke.resolve(e.path,u),l=await zu()("**/*.[0-9]",{cwd:f});o.man=l.map(h=>ke.relative(e.path,ke.join(f,h)).split(ke.sep).join("/"))}PH(o,i)}if((r.includes("bin")||r.includes("binDir")||r.includes("binRefs"))&&uP(o,i),r.includes("binDir")&&o.directories?.bin&&!o.bin){let u=ke.resolve(e.path,co(o.directories.bin)),f=await zu()("**",{cwd:u});o.bin=f.reduce((l,h)=>{if(h&&!h.startsWith(".")){let p=ke.basename(h);l[p]=ke.join(o.directories.bin,h)}return l},{}),uP(o,i)}if(r.includes("gitHead")&&!o.gitHead){let f=await Tx().find({cwd:e.path,root:n}),l;if(f)try{l=await yn.readFile(ke.resolve(f,".git/HEAD"),"utf8")}catch{}let h;if(l)if(l.startsWith("ref: ")){let p=l.replace(/^ref: /,"").trim(),d=ke.resolve(f,".git",p);try{h=await yn.readFile(d,"utf8"),h=h.replace(/^ref: /,"").trim()}catch{}if(!h){let m=ke.resolve(f,".git/packed-refs");try{let v=await yn.readFile(m,"utf8");if(v){v=v.split(`
94
+ `);for(let P=0;P<v.length;P++){let C=v[P].match(/^([0-9a-f]{40}) (.+)$/);if(C&&C[2].trim()===p){h=C[1];break}}}}catch{}}}else h=l.trim();h&&(o.gitHead=h)}if(r.includes("fillTypes")){let u=o.main||"index.js";if(typeof u!="string")throw new TypeError('The "main" attribute must be of type string.');let l=`./${ke.join(ke.dirname(u),ke.basename(u,ke.extname(u)))}.d.ts`;if(!("types"in o||"typings"in o))try{await yn.access(ke.join(e.path,l)),o.types=l.split(ke.sep).join("/")}catch{}}if((r.includes("fixRepositoryField")||r.includes("normalizeData"))&&(o.repositories&&(i?.push(`"repository" was set to the first entry in "repositories" (${o.repository})`),o.repository=o.repositories[0]),o.repository&&(typeof o.repository=="string"&&(i?.push('"repository" was changed from a string to an object'),o.repository={type:"git",url:o.repository}),o.repository.url))){let u=aP().fromUrl(o.repository.url),f;u&&(u.getDefaultRepresentation()==="shortcut"?f=u.https():f=u.toString(),f!==o.repository.url&&(i?.push(`"repository.url" was normalized to "${f}"`),o.repository.url=f))}if(r.includes("fixDependencies")||r.includes("normalizeData")){for(let u of["dependencies","devDependencies","optionalDependencies"])if(o[u]){let f=!0;if(typeof o[u]=="string"&&(i?.push(`"${u}" was converted from a string into an object`),o[u]=o[u].trim().split(/[\n\r\s\t ,]+/),f=!1),Array.isArray(o[u])){f&&i?.push(`"${u}" was converted from an array into an object`);let l={};for(let h of o[u])if(typeof h=="string"){let p=h.trim().split(/(:?[@\s><=])/),d=p.shift(),m=p.join("").replace(/^@/,"").trim();l[d]=m}o[u]=l}}for(let u of["dependencies","devDependencies"])if(u in o)if(!o[u]||typeof o[u]!="object")i?.push(`Removed invalid "${u}"`),delete o[u];else for(let f in o[u]){typeof o[u][f]!="string"&&(i?.push(`Removed invalid "${u}.${f}"`),delete o[u][f]);let h=aP().fromUrl(o[u][f])?.toString();h&&h!==o[u][f]&&(i?.push(`Normalized git reference to "${u}.${f}"`),o[u][f]=h.toString())}}if(r.includes("normalizeData")){let{normalizeData:u}=oP();u(o,i)}if(r.includes("binRefs")&&o.bin instanceof Object)for(let u in o.bin)try{await yn.access(ke.resolve(e.path,o.bin[u]))}catch{xH.warn("package-json",c,`No bin file found at ${o.bin[u]}`)}};lP.exports=_H});var gP=R((EY,dP)=>{var{readFile:kH}=q("fs/promises"),DH=jh();async function hP(e){try{return await kH(e,"utf8")}catch(t){throw t.message=`Could not read package.json: ${t}`,t}}function pP(e){try{return DH(e)}catch(t){throw t.message=`Invalid package.json: ${t}`,t}}async function FH(e){let t=await hP(e);return pP(t)}dP.exports={read:hP,parse:pP,readPackage:FH}});var yP=R((wY,mP)=>{function LH(e){let{name:t,version:r,private:n,description:i,keywords:s,homepage:o,bugs:a,repository:c,funding:u,license:f,author:l,maintainers:h,contributors:p,type:d,imports:m,exports:v,main:P,browser:C,types:F,bin:D,man:E,directories:O,files:k,workspaces:_,scripts:T,config:b,dependencies:g,devDependencies:y,peerDependencies:w,peerDependenciesMeta:x,optionalDependencies:A,bundledDependencies:S,bundleDependencies:L,engines:N,os:I,cpu:B,publishConfig:W,devEngines:Y,licenses:se,overrides:G,...$}=e;return{...typeof t<"u"?{name:t}:{},...typeof r<"u"?{version:r}:{},...typeof n<"u"?{private:n}:{},...typeof i<"u"?{description:i}:{},...typeof s<"u"?{keywords:s}:{},...typeof o<"u"?{homepage:o}:{},...typeof a<"u"?{bugs:a}:{},...typeof c<"u"?{repository:c}:{},...typeof u<"u"?{funding:u}:{},...typeof f<"u"?{license:f}:{},...typeof l<"u"?{author:l}:{},...typeof h<"u"?{maintainers:h}:{},...typeof p<"u"?{contributors:p}:{},...typeof d<"u"?{type:d}:{},...typeof m<"u"?{imports:m}:{},...typeof v<"u"?{exports:v}:{},...typeof P<"u"?{main:P}:{},...typeof C<"u"?{browser:C}:{},...typeof F<"u"?{types:F}:{},...typeof D<"u"?{bin:D}:{},...typeof E<"u"?{man:E}:{},...typeof O<"u"?{directories:O}:{},...typeof k<"u"?{files:k}:{},...typeof _<"u"?{workspaces:_}:{},...typeof T<"u"?{scripts:T}:{},...typeof b<"u"?{config:b}:{},...typeof g<"u"?{dependencies:g}:{},...typeof y<"u"?{devDependencies:y}:{},...typeof w<"u"?{peerDependencies:w}:{},...typeof x<"u"?{peerDependenciesMeta:x}:{},...typeof A<"u"?{optionalDependencies:A}:{},...typeof S<"u"?{bundledDependencies:S}:{},...typeof L<"u"?{bundleDependencies:L}:{},...typeof N<"u"?{engines:N}:{},...typeof I<"u"?{os:I}:{},...typeof B<"u"?{cpu:B}:{},...typeof W<"u"?{publishConfig:W}:{},...typeof Y<"u"?{devEngines:Y}:{},...typeof se<"u"?{licenses:se}:{},...typeof G<"u"?{overrides:G}:{},...$}}mP.exports={packageSort:LH}});var md=R((SY,EP)=>{var{readFile:TH,writeFile:NH}=q("node:fs/promises"),{resolve:vP}=q("node:path"),IH=jh(),AP=iS(),$H=oS(),BH=uS(),dd=fP(),{read:MH,parse:jH}=gP(),{packageSort:qH}=yP(),WH=new Set([AP,$H,BH]),GH=new Set([...AP.knownKeys,"scripts","workspaces"]),gd=class e{static normalizeSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","optionalDedupe","scripts","funding","bin"]);static fixSteps=Object.freeze(["binRefs","bundleDependencies","bundleDependenciesFalse","fixNameField","fixVersionField","fixRepositoryField","fixDependencies","devDependencies","scriptpath"]);static prepareSteps=Object.freeze(["_id","_attributes","bundledDependencies","bundleDependencies","bundleDependenciesDeleteFalse","gypfile","serverjs","scriptpath","authors","readme","mans","binDir","gitHead","fillTypes","normalizeData","binRefs"]);static async create(t,r={}){let n=new e;return await n.create(t),r.data?n.update(r.data):n}static async load(t,r={}){let n=new e;if(!r.create)return n.load(t);try{return await n.load(t)}catch(i){if(!i.message.startsWith("Could not read package.json"))throw i;return await n.create(t)}}static async fix(t,r){let n=new e;return await n.load(t,!0),n.fix(r)}static async prepare(t,r){let n=new e;return await n.load(t,!0),n.prepare(r)}static async normalize(t,r){let n=new e;return await n.load(t),n.normalize(r)}#e;#r;#t="";#n=!0;async load(t,r){this.#e=t;let n;try{this.#t=await MH(this.filename)}catch(i){if(!r)throw i;n=i}if(n){let i=vP(this.path,"index.js"),s;try{s=await TH(i,"utf8")}catch{throw n}try{this.fromComment(s)}catch{throw n}return this.#n=!1,this}return this.fromJSON(this.#t)}fromJSON(t){return this.#r=jH(t),this}fromContent(t){return this.#r=t,this.#n=!1,this}fromComment(t){if(t=t.split(/^\/\*\*package(?:\s|$)/m),t.length<2)throw new Error("File has no package in comments");if(t=t[1],t=t.split(/\*\*\/$/m),t.length<2)throw new Error("File has no package in comments");return t=t[0],t=t.replace(/^\s*\*/mg,""),this.#r=IH(t),this}get content(){return this.#r}get path(){return this.#e}get filename(){if(this.path)return vP(this.path,"package.json")}create(t){return this.#e=t,this.#r={},this}update(t){if(!this.content)throw new Error("Can not update without content. Please `load` or `create`");for(let r of WH)this.#r=r({content:t,originalContent:this.content});for(let[r,n]of Object.entries(t))GH.has(r)||(this.content[r]=n);return this}async save({sort:t}={}){if(!this.#n)throw new Error("No package.json to save to");let{[Symbol.for("indent")]:r,[Symbol.for("newline")]:n,...i}=this.content,s=r===void 0?" ":r,o=n===void 0?`
95
+ `:n,a=t?qH(i):i,c=`${JSON.stringify(a,null,s)}
96
+ `.replace(/\n/g,o);if(c.trim()!==this.#t.trim()){let u=await NH(this.filename,c);return this.#t=c,u}}async normalize(t={}){return t.steps||(t.steps=this.constructor.normalizeSteps),await dd(this,t),this}async prepare(t={}){return t.steps||(t.steps=this.constructor.prepareSteps),await dd(this,t),this}async fix(t={}){return t.steps=this.constructor.fixSteps,await dd(this,t),this}};EP.exports=gd});var bP=R((bY,SP)=>{var{basename:wP,dirname:UH}=q("path"),HH=(e,t)=>e.charAt(0)==="@"?`${e}/${t}`:t;SP.exports=e=>e?HH(wP(UH(e)),wP(e)):!1});var _P=R((CY,RP)=>{var CP=q("path"),YH=bP(),{minimatch:lo}=$r(),zH=md(),{glob:VH}=Cp();function KH(e){let t=[],r=[];for(let n of e){let i=n.match(/^!+/);if(i&&(n=n.slice(i[0].length)),n=n.replace(/^\.?\/+/,""),i&&i[0].length%2===1)r.push(n);else{for(let o=0;o<r.length;++o){let a=r[o];lo(n,a)&&r.splice(o,1)}t.push(n)}}for(let n of r)for(let i of lo.match(t,n))t.splice(t.indexOf(i),1);return{patterns:t,negatedPatterns:r}}function xP(e){let t=Array.isArray(e.packages)?e.packages:e;if(!Array.isArray(t))throw Vu({message:"workspaces config expects an Array",code:"EWORKSPACESCONFIG"});return KH(t)}function PP(e,t){return e.name||YH(t)}function XH(e){return e=e.replace(/\\/g,"/"),e.endsWith("/")?e:`${e}/`}function Vu({Type:e=TypeError,message:t,code:r}){return Object.assign(new e(t),{code:r})}function JH(e){return new Map(Array.from(e,t=>t.reverse()))}async function OP(e={}){if(!e||!e.pkg)throw Vu({message:"mapWorkspaces missing pkg info",code:"EMAPWORKSPACESPKG"});e.cwd||(e.cwd=process.cwd());let{workspaces:t=[]}=e.pkg,{patterns:r,negatedPatterns:n}=xP(t),i=new Map;if(!r.length&&!n.length)return i;let s=new Map,o=()=>({...e,ignore:[...e.ignore||[],"**/node_modules/**",...n]}),a=await VH(r.map(f=>XH(f)),o());a=a.sort((f,l)=>f.localeCompare(l,"en"));let c=[];for(let f of r)c.push(...a.filter(l=>lo(l,f,{partial:!0,windowsPathsNoEscape:!0})));for(let f of c){let l;try{l=await zH.normalize(CP.join(e.cwd,f))}catch(d){if(d.code==="ENOENT"||d.code==="ENOTDIR")continue;throw d}let h=PP(l.content,l.path),p=s.get(h);p||(p=new Set,s.set(h,p)),p.add(l.path)}let u=["must not have multiple workspaces with the same name"];for(let[f,l]of s)l.size>1?QH(u,f,l):i.set(f,l.values().next().value);if(u.length>1)throw Vu({Type:Error,message:u.join(`
97
+ `),code:"EDUPLICATEWORKSPACE"});return i}function QH(e,t,r){e.push(`package '${t}' has conflicts in the following paths:`);for(let n of r)e.push(" "+n)}OP.virtual=function(e={}){if(!e||!e.lockfile)throw Vu({message:"mapWorkspaces.virtual missing lockfile info",code:"EMAPWORKSPACESLOCKFILE"});e.cwd||(e.cwd=process.cwd());let{packages:t={}}=e.lockfile,{workspaces:r=[]}=t[""]||{},n=new Map,{patterns:i,negatedPatterns:s}=xP(r);if(!i.length&&!s.length)return n;s.push("**/node_modules/**");let o=Object.keys(t);for(let a of s)for(let c of lo.match(o,a))o.splice(o.indexOf(c),1);for(let a of i)for(let c of lo.match(o,a)){let u=CP.join(e.cwd,c),f=PP(t[c],u);n.set(u,f)}return JH(n)};RP.exports=OP});var TP=R((xY,LP)=>{var{walkUp:ZH}=QE(),kP=Eh(),qi=Ph(),{log:cr,time:e9}=Cs(),{resolve:po,dirname:Ku,join:yd}=q("node:path"),{homedir:t9}=q("node:os"),{readFile:r9,writeFile:n9,chmod:i9,unlink:s9,stat:DP,mkdir:o9}=q("node:fs/promises"),a9=["global-prefix","local-prefix","npm-version","node-gyp"],vd=(...e)=>DP(po(...e)).then(t=>t.isFile()).catch(()=>!1),u9=(...e)=>DP(po(...e)).then(t=>t.isDirectory()).catch(()=>!1),Xu=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Wi=Ka(),jn=Bw(),c9=Nh(),l9=Ww(),f9=Yw(),FP=new Set(["global","user","project"]),fo=new Set(["default","builtin",...FP,"env","cli"]),Ad=class{#e=!1;#r;#t=null;static get typeDefs(){return Wi}constructor({definitions:t,shorthands:r,flatten:n,nerfDarts:i=[],npmPath:s,env:o=process.env,argv:a=process.argv,platform:c=process.platform,execPath:u=process.execPath,cwd:f=process.cwd(),excludeNpmCwd:l=!1}){this.nerfDarts=i,this.definitions=t;let h={},p={};this.deprecated={};for(let[v,P]of Object.entries(t))p[v]=P.default,h[v]=P.type,P.deprecated&&(this.deprecated[v]=P.deprecated.trim().replace(/\n +/,`
98
+ `));this.#r=n,this.types=h,this.shorthands=r,this.defaults=p,this.npmPath=s,this.npmBin=yd(this.npmPath,"bin/npm-cli.js"),this.argv=a,this.env=o,this.execPath=u,this.platform=c,this.cwd=f,this.excludeNpmCwd=l,this.globalPrefix=null,this.localPrefix=null,this.localPackage=null,this.home=null;let d=[...fo];this.data=new Map;let m=null;for(let v of d)this.data.set(v,m=new Ed(m));this.data.set=()=>{throw new Error("cannot change internal config data structure")},this.data.delete=()=>{throw new Error("cannot change internal config data structure")},this.sources=new Map([]),this.list=[];for(let{data:v}of this.data.values())this.list.unshift(v);Object.freeze(this.list),this.#e=!1}get loaded(){return this.#e}get prefix(){return this.#n("global")?this.globalPrefix:this.localPrefix}find(t){if(!this.loaded)throw new Error("call config.load() before reading values");let r=[...this.data.entries()];for(let n=r.length-1;n>-1;n--){let[i,{data:s}]=r[n];if(Xu(s,t))return i}return null}get(t,r){if(!this.loaded)throw new Error("call config.load() before reading values");return this.#n(t,r)}#n(t,r=null){if(r!==null&&!fo.has(r))throw new Error("invalid config location param: "+r);let{data:n}=this.data.get(r||"cli");return r===null||Xu(n,t)?n[t]:void 0}set(t,r,n="cli"){if(!this.loaded)throw new Error("call config.load() before setting values");if(!fo.has(n))throw new Error("invalid config location param: "+n);this.#c(t);let{data:i,raw:s}=this.data.get(n);i[t]=r,["global","user","project"].includes(n)&&(s[t]=r),this.data.get(n)[Gi]=null,this.#t=null}get flat(){if(this.#t)return this.#t;let t=e9.start("config:load:flatten");this.#t={};for(let{data:r}of this.data.values())this.#r(r,this.#t);return this.#t.nodeBin=this.execPath,this.#t.npmBin=this.npmBin,t(),this.#t}delete(t,r="cli"){if(!this.loaded)throw new Error("call config.load() before deleting values");if(!fo.has(r))throw new Error("invalid config location param: "+r);let{data:n,raw:i}=this.data.get(r);delete n[t],["global","user","project"].includes(r)&&delete i[t]}async load(){if(this.loaded)throw new Error("attempting to load npm config multiple times");this.loadDefaults(),await this.loadBuiltinConfig(),this.loadCLI(),this.loadEnv(),await this.loadProjectConfig(),await this.loadUserConfig(),await this.loadGlobalConfig(),this.#e=!0,this.globalPrefix=this.get("prefix"),this.setEnvs()}loadDefaults(){this.loadGlobalPrefix(),this.loadHome();let t={...this.defaults,prefix:this.globalPrefix};try{t["npm-version"]=q(yd(this.npmPath,"package.json")).version}catch{}this.#h(t,"default","default values");let{data:r}=this.data.get("default");Object.defineProperty(r,"globalconfig",{get:()=>po(this.#n("prefix"),"etc/npmrc"),set(n){Object.defineProperty(r,"globalconfig",{value:n,configurable:!0,writable:!0,enumerable:!0})},configurable:!0,enumerable:!0})}loadHome(){this.home=this.env.HOME||t9()}loadGlobalPrefix(){if(this.globalPrefix)throw new Error("cannot load default global prefix more than once");this.env.PREFIX?this.globalPrefix=this.env.PREFIX:this.platform==="win32"?this.globalPrefix=Ku(this.execPath):(this.globalPrefix=Ku(Ku(this.execPath)),this.env.DESTDIR&&(this.globalPrefix=yd(this.env.DESTDIR,this.globalPrefix)))}loadEnv(){let t=Object.create(null);for(let[r,n]of Object.entries(this.env)){if(!/^npm_config_/i.test(r)||n==="")continue;let i=r.slice(11);i.startsWith("//")||(i=i.replace(/(?!^)_/g,"-").toLowerCase()),t[i]=n}this.#h(t,"env","environment")}loadCLI(){for(let r of Object.keys(this.shorthands))r.length>1&&this.argv.includes(`-${r}`)&&cr.warn(`-${r} is not a valid single-hyphen cli flag and will be removed in the future`);qi.invalidHandler=(r,n,i)=>this.invalidHandler(r,n,i,"command line options","cli");let t=qi(this.types,this.shorthands,this.argv);qi.invalidHandler=null,this.parsedArgv=t.argv,delete t.argv,this.#h(t,"cli","command line options")}get valid(){for(let[t,{valid:r}]of this.data.entries())if(r===!1||r===null&&!this.validate(t))return!1;return!0}validate(t){if(t){let r=this.data.get(t);return r[Gi]=!0,qi.invalidHandler=(n,i,s)=>this.invalidHandler(n,i,s,r.source,t),qi.clean(r.data,this.types,Wi),qi.invalidHandler=null,r[Gi]}else{let r=!0,n=[];for(let i of this.data.keys()){if(i==="default"||i==="builtin"||i==="cli")continue;let s=this.validate(i);if(r=r&&s,["global","user","project"].includes(i)){for(let a of["_authtoken","-authtoken"])this.get(a,i)&&n.push({action:"delete",key:a,where:i});let o=jn(this.get("registry"));for(let a of["_auth","_authToken","username","_password"])this.get(a,i)&&(a==="username"&&!this.get("_password",i)?n.push({action:"delete",key:a,where:i}):a==="_password"&&!this.get("username",i)?n.push({action:"delete",key:a,where:i}):n.push({action:"rename",from:a,to:`${o}:${a}`,where:i}))}}if(n.length){let{ErrInvalidAuth:i}=Vw();throw new i(n)}return r}}repair(t){if(!t)try{this.validate()}catch(r){if(r.code!=="ERR_INVALID_AUTH")throw r;t=r.problems}finally{t||(t=[])}for(let r of t)if(r.action==="delete")this.delete(r.key,r.where);else if(r.action==="rename"){let n=this.data.get(r.where).raw?.[r.from],i=this.get(r.from,r.where);this.set(r.to,n||i,r.where),this.delete(r.from,r.where)}}isDefault(t){let[r,...n]=[...fo],i=this.data.get(r).data;return Xu(i,t)&&n.every(s=>{let o=this.data.get(s).data;return!Xu(o,t)})}invalidHandler(t,r,n,i,s){let o=Jw();cr.warn("invalid config",t+"="+JSON.stringify(r),`set in ${i}`),this.data.get(s)[Gi]=!1,Array.isArray(n)&&(n.includes(Wi.url.type)?n=Wi.url.type:n.includes(Wi.path.type)&&(n=Wi.path.type));let a=o(n),c=a.filter(l=>l!==void 0&&l!==Array),u="Must be"+this.#o(c,a),f=c.length===1?c[0]:[...new Set(c.map(l=>typeof l=="string"?l:JSON.stringify(l)))].join(", ");cr.warn("invalid config",u,f)}#o(t,r){let n;return t.length===1&&r.includes(Array)?n=" one or more":t.length>1&&r.includes(Array)?n=" one or more of:":t.length>1?n=" one of:":n="",n}#h(t,r,n,i=null){let s=this.data.get(r);if(s.source){let o=`double-loading "${r}" configs from ${n}, previously loaded from ${s.source}`;throw new Error(o)}if(this.sources.has(n)){let o=`double-loading config "${n}" as "${r}", previously loaded as "${this.sources.get(n)}"`;throw new Error(o)}if(s.source=n,this.sources.set(n,r),i)s.loadError=i,i.code!=="ENOENT"&&cr.verbose("config",`error loading ${r} config`,i);else{s.raw=t;for(let[o,a]of Object.entries(t)){let c=c9(o,this.env),u=this.parseField(a,c);if(r!=="default"&&(this.#c(c),this.definitions[o]?.exclusive)){for(let f of this.definitions[o].exclusive)if(!this.isDefault(f))throw new TypeError(`--${o} can not be provided when using --${f}`)}r!=="default"&&this.checkUnknown(r,o),s.data[c]=u}}}checkUnknown(t,r){if(!this.definitions[r]){if(a9.includes(r))return;if(!r.includes(":")){cr.warn(`Unknown ${t} config "${t==="cli"?"--":""}${r}". This will stop working in the next major version of npm.`);return}let n=r.split(":").pop();!this.definitions[n]&&!this.nerfDarts.includes(n)&&cr.warn(`Unknown ${t} config "${n}" (${r}). This will stop working in the next major version of npm.`)}}#c(t){this.deprecated[t]&&cr.warn("config",t,this.deprecated[t])}parseField(t,r,n=!1){return l9(t,r,this,n)}async#l(t,r){cr.silly("config",`load:file:${t}`),await r9(t,"utf8").then(n=>{let i=kP.parse(n);return r==="project"&&i.prefix&&cr.error("config",`prefix cannot be changed from project config: ${t}.`),this.#h(i,r,t)},n=>this.#h(null,r,t,n))}loadBuiltinConfig(){return this.#l(po(this.npmPath,"npmrc"),"builtin")}async loadProjectConfig(){if(await this.loadLocalPrefix(),this.localPackage==null&&(this.localPackage=await vd(this.localPrefix,"package.json")),this.#n("global")===!0||this.#n("location")==="global"){this.data.get("project").source="(global mode enabled, ignored)",this.sources.set(this.data.get("project").source,"project");return}let t=po(this.localPrefix,".npmrc");if(t!==this.#n("userconfig"))return this.#l(t,"project");this.data.get("project").source='(same as "user" config, ignored)',this.sources.set(this.data.get("project").source,"project")}async loadLocalPrefix(){let t=this.#n("prefix","cli");if(t){this.localPrefix=t;return}let r=this.#n("workspaces","cli"),n=this.#n("global")||this.#n("location")==="global";for(let i of ZH(this.cwd)){if(this.excludeNpmCwd&&i===this.npmPath)break;let s=await vd(i,"package.json");if(!this.localPrefix&&(s||await u9(i,"node_modules"))){if(this.localPrefix=i,this.localPackage=s,r===!1||n)return;continue}if(this.localPrefix&&s){let o=md(),{content:a}=await o.normalize(i).catch(()=>({content:{}}));if(!a?.workspaces)continue;let u=await _P()({cwd:i,pkg:a});for(let f of u.values())if(f===this.localPrefix){await vd(this.localPrefix,".npmrc")&&cr.warn("config",`ignoring workspace config at ${this.localPrefix}/.npmrc`);let{data:l}=this.data.get("default");l.workspace=[this.localPrefix],this.localPrefix=i,this.localPackage=s,cr.info("config",`found workspace root at ${this.localPrefix}`);return}}}this.localPrefix||(this.localPrefix=this.cwd)}loadUserConfig(){return this.#l(this.#n("userconfig"),"user")}loadGlobalConfig(){return this.#l(this.#n("globalconfig"),"global")}async save(t){if(!this.loaded)throw new Error("call config.load() before saving");if(!FP.has(t))throw new Error("invalid config location param: "+t);let r=this.data.get(t);if(r[ho]=null,t==="user"){let o=jn(this.get("registry")),a=this.get(`${o}:email`,"user");a&&(this.delete(`${o}:email`,"user"),this.set("email",a,"user"))}let n=kP.stringify(r.raw).trim()+`
99
+ `;if(!n.trim()){await s9(r.source).catch(()=>{});return}let i=Ku(r.source);await o9(i,{recursive:!0}),await n9(r.source,n,"utf8");let s=t==="user"?384:438;await i9(r.source,s)}clearCredentialsByURI(t,r="user"){let n=jn(t);if(jn(this.get("registry"))===n){this.delete("-authtoken",r),this.delete("_authToken",r),this.delete("_authtoken",r),this.delete("_auth",r),this.delete("_password",r),this.delete("username",r);let s=this.get(`${n}:email`,r);s&&this.set("email",s,r)}this.delete(`${n}:_authToken`,r),this.delete(`${n}:_auth`,r),this.delete(`${n}:_password`,r),this.delete(`${n}:username`,r),this.delete(`${n}:email`,r),this.delete(`${n}:certfile`,r),this.delete(`${n}:keyfile`,r)}setCredentialsByURI(t,{token:r,username:n,password:i,certfile:s,keyfile:o}){let a=jn(t);if(this.delete(`${a}:always-auth`,"user"),this.delete(`${a}:email`,"user"),s&&o&&(this.set(`${a}:certfile`,s,"user"),this.set(`${a}:keyfile`,o,"user")),r)this.set(`${a}:_authToken`,r,"user"),this.delete(`${a}:_password`,"user"),this.delete(`${a}:username`,"user");else if(n||i){if(!n)throw new Error("must include username");if(!i)throw new Error("must include password");this.delete(`${a}:_authToken`,"user"),this.set(`${a}:username`,n,"user");let c=Buffer.from(i,"utf8").toString("base64");this.set(`${a}:_password`,c,"user")}else if(!s||!o)throw new Error("No credentials to set.")}getCredentialsByURI(t){let r=jn(t),n=jn(this.get("registry")),i={},s=this.get(`${r}:email`)||this.get("email");s&&(r===n&&this.set("email",s,"user"),i.email=s);let o=this.get(`${r}:certfile`),a=this.get(`${r}:keyfile`);o&&a&&(i.certfile=o,i.keyfile=a);let c=this.get(`${r}:_authToken`);if(c)return i.token=c,i;let u=this.get(`${r}:username`),f=this.get(`${r}:_password`);if(u&&f){i.username=u,i.password=Buffer.from(f,"base64").toString("utf8");let h=`${i.username}:${i.password}`;return i.auth=Buffer.from(h,"utf8").toString("base64"),i}let l=this.get(`${r}:_auth`);if(l){let p=Buffer.from(l,"base64").toString("utf8").split(":");return i.username=p.shift(),i.password=p.join(":"),i.auth=l,i}return i}setEnvs(){f9(this)}},ho=Symbol("loadError"),Gi=Symbol("valid"),Ed=class{#e;#r=null;#t=null;constructor(t){this.#e=Object.create(t&&t.data),this.#t={},this[Gi]=!0}get data(){return this.#e}get valid(){return this[Gi]}set source(t){if(this.#r)throw new Error("cannot set ConfigData source more than once");this.#r=t}get source(){return this.#r}set loadError(t){if(this[ho]||Object.keys(this.#t).length)throw new Error("cannot set ConfigData loadError after load");this[ho]=t}get loadError(){return this[ho]}set raw(t){if(Object.keys(this.#t).length||this[ho])throw new Error("cannot set ConfigData raw after load");this.#t=t}get raw(){return this.#t}};LP.exports=Ad});var HA=xd(jA(),1);import{join as GA}from"node:path";import N2 from"node:fs/promises";import UA from"node:path";import{homedir as I2}from"node:os";var F2=e=>{try{e.startsWith("https://")||(e="https://"+e);let t=new URL(e),r=t.hostname,n=t.pathname;if(r.endsWith("dev.azure.com")){let i=n.split("/").filter(Boolean);if(i.length>=2)return{organization:i[0],project:i[1]};throw new Error("Not enough segments in path for a valid organization and project extraction.")}if(r.endsWith("visualstudio.com")){let i=r.split(".")[0],s=n.split("/").filter(Boolean);if(i&&s.length>=1)return{organization:i,project:s[0]};throw new Error("Not enough segments in path or missing subdomain for a valid organization and project extraction.")}throw new Error("URL format not recognized or does not contain enough information.")}catch{throw new Error("Invalid URL or unsupported format")}},bi=(e,t="")=>{try{let{organization:r}=F2(e);return r}catch{return t}};function cn(e){return Buffer.from(e||"").toString("base64")}var La=e=>Buffer.from(e,"base64").toString("utf8");import L2 from"https";var T2={port:443,method:"GET"},qA=async e=>new Promise((t,r)=>{let n={...T2,...e};L2.request(n,s=>{let o="",a={},c=s.statusCode===200;s.on("data",u=>{o+=u}),s.on("end",()=>{o&&n?.headers?.Accept==="application/json"&&(a=JSON.parse(o.toString().trim())),c?t(a||o):(a&&(a={...a,statusCode:s.statusCode}),r(a||o||new Error(`Error code: ${s.statusCode}.`)))}),s.on("error",u=>{r(new Error(u))})}).end()});var WA=async({password:e,organization:t})=>{let r=`Basic ${cn(`.:${e}`)}`,n={hostname:"feeds.dev.azure.com",port:443,path:`/${t}/_apis/packaging/feeds/1?api-version=6.1-preview.1`,method:"GET",headers:{Accept:"application/json",Authorization:r}};try{await qA(n)}catch(i){if(i.statusCode===404)return;throw i}};var YA="me",zA="me@example.com",Ci=class{constructor(t,r,n){this.id=t;this.workspaceFileName=r;let i;if(n&&UA.basename(n)===this.workspaceFileName)i=UA.resolve(n);else{let o=(0,HA.getWorkspaceRoot)(process.cwd())||"";i=GA(o,this.workspaceFileName)}this.workspaceFilePath=i;let s=process.env.HOME||process.env.USERPROFILE||I2()||"";this.userFilePath=GA(s,r),this.feeds=new Map}async isSupportedInRepo(){try{await N2.access(this.workspaceFilePath)}catch{return!1}return!0}async validateAllUsedFeeds(){await this.prepUserFile();let t=[],r=await this.getWorkspaceRegistries(),n=await this.getUserFeeds();for(let i of r){let s=n.get(i);if(s){let o=!0;try{await WA({password:s.authToken||"",organization:s.adoOrganization})}catch{o=!1}t.push({feed:s,isValid:o,fileProvider:this})}else t.push({feed:{registry:i,adoOrganization:bi(i)},isValid:!1,fileProvider:this})}return t}};function cE(e){return typeof e>"u"||e===null}function $2(e){return typeof e=="object"&&e!==null}function B2(e){return Array.isArray(e)?e:cE(e)?[]:[e]}function M2(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function j2(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function q2(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var W2=cE,G2=$2,U2=B2,H2=j2,Y2=q2,z2=M2,We={isNothing:W2,isObject:G2,toArray:U2,repeat:H2,isNegativeZero:Y2,extend:z2};function lE(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
94
100
 
95
- `+e.mark.snippet),n+" "+r):n}function Ji(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ov(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ji.prototype=Object.create(Error.prototype);Ji.prototype.constructor=Ji;Ji.prototype.toString=function(t){return this.name+": "+Ov(this,t)};var tt=Ji;function Gl(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function Ul(e,t){return Be.repeat(" ",t-e.length)+e}function MT(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",u,c,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(u=1;u<=t.linesBefore&&!(o-u<0);u++)c=Gl(e.buffer,n[o-u],i[o-u],e.position-(n[o]-n[o-u]),l),a=Be.repeat(" ",t.indent)+Ul((e.line-u+1).toString(),f)+" | "+c.str+`
96
- `+a;for(c=Gl(e.buffer,n[o],i[o],e.position,l),a+=Be.repeat(" ",t.indent)+Ul((e.line+1).toString(),f)+" | "+c.str+`
97
- `,a+=Be.repeat("-",t.indent+f+3+c.pos)+`^
98
- `,u=1;u<=t.linesAfter&&!(o+u>=i.length);u++)c=Gl(e.buffer,n[o+u],i[o+u],e.position-(n[o]-n[o+u]),l),a+=Be.repeat(" ",t.indent)+Ul((e.line+u+1).toString(),f)+" | "+c.str+`
99
- `;return a.replace(/\n$/,"")}var jT=MT,qT=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],HT=["scalar","sequence","mapping"];function GT(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function UT(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(qT.indexOf(r)===-1)throw new tt('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=GT(t.styleAliases||null),HT.indexOf(this.kind)===-1)throw new tt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var He=UT;function fv(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function WT(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function Yl(e){return this.extend(e)}Yl.prototype.extend=function(t){var r=[],n=[];if(t instanceof He)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new tt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof He))throw new tt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new tt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new tt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof He))throw new tt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Yl.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=fv(i,"implicit"),i.compiledExplicit=fv(i,"explicit"),i.compiledTypeMap=WT(i.compiledImplicit,i.compiledExplicit),i};var Rv=Yl,Fv=new He("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),kv=new He("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Pv=new He("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Dv=new Rv({explicit:[Fv,kv,Pv]});function YT(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function zT(){return null}function VT(e){return e===null}var Tv=new He("tag:yaml.org,2002:null",{kind:"scalar",resolve:YT,construct:zT,predicate:VT,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function KT(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function XT(e){return e==="true"||e==="True"||e==="TRUE"}function QT(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var Iv=new He("tag:yaml.org,2002:bool",{kind:"scalar",resolve:KT,construct:XT,predicate:QT,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function JT(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function ZT(e){return 48<=e&&e<=55}function eI(e){return 48<=e&&e<=57}function tI(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!JT(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!ZT(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!eI(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function rI(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function nI(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Be.isNegativeZero(e)}var Lv=new He("tag:yaml.org,2002:int",{kind:"scalar",resolve:tI,construct:rI,predicate:nI,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),iI=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function sI(e){return!(e===null||!iI.test(e)||e[e.length-1]==="_")}function oI(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var aI=/^[-+]?[0-9]+e/;function uI(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Be.isNegativeZero(e))return"-0.0";return r=e.toString(10),aI.test(r)?r.replace("e",".e"):r}function cI(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Be.isNegativeZero(e))}var Nv=new He("tag:yaml.org,2002:float",{kind:"scalar",resolve:sI,construct:oI,predicate:cI,represent:uI,defaultStyle:"lowercase"}),Bv=Dv.extend({implicit:[Tv,Iv,Lv,Nv]}),$v=Bv,Mv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),jv=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function lI(e){return e===null?!1:Mv.exec(e)!==null||jv.exec(e)!==null}function fI(e){var t,r,n,i,s,o,a,u=0,c=null,f,l,h;if(t=Mv.exec(e),t===null&&(t=jv.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(f=+t[10],l=+(t[11]||0),c=(f*60+l)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,i,s,o,a,u)),c&&h.setTime(h.getTime()-c),h}function hI(e){return e.toISOString()}var qv=new He("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:lI,construct:fI,instanceOf:Date,represent:hI});function dI(e){return e==="<<"||e===null}var Hv=new He("tag:yaml.org,2002:merge",{kind:"scalar",resolve:dI}),Ql=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
100
- \r`;function pI(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=Ql;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function gI(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=Ql,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function mI(e){var t="",r=0,n,i,s=e.length,o=Ql;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function yI(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Gv=new He("tag:yaml.org,2002:binary",{kind:"scalar",resolve:pI,construct:gI,predicate:yI,represent:mI}),vI=Object.prototype.hasOwnProperty,EI=Object.prototype.toString;function AI(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,EI.call(i)!=="[object Object]")return!1;for(s in i)if(vI.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function SI(e){return e!==null?e:[]}var Uv=new He("tag:yaml.org,2002:omap",{kind:"sequence",resolve:AI,construct:SI}),wI=Object.prototype.toString;function CI(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],wI.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function _I(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var Wv=new He("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:CI,construct:_I}),xI=Object.prototype.hasOwnProperty;function bI(e){if(e===null)return!0;var t,r=e;for(t in r)if(xI.call(r,t)&&r[t]!==null)return!1;return!0}function OI(e){return e!==null?e:{}}var Yv=new He("tag:yaml.org,2002:set",{kind:"mapping",resolve:bI,construct:OI}),Jl=$v.extend({implicit:[qv,Hv],explicit:[Gv,Uv,Wv,Yv]}),Lr=Object.prototype.hasOwnProperty,Qo=1,zv=2,Vv=3,Jo=4,Wl=1,RI=2,hv=3,FI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,kI=/[\x85\u2028\u2029]/,PI=/[,\[\]\{\}]/,Kv=/^(?:!|!!|![a-z\-]+!)$/i,Xv=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function dv(e){return Object.prototype.toString.call(e)}function zt(e){return e===10||e===13}function on(e){return e===9||e===32}function ut(e){return e===9||e===32||e===10||e===13}function ni(e){return e===44||e===91||e===93||e===123||e===125}function DI(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function TI(e){return e===120?2:e===117?4:e===85?8:0}function II(e){return 48<=e&&e<=57?e-48:-1}function pv(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
101
- `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function LI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Qv=new Array(256),Jv=new Array(256);for(sn=0;sn<256;sn++)Qv[sn]=pv(sn)?1:0,Jv[sn]=pv(sn);var sn;function NI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Jl,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Zv(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=jT(r),new tt(t,r)}function ee(e,t){throw Zv(e,t)}function Zo(e,t){e.onWarning&&e.onWarning.call(null,Zv(e,t))}var gv={YAML:function(t,r,n){var i,s,o;t.version!==null&&ee(t,"duplication of %YAML directive"),n.length!==1&&ee(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&ee(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&ee(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Zo(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&ee(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Kv.test(i)||ee(t,"ill-formed tag handle (first argument) of the TAG directive"),Lr.call(t.tagMap,i)&&ee(t,'there is a previously declared suffix for "'+i+'" tag handle'),Xv.test(s)||ee(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{ee(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function Ir(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||ee(e,"expected valid JSON character");else FI.test(a)&&ee(e,"the stream contains non-printable characters");e.result+=a}}function mv(e,t,r,n){var i,s,o,a;for(Be.isObject(r)||ee(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],Lr.call(t,s)||(t[s]=r[s],n[s]=!0)}function ii(e,t,r,n,i,s,o,a,u){var c,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,f=i.length;c<f;c+=1)Array.isArray(i[c])&&ee(e,"nested arrays are not supported inside keys"),typeof i=="object"&&dv(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&dv(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,f=s.length;c<f;c+=1)mv(e,t,s[c],r);else mv(e,t,s,r);else!e.json&&!Lr.call(r,i)&&Lr.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=u||e.position,ee(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function Zl(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ee(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Le(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;on(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(zt(i))for(Zl(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Zo(e,"deficient indentation"),n}function ra(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||ut(r)))}function ef(e,t){t===1?e.result+=" ":t>1&&(e.result+=Be.repeat(`
102
- `,t-1))}function BI(e,t,r){var n,i,s,o,a,u,c,f,l=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),ut(d)||ni(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),ut(i)||r&&ni(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),ut(i)||r&&ni(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),ut(n))break}else{if(e.position===e.lineStart&&ra(e)||r&&ni(d))break;if(zt(d))if(u=e.line,c=e.lineStart,f=e.lineIndent,Le(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=u,e.lineStart=c,e.lineIndent=f;break}}a&&(Ir(e,s,o,!1),ef(e,e.line-u),s=o=e.position,a=!1),on(d)||(o=e.position+1),d=e.input.charCodeAt(++e.position)}return Ir(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function $I(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ir(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else zt(r)?(Ir(e,n,i,!0),ef(e,Le(e,!1,t)),n=i=e.position):e.position===e.lineStart&&ra(e)?ee(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);ee(e,"unexpected end of the stream within a single quoted scalar")}function MI(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Ir(e,r,e.position,!0),e.position++,!0;if(a===92){if(Ir(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),zt(a))Le(e,!1,t);else if(a<256&&Qv[a])e.result+=Jv[a],e.position++;else if((o=TI(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=DI(a))>=0?s=(s<<4)+o:ee(e,"expected hexadecimal character");e.result+=LI(s),e.position++}else ee(e,"unknown escape sequence");r=n=e.position}else zt(a)?(Ir(e,r,n,!0),ef(e,Le(e,!1,t)),r=n=e.position):e.position===e.lineStart&&ra(e)?ee(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ee(e,"unexpected end of the stream within a double quoted scalar")}function jI(e,t){var r=!0,n,i,s,o=e.tag,a,u=e.anchor,c,f,l,h,d,g=Object.create(null),S,w,k,_;if(_=e.input.charCodeAt(e.position),_===91)f=93,d=!1,a=[];else if(_===123)f=125,d=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),_=e.input.charCodeAt(++e.position);_!==0;){if(Le(e,!0,t),_=e.input.charCodeAt(e.position),_===f)return e.position++,e.tag=o,e.anchor=u,e.kind=d?"mapping":"sequence",e.result=a,!0;r?_===44&&ee(e,"expected the node content, but found ','"):ee(e,"missed comma between flow collection entries"),w=S=k=null,l=h=!1,_===63&&(c=e.input.charCodeAt(e.position+1),ut(c)&&(l=h=!0,e.position++,Le(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,si(e,t,Qo,!1,!0),w=e.tag,S=e.result,Le(e,!0,t),_=e.input.charCodeAt(e.position),(h||e.line===n)&&_===58&&(l=!0,_=e.input.charCodeAt(++e.position),Le(e,!0,t),si(e,t,Qo,!1,!0),k=e.result),d?ii(e,a,g,w,S,k,n,i,s):l?a.push(ii(e,null,g,w,S,k,n,i,s)):a.push(S),Le(e,!0,t),_=e.input.charCodeAt(e.position),_===44?(r=!0,_=e.input.charCodeAt(++e.position)):r=!1}ee(e,"unexpected end of the stream within a flow collection")}function qI(e,t){var r,n,i=Wl,s=!1,o=!1,a=t,u=0,c=!1,f,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)Wl===i?i=l===43?hv:RI:ee(e,"repeat of a chomping mode identifier");else if((f=II(l))>=0)f===0?ee(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?ee(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(on(l)){do l=e.input.charCodeAt(++e.position);while(on(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!zt(l)&&l!==0)}for(;l!==0;){for(Zl(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),zt(l)){u++;continue}if(e.lineIndent<a){i===hv?e.result+=Be.repeat(`
103
- `,s?1+u:u):i===Wl&&s&&(e.result+=`
104
- `);break}for(n?on(l)?(c=!0,e.result+=Be.repeat(`
105
- `,s?1+u:u)):c?(c=!1,e.result+=Be.repeat(`
106
- `,u+1)):u===0?s&&(e.result+=" "):e.result+=Be.repeat(`
107
- `,u):e.result+=Be.repeat(`
108
- `,s?1+u:u),s=!0,o=!0,u=0,r=e.position;!zt(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Ir(e,r,e.position,!1)}return!0}function yv(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ee(e,"tab characters must not be used in indentation")),!(u!==45||(o=e.input.charCodeAt(e.position+1),!ut(o))));){if(a=!0,e.position++,Le(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,si(e,t,Vv,!1,!0),s.push(e.result),Le(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)ee(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function HI(e,t,r){var n,i,s,o,a,u,c=e.tag,f=e.anchor,l={},h=Object.create(null),d=null,g=null,S=null,w=!1,k=!1,_;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),_=e.input.charCodeAt(e.position);_!==0;){if(!w&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,ee(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(_===63||_===58)&&ut(n))_===63?(w&&(ii(e,l,h,d,g,null,o,a,u),d=g=S=null),k=!0,w=!0,i=!0):w?(w=!1,i=!0):ee(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,_=n;else{if(o=e.line,a=e.lineStart,u=e.position,!si(e,r,zv,!1,!0))break;if(e.line===s){for(_=e.input.charCodeAt(e.position);on(_);)_=e.input.charCodeAt(++e.position);if(_===58)_=e.input.charCodeAt(++e.position),ut(_)||ee(e,"a whitespace character is expected after the key-value separator within a block mapping"),w&&(ii(e,l,h,d,g,null,o,a,u),d=g=S=null),k=!0,w=!1,i=!1,d=e.tag,g=e.result;else if(k)ee(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=f,!0}else if(k)ee(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(w&&(o=e.line,a=e.lineStart,u=e.position),si(e,t,Jo,!0,i)&&(w?g=e.result:S=e.result),w||(ii(e,l,h,d,g,S,o,a,u),d=g=S=null),Le(e,!0,-1),_=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&_!==0)ee(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return w&&ii(e,l,h,d,g,null,o,a,u),k&&(e.tag=c,e.anchor=f,e.kind="mapping",e.result=l),k}function GI(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&ee(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):ee(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!ut(o);)o===33&&(n?ee(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Kv.test(i)||ee(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),PI.test(s)&&ee(e,"tag suffix cannot contain flow indicator characters")}s&&!Xv.test(s)&&ee(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{ee(e,"tag name is malformed: "+s)}return r?e.tag=s:Lr.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:ee(e,'undeclared tag handle "'+i+'"'),!0}function UI(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ee(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!ut(r)&&!ni(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function WI(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!ut(n)&&!ni(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&ee(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Lr.call(e.anchorMap,r)||ee(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Le(e,!0,-1),!0}function si(e,t,r,n,i){var s,o,a,u=1,c=!1,f=!1,l,h,d,g,S,w;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Jo===r||Vv===r,n&&Le(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;GI(e)||UI(e);)Le(e,!0,-1)?(c=!0,a=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):a=!1;if(a&&(a=c||i),(u===1||Jo===r)&&(Qo===r||zv===r?S=t:S=t+1,w=e.position-e.lineStart,u===1?a&&(yv(e,w)||HI(e,w,S))||jI(e,S)?f=!0:(o&&qI(e,S)||$I(e,S)||MI(e,S)?f=!0:WI(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&ee(e,"alias node should not have any properties")):BI(e,S,Qo===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(f=a&&yv(e,w))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&ee(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(g=e.implicitTypes[l],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(Lr.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,d=e.typeMap.multi[e.kind||"fallback"],l=0,h=d.length;l<h;l+=1)if(e.tag.slice(0,d[l].tag.length)===d[l].tag){g=d[l];break}g||ee(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&ee(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):ee(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function YI(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Le(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!ut(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&ee(e,"directive name must not be less than one character in length");o!==0;){for(;on(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!zt(o));break}if(zt(o))break;for(r=e.position;o!==0&&!ut(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&Zl(e),Lr.call(gv,n)?gv[n](e,n,i):Zo(e,'unknown document directive "'+n+'"')}if(Le(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Le(e,!0,-1)):s&&ee(e,"directives end mark is expected"),si(e,e.lineIndent-1,Jo,!1,!0),Le(e,!0,-1),e.checkLineBreaks&&kI.test(e.input.slice(t,e.position))&&Zo(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ra(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Le(e,!0,-1));return}if(e.position<e.length-1)ee(e,"end of the stream or a document separator is expected");else return}function eE(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
109
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new NI(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,ee(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)YI(r);return r.documents}function zI(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=eE(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function VI(e,t){var r=eE(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new tt("expected a single document in the stream, but found more")}}var KI=zI,XI=VI,tE={loadAll:KI,load:XI},rE=Object.prototype.toString,nE=Object.prototype.hasOwnProperty,tf=65279,QI=9,Zi=10,JI=13,ZI=32,e2=33,t2=34,zl=35,r2=37,n2=38,i2=39,s2=42,iE=44,o2=45,ea=58,a2=61,u2=62,c2=63,l2=64,sE=91,oE=93,f2=96,aE=123,h2=124,uE=125,ze={};ze[0]="\\0";ze[7]="\\a";ze[8]="\\b";ze[9]="\\t";ze[10]="\\n";ze[11]="\\v";ze[12]="\\f";ze[13]="\\r";ze[27]="\\e";ze[34]='\\"';ze[92]="\\\\";ze[133]="\\N";ze[160]="\\_";ze[8232]="\\L";ze[8233]="\\P";var d2=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],p2=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function g2(e,t){var r,n,i,s,o,a,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),u=e.compiledTypeMap.fallback[o],u&&nE.call(u.styleAliases,a)&&(a=u.styleAliases[a]),r[o]=a;return r}function m2(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new tt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Be.repeat("0",n-t.length)+t}var y2=1,es=2;function v2(e){this.schema=e.schema||Jl,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Be.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=g2(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?es:y2,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function vv(e,t){for(var r=Be.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
101
+ `+e.mark.snippet),n+" "+r):n}function Es(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=lE(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Es.prototype=Object.create(Error.prototype);Es.prototype.constructor=Es;Es.prototype.toString=function(t){return this.name+": "+lE(this,t)};var gt=Es;function rh(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function nh(e,t){return We.repeat(" ",t-e.length)+e}function V2(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",c,u,f=Math.min(e.line+t.linesAfter,i.length).toString().length,l=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)u=rh(e.buffer,n[o-c],i[o-c],e.position-(n[o]-n[o-c]),l),a=We.repeat(" ",t.indent)+nh((e.line-c+1).toString(),f)+" | "+u.str+`
102
+ `+a;for(u=rh(e.buffer,n[o],i[o],e.position,l),a+=We.repeat(" ",t.indent)+nh((e.line+1).toString(),f)+" | "+u.str+`
103
+ `,a+=We.repeat("-",t.indent+f+3+u.pos)+`^
104
+ `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)u=rh(e.buffer,n[o+c],i[o+c],e.position-(n[o]-n[o+c]),l),a+=We.repeat(" ",t.indent)+nh((e.line+c+1).toString(),f)+" | "+u.str+`
105
+ `;return a.replace(/\n$/,"")}var K2=V2,X2=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],J2=["scalar","sequence","mapping"];function Q2(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function Z2(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(X2.indexOf(r)===-1)throw new gt('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=Q2(t.styleAliases||null),J2.indexOf(this.kind)===-1)throw new gt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Je=Z2;function VA(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function eI(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function sh(e){return this.extend(e)}sh.prototype.extend=function(t){var r=[],n=[];if(t instanceof Je)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new gt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Je))throw new gt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new gt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new gt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof Je))throw new gt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(sh.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=VA(i,"implicit"),i.compiledExplicit=VA(i,"explicit"),i.compiledTypeMap=eI(i.compiledImplicit,i.compiledExplicit),i};var fE=sh,hE=new Je("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),pE=new Je("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),dE=new Je("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),gE=new fE({explicit:[hE,pE,dE]});function tI(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function rI(){return null}function nI(e){return e===null}var mE=new Je("tag:yaml.org,2002:null",{kind:"scalar",resolve:tI,construct:rI,predicate:nI,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function iI(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function sI(e){return e==="true"||e==="True"||e==="TRUE"}function oI(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var yE=new Je("tag:yaml.org,2002:bool",{kind:"scalar",resolve:iI,construct:sI,predicate:oI,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function aI(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function uI(e){return 48<=e&&e<=55}function cI(e){return 48<=e&&e<=57}function lI(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!aI(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!uI(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!cI(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function fI(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function hI(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!We.isNegativeZero(e)}var vE=new Je("tag:yaml.org,2002:int",{kind:"scalar",resolve:lI,construct:fI,predicate:hI,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),pI=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function dI(e){return!(e===null||!pI.test(e)||e[e.length-1]==="_")}function gI(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var mI=/^[-+]?[0-9]+e/;function yI(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(We.isNegativeZero(e))return"-0.0";return r=e.toString(10),mI.test(r)?r.replace("e",".e"):r}function vI(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||We.isNegativeZero(e))}var AE=new Je("tag:yaml.org,2002:float",{kind:"scalar",resolve:dI,construct:gI,predicate:vI,represent:yI,defaultStyle:"lowercase"}),EE=gE.extend({implicit:[mE,yE,vE,AE]}),wE=EE,SE=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),bE=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function AI(e){return e===null?!1:SE.exec(e)!==null||bE.exec(e)!==null}function EI(e){var t,r,n,i,s,o,a,c=0,u=null,f,l,h;if(t=SE.exec(e),t===null&&(t=bE.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(f=+t[10],l=+(t[11]||0),u=(f*60+l)*6e4,t[9]==="-"&&(u=-u)),h=new Date(Date.UTC(r,n,i,s,o,a,c)),u&&h.setTime(h.getTime()-u),h}function wI(e){return e.toISOString()}var CE=new Je("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:AI,construct:EI,instanceOf:Date,represent:wI});function SI(e){return e==="<<"||e===null}var xE=new Je("tag:yaml.org,2002:merge",{kind:"scalar",resolve:SI}),lh=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
106
+ \r`;function bI(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=lh;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function CI(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=lh,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function xI(e){var t="",r=0,n,i,s=e.length,o=lh;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function PI(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var PE=new Je("tag:yaml.org,2002:binary",{kind:"scalar",resolve:bI,construct:CI,predicate:PI,represent:xI}),OI=Object.prototype.hasOwnProperty,RI=Object.prototype.toString;function _I(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,RI.call(i)!=="[object Object]")return!1;for(s in i)if(OI.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function kI(e){return e!==null?e:[]}var OE=new Je("tag:yaml.org,2002:omap",{kind:"sequence",resolve:_I,construct:kI}),DI=Object.prototype.toString;function FI(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],DI.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function LI(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var RE=new Je("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:FI,construct:LI}),TI=Object.prototype.hasOwnProperty;function NI(e){if(e===null)return!0;var t,r=e;for(t in r)if(TI.call(r,t)&&r[t]!==null)return!1;return!0}function II(e){return e!==null?e:{}}var _E=new Je("tag:yaml.org,2002:set",{kind:"mapping",resolve:NI,construct:II}),fh=wE.extend({implicit:[CE,xE],explicit:[PE,OE,RE,_E]}),fn=Object.prototype.hasOwnProperty,Ta=1,kE=2,DE=3,Na=4,ih=1,$I=2,KA=3,BI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,MI=/[\x85\u2028\u2029]/,jI=/[,\[\]\{\}]/,FE=/^(?:!|!!|![a-z\-]+!)$/i,LE=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function XA(e){return Object.prototype.toString.call(e)}function Ar(e){return e===10||e===13}function Fn(e){return e===9||e===32}function Pt(e){return e===9||e===32||e===10||e===13}function Pi(e){return e===44||e===91||e===93||e===123||e===125}function qI(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function WI(e){return e===120?2:e===117?4:e===85?8:0}function GI(e){return 48<=e&&e<=57?e-48:-1}function JA(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
107
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function UI(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var TE=new Array(256),NE=new Array(256);for(Dn=0;Dn<256;Dn++)TE[Dn]=JA(Dn)?1:0,NE[Dn]=JA(Dn);var Dn;function HI(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||fh,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function IE(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=K2(r),new gt(t,r)}function te(e,t){throw IE(e,t)}function Ia(e,t){e.onWarning&&e.onWarning.call(null,IE(e,t))}var QA={YAML:function(t,r,n){var i,s,o;t.version!==null&&te(t,"duplication of %YAML directive"),n.length!==1&&te(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&te(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&te(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Ia(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&te(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],FE.test(i)||te(t,"ill-formed tag handle (first argument) of the TAG directive"),fn.call(t.tagMap,i)&&te(t,'there is a previously declared suffix for "'+i+'" tag handle'),LE.test(s)||te(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{te(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function ln(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||te(e,"expected valid JSON character");else BI.test(a)&&te(e,"the stream contains non-printable characters");e.result+=a}}function ZA(e,t,r,n){var i,s,o,a;for(We.isObject(r)||te(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],fn.call(t,s)||(t[s]=r[s],n[s]=!0)}function Oi(e,t,r,n,i,s,o,a,c){var u,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),u=0,f=i.length;u<f;u+=1)Array.isArray(i[u])&&te(e,"nested arrays are not supported inside keys"),typeof i=="object"&&XA(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&XA(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(u=0,f=s.length;u<f;u+=1)ZA(e,t,s[u],r);else ZA(e,t,s,r);else!e.json&&!fn.call(r,i)&&fn.call(t,i)&&(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,te(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function hh(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):te(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Me(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Fn(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Ar(i))for(hh(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Ia(e,"deficient indentation"),n}function Ma(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Pt(r)))}function ph(e,t){t===1?e.result+=" ":t>1&&(e.result+=We.repeat(`
108
+ `,t-1))}function YI(e,t,r){var n,i,s,o,a,c,u,f,l=e.kind,h=e.result,p;if(p=e.input.charCodeAt(e.position),Pt(p)||Pi(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),Pt(i)||r&&Pi(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),Pt(i)||r&&Pi(i))break}else if(p===35){if(n=e.input.charCodeAt(e.position-1),Pt(n))break}else{if(e.position===e.lineStart&&Ma(e)||r&&Pi(p))break;if(Ar(p))if(c=e.line,u=e.lineStart,f=e.lineIndent,Me(e,!1,-1),e.lineIndent>=t){a=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=u,e.lineIndent=f;break}}a&&(ln(e,s,o,!1),ph(e,e.line-c),s=o=e.position,a=!1),Fn(p)||(o=e.position+1),p=e.input.charCodeAt(++e.position)}return ln(e,s,o,!1),e.result?!0:(e.kind=l,e.result=h,!1)}function zI(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(ln(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else Ar(r)?(ln(e,n,i,!0),ph(e,Me(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Ma(e)?te(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);te(e,"unexpected end of the stream within a single quoted scalar")}function VI(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return ln(e,r,e.position,!0),e.position++,!0;if(a===92){if(ln(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),Ar(a))Me(e,!1,t);else if(a<256&&TE[a])e.result+=NE[a],e.position++;else if((o=WI(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=qI(a))>=0?s=(s<<4)+o:te(e,"expected hexadecimal character");e.result+=UI(s),e.position++}else te(e,"unknown escape sequence");r=n=e.position}else Ar(a)?(ln(e,r,n,!0),ph(e,Me(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Ma(e)?te(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}te(e,"unexpected end of the stream within a double quoted scalar")}function KI(e,t){var r=!0,n,i,s,o=e.tag,a,c=e.anchor,u,f,l,h,p,d=Object.create(null),m,v,P,C;if(C=e.input.charCodeAt(e.position),C===91)f=93,p=!1,a=[];else if(C===123)f=125,p=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),C=e.input.charCodeAt(++e.position);C!==0;){if(Me(e,!0,t),C=e.input.charCodeAt(e.position),C===f)return e.position++,e.tag=o,e.anchor=c,e.kind=p?"mapping":"sequence",e.result=a,!0;r?C===44&&te(e,"expected the node content, but found ','"):te(e,"missed comma between flow collection entries"),v=m=P=null,l=h=!1,C===63&&(u=e.input.charCodeAt(e.position+1),Pt(u)&&(l=h=!0,e.position++,Me(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Ri(e,t,Ta,!1,!0),v=e.tag,m=e.result,Me(e,!0,t),C=e.input.charCodeAt(e.position),(h||e.line===n)&&C===58&&(l=!0,C=e.input.charCodeAt(++e.position),Me(e,!0,t),Ri(e,t,Ta,!1,!0),P=e.result),p?Oi(e,a,d,v,m,P,n,i,s):l?a.push(Oi(e,null,d,v,m,P,n,i,s)):a.push(m),Me(e,!0,t),C=e.input.charCodeAt(e.position),C===44?(r=!0,C=e.input.charCodeAt(++e.position)):r=!1}te(e,"unexpected end of the stream within a flow collection")}function XI(e,t){var r,n,i=ih,s=!1,o=!1,a=t,c=0,u=!1,f,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;for(e.kind="scalar",e.result="";l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)ih===i?i=l===43?KA:$I:te(e,"repeat of a chomping mode identifier");else if((f=GI(l))>=0)f===0?te(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?te(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(Fn(l)){do l=e.input.charCodeAt(++e.position);while(Fn(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!Ar(l)&&l!==0)}for(;l!==0;){for(hh(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),Ar(l)){c++;continue}if(e.lineIndent<a){i===KA?e.result+=We.repeat(`
109
+ `,s?1+c:c):i===ih&&s&&(e.result+=`
110
+ `);break}for(n?Fn(l)?(u=!0,e.result+=We.repeat(`
111
+ `,s?1+c:c)):u?(u=!1,e.result+=We.repeat(`
112
+ `,c+1)):c===0?s&&(e.result+=" "):e.result+=We.repeat(`
113
+ `,c):e.result+=We.repeat(`
114
+ `,s?1+c:c),s=!0,o=!0,c=0,r=e.position;!Ar(l)&&l!==0;)l=e.input.charCodeAt(++e.position);ln(e,r,e.position,!1)}return!0}function eE(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,te(e,"tab characters must not be used in indentation")),!(c!==45||(o=e.input.charCodeAt(e.position+1),!Pt(o))));){if(a=!0,e.position++,Me(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,Ri(e,t,DE,!1,!0),s.push(e.result),Me(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)te(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function JI(e,t,r){var n,i,s,o,a,c,u=e.tag,f=e.anchor,l={},h=Object.create(null),p=null,d=null,m=null,v=!1,P=!1,C;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),C=e.input.charCodeAt(e.position);C!==0;){if(!v&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,te(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(C===63||C===58)&&Pt(n))C===63?(v&&(Oi(e,l,h,p,d,null,o,a,c),p=d=m=null),P=!0,v=!0,i=!0):v?(v=!1,i=!0):te(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,C=n;else{if(o=e.line,a=e.lineStart,c=e.position,!Ri(e,r,kE,!1,!0))break;if(e.line===s){for(C=e.input.charCodeAt(e.position);Fn(C);)C=e.input.charCodeAt(++e.position);if(C===58)C=e.input.charCodeAt(++e.position),Pt(C)||te(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Oi(e,l,h,p,d,null,o,a,c),p=d=m=null),P=!0,v=!1,i=!1,p=e.tag,d=e.result;else if(P)te(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=f,!0}else if(P)te(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=f,!0}if((e.line===s||e.lineIndent>t)&&(v&&(o=e.line,a=e.lineStart,c=e.position),Ri(e,t,Na,!0,i)&&(v?d=e.result:m=e.result),v||(Oi(e,l,h,p,d,m,o,a,c),p=d=m=null),Me(e,!0,-1),C=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&C!==0)te(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&Oi(e,l,h,p,d,null,o,a,c),P&&(e.tag=u,e.anchor=f,e.kind="mapping",e.result=l),P}function QI(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&te(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):te(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!Pt(o);)o===33&&(n?te(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),FE.test(i)||te(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),jI.test(s)&&te(e,"tag suffix cannot contain flow indicator characters")}s&&!LE.test(s)&&te(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{te(e,"tag name is malformed: "+s)}return r?e.tag=s:fn.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:te(e,'undeclared tag handle "'+i+'"'),!0}function ZI(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&te(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Pt(r)&&!Pi(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&te(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function e$(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Pt(n)&&!Pi(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&te(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),fn.call(e.anchorMap,r)||te(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Me(e,!0,-1),!0}function Ri(e,t,r,n,i){var s,o,a,c=1,u=!1,f=!1,l,h,p,d,m,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Na===r||DE===r,n&&Me(e,!0,-1)&&(u=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;QI(e)||ZI(e);)Me(e,!0,-1)?(u=!0,a=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=u||i),(c===1||Na===r)&&(Ta===r||kE===r?m=t:m=t+1,v=e.position-e.lineStart,c===1?a&&(eE(e,v)||JI(e,v,m))||KI(e,m)?f=!0:(o&&XI(e,m)||zI(e,m)||VI(e,m)?f=!0:e$(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&te(e,"alias node should not have any properties")):YI(e,m,Ta===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(f=a&&eE(e,v))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&te(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),l=0,h=e.implicitTypes.length;l<h;l+=1)if(d=e.implicitTypes[l],d.resolve(e.result)){e.result=d.construct(e.result),e.tag=d.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(fn.call(e.typeMap[e.kind||"fallback"],e.tag))d=e.typeMap[e.kind||"fallback"][e.tag];else for(d=null,p=e.typeMap.multi[e.kind||"fallback"],l=0,h=p.length;l<h;l+=1)if(e.tag.slice(0,p[l].tag.length)===p[l].tag){d=p[l];break}d||te(e,"unknown tag !<"+e.tag+">"),e.result!==null&&d.kind!==e.kind&&te(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result,e.tag)?(e.result=d.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):te(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function t$(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Me(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!Pt(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&te(e,"directive name must not be less than one character in length");o!==0;){for(;Fn(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!Ar(o));break}if(Ar(o))break;for(r=e.position;o!==0&&!Pt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&hh(e),fn.call(QA,n)?QA[n](e,n,i):Ia(e,'unknown document directive "'+n+'"')}if(Me(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Me(e,!0,-1)):s&&te(e,"directives end mark is expected"),Ri(e,e.lineIndent-1,Na,!1,!0),Me(e,!0,-1),e.checkLineBreaks&&MI.test(e.input.slice(t,e.position))&&Ia(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ma(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Me(e,!0,-1));return}if(e.position<e.length-1)te(e,"end of the stream or a document separator is expected");else return}function $E(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
115
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new HI(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,te(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)t$(r);return r.documents}function r$(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=$E(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function n$(e,t){var r=$E(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new gt("expected a single document in the stream, but found more")}}var i$=r$,s$=n$,BE={loadAll:i$,load:s$},ME=Object.prototype.toString,jE=Object.prototype.hasOwnProperty,dh=65279,o$=9,ws=10,a$=13,u$=32,c$=33,l$=34,oh=35,f$=37,h$=38,p$=39,d$=42,qE=44,g$=45,$a=58,m$=61,y$=62,v$=63,A$=64,WE=91,GE=93,E$=96,UE=123,w$=124,HE=125,ot={};ot[0]="\\0";ot[7]="\\a";ot[8]="\\b";ot[9]="\\t";ot[10]="\\n";ot[11]="\\v";ot[12]="\\f";ot[13]="\\r";ot[27]="\\e";ot[34]='\\"';ot[92]="\\\\";ot[133]="\\N";ot[160]="\\_";ot[8232]="\\L";ot[8233]="\\P";var S$=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],b$=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function C$(e,t){var r,n,i,s,o,a,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&jE.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function x$(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new gt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+We.repeat("0",n-t.length)+t}var P$=1,Ss=2;function O$(e){this.schema=e.schema||fh,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=We.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=C$(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?Ss:P$,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function tE(e,t){for(var r=We.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
110
116
  `,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
111
- `&&(s+=r),s+=o;return s}function Vl(e,t){return`
112
- `+Be.repeat(" ",e.indent*t)}function E2(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function ta(e){return e===ZI||e===QI}function ts(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==tf||65536<=e&&e<=1114111}function Ev(e){return ts(e)&&e!==tf&&e!==JI&&e!==Zi}function Av(e,t,r){var n=Ev(e),i=n&&!ta(e);return(r?n:n&&e!==iE&&e!==sE&&e!==oE&&e!==aE&&e!==uE)&&e!==zl&&!(t===ea&&!i)||Ev(t)&&!ta(t)&&e===zl||t===ea&&i}function A2(e){return ts(e)&&e!==tf&&!ta(e)&&e!==o2&&e!==c2&&e!==ea&&e!==iE&&e!==sE&&e!==oE&&e!==aE&&e!==uE&&e!==zl&&e!==n2&&e!==s2&&e!==e2&&e!==h2&&e!==a2&&e!==u2&&e!==i2&&e!==t2&&e!==r2&&e!==l2&&e!==f2}function S2(e){return!ta(e)&&e!==ea}function Qi(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function cE(e){var t=/^\n* /;return t.test(e)}var lE=1,Kl=2,fE=3,hE=4,ri=5;function w2(e,t,r,n,i,s,o,a){var u,c=0,f=null,l=!1,h=!1,d=n!==-1,g=-1,S=A2(Qi(e,0))&&S2(Qi(e,e.length-1));if(t||o)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Qi(e,u),!ts(c))return ri;S=S&&Av(c,f,a),f=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=Qi(e,u),c===Zi)l=!0,d&&(h=h||u-g-1>n&&e[g+1]!==" ",g=u);else if(!ts(c))return ri;S=S&&Av(c,f,a),f=c}h=h||d&&u-g-1>n&&e[g+1]!==" "}return!l&&!h?S&&!o&&!i(e)?lE:s===es?ri:Kl:r>9&&cE(e)?ri:o?s===es?ri:Kl:h?hE:fE}function C2(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===es?'""':"''";if(!e.noCompatMode&&(d2.indexOf(t)!==-1||p2.test(t)))return e.quotingType===es?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return E2(e,c)}switch(w2(t,a,e.indent,o,u,e.quotingType,e.forceQuotes&&!n,i)){case lE:return t;case Kl:return"'"+t.replace(/'/g,"''")+"'";case fE:return"|"+Sv(t,e.indent)+wv(vv(t,s));case hE:return">"+Sv(t,e.indent)+wv(vv(_2(t,o),s));case ri:return'"'+x2(t)+'"';default:throw new tt("impossible error: invalid scalar style")}}()}function Sv(e,t){var r=cE(e)?String(t):"",n=e[e.length-1]===`
117
+ `&&(s+=r),s+=o;return s}function ah(e,t){return`
118
+ `+We.repeat(" ",e.indent*t)}function R$(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function Ba(e){return e===u$||e===o$}function bs(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==dh||65536<=e&&e<=1114111}function rE(e){return bs(e)&&e!==dh&&e!==a$&&e!==ws}function nE(e,t,r){var n=rE(e),i=n&&!Ba(e);return(r?n:n&&e!==qE&&e!==WE&&e!==GE&&e!==UE&&e!==HE)&&e!==oh&&!(t===$a&&!i)||rE(t)&&!Ba(t)&&e===oh||t===$a&&i}function _$(e){return bs(e)&&e!==dh&&!Ba(e)&&e!==g$&&e!==v$&&e!==$a&&e!==qE&&e!==WE&&e!==GE&&e!==UE&&e!==HE&&e!==oh&&e!==h$&&e!==d$&&e!==c$&&e!==w$&&e!==m$&&e!==y$&&e!==p$&&e!==l$&&e!==f$&&e!==A$&&e!==E$}function k$(e){return!Ba(e)&&e!==$a}function As(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function YE(e){var t=/^\n* /;return t.test(e)}var zE=1,uh=2,VE=3,KE=4,xi=5;function D$(e,t,r,n,i,s,o,a){var c,u=0,f=null,l=!1,h=!1,p=n!==-1,d=-1,m=_$(As(e,0))&&k$(As(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=As(e,c),!bs(u))return xi;m=m&&nE(u,f,a),f=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=As(e,c),u===ws)l=!0,p&&(h=h||c-d-1>n&&e[d+1]!==" ",d=c);else if(!bs(u))return xi;m=m&&nE(u,f,a),f=u}h=h||p&&c-d-1>n&&e[d+1]!==" "}return!l&&!h?m&&!o&&!i(e)?zE:s===Ss?xi:uh:r>9&&YE(e)?xi:o?s===Ss?xi:uh:h?KE:VE}function F$(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===Ss?'""':"''";if(!e.noCompatMode&&(S$.indexOf(t)!==-1||b$.test(t)))return e.quotingType===Ss?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(u){return R$(e,u)}switch(D$(t,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!n,i)){case zE:return t;case uh:return"'"+t.replace(/'/g,"''")+"'";case VE:return"|"+iE(t,e.indent)+sE(tE(t,s));case KE:return">"+iE(t,e.indent)+sE(tE(L$(t,o),s));case xi:return'"'+T$(t)+'"';default:throw new gt("impossible error: invalid scalar style")}}()}function iE(e,t){var r=YE(e)?String(t):"",n=e[e.length-1]===`
113
119
  `,i=n&&(e[e.length-2]===`
114
120
  `||e===`
115
121
  `),s=i?"+":n?"":"-";return r+s+`
116
- `}function wv(e){return e[e.length-1]===`
117
- `?e.slice(0,-1):e}function _2(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
118
- `);return c=c!==-1?c:e.length,r.lastIndex=c,Cv(e.slice(0,c),t)}(),i=e[0]===`
119
- `||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],u=o[2];s=u[0]===" ",n+=a+(!i&&!s&&u!==""?`
120
- `:"")+Cv(u,t),i=s}return n}function Cv(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,u="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,u+=`
121
- `+e.slice(i,s),i=s+1),o=a;return u+=`
122
- `,e.length-i>t&&o>i?u+=e.slice(i,o)+`
123
- `+e.slice(o+1):u+=e.slice(i),u.slice(1)}function x2(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=Qi(e,i),n=ze[r],!n&&ts(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||m2(r);return t}function b2(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(ar(e,t,a,!1,!1)||typeof a>"u"&&ar(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function _v(e,t,r,n){var i="",s=e.tag,o,a,u;for(o=0,a=r.length;o<a;o+=1)u=r[o],e.replacer&&(u=e.replacer.call(r,String(o),u)),(ar(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&ar(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Vl(e,t)),e.dump&&Zi===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function O2(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,u,c,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),u=s[o],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),ar(e,t,u,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ar(e,t,c,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function R2(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,u,c,f,l,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new tt("sortKeys must be a boolean or a function");for(a=0,u=o.length;a<u;a+=1)h="",(!n||i!=="")&&(h+=Vl(e,t)),c=o[a],f=r[c],e.replacer&&(f=e.replacer.call(r,c,f)),ar(e,t+1,c,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&Zi===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=Vl(e,t)),ar(e,t+1,f,!0,l)&&(e.dump&&Zi===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function xv(e,t,r){var n,i,s,o,a,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(u=e.styleMap[a.tag]||a.defaultStyle,rE.call(a.represent)==="[object Function]")n=a.represent(t,u);else if(nE.call(a.represent,u))n=a.represent[u](t,u);else throw new tt("!<"+a.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function ar(e,t,r,n,i,s,o){e.tag=null,e.dump=r,xv(e,r,!1)||xv(e,r,!0);var a=rE.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",l,h;if(f&&(l=e.duplicates.indexOf(r),h=l!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(R2(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(O2(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?_v(e,t-1,e.dump,i):_v(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(b2(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&C2(e,e.dump,t,s,u);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new tt("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function F2(e,t){var r=[],n=[],i,s;for(Xl(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Xl(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Xl(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Xl(e[n[i]],t,r)}function k2(e,t){t=t||{};var r=new v2(t);r.noRefs||F2(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),ar(r,0,n,!0,!0)?r.dump+`
124
- `:""}var P2=k2,D2={dump:P2};function rf(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var T2=He,I2=Rv,L2=Dv,N2=Bv,B2=$v,$2=Jl,M2=tE.load,j2=tE.loadAll,q2=D2.dump,H2=tt,G2={binary:Gv,float:Nv,map:Pv,null:Tv,pairs:Wv,set:Yv,timestamp:qv,bool:Iv,int:Lv,merge:Hv,omap:Uv,seq:kv,str:Fv},U2=rf("safeLoad","load"),W2=rf("safeLoadAll","loadAll"),Y2=rf("safeDump","dump"),z2={Type:T2,Schema:I2,FAILSAFE_SCHEMA:L2,JSON_SCHEMA:N2,CORE_SCHEMA:B2,DEFAULT_SCHEMA:$2,load:M2,loadAll:j2,dump:q2,YAMLException:H2,types:G2,safeLoad:U2,safeLoadAll:W2,safeDump:Y2},nf=z2;import dE from"node:fs/promises";var na=e=>{let t=new URL(e),n=t.protocol.length+2;return t.toString().slice(n)};var pE=class extends ti{constructor(t){super("YarnRc",".yarnrc.yml",t)}async prepUserFile(){}async getUserFeeds(){let t=new Map,r=await this.paseYarnRc(this.userFilePath);if(!r)return t;let n=r.npmRegistries||{};for(var i of Object.keys(n)){let s=n[i]||{},o=i.startsWith("//")?i.substring(2):i,a={registry:o,adoOrganization:ei(o)},u=Xo(s.npmAuthIdent||""),c=u.indexOf(":");c>0&&(a.userName=u.substring(0,c),a.authToken=u.substring(c+1)),t.set(o,a)}return t}async getWorkspaceRegistries(){let t=[],r=await this.paseYarnRc(this.workspaceFilePath);if(r.npmRegistryServer&&t.push(na(r.npmRegistryServer)),r.npmScopes)for(var n of Object.keys(r.npmScopes)){let i=r.npmScopes[n]?.npmRegistryServer;i&&t.push(i)}return t}async writeWorkspaceRegistries(t){let r=await this.paseYarnRc(this.userFilePath)||{};r.npmRegistries||(r.npmRegistries={});for(var n of t){let s="//"+n.registry,o=r.npmRegistries[s]||{};o.npmAlwaysAuth===void 0&&(o.npmAlwaysAuth=!0),o.npmAuthIdent=Tr(`${n.userName}:${n.authToken}`),r.npmRegistries[s]=o}let i=nf.dump(r);await dE.writeFile(this.userFilePath,i)}async paseYarnRc(t){let r=await dE.readFile(t,"utf8");return nf.load(r,{filename:t})}};var Xw=kh(Vw(),1);import Ss from"node:fs/promises";import{EOL as bh}from"node:os";import j3 from"node:path";var Kw=class extends ti{constructor(t){super("NpmRc",".npmrc",t)}async prepUserFile(){try{let r=(await Ss.readFile(this.userFilePath,"utf-8")).split(bh).filter(n=>!n.includes("registry=")).join(bh);await Ss.writeFile(this.userFilePath,r)}catch{await Ss.writeFile(this.userFilePath,"")}}async getWorkspaceRegistries(){let t;try{t=new Xw.default({npmPath:this.workspaceFilePath,argv:["<dummy_node>","<dummy_pnpm_js>",`--prefix=${j3.dirname(this.workspaceFilePath)}`],shorthands:{},definitions:{}}),await t.load()}catch(i){throw i instanceof TypeError&&i.message.includes("Invalid URL")?new Error("Registry URL missing or invalid"):new Error("Error loading .npmrc")}return Object.keys((t.data?.get("project")||{}).data||{}).filter(i=>i.includes("registry")).map(i=>t.get(i,"project")).map(i=>na(i))}async getUserFeeds(){let t=new Map;return await this.processNpmRcFile(this.userFilePath,(r,n,i,s)=>{let o=t.get(n);switch(o||(o={registry:n,adoOrganization:ei(n)},t.set(o.registry,o)),i){case"_password":o.authToken=Xo(s).trim();break;case"username":o.userName=s;break;case"email":o.email=s;break}}),t}async patchUserNpmRcFile(t){let r=new Set(t.values()),n=await this.processNpmRcFile(this.userFilePath,(i,s,o,a)=>{let u=t.get(this.toRegistryAndFunctionKey(s,o));return u!==void 0?(r.delete(u),u):i},i=>i);for(let i of r)n.push(i);return n}toRegistryAndFunctionKey(t,r){return`//${t}:${r}=`}async writeWorkspaceRegistries(t){let r=new Map;for(var n of t)r.set(this.toRegistryAndFunctionKey(n.registry,"username"),`//${n.registry}:username=${n.userName||cv}`),r.set(this.toRegistryAndFunctionKey(n.registry,"email"),`//${n.registry}:email=${n.email||lv}`),r.set(this.toRegistryAndFunctionKey(n.registry,"_password"),`//${n.registry}:_password=${Tr(n.authToken)}`);let i=await this.patchUserNpmRcFile(r);await Ss.writeFile(this.userFilePath,i.join(bh),{encoding:"utf-8"})}async processNpmRcFile(t,r,n){let s=(await Ss.readFile(t,{encoding:"utf8"})).split(`
125
- `).map(a=>a.trim()),o=[];for(let a of s){let u=a.indexOf("/:");if(a.startsWith("//")&&u>=2){let c=a.substring(2,u+1),f=a.substring(u+2),l=f.substring(0,f.indexOf("=")),h=f.substring(f.indexOf("=")+1),d=r(a,c,l,h);d&&o.push(d)}else if(n){let c=n(a);c&&o.push(c)}}return o}};import{hostname as Q3}from"os";import{arch as V3,platform as K3}from"os";import{exec as q3}from"node:child_process";import{promisify as H3}from"node:util";var ka=H3(q3);import{arch as W3,platform as Qw}from"os";import{release as G3,platform as U3}from"os";var yn=()=>U3()==="linux"&&G3().toLowerCase().includes("wsl");var Jw=()=>{let e={win32:["x64"],darwin:["x64","arm64"]};return yn()||e[Qw()]&&e[Qw()].includes(W3())};var Oh;var Y3=["npm","exec","--silent","--yes","azureauth","--"],z3={...process.env,npm_config_registry:"https://registry.npmjs.org"},Pa=()=>(Oh||(Oh=yn()?["azureauth.exe"]:Y3),{command:Oh,env:z3});import{spawnSync as X3}from"child_process";var Da;var Zw=async()=>{if(Da===void 0){let{command:e,env:t}=Pa(),r=`${e.join(" ")} --version`;try{let n=await ka(r,{env:t}),[,i]=n.stdout.split(".");Da=parseInt(i)>=8}catch{Da=!1}}return Da};var eC=async(e,t)=>{if(!Jw())throw new Error(`AzureAuth is not supported for platform ${K3()} and architecture ${V3()}`);let{command:r,env:n}=t?{command:[t],env:process.env}:Pa(),i=[...r,"ado","pat",`--prompt-hint ${yn()?e.promptHint:`"${e.promptHint}"`}`,`--organization ${e.organization}`,`--display-name ${e.displayName}`,...e.scope.map(s=>`--scope ${s}`)];e.output&&i.push(`--output ${e.output}`),e.mode&&i.push(`--mode ${e.mode}`),e.domain&&i.push(`--domain ${e.domain}`),e.timeout&&i.push(`--timeout ${e.timeout}`);try{let s;if(yn())try{if(s=X3(i[0],i.slice(1),{encoding:"utf-8"}),s.status===0||s.stderr&&!s.stdout)throw new Error(`Azure Auth failed with exit code ${s.status}: ${s.stderr}`)}catch(o){throw new Error(`Failed to get Ado Pat from system AzureAuth: ${o.message}`)}else try{if(s=await ka(i.join(" "),{env:n}),s.stderr&&!s.stdout)throw new Error(s.stderr)}catch(o){throw new Error(`Failed to get Ado Pat from npx AzureAuth: ${o.message}`)}if(e.output==="json")try{return JSON.parse(s.stdout)}catch{throw new Error(`Failed to parse JSON output: ${s.stdout}`)}return s.stdout}catch(s){throw await Zw()?new Error(s.message):new Error(`AzureAuth is not installed: ${s}`)}};var X8=async(e,t=!1,r)=>{let n=`${Q3()}-${e}`,s=(await eC({promptHint:`${n} .npmrc PAT`,organization:e,displayName:`${n}-npmrc-pat`,scope:["vso.packaging"],timeout:"30",output:"json"},r)).token;return t?Tr(s):s};export{ti as FileProvider,Kw as NpmrcFileProvider,pE as YarnRcFileProvider,lv as defaultEmail,cv as defaultUser,X8 as generateNpmrcPat};
122
+ `}function sE(e){return e[e.length-1]===`
123
+ `?e.slice(0,-1):e}function L$(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var u=e.indexOf(`
124
+ `);return u=u!==-1?u:e.length,r.lastIndex=u,oE(e.slice(0,u),t)}(),i=e[0]===`
125
+ `||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],c=o[2];s=c[0]===" ",n+=a+(!i&&!s&&c!==""?`
126
+ `:"")+oE(c,t),i=s}return n}function oE(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,c="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,c+=`
127
+ `+e.slice(i,s),i=s+1),o=a;return c+=`
128
+ `,e.length-i>t&&o>i?c+=e.slice(i,o)+`
129
+ `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function T$(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=As(e,i),n=ot[r],!n&&bs(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||x$(r);return t}function N$(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(Nr(e,t,a,!1,!1)||typeof a>"u"&&Nr(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function aE(e,t,r,n){var i="",s=e.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],e.replacer&&(c=e.replacer.call(r,String(o),c)),(Nr(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&Nr(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=ah(e,t)),e.dump&&ws===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function I$(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,c,u,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),c=s[o],u=r[c],e.replacer&&(u=e.replacer.call(r,c,u)),Nr(e,t,c,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Nr(e,t,u,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function $$(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,c,u,f,l,h;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new gt("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!n||i!=="")&&(h+=ah(e,t)),u=o[a],f=r[u],e.replacer&&(f=e.replacer.call(r,u,f)),Nr(e,t+1,u,!0,!0,!0)&&(l=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,l&&(e.dump&&ws===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=ah(e,t)),Nr(e,t+1,f,!0,l)&&(e.dump&&ws===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function uE(e,t,r){var n,i,s,o,a,c;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,ME.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(jE.call(a.represent,c))n=a.represent[c](t,c);else throw new gt("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function Nr(e,t,r,n,i,s,o){e.tag=null,e.dump=r,uE(e,r,!1)||uE(e,r,!0);var a=ME.call(e.dump),c=n,u;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",l,h;if(f&&(l=e.duplicates.indexOf(r),h=l!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&h&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?($$(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(I$(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?aE(e,t-1,e.dump,i):aE(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(N$(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&F$(e,e.dump,t,s,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new gt("unacceptable kind of an object to dump "+a)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function B$(e,t){var r=[],n=[],i,s;for(ch(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function ch(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)ch(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)ch(e[n[i]],t,r)}function M$(e,t){t=t||{};var r=new O$(t);r.noRefs||B$(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Nr(r,0,n,!0,!0)?r.dump+`
130
+ `:""}var j$=M$,q$={dump:j$};function gh(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var W$=Je,G$=fE,U$=gE,H$=EE,Y$=wE,z$=fh,V$=BE.load,K$=BE.loadAll,X$=q$.dump,J$=gt,Q$={binary:PE,float:AE,map:dE,null:mE,pairs:RE,set:_E,timestamp:CE,bool:yE,int:vE,merge:xE,omap:OE,seq:pE,str:hE},Z$=gh("safeLoad","load"),eB=gh("safeLoadAll","loadAll"),tB=gh("safeDump","dump"),rB={Type:W$,Schema:G$,FAILSAFE_SCHEMA:U$,JSON_SCHEMA:H$,CORE_SCHEMA:Y$,DEFAULT_SCHEMA:z$,load:V$,loadAll:K$,dump:X$,YAMLException:J$,types:Q$,safeLoad:Z$,safeLoadAll:eB,safeDump:tB},mh=rB;import yh from"node:fs/promises";var ja=e=>{let t=new URL(e),n=t.protocol.length+2;return t.toString().slice(n)};var XE=class extends Ci{constructor(t){super("YarnRc",".yarnrc.yml",t)}async prepUserFile(){try{let t=await this.paseYarnRc(this.userFilePath);t&&t.npmRegistryServer&&(delete t.npmRegistryServer,await this.writeYarnRc(this.userFilePath,t))}catch{await yh.writeFile(this.userFilePath,"")}}async getUserFeeds(){let t=new Map,r=await this.paseYarnRc(this.userFilePath);if(!r)return t;let n=r.npmRegistries||{};for(var i of Object.keys(n)){let s=n[i]||{},o=i.startsWith("//")?i.substring(2):i,a={registry:o,adoOrganization:bi(o)},c=La(s.npmAuthIdent||""),u=c.indexOf(":");u>0&&(a.userName=c.substring(0,u),a.authToken=c.substring(u+1)),t.set(o,a)}return t}async getWorkspaceRegistries(){let t=[],r=await this.paseYarnRc(this.workspaceFilePath);if(r.npmRegistryServer&&t.push(ja(r.npmRegistryServer)),r.npmScopes)for(var n of Object.keys(r.npmScopes)){let i=r.npmScopes[n]?.npmRegistryServer;i&&t.push(i)}return t}async writeWorkspaceRegistries(t){let r=await this.paseYarnRc(this.userFilePath)||{};r.npmRegistries||(r.npmRegistries={});for(var n of t){let i="//"+n.registry,s=r.npmRegistries[i]||{};s.npmAlwaysAuth===void 0&&(s.npmAlwaysAuth=!0),s.npmAuthIdent=cn(`${n.userName}:${n.authToken}`),r.npmRegistries[i]=s}await this.writeYarnRc(this.userFilePath,r)}async writeYarnRc(t,r){let n=mh.dump(r);await yh.writeFile(t,n,"utf8")}async paseYarnRc(t){let r=await yh.readFile(t,"utf8");return mh.load(r,{filename:t})}};var IP=xd(TP(),1);import go from"node:fs/promises";import{EOL as wd}from"node:os";import h9 from"node:path";var NP=class extends Ci{constructor(t){super("NpmRc",".npmrc",t)}async prepUserFile(){try{let r=(await go.readFile(this.userFilePath,"utf-8")).split(wd).filter(n=>!n.includes("registry=")).join(wd);await go.writeFile(this.userFilePath,r)}catch{await go.writeFile(this.userFilePath,"")}}async getWorkspaceRegistries(){let t;try{t=new IP.default({npmPath:this.workspaceFilePath,argv:["<dummy_node>","<dummy_pnpm_js>",`--prefix=${h9.dirname(this.workspaceFilePath)}`],shorthands:{},definitions:{}}),await t.load()}catch(i){throw i instanceof TypeError&&i.message.includes("Invalid URL")?new Error("Registry URL missing or invalid"):new Error("Error loading .npmrc")}return Object.keys((t.data?.get("project")||{}).data||{}).filter(i=>i.includes("registry")).map(i=>t.get(i,"project")).map(i=>ja(i))}async getUserFeeds(){let t=new Map;return await this.processNpmRcFile(this.userFilePath,(r,n,i,s)=>{let o=t.get(n);switch(o||(o={registry:n,adoOrganization:bi(n)},t.set(o.registry,o)),i){case"_password":o.authToken=La(s).trim();break;case"username":o.userName=s;break;case"email":o.email=s;break}}),t}async patchUserNpmRcFile(t){let r=new Set(t.values()),n=await this.processNpmRcFile(this.userFilePath,(i,s,o,a)=>{let c=t.get(this.toRegistryAndFunctionKey(s,o));return c!==void 0?(r.delete(c),c):i},i=>i);for(let i of r)n.push(i);return n}toRegistryAndFunctionKey(t,r){return`//${t}:${r}=`}async writeWorkspaceRegistries(t){let r=new Map;for(var n of t)r.set(this.toRegistryAndFunctionKey(n.registry,"username"),`//${n.registry}:username=${n.userName||YA}`),r.set(this.toRegistryAndFunctionKey(n.registry,"email"),`//${n.registry}:email=${n.email||zA}`),r.set(this.toRegistryAndFunctionKey(n.registry,"_password"),`//${n.registry}:_password=${cn(n.authToken)}`);let i=await this.patchUserNpmRcFile(r);await go.writeFile(this.userFilePath,i.join(wd),{encoding:"utf-8"})}async processNpmRcFile(t,r,n){let s=(await go.readFile(t,{encoding:"utf8"})).split(`
131
+ `).map(a=>a.trim()),o=[];for(let a of s){let c=a.indexOf("/:");if(a.startsWith("//")&&c>=2){let u=a.substring(2,c+1),f=a.substring(c+2),l=f.substring(0,f.indexOf("=")),h=f.substring(f.indexOf("=")+1),p=r(a,u,l,h);p&&o.push(p)}else if(n){let u=n(a);u&&o.push(u)}}return o}};import{hostname as b9}from"os";import{arch as E9,platform as w9}from"os";import{exec as p9}from"node:child_process";import{promisify as d9}from"node:util";var Ju=d9(p9);import{arch as y9,platform as $P}from"os";import{release as g9,platform as m9}from"os";var qn=()=>m9()==="linux"&&g9().toLowerCase().includes("wsl");var BP=()=>{let e={win32:["x64"],darwin:["x64","arm64"]};return qn()||e[$P()]&&e[$P()].includes(y9())};var Sd;var v9=["npm","exec","--silent","--yes","azureauth","--"],A9={...process.env,npm_config_registry:"https://registry.npmjs.org"},Qu=()=>(Sd||(Sd=qn()?["azureauth.exe"]:v9),{command:Sd,env:A9});import{spawnSync as S9}from"child_process";var Zu;var MP=async()=>{if(Zu===void 0){let{command:e,env:t}=Qu(),r=`${e.join(" ")} --version`;try{let n=await Ju(r,{env:t}),[,i]=n.stdout.split(".");Zu=parseInt(i)>=8}catch{Zu=!1}}return Zu};var jP=async(e,t)=>{if(!BP())throw new Error(`AzureAuth is not supported for platform ${w9()} and architecture ${E9()}`);let{command:r,env:n}=t?{command:[t],env:process.env}:Qu(),i=[...r,"ado","pat",`--prompt-hint ${qn()?e.promptHint:`"${e.promptHint}"`}`,`--organization ${e.organization}`,`--display-name ${e.displayName}`,...e.scope.map(s=>`--scope ${s}`)];e.output&&i.push(`--output ${e.output}`),e.mode&&i.push(`--mode ${e.mode}`),e.domain&&i.push(`--domain ${e.domain}`),e.timeout&&i.push(`--timeout ${e.timeout}`);try{let s;if(qn())try{if(s=S9(i[0],i.slice(1),{encoding:"utf-8"}),s.status!==0||s.stderr&&!s.stdout)throw new Error(`Azure Auth failed with exit code ${s.status}: ${s.stderr}`)}catch(o){throw new Error(`Failed to get Ado Pat from system AzureAuth: ${o.message}`)}else try{if(s=await Ju(i.join(" "),{env:n}),s.stderr&&!s.stdout)throw new Error(s.stderr)}catch(o){throw new Error(`Failed to get Ado Pat from npx AzureAuth: ${o.message}`)}if(e.output==="json")try{return JSON.parse(s.stdout)}catch{throw new Error(`Failed to parse JSON output: ${s.stdout}`)}return s.stdout}catch(s){throw await MP()?new Error(s.message):new Error(`AzureAuth is not installed: ${s}`)}};var az=async(e,t=!1,r)=>{let n=`${b9()}-${e}`,s=(await jP({promptHint:`${n} .npmrc PAT`,organization:e,displayName:`${n}-npmrc-pat`,scope:["vso.packaging"],timeout:"30",output:"json"},r)).token;return t?cn(s):s};export{Ci as FileProvider,NP as NpmrcFileProvider,XE as YarnRcFileProvider,zA as defaultEmail,YA as defaultUser,az as generateNpmrcPat};
126
132
  /*! Bundled license information:
127
133
 
134
+ git-url-parse/lib/index.js:
135
+ (*!
136
+ * buildToken
137
+ * Builds OAuth token prefix (helper function)
138
+ *
139
+ * @name buildToken
140
+ * @function
141
+ * @param {GitUrl} obj The parsed Git url object.
142
+ * @return {String} token prefix
143
+ *)
144
+
128
145
  is-extglob/index.js:
129
146
  (*!
130
147
  * is-extglob <https://github.com/jonschlinkert/is-extglob>
@@ -171,18 +188,6 @@ queue-microtask/index.js:
171
188
  run-parallel/index.js:
172
189
  (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
173
190
 
174
- git-url-parse/lib/index.js:
175
- (*!
176
- * buildToken
177
- * Builds OAuth token prefix (helper function)
178
- *
179
- * @name buildToken
180
- * @function
181
- * @param {GitUrl} obj The parsed Git url object.
182
- * @return {String} token prefix
183
- *)
184
-
185
191
  js-yaml/dist/js-yaml.mjs:
186
192
  (*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT *)
187
193
  */
188
- //# sourceMappingURL=index.js.map