varplugin;plugin=(()=>{"use strict";vare={997:(e,t,n)=>{n.r(t),n.d(t,{default:()=>R});functiono(e,t,n,o){varr,a=arguments.length,s=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeofReflect&&"function"==typeofReflect.decorate)s=Reflect.decorate(e,t,n,o);elsefor(vari=e.length-1;i>=0;i--)(r=e[i])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);returna>3&&s&&Object.defineProperty(t,n,s),s}constr=require("@yarnpkg/cli"),a=require("@yarnpkg/core"),s=require("clipanion"),i=require("yup");classlextendsr.BaseCommand{constructor(){super(...arguments),this.workspaces=[],this.json=!1,this.production=!1,this.all=!1}asyncexecute(){conste=awaita.Configuration.find(this.context.cwd,this.context.plugins),{project:t,workspace:n}=awaita.Project.find(e,this.context.cwd),o=awaita.Cache.find(e);lets;if(this.all)s=newSet(t.workspaces);elseif(0===this.workspaces.length){if(!n)thrownewr.WorkspaceRequiredError(t.cwd,this.context.cwd);s=newSet([n])}elses=newSet(this.workspaces.map(e=>t.getWorkspaceByIdent(a.structUtils.parseIdent(e))));for(consteofs)for(constnofa.Manifest.hardDependencies)for(constoofe.manifest.getForScope(n).values()){conste=t.tryWorkspaceByDescriptor(o);null!==e&&s.add(e)}for(consteoft.workspaces)s.has(e)?this.production&&e.manifest.devDependencies.clear():(e.manifest.dependencies.clear(),e.manifest.devDependencies.clear(),e.manifest.peerDependencies.clear(),e.manifest.scripts.clear());return(awaita.StreamReport.start({configuration:e,json:this.json,stdout:this.context.stdout,includeLogs:!0},asynce=>{awaitt.install({cache:o,report:e,persistProject:!1})})).exitCode()}}l.usage=s.Command.Usage({category:"Workspace-related commands",description:"install a single workspace and its dependencies",details:"\n This command will run an install as if the specified workspaces (and all other workspaces they depend on) were the only ones in the project. If no workspaces are explicitly listed, the active one will be assumed.\n\n Note that this command is only very moderately useful when using zero-installs, since the cache will contain all the packages anyway - meaning that the only difference between a full install and a focused install would just be a few extra lines in the `.pnp.js` file, at the cost of introducing an extra complexity.\n\n If the `-A,--all` flag is set, the entire project will be installed. Combine with `--production` to replicate the old `yarn install --production`.\n "}),l.schema=i.object().shape({all:i.bool(),workspaces:i.array().when("all",{is:!0,then:i.array().max(0,"Cannot specify workspaces when using the --all flag"),otherwise:i.array()})}),o([s.Command.Rest()],l.prototype,"workspaces",void0),o([s.Command.Boolean("--json",{description:"Format the output as an NDJSON stream"})],l.prototype,"json",void0),o([s.Command.Boolean("--production",{description:"Only install regular dependencies by omitting dev dependencies"})],l.prototype,"production",void0),o([s.Command.Boolean("-A,--all",{description:"Install the entire project"})],l.prototype,"all",void0),o([s.Command.Path("workspaces","focus")],l.prototype,"execute",null);varu=n(401),p=n.n(u);constc=require("os");vard=n(578),f=n.n(d);consth=(e,t)=>{constn=[];for(constoofe.workspacesCwds){conste=t.workspacesByCwd.get(o);e&&n.push(e,...h(e,t))}returnn},g=(e,t)=>{constn=newSet,o=e=>{constr=newMap([...e.manifest.dependencies,...e.manifest.devDependencies]);for(consteofr.values()){constr=t.tryWorkspaceByDescriptor(e);null===r||n.has(r)||(n.add(r),o(r))}};returno(e),n};classAextendsr.BaseCommand{constructor(){super(...arguments),this.args=[],this.allLegacy=!1,this.recursive=!1,this.verbose=!1,this.parallel=!1,this.interlaced=!1,this.topological=!1,this.topologicalDev=!1,this.include=[],this.exclude=[],this.publicOnly=!1}asyncexecute(){vare;constt=awaita.Configuration.find(this.context.cwd,this.context.plugins),{project:n,workspace:o}=awaita.Project.find(t,this.context.cwd),i=null!==(e=this.all)&&void0!==e?e:this.allLegacy;if(!i&&!o)thrownewr.WorkspaceRequiredError(n.cw
consto=n(669),r=n(615),a=e=>null!==e&&"object"==typeofe&&!Array.isArray(e),s=e=>"number"==typeofe||"string"==typeofe&&""!==e,i=e=>Number.isInteger(+e),l=e=>{lett=""+e,n=-1;if("-"===t[0]&&(t=t.slice(1)),"0"===t)return!1;for(;"0"===t[++n];);returnn>0},u=(e,t,n)=>{if(t>0){letn="-"===e[0]?"-":"";n&&(e=e.slice(1)),e=n+e.padStart(n?t-1:t,"0")}return!1===n?String(e):e},p=(e,t)=>{letn="-"===e[0]?"-":"";for(n&&(e=e.slice(1),t--);e.length<t;)e="0"+e;returnn?"-"+e:e},c=(e,t,n,o)=>{if(n)returnr(e,t,{wrap:!1,...o});leta=String.fromCharCode(e);returne===t?a:`[${a}-${String.fromCharCode(t)}]`},d=(e,t,n)=>{if(Array.isArray(e)){lett=!0===n.wrap,o=n.capture?"":"?:";returnt?`(${o}${e.join("|")})`:e.join("|")}returnr(e,t,n)},f=(...e)=>newRangeError("Invalid range arguments: "+o.inspect(...e)),h=(e,t,n)=>{if(!0===n.strictRanges)throwf([e,t]);return[]},g=(e,t,n=1,o={})=>{letr=Number(e),a=Number(t);if(!Number.isInteger(r)||!Number.isInteger(a)){if(!0===o.strictRanges)throwf([e,t]);return[]}0===r&&(r=0),0===a&&(a=0);lets=r>a,i=String(e),h=String(t),g=String(n);n=Math.max(Math.abs(n),1);letA=l(i)||l(h)||l(g),y=A?Math.max(i.length,h.length,g.length):0,R=!1===A&&!1===((e,t,n)=>"string"==typeofe||"string"==typeoft||!0===n.stringify)(e,t,o),m=o.transform||(e=>t=>!0===e?Number(t):String(t))(R);if(o.toRegex&&1===n)returnc(p(e,y),p(t,y),!0,o);let_={negatives:[],positives:[]},E=[],C=0;for(;s?r>=a:r<=a;)!0===o.toRegex&&n>1?_[(b=r)<0?"negatives":"positives"].push(Math.abs(b)):E.push(u(m(r,C),y,R)),r=s?r-n:r+n,C++;varb;return!0===o.toRegex?n>1?((e,t)=>{e.negatives.sort((e,t)=>e<t?-1:e>t?1:0),e.positives.sort((e,t)=>e<t?-1:e>t?1:0);letn,o=t.capture?"":"?:",r="",a="";returne.positives.length&&(r=e.positives.join("|")),e.negatives.length&&(a=`-(${o}${e.negatives.join("|")})`),n=r&&a?`${r}|${a}`:r||a,t.wrap?`(${o}${n})`:n})(_,o):d(E,null,{wrap:!1,...o}):E},A=(e,t,n,o={})=>{if(null==t&&s(e))return[e];if(!s(e)||!s(t))returnh(e,t,o);if("function"==typeofn)returnA(e,t,1,{transform:n});if(a(n))returnA(e,t,0,n);letr={...o};return!0===r.capture&&(r.wrap=!0),n=n||r.step||1,i(n)?i(e)&&i(t)?g(e,t,n,r):((e,t,n=1,o={})=>{if(!i(e)&&e.length>1||!i(t)&&t.length>1)returnh(e,t,o);letr=o.transform||(e=>String.fromCharCode(e)),a=(""+e).charCodeAt(0),s=(""+t).charCodeAt(0),l=a>s,u=Math.min(a,s),p=Math.max(a,s);if(o.toRegex&&1===n)returnc(u,p,!1,o);letf=[],g=0;for(;l?a>=s:a<=s;)f.push(r(a,g)),a=l?a-n:a+n,g++;return!0===o.toRegex?d(f,null,{wrap:!1,options:o}):f})(e,t,Math.max(Math.abs(n),1),r):null==n||a(n)?A(e,t,1,n):((e,t)=>{if(!0===t.strictRanges)thrownewTypeError(`Expected step "${e}" to be a number`);return[]})(n,r)};e.exports=A},761:e=>{
e.exports=function(e){return"number"==typeofe?e-e==0:"string"==typeofe&&""!==e.trim()&&(Number.isFinite?Number.isFinite(+e):isFinite(+e))}},401:(e,t,n)=>{consto=n(669),r=n(235),a=n(722),s=n(598),i=e=>"string"==typeofe&&(""===e||"./"===e),l=(e,t,n)=>{t=[].concat(t),e=[].concat(e);leto=newSet,r=newSet,s=newSet,i=0,l=e=>{s.add(e.output),n&&n.onResult&&n.onResult(e)};for(lets=0;s<t.length;s++){letu=a(String(t[s]),{...n,onResult:l},!0),p=u.state.negated||u.state.negatedExtglob;p&&i++;for(lettofe){lete=u(t,!0);(p?!e.isMatch:e.isMatch)&&(p?o.add(e.output):(o.delete(e.output),r.add(e.output)))}}letu=(i===t.length?[...s]:[...r]).filter(e=>!o.has(e));if(n&&0===u.length){if(!0===n.failglob)thrownewError(`No matches found for "${t.join(", ")}"`);if(!0===n.nonull||!0===n.nullglob)returnn.unescape?t.map(e=>e.replace(/\\/g,"")):t}returnu};l.match=l,l.matcher=(e,t)=>a(e,t),l.any=l.isMatch=(e,t,n)=>a(t,n)(e),l.not=(e,t,n={})=>{t=[].concat(t).map(String);leto=newSet,r=[],a=l(e,t,{...n,onResult:e=>{n.onResult&&n.onResult(e),r.push(e.output)}});for(leteofr)a.includes(e)||o.add(e);return[...o]},l.contains=(e,t,n)=>{if("string"!=typeofe)thrownewTypeError(`Expected a string: "${o.inspect(e)}"`);if(Array.isArray(t))returnt.some(t=>l.contains(e,t,n));if("string"==typeoft){if(i(e)||i(t))return!1;if(e.includes(t)||e.startsWith("./")&&e.slice(2).includes(t))return!0}returnl.isMatch(e,t,{...n,contains:!0})},l.matchKeys=(e,t,n)=>{if(!s.isObject(e))thrownewTypeError("Expected the first argument to be an object");leto=l(Object.keys(e),t,n),r={};for(lettofo)r[t]=e[t];returnr},l.some=(e,t,n)=>{leto=[].concat(e);for(leteof[].concat(t)){lett=a(String(e),n);if(o.some(e=>t(e)))return!0}return!1},l.every=(e,t,n)=>{leto=[].concat(e);for(leteof[].concat(t)){lett=a(String(e),n);if(!o.every(e=>t(e)))return!1}return!0},l.all=(e,t,n)=>{if("string"!=typeofe)thrownewTypeError(`Expected a string: "${o.inspect(e)}"`);return[].concat(t).every(t=>a(t,n)(e))},l.capture=(e,t,n)=>{leto=s.isWindows(n),r=a.makeRe(String(e),{...n,capture:!0}).exec(o?s.toPosixSlashes(t):t);if(r)returnr.slice(1).map(e=>void0===e?"":e)},l.makeRe=(...e)=>a.makeRe(...e),l.scan=(...e)=>a.scan(...e),l.parse=(e,t)=>{letn=[];for(letoof[].concat(e||[]))for(leteofr(String(o),t))n.push(a.parse(e,t));returnn},l.braces=(e,t)=>{if("string"!=typeofe)thrownewTypeError("Expected a string");returnt&&!0===t.nobrace||!/\{.*\}/.test(e)?[e]:r(e,t)},l.braceExpand=(e,t)=>{if("string"!=typeofe)thrownewTypeError("Expected a string");returnl.braces(e,{...t,expand:!0})},e.exports=l},578:(e,t,n)=>{consto=n(550),r=e=>{if(e<1)thrownewTypeError("Expected `concurrency` to be a number from 1 and up");constt=[];letn=0;constr=()=>{n--,t.length>0&&t.shift()()},a=(e,t,...a)=>{n++;consts=o(e,...a);t(s),s.then(r,r)},s=(o,...r)=>newPromise(s=>((o,r,...s)=>{n<e?a(o,r,...s):t.push(a.bind(null,o,r,...s))})(o,s,...r));returnObject.defineProperties(s,{activeCount:{get:()=>n},pendingCount:{get:()=>t.length}}),s};e.exports=r,e.exports.default=r},550:e=>{e.exports=(e,...t)=>newPromise(n=>{n(e(...t))})},722:(e,t,n)=>{e.exports=n(828)},86:(e,t,n)=>{consto=n(622),r={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:"[^/]",END_ANCHOR:"(?:\\/|$)",DOTS_SLASH:"\\.{1,2}(?:\\/|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|\\/)\\.{1,2}(?:\\/|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:\\/|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:\\/|$))",QMARK_NO_DOT:"[^.\\/]",STAR:"[^/]*?",START_ANCHOR:"(?:^|\\/)"},a={...r,SLASH_LITERAL:"[\\\\/]",QMARK:"[^\\\\/]",STAR:"[^\\\\/]*?",DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)"};e.exports={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{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:"\\-!\"#$%&'()\\*+,.
consto=n(761),r=(e,t,n)=>{if(!1===o(e))thrownewTypeError("toRegexRange: expected the first argument to be a number");if(void0===t||e===t)returnString(e);if(!1===o(t))thrownewTypeError("toRegexRange: expected the second argument to be a number.");leta={relaxZeros:!0,...n};"boolean"==typeofa.strictZeros&&(a.relaxZeros=!1===a.strictZeros);letl=e+":"+t+"="+String(a.relaxZeros)+String(a.shorthand)+String(a.capture)+String(a.wrap);if(r.cache.hasOwnProperty(l))returnr.cache[l].result;letu=Math.min(e,t),p=Math.max(e,t);if(1===Math.abs(u-p)){letn=e+"|"+t;returna.capture?`(${n})`:!1===a.wrap?n:`(?:${n})`}letc=h(e)||h(t),d={min:e,max:t,a:u,b:p},f=[],g=[];if(c&&(d.isPadded=c,d.maxLen=String(d.max).length),u<0){g=s(p<0?Math.abs(p):1,Math.abs(u),d,a),u=d.a=0}returnp>=0&&(f=s(u,p,d,a)),d.negatives=g,d.positives=f,d.result=function(e,t,n){leto=i(e,t,"-",!1,n)||[],r=i(t,e,"",!1,n)||[],a=i(e,t,"-?",!0,n)||[];returno.concat(a).concat(r).join("|")}(g,f,a),!0===a.capture?d.result=`(${d.result})`:!1!==a.wrap&&f.length+g.length>1&&(d.result=`(?:${d.result})`),r.cache[l]=d,d.result};functiona(e,t,n){if(e===t)return{pattern:e,count:[],digits:0};leto=function(e,t){letn=[];for(leto=0;o<e.length;o++)n.push([e[o],t[o]]);returnn}(e,t),r=o.length,a="",s=0;for(lete=0;e<r;e++){let[t,r]=o[e];t===r?a+=t:"0"!==t||"9"!==r?a+=f(t,r,n):s++}returns&&(a+=!0===n.shorthand?"\\d":"[0-9]"),{pattern:a,count:[s],digits:r}}functions(e,t,n,o){letr,s=function(e,t){letn=1,o=1,r=p(e,n),a=newSet([t]);for(;e<=r&&r<=t;)a.add(r),n+=1,r=p(e,n);for(r=c(t+1,o)-1;e<r&&r<=t;)a.add(r),o+=1,r=c(t+1,o)-1;returna=[...a],a.sort(l),a}(e,t),i=[],u=e;for(lete=0;e<s.length;e++){lett=s[e],l=a(String(u),String(t),o),p="";n.isPadded||!r||r.pattern!==l.pattern?(n.isPadded&&(p=g(t,n,o)),l.string=p+l.pattern+d(l.count),i.push(l),u=t+1,r=l):(r.count.length>1&&r.count.pop(),r.count.push(l.count[0]),r.string=r.pattern+d(r.count),u=t+1)}returni}functioni(e,t,n,o,r){leta=[];for(letrofe){let{string:e}=r;o||u(t,"string",e)||a.push(n+e),o&&u(t,"string",e)&&a.push(n+e)}returna}functionl(e,t){returne>t?1:t>e?-1:0}functionu(e,t,n){returne.some(e=>e[t]===n)}functionp(e,t){returnNumber(String(e).slice(0,-t)+"9".repeat(t))}functionc(e,t){returne-e%Math.pow(10,t)}functiond(e){let[t=0,n=""]=e;returnn||t>1?`{${t+(n?","+n:"")}}`:""}functionf(e,t,n){return`[${e}${t-e==1?"":"-"}${t}]`}functionh(e){return/^-?(0+)\d/.test(e)}functiong(e,t,n){if(!t.isPadded)returne;leto=Math.abs(t.maxLen-String(e).length),r=!1!==n.relaxZeros;switch(o){case0:return"";case1:returnr?"0?":"0";case2:returnr?"0{0,2}":"00";default:returnr?`0{0,${o}}`:`0{${o}}`}}r.cache={},r.clearCache=()=>r.cache={},e.exports=r},622:e=>{e.exports=require("path")},669:e=>{e.exports=require("util")}},t={};functionn(o){if(t[o])returnt[o].exports;varr=t[o]={exports:{}};returne[o](r,r.exports,n),r.exports}returnn.n=e=>{vart=e&&e.__esModule?()=>e.default:()=>e;returnn.d(t,{a:t}),t},n.d=(e,t)=>{for(varoint)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(997)})();