@pplancq/create-react-app 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## @pplancq/create-react-app [2.0.3](https://github.com/pplancq/dev-tools/compare/@pplancq/create-react-app@2.0.2...@pplancq/create-react-app@2.0.3) (2025-12-02)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **create-react-app:** adjust shell option for cross-platform compatibility ([69c7d69](https://github.com/pplancq/dev-tools/commit/69c7d6997179d8dbf04cdb7a7ba3fefc7bb936f7))
6
+
7
+ ## @pplancq/create-react-app [2.0.2](https://github.com/pplancq/dev-tools/compare/@pplancq/create-react-app@2.0.1...@pplancq/create-react-app@2.0.2) (2025-12-01)
8
+
9
+ ### Bug Fixes
10
+
11
+ * **create-react-app:** add shell option to child process spawning for Windows mise compatibility ([#1378](https://github.com/pplancq/dev-tools/issues/1378)) ([91d8379](https://github.com/pplancq/dev-tools/commit/91d83792a0ab8c59c646167b3abb913af3103590))
12
+
1
13
  ## @pplancq/create-react-app [2.0.1](https://github.com/pplancq/dev-tools/compare/@pplancq/create-react-app@2.0.0...@pplancq/create-react-app@2.0.1) (2025-11-03)
2
14
 
3
15
  ### Bug Fixes
package/dist/main.js CHANGED
@@ -20,63 +20,63 @@ ${r}`)}boxWrap(t,e){if(e<this.minWidthToWrap)return t;let u=t.split(/\r\n|\n/),i
20
20
  - too many long flags`);throw Error(`${u}
21
21
  - unrecognised flag format`)}if(void 0===e&&void 0===u)throw Error(`option creation failed due to no flags found in '${t}'.`);return{shortFlag:e,longFlag:u}}(t);this.short=u.shortFlag,this.long=u.longFlag,this.negate=!1,this.long&&(this.negate=this.long.startsWith("--no-")),this.defaultValue=void 0,this.defaultValueDescription=void 0,this.presetArg=void 0,this.envVar=void 0,this.parseArg=void 0,this.hidden=!1,this.argChoices=void 0,this.conflictsWith=[],this.implied=void 0,this.helpGroupHeading=void 0}default(t,e){return this.defaultValue=t,this.defaultValueDescription=e,this}preset(t){return this.presetArg=t,this}conflicts(t){return this.conflictsWith=this.conflictsWith.concat(t),this}implies(t){let e=t;return"string"==typeof t&&(e={[t]:!0}),this.implied=Object.assign(this.implied||{},e),this}env(t){return this.envVar=t,this}argParser(t){return this.parseArg=t,this}makeOptionMandatory(t=!0){return this.mandatory=!!t,this}hideHelp(t=!0){return this.hidden=!!t,this}_collectValue(t,e){return e!==this.defaultValue&&Array.isArray(e)?(e.push(t),e):[t]}choices(t){return this.argChoices=t.slice(),this.parseArg=(t,e)=>{if(!this.argChoices.includes(t))throw new i(`Allowed choices are ${this.argChoices.join(", ")}.`);return this.variadic?this._collectValue(t,e):t},this}name(){return this.long?this.long.replace(/^--/,""):this.short.replace(/^-/,"")}attributeName(){return this.negate?D(this.name().replace(/^no-/,"")):D(this.name())}helpGroup(t){return this.helpGroupHeading=t,this}is(t){return this.short===t||this.long===t}isBoolean(){return!this.required&&!this.optional&&!this.negate}},e.DualOptions=class{constructor(t){this.positiveOptions=new Map,this.negativeOptions=new Map,this.dualOptions=new Set,t.forEach(t=>{t.negate?this.negativeOptions.set(t.attributeName(),t):this.positiveOptions.set(t.attributeName(),t)}),this.negativeOptions.forEach((t,e)=>{this.positiveOptions.has(e)&&this.dualOptions.add(e)})}valueFromOption(t,e){let u=e.attributeName();if(!this.dualOptions.has(u))return!0;let i=this.negativeOptions.get(u).presetArg;return e.negate===((void 0!==i&&i)===t)}}},"../../node_modules/commander/lib/suggestSimilar.js":function(t,e){e.suggestSimilar=function(t,e){if(!e||0===e.length)return"";e=Array.from(new Set(e));let u=t.startsWith("--");u&&(t=t.slice(2),e=e.map(t=>t.slice(2)));let i=[],D=3;return(e.forEach(e=>{if(e.length<=1)return;let u=function(t,e){if(Math.abs(t.length-e.length)>3)return Math.max(t.length,e.length);let u=[];for(let e=0;e<=t.length;e++)u[e]=[e];for(let t=0;t<=e.length;t++)u[0][t]=t;for(let i=1;i<=e.length;i++)for(let D=1;D<=t.length;D++){let r=1;r=+(t[D-1]!==e[i-1]),u[D][i]=Math.min(u[D-1][i]+1,u[D][i-1]+1,u[D-1][i-1]+r),D>1&&i>1&&t[D-1]===e[i-2]&&t[D-2]===e[i-1]&&(u[D][i]=Math.min(u[D][i],u[D-2][i-2]+1))}return u[t.length][e.length]}(t,e),r=Math.max(t.length,e.length);(r-u)/r>.4&&(u<D?(D=u,i=[e]):u===D&&i.push(e))}),i.sort((t,e)=>t.localeCompare(e)),u&&(i=i.map(t=>`--${t}`)),i.length>1)?`
22
22
  (Did you mean one of ${i.join(", ")}?)`:1===i.length?`
23
- (Did you mean ${i[0]}?)`:""}}},c={};function d(t){var e=c[t];if(void 0!==e)return e.exports;var u=c[t]={exports:{}};return m[t](u,u.exports,d),u.exports}d.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return d.d(e,{a:e}),e},d.d=(t,e)=>{for(var u in e)d.o(e,u)&&!d.o(t,u)&&Object.defineProperty(t,u,{enumerable:!0,get:e[u]})},d.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let C=(t=!1)=>{process.exit(+!!t)};class F extends Error{constructor(t){super(t),this.name="RunCommandError"}}let g=r(d("node:child_process").execFile),E=async(t,e=[],u)=>{try{await g(t,e,u)}catch{let u=[t,...e].join(" ");throw new F(`Failed to execute ${u}`)}};var f=d("../../node_modules/sisteransi/src/index.js"),_=d("node:process"),b=d("../../node_modules/picocolors/picocolors.js"),A=d.n(b);let B=function({onlyFirst:t=!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=><~]))",t?void 0:"g")}();function v(t){if("string"!=typeof t)throw TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(B,"")}function x(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y={exports:{}},w={};function O(t){return t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}y.exports=w,w.eastAsianWidth=function(t){var e=t.charCodeAt(0),u=2==t.length?t.charCodeAt(1):0,i=e;return 55296<=e&&e<=56319&&56320<=u&&u<=57343&&(e&=1023,u&=1023,i=(e<<10|u)+65536),12288==i||65281<=i&&i<=65376||65504<=i&&i<=65510?"F":8361==i||65377<=i&&i<=65470||65474<=i&&i<=65479||65482<=i&&i<=65487||65490<=i&&i<=65495||65498<=i&&i<=65500||65512<=i&&i<=65518?"H":4352<=i&&i<=4447||4515<=i&&i<=4519||4602<=i&&i<=4607||9001<=i&&i<=9002||11904<=i&&i<=11929||11931<=i&&i<=12019||12032<=i&&i<=12245||12272<=i&&i<=12283||12289<=i&&i<=12350||12353<=i&&i<=12438||12441<=i&&i<=12543||12549<=i&&i<=12589||12593<=i&&i<=12686||12688<=i&&i<=12730||12736<=i&&i<=12771||12784<=i&&i<=12830||12832<=i&&i<=12871||12880<=i&&i<=13054||13056<=i&&i<=19903||19968<=i&&i<=42124||42128<=i&&i<=42182||43360<=i&&i<=43388||44032<=i&&i<=55203||55216<=i&&i<=55238||55243<=i&&i<=55291||63744<=i&&i<=64255||65040<=i&&i<=65049||65072<=i&&i<=65106||65108<=i&&i<=65126||65128<=i&&i<=65131||110592<=i&&i<=110593||127488<=i&&i<=127490||127504<=i&&i<=127546||127552<=i&&i<=127560||127568<=i&&i<=127569||131072<=i&&i<=194367||177984<=i&&i<=196605||196608<=i&&i<=262141?"W":32<=i&&i<=126||162<=i&&i<=163||165<=i&&i<=166||172==i||175==i||10214<=i&&i<=10221||10629<=i&&i<=10630?"Na":161==i||164==i||167<=i&&i<=168||170==i||173<=i&&i<=174||176<=i&&i<=180||182<=i&&i<=186||188<=i&&i<=191||198==i||208==i||215<=i&&i<=216||222<=i&&i<=225||230==i||232<=i&&i<=234||236<=i&&i<=237||240==i||242<=i&&i<=243||247<=i&&i<=250||252==i||254==i||257==i||273==i||275==i||283==i||294<=i&&i<=295||299==i||305<=i&&i<=307||312==i||319<=i&&i<=322||324==i||328<=i&&i<=331||333==i||338<=i&&i<=339||358<=i&&i<=359||363==i||462==i||464==i||466==i||468==i||470==i||472==i||474==i||476==i||593==i||609==i||708==i||711==i||713<=i&&i<=715||717==i||720==i||728<=i&&i<=731||733==i||735==i||768<=i&&i<=879||913<=i&&i<=929||931<=i&&i<=937||945<=i&&i<=961||963<=i&&i<=969||1025==i||1040<=i&&i<=1103||1105==i||8208==i||8211<=i&&i<=8214||8216<=i&&i<=8217||8220<=i&&i<=8221||8224<=i&&i<=8226||8228<=i&&i<=8231||8240==i||8242<=i&&i<=8243||8245==i||8251==i||8254==i||8308==i||8319==i||8321<=i&&i<=8324||8364==i||8451==i||8453==i||8457==i||8467==i||8470==i||8481<=i&&i<=8482||8486==i||8491==i||8531<=i&&i<=8532||8539<=i&&i<=8542||8544<=i&&i<=8555||8560<=i&&i<=8569||8585==i||8592<=i&&i<=8601||8632<=i&&i<=8633||8658==i||8660==i||8679==i||8704==i||8706<=i&&i<=8707||8711<=i&&i<=8712||8715==i||8719==i||8721==i||8725==i||8730==i||8733<=i&&i<=8736||8739==i||8741==i||8743<=i&&i<=8748||8750==i||8756<=i&&i<=8759||8764<=i&&i<=8765||8776==i||8780==i||8786==i||8800<=i&&i<=8801||8804<=i&&i<=8807||8810<=i&&i<=8811||8814<=i&&i<=8815||8834<=i&&i<=8835||8838<=i&&i<=8839||8853==i||8857==i||8869==i||8895==i||8978==i||9312<=i&&i<=9449||9451<=i&&i<=9547||9552<=i&&i<=9587||9600<=i&&i<=9615||9618<=i&&i<=9621||9632<=i&&i<=9633||9635<=i&&i<=9641||9650<=i&&i<=9651||9654<=i&&i<=9655||9660<=i&&i<=9661||9664<=i&&i<=9665||9670<=i&&i<=9672||9675==i||9678<=i&&i<=9681||9698<=i&&i<=9701||9711==i||9733<=i&&i<=9734||9737==i||9742<=i&&i<=9743||9748<=i&&i<=9749||9756==i||9758==i||9792==i||9794==i||9824<=i&&i<=9825||9827<=i&&i<=9829||9831<=i&&i<=9834||9836<=i&&i<=9837||9839==i||9886<=i&&i<=9887||9918<=i&&i<=9919||9924<=i&&i<=9933||9935<=i&&i<=9953||9955==i||9960<=i&&i<=9983||10045==i||10071==i||10102<=i&&i<=10111||11093<=i&&i<=11097||12872<=i&&i<=12879||57344<=i&&i<=63743||65024<=i&&i<=65039||65533==i||127232<=i&&i<=127242||127248<=i&&i<=127277||127280<=i&&i<=127337||127344<=i&&i<=127386||917760<=i&&i<=917999||983040<=i&&i<=1048573||1048576<=i&&i<=1114109?"A":"N"},w.characterLength=function(t){var e=this.eastAsianWidth(t);return"F"==e||"W"==e||"A"==e?2:1},w.length=function(t){for(var e=O(t),u=0,i=0;i<e.length;i++)u+=this.characterLength(e[i]);return u},w.slice=function(t,e,u){textLen=w.length(t),u=u||1,(e=e||0)<0&&(e=textLen+e),u<0&&(u=textLen+u);for(var i="",D=0,r=O(t),s=0;s<r.length;s++){var n=r[s],o=w.length(n);if(D>=e-(2==o))if(D+o<=u)i+=n;else break;D+=o}return i};let $=x(y.exports),k=x(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])|\uD83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[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\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(?:\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76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\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\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 S(t,e={}){if("string"!=typeof t||0===t.length||(e={ambiguousIsNarrow:!0,...e},0===(t=v(t)).length))return 0;t=t.replace(k()," ");let u=e.ambiguousIsNarrow?1:2,i=0;for(let e of t){let t=e.codePointAt(0);if(!(t<=31)&&(!(t>=127)||!(t<=159))&&(!(t>=768)||!(t<=879)))switch($.eastAsianWidth(e)){case"F":case"W":i+=2;break;case"A":i+=u;break;default:i+=1}}return i}let T=(t=0)=>e=>`\x1b[${e+t}m`,H=(t=0)=>e=>`\x1b[${38+t};5;${e}m`,V=(t=0)=>(e,u,i)=>`\x1b[${38+t};2;${e};${u};${i}m`,j={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(j.modifier),[...Object.keys(j.color),...Object.keys(j.bgColor)];let M=function(){let t=new Map;for(let[e,u]of Object.entries(j)){for(let[e,i]of Object.entries(u))j[e]={open:`\x1b[${i[0]}m`,close:`\x1b[${i[1]}m`},u[e]=j[e],t.set(i[0],i[1]);Object.defineProperty(j,e,{value:u,enumerable:!1})}return Object.defineProperty(j,"codes",{value:t,enumerable:!1}),j.color.close="\x1b[39m",j.bgColor.close="\x1b[49m",j.color.ansi=T(),j.color.ansi256=H(),j.color.ansi16m=V(),j.bgColor.ansi=T(10),j.bgColor.ansi256=H(10),j.bgColor.ansi16m=V(10),Object.defineProperties(j,{rgbToAnsi256:{value:(t,e,u)=>t===e&&e===u?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(e/255*5)+Math.round(u/255*5),enumerable:!1},hexToRgb:{value:t=>{let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!e)return[0,0,0];let[u]=e;3===u.length&&(u=[...u].map(t=>t+t).join(""));let i=Number.parseInt(u,16);return[i>>16&255,i>>8&255,255&i]},enumerable:!1},hexToAnsi256:{value:t=>j.rgbToAnsi256(...j.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{let e,u,i;if(t<8)return 30+t;if(t<16)return 90+(t-8);if(t>=232)u=e=((t-232)*10+8)/255,i=e;else{let D=(t-=16)%36;e=Math.floor(t/36)/5,u=Math.floor(D/6)/5,i=D%6/5}let D=2*Math.max(e,u,i);if(0===D)return 30;let r=30+(Math.round(i)<<2|Math.round(u)<<1|Math.round(e));return 2===D&&(r+=60),r},enumerable:!1},rgbToAnsi:{value:(t,e,u)=>j.ansi256ToAnsi(j.rgbToAnsi256(t,e,u)),enumerable:!1},hexToAnsi:{value:t=>j.ansi256ToAnsi(j.hexToAnsi256(t)),enumerable:!1}}),j}(),G=new Set(["\x1b","\x9b"]),W="]8;;",P=t=>`${G.values().next().value}[${t}m`,I=t=>`${G.values().next().value}${W}${t}\x07`,N=(t,e,u)=>{let i=[...e],D=!1,r=!1,s=S(v(t[t.length-1]));for(let[e,n]of i.entries()){let o=S(n);if(s+o<=u?t[t.length-1]+=n:(t.push(n),s=0),G.has(n)&&(D=!0,r=i.slice(e+1).join("").startsWith(W)),D){r?"\x07"===n&&(D=!1,r=!1):"m"===n&&(D=!1);continue}(s+=o)===u&&e<i.length-1&&(t.push(""),s=0)}!s&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())};function R(t,e,u){return String(t).normalize().replace(/\r\n/g,`
23
+ (Did you mean ${i[0]}?)`:""}}},c={};function d(t){var e=c[t];if(void 0!==e)return e.exports;var u=c[t]={exports:{}};return m[t](u,u.exports,d),u.exports}d.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return d.d(e,{a:e}),e},d.d=(t,e)=>{for(var u in e)d.o(e,u)&&!d.o(t,u)&&Object.defineProperty(t,u,{enumerable:!0,get:e[u]})},d.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);let C=(t=!1)=>{process.exit(+!!t)};class F extends Error{constructor(t){super(t),this.name="RunCommandError"}}var g=d("node:child_process"),E=d("node:process");let f=r(g.execFile),_=async(t,e=[],u)=>{try{let i={shell:"win32"===E.platform,...u};await f(t,e,i)}catch{let u=[t,...e].join(" ");throw new F(`Failed to execute ${u}`)}};var b=d("../../node_modules/sisteransi/src/index.js"),A=d("../../node_modules/picocolors/picocolors.js"),B=d.n(A);let v=function({onlyFirst:t=!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=><~]))",t?void 0:"g")}();function x(t){if("string"!=typeof t)throw TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(v,"")}function w(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var y={exports:{}},O={};function $(t){return t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}y.exports=O,O.eastAsianWidth=function(t){var e=t.charCodeAt(0),u=2==t.length?t.charCodeAt(1):0,i=e;return 55296<=e&&e<=56319&&56320<=u&&u<=57343&&(e&=1023,u&=1023,i=(e<<10|u)+65536),12288==i||65281<=i&&i<=65376||65504<=i&&i<=65510?"F":8361==i||65377<=i&&i<=65470||65474<=i&&i<=65479||65482<=i&&i<=65487||65490<=i&&i<=65495||65498<=i&&i<=65500||65512<=i&&i<=65518?"H":4352<=i&&i<=4447||4515<=i&&i<=4519||4602<=i&&i<=4607||9001<=i&&i<=9002||11904<=i&&i<=11929||11931<=i&&i<=12019||12032<=i&&i<=12245||12272<=i&&i<=12283||12289<=i&&i<=12350||12353<=i&&i<=12438||12441<=i&&i<=12543||12549<=i&&i<=12589||12593<=i&&i<=12686||12688<=i&&i<=12730||12736<=i&&i<=12771||12784<=i&&i<=12830||12832<=i&&i<=12871||12880<=i&&i<=13054||13056<=i&&i<=19903||19968<=i&&i<=42124||42128<=i&&i<=42182||43360<=i&&i<=43388||44032<=i&&i<=55203||55216<=i&&i<=55238||55243<=i&&i<=55291||63744<=i&&i<=64255||65040<=i&&i<=65049||65072<=i&&i<=65106||65108<=i&&i<=65126||65128<=i&&i<=65131||110592<=i&&i<=110593||127488<=i&&i<=127490||127504<=i&&i<=127546||127552<=i&&i<=127560||127568<=i&&i<=127569||131072<=i&&i<=194367||177984<=i&&i<=196605||196608<=i&&i<=262141?"W":32<=i&&i<=126||162<=i&&i<=163||165<=i&&i<=166||172==i||175==i||10214<=i&&i<=10221||10629<=i&&i<=10630?"Na":161==i||164==i||167<=i&&i<=168||170==i||173<=i&&i<=174||176<=i&&i<=180||182<=i&&i<=186||188<=i&&i<=191||198==i||208==i||215<=i&&i<=216||222<=i&&i<=225||230==i||232<=i&&i<=234||236<=i&&i<=237||240==i||242<=i&&i<=243||247<=i&&i<=250||252==i||254==i||257==i||273==i||275==i||283==i||294<=i&&i<=295||299==i||305<=i&&i<=307||312==i||319<=i&&i<=322||324==i||328<=i&&i<=331||333==i||338<=i&&i<=339||358<=i&&i<=359||363==i||462==i||464==i||466==i||468==i||470==i||472==i||474==i||476==i||593==i||609==i||708==i||711==i||713<=i&&i<=715||717==i||720==i||728<=i&&i<=731||733==i||735==i||768<=i&&i<=879||913<=i&&i<=929||931<=i&&i<=937||945<=i&&i<=961||963<=i&&i<=969||1025==i||1040<=i&&i<=1103||1105==i||8208==i||8211<=i&&i<=8214||8216<=i&&i<=8217||8220<=i&&i<=8221||8224<=i&&i<=8226||8228<=i&&i<=8231||8240==i||8242<=i&&i<=8243||8245==i||8251==i||8254==i||8308==i||8319==i||8321<=i&&i<=8324||8364==i||8451==i||8453==i||8457==i||8467==i||8470==i||8481<=i&&i<=8482||8486==i||8491==i||8531<=i&&i<=8532||8539<=i&&i<=8542||8544<=i&&i<=8555||8560<=i&&i<=8569||8585==i||8592<=i&&i<=8601||8632<=i&&i<=8633||8658==i||8660==i||8679==i||8704==i||8706<=i&&i<=8707||8711<=i&&i<=8712||8715==i||8719==i||8721==i||8725==i||8730==i||8733<=i&&i<=8736||8739==i||8741==i||8743<=i&&i<=8748||8750==i||8756<=i&&i<=8759||8764<=i&&i<=8765||8776==i||8780==i||8786==i||8800<=i&&i<=8801||8804<=i&&i<=8807||8810<=i&&i<=8811||8814<=i&&i<=8815||8834<=i&&i<=8835||8838<=i&&i<=8839||8853==i||8857==i||8869==i||8895==i||8978==i||9312<=i&&i<=9449||9451<=i&&i<=9547||9552<=i&&i<=9587||9600<=i&&i<=9615||9618<=i&&i<=9621||9632<=i&&i<=9633||9635<=i&&i<=9641||9650<=i&&i<=9651||9654<=i&&i<=9655||9660<=i&&i<=9661||9664<=i&&i<=9665||9670<=i&&i<=9672||9675==i||9678<=i&&i<=9681||9698<=i&&i<=9701||9711==i||9733<=i&&i<=9734||9737==i||9742<=i&&i<=9743||9748<=i&&i<=9749||9756==i||9758==i||9792==i||9794==i||9824<=i&&i<=9825||9827<=i&&i<=9829||9831<=i&&i<=9834||9836<=i&&i<=9837||9839==i||9886<=i&&i<=9887||9918<=i&&i<=9919||9924<=i&&i<=9933||9935<=i&&i<=9953||9955==i||9960<=i&&i<=9983||10045==i||10071==i||10102<=i&&i<=10111||11093<=i&&i<=11097||12872<=i&&i<=12879||57344<=i&&i<=63743||65024<=i&&i<=65039||65533==i||127232<=i&&i<=127242||127248<=i&&i<=127277||127280<=i&&i<=127337||127344<=i&&i<=127386||917760<=i&&i<=917999||983040<=i&&i<=1048573||1048576<=i&&i<=1114109?"A":"N"},O.characterLength=function(t){var e=this.eastAsianWidth(t);return"F"==e||"W"==e||"A"==e?2:1},O.length=function(t){for(var e=$(t),u=0,i=0;i<e.length;i++)u+=this.characterLength(e[i]);return u},O.slice=function(t,e,u){textLen=O.length(t),u=u||1,(e=e||0)<0&&(e=textLen+e),u<0&&(u=textLen+u);for(var i="",D=0,r=$(t),s=0;s<r.length;s++){var n=r[s],o=O.length(n);if(D>=e-(2==o))if(D+o<=u)i+=n;else break;D+=o}return i};let k=w(y.exports),S=w(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\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\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[\uDDE6\uDDF2\u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C\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\u2B05-\u2B07\u2B1B\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DB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g});function T(t,e={}){if("string"!=typeof t||0===t.length||(e={ambiguousIsNarrow:!0,...e},0===(t=x(t)).length))return 0;t=t.replace(S()," ");let u=e.ambiguousIsNarrow?1:2,i=0;for(let e of t){let t=e.codePointAt(0);if(!(t<=31)&&(!(t>=127)||!(t<=159))&&(!(t>=768)||!(t<=879)))switch(k.eastAsianWidth(e)){case"F":case"W":i+=2;break;case"A":i+=u;break;default:i+=1}}return i}let H=(t=0)=>e=>`\x1b[${e+t}m`,V=(t=0)=>e=>`\x1b[${38+t};5;${e}m`,j=(t=0)=>(e,u,i)=>`\x1b[${38+t};2;${e};${u};${i}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 G=function(){let t=new Map;for(let[e,u]of Object.entries(M)){for(let[e,i]of Object.entries(u))M[e]={open:`\x1b[${i[0]}m`,close:`\x1b[${i[1]}m`},u[e]=M[e],t.set(i[0],i[1]);Object.defineProperty(M,e,{value:u,enumerable:!1})}return Object.defineProperty(M,"codes",{value:t,enumerable:!1}),M.color.close="\x1b[39m",M.bgColor.close="\x1b[49m",M.color.ansi=H(),M.color.ansi256=V(),M.color.ansi16m=j(),M.bgColor.ansi=H(10),M.bgColor.ansi256=V(10),M.bgColor.ansi16m=j(10),Object.defineProperties(M,{rgbToAnsi256:{value:(t,e,u)=>t===e&&e===u?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(e/255*5)+Math.round(u/255*5),enumerable:!1},hexToRgb:{value:t=>{let e=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!e)return[0,0,0];let[u]=e;3===u.length&&(u=[...u].map(t=>t+t).join(""));let i=Number.parseInt(u,16);return[i>>16&255,i>>8&255,255&i]},enumerable:!1},hexToAnsi256:{value:t=>M.rgbToAnsi256(...M.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value:t=>{let e,u,i;if(t<8)return 30+t;if(t<16)return 90+(t-8);if(t>=232)u=e=((t-232)*10+8)/255,i=e;else{let D=(t-=16)%36;e=Math.floor(t/36)/5,u=Math.floor(D/6)/5,i=D%6/5}let D=2*Math.max(e,u,i);if(0===D)return 30;let r=30+(Math.round(i)<<2|Math.round(u)<<1|Math.round(e));return 2===D&&(r+=60),r},enumerable:!1},rgbToAnsi:{value:(t,e,u)=>M.ansi256ToAnsi(M.rgbToAnsi256(t,e,u)),enumerable:!1},hexToAnsi:{value:t=>M.ansi256ToAnsi(M.hexToAnsi256(t)),enumerable:!1}}),M}(),W=new Set(["\x1b","\x9b"]),P="]8;;",I=t=>`${W.values().next().value}[${t}m`,N=t=>`${W.values().next().value}${P}${t}\x07`,R=(t,e,u)=>{let i=[...e],D=!1,r=!1,s=T(x(t[t.length-1]));for(let[e,n]of i.entries()){let o=T(n);if(s+o<=u?t[t.length-1]+=n:(t.push(n),s=0),W.has(n)&&(D=!0,r=i.slice(e+1).join("").startsWith(P)),D){r?"\x07"===n&&(D=!1,r=!1):"m"===n&&(D=!1);continue}(s+=o)===u&&e<i.length-1&&(t.push(""),s=0)}!s&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop())};function L(t,e,u){return String(t).normalize().replace(/\r\n/g,`
24
24
  `).split(`
25
- `).map(t=>((t,e,u={})=>{if(!1!==u.trim&&""===t.trim())return"";let i="",D,r,s=t.split(" ").map(t=>S(t)),n=[""];for(let[i,D]of t.split(" ").entries()){!1!==u.trim&&(n[n.length-1]=n[n.length-1].trimStart());let t=S(n[n.length-1]);if(0!==i&&(t>=e&&(!1===u.wordWrap||!1===u.trim)&&(n.push(""),t=0),(t>0||!1===u.trim)&&(n[n.length-1]+=" ",t++)),u.hard&&s[i]>e){let u=e-t,r=1+Math.floor((s[i]-u-1)/e);Math.floor((s[i]-1)/e)<r&&n.push(""),N(n,D,e);continue}if(t+s[i]>e&&t>0&&s[i]>0){if(!1===u.wordWrap&&t<e){N(n,D,e);continue}n.push("")}if(t+s[i]>e&&!1===u.wordWrap){N(n,D,e);continue}n[n.length-1]+=D}!1!==u.trim&&(n=n.map(t=>(t=>{let e=t.split(" "),u=e.length;for(;u>0&&!(S(e[u-1])>0);)u--;return u===e.length?t:e.slice(0,u).join(" ")+e.slice(u).join("")})(t)));let o=[...n.join(`
26
- `)];for(let[t,e]of o.entries()){if(i+=e,G.has(e)){let{groups:e}=RegExp(`(?:\\[(?<code>\\d+)m|\\${W}(?<uri>.*)\x07)`).exec(o.slice(t).join(""))||{groups:{}};if(void 0!==e.code){let t=Number.parseFloat(e.code);D=39===t?void 0:t}else void 0!==e.uri&&(r=0===e.uri.length?void 0:e.uri)}let u=M.codes.get(Number(D));o[t+1]===`
27
- `?(r&&(i+=I("")),D&&u&&(i+=P(u))):e===`
28
- `&&(D&&u&&(i+=P(D)),r&&(i+=I(r)))}return i})(t,e,u)).join(`
29
- `)}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 q(t,e){if("string"==typeof t)return L.aliases.get(t)===e;for(let u of t)if(void 0!==u&&q(u,e))return!0;return!1}let U=globalThis.process.platform.startsWith("win"),z=Symbol("clack:cancel");function Y(t,e){t.isTTY&&t.setRawMode(e)}var J=Object.defineProperty,K=(t,e,u)=>{let i;return(i="symbol"!=typeof e?e+"":e)in t?J(t,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[i]=u,u};class Z{constructor(t,e=!0){K(this,"input"),K(this,"output"),K(this,"_abortSignal"),K(this,"rl"),K(this,"opts"),K(this,"_render"),K(this,"_track",!1),K(this,"_prevFrame",""),K(this,"_subscribers",new Map),K(this,"_cursor",0),K(this,"state","initial"),K(this,"error",""),K(this,"value");let{input:u=_.stdin,output:i=_.stdout,render:D,signal:r,...s}=t;this.opts=s,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=D.bind(this),this._track=e,this._abortSignal=r,this.input=u,this.output=i}unsubscribe(){this._subscribers.clear()}setSubscriber(t,e){let u=this._subscribers.get(t)??[];u.push(e),this._subscribers.set(t,u)}on(t,e){this.setSubscriber(t,{cb:e})}once(t,e){this.setSubscriber(t,{cb:e,once:!0})}emit(t,...e){let u=this._subscribers.get(t)??[],i=[];for(let t of u)t.cb(...e),t.once&&i.push(()=>u.splice(u.indexOf(t),1));for(let t of i)t()}prompt(){return new Promise((t,e)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),t(z);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let u=new p;u._write=(t,e,u)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),u()},this.input.pipe(u),this.rl=n.createInterface({input:this.input,output:u,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),n.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(f.cursor.show),this.output.off("resize",this.render),Y(this.input,!1),t(this.value)}),this.once("cancel",()=>{this.output.write(f.cursor.show),this.output.off("resize",this.render),Y(this.input,!1),t(z)})})}onKeypress(t,e){if("error"===this.state&&(this.state="active"),e?.name&&(!this._track&&L.aliases.has(e.name)&&this.emit("cursor",L.aliases.get(e.name)),L.actions.has(e.name)&&this.emit("cursor",e.name)),t&&("y"===t.toLowerCase()||"n"===t.toLowerCase())&&this.emit("confirm","y"===t.toLowerCase())," "===t&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),t&&this.emit("key",t.toLowerCase()),e?.name==="return"){if(this.opts.validate){let t=this.opts.validate(this.value);t&&(this.error=t instanceof Error?t.message:t,this.state="error",this.rl?.write(this.value))}"error"!==this.state&&(this.state="submit")}q([t,e?.name,e?.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(`
30
- `),Y(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let t=R(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
31
- `).length-1;this.output.write(f.cursor.move(-999,-1*t))}render(){let t=R(this._render(this)??"",process.stdout.columns,{hard:!0});if(t!==this._prevFrame){if("initial"===this.state)this.output.write(f.cursor.hide);else{let e=function(t,e){if(t===e)return;let u=t.split(`
25
+ `).map(t=>((t,e,u={})=>{if(!1!==u.trim&&""===t.trim())return"";let i="",D,r,s=t.split(" ").map(t=>T(t)),n=[""];for(let[i,D]of t.split(" ").entries()){!1!==u.trim&&(n[n.length-1]=n[n.length-1].trimStart());let t=T(n[n.length-1]);if(0!==i&&(t>=e&&(!1===u.wordWrap||!1===u.trim)&&(n.push(""),t=0),(t>0||!1===u.trim)&&(n[n.length-1]+=" ",t++)),u.hard&&s[i]>e){let u=e-t,r=1+Math.floor((s[i]-u-1)/e);Math.floor((s[i]-1)/e)<r&&n.push(""),R(n,D,e);continue}if(t+s[i]>e&&t>0&&s[i]>0){if(!1===u.wordWrap&&t<e){R(n,D,e);continue}n.push("")}if(t+s[i]>e&&!1===u.wordWrap){R(n,D,e);continue}n[n.length-1]+=D}!1!==u.trim&&(n=n.map(t=>(t=>{let e=t.split(" "),u=e.length;for(;u>0&&!(T(e[u-1])>0);)u--;return u===e.length?t:e.slice(0,u).join(" ")+e.slice(u).join("")})(t)));let o=[...n.join(`
26
+ `)];for(let[t,e]of o.entries()){if(i+=e,W.has(e)){let{groups:e}=RegExp(`(?:\\[(?<code>\\d+)m|\\${P}(?<uri>.*)\x07)`).exec(o.slice(t).join(""))||{groups:{}};if(void 0!==e.code){let t=Number.parseFloat(e.code);D=39===t?void 0:t}else void 0!==e.uri&&(r=0===e.uri.length?void 0:e.uri)}let u=G.codes.get(Number(D));o[t+1]===`
27
+ `?(r&&(i+=N("")),D&&u&&(i+=I(u))):e===`
28
+ `&&(D&&u&&(i+=I(D)),r&&(i+=N(r)))}return i})(t,e,u)).join(`
29
+ `)}let q={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 U(t,e){if("string"==typeof t)return q.aliases.get(t)===e;for(let u of t)if(void 0!==u&&U(u,e))return!0;return!1}let z=globalThis.process.platform.startsWith("win"),Y=Symbol("clack:cancel");function J(t,e){t.isTTY&&t.setRawMode(e)}var K=Object.defineProperty,Z=(t,e,u)=>{let i;return(i="symbol"!=typeof e?e+"":e)in t?K(t,i,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[i]=u,u};class Q{constructor(t,e=!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:u=E.stdin,output:i=E.stdout,render:D,signal:r,...s}=t;this.opts=s,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=D.bind(this),this._track=e,this._abortSignal=r,this.input=u,this.output=i}unsubscribe(){this._subscribers.clear()}setSubscriber(t,e){let u=this._subscribers.get(t)??[];u.push(e),this._subscribers.set(t,u)}on(t,e){this.setSubscriber(t,{cb:e})}once(t,e){this.setSubscriber(t,{cb:e,once:!0})}emit(t,...e){let u=this._subscribers.get(t)??[],i=[];for(let t of u)t.cb(...e),t.once&&i.push(()=>u.splice(u.indexOf(t),1));for(let t of i)t()}prompt(){return new Promise((t,e)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),t(Y);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}let u=new p;u._write=(t,e,u)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),u()},this.input.pipe(u),this.rl=n.createInterface({input:this.input,output:u,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),n.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),J(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(b.cursor.show),this.output.off("resize",this.render),J(this.input,!1),t(this.value)}),this.once("cancel",()=>{this.output.write(b.cursor.show),this.output.off("resize",this.render),J(this.input,!1),t(Y)})})}onKeypress(t,e){if("error"===this.state&&(this.state="active"),e?.name&&(!this._track&&q.aliases.has(e.name)&&this.emit("cursor",q.aliases.get(e.name)),q.actions.has(e.name)&&this.emit("cursor",e.name)),t&&("y"===t.toLowerCase()||"n"===t.toLowerCase())&&this.emit("confirm","y"===t.toLowerCase())," "===t&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),t&&this.emit("key",t.toLowerCase()),e?.name==="return"){if(this.opts.validate){let t=this.opts.validate(this.value);t&&(this.error=t instanceof Error?t.message:t,this.state="error",this.rl?.write(this.value))}"error"!==this.state&&(this.state="submit")}U([t,e?.name,e?.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(`
30
+ `),J(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){let t=L(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
31
+ `).length-1;this.output.write(b.cursor.move(-999,-1*t))}render(){let t=L(this._render(this)??"",process.stdout.columns,{hard:!0});if(t!==this._prevFrame){if("initial"===this.state)this.output.write(b.cursor.hide);else{let e=function(t,e){if(t===e)return;let u=t.split(`
32
32
  `),i=e.split(`
33
- `),D=[];for(let t=0;t<Math.max(u.length,i.length);t++)u[t]!==i[t]&&D.push(t);return D}(this._prevFrame,t);if(this.restoreCursor(),e&&e?.length===1){let u=e[0];this.output.write(f.cursor.move(0,u)),this.output.write(f.erase.lines(1));let i=t.split(`
34
- `);this.output.write(i[u]),this._prevFrame=t,this.output.write(f.cursor.move(0,i.length-u-1));return}if(e&&e?.length>1){let u=e[0];this.output.write(f.cursor.move(0,u)),this.output.write(f.erase.down());let i=t.split(`
33
+ `),D=[];for(let t=0;t<Math.max(u.length,i.length);t++)u[t]!==i[t]&&D.push(t);return D}(this._prevFrame,t);if(this.restoreCursor(),e&&e?.length===1){let u=e[0];this.output.write(b.cursor.move(0,u)),this.output.write(b.erase.lines(1));let i=t.split(`
34
+ `);this.output.write(i[u]),this._prevFrame=t,this.output.write(b.cursor.move(0,i.length-u-1));return}if(e&&e?.length>1){let u=e[0];this.output.write(b.cursor.move(0,u)),this.output.write(b.erase.down());let i=t.split(`
35
35
  `).slice(u);this.output.write(i.join(`
36
- `)),this._prevFrame=t;return}this.output.write(f.erase.down())}this.output.write(t),"initial"===this.state&&(this.state="active"),this._prevFrame=t}}}class Q extends Z{get cursor(){return+!this.value}get _value(){return 0===this.cursor}constructor(t){super(t,!1),this.value=!!t.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",t=>{this.output.write(f.cursor.move(0,-1)),this.value=t,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}new WeakMap;class X extends Z{get valueWithCursor(){if("submit"===this.state)return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let t=this.value.slice(0,this.cursor),[e,...u]=this.value.slice(this.cursor);return`${t}${b.inverse(e)}${u.join("")}`}get cursor(){return this._cursor}constructor(t){super(t),this.on("finalize",()=>{this.value||(this.value=t.defaultValue)})}}let tt="win32"!==_.default.platform?"linux"!==_.default.env.TERM:!!_.default.env.CI||!!_.default.env.WT_SESSION||!!_.default.env.TERMINUS_SUBLIME||"{cmd::Cmder}"===_.default.env.ConEmuTask||"Terminus-Sublime"===_.default.env.TERM_PROGRAM||"vscode"===_.default.env.TERM_PROGRAM||"xterm-256color"===_.default.env.TERM||"alacritty"===_.default.env.TERM||"JetBrains-JediTerm"===_.default.env.TERMINAL_EMULATOR,te=(t,e)=>tt?t:e,tu=te("◆","*"),ti=te("■","x"),tD=te("▲","x"),tr=te("◇","o"),ts=te("┌","T"),tn=te("│","|"),to=te("└","—"),ta=te("●",">"),tl=te("○"," "),th=(te("◻","[•]"),te("◼","[+]"),te("◻","[ ]"),te("▪","•"),te("─","-")),tp=te("╮","+"),tm=te("├","+"),tc=te("╯","+"),td=te("●","•"),tC=te("◆","*"),tF=te("▲","!"),tg=te("■","x"),tE=t=>{switch(t){case"initial":case"active":return b.cyan(tu);case"cancel":return b.red(ti);case"error":return b.yellow(tD);case"submit":return b.green(tr)}},tf=t=>new X({validate:t.validate,placeholder:t.placeholder,defaultValue:t.defaultValue,initialValue:t.initialValue,render(){let e=`${b.gray(tn)}
37
- ${tE(this.state)} ${t.message}
38
- `,u=t.placeholder?b.inverse(t.placeholder[0])+b.dim(t.placeholder.slice(1)):b.inverse(b.hidden("_")),i=this.value?this.valueWithCursor:u;switch(this.state){case"error":return`${e.trim()}
39
- ${b.yellow(tn)} ${i}
40
- ${b.yellow(to)} ${b.yellow(this.error)}
41
- `;case"submit":return`${e}${b.gray(tn)} ${b.dim(this.value||t.placeholder)}`;case"cancel":return`${e}${b.gray(tn)} ${b.strikethrough(b.dim(this.value??""))}${this.value?.trim()?`
42
- ${b.gray(tn)}`:""}`;default:return`${e}${b.cyan(tn)} ${i}
43
- ${b.cyan(to)}
44
- `}}}).prompt(),t_=t=>{let e=t.active??"Yes",u=t.inactive??"No";return new Q({active:e,inactive:u,initialValue:t.initialValue??!0,render(){let i=`${b.gray(tn)}
45
- ${tE(this.state)} ${t.message}
46
- `,D=this.value?e:u;switch(this.state){case"submit":return`${i}${b.gray(tn)} ${b.dim(D)}`;case"cancel":return`${i}${b.gray(tn)} ${b.strikethrough(b.dim(D))}
47
- ${b.gray(tn)}`;default:return`${i}${b.cyan(tn)} ${this.value?`${b.green(ta)} ${e}`:`${b.dim(tl)} ${b.dim(e)}`} ${b.dim("/")} ${this.value?`${b.dim(tl)} ${b.dim(u)}`:`${b.green(ta)} ${u}`}
48
- ${b.cyan(to)}
49
- `}}}).prompt()},tb=(t="")=>{process.stdout.write(`${b.gray(tn)}
50
- ${b.gray(to)} ${t}
36
+ `)),this._prevFrame=t;return}this.output.write(b.erase.down())}this.output.write(t),"initial"===this.state&&(this.state="active"),this._prevFrame=t}}}class X extends Q{get cursor(){return+!this.value}get _value(){return 0===this.cursor}constructor(t){super(t,!1),this.value=!!t.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",t=>{this.output.write(b.cursor.move(0,-1)),this.value=t,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}new WeakMap;class tt extends Q{get valueWithCursor(){if("submit"===this.state)return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;let t=this.value.slice(0,this.cursor),[e,...u]=this.value.slice(this.cursor);return`${t}${A.inverse(e)}${u.join("")}`}get cursor(){return this._cursor}constructor(t){super(t),this.on("finalize",()=>{this.value||(this.value=t.defaultValue)})}}let te="win32"!==E.default.platform?"linux"!==E.default.env.TERM:!!E.default.env.CI||!!E.default.env.WT_SESSION||!!E.default.env.TERMINUS_SUBLIME||"{cmd::Cmder}"===E.default.env.ConEmuTask||"Terminus-Sublime"===E.default.env.TERM_PROGRAM||"vscode"===E.default.env.TERM_PROGRAM||"xterm-256color"===E.default.env.TERM||"alacritty"===E.default.env.TERM||"JetBrains-JediTerm"===E.default.env.TERMINAL_EMULATOR,tu=(t,e)=>te?t:e,ti=tu("◆","*"),tD=tu("■","x"),tr=tu("▲","x"),ts=tu("◇","o"),tn=tu("┌","T"),to=tu("│","|"),ta=tu("└","—"),tl=tu("●",">"),th=tu("○"," "),tp=(tu("◻","[•]"),tu("◼","[+]"),tu("◻","[ ]"),tu("▪","•"),tu("─","-")),tm=tu("╮","+"),tc=tu("├","+"),td=tu("╯","+"),tC=tu("●","•"),tF=tu("◆","*"),tg=tu("▲","!"),tE=tu("■","x"),tf=t=>{switch(t){case"initial":case"active":return A.cyan(ti);case"cancel":return A.red(tD);case"error":return A.yellow(tr);case"submit":return A.green(ts)}},t_=t=>new tt({validate:t.validate,placeholder:t.placeholder,defaultValue:t.defaultValue,initialValue:t.initialValue,render(){let e=`${A.gray(to)}
37
+ ${tf(this.state)} ${t.message}
38
+ `,u=t.placeholder?A.inverse(t.placeholder[0])+A.dim(t.placeholder.slice(1)):A.inverse(A.hidden("_")),i=this.value?this.valueWithCursor:u;switch(this.state){case"error":return`${e.trim()}
39
+ ${A.yellow(to)} ${i}
40
+ ${A.yellow(ta)} ${A.yellow(this.error)}
41
+ `;case"submit":return`${e}${A.gray(to)} ${A.dim(this.value||t.placeholder)}`;case"cancel":return`${e}${A.gray(to)} ${A.strikethrough(A.dim(this.value??""))}${this.value?.trim()?`
42
+ ${A.gray(to)}`:""}`;default:return`${e}${A.cyan(to)} ${i}
43
+ ${A.cyan(ta)}
44
+ `}}}).prompt(),tb=t=>{let e=t.active??"Yes",u=t.inactive??"No";return new X({active:e,inactive:u,initialValue:t.initialValue??!0,render(){let i=`${A.gray(to)}
45
+ ${tf(this.state)} ${t.message}
46
+ `,D=this.value?e:u;switch(this.state){case"submit":return`${i}${A.gray(to)} ${A.dim(D)}`;case"cancel":return`${i}${A.gray(to)} ${A.strikethrough(A.dim(D))}
47
+ ${A.gray(to)}`;default:return`${i}${A.cyan(to)} ${this.value?`${A.green(tl)} ${e}`:`${A.dim(th)} ${A.dim(e)}`} ${A.dim("/")} ${this.value?`${A.dim(th)} ${A.dim(u)}`:`${A.green(tl)} ${u}`}
48
+ ${A.cyan(ta)}
49
+ `}}}).prompt()},tA=(t="")=>{process.stdout.write(`${A.gray(to)}
50
+ ${A.gray(ta)} ${t}
51
51
 
52
- `)},tA={message:(t="",{symbol:e=b.gray(tn)}={})=>{let u=[`${b.gray(tn)}`];if(t){let[i,...D]=t.split(`
53
- `);u.push(`${e} ${i}`,...D.map(t=>`${b.gray(tn)} ${t}`))}process.stdout.write(`${u.join(`
52
+ `)},tB={message:(t="",{symbol:e=A.gray(to)}={})=>{let u=[`${A.gray(to)}`];if(t){let[i,...D]=t.split(`
53
+ `);u.push(`${e} ${i}`,...D.map(t=>`${A.gray(to)} ${t}`))}process.stdout.write(`${u.join(`
54
54
  `)}
55
- `)},info:t=>{tA.message(t,{symbol:b.blue(td)})},success:t=>{tA.message(t,{symbol:b.green(tC)})},step:t=>{tA.message(t,{symbol:b.green(tr)})},warn:t=>{tA.message(t,{symbol:b.yellow(tF)})},warning:t=>{tA.warn(t)},error:t=>{tA.message(t,{symbol:b.red(tg)})}},tB=(b.gray(tn),({indicator:t="dots"}={})=>{let e=tt?["◒","◐","◓","◑"]:["•","o","O","0"],u=tt?80:120,i="true"===process.env.CI,D,r,s=!1,n="",p,m=performance.now(),c=t=>{s&&E(t>1?"Something went wrong":"Canceled",t)},d=()=>c(2),C=()=>c(1),F=()=>{if(void 0===p)return;i&&process.stdout.write(`
55
+ `)},info:t=>{tB.message(t,{symbol:A.blue(tC)})},success:t=>{tB.message(t,{symbol:A.green(tF)})},step:t=>{tB.message(t,{symbol:A.green(ts)})},warn:t=>{tB.message(t,{symbol:A.yellow(tg)})},warning:t=>{tB.warn(t)},error:t=>{tB.message(t,{symbol:A.red(tE)})}},tv=(A.gray(to),({indicator:t="dots"}={})=>{let e=te?["◒","◐","◓","◑"]:["•","o","O","0"],u=te?80:120,i="true"===process.env.CI,D,r,s=!1,n="",p,m=performance.now(),c=t=>{s&&f(t>1?"Something went wrong":"Canceled",t)},d=()=>c(2),C=()=>c(1),F=()=>{if(void 0===p)return;i&&process.stdout.write(`
56
56
  `);let t=p.split(`
57
- `);process.stdout.write(f.cursor.move(-999,t.length-1)),process.stdout.write(f.erase.down(t.length))},g=t=>{let e=(performance.now()-t)/1e3,u=Math.floor(e/60),i=Math.floor(e%60);return u>0?`[${u}m ${i}s]`:`[${i}s]`},E=(e="",u=0)=>{s=!1,clearInterval(r),F();let i=0===u?b.green(tr):1===u?b.red(ti):b.red(tD);n=(e??n).replace(/\.+$/,""),"timer"===t?process.stdout.write(`${i} ${n} ${g(m)}
57
+ `);process.stdout.write(b.cursor.move(-999,t.length-1)),process.stdout.write(b.erase.down(t.length))},g=t=>{let e=(performance.now()-t)/1e3,u=Math.floor(e/60),i=Math.floor(e%60);return u>0?`[${u}m ${i}s]`:`[${i}s]`},f=(e="",u=0)=>{s=!1,clearInterval(r),F();let i=0===u?A.green(ts):1===u?A.red(tD):A.red(tr);n=(e??n).replace(/\.+$/,""),"timer"===t?process.stdout.write(`${i} ${n} ${g(m)}
58
58
  `):process.stdout.write(`${i} ${n}
59
- `),process.removeListener("uncaughtExceptionMonitor",d),process.removeListener("unhandledRejection",d),process.removeListener("SIGINT",C),process.removeListener("SIGTERM",C),process.removeListener("exit",c),D()};return{start:(E="")=>{s=!0,D=function({input:t=_.stdin,output:e=_.stdout,overwrite:u=!0,hideCursor:i=!0}={}){let D=a({input:t,output:e,prompt:"",tabSize:1});l(t,D),t.isTTY&&t.setRawMode(!0);let r=(D,{name:s,sequence:n})=>{if(q([String(D),s,n],"cancel")){i&&e.write(f.cursor.show),process.exit(0);return}u&&h(e,"return"===s?0:-1,"return"===s?-1:0,()=>{o(e,1,()=>{t.once("keypress",r)})})};return i&&e.write(f.cursor.hide),t.once("keypress",r),()=>{t.off("keypress",r),i&&e.write(f.cursor.show),t.isTTY&&!U&&t.setRawMode(!1),D.terminal=!1,D.close()}}(),n=E.replace(/\.+$/,""),m=performance.now(),process.stdout.write(`${b.gray(tn)}
60
- `);let A=0,B=0;process.on("uncaughtExceptionMonitor",d),process.on("unhandledRejection",d),process.on("SIGINT",C),process.on("SIGTERM",C),process.on("exit",c),r=setInterval(()=>{if(i&&n===p)return;F(),p=n;let u=b.magenta(e[A]);if(i)process.stdout.write(`${u} ${n}...`);else if("timer"===t)process.stdout.write(`${u} ${n} ${g(m)}`);else{let t=".".repeat(Math.floor(B)).slice(0,3);process.stdout.write(`${u} ${n}${t}`)}A=A+1<e.length?A+1:0,B=B<e.length?B+.125:0},u)},stop:E,message:(t="")=>{n=(t??n).replace(/\.+$/,"")}}}),tv=async(t,e)=>{let u={};for(let i of Object.keys(t)){let D=t[i],r=await D({results:u})?.catch(t=>{throw t});if("function"==typeof e?.onCancel&&r===z){u[i]="canceled",e.onCancel({results:u});continue}u[i]=r}return u};var tx=d("node:fs"),ty=d("node:path");let tw=async t=>{let e=tB(),u=(0,ty.resolve)(_.default.cwd(),t);return e.start(`Creating a React App in ${A().green(u)}.`),(0,tx.mkdirSync)(u),await E("npm",["init","-y"],{cwd:u}),e.stop(`React App created in ${A().green(u)}.`),{repoDir:u}},tO=t=>(t===z&&(((t="")=>{process.stdout.write(`${b.gray(to)} ${b.red(t)}
59
+ `),process.removeListener("uncaughtExceptionMonitor",d),process.removeListener("unhandledRejection",d),process.removeListener("SIGINT",C),process.removeListener("SIGTERM",C),process.removeListener("exit",c),D()};return{start:(f="")=>{s=!0,D=function({input:t=E.stdin,output:e=E.stdout,overwrite:u=!0,hideCursor:i=!0}={}){let D=a({input:t,output:e,prompt:"",tabSize:1});l(t,D),t.isTTY&&t.setRawMode(!0);let r=(D,{name:s,sequence:n})=>{if(U([String(D),s,n],"cancel")){i&&e.write(b.cursor.show),process.exit(0);return}u&&h(e,"return"===s?0:-1,"return"===s?-1:0,()=>{o(e,1,()=>{t.once("keypress",r)})})};return i&&e.write(b.cursor.hide),t.once("keypress",r),()=>{t.off("keypress",r),i&&e.write(b.cursor.show),t.isTTY&&!z&&t.setRawMode(!1),D.terminal=!1,D.close()}}(),n=f.replace(/\.+$/,""),m=performance.now(),process.stdout.write(`${A.gray(to)}
60
+ `);let _=0,B=0;process.on("uncaughtExceptionMonitor",d),process.on("unhandledRejection",d),process.on("SIGINT",C),process.on("SIGTERM",C),process.on("exit",c),r=setInterval(()=>{if(i&&n===p)return;F(),p=n;let u=A.magenta(e[_]);if(i)process.stdout.write(`${u} ${n}...`);else if("timer"===t)process.stdout.write(`${u} ${n} ${g(m)}`);else{let t=".".repeat(Math.floor(B)).slice(0,3);process.stdout.write(`${u} ${n}${t}`)}_=_+1<e.length?_+1:0,B=B<e.length?B+.125:0},u)},stop:f,message:(t="")=>{n=(t??n).replace(/\.+$/,"")}}}),tx=async(t,e)=>{let u={};for(let i of Object.keys(t)){let D=t[i],r=await D({results:u})?.catch(t=>{throw t});if("function"==typeof e?.onCancel&&r===Y){u[i]="canceled",e.onCancel({results:u});continue}u[i]=r}return u};var tw=d("node:fs"),ty=d("node:path");let tO=async t=>{let e=tv(),u=(0,ty.resolve)(E.default.cwd(),t);return e.start(`Creating a React App in ${B().green(u)}.`),(0,tw.mkdirSync)(u),await _("npm",["init","-y"],{cwd:u}),e.stop(`React App created in ${B().green(u)}.`),{repoDir:u}},t$=t=>(t===Y&&(((t="")=>{process.stdout.write(`${A.gray(ta)} ${A.red(t)}
61
61
 
62
- `)})("Operation cancelled."),C()),t),t$=t=>"string"==typeof t&&/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(t)?(0,tx.existsSync)((0,ty.resolve)(_.default.cwd(),t))?`The directory ${A().green(t)} already exists.
62
+ `)})("Operation cancelled."),C()),t),tk=t=>"string"==typeof t&&/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/.test(t)?(0,tw.existsSync)((0,ty.resolve)(E.default.cwd(),t))?`The directory ${B().green(t)} already exists.
63
63
  Either try using a new directory name, or remove the files listed above.`:"":`The project name '${t}' is not valid.
64
64
 
65
65
  A valid npm project name must start with a lowercase letter, a number, a hyphen, or a tilde, and can include dots, hyphens, tildes, or underscores.
66
66
 
67
- If the project name starts with '@', it must be followed by a valid scope name and a '/'.`,tk=t=>"string"==typeof t&&/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*(?:@[^\s@][^\s]*)?$/.test(t)?"":`The template name '${t}' is not valid.`,tS=async({projectName:t,skipDepInstall:e,skipGitInit:u,template:i})=>({projectName:t||tO(await tf({message:"What is the name of your project?",placeholder:"my-project",validate:t$})).toString(),skipDepInstall:e||!!tO(await t_({message:"Do you want to skip installing dependencies (npm install)?",initialValue:!1})),skipGitInit:u||!!tO(await t_({message:"Do you want to skip initializing a git repository?",initialValue:!1})),template:i||tO((await tv({useCustomTemplate:async()=>!!await t_({message:"Do you want to use a custom template?",initialValue:!1}),template:async({results:t})=>t.useCustomTemplate?(await tf({message:"Enter the custom template name (e.g., @pplancq/react-template):",placeholder:"@pplancq/react-template",validate:tk})).toString():"@pplancq/react-template"})).template)}),{program:tT,createCommand:tH,createArgument:tV,createOption:tj,CommanderError:tM,InvalidArgumentError:tG,InvalidOptionArgumentError:tW,Command:tP,Argument:tI,Option:tN,Help:tR}=d("../../node_modules/commander/index.js");var tL=JSON.parse('{"UU":"@pplancq/create-react-app","rE":"2.0.1"}');let tq=async(t,e)=>{if(e)return;let u=tB();u.start("Creating git commit."),await E("git",["add","."],{cwd:t}),await E("git",["commit","--no-verify","--message","Initial commit"],{cwd:t}),u.stop("Git commit created.")},tU=async(t,e)=>{if(e)return;let u=tB();u.start("Initializing git repository."),await E("git",["init","--initial-branch=main"],{cwd:t}),u.stop("Git repository initialized.")},tz=async(t,e)=>{if(e)return;let u=tB();u.start("Installing packages. This might take a couple of minutes."),await E("npm",["install"],{cwd:t}),u.stop("Packages installed.")},tY=async(t,e)=>{let u=tB(),i=(0,ty.resolve)(t,`node_modules/${e}`);u.start(`Installing react template from ${A().green(e)}. This might take a couple of minutes.`),await E("npm",["install",e,"--install-strategy=nested"],{cwd:t}),(0,tx.cpSync)(i,t,{recursive:!0,dereference:!0}),(0,tx.rmSync)(`${t}/package-lock.json`),(0,tx.rmSync)(`${t}/node_modules`,{recursive:!0}),u.stop("React template installed.")},tJ=async(t,e)=>{let u=tB(),i=!1,D=JSON.parse((0,tx.readFileSync)((0,ty.resolve)(e,"package.json"),{encoding:"utf-8"}));if(D?.bin?.["template-install"]===void 0)return void tA.warn("No post install template script found.");u.start("Running post install template script...");try{await E("npx",["template-install",t],{cwd:e})}catch(t){if(i=!0,!(t instanceof F))throw t;tA.error("Failed to run template-install command")}finally{u.stop(i?"Failed to run post install template script.":"Post install template script finished.")}};class tK extends Error{constructor(t){super(t),this.name="InvalidProjectNameError"}}class tZ extends Error{constructor(t){super(t),this.name="InvalidTemplateNameError"}}(async()=>{let t,e=(t={},new tP(tL.UU).argument("[project-name]","The name of the project to create.").option("-t, --template <template>","Specify a template for the project.").option("--skip-dep-install","Skip installing dependencies (npm install).").option("--skip-git-init","Skip initializing a git repository.").version(tL.rE,"-v, --version").name(A().green("create-react-app")).usage(`[options] ${A().yellow("[project-name]")}`).addHelpText("after",`
67
+ If the project name starts with '@', it must be followed by a valid scope name and a '/'.`,tS=t=>"string"==typeof t&&/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*(?:@[^\s@][^\s]*)?$/.test(t)?"":`The template name '${t}' is not valid.`,tT=async({projectName:t,skipDepInstall:e,skipGitInit:u,template:i})=>({projectName:t||t$(await t_({message:"What is the name of your project?",placeholder:"my-project",validate:tk})).toString(),skipDepInstall:e||!!t$(await tb({message:"Do you want to skip installing dependencies (npm install)?",initialValue:!1})),skipGitInit:u||!!t$(await tb({message:"Do you want to skip initializing a git repository?",initialValue:!1})),template:i||t$((await tx({useCustomTemplate:async()=>!!await tb({message:"Do you want to use a custom template?",initialValue:!1}),template:async({results:t})=>t.useCustomTemplate?(await t_({message:"Enter the custom template name (e.g., @pplancq/react-template):",placeholder:"@pplancq/react-template",validate:tS})).toString():"@pplancq/react-template"})).template)}),{program:tH,createCommand:tV,createArgument:tj,createOption:tM,CommanderError:tG,InvalidArgumentError:tW,InvalidOptionArgumentError:tP,Command:tI,Argument:tN,Option:tR,Help:tL}=d("../../node_modules/commander/index.js");var tq=JSON.parse('{"UU":"@pplancq/create-react-app","rE":"2.0.3"}');let tU=async(t,e)=>{if(e)return;let u=tv();u.start("Creating git commit."),await _("git",["add","."],{cwd:t}),await _("git",["commit","--no-verify","--message",'"Initial commit"'],{cwd:t}),u.stop("Git commit created.")},tz=async(t,e)=>{if(e)return;let u=tv();u.start("Initializing git repository."),await _("git",["init","--initial-branch=main"],{cwd:t}),u.stop("Git repository initialized.")},tY=async(t,e)=>{if(e)return;let u=tv();u.start("Installing packages. This might take a couple of minutes."),await _("npm",["install"],{cwd:t}),u.stop("Packages installed.")},tJ=async(t,e)=>{let u=tv(),i=(0,ty.resolve)(t,`node_modules/${e}`);u.start(`Installing react template from ${B().green(e)}. This might take a couple of minutes.`),await _("npm",["install",e,"--install-strategy=nested"],{cwd:t}),(0,tw.cpSync)(i,t,{recursive:!0,dereference:!0}),(0,tw.rmSync)(`${t}/package-lock.json`),(0,tw.rmSync)(`${t}/node_modules`,{recursive:!0}),u.stop("React template installed.")},tK=async(t,e)=>{let u=tv(),i=!1,D=JSON.parse((0,tw.readFileSync)((0,ty.resolve)(e,"package.json"),{encoding:"utf-8"}));if(D?.bin?.["template-install"]===void 0)return void tB.warn("No post install template script found.");u.start("Running post install template script...");try{await _("npx",["template-install",t],{cwd:e})}catch(t){if(i=!0,!(t instanceof F))throw t;tB.error("Failed to run template-install command")}finally{u.stop(i?"Failed to run post install template script.":"Post install template script finished.")}};class tZ extends Error{constructor(t){super(t),this.name="InvalidProjectNameError"}}class tQ extends Error{constructor(t){super(t),this.name="InvalidTemplateNameError"}}(async()=>{let t,e=(t={},new tI(tq.UU).argument("[project-name]","The name of the project to create.").option("-t, --template <template>","Specify a template for the project.").option("--skip-dep-install","Skip installing dependencies (npm install).").option("--skip-git-init","Skip initializing a git repository.").version(tq.rE,"-v, --version").name(B().green("create-react-app")).usage(`[options] ${B().yellow("[project-name]")}`).addHelpText("after",`
68
68
  Examples:
69
69
  $ npm create @pplancq/react-app my-project
70
- $ npx @pplancq/create-react-app my-project`).action((e,u)=>{e&&(t.projectName=e),u?.skipDepInstall&&(t.skipDepInstall=u.skipDepInstall),u?.skipGitInit&&(t.skipGitInit=u.skipGitInit),u?.template&&(t.template=u.template)}).parse(_.default.argv),t);((t="")=>{process.stdout.write(`${b.gray(ts)} ${t}
71
- `)})(`Create ${A().blue("React")} App`),(({projectName:t,template:e})=>{if(t){let e=t$(t);if(""!==e)throw new tK(e)}if(e){let t=tk(e);if(""!==t)throw new tZ(t)}})(e);let{projectName:u,skipDepInstall:i,skipGitInit:D,template:r}=await tS(e),{repoDir:n}=await tw(u);await tY(n,r),await tJ(u,n),await tU(n,D),await tz(n,i),await tq(n,D),tA.success(`${A().yellow("Success \\o/")} Created ${A().green(u)} at ${A().green(n)}`),((t="",e="")=>{let u=`
70
+ $ npx @pplancq/create-react-app my-project`).action((e,u)=>{e&&(t.projectName=e),u?.skipDepInstall&&(t.skipDepInstall=u.skipDepInstall),u?.skipGitInit&&(t.skipGitInit=u.skipGitInit),u?.template&&(t.template=u.template)}).parse(E.default.argv),t);((t="")=>{process.stdout.write(`${A.gray(tn)} ${t}
71
+ `)})(`Create ${B().blue("React")} App`),(({projectName:t,template:e})=>{if(t){let e=tk(t);if(""!==e)throw new tZ(e)}if(e){let t=tS(e);if(""!==t)throw new tQ(t)}})(e);let{projectName:u,skipDepInstall:i,skipGitInit:D,template:r}=await tT(e),{repoDir:n}=await tO(u);await tJ(n,r),await tK(u,n),await tz(n,D),await tY(n,i),await tU(n,D),tB.success(`${B().yellow("Success \\o/")} Created ${B().green(u)} at ${B().green(n)}`),((t="",e="")=>{let u=`
72
72
  ${t}
73
73
  `.split(`
74
- `),i=s(e).length,D=Math.max(u.reduce((t,e)=>{let u=s(e);return u.length>t?u.length:t},0),i)+2,r=u.map(t=>`${b.gray(tn)} ${b.dim(t)}${" ".repeat(D-s(t).length)}${b.gray(tn)}`).join(`
75
- `);process.stdout.write(`${b.gray(tn)}
76
- ${b.green(tr)} ${b.reset(e)} ${b.gray(th.repeat(Math.max(D-i-1,1))+tp)}
74
+ `),i=s(e).length,D=Math.max(u.reduce((t,e)=>{let u=s(e);return u.length>t?u.length:t},0),i)+2,r=u.map(t=>`${A.gray(to)} ${A.dim(t)}${" ".repeat(D-s(t).length)}${A.gray(to)}`).join(`
75
+ `);process.stdout.write(`${A.gray(to)}
76
+ ${A.green(ts)} ${A.reset(e)} ${A.gray(tp.repeat(Math.max(D-i-1,1))+tm)}
77
77
  ${r}
78
- ${b.gray(tm+th.repeat(D+2)+tc)}
78
+ ${A.gray(tc+tp.repeat(D+2)+td)}
79
79
  `)})(`We suggest that you begin by typing:
80
- ${A().cyan("cd")} ${u}${i?`
81
- ${A().cyan("npm install")}`:""}
82
- ${A().cyan("npm start")}`,"What next?")})().then(()=>{tb("Happy hacking!"),C()}).catch(t=>{tA.error(t.message),tb("Please check and try again."),C(!0)});
80
+ ${B().cyan("cd")} ${u}${i?`
81
+ ${B().cyan("npm install")}`:""}
82
+ ${B().cyan("npm start")}`,"What next?")})().then(()=>{tA("Happy hacking!"),C()}).catch(t=>{tB.error(t.message),tA("Please check and try again."),C(!0)});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pplancq/create-react-app",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "license": "MIT",
5
5
  "description": "pplancq create-react-app",
6
6
  "author": "pplancq <paul.plancq@outlook.fr>",
@@ -41,18 +41,18 @@
41
41
  ],
42
42
  "devDependencies": {
43
43
  "@clack/prompts": "^0.11.0",
44
- "@rslib/core": "^0.17.0",
45
- "@vitest/coverage-v8": "^4.0.5",
44
+ "@rslib/core": "^0.18.2",
45
+ "@vitest/coverage-v8": "^4.0.14",
46
46
  "commander": "^14.0.2",
47
- "eslint": "^9.38.0",
47
+ "eslint": "^9.39.1",
48
48
  "eslint-plugin-prettier": "^5.5.4",
49
- "lint-staged": "^16.2.6",
49
+ "lint-staged": "^16.2.7",
50
50
  "picocolors": "^1.1.1",
51
- "prettier": "^3.6.2",
51
+ "prettier": "^3.7.1",
52
52
  "tsc-files": "^1.1.4",
53
53
  "typescript": "^5.9.3",
54
54
  "vite-tsconfig-paths": "^5.1.4",
55
- "vitest": "^4.0.5",
55
+ "vitest": "^4.0.14",
56
56
  "vitest-sonar-reporter": "^3.0.0"
57
57
  },
58
58
  "engines": {