flavor-code 1.4.2 → 1.4.3-beta.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 (74) hide show
  1. package/README.md +28 -1
  2. package/README.zh-CN.md +28 -1
  3. package/dist/{app-4CUS3GEJ.js → app-G35YBHPR.js} +593 -536
  4. package/dist/apply-WOW3QU5I.js +51 -0
  5. package/dist/broker-cli-X5H46FZV.js +15 -0
  6. package/dist/check-CSKTV4O2.js +16 -0
  7. package/dist/chunk-3563SW4X.js +10513 -0
  8. package/dist/chunk-3UX2CGDW.js +1955 -0
  9. package/dist/chunk-4TMLXZVZ.js +75 -0
  10. package/dist/chunk-6F66UXBI.js +48 -0
  11. package/dist/{chunk-KMBDK4SN.js → chunk-6URQ7FIF.js} +24 -88
  12. package/dist/chunk-6X62CGMA.js +193 -0
  13. package/dist/chunk-7Y64WNBB.js +8930 -0
  14. package/dist/chunk-AA4QNKTF.js +501 -0
  15. package/dist/chunk-BDX777JR.js +11 -0
  16. package/dist/chunk-CVP5OUHD.js +103 -0
  17. package/dist/chunk-EWD7FWTH.js +14547 -0
  18. package/dist/chunk-FAJ6YDZK.js +630 -0
  19. package/dist/{chunk-N5MXHJKD.js → chunk-GTFP2R5I.js} +1 -1
  20. package/dist/{chunk-7YFHRORG.js → chunk-HGTCIHWA.js} +383 -172
  21. package/dist/chunk-IDJAHEG6.js +43501 -0
  22. package/dist/chunk-IQEEFDEE.js +389 -0
  23. package/dist/chunk-IU3UBETC.js +30 -0
  24. package/dist/chunk-K7UGGWJV.js +1003 -0
  25. package/dist/chunk-KRWWCVXA.js +74 -0
  26. package/dist/chunk-OKHV7CTB.js +482 -0
  27. package/dist/chunk-PULWAH6E.js +474 -0
  28. package/dist/chunk-PZ5NKRVA.js +85 -0
  29. package/dist/chunk-RBAZLFKB.js +1022 -0
  30. package/dist/chunk-RV3EXUXM.js +30 -0
  31. package/dist/chunk-SJUIIHIA.js +2130 -0
  32. package/dist/{chunk-W2TIY6JY.js → chunk-T6RE76D2.js} +1993 -493
  33. package/dist/chunk-TIEOVQW6.js +61 -0
  34. package/dist/chunk-WLZUAVVU.js +15 -0
  35. package/dist/chunk-X442CJJH.js +114 -0
  36. package/dist/{chunk-RAYH6K2H.js → chunk-Y7EH4NVO.js} +1 -1
  37. package/dist/{chunk-S32JRDZK.js → chunk-ZKKVSR37.js} +6 -1
  38. package/dist/{claude-ink-VQU3C5UL.js → claude-ink-BE56DB6N.js} +9 -4
  39. package/dist/cli-3MF6EL2H.js +163 -0
  40. package/dist/cli-main.js +3805 -473
  41. package/dist/cli.js +50 -4
  42. package/dist/config/load.d.ts +8 -0
  43. package/dist/config/schema.d.ts +11 -0
  44. package/dist/context/manager.d.ts +2 -0
  45. package/dist/desktop/main.js +4299 -1150
  46. package/dist/desktop/preload.cjs +30 -0
  47. package/dist/desktop-renderer/assets/index-BWklSoOO.css +1 -0
  48. package/dist/desktop-renderer/assets/index-DCqIrF1S.js +153 -0
  49. package/dist/desktop-renderer/assets/{interactive-terminal-ouQQ3brz.js → interactive-terminal-B6GbpzIn.js} +1 -1
  50. package/dist/desktop-renderer/index.html +2 -2
  51. package/dist/doctor-OHCGK52S.js +20 -0
  52. package/dist/load-QK6CMLDF.js +25 -0
  53. package/dist/log-ATFIPRNU.js +19 -0
  54. package/dist/manager-5SI4MPES.js +191 -0
  55. package/dist/models/anthropic.d.ts +3 -0
  56. package/dist/node-LOIXT44J.js +879 -0
  57. package/dist/plugin-worker-entry.js +1 -1
  58. package/dist/production-6DIZ6YLQ.js +46 -0
  59. package/dist/production.d.ts +28 -1
  60. package/dist/project-3QXE22TG.js +11 -0
  61. package/dist/react-M6JGXSJZ.js +7 -0
  62. package/dist/recorder-FAGJJH3N.js +11 -0
  63. package/dist/sdk/index.js +30 -8
  64. package/dist/server-2KLKPHPL.js +11 -0
  65. package/dist/session/store.d.ts +1 -0
  66. package/dist/store-ZIHN6363.js +18 -0
  67. package/dist/usage-summary-G5FBOJLK.js +13 -0
  68. package/dist/write-stream-CGD57URC.js +77 -0
  69. package/package.json +1 -1
  70. package/dist/chunk-B23V72YR.js +0 -170
  71. package/dist/chunk-QKND3FX7.js +0 -26103
  72. package/dist/desktop-renderer/assets/index-Bk6FYhyh.css +0 -1
  73. package/dist/desktop-renderer/assets/index-CPXrzFgv.js +0 -154
  74. package/dist/load-UPOG3XQR.js +0 -19
@@ -1,16 +1,94 @@
1
1
  #!/usr/bin/env node
2
- import { createRequire } from "node:module"; const require = createRequire(import.meta.url);
2
+ import { createRequire as createFlavorRequire } from "node:module"; const require = createFlavorRequire(import.meta.url);
3
+ import {
4
+ require_react
5
+ } from "./chunk-PULWAH6E.js";
6
+ import {
7
+ source_default
8
+ } from "./chunk-AA4QNKTF.js";
3
9
  import {
4
- execFileNoThrow,
5
10
  getGraphemeSegmenter,
6
- isEnvTruthy,
11
+ isEnvTruthy
12
+ } from "./chunk-TIEOVQW6.js";
13
+ import {
14
+ execFileNoThrow
15
+ } from "./chunk-IU3UBETC.js";
16
+ import {
17
+ require_semver
18
+ } from "./chunk-3UX2CGDW.js";
19
+ import {
7
20
  logError
8
- } from "./chunk-B23V72YR.js";
21
+ } from "./chunk-KRWWCVXA.js";
9
22
  import {
10
23
  __commonJS,
11
24
  __require,
12
25
  __toESM
13
- } from "./chunk-S32JRDZK.js";
26
+ } from "./chunk-ZKKVSR37.js";
27
+
28
+ // node_modules/react/cjs/react-compiler-runtime.production.js
29
+ var require_react_compiler_runtime_production = __commonJS({
30
+ "node_modules/react/cjs/react-compiler-runtime.production.js"(exports) {
31
+ "use strict";
32
+ var ReactSharedInternals = require_react().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
33
+ exports.c = function(size) {
34
+ return ReactSharedInternals.H.useMemoCache(size);
35
+ };
36
+ }
37
+ });
38
+
39
+ // node_modules/react/compiler-runtime.js
40
+ var require_compiler_runtime = __commonJS({
41
+ "node_modules/react/compiler-runtime.js"(exports, module) {
42
+ "use strict";
43
+ if (true) {
44
+ module.exports = require_react_compiler_runtime_production();
45
+ } else {
46
+ module.exports = null;
47
+ }
48
+ }
49
+ });
50
+
51
+ // node_modules/react/cjs/react-jsx-runtime.production.js
52
+ var require_react_jsx_runtime_production = __commonJS({
53
+ "node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
54
+ "use strict";
55
+ var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
56
+ var REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
57
+ function jsxProd(type, config, maybeKey) {
58
+ var key = null;
59
+ void 0 !== maybeKey && (key = "" + maybeKey);
60
+ void 0 !== config.key && (key = "" + config.key);
61
+ if ("key" in config) {
62
+ maybeKey = {};
63
+ for (var propName in config)
64
+ "key" !== propName && (maybeKey[propName] = config[propName]);
65
+ } else maybeKey = config;
66
+ config = maybeKey.ref;
67
+ return {
68
+ $$typeof: REACT_ELEMENT_TYPE,
69
+ type,
70
+ key,
71
+ ref: void 0 !== config ? config : null,
72
+ props: maybeKey
73
+ };
74
+ }
75
+ exports.Fragment = REACT_FRAGMENT_TYPE;
76
+ exports.jsx = jsxProd;
77
+ exports.jsxs = jsxProd;
78
+ }
79
+ });
80
+
81
+ // node_modules/react/jsx-runtime.js
82
+ var require_jsx_runtime = __commonJS({
83
+ "node_modules/react/jsx-runtime.js"(exports, module) {
84
+ "use strict";
85
+ if (true) {
86
+ module.exports = require_react_jsx_runtime_production();
87
+ } else {
88
+ module.exports = null;
89
+ }
90
+ }
91
+ });
14
92
 
15
93
  // node_modules/scheduler/cjs/scheduler.production.js
16
94
  var require_scheduler_production = __commonJS({
@@ -305,7 +383,7 @@ var require_react_reconciler_production = __commonJS({
305
383
  function createFiber(tag, pendingProps, key, mode) {
306
384
  return new FiberNode(tag, pendingProps, key, mode);
307
385
  }
308
- function noop3() {
386
+ function noop2() {
309
387
  }
310
388
  function formatProdErrorMessage(code) {
311
389
  var url = "https://react.dev/errors/" + code;
@@ -539,17 +617,17 @@ var require_react_reconciler_production = __commonJS({
539
617
  return lanes;
540
618
  }
541
619
  }
542
- function getNextLanes(root, wipLanes, rootHasPendingCommit) {
543
- var pendingLanes = root.pendingLanes;
620
+ function getNextLanes(root2, wipLanes, rootHasPendingCommit) {
621
+ var pendingLanes = root2.pendingLanes;
544
622
  if (0 === pendingLanes) return 0;
545
- var nextLanes = 0, suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes;
546
- root = root.warmLanes;
623
+ var nextLanes = 0, suspendedLanes = root2.suspendedLanes, pingedLanes = root2.pingedLanes;
624
+ root2 = root2.warmLanes;
547
625
  var nonIdlePendingLanes = pendingLanes & 134217727;
548
- 0 !== nonIdlePendingLanes ? (pendingLanes = nonIdlePendingLanes & ~suspendedLanes, 0 !== pendingLanes ? nextLanes = getHighestPriorityLanes(pendingLanes) : (pingedLanes &= nonIdlePendingLanes, 0 !== pingedLanes ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = nonIdlePendingLanes & ~root, 0 !== rootHasPendingCommit && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))))) : (nonIdlePendingLanes = pendingLanes & ~suspendedLanes, 0 !== nonIdlePendingLanes ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : 0 !== pingedLanes ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = pendingLanes & ~root, 0 !== rootHasPendingCommit && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))));
626
+ 0 !== nonIdlePendingLanes ? (pendingLanes = nonIdlePendingLanes & ~suspendedLanes, 0 !== pendingLanes ? nextLanes = getHighestPriorityLanes(pendingLanes) : (pingedLanes &= nonIdlePendingLanes, 0 !== pingedLanes ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = nonIdlePendingLanes & ~root2, 0 !== rootHasPendingCommit && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))))) : (nonIdlePendingLanes = pendingLanes & ~suspendedLanes, 0 !== nonIdlePendingLanes ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : 0 !== pingedLanes ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = pendingLanes & ~root2, 0 !== rootHasPendingCommit && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))));
549
627
  return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && (suspendedLanes = nextLanes & -nextLanes, rootHasPendingCommit = wipLanes & -wipLanes, suspendedLanes >= rootHasPendingCommit || 32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194048)) ? wipLanes : nextLanes;
550
628
  }
551
- function checkIfRootIsPrerendering(root, renderLanes2) {
552
- return 0 === (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & renderLanes2);
629
+ function checkIfRootIsPrerendering(root2, renderLanes2) {
630
+ return 0 === (root2.pendingLanes & ~(root2.suspendedLanes & ~root2.pingedLanes) & renderLanes2);
553
631
  }
554
632
  function computeExpirationTime(lane, currentTime) {
555
633
  switch (lane) {
@@ -602,21 +680,21 @@ var require_react_reconciler_production = __commonJS({
602
680
  for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial);
603
681
  return laneMap;
604
682
  }
605
- function markRootUpdated$1(root, updateLane) {
606
- root.pendingLanes |= updateLane;
607
- 268435456 !== updateLane && (root.suspendedLanes = 0, root.pingedLanes = 0, root.warmLanes = 0);
608
- }
609
- function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane, updatedLanes, suspendedRetryLanes) {
610
- var previouslyPendingLanes = root.pendingLanes;
611
- root.pendingLanes = remainingLanes;
612
- root.suspendedLanes = 0;
613
- root.pingedLanes = 0;
614
- root.warmLanes = 0;
615
- root.expiredLanes &= remainingLanes;
616
- root.entangledLanes &= remainingLanes;
617
- root.errorRecoveryDisabledLanes &= remainingLanes;
618
- root.shellSuspendCounter = 0;
619
- var entanglements = root.entanglements, expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates;
683
+ function markRootUpdated$1(root2, updateLane) {
684
+ root2.pendingLanes |= updateLane;
685
+ 268435456 !== updateLane && (root2.suspendedLanes = 0, root2.pingedLanes = 0, root2.warmLanes = 0);
686
+ }
687
+ function markRootFinished(root2, finishedLanes, remainingLanes, spawnedLane, updatedLanes, suspendedRetryLanes) {
688
+ var previouslyPendingLanes = root2.pendingLanes;
689
+ root2.pendingLanes = remainingLanes;
690
+ root2.suspendedLanes = 0;
691
+ root2.pingedLanes = 0;
692
+ root2.warmLanes = 0;
693
+ root2.expiredLanes &= remainingLanes;
694
+ root2.entangledLanes &= remainingLanes;
695
+ root2.errorRecoveryDisabledLanes &= remainingLanes;
696
+ root2.shellSuspendCounter = 0;
697
+ var entanglements = root2.entanglements, expirationTimes = root2.expirationTimes, hiddenUpdates = root2.hiddenUpdates;
620
698
  for (remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) {
621
699
  var index$5 = 31 - clz32(remainingLanes), lane = 1 << index$5;
622
700
  entanglements[index$5] = 0;
@@ -629,28 +707,28 @@ var require_react_reconciler_production = __commonJS({
629
707
  }
630
708
  remainingLanes &= ~lane;
631
709
  }
632
- 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);
633
- 0 !== suspendedRetryLanes && 0 === updatedLanes && 0 !== root.tag && (root.suspendedLanes |= suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
710
+ 0 !== spawnedLane && markSpawnedDeferredLane(root2, spawnedLane, 0);
711
+ 0 !== suspendedRetryLanes && 0 === updatedLanes && 0 !== root2.tag && (root2.suspendedLanes |= suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
634
712
  }
635
- function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
636
- root.pendingLanes |= spawnedLane;
637
- root.suspendedLanes &= ~spawnedLane;
713
+ function markSpawnedDeferredLane(root2, spawnedLane, entangledLanes) {
714
+ root2.pendingLanes |= spawnedLane;
715
+ root2.suspendedLanes &= ~spawnedLane;
638
716
  var spawnedLaneIndex = 31 - clz32(spawnedLane);
639
- root.entangledLanes |= spawnedLane;
640
- root.entanglements[spawnedLaneIndex] = root.entanglements[spawnedLaneIndex] | 1073741824 | entangledLanes & 261930;
717
+ root2.entangledLanes |= spawnedLane;
718
+ root2.entanglements[spawnedLaneIndex] = root2.entanglements[spawnedLaneIndex] | 1073741824 | entangledLanes & 261930;
641
719
  }
642
- function markRootEntangled(root, entangledLanes) {
643
- var rootEntangledLanes = root.entangledLanes |= entangledLanes;
644
- for (root = root.entanglements; rootEntangledLanes; ) {
720
+ function markRootEntangled(root2, entangledLanes) {
721
+ var rootEntangledLanes = root2.entangledLanes |= entangledLanes;
722
+ for (root2 = root2.entanglements; rootEntangledLanes; ) {
645
723
  var index$6 = 31 - clz32(rootEntangledLanes), lane = 1 << index$6;
646
- lane & entangledLanes | root[index$6] & entangledLanes && (root[index$6] |= entangledLanes);
724
+ lane & entangledLanes | root2[index$6] & entangledLanes && (root2[index$6] |= entangledLanes);
647
725
  rootEntangledLanes &= ~lane;
648
726
  }
649
727
  }
650
- function getBumpedLaneForHydration(root, renderLanes2) {
728
+ function getBumpedLaneForHydration(root2, renderLanes2) {
651
729
  var renderLane = renderLanes2 & -renderLanes2;
652
730
  renderLane = 0 !== (renderLane & 42) ? 1 : getBumpedLaneForHydrationByLane(renderLane);
653
- return 0 !== (renderLane & (root.suspendedLanes | renderLanes2)) ? 0 : renderLane;
731
+ return 0 !== (renderLane & (root2.suspendedLanes | renderLanes2)) ? 0 : renderLane;
654
732
  }
655
733
  function getBumpedLaneForHydrationByLane(lane) {
656
734
  switch (lane) {
@@ -1152,8 +1230,8 @@ var require_react_reconciler_production = __commonJS({
1152
1230
  }
1153
1231
  function noop$1() {
1154
1232
  }
1155
- function ensureRootIsScheduled(root) {
1156
- root !== lastScheduledRoot && null === root.next && (null === lastScheduledRoot ? firstScheduledRoot = lastScheduledRoot = root : lastScheduledRoot = lastScheduledRoot.next = root);
1233
+ function ensureRootIsScheduled(root2) {
1234
+ root2 !== lastScheduledRoot && null === root2.next && (null === lastScheduledRoot ? firstScheduledRoot = lastScheduledRoot = root2 : lastScheduledRoot = lastScheduledRoot.next = root2);
1157
1235
  mightHavePendingSyncWork = true;
1158
1236
  didScheduleMicrotask || (didScheduleMicrotask = true, scheduleImmediateRootScheduleTask());
1159
1237
  }
@@ -1162,25 +1240,25 @@ var require_react_reconciler_production = __commonJS({
1162
1240
  isFlushingWork = true;
1163
1241
  do {
1164
1242
  var didPerformSomeWork = false;
1165
- for (var root = firstScheduledRoot; null !== root; ) {
1243
+ for (var root2 = firstScheduledRoot; null !== root2; ) {
1166
1244
  if (!onlyLegacy)
1167
1245
  if (0 !== syncTransitionLanes) {
1168
- var pendingLanes = root.pendingLanes;
1246
+ var pendingLanes = root2.pendingLanes;
1169
1247
  if (0 === pendingLanes) var JSCompiler_inline_result = 0;
1170
1248
  else {
1171
- var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes;
1249
+ var suspendedLanes = root2.suspendedLanes, pingedLanes = root2.pingedLanes;
1172
1250
  JSCompiler_inline_result = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1;
1173
1251
  JSCompiler_inline_result &= pendingLanes & ~(suspendedLanes & ~pingedLanes);
1174
1252
  JSCompiler_inline_result = JSCompiler_inline_result & 201326741 ? JSCompiler_inline_result & 201326741 | 1 : JSCompiler_inline_result ? JSCompiler_inline_result | 2 : 0;
1175
1253
  }
1176
- 0 !== JSCompiler_inline_result && (didPerformSomeWork = true, performSyncWorkOnRoot(root, JSCompiler_inline_result));
1254
+ 0 !== JSCompiler_inline_result && (didPerformSomeWork = true, performSyncWorkOnRoot(root2, JSCompiler_inline_result));
1177
1255
  } else
1178
1256
  JSCompiler_inline_result = workInProgressRootRenderLanes, JSCompiler_inline_result = getNextLanes(
1179
- root,
1180
- root === workInProgressRoot ? JSCompiler_inline_result : 0,
1181
- null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout
1182
- ), 0 === (JSCompiler_inline_result & 3) || checkIfRootIsPrerendering(root, JSCompiler_inline_result) || (didPerformSomeWork = true, performSyncWorkOnRoot(root, JSCompiler_inline_result));
1183
- root = root.next;
1257
+ root2,
1258
+ root2 === workInProgressRoot ? JSCompiler_inline_result : 0,
1259
+ null !== root2.cancelPendingCommit || root2.timeoutHandle !== noTimeout
1260
+ ), 0 === (JSCompiler_inline_result & 3) || checkIfRootIsPrerendering(root2, JSCompiler_inline_result) || (didPerformSomeWork = true, performSyncWorkOnRoot(root2, JSCompiler_inline_result));
1261
+ root2 = root2.next;
1184
1262
  }
1185
1263
  } while (didPerformSomeWork);
1186
1264
  isFlushingWork = false;
@@ -1193,39 +1271,39 @@ var require_react_reconciler_production = __commonJS({
1193
1271
  mightHavePendingSyncWork = didScheduleMicrotask = false;
1194
1272
  var syncTransitionLanes = 0;
1195
1273
  0 !== currentEventTransitionLane && shouldAttemptEagerTransition() && (syncTransitionLanes = currentEventTransitionLane);
1196
- for (var currentTime = now(), prev = null, root = firstScheduledRoot; null !== root; ) {
1197
- var next = root.next, nextLanes = scheduleTaskForRootDuringMicrotask(root, currentTime);
1274
+ for (var currentTime = now2(), prev = null, root2 = firstScheduledRoot; null !== root2; ) {
1275
+ var next = root2.next, nextLanes = scheduleTaskForRootDuringMicrotask(root2, currentTime);
1198
1276
  if (0 === nextLanes)
1199
- root.next = null, null === prev ? firstScheduledRoot = next : prev.next = next, null === next && (lastScheduledRoot = prev);
1200
- else if (prev = root, 0 !== syncTransitionLanes || 0 !== (nextLanes & 3))
1277
+ root2.next = null, null === prev ? firstScheduledRoot = next : prev.next = next, null === next && (lastScheduledRoot = prev);
1278
+ else if (prev = root2, 0 !== syncTransitionLanes || 0 !== (nextLanes & 3))
1201
1279
  mightHavePendingSyncWork = true;
1202
- root = next;
1280
+ root2 = next;
1203
1281
  }
1204
1282
  0 !== pendingEffectsStatus && 5 !== pendingEffectsStatus || flushSyncWorkAcrossRoots_impl(syncTransitionLanes, false);
1205
1283
  0 !== currentEventTransitionLane && (currentEventTransitionLane = 0);
1206
1284
  }
1207
- function scheduleTaskForRootDuringMicrotask(root, currentTime) {
1208
- for (var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes, expirationTimes = root.expirationTimes, lanes = root.pendingLanes & -62914561; 0 < lanes; ) {
1285
+ function scheduleTaskForRootDuringMicrotask(root2, currentTime) {
1286
+ for (var suspendedLanes = root2.suspendedLanes, pingedLanes = root2.pingedLanes, expirationTimes = root2.expirationTimes, lanes = root2.pendingLanes & -62914561; 0 < lanes; ) {
1209
1287
  var index$3 = 31 - clz32(lanes), lane = 1 << index$3, expirationTime = expirationTimes[index$3];
1210
1288
  if (-1 === expirationTime) {
1211
1289
  if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
1212
1290
  expirationTimes[index$3] = computeExpirationTime(lane, currentTime);
1213
- } else expirationTime <= currentTime && (root.expiredLanes |= lane);
1291
+ } else expirationTime <= currentTime && (root2.expiredLanes |= lane);
1214
1292
  lanes &= ~lane;
1215
1293
  }
1216
1294
  currentTime = workInProgressRoot;
1217
1295
  suspendedLanes = workInProgressRootRenderLanes;
1218
1296
  suspendedLanes = getNextLanes(
1219
- root,
1220
- root === currentTime ? suspendedLanes : 0,
1221
- null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout
1297
+ root2,
1298
+ root2 === currentTime ? suspendedLanes : 0,
1299
+ null !== root2.cancelPendingCommit || root2.timeoutHandle !== noTimeout
1222
1300
  );
1223
- pingedLanes = root.callbackNode;
1224
- if (0 === suspendedLanes || root === currentTime && (2 === workInProgressSuspendedReason || 9 === workInProgressSuspendedReason) || null !== root.cancelPendingCommit)
1225
- return null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes), root.callbackNode = null, root.callbackPriority = 0;
1226
- if (0 === (suspendedLanes & 3) || checkIfRootIsPrerendering(root, suspendedLanes)) {
1301
+ pingedLanes = root2.callbackNode;
1302
+ if (0 === suspendedLanes || root2 === currentTime && (2 === workInProgressSuspendedReason || 9 === workInProgressSuspendedReason) || null !== root2.cancelPendingCommit)
1303
+ return null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes), root2.callbackNode = null, root2.callbackPriority = 0;
1304
+ if (0 === (suspendedLanes & 3) || checkIfRootIsPrerendering(root2, suspendedLanes)) {
1227
1305
  currentTime = suspendedLanes & -suspendedLanes;
1228
- if (currentTime === root.callbackPriority) return currentTime;
1306
+ if (currentTime === root2.callbackPriority) return currentTime;
1229
1307
  null !== pingedLanes && cancelCallback$1(pingedLanes);
1230
1308
  switch (lanesToEventPriority(suspendedLanes)) {
1231
1309
  case 2:
@@ -1241,37 +1319,37 @@ var require_react_reconciler_production = __commonJS({
1241
1319
  default:
1242
1320
  suspendedLanes = NormalPriority$1;
1243
1321
  }
1244
- pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
1322
+ pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root2);
1245
1323
  suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
1246
- root.callbackPriority = currentTime;
1247
- root.callbackNode = suspendedLanes;
1324
+ root2.callbackPriority = currentTime;
1325
+ root2.callbackNode = suspendedLanes;
1248
1326
  return currentTime;
1249
1327
  }
1250
1328
  null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes);
1251
- root.callbackPriority = 2;
1252
- root.callbackNode = null;
1329
+ root2.callbackPriority = 2;
1330
+ root2.callbackNode = null;
1253
1331
  return 2;
1254
1332
  }
1255
- function performWorkOnRootViaSchedulerTask(root, didTimeout) {
1333
+ function performWorkOnRootViaSchedulerTask(root2, didTimeout) {
1256
1334
  if (0 !== pendingEffectsStatus && 5 !== pendingEffectsStatus)
1257
- return root.callbackNode = null, root.callbackPriority = 0, null;
1258
- var originalCallbackNode = root.callbackNode;
1259
- if (flushPendingEffects() && root.callbackNode !== originalCallbackNode)
1335
+ return root2.callbackNode = null, root2.callbackPriority = 0, null;
1336
+ var originalCallbackNode = root2.callbackNode;
1337
+ if (flushPendingEffects() && root2.callbackNode !== originalCallbackNode)
1260
1338
  return null;
1261
1339
  var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes;
1262
1340
  workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
1263
- root,
1264
- root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0,
1265
- null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout
1341
+ root2,
1342
+ root2 === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0,
1343
+ null !== root2.cancelPendingCommit || root2.timeoutHandle !== noTimeout
1266
1344
  );
1267
1345
  if (0 === workInProgressRootRenderLanes$jscomp$0) return null;
1268
- performWorkOnRoot(root, workInProgressRootRenderLanes$jscomp$0, didTimeout);
1269
- scheduleTaskForRootDuringMicrotask(root, now());
1270
- return null != root.callbackNode && root.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root) : null;
1346
+ performWorkOnRoot(root2, workInProgressRootRenderLanes$jscomp$0, didTimeout);
1347
+ scheduleTaskForRootDuringMicrotask(root2, now2());
1348
+ return null != root2.callbackNode && root2.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root2) : null;
1271
1349
  }
1272
- function performSyncWorkOnRoot(root, lanes) {
1350
+ function performSyncWorkOnRoot(root2, lanes) {
1273
1351
  if (flushPendingEffects()) return null;
1274
- performWorkOnRoot(root, lanes, true);
1352
+ performWorkOnRoot(root2, lanes, true);
1275
1353
  }
1276
1354
  function scheduleImmediateRootScheduleTask() {
1277
1355
  supportsMicrotasks ? scheduleMicrotask(function() {
@@ -1365,7 +1443,7 @@ var require_react_reconciler_production = __commonJS({
1365
1443
  if (keysA.length !== keysB.length) return false;
1366
1444
  for (keysB = 0; keysB < keysA.length; keysB++) {
1367
1445
  var currentKey = keysA[keysB];
1368
- if (!hasOwnProperty.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey]))
1446
+ if (!hasOwnProperty2.call(objB, currentKey) || !objectIs(objA[currentKey], objB[currentKey]))
1369
1447
  return false;
1370
1448
  }
1371
1449
  return true;
@@ -1997,14 +2075,14 @@ var require_react_reconciler_production = __commonJS({
1997
2075
  enqueueUpdate$1(fiber, updateQueue, update, lane);
1998
2076
  return getRootForUpdatedFiber(fiber);
1999
2077
  }
2000
- function entangleTransitions(root, fiber, lane) {
2078
+ function entangleTransitions(root2, fiber, lane) {
2001
2079
  fiber = fiber.updateQueue;
2002
2080
  if (null !== fiber && (fiber = fiber.shared, 0 !== (lane & 4194048))) {
2003
2081
  var queueLanes = fiber.lanes;
2004
- queueLanes &= root.pendingLanes;
2082
+ queueLanes &= root2.pendingLanes;
2005
2083
  lane |= queueLanes;
2006
2084
  fiber.lanes = lane;
2007
- markRootEntangled(root, lane);
2085
+ markRootEntangled(root2, lane);
2008
2086
  }
2009
2087
  }
2010
2088
  function enqueueCapturedUpdate(workInProgress2, capturedUpdate) {
@@ -2535,8 +2613,8 @@ var require_react_reconciler_production = __commonJS({
2535
2613
  }
2536
2614
  }
2537
2615
  function forceStoreRerender(fiber) {
2538
- var root = enqueueConcurrentRenderForLane(fiber, 2);
2539
- null !== root && scheduleUpdateOnFiber(root, fiber, 2);
2616
+ var root2 = enqueueConcurrentRenderForLane(fiber, 2);
2617
+ null !== root2 && scheduleUpdateOnFiber(root2, fiber, 2);
2540
2618
  }
2541
2619
  function mountStateImpl(initialState) {
2542
2620
  var hook = mountWorkInProgressHook();
@@ -2986,8 +3064,8 @@ var require_react_reconciler_production = __commonJS({
2986
3064
  case 3:
2987
3065
  var lane = requestUpdateLane();
2988
3066
  fiber = createUpdate(lane);
2989
- var root = enqueueUpdate(provider, fiber, lane);
2990
- null !== root && (scheduleUpdateOnFiber(root, provider, lane), entangleTransitions(root, provider, lane));
3067
+ var root2 = enqueueUpdate(provider, fiber, lane);
3068
+ null !== root2 && (scheduleUpdateOnFiber(root2, provider, lane), entangleTransitions(root2, provider, lane));
2991
3069
  provider = { cache: createCache() };
2992
3070
  fiber.payload = provider;
2993
3071
  return;
@@ -3071,13 +3149,13 @@ var require_react_reconciler_production = __commonJS({
3071
3149
  null === pending ? update.next = update : (update.next = pending.next, pending.next = update);
3072
3150
  queue.pending = update;
3073
3151
  }
3074
- function entangleTransitionUpdate(root, queue, lane) {
3152
+ function entangleTransitionUpdate(root2, queue, lane) {
3075
3153
  if (0 !== (lane & 4194048)) {
3076
3154
  var queueLanes = queue.lanes;
3077
- queueLanes &= root.pendingLanes;
3155
+ queueLanes &= root2.pendingLanes;
3078
3156
  lane |= queueLanes;
3079
3157
  queue.lanes = lane;
3080
- markRootEntangled(root, lane);
3158
+ markRootEntangled(root2, lane);
3081
3159
  }
3082
3160
  }
3083
3161
  function applyDerivedStateFromProps(workInProgress2, ctor, getDerivedStateFromProps, nextProps) {
@@ -3111,9 +3189,9 @@ var require_react_reconciler_production = __commonJS({
3111
3189
  }
3112
3190
  return newProps;
3113
3191
  }
3114
- function logUncaughtError(root, errorInfo) {
3192
+ function logUncaughtError(root2, errorInfo) {
3115
3193
  try {
3116
- var onUncaughtError = root.onUncaughtError;
3194
+ var onUncaughtError = root2.onUncaughtError;
3117
3195
  onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack });
3118
3196
  } catch (e) {
3119
3197
  setTimeout(function() {
@@ -3121,9 +3199,9 @@ var require_react_reconciler_production = __commonJS({
3121
3199
  });
3122
3200
  }
3123
3201
  }
3124
- function logCaughtError(root, boundary, errorInfo) {
3202
+ function logCaughtError(root2, boundary, errorInfo) {
3125
3203
  try {
3126
- var onCaughtError = root.onCaughtError;
3204
+ var onCaughtError = root2.onCaughtError;
3127
3205
  onCaughtError(errorInfo.value, {
3128
3206
  componentStack: errorInfo.stack,
3129
3207
  errorBoundary: 1 === boundary.tag ? boundary.stateNode : null
@@ -3134,12 +3212,12 @@ var require_react_reconciler_production = __commonJS({
3134
3212
  });
3135
3213
  }
3136
3214
  }
3137
- function createRootErrorUpdate(root, errorInfo, lane) {
3215
+ function createRootErrorUpdate(root2, errorInfo, lane) {
3138
3216
  lane = createUpdate(lane);
3139
3217
  lane.tag = 3;
3140
3218
  lane.payload = { element: null };
3141
3219
  lane.callback = function() {
3142
- logUncaughtError(root, errorInfo);
3220
+ logUncaughtError(root2, errorInfo);
3143
3221
  };
3144
3222
  return lane;
3145
3223
  }
@@ -3148,7 +3226,7 @@ var require_react_reconciler_production = __commonJS({
3148
3226
  lane.tag = 3;
3149
3227
  return lane;
3150
3228
  }
3151
- function initializeClassErrorUpdate(update, root, fiber, errorInfo) {
3229
+ function initializeClassErrorUpdate(update, root2, fiber, errorInfo) {
3152
3230
  var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
3153
3231
  if ("function" === typeof getDerivedStateFromError) {
3154
3232
  var error = errorInfo.value;
@@ -3156,12 +3234,12 @@ var require_react_reconciler_production = __commonJS({
3156
3234
  return getDerivedStateFromError(error);
3157
3235
  };
3158
3236
  update.callback = function() {
3159
- logCaughtError(root, fiber, errorInfo);
3237
+ logCaughtError(root2, fiber, errorInfo);
3160
3238
  };
3161
3239
  }
3162
3240
  var inst = fiber.stateNode;
3163
3241
  null !== inst && "function" === typeof inst.componentDidCatch && (update.callback = function() {
3164
- logCaughtError(root, fiber, errorInfo);
3242
+ logCaughtError(root2, fiber, errorInfo);
3165
3243
  "function" !== typeof getDerivedStateFromError && (null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = /* @__PURE__ */ new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this));
3166
3244
  var stack = errorInfo.stack;
3167
3245
  this.componentDidCatch(errorInfo.value, {
@@ -3169,7 +3247,7 @@ var require_react_reconciler_production = __commonJS({
3169
3247
  });
3170
3248
  });
3171
3249
  }
3172
- function throwException(root, returnFiber, sourceFiber, value, rootRenderLanes) {
3250
+ function throwException(root2, returnFiber, sourceFiber, value, rootRenderLanes) {
3173
3251
  sourceFiber.flags |= 32768;
3174
3252
  if (null !== value && "object" === typeof value && "function" === typeof value.then) {
3175
3253
  returnFiber = sourceFiber.alternate;
@@ -3184,32 +3262,32 @@ var require_react_reconciler_production = __commonJS({
3184
3262
  switch (sourceFiber.tag) {
3185
3263
  case 31:
3186
3264
  case 13:
3187
- return null === shellBoundary ? renderDidSuspendDelayIfPossible() : null === sourceFiber.alternate && 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 3), sourceFiber.flags &= -257, sourceFiber.flags |= 65536, sourceFiber.lanes = rootRenderLanes, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, null === returnFiber ? sourceFiber.updateQueue = /* @__PURE__ */ new Set([value]) : returnFiber.add(value), attachPingListener(root, value, rootRenderLanes)), false;
3265
+ return null === shellBoundary ? renderDidSuspendDelayIfPossible() : null === sourceFiber.alternate && 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 3), sourceFiber.flags &= -257, sourceFiber.flags |= 65536, sourceFiber.lanes = rootRenderLanes, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, null === returnFiber ? sourceFiber.updateQueue = /* @__PURE__ */ new Set([value]) : returnFiber.add(value), attachPingListener(root2, value, rootRenderLanes)), false;
3188
3266
  case 22:
3189
3267
  return sourceFiber.flags |= 65536, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, null === returnFiber ? (returnFiber = {
3190
3268
  transitions: null,
3191
3269
  markerInstances: null,
3192
3270
  retryQueue: /* @__PURE__ */ new Set([value])
3193
- }, sourceFiber.updateQueue = returnFiber) : (sourceFiber = returnFiber.retryQueue, null === sourceFiber ? returnFiber.retryQueue = /* @__PURE__ */ new Set([value]) : sourceFiber.add(value)), attachPingListener(root, value, rootRenderLanes)), false;
3271
+ }, sourceFiber.updateQueue = returnFiber) : (sourceFiber = returnFiber.retryQueue, null === sourceFiber ? returnFiber.retryQueue = /* @__PURE__ */ new Set([value]) : sourceFiber.add(value)), attachPingListener(root2, value, rootRenderLanes)), false;
3194
3272
  }
3195
3273
  throw Error(formatProdErrorMessage(435, sourceFiber.tag));
3196
3274
  }
3197
- attachPingListener(root, value, rootRenderLanes);
3275
+ attachPingListener(root2, value, rootRenderLanes);
3198
3276
  renderDidSuspendDelayIfPossible();
3199
3277
  return false;
3200
3278
  }
3201
3279
  if (isHydrating)
3202
- return returnFiber = suspenseHandlerStackCursor.current, null !== returnFiber ? (0 === (returnFiber.flags & 65536) && (returnFiber.flags |= 256), returnFiber.flags |= 65536, returnFiber.lanes = rootRenderLanes, value !== HydrationMismatchException && (root = Error(formatProdErrorMessage(422), { cause: value }), queueHydrationError(
3203
- createCapturedValueAtFiber(root, sourceFiber)
3280
+ return returnFiber = suspenseHandlerStackCursor.current, null !== returnFiber ? (0 === (returnFiber.flags & 65536) && (returnFiber.flags |= 256), returnFiber.flags |= 65536, returnFiber.lanes = rootRenderLanes, value !== HydrationMismatchException && (root2 = Error(formatProdErrorMessage(422), { cause: value }), queueHydrationError(
3281
+ createCapturedValueAtFiber(root2, sourceFiber)
3204
3282
  ))) : (value !== HydrationMismatchException && (returnFiber = Error(formatProdErrorMessage(423), {
3205
3283
  cause: value
3206
3284
  }), queueHydrationError(
3207
3285
  createCapturedValueAtFiber(returnFiber, sourceFiber)
3208
- )), root = root.current.alternate, root.flags |= 65536, rootRenderLanes &= -rootRenderLanes, root.lanes |= rootRenderLanes, value = createCapturedValueAtFiber(value, sourceFiber), rootRenderLanes = createRootErrorUpdate(
3209
- root.stateNode,
3286
+ )), root2 = root2.current.alternate, root2.flags |= 65536, rootRenderLanes &= -rootRenderLanes, root2.lanes |= rootRenderLanes, value = createCapturedValueAtFiber(value, sourceFiber), rootRenderLanes = createRootErrorUpdate(
3287
+ root2.stateNode,
3210
3288
  value,
3211
3289
  rootRenderLanes
3212
- ), enqueueCapturedUpdate(root, rootRenderLanes), 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2)), false;
3290
+ ), enqueueCapturedUpdate(root2, rootRenderLanes), 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2)), false;
3213
3291
  var wrapperError = Error(formatProdErrorMessage(520), { cause: value });
3214
3292
  wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber);
3215
3293
  null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [wrapperError] : workInProgressRootConcurrentErrors.push(wrapperError);
@@ -3220,14 +3298,14 @@ var require_react_reconciler_production = __commonJS({
3220
3298
  do {
3221
3299
  switch (sourceFiber.tag) {
3222
3300
  case 3:
3223
- return sourceFiber.flags |= 65536, root = rootRenderLanes & -rootRenderLanes, sourceFiber.lanes |= root, root = createRootErrorUpdate(sourceFiber.stateNode, value, root), enqueueCapturedUpdate(sourceFiber, root), false;
3301
+ return sourceFiber.flags |= 65536, root2 = rootRenderLanes & -rootRenderLanes, sourceFiber.lanes |= root2, root2 = createRootErrorUpdate(sourceFiber.stateNode, value, root2), enqueueCapturedUpdate(sourceFiber, root2), false;
3224
3302
  case 1:
3225
3303
  if (returnFiber = sourceFiber.type, wrapperError = sourceFiber.stateNode, 0 === (sourceFiber.flags & 128) && ("function" === typeof returnFiber.getDerivedStateFromError || null !== wrapperError && "function" === typeof wrapperError.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(
3226
3304
  wrapperError
3227
3305
  ))))
3228
3306
  return sourceFiber.flags |= 65536, rootRenderLanes &= -rootRenderLanes, sourceFiber.lanes |= rootRenderLanes, rootRenderLanes = createClassErrorUpdate(rootRenderLanes), initializeClassErrorUpdate(
3229
3307
  rootRenderLanes,
3230
- root,
3308
+ root2,
3231
3309
  sourceFiber,
3232
3310
  value
3233
3311
  ), enqueueCapturedUpdate(sourceFiber, rootRenderLanes), false;
@@ -4854,7 +4932,7 @@ var require_react_reconciler_production = __commonJS({
4854
4932
  }
4855
4933
  current = current.sibling;
4856
4934
  }
4857
- null !== newProps.tail && now() > workInProgressRootRenderTargetTime && (workInProgress2.flags |= 128, type = true, cutOffTailIfNeeded(newProps, false), workInProgress2.lanes = 4194304);
4935
+ null !== newProps.tail && now2() > workInProgressRootRenderTargetTime && (workInProgress2.flags |= 128, type = true, cutOffTailIfNeeded(newProps, false), workInProgress2.lanes = 4194304);
4858
4936
  }
4859
4937
  else {
4860
4938
  if (!type)
@@ -4862,11 +4940,11 @@ var require_react_reconciler_production = __commonJS({
4862
4940
  if (workInProgress2.flags |= 128, type = true, current = current.updateQueue, workInProgress2.updateQueue = current, scheduleRetryEffect(workInProgress2, current), cutOffTailIfNeeded(newProps, true), null === newProps.tail && "hidden" === newProps.tailMode && !nextResource.alternate && !isHydrating)
4863
4941
  return bubbleProperties(workInProgress2), null;
4864
4942
  } else
4865
- 2 * now() - newProps.renderingStartTime > workInProgressRootRenderTargetTime && 536870912 !== renderLanes2 && (workInProgress2.flags |= 128, type = true, cutOffTailIfNeeded(newProps, false), workInProgress2.lanes = 4194304);
4943
+ 2 * now2() - newProps.renderingStartTime > workInProgressRootRenderTargetTime && 536870912 !== renderLanes2 && (workInProgress2.flags |= 128, type = true, cutOffTailIfNeeded(newProps, false), workInProgress2.lanes = 4194304);
4866
4944
  newProps.isBackwards ? (nextResource.sibling = workInProgress2.child, workInProgress2.child = nextResource) : (current = newProps.last, null !== current ? current.sibling = nextResource : workInProgress2.child = nextResource, newProps.last = nextResource);
4867
4945
  }
4868
4946
  if (null !== newProps.tail)
4869
- return current = newProps.tail, newProps.rendering = current, newProps.tail = current.sibling, newProps.renderingStartTime = now(), current.sibling = null, renderLanes2 = suspenseStackCursor.current, push(
4947
+ return current = newProps.tail, newProps.rendering = current, newProps.tail = current.sibling, newProps.renderingStartTime = now2(), current.sibling = null, renderLanes2 = suspenseStackCursor.current, push(
4870
4948
  suspenseStackCursor,
4871
4949
  type ? renderLanes2 & 1 | 2 : renderLanes2 & 1
4872
4950
  ), isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount), current;
@@ -5161,19 +5239,19 @@ var require_react_reconciler_production = __commonJS({
5161
5239
  captureCommitPhaseError(finishedWork, finishedWork.return, error);
5162
5240
  }
5163
5241
  }
5164
- function commitBeforeMutationEffects(root, firstChild) {
5165
- prepareForCommit(root.containerInfo);
5242
+ function commitBeforeMutationEffects(root2, firstChild) {
5243
+ prepareForCommit(root2.containerInfo);
5166
5244
  for (nextEffect = firstChild; null !== nextEffect; )
5167
- if (root = nextEffect, firstChild = root.child, 0 !== (root.subtreeFlags & 1028) && null !== firstChild)
5168
- firstChild.return = root, nextEffect = firstChild;
5245
+ if (root2 = nextEffect, firstChild = root2.child, 0 !== (root2.subtreeFlags & 1028) && null !== firstChild)
5246
+ firstChild.return = root2, nextEffect = firstChild;
5169
5247
  else
5170
5248
  for (; null !== nextEffect; ) {
5171
- root = nextEffect;
5172
- var current = root.alternate;
5173
- firstChild = root.flags;
5174
- switch (root.tag) {
5249
+ root2 = nextEffect;
5250
+ var current = root2.alternate;
5251
+ firstChild = root2.flags;
5252
+ switch (root2.tag) {
5175
5253
  case 0:
5176
- if (0 !== (firstChild & 4) && (firstChild = root.updateQueue, firstChild = null !== firstChild ? firstChild.events : null, null !== firstChild))
5254
+ if (0 !== (firstChild & 4) && (firstChild = root2.updateQueue, firstChild = null !== firstChild ? firstChild.events : null, null !== firstChild))
5177
5255
  for (var ii = 0; ii < firstChild.length; ii++) {
5178
5256
  var _eventPayloads$ii = firstChild[ii];
5179
5257
  _eventPayloads$ii.ref.impl = _eventPayloads$ii.nextImpl;
@@ -5185,7 +5263,7 @@ var require_react_reconciler_production = __commonJS({
5185
5263
  case 1:
5186
5264
  if (0 !== (firstChild & 1024) && null !== current) {
5187
5265
  firstChild = void 0;
5188
- ii = root;
5266
+ ii = root2;
5189
5267
  _eventPayloads$ii = current.memoizedProps;
5190
5268
  current = current.memoizedState;
5191
5269
  var instance = ii.stateNode;
@@ -5205,7 +5283,7 @@ var require_react_reconciler_production = __commonJS({
5205
5283
  }
5206
5284
  break;
5207
5285
  case 3:
5208
- 0 !== (firstChild & 1024) && supportsMutation && clearContainer(root.stateNode.containerInfo);
5286
+ 0 !== (firstChild & 1024) && supportsMutation && clearContainer(root2.stateNode.containerInfo);
5209
5287
  break;
5210
5288
  case 5:
5211
5289
  case 26:
@@ -5218,13 +5296,13 @@ var require_react_reconciler_production = __commonJS({
5218
5296
  if (0 !== (firstChild & 1024))
5219
5297
  throw Error(formatProdErrorMessage(163));
5220
5298
  }
5221
- firstChild = root.sibling;
5299
+ firstChild = root2.sibling;
5222
5300
  if (null !== firstChild) {
5223
- firstChild.return = root.return;
5301
+ firstChild.return = root2.return;
5224
5302
  nextEffect = firstChild;
5225
5303
  break;
5226
5304
  }
5227
- nextEffect = root.return;
5305
+ nextEffect = root2.return;
5228
5306
  }
5229
5307
  }
5230
5308
  function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
@@ -5558,7 +5636,7 @@ var require_react_reconciler_production = __commonJS({
5558
5636
  var deletions = parentFiber.deletions;
5559
5637
  if (null !== deletions)
5560
5638
  for (var i = 0; i < deletions.length; i++) {
5561
- var childToDelete = deletions[i], root = root$jscomp$0, returnFiber = parentFiber;
5639
+ var childToDelete = deletions[i], root2 = root$jscomp$0, returnFiber = parentFiber;
5562
5640
  if (supportsMutation) {
5563
5641
  var parent = returnFiber;
5564
5642
  a: for (; null !== parent; ) {
@@ -5585,31 +5663,31 @@ var require_react_reconciler_production = __commonJS({
5585
5663
  parent = parent.return;
5586
5664
  }
5587
5665
  if (null === hostParent) throw Error(formatProdErrorMessage(160));
5588
- commitDeletionEffectsOnFiber(root, returnFiber, childToDelete);
5666
+ commitDeletionEffectsOnFiber(root2, returnFiber, childToDelete);
5589
5667
  hostParent = null;
5590
5668
  hostParentIsContainer = false;
5591
- } else commitDeletionEffectsOnFiber(root, returnFiber, childToDelete);
5592
- root = childToDelete.alternate;
5593
- null !== root && (root.return = null);
5669
+ } else commitDeletionEffectsOnFiber(root2, returnFiber, childToDelete);
5670
+ root2 = childToDelete.alternate;
5671
+ null !== root2 && (root2.return = null);
5594
5672
  childToDelete.return = null;
5595
5673
  }
5596
5674
  if (parentFiber.subtreeFlags & 13886)
5597
5675
  for (parentFiber = parentFiber.child; null !== parentFiber; )
5598
5676
  commitMutationEffectsOnFiber(parentFiber, root$jscomp$0), parentFiber = parentFiber.sibling;
5599
5677
  }
5600
- function commitMutationEffectsOnFiber(finishedWork, root) {
5678
+ function commitMutationEffectsOnFiber(finishedWork, root2) {
5601
5679
  var current = finishedWork.alternate, flags = finishedWork.flags;
5602
5680
  switch (finishedWork.tag) {
5603
5681
  case 0:
5604
5682
  case 11:
5605
5683
  case 14:
5606
5684
  case 15:
5607
- recursivelyTraverseMutationEffects(root, finishedWork);
5685
+ recursivelyTraverseMutationEffects(root2, finishedWork);
5608
5686
  commitReconciliationEffects(finishedWork);
5609
5687
  flags & 4 && (commitHookEffectListUnmount(3, finishedWork, finishedWork.return), commitHookEffectListMount(3, finishedWork), commitHookEffectListUnmount(5, finishedWork, finishedWork.return));
5610
5688
  break;
5611
5689
  case 1:
5612
- recursivelyTraverseMutationEffects(root, finishedWork);
5690
+ recursivelyTraverseMutationEffects(root2, finishedWork);
5613
5691
  commitReconciliationEffects(finishedWork);
5614
5692
  flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return));
5615
5693
  flags & 64 && offscreenSubtreeIsHidden && (finishedWork = finishedWork.updateQueue, null !== finishedWork && (flags = finishedWork.callbacks, null !== flags && (current = finishedWork.shared.hiddenCallbacks, finishedWork.shared.hiddenCallbacks = null === current ? flags : current.concat(flags))));
@@ -5617,7 +5695,7 @@ var require_react_reconciler_production = __commonJS({
5617
5695
  case 26:
5618
5696
  if (supportsResources) {
5619
5697
  var hoistableRoot = currentHoistableRoot;
5620
- recursivelyTraverseMutationEffects(root, finishedWork);
5698
+ recursivelyTraverseMutationEffects(root2, finishedWork);
5621
5699
  commitReconciliationEffects(finishedWork);
5622
5700
  flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return));
5623
5701
  if (flags & 4) {
@@ -5654,7 +5732,7 @@ var require_react_reconciler_production = __commonJS({
5654
5732
  }
5655
5733
  case 27:
5656
5734
  if (supportsSingletons) {
5657
- recursivelyTraverseMutationEffects(root, finishedWork);
5735
+ recursivelyTraverseMutationEffects(root2, finishedWork);
5658
5736
  commitReconciliationEffects(finishedWork);
5659
5737
  flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return));
5660
5738
  null !== current && flags & 4 && commitHostUpdate(
@@ -5665,7 +5743,7 @@ var require_react_reconciler_production = __commonJS({
5665
5743
  break;
5666
5744
  }
5667
5745
  case 5:
5668
- recursivelyTraverseMutationEffects(root, finishedWork);
5746
+ recursivelyTraverseMutationEffects(root2, finishedWork);
5669
5747
  commitReconciliationEffects(finishedWork);
5670
5748
  flags & 512 && (offscreenSubtreeWasHidden || null === current || safelyDetachRef(current, current.return));
5671
5749
  if (supportsMutation) {
@@ -5687,7 +5765,7 @@ var require_react_reconciler_production = __commonJS({
5687
5765
  supportsPersistence && null !== finishedWork.alternate && (finishedWork.alternate.stateNode = finishedWork.stateNode);
5688
5766
  break;
5689
5767
  case 6:
5690
- recursivelyTraverseMutationEffects(root, finishedWork);
5768
+ recursivelyTraverseMutationEffects(root2, finishedWork);
5691
5769
  commitReconciliationEffects(finishedWork);
5692
5770
  if (flags & 4 && supportsMutation) {
5693
5771
  if (null === finishedWork.stateNode)
@@ -5703,18 +5781,18 @@ var require_react_reconciler_production = __commonJS({
5703
5781
  }
5704
5782
  break;
5705
5783
  case 3:
5706
- supportsResources ? (prepareToCommitHoistables(), hoistableRoot = currentHoistableRoot, currentHoistableRoot = getHoistableRoot(root.containerInfo), recursivelyTraverseMutationEffects(root, finishedWork), currentHoistableRoot = hoistableRoot) : recursivelyTraverseMutationEffects(root, finishedWork);
5784
+ supportsResources ? (prepareToCommitHoistables(), hoistableRoot = currentHoistableRoot, currentHoistableRoot = getHoistableRoot(root2.containerInfo), recursivelyTraverseMutationEffects(root2, finishedWork), currentHoistableRoot = hoistableRoot) : recursivelyTraverseMutationEffects(root2, finishedWork);
5707
5785
  commitReconciliationEffects(finishedWork);
5708
5786
  if (flags & 4) {
5709
5787
  if (supportsMutation && supportsHydration && null !== current && current.memoizedState.isDehydrated)
5710
5788
  try {
5711
- commitHydratedContainer(root.containerInfo);
5789
+ commitHydratedContainer(root2.containerInfo);
5712
5790
  } catch (error) {
5713
5791
  captureCommitPhaseError(finishedWork, finishedWork.return, error);
5714
5792
  }
5715
5793
  if (supportsPersistence) {
5716
- flags = root.containerInfo;
5717
- current = root.pendingChildren;
5794
+ flags = root2.containerInfo;
5795
+ current = root2.pendingChildren;
5718
5796
  try {
5719
5797
  replaceContainerChildren(flags, current);
5720
5798
  } catch (error) {
@@ -5727,7 +5805,7 @@ var require_react_reconciler_production = __commonJS({
5727
5805
  case 4:
5728
5806
  supportsResources ? (current = currentHoistableRoot, currentHoistableRoot = getHoistableRoot(
5729
5807
  finishedWork.stateNode.containerInfo
5730
- ), recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork), currentHoistableRoot = current) : (recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork));
5808
+ ), recursivelyTraverseMutationEffects(root2, finishedWork), commitReconciliationEffects(finishedWork), currentHoistableRoot = current) : (recursivelyTraverseMutationEffects(root2, finishedWork), commitReconciliationEffects(finishedWork));
5731
5809
  flags & 4 && supportsPersistence && commitHostPortalContainerChildren(
5732
5810
  finishedWork.stateNode,
5733
5811
  finishedWork,
@@ -5735,18 +5813,18 @@ var require_react_reconciler_production = __commonJS({
5735
5813
  );
5736
5814
  break;
5737
5815
  case 12:
5738
- recursivelyTraverseMutationEffects(root, finishedWork);
5816
+ recursivelyTraverseMutationEffects(root2, finishedWork);
5739
5817
  commitReconciliationEffects(finishedWork);
5740
5818
  break;
5741
5819
  case 31:
5742
- recursivelyTraverseMutationEffects(root, finishedWork);
5820
+ recursivelyTraverseMutationEffects(root2, finishedWork);
5743
5821
  commitReconciliationEffects(finishedWork);
5744
5822
  flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags)));
5745
5823
  break;
5746
5824
  case 13:
5747
- recursivelyTraverseMutationEffects(root, finishedWork);
5825
+ recursivelyTraverseMutationEffects(root2, finishedWork);
5748
5826
  commitReconciliationEffects(finishedWork);
5749
- finishedWork.child.flags & 8192 && null !== finishedWork.memoizedState !== (null !== current && null !== current.memoizedState) && (globalMostRecentFallbackTime = now());
5827
+ finishedWork.child.flags & 8192 && null !== finishedWork.memoizedState !== (null !== current && null !== current.memoizedState) && (globalMostRecentFallbackTime = now2());
5750
5828
  flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags)));
5751
5829
  break;
5752
5830
  case 22:
@@ -5754,16 +5832,16 @@ var require_react_reconciler_production = __commonJS({
5754
5832
  var wasHidden = null !== current && null !== current.memoizedState, prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
5755
5833
  offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot;
5756
5834
  offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden;
5757
- recursivelyTraverseMutationEffects(root, finishedWork);
5835
+ recursivelyTraverseMutationEffects(root2, finishedWork);
5758
5836
  offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden;
5759
5837
  offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden;
5760
5838
  commitReconciliationEffects(finishedWork);
5761
- if (flags & 8192 && (root = finishedWork.stateNode, root._visibility = hoistableRoot ? root._visibility & -2 : root._visibility | 1, hoistableRoot && (null === current || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), supportsMutation)) {
5839
+ if (flags & 8192 && (root2 = finishedWork.stateNode, root2._visibility = hoistableRoot ? root2._visibility & -2 : root2._visibility | 1, hoistableRoot && (null === current || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), supportsMutation)) {
5762
5840
  a: if (current = null, supportsMutation)
5763
- for (root = finishedWork; ; ) {
5764
- if (5 === root.tag || supportsResources && 26 === root.tag) {
5841
+ for (root2 = finishedWork; ; ) {
5842
+ if (5 === root2.tag || supportsResources && 26 === root2.tag) {
5765
5843
  if (null === current) {
5766
- wasHidden = current = root;
5844
+ wasHidden = current = root2;
5767
5845
  try {
5768
5846
  newResource = wasHidden.stateNode, hoistableRoot ? hideInstance(newResource) : unhideInstance(
5769
5847
  wasHidden.stateNode,
@@ -5773,9 +5851,9 @@ var require_react_reconciler_production = __commonJS({
5773
5851
  captureCommitPhaseError(wasHidden, wasHidden.return, error);
5774
5852
  }
5775
5853
  }
5776
- } else if (6 === root.tag) {
5854
+ } else if (6 === root2.tag) {
5777
5855
  if (null === current) {
5778
- wasHidden = root;
5856
+ wasHidden = root2;
5779
5857
  try {
5780
5858
  var instance = wasHidden.stateNode;
5781
5859
  hoistableRoot ? hideTextInstance(instance) : unhideTextInstance(instance, wasHidden.memoizedProps);
@@ -5783,9 +5861,9 @@ var require_react_reconciler_production = __commonJS({
5783
5861
  captureCommitPhaseError(wasHidden, wasHidden.return, error);
5784
5862
  }
5785
5863
  }
5786
- } else if (18 === root.tag) {
5864
+ } else if (18 === root2.tag) {
5787
5865
  if (null === current) {
5788
- wasHidden = root;
5866
+ wasHidden = root2;
5789
5867
  try {
5790
5868
  var instance$jscomp$0 = wasHidden.stateNode;
5791
5869
  hoistableRoot ? hideDehydratedBoundary(instance$jscomp$0) : unhideDehydratedBoundary(wasHidden.stateNode);
@@ -5793,27 +5871,27 @@ var require_react_reconciler_production = __commonJS({
5793
5871
  captureCommitPhaseError(wasHidden, wasHidden.return, error);
5794
5872
  }
5795
5873
  }
5796
- } else if ((22 !== root.tag && 23 !== root.tag || null === root.memoizedState || root === finishedWork) && null !== root.child) {
5797
- root.child.return = root;
5798
- root = root.child;
5874
+ } else if ((22 !== root2.tag && 23 !== root2.tag || null === root2.memoizedState || root2 === finishedWork) && null !== root2.child) {
5875
+ root2.child.return = root2;
5876
+ root2 = root2.child;
5799
5877
  continue;
5800
5878
  }
5801
- if (root === finishedWork) break a;
5802
- for (; null === root.sibling; ) {
5803
- if (null === root.return || root.return === finishedWork)
5879
+ if (root2 === finishedWork) break a;
5880
+ for (; null === root2.sibling; ) {
5881
+ if (null === root2.return || root2.return === finishedWork)
5804
5882
  break a;
5805
- current === root && (current = null);
5806
- root = root.return;
5883
+ current === root2 && (current = null);
5884
+ root2 = root2.return;
5807
5885
  }
5808
- current === root && (current = null);
5809
- root.sibling.return = root.return;
5810
- root = root.sibling;
5886
+ current === root2 && (current = null);
5887
+ root2.sibling.return = root2.return;
5888
+ root2 = root2.sibling;
5811
5889
  }
5812
5890
  }
5813
5891
  flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (current = flags.retryQueue, null !== current && (flags.retryQueue = null, attachSuspenseRetryListeners(finishedWork, current))));
5814
5892
  break;
5815
5893
  case 19:
5816
- recursivelyTraverseMutationEffects(root, finishedWork);
5894
+ recursivelyTraverseMutationEffects(root2, finishedWork);
5817
5895
  commitReconciliationEffects(finishedWork);
5818
5896
  flags & 4 && (flags = finishedWork.updateQueue, null !== flags && (finishedWork.updateQueue = null, attachSuspenseRetryListeners(finishedWork, flags)));
5819
5897
  break;
@@ -5822,7 +5900,7 @@ var require_react_reconciler_production = __commonJS({
5822
5900
  case 21:
5823
5901
  break;
5824
5902
  default:
5825
- recursivelyTraverseMutationEffects(root, finishedWork), commitReconciliationEffects(finishedWork);
5903
+ recursivelyTraverseMutationEffects(root2, finishedWork), commitReconciliationEffects(finishedWork);
5826
5904
  }
5827
5905
  }
5828
5906
  function commitReconciliationEffects(finishedWork) {
@@ -5880,10 +5958,10 @@ var require_react_reconciler_production = __commonJS({
5880
5958
  parentFiber = parentFiber.sibling;
5881
5959
  }
5882
5960
  }
5883
- function recursivelyTraverseLayoutEffects(root, parentFiber) {
5961
+ function recursivelyTraverseLayoutEffects(root2, parentFiber) {
5884
5962
  if (parentFiber.subtreeFlags & 8772)
5885
5963
  for (parentFiber = parentFiber.child; null !== parentFiber; )
5886
- commitLayoutEffectOnFiber(root, parentFiber.alternate, parentFiber), parentFiber = parentFiber.sibling;
5964
+ commitLayoutEffectOnFiber(root2, parentFiber.alternate, parentFiber), parentFiber = parentFiber.sibling;
5887
5965
  }
5888
5966
  function recursivelyTraverseDisappearLayoutEffects(parentFiber) {
5889
5967
  for (parentFiber = parentFiber.child; null !== parentFiber; ) {
@@ -6038,11 +6116,11 @@ var require_react_reconciler_production = __commonJS({
6038
6116
  finishedWork = finishedWork.memoizedState.cache;
6039
6117
  finishedWork !== current && (finishedWork.refCount++, null != current && releaseCache(current));
6040
6118
  }
6041
- function recursivelyTraversePassiveMountEffects(root, parentFiber, committedLanes, committedTransitions) {
6119
+ function recursivelyTraversePassiveMountEffects(root2, parentFiber, committedLanes, committedTransitions) {
6042
6120
  if (parentFiber.subtreeFlags & 10256)
6043
6121
  for (parentFiber = parentFiber.child; null !== parentFiber; )
6044
6122
  commitPassiveMountOnFiber(
6045
- root,
6123
+ root2,
6046
6124
  parentFiber,
6047
6125
  committedLanes,
6048
6126
  committedTransitions
@@ -6524,18 +6602,18 @@ var require_react_reconciler_production = __commonJS({
6524
6602
  throw Error(formatProdErrorMessage(365));
6525
6603
  }
6526
6604
  }
6527
- function findPaths(root, selectors) {
6605
+ function findPaths(root2, selectors) {
6528
6606
  var matchingFibers = [];
6529
- root = [root, 0];
6530
- for (var index = 0; index < root.length; ) {
6531
- var fiber = root[index++], tag = fiber.tag, selectorIndex = root[index++], selector = selectors[selectorIndex];
6607
+ root2 = [root2, 0];
6608
+ for (var index = 0; index < root2.length; ) {
6609
+ var fiber = root2[index++], tag = fiber.tag, selectorIndex = root2[index++], selector = selectors[selectorIndex];
6532
6610
  if (5 !== tag && 26 !== tag && 27 !== tag || !isHiddenSubtree(fiber)) {
6533
6611
  for (; null != selector && matchSelector(fiber, selector); )
6534
6612
  selectorIndex++, selector = selectors[selectorIndex];
6535
6613
  if (selectorIndex === selectors.length) matchingFibers.push(fiber);
6536
6614
  else
6537
6615
  for (fiber = fiber.child; null !== fiber; )
6538
- root.push(fiber, selectorIndex), fiber = fiber.sibling;
6616
+ root2.push(fiber, selectorIndex), fiber = fiber.sibling;
6539
6617
  }
6540
6618
  }
6541
6619
  return matchingFibers;
@@ -6571,22 +6649,22 @@ var require_react_reconciler_production = __commonJS({
6571
6649
  null !== lane && (lane.flags |= 32);
6572
6650
  return workInProgressDeferredLane;
6573
6651
  }
6574
- function scheduleUpdateOnFiber(root, fiber, lane) {
6575
- if (root === workInProgressRoot && (2 === workInProgressSuspendedReason || 9 === workInProgressSuspendedReason) || null !== root.cancelPendingCommit)
6576
- prepareFreshStack(root, 0), markRootSuspended(
6577
- root,
6652
+ function scheduleUpdateOnFiber(root2, fiber, lane) {
6653
+ if (root2 === workInProgressRoot && (2 === workInProgressSuspendedReason || 9 === workInProgressSuspendedReason) || null !== root2.cancelPendingCommit)
6654
+ prepareFreshStack(root2, 0), markRootSuspended(
6655
+ root2,
6578
6656
  workInProgressRootRenderLanes,
6579
6657
  workInProgressDeferredLane,
6580
6658
  false
6581
6659
  );
6582
- markRootUpdated$1(root, lane);
6583
- if (0 === (executionContext & 2) || root !== workInProgressRoot)
6584
- root === workInProgressRoot && (0 === (executionContext & 2) && (workInProgressRootInterleavedUpdatedLanes |= lane), 4 === workInProgressRootExitStatus && markRootSuspended(
6585
- root,
6660
+ markRootUpdated$1(root2, lane);
6661
+ if (0 === (executionContext & 2) || root2 !== workInProgressRoot)
6662
+ root2 === workInProgressRoot && (0 === (executionContext & 2) && (workInProgressRootInterleavedUpdatedLanes |= lane), 4 === workInProgressRootExitStatus && markRootSuspended(
6663
+ root2,
6586
6664
  workInProgressRootRenderLanes,
6587
6665
  workInProgressDeferredLane,
6588
6666
  false
6589
- )), ensureRootIsScheduled(root);
6667
+ )), ensureRootIsScheduled(root2);
6590
6668
  }
6591
6669
  function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
6592
6670
  if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
@@ -6611,18 +6689,18 @@ var require_react_reconciler_production = __commonJS({
6611
6689
  if (0 !== JSCompiler_inline_result) {
6612
6690
  lanes = JSCompiler_inline_result;
6613
6691
  a: {
6614
- var root = root$jscomp$0;
6692
+ var root2 = root$jscomp$0;
6615
6693
  exitStatus = workInProgressRootConcurrentErrors;
6616
- var wasRootDehydrated = supportsHydration && root.current.memoizedState.isDehydrated;
6617
- wasRootDehydrated && (prepareFreshStack(root, JSCompiler_inline_result).flags |= 256);
6694
+ var wasRootDehydrated = supportsHydration && root2.current.memoizedState.isDehydrated;
6695
+ wasRootDehydrated && (prepareFreshStack(root2, JSCompiler_inline_result).flags |= 256);
6618
6696
  JSCompiler_inline_result = renderRootSync(
6619
- root,
6697
+ root2,
6620
6698
  JSCompiler_inline_result,
6621
6699
  false
6622
6700
  );
6623
6701
  if (2 !== JSCompiler_inline_result) {
6624
6702
  if (workInProgressRootDidAttachPingListener && !wasRootDehydrated) {
6625
- root.errorRecoveryDisabledLanes |= renderWasConcurrent;
6703
+ root2.errorRecoveryDisabledLanes |= renderWasConcurrent;
6626
6704
  workInProgressRootInterleavedUpdatedLanes |= renderWasConcurrent;
6627
6705
  exitStatus = 4;
6628
6706
  break a;
@@ -6671,7 +6749,7 @@ var require_react_reconciler_production = __commonJS({
6671
6749
  default:
6672
6750
  throw Error(formatProdErrorMessage(329));
6673
6751
  }
6674
- if ((lanes & 62914560) === lanes && (exitStatus = globalMostRecentFallbackTime + 300 - now(), 10 < exitStatus)) {
6752
+ if ((lanes & 62914560) === lanes && (exitStatus = globalMostRecentFallbackTime + 300 - now2(), 10 < exitStatus)) {
6675
6753
  markRootSuspended(
6676
6754
  shouldTimeSlice,
6677
6755
  lanes,
@@ -6724,8 +6802,8 @@ var require_react_reconciler_production = __commonJS({
6724
6802
  } while (1);
6725
6803
  ensureRootIsScheduled(root$jscomp$0);
6726
6804
  }
6727
- function commitRootWhenReady(root, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, updatedLanes, suspendedRetryLanes, didSkipSuspendedSiblings, exitStatus, suspendedCommitReason, completedRenderStartTime, completedRenderEndTime) {
6728
- root.timeoutHandle = noTimeout;
6805
+ function commitRootWhenReady(root2, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, updatedLanes, suspendedRetryLanes, didSkipSuspendedSiblings, exitStatus, suspendedCommitReason, completedRenderStartTime, completedRenderEndTime) {
6806
+ root2.timeoutHandle = noTimeout;
6729
6807
  suspendedCommitReason = finishedWork.subtreeFlags;
6730
6808
  if (suspendedCommitReason & 8192 || 16785408 === (suspendedCommitReason & 16785408)) {
6731
6809
  suspendedCommitReason = startSuspendingCommit();
@@ -6734,17 +6812,17 @@ var require_react_reconciler_production = __commonJS({
6734
6812
  lanes,
6735
6813
  suspendedCommitReason
6736
6814
  );
6737
- var timeoutOffset = (lanes & 62914560) === lanes ? globalMostRecentFallbackTime - now() : (lanes & 4194048) === lanes ? globalMostRecentTransitionTime - now() : 0;
6815
+ var timeoutOffset = (lanes & 62914560) === lanes ? globalMostRecentFallbackTime - now2() : (lanes & 4194048) === lanes ? globalMostRecentTransitionTime - now2() : 0;
6738
6816
  timeoutOffset = waitForCommitToBeReady(
6739
6817
  suspendedCommitReason,
6740
6818
  timeoutOffset
6741
6819
  );
6742
6820
  if (null !== timeoutOffset) {
6743
6821
  pendingEffectsLanes = lanes;
6744
- root.cancelPendingCommit = timeoutOffset(
6822
+ root2.cancelPendingCommit = timeoutOffset(
6745
6823
  commitRoot.bind(
6746
6824
  null,
6747
- root,
6825
+ root2,
6748
6826
  finishedWork,
6749
6827
  lanes,
6750
6828
  recoverableErrors,
@@ -6760,12 +6838,12 @@ var require_react_reconciler_production = __commonJS({
6760
6838
  completedRenderEndTime
6761
6839
  )
6762
6840
  );
6763
- markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings);
6841
+ markRootSuspended(root2, lanes, spawnedLane, !didSkipSuspendedSiblings);
6764
6842
  return;
6765
6843
  }
6766
6844
  }
6767
6845
  commitRoot(
6768
- root,
6846
+ root2,
6769
6847
  finishedWork,
6770
6848
  lanes,
6771
6849
  recoverableErrors,
@@ -6804,19 +6882,19 @@ var require_react_reconciler_production = __commonJS({
6804
6882
  }
6805
6883
  return true;
6806
6884
  }
6807
- function markRootSuspended(root, suspendedLanes, spawnedLane, didAttemptEntireTree) {
6885
+ function markRootSuspended(root2, suspendedLanes, spawnedLane, didAttemptEntireTree) {
6808
6886
  suspendedLanes &= ~workInProgressRootPingedLanes;
6809
6887
  suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
6810
- root.suspendedLanes |= suspendedLanes;
6811
- root.pingedLanes &= ~suspendedLanes;
6812
- didAttemptEntireTree && (root.warmLanes |= suspendedLanes);
6813
- didAttemptEntireTree = root.expirationTimes;
6888
+ root2.suspendedLanes |= suspendedLanes;
6889
+ root2.pingedLanes &= ~suspendedLanes;
6890
+ didAttemptEntireTree && (root2.warmLanes |= suspendedLanes);
6891
+ didAttemptEntireTree = root2.expirationTimes;
6814
6892
  for (var lanes = suspendedLanes; 0 < lanes; ) {
6815
6893
  var index$4 = 31 - clz32(lanes), lane = 1 << index$4;
6816
6894
  didAttemptEntireTree[index$4] = -1;
6817
6895
  lanes &= ~lane;
6818
6896
  }
6819
- 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, suspendedLanes);
6897
+ 0 !== spawnedLane && markSpawnedDeferredLane(root2, spawnedLane, suspendedLanes);
6820
6898
  }
6821
6899
  function flushSyncWork() {
6822
6900
  return 0 === (executionContext & 6) ? (flushSyncWorkAcrossRoots_impl(0, false), false) : true;
@@ -6832,44 +6910,44 @@ var require_react_reconciler_production = __commonJS({
6832
6910
  workInProgress = null;
6833
6911
  }
6834
6912
  }
6835
- function prepareFreshStack(root, lanes) {
6836
- var timeoutHandle = root.timeoutHandle;
6837
- timeoutHandle !== noTimeout && (root.timeoutHandle = noTimeout, cancelTimeout(timeoutHandle));
6838
- timeoutHandle = root.cancelPendingCommit;
6839
- null !== timeoutHandle && (root.cancelPendingCommit = null, timeoutHandle());
6913
+ function prepareFreshStack(root2, lanes) {
6914
+ var timeoutHandle = root2.timeoutHandle;
6915
+ timeoutHandle !== noTimeout && (root2.timeoutHandle = noTimeout, cancelTimeout(timeoutHandle));
6916
+ timeoutHandle = root2.cancelPendingCommit;
6917
+ null !== timeoutHandle && (root2.cancelPendingCommit = null, timeoutHandle());
6840
6918
  pendingEffectsLanes = 0;
6841
6919
  resetWorkInProgressStack();
6842
- workInProgressRoot = root;
6843
- workInProgress = timeoutHandle = createWorkInProgress(root.current, null);
6920
+ workInProgressRoot = root2;
6921
+ workInProgress = timeoutHandle = createWorkInProgress(root2.current, null);
6844
6922
  workInProgressRootRenderLanes = lanes;
6845
6923
  workInProgressSuspendedReason = 0;
6846
6924
  workInProgressThrownValue = null;
6847
6925
  workInProgressRootDidSkipSuspendedSiblings = false;
6848
- workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
6926
+ workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root2, lanes);
6849
6927
  workInProgressRootDidAttachPingListener = false;
6850
6928
  workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = workInProgressRootExitStatus = 0;
6851
6929
  workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null;
6852
6930
  workInProgressRootDidIncludeRecursiveRenderUpdate = false;
6853
6931
  0 !== (lanes & 8) && (lanes |= lanes & 32);
6854
- var allEntangledLanes = root.entangledLanes;
6932
+ var allEntangledLanes = root2.entangledLanes;
6855
6933
  if (0 !== allEntangledLanes)
6856
- for (root = root.entanglements, allEntangledLanes &= lanes; 0 < allEntangledLanes; ) {
6934
+ for (root2 = root2.entanglements, allEntangledLanes &= lanes; 0 < allEntangledLanes; ) {
6857
6935
  var index$2 = 31 - clz32(allEntangledLanes), lane = 1 << index$2;
6858
- lanes |= root[index$2];
6936
+ lanes |= root2[index$2];
6859
6937
  allEntangledLanes &= ~lane;
6860
6938
  }
6861
6939
  entangledRenderLanes = lanes;
6862
6940
  finishQueueingConcurrentUpdates();
6863
6941
  return timeoutHandle;
6864
6942
  }
6865
- function handleThrow(root, thrownValue) {
6943
+ function handleThrow(root2, thrownValue) {
6866
6944
  currentlyRenderingFiber = null;
6867
6945
  ReactSharedInternals.H = ContextOnlyDispatcher;
6868
6946
  thrownValue === SuspenseException || thrownValue === SuspenseActionException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 3) : thrownValue === SuspenseyCommitException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 4) : workInProgressSuspendedReason = thrownValue === SelectiveHydrationException ? 8 : null !== thrownValue && "object" === typeof thrownValue && "function" === typeof thrownValue.then ? 6 : 1;
6869
6947
  workInProgressThrownValue = thrownValue;
6870
6948
  null === workInProgress && (workInProgressRootExitStatus = 1, logUncaughtError(
6871
- root,
6872
- createCapturedValueAtFiber(thrownValue, root.current)
6949
+ root2,
6950
+ createCapturedValueAtFiber(thrownValue, root2.current)
6873
6951
  ));
6874
6952
  }
6875
6953
  function shouldRemainOnPreviousScreen() {
@@ -6896,12 +6974,12 @@ var require_react_reconciler_production = __commonJS({
6896
6974
  false
6897
6975
  );
6898
6976
  }
6899
- function renderRootSync(root, lanes, shouldYieldForPrerendering) {
6977
+ function renderRootSync(root2, lanes, shouldYieldForPrerendering) {
6900
6978
  var prevExecutionContext = executionContext;
6901
6979
  executionContext |= 2;
6902
6980
  var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher();
6903
- if (workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes)
6904
- workInProgressTransitions = null, prepareFreshStack(root, lanes);
6981
+ if (workInProgressRoot !== root2 || workInProgressRootRenderLanes !== lanes)
6982
+ workInProgressTransitions = null, prepareFreshStack(root2, lanes);
6905
6983
  lanes = false;
6906
6984
  var exitStatus = workInProgressRootExitStatus;
6907
6985
  a: do
@@ -6921,24 +6999,24 @@ var require_react_reconciler_production = __commonJS({
6921
6999
  var reason = workInProgressSuspendedReason;
6922
7000
  workInProgressSuspendedReason = 0;
6923
7001
  workInProgressThrownValue = null;
6924
- throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
7002
+ throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason);
6925
7003
  if (shouldYieldForPrerendering && workInProgressRootIsPrerendering) {
6926
7004
  exitStatus = 0;
6927
7005
  break a;
6928
7006
  }
6929
7007
  break;
6930
7008
  default:
6931
- reason = workInProgressSuspendedReason, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
7009
+ reason = workInProgressSuspendedReason, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason);
6932
7010
  }
6933
7011
  }
6934
7012
  workLoopSync();
6935
7013
  exitStatus = workInProgressRootExitStatus;
6936
7014
  break;
6937
7015
  } catch (thrownValue$152) {
6938
- handleThrow(root, thrownValue$152);
7016
+ handleThrow(root2, thrownValue$152);
6939
7017
  }
6940
7018
  while (1);
6941
- lanes && root.shellSuspendCounter++;
7019
+ lanes && root2.shellSuspendCounter++;
6942
7020
  lastContextDependency = currentlyRenderingFiber$1 = null;
6943
7021
  executionContext = prevExecutionContext;
6944
7022
  ReactSharedInternals.H = prevDispatcher;
@@ -6949,12 +7027,12 @@ var require_react_reconciler_production = __commonJS({
6949
7027
  function workLoopSync() {
6950
7028
  for (; null !== workInProgress; ) performUnitOfWork(workInProgress);
6951
7029
  }
6952
- function renderRootConcurrent(root, lanes) {
7030
+ function renderRootConcurrent(root2, lanes) {
6953
7031
  var prevExecutionContext = executionContext;
6954
7032
  executionContext |= 2;
6955
7033
  var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher();
6956
- workInProgressRoot !== root || workInProgressRootRenderLanes !== lanes ? (workInProgressTransitions = null, workInProgressRootRenderTargetTime = now() + 500, prepareFreshStack(root, lanes)) : workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
6957
- root,
7034
+ workInProgressRoot !== root2 || workInProgressRootRenderLanes !== lanes ? (workInProgressTransitions = null, workInProgressRootRenderTargetTime = now2() + 500, prepareFreshStack(root2, lanes)) : workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
7035
+ root2,
6958
7036
  lanes
6959
7037
  );
6960
7038
  a: do
@@ -6966,7 +7044,7 @@ var require_react_reconciler_production = __commonJS({
6966
7044
  case 1:
6967
7045
  workInProgressSuspendedReason = 0;
6968
7046
  workInProgressThrownValue = null;
6969
- throwAndUnwindWorkLoop(root, lanes, thrownValue, 1);
7047
+ throwAndUnwindWorkLoop(root2, lanes, thrownValue, 1);
6970
7048
  break;
6971
7049
  case 2:
6972
7050
  case 9:
@@ -6977,8 +7055,8 @@ var require_react_reconciler_production = __commonJS({
6977
7055
  break;
6978
7056
  }
6979
7057
  lanes = function() {
6980
- 2 !== workInProgressSuspendedReason && 9 !== workInProgressSuspendedReason || workInProgressRoot !== root || (workInProgressSuspendedReason = 7);
6981
- ensureRootIsScheduled(root);
7058
+ 2 !== workInProgressSuspendedReason && 9 !== workInProgressSuspendedReason || workInProgressRoot !== root2 || (workInProgressSuspendedReason = 7);
7059
+ ensureRootIsScheduled(root2);
6982
7060
  };
6983
7061
  thrownValue.then(lanes, lanes);
6984
7062
  break a;
@@ -6989,7 +7067,7 @@ var require_react_reconciler_production = __commonJS({
6989
7067
  workInProgressSuspendedReason = 5;
6990
7068
  break a;
6991
7069
  case 7:
6992
- isThenableResolved(thrownValue) ? (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes)) : (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root, lanes, thrownValue, 7));
7070
+ isThenableResolved(thrownValue) ? (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes)) : (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 7));
6993
7071
  break;
6994
7072
  case 5:
6995
7073
  var resource = null;
@@ -7013,12 +7091,12 @@ var require_react_reconciler_production = __commonJS({
7013
7091
  }
7014
7092
  workInProgressSuspendedReason = 0;
7015
7093
  workInProgressThrownValue = null;
7016
- throwAndUnwindWorkLoop(root, lanes, thrownValue, 5);
7094
+ throwAndUnwindWorkLoop(root2, lanes, thrownValue, 5);
7017
7095
  break;
7018
7096
  case 6:
7019
7097
  workInProgressSuspendedReason = 0;
7020
7098
  workInProgressThrownValue = null;
7021
- throwAndUnwindWorkLoop(root, lanes, thrownValue, 6);
7099
+ throwAndUnwindWorkLoop(root2, lanes, thrownValue, 6);
7022
7100
  break;
7023
7101
  case 8:
7024
7102
  resetWorkInProgressStack();
@@ -7031,7 +7109,7 @@ var require_react_reconciler_production = __commonJS({
7031
7109
  workLoopConcurrentByScheduler();
7032
7110
  break;
7033
7111
  } catch (thrownValue$154) {
7034
- handleThrow(root, thrownValue$154);
7112
+ handleThrow(root2, thrownValue$154);
7035
7113
  }
7036
7114
  while (1);
7037
7115
  lastContextDependency = currentlyRenderingFiber$1 = null;
@@ -7090,7 +7168,7 @@ var require_react_reconciler_production = __commonJS({
7090
7168
  unitOfWork.memoizedProps = unitOfWork.pendingProps;
7091
7169
  null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next;
7092
7170
  }
7093
- function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, suspendedReason) {
7171
+ function throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, suspendedReason) {
7094
7172
  lastContextDependency = currentlyRenderingFiber$1 = null;
7095
7173
  resetHooksOnUnwind(unitOfWork);
7096
7174
  thenableState$1 = null;
@@ -7098,7 +7176,7 @@ var require_react_reconciler_production = __commonJS({
7098
7176
  var returnFiber = unitOfWork.return;
7099
7177
  try {
7100
7178
  if (throwException(
7101
- root,
7179
+ root2,
7102
7180
  returnFiber,
7103
7181
  unitOfWork,
7104
7182
  thrownValue,
@@ -7106,8 +7184,8 @@ var require_react_reconciler_production = __commonJS({
7106
7184
  )) {
7107
7185
  workInProgressRootExitStatus = 1;
7108
7186
  logUncaughtError(
7109
- root,
7110
- createCapturedValueAtFiber(thrownValue, root.current)
7187
+ root2,
7188
+ createCapturedValueAtFiber(thrownValue, root2.current)
7111
7189
  );
7112
7190
  workInProgress = null;
7113
7191
  return;
@@ -7116,19 +7194,19 @@ var require_react_reconciler_production = __commonJS({
7116
7194
  if (null !== returnFiber) throw workInProgress = returnFiber, error;
7117
7195
  workInProgressRootExitStatus = 1;
7118
7196
  logUncaughtError(
7119
- root,
7120
- createCapturedValueAtFiber(thrownValue, root.current)
7197
+ root2,
7198
+ createCapturedValueAtFiber(thrownValue, root2.current)
7121
7199
  );
7122
7200
  workInProgress = null;
7123
7201
  return;
7124
7202
  }
7125
7203
  if (unitOfWork.flags & 32768) {
7126
- if (isHydrating || 1 === suspendedReason) root = true;
7204
+ if (isHydrating || 1 === suspendedReason) root2 = true;
7127
7205
  else if (workInProgressRootIsPrerendering || 0 !== (workInProgressRootRenderLanes & 536870912))
7128
- root = false;
7129
- else if (workInProgressRootDidSkipSuspendedSiblings = root = true, 2 === suspendedReason || 9 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason)
7206
+ root2 = false;
7207
+ else if (workInProgressRootDidSkipSuspendedSiblings = root2 = true, 2 === suspendedReason || 9 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason)
7130
7208
  suspendedReason = suspenseHandlerStackCursor.current, null !== suspendedReason && 13 === suspendedReason.tag && (suspendedReason.flags |= 16384);
7131
- unwindUnitOfWork(unitOfWork, root);
7209
+ unwindUnitOfWork(unitOfWork, root2);
7132
7210
  } else completeUnitOfWork(unitOfWork);
7133
7211
  }
7134
7212
  function completeUnitOfWork(unitOfWork) {
@@ -7179,36 +7257,36 @@ var require_react_reconciler_production = __commonJS({
7179
7257
  workInProgressRootExitStatus = 6;
7180
7258
  workInProgress = null;
7181
7259
  }
7182
- function commitRoot(root, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes) {
7183
- root.cancelPendingCommit = null;
7260
+ function commitRoot(root2, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes) {
7261
+ root2.cancelPendingCommit = null;
7184
7262
  do
7185
7263
  flushPendingEffects();
7186
7264
  while (0 !== pendingEffectsStatus);
7187
7265
  if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
7188
7266
  if (null !== finishedWork) {
7189
- if (finishedWork === root.current)
7267
+ if (finishedWork === root2.current)
7190
7268
  throw Error(formatProdErrorMessage(177));
7191
7269
  didIncludeRenderPhaseUpdate = finishedWork.lanes | finishedWork.childLanes;
7192
7270
  didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes;
7193
7271
  markRootFinished(
7194
- root,
7272
+ root2,
7195
7273
  lanes,
7196
7274
  didIncludeRenderPhaseUpdate,
7197
7275
  spawnedLane,
7198
7276
  updatedLanes,
7199
7277
  suspendedRetryLanes
7200
7278
  );
7201
- root === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0);
7279
+ root2 === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0);
7202
7280
  pendingFinishedWork = finishedWork;
7203
- pendingEffectsRoot = root;
7281
+ pendingEffectsRoot = root2;
7204
7282
  pendingEffectsLanes = lanes;
7205
7283
  pendingEffectsRemainingLanes = didIncludeRenderPhaseUpdate;
7206
7284
  pendingPassiveTransitions = transitions;
7207
7285
  pendingRecoverableErrors = recoverableErrors;
7208
- 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) ? (root.callbackNode = null, root.callbackPriority = 0, scheduleCallback(NormalPriority$1, function() {
7286
+ 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) ? (root2.callbackNode = null, root2.callbackPriority = 0, scheduleCallback(NormalPriority$1, function() {
7209
7287
  flushPassiveEffects();
7210
7288
  return null;
7211
- })) : (root.callbackNode = null, root.callbackPriority = 0);
7289
+ })) : (root2.callbackNode = null, root2.callbackPriority = 0);
7212
7290
  recoverableErrors = 0 !== (finishedWork.flags & 13878);
7213
7291
  if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) {
7214
7292
  recoverableErrors = ReactSharedInternals.T;
@@ -7218,7 +7296,7 @@ var require_react_reconciler_production = __commonJS({
7218
7296
  spawnedLane = executionContext;
7219
7297
  executionContext |= 4;
7220
7298
  try {
7221
- commitBeforeMutationEffects(root, finishedWork, lanes);
7299
+ commitBeforeMutationEffects(root2, finishedWork, lanes);
7222
7300
  } finally {
7223
7301
  executionContext = spawnedLane, setCurrentUpdatePriority(transitions), ReactSharedInternals.T = recoverableErrors;
7224
7302
  }
@@ -7232,7 +7310,7 @@ var require_react_reconciler_production = __commonJS({
7232
7310
  function flushMutationEffects() {
7233
7311
  if (1 === pendingEffectsStatus) {
7234
7312
  pendingEffectsStatus = 0;
7235
- var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
7313
+ var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
7236
7314
  if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {
7237
7315
  rootMutationHasEffect = ReactSharedInternals.T;
7238
7316
  ReactSharedInternals.T = null;
@@ -7241,19 +7319,19 @@ var require_react_reconciler_production = __commonJS({
7241
7319
  var prevExecutionContext = executionContext;
7242
7320
  executionContext |= 4;
7243
7321
  try {
7244
- commitMutationEffectsOnFiber(finishedWork, root), resetAfterCommit(root.containerInfo);
7322
+ commitMutationEffectsOnFiber(finishedWork, root2), resetAfterCommit(root2.containerInfo);
7245
7323
  } finally {
7246
7324
  executionContext = prevExecutionContext, setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = rootMutationHasEffect;
7247
7325
  }
7248
7326
  }
7249
- root.current = finishedWork;
7327
+ root2.current = finishedWork;
7250
7328
  pendingEffectsStatus = 2;
7251
7329
  }
7252
7330
  }
7253
7331
  function flushLayoutEffects() {
7254
7332
  if (2 === pendingEffectsStatus) {
7255
7333
  pendingEffectsStatus = 0;
7256
- var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
7334
+ var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
7257
7335
  if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {
7258
7336
  rootHasLayoutEffect = ReactSharedInternals.T;
7259
7337
  ReactSharedInternals.T = null;
@@ -7262,7 +7340,7 @@ var require_react_reconciler_production = __commonJS({
7262
7340
  var prevExecutionContext = executionContext;
7263
7341
  executionContext |= 4;
7264
7342
  try {
7265
- commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);
7343
+ commitLayoutEffectOnFiber(root2, finishedWork.alternate, finishedWork);
7266
7344
  } finally {
7267
7345
  executionContext = prevExecutionContext, setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = rootHasLayoutEffect;
7268
7346
  }
@@ -7274,9 +7352,9 @@ var require_react_reconciler_production = __commonJS({
7274
7352
  if (4 === pendingEffectsStatus || 3 === pendingEffectsStatus) {
7275
7353
  pendingEffectsStatus = 0;
7276
7354
  requestPaint();
7277
- var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, recoverableErrors = pendingRecoverableErrors;
7278
- 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) ? pendingEffectsStatus = 5 : (pendingEffectsStatus = 0, pendingFinishedWork = pendingEffectsRoot = null, releaseRootPooledCache(root, root.pendingLanes));
7279
- var remainingLanes = root.pendingLanes;
7355
+ var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, recoverableErrors = pendingRecoverableErrors;
7356
+ 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) ? pendingEffectsStatus = 5 : (pendingEffectsStatus = 0, pendingFinishedWork = pendingEffectsRoot = null, releaseRootPooledCache(root2, root2.pendingLanes));
7357
+ var remainingLanes = root2.pendingLanes;
7280
7358
  0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
7281
7359
  lanesToEventPriority(lanes);
7282
7360
  finishedWork = finishedWork.stateNode;
@@ -7296,7 +7374,7 @@ var require_react_reconciler_production = __commonJS({
7296
7374
  setCurrentUpdatePriority(2);
7297
7375
  ReactSharedInternals.T = null;
7298
7376
  try {
7299
- for (var onRecoverableError = root.onRecoverableError, i = 0; i < recoverableErrors.length; i++) {
7377
+ for (var onRecoverableError = root2.onRecoverableError, i = 0; i < recoverableErrors.length; i++) {
7300
7378
  var recoverableError = recoverableErrors[i];
7301
7379
  onRecoverableError(recoverableError.value, {
7302
7380
  componentStack: recoverableError.stack
@@ -7307,15 +7385,15 @@ var require_react_reconciler_production = __commonJS({
7307
7385
  }
7308
7386
  }
7309
7387
  0 !== (pendingEffectsLanes & 3) && flushPendingEffects();
7310
- ensureRootIsScheduled(root);
7311
- remainingLanes = root.pendingLanes;
7312
- 0 !== (lanes & 261930) && 0 !== (remainingLanes & 42) ? root === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root) : nestedUpdateCount = 0;
7388
+ ensureRootIsScheduled(root2);
7389
+ remainingLanes = root2.pendingLanes;
7390
+ 0 !== (lanes & 261930) && 0 !== (remainingLanes & 42) ? root2 === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root2) : nestedUpdateCount = 0;
7313
7391
  supportsHydration && flushHydrationEvents();
7314
7392
  flushSyncWorkAcrossRoots_impl(0, false);
7315
7393
  }
7316
7394
  }
7317
- function releaseRootPooledCache(root, remainingLanes) {
7318
- 0 === (root.pooledCacheLanes &= remainingLanes) && (remainingLanes = root.pooledCache, null != remainingLanes && (root.pooledCache = null, releaseCache(remainingLanes)));
7395
+ function releaseRootPooledCache(root2, remainingLanes) {
7396
+ 0 === (root2.pooledCacheLanes &= remainingLanes) && (remainingLanes = root2.pooledCache, null != remainingLanes && (root2.pooledCache = null, releaseCache(remainingLanes)));
7319
7397
  }
7320
7398
  function flushPendingEffects() {
7321
7399
  flushMutationEffects();
@@ -7325,7 +7403,7 @@ var require_react_reconciler_production = __commonJS({
7325
7403
  }
7326
7404
  function flushPassiveEffects() {
7327
7405
  if (5 !== pendingEffectsStatus) return false;
7328
- var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes;
7406
+ var root2 = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes;
7329
7407
  pendingEffectsRemainingLanes = 0;
7330
7408
  var renderPriority = lanesToEventPriority(pendingEffectsLanes), priority = 32 > renderPriority ? 32 : renderPriority;
7331
7409
  renderPriority = ReactSharedInternals.T;
@@ -7359,7 +7437,7 @@ var require_react_reconciler_production = __commonJS({
7359
7437
  }
7360
7438
  return true;
7361
7439
  } finally {
7362
- setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = renderPriority, releaseRootPooledCache(root, remainingLanes);
7440
+ setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = renderPriority, releaseRootPooledCache(root2, remainingLanes);
7363
7441
  }
7364
7442
  }
7365
7443
  function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
@@ -7398,23 +7476,23 @@ var require_react_reconciler_production = __commonJS({
7398
7476
  nearestMountedAncestor = nearestMountedAncestor.return;
7399
7477
  }
7400
7478
  }
7401
- function attachPingListener(root, wakeable, lanes) {
7402
- var pingCache = root.pingCache;
7479
+ function attachPingListener(root2, wakeable, lanes) {
7480
+ var pingCache = root2.pingCache;
7403
7481
  if (null === pingCache) {
7404
- pingCache = root.pingCache = new PossiblyWeakMap();
7482
+ pingCache = root2.pingCache = new PossiblyWeakMap();
7405
7483
  var threadIDs = /* @__PURE__ */ new Set();
7406
7484
  pingCache.set(wakeable, threadIDs);
7407
7485
  } else
7408
7486
  threadIDs = pingCache.get(wakeable), void 0 === threadIDs && (threadIDs = /* @__PURE__ */ new Set(), pingCache.set(wakeable, threadIDs));
7409
- threadIDs.has(lanes) || (workInProgressRootDidAttachPingListener = true, threadIDs.add(lanes), root = pingSuspendedRoot.bind(null, root, wakeable, lanes), wakeable.then(root, root));
7487
+ threadIDs.has(lanes) || (workInProgressRootDidAttachPingListener = true, threadIDs.add(lanes), root2 = pingSuspendedRoot.bind(null, root2, wakeable, lanes), wakeable.then(root2, root2));
7410
7488
  }
7411
- function pingSuspendedRoot(root, wakeable, pingedLanes) {
7412
- var pingCache = root.pingCache;
7489
+ function pingSuspendedRoot(root2, wakeable, pingedLanes) {
7490
+ var pingCache = root2.pingCache;
7413
7491
  null !== pingCache && pingCache.delete(wakeable);
7414
- root.pingedLanes |= root.suspendedLanes & pingedLanes;
7415
- root.warmLanes &= ~pingedLanes;
7416
- workInProgressRoot === root && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes && 300 > now() - globalMostRecentFallbackTime ? 0 === (executionContext & 2) && prepareFreshStack(root, 0) : workInProgressRootPingedLanes |= pingedLanes, workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes && (workInProgressSuspendedRetryLanes = 0));
7417
- ensureRootIsScheduled(root);
7492
+ root2.pingedLanes |= root2.suspendedLanes & pingedLanes;
7493
+ root2.warmLanes &= ~pingedLanes;
7494
+ workInProgressRoot === root2 && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes && 300 > now2() - globalMostRecentFallbackTime ? 0 === (executionContext & 2) && prepareFreshStack(root2, 0) : workInProgressRootPingedLanes |= pingedLanes, workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes && (workInProgressSuspendedRetryLanes = 0));
7495
+ ensureRootIsScheduled(root2);
7418
7496
  }
7419
7497
  function retryTimedOutBoundary(boundaryFiber, retryLane) {
7420
7498
  0 === retryLane && (retryLane = claimNextRetryLane());
@@ -7689,7 +7767,7 @@ var require_react_reconciler_production = __commonJS({
7689
7767
  }
7690
7768
  var exports2 = {};
7691
7769
  "use strict";
7692
- var React6 = __require("react"), Scheduler = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
7770
+ var React6 = require_react(), Scheduler = require_scheduler(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.element"), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
7693
7771
  /* @__PURE__ */ Symbol.for("react.scope");
7694
7772
  var REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity");
7695
7773
  /* @__PURE__ */ Symbol.for("react.legacy_hidden");
@@ -7746,7 +7824,7 @@ var require_react_reconciler_production = __commonJS({
7746
7824
  $$$config.diffHydratedPropsForDevWarnings;
7747
7825
  $$$config.diffHydratedTextForDevWarnings;
7748
7826
  $$$config.describeHydratableInstanceForDevWarnings;
7749
- var validateHydratableInstance = $$$config.validateHydratableInstance, validateHydratableTextInstance = $$$config.validateHydratableTextInstance, supportsResources = $$$config.supportsResources, isHostHoistableType = $$$config.isHostHoistableType, getHoistableRoot = $$$config.getHoistableRoot, getResource = $$$config.getResource, acquireResource = $$$config.acquireResource, releaseResource = $$$config.releaseResource, hydrateHoistable = $$$config.hydrateHoistable, mountHoistable = $$$config.mountHoistable, unmountHoistable = $$$config.unmountHoistable, createHoistableInstance = $$$config.createHoistableInstance, prepareToCommitHoistables = $$$config.prepareToCommitHoistables, mayResourceSuspendCommit = $$$config.mayResourceSuspendCommit, preloadResource = $$$config.preloadResource, suspendResource = $$$config.suspendResource, supportsSingletons = $$$config.supportsSingletons, resolveSingletonInstance = $$$config.resolveSingletonInstance, acquireSingletonInstance = $$$config.acquireSingletonInstance, releaseSingletonInstance = $$$config.releaseSingletonInstance, isHostSingletonType = $$$config.isHostSingletonType, isSingletonScope = $$$config.isSingletonScope, valueStack = [], index$jscomp$0 = -1, emptyContextObject = {}, clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, log$1 = Math.log, LN2 = Math.LN2, nextTransitionUpdateLane = 256, nextTransitionDeferredLane = 262144, nextRetryLane = 4194304, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, requestPaint = Scheduler.unstable_requestPaint, now = Scheduler.unstable_now, ImmediatePriority = Scheduler.unstable_ImmediatePriority, UserBlockingPriority = Scheduler.unstable_UserBlockingPriority, NormalPriority$1 = Scheduler.unstable_NormalPriority, IdlePriority = Scheduler.unstable_IdlePriority, log = Scheduler.log, unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue, rendererID = null, injectedHook = null, objectIs = "function" === typeof Object.is ? Object.is : is, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
7827
+ var validateHydratableInstance = $$$config.validateHydratableInstance, validateHydratableTextInstance = $$$config.validateHydratableTextInstance, supportsResources = $$$config.supportsResources, isHostHoistableType = $$$config.isHostHoistableType, getHoistableRoot = $$$config.getHoistableRoot, getResource = $$$config.getResource, acquireResource = $$$config.acquireResource, releaseResource = $$$config.releaseResource, hydrateHoistable = $$$config.hydrateHoistable, mountHoistable = $$$config.mountHoistable, unmountHoistable = $$$config.unmountHoistable, createHoistableInstance = $$$config.createHoistableInstance, prepareToCommitHoistables = $$$config.prepareToCommitHoistables, mayResourceSuspendCommit = $$$config.mayResourceSuspendCommit, preloadResource = $$$config.preloadResource, suspendResource = $$$config.suspendResource, supportsSingletons = $$$config.supportsSingletons, resolveSingletonInstance = $$$config.resolveSingletonInstance, acquireSingletonInstance = $$$config.acquireSingletonInstance, releaseSingletonInstance = $$$config.releaseSingletonInstance, isHostSingletonType = $$$config.isHostSingletonType, isSingletonScope = $$$config.isSingletonScope, valueStack = [], index$jscomp$0 = -1, emptyContextObject = {}, clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, log$1 = Math.log, LN2 = Math.LN2, nextTransitionUpdateLane = 256, nextTransitionDeferredLane = 262144, nextRetryLane = 4194304, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, requestPaint = Scheduler.unstable_requestPaint, now2 = Scheduler.unstable_now, ImmediatePriority = Scheduler.unstable_ImmediatePriority, UserBlockingPriority = Scheduler.unstable_UserBlockingPriority, NormalPriority$1 = Scheduler.unstable_NormalPriority, IdlePriority = Scheduler.unstable_IdlePriority, log = Scheduler.log, unstable_setDisableYieldValue = Scheduler.unstable_setDisableYieldValue, rendererID = null, injectedHook = null, objectIs = "function" === typeof Object.is ? Object.is : is, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
7750
7828
  if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
7751
7829
  var event = new window.ErrorEvent("error", {
7752
7830
  bubbles: true,
@@ -7760,7 +7838,7 @@ var require_react_reconciler_production = __commonJS({
7760
7838
  return;
7761
7839
  }
7762
7840
  console.error(error);
7763
- }, hasOwnProperty = Object.prototype.hasOwnProperty, prefix, suffix, reentry = false, CapturedStacks = /* @__PURE__ */ new WeakMap(), forkStack = [], forkStackIndex = 0, treeForkProvider = null, treeForkCount = 0, idStack = [], idStackIndex = 0, treeContextProvider = null, treeContextId = 1, treeContextOverflow = "", contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null), hostTransitionProviderCursor = createCursor(null), hydrationParentFiber = null, nextHydratableInstance = null, isHydrating = false, hydrationErrors = null, rootOrSingletonContext = false, HydrationMismatchException = Error(formatProdErrorMessage(519)), valueCursor = createCursor(null), currentlyRenderingFiber$1 = null, lastContextDependency = null, AbortControllerLocal = "undefined" !== typeof AbortController ? AbortController : function() {
7841
+ }, hasOwnProperty2 = Object.prototype.hasOwnProperty, prefix, suffix, reentry = false, CapturedStacks = /* @__PURE__ */ new WeakMap(), forkStack = [], forkStackIndex = 0, treeForkProvider = null, treeForkCount = 0, idStack = [], idStackIndex = 0, treeContextProvider = null, treeContextId = 1, treeContextOverflow = "", contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null), hostTransitionProviderCursor = createCursor(null), hydrationParentFiber = null, nextHydratableInstance = null, isHydrating = false, hydrationErrors = null, rootOrSingletonContext = false, HydrationMismatchException = Error(formatProdErrorMessage(519)), valueCursor = createCursor(null), currentlyRenderingFiber$1 = null, lastContextDependency = null, AbortControllerLocal = "undefined" !== typeof AbortController ? AbortController : function() {
7764
7842
  var listeners = [], signal = this.signal = {
7765
7843
  aborted: false,
7766
7844
  addEventListener: function(type, listener) {
@@ -7782,7 +7860,7 @@ var require_react_reconciler_production = __commonJS({
7782
7860
  _threadCount: 0
7783
7861
  }, firstScheduledRoot = null, lastScheduledRoot = null, didScheduleMicrotask = false, mightHavePendingSyncWork = false, isFlushingWork = false, currentEventTransitionLane = 0, currentEntangledListeners = null, currentEntangledPendingCount = 0, currentEntangledLane = 0, currentEntangledActionThenable = null, prevOnStartTransitionFinish = ReactSharedInternals.S;
7784
7862
  ReactSharedInternals.S = function(transition, returnValue) {
7785
- globalMostRecentTransitionTime = now();
7863
+ globalMostRecentTransitionTime = now2();
7786
7864
  "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && entangleAsyncAction(transition, returnValue);
7787
7865
  null !== prevOnStartTransitionFinish && prevOnStartTransitionFinish(transition, returnValue);
7788
7866
  };
@@ -8147,8 +8225,8 @@ var require_react_reconciler_production = __commonJS({
8147
8225
  var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, executionContext = 0, workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = false, workInProgressRootIsPrerendering = false, workInProgressRootDidAttachPingListener = false, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, workInProgressRootSkippedLanes = 0, workInProgressRootInterleavedUpdatedLanes = 0, workInProgressRootPingedLanes = 0, workInProgressDeferredLane = 0, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, workInProgressRootDidIncludeRecursiveRenderUpdate = false, globalMostRecentFallbackTime = 0, globalMostRecentTransitionTime = 0, workInProgressRootRenderTargetTime = Infinity, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, pendingEffectsLanes = 0, pendingEffectsRemainingLanes = 0, pendingPassiveTransitions = null, pendingRecoverableErrors = null, nestedUpdateCount = 0, rootWithNestedUpdates = null;
8148
8226
  exports2.attemptContinuousHydration = function(fiber) {
8149
8227
  if (13 === fiber.tag || 31 === fiber.tag) {
8150
- var root = enqueueConcurrentRenderForLane(fiber, 67108864);
8151
- null !== root && scheduleUpdateOnFiber(root, fiber, 67108864);
8228
+ var root2 = enqueueConcurrentRenderForLane(fiber, 67108864);
8229
+ null !== root2 && scheduleUpdateOnFiber(root2, fiber, 67108864);
8152
8230
  markRetryLaneIfNotHydrated(fiber, 67108864);
8153
8231
  }
8154
8232
  };
@@ -8156,8 +8234,8 @@ var require_react_reconciler_production = __commonJS({
8156
8234
  if (13 === fiber.tag || 31 === fiber.tag) {
8157
8235
  var lane = requestUpdateLane();
8158
8236
  lane = getBumpedLaneForHydrationByLane(lane);
8159
- var root = enqueueConcurrentRenderForLane(fiber, lane);
8160
- null !== root && scheduleUpdateOnFiber(root, fiber, lane);
8237
+ var root2 = enqueueConcurrentRenderForLane(fiber, lane);
8238
+ null !== root2 && scheduleUpdateOnFiber(root2, fiber, lane);
8161
8239
  markRetryLaneIfNotHydrated(fiber, lane);
8162
8240
  }
8163
8241
  };
@@ -8175,7 +8253,7 @@ var require_react_reconciler_production = __commonJS({
8175
8253
  lanes &= ~lane;
8176
8254
  }
8177
8255
  ensureRootIsScheduled(fiber);
8178
- 0 === (executionContext & 6) && (workInProgressRootRenderTargetTime = now() + 500, flushSyncWorkAcrossRoots_impl(0, false));
8256
+ 0 === (executionContext & 6) && (workInProgressRootRenderTargetTime = now2() + 500, flushSyncWorkAcrossRoots_impl(0, false));
8179
8257
  }
8180
8258
  }
8181
8259
  break;
@@ -8278,7 +8356,7 @@ var require_react_reconciler_production = __commonJS({
8278
8356
  try {
8279
8357
  return setCurrentUpdatePriority(2), ReactSharedInternals.T = null, fn(a, b, c, d);
8280
8358
  } finally {
8281
- setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = prevTransition, 0 === executionContext && (workInProgressRootRenderTargetTime = now() + 500);
8359
+ setCurrentUpdatePriority(previousPriority), ReactSharedInternals.T = prevTransition, 0 === executionContext && (workInProgressRootRenderTargetTime = now2() + 500);
8282
8360
  }
8283
8361
  };
8284
8362
  exports2.findAllNodes = findAllNodes;
@@ -8433,7 +8511,7 @@ var require_react_reconciler_production = __commonJS({
8433
8511
  queue,
8434
8512
  pendingState,
8435
8513
  NotPendingTransition,
8436
- null === action ? noop3 : function() {
8514
+ null === action ? noop2 : function() {
8437
8515
  var stateHook = ensureFormComponentIsStateful(formFiber);
8438
8516
  null === stateHook.next && (stateHook = formFiber.alternate.memoizedState);
8439
8517
  dispatchSetStateInternal(
@@ -8514,6 +8592,140 @@ var require_constants = __commonJS({
8514
8592
  }
8515
8593
  });
8516
8594
 
8595
+ // node_modules/lodash.debounce/index.js
8596
+ var require_lodash = __commonJS({
8597
+ "node_modules/lodash.debounce/index.js"(exports, module) {
8598
+ "use strict";
8599
+ var FUNC_ERROR_TEXT3 = "Expected a function";
8600
+ var NAN2 = 0 / 0;
8601
+ var symbolTag2 = "[object Symbol]";
8602
+ var reTrim = /^\s+|\s+$/g;
8603
+ var reIsBadHex2 = /^[-+]0x[0-9a-f]+$/i;
8604
+ var reIsBinary2 = /^0b[01]+$/i;
8605
+ var reIsOctal2 = /^0o[0-7]+$/i;
8606
+ var freeParseInt2 = parseInt;
8607
+ var freeGlobal2 = typeof global == "object" && global && global.Object === Object && global;
8608
+ var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
8609
+ var root2 = freeGlobal2 || freeSelf2 || Function("return this")();
8610
+ var objectProto3 = Object.prototype;
8611
+ var objectToString2 = objectProto3.toString;
8612
+ var nativeMax2 = Math.max;
8613
+ var nativeMin2 = Math.min;
8614
+ var now2 = function() {
8615
+ return root2.Date.now();
8616
+ };
8617
+ function debounce3(func, wait, options) {
8618
+ var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
8619
+ if (typeof func != "function") {
8620
+ throw new TypeError(FUNC_ERROR_TEXT3);
8621
+ }
8622
+ wait = toNumber2(wait) || 0;
8623
+ if (isObject2(options)) {
8624
+ leading = !!options.leading;
8625
+ maxing = "maxWait" in options;
8626
+ maxWait = maxing ? nativeMax2(toNumber2(options.maxWait) || 0, wait) : maxWait;
8627
+ trailing = "trailing" in options ? !!options.trailing : trailing;
8628
+ }
8629
+ function invokeFunc(time) {
8630
+ var args = lastArgs, thisArg = lastThis;
8631
+ lastArgs = lastThis = void 0;
8632
+ lastInvokeTime = time;
8633
+ result = func.apply(thisArg, args);
8634
+ return result;
8635
+ }
8636
+ function leadingEdge2(time) {
8637
+ lastInvokeTime = time;
8638
+ timerId = setTimeout(timerExpired, wait);
8639
+ return leading ? invokeFunc(time) : result;
8640
+ }
8641
+ function remainingWait(time) {
8642
+ var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, result2 = wait - timeSinceLastCall;
8643
+ return maxing ? nativeMin2(result2, maxWait - timeSinceLastInvoke) : result2;
8644
+ }
8645
+ function shouldInvoke(time) {
8646
+ var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
8647
+ return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
8648
+ }
8649
+ function timerExpired() {
8650
+ var time = now2();
8651
+ if (shouldInvoke(time)) {
8652
+ return trailingEdge2(time);
8653
+ }
8654
+ timerId = setTimeout(timerExpired, remainingWait(time));
8655
+ }
8656
+ function trailingEdge2(time) {
8657
+ timerId = void 0;
8658
+ if (trailing && lastArgs) {
8659
+ return invokeFunc(time);
8660
+ }
8661
+ lastArgs = lastThis = void 0;
8662
+ return result;
8663
+ }
8664
+ function cancel() {
8665
+ if (timerId !== void 0) {
8666
+ clearTimeout(timerId);
8667
+ }
8668
+ lastInvokeTime = 0;
8669
+ lastArgs = lastCallTime = lastThis = timerId = void 0;
8670
+ }
8671
+ function flush() {
8672
+ return timerId === void 0 ? result : trailingEdge2(now2());
8673
+ }
8674
+ function debounced() {
8675
+ var time = now2(), isInvoking = shouldInvoke(time);
8676
+ lastArgs = arguments;
8677
+ lastThis = this;
8678
+ lastCallTime = time;
8679
+ if (isInvoking) {
8680
+ if (timerId === void 0) {
8681
+ return leadingEdge2(lastCallTime);
8682
+ }
8683
+ if (maxing) {
8684
+ timerId = setTimeout(timerExpired, wait);
8685
+ return invokeFunc(lastCallTime);
8686
+ }
8687
+ }
8688
+ if (timerId === void 0) {
8689
+ timerId = setTimeout(timerExpired, wait);
8690
+ }
8691
+ return result;
8692
+ }
8693
+ debounced.cancel = cancel;
8694
+ debounced.flush = flush;
8695
+ return debounced;
8696
+ }
8697
+ function isObject2(value) {
8698
+ var type = typeof value;
8699
+ return !!value && (type == "object" || type == "function");
8700
+ }
8701
+ function isObjectLike2(value) {
8702
+ return !!value && typeof value == "object";
8703
+ }
8704
+ function isSymbol2(value) {
8705
+ return typeof value == "symbol" || isObjectLike2(value) && objectToString2.call(value) == symbolTag2;
8706
+ }
8707
+ function toNumber2(value) {
8708
+ if (typeof value == "number") {
8709
+ return value;
8710
+ }
8711
+ if (isSymbol2(value)) {
8712
+ return NAN2;
8713
+ }
8714
+ if (isObject2(value)) {
8715
+ var other = typeof value.valueOf == "function" ? value.valueOf() : value;
8716
+ value = isObject2(other) ? other + "" : other;
8717
+ }
8718
+ if (typeof value != "string") {
8719
+ return value === 0 ? value : +value;
8720
+ }
8721
+ value = value.replace(reTrim, "");
8722
+ var isBinary = reIsBinary2.test(value);
8723
+ return isBinary || reIsOctal2.test(value) ? freeParseInt2(value.slice(2), isBinary ? 2 : 8) : reIsBadHex2.test(value) ? NAN2 : +value;
8724
+ }
8725
+ module.exports = debounce3;
8726
+ }
8727
+ });
8728
+
8517
8729
  // node_modules/escape-string-regexp/index.js
8518
8730
  var require_escape_string_regexp = __commonJS({
8519
8731
  "node_modules/escape-string-regexp/index.js"(exports, module) {
@@ -8782,10 +8994,10 @@ var require_stack_utils = __commonJS({
8782
8994
  });
8783
8995
 
8784
8996
  // src/claude-ink/index.ts
8785
- import { useMemo as useMemo3 } from "react";
8997
+ var import_react16 = __toESM(require_react(), 1);
8786
8998
 
8787
8999
  // src/claude-ink/components/Box.tsx
8788
- import { c as _c } from "react/compiler-runtime";
9000
+ var import_compiler_runtime = __toESM(require_compiler_runtime(), 1);
8789
9001
 
8790
9002
  // src/utils/debug.ts
8791
9003
  function logForDebugging(_message) {
@@ -8801,9 +9013,9 @@ function ifNotInteger(value, name) {
8801
9013
  }
8802
9014
 
8803
9015
  // src/claude-ink/components/Box.tsx
8804
- import { jsx } from "react/jsx-runtime";
9016
+ var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
8805
9017
  function Box(t0) {
8806
- const $ = _c(42);
9018
+ const $ = (0, import_compiler_runtime.c)(42);
8807
9019
  let autoFocus;
8808
9020
  let children;
8809
9021
  let flexDirection;
@@ -8943,7 +9155,7 @@ function Box(t0) {
8943
9155
  }
8944
9156
  let t4;
8945
9157
  if ($[27] !== autoFocus || $[28] !== children || $[29] !== onBlur || $[30] !== onBlurCapture || $[31] !== onClick || $[32] !== onFocus || $[33] !== onFocusCapture || $[34] !== onKeyDown || $[35] !== onKeyDownCapture || $[36] !== onMouseEnter || $[37] !== onMouseLeave || $[38] !== ref || $[39] !== t3 || $[40] !== tabIndex) {
8946
- t4 = /* @__PURE__ */ jsx("ink-box", { ref, tabIndex, autoFocus, onClick, onFocus, onFocusCapture, onBlur, onBlurCapture, onMouseEnter, onMouseLeave, onKeyDown, onKeyDownCapture, style: t3, children });
9158
+ t4 = /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ink-box", { ref, tabIndex, autoFocus, onClick, onFocus, onFocusCapture, onBlur, onBlurCapture, onMouseEnter, onMouseLeave, onKeyDown, onKeyDownCapture, style: t3, children });
8947
9159
  $[27] = autoFocus;
8948
9160
  $[28] = children;
8949
9161
  $[29] = onBlur;
@@ -8967,8 +9179,8 @@ function Box(t0) {
8967
9179
  var Box_default = Box;
8968
9180
 
8969
9181
  // src/claude-ink/components/Text.tsx
8970
- import { c as _c2 } from "react/compiler-runtime";
8971
- import { jsx as jsx2 } from "react/jsx-runtime";
9182
+ var import_compiler_runtime2 = __toESM(require_compiler_runtime(), 1);
9183
+ var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
8972
9184
  var memoizedStylesForWrap = {
8973
9185
  wrap: {
8974
9186
  flexGrow: 0,
@@ -9020,7 +9232,7 @@ var memoizedStylesForWrap = {
9020
9232
  }
9021
9233
  };
9022
9234
  function Text(t0) {
9023
- const $ = _c2(29);
9235
+ const $ = (0, import_compiler_runtime2.c)(29);
9024
9236
  const {
9025
9237
  color,
9026
9238
  backgroundColor,
@@ -9149,7 +9361,7 @@ function Text(t0) {
9149
9361
  const t15 = memoizedStylesForWrap[wrap];
9150
9362
  let t16;
9151
9363
  if ($[25] !== children || $[26] !== t15 || $[27] !== textStyles) {
9152
- t16 = /* @__PURE__ */ jsx2("ink-text", { style: t15, textStyles, children });
9364
+ t16 = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("ink-text", { style: t15, textStyles, children });
9153
9365
  $[25] = children;
9154
9366
  $[26] = t15;
9155
9367
  $[27] = textStyles;
@@ -9161,7 +9373,7 @@ function Text(t0) {
9161
9373
  }
9162
9374
 
9163
9375
  // src/claude-ink/components/ScrollBox.tsx
9164
- import { useImperativeHandle, useRef, useState } from "react";
9376
+ var import_react = __toESM(require_react(), 1);
9165
9377
 
9166
9378
  // src/bootstrap/state.ts
9167
9379
  var lastInteraction = Date.now();
@@ -11327,8 +11539,10 @@ function createLayoutNode() {
11327
11539
  return createYogaLayoutNode();
11328
11540
  }
11329
11541
 
11330
- // src/claude-ink/stringWidth.ts
11331
- import emojiRegex from "emoji-regex";
11542
+ // node_modules/emoji-regex/index.mjs
11543
+ var emoji_regex_default = () => {
11544
+ 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;
11545
+ };
11332
11546
 
11333
11547
  // node_modules/get-east-asian-width/lookup-data.js
11334
11548
  var ambiguousMinimalCodePoint = 161;
@@ -11436,7 +11650,7 @@ function stripAnsi(string) {
11436
11650
  }
11437
11651
 
11438
11652
  // src/claude-ink/stringWidth.ts
11439
- var EMOJI_REGEX = emojiRegex();
11653
+ var EMOJI_REGEX = emoji_regex_default();
11440
11654
  function stringWidthJavaScript(str) {
11441
11655
  if (typeof str !== "string" || str.length === 0) {
11442
11656
  return 0;
@@ -13273,9 +13487,9 @@ var clearYogaNodeReferences = (node) => {
13273
13487
  }
13274
13488
  node.yogaNode = void 0;
13275
13489
  };
13276
- function findOwnerChainAtRow(root, y) {
13490
+ function findOwnerChainAtRow(root2, y) {
13277
13491
  let best = [];
13278
- walk(root, 0);
13492
+ walk(root2, 0);
13279
13493
  return best;
13280
13494
  function walk(node, offsetY) {
13281
13495
  const yoga = node.yogaNode;
@@ -13586,12 +13800,12 @@ var FocusManager = class {
13586
13800
  * Handles both the exact node and any focused descendant within
13587
13801
  * the removed subtree. Dispatches blur and restores focus from stack.
13588
13802
  */
13589
- handleNodeRemoved(node, root) {
13803
+ handleNodeRemoved(node, root2) {
13590
13804
  this.focusStack = this.focusStack.filter(
13591
- (n) => n !== node && isInTree(n, root)
13805
+ (n) => n !== node && isInTree(n, root2)
13592
13806
  );
13593
13807
  if (!this.activeElement) return;
13594
- if (this.activeElement !== node && isInTree(this.activeElement, root)) {
13808
+ if (this.activeElement !== node && isInTree(this.activeElement, root2)) {
13595
13809
  return;
13596
13810
  }
13597
13811
  const removed = this.activeElement;
@@ -13599,7 +13813,7 @@ var FocusManager = class {
13599
13813
  this.dispatchFocusEvent(removed, new FocusEvent("blur", null));
13600
13814
  while (this.focusStack.length > 0) {
13601
13815
  const candidate = this.focusStack.pop();
13602
- if (isInTree(candidate, root)) {
13816
+ if (isInTree(candidate, root2)) {
13603
13817
  this.activeElement = candidate;
13604
13818
  this.dispatchFocusEvent(candidate, new FocusEvent("focus", removed));
13605
13819
  return;
@@ -13620,15 +13834,15 @@ var FocusManager = class {
13620
13834
  disable() {
13621
13835
  this.enabled = false;
13622
13836
  }
13623
- focusNext(root) {
13624
- this.moveFocus(1, root);
13837
+ focusNext(root2) {
13838
+ this.moveFocus(1, root2);
13625
13839
  }
13626
- focusPrevious(root) {
13627
- this.moveFocus(-1, root);
13840
+ focusPrevious(root2) {
13841
+ this.moveFocus(-1, root2);
13628
13842
  }
13629
- moveFocus(direction, root) {
13843
+ moveFocus(direction, root2) {
13630
13844
  if (!this.enabled) return;
13631
- const tabbable = collectTabbable(root);
13845
+ const tabbable = collectTabbable(root2);
13632
13846
  if (tabbable.length === 0) return;
13633
13847
  const currentIndex = this.activeElement ? tabbable.indexOf(this.activeElement) : -1;
13634
13848
  const nextIndex = currentIndex === -1 ? direction === 1 ? 0 : tabbable.length - 1 : (currentIndex + direction + tabbable.length) % tabbable.length;
@@ -13638,9 +13852,9 @@ var FocusManager = class {
13638
13852
  }
13639
13853
  }
13640
13854
  };
13641
- function collectTabbable(root) {
13855
+ function collectTabbable(root2) {
13642
13856
  const result = [];
13643
- walkTree(root, result);
13857
+ walkTree(root2, result);
13644
13858
  return result;
13645
13859
  }
13646
13860
  function walkTree(node, result) {
@@ -13654,10 +13868,10 @@ function walkTree(node, result) {
13654
13868
  }
13655
13869
  }
13656
13870
  }
13657
- function isInTree(node, root) {
13871
+ function isInTree(node, root2) {
13658
13872
  let current = node;
13659
13873
  while (current) {
13660
- if (current === root) return true;
13874
+ if (current === root2) return true;
13661
13875
  current = current.parentNode;
13662
13876
  }
13663
13877
  return false;
@@ -14098,29 +14312,29 @@ var reconciler = (0, import_react_reconciler.default)({
14098
14312
  _lastCommitMs = _commitStart > 0 ? performance.now() - _commitStart : 0;
14099
14313
  _commitStart = 0;
14100
14314
  if (COMMIT_LOG) {
14101
- const now = performance.now();
14315
+ const now2 = performance.now();
14102
14316
  _commits++;
14103
- const gap = _lastCommitAt > 0 ? now - _lastCommitAt : 0;
14317
+ const gap = _lastCommitAt > 0 ? now2 - _lastCommitAt : 0;
14104
14318
  if (gap > _maxGapMs) _maxGapMs = gap;
14105
- _lastCommitAt = now;
14106
- const reconcileMs = _prepareAt > 0 ? now - _prepareAt : 0;
14319
+ _lastCommitAt = now2;
14320
+ const reconcileMs = _prepareAt > 0 ? now2 - _prepareAt : 0;
14107
14321
  if (gap > 30 || reconcileMs > 20 || _createCount > 50) {
14108
14322
  appendFileSync(
14109
14323
  COMMIT_LOG,
14110
- `${now.toFixed(1)} gap=${gap.toFixed(1)}ms reconcile=${reconcileMs.toFixed(1)}ms creates=${_createCount}
14324
+ `${now2.toFixed(1)} gap=${gap.toFixed(1)}ms reconcile=${reconcileMs.toFixed(1)}ms creates=${_createCount}
14111
14325
  `
14112
14326
  );
14113
14327
  }
14114
14328
  _createCount = 0;
14115
- if (now - _lastLog > 1e3) {
14329
+ if (now2 - _lastLog > 1e3) {
14116
14330
  appendFileSync(
14117
14331
  COMMIT_LOG,
14118
- `${now.toFixed(1)} commits=${_commits}/s maxGap=${_maxGapMs.toFixed(1)}ms
14332
+ `${now2.toFixed(1)} commits=${_commits}/s maxGap=${_maxGapMs.toFixed(1)}ms
14119
14333
  `
14120
14334
  );
14121
14335
  _commits = 0;
14122
14336
  _maxGapMs = 0;
14123
- _lastLog = now;
14337
+ _lastLog = now2;
14124
14338
  }
14125
14339
  }
14126
14340
  const _t0 = COMMIT_LOG ? performance.now() : 0;
@@ -14278,8 +14492,8 @@ var reconciler = (0, import_react_reconciler.default)({
14278
14492
  removeChildNode(node, removeNode);
14279
14493
  cleanupYogaNode(removeNode);
14280
14494
  if (removeNode.nodeName !== "#text") {
14281
- const root = getRootNode(node);
14282
- root.focusManager.handleNodeRemoved(removeNode, root);
14495
+ const root2 = getRootNode(node);
14496
+ root2.focusManager.handleNodeRemoved(removeNode, root2);
14283
14497
  }
14284
14498
  },
14285
14499
  // React 19 required methods
@@ -14327,17 +14541,17 @@ dispatcher.discreteUpdates = reconciler.discreteUpdates.bind(reconciler);
14327
14541
  var reconciler_default = reconciler;
14328
14542
 
14329
14543
  // src/claude-ink/components/ScrollBox.tsx
14330
- import { jsx as jsx3 } from "react/jsx-runtime";
14544
+ var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
14331
14545
  function ScrollBox({
14332
14546
  children,
14333
14547
  ref,
14334
14548
  stickyScroll,
14335
14549
  ...style
14336
14550
  }) {
14337
- const domRef = useRef(null);
14338
- const [, forceRender] = useState(0);
14339
- const listenersRef = useRef(/* @__PURE__ */ new Set());
14340
- const renderQueuedRef = useRef(false);
14551
+ const domRef = (0, import_react.useRef)(null);
14552
+ const [, forceRender] = (0, import_react.useState)(0);
14553
+ const listenersRef = (0, import_react.useRef)(/* @__PURE__ */ new Set());
14554
+ const renderQueuedRef = (0, import_react.useRef)(false);
14341
14555
  const notify = () => {
14342
14556
  for (const l of listenersRef.current) l();
14343
14557
  };
@@ -14353,7 +14567,7 @@ function ScrollBox({
14353
14567
  scheduleRenderFrom(el);
14354
14568
  });
14355
14569
  }
14356
- useImperativeHandle(
14570
+ (0, import_react.useImperativeHandle)(
14357
14571
  ref,
14358
14572
  () => ({
14359
14573
  scrollTo(y) {
@@ -14434,7 +14648,7 @@ function ScrollBox({
14434
14648
  // eslint-disable-next-line react-hooks/exhaustive-deps
14435
14649
  []
14436
14650
  );
14437
- return /* @__PURE__ */ jsx3("ink-box", { ref: (el) => {
14651
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("ink-box", { ref: (el) => {
14438
14652
  domRef.current = el;
14439
14653
  if (el) el.scrollTop ??= 0;
14440
14654
  }, style: {
@@ -14447,13 +14661,13 @@ function ScrollBox({
14447
14661
  overflowY: "scroll"
14448
14662
  }, ...stickyScroll ? {
14449
14663
  stickyScroll: true
14450
- } : {}, children: /* @__PURE__ */ jsx3(Box_default, { flexDirection: "column", flexGrow: 1, flexShrink: 0, width: "100%", children }) });
14664
+ } : {}, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Box_default, { flexDirection: "column", flexGrow: 1, flexShrink: 0, width: "100%", children }) });
14451
14665
  }
14452
14666
  var ScrollBox_default = ScrollBox;
14453
14667
 
14454
14668
  // src/claude-ink/components/AlternateScreen.tsx
14455
- import { c as _c3 } from "react/compiler-runtime";
14456
- import { useContext as useContext2, useInsertionEffect } from "react";
14669
+ var import_compiler_runtime3 = __toESM(require_compiler_runtime(), 1);
14670
+ var import_react4 = __toESM(require_react(), 1);
14457
14671
 
14458
14672
  // src/claude-ink/instances.ts
14459
14673
  var instances = /* @__PURE__ */ new Map();
@@ -14492,10 +14706,10 @@ var ENABLE_MOUSE_TRACKING = decset(DEC.MOUSE_NORMAL) + decset(DEC.MOUSE_BUTTON)
14492
14706
  var DISABLE_MOUSE_TRACKING = decreset(DEC.MOUSE_SGR) + decreset(DEC.MOUSE_ANY) + decreset(DEC.MOUSE_BUTTON) + decreset(DEC.MOUSE_NORMAL);
14493
14707
 
14494
14708
  // src/claude-ink/useTerminalNotification.ts
14495
- import { createContext, useCallback, useContext, useMemo } from "react";
14709
+ var import_react2 = __toESM(require_react(), 1);
14496
14710
 
14497
14711
  // src/claude-ink/terminal.ts
14498
- import { coerce } from "semver";
14712
+ var import_semver = __toESM(require_semver(), 1);
14499
14713
 
14500
14714
  // src/utils/env.ts
14501
14715
  function terminalName() {
@@ -14794,24 +15008,24 @@ function writeDiffToTerminal(terminal, diff2, skipSyncMarkers = false) {
14794
15008
  }
14795
15009
 
14796
15010
  // src/claude-ink/useTerminalNotification.ts
14797
- var TerminalWriteContext = createContext(null);
15011
+ var TerminalWriteContext = (0, import_react2.createContext)(null);
14798
15012
  var TerminalWriteProvider = TerminalWriteContext.Provider;
14799
15013
 
14800
15014
  // src/claude-ink/components/TerminalSizeContext.tsx
14801
- import { createContext as createContext2 } from "react";
14802
- var TerminalSizeContext = createContext2(null);
15015
+ var import_react3 = __toESM(require_react(), 1);
15016
+ var TerminalSizeContext = (0, import_react3.createContext)(null);
14803
15017
 
14804
15018
  // src/claude-ink/components/AlternateScreen.tsx
14805
- import { jsx as jsx4 } from "react/jsx-runtime";
15019
+ var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
14806
15020
  function AlternateScreen(t0) {
14807
- const $ = _c3(7);
15021
+ const $ = (0, import_compiler_runtime3.c)(7);
14808
15022
  const {
14809
15023
  children,
14810
15024
  mouseTracking: t1
14811
15025
  } = t0;
14812
15026
  const mouseTracking = t1 === void 0 ? true : t1;
14813
- const size = useContext2(TerminalSizeContext);
14814
- const writeRaw = useContext2(TerminalWriteContext);
15027
+ const size = (0, import_react4.useContext)(TerminalSizeContext);
15028
+ const writeRaw = (0, import_react4.useContext)(TerminalWriteContext);
14815
15029
  let t2;
14816
15030
  let t3;
14817
15031
  if ($[0] !== mouseTracking || $[1] !== writeRaw) {
@@ -14837,11 +15051,11 @@ function AlternateScreen(t0) {
14837
15051
  t2 = $[2];
14838
15052
  t3 = $[3];
14839
15053
  }
14840
- useInsertionEffect(t2, t3);
15054
+ (0, import_react4.useInsertionEffect)(t2, t3);
14841
15055
  const t4 = size?.rows ?? 24;
14842
15056
  let t5;
14843
15057
  if ($[4] !== children || $[5] !== t4) {
14844
- t5 = /* @__PURE__ */ jsx4(Box_default, { flexDirection: "column", height: t4, width: "100%", flexShrink: 0, children });
15058
+ t5 = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Box_default, { flexDirection: "column", height: t4, width: "100%", flexShrink: 0, children });
14845
15059
  $[4] = children;
14846
15060
  $[5] = t4;
14847
15061
  $[6] = t5;
@@ -14852,11 +15066,11 @@ function AlternateScreen(t0) {
14852
15066
  }
14853
15067
 
14854
15068
  // src/claude-ink/hooks/use-app.ts
14855
- import { useContext as useContext3 } from "react";
15069
+ var import_react6 = __toESM(require_react(), 1);
14856
15070
 
14857
15071
  // src/claude-ink/components/AppContext.ts
14858
- import { createContext as createContext3 } from "react";
14859
- var AppContext = createContext3({
15072
+ var import_react5 = __toESM(require_react(), 1);
15073
+ var AppContext = (0, import_react5.createContext)({
14860
15074
  exit() {
14861
15075
  }
14862
15076
  });
@@ -14864,18 +15078,34 @@ AppContext.displayName = "InternalAppContext";
14864
15078
  var AppContext_default = AppContext;
14865
15079
 
14866
15080
  // src/claude-ink/hooks/use-app.ts
14867
- var useApp = () => useContext3(AppContext_default);
15081
+ var useApp = () => (0, import_react6.useContext)(AppContext_default);
14868
15082
  var use_app_default = useApp;
14869
15083
 
14870
15084
  // src/claude-ink/hooks/use-input.ts
14871
- import { useEffect, useLayoutEffect } from "react";
14872
- import { useEventCallback } from "usehooks-ts";
15085
+ var import_react10 = __toESM(require_react(), 1);
15086
+
15087
+ // node_modules/usehooks-ts/dist/index.js
15088
+ var import_react7 = __toESM(require_react(), 1);
15089
+ var import_lodash = __toESM(require_lodash(), 1);
15090
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" ? import_react7.useLayoutEffect : import_react7.useEffect;
15091
+ function useEventCallback(fn) {
15092
+ const ref = (0, import_react7.useRef)(() => {
15093
+ throw new Error("Cannot call an event handler while rendering.");
15094
+ });
15095
+ useIsomorphicLayoutEffect(() => {
15096
+ ref.current = fn;
15097
+ }, [fn]);
15098
+ return (0, import_react7.useCallback)((...args) => {
15099
+ var _a;
15100
+ return (_a = ref.current) == null ? void 0 : _a.call(ref, ...args);
15101
+ }, [ref]);
15102
+ }
14873
15103
 
14874
15104
  // src/claude-ink/hooks/use-stdin.ts
14875
- import { useContext as useContext4 } from "react";
15105
+ var import_react9 = __toESM(require_react(), 1);
14876
15106
 
14877
15107
  // src/claude-ink/components/StdinContext.ts
14878
- import { createContext as createContext4 } from "react";
15108
+ var import_react8 = __toESM(require_react(), 1);
14879
15109
 
14880
15110
  // src/claude-ink/events/emitter.ts
14881
15111
  import { EventEmitter as NodeEventEmitter } from "events";
@@ -14904,7 +15134,7 @@ var EventEmitter = class extends NodeEventEmitter {
14904
15134
  };
14905
15135
 
14906
15136
  // src/claude-ink/components/StdinContext.ts
14907
- var StdinContext = createContext4({
15137
+ var StdinContext = (0, import_react8.createContext)({
14908
15138
  stdin: process.stdin,
14909
15139
  internal_eventEmitter: new EventEmitter(),
14910
15140
  setRawMode() {
@@ -14917,13 +15147,13 @@ StdinContext.displayName = "InternalStdinContext";
14917
15147
  var StdinContext_default = StdinContext;
14918
15148
 
14919
15149
  // src/claude-ink/hooks/use-stdin.ts
14920
- var useStdin = () => useContext4(StdinContext_default);
15150
+ var useStdin = () => (0, import_react9.useContext)(StdinContext_default);
14921
15151
  var use_stdin_default = useStdin;
14922
15152
 
14923
15153
  // src/claude-ink/hooks/use-input.ts
14924
15154
  var useInput = (inputHandler, options = {}) => {
14925
15155
  const { setRawMode, internal_exitOnCtrlC, internal_eventEmitter } = use_stdin_default();
14926
- useLayoutEffect(() => {
15156
+ (0, import_react10.useLayoutEffect)(() => {
14927
15157
  if (options.isActive === false) {
14928
15158
  return;
14929
15159
  }
@@ -14941,7 +15171,7 @@ var useInput = (inputHandler, options = {}) => {
14941
15171
  inputHandler(input, key, event);
14942
15172
  }
14943
15173
  });
14944
- useEffect(() => {
15174
+ (0, import_react10.useEffect)(() => {
14945
15175
  internal_eventEmitter?.on("input", handleData);
14946
15176
  return () => {
14947
15177
  internal_eventEmitter?.removeListener("input", handleData);
@@ -14963,7 +15193,7 @@ var getAllProperties = (object) => {
14963
15193
  } while ((object = Reflect.getPrototypeOf(object)) && object !== Object.prototype);
14964
15194
  return properties;
14965
15195
  };
14966
- function autoBind(self, { include, exclude } = {}) {
15196
+ function autoBind(self2, { include, exclude } = {}) {
14967
15197
  const filter = (key) => {
14968
15198
  const match = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
14969
15199
  if (include) {
@@ -14974,39 +15204,527 @@ function autoBind(self, { include, exclude } = {}) {
14974
15204
  }
14975
15205
  return true;
14976
15206
  };
14977
- for (const [object, key] of getAllProperties(self.constructor.prototype)) {
15207
+ for (const [object, key] of getAllProperties(self2.constructor.prototype)) {
14978
15208
  if (key === "constructor" || !filter(key)) {
14979
15209
  continue;
14980
15210
  }
14981
15211
  const descriptor = Reflect.getOwnPropertyDescriptor(object, key);
14982
15212
  if (descriptor && typeof descriptor.value === "function") {
14983
- self[key] = self[key].bind(self);
15213
+ self2[key] = self2[key].bind(self2);
14984
15214
  }
14985
15215
  }
14986
- return self;
15216
+ return self2;
14987
15217
  }
14988
15218
 
14989
15219
  // src/claude-ink/ink.tsx
14990
- var import_constants4 = __toESM(require_constants(), 1);
14991
15220
  import { closeSync, constants as fsConstants, openSync, readSync, writeSync } from "fs";
14992
- import noop2 from "lodash-es/noop.js";
14993
- import throttle from "lodash-es/throttle.js";
14994
- import { onExit } from "signal-exit";
15221
+
15222
+ // node_modules/lodash-es/noop.js
15223
+ function noop() {
15224
+ }
15225
+ var noop_default = noop;
15226
+
15227
+ // node_modules/lodash-es/isObject.js
15228
+ function isObject(value) {
15229
+ var type = typeof value;
15230
+ return value != null && (type == "object" || type == "function");
15231
+ }
15232
+ var isObject_default = isObject;
15233
+
15234
+ // node_modules/lodash-es/_freeGlobal.js
15235
+ var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
15236
+ var freeGlobal_default = freeGlobal;
15237
+
15238
+ // node_modules/lodash-es/_root.js
15239
+ var freeSelf = typeof self == "object" && self && self.Object === Object && self;
15240
+ var root = freeGlobal_default || freeSelf || Function("return this")();
15241
+ var root_default = root;
15242
+
15243
+ // node_modules/lodash-es/now.js
15244
+ var now = function() {
15245
+ return root_default.Date.now();
15246
+ };
15247
+ var now_default = now;
15248
+
15249
+ // node_modules/lodash-es/_trimmedEndIndex.js
15250
+ var reWhitespace = /\s/;
15251
+ function trimmedEndIndex(string) {
15252
+ var index = string.length;
15253
+ while (index-- && reWhitespace.test(string.charAt(index))) {
15254
+ }
15255
+ return index;
15256
+ }
15257
+ var trimmedEndIndex_default = trimmedEndIndex;
15258
+
15259
+ // node_modules/lodash-es/_baseTrim.js
15260
+ var reTrimStart = /^\s+/;
15261
+ function baseTrim(string) {
15262
+ return string ? string.slice(0, trimmedEndIndex_default(string) + 1).replace(reTrimStart, "") : string;
15263
+ }
15264
+ var baseTrim_default = baseTrim;
15265
+
15266
+ // node_modules/lodash-es/_Symbol.js
15267
+ var Symbol2 = root_default.Symbol;
15268
+ var Symbol_default = Symbol2;
15269
+
15270
+ // node_modules/lodash-es/_getRawTag.js
15271
+ var objectProto = Object.prototype;
15272
+ var hasOwnProperty = objectProto.hasOwnProperty;
15273
+ var nativeObjectToString = objectProto.toString;
15274
+ var symToStringTag = Symbol_default ? Symbol_default.toStringTag : void 0;
15275
+ function getRawTag(value) {
15276
+ var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
15277
+ try {
15278
+ value[symToStringTag] = void 0;
15279
+ var unmasked = true;
15280
+ } catch (e) {
15281
+ }
15282
+ var result = nativeObjectToString.call(value);
15283
+ if (unmasked) {
15284
+ if (isOwn) {
15285
+ value[symToStringTag] = tag;
15286
+ } else {
15287
+ delete value[symToStringTag];
15288
+ }
15289
+ }
15290
+ return result;
15291
+ }
15292
+ var getRawTag_default = getRawTag;
15293
+
15294
+ // node_modules/lodash-es/_objectToString.js
15295
+ var objectProto2 = Object.prototype;
15296
+ var nativeObjectToString2 = objectProto2.toString;
15297
+ function objectToString(value) {
15298
+ return nativeObjectToString2.call(value);
15299
+ }
15300
+ var objectToString_default = objectToString;
15301
+
15302
+ // node_modules/lodash-es/_baseGetTag.js
15303
+ var nullTag = "[object Null]";
15304
+ var undefinedTag = "[object Undefined]";
15305
+ var symToStringTag2 = Symbol_default ? Symbol_default.toStringTag : void 0;
15306
+ function baseGetTag(value) {
15307
+ if (value == null) {
15308
+ return value === void 0 ? undefinedTag : nullTag;
15309
+ }
15310
+ return symToStringTag2 && symToStringTag2 in Object(value) ? getRawTag_default(value) : objectToString_default(value);
15311
+ }
15312
+ var baseGetTag_default = baseGetTag;
15313
+
15314
+ // node_modules/lodash-es/isObjectLike.js
15315
+ function isObjectLike(value) {
15316
+ return value != null && typeof value == "object";
15317
+ }
15318
+ var isObjectLike_default = isObjectLike;
15319
+
15320
+ // node_modules/lodash-es/isSymbol.js
15321
+ var symbolTag = "[object Symbol]";
15322
+ function isSymbol(value) {
15323
+ return typeof value == "symbol" || isObjectLike_default(value) && baseGetTag_default(value) == symbolTag;
15324
+ }
15325
+ var isSymbol_default = isSymbol;
15326
+
15327
+ // node_modules/lodash-es/toNumber.js
15328
+ var NAN = 0 / 0;
15329
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
15330
+ var reIsBinary = /^0b[01]+$/i;
15331
+ var reIsOctal = /^0o[0-7]+$/i;
15332
+ var freeParseInt = parseInt;
15333
+ function toNumber(value) {
15334
+ if (typeof value == "number") {
15335
+ return value;
15336
+ }
15337
+ if (isSymbol_default(value)) {
15338
+ return NAN;
15339
+ }
15340
+ if (isObject_default(value)) {
15341
+ var other = typeof value.valueOf == "function" ? value.valueOf() : value;
15342
+ value = isObject_default(other) ? other + "" : other;
15343
+ }
15344
+ if (typeof value != "string") {
15345
+ return value === 0 ? value : +value;
15346
+ }
15347
+ value = baseTrim_default(value);
15348
+ var isBinary = reIsBinary.test(value);
15349
+ return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
15350
+ }
15351
+ var toNumber_default = toNumber;
15352
+
15353
+ // node_modules/lodash-es/debounce.js
15354
+ var FUNC_ERROR_TEXT = "Expected a function";
15355
+ var nativeMax = Math.max;
15356
+ var nativeMin = Math.min;
15357
+ function debounce2(func, wait, options) {
15358
+ var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
15359
+ if (typeof func != "function") {
15360
+ throw new TypeError(FUNC_ERROR_TEXT);
15361
+ }
15362
+ wait = toNumber_default(wait) || 0;
15363
+ if (isObject_default(options)) {
15364
+ leading = !!options.leading;
15365
+ maxing = "maxWait" in options;
15366
+ maxWait = maxing ? nativeMax(toNumber_default(options.maxWait) || 0, wait) : maxWait;
15367
+ trailing = "trailing" in options ? !!options.trailing : trailing;
15368
+ }
15369
+ function invokeFunc(time) {
15370
+ var args = lastArgs, thisArg = lastThis;
15371
+ lastArgs = lastThis = void 0;
15372
+ lastInvokeTime = time;
15373
+ result = func.apply(thisArg, args);
15374
+ return result;
15375
+ }
15376
+ function leadingEdge2(time) {
15377
+ lastInvokeTime = time;
15378
+ timerId = setTimeout(timerExpired, wait);
15379
+ return leading ? invokeFunc(time) : result;
15380
+ }
15381
+ function remainingWait(time) {
15382
+ var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
15383
+ return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
15384
+ }
15385
+ function shouldInvoke(time) {
15386
+ var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
15387
+ return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
15388
+ }
15389
+ function timerExpired() {
15390
+ var time = now_default();
15391
+ if (shouldInvoke(time)) {
15392
+ return trailingEdge2(time);
15393
+ }
15394
+ timerId = setTimeout(timerExpired, remainingWait(time));
15395
+ }
15396
+ function trailingEdge2(time) {
15397
+ timerId = void 0;
15398
+ if (trailing && lastArgs) {
15399
+ return invokeFunc(time);
15400
+ }
15401
+ lastArgs = lastThis = void 0;
15402
+ return result;
15403
+ }
15404
+ function cancel() {
15405
+ if (timerId !== void 0) {
15406
+ clearTimeout(timerId);
15407
+ }
15408
+ lastInvokeTime = 0;
15409
+ lastArgs = lastCallTime = lastThis = timerId = void 0;
15410
+ }
15411
+ function flush() {
15412
+ return timerId === void 0 ? result : trailingEdge2(now_default());
15413
+ }
15414
+ function debounced() {
15415
+ var time = now_default(), isInvoking = shouldInvoke(time);
15416
+ lastArgs = arguments;
15417
+ lastThis = this;
15418
+ lastCallTime = time;
15419
+ if (isInvoking) {
15420
+ if (timerId === void 0) {
15421
+ return leadingEdge2(lastCallTime);
15422
+ }
15423
+ if (maxing) {
15424
+ clearTimeout(timerId);
15425
+ timerId = setTimeout(timerExpired, wait);
15426
+ return invokeFunc(lastCallTime);
15427
+ }
15428
+ }
15429
+ if (timerId === void 0) {
15430
+ timerId = setTimeout(timerExpired, wait);
15431
+ }
15432
+ return result;
15433
+ }
15434
+ debounced.cancel = cancel;
15435
+ debounced.flush = flush;
15436
+ return debounced;
15437
+ }
15438
+ var debounce_default = debounce2;
15439
+
15440
+ // node_modules/lodash-es/throttle.js
15441
+ var FUNC_ERROR_TEXT2 = "Expected a function";
15442
+ function throttle(func, wait, options) {
15443
+ var leading = true, trailing = true;
15444
+ if (typeof func != "function") {
15445
+ throw new TypeError(FUNC_ERROR_TEXT2);
15446
+ }
15447
+ if (isObject_default(options)) {
15448
+ leading = "leading" in options ? !!options.leading : leading;
15449
+ trailing = "trailing" in options ? !!options.trailing : trailing;
15450
+ }
15451
+ return debounce_default(func, wait, {
15452
+ "leading": leading,
15453
+ "maxWait": wait,
15454
+ "trailing": trailing
15455
+ });
15456
+ }
15457
+ var throttle_default = throttle;
15458
+
15459
+ // src/claude-ink/ink.tsx
15460
+ var import_constants4 = __toESM(require_constants(), 1);
15461
+
15462
+ // node_modules/signal-exit/dist/mjs/signals.js
15463
+ var signals = [];
15464
+ signals.push("SIGHUP", "SIGINT", "SIGTERM");
15465
+ if (process.platform !== "win32") {
15466
+ signals.push(
15467
+ "SIGALRM",
15468
+ "SIGABRT",
15469
+ "SIGVTALRM",
15470
+ "SIGXCPU",
15471
+ "SIGXFSZ",
15472
+ "SIGUSR2",
15473
+ "SIGTRAP",
15474
+ "SIGSYS",
15475
+ "SIGQUIT",
15476
+ "SIGIOT"
15477
+ // should detect profiler and enable/disable accordingly.
15478
+ // see #21
15479
+ // 'SIGPROF'
15480
+ );
15481
+ }
15482
+ if (process.platform === "linux") {
15483
+ signals.push("SIGIO", "SIGPOLL", "SIGPWR", "SIGSTKFLT");
15484
+ }
15485
+
15486
+ // node_modules/signal-exit/dist/mjs/index.js
15487
+ var processOk = (process3) => !!process3 && typeof process3 === "object" && typeof process3.removeListener === "function" && typeof process3.emit === "function" && typeof process3.reallyExit === "function" && typeof process3.listeners === "function" && typeof process3.kill === "function" && typeof process3.pid === "number" && typeof process3.on === "function";
15488
+ var kExitEmitter = /* @__PURE__ */ Symbol.for("signal-exit emitter");
15489
+ var global2 = globalThis;
15490
+ var ObjectDefineProperty = Object.defineProperty.bind(Object);
15491
+ var Emitter = class {
15492
+ emitted = {
15493
+ afterExit: false,
15494
+ exit: false
15495
+ };
15496
+ listeners = {
15497
+ afterExit: [],
15498
+ exit: []
15499
+ };
15500
+ count = 0;
15501
+ id = Math.random();
15502
+ constructor() {
15503
+ if (global2[kExitEmitter]) {
15504
+ return global2[kExitEmitter];
15505
+ }
15506
+ ObjectDefineProperty(global2, kExitEmitter, {
15507
+ value: this,
15508
+ writable: false,
15509
+ enumerable: false,
15510
+ configurable: false
15511
+ });
15512
+ }
15513
+ on(ev, fn) {
15514
+ this.listeners[ev].push(fn);
15515
+ }
15516
+ removeListener(ev, fn) {
15517
+ const list = this.listeners[ev];
15518
+ const i = list.indexOf(fn);
15519
+ if (i === -1) {
15520
+ return;
15521
+ }
15522
+ if (i === 0 && list.length === 1) {
15523
+ list.length = 0;
15524
+ } else {
15525
+ list.splice(i, 1);
15526
+ }
15527
+ }
15528
+ emit(ev, code, signal) {
15529
+ if (this.emitted[ev]) {
15530
+ return false;
15531
+ }
15532
+ this.emitted[ev] = true;
15533
+ let ret = false;
15534
+ for (const fn of this.listeners[ev]) {
15535
+ ret = fn(code, signal) === true || ret;
15536
+ }
15537
+ if (ev === "exit") {
15538
+ ret = this.emit("afterExit", code, signal) || ret;
15539
+ }
15540
+ return ret;
15541
+ }
15542
+ };
15543
+ var SignalExitBase = class {
15544
+ };
15545
+ var signalExitWrap = (handler) => {
15546
+ return {
15547
+ onExit(cb, opts) {
15548
+ return handler.onExit(cb, opts);
15549
+ },
15550
+ load() {
15551
+ return handler.load();
15552
+ },
15553
+ unload() {
15554
+ return handler.unload();
15555
+ }
15556
+ };
15557
+ };
15558
+ var SignalExitFallback = class extends SignalExitBase {
15559
+ onExit() {
15560
+ return () => {
15561
+ };
15562
+ }
15563
+ load() {
15564
+ }
15565
+ unload() {
15566
+ }
15567
+ };
15568
+ var SignalExit = class extends SignalExitBase {
15569
+ // "SIGHUP" throws an `ENOSYS` error on Windows,
15570
+ // so use a supported signal instead
15571
+ /* c8 ignore start */
15572
+ #hupSig = process2.platform === "win32" ? "SIGINT" : "SIGHUP";
15573
+ /* c8 ignore stop */
15574
+ #emitter = new Emitter();
15575
+ #process;
15576
+ #originalProcessEmit;
15577
+ #originalProcessReallyExit;
15578
+ #sigListeners = {};
15579
+ #loaded = false;
15580
+ constructor(process3) {
15581
+ super();
15582
+ this.#process = process3;
15583
+ this.#sigListeners = {};
15584
+ for (const sig of signals) {
15585
+ this.#sigListeners[sig] = () => {
15586
+ const listeners = this.#process.listeners(sig);
15587
+ let { count } = this.#emitter;
15588
+ const p = process3;
15589
+ if (typeof p.__signal_exit_emitter__ === "object" && typeof p.__signal_exit_emitter__.count === "number") {
15590
+ count += p.__signal_exit_emitter__.count;
15591
+ }
15592
+ if (listeners.length === count) {
15593
+ this.unload();
15594
+ const ret = this.#emitter.emit("exit", null, sig);
15595
+ const s = sig === "SIGHUP" ? this.#hupSig : sig;
15596
+ if (!ret)
15597
+ process3.kill(process3.pid, s);
15598
+ }
15599
+ };
15600
+ }
15601
+ this.#originalProcessReallyExit = process3.reallyExit;
15602
+ this.#originalProcessEmit = process3.emit;
15603
+ }
15604
+ onExit(cb, opts) {
15605
+ if (!processOk(this.#process)) {
15606
+ return () => {
15607
+ };
15608
+ }
15609
+ if (this.#loaded === false) {
15610
+ this.load();
15611
+ }
15612
+ const ev = opts?.alwaysLast ? "afterExit" : "exit";
15613
+ this.#emitter.on(ev, cb);
15614
+ return () => {
15615
+ this.#emitter.removeListener(ev, cb);
15616
+ if (this.#emitter.listeners["exit"].length === 0 && this.#emitter.listeners["afterExit"].length === 0) {
15617
+ this.unload();
15618
+ }
15619
+ };
15620
+ }
15621
+ load() {
15622
+ if (this.#loaded) {
15623
+ return;
15624
+ }
15625
+ this.#loaded = true;
15626
+ this.#emitter.count += 1;
15627
+ for (const sig of signals) {
15628
+ try {
15629
+ const fn = this.#sigListeners[sig];
15630
+ if (fn)
15631
+ this.#process.on(sig, fn);
15632
+ } catch (_) {
15633
+ }
15634
+ }
15635
+ this.#process.emit = (ev, ...a) => {
15636
+ return this.#processEmit(ev, ...a);
15637
+ };
15638
+ this.#process.reallyExit = (code) => {
15639
+ return this.#processReallyExit(code);
15640
+ };
15641
+ }
15642
+ unload() {
15643
+ if (!this.#loaded) {
15644
+ return;
15645
+ }
15646
+ this.#loaded = false;
15647
+ signals.forEach((sig) => {
15648
+ const listener = this.#sigListeners[sig];
15649
+ if (!listener) {
15650
+ throw new Error("Listener not defined for signal: " + sig);
15651
+ }
15652
+ try {
15653
+ this.#process.removeListener(sig, listener);
15654
+ } catch (_) {
15655
+ }
15656
+ });
15657
+ this.#process.emit = this.#originalProcessEmit;
15658
+ this.#process.reallyExit = this.#originalProcessReallyExit;
15659
+ this.#emitter.count -= 1;
15660
+ }
15661
+ #processReallyExit(code) {
15662
+ if (!processOk(this.#process)) {
15663
+ return 0;
15664
+ }
15665
+ this.#process.exitCode = code || 0;
15666
+ this.#emitter.emit("exit", this.#process.exitCode, null);
15667
+ return this.#originalProcessReallyExit.call(this.#process, this.#process.exitCode);
15668
+ }
15669
+ #processEmit(ev, ...args) {
15670
+ const og = this.#originalProcessEmit;
15671
+ if (ev === "exit" && processOk(this.#process)) {
15672
+ if (typeof args[0] === "number") {
15673
+ this.#process.exitCode = args[0];
15674
+ }
15675
+ const ret = og.call(this.#process, ev, ...args);
15676
+ this.#emitter.emit("exit", this.#process.exitCode, null);
15677
+ return ret;
15678
+ } else {
15679
+ return og.call(this.#process, ev, ...args);
15680
+ }
15681
+ }
15682
+ };
15683
+ var process2 = globalThis.process;
15684
+ var {
15685
+ /**
15686
+ * Called when the process is exiting, whether via signal, explicit
15687
+ * exit, or running out of stuff to do.
15688
+ *
15689
+ * If the global process object is not suitable for instrumentation,
15690
+ * then this will be a no-op.
15691
+ *
15692
+ * Returns a function that may be used to unload signal-exit.
15693
+ */
15694
+ onExit,
15695
+ /**
15696
+ * Load the listeners. Likely you never need to call this, unless
15697
+ * doing a rather deep integration with signal-exit functionality.
15698
+ * Mostly exposed for the benefit of testing.
15699
+ *
15700
+ * @internal
15701
+ */
15702
+ load,
15703
+ /**
15704
+ * Unload the listeners. Likely you never need to call this, unless
15705
+ * doing a rather deep integration with signal-exit functionality.
15706
+ * Mostly exposed for the benefit of testing.
15707
+ *
15708
+ * @internal
15709
+ */
15710
+ unload
15711
+ } = signalExitWrap(processOk(process2) ? new SignalExit(process2) : new SignalExitFallback());
15712
+
15713
+ // src/claude-ink/ink.tsx
14995
15714
  import { format } from "util";
14996
15715
 
14997
15716
  // src/claude-ink/colorize.ts
14998
- import chalk from "chalk";
14999
15717
  function boostChalkLevelForXtermJs() {
15000
- if (process.env.TERM_PROGRAM === "vscode" && chalk.level === 2) {
15001
- chalk.level = 3;
15718
+ if (process.env.TERM_PROGRAM === "vscode" && source_default.level === 2) {
15719
+ source_default.level = 3;
15002
15720
  return true;
15003
15721
  }
15004
15722
  return false;
15005
15723
  }
15006
15724
  function clampChalkLevelForTmux() {
15007
15725
  if (process.env.CLAUDE_CODE_TMUX_TRUECOLOR) return false;
15008
- if (process.env.TMUX && chalk.level > 2) {
15009
- chalk.level = 2;
15726
+ if (process.env.TMUX && source_default.level > 2) {
15727
+ source_default.level = 2;
15010
15728
  return true;
15011
15729
  }
15012
15730
  return false;
@@ -15023,41 +15741,41 @@ var colorize = (str, color, type) => {
15023
15741
  const value = color.substring("ansi:".length);
15024
15742
  switch (value) {
15025
15743
  case "black":
15026
- return type === "foreground" ? chalk.black(str) : chalk.bgBlack(str);
15744
+ return type === "foreground" ? source_default.black(str) : source_default.bgBlack(str);
15027
15745
  case "red":
15028
- return type === "foreground" ? chalk.red(str) : chalk.bgRed(str);
15746
+ return type === "foreground" ? source_default.red(str) : source_default.bgRed(str);
15029
15747
  case "green":
15030
- return type === "foreground" ? chalk.green(str) : chalk.bgGreen(str);
15748
+ return type === "foreground" ? source_default.green(str) : source_default.bgGreen(str);
15031
15749
  case "yellow":
15032
- return type === "foreground" ? chalk.yellow(str) : chalk.bgYellow(str);
15750
+ return type === "foreground" ? source_default.yellow(str) : source_default.bgYellow(str);
15033
15751
  case "blue":
15034
- return type === "foreground" ? chalk.blue(str) : chalk.bgBlue(str);
15752
+ return type === "foreground" ? source_default.blue(str) : source_default.bgBlue(str);
15035
15753
  case "magenta":
15036
- return type === "foreground" ? chalk.magenta(str) : chalk.bgMagenta(str);
15754
+ return type === "foreground" ? source_default.magenta(str) : source_default.bgMagenta(str);
15037
15755
  case "cyan":
15038
- return type === "foreground" ? chalk.cyan(str) : chalk.bgCyan(str);
15756
+ return type === "foreground" ? source_default.cyan(str) : source_default.bgCyan(str);
15039
15757
  case "white":
15040
- return type === "foreground" ? chalk.white(str) : chalk.bgWhite(str);
15758
+ return type === "foreground" ? source_default.white(str) : source_default.bgWhite(str);
15041
15759
  case "blackBright":
15042
- return type === "foreground" ? chalk.blackBright(str) : chalk.bgBlackBright(str);
15760
+ return type === "foreground" ? source_default.blackBright(str) : source_default.bgBlackBright(str);
15043
15761
  case "redBright":
15044
- return type === "foreground" ? chalk.redBright(str) : chalk.bgRedBright(str);
15762
+ return type === "foreground" ? source_default.redBright(str) : source_default.bgRedBright(str);
15045
15763
  case "greenBright":
15046
- return type === "foreground" ? chalk.greenBright(str) : chalk.bgGreenBright(str);
15764
+ return type === "foreground" ? source_default.greenBright(str) : source_default.bgGreenBright(str);
15047
15765
  case "yellowBright":
15048
- return type === "foreground" ? chalk.yellowBright(str) : chalk.bgYellowBright(str);
15766
+ return type === "foreground" ? source_default.yellowBright(str) : source_default.bgYellowBright(str);
15049
15767
  case "blueBright":
15050
- return type === "foreground" ? chalk.blueBright(str) : chalk.bgBlueBright(str);
15768
+ return type === "foreground" ? source_default.blueBright(str) : source_default.bgBlueBright(str);
15051
15769
  case "magentaBright":
15052
- return type === "foreground" ? chalk.magentaBright(str) : chalk.bgMagentaBright(str);
15770
+ return type === "foreground" ? source_default.magentaBright(str) : source_default.bgMagentaBright(str);
15053
15771
  case "cyanBright":
15054
- return type === "foreground" ? chalk.cyanBright(str) : chalk.bgCyanBright(str);
15772
+ return type === "foreground" ? source_default.cyanBright(str) : source_default.bgCyanBright(str);
15055
15773
  case "whiteBright":
15056
- return type === "foreground" ? chalk.whiteBright(str) : chalk.bgWhiteBright(str);
15774
+ return type === "foreground" ? source_default.whiteBright(str) : source_default.bgWhiteBright(str);
15057
15775
  }
15058
15776
  }
15059
15777
  if (color.startsWith("#")) {
15060
- return type === "foreground" ? chalk.hex(color)(str) : chalk.bgHex(color)(str);
15778
+ return type === "foreground" ? source_default.hex(color)(str) : source_default.bgHex(color)(str);
15061
15779
  }
15062
15780
  if (color.startsWith("ansi256")) {
15063
15781
  const matches = ANSI_REGEX.exec(color);
@@ -15065,7 +15783,7 @@ var colorize = (str, color, type) => {
15065
15783
  return str;
15066
15784
  }
15067
15785
  const value = Number(matches[1]);
15068
- return type === "foreground" ? chalk.ansi256(value)(str) : chalk.bgAnsi256(value)(str);
15786
+ return type === "foreground" ? source_default.ansi256(value)(str) : source_default.bgAnsi256(value)(str);
15069
15787
  }
15070
15788
  if (color.startsWith("rgb")) {
15071
15789
  const matches = RGB_REGEX.exec(color);
@@ -15075,29 +15793,29 @@ var colorize = (str, color, type) => {
15075
15793
  const firstValue = Number(matches[1]);
15076
15794
  const secondValue = Number(matches[2]);
15077
15795
  const thirdValue = Number(matches[3]);
15078
- return type === "foreground" ? chalk.rgb(firstValue, secondValue, thirdValue)(str) : chalk.bgRgb(firstValue, secondValue, thirdValue)(str);
15796
+ return type === "foreground" ? source_default.rgb(firstValue, secondValue, thirdValue)(str) : source_default.bgRgb(firstValue, secondValue, thirdValue)(str);
15079
15797
  }
15080
15798
  return str;
15081
15799
  };
15082
15800
  function applyTextStyles(text, styles3) {
15083
15801
  let result = text;
15084
15802
  if (styles3.inverse) {
15085
- result = chalk.inverse(result);
15803
+ result = source_default.inverse(result);
15086
15804
  }
15087
15805
  if (styles3.strikethrough) {
15088
- result = chalk.strikethrough(result);
15806
+ result = source_default.strikethrough(result);
15089
15807
  }
15090
15808
  if (styles3.underline) {
15091
- result = chalk.underline(result);
15809
+ result = source_default.underline(result);
15092
15810
  }
15093
15811
  if (styles3.italic) {
15094
- result = chalk.italic(result);
15812
+ result = source_default.italic(result);
15095
15813
  }
15096
15814
  if (styles3.bold) {
15097
- result = chalk.bold(result);
15815
+ result = source_default.bold(result);
15098
15816
  }
15099
15817
  if (styles3.dim) {
15100
- result = chalk.dim(result);
15818
+ result = source_default.dim(result);
15101
15819
  }
15102
15820
  if (styles3.color) {
15103
15821
  result = colorize(result, styles3.color, "foreground");
@@ -15115,7 +15833,7 @@ function applyColor(text, color) {
15115
15833
  }
15116
15834
 
15117
15835
  // src/claude-ink/components/App.tsx
15118
- import { PureComponent } from "react";
15836
+ var import_react15 = __toESM(require_react(), 1);
15119
15837
 
15120
15838
  // src/utils/earlyInput.ts
15121
15839
  function stopCapturingEarlyInput() {
@@ -17135,31 +17853,31 @@ var TerminalQuerier = class {
17135
17853
  };
17136
17854
 
17137
17855
  // src/claude-ink/components/ClockContext.tsx
17138
- import { c as _c5 } from "react/compiler-runtime";
17139
- import { createContext as createContext6, useEffect as useEffect2, useState as useState2 } from "react";
17856
+ var import_compiler_runtime5 = __toESM(require_compiler_runtime(), 1);
17857
+ var import_react13 = __toESM(require_react(), 1);
17140
17858
 
17141
17859
  // src/claude-ink/constants.ts
17142
17860
  var FRAME_INTERVAL_MS = 16;
17143
17861
 
17144
17862
  // src/claude-ink/hooks/use-terminal-focus.ts
17145
- import { useContext as useContext5 } from "react";
17863
+ var import_react12 = __toESM(require_react(), 1);
17146
17864
 
17147
17865
  // src/claude-ink/components/TerminalFocusContext.tsx
17148
- import { c as _c4 } from "react/compiler-runtime";
17149
- import { createContext as createContext5, useSyncExternalStore } from "react";
17150
- import { jsx as jsx5 } from "react/jsx-runtime";
17151
- var TerminalFocusContext = createContext5({
17866
+ var import_compiler_runtime4 = __toESM(require_compiler_runtime(), 1);
17867
+ var import_react11 = __toESM(require_react(), 1);
17868
+ var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
17869
+ var TerminalFocusContext = (0, import_react11.createContext)({
17152
17870
  isTerminalFocused: true,
17153
17871
  terminalFocusState: "unknown"
17154
17872
  });
17155
17873
  TerminalFocusContext.displayName = "TerminalFocusContext";
17156
17874
  function TerminalFocusProvider(t0) {
17157
- const $ = _c4(6);
17875
+ const $ = (0, import_compiler_runtime4.c)(6);
17158
17876
  const {
17159
17877
  children
17160
17878
  } = t0;
17161
- const isTerminalFocused = useSyncExternalStore(subscribeTerminalFocus, getTerminalFocused);
17162
- const terminalFocusState = useSyncExternalStore(subscribeTerminalFocus, getTerminalFocusState);
17879
+ const isTerminalFocused = (0, import_react11.useSyncExternalStore)(subscribeTerminalFocus, getTerminalFocused);
17880
+ const terminalFocusState = (0, import_react11.useSyncExternalStore)(subscribeTerminalFocus, getTerminalFocusState);
17163
17881
  let t1;
17164
17882
  if ($[0] !== isTerminalFocused || $[1] !== terminalFocusState) {
17165
17883
  t1 = {
@@ -17175,7 +17893,7 @@ function TerminalFocusProvider(t0) {
17175
17893
  const value = t1;
17176
17894
  let t2;
17177
17895
  if ($[3] !== children || $[4] !== value) {
17178
- t2 = /* @__PURE__ */ jsx5(TerminalFocusContext.Provider, { value, children });
17896
+ t2 = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(TerminalFocusContext.Provider, { value, children });
17179
17897
  $[3] = children;
17180
17898
  $[4] = value;
17181
17899
  $[5] = t2;
@@ -17188,12 +17906,12 @@ var TerminalFocusContext_default = TerminalFocusContext;
17188
17906
 
17189
17907
  // src/claude-ink/hooks/use-terminal-focus.ts
17190
17908
  function useTerminalFocus() {
17191
- const { isTerminalFocused } = useContext5(TerminalFocusContext_default);
17909
+ const { isTerminalFocused } = (0, import_react12.useContext)(TerminalFocusContext_default);
17192
17910
  return isTerminalFocused;
17193
17911
  }
17194
17912
 
17195
17913
  // src/claude-ink/components/ClockContext.tsx
17196
- import { jsx as jsx6 } from "react/jsx-runtime";
17914
+ var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
17197
17915
  function createClock(tickIntervalMs) {
17198
17916
  const subscribers2 = /* @__PURE__ */ new Map();
17199
17917
  let interval = null;
@@ -17247,14 +17965,14 @@ function createClock(tickIntervalMs) {
17247
17965
  }
17248
17966
  };
17249
17967
  }
17250
- var ClockContext = createContext6(null);
17968
+ var ClockContext = (0, import_react13.createContext)(null);
17251
17969
  var BLURRED_TICK_INTERVAL_MS = FRAME_INTERVAL_MS * 2;
17252
17970
  function ClockProvider(t0) {
17253
- const $ = _c5(7);
17971
+ const $ = (0, import_compiler_runtime5.c)(7);
17254
17972
  const {
17255
17973
  children
17256
17974
  } = t0;
17257
- const [clock] = useState2(_temp);
17975
+ const [clock] = (0, import_react13.useState)(_temp);
17258
17976
  const focused = useTerminalFocus();
17259
17977
  let t1;
17260
17978
  let t2;
@@ -17271,10 +17989,10 @@ function ClockProvider(t0) {
17271
17989
  t1 = $[2];
17272
17990
  t2 = $[3];
17273
17991
  }
17274
- useEffect2(t1, t2);
17992
+ (0, import_react13.useEffect)(t1, t2);
17275
17993
  let t3;
17276
17994
  if ($[4] !== children || $[5] !== clock) {
17277
- t3 = /* @__PURE__ */ jsx6(ClockContext.Provider, { value: clock, children });
17995
+ t3 = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ClockContext.Provider, { value: clock, children });
17278
17996
  $[4] = children;
17279
17997
  $[5] = clock;
17280
17998
  $[6] = t3;
@@ -17288,8 +18006,8 @@ function _temp() {
17288
18006
  }
17289
18007
 
17290
18008
  // src/claude-ink/components/CursorDeclarationContext.ts
17291
- import { createContext as createContext7 } from "react";
17292
- var CursorDeclarationContext = createContext7(
18009
+ var import_react14 = __toESM(require_react(), 1);
18010
+ var CursorDeclarationContext = (0, import_react14.createContext)(
17293
18011
  () => {
17294
18012
  }
17295
18013
  );
@@ -17330,7 +18048,7 @@ var dist_default2 = codeExcerpt;
17330
18048
  // src/claude-ink/components/ErrorOverview.tsx
17331
18049
  var import_stack_utils = __toESM(require_stack_utils(), 1);
17332
18050
  import { readFileSync } from "fs";
17333
- import { jsx as jsx7, jsxs } from "react/jsx-runtime";
18051
+ var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
17334
18052
  var cleanupPath = (path) => {
17335
18053
  return path?.replace(`file://${process.cwd()}/`, "");
17336
18054
  };
@@ -17363,47 +18081,47 @@ function ErrorOverview({
17363
18081
  } catch {
17364
18082
  }
17365
18083
  }
17366
- return /* @__PURE__ */ jsxs(Box_default, { flexDirection: "column", padding: 1, children: [
17367
- /* @__PURE__ */ jsxs(Box_default, { children: [
17368
- /* @__PURE__ */ jsxs(Text, { backgroundColor: "ansi:red", color: "ansi:white", children: [
18084
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Box_default, { flexDirection: "column", padding: 1, children: [
18085
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Box_default, { children: [
18086
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Text, { backgroundColor: "ansi:red", color: "ansi:white", children: [
17369
18087
  " ",
17370
18088
  "ERROR",
17371
18089
  " "
17372
18090
  ] }),
17373
- /* @__PURE__ */ jsxs(Text, { children: [
18091
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Text, { children: [
17374
18092
  " ",
17375
18093
  error.message
17376
18094
  ] })
17377
18095
  ] }),
17378
- origin && filePath && /* @__PURE__ */ jsx7(Box_default, { marginTop: 1, children: /* @__PURE__ */ jsxs(Text, { dim: true, children: [
18096
+ origin && filePath && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Box_default, { marginTop: 1, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Text, { dim: true, children: [
17379
18097
  filePath,
17380
18098
  ":",
17381
18099
  origin.line,
17382
18100
  ":",
17383
18101
  origin.column
17384
18102
  ] }) }),
17385
- origin && excerpt && /* @__PURE__ */ jsx7(Box_default, { marginTop: 1, flexDirection: "column", children: excerpt.map(({
18103
+ origin && excerpt && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Box_default, { marginTop: 1, flexDirection: "column", children: excerpt.map(({
17386
18104
  line: line_0,
17387
18105
  value
17388
- }) => /* @__PURE__ */ jsxs(Box_default, { children: [
17389
- /* @__PURE__ */ jsx7(Box_default, { width: lineWidth2 + 1, children: /* @__PURE__ */ jsxs(Text, { dim: line_0 !== origin.line, backgroundColor: line_0 === origin.line ? "ansi:red" : void 0, color: line_0 === origin.line ? "ansi:white" : void 0, children: [
18106
+ }) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Box_default, { children: [
18107
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Box_default, { width: lineWidth2 + 1, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Text, { dim: line_0 !== origin.line, backgroundColor: line_0 === origin.line ? "ansi:red" : void 0, color: line_0 === origin.line ? "ansi:white" : void 0, children: [
17390
18108
  String(line_0).padStart(lineWidth2, " "),
17391
18109
  ":"
17392
18110
  ] }) }),
17393
- /* @__PURE__ */ jsx7(Text, { backgroundColor: line_0 === origin.line ? "ansi:red" : void 0, color: line_0 === origin.line ? "ansi:white" : void 0, children: " " + value }, line_0)
18111
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { backgroundColor: line_0 === origin.line ? "ansi:red" : void 0, color: line_0 === origin.line ? "ansi:white" : void 0, children: " " + value }, line_0)
17394
18112
  ] }, line_0)) }),
17395
- error.stack && /* @__PURE__ */ jsx7(Box_default, { marginTop: 1, flexDirection: "column", children: error.stack.split("\n").slice(1).map((line_1) => {
18113
+ error.stack && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Box_default, { marginTop: 1, flexDirection: "column", children: error.stack.split("\n").slice(1).map((line_1) => {
17396
18114
  const parsedLine = getStackUtils().parseLine(line_1);
17397
18115
  if (!parsedLine) {
17398
- return /* @__PURE__ */ jsxs(Box_default, { children: [
17399
- /* @__PURE__ */ jsx7(Text, { dim: true, children: "- " }),
17400
- /* @__PURE__ */ jsx7(Text, { bold: true, children: line_1 })
18116
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Box_default, { children: [
18117
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { dim: true, children: "- " }),
18118
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { bold: true, children: line_1 })
17401
18119
  ] }, line_1);
17402
18120
  }
17403
- return /* @__PURE__ */ jsxs(Box_default, { children: [
17404
- /* @__PURE__ */ jsx7(Text, { dim: true, children: "- " }),
17405
- /* @__PURE__ */ jsx7(Text, { bold: true, children: parsedLine.function }),
17406
- /* @__PURE__ */ jsxs(Text, { dim: true, children: [
18121
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Box_default, { children: [
18122
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { dim: true, children: "- " }),
18123
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Text, { bold: true, children: parsedLine.function }),
18124
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Text, { dim: true, children: [
17407
18125
  " ",
17408
18126
  "(",
17409
18127
  cleanupPath(parsedLine.file) ?? "",
@@ -17419,12 +18137,12 @@ function ErrorOverview({
17419
18137
  }
17420
18138
 
17421
18139
  // src/claude-ink/components/App.tsx
17422
- import { jsx as jsx8 } from "react/jsx-runtime";
18140
+ var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1);
17423
18141
  var SUPPORTS_SUSPEND = process.platform !== "win32";
17424
18142
  var STDIN_RESUME_GAP_MS = 5e3;
17425
18143
  var MULTI_CLICK_TIMEOUT_MS = 500;
17426
18144
  var MULTI_CLICK_DISTANCE = 1;
17427
- var App = class extends PureComponent {
18145
+ var App = class extends import_react15.PureComponent {
17428
18146
  static displayName = "InternalApp";
17429
18147
  static getDerivedStateFromError(error) {
17430
18148
  return {
@@ -17480,20 +18198,20 @@ var App = class extends PureComponent {
17480
18198
  return this.props.stdin.isTTY;
17481
18199
  }
17482
18200
  render() {
17483
- return /* @__PURE__ */ jsx8(TerminalSizeContext.Provider, { value: {
18201
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TerminalSizeContext.Provider, { value: {
17484
18202
  columns: this.props.terminalColumns,
17485
18203
  rows: this.props.terminalRows
17486
- }, children: /* @__PURE__ */ jsx8(AppContext_default.Provider, { value: {
18204
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(AppContext_default.Provider, { value: {
17487
18205
  exit: this.handleExit
17488
- }, children: /* @__PURE__ */ jsx8(StdinContext_default.Provider, { value: {
18206
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(StdinContext_default.Provider, { value: {
17489
18207
  stdin: this.props.stdin,
17490
18208
  setRawMode: this.handleSetRawMode,
17491
18209
  isRawModeSupported: this.isRawModeSupported(),
17492
18210
  internal_exitOnCtrlC: this.props.exitOnCtrlC,
17493
18211
  internal_eventEmitter: this.internal_eventEmitter,
17494
18212
  internal_querier: this.querier
17495
- }, children: /* @__PURE__ */ jsx8(TerminalFocusProvider, { children: /* @__PURE__ */ jsx8(ClockProvider, { children: /* @__PURE__ */ jsx8(CursorDeclarationContext_default.Provider, { value: this.props.onCursorDeclaration ?? (() => {
17496
- }), children: this.state.error ? /* @__PURE__ */ jsx8(ErrorOverview, { error: this.state.error }) : this.props.children }) }) }) }) }) });
18213
+ }, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(TerminalFocusProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ClockProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CursorDeclarationContext_default.Provider, { value: this.props.onCursorDeclaration ?? (() => {
18214
+ }), children: this.state.error ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ErrorOverview, { error: this.state.error }) : this.props.children }) }) }) }) }) });
17497
18215
  }
17498
18216
  componentDidMount() {
17499
18217
  if (this.props.stdout.isTTY && !isEnvTruthy(process.env.CLAUDE_CODE_ACCESSIBILITY)) {
@@ -17612,11 +18330,11 @@ var App = class extends PureComponent {
17612
18330
  }
17613
18331
  };
17614
18332
  handleReadable = () => {
17615
- const now = Date.now();
17616
- if (now - this.lastStdinTime > STDIN_RESUME_GAP_MS) {
18333
+ const now2 = Date.now();
18334
+ if (now2 - this.lastStdinTime > STDIN_RESUME_GAP_MS) {
17617
18335
  this.props.onStdinResume?.();
17618
18336
  }
17619
- this.lastStdinTime = now;
18337
+ this.lastStdinTime = now2;
17620
18338
  try {
17621
18339
  let chunk;
17622
18340
  while ((chunk = this.props.stdin.read()) !== null) {
@@ -17753,10 +18471,10 @@ function handleMouseEvent(app, m) {
17753
18471
  finishSelection(sel);
17754
18472
  app.props.onSelectionChange();
17755
18473
  }
17756
- const now = Date.now();
17757
- const nearLast = now - app.lastClickTime < MULTI_CLICK_TIMEOUT_MS && Math.abs(col - app.lastClickCol) <= MULTI_CLICK_DISTANCE && Math.abs(row - app.lastClickRow) <= MULTI_CLICK_DISTANCE;
18474
+ const now2 = Date.now();
18475
+ const nearLast = now2 - app.lastClickTime < MULTI_CLICK_TIMEOUT_MS && Math.abs(col - app.lastClickCol) <= MULTI_CLICK_DISTANCE && Math.abs(row - app.lastClickRow) <= MULTI_CLICK_DISTANCE;
17758
18476
  app.clickCount = nearLast ? app.clickCount + 1 : 1;
17759
- app.lastClickTime = now;
18477
+ app.lastClickTime = now2;
17760
18478
  app.lastClickCol = col;
17761
18479
  app.lastClickRow = row;
17762
18480
  if (app.clickCount >= 2) {
@@ -17880,14 +18598,14 @@ function hitTest(node, col, row) {
17880
18598
  }
17881
18599
  return node;
17882
18600
  }
17883
- function dispatchClick(root, col, row, cellIsBlank = false) {
17884
- let target = hitTest(root, col, row) ?? void 0;
18601
+ function dispatchClick(root2, col, row, cellIsBlank = false) {
18602
+ let target = hitTest(root2, col, row) ?? void 0;
17885
18603
  if (!target) return false;
17886
- if (root.focusManager) {
18604
+ if (root2.focusManager) {
17887
18605
  let focusTarget = target;
17888
18606
  while (focusTarget) {
17889
18607
  if (typeof focusTarget.attributes["tabIndex"] === "number") {
17890
- root.focusManager.handleClickFocus(focusTarget);
18608
+ root2.focusManager.handleClickFocus(focusTarget);
17891
18609
  break;
17892
18610
  }
17893
18611
  focusTarget = focusTarget.parentNode;
@@ -17911,9 +18629,9 @@ function dispatchClick(root, col, row, cellIsBlank = false) {
17911
18629
  }
17912
18630
  return handled;
17913
18631
  }
17914
- function dispatchHover(root, col, row, hovered) {
18632
+ function dispatchHover(root2, col, row, hovered) {
17915
18633
  const next = /* @__PURE__ */ new Set();
17916
- let node = hitTest(root, col, row) ?? void 0;
18634
+ let node = hitTest(root2, col, row) ?? void 0;
17917
18635
  while (node) {
17918
18636
  const h = node._eventHandlers;
17919
18637
  if (h?.onMouseEnter || h?.onMouseLeave) next.add(node);
@@ -17922,10 +18640,7 @@ function dispatchHover(root, col, row, hovered) {
17922
18640
  for (const old of hovered) {
17923
18641
  if (!next.has(old)) {
17924
18642
  hovered.delete(old);
17925
- if (old.parentNode) {
17926
- ;
17927
- old._eventHandlers?.onMouseLeave?.();
17928
- }
18643
+ old._eventHandlers?.onMouseLeave?.();
17929
18644
  }
17930
18645
  }
17931
18646
  for (const n of next) {
@@ -18422,8 +19137,774 @@ function optimize(diff2) {
18422
19137
  return result;
18423
19138
  }
18424
19139
 
19140
+ // node_modules/bidi-js/dist/bidi.mjs
19141
+ function bidiFactory() {
19142
+ var bidi = (function(exports) {
19143
+ var DATA = {
19144
+ "R": "13k,1a,2,3,3,2+1j,ch+16,a+1,5+2,2+n,5,a,4,6+16,4+3,h+1b,4mo,179q,2+9,2+11,2i9+7y,2+68,4,3+4,5+13,4+3,2+4k,3+29,8+cf,1t+7z,w+17,3+3m,1t+3z,16o1+5r,8+30,8+mc,29+1r,29+4v,75+73",
19145
+ "EN": "1c+9,3d+1,6,187+9,513,4+5,7+9,sf+j,175h+9,qw+q,161f+1d,4xt+a,25i+9",
19146
+ "ES": "17,2,6dp+1,f+1,av,16vr,mx+1,4o,2",
19147
+ "ET": "z+2,3h+3,b+1,ym,3e+1,2o,p4+1,8,6u,7c,g6,1wc,1n9+4,30+1b,2n,6d,qhx+1,h0m,a+1,49+2,63+1,4+1,6bb+3,12jj",
19148
+ "AN": "16o+5,2j+9,2+1,35,ed,1ff2+9,87+u",
19149
+ "CS": "18,2+1,b,2u,12k,55v,l,17v0,2,3,53,2+1,b",
19150
+ "B": "a,3,f+2,2v,690",
19151
+ "S": "9,2,k",
19152
+ "WS": "c,k,4f4,1vk+a,u,1j,335",
19153
+ "ON": "x+1,4+4,h+5,r+5,r+3,z,5+3,2+1,2+1,5,2+2,3+4,o,w,ci+1,8+d,3+d,6+8,2+g,39+1,9,6+1,2,33,b8,3+1,3c+1,7+1,5r,b,7h+3,sa+5,2,3i+6,jg+3,ur+9,2v,ij+1,9g+9,7+a,8m,4+1,49+x,14u,2+2,c+2,e+2,e+2,e+1,i+n,e+e,2+p,u+2,e+2,36+1,2+3,2+1,b,2+2,6+5,2,2,2,h+1,5+4,6+3,3+f,16+2,5+3l,3+81,1y+p,2+40,q+a,m+13,2r+ch,2+9e,75+hf,3+v,2+2w,6e+5,f+6,75+2a,1a+p,2+2g,d+5x,r+b,6+3,4+o,g,6+1,6+2,2k+1,4,2j,5h+z,1m+1,1e+f,t+2,1f+e,d+3,4o+3,2s+1,w,535+1r,h3l+1i,93+2,2s,b+1,3l+x,2v,4g+3,21+3,kz+1,g5v+1,5a,j+9,n+v,2,3,2+8,2+1,3+2,2,3,46+1,4+4,h+5,r+5,r+a,3h+2,4+6,b+4,78,1r+24,4+c,4,1hb,ey+6,103+j,16j+c,1ux+7,5+g,fsh,jdq+1t,4,57+2e,p1,1m,1m,1m,1m,4kt+1,7j+17,5+2r,d+e,3+e,2+e,2+10,m+4,w,1n+5,1q,4z+5,4b+rb,9+c,4+c,4+37,d+2g,8+b,l+b,5+1j,9+9,7+13,9+t,3+1,27+3c,2+29,2+3q,d+d,3+4,4+2,6+6,a+o,8+6,a+2,e+6,16+42,2+1i",
19154
+ "BN": "0+8,6+d,2s+5,2+p,e,4m9,1kt+2,2b+5,5+5,17q9+v,7k,6p+8,6+1,119d+3,440+7,96s+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+1,1ekf+75,6p+2rz,1ben+1,1ekf+1,1ekf+1",
19155
+ "NSM": "lc+33,7o+6,7c+18,2,2+1,2+1,2,21+a,1d+k,h,2u+6,3+5,3+1,2+3,10,v+q,2k+a,1n+8,a,p+3,2+8,2+2,2+4,18+2,3c+e,2+v,1k,2,5+7,5,4+6,b+1,u,1n,5+3,9,l+1,r,3+1,1m,5+1,5+1,3+2,4,v+1,4,c+1,1m,5+4,2+1,5,l+1,n+5,2,1n,3,2+3,9,8+1,c+1,v,1q,d,1f,4,1m+2,6+2,2+3,8+1,c+1,u,1n,g+1,l+1,t+1,1m+1,5+3,9,l+1,u,21,8+2,2,2j,3+6,d+7,2r,3+8,c+5,23+1,s,2,2,1k+d,2+4,2+1,6+a,2+z,a,2v+3,2+5,2+1,3+1,q+1,5+2,h+3,e,3+1,7,g,jk+2,qb+2,u+2,u+1,v+1,1t+1,2+6,9,3+a,a,1a+2,3c+1,z,3b+2,5+1,a,7+2,64+1,3,1n,2+6,2,2,3+7,7+9,3,1d+g,1s+3,1d,2+4,2,6,15+8,d+1,x+3,3+1,2+2,1l,2+1,4,2+2,1n+7,3+1,49+2,2+c,2+6,5,7,4+1,5j+1l,2+4,k1+w,2db+2,3y,2p+v,ff+3,30+1,n9x+3,2+9,x+1,29+1,7l,4,5,q+1,6,48+1,r+h,e,13+7,q+a,1b+2,1d,3+3,3+1,14,1w+5,3+1,3+1,d,9,1c,1g,2+2,3+1,6+1,2,17+1,9,6n,3,5,fn5,ki+f,h+f,r2,6b,46+4,1af+2,2+1,6+3,15+2,5,4m+1,fy+3,as+1,4a+a,4x,1j+e,1l+2,1e+3,3+1,1y+2,11+4,2+7,1r,d+1,1h+8,b+3,3,2o+2,3,2+1,7,4h,4+7,m+1,1m+1,4,12+6,4+4,5g+7,3+2,2,o,2d+5,2,5+1,2+1,6n+3,7+1,2+1,s+1,2e+7,3,2+1,2z,2,3+5,2,2u+2,3+3,2+4,78+8,2+1,75+1,2,5,41+3,3+1,5,x+5,3+1,15+5,3+3,9,a+5,3+2,1b+c,2+1,bb+6,2+5,2d+l,3+6,2+1,2+1,3f+5,4,2+1,2+6,2,21+1,4,2,9o+1,f0c+4,1o+6,t5,1s+3,2a,f5l+1,43t+2,i+7,3+6,v+3,45+2,1j0+1i,5+1d,9,f,n+4,2+e,11t+6,2+g,3+6,2+1,2+4,7a+6,c6+3,15t+6,32+6,gzhy+6n",
19156
+ "AL": "16w,3,2,e+1b,z+2,2+2s,g+1,8+1,b+m,2+t,s+2i,c+e,4h+f,1d+1e,1bwe+dp,3+3z,x+c,2+1,35+3y,2rm+z,5+7,b+5,dt+l,c+u,17nl+27,1t+27,4x+6n,3+d",
19157
+ "LRO": "6ct",
19158
+ "RLO": "6cu",
19159
+ "LRE": "6cq",
19160
+ "RLE": "6cr",
19161
+ "PDF": "6cs",
19162
+ "LRI": "6ee",
19163
+ "RLI": "6ef",
19164
+ "FSI": "6eg",
19165
+ "PDI": "6eh"
19166
+ };
19167
+ var TYPES = {};
19168
+ var TYPES_TO_NAMES = {};
19169
+ TYPES.L = 1;
19170
+ TYPES_TO_NAMES[1] = "L";
19171
+ Object.keys(DATA).forEach(function(type, i) {
19172
+ TYPES[type] = 1 << i + 1;
19173
+ TYPES_TO_NAMES[TYPES[type]] = type;
19174
+ });
19175
+ Object.freeze(TYPES);
19176
+ var ISOLATE_INIT_TYPES = TYPES.LRI | TYPES.RLI | TYPES.FSI;
19177
+ var STRONG_TYPES = TYPES.L | TYPES.R | TYPES.AL;
19178
+ var NEUTRAL_ISOLATE_TYPES = TYPES.B | TYPES.S | TYPES.WS | TYPES.ON | TYPES.FSI | TYPES.LRI | TYPES.RLI | TYPES.PDI;
19179
+ var BN_LIKE_TYPES = TYPES.BN | TYPES.RLE | TYPES.LRE | TYPES.RLO | TYPES.LRO | TYPES.PDF;
19180
+ var TRAILING_TYPES = TYPES.S | TYPES.WS | TYPES.B | ISOLATE_INIT_TYPES | TYPES.PDI | BN_LIKE_TYPES;
19181
+ var map = null;
19182
+ function parseData() {
19183
+ if (!map) {
19184
+ map = /* @__PURE__ */ new Map();
19185
+ var loop = function(type2) {
19186
+ if (DATA.hasOwnProperty(type2)) {
19187
+ var lastCode = 0;
19188
+ DATA[type2].split(",").forEach(function(range) {
19189
+ var ref = range.split("+");
19190
+ var skip = ref[0];
19191
+ var step = ref[1];
19192
+ skip = parseInt(skip, 36);
19193
+ step = step ? parseInt(step, 36) : 0;
19194
+ map.set(lastCode += skip, TYPES[type2]);
19195
+ for (var i = 0; i < step; i++) {
19196
+ map.set(++lastCode, TYPES[type2]);
19197
+ }
19198
+ });
19199
+ }
19200
+ };
19201
+ for (var type in DATA) loop(type);
19202
+ }
19203
+ }
19204
+ function getBidiCharType(char) {
19205
+ parseData();
19206
+ return map.get(char.codePointAt(0)) || TYPES.L;
19207
+ }
19208
+ function getBidiCharTypeName(char) {
19209
+ return TYPES_TO_NAMES[getBidiCharType(char)];
19210
+ }
19211
+ var data$1 = {
19212
+ "pairs": "14>1,1e>2,u>2,2wt>1,1>1,1ge>1,1wp>1,1j>1,f>1,hm>1,1>1,u>1,u6>1,1>1,+5,28>1,w>1,1>1,+3,b8>1,1>1,+3,1>3,-1>-1,3>1,1>1,+2,1s>1,1>1,x>1,th>1,1>1,+2,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,4q>1,1e>2,u>2,2>1,+1",
19213
+ "canonical": "6f1>-6dx,6dy>-6dx,6ec>-6ed,6ee>-6ed,6ww>2jj,-2ji>2jj,14r4>-1e7l,1e7m>-1e7l,1e7m>-1e5c,1e5d>-1e5b,1e5c>-14qx,14qy>-14qx,14vn>-1ecg,1ech>-1ecg,1edu>-1ecg,1eci>-1ecg,1eda>-1ecg,1eci>-1ecg,1eci>-168q,168r>-168q,168s>-14ye,14yf>-14ye"
19214
+ };
19215
+ function parseCharacterMap(encodedString, includeReverse) {
19216
+ var radix = 36;
19217
+ var lastCode = 0;
19218
+ var map2 = /* @__PURE__ */ new Map();
19219
+ var reverseMap = includeReverse && /* @__PURE__ */ new Map();
19220
+ var prevPair;
19221
+ encodedString.split(",").forEach(function visit(entry) {
19222
+ if (entry.indexOf("+") !== -1) {
19223
+ for (var i = +entry; i--; ) {
19224
+ visit(prevPair);
19225
+ }
19226
+ } else {
19227
+ prevPair = entry;
19228
+ var ref = entry.split(">");
19229
+ var a = ref[0];
19230
+ var b = ref[1];
19231
+ a = String.fromCodePoint(lastCode += parseInt(a, radix));
19232
+ b = String.fromCodePoint(lastCode += parseInt(b, radix));
19233
+ map2.set(a, b);
19234
+ includeReverse && reverseMap.set(b, a);
19235
+ }
19236
+ });
19237
+ return { map: map2, reverseMap };
19238
+ }
19239
+ var openToClose, closeToOpen, canonical;
19240
+ function parse$1() {
19241
+ if (!openToClose) {
19242
+ var ref = parseCharacterMap(data$1.pairs, true);
19243
+ var map2 = ref.map;
19244
+ var reverseMap = ref.reverseMap;
19245
+ openToClose = map2;
19246
+ closeToOpen = reverseMap;
19247
+ canonical = parseCharacterMap(data$1.canonical, false).map;
19248
+ }
19249
+ }
19250
+ function openingToClosingBracket(char) {
19251
+ parse$1();
19252
+ return openToClose.get(char) || null;
19253
+ }
19254
+ function closingToOpeningBracket(char) {
19255
+ parse$1();
19256
+ return closeToOpen.get(char) || null;
19257
+ }
19258
+ function getCanonicalBracket(char) {
19259
+ parse$1();
19260
+ return canonical.get(char) || null;
19261
+ }
19262
+ var TYPE_L = TYPES.L;
19263
+ var TYPE_R = TYPES.R;
19264
+ var TYPE_EN = TYPES.EN;
19265
+ var TYPE_ES = TYPES.ES;
19266
+ var TYPE_ET = TYPES.ET;
19267
+ var TYPE_AN = TYPES.AN;
19268
+ var TYPE_CS = TYPES.CS;
19269
+ var TYPE_B = TYPES.B;
19270
+ var TYPE_S = TYPES.S;
19271
+ var TYPE_ON = TYPES.ON;
19272
+ var TYPE_BN = TYPES.BN;
19273
+ var TYPE_NSM = TYPES.NSM;
19274
+ var TYPE_AL = TYPES.AL;
19275
+ var TYPE_LRO = TYPES.LRO;
19276
+ var TYPE_RLO = TYPES.RLO;
19277
+ var TYPE_LRE = TYPES.LRE;
19278
+ var TYPE_RLE = TYPES.RLE;
19279
+ var TYPE_PDF = TYPES.PDF;
19280
+ var TYPE_LRI = TYPES.LRI;
19281
+ var TYPE_RLI = TYPES.RLI;
19282
+ var TYPE_FSI = TYPES.FSI;
19283
+ var TYPE_PDI = TYPES.PDI;
19284
+ function getEmbeddingLevels(string, baseDirection) {
19285
+ var MAX_DEPTH = 125;
19286
+ var charTypes = new Uint32Array(string.length);
19287
+ for (var i = 0; i < string.length; i++) {
19288
+ charTypes[i] = getBidiCharType(string[i]);
19289
+ }
19290
+ var charTypeCounts = /* @__PURE__ */ new Map();
19291
+ function changeCharType(i2, type2) {
19292
+ var oldType = charTypes[i2];
19293
+ charTypes[i2] = type2;
19294
+ charTypeCounts.set(oldType, charTypeCounts.get(oldType) - 1);
19295
+ if (oldType & NEUTRAL_ISOLATE_TYPES) {
19296
+ charTypeCounts.set(NEUTRAL_ISOLATE_TYPES, charTypeCounts.get(NEUTRAL_ISOLATE_TYPES) - 1);
19297
+ }
19298
+ charTypeCounts.set(type2, (charTypeCounts.get(type2) || 0) + 1);
19299
+ if (type2 & NEUTRAL_ISOLATE_TYPES) {
19300
+ charTypeCounts.set(NEUTRAL_ISOLATE_TYPES, (charTypeCounts.get(NEUTRAL_ISOLATE_TYPES) || 0) + 1);
19301
+ }
19302
+ }
19303
+ var embedLevels = new Uint8Array(string.length);
19304
+ var isolationPairs = /* @__PURE__ */ new Map();
19305
+ var paragraphs = [];
19306
+ var paragraph = null;
19307
+ for (var i$1 = 0; i$1 < string.length; i$1++) {
19308
+ if (!paragraph) {
19309
+ paragraphs.push(paragraph = {
19310
+ start: i$1,
19311
+ end: string.length - 1,
19312
+ // 3.3.1 P2-P3: Determine the paragraph level
19313
+ level: baseDirection === "rtl" ? 1 : baseDirection === "ltr" ? 0 : determineAutoEmbedLevel(i$1, false)
19314
+ });
19315
+ }
19316
+ if (charTypes[i$1] & TYPE_B) {
19317
+ paragraph.end = i$1;
19318
+ paragraph = null;
19319
+ }
19320
+ }
19321
+ var FORMATTING_TYPES = TYPE_RLE | TYPE_LRE | TYPE_RLO | TYPE_LRO | ISOLATE_INIT_TYPES | TYPE_PDI | TYPE_PDF | TYPE_B;
19322
+ var nextEven = function(n) {
19323
+ return n + (n & 1 ? 1 : 2);
19324
+ };
19325
+ var nextOdd = function(n) {
19326
+ return n + (n & 1 ? 2 : 1);
19327
+ };
19328
+ for (var paraIdx = 0; paraIdx < paragraphs.length; paraIdx++) {
19329
+ paragraph = paragraphs[paraIdx];
19330
+ var statusStack = [{
19331
+ _level: paragraph.level,
19332
+ _override: 0,
19333
+ //0=neutral, 1=L, 2=R
19334
+ _isolate: 0
19335
+ //bool
19336
+ }];
19337
+ var stackTop = void 0;
19338
+ var overflowIsolateCount = 0;
19339
+ var overflowEmbeddingCount = 0;
19340
+ var validIsolateCount = 0;
19341
+ charTypeCounts.clear();
19342
+ for (var i$2 = paragraph.start; i$2 <= paragraph.end; i$2++) {
19343
+ var charType = charTypes[i$2];
19344
+ stackTop = statusStack[statusStack.length - 1];
19345
+ charTypeCounts.set(charType, (charTypeCounts.get(charType) || 0) + 1);
19346
+ if (charType & NEUTRAL_ISOLATE_TYPES) {
19347
+ charTypeCounts.set(NEUTRAL_ISOLATE_TYPES, (charTypeCounts.get(NEUTRAL_ISOLATE_TYPES) || 0) + 1);
19348
+ }
19349
+ if (charType & FORMATTING_TYPES) {
19350
+ if (charType & (TYPE_RLE | TYPE_LRE)) {
19351
+ embedLevels[i$2] = stackTop._level;
19352
+ var level = (charType === TYPE_RLE ? nextOdd : nextEven)(stackTop._level);
19353
+ if (level <= MAX_DEPTH && !overflowIsolateCount && !overflowEmbeddingCount) {
19354
+ statusStack.push({
19355
+ _level: level,
19356
+ _override: 0,
19357
+ _isolate: 0
19358
+ });
19359
+ } else if (!overflowIsolateCount) {
19360
+ overflowEmbeddingCount++;
19361
+ }
19362
+ } else if (charType & (TYPE_RLO | TYPE_LRO)) {
19363
+ embedLevels[i$2] = stackTop._level;
19364
+ var level$1 = (charType === TYPE_RLO ? nextOdd : nextEven)(stackTop._level);
19365
+ if (level$1 <= MAX_DEPTH && !overflowIsolateCount && !overflowEmbeddingCount) {
19366
+ statusStack.push({
19367
+ _level: level$1,
19368
+ _override: charType & TYPE_RLO ? TYPE_R : TYPE_L,
19369
+ _isolate: 0
19370
+ });
19371
+ } else if (!overflowIsolateCount) {
19372
+ overflowEmbeddingCount++;
19373
+ }
19374
+ } else if (charType & ISOLATE_INIT_TYPES) {
19375
+ if (charType & TYPE_FSI) {
19376
+ charType = determineAutoEmbedLevel(i$2 + 1, true) === 1 ? TYPE_RLI : TYPE_LRI;
19377
+ }
19378
+ embedLevels[i$2] = stackTop._level;
19379
+ if (stackTop._override) {
19380
+ changeCharType(i$2, stackTop._override);
19381
+ }
19382
+ var level$2 = (charType === TYPE_RLI ? nextOdd : nextEven)(stackTop._level);
19383
+ if (level$2 <= MAX_DEPTH && overflowIsolateCount === 0 && overflowEmbeddingCount === 0) {
19384
+ validIsolateCount++;
19385
+ statusStack.push({
19386
+ _level: level$2,
19387
+ _override: 0,
19388
+ _isolate: 1,
19389
+ _isolInitIndex: i$2
19390
+ });
19391
+ } else {
19392
+ overflowIsolateCount++;
19393
+ }
19394
+ } else if (charType & TYPE_PDI) {
19395
+ if (overflowIsolateCount > 0) {
19396
+ overflowIsolateCount--;
19397
+ } else if (validIsolateCount > 0) {
19398
+ overflowEmbeddingCount = 0;
19399
+ while (!statusStack[statusStack.length - 1]._isolate) {
19400
+ statusStack.pop();
19401
+ }
19402
+ var isolInitIndex = statusStack[statusStack.length - 1]._isolInitIndex;
19403
+ if (isolInitIndex != null) {
19404
+ isolationPairs.set(isolInitIndex, i$2);
19405
+ isolationPairs.set(i$2, isolInitIndex);
19406
+ }
19407
+ statusStack.pop();
19408
+ validIsolateCount--;
19409
+ }
19410
+ stackTop = statusStack[statusStack.length - 1];
19411
+ embedLevels[i$2] = stackTop._level;
19412
+ if (stackTop._override) {
19413
+ changeCharType(i$2, stackTop._override);
19414
+ }
19415
+ } else if (charType & TYPE_PDF) {
19416
+ if (overflowIsolateCount === 0) {
19417
+ if (overflowEmbeddingCount > 0) {
19418
+ overflowEmbeddingCount--;
19419
+ } else if (!stackTop._isolate && statusStack.length > 1) {
19420
+ statusStack.pop();
19421
+ stackTop = statusStack[statusStack.length - 1];
19422
+ }
19423
+ }
19424
+ embedLevels[i$2] = stackTop._level;
19425
+ } else if (charType & TYPE_B) {
19426
+ embedLevels[i$2] = paragraph.level;
19427
+ }
19428
+ } else {
19429
+ embedLevels[i$2] = stackTop._level;
19430
+ if (stackTop._override && charType !== TYPE_BN) {
19431
+ changeCharType(i$2, stackTop._override);
19432
+ }
19433
+ }
19434
+ }
19435
+ var levelRuns = [];
19436
+ var currentRun = null;
19437
+ for (var i$3 = paragraph.start; i$3 <= paragraph.end; i$3++) {
19438
+ var charType$1 = charTypes[i$3];
19439
+ if (!(charType$1 & BN_LIKE_TYPES)) {
19440
+ var lvl = embedLevels[i$3];
19441
+ var isIsolInit = charType$1 & ISOLATE_INIT_TYPES;
19442
+ var isPDI = charType$1 === TYPE_PDI;
19443
+ if (currentRun && lvl === currentRun._level) {
19444
+ currentRun._end = i$3;
19445
+ currentRun._endsWithIsolInit = isIsolInit;
19446
+ } else {
19447
+ levelRuns.push(currentRun = {
19448
+ _start: i$3,
19449
+ _end: i$3,
19450
+ _level: lvl,
19451
+ _startsWithPDI: isPDI,
19452
+ _endsWithIsolInit: isIsolInit
19453
+ });
19454
+ }
19455
+ }
19456
+ }
19457
+ var isolatingRunSeqs = [];
19458
+ for (var runIdx = 0; runIdx < levelRuns.length; runIdx++) {
19459
+ var run = levelRuns[runIdx];
19460
+ if (!run._startsWithPDI || run._startsWithPDI && !isolationPairs.has(run._start)) {
19461
+ var seqRuns = [currentRun = run];
19462
+ for (var pdiIndex = void 0; currentRun && currentRun._endsWithIsolInit && (pdiIndex = isolationPairs.get(currentRun._end)) != null; ) {
19463
+ for (var i$4 = runIdx + 1; i$4 < levelRuns.length; i$4++) {
19464
+ if (levelRuns[i$4]._start === pdiIndex) {
19465
+ seqRuns.push(currentRun = levelRuns[i$4]);
19466
+ break;
19467
+ }
19468
+ }
19469
+ }
19470
+ var seqIndices = [];
19471
+ for (var i$5 = 0; i$5 < seqRuns.length; i$5++) {
19472
+ var run$1 = seqRuns[i$5];
19473
+ for (var j = run$1._start; j <= run$1._end; j++) {
19474
+ seqIndices.push(j);
19475
+ }
19476
+ }
19477
+ var firstLevel = embedLevels[seqIndices[0]];
19478
+ var prevLevel = paragraph.level;
19479
+ for (var i$6 = seqIndices[0] - 1; i$6 >= 0; i$6--) {
19480
+ if (!(charTypes[i$6] & BN_LIKE_TYPES)) {
19481
+ prevLevel = embedLevels[i$6];
19482
+ break;
19483
+ }
19484
+ }
19485
+ var lastIndex = seqIndices[seqIndices.length - 1];
19486
+ var lastLevel = embedLevels[lastIndex];
19487
+ var nextLevel = paragraph.level;
19488
+ if (!(charTypes[lastIndex] & ISOLATE_INIT_TYPES)) {
19489
+ for (var i$7 = lastIndex + 1; i$7 <= paragraph.end; i$7++) {
19490
+ if (!(charTypes[i$7] & BN_LIKE_TYPES)) {
19491
+ nextLevel = embedLevels[i$7];
19492
+ break;
19493
+ }
19494
+ }
19495
+ }
19496
+ isolatingRunSeqs.push({
19497
+ _seqIndices: seqIndices,
19498
+ _sosType: Math.max(prevLevel, firstLevel) % 2 ? TYPE_R : TYPE_L,
19499
+ _eosType: Math.max(nextLevel, lastLevel) % 2 ? TYPE_R : TYPE_L
19500
+ });
19501
+ }
19502
+ }
19503
+ for (var seqIdx = 0; seqIdx < isolatingRunSeqs.length; seqIdx++) {
19504
+ var ref = isolatingRunSeqs[seqIdx];
19505
+ var seqIndices$1 = ref._seqIndices;
19506
+ var sosType = ref._sosType;
19507
+ var eosType = ref._eosType;
19508
+ var embedDirection = embedLevels[seqIndices$1[0]] & 1 ? TYPE_R : TYPE_L;
19509
+ if (charTypeCounts.get(TYPE_NSM)) {
19510
+ for (var si = 0; si < seqIndices$1.length; si++) {
19511
+ var i$8 = seqIndices$1[si];
19512
+ if (charTypes[i$8] & TYPE_NSM) {
19513
+ var prevType = sosType;
19514
+ for (var sj = si - 1; sj >= 0; sj--) {
19515
+ if (!(charTypes[seqIndices$1[sj]] & BN_LIKE_TYPES)) {
19516
+ prevType = charTypes[seqIndices$1[sj]];
19517
+ break;
19518
+ }
19519
+ }
19520
+ changeCharType(i$8, prevType & (ISOLATE_INIT_TYPES | TYPE_PDI) ? TYPE_ON : prevType);
19521
+ }
19522
+ }
19523
+ }
19524
+ if (charTypeCounts.get(TYPE_EN)) {
19525
+ for (var si$1 = 0; si$1 < seqIndices$1.length; si$1++) {
19526
+ var i$9 = seqIndices$1[si$1];
19527
+ if (charTypes[i$9] & TYPE_EN) {
19528
+ for (var sj$1 = si$1 - 1; sj$1 >= -1; sj$1--) {
19529
+ var prevCharType = sj$1 === -1 ? sosType : charTypes[seqIndices$1[sj$1]];
19530
+ if (prevCharType & STRONG_TYPES) {
19531
+ if (prevCharType === TYPE_AL) {
19532
+ changeCharType(i$9, TYPE_AN);
19533
+ }
19534
+ break;
19535
+ }
19536
+ }
19537
+ }
19538
+ }
19539
+ }
19540
+ if (charTypeCounts.get(TYPE_AL)) {
19541
+ for (var si$2 = 0; si$2 < seqIndices$1.length; si$2++) {
19542
+ var i$10 = seqIndices$1[si$2];
19543
+ if (charTypes[i$10] & TYPE_AL) {
19544
+ changeCharType(i$10, TYPE_R);
19545
+ }
19546
+ }
19547
+ }
19548
+ if (charTypeCounts.get(TYPE_ES) || charTypeCounts.get(TYPE_CS)) {
19549
+ for (var si$3 = 1; si$3 < seqIndices$1.length - 1; si$3++) {
19550
+ var i$11 = seqIndices$1[si$3];
19551
+ if (charTypes[i$11] & (TYPE_ES | TYPE_CS)) {
19552
+ var prevType$1 = 0, nextType = 0;
19553
+ for (var sj$2 = si$3 - 1; sj$2 >= 0; sj$2--) {
19554
+ prevType$1 = charTypes[seqIndices$1[sj$2]];
19555
+ if (!(prevType$1 & BN_LIKE_TYPES)) {
19556
+ break;
19557
+ }
19558
+ }
19559
+ for (var sj$3 = si$3 + 1; sj$3 < seqIndices$1.length; sj$3++) {
19560
+ nextType = charTypes[seqIndices$1[sj$3]];
19561
+ if (!(nextType & BN_LIKE_TYPES)) {
19562
+ break;
19563
+ }
19564
+ }
19565
+ if (prevType$1 === nextType && (charTypes[i$11] === TYPE_ES ? prevType$1 === TYPE_EN : prevType$1 & (TYPE_EN | TYPE_AN))) {
19566
+ changeCharType(i$11, prevType$1);
19567
+ }
19568
+ }
19569
+ }
19570
+ }
19571
+ if (charTypeCounts.get(TYPE_EN)) {
19572
+ for (var si$4 = 0; si$4 < seqIndices$1.length; si$4++) {
19573
+ var i$12 = seqIndices$1[si$4];
19574
+ if (charTypes[i$12] & TYPE_EN) {
19575
+ for (var sj$4 = si$4 - 1; sj$4 >= 0 && charTypes[seqIndices$1[sj$4]] & (TYPE_ET | BN_LIKE_TYPES); sj$4--) {
19576
+ changeCharType(seqIndices$1[sj$4], TYPE_EN);
19577
+ }
19578
+ for (si$4++; si$4 < seqIndices$1.length && charTypes[seqIndices$1[si$4]] & (TYPE_ET | BN_LIKE_TYPES | TYPE_EN); si$4++) {
19579
+ if (charTypes[seqIndices$1[si$4]] !== TYPE_EN) {
19580
+ changeCharType(seqIndices$1[si$4], TYPE_EN);
19581
+ }
19582
+ }
19583
+ }
19584
+ }
19585
+ }
19586
+ if (charTypeCounts.get(TYPE_ET) || charTypeCounts.get(TYPE_ES) || charTypeCounts.get(TYPE_CS)) {
19587
+ for (var si$5 = 0; si$5 < seqIndices$1.length; si$5++) {
19588
+ var i$13 = seqIndices$1[si$5];
19589
+ if (charTypes[i$13] & (TYPE_ET | TYPE_ES | TYPE_CS)) {
19590
+ changeCharType(i$13, TYPE_ON);
19591
+ for (var sj$5 = si$5 - 1; sj$5 >= 0 && charTypes[seqIndices$1[sj$5]] & BN_LIKE_TYPES; sj$5--) {
19592
+ changeCharType(seqIndices$1[sj$5], TYPE_ON);
19593
+ }
19594
+ for (var sj$6 = si$5 + 1; sj$6 < seqIndices$1.length && charTypes[seqIndices$1[sj$6]] & BN_LIKE_TYPES; sj$6++) {
19595
+ changeCharType(seqIndices$1[sj$6], TYPE_ON);
19596
+ }
19597
+ }
19598
+ }
19599
+ }
19600
+ if (charTypeCounts.get(TYPE_EN)) {
19601
+ for (var si$6 = 0, prevStrongType = sosType; si$6 < seqIndices$1.length; si$6++) {
19602
+ var i$14 = seqIndices$1[si$6];
19603
+ var type = charTypes[i$14];
19604
+ if (type & TYPE_EN) {
19605
+ if (prevStrongType === TYPE_L) {
19606
+ changeCharType(i$14, TYPE_L);
19607
+ }
19608
+ } else if (type & STRONG_TYPES) {
19609
+ prevStrongType = type;
19610
+ }
19611
+ }
19612
+ }
19613
+ if (charTypeCounts.get(NEUTRAL_ISOLATE_TYPES)) {
19614
+ var R_TYPES_FOR_N_STEPS = TYPE_R | TYPE_EN | TYPE_AN;
19615
+ var STRONG_TYPES_FOR_N_STEPS = R_TYPES_FOR_N_STEPS | TYPE_L;
19616
+ var bracketPairs = [];
19617
+ {
19618
+ var openerStack = [];
19619
+ for (var si$7 = 0; si$7 < seqIndices$1.length; si$7++) {
19620
+ if (charTypes[seqIndices$1[si$7]] & NEUTRAL_ISOLATE_TYPES) {
19621
+ var char = string[seqIndices$1[si$7]];
19622
+ var oppositeBracket = void 0;
19623
+ if (openingToClosingBracket(char) !== null) {
19624
+ if (openerStack.length < 63) {
19625
+ openerStack.push({ char, seqIndex: si$7 });
19626
+ } else {
19627
+ break;
19628
+ }
19629
+ } else if ((oppositeBracket = closingToOpeningBracket(char)) !== null) {
19630
+ for (var stackIdx = openerStack.length - 1; stackIdx >= 0; stackIdx--) {
19631
+ var stackChar = openerStack[stackIdx].char;
19632
+ if (stackChar === oppositeBracket || stackChar === closingToOpeningBracket(getCanonicalBracket(char)) || openingToClosingBracket(getCanonicalBracket(stackChar)) === char) {
19633
+ bracketPairs.push([openerStack[stackIdx].seqIndex, si$7]);
19634
+ openerStack.length = stackIdx;
19635
+ break;
19636
+ }
19637
+ }
19638
+ }
19639
+ }
19640
+ }
19641
+ bracketPairs.sort(function(a, b) {
19642
+ return a[0] - b[0];
19643
+ });
19644
+ }
19645
+ for (var pairIdx = 0; pairIdx < bracketPairs.length; pairIdx++) {
19646
+ var ref$1 = bracketPairs[pairIdx];
19647
+ var openSeqIdx = ref$1[0];
19648
+ var closeSeqIdx = ref$1[1];
19649
+ var foundStrongType = false;
19650
+ var useStrongType = 0;
19651
+ for (var si$8 = openSeqIdx + 1; si$8 < closeSeqIdx; si$8++) {
19652
+ var i$15 = seqIndices$1[si$8];
19653
+ if (charTypes[i$15] & STRONG_TYPES_FOR_N_STEPS) {
19654
+ foundStrongType = true;
19655
+ var lr = charTypes[i$15] & R_TYPES_FOR_N_STEPS ? TYPE_R : TYPE_L;
19656
+ if (lr === embedDirection) {
19657
+ useStrongType = lr;
19658
+ break;
19659
+ }
19660
+ }
19661
+ }
19662
+ if (foundStrongType && !useStrongType) {
19663
+ useStrongType = sosType;
19664
+ for (var si$9 = openSeqIdx - 1; si$9 >= 0; si$9--) {
19665
+ var i$16 = seqIndices$1[si$9];
19666
+ if (charTypes[i$16] & STRONG_TYPES_FOR_N_STEPS) {
19667
+ var lr$1 = charTypes[i$16] & R_TYPES_FOR_N_STEPS ? TYPE_R : TYPE_L;
19668
+ if (lr$1 !== embedDirection) {
19669
+ useStrongType = lr$1;
19670
+ } else {
19671
+ useStrongType = embedDirection;
19672
+ }
19673
+ break;
19674
+ }
19675
+ }
19676
+ }
19677
+ if (useStrongType) {
19678
+ charTypes[seqIndices$1[openSeqIdx]] = charTypes[seqIndices$1[closeSeqIdx]] = useStrongType;
19679
+ if (useStrongType !== embedDirection) {
19680
+ for (var si$10 = openSeqIdx + 1; si$10 < seqIndices$1.length; si$10++) {
19681
+ if (!(charTypes[seqIndices$1[si$10]] & BN_LIKE_TYPES)) {
19682
+ if (getBidiCharType(string[seqIndices$1[si$10]]) & TYPE_NSM) {
19683
+ charTypes[seqIndices$1[si$10]] = useStrongType;
19684
+ }
19685
+ break;
19686
+ }
19687
+ }
19688
+ }
19689
+ if (useStrongType !== embedDirection) {
19690
+ for (var si$11 = closeSeqIdx + 1; si$11 < seqIndices$1.length; si$11++) {
19691
+ if (!(charTypes[seqIndices$1[si$11]] & BN_LIKE_TYPES)) {
19692
+ if (getBidiCharType(string[seqIndices$1[si$11]]) & TYPE_NSM) {
19693
+ charTypes[seqIndices$1[si$11]] = useStrongType;
19694
+ }
19695
+ break;
19696
+ }
19697
+ }
19698
+ }
19699
+ }
19700
+ }
19701
+ for (var si$12 = 0; si$12 < seqIndices$1.length; si$12++) {
19702
+ if (charTypes[seqIndices$1[si$12]] & NEUTRAL_ISOLATE_TYPES) {
19703
+ var niRunStart = si$12, niRunEnd = si$12;
19704
+ var prevType$2 = sosType;
19705
+ for (var si2 = si$12 - 1; si2 >= 0; si2--) {
19706
+ if (charTypes[seqIndices$1[si2]] & BN_LIKE_TYPES) {
19707
+ niRunStart = si2;
19708
+ } else {
19709
+ prevType$2 = charTypes[seqIndices$1[si2]] & R_TYPES_FOR_N_STEPS ? TYPE_R : TYPE_L;
19710
+ break;
19711
+ }
19712
+ }
19713
+ var nextType$1 = eosType;
19714
+ for (var si2$1 = si$12 + 1; si2$1 < seqIndices$1.length; si2$1++) {
19715
+ if (charTypes[seqIndices$1[si2$1]] & (NEUTRAL_ISOLATE_TYPES | BN_LIKE_TYPES)) {
19716
+ niRunEnd = si2$1;
19717
+ } else {
19718
+ nextType$1 = charTypes[seqIndices$1[si2$1]] & R_TYPES_FOR_N_STEPS ? TYPE_R : TYPE_L;
19719
+ break;
19720
+ }
19721
+ }
19722
+ for (var sj$7 = niRunStart; sj$7 <= niRunEnd; sj$7++) {
19723
+ charTypes[seqIndices$1[sj$7]] = prevType$2 === nextType$1 ? prevType$2 : embedDirection;
19724
+ }
19725
+ si$12 = niRunEnd;
19726
+ }
19727
+ }
19728
+ }
19729
+ }
19730
+ for (var i$17 = paragraph.start; i$17 <= paragraph.end; i$17++) {
19731
+ var level$3 = embedLevels[i$17];
19732
+ var type$1 = charTypes[i$17];
19733
+ if (level$3 & 1) {
19734
+ if (type$1 & (TYPE_L | TYPE_EN | TYPE_AN)) {
19735
+ embedLevels[i$17]++;
19736
+ }
19737
+ } else {
19738
+ if (type$1 & TYPE_R) {
19739
+ embedLevels[i$17]++;
19740
+ } else if (type$1 & (TYPE_AN | TYPE_EN)) {
19741
+ embedLevels[i$17] += 2;
19742
+ }
19743
+ }
19744
+ if (type$1 & BN_LIKE_TYPES) {
19745
+ embedLevels[i$17] = i$17 === 0 ? paragraph.level : embedLevels[i$17 - 1];
19746
+ }
19747
+ if (i$17 === paragraph.end || getBidiCharType(string[i$17]) & (TYPE_S | TYPE_B)) {
19748
+ for (var j$1 = i$17; j$1 >= 0 && getBidiCharType(string[j$1]) & TRAILING_TYPES; j$1--) {
19749
+ embedLevels[j$1] = paragraph.level;
19750
+ }
19751
+ }
19752
+ }
19753
+ }
19754
+ return {
19755
+ levels: embedLevels,
19756
+ paragraphs
19757
+ };
19758
+ function determineAutoEmbedLevel(start, isFSI) {
19759
+ for (var i2 = start; i2 < string.length; i2++) {
19760
+ var charType2 = charTypes[i2];
19761
+ if (charType2 & (TYPE_R | TYPE_AL)) {
19762
+ return 1;
19763
+ }
19764
+ if (charType2 & (TYPE_B | TYPE_L) || isFSI && charType2 === TYPE_PDI) {
19765
+ return 0;
19766
+ }
19767
+ if (charType2 & ISOLATE_INIT_TYPES) {
19768
+ var pdi = indexOfMatchingPDI(i2);
19769
+ i2 = pdi === -1 ? string.length : pdi;
19770
+ }
19771
+ }
19772
+ return 0;
19773
+ }
19774
+ function indexOfMatchingPDI(isolateStart) {
19775
+ var isolationLevel = 1;
19776
+ for (var i2 = isolateStart + 1; i2 < string.length; i2++) {
19777
+ var charType2 = charTypes[i2];
19778
+ if (charType2 & TYPE_B) {
19779
+ break;
19780
+ }
19781
+ if (charType2 & TYPE_PDI) {
19782
+ if (--isolationLevel === 0) {
19783
+ return i2;
19784
+ }
19785
+ } else if (charType2 & ISOLATE_INIT_TYPES) {
19786
+ isolationLevel++;
19787
+ }
19788
+ }
19789
+ return -1;
19790
+ }
19791
+ }
19792
+ var data = "14>1,j>2,t>2,u>2,1a>g,2v3>1,1>1,1ge>1,1wd>1,b>1,1j>1,f>1,ai>3,-2>3,+1,8>1k0,-1jq>1y7,-1y6>1hf,-1he>1h6,-1h5>1ha,-1h8>1qi,-1pu>1,6>3u,-3s>7,6>1,1>1,f>1,1>1,+2,3>1,1>1,+13,4>1,1>1,6>1eo,-1ee>1,3>1mg,-1me>1mk,-1mj>1mi,-1mg>1mi,-1md>1,1>1,+2,1>10k,-103>1,1>1,4>1,5>1,1>1,+10,3>1,1>8,-7>8,+1,-6>7,+1,a>1,1>1,u>1,u6>1,1>1,+5,26>1,1>1,2>1,2>2,8>1,7>1,4>1,1>1,+5,b8>1,1>1,+3,1>3,-2>1,2>1,1>1,+2,c>1,3>1,1>1,+2,h>1,3>1,a>1,1>1,2>1,3>1,1>1,d>1,f>1,3>1,1a>1,1>1,6>1,7>1,13>1,k>1,1>1,+19,4>1,1>1,+2,2>1,1>1,+18,m>1,a>1,1>1,lk>1,1>1,4>1,2>1,f>1,3>1,1>1,+3,db>1,1>1,+3,3>1,1>1,+2,14qm>1,1>1,+1,6>1,4j>1,j>2,t>2,u>2,2>1,+1";
19793
+ var mirrorMap;
19794
+ function parse() {
19795
+ if (!mirrorMap) {
19796
+ var ref = parseCharacterMap(data, true);
19797
+ var map2 = ref.map;
19798
+ var reverseMap = ref.reverseMap;
19799
+ reverseMap.forEach(function(value, key) {
19800
+ map2.set(key, value);
19801
+ });
19802
+ mirrorMap = map2;
19803
+ }
19804
+ }
19805
+ function getMirroredCharacter(char) {
19806
+ parse();
19807
+ return mirrorMap.get(char) || null;
19808
+ }
19809
+ function getMirroredCharactersMap(string, embeddingLevels, start, end) {
19810
+ var strLen = string.length;
19811
+ start = Math.max(0, start == null ? 0 : +start);
19812
+ end = Math.min(strLen - 1, end == null ? strLen - 1 : +end);
19813
+ var map2 = /* @__PURE__ */ new Map();
19814
+ for (var i = start; i <= end; i++) {
19815
+ if (embeddingLevels[i] & 1) {
19816
+ var mirror = getMirroredCharacter(string[i]);
19817
+ if (mirror !== null) {
19818
+ map2.set(i, mirror);
19819
+ }
19820
+ }
19821
+ }
19822
+ return map2;
19823
+ }
19824
+ function getReorderSegments(string, embeddingLevelsResult, start, end) {
19825
+ var strLen = string.length;
19826
+ start = Math.max(0, start == null ? 0 : +start);
19827
+ end = Math.min(strLen - 1, end == null ? strLen - 1 : +end);
19828
+ var segments = [];
19829
+ embeddingLevelsResult.paragraphs.forEach(function(paragraph) {
19830
+ var lineStart = Math.max(start, paragraph.start);
19831
+ var lineEnd = Math.min(end, paragraph.end);
19832
+ if (lineStart < lineEnd) {
19833
+ var lineLevels = embeddingLevelsResult.levels.slice(lineStart, lineEnd + 1);
19834
+ for (var i = lineEnd; i >= lineStart && getBidiCharType(string[i]) & TRAILING_TYPES; i--) {
19835
+ lineLevels[i] = paragraph.level;
19836
+ }
19837
+ var maxLevel = paragraph.level;
19838
+ var minOddLevel = Infinity;
19839
+ for (var i$1 = 0; i$1 < lineLevels.length; i$1++) {
19840
+ var level = lineLevels[i$1];
19841
+ if (level > maxLevel) {
19842
+ maxLevel = level;
19843
+ }
19844
+ if (level < minOddLevel) {
19845
+ minOddLevel = level | 1;
19846
+ }
19847
+ }
19848
+ for (var lvl = maxLevel; lvl >= minOddLevel; lvl--) {
19849
+ for (var i$2 = 0; i$2 < lineLevels.length; i$2++) {
19850
+ if (lineLevels[i$2] >= lvl) {
19851
+ var segStart = i$2;
19852
+ while (i$2 + 1 < lineLevels.length && lineLevels[i$2 + 1] >= lvl) {
19853
+ i$2++;
19854
+ }
19855
+ if (i$2 > segStart) {
19856
+ segments.push([segStart + lineStart, i$2 + lineStart]);
19857
+ }
19858
+ }
19859
+ }
19860
+ }
19861
+ }
19862
+ });
19863
+ return segments;
19864
+ }
19865
+ function getReorderedString(string, embedLevelsResult, start, end) {
19866
+ var indices = getReorderedIndices(string, embedLevelsResult, start, end);
19867
+ var chars = [].concat(string);
19868
+ indices.forEach(function(charIndex, i) {
19869
+ chars[i] = (embedLevelsResult.levels[charIndex] & 1 ? getMirroredCharacter(string[charIndex]) : null) || string[charIndex];
19870
+ });
19871
+ return chars.join("");
19872
+ }
19873
+ function getReorderedIndices(string, embedLevelsResult, start, end) {
19874
+ var segments = getReorderSegments(string, embedLevelsResult, start, end);
19875
+ var indices = [];
19876
+ for (var i = 0; i < string.length; i++) {
19877
+ indices[i] = i;
19878
+ }
19879
+ segments.forEach(function(ref) {
19880
+ var start2 = ref[0];
19881
+ var end2 = ref[1];
19882
+ var slice = indices.slice(start2, end2 + 1);
19883
+ for (var i2 = slice.length; i2--; ) {
19884
+ indices[end2 - i2] = slice[i2];
19885
+ }
19886
+ });
19887
+ return indices;
19888
+ }
19889
+ exports.closingToOpeningBracket = closingToOpeningBracket;
19890
+ exports.getBidiCharType = getBidiCharType;
19891
+ exports.getBidiCharTypeName = getBidiCharTypeName;
19892
+ exports.getCanonicalBracket = getCanonicalBracket;
19893
+ exports.getEmbeddingLevels = getEmbeddingLevels;
19894
+ exports.getMirroredCharacter = getMirroredCharacter;
19895
+ exports.getMirroredCharactersMap = getMirroredCharactersMap;
19896
+ exports.getReorderSegments = getReorderSegments;
19897
+ exports.getReorderedIndices = getReorderedIndices;
19898
+ exports.getReorderedString = getReorderedString;
19899
+ exports.openingToClosingBracket = openingToClosingBracket;
19900
+ Object.defineProperty(exports, "__esModule", { value: true });
19901
+ return exports;
19902
+ })({});
19903
+ return bidi;
19904
+ }
19905
+ var bidi_default = bidiFactory;
19906
+
18425
19907
  // src/claude-ink/bidi.ts
18426
- import bidiFactory from "bidi-js";
18427
19908
  var bidiInstance;
18428
19909
  var needsSoftwareBidi;
18429
19910
  function needsBidi() {
@@ -18435,7 +19916,7 @@ function needsBidi() {
18435
19916
  }
18436
19917
  function getBidi() {
18437
19918
  if (!bidiInstance) {
18438
- bidiInstance = bidiFactory();
19919
+ bidiInstance = bidi_default();
18439
19920
  }
18440
19921
  return bidiInstance;
18441
19922
  }
@@ -18969,9 +20450,6 @@ var getMaxWidth = (yogaNode) => {
18969
20450
  };
18970
20451
  var get_max_width_default = getMaxWidth;
18971
20452
 
18972
- // src/claude-ink/render-border.ts
18973
- import chalk2 from "chalk";
18974
-
18975
20453
  // node_modules/cli-boxes/boxes.json
18976
20454
  var boxes_default = {
18977
20455
  single: {
@@ -19095,7 +20573,7 @@ function embedTextInBorder(borderLine, text, align, offset = 0, borderChar) {
19095
20573
  function styleBorderLine(line, color, dim) {
19096
20574
  let styled = applyColor(line, color);
19097
20575
  if (dim) {
19098
- styled = chalk2.dim(styled);
20576
+ styled = source_default.dim(styled);
19099
20577
  }
19100
20578
  return styled;
19101
20579
  }
@@ -19150,13 +20628,13 @@ var renderBorder = (x, y, node, output) => {
19150
20628
  verticalBorderHeight
19151
20629
  );
19152
20630
  if (dimLeftBorderColor) {
19153
- leftBorder = chalk2.dim(leftBorder);
20631
+ leftBorder = source_default.dim(leftBorder);
19154
20632
  }
19155
20633
  let rightBorder = (applyColor(box.right, rightBorderColor) + "\n").repeat(
19156
20634
  verticalBorderHeight
19157
20635
  );
19158
20636
  if (dimRightBorderColor) {
19159
- rightBorder = chalk2.dim(rightBorder);
20637
+ rightBorder = source_default.dim(rightBorder);
19160
20638
  }
19161
20639
  const bottomBorderLine = showBottomBorder ? (showLeftBorder ? box.bottomLeft : "") + box.bottom.repeat(contentWidth) + (showRightBorder ? box.bottomRight : "") : "";
19162
20640
  let bottomBorder;
@@ -19947,7 +21425,6 @@ var render_node_to_output_default = renderNodeToOutput;
19947
21425
 
19948
21426
  // src/claude-ink/render-to-screen.ts
19949
21427
  var import_constants3 = __toESM(require_constants(), 1);
19950
- import noop from "lodash-es/noop.js";
19951
21428
  var timing = { reconcile: 0, yoga: 0, paint: 0, scan: 0, calls: 0 };
19952
21429
  function scanPositions(screen, query) {
19953
21430
  const lq = query.toLowerCase();
@@ -20138,7 +21615,7 @@ function applySearchHighlight(screen, query, stylePool) {
20138
21615
  }
20139
21616
 
20140
21617
  // src/claude-ink/ink.tsx
20141
- import { jsx as jsx9 } from "react/jsx-runtime";
21618
+ var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1);
20142
21619
  var ALT_SCREEN_ANCHOR_CURSOR = Object.freeze({
20143
21620
  x: 0,
20144
21621
  y: 0,
@@ -20183,7 +21660,7 @@ var Ink = class {
20183
21660
  stylePool: this.stylePool
20184
21661
  });
20185
21662
  const deferredRender = () => queueMicrotask(this.onRender);
20186
- this.scheduleRender = throttle(deferredRender, FRAME_INTERVAL_MS, {
21663
+ this.scheduleRender = throttle_default(deferredRender, FRAME_INTERVAL_MS, {
20187
21664
  leading: true,
20188
21665
  trailing: true
20189
21666
  });
@@ -20229,13 +21706,13 @@ var Ink = class {
20229
21706
  false,
20230
21707
  null,
20231
21708
  "id",
20232
- noop2,
21709
+ noop_default,
20233
21710
  // onUncaughtError
20234
- noop2,
21711
+ noop_default,
20235
21712
  // onCaughtError
20236
- noop2,
21713
+ noop_default,
20237
21714
  // onRecoverableError
20238
- noop2
21715
+ noop_default
20239
21716
  // onDefaultTransitionIndicator
20240
21717
  );
20241
21718
  if (false) {
@@ -21216,8 +22693,8 @@ var Ink = class {
21216
22693
  };
21217
22694
  render(node) {
21218
22695
  this.currentNode = node;
21219
- const tree = /* @__PURE__ */ jsx9(App, { stdin: this.options.stdin, stdout: this.options.stdout, stderr: this.options.stderr, exitOnCtrlC: this.options.exitOnCtrlC, onExit: this.unmount, terminalColumns: this.terminalColumns, terminalRows: this.terminalRows, selection: this.selection, onSelectionChange: this.notifySelectionChange, onClickAt: this.dispatchClick, onHoverAt: this.dispatchHover, getHyperlinkAt: this.getHyperlinkAt, onOpenHyperlink: this.openHyperlink, onMultiClick: this.handleMultiClick, onSelectionDrag: this.handleSelectionDrag, onStdinResume: this.reassertTerminalModes, onCursorDeclaration: this.setCursorDeclaration, dispatchKeyboardEvent: this.dispatchKeyboardEvent, children: /* @__PURE__ */ jsx9(TerminalWriteProvider, { value: this.writeRaw, children: node }) });
21220
- reconciler_default.updateContainerSync(tree, this.container, null, noop2);
22696
+ const tree = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(App, { stdin: this.options.stdin, stdout: this.options.stdout, stderr: this.options.stderr, exitOnCtrlC: this.options.exitOnCtrlC, onExit: this.unmount, terminalColumns: this.terminalColumns, terminalRows: this.terminalRows, selection: this.selection, onSelectionChange: this.notifySelectionChange, onClickAt: this.dispatchClick, onHoverAt: this.dispatchHover, getHyperlinkAt: this.getHyperlinkAt, onOpenHyperlink: this.openHyperlink, onMultiClick: this.handleMultiClick, onSelectionDrag: this.handleSelectionDrag, onStdinResume: this.reassertTerminalModes, onCursorDeclaration: this.setCursorDeclaration, dispatchKeyboardEvent: this.dispatchKeyboardEvent, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(TerminalWriteProvider, { value: this.writeRaw, children: node }) });
22697
+ reconciler_default.updateContainerSync(tree, this.container, null, noop_default);
21221
22698
  reconciler_default.flushSyncWork();
21222
22699
  }
21223
22700
  unmount(error) {
@@ -21253,7 +22730,7 @@ var Ink = class {
21253
22730
  clearTimeout(this.drainTimer);
21254
22731
  this.drainTimer = null;
21255
22732
  }
21256
- reconciler_default.updateContainerSync(null, this.container, null, noop2);
22733
+ reconciler_default.updateContainerSync(null, this.container, null, noop_default);
21257
22734
  reconciler_default.flushSyncWork();
21258
22735
  instances_default.delete(this.options.stdout);
21259
22736
  this.rootNode.yogaNode?.free();
@@ -21429,7 +22906,7 @@ var wrappedRender = async (node, options) => {
21429
22906
  );
21430
22907
  return instance;
21431
22908
  };
21432
- var root_default = wrappedRender;
22909
+ var root_default2 = wrappedRender;
21433
22910
  var getOptions = (stdout = {}) => {
21434
22911
  if (stdout instanceof Stream) {
21435
22912
  return {
@@ -21450,10 +22927,11 @@ var getInstance = (stdout, createInstance) => {
21450
22927
 
21451
22928
  // src/claude-ink/index.ts
21452
22929
  function useStdout() {
21453
- return useMemo3(() => ({ stdout: process.stdout }), []);
22930
+ return (0, import_react16.useMemo)(() => ({ stdout: process.stdout }), []);
21454
22931
  }
21455
22932
 
21456
22933
  export {
22934
+ require_jsx_runtime,
21457
22935
  Box_default,
21458
22936
  Text,
21459
22937
  stripAnsi,
@@ -21471,11 +22949,33 @@ export {
21471
22949
  shiftAnchor,
21472
22950
  ClockContext,
21473
22951
  renderSync,
21474
- root_default,
22952
+ root_default2 as root_default,
21475
22953
  useStdout
21476
22954
  };
21477
22955
  /*! Bundled license information:
21478
22956
 
22957
+ react/cjs/react-compiler-runtime.production.js:
22958
+ (**
22959
+ * @license React
22960
+ * react-compiler-runtime.production.js
22961
+ *
22962
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22963
+ *
22964
+ * This source code is licensed under the MIT license found in the
22965
+ * LICENSE file in the root directory of this source tree.
22966
+ *)
22967
+
22968
+ react/cjs/react-jsx-runtime.production.js:
22969
+ (**
22970
+ * @license React
22971
+ * react-jsx-runtime.production.js
22972
+ *
22973
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22974
+ *
22975
+ * This source code is licensed under the MIT license found in the
22976
+ * LICENSE file in the root directory of this source tree.
22977
+ *)
22978
+
21479
22979
  scheduler/cjs/scheduler.production.js:
21480
22980
  (**
21481
22981
  * @license React