@doubao-apps/create 0.0.32 → 0.0.33

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.
Files changed (74) hide show
  1. package/dist/{36.js → 421.js} +2 -2
  2. package/dist/cli.js +63 -63
  3. package/dist/index.js +1 -1
  4. package/dist/template-empty/package.json +3 -3
  5. package/dist/template-empty/references/reference/open-api/README.md +0 -32
  6. package/dist/template-empty/references/reference/open-api.md +5 -8930
  7. package/dist/template-starter/package.json +3 -3
  8. package/dist/template-starter/references/reference/open-api/README.md +0 -32
  9. package/dist/template-starter/references/reference/open-api.md +5 -8930
  10. package/package.json +1 -1
  11. package/dist/template-empty/references/reference/open-api/01-/345/237/272/347/241/200-/350/264/246/345/217/267-/347/263/273/347/273/237.md +0 -536
  12. package/dist/template-empty/references/reference/open-api/02-/345/256/232/344/275/215.md +0 -359
  13. package/dist/template-empty/references/reference/open-api/03-/345/255/230/345/202/250.md +0 -409
  14. package/dist/template-empty/references/reference/open-api/04-/350/267/257/347/224/261.md +0 -165
  15. package/dist/template-empty/references/reference/open-api/05-/347/225/214/351/235/242-/344/272/244/344/272/222.md +0 -432
  16. package/dist/template-empty/references/reference/open-api/06-/347/225/214/351/235/242-/350/276/223/345/205/245.md +0 -72
  17. package/dist/template-empty/references/reference/open-api/07-/347/275/221/347/273/234.md +0 -468
  18. package/dist/template-empty/references/reference/open-api/08-/345/252/222/344/275/223.md +0 -346
  19. package/dist/template-empty/references/reference/open-api/09-/345/274/200/346/224/276/350/203/275/345/212/233-/344/270/232/345/212/241/350/203/275/345/212/233.md +0 -1238
  20. package/dist/template-empty/references/reference/open-api/10-/346/225/260/346/215/256/345/210/206/346/236/220.md +0 -67
  21. package/dist/template-empty/references/reference/open-api/11-/350/256/276/345/244/207-/350/223/235/347/211/231.md +0 -961
  22. package/dist/template-empty/references/reference/open-api/12-/350/256/276/345/244/207-wi-fi.md +0 -311
  23. package/dist/template-empty/references/reference/open-api/13-/350/256/276/345/244/207-/345/212/240/351/200/237/345/272/246/350/256/241.md +0 -104
  24. package/dist/template-empty/references/reference/open-api/14-/350/256/276/345/244/207-ibeacon.md +0 -148
  25. package/dist/template-empty/references/reference/open-api/15-/350/256/276/345/244/207-/347/275/227/347/233/230.md +0 -82
  26. package/dist/template-empty/references/reference/open-api/16-/350/256/276/345/244/207-/350/256/276/345/244/207/346/226/271/345/220/221.md +0 -104
  27. package/dist/template-empty/references/reference/open-api/17-/350/256/276/345/244/207-/351/231/200/350/236/272/344/273/252.md +0 -104
  28. package/dist/template-empty/references/reference/open-api/18-ui-/350/276/223/345/205/245.md +0 -49
  29. package/dist/template-empty/references/reference/open-api/19-/350/256/276/345/244/207-/347/275/221/347/273/234.md +0 -164
  30. package/dist/template-empty/references/reference/open-api/20-/350/256/276/345/244/207-/347/237/255/344/277/241.md +0 -62
  31. package/dist/template-empty/references/reference/open-api/21-/350/256/276/345/244/207-/346/227/240/351/232/234/347/242/215.md +0 -43
  32. package/dist/template-empty/references/reference/open-api/22-/350/256/276/345/244/207-/345/237/272/347/241/200/344/277/241/346/201/257.md +0 -133
  33. package/dist/template-empty/references/reference/open-api/23-/350/256/276/345/244/207-/347/224/265/346/261/240.md +0 -83
  34. package/dist/template-empty/references/reference/open-api/24-/350/256/276/345/244/207-/346/227/245/345/216/206.md +0 -215
  35. package/dist/template-empty/references/reference/open-api/25-/350/256/276/345/244/207-/345/211/252/350/264/264/346/235/277.md +0 -70
  36. package/dist/template-empty/references/reference/open-api/26-/350/256/276/345/244/207-/350/201/224/347/263/273/344/272/272.md +0 -270
  37. package/dist/template-empty/references/reference/open-api/27-/350/256/276/345/244/207-/345/212/240/345/257/206.md +0 -56
  38. package/dist/template-empty/references/reference/open-api/28-/350/256/276/345/244/207-/347/224/265/350/257/235.md +0 -41
  39. package/dist/template-empty/references/reference/open-api/29-/350/256/276/345/244/207-/346/211/253/347/240/201.md +0 -100
  40. package/dist/template-empty/references/reference/open-api/30-/350/256/276/345/244/207-/345/261/217/345/271/225.md +0 -173
  41. package/dist/template-empty/references/reference/open-api/31-/350/256/276/345/244/207-/351/234/207/345/212/250.md +0 -66
  42. package/dist/template-empty/references/reference/open-api/32-/346/226/207/344/273/266/347/263/273/347/273/237.md +0 -1043
  43. package/dist/template-starter/references/reference/open-api/01-/345/237/272/347/241/200-/350/264/246/345/217/267-/347/263/273/347/273/237.md +0 -536
  44. package/dist/template-starter/references/reference/open-api/02-/345/256/232/344/275/215.md +0 -359
  45. package/dist/template-starter/references/reference/open-api/03-/345/255/230/345/202/250.md +0 -409
  46. package/dist/template-starter/references/reference/open-api/04-/350/267/257/347/224/261.md +0 -165
  47. package/dist/template-starter/references/reference/open-api/05-/347/225/214/351/235/242-/344/272/244/344/272/222.md +0 -432
  48. package/dist/template-starter/references/reference/open-api/06-/347/225/214/351/235/242-/350/276/223/345/205/245.md +0 -72
  49. package/dist/template-starter/references/reference/open-api/07-/347/275/221/347/273/234.md +0 -468
  50. package/dist/template-starter/references/reference/open-api/08-/345/252/222/344/275/223.md +0 -346
  51. package/dist/template-starter/references/reference/open-api/09-/345/274/200/346/224/276/350/203/275/345/212/233-/344/270/232/345/212/241/350/203/275/345/212/233.md +0 -1238
  52. package/dist/template-starter/references/reference/open-api/10-/346/225/260/346/215/256/345/210/206/346/236/220.md +0 -67
  53. package/dist/template-starter/references/reference/open-api/11-/350/256/276/345/244/207-/350/223/235/347/211/231.md +0 -961
  54. package/dist/template-starter/references/reference/open-api/12-/350/256/276/345/244/207-wi-fi.md +0 -311
  55. package/dist/template-starter/references/reference/open-api/13-/350/256/276/345/244/207-/345/212/240/351/200/237/345/272/246/350/256/241.md +0 -104
  56. package/dist/template-starter/references/reference/open-api/14-/350/256/276/345/244/207-ibeacon.md +0 -148
  57. package/dist/template-starter/references/reference/open-api/15-/350/256/276/345/244/207-/347/275/227/347/233/230.md +0 -82
  58. package/dist/template-starter/references/reference/open-api/16-/350/256/276/345/244/207-/350/256/276/345/244/207/346/226/271/345/220/221.md +0 -104
  59. package/dist/template-starter/references/reference/open-api/17-/350/256/276/345/244/207-/351/231/200/350/236/272/344/273/252.md +0 -104
  60. package/dist/template-starter/references/reference/open-api/18-ui-/350/276/223/345/205/245.md +0 -49
  61. package/dist/template-starter/references/reference/open-api/19-/350/256/276/345/244/207-/347/275/221/347/273/234.md +0 -164
  62. package/dist/template-starter/references/reference/open-api/20-/350/256/276/345/244/207-/347/237/255/344/277/241.md +0 -62
  63. package/dist/template-starter/references/reference/open-api/21-/350/256/276/345/244/207-/346/227/240/351/232/234/347/242/215.md +0 -43
  64. package/dist/template-starter/references/reference/open-api/22-/350/256/276/345/244/207-/345/237/272/347/241/200/344/277/241/346/201/257.md +0 -133
  65. package/dist/template-starter/references/reference/open-api/23-/350/256/276/345/244/207-/347/224/265/346/261/240.md +0 -83
  66. package/dist/template-starter/references/reference/open-api/24-/350/256/276/345/244/207-/346/227/245/345/216/206.md +0 -215
  67. package/dist/template-starter/references/reference/open-api/25-/350/256/276/345/244/207-/345/211/252/350/264/264/346/235/277.md +0 -70
  68. package/dist/template-starter/references/reference/open-api/26-/350/256/276/345/244/207-/350/201/224/347/263/273/344/272/272.md +0 -270
  69. package/dist/template-starter/references/reference/open-api/27-/350/256/276/345/244/207-/345/212/240/345/257/206.md +0 -56
  70. package/dist/template-starter/references/reference/open-api/28-/350/256/276/345/244/207-/347/224/265/350/257/235.md +0 -41
  71. package/dist/template-starter/references/reference/open-api/29-/350/256/276/345/244/207-/346/211/253/347/240/201.md +0 -100
  72. package/dist/template-starter/references/reference/open-api/30-/350/256/276/345/244/207-/345/261/217/345/271/225.md +0 -173
  73. package/dist/template-starter/references/reference/open-api/31-/350/256/276/345/244/207-/351/234/207/345/212/250.md +0 -66
  74. package/dist/template-starter/references/reference/open-api/32-/346/226/207/344/273/266/347/263/273/347/273/237.md +0 -1043
@@ -1,5 +1,5 @@
1
1
  import"node:module";import e from"node:path";import t,{promises as r}from"node:fs";import{execFileSync as a}from"node:child_process";import{fileURLToPath as o}from"node:url";let i=e.join("src","app.config.ts"),n=e.join("src","app.ts");function s(e){return e.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}async function c(t,a,o=""){for(let c of[i,n].map(r=>e.join(t,r))){let e;try{e=await r.readFile(c,"utf8")}catch(e){if(e?.code==="ENOENT")continue;throw e}let t=e.replace("<%= appId %>",s(a)).replace("<%= name %>",s(o));t!==e&&await r.writeFile(c,t,"utf8")}}let l=new Set(["node_modules","dist",".git"]);async function p(t,a,o={}){let{includeAI:i=!0}=o,n=async(t,a)=>{for(let o of(await r.mkdir(a,{recursive:!0}),await r.readdir(t,{withFileTypes:!0}))){let s=e.join(t,o.name),c=e.join(a,o.name);if(o.isDirectory()){if(l.has(o.name)||"references"===o.name&&!i)continue;await n(s,c)}else{if("AGENTS.md"===o.name&&!i)continue;await r.copyFile(s,c)}}};await n(t,a)}let d=new Set([".js",".cjs",".mjs",".ts",".tsx",".jsx",".json",".md",".txt",".scss",".css",".less",".html",".yml",".yaml"]),u=[["@byted-doubao-apps/framework","@doubao-apps/framework"],["@byted-doubao-apps/kit","@doubao-apps/kit"],["@byted-doubao-apps/ai","@doubao-apps/ai"],["@byted-doubao-apps/create","@doubao-apps/create"],["@byted-doubao-apps/taro-runtime","@doubao-apps/taro-runtime"]],f=["doubao.config.ts"],m=["@byted-doubao-apps/deploy","@doubao-apps/deploy"],y=["deploy"],w=["pnpm run deploy","doubao.config.ts","部署到豆包平台"];function h(e){let t=e;for(let[e,r]of u)t=t.replace(RegExp(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),r);return t}async function b(t,a){for(let i of(await r.readdir(t,{withFileTypes:!0}))){var o;let n=e.join(t,i.name);if(function(e){return f.some(t=>t===e)}(i.name)){await r.rm(n,{recursive:!0,force:!0});continue}if(i.isDirectory()){await b(n,a);continue}if(o=i.name,!d.has(e.extname(o))&&"package.json"!==o&&"tsconfig.json"!==o)continue;let s=await r.readFile(n,"utf-8");await r.writeFile(n,function(e,t,r){if("package.json"===e){let e=JSON.parse(h(t));if(e.scripts&&"object"==typeof e.scripts){for(let t of y)delete e.scripts[t];0===Object.keys(e.scripts).length&&delete e.scripts}for(let t of["dependencies","devDependencies","peerDependencies"])if(e[t]&&"object"==typeof e[t]){for(let a of Object.keys(e[t]))m.some(e=>e===a)?delete e[t][a]:a.startsWith("@doubao-apps/")&&(e[t][a]=`^${r}`);0===Object.keys(e[t]).length&&delete e[t]}return`${JSON.stringify(e,null,2)}
2
2
  `}return"README.md"===e||"AGENTS.md"===e?h(t).split("\n").filter(e=>!w.some(t=>e.includes(t))).join("\n"):h(t)}(i.name,s,a))}}function j(e){return e?/[<>:"|?*\x00-\x1F]/.test(e)?{valid:!1,error:"Project name contains invalid characters"}:{valid:!0}:{valid:!1,error:"Project name is required"}}function g(e){return e.trim().toLowerCase().replace(/\s+/g,"-").replace(/^[._]/,"").replace(/[^a-z0-9-~._]+/g,"-")}async function E(r,a){let o=e.join(r,"package.json");if(!t.existsSync(o))throw Error("package.json not found in template");let i=JSON.parse(t.readFileSync(o,"utf-8"));i.name=a,t.writeFileSync(o,`${JSON.stringify(i,null,2)}
3
3
  `)}let N=["starter","empty"],S=[{value:"starter",label:"Starter (default)",hint:"Starter template with example pages"},{value:"empty",label:"Empty",hint:"Minimal template without example pages"}];function $(e){return N.includes(e)}let v=o(import.meta.url),T=e.dirname(v),O={".gitignore":["dist","node_modules",".DS_Store"]};async function k(t){for(let[a,o]of Object.entries(O))await r.writeFile(e.join(t,a),`${o.join("\n")}
4
- `)}async function F(){let t=e.resolve(T,"..","package.json");return JSON.parse(await r.readFile(t,"utf-8")).version??"0.0.1"}async function x(t){let o=e.join(t,".git");if(!await r.stat(o).then(e=>e.isDirectory()).catch(e=>{if(e?.code==="ENOENT")return!1;throw e}))try{a("git",["init"],{cwd:t,stdio:"ignore"})}catch(e){if(e?.code==="ENOENT")return;throw Error(`Failed to initialize git repository: ${t}`,{cause:e})}}async function D({template:t,projectDir:a,public:o=!0,includeAI:i,appId:n,name:s,packageName:l,overwrite:d}){if(!e.isAbsolute(a))throw Error(`Project directory must be an absolute path: ${a}`);if(!$(t))throw Error(`Invalid template: ${t}. Valid options: ${N.join(", ")}`);let u=e.resolve(T,`template-${t}`);try{if(!(await r.stat(u)).isDirectory())throw Error(`Template path is not a directory: ${u}`)}catch(e){if(e?.code==="ENOENT")throw Error(`Template directory not found: ${u}`,{cause:e});throw Error(`Unable to access template directory: ${u}`,{cause:e})}if(await r.stat(a).then(e=>{if(!e.isDirectory())throw Error(`Project path is not a directory: ${a}`);return!0}).catch(e=>{if(e?.code==="ENOENT")return!1;throw Error(`Unable to access project directory: ${a}`,{cause:e})})){if((await r.readdir(a)).length>0&&!d)throw Error(`Project directory is not empty: ${a}`)}else await r.mkdir(a,{recursive:!0});await p(u,a,{includeAI:i}),o&&await b(a,await F()),await k(a),await x(a);let f=l??g(e.basename(a));await E(a,f),await c(a,n??`com.doubao.${f}`,s??"")}export{N as TEMPLATES,S as TEMPLATE_CHOICES,D as create,g as formatProjectName,$ as isValidTemplate,t as node_fs,e as node_path,j as validateProjectName};
5
- //# sourceMappingURL=36.js.map
4
+ `)}async function F(){let t=e.resolve(T,"..","package.json");return JSON.parse(await r.readFile(t,"utf-8")).version??"0.0.1"}async function x(t){let o=e.join(t,".git");if(!await r.stat(o).then(e=>e.isDirectory()).catch(e=>{if(e?.code==="ENOENT")return!1;throw e}))try{a("git",["init"],{cwd:t,stdio:"ignore"})}catch(e){if(e?.code==="ENOENT")return;throw Error(`Failed to initialize git repository: ${t}`,{cause:e})}}async function D({template:t,projectDir:a,public:o=!0,includeAI:i,appId:n,name:s,packageName:l,overwrite:d}){if(!e.isAbsolute(a))throw Error(`Project directory must be an absolute path: ${a}`);if(!$(t))throw Error(`Invalid template: ${t}. Valid options: ${N.join(", ")}`);let u=e.resolve(T,`template-${t}`);try{if(!(await r.stat(u)).isDirectory())throw Error(`Template path is not a directory: ${u}`)}catch(e){if(e?.code==="ENOENT")throw Error(`Template directory not found: ${u}`,{cause:e});throw Error(`Unable to access template directory: ${u}`,{cause:e})}if(await r.stat(a).then(e=>{if(!e.isDirectory())throw Error(`Project path is not a directory: ${a}`);return!0}).catch(e=>{if(e?.code==="ENOENT")return!1;throw Error(`Unable to access project directory: ${a}`,{cause:e})})){if((await r.readdir(a)).length>0&&!d)throw Error(`Project directory is not empty: ${a}`)}else await r.mkdir(a,{recursive:!0});await p(u,a,{includeAI:i}),o&&await b(a,await F()),await k(a),await x(a);let f=l??g(e.basename(a));await E(a,f),await c(a,n??`com.doubao.${f}`,s??"")}export{N as TEMPLATES,S as TEMPLATE_CHOICES,D as create,g as formatProjectName,$ as isValidTemplate,j as validateProjectName};
5
+ //# sourceMappingURL=421.js.map
package/dist/cli.js CHANGED
@@ -1,83 +1,83 @@
1
- import"node:module";import{__webpack_require__ as D}from"./rslib-runtime.js";import{parseArgs as u,stripVTControlCharacters as e}from"node:util";import t,{stdin as r,stdout as s}from"node:process";import F,{clearLine as i,createInterface as o,emitKeypressEvents as C,moveCursor as n}from"node:readline";import{Writable as a}from"node:stream";import{formatProjectName as l,node_path as E,validateProjectName as c,isValidTemplate as h,TEMPLATES as p,TEMPLATE_CHOICES as B,node_fs as m,create as d}from"./36.js";D.add({"../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(D){let u=process||{},e=u.argv||[],t=u.env||{},r=!(t.NO_COLOR||e.includes("--no-color"))&&(!!t.FORCE_COLOR||e.includes("--color")||"win32"===u.platform||(u.stdout||{}).isTTY&&"dumb"!==t.TERM||!!t.CI),s=(D,u,e=D)=>t=>{let r=""+t,s=r.indexOf(u,D.length);return~s?D+F(r,u,e,s)+u:D+r+u},F=(D,u,e,t)=>{let r="",s=0;do r+=D.substring(s,t)+e,s=t+u.length,t=D.indexOf(u,s);while(~t);return r+D.substring(s)},i=(D=r)=>{let u=D?s:()=>String;return{isColorSupported:D,reset:u("\x1b[0m","\x1b[0m"),bold:u("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),dim:u("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),italic:u("\x1b[3m","\x1b[23m"),underline:u("\x1b[4m","\x1b[24m"),inverse:u("\x1b[7m","\x1b[27m"),hidden:u("\x1b[8m","\x1b[28m"),strikethrough:u("\x1b[9m","\x1b[29m"),black:u("\x1b[30m","\x1b[39m"),red:u("\x1b[31m","\x1b[39m"),green:u("\x1b[32m","\x1b[39m"),yellow:u("\x1b[33m","\x1b[39m"),blue:u("\x1b[34m","\x1b[39m"),magenta:u("\x1b[35m","\x1b[39m"),cyan:u("\x1b[36m","\x1b[39m"),white:u("\x1b[37m","\x1b[39m"),gray:u("\x1b[90m","\x1b[39m"),bgBlack:u("\x1b[40m","\x1b[49m"),bgRed:u("\x1b[41m","\x1b[49m"),bgGreen:u("\x1b[42m","\x1b[49m"),bgYellow:u("\x1b[43m","\x1b[49m"),bgBlue:u("\x1b[44m","\x1b[49m"),bgMagenta:u("\x1b[45m","\x1b[49m"),bgCyan:u("\x1b[46m","\x1b[49m"),bgWhite:u("\x1b[47m","\x1b[49m"),blackBright:u("\x1b[90m","\x1b[39m"),redBright:u("\x1b[91m","\x1b[39m"),greenBright:u("\x1b[92m","\x1b[39m"),yellowBright:u("\x1b[93m","\x1b[39m"),blueBright:u("\x1b[94m","\x1b[39m"),magentaBright:u("\x1b[95m","\x1b[39m"),cyanBright:u("\x1b[96m","\x1b[39m"),whiteBright:u("\x1b[97m","\x1b[39m"),bgBlackBright:u("\x1b[100m","\x1b[49m"),bgRedBright:u("\x1b[101m","\x1b[49m"),bgGreenBright:u("\x1b[102m","\x1b[49m"),bgYellowBright:u("\x1b[103m","\x1b[49m"),bgBlueBright:u("\x1b[104m","\x1b[49m"),bgMagentaBright:u("\x1b[105m","\x1b[49m"),bgCyanBright:u("\x1b[106m","\x1b[49m"),bgWhiteBright:u("\x1b[107m","\x1b[49m")}};D.exports=i(),D.exports.createColors=i},"../../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(D){let u={to:(D,u)=>u?`[${u+1};${D+1}H`:`[${D+1}G`,move(D,u){let e="";return D<0?e+=`[${-D}D`:D>0&&(e+=`[${D}C`),u<0?e+=`[${-u}A`:u>0&&(e+=`[${u}B`),e},up:(D=1)=>`[${D}A`,down:(D=1)=>`[${D}B`,forward:(D=1)=>`[${D}C`,backward:(D=1)=>`[${D}D`,nextLine:(D=1)=>"\x1b[E".repeat(D),prevLine:(D=1)=>"\x1b[F".repeat(D),left:"\x1b[G",hide:"\x1b[?25l",show:"\x1b[?25h",save:"\x1b7",restore:"\x1b8"},e={screen:"\x1b[2J",up:(D=1)=>"\x1b[1J".repeat(D),down:(D=1)=>"\x1b[J".repeat(D),line:"\x1b[2K",lineEnd:"\x1b[K",lineStart:"\x1b[1K",lines(D){let e="";for(let t=0;t<D;t++)e+=this.line+(t<D-1?u.up():"");return D&&(e+=u.left),e}};D.exports={cursor:u,scroll:{up:(D=1)=>"\x1b[S".repeat(D),down:(D=1)=>"\x1b[T".repeat(D)},erase:e,beep:"\x07"}}});let g=D("../../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"),b=D("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"),A=function({onlyFirst:D=!1}={}){return RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))",D?void 0:"g")}();function x(D){if("string"!=typeof D)throw TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(A,"")}function f(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}var $={exports:{}},v={};function y(D){return D.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}$.exports=v,v.eastAsianWidth=function(D){var u=D.charCodeAt(0),e=2==D.length?D.charCodeAt(1):0,t=u;return 55296<=u&&u<=56319&&56320<=e&&e<=57343&&(u&=1023,e&=1023,t=(u<<10|e)+65536),12288==t||65281<=t&&t<=65376||65504<=t&&t<=65510?"F":8361==t||65377<=t&&t<=65470||65474<=t&&t<=65479||65482<=t&&t<=65487||65490<=t&&t<=65495||65498<=t&&t<=65500||65512<=t&&t<=65518?"H":4352<=t&&t<=4447||4515<=t&&t<=4519||4602<=t&&t<=4607||9001<=t&&t<=9002||11904<=t&&t<=11929||11931<=t&&t<=12019||12032<=t&&t<=12245||12272<=t&&t<=12283||12289<=t&&t<=12350||12353<=t&&t<=12438||12441<=t&&t<=12543||12549<=t&&t<=12589||12593<=t&&t<=12686||12688<=t&&t<=12730||12736<=t&&t<=12771||12784<=t&&t<=12830||12832<=t&&t<=12871||12880<=t&&t<=13054||13056<=t&&t<=19903||19968<=t&&t<=42124||42128<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||55216<=t&&t<=55238||55243<=t&&t<=55291||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65106||65108<=t&&t<=65126||65128<=t&&t<=65131||110592<=t&&t<=110593||127488<=t&&t<=127490||127504<=t&&t<=127546||127552<=t&&t<=127560||127568<=t&&t<=127569||131072<=t&&t<=194367||177984<=t&&t<=196605||196608<=t&&t<=262141?"W":32<=t&&t<=126||162<=t&&t<=163||165<=t&&t<=166||172==t||175==t||10214<=t&&t<=10221||10629<=t&&t<=10630?"Na":161==t||164==t||167<=t&&t<=168||170==t||173<=t&&t<=174||176<=t&&t<=180||182<=t&&t<=186||188<=t&&t<=191||198==t||208==t||215<=t&&t<=216||222<=t&&t<=225||230==t||232<=t&&t<=234||236<=t&&t<=237||240==t||242<=t&&t<=243||247<=t&&t<=250||252==t||254==t||257==t||273==t||275==t||283==t||294<=t&&t<=295||299==t||305<=t&&t<=307||312==t||319<=t&&t<=322||324==t||328<=t&&t<=331||333==t||338<=t&&t<=339||358<=t&&t<=359||363==t||462==t||464==t||466==t||468==t||470==t||472==t||474==t||476==t||593==t||609==t||708==t||711==t||713<=t&&t<=715||717==t||720==t||728<=t&&t<=731||733==t||735==t||768<=t&&t<=879||913<=t&&t<=929||931<=t&&t<=937||945<=t&&t<=961||963<=t&&t<=969||1025==t||1040<=t&&t<=1103||1105==t||8208==t||8211<=t&&t<=8214||8216<=t&&t<=8217||8220<=t&&t<=8221||8224<=t&&t<=8226||8228<=t&&t<=8231||8240==t||8242<=t&&t<=8243||8245==t||8251==t||8254==t||8308==t||8319==t||8321<=t&&t<=8324||8364==t||8451==t||8453==t||8457==t||8467==t||8470==t||8481<=t&&t<=8482||8486==t||8491==t||8531<=t&&t<=8532||8539<=t&&t<=8542||8544<=t&&t<=8555||8560<=t&&t<=8569||8585==t||8592<=t&&t<=8601||8632<=t&&t<=8633||8658==t||8660==t||8679==t||8704==t||8706<=t&&t<=8707||8711<=t&&t<=8712||8715==t||8719==t||8721==t||8725==t||8730==t||8733<=t&&t<=8736||8739==t||8741==t||8743<=t&&t<=8748||8750==t||8756<=t&&t<=8759||8764<=t&&t<=8765||8776==t||8780==t||8786==t||8800<=t&&t<=8801||8804<=t&&t<=8807||8810<=t&&t<=8811||8814<=t&&t<=8815||8834<=t&&t<=8835||8838<=t&&t<=8839||8853==t||8857==t||8869==t||8895==t||8978==t||9312<=t&&t<=9449||9451<=t&&t<=9547||9552<=t&&t<=9587||9600<=t&&t<=9615||9618<=t&&t<=9621||9632<=t&&t<=9633||9635<=t&&t<=9641||9650<=t&&t<=9651||9654<=t&&t<=9655||9660<=t&&t<=9661||9664<=t&&t<=9665||9670<=t&&t<=9672||9675==t||9678<=t&&t<=9681||9698<=t&&t<=9701||9711==t||9733<=t&&t<=9734||9737==t||9742<=t&&t<=9743||9748<=t&&t<=9749||9756==t||9758==t||9792==t||9794==t||9824<=t&&t<=9825||9827<=t&&t<=9829||9831<=t&&t<=9834||9836<=t&&t<=9837||9839==t||9886<=t&&t<=9887||9918<=t&&t<=9919||9924<=t&&t<=9933||9935<=t&&t<=9953||9955==t||9960<=t&&t<=9983||10045==t||10071==t||10102<=t&&t<=10111||11093<=t&&t<=11097||12872<=t&&t<=12879||57344<=t&&t<=63743||65024<=t&&t<=65039||65533==t||127232<=t&&t<=127242||127248<=t&&t<=127277||127280<=t&&t<=127337||127344<=t&&t<=127386||917760<=t&&t<=917999||983040<=t&&t<=1048573||1048576<=t&&t<=1114109?"A":"N"},v.characterLength=function(D){var u=this.eastAsianWidth(D);return"F"==u||"W"==u||"A"==u?2:1},v.length=function(D){for(var u=y(D),e=0,t=0;t<u.length;t++)e+=this.characterLength(u[t]);return e},v.slice=function(D,u,e){textLen=v.length(D),e=e||1,(u=u||0)<0&&(u=textLen+u),e<0&&(e=textLen+e);for(var t="",r=0,s=y(D),F=0;F<s.length;F++){var i=s[F],o=v.length(i);if(r>=u-(2==o))if(r+o<=e)t+=i;else break;r+=o}return t};let w=f($.exports),_=f(function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uD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DF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C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ECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2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-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g});function M(D,u={}){if("string"!=typeof D||0===D.length||(u={ambiguousIsNarrow:!0,...u},0===(D=x(D)).length))return 0;D=D.replace(_()," ");let e=u.ambiguousIsNarrow?1:2,t=0;for(let u of D){let D=u.codePointAt(0);if(!(D<=31)&&(!(D>=127)||!(D<=159))&&(!(D>=768)||!(D<=879)))switch(w.eastAsianWidth(u)){case"F":case"W":t+=2;break;case"A":t+=e;break;default:t+=1}}return t}let S=(D=0)=>u=>`\x1b[${u+D}m`,T=(D=0)=>u=>`\x1b[${38+D};5;${u}m`,j=(D=0)=>(u,e,t)=>`\x1b[${38+D};2;${u};${e};${t}m`,k={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]}};Object.keys(k.modifier),[...Object.keys(k.color),...Object.keys(k.bgColor)];let I=function(){let D=new Map;for(let[u,e]of Object.entries(k)){for(let[u,t]of Object.entries(e))k[u]={open:`\x1b[${t[0]}m`,close:`\x1b[${t[1]}m`},e[u]=k[u],D.set(t[0],t[1]);Object.defineProperty(k,u,{value:e,enumerable:!1})}return Object.defineProperty(k,"codes",{value:D,enumerable:!1}),k.color.close="\x1b[39m",k.bgColor.close="\x1b[49m",k.color.ansi=S(),k.color.ansi256=T(),k.color.ansi16m=j(),k.bgColor.ansi=S(10),k.bgColor.ansi256=T(10),k.bgColor.ansi16m=j(10),Object.defineProperties(k,{rgbToAnsi256:{value:(D,u,e)=>D===u&&u===e?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(u/255*5)+Math.round(e/255*5),enumerable:!1},hexToRgb:{value:D=>{let u=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!u)return[0,0,0];let[e]=u;3===e.length&&(e=[...e].map(D=>D+D).join(""));let t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,255&t]},enumerable:!1},hexToAnsi256:{value:D=>k.rgbToAnsi256(...k.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value:D=>{let u,e,t;if(D<8)return 30+D;if(D<16)return 90+(D-8);if(D>=232)e=u=((D-232)*10+8)/255,t=u;else{let r=(D-=16)%36;u=Math.floor(D/36)/5,e=Math.floor(r/6)/5,t=r%6/5}let r=2*Math.max(u,e,t);if(0===r)return 30;let s=30+(Math.round(t)<<2|Math.round(e)<<1|Math.round(u));return 2===r&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(D,u,e)=>k.ansi256ToAnsi(k.rgbToAnsi256(D,u,e)),enumerable:!1},hexToAnsi:{value:D=>k.ansi256ToAnsi(k.hexToAnsi256(D)),enumerable:!1}}),k}(),O=new Set(["\x1b","\x9b"]),R="]8;;",L=D=>`${O.values().next().value}[${D}m`,V=D=>`${O.values().next().value}${R}${D}\x07`,N=(D,u,e)=>{let t=[...u],r=!1,s=!1,F=M(x(D[D.length-1]));for(let[u,i]of t.entries()){let o=M(i);if(F+o<=e?D[D.length-1]+=i:(D.push(i),F=0),O.has(i)&&(r=!0,s=t.slice(u+1).join("").startsWith(R)),r){s?"\x07"===i&&(r=!1,s=!1):"m"===i&&(r=!1);continue}(F+=o)===e&&u<t.length-1&&(D.push(""),F=0)}!F&&D[D.length-1].length>0&&D.length>1&&(D[D.length-2]+=D.pop())};function P(D,u,e){return String(D).normalize().replace(/\r\n/g,`
1
+ import"node:module";import D from"node:path";import u from"node:fs";import{parseArgs as e,stripVTControlCharacters as t}from"node:util";import r,{stdin as s,stdout as F}from"node:process";import{Writable as i}from"node:stream";import{__webpack_require__ as o}from"./rslib-runtime.js";import{formatProjectName as C,validateProjectName as n,create as a,isValidTemplate as l,TEMPLATES as E,TEMPLATE_CHOICES as c}from"./421.js";import*as h from"node:readline";o.add({"../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(D){let u=process||{},e=u.argv||[],t=u.env||{},r=!(t.NO_COLOR||e.includes("--no-color"))&&(!!t.FORCE_COLOR||e.includes("--color")||"win32"===u.platform||(u.stdout||{}).isTTY&&"dumb"!==t.TERM||!!t.CI),s=(D,u,e=D)=>t=>{let r=""+t,s=r.indexOf(u,D.length);return~s?D+F(r,u,e,s)+u:D+r+u},F=(D,u,e,t)=>{let r="",s=0;do r+=D.substring(s,t)+e,s=t+u.length,t=D.indexOf(u,s);while(~t);return r+D.substring(s)},i=(D=r)=>{let u=D?s:()=>String;return{isColorSupported:D,reset:u("\x1b[0m","\x1b[0m"),bold:u("\x1b[1m","\x1b[22m","\x1b[22m\x1b[1m"),dim:u("\x1b[2m","\x1b[22m","\x1b[22m\x1b[2m"),italic:u("\x1b[3m","\x1b[23m"),underline:u("\x1b[4m","\x1b[24m"),inverse:u("\x1b[7m","\x1b[27m"),hidden:u("\x1b[8m","\x1b[28m"),strikethrough:u("\x1b[9m","\x1b[29m"),black:u("\x1b[30m","\x1b[39m"),red:u("\x1b[31m","\x1b[39m"),green:u("\x1b[32m","\x1b[39m"),yellow:u("\x1b[33m","\x1b[39m"),blue:u("\x1b[34m","\x1b[39m"),magenta:u("\x1b[35m","\x1b[39m"),cyan:u("\x1b[36m","\x1b[39m"),white:u("\x1b[37m","\x1b[39m"),gray:u("\x1b[90m","\x1b[39m"),bgBlack:u("\x1b[40m","\x1b[49m"),bgRed:u("\x1b[41m","\x1b[49m"),bgGreen:u("\x1b[42m","\x1b[49m"),bgYellow:u("\x1b[43m","\x1b[49m"),bgBlue:u("\x1b[44m","\x1b[49m"),bgMagenta:u("\x1b[45m","\x1b[49m"),bgCyan:u("\x1b[46m","\x1b[49m"),bgWhite:u("\x1b[47m","\x1b[49m"),blackBright:u("\x1b[90m","\x1b[39m"),redBright:u("\x1b[91m","\x1b[39m"),greenBright:u("\x1b[92m","\x1b[39m"),yellowBright:u("\x1b[93m","\x1b[39m"),blueBright:u("\x1b[94m","\x1b[39m"),magentaBright:u("\x1b[95m","\x1b[39m"),cyanBright:u("\x1b[96m","\x1b[39m"),whiteBright:u("\x1b[97m","\x1b[39m"),bgBlackBright:u("\x1b[100m","\x1b[49m"),bgRedBright:u("\x1b[101m","\x1b[49m"),bgGreenBright:u("\x1b[102m","\x1b[49m"),bgYellowBright:u("\x1b[103m","\x1b[49m"),bgBlueBright:u("\x1b[104m","\x1b[49m"),bgMagentaBright:u("\x1b[105m","\x1b[49m"),bgCyanBright:u("\x1b[106m","\x1b[49m"),bgWhiteBright:u("\x1b[107m","\x1b[49m")}};D.exports=i(),D.exports.createColors=i},"../../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(D){let u={to:(D,u)=>u?`[${u+1};${D+1}H`:`[${D+1}G`,move(D,u){let e="";return D<0?e+=`[${-D}D`:D>0&&(e+=`[${D}C`),u<0?e+=`[${-u}A`:u>0&&(e+=`[${u}B`),e},up:(D=1)=>`[${D}A`,down:(D=1)=>`[${D}B`,forward:(D=1)=>`[${D}C`,backward:(D=1)=>`[${D}D`,nextLine:(D=1)=>"\x1b[E".repeat(D),prevLine:(D=1)=>"\x1b[F".repeat(D),left:"\x1b[G",hide:"\x1b[?25l",show:"\x1b[?25h",save:"\x1b7",restore:"\x1b8"},e={screen:"\x1b[2J",up:(D=1)=>"\x1b[1J".repeat(D),down:(D=1)=>"\x1b[J".repeat(D),line:"\x1b[2K",lineEnd:"\x1b[K",lineStart:"\x1b[1K",lines(D){let e="";for(let t=0;t<D;t++)e+=this.line+(t<D-1?u.up():"");return D&&(e+=u.left),e}};D.exports={cursor:u,scroll:{up:(D=1)=>"\x1b[S".repeat(D),down:(D=1)=>"\x1b[T".repeat(D)},erase:e,beep:"\x07"}}});let p=o("../../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"),m=o("../../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"),B=function({onlyFirst:D=!1}={}){return RegExp("[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))",D?void 0:"g")}();function d(D){if("string"!=typeof D)throw TypeError(`Expected a \`string\`, got \`${typeof D}\``);return D.replace(B,"")}function g(D){return D&&D.__esModule&&Object.prototype.hasOwnProperty.call(D,"default")?D.default:D}var b={exports:{}},A={};function x(D){return D.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}b.exports=A,A.eastAsianWidth=function(D){var u=D.charCodeAt(0),e=2==D.length?D.charCodeAt(1):0,t=u;return 55296<=u&&u<=56319&&56320<=e&&e<=57343&&(u&=1023,e&=1023,t=(u<<10|e)+65536),12288==t||65281<=t&&t<=65376||65504<=t&&t<=65510?"F":8361==t||65377<=t&&t<=65470||65474<=t&&t<=65479||65482<=t&&t<=65487||65490<=t&&t<=65495||65498<=t&&t<=65500||65512<=t&&t<=65518?"H":4352<=t&&t<=4447||4515<=t&&t<=4519||4602<=t&&t<=4607||9001<=t&&t<=9002||11904<=t&&t<=11929||11931<=t&&t<=12019||12032<=t&&t<=12245||12272<=t&&t<=12283||12289<=t&&t<=12350||12353<=t&&t<=12438||12441<=t&&t<=12543||12549<=t&&t<=12589||12593<=t&&t<=12686||12688<=t&&t<=12730||12736<=t&&t<=12771||12784<=t&&t<=12830||12832<=t&&t<=12871||12880<=t&&t<=13054||13056<=t&&t<=19903||19968<=t&&t<=42124||42128<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||55216<=t&&t<=55238||55243<=t&&t<=55291||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65106||65108<=t&&t<=65126||65128<=t&&t<=65131||110592<=t&&t<=110593||127488<=t&&t<=127490||127504<=t&&t<=127546||127552<=t&&t<=127560||127568<=t&&t<=127569||131072<=t&&t<=194367||177984<=t&&t<=196605||196608<=t&&t<=262141?"W":32<=t&&t<=126||162<=t&&t<=163||165<=t&&t<=166||172==t||175==t||10214<=t&&t<=10221||10629<=t&&t<=10630?"Na":161==t||164==t||167<=t&&t<=168||170==t||173<=t&&t<=174||176<=t&&t<=180||182<=t&&t<=186||188<=t&&t<=191||198==t||208==t||215<=t&&t<=216||222<=t&&t<=225||230==t||232<=t&&t<=234||236<=t&&t<=237||240==t||242<=t&&t<=243||247<=t&&t<=250||252==t||254==t||257==t||273==t||275==t||283==t||294<=t&&t<=295||299==t||305<=t&&t<=307||312==t||319<=t&&t<=322||324==t||328<=t&&t<=331||333==t||338<=t&&t<=339||358<=t&&t<=359||363==t||462==t||464==t||466==t||468==t||470==t||472==t||474==t||476==t||593==t||609==t||708==t||711==t||713<=t&&t<=715||717==t||720==t||728<=t&&t<=731||733==t||735==t||768<=t&&t<=879||913<=t&&t<=929||931<=t&&t<=937||945<=t&&t<=961||963<=t&&t<=969||1025==t||1040<=t&&t<=1103||1105==t||8208==t||8211<=t&&t<=8214||8216<=t&&t<=8217||8220<=t&&t<=8221||8224<=t&&t<=8226||8228<=t&&t<=8231||8240==t||8242<=t&&t<=8243||8245==t||8251==t||8254==t||8308==t||8319==t||8321<=t&&t<=8324||8364==t||8451==t||8453==t||8457==t||8467==t||8470==t||8481<=t&&t<=8482||8486==t||8491==t||8531<=t&&t<=8532||8539<=t&&t<=8542||8544<=t&&t<=8555||8560<=t&&t<=8569||8585==t||8592<=t&&t<=8601||8632<=t&&t<=8633||8658==t||8660==t||8679==t||8704==t||8706<=t&&t<=8707||8711<=t&&t<=8712||8715==t||8719==t||8721==t||8725==t||8730==t||8733<=t&&t<=8736||8739==t||8741==t||8743<=t&&t<=8748||8750==t||8756<=t&&t<=8759||8764<=t&&t<=8765||8776==t||8780==t||8786==t||8800<=t&&t<=8801||8804<=t&&t<=8807||8810<=t&&t<=8811||8814<=t&&t<=8815||8834<=t&&t<=8835||8838<=t&&t<=8839||8853==t||8857==t||8869==t||8895==t||8978==t||9312<=t&&t<=9449||9451<=t&&t<=9547||9552<=t&&t<=9587||9600<=t&&t<=9615||9618<=t&&t<=9621||9632<=t&&t<=9633||9635<=t&&t<=9641||9650<=t&&t<=9651||9654<=t&&t<=9655||9660<=t&&t<=9661||9664<=t&&t<=9665||9670<=t&&t<=9672||9675==t||9678<=t&&t<=9681||9698<=t&&t<=9701||9711==t||9733<=t&&t<=9734||9737==t||9742<=t&&t<=9743||9748<=t&&t<=9749||9756==t||9758==t||9792==t||9794==t||9824<=t&&t<=9825||9827<=t&&t<=9829||9831<=t&&t<=9834||9836<=t&&t<=9837||9839==t||9886<=t&&t<=9887||9918<=t&&t<=9919||9924<=t&&t<=9933||9935<=t&&t<=9953||9955==t||9960<=t&&t<=9983||10045==t||10071==t||10102<=t&&t<=10111||11093<=t&&t<=11097||12872<=t&&t<=12879||57344<=t&&t<=63743||65024<=t&&t<=65039||65533==t||127232<=t&&t<=127242||127248<=t&&t<=127277||127280<=t&&t<=127337||127344<=t&&t<=127386||917760<=t&&t<=917999||983040<=t&&t<=1048573||1048576<=t&&t<=1114109?"A":"N"},A.characterLength=function(D){var u=this.eastAsianWidth(D);return"F"==u||"W"==u||"A"==u?2:1},A.length=function(D){for(var u=x(D),e=0,t=0;t<u.length;t++)e+=this.characterLength(u[t]);return e},A.slice=function(D,u,e){textLen=A.length(D),e=e||1,(u=u||0)<0&&(u=textLen+u),e<0&&(e=textLen+e);for(var t="",r=0,s=x(D),F=0;F<s.length;F++){var i=s[F],o=A.length(i);if(r>=u-(2==o))if(r+o<=e)t+=i;else break;r+=o}return t};let f=g(b.exports),$=g(function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC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uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\u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CAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g});function v(D,u={}){if("string"!=typeof D||0===D.length||(u={ambiguousIsNarrow:!0,...u},0===(D=d(D)).length))return 0;D=D.replace($()," ");let e=u.ambiguousIsNarrow?1:2,t=0;for(let u of D){let D=u.codePointAt(0);if(!(D<=31)&&(!(D>=127)||!(D<=159))&&(!(D>=768)||!(D<=879)))switch(f.eastAsianWidth(u)){case"F":case"W":t+=2;break;case"A":t+=e;break;default:t+=1}}return t}let y=(D=0)=>u=>`\x1b[${u+D}m`,w=(D=0)=>u=>`\x1b[${38+D};5;${u}m`,_=(D=0)=>(u,e,t)=>`\x1b[${38+D};2;${u};${e};${t}m`,M={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]}};Object.keys(M.modifier),[...Object.keys(M.color),...Object.keys(M.bgColor)];let S=function(){let D=new Map;for(let[u,e]of Object.entries(M)){for(let[u,t]of Object.entries(e))M[u]={open:`\x1b[${t[0]}m`,close:`\x1b[${t[1]}m`},e[u]=M[u],D.set(t[0],t[1]);Object.defineProperty(M,u,{value:e,enumerable:!1})}return Object.defineProperty(M,"codes",{value:D,enumerable:!1}),M.color.close="\x1b[39m",M.bgColor.close="\x1b[49m",M.color.ansi=y(),M.color.ansi256=w(),M.color.ansi16m=_(),M.bgColor.ansi=y(10),M.bgColor.ansi256=w(10),M.bgColor.ansi16m=_(10),Object.defineProperties(M,{rgbToAnsi256:{value:(D,u,e)=>D===u&&u===e?D<8?16:D>248?231:Math.round((D-8)/247*24)+232:16+36*Math.round(D/255*5)+6*Math.round(u/255*5)+Math.round(e/255*5),enumerable:!1},hexToRgb:{value:D=>{let u=/[a-f\d]{6}|[a-f\d]{3}/i.exec(D.toString(16));if(!u)return[0,0,0];let[e]=u;3===e.length&&(e=[...e].map(D=>D+D).join(""));let t=Number.parseInt(e,16);return[t>>16&255,t>>8&255,255&t]},enumerable:!1},hexToAnsi256:{value:D=>M.rgbToAnsi256(...M.hexToRgb(D)),enumerable:!1},ansi256ToAnsi:{value:D=>{let u,e,t;if(D<8)return 30+D;if(D<16)return 90+(D-8);if(D>=232)e=u=((D-232)*10+8)/255,t=u;else{let r=(D-=16)%36;u=Math.floor(D/36)/5,e=Math.floor(r/6)/5,t=r%6/5}let r=2*Math.max(u,e,t);if(0===r)return 30;let s=30+(Math.round(t)<<2|Math.round(e)<<1|Math.round(u));return 2===r&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(D,u,e)=>M.ansi256ToAnsi(M.rgbToAnsi256(D,u,e)),enumerable:!1},hexToAnsi:{value:D=>M.ansi256ToAnsi(M.hexToAnsi256(D)),enumerable:!1}}),M}(),T=new Set(["\x1b","\x9b"]),j="]8;;",k=D=>`${T.values().next().value}[${D}m`,I=D=>`${T.values().next().value}${j}${D}\x07`,O=(D,u,e)=>{let t=[...u],r=!1,s=!1,F=v(d(D[D.length-1]));for(let[u,i]of t.entries()){let o=v(i);if(F+o<=e?D[D.length-1]+=i:(D.push(i),F=0),T.has(i)&&(r=!0,s=t.slice(u+1).join("").startsWith(j)),r){s?"\x07"===i&&(r=!1,s=!1):"m"===i&&(r=!1);continue}(F+=o)===e&&u<t.length-1&&(D.push(""),F=0)}!F&&D[D.length-1].length>0&&D.length>1&&(D[D.length-2]+=D.pop())};function R(D,u,e){return String(D).normalize().replace(/\r\n/g,`
2
2
  `).split(`
3
- `).map(D=>((D,u,e={})=>{if(!1!==e.trim&&""===D.trim())return"";let t="",r,s,F=D.split(" ").map(D=>M(D)),i=[""];for(let[t,r]of D.split(" ").entries()){!1!==e.trim&&(i[i.length-1]=i[i.length-1].trimStart());let D=M(i[i.length-1]);if(0!==t&&(D>=u&&(!1===e.wordWrap||!1===e.trim)&&(i.push(""),D=0),(D>0||!1===e.trim)&&(i[i.length-1]+=" ",D++)),e.hard&&F[t]>u){let e=u-D,s=1+Math.floor((F[t]-e-1)/u);Math.floor((F[t]-1)/u)<s&&i.push(""),N(i,r,u);continue}if(D+F[t]>u&&D>0&&F[t]>0){if(!1===e.wordWrap&&D<u){N(i,r,u);continue}i.push("")}if(D+F[t]>u&&!1===e.wordWrap){N(i,r,u);continue}i[i.length-1]+=r}!1!==e.trim&&(i=i.map(D=>(D=>{let u=D.split(" "),e=u.length;for(;e>0&&!(M(u[e-1])>0);)e--;return e===u.length?D:u.slice(0,e).join(" ")+u.slice(e).join("")})(D)));let o=[...i.join(`
4
- `)];for(let[D,u]of o.entries()){if(t+=u,O.has(u)){let{groups:u}=RegExp(`(?:\\[(?<code>\\d+)m|\\${R}(?<uri>.*)\x07)`).exec(o.slice(D).join(""))||{groups:{}};if(void 0!==u.code){let D=Number.parseFloat(u.code);r=39===D?void 0:D}else void 0!==u.uri&&(s=0===u.uri.length?void 0:u.uri)}let e=I.codes.get(Number(r));o[D+1]===`
5
- `?(s&&(t+=V("")),r&&e&&(t+=L(e))):u===`
6
- `&&(r&&e&&(t+=L(r)),s&&(t+=V(s)))}return t})(D,u,e)).join(`
7
- `)}let W={actions:new Set(["up","down","left","right","space","enter","cancel"]),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["\x03","cancel"],["escape","cancel"]])};function G(D,u){if("string"==typeof D)return W.aliases.get(D)===u;for(let e of D)if(void 0!==e&&G(e,u))return!0;return!1}let z=globalThis.process.platform.startsWith("win"),K=Symbol("clack:cancel");function Y(D,u){D.isTTY&&D.setRawMode(u)}var q=Object.defineProperty,U=(D,u,e)=>{let t;return(t="symbol"!=typeof u?u+"":u)in D?q(D,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):D[t]=e,e};class H{constructor(D,u=!0){U(this,"input"),U(this,"output"),U(this,"_abortSignal"),U(this,"rl"),U(this,"opts"),U(this,"_render"),U(this,"_track",!1),U(this,"_prevFrame",""),U(this,"_subscribers",new Map),U(this,"_cursor",0),U(this,"state","initial"),U(this,"error",""),U(this,"value");let{input:e=r,output:t=s,render:F,signal:i,...o}=D;this.opts=o,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=F.bind(this),this._track=u,this._abortSignal=i,this.input=e,this.output=t}unsubscribe(){this._subscribers.clear()}setSubscriber(D,u){let e=this._subscribers.get(D)??[];e.push(u),this._subscribers.set(D,e)}on(D,u){this.setSubscriber(D,{cb:u})}once(D,u){this.setSubscriber(D,{cb:u,once:!0})}emit(D,...u){let e=this._subscribers.get(D)??[],t=[];for(let D of e)D.cb(...u),D.once&&t.push(()=>e.splice(e.indexOf(D),1));for(let D of t)D()}prompt(){return new Promise((D,u)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),D(K);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let e=new a;e._write=(D,u,e)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),e()},this.input.pipe(e),this.rl=F.createInterface({input:this.input,output:e,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),F.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),void 0!==this.opts.initialValue&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),Y(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(g.cursor.show),this.output.off("resize",this.render),Y(this.input,!1),D(this.value)}),this.once("cancel",()=>{this.output.write(g.cursor.show),this.output.off("resize",this.render),Y(this.input,!1),D(K)})})}onKeypress(D,u){if("error"===this.state&&(this.state="active"),u?.name&&(!this._track&&W.aliases.has(u.name)&&this.emit("cursor",W.aliases.get(u.name)),W.actions.has(u.name)&&this.emit("cursor",u.name)),D&&("y"===D.toLowerCase()||"n"===D.toLowerCase())&&this.emit("confirm","y"===D.toLowerCase())," "===D&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),D&&this.emit("key",D.toLowerCase()),u?.name==="return"){if(this.opts.validate){let D=this.opts.validate(this.value);D&&(this.error=D instanceof Error?D.message:D,this.state="error",this.rl?.write(this.value))}"error"!==this.state&&(this.state="submit")}G([D,u?.name,u?.sequence],"cancel")&&(this.state="cancel"),("submit"===this.state||"cancel"===this.state)&&this.emit("finalize"),this.render(),("submit"===this.state||"cancel"===this.state)&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
8
- `),Y(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let D=P(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
9
- `).length-1;this.output.write(g.cursor.move(-999,-1*D))}render(){let D=P(this._render(this)??"",process.stdout.columns,{hard:!0});if(D!==this._prevFrame){if("initial"===this.state)this.output.write(g.cursor.hide);else{let u=function(D,u){if(D===u)return;let e=D.split(`
3
+ `).map(D=>((D,u,e={})=>{if(!1!==e.trim&&""===D.trim())return"";let t="",r,s,F=D.split(" ").map(D=>v(D)),i=[""];for(let[t,r]of D.split(" ").entries()){!1!==e.trim&&(i[i.length-1]=i[i.length-1].trimStart());let D=v(i[i.length-1]);if(0!==t&&(D>=u&&(!1===e.wordWrap||!1===e.trim)&&(i.push(""),D=0),(D>0||!1===e.trim)&&(i[i.length-1]+=" ",D++)),e.hard&&F[t]>u){let e=u-D,s=1+Math.floor((F[t]-e-1)/u);Math.floor((F[t]-1)/u)<s&&i.push(""),O(i,r,u);continue}if(D+F[t]>u&&D>0&&F[t]>0){if(!1===e.wordWrap&&D<u){O(i,r,u);continue}i.push("")}if(D+F[t]>u&&!1===e.wordWrap){O(i,r,u);continue}i[i.length-1]+=r}!1!==e.trim&&(i=i.map(D=>(D=>{let u=D.split(" "),e=u.length;for(;e>0&&!(v(u[e-1])>0);)e--;return e===u.length?D:u.slice(0,e).join(" ")+u.slice(e).join("")})(D)));let o=[...i.join(`
4
+ `)];for(let[D,u]of o.entries()){if(t+=u,T.has(u)){let{groups:u}=RegExp(`(?:\\[(?<code>\\d+)m|\\${j}(?<uri>.*)\x07)`).exec(o.slice(D).join(""))||{groups:{}};if(void 0!==u.code){let D=Number.parseFloat(u.code);r=39===D?void 0:D}else void 0!==u.uri&&(s=0===u.uri.length?void 0:u.uri)}let e=S.codes.get(Number(r));o[D+1]===`
5
+ `?(s&&(t+=I("")),r&&e&&(t+=k(e))):u===`
6
+ `&&(r&&e&&(t+=k(r)),s&&(t+=I(s)))}return t})(D,u,e)).join(`
7
+ `)}let L={actions:new Set(["up","down","left","right","space","enter","cancel"]),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["\x03","cancel"],["escape","cancel"]])};function V(D,u){if("string"==typeof D)return L.aliases.get(D)===u;for(let e of D)if(void 0!==e&&V(e,u))return!0;return!1}let N=globalThis.process.platform.startsWith("win"),P=Symbol("clack:cancel");function W(D,u){D.isTTY&&D.setRawMode(u)}var G=Object.defineProperty,z=(D,u,e)=>{let t;return(t="symbol"!=typeof u?u+"":u)in D?G(D,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):D[t]=e,e};class K{constructor(D,u=!0){z(this,"input"),z(this,"output"),z(this,"_abortSignal"),z(this,"rl"),z(this,"opts"),z(this,"_render"),z(this,"_track",!1),z(this,"_prevFrame",""),z(this,"_subscribers",new Map),z(this,"_cursor",0),z(this,"state","initial"),z(this,"error",""),z(this,"value");let{input:e=s,output:t=F,render:r,signal:i,...o}=D;this.opts=o,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=r.bind(this),this._track=u,this._abortSignal=i,this.input=e,this.output=t}unsubscribe(){this._subscribers.clear()}setSubscriber(D,u){let e=this._subscribers.get(D)??[];e.push(u),this._subscribers.set(D,e)}on(D,u){this.setSubscriber(D,{cb:u})}once(D,u){this.setSubscriber(D,{cb:u,once:!0})}emit(D,...u){let e=this._subscribers.get(D)??[],t=[];for(let D of e)D.cb(...u),D.once&&t.push(()=>e.splice(e.indexOf(D),1));for(let D of t)D()}prompt(){return new Promise((D,u)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),D(P);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let e=new i;e._write=(D,u,e)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),e()},this.input.pipe(e),this.rl=h.default.createInterface({input:this.input,output:e,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),h.default.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),void 0!==this.opts.initialValue&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),W(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(p.cursor.show),this.output.off("resize",this.render),W(this.input,!1),D(this.value)}),this.once("cancel",()=>{this.output.write(p.cursor.show),this.output.off("resize",this.render),W(this.input,!1),D(P)})})}onKeypress(D,u){if("error"===this.state&&(this.state="active"),u?.name&&(!this._track&&L.aliases.has(u.name)&&this.emit("cursor",L.aliases.get(u.name)),L.actions.has(u.name)&&this.emit("cursor",u.name)),D&&("y"===D.toLowerCase()||"n"===D.toLowerCase())&&this.emit("confirm","y"===D.toLowerCase())," "===D&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),D&&this.emit("key",D.toLowerCase()),u?.name==="return"){if(this.opts.validate){let D=this.opts.validate(this.value);D&&(this.error=D instanceof Error?D.message:D,this.state="error",this.rl?.write(this.value))}"error"!==this.state&&(this.state="submit")}V([D,u?.name,u?.sequence],"cancel")&&(this.state="cancel"),("submit"===this.state||"cancel"===this.state)&&this.emit("finalize"),this.render(),("submit"===this.state||"cancel"===this.state)&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
8
+ `),W(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let D=R(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
9
+ `).length-1;this.output.write(p.cursor.move(-999,-1*D))}render(){let D=R(this._render(this)??"",process.stdout.columns,{hard:!0});if(D!==this._prevFrame){if("initial"===this.state)this.output.write(p.cursor.hide);else{let u=function(D,u){if(D===u)return;let e=D.split(`
10
10
  `),t=u.split(`
11
- `),r=[];for(let D=0;D<Math.max(e.length,t.length);D++)e[D]!==t[D]&&r.push(D);return r}(this._prevFrame,D);if(this.restoreCursor(),u&&u?.length===1){let e=u[0];this.output.write(g.cursor.move(0,e)),this.output.write(g.erase.lines(1));let t=D.split(`
12
- `);this.output.write(t[e]),this._prevFrame=D,this.output.write(g.cursor.move(0,t.length-e-1));return}if(u&&u?.length>1){let e=u[0];this.output.write(g.cursor.move(0,e)),this.output.write(g.erase.down());let t=D.split(`
11
+ `),r=[];for(let D=0;D<Math.max(e.length,t.length);D++)e[D]!==t[D]&&r.push(D);return r}(this._prevFrame,D);if(this.restoreCursor(),u&&u?.length===1){let e=u[0];this.output.write(p.cursor.move(0,e)),this.output.write(p.erase.lines(1));let t=D.split(`
12
+ `);this.output.write(t[e]),this._prevFrame=D,this.output.write(p.cursor.move(0,t.length-e-1));return}if(u&&u?.length>1){let e=u[0];this.output.write(p.cursor.move(0,e)),this.output.write(p.erase.down());let t=D.split(`
13
13
  `).slice(e);this.output.write(t.join(`
14
- `)),this._prevFrame=D;return}this.output.write(g.erase.down())}this.output.write(D),"initial"===this.state&&(this.state="active"),this._prevFrame=D}}}class J extends H{get cursor(){return+!this.value}get _value(){return 0===this.cursor}constructor(D){super(D,!1),this.value=!!D.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",D=>{this.output.write(g.cursor.move(0,-1)),this.value=D,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}new WeakMap;var Z=Object.defineProperty,Q=(D,u,e)=>{let t;return(t="symbol"!=typeof u?u+"":u)in D?Z(D,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):D[t]=e,e};class X extends H{constructor(D){super(D,!1),Q(this,"options"),Q(this,"cursor",0),this.options=D.options,this.cursor=this.options.findIndex(({value:u})=>u===D.initialValue),-1===this.cursor&&(this.cursor=0),this.changeValue(),this.on("cursor",D=>{switch(D){case"left":case"up":this.cursor=0===this.cursor?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}}class DD extends H{get valueWithCursor(){if("submit"===this.state)return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let D=this.value.slice(0,this.cursor),[u,...e]=this.value.slice(this.cursor);return`${D}${b.inverse(u)}${e.join("")}`}get cursor(){return this._cursor}constructor(D){super(D),this.on("finalize",()=>{this.value||(this.value=D.defaultValue)})}}let Du="win32"!==t.platform?"linux"!==t.env.TERM:!!t.env.CI||!!t.env.WT_SESSION||!!t.env.TERMINUS_SUBLIME||"{cmd::Cmder}"===t.env.ConEmuTask||"Terminus-Sublime"===t.env.TERM_PROGRAM||"vscode"===t.env.TERM_PROGRAM||"xterm-256color"===t.env.TERM||"alacritty"===t.env.TERM||"JetBrains-JediTerm"===t.env.TERMINAL_EMULATOR,De=(D,u)=>Du?D:u,Dt=De("◆","*"),Dr=De("■","x"),Ds=De("▲","x"),DF=De("◇","o"),Di=De("┌","T"),Do=De("│","|"),DC=De("└","—"),Dn=De("●",">"),Da=De("○"," "),Dl=(De("◻","[•]"),De("◼","[+]"),De("◻","[ ]"),De("▪","•"),De("─","-")),DE=De("╮","+"),Dc=De("├","+"),Dh=De("╯","+"),Dp=De("●","•"),DB=De("◆","*"),Dm=De("▲","!"),Dd=De("■","x"),Dg=D=>{switch(D){case"initial":case"active":return b.cyan(Dt);case"cancel":return b.red(Dr);case"error":return b.yellow(Ds);case"submit":return b.green(DF)}},Db=D=>new DD({validate:D.validate,placeholder:D.placeholder,defaultValue:D.defaultValue,initialValue:D.initialValue,render(){let u=`${b.gray(Do)}
15
- ${Dg(this.state)} ${D.message}
16
- `,e=D.placeholder?b.inverse(D.placeholder[0])+b.dim(D.placeholder.slice(1)):b.inverse(b.hidden("_")),t=this.value?this.valueWithCursor:e;switch(this.state){case"error":return`${u.trim()}
17
- ${b.yellow(Do)} ${t}
18
- ${b.yellow(DC)} ${b.yellow(this.error)}
19
- `;case"submit":return`${u}${b.gray(Do)} ${b.dim(this.value||D.placeholder)}`;case"cancel":return`${u}${b.gray(Do)} ${b.strikethrough(b.dim(this.value??""))}${this.value?.trim()?`
20
- ${b.gray(Do)}`:""}`;default:return`${u}${b.cyan(Do)} ${t}
21
- ${b.cyan(DC)}
22
- `}}}).prompt(),DA=D=>{let u=D.active??"Yes",e=D.inactive??"No";return new J({active:u,inactive:e,initialValue:D.initialValue??!0,render(){let t=`${b.gray(Do)}
23
- ${Dg(this.state)} ${D.message}
24
- `,r=this.value?u:e;switch(this.state){case"submit":return`${t}${b.gray(Do)} ${b.dim(r)}`;case"cancel":return`${t}${b.gray(Do)} ${b.strikethrough(b.dim(r))}
25
- ${b.gray(Do)}`;default:return`${t}${b.cyan(Do)} ${this.value?`${b.green(Dn)} ${u}`:`${b.dim(Da)} ${b.dim(u)}`} ${b.dim("/")} ${this.value?`${b.dim(Da)} ${b.dim(e)}`:`${b.green(Dn)} ${e}`}
26
- ${b.cyan(DC)}
27
- `}}}).prompt()},Dx=(D="",u="")=>{let t=`
14
+ `)),this._prevFrame=D;return}this.output.write(p.erase.down())}this.output.write(D),"initial"===this.state&&(this.state="active"),this._prevFrame=D}}}class Y extends K{get cursor(){return+!this.value}get _value(){return 0===this.cursor}constructor(D){super(D,!1),this.value=!!D.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",D=>{this.output.write(p.cursor.move(0,-1)),this.value=D,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}new WeakMap;var q=Object.defineProperty,U=(D,u,e)=>{let t;return(t="symbol"!=typeof u?u+"":u)in D?q(D,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):D[t]=e,e};class H extends K{constructor(D){super(D,!1),U(this,"options"),U(this,"cursor",0),this.options=D.options,this.cursor=this.options.findIndex(({value:u})=>u===D.initialValue),-1===this.cursor&&(this.cursor=0),this.changeValue(),this.on("cursor",D=>{switch(D){case"left":case"up":this.cursor=0===this.cursor?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}}class J extends K{get valueWithCursor(){if("submit"===this.state)return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let D=this.value.slice(0,this.cursor),[u,...e]=this.value.slice(this.cursor);return`${D}${m.inverse(u)}${e.join("")}`}get cursor(){return this._cursor}constructor(D){super(D),this.on("finalize",()=>{this.value||(this.value=D.defaultValue)})}}let Z="win32"!==r.platform?"linux"!==r.env.TERM:!!r.env.CI||!!r.env.WT_SESSION||!!r.env.TERMINUS_SUBLIME||"{cmd::Cmder}"===r.env.ConEmuTask||"Terminus-Sublime"===r.env.TERM_PROGRAM||"vscode"===r.env.TERM_PROGRAM||"xterm-256color"===r.env.TERM||"alacritty"===r.env.TERM||"JetBrains-JediTerm"===r.env.TERMINAL_EMULATOR,Q=(D,u)=>Z?D:u,X=Q("◆","*"),DD=Q("■","x"),Du=Q("▲","x"),De=Q("◇","o"),Dt=Q("┌","T"),Dr=Q("│","|"),Ds=Q("└","—"),DF=Q("●",">"),Di=Q("○"," "),Do=(Q("◻","[•]"),Q("◼","[+]"),Q("◻","[ ]"),Q("▪","•"),Q("─","-")),DC=Q("╮","+"),Dn=Q("├","+"),Da=Q("╯","+"),Dl=Q("●","•"),DE=Q("◆","*"),Dc=Q("▲","!"),Dh=Q("■","x"),Dp=D=>{switch(D){case"initial":case"active":return m.cyan(X);case"cancel":return m.red(DD);case"error":return m.yellow(Du);case"submit":return m.green(De)}},Dm=D=>new J({validate:D.validate,placeholder:D.placeholder,defaultValue:D.defaultValue,initialValue:D.initialValue,render(){let u=`${m.gray(Dr)}
15
+ ${Dp(this.state)} ${D.message}
16
+ `,e=D.placeholder?m.inverse(D.placeholder[0])+m.dim(D.placeholder.slice(1)):m.inverse(m.hidden("_")),t=this.value?this.valueWithCursor:e;switch(this.state){case"error":return`${u.trim()}
17
+ ${m.yellow(Dr)} ${t}
18
+ ${m.yellow(Ds)} ${m.yellow(this.error)}
19
+ `;case"submit":return`${u}${m.gray(Dr)} ${m.dim(this.value||D.placeholder)}`;case"cancel":return`${u}${m.gray(Dr)} ${m.strikethrough(m.dim(this.value??""))}${this.value?.trim()?`
20
+ ${m.gray(Dr)}`:""}`;default:return`${u}${m.cyan(Dr)} ${t}
21
+ ${m.cyan(Ds)}
22
+ `}}}).prompt(),DB=D=>{let u=D.active??"Yes",e=D.inactive??"No";return new Y({active:u,inactive:e,initialValue:D.initialValue??!0,render(){let t=`${m.gray(Dr)}
23
+ ${Dp(this.state)} ${D.message}
24
+ `,r=this.value?u:e;switch(this.state){case"submit":return`${t}${m.gray(Dr)} ${m.dim(r)}`;case"cancel":return`${t}${m.gray(Dr)} ${m.strikethrough(m.dim(r))}
25
+ ${m.gray(Dr)}`;default:return`${t}${m.cyan(Dr)} ${this.value?`${m.green(DF)} ${u}`:`${m.dim(Di)} ${m.dim(u)}`} ${m.dim("/")} ${this.value?`${m.dim(Di)} ${m.dim(e)}`:`${m.green(DF)} ${e}`}
26
+ ${m.cyan(Ds)}
27
+ `}}}).prompt()},Dd=(D="",u="")=>{let e=`
28
28
  ${D}
29
29
  `.split(`
30
- `),r=e(u).length,s=Math.max(t.reduce((D,u)=>{let t=e(u);return t.length>D?t.length:D},0),r)+2,F=t.map(D=>`${b.gray(Do)} ${b.dim(D)}${" ".repeat(s-e(D).length)}${b.gray(Do)}`).join(`
31
- `);process.stdout.write(`${b.gray(Do)}
32
- ${b.green(DF)} ${b.reset(u)} ${b.gray(Dl.repeat(Math.max(s-r-1,1))+DE)}
30
+ `),r=t(u).length,s=Math.max(e.reduce((D,u)=>{let e=t(u);return e.length>D?e.length:D},0),r)+2,F=e.map(D=>`${m.gray(Dr)} ${m.dim(D)}${" ".repeat(s-t(D).length)}${m.gray(Dr)}`).join(`
31
+ `);process.stdout.write(`${m.gray(Dr)}
32
+ ${m.green(De)} ${m.reset(u)} ${m.gray(Do.repeat(Math.max(s-r-1,1))+DC)}
33
33
  ${F}
34
- ${b.gray(Dc+Dl.repeat(s+2)+Dh)}
35
- `)},Df=(D="")=>{process.stdout.write(`${b.gray(DC)} ${b.red(D)}
34
+ ${m.gray(Dn+Do.repeat(s+2)+Da)}
35
+ `)},Dg=(D="")=>{process.stdout.write(`${m.gray(Ds)} ${m.red(D)}
36
36
 
37
- `)},D$={message:(D="",{symbol:u=b.gray(Do)}={})=>{let e=[`${b.gray(Do)}`];if(D){let[t,...r]=D.split(`
38
- `);e.push(`${u} ${t}`,...r.map(D=>`${b.gray(Do)} ${D}`))}process.stdout.write(`${e.join(`
37
+ `)},Db={message:(D="",{symbol:u=m.gray(Dr)}={})=>{let e=[`${m.gray(Dr)}`];if(D){let[t,...r]=D.split(`
38
+ `);e.push(`${u} ${t}`,...r.map(D=>`${m.gray(Dr)} ${D}`))}process.stdout.write(`${e.join(`
39
39
  `)}
40
- `)},info:D=>{D$.message(D,{symbol:b.blue(Dp)})},success:D=>{D$.message(D,{symbol:b.green(DB)})},step:D=>{D$.message(D,{symbol:b.green(DF)})},warn:D=>{D$.message(D,{symbol:b.yellow(Dm)})},warning:D=>{D$.warn(D)},error:D=>{D$.message(D,{symbol:b.red(Dd)})}};async function Dv({packageScope:D,public:e}){var t,F,a,A;let x=process.stdout.isTTY;x&&(console.clear(),((D="")=>{process.stdout.write(`${b.gray(Di)} ${D}
41
- `)})(b.bgCyan(b.black(" create-doubao-apps "))));let{values:f,positionals:$}=u({args:process.argv.slice(2),options:{template:{type:"string",short:"t"},name:{type:"string"},help:{type:"boolean",short:"h"},yes:{type:"boolean",short:"y"},force:{type:"boolean",short:"f"}},allowPositionals:!0}),v=!0===f.yes;f.help&&(t=D,console.log(`
42
- ${b.bold("Usage:")}
43
- npm create ${t} [project-directory] [options]
44
- pnpm create ${t} [project-directory] [options]
40
+ `)},info:D=>{Db.message(D,{symbol:m.blue(Dl)})},success:D=>{Db.message(D,{symbol:m.green(DE)})},step:D=>{Db.message(D,{symbol:m.green(De)})},warn:D=>{Db.message(D,{symbol:m.yellow(Dc)})},warning:D=>{Db.warn(D)},error:D=>{Db.message(D,{symbol:m.red(Dh)})}};async function DA({packageScope:t,public:r}){var i,o,B,d;let g=process.stdout.isTTY;g&&(console.clear(),((D="")=>{process.stdout.write(`${m.gray(Dt)} ${D}
41
+ `)})(m.bgCyan(m.black(" create-doubao-apps "))));let{values:b,positionals:A}=e({args:process.argv.slice(2),options:{template:{type:"string",short:"t"},name:{type:"string"},help:{type:"boolean",short:"h"},yes:{type:"boolean",short:"y"},force:{type:"boolean",short:"f"}},allowPositionals:!0}),x=!0===b.yes;b.help&&(i=t,console.log(`
42
+ ${m.bold("Usage:")}
43
+ npm create ${i} [project-directory] [options]
44
+ pnpm create ${i} [project-directory] [options]
45
45
 
46
- ${b.bold("Options:")}
46
+ ${m.bold("Options:")}
47
47
  -t, --template <name> Template to use (starter, empty) [default: starter]
48
48
  --name <name> Configure aiMeta.name in src/app.ts
49
49
  -y, --yes Skip all prompts and use default values (quick mode)
50
50
  -f, --force Overwrite if the target directory is not empty
51
51
  -h, --help Show this help message
52
52
 
53
- ${b.bold("Examples:")}
54
- npm create ${t} my-app
55
- npm create ${t} my-app --name "My App"
56
- npm create ${t} my-app --template empty
57
- npm create ${t} my-app --template empty -y
58
- npm create ${t} . -y --force
59
- pnpm create ${t}
60
- `),process.exit(0));let y=$[0];if(y){let D=c(y);D.valid||(D$.error(D.error||"Invalid project directory"),process.exit(1))}else{v&&(D$.error("Project directory is required in quick mode. Use: create-doubao-apps <project-directory> [options]"),process.exit(1));let D=await Db({message:"Project directory:",placeholder:"my-doubao-app",validate:D=>{if(!D)return"Project directory is required";let u=c(D);if(!u.valid)return u.error||"Invalid project name"}});D===K&&(Df("Operation cancelled"),process.exit(0)),y=D}let w=E.resolve(process.cwd(),y),_=!1;if(m.existsSync(w)&&m.readdirSync(w).length>0)if(f.force)_=!0;else if(v)D$.error(`Directory ${b.cyan(y)} is not empty. Aborting.`),process.exit(1);else{let D=await DA({message:`Directory ${b.cyan(y)} is not empty. Continue?`});D!==K&&D||(Df("Operation cancelled"),process.exit(0)),_=!0}let M="starter";if(f.template)h(f.template)||(D$.error(`Invalid template: ${f.template}. Valid options: ${p.join(", ")}`),process.exit(1)),M=f.template;else if(!v){let D,u=await (F={message:"Select a template:",options:[...B],initialValue:"starter"},D=(D,u)=>{let e=D.label??String(D.value);switch(u){case"selected":return`${b.dim(e)}`;case"active":return`${b.green(Dn)} ${e} ${D.hint?b.dim(`(${D.hint})`):""}`;case"cancelled":return`${b.strikethrough(b.dim(e))}`;default:return`${b.dim(Da)} ${b.dim(e)}`}},new X({options:F.options,initialValue:F.initialValue,render(){let u=`${b.gray(Do)}
61
- ${Dg(this.state)} ${F.message}
62
- `;switch(this.state){case"submit":return`${u}${b.gray(Do)} ${D(this.options[this.cursor],"selected")}`;case"cancel":return`${u}${b.gray(Do)} ${D(this.options[this.cursor],"cancelled")}
63
- ${b.gray(Do)}`;default:return`${u}${b.cyan(Do)} ${(D=>{let{cursor:u,options:e,style:t}=D,r=D.maxItems??1/0,s=Math.min(Math.max(process.stdout.rows-4,0),Math.max(r,5)),F=0;u>=0+s-3?F=Math.max(Math.min(u-s+3,e.length-s),0):u<F+2&&(F=Math.max(u-2,0));let i=s<e.length&&F>0,o=s<e.length&&F+s<e.length;return e.slice(F,F+s).map((D,e,r)=>{let s=e===r.length-1&&o;return 0===e&&i||s?b.dim("..."):t(D,e+F===u)})})({cursor:this.cursor,options:this.options,maxItems:F.maxItems,style:(u,e)=>D(u,e?"active":"inactive")}).join(`
64
- ${b.cyan(Do)} `)}
65
- ${b.cyan(DC)}
66
- `}}}).prompt());u===K&&(Df("Operation cancelled"),process.exit(0)),M=u}let S=l(E.basename(w)),T=S;if(!v&&x){let D=await Db({message:`Package name: ${b.dim(`(${S})`)}`,placeholder:S,defaultValue:S,validate:D=>{let u=D||S;if(!/^[@a-z0-9-~][a-z0-9-._~]*$/.test(u))return"Invalid package name"}});D===K&&(Df("Operation cancelled"),process.exit(0)),T=D||S}let j=`com.doubao.${S}`,k=j;if(!v&&x){let D=await Db({message:`appId: ${b.dim(`(${j})`)}`,placeholder:j,defaultValue:j,validate:D=>{let u=D||j;if(!/^[a-z0-9][a-z0-9._-]*$/i.test(u))return"Invalid appId"}});D===K&&(Df("Operation cancelled"),process.exit(0)),k=D||j}let I=!1;if(!v&&x){let D=await DA({message:"Include AI development knowledge base?",initialValue:!1});D===K&&(Df("Operation cancelled"),process.exit(0)),I=D}let O=null;try{x?(O=(({indicator:D="dots"}={})=>{let u=Du?["◒","◐","◓","◑"]:["•","o","O","0"],e=Du?80:120,t="true"===process.env.CI,F,a,l=!1,E="",c,h=performance.now(),p=D=>{l&&x(D>1?"Something went wrong":"Canceled",D)},B=()=>p(2),m=()=>p(1),d=()=>{if(void 0===c)return;t&&process.stdout.write(`
67
- `);let D=c.split(`
68
- `);process.stdout.write(g.cursor.move(-999,D.length-1)),process.stdout.write(g.erase.down(D.length))},A=D=>{let u=(performance.now()-D)/1e3,e=Math.floor(u/60),t=Math.floor(u%60);return e>0?`[${e}m ${t}s]`:`[${t}s]`},x=(u="",e=0)=>{l=!1,clearInterval(a),d();let t=0===e?b.green(DF):1===e?b.red(Dr):b.red(Ds);E=(u??E).replace(/\.+$/,""),"timer"===D?process.stdout.write(`${t} ${E} ${A(h)}
69
- `):process.stdout.write(`${t} ${E}
70
- `),process.removeListener("uncaughtExceptionMonitor",B),process.removeListener("unhandledRejection",B),process.removeListener("SIGINT",m),process.removeListener("SIGTERM",m),process.removeListener("exit",p),F()};return{start:(x="")=>{l=!0,F=function({input:D=r,output:u=s,overwrite:e=!0,hideCursor:t=!0}={}){let F=o({input:D,output:u,prompt:"",tabSize:1});C(D,F),D.isTTY&&D.setRawMode(!0);let a=(r,{name:s,sequence:F})=>{if(G([String(r),s,F],"cancel")){t&&u.write(g.cursor.show),process.exit(0);return}e&&n(u,"return"===s?0:-1,"return"===s?-1:0,()=>{i(u,1,()=>{D.once("keypress",a)})})};return t&&u.write(g.cursor.hide),D.once("keypress",a),()=>{D.off("keypress",a),t&&u.write(g.cursor.show),D.isTTY&&!z&&D.setRawMode(!1),F.terminal=!1,F.close()}}(),E=x.replace(/\.+$/,""),h=performance.now(),process.stdout.write(`${b.gray(Do)}
71
- `);let f=0,$=0;process.on("uncaughtExceptionMonitor",B),process.on("unhandledRejection",B),process.on("SIGINT",m),process.on("SIGTERM",m),process.on("exit",p),a=setInterval(()=>{if(t&&E===c)return;d(),c=E;let e=b.magenta(u[f]);if(t)process.stdout.write(`${e} ${E}...`);else if("timer"===D)process.stdout.write(`${e} ${E} ${A(h)}`);else{let D=".".repeat(Math.floor($)).slice(0,3);process.stdout.write(`${e} ${E}${D}`)}f=f+1<u.length?f+1:0,$=$<u.length?$+.125:0},e)},stop:x,message:(D="")=>{E=(D??E).replace(/\.+$/,"")}}})()).start("Creating project..."):console.log("Creating project..."),await d({template:M,projectDir:w,public:e,includeAI:I,appId:k,name:f.name??"",packageName:T,overwrite:_}),x&&O?(O.stop("Project created successfully!"),Dx(`cd ${y}
53
+ ${m.bold("Examples:")}
54
+ npm create ${i} my-app
55
+ npm create ${i} my-app --name "My App"
56
+ npm create ${i} my-app --template empty
57
+ npm create ${i} my-app --template empty -y
58
+ npm create ${i} . -y --force
59
+ pnpm create ${i}
60
+ `),process.exit(0));let f=A[0];if(f){let D=n(f);D.valid||(Db.error(D.error||"Invalid project directory"),process.exit(1))}else{x&&(Db.error("Project directory is required in quick mode. Use: create-doubao-apps <project-directory> [options]"),process.exit(1));let D=await Dm({message:"Project directory:",placeholder:"my-doubao-app",validate:D=>{if(!D)return"Project directory is required";let u=n(D);if(!u.valid)return u.error||"Invalid project name"}});D===P&&(Dg("Operation cancelled"),process.exit(0)),f=D}let $=D.resolve(process.cwd(),f),v=!1;if(u.existsSync($)&&u.readdirSync($).length>0)if(b.force)v=!0;else if(x)Db.error(`Directory ${m.cyan(f)} is not empty. Aborting.`),process.exit(1);else{let D=await DB({message:`Directory ${m.cyan(f)} is not empty. Continue?`});D!==P&&D||(Dg("Operation cancelled"),process.exit(0)),v=!0}let y="starter";if(b.template)l(b.template)||(Db.error(`Invalid template: ${b.template}. Valid options: ${E.join(", ")}`),process.exit(1)),y=b.template;else if(!x){let D,u=await (o={message:"Select a template:",options:[...c],initialValue:"starter"},D=(D,u)=>{let e=D.label??String(D.value);switch(u){case"selected":return`${m.dim(e)}`;case"active":return`${m.green(DF)} ${e} ${D.hint?m.dim(`(${D.hint})`):""}`;case"cancelled":return`${m.strikethrough(m.dim(e))}`;default:return`${m.dim(Di)} ${m.dim(e)}`}},new H({options:o.options,initialValue:o.initialValue,render(){let u=`${m.gray(Dr)}
61
+ ${Dp(this.state)} ${o.message}
62
+ `;switch(this.state){case"submit":return`${u}${m.gray(Dr)} ${D(this.options[this.cursor],"selected")}`;case"cancel":return`${u}${m.gray(Dr)} ${D(this.options[this.cursor],"cancelled")}
63
+ ${m.gray(Dr)}`;default:return`${u}${m.cyan(Dr)} ${(D=>{let{cursor:u,options:e,style:t}=D,r=D.maxItems??1/0,s=Math.min(Math.max(process.stdout.rows-4,0),Math.max(r,5)),F=0;u>=0+s-3?F=Math.max(Math.min(u-s+3,e.length-s),0):u<F+2&&(F=Math.max(u-2,0));let i=s<e.length&&F>0,o=s<e.length&&F+s<e.length;return e.slice(F,F+s).map((D,e,r)=>{let s=e===r.length-1&&o;return 0===e&&i||s?m.dim("..."):t(D,e+F===u)})})({cursor:this.cursor,options:this.options,maxItems:o.maxItems,style:(u,e)=>D(u,e?"active":"inactive")}).join(`
64
+ ${m.cyan(Dr)} `)}
65
+ ${m.cyan(Ds)}
66
+ `}}}).prompt());u===P&&(Dg("Operation cancelled"),process.exit(0)),y=u}let w=C(D.basename($)),_=w;if(!x&&g){let D=await Dm({message:`Package name: ${m.dim(`(${w})`)}`,placeholder:w,defaultValue:w,validate:D=>{let u=D||w;if(!/^[@a-z0-9-~][a-z0-9-._~]*$/.test(u))return"Invalid package name"}});D===P&&(Dg("Operation cancelled"),process.exit(0)),_=D||w}let M=`com.doubao.${w}`,S=M;if(!x&&g){let D=await Dm({message:`appId: ${m.dim(`(${M})`)}`,placeholder:M,defaultValue:M,validate:D=>{let u=D||M;if(!/^[a-z0-9][a-z0-9._-]*$/i.test(u))return"Invalid appId"}});D===P&&(Dg("Operation cancelled"),process.exit(0)),S=D||M}let T=!1;if(!x&&g){let D=await DB({message:"Include AI development knowledge base?",initialValue:!1});D===P&&(Dg("Operation cancelled"),process.exit(0)),T=D}let j=null;try{g?(j=(({indicator:D="dots"}={})=>{let u=Z?["◒","◐","◓","◑"]:["•","o","O","0"],e=Z?80:120,t="true"===process.env.CI,r,i,o=!1,C="",n,a=performance.now(),l=D=>{o&&g(D>1?"Something went wrong":"Canceled",D)},E=()=>l(2),c=()=>l(1),B=()=>{if(void 0===n)return;t&&process.stdout.write(`
67
+ `);let D=n.split(`
68
+ `);process.stdout.write(p.cursor.move(-999,D.length-1)),process.stdout.write(p.erase.down(D.length))},d=D=>{let u=(performance.now()-D)/1e3,e=Math.floor(u/60),t=Math.floor(u%60);return e>0?`[${e}m ${t}s]`:`[${t}s]`},g=(u="",e=0)=>{o=!1,clearInterval(i),B();let t=0===e?m.green(De):1===e?m.red(DD):m.red(Du);C=(u??C).replace(/\.+$/,""),"timer"===D?process.stdout.write(`${t} ${C} ${d(a)}
69
+ `):process.stdout.write(`${t} ${C}
70
+ `),process.removeListener("uncaughtExceptionMonitor",E),process.removeListener("unhandledRejection",E),process.removeListener("SIGINT",c),process.removeListener("SIGTERM",c),process.removeListener("exit",l),r()};return{start:(g="")=>{o=!0,r=function({input:D=s,output:u=F,overwrite:e=!0,hideCursor:t=!0}={}){let r=h.createInterface({input:D,output:u,prompt:"",tabSize:1});h.emitKeypressEvents(D,r),D.isTTY&&D.setRawMode(!0);let i=(r,{name:s,sequence:F})=>{if(V([String(r),s,F],"cancel")){t&&u.write(p.cursor.show),process.exit(0);return}e&&h.moveCursor(u,"return"===s?0:-1,"return"===s?-1:0,()=>{h.clearLine(u,1,()=>{D.once("keypress",i)})})};return t&&u.write(p.cursor.hide),D.once("keypress",i),()=>{D.off("keypress",i),t&&u.write(p.cursor.show),D.isTTY&&!N&&D.setRawMode(!1),r.terminal=!1,r.close()}}(),C=g.replace(/\.+$/,""),a=performance.now(),process.stdout.write(`${m.gray(Dr)}
71
+ `);let b=0,A=0;process.on("uncaughtExceptionMonitor",E),process.on("unhandledRejection",E),process.on("SIGINT",c),process.on("SIGTERM",c),process.on("exit",l),i=setInterval(()=>{if(t&&C===n)return;B(),n=C;let e=m.magenta(u[b]);if(t)process.stdout.write(`${e} ${C}...`);else if("timer"===D)process.stdout.write(`${e} ${C} ${d(a)}`);else{let D=".".repeat(Math.floor(A)).slice(0,3);process.stdout.write(`${e} ${C}${D}`)}b=b+1<u.length?b+1:0,A=A<u.length?A+.125:0},e)},stop:g,message:(D="")=>{C=(D??C).replace(/\.+$/,"")}}})()).start("Creating project..."):console.log("Creating project..."),await a({template:y,projectDir:$,public:r,includeAI:T,appId:S,name:b.name??"",packageName:_,overwrite:v}),g&&j?(j.stop("Project created successfully!"),Dd(`cd ${f}
72
72
  pnpm install
73
- pnpm dev`,"Next steps"),I&&Dx(`📚 AI knowledge base included!
74
- • Main guide: ${b.cyan("AGENTS.md")}
75
- • Documentation: ${b.cyan("references/")}`,"AI Development Support"),((D="")=>{process.stdout.write(`${b.gray(Do)}
76
- ${b.gray(DC)} ${D}
73
+ pnpm dev`,"Next steps"),T&&Dd(`📚 AI knowledge base included!
74
+ • Main guide: ${m.cyan("AGENTS.md")}
75
+ • Documentation: ${m.cyan("references/")}`,"AI Development Support"),((D="")=>{process.stdout.write(`${m.gray(Dr)}
76
+ ${m.gray(Ds)} ${D}
77
77
 
78
- `)})(b.green("Done! Happy coding!"))):(a=y,A=I,console.log(b.green("✓ Project created successfully!")),console.log(`
78
+ `)})(m.green("Done! Happy coding!"))):(B=f,d=T,console.log(m.green("✓ Project created successfully!")),console.log(`
79
79
  Next steps:
80
- cd ${a}
80
+ cd ${B}
81
81
  pnpm install
82
- pnpm dev`),A&&console.log("\nAI Development Support:\n \uD83D\uDCDA Main guide: AGENTS.md\n \uD83D\uDCDA Documentation: references/"))}catch(D){x&&O?(O.stop("Failed to create project"),D$.error(D instanceof Error?D.message:String(D))):(console.error(b.red("✗ Failed to create project")),console.error(D instanceof Error?D.message:String(D))),process.exit(1)}}b.gray(Do),Dv({packageScope:"@doubao-apps",public:!0}).catch(D=>{console.error(D),process.exit(1)});
82
+ pnpm dev`),d&&console.log("\nAI Development Support:\n \uD83D\uDCDA Main guide: AGENTS.md\n \uD83D\uDCDA Documentation: references/"))}catch(D){g&&j?(j.stop("Failed to create project"),Db.error(D instanceof Error?D.message:String(D))):(console.error(m.red("✗ Failed to create project")),console.error(D instanceof Error?D.message:String(D))),process.exit(1)}}m.gray(Dr),DA({packageScope:"@doubao-apps",public:!0}).catch(D=>{console.error(D),process.exit(1)});
83
83
  //# sourceMappingURL=cli.js.map
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import"node:module";export{create}from"./36.js";
1
+ import"node:module";export{create}from"./421.js";
@@ -6,11 +6,11 @@
6
6
  "build": "doubao build"
7
7
  },
8
8
  "dependencies": {
9
- "@doubao-apps/framework": "^0.0.32"
9
+ "@doubao-apps/framework": "^0.0.33"
10
10
  },
11
11
  "devDependencies": {
12
- "@doubao-apps/kit": "^0.0.32",
13
- "typescript": "5.5.3"
12
+ "@doubao-apps/kit": "^0.0.33",
13
+ "typescript": "6.0.3"
14
14
  },
15
15
  "version": "0.0.16"
16
16
  }
@@ -6,35 +6,3 @@
6
6
 
7
7
  | 分组 | 说明 | API 数量 | 详细文档 |
8
8
  | --- | --- | ---: | --- |
9
- | 基础 / 账号 / 系统 | 账号、授权、宿主基础信息、窗口信息和能力可用性。 | 9 | [查看](./01-基础-账号-系统.md) |
10
- | 定位 | 获取设备当前的地理位置信息。 | 9 | [查看](./02-定位.md) |
11
- | 存储 | 本地缓存;带 Sync 后缀的是同步 API。 | 10 | [查看](./03-存储.md) |
12
- | 路由 | 应用内页面跳转、返回、退出和关闭。 | 6 | [查看](./04-路由.md) |
13
- | 界面 / 交互 | Toast、Loading、Modal、ActionSheet 和返回前提醒。 | 9 | [查看](./05-界面-交互.md) |
14
- | 界面 / 输入 | 键盘和输入框选区能力。 | 2 | [查看](./06-界面-输入.md) |
15
- | 网络 | 网络请求与 WebSocket。 | 2 | [查看](./07-网络.md) |
16
- | 媒体 | 图片选择、预览、保存、压缩和信息读取。 | 5 | [查看](./08-媒体.md) |
17
- | 开放能力 / 业务能力 | 开放业务能力、支付、隐私设置、上下文和外部应用打开。 | 20 | [查看](./09-开放能力-业务能力.md) |
18
- | 数据分析 | 监控上报、事件和数据分析上报。 | 1 | [查看](./10-数据分析.md) |
19
- | 设备 / 蓝牙 | 蓝牙和 BLE 能力;通常先打开适配器,再扫描、连接和读写。 | 19 | [查看](./11-设备-蓝牙.md) |
20
- | 设备 / Wi-Fi | Wi-Fi 模块能力;通常先 startWifi,再获取列表或连接。 | 7 | [查看](./12-设备-wi-fi.md) |
21
- | 设备 / 加速度计 | 加速度计监听能力。 | 3 | [查看](./13-设备-加速度计.md) |
22
- | 设备 / iBeacon | iBeacon 搜索和结果读取能力。 | 3 | [查看](./14-设备-ibeacon.md) |
23
- | 设备 / 罗盘 | 罗盘监听能力。 | 3 | [查看](./15-设备-罗盘.md) |
24
- | 设备 / 设备方向 | 设备方向监听能力。 | 3 | [查看](./16-设备-设备方向.md) |
25
- | 设备 / 陀螺仪 | 陀螺仪监听能力。 | 3 | [查看](./17-设备-陀螺仪.md) |
26
- | UI / 输入 | 键盘和输入框选区能力。 | 1 | [查看](./18-ui-输入.md) |
27
- | 设备 / 网络 | 网络类型和本机局域网 IP。 | 3 | [查看](./19-设备-网络.md) |
28
- | 设备 / 短信 | 拉起系统短信发送面板。 | 1 | [查看](./20-设备-短信.md) |
29
- | 设备 / 无障碍 | 检测无障碍能力开关状态。 | 1 | [查看](./21-设备-无障碍.md) |
30
- | 设备 / 基础信息 | 设备品牌、型号、系统、内存和性能等级。 | 2 | [查看](./22-设备-基础信息.md) |
31
- | 设备 / 电池 | 电池信息读取与变化监听。 | 2 | [查看](./23-设备-电池.md) |
32
- | 设备 / 日历 | 向系统日历添加事件和重复事件。 | 2 | [查看](./24-设备-日历.md) |
33
- | 设备 / 剪贴板 | 读取和设置系统剪贴板内容。 | 2 | [查看](./25-设备-剪贴板.md) |
34
- | 设备 / 联系人 | 选择和添加手机联系人。 | 2 | [查看](./26-设备-联系人.md) |
35
- | 设备 / 加密 | 安全随机数能力。 | 1 | [查看](./27-设备-加密.md) |
36
- | 设备 / 电话 | 拨打电话。 | 1 | [查看](./28-设备-电话.md) |
37
- | 设备 / 扫码 | 调起扫码并读取扫码结果。 | 1 | [查看](./29-设备-扫码.md) |
38
- | 设备 / 屏幕 | 屏幕亮度、常亮和截屏/录屏相关能力。 | 5 | [查看](./30-设备-屏幕.md) |
39
- | 设备 / 震动 | 触发短震动和长震动。 | 2 | [查看](./31-设备-震动.md) |
40
- | 文件系统 | 文件读写、目录管理和文件信息操作。 | 1 | [查看](./32-文件系统.md) |