create-eas-build-function 0.0.2 → 0.0.4
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/README.md
CHANGED
package/build/index.js
CHANGED
|
@@ -70,7 +70,7 @@ var o=i(4300);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}
|
|
|
70
70
|
{bold npm:} {cyan npx create-eas-build-function}
|
|
71
71
|
{bold yarn:} {cyan yarn create eas-custom-function-module}
|
|
72
72
|
{bold pnpm:} {cyan pnpm create eas-custom-function-module}
|
|
73
|
-
`)}try{const t=(0,p.resolveStringOrBooleanArgsAsync)(r,o,{"--template":Boolean,"-t":"--template"});const{createAsync:l}=await Promise.resolve().then((()=>u(i(9907))));await l(t.projectRoot,{template:t.args["--template"],install:!a["--no-install"]})}catch(t){if(!(t instanceof m.ExitError)){d.Log.exception(t)}}finally{await(0,g.default)()}}void run()},9907: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.logProjectReady=r.createAsync=void 0;const a=o(i(1017));const u=o(i(7147));const l=o(i(9997));const h=i(8174);const p=i(9686);const d=i(4940);const m=i(7285);const g=i(3196);async function createAsync(t,r){var i;let o;if(r.template){o=await(0,h.promptTemplateAsync)()}else{o=(i=r.template)!==null&&i!==void 0?i:"typescript"}const a=await resolveProjectRootArgAsync(t);await u.default.promises.mkdir(a,{recursive:true});await(0,g.withSectionLog)((()=>(0,h.extractAndPrepareTemplateFunctionModuleAsync)(a,o)),{pending:l.default.bold("Locating project files..."),success:"Successfully extracted project files.",error:t=>`Something went wrong when extracting the project files: ${t.message}`});await setupDependenciesAsync(a,r)}r.createAsync=createAsync;async function resolveProjectRootArgAsync(t){if(!t){const t=a.default.resolve(process.cwd());const r=a.default.basename(t);(0,p.assertValidName)(r);(0,p.assertFolderEmpty)(t,r);return t}else{return await(0,p.resolveProjectRootAsync)(t)}}async function setupDependenciesAsync(t,r){const i=r.install;const o=(0,d.resolvePackageManager)();if(i){await installNodeDependenciesAsync(t,o)}const a=getChangeDirectoryPath(t);m.Log.log();logProjectReady({cdPath:a});if(!i){logNodeInstallWarning(a,o)}}async function installNodeDependenciesAsync(t,r){try{await(0,d.installDependenciesAsync)(t,r,{silent:false})}catch(t){m.Log.error(`Something went wrong installing JavaScript dependencies. Check your ${r} logs. Continuing to create the app.`);m.Log.exception(t)}}function getChangeDirectoryPath(t){const r=a.default.relative(process.cwd(),t);if(r.length<=t.length){return r}return t}function logNodeInstallWarning(t,r){m.Log.log(`\n⚠️ Before you start to work on your function, make sure you have modules installed:\n`);m.Log.log(` cd ${t||"."}${a.default.sep}`);m.Log.log(` ${r} install`);m.Log.log()}function logProjectReady({cdPath:t}){m.Log.log(l.default.bold(`✅ Your function is ready!`));m.Log.log();if(t){m.Log.log(`To start working on your function, navigate to the directory.`);m.Log.log();m.Log.log(`- ${l.default.bold("cd "+t)}`)}}r.logProjectReady=logProjectReady},5343:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.ExitError=void 0;class ExitError extends Error{constructor(t,r){super(t instanceof Error?t.message:t);this.cause=t;this.code=r}}r.ExitError=ExitError},7285: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(9997));const u=i(5343);function error(...t){console.error(...t)}r.error=error;function exception(t){error(a.default.red(t.toString()))}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}},4940: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.formatRunCommand=r.installDependenciesAsync=r.isPackageManagerAvailable=r.formatSelfCommand=r.resolvePackageManager=void 0;const l=i(2081);const h=u(i(4458));function resolvePackageManager(){const t=process.env.npm_config_user_agent;if(t===null||t===void 0?void 0:t.startsWith("yarn")){return"yarn"}else if(t===null||t===void 0?void 0:t.startsWith("pnpm")){return"pnpm"}else if(t===null||t===void 0?void 0:t.startsWith("npm")){return"npm"}if(isPackageManagerAvailable("yarn")){return"yarn"}else if(isPackageManagerAvailable("pnpm")){return"pnpm"}return"npm"}r.resolvePackageManager=resolvePackageManager;function formatSelfCommand(){const t=resolvePackageManager();switch(t){case"pnpm":return`pnpx create-eas-build-function`;case"yarn":case"npm":default:return`npx create-eas-build-function`}}r.formatSelfCommand=formatSelfCommand;function isPackageManagerAvailable(t){try{(0,l.execSync)(`${t} --version`,{stdio:"ignore"});return true}catch{}return false}r.isPackageManagerAvailable=isPackageManagerAvailable;async function installDependenciesAsync(t,r,i={silent:false}){const o={cwd:t,silent:i.silent};if(r==="yarn"){await new h.YarnPackageManager(o).installAsync()}else if(r==="pnpm"){await new h.PnpmPackageManager(o).installAsync()}else{await new h.NpmPackageManager(o).installAsync()}}r.installDependenciesAsync=installDependenciesAsync;function formatRunCommand(t,r){switch(t){case"pnpm":return`pnpm run ${r}`;case"yarn":return`yarn ${r}`;case"npm":default:return`npm run ${r}`}}r.formatRunCommand=formatRunCommand},9686: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.resolveProjectRootAsync=r.assertValidName=r.assertFolderEmpty=void 0;const a=o(i(1017));const u=o(i(7147));const l=o(i(9997));const h=o(i(9712));const p=i(7285);const d=i(7794);const m=i(4940);function assertFolderEmpty(t,r){const i=(0,d.getConflictsForDirectory)(t);if(i.length){p.Log.log((0,l.default)`The directory {cyan ${r}} has files that might be overwritten:`);p.Log.log();for(const t of i){p.Log.log(` ${t}`)}p.Log.log();p.Log.exit("Try using a new directory name, or moving these files.\n")}}r.assertFolderEmpty=assertFolderEmpty;const g=["react-native","react","react-dom","react-native-web","expo","expo-router"];function assertValidName(t){const r=validateName(t);if(typeof r==="string"){p.Log.exit((0,l.default)`{red Cannot create an app named {bold "${t}"}. ${r}}`,1)}const i=isFolderNameForbidden(t);if(i){p.Log.exit((0,l.default)`{red Cannot create an app named {bold "${t}"} because it would conflict with a dependency of the same name.}`,1)}}r.assertValidName=assertValidName;async function resolveProjectRootAsync(t){let r=t===null||t===void 0?void 0:t.trim();if(!r){const{answer:t}=await(0,h.default)({type:"text",name:"answer",message:"What is your EAS Build function named?",initial:"my-function",validate:t=>{const r=validateName(a.default.basename(a.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,m.formatSelfCommand)();p.Log.log();p.Log.log("Please choose your app name:");p.Log.log((0,l.default)` {dim $} {cyan ${t} <name>}`);p.Log.log();p.Log.log(`For more info, run:`);p.Log.log((0,l.default)` {dim $} {cyan ${t} --help}`);p.Log.log();p.Log.exit("")}const i=a.default.resolve(r);const o=a.default.basename(i);assertValidName(o);await u.default.promises.mkdir(i,{recursive:true});assertFolderEmpty(i,o);return i}r.resolveProjectRootAsync=resolveProjectRootAsync;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}function isFolderNameForbidden(t){return g.includes(t)}},8174: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.copyTemplateAsync=r.extractAndPrepareTemplateFunctionModuleAsync=r.promptTemplateAsync=r.ALIASES=r.TEMPLATES=void 0;const a=o(i(1017));const u=o(i(8271));const l=o(i(9997));const h=o(i(9712));const p=i(7285);r.TEMPLATES=[{title:"TypeScript",value:"typescript",description:"a minimal module written in TypeScript"},{title:"JavaScript",value:"javascript",description:"a minimal module written in JavaScript"}];r.ALIASES=r.TEMPLATES.map((({value:t})=>t));async function promptTemplateAsync(){const{answer:t}=await(0,h.default)({type:"select",name:"answer",message:"Choose a template:",choices:r.TEMPLATES});if(!t){p.Log.log();p.Log.log((0,l.default)`Please specify the template, example: {cyan --template typescript}`);p.Log.log();process.exit(1)}return t}r.promptTemplateAsync=promptTemplateAsync;async function extractAndPrepareTemplateFunctionModuleAsync(t,r){await copyTemplateAsync(r,{cwd:t});return t}r.extractAndPrepareTemplateFunctionModuleAsync=extractAndPrepareTemplateFunctionModuleAsync;async function copyTemplateAsync(t,r){const i=a.default.resolve(__dirname,"../templates",t);try{await copyDir(i,r.cwd)}catch(r){p.Log.error("Error extracting template package: "+t);throw r}}r.copyTemplateAsync=copyTemplateAsync;async function copyDir(t,r){try{await u.default.copy(t,r)}catch(t){p.Log.error(t);throw t}}},3457: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.assertDuplicateArgs=r.assertUnknownArgs=r.collapseAliases=r._resolveStringOrBooleanArgs=r.resolveStringOrBooleanArgsAsync=r.printHelp=r.assertWithOptionsArgs=void 0;const a=o(i(3875));const u=o(i(9997));const l=i(7285);const h=i(5659);function assertWithOptionsArgs(t,r){try{return(0,a.default)(t,r)}catch(t){if(t.code==="ARG_UNKNOWN_OPTION"){l.Log.exit(t.message,1)}throw t}}r.assertWithOptionsArgs=assertWithOptionsArgs;function printHelp(t,r,i,o=""){l.Log.exit((0,u.default)`
|
|
73
|
+
`)}try{const t=(0,p.resolveStringOrBooleanArgsAsync)(r,o,{"--template":Boolean,"-t":"--template"});const{createAsync:l}=await Promise.resolve().then((()=>u(i(9907))));await l(t.projectRoot,{template:t.args["--template"],install:!a["--no-install"]})}catch(t){if(!(t instanceof m.ExitError)){d.Log.exception(t)}}finally{await(0,g.default)()}}void run()},9907: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.logProjectReady=r.createAsync=void 0;const a=o(i(1017));const u=o(i(7147));const l=o(i(9997));const h=i(8174);const p=i(9686);const d=i(4940);const m=i(7285);const g=i(3196);async function createAsync(t,r){var i;let o;if(r.template===true){o=await(0,h.promptTemplateAsync)()}else{o=(i=r.template)!==null&&i!==void 0?i:"typescript"}const a=await resolveProjectRootArgAsync(t);await u.default.promises.mkdir(a,{recursive:true});await(0,g.withSectionLog)((()=>(0,h.extractAndPrepareTemplateFunctionModuleAsync)(a,o)),{pending:l.default.bold("Locating project files..."),success:"Successfully extracted custom build function template files.",error:t=>`Something went wrong when extracting the custom build function template files: ${t.message}`});await setupDependenciesAsync(a,r)}r.createAsync=createAsync;async function resolveProjectRootArgAsync(t){if(!t){const t=a.default.resolve(process.cwd());const r=a.default.basename(t);(0,p.assertValidName)(r);(0,p.assertFolderEmpty)(t,r);return t}else{return await(0,p.resolveProjectRootAsync)(t)}}async function setupDependenciesAsync(t,r){const i=r.install;const o=(0,d.resolvePackageManager)();if(i){await installNodeDependenciesAsync(t,o)}const a=getChangeDirectoryPath(t);m.Log.log();logProjectReady({cdPath:a});if(!i){logNodeInstallWarning(a,o)}}async function installNodeDependenciesAsync(t,r){try{await(0,d.installDependenciesAsync)(t,r,{silent:false})}catch(t){m.Log.error(`Something went wrong installing JavaScript dependencies. Check your ${r} logs. Continuing to create the app.`);m.Log.exception(t)}}function getChangeDirectoryPath(t){const r=a.default.relative(process.cwd(),t);if(r.length<=t.length){return r}return t}function logNodeInstallWarning(t,r){m.Log.log(`\n⚠️ Before you start to work on your function, make sure you have modules installed:\n`);m.Log.log(` cd ${t||"."}${a.default.sep}`);m.Log.log(` ${r} install`);m.Log.log()}function logProjectReady({cdPath:t}){m.Log.log(l.default.bold(`✅ Your function is ready!`));m.Log.log();if(t){m.Log.log(`To start working on your function, navigate to the directory.`);m.Log.log();m.Log.log(`- ${l.default.bold("cd "+t)}`)}}r.logProjectReady=logProjectReady},5343:(t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:true});r.ExitError=void 0;class ExitError extends Error{constructor(t,r){super(t instanceof Error?t.message:t);this.cause=t;this.code=r}}r.ExitError=ExitError},7285: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(9997));const u=i(5343);function error(...t){console.error(...t)}r.error=error;function exception(t){error(a.default.red(t.toString()))}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}},4940: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.formatRunCommand=r.installDependenciesAsync=r.isPackageManagerAvailable=r.formatSelfCommand=r.resolvePackageManager=void 0;const l=i(2081);const h=u(i(4458));function resolvePackageManager(){const t=process.env.npm_config_user_agent;if(t===null||t===void 0?void 0:t.startsWith("yarn")){return"yarn"}else if(t===null||t===void 0?void 0:t.startsWith("pnpm")){return"pnpm"}else if(t===null||t===void 0?void 0:t.startsWith("npm")){return"npm"}if(isPackageManagerAvailable("yarn")){return"yarn"}else if(isPackageManagerAvailable("pnpm")){return"pnpm"}return"npm"}r.resolvePackageManager=resolvePackageManager;function formatSelfCommand(){const t=resolvePackageManager();switch(t){case"pnpm":return`pnpx create-eas-build-function`;case"yarn":case"npm":default:return`npx create-eas-build-function`}}r.formatSelfCommand=formatSelfCommand;function isPackageManagerAvailable(t){try{(0,l.execSync)(`${t} --version`,{stdio:"ignore"});return true}catch{}return false}r.isPackageManagerAvailable=isPackageManagerAvailable;async function installDependenciesAsync(t,r,i={silent:false}){const o={cwd:t,silent:i.silent};if(r==="yarn"){await new h.YarnPackageManager(o).installAsync()}else if(r==="pnpm"){await new h.PnpmPackageManager(o).installAsync()}else{await new h.NpmPackageManager(o).installAsync()}}r.installDependenciesAsync=installDependenciesAsync;function formatRunCommand(t,r){switch(t){case"pnpm":return`pnpm run ${r}`;case"yarn":return`yarn ${r}`;case"npm":default:return`npm run ${r}`}}r.formatRunCommand=formatRunCommand},9686: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.resolveProjectRootAsync=r.assertValidName=r.assertFolderEmpty=void 0;const a=o(i(1017));const u=o(i(7147));const l=o(i(9997));const h=o(i(9712));const p=i(7285);const d=i(7794);const m=i(4940);function assertFolderEmpty(t,r){const i=(0,d.getConflictsForDirectory)(t);if(i.length){p.Log.log((0,l.default)`The directory {cyan ${r}} has files that might be overwritten:`);p.Log.log();for(const t of i){p.Log.log(` ${t}`)}p.Log.log();p.Log.exit("Try using a new directory name, or moving these files.\n")}}r.assertFolderEmpty=assertFolderEmpty;const g=["react-native","react","react-dom","react-native-web","expo","expo-router"];function assertValidName(t){const r=validateName(t);if(typeof r==="string"){p.Log.exit((0,l.default)`{red Cannot create an app named {bold "${t}"}. ${r}}`,1)}const i=isFolderNameForbidden(t);if(i){p.Log.exit((0,l.default)`{red Cannot create an app named {bold "${t}"} because it would conflict with a dependency of the same name.}`,1)}}r.assertValidName=assertValidName;async function resolveProjectRootAsync(t){let r=t===null||t===void 0?void 0:t.trim();if(!r){const{answer:t}=await(0,h.default)({type:"text",name:"answer",message:"What is your EAS Build function named?",initial:"my-function",validate:t=>{const r=validateName(a.default.basename(a.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,m.formatSelfCommand)();p.Log.log();p.Log.log("Please choose your app name:");p.Log.log((0,l.default)` {dim $} {cyan ${t} <name>}`);p.Log.log();p.Log.log(`For more info, run:`);p.Log.log((0,l.default)` {dim $} {cyan ${t} --help}`);p.Log.log();p.Log.exit("")}const i=a.default.resolve(r);const o=a.default.basename(i);assertValidName(o);await u.default.promises.mkdir(i,{recursive:true});assertFolderEmpty(i,o);return i}r.resolveProjectRootAsync=resolveProjectRootAsync;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}function isFolderNameForbidden(t){return g.includes(t)}},8174: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.copyTemplateAsync=r.extractAndPrepareTemplateFunctionModuleAsync=r.promptTemplateAsync=r.ALIASES=r.TEMPLATES=void 0;const a=o(i(1017));const u=o(i(8271));const l=o(i(9997));const h=o(i(9712));const p=i(7285);r.TEMPLATES=[{title:"TypeScript",value:"typescript",description:"a minimal module written in TypeScript"},{title:"JavaScript",value:"javascript",description:"a minimal module written in JavaScript"}];r.ALIASES=r.TEMPLATES.map((({value:t})=>t));async function promptTemplateAsync(){const{answer:t}=await(0,h.default)({type:"select",name:"answer",message:"Choose a template:",choices:r.TEMPLATES});if(!t){p.Log.log();p.Log.log((0,l.default)`Please specify the template, example: {cyan --template typescript}`);p.Log.log();process.exit(1)}return t}r.promptTemplateAsync=promptTemplateAsync;async function extractAndPrepareTemplateFunctionModuleAsync(t,r){await copyTemplateAsync(r,{cwd:t});return t}r.extractAndPrepareTemplateFunctionModuleAsync=extractAndPrepareTemplateFunctionModuleAsync;async function copyTemplateAsync(t,r){const i=a.default.resolve(__dirname,"../templates",t);try{await copyDir(i,r.cwd)}catch(r){p.Log.error("Error extracting template package: "+t);throw r}}r.copyTemplateAsync=copyTemplateAsync;async function copyDir(t,r){try{await u.default.copy(t,r)}catch(t){p.Log.error(t);throw t}}},3457: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.assertDuplicateArgs=r.assertUnknownArgs=r.collapseAliases=r._resolveStringOrBooleanArgs=r.resolveStringOrBooleanArgsAsync=r.printHelp=r.assertWithOptionsArgs=void 0;const a=o(i(3875));const u=o(i(9997));const l=i(7285);const h=i(5659);function assertWithOptionsArgs(t,r){try{return(0,a.default)(t,r)}catch(t){if(t.code==="ARG_UNKNOWN_OPTION"){l.Log.exit(t.message,1)}throw t}}r.assertWithOptionsArgs=assertWithOptionsArgs;function printHelp(t,r,i,o=""){l.Log.exit((0,u.default)`
|
|
74
74
|
{bold Info}
|
|
75
75
|
${t}
|
|
76
76
|
|
|
@@ -79,4 +79,4 @@ var o=i(4300);var a=o.Buffer;function copyProps(t,r){for(var i in t){r[i]=t[i]}}
|
|
|
79
79
|
|
|
80
80
|
{bold Options}
|
|
81
81
|
${i.split("\n").join("\n ")}
|
|
82
|
-
`+o,0)}r.printHelp=printHelp;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,h.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},5659:(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},7794:(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=>!(t.endsWith(".iml")||a.includes(t))))}r.getConflictsForDirectory=getConflictsForDirectory},3196: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(6249));function withSectionLog(t,r){const i=(0,a.default)({text:r.pending,stream:process.stderr});i.start();return t(i).then((t=>{i.succeed(r.success);return t}),(t=>{i.fail(r.error(t));throw t}))}r.withSectionLog=withSectionLog},1822: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(9997));const u=o(i(6025));const l=i(7285);const h=i(3119);async function shouldUpdate(){try{const t=await(0,u.default)(h);if(t===null||t===void 0?void 0:t.latest){l.Log.log();l.Log.log(a.default.yellow.bold(`A new version of \`${h.name}\` is available`));l.Log.log((0,a.default)`You can update by running: {cyan npm install -g ${h.name}}`);l.Log.log()}}catch{}}r["default"]=shouldUpdate},3119: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")},2037:t=>{"use strict";t.exports=require("os")},1017:t=>{"use strict";t.exports=require("path")},4521:t=>{"use strict";t.exports=require("readline")},2781:t=>{"use strict";t.exports=require("stream")},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")},6249:(t,r,i)=>{"use strict";i.r(r);i.d(r,{default:()=>ora,oraPromise:()=>oraPromise,spinners:()=>G});const o=require("node:process");const a=10;const wrapAnsi16=(t=0)=>r=>`[${r+t}m`;const wrapAnsi256=(t=0)=>r=>`[${38+t};5;${r}m`;const wrapAnsi16m=(t=0)=>(r,i,o)=>`[${38+t};2;${r};${i};${o}m`;const u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};const l=Object.keys(u.modifier);const h=Object.keys(u.color);const p=Object.keys(u.bgColor);const d=[...h,...p];function assembleStyles(){const t=new Map;for(const[r,i]of Object.entries(u)){for(const[r,o]of Object.entries(i)){u[r]={open:`[${o[0]}m`,close:`[${o[1]}m`};i[r]=u[r];t.set(o[0],o[1])}Object.defineProperty(u,r,{value:i,enumerable:false})}Object.defineProperty(u,"codes",{value:t,enumerable:false});u.color.close="[39m";u.bgColor.close="[49m";u.color.ansi=wrapAnsi16();u.color.ansi256=wrapAnsi256();u.color.ansi16m=wrapAnsi16m();u.bgColor.ansi=wrapAnsi16(a);u.bgColor.ansi256=wrapAnsi256(a);u.bgColor.ansi16m=wrapAnsi16m(a);Object.defineProperties(u,{rgbToAnsi256:{value(t,r,i){if(t===r&&r===i){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},enumerable:false},hexToRgb:{value(t){const r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r){return[0,0,0]}let[i]=r;if(i.length===3){i=[...i].map((t=>t+t)).join("")}const o=Number.parseInt(i,16);return[o>>16&255,o>>8&255,o&255]},enumerable:false},hexToAnsi256:{value:t=>u.rgbToAnsi256(...u.hexToRgb(t)),enumerable:false},ansi256ToAnsi:{value(t){if(t<8){return 30+t}if(t<16){return 90+(t-8)}let r;let i;let o;if(t>=232){r=((t-232)*10+8)/255;i=r;o=r}else{t-=16;const a=t%36;r=Math.floor(t/36)/5;i=Math.floor(a/6)/5;o=a%6/5}const a=Math.max(r,i,o)*2;if(a===0){return 30}let u=30+(Math.round(o)<<2|Math.round(i)<<1|Math.round(r));if(a===2){u+=60}return u},enumerable:false},rgbToAnsi:{value:(t,r,i)=>u.ansi256ToAnsi(u.rgbToAnsi256(t,r,i)),enumerable:false},hexToAnsi:{value:t=>u.ansi256ToAnsi(u.hexToAnsi256(t)),enumerable:false}});return u}const m=assembleStyles();const g=m;const y=require("node:os");const v=require("node:tty");function hasFlag(t,r=(globalThis.Deno?globalThis.Deno.args:o.argv)){const i=t.startsWith("-")?"":t.length===1?"-":"--";const a=r.indexOf(i+t);const u=r.indexOf("--");return a!==-1&&(u===-1||a<u)}const{env:A}=o;let b;if(hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")){b=0}else if(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always")){b=1}function envForceColor(){if("FORCE_COLOR"in A){if(A.FORCE_COLOR==="true"){return 1}if(A.FORCE_COLOR==="false"){return 0}return A.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(A.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,{streamIsTTY:r,sniffFlags:i=true}={}){const a=envForceColor();if(a!==undefined){b=a}const u=i?b:a;if(u===0){return 0}if(i){if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor")){return 3}if(hasFlag("color=256")){return 2}}if("TF_BUILD"in A&&"AGENT_NAME"in A){return 1}if(t&&!r&&u===undefined){return 0}const l=u||0;if(A.TERM==="dumb"){return l}if(o.platform==="win32"){const t=y.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in A){if("GITHUB_ACTIONS"in A||"GITEA_ACTIONS"in A){return 3}if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((t=>t in A))||A.CI_NAME==="codeship"){return 1}return l}if("TEAMCITY_VERSION"in A){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(A.TEAMCITY_VERSION)?1:0}if(A.COLORTERM==="truecolor"){return 3}if(A.TERM==="xterm-kitty"){return 3}if("TERM_PROGRAM"in A){const t=Number.parseInt((A.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(A.TERM_PROGRAM){case"iTerm.app":{return t>=3?3:2}case"Apple_Terminal":{return 2}}}if(/-256(color)?$/i.test(A.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(A.TERM)){return 1}if("COLORTERM"in A){return 1}return l}function createSupportsColor(t,r={}){const i=_supportsColor(t,{streamIsTTY:t&&t.isTTY,...r});return translateLevel(i)}const w={stdout:createSupportsColor({isTTY:v.isatty(1)}),stderr:createSupportsColor({isTTY:v.isatty(2)})};const S=w;function stringReplaceAll(t,r,i){let o=t.indexOf(r);if(o===-1){return t}const a=r.length;let u=0;let l="";do{l+=t.slice(u,o)+r+i;u=o+a;o=t.indexOf(r,u)}while(o!==-1);l+=t.slice(u);return l}function stringEncaseCRLFWithFirstIndex(t,r,i,o){let a=0;let u="";do{const l=t[o-1]==="\r";u+=t.slice(a,l?o-1:o)+r+(l?"\r\n":"\n")+i;a=o+1;o=t.indexOf("\n",a)}while(o!==-1);u+=t.slice(a);return u}const{stdout:_,stderr:C}=S;const D=Symbol("GENERATOR");const x=Symbol("STYLER");const R=Symbol("IS_EMPTY");const O=["ansi","ansi","ansi256","ansi16m"];const k=Object.create(null);const applyOptions=(t,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const i=_?_.level:0;t.level=r.level===undefined?i:r.level};class Chalk{constructor(t){return chalkFactory(t)}}const chalkFactory=t=>{const chalk=(...t)=>t.join(" ");applyOptions(chalk,t);Object.setPrototypeOf(chalk,createChalk.prototype);return chalk};function createChalk(t){return chalkFactory(t)}Object.setPrototypeOf(createChalk.prototype,Function.prototype);for(const[t,r]of Object.entries(g)){k[t]={get(){const i=createBuilder(this,createStyler(r.open,r.close,this[x]),this[R]);Object.defineProperty(this,t,{value:i});return i}}}k.visible={get(){const t=createBuilder(this,this[x],true);Object.defineProperty(this,"visible",{value:t});return t}};const getModelAnsi=(t,r,i,...o)=>{if(t==="rgb"){if(r==="ansi16m"){return g[i].ansi16m(...o)}if(r==="ansi256"){return g[i].ansi256(g.rgbToAnsi256(...o))}return g[i].ansi(g.rgbToAnsi(...o))}if(t==="hex"){return getModelAnsi("rgb",r,i,...g.hexToRgb(...o))}return g[i][t](...o)};const T=["rgb","hex","ansi256"];for(const t of T){k[t]={get(){const{level:r}=this;return function(...i){const o=createStyler(getModelAnsi(t,O[r],"color",...i),g.color.close,this[x]);return createBuilder(this,o,this[R])}}};const r="bg"+t[0].toUpperCase()+t.slice(1);k[r]={get(){const{level:r}=this;return function(...i){const o=createStyler(getModelAnsi(t,O[r],"bgColor",...i),g.bgColor.close,this[x]);return createBuilder(this,o,this[R])}}}}const P=Object.defineProperties((()=>{}),{...k,level:{enumerable:true,get(){return this[D].level},set(t){this[D].level=t}}});const createStyler=(t,r,i)=>{let o;let a;if(i===undefined){o=t;a=r}else{o=i.openAll+t;a=r+i.closeAll}return{open:t,close:r,openAll:o,closeAll:a,parent:i}};const createBuilder=(t,r,i)=>{const builder=(...t)=>applyStyle(builder,t.length===1?""+t[0]:t.join(" "));Object.setPrototypeOf(builder,P);builder[D]=t;builder[x]=r;builder[R]=i;return builder};const applyStyle=(t,r)=>{if(t.level<=0||!r){return t[R]?"":r}let i=t[x];if(i===undefined){return r}const{openAll:o,closeAll:a}=i;if(r.includes("")){while(i!==undefined){r=stringReplaceAll(r,i.close,i.open);i=i.parent}}const u=r.indexOf("\n");if(u!==-1){r=stringEncaseCRLFWithFirstIndex(r,a,o,u)}return o+r+a};Object.defineProperties(createChalk.prototype,k);const B=createChalk();const M=createChalk({level:C?C.level:0});const L=B;var I=i(2887);var N=i(9496);const j=I((()=>{N((()=>{o.stderr.write("[?25h")}),{alwaysLast:true})}));const $=j;let H=false;const W={};W.show=(t=o.stderr)=>{if(!t.isTTY){return}H=false;t.write("[?25h")};W.hide=(t=o.stderr)=>{if(!t.isTTY){return}$();H=true;t.write("[?25l")};W.toggle=(t,r)=>{if(t!==undefined){H=t}if(H){W.show(r)}else{W.hide(r)}};const U=W;var G=i(6706);const Y=10;const ansi_styles_wrapAnsi16=(t=0)=>r=>`[${r+t}m`;const ansi_styles_wrapAnsi256=(t=0)=>r=>`[${38+t};5;${r}m`;const ansi_styles_wrapAnsi16m=(t=0)=>(r,i,o)=>`[${38+t};2;${r};${i};${o}m`;const V={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};const q=Object.keys(V.modifier);const Q=Object.keys(V.color);const K=Object.keys(V.bgColor);const J=[...Q,...K];function ansi_styles_assembleStyles(){const t=new Map;for(const[r,i]of Object.entries(V)){for(const[r,o]of Object.entries(i)){V[r]={open:`[${o[0]}m`,close:`[${o[1]}m`};i[r]=V[r];t.set(o[0],o[1])}Object.defineProperty(V,r,{value:i,enumerable:false})}Object.defineProperty(V,"codes",{value:t,enumerable:false});V.color.close="[39m";V.bgColor.close="[49m";V.color.ansi=ansi_styles_wrapAnsi16();V.color.ansi256=ansi_styles_wrapAnsi256();V.color.ansi16m=ansi_styles_wrapAnsi16m();V.bgColor.ansi=ansi_styles_wrapAnsi16(Y);V.bgColor.ansi256=ansi_styles_wrapAnsi256(Y);V.bgColor.ansi16m=ansi_styles_wrapAnsi16m(Y);Object.defineProperties(V,{rgbToAnsi256:{value(t,r,i){if(t===r&&r===i){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},enumerable:false},hexToRgb:{value(t){const r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r){return[0,0,0]}let[i]=r;if(i.length===3){i=[...i].map((t=>t+t)).join("")}const o=Number.parseInt(i,16);return[o>>16&255,o>>8&255,o&255]},enumerable:false},hexToAnsi256:{value:t=>V.rgbToAnsi256(...V.hexToRgb(t)),enumerable:false},ansi256ToAnsi:{value(t){if(t<8){return 30+t}if(t<16){return 90+(t-8)}let r;let i;let o;if(t>=232){r=((t-232)*10+8)/255;i=r;o=r}else{t-=16;const a=t%36;r=Math.floor(t/36)/5;i=Math.floor(a/6)/5;o=a%6/5}const a=Math.max(r,i,o)*2;if(a===0){return 30}let u=30+(Math.round(o)<<2|Math.round(i)<<1|Math.round(r));if(a===2){u+=60}return u},enumerable:false},rgbToAnsi:{value:(t,r,i)=>V.ansi256ToAnsi(V.rgbToAnsi256(t,r,i)),enumerable:false},hexToAnsi:{value:t=>V.ansi256ToAnsi(V.hexToAnsi256(t)),enumerable:false}});return V}const z=ansi_styles_assembleStyles();const X=z;function supports_color_hasFlag(t,r=(globalThis.Deno?globalThis.Deno.args:o.argv)){const i=t.startsWith("-")?"":t.length===1?"-":"--";const a=r.indexOf(i+t);const u=r.indexOf("--");return a!==-1&&(u===-1||a<u)}const{env:Z}=o;let ee;if(supports_color_hasFlag("no-color")||supports_color_hasFlag("no-colors")||supports_color_hasFlag("color=false")||supports_color_hasFlag("color=never")){ee=0}else if(supports_color_hasFlag("color")||supports_color_hasFlag("colors")||supports_color_hasFlag("color=true")||supports_color_hasFlag("color=always")){ee=1}function supports_color_envForceColor(){if("FORCE_COLOR"in Z){if(Z.FORCE_COLOR==="true"){return 1}if(Z.FORCE_COLOR==="false"){return 0}return Z.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Z.FORCE_COLOR,10),3)}}function supports_color_translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supports_color_supportsColor(t,{streamIsTTY:r,sniffFlags:i=true}={}){const a=supports_color_envForceColor();if(a!==undefined){ee=a}const u=i?ee:a;if(u===0){return 0}if(i){if(supports_color_hasFlag("color=16m")||supports_color_hasFlag("color=full")||supports_color_hasFlag("color=truecolor")){return 3}if(supports_color_hasFlag("color=256")){return 2}}if("TF_BUILD"in Z&&"AGENT_NAME"in Z){return 1}if(t&&!r&&u===undefined){return 0}const l=u||0;if(Z.TERM==="dumb"){return l}if(o.platform==="win32"){const t=y.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in Z){if("GITHUB_ACTIONS"in Z||"GITEA_ACTIONS"in Z){return 3}if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((t=>t in Z))||Z.CI_NAME==="codeship"){return 1}return l}if("TEAMCITY_VERSION"in Z){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0}if(Z.COLORTERM==="truecolor"){return 3}if(Z.TERM==="xterm-kitty"){return 3}if("TERM_PROGRAM"in Z){const t=Number.parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":{return t>=3?3:2}case"Apple_Terminal":{return 2}}}if(/-256(color)?$/i.test(Z.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)){return 1}if("COLORTERM"in Z){return 1}return l}function supports_color_createSupportsColor(t,r={}){const i=supports_color_supportsColor(t,{streamIsTTY:t&&t.isTTY,...r});return supports_color_translateLevel(i)}const te={stdout:supports_color_createSupportsColor({isTTY:v.isatty(1)}),stderr:supports_color_createSupportsColor({isTTY:v.isatty(2)})};const re=te;function utilities_stringReplaceAll(t,r,i){let o=t.indexOf(r);if(o===-1){return t}const a=r.length;let u=0;let l="";do{l+=t.slice(u,o)+r+i;u=o+a;o=t.indexOf(r,u)}while(o!==-1);l+=t.slice(u);return l}function utilities_stringEncaseCRLFWithFirstIndex(t,r,i,o){let a=0;let u="";do{const l=t[o-1]==="\r";u+=t.slice(a,l?o-1:o)+r+(l?"\r\n":"\n")+i;a=o+1;o=t.indexOf("\n",a)}while(o!==-1);u+=t.slice(a);return u}const{stdout:ne,stderr:ie}=re;const se=Symbol("GENERATOR");const oe=Symbol("STYLER");const ae=Symbol("IS_EMPTY");const ue=["ansi","ansi","ansi256","ansi16m"];const le=Object.create(null);const source_applyOptions=(t,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const i=ne?ne.level:0;t.level=r.level===undefined?i:r.level};class source_Chalk{constructor(t){return source_chalkFactory(t)}}const source_chalkFactory=t=>{const chalk=(...t)=>t.join(" ");source_applyOptions(chalk,t);Object.setPrototypeOf(chalk,source_createChalk.prototype);return chalk};function source_createChalk(t){return source_chalkFactory(t)}Object.setPrototypeOf(source_createChalk.prototype,Function.prototype);for(const[t,r]of Object.entries(X)){le[t]={get(){const i=source_createBuilder(this,source_createStyler(r.open,r.close,this[oe]),this[ae]);Object.defineProperty(this,t,{value:i});return i}}}le.visible={get(){const t=source_createBuilder(this,this[oe],true);Object.defineProperty(this,"visible",{value:t});return t}};const source_getModelAnsi=(t,r,i,...o)=>{if(t==="rgb"){if(r==="ansi16m"){return X[i].ansi16m(...o)}if(r==="ansi256"){return X[i].ansi256(X.rgbToAnsi256(...o))}return X[i].ansi(X.rgbToAnsi(...o))}if(t==="hex"){return source_getModelAnsi("rgb",r,i,...X.hexToRgb(...o))}return X[i][t](...o)};const ce=["rgb","hex","ansi256"];for(const t of ce){le[t]={get(){const{level:r}=this;return function(...i){const o=source_createStyler(source_getModelAnsi(t,ue[r],"color",...i),X.color.close,this[oe]);return source_createBuilder(this,o,this[ae])}}};const r="bg"+t[0].toUpperCase()+t.slice(1);le[r]={get(){const{level:r}=this;return function(...i){const o=source_createStyler(source_getModelAnsi(t,ue[r],"bgColor",...i),X.bgColor.close,this[oe]);return source_createBuilder(this,o,this[ae])}}}}const fe=Object.defineProperties((()=>{}),{...le,level:{enumerable:true,get(){return this[se].level},set(t){this[se].level=t}}});const source_createStyler=(t,r,i)=>{let o;let a;if(i===undefined){o=t;a=r}else{o=i.openAll+t;a=r+i.closeAll}return{open:t,close:r,openAll:o,closeAll:a,parent:i}};const source_createBuilder=(t,r,i)=>{const builder=(...t)=>source_applyStyle(builder,t.length===1?""+t[0]:t.join(" "));Object.setPrototypeOf(builder,fe);builder[se]=t;builder[oe]=r;builder[ae]=i;return builder};const source_applyStyle=(t,r)=>{if(t.level<=0||!r){return t[ae]?"":r}let i=t[oe];if(i===undefined){return r}const{openAll:o,closeAll:a}=i;if(r.includes("")){while(i!==undefined){r=utilities_stringReplaceAll(r,i.close,i.open);i=i.parent}}const u=r.indexOf("\n");if(u!==-1){r=utilities_stringEncaseCRLFWithFirstIndex(r,a,o,u)}return o+r+a};Object.defineProperties(source_createChalk.prototype,le);const he=source_createChalk();const pe=source_createChalk({level:ie?ie.level:0});const de=he;function isUnicodeSupported(){if(o.platform!=="win32"){return o.env.TERM!=="linux"}return Boolean(o.env.CI)||Boolean(o.env.WT_SESSION)||Boolean(o.env.TERMINUS_SUBLIME)||o.env.ConEmuTask==="{cmd::Cmder}"||o.env.TERM_PROGRAM==="Terminus-Sublime"||o.env.TERM_PROGRAM==="vscode"||o.env.TERM==="xterm-256color"||o.env.TERM==="alacritty"||o.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const me={info:de.blue("ℹ"),success:de.green("✔"),warning:de.yellow("⚠"),error:de.red("✖")};const ge={info:de.blue("i"),success:de.green("√"),warning:de.yellow("‼"),error:de.red("×")};const ye=isUnicodeSupported()?me:ge;const ve=ye;function ansiRegex({onlyFirst:t=false}={}){const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,t?undefined:"g")}const Ae=ansiRegex();function stripAnsi(t){if(typeof t!=="string"){throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``)}return t.replace(Ae,"")}var be=i(1078);function isInteractive({stream:t=process.stdout}={}){return Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}function is_unicode_supported_isUnicodeSupported(){if(o.platform!=="win32"){return o.env.TERM!=="linux"}return Boolean(o.env.CI)||Boolean(o.env.WT_SESSION)||Boolean(o.env.TERMINUS_SUBLIME)||o.env.ConEmuTask==="{cmd::Cmder}"||o.env.TERM_PROGRAM==="Terminus-Sublime"||o.env.TERM_PROGRAM==="vscode"||o.env.TERM==="xterm-256color"||o.env.TERM==="alacritty"||o.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const we=require("node:readline");var Ee=i(8326);const Se=3;class StdinDiscarder{#e=0;#t=new Ee.BufferListStream;#r;#n;constructor(){this.#t.pipe(o.stdout);const t=this;this.#r=function(r,i,...a){const{stdin:u}=o;if(t.#e>0||u.emit===t.#r){if(r==="keypress"){return}if(r==="data"&&i.includes(Se)){o.emit("SIGINT")}Reflect.apply(t.#r,this,[r,i,...a])}else{Reflect.apply(o.stdin.emit,this,[r,i,...a])}}}start(){this.#e++;if(this.#e===1){this._realStart()}}stop(){if(this.#e<=0){throw new Error("`stop` called more times than `start`")}this.#e--;if(this.#e===0){this._realStop()}}_realStart(){if(o.platform==="win32"){return}this.#n=we.createInterface({input:o.stdin,output:this.#t});this.#n.on("SIGINT",(()=>{if(o.listenerCount("SIGINT")===0){o.emit("SIGINT")}else{this.#n.close();o.kill(o.pid,"SIGINT")}}))}_realStop(){if(o.platform==="win32"){return}this.#n.close();this.#n=undefined}}const _e=new StdinDiscarder;const Ce=_e;class Ora{#i=0;#s=false;#o=0;#a=0;#u;#l;#c;#f;#h;#p;#d;#m;#g;#y;#v;color;constructor(t){if(typeof t==="string"){t={text:t}}this.#u={color:"cyan",stream:o.stderr,discardStdin:true,hideCursor:true,...t};this.color=this.#u.color;this.spinner=this.#u.spinner;this.#h=this.#u.interval;this.#c=this.#u.stream;this.#p=typeof this.#u.isEnabled==="boolean"?this.#u.isEnabled:isInteractive({stream:this.#c});this.#d=typeof this.#u.isSilent==="boolean"?this.#u.isSilent:false;this.text=this.#u.text;this.prefixText=this.#u.prefixText;this.suffixText=this.#u.suffixText;this.indent=this.#u.indent;if(o.env.NODE_ENV==="test"){this._stream=this.#c;this._isEnabled=this.#p;Object.defineProperty(this,"_linesToClear",{get(){return this.#i},set(t){this.#i=t}});Object.defineProperty(this,"_frameIndex",{get(){return this.#a}});Object.defineProperty(this,"_lineCount",{get(){return this.#o}})}}get indent(){return this.#m}set indent(t=0){if(!(t>=0&&Number.isInteger(t))){throw new Error("The `indent` option must be an integer from 0 and up")}this.#m=t;this.updateLineCount()}get interval(){return this.#h||this.#l.interval||100}get spinner(){return this.#l}set spinner(t){this.#a=0;this.#h=undefined;if(typeof t==="object"){if(t.frames===undefined){throw new Error("The given spinner must have a `frames` property")}this.#l=t}else if(!is_unicode_supported_isUnicodeSupported()){this.#l=G.line}else if(t===undefined){this.#l=G.dots}else if(t!=="default"&&G[t]){this.#l=G[t]}else{throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}}get text(){return this.#g}set text(t){this.#g=t||"";this.updateLineCount()}get prefixText(){return this.#y}set prefixText(t){this.#y=t||"";this.updateLineCount()}get suffixText(){return this.#v}set suffixText(t){this.#v=t||"";this.updateLineCount()}get isSpinning(){return this.#f!==undefined}getFullPrefixText(t=this.#y,r=" "){if(typeof t==="string"&&t!==""){return t+r}if(typeof t==="function"){return t()+r}return""}getFullSuffixText(t=this.#v,r=" "){if(typeof t==="string"&&t!==""){return r+t}if(typeof t==="function"){return r+t()}return""}updateLineCount(){const t=this.#c.columns||80;const r=this.getFullPrefixText(this.#y,"-");const i=this.getFullSuffixText(this.#v,"-");const o=" ".repeat(this.#m)+r+"--"+this.#g+"--"+i;this.#o=0;for(const r of stripAnsi(o).split("\n")){this.#o+=Math.max(1,Math.ceil(be(r)/t))}}get isEnabled(){return this.#p&&!this.#d}set isEnabled(t){if(typeof t!=="boolean"){throw new TypeError("The `isEnabled` option must be a boolean")}this.#p=t}get isSilent(){return this.#d}set isSilent(t){if(typeof t!=="boolean"){throw new TypeError("The `isSilent` option must be a boolean")}this.#d=t}frame(){const{frames:t}=this.#l;let r=t[this.#a];if(this.color){r=L[this.color](r)}this.#a=++this.#a%t.length;const i=typeof this.#y==="string"&&this.#y!==""?this.#y+" ":"";const o=typeof this.text==="string"?" "+this.text:"";const a=typeof this.#v==="string"&&this.#v!==""?" "+this.#v:"";return i+r+o+a}clear(){if(!this.#p||!this.#c.isTTY){return this}this.#c.cursorTo(0);for(let t=0;t<this.#i;t++){if(t>0){this.#c.moveCursor(0,-1)}this.#c.clearLine(1)}if(this.#m||this.lastIndent!==this.#m){this.#c.cursorTo(this.#m)}this.lastIndent=this.#m;this.#i=0;return this}render(){if(this.#d){return this}this.clear();this.#c.write(this.frame());this.#i=this.#o;return this}start(t){if(t){this.text=t}if(this.#d){return this}if(!this.#p){if(this.text){this.#c.write(`- ${this.text}\n`)}return this}if(this.isSpinning){return this}if(this.#u.hideCursor){U.hide(this.#c)}if(this.#u.discardStdin&&o.stdin.isTTY){this.#s=true;Ce.start()}this.render();this.#f=setInterval(this.render.bind(this),this.interval);return this}stop(){if(!this.#p){return this}clearInterval(this.#f);this.#f=undefined;this.#a=0;this.clear();if(this.#u.hideCursor){U.show(this.#c)}if(this.#u.discardStdin&&o.stdin.isTTY&&this.#s){Ce.stop();this.#s=false}return this}succeed(t){return this.stopAndPersist({symbol:ve.success,text:t})}fail(t){return this.stopAndPersist({symbol:ve.error,text:t})}warn(t){return this.stopAndPersist({symbol:ve.warning,text:t})}info(t){return this.stopAndPersist({symbol:ve.info,text:t})}stopAndPersist(t={}){if(this.#d){return this}const r=t.prefixText||this.#y;const i=this.getFullPrefixText(r," ");const o=t.symbol||" ";const a=t.text||this.text;const u=typeof a==="string"?" "+a:"";const l=t.suffixText!==undefined?t.suffixText:this.#v;const h=this.getFullSuffixText(l," ");const p=i+o+u+h+"\n";this.stop();this.#c.write(p);return this}}function ora(t){return new Ora(t)}async function oraPromise(t,r){const i=typeof t==="function";const o=typeof t.then==="function";if(!i&&!o){throw new TypeError("Parameter `action` must be a Function or a Promise")}const{successText:a,failText:u}=typeof r==="object"?r:{successText:undefined,failText:undefined};const l=ora(r).start();try{const r=i?t(l):t;const o=await r;l.succeed(a===undefined?undefined:typeof a==="string"?a:a(o));return o}catch(t){l.fail(u===undefined?undefined:typeof u==="string"?u:u(t));throw t}}},4462:t=>{"use strict";t.exports=JSON.parse('["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"]')},6178: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":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots13":{"interval":80,"frames":["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"sand":{"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":["◢","◣","◤","◥"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"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":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},"dwarfFortress":{"interval":80,"frames":[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}}')},4147:t=>{"use strict";t.exports={i8:"0.0.2"}}};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__.d=(t,r)=>{for(var i in r){if(__nccwpck_require__.o(r,i)&&!__nccwpck_require__.o(t,i)){Object.defineProperty(t,i,{enumerable:true,get:r[i]})}}}})();(()=>{__nccwpck_require__.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r)})();(()=>{__nccwpck_require__.r=t=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})}})();(()=>{__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__={};(()=>{"use strict";__nccwpck_require__(813)})();module.exports=__webpack_exports__})();
|
|
82
|
+
`+o,0)}r.printHelp=printHelp;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,h.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},5659:(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},7794:(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=>!(t.endsWith(".iml")||a.includes(t))))}r.getConflictsForDirectory=getConflictsForDirectory},3196: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(6249));function withSectionLog(t,r){const i=(0,a.default)({text:r.pending,stream:process.stderr});i.start();return t(i).then((t=>{i.succeed(r.success);return t}),(t=>{i.fail(r.error(t));throw t}))}r.withSectionLog=withSectionLog},1822: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(9997));const u=o(i(6025));const l=i(7285);const h=i(3119);async function shouldUpdate(){try{const t=await(0,u.default)(h);if(t===null||t===void 0?void 0:t.latest){l.Log.log();l.Log.log(a.default.yellow.bold(`A new version of \`${h.name}\` is available`));l.Log.log((0,a.default)`You can update by running: {cyan npm install -g ${h.name}}`);l.Log.log()}}catch{}}r["default"]=shouldUpdate},3119: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")},2037:t=>{"use strict";t.exports=require("os")},1017:t=>{"use strict";t.exports=require("path")},4521:t=>{"use strict";t.exports=require("readline")},2781:t=>{"use strict";t.exports=require("stream")},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")},6249:(t,r,i)=>{"use strict";i.r(r);i.d(r,{default:()=>ora,oraPromise:()=>oraPromise,spinners:()=>G});const o=require("node:process");const a=10;const wrapAnsi16=(t=0)=>r=>`[${r+t}m`;const wrapAnsi256=(t=0)=>r=>`[${38+t};5;${r}m`;const wrapAnsi16m=(t=0)=>(r,i,o)=>`[${38+t};2;${r};${i};${o}m`;const u={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};const l=Object.keys(u.modifier);const h=Object.keys(u.color);const p=Object.keys(u.bgColor);const d=[...h,...p];function assembleStyles(){const t=new Map;for(const[r,i]of Object.entries(u)){for(const[r,o]of Object.entries(i)){u[r]={open:`[${o[0]}m`,close:`[${o[1]}m`};i[r]=u[r];t.set(o[0],o[1])}Object.defineProperty(u,r,{value:i,enumerable:false})}Object.defineProperty(u,"codes",{value:t,enumerable:false});u.color.close="[39m";u.bgColor.close="[49m";u.color.ansi=wrapAnsi16();u.color.ansi256=wrapAnsi256();u.color.ansi16m=wrapAnsi16m();u.bgColor.ansi=wrapAnsi16(a);u.bgColor.ansi256=wrapAnsi256(a);u.bgColor.ansi16m=wrapAnsi16m(a);Object.defineProperties(u,{rgbToAnsi256:{value(t,r,i){if(t===r&&r===i){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},enumerable:false},hexToRgb:{value(t){const r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r){return[0,0,0]}let[i]=r;if(i.length===3){i=[...i].map((t=>t+t)).join("")}const o=Number.parseInt(i,16);return[o>>16&255,o>>8&255,o&255]},enumerable:false},hexToAnsi256:{value:t=>u.rgbToAnsi256(...u.hexToRgb(t)),enumerable:false},ansi256ToAnsi:{value(t){if(t<8){return 30+t}if(t<16){return 90+(t-8)}let r;let i;let o;if(t>=232){r=((t-232)*10+8)/255;i=r;o=r}else{t-=16;const a=t%36;r=Math.floor(t/36)/5;i=Math.floor(a/6)/5;o=a%6/5}const a=Math.max(r,i,o)*2;if(a===0){return 30}let u=30+(Math.round(o)<<2|Math.round(i)<<1|Math.round(r));if(a===2){u+=60}return u},enumerable:false},rgbToAnsi:{value:(t,r,i)=>u.ansi256ToAnsi(u.rgbToAnsi256(t,r,i)),enumerable:false},hexToAnsi:{value:t=>u.ansi256ToAnsi(u.hexToAnsi256(t)),enumerable:false}});return u}const m=assembleStyles();const g=m;const y=require("node:os");const v=require("node:tty");function hasFlag(t,r=(globalThis.Deno?globalThis.Deno.args:o.argv)){const i=t.startsWith("-")?"":t.length===1?"-":"--";const a=r.indexOf(i+t);const u=r.indexOf("--");return a!==-1&&(u===-1||a<u)}const{env:A}=o;let b;if(hasFlag("no-color")||hasFlag("no-colors")||hasFlag("color=false")||hasFlag("color=never")){b=0}else if(hasFlag("color")||hasFlag("colors")||hasFlag("color=true")||hasFlag("color=always")){b=1}function envForceColor(){if("FORCE_COLOR"in A){if(A.FORCE_COLOR==="true"){return 1}if(A.FORCE_COLOR==="false"){return 0}return A.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(A.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,{streamIsTTY:r,sniffFlags:i=true}={}){const a=envForceColor();if(a!==undefined){b=a}const u=i?b:a;if(u===0){return 0}if(i){if(hasFlag("color=16m")||hasFlag("color=full")||hasFlag("color=truecolor")){return 3}if(hasFlag("color=256")){return 2}}if("TF_BUILD"in A&&"AGENT_NAME"in A){return 1}if(t&&!r&&u===undefined){return 0}const l=u||0;if(A.TERM==="dumb"){return l}if(o.platform==="win32"){const t=y.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in A){if("GITHUB_ACTIONS"in A||"GITEA_ACTIONS"in A){return 3}if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((t=>t in A))||A.CI_NAME==="codeship"){return 1}return l}if("TEAMCITY_VERSION"in A){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(A.TEAMCITY_VERSION)?1:0}if(A.COLORTERM==="truecolor"){return 3}if(A.TERM==="xterm-kitty"){return 3}if("TERM_PROGRAM"in A){const t=Number.parseInt((A.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(A.TERM_PROGRAM){case"iTerm.app":{return t>=3?3:2}case"Apple_Terminal":{return 2}}}if(/-256(color)?$/i.test(A.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(A.TERM)){return 1}if("COLORTERM"in A){return 1}return l}function createSupportsColor(t,r={}){const i=_supportsColor(t,{streamIsTTY:t&&t.isTTY,...r});return translateLevel(i)}const w={stdout:createSupportsColor({isTTY:v.isatty(1)}),stderr:createSupportsColor({isTTY:v.isatty(2)})};const S=w;function stringReplaceAll(t,r,i){let o=t.indexOf(r);if(o===-1){return t}const a=r.length;let u=0;let l="";do{l+=t.slice(u,o)+r+i;u=o+a;o=t.indexOf(r,u)}while(o!==-1);l+=t.slice(u);return l}function stringEncaseCRLFWithFirstIndex(t,r,i,o){let a=0;let u="";do{const l=t[o-1]==="\r";u+=t.slice(a,l?o-1:o)+r+(l?"\r\n":"\n")+i;a=o+1;o=t.indexOf("\n",a)}while(o!==-1);u+=t.slice(a);return u}const{stdout:_,stderr:C}=S;const D=Symbol("GENERATOR");const x=Symbol("STYLER");const R=Symbol("IS_EMPTY");const O=["ansi","ansi","ansi256","ansi16m"];const k=Object.create(null);const applyOptions=(t,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const i=_?_.level:0;t.level=r.level===undefined?i:r.level};class Chalk{constructor(t){return chalkFactory(t)}}const chalkFactory=t=>{const chalk=(...t)=>t.join(" ");applyOptions(chalk,t);Object.setPrototypeOf(chalk,createChalk.prototype);return chalk};function createChalk(t){return chalkFactory(t)}Object.setPrototypeOf(createChalk.prototype,Function.prototype);for(const[t,r]of Object.entries(g)){k[t]={get(){const i=createBuilder(this,createStyler(r.open,r.close,this[x]),this[R]);Object.defineProperty(this,t,{value:i});return i}}}k.visible={get(){const t=createBuilder(this,this[x],true);Object.defineProperty(this,"visible",{value:t});return t}};const getModelAnsi=(t,r,i,...o)=>{if(t==="rgb"){if(r==="ansi16m"){return g[i].ansi16m(...o)}if(r==="ansi256"){return g[i].ansi256(g.rgbToAnsi256(...o))}return g[i].ansi(g.rgbToAnsi(...o))}if(t==="hex"){return getModelAnsi("rgb",r,i,...g.hexToRgb(...o))}return g[i][t](...o)};const T=["rgb","hex","ansi256"];for(const t of T){k[t]={get(){const{level:r}=this;return function(...i){const o=createStyler(getModelAnsi(t,O[r],"color",...i),g.color.close,this[x]);return createBuilder(this,o,this[R])}}};const r="bg"+t[0].toUpperCase()+t.slice(1);k[r]={get(){const{level:r}=this;return function(...i){const o=createStyler(getModelAnsi(t,O[r],"bgColor",...i),g.bgColor.close,this[x]);return createBuilder(this,o,this[R])}}}}const P=Object.defineProperties((()=>{}),{...k,level:{enumerable:true,get(){return this[D].level},set(t){this[D].level=t}}});const createStyler=(t,r,i)=>{let o;let a;if(i===undefined){o=t;a=r}else{o=i.openAll+t;a=r+i.closeAll}return{open:t,close:r,openAll:o,closeAll:a,parent:i}};const createBuilder=(t,r,i)=>{const builder=(...t)=>applyStyle(builder,t.length===1?""+t[0]:t.join(" "));Object.setPrototypeOf(builder,P);builder[D]=t;builder[x]=r;builder[R]=i;return builder};const applyStyle=(t,r)=>{if(t.level<=0||!r){return t[R]?"":r}let i=t[x];if(i===undefined){return r}const{openAll:o,closeAll:a}=i;if(r.includes("")){while(i!==undefined){r=stringReplaceAll(r,i.close,i.open);i=i.parent}}const u=r.indexOf("\n");if(u!==-1){r=stringEncaseCRLFWithFirstIndex(r,a,o,u)}return o+r+a};Object.defineProperties(createChalk.prototype,k);const B=createChalk();const M=createChalk({level:C?C.level:0});const L=B;var I=i(2887);var N=i(9496);const j=I((()=>{N((()=>{o.stderr.write("[?25h")}),{alwaysLast:true})}));const $=j;let H=false;const W={};W.show=(t=o.stderr)=>{if(!t.isTTY){return}H=false;t.write("[?25h")};W.hide=(t=o.stderr)=>{if(!t.isTTY){return}$();H=true;t.write("[?25l")};W.toggle=(t,r)=>{if(t!==undefined){H=t}if(H){W.show(r)}else{W.hide(r)}};const U=W;var G=i(6706);const Y=10;const ansi_styles_wrapAnsi16=(t=0)=>r=>`[${r+t}m`;const ansi_styles_wrapAnsi256=(t=0)=>r=>`[${38+t};5;${r}m`;const ansi_styles_wrapAnsi16m=(t=0)=>(r,i,o)=>`[${38+t};2;${r};${i};${o}m`;const V={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};const q=Object.keys(V.modifier);const Q=Object.keys(V.color);const K=Object.keys(V.bgColor);const J=[...Q,...K];function ansi_styles_assembleStyles(){const t=new Map;for(const[r,i]of Object.entries(V)){for(const[r,o]of Object.entries(i)){V[r]={open:`[${o[0]}m`,close:`[${o[1]}m`};i[r]=V[r];t.set(o[0],o[1])}Object.defineProperty(V,r,{value:i,enumerable:false})}Object.defineProperty(V,"codes",{value:t,enumerable:false});V.color.close="[39m";V.bgColor.close="[49m";V.color.ansi=ansi_styles_wrapAnsi16();V.color.ansi256=ansi_styles_wrapAnsi256();V.color.ansi16m=ansi_styles_wrapAnsi16m();V.bgColor.ansi=ansi_styles_wrapAnsi16(Y);V.bgColor.ansi256=ansi_styles_wrapAnsi256(Y);V.bgColor.ansi16m=ansi_styles_wrapAnsi16m(Y);Object.defineProperties(V,{rgbToAnsi256:{value(t,r,i){if(t===r&&r===i){if(t<8){return 16}if(t>248){return 231}return Math.round((t-8)/247*24)+232}return 16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5)},enumerable:false},hexToRgb:{value(t){const r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!r){return[0,0,0]}let[i]=r;if(i.length===3){i=[...i].map((t=>t+t)).join("")}const o=Number.parseInt(i,16);return[o>>16&255,o>>8&255,o&255]},enumerable:false},hexToAnsi256:{value:t=>V.rgbToAnsi256(...V.hexToRgb(t)),enumerable:false},ansi256ToAnsi:{value(t){if(t<8){return 30+t}if(t<16){return 90+(t-8)}let r;let i;let o;if(t>=232){r=((t-232)*10+8)/255;i=r;o=r}else{t-=16;const a=t%36;r=Math.floor(t/36)/5;i=Math.floor(a/6)/5;o=a%6/5}const a=Math.max(r,i,o)*2;if(a===0){return 30}let u=30+(Math.round(o)<<2|Math.round(i)<<1|Math.round(r));if(a===2){u+=60}return u},enumerable:false},rgbToAnsi:{value:(t,r,i)=>V.ansi256ToAnsi(V.rgbToAnsi256(t,r,i)),enumerable:false},hexToAnsi:{value:t=>V.ansi256ToAnsi(V.hexToAnsi256(t)),enumerable:false}});return V}const z=ansi_styles_assembleStyles();const X=z;function supports_color_hasFlag(t,r=(globalThis.Deno?globalThis.Deno.args:o.argv)){const i=t.startsWith("-")?"":t.length===1?"-":"--";const a=r.indexOf(i+t);const u=r.indexOf("--");return a!==-1&&(u===-1||a<u)}const{env:Z}=o;let ee;if(supports_color_hasFlag("no-color")||supports_color_hasFlag("no-colors")||supports_color_hasFlag("color=false")||supports_color_hasFlag("color=never")){ee=0}else if(supports_color_hasFlag("color")||supports_color_hasFlag("colors")||supports_color_hasFlag("color=true")||supports_color_hasFlag("color=always")){ee=1}function supports_color_envForceColor(){if("FORCE_COLOR"in Z){if(Z.FORCE_COLOR==="true"){return 1}if(Z.FORCE_COLOR==="false"){return 0}return Z.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(Z.FORCE_COLOR,10),3)}}function supports_color_translateLevel(t){if(t===0){return false}return{level:t,hasBasic:true,has256:t>=2,has16m:t>=3}}function supports_color_supportsColor(t,{streamIsTTY:r,sniffFlags:i=true}={}){const a=supports_color_envForceColor();if(a!==undefined){ee=a}const u=i?ee:a;if(u===0){return 0}if(i){if(supports_color_hasFlag("color=16m")||supports_color_hasFlag("color=full")||supports_color_hasFlag("color=truecolor")){return 3}if(supports_color_hasFlag("color=256")){return 2}}if("TF_BUILD"in Z&&"AGENT_NAME"in Z){return 1}if(t&&!r&&u===undefined){return 0}const l=u||0;if(Z.TERM==="dumb"){return l}if(o.platform==="win32"){const t=y.release().split(".");if(Number(t[0])>=10&&Number(t[2])>=10586){return Number(t[2])>=14931?3:2}return 1}if("CI"in Z){if("GITHUB_ACTIONS"in Z||"GITEA_ACTIONS"in Z){return 3}if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some((t=>t in Z))||Z.CI_NAME==="codeship"){return 1}return l}if("TEAMCITY_VERSION"in Z){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Z.TEAMCITY_VERSION)?1:0}if(Z.COLORTERM==="truecolor"){return 3}if(Z.TERM==="xterm-kitty"){return 3}if("TERM_PROGRAM"in Z){const t=Number.parseInt((Z.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Z.TERM_PROGRAM){case"iTerm.app":{return t>=3?3:2}case"Apple_Terminal":{return 2}}}if(/-256(color)?$/i.test(Z.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Z.TERM)){return 1}if("COLORTERM"in Z){return 1}return l}function supports_color_createSupportsColor(t,r={}){const i=supports_color_supportsColor(t,{streamIsTTY:t&&t.isTTY,...r});return supports_color_translateLevel(i)}const te={stdout:supports_color_createSupportsColor({isTTY:v.isatty(1)}),stderr:supports_color_createSupportsColor({isTTY:v.isatty(2)})};const re=te;function utilities_stringReplaceAll(t,r,i){let o=t.indexOf(r);if(o===-1){return t}const a=r.length;let u=0;let l="";do{l+=t.slice(u,o)+r+i;u=o+a;o=t.indexOf(r,u)}while(o!==-1);l+=t.slice(u);return l}function utilities_stringEncaseCRLFWithFirstIndex(t,r,i,o){let a=0;let u="";do{const l=t[o-1]==="\r";u+=t.slice(a,l?o-1:o)+r+(l?"\r\n":"\n")+i;a=o+1;o=t.indexOf("\n",a)}while(o!==-1);u+=t.slice(a);return u}const{stdout:ne,stderr:ie}=re;const se=Symbol("GENERATOR");const oe=Symbol("STYLER");const ae=Symbol("IS_EMPTY");const ue=["ansi","ansi","ansi256","ansi16m"];const le=Object.create(null);const source_applyOptions=(t,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3)){throw new Error("The `level` option should be an integer from 0 to 3")}const i=ne?ne.level:0;t.level=r.level===undefined?i:r.level};class source_Chalk{constructor(t){return source_chalkFactory(t)}}const source_chalkFactory=t=>{const chalk=(...t)=>t.join(" ");source_applyOptions(chalk,t);Object.setPrototypeOf(chalk,source_createChalk.prototype);return chalk};function source_createChalk(t){return source_chalkFactory(t)}Object.setPrototypeOf(source_createChalk.prototype,Function.prototype);for(const[t,r]of Object.entries(X)){le[t]={get(){const i=source_createBuilder(this,source_createStyler(r.open,r.close,this[oe]),this[ae]);Object.defineProperty(this,t,{value:i});return i}}}le.visible={get(){const t=source_createBuilder(this,this[oe],true);Object.defineProperty(this,"visible",{value:t});return t}};const source_getModelAnsi=(t,r,i,...o)=>{if(t==="rgb"){if(r==="ansi16m"){return X[i].ansi16m(...o)}if(r==="ansi256"){return X[i].ansi256(X.rgbToAnsi256(...o))}return X[i].ansi(X.rgbToAnsi(...o))}if(t==="hex"){return source_getModelAnsi("rgb",r,i,...X.hexToRgb(...o))}return X[i][t](...o)};const ce=["rgb","hex","ansi256"];for(const t of ce){le[t]={get(){const{level:r}=this;return function(...i){const o=source_createStyler(source_getModelAnsi(t,ue[r],"color",...i),X.color.close,this[oe]);return source_createBuilder(this,o,this[ae])}}};const r="bg"+t[0].toUpperCase()+t.slice(1);le[r]={get(){const{level:r}=this;return function(...i){const o=source_createStyler(source_getModelAnsi(t,ue[r],"bgColor",...i),X.bgColor.close,this[oe]);return source_createBuilder(this,o,this[ae])}}}}const fe=Object.defineProperties((()=>{}),{...le,level:{enumerable:true,get(){return this[se].level},set(t){this[se].level=t}}});const source_createStyler=(t,r,i)=>{let o;let a;if(i===undefined){o=t;a=r}else{o=i.openAll+t;a=r+i.closeAll}return{open:t,close:r,openAll:o,closeAll:a,parent:i}};const source_createBuilder=(t,r,i)=>{const builder=(...t)=>source_applyStyle(builder,t.length===1?""+t[0]:t.join(" "));Object.setPrototypeOf(builder,fe);builder[se]=t;builder[oe]=r;builder[ae]=i;return builder};const source_applyStyle=(t,r)=>{if(t.level<=0||!r){return t[ae]?"":r}let i=t[oe];if(i===undefined){return r}const{openAll:o,closeAll:a}=i;if(r.includes("")){while(i!==undefined){r=utilities_stringReplaceAll(r,i.close,i.open);i=i.parent}}const u=r.indexOf("\n");if(u!==-1){r=utilities_stringEncaseCRLFWithFirstIndex(r,a,o,u)}return o+r+a};Object.defineProperties(source_createChalk.prototype,le);const he=source_createChalk();const pe=source_createChalk({level:ie?ie.level:0});const de=he;function isUnicodeSupported(){if(o.platform!=="win32"){return o.env.TERM!=="linux"}return Boolean(o.env.CI)||Boolean(o.env.WT_SESSION)||Boolean(o.env.TERMINUS_SUBLIME)||o.env.ConEmuTask==="{cmd::Cmder}"||o.env.TERM_PROGRAM==="Terminus-Sublime"||o.env.TERM_PROGRAM==="vscode"||o.env.TERM==="xterm-256color"||o.env.TERM==="alacritty"||o.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const me={info:de.blue("ℹ"),success:de.green("✔"),warning:de.yellow("⚠"),error:de.red("✖")};const ge={info:de.blue("i"),success:de.green("√"),warning:de.yellow("‼"),error:de.red("×")};const ye=isUnicodeSupported()?me:ge;const ve=ye;function ansiRegex({onlyFirst:t=false}={}){const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(r,t?undefined:"g")}const Ae=ansiRegex();function stripAnsi(t){if(typeof t!=="string"){throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``)}return t.replace(Ae,"")}var be=i(1078);function isInteractive({stream:t=process.stdout}={}){return Boolean(t&&t.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}function is_unicode_supported_isUnicodeSupported(){if(o.platform!=="win32"){return o.env.TERM!=="linux"}return Boolean(o.env.CI)||Boolean(o.env.WT_SESSION)||Boolean(o.env.TERMINUS_SUBLIME)||o.env.ConEmuTask==="{cmd::Cmder}"||o.env.TERM_PROGRAM==="Terminus-Sublime"||o.env.TERM_PROGRAM==="vscode"||o.env.TERM==="xterm-256color"||o.env.TERM==="alacritty"||o.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const we=require("node:readline");var Ee=i(8326);const Se=3;class StdinDiscarder{#e=0;#t=new Ee.BufferListStream;#r;#n;constructor(){this.#t.pipe(o.stdout);const t=this;this.#r=function(r,i,...a){const{stdin:u}=o;if(t.#e>0||u.emit===t.#r){if(r==="keypress"){return}if(r==="data"&&i.includes(Se)){o.emit("SIGINT")}Reflect.apply(t.#r,this,[r,i,...a])}else{Reflect.apply(o.stdin.emit,this,[r,i,...a])}}}start(){this.#e++;if(this.#e===1){this._realStart()}}stop(){if(this.#e<=0){throw new Error("`stop` called more times than `start`")}this.#e--;if(this.#e===0){this._realStop()}}_realStart(){if(o.platform==="win32"){return}this.#n=we.createInterface({input:o.stdin,output:this.#t});this.#n.on("SIGINT",(()=>{if(o.listenerCount("SIGINT")===0){o.emit("SIGINT")}else{this.#n.close();o.kill(o.pid,"SIGINT")}}))}_realStop(){if(o.platform==="win32"){return}this.#n.close();this.#n=undefined}}const _e=new StdinDiscarder;const Ce=_e;class Ora{#i=0;#s=false;#o=0;#a=0;#u;#l;#c;#f;#h;#p;#d;#m;#g;#y;#v;color;constructor(t){if(typeof t==="string"){t={text:t}}this.#u={color:"cyan",stream:o.stderr,discardStdin:true,hideCursor:true,...t};this.color=this.#u.color;this.spinner=this.#u.spinner;this.#h=this.#u.interval;this.#c=this.#u.stream;this.#p=typeof this.#u.isEnabled==="boolean"?this.#u.isEnabled:isInteractive({stream:this.#c});this.#d=typeof this.#u.isSilent==="boolean"?this.#u.isSilent:false;this.text=this.#u.text;this.prefixText=this.#u.prefixText;this.suffixText=this.#u.suffixText;this.indent=this.#u.indent;if(o.env.NODE_ENV==="test"){this._stream=this.#c;this._isEnabled=this.#p;Object.defineProperty(this,"_linesToClear",{get(){return this.#i},set(t){this.#i=t}});Object.defineProperty(this,"_frameIndex",{get(){return this.#a}});Object.defineProperty(this,"_lineCount",{get(){return this.#o}})}}get indent(){return this.#m}set indent(t=0){if(!(t>=0&&Number.isInteger(t))){throw new Error("The `indent` option must be an integer from 0 and up")}this.#m=t;this.updateLineCount()}get interval(){return this.#h||this.#l.interval||100}get spinner(){return this.#l}set spinner(t){this.#a=0;this.#h=undefined;if(typeof t==="object"){if(t.frames===undefined){throw new Error("The given spinner must have a `frames` property")}this.#l=t}else if(!is_unicode_supported_isUnicodeSupported()){this.#l=G.line}else if(t===undefined){this.#l=G.dots}else if(t!=="default"&&G[t]){this.#l=G[t]}else{throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}}get text(){return this.#g}set text(t){this.#g=t||"";this.updateLineCount()}get prefixText(){return this.#y}set prefixText(t){this.#y=t||"";this.updateLineCount()}get suffixText(){return this.#v}set suffixText(t){this.#v=t||"";this.updateLineCount()}get isSpinning(){return this.#f!==undefined}getFullPrefixText(t=this.#y,r=" "){if(typeof t==="string"&&t!==""){return t+r}if(typeof t==="function"){return t()+r}return""}getFullSuffixText(t=this.#v,r=" "){if(typeof t==="string"&&t!==""){return r+t}if(typeof t==="function"){return r+t()}return""}updateLineCount(){const t=this.#c.columns||80;const r=this.getFullPrefixText(this.#y,"-");const i=this.getFullSuffixText(this.#v,"-");const o=" ".repeat(this.#m)+r+"--"+this.#g+"--"+i;this.#o=0;for(const r of stripAnsi(o).split("\n")){this.#o+=Math.max(1,Math.ceil(be(r)/t))}}get isEnabled(){return this.#p&&!this.#d}set isEnabled(t){if(typeof t!=="boolean"){throw new TypeError("The `isEnabled` option must be a boolean")}this.#p=t}get isSilent(){return this.#d}set isSilent(t){if(typeof t!=="boolean"){throw new TypeError("The `isSilent` option must be a boolean")}this.#d=t}frame(){const{frames:t}=this.#l;let r=t[this.#a];if(this.color){r=L[this.color](r)}this.#a=++this.#a%t.length;const i=typeof this.#y==="string"&&this.#y!==""?this.#y+" ":"";const o=typeof this.text==="string"?" "+this.text:"";const a=typeof this.#v==="string"&&this.#v!==""?" "+this.#v:"";return i+r+o+a}clear(){if(!this.#p||!this.#c.isTTY){return this}this.#c.cursorTo(0);for(let t=0;t<this.#i;t++){if(t>0){this.#c.moveCursor(0,-1)}this.#c.clearLine(1)}if(this.#m||this.lastIndent!==this.#m){this.#c.cursorTo(this.#m)}this.lastIndent=this.#m;this.#i=0;return this}render(){if(this.#d){return this}this.clear();this.#c.write(this.frame());this.#i=this.#o;return this}start(t){if(t){this.text=t}if(this.#d){return this}if(!this.#p){if(this.text){this.#c.write(`- ${this.text}\n`)}return this}if(this.isSpinning){return this}if(this.#u.hideCursor){U.hide(this.#c)}if(this.#u.discardStdin&&o.stdin.isTTY){this.#s=true;Ce.start()}this.render();this.#f=setInterval(this.render.bind(this),this.interval);return this}stop(){if(!this.#p){return this}clearInterval(this.#f);this.#f=undefined;this.#a=0;this.clear();if(this.#u.hideCursor){U.show(this.#c)}if(this.#u.discardStdin&&o.stdin.isTTY&&this.#s){Ce.stop();this.#s=false}return this}succeed(t){return this.stopAndPersist({symbol:ve.success,text:t})}fail(t){return this.stopAndPersist({symbol:ve.error,text:t})}warn(t){return this.stopAndPersist({symbol:ve.warning,text:t})}info(t){return this.stopAndPersist({symbol:ve.info,text:t})}stopAndPersist(t={}){if(this.#d){return this}const r=t.prefixText||this.#y;const i=this.getFullPrefixText(r," ");const o=t.symbol||" ";const a=t.text||this.text;const u=typeof a==="string"?" "+a:"";const l=t.suffixText!==undefined?t.suffixText:this.#v;const h=this.getFullSuffixText(l," ");const p=i+o+u+h+"\n";this.stop();this.#c.write(p);return this}}function ora(t){return new Ora(t)}async function oraPromise(t,r){const i=typeof t==="function";const o=typeof t.then==="function";if(!i&&!o){throw new TypeError("Parameter `action` must be a Function or a Promise")}const{successText:a,failText:u}=typeof r==="object"?r:{successText:undefined,failText:undefined};const l=ora(r).start();try{const r=i?t(l):t;const o=await r;l.succeed(a===undefined?undefined:typeof a==="string"?a:a(o));return o}catch(t){l.fail(u===undefined?undefined:typeof u==="string"?u:u(t));throw t}}},4462:t=>{"use strict";t.exports=JSON.parse('["assert","buffer","child_process","cluster","console","constants","crypto","dgram","dns","domain","events","fs","http","https","module","net","os","path","process","punycode","querystring","readline","repl","stream","string_decoder","timers","tls","tty","url","util","v8","vm","zlib"]')},6178: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":["⢀⠀","⡀⠀","⠄⠀","⢂⠀","⡂⠀","⠅⠀","⢃⠀","⡃⠀","⠍⠀","⢋⠀","⡋⠀","⠍⠁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⢈⠩","⡀⢙","⠄⡙","⢂⠩","⡂⢘","⠅⡘","⢃⠨","⡃⢐","⠍⡐","⢋⠠","⡋⢀","⠍⡁","⢋⠁","⡋⠁","⠍⠉","⠋⠉","⠋⠉","⠉⠙","⠉⠙","⠉⠩","⠈⢙","⠈⡙","⠈⠩","⠀⢙","⠀⡙","⠀⠩","⠀⢘","⠀⡘","⠀⠨","⠀⢐","⠀⡐","⠀⠠","⠀⢀","⠀⡀"]},"dots13":{"interval":80,"frames":["⣼","⣹","⢻","⠿","⡟","⣏","⣧","⣶"]},"dots8Bit":{"interval":80,"frames":["⠀","⠁","⠂","⠃","⠄","⠅","⠆","⠇","⡀","⡁","⡂","⡃","⡄","⡅","⡆","⡇","⠈","⠉","⠊","⠋","⠌","⠍","⠎","⠏","⡈","⡉","⡊","⡋","⡌","⡍","⡎","⡏","⠐","⠑","⠒","⠓","⠔","⠕","⠖","⠗","⡐","⡑","⡒","⡓","⡔","⡕","⡖","⡗","⠘","⠙","⠚","⠛","⠜","⠝","⠞","⠟","⡘","⡙","⡚","⡛","⡜","⡝","⡞","⡟","⠠","⠡","⠢","⠣","⠤","⠥","⠦","⠧","⡠","⡡","⡢","⡣","⡤","⡥","⡦","⡧","⠨","⠩","⠪","⠫","⠬","⠭","⠮","⠯","⡨","⡩","⡪","⡫","⡬","⡭","⡮","⡯","⠰","⠱","⠲","⠳","⠴","⠵","⠶","⠷","⡰","⡱","⡲","⡳","⡴","⡵","⡶","⡷","⠸","⠹","⠺","⠻","⠼","⠽","⠾","⠿","⡸","⡹","⡺","⡻","⡼","⡽","⡾","⡿","⢀","⢁","⢂","⢃","⢄","⢅","⢆","⢇","⣀","⣁","⣂","⣃","⣄","⣅","⣆","⣇","⢈","⢉","⢊","⢋","⢌","⢍","⢎","⢏","⣈","⣉","⣊","⣋","⣌","⣍","⣎","⣏","⢐","⢑","⢒","⢓","⢔","⢕","⢖","⢗","⣐","⣑","⣒","⣓","⣔","⣕","⣖","⣗","⢘","⢙","⢚","⢛","⢜","⢝","⢞","⢟","⣘","⣙","⣚","⣛","⣜","⣝","⣞","⣟","⢠","⢡","⢢","⢣","⢤","⢥","⢦","⢧","⣠","⣡","⣢","⣣","⣤","⣥","⣦","⣧","⢨","⢩","⢪","⢫","⢬","⢭","⢮","⢯","⣨","⣩","⣪","⣫","⣬","⣭","⣮","⣯","⢰","⢱","⢲","⢳","⢴","⢵","⢶","⢷","⣰","⣱","⣲","⣳","⣴","⣵","⣶","⣷","⢸","⢹","⢺","⢻","⢼","⢽","⢾","⢿","⣸","⣹","⣺","⣻","⣼","⣽","⣾","⣿"]},"sand":{"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":["◢","◣","◤","◥"]},"binary":{"interval":80,"frames":["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},"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":["▰▱▱▱▱▱▱","▰▰▱▱▱▱▱","▰▰▰▱▱▱▱","▰▰▰▰▱▱▱","▰▰▰▰▰▱▱","▰▰▰▰▰▰▱","▰▰▰▰▰▰▰","▰▱▱▱▱▱▱"]},"dwarfFortress":{"interval":80,"frames":[" ██████£££ ","☺██████£££ ","☺██████£££ ","☺▓█████£££ ","☺▓█████£££ ","☺▒█████£££ ","☺▒█████£££ ","☺░█████£££ ","☺░█████£££ ","☺ █████£££ "," ☺█████£££ "," ☺█████£££ "," ☺▓████£££ "," ☺▓████£££ "," ☺▒████£££ "," ☺▒████£££ "," ☺░████£££ "," ☺░████£££ "," ☺ ████£££ "," ☺████£££ "," ☺████£££ "," ☺▓███£££ "," ☺▓███£££ "," ☺▒███£££ "," ☺▒███£££ "," ☺░███£££ "," ☺░███£££ "," ☺ ███£££ "," ☺███£££ "," ☺███£££ "," ☺▓██£££ "," ☺▓██£££ "," ☺▒██£££ "," ☺▒██£££ "," ☺░██£££ "," ☺░██£££ "," ☺ ██£££ "," ☺██£££ "," ☺██£££ "," ☺▓█£££ "," ☺▓█£££ "," ☺▒█£££ "," ☺▒█£££ "," ☺░█£££ "," ☺░█£££ "," ☺ █£££ "," ☺█£££ "," ☺█£££ "," ☺▓£££ "," ☺▓£££ "," ☺▒£££ "," ☺▒£££ "," ☺░£££ "," ☺░£££ "," ☺ £££ "," ☺£££ "," ☺£££ "," ☺▓££ "," ☺▓££ "," ☺▒££ "," ☺▒££ "," ☺░££ "," ☺░££ "," ☺ ££ "," ☺££ "," ☺££ "," ☺▓£ "," ☺▓£ "," ☺▒£ "," ☺▒£ "," ☺░£ "," ☺░£ "," ☺ £ "," ☺£ "," ☺£ "," ☺▓ "," ☺▓ "," ☺▒ "," ☺▒ "," ☺░ "," ☺░ "," ☺ "," ☺ &"," ☺ ☼&"," ☺ ☼ &"," ☺☼ &"," ☺☼ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & "," ‼ & "," ☺ & ","‼ & "," & "," & "," & ░ "," & ▒ "," & ▓ "," & £ "," & ░£ "," & ▒£ "," & ▓£ "," & ££ "," & ░££ "," & ▒££ ","& ▓££ ","& £££ "," ░£££ "," ▒£££ "," ▓£££ "," █£££ "," ░█£££ "," ▒█£££ "," ▓█£££ "," ██£££ "," ░██£££ "," ▒██£££ "," ▓██£££ "," ███£££ "," ░███£££ "," ▒███£££ "," ▓███£££ "," ████£££ "," ░████£££ "," ▒████£££ "," ▓████£££ "," █████£££ "," ░█████£££ "," ▒█████£££ "," ▓█████£££ "," ██████£££ "," ██████£££ "]}}')},4147:t=>{"use strict";t.exports={i8:"0.0.4"}}};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__.d=(t,r)=>{for(var i in r){if(__nccwpck_require__.o(r,i)&&!__nccwpck_require__.o(t,i)){Object.defineProperty(t,i,{enumerable:true,get:r[i]})}}}})();(()=>{__nccwpck_require__.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r)})();(()=>{__nccwpck_require__.r=t=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})}})();(()=>{__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__={};(()=>{"use strict";__nccwpck_require__(813)})();module.exports=__webpack_exports__})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-eas-build-function",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"bin": {
|
|
5
5
|
"create-eas-build-function": "./build/index.js"
|
|
6
6
|
},
|
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
"templates"
|
|
25
25
|
],
|
|
26
26
|
"scripts": {
|
|
27
|
-
"prepack": "yarn run clean && yarn run build
|
|
27
|
+
"prepack": "yarn run clean && yarn run build",
|
|
28
28
|
"lint": "eslint .",
|
|
29
|
-
"test": "
|
|
30
|
-
"watch": "yarn run build -w",
|
|
31
|
-
"build": "ncc build ./src/index.ts -o build/",
|
|
32
|
-
"build
|
|
29
|
+
"test": "echo 'No tests yet.'",
|
|
30
|
+
"watch": "yarn run build:dev -w",
|
|
31
|
+
"build:dev": "ncc build ./src/index.ts -o build/",
|
|
32
|
+
"build": "ncc build ./src/index.ts -o build/ --minify --no-cache --no-source-map-register",
|
|
33
33
|
"clean": "rimraf ./build/"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# EAS Build custom function
|
|
2
|
+
|
|
3
|
+
This is an EAS Build custom written in JavaScript.
|
|
4
|
+
|
|
5
|
+
## How to use it
|
|
6
|
+
|
|
7
|
+
1. Install dependencies using the package manager of your choice (npm, yarn, etc.) by running the `install` command.
|
|
8
|
+
2. Implement your function in `src/index.js`.
|
|
9
|
+
3. Build your function using the `yarn build` command. **The [`ncc` tool](https://github.com/vercel/ncc) is required to perform this operation**. If you don't have it installed, you can install it by running `npm install -g @vercel/ncc`.
|
|
10
|
+
4. Use it in the custom build YAML config. For example:
|
|
11
|
+
|
|
12
|
+
```yml
|
|
13
|
+
build:
|
|
14
|
+
name: Custom build
|
|
15
|
+
steps:
|
|
16
|
+
- run:
|
|
17
|
+
name: Hi!
|
|
18
|
+
command: echo "Hello! Let's run a custom function!"
|
|
19
|
+
- my_function:
|
|
20
|
+
id: my-function-call
|
|
21
|
+
- run:
|
|
22
|
+
name: Bye!
|
|
23
|
+
command: echo "Bye! The custom function has finished its job."
|
|
24
|
+
|
|
25
|
+
functions:
|
|
26
|
+
my_function:
|
|
27
|
+
name: my-function
|
|
28
|
+
path: path/to/my/function/module
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
5. Make sure that the `build` directory is not ignored in your `.gitignore` or `.easignore` file, so it can be used by the custom build process.
|
|
32
|
+
|
|
33
|
+
## Learn more
|
|
34
|
+
|
|
35
|
+
Visit the [EAS Build custom builds documentation](https://docs.expo.dev/preview/custom-build-config/) to learn more about EAS Build custom functions.
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// This file was autogenerated by `create-eas-build-function` command.
|
|
2
|
+
// Go to README.md to learn more about how to write your own custom build functions.
|
|
3
|
+
|
|
1
4
|
function myFunction(ctx, { inputs, outputs, env }) {
|
|
2
5
|
ctx.logger.info('Hello from my JavaScript function!');
|
|
3
6
|
}
|
|
@@ -1 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
# EAS Build custom function
|
|
2
|
+
|
|
3
|
+
This is an EAS Build custom written in TypeScript.
|
|
4
|
+
|
|
5
|
+
## How to use it
|
|
6
|
+
|
|
7
|
+
1. Install dependencies using the package manager of your choice (npm, yarn, etc.) by running the `install` command.
|
|
8
|
+
2. Implement your function in `src/index.ts`.
|
|
9
|
+
3. Build your function using the `yarn build` command. **The [`ncc` tool](https://github.com/vercel/ncc) is required to perform this operation**. If you don't have it installed, you can install it by running `npm install -g @vercel/ncc`.
|
|
10
|
+
4. Use it in the custom build YAML config. For example:
|
|
11
|
+
|
|
12
|
+
```yml
|
|
13
|
+
build:
|
|
14
|
+
name: Custom build
|
|
15
|
+
steps:
|
|
16
|
+
- run:
|
|
17
|
+
name: Hi!
|
|
18
|
+
command: echo "Hello! Let's run a custom function!"
|
|
19
|
+
- my_function:
|
|
20
|
+
id: my-function-call
|
|
21
|
+
- run:
|
|
22
|
+
name: Bye!
|
|
23
|
+
command: echo "Bye! The custom function has finished its job."
|
|
24
|
+
|
|
25
|
+
functions:
|
|
26
|
+
my_function:
|
|
27
|
+
name: my-function
|
|
28
|
+
path: path/to/my/function/module
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
5. Make sure that the `build` directory is not ignored in your `.gitignore` or `.easignore` file, so it can be used by the custom build process.
|
|
32
|
+
|
|
33
|
+
## Learn more
|
|
34
|
+
|
|
35
|
+
Visit the [EAS Build custom builds documentation](https://docs.expo.dev/preview/custom-build-config/) to learn more about EAS Build custom functions.
|