@socketsecurity/lib 3.3.8 → 3.3.10

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.
@@ -906,10 +906,6 @@ var require_cli_width = __commonJS({
906
906
  });
907
907
 
908
908
  // node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
909
- var ansi_regex_exports = {};
910
- __export(ansi_regex_exports, {
911
- default: () => ansiRegex
912
- });
913
909
  function ansiRegex({ onlyFirst = false } = {}) {
914
910
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
915
911
  const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
@@ -923,1222 +919,350 @@ var init_ansi_regex = __esm({
923
919
  }
924
920
  });
925
921
 
926
- // node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js
927
- var require_strip_ansi = __commonJS({
928
- "node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
929
- "use strict";
930
- var ansiRegex2 = (init_ansi_regex(), __toCommonJS(ansi_regex_exports));
931
- module2.exports = (string) => typeof string === "string" ? string.replace(ansiRegex2(), "") : string;
922
+ // node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js
923
+ function stripAnsi(string) {
924
+ if (typeof string !== "string") {
925
+ throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
932
926
  }
933
- });
934
-
935
- // node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js
936
- var require_is_fullwidth_code_point = __commonJS({
937
- "node_modules/.pnpm/is-fullwidth-code-point@3.0.0/node_modules/is-fullwidth-code-point/index.js"(exports2, module2) {
938
- "use strict";
939
- var isFullwidthCodePoint = /* @__PURE__ */ __name((codePoint) => {
940
- if (Number.isNaN(codePoint)) {
941
- return false;
942
- }
943
- if (codePoint >= 4352 && (codePoint <= 4447 || // Hangul Jamo
944
- codePoint === 9001 || // LEFT-POINTING ANGLE BRACKET
945
- codePoint === 9002 || // RIGHT-POINTING ANGLE BRACKET
946
- // CJK Radicals Supplement .. Enclosed CJK Letters and Months
947
- 11904 <= codePoint && codePoint <= 12871 && codePoint !== 12351 || // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
948
- 12880 <= codePoint && codePoint <= 19903 || // CJK Unified Ideographs .. Yi Radicals
949
- 19968 <= codePoint && codePoint <= 42182 || // Hangul Jamo Extended-A
950
- 43360 <= codePoint && codePoint <= 43388 || // Hangul Syllables
951
- 44032 <= codePoint && codePoint <= 55203 || // CJK Compatibility Ideographs
952
- 63744 <= codePoint && codePoint <= 64255 || // Vertical Forms
953
- 65040 <= codePoint && codePoint <= 65049 || // CJK Compatibility Forms .. Small Form Variants
954
- 65072 <= codePoint && codePoint <= 65131 || // Halfwidth and Fullwidth Forms
955
- 65281 <= codePoint && codePoint <= 65376 || 65504 <= codePoint && codePoint <= 65510 || // Kana Supplement
956
- 110592 <= codePoint && codePoint <= 110593 || // Enclosed Ideographic Supplement
957
- 127488 <= codePoint && codePoint <= 127569 || // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
958
- 131072 <= codePoint && codePoint <= 262141)) {
959
- return true;
960
- }
961
- return false;
962
- }, "isFullwidthCodePoint");
963
- module2.exports = isFullwidthCodePoint;
964
- module2.exports.default = isFullwidthCodePoint;
927
+ return string.replace(regex, "");
928
+ }
929
+ var regex;
930
+ var init_strip_ansi = __esm({
931
+ "node_modules/.pnpm/strip-ansi@7.1.2/node_modules/strip-ansi/index.js"() {
932
+ init_ansi_regex();
933
+ regex = ansiRegex();
934
+ __name(stripAnsi, "stripAnsi");
965
935
  }
966
936
  });
967
937
 
968
- // node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js
969
- var require_emoji_regex = __commonJS({
970
- "node_modules/.pnpm/emoji-regex@8.0.0/node_modules/emoji-regex/index.js"(exports2, module2) {
971
- "use strict";
972
- module2.exports = function() {
973
- return /\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\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\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])|\uD83C[\uDF3E\uDF73\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])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\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])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\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\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\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\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\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\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*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\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\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\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[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g;
974
- };
938
+ // node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js
939
+ function isAmbiguous(x) {
940
+ return x === 161 || x === 164 || x === 167 || x === 168 || x === 170 || x === 173 || x === 174 || x >= 176 && x <= 180 || x >= 182 && x <= 186 || x >= 188 && x <= 191 || x === 198 || x === 208 || x === 215 || x === 216 || x >= 222 && x <= 225 || x === 230 || x >= 232 && x <= 234 || x === 236 || x === 237 || x === 240 || x === 242 || x === 243 || x >= 247 && x <= 250 || x === 252 || x === 254 || x === 257 || x === 273 || x === 275 || x === 283 || x === 294 || x === 295 || x === 299 || x >= 305 && x <= 307 || x === 312 || x >= 319 && x <= 322 || x === 324 || x >= 328 && x <= 331 || x === 333 || x === 338 || x === 339 || x === 358 || x === 359 || x === 363 || x === 462 || x === 464 || x === 466 || x === 468 || x === 470 || x === 472 || x === 474 || x === 476 || x === 593 || x === 609 || x === 708 || x === 711 || x >= 713 && x <= 715 || x === 717 || x === 720 || x >= 728 && x <= 731 || x === 733 || x === 735 || x >= 768 && x <= 879 || x >= 913 && x <= 929 || x >= 931 && x <= 937 || x >= 945 && x <= 961 || x >= 963 && x <= 969 || x === 1025 || x >= 1040 && x <= 1103 || x === 1105 || x === 8208 || x >= 8211 && x <= 8214 || x === 8216 || x === 8217 || x === 8220 || x === 8221 || x >= 8224 && x <= 8226 || x >= 8228 && x <= 8231 || x === 8240 || x === 8242 || x === 8243 || x === 8245 || x === 8251 || x === 8254 || x === 8308 || x === 8319 || x >= 8321 && x <= 8324 || x === 8364 || x === 8451 || x === 8453 || x === 8457 || x === 8467 || x === 8470 || x === 8481 || x === 8482 || x === 8486 || x === 8491 || x === 8531 || x === 8532 || x >= 8539 && x <= 8542 || x >= 8544 && x <= 8555 || x >= 8560 && x <= 8569 || x === 8585 || x >= 8592 && x <= 8601 || x === 8632 || x === 8633 || x === 8658 || x === 8660 || x === 8679 || x === 8704 || x === 8706 || x === 8707 || x === 8711 || x === 8712 || x === 8715 || x === 8719 || x === 8721 || x === 8725 || x === 8730 || x >= 8733 && x <= 8736 || x === 8739 || x === 8741 || x >= 8743 && x <= 8748 || x === 8750 || x >= 8756 && x <= 8759 || x === 8764 || x === 8765 || x === 8776 || x === 8780 || x === 8786 || x === 8800 || x === 8801 || x >= 8804 && x <= 8807 || x === 8810 || x === 8811 || x === 8814 || x === 8815 || x === 8834 || x === 8835 || x === 8838 || x === 8839 || x === 8853 || x === 8857 || x === 8869 || x === 8895 || x === 8978 || x >= 9312 && x <= 9449 || x >= 9451 && x <= 9547 || x >= 9552 && x <= 9587 || x >= 9600 && x <= 9615 || x >= 9618 && x <= 9621 || x === 9632 || x === 9633 || x >= 9635 && x <= 9641 || x === 9650 || x === 9651 || x === 9654 || x === 9655 || x === 9660 || x === 9661 || x === 9664 || x === 9665 || x >= 9670 && x <= 9672 || x === 9675 || x >= 9678 && x <= 9681 || x >= 9698 && x <= 9701 || x === 9711 || x === 9733 || x === 9734 || x === 9737 || x === 9742 || x === 9743 || x === 9756 || x === 9758 || x === 9792 || x === 9794 || x === 9824 || x === 9825 || x >= 9827 && x <= 9829 || x >= 9831 && x <= 9834 || x === 9836 || x === 9837 || x === 9839 || x === 9886 || x === 9887 || x === 9919 || x >= 9926 && x <= 9933 || x >= 9935 && x <= 9939 || x >= 9941 && x <= 9953 || x === 9955 || x === 9960 || x === 9961 || x >= 9963 && x <= 9969 || x === 9972 || x >= 9974 && x <= 9977 || x === 9979 || x === 9980 || x === 9982 || x === 9983 || x === 10045 || x >= 10102 && x <= 10111 || x >= 11094 && x <= 11097 || x >= 12872 && x <= 12879 || x >= 57344 && x <= 63743 || x >= 65024 && x <= 65039 || x === 65533 || x >= 127232 && x <= 127242 || x >= 127248 && x <= 127277 || x >= 127280 && x <= 127337 || x >= 127344 && x <= 127373 || x === 127375 || x === 127376 || x >= 127387 && x <= 127404 || x >= 917760 && x <= 917999 || x >= 983040 && x <= 1048573 || x >= 1048576 && x <= 1114109;
941
+ }
942
+ function isFullWidth(x) {
943
+ return x === 12288 || x >= 65281 && x <= 65376 || x >= 65504 && x <= 65510;
944
+ }
945
+ function isWide(x) {
946
+ return x >= 4352 && x <= 4447 || x === 8986 || x === 8987 || x === 9001 || x === 9002 || x >= 9193 && x <= 9196 || x === 9200 || x === 9203 || x === 9725 || x === 9726 || x === 9748 || x === 9749 || x >= 9776 && x <= 9783 || x >= 9800 && x <= 9811 || x === 9855 || x >= 9866 && x <= 9871 || x === 9875 || x === 9889 || x === 9898 || x === 9899 || x === 9917 || x === 9918 || x === 9924 || x === 9925 || x === 9934 || x === 9940 || x === 9962 || x === 9970 || x === 9971 || x === 9973 || x === 9978 || x === 9981 || x === 9989 || x === 9994 || x === 9995 || x === 10024 || x === 10060 || x === 10062 || x >= 10067 && x <= 10069 || x === 10071 || x >= 10133 && x <= 10135 || x === 10160 || x === 10175 || x === 11035 || x === 11036 || x === 11088 || x === 11093 || x >= 11904 && x <= 11929 || x >= 11931 && x <= 12019 || x >= 12032 && x <= 12245 || x >= 12272 && x <= 12287 || x >= 12289 && x <= 12350 || x >= 12353 && x <= 12438 || x >= 12441 && x <= 12543 || x >= 12549 && x <= 12591 || x >= 12593 && x <= 12686 || x >= 12688 && x <= 12773 || x >= 12783 && x <= 12830 || x >= 12832 && x <= 12871 || x >= 12880 && x <= 42124 || x >= 42128 && x <= 42182 || x >= 43360 && x <= 43388 || x >= 44032 && x <= 55203 || x >= 63744 && x <= 64255 || x >= 65040 && x <= 65049 || x >= 65072 && x <= 65106 || x >= 65108 && x <= 65126 || x >= 65128 && x <= 65131 || x >= 94176 && x <= 94180 || x === 94192 || x === 94193 || x >= 94208 && x <= 100343 || x >= 100352 && x <= 101589 || x >= 101631 && x <= 101640 || x >= 110576 && x <= 110579 || x >= 110581 && x <= 110587 || x === 110589 || x === 110590 || x >= 110592 && x <= 110882 || x === 110898 || x >= 110928 && x <= 110930 || x === 110933 || x >= 110948 && x <= 110951 || x >= 110960 && x <= 111355 || x >= 119552 && x <= 119638 || x >= 119648 && x <= 119670 || x === 126980 || x === 127183 || x === 127374 || x >= 127377 && x <= 127386 || x >= 127488 && x <= 127490 || x >= 127504 && x <= 127547 || x >= 127552 && x <= 127560 || x === 127568 || x === 127569 || x >= 127584 && x <= 127589 || x >= 127744 && x <= 127776 || x >= 127789 && x <= 127797 || x >= 127799 && x <= 127868 || x >= 127870 && x <= 127891 || x >= 127904 && x <= 127946 || x >= 127951 && x <= 127955 || x >= 127968 && x <= 127984 || x === 127988 || x >= 127992 && x <= 128062 || x === 128064 || x >= 128066 && x <= 128252 || x >= 128255 && x <= 128317 || x >= 128331 && x <= 128334 || x >= 128336 && x <= 128359 || x === 128378 || x === 128405 || x === 128406 || x === 128420 || x >= 128507 && x <= 128591 || x >= 128640 && x <= 128709 || x === 128716 || x >= 128720 && x <= 128722 || x >= 128725 && x <= 128727 || x >= 128732 && x <= 128735 || x === 128747 || x === 128748 || x >= 128756 && x <= 128764 || x >= 128992 && x <= 129003 || x === 129008 || x >= 129292 && x <= 129338 || x >= 129340 && x <= 129349 || x >= 129351 && x <= 129535 || x >= 129648 && x <= 129660 || x >= 129664 && x <= 129673 || x >= 129679 && x <= 129734 || x >= 129742 && x <= 129756 || x >= 129759 && x <= 129769 || x >= 129776 && x <= 129784 || x >= 131072 && x <= 196605 || x >= 196608 && x <= 262141;
947
+ }
948
+ var init_lookup = __esm({
949
+ "node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/lookup.js"() {
950
+ __name(isAmbiguous, "isAmbiguous");
951
+ __name(isFullWidth, "isFullWidth");
952
+ __name(isWide, "isWide");
975
953
  }
976
954
  });
977
955
 
978
- // node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js
979
- var require_string_width = __commonJS({
980
- "node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module2) {
981
- "use strict";
982
- var stripAnsi = require_strip_ansi();
983
- var isFullwidthCodePoint = require_is_fullwidth_code_point();
984
- var emojiRegex = require_emoji_regex();
985
- var stringWidth = /* @__PURE__ */ __name((string) => {
986
- if (typeof string !== "string" || string.length === 0) {
987
- return 0;
988
- }
989
- string = stripAnsi(string);
990
- if (string.length === 0) {
991
- return 0;
992
- }
993
- string = string.replace(emojiRegex(), " ");
994
- let width = 0;
995
- for (let i = 0; i < string.length; i++) {
996
- const code = string.codePointAt(i);
997
- if (code <= 31 || code >= 127 && code <= 159) {
998
- continue;
999
- }
1000
- if (code >= 768 && code <= 879) {
1001
- continue;
1002
- }
1003
- if (code > 65535) {
1004
- i++;
1005
- }
1006
- width += isFullwidthCodePoint(code) ? 2 : 1;
1007
- }
1008
- return width;
1009
- }, "stringWidth");
1010
- module2.exports = stringWidth;
1011
- module2.exports.default = stringWidth;
956
+ // node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js
957
+ function validate(codePoint) {
958
+ if (!Number.isSafeInteger(codePoint)) {
959
+ throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
1012
960
  }
1013
- });
1014
-
1015
- // node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js
1016
- var require_color_name = __commonJS({
1017
- "node_modules/.pnpm/color-name@1.1.4/node_modules/color-name/index.js"(exports2, module2) {
1018
- "use strict";
1019
- module2.exports = {
1020
- "aliceblue": [240, 248, 255],
1021
- "antiquewhite": [250, 235, 215],
1022
- "aqua": [0, 255, 255],
1023
- "aquamarine": [127, 255, 212],
1024
- "azure": [240, 255, 255],
1025
- "beige": [245, 245, 220],
1026
- "bisque": [255, 228, 196],
1027
- "black": [0, 0, 0],
1028
- "blanchedalmond": [255, 235, 205],
1029
- "blue": [0, 0, 255],
1030
- "blueviolet": [138, 43, 226],
1031
- "brown": [165, 42, 42],
1032
- "burlywood": [222, 184, 135],
1033
- "cadetblue": [95, 158, 160],
1034
- "chartreuse": [127, 255, 0],
1035
- "chocolate": [210, 105, 30],
1036
- "coral": [255, 127, 80],
1037
- "cornflowerblue": [100, 149, 237],
1038
- "cornsilk": [255, 248, 220],
1039
- "crimson": [220, 20, 60],
1040
- "cyan": [0, 255, 255],
1041
- "darkblue": [0, 0, 139],
1042
- "darkcyan": [0, 139, 139],
1043
- "darkgoldenrod": [184, 134, 11],
1044
- "darkgray": [169, 169, 169],
1045
- "darkgreen": [0, 100, 0],
1046
- "darkgrey": [169, 169, 169],
1047
- "darkkhaki": [189, 183, 107],
1048
- "darkmagenta": [139, 0, 139],
1049
- "darkolivegreen": [85, 107, 47],
1050
- "darkorange": [255, 140, 0],
1051
- "darkorchid": [153, 50, 204],
1052
- "darkred": [139, 0, 0],
1053
- "darksalmon": [233, 150, 122],
1054
- "darkseagreen": [143, 188, 143],
1055
- "darkslateblue": [72, 61, 139],
1056
- "darkslategray": [47, 79, 79],
1057
- "darkslategrey": [47, 79, 79],
1058
- "darkturquoise": [0, 206, 209],
1059
- "darkviolet": [148, 0, 211],
1060
- "deeppink": [255, 20, 147],
1061
- "deepskyblue": [0, 191, 255],
1062
- "dimgray": [105, 105, 105],
1063
- "dimgrey": [105, 105, 105],
1064
- "dodgerblue": [30, 144, 255],
1065
- "firebrick": [178, 34, 34],
1066
- "floralwhite": [255, 250, 240],
1067
- "forestgreen": [34, 139, 34],
1068
- "fuchsia": [255, 0, 255],
1069
- "gainsboro": [220, 220, 220],
1070
- "ghostwhite": [248, 248, 255],
1071
- "gold": [255, 215, 0],
1072
- "goldenrod": [218, 165, 32],
1073
- "gray": [128, 128, 128],
1074
- "green": [0, 128, 0],
1075
- "greenyellow": [173, 255, 47],
1076
- "grey": [128, 128, 128],
1077
- "honeydew": [240, 255, 240],
1078
- "hotpink": [255, 105, 180],
1079
- "indianred": [205, 92, 92],
1080
- "indigo": [75, 0, 130],
1081
- "ivory": [255, 255, 240],
1082
- "khaki": [240, 230, 140],
1083
- "lavender": [230, 230, 250],
1084
- "lavenderblush": [255, 240, 245],
1085
- "lawngreen": [124, 252, 0],
1086
- "lemonchiffon": [255, 250, 205],
1087
- "lightblue": [173, 216, 230],
1088
- "lightcoral": [240, 128, 128],
1089
- "lightcyan": [224, 255, 255],
1090
- "lightgoldenrodyellow": [250, 250, 210],
1091
- "lightgray": [211, 211, 211],
1092
- "lightgreen": [144, 238, 144],
1093
- "lightgrey": [211, 211, 211],
1094
- "lightpink": [255, 182, 193],
1095
- "lightsalmon": [255, 160, 122],
1096
- "lightseagreen": [32, 178, 170],
1097
- "lightskyblue": [135, 206, 250],
1098
- "lightslategray": [119, 136, 153],
1099
- "lightslategrey": [119, 136, 153],
1100
- "lightsteelblue": [176, 196, 222],
1101
- "lightyellow": [255, 255, 224],
1102
- "lime": [0, 255, 0],
1103
- "limegreen": [50, 205, 50],
1104
- "linen": [250, 240, 230],
1105
- "magenta": [255, 0, 255],
1106
- "maroon": [128, 0, 0],
1107
- "mediumaquamarine": [102, 205, 170],
1108
- "mediumblue": [0, 0, 205],
1109
- "mediumorchid": [186, 85, 211],
1110
- "mediumpurple": [147, 112, 219],
1111
- "mediumseagreen": [60, 179, 113],
1112
- "mediumslateblue": [123, 104, 238],
1113
- "mediumspringgreen": [0, 250, 154],
1114
- "mediumturquoise": [72, 209, 204],
1115
- "mediumvioletred": [199, 21, 133],
1116
- "midnightblue": [25, 25, 112],
1117
- "mintcream": [245, 255, 250],
1118
- "mistyrose": [255, 228, 225],
1119
- "moccasin": [255, 228, 181],
1120
- "navajowhite": [255, 222, 173],
1121
- "navy": [0, 0, 128],
1122
- "oldlace": [253, 245, 230],
1123
- "olive": [128, 128, 0],
1124
- "olivedrab": [107, 142, 35],
1125
- "orange": [255, 165, 0],
1126
- "orangered": [255, 69, 0],
1127
- "orchid": [218, 112, 214],
1128
- "palegoldenrod": [238, 232, 170],
1129
- "palegreen": [152, 251, 152],
1130
- "paleturquoise": [175, 238, 238],
1131
- "palevioletred": [219, 112, 147],
1132
- "papayawhip": [255, 239, 213],
1133
- "peachpuff": [255, 218, 185],
1134
- "peru": [205, 133, 63],
1135
- "pink": [255, 192, 203],
1136
- "plum": [221, 160, 221],
1137
- "powderblue": [176, 224, 230],
1138
- "purple": [128, 0, 128],
1139
- "rebeccapurple": [102, 51, 153],
1140
- "red": [255, 0, 0],
1141
- "rosybrown": [188, 143, 143],
1142
- "royalblue": [65, 105, 225],
1143
- "saddlebrown": [139, 69, 19],
1144
- "salmon": [250, 128, 114],
1145
- "sandybrown": [244, 164, 96],
1146
- "seagreen": [46, 139, 87],
1147
- "seashell": [255, 245, 238],
1148
- "sienna": [160, 82, 45],
1149
- "silver": [192, 192, 192],
1150
- "skyblue": [135, 206, 235],
1151
- "slateblue": [106, 90, 205],
1152
- "slategray": [112, 128, 144],
1153
- "slategrey": [112, 128, 144],
1154
- "snow": [255, 250, 250],
1155
- "springgreen": [0, 255, 127],
1156
- "steelblue": [70, 130, 180],
1157
- "tan": [210, 180, 140],
1158
- "teal": [0, 128, 128],
1159
- "thistle": [216, 191, 216],
1160
- "tomato": [255, 99, 71],
1161
- "turquoise": [64, 224, 208],
1162
- "violet": [238, 130, 238],
1163
- "wheat": [245, 222, 179],
1164
- "white": [255, 255, 255],
1165
- "whitesmoke": [245, 245, 245],
1166
- "yellow": [255, 255, 0],
1167
- "yellowgreen": [154, 205, 50]
1168
- };
961
+ }
962
+ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
963
+ validate(codePoint);
964
+ if (isFullWidth(codePoint) || isWide(codePoint) || ambiguousAsWide && isAmbiguous(codePoint)) {
965
+ return 2;
1169
966
  }
1170
- });
1171
-
1172
- // node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js
1173
- var require_conversions = __commonJS({
1174
- "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/conversions.js"(exports2, module2) {
1175
- var cssKeywords = require_color_name();
1176
- var reverseKeywords = {};
1177
- for (const key of Object.keys(cssKeywords)) {
1178
- reverseKeywords[cssKeywords[key]] = key;
1179
- }
1180
- var convert = {
1181
- rgb: { channels: 3, labels: "rgb" },
1182
- hsl: { channels: 3, labels: "hsl" },
1183
- hsv: { channels: 3, labels: "hsv" },
1184
- hwb: { channels: 3, labels: "hwb" },
1185
- cmyk: { channels: 4, labels: "cmyk" },
1186
- xyz: { channels: 3, labels: "xyz" },
1187
- lab: { channels: 3, labels: "lab" },
1188
- lch: { channels: 3, labels: "lch" },
1189
- hex: { channels: 1, labels: ["hex"] },
1190
- keyword: { channels: 1, labels: ["keyword"] },
1191
- ansi16: { channels: 1, labels: ["ansi16"] },
1192
- ansi256: { channels: 1, labels: ["ansi256"] },
1193
- hcg: { channels: 3, labels: ["h", "c", "g"] },
1194
- apple: { channels: 3, labels: ["r16", "g16", "b16"] },
1195
- gray: { channels: 1, labels: ["gray"] }
1196
- };
1197
- module2.exports = convert;
1198
- for (const model of Object.keys(convert)) {
1199
- if (!("channels" in convert[model])) {
1200
- throw new Error("missing channels property: " + model);
1201
- }
1202
- if (!("labels" in convert[model])) {
1203
- throw new Error("missing channel labels property: " + model);
1204
- }
1205
- if (convert[model].labels.length !== convert[model].channels) {
1206
- throw new Error("channel and label counts mismatch: " + model);
1207
- }
1208
- const { channels, labels } = convert[model];
1209
- delete convert[model].channels;
1210
- delete convert[model].labels;
1211
- Object.defineProperty(convert[model], "channels", { value: channels });
1212
- Object.defineProperty(convert[model], "labels", { value: labels });
1213
- }
1214
- convert.rgb.hsl = function(rgb) {
1215
- const r = rgb[0] / 255;
1216
- const g = rgb[1] / 255;
1217
- const b = rgb[2] / 255;
1218
- const min = Math.min(r, g, b);
1219
- const max = Math.max(r, g, b);
1220
- const delta = max - min;
1221
- let h;
1222
- let s;
1223
- if (max === min) {
1224
- h = 0;
1225
- } else if (r === max) {
1226
- h = (g - b) / delta;
1227
- } else if (g === max) {
1228
- h = 2 + (b - r) / delta;
1229
- } else if (b === max) {
1230
- h = 4 + (r - g) / delta;
1231
- }
1232
- h = Math.min(h * 60, 360);
1233
- if (h < 0) {
1234
- h += 360;
1235
- }
1236
- const l = (min + max) / 2;
1237
- if (max === min) {
1238
- s = 0;
1239
- } else if (l <= 0.5) {
1240
- s = delta / (max + min);
1241
- } else {
1242
- s = delta / (2 - max - min);
1243
- }
1244
- return [h, s * 100, l * 100];
1245
- };
1246
- convert.rgb.hsv = function(rgb) {
1247
- let rdif;
1248
- let gdif;
1249
- let bdif;
1250
- let h;
1251
- let s;
1252
- const r = rgb[0] / 255;
1253
- const g = rgb[1] / 255;
1254
- const b = rgb[2] / 255;
1255
- const v = Math.max(r, g, b);
1256
- const diff = v - Math.min(r, g, b);
1257
- const diffc = /* @__PURE__ */ __name(function(c) {
1258
- return (v - c) / 6 / diff + 1 / 2;
1259
- }, "diffc");
1260
- if (diff === 0) {
1261
- h = 0;
1262
- s = 0;
1263
- } else {
1264
- s = diff / v;
1265
- rdif = diffc(r);
1266
- gdif = diffc(g);
1267
- bdif = diffc(b);
1268
- if (r === v) {
1269
- h = bdif - gdif;
1270
- } else if (g === v) {
1271
- h = 1 / 3 + rdif - bdif;
1272
- } else if (b === v) {
1273
- h = 2 / 3 + gdif - rdif;
1274
- }
1275
- if (h < 0) {
1276
- h += 1;
1277
- } else if (h > 1) {
1278
- h -= 1;
1279
- }
1280
- }
1281
- return [
1282
- h * 360,
1283
- s * 100,
1284
- v * 100
1285
- ];
1286
- };
1287
- convert.rgb.hwb = function(rgb) {
1288
- const r = rgb[0];
1289
- const g = rgb[1];
1290
- let b = rgb[2];
1291
- const h = convert.rgb.hsl(rgb)[0];
1292
- const w = 1 / 255 * Math.min(r, Math.min(g, b));
1293
- b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
1294
- return [h, w * 100, b * 100];
1295
- };
1296
- convert.rgb.cmyk = function(rgb) {
1297
- const r = rgb[0] / 255;
1298
- const g = rgb[1] / 255;
1299
- const b = rgb[2] / 255;
1300
- const k = Math.min(1 - r, 1 - g, 1 - b);
1301
- const c = (1 - r - k) / (1 - k) || 0;
1302
- const m = (1 - g - k) / (1 - k) || 0;
1303
- const y = (1 - b - k) / (1 - k) || 0;
1304
- return [c * 100, m * 100, y * 100, k * 100];
1305
- };
1306
- function comparativeDistance(x, y) {
1307
- return (x[0] - y[0]) ** 2 + (x[1] - y[1]) ** 2 + (x[2] - y[2]) ** 2;
1308
- }
1309
- __name(comparativeDistance, "comparativeDistance");
1310
- convert.rgb.keyword = function(rgb) {
1311
- const reversed = reverseKeywords[rgb];
1312
- if (reversed) {
1313
- return reversed;
1314
- }
1315
- let currentClosestDistance = Infinity;
1316
- let currentClosestKeyword;
1317
- for (const keyword of Object.keys(cssKeywords)) {
1318
- const value = cssKeywords[keyword];
1319
- const distance = comparativeDistance(rgb, value);
1320
- if (distance < currentClosestDistance) {
1321
- currentClosestDistance = distance;
1322
- currentClosestKeyword = keyword;
1323
- }
1324
- }
1325
- return currentClosestKeyword;
1326
- };
1327
- convert.keyword.rgb = function(keyword) {
1328
- return cssKeywords[keyword];
1329
- };
1330
- convert.rgb.xyz = function(rgb) {
1331
- let r = rgb[0] / 255;
1332
- let g = rgb[1] / 255;
1333
- let b = rgb[2] / 255;
1334
- r = r > 0.04045 ? ((r + 0.055) / 1.055) ** 2.4 : r / 12.92;
1335
- g = g > 0.04045 ? ((g + 0.055) / 1.055) ** 2.4 : g / 12.92;
1336
- b = b > 0.04045 ? ((b + 0.055) / 1.055) ** 2.4 : b / 12.92;
1337
- const x = r * 0.4124 + g * 0.3576 + b * 0.1805;
1338
- const y = r * 0.2126 + g * 0.7152 + b * 0.0722;
1339
- const z = r * 0.0193 + g * 0.1192 + b * 0.9505;
1340
- return [x * 100, y * 100, z * 100];
1341
- };
1342
- convert.rgb.lab = function(rgb) {
1343
- const xyz = convert.rgb.xyz(rgb);
1344
- let x = xyz[0];
1345
- let y = xyz[1];
1346
- let z = xyz[2];
1347
- x /= 95.047;
1348
- y /= 100;
1349
- z /= 108.883;
1350
- x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
1351
- y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
1352
- z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
1353
- const l = 116 * y - 16;
1354
- const a = 500 * (x - y);
1355
- const b = 200 * (y - z);
1356
- return [l, a, b];
1357
- };
1358
- convert.hsl.rgb = function(hsl) {
1359
- const h = hsl[0] / 360;
1360
- const s = hsl[1] / 100;
1361
- const l = hsl[2] / 100;
1362
- let t2;
1363
- let t3;
1364
- let val;
1365
- if (s === 0) {
1366
- val = l * 255;
1367
- return [val, val, val];
1368
- }
1369
- if (l < 0.5) {
1370
- t2 = l * (1 + s);
1371
- } else {
1372
- t2 = l + s - l * s;
1373
- }
1374
- const t1 = 2 * l - t2;
1375
- const rgb = [0, 0, 0];
1376
- for (let i = 0; i < 3; i++) {
1377
- t3 = h + 1 / 3 * -(i - 1);
1378
- if (t3 < 0) {
1379
- t3++;
1380
- }
1381
- if (t3 > 1) {
1382
- t3--;
1383
- }
1384
- if (6 * t3 < 1) {
1385
- val = t1 + (t2 - t1) * 6 * t3;
1386
- } else if (2 * t3 < 1) {
1387
- val = t2;
1388
- } else if (3 * t3 < 2) {
1389
- val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
1390
- } else {
1391
- val = t1;
1392
- }
1393
- rgb[i] = val * 255;
1394
- }
1395
- return rgb;
1396
- };
1397
- convert.hsl.hsv = function(hsl) {
1398
- const h = hsl[0];
1399
- let s = hsl[1] / 100;
1400
- let l = hsl[2] / 100;
1401
- let smin = s;
1402
- const lmin = Math.max(l, 0.01);
1403
- l *= 2;
1404
- s *= l <= 1 ? l : 2 - l;
1405
- smin *= lmin <= 1 ? lmin : 2 - lmin;
1406
- const v = (l + s) / 2;
1407
- const sv = l === 0 ? 2 * smin / (lmin + smin) : 2 * s / (l + s);
1408
- return [h, sv * 100, v * 100];
1409
- };
1410
- convert.hsv.rgb = function(hsv) {
1411
- const h = hsv[0] / 60;
1412
- const s = hsv[1] / 100;
1413
- let v = hsv[2] / 100;
1414
- const hi = Math.floor(h) % 6;
1415
- const f = h - Math.floor(h);
1416
- const p = 255 * v * (1 - s);
1417
- const q = 255 * v * (1 - s * f);
1418
- const t = 255 * v * (1 - s * (1 - f));
1419
- v *= 255;
1420
- switch (hi) {
1421
- case 0:
1422
- return [v, t, p];
1423
- case 1:
1424
- return [q, v, p];
1425
- case 2:
1426
- return [p, v, t];
1427
- case 3:
1428
- return [p, q, v];
1429
- case 4:
1430
- return [t, p, v];
1431
- case 5:
1432
- return [v, p, q];
1433
- }
1434
- };
1435
- convert.hsv.hsl = function(hsv) {
1436
- const h = hsv[0];
1437
- const s = hsv[1] / 100;
1438
- const v = hsv[2] / 100;
1439
- const vmin = Math.max(v, 0.01);
1440
- let sl;
1441
- let l;
1442
- l = (2 - s) * v;
1443
- const lmin = (2 - s) * vmin;
1444
- sl = s * vmin;
1445
- sl /= lmin <= 1 ? lmin : 2 - lmin;
1446
- sl = sl || 0;
1447
- l /= 2;
1448
- return [h, sl * 100, l * 100];
1449
- };
1450
- convert.hwb.rgb = function(hwb) {
1451
- const h = hwb[0] / 360;
1452
- let wh = hwb[1] / 100;
1453
- let bl = hwb[2] / 100;
1454
- const ratio = wh + bl;
1455
- let f;
1456
- if (ratio > 1) {
1457
- wh /= ratio;
1458
- bl /= ratio;
1459
- }
1460
- const i = Math.floor(6 * h);
1461
- const v = 1 - bl;
1462
- f = 6 * h - i;
1463
- if ((i & 1) !== 0) {
1464
- f = 1 - f;
1465
- }
1466
- const n = wh + f * (v - wh);
1467
- let r;
1468
- let g;
1469
- let b;
1470
- switch (i) {
1471
- default:
1472
- case 6:
1473
- case 0:
1474
- r = v;
1475
- g = n;
1476
- b = wh;
1477
- break;
1478
- case 1:
1479
- r = n;
1480
- g = v;
1481
- b = wh;
1482
- break;
1483
- case 2:
1484
- r = wh;
1485
- g = v;
1486
- b = n;
1487
- break;
1488
- case 3:
1489
- r = wh;
1490
- g = n;
1491
- b = v;
1492
- break;
1493
- case 4:
1494
- r = n;
1495
- g = wh;
1496
- b = v;
1497
- break;
1498
- case 5:
1499
- r = v;
1500
- g = wh;
1501
- b = n;
1502
- break;
1503
- }
1504
- return [r * 255, g * 255, b * 255];
1505
- };
1506
- convert.cmyk.rgb = function(cmyk) {
1507
- const c = cmyk[0] / 100;
1508
- const m = cmyk[1] / 100;
1509
- const y = cmyk[2] / 100;
1510
- const k = cmyk[3] / 100;
1511
- const r = 1 - Math.min(1, c * (1 - k) + k);
1512
- const g = 1 - Math.min(1, m * (1 - k) + k);
1513
- const b = 1 - Math.min(1, y * (1 - k) + k);
1514
- return [r * 255, g * 255, b * 255];
1515
- };
1516
- convert.xyz.rgb = function(xyz) {
1517
- const x = xyz[0] / 100;
1518
- const y = xyz[1] / 100;
1519
- const z = xyz[2] / 100;
1520
- let r;
1521
- let g;
1522
- let b;
1523
- r = x * 3.2406 + y * -1.5372 + z * -0.4986;
1524
- g = x * -0.9689 + y * 1.8758 + z * 0.0415;
1525
- b = x * 0.0557 + y * -0.204 + z * 1.057;
1526
- r = r > 31308e-7 ? 1.055 * r ** (1 / 2.4) - 0.055 : r * 12.92;
1527
- g = g > 31308e-7 ? 1.055 * g ** (1 / 2.4) - 0.055 : g * 12.92;
1528
- b = b > 31308e-7 ? 1.055 * b ** (1 / 2.4) - 0.055 : b * 12.92;
1529
- r = Math.min(Math.max(0, r), 1);
1530
- g = Math.min(Math.max(0, g), 1);
1531
- b = Math.min(Math.max(0, b), 1);
1532
- return [r * 255, g * 255, b * 255];
1533
- };
1534
- convert.xyz.lab = function(xyz) {
1535
- let x = xyz[0];
1536
- let y = xyz[1];
1537
- let z = xyz[2];
1538
- x /= 95.047;
1539
- y /= 100;
1540
- z /= 108.883;
1541
- x = x > 8856e-6 ? x ** (1 / 3) : 7.787 * x + 16 / 116;
1542
- y = y > 8856e-6 ? y ** (1 / 3) : 7.787 * y + 16 / 116;
1543
- z = z > 8856e-6 ? z ** (1 / 3) : 7.787 * z + 16 / 116;
1544
- const l = 116 * y - 16;
1545
- const a = 500 * (x - y);
1546
- const b = 200 * (y - z);
1547
- return [l, a, b];
1548
- };
1549
- convert.lab.xyz = function(lab) {
1550
- const l = lab[0];
1551
- const a = lab[1];
1552
- const b = lab[2];
1553
- let x;
1554
- let y;
1555
- let z;
1556
- y = (l + 16) / 116;
1557
- x = a / 500 + y;
1558
- z = y - b / 200;
1559
- const y2 = y ** 3;
1560
- const x2 = x ** 3;
1561
- const z2 = z ** 3;
1562
- y = y2 > 8856e-6 ? y2 : (y - 16 / 116) / 7.787;
1563
- x = x2 > 8856e-6 ? x2 : (x - 16 / 116) / 7.787;
1564
- z = z2 > 8856e-6 ? z2 : (z - 16 / 116) / 7.787;
1565
- x *= 95.047;
1566
- y *= 100;
1567
- z *= 108.883;
1568
- return [x, y, z];
1569
- };
1570
- convert.lab.lch = function(lab) {
1571
- const l = lab[0];
1572
- const a = lab[1];
1573
- const b = lab[2];
1574
- let h;
1575
- const hr = Math.atan2(b, a);
1576
- h = hr * 360 / 2 / Math.PI;
1577
- if (h < 0) {
1578
- h += 360;
1579
- }
1580
- const c = Math.sqrt(a * a + b * b);
1581
- return [l, c, h];
1582
- };
1583
- convert.lch.lab = function(lch) {
1584
- const l = lch[0];
1585
- const c = lch[1];
1586
- const h = lch[2];
1587
- const hr = h / 360 * 2 * Math.PI;
1588
- const a = c * Math.cos(hr);
1589
- const b = c * Math.sin(hr);
1590
- return [l, a, b];
1591
- };
1592
- convert.rgb.ansi16 = function(args, saturation = null) {
1593
- const [r, g, b] = args;
1594
- let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation;
1595
- value = Math.round(value / 50);
1596
- if (value === 0) {
1597
- return 30;
1598
- }
1599
- let ansi = 30 + (Math.round(b / 255) << 2 | Math.round(g / 255) << 1 | Math.round(r / 255));
1600
- if (value === 2) {
1601
- ansi += 60;
1602
- }
1603
- return ansi;
1604
- };
1605
- convert.hsv.ansi16 = function(args) {
1606
- return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
1607
- };
1608
- convert.rgb.ansi256 = function(args) {
1609
- const r = args[0];
1610
- const g = args[1];
1611
- const b = args[2];
1612
- if (r === g && g === b) {
1613
- if (r < 8) {
1614
- return 16;
1615
- }
1616
- if (r > 248) {
1617
- return 231;
1618
- }
1619
- return Math.round((r - 8) / 247 * 24) + 232;
1620
- }
1621
- const ansi = 16 + 36 * Math.round(r / 255 * 5) + 6 * Math.round(g / 255 * 5) + Math.round(b / 255 * 5);
1622
- return ansi;
1623
- };
1624
- convert.ansi16.rgb = function(args) {
1625
- let color = args % 10;
1626
- if (color === 0 || color === 7) {
1627
- if (args > 50) {
1628
- color += 3.5;
1629
- }
1630
- color = color / 10.5 * 255;
1631
- return [color, color, color];
1632
- }
1633
- const mult = (~~(args > 50) + 1) * 0.5;
1634
- const r = (color & 1) * mult * 255;
1635
- const g = (color >> 1 & 1) * mult * 255;
1636
- const b = (color >> 2 & 1) * mult * 255;
1637
- return [r, g, b];
1638
- };
1639
- convert.ansi256.rgb = function(args) {
1640
- if (args >= 232) {
1641
- const c = (args - 232) * 10 + 8;
1642
- return [c, c, c];
1643
- }
1644
- args -= 16;
1645
- let rem;
1646
- const r = Math.floor(args / 36) / 5 * 255;
1647
- const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
1648
- const b = rem % 6 / 5 * 255;
1649
- return [r, g, b];
1650
- };
1651
- convert.rgb.hex = function(args) {
1652
- const integer = ((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255);
1653
- const string = integer.toString(16).toUpperCase();
1654
- return "000000".substring(string.length) + string;
1655
- };
1656
- convert.hex.rgb = function(args) {
1657
- const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
1658
- if (!match) {
1659
- return [0, 0, 0];
1660
- }
1661
- let colorString = match[0];
1662
- if (match[0].length === 3) {
1663
- colorString = colorString.split("").map((char) => {
1664
- return char + char;
1665
- }).join("");
1666
- }
1667
- const integer = parseInt(colorString, 16);
1668
- const r = integer >> 16 & 255;
1669
- const g = integer >> 8 & 255;
1670
- const b = integer & 255;
1671
- return [r, g, b];
1672
- };
1673
- convert.rgb.hcg = function(rgb) {
1674
- const r = rgb[0] / 255;
1675
- const g = rgb[1] / 255;
1676
- const b = rgb[2] / 255;
1677
- const max = Math.max(Math.max(r, g), b);
1678
- const min = Math.min(Math.min(r, g), b);
1679
- const chroma = max - min;
1680
- let grayscale;
1681
- let hue;
1682
- if (chroma < 1) {
1683
- grayscale = min / (1 - chroma);
1684
- } else {
1685
- grayscale = 0;
1686
- }
1687
- if (chroma <= 0) {
1688
- hue = 0;
1689
- } else if (max === r) {
1690
- hue = (g - b) / chroma % 6;
1691
- } else if (max === g) {
1692
- hue = 2 + (b - r) / chroma;
1693
- } else {
1694
- hue = 4 + (r - g) / chroma;
1695
- }
1696
- hue /= 6;
1697
- hue %= 1;
1698
- return [hue * 360, chroma * 100, grayscale * 100];
1699
- };
1700
- convert.hsl.hcg = function(hsl) {
1701
- const s = hsl[1] / 100;
1702
- const l = hsl[2] / 100;
1703
- const c = l < 0.5 ? 2 * s * l : 2 * s * (1 - l);
1704
- let f = 0;
1705
- if (c < 1) {
1706
- f = (l - 0.5 * c) / (1 - c);
1707
- }
1708
- return [hsl[0], c * 100, f * 100];
1709
- };
1710
- convert.hsv.hcg = function(hsv) {
1711
- const s = hsv[1] / 100;
1712
- const v = hsv[2] / 100;
1713
- const c = s * v;
1714
- let f = 0;
1715
- if (c < 1) {
1716
- f = (v - c) / (1 - c);
1717
- }
1718
- return [hsv[0], c * 100, f * 100];
1719
- };
1720
- convert.hcg.rgb = function(hcg) {
1721
- const h = hcg[0] / 360;
1722
- const c = hcg[1] / 100;
1723
- const g = hcg[2] / 100;
1724
- if (c === 0) {
1725
- return [g * 255, g * 255, g * 255];
1726
- }
1727
- const pure = [0, 0, 0];
1728
- const hi = h % 1 * 6;
1729
- const v = hi % 1;
1730
- const w = 1 - v;
1731
- let mg = 0;
1732
- switch (Math.floor(hi)) {
1733
- case 0:
1734
- pure[0] = 1;
1735
- pure[1] = v;
1736
- pure[2] = 0;
1737
- break;
1738
- case 1:
1739
- pure[0] = w;
1740
- pure[1] = 1;
1741
- pure[2] = 0;
1742
- break;
1743
- case 2:
1744
- pure[0] = 0;
1745
- pure[1] = 1;
1746
- pure[2] = v;
1747
- break;
1748
- case 3:
1749
- pure[0] = 0;
1750
- pure[1] = w;
1751
- pure[2] = 1;
1752
- break;
1753
- case 4:
1754
- pure[0] = v;
1755
- pure[1] = 0;
1756
- pure[2] = 1;
1757
- break;
1758
- default:
1759
- pure[0] = 1;
1760
- pure[1] = 0;
1761
- pure[2] = w;
1762
- }
1763
- mg = (1 - c) * g;
1764
- return [
1765
- (c * pure[0] + mg) * 255,
1766
- (c * pure[1] + mg) * 255,
1767
- (c * pure[2] + mg) * 255
1768
- ];
1769
- };
1770
- convert.hcg.hsv = function(hcg) {
1771
- const c = hcg[1] / 100;
1772
- const g = hcg[2] / 100;
1773
- const v = c + g * (1 - c);
1774
- let f = 0;
1775
- if (v > 0) {
1776
- f = c / v;
1777
- }
1778
- return [hcg[0], f * 100, v * 100];
1779
- };
1780
- convert.hcg.hsl = function(hcg) {
1781
- const c = hcg[1] / 100;
1782
- const g = hcg[2] / 100;
1783
- const l = g * (1 - c) + 0.5 * c;
1784
- let s = 0;
1785
- if (l > 0 && l < 0.5) {
1786
- s = c / (2 * l);
1787
- } else if (l >= 0.5 && l < 1) {
1788
- s = c / (2 * (1 - l));
1789
- }
1790
- return [hcg[0], s * 100, l * 100];
1791
- };
1792
- convert.hcg.hwb = function(hcg) {
1793
- const c = hcg[1] / 100;
1794
- const g = hcg[2] / 100;
1795
- const v = c + g * (1 - c);
1796
- return [hcg[0], (v - c) * 100, (1 - v) * 100];
1797
- };
1798
- convert.hwb.hcg = function(hwb) {
1799
- const w = hwb[1] / 100;
1800
- const b = hwb[2] / 100;
1801
- const v = 1 - b;
1802
- const c = v - w;
1803
- let g = 0;
1804
- if (c < 1) {
1805
- g = (v - c) / (1 - c);
1806
- }
1807
- return [hwb[0], c * 100, g * 100];
1808
- };
1809
- convert.apple.rgb = function(apple) {
1810
- return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
1811
- };
1812
- convert.rgb.apple = function(rgb) {
1813
- return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
1814
- };
1815
- convert.gray.rgb = function(args) {
1816
- return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
1817
- };
1818
- convert.gray.hsl = function(args) {
1819
- return [0, 0, args[0]];
1820
- };
1821
- convert.gray.hsv = convert.gray.hsl;
1822
- convert.gray.hwb = function(gray) {
1823
- return [0, 100, gray[0]];
1824
- };
1825
- convert.gray.cmyk = function(gray) {
1826
- return [0, 0, 0, gray[0]];
1827
- };
1828
- convert.gray.lab = function(gray) {
1829
- return [gray[0], 0, 0];
1830
- };
1831
- convert.gray.hex = function(gray) {
1832
- const val = Math.round(gray[0] / 100 * 255) & 255;
1833
- const integer = (val << 16) + (val << 8) + val;
1834
- const string = integer.toString(16).toUpperCase();
1835
- return "000000".substring(string.length) + string;
1836
- };
1837
- convert.rgb.gray = function(rgb) {
1838
- const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
1839
- return [val / 255 * 100];
1840
- };
967
+ return 1;
968
+ }
969
+ var init_get_east_asian_width = __esm({
970
+ "node_modules/.pnpm/get-east-asian-width@1.3.0/node_modules/get-east-asian-width/index.js"() {
971
+ init_lookup();
972
+ __name(validate, "validate");
973
+ __name(eastAsianWidth, "eastAsianWidth");
1841
974
  }
1842
975
  });
1843
976
 
1844
- // node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js
1845
- var require_route = __commonJS({
1846
- "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/route.js"(exports2, module2) {
1847
- var conversions = require_conversions();
1848
- function buildGraph() {
1849
- const graph = {};
1850
- const models = Object.keys(conversions);
1851
- for (let len = models.length, i = 0; i < len; i++) {
1852
- graph[models[i]] = {
1853
- // http://jsperf.com/1-vs-infinity
1854
- // micro-opt, but this is simple.
1855
- distance: -1,
1856
- parent: null
1857
- };
1858
- }
1859
- return graph;
1860
- }
1861
- __name(buildGraph, "buildGraph");
1862
- function deriveBFS(fromModel) {
1863
- const graph = buildGraph();
1864
- const queue = [fromModel];
1865
- graph[fromModel].distance = 0;
1866
- while (queue.length) {
1867
- const current = queue.pop();
1868
- const adjacents = Object.keys(conversions[current]);
1869
- for (let len = adjacents.length, i = 0; i < len; i++) {
1870
- const adjacent = adjacents[i];
1871
- const node = graph[adjacent];
1872
- if (node.distance === -1) {
1873
- node.distance = graph[current].distance + 1;
1874
- node.parent = current;
1875
- queue.unshift(adjacent);
1876
- }
1877
- }
977
+ // node_modules/.pnpm/string-width@8.1.0/node_modules/string-width/index.js
978
+ function baseVisible(segment) {
979
+ return segment.replace(leadingNonPrintingRegex, "");
980
+ }
981
+ function isZeroWidthCluster(segment) {
982
+ return zeroWidthClusterRegex.test(segment);
983
+ }
984
+ function trailingHalfwidthWidth(segment, eastAsianWidthOptions) {
985
+ let extra = 0;
986
+ if (segment.length > 1) {
987
+ for (const char of segment.slice(1)) {
988
+ if (char >= "＀" && char <= "￯") {
989
+ extra += eastAsianWidth(char.codePointAt(0), eastAsianWidthOptions);
1878
990
  }
1879
- return graph;
1880
991
  }
1881
- __name(deriveBFS, "deriveBFS");
1882
- function link(from, to) {
1883
- return function(args) {
1884
- return to(from(args));
1885
- };
992
+ }
993
+ return extra;
994
+ }
995
+ function stringWidth(input, options = {}) {
996
+ if (typeof input !== "string" || input.length === 0) {
997
+ return 0;
998
+ }
999
+ const {
1000
+ ambiguousIsNarrow = true,
1001
+ countAnsiEscapeCodes = false
1002
+ } = options;
1003
+ let string = input;
1004
+ if (!countAnsiEscapeCodes) {
1005
+ string = stripAnsi(string);
1006
+ }
1007
+ if (string.length === 0) {
1008
+ return 0;
1009
+ }
1010
+ let width = 0;
1011
+ const eastAsianWidthOptions = { ambiguousAsWide: !ambiguousIsNarrow };
1012
+ for (const { segment } of segmenter.segment(string)) {
1013
+ if (isZeroWidthCluster(segment)) {
1014
+ continue;
1886
1015
  }
1887
- __name(link, "link");
1888
- function wrapConversion(toModel, graph) {
1889
- const path = [graph[toModel].parent, toModel];
1890
- let fn = conversions[graph[toModel].parent][toModel];
1891
- let cur = graph[toModel].parent;
1892
- while (graph[cur].parent) {
1893
- path.unshift(graph[cur].parent);
1894
- fn = link(conversions[graph[cur].parent][cur], fn);
1895
- cur = graph[cur].parent;
1896
- }
1897
- fn.conversion = path;
1898
- return fn;
1016
+ if (rgiEmojiRegex.test(segment)) {
1017
+ width += 2;
1018
+ continue;
1899
1019
  }
1900
- __name(wrapConversion, "wrapConversion");
1901
- module2.exports = function(fromModel) {
1902
- const graph = deriveBFS(fromModel);
1903
- const conversion = {};
1904
- const models = Object.keys(graph);
1905
- for (let len = models.length, i = 0; i < len; i++) {
1906
- const toModel = models[i];
1907
- const node = graph[toModel];
1908
- if (node.parent === null) {
1909
- continue;
1910
- }
1911
- conversion[toModel] = wrapConversion(toModel, graph);
1912
- }
1913
- return conversion;
1914
- };
1020
+ const codePoint = baseVisible(segment).codePointAt(0);
1021
+ width += eastAsianWidth(codePoint, eastAsianWidthOptions);
1022
+ width += trailingHalfwidthWidth(segment, eastAsianWidthOptions);
1023
+ }
1024
+ return width;
1025
+ }
1026
+ var segmenter, zeroWidthClusterRegex, leadingNonPrintingRegex, rgiEmojiRegex;
1027
+ var init_string_width = __esm({
1028
+ "node_modules/.pnpm/string-width@8.1.0/node_modules/string-width/index.js"() {
1029
+ init_strip_ansi();
1030
+ init_get_east_asian_width();
1031
+ segmenter = new Intl.Segmenter();
1032
+ zeroWidthClusterRegex = new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Mark}|\\p{Surrogate})+$", "v");
1033
+ leadingNonPrintingRegex = new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+", "v");
1034
+ rgiEmojiRegex = new RegExp("^\\p{RGI_Emoji}$", "v");
1035
+ __name(baseVisible, "baseVisible");
1036
+ __name(isZeroWidthCluster, "isZeroWidthCluster");
1037
+ __name(trailingHalfwidthWidth, "trailingHalfwidthWidth");
1038
+ __name(stringWidth, "stringWidth");
1915
1039
  }
1916
1040
  });
1917
1041
 
1918
- // node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js
1919
- var require_color_convert = __commonJS({
1920
- "node_modules/.pnpm/color-convert@2.0.1/node_modules/color-convert/index.js"(exports2, module2) {
1921
- var conversions = require_conversions();
1922
- var route = require_route();
1923
- var convert = {};
1924
- var models = Object.keys(conversions);
1925
- function wrapRaw(fn) {
1926
- const wrappedFn = /* @__PURE__ */ __name(function(...args) {
1927
- const arg0 = args[0];
1928
- if (arg0 === void 0 || arg0 === null) {
1929
- return arg0;
1930
- }
1931
- if (arg0.length > 1) {
1932
- args = arg0;
1933
- }
1934
- return fn(args);
1935
- }, "wrappedFn");
1936
- if ("conversion" in fn) {
1937
- wrappedFn.conversion = fn.conversion;
1938
- }
1939
- return wrappedFn;
1940
- }
1941
- __name(wrapRaw, "wrapRaw");
1942
- function wrapRounded(fn) {
1943
- const wrappedFn = /* @__PURE__ */ __name(function(...args) {
1944
- const arg0 = args[0];
1945
- if (arg0 === void 0 || arg0 === null) {
1946
- return arg0;
1947
- }
1948
- if (arg0.length > 1) {
1949
- args = arg0;
1950
- }
1951
- const result = fn(args);
1952
- if (typeof result === "object") {
1953
- for (let len = result.length, i = 0; i < len; i++) {
1954
- result[i] = Math.round(result[i]);
1955
- }
1956
- }
1957
- return result;
1958
- }, "wrappedFn");
1959
- if ("conversion" in fn) {
1960
- wrappedFn.conversion = fn.conversion;
1961
- }
1962
- return wrappedFn;
1042
+ // node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
1043
+ function assembleStyles() {
1044
+ const codes = /* @__PURE__ */ new Map();
1045
+ for (const [groupName, group] of Object.entries(styles)) {
1046
+ for (const [styleName, style] of Object.entries(group)) {
1047
+ styles[styleName] = {
1048
+ open: `\x1B[${style[0]}m`,
1049
+ close: `\x1B[${style[1]}m`
1050
+ };
1051
+ group[styleName] = styles[styleName];
1052
+ codes.set(style[0], style[1]);
1963
1053
  }
1964
- __name(wrapRounded, "wrapRounded");
1965
- models.forEach((fromModel) => {
1966
- convert[fromModel] = {};
1967
- Object.defineProperty(convert[fromModel], "channels", { value: conversions[fromModel].channels });
1968
- Object.defineProperty(convert[fromModel], "labels", { value: conversions[fromModel].labels });
1969
- const routes = route(fromModel);
1970
- const routeModels = Object.keys(routes);
1971
- routeModels.forEach((toModel) => {
1972
- const fn = routes[toModel];
1973
- convert[fromModel][toModel] = wrapRounded(fn);
1974
- convert[fromModel][toModel].raw = wrapRaw(fn);
1975
- });
1054
+ Object.defineProperty(styles, groupName, {
1055
+ value: group,
1056
+ enumerable: false
1976
1057
  });
1977
- module2.exports = convert;
1978
1058
  }
1979
- });
1980
-
1981
- // node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js
1982
- var require_ansi_styles = __commonJS({
1983
- "node_modules/.pnpm/ansi-styles@4.3.0/node_modules/ansi-styles/index.js"(exports2, module2) {
1984
- "use strict";
1985
- var wrapAnsi16 = /* @__PURE__ */ __name((fn, offset) => (...args) => {
1986
- const code = fn(...args);
1987
- return `\x1B[${code + offset}m`;
1988
- }, "wrapAnsi16");
1989
- var wrapAnsi256 = /* @__PURE__ */ __name((fn, offset) => (...args) => {
1990
- const code = fn(...args);
1991
- return `\x1B[${38 + offset};5;${code}m`;
1992
- }, "wrapAnsi256");
1993
- var wrapAnsi16m = /* @__PURE__ */ __name((fn, offset) => (...args) => {
1994
- const rgb = fn(...args);
1995
- return `\x1B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
1996
- }, "wrapAnsi16m");
1997
- var ansi2ansi = /* @__PURE__ */ __name((n) => n, "ansi2ansi");
1998
- var rgb2rgb = /* @__PURE__ */ __name((r, g, b) => [r, g, b], "rgb2rgb");
1999
- var setLazyProperty = /* @__PURE__ */ __name((object, property, get) => {
2000
- Object.defineProperty(object, property, {
2001
- get: /* @__PURE__ */ __name(() => {
2002
- const value = get();
2003
- Object.defineProperty(object, property, {
2004
- value,
2005
- enumerable: true,
2006
- configurable: true
2007
- });
2008
- return value;
2009
- }, "get"),
2010
- enumerable: true,
2011
- configurable: true
2012
- });
2013
- }, "setLazyProperty");
2014
- var colorConvert;
2015
- var makeDynamicStyles = /* @__PURE__ */ __name((wrap, targetSpace, identity, isBackground) => {
2016
- if (colorConvert === void 0) {
2017
- colorConvert = require_color_convert();
2018
- }
2019
- const offset = isBackground ? 10 : 0;
2020
- const styles = {};
2021
- for (const [sourceSpace, suite] of Object.entries(colorConvert)) {
2022
- const name = sourceSpace === "ansi16" ? "ansi" : sourceSpace;
2023
- if (sourceSpace === targetSpace) {
2024
- styles[name] = wrap(identity, offset);
2025
- } else if (typeof suite === "object") {
2026
- styles[name] = wrap(suite[targetSpace], offset);
2027
- }
2028
- }
2029
- return styles;
2030
- }, "makeDynamicStyles");
2031
- function assembleStyles() {
2032
- const codes = /* @__PURE__ */ new Map();
2033
- const styles = {
2034
- modifier: {
2035
- reset: [0, 0],
2036
- // 21 isn't widely supported and 22 does the same thing
2037
- bold: [1, 22],
2038
- dim: [2, 22],
2039
- italic: [3, 23],
2040
- underline: [4, 24],
2041
- inverse: [7, 27],
2042
- hidden: [8, 28],
2043
- strikethrough: [9, 29]
2044
- },
2045
- color: {
2046
- black: [30, 39],
2047
- red: [31, 39],
2048
- green: [32, 39],
2049
- yellow: [33, 39],
2050
- blue: [34, 39],
2051
- magenta: [35, 39],
2052
- cyan: [36, 39],
2053
- white: [37, 39],
2054
- // Bright color
2055
- blackBright: [90, 39],
2056
- redBright: [91, 39],
2057
- greenBright: [92, 39],
2058
- yellowBright: [93, 39],
2059
- blueBright: [94, 39],
2060
- magentaBright: [95, 39],
2061
- cyanBright: [96, 39],
2062
- whiteBright: [97, 39]
2063
- },
2064
- bgColor: {
2065
- bgBlack: [40, 49],
2066
- bgRed: [41, 49],
2067
- bgGreen: [42, 49],
2068
- bgYellow: [43, 49],
2069
- bgBlue: [44, 49],
2070
- bgMagenta: [45, 49],
2071
- bgCyan: [46, 49],
2072
- bgWhite: [47, 49],
2073
- // Bright color
2074
- bgBlackBright: [100, 49],
2075
- bgRedBright: [101, 49],
2076
- bgGreenBright: [102, 49],
2077
- bgYellowBright: [103, 49],
2078
- bgBlueBright: [104, 49],
2079
- bgMagentaBright: [105, 49],
2080
- bgCyanBright: [106, 49],
2081
- bgWhiteBright: [107, 49]
1059
+ Object.defineProperty(styles, "codes", {
1060
+ value: codes,
1061
+ enumerable: false
1062
+ });
1063
+ styles.color.close = "\x1B[39m";
1064
+ styles.bgColor.close = "\x1B[49m";
1065
+ styles.color.ansi = wrapAnsi16();
1066
+ styles.color.ansi256 = wrapAnsi256();
1067
+ styles.color.ansi16m = wrapAnsi16m();
1068
+ styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
1069
+ styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
1070
+ styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
1071
+ Object.defineProperties(styles, {
1072
+ rgbToAnsi256: {
1073
+ value(red, green, blue) {
1074
+ if (red === green && green === blue) {
1075
+ if (red < 8) {
1076
+ return 16;
1077
+ }
1078
+ if (red > 248) {
1079
+ return 231;
1080
+ }
1081
+ return Math.round((red - 8) / 247 * 24) + 232;
2082
1082
  }
2083
- };
2084
- styles.color.gray = styles.color.blackBright;
2085
- styles.bgColor.bgGray = styles.bgColor.bgBlackBright;
2086
- styles.color.grey = styles.color.blackBright;
2087
- styles.bgColor.bgGrey = styles.bgColor.bgBlackBright;
2088
- for (const [groupName, group] of Object.entries(styles)) {
2089
- for (const [styleName, style] of Object.entries(group)) {
2090
- styles[styleName] = {
2091
- open: `\x1B[${style[0]}m`,
2092
- close: `\x1B[${style[1]}m`
2093
- };
2094
- group[styleName] = styles[styleName];
2095
- codes.set(style[0], style[1]);
1083
+ return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
1084
+ },
1085
+ enumerable: false
1086
+ },
1087
+ hexToRgb: {
1088
+ value(hex) {
1089
+ const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
1090
+ if (!matches) {
1091
+ return [0, 0, 0];
1092
+ }
1093
+ let [colorString] = matches;
1094
+ if (colorString.length === 3) {
1095
+ colorString = [...colorString].map((character) => character + character).join("");
1096
+ }
1097
+ const integer = Number.parseInt(colorString, 16);
1098
+ return [
1099
+ /* eslint-disable no-bitwise */
1100
+ integer >> 16 & 255,
1101
+ integer >> 8 & 255,
1102
+ integer & 255
1103
+ /* eslint-enable no-bitwise */
1104
+ ];
1105
+ },
1106
+ enumerable: false
1107
+ },
1108
+ hexToAnsi256: {
1109
+ value: /* @__PURE__ */ __name((hex) => styles.rgbToAnsi256(...styles.hexToRgb(hex)), "value"),
1110
+ enumerable: false
1111
+ },
1112
+ ansi256ToAnsi: {
1113
+ value(code) {
1114
+ if (code < 8) {
1115
+ return 30 + code;
1116
+ }
1117
+ if (code < 16) {
1118
+ return 90 + (code - 8);
1119
+ }
1120
+ let red;
1121
+ let green;
1122
+ let blue;
1123
+ if (code >= 232) {
1124
+ red = ((code - 232) * 10 + 8) / 255;
1125
+ green = red;
1126
+ blue = red;
1127
+ } else {
1128
+ code -= 16;
1129
+ const remainder = code % 36;
1130
+ red = Math.floor(code / 36) / 5;
1131
+ green = Math.floor(remainder / 6) / 5;
1132
+ blue = remainder % 6 / 5;
2096
1133
  }
2097
- Object.defineProperty(styles, groupName, {
2098
- value: group,
2099
- enumerable: false
2100
- });
2101
- }
2102
- Object.defineProperty(styles, "codes", {
2103
- value: codes,
2104
- enumerable: false
2105
- });
2106
- styles.color.close = "\x1B[39m";
2107
- styles.bgColor.close = "\x1B[49m";
2108
- setLazyProperty(styles.color, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
2109
- setLazyProperty(styles.color, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
2110
- setLazyProperty(styles.color, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
2111
- setLazyProperty(styles.bgColor, "ansi", () => makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
2112
- setLazyProperty(styles.bgColor, "ansi256", () => makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
2113
- setLazyProperty(styles.bgColor, "ansi16m", () => makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
2114
- return styles;
1134
+ const value = Math.max(red, green, blue) * 2;
1135
+ if (value === 0) {
1136
+ return 30;
1137
+ }
1138
+ let result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
1139
+ if (value === 2) {
1140
+ result += 60;
1141
+ }
1142
+ return result;
1143
+ },
1144
+ enumerable: false
1145
+ },
1146
+ rgbToAnsi: {
1147
+ value: /* @__PURE__ */ __name((red, green, blue) => styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue)), "value"),
1148
+ enumerable: false
1149
+ },
1150
+ hexToAnsi: {
1151
+ value: /* @__PURE__ */ __name((hex) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex)), "value"),
1152
+ enumerable: false
2115
1153
  }
1154
+ });
1155
+ return styles;
1156
+ }
1157
+ var ANSI_BACKGROUND_OFFSET, wrapAnsi16, wrapAnsi256, wrapAnsi16m, styles, modifierNames, foregroundColorNames, backgroundColorNames, colorNames, ansiStyles, ansi_styles_default;
1158
+ var init_ansi_styles = __esm({
1159
+ "node_modules/.pnpm/ansi-styles@6.2.3/node_modules/ansi-styles/index.js"() {
1160
+ ANSI_BACKGROUND_OFFSET = 10;
1161
+ wrapAnsi16 = /* @__PURE__ */ __name((offset = 0) => (code) => `\x1B[${code + offset}m`, "wrapAnsi16");
1162
+ wrapAnsi256 = /* @__PURE__ */ __name((offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`, "wrapAnsi256");
1163
+ wrapAnsi16m = /* @__PURE__ */ __name((offset = 0) => (red, green, blue) => `\x1B[${38 + offset};2;${red};${green};${blue}m`, "wrapAnsi16m");
1164
+ styles = {
1165
+ modifier: {
1166
+ reset: [0, 0],
1167
+ // 21 isn't widely supported and 22 does the same thing
1168
+ bold: [1, 22],
1169
+ dim: [2, 22],
1170
+ italic: [3, 23],
1171
+ underline: [4, 24],
1172
+ overline: [53, 55],
1173
+ inverse: [7, 27],
1174
+ hidden: [8, 28],
1175
+ strikethrough: [9, 29]
1176
+ },
1177
+ color: {
1178
+ black: [30, 39],
1179
+ red: [31, 39],
1180
+ green: [32, 39],
1181
+ yellow: [33, 39],
1182
+ blue: [34, 39],
1183
+ magenta: [35, 39],
1184
+ cyan: [36, 39],
1185
+ white: [37, 39],
1186
+ // Bright color
1187
+ blackBright: [90, 39],
1188
+ gray: [90, 39],
1189
+ // Alias of `blackBright`
1190
+ grey: [90, 39],
1191
+ // Alias of `blackBright`
1192
+ redBright: [91, 39],
1193
+ greenBright: [92, 39],
1194
+ yellowBright: [93, 39],
1195
+ blueBright: [94, 39],
1196
+ magentaBright: [95, 39],
1197
+ cyanBright: [96, 39],
1198
+ whiteBright: [97, 39]
1199
+ },
1200
+ bgColor: {
1201
+ bgBlack: [40, 49],
1202
+ bgRed: [41, 49],
1203
+ bgGreen: [42, 49],
1204
+ bgYellow: [43, 49],
1205
+ bgBlue: [44, 49],
1206
+ bgMagenta: [45, 49],
1207
+ bgCyan: [46, 49],
1208
+ bgWhite: [47, 49],
1209
+ // Bright color
1210
+ bgBlackBright: [100, 49],
1211
+ bgGray: [100, 49],
1212
+ // Alias of `bgBlackBright`
1213
+ bgGrey: [100, 49],
1214
+ // Alias of `bgBlackBright`
1215
+ bgRedBright: [101, 49],
1216
+ bgGreenBright: [102, 49],
1217
+ bgYellowBright: [103, 49],
1218
+ bgBlueBright: [104, 49],
1219
+ bgMagentaBright: [105, 49],
1220
+ bgCyanBright: [106, 49],
1221
+ bgWhiteBright: [107, 49]
1222
+ }
1223
+ };
1224
+ modifierNames = Object.keys(styles.modifier);
1225
+ foregroundColorNames = Object.keys(styles.color);
1226
+ backgroundColorNames = Object.keys(styles.bgColor);
1227
+ colorNames = [...foregroundColorNames, ...backgroundColorNames];
2116
1228
  __name(assembleStyles, "assembleStyles");
2117
- Object.defineProperty(module2, "exports", {
2118
- enumerable: true,
2119
- get: assembleStyles
2120
- });
1229
+ ansiStyles = assembleStyles();
1230
+ ansi_styles_default = ansiStyles;
2121
1231
  }
2122
1232
  });
2123
1233
 
2124
- // node_modules/.pnpm/wrap-ansi@6.2.0/node_modules/wrap-ansi/index.js
2125
- var require_wrap_ansi = __commonJS({
2126
- "node_modules/.pnpm/wrap-ansi@6.2.0/node_modules/wrap-ansi/index.js"(exports2, module2) {
2127
- "use strict";
2128
- var stringWidth = require_string_width();
2129
- var stripAnsi = require_strip_ansi();
2130
- var ansiStyles = require_ansi_styles();
2131
- var ESCAPES = /* @__PURE__ */ new Set([
1234
+ // node_modules/.pnpm/wrap-ansi@9.0.2/node_modules/wrap-ansi/index.js
1235
+ var wrap_ansi_exports = {};
1236
+ __export(wrap_ansi_exports, {
1237
+ default: () => wrapAnsi
1238
+ });
1239
+ function wrapAnsi(string, columns, options) {
1240
+ return String(string).normalize().replaceAll("\r\n", "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
1241
+ }
1242
+ var ESCAPES, END_CODE, ANSI_ESCAPE_BELL, ANSI_CSI, ANSI_OSC, ANSI_SGR_TERMINATOR, ANSI_ESCAPE_LINK, wrapAnsiCode, wrapAnsiHyperlink, wordLengths, wrapWord, stringVisibleTrimSpacesRight, exec;
1243
+ var init_wrap_ansi = __esm({
1244
+ "node_modules/.pnpm/wrap-ansi@9.0.2/node_modules/wrap-ansi/index.js"() {
1245
+ init_string_width();
1246
+ init_strip_ansi();
1247
+ init_ansi_styles();
1248
+ ESCAPES = /* @__PURE__ */ new Set([
2132
1249
  "\x1B",
2133
1250
  "›"
2134
1251
  ]);
2135
- var END_CODE = 39;
2136
- var wrapAnsi = /* @__PURE__ */ __name((code) => `${ESCAPES.values().next().value}[${code}m`, "wrapAnsi");
2137
- var wordLengths = /* @__PURE__ */ __name((string) => string.split(" ").map((character) => stringWidth(character)), "wordLengths");
2138
- var wrapWord = /* @__PURE__ */ __name((rows, word, columns) => {
1252
+ END_CODE = 39;
1253
+ ANSI_ESCAPE_BELL = "\x07";
1254
+ ANSI_CSI = "[";
1255
+ ANSI_OSC = "]";
1256
+ ANSI_SGR_TERMINATOR = "m";
1257
+ ANSI_ESCAPE_LINK = `${ANSI_OSC}8;;`;
1258
+ wrapAnsiCode = /* @__PURE__ */ __name((code) => `${ESCAPES.values().next().value}${ANSI_CSI}${code}${ANSI_SGR_TERMINATOR}`, "wrapAnsiCode");
1259
+ wrapAnsiHyperlink = /* @__PURE__ */ __name((url) => `${ESCAPES.values().next().value}${ANSI_ESCAPE_LINK}${url}${ANSI_ESCAPE_BELL}`, "wrapAnsiHyperlink");
1260
+ wordLengths = /* @__PURE__ */ __name((string) => string.split(" ").map((character) => stringWidth(character)), "wordLengths");
1261
+ wrapWord = /* @__PURE__ */ __name((rows, word, columns) => {
2139
1262
  const characters = [...word];
2140
1263
  let isInsideEscape = false;
2141
- let visible = stringWidth(stripAnsi(rows[rows.length - 1]));
1264
+ let isInsideLinkEscape = false;
1265
+ let visible = stringWidth(stripAnsi(rows.at(-1)));
2142
1266
  for (const [index, character] of characters.entries()) {
2143
1267
  const characterLength = stringWidth(character);
2144
1268
  if (visible + characterLength <= columns) {
@@ -2149,11 +1273,18 @@ var require_wrap_ansi = __commonJS({
2149
1273
  }
2150
1274
  if (ESCAPES.has(character)) {
2151
1275
  isInsideEscape = true;
2152
- } else if (isInsideEscape && character === "m") {
2153
- isInsideEscape = false;
2154
- continue;
1276
+ const ansiEscapeLinkCandidate = characters.slice(index + 1, index + 1 + ANSI_ESCAPE_LINK.length).join("");
1277
+ isInsideLinkEscape = ansiEscapeLinkCandidate === ANSI_ESCAPE_LINK;
2155
1278
  }
2156
1279
  if (isInsideEscape) {
1280
+ if (isInsideLinkEscape) {
1281
+ if (character === ANSI_ESCAPE_BELL) {
1282
+ isInsideEscape = false;
1283
+ isInsideLinkEscape = false;
1284
+ }
1285
+ } else if (character === ANSI_SGR_TERMINATOR) {
1286
+ isInsideEscape = false;
1287
+ }
2157
1288
  continue;
2158
1289
  }
2159
1290
  visible += characterLength;
@@ -2162,12 +1293,12 @@ var require_wrap_ansi = __commonJS({
2162
1293
  visible = 0;
2163
1294
  }
2164
1295
  }
2165
- if (!visible && rows[rows.length - 1].length > 0 && rows.length > 1) {
1296
+ if (!visible && rows.at(-1).length > 0 && rows.length > 1) {
2166
1297
  rows[rows.length - 2] += rows.pop();
2167
1298
  }
2168
1299
  }, "wrapWord");
2169
- var stringVisibleTrimSpacesRight = /* @__PURE__ */ __name((str) => {
2170
- const words = str.split(" ");
1300
+ stringVisibleTrimSpacesRight = /* @__PURE__ */ __name((string) => {
1301
+ const words = string.split(" ");
2171
1302
  let last = words.length;
2172
1303
  while (last > 0) {
2173
1304
  if (stringWidth(words[last - 1]) > 0) {
@@ -2176,24 +1307,24 @@ var require_wrap_ansi = __commonJS({
2176
1307
  last--;
2177
1308
  }
2178
1309
  if (last === words.length) {
2179
- return str;
1310
+ return string;
2180
1311
  }
2181
1312
  return words.slice(0, last).join(" ") + words.slice(last).join("");
2182
1313
  }, "stringVisibleTrimSpacesRight");
2183
- var exec = /* @__PURE__ */ __name((string, columns, options = {}) => {
1314
+ exec = /* @__PURE__ */ __name((string, columns, options = {}) => {
2184
1315
  if (options.trim !== false && string.trim() === "") {
2185
1316
  return "";
2186
1317
  }
2187
- let pre = "";
2188
- let ret = "";
1318
+ let returnValue = "";
2189
1319
  let escapeCode;
1320
+ let escapeUrl;
2190
1321
  const lengths = wordLengths(string);
2191
1322
  let rows = [""];
2192
1323
  for (const [index, word] of string.split(" ").entries()) {
2193
1324
  if (options.trim !== false) {
2194
- rows[rows.length - 1] = rows[rows.length - 1].trimLeft();
1325
+ rows[rows.length - 1] = rows.at(-1).trimStart();
2195
1326
  }
2196
- let rowLength = stringWidth(rows[rows.length - 1]);
1327
+ let rowLength = stringWidth(rows.at(-1));
2197
1328
  if (index !== 0) {
2198
1329
  if (rowLength >= columns && (options.wordWrap === false || options.trim === false)) {
2199
1330
  rows.push("");
@@ -2228,29 +1359,43 @@ var require_wrap_ansi = __commonJS({
2228
1359
  rows[rows.length - 1] += word;
2229
1360
  }
2230
1361
  if (options.trim !== false) {
2231
- rows = rows.map(stringVisibleTrimSpacesRight);
1362
+ rows = rows.map((row) => stringVisibleTrimSpacesRight(row));
2232
1363
  }
2233
- pre = rows.join("\n");
2234
- for (const [index, character] of [...pre].entries()) {
2235
- ret += character;
1364
+ const preString = rows.join("\n");
1365
+ const pre = [...preString];
1366
+ let preStringIndex = 0;
1367
+ for (const [index, character] of pre.entries()) {
1368
+ returnValue += character;
2236
1369
  if (ESCAPES.has(character)) {
2237
- const code2 = parseFloat(/\d[^m]*/.exec(pre.slice(index, index + 4)));
2238
- escapeCode = code2 === END_CODE ? null : code2;
2239
- }
2240
- const code = ansiStyles.codes.get(Number(escapeCode));
2241
- if (escapeCode && code) {
2242
- if (pre[index + 1] === "\n") {
2243
- ret += wrapAnsi(code);
2244
- } else if (character === "\n") {
2245
- ret += wrapAnsi(escapeCode);
1370
+ const { groups } = new RegExp(`(?:\\${ANSI_CSI}(?<code>\\d+)m|\\${ANSI_ESCAPE_LINK}(?<uri>.*)${ANSI_ESCAPE_BELL})`).exec(preString.slice(preStringIndex)) || { groups: {} };
1371
+ if (groups.code !== void 0) {
1372
+ const code2 = Number.parseFloat(groups.code);
1373
+ escapeCode = code2 === END_CODE ? void 0 : code2;
1374
+ } else if (groups.uri !== void 0) {
1375
+ escapeUrl = groups.uri.length === 0 ? void 0 : groups.uri;
1376
+ }
1377
+ }
1378
+ const code = ansi_styles_default.codes.get(Number(escapeCode));
1379
+ if (pre[index + 1] === "\n") {
1380
+ if (escapeUrl) {
1381
+ returnValue += wrapAnsiHyperlink("");
1382
+ }
1383
+ if (escapeCode && code) {
1384
+ returnValue += wrapAnsiCode(code);
1385
+ }
1386
+ } else if (character === "\n") {
1387
+ if (escapeCode && code) {
1388
+ returnValue += wrapAnsiCode(escapeCode);
1389
+ }
1390
+ if (escapeUrl) {
1391
+ returnValue += wrapAnsiHyperlink(escapeUrl);
2246
1392
  }
2247
1393
  }
1394
+ preStringIndex += character.length;
2248
1395
  }
2249
- return ret;
1396
+ return returnValue;
2250
1397
  }, "exec");
2251
- module2.exports = (string, columns, options) => {
2252
- return String(string).normalize().replace(/\r\n/g, "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
2253
- };
1398
+ __name(wrapAnsi, "wrapAnsi");
2254
1399
  }
2255
1400
  });
2256
1401
 
@@ -2265,7 +1410,7 @@ var require_utils = __commonJS({
2265
1410
  exports2.breakLines = breakLines;
2266
1411
  exports2.readlineWidth = readlineWidth;
2267
1412
  var cli_width_1 = __importDefault(require_cli_width());
2268
- var wrap_ansi_1 = __importDefault(require_wrap_ansi());
1413
+ var wrap_ansi_1 = __importDefault((init_wrap_ansi(), __toCommonJS(wrap_ansi_exports)));
2269
1414
  var hook_engine_ts_1 = require_hook_engine();
2270
1415
  function breakLines(content, width) {
2271
1416
  return content.split("\n").flatMap((line) => (0, wrap_ansi_1.default)(line, width, { trim: false, hard: true }).split("\n").map((str) => str.trimEnd())).join("\n");
@@ -3252,7 +2397,7 @@ var require_commonjs4 = __commonJS({
3252
2397
  pageSize = 7,
3253
2398
  loop = true,
3254
2399
  required,
3255
- validate = /* @__PURE__ */ __name(() => true, "validate")
2400
+ validate: validate2 = /* @__PURE__ */ __name(() => true, "validate")
3256
2401
  } = config;
3257
2402
  const shortcuts = { all: "a", invert: "i", ...config.shortcuts };
3258
2403
  const theme = (0, core_1.makeTheme)(checkboxTheme, config.theme);
@@ -3273,7 +2418,7 @@ var require_commonjs4 = __commonJS({
3273
2418
  (0, core_1.useKeypress)(async (key) => {
3274
2419
  if ((0, core_1.isEnterKey)(key)) {
3275
2420
  const selection = items.filter(isChecked);
3276
- const isValid = await validate([...selection]);
2421
+ const isValid = await validate2([...selection]);
3277
2422
  if (required && !items.some(isChecked)) {
3278
2423
  setError("At least one choice must be selected");
3279
2424
  } else if (isValid === true) {