ado-npm-auth 0.4.0 → 0.7.0

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,134 +1,134 @@
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:
1
+ var nO=Object.create;var Fd=Object.defineProperty;var iO=Object.getOwnPropertyDescriptor;var sO=Object.getOwnPropertyNames;var oO=Object.getPrototypeOf,aO=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 uO=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of sO(t))!aO.call(e,i)&&i!==r&&Fd(e,i,{get:()=>t[i],enumerable:!(n=iO(t,i))||n.enumerable});return e};var Ld=(e,t,r)=>(r=e!=null?nO(oO(e)):{},uO(t||!e||!e.__esModule?Fd(r,"default",{value:e,enumerable:!0}):r,e));var wo=R(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.getPackageDependencies=void 0;function cO(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 lO(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=>cO(e,s))}Ao.getPackageDependencies=lO});var zn=R(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.isCachingEnabled=Yn.setCachingEnabled=void 0;var Td=!0;function fO(e){Td=e}Yn.setCachingEnabled=fO;function hO(){return Td}Yn.isCachingEnabled=hO});var Nd=R(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.getTransitiveProviders=Yr.getTransitiveConsumers=Yr.getDependentMap=void 0;var pO=wo(),dO=zn(),nc=new Map;function gO(e,t=[]){return JSON.stringify({packages:e,scope:t})}function ic(e,t=[]){let r=new Set(Object.keys(e)),n=gO(e,t);if((0,dO.isCachingEnabled)()&&nc.has(n))return nc.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,pO.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 nc.set(n,i),i}function mO(e){let t=ic(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=mO;function yO(e,t,r=[]){let n=ic(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=yO;function vO(e,t){let r=ic(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=vO});var Id=R(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getInternalDeps=Bt.getTransitiveConsumers=Bt.getTransitiveDependents=Bt.getTransitiveProviders=Bt.getTransitiveDependencies=void 0;var So=Nd();Object.defineProperty(Bt,"getTransitiveConsumers",{enumerable:!0,get:function(){return So.getTransitiveConsumers}});Object.defineProperty(Bt,"getTransitiveProviders",{enumerable:!0,get:function(){return So.getTransitiveProviders}});var EO=wo();Bt.getTransitiveDependencies=So.getTransitiveProviders;Bt.getTransitiveDependents=So.getTransitiveConsumers;Bt.getInternalDeps=EO.getPackageDependencies});var sc=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 oc=R(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.getWorkspaceRoot=void 0;var wO=Vn();function SO(e,t){return(0,wO.getWorkspaceManagerAndRoot)(e,void 0,t)?.root}Co.getWorkspaceRoot=SO});var Vi=R(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.gitFailFast=Mt.git=Mt.clearGitObservers=Mt.addGitObserver=Mt.GitError=void 0;var bO=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 CO=process.env.GIT_MAX_BUFFER?parseInt(process.env.GIT_MAX_BUFFER):500*1024*1024,$d=!!process.env.GIT_DEBUG,Kn=[],ac;function xO(e){return Kn.push(e),()=>OO(e)}Mt.addGitObserver=xO;function PO(){Kn.splice(0,Kn.length)}Mt.clearGitObservers=PO;function OO(e){let t=Kn.indexOf(e);t>-1&&Kn.splice(t,1)}function Bd(e,t){$d&&console.log(`git ${e.join(" ")}`);let r=(0,bO.spawnSync)("git",e,{maxBuffer:CO,...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
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(" ")}!
3
+ `,n.stderr)),!ac){ac=!0;for(let i of Kn)i(e,n);ac=!1}return n}Mt.git=Bd;function RO(e,t){let r=Bd(e,t);if(!r.success)throw t?.noExitCode||(process.exitCode=1),new xo(`CRITICAL ERROR: running git command: git ${e.join(" ")}!
4
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+=`
5
+ ${r.stderr?.toString().trimEnd()}`)}Mt.gitFailFast=RO});var uc=R((Q9,Md)=>{"use strict";Md.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 qd=R((Z9,jd)=>{"use strict";var _O=uc();function kO(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=_O(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}jd.exports=kO});var Ud=R((e6,Gd)=>{"use strict";var DO=qd();function FO(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var LO=FO(DO),TO="text/plain",NO="us-ascii",Wd=(e,t)=>t.some(r=>r instanceof RegExp?r.test(e):r===e),IO=(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===NO)?"":`${h}${p?`=${p}`:""}`}).filter(Boolean)];return a&&f.push("base64"),(f.length>0||c&&c!==TO)&&f.unshift(c),`data:${f.join(";")},${a?i.trim():i}${s?`#${s}`:""}`};function $O(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 IO(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];Wd(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()])Wd(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 cc=(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>cc.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=$O(e,t));let i=LO.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};cc.MAX_INPUT_LENGTH=2048;Gd.exports=cc});var zd=R((t6,Yd)=>{"use strict";var BO=uc();function Hd(e){if(Array.isArray(e))return e.indexOf("ssh")!==-1||e.indexOf("rsync")!==-1;if(typeof e!="string")return!1;var t=BO(e);if(e=e.substring(e.indexOf("://")+3),Hd(t))return!0;var r=new RegExp(".([a-zA-Z\\d]+):(\\d+)/");return!e.match(r)&&e.indexOf("@")<e.indexOf(":")}Yd.exports=Hd});var Xd=R((r6,Kd)=>{"use strict";var MO=Ud(),Vd=zd();function jO(e){var t=MO(e);return t.token="",t.password==="x-oauth-basic"?t.token=t.user:t.user==="x-token-auth"&&(t.token=t.password),Vd(t.protocols)||t.protocols.length===0&&Vd(e)?t.protocol="ssh":t.protocols.length?t.protocol=t.protocols[0]:(t.protocol="file",t.protocols=["file"]),t.href=t.href.replace(/\/$/,""),t}Kd.exports=jO});var Qd=R((n6,Jd)=>{"use strict";var qO=Xd();function lc(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=qO(e),n=r.resource.split("."),i=null;switch(r.toString=function(v){return lc.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}lc.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?WO(e):e.user&&(e.protocols.includes("http")||e.protocols.includes("https"))?e.user+"@":"";return t+"://"+s+e.resource+r+"/"+GO(e)+i;default:return e.href}};function WO(e){switch(e.source){case"bitbucket.org":return"x-token-auth:"+e.token+"@";default:return e.token+"@"}}function GO(e){switch(e.source){case"bitbucket-server":return"scm/"+e.full_name;default:return""+e.full_name}}Jd.exports=lc});var Zd=R(Xn=>{"use strict";var UO=Xn&&Xn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xn,"__esModule",{value:!0});Xn.getRepositoryName=void 0;var HO=UO(Qd());function YO(e){try{let t=e.replace("/_optimized/","/").replace("/DefaultCollection/","/"),r=(0,HO.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=YO});var fc=R(Jn=>{"use strict";var tg=Jn&&Jn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.getDefaultRemote=void 0;var zO=tg(q("fs")),VO=tg(q("path")),KO=Ki(),eg=Zd(),XO=Vi();function JO(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,KO.findGitRoot)(r),c={},u=VO.default.join(a,"package.json");try{c=JSON.parse(zO.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,eg.getRepositoryName)(l),p=(0,XO.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,eg.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=JO});var hc=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=Vi();function QO(e){try{return Xi((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=QO;function ZO(e,t){if(!(0,fe.git)(["fetch","--",e],{cwd:t}).success)throw new fe.GitError(`Cannot fetch remote "${e}"`)}ae.fetchRemote=ZO;function eR(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=eR;function tR(e){try{return Xi((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=tR;function rR(e,t){try{return Xi((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=rR;function nR(e,t){return rg(e,"",[],"",t)}ae.getBranchChanges=nR;function rg(e,t,r,n,i){try{return Xi((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=rg;function iR(e){try{return Xi((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=iR;function sR(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=sR;function oR(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=oR;function ng(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=ng;function aR(e,t){let r=(0,fe.git)(["show-ref","--heads",e],{cwd:t});return r.success?r.stdout.split(" ")[1]:null}ae.getFullBranchRef=aR;function uR(e,t){let r=(0,fe.git)(["name-rev","--name-only",e],{cwd:t});return r.success?r.stdout:null}ae.getShortBranchName=uR;function cR(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=cR;function lR(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=lR;function fR(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=fR;function ig(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=ig;function sg(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=sg;function hR(e,t,r,n=[]){ig(e,r),sg(t,r,n)}ae.stageAndCommit=hR;function pR(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=pR;function dR(e){let t=ng(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=dR;function gR(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=gR;function mR(e){let t=e.indexOf("/",0),r=e.substring(0,t),n=e.substring(t+1);return{remote:r,remoteBranch:n}}ae.parseRemoteBranch=mR;function yR(e){let t=(0,fe.git)(["config","init.defaultBranch"],{cwd:e});return t.success?t.stdout.trim():"master"}ae.getDefaultBranch=yR;function vR(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=vR;function Xi(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 og=R(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.getDefaultRemoteBranch=void 0;var ER=fc(),AR=Vi(),wR=hc();function SR(...e){let[t,r]=e,n=typeof t=="string"?{branch:t,cwd:r}:t,{cwd:i,branch:s}=n,o=(0,ER.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,wR.getDefaultBranch)(i)}`}Po.getDefaultRemoteBranch=SR});var Ro=R(lr=>{"use strict";var bR=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)&&bR(t,e,r)};Object.defineProperty(lr,"__esModule",{value:!0});Oo(Vi(),lr);Oo(fc(),lr);Oo(og(),lr);Oo(hc(),lr)});var wn=R(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.logVerboseWarning=void 0;function CR(e,t){process.env.VERBOSE&&console.warn(`${e}${t?`:
8
+ `:""}`,t?.stack||t||"")}_o.logVerboseWarning=CR});var Ki=R(wt=>{"use strict";var ug=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=ug(q("path")),xR=ug(q("fs")),PR=oc(),OR=Ro(),ag=wn();function cg(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=>xR.default.existsSync(zr.default.join(t,s))),!i);)t=zr.default.dirname(t);return i?zr.default.join(t,i):void 0}wt.searchUp=cg;function lg(e){let t=(0,OR.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=lg;function RR(e){let t=cg("package.json",e);return t&&zr.default.dirname(t)}wt.findPackageRoot=RR;function _R(e){let t;try{t=(0,PR.getWorkspaceRoot)(e)}catch(r){(0,ag.logVerboseWarning)(`Error getting workspace root for ${e}`,r)}return t||(0,ag.logVerboseWarning)(`Could not find workspace root for ${e}. Falling back to git root.`),t||lg(e)}wt.findProjectRoot=_R;function kR(e,t){let r=zr.default.relative(e,t);return/^[.\/\\]+$/.test(r)}wt.isChildOf=kR});var Qn=R(Vr=>{"use strict";var DR=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 fg=DR(q("path")),FR=Ki(),LR=zn(),TR=new Map,Ji={lerna:"lerna.json",rush:"rush.json",yarn:"yarn.lock",pnpm:"pnpm-workspace.yaml",npm:"package-lock.json"};function hg(){let e=process.env.PREFERRED_WORKSPACE_MANAGER;return e&&Ji[e]?e:void 0}Vr.getPreferredWorkspaceManager=hg;function NR(e,t,r){if(t=t||TR,(0,LR.isCachingEnabled)()&&t.has(e))return t.get(e);r=r||hg();let n=(0,FR.searchUp)(r&&Ji[r]||Object.values(Ji),e);if(n){let i=fg.default.basename(n);t.set(e,{manager:Object.keys(Ji).find(s=>Ji[s]===i),root:fg.default.dirname(n)})}else t.set(e,void 0);return t.get(e)}Vr.getWorkspaceManagerAndRoot=NR});var pg=R(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});Zn.splitWhen=Zn.flatten=void 0;function IR(e){return e.reduce((t,r)=>[].concat(t,r),[])}Zn.flatten=IR;function $R(e,t){let r=[[]],n=0;for(let i of e)t(i)?(n++,r[n]=[]):r[n].push(i);return r}Zn.splitWhen=$R});var dg=R(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.isEnoentCodeError=void 0;function BR(e){return e.code==="ENOENT"}ko.isEnoentCodeError=BR});var gg=R(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.createDirentFromStats=void 0;var pc=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 MR(e,t){return new pc(e,t)}Do.createDirentFromStats=MR});var Eg=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 jR=q("os"),qR=q("path"),mg=jR.platform()==="win32",WR=2,GR=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,UR=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,HR=/^\\\\([.?])/,YR=/\\(?![!()+@[\]{}])/g;function zR(e){return e.replace(/\\/g,"/")}$e.unixify=zR;function VR(e,t){return qR.resolve(e,t)}$e.makeAbsolute=VR;function KR(e){if(e.charAt(0)==="."){let t=e.charAt(1);if(t==="/"||t==="\\")return e.slice(WR)}return e}$e.removeLeadingDotSegment=KR;$e.escape=mg?dc:gc;function dc(e){return e.replace(UR,"\\$2")}$e.escapeWindowsPath=dc;function gc(e){return e.replace(GR,"\\$2")}$e.escapePosixPath=gc;$e.convertPathToPattern=mg?yg:vg;function yg(e){return dc(e).replace(HR,"//$1").replace(YR,"/")}$e.convertWindowsPathToPattern=yg;function vg(e){return gc(e)}$e.convertPosixPathToPattern=vg});var wg=R((m6,Ag)=>{Ag.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 Cg=R((y6,bg)=>{var XR=wg(),Sg={"{":"}","(":")","[":"]"},JR=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=Sg[a];if(c){var u=e.indexOf(c,t);u!==-1&&(t=u+1)}if(e[t]==="!")return!0}else t++}return!1},QR=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=Sg[r];if(n){var i=e.indexOf(n,t);i!==-1&&(t=i+1)}if(e[t]==="!")return!0}else t++}return!1};bg.exports=function(t,r){if(typeof t!="string"||t==="")return!1;if(XR(t))return!0;var n=JR;return r&&r.strict===!1&&(n=QR),n(t)}});var Pg=R((v6,xg)=>{"use strict";var ZR=Cg(),e_=q("path").posix.dirname,t_=q("os").platform()==="win32",mc="/",r_=/\\/g,n_=/[\{\[].*[\}\]]$/,i_=/(^|[^\\])([\{\[]|\([^\)]+$)/,s_=/\\([\!\*\?\|\[\]\(\)\{\}])/g;xg.exports=function(t,r){var n=Object.assign({flipBackslashes:!0},r);n.flipBackslashes&&t_&&t.indexOf(mc)<0&&(t=t.replace(r_,mc)),n_.test(t)&&(t+=mc),t+="a";do t=e_(t);while(ZR(t)||i_.test(t));return t.replace(s_,"$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((A6,Rg)=>{"use strict";var Og=Fo();Rg.exports=(e,t={})=>{let r=(n,i={})=>{let s=t.escapeInvalid&&Og.isInvalidBrace(i),o=n.invalid===!0&&t.escapeInvalid===!0,a="";if(n.value)return(s||o)&&Og.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 kg=R((w6,_g)=>{"use strict";_g.exports=function(e){return typeof e=="number"?e-e===0:typeof e=="string"&&e.trim()!==""?Number.isFinite?Number.isFinite(+e):isFinite(+e):!1}});var Mg=R((S6,Bg)=>{"use strict";var Dg=kg(),Sn=(e,t,r)=>{if(Dg(e)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(t===void 0||e===t)return String(e);if(Dg(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=Fg(m,Math.abs(u),h,n),u=h.a=0}return f>=0&&(p=Fg(u,f,h,n)),h.negatives=d,h.positives=p,h.result=o_(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 o_(e,t,r){let n=yc(e,t,"-",!1,r)||[],i=yc(t,e,"",!1,r)||[],s=yc(e,t,"-?",!0,r)||[];return n.concat(s).concat(i).join("|")}function a_(e,t){let r=1,n=1,i=Tg(e,r),s=new Set([t]);for(;e<=i&&i<=t;)s.add(i),r+=1,i=Tg(e,r);for(i=Ng(t+1,n)-1;e<i&&i<=t;)s.add(i),n+=1,i=Ng(t+1,n)-1;return s=[...s],s.sort(l_),s}function u_(e,t,r){if(e===t)return{pattern:e,count:[],digits:0};let n=c_(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+=f_(c,u,r):o++}return o&&(s+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:s,count:[o],digits:i}}function Fg(e,t,r,n){let i=a_(e,t),s=[],o=e,a;for(let c=0;c<i.length;c++){let u=i[c],f=u_(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+Ig(a.count),o=u+1;continue}r.isPadded&&(l=h_(u,r,n)),f.string=l+f.pattern+Ig(f.count),s.push(f),o=u+1,a=f}return s}function yc(e,t,r,n,i){let s=[];for(let o of e){let{string:a}=o;!n&&!Lg(t,"string",a)&&s.push(r+a),n&&Lg(t,"string",a)&&s.push(r+a)}return s}function c_(e,t){let r=[];for(let n=0;n<e.length;n++)r.push([e[n],t[n]]);return r}function l_(e,t){return e>t?1:t>e?-1:0}function Lg(e,t,r){return e.some(n=>n[t]===r)}function Tg(e,t){return Number(String(e).slice(0,-t)+"9".repeat(t))}function Ng(e,t){return e-e%Math.pow(10,t)}function Ig(e){let[t=0,r=""]=e;return r||t>1?`{${t+(r?","+r:"")}}`:""}function f_(e,t,r){return`[${e}${t-e===1?"":"-"}${t}]`}function $g(e){return/^-?(0+)\d/.test(e)}function h_(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={};Bg.exports=Sn});var Ac=R((b6,Yg)=>{"use strict";var p_=q("util"),qg=Mg(),jg=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),d_=e=>t=>e===!0?Number(t):String(t),vc=e=>typeof e=="number"||typeof e=="string"&&e!=="",Qi=e=>Number.isInteger(+e),Ec=e=>{let t=`${e}`,r=-1;if(t[0]==="-"&&(t=t.slice(1)),t==="0")return!1;for(;t[++r]==="0";);return r>0},g_=(e,t,r)=>typeof e=="string"||typeof t=="string"?!0:r.stringify===!0,m_=(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},y_=(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},Wg=(e,t,r,n)=>{if(r)return qg(e,t,{wrap:!1,...n});let i=String.fromCharCode(e);if(e===t)return i;let s=String.fromCharCode(t);return`[${i}-${s}]`},Gg=(e,t,r)=>{if(Array.isArray(e)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${e.join("|")})`:e.join("|")}return qg(e,t,r)},Ug=(...e)=>new RangeError("Invalid range arguments: "+p_.inspect(...e)),Hg=(e,t,r)=>{if(r.strictRanges===!0)throw Ug([e,t]);return[]},v_=(e,t)=>{if(t.strictRanges===!0)throw new TypeError(`Expected step "${e}" to be a number`);return[]},E_=(e,t,r=1,n={})=>{let i=Number(e),s=Number(t);if(!Number.isInteger(i)||!Number.isInteger(s)){if(n.strictRanges===!0)throw Ug([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=Ec(a)||Ec(c)||Ec(u),l=f?Math.max(a.length,c.length,u.length):0,h=f===!1&&g_(e,t,n)===!1,p=n.transform||d_(h);if(n.toRegex&&r===1)return Wg(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(m_(p(i,P),l,h)),i=o?i-r:i+r,P++;return n.toRegex===!0?r>1?y_(d,n,l):Gg(v,null,{wrap:!1,...n}):v},A_=(e,t,r=1,n={})=>{if(!Qi(e)&&e.length>1||!Qi(t)&&t.length>1)return Hg(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 Wg(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?Gg(f,null,{wrap:!1,options:n}):f},To=(e,t,r,n={})=>{if(t==null&&vc(e))return[e];if(!vc(e)||!vc(t))return Hg(e,t,n);if(typeof r=="function")return To(e,t,1,{transform:r});if(jg(r))return To(e,t,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Qi(r)?Qi(e)&&Qi(t)?E_(e,t,r,i):A_(e,t,Math.max(Math.abs(r),1),i):r!=null&&!jg(r)?v_(r,i):To(e,t,1,r)};Yg.exports=To});var Kg=R((C6,Vg)=>{"use strict";var w_=Ac(),zg=Fo(),S_=(e,t={})=>{let r=(n,i={})=>{let s=zg.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=zg.reduce(n.nodes),l=w_(...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)};Vg.exports=S_});var Qg=R((x6,Jg)=>{"use strict";var b_=Ac(),Xg=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)},C_=(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(),Xg(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=b_(...l,t);h.length===0&&(h=Xg(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))};Jg.exports=C_});var em=R((P6,Zg)=>{"use strict";Zg.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 sm=R((O6,im)=>{"use strict";var x_=Lo(),{MAX_LENGTH:tm,CHAR_BACKSLASH:wc,CHAR_BACKTICK:P_,CHAR_COMMA:O_,CHAR_DOT:R_,CHAR_LEFT_PARENTHESES:__,CHAR_RIGHT_PARENTHESES:k_,CHAR_LEFT_CURLY_BRACE:D_,CHAR_RIGHT_CURLY_BRACE:F_,CHAR_LEFT_SQUARE_BRACKET:rm,CHAR_RIGHT_SQUARE_BRACKET:nm,CHAR_DOUBLE_QUOTE:L_,CHAR_SINGLE_QUOTE:T_,CHAR_NO_BREAK_SPACE:N_,CHAR_ZERO_WIDTH_NOBREAK_SPACE:I_}=em(),$_=(e,t={})=>{if(typeof e!="string")throw new TypeError("Expected a string");let r=t||{},n=typeof r.maxLength=="number"?Math.min(tm,r.maxLength):tm;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===I_||h===N_)){if(h===wc){d({type:"text",value:(t.keepEscaping?h:"")+p()});continue}if(h===nm){d({type:"text",value:"\\"+h});continue}if(h===rm){c++;let m;for(;f<u&&(m=p());){if(h+=m,m===rm){c++;continue}if(m===wc){h+=p();continue}if(m===nm&&(c--,c===0))break}d({type:"text",value:h});continue}if(h===__){o=d({type:"paren",nodes:[]}),s.push(o),d({type:"text",value:h});continue}if(h===k_){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===L_||h===T_||h===P_){let m=h,v;for(t.keepQuotes!==!0&&(h="");f<u&&(v=p());){if(v===wc){h+=v+p();continue}if(v===m){t.keepQuotes===!0&&(h+=v);break}h+=v}d({type:"text",value:h});continue}if(h===D_){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===F_){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===O_&&l>0){if(o.ranges>0){o.ranges=0;let m=o.nodes.shift();o.nodes=[m,{type:"text",value:x_(o)}]}d({type:"comma",value:h}),o.commas++;continue}if(h===R_&&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};im.exports=$_});var um=R((R6,am)=>{"use strict";var om=Lo(),B_=Kg(),M_=Qg(),j_=sm(),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={})=>j_(e,t);Lt.stringify=(e,t={})=>om(typeof e=="string"?Lt.parse(e,t):e,t);Lt.compile=(e,t={})=>(typeof e=="string"&&(e=Lt.parse(e,t)),B_(e,t));Lt.expand=(e,t={})=>{typeof e=="string"&&(e=Lt.parse(e,t));let r=M_(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);am.exports=Lt});var Zi=R((_6,pm)=>{"use strict";var q_=q("path"),fr="\\\\/",cm=`[^${fr}]`,_r="\\.",W_="\\+",G_="\\?",Io="\\/",U_="(?=.)",lm="[^/]",Sc=`(?:${Io}|$)`,fm=`(?:^|${Io})`,bc=`${_r}{1,2}${Sc}`,H_=`(?!${_r})`,Y_=`(?!${fm}${bc})`,z_=`(?!${_r}{0,1}${Sc})`,V_=`(?!${bc})`,K_=`[^.${Io}]`,X_=`${lm}*?`,hm={DOT_LITERAL:_r,PLUS_LITERAL:W_,QMARK_LITERAL:G_,SLASH_LITERAL:Io,ONE_CHAR:U_,QMARK:lm,END_ANCHOR:Sc,DOTS_SLASH:bc,NO_DOT:H_,NO_DOTS:Y_,NO_DOT_SLASH:z_,NO_DOTS_SLASH:V_,QMARK_NO_DOT:K_,STAR:X_,START_ANCHOR:fm},J_={...hm,SLASH_LITERAL:`[${fr}]`,QMARK:cm,STAR:`${cm}*?`,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}]|$)`},Q_={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"};pm.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Q_,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:q_.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?J_:hm}}});var es=R(St=>{"use strict";var Z_=q("path"),ek=process.platform==="win32",{REGEX_BACKSLASH:tk,REGEX_REMOVE_BACKSLASH:rk,REGEX_SPECIAL_CHARS:nk,REGEX_SPECIAL_CHARS_GLOBAL:ik}=Zi();St.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);St.hasRegexChars=e=>nk.test(e);St.isRegexChar=e=>e.length===1&&St.hasRegexChars(e);St.escapeRegex=e=>e.replace(ik,"\\$1");St.toPosixSlashes=e=>e.replace(tk,"/");St.removeBackslashes=e=>e.replace(rk,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:ek===!0||Z_.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 wm=R((D6,Am)=>{"use strict";var dm=es(),{CHAR_ASTERISK:Cc,CHAR_AT:sk,CHAR_BACKWARD_SLASH:ts,CHAR_COMMA:ok,CHAR_DOT:xc,CHAR_EXCLAMATION_MARK:Pc,CHAR_FORWARD_SLASH:Em,CHAR_LEFT_CURLY_BRACE:Oc,CHAR_LEFT_PARENTHESES:Rc,CHAR_LEFT_SQUARE_BRACKET:ak,CHAR_PLUS:uk,CHAR_QUESTION_MARK:gm,CHAR_RIGHT_CURLY_BRACE:ck,CHAR_RIGHT_PARENTHESES:mm,CHAR_RIGHT_SQUARE_BRACKET:lk}=Zi(),ym=e=>e===Em||e===ts,vm=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},fk=(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,A=!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(_===ts){C=T.backslashes=!0,_=y(),_===Oc&&(P=!0);continue}if(P===!0||_===Oc){for(O++;b()!==!0&&(_=y());){if(_===ts){C=T.backslashes=!0,y();continue}if(_===Oc){O++;continue}if(P!==!0&&_===xc&&(_=y())===xc){if(h=T.isBrace=!0,d=T.isGlob=!0,A=!0,i===!0)continue;break}if(P!==!0&&_===ok){if(h=T.isBrace=!0,d=T.isGlob=!0,A=!0,i===!0)continue;break}if(_===ck&&(O--,O===0)){P=!1,h=T.isBrace=!0,A=!0;break}}if(i===!0)continue;break}if(_===Em){if(s.push(u),o.push(T),T={value:"",depth:0,isGlob:!1},A===!0)continue;if(k===xc&&u===f+1){f+=2;continue}l=u+1;continue}if(r.noext!==!0&&(_===uk||_===sk||_===Cc||_===gm||_===Pc)===!0&&g()===Rc){if(d=T.isGlob=!0,m=T.isExtglob=!0,A=!0,_===Pc&&u===f&&(D=!0),i===!0){for(;b()!==!0&&(_=y());){if(_===ts){C=T.backslashes=!0,_=y();continue}if(_===mm){d=T.isGlob=!0,A=!0;break}}continue}break}if(_===Cc){if(k===Cc&&(v=T.isGlobstar=!0),d=T.isGlob=!0,A=!0,i===!0)continue;break}if(_===gm){if(d=T.isGlob=!0,A=!0,i===!0)continue;break}if(_===ak){for(;b()!==!0&&(L=y());){if(L===ts){C=T.backslashes=!0,y();continue}if(L===lk){p=T.isBracket=!0,d=T.isGlob=!0,A=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&_===Pc&&u===f){F=T.negated=!0,f++;continue}if(r.noparen!==!0&&_===Rc){if(d=T.isGlob=!0,i===!0){for(;b()!==!0&&(_=y());){if(_===Rc){C=T.backslashes=!0,_=y();continue}if(_===mm){A=!0;break}}continue}break}if(d===!0){if(A=!0,i===!0)continue;break}}r.noext===!0&&(m=!1,d=!1);let w=c,x="",E="";f>0&&(x=c.slice(0,f),c=c.slice(f),l-=f),w&&d===!0&&l>0?(w=c.slice(0,l),E=c.slice(l)):d===!0?(w="",E=c):w=c,w&&w!==""&&w!=="/"&&w!==c&&ym(w.charCodeAt(w.length-1))&&(w=w.slice(0,-1)),r.unescape===!0&&(E&&(E=dm.removeBackslashes(E)),w&&C===!0&&(w=dm.removeBackslashes(w)));let S={prefix:x,input:e,start:f,base:w,glob:E,isBrace:h,isBracket:p,isGlob:d,isExtglob:m,isGlobstar:v,negated:F,negatedExtglob:D};if(r.tokens===!0&&(S.maxDepth=0,ym(_)||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,vm(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,vm(o[o.length-1]),S.maxDepth+=o[o.length-1].depth)}S.slashes=s,S.parts=a}return S};Am.exports=fk});var Cm=R((F6,bm)=>{"use strict";var $o=Zi(),Tt=es(),{MAX_LENGTH:Bo,POSIX_REGEX_SOURCE:hk,REGEX_NON_SPECIAL_CHARS:pk,REGEX_SPECIAL_CHARS_BACKREF:dk,REPLACEMENTS:Sm}=$o,gk=(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`,_c=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Sm[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:A,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):A;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=[],E=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(E.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,-E.output.length),E.type="star",E.value="*",E.output=b,g.output+=E.output)}if(y.length&&j.type!=="paren"&&(y[y.length-1].inner+=j.value),(j.value||j.output)&&Y(j),E&&E.type==="text"&&j.type==="text"){E.value+=j.value,E.output=(E.output||"")+j.value;return}j.prev=E,o.push(j),E=j},re=(j,oe)=>{let U={...f[oe],conditions:1,inner:""};U.prev=E,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=_c(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(dk,(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!=="]"||E.value==="["||E.value==="[^")){if(r.posix!==!1&&S===":"){let U=E.value.slice(1);if(U.includes("[")&&(E.posix=!0,U.includes(":"))){let ie=E.value.lastIndexOf("["),le=E.value.slice(0,ie),be=E.value.slice(ie+2),he=hk[be];if(he){E.value=le+he,g.backtrack=!0,I(),!s.output&&o.indexOf(E)===1&&(s.output=d);continue}}}(S==="["&&N()!==":"||S==="-"&&N()==="]")&&(S=`\\${S}`),S==="]"&&(E.value==="["||E.value==="[^")&&(S=`\\${S}`),r.posix===!0&&S==="!"&&E.value==="["&&(S="^"),E.value+=S,Y({value:S});continue}if(g.quotes===1&&S!=='"'){S=Tt.escapeRegex(S),E.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||E&&E.type==="bracket"&&E.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=E.value.slice(1);if(E.posix!==!0&&U[0]==="^"&&!U.includes("/")&&(S=`/${S}`),E.value+=S,Y({value:S}),r.literalBrackets===!1||Tt.hasRegexChars(U))continue;let ie=Tt.escapeRegex(E.value);if(g.output=g.output.slice(0,-E.value.length),r.literalBrackets===!0){g.output+=ie,E.value=ie;continue}E.value=`(${a}${ie}|${E.value})`,g.output+=E.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=gk(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(E.type==="dot"&&g.index===g.start+1){g.start=g.index+1,g.consumed="",g.output="",o.pop(),E=s;continue}M({type:"slash",value:S,output:p});continue}if(S==="."){if(g.braces>0&&E.type==="dot"){E.value==="."&&(E.output=l);let U=w[w.length-1];E.type="dots",E.output+=S,E.value+=S,U.dots=!0;continue}if(g.braces+g.parens===0&&E.type!=="bos"&&E.type!=="slash"){M({type:"text",value:S,output:l});continue}M({type:"dot",value:S,output:l});continue}if(S==="?"){if(!(E&&E.value==="(")&&r.noextglob!==!0&&N()==="("&&N(2)!=="?"){re("qmark",S);continue}if(E&&E.type==="paren"){let ie=N(),le=S;if(ie==="<"&&!Tt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(E.value==="("&&!/[!=<:]/.test(ie)||ie==="<"&&!/<([!=]|\w+>)/.test(B()))&&(le=`\\${S}`),M({type:"text",value:S,output:le});continue}if(r.dot!==!0&&(E.type==="slash"||E.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(E&&E.value==="("||r.regex===!1){M({type:"plus",value:S,output:h});continue}if(E&&(E.type==="bracket"||E.type==="paren"||E.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=pk.exec(B());U&&(S+=U[0],g.index+=U[0].length),M({type:"text",value:S});continue}if(E&&(E.type==="globstar"||E.star===!0)){E.type="star",E.star=!0,E.value+=S,E.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(E.type==="star"){if(r.noglobstar===!0){W(S);continue}let U=E.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()){E.type="globstar",E.value+=S,E.output=k(r),g.output=E.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+E.output).length),U.output=`(?:${U.output}`,E.type="globstar",E.output=k(r)+(r.strictSlashes?")":"|$)"),E.value+=S,g.globstar=!0,g.output+=U.output+E.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+E.output).length),U.output=`(?:${U.output}`,E.type="globstar",E.output=`${k(r)}${p}|${p}${De})`,E.value+=S,g.output+=U.output+E.output,g.globstar=!0,W(S+I()),M({type:"slash",value:"/",output:""});continue}if(U.type==="bos"&&j[0]==="/"){E.type="globstar",E.value+=S,E.output=`(?:^|${p}|${k(r)}${p})`,g.output=E.output,g.globstar=!0,W(S+I()),M({type:"slash",value:"/",output:""});continue}g.output=g.output.slice(0,-E.output.length),E.type="globstar",E.output=k(r),E.value+=S,g.output+=E.output,g.globstar=!0,W(S);continue}let oe={type:"star",value:S,output:b};if(r.bash===!0){oe.output=".*?",(E.type==="bos"||E.type==="slash")&&(oe.output=_+oe.output),M(oe);continue}if(E&&(E.type==="bracket"||E.type==="paren")&&r.regex===!0){oe.output=S,M(oe);continue}(g.index===g.start||E.type==="slash"||E.type==="dot")&&(E.type==="dot"?(g.output+=P,E.output+=P):r.dot===!0?(g.output+=C,E.output+=C):(g.output+=_,E.output+=_),N()!=="*"&&(g.output+=d,E.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&&(E.type==="star"||E.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};_c.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=Sm[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}).)*?)`,A=_=>{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=A(T[1]);return b?b+o+T[2]:void 0}}},O=Tt.removePrefix(e,C),k=A(O);return k&&r.strictSlashes!==!0&&(k+=`${a}?`),k};bm.exports=_c});var Pm=R((L6,xm)=>{"use strict";var mk=q("path"),yk=wm(),kc=Cm(),Dc=es(),vk=Zi(),Ek=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=Ek(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=Dc.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?Dc.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=Dc.isWindows(r))=>(t instanceof RegExp?t:Ne.makeRe(t,r)).test(mk.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)):kc(e,{...t,fastpaths:!1});Ne.scan=(e,t)=>yk(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=kc.fastpaths(e,t)),i.output||(i=kc(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=vk;xm.exports=Ne});var Rm=R((T6,Om)=>{"use strict";Om.exports=Pm()});var rs=R((N6,Lm)=>{"use strict";var km=q("util"),Dm=um(),hr=Rm(),Fc=es(),_m=e=>e===""||e==="./",Fm=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: "${km.inspect(e)}"`);if(Array.isArray(t))return t.some(n=>Re.contains(e,n,r));if(typeof t=="string"){if(_m(e)||_m(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(!Fc.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: "${km.inspect(e)}"`);return[].concat(t).every(n=>hr(n,r)(e))};Re.capture=(e,t,r)=>{let n=Fc.isWindows(r),s=hr.makeRe(String(e),{...r,capture:!0}).exec(n?Fc.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 Dm(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||!Fm(e)?[e]:Dm(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=Fm;Lm.exports=Re});var Gm=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 Tm=q("path"),Ak=Pg(),Lc=rs(),Nm="**",wk="\\",Sk=/[*?]|^!/,bk=/\[[^[]*]/,Ck=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,xk=/[!*+?@]\([^(]*\)/,Pk=/,|\.\./,Ok=/(?!^)\/{2,}/g;function Im(e,t={}){return!$m(e,t)}ue.isStaticPattern=Im;function $m(e,t={}){return e===""?!1:!!(t.caseSensitiveMatch===!1||e.includes(wk)||Sk.test(e)||bk.test(e)||Ck.test(e)||t.extglob!==!1&&xk.test(e)||t.braceExpansion!==!1&&Rk(e))}ue.isDynamicPattern=$m;function Rk(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 _k(e){return Mo(e)?e.slice(1):e}ue.convertToPositivePattern=_k;function kk(e){return"!"+e}ue.convertToNegativePattern=kk;function Mo(e){return e.startsWith("!")&&e[1]!=="("}ue.isNegativePattern=Mo;function Bm(e){return!Mo(e)}ue.isPositivePattern=Bm;function Dk(e){return e.filter(Mo)}ue.getNegativePatterns=Dk;function Fk(e){return e.filter(Bm)}ue.getPositivePatterns=Fk;function Lk(e){return e.filter(t=>!Tc(t))}ue.getPatternsInsideCurrentDirectory=Lk;function Tk(e){return e.filter(Tc)}ue.getPatternsOutsideCurrentDirectory=Tk;function Tc(e){return e.startsWith("..")||e.startsWith("./..")}ue.isPatternRelatedToParentDirectory=Tc;function Nk(e){return Ak(e,{flipBackslashes:!1})}ue.getBaseDirectory=Nk;function Ik(e){return e.includes(Nm)}ue.hasGlobStar=Ik;function Mm(e){return e.endsWith("/"+Nm)}ue.endsWithSlashGlobStar=Mm;function $k(e){let t=Tm.basename(e);return Mm(e)||Im(t)}ue.isAffectDepthOfReadingPattern=$k;function Bk(e){return e.reduce((t,r)=>t.concat(jm(r)),[])}ue.expandPatternsWithBraceExpansion=Bk;function jm(e){let t=Lc.braces(e,{expand:!0,nodupes:!0,keepEscaping:!0});return t.sort((r,n)=>r.length-n.length),t.filter(r=>r!=="")}ue.expandBraceExpansion=jm;function Mk(e,t){let{parts:r}=Lc.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=Mk;function qm(e,t){return Lc.makeRe(e,t)}ue.makeRe=qm;function jk(e,t){return e.map(r=>qm(r,t))}ue.convertPatternsToRe=jk;function qk(e,t){return t.some(r=>r.test(e))}ue.matchAny=qk;function Wk(e){return e.replace(Ok,"/")}ue.removeDuplicateSlashes=Wk;function Gk(e){let t=[],r=[];for(let n of e)Wm(n)?t.push(n):r.push(n);return[t,r]}ue.partitionAbsoluteAndRelative=Gk;function Wm(e){return Tm.isAbsolute(e)}ue.isAbsolute=Wm});var zm=R(($6,Ym)=>{"use strict";var Uk=q("stream"),Um=Uk.PassThrough,Hk=Array.prototype.slice;Ym.exports=Yk;function Yk(){let e=[],t=Hk.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=Um(n);function a(){for(let f=0,l=arguments.length;f<l;f++)e.push(Hm(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 Hm(e,t){if(Array.isArray(e))for(let r=0,n=e.length;r<n;r++)e[r]=Hm(e[r],t);else{if(!e._readableState&&e.pipe&&(e=e.pipe(Um(t))),!e._readableState||!e.pause||!e.pipe)throw new Error("Only readable stream can be merged.");e.pause()}return e}});var Km=R(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.merge=void 0;var zk=zm();function Vk(e){let t=zk(e);return e.forEach(r=>{r.once("error",n=>t.emit("error",n))}),t.once("close",()=>Vm(e)),t.once("end",()=>Vm(e)),t}jo.merge=Vk;function Vm(e){e.forEach(t=>t.emit("close"))}});var Xm=R(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});ri.isEmpty=ri.isString=void 0;function Kk(e){return typeof e=="string"}ri.isString=Kk;function Xk(e){return e===""}ri.isEmpty=Xk});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 Jk=pg();Ze.array=Jk;var Qk=dg();Ze.errno=Qk;var Zk=gg();Ze.fs=Zk;var eD=Eg();Ze.path=eD;var tD=Gm();Ze.pattern=tD;var rD=Km();Ze.stream=rD;var nD=Xm();Ze.string=nD});var e0=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 iD(e,t){let r=Jm(e,t),n=Jm(t.ignore,t),i=Qm(r),s=Zm(r,n),o=i.filter(f=>nr.pattern.isStaticPattern(f,t)),a=i.filter(f=>nr.pattern.isDynamicPattern(f,t)),c=Nc(o,s,!1),u=Nc(a,s,!0);return c.concat(u)}et.generate=iD;function Jm(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 Nc(e,t,r){let n=[],i=nr.pattern.getPatternsOutsideCurrentDirectory(e),s=nr.pattern.getPatternsInsideCurrentDirectory(e),o=Ic(i),a=Ic(s);return n.push(...$c(o,t,r)),"."in a?n.push(Bc(".",s,t,r)):n.push(...$c(a,t,r)),n}et.convertPatternsToTasks=Nc;function Qm(e){return nr.pattern.getPositivePatterns(e)}et.getPositivePatterns=Qm;function Zm(e,t){return nr.pattern.getNegativePatterns(e).concat(t).map(nr.pattern.convertToPositivePattern)}et.getNegativePatternsAsPositive=Zm;function Ic(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=Ic;function $c(e,t,r){return Object.keys(e).map(n=>Bc(n,e[n],t,r))}et.convertPatternGroupsToTasks=$c;function Bc(e,t,r,n){return{dynamic:n,positive:t,negative:r,base:e,patterns:[].concat(t,r.map(nr.pattern.convertToNegativePattern))}}et.convertPatternGroupToTask=Bc});var r0=R(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.read=void 0;function sD(e,t,r){t.fs.lstat(e,(n,i)=>{if(n!==null){t0(r,n);return}if(!i.isSymbolicLink()||!t.followSymbolicLink){Mc(r,i);return}t.fs.stat(e,(s,o)=>{if(s!==null){if(t.throwErrorOnBrokenSymbolicLink){t0(r,s);return}Mc(r,i);return}t.markSymbolicLink&&(o.isSymbolicLink=()=>!0),Mc(r,o)})})}qo.read=sD;function t0(e,t){e(t)}function Mc(e,t){e(null,t)}});var n0=R(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.read=void 0;function oD(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=oD});var i0=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 aD(e){return e===void 0?Kr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Kr.FILE_SYSTEM_ADAPTER),e)}Kr.createFileSystemAdapter=aD});var s0=R(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});var uD=i0(),jc=class{constructor(t={}){this._options=t,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=uD.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}};qc.default=jc});var Cn=R(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.statSync=Xr.stat=Xr.Settings=void 0;var o0=r0(),cD=n0(),Wc=s0();Xr.Settings=Wc.default;function lD(e,t,r){if(typeof t=="function"){o0.read(e,Gc(),t);return}o0.read(e,Gc(t),r)}Xr.stat=lD;function fD(e,t){let r=Gc(t);return cD.read(e,r)}Xr.statSync=fD;function Gc(e={}){return e instanceof Wc.default?e:new Wc.default(e)}});var c0=R((z6,u0)=>{var a0;u0.exports=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:global):e=>(a0||(a0=Promise.resolve())).then(e).catch(t=>setTimeout(()=>{throw t},0))});var f0=R((V6,l0)=>{l0.exports=pD;var hD=c0();function pD(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?hD(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 Uc=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 h0=Number.parseInt(Uo[0],10),dD=Number.parseInt(Uo[1],10),p0=10,gD=10,mD=h0>p0,yD=h0===p0&&dD>=gD;Ho.IS_SUPPORT_READDIR_WITH_FILE_TYPES=mD||yD});var d0=R(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.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 vD(e,t){return new Hc(e,t)}Yo.createDirentFromStats=vD});var Yc=R(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.fs=void 0;var ED=d0();zo.fs=ED});var zc=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 A0=R(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.readdir=Jr.readdirWithFileTypes=Jr.read=void 0;var wD=Cn(),g0=f0(),SD=Uc(),m0=Yc(),y0=zc();function bD(e,t,r){if(!t.stats&&SD.IS_SUPPORT_READDIR_WITH_FILE_TYPES){v0(e,t,r);return}E0(e,t,r)}Jr.read=bD;function v0(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:y0.joinPathSegments(e,a.name,t.pathSegmentSeparator)}));if(!t.followSymbolicLinks){Vc(r,s);return}let o=s.map(a=>CD(a,t));g0(o,(a,c)=>{if(a!==null){Ko(r,a);return}Vc(r,c)})})}Jr.readdirWithFileTypes=v0;function CD(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=m0.fs.createDirentFromStats(e.name,i),r(null,e)})}}function E0(e,t,r){t.fs.readdir(e,(n,i)=>{if(n!==null){Ko(r,n);return}let s=i.map(o=>{let a=y0.joinPathSegments(e,o,t.pathSegmentSeparator);return c=>{wD.stat(a,t.fsStatSettings,(u,f)=>{if(u!==null){c(u);return}let l={name:o,path:a,dirent:m0.fs.createDirentFromStats(o,f)};t.stats&&(l.stats=f),c(null,l)})}});g0(s,(o,a)=>{if(o!==null){Ko(r,o);return}Vc(r,a)})})}Jr.readdir=E0;function Ko(e,t){e(t)}function Vc(e,t){e(null,t)}});var x0=R(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.readdir=Qr.readdirWithFileTypes=Qr.read=void 0;var xD=Cn(),PD=Uc(),w0=Yc(),S0=zc();function OD(e,t){return!t.stats&&PD.IS_SUPPORT_READDIR_WITH_FILE_TYPES?b0(e,t):C0(e,t)}Qr.read=OD;function b0(e,t){return t.fs.readdirSync(e,{withFileTypes:!0}).map(n=>{let i={dirent:n,name:n.name,path:S0.joinPathSegments(e,n.name,t.pathSegmentSeparator)};if(i.dirent.isSymbolicLink()&&t.followSymbolicLinks)try{let s=t.fs.statSync(i.path);i.dirent=w0.fs.createDirentFromStats(i.name,s)}catch(s){if(t.throwErrorOnBrokenSymbolicLink)throw s}return i})}Qr.readdirWithFileTypes=b0;function C0(e,t){return t.fs.readdirSync(e).map(n=>{let i=S0.joinPathSegments(e,n,t.pathSegmentSeparator),s=xD.statSync(i,t.fsStatSettings),o={name:n,path:i,dirent:w0.fs.createDirentFromStats(n,s)};return t.stats&&(o.stats=s),o})}Qr.readdir=C0});var P0=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 RD(e){return e===void 0?Zr.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},Zr.FILE_SYSTEM_ADAPTER),e)}Zr.createFileSystemAdapter=RD});var O0=R(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var _D=q("path"),kD=Cn(),DD=P0(),Kc=class{constructor(t={}){this._options=t,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=DD.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,_D.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new kD.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(t,r){return t??r}};Xc.default=Kc});var Xo=R(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.Settings=en.scandirSync=en.scandir=void 0;var R0=A0(),FD=x0(),Jc=O0();en.Settings=Jc.default;function LD(e,t,r){if(typeof t=="function"){R0.read(e,Qc(),t);return}R0.read(e,Qc(t),r)}en.scandir=LD;function TD(e,t){let r=Qc(t);return FD.read(e,r)}en.scandirSync=TD;function Qc(e={}){return e instanceof Jc.default?e:new Jc.default(e)}});var k0=R((i8,_0)=>{"use strict";function ND(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}}_0.exports=ND});var F0=R((s8,Zc)=>{"use strict";var ID=k0();function D0(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=ID($D),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(A){if(!(A>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(r=A,!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 A=i,O=0;A;)A=A.next,O++;return O}function h(){for(var A=i,O=[];A;)O.push(A.value),A=A.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(A,O){var k=n.get();k.context=e,k.release=P,k.value=A,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(A,O){var k=n.get();k.context=e,k.release=P,k.value=A,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(A){A&&n.release(A);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(A){a=A}}function qt(){}function $D(){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 BD(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=D0(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}}Zc.exports=D0;Zc.exports.promise=BD});var Jo=R(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.joinPathSegments=pr.replacePathSegmentSeparator=pr.isAppliedFilter=pr.isFatalError=void 0;function MD(e,t){return e.errorFilter===null?!0:!e.errorFilter(t)}pr.isFatalError=MD;function jD(e,t){return e===null||e(t)}pr.isAppliedFilter=jD;function qD(e,t){return e.split(/[/\\]/).join(t)}pr.replacePathSegmentSeparator=qD;function WD(e,t,r){return e===""?t:e.endsWith(r)?e+t:e+r+t}pr.joinPathSegments=WD});var rl=R(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var GD=Jo(),el=class{constructor(t,r){this._root=t,this._settings=r,this._root=GD.replacePathSegmentSeparator(t,r.pathSegmentSeparator)}};tl.default=el});var sl=R(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});var UD=q("events"),HD=Xo(),YD=F0(),Qo=Jo(),zD=rl(),nl=class extends zD.default{constructor(t,r){super(t,r),this._settings=r,this._scandir=HD.scandir,this._emitter=new UD.EventEmitter,this._queue=YD(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)}};il.default=nl});var L0=R(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var VD=sl(),ol=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new VD.default(this._root,this._settings),this._storage=[]}read(t){this._reader.onError(r=>{KD(t,r)}),this._reader.onEntry(r=>{this._storage.push(r)}),this._reader.onEnd(()=>{XD(t,this._storage)}),this._reader.read()}};al.default=ol;function KD(e,t){e(t)}function XD(e,t){e(null,t)}});var T0=R(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var JD=q("stream"),QD=sl(),ul=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new QD.default(this._root,this._settings),this._stream=new JD.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}};cl.default=ul});var N0=R(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var ZD=Xo(),Zo=Jo(),eF=rl(),ll=class extends eF.default{constructor(){super(...arguments),this._scandir=ZD.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)}};fl.default=ll});var I0=R(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var tF=N0(),hl=class{constructor(t,r){this._root=t,this._settings=r,this._reader=new tF.default(this._root,this._settings)}read(){return this._reader.read()}};pl.default=hl});var $0=R(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var rF=q("path"),nF=Xo(),dl=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,rF.sep),this.fsScandirSettings=new nF.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}};gl.default=dl});var ta=R(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.Settings=dr.walkStream=dr.walkSync=dr.walk=void 0;var B0=L0(),iF=T0(),sF=I0(),ml=$0();dr.Settings=ml.default;function oF(e,t,r){if(typeof t=="function"){new B0.default(e,ea()).read(t);return}new B0.default(e,ea(t)).read(r)}dr.walk=oF;function aF(e,t){let r=ea(t);return new sF.default(e,r).read()}dr.walkSync=aF;function uF(e,t){let r=ea(t);return new iF.default(e,r).read()}dr.walkStream=uF;function ea(e={}){return e instanceof ml.default?e:new ml.default(e)}});var ra=R(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var cF=q("path"),lF=Cn(),M0=kr(),yl=class{constructor(t){this._settings=t,this._fsStatSettings=new lF.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(t){return cF.resolve(this._settings.cwd,t)}_makeEntry(t,r){let n={name:r,path:r,dirent:M0.fs.createDirentFromStats(r,t)};return this._settings.stats&&(n.stats=t),n}_isFatalError(t){return!M0.errno.isEnoentCodeError(t)&&!this._settings.suppressErrors}};vl.default=yl});var wl=R(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});var fF=q("stream"),hF=Cn(),pF=ta(),dF=ra(),El=class extends dF.default{constructor(){super(...arguments),this._walkStream=pF.walkStream,this._stat=hF.stat}dynamic(t,r){return this._walkStream(t,r)}static(t,r){let n=t.map(this._getFullEntryPath,this),i=new fF.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=El});var j0=R(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var gF=ta(),mF=ra(),yF=wl(),Sl=class extends mF.default{constructor(){super(...arguments),this._walkAsync=gF.walk,this._readerStream=new yF.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))})}};bl.default=Sl});var q0=R(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});var ns=kr(),Cl=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 ns.pattern.getPatternParts(t,this._micromatchOptions).map(n=>ns.pattern.isDynamicPattern(n,this._settings)?{dynamic:!0,pattern:n,patternRe:ns.pattern.makeRe(n,this._micromatchOptions)}:{dynamic:!1,pattern:n})}_splitSegmentsIntoSections(t){return ns.array.splitWhen(t,r=>r.dynamic&&ns.pattern.hasGlobStar(r.pattern))}};xl.default=Cl});var W0=R(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});var vF=q0(),Pl=class extends vF.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}};Ol.default=Pl});var G0=R(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});var na=kr(),EF=W0(),Rl=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 EF.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)}};_l.default=Rl});var U0=R(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});var tn=kr(),kl=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}};Dl.default=kl});var H0=R(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});var AF=kr(),Fl=class{constructor(t){this._settings=t}getFilter(){return t=>this._isNonFatalError(t)}_isNonFatalError(t){return AF.errno.isEnoentCodeError(t)||this._settings.suppressErrors}};Ll.default=Fl});var z0=R(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});var Y0=kr(),Tl=class{constructor(t){this._settings=t}getTransformer(){return t=>this._transform(t)}_transform(t){let r=t.path;return this._settings.absolute&&(r=Y0.path.makeAbsolute(this._settings.cwd,r),r=Y0.path.unixify(r)),this._settings.markDirectories&&t.dirent.isDirectory()&&(r+="/"),this._settings.objectMode?Object.assign(Object.assign({},t),{path:r}):r}};Nl.default=Tl});var ia=R($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});var wF=q("path"),SF=G0(),bF=U0(),CF=H0(),xF=z0(),Il=class{constructor(t){this._settings=t,this.errorFilter=new CF.default(this._settings),this.entryFilter=new bF.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new SF.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new xF.default(this._settings)}_getRootDirectory(t){return wF.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}}};$l.default=Il});var V0=R(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});var PF=j0(),OF=ia(),Bl=class extends OF.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)}};Ml.default=Bl});var K0=R(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});var RF=q("stream"),_F=wl(),kF=ia(),jl=class extends kF.default{constructor(){super(...arguments),this._reader=new _F.default(this._settings)}read(t){let r=this._getRootDirectory(t),n=this._getReaderOptions(t),i=this.api(r,t,n),s=new RF.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)}};ql.default=jl});var X0=R(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var DF=Cn(),FF=ta(),LF=ra(),Wl=class extends LF.default{constructor(){super(...arguments),this._walkSync=FF.walkSync,this._statSync=DF.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)}};Gl.default=Wl});var J0=R(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});var TF=X0(),NF=ia(),Ul=class extends NF.default{constructor(){super(...arguments),this._reader=new TF.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)}};Hl.default=Ul});var Q0=R(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;var ii=q("fs"),IF=q("os"),$F=Math.max(IF.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 Yl=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,$F),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=Yl});var ty=R((k8,ey)=>{"use strict";var Z0=e0(),BF=V0(),MF=K0(),jF=J0(),zl=Q0(),Wt=kr();async function Vl(e,t){ir(e);let r=Kl(e,BF.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=Kl(u,jF.default,f);return Wt.array.flatten(l)}e.sync=t;function r(u,f){ir(u);let l=Kl(u,MF.default,f);return Wt.stream.merge(l)}e.stream=r;function n(u,f){ir(u);let l=[].concat(u),h=new zl.default(f);return Z0.generate(l,h)}e.generateTasks=n;function i(u,f){ir(u);let l=new zl.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={}))})(Vl||(Vl={}));function Kl(e,t,r){let n=[].concat(e),i=new zl.default(r),s=Z0.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")}ey.exports=Vl});var oa=R(nn=>{"use strict";var ry=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=ry(q("path")),ny=ry(ty()),iy=zn(),rn={},sy={absolute:!0,ignore:["**/node_modules/**","**/__fixtures__/**"],stats:!1};function qF(e,t){return(0,iy.isCachingEnabled)()&&rn[e]||(rn[e]=ny.default.sync(oy(t),{cwd:e,...sy}).map(ay)),rn[e]}nn.getPackagePaths=qF;async function WF(e,t){return(0,iy.isCachingEnabled)()&&rn[e]||(rn[e]=(await(0,ny.default)(oy(t),{cwd:e,...sy})).map(ay)),rn[e]}nn.getPackagePathsAsync=WF;function oy(e){return e.map(t=>sa.default.join(t,"package.json").replace(/\\/g,"/"))}function ay(e){let t=sa.default.dirname(e);return sa.default.sep==="/"?t:t.replace(/\//g,sa.default.sep)}});var is=R(sn=>{"use strict";var Xl=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 uy=Xl(q("path")),GF=Xl(q("fs")),UF=Xl(q("fs/promises")),cy=wn(),ly=sc();function HF(e){return e?e.map(t=>{let r,n=uy.default.join(t,"package.json");try{r=JSON.parse(GF.default.readFileSync(n,"utf-8"))}catch(i){return(0,cy.logVerboseWarning)(`Error reading or parsing ${n} while getting workspace package info`,i),null}return{name:r.name,path:t,packageJson:(0,ly.infoFromPackageJson)(r,n)}}).filter(Boolean):[]}sn.getWorkspacePackageInfo=HF;async function YF(e){if(!e)return[];let t=e.map(async r=>{let n=uy.default.join(r,"package.json");try{let i=JSON.parse(await UF.default.readFile(n,"utf-8"));return{name:i.name,path:r,packageJson:(0,ly.infoFromPackageJson)(i,n)}}catch(i){return(0,cy.logVerboseWarning)(`Error reading or parsing ${n} while getting workspace package info`,i),null}});return(await Promise.all(t)).filter(Boolean)}sn.getWorkspacePackageInfoAsync=YF});var Jl=R(Gt=>{"use strict";var fy=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 zF=fy(q("fs")),VF=fy(q("path")),hy=oa(),py=is(),aa=wn();function dy(e){let t=VF.default.join(e,"package.json"),r;try{r=JSON.parse(zF.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 gy(e){try{let t=dy(e);return t?(0,hy.getPackagePaths)(e,t):[]}catch(t){return(0,aa.logVerboseWarning)(`Error getting package paths for ${e}`,t),[]}}Gt.getPackagePathsFromWorkspaceRoot=gy;async function my(e){try{let t=dy(e);return t?(0,hy.getPackagePathsAsync)(e,t):[]}catch(t){return(0,aa.logVerboseWarning)(`Error getting package paths for ${e}`,t),[]}}Gt.getPackagePathsFromWorkspaceRootAsync=my;function KF(e){try{let t=gy(e);return(0,py.getWorkspacePackageInfo)(t)}catch(t){return(0,aa.logVerboseWarning)(`Error getting workspace info for ${e}`,t),[]}}Gt.getWorkspaceInfoFromWorkspaceRoot=KF;async function XF(e){try{let t=await my(e);return(0,py.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,aa.logVerboseWarning)(`Error getting workspace info for ${e}`,t),[]}}Gt.getWorkspaceInfoFromWorkspaceRootAsync=XF});var Ql=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 JF=Vn(),ua=Jl();function ss(e){let t=(0,JF.getWorkspaceManagerAndRoot)(e,void 0,"yarn")?.root;if(!t)throw new Error("Could not find yarn workspace root from "+e);return t}tt.getYarnWorkspaceRoot=ss;function QF(e){let t=ss(e);return(0,ua.getPackagePathsFromWorkspaceRoot)(t)}tt.getWorkspacePackagePaths=QF;function ZF(e){let t=ss(e);return(0,ua.getPackagePathsFromWorkspaceRootAsync)(t)}tt.getWorkspacePackagePathsAsync=ZF;function yy(e){let t=ss(e);return(0,ua.getWorkspaceInfoFromWorkspaceRoot)(t)}tt.getYarnWorkspaces=yy;tt.getWorkspaces=yy;function vy(e){let t=ss(e);return(0,ua.getWorkspaceInfoFromWorkspaceRootAsync)(t)}tt.getYarnWorkspacesAsync=vy;tt.getWorkspacesAsync=vy});var oi=R((N8,xn)=>{"use strict";function Ey(e){return typeof e>"u"||e===null}function eL(e){return typeof e=="object"&&e!==null}function tL(e){return Array.isArray(e)?e:Ey(e)?[]:[e]}function rL(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 nL(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function iL(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}xn.exports.isNothing=Ey;xn.exports.isObject=eL;xn.exports.toArray=tL;xn.exports.repeat=nL;xn.exports.isNegativeZero=iL;xn.exports.extend=rL});var ai=R((I8,wy)=>{"use strict";function Ay(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+=`
10
10
 
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+=`
11
+ `+e.mark.snippet),n+" "+r):n}function os(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Ay(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}os.prototype=Object.create(Error.prototype);os.prototype.constructor=os;os.prototype.toString=function(t){return this.name+": "+Ay(this,t)};wy.exports=os});var by=R(($8,Sy)=>{"use strict";var as=oi();function Zl(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 ef(e,t){return as.repeat(" ",t-e.length)+e}function sL(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=Zl(e.buffer,n[o-c],i[o-c],e.position-(n[o]-n[o-c]),l),a=as.repeat(" ",t.indent)+ef((e.line-c+1).toString(),f)+" | "+u.str+`
12
+ `+a;for(u=Zl(e.buffer,n[o],i[o],e.position,l),a+=as.repeat(" ",t.indent)+ef((e.line+1).toString(),f)+" | "+u.str+`
13
+ `,a+=as.repeat("-",t.indent+f+3+u.pos)+`^
14
+ `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)u=Zl(e.buffer,n[o+c],i[o+c],e.position-(n[o]-n[o+c]),l),a+=as.repeat(" ",t.indent)+ef((e.line+c+1).toString(),f)+" | "+u.str+`
15
+ `;return a.replace(/\n$/,"")}Sy.exports=sL});var rt=R((B8,xy)=>{"use strict";var Cy=ai(),oL=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],aL=["scalar","sequence","mapping"];function uL(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function cL(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(oL.indexOf(r)===-1)throw new Cy('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=uL(t.styleAliases||null),aL.indexOf(this.kind)===-1)throw new Cy('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}xy.exports=cL});var nf=R((M8,Oy)=>{"use strict";var us=ai(),tf=rt();function Py(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 lL(){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 rf(e){return this.extend(e)}rf.prototype.extend=function(t){var r=[],n=[];if(t instanceof tf)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 us("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof tf))throw new us("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new us("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 us("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 tf))throw new us("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(rf.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=Py(i,"implicit"),i.compiledExplicit=Py(i,"explicit"),i.compiledTypeMap=lL(i.compiledImplicit,i.compiledExplicit),i};Oy.exports=rf});var sf=R((j8,Ry)=>{"use strict";var fL=rt();Ry.exports=new fL("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var of=R((q8,_y)=>{"use strict";var hL=rt();_y.exports=new hL("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var af=R((W8,ky)=>{"use strict";var pL=rt();ky.exports=new pL("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var uf=R((G8,Dy)=>{"use strict";var dL=nf();Dy.exports=new dL({explicit:[sf(),of(),af()]})});var cf=R((U8,Fy)=>{"use strict";var gL=rt();function mL(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function yL(){return null}function vL(e){return e===null}Fy.exports=new gL("tag:yaml.org,2002:null",{kind:"scalar",resolve:mL,construct:yL,predicate:vL,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})});var lf=R((H8,Ly)=>{"use strict";var EL=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 wL(e){return e==="true"||e==="True"||e==="TRUE"}function SL(e){return Object.prototype.toString.call(e)==="[object Boolean]"}Ly.exports=new EL("tag:yaml.org,2002:bool",{kind:"scalar",resolve:AL,construct:wL,predicate:SL,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 ff=R((Y8,Ty)=>{"use strict";var bL=oi(),CL=rt();function xL(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function PL(e){return 48<=e&&e<=55}function OL(e){return 48<=e&&e<=57}function RL(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(!xL(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(!OL(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function _L(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 kL(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!bL.isNegativeZero(e)}Ty.exports=new CL("tag:yaml.org,2002:int",{kind:"scalar",resolve:RL,construct:_L,predicate:kL,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 hf=R((z8,Iy)=>{"use strict";var Ny=oi(),DL=rt(),FL=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function LL(e){return!(e===null||!FL.test(e)||e[e.length-1]==="_")}function TL(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 NL=/^[-+]?[0-9]+e/;function IL(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(Ny.isNegativeZero(e))return"-0.0";return r=e.toString(10),NL.test(r)?r.replace("e",".e"):r}function $L(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ny.isNegativeZero(e))}Iy.exports=new DL("tag:yaml.org,2002:float",{kind:"scalar",resolve:LL,construct:TL,predicate:$L,represent:IL,defaultStyle:"lowercase"})});var pf=R((V8,$y)=>{"use strict";$y.exports=uf().extend({implicit:[cf(),lf(),ff(),hf()]})});var df=R((K8,By)=>{"use strict";By.exports=pf()});var gf=R((X8,qy)=>{"use strict";var BL=rt(),My=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),jy=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 ML(e){return e===null?!1:My.exec(e)!==null||jy.exec(e)!==null}function jL(e){var t,r,n,i,s,o,a,c=0,u=null,f,l,h;if(t=My.exec(e),t===null&&(t=jy.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 qL(e){return e.toISOString()}qy.exports=new BL("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:ML,construct:jL,instanceOf:Date,represent:qL})});var mf=R((J8,Wy)=>{"use strict";var WL=rt();function GL(e){return e==="<<"||e===null}Wy.exports=new WL("tag:yaml.org,2002:merge",{kind:"scalar",resolve:GL})});var vf=R((Q8,Gy)=>{"use strict";var UL=rt(),yf=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
16
+ \r`;function HL(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=yf;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 YL(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=yf,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 zL(e){var t="",r=0,n,i,s=e.length,o=yf;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 VL(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}Gy.exports=new UL("tag:yaml.org,2002:binary",{kind:"scalar",resolve:HL,construct:YL,predicate:VL,represent:zL})});var Ef=R((Z8,Uy)=>{"use strict";var KL=rt(),XL=Object.prototype.hasOwnProperty,JL=Object.prototype.toString;function QL(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,JL.call(i)!=="[object Object]")return!1;for(s in i)if(XL.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 ZL(e){return e!==null?e:[]}Uy.exports=new KL("tag:yaml.org,2002:omap",{kind:"sequence",resolve:QL,construct:ZL})});var Af=R((e4,Hy)=>{"use strict";var eT=rt(),tT=Object.prototype.toString;function rT(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],tT.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function nT(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}Hy.exports=new eT("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:rT,construct:nT})});var wf=R((t4,Yy)=>{"use strict";var iT=rt(),sT=Object.prototype.hasOwnProperty;function oT(e){if(e===null)return!0;var t,r=e;for(t in r)if(sT.call(r,t)&&r[t]!==null)return!1;return!0}function aT(e){return e!==null?e:{}}Yy.exports=new iT("tag:yaml.org,2002:set",{kind:"mapping",resolve:oT,construct:aT})});var ca=R((r4,zy)=>{"use strict";zy.exports=df().extend({implicit:[gf(),mf()],explicit:[vf(),Ef(),Af(),wf()]})});var cv=R((n4,xf)=>{"use strict";var On=oi(),ev=ai(),uT=by(),cT=ca(),an=Object.prototype.hasOwnProperty,la=1,tv=2,rv=3,fa=4,Sf=1,lT=2,Vy=3,fT=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,hT=/[\x85\u2028\u2029]/,pT=/[,\[\]\{\}]/,nv=/^(?:!|!!|![a-z\-]+!)$/i,iv=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ky(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 dT(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function gT(e){return e===120?2:e===117?4:e===85?8:0}function mT(e){return 48<=e&&e<=57?e-48:-1}function Xy(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 yT(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var sv=new Array(256),ov=new Array(256);for(Pn=0;Pn<256;Pn++)sv[Pn]=Xy(Pn)?1:0,ov[Pn]=Xy(Pn);var Pn;function vT(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||cT,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 av(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=uT(r),new ev(t,r)}function ee(e,t){throw av(e,t)}function ha(e,t){e.onWarning&&e.onWarning.call(null,av(e,t))}var Jy={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],nv.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'),iv.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 fT.test(a)&&ee(e,"the stream contains non-printable characters");e.result+=a}}function Qy(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"&&Ky(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&Ky(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)Qy(e,t,s[u],r);else Qy(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 bf(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(bf(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 Cf(e,t){t===1?e.result+=" ":t>1&&(e.result+=On.repeat(`
18
+ `,t-1))}function ET(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),Cf(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),Cf(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 wT(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&&sv[a])e.result+=ov[a],e.position++;else if((o=gT(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=dT(a))>=0?s=(s<<4)+o:ee(e,"expected hexadecimal character");e.result+=yT(s),e.position++}else ee(e,"unknown escape sequence");r=n=e.position}else gr(a)?(on(e,r,n,!0),Cf(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 ST(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 bT(e,t){var r,n,i=Sf,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)Sf===i?i=l===43?Vy:lT:ee(e,"repeat of a chomping mode identifier");else if((f=mT(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(bf(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===Vy?e.result+=On.repeat(`
19
+ `,s?1+c:c):i===Sf&&s&&(e.result+=`
20
20
  `);break}for(n?Rn(l)?(u=!0,e.result+=On.repeat(`
21
21
  `,s?1+c:c)):u?(u=!1,e.result+=On.repeat(`
22
22
  `,c+1)):c===0?s&&(e.result+=" "):e.result+=On.repeat(`
23
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(`
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 Zy(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,rv,!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 CT(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,tv,!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 xT(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),nv.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),pT.test(s)&&ee(e,"tag suffix cannot contain flow indicator characters")}s&&!iv.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 OT(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||rv===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(;xT(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||tv===r?m=t:m=t+1,v=e.position-e.lineStart,c===1?a&&(Zy(e,v)||CT(e,v,m))||ST(e,m)?f=!0:(o&&bT(e,m)||AT(e,m)||wT(e,m)?f=!0:OT(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&ee(e,"alias node should not have any properties")):ET(e,m,la===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(f=a&&Zy(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 RT(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&&bf(e),an.call(Jy,n)?Jy[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&&hT.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 uv(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 vT(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;)RT(r);return r.documents}function _T(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=uv(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function kT(e,t){var r=uv(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new ev("expected a single document in the stream, but found more")}}xf.exports.loadAll=_T;xf.exports.load=kT});var kv=R((i4,_v)=>{"use strict";var ma=oi(),ps=ai(),DT=ca(),vv=Object.prototype.toString,Ev=Object.prototype.hasOwnProperty,kf=65279,FT=9,ls=10,LT=13,TT=32,NT=33,IT=34,Pf=35,$T=37,BT=38,MT=39,jT=42,Av=44,qT=45,da=58,WT=61,GT=62,UT=63,HT=64,wv=91,Sv=93,YT=96,bv=123,zT=124,Cv=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 VT=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],KT=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function XT(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&&Ev.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function JT(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 ps("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ma.repeat("0",n-t.length)+t}var QT=1,fs=2;function ZT(e){this.schema=e.schema||DT,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=XT(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==='"'?fs:QT,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 lv(e,t){for(var r=ma.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
26
26
  `,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
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]===`
27
+ `&&(s+=r),s+=o;return s}function Of(e,t){return`
28
+ `+ma.repeat(" ",e.indent*t)}function eN(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===TT||e===FT}function hs(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==kf||65536<=e&&e<=1114111}function fv(e){return hs(e)&&e!==kf&&e!==LT&&e!==ls}function hv(e,t,r){var n=fv(e),i=n&&!ga(e);return(r?n:n&&e!==Av&&e!==wv&&e!==Sv&&e!==bv&&e!==Cv)&&e!==Pf&&!(t===da&&!i)||fv(t)&&!ga(t)&&e===Pf||t===da&&i}function tN(e){return hs(e)&&e!==kf&&!ga(e)&&e!==qT&&e!==UT&&e!==da&&e!==Av&&e!==wv&&e!==Sv&&e!==bv&&e!==Cv&&e!==Pf&&e!==BT&&e!==jT&&e!==NT&&e!==zT&&e!==WT&&e!==GT&&e!==MT&&e!==IT&&e!==$T&&e!==HT&&e!==YT}function rN(e){return!ga(e)&&e!==da}function cs(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 xv(e){var t=/^\n* /;return t.test(e)}var Pv=1,Rf=2,Ov=3,Rv=4,fi=5;function nN(e,t,r,n,i,s,o,a){var c,u=0,f=null,l=!1,h=!1,p=n!==-1,d=-1,m=tN(cs(e,0))&&rN(cs(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=cs(e,c),!hs(u))return fi;m=m&&hv(u,f,a),f=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=cs(e,c),u===ls)l=!0,p&&(h=h||c-d-1>n&&e[d+1]!==" ",d=c);else if(!hs(u))return fi;m=m&&hv(u,f,a),f=u}h=h||p&&c-d-1>n&&e[d+1]!==" "}return!l&&!h?m&&!o&&!i(e)?Pv:s===fs?fi:Rf:r>9&&xv(e)?fi:o?s===fs?fi:Rf:h?Rv:Ov}function iN(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===fs?'""':"''";if(!e.noCompatMode&&(VT.indexOf(t)!==-1||KT.test(t)))return e.quotingType===fs?'"'+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 eN(e,u)}switch(nN(t,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!n,i)){case Pv:return t;case Rf:return"'"+t.replace(/'/g,"''")+"'";case Ov:return"|"+pv(t,e.indent)+dv(lv(t,s));case Rv:return">"+pv(t,e.indent)+dv(lv(sN(t,o),s));case fi:return'"'+oN(t,o)+'"';default:throw new ps("impossible error: invalid scalar style")}}()}function pv(e,t){var r=xv(e)?String(t):"",n=e[e.length-1]===`
29
29
  `,i=n&&(e[e.length-2]===`
30
30
  `||e===`
31
31
  `),s=i?"+":n?"":"-";return r+s+`
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]===`
32
+ `}function dv(e){return e[e.length-1]===`
33
+ `?e.slice(0,-1):e}function sN(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,gv(e.slice(0,u),t)}(),i=e[0]===`
35
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+=`
36
+ `:"")+gv(c,t),i=s}return n}function gv(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
37
  `+e.slice(i,s),i=s+1),o=a;return c+=`
38
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===`
39
+ `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function oN(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=cs(e,i),n=nt[r],!n&&hs(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||JT(r);return t}function aN(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 mv(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+=Of(e,t)),e.dump&&ls===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function uN(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 cN(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 ps("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)h="",(!n||i!=="")&&(h+=Of(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&&ls===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=Of(e,t)),Dr(e,t+1,f,!0,l)&&(e.dump&&ls===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function yv(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,vv.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(Ev.call(a.represent,c))n=a.represent[c](t,c);else throw new ps("!<"+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,yv(e,r,!1)||yv(e,r,!0);var a=vv.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?(cN(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(uN(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?mv(e,t-1,e.dump,i):mv(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(aN(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&iN(e,e.dump,t,s,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new ps("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 lN(e,t){var r=[],n=[],i,s;for(_f(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function _f(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)_f(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)_f(e[n[i]],t,r)}function fN(e,t){t=t||{};var r=new ZT(t);r.noRefs||lN(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Dr(r,0,n,!0,!0)?r.dump+`
40
+ `:""}_v.exports.dump=fN});var Fv=R((s4,dt)=>{"use strict";var Dv=cv(),hN=kv();function Df(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=nf();dt.exports.FAILSAFE_SCHEMA=uf();dt.exports.JSON_SCHEMA=pf();dt.exports.CORE_SCHEMA=df();dt.exports.DEFAULT_SCHEMA=ca();dt.exports.load=Dv.load;dt.exports.loadAll=Dv.loadAll;dt.exports.dump=hN.dump;dt.exports.YAMLException=ai();dt.exports.types={binary:vf(),float:hf(),map:af(),null:cf(),pairs:Af(),set:wf(),timestamp:gf(),bool:lf(),int:ff(),merge:mf(),omap:Ef(),seq:of(),str:sf()};dt.exports.safeLoad=Df("safeLoad","load");dt.exports.safeLoadAll=Df("safeLoadAll","loadAll");dt.exports.safeDump=Df("safeDump","dump")});var Ff=R(hi=>{"use strict";var pN=hi&&hi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(hi,"__esModule",{value:!0});hi.readYaml=void 0;var dN=pN(q("fs"));function gN(e){let t=Fv(),r=dN.default.readFileSync(e,"utf8");return t.load(r)}hi.readYaml=gN});var Nf=R(it=>{"use strict";var mN=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 yN=mN(q("path")),vN=oa(),Lv=is(),EN=Ff(),Lf=wn(),AN=Qn();function Tv(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=Tv;function Tf(e){try{let t=Tv(e),r=yN.default.join(t,"pnpm-workspace.yaml"),n=(0,EN.readYaml)(r);return(0,vN.getPackagePaths)(t,n.packages)}catch(t){return(0,Lf.logVerboseWarning)(`Error getting pnpm workspace package paths for ${e}`,t),[]}}it.getWorkspacePackagePaths=Tf;function Nv(e){try{let t=Tf(e);return(0,Lv.getWorkspacePackageInfo)(t)}catch(t){return(0,Lf.logVerboseWarning)(`Error getting pnpm workspaces for ${e}`,t),[]}}it.getPnpmWorkspaces=Nv;it.getWorkspaces=Nv;async function Iv(e){try{let t=Tf(e);return(0,Lv.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,Lf.logVerboseWarning)(`Error getting pnpm workspaces for ${e}`,t),[]}}it.getPnpmWorkspacesAsync=Iv;it.getWorkspacesAsync=Iv});var If=R((u4,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
41
  `||t==="\r"};mr.exports.isLineTerminator=function(t){return t===`
42
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+`
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 gs=R((c4,ya)=>{var Fr=If();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 ds(e){return e>="0"&&e<="9"}var Bv={"'":"'",'"':'"',"\\":"\\",b:"\b",f:"\f",n:`
44
+ `,r:"\r",t:" ",v:"\v","/":"/"};function wN(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
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`
46
+ `+u}function SN(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(wN(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"),A()):g==="-"||g==="."||ds(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"),A();if(g==="."||ds(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 E=m();f.pop(),E===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"&&(E=t.reviver.call(null,w,E)),E!==void 0&&(y=!0,Object.defineProperty(b,w,{value:E,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 A(){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&&ds(e[u]);)u++;g=e[u++]}if(g==="0"){g=e[u++];var x=g==="o"||g==="O"||di(g),E=g==="x"||g==="X";if(r&&(x||E)){for(;u<o&&(E?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&&ds(e[u]);)u++;g=e[u++]}if(g==="e"||g==="E"){for(g=e[u++],(g==="-"||g==="+")&&u++;u<o&&ds(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++],Bv[y]&&(r||y!="v"&&y!="'"))g+=Bv[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 E=3;else if(di(e[u]))var E=2;else var E=1;u+=E-1,g+=String.fromCharCode(parseInt(e.substr(u-E,E),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 SN(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 Mf=R((l4,jv)=>{var $f=If();(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 bN={0:"\\0",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",92:"\\\\"},CN=Object.prototype.hasOwnProperty,Mv=/[\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/;function Bf(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(!$f.isIdentifierPart(l[p]))return a(l)}else if(!$f.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):Mv.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+=bN[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||$f.isLineTerminator(l[m])||Mv.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=Bf(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=Bf(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++)CN.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)}jv.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),Bf(t,r,0,"")}});var jf=R((f4,qv)=>{var xN=gs().tokenize;qv.exports.analyze=function(t,r){r==null&&(r={}),Array.isArray(t)||(t=xN(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 zv=R((h4,Wf)=>{var sr=q("assert"),Yv=gs().tokenize,PN=Mf().stringify,ON=jf().analyze;function ys(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=Yv(s,{_addstack:t});return o.data=null,o}function qf(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 Wv(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 ms(e){return e==="whitespace"||e==="newline"||e==="comment"}function Gv(e,t,r){for(;ms(e[t].type);)if(t++>=r)return!1;return t}function gi(e,t,r){for(;ms(e[r].type);)if(r--<t)return!1;return r}function Uv(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(;ms(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,":");ms(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(;ms(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=Yv(e,t);r._data=n.data,n.data=null,r._options=t;var i=ON(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 Hv(e,t,r){function n(i){return Error("You can't "+(r?"unset":"set")+" key '"+e+"'"+i)}if(!ys(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=qf(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++)Hv(e[i],n,!1),n=n[e[i]];i===e.length-1&&Hv(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=[Gv(this._tokens,0,this._tokens.length-1),gi(this._tokens,0,this._tokens.length-1)],i=0;i<e.length-1;i++)if(s=Wv(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?Uv(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=Wv(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=Gv(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?Uv(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=qf(e);for(var t=this._data,r=0;r<e.length;r++){if(!ys(t))return;t=t[e[r]]}return t};Lr.prototype.has=function(e){e=qf(e);for(var t=this._data,r=0;r<e.length;r++){if(!ys(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(!ys(s)||!ys(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("")};Wf.exports.Document=Lr;Wf.exports.update=function(t,r,n){return Lr(t,n).update(r).toString()}});var Vv=R((p4,Ea)=>{var RN=q("fs"),_N=vs();Ea.exports.register=function(){var e=q,t="extensions";e[t][".json5"]=function(r,n){r.exports=_N.parse(RN.readFileSync(n,"utf8"))}};Ea.exports.patch_JSON_parse=function(){var e=JSON.parse;JSON.parse=function(t,r){try{return e(t,r)}catch(n){throw vs().parse(t,{mode:"json",legacy:!0,reviver:r,reserved_keys:"replace",null_prototype:!1}),n}}};Ea.exports.middleware=function(){return function(e,t,r){throw Error("this function is removed, use express-json5 instead")}}});var vs=R((g4,_n)=>{_n.exports.__defineGetter__("parse",function(){return gs().parse});_n.exports.__defineGetter__("stringify",function(){return Mf().stringify});_n.exports.__defineGetter__("tokenize",function(){return gs().tokenize});_n.exports.__defineGetter__("update",function(){return zv().update});_n.exports.__defineGetter__("analyze",function(){return jf().analyze});_n.exports.__defineGetter__("utils",function(){return Vv()})});var zf=R(st=>{"use strict";var Uf=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 Gf=Uf(q("path")),kN=Uf(vs()),DN=Uf(q("fs")),Kv=is(),Hf=wn(),FN=Qn();function Xv(e){let t=(0,FN.getWorkspaceManagerAndRoot)(e,void 0,"rush")?.root;if(!t)throw new Error("Could not find rush workspace root from "+e);return t}st.getRushWorkspaceRoot=Xv;function Yf(e){try{let t=Xv(e),r=Gf.default.join(t,"rush.json"),n=kN.default.parse(DN.default.readFileSync(r,"utf-8")),i=Gf.default.dirname(r);return n.projects.map(s=>Gf.default.join(i,s.projectFolder))}catch(t){return(0,Hf.logVerboseWarning)(`Error getting rush workspace package paths for ${e}`,t),[]}}st.getWorkspacePackagePaths=Yf;function Jv(e){try{let t=Yf(e);return(0,Kv.getWorkspacePackageInfo)(t)}catch(t){return(0,Hf.logVerboseWarning)(`Error getting rush workspaces for ${e}`,t),[]}}st.getRushWorkspaces=Jv;st.getWorkspaces=Jv;async function Qv(e){try{let t=Yf(e);return(0,Kv.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,Hf.logVerboseWarning)(`Error getting rush workspaces for ${e}`,t),[]}}st.getRushWorkspacesAsync=Qv;st.getWorkspacesAsync=Qv});var tE=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 LN=Vn(),Aa=Jl();function wa(e){let t=(0,LN.getWorkspaceManagerAndRoot)(e,void 0,"npm")?.root;if(!t)throw new Error("Could not find npm workspace root from "+e);return t}function TN(e){let t=wa(e);return(0,Aa.getPackagePathsFromWorkspaceRoot)(t)}Ct.getWorkspacePackagePaths=TN;function NN(e){let t=wa(e);return(0,Aa.getPackagePathsFromWorkspaceRootAsync)(t)}Ct.getWorkspacePackagePathsAsync=NN;function Zv(e){let t=wa(e);return(0,Aa.getWorkspaceInfoFromWorkspaceRoot)(t)}Ct.getNpmWorkspaces=Zv;Ct.getWorkspaces=Zv;function eE(e){let t=wa(e);return(0,Aa.getWorkspaceInfoFromWorkspaceRootAsync)(t)}Ct.getNpmWorkspacesAsync=eE;Ct.getWorkspacesAsync=eE});var sE=R(xt=>{"use strict";var Vf=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 IN=Vf(q("fs")),$N=Vf(vs()),BN=Vf(q("path")),MN=oa(),rE=is(),Kf=wn(),jN=Qn();function qN(e){let t=(0,jN.getWorkspaceManagerAndRoot)(e,void 0,"lerna")?.root;if(!t)throw new Error("Could not find lerna workspace root from "+e);return t}function Xf(e){try{let t=qN(e),r=BN.default.join(t,"lerna.json"),n=$N.default.parse(IN.default.readFileSync(r,"utf-8"));return(0,MN.getPackagePaths)(t,n.packages)}catch(t){return(0,Kf.logVerboseWarning)(`Error getting lerna workspace package paths for ${e}`,t),[]}}xt.getWorkspacePackagePaths=Xf;function nE(e){try{let t=Xf(e);return(0,rE.getWorkspacePackageInfo)(t)}catch(t){return(0,Kf.logVerboseWarning)(`Error getting lerna workspaces for ${e}`,t),[]}}xt.getLernaWorkspaces=nE;xt.getWorkspaces=nE;async function iE(e){try{let t=Xf(e);return(0,rE.getWorkspacePackageInfoAsync)(t)}catch(t){return(0,Kf.logVerboseWarning)(`Error getting lerna workspaces for ${e}`,t),[]}}xt.getLernaWorkspacesAsync=iE;xt.getWorkspacesAsync=iE});var oE=R(Sa=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});Sa.getWorkspaceUtilities=void 0;var WN=Qn();function GN(e){switch((0,WN.getWorkspaceManagerAndRoot)(e)?.manager){case"yarn":return Ql();case"pnpm":return Nf();case"rush":return zf();case"npm":return tE();case"lerna":return sE()}}Sa.getWorkspaceUtilities=GN});var Vn=R(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.getWorkspaceUtilities=mi.getWorkspaceManagerAndRoot=void 0;var UN=Qn();Object.defineProperty(mi,"getWorkspaceManagerAndRoot",{enumerable:!0,get:function(){return UN.getWorkspaceManagerAndRoot}});var HN=oE();Object.defineProperty(mi,"getWorkspaceUtilities",{enumerable:!0,get:function(){return HN.getWorkspaceUtilities}})});var ba=R(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.getWorkspacesAsync=yi.getWorkspaces=void 0;var Jf=Vn();function YN(e){return(0,Jf.getWorkspaceUtilities)(e)?.getWorkspaces(e)||[]}yi.getWorkspaces=YN;async function zN(e){let t=(0,Jf.getWorkspaceUtilities)(e);if(!t)return[];if(!t.getWorkspacesAsync){let r=(0,Jf.getWorkspaceManagerAndRoot)(e)?.manager;throw new Error(`${e} is using ${r} which has not been converted to async yet`)}return t.getWorkspacesAsync(e)}yi.getWorkspacesAsync=zN});var fE=R(un=>{"use strict";var uE=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 aE=uE(q("fs")),VN=uE(q("path")),KN=sc(),cE=ba();function XN(e){let t={},r=(0,cE.getWorkspaces)(e);if(r.length)for(let n of r)t[n.name]=n.packageJson;else{let n=lE(e);n&&(t[n.name]=n)}return t}un.getPackageInfos=XN;async function JN(e){let t={},r=await(0,cE.getWorkspacesAsync)(e);if(r.length)for(let n of r)t[n.name]=n.packageJson;else{let n=lE(e);n&&(t[n.name]=n)}return t}un.getPackageInfosAsync=JN;function lE(e){let t=VN.default.join(e,"package.json");if(aE.default.existsSync(t))try{let r=JSON.parse(aE.default.readFileSync(t,"utf-8"));return(0,KN.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 QN=wo();function ZN(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,QN.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=ZN});var pE=R(vi=>{"use strict";var e2=vi&&vi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(vi,"__esModule",{value:!0});vi.createPackageGraph=void 0;var t2=xa(),r2=e2(rs());function n2(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);hE(e,h,l,f)}}else{let f=o.bind(void 0,void 0),l=c(e);hE(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,t2.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=n2;function hE(e,t,r,n){let i=new Set,s=Object.keys(e),o=n?(0,r2.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 gE=R(yr=>{"use strict";var i2=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]}),dE=yr&&yr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&i2(t,e,r)};Object.defineProperty(yr,"__esModule",{value:!0});yr.getDependentMap=void 0;dE(pE(),yr);dE(xa(),yr);var s2=xa();function o2(e){return(0,s2.createDependencyMap)(e).dependencies}yr.getDependentMap=o2});var Es=R(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});Pa.nameAtVersion=void 0;function a2(e,t){return`${e}@${t}`}Pa.nameAtVersion=a2});var mE=R(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.parsePnpmLock=void 0;var u2=Es();function c2(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,u2.nameAtVersion)(s,o)]={version:o,dependencies:n.dependencies}}return{object:t,type:"success"}}Oa.parsePnpmLock=c2});var yE=R(Ra=>{"use strict";Object.defineProperty(Ra,"__esModule",{value:!0});Ra.parseNpmLock=void 0;var l2=Es();function f2(e){return{object:Object.fromEntries(Object.entries(e.dependencies??{}).map(([r,n])=>[(0,l2.nameAtVersion)(r,n.version),n])),type:"success"}}Ra.parseNpmLock=f2});var vE=R(_a=>{"use strict";Object.defineProperty(_a,"__esModule",{value:!0});_a.parseBerryLock=void 0;function h2(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=p2(s);t[o]={version:n.version,dependencies:n.dependencies??{}}}}return{object:t,type:"success"}}_a.parseBerryLock=h2;function p2(e){return e.includes("npm:")?e.replace(/npm:/,""):e}});var AE=R((k4,EE)=>{EE.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,zi=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()),zi==="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 At;try{At=yield Ue(ge)}catch(pt){if(pt.code!=="ENOENT")throw pt}if(At){let pt=Te.isSymbolicLink()&&At.isSymbolicLink(),Or=Te.isDirectory()&&At.isDirectory(),rr=Te.isFile()&&At.isFile();if(rr&&Pe.has(ge)){Le(),V.verbose(V.lang("verboseFileSkipArtifact",Oe));return}if(rr&&Te.size===At.size&&(0,(Y||se()).fileDatesEqual)(Te.mtime,At.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 rc=Hn;H.add((y||w()).default.join(Rr,rc))}}}}}if(At&&At.isSymbolicLink()&&(yield(0,(Y||se()).unlink)(ge),At=null),Te.isSymbolicLink()){_t();let pt=yield U(Oe);ct.symlink.push({dest:ge,linkname:pt}),Le()}else if(Te.isDirectory()){At||(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 En;if(qr){if(Jt>=lt.length)break;En=lt[Jt++]}else{if(Jt=lt.next(),Jt.done)break;En=Jt.value}let we=En;H.has(we)&&(V.verbose(V.lang("verboseFilePhantomExtraneous",we)),H.delete(we))}for(var ft=H,Yi=Array.isArray(ft),Qt=0,ft=Yi?ft:ft[Symbol.iterator]();;){var An;if(Yi){if(Qt>=ft.length)break;An=ft[Qt++]}else{if(Qt=ft.next(),Qt.done)break;An=Qt.value}let we=An;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,zi=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,At=Array.isArray(kt),Wr=0,kt=At?kt:kt[Symbol.iterator]();;){var Zt;if(At){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 rc=er;H.add((y||w()).default.join(Rr,rc))}}}}}if(Le.isSymbolicLink()){zi();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:zi,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())zi(),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 En;if(qr){if(Jt>=lt.length)break;En=lt[Jt++]}else{if(Jt=lt.next(),Jt.done)break;En=Jt.value}let we=En;H.has(we)&&(V.verbose(V.lang("verboseFilePhantomExtraneous",we)),H.delete(we))}for(var ft=H,Yi=Array.isArray(ft),Qt=0,ft=Yi?ft:ft[Symbol.iterator]();;){var An;if(Yi){if(Qt>=ft.length)break;An=ft[Qt++]}else{if(Qt=ft.next(),Qt.done)break;An=Qt.value}let we=An;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 tc(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 tc(K);try{return{object:(0,(B||W()).default)(JSON.parse(Hi(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]===tO)return`\r
51
+ `;if(z[H]===rO)return`
52
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}.
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)}})(),A=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=Eo,t.readFile=tc,t.readFileRaw=eO,t.normalizeOS=Dd;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 E(){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||E()).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),Hi=r(122),$t=()=>{};function Eo(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 tc(Z){return Gn(Z,"utf8").then(Dd)}function eO(Z){return Gn(Z,"binary")}function Dd(Z){return Z.replace(/\r\n/g,`
54
+ `)}let tO=13,rO=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,A=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"),E=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(E){if(E&&E.__esModule)return E;var S={};if(E!=null)for(var L in E)Object.prototype.hasOwnProperty.call(E,L)&&(S[L]=E[L]);return S.default=E,S}function D(E){return E&&E.__esModule?E:{default:E}}let A=r(7),O=r(0),k=r(55);function _(E){return(0,(l||h()).normalizePattern)(E).name}function T(E){return E&&Object.keys(E).length?E:void 0}function b(E){return E.resolved||(E.reference&&E.hash?`${E.reference}#${E.hash}`:null)}function g(E){return E.toString().split(" ").sort().join(" ")}function y(E,S){let L=_(E),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(E,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||_(E);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;A(re,"Package is missing a reference"),A(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],A=d?n:m?n[l]:(n[l]||{})[c],O,k,_;d&&(h=l);for(O in h)k=!p&&A&&A[O]!==void 0,!(k&&a(F,O))&&(_=k?A[O]:h[O],F[O]=d&&typeof A[O]!="function"?h[O]:P&&k?s(_,n):C&&A[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 E=x[3];this.options=E?E.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(E=>w[x].find(S=>E.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,E)=>y(x,E)||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 E=x.algorithm;y[E]||(y[E]=[]),y[E].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,E)=>{let S=i.createHash(E).update(b).digest("base64"),L=new l(`${E}-${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=A(g);return new y((x,E)=>{b.pipe(w),b.on("error",E),w.on("error",E);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"),E=p({algorithm:w,digest:x}),S=E.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
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}.
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 ${E}. (${b.length} bytes)`);throw L.code="EINTEGRITY",L.found=E,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=A(Object.assign({},y,{integrity:g}));return new w((E,S)=>{b.pipe(x),b.on("error",S),x.on("error",S);let L;x.on("verified",N=>{L=N}),x.on("end",()=>E(L)),x.on("data",()=>{})})}e.exports.integrityStream=A;function A(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],E=Array.from(new Set((b.algorithms||["sha512"]).concat(w?[w]:[]))),S=E.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)=>`${E[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
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(`
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,E){return w.forEach(S=>S.update(x,E)),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,E){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(E,S,L){return y.minimatch(E,S,m(g,L))};return w.Minimatch=function(E,S){return new y.Minimatch(E,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,E,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 E=0,S=g.length;E<S&&g.charAt(E)==="!";E++)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 A={};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="",E=!!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,E=!0;break;case"?":x+=a,E=!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}$(),E=!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,A);x=x.substr(0,W)+"\\["+U[0]+"\\]",E=E||U[1],B=!1;continue}}E=!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,A),x=x.substr(0,W)+"\\["+U[0],E=E||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,Eo,Gn){return Gn||(Gn="\\"),Eo+Eo+Gn+"|"}),this.debug(`tail=%j
59
+ %s`,ie,ie,j,x);var le=j.type==="*"?c:j.type==="?"?a:"\\"+j.type;E=!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!==A&&(vn="$");var vo=De+Xt+xr+vn+Ue;x=vo}if(x!==""&&E&&(x="(?=.)"+x),be&&(x=se+x),y===A)return[x,E];if(!E)return T(g);var Wn=w.nocase?"i":"";try{var Hi=new RegExp("^"+x+"$",Wn)}catch{return new RegExp("$.")}return Hi._glob=g,Hi._src=x,Hi}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":"",E=g.map(function(S){return S.map(function(L){return L===i?w:typeof L=="string"?b(L):L._src}).join("\\/")}).join("|");E="^(?:"+E+")$",this.negate&&(E="^(?!"+E+").*$");try{this.regexp=new RegExp(E,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(E){return x.match(E)}),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 E,S;for(S=g.length-1;S>=0&&(E=g[S],!E);S--);for(S=0;S<x.length;S++){var L=x[S],N=g;w.matchBase&&L.length===1&&(N=[E]);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 E=0,S=0,L=g.length,N=y.length;E<L&&S<N;E++,S++){this.debug("matchOne loop");var I=y[S],B=g[E];if(this.debug(y,I,B),I===!1)return!1;if(I===i){this.debug("GLOBSTAR",[y,I,B]);var W=E,Y=S+1;if(Y===N){for(this.debug("** at the end");E<L;E++)if(g[E]==="."||g[E]===".."||!x.dot&&g[E].charAt(0)===".")return!1;return!0}for(;W<L;){var se=g[W];if(this.debug(`
60
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]===`
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(E===L&&S===N)return!0;if(E===L)return w;if(S===N){var $=E===L-1&&g[E]==="";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,A=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),E=x.length;E--;)y[x[E]]=w[x[E]];return y}k.hasMagic=function(y,w){var x=T({},w);x.noprocess=!0;var E=new b(y,x),S=E.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 E=this.minimatch.set.length;this.matches=new Array(E),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(E===0)return I();for(var L=!0,N=0;N<E;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,E);function E(){--y===0&&w._finish()}},b.prototype._realpathSet=function(y,w){var x=this.matches[y];if(!x)return w();var E=Object.keys(x),S=this,L=E.length;if(L===0)return w();var N=this.matches[y]=Object.create(null);E.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 E=this._processQueue.slice(0);this._processQueue.length=0;for(var w=0;w<E.length;w++){var S=E[w];this._processing--,this._process(S[0],S[1],S[2],S[3])}}}},b.prototype._process=function(y,w,x,E){if(f(this instanceof b),f(typeof E=="function"),!this.aborted){if(this._processing++,this.paused){this._processQueue.push([y,w,x,E]);return}for(var S=0;typeof y[S]=="string";)S++;var L;switch(S){case y.length:this._processSimple(y.join("/"),w,E);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 E();var W=N[0]===s.GLOBSTAR;W?this._processGlobStar(L,I,B,N,w,x,E):this._processReaddir(L,I,B,N,w,x,E)}},b.prototype._processReaddir=function(y,w,x,E,S,L,N){var I=this;this._readdir(x,L,function(B,W){return I._processReaddir2(y,w,x,E,S,L,W,N)})},b.prototype._processReaddir2=function(y,w,x,E,S,L,N,I){if(!N)return I();for(var B=E[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(E.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()}E.shift();for(var $=0;$<ne;$++){var M=G[$],j;y&&(y!=="/"?M=y+"/"+M:M=y+M),this._process([M].concat(E),S,L,I)}I()},b.prototype._emitMatch=function(y,w){if(!this.aborted&&!A(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 E=this.cache[x];if(E==="DIR"||Array.isArray(E))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,E=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();E.symlinks[y]=B,!B&&I&&!I.isDirectory()?(E.cache[y]="FILE",w()):E._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 E=this.cache[y];if(!E||E==="FILE")return x();if(Array.isArray(E))return x(null,E)}var S=this;n.readdir(y,g(this,y,x))}};function g(y,w,x){return function(E,S){E?y._readdirError(w,E,x):y._readdirEntries(w,S,x)}}b.prototype._readdirEntries=function(y,w,x){if(!this.aborted){if(!this.mark&&!this.stat)for(var E=0;E<w.length;E++){var S=w[E];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 E=this._makeAbs(y);if(this.cache[E]="FILE",E===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,E,S,L,N){var I=this;this._readdir(x,L,function(B,W){I._processGlobStar2(y,w,x,E,S,L,W,N)})},b.prototype._processGlobStar2=function(y,w,x,E,S,L,N,I){if(!N)return I();var B=E.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[$],E);this._process(ne,S,!0,I)}}I()},b.prototype._processSimple=function(y,w,x){var E=this;this._stat(y,function(S,L){E._processSimple2(y,w,S,L,x)})},b.prototype._processSimple2=function(y,w,x,E,S){if(this.matches[w]||(this.matches[w]=Object.create(null)),!E)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),E=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"),!E||S==="DIR")return w(null,S);if(E&&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 E&&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,E,S){if(x&&(x.code==="ENOENT"||x.code==="ENOTDIR"))return this.statCache[w]=!1,S();var L=y.slice(-1)==="/";if(this.statCache[w]=E,w.slice(-1)==="/"&&E&&!E.isDirectory())return S(null,!1,E);var N=!0;return E&&(N=E.isDirectory()?"DIR":"FILE"),this.cache[w]=this.cache[w]||N,L&&N==="FILE"?S():S(null,N,E)}},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,E="lockfile"){return x=(0,(a||c()).default)(x),g(x)?w(x,E):{type:"success",object:y(x,E)}};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 E=!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
62
  `||x[0]==="\r")I++,x[1]===`
63
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]===`
64
+ `;)B+=x[I],I++;yield N(P.comment,B)}else if(x[0]===" ")if(E){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,E=x[0]===`
66
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}:
67
+ `,x=x.slice(I)}yield N(P.eof)}class A{constructor(E,S="lockfile"){this.comments=[],this.tokens=D(E),this.fileLoc=S}onComment(E){let S=E.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 E=this.tokens.next();(0,(s||o()).default)(E,"expected a token");let S=E.done,L=E.value;if(S||!L)throw new Error("No more tokens");return L.type===P.comment?(this.onComment(L),this.next()):this.token=L}unexpected(E="Unexpected token"){throw new SyntaxError(`${E} ${this.token.line}:${this.token.col} in ${this.fileLoc}`)}expect(E){this.token.type===E?this.next():this.unexpected()}eat(E){return this.token.type===E?(this.next(),!0):!1}parse(E=0){let S=(0,(p||d()).default)();for(;;){let $=this.token;if($.type===P.newline){let M=this.next();if(!E)continue;if(M.type!==P.indent)break;if(M.value===E)this.next();else break}else if($.type===P.indent)if($.value===E)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(E+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(E&&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 E=[[],[]],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 E[0].push(I)}for(;S.length;){let I=S.shift();if(I.startsWith(k))break;E[1].push(I)}}else E[0].push(N),E[1].push(N)}return[E[0].join(`
68
+ `),E[1].join(`
69
+ `)]}function g(x){return x.includes(T)&&x.includes(_)&&x.includes(k)}function y(x,E){let S=new A(x,E);return S.next(),S.parse()}function w(x,E){let S=b(x);try{return{type:"merge",object:Object.assign({},y(S[0],E),y(S[1],E))}}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,A,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=A==m,g=!1,y=P.prototype,w=y[l]||y[p]||A&&y[A],x=w||_(A),E=A?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,A)if(L={values:b?x:_(m),keys:O?x:_(d),entries:E},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 A=+this;if(d.hasOwnProperty(A)){var O=d[A];delete d[A],O()}},D=function(A){F.call(A.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(A){c.nextTick(n(F,A,1))}:h&&h.now?v=function(A){h.now(n(F,A,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(A){a.postMessage(A+"","*")},a.addEventListener("message",D,!1)):m in o("script")?v=function(A){s.appendChild(o("script"))[m]=function(){s.removeChild(this),F.call(A)}}:v=function(A){setTimeout(n(F,A,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,A){if(D==="%%")return D;C++;var O=t.formatters[A];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 A=process.cwd();n(D,"cwd")?(C.cwd=i.resolve(D.cwd),C.changedCwd=C.cwd!==A):C.cwd=A,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),A=0,O=C.matches.length;A<O;A++){var k=C.matches[A];if(!k||Object.keys(k).length===0){if(C.nonull){var _=C.minimatch.globSet[A];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 A=0;A<D.length;A++)D[A]=C._mark(D[A]);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),A=C.cache[D],O=F;if(A){var k=A==="DIR"||Array.isArray(A),_=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),A=[];for(let O=0;O<D.length;O++){let k=D[O],_=v[k];if(_==null||A.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
70
  ${d(_,{indent:C+" "})}`+(P.topLevel?`
71
- `:""));else throw new TypeError;E=E.concat(T)}return C+F.join(`
71
+ `:""));else throw new TypeError;A=A.concat(T)}return C+F.join(`
72
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
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(`
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))})):A(k,_,T,b),A=(()=>{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(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(c).split("\\.").join(u)}function h(A){return A.split(s).join("\\").split(o).join("{").split(a).join("}").split(c).join(",").split(u).join(".")}function p(A){if(!A)return[""];var O=[],k=i("{","}",A);if(!k)return A.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(A){return A?(A.substr(0,2)==="{}"&&(A="\\{\\}"+A.substr(2)),D(l(A),!0).map(h)):[]}function m(A){return A}function v(A){return"{"+A+"}"}function P(A){return/^-?0\d/.test(A)}function C(A,O){return A<=O}function F(A,O){return A>=O}function D(A,O){var k=[],_=i("{","}",A);if(!_||/\$$/.test(_.pre))return[A];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(/,.*\}/)?(A=_.pre+"{"+_.body+a+_.post,D(A)):[A];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 E=_.post.length?D(_.post,!1):[""];return E.map(function(ie){return _.pre+w[0]+ie})}var x=_.pre,E=_.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<E.length;j++){var oe=x+S[ne]+E[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,A,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(A=h[F])[0],A[1]):C(h[F]),k===u||k===f)return k}else for(O=P.call(h);!(A=O.next()).done;)if(k=i(O,C,A.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,A=i.process,O=A&&A.versions,k=O&&O.v8||"",_=i[F],T=o(A)=="process",b=function(){},g,y,w,x,E=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?A.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?A.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=E(h(this,_));return re.ok=typeof $=="function"?$:!0,re.fail=typeof M=="function"&&M,re.domain=T?A.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=E=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=E(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=E(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=E(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
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(`
76
76
  `).join(`
77
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
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,A;O();function O(){var y=l.exec(p);C=y[0].length,F=y[0],D=y[0],A="",i&&!P[D]&&(s.lstatSync(D),P[D]=!0)}for(;C<p.length;){f.lastIndex=C;var k=f.exec(p);if(A=F,F+=k[0],D=A+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(A,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,A,O;k();function k(){var y=l.exec(p);F=y[0].length,D=y[0],A=y[0],O="",i&&!C[A]?s.lstat(A,function(w){if(w)return m(w);C[A]=!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],A=O+y[1],F=f.lastIndex,C[A]||d&&d[A]===A?process.nextTick(_):d&&Object.prototype.hasOwnProperty.call(d,A)?g(d[A]):s.lstat(A,T)}function T(y,w){if(y)return m(y);if(!w.isSymbolicLink())return C[A]=!0,d&&(d[A]=A),process.nextTick(_);if(!i){var x=w.dev.toString(32)+":"+w.ino.toString(32);if(P.hasOwnProperty(x))return b(null,P[x],A)}s.stat(A,function(E){if(E)return m(E);s.readlink(A,function(S,L){i||(P[x]=L),b(S,L)})})}function b(y,w,x){if(y)return m(y);var E=n.resolve(O,w);d&&(d[x]=E),g(E)}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(A,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(A,O).found}function D(A,O){if(!A)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(A,O);if(m(this,A,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 A=this;this.matches.forEach(function(O,k){var _=A.matches[k]=Object.create(null);for(var T in O)try{T=A._makeAbs(T);var b=i.realpathSync(T,A.realpathCache);_[b]=!0}catch(g){if(g.syscall==="stat")_[A._makeAbs(T)]=!0;else throw g}})}h.finish(this)},D.prototype._process=function(A,O,k){f(this instanceof D);for(var _=0;typeof A[_]=="string";)_++;var T;switch(_){case A.length:this._processSimple(A.join("/"),O);return;case 0:T=null;break;default:T=A.slice(0,_).join("/");break}var b=A.slice(_),g;T===null?g=".":((l(T)||l(A.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(A,O,k,_,T,b){var g=this._readdir(k,b);if(g){for(var y=_[0],w=!!this.minimatch.negate,x=y._glob,E=this.dot||x.charAt(0)===".",S=[],L=0;L<g.length;L++){var N=g[L];if(N.charAt(0)!=="."||E){var I;w&&!A?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];A&&(A.slice(-1)!=="/"?N=A+"/"+N:N=A+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;A?W=[A,N]:W=[N],this._process(W.concat(_),T,b)}}}},D.prototype._emitMatch=function(A,O){if(!C(this,O)){var k=this._makeAbs(O);if(this.mark&&(O=this._mark(O)),this.absolute&&(O=k),!this.matches[A][O]){if(this.nodir){var _=this.cache[k];if(_==="DIR"||Array.isArray(_))return}this.matches[A][O]=!0,this.stat&&this._stat(O)}}},D.prototype._readdirInGlobStar=function(A){if(this.follow)return this._readdir(A,!1);var O,k,_;try{k=n.lstatSync(A)}catch(b){if(b.code==="ENOENT")return null}var T=k&&k.isSymbolicLink();return this.symlinks[A]=T,!T&&k&&!k.isDirectory()?this.cache[A]="FILE":O=this._readdir(A,!1),O},D.prototype._readdir=function(A,O){var k;if(O&&!v(this.symlinks,A))return this._readdirInGlobStar(A);if(v(this.cache,A)){var _=this.cache[A];if(!_||_==="FILE")return null;if(Array.isArray(_))return _}try{return this._readdirEntries(A,n.readdirSync(A))}catch(T){return this._readdirError(A,T),null}},D.prototype._readdirEntries=function(A,O){if(!this.mark&&!this.stat)for(var k=0;k<O.length;k++){var _=O[k];A==="/"?_=A+_:_=A+"/"+_,this.cache[_]=!0}return this.cache[A]=O,O},D.prototype._readdirError=function(A,O){switch(O.code){case"ENOTSUP":case"ENOTDIR":var k=this._makeAbs(A);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(A)]=!1;break;default:if(this.cache[this._makeAbs(A)]=!1,this.strict)throw O;this.silent||console.error("glob error",O);break}},D.prototype._processGlobStar=function(A,O,k,_,T,b){var g=this._readdir(k,b);if(g){var y=_.slice(1),w=A?[A]:[],x=w.concat(y);this._process(x,T,!1);var E=g.length,S=this.symlinks[k];if(!(S&&b))for(var L=0;L<E;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(A,O){var k=this._stat(A);if(this.matches[O]||(this.matches[O]=Object.create(null)),!!k){if(A&&l(A)&&!this.nomount){var _=/[\/\\]$/.test(A);A.charAt(0)==="/"?A=u.join(this.root,A):(A=u.resolve(this.root,A),_&&(A+="/"))}process.platform==="win32"&&(A=A.replace(/\\/g,"/")),this._emitMatch(O,A)}},D.prototype._stat=function(A){var O=this._makeAbs(A),k=A.slice(-1)==="/";if(A.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(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(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(A){var O=["unlink","chmod","stat","lstat","rmdir","readdir"];O.forEach(function(k){A[k]=A[k]||s[k],k=k+"Sync",A[k]=A[k]||s[k]}),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||c}function h(A,O,k){typeof O=="function"&&(k=O,O={}),n(A,"rimraf: missing path"),n.equal(typeof A,"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(A))return y(null,[A]);O.lstat(A,function(w,x){if(!w)return y(null,[A]);o(A,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(E){p(E,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(E,O,S)},N)}if(L.code==="EMFILE"&&u<O.emfileWait)return setTimeout(function(){p(E,O,S)},u++);L.code==="ENOENT"&&(L=null)}u=0,g(L)})})}}function p(A,O,k){n(A),n(O),n(typeof k=="function"),O.lstat(A,function(_,T){if(_&&_.code==="ENOENT")return k(null);if(_&&_.code==="EPERM"&&f&&d(A,O,_,k),T&&T.isDirectory())return v(A,O,_,k);O.unlink(A,function(b){if(b){if(b.code==="ENOENT")return k(null);if(b.code==="EPERM")return f?d(A,O,b,k):v(A,O,b,k);if(b.code==="EISDIR")return v(A,O,b,k)}return k(b)})})}function d(A,O,k,_){n(A),n(O),n(typeof _=="function"),k&&n(k instanceof Error),O.chmod(A,a,function(T){T?_(T.code==="ENOENT"?null:k):O.stat(A,function(b,g){b?_(b.code==="ENOENT"?null:k):g.isDirectory()?v(A,O,k,_):O.unlink(A,_)})})}function m(A,O,k){n(A),n(O),k&&n(k instanceof Error);try{O.chmodSync(A,a)}catch(T){if(T.code==="ENOENT")return;throw k}try{var _=O.statSync(A)}catch(T){if(T.code==="ENOENT")return;throw k}_.isDirectory()?F(A,O,k):O.unlinkSync(A)}function v(A,O,k,_){n(A),n(O),k&&n(k instanceof Error),n(typeof _=="function"),O.rmdir(A,function(T){T&&(T.code==="ENOTEMPTY"||T.code==="EEXIST"||T.code==="EPERM")?P(A,O,_):T&&T.code==="ENOTDIR"?_(k):_(T)})}function P(A,O,k){n(A),n(O),n(typeof k=="function"),O.readdir(A,function(_,T){if(_)return k(_);var b=T.length;if(b===0)return O.rmdir(A,k);var g;T.forEach(function(y){h(i.join(A,y),O,function(w){if(!g){if(w)return k(g=w);--b===0&&O.rmdir(A,k)}})})})}function C(A,O){O=O||{},l(O),n(A,"rimraf: missing path"),n.equal(typeof A,"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(A))k=[A];else try{O.lstatSync(A),k=[A]}catch{k=o.sync(A,O.glob)}if(k.length)for(var _=0;_<k.length;_++){var A=k[_];try{var T=O.lstatSync(A)}catch(g){if(g.code==="ENOENT")return;g.code==="EPERM"&&f&&m(A,O,g)}try{T&&T.isDirectory()?F(A,O,null):O.unlinkSync(A)}catch(g){if(g.code==="ENOENT")return;if(g.code==="EPERM")return f?m(A,O,g):F(A,O,g);if(g.code!=="EISDIR")throw g;F(A,O,g)}}}function F(A,O,k){n(A),n(O),k&&n(k instanceof Error);try{O.rmdirSync(A)}catch(_){if(_.code==="ENOENT")return;if(_.code==="ENOTDIR")throw k;(_.code==="ENOTEMPTY"||_.code==="EEXIST"||_.code==="EPERM")&&D(A,O)}}function D(A,O){n(A),n(O),O.readdirSync(A).forEach(function(g){C(i.join(A,g),O)});var k=f?100:1,_=0;do{var T=!0;try{var b=O.rmdirSync(A,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 wE=R(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.queryLockFile=void 0;var d2=Es();function g2(e,t,r){let n=(0,d2.nameAtVersion)(e,t);return r.object[n]}ka.queryLockFile=g2});var bE=R(SE=>{"use strict";Object.defineProperty(SE,"__esModule",{value:!0})});var OE=R(qe=>{"use strict";var xE=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]}),m2=qe&&qe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),y2=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)&&xE(t,e,r);return m2(t,e),t},v2=qe&&qe.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&xE(t,e,r)},PE=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 Qf=PE(q("fs")),E2=PE(q("path")),A2=Es();Object.defineProperty(qe,"nameAtVersion",{enumerable:!0,get:function(){return A2.nameAtVersion}});var Zf=Ki(),w2=mE(),S2=yE(),CE=Ff(),b2=vE(),or={};async function C2(e){let t=(0,Zf.searchUp)(["yarn.lock","common/config/rush/yarn.lock"],e);if(t){if(or[t])return or[t];let i=Qf.default.readFileSync(t,"utf-8"),s=i.includes("__metadata")||Qf.default.existsSync(E2.default.resolve(i.replace("yarn.lock",".yarnrc.yml"))),o={type:"success",object:{}};if(s){let a=(0,CE.readYaml)(t);o=(0,b2.parseBerryLock)(a)}else{let a=(await Promise.resolve().then(()=>y2(AE()))).parse;o=a(i)}return or[t]=o,o}let r=(0,Zf.searchUp)(["pnpm-lock.yaml","common/config/rush/pnpm-lock.yaml"],e);if(r){if(or[r])return or[r];let i=(0,CE.readYaml)(r),s=(0,w2.parsePnpmLock)(i);return or[r]=s,or[r]}let n=(0,Zf.searchUp)("package-lock.json",e);if(n){if(or[n])return or[n];let i;try{i=Qf.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,S2.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=C2;var x2=wE();Object.defineProperty(qe,"queryLockFile",{enumerable:!0,get:function(){return x2.queryLockFile}});v2(bE(),qe)});var _E=R(Ei=>{"use strict";var P2=Ei&&Ei.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ei,"__esModule",{value:!0});Ei.getScopedPackages=void 0;var RE=P2(rs());function O2(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,RE.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=R2(r),a=(0,RE.default)(Object.keys(o),s,{nocase:!0});for(let c of a)for(let u of o[c])n.add(u)}return[...n]}Ei.getScopedPackages=O2;function R2(e){let t={};for(let r of e){let n=r.replace(/^@[^/]+\//,"");t[n]=t[n]||[],t[n].push(r)}return t}});var DE=R(kE=>{"use strict";Object.defineProperty(kE,"__esModule",{value:!0})});var LE=R(FE=>{"use strict";Object.defineProperty(FE,"__esModule",{value:!0})});var NE=R(TE=>{"use strict";Object.defineProperty(TE,"__esModule",{value:!0})});var IE=R(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});Da.findWorkspacePath=void 0;function _2(e,t){return e.find(({name:r})=>r===t)?.path}Da.findWorkspacePath=_2});var th=R(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.getWorkspacePackagePathsAsync=Ai.getWorkspacePackagePaths=void 0;var eh=Vn();function k2(e){return(0,eh.getWorkspaceUtilities)(e)?.getWorkspacePackagePaths(e)||[]}Ai.getWorkspacePackagePaths=k2;async function D2(e){let t=(0,eh.getWorkspaceUtilities)(e);if(!t)return[];if(!t.getWorkspacePackagePathsAsync){let r=(0,eh.getWorkspaceManagerAndRoot)(e)?.manager;throw new Error(`${e} is using ${r} which has not been converted to async yet`)}return t.getWorkspacePackagePathsAsync(e)}Ai.getWorkspacePackagePathsAsync=D2});var rh=R(wi=>{"use strict";var $E=wi&&wi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(wi,"__esModule",{value:!0});wi.getPackagesByFiles=void 0;var F2=$E(rs()),L2=$E(q("path")),T2=ba();function N2(e,t,r=[],n=!1){let i=(0,T2.getWorkspaces)(e),s=new Set((0,F2.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(L2.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=N2});var ME=R(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.getChangedPackages=Si.getChangedPackagesBetweenRefs=void 0;var Tr=Ro(),BE=rh();function I2(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,BE.getPackagesByFiles)(e,i,n,!0)}Si.getChangedPackagesBetweenRefs=I2;function $2(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,BE.getPackagesByFiles)(e,i,r,!0)}Si.getChangedPackages=$2});var jE=R(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.listOfWorkspacePackageNames=void 0;function B2(e){return e.map(({name:t})=>t)}Fa.listOfWorkspacePackageNames=B2});var UE=R(vr=>{"use strict";var M2=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 qE=M2(q("path")),WE=th(),GE=zn(),kn=new Map;function j2(e){if((0,GE.isCachingEnabled)()&&kn.has(e))return kn.get(e);let t=(0,WE.getWorkspacePackagePaths)(e).map(r=>qE.default.join(r,"package.json"));return kn.set(e,t),t}vr.getAllPackageJsonFiles=j2;function q2(){kn.clear()}vr._resetPackageJsonFilesCache=q2;async function W2(e){if((0,GE.isCachingEnabled)()&&kn.has(e))return kn.get(e);let t=(await(0,WE.getWorkspacePackagePathsAsync)(e)).map(r=>qE.default.join(r,"package.json"));return kn.set(e,t),t}vr.getAllPackageJsonFilesAsync=W2});var VE=R(de=>{"use strict";var G2=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)&&G2(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(Id(),de);He(fE(),de);He(Ro(),de);He(gE(),de);var U2=zn();Object.defineProperty(de,"setCachingEnabled",{enumerable:!0,get:function(){return U2.setCachingEnabled}});He(OE(),de);He(Ki(),de);He(_E(),de);He(DE(),de);He(LE(),de);He(NE(),de);He(IE(),de);He(ba(),de);He(th(),de);He(oc(),de);var HE=Nf();Object.defineProperty(de,"getPnpmWorkspaceRoot",{enumerable:!0,get:function(){return HE.getPnpmWorkspaceRoot}});Object.defineProperty(de,"getPnpmWorkspaces",{enumerable:!0,get:function(){return HE.getPnpmWorkspaces}});var YE=zf();Object.defineProperty(de,"getRushWorkspaceRoot",{enumerable:!0,get:function(){return YE.getRushWorkspaceRoot}});Object.defineProperty(de,"getRushWorkspaces",{enumerable:!0,get:function(){return YE.getRushWorkspaces}});var zE=Ql();Object.defineProperty(de,"getYarnWorkspaceRoot",{enumerable:!0,get:function(){return zE.getYarnWorkspaceRoot}});Object.defineProperty(de,"getYarnWorkspaces",{enumerable:!0,get:function(){return zE.getYarnWorkspaces}});He(ME(),de);He(rh(),de);He(jE(),de);He(UE(),de)});var uw=R(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.walkUp=void 0;var aw=q("path"),yB=function*(e){for(e=(0,aw.resolve)(e);e;){yield e;let t=(0,aw.dirname)(e);if(t===e)break;e=t}};qa.walkUp=yB});var Sh=R((S7,hw)=>{var{hasOwnProperty:Ah}=Object.prototype,wh=(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
81
81
  `:`
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(`
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=lw(u,".").join("\\."),l=(t.section?t.section+".":"")+f,h=wh(e[u],{...t,section:l});a.length&&h.length&&(a+=r),a+=h}return a};function lw(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 cw=(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&&(Ah.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(!Ah.call(r,u)||typeof r[u]!="object"||Array.isArray(r[u]))continue;let f=lw(u,".");n=r;let l=f.pop(),h=l.replace(/\\\./g,".");for(let p of f)p!=="__proto__"&&((!Ah.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},fw=e=>e.startsWith('"')&&e.endsWith('"')||e.startsWith("'")&&e.endsWith("'"),Ir=e=>typeof e!="string"||e.match(/[=\r\n]/)||e.match(/^\[/)||e.length>1&&fw(e)||e!==e.trim()?JSON.stringify(e):e.split(";").join("\\;").split("#").join("\\#"),Wa=e=>{if(e=(e||"").trim(),fw(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};hw.exports={parse:cw,decode:cw,stringify:wh,encode:wh,safe:Ir,unsafe:Wa}});var dw=R((b7,pw)=>{pw.exports=vB;function vB(...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(EB);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 EB(e,t){return e===t?0:e>t?1:-1}});var bh=R((C7,gw)=>{gw.exports=process.env.DEBUG_NOPT||process.env.NOPT_DEBUG?(...e)=>console.error(...e):()=>{}});var xh=R((x7,Ew)=>{var mw=q("url"),Ch=q("path"),yw=q("stream").Stream,AB=q("os"),vw=bh();function wB(e,t,r){e[t]=String(r)}function SB(e,t,r){if(r===!0)return!1;if(r===null)return!0;r=String(r);let i=process.platform==="win32"?/^~(\/|\\)/:/^~\//,s=AB.homedir();return s&&r.match(i)?e[t]=Ch.resolve(s,r.slice(2)):e[t]=Ch.resolve(r),!0}function bB(e,t,r){if(vw("validate Number %j %j %j",t,r,isNaN(r)),isNaN(r))return!1;e[t]=+r}function CB(e,t,r){let n=Date.parse(r);if(vw("validate Date %j %j %j",t,r,n),isNaN(n))return!1;e[t]=new Date(r)}function xB(e,t,r){typeof r=="string"?isNaN(r)?r==="null"||r==="false"?r=!1:r=!0:r=!!+r:r=!!r,e[t]=r}function PB(e,t,r){if(r=mw.parse(String(r)),!r.host)return!1;e[t]=r.href}function OB(e,t,r){if(!(r instanceof yw))return!1;e[t]=r}Ew.exports={String:{type:String,validate:wB},Boolean:{type:Boolean,validate:xB},url:{type:mw,validate:PB},Number:{type:Number,validate:bB},path:{type:Ch,validate:SB},Stream:{type:yw,validate:OB},Date:{type:Date,validate:CB},Array:{type:Array}}});var Ow=R((P7,Pw)=>{var Ga=dw(),xe=bh(),RB=xh(),ww=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Sw=(e,{types:t,dynamicTypes:r})=>{let n=ww(t,e),i=t[e];if(!n&&typeof r=="function"){let s=r(e);s!==void 0&&(i=s,n=!0)}return[n,i]},ki=(e,t)=>t&&e===t,Ar=(e,t)=>t&&e.indexOf(t)!==-1,_B=(e,t)=>t&&!Ar(e,t);function kB(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 Cw(e,u,f.remain,{typeDefs:n,types:t,dynamicTypes:c,shorthands:r,unknownHandler:s,abbrevHandler:o}),bw(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 bw(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]=Sw(p,{types:t,dynamicTypes:n}),C=P;m||(d=[d]),C||(C=s),ki(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)||Ar(C,u))||F==="false"&&(~C.indexOf(!1)||Ar(C,u))?(F=JSON.parse(F),xe("jsonable %j",F)):Ar(C,a)&&!isNaN(F)?(xe("convert to number",F),F=+F):Ar(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)||Ar(C,u))&&(F=null);let D={};return D[p]=F,xe("prevalidated val",D,F,P),Ph(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&&_B(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 Ph(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(!ki(n[c],s)&&Ph(e,t,r,n[c],{typeDefs:i}))return!0;return delete e[t],!1}if(ki(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 Cw(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=xw(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[A,O]=Sw(v,{types:n,dynamicTypes:o}),k=Array.isArray(O);k&&O.length===1&&(k=!1,O=O[0]);let _=ki(O,l)||k&&Ar(O,l);!A&&ww(t,v)&&(Array.isArray(t[v])||(t[v]=[t[v]]),_=!0);let T,b=e[m+1],g=typeof D=="boolean"||ki(O,h)||k&&Ar(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)&&Ar(O,f)?(T=+b,m++):!b.match(/^-[^-]/)&&Ar(O,u)&&(T=b,m++)),_?(t[v]=t[v]||[]).push(T):t[v]=T;continue}ki(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 Aw=Symbol("singles"),DB=(e,t)=>{let r=t[Aw];r||(r=Object.keys(t).filter(i=>i.length===1).reduce((i,s)=>(i[s]=!0,i),{}),t[Aw]=r,xe("shorthand singles",r));let n=e.split("").filter(i=>r[i]);return n.join("")===e?n:null};function xw(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=DB(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])}Pw.exports={nopt:kB,clean:bw,parse:Cw,validate:Ph,resolveShort:xw,typeDefs:RB}});var Rh=R((Nt,Rw)=>{var Oh=Ow(),FB=xh();Rw.exports=Nt=LB;Nt.clean=TB;Nt.typeDefs=FB;Nt.lib=Oh;function LB(e,t,r=process.argv,n=2){return Oh.nopt(r.slice(n),{types:e||{},shorthands:t||{},typeDefs:Nt.typeDefs,invalidHandler:Nt.invalidHandler,unknownHandler:Nt.unknownHandler,abbrevHandler:Nt.abbrevHandler})}function TB(e,t,r=Nt.typeDefs){return Oh.clean(e,{types:t||{},typeDefs:r,invalidHandler:Nt.invalidHandler,unknownHandler:Nt.unknownHandler,abbrevHandler:Nt.abbrevHandler})}});var xs=R((O7,_w)=>{var NB=Symbol("proc-log.meta");_w.exports={META:NB,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 _h=R((R7,Dw)=>{var kw=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}},IB=(e,t,r)=>{try{return e[t]=kw(r),!0}catch{return!1}};Dw.exports={parse:kw,validate:IB}});var Ps=R((_7,Fw)=>{var $B=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};Fw.exports=$B});var Os=R((k7,Lw)=>{var BB="2.0.0",MB=Number.MAX_SAFE_INTEGER||9007199254740991,jB=16,qB=250,WB=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Lw.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:jB,MAX_SAFE_BUILD_LENGTH:qB,MAX_SAFE_INTEGER:MB,RELEASE_TYPES:WB,SEMVER_SPEC_VERSION:BB,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Di=R((wr,Tw)=>{var{MAX_SAFE_COMPONENT_LENGTH:kh,MAX_SAFE_BUILD_LENGTH:GB,MAX_LENGTH:UB}=Os(),HB=Ps();wr=Tw.exports={};var YB=wr.re=[],zB=wr.safeRe=[],X=wr.src=[],VB=wr.safeSrc=[],J=wr.t={},KB=0,Dh="[a-zA-Z0-9-]",XB=[["\\s",1],["\\d",UB],[Dh,GB]],JB=e=>{for(let[t,r]of XB)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e},ce=(e,t,r)=>{let n=JB(t),i=KB++;HB(e,i,t),J[e]=i,X[i]=t,VB[i]=n,YB[i]=new RegExp(t,r?"g":void 0),zB[i]=new RegExp(n,r?"g":void 0)};ce("NUMERICIDENTIFIER","0|[1-9]\\d*");ce("NUMERICIDENTIFIERLOOSE","\\d+");ce("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Dh}*`);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",`${Dh}+`);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,${kh}})(?:\\.(\\d{1,${kh}}))?(?:\\.(\\d{1,${kh}}))?`);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((D7,Nw)=>{var QB=Object.freeze({loose:!0}),ZB=Object.freeze({}),eM=e=>e?typeof e!="object"?QB:e:ZB;Nw.exports=eM});var Fh=R((F7,Bw)=>{var Iw=/^[0-9]+$/,$w=(e,t)=>{let r=Iw.test(e),n=Iw.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:e<t?-1:1},tM=(e,t)=>$w(t,e);Bw.exports={compareIdentifiers:$w,rcompareIdentifiers:tM}});var at=R((L7,Ww)=>{var Ha=Ps(),{MAX_LENGTH:Mw,MAX_SAFE_INTEGER:Ya}=Os(),{safeRe:jw,safeSrc:qw,t:za}=Di(),rM=Ua(),{compareIdentifiers:Fi}=Fh(),Lh=class e{constructor(t,r){if(r=rM(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>Mw)throw new TypeError(`version is longer than ${Mw} characters`);Ha("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;let n=t.trim().match(r.loose?jw[za.LOOSE]:jw[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)),Fi(this.major,t.major)||Fi(this.minor,t.minor)||Fi(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 Fi(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 Fi(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?qw[za.PRERELEASELOOSE]:qw[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]),Fi(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}};Ww.exports=Lh});var Ln=R((T7,Uw)=>{var Gw=at(),nM=(e,t,r=!1)=>{if(e instanceof Gw)return e;try{return new Gw(e,t)}catch(n){if(!r)return null;throw n}};Uw.exports=nM});var Va=R((N7,Hw)=>{var iM=Ln(),sM=(e,t)=>{let r=iM(e,t);return r?r.version:null};Hw.exports=sM});var Ka=R((I7,Ih)=>{var hn=Rh(),{validate:oM}=_h(),Th=class{},Nh=class{},aM=Va(),uM=(e,t,r)=>{let n=aM(r);if(!n)return!1;e[t]=n},cM=hn.typeDefs.path.validate,lM=(e,t,r)=>typeof r!="string"?!1:cM(e,t,r);Ih.exports={...hn.typeDefs,semver:{type:Nh,validate:uM,description:"full valid SemVer string"},Umask:{type:Th,validate:oM,description:"octal number in range 0o000..0o777 (0..511)"},url:{...hn.typeDefs.url,description:'full url with "http://"'},path:{...hn.typeDefs.path,validate:lM,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=Ih.exports});var Vw=R(($7,zw)=>{var{URL:Yw}=q("node:url");zw.exports=e=>{let t=new Yw(e),r=`${t.protocol}//${t.host}${t.pathname}`,n=new Yw(".",r);return`//${n.host}${n.pathname}`}});var $h=R((B7,Kw)=>{var fM=/(?<!\\)(\\*)\$\{([^${}]+)\}/g;Kw.exports=(e,t)=>e.replace(fM,(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 Qw=R((M7,Jw)=>{var Li=Ka(),hM=$h(),{resolve:Xw}=q("node:path"),{parse:pM}=_h(),Bh=(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(Li.path.type),f=c.has(Li.Boolean.type),l=u||c.has(Li.String.type),h=c.has(Li.Umask.type),p=c.has(Li.Number.type),d=!n&&c.has(Array),m=c.has(Li.Date.type);if(Array.isArray(e))return d?e.map(v=>Bh(v,t,r,!0)):e;if(e=e.trim(),d)return Bh(e.split(`
83
83
 
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(`
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=hM(e,a),m)return new Date(e);if(u&&((i==="win32"?/^~(\/|\\)/:/^~\//).test(e)&&o?e=Xw(o,e.slice(2)):e=Xw(e)),h)try{return pM(e)}catch{return e}return p&&!isNaN(e)&&(e=+e),e};Jw.exports=Bh});var rS=R((j7,tS)=>{var dM=(e,t)=>!/^[/@_]/.test(e)&&typeof Mh(t)=="string"&&`npm_config_${e.replace(/-/g,"_").toLowerCase()}`,Mh=e=>Array.isArray(e)?e.map(t=>Mh(t)).join(`
85
85
 
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(`
86
+ `):e==null||e===!1?"":typeof e=="object"?null:String(e),Zw=(e,t)=>!Array.isArray(t)||!Array.isArray(e)?e===t:gM(e,t),gM=(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},eS=(e,t,r)=>{let n=Mh(r),i=dM(t,n);i&&n!==null&&(e[i]=n)},mM=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||(Zw(r[c],i[c])?Zw(s[c],i[c])||eS(t,c,i[c]):a.has(c)&&!o.has(c)||eS(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};tS.exports=mM});var iS=R((q7,nS)=>{"use strict";var jh=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}};nS.exports={ErrInvalidAuth:jh}});var aS=R((W7,oS)=>{var yM=Ka(),sS=e=>{if(!e||typeof e!="function"&&typeof e!="object")return e;if(Array.isArray(e))return e.map(t=>sS(t));for(let{type:t,description:r}of Object.values(yM))if(t===e)return r||t;return e};oS.exports=e=>[].concat(sS(e)).filter(t=>t!==void 0)});var Wh=R((G7,fS)=>{"use strict";var vM=Symbol.for("indent"),EM=Symbol.for("newline"),AM=`
87
+ `,wM=" ",SM=/^\uFEFF/,bM=/^\s*[{[]((?:\r?\n)+)([\s\t]*)/,CM=/^(?:\{\}|\[\])((?:\r?\n)+)?$/,uS=/^Unexpected token '?(.)'?(,)? /i,xM=e=>{let t=e.charCodeAt(0).toString(16).toUpperCase();return`0x${t.length%2?"0":""}${t}`},cS=e=>String(e).replace(SM,""),qh=(e,t,r=0)=>({message:`${e} while parsing ${t}`,position:r}),PM=(e,t,r=20)=>{let n=e.message;if(!t)return qh(n,"empty string");let i=n.match(uS),s=n.match(/ position\s+(\d+)/i);i&&(n=n.replace(uS,`Unexpected token ${JSON.stringify(i[1])} (${xM(i[1])})$2 `));let o;if(s?o=+s[1]:n.match(/^Unexpected end of JSON.*/i)&&(o=t.length-1),o==null)return qh(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 qh(n,`${t===u?"":"near "}${JSON.stringify(u)}`,o)},Xa=class extends SyntaxError{constructor(t,r,n,i){let s=PM(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}},lS=(e,t)=>{let r=JSON.parse(e,t);if(r&&typeof r=="object"){let n=e.match(CM)||e.match(bM)||[null,"",""];r[EM]=n[1]??AM,r[vM]=n[2]??wM}return r},Ja=(e,t,r)=>{let n=cS(e);try{return lS(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)}};fS.exports=Ja;Ja.JSONParseError=Xa;Ja.noExceptions=(e,t)=>{try{return lS(cS(e),t)}catch{}}});var dS=R((U7,pS)=>{var Gh=new Set(["dependencies","optionalDependencies","devDependencies","peerDependencies"]),OM=e=>{for(let t of Gh)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},hS=({content:e,originalContent:t})=>{let r=OM({...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 Gh)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};hS.knownKeys=Gh;pS.exports=hS});var mS=R((H7,gS)=>{var RM=({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}}};gS.exports=RM});var vS=R((Y7,yS)=>{var _M=({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]}};yS.exports=_M});var Uh=R((z7,ES)=>{var kM=Ln(),DM=(e,t)=>{let r=kM(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};ES.exports=DM});var eu=R(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.LRUCache=void 0;var Ti=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,wS=new Set,Hh=typeof process=="object"&&process?process:{},SS=(e,t,r,n)=>{typeof Hh.emitWarning=="function"?Hh.emitWarning(e,t,r,n):console.error(`[${r}] ${t}: ${e}`)},Qa=globalThis.AbortController,AS=globalThis.AbortSignal;if(typeof Qa>"u"){AS=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(n,i){this._onabort.push(i)}},Qa=class{constructor(){t()}signal=new AS;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=Hh.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",t=()=>{e&&(e=!1,SS("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 FM=e=>!wS.has(e),X7=Symbol("type"),pn=e=>e&&e===Math.floor(e)&&e>0&&isFinite(e),bS=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?Ni:null:null,Ni=class extends Array{constructor(t){super(t),this.fill(0)}},Yh=class e{heap;length;static#e=!1;static create(t){let r=bS(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]}},zh=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;#A;#w;#S;#g;static unsafeExposeInternals(t){return{starts:t.#x,ttls:t.#A,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.#E(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:A,ignoreFetchAbort:O}=t;if(r!==0&&!pn(r))throw new TypeError("max option must be a nonnegative integer");let k=r?bS(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=Yh.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=!!A,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";FM(_)&&(wS.add(_),SS("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 Ni(this.#e),r=new Ni(this.#e);this.#A=t,this.#x=r,this.#F=(s,o,a=Ti.now())=>{if(r[s]=o!==0?a:0,t[s]=o,o!==0&&this.ttlAutopurge){let c=setTimeout(()=>{this.#E(s)&&this.#D(this.#u[s],"expire")},o+1);c.unref&&c.unref()}},this.#P=s=>{r[s]=t[s]!==0?Ti.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=Ti.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.#E=s=>{let o=r[s],a=t[s];return!!a&&!!o&&(n||i())-o>a}}#P=()=>{};#i=()=>{};#F=()=>{};#E=()=>!1;#k(){let t=new Ni(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.#E(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.#E(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.#E(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.#A&&this.#x){let o=this.#A[r],a=this.#x[r];if(o&&a){let c=o-(Ti.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.#A&&this.#x){o.ttl=this.#A[r];let a=Ti.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=Ti.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.#A&&this.#_(),this.#A&&(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.#E(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.#E(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 A=this.#B(t,D,F,m);return A.__returned=A}else{let A=this.#s[D];if(this.#f(A)){let b=n&&A.__staleWhileFetching!==void 0;return P&&(P.fetch="inflight",b&&(P.returnedStale=!0)),b?A.__staleWhileFetching:A.__returned=A}let O=this.#E(D);if(!v&&!O)return P&&(P.fetch="hit"),this.#j(D),i&&this.#P(D),P&&this.#i(P,D),A;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.#E(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.#A&&this.#x&&(this.#A.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=zh});var PS=R((Q7,xS)=>{"use strict";var Ee=(...e)=>e.every(t=>t)?e.join(""):"",je=e=>e?encodeURIComponent(e):"",CS=e=>e.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),LM={sshtemplate:({domain:e,user:t,project:r,committish:n})=>`git@${e}:${t}/${r}.git${Ee("#",n)}`,sshurltemplate:({domain:e,user:t,project:r,committish:n})=>`git+ssh://git@${e}/${t}/${r}.git${Ee("#",n)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i,path:s})=>`https://${e}/${t}/${r}${Ee("/",i,"/",je(n||"HEAD"),"/",s)}`,browsetemplate:({domain:e,user:t,project:r,committish:n,treepath:i})=>`https://${e}/${t}/${r}${Ee("/",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}${Ee("#",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}${Ee("#",a(o||""))}`,docstemplate:({domain:e,user:t,project:r,treepath:n,committish:i})=>`https://${e}/${t}/${r}${Ee("/",n,"/",je(i))}#readme`,httpstemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git+https://${Ee(e,"@")}${t}/${r}/${n}.git${Ee("#",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}${Ee("#",n)}`,pathtemplate:({user:e,project:t,committish:r})=>`${e}/${t}${Ee("#",r)}`,bugstemplate:({domain:e,user:t,project:r})=>`https://${e}/${t}/${r}/issues`,hashformat:CS},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://${Ee(e,"@")}raw.githubusercontent.com/${t}/${r}/${je(n||"HEAD")}/${i}`,gittemplate:({auth:e,domain:t,user:r,project:n,committish:i})=>`git://${Ee(e,"@")}${t}/${r}/${n}.git${Ee("#",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}${Ee("/",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://${Ee(e,"@")}${t}/${r}/${n}.git${Ee("#",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${Ee("#",r)}`,sshurltemplate:({domain:e,project:t,committish:r})=>`git+ssh://git@${e}/${t}.git${Ee("#",r)}`,edittemplate:({domain:e,user:t,project:r,committish:n,editpath:i})=>`https://${e}/${t}/${r}${Ee("/",je(n))}/${i}`,browsetemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${Ee("/",je(r))}`,browsetreetemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${Ee("/",je(r))}${Ee("#",i(n))}`,browseblobtemplate:({domain:e,project:t,committish:r,path:n,hashformat:i})=>`https://${e}/${t}${Ee("/",je(r))}${Ee("#",i(n))}`,docstemplate:({domain:e,project:t,committish:r})=>`https://${e}/${t}${Ee("/",je(r))}`,httpstemplate:({domain:e,project:t,committish:r})=>`git+https://${e}/${t}.git${Ee("#",r)}`,filetemplate:({user:e,project:t,committish:r,path:n})=>`https://gist.githubusercontent.com/${e}/${t}/raw${Ee("/",je(r))}/${n}`,shortcuttemplate:({type:e,project:t,committish:r})=>`${e}:${t}${Ee("#",r)}`,pathtemplate:({project:e,committish:t})=>`${e}${Ee("#",t)}`,bugstemplate:({domain:e,project:t})=>`https://${e}/${t}`,gittemplate:({domain:e,project:t,committish:r})=>`git://${e}/${t}.git${Ee("#",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-"+CS(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${Ee("#",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({},LM,t);xS.exports=dn});var Kh=R((Z7,RS)=>{var TM=q("url"),Vh=(e,t,r)=>{let n=e.indexOf(r);return e.lastIndexOf(t,n>-1?n:1/0)},OS=e=>{try{return new TM.URL(e)}catch{}},NM=(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)}`},IM=e=>{let t=Vh(e,"@","#"),r=Vh(e,":","#");return r>t&&(e=e.slice(0,r)+"/"+e.slice(r+1)),Vh(e,":","#")===-1&&e.indexOf("//")===-1&&(e=`git+ssh://${e}`),e};RS.exports=(e,t)=>{let r=t?NM(e,t):e;return OS(r)||OS(IM(r))}});var kS=R((e5,_S)=>{"use strict";var $M=Kh(),BM=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};_S.exports=(e,t,{gitHosts:r,protocols:n})=>{if(!e)return;let i=BM(e)?`github:${e}`:e,s=$M(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((t5,DS)=>{"use strict";var{LRUCache:MM}=eu(),jM=PS(),qM=kS(),WM=Kh(),Xh=new MM({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(!Xh.has(n)){let i=qM(t,r,{gitHosts:e.#e,protocols:e.#r});Xh.set(n,i?new e(...i):void 0)}return Xh.get(n)}static parseUrl(t){return WM(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(jM))tu.addHost(e,t);DS.exports=tu});var IS=R((r5,NS)=>{"use strict";NS.exports=LS;function LS(e,t,r){e instanceof RegExp&&(e=FS(e,r)),t instanceof RegExp&&(t=FS(t,r));var n=TS(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 FS(e,t){var r=t.match(e);return r?r[0]:null}LS.range=TS;function TS(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 US=R((n5,GS)=>{var $S=IS();GS.exports=HM;var BS="\0SLASH"+Math.random()+"\0",MS="\0OPEN"+Math.random()+"\0",Qh="\0CLOSE"+Math.random()+"\0",jS="\0COMMA"+Math.random()+"\0",qS="\0PERIOD"+Math.random()+"\0";function Jh(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function GM(e){return e.split("\\\\").join(BS).split("\\{").join(MS).split("\\}").join(Qh).split("\\,").join(jS).split("\\.").join(qS)}function UM(e){return e.split(BS).join("\\").split(MS).join("{").split(Qh).join("}").split(jS).join(",").split(qS).join(".")}function WS(e){if(!e)return[""];var t=[],r=$S("{","}",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=WS(s);return s.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function HM(e){return e?(e.substr(0,2)==="{}"&&(e="\\{\\}"+e.substr(2)),Rs(GM(e),!0).map(UM)):[]}function YM(e){return"{"+e+"}"}function zM(e){return/^-?0\d/.test(e)}function VM(e,t){return e<=t}function KM(e,t){return e>=t}function Rs(e,t){var r=[],n=$S("{","}",e);if(!n)return[e];var i=n.pre,s=n.post.length?Rs(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+Qh+n.post,Rs(e)):[e];var h;if(f)h=n.body.split(/\.\./);else if(h=WS(n.body),h.length===1&&(h=Rs(h[0],!1).map(YM),h.length===1))return s.map(function(b){return n.pre+h[0]+b});var p;if(f){var d=Jh(h[0]),m=Jh(h[1]),v=Math.max(h[0].length,h[1].length),P=h.length==3?Math.abs(Jh(h[2])):1,C=VM,F=m<d;F&&(P*=-1,C=KM);var D=h.some(zM);p=[];for(var A=d;C(A,m);A+=P){var O;if(u)O=String.fromCharCode(A),O==="\\"&&(O="");else if(O=String(A),D){var k=v-O.length;if(k>0){var _=new Array(k+1).join("0");A<0?O="-"+_+O.slice(1):O=_+O}}p.push(O)}}else{p=[];for(var T=0;T<h.length;T++)p.push.apply(p,Rs(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 HS=R(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.assertValidPattern=void 0;var XM=1024*64,JM=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>XM)throw new TypeError("pattern is too long")};nu.assertValidPattern=JM});var zS=R(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.parseClass=void 0;var QM={"[: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]},_s=e=>e.replace(/[[\]\\-]/g,"\\$&"),ZM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),YS=e=>e.join(""),ej=(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(QM))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(_s(l)+"-"+_s(m)):m===l&&n.push(_s(m)),l="",s++;continue}if(e.startsWith("-]",s+1)){n.push(_s(m+"-")),s+=2;continue}if(e.startsWith("-",s+1)){l=m,s+=2;continue}n.push(_s(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[ZM(m),!1,f-r,!1]}let h="["+(u?"^":"")+YS(n)+"]",p="["+(u?"":"^")+YS(i)+"]";return[n.length&&i.length?"("+h+"|"+p+")":n.length?h:p,a,f-r,!0]};iu.parseClass=ej});var ou=R(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.unescape=void 0;var tj=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");su.unescape=tj});var tp=R(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.AST=void 0;var rj=zS(),au=ou(),nj=new Set(["!","?","+","*","@"]),VS=e=>nj.has(e),ij="(?!(?:^|/)\\.\\.?(?:$|/))",uu="(?!\\.)",sj=new Set(["[","."]),oj=new Set(["..","."]),aj=new Set("().*{}+?[]^$\\!"),uj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),ep="[^/]",KS=ep+"*?",XS=ep+"+?",Zh=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&&VS(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(VS(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&&oj.has(this.#n[0]))){let d=sj,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?ij: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:"")+XS;else{let c=this.type==="!"?"))"+(this.isStart()&&!r&&!t?uu:"")+KS+")":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+=(aj.has(c)?"\\":"")+c;continue}if(c==="\\"){a===t.length-1?s+="\\\\":i=!0;continue}if(c==="["){let[u,f,l,h]=(0,rj.parseClass)(t,a);if(l){s+=u,o=o||f,a+=l-1,r=r||h;continue}}if(c==="*"){n&&t==="*"?s+=XS:s+=KS,r=!0;continue}if(c==="?"){s+=ep,r=!0;continue}s+=uj(c)}return[s,(0,au.unescape)(t),!!r,o]}};cu.AST=Zh});var rp=R(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.escape=void 0;var cj=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");lu.escape=cj});var $r=R(Q=>{"use strict";var lj=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 fj=lj(US()),fu=HS(),ZS=tp(),hj=rp(),pj=ou(),dj=(e,t,r={})=>((0,fu.assertValidPattern)(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Tn(t,r).match(e));Q.minimatch=dj;var gj=/^\*+([^+@!?\*\[\(]*)$/,mj=e=>t=>!t.startsWith(".")&&t.endsWith(e),yj=e=>t=>t.endsWith(e),vj=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Ej=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Aj=/^\*+\.\*+$/,wj=e=>!e.startsWith(".")&&e.includes("."),Sj=e=>e!=="."&&e!==".."&&e.includes("."),bj=/^\.\*+$/,Cj=e=>e!=="."&&e!==".."&&e.startsWith("."),xj=/^\*+$/,Pj=e=>e.length!==0&&!e.startsWith("."),Oj=e=>e.length!==0&&e!=="."&&e!=="..",Rj=/^\?+([^+@!?\*\[\(]*)?$/,_j=([e,t=""])=>{let r=e1([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},kj=([e,t=""])=>{let r=t1([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},Dj=([e,t=""])=>{let r=t1([e]);return t?n=>r(n)&&n.endsWith(t):r},Fj=([e,t=""])=>{let r=e1([e]);return t?n=>r(n)&&n.endsWith(t):r},e1=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},t1=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},r1=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",JS={win32:{sep:"\\"},posix:{sep:"/"}};Q.sep=r1==="win32"?JS.win32.sep:JS.posix.sep;Q.minimatch.sep=Q.sep;Q.GLOBSTAR=Symbol("globstar **");Q.minimatch.GLOBSTAR=Q.GLOBSTAR;var Lj="[^/]",Tj=Lj+"*?",Nj="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Ij="(?:(?!(?:\\/|^)\\.).)*?",$j=(e,t={})=>r=>(0,Q.minimatch)(r,e,t);Q.filter=$j;Q.minimatch.filter=Q.filter;var Ut=(e,t={})=>Object.assign({},e,t),Bj=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=Bj;Q.minimatch.defaults=Q.defaults;var Mj=(e,t={})=>((0,fu.assertValidPattern)(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:(0,fj.default)(e));Q.braceExpand=Mj;Q.minimatch.braceExpand=Q.braceExpand;var jj=(e,t={})=>new Tn(e,t).makeRe();Q.makeRe=jj;Q.minimatch.makeRe=Q.makeRe;var qj=(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=qj;Q.minimatch.match=Q.match;var QS=/[?*]|[+@!]\(.*?\)|\[|\]/,Wj=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||r1,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]==="?"||!QS.test(s[2]))&&!QS.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[A,O]=[t[F],r[D]];A.toLowerCase()===O.toLowerCase()&&(r[D]=A,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
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+=`
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(xj))?i=r.dot?Oj:Pj:(n=t.match(gj))?i=(r.nocase?r.dot?Ej:vj:r.dot?yj:mj)(n[1]):(n=t.match(Rj))?i=(r.nocase?r.dot?kj:_j:r.dot?Dj:Fj)(n):(n=t.match(Aj))?i=r.dot?Sj:wj:(n=t.match(bj))&&(i=Cj);let s=ZS.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?Tj:r.dot?Nj:Ij,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"?Wj(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 Gj=tp();Object.defineProperty(Q,"AST",{enumerable:!0,get:function(){return Gj.AST}});var Uj=rp();Object.defineProperty(Q,"escape",{enumerable:!0,get:function(){return Uj.escape}});var Hj=ou();Object.defineProperty(Q,"unescape",{enumerable:!0,get:function(){return Hj.unescape}});Q.minimatch.AST=ZS.AST;Q.minimatch.Minimatch=Tn;Q.minimatch.escape=hj.escape;Q.minimatch.unescape=pj.unescape});var lp=R(yt=>{"use strict";var Yj=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 n1=typeof process=="object"&&process?process:{stdout:null,stderr:null},cp=q("node:events"),a1=Yj(q("node:stream")),zj=q("node:string_decoder"),Vj=e=>!!e&&typeof e=="object"&&(e instanceof vu||e instanceof a1.default||(0,yt.isReadable)(e)||(0,yt.isWritable)(e));yt.isStream=Vj;var Kj=e=>!!e&&typeof e=="object"&&e instanceof cp.EventEmitter&&typeof e.pipe=="function"&&e.pipe!==a1.default.Writable.prototype.pipe;yt.isReadable=Kj;var Xj=e=>!!e&&typeof e=="object"&&e instanceof cp.EventEmitter&&typeof e.write=="function"&&typeof e.end=="function";yt.isWritable=Xj;var Br=Symbol("EOF"),Mr=Symbol("maybeEmitEnd"),gn=Symbol("emittedEnd"),hu=Symbol("emittingEnd"),ks=Symbol("emittedError"),pu=Symbol("closed"),i1=Symbol("read"),du=Symbol("flush"),s1=Symbol("flushChunk"),ar=Symbol("encoding"),Ii=Symbol("decoder"),Ye=Symbol("flowing"),Ds=Symbol("paused"),$i=Symbol("resume"),ze=Symbol("buffer"),mt=Symbol("pipes"),Ve=Symbol("bufferLength"),np=Symbol("bufferPush"),gu=Symbol("bufferShift"),ut=Symbol("objectMode"),Ie=Symbol("destroyed"),ip=Symbol("error"),sp=Symbol("emitData"),o1=Symbol("emitEnd"),op=Symbol("emitEnd2"),Sr=Symbol("async"),ap=Symbol("abort"),mu=Symbol("aborted"),Fs=Symbol("signal"),Nn=Symbol("dataListeners"),It=Symbol("discarded"),Ls=e=>Promise.resolve().then(e),Jj=e=>e(),Qj=e=>e==="end"||e==="finish"||e==="prefinish",Zj=e=>e instanceof ArrayBuffer||!!e&&typeof e=="object"&&e.constructor&&e.constructor.name==="ArrayBuffer"&&e.byteLength>=0,e3=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[$i](),this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(t){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},up=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)}},t3=e=>!!e.objectMode,r3=e=>!e.objectMode&&!!e.encoding&&e.encoding!=="buffer",vu=class extends cp.EventEmitter{[Ye]=!1;[Ds]=!1;[mt]=[];[ze]=[];[ut];[ar];[Sr];[Ii];[Br]=!1;[gn]=!1;[hu]=!1;[pu]=!1;[ks]=null;[Ve]=0;[Ie]=!1;[Fs];[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");t3(r)?(this[ut]=!0,this[ar]=null):r3(r)?(this[ar]=r.encoding,this[ut]=!1):(this[ut]=!1,this[ar]=null),this[Sr]=!!r.async,this[Ii]=this[ar]?new zj.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[Fs]=n,n.aborted?this[ap]():n.addEventListener("abort",()=>this[ap]()))}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}[ap](){this[mu]=!0,this.emit("abort",this[Fs]?.reason),this.destroy(this[Fs]?.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]?Ls:Jj;if(!this[ut]&&!Buffer.isBuffer(t)){if(e3(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(Zj(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[np](t),this[Ve]!==0&&this.emit("readable"),n&&i(n),this[Ye]):t.length?(typeof t=="string"&&!(r===this[ar]&&!this[Ii]?.lastNeed)&&(t=Buffer.from(t,r)),Buffer.isBuffer(t)&&this[ar]&&(t=this[Ii].write(t)),this[Ye]&&this[Ve]!==0&&this[du](!0),this[Ye]?this.emit("data",t):this[np](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[i1](t||null,this[ze][0]);return this[Mr](),r}[i1](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[Ds])&&this[Mr](),this}[$i](){this[Ie]||(!this[Nn]&&!this[mt].length&&(this[It]=!0),this[Ds]=!1,this[Ye]=!0,this.emit("resume"),this[ze].length?this[du]():this[Br]?this[Mr]():this.emit("drain"))}resume(){return this[$i]()}pause(){this[Ye]=!1,this[Ds]=!0,this[It]=!1}get destroyed(){return this[Ie]}get flowing(){return this[Ye]}get paused(){return this[Ds]}[np](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[s1](this[gu]())&&this[ze].length);!t&&!this[ze].length&&!this[Br]&&this.emit("drain")}[s1](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===n1.stdout||t===n1.stderr?r.end=!1:r.end=r.end!==!1,r.proxyErrors=!!r.proxyErrors,n?r.end&&t.end():(this[mt].push(r.proxyErrors?new up(this,t,r):new yu(this,t,r)),this[Sr]?Ls(()=>this[$i]()):this[$i]()),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[$i]();else if(t==="readable"&&this[Ve]!==0)super.emit("readable");else if(Qj(t)&&this[gn])super.emit(t),this.removeAllListeners(t);else if(t==="error"&&this[ks]){let i=r;this[Sr]?Ls(()=>i.call(this,this[ks])):i.call(this,this[ks])}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]?(Ls(()=>this[sp](n)),!0):this[sp](n);if(t==="end")return this[o1]();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[ks]=n,super.emit(ip,n);let s=!this[Fs]||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}[sp](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}[o1](){return this[gn]?!1:(this[gn]=!0,this.readable=!1,this[Sr]?(Ls(()=>this[op]()),!0):this[op]())}[op](){if(this[Ii]){let r=this[Ii].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(ip,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(ip,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 S1=R(Ae=>{"use strict";var n3=Ae&&Ae.__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]}),i3=Ae&&Ae.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s3=Ae&&Ae.__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)&&n3(t,e,r);return i3(t,e),t};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.PathScurry=Ae.Path=Ae.PathScurryDarwin=Ae.PathScurryPosix=Ae.PathScurryWin32=Ae.PathScurryBase=Ae.PathPosix=Ae.PathWin32=Ae.PathBase=Ae.ChildrenCache=Ae.ResolveCache=void 0;var p1=eu(),bu=q("node:path"),o3=q("node:url"),Ns=q("fs"),a3=s3(q("node:fs")),u3=Ns.realpathSync.native,Eu=q("node:fs/promises"),u1=lp(),Is={lstatSync:Ns.lstatSync,readdir:Ns.readdir,readdirSync:Ns.readdirSync,readlinkSync:Ns.readlinkSync,realpathSync:u3,promises:{lstat:Eu.lstat,readdir:Eu.readdir,readlink:Eu.readlink,realpath:Eu.realpath}},d1=e=>!e||e===Is||e===a3?Is:{...Is,...e,promises:{...Is.promises,...e.promises||{}}},g1=/^\\\\\?\\([a-z]:)\\?$/i,c3=e=>e.replace(/\//g,"\\").replace(g1,"$1\\"),l3=/[\\\/]/,Yt=0,m1=1,y1=2,br=4,v1=6,E1=8,In=10,A1=12,Ht=15,Ts=~Ht,fp=16,c1=32,$s=64,ur=128,Au=256,Su=512,l1=$s|ur|Su,f3=1023,hp=e=>e.isFile()?E1:e.isDirectory()?br:e.isSymbolicLink()?In:e.isCharacterDevice()?y1:e.isBlockDevice()?v1:e.isSocket()?A1:e.isFIFO()?m1:Yt,f1=new Map,Bs=e=>{let t=f1.get(e);if(t)return t;let r=e.normalize("NFKD");return f1.set(e,r),r},h1=new Map,wu=e=>{let t=h1.get(e);if(t)return t;let r=Bs(e.toLowerCase());return h1.set(e,r),r},Ms=class extends p1.LRUCache{constructor(){super({max:256})}};Ae.ResolveCache=Ms;var Cu=class extends p1.LRUCache{constructor(t=16*1024){super({maxSize:t,sizeCalculation:r=>r.length+1})}};Ae.ChildrenCache=Cu;var w1=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}#A;#w;#S;#g;#_;#P;#i;#F;#E;#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.#A=s?wu(t):Bs(t),this.#i=r&f3,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=d1(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&=~fp,r}child(t,r){if(t===""||t===".")return this;if(t==="..")return this.parent||this;let n=this.children(),i=this.nocase?wu(t):Bs(t);for(let c of n)if(c.#A===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)===E1}isDirectory(){return(this.#i&Ht)===br}isCharacterDevice(){return(this.#i&Ht)===y1}isBlockDevice(){return(this.#i&Ht)===v1}isFIFO(){return(this.#i&Ht)===m1}isSocket(){return(this.#i&Ht)===A1}isSymbolicLink(){return(this.#i&In)===In}lstatCached(){return this.#i&c1?this:void 0}readlinkCached(){return this.#E}realpathCached(){return this.#k}readdirCached(){let t=this.children();return t.slice(0,t.provisional)}canReadlink(){if(this.#E)return!0;if(!this.parent)return!1;let t=this.#i&Ht;return!(t!==Yt&&t!==In||this.#i&Au||this.#i&ur)}calledReaddir(){return!!(this.#i&fp)}isENOENT(){return!!(this.#i&ur)}isNamed(t){return this.nocase?this.#A===wu(t):this.#A===Bs(t)}async readlink(){let t=this.#E;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.#E=n}catch(r){this.#f(r.code);return}}readlinkSync(){let t=this.#E;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.#E=n}catch(r){this.#f(r.code);return}}#T(t){this.#i|=fp;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)&Ts,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&$s)return;let t=this.#i;(t&Ht)===br&&(t&=Ts),this.#i=t|$s,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|=Au,t==="ENOENT"&&(r|=ur),(t==="EINVAL"||t==="UNKNOWN")&&(r&=Ts),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=hp(t),i=this.newChild(t.name,n,{parent:this}),s=i.#i&Ht;return s!==br&&s!==In&&s!==Yt&&(i.#i|=$s),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):Bs(t.name))===i.#A)return this.#q(t,i,n,r)}}#q(t,r,n,i){let s=r.name;return r.#i=r.#i&Ts|hp(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=hp(t);this.#i=this.#i&Ts|D|c1,D!==Yt&&D!==br&&D!==In&&(this.#i|=$s)}#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&l1)return!1;let t=Ht&this.#i;return t===Yt||t===br||t===In}shouldWalk(t,r){return(this.#i&br)===br&&!(this.#i&l1)&&!t.has(this)&&(!r||r(this))}async realpath(){if(this.#k)return this.#k;if(!((Su|Au|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|Au|ur)&this.#i))try{let t=this.#e.realpathSync(this.fullpath());return this.#k=this.resolve(t)}catch{this.#R()}}[w1](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}};Ae.PathBase=Qe;var js=class e extends Qe{sep="\\";splitSep=l3;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=c3(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 Gs(t,this).root}sameRoot(t,r=this.root.name){return t=t.toUpperCase().replace(/\//g,"\\").replace(g1,"$1\\"),t===r}};Ae.PathWin32=js;var qs=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)}};Ae.PathPosix=qs;var Ws=class{root;rootPath;roots;cwd;#e;#r;#t;nocase;#n;constructor(t=process.cwd(),r,n,{nocase:i,childrenCacheSize:s=16*1024,fs:o=Is}={}){this.#n=d1(o),(t instanceof URL||t.startsWith("file://"))&&(t=(0,o3.fileURLToPath)(t));let a=r.resolve(t);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new Ms,this.#r=new Ms,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 u1.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(A=>A?.isUnknown()?A.lstat():A));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 u1.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[w1](r)}};Ae.PathScurryBase=Ws;var Gs=class extends Ws{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 js(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)}};Ae.PathScurryWin32=Gs;var Us=class extends Ws{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 qs(this.rootPath,br,void 0,this.roots,this.nocase,this.childrenCache(),{fs:t})}isAbsolute(t){return t.startsWith("/")}};Ae.PathScurryPosix=Us;var xu=class extends Us{constructor(t=process.cwd(),r={}){let{nocase:n=!0}=r;super(t,{...r,nocase:n})}};Ae.PathScurryDarwin=xu;Ae.Path=process.platform==="win32"?js:qs;Ae.PathScurry=process.platform==="win32"?Gs:process.platform==="darwin"?xu:Us});var dp=R(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.Pattern=void 0;var h3=$r(),p3=e=>e.length>=1,d3=e=>e.length>=1,pp=class e{#e;#r;#t;length;#n;#o;#h;#c;#l;#a;#u=!0;constructor(t,r,n,i){if(!p3(t))throw new TypeError("empty pattern list");if(!d3(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]===h3.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=pp});var mp=R(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.Ignore=void 0;var b1=$r(),g3=dp(),m3=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",gp=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(t,{nobrace:r,nocase:n,noext:i,noglobstar:s,platform:o=m3}){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 b1.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 g3.Pattern(i,s,0,this.platform),a=new b1.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=gp});var x1=R(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.Processor=Cr.SubWalks=Cr.MatchRecord=Cr.HasWalkedCache=void 0;var C1=$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 yp=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===C1.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===C1.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=yp});var R1=R(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.GlobStream=mn.GlobWalker=mn.GlobUtil=void 0;var y3=lp(),P1=mp(),O1=x1(),v3=(e,t)=>typeof e=="string"?new P1.Ignore([e],t):Array.isArray(e)?new P1.Ignore(e,t):e,Hs=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=v3(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 O1.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 O1.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=Hs;var vp=class extends Hs{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=vp;var Ep=class extends Hs{results;constructor(t,r,n){super(t,r,n),this.results=new y3.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=Ep});var wp=R(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.Glob=void 0;var E3=$r(),A3=q("node:url"),Du=S1(),w3=dp(),Fu=R1(),S3=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Ap=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,A3.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||S3,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 E3.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 w3.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=Ap});var Sp=R(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.hasMagic=void 0;var b3=$r(),C3=(e,t={})=>{Array.isArray(e)||(e=[e]);for(let r of e)if(new b3.Minimatch(r,t).hasMagic())return!0;return!1};Tu.hasMagic=C3});var Pp=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=Ys;me.globStream=bp;me.globSync=Cp;me.globIterateSync=zs;me.globIterate=xp;var _1=$r(),$n=wp(),x3=Sp(),D1=$r();Object.defineProperty(me,"escape",{enumerable:!0,get:function(){return D1.escape}});Object.defineProperty(me,"unescape",{enumerable:!0,get:function(){return D1.unescape}});var P3=wp();Object.defineProperty(me,"Glob",{enumerable:!0,get:function(){return P3.Glob}});var O3=Sp();Object.defineProperty(me,"hasMagic",{enumerable:!0,get:function(){return O3.hasMagic}});var R3=mp();Object.defineProperty(me,"Ignore",{enumerable:!0,get:function(){return R3.Ignore}});function Ys(e,t={}){return new $n.Glob(e,t).streamSync()}function bp(e,t={}){return new $n.Glob(e,t).stream()}function Cp(e,t={}){return new $n.Glob(e,t).walkSync()}async function k1(e,t={}){return new $n.Glob(e,t).walk()}function zs(e,t={}){return new $n.Glob(e,t).iterateSync()}function xp(e,t={}){return new $n.Glob(e,t).iterate()}me.streamSync=Ys;me.stream=Object.assign(bp,{sync:Ys});me.iterateSync=zs;me.iterate=Object.assign(xp,{sync:zs});me.sync=Object.assign(Cp,{stream:Ys,iterate:zs});me.glob=Object.assign(k1,{glob:k1,globSync:Cp,sync:me.sync,globStream:bp,stream:me.stream,globStreamSync:Ys,streamSync:me.streamSync,globIterate:xp,iterate:me.iterate,globIterateSync:zs,iterateSync:me.iterateSync,Glob:$n.Glob,hasMagic:x3.hasMagic,escape:_1.escape,unescape:_1.unescape});me.glob.glob=me.glob});var L1=R(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.sync=Bi.isexe=void 0;var _3=q("fs"),k3=q("fs/promises"),D3=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return F1(await(0,k3.stat)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};Bi.isexe=D3;var F3=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return F1((0,_3.statSync)(e),t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};Bi.sync=F3;var F1=(e,t)=>e.isFile()&&L3(e,t),L3=(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 N1=R(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.sync=Mi.isexe=void 0;var T3=q("fs"),N3=q("fs/promises"),I3=async(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return T1(await(0,N3.stat)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};Mi.isexe=I3;var $3=(e,t={})=>{let{ignoreErrors:r=!1}=t;try{return T1((0,T3.statSync)(e),e,t)}catch(n){let i=n;if(r||i.code==="EACCES")return!1;throw i}};Mi.sync=$3;var B3=(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},T1=(e,t,r)=>e.isFile()&&B3(t,r)});var $1=R(I1=>{"use strict";Object.defineProperty(I1,"__esModule",{value:!0})});var G1=R(Ge=>{"use strict";var B1=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]}),M3=Ge&&Ge.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),M1=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)&&B1(t,e,r);return M3(t,e),t},j3=Ge&&Ge.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&B1(t,e,r)};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.sync=Ge.isexe=Ge.posix=Ge.win32=void 0;var j1=M1(L1());Ge.posix=j1;var q1=M1(N1());Ge.win32=q1;j3($1(),Ge);var q3=process.env._ISEXE_TEST_PLATFORM_||process.platform,W1=q3==="win32"?q1:j1;Ge.isexe=W1.isexe;Ge.sync=W1.sync});var Op=R((x5,Q1)=>{var{isexe:W3,sync:G3}=G1(),{join:U3,delimiter:H3,sep:U1,posix:H1}=q("path"),Y1=process.platform==="win32",z1=new RegExp(`[${H1.sep}${U1===H1.sep?"":U1}]`.replace(/(\\)/g,"\\$1")),Y3=new RegExp(`^\\.${z1.source}`),V1=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),K1=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=H3})=>{let i=e.match(z1)?[""]:[...Y1?[process.cwd()]:[],...(t||"").split(n)];if(Y1){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:[""]}},X1=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e;return(!r&&Y3.test(t)?t.slice(0,2):"")+U3(r,t)},J1=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=K1(e,t),s=[];for(let o of r){let a=X1(o,e);for(let c of n){let u=a+c;if(await W3(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 V1(e)},z3=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=K1(e,t),s=[];for(let o of r){let a=X1(o,e);for(let c of n){let u=a+c;if(G3(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 V1(e)};Q1.exports=J1;J1.sync=z3});var eb=R((P5,Z1)=>{"use strict";var V3=(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},K3=e=>e.length?/[\t\n\r "#$&'()*;<>?\\`|~]/.test(e)?`'${e.replace(/'/g,"'\\''")}'`.replace(/^(?:'')+(?!$)/,"").replace(/\\'''/g,"\\'"):e:"''";Z1.exports={cmd:V3,sh:K3}});var sb=R((O5,ib)=>{"use strict";var{spawn:X3}=q("child_process"),J3=q("os"),Q3=Op(),tb=eb(),_p=(e,t,r={},n={})=>{if(r.shell)return nb(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,...eq(c,u,r),...n}),l=(p,d)=>{let m=f(d);s(Object.assign(p,m))},h=X3(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},nb=(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=Q3.sync(f,{path:s.env&&rb(s.env,"PATH")||process.env.PATH,pathext:s.env&&rb(s.env,"PATHEXT")||process.env.PATHEXT}).toLowerCase()}catch{h=f.toLowerCase()}u=h.endsWith(".cmd")||h.endsWith(".bat");for(let p of t)a+=` ${tb.cmd(p,u)}`;o.push("/d","/s","/c",a),s.windowsVerbatimArguments=!0}else{for(let u of t)a+=` ${tb.sh(u)}`;o.push("-c",a)}return _p(i,o,s,n)},Z3=(e,t={},r={})=>{let n={...t,shell:!0},i=[].concat(e),s=process.platform;if(s==="linux"&&J3.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"),nb(o,i,n,r)};_p.open=Z3;var Rp=(e="pipe",t)=>e==="pipe"||e===null?!0:Array.isArray(e)?Rp(e[t],t):!1,eq=(e,t,{stdioString:r=!0,stdio:n})=>{let i={stdout:null,stderr:null};return Rp(n,1)&&(i.stdout=Buffer.concat(e),r&&(i.stdout=i.stdout.toString().trim())),Rp(n,2)&&(i.stderr=Buffer.concat(t),r&&(i.stderr=i.stderr.toString().trim())),i},rb=(e,t)=>{t=t.toLowerCase();for(let r of Object.keys(e).sort())if(r.toLowerCase()===t)return e[r]};ib.exports=_p});var ub=R((R5,ab)=>{"use strict";function ob(e,t){for(let r in t)Object.defineProperty(e,r,{value:t[r],enumerable:!0,configurable:!0});return e}function tq(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 ob(e,r)}catch{r.message=e.message,r.stack=e.stack;let i=function(){};return i.prototype=Object.create(Object.getPrototypeOf(e)),ob(new i,r)}}ab.exports=tq});var lb=R((_5,cb)=>{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))}cb.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 fb=R(Bn=>{var rq=lb();Bn.operation=function(e){var t=Bn.timeouts(e);return new rq(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 pb=R((D5,hb)=>{hb.exports=fb()});var mb=R((F5,gb)=>{"use strict";var nq=ub(),iq=pb(),sq=Object.prototype.hasOwnProperty;function db(e){return e&&e.code==="EPROMISERETRY"&&sq.call(e,"retried")}function oq(e,t){var r,n;return typeof e=="object"&&typeof t=="function"&&(r=t,t=e,e=r),n=iq.operation(t),new Promise(function(i,s){n.attempt(function(o){Promise.resolve().then(function(){return e(function(a){throw db(a)&&(a=a.retried),nq(new Error("Retrying"),"EPROMISERETRY",{retried:a})},o)}).then(i,function(a){db(a)&&(a=a.retried,n.retry(a||new Error))||s(a)})})})}gb.exports=oq});var Lp=R((L5,yb)=>{var Vs=class extends Error{shouldRetry(){return!1}},kp=class extends Vs{constructor(){super("A git connection error occurred")}shouldRetry(t){return t<3}},Dp=class extends Vs{constructor(){super("The git reference could not be found")}},Fp=class extends Vs{constructor(){super("An unknown git error occurred")}};yb.exports={GitConnectionError:kp,GitPathspecError:Dp,GitUnknownError:Fp}});var Eb=R((T5,vb)=>{var{GitConnectionError:aq,GitPathspecError:uq,GitUnknownError:cq}=Lp(),lq=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("|")),fq=/pathspec .* did not match any file\(s\) known to git/;function hq(e){let t=e.stderr,r;return lq.test(t)?r=new aq(t):fq.test(t)?r=new uq(t):r=new cq(t),Object.assign(r,e)}vb.exports=hq});var bb=R((N5,Tp)=>{var Ab=q("node:fs"),pq=q("node:os"),dq=q("node:path"),gq=Sh(),wb=dq.join(pq.homedir(),".gitconfig"),Ks=null,Sb=()=>{if(Ks===null)try{if(Ks={},Ab.existsSync(wb)){let e=Ab.readFileSync(wb,"utf-8");Ks=gq.parse(e)}}catch{Ks={}}return Ks},mq=()=>{let e=Sb();return{sshCommandSetInConfig:e?.core?.sshCommand!==void 0,askPassSetInConfig:e?.core?.askpass!==void 0}},yq=process.env.GIT_SSH_COMMAND!==void 0,vq=process.env.GIT_ASKPASS!==void 0,{sshCommandSetInConfig:Eq,askPassSetInConfig:Aq}=mq(),wq={...vq||Aq?{}:{GIT_ASKPASS:"echo"},...yq||Eq?{}:{GIT_SSH_COMMAND:"ssh -oStrictHostKeyChecking=accept-new"}};Tp.exports=(e={})=>({stdioString:!0,...e,shell:!1,env:e.env||{...wq,...process.env}});Tp.exports.loadGitConfig=Sb});var xb=R((I5,Cb)=>{var Sq=Op(),Np;try{Np=Sq.sync("git")}catch{}Cb.exports=(e={})=>e.git?e.git:!Np||e.git===!1?Object.assign(new Error("No git binary found in $PATH"),{code:"ENOGIT"}):Np});var Xs=R(($5,Pb)=>{var bq=sb(),Cq=mb(),{log:xq}=xs(),Pq=Eb(),Oq=bb();Pb.exports=(e,t={})=>{let n=xb()(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}),Cq((o,a)=>(a!==1&&xq.silly("git",`Retrying git command: ${i.join(" ")} attempt # ${a}`),bq(n,i,Oq(t)).catch(c=>{let u=Pq(c);if(!u.shouldRetry(a))throw u;o(u)})),s)}});var _b=R((B5,Rb)=>{var Ob=at(),Rq=(e,t,r,n,i)=>{typeof r=="string"&&(i=n,n=r,r=void 0);try{return new Ob(e instanceof Ob?e.version:e,r).inc(t,n,i).version}catch{return null}};Rb.exports=Rq});var Fb=R((M5,Db)=>{var kb=Ln(),_q=(e,t)=>{let r=kb(e,null,!0),n=kb(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"};Db.exports=_q});var Tb=R((j5,Lb)=>{var kq=at(),Dq=(e,t)=>new kq(e,t).major;Lb.exports=Dq});var Ib=R((q5,Nb)=>{var Fq=at(),Lq=(e,t)=>new Fq(e,t).minor;Nb.exports=Lq});var Bb=R((W5,$b)=>{var Tq=at(),Nq=(e,t)=>new Tq(e,t).patch;$b.exports=Nq});var jb=R((G5,Mb)=>{var Iq=Ln(),$q=(e,t)=>{let r=Iq(e,t);return r&&r.prerelease.length?r.prerelease:null};Mb.exports=$q});var Vt=R((U5,Wb)=>{var qb=at(),Bq=(e,t,r)=>new qb(e,r).compare(new qb(t,r));Wb.exports=Bq});var Ub=R((H5,Gb)=>{var Mq=Vt(),jq=(e,t,r)=>Mq(t,e,r);Gb.exports=jq});var Yb=R((Y5,Hb)=>{var qq=Vt(),Wq=(e,t)=>qq(e,t,!0);Hb.exports=Wq});var Nu=R((z5,Vb)=>{var zb=at(),Gq=(e,t,r)=>{let n=new zb(e,r),i=new zb(t,r);return n.compare(i)||n.compareBuild(i)};Vb.exports=Gq});var Xb=R((V5,Kb)=>{var Uq=Nu(),Hq=(e,t)=>e.sort((r,n)=>Uq(r,n,t));Kb.exports=Hq});var Qb=R((K5,Jb)=>{var Yq=Nu(),zq=(e,t)=>e.sort((r,n)=>Yq(n,r,t));Jb.exports=zq});var Js=R((X5,Zb)=>{var Vq=Vt(),Kq=(e,t,r)=>Vq(e,t,r)>0;Zb.exports=Kq});var Iu=R((J5,eC)=>{var Xq=Vt(),Jq=(e,t,r)=>Xq(e,t,r)<0;eC.exports=Jq});var Ip=R((Q5,tC)=>{var Qq=Vt(),Zq=(e,t,r)=>Qq(e,t,r)===0;tC.exports=Zq});var $p=R((Z5,rC)=>{var eW=Vt(),tW=(e,t,r)=>eW(e,t,r)!==0;rC.exports=tW});var $u=R((eY,nC)=>{var rW=Vt(),nW=(e,t,r)=>rW(e,t,r)>=0;nC.exports=nW});var Bu=R((tY,iC)=>{var iW=Vt(),sW=(e,t,r)=>iW(e,t,r)<=0;iC.exports=sW});var Bp=R((rY,sC)=>{var oW=Ip(),aW=$p(),uW=Js(),cW=$u(),lW=Iu(),fW=Bu(),hW=(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 oW(e,r,n);case"!=":return aW(e,r,n);case">":return uW(e,r,n);case">=":return cW(e,r,n);case"<":return lW(e,r,n);case"<=":return fW(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};sC.exports=hW});var aC=R((nY,oC)=>{var pW=at(),dW=Ln(),{safeRe:Mu,t:ju}=Di(),gW=(e,t)=>{if(e instanceof pW)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 dW(`${n}.${i}.${s}${o}${a}`,t)};oC.exports=gW});var cC=R((iY,uC)=>{var Mp=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}};uC.exports=Mp});var Kt=R((sY,pC)=>{var mW=/\s+/g,jp=class e{constructor(t,r){if(r=vW(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof qp)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(mW," "),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=>!fC(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&&xW(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&&bW)|(this.options.loose&&CW))+":"+t,i=lC.get(n);if(i)return i;let s=this.options.loose,o=s?Ot[vt.HYPHENRANGELOOSE]:Ot[vt.HYPHENRANGE];t=t.replace(o,NW(this.options.includePrerelease)),_e("hyphen replace",t),t=t.replace(Ot[vt.COMPARATORTRIM],AW),_e("comparator trim",t),t=t.replace(Ot[vt.TILDETRIM],wW),_e("tilde trim",t),t=t.replace(Ot[vt.CARETTRIM],SW),_e("caret trim",t);let a=t.split(" ").map(l=>PW(l,this.options)).join(" ").split(/\s+/).map(l=>TW(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 qp(l,this.options));for(let l of u){if(fC(l))return[l];c.set(l.value,l)}c.size>1&&c.has("")&&c.delete("");let f=[...c.values()];return lC.set(n,f),f}intersects(t,r){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(n=>hC(n,r)&&t.set.some(i=>hC(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 EW(t,this.options)}catch{return!1}for(let r=0;r<this.set.length;r++)if(IW(this.set[r],t,this.options))return!0;return!1}};pC.exports=jp;var yW=cC(),lC=new yW,vW=Ua(),qp=Qs(),_e=Ps(),EW=at(),{safeRe:Ot,t:vt,comparatorTrimReplace:AW,tildeTrimReplace:wW,caretTrimReplace:SW}=Di(),{FLAG_INCLUDE_PRERELEASE:bW,FLAG_LOOSE:CW}=Os(),fC=e=>e.value==="<0.0.0-0",xW=e=>e.value==="",hC=(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},PW=(e,t)=>(_e("comp",e,t),e=_W(e,t),_e("caret",e),e=OW(e,t),_e("tildes",e),e=DW(e,t),_e("xrange",e),e=LW(e,t),_e("stars",e),e),Et=e=>!e||e.toLowerCase()==="x"||e==="*",OW=(e,t)=>e.trim().split(/\s+/).map(r=>RW(r,t)).join(" "),RW=(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 Et(i)?c="":Et(s)?c=`>=${i}.0.0 <${+i+1}.0.0-0`:Et(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})},_W=(e,t)=>e.trim().split(/\s+/).map(r=>kW(r,t)).join(" "),kW=(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 Et(s)?u="":Et(o)?u=`>=${s}.0.0${n} <${+s+1}.0.0-0`:Et(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})},DW=(e,t)=>(_e("replaceXRanges",e,t),e.split(/\s+/).map(r=>FW(r,t)).join(" ")),FW=(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=Et(s),f=u||Et(o),l=f||Et(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})},LW=(e,t)=>(_e("replaceStars",e,t),e.trim().replace(Ot[vt.STAR],"")),TW=(e,t)=>(_e("replaceGTE0",e,t),e.trim().replace(Ot[t.includePrerelease?vt.GTE0PRE:vt.GTE0],"")),NW=e=>(t,r,n,i,s,o,a,c,u,f,l,h)=>(Et(n)?r="":Et(i)?r=`>=${n}.0.0${e?"-0":""}`:Et(s)?r=`>=${n}.${i}.0${e?"-0":""}`:o?r=`>=${r}`:r=`>=${r}${e?"-0":""}`,Et(u)?c="":Et(f)?c=`<${+u+1}.0.0-0`:Et(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()),IW=(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!==qp.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 Qs=R((oY,EC)=>{var Zs=Symbol("SemVer ANY"),Up=class e{static get ANY(){return Zs}constructor(t,r){if(r=dC(r),t instanceof e){if(t.loose===!!r.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),Gp("comparator",t,r),this.options=r,this.loose=!!r.loose,this.parse(t),this.semver===Zs?this.value="":this.value=this.operator+this.semver.version,Gp("comp",this)}parse(t){let r=this.options.loose?gC[mC.COMPARATORLOOSE]:gC[mC.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 yC(n[2],this.options.loose):this.semver=Zs}toString(){return this.value}test(t){if(Gp("Comparator.test",t,this.options.loose),this.semver===Zs||t===Zs)return!0;if(typeof t=="string")try{t=new yC(t,this.options)}catch{return!1}return Wp(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 vC(t.value,r).test(this.value):t.operator===""?t.value===""?!0:new vC(this.value,r).test(t.semver):(r=dC(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("=")||Wp(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||Wp(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};EC.exports=Up;var dC=Ua(),{safeRe:gC,t:mC}=Di(),Wp=Bp(),Gp=Ps(),yC=at(),vC=Kt()});var ji=R((aY,AC)=>{var $W=Kt(),BW=(e,t,r)=>{try{t=new $W(t,r)}catch{return!1}return t.test(e)};AC.exports=BW});var SC=R((uY,wC)=>{var MW=Kt(),jW=(e,t)=>new MW(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));wC.exports=jW});var CC=R((cY,bC)=>{var qW=at(),WW=Kt(),GW=(e,t,r)=>{let n=null,i=null,s=null;try{s=new WW(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===-1)&&(n=o,i=new qW(n,r))}),n};bC.exports=GW});var PC=R((lY,xC)=>{var UW=at(),HW=Kt(),YW=(e,t,r)=>{let n=null,i=null,s=null;try{s=new HW(t,r)}catch{return null}return e.forEach(o=>{s.test(o)&&(!n||i.compare(o)===1)&&(n=o,i=new UW(n,r))}),n};xC.exports=YW});var _C=R((fY,RC)=>{var Hp=at(),zW=Kt(),OC=Js(),VW=(e,t)=>{e=new zW(e,t);let r=new Hp("0.0.0");if(e.test(r)||(r=new Hp("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 Hp(o.semver.version);switch(o.operator){case">":a.prerelease.length===0?a.patch++:a.prerelease.push(0),a.raw=a.format();case"":case">=":(!s||OC(a,s))&&(s=a);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${o.operator}`)}}),s&&(!r||OC(r,s))&&(r=s)}return r&&e.test(r)?r:null};RC.exports=VW});var Yp=R((hY,kC)=>{var KW=Kt(),XW=(e,t)=>{try{return new KW(e,t).range||"*"}catch{return null}};kC.exports=XW});var qu=R((pY,TC)=>{var JW=at(),LC=Qs(),{ANY:QW}=LC,ZW=Kt(),eG=ji(),DC=Js(),FC=Iu(),tG=Bu(),rG=$u(),nG=(e,t,r,n)=>{e=new JW(e,n),t=new ZW(t,n);let i,s,o,a,c;switch(r){case">":i=DC,s=tG,o=FC,a=">",c=">=";break;case"<":i=FC,s=rG,o=DC,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(eG(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===QW&&(p=new LC(">=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};TC.exports=nG});var IC=R((dY,NC)=>{var iG=qu(),sG=(e,t,r)=>iG(e,t,">",r);NC.exports=sG});var BC=R((gY,$C)=>{var oG=qu(),aG=(e,t,r)=>oG(e,t,"<",r);$C.exports=aG});var qC=R((mY,jC)=>{var MC=Kt(),uG=(e,t,r)=>(e=new MC(e,r),t=new MC(t,r),e.intersects(t,r));jC.exports=uG});var GC=R((yY,WC)=>{var cG=ji(),lG=Vt();WC.exports=(e,t,r)=>{let n=[],i=null,s=null,o=e.sort((f,l)=>lG(f,l,r));for(let f of o)cG(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 KC=R((vY,VC)=>{var UC=Kt(),Vp=Qs(),{ANY:zp}=Vp,eo=ji(),Kp=Vt(),fG=(e,t,r={})=>{if(e===t)return!0;e=new UC(e,r),t=new UC(t,r);let n=!1;e:for(let i of e.set){for(let s of t.set){let o=pG(i,s,r);if(n=n||o!==null,o)continue e}if(n)return!1}return!0},hG=[new Vp(">=0.0.0-0")],HC=[new Vp(">=0.0.0")],pG=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===zp){if(t.length===1&&t[0].semver===zp)return!0;r.includePrerelease?e=hG:e=HC}if(t.length===1&&t[0].semver===zp){if(r.includePrerelease)return!0;t=HC}let n=new Set,i,s;for(let p of e)p.operator===">"||p.operator===">="?i=YC(i,p,r):p.operator==="<"||p.operator==="<="?s=zC(s,p,r):n.add(p.semver);if(n.size>1)return null;let o;if(i&&s){if(o=Kp(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&&!eo(p,String(i),r)||s&&!eo(p,String(s),r))return null;for(let d of t)if(!eo(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=YC(i,p,r),a===p&&a!==i)return!1}else if(i.operator===">="&&!eo(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=zC(s,p,r),c===p&&c!==s)return!1}else if(s.operator==="<="&&!eo(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)},YC=(e,t,r)=>{if(!e)return t;let n=Kp(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},zC=(e,t,r)=>{if(!e)return t;let n=Kp(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};VC.exports=fG});var to=R((EY,QC)=>{var Xp=Di(),XC=Os(),dG=at(),JC=Fh(),gG=Ln(),mG=Va(),yG=Uh(),vG=_b(),EG=Fb(),AG=Tb(),wG=Ib(),SG=Bb(),bG=jb(),CG=Vt(),xG=Ub(),PG=Yb(),OG=Nu(),RG=Xb(),_G=Qb(),kG=Js(),DG=Iu(),FG=Ip(),LG=$p(),TG=$u(),NG=Bu(),IG=Bp(),$G=aC(),BG=Qs(),MG=Kt(),jG=ji(),qG=SC(),WG=CC(),GG=PC(),UG=_C(),HG=Yp(),YG=qu(),zG=IC(),VG=BC(),KG=qC(),XG=GC(),JG=KC();QC.exports={parse:gG,valid:mG,clean:yG,inc:vG,diff:EG,major:AG,minor:wG,patch:SG,prerelease:bG,compare:CG,rcompare:xG,compareLoose:PG,compareBuild:OG,sort:RG,rsort:_G,gt:kG,lt:DG,eq:FG,neq:LG,gte:TG,lte:NG,cmp:IG,coerce:$G,Comparator:BG,Range:MG,satisfies:jG,toComparators:qG,maxSatisfying:WG,minSatisfying:GG,minVersion:UG,validRange:HG,outside:YG,gtr:zG,ltr:VG,intersects:KG,simplifyRange:XG,subset:JG,SemVer:dG,re:Xp.re,src:Xp.src,tokens:Xp.t,SEMVER_SPEC_VERSION:XC.SEMVER_SPEC_VERSION,RELEASE_TYPES:XC.RELEASE_TYPES,compareIdentifiers:JC.compareIdentifiers,rcompareIdentifiers:JC.rcompareIdentifiers}});var tx=R((AY,ex)=>{var ZC=to();ex.exports=e=>QG(e.reduce(iU,{versions:{},"dist-tags":{},refs:{},shas:{}}));var QG=e=>tU(ZG(eU(e))),ZG=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),eU=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),tU=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},rU=e=>e.startsWith("refs/tags/")?"tag":e.startsWith("refs/heads/")?"branch":e.startsWith("refs/pull/")?"pull":e==="HEAD"?"head":"other",nU=e=>{let t=e.trim().split(/\s+/,2);if(t.length<2)return null;let r=t[0].trim(),n=t[1].trim(),i=rU(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}},iU=(e,t)=>{let r=nU(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&&ZC.valid(n[1],!0)&&(e.versions[ZC.clean(n[1],!0)]=r)}return e}});var Jp=R((wY,nx)=>{var sU=Xs(),{LRUCache:oU}=eu(),aU=tx(),rx=new oU({max:100,ttl:5*60*1e3});nx.exports=async(e,t={})=>{if(!t.noGitRevCache){let i=rx.get(e);if(i)return i}let{stdout:r}=await sU(["ls-remote",e],t),n=aU(r.trim().split(`
90
+ `));return rx.set(e,n),n}});var sx=R(ix=>{var uU=e=>(e.fakePlatform||process.platform)==="win32";ix.isWindows=uU});var ax=R((bY,ox)=>{"use strict";var{builtinModules:cU}=q("module"),lU=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$"),fU=["node_modules","favicon.ico"];function hU(e){var t=[],r=[];if(e===null)return r.push("name cannot be null"),ro(t,r);if(e===void 0)return r.push("name cannot be undefined"),ro(t,r);if(typeof e!="string")return r.push("name must be a string"),ro(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"),fU.forEach(function(o){e.toLowerCase()===o&&r.push(o+" is a blacklisted name")}),cU.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(lU);if(n){var i=n[1],s=n[2];if(encodeURIComponent(i)===i&&encodeURIComponent(s)===s)return ro(t,r)}r.push("name can only contain URL-friendly characters")}return ro(t,r)}var ro=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};ox.exports=hU});var mx=R((CY,oo)=>{"use strict";var so=process.platform==="win32",{URL:Qp}=q("node:url"),qi=so?q("node:path/win32"):q("node:path"),{homedir:pU}=q("node:os"),dU=ru(),ux=to(),hx=ax(),{log:gU}=xs(),px=so?/\\|[/]/:/[/]/,dx=/^(?:git[+])?[a-z]+:/i,mU=/^[^@]+@[^:.]+\.[^:]+:.+$/i,ed=/[.](?:tgz|tar.gz|tar)$/i,yU=/:[0-9]+(\/|$)/i,vU=/^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/,EU=/^(?:[.]|~[/]|[/]|[a-zA-Z]:)/,cx="https://registry.npmjs.org";function no(e,t){let r,n;if(typeof e=="object")return e instanceof io&&(!t||t===e.where)?e:e.name&&e.rawSpec?no.resolve(e.name,e.rawSpec,t||e.where):no(e.raw,t||e.where);let i=e.indexOf("@",1),s=i>0?e.slice(0,i):e;return dx.test(e)?n=e:mU.test(e)?n=`git+ssh://${e}`:!s.startsWith("@")&&(px.test(s)||ed.test(s))?n=e:i>0?(r=s,n=e.slice(i+1)||"*"):hx(e).validForOldPackages?(r=e,n="*"):n=e,gx(r,n,t,e)}function AU(e){return e?e.toLowerCase().startsWith("file:")?!0:so?vU.test(e):EU.test(e):!1}function wU(e){return e?e.toLowerCase().startsWith("npm:"):!1}function gx(e,t,r,n){let i=new io({raw:n,name:e,rawSpec:t,fromArgument:n!=null});if(e&&(i.name=e),r||(r=process.cwd()),AU(t))return fx(i,r);if(wU(t))return kU(i,r);let s=dU.fromUrl(t,{noGitPlus:!0,noCommittish:!0});return s?OU(i,s):t&&dx.test(t)?_U(i):t&&(px.test(t)||ed.test(t))?fx(i,r):DU(i)}function SU(e,t=cx){let r=no(e);if(r.type!=="version")throw xU(r.type,r.raw);let n="pkg:npm/"+r.name.replace(/^@/,"%40")+"@"+r.rawSpec;return t!==cx&&(n+="?repository_url="+t),n}function bU(e,t,r){let n=new Error(`Invalid package name "${e}" of package "${r}": ${t.errors.join("; ")}.`);return n.code="EINVALIDPACKAGENAME",n}function CU(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 xU(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 io=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=hx(t);if(!r.validForOldPackages)throw bU(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 Zp(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}gU.warn("npm-package-arg",`ignoring unknown key "${n}"`)}}var PU=new Map([["\0","%00"],[" ","%09"],[`
91
+ `,"%0A"],["\r","%0D"],[" ","%20"],['"',"%22"],["#","%23"],["%","%25"],["?","%3F"],["[","%5B"],["\\",so?"/":"%5C"],["]","%5D"],["^","%5E"],["|","%7C"],["~","%7E"]]);function lx(e){let t="";for(let r=0;r<e.length;r++)t=`${t}${PU.get(e[r])??e[r]}`;return t.startsWith("file:")?t:`file:${t}`}function fx(e,t){e.type=ed.test(e.rawSpec)?"file":"directory",e.where=t;let r=lx(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 Qp(r,`${lx(qi.resolve(t))}/`),i=new Qp(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 so&&(s=s.replace(/^\/+([a-z]:\/)/i,"$1"),o=o.replace(/^\/+([a-z]:\/)/i,"$1")),/^\/~(\/|$)/.test(s)?(e.saveSpec=`file:${s.substr(1)}`,o=qi.resolve(pU(),s.substr(3))):qi.isAbsolute(r.slice(5))?e.saveSpec=`file:${qi.resolve(o)}`:e.saveSpec=`file:${qi.relative(t,o)}`,e.fetchSpec=qi.resolve(t,o),e.saveSpec=e.saveSpec.split("\\").join("/"),e.saveSpec.startsWith("file://")&&(e.saveSpec=`file:/${e.saveSpec.slice(7)}`),e}function OU(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(),Zp(e,t.committish),e}function RU(e,t){let r=new Error(`Unsupported URL Type "${e}": ${t}`);return r.code="EUNSUPPORTEDPROTOCOL",r}function _U(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(yU))return e.type="git",Zp(e,n[2]),e.fetchSpec=n[1],e}else t.startsWith("git+file://")&&(t=t.replace(/\\/g,"/"));let r=new Qp(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",Zp(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 RU(r.protocol,t)}return e}function kU(e,t){let r=no(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 DU(e){e.registry=!0;let t=e.rawSpec.trim();e.saveSpec=null,e.fetchSpec=t;let r=ux.valid(t,!0),n=ux.validRange(t,!0);if(r)e.type="version";else if(n)e.type="range";else{if(encodeURIComponent(t)!==t)throw CU(t,e.raw);e.type="tag"}return e}oo.exports=no;oo.exports.resolve=gx;oo.exports.toPurl=SU;oo.exports.Result=io});var wx=R((xY,Ax)=>{var Mn=q("node:process"),FU=q("node:os"),LU=q("node:fs");function TU(e){return e.includes("libc.musl-")||e.includes("ld-musl-")}function yx(){return Mn.platform}function vx(){return Mn.arch}var NU="/usr/bin/ldd";function IU(){try{let e=LU.readFileSync(NU,"utf-8");return e.includes("musl")?"musl":e.includes("GNU C Library")?"glibc":null}catch{return}}function $U(){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(TU)?jr="musl":jr=null,jr}var jr;function Ex(e){if(e==="linux")return jr===void 0&&(jr=IU(),jr===void 0&&(jr=$U())),jr}function BU(e={}){let t=e.os||yx();return{cpu:{name:e.cpu||vx()},libc:{name:e.libc||Ex(t)},os:{name:t,version:e.osVersion||FU.release()},packageManager:{name:"npm",version:e.npmVersion},runtime:{name:"node",version:e.nodeVersion||Mn.version}}}Ax.exports={cpu:vx,libc:Ex,os:yx,devEngines:BU}});var bx=R((PY,Sx)=>{var MU=ji(),jU=Yp(),qU=["ignore","warn","error","download"],WU=["name","version","onFail"],GU=["packageManager","runtime","cpu","libc","os"];function UU(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(!WU.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(!qU.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(jU(e.version)){if(!MU(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 HU(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(!GU.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=UU(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}Sx.exports={checkDevEngines:HU}});var Px=R((OY,xx)=>{var Cx=to(),Wu=wx(),{checkDevEngines:YU}=bx(),zU=(e,t,r,n=!1)=>{let i=n?null:r,s=e.engines,o={includePrerelease:!0};if(!s)return;let a=i&&s.node&&!Cx.satisfies(i,s.node,o),c=t&&s.npm&&!Cx.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"})},VU=(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?td(n,e.os):!0,a=e.cpu?td(i,e.cpu):!0,c=e.libc?td(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"})},td=(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};xx.exports={checkEngine:zU,checkPlatform:VU,checkDevEngines:YU,currentEnv:Wu}});var kx=R((RY,_x)=>{var{join:Ox,basename:Rx}=q("path"),KU=e=>e.bin?typeof e.bin=="string"?XU(e):Array.isArray(e.bin)?JU(e):typeof e.bin=="object"?nd(e):rd(e):rd(e),XU=e=>e.name?(e.bin={[e.name]:e.bin},nd(e)):rd(e),JU=e=>(e.bin=e.bin.reduce((t,r)=>(t[Rx(r)]=r,t),{}),nd(e)),rd=e=>(delete e.bin,e),nd=e=>{let t=e.bin,r={},n=!1;return Object.keys(t).forEach(i=>{let s=Ox("/",Rx(i.replace(/\\|:/g,"/"))).slice(1);if(typeof t[i]!="string"||!s)return;let o=Ox("/",t[i].replace(/\\/g,"/")).replace(/\\/g,"/").slice(1);o&&(r[s]=o,n=!0)}),n?e.bin=r:delete e.bin,e};_x.exports=KU});var Lx=R((_Y,Fx)=>{"use strict";var Dx=mx(),ao=to(),{checkEngine:QU}=Px(),ZU=kx(),id=(e,t,r)=>{try{return QU(e,t,r),!0}catch{return!1}},Gu=(e,t,r)=>!e||!e[t]||Date.parse(e[t])<=r,eH={includePrerelease:!0,loose:!0},Uu=(e,t)=>t&&ao.satisfies(e,t,eH),sd=(e,t)=>e&&Uu(e.version,t)?{...e,_shouldAvoid:!0}:e,uo=(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=uo(e,t,_);if(!T||!T._shouldAvoid)return T;let b=uo(e,`^${T.version}`,_);if(!b||!b._shouldAvoid)return{...b,_outsideDependencyRange:!0,_isSemVerMajor:!1};let g=uo(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=Dx.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)?sd(h[_]||p[_]||d[_],c):uo(e,`<=${_}`,r)}if(t&&P==="version"){let _=ao.clean(t,{loose:!0}),T=h[_]||p[_]||d[_];return Gu(l,_,m)?sd(T,c):null}let F=P==="range"?t:"*",D=C[n];if(D&&(F==="*"||ao.satisfies(D,F,{loose:!0}))&&!d[D]&&!Uu(D,c)){let _=h[D];if(_&&Gu(l,D,m)&&id(_,o,s)&&!_.deprecated&&!p[D])return _}let A=Object.entries(h).concat(Object.entries(p)).concat(Object.entries(d)).filter(([_])=>Gu(l,_,m));if(!A.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=A.filter(([_])=>ao.satisfies(_,F,{loose:!0})).sort((_,T)=>{let[b,g]=_,[y,w]=T,x=!Uu(b,c),E=!Uu(y,c),S=!d[b],L=!d[y],N=!p[b],I=!p[y],B=!g.deprecated,W=!w.deprecated,Y=id(g,o,s),se=id(w,o,s);return E-x||L-S||I-N||(W&&se)-(B&&Y)||se-Y||W-B||ao.rcompare(b,y,O)});return sd(k[0]&&k[0][1],c)};Fx.exports=(e,t,r={})=>{let n=uo(e,t,r),i=n&&ZU(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:Dx.resolve(e.name,t).type,wanted:t,versions:Object.keys(e.versions??{}),name:f,distTags:e["dist-tags"],defaultTag:c})}});var $x=R((kY,Ix)=>{var tH=new Set(["github.com","gist.github.com","gitlab.com","bitbucket.com","bitbucket.org"]),{parse:rH}=q("url"),Tx=q("path"),nH=Jp(),co=Xs(),{isWindows:Hu}=sx(),iH=Lx(),od=q("fs/promises");Ix.exports=(e,t="HEAD",r=null,n={})=>nH(e,n).then(i=>oH(e,i,t,aH(i,t,n),r||sH(e,n.cwd),n));var ad=(e,t)=>t.gitShallow===!1||t.gitShallow?t.gitShallow:tH.has(rH(e).host),sH=(e,t=process.cwd())=>Tx.resolve(t,Tx.basename(e.replace(/[/\\]?\.git$/,""))),oH=(e,t,r,n,i,s)=>n?n.sha===t.refs.HEAD.sha?lH(e,n,i,s):n.type==="tag"||n.type==="branch"?cH(e,n,i,s):uH(e,n,i,s):fH(e,r,i,s),aH=(e,t,r)=>{let{spec:n={}}=r;return t=n.gitCommittish||t,e?n.gitRange?iH(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},uH=(e,t,r,n)=>{let i=ad(e,n),s=["fetch","origin",t.rawRef].concat(i?["--depth=1"]:[]),o=a=>co(a,{...n,cwd:r});return od.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(()=>Nx(r,n)).then(()=>t.sha)},cH=(e,t,r,n)=>{let i=["clone","-b",t.ref,e,r,"--recurse-submodules"];return ad(e,n)&&i.push("--depth=1"),Hu(n)&&i.push("--config","core.longpaths=true"),co(i,n).then(()=>t.sha)},lH=(e,t,r,n)=>{let i=["clone",e,r,"--recurse-submodules"];return ad(e,n)&&i.push("--depth=1"),Hu(n)&&i.push("--config","core.longpaths=true"),co(i,n).then(()=>t.sha)},Nx=async(e,t)=>await od.stat(`${e}/.gitmodules`).then(()=>!0).catch(()=>!1)?co(["submodule","update","-q","--init","--recursive"],{...t,cwd:e}):null,fH=(e,t,r,n)=>{let i=Hu(n)?["--config","core.longpaths=true"]:[],s=["clone","--mirror","-q",e,r+"/.git"],o=a=>co(a,{...n,cwd:r});return od.mkdir(r,{recursive:!0}).then(()=>o(s.concat(i))).then(()=>o(["init"])).then(()=>o(["checkout",t])).then(()=>Nx(r,n)).then(()=>o(["rev-parse","--revs-only","HEAD"])).then(({stdout:a})=>a.trim())}});var ud=R((DY,Bx)=>{var{stat:hH}=q("fs/promises");Bx.exports=({cwd:e=process.cwd()}={})=>hH(e+"/.git").then(()=>!0,()=>!1)});var jx=R((FY,Mx)=>{var pH=ud(),{dirname:dH}=q("path");Mx.exports=async({cwd:e=process.cwd(),root:t}={})=>{for(;;){if(await pH({cwd:e}))return e;let r=dH(e);if(e===t||e===r)return null;e=r}}});var Wx=R((LY,qx)=>{var gH=Xs();qx.exports=(e={})=>gH(["status","--porcelain=v1","-uno"],e).then(t=>!t.stdout.trim().split(/\r?\n+/).map(r=>r.trim()).filter(r=>r).length)});var Ux=R((TY,Gx)=>{Gx.exports={clone:$x(),revs:Jp(),spawn:Xs(),is:ud(),find:jx(),isClean:Wx(),errors:Lp()}});var cd=R((NY,mH)=>{mH.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 Hx=R((IY,yH)=>{yH.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 Yx=R(($Y,vH)=>{vH.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 Vx=R((BY,zx)=>{"use strict";var EH=[].concat(cd()).concat(Hx()),AH=Yx();zx.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(EH.indexOf(m)!==-1)return{type:"LICENSE",string:m};if(AH.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 Xx=R((MY,Kx)=>{"use strict";Kx.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 ld=R((jY,Jx)=>{"use strict";var wH=Vx(),SH=Xx();Jx.exports=function(e){return SH(wH(e))}});var oP=R((qY,sP)=>{var bH=ld(),CH=cd();function Yu(e){try{return bH(e),!0}catch{return!1}}function iP(e,t){var r=t[0].length-e[0].length;return r!==0?r:e[0].toUpperCase().localeCompare(t[0].toUpperCase())}var Qx=[["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(iP),xH=0,PH=1,Zx=[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"}],fd=CH.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},{}),OH=Object.keys(fd).map(function(t){return[t,fd[t]]}).filter(function(t){return t[1].length===1&&t[0]!==null&&t[0]!=="APL"}).map(function(t){return[t[0],t[1][0]]});fd=void 0;var eP=[["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(OH).sort(iP),RH=0,_H=1,tP=function(e){for(var t=0;t<Zx.length;t++){var r=Zx[t](e).trim();if(r!==e&&Yu(r))return r}return null},rP=function(e){for(var t=e.toUpperCase(),r=0;r<eP.length;r++){var n=eP[r];if(t.indexOf(n[RH])>-1)return n[_H]}return null},nP=function(e,t){for(var r=0;r<Qx.length;r++){var n=Qx[r],i=n[xH];if(e.indexOf(i)>-1){var s=e.replace(i,n[PH]),o=t(s);if(o!==null)return o}}return null};sP.exports=function(e,t){t=t||{};var r=t.upgrade===void 0?!0:!!t.upgrade;function n(a){return r?kH(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=tP(e);return o!==null||(o=nP(e,function(a){return Yu(a)?a:tP(a)}),o!==null)||(o=rP(e),o!==null)||(o=nP(e,rP),o!==null)?n(o):null};function kH(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 lP=R((WY,cP)=>{var DH=ld(),FH=oP(),aP='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',LH=/^SEE LICEN[CS]E IN (.+)$/;function uP(e,t){return t.slice(0,e.length)===e}function hd(e){if(e.hasOwnProperty("license")){var t=e.license;return uP("LicenseRef",t)||uP("DocumentRef",t)}else return hd(e.left)||hd(e.right)}cP.exports=function(e){var t;try{t=DH(e)}catch{var r;if(e==="UNLICENSED"||e==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(r=LH.exec(e))return{validForOldPackages:!0,validForNewPackages:!0,inFile:r[1]};var n={validForOldPackages:!1,validForNewPackages:!1,warnings:[aP]};if(e.trim().length!==0){var i=FH(e);i&&n.warnings.push('license is similar to the valid expression "'+i+'"')}return n}return hd(t)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[aP]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}}});var mP=R((GY,gP)=>{var pd=q("node:url"),fP=ru(),TH=lP(),hP={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"},pP=e=>e.includes("@")&&e.indexOf("@")<e.lastIndexOf(".");function NH(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 dP(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 IH(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=NH(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=fP.fromUrl(e.repository.url);o&&o.bugs()&&(e.bugs={url:o.bugs()})}else if(e.bugs){if(typeof e.bugs=="string")pP(e.bugs)?e.bugs={email:e.bugs}:pd.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"&&pd.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"&&pP(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=fP.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):pd.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"):TH(s).validForNewPackages||t?.push("license should be a valid SPDX license expression"):t?.push("No license field."),e.author&&(e.author=dP(e.author)),["maintainers","contributors"].forEach(function(o){Array.isArray(e[o])&&(e[o]=e[o].map(dP))});for(let o in hP)Object.prototype.hasOwnProperty.call(e,o)&&t?.push(`${o} should probably be ${hP[o]}.`)}gP.exports={normalizeData:IH}});var wP=R((UY,AP)=>{var $H=Va(),BH=Uh(),yn=q("node:fs/promises"),ke=q("node:path"),{log:MH}=xs(),dd;function yP(){return dd||(dd=ru()),dd}var gd;function zu(){return gd||(gd=Pp().glob),gd}function vP(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(lo(r));if(!n){delete e.bin[r],t?.push(`removed invalid "bin[${r}]"`);continue}let i=lo(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 jH(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(lo(n));if(!r.length)t?.push('empty "man" was removed');else return e.man=r,e}delete e.man}function qH(e){return!e.match(/[/@\s+%:]/)&&e===encodeURIComponent(e)}function WH(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 EP(e){return e.replace(/\\|:/g,"/")}function lo(e){let t=EP(ke.join(".",ke.join("/",EP(e))));return t.startsWith("./")?"":t}var GH=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(".")||!(WH(o.name)||qH(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(!$H(o.version,u))throw new Error(`Invalid version: "${o.version}"`);let f=BH(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=lo(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("/"))}jH(o,i)}if((r.includes("bin")||r.includes("binDir")||r.includes("binRefs"))&&vP(o,i),r.includes("binDir")&&o.directories?.bin&&!o.bin){let u=ke.resolve(e.path,lo(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},{}),vP(o,i)}if(r.includes("gitHead")&&!o.gitHead){let f=await Ux().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=yP().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=yP().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}=mP();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{MH.warn("package-json",c,`No bin file found at ${o.bin[u]}`)}};AP.exports=GH});var xP=R((HY,CP)=>{var{readFile:UH}=q("fs/promises"),HH=Wh();async function SP(e){try{return await UH(e,"utf8")}catch(t){throw t.message=`Could not read package.json: ${t}`,t}}function bP(e){try{return HH(e)}catch(t){throw t.message=`Invalid package.json: ${t}`,t}}async function YH(e){let t=await SP(e);return bP(t)}CP.exports={read:SP,parse:bP,readPackage:YH}});var OP=R((YY,PP)=>{function zH(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:A,directories:O,files:k,workspaces:_,scripts:T,config:b,dependencies:g,devDependencies:y,peerDependencies:w,peerDependenciesMeta:x,optionalDependencies:E,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 A<"u"?{man:A}:{},...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 E<"u"?{optionalDependencies:E}:{},...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}:{},...$}}PP.exports={packageSort:zH}});var vd=R((zY,kP)=>{var{readFile:VH,writeFile:KH}=q("node:fs/promises"),{resolve:RP}=q("node:path"),XH=Wh(),_P=dS(),JH=mS(),QH=vS(),md=wP(),{read:ZH,parse:e9}=xP(),{packageSort:t9}=OP(),r9=new Set([_P,JH,QH]),n9=new Set([..._P.knownKeys,"scripts","workspaces"]),yd=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 ZH(this.filename)}catch(i){if(!r)throw i;n=i}if(n){let i=RP(this.path,"index.js"),s;try{s=await VH(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=e9(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=XH(t),this}get content(){return this.#r}get path(){return this.#e}get filename(){if(this.path)return RP(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 r9)this.#r=r({content:t,originalContent:this.content});for(let[r,n]of Object.entries(t))n9.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?t9(i):i,c=`${JSON.stringify(a,null,s)}
96
+ `.replace(/\n/g,o);if(c.trim()!==this.#t.trim()){let u=await KH(this.filename,c);return this.#t=c,u}}async normalize(t={}){return t.steps||(t.steps=this.constructor.normalizeSteps),await md(this,t),this}async prepare(t={}){return t.steps||(t.steps=this.constructor.prepareSteps),await md(this,t),this}async fix(t={}){return t.steps=this.constructor.fixSteps,await md(this,t),this}};kP.exports=yd});var LP=R((VY,FP)=>{var{basename:DP,dirname:i9}=q("path"),s9=(e,t)=>e.charAt(0)==="@"?`${e}/${t}`:t;FP.exports=e=>e?s9(DP(i9(e)),DP(e)):!1});var MP=R((KY,BP)=>{var TP=q("path"),o9=LP(),{minimatch:fo}=$r(),a9=vd(),{glob:u9}=Pp();function c9(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];fo(n,a)&&r.splice(o,1)}t.push(n)}}for(let n of r)for(let i of fo.match(t,n))t.splice(t.indexOf(i),1);return{patterns:t,negatedPatterns:r}}function NP(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 c9(t)}function IP(e,t){return e.name||o9(t)}function l9(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 f9(e){return new Map(Array.from(e,t=>t.reverse()))}async function $P(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}=NP(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 u9(r.map(f=>l9(f)),o());a=a.sort((f,l)=>f.localeCompare(l,"en"));let c=[];for(let f of r)c.push(...a.filter(l=>fo(l,f,{partial:!0,windowsPathsNoEscape:!0})));for(let f of c){let l;try{l=await a9.normalize(TP.join(e.cwd,f))}catch(d){if(d.code==="ENOENT"||d.code==="ENOTDIR")continue;throw d}let h=IP(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?h9(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 h9(e,t,r){e.push(`package '${t}' has conflicts in the following paths:`);for(let n of r)e.push(" "+n)}$P.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}=NP(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 fo.match(o,a))o.splice(o.indexOf(c),1);for(let a of i)for(let c of fo.match(o,a)){let u=TP.join(e.cwd,c),f=IP(t[c],u);n.set(u,f)}return f9(n)};BP.exports=$P});var UP=R((XY,GP)=>{var{walkUp:p9}=uw(),jP=Sh(),Wi=Rh(),{log:cr,time:d9}=xs(),{resolve:go,dirname:Ku,join:Ed}=q("node:path"),{homedir:g9}=q("node:os"),{readFile:m9,writeFile:y9,chmod:v9,unlink:E9,stat:qP,mkdir:A9}=q("node:fs/promises"),w9=["global-prefix","local-prefix","npm-version","node-gyp"],Ad=(...e)=>qP(go(...e)).then(t=>t.isFile()).catch(()=>!1),S9=(...e)=>qP(go(...e)).then(t=>t.isDirectory()).catch(()=>!1),Xu=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Gi=Ka(),jn=Vw(),b9=$h(),C9=Qw(),x9=rS(),WP=new Set(["global","user","project"]),ho=new Set(["default","builtin",...WP,"env","cli"]),wd=class{#e=!1;#r;#t=null;static get typeDefs(){return Gi}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=Ed(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=[...ho];this.data=new Map;let m=null;for(let v of d)this.data.set(v,m=new Sd(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&&!ho.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(!ho.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)[Ui]=null,this.#t=null}get flat(){if(this.#t)return this.#t;let t=d9.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(!ho.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(Ed(this.npmPath,"package.json")).version}catch{}this.#h(t,"default","default values");let{data:r}=this.data.get("default");Object.defineProperty(r,"globalconfig",{get:()=>go(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||g9()}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=Ed(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`);Wi.invalidHandler=(r,n,i)=>this.invalidHandler(r,n,i,"command line options","cli");let t=Wi(this.types,this.shorthands,this.argv);Wi.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[Ui]=!0,Wi.invalidHandler=(n,i,s)=>this.invalidHandler(n,i,s,r.source,t),Wi.clean(r.data,this.types,Gi),Wi.invalidHandler=null,r[Ui]}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}=iS();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]=[...ho],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=aS();cr.warn("invalid config",t+"="+JSON.stringify(r),`set in ${i}`),this.data.get(s)[Ui]=!1,Array.isArray(n)&&(n.includes(Gi.url.type)?n=Gi.url.type:n.includes(Gi.path.type)&&(n=Gi.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=b9(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(w9.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 C9(t,r,this,n)}async#l(t,r){cr.silly("config",`load:file:${t}`),await m9(t,"utf8").then(n=>{let i=jP.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(go(this.npmPath,"npmrc"),"builtin")}async loadProjectConfig(){if(await this.loadLocalPrefix(),this.localPackage==null&&(this.localPackage=await Ad(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=go(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 p9(this.cwd)){if(this.excludeNpmCwd&&i===this.npmPath)break;let s=await Ad(i,"package.json");if(!this.localPrefix&&(s||await S9(i,"node_modules"))){if(this.localPrefix=i,this.localPackage=s,r===!1||n)return;continue}if(this.localPrefix&&s){let o=vd(),{content:a}=await o.normalize(i).catch(()=>({content:{}}));if(!a?.workspaces)continue;let u=await MP()({cwd:i,pkg:a});for(let f of u.values())if(f===this.localPrefix){await Ad(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(!WP.has(t))throw new Error("invalid config location param: "+t);let r=this.data.get(t);if(r[po]=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=jP.stringify(r.raw).trim()+`
99
+ `;if(!n.trim()){await E9(r.source).catch(()=>{});return}let i=Ku(r.source);await A9(i,{recursive:!0}),await y9(r.source,n,"utf8");let s=t==="user"?384:438;await v9(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(){x9(this)}},po=Symbol("loadError"),Ui=Symbol("valid"),Sd=class{#e;#r=null;#t=null;constructor(t){this.#e=Object.create(t&&t.data),this.#t={},this[Ui]=!0}get data(){return this.#e}get valid(){return this[Ui]}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[po]||Object.keys(this.#t).length)throw new Error("cannot set ConfigData loadError after load");this[po]=t}get loadError(){return this[po]}set raw(t){if(Object.keys(this.#t).length||this[po])throw new Error("cannot set ConfigData raw after load");this.#t=t}get raw(){return this.#t}};GP.exports=wd});var eA=Ld(VE(),1);import{join as QE}from"node:path";import V2 from"node:fs/promises";import ZE from"node:path";import{homedir as K2}from"node:os";var H2=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}=H2(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 KE from"https";import nh from"fs";import Y2 from"path";var z2={port:443,method:"GET"},XE=async e=>new Promise((t,r)=>{let n={...z2,...e};KE.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()});async function ih(e,t){return new Promise((r,n)=>{KE.get(e,i=>{if(i.statusCode===301||i.statusCode===302){let o=i.headers.location;if(o){ih(o,t).then(r).catch(n);return}else{n(new Error("Redirect without location header"));return}}if(i.statusCode!==200){n(new Error(`HTTP ${i.statusCode}: ${i.statusMessage}`));return}let s;try{let o=Y2.dirname(t);nh.existsSync(o)||nh.mkdirSync(o,{recursive:!0}),s=nh.createWriteStream(t)}catch(o){n(o);return}s.on("error",o=>{n(o)}),i.pipe(s),s.on("finish",()=>{r()})}).on("error",i=>{n(i)})})}var JE=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 XE(n)}catch(i){if(i.statusCode===404)return;throw i}};var tA="me",rA="me@example.com",Ci=class{constructor(t,r,n){this.id=t;this.workspaceFileName=r;let i;if(n&&ZE.basename(n)===this.workspaceFileName)i=ZE.resolve(n);else{let o=(0,eA.getWorkspaceRoot)(process.cwd())||"";i=QE(o,this.workspaceFileName)}this.workspaceFilePath=i;let s=process.env.HOME||process.env.USERPROFILE||K2()||"";this.userFilePath=QE(s,r),this.feeds=new Map}async isSupportedInRepo(){try{await V2.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 JE({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 vA(e){return typeof e>"u"||e===null}function X2(e){return typeof e=="object"&&e!==null}function J2(e){return Array.isArray(e)?e:vA(e)?[]:[e]}function Q2(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 Z2(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function eI(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var tI=vA,rI=X2,nI=J2,iI=Z2,sI=eI,oI=Q2,We={isNothing:tI,isObject:rI,toArray:nI,repeat:iI,isNegativeZero:sI,extend:oI};function EA(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+=`
100
100
 
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+`
101
+ `+e.mark.snippet),n+" "+r):n}function ws(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=EA(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ws.prototype=Object.create(Error.prototype);ws.prototype.constructor=ws;ws.prototype.toString=function(t){return this.name+": "+EA(this,t)};var gt=ws;function sh(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 oh(e,t){return We.repeat(" ",t-e.length)+e}function aI(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=sh(e.buffer,n[o-c],i[o-c],e.position-(n[o]-n[o-c]),l),a=We.repeat(" ",t.indent)+oh((e.line-c+1).toString(),f)+" | "+u.str+`
102
+ `+a;for(u=sh(e.buffer,n[o],i[o],e.position,l),a+=We.repeat(" ",t.indent)+oh((e.line+1).toString(),f)+" | "+u.str+`
103
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+=`
104
+ `,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)u=sh(e.buffer,n[o+c],i[o+c],e.position-(n[o]-n[o+c]),l),a+=We.repeat(" ",t.indent)+oh((e.line+c+1).toString(),f)+" | "+u.str+`
105
+ `;return a.replace(/\n$/,"")}var uI=aI,cI=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],lI=["scalar","sequence","mapping"];function fI(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function hI(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(cI.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=fI(t.styleAliases||null),lI.indexOf(this.kind)===-1)throw new gt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Je=hI;function nA(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 pI(){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 uh(e){return this.extend(e)}uh.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(uh.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=nA(i,"implicit"),i.compiledExplicit=nA(i,"explicit"),i.compiledTypeMap=pI(i.compiledImplicit,i.compiledExplicit),i};var AA=uh,wA=new Je("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),SA=new Je("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),bA=new Je("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),CA=new AA({explicit:[wA,SA,bA]});function dI(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function gI(){return null}function mI(e){return e===null}var xA=new Je("tag:yaml.org,2002:null",{kind:"scalar",resolve:dI,construct:gI,predicate:mI,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function yI(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 vI(e){return e==="true"||e==="True"||e==="TRUE"}function EI(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var PA=new Je("tag:yaml.org,2002:bool",{kind:"scalar",resolve:yI,construct:vI,predicate:EI,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 wI(e){return 48<=e&&e<=55}function SI(e){return 48<=e&&e<=57}function bI(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(!wI(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!SI(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function CI(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 xI(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!We.isNegativeZero(e)}var OA=new Je("tag:yaml.org,2002:int",{kind:"scalar",resolve:bI,construct:CI,predicate:xI,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 OI(e){return!(e===null||!PI.test(e)||e[e.length-1]==="_")}function RI(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 _I=/^[-+]?[0-9]+e/;function kI(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),_I.test(r)?r.replace("e",".e"):r}function DI(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||We.isNegativeZero(e))}var RA=new Je("tag:yaml.org,2002:float",{kind:"scalar",resolve:OI,construct:RI,predicate:DI,represent:kI,defaultStyle:"lowercase"}),_A=CA.extend({implicit:[xA,PA,OA,RA]}),kA=_A,DA=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),FA=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 FI(e){return e===null?!1:DA.exec(e)!==null||FA.exec(e)!==null}function LI(e){var t,r,n,i,s,o,a,c=0,u=null,f,l,h;if(t=DA.exec(e),t===null&&(t=FA.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 TI(e){return e.toISOString()}var LA=new Je("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:FI,construct:LI,instanceOf:Date,represent:TI});function NI(e){return e==="<<"||e===null}var TA=new Je("tag:yaml.org,2002:merge",{kind:"scalar",resolve:NI}),ph=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
106
+ \r`;function II(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=ph;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 $I(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=ph,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 BI(e){var t="",r=0,n,i,s=e.length,o=ph;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 MI(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var NA=new Je("tag:yaml.org,2002:binary",{kind:"scalar",resolve:II,construct:$I,predicate:MI,represent:BI}),jI=Object.prototype.hasOwnProperty,qI=Object.prototype.toString;function WI(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,qI.call(i)!=="[object Object]")return!1;for(s in i)if(jI.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 GI(e){return e!==null?e:[]}var IA=new Je("tag:yaml.org,2002:omap",{kind:"sequence",resolve:WI,construct:GI}),UI=Object.prototype.toString;function HI(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],UI.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function YI(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 $A=new Je("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:HI,construct:YI}),zI=Object.prototype.hasOwnProperty;function VI(e){if(e===null)return!0;var t,r=e;for(t in r)if(zI.call(r,t)&&r[t]!==null)return!1;return!0}function KI(e){return e!==null?e:{}}var BA=new Je("tag:yaml.org,2002:set",{kind:"mapping",resolve:VI,construct:KI}),dh=kA.extend({implicit:[LA,TA],explicit:[NA,IA,$A,BA]}),fn=Object.prototype.hasOwnProperty,Ta=1,MA=2,jA=3,Na=4,ah=1,XI=2,iA=3,JI=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,QI=/[\x85\u2028\u2029]/,ZI=/[,\[\]\{\}]/,qA=/^(?:!|!!|![a-z\-]+!)$/i,WA=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function sA(e){return Object.prototype.toString.call(e)}function Er(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 e$(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function t$(e){return e===120?2:e===117?4:e===85?8:0}function r$(e){return 48<=e&&e<=57?e-48:-1}function oA(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 n$(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var GA=new Array(256),UA=new Array(256);for(Dn=0;Dn<256;Dn++)GA[Dn]=oA(Dn)?1:0,UA[Dn]=oA(Dn);var Dn;function i$(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||dh,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 HA(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=uI(r),new gt(t,r)}function te(e,t){throw HA(e,t)}function Ia(e,t){e.onWarning&&e.onWarning.call(null,HA(e,t))}var aA={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],qA.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'),WA.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 JI.test(a)&&te(e,"the stream contains non-printable characters");e.result+=a}}function uA(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"&&sA(i[u])==="[object Object]"&&(i[u]="[object Object]");if(typeof i=="object"&&sA(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)uA(e,t,s[u],r);else uA(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 gh(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(Er(i))for(gh(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 mh(e,t){t===1?e.result+=" ":t>1&&(e.result+=We.repeat(`
108
+ `,t-1))}function s$(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(Er(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),mh(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 o$(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 Er(r)?(ln(e,n,i,!0),mh(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 a$(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),Er(a))Me(e,!1,t);else if(a<256&&GA[a])e.result+=UA[a],e.position++;else if((o=t$(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=e$(a))>=0?s=(s<<4)+o:te(e,"expected hexadecimal character");e.result+=n$(s),e.position++}else te(e,"unknown escape sequence");r=n=e.position}else Er(a)?(ln(e,r,n,!0),mh(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 u$(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 c$(e,t){var r,n,i=ah,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)ah===i?i=l===43?iA:XI:te(e,"repeat of a chomping mode identifier");else if((f=r$(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(!Er(l)&&l!==0)}for(;l!==0;){for(gh(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),Er(l)){c++;continue}if(e.lineIndent<a){i===iA?e.result+=We.repeat(`
109
+ `,s?1+c:c):i===ah&&s&&(e.result+=`
110
110
  `);break}for(n?Fn(l)?(u=!0,e.result+=We.repeat(`
111
111
  `,s?1+c:c)):u?(u=!1,e.result+=We.repeat(`
112
112
  `,c+1)):c===0?s&&(e.result+=" "):e.result+=We.repeat(`
113
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(`
114
+ `,s?1+c:c),s=!0,o=!0,c=0,r=e.position;!Er(l)&&l!==0;)l=e.input.charCodeAt(++e.position);ln(e,r,e.position,!1)}return!0}function cA(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,jA,!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 l$(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,MA,!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 f$(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),qA.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),ZI.test(s)&&te(e,"tag suffix cannot contain flow indicator characters")}s&&!WA.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 h$(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 p$(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||jA===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(;f$(e)||h$(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||MA===r?m=t:m=t+1,v=e.position-e.lineStart,c===1?a&&(cA(e,v)||l$(e,v,m))||u$(e,m)?f=!0:(o&&c$(e,m)||o$(e,m)||a$(e,m)?f=!0:p$(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&te(e,"alias node should not have any properties")):s$(e,m,Ta===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(f=a&&cA(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 d$(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&&!Er(o));break}if(Er(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&&gh(e),fn.call(aA,n)?aA[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&&QI.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 YA(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 i$(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;)d$(r);return r.documents}function g$(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=YA(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function m$(e,t){var r=YA(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 y$=g$,v$=m$,zA={loadAll:y$,load:v$},VA=Object.prototype.toString,KA=Object.prototype.hasOwnProperty,yh=65279,E$=9,Ss=10,A$=13,w$=32,S$=33,b$=34,ch=35,C$=37,x$=38,P$=39,O$=42,XA=44,R$=45,$a=58,_$=61,k$=62,D$=63,F$=64,JA=91,QA=93,L$=96,ZA=123,T$=124,ew=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 N$=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],I$=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function $$(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&&KA.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function B$(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 M$=1,bs=2;function j$(e){this.schema=e.schema||dh,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=$$(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==='"'?bs:M$,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 lA(e,t){for(var r=We.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
116
116
  `,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
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]===`
117
+ `&&(s+=r),s+=o;return s}function lh(e,t){return`
118
+ `+We.repeat(" ",e.indent*t)}function q$(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===w$||e===E$}function Cs(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==yh||65536<=e&&e<=1114111}function fA(e){return Cs(e)&&e!==yh&&e!==A$&&e!==Ss}function hA(e,t,r){var n=fA(e),i=n&&!Ba(e);return(r?n:n&&e!==XA&&e!==JA&&e!==QA&&e!==ZA&&e!==ew)&&e!==ch&&!(t===$a&&!i)||fA(t)&&!Ba(t)&&e===ch||t===$a&&i}function W$(e){return Cs(e)&&e!==yh&&!Ba(e)&&e!==R$&&e!==D$&&e!==$a&&e!==XA&&e!==JA&&e!==QA&&e!==ZA&&e!==ew&&e!==ch&&e!==x$&&e!==O$&&e!==S$&&e!==T$&&e!==_$&&e!==k$&&e!==P$&&e!==b$&&e!==C$&&e!==F$&&e!==L$}function G$(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 tw(e){var t=/^\n* /;return t.test(e)}var rw=1,fh=2,nw=3,iw=4,xi=5;function U$(e,t,r,n,i,s,o,a){var c,u=0,f=null,l=!1,h=!1,p=n!==-1,d=-1,m=W$(As(e,0))&&G$(As(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=As(e,c),!Cs(u))return xi;m=m&&hA(u,f,a),f=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(u=As(e,c),u===Ss)l=!0,p&&(h=h||c-d-1>n&&e[d+1]!==" ",d=c);else if(!Cs(u))return xi;m=m&&hA(u,f,a),f=u}h=h||p&&c-d-1>n&&e[d+1]!==" "}return!l&&!h?m&&!o&&!i(e)?rw:s===bs?xi:fh:r>9&&tw(e)?xi:o?s===bs?xi:fh:h?iw:nw}function H$(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===bs?'""':"''";if(!e.noCompatMode&&(N$.indexOf(t)!==-1||I$.test(t)))return e.quotingType===bs?'"'+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 q$(e,u)}switch(U$(t,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!n,i)){case rw:return t;case fh:return"'"+t.replace(/'/g,"''")+"'";case nw:return"|"+pA(t,e.indent)+dA(lA(t,s));case iw:return">"+pA(t,e.indent)+dA(lA(Y$(t,o),s));case xi:return'"'+z$(t)+'"';default:throw new gt("impossible error: invalid scalar style")}}()}function pA(e,t){var r=tw(e)?String(t):"",n=e[e.length-1]===`
119
119
  `,i=n&&(e[e.length-2]===`
120
120
  `||e===`
121
121
  `),s=i?"+":n?"":"-";return r+s+`
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]===`
122
+ `}function dA(e){return e[e.length-1]===`
123
+ `?e.slice(0,-1):e}function Y$(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,gA(e.slice(0,u),t)}(),i=e[0]===`
125
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+=`
126
+ `:"")+gA(c,t),i=s}return n}function gA(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
127
  `+e.slice(i,s),i=s+1),o=a;return c+=`
128
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};
129
+ `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function z$(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&&Cs(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||B$(r);return t}function V$(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 mA(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+=lh(e,t)),e.dump&&Ss===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function K$(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 X$(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+=lh(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&&Ss===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,l&&(h+=lh(e,t)),Nr(e,t+1,f,!0,l)&&(e.dump&&Ss===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function yA(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,VA.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(KA.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,yA(e,r,!1)||yA(e,r,!0);var a=VA.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?(X$(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 Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?mA(e,t-1,e.dump,i):mA(e,t,e.dump,i),h&&(e.dump="&ref_"+l+e.dump)):(V$(e,t,e.dump),h&&(e.dump="&ref_"+l+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&H$(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 J$(e,t){var r=[],n=[],i,s;for(hh(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function hh(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)hh(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)hh(e[n[i]],t,r)}function Q$(e,t){t=t||{};var r=new j$(t);r.noRefs||J$(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Nr(r,0,n,!0,!0)?r.dump+`
130
+ `:""}var Z$=Q$,eB={dump:Z$};function vh(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 tB=Je,rB=AA,nB=CA,iB=_A,sB=kA,oB=dh,aB=zA.load,uB=zA.loadAll,cB=eB.dump,lB=gt,fB={binary:NA,float:RA,map:bA,null:xA,pairs:$A,set:BA,timestamp:LA,bool:PA,int:OA,merge:TA,omap:IA,seq:SA,str:wA},hB=vh("safeLoad","load"),pB=vh("safeLoadAll","loadAll"),dB=vh("safeDump","dump"),gB={Type:tB,Schema:rB,FAILSAFE_SCHEMA:nB,JSON_SCHEMA:iB,CORE_SCHEMA:sB,DEFAULT_SCHEMA:oB,load:aB,loadAll:uB,dump:cB,YAMLException:lB,types:fB,safeLoad:hB,safeLoadAll:pB,safeDump:dB},Eh=gB;import mB from"node:fs/promises";var ja=e=>{let t=new URL(e),n=t.protocol.length+2;return t.toString().slice(n)};import sw from"node:fs/promises";async function _i(e,t){try{if(await sw.readFile(e,{encoding:"utf-8"})===t)return}catch{}await sw.writeFile(e,t,{encoding:"utf-8"})}var ow=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 _i(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=Eh.dump(r);await _i(t,n)}async paseYarnRc(t){let r=await mB.readFile(t,"utf8");return Eh.load(r,{filename:t})}};var YP=Ld(UP(),1);import bd from"node:fs/promises";import{EOL as Cd}from"node:os";import P9 from"node:path";var HP=class extends Ci{constructor(t){super("NpmRc",".npmrc",t)}async prepUserFile(){try{let r=(await bd.readFile(this.userFilePath,"utf-8")).split(Cd).filter(n=>!n.includes("registry=")).join(Cd);await _i(this.userFilePath,r)}catch{await _i(this.userFilePath,"")}}async getWorkspaceRegistries(){let t;try{t=new YP.default({npmPath:this.workspaceFilePath,argv:["<dummy_node>","<dummy_pnpm_js>",`--prefix=${P9.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||tA}`),r.set(this.toRegistryAndFunctionKey(n.registry,"email"),`//${n.registry}:email=${n.email||rA}`),r.set(this.toRegistryAndFunctionKey(n.registry,"_password"),`//${n.registry}:_password=${cn(n.authToken)}`);let i=await this.patchUserNpmRcFile(r);await bd.writeFile(this.userFilePath,i.join(Cd),{encoding:"utf-8"})}async processNpmRcFile(t,r,n){let s=(await bd.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 W9,platform as ZP}from"os";import{arch as N9,platform as I9}from"os";import{exec as O9,spawn as R9}from"node:child_process";import{promisify as _9}from"node:util";var Ju=_9(O9);function xd(e,t,r){return new Promise((n,i)=>{let s=r?.cwd||process.cwd();console.log(`\u{1F680} Launching [${e} ${t.join(" ")}] in ${s}`);let o=R9(e,t,{cwd:s,env:r?.env||process.env,stdio:r?.stdio||"inherit",shell:r?.shell||!1});r?.stdio==="pipe"&&(o.stdout?.setEncoding("utf8"),o.stdout?.on("data",function(a){let c=a.toString("utf8");r?.processStdOut?.(c)}),o.stderr?.setEncoding("utf8"),o.stderr?.on("data",function(a){let c=a.toString("utf8");r?.processStdErr?.(c)})),o.on("exit",a=>{a==0?n():i(new Error(`Process ${e} exited with code ${a}`))})})}import{arch as F9,platform as zP}from"os";import{release as k9,platform as D9}from"os";var qn=()=>D9()==="linux"&&k9().toLowerCase().includes("wsl");var VP=()=>{let e={win32:["x64"],darwin:["x64","arm64"]};return qn()||e[zP()]&&e[zP()].includes(F9())};var Pd;var L9=["npm","exec","--silent","--yes","azureauth","--"],T9={...process.env,npm_config_registry:"https://registry.npmjs.org"},Qu=()=>(Pd||(Pd=qn()?["azureauth.exe"]:L9),{command:Pd,env:T9});import{spawnSync as $9}from"child_process";var Zu;var KP=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 XP=async(e,t)=>{if(!VP())throw new Error(`AzureAuth is not supported for platform ${I9()} and architecture ${N9()}`);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=$9(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 KP()?new Error(s.message):new Error(`AzureAuth is not installed: ${s}`)}};import Rd from"os";import _d from"fs";import ec from"path";var JP="1.4.1",kd=ec.join(__dirname,"..",".bin","CredentialProvider.Microsoft","v"+JP);async function QP(e){let t=B9(e),r=await j9();return await M9(r,t)}function B9(e){if(!e.endsWith("/npm/registry/"))throw new Error(`Registry URL ${e} is not a valid Azure Artifacts npm registry URL. Expected it to end with '/npm/registry/'`);return"https://"+e.replace("/npm/registry/","/nuget/v3/index.json")}async function M9(e,t){let r="";await xd(e,["-U",t,"-I","-F","Json"],{stdio:"pipe",processStdOut:n=>{r+=n},processStdErr:n=>{console.error(n)}});try{return JSON.parse(r)}catch{throw new Error(`Failed to parse CredentialProvider output: ${r}`)}}function Od(e){if(_d.existsSync(e))return e;if(_d.existsSync(e+".exe"))return e+".exe"}async function j9(){let e=Od(ec.join(Rd.homedir(),".nuget","plugins","netcore","CredentialProvider.Microsoft","CredentialProvider.Microsoft"));if(e)return e;let t=ec.join(kd,"plugins","netcore","CredentialProvider.Microsoft","CredentialProvider.Microsoft");if(e=Od(t),e)return e;if(await q9(),e=Od(t),e)_d.chmodSync(e,493);else throw new Error(`CredentialProvider was not found at expected path after download: ${e}`);return e}async function q9(){let e=`https://github.com/microsoft/artifacts-credprovider/releases/download/v${JP}/Microsoft.Net8.${Rd.platform()}-${Rd.arch()}.NuGet.CredentialProvider.tar.gz`,t=ec.join(kd,"CredentialProvider.Microsoft.tar.gz");console.log(`\u{1F310} Downloading ${e}`),await ih(e,t),await xd("tar",["-xzf",t,"-C",kd],{stdio:"inherit"})}var jz=async(e,t,r=!1,n)=>{let i=`${W9()}-${e}`,s=await G9(i,e,t,n);return r?cn(s):s};async function G9(e,t,r,n){switch(ZP()){case"win32":case"darwin":return(await XP({promptHint:`Authenticate to ${t} to generate a temporary token for npm`,organization:`https://dev.azure.com/${t}`,displayName:e,scope:["vso.packaging"],timeout:"30"},n)).token;case"linux":return(await QP(r)).Password;default:throw new Error(`Platform ${ZP()} is not supported for ADO authentication`)}}export{Ci as FileProvider,HP as NpmrcFileProvider,ow as YarnRcFileProvider,rA as defaultEmail,tA as defaultUser,jz as generateNpmrcPat};
132
132
  /*! Bundled license information:
133
133
 
134
134
  git-url-parse/lib/index.js: