repomind 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1716 -266
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -38,9 +38,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
38
38
  mod
39
39
  ));
40
40
 
41
- // ../../node_modules/react/cjs/react.production.js
41
+ // ../../node_modules/.bun/react@19.2.4/node_modules/react/cjs/react.production.js
42
42
  var require_react_production = __commonJS({
43
- "../../node_modules/react/cjs/react.production.js"(exports) {
43
+ "../../node_modules/.bun/react@19.2.4/node_modules/react/cjs/react.production.js"(exports) {
44
44
  "use strict";
45
45
  var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
46
46
  var REACT_PORTAL_TYPE = Symbol.for("react.portal");
@@ -479,9 +479,9 @@ var require_react_production = __commonJS({
479
479
  }
480
480
  });
481
481
 
482
- // ../../node_modules/react/cjs/react.development.js
482
+ // ../../node_modules/.bun/react@19.2.4/node_modules/react/cjs/react.development.js
483
483
  var require_react_development = __commonJS({
484
- "../../node_modules/react/cjs/react.development.js"(exports, module) {
484
+ "../../node_modules/.bun/react@19.2.4/node_modules/react/cjs/react.development.js"(exports, module) {
485
485
  "use strict";
486
486
  "production" !== process.env.NODE_ENV && (function() {
487
487
  function defineDeprecationWarning(methodName, info) {
@@ -1451,9 +1451,9 @@ var require_react_development = __commonJS({
1451
1451
  }
1452
1452
  });
1453
1453
 
1454
- // ../../node_modules/react/index.js
1454
+ // ../../node_modules/.bun/react@19.2.4/node_modules/react/index.js
1455
1455
  var require_react = __commonJS({
1456
- "../../node_modules/react/index.js"(exports, module) {
1456
+ "../../node_modules/.bun/react@19.2.4/node_modules/react/index.js"(exports, module) {
1457
1457
  "use strict";
1458
1458
  if (process.env.NODE_ENV === "production") {
1459
1459
  module.exports = require_react_production();
@@ -1463,9 +1463,9 @@ var require_react = __commonJS({
1463
1463
  }
1464
1464
  });
1465
1465
 
1466
- // ../../node_modules/signal-exit/signals.js
1466
+ // ../../node_modules/.bun/signal-exit@3.0.7/node_modules/signal-exit/signals.js
1467
1467
  var require_signals = __commonJS({
1468
- "../../node_modules/signal-exit/signals.js"(exports, module) {
1468
+ "../../node_modules/.bun/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports, module) {
1469
1469
  module.exports = [
1470
1470
  "SIGABRT",
1471
1471
  "SIGALRM",
@@ -1500,9 +1500,9 @@ var require_signals = __commonJS({
1500
1500
  }
1501
1501
  });
1502
1502
 
1503
- // ../../node_modules/signal-exit/index.js
1503
+ // ../../node_modules/.bun/signal-exit@3.0.7/node_modules/signal-exit/index.js
1504
1504
  var require_signal_exit = __commonJS({
1505
- "../../node_modules/signal-exit/index.js"(exports, module) {
1505
+ "../../node_modules/.bun/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports, module) {
1506
1506
  var process14 = global.process;
1507
1507
  var processOk = function(process15) {
1508
1508
  return process15 && typeof process15 === "object" && typeof process15.removeListener === "function" && typeof process15.emit === "function" && typeof process15.reallyExit === "function" && typeof process15.listeners === "function" && typeof process15.kill === "function" && typeof process15.pid === "number" && typeof process15.on === "function";
@@ -1659,9 +1659,9 @@ var require_signal_exit = __commonJS({
1659
1659
  }
1660
1660
  });
1661
1661
 
1662
- // ../../node_modules/react-reconciler/cjs/react-reconciler-constants.production.js
1662
+ // ../../node_modules/.bun/react-reconciler@0.33.0+b1ab299f0a400331/node_modules/react-reconciler/cjs/react-reconciler-constants.production.js
1663
1663
  var require_react_reconciler_constants_production = __commonJS({
1664
- "../../node_modules/react-reconciler/cjs/react-reconciler-constants.production.js"(exports) {
1664
+ "../../node_modules/.bun/react-reconciler@0.33.0+b1ab299f0a400331/node_modules/react-reconciler/cjs/react-reconciler-constants.production.js"(exports) {
1665
1665
  "use strict";
1666
1666
  exports.ConcurrentRoot = 1;
1667
1667
  exports.ContinuousEventPriority = 8;
@@ -1673,17 +1673,17 @@ var require_react_reconciler_constants_production = __commonJS({
1673
1673
  }
1674
1674
  });
1675
1675
 
1676
- // ../../node_modules/react-reconciler/cjs/react-reconciler-constants.development.js
1676
+ // ../../node_modules/.bun/react-reconciler@0.33.0+b1ab299f0a400331/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js
1677
1677
  var require_react_reconciler_constants_development = __commonJS({
1678
- "../../node_modules/react-reconciler/cjs/react-reconciler-constants.development.js"(exports) {
1678
+ "../../node_modules/.bun/react-reconciler@0.33.0+b1ab299f0a400331/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js"(exports) {
1679
1679
  "use strict";
1680
1680
  "production" !== process.env.NODE_ENV && (exports.ConcurrentRoot = 1, exports.ContinuousEventPriority = 8, exports.DefaultEventPriority = 32, exports.DiscreteEventPriority = 2, exports.IdleEventPriority = 268435456, exports.LegacyRoot = 0, exports.NoEventPriority = 0);
1681
1681
  }
1682
1682
  });
1683
1683
 
1684
- // ../../node_modules/react-reconciler/constants.js
1684
+ // ../../node_modules/.bun/react-reconciler@0.33.0+b1ab299f0a400331/node_modules/react-reconciler/constants.js
1685
1685
  var require_constants = __commonJS({
1686
- "../../node_modules/react-reconciler/constants.js"(exports, module) {
1686
+ "../../node_modules/.bun/react-reconciler@0.33.0+b1ab299f0a400331/node_modules/react-reconciler/constants.js"(exports, module) {
1687
1687
  "use strict";
1688
1688
  if (process.env.NODE_ENV === "production") {
1689
1689
  module.exports = require_react_reconciler_constants_production();
@@ -1693,18 +1693,18 @@ var require_constants = __commonJS({
1693
1693
  }
1694
1694
  });
1695
1695
 
1696
- // ../../node_modules/emoji-regex/index.js
1696
+ // ../../node_modules/.bun/emoji-regex@10.6.0/node_modules/emoji-regex/index.js
1697
1697
  var require_emoji_regex = __commonJS({
1698
- "../../node_modules/emoji-regex/index.js"(exports, module) {
1698
+ "../../node_modules/.bun/emoji-regex@10.6.0/node_modules/emoji-regex/index.js"(exports, module) {
1699
1699
  module.exports = () => {
1700
1700
  return /[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\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?|[\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](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E-\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\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-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED8\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;
1701
1701
  };
1702
1702
  }
1703
1703
  });
1704
1704
 
1705
- // ../../node_modules/scheduler/cjs/scheduler.production.js
1705
+ // ../../node_modules/.bun/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js
1706
1706
  var require_scheduler_production = __commonJS({
1707
- "../../node_modules/scheduler/cjs/scheduler.production.js"(exports) {
1707
+ "../../node_modules/.bun/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js"(exports) {
1708
1708
  "use strict";
1709
1709
  function push(heap, node) {
1710
1710
  var index = heap.length;
@@ -1975,9 +1975,9 @@ var require_scheduler_production = __commonJS({
1975
1975
  }
1976
1976
  });
1977
1977
 
1978
- // ../../node_modules/scheduler/cjs/scheduler.development.js
1978
+ // ../../node_modules/.bun/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js
1979
1979
  var require_scheduler_development = __commonJS({
1980
- "../../node_modules/scheduler/cjs/scheduler.development.js"(exports) {
1980
+ "../../node_modules/.bun/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.development.js"(exports) {
1981
1981
  "use strict";
1982
1982
  "production" !== process.env.NODE_ENV && (function() {
1983
1983
  function performWorkUntilDeadline() {
@@ -2234,9 +2234,9 @@ var require_scheduler_development = __commonJS({
2234
2234
  }
2235
2235
  });
2236
2236
 
2237
- // ../../node_modules/scheduler/index.js
2237
+ // ../../node_modules/.bun/scheduler@0.27.0/node_modules/scheduler/index.js
2238
2238
  var require_scheduler = __commonJS({
2239
- "../../node_modules/scheduler/index.js"(exports, module) {
2239
+ "../../node_modules/.bun/scheduler@0.27.0/node_modules/scheduler/index.js"(exports, module) {
2240
2240
  "use strict";
2241
2241
  if (process.env.NODE_ENV === "production") {
2242
2242
  module.exports = require_scheduler_production();
@@ -2246,9 +2246,9 @@ var require_scheduler = __commonJS({
2246
2246
  }
2247
2247
  });
2248
2248
 
2249
- // ../../node_modules/react-reconciler/cjs/react-reconciler.production.js
2249
+ // ../../node_modules/.bun/react-reconciler@0.33.0+b1ab299f0a400331/node_modules/react-reconciler/cjs/react-reconciler.production.js
2250
2250
  var require_react_reconciler_production = __commonJS({
2251
- "../../node_modules/react-reconciler/cjs/react-reconciler.production.js"(exports, module) {
2251
+ "../../node_modules/.bun/react-reconciler@0.33.0+b1ab299f0a400331/node_modules/react-reconciler/cjs/react-reconciler.production.js"(exports, module) {
2252
2252
  "use strict";
2253
2253
  module.exports = function($$$config) {
2254
2254
  function createFiber(tag, pendingProps, key, mode) {
@@ -9638,14 +9638,14 @@ var require_react_reconciler_production = __commonJS({
9638
9638
  }
9639
9639
  var exports2 = {};
9640
9640
  "use strict";
9641
- var React19 = require_react(), Scheduler2 = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
9641
+ var React20 = require_react(), Scheduler2 = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
9642
9642
  Symbol.for("react.scope");
9643
9643
  var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
9644
9644
  Symbol.for("react.legacy_hidden");
9645
9645
  Symbol.for("react.tracing_marker");
9646
9646
  var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
9647
9647
  Symbol.for("react.view_transition");
9648
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React19.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
9648
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React20.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
9649
9649
  $$$config.cloneMutableInstance;
9650
9650
  var appendInitialChild = $$$config.appendInitialChild, finalizeInitialChildren = $$$config.finalizeInitialChildren, shouldSetTextContent = $$$config.shouldSetTextContent, createTextInstance = $$$config.createTextInstance;
9651
9651
  $$$config.cloneMutableTextInstance;
@@ -10425,9 +10425,9 @@ var require_react_reconciler_production = __commonJS({
10425
10425
  }
10426
10426
  });
10427
10427
 
10428
- // ../../node_modules/react-reconciler/cjs/react-reconciler.development.js
10428
+ // ../../node_modules/.bun/react-reconciler@0.33.0+b1ab299f0a400331/node_modules/react-reconciler/cjs/react-reconciler.development.js
10429
10429
  var require_react_reconciler_development = __commonJS({
10430
- "../../node_modules/react-reconciler/cjs/react-reconciler.development.js"(exports, module) {
10430
+ "../../node_modules/.bun/react-reconciler@0.33.0+b1ab299f0a400331/node_modules/react-reconciler/cjs/react-reconciler.development.js"(exports, module) {
10431
10431
  "use strict";
10432
10432
  "production" !== process.env.NODE_ENV && (module.exports = function($$$config) {
10433
10433
  function findHook(fiber, id) {
@@ -22238,14 +22238,14 @@ var require_react_reconciler_development = __commonJS({
22238
22238
  }
22239
22239
  var exports2 = {};
22240
22240
  "use strict";
22241
- var React19 = require_react(), Scheduler2 = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
22241
+ var React20 = require_react(), Scheduler2 = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
22242
22242
  Symbol.for("react.scope");
22243
22243
  var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
22244
22244
  Symbol.for("react.legacy_hidden");
22245
22245
  Symbol.for("react.tracing_marker");
22246
22246
  var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
22247
22247
  Symbol.for("react.view_transition");
22248
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React19.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
22248
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React20.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
22249
22249
  $$$config.cloneMutableInstance;
22250
22250
  var appendInitialChild = $$$config.appendInitialChild, finalizeInitialChildren = $$$config.finalizeInitialChildren, shouldSetTextContent = $$$config.shouldSetTextContent, createTextInstance = $$$config.createTextInstance;
22251
22251
  $$$config.cloneMutableTextInstance;
@@ -24198,9 +24198,9 @@ var require_react_reconciler_development = __commonJS({
24198
24198
  }
24199
24199
  });
24200
24200
 
24201
- // ../../node_modules/react-reconciler/index.js
24201
+ // ../../node_modules/.bun/react-reconciler@0.33.0+b1ab299f0a400331/node_modules/react-reconciler/index.js
24202
24202
  var require_react_reconciler = __commonJS({
24203
- "../../node_modules/react-reconciler/index.js"(exports, module) {
24203
+ "../../node_modules/.bun/react-reconciler@0.33.0+b1ab299f0a400331/node_modules/react-reconciler/index.js"(exports, module) {
24204
24204
  "use strict";
24205
24205
  if (process.env.NODE_ENV === "production") {
24206
24206
  module.exports = require_react_reconciler_production();
@@ -24210,9 +24210,9 @@ var require_react_reconciler = __commonJS({
24210
24210
  }
24211
24211
  });
24212
24212
 
24213
- // ../../node_modules/ws/lib/constants.js
24213
+ // ../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/constants.js
24214
24214
  var require_constants2 = __commonJS({
24215
- "../../node_modules/ws/lib/constants.js"(exports, module) {
24215
+ "../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/constants.js"(exports, module) {
24216
24216
  "use strict";
24217
24217
  var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
24218
24218
  var hasBlob = typeof Blob !== "undefined";
@@ -24233,9 +24233,9 @@ var require_constants2 = __commonJS({
24233
24233
  }
24234
24234
  });
24235
24235
 
24236
- // ../../node_modules/ws/lib/buffer-util.js
24236
+ // ../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/buffer-util.js
24237
24237
  var require_buffer_util = __commonJS({
24238
- "../../node_modules/ws/lib/buffer-util.js"(exports, module) {
24238
+ "../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/buffer-util.js"(exports, module) {
24239
24239
  "use strict";
24240
24240
  var { EMPTY_BUFFER } = require_constants2();
24241
24241
  var FastBuffer = Buffer[Symbol.species];
@@ -24308,9 +24308,9 @@ var require_buffer_util = __commonJS({
24308
24308
  }
24309
24309
  });
24310
24310
 
24311
- // ../../node_modules/ws/lib/limiter.js
24311
+ // ../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/limiter.js
24312
24312
  var require_limiter = __commonJS({
24313
- "../../node_modules/ws/lib/limiter.js"(exports, module) {
24313
+ "../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/limiter.js"(exports, module) {
24314
24314
  "use strict";
24315
24315
  var kDone = Symbol("kDone");
24316
24316
  var kRun = Symbol("kRun");
@@ -24358,9 +24358,9 @@ var require_limiter = __commonJS({
24358
24358
  }
24359
24359
  });
24360
24360
 
24361
- // ../../node_modules/ws/lib/permessage-deflate.js
24361
+ // ../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/permessage-deflate.js
24362
24362
  var require_permessage_deflate = __commonJS({
24363
- "../../node_modules/ws/lib/permessage-deflate.js"(exports, module) {
24363
+ "../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
24364
24364
  "use strict";
24365
24365
  var zlib = __require("zlib");
24366
24366
  var bufferUtil = require_buffer_util();
@@ -24374,7 +24374,7 @@ var require_permessage_deflate = __commonJS({
24374
24374
  var kBuffers = Symbol("buffers");
24375
24375
  var kError = Symbol("error");
24376
24376
  var zlibLimiter;
24377
- var PerMessageDeflate = class {
24377
+ var PerMessageDeflate2 = class {
24378
24378
  /**
24379
24379
  * Creates a PerMessageDeflate instance.
24380
24380
  *
@@ -24385,6 +24385,9 @@ var require_permessage_deflate = __commonJS({
24385
24385
  * acknowledge disabling of client context takeover
24386
24386
  * @param {Number} [options.concurrencyLimit=10] The number of concurrent
24387
24387
  * calls to zlib
24388
+ * @param {Boolean} [options.isServer=false] Create the instance in either
24389
+ * server or client mode
24390
+ * @param {Number} [options.maxPayload=0] The maximum allowed message length
24388
24391
  * @param {(Boolean|Number)} [options.serverMaxWindowBits] Request/confirm the
24389
24392
  * use of a custom server window size
24390
24393
  * @param {Boolean} [options.serverNoContextTakeover=false] Request/accept
@@ -24395,15 +24398,12 @@ var require_permessage_deflate = __commonJS({
24395
24398
  * deflate
24396
24399
  * @param {Object} [options.zlibInflateOptions] Options to pass to zlib on
24397
24400
  * inflate
24398
- * @param {Boolean} [isServer=false] Create the instance in either server or
24399
- * client mode
24400
- * @param {Number} [maxPayload=0] The maximum allowed message length
24401
24401
  */
24402
- constructor(options, isServer, maxPayload) {
24403
- this._maxPayload = maxPayload | 0;
24402
+ constructor(options) {
24404
24403
  this._options = options || {};
24405
24404
  this._threshold = this._options.threshold !== void 0 ? this._options.threshold : 1024;
24406
- this._isServer = !!isServer;
24405
+ this._maxPayload = this._options.maxPayload | 0;
24406
+ this._isServer = !!this._options.isServer;
24407
24407
  this._deflate = null;
24408
24408
  this._inflate = null;
24409
24409
  this.params = null;
@@ -24712,7 +24712,7 @@ var require_permessage_deflate = __commonJS({
24712
24712
  });
24713
24713
  }
24714
24714
  };
24715
- module.exports = PerMessageDeflate;
24715
+ module.exports = PerMessageDeflate2;
24716
24716
  function deflateOnData(chunk) {
24717
24717
  this[kBuffers].push(chunk);
24718
24718
  this[kTotalLength] += chunk.length;
@@ -24741,9 +24741,9 @@ var require_permessage_deflate = __commonJS({
24741
24741
  }
24742
24742
  });
24743
24743
 
24744
- // ../../node_modules/ws/lib/validation.js
24744
+ // ../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/validation.js
24745
24745
  var require_validation = __commonJS({
24746
- "../../node_modules/ws/lib/validation.js"(exports, module) {
24746
+ "../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/validation.js"(exports, module) {
24747
24747
  "use strict";
24748
24748
  var { isUtf8 } = __require("buffer");
24749
24749
  var { hasBlob } = require_constants2();
@@ -24942,12 +24942,12 @@ var require_validation = __commonJS({
24942
24942
  }
24943
24943
  });
24944
24944
 
24945
- // ../../node_modules/ws/lib/receiver.js
24945
+ // ../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/receiver.js
24946
24946
  var require_receiver = __commonJS({
24947
- "../../node_modules/ws/lib/receiver.js"(exports, module) {
24947
+ "../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/receiver.js"(exports, module) {
24948
24948
  "use strict";
24949
24949
  var { Writable } = __require("stream");
24950
- var PerMessageDeflate = require_permessage_deflate();
24950
+ var PerMessageDeflate2 = require_permessage_deflate();
24951
24951
  var {
24952
24952
  BINARY_TYPES,
24953
24953
  EMPTY_BUFFER,
@@ -25114,7 +25114,7 @@ var require_receiver = __commonJS({
25114
25114
  return;
25115
25115
  }
25116
25116
  const compressed = (buf[0] & 64) === 64;
25117
- if (compressed && !this._extensions[PerMessageDeflate.extensionName]) {
25117
+ if (compressed && !this._extensions[PerMessageDeflate2.extensionName]) {
25118
25118
  const error = this.createError(
25119
25119
  RangeError,
25120
25120
  "RSV1 must be clear",
@@ -25358,7 +25358,7 @@ var require_receiver = __commonJS({
25358
25358
  * @private
25359
25359
  */
25360
25360
  decompress(data, cb) {
25361
- const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName];
25361
+ const perMessageDeflate = this._extensions[PerMessageDeflate2.extensionName];
25362
25362
  perMessageDeflate.decompress(data, this._fin, (err, buf) => {
25363
25363
  if (err) return cb(err);
25364
25364
  if (buf.length) {
@@ -25534,13 +25534,13 @@ var require_receiver = __commonJS({
25534
25534
  }
25535
25535
  });
25536
25536
 
25537
- // ../../node_modules/ws/lib/sender.js
25537
+ // ../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/sender.js
25538
25538
  var require_sender = __commonJS({
25539
- "../../node_modules/ws/lib/sender.js"(exports, module) {
25539
+ "../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/sender.js"(exports, module) {
25540
25540
  "use strict";
25541
25541
  var { Duplex } = __require("stream");
25542
25542
  var { randomFillSync } = __require("crypto");
25543
- var PerMessageDeflate = require_permessage_deflate();
25543
+ var PerMessageDeflate2 = require_permessage_deflate();
25544
25544
  var { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants2();
25545
25545
  var { isBlob, isValidStatusCode } = require_validation();
25546
25546
  var { mask: applyMask, toBuffer } = require_buffer_util();
@@ -25824,7 +25824,7 @@ var require_sender = __commonJS({
25824
25824
  * @public
25825
25825
  */
25826
25826
  send(data, options, cb) {
25827
- const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName];
25827
+ const perMessageDeflate = this._extensions[PerMessageDeflate2.extensionName];
25828
25828
  let opcode = options.binary ? 2 : 1;
25829
25829
  let rsv1 = options.compress;
25830
25830
  let byteLength;
@@ -25948,7 +25948,7 @@ var require_sender = __commonJS({
25948
25948
  this.sendFrame(_Sender.frame(data, options), cb);
25949
25949
  return;
25950
25950
  }
25951
- const perMessageDeflate = this._extensions[PerMessageDeflate.extensionName];
25951
+ const perMessageDeflate = this._extensions[PerMessageDeflate2.extensionName];
25952
25952
  this._bufferedBytes += options[kByteLength];
25953
25953
  this._state = DEFLATING;
25954
25954
  perMessageDeflate.compress(data, options.fin, (_, buf) => {
@@ -26022,9 +26022,9 @@ var require_sender = __commonJS({
26022
26022
  }
26023
26023
  });
26024
26024
 
26025
- // ../../node_modules/ws/lib/event-target.js
26025
+ // ../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/event-target.js
26026
26026
  var require_event_target = __commonJS({
26027
- "../../node_modules/ws/lib/event-target.js"(exports, module) {
26027
+ "../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/event-target.js"(exports, module) {
26028
26028
  "use strict";
26029
26029
  var { kForOnEventAttribute, kListener } = require_constants2();
26030
26030
  var kCode = Symbol("kCode");
@@ -26251,9 +26251,9 @@ var require_event_target = __commonJS({
26251
26251
  }
26252
26252
  });
26253
26253
 
26254
- // ../../node_modules/ws/lib/extension.js
26254
+ // ../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/extension.js
26255
26255
  var require_extension = __commonJS({
26256
- "../../node_modules/ws/lib/extension.js"(exports, module) {
26256
+ "../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/extension.js"(exports, module) {
26257
26257
  "use strict";
26258
26258
  var { tokenChars } = require_validation();
26259
26259
  function push(dest, name, elem) {
@@ -26386,11 +26386,11 @@ var require_extension = __commonJS({
26386
26386
  return offers;
26387
26387
  }
26388
26388
  function format(extensions) {
26389
- return Object.keys(extensions).map((extension) => {
26390
- let configurations = extensions[extension];
26389
+ return Object.keys(extensions).map((extension2) => {
26390
+ let configurations = extensions[extension2];
26391
26391
  if (!Array.isArray(configurations)) configurations = [configurations];
26392
26392
  return configurations.map((params) => {
26393
- return [extension].concat(
26393
+ return [extension2].concat(
26394
26394
  Object.keys(params).map((k) => {
26395
26395
  let values = params[k];
26396
26396
  if (!Array.isArray(values)) values = [values];
@@ -26404,9 +26404,9 @@ var require_extension = __commonJS({
26404
26404
  }
26405
26405
  });
26406
26406
 
26407
- // ../../node_modules/ws/lib/websocket.js
26407
+ // ../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/websocket.js
26408
26408
  var require_websocket = __commonJS({
26409
- "../../node_modules/ws/lib/websocket.js"(exports, module) {
26409
+ "../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/websocket.js"(exports, module) {
26410
26410
  "use strict";
26411
26411
  var EventEmitter3 = __require("events");
26412
26412
  var https = __require("https");
@@ -26416,7 +26416,7 @@ var require_websocket = __commonJS({
26416
26416
  var { randomBytes, createHash } = __require("crypto");
26417
26417
  var { Duplex, Readable } = __require("stream");
26418
26418
  var { URL: URL2 } = __require("url");
26419
- var PerMessageDeflate = require_permessage_deflate();
26419
+ var PerMessageDeflate2 = require_permessage_deflate();
26420
26420
  var Receiver2 = require_receiver();
26421
26421
  var Sender2 = require_sender();
26422
26422
  var { isBlob } = require_validation();
@@ -26624,8 +26624,8 @@ var require_websocket = __commonJS({
26624
26624
  this.emit("close", this._closeCode, this._closeMessage);
26625
26625
  return;
26626
26626
  }
26627
- if (this._extensions[PerMessageDeflate.extensionName]) {
26628
- this._extensions[PerMessageDeflate.extensionName].cleanup();
26627
+ if (this._extensions[PerMessageDeflate2.extensionName]) {
26628
+ this._extensions[PerMessageDeflate2.extensionName].cleanup();
26629
26629
  }
26630
26630
  this._receiver.removeAllListeners();
26631
26631
  this._readyState = _WebSocket.CLOSED;
@@ -26787,7 +26787,7 @@ var require_websocket = __commonJS({
26787
26787
  fin: true,
26788
26788
  ...options
26789
26789
  };
26790
- if (!this._extensions[PerMessageDeflate.extensionName]) {
26790
+ if (!this._extensions[PerMessageDeflate2.extensionName]) {
26791
26791
  opts.compress = false;
26792
26792
  }
26793
26793
  this._sender.send(data || EMPTY_BUFFER, opts, cb);
@@ -26913,7 +26913,7 @@ var require_websocket = __commonJS({
26913
26913
  } else {
26914
26914
  try {
26915
26915
  parsedUrl = new URL2(address);
26916
- } catch (e) {
26916
+ } catch {
26917
26917
  throw new SyntaxError(`Invalid URL: ${address}`);
26918
26918
  }
26919
26919
  }
@@ -26961,13 +26961,13 @@ var require_websocket = __commonJS({
26961
26961
  opts.path = parsedUrl.pathname + parsedUrl.search;
26962
26962
  opts.timeout = opts.handshakeTimeout;
26963
26963
  if (opts.perMessageDeflate) {
26964
- perMessageDeflate = new PerMessageDeflate(
26965
- opts.perMessageDeflate !== true ? opts.perMessageDeflate : {},
26966
- false,
26967
- opts.maxPayload
26968
- );
26964
+ perMessageDeflate = new PerMessageDeflate2({
26965
+ ...opts.perMessageDeflate,
26966
+ isServer: false,
26967
+ maxPayload: opts.maxPayload
26968
+ });
26969
26969
  opts.headers["Sec-WebSocket-Extensions"] = format({
26970
- [PerMessageDeflate.extensionName]: perMessageDeflate.offer()
26970
+ [PerMessageDeflate2.extensionName]: perMessageDeflate.offer()
26971
26971
  });
26972
26972
  }
26973
26973
  if (protocols.length) {
@@ -27110,19 +27110,19 @@ var require_websocket = __commonJS({
27110
27110
  return;
27111
27111
  }
27112
27112
  const extensionNames = Object.keys(extensions);
27113
- if (extensionNames.length !== 1 || extensionNames[0] !== PerMessageDeflate.extensionName) {
27113
+ if (extensionNames.length !== 1 || extensionNames[0] !== PerMessageDeflate2.extensionName) {
27114
27114
  const message = "Server indicated an extension that was not requested";
27115
27115
  abortHandshake(websocket, socket, message);
27116
27116
  return;
27117
27117
  }
27118
27118
  try {
27119
- perMessageDeflate.accept(extensions[PerMessageDeflate.extensionName]);
27119
+ perMessageDeflate.accept(extensions[PerMessageDeflate2.extensionName]);
27120
27120
  } catch (err) {
27121
27121
  const message = "Invalid Sec-WebSocket-Extensions header";
27122
27122
  abortHandshake(websocket, socket, message);
27123
27123
  return;
27124
27124
  }
27125
- websocket._extensions[PerMessageDeflate.extensionName] = perMessageDeflate;
27125
+ websocket._extensions[PerMessageDeflate2.extensionName] = perMessageDeflate;
27126
27126
  }
27127
27127
  websocket.setSocket(socket, head, {
27128
27128
  allowSynchronousEvents: opts.allowSynchronousEvents,
@@ -27290,9 +27290,9 @@ var require_websocket = __commonJS({
27290
27290
  }
27291
27291
  });
27292
27292
 
27293
- // ../../node_modules/ws/lib/stream.js
27293
+ // ../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/stream.js
27294
27294
  var require_stream = __commonJS({
27295
- "../../node_modules/ws/lib/stream.js"(exports, module) {
27295
+ "../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/stream.js"(exports, module) {
27296
27296
  "use strict";
27297
27297
  var WebSocket2 = require_websocket();
27298
27298
  var { Duplex } = __require("stream");
@@ -27388,9 +27388,9 @@ var require_stream = __commonJS({
27388
27388
  }
27389
27389
  });
27390
27390
 
27391
- // ../../node_modules/ws/lib/subprotocol.js
27391
+ // ../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/subprotocol.js
27392
27392
  var require_subprotocol = __commonJS({
27393
- "../../node_modules/ws/lib/subprotocol.js"(exports, module) {
27393
+ "../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/subprotocol.js"(exports, module) {
27394
27394
  "use strict";
27395
27395
  var { tokenChars } = require_validation();
27396
27396
  function parse(header) {
@@ -27433,17 +27433,17 @@ var require_subprotocol = __commonJS({
27433
27433
  }
27434
27434
  });
27435
27435
 
27436
- // ../../node_modules/ws/lib/websocket-server.js
27436
+ // ../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/websocket-server.js
27437
27437
  var require_websocket_server = __commonJS({
27438
- "../../node_modules/ws/lib/websocket-server.js"(exports, module) {
27438
+ "../../node_modules/.bun/ws@8.20.0/node_modules/ws/lib/websocket-server.js"(exports, module) {
27439
27439
  "use strict";
27440
27440
  var EventEmitter3 = __require("events");
27441
27441
  var http = __require("http");
27442
27442
  var { Duplex } = __require("stream");
27443
27443
  var { createHash } = __require("crypto");
27444
- var extension = require_extension();
27445
- var PerMessageDeflate = require_permessage_deflate();
27446
- var subprotocol = require_subprotocol();
27444
+ var extension2 = require_extension();
27445
+ var PerMessageDeflate2 = require_permessage_deflate();
27446
+ var subprotocol2 = require_subprotocol();
27447
27447
  var WebSocket2 = require_websocket();
27448
27448
  var { CLOSE_TIMEOUT, GUID, kWebSocket } = require_constants2();
27449
27449
  var keyRegex = /^[+/0-9A-Za-z]{22}==$/;
@@ -27666,7 +27666,7 @@ var require_websocket_server = __commonJS({
27666
27666
  let protocols = /* @__PURE__ */ new Set();
27667
27667
  if (secWebSocketProtocol !== void 0) {
27668
27668
  try {
27669
- protocols = subprotocol.parse(secWebSocketProtocol);
27669
+ protocols = subprotocol2.parse(secWebSocketProtocol);
27670
27670
  } catch (err) {
27671
27671
  const message = "Invalid Sec-WebSocket-Protocol header";
27672
27672
  abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
@@ -27676,16 +27676,16 @@ var require_websocket_server = __commonJS({
27676
27676
  const secWebSocketExtensions = req.headers["sec-websocket-extensions"];
27677
27677
  const extensions = {};
27678
27678
  if (this.options.perMessageDeflate && secWebSocketExtensions !== void 0) {
27679
- const perMessageDeflate = new PerMessageDeflate(
27680
- this.options.perMessageDeflate,
27681
- true,
27682
- this.options.maxPayload
27683
- );
27679
+ const perMessageDeflate = new PerMessageDeflate2({
27680
+ ...this.options.perMessageDeflate,
27681
+ isServer: true,
27682
+ maxPayload: this.options.maxPayload
27683
+ });
27684
27684
  try {
27685
- const offers = extension.parse(secWebSocketExtensions);
27686
- if (offers[PerMessageDeflate.extensionName]) {
27687
- perMessageDeflate.accept(offers[PerMessageDeflate.extensionName]);
27688
- extensions[PerMessageDeflate.extensionName] = perMessageDeflate;
27685
+ const offers = extension2.parse(secWebSocketExtensions);
27686
+ if (offers[PerMessageDeflate2.extensionName]) {
27687
+ perMessageDeflate.accept(offers[PerMessageDeflate2.extensionName]);
27688
+ extensions[PerMessageDeflate2.extensionName] = perMessageDeflate;
27689
27689
  }
27690
27690
  } catch (err) {
27691
27691
  const message = "Invalid or unacceptable Sec-WebSocket-Extensions header";
@@ -27756,10 +27756,10 @@ var require_websocket_server = __commonJS({
27756
27756
  ws._protocol = protocol;
27757
27757
  }
27758
27758
  }
27759
- if (extensions[PerMessageDeflate.extensionName]) {
27760
- const params = extensions[PerMessageDeflate.extensionName].params;
27761
- const value = extension.format({
27762
- [PerMessageDeflate.extensionName]: [params]
27759
+ if (extensions[PerMessageDeflate2.extensionName]) {
27760
+ const params = extensions[PerMessageDeflate2.extensionName].params;
27761
+ const value = extension2.format({
27762
+ [PerMessageDeflate2.extensionName]: [params]
27763
27763
  });
27764
27764
  headers.push(`Sec-WebSocket-Extensions: ${value}`);
27765
27765
  ws._extensions = extensions;
@@ -27826,23 +27826,26 @@ var require_websocket_server = __commonJS({
27826
27826
  }
27827
27827
  });
27828
27828
 
27829
- // ../../node_modules/ws/wrapper.mjs
27830
- var import_stream, import_receiver, import_sender, import_websocket, import_websocket_server, wrapper_default;
27829
+ // ../../node_modules/.bun/ws@8.20.0/node_modules/ws/wrapper.mjs
27830
+ var import_stream, import_extension, import_permessage_deflate, import_receiver, import_sender, import_subprotocol, import_websocket, import_websocket_server, wrapper_default;
27831
27831
  var init_wrapper = __esm({
27832
- "../../node_modules/ws/wrapper.mjs"() {
27832
+ "../../node_modules/.bun/ws@8.20.0/node_modules/ws/wrapper.mjs"() {
27833
27833
  import_stream = __toESM(require_stream(), 1);
27834
+ import_extension = __toESM(require_extension(), 1);
27835
+ import_permessage_deflate = __toESM(require_permessage_deflate(), 1);
27834
27836
  import_receiver = __toESM(require_receiver(), 1);
27835
27837
  import_sender = __toESM(require_sender(), 1);
27838
+ import_subprotocol = __toESM(require_subprotocol(), 1);
27836
27839
  import_websocket = __toESM(require_websocket(), 1);
27837
27840
  import_websocket_server = __toESM(require_websocket_server(), 1);
27838
27841
  wrapper_default = import_websocket.default;
27839
27842
  }
27840
27843
  });
27841
27844
 
27842
- // ../../node_modules/ink/build/devtools-window-polyfill.js
27845
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/devtools-window-polyfill.js
27843
27846
  var customGlobal;
27844
27847
  var init_devtools_window_polyfill = __esm({
27845
- "../../node_modules/ink/build/devtools-window-polyfill.js"() {
27848
+ "../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/devtools-window-polyfill.js"() {
27846
27849
  init_wrapper();
27847
27850
  customGlobal = global;
27848
27851
  customGlobal.WebSocket ||= wrapper_default;
@@ -27913,10 +27916,10 @@ var init_react_devtools_core = __esm({
27913
27916
  }
27914
27917
  });
27915
27918
 
27916
- // ../../node_modules/ink/build/devtools.js
27919
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/devtools.js
27917
27920
  var devtools_exports = {};
27918
27921
  var init_devtools = __esm({
27919
- "../../node_modules/ink/build/devtools.js"() {
27922
+ "../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/devtools.js"() {
27920
27923
  init_devtools_window_polyfill();
27921
27924
  init_react_devtools_core();
27922
27925
  react_devtools_core_default.initialize();
@@ -27924,9 +27927,9 @@ var init_devtools = __esm({
27924
27927
  }
27925
27928
  });
27926
27929
 
27927
- // ../../node_modules/cli-boxes/boxes.json
27930
+ // ../../node_modules/.bun/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json
27928
27931
  var require_boxes = __commonJS({
27929
- "../../node_modules/cli-boxes/boxes.json"(exports, module) {
27932
+ "../../node_modules/.bun/cli-boxes@3.0.0/node_modules/cli-boxes/boxes.json"(exports, module) {
27930
27933
  module.exports = {
27931
27934
  single: {
27932
27935
  topLeft: "\u250C",
@@ -28012,9 +28015,9 @@ var require_boxes = __commonJS({
28012
28015
  }
28013
28016
  });
28014
28017
 
28015
- // ../../node_modules/cli-boxes/index.js
28018
+ // ../../node_modules/.bun/cli-boxes@3.0.0/node_modules/cli-boxes/index.js
28016
28019
  var require_cli_boxes = __commonJS({
28017
- "../../node_modules/cli-boxes/index.js"(exports, module) {
28020
+ "../../node_modules/.bun/cli-boxes@3.0.0/node_modules/cli-boxes/index.js"(exports, module) {
28018
28021
  "use strict";
28019
28022
  var cliBoxes2 = require_boxes();
28020
28023
  module.exports = cliBoxes2;
@@ -28022,9 +28025,9 @@ var require_cli_boxes = __commonJS({
28022
28025
  }
28023
28026
  });
28024
28027
 
28025
- // ../../node_modules/mimic-fn/index.js
28028
+ // ../../node_modules/.bun/mimic-fn@2.1.0/node_modules/mimic-fn/index.js
28026
28029
  var require_mimic_fn = __commonJS({
28027
- "../../node_modules/mimic-fn/index.js"(exports, module) {
28030
+ "../../node_modules/.bun/mimic-fn@2.1.0/node_modules/mimic-fn/index.js"(exports, module) {
28028
28031
  "use strict";
28029
28032
  var mimicFn = (to, from) => {
28030
28033
  for (const prop of Reflect.ownKeys(from)) {
@@ -28037,9 +28040,9 @@ var require_mimic_fn = __commonJS({
28037
28040
  }
28038
28041
  });
28039
28042
 
28040
- // ../../node_modules/onetime/index.js
28043
+ // ../../node_modules/.bun/onetime@5.1.2/node_modules/onetime/index.js
28041
28044
  var require_onetime = __commonJS({
28042
- "../../node_modules/onetime/index.js"(exports, module) {
28045
+ "../../node_modules/.bun/onetime@5.1.2/node_modules/onetime/index.js"(exports, module) {
28043
28046
  "use strict";
28044
28047
  var mimicFn = require_mimic_fn();
28045
28048
  var calledFunctions = /* @__PURE__ */ new WeakMap();
@@ -28075,9 +28078,9 @@ var require_onetime = __commonJS({
28075
28078
  }
28076
28079
  });
28077
28080
 
28078
- // ../../node_modules/escape-string-regexp/index.js
28081
+ // ../../node_modules/.bun/escape-string-regexp@2.0.0/node_modules/escape-string-regexp/index.js
28079
28082
  var require_escape_string_regexp = __commonJS({
28080
- "../../node_modules/escape-string-regexp/index.js"(exports, module) {
28083
+ "../../node_modules/.bun/escape-string-regexp@2.0.0/node_modules/escape-string-regexp/index.js"(exports, module) {
28081
28084
  "use strict";
28082
28085
  var matchOperatorsRegex = /[|\\{}()[\]^$+*?.-]/g;
28083
28086
  module.exports = (string) => {
@@ -28089,9 +28092,9 @@ var require_escape_string_regexp = __commonJS({
28089
28092
  }
28090
28093
  });
28091
28094
 
28092
- // ../../node_modules/stack-utils/index.js
28095
+ // ../../node_modules/.bun/stack-utils@2.0.6/node_modules/stack-utils/index.js
28093
28096
  var require_stack_utils = __commonJS({
28094
- "../../node_modules/stack-utils/index.js"(exports, module) {
28097
+ "../../node_modules/.bun/stack-utils@2.0.6/node_modules/stack-utils/index.js"(exports, module) {
28095
28098
  "use strict";
28096
28099
  var escapeStringRegexp = require_escape_string_regexp();
28097
28100
  var cwd2 = typeof process === "object" && process && typeof process.cwd === "function" ? process.cwd() : ".";
@@ -28342,9 +28345,9 @@ var require_stack_utils = __commonJS({
28342
28345
  }
28343
28346
  });
28344
28347
 
28345
- // ../../node_modules/cli-spinners/spinners.json
28348
+ // ../../node_modules/.bun/cli-spinners@2.9.2/node_modules/cli-spinners/spinners.json
28346
28349
  var require_spinners = __commonJS({
28347
- "../../node_modules/cli-spinners/spinners.json"(exports, module) {
28350
+ "../../node_modules/.bun/cli-spinners@2.9.2/node_modules/cli-spinners/spinners.json"(exports, module) {
28348
28351
  module.exports = {
28349
28352
  dots: {
28350
28353
  interval: 80,
@@ -29970,9 +29973,9 @@ var require_spinners = __commonJS({
29970
29973
  }
29971
29974
  });
29972
29975
 
29973
- // ../../node_modules/cli-spinners/index.js
29976
+ // ../../node_modules/.bun/cli-spinners@2.9.2/node_modules/cli-spinners/index.js
29974
29977
  var require_cli_spinners = __commonJS({
29975
- "../../node_modules/cli-spinners/index.js"(exports, module) {
29978
+ "../../node_modules/.bun/cli-spinners@2.9.2/node_modules/cli-spinners/index.js"(exports, module) {
29976
29979
  "use strict";
29977
29980
  var spinners2 = Object.assign({}, require_spinners());
29978
29981
  var spinnersList = Object.keys(spinners2);
@@ -29987,9 +29990,9 @@ var require_cli_spinners = __commonJS({
29987
29990
  }
29988
29991
  });
29989
29992
 
29990
- // ../../node_modules/react/cjs/react-jsx-runtime.production.js
29993
+ // ../../node_modules/.bun/react@19.2.4/node_modules/react/cjs/react-jsx-runtime.production.js
29991
29994
  var require_react_jsx_runtime_production = __commonJS({
29992
- "../../node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
29995
+ "../../node_modules/.bun/react@19.2.4/node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
29993
29996
  "use strict";
29994
29997
  var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
29995
29998
  var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
@@ -30017,9 +30020,9 @@ var require_react_jsx_runtime_production = __commonJS({
30017
30020
  }
30018
30021
  });
30019
30022
 
30020
- // ../../node_modules/react/cjs/react-jsx-runtime.development.js
30023
+ // ../../node_modules/.bun/react@19.2.4/node_modules/react/cjs/react-jsx-runtime.development.js
30021
30024
  var require_react_jsx_runtime_development = __commonJS({
30022
- "../../node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
30025
+ "../../node_modules/.bun/react@19.2.4/node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
30023
30026
  "use strict";
30024
30027
  "production" !== process.env.NODE_ENV && (function() {
30025
30028
  function getComponentNameFromType(type) {
@@ -30231,18 +30234,18 @@ var require_react_jsx_runtime_development = __commonJS({
30231
30234
  function isValidElement(object) {
30232
30235
  return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
30233
30236
  }
30234
- var React19 = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React19.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
30237
+ var React20 = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React20.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
30235
30238
  return null;
30236
30239
  };
30237
- React19 = {
30240
+ React20 = {
30238
30241
  react_stack_bottom_frame: function(callStackForError) {
30239
30242
  return callStackForError();
30240
30243
  }
30241
30244
  };
30242
30245
  var specialPropKeyWarningShown;
30243
30246
  var didWarnAboutElementRef = {};
30244
- var unknownOwnerDebugStack = React19.react_stack_bottom_frame.bind(
30245
- React19,
30247
+ var unknownOwnerDebugStack = React20.react_stack_bottom_frame.bind(
30248
+ React20,
30246
30249
  UnknownOwner
30247
30250
  )();
30248
30251
  var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
@@ -30274,9 +30277,9 @@ var require_react_jsx_runtime_development = __commonJS({
30274
30277
  }
30275
30278
  });
30276
30279
 
30277
- // ../../node_modules/react/jsx-runtime.js
30280
+ // ../../node_modules/.bun/react@19.2.4/node_modules/react/jsx-runtime.js
30278
30281
  var require_jsx_runtime = __commonJS({
30279
- "../../node_modules/react/jsx-runtime.js"(exports, module) {
30282
+ "../../node_modules/.bun/react@19.2.4/node_modules/react/jsx-runtime.js"(exports, module) {
30280
30283
  "use strict";
30281
30284
  if (process.env.NODE_ENV === "production") {
30282
30285
  module.exports = require_react_jsx_runtime_production();
@@ -30286,15 +30289,15 @@ var require_jsx_runtime = __commonJS({
30286
30289
  }
30287
30290
  });
30288
30291
 
30289
- // ../../node_modules/ink/build/render.js
30292
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/render.js
30290
30293
  import { Stream } from "node:stream";
30291
30294
  import process13 from "node:process";
30292
30295
 
30293
- // ../../node_modules/ink/build/ink.js
30296
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/ink.js
30294
30297
  var import_react15 = __toESM(require_react(), 1);
30295
30298
  import process12 from "node:process";
30296
30299
 
30297
- // ../../node_modules/es-toolkit/dist/function/debounce.mjs
30300
+ // ../../node_modules/.bun/es-toolkit@1.45.1/node_modules/es-toolkit/dist/function/debounce.mjs
30298
30301
  function debounce(func, debounceMs, { signal, edges } = {}) {
30299
30302
  let pendingThis = void 0;
30300
30303
  let pendingArgs = null;
@@ -30356,7 +30359,7 @@ function debounce(func, debounceMs, { signal, edges } = {}) {
30356
30359
  return debounced;
30357
30360
  }
30358
30361
 
30359
- // ../../node_modules/es-toolkit/dist/compat/function/debounce.mjs
30362
+ // ../../node_modules/.bun/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/function/debounce.mjs
30360
30363
  function debounce2(func, debounceMs = 0, options = {}) {
30361
30364
  if (typeof options !== "object") {
30362
30365
  options = {};
@@ -30400,7 +30403,7 @@ function debounce2(func, debounceMs = 0, options = {}) {
30400
30403
  return debounced;
30401
30404
  }
30402
30405
 
30403
- // ../../node_modules/es-toolkit/dist/compat/function/throttle.mjs
30406
+ // ../../node_modules/.bun/es-toolkit@1.45.1/node_modules/es-toolkit/dist/compat/function/throttle.mjs
30404
30407
  function throttle(func, throttleMs = 0, options = {}) {
30405
30408
  const { leading = true, trailing = true } = options;
30406
30409
  return debounce2(func, throttleMs, {
@@ -30410,7 +30413,7 @@ function throttle(func, throttleMs = 0, options = {}) {
30410
30413
  });
30411
30414
  }
30412
30415
 
30413
- // ../../node_modules/ansi-escapes/base.js
30416
+ // ../../node_modules/.bun/ansi-escapes@7.3.0/node_modules/ansi-escapes/base.js
30414
30417
  var base_exports = {};
30415
30418
  __export(base_exports, {
30416
30419
  ConEmu: () => ConEmu,
@@ -30454,7 +30457,7 @@ __export(base_exports, {
30454
30457
  import process2 from "node:process";
30455
30458
  import os from "node:os";
30456
30459
 
30457
- // ../../node_modules/environment/index.js
30460
+ // ../../node_modules/.bun/environment@1.1.0/node_modules/environment/index.js
30458
30461
  var isBrowser = globalThis.window?.document !== void 0;
30459
30462
  var isNode = globalThis.process?.versions?.node !== void 0;
30460
30463
  var isBun = globalThis.process?.versions?.bun !== void 0;
@@ -30472,7 +30475,7 @@ var isLinux = platform === "Linux" || globalThis.navigator?.platform?.startsWith
30472
30475
  var isIos = platform === "iOS" || globalThis.navigator?.platform === "MacIntel" && globalThis.navigator?.maxTouchPoints > 1 || /iPad|iPhone|iPod/.test(globalThis.navigator?.platform);
30473
30476
  var isAndroid = platform === "Android" || globalThis.navigator?.platform === "Android" || globalThis.navigator?.userAgent?.includes(" Android ") === true || globalThis.process?.platform === "android";
30474
30477
 
30475
- // ../../node_modules/ansi-escapes/base.js
30478
+ // ../../node_modules/.bun/ansi-escapes@7.3.0/node_modules/ansi-escapes/base.js
30476
30479
  var ESC = "\x1B[";
30477
30480
  var OSC = "\x1B]";
30478
30481
  var BEL = "\x07";
@@ -30612,13 +30615,13 @@ var ConEmu = {
30612
30615
  };
30613
30616
  var setCwd = (cwd2 = cwdFunction()) => iTerm.setCwd(cwd2) + ConEmu.setCwd(cwd2);
30614
30617
 
30615
- // ../../node_modules/is-in-ci/index.js
30618
+ // ../../node_modules/.bun/is-in-ci@2.0.0/node_modules/is-in-ci/index.js
30616
30619
  import { env } from "node:process";
30617
30620
  var check = (key) => key in env && env[key] !== "0" && env[key] !== "false";
30618
30621
  var isInCi = check("CI") || check("CONTINUOUS_INTEGRATION");
30619
30622
  var is_in_ci_default = isInCi;
30620
30623
 
30621
- // ../../node_modules/auto-bind/index.js
30624
+ // ../../node_modules/.bun/auto-bind@5.0.1/node_modules/auto-bind/index.js
30622
30625
  var getAllProperties = (object) => {
30623
30626
  const properties = /* @__PURE__ */ new Set();
30624
30627
  do {
@@ -30651,10 +30654,10 @@ function autoBind(self, { include, exclude } = {}) {
30651
30654
  return self;
30652
30655
  }
30653
30656
 
30654
- // ../../node_modules/ink/build/ink.js
30657
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/ink.js
30655
30658
  var import_signal_exit2 = __toESM(require_signal_exit(), 1);
30656
30659
 
30657
- // ../../node_modules/patch-console/dist/index.js
30660
+ // ../../node_modules/.bun/patch-console@2.0.0/node_modules/patch-console/dist/index.js
30658
30661
  import { PassThrough } from "node:stream";
30659
30662
  var consoleMethods = [
30660
30663
  "assert",
@@ -30700,10 +30703,10 @@ var patchConsole = (callback) => {
30700
30703
  };
30701
30704
  var dist_default = patchConsole;
30702
30705
 
30703
- // ../../node_modules/ink/build/ink.js
30706
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/ink.js
30704
30707
  var import_constants2 = __toESM(require_constants(), 1);
30705
30708
 
30706
- // ../../node_modules/yoga-layout/dist/binaries/yoga-wasm-base64-esm.js
30709
+ // ../../node_modules/.bun/yoga-layout@3.2.1/node_modules/yoga-layout/dist/binaries/yoga-wasm-base64-esm.js
30707
30710
  var loadYoga = (() => {
30708
30711
  var _scriptDir = import.meta.url;
30709
30712
  return (function(loadYoga2) {
@@ -31934,7 +31937,7 @@ var loadYoga = (() => {
31934
31937
  })();
31935
31938
  var yoga_wasm_base64_esm_default = loadYoga;
31936
31939
 
31937
- // ../../node_modules/yoga-layout/dist/src/generated/YGEnums.js
31940
+ // ../../node_modules/.bun/yoga-layout@3.2.1/node_modules/yoga-layout/dist/src/generated/YGEnums.js
31938
31941
  var Align = /* @__PURE__ */ (function(Align2) {
31939
31942
  Align2[Align2["Auto"] = 0] = "Auto";
31940
31943
  Align2[Align2["FlexStart"] = 1] = "FlexStart";
@@ -32137,7 +32140,7 @@ var constants = {
32137
32140
  };
32138
32141
  var YGEnums_default = constants;
32139
32142
 
32140
- // ../../node_modules/yoga-layout/dist/src/wrapAssembly.js
32143
+ // ../../node_modules/.bun/yoga-layout@3.2.1/node_modules/yoga-layout/dist/src/wrapAssembly.js
32141
32144
  function wrapAssembly(lib) {
32142
32145
  function patch(prototype, name, fn) {
32143
32146
  const original = prototype[name];
@@ -32238,11 +32241,11 @@ function wrapAssembly(lib) {
32238
32241
  };
32239
32242
  }
32240
32243
 
32241
- // ../../node_modules/yoga-layout/dist/src/index.js
32244
+ // ../../node_modules/.bun/yoga-layout@3.2.1/node_modules/yoga-layout/dist/src/index.js
32242
32245
  var Yoga = wrapAssembly(await yoga_wasm_base64_esm_default());
32243
32246
  var src_default = Yoga;
32244
32247
 
32245
- // ../../node_modules/strip-ansi/node_modules/ansi-regex/index.js
32248
+ // ../../node_modules/.bun/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
32246
32249
  function ansiRegex({ onlyFirst = false } = {}) {
32247
32250
  const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
32248
32251
  const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
@@ -32251,7 +32254,7 @@ function ansiRegex({ onlyFirst = false } = {}) {
32251
32254
  return new RegExp(pattern, onlyFirst ? void 0 : "g");
32252
32255
  }
32253
32256
 
32254
- // ../../node_modules/strip-ansi/index.js
32257
+ // ../../node_modules/.bun/strip-ansi@7.2.0/node_modules/strip-ansi/index.js
32255
32258
  var regex = ansiRegex();
32256
32259
  function stripAnsi(string) {
32257
32260
  if (typeof string !== "string") {
@@ -32263,14 +32266,14 @@ function stripAnsi(string) {
32263
32266
  return string.replace(regex, "");
32264
32267
  }
32265
32268
 
32266
- // ../../node_modules/get-east-asian-width/lookup-data.js
32269
+ // ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup-data.js
32267
32270
  var ambiguousRanges = [161, 161, 164, 164, 167, 168, 170, 170, 173, 174, 176, 180, 182, 186, 188, 191, 198, 198, 208, 208, 215, 216, 222, 225, 230, 230, 232, 234, 236, 237, 240, 240, 242, 243, 247, 250, 252, 252, 254, 254, 257, 257, 273, 273, 275, 275, 283, 283, 294, 295, 299, 299, 305, 307, 312, 312, 319, 322, 324, 324, 328, 331, 333, 333, 338, 339, 358, 359, 363, 363, 462, 462, 464, 464, 466, 466, 468, 468, 470, 470, 472, 472, 474, 474, 476, 476, 593, 593, 609, 609, 708, 708, 711, 711, 713, 715, 717, 717, 720, 720, 728, 731, 733, 733, 735, 735, 768, 879, 913, 929, 931, 937, 945, 961, 963, 969, 1025, 1025, 1040, 1103, 1105, 1105, 8208, 8208, 8211, 8214, 8216, 8217, 8220, 8221, 8224, 8226, 8228, 8231, 8240, 8240, 8242, 8243, 8245, 8245, 8251, 8251, 8254, 8254, 8308, 8308, 8319, 8319, 8321, 8324, 8364, 8364, 8451, 8451, 8453, 8453, 8457, 8457, 8467, 8467, 8470, 8470, 8481, 8482, 8486, 8486, 8491, 8491, 8531, 8532, 8539, 8542, 8544, 8555, 8560, 8569, 8585, 8585, 8592, 8601, 8632, 8633, 8658, 8658, 8660, 8660, 8679, 8679, 8704, 8704, 8706, 8707, 8711, 8712, 8715, 8715, 8719, 8719, 8721, 8721, 8725, 8725, 8730, 8730, 8733, 8736, 8739, 8739, 8741, 8741, 8743, 8748, 8750, 8750, 8756, 8759, 8764, 8765, 8776, 8776, 8780, 8780, 8786, 8786, 8800, 8801, 8804, 8807, 8810, 8811, 8814, 8815, 8834, 8835, 8838, 8839, 8853, 8853, 8857, 8857, 8869, 8869, 8895, 8895, 8978, 8978, 9312, 9449, 9451, 9547, 9552, 9587, 9600, 9615, 9618, 9621, 9632, 9633, 9635, 9641, 9650, 9651, 9654, 9655, 9660, 9661, 9664, 9665, 9670, 9672, 9675, 9675, 9678, 9681, 9698, 9701, 9711, 9711, 9733, 9734, 9737, 9737, 9742, 9743, 9756, 9756, 9758, 9758, 9792, 9792, 9794, 9794, 9824, 9825, 9827, 9829, 9831, 9834, 9836, 9837, 9839, 9839, 9886, 9887, 9919, 9919, 9926, 9933, 9935, 9939, 9941, 9953, 9955, 9955, 9960, 9961, 9963, 9969, 9972, 9972, 9974, 9977, 9979, 9980, 9982, 9983, 10045, 10045, 10102, 10111, 11094, 11097, 12872, 12879, 57344, 63743, 65024, 65039, 65533, 65533, 127232, 127242, 127248, 127277, 127280, 127337, 127344, 127373, 127375, 127376, 127387, 127404, 917760, 917999, 983040, 1048573, 1048576, 1114109];
32268
32271
  var fullwidthRanges = [12288, 12288, 65281, 65376, 65504, 65510];
32269
32272
  var halfwidthRanges = [8361, 8361, 65377, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65512, 65518];
32270
32273
  var narrowRanges = [32, 126, 162, 163, 165, 166, 172, 172, 175, 175, 10214, 10221, 10629, 10630];
32271
32274
  var wideRanges = [4352, 4447, 8986, 8987, 9001, 9002, 9193, 9196, 9200, 9200, 9203, 9203, 9725, 9726, 9748, 9749, 9776, 9783, 9800, 9811, 9855, 9855, 9866, 9871, 9875, 9875, 9889, 9889, 9898, 9899, 9917, 9918, 9924, 9925, 9934, 9934, 9940, 9940, 9962, 9962, 9970, 9971, 9973, 9973, 9978, 9978, 9981, 9981, 9989, 9989, 9994, 9995, 10024, 10024, 10060, 10060, 10062, 10062, 10067, 10069, 10071, 10071, 10133, 10135, 10160, 10160, 10175, 10175, 11035, 11036, 11088, 11088, 11093, 11093, 11904, 11929, 11931, 12019, 12032, 12245, 12272, 12287, 12289, 12350, 12353, 12438, 12441, 12543, 12549, 12591, 12593, 12686, 12688, 12773, 12783, 12830, 12832, 12871, 12880, 42124, 42128, 42182, 43360, 43388, 44032, 55203, 63744, 64255, 65040, 65049, 65072, 65106, 65108, 65126, 65128, 65131, 94176, 94180, 94192, 94198, 94208, 101589, 101631, 101662, 101760, 101874, 110576, 110579, 110581, 110587, 110589, 110590, 110592, 110882, 110898, 110898, 110928, 110930, 110933, 110933, 110948, 110951, 110960, 111355, 119552, 119638, 119648, 119670, 126980, 126980, 127183, 127183, 127374, 127374, 127377, 127386, 127488, 127490, 127504, 127547, 127552, 127560, 127568, 127569, 127584, 127589, 127744, 127776, 127789, 127797, 127799, 127868, 127870, 127891, 127904, 127946, 127951, 127955, 127968, 127984, 127988, 127988, 127992, 128062, 128064, 128064, 128066, 128252, 128255, 128317, 128331, 128334, 128336, 128359, 128378, 128378, 128405, 128406, 128420, 128420, 128507, 128591, 128640, 128709, 128716, 128716, 128720, 128722, 128725, 128728, 128732, 128735, 128747, 128748, 128756, 128764, 128992, 129003, 129008, 129008, 129292, 129338, 129340, 129349, 129351, 129535, 129648, 129660, 129664, 129674, 129678, 129734, 129736, 129736, 129741, 129756, 129759, 129770, 129775, 129784, 131072, 196605, 196608, 262141];
32272
32275
 
32273
- // ../../node_modules/get-east-asian-width/utilities.js
32276
+ // ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/utilities.js
32274
32277
  var isInRange = (ranges, codePoint) => {
32275
32278
  let low = 0;
32276
32279
  let high = Math.floor(ranges.length / 2) - 1;
@@ -32288,7 +32291,7 @@ var isInRange = (ranges, codePoint) => {
32288
32291
  return false;
32289
32292
  };
32290
32293
 
32291
- // ../../node_modules/get-east-asian-width/lookup.js
32294
+ // ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/lookup.js
32292
32295
  var minimumAmbiguousCodePoint = ambiguousRanges[0];
32293
32296
  var maximumAmbiguousCodePoint = ambiguousRanges.at(-1);
32294
32297
  var minimumFullWidthCodePoint = fullwidthRanges[0];
@@ -32339,7 +32342,7 @@ var isWide = (codePoint) => {
32339
32342
  return isInRange(wideRanges, codePoint);
32340
32343
  };
32341
32344
 
32342
- // ../../node_modules/get-east-asian-width/index.js
32345
+ // ../../node_modules/.bun/get-east-asian-width@1.5.0/node_modules/get-east-asian-width/index.js
32343
32346
  function validate(codePoint) {
32344
32347
  if (!Number.isSafeInteger(codePoint)) {
32345
32348
  throw new TypeError(`Expected a code point, got \`${typeof codePoint}\`.`);
@@ -32353,7 +32356,7 @@ function eastAsianWidth(codePoint, { ambiguousAsWide = false } = {}) {
32353
32356
  return 1;
32354
32357
  }
32355
32358
 
32356
- // ../../node_modules/wrap-ansi/node_modules/string-width/index.js
32359
+ // ../../node_modules/.bun/string-width@7.2.0/node_modules/string-width/index.js
32357
32360
  var import_emoji_regex = __toESM(require_emoji_regex(), 1);
32358
32361
  var segmenter = new Intl.Segmenter();
32359
32362
  var defaultIgnorableCodePointRegex = new RegExp("^\\p{Default_Ignorable_Code_Point}$", "u");
@@ -32402,7 +32405,7 @@ function stringWidth(string, options = {}) {
32402
32405
  return width;
32403
32406
  }
32404
32407
 
32405
- // ../../node_modules/ansi-styles/index.js
32408
+ // ../../node_modules/.bun/ansi-styles@6.2.3/node_modules/ansi-styles/index.js
32406
32409
  var ANSI_BACKGROUND_OFFSET = 10;
32407
32410
  var wrapAnsi16 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
32408
32411
  var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
@@ -32588,7 +32591,7 @@ function assembleStyles() {
32588
32591
  var ansiStyles = assembleStyles();
32589
32592
  var ansi_styles_default = ansiStyles;
32590
32593
 
32591
- // ../../node_modules/wrap-ansi/index.js
32594
+ // ../../node_modules/.bun/wrap-ansi@9.0.2/node_modules/wrap-ansi/index.js
32592
32595
  var ESCAPES = /* @__PURE__ */ new Set([
32593
32596
  "\x1B",
32594
32597
  "\x9B"
@@ -32743,7 +32746,7 @@ function wrapAnsi(string, columns, options) {
32743
32746
  return String(string).normalize().replaceAll("\r\n", "\n").split("\n").map((line) => exec(line, columns, options)).join("\n");
32744
32747
  }
32745
32748
 
32746
- // ../../node_modules/terminal-size/index.js
32749
+ // ../../node_modules/.bun/terminal-size@4.0.1/node_modules/terminal-size/index.js
32747
32750
  import process3 from "node:process";
32748
32751
  import { execFileSync } from "node:child_process";
32749
32752
  import fs from "node:fs";
@@ -32849,17 +32852,17 @@ var resize = () => {
32849
32852
  }
32850
32853
  };
32851
32854
 
32852
- // ../../node_modules/ink/build/utils.js
32855
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/utils.js
32853
32856
  import process4 from "node:process";
32854
32857
  var isDev = () => process4.env["DEV"] === "true";
32855
32858
 
32856
- // ../../node_modules/ink/build/reconciler.js
32859
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/reconciler.js
32857
32860
  var import_react_reconciler = __toESM(require_react_reconciler(), 1);
32858
32861
  var import_constants = __toESM(require_constants(), 1);
32859
32862
  var Scheduler = __toESM(require_scheduler(), 1);
32860
32863
  var import_react = __toESM(require_react(), 1);
32861
32864
 
32862
- // ../../node_modules/string-width/index.js
32865
+ // ../../node_modules/.bun/string-width@8.2.0/node_modules/string-width/index.js
32863
32866
  var segmenter2 = new Intl.Segmenter();
32864
32867
  var zeroWidthClusterRegex = new RegExp("^(?:\\p{Default_Ignorable_Code_Point}|\\p{Control}|\\p{Format}|\\p{Mark}|\\p{Surrogate})+$", "v");
32865
32868
  var leadingNonPrintingRegex = new RegExp("^[\\p{Default_Ignorable_Code_Point}\\p{Control}\\p{Format}\\p{Mark}\\p{Surrogate}]+", "v");
@@ -32931,7 +32934,7 @@ function stringWidth2(input, options = {}) {
32931
32934
  return width;
32932
32935
  }
32933
32936
 
32934
- // ../../node_modules/widest-line/index.js
32937
+ // ../../node_modules/.bun/widest-line@6.0.0/node_modules/widest-line/index.js
32935
32938
  function widestLine(string) {
32936
32939
  let lineWidth = 0;
32937
32940
  for (const line of string.split("\n")) {
@@ -32940,7 +32943,7 @@ function widestLine(string) {
32940
32943
  return lineWidth;
32941
32944
  }
32942
32945
 
32943
- // ../../node_modules/ink/build/measure-text.js
32946
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/measure-text.js
32944
32947
  var cache = /* @__PURE__ */ new Map();
32945
32948
  var measureText = (text) => {
32946
32949
  if (text.length === 0) {
@@ -32961,7 +32964,7 @@ var measureText = (text) => {
32961
32964
  };
32962
32965
  var measure_text_default = measureText;
32963
32966
 
32964
- // ../../node_modules/is-fullwidth-code-point/index.js
32967
+ // ../../node_modules/.bun/is-fullwidth-code-point@5.1.0/node_modules/is-fullwidth-code-point/index.js
32965
32968
  function isFullwidthCodePoint(codePoint) {
32966
32969
  if (!Number.isInteger(codePoint)) {
32967
32970
  return false;
@@ -32969,7 +32972,7 @@ function isFullwidthCodePoint(codePoint) {
32969
32972
  return isFullWidth(codePoint) || isWide(codePoint);
32970
32973
  }
32971
32974
 
32972
- // ../../node_modules/slice-ansi/tokenize-ansi.js
32975
+ // ../../node_modules/.bun/slice-ansi@8.0.0/node_modules/slice-ansi/tokenize-ansi.js
32973
32976
  var ESCAPE_CODE_POINT = 27;
32974
32977
  var C1_DCS_CODE_POINT = 144;
32975
32978
  var C1_SOS_CODE_POINT = 152;
@@ -33575,7 +33578,7 @@ function tokenizeAnsi(string, { endCharacter = Number.POSITIVE_INFINITY } = {})
33575
33578
  return tokens;
33576
33579
  }
33577
33580
 
33578
- // ../../node_modules/slice-ansi/index.js
33581
+ // ../../node_modules/.bun/slice-ansi@8.0.0/node_modules/slice-ansi/index.js
33579
33582
  function applySgrFragments(activeStyles, fragments) {
33580
33583
  for (const fragment of fragments) {
33581
33584
  switch (fragment.type) {
@@ -33778,7 +33781,7 @@ function sliceAnsi(string, start, end) {
33778
33781
  return returnValue;
33779
33782
  }
33780
33783
 
33781
- // ../../node_modules/cli-truncate/index.js
33784
+ // ../../node_modules/.bun/cli-truncate@5.2.0/node_modules/cli-truncate/index.js
33782
33785
  function getIndexOfNearestSpace(string, wantedIndex, shouldSearchRight) {
33783
33786
  if (string.charAt(wantedIndex) === " ") {
33784
33787
  return wantedIndex;
@@ -33904,7 +33907,7 @@ function cliTruncate(text, columns, options = {}) {
33904
33907
  throw new Error(`Expected \`options.position\` to be either \`start\`, \`middle\` or \`end\`, got ${position}`);
33905
33908
  }
33906
33909
 
33907
- // ../../node_modules/ink/build/wrap-text.js
33910
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/wrap-text.js
33908
33911
  var cache2 = {};
33909
33912
  var wrapText = (text, maxWidth, wrapType) => {
33910
33913
  const cacheKey = text + String(maxWidth) + String(wrapType);
@@ -33934,7 +33937,7 @@ var wrapText = (text, maxWidth, wrapType) => {
33934
33937
  };
33935
33938
  var wrap_text_default = wrapText;
33936
33939
 
33937
- // ../../node_modules/ink/build/ansi-tokenizer.js
33940
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/ansi-tokenizer.js
33938
33941
  var bellCharacter = "\x07";
33939
33942
  var escapeCharacter = "\x1B";
33940
33943
  var stringTerminatorCharacter = "\x9C";
@@ -34241,7 +34244,7 @@ var tokenizeAnsi2 = (text) => {
34241
34244
  return tokens;
34242
34245
  };
34243
34246
 
34244
- // ../../node_modules/ink/build/sanitize-ansi.js
34247
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/sanitize-ansi.js
34245
34248
  var sgrParametersRegex = /^[\d:;]*$/;
34246
34249
  var sanitizeAnsi = (text) => {
34247
34250
  if (!hasAnsiControlCharacters(text)) {
@@ -34261,7 +34264,7 @@ var sanitizeAnsi = (text) => {
34261
34264
  };
34262
34265
  var sanitize_ansi_default = sanitizeAnsi;
34263
34266
 
34264
- // ../../node_modules/ink/build/squash-text-nodes.js
34267
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/squash-text-nodes.js
34265
34268
  var squashTextNodes = (node) => {
34266
34269
  let text = "";
34267
34270
  for (let index = 0; index < node.childNodes.length; index++) {
@@ -34286,7 +34289,7 @@ var squashTextNodes = (node) => {
34286
34289
  };
34287
34290
  var squash_text_nodes_default = squashTextNodes;
34288
34291
 
34289
- // ../../node_modules/ink/build/dom.js
34292
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/dom.js
34290
34293
  var createNode = (nodeName) => {
34291
34294
  const node = {
34292
34295
  nodeName,
@@ -34402,7 +34405,7 @@ var setTextNodeValue = (node, text) => {
34402
34405
  markNodeAsDirty(node);
34403
34406
  };
34404
34407
 
34405
- // ../../node_modules/ink/build/styles.js
34408
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/styles.js
34406
34409
  var applyPositionStyles = (node, style) => {
34407
34410
  if ("position" in style) {
34408
34411
  node.setPositionType(style.position === "absolute" ? src_default.POSITION_TYPE_ABSOLUTE : src_default.POSITION_TYPE_RELATIVE);
@@ -34623,7 +34626,7 @@ var styles2 = (node, style = {}) => {
34623
34626
  };
34624
34627
  var styles_default = styles2;
34625
34628
 
34626
- // ../../node_modules/ink/build/reconciler.js
34629
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/reconciler.js
34627
34630
  if (isDev()) {
34628
34631
  try {
34629
34632
  await Promise.resolve().then(() => (init_devtools(), devtools_exports));
@@ -34884,7 +34887,7 @@ var reconciler_default = (0, import_react_reconciler.default)({
34884
34887
  rendererVersion: packageJson.version
34885
34888
  });
34886
34889
 
34887
- // ../../node_modules/indent-string/index.js
34890
+ // ../../node_modules/.bun/indent-string@5.0.0/node_modules/indent-string/index.js
34888
34891
  function indentString(string, count = 1, options = {}) {
34889
34892
  const {
34890
34893
  indent = " ",
@@ -34917,16 +34920,16 @@ function indentString(string, count = 1, options = {}) {
34917
34920
  return string.replace(regex2, indent.repeat(count));
34918
34921
  }
34919
34922
 
34920
- // ../../node_modules/ink/build/get-max-width.js
34923
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/get-max-width.js
34921
34924
  var getMaxWidth = (yogaNode) => {
34922
34925
  return yogaNode.getComputedWidth() - yogaNode.getComputedPadding(src_default.EDGE_LEFT) - yogaNode.getComputedPadding(src_default.EDGE_RIGHT) - yogaNode.getComputedBorder(src_default.EDGE_LEFT) - yogaNode.getComputedBorder(src_default.EDGE_RIGHT);
34923
34926
  };
34924
34927
  var get_max_width_default = getMaxWidth;
34925
34928
 
34926
- // ../../node_modules/ink/build/render-border.js
34929
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/render-border.js
34927
34930
  var import_cli_boxes = __toESM(require_cli_boxes(), 1);
34928
34931
 
34929
- // ../../node_modules/chalk/source/vendor/ansi-styles/index.js
34932
+ // ../../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.js
34930
34933
  var ANSI_BACKGROUND_OFFSET2 = 10;
34931
34934
  var wrapAnsi162 = (offset = 0) => (code) => `\x1B[${code + offset}m`;
34932
34935
  var wrapAnsi2562 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
@@ -35112,7 +35115,7 @@ function assembleStyles2() {
35112
35115
  var ansiStyles2 = assembleStyles2();
35113
35116
  var ansi_styles_default2 = ansiStyles2;
35114
35117
 
35115
- // ../../node_modules/chalk/source/vendor/supports-color/index.js
35118
+ // ../../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.js
35116
35119
  import process5 from "node:process";
35117
35120
  import os2 from "node:os";
35118
35121
  import tty2 from "node:tty";
@@ -35244,7 +35247,7 @@ var supportsColor = {
35244
35247
  };
35245
35248
  var supports_color_default = supportsColor;
35246
35249
 
35247
- // ../../node_modules/chalk/source/utilities.js
35250
+ // ../../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/utilities.js
35248
35251
  function stringReplaceAll(string, substring, replacer) {
35249
35252
  let index = string.indexOf(substring);
35250
35253
  if (index === -1) {
@@ -35274,7 +35277,7 @@ function stringEncaseCRLFWithFirstIndex(string, prefix, postfix, index) {
35274
35277
  return returnValue;
35275
35278
  }
35276
35279
 
35277
- // ../../node_modules/chalk/source/index.js
35280
+ // ../../node_modules/.bun/chalk@5.6.2/node_modules/chalk/source/index.js
35278
35281
  var { stdout: stdoutColor, stderr: stderrColor } = supports_color_default;
35279
35282
  var GENERATOR = Symbol("GENERATOR");
35280
35283
  var STYLER = Symbol("STYLER");
@@ -35421,7 +35424,7 @@ var chalk = createChalk();
35421
35424
  var chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
35422
35425
  var source_default = chalk;
35423
35426
 
35424
- // ../../node_modules/ink/build/colorize.js
35427
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/colorize.js
35425
35428
  var rgbRegex = /^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/;
35426
35429
  var ansiRegex2 = /^ansi256\(\s?(\d+)\s?\)$/;
35427
35430
  var isNamedColor = (color) => {
@@ -35463,7 +35466,7 @@ var colorize = (str, color, type) => {
35463
35466
  };
35464
35467
  var colorize_default = colorize;
35465
35468
 
35466
- // ../../node_modules/ink/build/render-border.js
35469
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/render-border.js
35467
35470
  var renderBorder = (x, y, node, output) => {
35468
35471
  if (node.style.borderStyle) {
35469
35472
  const width = node.yogaNode.getComputedWidth();
@@ -35524,7 +35527,7 @@ var renderBorder = (x, y, node, output) => {
35524
35527
  };
35525
35528
  var render_border_default = renderBorder;
35526
35529
 
35527
- // ../../node_modules/ink/build/render-background.js
35530
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/render-background.js
35528
35531
  var renderBackground = (x, y, node, output) => {
35529
35532
  if (!node.style.backgroundColor) {
35530
35533
  return;
@@ -35547,7 +35550,7 @@ var renderBackground = (x, y, node, output) => {
35547
35550
  };
35548
35551
  var render_background_default = renderBackground;
35549
35552
 
35550
- // ../../node_modules/ink/build/render-node-to-output.js
35553
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/render-node-to-output.js
35551
35554
  var applyPaddingToText = (node, text) => {
35552
35555
  const yogaNode = node.childNodes[0]?.yogaNode;
35553
35556
  if (yogaNode) {
@@ -35655,7 +35658,7 @@ var renderNodeToOutput = (node, output, options) => {
35655
35658
  };
35656
35659
  var render_node_to_output_default = renderNodeToOutput;
35657
35660
 
35658
- // ../../node_modules/@alcalzone/ansi-tokenize/build/ansiCodes.js
35661
+ // ../../node_modules/.bun/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/ansiCodes.js
35659
35662
  var ESCAPES3 = /* @__PURE__ */ new Set([27, 155]);
35660
35663
  var CSI = "[".codePointAt(0);
35661
35664
  var OSC2 = "]".codePointAt(0);
@@ -35698,7 +35701,7 @@ function isIntensityCode(code) {
35698
35701
  return code.code === ansi_styles_default.bold.open || code.code === ansi_styles_default.dim.open;
35699
35702
  }
35700
35703
 
35701
- // ../../node_modules/@alcalzone/ansi-tokenize/build/reduce.js
35704
+ // ../../node_modules/.bun/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/reduce.js
35702
35705
  function reduceAnsiCodes(codes) {
35703
35706
  return reduceAnsiCodesIncremental([], codes);
35704
35707
  }
@@ -35723,7 +35726,7 @@ function reduceAnsiCodesIncremental(codes, newCodes) {
35723
35726
  return ret;
35724
35727
  }
35725
35728
 
35726
- // ../../node_modules/@alcalzone/ansi-tokenize/build/undo.js
35729
+ // ../../node_modules/.bun/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/undo.js
35727
35730
  function undoAnsiCodes2(codes) {
35728
35731
  return reduceAnsiCodes(codes).reverse().map((code) => ({
35729
35732
  ...code,
@@ -35731,7 +35734,7 @@ function undoAnsiCodes2(codes) {
35731
35734
  }));
35732
35735
  }
35733
35736
 
35734
- // ../../node_modules/@alcalzone/ansi-tokenize/build/diff.js
35737
+ // ../../node_modules/.bun/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/diff.js
35735
35738
  function diffAnsiCodes(from, to) {
35736
35739
  const endCodesInTo = new Set(to.map((code) => code.endCode));
35737
35740
  const startCodesInTo = new Set(to.map((code) => code.code));
@@ -35750,7 +35753,7 @@ function diffAnsiCodes(from, to) {
35750
35753
  ];
35751
35754
  }
35752
35755
 
35753
- // ../../node_modules/@alcalzone/ansi-tokenize/build/styledChars.js
35756
+ // ../../node_modules/.bun/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/styledChars.js
35754
35757
  function styledCharsFromTokens(tokens) {
35755
35758
  let codes = [];
35756
35759
  const ret = [];
@@ -35783,7 +35786,7 @@ function styledCharsToString(chars) {
35783
35786
  return ret;
35784
35787
  }
35785
35788
 
35786
- // ../../node_modules/@alcalzone/ansi-tokenize/build/tokenize.js
35789
+ // ../../node_modules/.bun/@alcalzone+ansi-tokenize@0.2.5/node_modules/@alcalzone/ansi-tokenize/build/tokenize.js
35787
35790
  var segmenter3 = new Intl.Segmenter(void 0, { granularity: "grapheme" });
35788
35791
  function isFullwidthGrapheme(grapheme, baseCodePoint) {
35789
35792
  if (isFullwidthCodePoint(baseCodePoint))
@@ -35908,7 +35911,7 @@ function tokenize(str, endChar = Number.POSITIVE_INFINITY) {
35908
35911
  return ret;
35909
35912
  }
35910
35913
 
35911
- // ../../node_modules/ink/build/output.js
35914
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/output.js
35912
35915
  var OutputCaches = class {
35913
35916
  widths = /* @__PURE__ */ new Map();
35914
35917
  blockWidths = /* @__PURE__ */ new Map();
@@ -36080,7 +36083,7 @@ var Output = class {
36080
36083
  }
36081
36084
  };
36082
36085
 
36083
- // ../../node_modules/ink/build/renderer.js
36086
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/renderer.js
36084
36087
  var renderer = (node, isScreenReaderEnabled) => {
36085
36088
  if (node.yogaNode) {
36086
36089
  if (isScreenReaderEnabled) {
@@ -36136,10 +36139,10 @@ var renderer = (node, isScreenReaderEnabled) => {
36136
36139
  };
36137
36140
  var renderer_default = renderer;
36138
36141
 
36139
- // ../../node_modules/cli-cursor/index.js
36142
+ // ../../node_modules/.bun/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
36140
36143
  import process7 from "node:process";
36141
36144
 
36142
- // ../../node_modules/restore-cursor/index.js
36145
+ // ../../node_modules/.bun/restore-cursor@4.0.0/node_modules/restore-cursor/index.js
36143
36146
  var import_onetime = __toESM(require_onetime(), 1);
36144
36147
  var import_signal_exit = __toESM(require_signal_exit(), 1);
36145
36148
  import process6 from "node:process";
@@ -36150,7 +36153,7 @@ var restoreCursor = (0, import_onetime.default)(() => {
36150
36153
  });
36151
36154
  var restore_cursor_default = restoreCursor;
36152
36155
 
36153
- // ../../node_modules/cli-cursor/index.js
36156
+ // ../../node_modules/.bun/cli-cursor@4.0.0/node_modules/cli-cursor/index.js
36154
36157
  var isHidden = false;
36155
36158
  var cliCursor = {};
36156
36159
  cliCursor.show = (writableStream = process7.stderr) => {
@@ -36180,7 +36183,7 @@ cliCursor.toggle = (force, writableStream) => {
36180
36183
  };
36181
36184
  var cli_cursor_default = cliCursor;
36182
36185
 
36183
- // ../../node_modules/ink/build/cursor-helpers.js
36186
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/cursor-helpers.js
36184
36187
  var showCursorEscape = "\x1B[?25h";
36185
36188
  var hideCursorEscape = "\x1B[?25l";
36186
36189
  var cursorPositionChanged = (a, b) => a?.x !== b?.x || a?.y !== b?.y;
@@ -36211,7 +36214,7 @@ var buildReturnToBottomPrefix = (cursorWasShown, previousLineCount, previousCurs
36211
36214
  return hideCursorEscape + buildReturnToBottom(previousLineCount, previousCursorPosition);
36212
36215
  };
36213
36216
 
36214
- // ../../node_modules/ink/build/log-update.js
36217
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/log-update.js
36215
36218
  var visibleLineCount = (lines, str) => str.endsWith("\n") ? lines.length - 1 : lines.length;
36216
36219
  var createStandard = (stream, { showCursor = false } = {}) => {
36217
36220
  let previousLineCount = 0;
@@ -36429,23 +36432,23 @@ var create2 = (stream, { showCursor = false, incremental = false } = {}) => {
36429
36432
  var logUpdate = { create: create2 };
36430
36433
  var log_update_default = logUpdate;
36431
36434
 
36432
- // ../../node_modules/ink/build/write-synchronized.js
36435
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/write-synchronized.js
36433
36436
  var bsu = "\x1B[?2026h";
36434
36437
  var esu = "\x1B[?2026l";
36435
36438
  function shouldSynchronize(stream) {
36436
36439
  return "isTTY" in stream && stream.isTTY === true && !is_in_ci_default;
36437
36440
  }
36438
36441
 
36439
- // ../../node_modules/ink/build/instances.js
36442
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/instances.js
36440
36443
  var instances = /* @__PURE__ */ new WeakMap();
36441
36444
  var instances_default = instances;
36442
36445
 
36443
- // ../../node_modules/ink/build/components/App.js
36446
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/App.js
36444
36447
  var import_react14 = __toESM(require_react(), 1);
36445
36448
  import { EventEmitter as EventEmitter2 } from "node:events";
36446
36449
  import process11 from "node:process";
36447
36450
 
36448
- // ../../node_modules/ink/build/input-parser.js
36451
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/input-parser.js
36449
36452
  var escape = "\x1B";
36450
36453
  var isCsiParameterByte = (byte) => {
36451
36454
  return byte >= 48 && byte <= 63;
@@ -36599,7 +36602,7 @@ var createInputParser = () => {
36599
36602
  };
36600
36603
  };
36601
36604
 
36602
- // ../../node_modules/ink/build/components/AppContext.js
36605
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/AppContext.js
36603
36606
  var import_react2 = __toESM(require_react(), 1);
36604
36607
  var AppContext = (0, import_react2.createContext)({
36605
36608
  exit() {
@@ -36608,7 +36611,7 @@ var AppContext = (0, import_react2.createContext)({
36608
36611
  AppContext.displayName = "InternalAppContext";
36609
36612
  var AppContext_default = AppContext;
36610
36613
 
36611
- // ../../node_modules/ink/build/components/StdinContext.js
36614
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/StdinContext.js
36612
36615
  var import_react3 = __toESM(require_react(), 1);
36613
36616
  import { EventEmitter } from "node:events";
36614
36617
  import process8 from "node:process";
@@ -36625,7 +36628,7 @@ var StdinContext = (0, import_react3.createContext)({
36625
36628
  StdinContext.displayName = "InternalStdinContext";
36626
36629
  var StdinContext_default = StdinContext;
36627
36630
 
36628
- // ../../node_modules/ink/build/components/StdoutContext.js
36631
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/StdoutContext.js
36629
36632
  var import_react4 = __toESM(require_react(), 1);
36630
36633
  import process9 from "node:process";
36631
36634
  var StdoutContext = (0, import_react4.createContext)({
@@ -36636,7 +36639,7 @@ var StdoutContext = (0, import_react4.createContext)({
36636
36639
  StdoutContext.displayName = "InternalStdoutContext";
36637
36640
  var StdoutContext_default = StdoutContext;
36638
36641
 
36639
- // ../../node_modules/ink/build/components/StderrContext.js
36642
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/StderrContext.js
36640
36643
  var import_react5 = __toESM(require_react(), 1);
36641
36644
  import process10 from "node:process";
36642
36645
  var StderrContext = (0, import_react5.createContext)({
@@ -36647,7 +36650,7 @@ var StderrContext = (0, import_react5.createContext)({
36647
36650
  StderrContext.displayName = "InternalStderrContext";
36648
36651
  var StderrContext_default = StderrContext;
36649
36652
 
36650
- // ../../node_modules/ink/build/components/FocusContext.js
36653
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/FocusContext.js
36651
36654
  var import_react6 = __toESM(require_react(), 1);
36652
36655
  var FocusContext = (0, import_react6.createContext)({
36653
36656
  activeId: void 0,
@@ -36673,7 +36676,7 @@ var FocusContext = (0, import_react6.createContext)({
36673
36676
  FocusContext.displayName = "InternalFocusContext";
36674
36677
  var FocusContext_default = FocusContext;
36675
36678
 
36676
- // ../../node_modules/ink/build/components/CursorContext.js
36679
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/CursorContext.js
36677
36680
  var import_react7 = __toESM(require_react(), 1);
36678
36681
  var CursorContext = (0, import_react7.createContext)({
36679
36682
  setCursorPosition() {
@@ -36682,22 +36685,22 @@ var CursorContext = (0, import_react7.createContext)({
36682
36685
  CursorContext.displayName = "InternalCursorContext";
36683
36686
  var CursorContext_default = CursorContext;
36684
36687
 
36685
- // ../../node_modules/ink/build/components/ErrorBoundary.js
36688
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/ErrorBoundary.js
36686
36689
  var import_react13 = __toESM(require_react(), 1);
36687
36690
 
36688
- // ../../node_modules/ink/build/components/ErrorOverview.js
36691
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/ErrorOverview.js
36689
36692
  var import_react12 = __toESM(require_react(), 1);
36690
36693
  var import_stack_utils = __toESM(require_stack_utils(), 1);
36691
36694
  import * as fs2 from "node:fs";
36692
36695
  import { cwd } from "node:process";
36693
36696
 
36694
- // ../../node_modules/convert-to-spaces/dist/index.js
36697
+ // ../../node_modules/.bun/convert-to-spaces@2.0.1/node_modules/convert-to-spaces/dist/index.js
36695
36698
  var convertToSpaces = (input, spaces = 2) => {
36696
36699
  return input.replace(/^\t+/gm, ($1) => " ".repeat($1.length * spaces));
36697
36700
  };
36698
36701
  var dist_default2 = convertToSpaces;
36699
36702
 
36700
- // ../../node_modules/code-excerpt/dist/index.js
36703
+ // ../../node_modules/.bun/code-excerpt@4.0.0/node_modules/code-excerpt/dist/index.js
36701
36704
  var generateLineNumbers = (line, around) => {
36702
36705
  const lineNumbers = [];
36703
36706
  const min = line - around;
@@ -36723,20 +36726,20 @@ var codeExcerpt = (source, line, options = {}) => {
36723
36726
  };
36724
36727
  var dist_default3 = codeExcerpt;
36725
36728
 
36726
- // ../../node_modules/ink/build/components/Box.js
36729
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/Box.js
36727
36730
  var import_react10 = __toESM(require_react(), 1);
36728
36731
 
36729
- // ../../node_modules/ink/build/components/AccessibilityContext.js
36732
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/AccessibilityContext.js
36730
36733
  var import_react8 = __toESM(require_react(), 1);
36731
36734
  var accessibilityContext = (0, import_react8.createContext)({
36732
36735
  isScreenReaderEnabled: false
36733
36736
  });
36734
36737
 
36735
- // ../../node_modules/ink/build/components/BackgroundContext.js
36738
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/BackgroundContext.js
36736
36739
  var import_react9 = __toESM(require_react(), 1);
36737
36740
  var backgroundContext = (0, import_react9.createContext)(void 0);
36738
36741
 
36739
- // ../../node_modules/ink/build/components/Box.js
36742
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/Box.js
36740
36743
  var Box = (0, import_react10.forwardRef)(({ children, backgroundColor, "aria-label": ariaLabel, "aria-hidden": ariaHidden, "aria-role": role, "aria-state": ariaState, ...style }, ref) => {
36741
36744
  const { isScreenReaderEnabled } = (0, import_react10.useContext)(accessibilityContext);
36742
36745
  const label = ariaLabel ? import_react10.default.createElement("ink-text", null, ariaLabel) : void 0;
@@ -36764,7 +36767,7 @@ var Box = (0, import_react10.forwardRef)(({ children, backgroundColor, "aria-lab
36764
36767
  Box.displayName = "Box";
36765
36768
  var Box_default = Box;
36766
36769
 
36767
- // ../../node_modules/ink/build/components/Text.js
36770
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/Text.js
36768
36771
  var import_react11 = __toESM(require_react(), 1);
36769
36772
  function Text({ color, backgroundColor, dimColor = false, bold = false, italic = false, underline = false, strikethrough = false, inverse = false, wrap = "wrap", children, "aria-label": ariaLabel, "aria-hidden": ariaHidden = false }) {
36770
36773
  const { isScreenReaderEnabled } = (0, import_react11.useContext)(accessibilityContext);
@@ -36807,7 +36810,7 @@ function Text({ color, backgroundColor, dimColor = false, bold = false, italic =
36807
36810
  return import_react11.default.createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap: wrap }, internal_transform: transform }, isScreenReaderEnabled && ariaLabel ? ariaLabel : children);
36808
36811
  }
36809
36812
 
36810
- // ../../node_modules/ink/build/components/ErrorOverview.js
36813
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/ErrorOverview.js
36811
36814
  var cleanupPath = (path) => {
36812
36815
  return path?.replace(`file://${cwd()}/`, "");
36813
36816
  };
@@ -36916,7 +36919,7 @@ function ErrorOverview({ error }) {
36916
36919
  );
36917
36920
  }
36918
36921
 
36919
- // ../../node_modules/ink/build/components/ErrorBoundary.js
36922
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/ErrorBoundary.js
36920
36923
  var ErrorBoundary = class extends import_react13.PureComponent {
36921
36924
  static displayName = "InternalErrorBoundary";
36922
36925
  static getDerivedStateFromError(error) {
@@ -36936,7 +36939,7 @@ var ErrorBoundary = class extends import_react13.PureComponent {
36936
36939
  }
36937
36940
  };
36938
36941
 
36939
- // ../../node_modules/ink/build/components/App.js
36942
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/App.js
36940
36943
  var tab = " ";
36941
36944
  var shiftTab = "\x1B[Z";
36942
36945
  var escape2 = "\x1B";
@@ -37270,7 +37273,7 @@ function App({ children, stdin, stdout, stderr, writeToStdout, writeToStderr, ex
37270
37273
  App.displayName = "InternalApp";
37271
37274
  var App_default = App;
37272
37275
 
37273
- // ../../node_modules/ink/build/kitty-keyboard.js
37276
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/kitty-keyboard.js
37274
37277
  var kittyFlags = {
37275
37278
  disambiguateEscapeCodes: 1,
37276
37279
  reportEventTypes: 2,
@@ -37296,7 +37299,7 @@ var kittyModifiers = {
37296
37299
  numLock: 128
37297
37300
  };
37298
37301
 
37299
- // ../../node_modules/ink/build/ink.js
37302
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/ink.js
37300
37303
  var noop = () => {
37301
37304
  };
37302
37305
  var kittyQueryEscapeByte = 27;
@@ -37837,7 +37840,7 @@ var Ink = class {
37837
37840
  }
37838
37841
  };
37839
37842
 
37840
- // ../../node_modules/ink/build/render.js
37843
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/render.js
37841
37844
  var render = (node, options) => {
37842
37845
  const inkOptions = {
37843
37846
  stdout: process13.stdout,
@@ -37884,25 +37887,25 @@ var getInstance = (stdout, createInstance, concurrent) => {
37884
37887
  return instance;
37885
37888
  };
37886
37889
 
37887
- // ../../node_modules/ink/build/render-to-string.js
37890
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/render-to-string.js
37888
37891
  var import_constants3 = __toESM(require_constants(), 1);
37889
37892
 
37890
- // ../../node_modules/ink/build/components/Static.js
37893
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/Static.js
37891
37894
  var import_react16 = __toESM(require_react(), 1);
37892
37895
 
37893
- // ../../node_modules/ink/build/components/Transform.js
37896
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/Transform.js
37894
37897
  var import_react17 = __toESM(require_react(), 1);
37895
37898
 
37896
- // ../../node_modules/ink/build/components/Newline.js
37899
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/Newline.js
37897
37900
  var import_react18 = __toESM(require_react(), 1);
37898
37901
 
37899
- // ../../node_modules/ink/build/components/Spacer.js
37902
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/components/Spacer.js
37900
37903
  var import_react19 = __toESM(require_react(), 1);
37901
37904
 
37902
- // ../../node_modules/ink/build/hooks/use-input.js
37905
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/hooks/use-input.js
37903
37906
  var import_react21 = __toESM(require_react(), 1);
37904
37907
 
37905
- // ../../node_modules/ink/build/parse-keypress.js
37908
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/parse-keypress.js
37906
37909
  import { Buffer as Buffer2 } from "node:buffer";
37907
37910
  var metaKeyCodeRe = /^(?:\x1b)([a-zA-Z0-9])$/;
37908
37911
  var fnKeyRe = /^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/;
@@ -38331,12 +38334,12 @@ var parseKeypress = (s = "") => {
38331
38334
  };
38332
38335
  var parse_keypress_default = parseKeypress;
38333
38336
 
38334
- // ../../node_modules/ink/build/hooks/use-stdin.js
38337
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/hooks/use-stdin.js
38335
38338
  var import_react20 = __toESM(require_react(), 1);
38336
38339
  var useStdin = () => (0, import_react20.useContext)(StdinContext_default);
38337
38340
  var use_stdin_default = useStdin;
38338
38341
 
38339
- // ../../node_modules/ink/build/hooks/use-input.js
38342
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/hooks/use-input.js
38340
38343
  var useInput = (inputHandler, options = {}) => {
38341
38344
  const { stdin, setRawMode, internal_exitOnCtrlC, internal_eventEmitter } = use_stdin_default();
38342
38345
  (0, import_react21.useEffect)(() => {
@@ -38419,30 +38422,30 @@ var useInput = (inputHandler, options = {}) => {
38419
38422
  };
38420
38423
  var use_input_default = useInput;
38421
38424
 
38422
- // ../../node_modules/ink/build/hooks/use-app.js
38425
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/hooks/use-app.js
38423
38426
  var import_react22 = __toESM(require_react(), 1);
38424
38427
  var useApp = () => (0, import_react22.useContext)(AppContext_default);
38425
38428
  var use_app_default = useApp;
38426
38429
 
38427
- // ../../node_modules/ink/build/hooks/use-stdout.js
38430
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/hooks/use-stdout.js
38428
38431
  var import_react23 = __toESM(require_react(), 1);
38429
38432
 
38430
- // ../../node_modules/ink/build/hooks/use-stderr.js
38433
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/hooks/use-stderr.js
38431
38434
  var import_react24 = __toESM(require_react(), 1);
38432
38435
 
38433
- // ../../node_modules/ink/build/hooks/use-focus.js
38436
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/hooks/use-focus.js
38434
38437
  var import_react25 = __toESM(require_react(), 1);
38435
38438
 
38436
- // ../../node_modules/ink/build/hooks/use-focus-manager.js
38439
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/hooks/use-focus-manager.js
38437
38440
  var import_react26 = __toESM(require_react(), 1);
38438
38441
 
38439
- // ../../node_modules/ink/build/hooks/use-is-screen-reader-enabled.js
38442
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js
38440
38443
  var import_react27 = __toESM(require_react(), 1);
38441
38444
 
38442
- // ../../node_modules/ink/build/hooks/use-cursor.js
38445
+ // ../../node_modules/.bun/ink@6.8.0+26a211c426f3f87c/node_modules/ink/build/hooks/use-cursor.js
38443
38446
  var import_react28 = __toESM(require_react(), 1);
38444
38447
 
38445
- // ../../node_modules/ink-spinner/build/index.js
38448
+ // ../../node_modules/.bun/ink-spinner@5.0.0+b601e0ea471ec471/node_modules/ink-spinner/build/index.js
38446
38449
  var import_react29 = __toESM(require_react(), 1);
38447
38450
  var import_cli_spinners = __toESM(require_cli_spinners(), 1);
38448
38451
  function Spinner({ type = "dots" }) {
@@ -38908,6 +38911,77 @@ function parseNumstat(line) {
38908
38911
  deletions: delStr === "-" ? 0 : Number.parseInt(delStr, 10)
38909
38912
  };
38910
38913
  }
38914
+ var HUNK_HEADER_RE = /^@@\s+-(\d+)(?:,(\d+))?\s+\+(\d+)(?:,(\d+))?\s+@@\s*(.*)/;
38915
+ function parseHunks(patch) {
38916
+ if (!patch.trim()) return [];
38917
+ const hunks = [];
38918
+ const lines = patch.split("\n");
38919
+ let currentHunk = null;
38920
+ let hunkIndex = 0;
38921
+ let oldLineNo = 0;
38922
+ let newLineNo = 0;
38923
+ let hunkLines = [];
38924
+ for (const line of lines) {
38925
+ const headerMatch = line.match(HUNK_HEADER_RE);
38926
+ if (headerMatch) {
38927
+ if (currentHunk) {
38928
+ currentHunk.content = hunkLines.join("\n");
38929
+ hunks.push(currentHunk);
38930
+ }
38931
+ const startLineOld = Number.parseInt(headerMatch[1], 10);
38932
+ const countOld = headerMatch[2] !== void 0 ? Number.parseInt(headerMatch[2], 10) : 1;
38933
+ const startLineNew = Number.parseInt(headerMatch[3], 10);
38934
+ const countNew = headerMatch[4] !== void 0 ? Number.parseInt(headerMatch[4], 10) : 1;
38935
+ const contextFunction = headerMatch[5] || void 0;
38936
+ oldLineNo = startLineOld;
38937
+ newLineNo = startLineNew;
38938
+ currentHunk = {
38939
+ index: hunkIndex++,
38940
+ header: line,
38941
+ startLineOld,
38942
+ countOld,
38943
+ startLineNew,
38944
+ countNew,
38945
+ contextFunction,
38946
+ lines: [],
38947
+ content: ""
38948
+ };
38949
+ hunkLines = [line];
38950
+ continue;
38951
+ }
38952
+ if (!currentHunk) continue;
38953
+ hunkLines.push(line);
38954
+ if (line.startsWith("+")) {
38955
+ currentHunk.lines.push({
38956
+ type: "addition",
38957
+ content: line.slice(1),
38958
+ newLineNo
38959
+ });
38960
+ newLineNo++;
38961
+ } else if (line.startsWith("-")) {
38962
+ currentHunk.lines.push({
38963
+ type: "deletion",
38964
+ content: line.slice(1),
38965
+ oldLineNo
38966
+ });
38967
+ oldLineNo++;
38968
+ } else if (line.startsWith(" ") || line === "" && currentHunk) {
38969
+ currentHunk.lines.push({
38970
+ type: "context",
38971
+ content: line.startsWith(" ") ? line.slice(1) : line,
38972
+ oldLineNo,
38973
+ newLineNo
38974
+ });
38975
+ oldLineNo++;
38976
+ newLineNo++;
38977
+ }
38978
+ }
38979
+ if (currentHunk) {
38980
+ currentHunk.content = hunkLines.join("\n");
38981
+ hunks.push(currentHunk);
38982
+ }
38983
+ return hunks;
38984
+ }
38911
38985
  function extractFilePatches(rawDiff) {
38912
38986
  const result = /* @__PURE__ */ new Map();
38913
38987
  if (!rawDiff.trim()) return result;
@@ -38925,6 +38999,45 @@ function extractFilePatches(rawDiff) {
38925
38999
  return result;
38926
39000
  }
38927
39001
 
39002
+ // ../../packages/git/src/manifest.ts
39003
+ function buildSplitManifest(files, hunksMap) {
39004
+ let totalAdditions = 0;
39005
+ let totalDeletions = 0;
39006
+ const splitFiles = files.map((file) => {
39007
+ const hunks = hunksMap.get(file.path) ?? [];
39008
+ const hunkSummaries = hunks.map((hunk) => {
39009
+ let additions = 0;
39010
+ let deletions = 0;
39011
+ for (const line of hunk.lines) {
39012
+ if (line.type === "addition") additions++;
39013
+ else if (line.type === "deletion") deletions++;
39014
+ }
39015
+ return {
39016
+ index: hunk.index,
39017
+ header: hunk.header,
39018
+ additions,
39019
+ deletions,
39020
+ lines: hunk.lines
39021
+ };
39022
+ });
39023
+ totalAdditions += file.additions;
39024
+ totalDeletions += file.deletions;
39025
+ return {
39026
+ path: file.path,
39027
+ status: file.status,
39028
+ additions: file.additions,
39029
+ deletions: file.deletions,
39030
+ isBinary: file.isBinary,
39031
+ hunks: hunkSummaries
39032
+ };
39033
+ });
39034
+ return {
39035
+ files: splitFiles,
39036
+ totalAdditions,
39037
+ totalDeletions
39038
+ };
39039
+ }
39040
+
38928
39041
  // ../../packages/git/src/process.ts
38929
39042
  async function runGit(args2) {
38930
39043
  const proc = Bun.spawn(["git", ...args2], {
@@ -38948,6 +39061,355 @@ async function runGit(args2) {
38948
39061
  return stdout;
38949
39062
  }
38950
39063
 
39064
+ // ../../node_modules/.bun/git-patch@0.1.4/node_modules/git-patch/lib/diff-parser.js
39065
+ var hunkIdCounter = 0;
39066
+ function resetHunkIds() {
39067
+ hunkIdCounter = 0;
39068
+ }
39069
+ function nextHunkId() {
39070
+ return ++hunkIdCounter;
39071
+ }
39072
+ function parseHunkHeader(line) {
39073
+ let match = line.match(/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@(.*)$/);
39074
+ if (!match) return null;
39075
+ return {
39076
+ oldStart: parseInt(match[1], 10),
39077
+ oldCount: match[2] != null ? parseInt(match[2], 10) : 1,
39078
+ newStart: parseInt(match[3], 10),
39079
+ newCount: match[4] != null ? parseInt(match[4], 10) : 1,
39080
+ context: match[5].trim() || null,
39081
+ raw: line
39082
+ };
39083
+ }
39084
+ function classifyLine(raw) {
39085
+ if (raw.startsWith("+")) return "added";
39086
+ if (raw.startsWith("-")) return "removed";
39087
+ if (raw.startsWith("\\")) return "no-newline";
39088
+ return "context";
39089
+ }
39090
+ function parseFileDiff(chunk) {
39091
+ let lines = chunk.split("\n");
39092
+ let file = null;
39093
+ let diffOldFile = null;
39094
+ let diffNewFile = null;
39095
+ let oldFile = null;
39096
+ let newFile = null;
39097
+ let metadataLines = [];
39098
+ let hunks = [];
39099
+ let i = 0;
39100
+ while (i < lines.length) {
39101
+ let line = lines[i];
39102
+ if (line.startsWith("diff --git")) {
39103
+ let match = line.match(/^diff --git a\/(.+) b\/(.+)$/);
39104
+ if (match) {
39105
+ diffOldFile = `a/${match[1]}`;
39106
+ diffNewFile = `b/${match[2]}`;
39107
+ oldFile = diffOldFile;
39108
+ newFile = diffNewFile;
39109
+ file = match[2];
39110
+ }
39111
+ i++;
39112
+ continue;
39113
+ }
39114
+ if (line.startsWith("index ") || line.startsWith("old mode") || line.startsWith("new mode") || line.startsWith("new file") || line.startsWith("deleted file") || line.startsWith("similarity index") || line.startsWith("rename from") || line.startsWith("rename to") || line.startsWith("copy from") || line.startsWith("copy to") || line.startsWith("Binary files")) {
39115
+ metadataLines.push(line);
39116
+ i++;
39117
+ continue;
39118
+ }
39119
+ if (line.startsWith("--- ")) {
39120
+ oldFile = line.slice(4);
39121
+ i++;
39122
+ continue;
39123
+ }
39124
+ if (line.startsWith("+++ ")) {
39125
+ newFile = line.slice(4);
39126
+ if (newFile.startsWith("b/")) {
39127
+ file = newFile.slice(2);
39128
+ }
39129
+ i++;
39130
+ continue;
39131
+ }
39132
+ if (line.startsWith("@@")) {
39133
+ break;
39134
+ }
39135
+ i++;
39136
+ }
39137
+ while (i < lines.length) {
39138
+ let line = lines[i];
39139
+ if (!line.startsWith("@@")) {
39140
+ i++;
39141
+ continue;
39142
+ }
39143
+ let header = parseHunkHeader(line);
39144
+ if (!header) {
39145
+ i++;
39146
+ continue;
39147
+ }
39148
+ let hunkLines = [];
39149
+ let oldLine = header.oldStart;
39150
+ let newLine = header.newStart;
39151
+ let addedCount = 0;
39152
+ let removedCount = 0;
39153
+ i++;
39154
+ while (i < lines.length && !lines[i].startsWith("@@")) {
39155
+ let raw = lines[i];
39156
+ if (raw === "" && i === lines.length - 1) {
39157
+ i++;
39158
+ continue;
39159
+ }
39160
+ let type = classifyLine(raw);
39161
+ if (type === "no-newline") {
39162
+ hunkLines.push({ type, content: raw, oldLine: null, newLine: null });
39163
+ i++;
39164
+ continue;
39165
+ }
39166
+ let entry = {
39167
+ type,
39168
+ content: raw,
39169
+ oldLine: null,
39170
+ newLine: null
39171
+ };
39172
+ if (type === "context") {
39173
+ entry.oldLine = oldLine++;
39174
+ entry.newLine = newLine++;
39175
+ } else if (type === "removed") {
39176
+ entry.oldLine = oldLine++;
39177
+ removedCount++;
39178
+ } else if (type === "added") {
39179
+ entry.newLine = newLine++;
39180
+ addedCount++;
39181
+ }
39182
+ hunkLines.push(entry);
39183
+ i++;
39184
+ }
39185
+ hunks.push({
39186
+ id: nextHunkId(),
39187
+ header: header.raw,
39188
+ oldStart: header.oldStart,
39189
+ oldCount: header.oldCount,
39190
+ newStart: header.newStart,
39191
+ newCount: header.newCount,
39192
+ context: header.context,
39193
+ lines: hunkLines,
39194
+ addedCount,
39195
+ removedCount
39196
+ });
39197
+ }
39198
+ return { file, diffOldFile, diffNewFile, oldFile, newFile, metadataLines, hunks };
39199
+ }
39200
+ function parseDiff(raw) {
39201
+ if (!raw || !raw.trim()) return [];
39202
+ resetHunkIds();
39203
+ let chunks = raw.split(/^(?=diff --git )/m).filter((c) => c.trim());
39204
+ return chunks.map(parseFileDiff).filter((f) => f.file && f.hunks.length > 0);
39205
+ }
39206
+
39207
+ // ../../node_modules/.bun/git-patch@0.1.4/node_modules/git-patch/lib/patch-builder.js
39208
+ function buildPatchFromHunks(fileDiffs, hunkIds) {
39209
+ let idSet = new Set(hunkIds);
39210
+ let patches = [];
39211
+ for (let file of fileDiffs) {
39212
+ let selectedHunks = file.hunks.filter((h) => idSet.has(h.id));
39213
+ if (selectedHunks.length === 0) continue;
39214
+ let header = buildFileHeader(file);
39215
+ let body = selectedHunks.map((h) => formatHunk(h)).join("\n");
39216
+ patches.push(`${header}
39217
+ ${body}`);
39218
+ }
39219
+ return `${patches.join("\n")}
39220
+ `;
39221
+ }
39222
+ function buildPatchFromLines(fileDiffs, hunkId, changeLineIndices, _mode = "stage") {
39223
+ let selectedSet = new Set(changeLineIndices);
39224
+ let hunk = null;
39225
+ let parentFile = null;
39226
+ for (let file of fileDiffs) {
39227
+ for (let h of file.hunks) {
39228
+ if (h.id === hunkId) {
39229
+ hunk = h;
39230
+ parentFile = file;
39231
+ break;
39232
+ }
39233
+ }
39234
+ if (hunk) break;
39235
+ }
39236
+ if (!hunk) throw new Error(`Hunk ${hunkId} not found`);
39237
+ let changeIndex = 0;
39238
+ let newLines = [];
39239
+ for (let line of hunk.lines) {
39240
+ if (line.type === "context" || line.type === "no-newline") {
39241
+ newLines.push(line);
39242
+ continue;
39243
+ }
39244
+ changeIndex++;
39245
+ let isSelected = selectedSet.has(changeIndex);
39246
+ if (isSelected) {
39247
+ newLines.push(line);
39248
+ } else {
39249
+ if (line.type === "removed") {
39250
+ newLines.push({
39251
+ ...line,
39252
+ type: "context",
39253
+ content: ` ${line.content.slice(1)}`
39254
+ });
39255
+ }
39256
+ }
39257
+ }
39258
+ let oldCount = 0;
39259
+ let newCount = 0;
39260
+ for (let line of newLines) {
39261
+ if (line.type === "context") {
39262
+ oldCount++;
39263
+ newCount++;
39264
+ } else if (line.type === "removed") {
39265
+ oldCount++;
39266
+ } else if (line.type === "added") {
39267
+ newCount++;
39268
+ }
39269
+ }
39270
+ let newHeader = `@@ -${hunk.oldStart},${oldCount} +${hunk.newStart},${newCount} @@`;
39271
+ if (hunk.context) newHeader += ` ${hunk.context}`;
39272
+ let header = buildFileHeader(parentFile);
39273
+ let body = `${newHeader}
39274
+ ${newLines.map((l) => l.content).join("\n")}`;
39275
+ return `${header}
39276
+ ${body}
39277
+ `;
39278
+ }
39279
+ function buildFileHeader(file) {
39280
+ let diffOldFile = file.diffOldFile || `a/${file.file}`;
39281
+ let diffNewFile = file.diffNewFile || `b/${file.file}`;
39282
+ let oldFile = file.oldFile || diffOldFile;
39283
+ let newFile = file.newFile || diffNewFile;
39284
+ let headerLines = [`diff --git ${diffOldFile} ${diffNewFile}`];
39285
+ if (Array.isArray(file.metadataLines) && file.metadataLines.length > 0) {
39286
+ headerLines.push(...file.metadataLines);
39287
+ }
39288
+ headerLines.push(`--- ${oldFile}`, `+++ ${newFile}`);
39289
+ return headerLines.join("\n");
39290
+ }
39291
+ function formatHunk(hunk) {
39292
+ let lines = hunk.lines.map((l) => l.content).join("\n");
39293
+ return `${hunk.header}
39294
+ ${lines}`;
39295
+ }
39296
+
39297
+ // ../../packages/git/src/staging.ts
39298
+ async function stageFile(path) {
39299
+ await runGit(["add", path]);
39300
+ }
39301
+ async function resetStaging() {
39302
+ await runGit(["reset", "HEAD"]);
39303
+ }
39304
+ async function validatePatch(patch) {
39305
+ const proc = Bun.spawn(["git", "apply", "--cached", "--check"], {
39306
+ stdin: "pipe",
39307
+ stdout: "pipe",
39308
+ stderr: "pipe"
39309
+ });
39310
+ proc.stdin.write(patch);
39311
+ proc.stdin.end();
39312
+ const code = await proc.exited;
39313
+ return code === 0;
39314
+ }
39315
+ async function applyPatch(patch) {
39316
+ const proc = Bun.spawn(["git", "apply", "--cached"], {
39317
+ stdin: "pipe",
39318
+ stdout: "pipe",
39319
+ stderr: "pipe"
39320
+ });
39321
+ proc.stdin.write(patch);
39322
+ proc.stdin.end();
39323
+ const stderr = await new Response(proc.stderr).text();
39324
+ const code = await proc.exited;
39325
+ if (code !== 0) {
39326
+ throw new GitError(`Failed to apply patch: ${stderr.trim()}`);
39327
+ }
39328
+ }
39329
+ function buildSelectivePatch(fullPatch, lineSelections) {
39330
+ const selectionMap = /* @__PURE__ */ new Map();
39331
+ for (const sel of lineSelections) {
39332
+ const existing = selectionMap.get(sel.hunkIndex);
39333
+ if (existing) {
39334
+ for (const idx of sel.lineIndices) existing.add(idx);
39335
+ } else {
39336
+ selectionMap.set(sel.hunkIndex, new Set(sel.lineIndices));
39337
+ }
39338
+ }
39339
+ const fileDiffs = parseDiff(fullPatch);
39340
+ if (fileDiffs.length === 0) return "";
39341
+ const fullHunkIds = [];
39342
+ const linePatches = [];
39343
+ for (const file of fileDiffs) {
39344
+ for (let i = 0; i < file.hunks.length; i++) {
39345
+ const hunk = file.hunks[i];
39346
+ const selectedIndices = selectionMap.get(i);
39347
+ if (!selectedIndices) continue;
39348
+ const changeLineIndices = [];
39349
+ let changeIdx = 0;
39350
+ for (let li = 0; li < hunk.lines.length; li++) {
39351
+ const line = hunk.lines[li];
39352
+ if (line.type === "added" || line.type === "removed") {
39353
+ changeIdx++;
39354
+ if (selectedIndices.has(li)) {
39355
+ changeLineIndices.push(changeIdx);
39356
+ }
39357
+ }
39358
+ }
39359
+ const totalChangeLines = hunk.lines.filter(
39360
+ (l) => l.type === "added" || l.type === "removed"
39361
+ ).length;
39362
+ if (changeLineIndices.length === totalChangeLines) {
39363
+ fullHunkIds.push(hunk.id);
39364
+ } else if (changeLineIndices.length > 0) {
39365
+ const patch = buildPatchFromLines(
39366
+ fileDiffs,
39367
+ hunk.id,
39368
+ changeLineIndices
39369
+ );
39370
+ linePatches.push(patch);
39371
+ }
39372
+ }
39373
+ }
39374
+ let result = "";
39375
+ if (fullHunkIds.length > 0) {
39376
+ result += buildPatchFromHunks(fileDiffs, fullHunkIds);
39377
+ }
39378
+ for (const p of linePatches) {
39379
+ result += p;
39380
+ }
39381
+ return result;
39382
+ }
39383
+ async function stageHunks(fullPatch, hunkIndices) {
39384
+ const fileDiffs = parseDiff(fullPatch);
39385
+ if (fileDiffs.length === 0) return;
39386
+ const hunkIds = [];
39387
+ for (const file of fileDiffs) {
39388
+ for (let i = 0; i < file.hunks.length; i++) {
39389
+ if (hunkIndices.includes(i)) {
39390
+ hunkIds.push(file.hunks[i].id);
39391
+ }
39392
+ }
39393
+ }
39394
+ if (hunkIds.length === 0) return;
39395
+ const patch = buildPatchFromHunks(fileDiffs, hunkIds);
39396
+ if (!patch.trim()) return;
39397
+ const valid = await validatePatch(patch);
39398
+ if (!valid) {
39399
+ throw new GitError("Generated patch is invalid");
39400
+ }
39401
+ await applyPatch(patch);
39402
+ }
39403
+ async function stageLines(fullPatch, lineSelections) {
39404
+ const patch = buildSelectivePatch(fullPatch, lineSelections);
39405
+ if (!patch) return;
39406
+ const valid = await validatePatch(patch);
39407
+ if (!valid) {
39408
+ throw new GitError("Generated patch is invalid");
39409
+ }
39410
+ await applyPatch(patch);
39411
+ }
39412
+
38951
39413
  // ../../packages/git/src/index.ts
38952
39414
  var MAX_FILE_CONTENT_CHARS = 1e4;
38953
39415
  var MAX_FILES_TO_INCLUDE = 8;
@@ -38980,6 +39442,75 @@ async function getStagedChanges() {
38980
39442
  });
38981
39443
  return { rawDiff, files, isEmpty: false };
38982
39444
  }
39445
+ var BINARY_CHECK_BYTES = 8e3;
39446
+ function isBinaryContent(content) {
39447
+ const sample = content.slice(0, BINARY_CHECK_BYTES);
39448
+ return sample.includes("\0");
39449
+ }
39450
+ async function getAllChanges() {
39451
+ const rawDiff = await runGit(["diff"]);
39452
+ const untrackedOutput = await runGit([
39453
+ "ls-files",
39454
+ "--others",
39455
+ "--exclude-standard"
39456
+ ]);
39457
+ const untrackedPaths = untrackedOutput.trim().split("\n").filter(Boolean);
39458
+ if (!rawDiff.trim() && untrackedPaths.length === 0) {
39459
+ return { rawDiff: "", trackedFiles: [], untrackedFiles: [], isEmpty: true };
39460
+ }
39461
+ let trackedFiles = [];
39462
+ if (rawDiff.trim()) {
39463
+ const numstatOutput = await runGit(["diff", "--numstat"]);
39464
+ const nameStatusOutput = await runGit(["diff", "--name-status"]);
39465
+ const numstats = numstatOutput.trim().split("\n").filter(Boolean).map(parseNumstat);
39466
+ const nameStatuses = nameStatusOutput.trim().split("\n").filter(Boolean).map(parseNameStatus);
39467
+ const numstatByPath = new Map(numstats.map((n) => [n.path, n]));
39468
+ const patchByPath = extractFilePatches(rawDiff);
39469
+ trackedFiles = nameStatuses.map((ns) => {
39470
+ const nums = numstatByPath.get(ns.path) ?? {
39471
+ additions: 0,
39472
+ deletions: 0
39473
+ };
39474
+ const patchEntry = patchByPath.get(ns.path) ?? {
39475
+ patch: "",
39476
+ isBinary: false
39477
+ };
39478
+ return {
39479
+ path: ns.path,
39480
+ previousPath: ns.previousPath,
39481
+ status: ns.status,
39482
+ additions: nums.additions,
39483
+ deletions: nums.deletions,
39484
+ patch: patchEntry.patch,
39485
+ isBinary: patchEntry.isBinary
39486
+ };
39487
+ });
39488
+ }
39489
+ const untrackedFiles = await Promise.all(
39490
+ untrackedPaths.map(async (filePath) => {
39491
+ try {
39492
+ const content = await Bun.file(filePath).text();
39493
+ const binary = isBinaryContent(content);
39494
+ return {
39495
+ path: filePath,
39496
+ content: binary ? "" : content.slice(0, MAX_FILE_CONTENT_CHARS),
39497
+ isBinary: binary
39498
+ };
39499
+ } catch {
39500
+ return { path: filePath, content: "", isBinary: false };
39501
+ }
39502
+ })
39503
+ );
39504
+ return {
39505
+ rawDiff,
39506
+ trackedFiles,
39507
+ untrackedFiles,
39508
+ isEmpty: false
39509
+ };
39510
+ }
39511
+ async function getFileDiff(path) {
39512
+ return runGit(["diff", "--", path]);
39513
+ }
38983
39514
  async function readStagedFiles(files) {
38984
39515
  const eligible = files.filter((f) => f.status !== "deleted" && !f.isBinary).slice(0, MAX_FILES_TO_INCLUDE);
38985
39516
  const results = await Promise.all(
@@ -39692,13 +40223,929 @@ async function logoutCommand() {
39692
40223
  process.exit(exitCode);
39693
40224
  }
39694
40225
 
39695
- // src/commands/whoami.tsx
39696
- var import_react38 = __toESM(require_react(), 1);
40226
+ // src/commands/split.ts
40227
+ var import_react40 = __toESM(require_react(), 1);
40228
+
40229
+ // src/ui/split-app.tsx
40230
+ var import_react39 = __toESM(require_react(), 1);
40231
+
40232
+ // src/ui/components/diff-stats.tsx
39697
40233
  var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
40234
+ function DiffStats({
40235
+ additions,
40236
+ deletions,
40237
+ showBar = false
40238
+ }) {
40239
+ if (!showBar) {
40240
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Box_default, { gap: 0, children: [
40241
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Text, { color: "green", bold: true, children: [
40242
+ "+",
40243
+ additions
40244
+ ] }),
40245
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { dimColor: true, children: " / " }),
40246
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Text, { color: "red", bold: true, children: [
40247
+ "-",
40248
+ deletions
40249
+ ] })
40250
+ ] });
40251
+ }
40252
+ const total = additions + deletions;
40253
+ const barWidth = Math.min(total, 20);
40254
+ const addBar = total > 0 ? Math.max(1, Math.round(additions / total * barWidth)) : 0;
40255
+ const delBar = Math.max(0, barWidth - addBar);
40256
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Box_default, { gap: 1, children: [
40257
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Text, { color: "green", bold: true, children: [
40258
+ "+",
40259
+ additions
40260
+ ] }),
40261
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Text, { color: "red", bold: true, children: [
40262
+ "-",
40263
+ deletions
40264
+ ] }),
40265
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Box_default, { gap: 0, children: [
40266
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { color: "green", children: "\u2588".repeat(addBar) }),
40267
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { color: "red", children: "\u2588".repeat(delBar) })
40268
+ ] })
40269
+ ] });
40270
+ }
40271
+
40272
+ // src/ui/components/type-badge.tsx
40273
+ var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1);
40274
+ var TYPE_STYLES = {
40275
+ feat: { bg: "cyan", fg: "black" },
40276
+ fix: { bg: "red", fg: "white" },
40277
+ refactor: { bg: "yellow", fg: "black" },
40278
+ docs: { bg: "blue", fg: "white" },
40279
+ test: { bg: "magenta", fg: "white" },
40280
+ chore: { bg: "gray", fg: "white" },
40281
+ style: { bg: "green", fg: "black" },
40282
+ ci: { bg: "blue", fg: "white" },
40283
+ perf: { bg: "yellow", fg: "black" },
40284
+ build: { bg: "gray", fg: "white" },
40285
+ revert: { bg: "red", fg: "white" }
40286
+ };
40287
+ function TypeBadge({ type }) {
40288
+ const style = TYPE_STYLES[type] ?? { bg: "gray", fg: "white" };
40289
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Text, { backgroundColor: style.bg, color: style.fg, bold: true, children: ` ${type} ` });
40290
+ }
40291
+
40292
+ // src/ui/components/commit-card.tsx
40293
+ var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1);
40294
+ function formatSelection(f) {
40295
+ if (f.selection === "all") return "all";
40296
+ return f.selection.map((h) => `h${h.hunkIndex}`).join(",");
40297
+ }
40298
+ function CommitCard(props) {
40299
+ const borderColor = props.isSkipped ? "yellow" : "cyan";
40300
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
40301
+ Box_default,
40302
+ {
40303
+ flexDirection: "column",
40304
+ borderStyle: "bold",
40305
+ borderColor,
40306
+ paddingX: 2,
40307
+ paddingY: 1,
40308
+ marginBottom: 0,
40309
+ children: [
40310
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Box_default, { gap: 1, alignItems: "center", children: [
40311
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Text, { dimColor: true, bold: true, children: [
40312
+ String(props.index).padStart(String(props.total).length),
40313
+ "/",
40314
+ props.total
40315
+ ] }),
40316
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TypeBadge, { type: props.type }),
40317
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Text, { bold: true, color: "white", children: props.description })
40318
+ ] }),
40319
+ props.scope && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box_default, { marginLeft: 5, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Text, { dimColor: true, italic: true, children: [
40320
+ "scope: ",
40321
+ props.scope
40322
+ ] }) }),
40323
+ props.isSkipped && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Text, { backgroundColor: "yellow", color: "black", bold: true, children: [
40324
+ " ",
40325
+ "PULADO",
40326
+ " "
40327
+ ] }) }),
40328
+ !props.isSkipped && props.body && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box_default, { marginTop: 1, marginLeft: 2, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Text, { color: "white", children: props.body }) }),
40329
+ !props.isSkipped && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box_default, { flexDirection: "column", marginTop: 1, children: props.files.map((f) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Box_default, { gap: 1, marginLeft: 1, children: [
40330
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Text, { color: "cyan", bold: true, children: "\u25B8" }),
40331
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Text, { children: f.path }),
40332
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(Text, { dimColor: true, children: [
40333
+ "[",
40334
+ formatSelection(f),
40335
+ "]"
40336
+ ] })
40337
+ ] }, f.path)) }),
40338
+ !props.isSkipped && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Box_default, { marginTop: 1, marginLeft: 1, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
40339
+ DiffStats,
40340
+ {
40341
+ additions: props.additions,
40342
+ deletions: props.deletions,
40343
+ showBar: true
40344
+ }
40345
+ ) })
40346
+ ]
40347
+ }
40348
+ );
40349
+ }
40350
+
40351
+ // src/ui/components/commit-row.tsx
40352
+ var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1);
40353
+ function CommitRow(props) {
40354
+ const pad = String(props.total).length;
40355
+ const num = `${String(props.index).padStart(pad)}/${props.total}`;
40356
+ if (props.isSkipped) {
40357
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Box_default, { gap: 1, marginLeft: 2, children: [
40358
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { dimColor: true, children: num }),
40359
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { dimColor: true, strikethrough: true, children: props.description }),
40360
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Text, { backgroundColor: "yellow", color: "black", children: [
40361
+ " ",
40362
+ "skip",
40363
+ " "
40364
+ ] })
40365
+ ] });
40366
+ }
40367
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Box_default, { gap: 1, marginLeft: 2, children: [
40368
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { dimColor: true, children: num }),
40369
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(TypeBadge, { type: props.type }),
40370
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Text, { dimColor: true, children: props.description }),
40371
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DiffStats, { additions: props.additions, deletions: props.deletions })
40372
+ ] });
40373
+ }
40374
+
40375
+ // src/ui/components/diff-viewer.tsx
40376
+ var import_react38 = __toESM(require_react(), 1);
40377
+ var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1);
40378
+ function DiffViewer({ filePath, patch, onClose }) {
40379
+ const [scrollOffset, setScrollOffset] = (0, import_react38.useState)(0);
40380
+ const termHeight = process.stdout.rows || 24;
40381
+ use_input_default((input, key) => {
40382
+ if (input === "q" || input === "d" || key.escape) {
40383
+ onClose();
40384
+ return;
40385
+ }
40386
+ if (key.upArrow || input === "k") {
40387
+ setScrollOffset((prev) => Math.max(0, prev - 1));
40388
+ }
40389
+ if (key.downArrow || input === "j") {
40390
+ setScrollOffset((prev) => prev + 1);
40391
+ }
40392
+ if (input === " " || key.pageDown) {
40393
+ setScrollOffset((prev) => prev + (termHeight - 5));
40394
+ }
40395
+ if (input === "u" || key.pageUp) {
40396
+ setScrollOffset((prev) => Math.max(0, prev - (termHeight - 5)));
40397
+ }
40398
+ if (input === "g") {
40399
+ setScrollOffset(0);
40400
+ }
40401
+ });
40402
+ const allLines = patch.split("\n");
40403
+ const contentLines = [];
40404
+ for (const line of allLines) {
40405
+ if (line.startsWith("diff --git")) {
40406
+ const match = line.match(/^diff --git a\/.+ b\/(.+)$/);
40407
+ const file = match?.[1] ?? line;
40408
+ contentLines.push(`__FILE__${file}`);
40409
+ } else if (line.startsWith("index ") || line.startsWith("--- ") || line.startsWith("+++ ") || line.startsWith("old mode") || line.startsWith("new mode") || line.startsWith("new file") || line.startsWith("deleted file") || line.startsWith("similarity")) {
40410
+ } else {
40411
+ contentLines.push(line);
40412
+ }
40413
+ }
40414
+ const totalLines = contentLines.length;
40415
+ const viewportHeight = Math.max(1, termHeight - 5);
40416
+ const maxScroll = Math.max(0, totalLines - viewportHeight);
40417
+ const clamped = Math.min(scrollOffset, maxScroll);
40418
+ const visibleLines = contentLines.slice(clamped, clamped + viewportHeight);
40419
+ const scrollPercent = maxScroll > 0 ? Math.round(clamped / maxScroll * 100) : 100;
40420
+ const termWidth = process.stdout.columns || 80;
40421
+ const fileCount = contentLines.filter((l) => l.startsWith("__FILE__")).length;
40422
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Box_default, { flexDirection: "column", children: [
40423
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Box_default, { children: [
40424
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { backgroundColor: "cyan", color: "black", bold: true, children: [
40425
+ " ",
40426
+ "DIFF",
40427
+ " "
40428
+ ] }),
40429
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { bold: true, children: [
40430
+ " ",
40431
+ filePath,
40432
+ " "
40433
+ ] }),
40434
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { dimColor: true, children: [
40435
+ "\xB7 ",
40436
+ fileCount > 1 ? `${fileCount} arquivos \xB7 ` : "",
40437
+ totalLines,
40438
+ " linhas \xB7 ",
40439
+ scrollPercent,
40440
+ "%"
40441
+ ] })
40442
+ ] }),
40443
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { dimColor: true, children: "\u2500".repeat(Math.min(termWidth, 80)) }),
40444
+ visibleLines.map((line, i) => {
40445
+ const key = `dl-${clamped + i}`;
40446
+ if (line.startsWith("__FILE__")) {
40447
+ const file = line.slice(8);
40448
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Box_default, { flexDirection: "column", marginTop: i > 0 ? 1 : 0, children: [
40449
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { dimColor: true, children: "\u2500".repeat(Math.min(termWidth, 80)) }),
40450
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Box_default, { gap: 1, children: [
40451
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { backgroundColor: "blue", color: "white", bold: true, children: [
40452
+ " ",
40453
+ "FILE",
40454
+ " "
40455
+ ] }),
40456
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { bold: true, color: "white", children: file })
40457
+ ] }),
40458
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { dimColor: true, children: "\u2500".repeat(Math.min(termWidth, 80)) })
40459
+ ] }, key);
40460
+ }
40461
+ const num = String(clamped + i + 1).padStart(4);
40462
+ if (line.startsWith("@@")) {
40463
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { color: "cyan", dimColor: true, children: [
40464
+ " ",
40465
+ " ",
40466
+ line
40467
+ ] }, key);
40468
+ }
40469
+ if (line.startsWith("+")) {
40470
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { color: "green", children: [
40471
+ num,
40472
+ " ",
40473
+ line
40474
+ ] }, key);
40475
+ }
40476
+ if (line.startsWith("-")) {
40477
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { color: "red", children: [
40478
+ num,
40479
+ " ",
40480
+ line
40481
+ ] }, key);
40482
+ }
40483
+ if (line.startsWith("\\")) {
40484
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { dimColor: true, children: [
40485
+ " ",
40486
+ line
40487
+ ] }, key);
40488
+ }
40489
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { dimColor: true, children: [
40490
+ num,
40491
+ " ",
40492
+ line
40493
+ ] }, key);
40494
+ }),
40495
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { dimColor: true, children: "\u2500".repeat(Math.min(termWidth, 80)) }),
40496
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Box_default, { gap: 1, children: [
40497
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { backgroundColor: "gray", color: "white", bold: true, children: [
40498
+ " ",
40499
+ "\u2191\u2193",
40500
+ " "
40501
+ ] }),
40502
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { dimColor: true, children: "rolar" }),
40503
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { backgroundColor: "gray", color: "white", bold: true, children: [
40504
+ " ",
40505
+ "space",
40506
+ " "
40507
+ ] }),
40508
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { dimColor: true, children: "p\xE1gina" }),
40509
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { backgroundColor: "gray", color: "white", bold: true, children: [
40510
+ " ",
40511
+ "g",
40512
+ " "
40513
+ ] }),
40514
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { dimColor: true, children: "topo" }),
40515
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { backgroundColor: "gray", color: "white", bold: true, children: [
40516
+ " ",
40517
+ "q",
40518
+ " "
40519
+ ] }),
40520
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Text, { dimColor: true, children: "sair" }),
40521
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(Text, { dimColor: true, children: [
40522
+ " ",
40523
+ "\u2502 ",
40524
+ clamped + 1,
40525
+ "-",
40526
+ Math.min(clamped + viewportHeight, totalLines),
40527
+ "/",
40528
+ totalLines
40529
+ ] })
40530
+ ] })
40531
+ ] });
40532
+ }
40533
+
40534
+ // src/ui/components/header.tsx
40535
+ var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1);
40536
+ function Header({ title = "RepoMind Split" }) {
40537
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Box_default, { flexDirection: "column", marginBottom: 1, children: [
40538
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Box_default, { gap: 1, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(Text, { backgroundColor: "cyan", color: "black", bold: true, children: [
40539
+ " ",
40540
+ "\u26A1 ",
40541
+ title,
40542
+ " "
40543
+ ] }) }),
40544
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Text, { dimColor: true, children: "\u2500".repeat(40) })
40545
+ ] });
40546
+ }
40547
+
40548
+ // src/ui/components/key-hints.tsx
40549
+ var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1);
40550
+ function KeyHints({ hints }) {
40551
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(Box_default, { marginTop: 1, gap: 0, flexWrap: "wrap", children: [
40552
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text, { dimColor: true, children: "\u2500".repeat(40) }),
40553
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Box_default, { gap: 1, marginTop: 0, children: hints.map((hint) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(Box_default, { gap: 0, children: [
40554
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Text, { backgroundColor: "gray", color: "white", bold: true, children: ` ${hint.key} ` }),
40555
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(Text, { dimColor: true, children: [
40556
+ " ",
40557
+ hint.label,
40558
+ " "
40559
+ ] })
40560
+ ] }, hint.key)) })
40561
+ ] });
40562
+ }
40563
+
40564
+ // src/ui/components/progress-bar.tsx
40565
+ var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
40566
+ function ProgressBar({ current, total, width = 24 }) {
40567
+ const ratio = total > 0 ? current / total : 0;
40568
+ const filled = Math.round(ratio * width);
40569
+ const empty = width - filled;
40570
+ const percent = Math.round(ratio * 100);
40571
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Box_default, { gap: 1, children: [
40572
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { color: "cyan", bold: true, children: "\u2501".repeat(filled) }),
40573
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { dimColor: true, children: "\u2500".repeat(empty) }),
40574
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Text, { bold: true, color: ratio >= 1 ? "green" : "cyan", children: [
40575
+ percent,
40576
+ "%"
40577
+ ] }),
40578
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(Text, { dimColor: true, children: [
40579
+ "(",
40580
+ current,
40581
+ "/",
40582
+ total,
40583
+ ")"
40584
+ ] })
40585
+ ] });
40586
+ }
40587
+
40588
+ // src/ui/components/step-list.tsx
40589
+ var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1);
40590
+ var STATUS_ICONS = {
40591
+ done: "\u25CF",
40592
+ active: "",
40593
+ pending: "\u25CB",
40594
+ error: "\u2717"
40595
+ };
40596
+ var STATUS_COLORS = {
40597
+ done: "green",
40598
+ active: "cyan",
40599
+ pending: void 0,
40600
+ error: "red"
40601
+ };
40602
+ function StepList({ steps }) {
40603
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Box_default, { flexDirection: "column", gap: 0, marginLeft: 1, children: steps.map((step, idx) => {
40604
+ const isLast = idx === steps.length - 1;
40605
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Box_default, { flexDirection: "column", children: [
40606
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Box_default, { gap: 1, children: [
40607
+ step.status === "active" ? /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Text, { color: "cyan", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(build_default, { type: "dots" }) }) : /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
40608
+ Text,
40609
+ {
40610
+ color: STATUS_COLORS[step.status],
40611
+ dimColor: step.status === "pending",
40612
+ children: STATUS_ICONS[step.status]
40613
+ }
40614
+ ),
40615
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
40616
+ Text,
40617
+ {
40618
+ color: STATUS_COLORS[step.status],
40619
+ dimColor: step.status === "pending",
40620
+ bold: step.status === "active",
40621
+ children: step.label
40622
+ }
40623
+ ),
40624
+ step.detail && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(Text, { dimColor: true, children: [
40625
+ "\xB7 ",
40626
+ step.detail
40627
+ ] })
40628
+ ] }),
40629
+ !isLast && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Box_default, { marginLeft: 0, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Text, { dimColor: true, children: "\u2502" }) })
40630
+ ] }, step.label);
40631
+ }) });
40632
+ }
40633
+
40634
+ // src/ui/split-app.tsx
40635
+ var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1);
40636
+ var TERMINAL_PHASES5 = [
40637
+ "done",
40638
+ "aborted",
40639
+ "error-auth",
40640
+ "error-empty",
40641
+ "error-git",
40642
+ "error-api",
40643
+ "error-plan",
40644
+ "error-commit"
40645
+ ];
40646
+ function getAllLineIndices(hunksMap, path, hunkIndex) {
40647
+ const hunks = hunksMap.get(path);
40648
+ if (!hunks) return [];
40649
+ const hunk = hunks.find(
40650
+ (h) => h.startLineOld === hunkIndex || hunks.indexOf(h) === hunkIndex
40651
+ );
40652
+ if (!hunk) return [];
40653
+ const indices = [];
40654
+ for (let i = 0; i < hunk.lines.length; i++) {
40655
+ const line = hunk.lines[i];
40656
+ if (line.type === "addition" || line.type === "deletion") {
40657
+ indices.push(i);
40658
+ }
40659
+ }
40660
+ return indices;
40661
+ }
40662
+ function computeGroupStats(files, originalFiles) {
40663
+ let additions = 0;
40664
+ let deletions = 0;
40665
+ for (const ref of files) {
40666
+ const orig = originalFiles.find((f) => f.path === ref.path);
40667
+ if (!orig) continue;
40668
+ if (ref.selection === "all") {
40669
+ additions += orig.additions;
40670
+ deletions += orig.deletions;
40671
+ } else {
40672
+ additions += orig.additions;
40673
+ deletions += orig.deletions;
40674
+ }
40675
+ }
40676
+ return { additions, deletions };
40677
+ }
40678
+ function SplitApp({
40679
+ deps,
40680
+ onExit
40681
+ }) {
40682
+ const { exit } = use_app_default();
40683
+ const [phase, setPhase] = (0, import_react39.useState)("collecting");
40684
+ const [groups, setGroups] = (0, import_react39.useState)([]);
40685
+ const [selectedIndex, setSelectedIndex] = (0, import_react39.useState)(0);
40686
+ const [skippedGroups, setSkippedGroups] = (0, import_react39.useState)(/* @__PURE__ */ new Set());
40687
+ const [commitProgress, setCommitProgress] = (0, import_react39.useState)(0);
40688
+ const [errorMsg, setErrorMsg] = (0, import_react39.useState)("");
40689
+ const [originalFiles, setOriginalFiles] = (0, import_react39.useState)([]);
40690
+ const [hunksMap, setHunksMap] = (0, import_react39.useState)(/* @__PURE__ */ new Map());
40691
+ const [patchMap, setPatchMap] = (0, import_react39.useState)(/* @__PURE__ */ new Map());
40692
+ const [authToken, setAuthToken] = (0, import_react39.useState)("");
40693
+ (0, import_react39.useEffect)(() => {
40694
+ if (!TERMINAL_PHASES5.includes(phase)) return;
40695
+ const code = phase === "done" || phase === "aborted" ? 0 : 1;
40696
+ exit();
40697
+ onExit(code);
40698
+ }, [phase]);
40699
+ (0, import_react39.useEffect)(() => {
40700
+ async function run2() {
40701
+ const token = deps.readToken();
40702
+ if (!token) {
40703
+ setErrorMsg("N\xE3o autenticado. Execute repomind login primeiro.");
40704
+ setPhase("error-auth");
40705
+ return;
40706
+ }
40707
+ setAuthToken(token);
40708
+ let files;
40709
+ try {
40710
+ if (deps.useStaged) {
40711
+ const changes = await deps.getStagedChanges();
40712
+ if (changes.isEmpty) {
40713
+ setErrorMsg(
40714
+ "Nenhuma altera\xE7\xE3o encontrada. Use git add ou remova --staged."
40715
+ );
40716
+ setPhase("error-empty");
40717
+ return;
40718
+ }
40719
+ files = changes.files;
40720
+ } else {
40721
+ const changes = await deps.getAllChanges();
40722
+ if (changes.isEmpty) {
40723
+ setErrorMsg("Nenhuma altera\xE7\xE3o encontrada no reposit\xF3rio.");
40724
+ setPhase("error-empty");
40725
+ return;
40726
+ }
40727
+ files = [
40728
+ ...changes.trackedFiles,
40729
+ ...changes.untrackedFiles.map((uf) => ({
40730
+ path: uf.path,
40731
+ status: "added",
40732
+ additions: uf.content.split("\n").length,
40733
+ deletions: 0,
40734
+ patch: "",
40735
+ isBinary: uf.isBinary
40736
+ }))
40737
+ ];
40738
+ }
40739
+ } catch (e) {
40740
+ setErrorMsg(
40741
+ e instanceof GitError ? e.message : "Erro ao ler o reposit\xF3rio."
40742
+ );
40743
+ setPhase("error-git");
40744
+ return;
40745
+ }
40746
+ if (files.length === 0) {
40747
+ setErrorMsg("Nenhum arquivo com altera\xE7\xF5es encontrado.");
40748
+ setPhase("error-empty");
40749
+ return;
40750
+ }
40751
+ const hMap = /* @__PURE__ */ new Map();
40752
+ const pMap = /* @__PURE__ */ new Map();
40753
+ for (const file of files) {
40754
+ if (file.patch) {
40755
+ const hunks = deps.parseHunks(file.patch);
40756
+ hMap.set(file.path, hunks);
40757
+ pMap.set(file.path, file.patch);
40758
+ }
40759
+ }
40760
+ setOriginalFiles(files);
40761
+ setHunksMap(hMap);
40762
+ setPatchMap(pMap);
40763
+ const manifest = deps.buildSplitManifest(files, hMap);
40764
+ setPhase("analyzing");
40765
+ try {
40766
+ const body = { manifest };
40767
+ if (deps.fileConfig && Object.keys(deps.fileConfig).length > 0) {
40768
+ body.config = deps.fileConfig;
40769
+ }
40770
+ const result = await deps.apiPost(
40771
+ "/split/analyze",
40772
+ body,
40773
+ token
40774
+ );
40775
+ const sortedGroups = result.groups.sort((a, b) => a.order - b.order);
40776
+ setGroups(sortedGroups);
40777
+ setPhase("review");
40778
+ } catch (e) {
40779
+ if (e instanceof PlanLimitError) {
40780
+ setErrorMsg(
40781
+ `Limite do plano ${e.plan === "free" ? "Free" : "Pro"} atingido (${e.used}/${e.limit} commits este m\xEAs)
40782
+ \u2192 Fa\xE7a upgrade em https://app.repomind.dev/pricing`
40783
+ );
40784
+ setPhase("error-plan");
40785
+ } else if (e instanceof ApiError && e.status === 401) {
40786
+ setErrorMsg("Sess\xE3o expirada. Execute repomind login novamente.");
40787
+ setPhase("error-api");
40788
+ } else {
40789
+ const detail = e instanceof Error ? e.message : "Erro desconhecido";
40790
+ const verbose2 = process.argv.includes("--verbose") || process.argv.includes("-v") || !!process.env.REPOMIND_DEBUG;
40791
+ setErrorMsg(
40792
+ verbose2 ? `Falha ao analisar altera\xE7\xF5es: ${detail}` : "Falha ao analisar altera\xE7\xF5es. Tente novamente."
40793
+ );
40794
+ if (verbose2 && e instanceof Error && e.stack) {
40795
+ console.error(e.stack);
40796
+ }
40797
+ setPhase("error-api");
40798
+ }
40799
+ }
40800
+ }
40801
+ run2();
40802
+ }, []);
40803
+ use_input_default(
40804
+ (input, key) => {
40805
+ if (phase !== "review") return;
40806
+ if (key.upArrow || input === "k") {
40807
+ setSelectedIndex((prev) => Math.max(0, prev - 1));
40808
+ return;
40809
+ }
40810
+ if (key.downArrow || input === "j") {
40811
+ setSelectedIndex((prev) => Math.min(groups.length - 1, prev + 1));
40812
+ return;
40813
+ }
40814
+ if (input === "d") {
40815
+ setPhase("viewing-diff");
40816
+ return;
40817
+ }
40818
+ if (input === "s") {
40819
+ const groupId = groups[selectedIndex]?.groupId;
40820
+ if (groupId) {
40821
+ setSkippedGroups((prev) => {
40822
+ const next = new Set(prev);
40823
+ if (next.has(groupId)) {
40824
+ next.delete(groupId);
40825
+ } else {
40826
+ next.add(groupId);
40827
+ }
40828
+ return next;
40829
+ });
40830
+ }
40831
+ return;
40832
+ }
40833
+ if (key.return || input === "a") {
40834
+ startCommitting();
40835
+ return;
40836
+ }
40837
+ if (input === "q") {
40838
+ setPhase("aborted");
40839
+ }
40840
+ },
40841
+ { isActive: phase === "review" }
40842
+ );
40843
+ async function startCommitting() {
40844
+ setPhase("committing");
40845
+ setCommitProgress(0);
40846
+ const activeGroups2 = groups.filter((g) => !skippedGroups.has(g.groupId));
40847
+ if (activeGroups2.length === 0) {
40848
+ setPhase("aborted");
40849
+ return;
40850
+ }
40851
+ for (let i = 0; i < activeGroups2.length; i++) {
40852
+ const group = activeGroups2[i];
40853
+ try {
40854
+ await deps.resetStaging();
40855
+ for (const fileRef of group.files) {
40856
+ if (fileRef.selection === "all") {
40857
+ await deps.stageFile(fileRef.path);
40858
+ } else {
40859
+ const currentDiff = await deps.getFileDiff(fileRef.path);
40860
+ if (!currentDiff.trim()) {
40861
+ continue;
40862
+ }
40863
+ const currentHunks = deps.parseHunks(currentDiff);
40864
+ const originalHunks = hunksMap.get(fileRef.path) ?? [];
40865
+ const lineSelections = [];
40866
+ for (const hs of fileRef.selection) {
40867
+ const origHunk = originalHunks.find(
40868
+ (h) => h.index === hs.hunkIndex
40869
+ );
40870
+ if (!origHunk) continue;
40871
+ const wantedIndices = hs.lines === "all" ? getAllLineIndices(hunksMap, fileRef.path, hs.hunkIndex) : hs.lines;
40872
+ const wantedLines = wantedIndices.map((idx) => origHunk.lines[idx]).filter(Boolean);
40873
+ for (const curHunk of currentHunks) {
40874
+ const matchedIndices = [];
40875
+ for (const wanted of wantedLines) {
40876
+ for (let ci = 0; ci < curHunk.lines.length; ci++) {
40877
+ const curLine = curHunk.lines[ci];
40878
+ if (curLine.type === wanted.type && curLine.content === wanted.content && !matchedIndices.includes(ci)) {
40879
+ matchedIndices.push(ci);
40880
+ break;
40881
+ }
40882
+ }
40883
+ }
40884
+ if (matchedIndices.length > 0) {
40885
+ lineSelections.push({
40886
+ hunkIndex: curHunk.index,
40887
+ lineIndices: matchedIndices
40888
+ });
40889
+ }
40890
+ }
40891
+ }
40892
+ if (lineSelections.length > 0) {
40893
+ await deps.stageLines(currentDiff, lineSelections);
40894
+ }
40895
+ }
40896
+ }
40897
+ const code = await deps.runGitCommit(group.message);
40898
+ if (code !== 0) {
40899
+ setErrorMsg(
40900
+ `git commit falhou no grupo ${i + 1}/${activeGroups2.length}: "${group.message}"`
40901
+ );
40902
+ setPhase("error-commit");
40903
+ return;
40904
+ }
40905
+ if (authToken) {
40906
+ deps.apiPost("/split/confirm", { group }, authToken).catch((err) => {
40907
+ console.error("[split-confirm] failed:", err.message ?? err);
40908
+ });
40909
+ }
40910
+ setCommitProgress(i + 1);
40911
+ } catch (e) {
40912
+ const detail = e instanceof Error ? e.message : "Erro desconhecido";
40913
+ setErrorMsg(`Erro no grupo ${i + 1}/${activeGroups2.length}: ${detail}`);
40914
+ setPhase("error-commit");
40915
+ return;
40916
+ }
40917
+ }
40918
+ setPhase("done");
40919
+ }
40920
+ const activeGroups = groups.filter((g) => !skippedGroups.has(g.groupId));
40921
+ const activeGroupCount = activeGroups.length;
40922
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Box_default, { flexDirection: "column", gap: 0, paddingTop: 1, children: [
40923
+ phase === "collecting" && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
40924
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Header, {}),
40925
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
40926
+ StepList,
40927
+ {
40928
+ steps: [{ label: "Coletando altera\xE7\xF5es", status: "active" }]
40929
+ }
40930
+ )
40931
+ ] }),
40932
+ phase === "analyzing" && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
40933
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Header, {}),
40934
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
40935
+ StepList,
40936
+ {
40937
+ steps: [
40938
+ {
40939
+ label: "Altera\xE7\xF5es coletadas",
40940
+ status: "done",
40941
+ detail: `${originalFiles.length} arquivos`
40942
+ },
40943
+ { label: "Analisando com IA", status: "active" }
40944
+ ]
40945
+ }
40946
+ )
40947
+ ] }),
40948
+ phase === "review" && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
40949
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Header, {}),
40950
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box_default, { marginBottom: 1, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Text, { bold: true, children: [
40951
+ groups.length,
40952
+ " commits sugeridos"
40953
+ ] }) }),
40954
+ groups.map((group, idx) => {
40955
+ const isSelected = idx === selectedIndex;
40956
+ const isSkipped = skippedGroups.has(group.groupId);
40957
+ const stats = computeGroupStats(group.files, originalFiles);
40958
+ if (isSelected) {
40959
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
40960
+ CommitCard,
40961
+ {
40962
+ index: idx + 1,
40963
+ total: groups.length,
40964
+ type: group.type,
40965
+ scope: group.scope,
40966
+ description: group.description,
40967
+ body: group.body,
40968
+ files: group.files,
40969
+ additions: stats.additions,
40970
+ deletions: stats.deletions,
40971
+ isSkipped
40972
+ },
40973
+ group.groupId
40974
+ );
40975
+ }
40976
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
40977
+ CommitRow,
40978
+ {
40979
+ index: idx + 1,
40980
+ total: groups.length,
40981
+ type: group.type,
40982
+ description: group.description,
40983
+ additions: stats.additions,
40984
+ deletions: stats.deletions,
40985
+ isSkipped,
40986
+ isSelected: false
40987
+ },
40988
+ group.groupId
40989
+ );
40990
+ }),
40991
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
40992
+ KeyHints,
40993
+ {
40994
+ hints: [
40995
+ { key: "\u2191\u2193", label: "navegar" },
40996
+ { key: "d", label: "diff" },
40997
+ { key: "enter", label: "confirmar" },
40998
+ { key: "s", label: "pular" },
40999
+ { key: "q", label: "abortar" }
41000
+ ]
41001
+ }
41002
+ )
41003
+ ] }),
41004
+ phase === "viewing-diff" && (() => {
41005
+ const group = groups[selectedIndex];
41006
+ if (!group) return null;
41007
+ const combinedPatch = group.files.map((f) => patchMap.get(f.path) ?? "").filter(Boolean).join("\n");
41008
+ const mainFile = group.files[0]?.path ?? "diff";
41009
+ const label = group.files.length > 1 ? `${mainFile} (+${group.files.length - 1} arquivos)` : mainFile;
41010
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
41011
+ DiffViewer,
41012
+ {
41013
+ filePath: label,
41014
+ patch: combinedPatch,
41015
+ onClose: () => setPhase("review")
41016
+ }
41017
+ );
41018
+ })(),
41019
+ phase === "committing" && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
41020
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Header, {}),
41021
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
41022
+ StepList,
41023
+ {
41024
+ steps: activeGroups.map((g, i) => ({
41025
+ label: g.message,
41026
+ status: i < commitProgress ? "done" : i === commitProgress ? "active" : "pending"
41027
+ }))
41028
+ }
41029
+ ),
41030
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box_default, { marginTop: 1, marginLeft: 1, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(ProgressBar, { current: commitProgress, total: activeGroupCount }) })
41031
+ ] }),
41032
+ phase === "done" && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
41033
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Header, {}),
41034
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
41035
+ StepList,
41036
+ {
41037
+ steps: activeGroups.map((g) => ({
41038
+ label: g.message,
41039
+ status: "done"
41040
+ }))
41041
+ }
41042
+ ),
41043
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Box_default, { marginTop: 1, gap: 1, children: [
41044
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Text, { color: "green", children: "\u2728" }),
41045
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Text, { bold: true, color: "green", children: [
41046
+ activeGroupCount,
41047
+ " commit",
41048
+ activeGroupCount !== 1 ? "s" : "",
41049
+ " ",
41050
+ "realizado",
41051
+ activeGroupCount !== 1 ? "s" : "",
41052
+ " com sucesso"
41053
+ ] })
41054
+ ] })
41055
+ ] }),
41056
+ phase === "aborted" && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
41057
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Header, {}),
41058
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Box_default, { gap: 1, children: [
41059
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Text, { color: "yellow", children: "\u25C6" }),
41060
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Text, { dimColor: true, children: "Abortado. Nenhum commit foi feito." })
41061
+ ] })
41062
+ ] }),
41063
+ phase === "error-commit" && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
41064
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Header, {}),
41065
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
41066
+ StepList,
41067
+ {
41068
+ steps: activeGroups.map((g, i) => ({
41069
+ label: g.message,
41070
+ status: i < commitProgress ? "done" : i === commitProgress ? "error" : "pending"
41071
+ }))
41072
+ }
41073
+ ),
41074
+ commitProgress > 0 && commitProgress < activeGroupCount && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Box_default, { marginTop: 1, gap: 1, children: [
41075
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Text, { color: "yellow", children: "\u25B2" }),
41076
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Text, { color: "yellow", children: [
41077
+ commitProgress,
41078
+ "/",
41079
+ activeGroupCount,
41080
+ " commits realizados antes do erro"
41081
+ ] })
41082
+ ] }),
41083
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Box_default, { gap: 1, marginTop: commitProgress > 0 ? 0 : 1, children: [
41084
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Text, { color: "red", children: "\u2717" }),
41085
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Text, { color: "red", children: errorMsg })
41086
+ ] })
41087
+ ] }),
41088
+ (phase === "error-auth" || phase === "error-empty" || phase === "error-git" || phase === "error-api" || phase === "error-plan") && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
41089
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Header, {}),
41090
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(Box_default, { gap: 1, children: [
41091
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Text, { color: "red", children: "\u2717" }),
41092
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Text, { color: "red", children: errorMsg })
41093
+ ] })
41094
+ ] }),
41095
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(Box_default, { marginTop: 1 })
41096
+ ] });
41097
+ }
41098
+
41099
+ // src/commands/split.ts
41100
+ async function runGitCommit2(message) {
41101
+ const proc = Bun.spawn(["git", "commit", "-m", message], {
41102
+ stdout: "inherit",
41103
+ stderr: "inherit"
41104
+ });
41105
+ return proc.exited;
41106
+ }
41107
+ async function splitCommand() {
41108
+ const fileConfig = await readRepoConfig();
41109
+ const useStaged = process.argv.includes("--staged");
41110
+ let exitCode = 0;
41111
+ const { waitUntilExit } = render_default(
41112
+ import_react40.default.createElement(SplitApp, {
41113
+ deps: {
41114
+ readToken,
41115
+ getAllChanges,
41116
+ getStagedChanges,
41117
+ parseHunks,
41118
+ buildSplitManifest,
41119
+ extractFilePatches,
41120
+ stageFile,
41121
+ stageLines,
41122
+ stageHunks,
41123
+ resetStaging,
41124
+ buildSelectivePatch,
41125
+ applyPatch,
41126
+ validatePatch,
41127
+ getFileDiff,
41128
+ apiPost: (path, body, tkn) => apiClient.post(path, body, tkn),
41129
+ runGitCommit: runGitCommit2,
41130
+ fileConfig,
41131
+ useStaged
41132
+ },
41133
+ onExit: (code) => {
41134
+ exitCode = code;
41135
+ }
41136
+ })
41137
+ );
41138
+ await waitUntilExit();
41139
+ process.exit(exitCode);
41140
+ }
41141
+
41142
+ // src/commands/whoami.tsx
41143
+ var import_react41 = __toESM(require_react(), 1);
41144
+ var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1);
39698
41145
  function WhoamiApp({ onExit }) {
39699
41146
  const token = readToken();
39700
41147
  const payload = token ? decodeTokenPayload(token) : null;
39701
- (0, import_react38.useEffect)(() => {
41148
+ (0, import_react41.useEffect)(() => {
39702
41149
  onExit(payload ? 0 : 1);
39703
41150
  }, [onExit, payload]);
39704
41151
  const expiresDate = payload ? new Date(payload.exp * 1e3).toLocaleDateString("pt-BR", {
@@ -39706,26 +41153,26 @@ function WhoamiApp({ onExit }) {
39706
41153
  month: "2-digit",
39707
41154
  year: "numeric"
39708
41155
  }) : null;
39709
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Box_default, { flexDirection: "column", paddingTop: 1, marginBottom: 1, children: [
39710
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Box_default, { marginBottom: 1, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { bold: true, color: "cyan", children: "RepoMind" }) }),
39711
- payload ? /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Box_default, { flexDirection: "column", gap: 0, children: [
39712
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Box_default, { gap: 1, children: [
39713
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { color: "green", children: "\u2713" }),
39714
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Text, { children: [
41156
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Box_default, { flexDirection: "column", paddingTop: 1, marginBottom: 1, children: [
41157
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Box_default, { marginBottom: 1, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text, { bold: true, color: "cyan", children: "RepoMind" }) }),
41158
+ payload ? /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Box_default, { flexDirection: "column", gap: 0, children: [
41159
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Box_default, { gap: 1, children: [
41160
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text, { color: "green", children: "\u2713" }),
41161
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Text, { children: [
39715
41162
  "Autenticado como",
39716
41163
  " ",
39717
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { bold: true, color: "white", children: payload.email })
41164
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text, { bold: true, color: "white", children: payload.email })
39718
41165
  ] })
39719
41166
  ] }),
39720
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Box_default, { gap: 1, paddingLeft: 2, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Text, { dimColor: true, children: [
41167
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Box_default, { gap: 1, paddingLeft: 2, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Text, { dimColor: true, children: [
39721
41168
  "Sess\xE3o v\xE1lida at\xE9 ",
39722
41169
  expiresDate
39723
41170
  ] }) })
39724
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Box_default, { gap: 1, children: [
39725
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { color: "yellow", children: "\u25C6" }),
39726
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Text, { dimColor: true, children: [
41171
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Box_default, { gap: 1, children: [
41172
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text, { color: "yellow", children: "\u25C6" }),
41173
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(Text, { dimColor: true, children: [
39727
41174
  "N\xE3o autenticado. Execute ",
39728
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { color: "white", children: "repomind login" }),
41175
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Text, { color: "white", children: "repomind login" }),
39729
41176
  "."
39730
41177
  ] })
39731
41178
  ] })
@@ -39734,7 +41181,7 @@ function WhoamiApp({ onExit }) {
39734
41181
  async function whoamiCommand() {
39735
41182
  let exitCode = 0;
39736
41183
  const { waitUntilExit } = render_default(
39737
- import_react38.default.createElement(WhoamiApp, {
41184
+ import_react41.default.createElement(WhoamiApp, {
39738
41185
  onExit: (code) => {
39739
41186
  exitCode = code;
39740
41187
  }
@@ -39777,6 +41224,9 @@ switch (command) {
39777
41224
  case "explain":
39778
41225
  run(explainCommand);
39779
41226
  break;
41227
+ case "split":
41228
+ run(splitCommand);
41229
+ break;
39780
41230
  default:
39781
41231
  run(helpCommand);
39782
41232
  break;