chrome-webstore-upload-keys 1.1.6 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -170,14 +170,21 @@ module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:process
170
170
 
171
171
  /***/ }),
172
172
 
173
+ /***/ 975:
174
+ /***/ ((module) => {
175
+
176
+ module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:util");
177
+
178
+ /***/ }),
179
+
173
180
  /***/ 805:
174
181
  /***/ ((__webpack_module__, __unused_webpack___webpack_exports__, __nccwpck_require__) => {
175
182
 
176
183
  __nccwpck_require__.a(__webpack_module__, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {
177
184
  /* harmony import */ var node_process__WEBPACK_IMPORTED_MODULE_0__ = __nccwpck_require__(708);
178
185
  /* harmony import */ var node_http__WEBPACK_IMPORTED_MODULE_1__ = __nccwpck_require__(67);
179
- /* harmony import */ var _clack_prompts__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(241);
180
- /* harmony import */ var open__WEBPACK_IMPORTED_MODULE_5__ = __nccwpck_require__(908);
186
+ /* harmony import */ var _clack_prompts__WEBPACK_IMPORTED_MODULE_2__ = __nccwpck_require__(381);
187
+ /* harmony import */ var open__WEBPACK_IMPORTED_MODULE_5__ = __nccwpck_require__(218);
181
188
  /* harmony import */ var get_port__WEBPACK_IMPORTED_MODULE_4__ = __nccwpck_require__(16);
182
189
  /* harmony import */ var p_defer__WEBPACK_IMPORTED_MODULE_3__ = __nccwpck_require__(472);
183
190
 
@@ -340,127 +347,139 @@ __webpack_async_result__();
340
347
 
341
348
  /***/ }),
342
349
 
343
- /***/ 241:
350
+ /***/ 381:
344
351
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
345
352
 
346
353
 
347
354
  // EXPORTS
348
355
  __nccwpck_require__.d(__webpack_exports__, {
349
- ZT: () => (/* binding */ ue),
350
- lJ: () => (/* binding */ se),
351
- Os: () => (/* binding */ he),
352
- Lv: () => (/* binding */ oe),
353
- u1: () => (/* binding */ de),
354
- Qq: () => (/* binding */ te)
356
+ ZT: () => (/* binding */ xe),
357
+ lJ: () => (/* binding */ ye),
358
+ Os: () => (/* binding */ Ce),
359
+ Lv: () => (/* binding */ Ie),
360
+ u1: () => (/* binding */ dist_Y),
361
+ Qq: () => (/* binding */ he)
355
362
  });
356
363
 
357
- // UNUSED EXPORTS: groupMultiselect, isCancel, log, multiselect, note, outro, password, select, selectKey
364
+ // UNUSED EXPORTS: groupMultiselect, isCancel, log, multiselect, note, outro, password, select, selectKey, stream, tasks, updateSettings
358
365
 
366
+ // EXTERNAL MODULE: external "node:util"
367
+ var external_node_util_ = __nccwpck_require__(975);
359
368
  // EXTERNAL MODULE: ./node_modules/sisteransi/src/index.js
360
369
  var src = __nccwpck_require__(858);
361
370
  // EXTERNAL MODULE: external "node:process"
362
371
  var external_node_process_ = __nccwpck_require__(708);
363
372
  ;// CONCATENATED MODULE: external "node:readline"
364
373
  const external_node_readline_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:readline");
365
- ;// CONCATENATED MODULE: external "node:tty"
366
- const external_node_tty_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:tty");
374
+ ;// CONCATENATED MODULE: external "node:stream"
375
+ const external_node_stream_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream");
367
376
  // EXTERNAL MODULE: ./node_modules/picocolors/picocolors.js
368
377
  var picocolors = __nccwpck_require__(336);
369
378
  ;// CONCATENATED MODULE: ./node_modules/@clack/core/dist/index.mjs
370
- function q({onlyFirst:e=!1}={}){const F=["[\\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=><~]))"].join("|");return new RegExp(F,e?void 0:"g")}const J=q();function S(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(J,"")}function T(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dist_j={exports:{}};(function(e){var u={};e.exports=u,u.eastAsianWidth=function(t){var s=t.charCodeAt(0),C=t.length==2?t.charCodeAt(1):0,D=s;return 55296<=s&&s<=56319&&56320<=C&&C<=57343&&(s&=1023,C&=1023,D=s<<10|C,D+=65536),D==12288||65281<=D&&D<=65376||65504<=D&&D<=65510?"F":D==8361||65377<=D&&D<=65470||65474<=D&&D<=65479||65482<=D&&D<=65487||65490<=D&&D<=65495||65498<=D&&D<=65500||65512<=D&&D<=65518?"H":4352<=D&&D<=4447||4515<=D&&D<=4519||4602<=D&&D<=4607||9001<=D&&D<=9002||11904<=D&&D<=11929||11931<=D&&D<=12019||12032<=D&&D<=12245||12272<=D&&D<=12283||12289<=D&&D<=12350||12353<=D&&D<=12438||12441<=D&&D<=12543||12549<=D&&D<=12589||12593<=D&&D<=12686||12688<=D&&D<=12730||12736<=D&&D<=12771||12784<=D&&D<=12830||12832<=D&&D<=12871||12880<=D&&D<=13054||13056<=D&&D<=19903||19968<=D&&D<=42124||42128<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||55216<=D&&D<=55238||55243<=D&&D<=55291||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65106||65108<=D&&D<=65126||65128<=D&&D<=65131||110592<=D&&D<=110593||127488<=D&&D<=127490||127504<=D&&D<=127546||127552<=D&&D<=127560||127568<=D&&D<=127569||131072<=D&&D<=194367||177984<=D&&D<=196605||196608<=D&&D<=262141?"W":32<=D&&D<=126||162<=D&&D<=163||165<=D&&D<=166||D==172||D==175||10214<=D&&D<=10221||10629<=D&&D<=10630?"Na":D==161||D==164||167<=D&&D<=168||D==170||173<=D&&D<=174||176<=D&&D<=180||182<=D&&D<=186||188<=D&&D<=191||D==198||D==208||215<=D&&D<=216||222<=D&&D<=225||D==230||232<=D&&D<=234||236<=D&&D<=237||D==240||242<=D&&D<=243||247<=D&&D<=250||D==252||D==254||D==257||D==273||D==275||D==283||294<=D&&D<=295||D==299||305<=D&&D<=307||D==312||319<=D&&D<=322||D==324||328<=D&&D<=331||D==333||338<=D&&D<=339||358<=D&&D<=359||D==363||D==462||D==464||D==466||D==468||D==470||D==472||D==474||D==476||D==593||D==609||D==708||D==711||713<=D&&D<=715||D==717||D==720||728<=D&&D<=731||D==733||D==735||768<=D&&D<=879||913<=D&&D<=929||931<=D&&D<=937||945<=D&&D<=961||963<=D&&D<=969||D==1025||1040<=D&&D<=1103||D==1105||D==8208||8211<=D&&D<=8214||8216<=D&&D<=8217||8220<=D&&D<=8221||8224<=D&&D<=8226||8228<=D&&D<=8231||D==8240||8242<=D&&D<=8243||D==8245||D==8251||D==8254||D==8308||D==8319||8321<=D&&D<=8324||D==8364||D==8451||D==8453||D==8457||D==8467||D==8470||8481<=D&&D<=8482||D==8486||D==8491||8531<=D&&D<=8532||8539<=D&&D<=8542||8544<=D&&D<=8555||8560<=D&&D<=8569||D==8585||8592<=D&&D<=8601||8632<=D&&D<=8633||D==8658||D==8660||D==8679||D==8704||8706<=D&&D<=8707||8711<=D&&D<=8712||D==8715||D==8719||D==8721||D==8725||D==8730||8733<=D&&D<=8736||D==8739||D==8741||8743<=D&&D<=8748||D==8750||8756<=D&&D<=8759||8764<=D&&D<=8765||D==8776||D==8780||D==8786||8800<=D&&D<=8801||8804<=D&&D<=8807||8810<=D&&D<=8811||8814<=D&&D<=8815||8834<=D&&D<=8835||8838<=D&&D<=8839||D==8853||D==8857||D==8869||D==8895||D==8978||9312<=D&&D<=9449||9451<=D&&D<=9547||9552<=D&&D<=9587||9600<=D&&D<=9615||9618<=D&&D<=9621||9632<=D&&D<=9633||9635<=D&&D<=9641||9650<=D&&D<=9651||9654<=D&&D<=9655||9660<=D&&D<=9661||9664<=D&&D<=9665||9670<=D&&D<=9672||D==9675||9678<=D&&D<=9681||9698<=D&&D<=9701||D==9711||9733<=D&&D<=9734||D==9737||9742<=D&&D<=9743||9748<=D&&D<=9749||D==9756||D==9758||D==9792||D==9794||9824<=D&&D<=9825||9827<=D&&D<=9829||9831<=D&&D<=9834||9836<=D&&D<=9837||D==9839||9886<=D&&D<=9887||9918<=D&&D<=9919||9924<=D&&D<=9933||9935<=D&&D<=9953||D==9955||9960<=D&&D<=9983||D==10045||D==10071||10102<=D&&D<=10111||11093<=D&&D<=11097||12872<=D&&D<=12879||57344<=D&&D<=63743||65024<=D&&D<=65039||D==65533||127232<=D&&D<=127242||127248<=D&&D<=127277||127280<=D&&D<=127337||127344<=D&&D<=127386||917760<=D&&D<=917999||983040<=D&&D<=1048573||1048576<=D&&D<=1114109?"A":"N"},u.characterLength=function(t){var s=this.eastAsianWidth(t);return s=="F"||s=="W"||s=="A"?2:1};function F(t){return t.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}u.length=function(t){for(var s=F(t),C=0,D=0;D<s.length;D++)C=C+this.characterLength(s[D]);return C},u.slice=function(t,s,C){textLen=u.length(t),s=s||0,C=C||1,s<0&&(s=textLen+s),C<0&&(C=textLen+C);for(var D="",i=0,n=F(t),E=0;E<n.length;E++){var h=n[E],o=u.length(h);if(i>=s-(o==2?1:0))if(i+o<=C)D+=h;else break;i+=o}return D}})(dist_j);var Q=dist_j.exports;const X=T(Q);var DD=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\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\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(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\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])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\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};const uD=T(DD);function A(e,u={}){if(typeof e!="string"||e.length===0||(u={ambiguousIsNarrow:!0,...u},e=S(e),e.length===0))return 0;e=e.replace(uD()," ");const F=u.ambiguousIsNarrow?1:2;let t=0;for(const s of e){const C=s.codePointAt(0);if(C<=31||C>=127&&C<=159||C>=768&&C<=879)continue;switch(X.eastAsianWidth(s)){case"F":case"W":t+=2;break;case"A":t+=F;break;default:t+=1}}return t}const d=10,M=(e=0)=>u=>`\x1B[${u+e}m`,P=(e=0)=>u=>`\x1B[${38+e};5;${u}m`,dist_W=(e=0)=>(u,F,t)=>`\x1B[${38+e};2;${u};${F};${t}m`,r={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(r.modifier);const FD=Object.keys(r.color),eD=Object.keys(r.bgColor);[...FD,...eD];function tD(){const e=new Map;for(const[u,F]of Object.entries(r)){for(const[t,s]of Object.entries(F))r[t]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},F[t]=r[t],e.set(s[0],s[1]);Object.defineProperty(r,u,{value:F,enumerable:!1})}return Object.defineProperty(r,"codes",{value:e,enumerable:!1}),r.color.close="\x1B[39m",r.bgColor.close="\x1B[49m",r.color.ansi=M(),r.color.ansi256=P(),r.color.ansi16m=dist_W(),r.bgColor.ansi=M(d),r.bgColor.ansi256=P(d),r.bgColor.ansi16m=dist_W(d),Object.defineProperties(r,{rgbToAnsi256:{value:(u,F,t)=>u===F&&F===t?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(t/255*5),enumerable:!1},hexToRgb:{value:u=>{const F=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!F)return[0,0,0];let[t]=F;t.length===3&&(t=[...t].map(C=>C+C).join(""));const s=Number.parseInt(t,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:u=>r.rgbToAnsi256(...r.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,t,s;if(u>=232)F=((u-232)*10+8)/255,t=F,s=F;else{u-=16;const i=u%36;F=Math.floor(u/36)/5,t=Math.floor(i/6)/5,s=i%6/5}const C=Math.max(F,t,s)*2;if(C===0)return 30;let D=30+(Math.round(s)<<2|Math.round(t)<<1|Math.round(F));return C===2&&(D+=60),D},enumerable:!1},rgbToAnsi:{value:(u,F,t)=>r.ansi256ToAnsi(r.rgbToAnsi256(u,F,t)),enumerable:!1},hexToAnsi:{value:u=>r.ansi256ToAnsi(r.hexToAnsi256(u)),enumerable:!1}}),r}const sD=tD(),g=new Set(["\x1B","\x9B"]),CD=39,b="\x07",O="[",iD="]",I="m",w=`${iD}8;;`,N=e=>`${g.values().next().value}${O}${e}${I}`,dist_L=e=>`${g.values().next().value}${w}${e}${b}`,rD=e=>e.split(" ").map(u=>A(u)),y=(e,u,F)=>{const t=[...u];let s=!1,C=!1,D=A(S(e[e.length-1]));for(const[i,n]of t.entries()){const E=A(n);if(D+E<=F?e[e.length-1]+=n:(e.push(n),D=0),g.has(n)&&(s=!0,C=t.slice(i+1).join("").startsWith(w)),s){C?n===b&&(s=!1,C=!1):n===I&&(s=!1);continue}D+=E,D===F&&i<t.length-1&&(e.push(""),D=0)}!D&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},ED=e=>{const u=e.split(" ");let F=u.length;for(;F>0&&!(A(u[F-1])>0);)F--;return F===u.length?e:u.slice(0,F).join(" ")+u.slice(F).join("")},oD=(e,u,F={})=>{if(F.trim!==!1&&e.trim()==="")return"";let t="",s,C;const D=rD(e);let i=[""];for(const[E,h]of e.split(" ").entries()){F.trim!==!1&&(i[i.length-1]=i[i.length-1].trimStart());let o=A(i[i.length-1]);if(E!==0&&(o>=u&&(F.wordWrap===!1||F.trim===!1)&&(i.push(""),o=0),(o>0||F.trim===!1)&&(i[i.length-1]+=" ",o++)),F.hard&&D[E]>u){const B=u-o,p=1+Math.floor((D[E]-B-1)/u);Math.floor((D[E]-1)/u)<p&&i.push(""),y(i,h,u);continue}if(o+D[E]>u&&o>0&&D[E]>0){if(F.wordWrap===!1&&o<u){y(i,h,u);continue}i.push("")}if(o+D[E]>u&&F.wordWrap===!1){y(i,h,u);continue}i[i.length-1]+=h}F.trim!==!1&&(i=i.map(E=>ED(E)));const n=[...i.join(`
371
- `)];for(const[E,h]of n.entries()){if(t+=h,g.has(h)){const{groups:B}=new RegExp(`(?:\\${O}(?<code>\\d+)m|\\${w}(?<uri>.*)${b})`).exec(n.slice(E).join(""))||{groups:{}};if(B.code!==void 0){const p=Number.parseFloat(B.code);s=p===CD?void 0:p}else B.uri!==void 0&&(C=B.uri.length===0?void 0:B.uri)}const o=sD.codes.get(Number(s));n[E+1]===`
372
- `?(C&&(t+=dist_L("")),s&&o&&(t+=N(o))):h===`
373
- `&&(s&&o&&(t+=N(s)),C&&(t+=dist_L(C)))}return t};function R(e,u,F){return String(e).normalize().replace(/\r\n/g,`
379
+ function DD({onlyFirst:e=!1}={}){const t=["[\\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=><~]))"].join("|");return new RegExp(t,e?void 0:"g")}const uD=DD();function P(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return e.replace(uD,"")}function L(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var W={exports:{}};(function(e){var u={};e.exports=u,u.eastAsianWidth=function(F){var s=F.charCodeAt(0),i=F.length==2?F.charCodeAt(1):0,D=s;return 55296<=s&&s<=56319&&56320<=i&&i<=57343&&(s&=1023,i&=1023,D=s<<10|i,D+=65536),D==12288||65281<=D&&D<=65376||65504<=D&&D<=65510?"F":D==8361||65377<=D&&D<=65470||65474<=D&&D<=65479||65482<=D&&D<=65487||65490<=D&&D<=65495||65498<=D&&D<=65500||65512<=D&&D<=65518?"H":4352<=D&&D<=4447||4515<=D&&D<=4519||4602<=D&&D<=4607||9001<=D&&D<=9002||11904<=D&&D<=11929||11931<=D&&D<=12019||12032<=D&&D<=12245||12272<=D&&D<=12283||12289<=D&&D<=12350||12353<=D&&D<=12438||12441<=D&&D<=12543||12549<=D&&D<=12589||12593<=D&&D<=12686||12688<=D&&D<=12730||12736<=D&&D<=12771||12784<=D&&D<=12830||12832<=D&&D<=12871||12880<=D&&D<=13054||13056<=D&&D<=19903||19968<=D&&D<=42124||42128<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||55216<=D&&D<=55238||55243<=D&&D<=55291||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65106||65108<=D&&D<=65126||65128<=D&&D<=65131||110592<=D&&D<=110593||127488<=D&&D<=127490||127504<=D&&D<=127546||127552<=D&&D<=127560||127568<=D&&D<=127569||131072<=D&&D<=194367||177984<=D&&D<=196605||196608<=D&&D<=262141?"W":32<=D&&D<=126||162<=D&&D<=163||165<=D&&D<=166||D==172||D==175||10214<=D&&D<=10221||10629<=D&&D<=10630?"Na":D==161||D==164||167<=D&&D<=168||D==170||173<=D&&D<=174||176<=D&&D<=180||182<=D&&D<=186||188<=D&&D<=191||D==198||D==208||215<=D&&D<=216||222<=D&&D<=225||D==230||232<=D&&D<=234||236<=D&&D<=237||D==240||242<=D&&D<=243||247<=D&&D<=250||D==252||D==254||D==257||D==273||D==275||D==283||294<=D&&D<=295||D==299||305<=D&&D<=307||D==312||319<=D&&D<=322||D==324||328<=D&&D<=331||D==333||338<=D&&D<=339||358<=D&&D<=359||D==363||D==462||D==464||D==466||D==468||D==470||D==472||D==474||D==476||D==593||D==609||D==708||D==711||713<=D&&D<=715||D==717||D==720||728<=D&&D<=731||D==733||D==735||768<=D&&D<=879||913<=D&&D<=929||931<=D&&D<=937||945<=D&&D<=961||963<=D&&D<=969||D==1025||1040<=D&&D<=1103||D==1105||D==8208||8211<=D&&D<=8214||8216<=D&&D<=8217||8220<=D&&D<=8221||8224<=D&&D<=8226||8228<=D&&D<=8231||D==8240||8242<=D&&D<=8243||D==8245||D==8251||D==8254||D==8308||D==8319||8321<=D&&D<=8324||D==8364||D==8451||D==8453||D==8457||D==8467||D==8470||8481<=D&&D<=8482||D==8486||D==8491||8531<=D&&D<=8532||8539<=D&&D<=8542||8544<=D&&D<=8555||8560<=D&&D<=8569||D==8585||8592<=D&&D<=8601||8632<=D&&D<=8633||D==8658||D==8660||D==8679||D==8704||8706<=D&&D<=8707||8711<=D&&D<=8712||D==8715||D==8719||D==8721||D==8725||D==8730||8733<=D&&D<=8736||D==8739||D==8741||8743<=D&&D<=8748||D==8750||8756<=D&&D<=8759||8764<=D&&D<=8765||D==8776||D==8780||D==8786||8800<=D&&D<=8801||8804<=D&&D<=8807||8810<=D&&D<=8811||8814<=D&&D<=8815||8834<=D&&D<=8835||8838<=D&&D<=8839||D==8853||D==8857||D==8869||D==8895||D==8978||9312<=D&&D<=9449||9451<=D&&D<=9547||9552<=D&&D<=9587||9600<=D&&D<=9615||9618<=D&&D<=9621||9632<=D&&D<=9633||9635<=D&&D<=9641||9650<=D&&D<=9651||9654<=D&&D<=9655||9660<=D&&D<=9661||9664<=D&&D<=9665||9670<=D&&D<=9672||D==9675||9678<=D&&D<=9681||9698<=D&&D<=9701||D==9711||9733<=D&&D<=9734||D==9737||9742<=D&&D<=9743||9748<=D&&D<=9749||D==9756||D==9758||D==9792||D==9794||9824<=D&&D<=9825||9827<=D&&D<=9829||9831<=D&&D<=9834||9836<=D&&D<=9837||D==9839||9886<=D&&D<=9887||9918<=D&&D<=9919||9924<=D&&D<=9933||9935<=D&&D<=9953||D==9955||9960<=D&&D<=9983||D==10045||D==10071||10102<=D&&D<=10111||11093<=D&&D<=11097||12872<=D&&D<=12879||57344<=D&&D<=63743||65024<=D&&D<=65039||D==65533||127232<=D&&D<=127242||127248<=D&&D<=127277||127280<=D&&D<=127337||127344<=D&&D<=127386||917760<=D&&D<=917999||983040<=D&&D<=1048573||1048576<=D&&D<=1114109?"A":"N"},u.characterLength=function(F){var s=this.eastAsianWidth(F);return s=="F"||s=="W"||s=="A"?2:1};function t(F){return F.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]|[^\uD800-\uDFFF]/g)||[]}u.length=function(F){for(var s=t(F),i=0,D=0;D<s.length;D++)i=i+this.characterLength(s[D]);return i},u.slice=function(F,s,i){textLen=u.length(F),s=s||0,i=i||1,s<0&&(s=textLen+s),i<0&&(i=textLen+i);for(var D="",C=0,n=t(F),E=0;E<n.length;E++){var a=n[E],o=u.length(a);if(C>=s-(o==2?1:0))if(C+o<=i)D+=a;else break;C+=o}return D}})(W);var tD=W.exports;const eD=L(tD);var FD=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\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\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(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\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])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\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};const sD=L(FD);function p(e,u={}){if(typeof e!="string"||e.length===0||(u={ambiguousIsNarrow:!0,...u},e=P(e),e.length===0))return 0;e=e.replace(sD()," ");const t=u.ambiguousIsNarrow?1:2;let F=0;for(const s of e){const i=s.codePointAt(0);if(i<=31||i>=127&&i<=159||i>=768&&i<=879)continue;switch(eD.eastAsianWidth(s)){case"F":case"W":F+=2;break;case"A":F+=t;break;default:F+=1}}return F}const w=10,N=(e=0)=>u=>`\x1B[${u+e}m`,I=(e=0)=>u=>`\x1B[${38+e};5;${u}m`,R=(e=0)=>(u,t,F)=>`\x1B[${38+e};2;${u};${t};${F}m`,r={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(r.modifier);const iD=Object.keys(r.color),CD=Object.keys(r.bgColor);[...iD,...CD];function rD(){const e=new Map;for(const[u,t]of Object.entries(r)){for(const[F,s]of Object.entries(t))r[F]={open:`\x1B[${s[0]}m`,close:`\x1B[${s[1]}m`},t[F]=r[F],e.set(s[0],s[1]);Object.defineProperty(r,u,{value:t,enumerable:!1})}return Object.defineProperty(r,"codes",{value:e,enumerable:!1}),r.color.close="\x1B[39m",r.bgColor.close="\x1B[49m",r.color.ansi=N(),r.color.ansi256=I(),r.color.ansi16m=R(),r.bgColor.ansi=N(w),r.bgColor.ansi256=I(w),r.bgColor.ansi16m=R(w),Object.defineProperties(r,{rgbToAnsi256:{value:(u,t,F)=>u===t&&t===F?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(t/255*5)+Math.round(F/255*5),enumerable:!1},hexToRgb:{value:u=>{const t=/[a-f\d]{6}|[a-f\d]{3}/i.exec(u.toString(16));if(!t)return[0,0,0];let[F]=t;F.length===3&&(F=[...F].map(i=>i+i).join(""));const s=Number.parseInt(F,16);return[s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:u=>r.rgbToAnsi256(...r.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let t,F,s;if(u>=232)t=((u-232)*10+8)/255,F=t,s=t;else{u-=16;const C=u%36;t=Math.floor(u/36)/5,F=Math.floor(C/6)/5,s=C%6/5}const i=Math.max(t,F,s)*2;if(i===0)return 30;let D=30+(Math.round(s)<<2|Math.round(F)<<1|Math.round(t));return i===2&&(D+=60),D},enumerable:!1},rgbToAnsi:{value:(u,t,F)=>r.ansi256ToAnsi(r.rgbToAnsi256(u,t,F)),enumerable:!1},hexToAnsi:{value:u=>r.ansi256ToAnsi(r.hexToAnsi256(u)),enumerable:!1}}),r}const ED=rD(),d=new Set(["\x1B","\x9B"]),oD=39,y="\x07",V="[",nD="]",G="m",_=`${nD}8;;`,z=e=>`${d.values().next().value}${V}${e}${G}`,K=e=>`${d.values().next().value}${_}${e}${y}`,aD=e=>e.split(" ").map(u=>p(u)),k=(e,u,t)=>{const F=[...u];let s=!1,i=!1,D=p(P(e[e.length-1]));for(const[C,n]of F.entries()){const E=p(n);if(D+E<=t?e[e.length-1]+=n:(e.push(n),D=0),d.has(n)&&(s=!0,i=F.slice(C+1).join("").startsWith(_)),s){i?n===y&&(s=!1,i=!1):n===G&&(s=!1);continue}D+=E,D===t&&C<F.length-1&&(e.push(""),D=0)}!D&&e[e.length-1].length>0&&e.length>1&&(e[e.length-2]+=e.pop())},hD=e=>{const u=e.split(" ");let t=u.length;for(;t>0&&!(p(u[t-1])>0);)t--;return t===u.length?e:u.slice(0,t).join(" ")+u.slice(t).join("")},lD=(e,u,t={})=>{if(t.trim!==!1&&e.trim()==="")return"";let F="",s,i;const D=aD(e);let C=[""];for(const[E,a]of e.split(" ").entries()){t.trim!==!1&&(C[C.length-1]=C[C.length-1].trimStart());let o=p(C[C.length-1]);if(E!==0&&(o>=u&&(t.wordWrap===!1||t.trim===!1)&&(C.push(""),o=0),(o>0||t.trim===!1)&&(C[C.length-1]+=" ",o++)),t.hard&&D[E]>u){const c=u-o,f=1+Math.floor((D[E]-c-1)/u);Math.floor((D[E]-1)/u)<f&&C.push(""),k(C,a,u);continue}if(o+D[E]>u&&o>0&&D[E]>0){if(t.wordWrap===!1&&o<u){k(C,a,u);continue}C.push("")}if(o+D[E]>u&&t.wordWrap===!1){k(C,a,u);continue}C[C.length-1]+=a}t.trim!==!1&&(C=C.map(E=>hD(E)));const n=[...C.join(`
380
+ `)];for(const[E,a]of n.entries()){if(F+=a,d.has(a)){const{groups:c}=new RegExp(`(?:\\${V}(?<code>\\d+)m|\\${_}(?<uri>.*)${y})`).exec(n.slice(E).join(""))||{groups:{}};if(c.code!==void 0){const f=Number.parseFloat(c.code);s=f===oD?void 0:f}else c.uri!==void 0&&(i=c.uri.length===0?void 0:c.uri)}const o=ED.codes.get(Number(s));n[E+1]===`
381
+ `?(i&&(F+=K("")),s&&o&&(F+=z(o))):a===`
382
+ `&&(s&&o&&(F+=z(s)),i&&(F+=K(i)))}return F};function Y(e,u,t){return String(e).normalize().replace(/\r\n/g,`
374
383
  `).split(`
375
- `).map(t=>oD(t,u,F)).join(`
376
- `)}var nD=Object.defineProperty,aD=(e,u,F)=>u in e?nD(e,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):e[u]=F,a=(e,u,F)=>(aD(e,typeof u!="symbol"?u+"":u,F),F);function hD(e,u){if(e===u)return;const F=e.split(`
377
- `),t=u.split(`
378
- `),s=[];for(let C=0;C<Math.max(F.length,t.length);C++)F[C]!==t[C]&&s.push(C);return s}const V=Symbol("clack:cancel");function lD(e){return e===V}function v(e,u){e.isTTY&&e.setRawMode(u)}const z=new Map([["k","up"],["j","down"],["h","left"],["l","right"]]),xD=new Set(["up","down","left","right","space","enter"]);class x{constructor({render:u,input:F=external_node_process_.stdin,output:t=external_node_process_.stdout,...s},C=!0){a(this,"input"),a(this,"output"),a(this,"rl"),a(this,"opts"),a(this,"_track",!1),a(this,"_render"),a(this,"_cursor",0),a(this,"state","initial"),a(this,"value"),a(this,"error",""),a(this,"subscribers",new Map),a(this,"_prevFrame",""),this.opts=s,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=u.bind(this),this._track=C,this.input=F,this.output=t}prompt(){const u=new external_node_tty_namespaceObject.WriteStream(0);return u._write=(F,t,s)=>{this._track&&(this.value=this.rl.line.replace(/\t/g,""),this._cursor=this.rl.cursor,this.emit("value",this.value)),s()},this.input.pipe(u),this.rl=external_node_readline_namespaceObject.createInterface({input:this.input,output:u,tabSize:2,prompt:"",escapeCodeTimeout:50}),external_node_readline_namespaceObject.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),v(this.input,!0),this.output.on("resize",this.render),this.render(),new Promise((F,t)=>{this.once("submit",()=>{this.output.write(src.cursor.show),this.output.off("resize",this.render),v(this.input,!1),F(this.value)}),this.once("cancel",()=>{this.output.write(src.cursor.show),this.output.off("resize",this.render),v(this.input,!1),F(V)})})}on(u,F){const t=this.subscribers.get(u)??[];t.push({cb:F}),this.subscribers.set(u,t)}once(u,F){const t=this.subscribers.get(u)??[];t.push({cb:F,once:!0}),this.subscribers.set(u,t)}emit(u,...F){const t=this.subscribers.get(u)??[],s=[];for(const C of t)C.cb(...F),C.once&&s.push(()=>t.splice(t.indexOf(C),1));for(const C of s)C()}unsubscribe(){this.subscribers.clear()}onKeypress(u,F){if(this.state==="error"&&(this.state="active"),F?.name&&!this._track&&z.has(F.name)&&this.emit("cursor",z.get(F.name)),F?.name&&xD.has(F.name)&&this.emit("cursor",F.name),u&&(u.toLowerCase()==="y"||u.toLowerCase()==="n")&&this.emit("confirm",u.toLowerCase()==="y"),u===" "&&this.opts.placeholder&&(this.value||(this.rl.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),u&&this.emit("key",u.toLowerCase()),F?.name==="return"){if(this.opts.validate){const t=this.opts.validate(this.value);t&&(this.error=t,this.state="error",this.rl.write(this.value))}this.state!=="error"&&(this.state="submit")}u===""&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
379
- `),v(this.input,!1),this.rl.close(),this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){const u=R(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
380
- `).length-1;this.output.write(src.cursor.move(-999,u*-1))}render(){const u=R(this._render(this)??"",process.stdout.columns,{hard:!0});if(u!==this._prevFrame){if(this.state==="initial")this.output.write(src.cursor.hide);else{const F=hD(this._prevFrame,u);if(this.restoreCursor(),F&&F?.length===1){const t=F[0];this.output.write(src.cursor.move(0,t)),this.output.write(src.erase.lines(1));const s=u.split(`
381
- `);this.output.write(s[t]),this._prevFrame=u,this.output.write(src.cursor.move(0,s.length-t-1));return}else if(F&&F?.length>1){const t=F[0];this.output.write(src.cursor.move(0,t)),this.output.write(src.erase.down());const s=u.split(`
382
- `).slice(t);this.output.write(s.join(`
383
- `)),this._prevFrame=u;return}this.output.write(src.erase.down())}this.output.write(u),this.state==="initial"&&(this.state="active"),this._prevFrame=u}}}class BD extends x{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(u){super(u,!1),this.value=!!u.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",F=>{this.output.write(src.cursor.move(0,-1)),this.value=F,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}var cD=Object.defineProperty,AD=(e,u,F)=>u in e?cD(e,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):e[u]=F,G=(e,u,F)=>(AD(e,typeof u!="symbol"?u+"":u,F),F);class pD extends x{constructor(u){super(u,!1),G(this,"options"),G(this,"cursor",0);const{options:F}=u;this.options=Object.entries(F).flatMap(([t,s])=>[{value:t,group:!0,label:t},...s.map(C=>({...C,group:t}))]),this.value=[...u.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:t})=>t===u.cursorAt),0),this.on("cursor",t=>{switch(t){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case"space":this.toggleValue();break}})}getGroupItems(u){return this.options.filter(F=>F.group===u)}isGroupSelected(u){return this.getGroupItems(u).every(F=>this.value.includes(F.value))}toggleValue(){const u=this.options[this.cursor];if(u.group===!0){const F=u.value,t=this.getGroupItems(F);this.isGroupSelected(F)?this.value=this.value.filter(s=>t.findIndex(C=>C.value===s)===-1):this.value=[...this.value,...t.map(s=>s.value)],this.value=Array.from(new Set(this.value))}else{const F=this.value.includes(u.value);this.value=F?this.value.filter(t=>t!==u.value):[...this.value,u.value]}}}var fD=Object.defineProperty,gD=(e,u,F)=>u in e?fD(e,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):e[u]=F,K=(e,u,F)=>(gD(e,typeof u!="symbol"?u+"":u,F),F);let vD=class extends x{constructor(u){super(u,!1),K(this,"options"),K(this,"cursor",0),this.options=u.options,this.value=[...u.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:F})=>F===u.cursorAt),0),this.on("key",F=>{F==="a"&&this.toggleAll()}),this.on("cursor",F=>{switch(F){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case"space":this.toggleValue();break}})}get _value(){return this.options[this.cursor].value}toggleAll(){const u=this.value.length===this.options.length;this.value=u?[]:this.options.map(F=>F.value)}toggleValue(){const u=this.value.includes(this._value);this.value=u?this.value.filter(F=>F!==this._value):[...this.value,this._value]}};var mD=Object.defineProperty,dD=(e,u,F)=>u in e?mD(e,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):e[u]=F,Y=(e,u,F)=>(dD(e,typeof u!="symbol"?u+"":u,F),F);class bD extends x{constructor({mask:u,...F}){super(F),Y(this,"valueWithCursor",""),Y(this,"_mask","\u2022"),this._mask=u??"\u2022",this.on("finalize",()=>{this.valueWithCursor=this.masked}),this.on("value",()=>{if(this.cursor>=this.value.length)this.valueWithCursor=`${this.masked}${picocolors.inverse(picocolors.hidden("_"))}`;else{const t=this.masked.slice(0,this.cursor),s=this.masked.slice(this.cursor);this.valueWithCursor=`${t}${picocolors.inverse(s[0])}${s.slice(1)}`}})}get cursor(){return this._cursor}get masked(){return this.value.replaceAll(/./g,this._mask)}}var wD=Object.defineProperty,yD=(e,u,F)=>u in e?wD(e,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):e[u]=F,Z=(e,u,F)=>(yD(e,typeof u!="symbol"?u+"":u,F),F);let $D=class extends x{constructor(u){super(u,!1),Z(this,"options"),Z(this,"cursor",0),this.options=u.options,this.cursor=this.options.findIndex(({value:F})=>F===u.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",F=>{switch(F){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}};var kD=Object.defineProperty,_D=(e,u,F)=>u in e?kD(e,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):e[u]=F,H=(e,u,F)=>(_D(e,typeof u!="symbol"?u+"":u,F),F);class SD extends x{constructor(u){super(u,!1),H(this,"options"),H(this,"cursor",0),this.options=u.options;const F=this.options.map(({value:[t]})=>t?.toLowerCase());this.cursor=Math.max(F.indexOf(u.initialValue),0),this.on("key",t=>{if(!F.includes(t))return;const s=this.options.find(({value:[C]})=>C?.toLowerCase()===t);s&&(this.value=s.value,this.state="submit",this.emit("submit"))})}}var TD=Object.defineProperty,jD=(e,u,F)=>u in e?TD(e,u,{enumerable:!0,configurable:!0,writable:!0,value:F}):e[u]=F,MD=(e,u,F)=>(jD(e,typeof u!="symbol"?u+"":u,F),F);class PD extends x{constructor(u){super(u),MD(this,"valueWithCursor",""),this.on("finalize",()=>{this.value||(this.value=u.defaultValue),this.valueWithCursor=this.value}),this.on("value",()=>{if(this.cursor>=this.value.length)this.valueWithCursor=`${this.value}${picocolors.inverse(picocolors.hidden("_"))}`;else{const F=this.value.slice(0,this.cursor),t=this.value.slice(this.cursor);this.valueWithCursor=`${F}${picocolors.inverse(t[0])}${t.slice(1)}`}})}get cursor(){return this._cursor}}const WD=globalThis.process.platform.startsWith("win");function OD({input:e=external_node_process_.stdin,output:u=external_node_process_.stdout,overwrite:F=!0,hideCursor:t=!0}={}){const s=external_node_readline_namespaceObject.createInterface({input:e,output:u,prompt:"",tabSize:1});external_node_readline_namespaceObject.emitKeypressEvents(e,s),e.isTTY&&e.setRawMode(!0);const C=(D,{name:i})=>{if(String(D)===""){t&&u.write(src.cursor.show),process.exit(0);return}if(!F)return;let n=i==="return"?0:-1,E=i==="return"?-1:0;external_node_readline_namespaceObject.moveCursor(u,n,E,()=>{external_node_readline_namespaceObject.clearLine(u,1,()=>{e.once("keypress",C)})})};return t&&u.write(src.cursor.hide),e.once("keypress",C),()=>{e.off("keypress",C),t&&u.write(src.cursor.show),e.isTTY&&!WD&&e.setRawMode(!1),s.terminal=!1,s.close()}}
384
+ `).map(F=>lD(F,u,t)).join(`
385
+ `)}const xD=["up","down","left","right","space","enter","cancel"],B={actions:new Set(xD),aliases:new Map([["k","up"],["j","down"],["h","left"],["l","right"],["","cancel"],["escape","cancel"]])};function cD(e){for(const u in e){const t=u;if(!Object.hasOwn(e,t))continue;const F=e[t];switch(t){case"aliases":{for(const s in F)Object.hasOwn(F,s)&&(B.aliases.has(s)||B.aliases.set(s,F[s]));break}}}}function $(e,u){if(typeof e=="string")return B.aliases.get(e)===u;for(const t of e)if(t!==void 0&&$(t,u))return!0;return!1}function BD(e,u){if(e===u)return;const t=e.split(`
386
+ `),F=u.split(`
387
+ `),s=[];for(let i=0;i<Math.max(t.length,F.length);i++)t[i]!==F[i]&&s.push(i);return s}const AD=globalThis.process.platform.startsWith("win"),dist_S=Symbol("clack:cancel");function pD(e){return e===dist_S}function m(e,u){const t=e;t.isTTY&&t.setRawMode(u)}function fD({input:e=external_node_process_.stdin,output:u=external_node_process_.stdout,overwrite:t=!0,hideCursor:F=!0}={}){const s=external_node_readline_namespaceObject.createInterface({input:e,output:u,prompt:"",tabSize:1});external_node_readline_namespaceObject.emitKeypressEvents(e,s),e.isTTY&&e.setRawMode(!0);const i=(D,{name:C,sequence:n})=>{const E=String(D);if($([E,C,n],"cancel")){F&&u.write(src.cursor.show),process.exit(0);return}if(!t)return;const a=C==="return"?0:-1,o=C==="return"?-1:0;external_node_readline_namespaceObject.moveCursor(u,a,o,()=>{external_node_readline_namespaceObject.clearLine(u,1,()=>{e.once("keypress",i)})})};return F&&u.write(src.cursor.hide),e.once("keypress",i),()=>{e.off("keypress",i),F&&u.write(src.cursor.show),e.isTTY&&!AD&&e.setRawMode(!1),s.terminal=!1,s.close()}}var gD=Object.defineProperty,vD=(e,u,t)=>u in e?gD(e,u,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[u]=t,h=(e,u,t)=>(vD(e,typeof u!="symbol"?u+"":u,t),t);class x{constructor(u,t=!0){h(this,"input"),h(this,"output"),h(this,"_abortSignal"),h(this,"rl"),h(this,"opts"),h(this,"_render"),h(this,"_track",!1),h(this,"_prevFrame",""),h(this,"_subscribers",new Map),h(this,"_cursor",0),h(this,"state","initial"),h(this,"error",""),h(this,"value");const{input:F=external_node_process_.stdin,output:s=external_node_process_.stdout,render:i,signal:D,...C}=u;this.opts=C,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=i.bind(this),this._track=t,this._abortSignal=D,this.input=F,this.output=s}unsubscribe(){this._subscribers.clear()}setSubscriber(u,t){const F=this._subscribers.get(u)??[];F.push(t),this._subscribers.set(u,F)}on(u,t){this.setSubscriber(u,{cb:t})}once(u,t){this.setSubscriber(u,{cb:t,once:!0})}emit(u,...t){const F=this._subscribers.get(u)??[],s=[];for(const i of F)i.cb(...t),i.once&&s.push(()=>F.splice(F.indexOf(i),1));for(const i of s)i()}prompt(){return new Promise((u,t)=>{if(this._abortSignal){if(this._abortSignal.aborted)return this.state="cancel",this.close(),u(dist_S);this._abortSignal.addEventListener("abort",()=>{this.state="cancel",this.close()},{once:!0})}const F=new external_node_stream_namespaceObject.Writable;F._write=(s,i,D)=>{this._track&&(this.value=this.rl?.line.replace(/\t/g,""),this._cursor=this.rl?.cursor??0,this.emit("value",this.value)),D()},this.input.pipe(F),this.rl=external_node_readline_namespaceObject.createInterface({input:this.input,output:F,tabSize:2,prompt:"",escapeCodeTimeout:50,terminal:!0}),external_node_readline_namespaceObject.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on("keypress",this.onKeypress),m(this.input,!0),this.output.on("resize",this.render),this.render(),this.once("submit",()=>{this.output.write(src.cursor.show),this.output.off("resize",this.render),m(this.input,!1),u(this.value)}),this.once("cancel",()=>{this.output.write(src.cursor.show),this.output.off("resize",this.render),m(this.input,!1),u(dist_S)})})}onKeypress(u,t){if(this.state==="error"&&(this.state="active"),t?.name&&(!this._track&&B.aliases.has(t.name)&&this.emit("cursor",B.aliases.get(t.name)),B.actions.has(t.name)&&this.emit("cursor",t.name)),u&&(u.toLowerCase()==="y"||u.toLowerCase()==="n")&&this.emit("confirm",u.toLowerCase()==="y"),u===" "&&this.opts.placeholder&&(this.value||(this.rl?.write(this.opts.placeholder),this.emit("value",this.opts.placeholder))),u&&this.emit("key",u.toLowerCase()),t?.name==="return"){if(this.opts.validate){const F=this.opts.validate(this.value);F&&(this.error=F instanceof Error?F.message:F,this.state="error",this.rl?.write(this.value))}this.state!=="error"&&(this.state="submit")}$([u,t?.name,t?.sequence],"cancel")&&(this.state="cancel"),(this.state==="submit"||this.state==="cancel")&&this.emit("finalize"),this.render(),(this.state==="submit"||this.state==="cancel")&&this.close()}close(){this.input.unpipe(),this.input.removeListener("keypress",this.onKeypress),this.output.write(`
388
+ `),m(this.input,!1),this.rl?.close(),this.rl=void 0,this.emit(`${this.state}`,this.value),this.unsubscribe()}restoreCursor(){const u=Y(this._prevFrame,process.stdout.columns,{hard:!0}).split(`
389
+ `).length-1;this.output.write(src.cursor.move(-999,u*-1))}render(){const u=Y(this._render(this)??"",process.stdout.columns,{hard:!0});if(u!==this._prevFrame){if(this.state==="initial")this.output.write(src.cursor.hide);else{const t=BD(this._prevFrame,u);if(this.restoreCursor(),t&&t?.length===1){const F=t[0];this.output.write(src.cursor.move(0,F)),this.output.write(src.erase.lines(1));const s=u.split(`
390
+ `);this.output.write(s[F]),this._prevFrame=u,this.output.write(src.cursor.move(0,s.length-F-1));return}if(t&&t?.length>1){const F=t[0];this.output.write(src.cursor.move(0,F)),this.output.write(src.erase.down());const s=u.split(`
391
+ `).slice(F);this.output.write(s.join(`
392
+ `)),this._prevFrame=u;return}this.output.write(src.erase.down())}this.output.write(u),this.state==="initial"&&(this.state="active"),this._prevFrame=u}}}class dD extends x{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(u){super(u,!1),this.value=!!u.initialValue,this.on("value",()=>{this.value=this._value}),this.on("confirm",t=>{this.output.write(src.cursor.move(0,-1)),this.value=t,this.state="submit",this.close()}),this.on("cursor",()=>{this.value=!this.value})}}var mD=Object.defineProperty,bD=(e,u,t)=>u in e?mD(e,u,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[u]=t,Z=(e,u,t)=>(bD(e,typeof u!="symbol"?u+"":u,t),t),q=(e,u,t)=>{if(!u.has(e))throw TypeError("Cannot "+t)},T=(e,u,t)=>(q(e,u,"read from private field"),t?t.call(e):u.get(e)),wD=(e,u,t)=>{if(u.has(e))throw TypeError("Cannot add the same private member more than once");u instanceof WeakSet?u.add(e):u.set(e,t)},yD=(e,u,t,F)=>(q(e,u,"write to private field"),F?F.call(e,t):u.set(e,t),t),A;let _D=class extends x{constructor(u){super(u,!1),Z(this,"options"),Z(this,"cursor",0),wD(this,A,void 0);const{options:t}=u;yD(this,A,u.selectableGroups!==!1),this.options=Object.entries(t).flatMap(([F,s])=>[{value:F,group:!0,label:F},...s.map(i=>({...i,group:F}))]),this.value=[...u.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:F})=>F===u.cursorAt),T(this,A)?0:1),this.on("cursor",F=>{switch(F){case"left":case"up":{this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;const s=this.options[this.cursor]?.group===!0;!T(this,A)&&s&&(this.cursor=this.cursor===0?this.options.length-1:this.cursor-1);break}case"down":case"right":{this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;const s=this.options[this.cursor]?.group===!0;!T(this,A)&&s&&(this.cursor=this.cursor===this.options.length-1?0:this.cursor+1);break}case"space":this.toggleValue();break}})}getGroupItems(u){return this.options.filter(t=>t.group===u)}isGroupSelected(u){return this.getGroupItems(u).every(t=>this.value.includes(t.value))}toggleValue(){const u=this.options[this.cursor];if(u.group===!0){const t=u.value,F=this.getGroupItems(t);this.isGroupSelected(t)?this.value=this.value.filter(s=>F.findIndex(i=>i.value===s)===-1):this.value=[...this.value,...F.map(s=>s.value)],this.value=Array.from(new Set(this.value))}else{const t=this.value.includes(u.value);this.value=t?this.value.filter(F=>F!==u.value):[...this.value,u.value]}}};A=new WeakMap;var kD=Object.defineProperty,$D=(e,u,t)=>u in e?kD(e,u,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[u]=t,H=(e,u,t)=>($D(e,typeof u!="symbol"?u+"":u,t),t);let SD=class extends x{constructor(u){super(u,!1),H(this,"options"),H(this,"cursor",0),this.options=u.options,this.value=[...u.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:t})=>t===u.cursorAt),0),this.on("key",t=>{t==="a"&&this.toggleAll()}),this.on("cursor",t=>{switch(t){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case"space":this.toggleValue();break}})}get _value(){return this.options[this.cursor].value}toggleAll(){const u=this.value.length===this.options.length;this.value=u?[]:this.options.map(t=>t.value)}toggleValue(){const u=this.value.includes(this._value);this.value=u?this.value.filter(t=>t!==this._value):[...this.value,this._value]}};var TD=Object.defineProperty,jD=(e,u,t)=>u in e?TD(e,u,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[u]=t,U=(e,u,t)=>(jD(e,typeof u!="symbol"?u+"":u,t),t);class MD extends x{constructor({mask:u,...t}){super(t),U(this,"valueWithCursor",""),U(this,"_mask","\u2022"),this._mask=u??"\u2022",this.on("finalize",()=>{this.valueWithCursor=this.masked}),this.on("value",()=>{if(this.cursor>=this.value.length)this.valueWithCursor=`${this.masked}${picocolors.inverse(picocolors.hidden("_"))}`;else{const F=this.masked.slice(0,this.cursor),s=this.masked.slice(this.cursor);this.valueWithCursor=`${F}${picocolors.inverse(s[0])}${s.slice(1)}`}})}get cursor(){return this._cursor}get masked(){return this.value.replaceAll(/./g,this._mask)}}var OD=Object.defineProperty,PD=(e,u,t)=>u in e?OD(e,u,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[u]=t,J=(e,u,t)=>(PD(e,typeof u!="symbol"?u+"":u,t),t);class LD extends x{constructor(u){super(u,!1),J(this,"options"),J(this,"cursor",0),this.options=u.options,this.cursor=this.options.findIndex(({value:t})=>t===u.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on("cursor",t=>{switch(t){case"left":case"up":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case"down":case"right":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue()})}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value}}var WD=Object.defineProperty,ND=(e,u,t)=>u in e?WD(e,u,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[u]=t,Q=(e,u,t)=>(ND(e,typeof u!="symbol"?u+"":u,t),t);class ID extends x{constructor(u){super(u,!1),Q(this,"options"),Q(this,"cursor",0),this.options=u.options;const t=this.options.map(({value:[F]})=>F?.toLowerCase());this.cursor=Math.max(t.indexOf(u.initialValue),0),this.on("key",F=>{if(!t.includes(F))return;const s=this.options.find(({value:[i]})=>i?.toLowerCase()===F);s&&(this.value=s.value,this.state="submit",this.emit("submit"))})}}class RD extends x{get valueWithCursor(){if(this.state==="submit")return this.value;if(this.cursor>=this.value.length)return`${this.value}\u2588`;const u=this.value.slice(0,this.cursor),[t,...F]=this.value.slice(this.cursor);return`${u}${picocolors.inverse(t)}${F.join("")}`}get cursor(){return this._cursor}constructor(u){super(u),this.on("finalize",()=>{this.value||(this.value=u.defaultValue)})}}
384
393
  //# sourceMappingURL=index.mjs.map
385
394
 
386
395
  ;// CONCATENATED MODULE: ./node_modules/@clack/prompts/dist/index.mjs
387
- function dist_q(){return external_node_process_.platform!=="win32"?external_node_process_.env.TERM!=="linux":Boolean(external_node_process_.env.CI)||Boolean(external_node_process_.env.WT_SESSION)||Boolean(external_node_process_.env.TERMINUS_SUBLIME)||external_node_process_.env.ConEmuTask==="{cmd::Cmder}"||external_node_process_.env.TERM_PROGRAM==="Terminus-Sublime"||external_node_process_.env.TERM_PROGRAM==="vscode"||external_node_process_.env.TERM==="xterm-256color"||external_node_process_.env.TERM==="alacritty"||external_node_process_.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const _=dist_q(),o=(r,n)=>_?r:n,dist_H=o("\u25C6","*"),dist_I=o("\u25A0","x"),dist_x=o("\u25B2","x"),dist_S=o("\u25C7","o"),dist_K=o("\u250C","T"),dist_a=o("\u2502","|"),dist_d=o("\u2514","\u2014"),dist_b=o("\u25CF",">"),E=o("\u25CB"," "),C=o("\u25FB","[\u2022]"),dist_w=o("\u25FC","[+]"),dist_M=o("\u25FB","[ ]"),U=o("\u25AA","\u2022"),B=o("\u2500","-"),dist_Z=o("\u256E","+"),dist_z=o("\u251C","+"),dist_X=o("\u256F","+"),dist_J=o("\u25CF","\u2022"),dist_Y=o("\u25C6","*"),dist_Q=o("\u25B2","!"),ee=o("\u25A0","x"),dist_y=r=>{switch(r){case"initial":case"active":return picocolors.cyan(dist_H);case"cancel":return picocolors.red(dist_I);case"error":return picocolors.yellow(dist_x);case"submit":return picocolors.green(dist_S)}},te=r=>new PD({validate:r.validate,placeholder:r.placeholder,defaultValue:r.defaultValue,initialValue:r.initialValue,render(){const n=`${picocolors.gray(dist_a)}
388
- ${dist_y(this.state)} ${r.message}
389
- `,i=r.placeholder?picocolors.inverse(r.placeholder[0])+picocolors.dim(r.placeholder.slice(1)):picocolors.inverse(picocolors.hidden("_")),t=this.value?this.valueWithCursor:i;switch(this.state){case"error":return`${n.trim()}
390
- ${picocolors.yellow(dist_a)} ${t}
396
+ function ce(){return external_node_process_.platform!=="win32"?external_node_process_.env.TERM!=="linux":!!external_node_process_.env.CI||!!external_node_process_.env.WT_SESSION||!!external_node_process_.env.TERMINUS_SUBLIME||external_node_process_.env.ConEmuTask==="{cmd::Cmder}"||external_node_process_.env.TERM_PROGRAM==="Terminus-Sublime"||external_node_process_.env.TERM_PROGRAM==="vscode"||external_node_process_.env.TERM==="xterm-256color"||external_node_process_.env.TERM==="alacritty"||external_node_process_.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const dist_V=ce(),u=(t,n)=>dist_V?t:n,le=u("\u25C6","*"),dist_L=u("\u25A0","x"),dist_W=u("\u25B2","x"),C=u("\u25C7","o"),ue=u("\u250C","T"),o=u("\u2502","|"),dist_d=u("\u2514","\u2014"),dist_k=u("\u25CF",">"),dist_P=u("\u25CB"," "),dist_A=u("\u25FB","[\u2022]"),dist_T=u("\u25FC","[+]"),F=u("\u25FB","[ ]"),$e=u("\u25AA","\u2022"),dist_=u("\u2500","-"),me=u("\u256E","+"),de=u("\u251C","+"),pe=u("\u256F","+"),dist_q=u("\u25CF","\u2022"),D=u("\u25C6","*"),dist_U=u("\u25B2","!"),dist_K=u("\u25A0","x"),b=t=>{switch(t){case"initial":case"active":return picocolors.cyan(le);case"cancel":return picocolors.red(dist_L);case"error":return picocolors.yellow(dist_W);case"submit":return picocolors.green(C)}},dist_G=t=>{const{cursor:n,options:r,style:i}=t,s=t.maxItems??Number.POSITIVE_INFINITY,c=Math.max(process.stdout.rows-4,0),a=Math.min(c,Math.max(s,5));let l=0;n>=l+a-3?l=Math.max(Math.min(n-a+3,r.length-a),0):n<l+2&&(l=Math.max(n-2,0));const $=a<r.length&&l>0,g=a<r.length&&l+a<r.length;return r.slice(l,l+a).map((p,v,f)=>{const j=v===0&&$,E=v===f.length-1&&g;return j||E?e.dim("..."):i(p,v+l===n)})},he=t=>new RD({validate:t.validate,placeholder:t.placeholder,defaultValue:t.defaultValue,initialValue:t.initialValue,render(){const n=`${picocolors.gray(o)}
397
+ ${b(this.state)} ${t.message}
398
+ `,r=t.placeholder?picocolors.inverse(t.placeholder[0])+picocolors.dim(t.placeholder.slice(1)):picocolors.inverse(picocolors.hidden("_")),i=this.value?this.valueWithCursor:r;switch(this.state){case"error":return`${n.trim()}
399
+ ${picocolors.yellow(o)} ${i}
391
400
  ${picocolors.yellow(dist_d)} ${picocolors.yellow(this.error)}
392
- `;case"submit":return`${n}${picocolors.gray(dist_a)} ${picocolors.dim(this.value||r.placeholder)}`;case"cancel":return`${n}${picocolors.gray(dist_a)} ${picocolors.strikethrough(picocolors.dim(this.value??""))}${this.value?.trim()?`
393
- `+picocolors.gray(dist_a):""}`;default:return`${n}${picocolors.cyan(dist_a)} ${t}
401
+ `;case"submit":return`${n}${picocolors.gray(o)} ${picocolors.dim(this.value||t.placeholder)}`;case"cancel":return`${n}${picocolors.gray(o)} ${picocolors.strikethrough(picocolors.dim(this.value??""))}${this.value?.trim()?`
402
+ ${picocolors.gray(o)}`:""}`;default:return`${n}${picocolors.cyan(o)} ${i}
394
403
  ${picocolors.cyan(dist_d)}
395
- `}}}).prompt(),re=r=>new j({validate:r.validate,mask:r.mask??U,render(){const n=`${e.gray(dist_a)}
396
- ${dist_y(this.state)} ${r.message}
397
- `,i=this.valueWithCursor,t=this.masked;switch(this.state){case"error":return`${n.trim()}
398
- ${e.yellow(dist_a)} ${t}
404
+ `}}}).prompt(),ge=t=>new X({validate:t.validate,mask:t.mask??$e,render(){const n=`${e.gray(o)}
405
+ ${b(this.state)} ${t.message}
406
+ `,r=this.valueWithCursor,i=this.masked;switch(this.state){case"error":return`${n.trim()}
407
+ ${e.yellow(o)} ${i}
399
408
  ${e.yellow(dist_d)} ${e.yellow(this.error)}
400
- `;case"submit":return`${n}${e.gray(dist_a)} ${e.dim(t)}`;case"cancel":return`${n}${e.gray(dist_a)} ${e.strikethrough(e.dim(t??""))}${t?`
401
- `+e.gray(dist_a):""}`;default:return`${n}${e.cyan(dist_a)} ${i}
409
+ `;case"submit":return`${n}${e.gray(o)} ${e.dim(i)}`;case"cancel":return`${n}${e.gray(o)} ${e.strikethrough(e.dim(i??""))}${i?`
410
+ ${e.gray(o)}`:""}`;default:return`${n}${e.cyan(o)} ${r}
402
411
  ${e.cyan(dist_d)}
403
- `}}}).prompt(),se=r=>{const n=r.active??"Yes",i=r.inactive??"No";return new BD({active:n,inactive:i,initialValue:r.initialValue??!0,render(){const t=`${picocolors.gray(dist_a)}
404
- ${dist_y(this.state)} ${r.message}
405
- `,s=this.value?n:i;switch(this.state){case"submit":return`${t}${picocolors.gray(dist_a)} ${picocolors.dim(s)}`;case"cancel":return`${t}${picocolors.gray(dist_a)} ${picocolors.strikethrough(picocolors.dim(s))}
406
- ${picocolors.gray(dist_a)}`;default:return`${t}${picocolors.cyan(dist_a)} ${this.value?`${picocolors.green(dist_b)} ${n}`:`${picocolors.dim(E)} ${picocolors.dim(n)}`} ${picocolors.dim("/")} ${this.value?`${picocolors.dim(E)} ${picocolors.dim(i)}`:`${picocolors.green(dist_b)} ${i}`}
412
+ `}}}).prompt(),ye=t=>{const n=t.active??"Yes",r=t.inactive??"No";return new dD({active:n,inactive:r,initialValue:t.initialValue??!0,render(){const i=`${picocolors.gray(o)}
413
+ ${b(this.state)} ${t.message}
414
+ `,s=this.value?n:r;switch(this.state){case"submit":return`${i}${picocolors.gray(o)} ${picocolors.dim(s)}`;case"cancel":return`${i}${picocolors.gray(o)} ${picocolors.strikethrough(picocolors.dim(s))}
415
+ ${picocolors.gray(o)}`;default:return`${i}${picocolors.cyan(o)} ${this.value?`${picocolors.green(dist_k)} ${n}`:`${picocolors.dim(dist_P)} ${picocolors.dim(n)}`} ${picocolors.dim("/")} ${this.value?`${picocolors.dim(dist_P)} ${picocolors.dim(r)}`:`${picocolors.green(dist_k)} ${r}`}
407
416
  ${picocolors.cyan(dist_d)}
408
- `}}}).prompt()},ie=r=>{const n=(t,s)=>{const c=t.label??String(t.value);return s==="active"?`${e.green(dist_b)} ${c} ${t.hint?e.dim(`(${t.hint})`):""}`:s==="selected"?`${e.dim(c)}`:s==="cancelled"?`${e.strikethrough(e.dim(c))}`:`${e.dim(E)} ${e.dim(c)}`};let i=0;return new k({options:r.options,initialValue:r.initialValue,render(){const t=`${e.gray(dist_a)}
409
- ${dist_y(this.state)} ${r.message}
410
- `;switch(this.state){case"submit":return`${t}${e.gray(dist_a)} ${n(this.options[this.cursor],"selected")}`;case"cancel":return`${t}${e.gray(dist_a)} ${n(this.options[this.cursor],"cancelled")}
411
- ${e.gray(dist_a)}`;default:{const s=r.maxItems===void 0?1/0:Math.max(r.maxItems,5);this.cursor>=i+s-3?i=Math.max(Math.min(this.cursor-s+3,this.options.length-s),0):this.cursor<i+2&&(i=Math.max(this.cursor-2,0));const c=s<this.options.length&&i>0,l=s<this.options.length&&i+s<this.options.length;return`${t}${e.cyan(dist_a)} ${this.options.slice(i,i+s).map((u,m,$)=>m===0&&c?e.dim("..."):m===$.length-1&&l?e.dim("..."):n(u,m+i===this.cursor?"active":"inactive")).join(`
412
- ${e.cyan(dist_a)} `)}
417
+ `}}}).prompt()},ve=t=>{const n=(r,i)=>{const s=r.label??String(r.value);switch(i){case"selected":return`${e.dim(s)}`;case"active":return`${e.green(dist_k)} ${s} ${r.hint?e.dim(`(${r.hint})`):""}`;case"cancelled":return`${e.strikethrough(e.dim(s))}`;default:return`${e.dim(dist_P)} ${e.dim(s)}`}};return new ee({options:t.options,initialValue:t.initialValue,render(){const r=`${e.gray(o)}
418
+ ${b(this.state)} ${t.message}
419
+ `;switch(this.state){case"submit":return`${r}${e.gray(o)} ${n(this.options[this.cursor],"selected")}`;case"cancel":return`${r}${e.gray(o)} ${n(this.options[this.cursor],"cancelled")}
420
+ ${e.gray(o)}`;default:return`${r}${e.cyan(o)} ${dist_G({cursor:this.cursor,options:this.options,maxItems:t.maxItems,style:(i,s)=>n(i,s?"active":"inactive")}).join(`
421
+ ${e.cyan(o)} `)}
413
422
  ${e.cyan(dist_d)}
414
- `}}}}).prompt()},ne=r=>{const n=(i,t="inactive")=>{const s=i.label??String(i.value);return t==="selected"?`${e.dim(s)}`:t==="cancelled"?`${e.strikethrough(e.dim(s))}`:t==="active"?`${e.bgCyan(e.gray(` ${i.value} `))} ${s} ${i.hint?e.dim(`(${i.hint})`):""}`:`${e.gray(e.bgWhite(e.inverse(` ${i.value} `)))} ${s} ${i.hint?e.dim(`(${i.hint})`):""}`};return new W({options:r.options,initialValue:r.initialValue,render(){const i=`${e.gray(dist_a)}
415
- ${dist_y(this.state)} ${r.message}
416
- `;switch(this.state){case"submit":return`${i}${e.gray(dist_a)} ${n(this.options.find(t=>t.value===this.value),"selected")}`;case"cancel":return`${i}${e.gray(dist_a)} ${n(this.options[0],"cancelled")}
417
- ${e.gray(dist_a)}`;default:return`${i}${e.cyan(dist_a)} ${this.options.map((t,s)=>n(t,s===this.cursor?"active":"inactive")).join(`
418
- ${e.cyan(dist_a)} `)}
423
+ `}}}).prompt()},we=t=>{const n=(r,i="inactive")=>{const s=r.label??String(r.value);return i==="selected"?`${e.dim(s)}`:i==="cancelled"?`${e.strikethrough(e.dim(s))}`:i==="active"?`${e.bgCyan(e.gray(` ${r.value} `))} ${s} ${r.hint?e.dim(`(${r.hint})`):""}`:`${e.gray(e.bgWhite(e.inverse(` ${r.value} `)))} ${s} ${r.hint?e.dim(`(${r.hint})`):""}`};return new te({options:t.options,initialValue:t.initialValue,render(){const r=`${e.gray(o)}
424
+ ${b(this.state)} ${t.message}
425
+ `;switch(this.state){case"submit":return`${r}${e.gray(o)} ${n(this.options.find(i=>i.value===this.value)??t.options[0],"selected")}`;case"cancel":return`${r}${e.gray(o)} ${n(this.options[0],"cancelled")}
426
+ ${e.gray(o)}`;default:return`${r}${e.cyan(o)} ${this.options.map((i,s)=>n(i,s===this.cursor?"active":"inactive")).join(`
427
+ ${e.cyan(o)} `)}
419
428
  ${e.cyan(dist_d)}
420
- `}}}).prompt()},ae=r=>{const n=(i,t)=>{const s=i.label??String(i.value);return t==="active"?`${e.cyan(C)} ${s} ${i.hint?e.dim(`(${i.hint})`):""}`:t==="selected"?`${e.green(dist_w)} ${e.dim(s)}`:t==="cancelled"?`${e.strikethrough(e.dim(s))}`:t==="active-selected"?`${e.green(dist_w)} ${s} ${i.hint?e.dim(`(${i.hint})`):""}`:t==="submitted"?`${e.dim(s)}`:`${e.dim(dist_M)} ${e.dim(s)}`};return new D({options:r.options,initialValues:r.initialValues,required:r.required??!0,cursorAt:r.cursorAt,validate(i){if(this.required&&i.length===0)return`Please select at least one option.
421
- ${e.reset(e.dim(`Press ${e.gray(e.bgWhite(e.inverse(" space ")))} to select, ${e.gray(e.bgWhite(e.inverse(" enter ")))} to submit`))}`},render(){let i=`${e.gray(dist_a)}
422
- ${dist_y(this.state)} ${r.message}
423
- `;switch(this.state){case"submit":return`${i}${e.gray(dist_a)} ${this.options.filter(({value:t})=>this.value.includes(t)).map(t=>n(t,"submitted")).join(e.dim(", "))||e.dim("none")}`;case"cancel":{const t=this.options.filter(({value:s})=>this.value.includes(s)).map(s=>n(s,"cancelled")).join(e.dim(", "));return`${i}${e.gray(dist_a)} ${t.trim()?`${t}
424
- ${e.gray(dist_a)}`:""}`}case"error":{const t=this.error.split(`
425
- `).map((s,c)=>c===0?`${e.yellow(dist_d)} ${e.yellow(s)}`:` ${s}`).join(`
426
- `);return i+e.yellow(dist_a)+" "+this.options.map((s,c)=>{const l=this.value.includes(s.value),u=c===this.cursor;return u&&l?n(s,"active-selected"):l?n(s,"selected"):n(s,u?"active":"inactive")}).join(`
427
- ${e.yellow(dist_a)} `)+`
428
- `+t+`
429
- `}default:return`${i}${e.cyan(dist_a)} ${this.options.map((t,s)=>{const c=this.value.includes(t.value),l=s===this.cursor;return l&&c?n(t,"active-selected"):c?n(t,"selected"):n(t,l?"active":"inactive")}).join(`
430
- ${e.cyan(dist_a)} `)}
429
+ `}}}).prompt()},fe=t=>{const n=(r,i)=>{const s=r.label??String(r.value);return i==="active"?`${e.cyan(dist_A)} ${s} ${r.hint?e.dim(`(${r.hint})`):""}`:i==="selected"?`${e.green(dist_T)} ${e.dim(s)} ${r.hint?e.dim(`(${r.hint})`):""}`:i==="cancelled"?`${e.strikethrough(e.dim(s))}`:i==="active-selected"?`${e.green(dist_T)} ${s} ${r.hint?e.dim(`(${r.hint})`):""}`:i==="submitted"?`${e.dim(s)}`:`${e.dim(F)} ${e.dim(s)}`};return new re({options:t.options,initialValues:t.initialValues,required:t.required??!0,cursorAt:t.cursorAt,validate(r){if(this.required&&r.length===0)return`Please select at least one option.
430
+ ${e.reset(e.dim(`Press ${e.gray(e.bgWhite(e.inverse(" space ")))} to select, ${e.gray(e.bgWhite(e.inverse(" enter ")))} to submit`))}`},render(){const r=`${e.gray(o)}
431
+ ${b(this.state)} ${t.message}
432
+ `,i=(s,c)=>{const a=this.value.includes(s.value);return c&&a?n(s,"active-selected"):a?n(s,"selected"):n(s,c?"active":"inactive")};switch(this.state){case"submit":return`${r}${e.gray(o)} ${this.options.filter(({value:s})=>this.value.includes(s)).map(s=>n(s,"submitted")).join(e.dim(", "))||e.dim("none")}`;case"cancel":{const s=this.options.filter(({value:c})=>this.value.includes(c)).map(c=>n(c,"cancelled")).join(e.dim(", "));return`${r}${e.gray(o)} ${s.trim()?`${s}
433
+ ${e.gray(o)}`:""}`}case"error":{const s=this.error.split(`
434
+ `).map((c,a)=>a===0?`${e.yellow(dist_d)} ${e.yellow(c)}`:` ${c}`).join(`
435
+ `);return`${r+e.yellow(o)} ${dist_G({options:this.options,cursor:this.cursor,maxItems:t.maxItems,style:i}).join(`
436
+ ${e.yellow(o)} `)}
437
+ ${s}
438
+ `}default:return`${r}${e.cyan(o)} ${dist_G({options:this.options,cursor:this.cursor,maxItems:t.maxItems,style:i}).join(`
439
+ ${e.cyan(o)} `)}
431
440
  ${e.cyan(dist_d)}
432
- `}}}).prompt()},ce=r=>{const n=(i,t,s=[])=>{const c=i.label??String(i.value),l=typeof i.group=="string",u=l&&(s[s.indexOf(i)+1]??{group:!0}),m=l&&u.group===!0,$=l?`${m?dist_d:dist_a} `:"";return t==="active"?`${e.dim($)}${e.cyan(C)} ${c} ${i.hint?e.dim(`(${i.hint})`):""}`:t==="group-active"?`${$}${e.cyan(C)} ${e.dim(c)}`:t==="group-active-selected"?`${$}${e.green(dist_w)} ${e.dim(c)}`:t==="selected"?`${e.dim($)}${e.green(dist_w)} ${e.dim(c)}`:t==="cancelled"?`${e.strikethrough(e.dim(c))}`:t==="active-selected"?`${e.dim($)}${e.green(dist_w)} ${c} ${i.hint?e.dim(`(${i.hint})`):""}`:t==="submitted"?`${e.dim(c)}`:`${e.dim($)}${e.dim(dist_M)} ${e.dim(c)}`};return new L({options:r.options,initialValues:r.initialValues,required:r.required??!0,cursorAt:r.cursorAt,validate(i){if(this.required&&i.length===0)return`Please select at least one option.
433
- ${e.reset(e.dim(`Press ${e.gray(e.bgWhite(e.inverse(" space ")))} to select, ${e.gray(e.bgWhite(e.inverse(" enter ")))} to submit`))}`},render(){let i=`${e.gray(dist_a)}
434
- ${dist_y(this.state)} ${r.message}
435
- `;switch(this.state){case"submit":return`${i}${e.gray(dist_a)} ${this.options.filter(({value:t})=>this.value.includes(t)).map(t=>n(t,"submitted")).join(e.dim(", "))}`;case"cancel":{const t=this.options.filter(({value:s})=>this.value.includes(s)).map(s=>n(s,"cancelled")).join(e.dim(", "));return`${i}${e.gray(dist_a)} ${t.trim()?`${t}
436
- ${e.gray(dist_a)}`:""}`}case"error":{const t=this.error.split(`
437
- `).map((s,c)=>c===0?`${e.yellow(dist_d)} ${e.yellow(s)}`:` ${s}`).join(`
438
- `);return`${i}${e.yellow(dist_a)} ${this.options.map((s,c,l)=>{const u=this.value.includes(s.value)||s.group===!0&&this.isGroupSelected(`${s.value}`),m=c===this.cursor;return!m&&typeof s.group=="string"&&this.options[this.cursor].value===s.group?n(s,u?"group-active-selected":"group-active",l):m&&u?n(s,"active-selected",l):u?n(s,"selected",l):n(s,m?"active":"inactive",l)}).join(`
439
- ${e.yellow(dist_a)} `)}
440
- ${t}
441
- `}default:return`${i}${e.cyan(dist_a)} ${this.options.map((t,s,c)=>{const l=this.value.includes(t.value)||t.group===!0&&this.isGroupSelected(`${t.value}`),u=s===this.cursor;return!u&&typeof t.group=="string"&&this.options[this.cursor].value===t.group?n(t,l?"group-active-selected":"group-active",c):u&&l?n(t,"active-selected",c):l?n(t,"selected",c):n(t,u?"active":"inactive",c)}).join(`
442
- ${e.cyan(dist_a)} `)}
441
+ `}}}).prompt()},be=t=>{const{selectableGroups:n=!0}=t,r=(i,s,c=[])=>{const a=i.label??String(i.value),l=typeof i.group=="string",$=l&&(c[c.indexOf(i)+1]??{group:!0}),g=l&&$.group===!0,p=l?n?`${g?dist_d:o} `:" ":"";if(s==="active")return`${e.dim(p)}${e.cyan(dist_A)} ${a} ${i.hint?e.dim(`(${i.hint})`):""}`;if(s==="group-active")return`${p}${e.cyan(dist_A)} ${e.dim(a)}`;if(s==="group-active-selected")return`${p}${e.green(dist_T)} ${e.dim(a)}`;if(s==="selected"){const f=l||n?e.green(dist_T):"";return`${e.dim(p)}${f} ${e.dim(a)} ${i.hint?e.dim(`(${i.hint})`):""}`}if(s==="cancelled")return`${e.strikethrough(e.dim(a))}`;if(s==="active-selected")return`${e.dim(p)}${e.green(dist_T)} ${a} ${i.hint?e.dim(`(${i.hint})`):""}`;if(s==="submitted")return`${e.dim(a)}`;const v=l||n?e.dim(F):"";return`${e.dim(p)}${v} ${e.dim(a)}`};return new se({options:t.options,initialValues:t.initialValues,required:t.required??!0,cursorAt:t.cursorAt,selectableGroups:n,validate(i){if(this.required&&i.length===0)return`Please select at least one option.
442
+ ${e.reset(e.dim(`Press ${e.gray(e.bgWhite(e.inverse(" space ")))} to select, ${e.gray(e.bgWhite(e.inverse(" enter ")))} to submit`))}`},render(){const i=`${e.gray(o)}
443
+ ${b(this.state)} ${t.message}
444
+ `;switch(this.state){case"submit":return`${i}${e.gray(o)} ${this.options.filter(({value:s})=>this.value.includes(s)).map(s=>r(s,"submitted")).join(e.dim(", "))}`;case"cancel":{const s=this.options.filter(({value:c})=>this.value.includes(c)).map(c=>r(c,"cancelled")).join(e.dim(", "));return`${i}${e.gray(o)} ${s.trim()?`${s}
445
+ ${e.gray(o)}`:""}`}case"error":{const s=this.error.split(`
446
+ `).map((c,a)=>a===0?`${e.yellow(dist_d)} ${e.yellow(c)}`:` ${c}`).join(`
447
+ `);return`${i}${e.yellow(o)} ${this.options.map((c,a,l)=>{const $=this.value.includes(c.value)||c.group===!0&&this.isGroupSelected(`${c.value}`),g=a===this.cursor;return!g&&typeof c.group=="string"&&this.options[this.cursor].value===c.group?r(c,$?"group-active-selected":"group-active",l):g&&$?r(c,"active-selected",l):$?r(c,"selected",l):r(c,g?"active":"inactive",l)}).join(`
448
+ ${e.yellow(o)} `)}
449
+ ${s}
450
+ `}default:return`${i}${e.cyan(o)} ${this.options.map((s,c,a)=>{const l=this.value.includes(s.value)||s.group===!0&&this.isGroupSelected(`${s.value}`),$=c===this.cursor;return!$&&typeof s.group=="string"&&this.options[this.cursor].value===s.group?r(s,l?"group-active-selected":"group-active",a):$&&l?r(s,"active-selected",a):l?r(s,"selected",a):r(s,$?"active":"inactive",a)}).join(`
451
+ ${e.cyan(o)} `)}
443
452
  ${e.cyan(dist_d)}
444
- `}}}).prompt()},dist_R=r=>r.replace(me(),""),le=(r="",n="")=>{const i=`
445
- ${r}
453
+ `}}}).prompt()},Me=(t="",n="")=>{const r=`
454
+ ${t}
446
455
  `.split(`
447
- `),t=dist_R(n).length,s=Math.max(i.reduce((l,u)=>(u=dist_R(u),u.length>l?u.length:l),0),t)+2,c=i.map(l=>`${e.gray(dist_a)} ${e.dim(l)}${" ".repeat(s-dist_R(l).length)}${e.gray(dist_a)}`).join(`
448
- `);process.stdout.write(`${e.gray(dist_a)}
449
- ${e.green(dist_S)} ${e.reset(n)} ${e.gray(B.repeat(Math.max(s-t-1,1))+dist_Z)}
456
+ `),i=S(n).length,s=Math.max(r.reduce((a,l)=>{const $=S(l);return $.length>a?$.length:a},0),i)+2,c=r.map(a=>`${e.gray(o)} ${e.dim(a)}${" ".repeat(s-S(a).length)}${e.gray(o)}`).join(`
457
+ `);process.stdout.write(`${e.gray(o)}
458
+ ${e.green(C)} ${e.reset(n)} ${e.gray(dist_.repeat(Math.max(s-i-1,1))+me)}
450
459
  ${c}
451
- ${e.gray(dist_z+B.repeat(s+2)+dist_X)}
452
- `)},ue=(r="")=>{process.stdout.write(`${picocolors.gray(dist_d)} ${picocolors.red(r)}
460
+ ${e.gray(de+dist_.repeat(s+2)+pe)}
461
+ `)},xe=(t="")=>{process.stdout.write(`${picocolors.gray(dist_d)} ${picocolors.red(t)}
453
462
 
454
- `)},oe=(r="")=>{process.stdout.write(`${picocolors.gray(dist_K)} ${r}
455
- `)},$e=(r="")=>{process.stdout.write(`${e.gray(dist_a)}
456
- ${e.gray(dist_d)} ${r}
463
+ `)},Ie=(t="")=>{process.stdout.write(`${picocolors.gray(ue)} ${t}
464
+ `)},Se=(t="")=>{process.stdout.write(`${e.gray(o)}
465
+ ${e.gray(dist_d)} ${t}
457
466
 
458
- `)},f={message:(r="",{symbol:n=picocolors.gray(dist_a)}={})=>{const i=[`${picocolors.gray(dist_a)}`];if(r){const[t,...s]=r.split(`
459
- `);i.push(`${n} ${t}`,...s.map(c=>`${picocolors.gray(dist_a)} ${c}`))}process.stdout.write(`${i.join(`
467
+ `)},M={message:(t="",{symbol:n=picocolors.gray(o)}={})=>{const r=[`${picocolors.gray(o)}`];if(t){const[i,...s]=t.split(`
468
+ `);r.push(`${n} ${i}`,...s.map(c=>`${picocolors.gray(o)} ${c}`))}process.stdout.write(`${r.join(`
460
469
  `)}
461
- `)},info:r=>{f.message(r,{symbol:picocolors.blue(dist_J)})},success:r=>{f.message(r,{symbol:picocolors.green(dist_Y)})},step:r=>{f.message(r,{symbol:picocolors.green(dist_S)})},warn:r=>{f.message(r,{symbol:picocolors.yellow(dist_Q)})},warning:r=>{f.warn(r)},error:r=>{f.message(r,{symbol:picocolors.red(ee)})}},de=()=>{const r=_?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],n=_?80:120;let i,t,s=!1,c="";const l=(v="")=>{s=!0,i=OD(),c=v.replace(/\.+$/,""),process.stdout.write(`${picocolors.gray(dist_a)}
462
- `);let g=0,p=0;t=setInterval(()=>{const O=picocolors.magenta(r[g]),P=".".repeat(Math.floor(p)).slice(0,3);process.stdout.write(src.cursor.move(-999,0)),process.stdout.write(src.erase.down(1)),process.stdout.write(`${O} ${c}${P}`),g=g+1<r.length?g+1:0,p=p<r.length?p+.125:0},n)},u=(v="",g=0)=>{c=v??c,s=!1,clearInterval(t);const p=g===0?picocolors.green(dist_S):g===1?picocolors.red(dist_I):picocolors.red(dist_x);process.stdout.write(src.cursor.move(-999,0)),process.stdout.write(src.erase.down(1)),process.stdout.write(`${p} ${c}
463
- `),i()},m=(v="")=>{c=v??c},$=v=>{const g=v>1?"Something went wrong":"Canceled";s&&u(g,v)};return process.on("uncaughtExceptionMonitor",()=>$(2)),process.on("unhandledRejection",()=>$(2)),process.on("SIGINT",()=>$(1)),process.on("SIGTERM",()=>$(1)),process.on("exit",$),{start:l,stop:u,message:m}};function me(){const r=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(r,"g")}const he=async(r,n)=>{const i={},t=Object.keys(r);for(const s of t){const c=r[s],l=await c({results:i})?.catch(u=>{throw u});if(typeof n?.onCancel=="function"&&lD(l)){i[s]="canceled",n.onCancel({results:i});continue}i[s]=l}return i};
470
+ `)},info:t=>{M.message(t,{symbol:picocolors.blue(dist_q)})},success:t=>{M.message(t,{symbol:picocolors.green(D)})},step:t=>{M.message(t,{symbol:picocolors.green(C)})},warn:t=>{M.message(t,{symbol:picocolors.yellow(dist_U)})},warning:t=>{M.warn(t)},error:t=>{M.message(t,{symbol:picocolors.red(dist_K)})}},dist_J=`${picocolors.gray(o)} `,dist_x={message:async(t,{symbol:n=picocolors.gray(o)}={})=>{process.stdout.write(`${picocolors.gray(o)}
471
+ ${n} `);let r=3;for await(let i of t){i=i.replace(/\n/g,`
472
+ ${dist_J}`),i.includes(`
473
+ `)&&(r=3+(0,external_node_util_.stripVTControlCharacters)(i.slice(i.lastIndexOf(`
474
+ `))).length);const s=(0,external_node_util_.stripVTControlCharacters)(i).length;r+s<process.stdout.columns?(r+=s,process.stdout.write(i)):(process.stdout.write(`
475
+ ${dist_J}${i.trimStart()}`),r=3+(0,external_node_util_.stripVTControlCharacters)(i.trimStart()).length)}process.stdout.write(`
476
+ `)},info:t=>dist_x.message(t,{symbol:picocolors.blue(dist_q)}),success:t=>dist_x.message(t,{symbol:picocolors.green(D)}),step:t=>dist_x.message(t,{symbol:picocolors.green(C)}),warn:t=>dist_x.message(t,{symbol:picocolors.yellow(dist_U)}),warning:t=>dist_x.warn(t),error:t=>dist_x.message(t,{symbol:picocolors.red(dist_K)})},dist_Y=({indicator:t="dots"}={})=>{const n=dist_V?["\u25D2","\u25D0","\u25D3","\u25D1"]:["\u2022","o","O","0"],r=dist_V?80:120,i=process.env.CI==="true";let s,c,a=!1,l="",$,g=performance.now();const p=m=>{const h=m>1?"Something went wrong":"Canceled";a&&N(h,m)},v=()=>p(2),f=()=>p(1),j=()=>{process.on("uncaughtExceptionMonitor",v),process.on("unhandledRejection",v),process.on("SIGINT",f),process.on("SIGTERM",f),process.on("exit",p)},E=()=>{process.removeListener("uncaughtExceptionMonitor",v),process.removeListener("unhandledRejection",v),process.removeListener("SIGINT",f),process.removeListener("SIGTERM",f),process.removeListener("exit",p)},B=()=>{if($===void 0)return;i&&process.stdout.write(`
477
+ `);const m=$.split(`
478
+ `);process.stdout.write(src.cursor.move(-999,m.length-1)),process.stdout.write(src.erase.down(m.length))},R=m=>m.replace(/\.+$/,""),O=m=>{const h=(performance.now()-m)/1e3,w=Math.floor(h/60),I=Math.floor(h%60);return w>0?`[${w}m ${I}s]`:`[${I}s]`},H=(m="")=>{a=!0,s=fD(),l=R(m),g=performance.now(),process.stdout.write(`${picocolors.gray(o)}
479
+ `);let h=0,w=0;j(),c=setInterval(()=>{if(i&&l===$)return;B(),$=l;const I=picocolors.magenta(n[h]);if(i)process.stdout.write(`${I} ${l}...`);else if(t==="timer")process.stdout.write(`${I} ${l} ${O(g)}`);else{const z=".".repeat(Math.floor(w)).slice(0,3);process.stdout.write(`${I} ${l}${z}`)}h=h+1<n.length?h+1:0,w=w<n.length?w+.125:0},r)},N=(m="",h=0)=>{a=!1,clearInterval(c),B();const w=h===0?picocolors.green(C):h===1?picocolors.red(dist_L):picocolors.red(dist_W);l=R(m??l),t==="timer"?process.stdout.write(`${w} ${l} ${O(g)}
480
+ `):process.stdout.write(`${w} ${l}
481
+ `),E(),s()};return{start:H,stop:N,message:(m="")=>{l=R(m??l)}}},Ce=async(t,n)=>{const r={},i=Object.keys(t);for(const s of i){const c=t[s],a=await c({results:r})?.catch(l=>{throw l});if(typeof n?.onCancel=="function"&&pD(a)){r[s]="canceled",n.onCancel({results:r});continue}r[s]=a}return r},Te=async t=>{for(const n of t){if(n.enabled===!1)continue;const r=dist_Y();r.start(n.title);const i=await n.task(r.message);r.stop(i||n.title)}};
482
+ //# sourceMappingURL=index.mjs.map
464
483
 
465
484
 
466
485
  /***/ }),
@@ -670,7 +689,7 @@ function clearLockedPorts() {
670
689
 
671
690
  /***/ }),
672
691
 
673
- /***/ 908:
692
+ /***/ 218:
674
693
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __nccwpck_require__) => {
675
694
 
676
695
 
@@ -683,14 +702,10 @@ __nccwpck_require__.d(__webpack_exports__, {
683
702
 
684
703
  // EXTERNAL MODULE: external "node:process"
685
704
  var external_node_process_ = __nccwpck_require__(708);
686
- ;// CONCATENATED MODULE: external "node:buffer"
687
- const external_node_buffer_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:buffer");
688
705
  ;// CONCATENATED MODULE: external "node:path"
689
706
  const external_node_path_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:path");
690
707
  ;// CONCATENATED MODULE: external "node:url"
691
708
  const external_node_url_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:url");
692
- ;// CONCATENATED MODULE: external "node:util"
693
- const external_node_util_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:util");
694
709
  ;// CONCATENATED MODULE: external "node:child_process"
695
710
  const external_node_child_process_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:child_process");
696
711
  ;// CONCATENATED MODULE: external "node:fs/promises"
@@ -784,11 +799,79 @@ const isWsl = () => {
784
799
 
785
800
  /* harmony default export */ const is_wsl = (external_node_process_.env.__IS_WSL_TEST__ ? isWsl : isWsl());
786
801
 
802
+ // EXTERNAL MODULE: external "node:util"
803
+ var external_node_util_ = __nccwpck_require__(975);
804
+ ;// CONCATENATED MODULE: external "node:buffer"
805
+ const external_node_buffer_namespaceObject = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:buffer");
806
+ ;// CONCATENATED MODULE: ./node_modules/powershell-utils/index.js
807
+
808
+
809
+
810
+
811
+
812
+
813
+ const execFile = (0,external_node_util_.promisify)(external_node_child_process_namespaceObject.execFile);
814
+
815
+ const powerShellPath = () => `${external_node_process_.env.SYSTEMROOT || external_node_process_.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
816
+
817
+ // Cache for PowerShell accessibility check
818
+ let canAccessCache;
819
+
820
+ const canAccessPowerShell = async () => {
821
+ canAccessCache ??= (async () => {
822
+ try {
823
+ await fs.access(powerShellPath(), fsConstants.X_OK);
824
+ return true;
825
+ } catch {
826
+ return false;
827
+ }
828
+ })();
829
+
830
+ return canAccessCache;
831
+ };
832
+
833
+ const executePowerShell = async (command, options = {}) => {
834
+ const {
835
+ powerShellPath: psPath,
836
+ ...execFileOptions
837
+ } = options;
838
+
839
+ const encodedCommand = executePowerShell.encodeCommand(command);
840
+
841
+ return execFile(
842
+ psPath ?? powerShellPath(),
843
+ [
844
+ ...executePowerShell.argumentsPrefix,
845
+ encodedCommand,
846
+ ],
847
+ {
848
+ encoding: 'utf8',
849
+ ...execFileOptions,
850
+ },
851
+ );
852
+ };
853
+
854
+ executePowerShell.argumentsPrefix = [
855
+ '-NoProfile',
856
+ '-NonInteractive',
857
+ '-ExecutionPolicy',
858
+ 'Bypass',
859
+ '-EncodedCommand',
860
+ ];
861
+
862
+ executePowerShell.encodeCommand = command => external_node_buffer_namespaceObject.Buffer.from(command, 'utf16le').toString('base64');
863
+
864
+ executePowerShell.escapeArgument = value => `'${String(value).replaceAll('\'', '\'\'')}'`;
865
+
787
866
  ;// CONCATENATED MODULE: ./node_modules/wsl-utils/index.js
788
867
 
789
868
 
790
869
 
791
870
 
871
+
872
+
873
+ const wsl_utils_execFile = (0,external_node_util_.promisify)(external_node_child_process_namespaceObject.execFile);
874
+
792
875
  const wslDrivesMountPoint = (() => {
793
876
  // Default value for "root" param
794
877
  // according to https://docs.microsoft.com/en-us/windows/wsl/wsl-config
@@ -833,12 +916,48 @@ const powerShellPathFromWsl = async () => {
833
916
  return `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`;
834
917
  };
835
918
 
836
- const powerShellPath = async () => {
837
- if (is_wsl) {
838
- return powerShellPathFromWsl();
919
+ const wsl_utils_powerShellPath = is_wsl ? powerShellPathFromWsl : powerShellPath;
920
+
921
+ // Cache for PowerShell accessibility check
922
+ let canAccessPowerShellPromise;
923
+
924
+ const wsl_utils_canAccessPowerShell = async () => {
925
+ canAccessPowerShellPromise ??= (async () => {
926
+ try {
927
+ const psPath = await wsl_utils_powerShellPath();
928
+ await promises_namespaceObject.access(psPath, promises_namespaceObject.constants.X_OK);
929
+ return true;
930
+ } catch {
931
+ // PowerShell is not accessible (either doesn't exist, no execute permission, or other error)
932
+ return false;
933
+ }
934
+ })();
935
+
936
+ return canAccessPowerShellPromise;
937
+ };
938
+
939
+ const wslDefaultBrowser = async () => {
940
+ const psPath = await wsl_utils_powerShellPath();
941
+ const command = String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`;
942
+
943
+ const {stdout} = await executePowerShell(command, {powerShellPath: psPath});
944
+
945
+ return stdout.trim();
946
+ };
947
+
948
+ const convertWslPathToWindows = async path => {
949
+ // Don't convert URLs
950
+ if (/^[a-z]+:\/\//i.test(path)) {
951
+ return path;
839
952
  }
840
953
 
841
- return `${external_node_process_.env.SYSTEMROOT || external_node_process_.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`;
954
+ try {
955
+ const {stdout} = await wsl_utils_execFile('wslpath', ['-aw', path], {encoding: 'utf8'});
956
+ return stdout.trim();
957
+ } catch {
958
+ // If wslpath fails, return the original path
959
+ return path;
960
+ }
842
961
  };
843
962
 
844
963
 
@@ -863,24 +982,87 @@ function defineLazyProperty(object, propertyName, valueGetter) {
863
982
  return object;
864
983
  }
865
984
 
985
+ ;// CONCATENATED MODULE: ./node_modules/default-browser/windows.js
986
+
987
+
988
+
989
+ const execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_namespaceObject.execFile);
990
+
991
+ // TODO: Fix the casing of bundle identifiers in the next major version.
992
+
993
+ // Windows doesn't have browser IDs in the same way macOS/Linux does so we give fake
994
+ // ones that look real and match the macOS/Linux versions for cross-platform apps.
995
+ const windowsBrowserProgIds = {
996
+ MSEdgeHTM: {name: 'Edge', id: 'com.microsoft.edge'}, // The missing `L` is correct.
997
+ MSEdgeBHTML: {name: 'Edge Beta', id: 'com.microsoft.edge.beta'},
998
+ MSEdgeDHTML: {name: 'Edge Dev', id: 'com.microsoft.edge.dev'},
999
+ AppXq0fevzme2pys62n3e0fbqa7peapykr8v: {name: 'Edge', id: 'com.microsoft.edge.old'},
1000
+ ChromeHTML: {name: 'Chrome', id: 'com.google.chrome'},
1001
+ ChromeBHTML: {name: 'Chrome Beta', id: 'com.google.chrome.beta'},
1002
+ ChromeDHTML: {name: 'Chrome Dev', id: 'com.google.chrome.dev'},
1003
+ ChromiumHTM: {name: 'Chromium', id: 'org.chromium.Chromium'},
1004
+ BraveHTML: {name: 'Brave', id: 'com.brave.Browser'},
1005
+ BraveBHTML: {name: 'Brave Beta', id: 'com.brave.Browser.beta'},
1006
+ BraveDHTML: {name: 'Brave Dev', id: 'com.brave.Browser.dev'},
1007
+ BraveSSHTM: {name: 'Brave Nightly', id: 'com.brave.Browser.nightly'},
1008
+ FirefoxURL: {name: 'Firefox', id: 'org.mozilla.firefox'},
1009
+ OperaStable: {name: 'Opera', id: 'com.operasoftware.Opera'},
1010
+ VivaldiHTM: {name: 'Vivaldi', id: 'com.vivaldi.Vivaldi'},
1011
+ 'IE.HTTP': {name: 'Internet Explorer', id: 'com.microsoft.ie'},
1012
+ };
1013
+
1014
+ const _windowsBrowserProgIdMap = new Map(Object.entries(windowsBrowserProgIds));
1015
+
1016
+ class UnknownBrowserError extends Error {}
1017
+
1018
+ async function defaultBrowser(_execFileAsync = execFileAsync) {
1019
+ const {stdout} = await _execFileAsync('reg', [
1020
+ 'QUERY',
1021
+ ' HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice',
1022
+ '/v',
1023
+ 'ProgId',
1024
+ ]);
1025
+
1026
+ const match = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout);
1027
+ if (!match) {
1028
+ throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`);
1029
+ }
1030
+
1031
+ const {id} = match.groups;
1032
+
1033
+ const browser = windowsBrowserProgIds[id];
1034
+ if (!browser) {
1035
+ throw new UnknownBrowserError(`Unknown browser ID: ${id}`);
1036
+ }
1037
+
1038
+ return browser;
1039
+ }
1040
+
866
1041
  ;// CONCATENATED MODULE: ./node_modules/default-browser-id/index.js
867
1042
 
868
1043
 
869
1044
 
870
1045
 
871
- const execFileAsync = (0,external_node_util_namespaceObject.promisify)(external_node_child_process_namespaceObject.execFile);
1046
+ const default_browser_id_execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_namespaceObject.execFile);
872
1047
 
873
1048
  async function defaultBrowserId() {
874
1049
  if (external_node_process_.platform !== 'darwin') {
875
1050
  throw new Error('macOS only');
876
1051
  }
877
1052
 
878
- const {stdout} = await execFileAsync('defaults', ['read', 'com.apple.LaunchServices/com.apple.launchservices.secure', 'LSHandlers']);
1053
+ const {stdout} = await default_browser_id_execFileAsync('defaults', ['read', 'com.apple.LaunchServices/com.apple.launchservices.secure', 'LSHandlers']);
879
1054
 
880
1055
  // `(?!-)` is to prevent matching `LSHandlerRoleAll = "-";`.
881
1056
  const match = /LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(stdout);
882
1057
 
883
- return match?.groups.id ?? 'com.apple.Safari';
1058
+ const browserId = match?.groups.id ?? 'com.apple.Safari';
1059
+
1060
+ // Correct the case for Safari's bundle identifier
1061
+ if (browserId === 'com.apple.safari') {
1062
+ return 'com.apple.Safari';
1063
+ }
1064
+
1065
+ return browserId;
884
1066
  }
885
1067
 
886
1068
  ;// CONCATENATED MODULE: ./node_modules/run-applescript/index.js
@@ -888,7 +1070,7 @@ async function defaultBrowserId() {
888
1070
 
889
1071
 
890
1072
 
891
- const run_applescript_execFileAsync = (0,external_node_util_namespaceObject.promisify)(external_node_child_process_namespaceObject.execFile);
1073
+ const run_applescript_execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_namespaceObject.execFile);
892
1074
 
893
1075
  async function runAppleScript(script, {humanReadableOutput = true, signal} = {}) {
894
1076
  if (external_node_process_.platform !== 'darwin') {
@@ -929,60 +1111,17 @@ async function bundleName(bundleId) {
929
1111
  return runAppleScript(`tell application "Finder" to set app_path to application file id "${bundleId}" as string\ntell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`);
930
1112
  }
931
1113
 
932
- ;// CONCATENATED MODULE: ./node_modules/default-browser/windows.js
933
-
934
-
935
-
936
- const windows_execFileAsync = (0,external_node_util_namespaceObject.promisify)(external_node_child_process_namespaceObject.execFile);
937
-
938
- // Windows doesn't have browser IDs in the same way macOS/Linux does so we give fake
939
- // ones that look real and match the macOS/Linux versions for cross-platform apps.
940
- const windowsBrowserProgIds = {
941
- AppXq0fevzme2pys62n3e0fbqa7peapykr8v: {name: 'Edge', id: 'com.microsoft.edge.old'},
942
- MSEdgeDHTML: {name: 'Edge', id: 'com.microsoft.edge'}, // On macOS, it's "com.microsoft.edgemac"
943
- MSEdgeHTM: {name: 'Edge', id: 'com.microsoft.edge'}, // Newer Edge/Win10 releases
944
- 'IE.HTTP': {name: 'Internet Explorer', id: 'com.microsoft.ie'},
945
- FirefoxURL: {name: 'Firefox', id: 'org.mozilla.firefox'},
946
- ChromeHTML: {name: 'Chrome', id: 'com.google.chrome'},
947
- BraveHTML: {name: 'Brave', id: 'com.brave.Browser'},
948
- BraveBHTML: {name: 'Brave Beta', id: 'com.brave.Browser.beta'},
949
- BraveSSHTM: {name: 'Brave Nightly', id: 'com.brave.Browser.nightly'},
950
- };
951
-
952
- class UnknownBrowserError extends Error {}
953
-
954
- async function defaultBrowser(_execFileAsync = windows_execFileAsync) {
955
- const {stdout} = await _execFileAsync('reg', [
956
- 'QUERY',
957
- ' HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice',
958
- '/v',
959
- 'ProgId',
960
- ]);
961
-
962
- const match = /ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(stdout);
963
- if (!match) {
964
- throw new UnknownBrowserError(`Cannot find Windows browser in stdout: ${JSON.stringify(stdout)}`);
965
- }
1114
+ ;// CONCATENATED MODULE: ./node_modules/default-browser/index.js
966
1115
 
967
- const {id} = match.groups;
968
1116
 
969
- const browser = windowsBrowserProgIds[id];
970
- if (!browser) {
971
- throw new UnknownBrowserError(`Unknown browser ID: ${id}`);
972
- }
973
1117
 
974
- return browser;
975
- }
976
1118
 
977
- ;// CONCATENATED MODULE: ./node_modules/default-browser/index.js
978
1119
 
979
1120
 
980
1121
 
981
1122
 
982
1123
 
983
-
984
-
985
- const default_browser_execFileAsync = (0,external_node_util_namespaceObject.promisify)(external_node_child_process_namespaceObject.execFile);
1124
+ const default_browser_execFileAsync = (0,external_node_util_.promisify)(external_node_child_process_namespaceObject.execFile);
986
1125
 
987
1126
  // Inlined: https://github.com/sindresorhus/titleize/blob/main/index.js
988
1127
  const titleize = string => string.toLowerCase().replaceAll(/(?:^|\s|-)\S/g, x => x.toUpperCase());
@@ -1008,12 +1147,16 @@ async function default_browser_defaultBrowser() {
1008
1147
  throw new Error('Only macOS, Linux, and Windows are supported');
1009
1148
  }
1010
1149
 
1011
- ;// CONCATENATED MODULE: ./node_modules/open/index.js
1012
-
1150
+ ;// CONCATENATED MODULE: ./node_modules/is-in-ssh/index.js
1013
1151
 
1014
1152
 
1153
+ const isInSsh = Boolean(external_node_process_.env.SSH_CONNECTION
1154
+ || external_node_process_.env.SSH_CLIENT
1155
+ || external_node_process_.env.SSH_TTY);
1015
1156
 
1157
+ /* harmony default export */ const is_in_ssh = (isInSsh);
1016
1158
 
1159
+ ;// CONCATENATED MODULE: ./node_modules/open/index.js
1017
1160
 
1018
1161
 
1019
1162
 
@@ -1021,62 +1164,36 @@ async function default_browser_defaultBrowser() {
1021
1164
 
1022
1165
 
1023
1166
 
1024
- const execFile = (0,external_node_util_namespaceObject.promisify)(external_node_child_process_namespaceObject.execFile);
1025
1167
 
1026
- // Path to included `xdg-open`.
1027
- const open_dirname = external_node_path_namespaceObject.dirname((0,external_node_url_namespaceObject.fileURLToPath)(import.meta.url));
1028
- const localXdgOpenPath = external_node_path_namespaceObject.join(open_dirname, 'xdg-open');
1029
1168
 
1030
- const {platform, arch} = external_node_process_;
1031
1169
 
1032
- /**
1033
- Get the default browser name in Windows from WSL.
1034
1170
 
1035
- @returns {Promise<string>} Browser name.
1036
- */
1037
- async function getWindowsDefaultBrowserFromWsl() {
1038
- const powershellPath = await powerShellPath();
1039
- const rawCommand = String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`;
1040
- const encodedCommand = external_node_buffer_namespaceObject.Buffer.from(rawCommand, 'utf16le').toString('base64');
1041
1171
 
1042
- const {stdout} = await execFile(
1043
- powershellPath,
1044
- [
1045
- '-NoProfile',
1046
- '-NonInteractive',
1047
- '-ExecutionPolicy',
1048
- 'Bypass',
1049
- '-EncodedCommand',
1050
- encodedCommand,
1051
- ],
1052
- {encoding: 'utf8'},
1053
- );
1172
+ const fallbackAttemptSymbol = Symbol('fallbackAttempt');
1054
1173
 
1055
- const progId = stdout.trim();
1174
+ // Path to included `xdg-open`.
1175
+ const open_dirname = import.meta.url ? external_node_path_namespaceObject.dirname((0,external_node_url_namespaceObject.fileURLToPath)(import.meta.url)) : '';
1176
+ const localXdgOpenPath = external_node_path_namespaceObject.join(open_dirname, 'xdg-open');
1056
1177
 
1057
- // Map ProgId to browser IDs
1058
- const browserMap = {
1059
- ChromeHTML: 'com.google.chrome',
1060
- BraveHTML: 'com.brave.Browser',
1061
- MSEdgeHTM: 'com.microsoft.edge',
1062
- FirefoxURL: 'org.mozilla.firefox',
1063
- };
1178
+ const {platform, arch} = external_node_process_;
1064
1179
 
1065
- return browserMap[progId] ? {id: browserMap[progId]} : {};
1066
- }
1180
+ const tryEachApp = async (apps, opener) => {
1181
+ if (apps.length === 0) {
1182
+ // No app was provided
1183
+ return;
1184
+ }
1067
1185
 
1068
- const pTryEach = async (array, mapper) => {
1069
- let latestError;
1186
+ const errors = [];
1070
1187
 
1071
- for (const item of array) {
1188
+ for (const app of apps) {
1072
1189
  try {
1073
- return await mapper(item); // eslint-disable-line no-await-in-loop
1190
+ return await opener(app); // eslint-disable-line no-await-in-loop
1074
1191
  } catch (error) {
1075
- latestError = error;
1192
+ errors.push(error);
1076
1193
  }
1077
1194
  }
1078
1195
 
1079
- throw latestError;
1196
+ throw new AggregateError(errors, 'Failed to open in all supported apps');
1080
1197
  };
1081
1198
 
1082
1199
  // eslint-disable-next-line complexity
@@ -1089,10 +1206,14 @@ const baseOpen = async options => {
1089
1206
  ...options,
1090
1207
  };
1091
1208
 
1209
+ const isFallbackAttempt = options[fallbackAttemptSymbol] === true;
1210
+ delete options[fallbackAttemptSymbol];
1211
+
1092
1212
  if (Array.isArray(options.app)) {
1093
- return pTryEach(options.app, singleApp => baseOpen({
1213
+ return tryEachApp(options.app, singleApp => baseOpen({
1094
1214
  ...options,
1095
1215
  app: singleApp,
1216
+ [fallbackAttemptSymbol]: true,
1096
1217
  }));
1097
1218
  }
1098
1219
 
@@ -1100,27 +1221,30 @@ const baseOpen = async options => {
1100
1221
  appArguments = [...appArguments];
1101
1222
 
1102
1223
  if (Array.isArray(app)) {
1103
- return pTryEach(app, appName => baseOpen({
1224
+ return tryEachApp(app, appName => baseOpen({
1104
1225
  ...options,
1105
1226
  app: {
1106
1227
  name: appName,
1107
1228
  arguments: appArguments,
1108
1229
  },
1230
+ [fallbackAttemptSymbol]: true,
1109
1231
  }));
1110
1232
  }
1111
1233
 
1112
1234
  if (app === 'browser' || app === 'browserPrivate') {
1113
- // IDs from default-browser for macOS and windows are the same
1235
+ // IDs from default-browser for macOS and windows are the same.
1236
+ // IDs are lowercased to increase chances of a match.
1114
1237
  const ids = {
1115
1238
  'com.google.chrome': 'chrome',
1116
1239
  'google-chrome.desktop': 'chrome',
1117
- 'com.brave.Browser': 'brave',
1240
+ 'com.brave.browser': 'brave',
1118
1241
  'org.mozilla.firefox': 'firefox',
1119
1242
  'firefox.desktop': 'firefox',
1120
1243
  'com.microsoft.msedge': 'edge',
1121
1244
  'com.microsoft.edge': 'edge',
1122
1245
  'com.microsoft.edgemac': 'edge',
1123
1246
  'microsoft-edge.desktop': 'edge',
1247
+ 'com.apple.safari': 'safari',
1124
1248
  };
1125
1249
 
1126
1250
  // Incognito flags for each browser in `apps`.
@@ -1129,13 +1253,27 @@ const baseOpen = async options => {
1129
1253
  brave: '--incognito',
1130
1254
  firefox: '--private-window',
1131
1255
  edge: '--inPrivate',
1256
+ // Safari doesn't support private mode via command line
1132
1257
  };
1133
1258
 
1134
- const browser = is_wsl ? await getWindowsDefaultBrowserFromWsl() : await default_browser_defaultBrowser();
1259
+ let browser;
1260
+ if (is_wsl) {
1261
+ const progId = await wslDefaultBrowser();
1262
+ const browserInfo = _windowsBrowserProgIdMap.get(progId);
1263
+ browser = browserInfo ?? {};
1264
+ } else {
1265
+ browser = await default_browser_defaultBrowser();
1266
+ }
1267
+
1135
1268
  if (browser.id in ids) {
1136
- const browserName = ids[browser.id];
1269
+ const browserName = ids[browser.id.toLowerCase()];
1137
1270
 
1138
1271
  if (app === 'browserPrivate') {
1272
+ // Safari doesn't support private mode via command line
1273
+ if (browserName === 'safari') {
1274
+ throw new Error('Safari doesn\'t support opening in private mode via command line');
1275
+ }
1276
+
1139
1277
  appArguments.push(flags[browserName]);
1140
1278
  }
1141
1279
 
@@ -1155,6 +1293,14 @@ const baseOpen = async options => {
1155
1293
  const cliArguments = [];
1156
1294
  const childProcessOptions = {};
1157
1295
 
1296
+ // Determine if we should use Windows/PowerShell behavior in WSL.
1297
+ // We only use Windows integration if PowerShell is actually accessible.
1298
+ // This allows the package to work in sandboxed WSL environments where Windows access is restricted.
1299
+ let shouldUseWindowsInWsl = false;
1300
+ if (is_wsl && !isInsideContainer() && !is_in_ssh && !app) {
1301
+ shouldUseWindowsInWsl = await wsl_utils_canAccessPowerShell();
1302
+ }
1303
+
1158
1304
  if (platform === 'darwin') {
1159
1305
  command = 'open';
1160
1306
 
@@ -1173,45 +1319,48 @@ const baseOpen = async options => {
1173
1319
  if (app) {
1174
1320
  cliArguments.push('-a', app);
1175
1321
  }
1176
- } else if (platform === 'win32' || (is_wsl && !isInsideContainer() && !app)) {
1177
- command = await powerShellPath();
1322
+ } else if (platform === 'win32' || shouldUseWindowsInWsl) {
1323
+ command = await wsl_utils_powerShellPath();
1178
1324
 
1179
- cliArguments.push(
1180
- '-NoProfile',
1181
- '-NonInteractive',
1182
- '-ExecutionPolicy',
1183
- 'Bypass',
1184
- '-EncodedCommand',
1185
- );
1325
+ cliArguments.push(...executePowerShell.argumentsPrefix);
1186
1326
 
1187
1327
  if (!is_wsl) {
1188
1328
  childProcessOptions.windowsVerbatimArguments = true;
1189
1329
  }
1190
1330
 
1191
- const encodedArguments = ['Start'];
1331
+ // Convert WSL Linux paths to Windows paths
1332
+ if (is_wsl && options.target) {
1333
+ options.target = await convertWslPathToWindows(options.target);
1334
+ }
1335
+
1336
+ // Suppress PowerShell progress messages that are written to stderr
1337
+ const encodedArguments = ['$ProgressPreference = \'SilentlyContinue\';', 'Start'];
1192
1338
 
1193
1339
  if (options.wait) {
1194
1340
  encodedArguments.push('-Wait');
1195
1341
  }
1196
1342
 
1197
1343
  if (app) {
1198
- // Double quote with double quotes to ensure the inner quotes are passed through.
1199
- // Inner quotes are delimited for PowerShell interpretation with backticks.
1200
- encodedArguments.push(`"\`"${app}\`""`);
1344
+ encodedArguments.push(executePowerShell.escapeArgument(app));
1201
1345
  if (options.target) {
1202
1346
  appArguments.push(options.target);
1203
1347
  }
1204
1348
  } else if (options.target) {
1205
- encodedArguments.push(`"${options.target}"`);
1349
+ encodedArguments.push(executePowerShell.escapeArgument(options.target));
1206
1350
  }
1207
1351
 
1208
1352
  if (appArguments.length > 0) {
1209
- appArguments = appArguments.map(argument => `"\`"${argument}\`""`);
1353
+ appArguments = appArguments.map(argument => executePowerShell.escapeArgument(argument));
1210
1354
  encodedArguments.push('-ArgumentList', appArguments.join(','));
1211
1355
  }
1212
1356
 
1213
1357
  // Using Base64-encoded command, accepted by PowerShell, to allow special characters.
1214
- options.target = external_node_buffer_namespaceObject.Buffer.from(encodedArguments.join(' '), 'utf16le').toString('base64');
1358
+ options.target = executePowerShell.encodeCommand(encodedArguments.join(' '));
1359
+
1360
+ if (!options.wait) {
1361
+ // PowerShell will keep the parent process alive unless stdio is ignored.
1362
+ childProcessOptions.stdio = 'ignore';
1363
+ }
1215
1364
  } else {
1216
1365
  if (app) {
1217
1366
  command = app;
@@ -1247,7 +1396,11 @@ const baseOpen = async options => {
1247
1396
  cliArguments.push('--args', ...appArguments);
1248
1397
  }
1249
1398
 
1250
- // This has to come after `--args`.
1399
+ // IMPORTANT: On macOS, the target MUST come AFTER '--args'.
1400
+ // When using --args, ALL following arguments are passed to the app.
1401
+ // Example: open -a "chrome" --args --incognito https://site.com
1402
+ // This passes BOTH --incognito AND https://site.com to Chrome.
1403
+ // Without this order, Chrome won't open in incognito. See #332.
1251
1404
  if (options.target) {
1252
1405
  cliArguments.push(options.target);
1253
1406
  }
@@ -1259,7 +1412,7 @@ const baseOpen = async options => {
1259
1412
  subprocess.once('error', reject);
1260
1413
 
1261
1414
  subprocess.once('close', exitCode => {
1262
- if (!options.allowNonzeroExitCode && exitCode > 0) {
1415
+ if (!options.allowNonzeroExitCode && exitCode !== 0) {
1263
1416
  reject(new Error(`Exited with code ${exitCode}`));
1264
1417
  return;
1265
1418
  }
@@ -1269,9 +1422,45 @@ const baseOpen = async options => {
1269
1422
  });
1270
1423
  }
1271
1424
 
1425
+ // When we're in a fallback attempt, we need to detect launch failures before trying the next app.
1426
+ // Wait for the close event to check the exit code before unreffing.
1427
+ // The launcher (open/xdg-open/PowerShell) exits quickly (~10-30ms) even on success.
1428
+ if (isFallbackAttempt) {
1429
+ return new Promise((resolve, reject) => {
1430
+ subprocess.once('error', reject);
1431
+
1432
+ subprocess.once('spawn', () => {
1433
+ // Keep error handler active for post-spawn errors
1434
+ subprocess.once('close', exitCode => {
1435
+ subprocess.off('error', reject);
1436
+
1437
+ if (exitCode !== 0) {
1438
+ reject(new Error(`Exited with code ${exitCode}`));
1439
+ return;
1440
+ }
1441
+
1442
+ subprocess.unref();
1443
+ resolve(subprocess);
1444
+ });
1445
+ });
1446
+ });
1447
+ }
1448
+
1272
1449
  subprocess.unref();
1273
1450
 
1274
- return subprocess;
1451
+ // Handle spawn errors before the caller can attach listeners.
1452
+ // This prevents unhandled error events from crashing the process.
1453
+ return new Promise((resolve, reject) => {
1454
+ subprocess.once('error', reject);
1455
+
1456
+ // Wait for the subprocess to spawn before resolving.
1457
+ // This ensures the process is established before the caller continues,
1458
+ // preventing issues when process.exit() is called immediately after.
1459
+ subprocess.once('spawn', () => {
1460
+ subprocess.off('error', reject);
1461
+ resolve(subprocess);
1462
+ });
1463
+ });
1275
1464
  };
1276
1465
 
1277
1466
  const open_open = (target, options) => {
@@ -1318,7 +1507,7 @@ function detectArchBinary(binary) {
1318
1507
  return archBinary;
1319
1508
  }
1320
1509
 
1321
- function detectPlatformBinary({[platform]: platformBinary}, {wsl}) {
1510
+ function detectPlatformBinary({[platform]: platformBinary}, {wsl} = {}) {
1322
1511
  if (wsl && is_wsl) {
1323
1512
  return detectArchBinary(wsl);
1324
1513
  }
@@ -1330,12 +1519,16 @@ function detectPlatformBinary({[platform]: platformBinary}, {wsl}) {
1330
1519
  return detectArchBinary(platformBinary);
1331
1520
  }
1332
1521
 
1333
- const apps = {};
1522
+ const apps = {
1523
+ browser: 'browser',
1524
+ browserPrivate: 'browserPrivate',
1525
+ };
1334
1526
 
1335
1527
  defineLazyProperty(apps, 'chrome', () => detectPlatformBinary({
1336
1528
  darwin: 'google chrome',
1337
1529
  win32: 'chrome',
1338
- linux: ['google-chrome', 'google-chrome-stable', 'chromium'],
1530
+ // `chromium-browser` is the older deb package name used by Ubuntu/Debian before snap.
1531
+ linux: ['google-chrome', 'google-chrome-stable', 'chromium', 'chromium-browser'],
1339
1532
  }, {
1340
1533
  wsl: {
1341
1534
  ia32: '/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe',
@@ -1370,9 +1563,9 @@ defineLazyProperty(apps, 'edge', () => detectPlatformBinary({
1370
1563
  wsl: '/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe',
1371
1564
  }));
1372
1565
 
1373
- defineLazyProperty(apps, 'browser', () => 'browser');
1374
-
1375
- defineLazyProperty(apps, 'browserPrivate', () => 'browserPrivate');
1566
+ defineLazyProperty(apps, 'safari', () => detectPlatformBinary({
1567
+ darwin: 'Safari',
1568
+ }));
1376
1569
 
1377
1570
  /* harmony default export */ const node_modules_open = (open_open);
1378
1571