create-expo 3.0.1 → 3.1.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/build/index.js +7 -7
- package/package.json +2 -2
package/build/index.js
CHANGED
|
@@ -84,7 +84,7 @@ const o=i(5680);const toRegexRange=(t,r,i)=>{if(o(t)===false){throw new TypeErro
|
|
|
84
84
|
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
85
85
|
t.exports=runParallel;const o=i(3135);function runParallel(t,r){let i,a,u;let l=true;if(Array.isArray(t)){i=[];a=t.length}else{u=Object.keys(t);i={};a=u.length}function done(t){function end(){if(r)r(t,i);r=null}if(l)o(end);else end()}function each(t,r,o){i[t]=o;if(--a===0||r){done(r)}}if(!a){done(null)}else if(u){u.forEach((function(r){t[r]((function(t,i){each(r,t,i)}))}))}else{t.forEach((function(t,r){t((function(t,i){each(r,t,i)}))}))}l=false}},3118:(t,r,i)=>{
|
|
86
86
|
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
87
|
-
var o=i(4300);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){t.exports=o}else{copyProps(o,r);r.Buffer=SafeBuffer}function SafeBuffer(t,r,i){return a(t,r,i)}SafeBuffer.prototype=Object.create(a.prototype);copyProps(a,SafeBuffer);SafeBuffer.from=function(t,r,i){if(typeof t==="number"){throw new TypeError("Argument must not be a number")}return a(t,r,i)};SafeBuffer.alloc=function(t,r,i){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}var o=a(t);if(r!==undefined){if(typeof i==="string"){o.fill(r,i)}else{o.fill(r)}}else{o.fill(0)}return o};SafeBuffer.allocUnsafe=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return a(t)};SafeBuffer.allocUnsafeSlow=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return o.SlowBuffer(t)}},1790:(t,r,i)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(t,r){r=a(r);if(t instanceof Comparator){if(t.loose===!!r.loose){return t}else{t=t.value}}t=t.trim().split(/\s+/).join(" ");p("comparator",t,r);this.options=r;this.loose=!!r.loose;this.parse(t);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}p("comp",this)}parse(t){const r=this.options.loose?u[l.COMPARATORLOOSE]:u[l.COMPARATOR];const i=t.match(r);if(!i){throw new TypeError(`Invalid comparator: ${t}`)}this.operator=i[1]!==undefined?i[1]:"";if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=o}else{this.semver=new d(i[2],this.options.loose)}}toString(){return this.value}test(t){p("Comparator.test",t,this.options.loose);if(this.semver===o||t===o){return true}if(typeof t==="string"){try{t=new d(t,this.options)}catch(t){return false}}return h(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new m(t.value,r).test(this.value)}else if(t.operator===""){if(t.value===""){return true}return new m(this.value,r).test(t.semver)}r=a(r);if(r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")){return false}if(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&t.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&t.operator.startsWith("<")){return true}if(this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")){return true}if(h(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")){return true}if(h(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")){return true}return false}}t.exports=Comparator;const a=i(6772);const{safeRe:u,t:l}=i(4063);const h=i(8801);const p=i(3619);const d=i(1490);const m=i(5287)},5287:(t,r,i)=>{const o=/\s+/g;class Range{constructor(t,r){r=l(r);if(t instanceof Range){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{return new Range(t.raw,r)}}if(t instanceof h){this.raw=t.value;this.set=[[t]];this.formatted=undefined;return this}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;this.raw=t.trim().replace(o," ");this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const t=this.set[0];this.set=this.set.filter((t=>!isNullSet(t[0])));if(this.set.length===0){this.set=[t]}else if(this.set.length>1){for(const t of this.set){if(t.length===1&&isAny(t[0])){this.set=[t];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let t=0;t<this.set.length;t++){if(t>0){this.formatted+="||"}const r=this.set[t];for(let t=0;t<r.length;t++){if(t>0){this.formatted+=" "}this.formatted+=r[t].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){const r=(this.options.includePrerelease&&v)|(this.options.loose&&E);const i=r+":"+t;const o=u.get(i);if(o){return o}const a=this.options.loose;const l=a?m[g.HYPHENRANGELOOSE]:m[g.HYPHENRANGE];t=t.replace(l,hyphenReplace(this.options.includePrerelease));p("hyphen replace",t);t=t.replace(m[g.COMPARATORTRIM],y);p("comparator trim",t);t=t.replace(m[g.TILDETRIM],A);p("tilde trim",t);t=t.replace(m[g.CARETTRIM],b);p("caret trim",t);let d=t.split(" ").map((t=>parseComparator(t,this.options))).join(" ").split(/\s+/).map((t=>replaceGTE0(t,this.options)));if(a){d=d.filter((t=>{p("loose invalid filter",t,this.options);return!!t.match(m[g.COMPARATORLOOSE])}))}p("range list",d);const w=new Map;const _=d.map((t=>new h(t,this.options)));for(const t of _){if(isNullSet(t)){return[t]}w.set(t.value,t)}if(w.size>1&&w.has("")){w.delete("")}const S=[...w.values()];u.set(i,S);return S}intersects(t,r){if(!(t instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((i=>isSatisfiable(i,r)&&t.set.some((t=>isSatisfiable(t,r)&&i.every((i=>t.every((t=>i.intersects(t,r)))))))))}test(t){if(!t){return false}if(typeof t==="string"){try{t=new d(t,this.options)}catch(t){return false}}for(let r=0;r<this.set.length;r++){if(testSet(this.set[r],t,this.options)){return true}}return false}}t.exports=Range;const a=i(1191);const u=new a;const l=i(6772);const h=i(1790);const p=i(3619);const d=i(1490);const{safeRe:m,t:g,comparatorTrimReplace:y,tildeTrimReplace:A,caretTrimReplace:b}=i(4063);const{FLAG_INCLUDE_PRERELEASE:v,FLAG_LOOSE:E}=i(9073);const isNullSet=t=>t.value==="<0.0.0-0";const isAny=t=>t.value==="";const isSatisfiable=(t,r)=>{let i=true;const o=t.slice();let a=o.pop();while(i&&o.length){i=o.every((t=>a.intersects(t,r)));a=o.pop()}return i};const parseComparator=(t,r)=>{p("comp",t,r);t=replaceCarets(t,r);p("caret",t);t=replaceTildes(t,r);p("tildes",t);t=replaceXRanges(t,r);p("xrange",t);t=replaceStars(t,r);p("stars",t);return t};const isX=t=>!t||t.toLowerCase()==="x"||t==="*";const replaceTildes=(t,r)=>t.trim().split(/\s+/).map((t=>replaceTilde(t,r))).join(" ");const replaceTilde=(t,r)=>{const i=r.loose?m[g.TILDELOOSE]:m[g.TILDE];return t.replace(i,((r,i,o,a,u)=>{p("tilde",t,r,i,o,a,u);let l;if(isX(i)){l=""}else if(isX(o)){l=`>=${i}.0.0 <${+i+1}.0.0-0`}else if(isX(a)){l=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`}else if(u){p("replaceTilde pr",u);l=`>=${i}.${o}.${a}-${u} <${i}.${+o+1}.0-0`}else{l=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`}p("tilde return",l);return l}))};const replaceCarets=(t,r)=>t.trim().split(/\s+/).map((t=>replaceCaret(t,r))).join(" ");const replaceCaret=(t,r)=>{p("caret",t,r);const i=r.loose?m[g.CARETLOOSE]:m[g.CARET];const o=r.includePrerelease?"-0":"";return t.replace(i,((r,i,a,u,l)=>{p("caret",t,r,i,a,u,l);let h;if(isX(i)){h=""}else if(isX(a)){h=`>=${i}.0.0${o} <${+i+1}.0.0-0`}else if(isX(u)){if(i==="0"){h=`>=${i}.${a}.0${o} <${i}.${+a+1}.0-0`}else{h=`>=${i}.${a}.0${o} <${+i+1}.0.0-0`}}else if(l){p("replaceCaret pr",l);if(i==="0"){if(a==="0"){h=`>=${i}.${a}.${u}-${l} <${i}.${a}.${+u+1}-0`}else{h=`>=${i}.${a}.${u}-${l} <${i}.${+a+1}.0-0`}}else{h=`>=${i}.${a}.${u}-${l} <${+i+1}.0.0-0`}}else{p("no pr");if(i==="0"){if(a==="0"){h=`>=${i}.${a}.${u}${o} <${i}.${a}.${+u+1}-0`}else{h=`>=${i}.${a}.${u}${o} <${i}.${+a+1}.0-0`}}else{h=`>=${i}.${a}.${u} <${+i+1}.0.0-0`}}p("caret return",h);return h}))};const replaceXRanges=(t,r)=>{p("replaceXRanges",t,r);return t.split(/\s+/).map((t=>replaceXRange(t,r))).join(" ")};const replaceXRange=(t,r)=>{t=t.trim();const i=r.loose?m[g.XRANGELOOSE]:m[g.XRANGE];return t.replace(i,((i,o,a,u,l,h)=>{p("xRange",t,i,o,a,u,l,h);const d=isX(a);const m=d||isX(u);const g=m||isX(l);const y=g;if(o==="="&&y){o=""}h=r.includePrerelease?"-0":"";if(d){if(o===">"||o==="<"){i="<0.0.0-0"}else{i="*"}}else if(o&&y){if(m){u=0}l=0;if(o===">"){o=">=";if(m){a=+a+1;u=0;l=0}else{u=+u+1;l=0}}else if(o==="<="){o="<";if(m){a=+a+1}else{u=+u+1}}if(o==="<"){h="-0"}i=`${o+a}.${u}.${l}${h}`}else if(m){i=`>=${a}.0.0${h} <${+a+1}.0.0-0`}else if(g){i=`>=${a}.${u}.0${h} <${a}.${+u+1}.0-0`}p("xRange return",i);return i}))};const replaceStars=(t,r)=>{p("replaceStars",t,r);return t.trim().replace(m[g.STAR],"")};const replaceGTE0=(t,r)=>{p("replaceGTE0",t,r);return t.trim().replace(m[r.includePrerelease?g.GTE0PRE:g.GTE0],"")};const hyphenReplace=t=>(r,i,o,a,u,l,h,p,d,m,g,y)=>{if(isX(o)){i=""}else if(isX(a)){i=`>=${o}.0.0${t?"-0":""}`}else if(isX(u)){i=`>=${o}.${a}.0${t?"-0":""}`}else if(l){i=`>=${i}`}else{i=`>=${i}${t?"-0":""}`}if(isX(d)){p=""}else if(isX(m)){p=`<${+d+1}.0.0-0`}else if(isX(g)){p=`<${d}.${+m+1}.0-0`}else if(y){p=`<=${d}.${m}.${g}-${y}`}else if(t){p=`<${d}.${m}.${+g+1}-0`}else{p=`<=${p}`}return`${i} ${p}`.trim()};const testSet=(t,r,i)=>{for(let i=0;i<t.length;i++){if(!t[i].test(r)){return false}}if(r.prerelease.length&&!i.includePrerelease){for(let i=0;i<t.length;i++){p(t[i].semver);if(t[i].semver===h.ANY){continue}if(t[i].semver.prerelease.length>0){const o=t[i].semver;if(o.major===r.major&&o.minor===r.minor&&o.patch===r.patch){return true}}}return false}return true}},1490:(t,r,i)=>{const o=i(3619);const{MAX_LENGTH:a,MAX_SAFE_INTEGER:u}=i(9073);const{safeRe:l,t:h}=i(4063);const p=i(6772);const{compareIdentifiers:d}=i(8587);class SemVer{constructor(t,r){r=p(r);if(t instanceof SemVer){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{t=t.version}}else if(typeof t!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`)}if(t.length>a){throw new TypeError(`version is longer than ${a} characters`)}o("SemVer",t,r);this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;const i=t.trim().match(r.loose?l[h.LOOSE]:l[h.FULL]);if(!i){throw new TypeError(`Invalid Version: ${t}`)}this.raw=t;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>u||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>u||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>u||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const r=+t;if(r>=0&&r<u){return r}}return t}))}this.build=i[5]?i[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(t){o("SemVer.compare",this.version,this.options,t);if(!(t instanceof SemVer)){if(typeof t==="string"&&t===this.version){return 0}t=new SemVer(t,this.options)}if(t.version===this.version){return 0}return this.compareMain(t)||this.comparePre(t)}compareMain(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}return d(this.major,t.major)||d(this.minor,t.minor)||d(this.patch,t.patch)}comparePre(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}if(this.prerelease.length&&!t.prerelease.length){return-1}else if(!this.prerelease.length&&t.prerelease.length){return 1}else if(!this.prerelease.length&&!t.prerelease.length){return 0}let r=0;do{const i=this.prerelease[r];const a=t.prerelease[r];o("prerelease compare",r,i,a);if(i===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(i===undefined){return-1}else if(i===a){continue}else{return d(i,a)}}while(++r)}compareBuild(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}let r=0;do{const i=this.build[r];const a=t.build[r];o("build compare",r,i,a);if(i===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(i===undefined){return-1}else if(i===a){continue}else{return d(i,a)}}while(++r)}inc(t,r,i){switch(t){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0;this.inc("patch",r,i);this.inc("pre",r,i);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",r,i)}this.inc("pre",r,i);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const t=Number(i)?1:0;if(!r&&i===false){throw new Error("invalid increment argument: identifier is empty")}if(this.prerelease.length===0){this.prerelease=[t]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(r===this.prerelease.join(".")&&i===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(t)}}if(r){let o=[r,t];if(i===false){o=[r]}if(d(this.prerelease[0],r)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${t}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}t.exports=SemVer},7876:(t,r,i)=>{const o=i(8257);const clean=(t,r)=>{const i=o(t.trim().replace(/^[=v]+/,""),r);return i?i.version:null};t.exports=clean},8801:(t,r,i)=>{const o=i(1561);const a=i(8671);const u=i(3473);const l=i(2967);const h=i(6762);const p=i(973);const cmp=(t,r,i,d)=>{switch(r){case"===":if(typeof t==="object"){t=t.version}if(typeof i==="object"){i=i.version}return t===i;case"!==":if(typeof t==="object"){t=t.version}if(typeof i==="object"){i=i.version}return t!==i;case"":case"=":case"==":return o(t,i,d);case"!=":return a(t,i,d);case">":return u(t,i,d);case">=":return l(t,i,d);case"<":return h(t,i,d);case"<=":return p(t,i,d);default:throw new TypeError(`Invalid operator: ${r}`)}};t.exports=cmp},6899:(t,r,i)=>{const o=i(1490);const a=i(8257);const{safeRe:u,t:l}=i(4063);const coerce=(t,r)=>{if(t instanceof o){return t}if(typeof t==="number"){t=String(t)}if(typeof t!=="string"){return null}r=r||{};let i=null;if(!r.rtl){i=t.match(r.includePrerelease?u[l.COERCEFULL]:u[l.COERCE])}else{const o=r.includePrerelease?u[l.COERCERTLFULL]:u[l.COERCERTL];let a;while((a=o.exec(t))&&(!i||i.index+i[0].length!==t.length)){if(!i||a.index+a[0].length!==i.index+i[0].length){i=a}o.lastIndex=a.index+a[1].length+a[2].length}o.lastIndex=-1}if(i===null){return null}const h=i[2];const p=i[3]||"0";const d=i[4]||"0";const m=r.includePrerelease&&i[5]?`-${i[5]}`:"";const g=r.includePrerelease&&i[6]?`+${i[6]}`:"";return a(`${h}.${p}.${d}${m}${g}`,r)};t.exports=coerce},7375:(t,r,i)=>{const o=i(1490);const compareBuild=(t,r,i)=>{const a=new o(t,i);const u=new o(r,i);return a.compare(u)||a.compareBuild(u)};t.exports=compareBuild},8186:(t,r,i)=>{const o=i(4905);const compareLoose=(t,r)=>o(t,r,true);t.exports=compareLoose},4905:(t,r,i)=>{const o=i(1490);const compare=(t,r,i)=>new o(t,i).compare(new o(r,i));t.exports=compare},3272:(t,r,i)=>{const o=i(8257);const diff=(t,r)=>{const i=o(t,null,true);const a=o(r,null,true);const u=i.compare(a);if(u===0){return null}const l=u>0;const h=l?i:a;const p=l?a:i;const d=!!h.prerelease.length;const m=!!p.prerelease.length;if(m&&!d){if(!p.patch&&!p.minor){return"major"}if(h.patch){return"patch"}if(h.minor){return"minor"}return"major"}const g=d?"pre":"";if(i.major!==a.major){return g+"major"}if(i.minor!==a.minor){return g+"minor"}if(i.patch!==a.patch){return g+"patch"}return"prerelease"};t.exports=diff},1561:(t,r,i)=>{const o=i(4905);const eq=(t,r,i)=>o(t,r,i)===0;t.exports=eq},3473:(t,r,i)=>{const o=i(4905);const gt=(t,r,i)=>o(t,r,i)>0;t.exports=gt},2967:(t,r,i)=>{const o=i(4905);const gte=(t,r,i)=>o(t,r,i)>=0;t.exports=gte},5009:(t,r,i)=>{const o=i(1490);const inc=(t,r,i,a,u)=>{if(typeof i==="string"){u=a;a=i;i=undefined}try{return new o(t instanceof o?t.version:t,i).inc(r,a,u).version}catch(t){return null}};t.exports=inc},6762:(t,r,i)=>{const o=i(4905);const lt=(t,r,i)=>o(t,r,i)<0;t.exports=lt},973:(t,r,i)=>{const o=i(4905);const lte=(t,r,i)=>o(t,r,i)<=0;t.exports=lte},9799:(t,r,i)=>{const o=i(1490);const major=(t,r)=>new o(t,r).major;t.exports=major},7600:(t,r,i)=>{const o=i(1490);const minor=(t,r)=>new o(t,r).minor;t.exports=minor},8671:(t,r,i)=>{const o=i(4905);const neq=(t,r,i)=>o(t,r,i)!==0;t.exports=neq},8257:(t,r,i)=>{const o=i(1490);const parse=(t,r,i=false)=>{if(t instanceof o){return t}try{return new o(t,r)}catch(t){if(!i){return null}throw t}};t.exports=parse},2112:(t,r,i)=>{const o=i(1490);const patch=(t,r)=>new o(t,r).patch;t.exports=patch},5094:(t,r,i)=>{const o=i(8257);const prerelease=(t,r)=>{const i=o(t,r);return i&&i.prerelease.length?i.prerelease:null};t.exports=prerelease},6110:(t,r,i)=>{const o=i(4905);const rcompare=(t,r,i)=>o(r,t,i);t.exports=rcompare},4550:(t,r,i)=>{const o=i(7375);const rsort=(t,r)=>t.sort(((t,i)=>o(i,t,r)));t.exports=rsort},1495:(t,r,i)=>{const o=i(5287);const satisfies=(t,r,i)=>{try{r=new o(r,i)}catch(t){return false}return r.test(t)};t.exports=satisfies},6034:(t,r,i)=>{const o=i(7375);const sort=(t,r)=>t.sort(((t,i)=>o(t,i,r)));t.exports=sort},3863:(t,r,i)=>{const o=i(8257);const valid=(t,r)=>{const i=o(t,r);return i?i.version:null};t.exports=valid},7546:(t,r,i)=>{const o=i(4063);const a=i(9073);const u=i(1490);const l=i(8587);const h=i(8257);const p=i(3863);const d=i(7876);const m=i(5009);const g=i(3272);const y=i(9799);const A=i(7600);const b=i(2112);const v=i(5094);const E=i(4905);const w=i(6110);const _=i(8186);const S=i(7375);const C=i(6034);const D=i(4550);const x=i(3473);const R=i(6762);const O=i(1561);const k=i(8671);const P=i(2967);const T=i(973);const L=i(8801);const I=i(6899);const M=i(1790);const B=i(5287);const N=i(1495);const $=i(1976);const j=i(1706);const H=i(7095);const G=i(507);const U=i(8029);const W=i(7714);const z=i(9104);const Y=i(5072);const V=i(7009);const Q=i(9550);const K=i(8693);t.exports={parse:h,valid:p,clean:d,inc:m,diff:g,major:y,minor:A,patch:b,prerelease:v,compare:E,rcompare:w,compareLoose:_,compareBuild:S,sort:C,rsort:D,gt:x,lt:R,eq:O,neq:k,gte:P,lte:T,cmp:L,coerce:I,Comparator:M,Range:B,satisfies:N,toComparators:$,maxSatisfying:j,minSatisfying:H,minVersion:G,validRange:U,outside:W,gtr:z,ltr:Y,intersects:V,simplifyRange:Q,subset:K,SemVer:u,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:l.compareIdentifiers,rcompareIdentifiers:l.rcompareIdentifiers}},9073:t=>{const r="2.0.0";const i=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const a=16;const u=i-6;const l=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:i,MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:u,MAX_SAFE_INTEGER:o,RELEASE_TYPES:l,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},3619:t=>{const r=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=r},8587:t=>{const r=/^[0-9]+$/;const compareIdentifiers=(t,i)=>{const o=r.test(t);const a=r.test(i);if(o&&a){t=+t;i=+i}return t===i?0:o&&!a?-1:a&&!o?1:t<i?-1:1};const rcompareIdentifiers=(t,r)=>compareIdentifiers(r,t);t.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},1191:t=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(t){const r=this.map.get(t);if(r===undefined){return undefined}else{this.map.delete(t);this.map.set(t,r);return r}}delete(t){return this.map.delete(t)}set(t,r){const i=this.delete(t);if(!i&&r!==undefined){if(this.map.size>=this.max){const t=this.map.keys().next().value;this.delete(t)}this.map.set(t,r)}return this}}t.exports=LRUCache},6772:t=>{const r=Object.freeze({loose:true});const i=Object.freeze({});const parseOptions=t=>{if(!t){return i}if(typeof t!=="object"){return r}return t};t.exports=parseOptions},4063:(t,r,i)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:u}=i(9073);const l=i(3619);r=t.exports={};const h=r.re=[];const p=r.safeRe=[];const d=r.src=[];const m=r.t={};let g=0;const y="[a-zA-Z0-9-]";const A=[["\\s",1],["\\d",u],[y,a]];const makeSafeRegex=t=>{for(const[r,i]of A){t=t.split(`${r}*`).join(`${r}{0,${i}}`).split(`${r}+`).join(`${r}{1,${i}}`)}return t};const createToken=(t,r,i)=>{const o=makeSafeRegex(r);const a=g++;l(t,a,r);m[t]=a;d[a]=r;h[a]=new RegExp(r,i?"g":undefined);p[a]=new RegExp(o,i?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y}*`);createToken("MAINVERSION",`(${d[m.NUMERICIDENTIFIER]})\\.`+`(${d[m.NUMERICIDENTIFIER]})\\.`+`(${d[m.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${d[m.NUMERICIDENTIFIERLOOSE]})\\.`+`(${d[m.NUMERICIDENTIFIERLOOSE]})\\.`+`(${d[m.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${d[m.NUMERICIDENTIFIER]}|${d[m.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${d[m.NUMERICIDENTIFIERLOOSE]}|${d[m.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${d[m.PRERELEASEIDENTIFIER]}(?:\\.${d[m.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${d[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[m.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${y}+`);createToken("BUILD",`(?:\\+(${d[m.BUILDIDENTIFIER]}(?:\\.${d[m.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${d[m.MAINVERSION]}${d[m.PRERELEASE]}?${d[m.BUILD]}?`);createToken("FULL",`^${d[m.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${d[m.MAINVERSIONLOOSE]}${d[m.PRERELEASELOOSE]}?${d[m.BUILD]}?`);createToken("LOOSE",`^${d[m.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${d[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${d[m.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${d[m.XRANGEIDENTIFIER]})`+`(?:\\.(${d[m.XRANGEIDENTIFIER]})`+`(?:\\.(${d[m.XRANGEIDENTIFIER]})`+`(?:${d[m.PRERELEASE]})?${d[m.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${d[m.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${d[m.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${d[m.XRANGEIDENTIFIERLOOSE]})`+`(?:${d[m.PRERELEASELOOSE]})?${d[m.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${d[m.GTLT]}\\s*${d[m.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${d[m.GTLT]}\\s*${d[m.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${d[m.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",d[m.COERCEPLAIN]+`(?:${d[m.PRERELEASE]})?`+`(?:${d[m.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",d[m.COERCE],true);createToken("COERCERTLFULL",d[m.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${d[m.LONETILDE]}\\s+`,true);r.tildeTrimReplace="$1~";createToken("TILDE",`^${d[m.LONETILDE]}${d[m.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${d[m.LONETILDE]}${d[m.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${d[m.LONECARET]}\\s+`,true);r.caretTrimReplace="$1^";createToken("CARET",`^${d[m.LONECARET]}${d[m.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${d[m.LONECARET]}${d[m.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${d[m.GTLT]}\\s*(${d[m.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${d[m.GTLT]}\\s*(${d[m.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${d[m.GTLT]}\\s*(${d[m.LOOSEPLAIN]}|${d[m.XRANGEPLAIN]})`,true);r.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${d[m.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${d[m.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${d[m.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${d[m.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9104:(t,r,i)=>{const o=i(7714);const gtr=(t,r,i)=>o(t,r,">",i);t.exports=gtr},7009:(t,r,i)=>{const o=i(5287);const intersects=(t,r,i)=>{t=new o(t,i);r=new o(r,i);return t.intersects(r,i)};t.exports=intersects},5072:(t,r,i)=>{const o=i(7714);const ltr=(t,r,i)=>o(t,r,"<",i);t.exports=ltr},1706:(t,r,i)=>{const o=i(1490);const a=i(5287);const maxSatisfying=(t,r,i)=>{let u=null;let l=null;let h=null;try{h=new a(r,i)}catch(t){return null}t.forEach((t=>{if(h.test(t)){if(!u||l.compare(t)===-1){u=t;l=new o(u,i)}}}));return u};t.exports=maxSatisfying},7095:(t,r,i)=>{const o=i(1490);const a=i(5287);const minSatisfying=(t,r,i)=>{let u=null;let l=null;let h=null;try{h=new a(r,i)}catch(t){return null}t.forEach((t=>{if(h.test(t)){if(!u||l.compare(t)===1){u=t;l=new o(u,i)}}}));return u};t.exports=minSatisfying},507:(t,r,i)=>{const o=i(1490);const a=i(5287);const u=i(3473);const minVersion=(t,r)=>{t=new a(t,r);let i=new o("0.0.0");if(t.test(i)){return i}i=new o("0.0.0-0");if(t.test(i)){return i}i=null;for(let r=0;r<t.set.length;++r){const a=t.set[r];let l=null;a.forEach((t=>{const r=new o(t.semver.version);switch(t.operator){case">":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!l||u(r,l)){l=r}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}}));if(l&&(!i||u(i,l))){i=l}}if(i&&t.test(i)){return i}return null};t.exports=minVersion},7714:(t,r,i)=>{const o=i(1490);const a=i(1790);const{ANY:u}=a;const l=i(5287);const h=i(1495);const p=i(3473);const d=i(6762);const m=i(973);const g=i(2967);const outside=(t,r,i,y)=>{t=new o(t,y);r=new l(r,y);let A,b,v,E,w;switch(i){case">":A=p;b=m;v=d;E=">";w=">=";break;case"<":A=d;b=g;v=p;E="<";w="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(h(t,r,y)){return false}for(let i=0;i<r.set.length;++i){const o=r.set[i];let l=null;let h=null;o.forEach((t=>{if(t.semver===u){t=new a(">=0.0.0")}l=l||t;h=h||t;if(A(t.semver,l.semver,y)){l=t}else if(v(t.semver,h.semver,y)){h=t}}));if(l.operator===E||l.operator===w){return false}if((!h.operator||h.operator===E)&&b(t,h.semver)){return false}else if(h.operator===w&&v(t,h.semver)){return false}}return true};t.exports=outside},9550:(t,r,i)=>{const o=i(1495);const a=i(4905);t.exports=(t,r,i)=>{const u=[];let l=null;let h=null;const p=t.sort(((t,r)=>a(t,r,i)));for(const t of p){const a=o(t,r,i);if(a){h=t;if(!l){l=t}}else{if(h){u.push([l,h])}h=null;l=null}}if(l){u.push([l,null])}const d=[];for(const[t,r]of u){if(t===r){d.push(t)}else if(!r&&t===p[0]){d.push("*")}else if(!r){d.push(`>=${t}`)}else if(t===p[0]){d.push(`<=${r}`)}else{d.push(`${t} - ${r}`)}}const m=d.join(" || ");const g=typeof r.raw==="string"?r.raw:String(r);return m.length<g.length?m:r}},8693:(t,r,i)=>{const o=i(5287);const a=i(1790);const{ANY:u}=a;const l=i(1495);const h=i(4905);const subset=(t,r,i={})=>{if(t===r){return true}t=new o(t,i);r=new o(r,i);let a=false;e:for(const o of t.set){for(const t of r.set){const r=simpleSubset(o,t,i);a=a||r!==null;if(r){continue e}}if(a){return false}}return true};const p=[new a(">=0.0.0-0")];const d=[new a(">=0.0.0")];const simpleSubset=(t,r,i)=>{if(t===r){return true}if(t.length===1&&t[0].semver===u){if(r.length===1&&r[0].semver===u){return true}else if(i.includePrerelease){t=p}else{t=d}}if(r.length===1&&r[0].semver===u){if(i.includePrerelease){return true}else{r=d}}const o=new Set;let a,m;for(const r of t){if(r.operator===">"||r.operator===">="){a=higherGT(a,r,i)}else if(r.operator==="<"||r.operator==="<="){m=lowerLT(m,r,i)}else{o.add(r.semver)}}if(o.size>1){return null}let g;if(a&&m){g=h(a.semver,m.semver,i);if(g>0){return null}else if(g===0&&(a.operator!==">="||m.operator!=="<=")){return null}}for(const t of o){if(a&&!l(t,String(a),i)){return null}if(m&&!l(t,String(m),i)){return null}for(const o of r){if(!l(t,String(o),i)){return false}}return true}let y,A;let b,v;let E=m&&!i.includePrerelease&&m.semver.prerelease.length?m.semver:false;let w=a&&!i.includePrerelease&&a.semver.prerelease.length?a.semver:false;if(E&&E.prerelease.length===1&&m.operator==="<"&&E.prerelease[0]===0){E=false}for(const t of r){v=v||t.operator===">"||t.operator===">=";b=b||t.operator==="<"||t.operator==="<=";if(a){if(w){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===w.major&&t.semver.minor===w.minor&&t.semver.patch===w.patch){w=false}}if(t.operator===">"||t.operator===">="){y=higherGT(a,t,i);if(y===t&&y!==a){return false}}else if(a.operator===">="&&!l(a.semver,String(t),i)){return false}}if(m){if(E){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===E.major&&t.semver.minor===E.minor&&t.semver.patch===E.patch){E=false}}if(t.operator==="<"||t.operator==="<="){A=lowerLT(m,t,i);if(A===t&&A!==m){return false}}else if(m.operator==="<="&&!l(m.semver,String(t),i)){return false}}if(!t.operator&&(m||a)&&g!==0){return false}}if(a&&b&&!m&&g!==0){return false}if(m&&v&&!a&&g!==0){return false}if(w||E){return false}return true};const higherGT=(t,r,i)=>{if(!t){return r}const o=h(t.semver,r.semver,i);return o>0?t:o<0?r:r.operator===">"&&t.operator===">="?r:t};const lowerLT=(t,r,i)=>{if(!t){return r}const o=h(t.semver,r.semver,i);return o<0?t:o>0?r:r.operator==="<"&&t.operator==="<="?r:t};t.exports=subset},1976:(t,r,i)=>{const o=i(5287);const toComparators=(t,r)=>new o(t,r).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")));t.exports=toComparators},8029:(t,r,i)=>{const o=i(5287);const validRange=(t,r)=>{try{return new o(t,r).range||"*"}catch(t){return null}};t.exports=validRange},2028:(t,r,i)=>{var o=global.process;const processOk=function(t){return t&&typeof t==="object"&&typeof t.removeListener==="function"&&typeof t.emit==="function"&&typeof t.reallyExit==="function"&&typeof t.listeners==="function"&&typeof t.kill==="function"&&typeof t.pid==="number"&&typeof t.on==="function"};if(!processOk(o)){t.exports=function(){return function(){}}}else{var a=i(9491);var u=i(19);var l=/^win/i.test(o.platform);var h=i(2361);if(typeof h!=="function"){h=h.EventEmitter}var p;if(o.__signal_exit_emitter__){p=o.__signal_exit_emitter__}else{p=o.__signal_exit_emitter__=new h;p.count=0;p.emitted={}}if(!p.infinite){p.setMaxListeners(Infinity);p.infinite=true}t.exports=function(t,r){if(!processOk(global.process)){return function(){}}a.equal(typeof t,"function","a callback must be provided for exit handler");if(y===false){A()}var i="exit";if(r&&r.alwaysLast){i="afterexit"}var remove=function(){p.removeListener(i,t);if(p.listeners("exit").length===0&&p.listeners("afterexit").length===0){d()}};p.on(i,t);return remove};var d=function unload(){if(!y||!processOk(global.process)){return}y=false;u.forEach((function(t){try{o.removeListener(t,g[t])}catch(t){}}));o.emit=E;o.reallyExit=b;p.count-=1};t.exports.unload=d;var m=function emit(t,r,i){if(p.emitted[t]){return}p.emitted[t]=true;p.emit(t,r,i)};var g={};u.forEach((function(t){g[t]=function listener(){if(!processOk(global.process)){return}var r=o.listeners(t);if(r.length===p.count){d();m("exit",null,t);m("afterexit",null,t);if(l&&t==="SIGHUP"){t="SIGINT"}o.kill(o.pid,t)}}}));t.exports.signals=function(){return u};var y=false;var A=function load(){if(y||!processOk(global.process)){return}y=true;p.count+=1;u=u.filter((function(t){try{o.on(t,g[t]);return true}catch(t){return false}}));o.emit=w;o.reallyExit=v};t.exports.load=A;var b=o.reallyExit;var v=function processReallyExit(t){if(!processOk(global.process)){return}o.exitCode=t||0;m("exit",o.exitCode,null);m("afterexit",o.exitCode,null);b.call(o,o.exitCode)};var E=o.emit;var w=function processEmit(t,r){if(t==="exit"&&processOk(global.process)){if(r!==undefined){o.exitCode=r}var i=E.apply(this,arguments);m("exit",o.exitCode,null);m("afterexit",o.exitCode,null);return i}else{return E.apply(this,arguments)}}}},19:t=>{t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},332:t=>{"use strict";const r="";const i=`${r}[`;const o="";const a={to(t,r){if(!r)return`${i}${t+1}G`;return`${i}${r+1};${t+1}H`},move(t,r){let o="";if(t<0)o+=`${i}${-t}D`;else if(t>0)o+=`${i}${t}C`;if(r<0)o+=`${i}${-r}A`;else if(r>0)o+=`${i}${r}B`;return o},up:(t=1)=>`${i}${t}A`,down:(t=1)=>`${i}${t}B`,forward:(t=1)=>`${i}${t}C`,backward:(t=1)=>`${i}${t}D`,nextLine:(t=1)=>`${i}E`.repeat(t),prevLine:(t=1)=>`${i}F`.repeat(t),left:`${i}G`,hide:`${i}?25l`,show:`${i}?25h`,save:`${r}7`,restore:`${r}8`};const u={up:(t=1)=>`${i}S`.repeat(t),down:(t=1)=>`${i}T`.repeat(t)};const l={screen:`${i}2J`,up:(t=1)=>`${i}1J`.repeat(t),down:(t=1)=>`${i}J`.repeat(t),line:`${i}2K`,lineEnd:`${i}K`,lineStart:`${i}1K`,lines(t){let r="";for(let i=0;i<t;i++)r+=this.line+(i<t-1?a.up():"");if(t)r+=a.left;return r}};t.exports={cursor:a,scroll:u,erase:l,beep:o}},5667:(t,r,i)=>{var o={child:i(2081),crypto:i(6113),fs:i(7147),os:i(2037),path:i(1017),process:process,util:i(3837)};function Attempt(t,r){var i=o.process.platform;if(i==="darwin")return Mac(t,r);if(i==="linux")return Linux(t,r);if(i==="win32")return Windows(t,r);r(new Error("Platform not yet supported."))}function EscapeDoubleQuotes(t){if(typeof t!=="string")throw new Error("Expected a string.");return t.replace(/"/g,'\\"')}function Exec(){if(arguments.length<1||arguments.length>3){throw new Error("Wrong number of arguments.")}var t=arguments[0];var r={};var end=function(){};if(typeof t!=="string"){throw new Error("Command should be a string.")}if(arguments.length===2){if(o.util.isObject(arguments[1])){r=arguments[1]}else if(o.util.isFunction(arguments[1])){end=arguments[1]}else{throw new Error("Expected options or callback.")}}else if(arguments.length===3){if(o.util.isObject(arguments[1])){r=arguments[1]}else{throw new Error("Expected options to be an object.")}if(o.util.isFunction(arguments[2])){end=arguments[2]}else{throw new Error("Expected callback to be a function.")}}if(/^sudo/i.test(t)){return end(new Error('Command should not be prefixed with "sudo".'))}if(typeof r.name==="undefined"){var i=o.process.title;if(ValidName(i)){r.name=i}else{return end(new Error("process.title cannot be used as a valid name."))}}else if(!ValidName(r.name)){var a="";a+="options.name must be alphanumeric only ";a+="(spaces are allowed) and <= 70 characters.";return end(new Error(a))}if(typeof r.icns!=="undefined"){if(typeof r.icns!=="string"){return end(new Error("options.icns must be a string if provided."))}else if(r.icns.trim().length===0){return end(new Error("options.icns must not be empty if provided."))}}if(typeof r.env!=="undefined"){if(typeof r.env!=="object"){return end(new Error("options.env must be an object if provided."))}else if(Object.keys(r.env).length===0){return end(new Error("options.env must not be empty if provided."))}else{for(var u in r.env){var l=r.env[u];if(typeof u!=="string"||typeof l!=="string"){return end(new Error("options.env environment variables must be strings."))}if(!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(u)){return end(new Error("options.env has an invalid environment variable name: "+JSON.stringify(u)))}if(/[\r\n]/.test(l)){return end(new Error("options.env has an invalid environment variable value: "+JSON.stringify(l)))}}}}var h=o.process.platform;if(h!=="darwin"&&h!=="linux"&&h!=="win32"){return end(new Error("Platform not yet supported."))}var p={command:t,options:r,uuid:undefined,path:undefined};Attempt(p,end)}function Linux(t,r){LinuxBinary(t,(function(i,a){if(i)return r(i);var p=[];p.push('cd "'+EscapeDoubleQuotes(o.process.cwd())+'";');for(var d in t.options.env){var m=t.options.env[d];p.push("export "+d+'="'+EscapeDoubleQuotes(m)+'";')}p.push('"'+EscapeDoubleQuotes(a)+'"');if(/kdesudo/i.test(a)){p.push("--comment",'"'+t.options.name+" wants to make changes. "+'Enter your password to allow this."');p.push("-d");p.push("--")}else if(/pkexec/i.test(a)){p.push("--disable-internal-agent")}var g="SUDOPROMPT\n";p.push('/bin/bash -c "echo '+EscapeDoubleQuotes(g.trim())+"; "+EscapeDoubleQuotes(t.command)+'"');p=p.join(" ");o.child.exec(p,{encoding:"utf-8",maxBuffer:h},(function(t,i,o){var a=i&&i.slice(0,g.length)===g;if(a)i=i.slice(g.length);if(t&&!a){if(/No authentication agent found/.test(o)){t.message=l}else{t.message=u}}r(t,i,o)}))}))}function LinuxBinary(t,r){var i=0;var a=["/usr/bin/kdesudo","/usr/bin/pkexec"];function test(){if(i===a.length){return r(new Error("Unable to find pkexec or kdesudo."))}var t=a[i++];o.fs.stat(t,(function(i){if(i){if(i.code==="ENOTDIR")return test();if(i.code==="ENOENT")return test();r(i)}else{r(undefined,t)}}))}test()}function Mac(t,r){var i=o.os.tmpdir();if(!i)return r(new Error("os.tmpdir() not defined."));var a=o.process.env.USER;if(!a)return r(new Error("env['USER'] not defined."));UUID(t,(function(a,u){if(a)return r(a);t.uuid=u;t.path=o.path.join(i,t.uuid,t.options.name+".app");function end(i,a,u){Remove(o.path.dirname(t.path),(function(t){if(i)return r(i);if(t)return r(t);r(undefined,a,u)}))}MacApplet(t,(function(r,i,o){if(r)return end(r,i,o);MacIcon(t,(function(r){if(r)return end(r);MacPropertyList(t,(function(r,i,o){if(r)return end(r,i,o);MacCommand(t,(function(r){if(r)return end(r);MacOpen(t,(function(r,i,o){if(r)return end(r,i,o);MacResult(t,end)}))}))}))}))}))}))}function MacApplet(t,r){var i=o.path.dirname(t.path);o.fs.mkdir(i,(function(u){if(u)return r(u);var l=o.path.join(i,"sudo-prompt-applet.zip");o.fs.writeFile(l,a,"base64",(function(i){if(i)return r(i);var a=[];a.push("/usr/bin/unzip");a.push("-o");a.push('"'+EscapeDoubleQuotes(l)+'"');a.push('-d "'+EscapeDoubleQuotes(t.path)+'"');a=a.join(" ");o.child.exec(a,{encoding:"utf-8"},r)}))}))}function MacCommand(t,r){var i=o.path.join(t.path,"Contents","MacOS","sudo-prompt-command");var a=[];a.push('cd "'+EscapeDoubleQuotes(o.process.cwd())+'"');for(var u in t.options.env){var l=t.options.env[u];a.push("export "+u+'="'+EscapeDoubleQuotes(l)+'"')}a.push(t.command);a=a.join("\n");o.fs.writeFile(i,a,"utf-8",r)}function MacIcon(t,r){if(!t.options.icns)return r();o.fs.readFile(t.options.icns,(function(i,a){if(i)return r(i);var u=o.path.join(t.path,"Contents","Resources","applet.icns");o.fs.writeFile(u,a,r)}))}function MacOpen(t,r){var i=o.path.join(t.path,"Contents","MacOS","applet");var a={cwd:o.path.dirname(i),encoding:"utf-8"};o.child.exec("./"+o.path.basename(i),a,r)}function MacPropertyList(t,r){var i=o.path.join(t.path,"Contents","Info.plist");var a=EscapeDoubleQuotes(i);var u=EscapeDoubleQuotes("CFBundleName");var l=t.options.name+" Password Prompt";if(/'/.test(l)){return r(new Error("Value should not contain single quotes."))}var h=[];h.push("/usr/bin/defaults");h.push("write");h.push('"'+a+'"');h.push('"'+u+'"');h.push("'"+l+"'");h=h.join(" ");o.child.exec(h,{encoding:"utf-8"},r)}function MacResult(t,r){var i=o.path.join(t.path,"Contents","MacOS");o.fs.readFile(o.path.join(i,"code"),"utf-8",(function(a,l){if(a){if(a.code==="ENOENT")return r(new Error(u));r(a)}else{o.fs.readFile(o.path.join(i,"stdout"),"utf-8",(function(a,u){if(a)return r(a);o.fs.readFile(o.path.join(i,"stderr"),"utf-8",(function(i,o){if(i)return r(i);l=parseInt(l.trim(),10);if(l===0){r(undefined,u,o)}else{i=new Error("Command failed: "+t.command+"\n"+o);i.code=l;r(i,u,o)}}))}))}}))}function Remove(t,r){if(typeof t!=="string"||!t.trim()){return r(new Error("Argument path not defined."))}var i=[];if(o.process.platform==="win32"){if(/"/.test(t)){return r(new Error("Argument path cannot contain double-quotes."))}i.push('rmdir /s /q "'+t+'"')}else{i.push("/bin/rm");i.push("-rf");i.push('"'+EscapeDoubleQuotes(o.path.normalize(t))+'"')}i=i.join(" ");o.child.exec(i,{encoding:"utf-8"},r)}function UUID(t,r){o.crypto.randomBytes(256,(function(i,a){if(i)a=Date.now()+""+Math.random();var u=o.crypto.createHash("SHA256");u.update("sudo-prompt-3");u.update(t.options.name);u.update(t.command);u.update(a);var l=u.digest("hex").slice(-32);if(!l||typeof l!=="string"||l.length!==32){return r(new Error("Expected a valid UUID."))}r(undefined,l)}))}function ValidName(t){if(!/^[a-z0-9 ]+$/i.test(t))return false;if(t.trim().length===0)return false;if(t.length>70)return false;return true}function Windows(t,r){var i=o.os.tmpdir();if(!i)return r(new Error("os.tmpdir() not defined."));UUID(t,(function(a,u){if(a)return r(a);t.uuid=u;t.path=o.path.join(i,t.uuid);if(/"/.test(t.path)){return r(new Error("instance.path cannot contain double-quotes."))}t.pathElevate=o.path.join(t.path,"elevate.vbs");t.pathExecute=o.path.join(t.path,"execute.bat");t.pathCommand=o.path.join(t.path,"command.bat");t.pathStdout=o.path.join(t.path,"stdout");t.pathStderr=o.path.join(t.path,"stderr");t.pathStatus=o.path.join(t.path,"status");o.fs.mkdir(t.path,(function(i){if(i)return r(i);function end(i,o,a){Remove(t.path,(function(t){if(i)return r(i);if(t)return r(t);r(undefined,o,a)}))}WindowsWriteExecuteScript(t,(function(r){if(r)return end(r);WindowsWriteCommandScript(t,(function(r){if(r)return end(r);WindowsElevate(t,(function(r,i,o){if(r)return end(r,i,o);WindowsWaitForStatus(t,(function(r){if(r)return end(r);WindowsResult(t,end)}))}))}))}))}))}))}function WindowsElevate(t,r){var i=[];i.push("powershell.exe");i.push("Start-Process");i.push("-FilePath");i.push("\"'"+t.pathExecute.replace(/'/g,"`'")+"'\"");i.push("-WindowStyle hidden");i.push("-Verb runAs");i=i.join(" ");var a=o.child.exec(i,{encoding:"utf-8"},(function(t,i,o){if(t)return r(new Error(u),i,o);r()}));a.stdin.end()}function WindowsResult(t,r){o.fs.readFile(t.pathStatus,"utf-8",(function(i,a){if(i)return r(i);o.fs.readFile(t.pathStdout,"utf-8",(function(i,u){if(i)return r(i);o.fs.readFile(t.pathStderr,"utf-8",(function(i,o){if(i)return r(i);a=parseInt(a.trim(),10);if(a===0){r(undefined,u,o)}else{i=new Error("Command failed: "+t.command+"\r\n"+o);i.code=a;r(i,u,o)}}))}))}))}function WindowsWaitForStatus(t,r){o.fs.stat(t.pathStatus,(function(i,a){if(i&&i.code==="ENOENT"||a.size<2){setTimeout((function(){o.fs.stat(t.pathStdout,(function(i){if(i)return r(new Error(u));WindowsWaitForStatus(t,r)}))}),1e3)}else if(i){r(i)}else{r()}}))}function WindowsWriteCommandScript(t,r){var i=o.process.cwd();if(/"/.test(i)){return r(new Error("process.cwd() cannot contain double-quotes."))}var a=[];a.push("@echo off");a.push("chcp 65001>nul");a.push('cd /d "'+i+'"');for(var u in t.options.env){var l=t.options.env[u];a.push("set "+u+"="+l.replace(/([<>\\|&^])/g,"^$1"))}a.push(t.command);a=a.join("\r\n");o.fs.writeFile(t.pathCommand,a,"utf-8",r)}function WindowsWriteElevateScript(t,r){}function WindowsWriteExecuteScript(t,r){var i=[];i.push("@echo off");i.push('call "'+t.pathCommand+'"'+' > "'+t.pathStdout+'" 2> "'+t.pathStderr+'"');i.push('(echo %ERRORLEVEL%) > "'+t.pathStatus+'"');i=i.join("\r\n");o.fs.writeFile(t.pathExecute,i,"utf-8",r)}t.exports.exec=Exec;var a="UEsDBAoAAAAAAO1YcEcAAAAAAAAAAAAAAAAJABwAQ29udGVudHMvVVQJAAPNnElWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACgeXBHlHaGqKEBAAC+AwAAEwAcAENvbnRlbnRzL0luZm8ucGxpc3RVVAkAA1zWSVYtkRBXdXgLAAEE9QEAAAQUAAAAfZNRb5swFIWfl1/BeA9OpSmqJkqVBCJFop1VyKQ9Ta59S6wa27NNCfv1M0naJWTsEXO+c8+9vo7v97UI3sBYruRdeBPNwgAkVYzL6i7cluvpbXifTOLP6bdV+QNngRbcugBvl/lmFYRThBZaC0AoLdMA55uiDLwHQtljGIQ75/RXhNq2jUiviqiqe6FF2CgNxnW5N5t6IGKOhb7M0f0ijj9lnLpk8il+hS5ZrZeNZAIWQqj2ge+B5YoSwX8T5xEbo17ktc40gIZQCm8glK5BuieovP5Dbp3xHSeZrHyCXYxO3wM+2wNtHHkWMAQP/bkxbkOVXPMxKuK0Dz6CMh+Wv3AwQ9gPM7INU1NtVK3Ha8sXlfoB+m6J6b4fRzv0mkezMf6R1Fe5MbG2VYYF+L+lMaGvpIKy01cOC4zzMazYKeNOQYuDYkjfjMcteCWJa8w/Zi2ugubFA5e8buqisw7qU81ltzB0xx3QC5/TFh7J/e385/zL+7+/wWbR/LwIOl/dvHiCXw03YFfEPJ9dwsWu5sV2kwnod3QoeLeL0eGdJJM/UEsDBAoAAAAAAHSBjkgAAAAAAAAAAAAAAAAPABwAQ29udGVudHMvTWFjT1MvVVQJAAMbpQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACABVHBdH7Dk4KTIIAADIYQAAFQAcAENvbnRlbnRzL01hY09TL2FwcGxldFVUCQADMiPZVVOlD1d1eAsAAQT1AQAABBQAAADtnG9sHEcVwGfti7M1/rONLNVtXHqpzsipis+pHOSWFOzEm25at3XrJI2ozbK+W/suuds79vaSuCKSpaOIxRy1+NSPRPAhlWj7AVRaQCWpTRz+CEo+RSKCCho4K67kVhUyAeV4b3fWt17fXZqKFgHvp8zO3/dmdmfPmtl5L7+8/uPXGWMNELZCaGRMgmjHIlxaBCibdcoGsewCljGCIAiCIAiCIAiCIP7r+M21d67zjb/zEaAdwr1bGHuWMQH2/2wAgqqODj0kf0F+8nGfoFRbJ8p9U0C5g/KRgwEZqZLGfrfwwJx+LP2kVWkelD9zJ2NfBr1nWt2xrhNisxWZ3Ex6MpNSc1Z+soqOO+5i7JMYt7vj9BC5jiZXBwirCT2V1c0qOgZAxwMYt9cbRyxnmUljusa9mKBjGON2tgG/PlXNGyeSRlxNGlOZKjpeBR0KxsFx+MB7VJy5GB46OOSrCLPKfEjrH3/gFry+4zOpuH8sm+VF5srW6ltVjZQ3HVnL3KRDDLsflMSADpyDyjuR0urp6AAdHRgHdOD9iOs6Ypl0OmPUupeecOW19OsQAmn3tzBy4LFH5OED3jz0MbYouM8D460BOdTXCaEF6tsgLkF8GeJPQBj16Rb4PTf5xl2NH4J8a5Vy1N3F3OcZzefMaCo5GeVTuJ2P4cUf/aH5qbbP73/utpfeevdbLzwfYfy+Q80woGan/1E+ljo/703g77IaOJY479t5rqFLDag9OjaTs/R0dCQ5aWrmTHS/qaX1ExnzWC66L2PqY7p5PBnTc71TXnn0sG7mkhkjFx3a0IL30e/rQxB+EXL68J4BBLe73r298DySk5tlGPtJY1BmOhZTc727PBH2Ke+ZhF35nTyP80oQBEEQBPFRcJTZVwpvrxZWpLmJkN0VKT4q2iORUGFBOPfnBuFX9nhELOG67f1D9pWxpw4XVrrmTklz+ZY5Wfwurm/t3ffi9cE+uM41vYbbj2fP5kNXt9sXiopwVRj6xhPlr160mttfuVi4Fs2vXv2rfc5u7UeZfxQ+y4pPh/JrpyUUBjmrofzmadGXKf0eui7KK/ZwJLQUiuRAe+mLUFQ+tFKUV3npd7AU9ytz8iqIiXYoUnoBsqdxDbXk3CXcRov9lYhoW5EQjBxb4NoSY9iQsvn5+QSuusrduAybL3eHIIIbLqyIS9CHlY3loB8rldVKuLfyOsE1+a6zhUVxYsFp3Amqz8tr7Lz8dza1JF8TmC3/syivYVtcfxcWOycWQDvuLcrdnc61y7mGnWsErgmsXDbK5TKkscnypJvGhsuH3TQ2X37YTaPQ8ucw7W6t1LR2TFfjekqb0SGTiedTOmz0klZSSyWf0U01pqVSufXGmThsjs20OpU3Yrjuxbnu4u+GP8b1LO6PcX2L4Q6+v8Q07u9aQFLy71Ckt54TIfjfNdzfDkMYhTAOIXHXh39vCYIgCIIgCIIgCIL4z3Nm+84/Ci1Nn8b0ryHsgbBX1rbgOXD7LZJzNtrC0/gFqYOn8csQ/GONguQchPXzcvy+9CBzvk84HxkO+tJH3bRz5Fb0pb/nS3/fl/6BL/2aL43faLzz3Wbmju8W5p6pttaoR9THjgyZ0zEeH2eqqmbNzLShpXVIpxOqflKP5S1dTehaXDeZqhvHk2bGYOo+LZXal0lnM4ZuWMPJXFazYgmmPp7VjWF9SsunrPVa1HpMn0lPm2r8hGZO3aea+nQyZ+mmmtNjFp5i4oG0lTChE+eDj2pm8lbSgDFoln4yCRp00zQyEDmZtBZLbGxnanHzgWh092d29e/uv+/f+DIQBEEQBEEQBEEQ/7P81rX/FxoZm/Xs/5UmtP8PO/W3M9fGvKoPAEfYXLQJ1HOpmk+AJx80OOb5m/URGG9z9c378rVs9F15tPXP1dS3wvVtC+Q9/H4DFX21fQcY9zvo9eXrj6++D0Af1zfqy9eyx3f16QnVMayufr+zXN+sL99YRx/O69er+RdIgXkNxJv9DfBTDIxLPa6Zudr6enz5euO6ke9Bj7TRzr0noK+JbczfyA9hgOvr9OX98t57XNFX3ydhlOsL+2T8+oK/ucrvNOCfEHbbXhAqeebLB/0V7oYp7+Pt8PsZWnl1+urRpAn7SUCcYBX/hkth95kd2cFYllX3bxB4+xCrzcCO6v4PbXzo1fwbEM/H4ds/f/nCgZH+8k+j0vNPv7Jlz7qPQ1PFx+FVPoZ76ozj42K87YP9/cT7xuf9UfpSeP0MsJvzp0A8/4g3w+78ef4R+F4QBEEQBPH/w1Gm2FeUwturytwpUSnmJfta4Q3h3J8aFeE9xf7d1ZBSOCcqhftZ/m+YKuG6wV4qaQzdGED0Z2jJ/zpa9ZcegjIF7fkVaIBrt11nJxYOOepXpPPyKjsvvytOLcnvCWxJfh87V+xTa0rx1Kpj0a8UFqWJhXL3fgHt9xXn+rCz7Bop3rkTEkNj5e7bIZ7HNRZb/ku5XE6g58HyZUzdj6mLjh1/Pbt7XMt5dvfvtLl1Fbv7BtbhrtyEPW6V038H1yE88yQTTkqC1LJVnIeaCNe7dr3sEPEe6lCb9LWGfa3efvNG8pe5fF8NeW8g3n7jCI+/xOOEVH19KvF9oudHH2n/YOtYgiAIgiAIgiAIgiA+fm69mx3aO8bYtkHn/xlwDq8nkwaavz9h9swzc+DWwRrm71A5CJVVjeChTtk26Fqwu0fxQjUL+9vqHVV/KC53OUd+bJxVfBkw7/gzCO5pr3dOK/g+WUQDeZlV/A2QRwJ5THjn1/xcd9BfhlT1KbgpVwLn+W2amGr2//8CUEsDBBQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABwAQ29udGVudHMvTWFjT1Mvc3Vkby1wcm9tcHQtc2NyaXB0VVQJAAOJkBBXipAQV3V4CwABBPUBAAAEFAAAAI1SO08cMRDu91cMHIKGxUB5xSGEUqTlFKWMvPYca+EXnjGXy6/PeNcg0qVay+PvObs5U5OLatI0DxvYIwNVm4BdQGIdMhxSkauJ8K1i7FOjvSdwB2A+/WJnXpEJdEGwjvTk0W6HhTW8WldgzKDedVF2Ug2tLn7svz3DDpTFdxWr93C/u7wbVKWyoDhVM/8XZAOPOXvcm+IyXxGcizeaUca0XJ1D0CfQnlEysE2VwbuII0br4gvdCMF37m9IoC39+oxTO2EpS8oZJdtRS0aIKY5/sCQoyLVEMMki6Ghl0BGN9SeuICkPIctXDHDDSB9oGEQi1yZWUAda8EZnIcR/eIOOVao+9TrbkpYFjLmkkHk0KYSGvdt12/e71cP6Hs2c4OJBemtsYusplVX+GLHQ7DKkQ098/ZF38dLEpRCeNUMlMW90BIseeQkWtuu2qKmIyDHCuqFuo1N11Ud/1Cf6CHb7Sfxld2ATklQoUGEDActfZ5326WU74G/HcDv8BVBLAwQKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAcAENvbnRlbnRzL1BrZ0luZm9VVAkAA82cSVYqkRBXdXgLAAEE9QEAAAQUAAAAQVBQTGFwbHRQSwMECgAAAAAAm3lwRwAAAAAAAAAAAAAAABMAHABDb250ZW50cy9SZXNvdXJjZXMvVVQJAANW1klWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACAeXBHfrnysfYGAAAf3AAAHgAcAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUCQADH9ZJVnGlD1d1eAsAAQT1AQAABBQAAADt3Xk81Hkcx/Hvb5yVo5bGsVlKbcpRRqFlGZGS5JikRBIdI0OZttMZloqiYwrVjD1UqJaUokTRubG72bZVjqR1VZNjp2XEGo9H+9gt+9h/9tHx8H7N4/fw5MHjYeaPz+P7+P7x/bL9griEPNBm+001J0S+ZbvL/NmKwzWHE0IUHebYuRFCEckjL9v/xSvk2EpCpBXZtrYuDra2Oi4hwSvZgSsIMU9MdPdePcZd1aqQu0p3fDkrcFrs+mPWihMU9y6clp5XEFFdbRrEczCtGtfkL3pWfvBGublJ4ct051kuocYtaaqll/IjdfR+V75vlTdl//AJVZU6elZ5f0S7NO3MaE2xMElhF+TUrHgW2nFYeGTrs/OrhDJN5zMX8ZJVKXrqSUM1Rj03bnf85/pJMXECNdl0D1ctfe/j82imziM2nllSa3t5q8+vP1f38k/k22uN1lmnvfz0b8dGxO+mnh91v7WB2tKdrG3d4vmJaHlTvjGzdMqWcw/9frnCtQpPZK9sMKi/Ey/jzgqIPzBy9/dlf9griI2/u+sjcApozWx6/NXytC+qBTlrhb69fE7J6tgOzpWjFSl8qxihr5dYf/qExoeupY6Ze/j2PfL1azhhZ8fU3eelJY+ylk16UJN6KmOU0M4r+75cZhH/mxNndowNb4wx7TCoN4yvMGu8ySq5l5W5t+xQyYbS/Ome7e0W0sXbC5aktl0LEXNYR9obH7dMT721dbNdT/eFzXNEYSH8GU+bQ5s6YniGcj3fHtgXPbo0Oj4i3d5G1Fjfm/Ng7kgpjQDNxw4RRnu+Vloy5ZE3J6OpwlFBzaxS25He2h3lJuizO70zJPLUYtks14RE5yrD8y2tXa5l5Wqh/NBY06yoiCLF08Nk9A5Ojbs43GmR1Ch/PaZsLf3e6uPRSrIM1ROqGjt80leqfdxYbNn+WV7K7ZKiy/t6r1/3ie46V5432T/Oahs9V7NnVzb9zoq2rFgvPxXrcAMzmvWnGjof/RpdsZThIEpex6DGbd5h6STaOyZXxV/YfW9u4KyllmZ3X15IMHHLSJtVPSOvULCsz2TyPC/WL9kGSme/1L01SSzjfbHnqk+OV7OBmevZeo3DBR7lXT5drT0MkX5PwDd1EQ0ebfkh1zy/L8ydd+VJ4CLuRndNjuwj+vMfU8q2l2l1rGtr8FC2D+fdSGk81eltuTjYSMk++4BMd0DXQo35iXbZndGdcXkGFyeG6b28evF22M2w22HlYSXetGSLW4cfFT00WqvN9bkqCujQ9KzdSt+snr+qmbcme+5Y3cDRn9BDLps+dPVltE9UkPeb6XovineiVUznTznyuZaSn/ZvR8VeRUYLqe3iHFqnU6+7+4LmtfsmaS0MdjIvslFJGG/rn7DPdMGLcx4d6eP2Oz92Y49kWbBUjudU2ijHnc7YIODQxD1aPx8PynVr+cmvJoy2+M5nQa2Kt0dvdPxp73LNU6aTeaktTfHH1L+8Pm/XalZcFcfzYxlhTefuzjRGobLKEqPZh8QKxUXWbU/ERvW78ghvTGTUNd0g9YqbcjUy5h0xVbn3S7SS54SOqKt88UR0qZuxKfxlZfODUm52o2HkGTOLw5dqhevvWjH7ssiqxAhKwA91d1nWG9w/GJIc7GwWbKKe/mAsGRqXBb87P10jH8/0LY6kpGQV1KcuAwAAeCt4LiVFWRJKs4DJ6p9GxGHWfLuTM5dt61/pzCCE7vLmSodGJM/ASqdzU2U3VjpY6WClg5XOICudUaI3VjocuWCsdAAAAAAAAAAAAAAAAD5o1Gmr054TSoqWxPvnfrLxVEIc29/cT5YmkmdgPzlCSz8a+8nYT8Z+MvaTB9lPZpJX+8lRktFyRdDF0m6IdcF2MgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8ddD8G5oJkUuQnAXwnvxLAAAAADDkEFURRckVE6rIv+Tb1078MiZEetubJ34RHckzcOIXd8uWTpz4hRO/cOIXTvwa5MQvoidZ5S8a9h8nfl1QVhipQ6jyyWeuvTaBGP3D5fwgE4gpeQYmUCZ7XQ0mECYQJhAm0GATyOfVmYOU4sAdNi+cOUpm/9cdNv2Di8kkFN3mYOtrg8sE14xicGFwYXDhmlEAAD5w/Os1o8bTcM0oVjpY6WClg2tGAQAAAAAAAAAAAAAAgL/wb9eMBpow+r817yN/fwnJf33P5g78nWofEZNXD3u95GdSkh3o135/aL2i3vl/gHf/7t59oDlnDSHS8gQhNGQL8uWs6P+iwPYLDuIOzARqyM+E9QOfA3PIfw4IIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhND70J9QSwMEFAAAAAgA7VhwR/dYplZAAAAAagEAAB4AHABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAkAA82cSVZTpQ9XdXgLAAEE9QEAAAQUAAAAY2BgZGBgYFQBEiDsxjDygJQDPlkmEIEaRpJAQg8kLAMML8bi5OIqIFuouKA4A0jLMTD8/w+S5AdrB7PlBIAEAFBLAwQKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1VUCQADzZxJVi2REFd1eAsAAQT1AQAABBQAAABQSwMEFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAHABDb250ZW50cy9SZXNvdXJjZXMvZGVzY3JpcHRpb24ucnRmZC9UWFQucnRmVVQJAAPNnElWU6UPV3V4CwABBPUBAAAEFAAAACWJOw6AIBAFe08DCBVX2QbWhZgQ1vCpCHcXtHkzkzegtCDB5Xp/g0+UyihARnb70kL/UbvffYpjQODcmk9zKXListxCoUsZA7EQ5S0+dVq085gvUEsDBAoAAAAAAIeBjkgAAAAAAAAAAAAAAAAbABwAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQJAAM9pQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACAAJgI5ICl5liTUBAADMAQAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUCQADcaIPV1OlD1d1eAsAAQT1AQAABBQAAAB9UMtOAkEQrNldd9dhH3Dz6NGYiPIJHjTxLCZeF9iDcXEJC0RvfoI/4sEfIvoHPEQEhbIHvOok01U16emu7vOkaF2dXu7XqrUTcyMATkxCwYKthCAUbmciAQ8O11yFcGBfbF/4jR24WmCvWjwUeXqfNutn13XyEeYYHkqKam+kghdJGfUCvwIfB6jiGAX6aCHHETroCrYFe6IKNEXfGOXChc0v7HKpBRzdSFrtELvbumKVC80F/FIjzwe9bj91uZRuXJuwAiLjNi7DlsxPaJSUAMrCFOeac3GfpINennQ6d/0sA4z7JxzKiVCCV+YHAs74LuuIONUi//4RIoC63czrIbYQS3PFicWJcTMTv1JHmocmROLJ45gjzfHvXJqjf7ZZ4RT+61uaBbDipGh2ZanBcjh8/gFQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAACQAYAAAAAAAAABAA7UEAAAAAQ29udGVudHMvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAoHlwR5R2hqihAQAAvgMAABMAGAAAAAAAAQAAAKSBQwAAAENvbnRlbnRzL0luZm8ucGxpc3RVVAUAA1zWSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAAB0gY5IAAAAAAAAAAAAAAAADwAYAAAAAAAAABAA7UExAgAAQ29udGVudHMvTWFjT1MvVVQFAAMbpQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAVRwXR+w5OCkyCAAAyGEAABUAGAAAAAAAAAAAAO2BegIAAENvbnRlbnRzL01hY09TL2FwcGxldFVUBQADMiPZVXV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABgAAAAAAAEAAADtgfsKAABDb250ZW50cy9NYWNPUy9zdWRvLXByb21wdC1zY3JpcHRVVAUAA4mQEFd1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAYAAAAAAABAAAApIHTDAAAQ29udGVudHMvUGtnSW5mb1VUBQADzZxJVnV4CwABBPUBAAAEFAAAAFBLAQIeAwoAAAAAAJt5cEcAAAAAAAAAAAAAAAATABgAAAAAAAAAEADtQSUNAABDb250ZW50cy9SZXNvdXJjZXMvVVQFAANW1klWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAgHlwR3658rH2BgAAH9wAAB4AGAAAAAAAAAAAAKSBcg0AAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUBQADH9ZJVnV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAO1YcEf3WKZWQAAAAGoBAAAeABgAAAAAAAAAAACkgcAUAABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAYAAAAAAAAABAA7UFYFQAAQ29udGVudHMvUmVzb3VyY2VzL2Rlc2NyaXB0aW9uLnJ0ZmQvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAGAAAAAAAAQAAAKSBthUAAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1RYVC5ydGZVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAACHgY5IAAAAAAAAAAAAAAAAGwAYAAAAAAAAABAA7UFuFgAAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQFAAM9pQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgACYCOSApeZYk1AQAAzAEAACQAGAAAAAAAAAAAAKSBwxYAAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUBQADcaIPV3V4CwABBPUBAAAEFAAAAFBLBQYAAAAADQANANwEAABWGAAAAAA=";var u="User did not grant permission.";var l="No polkit authentication agent found.";var h=134217728},395:(t,r,i)=>{"use strict";const o=i(2037);const a=i(6224);const u=i(6738);const{env:l}=process;let h;if(u("no-color")||u("no-colors")||u("color=false")||u("color=never")){h=0}else if(u("color")||u("colors")||u("color=true")||u("color=always")){h=1}if("FORCE_COLOR"in l){if(l.FORCE_COLOR==="true"){h=1}else if(l.FORCE_COLOR==="false"){h=0}else{h=l.FORCE_COLOR.length===0?1:Math.min(parseInt(l.FORCE_COLOR,10),3)}}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t,r){if(h===0){return 0}if(u("color=16m")||u("color=full")||u("color=truecolor")){return 3}if(u("color=256")){return 2}if(t&&!r&&h===undefined){return 0}const i=h||0;if(l.TERM==="dumb"){return i}if(process.platform==="win32"){const t=o.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in l){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t in l))||l.CI_NAME==="codeship"){return 1}return i}if("TEAMCITY_VERSION"in l){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION)?1:0}if(l.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in l){const t=parseInt((l.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(l.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)){return 1}if("COLORTERM"in l){return 1}return i}function getSupportLevel(t){const r=supportsColor(t,t&&t.isTTY);return translateLevel(r)}t.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,a.isatty(1))),stderr:translateLevel(supportsColor(true,a.isatty(2)))}},8089:(t,r,i)=>{"use strict";r.c=r.create=i(9748);r.r=r.replace=i(6133);r.t=r.list=i(9405);r.u=r.update=i(4437);r.x=r.extract=i(4330);r.Pack=i(5873);r.Unpack=i(1634);r.Parse=i(6474);r.ReadEntry=i(2332);r.WriteEntry=i(9057);r.Header=i(1815);r.Pax=i(3179);r.types=i(2500)},9748:(t,r,i)=>{"use strict";const o=i(4976);const a=i(5873);const u=i(3597);const l=i(9405);const h=i(1017);t.exports=(t,r,i)=>{if(typeof r==="function"){i=r}if(Array.isArray(t)){r=t,t={}}if(!r||!Array.isArray(r)||!r.length){throw new TypeError("no files or directories specified")}r=Array.from(r);const a=o(t);if(a.sync&&typeof i==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!a.file&&typeof i==="function"){throw new TypeError("callback only supported with file option")}return a.file&&a.sync?createFileSync(a,r):a.file?createFile(a,r,i):a.sync?createSync(a,r):create(a,r)};const createFileSync=(t,r)=>{const i=new a.Sync(t);const o=new u.WriteStreamSync(t.file,{mode:t.mode||438});i.pipe(o);addFilesSync(i,r)};const createFile=(t,r,i)=>{const o=new a(t);const l=new u.WriteStream(t.file,{mode:t.mode||438});o.pipe(l);const h=new Promise(((t,r)=>{l.on("error",r);l.on("close",t);o.on("error",r)}));addFilesAsync(o,r);return i?h.then(i,i):h};const addFilesSync=(t,r)=>{r.forEach((r=>{if(r.charAt(0)==="@"){l({file:h.resolve(t.cwd,r.slice(1)),sync:true,noResume:true,onentry:r=>t.add(r)})}else{t.add(r)}}));t.end()};const addFilesAsync=(t,r)=>{while(r.length){const i=r.shift();if(i.charAt(0)==="@"){return l({file:h.resolve(t.cwd,i.slice(1)),noResume:true,onentry:r=>t.add(r)}).then((i=>addFilesAsync(t,r)))}else{t.add(i)}}t.end()};const createSync=(t,r)=>{const i=new a.Sync(t);addFilesSync(i,r);return i};const create=(t,r)=>{const i=new a(t);addFilesAsync(i,r);return i}},4330:(t,r,i)=>{"use strict";const o=i(4976);const a=i(1634);const u=i(7147);const l=i(3597);const h=i(1017);const p=i(422);t.exports=(t,r,i)=>{if(typeof t==="function"){i=t,r=null,t={}}else if(Array.isArray(t)){r=t,t={}}if(typeof r==="function"){i=r,r=null}if(!r){r=[]}else{r=Array.from(r)}const a=o(t);if(a.sync&&typeof i==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!a.file&&typeof i==="function"){throw new TypeError("callback only supported with file option")}if(r.length){filesFilter(a,r)}return a.file&&a.sync?extractFileSync(a):a.file?extractFile(a,i):a.sync?extractSync(a):extract(a)};const filesFilter=(t,r)=>{const i=new Map(r.map((t=>[p(t),true])));const o=t.filter;const mapHas=(t,r)=>{const o=r||h.parse(t).root||".";const a=t===o?false:i.has(t)?i.get(t):mapHas(h.dirname(t),o);i.set(t,a);return a};t.filter=o?(t,r)=>o(t,r)&&mapHas(p(t)):t=>mapHas(p(t))};const extractFileSync=t=>{const r=new a.Sync(t);const i=t.file;const o=u.statSync(i);const h=t.maxReadSize||16*1024*1024;const p=new l.ReadStreamSync(i,{readSize:h,size:o.size});p.pipe(r)};const extractFile=(t,r)=>{const i=new a(t);const o=t.maxReadSize||16*1024*1024;const h=t.file;const p=new Promise(((t,r)=>{i.on("error",r);i.on("close",t);u.stat(h,((t,a)=>{if(t){r(t)}else{const t=new l.ReadStream(h,{readSize:o,size:a.size});t.on("error",r);t.pipe(i)}}))}));return r?p.then(r,r):p};const extractSync=t=>new a.Sync(t);const extract=t=>new a(t)},5868:(t,r,i)=>{const o=process.env.__FAKE_PLATFORM__||process.platform;const a=o==="win32";const u=global.__FAKE_TESTING_FS__||i(7147);const{O_CREAT:l,O_TRUNC:h,O_WRONLY:p,UV_FS_O_FILEMAP:d=0}=u.constants;const m=a&&!!d;const g=512*1024;const y=d|h|l|p;t.exports=!m?()=>"w":t=>t<g?y:"w"},1815:(t,r,i)=>{"use strict";const o=i(2500);const a=i(1017).posix;const u=i(9939);const l=Symbol("slurp");const h=Symbol("type");class Header{constructor(t,r,i,o){this.cksumValid=false;this.needPax=false;this.nullBlock=false;this.block=null;this.path=null;this.mode=null;this.uid=null;this.gid=null;this.size=null;this.mtime=null;this.cksum=null;this[h]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(Buffer.isBuffer(t)){this.decode(t,r||0,i,o)}else if(t){this.set(t)}}decode(t,r,i,o){if(!r){r=0}if(!t||!(t.length>=r+512)){throw new Error("need 512 bytes for header")}this.path=decString(t,r,100);this.mode=decNumber(t,r+100,8);this.uid=decNumber(t,r+108,8);this.gid=decNumber(t,r+116,8);this.size=decNumber(t,r+124,12);this.mtime=decDate(t,r+136,12);this.cksum=decNumber(t,r+148,12);this[l](i);this[l](o,true);this[h]=decString(t,r+156,1);if(this[h]===""){this[h]="0"}if(this[h]==="0"&&this.path.slice(-1)==="/"){this[h]="5"}if(this[h]==="5"){this.size=0}this.linkpath=decString(t,r+157,100);if(t.slice(r+257,r+265).toString()==="ustar\x0000"){this.uname=decString(t,r+265,32);this.gname=decString(t,r+297,32);this.devmaj=decNumber(t,r+329,8);this.devmin=decNumber(t,r+337,8);if(t[r+475]!==0){const i=decString(t,r+345,155);this.path=i+"/"+this.path}else{const i=decString(t,r+345,130);if(i){this.path=i+"/"+this.path}this.atime=decDate(t,r+476,12);this.ctime=decDate(t,r+488,12)}}let a=8*32;for(let i=r;i<r+148;i++){a+=t[i]}for(let i=r+156;i<r+512;i++){a+=t[i]}this.cksumValid=a===this.cksum;if(this.cksum===null&&a===8*32){this.nullBlock=true}}[l](t,r){for(const i in t){if(t[i]!==null&&t[i]!==undefined&&!(r&&i==="path")){this[i]=t[i]}}}encode(t,r){if(!t){t=this.block=Buffer.alloc(512);r=0}if(!r){r=0}if(!(t.length>=r+512)){throw new Error("need 512 bytes for header")}const i=this.ctime||this.atime?130:155;const o=splitPrefix(this.path||"",i);const a=o[0];const u=o[1];this.needPax=o[2];this.needPax=encString(t,r,100,a)||this.needPax;this.needPax=encNumber(t,r+100,8,this.mode)||this.needPax;this.needPax=encNumber(t,r+108,8,this.uid)||this.needPax;this.needPax=encNumber(t,r+116,8,this.gid)||this.needPax;this.needPax=encNumber(t,r+124,12,this.size)||this.needPax;this.needPax=encDate(t,r+136,12,this.mtime)||this.needPax;t[r+156]=this[h].charCodeAt(0);this.needPax=encString(t,r+157,100,this.linkpath)||this.needPax;t.write("ustar\x0000",r+257,8);this.needPax=encString(t,r+265,32,this.uname)||this.needPax;this.needPax=encString(t,r+297,32,this.gname)||this.needPax;this.needPax=encNumber(t,r+329,8,this.devmaj)||this.needPax;this.needPax=encNumber(t,r+337,8,this.devmin)||this.needPax;this.needPax=encString(t,r+345,i,u)||this.needPax;if(t[r+475]!==0){this.needPax=encString(t,r+345,155,u)||this.needPax}else{this.needPax=encString(t,r+345,130,u)||this.needPax;this.needPax=encDate(t,r+476,12,this.atime)||this.needPax;this.needPax=encDate(t,r+488,12,this.ctime)||this.needPax}let l=8*32;for(let i=r;i<r+148;i++){l+=t[i]}for(let i=r+156;i<r+512;i++){l+=t[i]}this.cksum=l;encNumber(t,r+148,8,this.cksum);this.cksumValid=true;return this.needPax}set(t){for(const r in t){if(t[r]!==null&&t[r]!==undefined){this[r]=t[r]}}}get type(){return o.name.get(this[h])||this[h]}get typeKey(){return this[h]}set type(t){if(o.code.has(t)){this[h]=o.code.get(t)}else{this[h]=t}}}const splitPrefix=(t,r)=>{const i=100;let o=t;let u="";let l;const h=a.parse(t).root||".";if(Buffer.byteLength(o)<i){l=[o,u,false]}else{u=a.dirname(o);o=a.basename(o);do{if(Buffer.byteLength(o)<=i&&Buffer.byteLength(u)<=r){l=[o,u,false]}else if(Buffer.byteLength(o)>i&&Buffer.byteLength(u)<=r){l=[o.slice(0,i-1),u,true]}else{o=a.join(a.basename(u),o);u=a.dirname(u)}}while(u!==h&&!l);if(!l){l=[t.slice(0,i-1),"",true]}}return l};const decString=(t,r,i)=>t.slice(r,r+i).toString("utf8").replace(/\0.*/,"");const decDate=(t,r,i)=>numToDate(decNumber(t,r,i));const numToDate=t=>t===null?null:new Date(t*1e3);const decNumber=(t,r,i)=>t[r]&128?u.parse(t.slice(r,r+i)):decSmallNumber(t,r,i);const nanNull=t=>isNaN(t)?null:t;const decSmallNumber=(t,r,i)=>nanNull(parseInt(t.slice(r,r+i).toString("utf8").replace(/\0.*$/,"").trim(),8));const p={12:8589934591,8:2097151};const encNumber=(t,r,i,o)=>o===null?false:o>p[i]||o<0?(u.encode(o,t.slice(r,r+i)),true):(encSmallNumber(t,r,i,o),false);const encSmallNumber=(t,r,i,o)=>t.write(octalString(o,i),r,i,"ascii");const octalString=(t,r)=>padOctal(Math.floor(t).toString(8),r);const padOctal=(t,r)=>(t.length===r-1?t:new Array(r-t.length-1).join("0")+t+" ")+"\0";const encDate=(t,r,i,o)=>o===null?false:encNumber(t,r,i,o.getTime()/1e3);const d=new Array(156).join("\0");const encString=(t,r,i,o)=>o===null?false:(t.write(o+d,r,i,"utf8"),o.length!==Buffer.byteLength(o)||o.length>i);t.exports=Header},4976:t=>{"use strict";const r=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);t.exports=t=>t?Object.keys(t).map((i=>[r.has(i)?r.get(i):i,t[i]])).reduce(((t,r)=>(t[r[0]]=r[1],t)),Object.create(null)):{}},9939:t=>{"use strict";const encode=(t,r)=>{if(!Number.isSafeInteger(t)){throw Error("cannot encode number outside of javascript safe integer range")}else if(t<0){encodeNegative(t,r)}else{encodePositive(t,r)}return r};const encodePositive=(t,r)=>{r[0]=128;for(var i=r.length;i>1;i--){r[i-1]=t&255;t=Math.floor(t/256)}};const encodeNegative=(t,r)=>{r[0]=255;var i=false;t=t*-1;for(var o=r.length;o>1;o--){var a=t&255;t=Math.floor(t/256);if(i){r[o-1]=onesComp(a)}else if(a===0){r[o-1]=0}else{i=true;r[o-1]=twosComp(a)}}};const parse=t=>{const r=t[0];const i=r===128?pos(t.slice(1,t.length)):r===255?twos(t):null;if(i===null){throw Error("invalid base256 encoding")}if(!Number.isSafeInteger(i)){throw Error("parsed number outside of javascript safe integer range")}return i};const twos=t=>{var r=t.length;var i=0;var o=false;for(var a=r-1;a>-1;a--){var u=t[a];var l;if(o){l=onesComp(u)}else if(u===0){l=u}else{o=true;l=twosComp(u)}if(l!==0){i-=l*Math.pow(256,r-a-1)}}return i};const pos=t=>{var r=t.length;var i=0;for(var o=r-1;o>-1;o--){var a=t[o];if(a!==0){i+=a*Math.pow(256,r-o-1)}}return i};const onesComp=t=>(255^t)&255;const twosComp=t=>(255^t)+1&255;t.exports={encode:encode,parse:parse}},9405:(t,r,i)=>{"use strict";const o=i(4976);const a=i(6474);const u=i(7147);const l=i(3597);const h=i(1017);const p=i(422);t.exports=(t,r,i)=>{if(typeof t==="function"){i=t,r=null,t={}}else if(Array.isArray(t)){r=t,t={}}if(typeof r==="function"){i=r,r=null}if(!r){r=[]}else{r=Array.from(r)}const a=o(t);if(a.sync&&typeof i==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!a.file&&typeof i==="function"){throw new TypeError("callback only supported with file option")}if(r.length){filesFilter(a,r)}if(!a.noResume){onentryFunction(a)}return a.file&&a.sync?listFileSync(a):a.file?listFile(a,i):list(a)};const onentryFunction=t=>{const r=t.onentry;t.onentry=r?t=>{r(t);t.resume()}:t=>t.resume()};const filesFilter=(t,r)=>{const i=new Map(r.map((t=>[p(t),true])));const o=t.filter;const mapHas=(t,r)=>{const o=r||h.parse(t).root||".";const a=t===o?false:i.has(t)?i.get(t):mapHas(h.dirname(t),o);i.set(t,a);return a};t.filter=o?(t,r)=>o(t,r)&&mapHas(p(t)):t=>mapHas(p(t))};const listFileSync=t=>{const r=list(t);const i=t.file;let o=true;let a;try{const l=u.statSync(i);const h=t.maxReadSize||16*1024*1024;if(l.size<h){r.end(u.readFileSync(i))}else{let t=0;const o=Buffer.allocUnsafe(h);a=u.openSync(i,"r");while(t<l.size){const i=u.readSync(a,o,0,h,t);t+=i;r.write(o.slice(0,i))}r.end()}o=false}finally{if(o&&a){try{u.closeSync(a)}catch(t){}}}};const listFile=(t,r)=>{const i=new a(t);const o=t.maxReadSize||16*1024*1024;const h=t.file;const p=new Promise(((t,r)=>{i.on("error",r);i.on("end",t);u.stat(h,((t,a)=>{if(t){r(t)}else{const t=new l.ReadStream(h,{readSize:o,size:a.size});t.on("error",r);t.pipe(i)}}))}));return r?p.then(r,r):p};const list=t=>new a(t)},6790:(t,r,i)=>{"use strict";const o=i(4184);const a=i(7147);const u=i(1017);const l=i(5649);const h=i(5536);class SymlinkError extends Error{constructor(t,r){super("Cannot extract through symbolic link");this.path=r;this.symlink=t}get name(){return"SylinkError"}}class CwdError extends Error{constructor(t,r){super(r+": Cannot cd into '"+t+"'");this.path=t;this.code=r}get name(){return"CwdError"}}const cGet=(t,r)=>t.get(h(r));const cSet=(t,r,i)=>t.set(h(r),i);const checkCwd=(t,r)=>{a.stat(t,((i,o)=>{if(i||!o.isDirectory()){i=new CwdError(t,i&&i.code||"ENOTDIR")}r(i)}))};t.exports=(t,r,i)=>{t=h(t);const p=r.umask;const d=r.mode|448;const m=(d&p)!==0;const g=r.uid;const y=r.gid;const A=typeof g==="number"&&typeof y==="number"&&(g!==r.processUid||y!==r.processGid);const b=r.preserve;const v=r.unlink;const E=r.cache;const w=h(r.cwd);const done=(r,o)=>{if(r){i(r)}else{cSet(E,t,true);if(o&&A){l(o,g,y,(t=>done(t)))}else if(m){a.chmod(t,d,i)}else{i()}}};if(E&&cGet(E,t)===true){return done()}if(t===w){return checkCwd(t,done)}if(b){return o(t,{mode:d}).then((t=>done(null,t)),done)}const _=h(u.relative(w,t));const S=_.split("/");mkdir_(w,S,d,E,v,w,null,done)};const mkdir_=(t,r,i,o,l,p,d,m)=>{if(!r.length){return m(null,d)}const g=r.shift();const y=h(u.resolve(t+"/"+g));if(cGet(o,y)){return mkdir_(y,r,i,o,l,p,d,m)}a.mkdir(y,i,onmkdir(y,r,i,o,l,p,d,m))};const onmkdir=(t,r,i,o,u,l,p,d)=>m=>{if(m){a.lstat(t,((g,y)=>{if(g){g.path=g.path&&h(g.path);d(g)}else if(y.isDirectory()){mkdir_(t,r,i,o,u,l,p,d)}else if(u){a.unlink(t,(h=>{if(h){return d(h)}a.mkdir(t,i,onmkdir(t,r,i,o,u,l,p,d))}))}else if(y.isSymbolicLink()){return d(new SymlinkError(t,t+"/"+r.join("/")))}else{d(m)}}))}else{p=p||t;mkdir_(t,r,i,o,u,l,p,d)}};const checkCwdSync=t=>{let r=false;let i="ENOTDIR";try{r=a.statSync(t).isDirectory()}catch(t){i=t.code}finally{if(!r){throw new CwdError(t,i)}}};t.exports.sync=(t,r)=>{t=h(t);const i=r.umask;const p=r.mode|448;const d=(p&i)!==0;const m=r.uid;const g=r.gid;const y=typeof m==="number"&&typeof g==="number"&&(m!==r.processUid||g!==r.processGid);const A=r.preserve;const b=r.unlink;const v=r.cache;const E=h(r.cwd);const done=r=>{cSet(v,t,true);if(r&&y){l.sync(r,m,g)}if(d){a.chmodSync(t,p)}};if(v&&cGet(v,t)===true){return done()}if(t===E){checkCwdSync(E);return done()}if(A){return done(o.sync(t,p))}const w=h(u.relative(E,t));const _=w.split("/");let S=null;for(let t=_.shift(),r=E;t&&(r+="/"+t);t=_.shift()){r=h(u.resolve(r));if(cGet(v,r)){continue}try{a.mkdirSync(r,p);S=S||r;cSet(v,r,true)}catch(t){const i=a.lstatSync(r);if(i.isDirectory()){cSet(v,r,true);continue}else if(b){a.unlinkSync(r);a.mkdirSync(r,p);S=S||r;cSet(v,r,true);continue}else if(i.isSymbolicLink()){return new SymlinkError(r,r+"/"+_.join("/"))}}}return done(S)}},2701:t=>{"use strict";t.exports=(t,r,i)=>{t&=4095;if(i){t=(t|384)&~18}if(r){if(t&256){t|=64}if(t&32){t|=8}if(t&4){t|=1}}return t}},4462:t=>{const r=Object.create(null);const{hasOwnProperty:i}=Object.prototype;t.exports=t=>{if(!i.call(r,t)){r[t]=t.normalize("NFD")}return r[t]}},5536:t=>{const r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;t.exports=r!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")},5873:(t,r,i)=>{"use strict";class PackJob{constructor(t,r){this.path=t||"./";this.absolute=r;this.entry=null;this.stat=null;this.readdir=null;this.pending=false;this.ignore=false;this.piped=false}}const{Minipass:o}=i(6047);const a=i(7547);const u=i(2332);const l=i(9057);const h=l.Sync;const p=l.Tar;const d=i(4461);const m=Buffer.alloc(1024);const g=Symbol("onStat");const y=Symbol("ended");const A=Symbol("queue");const b=Symbol("current");const v=Symbol("process");const E=Symbol("processing");const w=Symbol("processJob");const _=Symbol("jobs");const S=Symbol("jobDone");const C=Symbol("addFSEntry");const D=Symbol("addTarEntry");const x=Symbol("stat");const R=Symbol("readdir");const O=Symbol("onreaddir");const k=Symbol("pipe");const P=Symbol("entry");const T=Symbol("entryOpt");const L=Symbol("writeEntryClass");const I=Symbol("write");const M=Symbol("ondrain");const B=i(7147);const N=i(1017);const $=i(4239);const j=i(5536);const H=$(class Pack extends o{constructor(t){super(t);t=t||Object.create(null);this.opt=t;this.file=t.file||"";this.cwd=t.cwd||process.cwd();this.maxReadSize=t.maxReadSize;this.preservePaths=!!t.preservePaths;this.strict=!!t.strict;this.noPax=!!t.noPax;this.prefix=j(t.prefix||"");this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.readdirCache=t.readdirCache||new Map;this[L]=l;if(typeof t.onwarn==="function"){this.on("warn",t.onwarn)}this.portable=!!t.portable;this.zip=null;if(t.gzip||t.brotli){if(t.gzip&&t.brotli){throw new TypeError("gzip and brotli are mutually exclusive")}if(t.gzip){if(typeof t.gzip!=="object"){t.gzip={}}if(this.portable){t.gzip.portable=true}this.zip=new a.Gzip(t.gzip)}if(t.brotli){if(typeof t.brotli!=="object"){t.brotli={}}this.zip=new a.BrotliCompress(t.brotli)}this.zip.on("data",(t=>super.write(t)));this.zip.on("end",(t=>super.end()));this.zip.on("drain",(t=>this[M]()));this.on("resume",(t=>this.zip.resume()))}else{this.on("drain",this[M])}this.noDirRecurse=!!t.noDirRecurse;this.follow=!!t.follow;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;this.filter=typeof t.filter==="function"?t.filter:t=>true;this[A]=new d;this[_]=0;this.jobs=+t.jobs||4;this[E]=false;this[y]=false}[I](t){return super.write(t)}add(t){this.write(t);return this}end(t){if(t){this.write(t)}this[y]=true;this[v]();return this}write(t){if(this[y]){throw new Error("write after end")}if(t instanceof u){this[D](t)}else{this[C](t)}return this.flowing}[D](t){const r=j(N.resolve(this.cwd,t.path));if(!this.filter(t.path,t)){t.resume()}else{const i=new PackJob(t.path,r,false);i.entry=new p(t,this[T](i));i.entry.on("end",(t=>this[S](i)));this[_]+=1;this[A].push(i)}this[v]()}[C](t){const r=j(N.resolve(this.cwd,t));this[A].push(new PackJob(t,r));this[v]()}[x](t){t.pending=true;this[_]+=1;const r=this.follow?"stat":"lstat";B[r](t.absolute,((r,i)=>{t.pending=false;this[_]-=1;if(r){this.emit("error",r)}else{this[g](t,i)}}))}[g](t,r){this.statCache.set(t.absolute,r);t.stat=r;if(!this.filter(t.path,r)){t.ignore=true}this[v]()}[R](t){t.pending=true;this[_]+=1;B.readdir(t.absolute,((r,i)=>{t.pending=false;this[_]-=1;if(r){return this.emit("error",r)}this[O](t,i)}))}[O](t,r){this.readdirCache.set(t.absolute,r);t.readdir=r;this[v]()}[v](){if(this[E]){return}this[E]=true;for(let t=this[A].head;t!==null&&this[_]<this.jobs;t=t.next){this[w](t.value);if(t.value.ignore){const r=t.next;this[A].removeNode(t);t.next=r}}this[E]=false;if(this[y]&&!this[A].length&&this[_]===0){if(this.zip){this.zip.end(m)}else{super.write(m);super.end()}}}get[b](){return this[A]&&this[A].head&&this[A].head.value}[S](t){this[A].shift();this[_]-=1;this[v]()}[w](t){if(t.pending){return}if(t.entry){if(t===this[b]&&!t.piped){this[k](t)}return}if(!t.stat){if(this.statCache.has(t.absolute)){this[g](t,this.statCache.get(t.absolute))}else{this[x](t)}}if(!t.stat){return}if(t.ignore){return}if(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir){if(this.readdirCache.has(t.absolute)){this[O](t,this.readdirCache.get(t.absolute))}else{this[R](t)}if(!t.readdir){return}}t.entry=this[P](t);if(!t.entry){t.ignore=true;return}if(t===this[b]&&!t.piped){this[k](t)}}[T](t){return{onwarn:(t,r,i)=>this.warn(t,r,i),noPax:this.noPax,cwd:this.cwd,absolute:t.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[P](t){this[_]+=1;try{return new this[L](t.path,this[T](t)).on("end",(()=>this[S](t))).on("error",(t=>this.emit("error",t)))}catch(t){this.emit("error",t)}}[M](){if(this[b]&&this[b].entry){this[b].entry.resume()}}[k](t){t.piped=true;if(t.readdir){t.readdir.forEach((r=>{const i=t.path;const o=i==="./"?"":i.replace(/\/*$/,"/");this[C](o+r)}))}const r=t.entry;const i=this.zip;if(i){r.on("data",(t=>{if(!i.write(t)){r.pause()}}))}else{r.on("data",(t=>{if(!super.write(t)){r.pause()}}))}}pause(){if(this.zip){this.zip.pause()}return super.pause()}});class PackSync extends H{constructor(t){super(t);this[L]=h}pause(){}resume(){}[x](t){const r=this.follow?"statSync":"lstatSync";this[g](t,B[r](t.absolute))}[R](t,r){this[O](t,B.readdirSync(t.absolute))}[k](t){const r=t.entry;const i=this.zip;if(t.readdir){t.readdir.forEach((r=>{const i=t.path;const o=i==="./"?"":i.replace(/\/*$/,"/");this[C](o+r)}))}if(i){r.on("data",(t=>{i.write(t)}))}else{r.on("data",(t=>{super[I](t)}))}}}H.Sync=PackSync;t.exports=H},6474:(t,r,i)=>{"use strict";const o=i(4239);const a=i(1815);const u=i(2361);const l=i(4461);const h=1024*1024;const p=i(2332);const d=i(3179);const m=i(7547);const{nextTick:g}=i(7282);const y=Buffer.from([31,139]);const A=Symbol("state");const b=Symbol("writeEntry");const v=Symbol("readEntry");const E=Symbol("nextEntry");const w=Symbol("processEntry");const _=Symbol("extendedHeader");const S=Symbol("globalExtendedHeader");const C=Symbol("meta");const D=Symbol("emitMeta");const x=Symbol("buffer");const R=Symbol("queue");const O=Symbol("ended");const k=Symbol("emittedEnd");const P=Symbol("emit");const T=Symbol("unzip");const L=Symbol("consumeChunk");const I=Symbol("consumeChunkSub");const M=Symbol("consumeBody");const B=Symbol("consumeMeta");const N=Symbol("consumeHeader");const $=Symbol("consuming");const j=Symbol("bufferConcat");const H=Symbol("maybeEnd");const G=Symbol("writing");const U=Symbol("aborted");const W=Symbol("onDone");const z=Symbol("sawValidEntry");const Y=Symbol("sawNullBlock");const V=Symbol("sawEOF");const Q=Symbol("closeStream");const noop=t=>true;t.exports=o(class Parser extends u{constructor(t){t=t||{};super(t);this.file=t.file||"";this[z]=null;this.on(W,(t=>{if(this[A]==="begin"||this[z]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}}));if(t.ondone){this.on(W,t.ondone)}else{this.on(W,(t=>{this.emit("prefinish");this.emit("finish");this.emit("end")}))}this.strict=!!t.strict;this.maxMetaEntrySize=t.maxMetaEntrySize||h;this.filter=typeof t.filter==="function"?t.filter:noop;const r=t.file&&(t.file.endsWith(".tar.br")||t.file.endsWith(".tbr"));this.brotli=!t.gzip&&t.brotli!==undefined?t.brotli:r?undefined:false;this.writable=true;this.readable=false;this[R]=new l;this[x]=null;this[v]=null;this[b]=null;this[A]="begin";this[C]="";this[_]=null;this[S]=null;this[O]=false;this[T]=null;this[U]=false;this[Y]=false;this[V]=false;this.on("end",(()=>this[Q]()));if(typeof t.onwarn==="function"){this.on("warn",t.onwarn)}if(typeof t.onentry==="function"){this.on("entry",t.onentry)}}[N](t,r){if(this[z]===null){this[z]=false}let i;try{i=new a(t,r,this[_],this[S])}catch(t){return this.warn("TAR_ENTRY_INVALID",t)}if(i.nullBlock){if(this[Y]){this[V]=true;if(this[A]==="begin"){this[A]="header"}this[P]("eof")}else{this[Y]=true;this[P]("nullBlock")}}else{this[Y]=false;if(!i.cksumValid){this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i})}else if(!i.path){this.warn("TAR_ENTRY_INVALID","path is required",{header:i})}else{const t=i.type;if(/^(Symbolic)?Link$/.test(t)&&!i.linkpath){this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i})}else if(!/^(Symbolic)?Link$/.test(t)&&i.linkpath){this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i})}else{const t=this[b]=new p(i,this[_],this[S]);if(!this[z]){if(t.remain){const onend=()=>{if(!t.invalid){this[z]=true}};t.on("end",onend)}else{this[z]=true}}if(t.meta){if(t.size>this.maxMetaEntrySize){t.ignore=true;this[P]("ignoredEntry",t);this[A]="ignore";t.resume()}else if(t.size>0){this[C]="";t.on("data",(t=>this[C]+=t));this[A]="meta"}}else{this[_]=null;t.ignore=t.ignore||!this.filter(t.path,t);if(t.ignore){this[P]("ignoredEntry",t);this[A]=t.remain?"ignore":"header";t.resume()}else{if(t.remain){this[A]="body"}else{this[A]="header";t.end()}if(!this[v]){this[R].push(t);this[E]()}else{this[R].push(t)}}}}}}}[Q](){g((()=>this.emit("close")))}[w](t){let r=true;if(!t){this[v]=null;r=false}else if(Array.isArray(t)){this.emit.apply(this,t)}else{this[v]=t;this.emit("entry",t);if(!t.emittedEnd){t.on("end",(t=>this[E]()));r=false}}return r}[E](){do{}while(this[w](this[R].shift()));if(!this[R].length){const t=this[v];const r=!t||t.flowing||t.size===t.remain;if(r){if(!this[G]){this.emit("drain")}}else{t.once("drain",(t=>this.emit("drain")))}}}[M](t,r){const i=this[b];const o=i.blockRemain;const a=o>=t.length&&r===0?t:t.slice(r,r+o);i.write(a);if(!i.blockRemain){this[A]="header";this[b]=null;i.end()}return a.length}[B](t,r){const i=this[b];const o=this[M](t,r);if(!this[b]){this[D](i)}return o}[P](t,r,i){if(!this[R].length&&!this[v]){this.emit(t,r,i)}else{this[R].push([t,r,i])}}[D](t){this[P]("meta",this[C]);switch(t.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=d.parse(this[C],this[_],false);break;case"GlobalExtendedHeader":this[S]=d.parse(this[C],this[S],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null);this[_].path=this[C].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null);this[_].linkpath=this[C].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[U]=true;this.emit("abort",t);this.warn("TAR_ABORT",t,{recoverable:false})}write(t){if(this[U]){return}const r=this[T]===null||this.brotli===undefined&&this[T]===false;if(r&&t){if(this[x]){t=Buffer.concat([this[x],t]);this[x]=null}if(t.length<y.length){this[x]=t;return true}for(let r=0;this[T]===null&&r<y.length;r++){if(t[r]!==y[r]){this[T]=false}}const r=this.brotli===undefined;if(this[T]===false&&r){if(t.length<512){if(this[O]){this.brotli=true}else{this[x]=t;return true}}else{try{new a(t.slice(0,512));this.brotli=false}catch(t){this.brotli=true}}}if(this[T]===null||this[T]===false&&this.brotli){const r=this[O];this[O]=false;this[T]=this[T]===null?new m.Unzip:new m.BrotliDecompress;this[T].on("data",(t=>this[L](t)));this[T].on("error",(t=>this.abort(t)));this[T].on("end",(t=>{this[O]=true;this[L]()}));this[G]=true;const i=this[T][r?"end":"write"](t);this[G]=false;return i}}this[G]=true;if(this[T]){this[T].write(t)}else{this[L](t)}this[G]=false;const i=this[R].length?false:this[v]?this[v].flowing:true;if(!i&&!this[R].length){this[v].once("drain",(t=>this.emit("drain")))}return i}[j](t){if(t&&!this[U]){this[x]=this[x]?Buffer.concat([this[x],t]):t}}[H](){if(this[O]&&!this[k]&&!this[U]&&!this[$]){this[k]=true;const t=this[b];if(t&&t.blockRemain){const r=this[x]?this[x].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t});if(this[x]){t.write(this[x])}t.end()}this[P](W)}}[L](t){if(this[$]){this[j](t)}else if(!t&&!this[x]){this[H]()}else{this[$]=true;if(this[x]){this[j](t);const r=this[x];this[x]=null;this[I](r)}else{this[I](t)}while(this[x]&&this[x].length>=512&&!this[U]&&!this[V]){const t=this[x];this[x]=null;this[I](t)}this[$]=false}if(!this[x]||this[O]){this[H]()}}[I](t){let r=0;const i=t.length;while(r+512<=i&&!this[U]&&!this[V]){switch(this[A]){case"begin":case"header":this[N](t,r);r+=512;break;case"ignore":case"body":r+=this[M](t,r);break;case"meta":r+=this[B](t,r);break;default:throw new Error("invalid state: "+this[A])}}if(r<i){if(this[x]){this[x]=Buffer.concat([t.slice(r),this[x]])}else{this[x]=t.slice(r)}}}end(t){if(!this[U]){if(this[T]){this[T].end(t)}else{this[O]=true;if(this.brotli===undefined)t=t||Buffer.alloc(0);this.write(t)}}}})},1891:(t,r,i)=>{const o=i(9491);const a=i(4462);const u=i(422);const{join:l}=i(1017);const h=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const p=h==="win32";t.exports=()=>{const t=new Map;const r=new Map;const getDirs=t=>{const r=t.split("/").slice(0,-1).reduce(((t,r)=>{if(t.length){r=l(t[t.length-1],r)}t.push(r||"/");return t}),[]);return r};const i=new Set;const getQueues=i=>{const o=r.get(i);if(!o){throw new Error("function does not have any path reservations")}return{paths:o.paths.map((r=>t.get(r))),dirs:[...o.dirs].map((r=>t.get(r)))}};const check=t=>{const{paths:r,dirs:i}=getQueues(t);return r.every((r=>r[0]===t))&&i.every((r=>r[0]instanceof Set&&r[0].has(t)))};const run=t=>{if(i.has(t)||!check(t)){return false}i.add(t);t((()=>clear(t)));return true};const clear=a=>{if(!i.has(a)){return false}const{paths:u,dirs:l}=r.get(a);const h=new Set;u.forEach((r=>{const i=t.get(r);o.equal(i[0],a);if(i.length===1){t.delete(r)}else{i.shift();if(typeof i[0]==="function"){h.add(i[0])}else{i[0].forEach((t=>h.add(t)))}}}));l.forEach((r=>{const i=t.get(r);o(i[0]instanceof Set);if(i[0].size===1&&i.length===1){t.delete(r)}else if(i[0].size===1){i.shift();h.add(i[0])}else{i[0].delete(a)}}));i.delete(a);h.forEach((t=>run(t)));return true};const reserve=(i,o)=>{i=p?["win32 parallelization disabled"]:i.map((t=>u(l(a(t))).toLowerCase()));const h=new Set(i.map((t=>getDirs(t))).reduce(((t,r)=>t.concat(r))));r.set(o,{dirs:h,paths:i});i.forEach((r=>{const i=t.get(r);if(!i){t.set(r,[o])}else{i.push(o)}}));h.forEach((r=>{const i=t.get(r);if(!i){t.set(r,[new Set([o])])}else if(i[i.length-1]instanceof Set){i[i.length-1].add(o)}else{i.push(new Set([o]))}}));return run(o)};return{check:check,reserve:reserve}}},3179:(t,r,i)=>{"use strict";const o=i(1815);const a=i(1017);class Pax{constructor(t,r){this.atime=t.atime||null;this.charset=t.charset||null;this.comment=t.comment||null;this.ctime=t.ctime||null;this.gid=t.gid||null;this.gname=t.gname||null;this.linkpath=t.linkpath||null;this.mtime=t.mtime||null;this.path=t.path||null;this.size=t.size||null;this.uid=t.uid||null;this.uname=t.uname||null;this.dev=t.dev||null;this.ino=t.ino||null;this.nlink=t.nlink||null;this.global=r||false}encode(){const t=this.encodeBody();if(t===""){return null}const r=Buffer.byteLength(t);const i=512*Math.ceil(1+r/512);const u=Buffer.allocUnsafe(i);for(let t=0;t<512;t++){u[t]=0}new o({path:("PaxHeader/"+a.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(u);u.write(t,512,r,"utf8");for(let t=r+512;t<u.length;t++){u[t]=0}return u}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(t){if(this[t]===null||this[t]===undefined){return""}const r=this[t]instanceof Date?this[t].getTime()/1e3:this[t];const i=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+r+"\n";const o=Buffer.byteLength(i);let a=Math.floor(Math.log(o)/Math.log(10))+1;if(o+a>=Math.pow(10,a)){a+=1}const u=a+o;return u+i}}Pax.parse=(t,r,i)=>new Pax(merge(parseKV(t),r),i);const merge=(t,r)=>r?Object.keys(t).reduce(((r,i)=>(r[i]=t[i],r)),r):t;const parseKV=t=>t.replace(/\n$/,"").split("\n").reduce(parseKVLine,Object.create(null));const parseKVLine=(t,r)=>{const i=parseInt(r,10);if(i!==Buffer.byteLength(r)+1){return t}r=r.slice((i+" ").length);const o=r.split("=");const a=o.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!a){return t}const u=o.join("=");t[a]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(a)?new Date(u*1e3):/^[0-9]+$/.test(u)?+u:u;return t};t.exports=Pax},2332:(t,r,i)=>{"use strict";const{Minipass:o}=i(6047);const a=i(5536);const u=Symbol("slurp");t.exports=class ReadEntry extends o{constructor(t,r,i){super();this.pause();this.extended=r;this.globalExtended=i;this.header=t;this.startBlockSize=512*Math.ceil(t.size/512);this.blockRemain=this.startBlockSize;this.remain=t.size;this.type=t.type;this.meta=false;this.ignore=false;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}this.path=a(t.path);this.mode=t.mode;if(this.mode){this.mode=this.mode&4095}this.uid=t.uid;this.gid=t.gid;this.uname=t.uname;this.gname=t.gname;this.size=t.size;this.mtime=t.mtime;this.atime=t.atime;this.ctime=t.ctime;this.linkpath=a(t.linkpath);this.uname=t.uname;this.gname=t.gname;if(r){this[u](r)}if(i){this[u](i,true)}}write(t){const r=t.length;if(r>this.blockRemain){throw new Error("writing more to entry than is appropriate")}const i=this.remain;const o=this.blockRemain;this.remain=Math.max(0,i-r);this.blockRemain=Math.max(0,o-r);if(this.ignore){return true}if(i>=r){return super.write(t)}return super.write(t.slice(0,i))}[u](t,r){for(const i in t){if(t[i]!==null&&t[i]!==undefined&&!(r&&i==="path")){this[i]=i==="path"||i==="linkpath"?a(t[i]):t[i]}}}}},6133:(t,r,i)=>{"use strict";const o=i(4976);const a=i(5873);const u=i(7147);const l=i(3597);const h=i(9405);const p=i(1017);const d=i(1815);t.exports=(t,r,i)=>{const a=o(t);if(!a.file){throw new TypeError("file is required")}if(a.gzip||a.brotli||a.file.endsWith(".br")||a.file.endsWith(".tbr")){throw new TypeError("cannot append to compressed archives")}if(!r||!Array.isArray(r)||!r.length){throw new TypeError("no files or directories specified")}r=Array.from(r);return a.sync?replaceSync(a,r):replace(a,r,i)};const replaceSync=(t,r)=>{const i=new a.Sync(t);let o=true;let l;let h;try{try{l=u.openSync(t.file,"r+")}catch(r){if(r.code==="ENOENT"){l=u.openSync(t.file,"w+")}else{throw r}}const a=u.fstatSync(l);const p=Buffer.alloc(512);e:for(h=0;h<a.size;h+=512){for(let t=0,r=0;t<512;t+=r){r=u.readSync(l,p,t,p.length-t,h+t);if(h===0&&p[0]===31&&p[1]===139){throw new Error("cannot append to compressed archives")}if(!r){break e}}const r=new d(p);if(!r.cksumValid){break}const i=512*Math.ceil(r.size/512);if(h+i+512>a.size){break}h+=i;if(t.mtimeCache){t.mtimeCache.set(r.path,r.mtime)}}o=false;streamSync(t,i,h,l,r)}finally{if(o){try{u.closeSync(l)}catch(t){}}}};const streamSync=(t,r,i,o,a)=>{const u=new l.WriteStreamSync(t.file,{fd:o,start:i});r.pipe(u);addFilesSync(r,a)};const replace=(t,r,i)=>{r=Array.from(r);const o=new a(t);const getPos=(r,i,o)=>{const cb=(t,i)=>{if(t){u.close(r,(r=>o(t)))}else{o(null,i)}};let a=0;if(i===0){return cb(null,0)}let l=0;const h=Buffer.alloc(512);const onread=(o,p)=>{if(o){return cb(o)}l+=p;if(l<512&&p){return u.read(r,h,l,h.length-l,a+l,onread)}if(a===0&&h[0]===31&&h[1]===139){return cb(new Error("cannot append to compressed archives"))}if(l<512){return cb(null,a)}const m=new d(h);if(!m.cksumValid){return cb(null,a)}const g=512*Math.ceil(m.size/512);if(a+g+512>i){return cb(null,a)}a+=g+512;if(a>=i){return cb(null,a)}if(t.mtimeCache){t.mtimeCache.set(m.path,m.mtime)}l=0;u.read(r,h,0,512,a,onread)};u.read(r,h,0,512,a,onread)};const h=new Promise(((i,a)=>{o.on("error",a);let h="r+";const onopen=(p,d)=>{if(p&&p.code==="ENOENT"&&h==="r+"){h="w+";return u.open(t.file,h,onopen)}if(p){return a(p)}u.fstat(d,((h,p)=>{if(h){return u.close(d,(()=>a(h)))}getPos(d,p.size,((u,h)=>{if(u){return a(u)}const p=new l.WriteStream(t.file,{fd:d,start:h});o.pipe(p);p.on("error",a);p.on("close",i);addFilesAsync(o,r)}))}))};u.open(t.file,h,onopen)}));return i?h.then(i,i):h};const addFilesSync=(t,r)=>{r.forEach((r=>{if(r.charAt(0)==="@"){h({file:p.resolve(t.cwd,r.slice(1)),sync:true,noResume:true,onentry:r=>t.add(r)})}else{t.add(r)}}));t.end()};const addFilesAsync=(t,r)=>{while(r.length){const i=r.shift();if(i.charAt(0)==="@"){return h({file:p.resolve(t.cwd,i.slice(1)),noResume:true,onentry:r=>t.add(r)}).then((i=>addFilesAsync(t,r)))}else{t.add(i)}}t.end()}},8047:(t,r,i)=>{const{isAbsolute:o,parse:a}=i(1017).win32;t.exports=t=>{let r="";let i=a(t);while(o(t)||i.root){const o=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":i.root;t=t.slice(o.length);r+=o;i=a(t)}return[r,t]}},422:t=>{t.exports=t=>{let r=t.length-1;let i=-1;while(r>-1&&t.charAt(r)==="/"){i=r;r--}return i===-1?t:t.slice(0,i)}},2500:(t,r)=>{"use strict";r.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);r.code=new Map(Array.from(r.name).map((t=>[t[1],t[0]])))},1634:(t,r,i)=>{"use strict";const o=i(9491);const a=i(6474);const u=i(7147);const l=i(3597);const h=i(1017);const p=i(6790);const d=i(4465);const m=i(1891);const g=i(8047);const y=i(5536);const A=i(422);const b=i(4462);const v=Symbol("onEntry");const E=Symbol("checkFs");const w=Symbol("checkFs2");const _=Symbol("pruneCache");const S=Symbol("isReusable");const C=Symbol("makeFs");const D=Symbol("file");const x=Symbol("directory");const R=Symbol("link");const O=Symbol("symlink");const k=Symbol("hardlink");const P=Symbol("unsupported");const T=Symbol("checkPath");const L=Symbol("mkdir");const I=Symbol("onError");const M=Symbol("pending");const B=Symbol("pend");const N=Symbol("unpend");const $=Symbol("ended");const j=Symbol("maybeClose");const H=Symbol("skip");const G=Symbol("doChown");const U=Symbol("uid");const W=Symbol("gid");const z=Symbol("checkedCwd");const Y=i(6113);const V=i(5868);const Q=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const K=Q==="win32";const X=1024;const unlinkFile=(t,r)=>{if(!K){return u.unlink(t,r)}const i=t+".DELETE."+Y.randomBytes(16).toString("hex");u.rename(t,i,(t=>{if(t){return r(t)}u.unlink(i,r)}))};const unlinkFileSync=t=>{if(!K){return u.unlinkSync(t)}const r=t+".DELETE."+Y.randomBytes(16).toString("hex");u.renameSync(t,r);u.unlinkSync(r)};const uint32=(t,r,i)=>t===t>>>0?t:r===r>>>0?r:i;const cacheKeyNormalize=t=>A(y(b(t))).toLowerCase();const pruneCache=(t,r)=>{r=cacheKeyNormalize(r);for(const i of t.keys()){const o=cacheKeyNormalize(i);if(o===r||o.indexOf(r+"/")===0){t.delete(i)}}};const dropCache=t=>{for(const r of t.keys()){t.delete(r)}};class Unpack extends a{constructor(t){if(!t){t={}}t.ondone=t=>{this[$]=true;this[j]()};super(t);this[z]=false;this.reservations=m();this.transform=typeof t.transform==="function"?t.transform:null;this.writable=true;this.readable=false;this[M]=0;this[$]=false;this.dirCache=t.dirCache||new Map;if(typeof t.uid==="number"||typeof t.gid==="number"){if(typeof t.uid!=="number"||typeof t.gid!=="number"){throw new TypeError("cannot set owner without number uid and gid")}if(t.preserveOwner){throw new TypeError("cannot preserve owner in archive and also set owner explicitly")}this.uid=t.uid;this.gid=t.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(t.preserveOwner===undefined&&typeof t.uid!=="number"){this.preserveOwner=process.getuid&&process.getuid()===0}else{this.preserveOwner=!!t.preserveOwner}this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null;this.maxDepth=typeof t.maxDepth==="number"?t.maxDepth:X;this.forceChown=t.forceChown===true;this.win32=!!t.win32||K;this.newer=!!t.newer;this.keep=!!t.keep;this.noMtime=!!t.noMtime;this.preservePaths=!!t.preservePaths;this.unlink=!!t.unlink;this.cwd=y(h.resolve(t.cwd||process.cwd()));this.strip=+t.strip||0;this.processUmask=t.noChmod?0:process.umask();this.umask=typeof t.umask==="number"?t.umask:this.processUmask;this.dmode=t.dmode||511&~this.umask;this.fmode=t.fmode||438&~this.umask;this.on("entry",(t=>this[v](t)))}warn(t,r,i={}){if(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT"){i.recoverable=false}return super.warn(t,r,i)}[j](){if(this[$]&&this[M]===0){this.emit("prefinish");this.emit("finish");this.emit("end")}}[T](t){const r=y(t.path);const i=r.split("/");if(this.strip){if(i.length<this.strip){return false}if(t.type==="Link"){const r=y(t.linkpath).split("/");if(r.length>=this.strip){t.linkpath=r.slice(this.strip).join("/")}else{return false}}i.splice(0,this.strip);t.path=i.join("/")}if(isFinite(this.maxDepth)&&i.length>this.maxDepth){this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:t,path:r,depth:i.length,maxDepth:this.maxDepth});return false}if(!this.preservePaths){if(i.includes("..")||K&&/^[a-z]:\.\.$/i.test(i[0])){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:t,path:r});return false}const[o,a]=g(r);if(o){t.path=a;this.warn("TAR_ENTRY_INFO",`stripping ${o} from absolute path`,{entry:t,path:r})}}if(h.isAbsolute(t.path)){t.absolute=y(h.resolve(t.path))}else{t.absolute=y(h.resolve(this.cwd,t.path))}if(!this.preservePaths&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd){this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:y(t.path),resolvedPath:t.absolute,cwd:this.cwd});return false}if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir"){return false}if(this.win32){const{root:r}=h.win32.parse(t.absolute);t.absolute=r+d.encode(t.absolute.slice(r.length));const{root:i}=h.win32.parse(t.path);t.path=i+d.encode(t.path.slice(i.length))}return true}[v](t){if(!this[T](t)){return t.resume()}o.equal(typeof t.absolute,"string");switch(t.type){case"Directory":case"GNUDumpDir":if(t.mode){t.mode=t.mode|448}case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[E](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[P](t)}}[I](t,r){if(t.name==="CwdError"){this.emit("error",t)}else{this.warn("TAR_ENTRY_ERROR",t,{entry:r});this[N]();r.resume()}}[L](t,r,i){p(y(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[G](t){return this.forceChown||this.preserveOwner&&(typeof t.uid==="number"&&t.uid!==this.processUid||typeof t.gid==="number"&&t.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[U](t){return uint32(this.uid,t.uid,this.processUid)}[W](t){return uint32(this.gid,t.gid,this.processGid)}[D](t,r){const i=t.mode&4095||this.fmode;const o=new l.WriteStream(t.absolute,{flags:V(t.size),mode:i,autoClose:false});o.on("error",(i=>{if(o.fd){u.close(o.fd,(()=>{}))}o.write=()=>true;this[I](i,t);r()}));let a=1;const done=i=>{if(i){if(o.fd){u.close(o.fd,(()=>{}))}this[I](i,t);r();return}if(--a===0){u.close(o.fd,(i=>{if(i){this[I](i,t)}else{this[N]()}r()}))}};o.on("finish",(r=>{const i=t.absolute;const l=o.fd;if(t.mtime&&!this.noMtime){a++;const r=t.atime||new Date;const o=t.mtime;u.futimes(l,r,o,(t=>t?u.utimes(i,r,o,(r=>done(r&&t))):done()))}if(this[G](t)){a++;const r=this[U](t);const o=this[W](t);u.fchown(l,r,o,(t=>t?u.chown(i,r,o,(r=>done(r&&t))):done()))}done()}));const h=this.transform?this.transform(t)||t:t;if(h!==t){h.on("error",(i=>{this[I](i,t);r()}));t.pipe(h)}h.pipe(o)}[x](t,r){const i=t.mode&4095||this.dmode;this[L](t.absolute,i,(i=>{if(i){this[I](i,t);r();return}let o=1;const done=i=>{if(--o===0){r();this[N]();t.resume()}};if(t.mtime&&!this.noMtime){o++;u.utimes(t.absolute,t.atime||new Date,t.mtime,done)}if(this[G](t)){o++;u.chown(t.absolute,this[U](t),this[W](t),done)}done()}))}[P](t){t.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t});t.resume()}[O](t,r){this[R](t,t.linkpath,"symlink",r)}[k](t,r){const i=y(h.resolve(this.cwd,t.linkpath));this[R](t,i,"link",r)}[B](){this[M]++}[N](){this[M]--;this[j]()}[H](t){this[N]();t.resume()}[S](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!K}[E](t){this[B]();const r=[t.path];if(t.linkpath){r.push(t.linkpath)}this.reservations.reserve(r,(r=>this[w](t,r)))}[_](t){if(t.type==="SymbolicLink"){dropCache(this.dirCache)}else if(t.type!=="Directory"){pruneCache(this.dirCache,t.absolute)}}[w](t,r){this[_](t);const done=i=>{this[_](t);r(i)};const checkCwd=()=>{this[L](this.cwd,this.dmode,(r=>{if(r){this[I](r,t);done();return}this[z]=true;start()}))};const start=()=>{if(t.absolute!==this.cwd){const r=y(h.dirname(t.absolute));if(r!==this.cwd){return this[L](r,this.dmode,(r=>{if(r){this[I](r,t);done();return}afterMakeParent()}))}}afterMakeParent()};const afterMakeParent=()=>{u.lstat(t.absolute,((r,i)=>{if(i&&(this.keep||this.newer&&i.mtime>t.mtime)){this[H](t);done();return}if(r||this[S](t,i)){return this[C](null,t,done)}if(i.isDirectory()){if(t.type==="Directory"){const r=!this.noChmod&&t.mode&&(i.mode&4095)!==t.mode;const afterChmod=r=>this[C](r,t,done);if(!r){return afterChmod()}return u.chmod(t.absolute,t.mode,afterChmod)}if(t.absolute!==this.cwd){return u.rmdir(t.absolute,(r=>this[C](r,t,done)))}}if(t.absolute===this.cwd){return this[C](null,t,done)}unlinkFile(t.absolute,(r=>this[C](r,t,done)))}))};if(this[z]){start()}else{checkCwd()}}[C](t,r,i){if(t){this[I](t,r);i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[D](r,i);case"Link":return this[k](r,i);case"SymbolicLink":return this[O](r,i);case"Directory":case"GNUDumpDir":return this[x](r,i)}}[R](t,r,i,o){u[i](r,t.absolute,(r=>{if(r){this[I](r,t)}else{this[N]();t.resume()}o()}))}}const callSync=t=>{try{return[null,t()]}catch(t){return[t,null]}};class UnpackSync extends Unpack{[C](t,r){return super[C](t,r,(()=>{}))}[E](t){this[_](t);if(!this[z]){const r=this[L](this.cwd,this.dmode);if(r){return this[I](r,t)}this[z]=true}if(t.absolute!==this.cwd){const r=y(h.dirname(t.absolute));if(r!==this.cwd){const i=this[L](r,this.dmode);if(i){return this[I](i,t)}}}const[r,i]=callSync((()=>u.lstatSync(t.absolute)));if(i&&(this.keep||this.newer&&i.mtime>t.mtime)){return this[H](t)}if(r||this[S](t,i)){return this[C](null,t)}if(i.isDirectory()){if(t.type==="Directory"){const r=!this.noChmod&&t.mode&&(i.mode&4095)!==t.mode;const[o]=r?callSync((()=>{u.chmodSync(t.absolute,t.mode)})):[];return this[C](o,t)}const[r]=callSync((()=>u.rmdirSync(t.absolute)));this[C](r,t)}const[o]=t.absolute===this.cwd?[]:callSync((()=>unlinkFileSync(t.absolute)));this[C](o,t)}[D](t,r){const i=t.mode&4095||this.fmode;const oner=i=>{let a;try{u.closeSync(o)}catch(t){a=t}if(i||a){this[I](i||a,t)}r()};let o;try{o=u.openSync(t.absolute,V(t.size),i)}catch(t){return oner(t)}const a=this.transform?this.transform(t)||t:t;if(a!==t){a.on("error",(r=>this[I](r,t)));t.pipe(a)}a.on("data",(t=>{try{u.writeSync(o,t,0,t.length)}catch(t){oner(t)}}));a.on("end",(r=>{let i=null;if(t.mtime&&!this.noMtime){const r=t.atime||new Date;const a=t.mtime;try{u.futimesSync(o,r,a)}catch(o){try{u.utimesSync(t.absolute,r,a)}catch(t){i=o}}}if(this[G](t)){const r=this[U](t);const a=this[W](t);try{u.fchownSync(o,r,a)}catch(o){try{u.chownSync(t.absolute,r,a)}catch(t){i=i||o}}}oner(i)}))}[x](t,r){const i=t.mode&4095||this.dmode;const o=this[L](t.absolute,i);if(o){this[I](o,t);r();return}if(t.mtime&&!this.noMtime){try{u.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch(o){}}if(this[G](t)){try{u.chownSync(t.absolute,this[U](t),this[W](t))}catch(o){}}r();t.resume()}[L](t,r){try{return p.sync(y(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(t){return t}}[R](t,r,i,o){try{u[i+"Sync"](r,t.absolute);o();t.resume()}catch(r){return this[I](r,t)}}}Unpack.Sync=UnpackSync;t.exports=Unpack},4437:(t,r,i)=>{"use strict";const o=i(4976);const a=i(6133);t.exports=(t,r,i)=>{const u=o(t);if(!u.file){throw new TypeError("file is required")}if(u.gzip||u.brotli||u.file.endsWith(".br")||u.file.endsWith(".tbr")){throw new TypeError("cannot append to compressed archives")}if(!r||!Array.isArray(r)||!r.length){throw new TypeError("no files or directories specified")}r=Array.from(r);mtimeFilter(u);return a(u,r,i)};const mtimeFilter=t=>{const r=t.filter;if(!t.mtimeCache){t.mtimeCache=new Map}t.filter=r?(i,o)=>r(i,o)&&!(t.mtimeCache.get(i)>o.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}},4239:t=>{"use strict";t.exports=t=>class extends t{warn(t,r,i={}){if(this.file){i.file=this.file}if(this.cwd){i.cwd=this.cwd}i.code=r instanceof Error&&r.code||t;i.tarCode=t;if(!this.strict&&i.recoverable!==false){if(r instanceof Error){i=Object.assign(r,i);r=r.message}this.emit("warn",i.tarCode,r,i)}else if(r instanceof Error){this.emit("error",Object.assign(r,i))}else{this.emit("error",Object.assign(new Error(`${t}: ${r}`),i))}}}},4465:t=>{"use strict";const r=["|","<",">","?",":"];const i=r.map((t=>String.fromCharCode(61440+t.charCodeAt(0))));const o=new Map(r.map(((t,r)=>[t,i[r]])));const a=new Map(i.map(((t,i)=>[t,r[i]])));t.exports={encode:t=>r.reduce(((t,r)=>t.split(r).join(o.get(r))),t),decode:t=>i.reduce(((t,r)=>t.split(r).join(a.get(r))),t)}},9057:(t,r,i)=>{"use strict";const{Minipass:o}=i(6047);const a=i(3179);const u=i(1815);const l=i(7147);const h=i(1017);const p=i(5536);const d=i(422);const prefixPath=(t,r)=>{if(!r){return p(t)}t=p(t).replace(/^\.(\/|$)/,"");return d(r)+"/"+t};const m=16*1024*1024;const g=Symbol("process");const y=Symbol("file");const A=Symbol("directory");const b=Symbol("symlink");const v=Symbol("hardlink");const E=Symbol("header");const w=Symbol("read");const _=Symbol("lstat");const S=Symbol("onlstat");const C=Symbol("onread");const D=Symbol("onreadlink");const x=Symbol("openfile");const R=Symbol("onopenfile");const O=Symbol("close");const k=Symbol("mode");const P=Symbol("awaitDrain");const T=Symbol("ondrain");const L=Symbol("prefix");const I=Symbol("hadError");const M=i(4239);const B=i(4465);const N=i(8047);const $=i(2701);const j=M(class WriteEntry extends o{constructor(t,r){r=r||{};super(r);if(typeof t!=="string"){throw new TypeError("path is required")}this.path=p(t);this.portable=!!r.portable;this.myuid=process.getuid&&process.getuid()||0;this.myuser=process.env.USER||"";this.maxReadSize=r.maxReadSize||m;this.linkCache=r.linkCache||new Map;this.statCache=r.statCache||new Map;this.preservePaths=!!r.preservePaths;this.cwd=p(r.cwd||process.cwd());this.strict=!!r.strict;this.noPax=!!r.noPax;this.noMtime=!!r.noMtime;this.mtime=r.mtime||null;this.prefix=r.prefix?p(r.prefix):null;this.fd=null;this.blockLen=null;this.blockRemain=null;this.buf=null;this.offset=null;this.length=null;this.pos=null;this.remain=null;if(typeof r.onwarn==="function"){this.on("warn",r.onwarn)}let i=false;if(!this.preservePaths){const[t,r]=N(this.path);if(t){this.path=r;i=t}}this.win32=!!r.win32||process.platform==="win32";if(this.win32){this.path=B.decode(this.path.replace(/\\/g,"/"));t=t.replace(/\\/g,"/")}this.absolute=p(r.absolute||h.resolve(this.cwd,t));if(this.path===""){this.path="./"}if(i){this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path})}if(this.statCache.has(this.absolute)){this[S](this.statCache.get(this.absolute))}else{this[_]()}}emit(t,...r){if(t==="error"){this[I]=true}return super.emit(t,...r)}[_](){l.lstat(this.absolute,((t,r)=>{if(t){return this.emit("error",t)}this[S](r)}))}[S](t){this.statCache.set(this.absolute,t);this.stat=t;if(!t.isFile()){t.size=0}this.type=getType(t);this.emit("stat",t);this[g]()}[g](){switch(this.type){case"File":return this[y]();case"Directory":return this[A]();case"SymbolicLink":return this[b]();default:return this.end()}}[k](t){return $(t,this.type==="Directory",this.portable)}[L](t){return prefixPath(t,this.prefix)}[E](){if(this.type==="Directory"&&this.portable){this.noMtime=true}this.header=new u({path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,mode:this[k](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime});if(this.header.encode()&&!this.noPax){super.write(new a({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode())}super.write(this.header.block)}[A](){if(this.path.slice(-1)!=="/"){this.path+="/"}this.stat.size=0;this[E]();this.end()}[b](){l.readlink(this.absolute,((t,r)=>{if(t){return this.emit("error",t)}this[D](r)}))}[D](t){this.linkpath=p(t);this[E]();this.end()}[v](t){this.type="Link";this.linkpath=p(h.relative(this.cwd,t));this.stat.size=0;this[E]();this.end()}[y](){if(this.stat.nlink>1){const t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){const r=this.linkCache.get(t);if(r.indexOf(this.cwd)===0){return this[v](r)}}this.linkCache.set(t,this.absolute)}this[E]();if(this.stat.size===0){return this.end()}this[x]()}[x](){l.open(this.absolute,"r",((t,r)=>{if(t){return this.emit("error",t)}this[R](r)}))}[R](t){this.fd=t;if(this[I]){return this[O]()}this.blockLen=512*Math.ceil(this.stat.size/512);this.blockRemain=this.blockLen;const r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r);this.offset=0;this.pos=0;this.remain=this.stat.size;this.length=this.buf.length;this[w]()}[w](){const{fd:t,buf:r,offset:i,length:o,pos:a}=this;l.read(t,r,i,o,a,((t,r)=>{if(t){return this[O]((()=>this.emit("error",t)))}this[C](r)}))}[O](t){l.close(this.fd,t)}[C](t){if(t<=0&&this.remain>0){const t=new Error("encountered unexpected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[O]((()=>this.emit("error",t)))}if(t>this.remain){const t=new Error("did not encounter expected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[O]((()=>this.emit("error",t)))}if(t===this.remain){for(let r=t;r<this.length&&t<this.blockRemain;r++){this.buf[r+this.offset]=0;t++;this.remain++}}const r=this.offset===0&&t===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+t);const i=this.write(r);if(!i){this[P]((()=>this[T]()))}else{this[T]()}}[P](t){this.once("drain",t)}write(t){if(this.blockRemain<t.length){const t=new Error("writing more data than expected");t.path=this.absolute;return this.emit("error",t)}this.remain-=t.length;this.blockRemain-=t.length;this.pos+=t.length;this.offset+=t.length;return super.write(t)}[T](){if(!this.remain){if(this.blockRemain){super.write(Buffer.alloc(this.blockRemain))}return this[O]((t=>t?this.emit("error",t):this.end()))}if(this.offset>=this.length){this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length));this.offset=0}this.length=this.buf.length-this.offset;this[w]()}});class WriteEntrySync extends j{[_](){this[S](l.lstatSync(this.absolute))}[b](){this[D](l.readlinkSync(this.absolute))}[x](){this[R](l.openSync(this.absolute,"r"))}[w](){let t=true;try{const{fd:r,buf:i,offset:o,length:a,pos:u}=this;const h=l.readSync(r,i,o,a,u);this[C](h);t=false}finally{if(t){try{this[O]((()=>{}))}catch(t){}}}}[P](t){t()}[O](t){l.closeSync(this.fd);t()}}const H=M(class WriteEntryTar extends o{constructor(t,r){r=r||{};super(r);this.preservePaths=!!r.preservePaths;this.portable=!!r.portable;this.strict=!!r.strict;this.noPax=!!r.noPax;this.noMtime=!!r.noMtime;this.readEntry=t;this.type=t.type;if(this.type==="Directory"&&this.portable){this.noMtime=true}this.prefix=r.prefix||null;this.path=p(t.path);this.mode=this[k](t.mode);this.uid=this.portable?null:t.uid;this.gid=this.portable?null:t.gid;this.uname=this.portable?null:t.uname;this.gname=this.portable?null:t.gname;this.size=t.size;this.mtime=this.noMtime?null:r.mtime||t.mtime;this.atime=this.portable?null:t.atime;this.ctime=this.portable?null:t.ctime;this.linkpath=p(t.linkpath);if(typeof r.onwarn==="function"){this.on("warn",r.onwarn)}let i=false;if(!this.preservePaths){const[t,r]=N(this.path);if(t){this.path=r;i=t}}this.remain=t.size;this.blockRemain=t.startBlockSize;this.header=new u({path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime});if(i){this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path})}if(this.header.encode()&&!this.noPax){super.write(new a({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode())}super.write(this.header.block);t.pipe(this)}[L](t){return prefixPath(t,this.prefix)}[k](t){return $(t,this.type==="Directory",this.portable)}write(t){const r=t.length;if(r>this.blockRemain){throw new Error("writing more to entry than is appropriate")}this.blockRemain-=r;return super.write(t)}end(){if(this.blockRemain){super.write(Buffer.alloc(this.blockRemain))}return super.end()}});j.Sync=WriteEntrySync;j.Tar=H;const getType=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";t.exports=j},5649:(t,r,i)=>{"use strict";const o=i(7147);const a=i(1017);const u=o.lchown?"lchown":"chown";const l=o.lchownSync?"lchownSync":"chownSync";const h=o.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const lchownSync=(t,r,i)=>{try{return o[l](t,r,i)}catch(t){if(t.code!=="ENOENT")throw t}};const chownSync=(t,r,i)=>{try{return o.chownSync(t,r,i)}catch(t){if(t.code!=="ENOENT")throw t}};const p=h?(t,r,i,a)=>u=>{if(!u||u.code!=="EISDIR")a(u);else o.chown(t,r,i,a)}:(t,r,i,o)=>o;const d=h?(t,r,i)=>{try{return lchownSync(t,r,i)}catch(o){if(o.code!=="EISDIR")throw o;chownSync(t,r,i)}}:(t,r,i)=>lchownSync(t,r,i);const m=process.version;let readdir=(t,r,i)=>o.readdir(t,r,i);let readdirSync=(t,r)=>o.readdirSync(t,r);if(/^v4\./.test(m))readdir=(t,r,i)=>o.readdir(t,i);const chown=(t,r,i,a)=>{o[u](t,r,i,p(t,r,i,(t=>{a(t&&t.code!=="ENOENT"?t:null)})))};const chownrKid=(t,r,i,u,l)=>{if(typeof r==="string")return o.lstat(a.resolve(t,r),((o,a)=>{if(o)return l(o.code!=="ENOENT"?o:null);a.name=r;chownrKid(t,a,i,u,l)}));if(r.isDirectory()){chownr(a.resolve(t,r.name),i,u,(o=>{if(o)return l(o);const h=a.resolve(t,r.name);chown(h,i,u,l)}))}else{const o=a.resolve(t,r.name);chown(o,i,u,l)}};const chownr=(t,r,i,o)=>{readdir(t,{withFileTypes:true},((a,u)=>{if(a){if(a.code==="ENOENT")return o();else if(a.code!=="ENOTDIR"&&a.code!=="ENOTSUP")return o(a)}if(a||!u.length)return chown(t,r,i,o);let l=u.length;let h=null;const then=a=>{if(h)return;if(a)return o(h=a);if(--l===0)return chown(t,r,i,o)};u.forEach((o=>chownrKid(t,o,r,i,then)))}))};const chownrKidSync=(t,r,i,u)=>{if(typeof r==="string"){try{const i=o.lstatSync(a.resolve(t,r));i.name=r;r=i}catch(t){if(t.code==="ENOENT")return;else throw t}}if(r.isDirectory())chownrSync(a.resolve(t,r.name),i,u);d(a.resolve(t,r.name),i,u)};const chownrSync=(t,r,i)=>{let o;try{o=readdirSync(t,{withFileTypes:true})}catch(o){if(o.code==="ENOENT")return;else if(o.code==="ENOTDIR"||o.code==="ENOTSUP")return d(t,r,i);else throw o}if(o&&o.length)o.forEach((o=>chownrKidSync(t,o,r,i)));return d(t,r,i)};t.exports=chownr;chownr.sync=chownrSync},6047:(t,r,i)=>{"use strict";const o=typeof process==="object"&&process?process:{stdout:null,stderr:null};const a=i(2361);const u=i(2781);const l=i(1576);const h=l.StringDecoder;const p=Symbol("EOF");const d=Symbol("maybeEmitEnd");const m=Symbol("emittedEnd");const g=Symbol("emittingEnd");const y=Symbol("emittedError");const A=Symbol("closed");const b=Symbol("read");const v=Symbol("flush");const E=Symbol("flushChunk");const w=Symbol("encoding");const _=Symbol("decoder");const S=Symbol("flowing");const C=Symbol("paused");const D=Symbol("resume");const x=Symbol("buffer");const R=Symbol("pipes");const O=Symbol("bufferLength");const k=Symbol("bufferPush");const P=Symbol("bufferShift");const T=Symbol("objectMode");const L=Symbol("destroyed");const I=Symbol("error");const M=Symbol("emitData");const B=Symbol("emitEnd");const N=Symbol("emitEnd2");const $=Symbol("async");const j=Symbol("abort");const H=Symbol("aborted");const G=Symbol("signal");const defer=t=>Promise.resolve().then(t);const U=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const W=U&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const z=U&&Symbol.iterator||Symbol("iterator not implemented");const isEndish=t=>t==="end"||t==="finish"||t==="prefinish";const isArrayBuffer=t=>t instanceof ArrayBuffer||typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const isArrayBufferView=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);class Pipe{constructor(t,r,i){this.src=t;this.dest=r;this.opts=i;this.ondrain=()=>t[D]();r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(t,r,i){super(t,r,i);this.proxyErrors=t=>r.emit("error",t);t.on("error",this.proxyErrors)}}class Minipass extends u{constructor(t){super();this[S]=false;this[C]=false;this[R]=[];this[x]=[];this[T]=t&&t.objectMode||false;if(this[T])this[w]=null;else this[w]=t&&t.encoding||null;if(this[w]==="buffer")this[w]=null;this[$]=t&&!!t.async||false;this[_]=this[w]?new h(this[w]):null;this[p]=false;this[m]=false;this[g]=false;this[A]=false;this[y]=null;this.writable=true;this.readable=true;this[O]=0;this[L]=false;if(t&&t.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[x]})}if(t&&t.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[R]})}this[G]=t&&t.signal;this[H]=false;if(this[G]){this[G].addEventListener("abort",(()=>this[j]()));if(this[G].aborted){this[j]()}}}get bufferLength(){return this[O]}get encoding(){return this[w]}set encoding(t){if(this[T])throw new Error("cannot set encoding in objectMode");if(this[w]&&t!==this[w]&&(this[_]&&this[_].lastNeed||this[O]))throw new Error("cannot change encoding");if(this[w]!==t){this[_]=t?new h(t):null;if(this[x].length)this[x]=this[x].map((t=>this[_].write(t)))}this[w]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[T]}set objectMode(t){this[T]=this[T]||!!t}get["async"](){return this[$]}set["async"](t){this[$]=this[$]||!!t}[j](){this[H]=true;this.emit("abort",this[G].reason);this.destroy(this[G].reason)}get aborted(){return this[H]}set aborted(t){}write(t,r,i){if(this[H])return false;if(this[p])throw new Error("write after end");if(this[L]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof r==="function")i=r,r="utf8";if(!r)r="utf8";const o=this[$]?defer:t=>t();if(!this[T]&&!Buffer.isBuffer(t)){if(isArrayBufferView(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(isArrayBuffer(t))t=Buffer.from(t);else if(typeof t!=="string")this.objectMode=true}if(this[T]){if(this.flowing&&this[O]!==0)this[v](true);if(this.flowing)this.emit("data",t);else this[k](t);if(this[O]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(!t.length){if(this[O]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(typeof t==="string"&&!(r===this[w]&&!this[_].lastNeed)){t=Buffer.from(t,r)}if(Buffer.isBuffer(t)&&this[w])t=this[_].write(t);if(this.flowing&&this[O]!==0)this[v](true);if(this.flowing)this.emit("data",t);else this[k](t);if(this[O]!==0)this.emit("readable");if(i)o(i);return this.flowing}read(t){if(this[L])return null;if(this[O]===0||t===0||t>this[O]){this[d]();return null}if(this[T])t=null;if(this[x].length>1&&!this[T]){if(this.encoding)this[x]=[this[x].join("")];else this[x]=[Buffer.concat(this[x],this[O])]}const r=this[b](t||null,this[x][0]);this[d]();return r}[b](t,r){if(t===r.length||t===null)this[P]();else{this[x][0]=r.slice(t);r=r.slice(0,t);this[O]-=t}this.emit("data",r);if(!this[x].length&&!this[p])this.emit("drain");return r}end(t,r,i){if(typeof t==="function")i=t,t=null;if(typeof r==="function")i=r,r="utf8";if(t)this.write(t,r);if(i)this.once("end",i);this[p]=true;this.writable=false;if(this.flowing||!this[C])this[d]();return this}[D](){if(this[L])return;this[C]=false;this[S]=true;this.emit("resume");if(this[x].length)this[v]();else if(this[p])this[d]();else this.emit("drain")}resume(){return this[D]()}pause(){this[S]=false;this[C]=true}get destroyed(){return this[L]}get flowing(){return this[S]}get paused(){return this[C]}[k](t){if(this[T])this[O]+=1;else this[O]+=t.length;this[x].push(t)}[P](){if(this[T])this[O]-=1;else this[O]-=this[x][0].length;return this[x].shift()}[v](t){do{}while(this[E](this[P]())&&this[x].length);if(!t&&!this[x].length&&!this[p])this.emit("drain")}[E](t){this.emit("data",t);return this.flowing}pipe(t,r){if(this[L])return;const i=this[m];r=r||{};if(t===o.stdout||t===o.stderr)r.end=false;else r.end=r.end!==false;r.proxyErrors=!!r.proxyErrors;if(i){if(r.end)t.end()}else{this[R].push(!r.proxyErrors?new Pipe(this,t,r):new PipeProxyErrors(this,t,r));if(this[$])defer((()=>this[D]()));else this[D]()}return t}unpipe(t){const r=this[R].find((r=>r.dest===t));if(r){this[R].splice(this[R].indexOf(r),1);r.unpipe()}}addListener(t,r){return this.on(t,r)}on(t,r){const i=super.on(t,r);if(t==="data"&&!this[R].length&&!this.flowing)this[D]();else if(t==="readable"&&this[O]!==0)super.emit("readable");else if(isEndish(t)&&this[m]){super.emit(t);this.removeAllListeners(t)}else if(t==="error"&&this[y]){if(this[$])defer((()=>r.call(this,this[y])));else r.call(this,this[y])}return i}get emittedEnd(){return this[m]}[d](){if(!this[g]&&!this[m]&&!this[L]&&this[x].length===0&&this[p]){this[g]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[A])this.emit("close");this[g]=false}}emit(t,r,...i){if(t!=="error"&&t!=="close"&&t!==L&&this[L])return;else if(t==="data"){return!this[T]&&!r?false:this[$]?defer((()=>this[M](r))):this[M](r)}else if(t==="end"){return this[B]()}else if(t==="close"){this[A]=true;if(!this[m]&&!this[L])return;const t=super.emit("close");this.removeAllListeners("close");return t}else if(t==="error"){this[y]=r;super.emit(I,r);const t=!this[G]||this.listeners("error").length?super.emit("error",r):false;this[d]();return t}else if(t==="resume"){const t=super.emit("resume");this[d]();return t}else if(t==="finish"||t==="prefinish"){const r=super.emit(t);this.removeAllListeners(t);return r}const o=super.emit(t,r,...i);this[d]();return o}[M](t){for(const r of this[R]){if(r.dest.write(t)===false)this.pause()}const r=super.emit("data",t);this[d]();return r}[B](){if(this[m])return;this[m]=true;this.readable=false;if(this[$])defer((()=>this[N]()));else this[N]()}[N](){if(this[_]){const t=this[_].end();if(t){for(const r of this[R]){r.dest.write(t)}super.emit("data",t)}}for(const t of this[R]){t.end()}const t=super.emit("end");this.removeAllListeners("end");return t}collect(){const t=[];if(!this[T])t.dataLength=0;const r=this.promise();this.on("data",(r=>{t.push(r);if(!this[T])t.dataLength+=r.length}));return r.then((()=>t))}concat(){return this[T]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((t=>this[T]?Promise.reject(new Error("cannot concat in objectMode")):this[w]?t.join(""):Buffer.concat(t,t.dataLength)))}promise(){return new Promise(((t,r)=>{this.on(L,(()=>r(new Error("stream destroyed"))));this.on("error",(t=>r(t)));this.on("end",(()=>t()))}))}[W](){let t=false;const stop=()=>{this.pause();t=true;return Promise.resolve({done:true})};const next=()=>{if(t)return stop();const r=this.read();if(r!==null)return Promise.resolve({done:false,value:r});if(this[p])return stop();let i=null;let o=null;const onerr=t=>{this.removeListener("data",ondata);this.removeListener("end",onend);this.removeListener(L,ondestroy);stop();o(t)};const ondata=t=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.removeListener(L,ondestroy);this.pause();i({value:t,done:!!this[p]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);this.removeListener(L,ondestroy);stop();i({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((t,r)=>{o=r;i=t;this.once(L,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[W](){return this}}}[z](){let t=false;const stop=()=>{this.pause();this.removeListener(I,stop);this.removeListener(L,stop);this.removeListener("end",stop);t=true;return{done:true}};const next=()=>{if(t)return stop();const r=this.read();return r===null?stop():{value:r}};this.once("end",stop);this.once(I,stop);this.once(L,stop);return{next:next,throw:stop,return:stop,[z](){return this}}}destroy(t){if(this[L]){if(t)this.emit("error",t);else this.emit(L);return this}this[L]=true;this[x].length=0;this[O]=0;if(typeof this.close==="function"&&!this[A])this.close();if(t)this.emit("error",t);else this.emit(L);return this}static isStream(t){return!!t&&(t instanceof Minipass||t instanceof u||t instanceof a&&(typeof t.pipe==="function"||typeof t.write==="function"&&typeof t.end==="function"))}}r.Minipass=Minipass},4184:(t,r,i)=>{const o=i(9320);const a=i(5467);const{mkdirpNative:u,mkdirpNativeSync:l}=i(5625);const{mkdirpManual:h,mkdirpManualSync:p}=i(5124);const{useNative:d,useNativeSync:m}=i(628);const mkdirp=(t,r)=>{t=a(t);r=o(r);return d(r)?u(t,r):h(t,r)};const mkdirpSync=(t,r)=>{t=a(t);r=o(r);return m(r)?l(t,r):p(t,r)};mkdirp.sync=mkdirpSync;mkdirp.native=(t,r)=>u(a(t),o(r));mkdirp.manual=(t,r)=>h(a(t),o(r));mkdirp.nativeSync=(t,r)=>l(a(t),o(r));mkdirp.manualSync=(t,r)=>p(a(t),o(r));t.exports=mkdirp},9731:(t,r,i)=>{const{dirname:o}=i(1017);const findMade=(t,r,i=undefined)=>{if(i===r)return Promise.resolve();return t.statAsync(r).then((t=>t.isDirectory()?i:undefined),(i=>i.code==="ENOENT"?findMade(t,o(r),r):undefined))};const findMadeSync=(t,r,i=undefined)=>{if(i===r)return undefined;try{return t.statSync(r).isDirectory()?i:undefined}catch(i){return i.code==="ENOENT"?findMadeSync(t,o(r),r):undefined}};t.exports={findMade:findMade,findMadeSync:findMadeSync}},5124:(t,r,i)=>{const{dirname:o}=i(1017);const mkdirpManual=(t,r,i)=>{r.recursive=false;const a=o(t);if(a===t){return r.mkdirAsync(t,r).catch((t=>{if(t.code!=="EISDIR")throw t}))}return r.mkdirAsync(t,r).then((()=>i||t),(o=>{if(o.code==="ENOENT")return mkdirpManual(a,r).then((i=>mkdirpManual(t,r,i)));if(o.code!=="EEXIST"&&o.code!=="EROFS")throw o;return r.statAsync(t).then((t=>{if(t.isDirectory())return i;else throw o}),(()=>{throw o}))}))};const mkdirpManualSync=(t,r,i)=>{const a=o(t);r.recursive=false;if(a===t){try{return r.mkdirSync(t,r)}catch(t){if(t.code!=="EISDIR")throw t;else return}}try{r.mkdirSync(t,r);return i||t}catch(o){if(o.code==="ENOENT")return mkdirpManualSync(t,r,mkdirpManualSync(a,r,i));if(o.code!=="EEXIST"&&o.code!=="EROFS")throw o;try{if(!r.statSync(t).isDirectory())throw o}catch(t){throw o}}};t.exports={mkdirpManual:mkdirpManual,mkdirpManualSync:mkdirpManualSync}},5625:(t,r,i)=>{const{dirname:o}=i(1017);const{findMade:a,findMadeSync:u}=i(9731);const{mkdirpManual:l,mkdirpManualSync:h}=i(5124);const mkdirpNative=(t,r)=>{r.recursive=true;const i=o(t);if(i===t)return r.mkdirAsync(t,r);return a(r,t).then((i=>r.mkdirAsync(t,r).then((()=>i)).catch((i=>{if(i.code==="ENOENT")return l(t,r);else throw i}))))};const mkdirpNativeSync=(t,r)=>{r.recursive=true;const i=o(t);if(i===t)return r.mkdirSync(t,r);const a=u(r,t);try{r.mkdirSync(t,r);return a}catch(i){if(i.code==="ENOENT")return h(t,r);else throw i}};t.exports={mkdirpNative:mkdirpNative,mkdirpNativeSync:mkdirpNativeSync}},9320:(t,r,i)=>{const{promisify:o}=i(3837);const a=i(7147);const optsArg=t=>{if(!t)t={mode:511,fs:a};else if(typeof t==="object")t={mode:511,fs:a,...t};else if(typeof t==="number")t={mode:t,fs:a};else if(typeof t==="string")t={mode:parseInt(t,8),fs:a};else throw new TypeError("invalid options argument");t.mkdir=t.mkdir||t.fs.mkdir||a.mkdir;t.mkdirAsync=o(t.mkdir);t.stat=t.stat||t.fs.stat||a.stat;t.statAsync=o(t.stat);t.statSync=t.statSync||t.fs.statSync||a.statSync;t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||a.mkdirSync;return t};t.exports=optsArg},5467:(t,r,i)=>{const o=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:a,parse:u}=i(1017);const pathArg=t=>{if(/\0/.test(t)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"})}t=a(t);if(o==="win32"){const r=/[*|"<>?:]/;const{root:i}=u(t);if(r.test(t.substr(i.length))){throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}}return t};t.exports=pathArg},628:(t,r,i)=>{const o=i(7147);const a=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const u=a.replace(/^v/,"").split(".");const l=+u[0]>10||+u[0]===10&&+u[1]>=12;const h=!l?()=>false:t=>t.mkdir===o.mkdir;const p=!l?()=>false:t=>t.mkdirSync===o.mkdirSync;t.exports={useNative:h,useNativeSync:p}},887:(t,r,i)=>{"use strict";
|
|
87
|
+
var o=i(4300);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}if(a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow){t.exports=o}else{copyProps(o,r);r.Buffer=SafeBuffer}function SafeBuffer(t,r,i){return a(t,r,i)}SafeBuffer.prototype=Object.create(a.prototype);copyProps(a,SafeBuffer);SafeBuffer.from=function(t,r,i){if(typeof t==="number"){throw new TypeError("Argument must not be a number")}return a(t,r,i)};SafeBuffer.alloc=function(t,r,i){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}var o=a(t);if(r!==undefined){if(typeof i==="string"){o.fill(r,i)}else{o.fill(r)}}else{o.fill(0)}return o};SafeBuffer.allocUnsafe=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return a(t)};SafeBuffer.allocUnsafeSlow=function(t){if(typeof t!=="number"){throw new TypeError("Argument must be a number")}return o.SlowBuffer(t)}},1790:(t,r,i)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(t,r){r=a(r);if(t instanceof Comparator){if(t.loose===!!r.loose){return t}else{t=t.value}}t=t.trim().split(/\s+/).join(" ");p("comparator",t,r);this.options=r;this.loose=!!r.loose;this.parse(t);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}p("comp",this)}parse(t){const r=this.options.loose?u[l.COMPARATORLOOSE]:u[l.COMPARATOR];const i=t.match(r);if(!i){throw new TypeError(`Invalid comparator: ${t}`)}this.operator=i[1]!==undefined?i[1]:"";if(this.operator==="="){this.operator=""}if(!i[2]){this.semver=o}else{this.semver=new d(i[2],this.options.loose)}}toString(){return this.value}test(t){p("Comparator.test",t,this.options.loose);if(this.semver===o||t===o){return true}if(typeof t==="string"){try{t=new d(t,this.options)}catch(t){return false}}return h(t,this.operator,this.semver,this.options)}intersects(t,r){if(!(t instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new m(t.value,r).test(this.value)}else if(t.operator===""){if(t.value===""){return true}return new m(this.value,r).test(t.semver)}r=a(r);if(r.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")){return false}if(!r.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&t.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&t.operator.startsWith("<")){return true}if(this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")){return true}if(h(this.semver,"<",t.semver,r)&&this.operator.startsWith(">")&&t.operator.startsWith("<")){return true}if(h(this.semver,">",t.semver,r)&&this.operator.startsWith("<")&&t.operator.startsWith(">")){return true}return false}}t.exports=Comparator;const a=i(6772);const{safeRe:u,t:l}=i(4063);const h=i(8801);const p=i(3619);const d=i(1490);const m=i(5287)},5287:(t,r,i)=>{const o=/\s+/g;class Range{constructor(t,r){r=l(r);if(t instanceof Range){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{return new Range(t.raw,r)}}if(t instanceof h){this.raw=t.value;this.set=[[t]];this.formatted=undefined;return this}this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;this.raw=t.trim().replace(o," ");this.set=this.raw.split("||").map((t=>this.parseRange(t.trim()))).filter((t=>t.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const t=this.set[0];this.set=this.set.filter((t=>!isNullSet(t[0])));if(this.set.length===0){this.set=[t]}else if(this.set.length>1){for(const t of this.set){if(t.length===1&&isAny(t[0])){this.set=[t];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let t=0;t<this.set.length;t++){if(t>0){this.formatted+="||"}const r=this.set[t];for(let t=0;t<r.length;t++){if(t>0){this.formatted+=" "}this.formatted+=r[t].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){const r=(this.options.includePrerelease&&v)|(this.options.loose&&E);const i=r+":"+t;const o=u.get(i);if(o){return o}const a=this.options.loose;const l=a?m[g.HYPHENRANGELOOSE]:m[g.HYPHENRANGE];t=t.replace(l,hyphenReplace(this.options.includePrerelease));p("hyphen replace",t);t=t.replace(m[g.COMPARATORTRIM],y);p("comparator trim",t);t=t.replace(m[g.TILDETRIM],A);p("tilde trim",t);t=t.replace(m[g.CARETTRIM],b);p("caret trim",t);let d=t.split(" ").map((t=>parseComparator(t,this.options))).join(" ").split(/\s+/).map((t=>replaceGTE0(t,this.options)));if(a){d=d.filter((t=>{p("loose invalid filter",t,this.options);return!!t.match(m[g.COMPARATORLOOSE])}))}p("range list",d);const w=new Map;const _=d.map((t=>new h(t,this.options)));for(const t of _){if(isNullSet(t)){return[t]}w.set(t.value,t)}if(w.size>1&&w.has("")){w.delete("")}const S=[...w.values()];u.set(i,S);return S}intersects(t,r){if(!(t instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((i=>isSatisfiable(i,r)&&t.set.some((t=>isSatisfiable(t,r)&&i.every((i=>t.every((t=>i.intersects(t,r)))))))))}test(t){if(!t){return false}if(typeof t==="string"){try{t=new d(t,this.options)}catch(t){return false}}for(let r=0;r<this.set.length;r++){if(testSet(this.set[r],t,this.options)){return true}}return false}}t.exports=Range;const a=i(1191);const u=new a;const l=i(6772);const h=i(1790);const p=i(3619);const d=i(1490);const{safeRe:m,t:g,comparatorTrimReplace:y,tildeTrimReplace:A,caretTrimReplace:b}=i(4063);const{FLAG_INCLUDE_PRERELEASE:v,FLAG_LOOSE:E}=i(9073);const isNullSet=t=>t.value==="<0.0.0-0";const isAny=t=>t.value==="";const isSatisfiable=(t,r)=>{let i=true;const o=t.slice();let a=o.pop();while(i&&o.length){i=o.every((t=>a.intersects(t,r)));a=o.pop()}return i};const parseComparator=(t,r)=>{p("comp",t,r);t=replaceCarets(t,r);p("caret",t);t=replaceTildes(t,r);p("tildes",t);t=replaceXRanges(t,r);p("xrange",t);t=replaceStars(t,r);p("stars",t);return t};const isX=t=>!t||t.toLowerCase()==="x"||t==="*";const replaceTildes=(t,r)=>t.trim().split(/\s+/).map((t=>replaceTilde(t,r))).join(" ");const replaceTilde=(t,r)=>{const i=r.loose?m[g.TILDELOOSE]:m[g.TILDE];return t.replace(i,((r,i,o,a,u)=>{p("tilde",t,r,i,o,a,u);let l;if(isX(i)){l=""}else if(isX(o)){l=`>=${i}.0.0 <${+i+1}.0.0-0`}else if(isX(a)){l=`>=${i}.${o}.0 <${i}.${+o+1}.0-0`}else if(u){p("replaceTilde pr",u);l=`>=${i}.${o}.${a}-${u} <${i}.${+o+1}.0-0`}else{l=`>=${i}.${o}.${a} <${i}.${+o+1}.0-0`}p("tilde return",l);return l}))};const replaceCarets=(t,r)=>t.trim().split(/\s+/).map((t=>replaceCaret(t,r))).join(" ");const replaceCaret=(t,r)=>{p("caret",t,r);const i=r.loose?m[g.CARETLOOSE]:m[g.CARET];const o=r.includePrerelease?"-0":"";return t.replace(i,((r,i,a,u,l)=>{p("caret",t,r,i,a,u,l);let h;if(isX(i)){h=""}else if(isX(a)){h=`>=${i}.0.0${o} <${+i+1}.0.0-0`}else if(isX(u)){if(i==="0"){h=`>=${i}.${a}.0${o} <${i}.${+a+1}.0-0`}else{h=`>=${i}.${a}.0${o} <${+i+1}.0.0-0`}}else if(l){p("replaceCaret pr",l);if(i==="0"){if(a==="0"){h=`>=${i}.${a}.${u}-${l} <${i}.${a}.${+u+1}-0`}else{h=`>=${i}.${a}.${u}-${l} <${i}.${+a+1}.0-0`}}else{h=`>=${i}.${a}.${u}-${l} <${+i+1}.0.0-0`}}else{p("no pr");if(i==="0"){if(a==="0"){h=`>=${i}.${a}.${u}${o} <${i}.${a}.${+u+1}-0`}else{h=`>=${i}.${a}.${u}${o} <${i}.${+a+1}.0-0`}}else{h=`>=${i}.${a}.${u} <${+i+1}.0.0-0`}}p("caret return",h);return h}))};const replaceXRanges=(t,r)=>{p("replaceXRanges",t,r);return t.split(/\s+/).map((t=>replaceXRange(t,r))).join(" ")};const replaceXRange=(t,r)=>{t=t.trim();const i=r.loose?m[g.XRANGELOOSE]:m[g.XRANGE];return t.replace(i,((i,o,a,u,l,h)=>{p("xRange",t,i,o,a,u,l,h);const d=isX(a);const m=d||isX(u);const g=m||isX(l);const y=g;if(o==="="&&y){o=""}h=r.includePrerelease?"-0":"";if(d){if(o===">"||o==="<"){i="<0.0.0-0"}else{i="*"}}else if(o&&y){if(m){u=0}l=0;if(o===">"){o=">=";if(m){a=+a+1;u=0;l=0}else{u=+u+1;l=0}}else if(o==="<="){o="<";if(m){a=+a+1}else{u=+u+1}}if(o==="<"){h="-0"}i=`${o+a}.${u}.${l}${h}`}else if(m){i=`>=${a}.0.0${h} <${+a+1}.0.0-0`}else if(g){i=`>=${a}.${u}.0${h} <${a}.${+u+1}.0-0`}p("xRange return",i);return i}))};const replaceStars=(t,r)=>{p("replaceStars",t,r);return t.trim().replace(m[g.STAR],"")};const replaceGTE0=(t,r)=>{p("replaceGTE0",t,r);return t.trim().replace(m[r.includePrerelease?g.GTE0PRE:g.GTE0],"")};const hyphenReplace=t=>(r,i,o,a,u,l,h,p,d,m,g,y)=>{if(isX(o)){i=""}else if(isX(a)){i=`>=${o}.0.0${t?"-0":""}`}else if(isX(u)){i=`>=${o}.${a}.0${t?"-0":""}`}else if(l){i=`>=${i}`}else{i=`>=${i}${t?"-0":""}`}if(isX(d)){p=""}else if(isX(m)){p=`<${+d+1}.0.0-0`}else if(isX(g)){p=`<${d}.${+m+1}.0-0`}else if(y){p=`<=${d}.${m}.${g}-${y}`}else if(t){p=`<${d}.${m}.${+g+1}-0`}else{p=`<=${p}`}return`${i} ${p}`.trim()};const testSet=(t,r,i)=>{for(let i=0;i<t.length;i++){if(!t[i].test(r)){return false}}if(r.prerelease.length&&!i.includePrerelease){for(let i=0;i<t.length;i++){p(t[i].semver);if(t[i].semver===h.ANY){continue}if(t[i].semver.prerelease.length>0){const o=t[i].semver;if(o.major===r.major&&o.minor===r.minor&&o.patch===r.patch){return true}}}return false}return true}},1490:(t,r,i)=>{const o=i(3619);const{MAX_LENGTH:a,MAX_SAFE_INTEGER:u}=i(9073);const{safeRe:l,t:h}=i(4063);const p=i(6772);const{compareIdentifiers:d}=i(8587);class SemVer{constructor(t,r){r=p(r);if(t instanceof SemVer){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{t=t.version}}else if(typeof t!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`)}if(t.length>a){throw new TypeError(`version is longer than ${a} characters`)}o("SemVer",t,r);this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;const i=t.trim().match(r.loose?l[h.LOOSE]:l[h.FULL]);if(!i){throw new TypeError(`Invalid Version: ${t}`)}this.raw=t;this.major=+i[1];this.minor=+i[2];this.patch=+i[3];if(this.major>u||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>u||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>u||this.patch<0){throw new TypeError("Invalid patch version")}if(!i[4]){this.prerelease=[]}else{this.prerelease=i[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const r=+t;if(r>=0&&r<u){return r}}return t}))}this.build=i[5]?i[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(t){o("SemVer.compare",this.version,this.options,t);if(!(t instanceof SemVer)){if(typeof t==="string"&&t===this.version){return 0}t=new SemVer(t,this.options)}if(t.version===this.version){return 0}return this.compareMain(t)||this.comparePre(t)}compareMain(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}return d(this.major,t.major)||d(this.minor,t.minor)||d(this.patch,t.patch)}comparePre(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}if(this.prerelease.length&&!t.prerelease.length){return-1}else if(!this.prerelease.length&&t.prerelease.length){return 1}else if(!this.prerelease.length&&!t.prerelease.length){return 0}let r=0;do{const i=this.prerelease[r];const a=t.prerelease[r];o("prerelease compare",r,i,a);if(i===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(i===undefined){return-1}else if(i===a){continue}else{return d(i,a)}}while(++r)}compareBuild(t){if(!(t instanceof SemVer)){t=new SemVer(t,this.options)}let r=0;do{const i=this.build[r];const a=t.build[r];o("build compare",r,i,a);if(i===undefined&&a===undefined){return 0}else if(a===undefined){return 1}else if(i===undefined){return-1}else if(i===a){continue}else{return d(i,a)}}while(++r)}inc(t,r,i){switch(t){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",r,i);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",r,i);break;case"prepatch":this.prerelease.length=0;this.inc("patch",r,i);this.inc("pre",r,i);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",r,i)}this.inc("pre",r,i);break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const t=Number(i)?1:0;if(!r&&i===false){throw new Error("invalid increment argument: identifier is empty")}if(this.prerelease.length===0){this.prerelease=[t]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(r===this.prerelease.join(".")&&i===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(t)}}if(r){let o=[r,t];if(i===false){o=[r]}if(d(this.prerelease[0],r)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${t}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}t.exports=SemVer},7876:(t,r,i)=>{const o=i(8257);const clean=(t,r)=>{const i=o(t.trim().replace(/^[=v]+/,""),r);return i?i.version:null};t.exports=clean},8801:(t,r,i)=>{const o=i(1561);const a=i(8671);const u=i(3473);const l=i(2967);const h=i(6762);const p=i(973);const cmp=(t,r,i,d)=>{switch(r){case"===":if(typeof t==="object"){t=t.version}if(typeof i==="object"){i=i.version}return t===i;case"!==":if(typeof t==="object"){t=t.version}if(typeof i==="object"){i=i.version}return t!==i;case"":case"=":case"==":return o(t,i,d);case"!=":return a(t,i,d);case">":return u(t,i,d);case">=":return l(t,i,d);case"<":return h(t,i,d);case"<=":return p(t,i,d);default:throw new TypeError(`Invalid operator: ${r}`)}};t.exports=cmp},6899:(t,r,i)=>{const o=i(1490);const a=i(8257);const{safeRe:u,t:l}=i(4063);const coerce=(t,r)=>{if(t instanceof o){return t}if(typeof t==="number"){t=String(t)}if(typeof t!=="string"){return null}r=r||{};let i=null;if(!r.rtl){i=t.match(r.includePrerelease?u[l.COERCEFULL]:u[l.COERCE])}else{const o=r.includePrerelease?u[l.COERCERTLFULL]:u[l.COERCERTL];let a;while((a=o.exec(t))&&(!i||i.index+i[0].length!==t.length)){if(!i||a.index+a[0].length!==i.index+i[0].length){i=a}o.lastIndex=a.index+a[1].length+a[2].length}o.lastIndex=-1}if(i===null){return null}const h=i[2];const p=i[3]||"0";const d=i[4]||"0";const m=r.includePrerelease&&i[5]?`-${i[5]}`:"";const g=r.includePrerelease&&i[6]?`+${i[6]}`:"";return a(`${h}.${p}.${d}${m}${g}`,r)};t.exports=coerce},7375:(t,r,i)=>{const o=i(1490);const compareBuild=(t,r,i)=>{const a=new o(t,i);const u=new o(r,i);return a.compare(u)||a.compareBuild(u)};t.exports=compareBuild},8186:(t,r,i)=>{const o=i(4905);const compareLoose=(t,r)=>o(t,r,true);t.exports=compareLoose},4905:(t,r,i)=>{const o=i(1490);const compare=(t,r,i)=>new o(t,i).compare(new o(r,i));t.exports=compare},3272:(t,r,i)=>{const o=i(8257);const diff=(t,r)=>{const i=o(t,null,true);const a=o(r,null,true);const u=i.compare(a);if(u===0){return null}const l=u>0;const h=l?i:a;const p=l?a:i;const d=!!h.prerelease.length;const m=!!p.prerelease.length;if(m&&!d){if(!p.patch&&!p.minor){return"major"}if(h.patch){return"patch"}if(h.minor){return"minor"}return"major"}const g=d?"pre":"";if(i.major!==a.major){return g+"major"}if(i.minor!==a.minor){return g+"minor"}if(i.patch!==a.patch){return g+"patch"}return"prerelease"};t.exports=diff},1561:(t,r,i)=>{const o=i(4905);const eq=(t,r,i)=>o(t,r,i)===0;t.exports=eq},3473:(t,r,i)=>{const o=i(4905);const gt=(t,r,i)=>o(t,r,i)>0;t.exports=gt},2967:(t,r,i)=>{const o=i(4905);const gte=(t,r,i)=>o(t,r,i)>=0;t.exports=gte},5009:(t,r,i)=>{const o=i(1490);const inc=(t,r,i,a,u)=>{if(typeof i==="string"){u=a;a=i;i=undefined}try{return new o(t instanceof o?t.version:t,i).inc(r,a,u).version}catch(t){return null}};t.exports=inc},6762:(t,r,i)=>{const o=i(4905);const lt=(t,r,i)=>o(t,r,i)<0;t.exports=lt},973:(t,r,i)=>{const o=i(4905);const lte=(t,r,i)=>o(t,r,i)<=0;t.exports=lte},9799:(t,r,i)=>{const o=i(1490);const major=(t,r)=>new o(t,r).major;t.exports=major},7600:(t,r,i)=>{const o=i(1490);const minor=(t,r)=>new o(t,r).minor;t.exports=minor},8671:(t,r,i)=>{const o=i(4905);const neq=(t,r,i)=>o(t,r,i)!==0;t.exports=neq},8257:(t,r,i)=>{const o=i(1490);const parse=(t,r,i=false)=>{if(t instanceof o){return t}try{return new o(t,r)}catch(t){if(!i){return null}throw t}};t.exports=parse},2112:(t,r,i)=>{const o=i(1490);const patch=(t,r)=>new o(t,r).patch;t.exports=patch},5094:(t,r,i)=>{const o=i(8257);const prerelease=(t,r)=>{const i=o(t,r);return i&&i.prerelease.length?i.prerelease:null};t.exports=prerelease},6110:(t,r,i)=>{const o=i(4905);const rcompare=(t,r,i)=>o(r,t,i);t.exports=rcompare},4550:(t,r,i)=>{const o=i(7375);const rsort=(t,r)=>t.sort(((t,i)=>o(i,t,r)));t.exports=rsort},1495:(t,r,i)=>{const o=i(5287);const satisfies=(t,r,i)=>{try{r=new o(r,i)}catch(t){return false}return r.test(t)};t.exports=satisfies},6034:(t,r,i)=>{const o=i(7375);const sort=(t,r)=>t.sort(((t,i)=>o(t,i,r)));t.exports=sort},3863:(t,r,i)=>{const o=i(8257);const valid=(t,r)=>{const i=o(t,r);return i?i.version:null};t.exports=valid},7546:(t,r,i)=>{const o=i(4063);const a=i(9073);const u=i(1490);const l=i(8587);const h=i(8257);const p=i(3863);const d=i(7876);const m=i(5009);const g=i(3272);const y=i(9799);const A=i(7600);const b=i(2112);const v=i(5094);const E=i(4905);const w=i(6110);const _=i(8186);const S=i(7375);const C=i(6034);const D=i(4550);const x=i(3473);const R=i(6762);const O=i(1561);const k=i(8671);const P=i(2967);const T=i(973);const L=i(8801);const I=i(6899);const M=i(1790);const B=i(5287);const N=i(1495);const $=i(1976);const j=i(1706);const H=i(7095);const G=i(507);const U=i(8029);const W=i(7714);const z=i(9104);const Y=i(5072);const V=i(9057);const Q=i(9550);const K=i(8693);t.exports={parse:h,valid:p,clean:d,inc:m,diff:g,major:y,minor:A,patch:b,prerelease:v,compare:E,rcompare:w,compareLoose:_,compareBuild:S,sort:C,rsort:D,gt:x,lt:R,eq:O,neq:k,gte:P,lte:T,cmp:L,coerce:I,Comparator:M,Range:B,satisfies:N,toComparators:$,maxSatisfying:j,minSatisfying:H,minVersion:G,validRange:U,outside:W,gtr:z,ltr:Y,intersects:V,simplifyRange:Q,subset:K,SemVer:u,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:l.compareIdentifiers,rcompareIdentifiers:l.rcompareIdentifiers}},9073:t=>{const r="2.0.0";const i=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const a=16;const u=i-6;const l=["major","premajor","minor","preminor","patch","prepatch","prerelease"];t.exports={MAX_LENGTH:i,MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:u,MAX_SAFE_INTEGER:o,RELEASE_TYPES:l,SEMVER_SPEC_VERSION:r,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},3619:t=>{const r=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};t.exports=r},8587:t=>{const r=/^[0-9]+$/;const compareIdentifiers=(t,i)=>{const o=r.test(t);const a=r.test(i);if(o&&a){t=+t;i=+i}return t===i?0:o&&!a?-1:a&&!o?1:t<i?-1:1};const rcompareIdentifiers=(t,r)=>compareIdentifiers(r,t);t.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},1191:t=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(t){const r=this.map.get(t);if(r===undefined){return undefined}else{this.map.delete(t);this.map.set(t,r);return r}}delete(t){return this.map.delete(t)}set(t,r){const i=this.delete(t);if(!i&&r!==undefined){if(this.map.size>=this.max){const t=this.map.keys().next().value;this.delete(t)}this.map.set(t,r)}return this}}t.exports=LRUCache},6772:t=>{const r=Object.freeze({loose:true});const i=Object.freeze({});const parseOptions=t=>{if(!t){return i}if(typeof t!=="object"){return r}return t};t.exports=parseOptions},4063:(t,r,i)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:u}=i(9073);const l=i(3619);r=t.exports={};const h=r.re=[];const p=r.safeRe=[];const d=r.src=[];const m=r.t={};let g=0;const y="[a-zA-Z0-9-]";const A=[["\\s",1],["\\d",u],[y,a]];const makeSafeRegex=t=>{for(const[r,i]of A){t=t.split(`${r}*`).join(`${r}{0,${i}}`).split(`${r}+`).join(`${r}{1,${i}}`)}return t};const createToken=(t,r,i)=>{const o=makeSafeRegex(r);const a=g++;l(t,a,r);m[t]=a;d[a]=r;h[a]=new RegExp(r,i?"g":undefined);p[a]=new RegExp(o,i?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${y}*`);createToken("MAINVERSION",`(${d[m.NUMERICIDENTIFIER]})\\.`+`(${d[m.NUMERICIDENTIFIER]})\\.`+`(${d[m.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${d[m.NUMERICIDENTIFIERLOOSE]})\\.`+`(${d[m.NUMERICIDENTIFIERLOOSE]})\\.`+`(${d[m.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${d[m.NUMERICIDENTIFIER]}|${d[m.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${d[m.NUMERICIDENTIFIERLOOSE]}|${d[m.NONNUMERICIDENTIFIER]})`);createToken("PRERELEASE",`(?:-(${d[m.PRERELEASEIDENTIFIER]}(?:\\.${d[m.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${d[m.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${d[m.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${y}+`);createToken("BUILD",`(?:\\+(${d[m.BUILDIDENTIFIER]}(?:\\.${d[m.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${d[m.MAINVERSION]}${d[m.PRERELEASE]}?${d[m.BUILD]}?`);createToken("FULL",`^${d[m.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${d[m.MAINVERSIONLOOSE]}${d[m.PRERELEASELOOSE]}?${d[m.BUILD]}?`);createToken("LOOSE",`^${d[m.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${d[m.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${d[m.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${d[m.XRANGEIDENTIFIER]})`+`(?:\\.(${d[m.XRANGEIDENTIFIER]})`+`(?:\\.(${d[m.XRANGEIDENTIFIER]})`+`(?:${d[m.PRERELEASE]})?${d[m.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${d[m.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${d[m.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${d[m.XRANGEIDENTIFIERLOOSE]})`+`(?:${d[m.PRERELEASELOOSE]})?${d[m.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${d[m.GTLT]}\\s*${d[m.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${d[m.GTLT]}\\s*${d[m.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${d[m.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",d[m.COERCEPLAIN]+`(?:${d[m.PRERELEASE]})?`+`(?:${d[m.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",d[m.COERCE],true);createToken("COERCERTLFULL",d[m.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${d[m.LONETILDE]}\\s+`,true);r.tildeTrimReplace="$1~";createToken("TILDE",`^${d[m.LONETILDE]}${d[m.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${d[m.LONETILDE]}${d[m.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${d[m.LONECARET]}\\s+`,true);r.caretTrimReplace="$1^";createToken("CARET",`^${d[m.LONECARET]}${d[m.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${d[m.LONECARET]}${d[m.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${d[m.GTLT]}\\s*(${d[m.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${d[m.GTLT]}\\s*(${d[m.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${d[m.GTLT]}\\s*(${d[m.LOOSEPLAIN]}|${d[m.XRANGEPLAIN]})`,true);r.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${d[m.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${d[m.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${d[m.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${d[m.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},9104:(t,r,i)=>{const o=i(7714);const gtr=(t,r,i)=>o(t,r,">",i);t.exports=gtr},9057:(t,r,i)=>{const o=i(5287);const intersects=(t,r,i)=>{t=new o(t,i);r=new o(r,i);return t.intersects(r,i)};t.exports=intersects},5072:(t,r,i)=>{const o=i(7714);const ltr=(t,r,i)=>o(t,r,"<",i);t.exports=ltr},1706:(t,r,i)=>{const o=i(1490);const a=i(5287);const maxSatisfying=(t,r,i)=>{let u=null;let l=null;let h=null;try{h=new a(r,i)}catch(t){return null}t.forEach((t=>{if(h.test(t)){if(!u||l.compare(t)===-1){u=t;l=new o(u,i)}}}));return u};t.exports=maxSatisfying},7095:(t,r,i)=>{const o=i(1490);const a=i(5287);const minSatisfying=(t,r,i)=>{let u=null;let l=null;let h=null;try{h=new a(r,i)}catch(t){return null}t.forEach((t=>{if(h.test(t)){if(!u||l.compare(t)===1){u=t;l=new o(u,i)}}}));return u};t.exports=minSatisfying},507:(t,r,i)=>{const o=i(1490);const a=i(5287);const u=i(3473);const minVersion=(t,r)=>{t=new a(t,r);let i=new o("0.0.0");if(t.test(i)){return i}i=new o("0.0.0-0");if(t.test(i)){return i}i=null;for(let r=0;r<t.set.length;++r){const a=t.set[r];let l=null;a.forEach((t=>{const r=new o(t.semver.version);switch(t.operator){case">":if(r.prerelease.length===0){r.patch++}else{r.prerelease.push(0)}r.raw=r.format();case"":case">=":if(!l||u(r,l)){l=r}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${t.operator}`)}}));if(l&&(!i||u(i,l))){i=l}}if(i&&t.test(i)){return i}return null};t.exports=minVersion},7714:(t,r,i)=>{const o=i(1490);const a=i(1790);const{ANY:u}=a;const l=i(5287);const h=i(1495);const p=i(3473);const d=i(6762);const m=i(973);const g=i(2967);const outside=(t,r,i,y)=>{t=new o(t,y);r=new l(r,y);let A,b,v,E,w;switch(i){case">":A=p;b=m;v=d;E=">";w=">=";break;case"<":A=d;b=g;v=p;E="<";w="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(h(t,r,y)){return false}for(let i=0;i<r.set.length;++i){const o=r.set[i];let l=null;let h=null;o.forEach((t=>{if(t.semver===u){t=new a(">=0.0.0")}l=l||t;h=h||t;if(A(t.semver,l.semver,y)){l=t}else if(v(t.semver,h.semver,y)){h=t}}));if(l.operator===E||l.operator===w){return false}if((!h.operator||h.operator===E)&&b(t,h.semver)){return false}else if(h.operator===w&&v(t,h.semver)){return false}}return true};t.exports=outside},9550:(t,r,i)=>{const o=i(1495);const a=i(4905);t.exports=(t,r,i)=>{const u=[];let l=null;let h=null;const p=t.sort(((t,r)=>a(t,r,i)));for(const t of p){const a=o(t,r,i);if(a){h=t;if(!l){l=t}}else{if(h){u.push([l,h])}h=null;l=null}}if(l){u.push([l,null])}const d=[];for(const[t,r]of u){if(t===r){d.push(t)}else if(!r&&t===p[0]){d.push("*")}else if(!r){d.push(`>=${t}`)}else if(t===p[0]){d.push(`<=${r}`)}else{d.push(`${t} - ${r}`)}}const m=d.join(" || ");const g=typeof r.raw==="string"?r.raw:String(r);return m.length<g.length?m:r}},8693:(t,r,i)=>{const o=i(5287);const a=i(1790);const{ANY:u}=a;const l=i(1495);const h=i(4905);const subset=(t,r,i={})=>{if(t===r){return true}t=new o(t,i);r=new o(r,i);let a=false;e:for(const o of t.set){for(const t of r.set){const r=simpleSubset(o,t,i);a=a||r!==null;if(r){continue e}}if(a){return false}}return true};const p=[new a(">=0.0.0-0")];const d=[new a(">=0.0.0")];const simpleSubset=(t,r,i)=>{if(t===r){return true}if(t.length===1&&t[0].semver===u){if(r.length===1&&r[0].semver===u){return true}else if(i.includePrerelease){t=p}else{t=d}}if(r.length===1&&r[0].semver===u){if(i.includePrerelease){return true}else{r=d}}const o=new Set;let a,m;for(const r of t){if(r.operator===">"||r.operator===">="){a=higherGT(a,r,i)}else if(r.operator==="<"||r.operator==="<="){m=lowerLT(m,r,i)}else{o.add(r.semver)}}if(o.size>1){return null}let g;if(a&&m){g=h(a.semver,m.semver,i);if(g>0){return null}else if(g===0&&(a.operator!==">="||m.operator!=="<=")){return null}}for(const t of o){if(a&&!l(t,String(a),i)){return null}if(m&&!l(t,String(m),i)){return null}for(const o of r){if(!l(t,String(o),i)){return false}}return true}let y,A;let b,v;let E=m&&!i.includePrerelease&&m.semver.prerelease.length?m.semver:false;let w=a&&!i.includePrerelease&&a.semver.prerelease.length?a.semver:false;if(E&&E.prerelease.length===1&&m.operator==="<"&&E.prerelease[0]===0){E=false}for(const t of r){v=v||t.operator===">"||t.operator===">=";b=b||t.operator==="<"||t.operator==="<=";if(a){if(w){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===w.major&&t.semver.minor===w.minor&&t.semver.patch===w.patch){w=false}}if(t.operator===">"||t.operator===">="){y=higherGT(a,t,i);if(y===t&&y!==a){return false}}else if(a.operator===">="&&!l(a.semver,String(t),i)){return false}}if(m){if(E){if(t.semver.prerelease&&t.semver.prerelease.length&&t.semver.major===E.major&&t.semver.minor===E.minor&&t.semver.patch===E.patch){E=false}}if(t.operator==="<"||t.operator==="<="){A=lowerLT(m,t,i);if(A===t&&A!==m){return false}}else if(m.operator==="<="&&!l(m.semver,String(t),i)){return false}}if(!t.operator&&(m||a)&&g!==0){return false}}if(a&&b&&!m&&g!==0){return false}if(m&&v&&!a&&g!==0){return false}if(w||E){return false}return true};const higherGT=(t,r,i)=>{if(!t){return r}const o=h(t.semver,r.semver,i);return o>0?t:o<0?r:r.operator===">"&&t.operator===">="?r:t};const lowerLT=(t,r,i)=>{if(!t){return r}const o=h(t.semver,r.semver,i);return o<0?t:o>0?r:r.operator==="<"&&t.operator==="<="?r:t};t.exports=subset},1976:(t,r,i)=>{const o=i(5287);const toComparators=(t,r)=>new o(t,r).set.map((t=>t.map((t=>t.value)).join(" ").trim().split(" ")));t.exports=toComparators},8029:(t,r,i)=>{const o=i(5287);const validRange=(t,r)=>{try{return new o(t,r).range||"*"}catch(t){return null}};t.exports=validRange},2028:(t,r,i)=>{var o=global.process;const processOk=function(t){return t&&typeof t==="object"&&typeof t.removeListener==="function"&&typeof t.emit==="function"&&typeof t.reallyExit==="function"&&typeof t.listeners==="function"&&typeof t.kill==="function"&&typeof t.pid==="number"&&typeof t.on==="function"};if(!processOk(o)){t.exports=function(){return function(){}}}else{var a=i(9491);var u=i(19);var l=/^win/i.test(o.platform);var h=i(2361);if(typeof h!=="function"){h=h.EventEmitter}var p;if(o.__signal_exit_emitter__){p=o.__signal_exit_emitter__}else{p=o.__signal_exit_emitter__=new h;p.count=0;p.emitted={}}if(!p.infinite){p.setMaxListeners(Infinity);p.infinite=true}t.exports=function(t,r){if(!processOk(global.process)){return function(){}}a.equal(typeof t,"function","a callback must be provided for exit handler");if(y===false){A()}var i="exit";if(r&&r.alwaysLast){i="afterexit"}var remove=function(){p.removeListener(i,t);if(p.listeners("exit").length===0&&p.listeners("afterexit").length===0){d()}};p.on(i,t);return remove};var d=function unload(){if(!y||!processOk(global.process)){return}y=false;u.forEach((function(t){try{o.removeListener(t,g[t])}catch(t){}}));o.emit=E;o.reallyExit=b;p.count-=1};t.exports.unload=d;var m=function emit(t,r,i){if(p.emitted[t]){return}p.emitted[t]=true;p.emit(t,r,i)};var g={};u.forEach((function(t){g[t]=function listener(){if(!processOk(global.process)){return}var r=o.listeners(t);if(r.length===p.count){d();m("exit",null,t);m("afterexit",null,t);if(l&&t==="SIGHUP"){t="SIGINT"}o.kill(o.pid,t)}}}));t.exports.signals=function(){return u};var y=false;var A=function load(){if(y||!processOk(global.process)){return}y=true;p.count+=1;u=u.filter((function(t){try{o.on(t,g[t]);return true}catch(t){return false}}));o.emit=w;o.reallyExit=v};t.exports.load=A;var b=o.reallyExit;var v=function processReallyExit(t){if(!processOk(global.process)){return}o.exitCode=t||0;m("exit",o.exitCode,null);m("afterexit",o.exitCode,null);b.call(o,o.exitCode)};var E=o.emit;var w=function processEmit(t,r){if(t==="exit"&&processOk(global.process)){if(r!==undefined){o.exitCode=r}var i=E.apply(this,arguments);m("exit",o.exitCode,null);m("afterexit",o.exitCode,null);return i}else{return E.apply(this,arguments)}}}},19:t=>{t.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];if(process.platform!=="win32"){t.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){t.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")}},332:t=>{"use strict";const r="";const i=`${r}[`;const o="";const a={to(t,r){if(!r)return`${i}${t+1}G`;return`${i}${r+1};${t+1}H`},move(t,r){let o="";if(t<0)o+=`${i}${-t}D`;else if(t>0)o+=`${i}${t}C`;if(r<0)o+=`${i}${-r}A`;else if(r>0)o+=`${i}${r}B`;return o},up:(t=1)=>`${i}${t}A`,down:(t=1)=>`${i}${t}B`,forward:(t=1)=>`${i}${t}C`,backward:(t=1)=>`${i}${t}D`,nextLine:(t=1)=>`${i}E`.repeat(t),prevLine:(t=1)=>`${i}F`.repeat(t),left:`${i}G`,hide:`${i}?25l`,show:`${i}?25h`,save:`${r}7`,restore:`${r}8`};const u={up:(t=1)=>`${i}S`.repeat(t),down:(t=1)=>`${i}T`.repeat(t)};const l={screen:`${i}2J`,up:(t=1)=>`${i}1J`.repeat(t),down:(t=1)=>`${i}J`.repeat(t),line:`${i}2K`,lineEnd:`${i}K`,lineStart:`${i}1K`,lines(t){let r="";for(let i=0;i<t;i++)r+=this.line+(i<t-1?a.up():"");if(t)r+=a.left;return r}};t.exports={cursor:a,scroll:u,erase:l,beep:o}},5667:(t,r,i)=>{var o={child:i(2081),crypto:i(6113),fs:i(7147),os:i(2037),path:i(1017),process:process,util:i(3837)};function Attempt(t,r){var i=o.process.platform;if(i==="darwin")return Mac(t,r);if(i==="linux")return Linux(t,r);if(i==="win32")return Windows(t,r);r(new Error("Platform not yet supported."))}function EscapeDoubleQuotes(t){if(typeof t!=="string")throw new Error("Expected a string.");return t.replace(/"/g,'\\"')}function Exec(){if(arguments.length<1||arguments.length>3){throw new Error("Wrong number of arguments.")}var t=arguments[0];var r={};var end=function(){};if(typeof t!=="string"){throw new Error("Command should be a string.")}if(arguments.length===2){if(o.util.isObject(arguments[1])){r=arguments[1]}else if(o.util.isFunction(arguments[1])){end=arguments[1]}else{throw new Error("Expected options or callback.")}}else if(arguments.length===3){if(o.util.isObject(arguments[1])){r=arguments[1]}else{throw new Error("Expected options to be an object.")}if(o.util.isFunction(arguments[2])){end=arguments[2]}else{throw new Error("Expected callback to be a function.")}}if(/^sudo/i.test(t)){return end(new Error('Command should not be prefixed with "sudo".'))}if(typeof r.name==="undefined"){var i=o.process.title;if(ValidName(i)){r.name=i}else{return end(new Error("process.title cannot be used as a valid name."))}}else if(!ValidName(r.name)){var a="";a+="options.name must be alphanumeric only ";a+="(spaces are allowed) and <= 70 characters.";return end(new Error(a))}if(typeof r.icns!=="undefined"){if(typeof r.icns!=="string"){return end(new Error("options.icns must be a string if provided."))}else if(r.icns.trim().length===0){return end(new Error("options.icns must not be empty if provided."))}}if(typeof r.env!=="undefined"){if(typeof r.env!=="object"){return end(new Error("options.env must be an object if provided."))}else if(Object.keys(r.env).length===0){return end(new Error("options.env must not be empty if provided."))}else{for(var u in r.env){var l=r.env[u];if(typeof u!=="string"||typeof l!=="string"){return end(new Error("options.env environment variables must be strings."))}if(!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(u)){return end(new Error("options.env has an invalid environment variable name: "+JSON.stringify(u)))}if(/[\r\n]/.test(l)){return end(new Error("options.env has an invalid environment variable value: "+JSON.stringify(l)))}}}}var h=o.process.platform;if(h!=="darwin"&&h!=="linux"&&h!=="win32"){return end(new Error("Platform not yet supported."))}var p={command:t,options:r,uuid:undefined,path:undefined};Attempt(p,end)}function Linux(t,r){LinuxBinary(t,(function(i,a){if(i)return r(i);var p=[];p.push('cd "'+EscapeDoubleQuotes(o.process.cwd())+'";');for(var d in t.options.env){var m=t.options.env[d];p.push("export "+d+'="'+EscapeDoubleQuotes(m)+'";')}p.push('"'+EscapeDoubleQuotes(a)+'"');if(/kdesudo/i.test(a)){p.push("--comment",'"'+t.options.name+" wants to make changes. "+'Enter your password to allow this."');p.push("-d");p.push("--")}else if(/pkexec/i.test(a)){p.push("--disable-internal-agent")}var g="SUDOPROMPT\n";p.push('/bin/bash -c "echo '+EscapeDoubleQuotes(g.trim())+"; "+EscapeDoubleQuotes(t.command)+'"');p=p.join(" ");o.child.exec(p,{encoding:"utf-8",maxBuffer:h},(function(t,i,o){var a=i&&i.slice(0,g.length)===g;if(a)i=i.slice(g.length);if(t&&!a){if(/No authentication agent found/.test(o)){t.message=l}else{t.message=u}}r(t,i,o)}))}))}function LinuxBinary(t,r){var i=0;var a=["/usr/bin/kdesudo","/usr/bin/pkexec"];function test(){if(i===a.length){return r(new Error("Unable to find pkexec or kdesudo."))}var t=a[i++];o.fs.stat(t,(function(i){if(i){if(i.code==="ENOTDIR")return test();if(i.code==="ENOENT")return test();r(i)}else{r(undefined,t)}}))}test()}function Mac(t,r){var i=o.os.tmpdir();if(!i)return r(new Error("os.tmpdir() not defined."));var a=o.process.env.USER;if(!a)return r(new Error("env['USER'] not defined."));UUID(t,(function(a,u){if(a)return r(a);t.uuid=u;t.path=o.path.join(i,t.uuid,t.options.name+".app");function end(i,a,u){Remove(o.path.dirname(t.path),(function(t){if(i)return r(i);if(t)return r(t);r(undefined,a,u)}))}MacApplet(t,(function(r,i,o){if(r)return end(r,i,o);MacIcon(t,(function(r){if(r)return end(r);MacPropertyList(t,(function(r,i,o){if(r)return end(r,i,o);MacCommand(t,(function(r){if(r)return end(r);MacOpen(t,(function(r,i,o){if(r)return end(r,i,o);MacResult(t,end)}))}))}))}))}))}))}function MacApplet(t,r){var i=o.path.dirname(t.path);o.fs.mkdir(i,(function(u){if(u)return r(u);var l=o.path.join(i,"sudo-prompt-applet.zip");o.fs.writeFile(l,a,"base64",(function(i){if(i)return r(i);var a=[];a.push("/usr/bin/unzip");a.push("-o");a.push('"'+EscapeDoubleQuotes(l)+'"');a.push('-d "'+EscapeDoubleQuotes(t.path)+'"');a=a.join(" ");o.child.exec(a,{encoding:"utf-8"},r)}))}))}function MacCommand(t,r){var i=o.path.join(t.path,"Contents","MacOS","sudo-prompt-command");var a=[];a.push('cd "'+EscapeDoubleQuotes(o.process.cwd())+'"');for(var u in t.options.env){var l=t.options.env[u];a.push("export "+u+'="'+EscapeDoubleQuotes(l)+'"')}a.push(t.command);a=a.join("\n");o.fs.writeFile(i,a,"utf-8",r)}function MacIcon(t,r){if(!t.options.icns)return r();o.fs.readFile(t.options.icns,(function(i,a){if(i)return r(i);var u=o.path.join(t.path,"Contents","Resources","applet.icns");o.fs.writeFile(u,a,r)}))}function MacOpen(t,r){var i=o.path.join(t.path,"Contents","MacOS","applet");var a={cwd:o.path.dirname(i),encoding:"utf-8"};o.child.exec("./"+o.path.basename(i),a,r)}function MacPropertyList(t,r){var i=o.path.join(t.path,"Contents","Info.plist");var a=EscapeDoubleQuotes(i);var u=EscapeDoubleQuotes("CFBundleName");var l=t.options.name+" Password Prompt";if(/'/.test(l)){return r(new Error("Value should not contain single quotes."))}var h=[];h.push("/usr/bin/defaults");h.push("write");h.push('"'+a+'"');h.push('"'+u+'"');h.push("'"+l+"'");h=h.join(" ");o.child.exec(h,{encoding:"utf-8"},r)}function MacResult(t,r){var i=o.path.join(t.path,"Contents","MacOS");o.fs.readFile(o.path.join(i,"code"),"utf-8",(function(a,l){if(a){if(a.code==="ENOENT")return r(new Error(u));r(a)}else{o.fs.readFile(o.path.join(i,"stdout"),"utf-8",(function(a,u){if(a)return r(a);o.fs.readFile(o.path.join(i,"stderr"),"utf-8",(function(i,o){if(i)return r(i);l=parseInt(l.trim(),10);if(l===0){r(undefined,u,o)}else{i=new Error("Command failed: "+t.command+"\n"+o);i.code=l;r(i,u,o)}}))}))}}))}function Remove(t,r){if(typeof t!=="string"||!t.trim()){return r(new Error("Argument path not defined."))}var i=[];if(o.process.platform==="win32"){if(/"/.test(t)){return r(new Error("Argument path cannot contain double-quotes."))}i.push('rmdir /s /q "'+t+'"')}else{i.push("/bin/rm");i.push("-rf");i.push('"'+EscapeDoubleQuotes(o.path.normalize(t))+'"')}i=i.join(" ");o.child.exec(i,{encoding:"utf-8"},r)}function UUID(t,r){o.crypto.randomBytes(256,(function(i,a){if(i)a=Date.now()+""+Math.random();var u=o.crypto.createHash("SHA256");u.update("sudo-prompt-3");u.update(t.options.name);u.update(t.command);u.update(a);var l=u.digest("hex").slice(-32);if(!l||typeof l!=="string"||l.length!==32){return r(new Error("Expected a valid UUID."))}r(undefined,l)}))}function ValidName(t){if(!/^[a-z0-9 ]+$/i.test(t))return false;if(t.trim().length===0)return false;if(t.length>70)return false;return true}function Windows(t,r){var i=o.os.tmpdir();if(!i)return r(new Error("os.tmpdir() not defined."));UUID(t,(function(a,u){if(a)return r(a);t.uuid=u;t.path=o.path.join(i,t.uuid);if(/"/.test(t.path)){return r(new Error("instance.path cannot contain double-quotes."))}t.pathElevate=o.path.join(t.path,"elevate.vbs");t.pathExecute=o.path.join(t.path,"execute.bat");t.pathCommand=o.path.join(t.path,"command.bat");t.pathStdout=o.path.join(t.path,"stdout");t.pathStderr=o.path.join(t.path,"stderr");t.pathStatus=o.path.join(t.path,"status");o.fs.mkdir(t.path,(function(i){if(i)return r(i);function end(i,o,a){Remove(t.path,(function(t){if(i)return r(i);if(t)return r(t);r(undefined,o,a)}))}WindowsWriteExecuteScript(t,(function(r){if(r)return end(r);WindowsWriteCommandScript(t,(function(r){if(r)return end(r);WindowsElevate(t,(function(r,i,o){if(r)return end(r,i,o);WindowsWaitForStatus(t,(function(r){if(r)return end(r);WindowsResult(t,end)}))}))}))}))}))}))}function WindowsElevate(t,r){var i=[];i.push("powershell.exe");i.push("Start-Process");i.push("-FilePath");i.push("\"'"+t.pathExecute.replace(/'/g,"`'")+"'\"");i.push("-WindowStyle hidden");i.push("-Verb runAs");i=i.join(" ");var a=o.child.exec(i,{encoding:"utf-8"},(function(t,i,o){if(t)return r(new Error(u),i,o);r()}));a.stdin.end()}function WindowsResult(t,r){o.fs.readFile(t.pathStatus,"utf-8",(function(i,a){if(i)return r(i);o.fs.readFile(t.pathStdout,"utf-8",(function(i,u){if(i)return r(i);o.fs.readFile(t.pathStderr,"utf-8",(function(i,o){if(i)return r(i);a=parseInt(a.trim(),10);if(a===0){r(undefined,u,o)}else{i=new Error("Command failed: "+t.command+"\r\n"+o);i.code=a;r(i,u,o)}}))}))}))}function WindowsWaitForStatus(t,r){o.fs.stat(t.pathStatus,(function(i,a){if(i&&i.code==="ENOENT"||a.size<2){setTimeout((function(){o.fs.stat(t.pathStdout,(function(i){if(i)return r(new Error(u));WindowsWaitForStatus(t,r)}))}),1e3)}else if(i){r(i)}else{r()}}))}function WindowsWriteCommandScript(t,r){var i=o.process.cwd();if(/"/.test(i)){return r(new Error("process.cwd() cannot contain double-quotes."))}var a=[];a.push("@echo off");a.push("chcp 65001>nul");a.push('cd /d "'+i+'"');for(var u in t.options.env){var l=t.options.env[u];a.push("set "+u+"="+l.replace(/([<>\\|&^])/g,"^$1"))}a.push(t.command);a=a.join("\r\n");o.fs.writeFile(t.pathCommand,a,"utf-8",r)}function WindowsWriteElevateScript(t,r){}function WindowsWriteExecuteScript(t,r){var i=[];i.push("@echo off");i.push('call "'+t.pathCommand+'"'+' > "'+t.pathStdout+'" 2> "'+t.pathStderr+'"');i.push('(echo %ERRORLEVEL%) > "'+t.pathStatus+'"');i=i.join("\r\n");o.fs.writeFile(t.pathExecute,i,"utf-8",r)}t.exports.exec=Exec;var a="UEsDBAoAAAAAAO1YcEcAAAAAAAAAAAAAAAAJABwAQ29udGVudHMvVVQJAAPNnElWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACgeXBHlHaGqKEBAAC+AwAAEwAcAENvbnRlbnRzL0luZm8ucGxpc3RVVAkAA1zWSVYtkRBXdXgLAAEE9QEAAAQUAAAAfZNRb5swFIWfl1/BeA9OpSmqJkqVBCJFop1VyKQ9Ta59S6wa27NNCfv1M0naJWTsEXO+c8+9vo7v97UI3sBYruRdeBPNwgAkVYzL6i7cluvpbXifTOLP6bdV+QNngRbcugBvl/lmFYRThBZaC0AoLdMA55uiDLwHQtljGIQ75/RXhNq2jUiviqiqe6FF2CgNxnW5N5t6IGKOhb7M0f0ijj9lnLpk8il+hS5ZrZeNZAIWQqj2ge+B5YoSwX8T5xEbo17ktc40gIZQCm8glK5BuieovP5Dbp3xHSeZrHyCXYxO3wM+2wNtHHkWMAQP/bkxbkOVXPMxKuK0Dz6CMh+Wv3AwQ9gPM7INU1NtVK3Ha8sXlfoB+m6J6b4fRzv0mkezMf6R1Fe5MbG2VYYF+L+lMaGvpIKy01cOC4zzMazYKeNOQYuDYkjfjMcteCWJa8w/Zi2ugubFA5e8buqisw7qU81ltzB0xx3QC5/TFh7J/e385/zL+7+/wWbR/LwIOl/dvHiCXw03YFfEPJ9dwsWu5sV2kwnod3QoeLeL0eGdJJM/UEsDBAoAAAAAAHSBjkgAAAAAAAAAAAAAAAAPABwAQ29udGVudHMvTWFjT1MvVVQJAAMbpQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACABVHBdH7Dk4KTIIAADIYQAAFQAcAENvbnRlbnRzL01hY09TL2FwcGxldFVUCQADMiPZVVOlD1d1eAsAAQT1AQAABBQAAADtnG9sHEcVwGfti7M1/rONLNVtXHqpzsipis+pHOSWFOzEm25at3XrJI2ozbK+W/suuds79vaSuCKSpaOIxRy1+NSPRPAhlWj7AVRaQCWpTRz+CEo+RSKCCho4K67kVhUyAeV4b3fWt17fXZqKFgHvp8zO3/dmdmfPmtl5L7+8/uPXGWMNELZCaGRMgmjHIlxaBCibdcoGsewCljGCIAiCIAiCIAiCIP7r+M21d67zjb/zEaAdwr1bGHuWMQH2/2wAgqqODj0kf0F+8nGfoFRbJ8p9U0C5g/KRgwEZqZLGfrfwwJx+LP2kVWkelD9zJ2NfBr1nWt2xrhNisxWZ3Ex6MpNSc1Z+soqOO+5i7JMYt7vj9BC5jiZXBwirCT2V1c0qOgZAxwMYt9cbRyxnmUljusa9mKBjGON2tgG/PlXNGyeSRlxNGlOZKjpeBR0KxsFx+MB7VJy5GB46OOSrCLPKfEjrH3/gFry+4zOpuH8sm+VF5srW6ltVjZQ3HVnL3KRDDLsflMSADpyDyjuR0urp6AAdHRgHdOD9iOs6Ypl0OmPUupeecOW19OsQAmn3tzBy4LFH5OED3jz0MbYouM8D460BOdTXCaEF6tsgLkF8GeJPQBj16Rb4PTf5xl2NH4J8a5Vy1N3F3OcZzefMaCo5GeVTuJ2P4cUf/aH5qbbP73/utpfeevdbLzwfYfy+Q80woGan/1E+ljo/703g77IaOJY479t5rqFLDag9OjaTs/R0dCQ5aWrmTHS/qaX1ExnzWC66L2PqY7p5PBnTc71TXnn0sG7mkhkjFx3a0IL30e/rQxB+EXL68J4BBLe73r298DySk5tlGPtJY1BmOhZTc727PBH2Ke+ZhF35nTyP80oQBEEQBPFRcJTZVwpvrxZWpLmJkN0VKT4q2iORUGFBOPfnBuFX9nhELOG67f1D9pWxpw4XVrrmTklz+ZY5Wfwurm/t3ffi9cE+uM41vYbbj2fP5kNXt9sXiopwVRj6xhPlr160mttfuVi4Fs2vXv2rfc5u7UeZfxQ+y4pPh/JrpyUUBjmrofzmadGXKf0eui7KK/ZwJLQUiuRAe+mLUFQ+tFKUV3npd7AU9ytz8iqIiXYoUnoBsqdxDbXk3CXcRov9lYhoW5EQjBxb4NoSY9iQsvn5+QSuusrduAybL3eHIIIbLqyIS9CHlY3loB8rldVKuLfyOsE1+a6zhUVxYsFp3Amqz8tr7Lz8dza1JF8TmC3/syivYVtcfxcWOycWQDvuLcrdnc61y7mGnWsErgmsXDbK5TKkscnypJvGhsuH3TQ2X37YTaPQ8ucw7W6t1LR2TFfjekqb0SGTiedTOmz0klZSSyWf0U01pqVSufXGmThsjs20OpU3Yrjuxbnu4u+GP8b1LO6PcX2L4Q6+v8Q07u9aQFLy71Ckt54TIfjfNdzfDkMYhTAOIXHXh39vCYIgCIIgCIIgCIL4z3Nm+84/Ci1Nn8b0ryHsgbBX1rbgOXD7LZJzNtrC0/gFqYOn8csQ/GONguQchPXzcvy+9CBzvk84HxkO+tJH3bRz5Fb0pb/nS3/fl/6BL/2aL43faLzz3Wbmju8W5p6pttaoR9THjgyZ0zEeH2eqqmbNzLShpXVIpxOqflKP5S1dTehaXDeZqhvHk2bGYOo+LZXal0lnM4ZuWMPJXFazYgmmPp7VjWF9SsunrPVa1HpMn0lPm2r8hGZO3aea+nQyZ+mmmtNjFp5i4oG0lTChE+eDj2pm8lbSgDFoln4yCRp00zQyEDmZtBZLbGxnanHzgWh092d29e/uv+/f+DIQBEEQBEEQBEEQ/7P81rX/FxoZm/Xs/5UmtP8PO/W3M9fGvKoPAEfYXLQJ1HOpmk+AJx80OOb5m/URGG9z9c378rVs9F15tPXP1dS3wvVtC+Q9/H4DFX21fQcY9zvo9eXrj6++D0Af1zfqy9eyx3f16QnVMayufr+zXN+sL99YRx/O69er+RdIgXkNxJv9DfBTDIxLPa6Zudr6enz5euO6ke9Bj7TRzr0noK+JbczfyA9hgOvr9OX98t57XNFX3ydhlOsL+2T8+oK/ucrvNOCfEHbbXhAqeebLB/0V7oYp7+Pt8PsZWnl1+urRpAn7SUCcYBX/hkth95kd2cFYllX3bxB4+xCrzcCO6v4PbXzo1fwbEM/H4ds/f/nCgZH+8k+j0vNPv7Jlz7qPQ1PFx+FVPoZ76ozj42K87YP9/cT7xuf9UfpSeP0MsJvzp0A8/4g3w+78ef4R+F4QBEEQBPH/w1Gm2FeUwturytwpUSnmJfta4Q3h3J8aFeE9xf7d1ZBSOCcqhftZ/m+YKuG6wV4qaQzdGED0Z2jJ/zpa9ZcegjIF7fkVaIBrt11nJxYOOepXpPPyKjsvvytOLcnvCWxJfh87V+xTa0rx1Kpj0a8UFqWJhXL3fgHt9xXn+rCz7Bop3rkTEkNj5e7bIZ7HNRZb/ku5XE6g58HyZUzdj6mLjh1/Pbt7XMt5dvfvtLl1Fbv7BtbhrtyEPW6V038H1yE88yQTTkqC1LJVnIeaCNe7dr3sEPEe6lCb9LWGfa3efvNG8pe5fF8NeW8g3n7jCI+/xOOEVH19KvF9oudHH2n/YOtYgiAIgiAIgiAIgiA+fm69mx3aO8bYtkHn/xlwDq8nkwaavz9h9swzc+DWwRrm71A5CJVVjeChTtk26Fqwu0fxQjUL+9vqHVV/KC53OUd+bJxVfBkw7/gzCO5pr3dOK/g+WUQDeZlV/A2QRwJ5THjn1/xcd9BfhlT1KbgpVwLn+W2amGr2//8CUEsDBBQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABwAQ29udGVudHMvTWFjT1Mvc3Vkby1wcm9tcHQtc2NyaXB0VVQJAAOJkBBXipAQV3V4CwABBPUBAAAEFAAAAI1SO08cMRDu91cMHIKGxUB5xSGEUqTlFKWMvPYca+EXnjGXy6/PeNcg0qVay+PvObs5U5OLatI0DxvYIwNVm4BdQGIdMhxSkauJ8K1i7FOjvSdwB2A+/WJnXpEJdEGwjvTk0W6HhTW8WldgzKDedVF2Ug2tLn7svz3DDpTFdxWr93C/u7wbVKWyoDhVM/8XZAOPOXvcm+IyXxGcizeaUca0XJ1D0CfQnlEysE2VwbuII0br4gvdCMF37m9IoC39+oxTO2EpS8oZJdtRS0aIKY5/sCQoyLVEMMki6Ghl0BGN9SeuICkPIctXDHDDSB9oGEQi1yZWUAda8EZnIcR/eIOOVao+9TrbkpYFjLmkkHk0KYSGvdt12/e71cP6Hs2c4OJBemtsYusplVX+GLHQ7DKkQ098/ZF38dLEpRCeNUMlMW90BIseeQkWtuu2qKmIyDHCuqFuo1N11Ud/1Cf6CHb7Sfxld2ATklQoUGEDActfZ5326WU74G/HcDv8BVBLAwQKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAcAENvbnRlbnRzL1BrZ0luZm9VVAkAA82cSVYqkRBXdXgLAAEE9QEAAAQUAAAAQVBQTGFwbHRQSwMECgAAAAAAm3lwRwAAAAAAAAAAAAAAABMAHABDb250ZW50cy9SZXNvdXJjZXMvVVQJAANW1klWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACAeXBHfrnysfYGAAAf3AAAHgAcAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUCQADH9ZJVnGlD1d1eAsAAQT1AQAABBQAAADt3Xk81Hkcx/Hvb5yVo5bGsVlKbcpRRqFlGZGS5JikRBIdI0OZttMZloqiYwrVjD1UqJaUokTRubG72bZVjqR1VZNjp2XEGo9H+9gt+9h/9tHx8H7N4/fw5MHjYeaPz+P7+P7x/bL9griEPNBm+001J0S+ZbvL/NmKwzWHE0IUHebYuRFCEckjL9v/xSvk2EpCpBXZtrYuDra2Oi4hwSvZgSsIMU9MdPdePcZd1aqQu0p3fDkrcFrs+mPWihMU9y6clp5XEFFdbRrEczCtGtfkL3pWfvBGublJ4ct051kuocYtaaqll/IjdfR+V75vlTdl//AJVZU6elZ5f0S7NO3MaE2xMElhF+TUrHgW2nFYeGTrs/OrhDJN5zMX8ZJVKXrqSUM1Rj03bnf85/pJMXECNdl0D1ctfe/j82imziM2nllSa3t5q8+vP1f38k/k22uN1lmnvfz0b8dGxO+mnh91v7WB2tKdrG3d4vmJaHlTvjGzdMqWcw/9frnCtQpPZK9sMKi/Ey/jzgqIPzBy9/dlf9griI2/u+sjcApozWx6/NXytC+qBTlrhb69fE7J6tgOzpWjFSl8qxihr5dYf/qExoeupY6Ze/j2PfL1azhhZ8fU3eelJY+ylk16UJN6KmOU0M4r+75cZhH/mxNndowNb4wx7TCoN4yvMGu8ySq5l5W5t+xQyYbS/Ome7e0W0sXbC5aktl0LEXNYR9obH7dMT721dbNdT/eFzXNEYSH8GU+bQ5s6YniGcj3fHtgXPbo0Oj4i3d5G1Fjfm/Ng7kgpjQDNxw4RRnu+Vloy5ZE3J6OpwlFBzaxS25He2h3lJuizO70zJPLUYtks14RE5yrD8y2tXa5l5Wqh/NBY06yoiCLF08Nk9A5Ojbs43GmR1Ch/PaZsLf3e6uPRSrIM1ROqGjt80leqfdxYbNn+WV7K7ZKiy/t6r1/3ie46V5432T/Oahs9V7NnVzb9zoq2rFgvPxXrcAMzmvWnGjof/RpdsZThIEpex6DGbd5h6STaOyZXxV/YfW9u4KyllmZ3X15IMHHLSJtVPSOvULCsz2TyPC/WL9kGSme/1L01SSzjfbHnqk+OV7OBmevZeo3DBR7lXT5drT0MkX5PwDd1EQ0ebfkh1zy/L8ydd+VJ4CLuRndNjuwj+vMfU8q2l2l1rGtr8FC2D+fdSGk81eltuTjYSMk++4BMd0DXQo35iXbZndGdcXkGFyeG6b28evF22M2w22HlYSXetGSLW4cfFT00WqvN9bkqCujQ9KzdSt+snr+qmbcme+5Y3cDRn9BDLps+dPVltE9UkPeb6XovineiVUznTznyuZaSn/ZvR8VeRUYLqe3iHFqnU6+7+4LmtfsmaS0MdjIvslFJGG/rn7DPdMGLcx4d6eP2Oz92Y49kWbBUjudU2ijHnc7YIODQxD1aPx8PynVr+cmvJoy2+M5nQa2Kt0dvdPxp73LNU6aTeaktTfHH1L+8Pm/XalZcFcfzYxlhTefuzjRGobLKEqPZh8QKxUXWbU/ERvW78ghvTGTUNd0g9YqbcjUy5h0xVbn3S7SS54SOqKt88UR0qZuxKfxlZfODUm52o2HkGTOLw5dqhevvWjH7ssiqxAhKwA91d1nWG9w/GJIc7GwWbKKe/mAsGRqXBb87P10jH8/0LY6kpGQV1KcuAwAAeCt4LiVFWRJKs4DJ6p9GxGHWfLuTM5dt61/pzCCE7vLmSodGJM/ASqdzU2U3VjpY6WClg5XOICudUaI3VjocuWCsdAAAAAAAAAAAAAAAAD5o1Gmr054TSoqWxPvnfrLxVEIc29/cT5YmkmdgPzlCSz8a+8nYT8Z+MvaTB9lPZpJX+8lRktFyRdDF0m6IdcF2MgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8ddD8G5oJkUuQnAXwnvxLAAAAADDkEFURRckVE6rIv+Tb1078MiZEetubJ34RHckzcOIXd8uWTpz4hRO/cOIXTvwa5MQvoidZ5S8a9h8nfl1QVhipQ6jyyWeuvTaBGP3D5fwgE4gpeQYmUCZ7XQ0mECYQJhAm0GATyOfVmYOU4sAdNi+cOUpm/9cdNv2Di8kkFN3mYOtrg8sE14xicGFwYXDhmlEAAD5w/Os1o8bTcM0oVjpY6WClg2tGAQAAAAAAAAAAAAAAgL/wb9eMBpow+r817yN/fwnJf33P5g78nWofEZNXD3u95GdSkh3o135/aL2i3vl/gHf/7t59oDlnDSHS8gQhNGQL8uWs6P+iwPYLDuIOzARqyM+E9QOfA3PIfw4IIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhND70J9QSwMEFAAAAAgA7VhwR/dYplZAAAAAagEAAB4AHABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAkAA82cSVZTpQ9XdXgLAAEE9QEAAAQUAAAAY2BgZGBgYFQBEiDsxjDygJQDPlkmEIEaRpJAQg8kLAMML8bi5OIqIFuouKA4A0jLMTD8/w+S5AdrB7PlBIAEAFBLAwQKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1VUCQADzZxJVi2REFd1eAsAAQT1AQAABBQAAABQSwMEFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAHABDb250ZW50cy9SZXNvdXJjZXMvZGVzY3JpcHRpb24ucnRmZC9UWFQucnRmVVQJAAPNnElWU6UPV3V4CwABBPUBAAAEFAAAACWJOw6AIBAFe08DCBVX2QbWhZgQ1vCpCHcXtHkzkzegtCDB5Xp/g0+UyihARnb70kL/UbvffYpjQODcmk9zKXListxCoUsZA7EQ5S0+dVq085gvUEsDBAoAAAAAAIeBjkgAAAAAAAAAAAAAAAAbABwAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQJAAM9pQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACAAJgI5ICl5liTUBAADMAQAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUCQADcaIPV1OlD1d1eAsAAQT1AQAABBQAAAB9UMtOAkEQrNldd9dhH3Dz6NGYiPIJHjTxLCZeF9iDcXEJC0RvfoI/4sEfIvoHPEQEhbIHvOok01U16emu7vOkaF2dXu7XqrUTcyMATkxCwYKthCAUbmciAQ8O11yFcGBfbF/4jR24WmCvWjwUeXqfNutn13XyEeYYHkqKam+kghdJGfUCvwIfB6jiGAX6aCHHETroCrYFe6IKNEXfGOXChc0v7HKpBRzdSFrtELvbumKVC80F/FIjzwe9bj91uZRuXJuwAiLjNi7DlsxPaJSUAMrCFOeac3GfpINennQ6d/0sA4z7JxzKiVCCV+YHAs74LuuIONUi//4RIoC63czrIbYQS3PFicWJcTMTv1JHmocmROLJ45gjzfHvXJqjf7ZZ4RT+61uaBbDipGh2ZanBcjh8/gFQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAACQAYAAAAAAAAABAA7UEAAAAAQ29udGVudHMvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAoHlwR5R2hqihAQAAvgMAABMAGAAAAAAAAQAAAKSBQwAAAENvbnRlbnRzL0luZm8ucGxpc3RVVAUAA1zWSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAAB0gY5IAAAAAAAAAAAAAAAADwAYAAAAAAAAABAA7UExAgAAQ29udGVudHMvTWFjT1MvVVQFAAMbpQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAVRwXR+w5OCkyCAAAyGEAABUAGAAAAAAAAAAAAO2BegIAAENvbnRlbnRzL01hY09TL2FwcGxldFVUBQADMiPZVXV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABgAAAAAAAEAAADtgfsKAABDb250ZW50cy9NYWNPUy9zdWRvLXByb21wdC1zY3JpcHRVVAUAA4mQEFd1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAYAAAAAAABAAAApIHTDAAAQ29udGVudHMvUGtnSW5mb1VUBQADzZxJVnV4CwABBPUBAAAEFAAAAFBLAQIeAwoAAAAAAJt5cEcAAAAAAAAAAAAAAAATABgAAAAAAAAAEADtQSUNAABDb250ZW50cy9SZXNvdXJjZXMvVVQFAANW1klWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAgHlwR3658rH2BgAAH9wAAB4AGAAAAAAAAAAAAKSBcg0AAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUBQADH9ZJVnV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAO1YcEf3WKZWQAAAAGoBAAAeABgAAAAAAAAAAACkgcAUAABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAYAAAAAAAAABAA7UFYFQAAQ29udGVudHMvUmVzb3VyY2VzL2Rlc2NyaXB0aW9uLnJ0ZmQvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAGAAAAAAAAQAAAKSBthUAAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1RYVC5ydGZVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAACHgY5IAAAAAAAAAAAAAAAAGwAYAAAAAAAAABAA7UFuFgAAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQFAAM9pQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgACYCOSApeZYk1AQAAzAEAACQAGAAAAAAAAAAAAKSBwxYAAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUBQADcaIPV3V4CwABBPUBAAAEFAAAAFBLBQYAAAAADQANANwEAABWGAAAAAA=";var u="User did not grant permission.";var l="No polkit authentication agent found.";var h=134217728},395:(t,r,i)=>{"use strict";const o=i(2037);const a=i(6224);const u=i(6738);const{env:l}=process;let h;if(u("no-color")||u("no-colors")||u("color=false")||u("color=never")){h=0}else if(u("color")||u("colors")||u("color=true")||u("color=always")){h=1}if("FORCE_COLOR"in l){if(l.FORCE_COLOR==="true"){h=1}else if(l.FORCE_COLOR==="false"){h=0}else{h=l.FORCE_COLOR.length===0?1:Math.min(parseInt(l.FORCE_COLOR,10),3)}}function translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supportsColor(t,r){if(h===0){return 0}if(u("color=16m")||u("color=full")||u("color=truecolor")){return 3}if(u("color=256")){return 2}if(t&&!r&&h===undefined){return 0}const i=h||0;if(l.TERM==="dumb"){return i}if(process.platform==="win32"){const t=o.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in l){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((t=>t in l))||l.CI_NAME==="codeship"){return 1}return i}if("TEAMCITY_VERSION"in l){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(l.TEAMCITY_VERSION)?1:0}if(l.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in l){const t=parseInt((l.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(l.TERM_PROGRAM){case"iTerm.app":return t>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(l.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(l.TERM)){return 1}if("COLORTERM"in l){return 1}return i}function getSupportLevel(t){const r=supportsColor(t,t&&t.isTTY);return translateLevel(r)}t.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,a.isatty(1))),stderr:translateLevel(supportsColor(true,a.isatty(2)))}},8089:(t,r,i)=>{"use strict";r.c=r.create=i(9748);r.r=r.replace=i(6133);r.t=r.list=i(9405);r.u=r.update=i(4437);r.x=r.extract=i(4330);r.Pack=i(5873);r.Unpack=i(1634);r.Parse=i(6474);r.ReadEntry=i(2332);r.WriteEntry=i(2435);r.Header=i(1815);r.Pax=i(3179);r.types=i(2500)},9748:(t,r,i)=>{"use strict";const o=i(4976);const a=i(5873);const u=i(3597);const l=i(9405);const h=i(1017);t.exports=(t,r,i)=>{if(typeof r==="function"){i=r}if(Array.isArray(t)){r=t,t={}}if(!r||!Array.isArray(r)||!r.length){throw new TypeError("no files or directories specified")}r=Array.from(r);const a=o(t);if(a.sync&&typeof i==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!a.file&&typeof i==="function"){throw new TypeError("callback only supported with file option")}return a.file&&a.sync?createFileSync(a,r):a.file?createFile(a,r,i):a.sync?createSync(a,r):create(a,r)};const createFileSync=(t,r)=>{const i=new a.Sync(t);const o=new u.WriteStreamSync(t.file,{mode:t.mode||438});i.pipe(o);addFilesSync(i,r)};const createFile=(t,r,i)=>{const o=new a(t);const l=new u.WriteStream(t.file,{mode:t.mode||438});o.pipe(l);const h=new Promise(((t,r)=>{l.on("error",r);l.on("close",t);o.on("error",r)}));addFilesAsync(o,r);return i?h.then(i,i):h};const addFilesSync=(t,r)=>{r.forEach((r=>{if(r.charAt(0)==="@"){l({file:h.resolve(t.cwd,r.slice(1)),sync:true,noResume:true,onentry:r=>t.add(r)})}else{t.add(r)}}));t.end()};const addFilesAsync=(t,r)=>{while(r.length){const i=r.shift();if(i.charAt(0)==="@"){return l({file:h.resolve(t.cwd,i.slice(1)),noResume:true,onentry:r=>t.add(r)}).then((i=>addFilesAsync(t,r)))}else{t.add(i)}}t.end()};const createSync=(t,r)=>{const i=new a.Sync(t);addFilesSync(i,r);return i};const create=(t,r)=>{const i=new a(t);addFilesAsync(i,r);return i}},4330:(t,r,i)=>{"use strict";const o=i(4976);const a=i(1634);const u=i(7147);const l=i(3597);const h=i(1017);const p=i(422);t.exports=(t,r,i)=>{if(typeof t==="function"){i=t,r=null,t={}}else if(Array.isArray(t)){r=t,t={}}if(typeof r==="function"){i=r,r=null}if(!r){r=[]}else{r=Array.from(r)}const a=o(t);if(a.sync&&typeof i==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!a.file&&typeof i==="function"){throw new TypeError("callback only supported with file option")}if(r.length){filesFilter(a,r)}return a.file&&a.sync?extractFileSync(a):a.file?extractFile(a,i):a.sync?extractSync(a):extract(a)};const filesFilter=(t,r)=>{const i=new Map(r.map((t=>[p(t),true])));const o=t.filter;const mapHas=(t,r)=>{const o=r||h.parse(t).root||".";const a=t===o?false:i.has(t)?i.get(t):mapHas(h.dirname(t),o);i.set(t,a);return a};t.filter=o?(t,r)=>o(t,r)&&mapHas(p(t)):t=>mapHas(p(t))};const extractFileSync=t=>{const r=new a.Sync(t);const i=t.file;const o=u.statSync(i);const h=t.maxReadSize||16*1024*1024;const p=new l.ReadStreamSync(i,{readSize:h,size:o.size});p.pipe(r)};const extractFile=(t,r)=>{const i=new a(t);const o=t.maxReadSize||16*1024*1024;const h=t.file;const p=new Promise(((t,r)=>{i.on("error",r);i.on("close",t);u.stat(h,((t,a)=>{if(t){r(t)}else{const t=new l.ReadStream(h,{readSize:o,size:a.size});t.on("error",r);t.pipe(i)}}))}));return r?p.then(r,r):p};const extractSync=t=>new a.Sync(t);const extract=t=>new a(t)},5868:(t,r,i)=>{const o=process.env.__FAKE_PLATFORM__||process.platform;const a=o==="win32";const u=global.__FAKE_TESTING_FS__||i(7147);const{O_CREAT:l,O_TRUNC:h,O_WRONLY:p,UV_FS_O_FILEMAP:d=0}=u.constants;const m=a&&!!d;const g=512*1024;const y=d|h|l|p;t.exports=!m?()=>"w":t=>t<g?y:"w"},1815:(t,r,i)=>{"use strict";const o=i(2500);const a=i(1017).posix;const u=i(9939);const l=Symbol("slurp");const h=Symbol("type");class Header{constructor(t,r,i,o){this.cksumValid=false;this.needPax=false;this.nullBlock=false;this.block=null;this.path=null;this.mode=null;this.uid=null;this.gid=null;this.size=null;this.mtime=null;this.cksum=null;this[h]="0";this.linkpath=null;this.uname=null;this.gname=null;this.devmaj=0;this.devmin=0;this.atime=null;this.ctime=null;if(Buffer.isBuffer(t)){this.decode(t,r||0,i,o)}else if(t){this.set(t)}}decode(t,r,i,o){if(!r){r=0}if(!t||!(t.length>=r+512)){throw new Error("need 512 bytes for header")}this.path=decString(t,r,100);this.mode=decNumber(t,r+100,8);this.uid=decNumber(t,r+108,8);this.gid=decNumber(t,r+116,8);this.size=decNumber(t,r+124,12);this.mtime=decDate(t,r+136,12);this.cksum=decNumber(t,r+148,12);this[l](i);this[l](o,true);this[h]=decString(t,r+156,1);if(this[h]===""){this[h]="0"}if(this[h]==="0"&&this.path.slice(-1)==="/"){this[h]="5"}if(this[h]==="5"){this.size=0}this.linkpath=decString(t,r+157,100);if(t.slice(r+257,r+265).toString()==="ustar\x0000"){this.uname=decString(t,r+265,32);this.gname=decString(t,r+297,32);this.devmaj=decNumber(t,r+329,8);this.devmin=decNumber(t,r+337,8);if(t[r+475]!==0){const i=decString(t,r+345,155);this.path=i+"/"+this.path}else{const i=decString(t,r+345,130);if(i){this.path=i+"/"+this.path}this.atime=decDate(t,r+476,12);this.ctime=decDate(t,r+488,12)}}let a=8*32;for(let i=r;i<r+148;i++){a+=t[i]}for(let i=r+156;i<r+512;i++){a+=t[i]}this.cksumValid=a===this.cksum;if(this.cksum===null&&a===8*32){this.nullBlock=true}}[l](t,r){for(const i in t){if(t[i]!==null&&t[i]!==undefined&&!(r&&i==="path")){this[i]=t[i]}}}encode(t,r){if(!t){t=this.block=Buffer.alloc(512);r=0}if(!r){r=0}if(!(t.length>=r+512)){throw new Error("need 512 bytes for header")}const i=this.ctime||this.atime?130:155;const o=splitPrefix(this.path||"",i);const a=o[0];const u=o[1];this.needPax=o[2];this.needPax=encString(t,r,100,a)||this.needPax;this.needPax=encNumber(t,r+100,8,this.mode)||this.needPax;this.needPax=encNumber(t,r+108,8,this.uid)||this.needPax;this.needPax=encNumber(t,r+116,8,this.gid)||this.needPax;this.needPax=encNumber(t,r+124,12,this.size)||this.needPax;this.needPax=encDate(t,r+136,12,this.mtime)||this.needPax;t[r+156]=this[h].charCodeAt(0);this.needPax=encString(t,r+157,100,this.linkpath)||this.needPax;t.write("ustar\x0000",r+257,8);this.needPax=encString(t,r+265,32,this.uname)||this.needPax;this.needPax=encString(t,r+297,32,this.gname)||this.needPax;this.needPax=encNumber(t,r+329,8,this.devmaj)||this.needPax;this.needPax=encNumber(t,r+337,8,this.devmin)||this.needPax;this.needPax=encString(t,r+345,i,u)||this.needPax;if(t[r+475]!==0){this.needPax=encString(t,r+345,155,u)||this.needPax}else{this.needPax=encString(t,r+345,130,u)||this.needPax;this.needPax=encDate(t,r+476,12,this.atime)||this.needPax;this.needPax=encDate(t,r+488,12,this.ctime)||this.needPax}let l=8*32;for(let i=r;i<r+148;i++){l+=t[i]}for(let i=r+156;i<r+512;i++){l+=t[i]}this.cksum=l;encNumber(t,r+148,8,this.cksum);this.cksumValid=true;return this.needPax}set(t){for(const r in t){if(t[r]!==null&&t[r]!==undefined){this[r]=t[r]}}}get type(){return o.name.get(this[h])||this[h]}get typeKey(){return this[h]}set type(t){if(o.code.has(t)){this[h]=o.code.get(t)}else{this[h]=t}}}const splitPrefix=(t,r)=>{const i=100;let o=t;let u="";let l;const h=a.parse(t).root||".";if(Buffer.byteLength(o)<i){l=[o,u,false]}else{u=a.dirname(o);o=a.basename(o);do{if(Buffer.byteLength(o)<=i&&Buffer.byteLength(u)<=r){l=[o,u,false]}else if(Buffer.byteLength(o)>i&&Buffer.byteLength(u)<=r){l=[o.slice(0,i-1),u,true]}else{o=a.join(a.basename(u),o);u=a.dirname(u)}}while(u!==h&&!l);if(!l){l=[t.slice(0,i-1),"",true]}}return l};const decString=(t,r,i)=>t.slice(r,r+i).toString("utf8").replace(/\0.*/,"");const decDate=(t,r,i)=>numToDate(decNumber(t,r,i));const numToDate=t=>t===null?null:new Date(t*1e3);const decNumber=(t,r,i)=>t[r]&128?u.parse(t.slice(r,r+i)):decSmallNumber(t,r,i);const nanNull=t=>isNaN(t)?null:t;const decSmallNumber=(t,r,i)=>nanNull(parseInt(t.slice(r,r+i).toString("utf8").replace(/\0.*$/,"").trim(),8));const p={12:8589934591,8:2097151};const encNumber=(t,r,i,o)=>o===null?false:o>p[i]||o<0?(u.encode(o,t.slice(r,r+i)),true):(encSmallNumber(t,r,i,o),false);const encSmallNumber=(t,r,i,o)=>t.write(octalString(o,i),r,i,"ascii");const octalString=(t,r)=>padOctal(Math.floor(t).toString(8),r);const padOctal=(t,r)=>(t.length===r-1?t:new Array(r-t.length-1).join("0")+t+" ")+"\0";const encDate=(t,r,i,o)=>o===null?false:encNumber(t,r,i,o.getTime()/1e3);const d=new Array(156).join("\0");const encString=(t,r,i,o)=>o===null?false:(t.write(o+d,r,i,"utf8"),o.length!==Buffer.byteLength(o)||o.length>i);t.exports=Header},4976:t=>{"use strict";const r=new Map([["C","cwd"],["f","file"],["z","gzip"],["P","preservePaths"],["U","unlink"],["strip-components","strip"],["stripComponents","strip"],["keep-newer","newer"],["keepNewer","newer"],["keep-newer-files","newer"],["keepNewerFiles","newer"],["k","keep"],["keep-existing","keep"],["keepExisting","keep"],["m","noMtime"],["no-mtime","noMtime"],["p","preserveOwner"],["L","follow"],["h","follow"]]);t.exports=t=>t?Object.keys(t).map((i=>[r.has(i)?r.get(i):i,t[i]])).reduce(((t,r)=>(t[r[0]]=r[1],t)),Object.create(null)):{}},9939:t=>{"use strict";const encode=(t,r)=>{if(!Number.isSafeInteger(t)){throw Error("cannot encode number outside of javascript safe integer range")}else if(t<0){encodeNegative(t,r)}else{encodePositive(t,r)}return r};const encodePositive=(t,r)=>{r[0]=128;for(var i=r.length;i>1;i--){r[i-1]=t&255;t=Math.floor(t/256)}};const encodeNegative=(t,r)=>{r[0]=255;var i=false;t=t*-1;for(var o=r.length;o>1;o--){var a=t&255;t=Math.floor(t/256);if(i){r[o-1]=onesComp(a)}else if(a===0){r[o-1]=0}else{i=true;r[o-1]=twosComp(a)}}};const parse=t=>{const r=t[0];const i=r===128?pos(t.slice(1,t.length)):r===255?twos(t):null;if(i===null){throw Error("invalid base256 encoding")}if(!Number.isSafeInteger(i)){throw Error("parsed number outside of javascript safe integer range")}return i};const twos=t=>{var r=t.length;var i=0;var o=false;for(var a=r-1;a>-1;a--){var u=t[a];var l;if(o){l=onesComp(u)}else if(u===0){l=u}else{o=true;l=twosComp(u)}if(l!==0){i-=l*Math.pow(256,r-a-1)}}return i};const pos=t=>{var r=t.length;var i=0;for(var o=r-1;o>-1;o--){var a=t[o];if(a!==0){i+=a*Math.pow(256,r-o-1)}}return i};const onesComp=t=>(255^t)&255;const twosComp=t=>(255^t)+1&255;t.exports={encode:encode,parse:parse}},9405:(t,r,i)=>{"use strict";const o=i(4976);const a=i(6474);const u=i(7147);const l=i(3597);const h=i(1017);const p=i(422);t.exports=(t,r,i)=>{if(typeof t==="function"){i=t,r=null,t={}}else if(Array.isArray(t)){r=t,t={}}if(typeof r==="function"){i=r,r=null}if(!r){r=[]}else{r=Array.from(r)}const a=o(t);if(a.sync&&typeof i==="function"){throw new TypeError("callback not supported for sync tar functions")}if(!a.file&&typeof i==="function"){throw new TypeError("callback only supported with file option")}if(r.length){filesFilter(a,r)}if(!a.noResume){onentryFunction(a)}return a.file&&a.sync?listFileSync(a):a.file?listFile(a,i):list(a)};const onentryFunction=t=>{const r=t.onentry;t.onentry=r?t=>{r(t);t.resume()}:t=>t.resume()};const filesFilter=(t,r)=>{const i=new Map(r.map((t=>[p(t),true])));const o=t.filter;const mapHas=(t,r)=>{const o=r||h.parse(t).root||".";const a=t===o?false:i.has(t)?i.get(t):mapHas(h.dirname(t),o);i.set(t,a);return a};t.filter=o?(t,r)=>o(t,r)&&mapHas(p(t)):t=>mapHas(p(t))};const listFileSync=t=>{const r=list(t);const i=t.file;let o=true;let a;try{const l=u.statSync(i);const h=t.maxReadSize||16*1024*1024;if(l.size<h){r.end(u.readFileSync(i))}else{let t=0;const o=Buffer.allocUnsafe(h);a=u.openSync(i,"r");while(t<l.size){const i=u.readSync(a,o,0,h,t);t+=i;r.write(o.slice(0,i))}r.end()}o=false}finally{if(o&&a){try{u.closeSync(a)}catch(t){}}}};const listFile=(t,r)=>{const i=new a(t);const o=t.maxReadSize||16*1024*1024;const h=t.file;const p=new Promise(((t,r)=>{i.on("error",r);i.on("end",t);u.stat(h,((t,a)=>{if(t){r(t)}else{const t=new l.ReadStream(h,{readSize:o,size:a.size});t.on("error",r);t.pipe(i)}}))}));return r?p.then(r,r):p};const list=t=>new a(t)},6790:(t,r,i)=>{"use strict";const o=i(4184);const a=i(7147);const u=i(1017);const l=i(5649);const h=i(5536);class SymlinkError extends Error{constructor(t,r){super("Cannot extract through symbolic link");this.path=r;this.symlink=t}get name(){return"SylinkError"}}class CwdError extends Error{constructor(t,r){super(r+": Cannot cd into '"+t+"'");this.path=t;this.code=r}get name(){return"CwdError"}}const cGet=(t,r)=>t.get(h(r));const cSet=(t,r,i)=>t.set(h(r),i);const checkCwd=(t,r)=>{a.stat(t,((i,o)=>{if(i||!o.isDirectory()){i=new CwdError(t,i&&i.code||"ENOTDIR")}r(i)}))};t.exports=(t,r,i)=>{t=h(t);const p=r.umask;const d=r.mode|448;const m=(d&p)!==0;const g=r.uid;const y=r.gid;const A=typeof g==="number"&&typeof y==="number"&&(g!==r.processUid||y!==r.processGid);const b=r.preserve;const v=r.unlink;const E=r.cache;const w=h(r.cwd);const done=(r,o)=>{if(r){i(r)}else{cSet(E,t,true);if(o&&A){l(o,g,y,(t=>done(t)))}else if(m){a.chmod(t,d,i)}else{i()}}};if(E&&cGet(E,t)===true){return done()}if(t===w){return checkCwd(t,done)}if(b){return o(t,{mode:d}).then((t=>done(null,t)),done)}const _=h(u.relative(w,t));const S=_.split("/");mkdir_(w,S,d,E,v,w,null,done)};const mkdir_=(t,r,i,o,l,p,d,m)=>{if(!r.length){return m(null,d)}const g=r.shift();const y=h(u.resolve(t+"/"+g));if(cGet(o,y)){return mkdir_(y,r,i,o,l,p,d,m)}a.mkdir(y,i,onmkdir(y,r,i,o,l,p,d,m))};const onmkdir=(t,r,i,o,u,l,p,d)=>m=>{if(m){a.lstat(t,((g,y)=>{if(g){g.path=g.path&&h(g.path);d(g)}else if(y.isDirectory()){mkdir_(t,r,i,o,u,l,p,d)}else if(u){a.unlink(t,(h=>{if(h){return d(h)}a.mkdir(t,i,onmkdir(t,r,i,o,u,l,p,d))}))}else if(y.isSymbolicLink()){return d(new SymlinkError(t,t+"/"+r.join("/")))}else{d(m)}}))}else{p=p||t;mkdir_(t,r,i,o,u,l,p,d)}};const checkCwdSync=t=>{let r=false;let i="ENOTDIR";try{r=a.statSync(t).isDirectory()}catch(t){i=t.code}finally{if(!r){throw new CwdError(t,i)}}};t.exports.sync=(t,r)=>{t=h(t);const i=r.umask;const p=r.mode|448;const d=(p&i)!==0;const m=r.uid;const g=r.gid;const y=typeof m==="number"&&typeof g==="number"&&(m!==r.processUid||g!==r.processGid);const A=r.preserve;const b=r.unlink;const v=r.cache;const E=h(r.cwd);const done=r=>{cSet(v,t,true);if(r&&y){l.sync(r,m,g)}if(d){a.chmodSync(t,p)}};if(v&&cGet(v,t)===true){return done()}if(t===E){checkCwdSync(E);return done()}if(A){return done(o.sync(t,p))}const w=h(u.relative(E,t));const _=w.split("/");let S=null;for(let t=_.shift(),r=E;t&&(r+="/"+t);t=_.shift()){r=h(u.resolve(r));if(cGet(v,r)){continue}try{a.mkdirSync(r,p);S=S||r;cSet(v,r,true)}catch(t){const i=a.lstatSync(r);if(i.isDirectory()){cSet(v,r,true);continue}else if(b){a.unlinkSync(r);a.mkdirSync(r,p);S=S||r;cSet(v,r,true);continue}else if(i.isSymbolicLink()){return new SymlinkError(r,r+"/"+_.join("/"))}}}return done(S)}},2701:t=>{"use strict";t.exports=(t,r,i)=>{t&=4095;if(i){t=(t|384)&~18}if(r){if(t&256){t|=64}if(t&32){t|=8}if(t&4){t|=1}}return t}},4462:t=>{const r=Object.create(null);const{hasOwnProperty:i}=Object.prototype;t.exports=t=>{if(!i.call(r,t)){r[t]=t.normalize("NFD")}return r[t]}},5536:t=>{const r=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;t.exports=r!=="win32"?t=>t:t=>t&&t.replace(/\\/g,"/")},5873:(t,r,i)=>{"use strict";class PackJob{constructor(t,r){this.path=t||"./";this.absolute=r;this.entry=null;this.stat=null;this.readdir=null;this.pending=false;this.ignore=false;this.piped=false}}const{Minipass:o}=i(6047);const a=i(7547);const u=i(2332);const l=i(2435);const h=l.Sync;const p=l.Tar;const d=i(4461);const m=Buffer.alloc(1024);const g=Symbol("onStat");const y=Symbol("ended");const A=Symbol("queue");const b=Symbol("current");const v=Symbol("process");const E=Symbol("processing");const w=Symbol("processJob");const _=Symbol("jobs");const S=Symbol("jobDone");const C=Symbol("addFSEntry");const D=Symbol("addTarEntry");const x=Symbol("stat");const R=Symbol("readdir");const O=Symbol("onreaddir");const k=Symbol("pipe");const P=Symbol("entry");const T=Symbol("entryOpt");const L=Symbol("writeEntryClass");const I=Symbol("write");const M=Symbol("ondrain");const B=i(7147);const N=i(1017);const $=i(4239);const j=i(5536);const H=$(class Pack extends o{constructor(t){super(t);t=t||Object.create(null);this.opt=t;this.file=t.file||"";this.cwd=t.cwd||process.cwd();this.maxReadSize=t.maxReadSize;this.preservePaths=!!t.preservePaths;this.strict=!!t.strict;this.noPax=!!t.noPax;this.prefix=j(t.prefix||"");this.linkCache=t.linkCache||new Map;this.statCache=t.statCache||new Map;this.readdirCache=t.readdirCache||new Map;this[L]=l;if(typeof t.onwarn==="function"){this.on("warn",t.onwarn)}this.portable=!!t.portable;this.zip=null;if(t.gzip||t.brotli){if(t.gzip&&t.brotli){throw new TypeError("gzip and brotli are mutually exclusive")}if(t.gzip){if(typeof t.gzip!=="object"){t.gzip={}}if(this.portable){t.gzip.portable=true}this.zip=new a.Gzip(t.gzip)}if(t.brotli){if(typeof t.brotli!=="object"){t.brotli={}}this.zip=new a.BrotliCompress(t.brotli)}this.zip.on("data",(t=>super.write(t)));this.zip.on("end",(t=>super.end()));this.zip.on("drain",(t=>this[M]()));this.on("resume",(t=>this.zip.resume()))}else{this.on("drain",this[M])}this.noDirRecurse=!!t.noDirRecurse;this.follow=!!t.follow;this.noMtime=!!t.noMtime;this.mtime=t.mtime||null;this.filter=typeof t.filter==="function"?t.filter:t=>true;this[A]=new d;this[_]=0;this.jobs=+t.jobs||4;this[E]=false;this[y]=false}[I](t){return super.write(t)}add(t){this.write(t);return this}end(t){if(t){this.write(t)}this[y]=true;this[v]();return this}write(t){if(this[y]){throw new Error("write after end")}if(t instanceof u){this[D](t)}else{this[C](t)}return this.flowing}[D](t){const r=j(N.resolve(this.cwd,t.path));if(!this.filter(t.path,t)){t.resume()}else{const i=new PackJob(t.path,r,false);i.entry=new p(t,this[T](i));i.entry.on("end",(t=>this[S](i)));this[_]+=1;this[A].push(i)}this[v]()}[C](t){const r=j(N.resolve(this.cwd,t));this[A].push(new PackJob(t,r));this[v]()}[x](t){t.pending=true;this[_]+=1;const r=this.follow?"stat":"lstat";B[r](t.absolute,((r,i)=>{t.pending=false;this[_]-=1;if(r){this.emit("error",r)}else{this[g](t,i)}}))}[g](t,r){this.statCache.set(t.absolute,r);t.stat=r;if(!this.filter(t.path,r)){t.ignore=true}this[v]()}[R](t){t.pending=true;this[_]+=1;B.readdir(t.absolute,((r,i)=>{t.pending=false;this[_]-=1;if(r){return this.emit("error",r)}this[O](t,i)}))}[O](t,r){this.readdirCache.set(t.absolute,r);t.readdir=r;this[v]()}[v](){if(this[E]){return}this[E]=true;for(let t=this[A].head;t!==null&&this[_]<this.jobs;t=t.next){this[w](t.value);if(t.value.ignore){const r=t.next;this[A].removeNode(t);t.next=r}}this[E]=false;if(this[y]&&!this[A].length&&this[_]===0){if(this.zip){this.zip.end(m)}else{super.write(m);super.end()}}}get[b](){return this[A]&&this[A].head&&this[A].head.value}[S](t){this[A].shift();this[_]-=1;this[v]()}[w](t){if(t.pending){return}if(t.entry){if(t===this[b]&&!t.piped){this[k](t)}return}if(!t.stat){if(this.statCache.has(t.absolute)){this[g](t,this.statCache.get(t.absolute))}else{this[x](t)}}if(!t.stat){return}if(t.ignore){return}if(!this.noDirRecurse&&t.stat.isDirectory()&&!t.readdir){if(this.readdirCache.has(t.absolute)){this[O](t,this.readdirCache.get(t.absolute))}else{this[R](t)}if(!t.readdir){return}}t.entry=this[P](t);if(!t.entry){t.ignore=true;return}if(t===this[b]&&!t.piped){this[k](t)}}[T](t){return{onwarn:(t,r,i)=>this.warn(t,r,i),noPax:this.noPax,cwd:this.cwd,absolute:t.absolute,preservePaths:this.preservePaths,maxReadSize:this.maxReadSize,strict:this.strict,portable:this.portable,linkCache:this.linkCache,statCache:this.statCache,noMtime:this.noMtime,mtime:this.mtime,prefix:this.prefix}}[P](t){this[_]+=1;try{return new this[L](t.path,this[T](t)).on("end",(()=>this[S](t))).on("error",(t=>this.emit("error",t)))}catch(t){this.emit("error",t)}}[M](){if(this[b]&&this[b].entry){this[b].entry.resume()}}[k](t){t.piped=true;if(t.readdir){t.readdir.forEach((r=>{const i=t.path;const o=i==="./"?"":i.replace(/\/*$/,"/");this[C](o+r)}))}const r=t.entry;const i=this.zip;if(i){r.on("data",(t=>{if(!i.write(t)){r.pause()}}))}else{r.on("data",(t=>{if(!super.write(t)){r.pause()}}))}}pause(){if(this.zip){this.zip.pause()}return super.pause()}});class PackSync extends H{constructor(t){super(t);this[L]=h}pause(){}resume(){}[x](t){const r=this.follow?"statSync":"lstatSync";this[g](t,B[r](t.absolute))}[R](t,r){this[O](t,B.readdirSync(t.absolute))}[k](t){const r=t.entry;const i=this.zip;if(t.readdir){t.readdir.forEach((r=>{const i=t.path;const o=i==="./"?"":i.replace(/\/*$/,"/");this[C](o+r)}))}if(i){r.on("data",(t=>{i.write(t)}))}else{r.on("data",(t=>{super[I](t)}))}}}H.Sync=PackSync;t.exports=H},6474:(t,r,i)=>{"use strict";const o=i(4239);const a=i(1815);const u=i(2361);const l=i(4461);const h=1024*1024;const p=i(2332);const d=i(3179);const m=i(7547);const{nextTick:g}=i(7282);const y=Buffer.from([31,139]);const A=Symbol("state");const b=Symbol("writeEntry");const v=Symbol("readEntry");const E=Symbol("nextEntry");const w=Symbol("processEntry");const _=Symbol("extendedHeader");const S=Symbol("globalExtendedHeader");const C=Symbol("meta");const D=Symbol("emitMeta");const x=Symbol("buffer");const R=Symbol("queue");const O=Symbol("ended");const k=Symbol("emittedEnd");const P=Symbol("emit");const T=Symbol("unzip");const L=Symbol("consumeChunk");const I=Symbol("consumeChunkSub");const M=Symbol("consumeBody");const B=Symbol("consumeMeta");const N=Symbol("consumeHeader");const $=Symbol("consuming");const j=Symbol("bufferConcat");const H=Symbol("maybeEnd");const G=Symbol("writing");const U=Symbol("aborted");const W=Symbol("onDone");const z=Symbol("sawValidEntry");const Y=Symbol("sawNullBlock");const V=Symbol("sawEOF");const Q=Symbol("closeStream");const noop=t=>true;t.exports=o(class Parser extends u{constructor(t){t=t||{};super(t);this.file=t.file||"";this[z]=null;this.on(W,(t=>{if(this[A]==="begin"||this[z]===false){this.warn("TAR_BAD_ARCHIVE","Unrecognized archive format")}}));if(t.ondone){this.on(W,t.ondone)}else{this.on(W,(t=>{this.emit("prefinish");this.emit("finish");this.emit("end")}))}this.strict=!!t.strict;this.maxMetaEntrySize=t.maxMetaEntrySize||h;this.filter=typeof t.filter==="function"?t.filter:noop;const r=t.file&&(t.file.endsWith(".tar.br")||t.file.endsWith(".tbr"));this.brotli=!t.gzip&&t.brotli!==undefined?t.brotli:r?undefined:false;this.writable=true;this.readable=false;this[R]=new l;this[x]=null;this[v]=null;this[b]=null;this[A]="begin";this[C]="";this[_]=null;this[S]=null;this[O]=false;this[T]=null;this[U]=false;this[Y]=false;this[V]=false;this.on("end",(()=>this[Q]()));if(typeof t.onwarn==="function"){this.on("warn",t.onwarn)}if(typeof t.onentry==="function"){this.on("entry",t.onentry)}}[N](t,r){if(this[z]===null){this[z]=false}let i;try{i=new a(t,r,this[_],this[S])}catch(t){return this.warn("TAR_ENTRY_INVALID",t)}if(i.nullBlock){if(this[Y]){this[V]=true;if(this[A]==="begin"){this[A]="header"}this[P]("eof")}else{this[Y]=true;this[P]("nullBlock")}}else{this[Y]=false;if(!i.cksumValid){this.warn("TAR_ENTRY_INVALID","checksum failure",{header:i})}else if(!i.path){this.warn("TAR_ENTRY_INVALID","path is required",{header:i})}else{const t=i.type;if(/^(Symbolic)?Link$/.test(t)&&!i.linkpath){this.warn("TAR_ENTRY_INVALID","linkpath required",{header:i})}else if(!/^(Symbolic)?Link$/.test(t)&&i.linkpath){this.warn("TAR_ENTRY_INVALID","linkpath forbidden",{header:i})}else{const t=this[b]=new p(i,this[_],this[S]);if(!this[z]){if(t.remain){const onend=()=>{if(!t.invalid){this[z]=true}};t.on("end",onend)}else{this[z]=true}}if(t.meta){if(t.size>this.maxMetaEntrySize){t.ignore=true;this[P]("ignoredEntry",t);this[A]="ignore";t.resume()}else if(t.size>0){this[C]="";t.on("data",(t=>this[C]+=t));this[A]="meta"}}else{this[_]=null;t.ignore=t.ignore||!this.filter(t.path,t);if(t.ignore){this[P]("ignoredEntry",t);this[A]=t.remain?"ignore":"header";t.resume()}else{if(t.remain){this[A]="body"}else{this[A]="header";t.end()}if(!this[v]){this[R].push(t);this[E]()}else{this[R].push(t)}}}}}}}[Q](){g((()=>this.emit("close")))}[w](t){let r=true;if(!t){this[v]=null;r=false}else if(Array.isArray(t)){this.emit.apply(this,t)}else{this[v]=t;this.emit("entry",t);if(!t.emittedEnd){t.on("end",(t=>this[E]()));r=false}}return r}[E](){do{}while(this[w](this[R].shift()));if(!this[R].length){const t=this[v];const r=!t||t.flowing||t.size===t.remain;if(r){if(!this[G]){this.emit("drain")}}else{t.once("drain",(t=>this.emit("drain")))}}}[M](t,r){const i=this[b];const o=i.blockRemain;const a=o>=t.length&&r===0?t:t.slice(r,r+o);i.write(a);if(!i.blockRemain){this[A]="header";this[b]=null;i.end()}return a.length}[B](t,r){const i=this[b];const o=this[M](t,r);if(!this[b]){this[D](i)}return o}[P](t,r,i){if(!this[R].length&&!this[v]){this.emit(t,r,i)}else{this[R].push([t,r,i])}}[D](t){this[P]("meta",this[C]);switch(t.type){case"ExtendedHeader":case"OldExtendedHeader":this[_]=d.parse(this[C],this[_],false);break;case"GlobalExtendedHeader":this[S]=d.parse(this[C],this[S],true);break;case"NextFileHasLongPath":case"OldGnuLongPath":this[_]=this[_]||Object.create(null);this[_].path=this[C].replace(/\0.*/,"");break;case"NextFileHasLongLinkpath":this[_]=this[_]||Object.create(null);this[_].linkpath=this[C].replace(/\0.*/,"");break;default:throw new Error("unknown meta: "+t.type)}}abort(t){this[U]=true;this.emit("abort",t);this.warn("TAR_ABORT",t,{recoverable:false})}write(t){if(this[U]){return}const r=this[T]===null||this.brotli===undefined&&this[T]===false;if(r&&t){if(this[x]){t=Buffer.concat([this[x],t]);this[x]=null}if(t.length<y.length){this[x]=t;return true}for(let r=0;this[T]===null&&r<y.length;r++){if(t[r]!==y[r]){this[T]=false}}const r=this.brotli===undefined;if(this[T]===false&&r){if(t.length<512){if(this[O]){this.brotli=true}else{this[x]=t;return true}}else{try{new a(t.slice(0,512));this.brotli=false}catch(t){this.brotli=true}}}if(this[T]===null||this[T]===false&&this.brotli){const r=this[O];this[O]=false;this[T]=this[T]===null?new m.Unzip:new m.BrotliDecompress;this[T].on("data",(t=>this[L](t)));this[T].on("error",(t=>this.abort(t)));this[T].on("end",(t=>{this[O]=true;this[L]()}));this[G]=true;const i=this[T][r?"end":"write"](t);this[G]=false;return i}}this[G]=true;if(this[T]){this[T].write(t)}else{this[L](t)}this[G]=false;const i=this[R].length?false:this[v]?this[v].flowing:true;if(!i&&!this[R].length){this[v].once("drain",(t=>this.emit("drain")))}return i}[j](t){if(t&&!this[U]){this[x]=this[x]?Buffer.concat([this[x],t]):t}}[H](){if(this[O]&&!this[k]&&!this[U]&&!this[$]){this[k]=true;const t=this[b];if(t&&t.blockRemain){const r=this[x]?this[x].length:0;this.warn("TAR_BAD_ARCHIVE",`Truncated input (needed ${t.blockRemain} more bytes, only ${r} available)`,{entry:t});if(this[x]){t.write(this[x])}t.end()}this[P](W)}}[L](t){if(this[$]){this[j](t)}else if(!t&&!this[x]){this[H]()}else{this[$]=true;if(this[x]){this[j](t);const r=this[x];this[x]=null;this[I](r)}else{this[I](t)}while(this[x]&&this[x].length>=512&&!this[U]&&!this[V]){const t=this[x];this[x]=null;this[I](t)}this[$]=false}if(!this[x]||this[O]){this[H]()}}[I](t){let r=0;const i=t.length;while(r+512<=i&&!this[U]&&!this[V]){switch(this[A]){case"begin":case"header":this[N](t,r);r+=512;break;case"ignore":case"body":r+=this[M](t,r);break;case"meta":r+=this[B](t,r);break;default:throw new Error("invalid state: "+this[A])}}if(r<i){if(this[x]){this[x]=Buffer.concat([t.slice(r),this[x]])}else{this[x]=t.slice(r)}}}end(t){if(!this[U]){if(this[T]){this[T].end(t)}else{this[O]=true;if(this.brotli===undefined)t=t||Buffer.alloc(0);this.write(t)}}}})},1891:(t,r,i)=>{const o=i(9491);const a=i(4462);const u=i(422);const{join:l}=i(1017);const h=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const p=h==="win32";t.exports=()=>{const t=new Map;const r=new Map;const getDirs=t=>{const r=t.split("/").slice(0,-1).reduce(((t,r)=>{if(t.length){r=l(t[t.length-1],r)}t.push(r||"/");return t}),[]);return r};const i=new Set;const getQueues=i=>{const o=r.get(i);if(!o){throw new Error("function does not have any path reservations")}return{paths:o.paths.map((r=>t.get(r))),dirs:[...o.dirs].map((r=>t.get(r)))}};const check=t=>{const{paths:r,dirs:i}=getQueues(t);return r.every((r=>r[0]===t))&&i.every((r=>r[0]instanceof Set&&r[0].has(t)))};const run=t=>{if(i.has(t)||!check(t)){return false}i.add(t);t((()=>clear(t)));return true};const clear=a=>{if(!i.has(a)){return false}const{paths:u,dirs:l}=r.get(a);const h=new Set;u.forEach((r=>{const i=t.get(r);o.equal(i[0],a);if(i.length===1){t.delete(r)}else{i.shift();if(typeof i[0]==="function"){h.add(i[0])}else{i[0].forEach((t=>h.add(t)))}}}));l.forEach((r=>{const i=t.get(r);o(i[0]instanceof Set);if(i[0].size===1&&i.length===1){t.delete(r)}else if(i[0].size===1){i.shift();h.add(i[0])}else{i[0].delete(a)}}));i.delete(a);h.forEach((t=>run(t)));return true};const reserve=(i,o)=>{i=p?["win32 parallelization disabled"]:i.map((t=>u(l(a(t))).toLowerCase()));const h=new Set(i.map((t=>getDirs(t))).reduce(((t,r)=>t.concat(r))));r.set(o,{dirs:h,paths:i});i.forEach((r=>{const i=t.get(r);if(!i){t.set(r,[o])}else{i.push(o)}}));h.forEach((r=>{const i=t.get(r);if(!i){t.set(r,[new Set([o])])}else if(i[i.length-1]instanceof Set){i[i.length-1].add(o)}else{i.push(new Set([o]))}}));return run(o)};return{check:check,reserve:reserve}}},3179:(t,r,i)=>{"use strict";const o=i(1815);const a=i(1017);class Pax{constructor(t,r){this.atime=t.atime||null;this.charset=t.charset||null;this.comment=t.comment||null;this.ctime=t.ctime||null;this.gid=t.gid||null;this.gname=t.gname||null;this.linkpath=t.linkpath||null;this.mtime=t.mtime||null;this.path=t.path||null;this.size=t.size||null;this.uid=t.uid||null;this.uname=t.uname||null;this.dev=t.dev||null;this.ino=t.ino||null;this.nlink=t.nlink||null;this.global=r||false}encode(){const t=this.encodeBody();if(t===""){return null}const r=Buffer.byteLength(t);const i=512*Math.ceil(1+r/512);const u=Buffer.allocUnsafe(i);for(let t=0;t<512;t++){u[t]=0}new o({path:("PaxHeader/"+a.basename(this.path)).slice(0,99),mode:this.mode||420,uid:this.uid||null,gid:this.gid||null,size:r,mtime:this.mtime||null,type:this.global?"GlobalExtendedHeader":"ExtendedHeader",linkpath:"",uname:this.uname||"",gname:this.gname||"",devmaj:0,devmin:0,atime:this.atime||null,ctime:this.ctime||null}).encode(u);u.write(t,512,r,"utf8");for(let t=r+512;t<u.length;t++){u[t]=0}return u}encodeBody(){return this.encodeField("path")+this.encodeField("ctime")+this.encodeField("atime")+this.encodeField("dev")+this.encodeField("ino")+this.encodeField("nlink")+this.encodeField("charset")+this.encodeField("comment")+this.encodeField("gid")+this.encodeField("gname")+this.encodeField("linkpath")+this.encodeField("mtime")+this.encodeField("size")+this.encodeField("uid")+this.encodeField("uname")}encodeField(t){if(this[t]===null||this[t]===undefined){return""}const r=this[t]instanceof Date?this[t].getTime()/1e3:this[t];const i=" "+(t==="dev"||t==="ino"||t==="nlink"?"SCHILY.":"")+t+"="+r+"\n";const o=Buffer.byteLength(i);let a=Math.floor(Math.log(o)/Math.log(10))+1;if(o+a>=Math.pow(10,a)){a+=1}const u=a+o;return u+i}}Pax.parse=(t,r,i)=>new Pax(merge(parseKV(t),r),i);const merge=(t,r)=>r?Object.keys(t).reduce(((r,i)=>(r[i]=t[i],r)),r):t;const parseKV=t=>t.replace(/\n$/,"").split("\n").reduce(parseKVLine,Object.create(null));const parseKVLine=(t,r)=>{const i=parseInt(r,10);if(i!==Buffer.byteLength(r)+1){return t}r=r.slice((i+" ").length);const o=r.split("=");const a=o.shift().replace(/^SCHILY\.(dev|ino|nlink)/,"$1");if(!a){return t}const u=o.join("=");t[a]=/^([A-Z]+\.)?([mac]|birth|creation)time$/.test(a)?new Date(u*1e3):/^[0-9]+$/.test(u)?+u:u;return t};t.exports=Pax},2332:(t,r,i)=>{"use strict";const{Minipass:o}=i(6047);const a=i(5536);const u=Symbol("slurp");t.exports=class ReadEntry extends o{constructor(t,r,i){super();this.pause();this.extended=r;this.globalExtended=i;this.header=t;this.startBlockSize=512*Math.ceil(t.size/512);this.blockRemain=this.startBlockSize;this.remain=t.size;this.type=t.type;this.meta=false;this.ignore=false;switch(this.type){case"File":case"OldFile":case"Link":case"SymbolicLink":case"CharacterDevice":case"BlockDevice":case"Directory":case"FIFO":case"ContiguousFile":case"GNUDumpDir":break;case"NextFileHasLongLinkpath":case"NextFileHasLongPath":case"OldGnuLongPath":case"GlobalExtendedHeader":case"ExtendedHeader":case"OldExtendedHeader":this.meta=true;break;default:this.ignore=true}this.path=a(t.path);this.mode=t.mode;if(this.mode){this.mode=this.mode&4095}this.uid=t.uid;this.gid=t.gid;this.uname=t.uname;this.gname=t.gname;this.size=t.size;this.mtime=t.mtime;this.atime=t.atime;this.ctime=t.ctime;this.linkpath=a(t.linkpath);this.uname=t.uname;this.gname=t.gname;if(r){this[u](r)}if(i){this[u](i,true)}}write(t){const r=t.length;if(r>this.blockRemain){throw new Error("writing more to entry than is appropriate")}const i=this.remain;const o=this.blockRemain;this.remain=Math.max(0,i-r);this.blockRemain=Math.max(0,o-r);if(this.ignore){return true}if(i>=r){return super.write(t)}return super.write(t.slice(0,i))}[u](t,r){for(const i in t){if(t[i]!==null&&t[i]!==undefined&&!(r&&i==="path")){this[i]=i==="path"||i==="linkpath"?a(t[i]):t[i]}}}}},6133:(t,r,i)=>{"use strict";const o=i(4976);const a=i(5873);const u=i(7147);const l=i(3597);const h=i(9405);const p=i(1017);const d=i(1815);t.exports=(t,r,i)=>{const a=o(t);if(!a.file){throw new TypeError("file is required")}if(a.gzip||a.brotli||a.file.endsWith(".br")||a.file.endsWith(".tbr")){throw new TypeError("cannot append to compressed archives")}if(!r||!Array.isArray(r)||!r.length){throw new TypeError("no files or directories specified")}r=Array.from(r);return a.sync?replaceSync(a,r):replace(a,r,i)};const replaceSync=(t,r)=>{const i=new a.Sync(t);let o=true;let l;let h;try{try{l=u.openSync(t.file,"r+")}catch(r){if(r.code==="ENOENT"){l=u.openSync(t.file,"w+")}else{throw r}}const a=u.fstatSync(l);const p=Buffer.alloc(512);e:for(h=0;h<a.size;h+=512){for(let t=0,r=0;t<512;t+=r){r=u.readSync(l,p,t,p.length-t,h+t);if(h===0&&p[0]===31&&p[1]===139){throw new Error("cannot append to compressed archives")}if(!r){break e}}const r=new d(p);if(!r.cksumValid){break}const i=512*Math.ceil(r.size/512);if(h+i+512>a.size){break}h+=i;if(t.mtimeCache){t.mtimeCache.set(r.path,r.mtime)}}o=false;streamSync(t,i,h,l,r)}finally{if(o){try{u.closeSync(l)}catch(t){}}}};const streamSync=(t,r,i,o,a)=>{const u=new l.WriteStreamSync(t.file,{fd:o,start:i});r.pipe(u);addFilesSync(r,a)};const replace=(t,r,i)=>{r=Array.from(r);const o=new a(t);const getPos=(r,i,o)=>{const cb=(t,i)=>{if(t){u.close(r,(r=>o(t)))}else{o(null,i)}};let a=0;if(i===0){return cb(null,0)}let l=0;const h=Buffer.alloc(512);const onread=(o,p)=>{if(o){return cb(o)}l+=p;if(l<512&&p){return u.read(r,h,l,h.length-l,a+l,onread)}if(a===0&&h[0]===31&&h[1]===139){return cb(new Error("cannot append to compressed archives"))}if(l<512){return cb(null,a)}const m=new d(h);if(!m.cksumValid){return cb(null,a)}const g=512*Math.ceil(m.size/512);if(a+g+512>i){return cb(null,a)}a+=g+512;if(a>=i){return cb(null,a)}if(t.mtimeCache){t.mtimeCache.set(m.path,m.mtime)}l=0;u.read(r,h,0,512,a,onread)};u.read(r,h,0,512,a,onread)};const h=new Promise(((i,a)=>{o.on("error",a);let h="r+";const onopen=(p,d)=>{if(p&&p.code==="ENOENT"&&h==="r+"){h="w+";return u.open(t.file,h,onopen)}if(p){return a(p)}u.fstat(d,((h,p)=>{if(h){return u.close(d,(()=>a(h)))}getPos(d,p.size,((u,h)=>{if(u){return a(u)}const p=new l.WriteStream(t.file,{fd:d,start:h});o.pipe(p);p.on("error",a);p.on("close",i);addFilesAsync(o,r)}))}))};u.open(t.file,h,onopen)}));return i?h.then(i,i):h};const addFilesSync=(t,r)=>{r.forEach((r=>{if(r.charAt(0)==="@"){h({file:p.resolve(t.cwd,r.slice(1)),sync:true,noResume:true,onentry:r=>t.add(r)})}else{t.add(r)}}));t.end()};const addFilesAsync=(t,r)=>{while(r.length){const i=r.shift();if(i.charAt(0)==="@"){return h({file:p.resolve(t.cwd,i.slice(1)),noResume:true,onentry:r=>t.add(r)}).then((i=>addFilesAsync(t,r)))}else{t.add(i)}}t.end()}},8047:(t,r,i)=>{const{isAbsolute:o,parse:a}=i(1017).win32;t.exports=t=>{let r="";let i=a(t);while(o(t)||i.root){const o=t.charAt(0)==="/"&&t.slice(0,4)!=="//?/"?"/":i.root;t=t.slice(o.length);r+=o;i=a(t)}return[r,t]}},422:t=>{t.exports=t=>{let r=t.length-1;let i=-1;while(r>-1&&t.charAt(r)==="/"){i=r;r--}return i===-1?t:t.slice(0,i)}},2500:(t,r)=>{"use strict";r.name=new Map([["0","File"],["","OldFile"],["1","Link"],["2","SymbolicLink"],["3","CharacterDevice"],["4","BlockDevice"],["5","Directory"],["6","FIFO"],["7","ContiguousFile"],["g","GlobalExtendedHeader"],["x","ExtendedHeader"],["A","SolarisACL"],["D","GNUDumpDir"],["I","Inode"],["K","NextFileHasLongLinkpath"],["L","NextFileHasLongPath"],["M","ContinuationFile"],["N","OldGnuLongPath"],["S","SparseFile"],["V","TapeVolumeHeader"],["X","OldExtendedHeader"]]);r.code=new Map(Array.from(r.name).map((t=>[t[1],t[0]])))},1634:(t,r,i)=>{"use strict";const o=i(9491);const a=i(6474);const u=i(7147);const l=i(3597);const h=i(1017);const p=i(6790);const d=i(4465);const m=i(1891);const g=i(8047);const y=i(5536);const A=i(422);const b=i(4462);const v=Symbol("onEntry");const E=Symbol("checkFs");const w=Symbol("checkFs2");const _=Symbol("pruneCache");const S=Symbol("isReusable");const C=Symbol("makeFs");const D=Symbol("file");const x=Symbol("directory");const R=Symbol("link");const O=Symbol("symlink");const k=Symbol("hardlink");const P=Symbol("unsupported");const T=Symbol("checkPath");const L=Symbol("mkdir");const I=Symbol("onError");const M=Symbol("pending");const B=Symbol("pend");const N=Symbol("unpend");const $=Symbol("ended");const j=Symbol("maybeClose");const H=Symbol("skip");const G=Symbol("doChown");const U=Symbol("uid");const W=Symbol("gid");const z=Symbol("checkedCwd");const Y=i(6113);const V=i(5868);const Q=process.env.TESTING_TAR_FAKE_PLATFORM||process.platform;const K=Q==="win32";const X=1024;const unlinkFile=(t,r)=>{if(!K){return u.unlink(t,r)}const i=t+".DELETE."+Y.randomBytes(16).toString("hex");u.rename(t,i,(t=>{if(t){return r(t)}u.unlink(i,r)}))};const unlinkFileSync=t=>{if(!K){return u.unlinkSync(t)}const r=t+".DELETE."+Y.randomBytes(16).toString("hex");u.renameSync(t,r);u.unlinkSync(r)};const uint32=(t,r,i)=>t===t>>>0?t:r===r>>>0?r:i;const cacheKeyNormalize=t=>A(y(b(t))).toLowerCase();const pruneCache=(t,r)=>{r=cacheKeyNormalize(r);for(const i of t.keys()){const o=cacheKeyNormalize(i);if(o===r||o.indexOf(r+"/")===0){t.delete(i)}}};const dropCache=t=>{for(const r of t.keys()){t.delete(r)}};class Unpack extends a{constructor(t){if(!t){t={}}t.ondone=t=>{this[$]=true;this[j]()};super(t);this[z]=false;this.reservations=m();this.transform=typeof t.transform==="function"?t.transform:null;this.writable=true;this.readable=false;this[M]=0;this[$]=false;this.dirCache=t.dirCache||new Map;if(typeof t.uid==="number"||typeof t.gid==="number"){if(typeof t.uid!=="number"||typeof t.gid!=="number"){throw new TypeError("cannot set owner without number uid and gid")}if(t.preserveOwner){throw new TypeError("cannot preserve owner in archive and also set owner explicitly")}this.uid=t.uid;this.gid=t.gid;this.setOwner=true}else{this.uid=null;this.gid=null;this.setOwner=false}if(t.preserveOwner===undefined&&typeof t.uid!=="number"){this.preserveOwner=process.getuid&&process.getuid()===0}else{this.preserveOwner=!!t.preserveOwner}this.processUid=(this.preserveOwner||this.setOwner)&&process.getuid?process.getuid():null;this.processGid=(this.preserveOwner||this.setOwner)&&process.getgid?process.getgid():null;this.maxDepth=typeof t.maxDepth==="number"?t.maxDepth:X;this.forceChown=t.forceChown===true;this.win32=!!t.win32||K;this.newer=!!t.newer;this.keep=!!t.keep;this.noMtime=!!t.noMtime;this.preservePaths=!!t.preservePaths;this.unlink=!!t.unlink;this.cwd=y(h.resolve(t.cwd||process.cwd()));this.strip=+t.strip||0;this.processUmask=t.noChmod?0:process.umask();this.umask=typeof t.umask==="number"?t.umask:this.processUmask;this.dmode=t.dmode||511&~this.umask;this.fmode=t.fmode||438&~this.umask;this.on("entry",(t=>this[v](t)))}warn(t,r,i={}){if(t==="TAR_BAD_ARCHIVE"||t==="TAR_ABORT"){i.recoverable=false}return super.warn(t,r,i)}[j](){if(this[$]&&this[M]===0){this.emit("prefinish");this.emit("finish");this.emit("end")}}[T](t){const r=y(t.path);const i=r.split("/");if(this.strip){if(i.length<this.strip){return false}if(t.type==="Link"){const r=y(t.linkpath).split("/");if(r.length>=this.strip){t.linkpath=r.slice(this.strip).join("/")}else{return false}}i.splice(0,this.strip);t.path=i.join("/")}if(isFinite(this.maxDepth)&&i.length>this.maxDepth){this.warn("TAR_ENTRY_ERROR","path excessively deep",{entry:t,path:r,depth:i.length,maxDepth:this.maxDepth});return false}if(!this.preservePaths){if(i.includes("..")||K&&/^[a-z]:\.\.$/i.test(i[0])){this.warn("TAR_ENTRY_ERROR",`path contains '..'`,{entry:t,path:r});return false}const[o,a]=g(r);if(o){t.path=a;this.warn("TAR_ENTRY_INFO",`stripping ${o} from absolute path`,{entry:t,path:r})}}if(h.isAbsolute(t.path)){t.absolute=y(h.resolve(t.path))}else{t.absolute=y(h.resolve(this.cwd,t.path))}if(!this.preservePaths&&t.absolute.indexOf(this.cwd+"/")!==0&&t.absolute!==this.cwd){this.warn("TAR_ENTRY_ERROR","path escaped extraction target",{entry:t,path:y(t.path),resolvedPath:t.absolute,cwd:this.cwd});return false}if(t.absolute===this.cwd&&t.type!=="Directory"&&t.type!=="GNUDumpDir"){return false}if(this.win32){const{root:r}=h.win32.parse(t.absolute);t.absolute=r+d.encode(t.absolute.slice(r.length));const{root:i}=h.win32.parse(t.path);t.path=i+d.encode(t.path.slice(i.length))}return true}[v](t){if(!this[T](t)){return t.resume()}o.equal(typeof t.absolute,"string");switch(t.type){case"Directory":case"GNUDumpDir":if(t.mode){t.mode=t.mode|448}case"File":case"OldFile":case"ContiguousFile":case"Link":case"SymbolicLink":return this[E](t);case"CharacterDevice":case"BlockDevice":case"FIFO":default:return this[P](t)}}[I](t,r){if(t.name==="CwdError"){this.emit("error",t)}else{this.warn("TAR_ENTRY_ERROR",t,{entry:r});this[N]();r.resume()}}[L](t,r,i){p(y(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r,noChmod:this.noChmod},i)}[G](t){return this.forceChown||this.preserveOwner&&(typeof t.uid==="number"&&t.uid!==this.processUid||typeof t.gid==="number"&&t.gid!==this.processGid)||(typeof this.uid==="number"&&this.uid!==this.processUid||typeof this.gid==="number"&&this.gid!==this.processGid)}[U](t){return uint32(this.uid,t.uid,this.processUid)}[W](t){return uint32(this.gid,t.gid,this.processGid)}[D](t,r){const i=t.mode&4095||this.fmode;const o=new l.WriteStream(t.absolute,{flags:V(t.size),mode:i,autoClose:false});o.on("error",(i=>{if(o.fd){u.close(o.fd,(()=>{}))}o.write=()=>true;this[I](i,t);r()}));let a=1;const done=i=>{if(i){if(o.fd){u.close(o.fd,(()=>{}))}this[I](i,t);r();return}if(--a===0){u.close(o.fd,(i=>{if(i){this[I](i,t)}else{this[N]()}r()}))}};o.on("finish",(r=>{const i=t.absolute;const l=o.fd;if(t.mtime&&!this.noMtime){a++;const r=t.atime||new Date;const o=t.mtime;u.futimes(l,r,o,(t=>t?u.utimes(i,r,o,(r=>done(r&&t))):done()))}if(this[G](t)){a++;const r=this[U](t);const o=this[W](t);u.fchown(l,r,o,(t=>t?u.chown(i,r,o,(r=>done(r&&t))):done()))}done()}));const h=this.transform?this.transform(t)||t:t;if(h!==t){h.on("error",(i=>{this[I](i,t);r()}));t.pipe(h)}h.pipe(o)}[x](t,r){const i=t.mode&4095||this.dmode;this[L](t.absolute,i,(i=>{if(i){this[I](i,t);r();return}let o=1;const done=i=>{if(--o===0){r();this[N]();t.resume()}};if(t.mtime&&!this.noMtime){o++;u.utimes(t.absolute,t.atime||new Date,t.mtime,done)}if(this[G](t)){o++;u.chown(t.absolute,this[U](t),this[W](t),done)}done()}))}[P](t){t.unsupported=true;this.warn("TAR_ENTRY_UNSUPPORTED",`unsupported entry type: ${t.type}`,{entry:t});t.resume()}[O](t,r){this[R](t,t.linkpath,"symlink",r)}[k](t,r){const i=y(h.resolve(this.cwd,t.linkpath));this[R](t,i,"link",r)}[B](){this[M]++}[N](){this[M]--;this[j]()}[H](t){this[N]();t.resume()}[S](t,r){return t.type==="File"&&!this.unlink&&r.isFile()&&r.nlink<=1&&!K}[E](t){this[B]();const r=[t.path];if(t.linkpath){r.push(t.linkpath)}this.reservations.reserve(r,(r=>this[w](t,r)))}[_](t){if(t.type==="SymbolicLink"){dropCache(this.dirCache)}else if(t.type!=="Directory"){pruneCache(this.dirCache,t.absolute)}}[w](t,r){this[_](t);const done=i=>{this[_](t);r(i)};const checkCwd=()=>{this[L](this.cwd,this.dmode,(r=>{if(r){this[I](r,t);done();return}this[z]=true;start()}))};const start=()=>{if(t.absolute!==this.cwd){const r=y(h.dirname(t.absolute));if(r!==this.cwd){return this[L](r,this.dmode,(r=>{if(r){this[I](r,t);done();return}afterMakeParent()}))}}afterMakeParent()};const afterMakeParent=()=>{u.lstat(t.absolute,((r,i)=>{if(i&&(this.keep||this.newer&&i.mtime>t.mtime)){this[H](t);done();return}if(r||this[S](t,i)){return this[C](null,t,done)}if(i.isDirectory()){if(t.type==="Directory"){const r=!this.noChmod&&t.mode&&(i.mode&4095)!==t.mode;const afterChmod=r=>this[C](r,t,done);if(!r){return afterChmod()}return u.chmod(t.absolute,t.mode,afterChmod)}if(t.absolute!==this.cwd){return u.rmdir(t.absolute,(r=>this[C](r,t,done)))}}if(t.absolute===this.cwd){return this[C](null,t,done)}unlinkFile(t.absolute,(r=>this[C](r,t,done)))}))};if(this[z]){start()}else{checkCwd()}}[C](t,r,i){if(t){this[I](t,r);i();return}switch(r.type){case"File":case"OldFile":case"ContiguousFile":return this[D](r,i);case"Link":return this[k](r,i);case"SymbolicLink":return this[O](r,i);case"Directory":case"GNUDumpDir":return this[x](r,i)}}[R](t,r,i,o){u[i](r,t.absolute,(r=>{if(r){this[I](r,t)}else{this[N]();t.resume()}o()}))}}const callSync=t=>{try{return[null,t()]}catch(t){return[t,null]}};class UnpackSync extends Unpack{[C](t,r){return super[C](t,r,(()=>{}))}[E](t){this[_](t);if(!this[z]){const r=this[L](this.cwd,this.dmode);if(r){return this[I](r,t)}this[z]=true}if(t.absolute!==this.cwd){const r=y(h.dirname(t.absolute));if(r!==this.cwd){const i=this[L](r,this.dmode);if(i){return this[I](i,t)}}}const[r,i]=callSync((()=>u.lstatSync(t.absolute)));if(i&&(this.keep||this.newer&&i.mtime>t.mtime)){return this[H](t)}if(r||this[S](t,i)){return this[C](null,t)}if(i.isDirectory()){if(t.type==="Directory"){const r=!this.noChmod&&t.mode&&(i.mode&4095)!==t.mode;const[o]=r?callSync((()=>{u.chmodSync(t.absolute,t.mode)})):[];return this[C](o,t)}const[r]=callSync((()=>u.rmdirSync(t.absolute)));this[C](r,t)}const[o]=t.absolute===this.cwd?[]:callSync((()=>unlinkFileSync(t.absolute)));this[C](o,t)}[D](t,r){const i=t.mode&4095||this.fmode;const oner=i=>{let a;try{u.closeSync(o)}catch(t){a=t}if(i||a){this[I](i||a,t)}r()};let o;try{o=u.openSync(t.absolute,V(t.size),i)}catch(t){return oner(t)}const a=this.transform?this.transform(t)||t:t;if(a!==t){a.on("error",(r=>this[I](r,t)));t.pipe(a)}a.on("data",(t=>{try{u.writeSync(o,t,0,t.length)}catch(t){oner(t)}}));a.on("end",(r=>{let i=null;if(t.mtime&&!this.noMtime){const r=t.atime||new Date;const a=t.mtime;try{u.futimesSync(o,r,a)}catch(o){try{u.utimesSync(t.absolute,r,a)}catch(t){i=o}}}if(this[G](t)){const r=this[U](t);const a=this[W](t);try{u.fchownSync(o,r,a)}catch(o){try{u.chownSync(t.absolute,r,a)}catch(t){i=i||o}}}oner(i)}))}[x](t,r){const i=t.mode&4095||this.dmode;const o=this[L](t.absolute,i);if(o){this[I](o,t);r();return}if(t.mtime&&!this.noMtime){try{u.utimesSync(t.absolute,t.atime||new Date,t.mtime)}catch(o){}}if(this[G](t)){try{u.chownSync(t.absolute,this[U](t),this[W](t))}catch(o){}}r();t.resume()}[L](t,r){try{return p.sync(y(t),{uid:this.uid,gid:this.gid,processUid:this.processUid,processGid:this.processGid,umask:this.processUmask,preserve:this.preservePaths,unlink:this.unlink,cache:this.dirCache,cwd:this.cwd,mode:r})}catch(t){return t}}[R](t,r,i,o){try{u[i+"Sync"](r,t.absolute);o();t.resume()}catch(r){return this[I](r,t)}}}Unpack.Sync=UnpackSync;t.exports=Unpack},4437:(t,r,i)=>{"use strict";const o=i(4976);const a=i(6133);t.exports=(t,r,i)=>{const u=o(t);if(!u.file){throw new TypeError("file is required")}if(u.gzip||u.brotli||u.file.endsWith(".br")||u.file.endsWith(".tbr")){throw new TypeError("cannot append to compressed archives")}if(!r||!Array.isArray(r)||!r.length){throw new TypeError("no files or directories specified")}r=Array.from(r);mtimeFilter(u);return a(u,r,i)};const mtimeFilter=t=>{const r=t.filter;if(!t.mtimeCache){t.mtimeCache=new Map}t.filter=r?(i,o)=>r(i,o)&&!(t.mtimeCache.get(i)>o.mtime):(r,i)=>!(t.mtimeCache.get(r)>i.mtime)}},4239:t=>{"use strict";t.exports=t=>class extends t{warn(t,r,i={}){if(this.file){i.file=this.file}if(this.cwd){i.cwd=this.cwd}i.code=r instanceof Error&&r.code||t;i.tarCode=t;if(!this.strict&&i.recoverable!==false){if(r instanceof Error){i=Object.assign(r,i);r=r.message}this.emit("warn",i.tarCode,r,i)}else if(r instanceof Error){this.emit("error",Object.assign(r,i))}else{this.emit("error",Object.assign(new Error(`${t}: ${r}`),i))}}}},4465:t=>{"use strict";const r=["|","<",">","?",":"];const i=r.map((t=>String.fromCharCode(61440+t.charCodeAt(0))));const o=new Map(r.map(((t,r)=>[t,i[r]])));const a=new Map(i.map(((t,i)=>[t,r[i]])));t.exports={encode:t=>r.reduce(((t,r)=>t.split(r).join(o.get(r))),t),decode:t=>i.reduce(((t,r)=>t.split(r).join(a.get(r))),t)}},2435:(t,r,i)=>{"use strict";const{Minipass:o}=i(6047);const a=i(3179);const u=i(1815);const l=i(7147);const h=i(1017);const p=i(5536);const d=i(422);const prefixPath=(t,r)=>{if(!r){return p(t)}t=p(t).replace(/^\.(\/|$)/,"");return d(r)+"/"+t};const m=16*1024*1024;const g=Symbol("process");const y=Symbol("file");const A=Symbol("directory");const b=Symbol("symlink");const v=Symbol("hardlink");const E=Symbol("header");const w=Symbol("read");const _=Symbol("lstat");const S=Symbol("onlstat");const C=Symbol("onread");const D=Symbol("onreadlink");const x=Symbol("openfile");const R=Symbol("onopenfile");const O=Symbol("close");const k=Symbol("mode");const P=Symbol("awaitDrain");const T=Symbol("ondrain");const L=Symbol("prefix");const I=Symbol("hadError");const M=i(4239);const B=i(4465);const N=i(8047);const $=i(2701);const j=M(class WriteEntry extends o{constructor(t,r){r=r||{};super(r);if(typeof t!=="string"){throw new TypeError("path is required")}this.path=p(t);this.portable=!!r.portable;this.myuid=process.getuid&&process.getuid()||0;this.myuser=process.env.USER||"";this.maxReadSize=r.maxReadSize||m;this.linkCache=r.linkCache||new Map;this.statCache=r.statCache||new Map;this.preservePaths=!!r.preservePaths;this.cwd=p(r.cwd||process.cwd());this.strict=!!r.strict;this.noPax=!!r.noPax;this.noMtime=!!r.noMtime;this.mtime=r.mtime||null;this.prefix=r.prefix?p(r.prefix):null;this.fd=null;this.blockLen=null;this.blockRemain=null;this.buf=null;this.offset=null;this.length=null;this.pos=null;this.remain=null;if(typeof r.onwarn==="function"){this.on("warn",r.onwarn)}let i=false;if(!this.preservePaths){const[t,r]=N(this.path);if(t){this.path=r;i=t}}this.win32=!!r.win32||process.platform==="win32";if(this.win32){this.path=B.decode(this.path.replace(/\\/g,"/"));t=t.replace(/\\/g,"/")}this.absolute=p(r.absolute||h.resolve(this.cwd,t));if(this.path===""){this.path="./"}if(i){this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path})}if(this.statCache.has(this.absolute)){this[S](this.statCache.get(this.absolute))}else{this[_]()}}emit(t,...r){if(t==="error"){this[I]=true}return super.emit(t,...r)}[_](){l.lstat(this.absolute,((t,r)=>{if(t){return this.emit("error",t)}this[S](r)}))}[S](t){this.statCache.set(this.absolute,t);this.stat=t;if(!t.isFile()){t.size=0}this.type=getType(t);this.emit("stat",t);this[g]()}[g](){switch(this.type){case"File":return this[y]();case"Directory":return this[A]();case"SymbolicLink":return this[b]();default:return this.end()}}[k](t){return $(t,this.type==="Directory",this.portable)}[L](t){return prefixPath(t,this.prefix)}[E](){if(this.type==="Directory"&&this.portable){this.noMtime=true}this.header=new u({path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,mode:this[k](this.stat.mode),uid:this.portable?null:this.stat.uid,gid:this.portable?null:this.stat.gid,size:this.stat.size,mtime:this.noMtime?null:this.mtime||this.stat.mtime,type:this.type,uname:this.portable?null:this.stat.uid===this.myuid?this.myuser:"",atime:this.portable?null:this.stat.atime,ctime:this.portable?null:this.stat.ctime});if(this.header.encode()&&!this.noPax){super.write(new a({atime:this.portable?null:this.header.atime,ctime:this.portable?null:this.header.ctime,gid:this.portable?null:this.header.gid,mtime:this.noMtime?null:this.mtime||this.header.mtime,path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,size:this.header.size,uid:this.portable?null:this.header.uid,uname:this.portable?null:this.header.uname,dev:this.portable?null:this.stat.dev,ino:this.portable?null:this.stat.ino,nlink:this.portable?null:this.stat.nlink}).encode())}super.write(this.header.block)}[A](){if(this.path.slice(-1)!=="/"){this.path+="/"}this.stat.size=0;this[E]();this.end()}[b](){l.readlink(this.absolute,((t,r)=>{if(t){return this.emit("error",t)}this[D](r)}))}[D](t){this.linkpath=p(t);this[E]();this.end()}[v](t){this.type="Link";this.linkpath=p(h.relative(this.cwd,t));this.stat.size=0;this[E]();this.end()}[y](){if(this.stat.nlink>1){const t=this.stat.dev+":"+this.stat.ino;if(this.linkCache.has(t)){const r=this.linkCache.get(t);if(r.indexOf(this.cwd)===0){return this[v](r)}}this.linkCache.set(t,this.absolute)}this[E]();if(this.stat.size===0){return this.end()}this[x]()}[x](){l.open(this.absolute,"r",((t,r)=>{if(t){return this.emit("error",t)}this[R](r)}))}[R](t){this.fd=t;if(this[I]){return this[O]()}this.blockLen=512*Math.ceil(this.stat.size/512);this.blockRemain=this.blockLen;const r=Math.min(this.blockLen,this.maxReadSize);this.buf=Buffer.allocUnsafe(r);this.offset=0;this.pos=0;this.remain=this.stat.size;this.length=this.buf.length;this[w]()}[w](){const{fd:t,buf:r,offset:i,length:o,pos:a}=this;l.read(t,r,i,o,a,((t,r)=>{if(t){return this[O]((()=>this.emit("error",t)))}this[C](r)}))}[O](t){l.close(this.fd,t)}[C](t){if(t<=0&&this.remain>0){const t=new Error("encountered unexpected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[O]((()=>this.emit("error",t)))}if(t>this.remain){const t=new Error("did not encounter expected EOF");t.path=this.absolute;t.syscall="read";t.code="EOF";return this[O]((()=>this.emit("error",t)))}if(t===this.remain){for(let r=t;r<this.length&&t<this.blockRemain;r++){this.buf[r+this.offset]=0;t++;this.remain++}}const r=this.offset===0&&t===this.buf.length?this.buf:this.buf.slice(this.offset,this.offset+t);const i=this.write(r);if(!i){this[P]((()=>this[T]()))}else{this[T]()}}[P](t){this.once("drain",t)}write(t){if(this.blockRemain<t.length){const t=new Error("writing more data than expected");t.path=this.absolute;return this.emit("error",t)}this.remain-=t.length;this.blockRemain-=t.length;this.pos+=t.length;this.offset+=t.length;return super.write(t)}[T](){if(!this.remain){if(this.blockRemain){super.write(Buffer.alloc(this.blockRemain))}return this[O]((t=>t?this.emit("error",t):this.end()))}if(this.offset>=this.length){this.buf=Buffer.allocUnsafe(Math.min(this.blockRemain,this.buf.length));this.offset=0}this.length=this.buf.length-this.offset;this[w]()}});class WriteEntrySync extends j{[_](){this[S](l.lstatSync(this.absolute))}[b](){this[D](l.readlinkSync(this.absolute))}[x](){this[R](l.openSync(this.absolute,"r"))}[w](){let t=true;try{const{fd:r,buf:i,offset:o,length:a,pos:u}=this;const h=l.readSync(r,i,o,a,u);this[C](h);t=false}finally{if(t){try{this[O]((()=>{}))}catch(t){}}}}[P](t){t()}[O](t){l.closeSync(this.fd);t()}}const H=M(class WriteEntryTar extends o{constructor(t,r){r=r||{};super(r);this.preservePaths=!!r.preservePaths;this.portable=!!r.portable;this.strict=!!r.strict;this.noPax=!!r.noPax;this.noMtime=!!r.noMtime;this.readEntry=t;this.type=t.type;if(this.type==="Directory"&&this.portable){this.noMtime=true}this.prefix=r.prefix||null;this.path=p(t.path);this.mode=this[k](t.mode);this.uid=this.portable?null:t.uid;this.gid=this.portable?null:t.gid;this.uname=this.portable?null:t.uname;this.gname=this.portable?null:t.gname;this.size=t.size;this.mtime=this.noMtime?null:r.mtime||t.mtime;this.atime=this.portable?null:t.atime;this.ctime=this.portable?null:t.ctime;this.linkpath=p(t.linkpath);if(typeof r.onwarn==="function"){this.on("warn",r.onwarn)}let i=false;if(!this.preservePaths){const[t,r]=N(this.path);if(t){this.path=r;i=t}}this.remain=t.size;this.blockRemain=t.startBlockSize;this.header=new u({path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,mode:this.mode,uid:this.portable?null:this.uid,gid:this.portable?null:this.gid,size:this.size,mtime:this.noMtime?null:this.mtime,type:this.type,uname:this.portable?null:this.uname,atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime});if(i){this.warn("TAR_ENTRY_INFO",`stripping ${i} from absolute path`,{entry:this,path:i+this.path})}if(this.header.encode()&&!this.noPax){super.write(new a({atime:this.portable?null:this.atime,ctime:this.portable?null:this.ctime,gid:this.portable?null:this.gid,mtime:this.noMtime?null:this.mtime,path:this[L](this.path),linkpath:this.type==="Link"?this[L](this.linkpath):this.linkpath,size:this.size,uid:this.portable?null:this.uid,uname:this.portable?null:this.uname,dev:this.portable?null:this.readEntry.dev,ino:this.portable?null:this.readEntry.ino,nlink:this.portable?null:this.readEntry.nlink}).encode())}super.write(this.header.block);t.pipe(this)}[L](t){return prefixPath(t,this.prefix)}[k](t){return $(t,this.type==="Directory",this.portable)}write(t){const r=t.length;if(r>this.blockRemain){throw new Error("writing more to entry than is appropriate")}this.blockRemain-=r;return super.write(t)}end(){if(this.blockRemain){super.write(Buffer.alloc(this.blockRemain))}return super.end()}});j.Sync=WriteEntrySync;j.Tar=H;const getType=t=>t.isFile()?"File":t.isDirectory()?"Directory":t.isSymbolicLink()?"SymbolicLink":"Unsupported";t.exports=j},5649:(t,r,i)=>{"use strict";const o=i(7147);const a=i(1017);const u=o.lchown?"lchown":"chown";const l=o.lchownSync?"lchownSync":"chownSync";const h=o.lchown&&!process.version.match(/v1[1-9]+\./)&&!process.version.match(/v10\.[6-9]/);const lchownSync=(t,r,i)=>{try{return o[l](t,r,i)}catch(t){if(t.code!=="ENOENT")throw t}};const chownSync=(t,r,i)=>{try{return o.chownSync(t,r,i)}catch(t){if(t.code!=="ENOENT")throw t}};const p=h?(t,r,i,a)=>u=>{if(!u||u.code!=="EISDIR")a(u);else o.chown(t,r,i,a)}:(t,r,i,o)=>o;const d=h?(t,r,i)=>{try{return lchownSync(t,r,i)}catch(o){if(o.code!=="EISDIR")throw o;chownSync(t,r,i)}}:(t,r,i)=>lchownSync(t,r,i);const m=process.version;let readdir=(t,r,i)=>o.readdir(t,r,i);let readdirSync=(t,r)=>o.readdirSync(t,r);if(/^v4\./.test(m))readdir=(t,r,i)=>o.readdir(t,i);const chown=(t,r,i,a)=>{o[u](t,r,i,p(t,r,i,(t=>{a(t&&t.code!=="ENOENT"?t:null)})))};const chownrKid=(t,r,i,u,l)=>{if(typeof r==="string")return o.lstat(a.resolve(t,r),((o,a)=>{if(o)return l(o.code!=="ENOENT"?o:null);a.name=r;chownrKid(t,a,i,u,l)}));if(r.isDirectory()){chownr(a.resolve(t,r.name),i,u,(o=>{if(o)return l(o);const h=a.resolve(t,r.name);chown(h,i,u,l)}))}else{const o=a.resolve(t,r.name);chown(o,i,u,l)}};const chownr=(t,r,i,o)=>{readdir(t,{withFileTypes:true},((a,u)=>{if(a){if(a.code==="ENOENT")return o();else if(a.code!=="ENOTDIR"&&a.code!=="ENOTSUP")return o(a)}if(a||!u.length)return chown(t,r,i,o);let l=u.length;let h=null;const then=a=>{if(h)return;if(a)return o(h=a);if(--l===0)return chown(t,r,i,o)};u.forEach((o=>chownrKid(t,o,r,i,then)))}))};const chownrKidSync=(t,r,i,u)=>{if(typeof r==="string"){try{const i=o.lstatSync(a.resolve(t,r));i.name=r;r=i}catch(t){if(t.code==="ENOENT")return;else throw t}}if(r.isDirectory())chownrSync(a.resolve(t,r.name),i,u);d(a.resolve(t,r.name),i,u)};const chownrSync=(t,r,i)=>{let o;try{o=readdirSync(t,{withFileTypes:true})}catch(o){if(o.code==="ENOENT")return;else if(o.code==="ENOTDIR"||o.code==="ENOTSUP")return d(t,r,i);else throw o}if(o&&o.length)o.forEach((o=>chownrKidSync(t,o,r,i)));return d(t,r,i)};t.exports=chownr;chownr.sync=chownrSync},6047:(t,r,i)=>{"use strict";const o=typeof process==="object"&&process?process:{stdout:null,stderr:null};const a=i(2361);const u=i(2781);const l=i(1576);const h=l.StringDecoder;const p=Symbol("EOF");const d=Symbol("maybeEmitEnd");const m=Symbol("emittedEnd");const g=Symbol("emittingEnd");const y=Symbol("emittedError");const A=Symbol("closed");const b=Symbol("read");const v=Symbol("flush");const E=Symbol("flushChunk");const w=Symbol("encoding");const _=Symbol("decoder");const S=Symbol("flowing");const C=Symbol("paused");const D=Symbol("resume");const x=Symbol("buffer");const R=Symbol("pipes");const O=Symbol("bufferLength");const k=Symbol("bufferPush");const P=Symbol("bufferShift");const T=Symbol("objectMode");const L=Symbol("destroyed");const I=Symbol("error");const M=Symbol("emitData");const B=Symbol("emitEnd");const N=Symbol("emitEnd2");const $=Symbol("async");const j=Symbol("abort");const H=Symbol("aborted");const G=Symbol("signal");const defer=t=>Promise.resolve().then(t);const U=global._MP_NO_ITERATOR_SYMBOLS_!=="1";const W=U&&Symbol.asyncIterator||Symbol("asyncIterator not implemented");const z=U&&Symbol.iterator||Symbol("iterator not implemented");const isEndish=t=>t==="end"||t==="finish"||t==="prefinish";const isArrayBuffer=t=>t instanceof ArrayBuffer||typeof t==="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0;const isArrayBufferView=t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t);class Pipe{constructor(t,r,i){this.src=t;this.dest=r;this.opts=i;this.ondrain=()=>t[D]();r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(t,r,i){super(t,r,i);this.proxyErrors=t=>r.emit("error",t);t.on("error",this.proxyErrors)}}class Minipass extends u{constructor(t){super();this[S]=false;this[C]=false;this[R]=[];this[x]=[];this[T]=t&&t.objectMode||false;if(this[T])this[w]=null;else this[w]=t&&t.encoding||null;if(this[w]==="buffer")this[w]=null;this[$]=t&&!!t.async||false;this[_]=this[w]?new h(this[w]):null;this[p]=false;this[m]=false;this[g]=false;this[A]=false;this[y]=null;this.writable=true;this.readable=true;this[O]=0;this[L]=false;if(t&&t.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[x]})}if(t&&t.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[R]})}this[G]=t&&t.signal;this[H]=false;if(this[G]){this[G].addEventListener("abort",(()=>this[j]()));if(this[G].aborted){this[j]()}}}get bufferLength(){return this[O]}get encoding(){return this[w]}set encoding(t){if(this[T])throw new Error("cannot set encoding in objectMode");if(this[w]&&t!==this[w]&&(this[_]&&this[_].lastNeed||this[O]))throw new Error("cannot change encoding");if(this[w]!==t){this[_]=t?new h(t):null;if(this[x].length)this[x]=this[x].map((t=>this[_].write(t)))}this[w]=t}setEncoding(t){this.encoding=t}get objectMode(){return this[T]}set objectMode(t){this[T]=this[T]||!!t}get["async"](){return this[$]}set["async"](t){this[$]=this[$]||!!t}[j](){this[H]=true;this.emit("abort",this[G].reason);this.destroy(this[G].reason)}get aborted(){return this[H]}set aborted(t){}write(t,r,i){if(this[H])return false;if(this[p])throw new Error("write after end");if(this[L]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof r==="function")i=r,r="utf8";if(!r)r="utf8";const o=this[$]?defer:t=>t();if(!this[T]&&!Buffer.isBuffer(t)){if(isArrayBufferView(t))t=Buffer.from(t.buffer,t.byteOffset,t.byteLength);else if(isArrayBuffer(t))t=Buffer.from(t);else if(typeof t!=="string")this.objectMode=true}if(this[T]){if(this.flowing&&this[O]!==0)this[v](true);if(this.flowing)this.emit("data",t);else this[k](t);if(this[O]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(!t.length){if(this[O]!==0)this.emit("readable");if(i)o(i);return this.flowing}if(typeof t==="string"&&!(r===this[w]&&!this[_].lastNeed)){t=Buffer.from(t,r)}if(Buffer.isBuffer(t)&&this[w])t=this[_].write(t);if(this.flowing&&this[O]!==0)this[v](true);if(this.flowing)this.emit("data",t);else this[k](t);if(this[O]!==0)this.emit("readable");if(i)o(i);return this.flowing}read(t){if(this[L])return null;if(this[O]===0||t===0||t>this[O]){this[d]();return null}if(this[T])t=null;if(this[x].length>1&&!this[T]){if(this.encoding)this[x]=[this[x].join("")];else this[x]=[Buffer.concat(this[x],this[O])]}const r=this[b](t||null,this[x][0]);this[d]();return r}[b](t,r){if(t===r.length||t===null)this[P]();else{this[x][0]=r.slice(t);r=r.slice(0,t);this[O]-=t}this.emit("data",r);if(!this[x].length&&!this[p])this.emit("drain");return r}end(t,r,i){if(typeof t==="function")i=t,t=null;if(typeof r==="function")i=r,r="utf8";if(t)this.write(t,r);if(i)this.once("end",i);this[p]=true;this.writable=false;if(this.flowing||!this[C])this[d]();return this}[D](){if(this[L])return;this[C]=false;this[S]=true;this.emit("resume");if(this[x].length)this[v]();else if(this[p])this[d]();else this.emit("drain")}resume(){return this[D]()}pause(){this[S]=false;this[C]=true}get destroyed(){return this[L]}get flowing(){return this[S]}get paused(){return this[C]}[k](t){if(this[T])this[O]+=1;else this[O]+=t.length;this[x].push(t)}[P](){if(this[T])this[O]-=1;else this[O]-=this[x][0].length;return this[x].shift()}[v](t){do{}while(this[E](this[P]())&&this[x].length);if(!t&&!this[x].length&&!this[p])this.emit("drain")}[E](t){this.emit("data",t);return this.flowing}pipe(t,r){if(this[L])return;const i=this[m];r=r||{};if(t===o.stdout||t===o.stderr)r.end=false;else r.end=r.end!==false;r.proxyErrors=!!r.proxyErrors;if(i){if(r.end)t.end()}else{this[R].push(!r.proxyErrors?new Pipe(this,t,r):new PipeProxyErrors(this,t,r));if(this[$])defer((()=>this[D]()));else this[D]()}return t}unpipe(t){const r=this[R].find((r=>r.dest===t));if(r){this[R].splice(this[R].indexOf(r),1);r.unpipe()}}addListener(t,r){return this.on(t,r)}on(t,r){const i=super.on(t,r);if(t==="data"&&!this[R].length&&!this.flowing)this[D]();else if(t==="readable"&&this[O]!==0)super.emit("readable");else if(isEndish(t)&&this[m]){super.emit(t);this.removeAllListeners(t)}else if(t==="error"&&this[y]){if(this[$])defer((()=>r.call(this,this[y])));else r.call(this,this[y])}return i}get emittedEnd(){return this[m]}[d](){if(!this[g]&&!this[m]&&!this[L]&&this[x].length===0&&this[p]){this[g]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[A])this.emit("close");this[g]=false}}emit(t,r,...i){if(t!=="error"&&t!=="close"&&t!==L&&this[L])return;else if(t==="data"){return!this[T]&&!r?false:this[$]?defer((()=>this[M](r))):this[M](r)}else if(t==="end"){return this[B]()}else if(t==="close"){this[A]=true;if(!this[m]&&!this[L])return;const t=super.emit("close");this.removeAllListeners("close");return t}else if(t==="error"){this[y]=r;super.emit(I,r);const t=!this[G]||this.listeners("error").length?super.emit("error",r):false;this[d]();return t}else if(t==="resume"){const t=super.emit("resume");this[d]();return t}else if(t==="finish"||t==="prefinish"){const r=super.emit(t);this.removeAllListeners(t);return r}const o=super.emit(t,r,...i);this[d]();return o}[M](t){for(const r of this[R]){if(r.dest.write(t)===false)this.pause()}const r=super.emit("data",t);this[d]();return r}[B](){if(this[m])return;this[m]=true;this.readable=false;if(this[$])defer((()=>this[N]()));else this[N]()}[N](){if(this[_]){const t=this[_].end();if(t){for(const r of this[R]){r.dest.write(t)}super.emit("data",t)}}for(const t of this[R]){t.end()}const t=super.emit("end");this.removeAllListeners("end");return t}collect(){const t=[];if(!this[T])t.dataLength=0;const r=this.promise();this.on("data",(r=>{t.push(r);if(!this[T])t.dataLength+=r.length}));return r.then((()=>t))}concat(){return this[T]?Promise.reject(new Error("cannot concat in objectMode")):this.collect().then((t=>this[T]?Promise.reject(new Error("cannot concat in objectMode")):this[w]?t.join(""):Buffer.concat(t,t.dataLength)))}promise(){return new Promise(((t,r)=>{this.on(L,(()=>r(new Error("stream destroyed"))));this.on("error",(t=>r(t)));this.on("end",(()=>t()))}))}[W](){let t=false;const stop=()=>{this.pause();t=true;return Promise.resolve({done:true})};const next=()=>{if(t)return stop();const r=this.read();if(r!==null)return Promise.resolve({done:false,value:r});if(this[p])return stop();let i=null;let o=null;const onerr=t=>{this.removeListener("data",ondata);this.removeListener("end",onend);this.removeListener(L,ondestroy);stop();o(t)};const ondata=t=>{this.removeListener("error",onerr);this.removeListener("end",onend);this.removeListener(L,ondestroy);this.pause();i({value:t,done:!!this[p]})};const onend=()=>{this.removeListener("error",onerr);this.removeListener("data",ondata);this.removeListener(L,ondestroy);stop();i({done:true})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((t,r)=>{o=r;i=t;this.once(L,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[W](){return this}}}[z](){let t=false;const stop=()=>{this.pause();this.removeListener(I,stop);this.removeListener(L,stop);this.removeListener("end",stop);t=true;return{done:true}};const next=()=>{if(t)return stop();const r=this.read();return r===null?stop():{value:r}};this.once("end",stop);this.once(I,stop);this.once(L,stop);return{next:next,throw:stop,return:stop,[z](){return this}}}destroy(t){if(this[L]){if(t)this.emit("error",t);else this.emit(L);return this}this[L]=true;this[x].length=0;this[O]=0;if(typeof this.close==="function"&&!this[A])this.close();if(t)this.emit("error",t);else this.emit(L);return this}static isStream(t){return!!t&&(t instanceof Minipass||t instanceof u||t instanceof a&&(typeof t.pipe==="function"||typeof t.write==="function"&&typeof t.end==="function"))}}r.Minipass=Minipass},4184:(t,r,i)=>{const o=i(9320);const a=i(5467);const{mkdirpNative:u,mkdirpNativeSync:l}=i(5625);const{mkdirpManual:h,mkdirpManualSync:p}=i(5124);const{useNative:d,useNativeSync:m}=i(628);const mkdirp=(t,r)=>{t=a(t);r=o(r);return d(r)?u(t,r):h(t,r)};const mkdirpSync=(t,r)=>{t=a(t);r=o(r);return m(r)?l(t,r):p(t,r)};mkdirp.sync=mkdirpSync;mkdirp.native=(t,r)=>u(a(t),o(r));mkdirp.manual=(t,r)=>h(a(t),o(r));mkdirp.nativeSync=(t,r)=>l(a(t),o(r));mkdirp.manualSync=(t,r)=>p(a(t),o(r));t.exports=mkdirp},9731:(t,r,i)=>{const{dirname:o}=i(1017);const findMade=(t,r,i=undefined)=>{if(i===r)return Promise.resolve();return t.statAsync(r).then((t=>t.isDirectory()?i:undefined),(i=>i.code==="ENOENT"?findMade(t,o(r),r):undefined))};const findMadeSync=(t,r,i=undefined)=>{if(i===r)return undefined;try{return t.statSync(r).isDirectory()?i:undefined}catch(i){return i.code==="ENOENT"?findMadeSync(t,o(r),r):undefined}};t.exports={findMade:findMade,findMadeSync:findMadeSync}},5124:(t,r,i)=>{const{dirname:o}=i(1017);const mkdirpManual=(t,r,i)=>{r.recursive=false;const a=o(t);if(a===t){return r.mkdirAsync(t,r).catch((t=>{if(t.code!=="EISDIR")throw t}))}return r.mkdirAsync(t,r).then((()=>i||t),(o=>{if(o.code==="ENOENT")return mkdirpManual(a,r).then((i=>mkdirpManual(t,r,i)));if(o.code!=="EEXIST"&&o.code!=="EROFS")throw o;return r.statAsync(t).then((t=>{if(t.isDirectory())return i;else throw o}),(()=>{throw o}))}))};const mkdirpManualSync=(t,r,i)=>{const a=o(t);r.recursive=false;if(a===t){try{return r.mkdirSync(t,r)}catch(t){if(t.code!=="EISDIR")throw t;else return}}try{r.mkdirSync(t,r);return i||t}catch(o){if(o.code==="ENOENT")return mkdirpManualSync(t,r,mkdirpManualSync(a,r,i));if(o.code!=="EEXIST"&&o.code!=="EROFS")throw o;try{if(!r.statSync(t).isDirectory())throw o}catch(t){throw o}}};t.exports={mkdirpManual:mkdirpManual,mkdirpManualSync:mkdirpManualSync}},5625:(t,r,i)=>{const{dirname:o}=i(1017);const{findMade:a,findMadeSync:u}=i(9731);const{mkdirpManual:l,mkdirpManualSync:h}=i(5124);const mkdirpNative=(t,r)=>{r.recursive=true;const i=o(t);if(i===t)return r.mkdirAsync(t,r);return a(r,t).then((i=>r.mkdirAsync(t,r).then((()=>i)).catch((i=>{if(i.code==="ENOENT")return l(t,r);else throw i}))))};const mkdirpNativeSync=(t,r)=>{r.recursive=true;const i=o(t);if(i===t)return r.mkdirSync(t,r);const a=u(r,t);try{r.mkdirSync(t,r);return a}catch(i){if(i.code==="ENOENT")return h(t,r);else throw i}};t.exports={mkdirpNative:mkdirpNative,mkdirpNativeSync:mkdirpNativeSync}},9320:(t,r,i)=>{const{promisify:o}=i(3837);const a=i(7147);const optsArg=t=>{if(!t)t={mode:511,fs:a};else if(typeof t==="object")t={mode:511,fs:a,...t};else if(typeof t==="number")t={mode:t,fs:a};else if(typeof t==="string")t={mode:parseInt(t,8),fs:a};else throw new TypeError("invalid options argument");t.mkdir=t.mkdir||t.fs.mkdir||a.mkdir;t.mkdirAsync=o(t.mkdir);t.stat=t.stat||t.fs.stat||a.stat;t.statAsync=o(t.stat);t.statSync=t.statSync||t.fs.statSync||a.statSync;t.mkdirSync=t.mkdirSync||t.fs.mkdirSync||a.mkdirSync;return t};t.exports=optsArg},5467:(t,r,i)=>{const o=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform;const{resolve:a,parse:u}=i(1017);const pathArg=t=>{if(/\0/.test(t)){throw Object.assign(new TypeError("path must be a string without null bytes"),{path:t,code:"ERR_INVALID_ARG_VALUE"})}t=a(t);if(o==="win32"){const r=/[*|"<>?:]/;const{root:i}=u(t);if(r.test(t.substr(i.length))){throw Object.assign(new Error("Illegal characters in path."),{path:t,code:"EINVAL"})}}return t};t.exports=pathArg},628:(t,r,i)=>{const o=i(7147);const a=process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version;const u=a.replace(/^v/,"").split(".");const l=+u[0]>10||+u[0]===10&&+u[1]>=12;const h=!l?()=>false:t=>t.mkdir===o.mkdir;const p=!l?()=>false:t=>t.mkdirSync===o.mkdirSync;t.exports={useNative:h,useNativeSync:p}},887:(t,r,i)=>{"use strict";
|
|
88
88
|
/*!
|
|
89
89
|
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
90
90
|
*
|
|
@@ -96,15 +96,15 @@ var o=i(4300);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}
|
|
|
96
96
|
*
|
|
97
97
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
98
98
|
* Released under the MIT License.
|
|
99
|
-
*/t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},5418:(t,r,i)=>{const{URL:o}=i(7310);const{join:a}=i(1017);const u=i(7147);const{promisify:l}=i(3837);const{tmpdir:h}=i(2037);const p=i(2447);const d=l(u.writeFile);const m=l(u.mkdir);const g=l(u.readFile);const compareVersions=(t,r)=>t.localeCompare(r,"en-US",{numeric:true});const encode=t=>encodeURIComponent(t).replace(/^%40/,"@");const getFile=async(t,r)=>{const i=h();const o=a(i,"update-check");if(!u.existsSync(o)){await m(o)}let l=`${t.name}-${r}.json`;if(t.scope){l=`${t.scope}-${l}`}return a(o,l)};const evaluateCache=async(t,r,i)=>{if(u.existsSync(t)){const o=await g(t,"utf8");const{lastUpdate:a,latest:u}=JSON.parse(o);const l=a+i;if(l>r){return{shouldCheck:false,latest:u}}}return{shouldCheck:true,latest:null}};const updateCache=async(t,r,i)=>{const o=JSON.stringify({latest:r,lastUpdate:i});await d(t,o,"utf8")};const loadPackage=(t,r)=>new Promise(((o,a)=>{const u={host:t.hostname,path:t.pathname,port:t.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(r){u.headers.authorization=`${r.type} ${r.token}`}const{get:l}=i(t.protocol==="https:"?5687:3685);l(u,(t=>{const{statusCode:r}=t;if(r!==200){const i=new Error(`Request failed with code ${r}`);i.code=r;a(i);t.resume();return}let i="";t.setEncoding("utf8");t.on("data",(t=>{i+=t}));t.on("end",(()=>{try{const t=JSON.parse(i);o(t)}catch(t){a(t)}}))})).on("error",a).on("timeout",a)}));const getMostRecent=async({full:t,scope:r},a)=>{const u=p(r);const l=new o(t,u);let h=null;try{h=await loadPackage(l)}catch(t){if(t.code&&String(t.code).startsWith(4)){const t=i(1384);const r=t(u,{recursive:true});h=await loadPackage(l,r)}else{throw t}}const d=h["dist-tags"][a];if(!d){throw new Error(`Distribution tag ${a} is not available`)}return d};const y={interval:36e5,distTag:"latest"};const getDetails=t=>{const r={full:encode(t)};if(t.includes("/")){const i=t.split("/");r.scope=i[0];r.name=i[1]}else{r.scope=null;r.name=t}return r};t.exports=async(t,r)=>{if(typeof t!=="object"){throw new Error("The first parameter should be your package.json file content")}const i=getDetails(t.name);const o=Date.now();const{distTag:a,interval:u}=Object.assign({},y,r);const l=await getFile(i,a);let h=null;let p=true;({shouldCheck:p,latest:h}=await evaluateCache(l,o,u));if(p){h=await getMostRecent(i,a);await updateCache(l,h,o)}const d=compareVersions(t.version,h);if(d===-1){return{latest:h,fromCache:!p}}return null}},8593:(t,r,i)=>{"use strict";const{builtinModules:o}=i(8188);var a=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var u=["node_modules","favicon.ico"];function validate(t){var r=[];var i=[];if(t===null){i.push("name cannot be null");return done(r,i)}if(t===undefined){i.push("name cannot be undefined");return done(r,i)}if(typeof t!=="string"){i.push("name must be a string");return done(r,i)}if(!t.length){i.push("name length must be greater than zero")}if(t.match(/^\./)){i.push("name cannot start with a period")}if(t.match(/^_/)){i.push("name cannot start with an underscore")}if(t.trim()!==t){i.push("name cannot contain leading or trailing spaces")}u.forEach((function(r){if(t.toLowerCase()===r){i.push(r+" is a blacklisted name")}}));if(o.includes(t.toLowerCase())){r.push(t+" is a core module name")}if(t.length>214){r.push("name can no longer contain more than 214 characters")}if(t.toLowerCase()!==t){r.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(t.split("/").slice(-1)[0])){r.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(t)!==t){var l=t.match(a);if(l){var h=l[1];var p=l[2];if(encodeURIComponent(h)===h&&encodeURIComponent(p)===p){return done(r,i)}}i.push("name can only contain URL-friendly characters")}return done(r,i)}var done=function(t,r){var i={validForNewPackages:r.length===0&&t.length===0,validForOldPackages:r.length===0,warnings:t,errors:r};if(!i.warnings.length){delete i.warnings}if(!i.errors.length){delete i.errors}return i};t.exports=validate},5523:t=>{t.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]},1205:(t,r,i)=>{"use strict";var o=i(6420);var a=i(5523);var u={nul:0,control:0};t.exports=function wcwidth(t){return wcswidth(t,u)};t.exports.config=function(t){t=o(t||{},u);return function wcwidth(r){return wcswidth(r,t)}};function wcswidth(t,r){if(typeof t!=="string")return wcwidth(t,r);var i=0;for(var o=0;o<t.length;o++){var a=wcwidth(t.charCodeAt(o),r);if(a<0)return-1;i+=a}return i}function wcwidth(t,r){if(t===0)return r.nul;if(t<32||t>=127&&t<160)return r.control;if(bisearch(t))return 0;return 1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function bisearch(t){var r=0;var i=a.length-1;var o;if(t<a[0][0]||t>a[i][1])return false;while(i>=r){o=Math.floor((r+i)/2);if(t>a[o][1])r=o+1;else if(t<a[o][0])i=o-1;else return true}return false}},460:(t,r,i)=>{"use strict";t.exports=writeFile;t.exports.sync=writeFileSync;t.exports._getTmpname=getTmpname;t.exports._cleanupOnExit=cleanupOnExit;var o=i(552);var a=i(5091);var u=i(2028);var l=i(1017);var h={};var p=function getId(){try{var t=i(1267);return t.threadId}catch(t){return 0}}();var d=0;function getTmpname(t){return t+"."+a(__filename).hash(String(process.pid)).hash(String(p)).hash(String(++d)).result()}function cleanupOnExit(t){return function(){try{o.unlinkSync(typeof t==="function"?t():t)}catch(t){}}}function writeFile(t,r,i,a){if(i){if(i instanceof Function){a=i;i={}}else if(typeof i==="string"){i={encoding:i}}}else{i={}}var p=i.Promise||global.Promise;var d;var m;var g;var y=u(cleanupOnExit((()=>g)));var A=l.resolve(t);new p((function serializeSameFile(t){if(!h[A])h[A]=[];h[A].push(t);if(h[A].length===1)t()})).then((function getRealPath(){return new p((function(r){o.realpath(t,(function(i,o){d=o||t;g=getTmpname(d);r()}))}))})).then((function stat(){return new p((function stat(t){if(i.mode&&i.chown)t();else{o.stat(d,(function(r,o){if(r||!o)t();else{i=Object.assign({},i);if(i.mode==null){i.mode=o.mode}if(i.chown==null&&process.getuid){i.chown={uid:o.uid,gid:o.gid}}t()}}))}}))})).then((function thenWriteFile(){return new p((function(t,r){o.open(g,"w",i.mode,(function(i,o){m=o;if(i)r(i);else t()}))}))})).then((function write(){return new p((function(t,a){if(Buffer.isBuffer(r)){o.write(m,r,0,r.length,0,(function(r){if(r)a(r);else t()}))}else if(r!=null){o.write(m,String(r),0,String(i.encoding||"utf8"),(function(r){if(r)a(r);else t()}))}else t()}))})).then((function syncAndClose(){return new p((function(t,r){if(i.fsync!==false){o.fsync(m,(function(i){if(i)o.close(m,(()=>r(i)));else o.close(m,t)}))}else{o.close(m,t)}}))})).then((function chown(){m=null;if(i.chown){return new p((function(t,r){o.chown(g,i.chown.uid,i.chown.gid,(function(i){if(i)r(i);else t()}))}))}})).then((function chmod(){if(i.mode){return new p((function(t,r){o.chmod(g,i.mode,(function(i){if(i)r(i);else t()}))}))}})).then((function rename(){return new p((function(t,r){o.rename(g,d,(function(i){if(i)r(i);else t()}))}))})).then((function success(){y();a()}),(function fail(t){return new p((t=>m?o.close(m,t):t())).then((()=>{y();o.unlink(g,(function(){a(t)}))}))})).then((function checkQueue(){h[A].shift();if(h[A].length>0){h[A][0]()}else delete h[A]}))}function writeFileSync(t,r,i){if(typeof i==="string")i={encoding:i};else if(!i)i={};try{t=o.realpathSync(t)}catch(t){}var a=getTmpname(t);if(!i.mode||!i.chown){try{var l=o.statSync(t);i=Object.assign({},i);if(!i.mode){i.mode=l.mode}if(!i.chown&&process.getuid){i.chown={uid:l.uid,gid:l.gid}}}catch(t){}}var h;var p=cleanupOnExit(a);var d=u(p);try{h=o.openSync(a,"w",i.mode);if(Buffer.isBuffer(r)){o.writeSync(h,r,0,r.length,0)}else if(r!=null){o.writeSync(h,String(r),0,String(i.encoding||"utf8"))}if(i.fsync!==false){o.fsyncSync(h)}o.closeSync(h);if(i.chown)o.chownSync(a,i.chown.uid,i.chown.gid);if(i.mode)o.chmodSync(a,i.mode);o.renameSync(a,t);d()}catch(t){if(h){try{o.closeSync(h)}catch(t){}}d();p();throw t}}},1389:t=>{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next){yield t.value}}}},4461:(t,r,i)=>{"use strict";t.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(t){var r=this;if(!(r instanceof Yallist)){r=new Yallist}r.tail=null;r.head=null;r.length=0;if(t&&typeof t.forEach==="function"){t.forEach((function(t){r.push(t)}))}else if(arguments.length>0){for(var i=0,o=arguments.length;i<o;i++){r.push(arguments[i])}}return r}Yallist.prototype.removeNode=function(t){if(t.list!==this){throw new Error("removing node which does not belong to this list")}var r=t.next;var i=t.prev;if(r){r.prev=i}if(i){i.next=r}if(t===this.head){this.head=r}if(t===this.tail){this.tail=i}t.list.length--;t.next=null;t.prev=null;t.list=null;return r};Yallist.prototype.unshiftNode=function(t){if(t===this.head){return}if(t.list){t.list.removeNode(t)}var r=this.head;t.list=this;t.next=r;if(r){r.prev=t}this.head=t;if(!this.tail){this.tail=t}this.length++};Yallist.prototype.pushNode=function(t){if(t===this.tail){return}if(t.list){t.list.removeNode(t)}var r=this.tail;t.list=this;t.prev=r;if(r){r.next=t}this.tail=t;if(!this.head){this.head=t}this.length++};Yallist.prototype.push=function(){for(var t=0,r=arguments.length;t<r;t++){push(this,arguments[t])}return this.length};Yallist.prototype.unshift=function(){for(var t=0,r=arguments.length;t<r;t++){unshift(this,arguments[t])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var t=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return t};Yallist.prototype.shift=function(){if(!this.head){return undefined}var t=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return t};Yallist.prototype.forEach=function(t,r){r=r||this;for(var i=this.head,o=0;i!==null;o++){t.call(r,i.value,o,this);i=i.next}};Yallist.prototype.forEachReverse=function(t,r){r=r||this;for(var i=this.tail,o=this.length-1;i!==null;o--){t.call(r,i.value,o,this);i=i.prev}};Yallist.prototype.get=function(t){for(var r=0,i=this.head;i!==null&&r<t;r++){i=i.next}if(r===t&&i!==null){return i.value}};Yallist.prototype.getReverse=function(t){for(var r=0,i=this.tail;i!==null&&r<t;r++){i=i.prev}if(r===t&&i!==null){return i.value}};Yallist.prototype.map=function(t,r){r=r||this;var i=new Yallist;for(var o=this.head;o!==null;){i.push(t.call(r,o.value,this));o=o.next}return i};Yallist.prototype.mapReverse=function(t,r){r=r||this;var i=new Yallist;for(var o=this.tail;o!==null;){i.push(t.call(r,o.value,this));o=o.prev}return i};Yallist.prototype.reduce=function(t,r){var i;var o=this.head;if(arguments.length>1){i=r}else if(this.head){o=this.head.next;i=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=0;o!==null;a++){i=t(i,o.value,a);o=o.next}return i};Yallist.prototype.reduceReverse=function(t,r){var i;var o=this.tail;if(arguments.length>1){i=r}else if(this.tail){o=this.tail.prev;i=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=this.length-1;o!==null;a--){i=t(i,o.value,a);o=o.prev}return i};Yallist.prototype.toArray=function(){var t=new Array(this.length);for(var r=0,i=this.head;i!==null;r++){t[r]=i.value;i=i.next}return t};Yallist.prototype.toArrayReverse=function(){var t=new Array(this.length);for(var r=0,i=this.tail;i!==null;r++){t[r]=i.value;i=i.prev}return t};Yallist.prototype.slice=function(t,r){r=r||this.length;if(r<0){r+=this.length}t=t||0;if(t<0){t+=this.length}var i=new Yallist;if(r<t||r<0){return i}if(t<0){t=0}if(r>this.length){r=this.length}for(var o=0,a=this.head;a!==null&&o<t;o++){a=a.next}for(;a!==null&&o<r;o++,a=a.next){i.push(a.value)}return i};Yallist.prototype.sliceReverse=function(t,r){r=r||this.length;if(r<0){r+=this.length}t=t||0;if(t<0){t+=this.length}var i=new Yallist;if(r<t||r<0){return i}if(t<0){t=0}if(r>this.length){r=this.length}for(var o=this.length,a=this.tail;a!==null&&o>r;o--){a=a.prev}for(;a!==null&&o>t;o--,a=a.prev){i.push(a.value)}return i};Yallist.prototype.splice=function(t,r,...i){if(t>this.length){t=this.length-1}if(t<0){t=this.length+t}for(var o=0,a=this.head;a!==null&&o<t;o++){a=a.next}var u=[];for(var o=0;a&&o<r;o++){u.push(a.value);a=this.removeNode(a)}if(a===null){a=this.tail}if(a!==this.head&&a!==this.tail){a=a.prev}for(var o=0;o<i.length;o++){a=insert(this,a,i[o])}return u};Yallist.prototype.reverse=function(){var t=this.head;var r=this.tail;for(var i=t;i!==null;i=i.prev){var o=i.prev;i.prev=i.next;i.next=o}this.head=r;this.tail=t;return this};function insert(t,r,i){var o=r===t.head?new Node(i,null,r,t):new Node(i,r,r.next,t);if(o.next===null){t.tail=o}if(o.prev===null){t.head=o}t.length++;return o}function push(t,r){t.tail=new Node(r,t.tail,null,t);if(!t.head){t.head=t.tail}t.length++}function unshift(t,r){t.head=new Node(r,null,t.head,t);if(!t.tail){t.tail=t.head}t.length++}function Node(t,r,i,o){if(!(this instanceof Node)){return new Node(t,r,i,o)}this.list=o;this.value=t;if(r){r.next=this;this.prev=r}else{this.prev=null}if(i){i.prev=this;this.next=i}else{this.next=null}}try{i(1389)(Yallist)}catch(t){}},6282:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const h=i(6779);const p=l(i(5130));const d=l(i(7561));const m=l(i(9411));const g=i(7261);const y=l(i(460));const A=u(i(1486));const b=(0,g.promisify)(y.default);const v={badJsonDefault:undefined,jsonParseErrorDefault:undefined,cantReadFileDefault:undefined,ensureDir:false,default:undefined,json5:false,space:2,addNewLineAtEOF:true};class JsonFile{file;options;static read=read;static readAsync=readAsync;static parseJsonString=parseJsonString;static write=write;static writeAsync=writeAsync;static get=getSync;static getAsync=getAsync;static set=setSync;static setAsync=setAsync;static merge=merge;static mergeAsync=mergeAsync;static deleteKey=deleteKey;static deleteKeyAsync=deleteKeyAsync;static deleteKeys=deleteKeys;static deleteKeysAsync=deleteKeysAsync;static rewrite=rewrite;static rewriteAsync=rewriteAsync;constructor(t,r={}){this.file=t;this.options=r}read(t){return read(this.file,this._getOptions(t))}async readAsync(t){return readAsync(this.file,this._getOptions(t))}write(t,r){return write(this.file,t,this._getOptions(r))}async writeAsync(t,r){return writeAsync(this.file,t,this._getOptions(r))}parseJsonString(t,r){return parseJsonString(t,r)}get(t,r,i){return getSync(this.file,t,r,this._getOptions(i))}async getAsync(t,r,i){return getAsync(this.file,t,r,this._getOptions(i))}set(t,r,i){return setSync(this.file,t,r,this._getOptions(i))}async setAsync(t,r,i){return setAsync(this.file,t,r,this._getOptions(i))}async merge(t,r){return merge(this.file,t,this._getOptions(r))}async mergeAsync(t,r){return mergeAsync(this.file,t,this._getOptions(r))}deleteKey(t,r){return deleteKey(this.file,t,this._getOptions(r))}async deleteKeyAsync(t,r){return deleteKeyAsync(this.file,t,this._getOptions(r))}deleteKeys(t,r){return deleteKeys(this.file,t,this._getOptions(r))}async deleteKeysAsync(t,r){return deleteKeysAsync(this.file,t,this._getOptions(r))}rewrite(t){return rewrite(this.file,this._getOptions(t))}async rewriteAsync(t){return rewriteAsync(this.file,this._getOptions(t))}_getOptions(t){return{...this.options,...t}}}r["default"]=JsonFile;function read(t,r){let i;try{i=d.default.readFileSync(t,"utf8")}catch(o){assertEmptyJsonString(i,t);const a=cantReadFileDefault(r);if(a===undefined){throw new A.default(`Can't read JSON file: ${t}`,o,o.code,t)}else{return a}}return parseJsonString(i,r,t)}async function readAsync(t,r){let i;try{i=await d.default.promises.readFile(t,"utf8")}catch(o){assertEmptyJsonString(i,t);const a=cantReadFileDefault(r);if(a===undefined){throw new A.default(`Can't read JSON file: ${t}`,o,o.code)}else{return a}}return parseJsonString(i,r)}function parseJsonString(t,r,i){assertEmptyJsonString(t,i);try{if(_getOption(r,"json5")){return p.default.parse(t)}else{return JSON.parse(t)}}catch(o){const a=jsonParseErrorDefault(r);if(a===undefined){const r=locationFromSyntaxError(o,t);if(r){const i=(0,h.codeFrameColumns)(t,{start:r});o.codeFrame=i;o.message+=`\n${i}`}throw new A.default(`Error parsing JSON: ${t}`,o,"EJSONPARSE",i)}else{return a}}}function getSync(t,r,i,o){const a=read(t,o);if(r in a){return a[r]}if(i===undefined){throw new A.default(`No value at key path "${String(r)}" in JSON object from: ${t}`)}return i}async function getAsync(t,r,i,o){const a=await readAsync(t,o);if(r in a){return a[r]}if(i===undefined){throw new A.default(`No value at key path "${String(r)}" in JSON object from: ${t}`)}return i}function write(t,r,i){if(i?.ensureDir){d.default.mkdirSync(m.default.dirname(t),{recursive:true})}const o=_getOption(i,"space");const a=_getOption(i,"json5");const u=_getOption(i,"addNewLineAtEOF");let l;try{if(a){l=p.default.stringify(r,null,o)}else{l=JSON.stringify(r,null,o)}}catch(r){throw new A.default(`Couldn't JSON.stringify object for file: ${t}`,r)}const h=u?`${l}\n`:l;y.default.sync(t,h,{});return r}async function writeAsync(t,r,i){if(i?.ensureDir){await d.default.promises.mkdir(m.default.dirname(t),{recursive:true})}const o=_getOption(i,"space");const a=_getOption(i,"json5");const u=_getOption(i,"addNewLineAtEOF");let l;try{if(a){l=p.default.stringify(r,null,o)}else{l=JSON.stringify(r,null,o)}}catch(r){throw new A.default(`Couldn't JSON.stringify object for file: ${t}`,r)}const h=u?`${l}\n`:l;await b(t,h,{});return r}function setSync(t,r,i,o){const a=read(t,o);return write(t,{...a,[r]:i},o)}async function setAsync(t,r,i,o){const a=await readAsync(t,o);return writeAsync(t,{...a,[r]:i},o)}async function mergeAsync(t,r,i){const o=await readAsync(t,i);if(Array.isArray(r)){Object.assign(o,...r)}else{Object.assign(o,r)}return writeAsync(t,o,i)}function merge(t,r,i){const o=read(t,i);if(Array.isArray(r)){Object.assign(o,...r)}else{Object.assign(o,r)}return write(t,o,i)}async function deleteKeyAsync(t,r,i){return deleteKeysAsync(t,[r],i)}function deleteKey(t,r,i){return deleteKeys(t,[r],i)}async function deleteKeysAsync(t,r,i){const o=await readAsync(t,i);let a=false;for(let t=0;t<r.length;t++){const i=r[t];if(o.hasOwnProperty(i)){delete o[i];a=true}}if(a){return writeAsync(t,o,i)}return o}function deleteKeys(t,r,i){const o=read(t,i);let a=false;for(let t=0;t<r.length;t++){const i=r[t];if(o.hasOwnProperty(i)){delete o[i];a=true}}if(a){return write(t,o,i)}return o}async function rewriteAsync(t,r){const i=await readAsync(t,r);return writeAsync(t,i,r)}function rewrite(t,r){return write(t,read(t,r),r)}function jsonParseErrorDefault(t={}){if(t.jsonParseErrorDefault===undefined){return t.default}else{return t.jsonParseErrorDefault}}function cantReadFileDefault(t={}){if(t.cantReadFileDefault===undefined){return t.default}else{return t.cantReadFileDefault}}function _getOption(t,r){if(t){if(t[r]!==undefined){return t[r]}}return v[r]}function locationFromSyntaxError(t,r){if("lineNumber"in t&&"columnNumber"in t){return{line:t.lineNumber,column:t.columnNumber}}const i=/at position (\d+)/.exec(t.message);if(i){const t=parseInt(i[1],10);const o=r.slice(0,t+1).split("\n");return{line:o.length,column:o[o.length-1].length}}return null}function assertEmptyJsonString(t,r){if(t?.trim()===""){throw new A.EmptyJsonFileError(r)}}},1486:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.EmptyJsonFileError=void 0;class JsonFileError extends Error{cause;code;fileName;isJsonFileError;constructor(t,r,i,o){let a=t;if(o){a+=`\n${r?"├":"└"}─ File: ${o}`}if(r){a+=`\n└─ Cause: ${r.name}: ${r.message}`}super(a);this.name=this.constructor.name;this.cause=r;this.code=i;this.fileName=o;this.isJsonFileError=true}}r["default"]=JsonFileError;class EmptyJsonFileError extends JsonFileError{constructor(t){super(`Cannot parse an empty JSON string`,undefined,"EJSONEMPTY",t)}}r.EmptyJsonFileError=EmptyJsonFileError},6779:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.codeFrameColumns=codeFrameColumns;r["default"]=_default;var o=_interopRequireWildcard(i(932));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var t=new WeakMap;_getRequireWildcardCache=function(){return t};return t}function _interopRequireWildcard(t){if(t&&t.__esModule){return t}if(t===null||typeof t!=="object"&&typeof t!=="function"){return{default:t}}var r=_getRequireWildcardCache();if(r&&r.has(t)){return r.get(t)}var i={};var o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t){if(Object.prototype.hasOwnProperty.call(t,a)){var u=o?Object.getOwnPropertyDescriptor(t,a):null;if(u&&(u.get||u.set)){Object.defineProperty(i,a,u)}else{i[a]=t[a]}}}i.default=t;if(r){r.set(t,i)}return i}let a=false;function getDefs(t){return{gutter:t.grey,marker:t.red.bold,message:t.red.bold}}const u=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(t,r,i){const o=Object.assign({column:0,line:-1},t.start);const a=Object.assign({},o,t.end);const{linesAbove:u=2,linesBelow:l=3}=i||{};const h=o.line;const p=o.column;const d=a.line;const m=a.column;let g=Math.max(h-(u+1),0);let y=Math.min(r.length,d+l);if(h===-1){g=0}if(d===-1){y=r.length}const A=d-h;const b={};if(A){for(let t=0;t<=A;t++){const i=t+h;if(!p){b[i]=true}else if(t===0){const t=r[i-1].length;b[i]=[p,t-p+1]}else if(t===A){b[i]=[0,m]}else{const o=r[i-t].length;b[i]=[0,o]}}}else{if(p===m){if(p){b[h]=[p,0]}else{b[h]=true}}else{b[h]=[p,m-p]}}return{start:g,end:y,markerLines:b}}function codeFrameColumns(t,r,i={}){const a=(i.highlightCode||i.forceColor)&&(0,o.shouldHighlight)(i);const l=(0,o.getChalk)(i);const h=getDefs(l);const maybeHighlight=(t,r)=>a?t(r):r;const p=t.split(u);const{start:d,end:m,markerLines:g}=getMarkerLines(r,p,i);const y=r.start&&typeof r.start.column==="number";const A=String(m).length;const b=a?(0,o.default)(t,i):t;let v=b.split(u).slice(d,m).map(((t,r)=>{const o=d+1+r;const a=` ${o}`.slice(-A);const u=` ${a} | `;const l=g[o];const p=!g[o+1];if(l){let r="";if(Array.isArray(l)){const o=t.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," ");const a=l[1]||1;r=["\n ",maybeHighlight(h.gutter,u.replace(/\d/g," ")),o,maybeHighlight(h.marker,"^").repeat(a)].join("");if(p&&i.message){r+=" "+maybeHighlight(h.message,i.message)}}return[maybeHighlight(h.marker,">"),maybeHighlight(h.gutter,u),t,r].join("")}else{return` ${maybeHighlight(h.gutter,u)}${t}`}})).join("\n");if(i.message&&!y){v=`${" ".repeat(A+1)}${i.message}\n${v}`}if(a){return l.reset(v)}else{return v}}function _default(t,r,i,o={}){if(!a){a=true;const t="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(t,"DeprecationWarning")}else{const r=new Error(t);r.name="DeprecationWarning";console.warn(new Error(t))}}i=Math.max(i,0);const u={start:{column:i,line:r}};return codeFrameColumns(t,u,o)}},5997:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true})},7496:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__exportStar||function(t,r){for(var i in t)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i))o(r,t,i)};Object.defineProperty(r,"__esModule",{value:true});r.isYarnOfflineAsync=void 0;a(i(5997),r);a(i(1574),r);a(i(1178),r);a(i(6125),r);a(i(57),r);a(i(6805),r);a(i(3746),r);var u=i(822);Object.defineProperty(r,"isYarnOfflineAsync",{enumerable:true,get:function(){return u.isYarnOfflineAsync}})},1574:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getImprovedPodInstallError=r.getPodRepoUpdateMessage=r.getPodUpdateMessage=r.CocoaPodsPackageManager=r.extractMissingDependencyError=r.CocoaPodsError=void 0;const a=o(i(5642));const u=o(i(8746));const l=i(7147);const h=o(i(2037));const p=o(i(1017));const d=i(6418);class CocoaPodsError extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=true;constructor(t,r,i){super(i?`${t}\n└─ Cause: ${i.message}`:t);this.code=r;this.cause=i}}r.CocoaPodsError=CocoaPodsError;function extractMissingDependencyError(t){const r=t.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(r){return[r[1],r[2]]}return null}r.extractMissingDependencyError=extractMissingDependencyError;class CocoaPodsPackageManager{options;silent;static getPodProjectRoot(t){if(CocoaPodsPackageManager.isUsingPods(t))return t;const r=p.default.join(t,"ios");if(CocoaPodsPackageManager.isUsingPods(r))return r;const i=p.default.join(t,"macos");if(CocoaPodsPackageManager.isUsingPods(i))return i;return null}static isUsingPods(t){return(0,l.existsSync)(p.default.join(t,"Podfile"))}static async gemInstallCLIAsync(t=false,r={stdio:"inherit"}){const i=["install","cocoapods","--no-document"];try{await(0,a.default)("gem",i,r)}catch(o){if(t){throw new CocoaPodsError("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",o)}await(0,d.spawnSudoAsync)(["gem",...i],r)}}static async brewLinkCLIAsync(t={stdio:"inherit"}){await(0,a.default)("brew",["link","cocoapods"],t)}static async brewInstallCLIAsync(t={stdio:"inherit"}){await(0,a.default)("brew",["install","cocoapods"],t)}static async installCLIAsync({nonInteractive:t=false,spawnOptions:r={stdio:"inherit"}}){if(!r){r={stdio:"inherit"}}const i=!!r.ignoreStdio;try{!i&&console.log(`› Attempting to install CocoaPods CLI with Gem`);await CocoaPodsPackageManager.gemInstallCLIAsync(t,r);!i&&console.log(`› Successfully installed CocoaPods CLI with Gem`);return true}catch(t){if(!i){console.log(u.default.yellow(`› Failed to install CocoaPods CLI with Gem`));console.log(u.default.red(t.stderr??t.message));console.log(`› Attempting to install CocoaPods CLI with Homebrew`)}try{await CocoaPodsPackageManager.brewInstallCLIAsync(r);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(r)){try{await CocoaPodsPackageManager.brewLinkCLIAsync(r);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(r)){throw new CocoaPodsError("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",t)}}catch(t){throw new CocoaPodsError("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",t)}}!i&&console.log(`› Successfully installed CocoaPods CLI with Homebrew`);return true}catch(t){!i&&console.warn(u.default.yellow(`› Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`));throw new CocoaPodsError(`Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`,"NO_CLI",t)}}}static isAvailable(t,r){if(process.platform!=="darwin"){!r&&console.log(u.default.red("CocoaPods is only supported on macOS machines"));return false}if(!CocoaPodsPackageManager.isUsingPods(t)){!r&&console.log(u.default.yellow("CocoaPods is not supported in this project"));return false}return true}static async isCLIInstalledAsync(t={stdio:"inherit"}){try{await(0,a.default)("pod",["--version"],t);return true}catch{return false}}constructor({cwd:t,silent:r}){this.silent=!!r;this.options={cwd:t,stdio:"pipe"}}get name(){return"CocoaPods"}async installAsync({spinner:t}={}){await this._installAsync({spinner:t})}isCLIInstalledAsync(){return CocoaPodsPackageManager.isCLIInstalledAsync(this.options)}installCLIAsync(){return CocoaPodsPackageManager.installCLIAsync({nonInteractive:true,spawnOptions:this.options})}async handleInstallErrorAsync({error:t,shouldUpdate:r=true,updatedPackages:i=[],spinner:o}){if(!t.output){throw t}if(!r){throw getImprovedPodInstallError(t,{cwd:this.options.cwd})}const a=t.output.join(h.default.EOL).trim();const{updatePackage:l,shouldUpdateRepo:p}=getPodUpdateMessage(a);if(!l||i.includes(l)){return await this._installAsync({spinner:o,shouldRepoUpdate:true,shouldUpdate:false,updatedPackages:i})}i.push(l);return await this.runInstallTypeCommandAsync(["update",l,p?"":"--no-repo-update"].filter(Boolean),{formatWarning(){const t=`Failed to update ${u.default.bold(l)}. Attempting to update the repo instead.`;return t},spinner:o,updatedPackages:i})}async _installAsync({shouldRepoUpdate:t,...r}={}){return await this.runInstallTypeCommandAsync(["install",t?"--repo-update":""].filter(Boolean),{formatWarning(t){return getPodRepoUpdateMessage(t.output.join(h.default.EOL).trim()).message},...r})}async runInstallTypeCommandAsync(t,{formatWarning:r,...i}={}){try{return await this._runAsync(t)}catch(t){if(r){const o=r(t);if(i.spinner){i.spinner.text=u.default.bold(o)}if(!this.silent){console.warn(u.default.yellow(o))}}return await this.handleInstallErrorAsync({error:t,...i})}}async addWithParametersAsync(t,r){throw new Error("Unimplemented")}addAsync(t=[]){throw new Error("Unimplemented")}addDevAsync(t=[]){throw new Error("Unimplemented")}addGlobalAsync(t=[]){throw new Error("Unimplemented")}removeAsync(t=[]){throw new Error("Unimplemented")}removeDevAsync(t=[]){throw new Error("Unimplemented")}removeGlobalAsync(t=[]){throw new Error("Unimplemented")}async versionAsync(){const{stdout:t}=await(0,a.default)("pod",["--version"],this.options);return t.trim()}async configAsync(t){throw new Error("Unimplemented")}async removeLockfileAsync(){throw new Error("Unimplemented")}async uninstallAsync(){throw new Error("Unimplemented")}async podRepoUpdateAsync(){try{await this._runAsync(["repo","update"])}catch(t){t.message=t.message||(t.stderr??t.stdout);throw new CocoaPodsError("The command `pod install --repo-update` failed","COMMAND_FAILED",t)}}async _runAsync(t){if(!this.silent){console.log(`> pod ${t.join(" ")}`)}const r=(0,a.default)("pod",[...t,"--ansi"],{...this.options,stdio:"pipe"});if(!this.silent){if(r.child.stdout){r.child.stdout.pipe(process.stdout)}}return await r}}r.CocoaPodsPackageManager=CocoaPodsPackageManager;function shouldPodRepoUpdate(t){const r=t;const i=r.includes("pod repo update")||r.includes("--no-repo-update");return i}function getPodUpdateMessage(t){const r=t.match(/run ['"`]pod update ([\w-_\d/]+)( --no-repo-update)?['"`] to apply changes/);return{updatePackage:r?.[1]??null,shouldUpdateRepo:!r?.[2]}}r.getPodUpdateMessage=getPodUpdateMessage;function getPodRepoUpdateMessage(t){const r=extractMissingDependencyError(t);const i=getPodUpdateMessage(t);let o;if(r){o=`Couldn't install: ${r[1]} » ${u.default.underline(r[0])}.`}else if(i?.updatePackage){o=`Couldn't install: ${i?.updatePackage}.`}else{o=`Couldn't install Pods.`}o+=` Updating the Pods project and trying again...`;return{message:o,...i}}r.getPodRepoUpdateMessage=getPodRepoUpdateMessage;function getImprovedPodInstallError(t,{cwd:r=process.cwd()}){const i=t.output.join(h.default.EOL).trim();if(t.stdout.match(/No [`'"]Podfile[`'"] found in the project directory/)){t.message=`No Podfile found in directory: ${r}. Ensure CocoaPods is setup any try again.`}else if(shouldPodRepoUpdate(i)){const r=extractMissingDependencyError(i);let o;if(r){o=`Couldn't install: ${r[1]} » ${u.default.underline(r[0])}`}else{o=`This is often due to native package versions mismatching`}let a;if(r?.[0]){if(r[0].match(/^(?:@?expo|@?react)(-|\/)/)){a=`Ensure the node module "${r[0]}" is installed in your project, then run 'npx pod-install' to try again.`}else{a=`Ensure the CocoaPod "${r[0]}" is installed in your project, then run 'npx pod-install' to try again.`}}else{a=`Try deleting the 'ios/Pods' folder or the 'ios/Podfile.lock' file and running 'npx pod-install' to resolve.`}t.message=`${o}. ${a}`;if(t.stdout){const r=t.stdout.split(h.default.EOL);const i=r.findIndex((t=>t.startsWith("[!]")));if(i!==-1){const o=r.slice(i).join(h.default.EOL);t.message+=`\n\n${u.default.gray(o)}`}}return new CocoaPodsError("Command `pod install --repo-update` failed.","COMMAND_FAILED",t)}else{let r=t.stderr.trim();const i=t.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(i){if(t.message?.match(/pod exited with non-zero code: 1/)){t.message=""}r=null}t.message=[i,t.message,r].filter(Boolean).join("\n")}return new CocoaPodsError("Command `pod install` failed.","COMMAND_FAILED",t)}r.getImprovedPodInstallError=getImprovedPodInstallError},1729:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.BasePackageManager=void 0;const a=o(i(5642));const u=o(i(9491));const l=o(i(7147));const h=o(i(1017));class BasePackageManager{silent;log;options;constructor({silent:t,log:r,env:i=process.env,...o}={}){this.silent=!!t;this.log=r??(!t?console.log:undefined);this.options={stdio:t?undefined:"inherit",...o,env:{...this.getDefaultEnvironment(),...i}}}getDefaultEnvironment(){return{ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}}ensureCwdDefined(t){const r=this.options.cwd?.toString();const i=this.constructor.name;const o=t?`.${t}`:"";(0,u.default)(r,`cwd is required for ${i}${o}`);return r}runAsync(t,r={}){this.log?.(`> ${this.name} ${t.join(" ")}`);return(0,a.default)(this.bin,t,{...this.options,...r})}runBinAsync(t,r={}){this.log?.(`> ${this.name} ${t.join(" ")}`);return(0,a.default)(this.bin,t,{...this.options,...r})}async versionAsync(){const{stdout:t}=await this.runAsync(["--version"],{stdio:undefined});return t.trim()}async getConfigAsync(t){const{stdout:r}=await this.runAsync(["config","get",t]);return r.trim()}async removeLockfileAsync(){const t=this.ensureCwdDefined("removeLockFile");const r=h.default.join(t,this.lockFile);await l.default.promises.rm(r,{force:true})}installAsync(t=[]){return this.runAsync(["install",...t])}async uninstallAsync(){const t=this.ensureCwdDefined("uninstallAsync");const r=h.default.join(t,"node_modules");await l.default.promises.rm(r,{force:true,recursive:true})}}r.BasePackageManager=BasePackageManager},6805:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.BunPackageManager=void 0;const o=i(1729);const a=i(3746);class BunPackageManager extends o.BasePackageManager{name="bun";bin="bun";lockFile=a.BUN_LOCK_FILE;workspaceRoot(){const t=(0,a.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new BunPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){return this.runAsync(["install",...t])}addAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add",...t])}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--dev",...t])}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--global",...t])}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove",...t])}removeGlobalAsync(t){return this.runAsync(["remove","--global",...t])}}r.BunPackageManager=BunPackageManager},1178:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.NpmPackageManager=void 0;const a=o(i(6282));const u=o(i(5642));const l=o(i(5440));const h=o(i(1017));const p=i(1729);const d=i(3746);const m=i(6418);class NpmPackageManager extends p.BasePackageManager{name="npm";bin="npm";lockFile=d.NPM_LOCK_FILE;workspaceRoot(){const t=(0,d.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new NpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}addAsync(t=[]){if(!t.length){return this.installAsync()}const{flags:r,versioned:i,unversioned:o}=this.parsePackageSpecs(t);return(0,m.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(i,"dependencies")),(()=>!o.length?this.runAsync(["install",...r]):this.runAsync(["install","--save",...r,...o.map((t=>t.raw))])))}addDevAsync(t=[]){if(!t.length){return this.installAsync()}const{flags:r,versioned:i,unversioned:o}=this.parsePackageSpecs(t);return(0,m.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(i,"devDependencies")),(()=>!o.length?this.runAsync(["install",...r]):this.runAsync(["install","--save-dev",...r,...o.map((t=>t.raw))])))}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["install","--global",...t])}removeAsync(t){return this.runAsync(["uninstall",...t])}removeDevAsync(t){return this.runAsync(["uninstall","--save-dev",...t])}removeGlobalAsync(t){return this.runAsync(["uninstall","--global",...t])}runBinAsync(t,r={}){this.log?.(`> npx ${t.join(" ")}`);return(0,u.default)("npx",t,{...this.options,...r})}parsePackageSpecs(t){const r={flags:[],versioned:[],unversioned:[]};t.map((t=>{if(t.trim().startsWith("-")){r.flags.push(t);return null}return(0,l.default)(t)})).forEach((t=>{const i=!!t&&t.rawSpec!==""&&t.rawSpec!=="*";if(t&&i&&t.type!=="tag"){r.versioned.push(t)}else if(t){r.unversioned.push(t)}}));return r}async updatePackageFileAsync(t,r){if(!t.length){return}const i=h.default.join(this.options.cwd?.toString()||".","package.json");const o=await a.default.readAsync(i);t.forEach((t=>{o[r]=o[r]||{};o[r][t.name]=t.rawSpec}));await a.default.writeAsync(i,o,{json5:false})}}r.NpmPackageManager=NpmPackageManager},6125:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.PnpmPackageManager=void 0;const a=i(1729);const u=o(i(1966));const l=i(3746);class PnpmPackageManager extends a.BasePackageManager{name="pnpm";bin="pnpm";lockFile=l.PNPM_LOCK_FILE;workspaceRoot(){const t=(0,l.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new PnpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){if(u.default.CI&&!t.join(" ").includes("frozen-lockfile")){t.unshift("--no-frozen-lockfile")}return this.runAsync(["install",...t])}addAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add",...t])}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--save-dev",...t])}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--global",...t])}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove","--save-dev",...t])}removeGlobalAsync(t){return this.runAsync(["remove","--global",...t])}}r.PnpmPackageManager=PnpmPackageManager},57:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.YarnPackageManager=void 0;const o=i(1729);const a=i(3746);const u=i(6418);const l=i(822);class YarnPackageManager extends o.BasePackageManager{name="yarn";bin="yarnpkg";lockFile=a.YARN_LOCK_FILE;async withOfflineFlagAsync(t){return await(0,l.isYarnOfflineAsync)()?[...t,"--offline"]:t}workspaceRoot(){const t=(0,a.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new YarnPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["install"])),(r=>this.runAsync([...r,...t])))}addAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add",...t])),(t=>this.runAsync(t)))}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add","--dev",...t])),(t=>this.runAsync(t)))}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["global","add",...t])),(t=>this.runAsync(t)))}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove",...t])}removeGlobalAsync(t){return this.runAsync(["global","remove",...t])}}r.YarnPackageManager=YarnPackageManager},1966:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class Env{get CI(){const{CI:t}=process.env;return t?.toLowerCase()==="true"||t==="1"}}r["default"]=new Env},3746:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.createForProject=r.resolvePackageManager=r.RESOLUTION_ORDER=r.BUN_LOCK_FILE=r.PNPM_LOCK_FILE=r.YARN_LOCK_FILE=r.NPM_LOCK_FILE=r.resolveWorkspaceRoot=void 0;const a=o(i(7147));const u=o(i(1017));const l=i(7301);const h=i(6805);const p=i(1178);const d=i(6125);const m=i(57);var g=i(7301);Object.defineProperty(r,"resolveWorkspaceRoot",{enumerable:true,get:function(){return g.resolveWorkspaceRoot}});r.NPM_LOCK_FILE="package-lock.json";r.YARN_LOCK_FILE="yarn.lock";r.PNPM_LOCK_FILE="pnpm-lock.yaml";r.BUN_LOCK_FILE="bun.lockb";r.RESOLUTION_ORDER=["bun","yarn","npm","pnpm"];function resolvePackageManager(t,i){const o=(0,l.resolveWorkspaceRoot)(t)??t;const h={npm:r.NPM_LOCK_FILE,pnpm:r.PNPM_LOCK_FILE,yarn:r.YARN_LOCK_FILE,bun:r.BUN_LOCK_FILE};if(i){if(a.default.existsSync(u.default.join(o,h[i]))){return i}return null}for(const t of r.RESOLUTION_ORDER){if(a.default.existsSync(u.default.join(o,h[t]))){return t}}return null}r.resolvePackageManager=resolvePackageManager;function createForProject(t,r={}){if(r.npm){return new p.NpmPackageManager({cwd:t,...r})}else if(r.yarn){return new m.YarnPackageManager({cwd:t,...r})}else if(r.pnpm){return new d.PnpmPackageManager({cwd:t,...r})}else if(r.bun){return new h.BunPackageManager({cwd:t,...r})}switch(resolvePackageManager(t)){case"npm":return new p.NpmPackageManager({cwd:t,...r});case"pnpm":return new d.PnpmPackageManager({cwd:t,...r});case"yarn":return new m.YarnPackageManager({cwd:t,...r});case"bun":return new h.BunPackageManager({cwd:t,...r});default:return new p.NpmPackageManager({cwd:t,...r})}}r.createForProject=createForProject},6418:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.spawnSudoAsync=r.createPendingSpawnAsync=void 0;const a=o(i(5642));const u=o(i(5667));function createPendingSpawnAsync(t,r){let i;const o=new Promise(((t,r)=>{i=t}));const a=new Promise(((o,a)=>{t().then((t=>{const u=r(t);i(u.child);u.then(o).catch(a)})).catch((t=>{i(null);a(t)}))}));a.child=o;return a}r.createPendingSpawnAsync=createPendingSpawnAsync;async function spawnSudoAsync(t,r){if(process.platform==="win32"){return new Promise(((r,i)=>{u.default.exec(t.join(" "),{name:"pod install"},(t=>{if(t){i(t)}r()}))}))}else{console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation");await(0,a.default)("sudo",t,r)}}r.spawnSudoAsync=spawnSudoAsync},822:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getNpmProxy=r.isYarnOfflineAsync=void 0;const a=i(2081);const u=o(i(9523));const l=o(i(7310));async function isYarnOfflineAsync(){if(await isUrlAvailableAsync("registry.yarnpkg.com")){return false}const t=getNpmProxy();if(!t){return true}const{hostname:r}=l.default.parse(t);if(!r){return true}return!await isUrlAvailableAsync(r)}r.isYarnOfflineAsync=isYarnOfflineAsync;function getNpmProxy(){if(process.env.https_proxy){return process.env.https_proxy??null}try{const t=(0,a.execSync)("npm config get https-proxy").toString().trim();return t!=="null"?t:null}catch{return null}}r.getNpmProxy=getNpmProxy;function isUrlAvailableAsync(t){return new Promise((r=>{u.default.lookup(t,(t=>{r(!t)}))}))}},6055:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.sanitizeScriptsAsync=r.downloadAndExtractExampleAsync=r.promptExamplesAsync=r.ensureExampleExists=void 0;const a=o(i(6282));const u=o(i(8746));const l=o(i(7147));const h=o(i(1017));const p=o(i(1112));const d=i(2781);const m=o(i(8089));const g=i(3837);const y=i(1947);const A=i(6581);const b=i(7943);const v=i(9544);const E=i(7984)("expo:init:template");const w=(0,g.promisify)(d.Stream.pipeline);async function listExamplesAsync(){const t=await(0,v.fetch)("https://api.github.com/repos/expo/examples/contents");if(!t.ok){throw new Error("Unexpected GitHub API response: https://github.com/expo/examples")}const r=await t.json();return r.filter((t=>t.type==="dir"&&!t.name.startsWith(".")))}async function hasExampleAsync(t){const r=await(0,v.fetch)(`https://api.github.com/repos/expo/examples/contents/${encodeURIComponent(t)}/package.json`);if(r.status===404||r.ok){return r.ok}throw new Error(`Unexpected GitHub API response: ${r.status} - ${r.statusText}`)}async function ensureExampleExists(t){if(!await hasExampleAsync(t)){throw new Error(`Example "${t}" does not exist, see https://github.com/expo/examples`)}}r.ensureExampleExists=ensureExampleExists;async function promptExamplesAsync(){if(b.env.CI){throw new Error("Cannot prompt for examples in CI")}const t=await listExamplesAsync();const{answer:r}=await(0,p.default)({type:"select",name:"answer",message:"Choose an example:",choices:t.map((t=>({title:t.name,value:t.path})))});if(!r){console.log();console.log((0,u.default)`Please specify the example, example: {cyan --example with-router}`);console.log();process.exit(1)}return r}r.promptExamplesAsync=promptExamplesAsync;async function downloadAndExtractExampleAsync(t,r){const i=h.default.basename(t);const o=await(0,v.fetch)("https://codeload.github.com/expo/examples/tar.gz/master");if(!o.ok){E(`Failed to fetch the examples code, received status "${o.status}"`);throw new Error("Failed to fetch the examples code from https://github.com/expo/examples")}if(!o.body){E(`Failed to fetch the examples code, Github responded without content, received status "${o.status}"`);throw new Error("Failed to fetch the examples code from https://github.com/expo/examples")}await w(d.Readable.fromWeb(o.body),m.default.extract({cwd:t,onentry:(0,A.createEntryResolver)(i),strip:2},[`examples-master/${r}`]));const a=await(0,y.getTemplateFilesToRenameAsync)({cwd:t});await(0,y.renameTemplateAppNameAsync)({cwd:t,files:a,name:i});await(0,y.sanitizeTemplateAsync)(t);await sanitizeScriptsAsync(t)}r.downloadAndExtractExampleAsync=downloadAndExtractExampleAsync;function exampleHasNativeCode(t){return[h.default.join(t,"android"),h.default.join(t,"ios")].some((t=>l.default.existsSync(t)))}async function sanitizeScriptsAsync(t){const r=exampleHasNativeCode(t)?{start:"expo start --dev-client",android:"expo run:android",ios:"expo run:ios",web:"expo start --web"}:{start:"expo start",android:"expo start --android",ios:"expo start --ios",web:"expo start --web"};const i=new a.default(h.default.join(t,"package.json"));const o=await i.readAsync();const u=o.scripts??{};o.scripts={...r,...u};await i.writeAsync(o)}r.sanitizeScriptsAsync=sanitizeScriptsAsync},1947:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.logNewSection=r.installPodsAsync=r.logProjectReady=r.validateName=r.sanitizeTemplateAsync=r.renameTemplateAppNameAsync=r.getTemplateFilesToRenameAsync=r.defaultRenameConfig=r.extractAndPrepareTemplateAppAsync=r.resolvePackageModuleId=r.isFolderNameForbidden=void 0;const h=l(i(6282));const p=u(i(7496));const d=l(i(8746));const m=i(3909);const g=l(i(7147));const y=l(i(2651));const A=l(i(1017));const b=i(6581);const v=i(3744);const E=i(1805);const w=i(7943);const _=i(292);const S=i(7240);const C=i(7984)("expo:init:template");const D=process.platform==="darwin";const x=["react-native","react","react-dom","react-native-web","expo","expo-router"];function isFolderNameForbidden(t){return x.includes(t)}r.isFolderNameForbidden=isFolderNameForbidden;function deepMerge(t,r){if(typeof t!=="object"){return r}if(Array.isArray(t)&&Array.isArray(r)){return t.concat(r)}Object.keys(r).forEach((i=>{if(typeof r[i]==="object"&&r[i]!==null){t[i]=deepMerge(t[i],r[i])}else{t[i]=r[i]}}));return t}function coerceUrl(t){try{return new URL(t)}catch(r){if(!/^(https?:\/\/)/.test(t)){return new URL(`https://${t}`)}throw r}}function resolvePackageModuleId(t){if(/^(https?:\/\/)?github\.com\//.test(t)){try{const r=coerceUrl(t);C("Resolved moduleId to repository path:",t);return{type:"repository",uri:r}}catch{throw new Error(`Invalid URL: "${t}" provided`)}}if(t?.startsWith("file:")||t?.startsWith(".")||t?.startsWith(A.default.sep)){if(t?.startsWith("file:")){t=t.substring(5)}C(`Resolved moduleId to file path:`,t);return{type:"file",uri:A.default.resolve(t)}}C(`Resolved moduleId to NPM package:`,t);return{type:"npm",uri:t}}r.resolvePackageModuleId=resolvePackageModuleId;async function extractAndPrepareTemplateAppAsync(t,{npmPackage:r}){const i=A.default.basename(t);C(`Extracting template app (pkg: ${r}, projectName: ${i})`);const{type:o,uri:a}=resolvePackageModuleId(r||"expo-template-default");if(o==="repository"){await(0,_.downloadAndExtractGitHubRepositoryAsync)(a,{cwd:t,name:i})}else{const r=o==="file"?a:(0,S.getResolvedTemplateName)((0,S.applyBetaTag)(a));await(0,S.downloadAndExtractNpmModuleAsync)(r,{cwd:t,name:i,disableCache:o==="file"})}try{const r=await getTemplateFilesToRenameAsync({cwd:t});await renameTemplateAppNameAsync({cwd:t,files:r,name:i})}catch(t){v.Log.error("Error renaming app name in template");throw t}await sanitizeTemplateAsync(t);return t}r.extractAndPrepareTemplateAppAsync=extractAndPrepareTemplateAppAsync;function escapeXMLCharacters(t){const r=t.replace("&","&");const i=r.replace("<","<");const o=i.replace(">",">");const a=o.replace('"','\\"');return a.replace("'","\\'")}r.defaultRenameConfig=["!**/node_modules","app.json","android/**/*.gradle","android/app/BUCK","android/app/src/**/*.java","android/app/src/**/*.kt","android/app/src/**/*.xml","ios/Podfile","ios/**/*.xcodeproj/project.pbxproj","ios/**/*.xcodeproj/xcshareddata/xcschemes/*.xcscheme"];async function getTemplateFilesToRenameAsync({cwd:t,renameConfig:i}){let o=i??r.defaultRenameConfig;o=o.map((t=>t.split(/(?<!\\)#/,2)[0].trim())).filter((t=>t!==""));return await(0,m.glob)(o,{cwd:t,baseNameMatch:true,dot:true,followSymbolicLinks:false})}r.getTemplateFilesToRenameAsync=getTemplateFilesToRenameAsync;async function renameTemplateAppNameAsync({cwd:t,name:r,files:i}){C(`Got files to transform: ${JSON.stringify(i)}`);await Promise.all(i.map((async i=>{const o=A.default.resolve(t,i);let a;try{a=await g.default.promises.readFile(o,{encoding:"utf-8"})}catch(t){throw new Error(`Failed to read template file: "${o}". Was it removed mid-operation?`,{cause:t})}C(`Renaming app name in file: ${o}`);const u=[".xml",".plist"].includes(A.default.extname(i))?escapeXMLCharacters(r):r;try{const t=a.replace(/Hello App Display Name/g,u).replace(/HelloWorld/g,(0,b.sanitizedName)(u)).replace(/helloworld/g,(0,b.sanitizedName)(u.toLowerCase()));if(t===a){return}await g.default.promises.writeFile(o,t)}catch(t){throw new Error(`Failed to overwrite template file: "${o}". Was it removed mid-operation?`,{cause:t})}})))}r.renameTemplateAppNameAsync=renameTemplateAppNameAsync;async function sanitizeTemplateAsync(t){const r=A.default.basename(t);C(`Sanitizing template or example app (projectName: ${r})`);const i=A.default.join(__dirname,"../template/gitignore");const o=A.default.join(t,".gitignore");if(!g.default.existsSync(o)){await g.default.promises.copyFile(i,o)}const a={name:r,slug:r};const u=new h.default(A.default.join(t,"app.json"),{default:{}});const l=await u.readAsync();const p=deepMerge(l,"expo"in l?{expo:a}:a);await u.writeAsync(p);C(`Created app.json:\n%O`,p);const d=new h.default(A.default.join(t,"package.json"));const m=await d.readAsync();const y="name"in p?p.name:p.expo.name;m.name=(0,S.applyKnownNpmPackageNameRules)(y)||"app";m.version="1.0.0";m.private=true;delete m.description;delete m.tags;delete m.repository;if(m.license==="0BSD"){delete m.license}await d.writeAsync(m)}r.sanitizeTemplateAsync=sanitizeTemplateAsync;function validateName(t){if(typeof t!=="string"||t===""){return"The project name can not be empty."}if(!/^[a-z0-9@.\-_]+$/i.test(t)){return"The project name can only contain URL-friendly characters."}return true}r.validateName=validateName;function logProjectReady({cdPath:t,packageManager:r}){console.log(d.default.bold(`✅ Your project is ready!`));console.log();if(t){console.log(`To run your project, navigate to the directory and run one of the following ${r} commands.`);console.log();console.log(`- ${d.default.bold("cd "+t)}`)}else{console.log(`To run your project, run one of the following ${r} commands.`);console.log()}console.log(`- ${d.default.bold((0,E.formatRunCommand)(r,"android"))}`);let i="";if(!D){i=" # you need to use macOS to build the iOS project - use the Expo app if you need to do iOS development without a Mac"}console.log(`- ${d.default.bold((0,E.formatRunCommand)(r,"ios"))}${i}`);console.log(`- ${d.default.bold((0,E.formatRunCommand)(r,"web"))}`)}r.logProjectReady=logProjectReady;async function installPodsAsync(t){let r=logNewSection("Installing CocoaPods.");if(process.platform!=="darwin"){r.succeed("Skipped installing CocoaPods because operating system is not macOS.");return false}const i=new p.CocoaPodsPackageManager({cwd:A.default.join(t,"ios"),silent:!w.env.EXPO_DEBUG});if(!await i.isCLIInstalledAsync()){try{r.text="CocoaPods CLI not found in your $PATH, installing it now.";r.render();await i.installCLIAsync();r.succeed("Installed CocoaPods CLI");r=logNewSection("Running `pod install` in the `ios` directory.")}catch(t){r.stopAndPersist({symbol:"⚠️ ",text:d.default.red("Unable to install the CocoaPods CLI. Continuing with initializing the project, you can install CocoaPods afterwards.")});if(t.message){v.Log.error(`- ${t.message}`)}return false}}try{await i.installAsync();r.succeed("Installed pods and initialized Xcode workspace.");return true}catch(t){r.stopAndPersist({symbol:"⚠️ ",text:d.default.red("Something went wrong running `pod install` in the `ios` directory. Continuing with initializing the project, you can debug this afterwards.")});if(t.message){v.Log.error(`- ${t.message}`)}return false}}r.installPodsAsync=installPodsAsync;function logNewSection(t){const r=w.env.CI||w.env.EXPO_DEBUG;const i=(0,y.default)({text:d.default.bold(t),isEnabled:!r,stream:r?process.stdout:process.stderr});i.start();return i}r.logNewSection=logNewSection},9436:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const h=l(i(8746));const p=i(9247);const d=i(5733);const m=i(3744);const g=i(3490);const y=i(7984)("expo:init:cli");async function run(){const t=process.argv.slice(2)??[];const r={"--yes":Boolean,"--no-install":Boolean,"--help":Boolean,"--version":Boolean,"-y":"--yes","-h":"--help","-v":"--version"};const o=(0,g.assertWithOptionsArgs)(r,{argv:t,permissive:true});if(o["--version"]){m.Log.exit(i(4147).version,0)}if(o["--help"]){const t=p.CLI_NAME.replace("create-","");(0,g.printHelp)(`Creates a new Expo project`,(0,h.default)`npx ${p.CLI_NAME} {cyan <path>} [options]`,[`-y, --yes Use the default options for creating a project`,` --no-install Skip installing npm packages or CocoaPods`,(0,h.default)`-t, --template {gray [pkg]} NPM template to use: default, blank, blank-typescript, tabs, bare-minimum. Default: default`,(0,h.default)`-e, --example {gray [name]} Example name from {underline https://github.com/expo/examples}.`,`-v, --version Version number`,`-h, --help Usage info`].join("\n"),(0,h.default)`
|
|
99
|
+
*/t.exports=function(t){if(typeof t==="number"){return t-t===0}if(typeof t==="string"&&t.trim()!==""){return Number.isFinite?Number.isFinite(+t):isFinite(+t)}return false}},5418:(t,r,i)=>{const{URL:o}=i(7310);const{join:a}=i(1017);const u=i(7147);const{promisify:l}=i(3837);const{tmpdir:h}=i(2037);const p=i(2447);const d=l(u.writeFile);const m=l(u.mkdir);const g=l(u.readFile);const compareVersions=(t,r)=>t.localeCompare(r,"en-US",{numeric:true});const encode=t=>encodeURIComponent(t).replace(/^%40/,"@");const getFile=async(t,r)=>{const i=h();const o=a(i,"update-check");if(!u.existsSync(o)){await m(o)}let l=`${t.name}-${r}.json`;if(t.scope){l=`${t.scope}-${l}`}return a(o,l)};const evaluateCache=async(t,r,i)=>{if(u.existsSync(t)){const o=await g(t,"utf8");const{lastUpdate:a,latest:u}=JSON.parse(o);const l=a+i;if(l>r){return{shouldCheck:false,latest:u}}}return{shouldCheck:true,latest:null}};const updateCache=async(t,r,i)=>{const o=JSON.stringify({latest:r,lastUpdate:i});await d(t,o,"utf8")};const loadPackage=(t,r)=>new Promise(((o,a)=>{const u={host:t.hostname,path:t.pathname,port:t.port,headers:{accept:"application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*"},timeout:2e3};if(r){u.headers.authorization=`${r.type} ${r.token}`}const{get:l}=i(t.protocol==="https:"?5687:3685);l(u,(t=>{const{statusCode:r}=t;if(r!==200){const i=new Error(`Request failed with code ${r}`);i.code=r;a(i);t.resume();return}let i="";t.setEncoding("utf8");t.on("data",(t=>{i+=t}));t.on("end",(()=>{try{const t=JSON.parse(i);o(t)}catch(t){a(t)}}))})).on("error",a).on("timeout",a)}));const getMostRecent=async({full:t,scope:r},a)=>{const u=p(r);const l=new o(t,u);let h=null;try{h=await loadPackage(l)}catch(t){if(t.code&&String(t.code).startsWith(4)){const t=i(1384);const r=t(u,{recursive:true});h=await loadPackage(l,r)}else{throw t}}const d=h["dist-tags"][a];if(!d){throw new Error(`Distribution tag ${a} is not available`)}return d};const y={interval:36e5,distTag:"latest"};const getDetails=t=>{const r={full:encode(t)};if(t.includes("/")){const i=t.split("/");r.scope=i[0];r.name=i[1]}else{r.scope=null;r.name=t}return r};t.exports=async(t,r)=>{if(typeof t!=="object"){throw new Error("The first parameter should be your package.json file content")}const i=getDetails(t.name);const o=Date.now();const{distTag:a,interval:u}=Object.assign({},y,r);const l=await getFile(i,a);let h=null;let p=true;({shouldCheck:p,latest:h}=await evaluateCache(l,o,u));if(p){h=await getMostRecent(i,a);await updateCache(l,h,o)}const d=compareVersions(t.version,h);if(d===-1){return{latest:h,fromCache:!p}}return null}},8593:(t,r,i)=>{"use strict";const{builtinModules:o}=i(8188);var a=new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");var u=["node_modules","favicon.ico"];function validate(t){var r=[];var i=[];if(t===null){i.push("name cannot be null");return done(r,i)}if(t===undefined){i.push("name cannot be undefined");return done(r,i)}if(typeof t!=="string"){i.push("name must be a string");return done(r,i)}if(!t.length){i.push("name length must be greater than zero")}if(t.match(/^\./)){i.push("name cannot start with a period")}if(t.match(/^_/)){i.push("name cannot start with an underscore")}if(t.trim()!==t){i.push("name cannot contain leading or trailing spaces")}u.forEach((function(r){if(t.toLowerCase()===r){i.push(r+" is a blacklisted name")}}));if(o.includes(t.toLowerCase())){r.push(t+" is a core module name")}if(t.length>214){r.push("name can no longer contain more than 214 characters")}if(t.toLowerCase()!==t){r.push("name can no longer contain capital letters")}if(/[~'!()*]/.test(t.split("/").slice(-1)[0])){r.push('name can no longer contain special characters ("~\'!()*")')}if(encodeURIComponent(t)!==t){var l=t.match(a);if(l){var h=l[1];var p=l[2];if(encodeURIComponent(h)===h&&encodeURIComponent(p)===p){return done(r,i)}}i.push("name can only contain URL-friendly characters")}return done(r,i)}var done=function(t,r){var i={validForNewPackages:r.length===0&&t.length===0,validForOldPackages:r.length===0,warnings:t,errors:r};if(!i.warnings.length){delete i.warnings}if(!i.errors.length){delete i.errors}return i};t.exports=validate},5523:t=>{t.exports=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531],[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]]},1205:(t,r,i)=>{"use strict";var o=i(6420);var a=i(5523);var u={nul:0,control:0};t.exports=function wcwidth(t){return wcswidth(t,u)};t.exports.config=function(t){t=o(t||{},u);return function wcwidth(r){return wcswidth(r,t)}};function wcswidth(t,r){if(typeof t!=="string")return wcwidth(t,r);var i=0;for(var o=0;o<t.length;o++){var a=wcwidth(t.charCodeAt(o),r);if(a<0)return-1;i+=a}return i}function wcwidth(t,r){if(t===0)return r.nul;if(t<32||t>=127&&t<160)return r.control;if(bisearch(t))return 0;return 1+(t>=4352&&(t<=4447||t==9001||t==9002||t>=11904&&t<=42191&&t!=12351||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65135||t>=65280&&t<=65376||t>=65504&&t<=65510||t>=131072&&t<=196605||t>=196608&&t<=262141))}function bisearch(t){var r=0;var i=a.length-1;var o;if(t<a[0][0]||t>a[i][1])return false;while(i>=r){o=Math.floor((r+i)/2);if(t>a[o][1])r=o+1;else if(t<a[o][0])i=o-1;else return true}return false}},460:(t,r,i)=>{"use strict";t.exports=writeFile;t.exports.sync=writeFileSync;t.exports._getTmpname=getTmpname;t.exports._cleanupOnExit=cleanupOnExit;var o=i(552);var a=i(5091);var u=i(2028);var l=i(1017);var h={};var p=function getId(){try{var t=i(1267);return t.threadId}catch(t){return 0}}();var d=0;function getTmpname(t){return t+"."+a(__filename).hash(String(process.pid)).hash(String(p)).hash(String(++d)).result()}function cleanupOnExit(t){return function(){try{o.unlinkSync(typeof t==="function"?t():t)}catch(t){}}}function writeFile(t,r,i,a){if(i){if(i instanceof Function){a=i;i={}}else if(typeof i==="string"){i={encoding:i}}}else{i={}}var p=i.Promise||global.Promise;var d;var m;var g;var y=u(cleanupOnExit((()=>g)));var A=l.resolve(t);new p((function serializeSameFile(t){if(!h[A])h[A]=[];h[A].push(t);if(h[A].length===1)t()})).then((function getRealPath(){return new p((function(r){o.realpath(t,(function(i,o){d=o||t;g=getTmpname(d);r()}))}))})).then((function stat(){return new p((function stat(t){if(i.mode&&i.chown)t();else{o.stat(d,(function(r,o){if(r||!o)t();else{i=Object.assign({},i);if(i.mode==null){i.mode=o.mode}if(i.chown==null&&process.getuid){i.chown={uid:o.uid,gid:o.gid}}t()}}))}}))})).then((function thenWriteFile(){return new p((function(t,r){o.open(g,"w",i.mode,(function(i,o){m=o;if(i)r(i);else t()}))}))})).then((function write(){return new p((function(t,a){if(Buffer.isBuffer(r)){o.write(m,r,0,r.length,0,(function(r){if(r)a(r);else t()}))}else if(r!=null){o.write(m,String(r),0,String(i.encoding||"utf8"),(function(r){if(r)a(r);else t()}))}else t()}))})).then((function syncAndClose(){return new p((function(t,r){if(i.fsync!==false){o.fsync(m,(function(i){if(i)o.close(m,(()=>r(i)));else o.close(m,t)}))}else{o.close(m,t)}}))})).then((function chown(){m=null;if(i.chown){return new p((function(t,r){o.chown(g,i.chown.uid,i.chown.gid,(function(i){if(i)r(i);else t()}))}))}})).then((function chmod(){if(i.mode){return new p((function(t,r){o.chmod(g,i.mode,(function(i){if(i)r(i);else t()}))}))}})).then((function rename(){return new p((function(t,r){o.rename(g,d,(function(i){if(i)r(i);else t()}))}))})).then((function success(){y();a()}),(function fail(t){return new p((t=>m?o.close(m,t):t())).then((()=>{y();o.unlink(g,(function(){a(t)}))}))})).then((function checkQueue(){h[A].shift();if(h[A].length>0){h[A][0]()}else delete h[A]}))}function writeFileSync(t,r,i){if(typeof i==="string")i={encoding:i};else if(!i)i={};try{t=o.realpathSync(t)}catch(t){}var a=getTmpname(t);if(!i.mode||!i.chown){try{var l=o.statSync(t);i=Object.assign({},i);if(!i.mode){i.mode=l.mode}if(!i.chown&&process.getuid){i.chown={uid:l.uid,gid:l.gid}}}catch(t){}}var h;var p=cleanupOnExit(a);var d=u(p);try{h=o.openSync(a,"w",i.mode);if(Buffer.isBuffer(r)){o.writeSync(h,r,0,r.length,0)}else if(r!=null){o.writeSync(h,String(r),0,String(i.encoding||"utf8"))}if(i.fsync!==false){o.fsyncSync(h)}o.closeSync(h);if(i.chown)o.chownSync(a,i.chown.uid,i.chown.gid);if(i.mode)o.chmodSync(a,i.mode);o.renameSync(a,t);d()}catch(t){if(h){try{o.closeSync(h)}catch(t){}}d();p();throw t}}},1389:t=>{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next){yield t.value}}}},4461:(t,r,i)=>{"use strict";t.exports=Yallist;Yallist.Node=Node;Yallist.create=Yallist;function Yallist(t){var r=this;if(!(r instanceof Yallist)){r=new Yallist}r.tail=null;r.head=null;r.length=0;if(t&&typeof t.forEach==="function"){t.forEach((function(t){r.push(t)}))}else if(arguments.length>0){for(var i=0,o=arguments.length;i<o;i++){r.push(arguments[i])}}return r}Yallist.prototype.removeNode=function(t){if(t.list!==this){throw new Error("removing node which does not belong to this list")}var r=t.next;var i=t.prev;if(r){r.prev=i}if(i){i.next=r}if(t===this.head){this.head=r}if(t===this.tail){this.tail=i}t.list.length--;t.next=null;t.prev=null;t.list=null;return r};Yallist.prototype.unshiftNode=function(t){if(t===this.head){return}if(t.list){t.list.removeNode(t)}var r=this.head;t.list=this;t.next=r;if(r){r.prev=t}this.head=t;if(!this.tail){this.tail=t}this.length++};Yallist.prototype.pushNode=function(t){if(t===this.tail){return}if(t.list){t.list.removeNode(t)}var r=this.tail;t.list=this;t.prev=r;if(r){r.next=t}this.tail=t;if(!this.head){this.head=t}this.length++};Yallist.prototype.push=function(){for(var t=0,r=arguments.length;t<r;t++){push(this,arguments[t])}return this.length};Yallist.prototype.unshift=function(){for(var t=0,r=arguments.length;t<r;t++){unshift(this,arguments[t])}return this.length};Yallist.prototype.pop=function(){if(!this.tail){return undefined}var t=this.tail.value;this.tail=this.tail.prev;if(this.tail){this.tail.next=null}else{this.head=null}this.length--;return t};Yallist.prototype.shift=function(){if(!this.head){return undefined}var t=this.head.value;this.head=this.head.next;if(this.head){this.head.prev=null}else{this.tail=null}this.length--;return t};Yallist.prototype.forEach=function(t,r){r=r||this;for(var i=this.head,o=0;i!==null;o++){t.call(r,i.value,o,this);i=i.next}};Yallist.prototype.forEachReverse=function(t,r){r=r||this;for(var i=this.tail,o=this.length-1;i!==null;o--){t.call(r,i.value,o,this);i=i.prev}};Yallist.prototype.get=function(t){for(var r=0,i=this.head;i!==null&&r<t;r++){i=i.next}if(r===t&&i!==null){return i.value}};Yallist.prototype.getReverse=function(t){for(var r=0,i=this.tail;i!==null&&r<t;r++){i=i.prev}if(r===t&&i!==null){return i.value}};Yallist.prototype.map=function(t,r){r=r||this;var i=new Yallist;for(var o=this.head;o!==null;){i.push(t.call(r,o.value,this));o=o.next}return i};Yallist.prototype.mapReverse=function(t,r){r=r||this;var i=new Yallist;for(var o=this.tail;o!==null;){i.push(t.call(r,o.value,this));o=o.prev}return i};Yallist.prototype.reduce=function(t,r){var i;var o=this.head;if(arguments.length>1){i=r}else if(this.head){o=this.head.next;i=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=0;o!==null;a++){i=t(i,o.value,a);o=o.next}return i};Yallist.prototype.reduceReverse=function(t,r){var i;var o=this.tail;if(arguments.length>1){i=r}else if(this.tail){o=this.tail.prev;i=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var a=this.length-1;o!==null;a--){i=t(i,o.value,a);o=o.prev}return i};Yallist.prototype.toArray=function(){var t=new Array(this.length);for(var r=0,i=this.head;i!==null;r++){t[r]=i.value;i=i.next}return t};Yallist.prototype.toArrayReverse=function(){var t=new Array(this.length);for(var r=0,i=this.tail;i!==null;r++){t[r]=i.value;i=i.prev}return t};Yallist.prototype.slice=function(t,r){r=r||this.length;if(r<0){r+=this.length}t=t||0;if(t<0){t+=this.length}var i=new Yallist;if(r<t||r<0){return i}if(t<0){t=0}if(r>this.length){r=this.length}for(var o=0,a=this.head;a!==null&&o<t;o++){a=a.next}for(;a!==null&&o<r;o++,a=a.next){i.push(a.value)}return i};Yallist.prototype.sliceReverse=function(t,r){r=r||this.length;if(r<0){r+=this.length}t=t||0;if(t<0){t+=this.length}var i=new Yallist;if(r<t||r<0){return i}if(t<0){t=0}if(r>this.length){r=this.length}for(var o=this.length,a=this.tail;a!==null&&o>r;o--){a=a.prev}for(;a!==null&&o>t;o--,a=a.prev){i.push(a.value)}return i};Yallist.prototype.splice=function(t,r,...i){if(t>this.length){t=this.length-1}if(t<0){t=this.length+t}for(var o=0,a=this.head;a!==null&&o<t;o++){a=a.next}var u=[];for(var o=0;a&&o<r;o++){u.push(a.value);a=this.removeNode(a)}if(a===null){a=this.tail}if(a!==this.head&&a!==this.tail){a=a.prev}for(var o=0;o<i.length;o++){a=insert(this,a,i[o])}return u};Yallist.prototype.reverse=function(){var t=this.head;var r=this.tail;for(var i=t;i!==null;i=i.prev){var o=i.prev;i.prev=i.next;i.next=o}this.head=r;this.tail=t;return this};function insert(t,r,i){var o=r===t.head?new Node(i,null,r,t):new Node(i,r,r.next,t);if(o.next===null){t.tail=o}if(o.prev===null){t.head=o}t.length++;return o}function push(t,r){t.tail=new Node(r,t.tail,null,t);if(!t.head){t.head=t.tail}t.length++}function unshift(t,r){t.head=new Node(r,null,t.head,t);if(!t.tail){t.tail=t.head}t.length++}function Node(t,r,i,o){if(!(this instanceof Node)){return new Node(t,r,i,o)}this.list=o;this.value=t;if(r){r.next=this;this.prev=r}else{this.prev=null}if(i){i.prev=this;this.next=i}else{this.next=null}}try{i(1389)(Yallist)}catch(t){}},6282:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const h=i(6779);const p=l(i(5130));const d=l(i(7561));const m=l(i(9411));const g=i(7261);const y=l(i(460));const A=u(i(1486));const b=(0,g.promisify)(y.default);const v={badJsonDefault:undefined,jsonParseErrorDefault:undefined,cantReadFileDefault:undefined,ensureDir:false,default:undefined,json5:false,space:2,addNewLineAtEOF:true};class JsonFile{file;options;static read=read;static readAsync=readAsync;static parseJsonString=parseJsonString;static write=write;static writeAsync=writeAsync;static get=getSync;static getAsync=getAsync;static set=setSync;static setAsync=setAsync;static merge=merge;static mergeAsync=mergeAsync;static deleteKey=deleteKey;static deleteKeyAsync=deleteKeyAsync;static deleteKeys=deleteKeys;static deleteKeysAsync=deleteKeysAsync;static rewrite=rewrite;static rewriteAsync=rewriteAsync;constructor(t,r={}){this.file=t;this.options=r}read(t){return read(this.file,this._getOptions(t))}async readAsync(t){return readAsync(this.file,this._getOptions(t))}write(t,r){return write(this.file,t,this._getOptions(r))}async writeAsync(t,r){return writeAsync(this.file,t,this._getOptions(r))}parseJsonString(t,r){return parseJsonString(t,r)}get(t,r,i){return getSync(this.file,t,r,this._getOptions(i))}async getAsync(t,r,i){return getAsync(this.file,t,r,this._getOptions(i))}set(t,r,i){return setSync(this.file,t,r,this._getOptions(i))}async setAsync(t,r,i){return setAsync(this.file,t,r,this._getOptions(i))}async merge(t,r){return merge(this.file,t,this._getOptions(r))}async mergeAsync(t,r){return mergeAsync(this.file,t,this._getOptions(r))}deleteKey(t,r){return deleteKey(this.file,t,this._getOptions(r))}async deleteKeyAsync(t,r){return deleteKeyAsync(this.file,t,this._getOptions(r))}deleteKeys(t,r){return deleteKeys(this.file,t,this._getOptions(r))}async deleteKeysAsync(t,r){return deleteKeysAsync(this.file,t,this._getOptions(r))}rewrite(t){return rewrite(this.file,this._getOptions(t))}async rewriteAsync(t){return rewriteAsync(this.file,this._getOptions(t))}_getOptions(t){return{...this.options,...t}}}r["default"]=JsonFile;function read(t,r){let i;try{i=d.default.readFileSync(t,"utf8")}catch(o){assertEmptyJsonString(i,t);const a=cantReadFileDefault(r);if(a===undefined){throw new A.default(`Can't read JSON file: ${t}`,o,o.code,t)}else{return a}}return parseJsonString(i,r,t)}async function readAsync(t,r){let i;try{i=await d.default.promises.readFile(t,"utf8")}catch(o){assertEmptyJsonString(i,t);const a=cantReadFileDefault(r);if(a===undefined){throw new A.default(`Can't read JSON file: ${t}`,o,o.code)}else{return a}}return parseJsonString(i,r)}function parseJsonString(t,r,i){assertEmptyJsonString(t,i);try{if(_getOption(r,"json5")){return p.default.parse(t)}else{return JSON.parse(t)}}catch(o){const a=jsonParseErrorDefault(r);if(a===undefined){const r=locationFromSyntaxError(o,t);if(r){const i=(0,h.codeFrameColumns)(t,{start:r});o.codeFrame=i;o.message+=`\n${i}`}throw new A.default(`Error parsing JSON: ${t}`,o,"EJSONPARSE",i)}else{return a}}}function getSync(t,r,i,o){const a=read(t,o);if(r in a){return a[r]}if(i===undefined){throw new A.default(`No value at key path "${String(r)}" in JSON object from: ${t}`)}return i}async function getAsync(t,r,i,o){const a=await readAsync(t,o);if(r in a){return a[r]}if(i===undefined){throw new A.default(`No value at key path "${String(r)}" in JSON object from: ${t}`)}return i}function write(t,r,i){if(i?.ensureDir){d.default.mkdirSync(m.default.dirname(t),{recursive:true})}const o=_getOption(i,"space");const a=_getOption(i,"json5");const u=_getOption(i,"addNewLineAtEOF");let l;try{if(a){l=p.default.stringify(r,null,o)}else{l=JSON.stringify(r,null,o)}}catch(r){throw new A.default(`Couldn't JSON.stringify object for file: ${t}`,r)}const h=u?`${l}\n`:l;y.default.sync(t,h,{});return r}async function writeAsync(t,r,i){if(i?.ensureDir){await d.default.promises.mkdir(m.default.dirname(t),{recursive:true})}const o=_getOption(i,"space");const a=_getOption(i,"json5");const u=_getOption(i,"addNewLineAtEOF");let l;try{if(a){l=p.default.stringify(r,null,o)}else{l=JSON.stringify(r,null,o)}}catch(r){throw new A.default(`Couldn't JSON.stringify object for file: ${t}`,r)}const h=u?`${l}\n`:l;await b(t,h,{});return r}function setSync(t,r,i,o){const a=read(t,o);return write(t,{...a,[r]:i},o)}async function setAsync(t,r,i,o){const a=await readAsync(t,o);return writeAsync(t,{...a,[r]:i},o)}async function mergeAsync(t,r,i){const o=await readAsync(t,i);if(Array.isArray(r)){Object.assign(o,...r)}else{Object.assign(o,r)}return writeAsync(t,o,i)}function merge(t,r,i){const o=read(t,i);if(Array.isArray(r)){Object.assign(o,...r)}else{Object.assign(o,r)}return write(t,o,i)}async function deleteKeyAsync(t,r,i){return deleteKeysAsync(t,[r],i)}function deleteKey(t,r,i){return deleteKeys(t,[r],i)}async function deleteKeysAsync(t,r,i){const o=await readAsync(t,i);let a=false;for(let t=0;t<r.length;t++){const i=r[t];if(o.hasOwnProperty(i)){delete o[i];a=true}}if(a){return writeAsync(t,o,i)}return o}function deleteKeys(t,r,i){const o=read(t,i);let a=false;for(let t=0;t<r.length;t++){const i=r[t];if(o.hasOwnProperty(i)){delete o[i];a=true}}if(a){return write(t,o,i)}return o}async function rewriteAsync(t,r){const i=await readAsync(t,r);return writeAsync(t,i,r)}function rewrite(t,r){return write(t,read(t,r),r)}function jsonParseErrorDefault(t={}){if(t.jsonParseErrorDefault===undefined){return t.default}else{return t.jsonParseErrorDefault}}function cantReadFileDefault(t={}){if(t.cantReadFileDefault===undefined){return t.default}else{return t.cantReadFileDefault}}function _getOption(t,r){if(t){if(t[r]!==undefined){return t[r]}}return v[r]}function locationFromSyntaxError(t,r){if("lineNumber"in t&&"columnNumber"in t){return{line:t.lineNumber,column:t.columnNumber}}const i=/at position (\d+)/.exec(t.message);if(i){const t=parseInt(i[1],10);const o=r.slice(0,t+1).split("\n");return{line:o.length,column:o[o.length-1].length}}return null}function assertEmptyJsonString(t,r){if(t?.trim()===""){throw new A.EmptyJsonFileError(r)}}},1486:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.EmptyJsonFileError=void 0;class JsonFileError extends Error{cause;code;fileName;isJsonFileError;constructor(t,r,i,o){let a=t;if(o){a+=`\n${r?"├":"└"}─ File: ${o}`}if(r){a+=`\n└─ Cause: ${r.name}: ${r.message}`}super(a);this.name=this.constructor.name;this.cause=r;this.code=i;this.fileName=o;this.isJsonFileError=true}}r["default"]=JsonFileError;class EmptyJsonFileError extends JsonFileError{constructor(t){super(`Cannot parse an empty JSON string`,undefined,"EJSONEMPTY",t)}}r.EmptyJsonFileError=EmptyJsonFileError},6779:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.codeFrameColumns=codeFrameColumns;r["default"]=_default;var o=_interopRequireWildcard(i(932));function _getRequireWildcardCache(){if(typeof WeakMap!=="function")return null;var t=new WeakMap;_getRequireWildcardCache=function(){return t};return t}function _interopRequireWildcard(t){if(t&&t.__esModule){return t}if(t===null||typeof t!=="object"&&typeof t!=="function"){return{default:t}}var r=_getRequireWildcardCache();if(r&&r.has(t)){return r.get(t)}var i={};var o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t){if(Object.prototype.hasOwnProperty.call(t,a)){var u=o?Object.getOwnPropertyDescriptor(t,a):null;if(u&&(u.get||u.set)){Object.defineProperty(i,a,u)}else{i[a]=t[a]}}}i.default=t;if(r){r.set(t,i)}return i}let a=false;function getDefs(t){return{gutter:t.grey,marker:t.red.bold,message:t.red.bold}}const u=/\r\n|[\n\r\u2028\u2029]/;function getMarkerLines(t,r,i){const o=Object.assign({column:0,line:-1},t.start);const a=Object.assign({},o,t.end);const{linesAbove:u=2,linesBelow:l=3}=i||{};const h=o.line;const p=o.column;const d=a.line;const m=a.column;let g=Math.max(h-(u+1),0);let y=Math.min(r.length,d+l);if(h===-1){g=0}if(d===-1){y=r.length}const A=d-h;const b={};if(A){for(let t=0;t<=A;t++){const i=t+h;if(!p){b[i]=true}else if(t===0){const t=r[i-1].length;b[i]=[p,t-p+1]}else if(t===A){b[i]=[0,m]}else{const o=r[i-t].length;b[i]=[0,o]}}}else{if(p===m){if(p){b[h]=[p,0]}else{b[h]=true}}else{b[h]=[p,m-p]}}return{start:g,end:y,markerLines:b}}function codeFrameColumns(t,r,i={}){const a=(i.highlightCode||i.forceColor)&&(0,o.shouldHighlight)(i);const l=(0,o.getChalk)(i);const h=getDefs(l);const maybeHighlight=(t,r)=>a?t(r):r;const p=t.split(u);const{start:d,end:m,markerLines:g}=getMarkerLines(r,p,i);const y=r.start&&typeof r.start.column==="number";const A=String(m).length;const b=a?(0,o.default)(t,i):t;let v=b.split(u).slice(d,m).map(((t,r)=>{const o=d+1+r;const a=` ${o}`.slice(-A);const u=` ${a} | `;const l=g[o];const p=!g[o+1];if(l){let r="";if(Array.isArray(l)){const o=t.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," ");const a=l[1]||1;r=["\n ",maybeHighlight(h.gutter,u.replace(/\d/g," ")),o,maybeHighlight(h.marker,"^").repeat(a)].join("");if(p&&i.message){r+=" "+maybeHighlight(h.message,i.message)}}return[maybeHighlight(h.marker,">"),maybeHighlight(h.gutter,u),t,r].join("")}else{return` ${maybeHighlight(h.gutter,u)}${t}`}})).join("\n");if(i.message&&!y){v=`${" ".repeat(A+1)}${i.message}\n${v}`}if(a){return l.reset(v)}else{return v}}function _default(t,r,i,o={}){if(!a){a=true;const t="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning){process.emitWarning(t,"DeprecationWarning")}else{const r=new Error(t);r.name="DeprecationWarning";console.warn(new Error(t))}}i=Math.max(i,0);const u={start:{column:i,line:r}};return codeFrameColumns(t,u,o)}},5997:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true})},7496:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__exportStar||function(t,r){for(var i in t)if(i!=="default"&&!Object.prototype.hasOwnProperty.call(r,i))o(r,t,i)};Object.defineProperty(r,"__esModule",{value:true});r.isYarnOfflineAsync=void 0;a(i(5997),r);a(i(1574),r);a(i(1178),r);a(i(6125),r);a(i(57),r);a(i(6805),r);a(i(3746),r);var u=i(822);Object.defineProperty(r,"isYarnOfflineAsync",{enumerable:true,get:function(){return u.isYarnOfflineAsync}})},1574:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getImprovedPodInstallError=r.getPodRepoUpdateMessage=r.getPodUpdateMessage=r.CocoaPodsPackageManager=r.extractMissingDependencyError=r.CocoaPodsError=void 0;const a=o(i(5642));const u=o(i(8746));const l=i(7147);const h=o(i(2037));const p=o(i(1017));const d=i(6418);class CocoaPodsError extends Error{code;cause;name="CocoaPodsError";isPackageManagerError=true;constructor(t,r,i){super(i?`${t}\n└─ Cause: ${i.message}`:t);this.code=r;this.cause=i}}r.CocoaPodsError=CocoaPodsError;function extractMissingDependencyError(t){const r=t.match(/Unable to find a specification for ['"`]([\w-_\d\s]+)['"`] depended upon by ['"`]([\w-_\d\s]+)['"`]/);if(r){return[r[1],r[2]]}return null}r.extractMissingDependencyError=extractMissingDependencyError;class CocoaPodsPackageManager{options;silent;static getPodProjectRoot(t){if(CocoaPodsPackageManager.isUsingPods(t))return t;const r=p.default.join(t,"ios");if(CocoaPodsPackageManager.isUsingPods(r))return r;const i=p.default.join(t,"macos");if(CocoaPodsPackageManager.isUsingPods(i))return i;return null}static isUsingPods(t){return(0,l.existsSync)(p.default.join(t,"Podfile"))}static async gemInstallCLIAsync(t=false,r={stdio:"inherit"}){const i=["install","cocoapods","--no-document"];try{await(0,a.default)("gem",i,r)}catch(o){if(t){throw new CocoaPodsError("Failed to install CocoaPods CLI with gem (recommended)","COMMAND_FAILED",o)}await(0,d.spawnSudoAsync)(["gem",...i],r)}}static async brewLinkCLIAsync(t={stdio:"inherit"}){await(0,a.default)("brew",["link","cocoapods"],t)}static async brewInstallCLIAsync(t={stdio:"inherit"}){await(0,a.default)("brew",["install","cocoapods"],t)}static async installCLIAsync({nonInteractive:t=false,spawnOptions:r={stdio:"inherit"}}){if(!r){r={stdio:"inherit"}}const i=!!r.ignoreStdio;try{!i&&console.log(`› Attempting to install CocoaPods CLI with Gem`);await CocoaPodsPackageManager.gemInstallCLIAsync(t,r);!i&&console.log(`› Successfully installed CocoaPods CLI with Gem`);return true}catch(t){if(!i){console.log(u.default.yellow(`› Failed to install CocoaPods CLI with Gem`));console.log(u.default.red(t.stderr??t.message));console.log(`› Attempting to install CocoaPods CLI with Homebrew`)}try{await CocoaPodsPackageManager.brewInstallCLIAsync(r);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(r)){try{await CocoaPodsPackageManager.brewLinkCLIAsync(r);if(!await CocoaPodsPackageManager.isCLIInstalledAsync(r)){throw new CocoaPodsError("CLI could not be installed automatically with gem or Homebrew, please install CocoaPods manually and try again","NO_CLI",t)}}catch(t){throw new CocoaPodsError("Homebrew installation appeared to succeed but CocoaPods CLI not found in PATH and unable to link.","NO_CLI",t)}}!i&&console.log(`› Successfully installed CocoaPods CLI with Homebrew`);return true}catch(t){!i&&console.warn(u.default.yellow(`› Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`));throw new CocoaPodsError(`Failed to install CocoaPods with Homebrew. Please install CocoaPods CLI manually and try again.`,"NO_CLI",t)}}}static isAvailable(t,r){if(process.platform!=="darwin"){!r&&console.log(u.default.red("CocoaPods is only supported on macOS machines"));return false}if(!CocoaPodsPackageManager.isUsingPods(t)){!r&&console.log(u.default.yellow("CocoaPods is not supported in this project"));return false}return true}static async isCLIInstalledAsync(t={stdio:"inherit"}){try{await(0,a.default)("pod",["--version"],t);return true}catch{return false}}constructor({cwd:t,silent:r}){this.silent=!!r;this.options={cwd:t,stdio:"pipe"}}get name(){return"CocoaPods"}async installAsync({spinner:t}={}){await this._installAsync({spinner:t})}isCLIInstalledAsync(){return CocoaPodsPackageManager.isCLIInstalledAsync(this.options)}installCLIAsync(){return CocoaPodsPackageManager.installCLIAsync({nonInteractive:true,spawnOptions:this.options})}async handleInstallErrorAsync({error:t,shouldUpdate:r=true,updatedPackages:i=[],spinner:o}){if(!t.output){throw t}if(!r){throw getImprovedPodInstallError(t,{cwd:this.options.cwd})}const a=t.output.join(h.default.EOL).trim();const{updatePackage:l,shouldUpdateRepo:p}=getPodUpdateMessage(a);if(!l||i.includes(l)){return await this._installAsync({spinner:o,shouldRepoUpdate:true,shouldUpdate:false,updatedPackages:i})}i.push(l);return await this.runInstallTypeCommandAsync(["update",l,p?"":"--no-repo-update"].filter(Boolean),{formatWarning(){const t=`Failed to update ${u.default.bold(l)}. Attempting to update the repo instead.`;return t},spinner:o,updatedPackages:i})}async _installAsync({shouldRepoUpdate:t,...r}={}){return await this.runInstallTypeCommandAsync(["install",t?"--repo-update":""].filter(Boolean),{formatWarning(t){return getPodRepoUpdateMessage(t.output.join(h.default.EOL).trim()).message},...r})}async runInstallTypeCommandAsync(t,{formatWarning:r,...i}={}){try{return await this._runAsync(t)}catch(t){if(r){const o=r(t);if(i.spinner){i.spinner.text=u.default.bold(o)}if(!this.silent){console.warn(u.default.yellow(o))}}return await this.handleInstallErrorAsync({error:t,...i})}}async addWithParametersAsync(t,r){throw new Error("Unimplemented")}addAsync(t=[]){throw new Error("Unimplemented")}addDevAsync(t=[]){throw new Error("Unimplemented")}addGlobalAsync(t=[]){throw new Error("Unimplemented")}removeAsync(t=[]){throw new Error("Unimplemented")}removeDevAsync(t=[]){throw new Error("Unimplemented")}removeGlobalAsync(t=[]){throw new Error("Unimplemented")}async versionAsync(){const{stdout:t}=await(0,a.default)("pod",["--version"],this.options);return t.trim()}async configAsync(t){throw new Error("Unimplemented")}async removeLockfileAsync(){throw new Error("Unimplemented")}async uninstallAsync(){throw new Error("Unimplemented")}async podRepoUpdateAsync(){try{await this._runAsync(["repo","update"])}catch(t){t.message=t.message||(t.stderr??t.stdout);throw new CocoaPodsError("The command `pod install --repo-update` failed","COMMAND_FAILED",t)}}async _runAsync(t){if(!this.silent){console.log(`> pod ${t.join(" ")}`)}const r=(0,a.default)("pod",[...t,"--ansi"],{...this.options,stdio:"pipe"});if(!this.silent){if(r.child.stdout){r.child.stdout.pipe(process.stdout)}}return await r}}r.CocoaPodsPackageManager=CocoaPodsPackageManager;function shouldPodRepoUpdate(t){const r=t;const i=r.includes("pod repo update")||r.includes("--no-repo-update");return i}function getPodUpdateMessage(t){const r=t.match(/run ['"`]pod update ([\w-_\d/]+)( --no-repo-update)?['"`] to apply changes/);return{updatePackage:r?.[1]??null,shouldUpdateRepo:!r?.[2]}}r.getPodUpdateMessage=getPodUpdateMessage;function getPodRepoUpdateMessage(t){const r=extractMissingDependencyError(t);const i=getPodUpdateMessage(t);let o;if(r){o=`Couldn't install: ${r[1]} » ${u.default.underline(r[0])}.`}else if(i?.updatePackage){o=`Couldn't install: ${i?.updatePackage}.`}else{o=`Couldn't install Pods.`}o+=` Updating the Pods project and trying again...`;return{message:o,...i}}r.getPodRepoUpdateMessage=getPodRepoUpdateMessage;function getImprovedPodInstallError(t,{cwd:r=process.cwd()}){const i=t.output.join(h.default.EOL).trim();if(t.stdout.match(/No [`'"]Podfile[`'"] found in the project directory/)){t.message=`No Podfile found in directory: ${r}. Ensure CocoaPods is setup any try again.`}else if(shouldPodRepoUpdate(i)){const r=extractMissingDependencyError(i);let o;if(r){o=`Couldn't install: ${r[1]} » ${u.default.underline(r[0])}`}else{o=`This is often due to native package versions mismatching`}let a;if(r?.[0]){if(r[0].match(/^(?:@?expo|@?react)(-|\/)/)){a=`Ensure the node module "${r[0]}" is installed in your project, then run 'npx pod-install' to try again.`}else{a=`Ensure the CocoaPod "${r[0]}" is installed in your project, then run 'npx pod-install' to try again.`}}else{a=`Try deleting the 'ios/Pods' folder or the 'ios/Podfile.lock' file and running 'npx pod-install' to resolve.`}t.message=`${o}. ${a}`;if(t.stdout){const r=t.stdout.split(h.default.EOL);const i=r.findIndex((t=>t.startsWith("[!]")));if(i!==-1){const o=r.slice(i).join(h.default.EOL);t.message+=`\n\n${u.default.gray(o)}`}}return new CocoaPodsError("Command `pod install --repo-update` failed.","COMMAND_FAILED",t)}else{let r=t.stderr.trim();const i=t.stdout.match(/\[!\]\s((?:.|\n)*)/)?.[1];if(i){if(t.message?.match(/pod exited with non-zero code: 1/)){t.message=""}r=null}t.message=[i,t.message,r].filter(Boolean).join("\n")}return new CocoaPodsError("Command `pod install` failed.","COMMAND_FAILED",t)}r.getImprovedPodInstallError=getImprovedPodInstallError},1729:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.BasePackageManager=void 0;const a=o(i(5642));const u=o(i(9491));const l=o(i(7147));const h=o(i(1017));class BasePackageManager{silent;log;options;constructor({silent:t,log:r,env:i=process.env,...o}={}){this.silent=!!t;this.log=r??(!t?console.log:undefined);this.options={stdio:t?undefined:"inherit",...o,env:{...this.getDefaultEnvironment(),...i}}}getDefaultEnvironment(){return{ADBLOCK:"1",DISABLE_OPENCOLLECTIVE:"1"}}ensureCwdDefined(t){const r=this.options.cwd?.toString();const i=this.constructor.name;const o=t?`.${t}`:"";(0,u.default)(r,`cwd is required for ${i}${o}`);return r}runAsync(t,r={}){this.log?.(`> ${this.name} ${t.join(" ")}`);return(0,a.default)(this.bin,t,{...this.options,...r})}runBinAsync(t,r={}){this.log?.(`> ${this.name} ${t.join(" ")}`);return(0,a.default)(this.bin,t,{...this.options,...r})}async versionAsync(){const{stdout:t}=await this.runAsync(["--version"],{stdio:undefined});return t.trim()}async getConfigAsync(t){const{stdout:r}=await this.runAsync(["config","get",t]);return r.trim()}async removeLockfileAsync(){const t=this.ensureCwdDefined("removeLockFile");const r=h.default.join(t,this.lockFile);await l.default.promises.rm(r,{force:true})}installAsync(t=[]){return this.runAsync(["install",...t])}async uninstallAsync(){const t=this.ensureCwdDefined("uninstallAsync");const r=h.default.join(t,"node_modules");await l.default.promises.rm(r,{force:true,recursive:true})}}r.BasePackageManager=BasePackageManager},6805:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.BunPackageManager=void 0;const o=i(1729);const a=i(3746);class BunPackageManager extends o.BasePackageManager{name="bun";bin="bun";lockFile=a.BUN_LOCK_FILE;workspaceRoot(){const t=(0,a.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new BunPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){return this.runAsync(["install",...t])}addAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add",...t])}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--dev",...t])}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--global",...t])}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove",...t])}removeGlobalAsync(t){return this.runAsync(["remove","--global",...t])}}r.BunPackageManager=BunPackageManager},1178:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.NpmPackageManager=void 0;const a=o(i(6282));const u=o(i(5642));const l=o(i(5440));const h=o(i(1017));const p=i(1729);const d=i(3746);const m=i(6418);class NpmPackageManager extends p.BasePackageManager{name="npm";bin="npm";lockFile=d.NPM_LOCK_FILE;workspaceRoot(){const t=(0,d.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new NpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}addAsync(t=[]){if(!t.length){return this.installAsync()}const{flags:r,versioned:i,unversioned:o}=this.parsePackageSpecs(t);return(0,m.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(i,"dependencies")),(()=>!o.length?this.runAsync(["install",...r]):this.runAsync(["install","--save",...r,...o.map((t=>t.raw))])))}addDevAsync(t=[]){if(!t.length){return this.installAsync()}const{flags:r,versioned:i,unversioned:o}=this.parsePackageSpecs(t);return(0,m.createPendingSpawnAsync)((()=>this.updatePackageFileAsync(i,"devDependencies")),(()=>!o.length?this.runAsync(["install",...r]):this.runAsync(["install","--save-dev",...r,...o.map((t=>t.raw))])))}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["install","--global",...t])}removeAsync(t){return this.runAsync(["uninstall",...t])}removeDevAsync(t){return this.runAsync(["uninstall","--save-dev",...t])}removeGlobalAsync(t){return this.runAsync(["uninstall","--global",...t])}runBinAsync(t,r={}){this.log?.(`> npx ${t.join(" ")}`);return(0,u.default)("npx",t,{...this.options,...r})}parsePackageSpecs(t){const r={flags:[],versioned:[],unversioned:[]};t.map((t=>{if(t.trim().startsWith("-")){r.flags.push(t);return null}return(0,l.default)(t)})).forEach((t=>{const i=!!t&&t.rawSpec!==""&&t.rawSpec!=="*";if(t&&i&&t.type!=="tag"){r.versioned.push(t)}else if(t){r.unversioned.push(t)}}));return r}async updatePackageFileAsync(t,r){if(!t.length){return}const i=h.default.join(this.options.cwd?.toString()||".","package.json");const o=await a.default.readAsync(i);t.forEach((t=>{o[r]=o[r]||{};o[r][t.name]=t.rawSpec}));await a.default.writeAsync(i,o,{json5:false})}}r.NpmPackageManager=NpmPackageManager},6125:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.PnpmPackageManager=void 0;const a=i(1729);const u=o(i(1966));const l=i(3746);class PnpmPackageManager extends a.BasePackageManager{name="pnpm";bin="pnpm";lockFile=l.PNPM_LOCK_FILE;workspaceRoot(){const t=(0,l.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new PnpmPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){if(u.default.CI&&!t.join(" ").includes("frozen-lockfile")){t.unshift("--no-frozen-lockfile")}return this.runAsync(["install",...t])}addAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add",...t])}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--save-dev",...t])}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return this.runAsync(["add","--global",...t])}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove","--save-dev",...t])}removeGlobalAsync(t){return this.runAsync(["remove","--global",...t])}}r.PnpmPackageManager=PnpmPackageManager},57:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.YarnPackageManager=void 0;const o=i(1729);const a=i(3746);const u=i(6418);const l=i(822);class YarnPackageManager extends o.BasePackageManager{name="yarn";bin="yarnpkg";lockFile=a.YARN_LOCK_FILE;async withOfflineFlagAsync(t){return await(0,l.isYarnOfflineAsync)()?[...t,"--offline"]:t}workspaceRoot(){const t=(0,a.resolveWorkspaceRoot)(this.ensureCwdDefined("workspaceRoot"));if(t){return new YarnPackageManager({...this.options,silent:this.silent,log:this.log,cwd:t})}return null}installAsync(t=[]){return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["install"])),(r=>this.runAsync([...r,...t])))}addAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add",...t])),(t=>this.runAsync(t)))}addDevAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["add","--dev",...t])),(t=>this.runAsync(t)))}addGlobalAsync(t=[]){if(!t.length){return this.installAsync()}return(0,u.createPendingSpawnAsync)((()=>this.withOfflineFlagAsync(["global","add",...t])),(t=>this.runAsync(t)))}removeAsync(t){return this.runAsync(["remove",...t])}removeDevAsync(t){return this.runAsync(["remove",...t])}removeGlobalAsync(t){return this.runAsync(["global","remove",...t])}}r.YarnPackageManager=YarnPackageManager},1966:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});class Env{get CI(){const{CI:t}=process.env;return t?.toLowerCase()==="true"||t==="1"}}r["default"]=new Env},3746:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.createForProject=r.resolvePackageManager=r.RESOLUTION_ORDER=r.BUN_LOCK_FILE=r.PNPM_LOCK_FILE=r.YARN_LOCK_FILE=r.NPM_LOCK_FILE=r.resolveWorkspaceRoot=void 0;const a=o(i(7147));const u=o(i(1017));const l=i(7301);const h=i(6805);const p=i(1178);const d=i(6125);const m=i(57);var g=i(7301);Object.defineProperty(r,"resolveWorkspaceRoot",{enumerable:true,get:function(){return g.resolveWorkspaceRoot}});r.NPM_LOCK_FILE="package-lock.json";r.YARN_LOCK_FILE="yarn.lock";r.PNPM_LOCK_FILE="pnpm-lock.yaml";r.BUN_LOCK_FILE="bun.lockb";r.RESOLUTION_ORDER=["bun","yarn","npm","pnpm"];function resolvePackageManager(t,i){const o=(0,l.resolveWorkspaceRoot)(t)??t;const h={npm:r.NPM_LOCK_FILE,pnpm:r.PNPM_LOCK_FILE,yarn:r.YARN_LOCK_FILE,bun:r.BUN_LOCK_FILE};if(i){if(a.default.existsSync(u.default.join(o,h[i]))){return i}return null}for(const t of r.RESOLUTION_ORDER){if(a.default.existsSync(u.default.join(o,h[t]))){return t}}return null}r.resolvePackageManager=resolvePackageManager;function createForProject(t,r={}){if(r.npm){return new p.NpmPackageManager({cwd:t,...r})}else if(r.yarn){return new m.YarnPackageManager({cwd:t,...r})}else if(r.pnpm){return new d.PnpmPackageManager({cwd:t,...r})}else if(r.bun){return new h.BunPackageManager({cwd:t,...r})}switch(resolvePackageManager(t)){case"npm":return new p.NpmPackageManager({cwd:t,...r});case"pnpm":return new d.PnpmPackageManager({cwd:t,...r});case"yarn":return new m.YarnPackageManager({cwd:t,...r});case"bun":return new h.BunPackageManager({cwd:t,...r});default:return new p.NpmPackageManager({cwd:t,...r})}}r.createForProject=createForProject},6418:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.spawnSudoAsync=r.createPendingSpawnAsync=void 0;const a=o(i(5642));const u=o(i(5667));function createPendingSpawnAsync(t,r){let i;const o=new Promise(((t,r)=>{i=t}));const a=new Promise(((o,a)=>{t().then((t=>{const u=r(t);i(u.child);u.then(o).catch(a)})).catch((t=>{i(null);a(t)}))}));a.child=o;return a}r.createPendingSpawnAsync=createPendingSpawnAsync;async function spawnSudoAsync(t,r){if(process.platform==="win32"){return new Promise(((r,i)=>{u.default.exec(t.join(" "),{name:"pod install"},(t=>{if(t){i(t)}r()}))}))}else{console.log("Your password might be needed to install CocoaPods CLI: https://guides.cocoapods.org/using/getting-started.html#installation");await(0,a.default)("sudo",t,r)}}r.spawnSudoAsync=spawnSudoAsync},822:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getNpmProxy=r.isYarnOfflineAsync=void 0;const a=i(2081);const u=o(i(9523));const l=o(i(7310));async function isYarnOfflineAsync(){if(await isUrlAvailableAsync("registry.yarnpkg.com")){return false}const t=getNpmProxy();if(!t){return true}const{hostname:r}=l.default.parse(t);if(!r){return true}return!await isUrlAvailableAsync(r)}r.isYarnOfflineAsync=isYarnOfflineAsync;function getNpmProxy(){if(process.env.https_proxy){return process.env.https_proxy??null}try{const t=(0,a.execSync)("npm config get https-proxy").toString().trim();return t!=="null"?t:null}catch{return null}}r.getNpmProxy=getNpmProxy;function isUrlAvailableAsync(t){return new Promise((r=>{u.default.lookup(t,(t=>{r(!t)}))}))}},6055:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.sanitizeScriptsAsync=r.downloadAndExtractExampleAsync=r.promptExamplesAsync=r.ensureExampleExists=void 0;const a=o(i(6282));const u=o(i(8746));const l=o(i(7147));const h=o(i(1017));const p=o(i(1112));const d=i(2781);const m=o(i(8089));const g=i(3837);const y=i(1947);const A=i(6581);const b=i(7943);const v=i(9544);const E=i(7984)("expo:init:template");const w=(0,g.promisify)(d.Stream.pipeline);async function listExamplesAsync(){const t=await(0,v.fetch)("https://api.github.com/repos/expo/examples/contents");if(!t.ok){throw new Error("Unexpected GitHub API response: https://github.com/expo/examples")}const r=await t.json();return r.filter((t=>t.type==="dir"&&!t.name.startsWith(".")))}async function hasExampleAsync(t){const r=await(0,v.fetch)(`https://api.github.com/repos/expo/examples/contents/${encodeURIComponent(t)}/package.json`);if(r.status===404||r.ok){return r.ok}throw new Error(`Unexpected GitHub API response: ${r.status} - ${r.statusText}`)}async function ensureExampleExists(t){if(!await hasExampleAsync(t)){throw new Error(`Example "${t}" does not exist, see https://github.com/expo/examples`)}}r.ensureExampleExists=ensureExampleExists;async function promptExamplesAsync(){if(b.env.CI){throw new Error("Cannot prompt for examples in CI")}const t=await listExamplesAsync();const{answer:r}=await(0,p.default)({type:"select",name:"answer",message:"Choose an example:",choices:t.map((t=>({title:t.name,value:t.path})))});if(!r){console.log();console.log((0,u.default)`Please specify the example, example: {cyan --example with-router}`);console.log();process.exit(1)}return r}r.promptExamplesAsync=promptExamplesAsync;async function downloadAndExtractExampleAsync(t,r){const i=h.default.basename(t);const o=await(0,v.fetch)("https://codeload.github.com/expo/examples/tar.gz/master");if(!o.ok){E(`Failed to fetch the examples code, received status "${o.status}"`);throw new Error("Failed to fetch the examples code from https://github.com/expo/examples")}if(!o.body){E(`Failed to fetch the examples code, Github responded without content, received status "${o.status}"`);throw new Error("Failed to fetch the examples code from https://github.com/expo/examples")}await w(d.Readable.fromWeb(o.body),m.default.extract({cwd:t,onentry:(0,A.createEntryResolver)(i),strip:2},[`examples-master/${r}`]));const a=await(0,y.getTemplateFilesToRenameAsync)({cwd:t});await(0,y.renameTemplateAppNameAsync)({cwd:t,files:a,name:i});await(0,y.sanitizeTemplateAsync)(t);await sanitizeScriptsAsync(t)}r.downloadAndExtractExampleAsync=downloadAndExtractExampleAsync;function exampleHasNativeCode(t){return[h.default.join(t,"android"),h.default.join(t,"ios")].some((t=>l.default.existsSync(t)))}async function sanitizeScriptsAsync(t){const r=exampleHasNativeCode(t)?{start:"expo start --dev-client",android:"expo run:android",ios:"expo run:ios",web:"expo start --web"}:{start:"expo start",android:"expo start --android",ios:"expo start --ios",web:"expo start --web"};const i=new a.default(h.default.join(t,"package.json"));const o=await i.readAsync();const u=o.scripts??{};o.scripts={...r,...u};await i.writeAsync(o)}r.sanitizeScriptsAsync=sanitizeScriptsAsync},1947:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.logNewSection=r.installPodsAsync=r.logProjectReady=r.validateName=r.sanitizeTemplateAsync=r.renameTemplateAppNameAsync=r.getTemplateFilesToRenameAsync=r.defaultRenameConfig=r.extractAndPrepareTemplateAppAsync=r.resolvePackageModuleId=r.isFolderNameForbidden=void 0;const h=l(i(6282));const p=u(i(7496));const d=l(i(8746));const m=i(3909);const g=l(i(7147));const y=l(i(2651));const A=l(i(1017));const b=i(6581);const v=i(3744);const E=i(1805);const w=i(7943);const _=i(292);const S=i(7240);const C=i(7984)("expo:init:template");const D=process.platform==="darwin";const x=["react-native","react","react-dom","react-native-web","expo","expo-router"];function isFolderNameForbidden(t){return x.includes(t)}r.isFolderNameForbidden=isFolderNameForbidden;function deepMerge(t,r){if(typeof t!=="object"){return r}if(Array.isArray(t)&&Array.isArray(r)){return t.concat(r)}Object.keys(r).forEach((i=>{if(typeof r[i]==="object"&&r[i]!==null){t[i]=deepMerge(t[i],r[i])}else{t[i]=r[i]}}));return t}function coerceUrl(t){try{return new URL(t)}catch(r){if(!/^(https?:\/\/)/.test(t)){return new URL(`https://${t}`)}throw r}}function resolvePackageModuleId(t){if(/^(https?:\/\/)?github\.com\//.test(t)){try{const r=coerceUrl(t);C("Resolved moduleId to repository path:",t);return{type:"repository",uri:r}}catch{throw new Error(`Invalid URL: "${t}" provided`)}}if(t?.startsWith("file:")||t?.startsWith(".")||t?.startsWith(A.default.sep)){if(t?.startsWith("file:")){t=t.substring(5)}C(`Resolved moduleId to file path:`,t);return{type:"file",uri:A.default.resolve(t)}}C(`Resolved moduleId to NPM package:`,t);return{type:"npm",uri:t}}r.resolvePackageModuleId=resolvePackageModuleId;async function extractAndPrepareTemplateAppAsync(t,{npmPackage:r}){const i=A.default.basename(t);C(`Extracting template app (pkg: ${r}, projectName: ${i})`);const{type:o,uri:a}=resolvePackageModuleId(r||"expo-template-default");if(o==="repository"){await(0,_.downloadAndExtractGitHubRepositoryAsync)(a,{cwd:t,name:i})}else{const r=o==="file"?a:(0,S.getResolvedTemplateName)((0,S.applyBetaTag)(a));await(0,S.downloadAndExtractNpmModuleAsync)(r,{cwd:t,name:i,disableCache:o==="file"})}try{const r=await getTemplateFilesToRenameAsync({cwd:t});await renameTemplateAppNameAsync({cwd:t,files:r,name:i})}catch(t){v.Log.error("Error renaming app name in template");throw t}await sanitizeTemplateAsync(t);return t}r.extractAndPrepareTemplateAppAsync=extractAndPrepareTemplateAppAsync;function escapeXMLCharacters(t){const r=t.replace("&","&");const i=r.replace("<","<");const o=i.replace(">",">");const a=o.replace('"','\\"');return a.replace("'","\\'")}r.defaultRenameConfig=["!**/node_modules","app.json","android/**/*.gradle","android/app/BUCK","android/app/src/**/*.java","android/app/src/**/*.kt","android/app/src/**/*.xml","ios/Podfile","ios/**/*.xcodeproj/project.pbxproj","ios/**/*.xcodeproj/xcshareddata/xcschemes/*.xcscheme"];async function getTemplateFilesToRenameAsync({cwd:t,renameConfig:i}){let o=i??r.defaultRenameConfig;o=o.map((t=>t.split(/(?<!\\)#/,2)[0].trim())).filter((t=>t!==""));return await(0,m.glob)(o,{cwd:t,baseNameMatch:true,dot:true,followSymbolicLinks:false})}r.getTemplateFilesToRenameAsync=getTemplateFilesToRenameAsync;async function renameTemplateAppNameAsync({cwd:t,name:r,files:i}){C(`Got files to transform: ${JSON.stringify(i)}`);await Promise.all(i.map((async i=>{const o=A.default.resolve(t,i);let a;try{a=await g.default.promises.readFile(o,{encoding:"utf-8"})}catch(t){throw new Error(`Failed to read template file: "${o}". Was it removed mid-operation?`,{cause:t})}C(`Renaming app name in file: ${o}`);const u=[".xml",".plist"].includes(A.default.extname(i))?escapeXMLCharacters(r):r;try{const t=a.replace(/Hello App Display Name/g,u).replace(/HelloWorld/g,(0,b.sanitizedName)(u)).replace(/helloworld/g,(0,b.sanitizedName)(u.toLowerCase()));if(t===a){return}await g.default.promises.writeFile(o,t)}catch(t){throw new Error(`Failed to overwrite template file: "${o}". Was it removed mid-operation?`,{cause:t})}})))}r.renameTemplateAppNameAsync=renameTemplateAppNameAsync;async function sanitizeTemplateAsync(t){const r=A.default.basename(t);C(`Sanitizing template or example app (projectName: ${r})`);const i=A.default.join(__dirname,"../template/gitignore");const o=A.default.join(t,".gitignore");if(!g.default.existsSync(o)){await g.default.promises.copyFile(i,o)}const a={name:r,slug:r};const u=new h.default(A.default.join(t,"app.json"),{default:{}});const l=await u.readAsync();const p=deepMerge(l,"expo"in l?{expo:a}:a);await u.writeAsync(p);C(`Created app.json:\n%O`,p);const d=new h.default(A.default.join(t,"package.json"));const m=await d.readAsync();const y="name"in p?p.name:p.expo.name;m.name=(0,S.applyKnownNpmPackageNameRules)(y)||"app";m.version="1.0.0";m.private=true;delete m.description;delete m.tags;delete m.repository;if(m.license==="0BSD"){delete m.license}await d.writeAsync(m)}r.sanitizeTemplateAsync=sanitizeTemplateAsync;function validateName(t){if(typeof t!=="string"||t===""){return"The project name can not be empty."}if(!/^[a-z0-9@.\-_]+$/i.test(t)){return"The project name can only contain URL-friendly characters."}return true}r.validateName=validateName;function logProjectReady({cdPath:t,packageManager:r}){console.log(d.default.bold(`✅ Your project is ready!`));console.log();if(t){console.log(`To run your project, navigate to the directory and run one of the following ${r} commands.`);console.log();console.log(`- ${d.default.bold("cd "+t)}`)}else{console.log(`To run your project, run one of the following ${r} commands.`);console.log()}console.log(`- ${d.default.bold((0,E.formatRunCommand)(r,"android"))}`);let i="";if(!D){i=" # you need to use macOS to build the iOS project - use the Expo app if you need to do iOS development without a Mac"}console.log(`- ${d.default.bold((0,E.formatRunCommand)(r,"ios"))}${i}`);console.log(`- ${d.default.bold((0,E.formatRunCommand)(r,"web"))}`)}r.logProjectReady=logProjectReady;async function installPodsAsync(t){let r=logNewSection("Installing CocoaPods.");if(process.platform!=="darwin"){r.succeed("Skipped installing CocoaPods because operating system is not macOS.");return false}const i=new p.CocoaPodsPackageManager({cwd:A.default.join(t,"ios"),silent:!w.env.EXPO_DEBUG});if(!await i.isCLIInstalledAsync()){try{r.text="CocoaPods CLI not found in your $PATH, installing it now.";r.render();await i.installCLIAsync();r.succeed("Installed CocoaPods CLI");r=logNewSection("Running `pod install` in the `ios` directory.")}catch(t){r.stopAndPersist({symbol:"⚠️ ",text:d.default.red("Unable to install the CocoaPods CLI. Continuing with initializing the project, you can install CocoaPods afterwards.")});if(t.message){v.Log.error(`- ${t.message}`)}return false}}try{await i.installAsync();r.succeed("Installed pods and initialized Xcode workspace.");return true}catch(t){r.stopAndPersist({symbol:"⚠️ ",text:d.default.red("Something went wrong running `pod install` in the `ios` directory. Continuing with initializing the project, you can debug this afterwards.")});if(t.message){v.Log.error(`- ${t.message}`)}return false}}r.installPodsAsync=installPodsAsync;function logNewSection(t){const r=w.env.CI||w.env.EXPO_DEBUG;const i=(0,y.default)({text:d.default.bold(t),isEnabled:!r,stream:r?process.stdout:process.stderr});i.start();return i}r.logNewSection=logNewSection},9436:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const h=l(i(8746));const p=i(9247);const d=i(5733);const m=i(3744);const g=i(1805);const y=i(3490);const A=i(7984)("expo:init:cli");async function run(){const t=process.argv.slice(2)??[];const r={"--yes":Boolean,"--no-install":Boolean,"--help":Boolean,"--version":Boolean,"-y":"--yes","-h":"--help","-v":"--version"};const o=(0,y.assertWithOptionsArgs)(r,{argv:t,permissive:true});if(o["--version"]){m.Log.exit(i(4147).version,0)}if(o["--help"]){const t=p.CLI_NAME.replace("create-","");(0,y.printHelp)(`Creates a new Expo project`,(0,h.default)`npx ${p.CLI_NAME} {cyan <path>} [options]`,[`-y, --yes Use the default options for creating a project`,` --no-install Skip installing npm packages or CocoaPods`,(0,h.default)`-t, --template {gray [pkg]} NPM template to use: default, blank, blank-typescript, tabs, bare-minimum. Default: default`,(0,h.default)`-e, --example {gray [name]} Example name from {underline https://github.com/expo/examples}.`,`-v, --version Version number`,`-h, --help Usage info`].join("\n"),(0,h.default)`
|
|
100
100
|
{gray To choose a template pass in the {bold --template} arg:}
|
|
101
101
|
|
|
102
|
-
{gray $}
|
|
102
|
+
{gray $} ${(0,g.formatSelfCommand)()} {cyan --template}
|
|
103
103
|
|
|
104
104
|
{gray To choose an Expo example pass in the {bold --example} arg:}
|
|
105
105
|
|
|
106
|
-
{gray $}
|
|
107
|
-
{gray $}
|
|
106
|
+
{gray $} ${(0,g.formatSelfCommand)()} {cyan --example}
|
|
107
|
+
{gray $} ${(0,g.formatSelfCommand)()} {cyan --example with-router}
|
|
108
108
|
|
|
109
109
|
{gray The package manager used for installing}
|
|
110
110
|
{gray node modules is based on how you invoke the CLI:}
|
|
@@ -113,7 +113,7 @@ var o=i(4300);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}
|
|
|
113
113
|
{bold yarn:} {cyan yarn create ${t}}
|
|
114
114
|
{bold pnpm:} {cyan pnpm create ${t}}
|
|
115
115
|
{bold bun:} {cyan bun create ${t}}
|
|
116
|
-
`)}const{AnalyticsEventPhases:a,AnalyticsEventTypes:l,flushAsync:A,track:b}=await Promise.resolve().then((()=>u(i(4575))));try{const h=await(0,g.resolveStringOrBooleanArgsAsync)(t,r,{"--template":Boolean,"--example":Boolean,"-t":"--template","-e":"--example"});y(`Default args:\n%O`,o);y(`Parsed:\n%O`,h);const{createAsync:p}=await Promise.resolve().then((()=>u(i(1961))));await p(h.projectRoot,{yes:!!o["--yes"],template:h.args["--template"],example:h.args["--example"],install:!o["--no-install"]});b({event:l.CREATE_EXPO_APP,properties:{phase:a.SUCCESS}});await A()}catch(t){if(!(t instanceof d.ExitError)){m.Log.exception(t)}b({event:l.CREATE_EXPO_APP,properties:{phase:a.FAIL,message:t.cause}});await A().finally((()=>{process.exit(t.code||1)}))}finally{const t=await(await Promise.resolve().then((()=>u(i(5897))))).default;await t()}}run()},9247:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.CLI_NAME=void 0;r.CLI_NAME=i(4147).name},1961:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.logNodeInstallWarning=r.createAsync=void 0;const h=l(i(8746));const p=l(i(7147));const d=l(i(1017));const m=i(6055);const g=u(i(1947));const y=i(755);const A=i(3744);const b=i(1805);const v=i(9561);const E=i(4575);const w=i(424);const _=i(8429);const S=i(7984)("expo:init:create");async function resolveProjectRootArgAsync(t,{yes:r}){if(!t&&r){const t=d.default.resolve(process.cwd());const r=d.default.basename(t);(0,v.assertValidName)(r);(0,v.assertFolderEmpty)(t,r);return t}else{return await(0,v.resolveProjectRootAsync)(t)}}async function setupDependenciesAsync(t,r){const i=r.install;const o=(0,b.resolvePackageManager)();await configureNodeDependenciesAsync(t,o);let a=false;const u=await p.default.existsSync(d.default.join(t,"ios"));if(i){await installNodeDependenciesAsync(t,o);if(u){a=await installCocoaPodsAsync(t)}}const l=getChangeDirectoryPath(t);console.log();g.logProjectReady({cdPath:l,packageManager:o});if(!i){logNodeInstallWarning(l,o,u&&!a)}}async function createAsync(t,r){if(r.example&&r.template){throw new Error("Cannot use both --example and --template")}if(r.example){return await createExampleAsync(t,r)}return await createTemplateAsync(t,r)}r.createAsync=createAsync;async function createTemplateAsync(t,r){let i=null;if(r.template===true){i=await(0,y.promptTemplateAsync)()}else{i=r.template??null}const o=await resolveProjectRootArgAsync(t,r);await p.default.promises.mkdir(o,{recursive:true});await(0,E.initializeAnalyticsIdentityAsync)();(0,E.identify)();(0,E.track)({event:E.AnalyticsEventTypes.CREATE_EXPO_APP,properties:{phase:E.AnalyticsEventPhases.ATTEMPT,template:i}});await(0,_.withSectionLog)((()=>g.extractAndPrepareTemplateAppAsync(o,{npmPackage:i})),{pending:h.default.bold("Locating project files."),success:"Downloaded and extracted project files.",error:t=>`Something went wrong in downloading and extracting the project files: ${t.message}`});await setupDependenciesAsync(o,r);try{await(0,w.initGitRepoAsync)(o)}catch(t){S(`Error initializing git: %O`,t)}}async function createExampleAsync(t,r){let i="";if(r.example===true){i=await(0,m.promptExamplesAsync)()}else if(r.example){i=r.example}await(0,m.ensureExampleExists)(i);const o=await resolveProjectRootArgAsync(t,r);await p.default.promises.mkdir(o,{recursive:true});await(0,E.initializeAnalyticsIdentityAsync)();(0,E.identify)();(0,E.track)({event:E.AnalyticsEventTypes.CREATE_EXPO_APP,properties:{phase:E.AnalyticsEventPhases.ATTEMPT,example:i}});await(0,_.withSectionLog)((()=>(0,m.downloadAndExtractExampleAsync)(o,i)),{pending:h.default.bold("Locating example files..."),success:"Downloaded and extracted example files.",error:t=>`Something went wrong in downloading and extracting the example files: ${t.message}`});await setupDependenciesAsync(o,r);try{await(0,w.initGitRepoAsync)(o)}catch(t){S(`Error initializing git: %O`,t)}}function getChangeDirectoryPath(t){const r=d.default.relative(process.cwd(),t);if(r.length<=t.length){return r}return t}async function configureNodeDependenciesAsync(t,r){try{await(0,b.configurePackageManager)(t,r,{silent:false})}catch(t){S(`Error configuring package manager: %O`,t);A.Log.error(`Something went wrong configuring the package manager. Check your ${r} logs. Continuing to create the app.`);A.Log.exception(t)}}async function installNodeDependenciesAsync(t,r){try{await(0,b.installDependenciesAsync)(t,r,{silent:false})}catch(t){S(`Error installing node modules: %O`,t);A.Log.error(`Something went wrong installing JavaScript dependencies. Check your ${r} logs. Continuing to create the app.`);A.Log.exception(t)}}async function installCocoaPodsAsync(t){let r=false;try{r=await g.installPodsAsync(t)}catch(t){S(`Error installing CocoaPods: %O`,t)}return r}function logNodeInstallWarning(t,r,i){console.log(`\n⚠️ Before running your app, make sure you have modules installed:\n`);console.log(` cd ${t||"."}${d.default.sep}`);console.log(` ${r} install`);if(i&&process.platform==="darwin"){console.log(` npx pod-install`)}console.log()}r.logNodeInstallWarning=logNodeInstallWarning},6581:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.createGlobFilter=r.createEntryResolver=r.sanitizedName=void 0;const a=o(i(1017));const u=o(i(9138));const l=i(7984)("expo:init:fileTransform");function sanitizedName(t){return t.replace(/[\W_]+/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}r.sanitizedName=sanitizedName;function createEntryResolver(t){return r=>{if(t){r.path=r.path.replace(/HelloWorld/g,r.path.includes("android")?sanitizedName(t.toLowerCase()):sanitizedName(t)).replace(/helloworld/g,sanitizedName(t).toLowerCase())}if(r.type&&/^file$/i.test(r.type)&&a.default.basename(r.path)==="gitignore"){r.path=r.path.replace(/gitignore$/,".gitignore")}}}r.createEntryResolver=createEntryResolver;function createGlobFilter(t,r){const i=(0,u.default)(t,r);l("filter: created for pattern %s (%s)",t);return t=>{const r=i(t);l("filter: %s - %s",r?"include":"exclude",t);return r}}r.createGlobFilter=createGlobFilter},5733:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.ExitError=void 0;class ExitError extends Error{cause;code;constructor(t,r){super(t instanceof Error?t.message:t);this.cause=t;this.code=r}}r.ExitError=ExitError},2855:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const a=o(i(7984));const u=i(7945);const l=i(9247);process.title=l.CLI_NAME;if((0,u.boolish)("EXPO_DEBUG",false)){a.default.enable("expo:init:*")}else if(a.default.enabled("expo:init:")){process.env.EXPO_DEBUG="1"}i(9436)},755:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.promptTemplateAsync=r.ALIASES=r.LEGACY_TEMPLATES=void 0;const a=o(i(8746));const u=o(i(1112));const l=i(7943);r.LEGACY_TEMPLATES=[{title:"Default",value:"expo-template-default",description:"includes tools recommended for most app developers"},{title:"Blank",value:"expo-template-blank",description:"a minimal app as clean as an empty canvas"},{title:"Blank (TypeScript)",value:"expo-template-blank-typescript",description:"blank app with TypeScript enabled"},{title:"Navigation (TypeScript)",value:"expo-template-tabs",description:"File-based routing with TypeScript enabled"},{title:"Blank (Bare)",value:"expo-template-bare-minimum",description:"blank app with the native code exposed (expo prebuild)"}];r.ALIASES=r.LEGACY_TEMPLATES.map((({value:t})=>t));async function promptTemplateAsync(){if(l.env.CI){throw new Error("Cannot prompt for template in CI")}const{answer:t}=await(0,u.default)({type:"select",name:"answer",message:"Choose a template:",choices:r.LEGACY_TEMPLATES});if(!t){console.log();console.log((0,a.default)`Please specify the template, example: {cyan --template expo-template-blank}`);console.log();process.exit(1)}return t}r.promptTemplateAsync=promptTemplateAsync},3744:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.Log=r.exit=r.log=r.exception=r.error=void 0;const a=o(i(8746));const u=i(5733);function error(...t){console.error(...t)}r.error=error;function exception(t){const{env:r}=i(7943);error(a.default.red(t.toString())+(r.EXPO_DEBUG?"\n"+a.default.gray(t.stack):""))}r.exception=exception;function log(...t){console.log(...t)}r.log=log;function exit(t,r=1){if(t instanceof Error){exception(t)}else if(t){if(r===0){log(t)}else{error(t)}}if(r!==0){throw new u.ExitError(t,r)}process.exit(r)}r.exit=exit;r.Log={error:error,exception:exception,log:log,exit:exit}},2126:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getStateJsonPath=r.dotExpoHomeDirectory=void 0;const a=o(i(2037));const u=o(i(1017));function dotExpoHomeDirectory(){const t=a.default.homedir();if(!t){throw new Error("Can't determine your home directory; make sure your $HOME environment variable is set.")}let r;if(process.env.EXPO_STAGING){r=u.default.join(t,".expo-staging")}else if(process.env.EXPO_LOCAL){r=u.default.join(t,".expo-local")}else{r=u.default.join(t,".expo")}return r}r.dotExpoHomeDirectory=dotExpoHomeDirectory;const getStateJsonPath=()=>u.default.join(dotExpoHomeDirectory(),"state.json");r.getStateJsonPath=getStateJsonPath},1805:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};Object.defineProperty(r,"__esModule",{value:true});r.configurePackageManager=r.installDependenciesAsync=r.formatSelfCommand=r.formatRunCommand=r.isPackageManagerAvailable=r.resolvePackageManager=void 0;const l=u(i(7496));const h=i(2081);const p=i(9247);const d=i(7984)("expo:init:resolvePackageManager");function resolvePackageManager(){const t=process.env.npm_config_user_agent;d("npm_config_user_agent:",t);if(t?.startsWith("yarn")){return"yarn"}else if(t?.startsWith("pnpm")){return"pnpm"}else if(t?.startsWith("bun")){return"bun"}else if(t?.startsWith("npm")){return"npm"}if(isPackageManagerAvailable("yarn")){return"yarn"}else if(isPackageManagerAvailable("pnpm")){return"pnpm"}else if(isPackageManagerAvailable("bun")){return"bun"}return"npm"}r.resolvePackageManager=resolvePackageManager;function isPackageManagerAvailable(t){try{(0,h.execSync)(`${t} --version`,{stdio:"ignore"});return true}catch{}return false}r.isPackageManagerAvailable=isPackageManagerAvailable;function formatRunCommand(t,r){switch(t){case"pnpm":return`pnpm run ${r}`;case"yarn":return`yarn ${r}`;case"bun":return`bun run ${r}`;case"npm":default:return`npm run ${r}`}}r.formatRunCommand=formatRunCommand;function formatSelfCommand(){const t=resolvePackageManager();switch(t){case"pnpm":return`pnpx ${p.CLI_NAME}`;case"bun":return`bunx ${p.CLI_NAME}`;case"yarn":case"npm":default:return`npx ${p.CLI_NAME}`}}r.formatSelfCommand=formatSelfCommand;function createPackageManager(t,r){switch(t){case"yarn":return new l.YarnPackageManager(r);case"pnpm":return new l.PnpmPackageManager(r);case"bun":return new l.BunPackageManager(r);case"npm":default:return new l.NpmPackageManager(r)}}async function installDependenciesAsync(t,r,i={silent:false}){await createPackageManager(r,{cwd:t,silent:i.silent}).installAsync()}r.installDependenciesAsync=installDependenciesAsync;async function configurePackageManager(t,r,i={silent:false}){const o=createPackageManager(r,{cwd:t,...i});switch(o.name){case"pnpm":await o.runAsync(["config","--location","project","set","node-linker","hoisted"]);break;case"yarn":{const t=await o.versionAsync();const r=parseInt(t.split(".")[0],10);if(r>=2){await o.runAsync(["config","set","nodeLinker","node-modules"])}break}}}r.configurePackageManager=configurePackageManager},9561:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.resolveProjectRootAsync=r.assertFolderEmpty=r.assertValidName=void 0;const h=l(i(8746));const p=l(i(7147));const d=l(i(1017));const m=l(i(1112));const g=u(i(1947));const y=i(3744);const A=i(1805);const b=i(6462);function assertValidName(t){const r=g.validateName(t);if(typeof r==="string"){y.Log.exit((0,h.default)`{red Cannot create an app named {bold "${t}"}. ${r}}`,1)}const i=g.isFolderNameForbidden(t);if(i){y.Log.exit((0,h.default)`{red Cannot create an app named {bold "${t}"} because it would conflict with a dependency of the same name.}`,1)}}r.assertValidName=assertValidName;function assertFolderEmpty(t,r){const i=(0,b.getConflictsForDirectory)(t);if(i.length){y.Log.log((0,h.default)`The directory {cyan ${r}} has files that might be overwritten:`);y.Log.log();for(const t of i){y.Log.log(` ${t}`)}y.Log.log();y.Log.exit("Try using a new directory name, or moving these files.\n")}}r.assertFolderEmpty=assertFolderEmpty;async function resolveProjectRootAsync(t){let r=t?.trim();if(!r){const{answer:t}=await(0,m.default)({type:"text",name:"answer",message:"What is your app named?",initial:"my-app",validate:t=>{const r=g.validateName(d.default.basename(d.default.resolve(t)));if(typeof r==="string"){return"Invalid project name: "+r}return true}});if(typeof t==="string"){r=t.trim()}}if(!r){const t=(0,A.formatSelfCommand)();y.Log.log();y.Log.log("Please choose your app name:");y.Log.log((0,h.default)` {dim $} {cyan ${t} <name>}`);y.Log.log();y.Log.log(`For more info, run:`);y.Log.log((0,h.default)` {dim $} {cyan ${t} --help}`);y.Log.log();y.Log.exit("")}const i=d.default.resolve(r);const o=d.default.basename(i);assertValidName(o);await p.default.promises.mkdir(i,{recursive:true});assertFolderEmpty(i,o);return i}r.resolveProjectRootAsync=resolveProjectRootAsync},6785:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getSession=void 0;const a=o(i(6282));const u=i(2126);function getSession(){try{return a.default.read((0,u.getStateJsonPath)())?.auth??null}catch(t){if(t.code==="ENOENT"){return null}throw t}}r.getSession=getSession},4575:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.AnalyticsEventPhases=r.AnalyticsEventTypes=r.flushAsync=r.track=r.identify=r.initializeAnalyticsIdentityAsync=r._resetGlobals=void 0;const a=o(i(6282));const u=o(i(6113));const l=o(i(7147));const h=o(i(2037));const p=i(2126);const d=i(6785);const m=i(7943);const g=i(4147);const y="1wabJGd5IiuF9Q8SGlcI90v8WTs";const A="https://cdp.expo.dev/v1/batch";const b="1.0.0";const v=g.name;const E=[];let w=null;function _resetGlobals(){if(m.env.EXPO_NO_TELEMETRY)return;w=null;E.splice(0,E.length)}r._resetGlobals=_resetGlobals;async function initializeAnalyticsIdentityAsync(){if(m.env.EXPO_NO_TELEMETRY)return;if(w){return}w=await getAnalyticsIdentityAsync()}r.initializeAnalyticsIdentityAsync=initializeAnalyticsIdentityAsync;function identify(){if(m.env.EXPO_NO_TELEMETRY)return;enqueue("identify",{})}r.identify=identify;function track(t){if(m.env.EXPO_NO_TELEMETRY)return;enqueue("track",{...t,context:getAnalyticsContext()})}r.track=track;function enqueue(t,r){if(!w){return}r={...r,...w};r.type=t;if(r.type==="identify"){r.traits??={};r.context??={};r.context.traits=r.traits}r.context={library:{name:v,version:b},...r.context};r._metadata={nodeVersion:process.versions.node,...r._metadata};if(!r.originalTimestamp){r.originalTimestamp=new Date}if(!r.messageId){r.messageId=`node-${u.default.createHash("md5").update(JSON.stringify(r)).digest("hex")}-${uuidv4()}`}E.push(r)}async function flushAsync(){if(m.env.EXPO_NO_TELEMETRY)return;if(!E.length){return}const t={method:"POST",headers:{accept:"application/json, text/plain, */*","content-type":"application/json;charset=utf-8","user-agent":`${v}/${b}`,authorization:"Basic "+Buffer.from(`${y}:`).toString("base64")},body:JSON.stringify({batch:E.map((t=>({...t,sentAt:new Date}))),sentAt:new Date})};try{await fetch(A,t)}catch{}E.splice(0,E.length)}r.flushAsync=flushAsync;const _={darwin:"Mac",win32:"Windows",linux:"Linux"};function getAnalyticsContext(){const t=_[h.default.platform()]||h.default.platform();return{os:{name:t,version:h.default.release()},device:{type:t,model:t},app:{name:v,version:g.version}}}function uuidv4(){try{return u.default.randomUUID()}catch{return null}}var S;(function(t){t["CREATE_EXPO_APP"]="create expo app"})(S||(r.AnalyticsEventTypes=S={}));var C;(function(t){t["ATTEMPT"]="attempt";t["SUCCESS"]="success";t["FAIL"]="fail"})(C||(r.AnalyticsEventPhases=C={}));async function getAnalyticsIdentityAsync(){if(!l.default.existsSync((0,p.dotExpoHomeDirectory)())){l.default.mkdirSync((0,p.dotExpoHomeDirectory)(),{recursive:true})}if(!l.default.existsSync((0,p.getStateJsonPath)())){l.default.writeFileSync((0,p.getStateJsonPath)(),JSON.stringify({}))}const t=await a.default.getAsync((0,p.getStateJsonPath)(),"analyticsDeviceId",null);const r=t??uuidv4();if(!r){return null}if(!t){await a.default.setAsync((0,p.getStateJsonPath)(),"analyticsDeviceId",r)}const i=(0,d.getSession)()?.userId??null;return i?{anonymousId:r,userId:i}:{anonymousId:r}}},3490:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.assertDuplicateArgs=r.assertUnknownArgs=r.collapseAliases=r._resolveStringOrBooleanArgs=r.resolveStringOrBooleanArgsAsync=r.printHelp=r.assertWithOptionsArgs=void 0;const h=l(i(4816));const p=l(i(8746));const d=i(6889);const m=u(i(3744));function assertWithOptionsArgs(t,r){try{return(0,h.default)(t,r)}catch(t){if(t.code==="ARG_UNKNOWN_OPTION"){m.exit(t.message,1)}throw t}}r.assertWithOptionsArgs=assertWithOptionsArgs;function printHelp(t,r,i,o=""){m.exit((0,p.default)`
|
|
116
|
+
`)}const{AnalyticsEventPhases:a,AnalyticsEventTypes:l,flushAsync:b,track:v}=await Promise.resolve().then((()=>u(i(4575))));try{const h=await(0,y.resolveStringOrBooleanArgsAsync)(t,r,{"--template":Boolean,"--example":Boolean,"-t":"--template","-e":"--example"});A(`Default args:\n%O`,o);A(`Parsed:\n%O`,h);const{createAsync:p}=await Promise.resolve().then((()=>u(i(1961))));await p(h.projectRoot,{yes:!!o["--yes"],template:h.args["--template"],example:h.args["--example"],install:!o["--no-install"]});v({event:l.CREATE_EXPO_APP,properties:{phase:a.SUCCESS}});await b()}catch(t){if(!(t instanceof d.ExitError)){m.Log.exception(t)}v({event:l.CREATE_EXPO_APP,properties:{phase:a.FAIL,message:t.cause}});await b().finally((()=>{process.exit(t.code||1)}))}finally{const t=await(await Promise.resolve().then((()=>u(i(5897))))).default;await t()}}run()},9247:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.CLI_NAME=void 0;r.CLI_NAME=i(4147).name},1961:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.logNodeInstallWarning=r.createAsync=void 0;const h=l(i(8746));const p=l(i(7147));const d=l(i(1017));const m=i(6055);const g=u(i(1947));const y=i(755);const A=i(3744);const b=i(1805);const v=i(9561);const E=i(4575);const w=i(424);const _=i(8429);const S=i(7984)("expo:init:create");async function resolveProjectRootArgAsync(t,{yes:r}){if(!t&&r){const t=d.default.resolve(process.cwd());const r=d.default.basename(t);(0,v.assertValidName)(r);(0,v.assertFolderEmpty)(t,r);return t}else{return await(0,v.resolveProjectRootAsync)(t)}}async function setupDependenciesAsync(t,r){const i=r.install;const o=(0,b.resolvePackageManager)();await configureNodeDependenciesAsync(t,o);let a=false;const u=await p.default.existsSync(d.default.join(t,"ios"));if(i){await installNodeDependenciesAsync(t,o);if(u){a=await installCocoaPodsAsync(t)}}const l=getChangeDirectoryPath(t);console.log();g.logProjectReady({cdPath:l,packageManager:o});if(!i){logNodeInstallWarning(l,o,u&&!a)}}async function createAsync(t,r){if(r.example&&r.template){throw new Error("Cannot use both --example and --template")}if(r.example){return await createExampleAsync(t,r)}return await createTemplateAsync(t,r)}r.createAsync=createAsync;async function createTemplateAsync(t,r){let i=null;if(r.template===true){i=await(0,y.promptTemplateAsync)()}else{i=r.template??null;console.log((0,h.default)`Creating an Expo project using the {cyan ${i??"default"}} template.\n`);if(!i){console.log((0,h.default)`{gray To choose from all available templates pass in the --template arg:}`);console.log((0,h.default)` {gray $} ${(0,b.formatSelfCommand)()} {cyan --template}\n`);console.log((0,h.default)`{gray To choose from all available examples pass in the --example arg:}`);console.log((0,h.default)` {gray $} ${(0,b.formatSelfCommand)()} {cyan --example}\n`)}}const o=await resolveProjectRootArgAsync(t,r);await p.default.promises.mkdir(o,{recursive:true});await(0,E.initializeAnalyticsIdentityAsync)();(0,E.identify)();(0,E.track)({event:E.AnalyticsEventTypes.CREATE_EXPO_APP,properties:{phase:E.AnalyticsEventPhases.ATTEMPT,template:i}});await(0,_.withSectionLog)((()=>g.extractAndPrepareTemplateAppAsync(o,{npmPackage:i})),{pending:h.default.bold("Locating project files."),success:"Downloaded and extracted project files.",error:t=>`Something went wrong in downloading and extracting the project files: ${t.message}`});await setupDependenciesAsync(o,r);try{await(0,w.initGitRepoAsync)(o)}catch(t){S(`Error initializing git: %O`,t)}}async function createExampleAsync(t,r){let i="";if(r.example===true){i=await(0,m.promptExamplesAsync)()}else if(r.example){i=r.example;console.log((0,h.default)`Creating an Expo project using the {cyan ${i}} example.\n`)}await(0,m.ensureExampleExists)(i);const o=await resolveProjectRootArgAsync(t,r);await p.default.promises.mkdir(o,{recursive:true});await(0,E.initializeAnalyticsIdentityAsync)();(0,E.identify)();(0,E.track)({event:E.AnalyticsEventTypes.CREATE_EXPO_APP,properties:{phase:E.AnalyticsEventPhases.ATTEMPT,example:i}});await(0,_.withSectionLog)((()=>(0,m.downloadAndExtractExampleAsync)(o,i)),{pending:h.default.bold("Locating example files..."),success:"Downloaded and extracted example files.",error:t=>`Something went wrong in downloading and extracting the example files: ${t.message}`});await setupDependenciesAsync(o,r);try{await(0,w.initGitRepoAsync)(o)}catch(t){S(`Error initializing git: %O`,t)}}function getChangeDirectoryPath(t){const r=d.default.relative(process.cwd(),t);if(r.length<=t.length){return r}return t}async function configureNodeDependenciesAsync(t,r){try{await(0,b.configurePackageManager)(t,r,{silent:false})}catch(t){S(`Error configuring package manager: %O`,t);A.Log.error(`Something went wrong configuring the package manager. Check your ${r} logs. Continuing to create the app.`);A.Log.exception(t)}}async function installNodeDependenciesAsync(t,r){try{await(0,b.installDependenciesAsync)(t,r,{silent:false})}catch(t){S(`Error installing node modules: %O`,t);A.Log.error(`Something went wrong installing JavaScript dependencies. Check your ${r} logs. Continuing to create the app.`);A.Log.exception(t)}}async function installCocoaPodsAsync(t){let r=false;try{r=await g.installPodsAsync(t)}catch(t){S(`Error installing CocoaPods: %O`,t)}return r}function logNodeInstallWarning(t,r,i){console.log(`\n⚠️ Before running your app, make sure you have modules installed:\n`);console.log(` cd ${t||"."}${d.default.sep}`);console.log(` ${r} install`);if(i&&process.platform==="darwin"){console.log(` npx pod-install`)}console.log()}r.logNodeInstallWarning=logNodeInstallWarning},6581:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.createGlobFilter=r.createEntryResolver=r.sanitizedName=void 0;const a=o(i(1017));const u=o(i(9138));const l=i(7984)("expo:init:fileTransform");function sanitizedName(t){return t.replace(/[\W_]+/g,"").normalize("NFD").replace(/[\u0300-\u036f]/g,"")}r.sanitizedName=sanitizedName;function createEntryResolver(t){return r=>{if(t){r.path=r.path.replace(/HelloWorld/g,r.path.includes("android")?sanitizedName(t.toLowerCase()):sanitizedName(t)).replace(/helloworld/g,sanitizedName(t).toLowerCase())}if(r.type&&/^file$/i.test(r.type)&&a.default.basename(r.path)==="gitignore"){r.path=r.path.replace(/gitignore$/,".gitignore")}}}r.createEntryResolver=createEntryResolver;function createGlobFilter(t,r){const i=(0,u.default)(t,r);l("filter: created for pattern %s (%s)",t);return t=>{const r=i(t);l("filter: %s - %s",r?"include":"exclude",t);return r}}r.createGlobFilter=createGlobFilter},5733:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.ExitError=void 0;class ExitError extends Error{cause;code;constructor(t,r){super(t instanceof Error?t.message:t);this.cause=t;this.code=r}}r.ExitError=ExitError},2855:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const a=o(i(7984));const u=i(7945);const l=i(9247);process.title=l.CLI_NAME;if((0,u.boolish)("EXPO_DEBUG",false)){a.default.enable("expo:init:*")}else if(a.default.enabled("expo:init:")){process.env.EXPO_DEBUG="1"}i(9436)},755:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.promptTemplateAsync=r.ALIASES=r.LEGACY_TEMPLATES=void 0;const a=o(i(8746));const u=o(i(1112));const l=i(7943);r.LEGACY_TEMPLATES=[{title:"Default",value:"expo-template-default",description:"includes tools recommended for most app developers"},{title:"Blank",value:"expo-template-blank",description:"a minimal app as clean as an empty canvas"},{title:"Blank (TypeScript)",value:"expo-template-blank-typescript",description:"blank app with TypeScript enabled"},{title:"Navigation (TypeScript)",value:"expo-template-tabs",description:"File-based routing with TypeScript enabled"},{title:"Blank (Bare)",value:"expo-template-bare-minimum",description:"blank app with the native code exposed (expo prebuild)"}];r.ALIASES=r.LEGACY_TEMPLATES.map((({value:t})=>t));async function promptTemplateAsync(){if(l.env.CI){throw new Error("Cannot prompt for template in CI")}const{answer:t}=await(0,u.default)({type:"select",name:"answer",message:"Choose a template:",choices:r.LEGACY_TEMPLATES});if(!t){console.log();console.log((0,a.default)`Please specify the template, example: {cyan --template expo-template-blank}`);console.log();process.exit(1)}return t}r.promptTemplateAsync=promptTemplateAsync},3744:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.Log=r.exit=r.log=r.exception=r.error=void 0;const a=o(i(8746));const u=i(5733);function error(...t){console.error(...t)}r.error=error;function exception(t){const{env:r}=i(7943);error(a.default.red(t.toString())+(r.EXPO_DEBUG?"\n"+a.default.gray(t.stack):""))}r.exception=exception;function log(...t){console.log(...t)}r.log=log;function exit(t,r=1){if(t instanceof Error){exception(t)}else if(t){if(r===0){log(t)}else{error(t)}}if(r!==0){throw new u.ExitError(t,r)}process.exit(r)}r.exit=exit;r.Log={error:error,exception:exception,log:log,exit:exit}},2126:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getStateJsonPath=r.dotExpoHomeDirectory=void 0;const a=o(i(2037));const u=o(i(1017));function dotExpoHomeDirectory(){const t=a.default.homedir();if(!t){throw new Error("Can't determine your home directory; make sure your $HOME environment variable is set.")}let r;if(process.env.EXPO_STAGING){r=u.default.join(t,".expo-staging")}else if(process.env.EXPO_LOCAL){r=u.default.join(t,".expo-local")}else{r=u.default.join(t,".expo")}return r}r.dotExpoHomeDirectory=dotExpoHomeDirectory;const getStateJsonPath=()=>u.default.join(dotExpoHomeDirectory(),"state.json");r.getStateJsonPath=getStateJsonPath},1805:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};Object.defineProperty(r,"__esModule",{value:true});r.configurePackageManager=r.installDependenciesAsync=r.formatSelfCommand=r.formatRunCommand=r.isPackageManagerAvailable=r.resolvePackageManager=void 0;const l=u(i(7496));const h=i(2081);const p=i(9247);const d=i(7984)("expo:init:resolvePackageManager");function resolvePackageManager(){const t=process.env.npm_config_user_agent;d("npm_config_user_agent:",t);if(t?.startsWith("yarn")){return"yarn"}else if(t?.startsWith("pnpm")){return"pnpm"}else if(t?.startsWith("bun")){return"bun"}else if(t?.startsWith("npm")){return"npm"}if(isPackageManagerAvailable("yarn")){return"yarn"}else if(isPackageManagerAvailable("pnpm")){return"pnpm"}else if(isPackageManagerAvailable("bun")){return"bun"}return"npm"}r.resolvePackageManager=resolvePackageManager;function isPackageManagerAvailable(t){try{(0,h.execSync)(`${t} --version`,{stdio:"ignore"});return true}catch{}return false}r.isPackageManagerAvailable=isPackageManagerAvailable;function formatRunCommand(t,r){switch(t){case"pnpm":return`pnpm run ${r}`;case"yarn":return`yarn ${r}`;case"bun":return`bun run ${r}`;case"npm":default:return`npm run ${r}`}}r.formatRunCommand=formatRunCommand;function formatSelfCommand(){const t=resolvePackageManager();switch(t){case"pnpm":return`pnpx ${p.CLI_NAME}`;case"bun":return`bunx ${p.CLI_NAME}`;case"yarn":case"npm":default:return`npx ${p.CLI_NAME}`}}r.formatSelfCommand=formatSelfCommand;function createPackageManager(t,r){switch(t){case"yarn":return new l.YarnPackageManager(r);case"pnpm":return new l.PnpmPackageManager(r);case"bun":return new l.BunPackageManager(r);case"npm":default:return new l.NpmPackageManager(r)}}async function installDependenciesAsync(t,r,i={silent:false}){await createPackageManager(r,{cwd:t,silent:i.silent}).installAsync()}r.installDependenciesAsync=installDependenciesAsync;async function configurePackageManager(t,r,i={silent:false}){const o=createPackageManager(r,{cwd:t,...i});switch(o.name){case"pnpm":await o.runAsync(["config","--location","project","set","node-linker","hoisted"]);break;case"yarn":{const t=await o.versionAsync();const r=parseInt(t.split(".")[0],10);if(r>=2){await o.runAsync(["config","set","nodeLinker","node-modules"])}break}}}r.configurePackageManager=configurePackageManager},9561:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.resolveProjectRootAsync=r.assertFolderEmpty=r.assertValidName=void 0;const h=l(i(8746));const p=l(i(7147));const d=l(i(1017));const m=l(i(1112));const g=u(i(1947));const y=i(3744);const A=i(1805);const b=i(6462);function assertValidName(t){const r=g.validateName(t);if(typeof r==="string"){y.Log.exit((0,h.default)`{red Cannot create an app named {bold "${t}"}. ${r}}`,1)}const i=g.isFolderNameForbidden(t);if(i){y.Log.exit((0,h.default)`{red Cannot create an app named {bold "${t}"} because it would conflict with a dependency of the same name.}`,1)}}r.assertValidName=assertValidName;function assertFolderEmpty(t,r){const i=(0,b.getConflictsForDirectory)(t);if(i.length){y.Log.log((0,h.default)`The directory {cyan ${r}} has files that might be overwritten:`);y.Log.log();for(const t of i){y.Log.log(` ${t}`)}y.Log.log();y.Log.exit("Try using a new directory name, or moving these files.\n")}}r.assertFolderEmpty=assertFolderEmpty;async function resolveProjectRootAsync(t){let r=t?.trim();if(!r){const{answer:t}=await(0,m.default)({type:"text",name:"answer",message:"What is your app named?",initial:"my-app",validate:t=>{const r=g.validateName(d.default.basename(d.default.resolve(t)));if(typeof r==="string"){return"Invalid project name: "+r}return true}});if(typeof t==="string"){r=t.trim()}}if(!r){const t=(0,A.formatSelfCommand)();y.Log.log();y.Log.log("Please choose your app name:");y.Log.log((0,h.default)` {dim $} {cyan ${t} <name>}`);y.Log.log();y.Log.log(`For more info, run:`);y.Log.log((0,h.default)` {dim $} {cyan ${t} --help}`);y.Log.log();y.Log.exit("")}const i=d.default.resolve(r);const o=d.default.basename(i);assertValidName(o);await p.default.promises.mkdir(i,{recursive:true});assertFolderEmpty(i,o);return i}r.resolveProjectRootAsync=resolveProjectRootAsync},6785:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.getSession=void 0;const a=o(i(6282));const u=i(2126);function getSession(){try{return a.default.read((0,u.getStateJsonPath)())?.auth??null}catch(t){if(t.code==="ENOENT"){return null}throw t}}r.getSession=getSession},4575:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.AnalyticsEventPhases=r.AnalyticsEventTypes=r.flushAsync=r.track=r.identify=r.initializeAnalyticsIdentityAsync=r._resetGlobals=void 0;const a=o(i(6282));const u=o(i(6113));const l=o(i(7147));const h=o(i(2037));const p=i(2126);const d=i(6785);const m=i(7943);const g=i(4147);const y="1wabJGd5IiuF9Q8SGlcI90v8WTs";const A="https://cdp.expo.dev/v1/batch";const b="1.0.0";const v=g.name;const E=[];let w=null;function _resetGlobals(){if(m.env.EXPO_NO_TELEMETRY)return;w=null;E.splice(0,E.length)}r._resetGlobals=_resetGlobals;async function initializeAnalyticsIdentityAsync(){if(m.env.EXPO_NO_TELEMETRY)return;if(w){return}w=await getAnalyticsIdentityAsync()}r.initializeAnalyticsIdentityAsync=initializeAnalyticsIdentityAsync;function identify(){if(m.env.EXPO_NO_TELEMETRY)return;enqueue("identify",{})}r.identify=identify;function track(t){if(m.env.EXPO_NO_TELEMETRY)return;enqueue("track",{...t,context:getAnalyticsContext()})}r.track=track;function enqueue(t,r){if(!w){return}r={...r,...w};r.type=t;if(r.type==="identify"){r.traits??={};r.context??={};r.context.traits=r.traits}r.context={library:{name:v,version:b},...r.context};r._metadata={nodeVersion:process.versions.node,...r._metadata};if(!r.originalTimestamp){r.originalTimestamp=new Date}if(!r.messageId){r.messageId=`node-${u.default.createHash("md5").update(JSON.stringify(r)).digest("hex")}-${uuidv4()}`}E.push(r)}async function flushAsync(){if(m.env.EXPO_NO_TELEMETRY)return;if(!E.length){return}const t={method:"POST",headers:{accept:"application/json, text/plain, */*","content-type":"application/json;charset=utf-8","user-agent":`${v}/${b}`,authorization:"Basic "+Buffer.from(`${y}:`).toString("base64")},body:JSON.stringify({batch:E.map((t=>({...t,sentAt:new Date}))),sentAt:new Date})};try{await fetch(A,t)}catch{}E.splice(0,E.length)}r.flushAsync=flushAsync;const _={darwin:"Mac",win32:"Windows",linux:"Linux"};function getAnalyticsContext(){const t=_[h.default.platform()]||h.default.platform();return{os:{name:t,version:h.default.release()},device:{type:t,model:t},app:{name:v,version:g.version}}}function uuidv4(){try{return u.default.randomUUID()}catch{return null}}var S;(function(t){t["CREATE_EXPO_APP"]="create expo app"})(S||(r.AnalyticsEventTypes=S={}));var C;(function(t){t["ATTEMPT"]="attempt";t["SUCCESS"]="success";t["FAIL"]="fail"})(C||(r.AnalyticsEventPhases=C={}));async function getAnalyticsIdentityAsync(){if(!l.default.existsSync((0,p.dotExpoHomeDirectory)())){l.default.mkdirSync((0,p.dotExpoHomeDirectory)(),{recursive:true})}if(!l.default.existsSync((0,p.getStateJsonPath)())){l.default.writeFileSync((0,p.getStateJsonPath)(),JSON.stringify({}))}const t=await a.default.getAsync((0,p.getStateJsonPath)(),"analyticsDeviceId",null);const r=t??uuidv4();if(!r){return null}if(!t){await a.default.setAsync((0,p.getStateJsonPath)(),"analyticsDeviceId",r)}const i=(0,d.getSession)()?.userId??null;return i?{anonymousId:r,userId:i}:{anonymousId:r}}},3490:function(t,r,i){"use strict";var o=this&&this.__createBinding||(Object.create?function(t,r,i,o){if(o===undefined)o=i;var a=Object.getOwnPropertyDescriptor(r,i);if(!a||("get"in a?!r.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return r[i]}}}Object.defineProperty(t,o,a)}:function(t,r,i,o){if(o===undefined)o=i;t[o]=r[i]});var a=this&&this.__setModuleDefault||(Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:true,value:r})}:function(t,r){t["default"]=r});var u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i))o(r,t,i);a(r,t);return r};var l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.assertDuplicateArgs=r.assertUnknownArgs=r.collapseAliases=r._resolveStringOrBooleanArgs=r.resolveStringOrBooleanArgsAsync=r.printHelp=r.assertWithOptionsArgs=void 0;const h=l(i(4816));const p=l(i(8746));const d=i(6889);const m=u(i(3744));function assertWithOptionsArgs(t,r){try{return(0,h.default)(t,r)}catch(t){if(t.code==="ARG_UNKNOWN_OPTION"){m.exit(t.message,1)}throw t}}r.assertWithOptionsArgs=assertWithOptionsArgs;function printHelp(t,r,i,o=""){m.exit((0,p.default)`
|
|
117
117
|
{bold Info}
|
|
118
118
|
${t}
|
|
119
119
|
|
|
@@ -122,4 +122,4 @@ var o=i(4300);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}
|
|
|
122
122
|
|
|
123
123
|
{bold Options}
|
|
124
124
|
${i.split("\n").join("\n ")}
|
|
125
|
-
`+o,0)}r.printHelp=printHelp;async function resolveStringOrBooleanArgsAsync(t,r,i){const o={...r,...i};assertUnknownArgs(o,t);t=collapseAliases(o,t);return _resolveStringOrBooleanArgs(i,t)}r.resolveStringOrBooleanArgsAsync=resolveStringOrBooleanArgsAsync;function _resolveStringOrBooleanArgs(t,r){let i="";const o={};const a=Object.entries(t).filter((([,t])=>typeof t!=="string")).map((([t])=>t));for(let t=r.length-1;t>-1;t--){const u=r[t];if(u.startsWith("--")){o[u]=true}else{const l=t>0?r[t-1]:null;if(l&&a.includes(l)){o[l]=u;t--}else if(!i&&(t===r.length-1||t===0)){i=u}else{throw new Error(`Unknown argument: ${u}`)}}}return{args:o,projectRoot:i}}r._resolveStringOrBooleanArgs=_resolveStringOrBooleanArgs;function collapseAliases(t,r){const i=getAliasTuples(t);for(const[t,o]of i){r=(0,d.replaceValue)(r,t,o)}assertDuplicateArgs(r,i);return r}r.collapseAliases=collapseAliases;function assertUnknownArgs(t,r){const i=Object.keys(t);const o=r.filter((t=>!i.includes(t)&&t.startsWith("-")));if(o.length>0){throw new Error(`Unknown arguments: ${o.join(", ")}`)}}r.assertUnknownArgs=assertUnknownArgs;function getAliasTuples(t){return Object.entries(t).filter((([,t])=>typeof t==="string"))}function assertDuplicateArgs(t,r){for(const[i,o]of r){if(t.filter((t=>[i,o].includes(t))).length>1){throw new Error(`Can only provide one instance of ${i} or ${o}`)}}}r.assertDuplicateArgs=assertDuplicateArgs},6889:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.replaceValue=void 0;function replaceValue(t,r,i){const o=t.indexOf(r);if(o>-1){t[o]=i}return t}r.replaceValue=replaceValue},6462:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getConflictsForDirectory=void 0;const o=i(7147);const a=[".DS_Store","Thumbs.db",".git",".gitattributes",".gitignore",".npmignore","LICENSE","docs",".idea","npm-debug.log","yarn-debug.log","yarn-error.log"];function getConflictsForDirectory(t){return(0,o.readdirSync)(t).filter((t=>!(/\.iml$/.test(t)||a.includes(t))))}r.getConflictsForDirectory=getConflictsForDirectory},7943:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.env=void 0;const o=i(7945);class Env{get EXPO_DEBUG(){return(0,o.boolish)("EXPO_DEBUG",false)}get EXPO_BETA(){return(0,o.boolish)("EXPO_BETA",false)}get CI(){return(0,o.boolish)("CI",false)}get EXPO_NO_CACHE(){return(0,o.boolish)("EXPO_NO_CACHE",false)}get EXPO_NO_TELEMETRY(){return(0,o.boolish)("EXPO_NO_TELEMETRY",false)}}r.env=new Env},9544:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.fetch=void 0;const o=i(7742);function wrapFetchWithAssert(t){return(...r)=>{if(!t){if(o.env.NODE_OPTIONS?.includes("--no-experimental-fetch")){throw new Error('NODE_OPTIONS="--no-experimental-fetch" is not supported, Node.js built-in fetch is required to continue.')}throw new Error("Node.js built-in Fetch is not available. Ensure that the Fetch API, first available in Node.js 18, is enabled.")}return t(...r)}}r.fetch=wrapFetchWithAssert(globalThis.fetch)},424:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.initGitRepoAsync=void 0;const a=o(i(5642));const u=o(i(8746));const l=i(7984)("expo:init:git");async function initGitRepoAsync(t){try{await(0,a.default)("git",["rev-parse","--is-inside-work-tree"],{stdio:"ignore",cwd:t});l(u.default.dim("New project is already inside of a Git repo, skipping git init."));return false}catch(t){if(t.errno==="ENOENT"){l(u.default.dim("Unable to initialize Git repo. `git` not in $PATH."));return false}}const r=i(9756);try{await(0,a.default)("git",["init"],{stdio:"ignore",cwd:t});await(0,a.default)("git",["add","-A"],{stdio:"ignore",cwd:t});const i=`Initial commit\n\nGenerated by ${r.name} ${r.version}.`;await(0,a.default)("git",["commit","-m",i],{stdio:"ignore",cwd:t});l(u.default.dim("Initialized a Git repository."));return true}catch(t){l("Error initializing Git repo:",t);return false}}r.initGitRepoAsync=initGitRepoAsync},292:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.downloadAndExtractGitHubRepositoryAsync=void 0;const o=i(2781);const a=i(9544);const u=i(7240);const l=i(6581);const h=i(7984)("expo:init:github");async function getGitHubRepoAsync(t){const[,r,i,o,u,...l]=t.pathname.split("/");const h=l.join("/");if(o===undefined){const o=await(0,a.fetch)(`https://api.github.com/repos/${r}/${i}`);if(!o.ok&&o.status===404){throw new Error(`GitHub repository not found for url: ${t}`)}else if(!o.ok){throw new Error(`[${o.status}] Failed to fetch GitHub repository information for url: ${t}`)}const u=await o.json();return{owner:r,name:i,branch:u["default_branch"],filePath:h}}if(r&&i&&u&&o==="tree"){return{owner:r,name:i,branch:u,filePath:h}}throw new Error("Malformed GitHub repository response for URL: "+t.toString())}async function isValidGitHubRepoAsync(t){const r=`https://api.github.com/repos/${t.owner}/${t.name}/contents`;const i=`${t.filePath?`/${t.filePath}`:""}/package.json`;const o=await(0,a.fetch)(r+i+`?ref=${t.branch}`);return o.ok}async function extractRemoteGitHubTarballAsync(t,r,i){const h=await(0,a.fetch)(t);if(!h.ok)throw new Error(`Unexpected response: ${h.statusText} (${t})`);if(!h.body)throw new Error(`Unexpected response: no response body (${t})`);const p=r.filePath.replace(/^\//,"").split("/").filter(Boolean);const d=p.length+1;const m=(0,l.createGlobFilter)(!p.length?["*/**","*/ios/.xcode.env"]:[`*/${p.join("/")}/**`,`*/${p.join("/")}/ios/.xcode.env`],{ignore:["**/ios/*.xcworkspace/**"]});await(0,u.extractNpmTarballAsync)(o.Readable.fromWeb(h.body),{...i,filter:m,strip:d})}async function downloadAndExtractGitHubRepositoryAsync(t,r){h("Looking for GitHub repository");const i=await getGitHubRepoAsync(t);const o=await isValidGitHubRepoAsync(i);if(!o){throw new Error(`Could not to locate repository for "${t}", ensure this repository exists`)}const a=`https://codeload.github.com/${i.owner}/${i.name}/tar.gz/${i.branch}`;h("Resolved GitHub repository",i);h("Downloading GitHub repository from:",a);await extractRemoteGitHubTarballAsync(a,i,r)}r.downloadAndExtractGitHubRepositoryAsync=downloadAndExtractGitHubRepositoryAsync},8429:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.withSectionLog=void 0;const a=o(i(2651));const u=i(7943);function withSectionLog(t,r){const i=u.env.CI||u.env.EXPO_DEBUG;const o=(0,a.default)({text:r.pending,isEnabled:!i,stream:i?process.stdout:process.stderr});o.start();return t(o).then((t=>{o.succeed(r.success);return t}),(t=>{o.fail(r.error(t));throw t}))}r.withSectionLog=withSectionLog},7240:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.downloadAndExtractNpmModuleAsync=r.extractNpmTarballAsync=r.extractLocalNpmTarballAsync=r.applyKnownNpmPackageNameRules=r.getResolvedTemplateName=r.splitNpmNameAndTag=r.applyBetaTag=void 0;const a=o(i(5642));const u=o(i(7147));const l=o(i(2037));const h=o(i(1017));const p=i(2781);const d=o(i(8089));const m=i(3837);const g=i(7943);const y=i(6581);const A=i(755);const b=i(3744);const v=i(7984)("expo:init:npm");const E=(0,m.promisify)(p.Stream.pipeline);function getTemporaryCacheFilePath(t="template-cache"){return h.default.join(l.default.tmpdir(),".create-expo-app",t)}function applyBetaTag(t){let[r,i]=splitNpmNameAndTag(t);if(!i&&g.env.EXPO_BETA){v("Using beta tag for",r);i="beta"}return joinNpmNameAndTag(r,i)}r.applyBetaTag=applyBetaTag;function joinNpmNameAndTag(t,r){return[t,r].filter(Boolean).join("@")}function splitNpmNameAndTag(t){const r=t.split("@").filter(Boolean);if(t.startsWith("@")){return["@"+r[0],r[1]]}return[r[0],r[1]]}r.splitNpmNameAndTag=splitNpmNameAndTag;function getResolvedTemplateName(t){let[r,i="latest"]=splitNpmNameAndTag(t);if(r.startsWith("@")){return joinNpmNameAndTag(r,i)}const o="expo-template-";if(A.ALIASES.includes(o+r)){r=o+r}if(A.ALIASES.includes(r)){if(i?.match(/^\d+$/)){return r+"@sdk-"+i}}return joinNpmNameAndTag(r,i)}r.getResolvedTemplateName=getResolvedTemplateName;function applyKnownNpmPackageNameRules(t){while(/^(\.|_)/.test(t)){t=t.substring(1)}t=t.toLowerCase().replace(/[^a-zA-Z0-9._\-/@]/g,"");return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")||null}r.applyKnownNpmPackageNameRules=applyKnownNpmPackageNameRules;async function extractLocalNpmTarballAsync(t,r){const i=u.default.createReadStream(t);await extractNpmTarballAsync(i,r)}r.extractLocalNpmTarballAsync=extractLocalNpmTarballAsync;async function extractNpmTarballAsync(t,r){if(!t){throw new Error("Missing stream")}const{cwd:i,strip:o,name:a,fileList:l=[],filter:h}=r;await u.default.promises.mkdir(i,{recursive:true});await E(t,d.default.extract({cwd:i,filter:h,onentry:(0,y.createEntryResolver)(a),strip:o??1},l))}r.extractNpmTarballAsync=extractNpmTarballAsync;async function npmPackAsync(t,r=undefined,...i){const o=getNpmBin();const l=["pack",t,...i];const h=`${o} ${l.join(" ")}`;v("Run:",h,`(cwd: ${r??process.cwd()})`);if(r){await u.default.promises.mkdir(r,{recursive:true})}let p;try{p=(await(0,a.default)(o,[...l,"--json"],{cwd:r})).stdout?.trim()}catch(t){if(t?.stderr.match(/npm ERR! code E404/)){const r=t.stderr.match(/npm ERR! 404\s+'(.*)' is not in this registry\./)?.[1]??t.stderr;throw new Error(`NPM package not found: `+r)}throw t}if(!p){return null}try{const t=JSON.parse(p);if(Array.isArray(t)&&t.every(isNpmPackageInfo)){return t.map(sanitizeNpmPackageFilename)}else{throw new Error(`Invalid response from npm: ${p}`)}}catch(t){throw new Error(`Could not parse JSON returned from "${h}".\n\n${p}\n\nError: ${t.message}`)}}function getNpmBin(){return process.platform==="win32"?"npm.cmd":"npm"}async function getNpmInfoAsync(t,r){const i=await npmPackAsync(t,r,"--dry-run");if(i?.[0]){return i[0]}throw new Error(`Could not find npm package "${t}"`)}function isNpmPackageInfo(t){return t&&typeof t==="object"&&"id"in t&&"filename"in t&&"version"in t&&"files"in t}function sanitizeNpmPackageFilename(t){if(t.filename.startsWith("@")&&t.name.startsWith("@")){t.filename=t.filename.replace(/^@/,"").replace(/\//,"-")}return t}async function fileExistsAsync(t){try{const r=await u.default.promises.stat(t);return r.isFile()}catch{return false}}async function downloadAndExtractNpmModuleAsync(t,r){const i=getTemporaryCacheFilePath();v(`Looking for NPM tarball (id: ${t}, cache: ${i})`);await u.default.promises.mkdir(i,{recursive:true});const o=await getNpmInfoAsync(t,i);const a=h.default.join(i,o.filename);try{const o=await fileExistsAsync(a);const u=g.env.EXPO_NO_CACHE||r.disableCache;if(u||!o){v(`Downloading tarball for ${t} to ${i}...`);await npmPackAsync(t,i)}}catch(r){b.Log.error("Error downloading template package: "+t);throw r}try{await extractLocalNpmTarballAsync(a,{cwd:r.cwd,name:r.name})}catch(r){b.Log.error("Error extracting template package: "+t);throw r}}r.downloadAndExtractNpmModuleAsync=downloadAndExtractNpmModuleAsync},5897:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const a=o(i(8746));const u=o(i(5418));const l=i(9756);const h=i(7984)("expo:init:update-check");async function shouldUpdate(){try{const t=await(0,u.default)(l);if(t?.latest){console.log();console.log(a.default.yellow.bold(`A new version of \`${l.name}\` is available`));console.log((0,a.default)`You can update by running: {cyan npm install -g ${l.name}}`);console.log()}}catch(t){h("Error checking for update:\n%O",t)}}r["default"]=shouldUpdate},9756:module=>{module.exports=eval("require")("../package.json")},9491:t=>{"use strict";t.exports=require("assert")},4300:t=>{"use strict";t.exports=require("buffer")},2081:t=>{"use strict";t.exports=require("child_process")},2057:t=>{"use strict";t.exports=require("constants")},6113:t=>{"use strict";t.exports=require("crypto")},9523:t=>{"use strict";t.exports=require("dns")},2361:t=>{"use strict";t.exports=require("events")},7147:t=>{"use strict";t.exports=require("fs")},3685:t=>{"use strict";t.exports=require("http")},5687:t=>{"use strict";t.exports=require("https")},8188:t=>{"use strict";t.exports=require("module")},7561:t=>{"use strict";t.exports=require("node:fs")},9411:t=>{"use strict";t.exports=require("node:path")},7742:t=>{"use strict";t.exports=require("node:process")},7261:t=>{"use strict";t.exports=require("node:util")},2037:t=>{"use strict";t.exports=require("os")},1017:t=>{"use strict";t.exports=require("path")},7282:t=>{"use strict";t.exports=require("process")},4521:t=>{"use strict";t.exports=require("readline")},2781:t=>{"use strict";t.exports=require("stream")},1576:t=>{"use strict";t.exports=require("string_decoder")},6224:t=>{"use strict";t.exports=require("tty")},7310:t=>{"use strict";t.exports=require("url")},3837:t=>{"use strict";t.exports=require("util")},1267:t=>{"use strict";t.exports=require("worker_threads")},9796:t=>{"use strict";t.exports=require("zlib")},9539:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isIdentifierChar=isIdentifierChar;r.isIdentifierName=isIdentifierName;r.isIdentifierStart=isIdentifierStart;let i="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let o="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const a=new RegExp("["+i+"]");const u=new RegExp("["+i+o+"]");i=o=null;const l=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const h=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(t,r){let i=65536;for(let o=0,a=r.length;o<a;o+=2){i+=r[o];if(i>t)return false;i+=r[o+1];if(i>=t)return true}return false}function isIdentifierStart(t){if(t<65)return t===36;if(t<=90)return true;if(t<97)return t===95;if(t<=122)return true;if(t<=65535){return t>=170&&a.test(String.fromCharCode(t))}return isInAstralSet(t,l)}function isIdentifierChar(t){if(t<48)return t===36;if(t<58)return true;if(t<65)return false;if(t<=90)return true;if(t<97)return t===95;if(t<=122)return true;if(t<=65535){return t>=170&&u.test(String.fromCharCode(t))}return isInAstralSet(t,l)||isInAstralSet(t,h)}function isIdentifierName(t){let r=true;for(let i=0;i<t.length;i++){let o=t.charCodeAt(i);if((o&64512)===55296&&i+1<t.length){const r=t.charCodeAt(++i);if((r&64512)===56320){o=65536+((o&1023)<<10)+(r&1023)}}if(r){r=false;if(!isIdentifierStart(o)){return false}}else if(!isIdentifierChar(o)){return false}}return!r}},4679:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"isIdentifierChar",{enumerable:true,get:function(){return o.isIdentifierChar}});Object.defineProperty(r,"isIdentifierName",{enumerable:true,get:function(){return o.isIdentifierName}});Object.defineProperty(r,"isIdentifierStart",{enumerable:true,get:function(){return o.isIdentifierStart}});Object.defineProperty(r,"isKeyword",{enumerable:true,get:function(){return a.isKeyword}});Object.defineProperty(r,"isReservedWord",{enumerable:true,get:function(){return a.isReservedWord}});Object.defineProperty(r,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return a.isStrictBindOnlyReservedWord}});Object.defineProperty(r,"isStrictBindReservedWord",{enumerable:true,get:function(){return a.isStrictBindReservedWord}});Object.defineProperty(r,"isStrictReservedWord",{enumerable:true,get:function(){return a.isStrictReservedWord}});var o=i(9539);var a=i(11)},11:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isKeyword=isKeyword;r.isReservedWord=isReservedWord;r.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;r.isStrictBindReservedWord=isStrictBindReservedWord;r.isStrictReservedWord=isStrictReservedWord;const i={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const o=new Set(i.keyword);const a=new Set(i.strict);const u=new Set(i.strictBind);function isReservedWord(t,r){return r&&t==="await"||t==="enum"}function isStrictReservedWord(t,r){return isReservedWord(t,r)||a.has(t)}function isStrictBindOnlyReservedWord(t){return u.has(t)}function isStrictBindReservedWord(t,r){return isStrictReservedWord(t,r)||isStrictBindOnlyReservedWord(t)}function isKeyword(t){return o.has(t)}},932:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=highlight;r.shouldHighlight=shouldHighlight;var o=i(8035);var a=i(4679);var u=_interopRequireWildcard(i(9397),true);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,i=new WeakMap;return(_getRequireWildcardCache=function(t){return t?i:r})(t)}function _interopRequireWildcard(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=_getRequireWildcardCache(r);if(i&&i.has(t))return i.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var l=a?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,i&&i.set(t,o),o}const l=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,u.createColors)(false):u.default;const compose=(t,r)=>i=>t(r(i));const h=new Set(["as","async","from","get","of","set"]);function getDefs(t){return{keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.gray,invalid:compose(compose(t.white,t.bgRed),t.bold)}}const p=/\r\n|[\n\r\u2028\u2029]/;const d=/^[()[\]{}]$/;let m;{const t=/^[a-z][\w-]*$/i;const getTokenType=function(r,i,o){if(r.type==="name"){if((0,a.isKeyword)(r.value)||(0,a.isStrictReservedWord)(r.value,true)||h.has(r.value)){return"keyword"}if(t.test(r.value)&&(o[i-1]==="<"||o.slice(i-2,i)==="</")){return"jsxIdentifier"}if(r.value[0]!==r.value[0].toLowerCase()){return"capitalized"}}if(r.type==="punctuator"&&d.test(r.value)){return"bracket"}if(r.type==="invalid"&&(r.value==="@"||r.value==="#")){return"punctuator"}return r.type};m=function*(t){let r;while(r=o.default.exec(t)){const i=o.matchToToken(r);yield{type:getTokenType(i,r.index,t),value:i.value}}}}function highlightTokens(t,r){let i="";for(const{type:o,value:a}of m(r)){const r=t[o];if(r){i+=a.split(p).map((t=>r(t))).join("\n")}else{i+=a}}return i}function shouldHighlight(t){return l.isColorSupported||t.forceColor}let g=undefined;function getColors(t){if(t){var r;(r=g)!=null?r:g=(0,u.createColors)(true);return g}return l}function highlight(t,r={}){if(t!==""&&shouldHighlight(r)){const i=getDefs(getColors(r.forceColor));return highlightTokens(i,t)}else{return t}}{let t,o;r.getChalk=({forceColor:r})=>{var a;(a=t)!=null?a:t=i(6870);if(r){var u;(u=o)!=null?u:o=new t.constructor({enabled:true,level:1});return o}return t}}},3576:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.LRUCache=void 0;const i=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const o=new Set;const a=typeof process==="object"&&!!process?process:{};const emitWarning=(t,r,i,o)=>{typeof a.emitWarning==="function"?a.emitWarning(t,r,i,o):console.error(`[${i}] ${r}: ${t}`)};let u=globalThis.AbortController;let l=globalThis.AbortSignal;if(typeof u==="undefined"){l=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(t,r){this._onabort.push(r)}};u=class AbortController{constructor(){warnACPolyfill()}signal=new l;abort(t){if(this.signal.aborted)return;this.signal.reason=t;this.signal.aborted=true;for(const r of this.signal._onabort){r(t)}this.signal.onabort?.(t)}};let t=a.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!t)return;t=false;emitWarning("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",warnACPolyfill)}}const shouldWarn=t=>!o.has(t);const h=Symbol("type");const isPosInt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t);const getUintArray=t=>!isPosInt(t)?null:t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(t){super(t);this.fill(0)}}class Stack{heap;length;static#s=false;static create(t){const r=getUintArray(t);if(!r)return[];Stack.#s=true;const i=new Stack(t,r);Stack.#s=false;return i}constructor(t,r){if(!Stack.#s){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]}}class LRUCache{#n;#i;#o;#a;#u;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#c;#h;#f;#p;#d;#m;#g;#y;#A;#b;#v;#E;#w;#_;#S;#C;static unsafeExposeInternals(t){return{starts:t.#E,ttls:t.#w,sizes:t.#v,keyMap:t.#h,keyList:t.#f,valList:t.#p,next:t.#d,prev:t.#m,get head(){return t.#g},get tail(){return t.#y},free:t.#A,isBackgroundFetch:r=>t.#D(r),backgroundFetch:(r,i,o,a)=>t.#x(r,i,o,a),moveToTail:r=>t.#R(r),indexes:r=>t.#O(r),rindexes:r=>t.#F(r),isStale:r=>t.#k(r)}}get max(){return this.#n}get maxSize(){return this.#i}get calculatedSize(){return this.#c}get size(){return this.#l}get fetchMethod(){return this.#u}get dispose(){return this.#o}get disposeAfter(){return this.#a}constructor(t){const{max:r=0,ttl:i,ttlResolution:a=1,ttlAutopurge:u,updateAgeOnGet:l,updateAgeOnHas:h,allowStale:p,dispose:d,disposeAfter:m,noDisposeOnSet:g,noUpdateTTL:y,maxSize:A=0,maxEntrySize:b=0,sizeCalculation:v,fetchMethod:E,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:_,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:C,ignoreFetchAbort:D}=t;if(r!==0&&!isPosInt(r)){throw new TypeError("max option must be a nonnegative integer")}const x=r?getUintArray(r):Array;if(!x){throw new Error("invalid max value: "+r)}this.#n=r;this.#i=A;this.maxEntrySize=b||this.#i;this.sizeCalculation=v;if(this.sizeCalculation){if(!this.#i&&!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(E!==undefined&&typeof E!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#u=E;this.#S=!!E;this.#h=new Map;this.#f=new Array(r).fill(undefined);this.#p=new Array(r).fill(undefined);this.#d=new x(r);this.#m=new x(r);this.#g=0;this.#y=0;this.#A=Stack.create(r);this.#l=0;this.#c=0;if(typeof d==="function"){this.#o=d}if(typeof m==="function"){this.#a=m;this.#b=[]}else{this.#a=undefined;this.#b=undefined}this.#_=!!this.#o;this.#C=!!this.#a;this.noDisposeOnSet=!!g;this.noUpdateTTL=!!y;this.noDeleteOnFetchRejection=!!w;this.allowStaleOnFetchRejection=!!S;this.allowStaleOnFetchAbort=!!C;this.ignoreFetchAbort=!!D;if(this.maxEntrySize!==0){if(this.#i!==0){if(!isPosInt(this.#i)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#P()}this.allowStale=!!p;this.noDeleteOnStaleGet=!!_;this.updateAgeOnGet=!!l;this.updateAgeOnHas=!!h;this.ttlResolution=isPosInt(a)||a===0?a:1;this.ttlAutopurge=!!u;this.ttl=i||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#T()}if(this.#n===0&&this.ttl===0&&this.#i===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#n&&!this.#i){const t="LRU_CACHE_UNBOUNDED";if(shouldWarn(t)){o.add(t);const r="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(r,"UnboundedCacheWarning",t,LRUCache)}}}getRemainingTTL(t){return this.#h.has(t)?Infinity:0}#T(){const t=new ZeroArray(this.#n);const r=new ZeroArray(this.#n);this.#w=t;this.#E=r;this.#L=(o,a,u=i.now())=>{r[o]=a!==0?u:0;t[o]=a;if(a!==0&&this.ttlAutopurge){const t=setTimeout((()=>{if(this.#k(o)){this.delete(this.#f[o])}}),a+1);if(t.unref){t.unref()}}};this.#I=o=>{r[o]=t[o]!==0?i.now():0};this.#M=(i,a)=>{if(t[a]){const u=t[a];const l=r[a];if(!u||!l)return;i.ttl=u;i.start=l;i.now=o||getNow();const h=i.now-l;i.remainingTTL=u-h}};let o=0;const getNow=()=>{const t=i.now();if(this.ttlResolution>0){o=t;const r=setTimeout((()=>o=0),this.ttlResolution);if(r.unref){r.unref()}}return t};this.getRemainingTTL=i=>{const a=this.#h.get(i);if(a===undefined){return 0}const u=t[a];const l=r[a];if(!u||!l){return Infinity}const h=(o||getNow())-l;return u-h};this.#k=i=>{const a=r[i];const u=t[i];return!!u&&!!a&&(o||getNow())-a>u}}#I=()=>{};#M=()=>{};#L=()=>{};#k=()=>false;#P(){const t=new ZeroArray(this.#n);this.#c=0;this.#v=t;this.#B=r=>{this.#c-=t[r];t[r]=0};this.#N=(t,r,i,o)=>{if(this.#D(r)){return 0}if(!isPosInt(i)){if(o){if(typeof o!=="function"){throw new TypeError("sizeCalculation must be a function")}i=o(r,t);if(!isPosInt(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.#$=(r,i,o)=>{t[r]=i;if(this.#i){const i=this.#i-t[r];while(this.#c>i){this.#j(true)}}this.#c+=t[r];if(o){o.entrySize=i;o.totalCalculatedSize=this.#c}}}#B=t=>{};#$=(t,r,i)=>{};#N=(t,r,i,o)=>{if(i||o){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#O({allowStale:t=this.allowStale}={}){if(this.#l){for(let r=this.#y;true;){if(!this.#H(r)){break}if(t||!this.#k(r)){yield r}if(r===this.#g){break}else{r=this.#m[r]}}}}*#F({allowStale:t=this.allowStale}={}){if(this.#l){for(let r=this.#g;true;){if(!this.#H(r)){break}if(t||!this.#k(r)){yield r}if(r===this.#y){break}else{r=this.#d[r]}}}}#H(t){return t!==undefined&&this.#h.get(this.#f[t])===t}*entries(){for(const t of this.#O()){if(this.#p[t]!==undefined&&this.#f[t]!==undefined&&!this.#D(this.#p[t])){yield[this.#f[t],this.#p[t]]}}}*rentries(){for(const t of this.#F()){if(this.#p[t]!==undefined&&this.#f[t]!==undefined&&!this.#D(this.#p[t])){yield[this.#f[t],this.#p[t]]}}}*keys(){for(const t of this.#O()){const r=this.#f[t];if(r!==undefined&&!this.#D(this.#p[t])){yield r}}}*rkeys(){for(const t of this.#F()){const r=this.#f[t];if(r!==undefined&&!this.#D(this.#p[t])){yield r}}}*values(){for(const t of this.#O()){const r=this.#p[t];if(r!==undefined&&!this.#D(this.#p[t])){yield this.#p[t]}}}*rvalues(){for(const t of this.#F()){const r=this.#p[t];if(r!==undefined&&!this.#D(this.#p[t])){yield this.#p[t]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(const i of this.#O()){const o=this.#p[i];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)continue;if(t(a,this.#f[i],this)){return this.get(this.#f[i],r)}}}forEach(t,r=this){for(const i of this.#O()){const o=this.#p[i];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)continue;t.call(r,a,this.#f[i],this)}}rforEach(t,r=this){for(const i of this.#F()){const o=this.#p[i];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)continue;t.call(r,a,this.#f[i],this)}}purgeStale(){let t=false;for(const r of this.#F({allowStale:true})){if(this.#k(r)){this.delete(this.#f[r]);t=true}}return t}info(t){const r=this.#h.get(t);if(r===undefined)return undefined;const o=this.#p[r];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)return undefined;const u={value:a};if(this.#w&&this.#E){const t=this.#w[r];const o=this.#E[r];if(t&&o){const r=t-(i.now()-o);u.ttl=r;u.start=Date.now()}}if(this.#v){u.size=this.#v[r]}return u}dump(){const t=[];for(const r of this.#O({allowStale:true})){const o=this.#f[r];const a=this.#p[r];const u=this.#D(a)?a.__staleWhileFetching:a;if(u===undefined||o===undefined)continue;const l={value:u};if(this.#w&&this.#E){l.ttl=this.#w[r];const t=i.now()-this.#E[r];l.start=Math.floor(Date.now()-t)}if(this.#v){l.size=this.#v[r]}t.unshift([o,l])}return t}load(t){this.clear();for(const[r,o]of t){if(o.start){const t=Date.now()-o.start;o.start=i.now()-t}this.set(r,o.value,o)}}set(t,r,i={}){if(r===undefined){this.delete(t);return this}const{ttl:o=this.ttl,start:a,noDisposeOnSet:u=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:h}=i;let{noUpdateTTL:p=this.noUpdateTTL}=i;const d=this.#N(t,r,i.size||0,l);if(this.maxEntrySize&&d>this.maxEntrySize){if(h){h.set="miss";h.maxEntrySizeExceeded=true}this.delete(t);return this}let m=this.#l===0?undefined:this.#h.get(t);if(m===undefined){m=this.#l===0?this.#y:this.#A.length!==0?this.#A.pop():this.#l===this.#n?this.#j(false):this.#l;this.#f[m]=t;this.#p[m]=r;this.#h.set(t,m);this.#d[this.#y]=m;this.#m[m]=this.#y;this.#y=m;this.#l++;this.#$(m,d,h);if(h)h.set="add";p=false}else{this.#R(m);const i=this.#p[m];if(r!==i){if(this.#S&&this.#D(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:r}=i;if(r!==undefined&&!u){if(this.#_){this.#o?.(r,t,"set")}if(this.#C){this.#b?.push([r,t,"set"])}}}else if(!u){if(this.#_){this.#o?.(i,t,"set")}if(this.#C){this.#b?.push([i,t,"set"])}}this.#B(m);this.#$(m,d,h);this.#p[m]=r;if(h){h.set="replace";const t=i&&this.#D(i)?i.__staleWhileFetching:i;if(t!==undefined)h.oldValue=t}}else if(h){h.set="update"}}if(o!==0&&!this.#w){this.#T()}if(this.#w){if(!p){this.#L(m,o,a)}if(h)this.#M(h,m)}if(!u&&this.#C&&this.#b){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}return this}pop(){try{while(this.#l){const t=this.#p[this.#g];this.#j(true);if(this.#D(t)){if(t.__staleWhileFetching){return t.__staleWhileFetching}}else if(t!==undefined){return t}}}finally{if(this.#C&&this.#b){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}}}#j(t){const r=this.#g;const i=this.#f[r];const o=this.#p[r];if(this.#S&&this.#D(o)){o.__abortController.abort(new Error("evicted"))}else if(this.#_||this.#C){if(this.#_){this.#o?.(o,i,"evict")}if(this.#C){this.#b?.push([o,i,"evict"])}}this.#B(r);if(t){this.#f[r]=undefined;this.#p[r]=undefined;this.#A.push(r)}if(this.#l===1){this.#g=this.#y=0;this.#A.length=0}else{this.#g=this.#d[r]}this.#h.delete(i);this.#l--;return r}has(t,r={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:o}=r;const a=this.#h.get(t);if(a!==undefined){const t=this.#p[a];if(this.#D(t)&&t.__staleWhileFetching===undefined){return false}if(!this.#k(a)){if(i){this.#I(a)}if(o){o.has="hit";this.#M(o,a)}return true}else if(o){o.has="stale";this.#M(o,a)}}else if(o){o.has="miss"}return false}peek(t,r={}){const{allowStale:i=this.allowStale}=r;const o=this.#h.get(t);if(o===undefined||!i&&this.#k(o)){return}const a=this.#p[o];return this.#D(a)?a.__staleWhileFetching:a}#x(t,r,i,o){const a=r===undefined?undefined:this.#p[r];if(this.#D(a)){return a}const l=new u;const{signal:h}=i;h?.addEventListener("abort",(()=>l.abort(h.reason)),{signal:l.signal});const p={signal:l.signal,options:i,context:o};const cb=(o,a=false)=>{const{aborted:u}=l.signal;const h=i.ignoreFetchAbort&&o!==undefined;if(i.status){if(u&&!a){i.status.fetchAborted=true;i.status.fetchError=l.signal.reason;if(h)i.status.fetchAbortIgnored=true}else{i.status.fetchResolved=true}}if(u&&!h&&!a){return fetchFail(l.signal.reason)}const m=d;if(this.#p[r]===d){if(o===undefined){if(m.__staleWhileFetching){this.#p[r]=m.__staleWhileFetching}else{this.delete(t)}}else{if(i.status)i.status.fetchUpdated=true;this.set(t,o,p.options)}}return o};const eb=t=>{if(i.status){i.status.fetchRejected=true;i.status.fetchError=t}return fetchFail(t)};const fetchFail=o=>{const{aborted:a}=l.signal;const u=a&&i.allowStaleOnFetchAbort;const h=u||i.allowStaleOnFetchRejection;const p=h||i.noDeleteOnFetchRejection;const m=d;if(this.#p[r]===d){const i=!p||m.__staleWhileFetching===undefined;if(i){this.delete(t)}else if(!u){this.#p[r]=m.__staleWhileFetching}}if(h){if(i.status&&m.__staleWhileFetching!==undefined){i.status.returnedStale=true}return m.__staleWhileFetching}else if(m.__returned===m){throw o}};const pcall=(r,o)=>{const u=this.#u?.(t,a,p);if(u&&u instanceof Promise){u.then((t=>r(t===undefined?undefined:t)),o)}l.signal.addEventListener("abort",(()=>{if(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort){r(undefined);if(i.allowStaleOnFetchAbort){r=t=>cb(t,true)}}}))};if(i.status)i.status.fetchDispatched=true;const d=new Promise(pcall).then(cb,eb);const m=Object.assign(d,{__abortController:l,__staleWhileFetching:a,__returned:undefined});if(r===undefined){this.set(t,m,{...p.options,status:undefined});r=this.#h.get(t)}else{this.#p[r]=m}return m}#D(t){if(!this.#S)return false;const r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof u}async fetch(t,r={}){const{allowStale:i=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:u=this.ttl,noDisposeOnSet:l=this.noDisposeOnSet,size:h=0,sizeCalculation:p=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:m=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:A=this.allowStaleOnFetchAbort,context:b,forceRefresh:v=false,status:E,signal:w}=r;if(!this.#S){if(E)E.fetch="get";return this.get(t,{allowStale:i,updateAgeOnGet:o,noDeleteOnStaleGet:a,status:E})}const _={allowStale:i,updateAgeOnGet:o,noDeleteOnStaleGet:a,ttl:u,noDisposeOnSet:l,size:h,sizeCalculation:p,noUpdateTTL:d,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:A,ignoreFetchAbort:y,status:E,signal:w};let S=this.#h.get(t);if(S===undefined){if(E)E.fetch="miss";const r=this.#x(t,S,_,b);return r.__returned=r}else{const r=this.#p[S];if(this.#D(r)){const t=i&&r.__staleWhileFetching!==undefined;if(E){E.fetch="inflight";if(t)E.returnedStale=true}return t?r.__staleWhileFetching:r.__returned=r}const a=this.#k(S);if(!v&&!a){if(E)E.fetch="hit";this.#R(S);if(o){this.#I(S)}if(E)this.#M(E,S);return r}const u=this.#x(t,S,_,b);const l=u.__staleWhileFetching!==undefined;const h=l&&i;if(E){E.fetch=a?"stale":"refresh";if(h&&a)E.returnedStale=true}return h?u.__staleWhileFetching:u.__returned=u}}get(t,r={}){const{allowStale:i=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:u}=r;const l=this.#h.get(t);if(l!==undefined){const r=this.#p[l];const h=this.#D(r);if(u)this.#M(u,l);if(this.#k(l)){if(u)u.get="stale";if(!h){if(!a){this.delete(t)}if(u&&i)u.returnedStale=true;return i?r:undefined}else{if(u&&i&&r.__staleWhileFetching!==undefined){u.returnedStale=true}return i?r.__staleWhileFetching:undefined}}else{if(u)u.get="hit";if(h){return r.__staleWhileFetching}this.#R(l);if(o){this.#I(l)}return r}}else if(u){u.get="miss"}}#G(t,r){this.#m[r]=t;this.#d[t]=r}#R(t){if(t!==this.#y){if(t===this.#g){this.#g=this.#d[t]}else{this.#G(this.#m[t],this.#d[t])}this.#G(this.#y,t);this.#y=t}}delete(t){let r=false;if(this.#l!==0){const i=this.#h.get(t);if(i!==undefined){r=true;if(this.#l===1){this.clear()}else{this.#B(i);const r=this.#p[i];if(this.#D(r)){r.__abortController.abort(new Error("deleted"))}else if(this.#_||this.#C){if(this.#_){this.#o?.(r,t,"delete")}if(this.#C){this.#b?.push([r,t,"delete"])}}this.#h.delete(t);this.#f[i]=undefined;this.#p[i]=undefined;if(i===this.#y){this.#y=this.#m[i]}else if(i===this.#g){this.#g=this.#d[i]}else{const t=this.#m[i];this.#d[t]=this.#d[i];const r=this.#d[i];this.#m[r]=this.#m[i]}this.#l--;this.#A.push(i)}}}if(this.#C&&this.#b?.length){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}return r}clear(){for(const t of this.#F({allowStale:true})){const r=this.#p[t];if(this.#D(r)){r.__abortController.abort(new Error("deleted"))}else{const i=this.#f[t];if(this.#_){this.#o?.(r,i,"delete")}if(this.#C){this.#b?.push([r,i,"delete"])}}}this.#h.clear();this.#p.fill(undefined);this.#f.fill(undefined);if(this.#w&&this.#E){this.#w.fill(0);this.#E.fill(0)}if(this.#v){this.#v.fill(0)}this.#g=0;this.#y=0;this.#A.length=0;this.#c=0;this.#l=0;if(this.#C&&this.#b){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}}}r.LRUCache=LRUCache},2548:t=>{"use strict";t.exports=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","❤️ "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},"fistBump":{"interval":80,"frames":["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},"soccerHeader":{"interval":80,"frames":[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},"mindblown":{"interval":160,"frames":["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},"speaker":{"interval":160,"frames":["🔈 ","🔉 ","🔊 ","🔉 "]},"orangePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},"bluePulse":{"interval":100,"frames":["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"orangeBluePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"timeTravel":{"interval":100,"frames":["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}')},4147:t=>{"use strict";t.exports=JSON.parse('{"name":"create-expo","version":"3.0.1","bin":"./build/index.js","main":"build","description":"Create universal Expo apps","license":"BSD-3-Clause","keywords":["expo","react-native","react"],"homepage":"https://docs.expo.dev","repository":{"type":"git","url":"https://github.com/expo/expo.git","directory":"packages/create-expo"},"author":"Evan Bacon <bacon@expo.io> (https://github.com/evanbacon)","files":["build","template"],"engines":{"node":">=18.13.0"},"scripts":{"build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","prepare":"expo-module clean && yarn run build:prod","clean":"expo-module clean","lint":"expo-module lint","typecheck":"expo-module typecheck","test":"expo-module test","test:e2e":"expo-module test --config e2e/jest.config.js --runInBand","watch":"yarn run build --watch","prepublishOnly":"expo-module prepublishOnly"},"devDependencies":{"@expo/config":"^10.0.0","@expo/json-file":"^9.0.0","@expo/package-manager":"^1.5.0","@expo/spawn-async":"^1.7.2","@octokit/types":"^13.5.0","@types/debug":"^4.1.7","@types/getenv":"^1.0.0","@types/node":"^18.19.34","@types/picomatch":"^2.3.3","@types/prompts":"2.0.14","@types/tar":"^6.1.2","@vercel/ncc":"^0.38.1","arg":"^5.0.2","chalk":"^4.0.0","debug":"^4.3.4","expo-module-scripts":"^4.0.0","fast-glob":"^3.3.2","getenv":"^1.0.0","nock":"^14.0.0-beta.7","ora":"3.4.0","picomatch":"^2.3.1","prompts":"^2.4.2","tar":"^6.2.1","update-check":"^1.5.4"},"gitHead":"f7adac0a6b82ab484a8254a68c3808ba6f2afde5"}')}};var __webpack_module_cache__={};function __nccwpck_require__(t){var r=__webpack_module_cache__[t];if(r!==undefined){return r.exports}var i=__webpack_module_cache__[t]={id:t,loaded:false,exports:{}};var o=true;try{__webpack_modules__[t].call(i.exports,i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete __webpack_module_cache__[t]}i.loaded=true;return i.exports}(()=>{__nccwpck_require__.nmd=t=>{t.paths=[];if(!t.children)t.children=[];return t}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(2855);module.exports=__webpack_exports__})();
|
|
125
|
+
`+o,0)}r.printHelp=printHelp;async function resolveStringOrBooleanArgsAsync(t,r,i){const o={...r,...i};assertUnknownArgs(o,t);t=collapseAliases(o,t);return _resolveStringOrBooleanArgs(i,t)}r.resolveStringOrBooleanArgsAsync=resolveStringOrBooleanArgsAsync;function _resolveStringOrBooleanArgs(t,r){let i="";const o={};const a=Object.entries(t).filter((([,t])=>typeof t!=="string")).map((([t])=>t));for(let t=r.length-1;t>-1;t--){const u=r[t];if(u.startsWith("--")){o[u]=true}else{const l=t>0?r[t-1]:null;if(l&&a.includes(l)){o[l]=u;t--}else if(!i&&(t===r.length-1||t===0)){i=u}else{throw new Error(`Unknown argument: ${u}`)}}}return{args:o,projectRoot:i}}r._resolveStringOrBooleanArgs=_resolveStringOrBooleanArgs;function collapseAliases(t,r){const i=getAliasTuples(t);for(const[t,o]of i){r=(0,d.replaceValue)(r,t,o)}assertDuplicateArgs(r,i);return r}r.collapseAliases=collapseAliases;function assertUnknownArgs(t,r){const i=Object.keys(t);const o=r.filter((t=>!i.includes(t)&&t.startsWith("-")));if(o.length>0){throw new Error(`Unknown arguments: ${o.join(", ")}`)}}r.assertUnknownArgs=assertUnknownArgs;function getAliasTuples(t){return Object.entries(t).filter((([,t])=>typeof t==="string"))}function assertDuplicateArgs(t,r){for(const[i,o]of r){if(t.filter((t=>[i,o].includes(t))).length>1){throw new Error(`Can only provide one instance of ${i} or ${o}`)}}}r.assertDuplicateArgs=assertDuplicateArgs},6889:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.replaceValue=void 0;function replaceValue(t,r,i){const o=t.indexOf(r);if(o>-1){t[o]=i}return t}r.replaceValue=replaceValue},6462:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.getConflictsForDirectory=void 0;const o=i(7147);const a=[".DS_Store","Thumbs.db",".git",".gitattributes",".gitignore",".npmignore","LICENSE","docs",".idea","npm-debug.log","yarn-debug.log","yarn-error.log"];function getConflictsForDirectory(t){return(0,o.readdirSync)(t).filter((t=>!(/\.iml$/.test(t)||a.includes(t))))}r.getConflictsForDirectory=getConflictsForDirectory},7943:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.env=void 0;const o=i(7945);class Env{get EXPO_DEBUG(){return(0,o.boolish)("EXPO_DEBUG",false)}get EXPO_BETA(){return(0,o.boolish)("EXPO_BETA",false)}get CI(){return(0,o.boolish)("CI",false)}get EXPO_NO_CACHE(){return(0,o.boolish)("EXPO_NO_CACHE",false)}get EXPO_NO_TELEMETRY(){return(0,o.boolish)("EXPO_NO_TELEMETRY",false)}}r.env=new Env},9544:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.fetch=void 0;const o=i(7742);function wrapFetchWithAssert(t){return(...r)=>{if(!t){if(o.env.NODE_OPTIONS?.includes("--no-experimental-fetch")){throw new Error('NODE_OPTIONS="--no-experimental-fetch" is not supported, Node.js built-in fetch is required to continue.')}throw new Error("Node.js built-in Fetch is not available. Ensure that the Fetch API, first available in Node.js 18, is enabled.")}return t(...r)}}r.fetch=wrapFetchWithAssert(globalThis.fetch)},424:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.initGitRepoAsync=void 0;const a=o(i(5642));const u=o(i(8746));const l=i(7984)("expo:init:git");async function initGitRepoAsync(t){try{await(0,a.default)("git",["rev-parse","--is-inside-work-tree"],{stdio:"ignore",cwd:t});l(u.default.dim("New project is already inside of a Git repo, skipping git init."));return false}catch(t){if(t.errno==="ENOENT"){l(u.default.dim("Unable to initialize Git repo. `git` not in $PATH."));return false}}const r=i(9756);try{await(0,a.default)("git",["init"],{stdio:"ignore",cwd:t});await(0,a.default)("git",["add","-A"],{stdio:"ignore",cwd:t});const i=`Initial commit\n\nGenerated by ${r.name} ${r.version}.`;await(0,a.default)("git",["commit","-m",i],{stdio:"ignore",cwd:t});l(u.default.dim("Initialized a Git repository."));return true}catch(t){l("Error initializing Git repo:",t);return false}}r.initGitRepoAsync=initGitRepoAsync},292:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.downloadAndExtractGitHubRepositoryAsync=void 0;const o=i(2781);const a=i(9544);const u=i(7240);const l=i(6581);const h=i(7984)("expo:init:github");async function getGitHubRepoAsync(t){const[,r,i,o,u,...l]=t.pathname.split("/");const h=l.join("/");if(o===undefined){const o=await(0,a.fetch)(`https://api.github.com/repos/${r}/${i}`);if(!o.ok&&o.status===404){throw new Error(`GitHub repository not found for url: ${t}`)}else if(!o.ok){throw new Error(`[${o.status}] Failed to fetch GitHub repository information for url: ${t}`)}const u=await o.json();return{owner:r,name:i,branch:u["default_branch"],filePath:h}}if(r&&i&&u&&o==="tree"){return{owner:r,name:i,branch:u,filePath:h}}throw new Error("Malformed GitHub repository response for URL: "+t.toString())}async function isValidGitHubRepoAsync(t){const r=`https://api.github.com/repos/${t.owner}/${t.name}/contents`;const i=`${t.filePath?`/${t.filePath}`:""}/package.json`;const o=await(0,a.fetch)(r+i+`?ref=${t.branch}`);return o.ok}async function extractRemoteGitHubTarballAsync(t,r,i){const h=await(0,a.fetch)(t);if(!h.ok)throw new Error(`Unexpected response: ${h.statusText} (${t})`);if(!h.body)throw new Error(`Unexpected response: no response body (${t})`);const p=r.filePath.replace(/^\//,"").split("/").filter(Boolean);const d=p.length+1;const m=(0,l.createGlobFilter)(!p.length?["*/**","*/ios/.xcode.env"]:[`*/${p.join("/")}/**`,`*/${p.join("/")}/ios/.xcode.env`],{ignore:["**/ios/*.xcworkspace/**"]});await(0,u.extractNpmTarballAsync)(o.Readable.fromWeb(h.body),{...i,filter:m,strip:d})}async function downloadAndExtractGitHubRepositoryAsync(t,r){h("Looking for GitHub repository");const i=await getGitHubRepoAsync(t);const o=await isValidGitHubRepoAsync(i);if(!o){throw new Error(`Could not to locate repository for "${t}", ensure this repository exists`)}const a=`https://codeload.github.com/${i.owner}/${i.name}/tar.gz/${i.branch}`;h("Resolved GitHub repository",i);h("Downloading GitHub repository from:",a);await extractRemoteGitHubTarballAsync(a,i,r)}r.downloadAndExtractGitHubRepositoryAsync=downloadAndExtractGitHubRepositoryAsync},8429:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.withSectionLog=void 0;const a=o(i(2651));const u=i(7943);function withSectionLog(t,r){const i=u.env.CI||u.env.EXPO_DEBUG;const o=(0,a.default)({text:r.pending,isEnabled:!i,stream:i?process.stdout:process.stderr});o.start();return t(o).then((t=>{o.succeed(r.success);return t}),(t=>{o.fail(r.error(t));throw t}))}r.withSectionLog=withSectionLog},7240:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});r.downloadAndExtractNpmModuleAsync=r.extractNpmTarballAsync=r.extractLocalNpmTarballAsync=r.applyKnownNpmPackageNameRules=r.getResolvedTemplateName=r.splitNpmNameAndTag=r.applyBetaTag=void 0;const a=o(i(5642));const u=o(i(7147));const l=o(i(2037));const h=o(i(1017));const p=i(2781);const d=o(i(8089));const m=i(3837);const g=i(7943);const y=i(6581);const A=i(755);const b=i(3744);const v=i(7984)("expo:init:npm");const E=(0,m.promisify)(p.Stream.pipeline);function getTemporaryCacheFilePath(t="template-cache"){return h.default.join(l.default.tmpdir(),".create-expo-app",t)}function applyBetaTag(t){let[r,i]=splitNpmNameAndTag(t);if(!i&&g.env.EXPO_BETA){v("Using beta tag for",r);i="beta"}return joinNpmNameAndTag(r,i)}r.applyBetaTag=applyBetaTag;function joinNpmNameAndTag(t,r){return[t,r].filter(Boolean).join("@")}function splitNpmNameAndTag(t){const r=t.split("@").filter(Boolean);if(t.startsWith("@")){return["@"+r[0],r[1]]}return[r[0],r[1]]}r.splitNpmNameAndTag=splitNpmNameAndTag;function getResolvedTemplateName(t){let[r,i="latest"]=splitNpmNameAndTag(t);if(r.startsWith("@")){return joinNpmNameAndTag(r,i)}const o="expo-template-";if(A.ALIASES.includes(o+r)){r=o+r}if(A.ALIASES.includes(r)){if(i?.match(/^\d+$/)){return r+"@sdk-"+i}}return joinNpmNameAndTag(r,i)}r.getResolvedTemplateName=getResolvedTemplateName;function applyKnownNpmPackageNameRules(t){while(/^(\.|_)/.test(t)){t=t.substring(1)}t=t.toLowerCase().replace(/[^a-zA-Z0-9._\-/@]/g,"");return t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")||null}r.applyKnownNpmPackageNameRules=applyKnownNpmPackageNameRules;async function extractLocalNpmTarballAsync(t,r){const i=u.default.createReadStream(t);await extractNpmTarballAsync(i,r)}r.extractLocalNpmTarballAsync=extractLocalNpmTarballAsync;async function extractNpmTarballAsync(t,r){if(!t){throw new Error("Missing stream")}const{cwd:i,strip:o,name:a,fileList:l=[],filter:h}=r;await u.default.promises.mkdir(i,{recursive:true});await E(t,d.default.extract({cwd:i,filter:h,onentry:(0,y.createEntryResolver)(a),strip:o??1},l))}r.extractNpmTarballAsync=extractNpmTarballAsync;async function npmPackAsync(t,r=undefined,...i){const o=getNpmBin();const l=["pack",t,...i];const h=`${o} ${l.join(" ")}`;v("Run:",h,`(cwd: ${r??process.cwd()})`);if(r){await u.default.promises.mkdir(r,{recursive:true})}let p;try{p=(await(0,a.default)(o,[...l,"--json"],{cwd:r})).stdout?.trim()}catch(t){if(t?.stderr.match(/npm ERR! code E404/)){const r=t.stderr.match(/npm ERR! 404\s+'(.*)' is not in this registry\./)?.[1]??t.stderr;throw new Error(`NPM package not found: `+r)}throw t}if(!p){return null}try{const t=JSON.parse(p);if(Array.isArray(t)&&t.every(isNpmPackageInfo)){return t.map(sanitizeNpmPackageFilename)}else{throw new Error(`Invalid response from npm: ${p}`)}}catch(t){throw new Error(`Could not parse JSON returned from "${h}".\n\n${p}\n\nError: ${t.message}`)}}function getNpmBin(){return process.platform==="win32"?"npm.cmd":"npm"}async function getNpmInfoAsync(t,r){const i=await npmPackAsync(t,r,"--dry-run");if(i?.[0]){return i[0]}throw new Error(`Could not find npm package "${t}"`)}function isNpmPackageInfo(t){return t&&typeof t==="object"&&"id"in t&&"filename"in t&&"version"in t&&"files"in t}function sanitizeNpmPackageFilename(t){if(t.filename.startsWith("@")&&t.name.startsWith("@")){t.filename=t.filename.replace(/^@/,"").replace(/\//,"-")}return t}async function fileExistsAsync(t){try{const r=await u.default.promises.stat(t);return r.isFile()}catch{return false}}async function downloadAndExtractNpmModuleAsync(t,r){const i=getTemporaryCacheFilePath();v(`Looking for NPM tarball (id: ${t}, cache: ${i})`);await u.default.promises.mkdir(i,{recursive:true});const o=await getNpmInfoAsync(t,i);const a=h.default.join(i,o.filename);try{const o=await fileExistsAsync(a);const u=g.env.EXPO_NO_CACHE||r.disableCache;if(u||!o){v(`Downloading tarball for ${t} to ${i}...`);await npmPackAsync(t,i)}}catch(r){b.Log.error("Error downloading template package: "+t);throw r}try{await extractLocalNpmTarballAsync(a,{cwd:r.cwd,name:r.name})}catch(r){b.Log.error("Error extracting template package: "+t);throw r}}r.downloadAndExtractNpmModuleAsync=downloadAndExtractNpmModuleAsync},5897:function(t,r,i){"use strict";var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(r,"__esModule",{value:true});const a=o(i(8746));const u=o(i(5418));const l=i(9756);const h=i(7984)("expo:init:update-check");async function shouldUpdate(){try{const t=await(0,u.default)(l);if(t?.latest){console.log();console.log(a.default.yellow.bold(`A new version of \`${l.name}\` is available`));console.log((0,a.default)`You can update by running: {cyan npm install -g ${l.name}}`);console.log()}}catch(t){h("Error checking for update:\n%O",t)}}r["default"]=shouldUpdate},9756:module=>{module.exports=eval("require")("../package.json")},9491:t=>{"use strict";t.exports=require("assert")},4300:t=>{"use strict";t.exports=require("buffer")},2081:t=>{"use strict";t.exports=require("child_process")},2057:t=>{"use strict";t.exports=require("constants")},6113:t=>{"use strict";t.exports=require("crypto")},9523:t=>{"use strict";t.exports=require("dns")},2361:t=>{"use strict";t.exports=require("events")},7147:t=>{"use strict";t.exports=require("fs")},3685:t=>{"use strict";t.exports=require("http")},5687:t=>{"use strict";t.exports=require("https")},8188:t=>{"use strict";t.exports=require("module")},7561:t=>{"use strict";t.exports=require("node:fs")},9411:t=>{"use strict";t.exports=require("node:path")},7742:t=>{"use strict";t.exports=require("node:process")},7261:t=>{"use strict";t.exports=require("node:util")},2037:t=>{"use strict";t.exports=require("os")},1017:t=>{"use strict";t.exports=require("path")},7282:t=>{"use strict";t.exports=require("process")},4521:t=>{"use strict";t.exports=require("readline")},2781:t=>{"use strict";t.exports=require("stream")},1576:t=>{"use strict";t.exports=require("string_decoder")},6224:t=>{"use strict";t.exports=require("tty")},7310:t=>{"use strict";t.exports=require("url")},3837:t=>{"use strict";t.exports=require("util")},1267:t=>{"use strict";t.exports=require("worker_threads")},9796:t=>{"use strict";t.exports=require("zlib")},9539:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isIdentifierChar=isIdentifierChar;r.isIdentifierName=isIdentifierName;r.isIdentifierStart=isIdentifierStart;let i="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ";let o="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const a=new RegExp("["+i+"]");const u=new RegExp("["+i+o+"]");i=o=null;const l=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191];const h=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function isInAstralSet(t,r){let i=65536;for(let o=0,a=r.length;o<a;o+=2){i+=r[o];if(i>t)return false;i+=r[o+1];if(i>=t)return true}return false}function isIdentifierStart(t){if(t<65)return t===36;if(t<=90)return true;if(t<97)return t===95;if(t<=122)return true;if(t<=65535){return t>=170&&a.test(String.fromCharCode(t))}return isInAstralSet(t,l)}function isIdentifierChar(t){if(t<48)return t===36;if(t<58)return true;if(t<65)return false;if(t<=90)return true;if(t<97)return t===95;if(t<=122)return true;if(t<=65535){return t>=170&&u.test(String.fromCharCode(t))}return isInAstralSet(t,l)||isInAstralSet(t,h)}function isIdentifierName(t){let r=true;for(let i=0;i<t.length;i++){let o=t.charCodeAt(i);if((o&64512)===55296&&i+1<t.length){const r=t.charCodeAt(++i);if((r&64512)===56320){o=65536+((o&1023)<<10)+(r&1023)}}if(r){r=false;if(!isIdentifierStart(o)){return false}}else if(!isIdentifierChar(o)){return false}}return!r}},4679:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});Object.defineProperty(r,"isIdentifierChar",{enumerable:true,get:function(){return o.isIdentifierChar}});Object.defineProperty(r,"isIdentifierName",{enumerable:true,get:function(){return o.isIdentifierName}});Object.defineProperty(r,"isIdentifierStart",{enumerable:true,get:function(){return o.isIdentifierStart}});Object.defineProperty(r,"isKeyword",{enumerable:true,get:function(){return a.isKeyword}});Object.defineProperty(r,"isReservedWord",{enumerable:true,get:function(){return a.isReservedWord}});Object.defineProperty(r,"isStrictBindOnlyReservedWord",{enumerable:true,get:function(){return a.isStrictBindOnlyReservedWord}});Object.defineProperty(r,"isStrictBindReservedWord",{enumerable:true,get:function(){return a.isStrictBindReservedWord}});Object.defineProperty(r,"isStrictReservedWord",{enumerable:true,get:function(){return a.isStrictReservedWord}});var o=i(9539);var a=i(11)},11:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.isKeyword=isKeyword;r.isReservedWord=isReservedWord;r.isStrictBindOnlyReservedWord=isStrictBindOnlyReservedWord;r.isStrictBindReservedWord=isStrictBindReservedWord;r.isStrictReservedWord=isStrictReservedWord;const i={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};const o=new Set(i.keyword);const a=new Set(i.strict);const u=new Set(i.strictBind);function isReservedWord(t,r){return r&&t==="await"||t==="enum"}function isStrictReservedWord(t,r){return isReservedWord(t,r)||a.has(t)}function isStrictBindOnlyReservedWord(t){return u.has(t)}function isStrictBindReservedWord(t,r){return isStrictReservedWord(t,r)||isStrictBindOnlyReservedWord(t)}function isKeyword(t){return o.has(t)}},932:(t,r,i)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r["default"]=highlight;r.shouldHighlight=shouldHighlight;var o=i(8035);var a=i(4679);var u=_interopRequireWildcard(i(9397),true);function _getRequireWildcardCache(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,i=new WeakMap;return(_getRequireWildcardCache=function(t){return t?i:r})(t)}function _interopRequireWildcard(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var i=_getRequireWildcardCache(r);if(i&&i.has(t))return i.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&{}.hasOwnProperty.call(t,u)){var l=a?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,i&&i.set(t,o),o}const l=typeof process==="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,u.createColors)(false):u.default;const compose=(t,r)=>i=>t(r(i));const h=new Set(["as","async","from","get","of","set"]);function getDefs(t){return{keyword:t.cyan,capitalized:t.yellow,jsxIdentifier:t.yellow,punctuator:t.yellow,number:t.magenta,string:t.green,regex:t.magenta,comment:t.gray,invalid:compose(compose(t.white,t.bgRed),t.bold)}}const p=/\r\n|[\n\r\u2028\u2029]/;const d=/^[()[\]{}]$/;let m;{const t=/^[a-z][\w-]*$/i;const getTokenType=function(r,i,o){if(r.type==="name"){if((0,a.isKeyword)(r.value)||(0,a.isStrictReservedWord)(r.value,true)||h.has(r.value)){return"keyword"}if(t.test(r.value)&&(o[i-1]==="<"||o.slice(i-2,i)==="</")){return"jsxIdentifier"}if(r.value[0]!==r.value[0].toLowerCase()){return"capitalized"}}if(r.type==="punctuator"&&d.test(r.value)){return"bracket"}if(r.type==="invalid"&&(r.value==="@"||r.value==="#")){return"punctuator"}return r.type};m=function*(t){let r;while(r=o.default.exec(t)){const i=o.matchToToken(r);yield{type:getTokenType(i,r.index,t),value:i.value}}}}function highlightTokens(t,r){let i="";for(const{type:o,value:a}of m(r)){const r=t[o];if(r){i+=a.split(p).map((t=>r(t))).join("\n")}else{i+=a}}return i}function shouldHighlight(t){return l.isColorSupported||t.forceColor}let g=undefined;function getColors(t){if(t){var r;(r=g)!=null?r:g=(0,u.createColors)(true);return g}return l}function highlight(t,r={}){if(t!==""&&shouldHighlight(r)){const i=getDefs(getColors(r.forceColor));return highlightTokens(i,t)}else{return t}}{let t,o;r.getChalk=({forceColor:r})=>{var a;(a=t)!=null?a:t=i(6870);if(r){var u;(u=o)!=null?u:o=new t.constructor({enabled:true,level:1});return o}return t}}},3576:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.LRUCache=void 0;const i=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const o=new Set;const a=typeof process==="object"&&!!process?process:{};const emitWarning=(t,r,i,o)=>{typeof a.emitWarning==="function"?a.emitWarning(t,r,i,o):console.error(`[${i}] ${r}: ${t}`)};let u=globalThis.AbortController;let l=globalThis.AbortSignal;if(typeof u==="undefined"){l=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(t,r){this._onabort.push(r)}};u=class AbortController{constructor(){warnACPolyfill()}signal=new l;abort(t){if(this.signal.aborted)return;this.signal.reason=t;this.signal.aborted=true;for(const r of this.signal._onabort){r(t)}this.signal.onabort?.(t)}};let t=a.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!t)return;t=false;emitWarning("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",warnACPolyfill)}}const shouldWarn=t=>!o.has(t);const h=Symbol("type");const isPosInt=t=>t&&t===Math.floor(t)&&t>0&&isFinite(t);const getUintArray=t=>!isPosInt(t)?null:t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(t){super(t);this.fill(0)}}class Stack{heap;length;static#s=false;static create(t){const r=getUintArray(t);if(!r)return[];Stack.#s=true;const i=new Stack(t,r);Stack.#s=false;return i}constructor(t,r){if(!Stack.#s){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]}}class LRUCache{#n;#i;#o;#a;#u;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#l;#c;#h;#f;#p;#d;#m;#g;#y;#A;#b;#v;#E;#w;#_;#S;#C;static unsafeExposeInternals(t){return{starts:t.#E,ttls:t.#w,sizes:t.#v,keyMap:t.#h,keyList:t.#f,valList:t.#p,next:t.#d,prev:t.#m,get head(){return t.#g},get tail(){return t.#y},free:t.#A,isBackgroundFetch:r=>t.#D(r),backgroundFetch:(r,i,o,a)=>t.#x(r,i,o,a),moveToTail:r=>t.#R(r),indexes:r=>t.#O(r),rindexes:r=>t.#F(r),isStale:r=>t.#k(r)}}get max(){return this.#n}get maxSize(){return this.#i}get calculatedSize(){return this.#c}get size(){return this.#l}get fetchMethod(){return this.#u}get dispose(){return this.#o}get disposeAfter(){return this.#a}constructor(t){const{max:r=0,ttl:i,ttlResolution:a=1,ttlAutopurge:u,updateAgeOnGet:l,updateAgeOnHas:h,allowStale:p,dispose:d,disposeAfter:m,noDisposeOnSet:g,noUpdateTTL:y,maxSize:A=0,maxEntrySize:b=0,sizeCalculation:v,fetchMethod:E,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:_,allowStaleOnFetchRejection:S,allowStaleOnFetchAbort:C,ignoreFetchAbort:D}=t;if(r!==0&&!isPosInt(r)){throw new TypeError("max option must be a nonnegative integer")}const x=r?getUintArray(r):Array;if(!x){throw new Error("invalid max value: "+r)}this.#n=r;this.#i=A;this.maxEntrySize=b||this.#i;this.sizeCalculation=v;if(this.sizeCalculation){if(!this.#i&&!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(E!==undefined&&typeof E!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#u=E;this.#S=!!E;this.#h=new Map;this.#f=new Array(r).fill(undefined);this.#p=new Array(r).fill(undefined);this.#d=new x(r);this.#m=new x(r);this.#g=0;this.#y=0;this.#A=Stack.create(r);this.#l=0;this.#c=0;if(typeof d==="function"){this.#o=d}if(typeof m==="function"){this.#a=m;this.#b=[]}else{this.#a=undefined;this.#b=undefined}this.#_=!!this.#o;this.#C=!!this.#a;this.noDisposeOnSet=!!g;this.noUpdateTTL=!!y;this.noDeleteOnFetchRejection=!!w;this.allowStaleOnFetchRejection=!!S;this.allowStaleOnFetchAbort=!!C;this.ignoreFetchAbort=!!D;if(this.maxEntrySize!==0){if(this.#i!==0){if(!isPosInt(this.#i)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#P()}this.allowStale=!!p;this.noDeleteOnStaleGet=!!_;this.updateAgeOnGet=!!l;this.updateAgeOnHas=!!h;this.ttlResolution=isPosInt(a)||a===0?a:1;this.ttlAutopurge=!!u;this.ttl=i||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#T()}if(this.#n===0&&this.ttl===0&&this.#i===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#n&&!this.#i){const t="LRU_CACHE_UNBOUNDED";if(shouldWarn(t)){o.add(t);const r="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(r,"UnboundedCacheWarning",t,LRUCache)}}}getRemainingTTL(t){return this.#h.has(t)?Infinity:0}#T(){const t=new ZeroArray(this.#n);const r=new ZeroArray(this.#n);this.#w=t;this.#E=r;this.#L=(o,a,u=i.now())=>{r[o]=a!==0?u:0;t[o]=a;if(a!==0&&this.ttlAutopurge){const t=setTimeout((()=>{if(this.#k(o)){this.delete(this.#f[o])}}),a+1);if(t.unref){t.unref()}}};this.#I=o=>{r[o]=t[o]!==0?i.now():0};this.#M=(i,a)=>{if(t[a]){const u=t[a];const l=r[a];if(!u||!l)return;i.ttl=u;i.start=l;i.now=o||getNow();const h=i.now-l;i.remainingTTL=u-h}};let o=0;const getNow=()=>{const t=i.now();if(this.ttlResolution>0){o=t;const r=setTimeout((()=>o=0),this.ttlResolution);if(r.unref){r.unref()}}return t};this.getRemainingTTL=i=>{const a=this.#h.get(i);if(a===undefined){return 0}const u=t[a];const l=r[a];if(!u||!l){return Infinity}const h=(o||getNow())-l;return u-h};this.#k=i=>{const a=r[i];const u=t[i];return!!u&&!!a&&(o||getNow())-a>u}}#I=()=>{};#M=()=>{};#L=()=>{};#k=()=>false;#P(){const t=new ZeroArray(this.#n);this.#c=0;this.#v=t;this.#B=r=>{this.#c-=t[r];t[r]=0};this.#N=(t,r,i,o)=>{if(this.#D(r)){return 0}if(!isPosInt(i)){if(o){if(typeof o!=="function"){throw new TypeError("sizeCalculation must be a function")}i=o(r,t);if(!isPosInt(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.#$=(r,i,o)=>{t[r]=i;if(this.#i){const i=this.#i-t[r];while(this.#c>i){this.#j(true)}}this.#c+=t[r];if(o){o.entrySize=i;o.totalCalculatedSize=this.#c}}}#B=t=>{};#$=(t,r,i)=>{};#N=(t,r,i,o)=>{if(i||o){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#O({allowStale:t=this.allowStale}={}){if(this.#l){for(let r=this.#y;true;){if(!this.#H(r)){break}if(t||!this.#k(r)){yield r}if(r===this.#g){break}else{r=this.#m[r]}}}}*#F({allowStale:t=this.allowStale}={}){if(this.#l){for(let r=this.#g;true;){if(!this.#H(r)){break}if(t||!this.#k(r)){yield r}if(r===this.#y){break}else{r=this.#d[r]}}}}#H(t){return t!==undefined&&this.#h.get(this.#f[t])===t}*entries(){for(const t of this.#O()){if(this.#p[t]!==undefined&&this.#f[t]!==undefined&&!this.#D(this.#p[t])){yield[this.#f[t],this.#p[t]]}}}*rentries(){for(const t of this.#F()){if(this.#p[t]!==undefined&&this.#f[t]!==undefined&&!this.#D(this.#p[t])){yield[this.#f[t],this.#p[t]]}}}*keys(){for(const t of this.#O()){const r=this.#f[t];if(r!==undefined&&!this.#D(this.#p[t])){yield r}}}*rkeys(){for(const t of this.#F()){const r=this.#f[t];if(r!==undefined&&!this.#D(this.#p[t])){yield r}}}*values(){for(const t of this.#O()){const r=this.#p[t];if(r!==undefined&&!this.#D(this.#p[t])){yield this.#p[t]}}}*rvalues(){for(const t of this.#F()){const r=this.#p[t];if(r!==undefined&&!this.#D(this.#p[t])){yield this.#p[t]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(t,r={}){for(const i of this.#O()){const o=this.#p[i];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)continue;if(t(a,this.#f[i],this)){return this.get(this.#f[i],r)}}}forEach(t,r=this){for(const i of this.#O()){const o=this.#p[i];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)continue;t.call(r,a,this.#f[i],this)}}rforEach(t,r=this){for(const i of this.#F()){const o=this.#p[i];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)continue;t.call(r,a,this.#f[i],this)}}purgeStale(){let t=false;for(const r of this.#F({allowStale:true})){if(this.#k(r)){this.delete(this.#f[r]);t=true}}return t}info(t){const r=this.#h.get(t);if(r===undefined)return undefined;const o=this.#p[r];const a=this.#D(o)?o.__staleWhileFetching:o;if(a===undefined)return undefined;const u={value:a};if(this.#w&&this.#E){const t=this.#w[r];const o=this.#E[r];if(t&&o){const r=t-(i.now()-o);u.ttl=r;u.start=Date.now()}}if(this.#v){u.size=this.#v[r]}return u}dump(){const t=[];for(const r of this.#O({allowStale:true})){const o=this.#f[r];const a=this.#p[r];const u=this.#D(a)?a.__staleWhileFetching:a;if(u===undefined||o===undefined)continue;const l={value:u};if(this.#w&&this.#E){l.ttl=this.#w[r];const t=i.now()-this.#E[r];l.start=Math.floor(Date.now()-t)}if(this.#v){l.size=this.#v[r]}t.unshift([o,l])}return t}load(t){this.clear();for(const[r,o]of t){if(o.start){const t=Date.now()-o.start;o.start=i.now()-t}this.set(r,o.value,o)}}set(t,r,i={}){if(r===undefined){this.delete(t);return this}const{ttl:o=this.ttl,start:a,noDisposeOnSet:u=this.noDisposeOnSet,sizeCalculation:l=this.sizeCalculation,status:h}=i;let{noUpdateTTL:p=this.noUpdateTTL}=i;const d=this.#N(t,r,i.size||0,l);if(this.maxEntrySize&&d>this.maxEntrySize){if(h){h.set="miss";h.maxEntrySizeExceeded=true}this.delete(t);return this}let m=this.#l===0?undefined:this.#h.get(t);if(m===undefined){m=this.#l===0?this.#y:this.#A.length!==0?this.#A.pop():this.#l===this.#n?this.#j(false):this.#l;this.#f[m]=t;this.#p[m]=r;this.#h.set(t,m);this.#d[this.#y]=m;this.#m[m]=this.#y;this.#y=m;this.#l++;this.#$(m,d,h);if(h)h.set="add";p=false}else{this.#R(m);const i=this.#p[m];if(r!==i){if(this.#S&&this.#D(i)){i.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:r}=i;if(r!==undefined&&!u){if(this.#_){this.#o?.(r,t,"set")}if(this.#C){this.#b?.push([r,t,"set"])}}}else if(!u){if(this.#_){this.#o?.(i,t,"set")}if(this.#C){this.#b?.push([i,t,"set"])}}this.#B(m);this.#$(m,d,h);this.#p[m]=r;if(h){h.set="replace";const t=i&&this.#D(i)?i.__staleWhileFetching:i;if(t!==undefined)h.oldValue=t}}else if(h){h.set="update"}}if(o!==0&&!this.#w){this.#T()}if(this.#w){if(!p){this.#L(m,o,a)}if(h)this.#M(h,m)}if(!u&&this.#C&&this.#b){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}return this}pop(){try{while(this.#l){const t=this.#p[this.#g];this.#j(true);if(this.#D(t)){if(t.__staleWhileFetching){return t.__staleWhileFetching}}else if(t!==undefined){return t}}}finally{if(this.#C&&this.#b){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}}}#j(t){const r=this.#g;const i=this.#f[r];const o=this.#p[r];if(this.#S&&this.#D(o)){o.__abortController.abort(new Error("evicted"))}else if(this.#_||this.#C){if(this.#_){this.#o?.(o,i,"evict")}if(this.#C){this.#b?.push([o,i,"evict"])}}this.#B(r);if(t){this.#f[r]=undefined;this.#p[r]=undefined;this.#A.push(r)}if(this.#l===1){this.#g=this.#y=0;this.#A.length=0}else{this.#g=this.#d[r]}this.#h.delete(i);this.#l--;return r}has(t,r={}){const{updateAgeOnHas:i=this.updateAgeOnHas,status:o}=r;const a=this.#h.get(t);if(a!==undefined){const t=this.#p[a];if(this.#D(t)&&t.__staleWhileFetching===undefined){return false}if(!this.#k(a)){if(i){this.#I(a)}if(o){o.has="hit";this.#M(o,a)}return true}else if(o){o.has="stale";this.#M(o,a)}}else if(o){o.has="miss"}return false}peek(t,r={}){const{allowStale:i=this.allowStale}=r;const o=this.#h.get(t);if(o===undefined||!i&&this.#k(o)){return}const a=this.#p[o];return this.#D(a)?a.__staleWhileFetching:a}#x(t,r,i,o){const a=r===undefined?undefined:this.#p[r];if(this.#D(a)){return a}const l=new u;const{signal:h}=i;h?.addEventListener("abort",(()=>l.abort(h.reason)),{signal:l.signal});const p={signal:l.signal,options:i,context:o};const cb=(o,a=false)=>{const{aborted:u}=l.signal;const h=i.ignoreFetchAbort&&o!==undefined;if(i.status){if(u&&!a){i.status.fetchAborted=true;i.status.fetchError=l.signal.reason;if(h)i.status.fetchAbortIgnored=true}else{i.status.fetchResolved=true}}if(u&&!h&&!a){return fetchFail(l.signal.reason)}const m=d;if(this.#p[r]===d){if(o===undefined){if(m.__staleWhileFetching){this.#p[r]=m.__staleWhileFetching}else{this.delete(t)}}else{if(i.status)i.status.fetchUpdated=true;this.set(t,o,p.options)}}return o};const eb=t=>{if(i.status){i.status.fetchRejected=true;i.status.fetchError=t}return fetchFail(t)};const fetchFail=o=>{const{aborted:a}=l.signal;const u=a&&i.allowStaleOnFetchAbort;const h=u||i.allowStaleOnFetchRejection;const p=h||i.noDeleteOnFetchRejection;const m=d;if(this.#p[r]===d){const i=!p||m.__staleWhileFetching===undefined;if(i){this.delete(t)}else if(!u){this.#p[r]=m.__staleWhileFetching}}if(h){if(i.status&&m.__staleWhileFetching!==undefined){i.status.returnedStale=true}return m.__staleWhileFetching}else if(m.__returned===m){throw o}};const pcall=(r,o)=>{const u=this.#u?.(t,a,p);if(u&&u instanceof Promise){u.then((t=>r(t===undefined?undefined:t)),o)}l.signal.addEventListener("abort",(()=>{if(!i.ignoreFetchAbort||i.allowStaleOnFetchAbort){r(undefined);if(i.allowStaleOnFetchAbort){r=t=>cb(t,true)}}}))};if(i.status)i.status.fetchDispatched=true;const d=new Promise(pcall).then(cb,eb);const m=Object.assign(d,{__abortController:l,__staleWhileFetching:a,__returned:undefined});if(r===undefined){this.set(t,m,{...p.options,status:undefined});r=this.#h.get(t)}else{this.#p[r]=m}return m}#D(t){if(!this.#S)return false;const r=t;return!!r&&r instanceof Promise&&r.hasOwnProperty("__staleWhileFetching")&&r.__abortController instanceof u}async fetch(t,r={}){const{allowStale:i=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,ttl:u=this.ttl,noDisposeOnSet:l=this.noDisposeOnSet,size:h=0,sizeCalculation:p=this.sizeCalculation,noUpdateTTL:d=this.noUpdateTTL,noDeleteOnFetchRejection:m=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:g=this.allowStaleOnFetchRejection,ignoreFetchAbort:y=this.ignoreFetchAbort,allowStaleOnFetchAbort:A=this.allowStaleOnFetchAbort,context:b,forceRefresh:v=false,status:E,signal:w}=r;if(!this.#S){if(E)E.fetch="get";return this.get(t,{allowStale:i,updateAgeOnGet:o,noDeleteOnStaleGet:a,status:E})}const _={allowStale:i,updateAgeOnGet:o,noDeleteOnStaleGet:a,ttl:u,noDisposeOnSet:l,size:h,sizeCalculation:p,noUpdateTTL:d,noDeleteOnFetchRejection:m,allowStaleOnFetchRejection:g,allowStaleOnFetchAbort:A,ignoreFetchAbort:y,status:E,signal:w};let S=this.#h.get(t);if(S===undefined){if(E)E.fetch="miss";const r=this.#x(t,S,_,b);return r.__returned=r}else{const r=this.#p[S];if(this.#D(r)){const t=i&&r.__staleWhileFetching!==undefined;if(E){E.fetch="inflight";if(t)E.returnedStale=true}return t?r.__staleWhileFetching:r.__returned=r}const a=this.#k(S);if(!v&&!a){if(E)E.fetch="hit";this.#R(S);if(o){this.#I(S)}if(E)this.#M(E,S);return r}const u=this.#x(t,S,_,b);const l=u.__staleWhileFetching!==undefined;const h=l&&i;if(E){E.fetch=a?"stale":"refresh";if(h&&a)E.returnedStale=true}return h?u.__staleWhileFetching:u.__returned=u}}get(t,r={}){const{allowStale:i=this.allowStale,updateAgeOnGet:o=this.updateAgeOnGet,noDeleteOnStaleGet:a=this.noDeleteOnStaleGet,status:u}=r;const l=this.#h.get(t);if(l!==undefined){const r=this.#p[l];const h=this.#D(r);if(u)this.#M(u,l);if(this.#k(l)){if(u)u.get="stale";if(!h){if(!a){this.delete(t)}if(u&&i)u.returnedStale=true;return i?r:undefined}else{if(u&&i&&r.__staleWhileFetching!==undefined){u.returnedStale=true}return i?r.__staleWhileFetching:undefined}}else{if(u)u.get="hit";if(h){return r.__staleWhileFetching}this.#R(l);if(o){this.#I(l)}return r}}else if(u){u.get="miss"}}#G(t,r){this.#m[r]=t;this.#d[t]=r}#R(t){if(t!==this.#y){if(t===this.#g){this.#g=this.#d[t]}else{this.#G(this.#m[t],this.#d[t])}this.#G(this.#y,t);this.#y=t}}delete(t){let r=false;if(this.#l!==0){const i=this.#h.get(t);if(i!==undefined){r=true;if(this.#l===1){this.clear()}else{this.#B(i);const r=this.#p[i];if(this.#D(r)){r.__abortController.abort(new Error("deleted"))}else if(this.#_||this.#C){if(this.#_){this.#o?.(r,t,"delete")}if(this.#C){this.#b?.push([r,t,"delete"])}}this.#h.delete(t);this.#f[i]=undefined;this.#p[i]=undefined;if(i===this.#y){this.#y=this.#m[i]}else if(i===this.#g){this.#g=this.#d[i]}else{const t=this.#m[i];this.#d[t]=this.#d[i];const r=this.#d[i];this.#m[r]=this.#m[i]}this.#l--;this.#A.push(i)}}}if(this.#C&&this.#b?.length){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}return r}clear(){for(const t of this.#F({allowStale:true})){const r=this.#p[t];if(this.#D(r)){r.__abortController.abort(new Error("deleted"))}else{const i=this.#f[t];if(this.#_){this.#o?.(r,i,"delete")}if(this.#C){this.#b?.push([r,i,"delete"])}}}this.#h.clear();this.#p.fill(undefined);this.#f.fill(undefined);if(this.#w&&this.#E){this.#w.fill(0);this.#E.fill(0)}if(this.#v){this.#v.fill(0)}this.#g=0;this.#y=0;this.#A.length=0;this.#c=0;this.#l=0;if(this.#C&&this.#b){const t=this.#b;let r;while(r=t?.shift()){this.#a?.(...r)}}}}r.LRUCache=LRUCache},2548:t=>{"use strict";t.exports=JSON.parse('{"dots":{"interval":80,"frames":["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"]},"dots2":{"interval":80,"frames":["⣾","⣽","⣻","⢿","⡿","⣟","⣯","⣷"]},"dots3":{"interval":80,"frames":["⠋","⠙","⠚","⠞","⠖","⠦","⠴","⠲","⠳","⠓"]},"dots4":{"interval":80,"frames":["⠄","⠆","⠇","⠋","⠙","⠸","⠰","⠠","⠰","⠸","⠙","⠋","⠇","⠆"]},"dots5":{"interval":80,"frames":["⠋","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋"]},"dots6":{"interval":80,"frames":["⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠴","⠲","⠒","⠂","⠂","⠒","⠚","⠙","⠉","⠁"]},"dots7":{"interval":80,"frames":["⠈","⠉","⠋","⠓","⠒","⠐","⠐","⠒","⠖","⠦","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈"]},"dots8":{"interval":80,"frames":["⠁","⠁","⠉","⠙","⠚","⠒","⠂","⠂","⠒","⠲","⠴","⠤","⠄","⠄","⠤","⠠","⠠","⠤","⠦","⠖","⠒","⠐","⠐","⠒","⠓","⠋","⠉","⠈","⠈"]},"dots9":{"interval":80,"frames":["⢹","⢺","⢼","⣸","⣇","⡧","⡗","⡏"]},"dots10":{"interval":80,"frames":["⢄","⢂","⢁","⡁","⡈","⡐","⡠"]},"dots11":{"interval":100,"frames":["⠁","⠂","⠄","⡀","⢀","⠠","⠐","⠈"]},"dots12":{"interval":80,"frames":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"line":{"interval":130,"frames":["-","\\\\","|","/"]},"line2":{"interval":100,"frames":["⠂","-","–","—","–","-"]},"pipe":{"interval":100,"frames":["┤","┘","┴","└","├","┌","┬","┐"]},"simpleDots":{"interval":400,"frames":[". ",".. ","..."," "]},"simpleDotsScrolling":{"interval":200,"frames":[". ",".. ","..."," .."," ."," "]},"star":{"interval":70,"frames":["✶","✸","✹","✺","✹","✷"]},"star2":{"interval":80,"frames":["+","x","*"]},"flip":{"interval":70,"frames":["_","_","_","-","`","`","\'","´","-","_","_","_"]},"hamburger":{"interval":100,"frames":["☱","☲","☴"]},"growVertical":{"interval":120,"frames":["▁","▃","▄","▅","▆","▇","▆","▅","▄","▃"]},"growHorizontal":{"interval":120,"frames":["▏","▎","▍","▌","▋","▊","▉","▊","▋","▌","▍","▎"]},"balloon":{"interval":140,"frames":[" ",".","o","O","@","*"," "]},"balloon2":{"interval":120,"frames":[".","o","O","°","O","o","."]},"noise":{"interval":100,"frames":["▓","▒","░"]},"bounce":{"interval":120,"frames":["⠁","⠂","⠄","⠂"]},"boxBounce":{"interval":120,"frames":["▖","▘","▝","▗"]},"boxBounce2":{"interval":100,"frames":["▌","▀","▐","▄"]},"triangle":{"interval":50,"frames":["◢","◣","◤","◥"]},"arc":{"interval":100,"frames":["◜","◠","◝","◞","◡","◟"]},"circle":{"interval":120,"frames":["◡","⊙","◠"]},"squareCorners":{"interval":180,"frames":["◰","◳","◲","◱"]},"circleQuarters":{"interval":120,"frames":["◴","◷","◶","◵"]},"circleHalves":{"interval":50,"frames":["◐","◓","◑","◒"]},"squish":{"interval":100,"frames":["╫","╪"]},"toggle":{"interval":250,"frames":["⊶","⊷"]},"toggle2":{"interval":80,"frames":["▫","▪"]},"toggle3":{"interval":120,"frames":["□","■"]},"toggle4":{"interval":100,"frames":["■","□","▪","▫"]},"toggle5":{"interval":100,"frames":["▮","▯"]},"toggle6":{"interval":300,"frames":["ဝ","၀"]},"toggle7":{"interval":80,"frames":["⦾","⦿"]},"toggle8":{"interval":100,"frames":["◍","◌"]},"toggle9":{"interval":100,"frames":["◉","◎"]},"toggle10":{"interval":100,"frames":["㊂","㊀","㊁"]},"toggle11":{"interval":50,"frames":["⧇","⧆"]},"toggle12":{"interval":120,"frames":["☗","☖"]},"toggle13":{"interval":80,"frames":["=","*","-"]},"arrow":{"interval":100,"frames":["←","↖","↑","↗","→","↘","↓","↙"]},"arrow2":{"interval":80,"frames":["⬆️ ","↗️ ","➡️ ","↘️ ","⬇️ ","↙️ ","⬅️ ","↖️ "]},"arrow3":{"interval":120,"frames":["▹▹▹▹▹","▸▹▹▹▹","▹▸▹▹▹","▹▹▸▹▹","▹▹▹▸▹","▹▹▹▹▸"]},"bouncingBar":{"interval":80,"frames":["[ ]","[= ]","[== ]","[=== ]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},"bouncingBall":{"interval":80,"frames":["( ● )","( ● )","( ● )","( ● )","( ●)","( ● )","( ● )","( ● )","( ● )","(● )"]},"smiley":{"interval":200,"frames":["😄 ","😝 "]},"monkey":{"interval":300,"frames":["🙈 ","🙈 ","🙉 ","🙊 "]},"hearts":{"interval":100,"frames":["💛 ","💙 ","💜 ","💚 ","❤️ "]},"clock":{"interval":100,"frames":["🕛 ","🕐 ","🕑 ","🕒 ","🕓 ","🕔 ","🕕 ","🕖 ","🕗 ","🕘 ","🕙 ","🕚 "]},"earth":{"interval":180,"frames":["🌍 ","🌎 ","🌏 "]},"material":{"interval":17,"frames":["█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","██████▁▁▁▁▁▁▁▁▁▁▁▁▁▁","███████▁▁▁▁▁▁▁▁▁▁▁▁▁","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","██████████▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","█████████████▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁██████████████▁▁▁▁","▁▁▁██████████████▁▁▁","▁▁▁▁█████████████▁▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁██████████████▁▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁██████████████▁","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁██████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁█████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁████████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁███████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁██████████","▁▁▁▁▁▁▁▁▁▁▁▁████████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁██████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","█▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","██▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","███▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","████▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","█████▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","██████▁▁▁▁▁▁▁▁▁▁▁▁▁█","████████▁▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","█████████▁▁▁▁▁▁▁▁▁▁▁","███████████▁▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","████████████▁▁▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","██████████████▁▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁██████████████▁▁▁▁▁","▁▁▁█████████████▁▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁████████████▁▁▁","▁▁▁▁▁▁███████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁█████████▁▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁█████████▁▁","▁▁▁▁▁▁▁▁▁▁█████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁████████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁███████▁","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁███████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁████","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁███","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁██","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁█","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁","▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁"]},"moon":{"interval":80,"frames":["🌑 ","🌒 ","🌓 ","🌔 ","🌕 ","🌖 ","🌗 ","🌘 "]},"runner":{"interval":140,"frames":["🚶 ","🏃 "]},"pong":{"interval":80,"frames":["▐⠂ ▌","▐⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂▌","▐ ⠠▌","▐ ⡀▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐ ⠠ ▌","▐ ⠂ ▌","▐ ⠈ ▌","▐ ⠂ ▌","▐ ⠠ ▌","▐ ⡀ ▌","▐⠠ ▌"]},"shark":{"interval":120,"frames":["▐|\\\\____________▌","▐_|\\\\___________▌","▐__|\\\\__________▌","▐___|\\\\_________▌","▐____|\\\\________▌","▐_____|\\\\_______▌","▐______|\\\\______▌","▐_______|\\\\_____▌","▐________|\\\\____▌","▐_________|\\\\___▌","▐__________|\\\\__▌","▐___________|\\\\_▌","▐____________|\\\\▌","▐____________/|▌","▐___________/|_▌","▐__________/|__▌","▐_________/|___▌","▐________/|____▌","▐_______/|_____▌","▐______/|______▌","▐_____/|_______▌","▐____/|________▌","▐___/|_________▌","▐__/|__________▌","▐_/|___________▌","▐/|____________▌"]},"dqpb":{"interval":100,"frames":["d","q","p","b"]},"weather":{"interval":100,"frames":["☀️ ","☀️ ","☀️ ","🌤 ","⛅️ ","🌥 ","☁️ ","🌧 ","🌨 ","🌧 ","🌨 ","🌧 ","🌨 ","⛈ ","🌨 ","🌧 ","🌨 ","☁️ ","🌥 ","⛅️ ","🌤 ","☀️ ","☀️ "]},"christmas":{"interval":400,"frames":["🌲","🎄"]},"grenade":{"interval":80,"frames":["، ","′ "," ´ "," ‾ "," ⸌"," ⸊"," |"," ⁎"," ⁕"," ෴ "," ⁓"," "," "," "]},"point":{"interval":125,"frames":["∙∙∙","●∙∙","∙●∙","∙∙●","∙∙∙"]},"layer":{"interval":150,"frames":["-","=","≡"]},"betaWave":{"interval":80,"frames":["ρββββββ","βρβββββ","ββρββββ","βββρβββ","ββββρββ","βββββρβ","ββββββρ"]},"fingerDance":{"interval":160,"frames":["🤘 ","🤟 ","🖖 ","✋ ","🤚 ","👆 "]},"fistBump":{"interval":80,"frames":["🤜 🤛 ","🤜 🤛 ","🤜 🤛 "," 🤜 🤛 "," 🤜🤛 "," 🤜✨🤛 ","🤜 ✨ 🤛 "]},"soccerHeader":{"interval":80,"frames":[" 🧑⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 ","🧑 ⚽️ 🧑 "]},"mindblown":{"interval":160,"frames":["😐 ","😐 ","😮 ","😮 ","😦 ","😦 ","😧 ","😧 ","🤯 ","💥 ","✨ "," "," "," "]},"speaker":{"interval":160,"frames":["🔈 ","🔉 ","🔊 ","🔉 "]},"orangePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 "]},"bluePulse":{"interval":100,"frames":["🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"orangeBluePulse":{"interval":100,"frames":["🔸 ","🔶 ","🟠 ","🟠 ","🔶 ","🔹 ","🔷 ","🔵 ","🔵 ","🔷 "]},"timeTravel":{"interval":100,"frames":["🕛 ","🕚 ","🕙 ","🕘 ","🕗 ","🕖 ","🕕 ","🕔 ","🕓 ","🕒 ","🕑 ","🕐 "]},"aesthetic":{"interval":80,"frames":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]}}')},4147:t=>{"use strict";t.exports=JSON.parse('{"name":"create-expo","version":"3.1.0","bin":"./build/index.js","main":"build","description":"Create universal Expo apps","license":"BSD-3-Clause","keywords":["expo","react-native","react"],"homepage":"https://docs.expo.dev","repository":{"type":"git","url":"https://github.com/expo/expo.git","directory":"packages/create-expo"},"author":"Evan Bacon <bacon@expo.io> (https://github.com/evanbacon)","files":["build","template"],"engines":{"node":">=18.13.0"},"scripts":{"build":"ncc build ./src/index.ts -o build/","build:prod":"ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register","prepare":"expo-module clean && yarn run build:prod","clean":"expo-module clean","lint":"expo-module lint","typecheck":"expo-module typecheck","test":"expo-module test","test:e2e":"expo-module test --config e2e/jest.config.js --runInBand","watch":"yarn run build --watch","prepublishOnly":"expo-module prepublishOnly"},"devDependencies":{"@expo/config":"^10.0.0","@expo/json-file":"^9.0.0","@expo/package-manager":"^1.5.0","@expo/spawn-async":"^1.7.2","@octokit/types":"^13.5.0","@types/debug":"^4.1.7","@types/getenv":"^1.0.0","@types/node":"^18.19.34","@types/picomatch":"^2.3.3","@types/prompts":"2.0.14","@types/tar":"^6.1.2","@vercel/ncc":"^0.38.1","arg":"^5.0.2","chalk":"^4.0.0","debug":"^4.3.4","expo-module-scripts":"^4.0.0","fast-glob":"^3.3.2","getenv":"^1.0.0","nock":"^14.0.0-beta.7","ora":"3.4.0","picomatch":"^2.3.1","prompts":"^2.4.2","tar":"^6.2.1","update-check":"^1.5.4"},"gitHead":"d97ae0839fa465cee14e13ca38f3c6c84c124d82"}')}};var __webpack_module_cache__={};function __nccwpck_require__(t){var r=__webpack_module_cache__[t];if(r!==undefined){return r.exports}var i=__webpack_module_cache__[t]={id:t,loaded:false,exports:{}};var o=true;try{__webpack_modules__[t].call(i.exports,i,i.exports,__nccwpck_require__);o=false}finally{if(o)delete __webpack_module_cache__[t]}i.loaded=true;return i.exports}(()=>{__nccwpck_require__.nmd=t=>{t.paths=[];if(!t.children)t.children=[];return t}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var __webpack_exports__=__nccwpck_require__(2855);module.exports=__webpack_exports__})();
|