@uncarved/jade 0.2.1 → 0.3.1

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 (227) hide show
  1. package/README.md +65 -2
  2. package/assets/logo.svg +1 -0
  3. package/bin/jade.js +4 -0
  4. package/dist/api.d.ts +5 -250
  5. package/dist/api.js +5 -7
  6. package/dist/api.js.map +1 -1
  7. package/dist/fetch.d.ts +8 -0
  8. package/dist/fetch.js +19 -17
  9. package/dist/fetch.js.map +1 -1
  10. package/dist/host.d.ts +12 -1
  11. package/dist/host.js +49 -1
  12. package/dist/host.js.map +1 -1
  13. package/dist/index.d.ts +1 -1
  14. package/dist/index.js +1 -1
  15. package/dist/index.js.map +1 -1
  16. package/dist/main.js +26 -4
  17. package/dist/main.js.map +1 -1
  18. package/dist/remote.js +4 -0
  19. package/dist/remote.js.map +1 -1
  20. package/dist/session.d.ts +2 -0
  21. package/dist/session.js +133 -13
  22. package/dist/session.js.map +1 -1
  23. package/dist/source.d.ts +2 -10
  24. package/dist/source.js.map +1 -1
  25. package/dist/update.d.ts +8 -20
  26. package/dist/update.js +12 -1
  27. package/dist/update.js.map +1 -1
  28. package/package.json +4 -2
  29. package/plugins/approval/index.ts +236 -85
  30. package/plugins/approval/plugin.json +1 -1
  31. package/plugins/approval/policy.ts +36 -17
  32. package/plugins/approval/review.ts +1 -1
  33. package/plugins/ask/index.ts +2 -2
  34. package/plugins/budget/index.ts +1 -1
  35. package/plugins/checks/checks.ts +3 -2
  36. package/plugins/checks/index.ts +2 -5
  37. package/plugins/commands/index.ts +2 -44
  38. package/plugins/compact/compact.ts +8 -3
  39. package/plugins/compact/index.ts +13 -16
  40. package/plugins/continue/index.ts +1 -1
  41. package/plugins/cost/index.ts +143 -0
  42. package/plugins/cost/plugin.json +13 -0
  43. package/plugins/custom-commands/index.ts +85 -0
  44. package/plugins/custom-commands/plugin.json +8 -0
  45. package/plugins/editor/index.ts +88 -0
  46. package/plugins/editor/plugin.json +17 -0
  47. package/plugins/fs/fs.ts +33 -6
  48. package/plugins/fs/grep.ts +19 -7
  49. package/plugins/fs/index.ts +6 -7
  50. package/plugins/fs/plugin.json +1 -1
  51. package/plugins/fs/renderers.ts +1 -1
  52. package/plugins/hooks/index.ts +152 -0
  53. package/plugins/hooks/plugin.json +14 -0
  54. package/plugins/keys/index.ts +2 -18
  55. package/plugins/mcp/index.ts +43 -15
  56. package/plugins/mcp/install.ts +139 -0
  57. package/plugins/mcp/mcp.ts +2 -1
  58. package/plugins/mcp/plugin.json +1 -1
  59. package/plugins/mcp/project.ts +37 -1
  60. package/plugins/memory/index.ts +4 -9
  61. package/plugins/memory/plugin.json +1 -1
  62. package/plugins/mentions/index.ts +2 -2
  63. package/plugins/models/configure.ts +258 -150
  64. package/plugins/models/context.ts +2 -2
  65. package/plugins/models/index.ts +39 -45
  66. package/plugins/models/plugin.json +1 -1
  67. package/plugins/models/provider.ts +34 -5
  68. package/plugins/models/saved.ts +8 -4
  69. package/plugins/modes/index.ts +2 -17
  70. package/plugins/plugins/index.ts +2 -2
  71. package/plugins/print/index.ts +36 -6
  72. package/plugins/print/plugin.json +1 -0
  73. package/plugins/prompts/index.ts +22 -14
  74. package/plugins/{memory → prompts}/notes.ts +21 -9
  75. package/plugins/prompts/plugin.json +8 -2
  76. package/plugins/prompts/prompts.ts +5 -4
  77. package/plugins/renderers/index.ts +2 -43
  78. package/plugins/repeats/index.ts +32 -2
  79. package/plugins/schedule/index.ts +2 -2
  80. package/plugins/scratch/index.ts +2 -3
  81. package/plugins/screenshot/browser.ts +221 -0
  82. package/plugins/screenshot/index.ts +29 -15
  83. package/plugins/screenshot/plugin.json +1 -1
  84. package/plugins/screenshot/tool.ts +27 -51
  85. package/plugins/sessions/index.ts +2 -17
  86. package/plugins/shell/index.ts +115 -7
  87. package/plugins/shell/plugin.json +3 -1
  88. package/plugins/shell/renderers.ts +1 -1
  89. package/plugins/shell/service.ts +2 -13
  90. package/plugins/shell/shell.ts +119 -47
  91. package/plugins/skills/index.ts +172 -37
  92. package/plugins/skills/install.ts +212 -0
  93. package/plugins/skills/plugin.json +3 -2
  94. package/plugins/skills/project.ts +38 -1
  95. package/plugins/skills/skills.ts +28 -9
  96. package/plugins/steer/index.ts +142 -0
  97. package/plugins/steer/plugin.json +8 -0
  98. package/plugins/suggest/index.ts +16 -11
  99. package/plugins/suggest/plugin.json +1 -1
  100. package/plugins/task/index.ts +18 -57
  101. package/plugins/task/plugin.json +9 -3
  102. package/plugins/task/subagent.ts +25 -7
  103. package/plugins/todo/index.ts +2 -2
  104. package/plugins/tools/index.ts +50 -0
  105. package/plugins/tools/plugin.json +7 -0
  106. package/plugins/tui/editor.ts +10 -2
  107. package/plugins/tui/frontend.ts +129 -23
  108. package/plugins/tui/index.ts +3 -8
  109. package/plugins/tui/markdown.ts +51 -6
  110. package/plugins/tui/mascot.ts +506 -0
  111. package/plugins/tui/plugin.json +2 -2
  112. package/plugins/tui/screen.ts +6 -0
  113. package/plugins/tui/transcript.ts +17 -2
  114. package/plugins/tui/tui.ts +344 -97
  115. package/plugins/undo/checkpoint.ts +2 -2
  116. package/plugins/undo/index.ts +84 -26
  117. package/plugins/undo/plugin.json +8 -2
  118. package/plugins/undo/snapshot.ts +129 -0
  119. package/plugins/update/index.ts +11 -15
  120. package/plugins/update/plugin.json +2 -1
  121. package/plugins/web/index.ts +8 -11
  122. package/plugins/web/plugin.json +1 -1
  123. package/plugins/web/renderers.ts +1 -1
  124. package/plugins-dist/approval/index.js +221 -51
  125. package/plugins-dist/approval/plugin.json +1 -1
  126. package/plugins-dist/approval/policy.js +30 -15
  127. package/plugins-dist/ask/index.js +1 -1
  128. package/plugins-dist/budget/index.js +1 -1
  129. package/plugins-dist/checks/checks.js +2 -1
  130. package/plugins-dist/checks/index.js +1 -1
  131. package/plugins-dist/commands/index.js +1 -1
  132. package/plugins-dist/compact/compact.js +6 -1
  133. package/plugins-dist/compact/index.js +12 -8
  134. package/plugins-dist/continue/index.js +1 -1
  135. package/plugins-dist/cost/index.js +135 -0
  136. package/plugins-dist/cost/plugin.json +16 -0
  137. package/plugins-dist/custom-commands/index.js +86 -0
  138. package/plugins-dist/custom-commands/plugin.json +12 -0
  139. package/plugins-dist/editor/index.js +89 -0
  140. package/plugins-dist/editor/plugin.json +21 -0
  141. package/plugins-dist/fs/fs.js +34 -6
  142. package/plugins-dist/fs/grep.js +17 -6
  143. package/plugins-dist/fs/index.js +6 -6
  144. package/plugins-dist/fs/plugin.json +1 -1
  145. package/plugins-dist/hooks/index.js +145 -0
  146. package/plugins-dist/hooks/plugin.json +19 -0
  147. package/plugins-dist/keys/index.js +1 -1
  148. package/plugins-dist/mcp/index.js +45 -13
  149. package/plugins-dist/mcp/install.js +160 -0
  150. package/plugins-dist/mcp/mcp.js +2 -1
  151. package/plugins-dist/mcp/plugin.json +2 -1
  152. package/plugins-dist/mcp/project.js +42 -1
  153. package/plugins-dist/memory/index.js +3 -5
  154. package/plugins-dist/memory/plugin.json +1 -1
  155. package/plugins-dist/mentions/index.js +1 -1
  156. package/plugins-dist/models/configure.js +252 -151
  157. package/plugins-dist/models/context.js +2 -2
  158. package/plugins-dist/models/index.js +41 -17
  159. package/plugins-dist/models/plugin.json +1 -1
  160. package/plugins-dist/models/provider.js +17 -3
  161. package/plugins-dist/models/saved.js +9 -4
  162. package/plugins-dist/modes/index.js +1 -1
  163. package/plugins-dist/plugins/index.js +1 -1
  164. package/plugins-dist/print/index.js +37 -3
  165. package/plugins-dist/print/plugin.json +3 -0
  166. package/plugins-dist/prompts/index.js +22 -3
  167. package/plugins-dist/{memory → prompts}/notes.js +10 -7
  168. package/plugins-dist/prompts/plugin.json +8 -2
  169. package/plugins-dist/prompts/prompts.js +5 -4
  170. package/plugins-dist/renderers/index.js +1 -1
  171. package/plugins-dist/repeats/index.js +28 -2
  172. package/plugins-dist/schedule/index.js +1 -1
  173. package/plugins-dist/scratch/index.js +1 -1
  174. package/plugins-dist/screenshot/browser.js +187 -0
  175. package/plugins-dist/screenshot/index.js +28 -13
  176. package/plugins-dist/screenshot/plugin.json +1 -1
  177. package/plugins-dist/screenshot/tool.js +27 -49
  178. package/plugins-dist/sessions/index.js +1 -1
  179. package/plugins-dist/shell/index.js +119 -4
  180. package/plugins-dist/shell/plugin.json +3 -1
  181. package/plugins-dist/shell/shell.js +106 -36
  182. package/plugins-dist/skills/index.js +184 -35
  183. package/plugins-dist/skills/install.js +178 -0
  184. package/plugins-dist/skills/plugin.json +6 -2
  185. package/plugins-dist/skills/project.js +43 -1
  186. package/plugins-dist/skills/skills.js +27 -10
  187. package/plugins-dist/steer/index.js +135 -0
  188. package/plugins-dist/steer/plugin.json +12 -0
  189. package/plugins-dist/suggest/index.js +15 -9
  190. package/plugins-dist/suggest/plugin.json +1 -1
  191. package/plugins-dist/task/index.js +17 -46
  192. package/plugins-dist/task/plugin.json +11 -5
  193. package/plugins-dist/task/subagent.js +21 -6
  194. package/plugins-dist/todo/index.js +1 -1
  195. package/plugins-dist/tools/index.js +49 -0
  196. package/plugins-dist/tools/plugin.json +9 -0
  197. package/plugins-dist/tui/editor.js +7 -2
  198. package/plugins-dist/tui/frontend.js +134 -15
  199. package/plugins-dist/tui/index.js +2 -1
  200. package/plugins-dist/tui/markdown.js +48 -6
  201. package/plugins-dist/tui/mascot.js +441 -0
  202. package/plugins-dist/tui/plugin.json +3 -2
  203. package/plugins-dist/tui/screen.js +2 -0
  204. package/plugins-dist/tui/transcript.js +16 -1
  205. package/plugins-dist/tui/tui.js +320 -88
  206. package/plugins-dist/tui/vendor.js +1388 -1088
  207. package/plugins-dist/undo/checkpoint.js +1 -1
  208. package/plugins-dist/undo/index.js +91 -24
  209. package/plugins-dist/undo/plugin.json +10 -3
  210. package/plugins-dist/undo/snapshot.js +111 -0
  211. package/plugins-dist/update/index.js +9 -10
  212. package/plugins-dist/update/plugin.json +4 -1
  213. package/plugins-dist/web/index.js +7 -7
  214. package/plugins-dist/web/plugin.json +1 -1
  215. package/sdk/python/__pycache__/jade_plugin.cpython-312.pyc +0 -0
  216. package/sdk/python/jade_plugin.py +8 -0
  217. package/src/api.ts +7 -262
  218. package/src/fetch.ts +18 -16
  219. package/src/host.ts +49 -1
  220. package/src/index.ts +1 -1
  221. package/src/main.ts +23 -5
  222. package/src/remote.ts +2 -0
  223. package/src/session.ts +134 -15
  224. package/src/source.ts +2 -11
  225. package/src/update.ts +16 -10
  226. package/plugins/undo/notes.ts +0 -43
  227. package/plugins-dist/undo/notes.js +0 -36
@@ -2,124 +2,39 @@ import { createRequire } from "node:module";
2
2
  var __create = Object.create;
3
3
  var { getPrototypeOf: __getProtoOf, defineProperty: __defProp, getOwnPropertyNames: __getOwnPropNames } = Object;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- function __accessProp(key) {
6
- return this[key];
7
- }
8
- var __toESMCache_node, __toESMCache_esm, __toESM = (mod, isNodeMode, target) => {
9
- var canCache = mod != null && typeof mod === "object";
10
- if (canCache) {
11
- var cache = isNodeMode ? __toESMCache_node ??= /* @__PURE__ */ new WeakMap : __toESMCache_esm ??= /* @__PURE__ */ new WeakMap, cached = cache.get(mod);
12
- if (cached)
13
- return cached;
14
- }
5
+ var __toESM = (mod, isNodeMode, target) => {
15
6
  target = mod != null ? __create(__getProtoOf(mod)) : {};
16
- let to = isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target;
17
- if (mod && typeof mod === "object" || typeof mod === "function") {
18
- for (let key of __getOwnPropNames(mod))
19
- if (!__hasOwnProp.call(to, key))
20
- __defProp(to, key, {
21
- get: __accessProp.bind(mod, key),
22
- enumerable: !0
23
- });
24
- }
25
- if (canCache)
26
- cache.set(mod, to);
7
+ let to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target;
8
+ for (let key of __getOwnPropNames(mod))
9
+ if (!__hasOwnProp.call(to, key))
10
+ __defProp(to, key, {
11
+ get: () => mod[key],
12
+ enumerable: !0
13
+ });
27
14
  return to;
28
15
  };
29
16
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
30
- var __esm = (fn, res, err) => () => {
31
- if (fn)
32
- try {
33
- res = fn(fn = 0);
34
- } catch (e) {
35
- err = [e];
36
- }
37
- if (err)
38
- throw err[0];
39
- return res;
40
- };
41
- var __exportCjs = (target, getters, setters) => {
42
- for (var name in getters)
17
+ var __export = (target, all) => {
18
+ for (var name in all)
43
19
  __defProp(target, name, {
44
- get: getters[name],
45
- set: setters[name],
20
+ get: all[name],
46
21
  enumerable: !0,
47
- configurable: !0
22
+ configurable: !0,
23
+ set: (newValue) => all[name] = () => newValue
48
24
  });
49
- }, __require = /* @__PURE__ */ createRequire(import.meta.url);
25
+ };
26
+ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
27
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
50
28
 
51
29
  // ../../node_modules/.bun/react@19.3.1/node_modules/react/cjs/react.production.js
52
- function Component(props, context, updater) {
53
- this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue;
54
- }
55
- function ComponentDummy() {}
56
- function PureComponent(props, context, updater) {
57
- this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue;
58
- }
59
- function ReactElement(type, key, props) {
60
- var refProp = props.ref;
61
- return {
62
- $$typeof: REACT_ELEMENT_TYPE,
63
- type,
64
- key,
65
- ref: refProp !== void 0 ? refProp : null,
66
- props
67
- };
68
- }
69
- var REACT_ELEMENT_TYPE, REACT_CONSUMER_TYPE, REACT_CONTEXT_TYPE, REACT_FORWARD_REF_TYPE, ReactNoopUpdateQueue, assign, emptyObject, pureComponentPrototype, ReactSharedInternals, hasOwnProperty, $PureComponent, $__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, $createContext = function(defaultValue) {
70
- return defaultValue = {
71
- $$typeof: REACT_CONTEXT_TYPE,
72
- _currentValue: defaultValue,
73
- _currentValue2: defaultValue,
74
- _threadCount: 0,
75
- Provider: null,
76
- Consumer: null
77
- }, defaultValue.Provider = defaultValue, defaultValue.Consumer = {
78
- $$typeof: REACT_CONSUMER_TYPE,
79
- _context: defaultValue
80
- }, defaultValue;
81
- }, $createElement = function(type, config, children) {
82
- var propName, props = {}, key = null;
83
- if (config != null)
84
- for (propName in config.key !== void 0 && (key = "" + config.key), config)
85
- hasOwnProperty.call(config, propName) && propName !== "key" && propName !== "__self" && propName !== "__source" && (props[propName] = config[propName]);
86
- var childrenLength = arguments.length - 2;
87
- if (childrenLength === 1)
88
- props.children = children;
89
- else if (1 < childrenLength) {
90
- for (var childArray = Array(childrenLength), i = 0;i < childrenLength; i++)
91
- childArray[i] = arguments[i + 2];
92
- props.children = childArray;
93
- }
94
- if (type && type.defaultProps)
95
- for (propName in childrenLength = type.defaultProps, childrenLength)
96
- props[propName] === void 0 && (props[propName] = childrenLength[propName]);
97
- return ReactElement(type, key, props);
98
- }, $forwardRef = function(render) {
99
- return { $$typeof: REACT_FORWARD_REF_TYPE, render };
100
- }, $useCallback = function(callback, deps) {
101
- return ReactSharedInternals.H.useCallback(callback, deps);
102
- }, $useContext = function(Context) {
103
- return ReactSharedInternals.H.useContext(Context);
104
- }, $useEffect = function(create, deps) {
105
- return ReactSharedInternals.H.useEffect(create, deps);
106
- }, $useEffectEvent = function(callback) {
107
- return ReactSharedInternals.H.useEffectEvent(callback);
108
- }, $useInsertionEffect = function(create, deps) {
109
- return ReactSharedInternals.H.useInsertionEffect(create, deps);
110
- }, $useMemo = function(create, deps) {
111
- return ReactSharedInternals.H.useMemo(create, deps);
112
- }, $useReducer = function(reducer, initialArg, init) {
113
- return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
114
- }, $useRef = function(initialValue) {
115
- return ReactSharedInternals.H.useRef(initialValue);
116
- }, $useState = function(initialState) {
117
- return ReactSharedInternals.H.useState(initialState);
118
- }, $useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
119
- return ReactSharedInternals.H.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
120
- }, $version = "19.3.1";
121
- var init_react_production = __esm(() => {
122
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), ReactNoopUpdateQueue = {
30
+ var require_react_production = __commonJS((exports) => {
31
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
32
+ function getIteratorFn(maybeIterable) {
33
+ if (maybeIterable === null || typeof maybeIterable !== "object")
34
+ return null;
35
+ return maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"], typeof maybeIterable === "function" ? maybeIterable : null;
36
+ }
37
+ var ReactNoopUpdateQueue = {
123
38
  isMounted: function() {
124
39
  return !1;
125
40
  },
@@ -127,6 +42,9 @@ var init_react_production = __esm(() => {
127
42
  enqueueReplaceState: function() {},
128
43
  enqueueSetState: function() {}
129
44
  }, assign = Object.assign, emptyObject = {};
45
+ function Component(props, context, updater) {
46
+ this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue;
47
+ }
130
48
  Component.prototype.isReactComponent = {};
131
49
  Component.prototype.setState = function(partialState, callback) {
132
50
  if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null)
@@ -136,17 +54,348 @@ var init_react_production = __esm(() => {
136
54
  Component.prototype.forceUpdate = function(callback) {
137
55
  this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
138
56
  };
57
+ function ComponentDummy() {}
139
58
  ComponentDummy.prototype = Component.prototype;
140
- pureComponentPrototype = PureComponent.prototype = new ComponentDummy;
59
+ function PureComponent(props, context, updater) {
60
+ this.props = props, this.context = context, this.refs = emptyObject, this.updater = updater || ReactNoopUpdateQueue;
61
+ }
62
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy;
141
63
  pureComponentPrototype.constructor = PureComponent;
142
64
  assign(pureComponentPrototype, Component.prototype);
143
65
  pureComponentPrototype.isPureReactComponent = !0;
144
- ReactSharedInternals = { H: null, A: null, T: null, S: null }, hasOwnProperty = Object.prototype.hasOwnProperty;
145
- $PureComponent = PureComponent, $__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
66
+ var isArrayImpl = Array.isArray;
67
+ function noop() {}
68
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null }, hasOwnProperty = Object.prototype.hasOwnProperty;
69
+ function ReactElement(type, key, props) {
70
+ var refProp = props.ref;
71
+ return {
72
+ $$typeof: REACT_ELEMENT_TYPE,
73
+ type,
74
+ key,
75
+ ref: refProp !== void 0 ? refProp : null,
76
+ props
77
+ };
78
+ }
79
+ function cloneAndReplaceKey(oldElement, newKey) {
80
+ return ReactElement(oldElement.type, newKey, oldElement.props);
81
+ }
82
+ function isValidElement(object) {
83
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
84
+ }
85
+ function escape(key) {
86
+ var escaperLookup = { "=": "=0", ":": "=2" };
87
+ return "$" + key.replace(/[=:]/g, function(match) {
88
+ return escaperLookup[match];
89
+ });
90
+ }
91
+ var userProvidedKeyEscapeRegex = /\/+/g;
92
+ function getElementKey(element, index) {
93
+ return typeof element === "object" && element !== null && element.key != null ? escape("" + element.key) : index.toString(36);
94
+ }
95
+ function resolveThenable(thenable) {
96
+ switch (thenable.status) {
97
+ case "fulfilled":
98
+ return thenable.value;
99
+ case "rejected":
100
+ throw thenable.reason;
101
+ default:
102
+ switch (typeof thenable.status === "string" ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
103
+ thenable.status === "pending" && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
104
+ }, function(error) {
105
+ thenable.status === "pending" && (thenable.status = "rejected", thenable.reason = error);
106
+ })), thenable.status) {
107
+ case "fulfilled":
108
+ return thenable.value;
109
+ case "rejected":
110
+ throw thenable.reason;
111
+ }
112
+ }
113
+ throw thenable;
114
+ }
115
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
116
+ var type = typeof children;
117
+ if (type === "undefined" || type === "boolean")
118
+ children = null;
119
+ var invokeCallback = !1;
120
+ if (children === null)
121
+ invokeCallback = !0;
122
+ else
123
+ switch (type) {
124
+ case "bigint":
125
+ case "string":
126
+ case "number":
127
+ invokeCallback = !0;
128
+ break;
129
+ case "object":
130
+ switch (children.$$typeof) {
131
+ case REACT_ELEMENT_TYPE:
132
+ case REACT_PORTAL_TYPE:
133
+ invokeCallback = !0;
134
+ break;
135
+ case REACT_LAZY_TYPE:
136
+ return invokeCallback = children._init, mapIntoArray(invokeCallback(children._payload), array, escapedPrefix, nameSoFar, callback);
137
+ }
138
+ }
139
+ if (invokeCallback)
140
+ return callback = callback(children), invokeCallback = nameSoFar === "" ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", invokeCallback != null && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
141
+ return c;
142
+ })) : callback != null && (isValidElement(callback) && (callback = cloneAndReplaceKey(callback, escapedPrefix + (callback.key == null || children && children.key === callback.key ? "" : ("" + callback.key).replace(userProvidedKeyEscapeRegex, "$&/") + "/") + invokeCallback)), array.push(callback)), 1;
143
+ invokeCallback = 0;
144
+ var nextNamePrefix = nameSoFar === "" ? "." : nameSoFar + ":";
145
+ if (isArrayImpl(children))
146
+ for (var i = 0;i < children.length; i++)
147
+ nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
148
+ else if (i = getIteratorFn(children), typeof i === "function")
149
+ for (children = i.call(children), i = 0;!(nameSoFar = children.next()).done; )
150
+ nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
151
+ else if (type === "object") {
152
+ if (typeof children.then === "function")
153
+ return mapIntoArray(resolveThenable(children), array, escapedPrefix, nameSoFar, callback);
154
+ throw array = String(children), Error("Objects are not valid as a React child (found: " + (array === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead.");
155
+ }
156
+ return invokeCallback;
157
+ }
158
+ function mapChildren(children, func, context) {
159
+ if (children == null)
160
+ return children;
161
+ var result = [], count = 0;
162
+ return mapIntoArray(children, result, "", "", function(child) {
163
+ return func.call(context, child, count++);
164
+ }), result;
165
+ }
166
+ function lazyInitializer(payload) {
167
+ if (payload._status === -1) {
168
+ var ctor = payload._result, thenable = ctor();
169
+ thenable.then(function(moduleObject) {
170
+ if (payload._status === 0 || payload._status === -1)
171
+ payload._status = 1, payload._result = moduleObject, thenable.status === void 0 && (thenable.status = "fulfilled", thenable.value = moduleObject);
172
+ }, function(error) {
173
+ if (payload._status === 0 || payload._status === -1)
174
+ payload._status = 2, payload._result = error, thenable.status === void 0 && (thenable.status = "rejected", thenable.reason = error);
175
+ }), payload._status === -1 && (payload._status = 0, payload._result = thenable);
176
+ }
177
+ if (payload._status === 1)
178
+ return payload._result.default;
179
+ throw payload._result;
180
+ }
181
+ var reportGlobalError = typeof reportError === "function" ? reportError : function(error) {
182
+ if (typeof window === "object" && typeof window.ErrorEvent === "function") {
183
+ var event = new window.ErrorEvent("error", {
184
+ bubbles: !0,
185
+ cancelable: !0,
186
+ message: typeof error === "object" && error !== null && typeof error.message === "string" ? String(error.message) : String(error),
187
+ error
188
+ });
189
+ if (!window.dispatchEvent(event))
190
+ return;
191
+ } else if (typeof process === "object" && typeof process.emit === "function") {
192
+ process.emit("uncaughtException", error);
193
+ return;
194
+ }
195
+ console.error(error);
196
+ };
197
+ function startTransition(scope) {
198
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
199
+ currentTransition.types = prevTransition !== null ? prevTransition.types : null, ReactSharedInternals.T = currentTransition;
200
+ try {
201
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
202
+ onStartTransitionFinish !== null && onStartTransitionFinish(currentTransition, returnValue), typeof returnValue === "object" && returnValue !== null && typeof returnValue.then === "function" && returnValue.then(noop, reportGlobalError);
203
+ } catch (error) {
204
+ reportGlobalError(error);
205
+ } finally {
206
+ prevTransition !== null && currentTransition.types !== null && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
207
+ }
208
+ }
209
+ function addTransitionType(type) {
210
+ var transition = ReactSharedInternals.T;
211
+ if (transition !== null) {
212
+ var transitionTypes = transition.types;
213
+ transitionTypes === null ? transition.types = [type] : transitionTypes.indexOf(type) === -1 && transitionTypes.push(type);
214
+ } else
215
+ startTransition(addTransitionType.bind(null, type));
216
+ }
217
+ var Children = {
218
+ map: mapChildren,
219
+ forEach: function(children, forEachFunc, forEachContext) {
220
+ mapChildren(children, function() {
221
+ forEachFunc.apply(this, arguments);
222
+ }, forEachContext);
223
+ },
224
+ count: function(children) {
225
+ var n = 0;
226
+ return mapChildren(children, function() {
227
+ n++;
228
+ }), n;
229
+ },
230
+ toArray: function(children) {
231
+ return mapChildren(children, function(child) {
232
+ return child;
233
+ }) || [];
234
+ },
235
+ only: function(children) {
236
+ if (!isValidElement(children))
237
+ throw Error("React.Children.only expected to receive a single React element child.");
238
+ return children;
239
+ }
240
+ };
241
+ exports.Activity = REACT_ACTIVITY_TYPE;
242
+ exports.Children = Children;
243
+ exports.Component = Component;
244
+ exports.Fragment = REACT_FRAGMENT_TYPE;
245
+ exports.Profiler = REACT_PROFILER_TYPE;
246
+ exports.PureComponent = PureComponent;
247
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
248
+ exports.Suspense = REACT_SUSPENSE_TYPE;
249
+ exports.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
250
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
251
+ exports.__COMPILER_RUNTIME = {
252
+ __proto__: null,
253
+ c: function(size) {
254
+ return ReactSharedInternals.H.useMemoCache(size);
255
+ }
256
+ };
257
+ exports.addTransitionType = addTransitionType;
258
+ exports.cache = function(fn) {
259
+ return function() {
260
+ return fn.apply(null, arguments);
261
+ };
262
+ };
263
+ exports.cacheSignal = function() {
264
+ return null;
265
+ };
266
+ exports.cloneElement = function(element, config, children) {
267
+ if (element === null || element === void 0)
268
+ throw Error("The argument must be a React element, but you passed " + element + ".");
269
+ var props = assign({}, element.props), key = element.key;
270
+ if (config != null)
271
+ for (propName in config.key !== void 0 && (key = "" + config.key), config)
272
+ !hasOwnProperty.call(config, propName) || propName === "key" || propName === "__self" || propName === "__source" || propName === "ref" && config.ref === void 0 || (props[propName] = config[propName]);
273
+ var propName = arguments.length - 2;
274
+ if (propName === 1)
275
+ props.children = children;
276
+ else if (1 < propName) {
277
+ for (var childArray = Array(propName), i = 0;i < propName; i++)
278
+ childArray[i] = arguments[i + 2];
279
+ props.children = childArray;
280
+ }
281
+ return ReactElement(element.type, key, props);
282
+ };
283
+ exports.createContext = function(defaultValue) {
284
+ return defaultValue = {
285
+ $$typeof: REACT_CONTEXT_TYPE,
286
+ _currentValue: defaultValue,
287
+ _currentValue2: defaultValue,
288
+ _threadCount: 0,
289
+ Provider: null,
290
+ Consumer: null
291
+ }, defaultValue.Provider = defaultValue, defaultValue.Consumer = {
292
+ $$typeof: REACT_CONSUMER_TYPE,
293
+ _context: defaultValue
294
+ }, defaultValue;
295
+ };
296
+ exports.createElement = function(type, config, children) {
297
+ var propName, props = {}, key = null;
298
+ if (config != null)
299
+ for (propName in config.key !== void 0 && (key = "" + config.key), config)
300
+ hasOwnProperty.call(config, propName) && propName !== "key" && propName !== "__self" && propName !== "__source" && (props[propName] = config[propName]);
301
+ var childrenLength = arguments.length - 2;
302
+ if (childrenLength === 1)
303
+ props.children = children;
304
+ else if (1 < childrenLength) {
305
+ for (var childArray = Array(childrenLength), i = 0;i < childrenLength; i++)
306
+ childArray[i] = arguments[i + 2];
307
+ props.children = childArray;
308
+ }
309
+ if (type && type.defaultProps)
310
+ for (propName in childrenLength = type.defaultProps, childrenLength)
311
+ props[propName] === void 0 && (props[propName] = childrenLength[propName]);
312
+ return ReactElement(type, key, props);
313
+ };
314
+ exports.createRef = function() {
315
+ return { current: null };
316
+ };
317
+ exports.forwardRef = function(render) {
318
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render };
319
+ };
320
+ exports.isValidElement = isValidElement;
321
+ exports.lazy = function(ctor) {
322
+ return {
323
+ $$typeof: REACT_LAZY_TYPE,
324
+ _payload: { _status: -1, _result: ctor },
325
+ _init: lazyInitializer
326
+ };
327
+ };
328
+ exports.memo = function(type, compare) {
329
+ return {
330
+ $$typeof: REACT_MEMO_TYPE,
331
+ type,
332
+ compare: compare === void 0 ? null : compare
333
+ };
334
+ };
335
+ exports.startTransition = startTransition;
336
+ exports.unstable_useCacheRefresh = function() {
337
+ return ReactSharedInternals.H.useCacheRefresh();
338
+ };
339
+ exports.use = function(usable) {
340
+ return ReactSharedInternals.H.use(usable);
341
+ };
342
+ exports.useActionState = function(action, initialState, permalink) {
343
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
344
+ };
345
+ exports.useCallback = function(callback, deps) {
346
+ return ReactSharedInternals.H.useCallback(callback, deps);
347
+ };
348
+ exports.useContext = function(Context) {
349
+ return ReactSharedInternals.H.useContext(Context);
350
+ };
351
+ exports.useDebugValue = function() {};
352
+ exports.useDeferredValue = function(value, initialValue) {
353
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
354
+ };
355
+ exports.useEffect = function(create, deps) {
356
+ return ReactSharedInternals.H.useEffect(create, deps);
357
+ };
358
+ exports.useEffectEvent = function(callback) {
359
+ return ReactSharedInternals.H.useEffectEvent(callback);
360
+ };
361
+ exports.useId = function() {
362
+ return ReactSharedInternals.H.useId();
363
+ };
364
+ exports.useImperativeHandle = function(ref, create, deps) {
365
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
366
+ };
367
+ exports.useInsertionEffect = function(create, deps) {
368
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
369
+ };
370
+ exports.useLayoutEffect = function(create, deps) {
371
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
372
+ };
373
+ exports.useMemo = function(create, deps) {
374
+ return ReactSharedInternals.H.useMemo(create, deps);
375
+ };
376
+ exports.useOptimistic = function(passthrough, reducer) {
377
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
378
+ };
379
+ exports.useReducer = function(reducer, initialArg, init) {
380
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
381
+ };
382
+ exports.useRef = function(initialValue) {
383
+ return ReactSharedInternals.H.useRef(initialValue);
384
+ };
385
+ exports.useState = function(initialState) {
386
+ return ReactSharedInternals.H.useState(initialState);
387
+ };
388
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
389
+ return ReactSharedInternals.H.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
390
+ };
391
+ exports.useTransition = function() {
392
+ return ReactSharedInternals.H.useTransition();
393
+ };
394
+ exports.version = "19.3.1";
146
395
  });
147
396
 
148
397
  // ../../node_modules/.bun/signal-exit@3.0.7/node_modules/signal-exit/signals.js
149
- var require_signals = __commonJS(function(exports, module) {
398
+ var require_signals = __commonJS((exports, module) => {
150
399
  module.exports = [
151
400
  "SIGABRT",
152
401
  "SIGALRM",
@@ -161,21 +410,21 @@ var require_signals = __commonJS(function(exports, module) {
161
410
  });
162
411
 
163
412
  // ../../node_modules/.bun/signal-exit@3.0.7/node_modules/signal-exit/index.js
164
- var require_signal_exit = __commonJS(function(exports, module) {
165
- var process2 = global.process, processOk = function(process2) {
166
- return process2 && typeof process2 === "object" && typeof process2.removeListener === "function" && typeof process2.emit === "function" && typeof process2.reallyExit === "function" && typeof process2.listeners === "function" && typeof process2.kill === "function" && typeof process2.pid === "number" && typeof process2.on === "function";
413
+ var require_signal_exit = __commonJS((exports, module) => {
414
+ var process3 = global.process, processOk = function(process4) {
415
+ return process4 && typeof process4 === "object" && typeof process4.removeListener === "function" && typeof process4.emit === "function" && typeof process4.reallyExit === "function" && typeof process4.listeners === "function" && typeof process4.kill === "function" && typeof process4.pid === "number" && typeof process4.on === "function";
167
416
  };
168
- if (!processOk(process2))
417
+ if (!processOk(process3))
169
418
  module.exports = function() {
170
419
  return function() {};
171
420
  };
172
421
  else {
173
- if (assert = __require("assert"), signals = require_signals(), isWin = /^win/i.test(process2.platform), EE = __require("events"), typeof EE !== "function")
422
+ if (assert = __require("assert"), signals = require_signals(), isWin = /^win/i.test(process3.platform), EE = __require("events"), typeof EE !== "function")
174
423
  EE = EE.EventEmitter;
175
- if (process2.__signal_exit_emitter__)
176
- emitter = process2.__signal_exit_emitter__;
424
+ if (process3.__signal_exit_emitter__)
425
+ emitter = process3.__signal_exit_emitter__;
177
426
  else
178
- emitter = process2.__signal_exit_emitter__ = new EE, emitter.count = 0, emitter.emitted = {};
427
+ emitter = process3.__signal_exit_emitter__ = new EE, emitter.count = 0, emitter.emitted = {};
179
428
  if (!emitter.infinite)
180
429
  emitter.setMaxListeners(1 / 0), emitter.infinite = !0;
181
430
  module.exports = function(cb, opts) {
@@ -196,9 +445,9 @@ var require_signal_exit = __commonJS(function(exports, module) {
196
445
  return;
197
446
  loaded = !1, signals.forEach(function(sig) {
198
447
  try {
199
- process2.removeListener(sig, sigListeners[sig]);
448
+ process3.removeListener(sig, sigListeners[sig]);
200
449
  } catch (er) {}
201
- }), process2.emit = originalProcessEmit, process2.reallyExit = originalProcessReallyExit, emitter.count -= 1;
450
+ }), process3.emit = originalProcessEmit, process3.reallyExit = originalProcessReallyExit, emitter.count -= 1;
202
451
  }, module.exports.unload = unload, emit = function(event, code, signal) {
203
452
  if (emitter.emitted[event])
204
453
  return;
@@ -207,11 +456,11 @@ var require_signal_exit = __commonJS(function(exports, module) {
207
456
  sigListeners[sig] = function() {
208
457
  if (!processOk(global.process))
209
458
  return;
210
- var listeners = process2.listeners(sig);
459
+ var listeners = process3.listeners(sig);
211
460
  if (listeners.length === emitter.count) {
212
461
  if (unload(), emit("exit", null, sig), emit("afterexit", null, sig), isWin && sig === "SIGHUP")
213
462
  sig = "SIGINT";
214
- process2.kill(process2.pid, sig);
463
+ process3.kill(process3.pid, sig);
215
464
  }
216
465
  };
217
466
  }), module.exports.signals = function() {
@@ -221,21 +470,21 @@ var require_signal_exit = __commonJS(function(exports, module) {
221
470
  return;
222
471
  loaded = !0, emitter.count += 1, signals = signals.filter(function(sig) {
223
472
  try {
224
- return process2.on(sig, sigListeners[sig]), !0;
473
+ return process3.on(sig, sigListeners[sig]), !0;
225
474
  } catch (er) {
226
475
  return !1;
227
476
  }
228
- }), process2.emit = processEmit, process2.reallyExit = processReallyExit;
229
- }, module.exports.load = load, originalProcessReallyExit = process2.reallyExit, processReallyExit = function(code) {
477
+ }), process3.emit = processEmit, process3.reallyExit = processReallyExit;
478
+ }, module.exports.load = load, originalProcessReallyExit = process3.reallyExit, processReallyExit = function(code) {
230
479
  if (!processOk(global.process))
231
480
  return;
232
- process2.exitCode = code || 0, emit("exit", process2.exitCode, null), emit("afterexit", process2.exitCode, null), originalProcessReallyExit.call(process2, process2.exitCode);
233
- }, originalProcessEmit = process2.emit, processEmit = function(ev, arg) {
481
+ process3.exitCode = code || 0, emit("exit", process3.exitCode, null), emit("afterexit", process3.exitCode, null), originalProcessReallyExit.call(process3, process3.exitCode);
482
+ }, originalProcessEmit = process3.emit, processEmit = function(ev, arg) {
234
483
  if (ev === "exit" && processOk(global.process)) {
235
484
  if (arg !== void 0)
236
- process2.exitCode = arg;
485
+ process3.exitCode = arg;
237
486
  var ret = originalProcessEmit.apply(this, arguments);
238
- return emit("exit", process2.exitCode, null), emit("afterexit", process2.exitCode, null), ret;
487
+ return emit("exit", process3.exitCode, null), emit("afterexit", process3.exitCode, null), ret;
239
488
  } else
240
489
  return originalProcessEmit.apply(this, arguments);
241
490
  };
@@ -244,42 +493,6 @@ var require_signal_exit = __commonJS(function(exports, module) {
244
493
  });
245
494
 
246
495
  // ../../node_modules/.bun/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js
247
- var exports_scheduler_production = {};
248
- __exportCjs(exports_scheduler_production, {
249
- unstable_now: () => $unstable_now,
250
- unstable_IdlePriority: () => $unstable_IdlePriority,
251
- unstable_ImmediatePriority: () => $unstable_ImmediatePriority,
252
- unstable_LowPriority: () => $unstable_LowPriority,
253
- unstable_NormalPriority: () => $unstable_NormalPriority,
254
- unstable_Profiling: () => $unstable_Profiling,
255
- unstable_UserBlockingPriority: () => $unstable_UserBlockingPriority,
256
- unstable_cancelCallback: () => $unstable_cancelCallback,
257
- unstable_forceFrameRate: () => $unstable_forceFrameRate,
258
- unstable_getCurrentPriorityLevel: () => $unstable_getCurrentPriorityLevel,
259
- unstable_next: () => $unstable_next,
260
- unstable_requestPaint: () => $unstable_requestPaint,
261
- unstable_runWithPriority: () => $unstable_runWithPriority,
262
- unstable_scheduleCallback: () => $unstable_scheduleCallback,
263
- unstable_shouldYield: () => $unstable_shouldYield,
264
- unstable_wrapCallback: () => $unstable_wrapCallback
265
- }, {
266
- unstable_now: (value) => $unstable_now = value,
267
- unstable_IdlePriority: (value) => $unstable_IdlePriority = value,
268
- unstable_ImmediatePriority: (value) => $unstable_ImmediatePriority = value,
269
- unstable_LowPriority: (value) => $unstable_LowPriority = value,
270
- unstable_NormalPriority: (value) => $unstable_NormalPriority = value,
271
- unstable_Profiling: (value) => $unstable_Profiling = value,
272
- unstable_UserBlockingPriority: (value) => $unstable_UserBlockingPriority = value,
273
- unstable_cancelCallback: (value) => $unstable_cancelCallback = value,
274
- unstable_forceFrameRate: (value) => $unstable_forceFrameRate = value,
275
- unstable_getCurrentPriorityLevel: (value) => $unstable_getCurrentPriorityLevel = value,
276
- unstable_next: (value) => $unstable_next = value,
277
- unstable_requestPaint: (value) => $unstable_requestPaint = value,
278
- unstable_runWithPriority: (value) => $unstable_runWithPriority = value,
279
- unstable_scheduleCallback: (value) => $unstable_scheduleCallback = value,
280
- unstable_shouldYield: (value) => $unstable_shouldYield = value,
281
- unstable_wrapCallback: (value) => $unstable_wrapCallback = value
282
- });
283
496
  function push(heap, node) {
284
497
  var index = heap.length;
285
498
  heap.push(node);
@@ -339,11 +552,11 @@ function handleTimeout(currentTime) {
339
552
  }
340
553
  }
341
554
  function shouldYieldToHost() {
342
- return needsPaint ? !0 : exports_scheduler_production.unstable_now() - startTime < frameInterval ? !1 : !0;
555
+ return needsPaint ? !0 : $unstable_now() - startTime < frameInterval ? !1 : !0;
343
556
  }
344
557
  function performWorkUntilDeadline() {
345
558
  if (needsPaint = !1, isMessageLoopRunning) {
346
- var currentTime = exports_scheduler_production.unstable_now();
559
+ var currentTime = $unstable_now();
347
560
  startTime = currentTime;
348
561
  var hasMoreWork = !0;
349
562
  try {
@@ -358,7 +571,7 @@ function performWorkUntilDeadline() {
358
571
  if (typeof callback === "function") {
359
572
  currentTask.callback = null, currentPriorityLevel = currentTask.priorityLevel;
360
573
  var continuationCallback = callback(currentTask.expirationTime <= currentTime);
361
- if (currentTime = exports_scheduler_production.unstable_now(), typeof continuationCallback === "function") {
574
+ if (currentTime = $unstable_now(), typeof continuationCallback === "function") {
362
575
  currentTask.callback = continuationCallback, advanceTimers(currentTime), hasMoreWork = !0;
363
576
  break b;
364
577
  }
@@ -387,54 +600,15 @@ function performWorkUntilDeadline() {
387
600
  }
388
601
  function requestHostTimeout(callback, ms) {
389
602
  taskTimeoutID = localSetTimeout(function() {
390
- callback(exports_scheduler_production.unstable_now());
603
+ callback($unstable_now());
391
604
  }, ms);
392
605
  }
393
- var $unstable_now = void 0, localPerformance, localDate, initialTime, taskQueue, timerQueue, taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = !1, isHostCallbackScheduled = !1, isHostTimeoutScheduled = !1, needsPaint = !1, localSetTimeout, localClearTimeout, localSetImmediate, isMessageLoopRunning = !1, taskTimeoutID = -1, frameInterval = 5, startTime = -1, schedulePerformWorkUntilDeadline, channel, port, $unstable_IdlePriority = 5, $unstable_ImmediatePriority = 1, $unstable_LowPriority = 4, $unstable_NormalPriority = 3, $unstable_Profiling = null, $unstable_UserBlockingPriority = 2, $unstable_cancelCallback = function(task) {
606
+ var $unstable_now = void 0, localPerformance, localDate, initialTime, taskQueue, timerQueue, taskIdCounter = 1, currentTask = null, currentPriorityLevel = 3, isPerformingWork = !1, isHostCallbackScheduled = !1, isHostTimeoutScheduled = !1, needsPaint = !1, localSetTimeout, localClearTimeout, localSetImmediate, isMessageLoopRunning = !1, taskTimeoutID = -1, frameInterval = 5, startTime = -1, schedulePerformWorkUntilDeadline, channel, port, $unstable_IdlePriority = 5, $unstable_ImmediatePriority = 1, $unstable_NormalPriority = 3, $unstable_UserBlockingPriority = 2, $unstable_cancelCallback = function(task) {
394
607
  task.callback = null;
395
- }, $unstable_forceFrameRate = function(fps) {
396
- 0 > fps || 125 < fps ? console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported") : frameInterval = 0 < fps ? Math.floor(1000 / fps) : 5;
397
- }, $unstable_getCurrentPriorityLevel = function() {
398
- return currentPriorityLevel;
399
- }, $unstable_next = function(eventHandler) {
400
- switch (currentPriorityLevel) {
401
- case 1:
402
- case 2:
403
- case 3:
404
- var priorityLevel = 3;
405
- break;
406
- default:
407
- priorityLevel = currentPriorityLevel;
408
- }
409
- var previousPriorityLevel = currentPriorityLevel;
410
- currentPriorityLevel = priorityLevel;
411
- try {
412
- return eventHandler();
413
- } finally {
414
- currentPriorityLevel = previousPriorityLevel;
415
- }
416
608
  }, $unstable_requestPaint = function() {
417
609
  needsPaint = !0;
418
- }, $unstable_runWithPriority = function(priorityLevel, eventHandler) {
419
- switch (priorityLevel) {
420
- case 1:
421
- case 2:
422
- case 3:
423
- case 4:
424
- case 5:
425
- break;
426
- default:
427
- priorityLevel = 3;
428
- }
429
- var previousPriorityLevel = currentPriorityLevel;
430
- currentPriorityLevel = priorityLevel;
431
- try {
432
- return eventHandler();
433
- } finally {
434
- currentPriorityLevel = previousPriorityLevel;
435
- }
436
610
  }, $unstable_scheduleCallback = function(priorityLevel, callback, options) {
437
- var currentTime = exports_scheduler_production.unstable_now();
611
+ var currentTime = $unstable_now();
438
612
  switch (typeof options === "object" && options !== null ? (options = options.delay, options = typeof options === "number" && 0 < options ? currentTime + options : currentTime) : options = currentTime, priorityLevel) {
439
613
  case 1:
440
614
  var timeout = -1;
@@ -459,18 +633,7 @@ var $unstable_now = void 0, localPerformance, localDate, initialTime, taskQueue,
459
633
  expirationTime: timeout,
460
634
  sortIndex: -1
461
635
  }, options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), peek(taskQueue) === null && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = !0, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = !0, isMessageLoopRunning || (isMessageLoopRunning = !0, schedulePerformWorkUntilDeadline()))), priorityLevel;
462
- }, $unstable_shouldYield, $unstable_wrapCallback = function(callback) {
463
- var parentPriorityLevel = currentPriorityLevel;
464
- return function() {
465
- var previousPriorityLevel = currentPriorityLevel;
466
- currentPriorityLevel = parentPriorityLevel;
467
- try {
468
- return callback.apply(this, arguments);
469
- } finally {
470
- currentPriorityLevel = previousPriorityLevel;
471
- }
472
- };
473
- };
636
+ }, $unstable_shouldYield;
474
637
  var init_scheduler_production = __esm(() => {
475
638
  if (typeof performance === "object" && typeof performance.now === "function")
476
639
  localPerformance = performance, $unstable_now = function() {
@@ -497,9 +660,9 @@ var init_scheduler_production = __esm(() => {
497
660
  });
498
661
 
499
662
  // ../../node_modules/.bun/react-reconciler@0.33.0+0441d6f8f57aca1e/node_modules/react-reconciler/cjs/react-reconciler.production.js
500
- var require_react_reconciler_production = __commonJS(function(exports, module) {
501
- init_react_production();
663
+ var require_react_reconciler_production = __commonJS((exports, module) => {
502
664
  init_scheduler_production();
665
+ var React = __toESM(require_react_production());
503
666
  module.exports = function($$$config) {
504
667
  function createFiber(tag, pendingProps, key, mode) {
505
668
  return new FiberNode(tag, pendingProps, key, mode);
@@ -669,10 +832,10 @@ var require_react_reconciler_production = __commonJS(function(exports, module) {
669
832
  function createCursor(defaultValue) {
670
833
  return { current: defaultValue };
671
834
  }
672
- function pop(cursor) {
835
+ function pop2(cursor) {
673
836
  0 > index$jscomp$0 || (cursor.current = valueStack[index$jscomp$0], valueStack[index$jscomp$0] = null, index$jscomp$0--);
674
837
  }
675
- function push(cursor, value) {
838
+ function push2(cursor, value) {
676
839
  index$jscomp$0++, valueStack[index$jscomp$0] = cursor.current, cursor.current = value;
677
840
  }
678
841
  function clz32Fallback(x) {
@@ -743,8 +906,8 @@ var require_react_reconciler_production = __commonJS(function(exports, module) {
743
906
  var nonIdlePendingLanes = pendingLanes & 134217727;
744
907
  return nonIdlePendingLanes !== 0 ? (pendingLanes = nonIdlePendingLanes & ~suspendedLanes, pendingLanes !== 0 ? nextLanes = getHighestPriorityLanes(pendingLanes) : (pingedLanes &= nonIdlePendingLanes, pingedLanes !== 0 ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = nonIdlePendingLanes & ~root, rootHasPendingCommit !== 0 && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))))) : (nonIdlePendingLanes = pendingLanes & ~suspendedLanes, nonIdlePendingLanes !== 0 ? nextLanes = getHighestPriorityLanes(nonIdlePendingLanes) : pingedLanes !== 0 ? nextLanes = getHighestPriorityLanes(pingedLanes) : rootHasPendingCommit || (rootHasPendingCommit = pendingLanes & ~root, rootHasPendingCommit !== 0 && (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))), nextLanes === 0 ? 0 : wipLanes !== 0 && wipLanes !== nextLanes && (wipLanes & suspendedLanes) === 0 && (suspendedLanes = nextLanes & -nextLanes, rootHasPendingCommit = wipLanes & -wipLanes, suspendedLanes >= rootHasPendingCommit || suspendedLanes === 32 && (rootHasPendingCommit & 4194048) !== 0) ? wipLanes : nextLanes;
745
908
  }
746
- function checkIfRootIsPrerendering(root, renderLanes) {
747
- return (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & renderLanes) === 0;
909
+ function checkIfRootIsPrerendering(root, renderLanes2) {
910
+ return (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & renderLanes2) === 0;
748
911
  }
749
912
  function computeExpirationTime(lane, currentTime) {
750
913
  switch (lane) {
@@ -828,9 +991,9 @@ var require_react_reconciler_production = __commonJS(function(exports, module) {
828
991
  lane & entangledLanes | root[index$6] & entangledLanes && (root[index$6] |= entangledLanes), rootEntangledLanes &= ~lane;
829
992
  }
830
993
  }
831
- function getBumpedLaneForHydration(root, renderLanes) {
832
- var renderLane = renderLanes & -renderLanes;
833
- return renderLane = (renderLane & 42) !== 0 ? 1 : getBumpedLaneForHydrationByLane(renderLane), (renderLane & (root.suspendedLanes | renderLanes)) !== 0 ? 0 : renderLane;
994
+ function getBumpedLaneForHydration(root, renderLanes2) {
995
+ var renderLane = renderLanes2 & -renderLanes2;
996
+ return renderLane = (renderLane & 42) !== 0 ? 1 : getBumpedLaneForHydrationByLane(renderLane), (renderLane & (root.suspendedLanes | renderLanes2)) !== 0 ? 0 : renderLane;
834
997
  }
835
998
  function getBumpedLaneForHydrationByLane(lane) {
836
999
  switch (lane) {
@@ -1001,12 +1164,12 @@ var require_react_reconciler_production = __commonJS(function(exports, module) {
1001
1164
  return "";
1002
1165
  }
1003
1166
  }
1004
- function getStackByFiberInDevAndProd(workInProgress) {
1167
+ function getStackByFiberInDevAndProd(workInProgress2) {
1005
1168
  try {
1006
1169
  var info = "", previous = null;
1007
1170
  do
1008
- info += describeFiber(workInProgress, previous), previous = workInProgress, workInProgress = workInProgress.return;
1009
- while (workInProgress);
1171
+ info += describeFiber(workInProgress2, previous), previous = workInProgress2, workInProgress2 = workInProgress2.return;
1172
+ while (workInProgress2);
1010
1173
  return info;
1011
1174
  } catch (x) {
1012
1175
  return `
@@ -1031,47 +1194,47 @@ Error generating stack: ` + x.message + `
1031
1194
  stack: getStackByFiberInDevAndProd(source)
1032
1195
  };
1033
1196
  }
1034
- function pushTreeFork(workInProgress, totalChildren) {
1035
- forkStack[forkStackIndex++] = treeForkCount, forkStack[forkStackIndex++] = treeForkProvider, treeForkProvider = workInProgress, treeForkCount = totalChildren;
1197
+ function pushTreeFork(workInProgress2, totalChildren) {
1198
+ forkStack[forkStackIndex++] = treeForkCount, forkStack[forkStackIndex++] = treeForkProvider, treeForkProvider = workInProgress2, treeForkCount = totalChildren;
1036
1199
  }
1037
- function pushTreeId(workInProgress, totalChildren, index) {
1038
- idStack[idStackIndex++] = treeContextId, idStack[idStackIndex++] = treeContextOverflow, idStack[idStackIndex++] = treeContextProvider, treeContextProvider = workInProgress;
1200
+ function pushTreeId(workInProgress2, totalChildren, index) {
1201
+ idStack[idStackIndex++] = treeContextId, idStack[idStackIndex++] = treeContextOverflow, idStack[idStackIndex++] = treeContextProvider, treeContextProvider = workInProgress2;
1039
1202
  var baseIdWithLeadingBit = treeContextId;
1040
- workInProgress = treeContextOverflow;
1203
+ workInProgress2 = treeContextOverflow;
1041
1204
  var baseLength = 32 - clz32(baseIdWithLeadingBit) - 1;
1042
1205
  baseIdWithLeadingBit &= ~(1 << baseLength), index += 1;
1043
1206
  var length = 32 - clz32(totalChildren) + baseLength;
1044
1207
  if (30 < length) {
1045
1208
  var numberOfOverflowBits = baseLength - baseLength % 5;
1046
- length = (baseIdWithLeadingBit & (1 << numberOfOverflowBits) - 1).toString(32), baseIdWithLeadingBit >>= numberOfOverflowBits, baseLength -= numberOfOverflowBits, treeContextId = 1 << 32 - clz32(totalChildren) + baseLength | index << baseLength | baseIdWithLeadingBit, treeContextOverflow = length + workInProgress;
1209
+ length = (baseIdWithLeadingBit & (1 << numberOfOverflowBits) - 1).toString(32), baseIdWithLeadingBit >>= numberOfOverflowBits, baseLength -= numberOfOverflowBits, treeContextId = 1 << 32 - clz32(totalChildren) + baseLength | index << baseLength | baseIdWithLeadingBit, treeContextOverflow = length + workInProgress2;
1047
1210
  } else
1048
- treeContextId = 1 << length | index << baseLength | baseIdWithLeadingBit, treeContextOverflow = workInProgress;
1211
+ treeContextId = 1 << length | index << baseLength | baseIdWithLeadingBit, treeContextOverflow = workInProgress2;
1049
1212
  }
1050
- function pushMaterializedTreeId(workInProgress) {
1051
- workInProgress.return !== null && (pushTreeFork(workInProgress, 1), pushTreeId(workInProgress, 1, 0));
1213
+ function pushMaterializedTreeId(workInProgress2) {
1214
+ workInProgress2.return !== null && (pushTreeFork(workInProgress2, 1), pushTreeId(workInProgress2, 1, 0));
1052
1215
  }
1053
- function popTreeContext(workInProgress) {
1054
- for (;workInProgress === treeForkProvider; )
1216
+ function popTreeContext(workInProgress2) {
1217
+ for (;workInProgress2 === treeForkProvider; )
1055
1218
  treeForkProvider = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null, treeForkCount = forkStack[--forkStackIndex], forkStack[forkStackIndex] = null;
1056
- for (;workInProgress === treeContextProvider; )
1219
+ for (;workInProgress2 === treeContextProvider; )
1057
1220
  treeContextProvider = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextOverflow = idStack[--idStackIndex], idStack[idStackIndex] = null, treeContextId = idStack[--idStackIndex], idStack[idStackIndex] = null;
1058
1221
  }
1059
- function restoreSuspendedTreeContext(workInProgress, suspendedContext) {
1060
- idStack[idStackIndex++] = treeContextId, idStack[idStackIndex++] = treeContextOverflow, idStack[idStackIndex++] = treeContextProvider, treeContextId = suspendedContext.id, treeContextOverflow = suspendedContext.overflow, treeContextProvider = workInProgress;
1222
+ function restoreSuspendedTreeContext(workInProgress2, suspendedContext) {
1223
+ idStack[idStackIndex++] = treeContextId, idStack[idStackIndex++] = treeContextOverflow, idStack[idStackIndex++] = treeContextProvider, treeContextId = suspendedContext.id, treeContextOverflow = suspendedContext.overflow, treeContextProvider = workInProgress2;
1061
1224
  }
1062
1225
  function pushHostContainer(fiber, nextRootInstance) {
1063
- push(rootInstanceStackCursor, nextRootInstance), push(contextFiberStackCursor, fiber), push(contextStackCursor, null), fiber = getRootHostContext(nextRootInstance), pop(contextStackCursor), push(contextStackCursor, fiber);
1226
+ push2(rootInstanceStackCursor, nextRootInstance), push2(contextFiberStackCursor, fiber), push2(contextStackCursor, null), fiber = getRootHostContext(nextRootInstance), pop2(contextStackCursor), push2(contextStackCursor, fiber);
1064
1227
  }
1065
1228
  function popHostContainer() {
1066
- pop(contextStackCursor), pop(contextFiberStackCursor), pop(rootInstanceStackCursor);
1229
+ pop2(contextStackCursor), pop2(contextFiberStackCursor), pop2(rootInstanceStackCursor);
1067
1230
  }
1068
1231
  function pushHostContext(fiber) {
1069
- fiber.memoizedState !== null && push(hostTransitionProviderCursor, fiber);
1232
+ fiber.memoizedState !== null && push2(hostTransitionProviderCursor, fiber);
1070
1233
  var context = contextStackCursor.current, nextContext = getChildHostContext(context, fiber.type);
1071
- context !== nextContext && (push(contextFiberStackCursor, fiber), push(contextStackCursor, nextContext));
1234
+ context !== nextContext && (push2(contextFiberStackCursor, fiber), push2(contextStackCursor, nextContext));
1072
1235
  }
1073
1236
  function popHostContext(fiber) {
1074
- contextFiberStackCursor.current === fiber && (pop(contextStackCursor), pop(contextFiberStackCursor)), hostTransitionProviderCursor.current === fiber && (pop(hostTransitionProviderCursor), isPrimaryRenderer ? HostTransitionContext._currentValue = NotPendingTransition : HostTransitionContext._currentValue2 = NotPendingTransition);
1237
+ contextFiberStackCursor.current === fiber && (pop2(contextStackCursor), pop2(contextFiberStackCursor)), hostTransitionProviderCursor.current === fiber && (pop2(hostTransitionProviderCursor), isPrimaryRenderer ? HostTransitionContext._currentValue = NotPendingTransition : HostTransitionContext._currentValue2 = NotPendingTransition);
1075
1238
  }
1076
1239
  function throwOnHydrationMismatch(fiber) {
1077
1240
  var error = Error(formatProdErrorMessage(418, 1 < arguments.length && arguments[1] !== void 0 && arguments[1] ? "text" : "HTML", ""));
@@ -1129,23 +1292,23 @@ Error generating stack: ` + x.message + `
1129
1292
  hydrationErrors === null ? hydrationErrors = [error] : hydrationErrors.push(error);
1130
1293
  }
1131
1294
  function pushProvider(providerFiber, context, nextValue) {
1132
- isPrimaryRenderer ? (push(valueCursor, context._currentValue), context._currentValue = nextValue) : (push(valueCursor, context._currentValue2), context._currentValue2 = nextValue);
1295
+ isPrimaryRenderer ? (push2(valueCursor, context._currentValue), context._currentValue = nextValue) : (push2(valueCursor, context._currentValue2), context._currentValue2 = nextValue);
1133
1296
  }
1134
1297
  function popProvider(context) {
1135
1298
  var currentValue = valueCursor.current;
1136
- isPrimaryRenderer ? context._currentValue = currentValue : context._currentValue2 = currentValue, pop(valueCursor);
1299
+ isPrimaryRenderer ? context._currentValue = currentValue : context._currentValue2 = currentValue, pop2(valueCursor);
1137
1300
  }
1138
- function scheduleContextWorkOnParentPath(parent, renderLanes, propagationRoot) {
1301
+ function scheduleContextWorkOnParentPath(parent, renderLanes2, propagationRoot) {
1139
1302
  for (;parent !== null; ) {
1140
1303
  var alternate = parent.alternate;
1141
- if ((parent.childLanes & renderLanes) !== renderLanes ? (parent.childLanes |= renderLanes, alternate !== null && (alternate.childLanes |= renderLanes)) : alternate !== null && (alternate.childLanes & renderLanes) !== renderLanes && (alternate.childLanes |= renderLanes), parent === propagationRoot)
1304
+ if ((parent.childLanes & renderLanes2) !== renderLanes2 ? (parent.childLanes |= renderLanes2, alternate !== null && (alternate.childLanes |= renderLanes2)) : alternate !== null && (alternate.childLanes & renderLanes2) !== renderLanes2 && (alternate.childLanes |= renderLanes2), parent === propagationRoot)
1142
1305
  break;
1143
1306
  parent = parent.return;
1144
1307
  }
1145
1308
  }
1146
- function propagateContextChanges(workInProgress, contexts, renderLanes, forcePropagateEntireTree) {
1147
- var fiber = workInProgress.child;
1148
- fiber !== null && (fiber.return = workInProgress);
1309
+ function propagateContextChanges(workInProgress2, contexts, renderLanes2, forcePropagateEntireTree) {
1310
+ var fiber = workInProgress2.child;
1311
+ fiber !== null && (fiber.return = workInProgress2);
1149
1312
  for (;fiber !== null; ) {
1150
1313
  var list = fiber.dependencies;
1151
1314
  if (list !== null) {
@@ -1157,7 +1320,7 @@ Error generating stack: ` + x.message + `
1157
1320
  list = fiber;
1158
1321
  for (var i = 0;i < contexts.length; i++)
1159
1322
  if (dependency.context === contexts[i]) {
1160
- list.lanes |= renderLanes, dependency = list.alternate, dependency !== null && (dependency.lanes |= renderLanes), scheduleContextWorkOnParentPath(list.return, renderLanes, workInProgress), forcePropagateEntireTree || (nextFiber = null);
1323
+ list.lanes |= renderLanes2, dependency = list.alternate, dependency !== null && (dependency.lanes |= renderLanes2), scheduleContextWorkOnParentPath(list.return, renderLanes2, workInProgress2), forcePropagateEntireTree || (nextFiber = null);
1161
1324
  break a;
1162
1325
  }
1163
1326
  list = dependency.next;
@@ -1165,14 +1328,14 @@ Error generating stack: ` + x.message + `
1165
1328
  } else if (fiber.tag === 18) {
1166
1329
  if (nextFiber = fiber.return, nextFiber === null)
1167
1330
  throw Error(formatProdErrorMessage(341));
1168
- nextFiber.lanes |= renderLanes, list = nextFiber.alternate, list !== null && (list.lanes |= renderLanes), scheduleContextWorkOnParentPath(nextFiber, renderLanes, workInProgress), nextFiber = null;
1331
+ nextFiber.lanes |= renderLanes2, list = nextFiber.alternate, list !== null && (list.lanes |= renderLanes2), scheduleContextWorkOnParentPath(nextFiber, renderLanes2, workInProgress2), nextFiber = null;
1169
1332
  } else
1170
1333
  nextFiber = fiber.child;
1171
1334
  if (nextFiber !== null)
1172
1335
  nextFiber.return = fiber;
1173
1336
  else
1174
1337
  for (nextFiber = fiber;nextFiber !== null; ) {
1175
- if (nextFiber === workInProgress) {
1338
+ if (nextFiber === workInProgress2) {
1176
1339
  nextFiber = null;
1177
1340
  break;
1178
1341
  }
@@ -1185,9 +1348,9 @@ Error generating stack: ` + x.message + `
1185
1348
  fiber = nextFiber;
1186
1349
  }
1187
1350
  }
1188
- function propagateParentContextChanges(current, workInProgress, renderLanes, forcePropagateEntireTree) {
1351
+ function propagateParentContextChanges(current, workInProgress2, renderLanes2, forcePropagateEntireTree) {
1189
1352
  current = null;
1190
- for (var parent = workInProgress, isInsidePropagationBailout = !1;parent !== null; ) {
1353
+ for (var parent = workInProgress2, isInsidePropagationBailout = !1;parent !== null; ) {
1191
1354
  if (!isInsidePropagationBailout) {
1192
1355
  if ((parent.flags & 524288) !== 0)
1193
1356
  isInsidePropagationBailout = !0;
@@ -1209,7 +1372,7 @@ Error generating stack: ` + x.message + `
1209
1372
  }
1210
1373
  parent = parent.return;
1211
1374
  }
1212
- current !== null && propagateContextChanges(workInProgress, current, renderLanes, forcePropagateEntireTree), workInProgress.flags |= 262144;
1375
+ current !== null && propagateContextChanges(workInProgress2, current, renderLanes2, forcePropagateEntireTree), workInProgress2.flags |= 262144;
1213
1376
  }
1214
1377
  function checkIfContextChanged(currentDependencies) {
1215
1378
  for (currentDependencies = currentDependencies.firstContext;currentDependencies !== null; ) {
@@ -1220,8 +1383,8 @@ Error generating stack: ` + x.message + `
1220
1383
  }
1221
1384
  return !1;
1222
1385
  }
1223
- function prepareToReadContext(workInProgress) {
1224
- currentlyRenderingFiber$1 = workInProgress, lastContextDependency = null, workInProgress = workInProgress.dependencies, workInProgress !== null && (workInProgress.firstContext = null);
1386
+ function prepareToReadContext(workInProgress2) {
1387
+ currentlyRenderingFiber$1 = workInProgress2, lastContextDependency = null, workInProgress2 = workInProgress2.dependencies, workInProgress2 !== null && (workInProgress2.firstContext = null);
1225
1388
  }
1226
1389
  function readContext(context) {
1227
1390
  return readContextForConsumer(currentlyRenderingFiber$1, context);
@@ -1267,7 +1430,7 @@ Error generating stack: ` + x.message + `
1267
1430
  if (pendingLanes === 0)
1268
1431
  var JSCompiler_inline_result = 0;
1269
1432
  else {
1270
- var suspendedLanes = root.suspendedLanes, pingedLanes = root.pingedLanes;
1433
+ var { suspendedLanes, pingedLanes } = root;
1271
1434
  JSCompiler_inline_result = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1, JSCompiler_inline_result &= pendingLanes & ~(suspendedLanes & ~pingedLanes), JSCompiler_inline_result = JSCompiler_inline_result & 201326741 ? JSCompiler_inline_result & 201326741 | 1 : JSCompiler_inline_result ? JSCompiler_inline_result | 2 : 0;
1272
1435
  }
1273
1436
  JSCompiler_inline_result !== 0 && (didPerformSomeWork = !0, performSyncWorkOnRoot(root, JSCompiler_inline_result));
@@ -1403,7 +1566,7 @@ Error generating stack: ` + x.message + `
1403
1566
  return cacheResumedFromPreviousRender !== null ? cacheResumedFromPreviousRender : workInProgressRoot.pooledCache;
1404
1567
  }
1405
1568
  function pushTransition(offscreenWorkInProgress, prevCachePool) {
1406
- prevCachePool === null ? push(resumedCache, resumedCache.current) : push(resumedCache, prevCachePool.pool);
1569
+ prevCachePool === null ? push2(resumedCache, resumedCache.current) : push2(resumedCache, prevCachePool.pool);
1407
1570
  }
1408
1571
  function getSuspendedCache() {
1409
1572
  var cacheFromPool = peekCacheFromPool();
@@ -1430,19 +1593,19 @@ Error generating stack: ` + x.message + `
1430
1593
  function isThenableResolved(thenable) {
1431
1594
  return thenable = thenable.status, thenable === "fulfilled" || thenable === "rejected";
1432
1595
  }
1433
- function trackUsedThenable(thenableState, thenable, index) {
1434
- switch (index = thenableState[index], index === void 0 ? thenableState.push(thenable) : index !== thenable && (thenable.then(noop$1, noop$1), thenable = index), thenable.status) {
1596
+ function trackUsedThenable(thenableState2, thenable, index) {
1597
+ switch (index = thenableState2[index], index === void 0 ? thenableState2.push(thenable) : index !== thenable && (thenable.then(noop$1, noop$1), thenable = index), thenable.status) {
1435
1598
  case "fulfilled":
1436
1599
  return thenable.value;
1437
1600
  case "rejected":
1438
- throw thenableState = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState), thenableState;
1601
+ throw thenableState2 = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState2), thenableState2;
1439
1602
  default:
1440
1603
  if (typeof thenable.status === "string")
1441
1604
  thenable.then(noop$1, noop$1);
1442
1605
  else {
1443
- if (thenableState = workInProgressRoot, thenableState !== null && 100 < thenableState.shellSuspendCounter)
1606
+ if (thenableState2 = workInProgressRoot, thenableState2 !== null && 100 < thenableState2.shellSuspendCounter)
1444
1607
  throw Error(formatProdErrorMessage(482));
1445
- thenableState = thenable, thenableState.status = "pending", thenableState.then(function(fulfilledValue) {
1608
+ thenableState2 = thenable, thenableState2.status = "pending", thenableState2.then(function(fulfilledValue) {
1446
1609
  if (thenable.status === "pending") {
1447
1610
  var fulfilledThenable = thenable;
1448
1611
  fulfilledThenable.status = "fulfilled", fulfilledThenable.value = fulfilledValue;
@@ -1458,7 +1621,7 @@ Error generating stack: ` + x.message + `
1458
1621
  case "fulfilled":
1459
1622
  return thenable.value;
1460
1623
  case "rejected":
1461
- throw thenableState = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState), thenableState;
1624
+ throw thenableState2 = thenable.reason, checkIfUseWrappedInAsyncCatch(thenableState2), thenableState2;
1462
1625
  }
1463
1626
  throw suspendedThenable = thenable, SuspenseException;
1464
1627
  }
@@ -1487,8 +1650,8 @@ Error generating stack: ` + x.message + `
1487
1650
  var index = thenableIndexCounter$1;
1488
1651
  return thenableIndexCounter$1 += 1, thenableState$1 === null && (thenableState$1 = []), trackUsedThenable(thenableState$1, thenable, index);
1489
1652
  }
1490
- function coerceRef(workInProgress, element) {
1491
- element = element.props.ref, workInProgress.ref = element !== void 0 ? element : null;
1653
+ function coerceRef(workInProgress2, element) {
1654
+ element = element.props.ref, workInProgress2.ref = element !== void 0 ? element : null;
1492
1655
  }
1493
1656
  function throwOnInvalidObjectTypeImpl(returnFiber, newChild) {
1494
1657
  if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE)
@@ -1788,8 +1951,8 @@ Error generating stack: ` + x.message + `
1788
1951
  callbacks: null
1789
1952
  };
1790
1953
  }
1791
- function cloneUpdateQueue(current, workInProgress) {
1792
- current = current.updateQueue, workInProgress.updateQueue === current && (workInProgress.updateQueue = {
1954
+ function cloneUpdateQueue(current, workInProgress2) {
1955
+ current = current.updateQueue, workInProgress2.updateQueue === current && (workInProgress2.updateQueue = {
1793
1956
  baseState: current.baseState,
1794
1957
  firstBaseUpdate: current.firstBaseUpdate,
1795
1958
  lastBaseUpdate: current.lastBaseUpdate,
@@ -1816,8 +1979,8 @@ Error generating stack: ` + x.message + `
1816
1979
  queueLanes &= root.pendingLanes, lane |= queueLanes, fiber.lanes = lane, markRootEntangled(root, lane);
1817
1980
  }
1818
1981
  }
1819
- function enqueueCapturedUpdate(workInProgress, capturedUpdate) {
1820
- var queue = workInProgress.updateQueue, current = workInProgress.alternate;
1982
+ function enqueueCapturedUpdate(workInProgress2, capturedUpdate) {
1983
+ var { updateQueue: queue, alternate: current } = workInProgress2;
1821
1984
  if (current !== null && (current = current.updateQueue, queue === current)) {
1822
1985
  var newFirst = null, newLast = null;
1823
1986
  if (queue = queue.firstBaseUpdate, queue !== null) {
@@ -1840,10 +2003,10 @@ Error generating stack: ` + x.message + `
1840
2003
  lastBaseUpdate: newLast,
1841
2004
  shared: current.shared,
1842
2005
  callbacks: current.callbacks
1843
- }, workInProgress.updateQueue = queue;
2006
+ }, workInProgress2.updateQueue = queue;
1844
2007
  return;
1845
2008
  }
1846
- workInProgress = queue.lastBaseUpdate, workInProgress === null ? queue.firstBaseUpdate = capturedUpdate : workInProgress.next = capturedUpdate, queue.lastBaseUpdate = capturedUpdate;
2009
+ workInProgress2 = queue.lastBaseUpdate, workInProgress2 === null ? queue.firstBaseUpdate = capturedUpdate : workInProgress2.next = capturedUpdate, queue.lastBaseUpdate = capturedUpdate;
1847
2010
  }
1848
2011
  function suspendIfUpdateReadFromEntangledAsyncAction() {
1849
2012
  if (didReadFromEntangledAsyncAction) {
@@ -1852,7 +2015,7 @@ Error generating stack: ` + x.message + `
1852
2015
  throw entangledActionThenable;
1853
2016
  }
1854
2017
  }
1855
- function processUpdateQueue(workInProgress$jscomp$0, props, instance$jscomp$0, renderLanes) {
2018
+ function processUpdateQueue(workInProgress$jscomp$0, props, instance$jscomp$0, renderLanes2) {
1856
2019
  didReadFromEntangledAsyncAction = !1;
1857
2020
  var queue = workInProgress$jscomp$0.updateQueue;
1858
2021
  hasForceUpdate = !1;
@@ -1869,7 +2032,7 @@ Error generating stack: ` + x.message + `
1869
2032
  lastBaseUpdate = 0, current = firstPendingUpdate = lastPendingUpdate = null, pendingQueue = firstBaseUpdate;
1870
2033
  do {
1871
2034
  var updateLane = pendingQueue.lane & -536870913, isHiddenUpdate = updateLane !== pendingQueue.lane;
1872
- if (isHiddenUpdate ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) {
2035
+ if (isHiddenUpdate ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes2 & updateLane) === updateLane) {
1873
2036
  updateLane !== 0 && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0), current !== null && (current = current.next = {
1874
2037
  lane: 0,
1875
2038
  tag: pendingQueue.tag,
@@ -1878,21 +2041,21 @@ Error generating stack: ` + x.message + `
1878
2041
  next: null
1879
2042
  });
1880
2043
  a: {
1881
- var workInProgress = workInProgress$jscomp$0, update = pendingQueue;
2044
+ var workInProgress2 = workInProgress$jscomp$0, update = pendingQueue;
1882
2045
  updateLane = props;
1883
2046
  var instance = instance$jscomp$0;
1884
2047
  switch (update.tag) {
1885
2048
  case 1:
1886
- if (workInProgress = update.payload, typeof workInProgress === "function") {
1887
- newState = workInProgress.call(instance, newState, updateLane);
2049
+ if (workInProgress2 = update.payload, typeof workInProgress2 === "function") {
2050
+ newState = workInProgress2.call(instance, newState, updateLane);
1888
2051
  break a;
1889
2052
  }
1890
- newState = workInProgress;
2053
+ newState = workInProgress2;
1891
2054
  break a;
1892
2055
  case 3:
1893
- workInProgress.flags = workInProgress.flags & -65537 | 128;
2056
+ workInProgress2.flags = workInProgress2.flags & -65537 | 128;
1894
2057
  case 0:
1895
- if (workInProgress = update.payload, updateLane = typeof workInProgress === "function" ? workInProgress.call(instance, newState, updateLane) : workInProgress, updateLane === null || updateLane === void 0)
2058
+ if (workInProgress2 = update.payload, updateLane = typeof workInProgress2 === "function" ? workInProgress2.call(instance, newState, updateLane) : workInProgress2, updateLane === null || updateLane === void 0)
1896
2059
  break a;
1897
2060
  newState = assign({}, newState, updateLane);
1898
2061
  break a;
@@ -1930,29 +2093,29 @@ Error generating stack: ` + x.message + `
1930
2093
  callCallback(callbacks[updateQueue], context);
1931
2094
  }
1932
2095
  function pushHiddenContext(fiber, context) {
1933
- fiber = entangledRenderLanes, push(prevEntangledRenderLanesCursor, fiber), push(currentTreeHiddenStackCursor, context), entangledRenderLanes = fiber | context.baseLanes;
2096
+ fiber = entangledRenderLanes, push2(prevEntangledRenderLanesCursor, fiber), push2(currentTreeHiddenStackCursor, context), entangledRenderLanes = fiber | context.baseLanes;
1934
2097
  }
1935
2098
  function reuseHiddenContextOnStack() {
1936
- push(prevEntangledRenderLanesCursor, entangledRenderLanes), push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current);
2099
+ push2(prevEntangledRenderLanesCursor, entangledRenderLanes), push2(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current);
1937
2100
  }
1938
2101
  function popHiddenContext() {
1939
- entangledRenderLanes = prevEntangledRenderLanesCursor.current, pop(currentTreeHiddenStackCursor), pop(prevEntangledRenderLanesCursor);
2102
+ entangledRenderLanes = prevEntangledRenderLanesCursor.current, pop2(currentTreeHiddenStackCursor), pop2(prevEntangledRenderLanesCursor);
1940
2103
  }
1941
2104
  function pushPrimaryTreeSuspenseHandler(handler) {
1942
2105
  var current = handler.alternate;
1943
- push(suspenseStackCursor, suspenseStackCursor.current & 1), push(suspenseHandlerStackCursor, handler), shellBoundary === null && (current === null || currentTreeHiddenStackCursor.current !== null ? shellBoundary = handler : current.memoizedState !== null && (shellBoundary = handler));
2106
+ push2(suspenseStackCursor, suspenseStackCursor.current & 1), push2(suspenseHandlerStackCursor, handler), shellBoundary === null && (current === null || currentTreeHiddenStackCursor.current !== null ? shellBoundary = handler : current.memoizedState !== null && (shellBoundary = handler));
1944
2107
  }
1945
2108
  function pushDehydratedActivitySuspenseHandler(fiber) {
1946
- push(suspenseStackCursor, suspenseStackCursor.current), push(suspenseHandlerStackCursor, fiber), shellBoundary === null && (shellBoundary = fiber);
2109
+ push2(suspenseStackCursor, suspenseStackCursor.current), push2(suspenseHandlerStackCursor, fiber), shellBoundary === null && (shellBoundary = fiber);
1947
2110
  }
1948
2111
  function pushOffscreenSuspenseHandler(fiber) {
1949
- fiber.tag === 22 ? (push(suspenseStackCursor, suspenseStackCursor.current), push(suspenseHandlerStackCursor, fiber), shellBoundary === null && (shellBoundary = fiber)) : reuseSuspenseHandlerOnStack(fiber);
2112
+ fiber.tag === 22 ? (push2(suspenseStackCursor, suspenseStackCursor.current), push2(suspenseHandlerStackCursor, fiber), shellBoundary === null && (shellBoundary = fiber)) : reuseSuspenseHandlerOnStack(fiber);
1950
2113
  }
1951
2114
  function reuseSuspenseHandlerOnStack() {
1952
- push(suspenseStackCursor, suspenseStackCursor.current), push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current);
2115
+ push2(suspenseStackCursor, suspenseStackCursor.current), push2(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current);
1953
2116
  }
1954
2117
  function popSuspenseHandler(fiber) {
1955
- pop(suspenseHandlerStackCursor), shellBoundary === fiber && (shellBoundary = null), pop(suspenseStackCursor);
2118
+ pop2(suspenseHandlerStackCursor), shellBoundary === fiber && (shellBoundary = null), pop2(suspenseStackCursor);
1956
2119
  }
1957
2120
  function findFirstSuspended(row) {
1958
2121
  for (var node = row;node !== null; ) {
@@ -1989,8 +2152,8 @@ Error generating stack: ` + x.message + `
1989
2152
  return !1;
1990
2153
  return !0;
1991
2154
  }
1992
- function renderWithHooks(current, workInProgress, Component, props, secondArg, nextRenderLanes) {
1993
- return renderLanes = nextRenderLanes, currentlyRenderingFiber = workInProgress, workInProgress.memoizedState = null, workInProgress.updateQueue = null, workInProgress.lanes = 0, ReactSharedInternals.H = current === null || current.memoizedState === null ? HooksDispatcherOnMount : HooksDispatcherOnUpdate, shouldDoubleInvokeUserFnsInHooksDEV = !1, nextRenderLanes = Component(props, secondArg), shouldDoubleInvokeUserFnsInHooksDEV = !1, didScheduleRenderPhaseUpdateDuringThisPass && (nextRenderLanes = renderWithHooksAgain(workInProgress, Component, props, secondArg)), finishRenderingHooks(current), nextRenderLanes;
2155
+ function renderWithHooks(current, workInProgress2, Component, props, secondArg, nextRenderLanes) {
2156
+ return renderLanes = nextRenderLanes, currentlyRenderingFiber = workInProgress2, workInProgress2.memoizedState = null, workInProgress2.updateQueue = null, workInProgress2.lanes = 0, ReactSharedInternals.H = current === null || current.memoizedState === null ? HooksDispatcherOnMount : HooksDispatcherOnUpdate, shouldDoubleInvokeUserFnsInHooksDEV = !1, nextRenderLanes = Component(props, secondArg), shouldDoubleInvokeUserFnsInHooksDEV = !1, didScheduleRenderPhaseUpdateDuringThisPass && (nextRenderLanes = renderWithHooksAgain(workInProgress2, Component, props, secondArg)), finishRenderingHooks(current), nextRenderLanes;
1994
2157
  }
1995
2158
  function finishRenderingHooks(current) {
1996
2159
  ReactSharedInternals.H = ContextOnlyDispatcher;
@@ -1999,14 +2162,14 @@ Error generating stack: ` + x.message + `
1999
2162
  throw Error(formatProdErrorMessage(300));
2000
2163
  current === null || didReceiveUpdate || (current = current.dependencies, current !== null && checkIfContextChanged(current) && (didReceiveUpdate = !0));
2001
2164
  }
2002
- function renderWithHooksAgain(workInProgress, Component, props, secondArg) {
2003
- currentlyRenderingFiber = workInProgress;
2165
+ function renderWithHooksAgain(workInProgress2, Component, props, secondArg) {
2166
+ currentlyRenderingFiber = workInProgress2;
2004
2167
  var numberOfReRenders = 0;
2005
2168
  do {
2006
2169
  if (didScheduleRenderPhaseUpdateDuringThisPass && (thenableState = null), thenableIndexCounter = 0, didScheduleRenderPhaseUpdateDuringThisPass = !1, 25 <= numberOfReRenders)
2007
2170
  throw Error(formatProdErrorMessage(301));
2008
- if (numberOfReRenders += 1, workInProgressHook = currentHook = null, workInProgress.updateQueue != null) {
2009
- var children = workInProgress.updateQueue;
2171
+ if (numberOfReRenders += 1, workInProgressHook = currentHook = null, workInProgress2.updateQueue != null) {
2172
+ var children = workInProgress2.updateQueue;
2010
2173
  children.lastEffect = null, children.events = null, children.stores = null, children.memoCache != null && (children.memoCache.index = 0);
2011
2174
  }
2012
2175
  ReactSharedInternals.H = HooksDispatcherOnRerender, children = Component(props, secondArg);
@@ -2021,14 +2184,14 @@ Error generating stack: ` + x.message + `
2021
2184
  var didRenderIdHook = localIdCounter !== 0;
2022
2185
  return localIdCounter = 0, didRenderIdHook;
2023
2186
  }
2024
- function bailoutHooks(current, workInProgress, lanes) {
2025
- workInProgress.updateQueue = current.updateQueue, workInProgress.flags &= -2053, current.lanes &= ~lanes;
2187
+ function bailoutHooks(current, workInProgress2, lanes) {
2188
+ workInProgress2.updateQueue = current.updateQueue, workInProgress2.flags &= -2053, current.lanes &= ~lanes;
2026
2189
  }
2027
- function resetHooksOnUnwind(workInProgress) {
2190
+ function resetHooksOnUnwind(workInProgress2) {
2028
2191
  if (didScheduleRenderPhaseUpdate) {
2029
- for (workInProgress = workInProgress.memoizedState;workInProgress !== null; ) {
2030
- var queue = workInProgress.queue;
2031
- queue !== null && (queue.pending = null), workInProgress = workInProgress.next;
2192
+ for (workInProgress2 = workInProgress2.memoizedState;workInProgress2 !== null; ) {
2193
+ var queue = workInProgress2.queue;
2194
+ queue !== null && (queue.pending = null), workInProgress2 = workInProgress2.next;
2032
2195
  }
2033
2196
  didScheduleRenderPhaseUpdate = !1;
2034
2197
  }
@@ -2389,27 +2552,27 @@ Error generating stack: ` + x.message + `
2389
2552
  var dispatch = currentStateHook.queue.dispatch;
2390
2553
  return currentStateHook.memoizedState = action, [stateHook, dispatch, !1];
2391
2554
  }
2392
- function pushSimpleEffect(tag, inst, create, deps) {
2393
- return tag = { tag, create, deps, inst, next: null }, inst = currentlyRenderingFiber.updateQueue, inst === null && (inst = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = inst), create = inst.lastEffect, create === null ? inst.lastEffect = tag.next = tag : (deps = create.next, create.next = tag, tag.next = deps, inst.lastEffect = tag), tag;
2555
+ function pushSimpleEffect(tag, inst, create2, deps) {
2556
+ return tag = { tag, create: create2, deps, inst, next: null }, inst = currentlyRenderingFiber.updateQueue, inst === null && (inst = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = inst), create2 = inst.lastEffect, create2 === null ? inst.lastEffect = tag.next = tag : (deps = create2.next, create2.next = tag, tag.next = deps, inst.lastEffect = tag), tag;
2394
2557
  }
2395
2558
  function updateRef() {
2396
2559
  return updateWorkInProgressHook().memoizedState;
2397
2560
  }
2398
- function mountEffectImpl(fiberFlags, hookFlags, create, deps) {
2561
+ function mountEffectImpl(fiberFlags, hookFlags, create2, deps) {
2399
2562
  var hook = mountWorkInProgressHook();
2400
- currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(1 | hookFlags, { destroy: void 0 }, create, deps === void 0 ? null : deps);
2563
+ currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(1 | hookFlags, { destroy: void 0 }, create2, deps === void 0 ? null : deps);
2401
2564
  }
2402
- function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
2565
+ function updateEffectImpl(fiberFlags, hookFlags, create2, deps) {
2403
2566
  var hook = updateWorkInProgressHook();
2404
2567
  deps = deps === void 0 ? null : deps;
2405
2568
  var inst = hook.memoizedState.inst;
2406
- currentHook !== null && deps !== null && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst, create, deps) : (currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(1 | hookFlags, inst, create, deps));
2569
+ currentHook !== null && deps !== null && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst, create2, deps) : (currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(1 | hookFlags, inst, create2, deps));
2407
2570
  }
2408
- function mountEffect(create, deps) {
2409
- mountEffectImpl(8390656, 8, create, deps);
2571
+ function mountEffect(create2, deps) {
2572
+ mountEffectImpl(8390656, 8, create2, deps);
2410
2573
  }
2411
- function updateEffect(create, deps) {
2412
- updateEffectImpl(2048, 8, create, deps);
2574
+ function updateEffect(create2, deps) {
2575
+ updateEffectImpl(2048, 8, create2, deps);
2413
2576
  }
2414
2577
  function useEffectEventImpl(payload) {
2415
2578
  currentlyRenderingFiber.flags |= 4;
@@ -2429,27 +2592,27 @@ Error generating stack: ` + x.message + `
2429
2592
  return ref.impl.apply(void 0, arguments);
2430
2593
  };
2431
2594
  }
2432
- function updateInsertionEffect(create, deps) {
2433
- return updateEffectImpl(4, 2, create, deps);
2595
+ function updateInsertionEffect(create2, deps) {
2596
+ return updateEffectImpl(4, 2, create2, deps);
2434
2597
  }
2435
- function updateLayoutEffect(create, deps) {
2436
- return updateEffectImpl(4, 4, create, deps);
2598
+ function updateLayoutEffect(create2, deps) {
2599
+ return updateEffectImpl(4, 4, create2, deps);
2437
2600
  }
2438
- function imperativeHandleEffect(create, ref) {
2601
+ function imperativeHandleEffect(create2, ref) {
2439
2602
  if (typeof ref === "function") {
2440
- create = create();
2441
- var refCleanup = ref(create);
2603
+ create2 = create2();
2604
+ var refCleanup = ref(create2);
2442
2605
  return function() {
2443
2606
  typeof refCleanup === "function" ? refCleanup() : ref(null);
2444
2607
  };
2445
2608
  }
2446
2609
  if (ref !== null && ref !== void 0)
2447
- return create = create(), ref.current = create, function() {
2610
+ return create2 = create2(), ref.current = create2, function() {
2448
2611
  ref.current = null;
2449
2612
  };
2450
2613
  }
2451
- function updateImperativeHandle(ref, create, deps) {
2452
- deps = deps !== null && deps !== void 0 ? deps.concat([ref]) : null, updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps);
2614
+ function updateImperativeHandle(ref, create2, deps) {
2615
+ deps = deps !== null && deps !== void 0 ? deps.concat([ref]) : null, updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create2, ref), deps);
2453
2616
  }
2454
2617
  function mountDebugValue() {}
2455
2618
  function updateCallback(callback, deps) {
@@ -2634,14 +2797,14 @@ Error generating stack: ` + x.message + `
2634
2797
  queueLanes &= root.pendingLanes, lane |= queueLanes, queue.lanes = lane, markRootEntangled(root, lane);
2635
2798
  }
2636
2799
  }
2637
- function applyDerivedStateFromProps(workInProgress, ctor, getDerivedStateFromProps, nextProps) {
2638
- ctor = workInProgress.memoizedState, getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor), getDerivedStateFromProps = getDerivedStateFromProps === null || getDerivedStateFromProps === void 0 ? ctor : assign({}, ctor, getDerivedStateFromProps), workInProgress.memoizedState = getDerivedStateFromProps, workInProgress.lanes === 0 && (workInProgress.updateQueue.baseState = getDerivedStateFromProps);
2800
+ function applyDerivedStateFromProps(workInProgress2, ctor, getDerivedStateFromProps, nextProps) {
2801
+ ctor = workInProgress2.memoizedState, getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor), getDerivedStateFromProps = getDerivedStateFromProps === null || getDerivedStateFromProps === void 0 ? ctor : assign({}, ctor, getDerivedStateFromProps), workInProgress2.memoizedState = getDerivedStateFromProps, workInProgress2.lanes === 0 && (workInProgress2.updateQueue.baseState = getDerivedStateFromProps);
2639
2802
  }
2640
- function checkShouldComponentUpdate(workInProgress, ctor, oldProps, newProps, oldState, newState, nextContext) {
2641
- return workInProgress = workInProgress.stateNode, typeof workInProgress.shouldComponentUpdate === "function" ? workInProgress.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0;
2803
+ function checkShouldComponentUpdate(workInProgress2, ctor, oldProps, newProps, oldState, newState, nextContext) {
2804
+ return workInProgress2 = workInProgress2.stateNode, typeof workInProgress2.shouldComponentUpdate === "function" ? workInProgress2.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState) : !0;
2642
2805
  }
2643
- function callComponentWillReceiveProps(workInProgress, instance, newProps, nextContext) {
2644
- workInProgress = instance.state, typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps(newProps, nextContext), typeof instance.UNSAFE_componentWillReceiveProps === "function" && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext), instance.state !== workInProgress && classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
2806
+ function callComponentWillReceiveProps(workInProgress2, instance, newProps, nextContext) {
2807
+ workInProgress2 = instance.state, typeof instance.componentWillReceiveProps === "function" && instance.componentWillReceiveProps(newProps, nextContext), typeof instance.UNSAFE_componentWillReceiveProps === "function" && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext), instance.state !== workInProgress2 && classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
2645
2808
  }
2646
2809
  function resolveClassComponentProps(Component, baseProps) {
2647
2810
  var newProps = baseProps;
@@ -2745,278 +2908,278 @@ Error generating stack: ` + x.message + `
2745
2908
  } while (sourceFiber !== null);
2746
2909
  return !1;
2747
2910
  }
2748
- function reconcileChildren(current, workInProgress, nextChildren, renderLanes) {
2749
- workInProgress.child = current === null ? mountChildFibers(workInProgress, null, nextChildren, renderLanes) : reconcileChildFibers(workInProgress, current.child, nextChildren, renderLanes);
2911
+ function reconcileChildren(current, workInProgress2, nextChildren, renderLanes2) {
2912
+ workInProgress2.child = current === null ? mountChildFibers(workInProgress2, null, nextChildren, renderLanes2) : reconcileChildFibers(workInProgress2, current.child, nextChildren, renderLanes2);
2750
2913
  }
2751
- function updateForwardRef(current, workInProgress, Component, nextProps, renderLanes) {
2914
+ function updateForwardRef(current, workInProgress2, Component, nextProps, renderLanes2) {
2752
2915
  Component = Component.render;
2753
- var ref = workInProgress.ref;
2916
+ var ref = workInProgress2.ref;
2754
2917
  if ("ref" in nextProps) {
2755
2918
  var propsWithoutRef = {};
2756
2919
  for (var key in nextProps)
2757
2920
  key !== "ref" && (propsWithoutRef[key] = nextProps[key]);
2758
2921
  } else
2759
2922
  propsWithoutRef = nextProps;
2760
- if (prepareToReadContext(workInProgress), nextProps = renderWithHooks(current, workInProgress, Component, propsWithoutRef, ref, renderLanes), key = checkDidRenderIdHook(), current !== null && !didReceiveUpdate)
2761
- return bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
2762
- return isHydrating && key && pushMaterializedTreeId(workInProgress), workInProgress.flags |= 1, reconcileChildren(current, workInProgress, nextProps, renderLanes), workInProgress.child;
2923
+ if (prepareToReadContext(workInProgress2), nextProps = renderWithHooks(current, workInProgress2, Component, propsWithoutRef, ref, renderLanes2), key = checkDidRenderIdHook(), current !== null && !didReceiveUpdate)
2924
+ return bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
2925
+ return isHydrating && key && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, nextProps, renderLanes2), workInProgress2.child;
2763
2926
  }
2764
- function updateMemoComponent(current, workInProgress, Component, nextProps, renderLanes) {
2927
+ function updateMemoComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
2765
2928
  if (current === null) {
2766
2929
  var type = Component.type;
2767
2930
  if (typeof type === "function" && !shouldConstruct(type) && type.defaultProps === void 0 && Component.compare === null)
2768
- return workInProgress.tag = 15, workInProgress.type = type, updateSimpleMemoComponent(current, workInProgress, type, nextProps, renderLanes);
2769
- return current = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress, workInProgress.mode, renderLanes), current.ref = workInProgress.ref, current.return = workInProgress, workInProgress.child = current;
2931
+ return workInProgress2.tag = 15, workInProgress2.type = type, updateSimpleMemoComponent(current, workInProgress2, type, nextProps, renderLanes2);
2932
+ return current = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress2, workInProgress2.mode, renderLanes2), current.ref = workInProgress2.ref, current.return = workInProgress2, workInProgress2.child = current;
2770
2933
  }
2771
- if (type = current.child, !checkScheduledUpdateOrContext(current, renderLanes)) {
2934
+ if (type = current.child, !checkScheduledUpdateOrContext(current, renderLanes2)) {
2772
2935
  var prevProps = type.memoizedProps;
2773
- if (Component = Component.compare, Component = Component !== null ? Component : shallowEqual, Component(prevProps, nextProps) && current.ref === workInProgress.ref)
2774
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
2936
+ if (Component = Component.compare, Component = Component !== null ? Component : shallowEqual, Component(prevProps, nextProps) && current.ref === workInProgress2.ref)
2937
+ return bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
2775
2938
  }
2776
- return workInProgress.flags |= 1, current = createWorkInProgress(type, nextProps), current.ref = workInProgress.ref, current.return = workInProgress, workInProgress.child = current;
2939
+ return workInProgress2.flags |= 1, current = createWorkInProgress(type, nextProps), current.ref = workInProgress2.ref, current.return = workInProgress2, workInProgress2.child = current;
2777
2940
  }
2778
- function updateSimpleMemoComponent(current, workInProgress, Component, nextProps, renderLanes) {
2941
+ function updateSimpleMemoComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
2779
2942
  if (current !== null) {
2780
2943
  var prevProps = current.memoizedProps;
2781
- if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress.ref)
2782
- if (didReceiveUpdate = !1, workInProgress.pendingProps = nextProps = prevProps, checkScheduledUpdateOrContext(current, renderLanes))
2944
+ if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress2.ref)
2945
+ if (didReceiveUpdate = !1, workInProgress2.pendingProps = nextProps = prevProps, checkScheduledUpdateOrContext(current, renderLanes2))
2783
2946
  (current.flags & 131072) !== 0 && (didReceiveUpdate = !0);
2784
2947
  else
2785
- return workInProgress.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
2948
+ return workInProgress2.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
2786
2949
  }
2787
- return updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes);
2950
+ return updateFunctionComponent(current, workInProgress2, Component, nextProps, renderLanes2);
2788
2951
  }
2789
- function updateOffscreenComponent(current, workInProgress, renderLanes, nextProps) {
2952
+ function updateOffscreenComponent(current, workInProgress2, renderLanes2, nextProps) {
2790
2953
  var nextChildren = nextProps.children, prevState = current !== null ? current.memoizedState : null;
2791
- if (current === null && workInProgress.stateNode === null && (workInProgress.stateNode = {
2954
+ if (current === null && workInProgress2.stateNode === null && (workInProgress2.stateNode = {
2792
2955
  _visibility: 1,
2793
2956
  _pendingMarkers: null,
2794
2957
  _retryCache: null,
2795
2958
  _transitions: null
2796
2959
  }), nextProps.mode === "hidden") {
2797
- if ((workInProgress.flags & 128) !== 0) {
2798
- if (prevState = prevState !== null ? prevState.baseLanes | renderLanes : renderLanes, current !== null) {
2799
- nextProps = workInProgress.child = current.child;
2960
+ if ((workInProgress2.flags & 128) !== 0) {
2961
+ if (prevState = prevState !== null ? prevState.baseLanes | renderLanes2 : renderLanes2, current !== null) {
2962
+ nextProps = workInProgress2.child = current.child;
2800
2963
  for (nextChildren = 0;nextProps !== null; )
2801
2964
  nextChildren = nextChildren | nextProps.lanes | nextProps.childLanes, nextProps = nextProps.sibling;
2802
2965
  nextProps = nextChildren & ~prevState;
2803
2966
  } else
2804
- nextProps = 0, workInProgress.child = null;
2805
- return deferHiddenOffscreenComponent(current, workInProgress, prevState, renderLanes, nextProps);
2967
+ nextProps = 0, workInProgress2.child = null;
2968
+ return deferHiddenOffscreenComponent(current, workInProgress2, prevState, renderLanes2, nextProps);
2806
2969
  }
2807
- if ((renderLanes & 536870912) !== 0)
2808
- workInProgress.memoizedState = { baseLanes: 0, cachePool: null }, current !== null && pushTransition(workInProgress, prevState !== null ? prevState.cachePool : null), prevState !== null ? pushHiddenContext(workInProgress, prevState) : reuseHiddenContextOnStack(), pushOffscreenSuspenseHandler(workInProgress);
2970
+ if ((renderLanes2 & 536870912) !== 0)
2971
+ workInProgress2.memoizedState = { baseLanes: 0, cachePool: null }, current !== null && pushTransition(workInProgress2, prevState !== null ? prevState.cachePool : null), prevState !== null ? pushHiddenContext(workInProgress2, prevState) : reuseHiddenContextOnStack(), pushOffscreenSuspenseHandler(workInProgress2);
2809
2972
  else
2810
- return nextProps = workInProgress.lanes = 536870912, deferHiddenOffscreenComponent(current, workInProgress, prevState !== null ? prevState.baseLanes | renderLanes : renderLanes, renderLanes, nextProps);
2973
+ return nextProps = workInProgress2.lanes = 536870912, deferHiddenOffscreenComponent(current, workInProgress2, prevState !== null ? prevState.baseLanes | renderLanes2 : renderLanes2, renderLanes2, nextProps);
2811
2974
  } else
2812
- prevState !== null ? (pushTransition(workInProgress, prevState.cachePool), pushHiddenContext(workInProgress, prevState), reuseSuspenseHandlerOnStack(workInProgress), workInProgress.memoizedState = null) : (current !== null && pushTransition(workInProgress, null), reuseHiddenContextOnStack(), reuseSuspenseHandlerOnStack(workInProgress));
2813
- return reconcileChildren(current, workInProgress, nextChildren, renderLanes), workInProgress.child;
2975
+ prevState !== null ? (pushTransition(workInProgress2, prevState.cachePool), pushHiddenContext(workInProgress2, prevState), reuseSuspenseHandlerOnStack(workInProgress2), workInProgress2.memoizedState = null) : (current !== null && pushTransition(workInProgress2, null), reuseHiddenContextOnStack(), reuseSuspenseHandlerOnStack(workInProgress2));
2976
+ return reconcileChildren(current, workInProgress2, nextChildren, renderLanes2), workInProgress2.child;
2814
2977
  }
2815
- function bailoutOffscreenComponent(current, workInProgress) {
2816
- return current !== null && current.tag === 22 || workInProgress.stateNode !== null || (workInProgress.stateNode = {
2978
+ function bailoutOffscreenComponent(current, workInProgress2) {
2979
+ return current !== null && current.tag === 22 || workInProgress2.stateNode !== null || (workInProgress2.stateNode = {
2817
2980
  _visibility: 1,
2818
2981
  _pendingMarkers: null,
2819
2982
  _retryCache: null,
2820
2983
  _transitions: null
2821
- }), workInProgress.sibling;
2984
+ }), workInProgress2.sibling;
2822
2985
  }
2823
- function deferHiddenOffscreenComponent(current, workInProgress, nextBaseLanes, renderLanes, remainingChildLanes) {
2986
+ function deferHiddenOffscreenComponent(current, workInProgress2, nextBaseLanes, renderLanes2, remainingChildLanes) {
2824
2987
  var JSCompiler_inline_result = peekCacheFromPool();
2825
2988
  return JSCompiler_inline_result = JSCompiler_inline_result === null ? null : {
2826
2989
  parent: isPrimaryRenderer ? CacheContext._currentValue : CacheContext._currentValue2,
2827
2990
  pool: JSCompiler_inline_result
2828
- }, workInProgress.memoizedState = {
2991
+ }, workInProgress2.memoizedState = {
2829
2992
  baseLanes: nextBaseLanes,
2830
2993
  cachePool: JSCompiler_inline_result
2831
- }, current !== null && pushTransition(workInProgress, null), reuseHiddenContextOnStack(), pushOffscreenSuspenseHandler(workInProgress), current !== null && propagateParentContextChanges(current, workInProgress, renderLanes, !0), workInProgress.childLanes = remainingChildLanes, null;
2994
+ }, current !== null && pushTransition(workInProgress2, null), reuseHiddenContextOnStack(), pushOffscreenSuspenseHandler(workInProgress2), current !== null && propagateParentContextChanges(current, workInProgress2, renderLanes2, !0), workInProgress2.childLanes = remainingChildLanes, null;
2832
2995
  }
2833
- function mountActivityChildren(workInProgress, nextProps) {
2834
- return nextProps = mountWorkInProgressOffscreenFiber({ mode: nextProps.mode, children: nextProps.children }, workInProgress.mode), nextProps.ref = workInProgress.ref, workInProgress.child = nextProps, nextProps.return = workInProgress, nextProps;
2996
+ function mountActivityChildren(workInProgress2, nextProps) {
2997
+ return nextProps = mountWorkInProgressOffscreenFiber({ mode: nextProps.mode, children: nextProps.children }, workInProgress2.mode), nextProps.ref = workInProgress2.ref, workInProgress2.child = nextProps, nextProps.return = workInProgress2, nextProps;
2835
2998
  }
2836
- function retryActivityComponentWithoutHydrating(current, workInProgress, renderLanes) {
2837
- return reconcileChildFibers(workInProgress, current.child, null, renderLanes), current = mountActivityChildren(workInProgress, workInProgress.pendingProps), current.flags |= 2, popSuspenseHandler(workInProgress), workInProgress.memoizedState = null, current;
2999
+ function retryActivityComponentWithoutHydrating(current, workInProgress2, renderLanes2) {
3000
+ return reconcileChildFibers(workInProgress2, current.child, null, renderLanes2), current = mountActivityChildren(workInProgress2, workInProgress2.pendingProps), current.flags |= 2, popSuspenseHandler(workInProgress2), workInProgress2.memoizedState = null, current;
2838
3001
  }
2839
- function updateActivityComponent(current, workInProgress, renderLanes) {
2840
- var nextProps = workInProgress.pendingProps, didSuspend = (workInProgress.flags & 128) !== 0;
2841
- if (workInProgress.flags &= -129, current === null) {
3002
+ function updateActivityComponent(current, workInProgress2, renderLanes2) {
3003
+ var nextProps = workInProgress2.pendingProps, didSuspend = (workInProgress2.flags & 128) !== 0;
3004
+ if (workInProgress2.flags &= -129, current === null) {
2842
3005
  if (isHydrating) {
2843
3006
  if (nextProps.mode === "hidden")
2844
- return current = mountActivityChildren(workInProgress, nextProps), workInProgress.lanes = 536870912, bailoutOffscreenComponent(null, current);
2845
- if (pushDehydratedActivitySuspenseHandler(workInProgress), (current = nextHydratableInstance) ? (current = canHydrateActivityInstance(current, rootOrSingletonContext), current !== null && (workInProgress.memoizedState = {
3007
+ return current = mountActivityChildren(workInProgress2, nextProps), workInProgress2.lanes = 536870912, bailoutOffscreenComponent(null, current);
3008
+ if (pushDehydratedActivitySuspenseHandler(workInProgress2), (current = nextHydratableInstance) ? (current = canHydrateActivityInstance(current, rootOrSingletonContext), current !== null && (workInProgress2.memoizedState = {
2846
3009
  dehydrated: current,
2847
3010
  treeContext: treeContextProvider !== null ? { id: treeContextId, overflow: treeContextOverflow } : null,
2848
3011
  retryLane: 536870912,
2849
3012
  hydrationErrors: null
2850
- }, renderLanes = createFiberFromDehydratedFragment(current), renderLanes.return = workInProgress, workInProgress.child = renderLanes, hydrationParentFiber = workInProgress, nextHydratableInstance = null)) : current = null, current === null)
2851
- throw throwOnHydrationMismatch(workInProgress);
2852
- return workInProgress.lanes = 536870912, null;
3013
+ }, renderLanes2 = createFiberFromDehydratedFragment(current), renderLanes2.return = workInProgress2, workInProgress2.child = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null)) : current = null, current === null)
3014
+ throw throwOnHydrationMismatch(workInProgress2);
3015
+ return workInProgress2.lanes = 536870912, null;
2853
3016
  }
2854
- return mountActivityChildren(workInProgress, nextProps);
3017
+ return mountActivityChildren(workInProgress2, nextProps);
2855
3018
  }
2856
3019
  var prevState = current.memoizedState;
2857
3020
  if (prevState !== null) {
2858
3021
  var dehydrated = prevState.dehydrated;
2859
- if (pushDehydratedActivitySuspenseHandler(workInProgress), didSuspend)
2860
- if (workInProgress.flags & 256)
2861
- workInProgress.flags &= -257, workInProgress = retryActivityComponentWithoutHydrating(current, workInProgress, renderLanes);
2862
- else if (workInProgress.memoizedState !== null)
2863
- workInProgress.child = current.child, workInProgress.flags |= 128, workInProgress = null;
3022
+ if (pushDehydratedActivitySuspenseHandler(workInProgress2), didSuspend)
3023
+ if (workInProgress2.flags & 256)
3024
+ workInProgress2.flags &= -257, workInProgress2 = retryActivityComponentWithoutHydrating(current, workInProgress2, renderLanes2);
3025
+ else if (workInProgress2.memoizedState !== null)
3026
+ workInProgress2.child = current.child, workInProgress2.flags |= 128, workInProgress2 = null;
2864
3027
  else
2865
3028
  throw Error(formatProdErrorMessage(558));
2866
- else if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress, renderLanes, !1), didSuspend = (renderLanes & current.childLanes) !== 0, didReceiveUpdate || didSuspend) {
2867
- if (nextProps = workInProgressRoot, nextProps !== null && (dehydrated = getBumpedLaneForHydration(nextProps, renderLanes), dehydrated !== 0 && dehydrated !== prevState.retryLane))
3029
+ else if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress2, renderLanes2, !1), didSuspend = (renderLanes2 & current.childLanes) !== 0, didReceiveUpdate || didSuspend) {
3030
+ if (nextProps = workInProgressRoot, nextProps !== null && (dehydrated = getBumpedLaneForHydration(nextProps, renderLanes2), dehydrated !== 0 && dehydrated !== prevState.retryLane))
2868
3031
  throw prevState.retryLane = dehydrated, enqueueConcurrentRenderForLane(current, dehydrated), scheduleUpdateOnFiber(nextProps, current, dehydrated), SelectiveHydrationException;
2869
- renderDidSuspendDelayIfPossible(), workInProgress = retryActivityComponentWithoutHydrating(current, workInProgress, renderLanes);
3032
+ renderDidSuspendDelayIfPossible(), workInProgress2 = retryActivityComponentWithoutHydrating(current, workInProgress2, renderLanes2);
2870
3033
  } else
2871
- current = prevState.treeContext, supportsHydration && (nextHydratableInstance = getFirstHydratableChildWithinActivityInstance(dehydrated), hydrationParentFiber = workInProgress, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !1, current !== null && restoreSuspendedTreeContext(workInProgress, current)), workInProgress = mountActivityChildren(workInProgress, nextProps), workInProgress.flags |= 4096;
2872
- return workInProgress;
3034
+ current = prevState.treeContext, supportsHydration && (nextHydratableInstance = getFirstHydratableChildWithinActivityInstance(dehydrated), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !1, current !== null && restoreSuspendedTreeContext(workInProgress2, current)), workInProgress2 = mountActivityChildren(workInProgress2, nextProps), workInProgress2.flags |= 4096;
3035
+ return workInProgress2;
2873
3036
  }
2874
3037
  return current = createWorkInProgress(current.child, {
2875
3038
  mode: nextProps.mode,
2876
3039
  children: nextProps.children
2877
- }), current.ref = workInProgress.ref, workInProgress.child = current, current.return = workInProgress, current;
3040
+ }), current.ref = workInProgress2.ref, workInProgress2.child = current, current.return = workInProgress2, current;
2878
3041
  }
2879
- function markRef(current, workInProgress) {
2880
- var ref = workInProgress.ref;
3042
+ function markRef(current, workInProgress2) {
3043
+ var ref = workInProgress2.ref;
2881
3044
  if (ref === null)
2882
- current !== null && current.ref !== null && (workInProgress.flags |= 4194816);
3045
+ current !== null && current.ref !== null && (workInProgress2.flags |= 4194816);
2883
3046
  else {
2884
3047
  if (typeof ref !== "function" && typeof ref !== "object")
2885
3048
  throw Error(formatProdErrorMessage(284));
2886
3049
  if (current === null || current.ref !== ref)
2887
- workInProgress.flags |= 4194816;
3050
+ workInProgress2.flags |= 4194816;
2888
3051
  }
2889
3052
  }
2890
- function updateFunctionComponent(current, workInProgress, Component, nextProps, renderLanes) {
2891
- if (prepareToReadContext(workInProgress), Component = renderWithHooks(current, workInProgress, Component, nextProps, void 0, renderLanes), nextProps = checkDidRenderIdHook(), current !== null && !didReceiveUpdate)
2892
- return bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
2893
- return isHydrating && nextProps && pushMaterializedTreeId(workInProgress), workInProgress.flags |= 1, reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.child;
3053
+ function updateFunctionComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
3054
+ if (prepareToReadContext(workInProgress2), Component = renderWithHooks(current, workInProgress2, Component, nextProps, void 0, renderLanes2), nextProps = checkDidRenderIdHook(), current !== null && !didReceiveUpdate)
3055
+ return bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
3056
+ return isHydrating && nextProps && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, Component, renderLanes2), workInProgress2.child;
2894
3057
  }
2895
- function replayFunctionComponent(current, workInProgress, nextProps, Component, secondArg, renderLanes) {
2896
- if (prepareToReadContext(workInProgress), workInProgress.updateQueue = null, nextProps = renderWithHooksAgain(workInProgress, Component, nextProps, secondArg), finishRenderingHooks(current), Component = checkDidRenderIdHook(), current !== null && !didReceiveUpdate)
2897
- return bailoutHooks(current, workInProgress, renderLanes), bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
2898
- return isHydrating && Component && pushMaterializedTreeId(workInProgress), workInProgress.flags |= 1, reconcileChildren(current, workInProgress, nextProps, renderLanes), workInProgress.child;
3058
+ function replayFunctionComponent(current, workInProgress2, nextProps, Component, secondArg, renderLanes2) {
3059
+ if (prepareToReadContext(workInProgress2), workInProgress2.updateQueue = null, nextProps = renderWithHooksAgain(workInProgress2, Component, nextProps, secondArg), finishRenderingHooks(current), Component = checkDidRenderIdHook(), current !== null && !didReceiveUpdate)
3060
+ return bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
3061
+ return isHydrating && Component && pushMaterializedTreeId(workInProgress2), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, nextProps, renderLanes2), workInProgress2.child;
2899
3062
  }
2900
- function updateClassComponent(current, workInProgress, Component, nextProps, renderLanes) {
2901
- if (prepareToReadContext(workInProgress), workInProgress.stateNode === null) {
3063
+ function updateClassComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
3064
+ if (prepareToReadContext(workInProgress2), workInProgress2.stateNode === null) {
2902
3065
  var context = emptyContextObject, contextType = Component.contextType;
2903
- typeof contextType === "object" && contextType !== null && (context = readContext(contextType)), context = new Component(nextProps, context), workInProgress.memoizedState = context.state !== null && context.state !== void 0 ? context.state : null, context.updater = classComponentUpdater, workInProgress.stateNode = context, context._reactInternals = workInProgress, context = workInProgress.stateNode, context.props = nextProps, context.state = workInProgress.memoizedState, context.refs = {}, initializeUpdateQueue(workInProgress), contextType = Component.contextType, context.context = typeof contextType === "object" && contextType !== null ? readContext(contextType) : emptyContextObject, context.state = workInProgress.memoizedState, contextType = Component.getDerivedStateFromProps, typeof contextType === "function" && (applyDerivedStateFromProps(workInProgress, Component, contextType, nextProps), context.state = workInProgress.memoizedState), typeof Component.getDerivedStateFromProps === "function" || typeof context.getSnapshotBeforeUpdate === "function" || typeof context.UNSAFE_componentWillMount !== "function" && typeof context.componentWillMount !== "function" || (contextType = context.state, typeof context.componentWillMount === "function" && context.componentWillMount(), typeof context.UNSAFE_componentWillMount === "function" && context.UNSAFE_componentWillMount(), contextType !== context.state && classComponentUpdater.enqueueReplaceState(context, context.state, null), processUpdateQueue(workInProgress, nextProps, context, renderLanes), suspendIfUpdateReadFromEntangledAsyncAction(), context.state = workInProgress.memoizedState), typeof context.componentDidMount === "function" && (workInProgress.flags |= 4194308), nextProps = !0;
3066
+ typeof contextType === "object" && contextType !== null && (context = readContext(contextType)), context = new Component(nextProps, context), workInProgress2.memoizedState = context.state !== null && context.state !== void 0 ? context.state : null, context.updater = classComponentUpdater, workInProgress2.stateNode = context, context._reactInternals = workInProgress2, context = workInProgress2.stateNode, context.props = nextProps, context.state = workInProgress2.memoizedState, context.refs = {}, initializeUpdateQueue(workInProgress2), contextType = Component.contextType, context.context = typeof contextType === "object" && contextType !== null ? readContext(contextType) : emptyContextObject, context.state = workInProgress2.memoizedState, contextType = Component.getDerivedStateFromProps, typeof contextType === "function" && (applyDerivedStateFromProps(workInProgress2, Component, contextType, nextProps), context.state = workInProgress2.memoizedState), typeof Component.getDerivedStateFromProps === "function" || typeof context.getSnapshotBeforeUpdate === "function" || typeof context.UNSAFE_componentWillMount !== "function" && typeof context.componentWillMount !== "function" || (contextType = context.state, typeof context.componentWillMount === "function" && context.componentWillMount(), typeof context.UNSAFE_componentWillMount === "function" && context.UNSAFE_componentWillMount(), contextType !== context.state && classComponentUpdater.enqueueReplaceState(context, context.state, null), processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction(), context.state = workInProgress2.memoizedState), typeof context.componentDidMount === "function" && (workInProgress2.flags |= 4194308), nextProps = !0;
2904
3067
  } else if (current === null) {
2905
- context = workInProgress.stateNode;
2906
- var unresolvedOldProps = workInProgress.memoizedProps, oldProps = resolveClassComponentProps(Component, unresolvedOldProps);
3068
+ context = workInProgress2.stateNode;
3069
+ var unresolvedOldProps = workInProgress2.memoizedProps, oldProps = resolveClassComponentProps(Component, unresolvedOldProps);
2907
3070
  context.props = oldProps;
2908
3071
  var oldContext = context.context, contextType$jscomp$0 = Component.contextType;
2909
3072
  contextType = emptyContextObject, typeof contextType$jscomp$0 === "object" && contextType$jscomp$0 !== null && (contextType = readContext(contextType$jscomp$0));
2910
3073
  var getDerivedStateFromProps = Component.getDerivedStateFromProps;
2911
- contextType$jscomp$0 = typeof getDerivedStateFromProps === "function" || typeof context.getSnapshotBeforeUpdate === "function", unresolvedOldProps = workInProgress.pendingProps !== unresolvedOldProps, contextType$jscomp$0 || typeof context.UNSAFE_componentWillReceiveProps !== "function" && typeof context.componentWillReceiveProps !== "function" || (unresolvedOldProps || oldContext !== contextType) && callComponentWillReceiveProps(workInProgress, context, nextProps, contextType), hasForceUpdate = !1;
2912
- var oldState = workInProgress.memoizedState;
2913
- context.state = oldState, processUpdateQueue(workInProgress, nextProps, context, renderLanes), suspendIfUpdateReadFromEntangledAsyncAction(), oldContext = workInProgress.memoizedState, unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? (typeof getDerivedStateFromProps === "function" && (applyDerivedStateFromProps(workInProgress, Component, getDerivedStateFromProps, nextProps), oldContext = workInProgress.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, oldProps, nextProps, oldState, oldContext, contextType)) ? (contextType$jscomp$0 || typeof context.UNSAFE_componentWillMount !== "function" && typeof context.componentWillMount !== "function" || (typeof context.componentWillMount === "function" && context.componentWillMount(), typeof context.UNSAFE_componentWillMount === "function" && context.UNSAFE_componentWillMount()), typeof context.componentDidMount === "function" && (workInProgress.flags |= 4194308)) : (typeof context.componentDidMount === "function" && (workInProgress.flags |= 4194308), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = oldContext), context.props = nextProps, context.state = oldContext, context.context = contextType, nextProps = oldProps) : (typeof context.componentDidMount === "function" && (workInProgress.flags |= 4194308), nextProps = !1);
3074
+ contextType$jscomp$0 = typeof getDerivedStateFromProps === "function" || typeof context.getSnapshotBeforeUpdate === "function", unresolvedOldProps = workInProgress2.pendingProps !== unresolvedOldProps, contextType$jscomp$0 || typeof context.UNSAFE_componentWillReceiveProps !== "function" && typeof context.componentWillReceiveProps !== "function" || (unresolvedOldProps || oldContext !== contextType) && callComponentWillReceiveProps(workInProgress2, context, nextProps, contextType), hasForceUpdate = !1;
3075
+ var oldState = workInProgress2.memoizedState;
3076
+ context.state = oldState, processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction(), oldContext = workInProgress2.memoizedState, unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? (typeof getDerivedStateFromProps === "function" && (applyDerivedStateFromProps(workInProgress2, Component, getDerivedStateFromProps, nextProps), oldContext = workInProgress2.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress2, Component, oldProps, nextProps, oldState, oldContext, contextType)) ? (contextType$jscomp$0 || typeof context.UNSAFE_componentWillMount !== "function" && typeof context.componentWillMount !== "function" || (typeof context.componentWillMount === "function" && context.componentWillMount(), typeof context.UNSAFE_componentWillMount === "function" && context.UNSAFE_componentWillMount()), typeof context.componentDidMount === "function" && (workInProgress2.flags |= 4194308)) : (typeof context.componentDidMount === "function" && (workInProgress2.flags |= 4194308), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = oldContext), context.props = nextProps, context.state = oldContext, context.context = contextType, nextProps = oldProps) : (typeof context.componentDidMount === "function" && (workInProgress2.flags |= 4194308), nextProps = !1);
2914
3077
  } else {
2915
- context = workInProgress.stateNode, cloneUpdateQueue(current, workInProgress), contextType = workInProgress.memoizedProps, contextType$jscomp$0 = resolveClassComponentProps(Component, contextType), context.props = contextType$jscomp$0, getDerivedStateFromProps = workInProgress.pendingProps, oldState = context.context, oldContext = Component.contextType, oldProps = emptyContextObject, typeof oldContext === "object" && oldContext !== null && (oldProps = readContext(oldContext)), unresolvedOldProps = Component.getDerivedStateFromProps, (oldContext = typeof unresolvedOldProps === "function" || typeof context.getSnapshotBeforeUpdate === "function") || typeof context.UNSAFE_componentWillReceiveProps !== "function" && typeof context.componentWillReceiveProps !== "function" || (contextType !== getDerivedStateFromProps || oldState !== oldProps) && callComponentWillReceiveProps(workInProgress, context, nextProps, oldProps), hasForceUpdate = !1, oldState = workInProgress.memoizedState, context.state = oldState, processUpdateQueue(workInProgress, nextProps, context, renderLanes), suspendIfUpdateReadFromEntangledAsyncAction();
2916
- var newState = workInProgress.memoizedState;
2917
- contextType !== getDerivedStateFromProps || oldState !== newState || hasForceUpdate || current !== null && current.dependencies !== null && checkIfContextChanged(current.dependencies) ? (typeof unresolvedOldProps === "function" && (applyDerivedStateFromProps(workInProgress, Component, unresolvedOldProps, nextProps), newState = workInProgress.memoizedState), (contextType$jscomp$0 = hasForceUpdate || checkShouldComponentUpdate(workInProgress, Component, contextType$jscomp$0, nextProps, oldState, newState, oldProps) || current !== null && current.dependencies !== null && checkIfContextChanged(current.dependencies)) ? (oldContext || typeof context.UNSAFE_componentWillUpdate !== "function" && typeof context.componentWillUpdate !== "function" || (typeof context.componentWillUpdate === "function" && context.componentWillUpdate(nextProps, newState, oldProps), typeof context.UNSAFE_componentWillUpdate === "function" && context.UNSAFE_componentWillUpdate(nextProps, newState, oldProps)), typeof context.componentDidUpdate === "function" && (workInProgress.flags |= 4), typeof context.getSnapshotBeforeUpdate === "function" && (workInProgress.flags |= 1024)) : (typeof context.componentDidUpdate !== "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), typeof context.getSnapshotBeforeUpdate !== "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), workInProgress.memoizedProps = nextProps, workInProgress.memoizedState = newState), context.props = nextProps, context.state = newState, context.context = oldProps, nextProps = contextType$jscomp$0) : (typeof context.componentDidUpdate !== "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 4), typeof context.getSnapshotBeforeUpdate !== "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress.flags |= 1024), nextProps = !1);
3078
+ context = workInProgress2.stateNode, cloneUpdateQueue(current, workInProgress2), contextType = workInProgress2.memoizedProps, contextType$jscomp$0 = resolveClassComponentProps(Component, contextType), context.props = contextType$jscomp$0, getDerivedStateFromProps = workInProgress2.pendingProps, oldState = context.context, oldContext = Component.contextType, oldProps = emptyContextObject, typeof oldContext === "object" && oldContext !== null && (oldProps = readContext(oldContext)), unresolvedOldProps = Component.getDerivedStateFromProps, (oldContext = typeof unresolvedOldProps === "function" || typeof context.getSnapshotBeforeUpdate === "function") || typeof context.UNSAFE_componentWillReceiveProps !== "function" && typeof context.componentWillReceiveProps !== "function" || (contextType !== getDerivedStateFromProps || oldState !== oldProps) && callComponentWillReceiveProps(workInProgress2, context, nextProps, oldProps), hasForceUpdate = !1, oldState = workInProgress2.memoizedState, context.state = oldState, processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction();
3079
+ var newState = workInProgress2.memoizedState;
3080
+ contextType !== getDerivedStateFromProps || oldState !== newState || hasForceUpdate || current !== null && current.dependencies !== null && checkIfContextChanged(current.dependencies) ? (typeof unresolvedOldProps === "function" && (applyDerivedStateFromProps(workInProgress2, Component, unresolvedOldProps, nextProps), newState = workInProgress2.memoizedState), (contextType$jscomp$0 = hasForceUpdate || checkShouldComponentUpdate(workInProgress2, Component, contextType$jscomp$0, nextProps, oldState, newState, oldProps) || current !== null && current.dependencies !== null && checkIfContextChanged(current.dependencies)) ? (oldContext || typeof context.UNSAFE_componentWillUpdate !== "function" && typeof context.componentWillUpdate !== "function" || (typeof context.componentWillUpdate === "function" && context.componentWillUpdate(nextProps, newState, oldProps), typeof context.UNSAFE_componentWillUpdate === "function" && context.UNSAFE_componentWillUpdate(nextProps, newState, oldProps)), typeof context.componentDidUpdate === "function" && (workInProgress2.flags |= 4), typeof context.getSnapshotBeforeUpdate === "function" && (workInProgress2.flags |= 1024)) : (typeof context.componentDidUpdate !== "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 4), typeof context.getSnapshotBeforeUpdate !== "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 1024), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = newState), context.props = nextProps, context.state = newState, context.context = oldProps, nextProps = contextType$jscomp$0) : (typeof context.componentDidUpdate !== "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 4), typeof context.getSnapshotBeforeUpdate !== "function" || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 1024), nextProps = !1);
2918
3081
  }
2919
- return context = nextProps, markRef(current, workInProgress), nextProps = (workInProgress.flags & 128) !== 0, context || nextProps ? (context = workInProgress.stateNode, Component = nextProps && typeof Component.getDerivedStateFromError !== "function" ? null : context.render(), workInProgress.flags |= 1, current !== null && nextProps ? (workInProgress.child = reconcileChildFibers(workInProgress, current.child, null, renderLanes), workInProgress.child = reconcileChildFibers(workInProgress, null, Component, renderLanes)) : reconcileChildren(current, workInProgress, Component, renderLanes), workInProgress.memoizedState = context.state, current = workInProgress.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes), current;
3082
+ return context = nextProps, markRef(current, workInProgress2), nextProps = (workInProgress2.flags & 128) !== 0, context || nextProps ? (context = workInProgress2.stateNode, Component = nextProps && typeof Component.getDerivedStateFromError !== "function" ? null : context.render(), workInProgress2.flags |= 1, current !== null && nextProps ? (workInProgress2.child = reconcileChildFibers(workInProgress2, current.child, null, renderLanes2), workInProgress2.child = reconcileChildFibers(workInProgress2, null, Component, renderLanes2)) : reconcileChildren(current, workInProgress2, Component, renderLanes2), workInProgress2.memoizedState = context.state, current = workInProgress2.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2), current;
2920
3083
  }
2921
- function mountHostRootWithoutHydrating(current, workInProgress, nextChildren, renderLanes) {
2922
- return resetHydrationState(), workInProgress.flags |= 256, reconcileChildren(current, workInProgress, nextChildren, renderLanes), workInProgress.child;
3084
+ function mountHostRootWithoutHydrating(current, workInProgress2, nextChildren, renderLanes2) {
3085
+ return resetHydrationState(), workInProgress2.flags |= 256, reconcileChildren(current, workInProgress2, nextChildren, renderLanes2), workInProgress2.child;
2923
3086
  }
2924
- function mountSuspenseOffscreenState(renderLanes) {
2925
- return { baseLanes: renderLanes, cachePool: getSuspendedCache() };
3087
+ function mountSuspenseOffscreenState(renderLanes2) {
3088
+ return { baseLanes: renderLanes2, cachePool: getSuspendedCache() };
2926
3089
  }
2927
- function getRemainingWorkInPrimaryTree(current, primaryTreeDidDefer, renderLanes) {
2928
- return current = current !== null ? current.childLanes & ~renderLanes : 0, primaryTreeDidDefer && (current |= workInProgressDeferredLane), current;
3090
+ function getRemainingWorkInPrimaryTree(current, primaryTreeDidDefer, renderLanes2) {
3091
+ return current = current !== null ? current.childLanes & ~renderLanes2 : 0, primaryTreeDidDefer && (current |= workInProgressDeferredLane), current;
2929
3092
  }
2930
- function updateSuspenseComponent(current, workInProgress, renderLanes) {
2931
- var nextProps = workInProgress.pendingProps, showFallback = !1, didSuspend = (workInProgress.flags & 128) !== 0, JSCompiler_temp;
2932
- if ((JSCompiler_temp = didSuspend) || (JSCompiler_temp = current !== null && current.memoizedState === null ? !1 : (suspenseStackCursor.current & 2) !== 0), JSCompiler_temp && (showFallback = !0, workInProgress.flags &= -129), JSCompiler_temp = (workInProgress.flags & 32) !== 0, workInProgress.flags &= -33, current === null) {
3093
+ function updateSuspenseComponent(current, workInProgress2, renderLanes2) {
3094
+ var nextProps = workInProgress2.pendingProps, showFallback = !1, didSuspend = (workInProgress2.flags & 128) !== 0, JSCompiler_temp;
3095
+ if ((JSCompiler_temp = didSuspend) || (JSCompiler_temp = current !== null && current.memoizedState === null ? !1 : (suspenseStackCursor.current & 2) !== 0), JSCompiler_temp && (showFallback = !0, workInProgress2.flags &= -129), JSCompiler_temp = (workInProgress2.flags & 32) !== 0, workInProgress2.flags &= -33, current === null) {
2933
3096
  if (isHydrating) {
2934
- if (showFallback ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress), (current = nextHydratableInstance) ? (current = canHydrateSuspenseInstance(current, rootOrSingletonContext), current !== null && (workInProgress.memoizedState = {
3097
+ if (showFallback ? pushPrimaryTreeSuspenseHandler(workInProgress2) : reuseSuspenseHandlerOnStack(workInProgress2), (current = nextHydratableInstance) ? (current = canHydrateSuspenseInstance(current, rootOrSingletonContext), current !== null && (workInProgress2.memoizedState = {
2935
3098
  dehydrated: current,
2936
3099
  treeContext: treeContextProvider !== null ? { id: treeContextId, overflow: treeContextOverflow } : null,
2937
3100
  retryLane: 536870912,
2938
3101
  hydrationErrors: null
2939
- }, renderLanes = createFiberFromDehydratedFragment(current), renderLanes.return = workInProgress, workInProgress.child = renderLanes, hydrationParentFiber = workInProgress, nextHydratableInstance = null)) : current = null, current === null)
2940
- throw throwOnHydrationMismatch(workInProgress);
2941
- return isSuspenseInstanceFallback(current) ? workInProgress.lanes = 32 : workInProgress.lanes = 536870912, null;
3102
+ }, renderLanes2 = createFiberFromDehydratedFragment(current), renderLanes2.return = workInProgress2, workInProgress2.child = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null)) : current = null, current === null)
3103
+ throw throwOnHydrationMismatch(workInProgress2);
3104
+ return isSuspenseInstanceFallback(current) ? workInProgress2.lanes = 32 : workInProgress2.lanes = 536870912, null;
2942
3105
  }
2943
3106
  var nextPrimaryChildren = nextProps.children;
2944
3107
  if (nextProps = nextProps.fallback, showFallback)
2945
- return reuseSuspenseHandlerOnStack(workInProgress), showFallback = workInProgress.mode, nextPrimaryChildren = mountWorkInProgressOffscreenFiber({ mode: "hidden", children: nextPrimaryChildren }, showFallback), nextProps = createFiberFromFragment(nextProps, showFallback, renderLanes, null), nextPrimaryChildren.return = workInProgress, nextProps.return = workInProgress, nextPrimaryChildren.sibling = nextProps, workInProgress.child = nextPrimaryChildren, nextProps = workInProgress.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes), nextProps.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_temp, renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(null, nextProps);
2946
- return pushPrimaryTreeSuspenseHandler(workInProgress), mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren);
3108
+ return reuseSuspenseHandlerOnStack(workInProgress2), showFallback = workInProgress2.mode, nextPrimaryChildren = mountWorkInProgressOffscreenFiber({ mode: "hidden", children: nextPrimaryChildren }, showFallback), nextProps = createFiberFromFragment(nextProps, showFallback, renderLanes2, null), nextPrimaryChildren.return = workInProgress2, nextProps.return = workInProgress2, nextPrimaryChildren.sibling = nextProps, workInProgress2.child = nextPrimaryChildren, nextProps = workInProgress2.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes2), nextProps.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_temp, renderLanes2), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(null, nextProps);
3109
+ return pushPrimaryTreeSuspenseHandler(workInProgress2), mountSuspensePrimaryChildren(workInProgress2, nextPrimaryChildren);
2947
3110
  }
2948
3111
  var prevState = current.memoizedState;
2949
3112
  if (prevState !== null && (nextPrimaryChildren = prevState.dehydrated, nextPrimaryChildren !== null)) {
2950
3113
  if (didSuspend)
2951
- workInProgress.flags & 256 ? (pushPrimaryTreeSuspenseHandler(workInProgress), workInProgress.flags &= -257, workInProgress = retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes)) : workInProgress.memoizedState !== null ? (reuseSuspenseHandlerOnStack(workInProgress), workInProgress.child = current.child, workInProgress.flags |= 128, workInProgress = null) : (reuseSuspenseHandlerOnStack(workInProgress), nextPrimaryChildren = nextProps.fallback, showFallback = workInProgress.mode, nextProps = mountWorkInProgressOffscreenFiber({ mode: "visible", children: nextProps.children }, showFallback), nextPrimaryChildren = createFiberFromFragment(nextPrimaryChildren, showFallback, renderLanes, null), nextPrimaryChildren.flags |= 2, nextProps.return = workInProgress, nextPrimaryChildren.return = workInProgress, nextProps.sibling = nextPrimaryChildren, workInProgress.child = nextProps, reconcileChildFibers(workInProgress, current.child, null, renderLanes), nextProps = workInProgress.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes), nextProps.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_temp, renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, workInProgress = bailoutOffscreenComponent(null, nextProps));
2952
- else if (pushPrimaryTreeSuspenseHandler(workInProgress), isSuspenseInstanceFallback(nextPrimaryChildren))
2953
- JSCompiler_temp = getSuspenseInstanceFallbackErrorDetails(nextPrimaryChildren).digest, nextProps = Error(formatProdErrorMessage(419)), nextProps.stack = "", nextProps.digest = JSCompiler_temp, queueHydrationError({ value: nextProps, source: null, stack: null }), workInProgress = retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes);
2954
- else if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress, renderLanes, !1), JSCompiler_temp = (renderLanes & current.childLanes) !== 0, didReceiveUpdate || JSCompiler_temp) {
2955
- if (JSCompiler_temp = workInProgressRoot, JSCompiler_temp !== null && (nextProps = getBumpedLaneForHydration(JSCompiler_temp, renderLanes), nextProps !== 0 && nextProps !== prevState.retryLane))
3114
+ workInProgress2.flags & 256 ? (pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags &= -257, workInProgress2 = retrySuspenseComponentWithoutHydrating(current, workInProgress2, renderLanes2)) : workInProgress2.memoizedState !== null ? (reuseSuspenseHandlerOnStack(workInProgress2), workInProgress2.child = current.child, workInProgress2.flags |= 128, workInProgress2 = null) : (reuseSuspenseHandlerOnStack(workInProgress2), nextPrimaryChildren = nextProps.fallback, showFallback = workInProgress2.mode, nextProps = mountWorkInProgressOffscreenFiber({ mode: "visible", children: nextProps.children }, showFallback), nextPrimaryChildren = createFiberFromFragment(nextPrimaryChildren, showFallback, renderLanes2, null), nextPrimaryChildren.flags |= 2, nextProps.return = workInProgress2, nextPrimaryChildren.return = workInProgress2, nextProps.sibling = nextPrimaryChildren, workInProgress2.child = nextProps, reconcileChildFibers(workInProgress2, current.child, null, renderLanes2), nextProps = workInProgress2.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes2), nextProps.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_temp, renderLanes2), workInProgress2.memoizedState = SUSPENDED_MARKER, workInProgress2 = bailoutOffscreenComponent(null, nextProps));
3115
+ else if (pushPrimaryTreeSuspenseHandler(workInProgress2), isSuspenseInstanceFallback(nextPrimaryChildren))
3116
+ JSCompiler_temp = getSuspenseInstanceFallbackErrorDetails(nextPrimaryChildren).digest, nextProps = Error(formatProdErrorMessage(419)), nextProps.stack = "", nextProps.digest = JSCompiler_temp, queueHydrationError({ value: nextProps, source: null, stack: null }), workInProgress2 = retrySuspenseComponentWithoutHydrating(current, workInProgress2, renderLanes2);
3117
+ else if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress2, renderLanes2, !1), JSCompiler_temp = (renderLanes2 & current.childLanes) !== 0, didReceiveUpdate || JSCompiler_temp) {
3118
+ if (JSCompiler_temp = workInProgressRoot, JSCompiler_temp !== null && (nextProps = getBumpedLaneForHydration(JSCompiler_temp, renderLanes2), nextProps !== 0 && nextProps !== prevState.retryLane))
2956
3119
  throw prevState.retryLane = nextProps, enqueueConcurrentRenderForLane(current, nextProps), scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), SelectiveHydrationException;
2957
- isSuspenseInstancePending(nextPrimaryChildren) || renderDidSuspendDelayIfPossible(), workInProgress = retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes);
3120
+ isSuspenseInstancePending(nextPrimaryChildren) || renderDidSuspendDelayIfPossible(), workInProgress2 = retrySuspenseComponentWithoutHydrating(current, workInProgress2, renderLanes2);
2958
3121
  } else
2959
- isSuspenseInstancePending(nextPrimaryChildren) ? (workInProgress.flags |= 192, workInProgress.child = current.child, workInProgress = null) : (current = prevState.treeContext, supportsHydration && (nextHydratableInstance = getFirstHydratableChildWithinSuspenseInstance(nextPrimaryChildren), hydrationParentFiber = workInProgress, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !1, current !== null && restoreSuspendedTreeContext(workInProgress, current)), workInProgress = mountSuspensePrimaryChildren(workInProgress, nextProps.children), workInProgress.flags |= 4096);
2960
- return workInProgress;
3122
+ isSuspenseInstancePending(nextPrimaryChildren) ? (workInProgress2.flags |= 192, workInProgress2.child = current.child, workInProgress2 = null) : (current = prevState.treeContext, supportsHydration && (nextHydratableInstance = getFirstHydratableChildWithinSuspenseInstance(nextPrimaryChildren), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !1, current !== null && restoreSuspendedTreeContext(workInProgress2, current)), workInProgress2 = mountSuspensePrimaryChildren(workInProgress2, nextProps.children), workInProgress2.flags |= 4096);
3123
+ return workInProgress2;
2961
3124
  }
2962
3125
  if (showFallback)
2963
- return reuseSuspenseHandlerOnStack(workInProgress), nextPrimaryChildren = nextProps.fallback, showFallback = workInProgress.mode, prevState = current.child, didSuspend = prevState.sibling, nextProps = createWorkInProgress(prevState, {
3126
+ return reuseSuspenseHandlerOnStack(workInProgress2), nextPrimaryChildren = nextProps.fallback, showFallback = workInProgress2.mode, prevState = current.child, didSuspend = prevState.sibling, nextProps = createWorkInProgress(prevState, {
2964
3127
  mode: "hidden",
2965
3128
  children: nextProps.children
2966
- }), nextProps.subtreeFlags = prevState.subtreeFlags & 65011712, didSuspend !== null ? nextPrimaryChildren = createWorkInProgress(didSuspend, nextPrimaryChildren) : (nextPrimaryChildren = createFiberFromFragment(nextPrimaryChildren, showFallback, renderLanes, null), nextPrimaryChildren.flags |= 2), nextPrimaryChildren.return = workInProgress, nextProps.return = workInProgress, nextProps.sibling = nextPrimaryChildren, workInProgress.child = nextProps, bailoutOffscreenComponent(null, nextProps), nextProps = workInProgress.child, nextPrimaryChildren = current.child.memoizedState, nextPrimaryChildren === null ? nextPrimaryChildren = mountSuspenseOffscreenState(renderLanes) : (showFallback = nextPrimaryChildren.cachePool, showFallback !== null ? (prevState = isPrimaryRenderer ? CacheContext._currentValue : CacheContext._currentValue2, showFallback = showFallback.parent !== prevState ? { parent: prevState, pool: prevState } : showFallback) : showFallback = getSuspendedCache(), nextPrimaryChildren = {
2967
- baseLanes: nextPrimaryChildren.baseLanes | renderLanes,
3129
+ }), nextProps.subtreeFlags = prevState.subtreeFlags & 65011712, didSuspend !== null ? nextPrimaryChildren = createWorkInProgress(didSuspend, nextPrimaryChildren) : (nextPrimaryChildren = createFiberFromFragment(nextPrimaryChildren, showFallback, renderLanes2, null), nextPrimaryChildren.flags |= 2), nextPrimaryChildren.return = workInProgress2, nextProps.return = workInProgress2, nextProps.sibling = nextPrimaryChildren, workInProgress2.child = nextProps, bailoutOffscreenComponent(null, nextProps), nextProps = workInProgress2.child, nextPrimaryChildren = current.child.memoizedState, nextPrimaryChildren === null ? nextPrimaryChildren = mountSuspenseOffscreenState(renderLanes2) : (showFallback = nextPrimaryChildren.cachePool, showFallback !== null ? (prevState = isPrimaryRenderer ? CacheContext._currentValue : CacheContext._currentValue2, showFallback = showFallback.parent !== prevState ? { parent: prevState, pool: prevState } : showFallback) : showFallback = getSuspendedCache(), nextPrimaryChildren = {
3130
+ baseLanes: nextPrimaryChildren.baseLanes | renderLanes2,
2968
3131
  cachePool: showFallback
2969
- }), nextProps.memoizedState = nextPrimaryChildren, nextProps.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_temp, renderLanes), workInProgress.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(current.child, nextProps);
2970
- return pushPrimaryTreeSuspenseHandler(workInProgress), renderLanes = current.child, current = renderLanes.sibling, renderLanes = createWorkInProgress(renderLanes, {
3132
+ }), nextProps.memoizedState = nextPrimaryChildren, nextProps.childLanes = getRemainingWorkInPrimaryTree(current, JSCompiler_temp, renderLanes2), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(current.child, nextProps);
3133
+ return pushPrimaryTreeSuspenseHandler(workInProgress2), renderLanes2 = current.child, current = renderLanes2.sibling, renderLanes2 = createWorkInProgress(renderLanes2, {
2971
3134
  mode: "visible",
2972
3135
  children: nextProps.children
2973
- }), renderLanes.return = workInProgress, renderLanes.sibling = null, current !== null && (JSCompiler_temp = workInProgress.deletions, JSCompiler_temp === null ? (workInProgress.deletions = [current], workInProgress.flags |= 16) : JSCompiler_temp.push(current)), workInProgress.child = renderLanes, workInProgress.memoizedState = null, renderLanes;
3136
+ }), renderLanes2.return = workInProgress2, renderLanes2.sibling = null, current !== null && (JSCompiler_temp = workInProgress2.deletions, JSCompiler_temp === null ? (workInProgress2.deletions = [current], workInProgress2.flags |= 16) : JSCompiler_temp.push(current)), workInProgress2.child = renderLanes2, workInProgress2.memoizedState = null, renderLanes2;
2974
3137
  }
2975
- function mountSuspensePrimaryChildren(workInProgress, primaryChildren) {
2976
- return primaryChildren = mountWorkInProgressOffscreenFiber({ mode: "visible", children: primaryChildren }, workInProgress.mode), primaryChildren.return = workInProgress, workInProgress.child = primaryChildren;
3138
+ function mountSuspensePrimaryChildren(workInProgress2, primaryChildren) {
3139
+ return primaryChildren = mountWorkInProgressOffscreenFiber({ mode: "visible", children: primaryChildren }, workInProgress2.mode), primaryChildren.return = workInProgress2, workInProgress2.child = primaryChildren;
2977
3140
  }
2978
3141
  function mountWorkInProgressOffscreenFiber(offscreenProps, mode) {
2979
3142
  return offscreenProps = createFiber(22, offscreenProps, null, mode), offscreenProps.lanes = 0, offscreenProps;
2980
3143
  }
2981
- function retrySuspenseComponentWithoutHydrating(current, workInProgress, renderLanes) {
2982
- return reconcileChildFibers(workInProgress, current.child, null, renderLanes), current = mountSuspensePrimaryChildren(workInProgress, workInProgress.pendingProps.children), current.flags |= 2, workInProgress.memoizedState = null, current;
3144
+ function retrySuspenseComponentWithoutHydrating(current, workInProgress2, renderLanes2) {
3145
+ return reconcileChildFibers(workInProgress2, current.child, null, renderLanes2), current = mountSuspensePrimaryChildren(workInProgress2, workInProgress2.pendingProps.children), current.flags |= 2, workInProgress2.memoizedState = null, current;
2983
3146
  }
2984
- function scheduleSuspenseWorkOnFiber(fiber, renderLanes, propagationRoot) {
2985
- fiber.lanes |= renderLanes;
3147
+ function scheduleSuspenseWorkOnFiber(fiber, renderLanes2, propagationRoot) {
3148
+ fiber.lanes |= renderLanes2;
2986
3149
  var alternate = fiber.alternate;
2987
- alternate !== null && (alternate.lanes |= renderLanes), scheduleContextWorkOnParentPath(fiber.return, renderLanes, propagationRoot);
3150
+ alternate !== null && (alternate.lanes |= renderLanes2), scheduleContextWorkOnParentPath(fiber.return, renderLanes2, propagationRoot);
2988
3151
  }
2989
- function initSuspenseListRenderState(workInProgress, isBackwards, tail, lastContentRow, tailMode, treeForkCount) {
2990
- var renderState = workInProgress.memoizedState;
2991
- renderState === null ? workInProgress.memoizedState = {
3152
+ function initSuspenseListRenderState(workInProgress2, isBackwards, tail, lastContentRow, tailMode, treeForkCount2) {
3153
+ var renderState = workInProgress2.memoizedState;
3154
+ renderState === null ? workInProgress2.memoizedState = {
2992
3155
  isBackwards,
2993
3156
  rendering: null,
2994
3157
  renderingStartTime: 0,
2995
3158
  last: lastContentRow,
2996
3159
  tail,
2997
3160
  tailMode,
2998
- treeForkCount
2999
- } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode, renderState.treeForkCount = treeForkCount);
3161
+ treeForkCount: treeForkCount2
3162
+ } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode, renderState.treeForkCount = treeForkCount2);
3000
3163
  }
3001
- function updateSuspenseListComponent(current, workInProgress, renderLanes) {
3002
- var nextProps = workInProgress.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail;
3164
+ function updateSuspenseListComponent(current, workInProgress2, renderLanes2) {
3165
+ var nextProps = workInProgress2.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail;
3003
3166
  nextProps = nextProps.children;
3004
3167
  var suspenseContext = suspenseStackCursor.current, shouldForceFallback = (suspenseContext & 2) !== 0;
3005
- if (shouldForceFallback ? (suspenseContext = suspenseContext & 1 | 2, workInProgress.flags |= 128) : suspenseContext &= 1, push(suspenseStackCursor, suspenseContext), reconcileChildren(current, workInProgress, nextProps, renderLanes), nextProps = isHydrating ? treeForkCount : 0, !shouldForceFallback && current !== null && (current.flags & 128) !== 0)
3168
+ if (shouldForceFallback ? (suspenseContext = suspenseContext & 1 | 2, workInProgress2.flags |= 128) : suspenseContext &= 1, push2(suspenseStackCursor, suspenseContext), reconcileChildren(current, workInProgress2, nextProps, renderLanes2), nextProps = isHydrating ? treeForkCount : 0, !shouldForceFallback && current !== null && (current.flags & 128) !== 0)
3006
3169
  a:
3007
- for (current = workInProgress.child;current !== null; ) {
3170
+ for (current = workInProgress2.child;current !== null; ) {
3008
3171
  if (current.tag === 13)
3009
- current.memoizedState !== null && scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);
3172
+ current.memoizedState !== null && scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
3010
3173
  else if (current.tag === 19)
3011
- scheduleSuspenseWorkOnFiber(current, renderLanes, workInProgress);
3174
+ scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
3012
3175
  else if (current.child !== null) {
3013
3176
  current.child.return = current, current = current.child;
3014
3177
  continue;
3015
3178
  }
3016
- if (current === workInProgress)
3179
+ if (current === workInProgress2)
3017
3180
  break a;
3018
3181
  for (;current.sibling === null; ) {
3019
- if (current.return === null || current.return === workInProgress)
3182
+ if (current.return === null || current.return === workInProgress2)
3020
3183
  break a;
3021
3184
  current = current.return;
3022
3185
  }
@@ -3024,229 +3187,229 @@ Error generating stack: ` + x.message + `
3024
3187
  }
3025
3188
  switch (revealOrder) {
3026
3189
  case "forwards":
3027
- renderLanes = workInProgress.child;
3028
- for (revealOrder = null;renderLanes !== null; )
3029
- current = renderLanes.alternate, current !== null && findFirstSuspended(current) === null && (revealOrder = renderLanes), renderLanes = renderLanes.sibling;
3030
- renderLanes = revealOrder, renderLanes === null ? (revealOrder = workInProgress.child, workInProgress.child = null) : (revealOrder = renderLanes.sibling, renderLanes.sibling = null), initSuspenseListRenderState(workInProgress, !1, revealOrder, renderLanes, tailMode, nextProps);
3190
+ renderLanes2 = workInProgress2.child;
3191
+ for (revealOrder = null;renderLanes2 !== null; )
3192
+ current = renderLanes2.alternate, current !== null && findFirstSuspended(current) === null && (revealOrder = renderLanes2), renderLanes2 = renderLanes2.sibling;
3193
+ renderLanes2 = revealOrder, renderLanes2 === null ? (revealOrder = workInProgress2.child, workInProgress2.child = null) : (revealOrder = renderLanes2.sibling, renderLanes2.sibling = null), initSuspenseListRenderState(workInProgress2, !1, revealOrder, renderLanes2, tailMode, nextProps);
3031
3194
  break;
3032
3195
  case "backwards":
3033
3196
  case "unstable_legacy-backwards":
3034
- renderLanes = null, revealOrder = workInProgress.child;
3035
- for (workInProgress.child = null;revealOrder !== null; ) {
3197
+ renderLanes2 = null, revealOrder = workInProgress2.child;
3198
+ for (workInProgress2.child = null;revealOrder !== null; ) {
3036
3199
  if (current = revealOrder.alternate, current !== null && findFirstSuspended(current) === null) {
3037
- workInProgress.child = revealOrder;
3200
+ workInProgress2.child = revealOrder;
3038
3201
  break;
3039
3202
  }
3040
- current = revealOrder.sibling, revealOrder.sibling = renderLanes, renderLanes = revealOrder, revealOrder = current;
3203
+ current = revealOrder.sibling, revealOrder.sibling = renderLanes2, renderLanes2 = revealOrder, revealOrder = current;
3041
3204
  }
3042
- initSuspenseListRenderState(workInProgress, !0, renderLanes, null, tailMode, nextProps);
3205
+ initSuspenseListRenderState(workInProgress2, !0, renderLanes2, null, tailMode, nextProps);
3043
3206
  break;
3044
3207
  case "together":
3045
- initSuspenseListRenderState(workInProgress, !1, null, null, void 0, nextProps);
3208
+ initSuspenseListRenderState(workInProgress2, !1, null, null, void 0, nextProps);
3046
3209
  break;
3047
3210
  default:
3048
- workInProgress.memoizedState = null;
3211
+ workInProgress2.memoizedState = null;
3049
3212
  }
3050
- return workInProgress.child;
3213
+ return workInProgress2.child;
3051
3214
  }
3052
- function bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes) {
3053
- if (current !== null && (workInProgress.dependencies = current.dependencies), workInProgressRootSkippedLanes |= workInProgress.lanes, (renderLanes & workInProgress.childLanes) === 0)
3215
+ function bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2) {
3216
+ if (current !== null && (workInProgress2.dependencies = current.dependencies), workInProgressRootSkippedLanes |= workInProgress2.lanes, (renderLanes2 & workInProgress2.childLanes) === 0)
3054
3217
  if (current !== null) {
3055
- if (propagateParentContextChanges(current, workInProgress, renderLanes, !1), (renderLanes & workInProgress.childLanes) === 0)
3218
+ if (propagateParentContextChanges(current, workInProgress2, renderLanes2, !1), (renderLanes2 & workInProgress2.childLanes) === 0)
3056
3219
  return null;
3057
3220
  } else
3058
3221
  return null;
3059
- if (current !== null && workInProgress.child !== current.child)
3222
+ if (current !== null && workInProgress2.child !== current.child)
3060
3223
  throw Error(formatProdErrorMessage(153));
3061
- if (workInProgress.child !== null) {
3062
- current = workInProgress.child, renderLanes = createWorkInProgress(current, current.pendingProps), workInProgress.child = renderLanes;
3063
- for (renderLanes.return = workInProgress;current.sibling !== null; )
3064
- current = current.sibling, renderLanes = renderLanes.sibling = createWorkInProgress(current, current.pendingProps), renderLanes.return = workInProgress;
3065
- renderLanes.sibling = null;
3224
+ if (workInProgress2.child !== null) {
3225
+ current = workInProgress2.child, renderLanes2 = createWorkInProgress(current, current.pendingProps), workInProgress2.child = renderLanes2;
3226
+ for (renderLanes2.return = workInProgress2;current.sibling !== null; )
3227
+ current = current.sibling, renderLanes2 = renderLanes2.sibling = createWorkInProgress(current, current.pendingProps), renderLanes2.return = workInProgress2;
3228
+ renderLanes2.sibling = null;
3066
3229
  }
3067
- return workInProgress.child;
3230
+ return workInProgress2.child;
3068
3231
  }
3069
- function checkScheduledUpdateOrContext(current, renderLanes) {
3070
- if ((current.lanes & renderLanes) !== 0)
3232
+ function checkScheduledUpdateOrContext(current, renderLanes2) {
3233
+ if ((current.lanes & renderLanes2) !== 0)
3071
3234
  return !0;
3072
3235
  return current = current.dependencies, current !== null && checkIfContextChanged(current) ? !0 : !1;
3073
3236
  }
3074
- function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes) {
3075
- switch (workInProgress.tag) {
3237
+ function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress2, renderLanes2) {
3238
+ switch (workInProgress2.tag) {
3076
3239
  case 3:
3077
- pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), pushProvider(workInProgress, CacheContext, current.memoizedState.cache), resetHydrationState();
3240
+ pushHostContainer(workInProgress2, workInProgress2.stateNode.containerInfo), pushProvider(workInProgress2, CacheContext, current.memoizedState.cache), resetHydrationState();
3078
3241
  break;
3079
3242
  case 27:
3080
3243
  case 5:
3081
- pushHostContext(workInProgress);
3244
+ pushHostContext(workInProgress2);
3082
3245
  break;
3083
3246
  case 4:
3084
- pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo);
3247
+ pushHostContainer(workInProgress2, workInProgress2.stateNode.containerInfo);
3085
3248
  break;
3086
3249
  case 10:
3087
- pushProvider(workInProgress, workInProgress.type, workInProgress.memoizedProps.value);
3250
+ pushProvider(workInProgress2, workInProgress2.type, workInProgress2.memoizedProps.value);
3088
3251
  break;
3089
3252
  case 31:
3090
- if (workInProgress.memoizedState !== null)
3091
- return workInProgress.flags |= 128, pushDehydratedActivitySuspenseHandler(workInProgress), null;
3253
+ if (workInProgress2.memoizedState !== null)
3254
+ return workInProgress2.flags |= 128, pushDehydratedActivitySuspenseHandler(workInProgress2), null;
3092
3255
  break;
3093
3256
  case 13:
3094
- var state$82 = workInProgress.memoizedState;
3257
+ var state$82 = workInProgress2.memoizedState;
3095
3258
  if (state$82 !== null) {
3096
3259
  if (state$82.dehydrated !== null)
3097
- return pushPrimaryTreeSuspenseHandler(workInProgress), workInProgress.flags |= 128, null;
3098
- if ((renderLanes & workInProgress.child.childLanes) !== 0)
3099
- return updateSuspenseComponent(current, workInProgress, renderLanes);
3100
- return pushPrimaryTreeSuspenseHandler(workInProgress), current = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes), current !== null ? current.sibling : null;
3260
+ return pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags |= 128, null;
3261
+ if ((renderLanes2 & workInProgress2.child.childLanes) !== 0)
3262
+ return updateSuspenseComponent(current, workInProgress2, renderLanes2);
3263
+ return pushPrimaryTreeSuspenseHandler(workInProgress2), current = bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2), current !== null ? current.sibling : null;
3101
3264
  }
3102
- pushPrimaryTreeSuspenseHandler(workInProgress);
3265
+ pushPrimaryTreeSuspenseHandler(workInProgress2);
3103
3266
  break;
3104
3267
  case 19:
3105
3268
  var didSuspendBefore = (current.flags & 128) !== 0;
3106
- if (state$82 = (renderLanes & workInProgress.childLanes) !== 0, state$82 || (propagateParentContextChanges(current, workInProgress, renderLanes, !1), state$82 = (renderLanes & workInProgress.childLanes) !== 0), didSuspendBefore) {
3269
+ if (state$82 = (renderLanes2 & workInProgress2.childLanes) !== 0, state$82 || (propagateParentContextChanges(current, workInProgress2, renderLanes2, !1), state$82 = (renderLanes2 & workInProgress2.childLanes) !== 0), didSuspendBefore) {
3107
3270
  if (state$82)
3108
- return updateSuspenseListComponent(current, workInProgress, renderLanes);
3109
- workInProgress.flags |= 128;
3271
+ return updateSuspenseListComponent(current, workInProgress2, renderLanes2);
3272
+ workInProgress2.flags |= 128;
3110
3273
  }
3111
- if (didSuspendBefore = workInProgress.memoizedState, didSuspendBefore !== null && (didSuspendBefore.rendering = null, didSuspendBefore.tail = null, didSuspendBefore.lastEffect = null), push(suspenseStackCursor, suspenseStackCursor.current), state$82)
3274
+ if (didSuspendBefore = workInProgress2.memoizedState, didSuspendBefore !== null && (didSuspendBefore.rendering = null, didSuspendBefore.tail = null, didSuspendBefore.lastEffect = null), push2(suspenseStackCursor, suspenseStackCursor.current), state$82)
3112
3275
  break;
3113
3276
  else
3114
3277
  return null;
3115
3278
  case 22:
3116
- return workInProgress.lanes = 0, updateOffscreenComponent(current, workInProgress, renderLanes, workInProgress.pendingProps);
3279
+ return workInProgress2.lanes = 0, updateOffscreenComponent(current, workInProgress2, renderLanes2, workInProgress2.pendingProps);
3117
3280
  case 24:
3118
- pushProvider(workInProgress, CacheContext, current.memoizedState.cache);
3281
+ pushProvider(workInProgress2, CacheContext, current.memoizedState.cache);
3119
3282
  }
3120
- return bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
3283
+ return bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
3121
3284
  }
3122
- function beginWork(current, workInProgress, renderLanes) {
3285
+ function beginWork(current, workInProgress2, renderLanes2) {
3123
3286
  if (current !== null)
3124
- if (current.memoizedProps !== workInProgress.pendingProps)
3287
+ if (current.memoizedProps !== workInProgress2.pendingProps)
3125
3288
  didReceiveUpdate = !0;
3126
3289
  else {
3127
- if (!checkScheduledUpdateOrContext(current, renderLanes) && (workInProgress.flags & 128) === 0)
3128
- return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress, renderLanes);
3290
+ if (!checkScheduledUpdateOrContext(current, renderLanes2) && (workInProgress2.flags & 128) === 0)
3291
+ return didReceiveUpdate = !1, attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress2, renderLanes2);
3129
3292
  didReceiveUpdate = (current.flags & 131072) !== 0 ? !0 : !1;
3130
3293
  }
3131
3294
  else
3132
- didReceiveUpdate = !1, isHydrating && (workInProgress.flags & 1048576) !== 0 && pushTreeId(workInProgress, treeForkCount, workInProgress.index);
3133
- switch (workInProgress.lanes = 0, workInProgress.tag) {
3295
+ didReceiveUpdate = !1, isHydrating && (workInProgress2.flags & 1048576) !== 0 && pushTreeId(workInProgress2, treeForkCount, workInProgress2.index);
3296
+ switch (workInProgress2.lanes = 0, workInProgress2.tag) {
3134
3297
  case 16:
3135
3298
  a: {
3136
- var props = workInProgress.pendingProps;
3137
- if (current = resolveLazy(workInProgress.elementType), workInProgress.type = current, typeof current === "function")
3138
- shouldConstruct(current) ? (props = resolveClassComponentProps(current, props), workInProgress.tag = 1, workInProgress = updateClassComponent(null, workInProgress, current, props, renderLanes)) : (workInProgress.tag = 0, workInProgress = updateFunctionComponent(null, workInProgress, current, props, renderLanes));
3299
+ var props = workInProgress2.pendingProps;
3300
+ if (current = resolveLazy(workInProgress2.elementType), workInProgress2.type = current, typeof current === "function")
3301
+ shouldConstruct(current) ? (props = resolveClassComponentProps(current, props), workInProgress2.tag = 1, workInProgress2 = updateClassComponent(null, workInProgress2, current, props, renderLanes2)) : (workInProgress2.tag = 0, workInProgress2 = updateFunctionComponent(null, workInProgress2, current, props, renderLanes2));
3139
3302
  else {
3140
3303
  if (current !== void 0 && current !== null) {
3141
3304
  var $$typeof = current.$$typeof;
3142
3305
  if ($$typeof === REACT_FORWARD_REF_TYPE) {
3143
- workInProgress.tag = 11, workInProgress = updateForwardRef(null, workInProgress, current, props, renderLanes);
3306
+ workInProgress2.tag = 11, workInProgress2 = updateForwardRef(null, workInProgress2, current, props, renderLanes2);
3144
3307
  break a;
3145
3308
  } else if ($$typeof === REACT_MEMO_TYPE) {
3146
- workInProgress.tag = 14, workInProgress = updateMemoComponent(null, workInProgress, current, props, renderLanes);
3309
+ workInProgress2.tag = 14, workInProgress2 = updateMemoComponent(null, workInProgress2, current, props, renderLanes2);
3147
3310
  break a;
3148
3311
  }
3149
3312
  }
3150
- throw workInProgress = getComponentNameFromType(current) || current, Error(formatProdErrorMessage(306, workInProgress, ""));
3313
+ throw workInProgress2 = getComponentNameFromType(current) || current, Error(formatProdErrorMessage(306, workInProgress2, ""));
3151
3314
  }
3152
3315
  }
3153
- return workInProgress;
3316
+ return workInProgress2;
3154
3317
  case 0:
3155
- return updateFunctionComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes);
3318
+ return updateFunctionComponent(current, workInProgress2, workInProgress2.type, workInProgress2.pendingProps, renderLanes2);
3156
3319
  case 1:
3157
- return props = workInProgress.type, $$typeof = resolveClassComponentProps(props, workInProgress.pendingProps), updateClassComponent(current, workInProgress, props, $$typeof, renderLanes);
3320
+ return props = workInProgress2.type, $$typeof = resolveClassComponentProps(props, workInProgress2.pendingProps), updateClassComponent(current, workInProgress2, props, $$typeof, renderLanes2);
3158
3321
  case 3:
3159
3322
  a: {
3160
- if (pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), current === null)
3323
+ if (pushHostContainer(workInProgress2, workInProgress2.stateNode.containerInfo), current === null)
3161
3324
  throw Error(formatProdErrorMessage(387));
3162
- var nextProps = workInProgress.pendingProps;
3163
- $$typeof = workInProgress.memoizedState, props = $$typeof.element, cloneUpdateQueue(current, workInProgress), processUpdateQueue(workInProgress, nextProps, null, renderLanes);
3164
- var nextState = workInProgress.memoizedState;
3165
- if (nextProps = nextState.cache, pushProvider(workInProgress, CacheContext, nextProps), nextProps !== $$typeof.cache && propagateContextChanges(workInProgress, [CacheContext], renderLanes, !0), suspendIfUpdateReadFromEntangledAsyncAction(), nextProps = nextState.element, supportsHydration && $$typeof.isDehydrated)
3325
+ var nextProps = workInProgress2.pendingProps;
3326
+ $$typeof = workInProgress2.memoizedState, props = $$typeof.element, cloneUpdateQueue(current, workInProgress2), processUpdateQueue(workInProgress2, nextProps, null, renderLanes2);
3327
+ var nextState = workInProgress2.memoizedState;
3328
+ if (nextProps = nextState.cache, pushProvider(workInProgress2, CacheContext, nextProps), nextProps !== $$typeof.cache && propagateContextChanges(workInProgress2, [CacheContext], renderLanes2, !0), suspendIfUpdateReadFromEntangledAsyncAction(), nextProps = nextState.element, supportsHydration && $$typeof.isDehydrated)
3166
3329
  if ($$typeof = {
3167
3330
  element: nextProps,
3168
3331
  isDehydrated: !1,
3169
3332
  cache: nextState.cache
3170
- }, workInProgress.updateQueue.baseState = $$typeof, workInProgress.memoizedState = $$typeof, workInProgress.flags & 256) {
3171
- workInProgress = mountHostRootWithoutHydrating(current, workInProgress, nextProps, renderLanes);
3333
+ }, workInProgress2.updateQueue.baseState = $$typeof, workInProgress2.memoizedState = $$typeof, workInProgress2.flags & 256) {
3334
+ workInProgress2 = mountHostRootWithoutHydrating(current, workInProgress2, nextProps, renderLanes2);
3172
3335
  break a;
3173
3336
  } else if (nextProps !== props) {
3174
- props = createCapturedValueAtFiber(Error(formatProdErrorMessage(424)), workInProgress), queueHydrationError(props), workInProgress = mountHostRootWithoutHydrating(current, workInProgress, nextProps, renderLanes);
3337
+ props = createCapturedValueAtFiber(Error(formatProdErrorMessage(424)), workInProgress2), queueHydrationError(props), workInProgress2 = mountHostRootWithoutHydrating(current, workInProgress2, nextProps, renderLanes2);
3175
3338
  break a;
3176
3339
  } else
3177
- for (supportsHydration && (nextHydratableInstance = getFirstHydratableChildWithinContainer(workInProgress.stateNode.containerInfo), hydrationParentFiber = workInProgress, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !0), renderLanes = mountChildFibers(workInProgress, null, nextProps, renderLanes), workInProgress.child = renderLanes;renderLanes; )
3178
- renderLanes.flags = renderLanes.flags & -3 | 4096, renderLanes = renderLanes.sibling;
3340
+ for (supportsHydration && (nextHydratableInstance = getFirstHydratableChildWithinContainer(workInProgress2.stateNode.containerInfo), hydrationParentFiber = workInProgress2, isHydrating = !0, hydrationErrors = null, rootOrSingletonContext = !0), renderLanes2 = mountChildFibers(workInProgress2, null, nextProps, renderLanes2), workInProgress2.child = renderLanes2;renderLanes2; )
3341
+ renderLanes2.flags = renderLanes2.flags & -3 | 4096, renderLanes2 = renderLanes2.sibling;
3179
3342
  else {
3180
3343
  if (resetHydrationState(), nextProps === props) {
3181
- workInProgress = bailoutOnAlreadyFinishedWork(current, workInProgress, renderLanes);
3344
+ workInProgress2 = bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
3182
3345
  break a;
3183
3346
  }
3184
- reconcileChildren(current, workInProgress, nextProps, renderLanes);
3347
+ reconcileChildren(current, workInProgress2, nextProps, renderLanes2);
3185
3348
  }
3186
- workInProgress = workInProgress.child;
3349
+ workInProgress2 = workInProgress2.child;
3187
3350
  }
3188
- return workInProgress;
3351
+ return workInProgress2;
3189
3352
  case 26:
3190
3353
  if (supportsResources)
3191
- return markRef(current, workInProgress), current === null ? (renderLanes = getResource(workInProgress.type, null, workInProgress.pendingProps, null)) ? workInProgress.memoizedState = renderLanes : isHydrating || (workInProgress.stateNode = createHoistableInstance(workInProgress.type, workInProgress.pendingProps, rootInstanceStackCursor.current, workInProgress)) : workInProgress.memoizedState = getResource(workInProgress.type, current.memoizedProps, workInProgress.pendingProps, current.memoizedState), null;
3354
+ return markRef(current, workInProgress2), current === null ? (renderLanes2 = getResource(workInProgress2.type, null, workInProgress2.pendingProps, null)) ? workInProgress2.memoizedState = renderLanes2 : isHydrating || (workInProgress2.stateNode = createHoistableInstance(workInProgress2.type, workInProgress2.pendingProps, rootInstanceStackCursor.current, workInProgress2)) : workInProgress2.memoizedState = getResource(workInProgress2.type, current.memoizedProps, workInProgress2.pendingProps, current.memoizedState), null;
3192
3355
  case 27:
3193
3356
  if (supportsSingletons)
3194
- return pushHostContext(workInProgress), current === null && supportsSingletons && isHydrating && (props = workInProgress.stateNode = resolveSingletonInstance(workInProgress.type, workInProgress.pendingProps, rootInstanceStackCursor.current, contextStackCursor.current, !1), hydrationParentFiber = workInProgress, rootOrSingletonContext = !0, nextHydratableInstance = getFirstHydratableChildWithinSingleton(workInProgress.type, props, nextHydratableInstance)), reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), markRef(current, workInProgress), current === null && (workInProgress.flags |= 4194304), workInProgress.child;
3357
+ return pushHostContext(workInProgress2), current === null && supportsSingletons && isHydrating && (props = workInProgress2.stateNode = resolveSingletonInstance(workInProgress2.type, workInProgress2.pendingProps, rootInstanceStackCursor.current, contextStackCursor.current, !1), hydrationParentFiber = workInProgress2, rootOrSingletonContext = !0, nextHydratableInstance = getFirstHydratableChildWithinSingleton(workInProgress2.type, props, nextHydratableInstance)), reconcileChildren(current, workInProgress2, workInProgress2.pendingProps.children, renderLanes2), markRef(current, workInProgress2), current === null && (workInProgress2.flags |= 4194304), workInProgress2.child;
3195
3358
  case 5:
3196
3359
  if (current === null && isHydrating) {
3197
- if (validateHydratableInstance(workInProgress.type, workInProgress.pendingProps, contextStackCursor.current), $$typeof = props = nextHydratableInstance)
3198
- props = canHydrateInstance(props, workInProgress.type, workInProgress.pendingProps, rootOrSingletonContext), props !== null ? (workInProgress.stateNode = props, hydrationParentFiber = workInProgress, nextHydratableInstance = getFirstHydratableChild(props), rootOrSingletonContext = !1, $$typeof = !0) : $$typeof = !1;
3199
- $$typeof || throwOnHydrationMismatch(workInProgress);
3360
+ if (validateHydratableInstance(workInProgress2.type, workInProgress2.pendingProps, contextStackCursor.current), $$typeof = props = nextHydratableInstance)
3361
+ props = canHydrateInstance(props, workInProgress2.type, workInProgress2.pendingProps, rootOrSingletonContext), props !== null ? (workInProgress2.stateNode = props, hydrationParentFiber = workInProgress2, nextHydratableInstance = getFirstHydratableChild(props), rootOrSingletonContext = !1, $$typeof = !0) : $$typeof = !1;
3362
+ $$typeof || throwOnHydrationMismatch(workInProgress2);
3200
3363
  }
3201
- return pushHostContext(workInProgress), $$typeof = workInProgress.type, nextProps = workInProgress.pendingProps, nextState = current !== null ? current.memoizedProps : null, props = nextProps.children, shouldSetTextContent($$typeof, nextProps) ? props = null : nextState !== null && shouldSetTextContent($$typeof, nextState) && (workInProgress.flags |= 32), workInProgress.memoizedState !== null && ($$typeof = renderWithHooks(current, workInProgress, TransitionAwareHostComponent, null, null, renderLanes), isPrimaryRenderer ? HostTransitionContext._currentValue = $$typeof : HostTransitionContext._currentValue2 = $$typeof), markRef(current, workInProgress), reconcileChildren(current, workInProgress, props, renderLanes), workInProgress.child;
3364
+ return pushHostContext(workInProgress2), $$typeof = workInProgress2.type, nextProps = workInProgress2.pendingProps, nextState = current !== null ? current.memoizedProps : null, props = nextProps.children, shouldSetTextContent($$typeof, nextProps) ? props = null : nextState !== null && shouldSetTextContent($$typeof, nextState) && (workInProgress2.flags |= 32), workInProgress2.memoizedState !== null && ($$typeof = renderWithHooks(current, workInProgress2, TransitionAwareHostComponent, null, null, renderLanes2), isPrimaryRenderer ? HostTransitionContext._currentValue = $$typeof : HostTransitionContext._currentValue2 = $$typeof), markRef(current, workInProgress2), reconcileChildren(current, workInProgress2, props, renderLanes2), workInProgress2.child;
3202
3365
  case 6:
3203
3366
  if (current === null && isHydrating) {
3204
- if (validateHydratableTextInstance(workInProgress.pendingProps, contextStackCursor.current), current = renderLanes = nextHydratableInstance)
3205
- renderLanes = canHydrateTextInstance(renderLanes, workInProgress.pendingProps, rootOrSingletonContext), renderLanes !== null ? (workInProgress.stateNode = renderLanes, hydrationParentFiber = workInProgress, nextHydratableInstance = null, current = !0) : current = !1;
3206
- current || throwOnHydrationMismatch(workInProgress);
3367
+ if (validateHydratableTextInstance(workInProgress2.pendingProps, contextStackCursor.current), current = renderLanes2 = nextHydratableInstance)
3368
+ renderLanes2 = canHydrateTextInstance(renderLanes2, workInProgress2.pendingProps, rootOrSingletonContext), renderLanes2 !== null ? (workInProgress2.stateNode = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null, current = !0) : current = !1;
3369
+ current || throwOnHydrationMismatch(workInProgress2);
3207
3370
  }
3208
3371
  return null;
3209
3372
  case 13:
3210
- return updateSuspenseComponent(current, workInProgress, renderLanes);
3373
+ return updateSuspenseComponent(current, workInProgress2, renderLanes2);
3211
3374
  case 4:
3212
- return pushHostContainer(workInProgress, workInProgress.stateNode.containerInfo), props = workInProgress.pendingProps, current === null ? workInProgress.child = reconcileChildFibers(workInProgress, null, props, renderLanes) : reconcileChildren(current, workInProgress, props, renderLanes), workInProgress.child;
3375
+ return pushHostContainer(workInProgress2, workInProgress2.stateNode.containerInfo), props = workInProgress2.pendingProps, current === null ? workInProgress2.child = reconcileChildFibers(workInProgress2, null, props, renderLanes2) : reconcileChildren(current, workInProgress2, props, renderLanes2), workInProgress2.child;
3213
3376
  case 11:
3214
- return updateForwardRef(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes);
3377
+ return updateForwardRef(current, workInProgress2, workInProgress2.type, workInProgress2.pendingProps, renderLanes2);
3215
3378
  case 7:
3216
- return reconcileChildren(current, workInProgress, workInProgress.pendingProps, renderLanes), workInProgress.child;
3379
+ return reconcileChildren(current, workInProgress2, workInProgress2.pendingProps, renderLanes2), workInProgress2.child;
3217
3380
  case 8:
3218
- return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child;
3381
+ return reconcileChildren(current, workInProgress2, workInProgress2.pendingProps.children, renderLanes2), workInProgress2.child;
3219
3382
  case 12:
3220
- return reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child;
3383
+ return reconcileChildren(current, workInProgress2, workInProgress2.pendingProps.children, renderLanes2), workInProgress2.child;
3221
3384
  case 10:
3222
- return props = workInProgress.pendingProps, pushProvider(workInProgress, workInProgress.type, props.value), reconcileChildren(current, workInProgress, props.children, renderLanes), workInProgress.child;
3385
+ return props = workInProgress2.pendingProps, pushProvider(workInProgress2, workInProgress2.type, props.value), reconcileChildren(current, workInProgress2, props.children, renderLanes2), workInProgress2.child;
3223
3386
  case 9:
3224
- return $$typeof = workInProgress.type._context, props = workInProgress.pendingProps.children, prepareToReadContext(workInProgress), $$typeof = readContext($$typeof), props = props($$typeof), workInProgress.flags |= 1, reconcileChildren(current, workInProgress, props, renderLanes), workInProgress.child;
3387
+ return $$typeof = workInProgress2.type._context, props = workInProgress2.pendingProps.children, prepareToReadContext(workInProgress2), $$typeof = readContext($$typeof), props = props($$typeof), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, props, renderLanes2), workInProgress2.child;
3225
3388
  case 14:
3226
- return updateMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes);
3389
+ return updateMemoComponent(current, workInProgress2, workInProgress2.type, workInProgress2.pendingProps, renderLanes2);
3227
3390
  case 15:
3228
- return updateSimpleMemoComponent(current, workInProgress, workInProgress.type, workInProgress.pendingProps, renderLanes);
3391
+ return updateSimpleMemoComponent(current, workInProgress2, workInProgress2.type, workInProgress2.pendingProps, renderLanes2);
3229
3392
  case 19:
3230
- return updateSuspenseListComponent(current, workInProgress, renderLanes);
3393
+ return updateSuspenseListComponent(current, workInProgress2, renderLanes2);
3231
3394
  case 31:
3232
- return updateActivityComponent(current, workInProgress, renderLanes);
3395
+ return updateActivityComponent(current, workInProgress2, renderLanes2);
3233
3396
  case 22:
3234
- return updateOffscreenComponent(current, workInProgress, renderLanes, workInProgress.pendingProps);
3397
+ return updateOffscreenComponent(current, workInProgress2, renderLanes2, workInProgress2.pendingProps);
3235
3398
  case 24:
3236
- return prepareToReadContext(workInProgress), props = readContext(CacheContext), current === null ? ($$typeof = peekCacheFromPool(), $$typeof === null && ($$typeof = workInProgressRoot, nextProps = createCache(), $$typeof.pooledCache = nextProps, nextProps.refCount++, nextProps !== null && ($$typeof.pooledCacheLanes |= renderLanes), $$typeof = nextProps), workInProgress.memoizedState = {
3399
+ return prepareToReadContext(workInProgress2), props = readContext(CacheContext), current === null ? ($$typeof = peekCacheFromPool(), $$typeof === null && ($$typeof = workInProgressRoot, nextProps = createCache(), $$typeof.pooledCache = nextProps, nextProps.refCount++, nextProps !== null && ($$typeof.pooledCacheLanes |= renderLanes2), $$typeof = nextProps), workInProgress2.memoizedState = {
3237
3400
  parent: props,
3238
3401
  cache: $$typeof
3239
- }, initializeUpdateQueue(workInProgress), pushProvider(workInProgress, CacheContext, $$typeof)) : ((current.lanes & renderLanes) !== 0 && (cloneUpdateQueue(current, workInProgress), processUpdateQueue(workInProgress, null, null, renderLanes), suspendIfUpdateReadFromEntangledAsyncAction()), $$typeof = current.memoizedState, nextProps = workInProgress.memoizedState, $$typeof.parent !== props ? ($$typeof = { parent: props, cache: props }, workInProgress.memoizedState = $$typeof, workInProgress.lanes === 0 && (workInProgress.memoizedState = workInProgress.updateQueue.baseState = $$typeof), pushProvider(workInProgress, CacheContext, props)) : (props = nextProps.cache, pushProvider(workInProgress, CacheContext, props), props !== $$typeof.cache && propagateContextChanges(workInProgress, [CacheContext], renderLanes, !0))), reconcileChildren(current, workInProgress, workInProgress.pendingProps.children, renderLanes), workInProgress.child;
3402
+ }, initializeUpdateQueue(workInProgress2), pushProvider(workInProgress2, CacheContext, $$typeof)) : ((current.lanes & renderLanes2) !== 0 && (cloneUpdateQueue(current, workInProgress2), processUpdateQueue(workInProgress2, null, null, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction()), $$typeof = current.memoizedState, nextProps = workInProgress2.memoizedState, $$typeof.parent !== props ? ($$typeof = { parent: props, cache: props }, workInProgress2.memoizedState = $$typeof, workInProgress2.lanes === 0 && (workInProgress2.memoizedState = workInProgress2.updateQueue.baseState = $$typeof), pushProvider(workInProgress2, CacheContext, props)) : (props = nextProps.cache, pushProvider(workInProgress2, CacheContext, props), props !== $$typeof.cache && propagateContextChanges(workInProgress2, [CacheContext], renderLanes2, !0))), reconcileChildren(current, workInProgress2, workInProgress2.pendingProps.children, renderLanes2), workInProgress2.child;
3240
3403
  case 29:
3241
- throw workInProgress.pendingProps;
3404
+ throw workInProgress2.pendingProps;
3242
3405
  }
3243
- throw Error(formatProdErrorMessage(156, workInProgress.tag));
3406
+ throw Error(formatProdErrorMessage(156, workInProgress2.tag));
3244
3407
  }
3245
- function markUpdate(workInProgress) {
3246
- workInProgress.flags |= 4;
3408
+ function markUpdate(workInProgress2) {
3409
+ workInProgress2.flags |= 4;
3247
3410
  }
3248
- function markCloned(workInProgress) {
3249
- supportsPersistence && (workInProgress.flags |= 8);
3411
+ function markCloned(workInProgress2) {
3412
+ supportsPersistence && (workInProgress2.flags |= 8);
3250
3413
  }
3251
3414
  function doesRequireClone(current, completedWork) {
3252
3415
  if (current !== null && current.child === completedWork.child)
@@ -3260,26 +3423,26 @@ Error generating stack: ` + x.message + `
3260
3423
  }
3261
3424
  return !1;
3262
3425
  }
3263
- function appendAllChildren(parent, workInProgress, needsVisibilityToggle, isHidden) {
3426
+ function appendAllChildren(parent, workInProgress2, needsVisibilityToggle, isHidden) {
3264
3427
  if (supportsMutation)
3265
- for (needsVisibilityToggle = workInProgress.child;needsVisibilityToggle !== null; ) {
3428
+ for (needsVisibilityToggle = workInProgress2.child;needsVisibilityToggle !== null; ) {
3266
3429
  if (needsVisibilityToggle.tag === 5 || needsVisibilityToggle.tag === 6)
3267
3430
  appendInitialChild(parent, needsVisibilityToggle.stateNode);
3268
3431
  else if (!(needsVisibilityToggle.tag === 4 || supportsSingletons && needsVisibilityToggle.tag === 27) && needsVisibilityToggle.child !== null) {
3269
3432
  needsVisibilityToggle.child.return = needsVisibilityToggle, needsVisibilityToggle = needsVisibilityToggle.child;
3270
3433
  continue;
3271
3434
  }
3272
- if (needsVisibilityToggle === workInProgress)
3435
+ if (needsVisibilityToggle === workInProgress2)
3273
3436
  break;
3274
3437
  for (;needsVisibilityToggle.sibling === null; ) {
3275
- if (needsVisibilityToggle.return === null || needsVisibilityToggle.return === workInProgress)
3438
+ if (needsVisibilityToggle.return === null || needsVisibilityToggle.return === workInProgress2)
3276
3439
  return;
3277
3440
  needsVisibilityToggle = needsVisibilityToggle.return;
3278
3441
  }
3279
3442
  needsVisibilityToggle.sibling.return = needsVisibilityToggle.return, needsVisibilityToggle = needsVisibilityToggle.sibling;
3280
3443
  }
3281
3444
  else if (supportsPersistence)
3282
- for (var node$85 = workInProgress.child;node$85 !== null; ) {
3445
+ for (var node$85 = workInProgress2.child;node$85 !== null; ) {
3283
3446
  if (node$85.tag === 5) {
3284
3447
  var instance = node$85.stateNode;
3285
3448
  needsVisibilityToggle && isHidden && (instance = cloneHiddenInstance(instance, node$85.type, node$85.memoizedProps)), appendInitialChild(parent, instance);
@@ -3293,20 +3456,20 @@ Error generating stack: ` + x.message + `
3293
3456
  continue;
3294
3457
  }
3295
3458
  }
3296
- if (node$85 === workInProgress)
3459
+ if (node$85 === workInProgress2)
3297
3460
  break;
3298
3461
  for (;node$85.sibling === null; ) {
3299
- if (node$85.return === null || node$85.return === workInProgress)
3462
+ if (node$85.return === null || node$85.return === workInProgress2)
3300
3463
  return;
3301
3464
  node$85 = node$85.return;
3302
3465
  }
3303
3466
  node$85.sibling.return = node$85.return, node$85 = node$85.sibling;
3304
3467
  }
3305
3468
  }
3306
- function appendAllChildrenToContainer(containerChildSet, workInProgress, needsVisibilityToggle, isHidden) {
3469
+ function appendAllChildrenToContainer(containerChildSet, workInProgress2, needsVisibilityToggle, isHidden) {
3307
3470
  var hasOffscreenComponentChild = !1;
3308
3471
  if (supportsPersistence)
3309
- for (var node = workInProgress.child;node !== null; ) {
3472
+ for (var node = workInProgress2.child;node !== null; ) {
3310
3473
  if (node.tag === 5) {
3311
3474
  var instance = node.stateNode;
3312
3475
  needsVisibilityToggle && isHidden && (instance = cloneHiddenInstance(instance, node.type, node.memoizedProps)), appendChildToContainerChildSet(containerChildSet, instance);
@@ -3320,10 +3483,10 @@ Error generating stack: ` + x.message + `
3320
3483
  continue;
3321
3484
  }
3322
3485
  }
3323
- if (node === workInProgress)
3486
+ if (node === workInProgress2)
3324
3487
  break;
3325
3488
  for (;node.sibling === null; ) {
3326
- if (node.return === null || node.return === workInProgress)
3489
+ if (node.return === null || node.return === workInProgress2)
3327
3490
  return hasOffscreenComponentChild;
3328
3491
  node = node.return;
3329
3492
  }
@@ -3331,49 +3494,49 @@ Error generating stack: ` + x.message + `
3331
3494
  }
3332
3495
  return hasOffscreenComponentChild;
3333
3496
  }
3334
- function updateHostContainer(current, workInProgress) {
3335
- if (supportsPersistence && doesRequireClone(current, workInProgress)) {
3336
- current = workInProgress.stateNode;
3497
+ function updateHostContainer(current, workInProgress2) {
3498
+ if (supportsPersistence && doesRequireClone(current, workInProgress2)) {
3499
+ current = workInProgress2.stateNode;
3337
3500
  var container = current.containerInfo, newChildSet = createContainerChildSet();
3338
- appendAllChildrenToContainer(newChildSet, workInProgress, !1, !1), current.pendingChildren = newChildSet, markUpdate(workInProgress), finalizeContainerChildren(container, newChildSet);
3501
+ appendAllChildrenToContainer(newChildSet, workInProgress2, !1, !1), current.pendingChildren = newChildSet, markUpdate(workInProgress2), finalizeContainerChildren(container, newChildSet);
3339
3502
  }
3340
3503
  }
3341
- function updateHostComponent(current, workInProgress, type, newProps) {
3504
+ function updateHostComponent(current, workInProgress2, type, newProps) {
3342
3505
  if (supportsMutation)
3343
- current.memoizedProps !== newProps && markUpdate(workInProgress);
3506
+ current.memoizedProps !== newProps && markUpdate(workInProgress2);
3344
3507
  else if (supportsPersistence) {
3345
- var currentInstance = current.stateNode, oldProps$88 = current.memoizedProps;
3346
- if ((current = doesRequireClone(current, workInProgress)) || oldProps$88 !== newProps) {
3508
+ var { stateNode: currentInstance, memoizedProps: oldProps$88 } = current;
3509
+ if ((current = doesRequireClone(current, workInProgress2)) || oldProps$88 !== newProps) {
3347
3510
  var currentHostContext = contextStackCursor.current;
3348
- oldProps$88 = cloneInstance(currentInstance, type, oldProps$88, newProps, !current, null), oldProps$88 === currentInstance ? workInProgress.stateNode = currentInstance : (markCloned(workInProgress), finalizeInitialChildren(oldProps$88, type, newProps, currentHostContext) && markUpdate(workInProgress), workInProgress.stateNode = oldProps$88, current && appendAllChildren(oldProps$88, workInProgress, !1, !1));
3511
+ oldProps$88 = cloneInstance(currentInstance, type, oldProps$88, newProps, !current, null), oldProps$88 === currentInstance ? workInProgress2.stateNode = currentInstance : (markCloned(workInProgress2), finalizeInitialChildren(oldProps$88, type, newProps, currentHostContext) && markUpdate(workInProgress2), workInProgress2.stateNode = oldProps$88, current && appendAllChildren(oldProps$88, workInProgress2, !1, !1));
3349
3512
  } else
3350
- workInProgress.stateNode = currentInstance;
3513
+ workInProgress2.stateNode = currentInstance;
3351
3514
  }
3352
3515
  }
3353
- function preloadInstanceAndSuspendIfNeeded(workInProgress, type, oldProps, newProps, renderLanes) {
3354
- if ((workInProgress.mode & 32) !== 0 && (oldProps === null ? maySuspendCommit(type, newProps) : maySuspendCommitOnUpdate(type, oldProps, newProps))) {
3355
- if (workInProgress.flags |= 16777216, (renderLanes & 335544128) === renderLanes || maySuspendCommitInSyncRender(type, newProps))
3356
- if (preloadInstance(workInProgress.stateNode, type, newProps))
3357
- workInProgress.flags |= 8192;
3516
+ function preloadInstanceAndSuspendIfNeeded(workInProgress2, type, oldProps, newProps, renderLanes2) {
3517
+ if ((workInProgress2.mode & 32) !== 0 && (oldProps === null ? maySuspendCommit(type, newProps) : maySuspendCommitOnUpdate(type, oldProps, newProps))) {
3518
+ if (workInProgress2.flags |= 16777216, (renderLanes2 & 335544128) === renderLanes2 || maySuspendCommitInSyncRender(type, newProps))
3519
+ if (preloadInstance(workInProgress2.stateNode, type, newProps))
3520
+ workInProgress2.flags |= 8192;
3358
3521
  else if (shouldRemainOnPreviousScreen())
3359
- workInProgress.flags |= 8192;
3522
+ workInProgress2.flags |= 8192;
3360
3523
  else
3361
3524
  throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException;
3362
3525
  } else
3363
- workInProgress.flags &= -16777217;
3526
+ workInProgress2.flags &= -16777217;
3364
3527
  }
3365
- function preloadResourceAndSuspendIfNeeded(workInProgress, resource) {
3528
+ function preloadResourceAndSuspendIfNeeded(workInProgress2, resource) {
3366
3529
  if (mayResourceSuspendCommit(resource)) {
3367
- if (workInProgress.flags |= 16777216, !preloadResource(resource))
3530
+ if (workInProgress2.flags |= 16777216, !preloadResource(resource))
3368
3531
  if (shouldRemainOnPreviousScreen())
3369
- workInProgress.flags |= 8192;
3532
+ workInProgress2.flags |= 8192;
3370
3533
  else
3371
3534
  throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException;
3372
3535
  } else
3373
- workInProgress.flags &= -16777217;
3536
+ workInProgress2.flags &= -16777217;
3374
3537
  }
3375
- function scheduleRetryEffect(workInProgress, retryQueue) {
3376
- retryQueue !== null && (workInProgress.flags |= 4), workInProgress.flags & 16384 && (retryQueue = workInProgress.tag !== 22 ? claimNextRetryLane() : 536870912, workInProgress.lanes |= retryQueue, workInProgressSuspendedRetryLanes |= retryQueue);
3538
+ function scheduleRetryEffect(workInProgress2, retryQueue) {
3539
+ retryQueue !== null && (workInProgress2.flags |= 4), workInProgress2.flags & 16384 && (retryQueue = workInProgress2.tag !== 22 ? claimNextRetryLane() : 536870912, workInProgress2.lanes |= retryQueue, workInProgressSuspendedRetryLanes |= retryQueue);
3377
3540
  }
3378
3541
  function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
3379
3542
  if (!isHydrating)
@@ -3401,9 +3564,9 @@ Error generating stack: ` + x.message + `
3401
3564
  newChildLanes |= child$91.lanes | child$91.childLanes, subtreeFlags |= child$91.subtreeFlags, subtreeFlags |= child$91.flags, child$91.return = completedWork, child$91 = child$91.sibling;
3402
3565
  return completedWork.subtreeFlags |= subtreeFlags, completedWork.childLanes = newChildLanes, didBailout;
3403
3566
  }
3404
- function completeWork(current, workInProgress, renderLanes) {
3405
- var newProps = workInProgress.pendingProps;
3406
- switch (popTreeContext(workInProgress), workInProgress.tag) {
3567
+ function completeWork(current, workInProgress2, renderLanes2) {
3568
+ var newProps = workInProgress2.pendingProps;
3569
+ switch (popTreeContext(workInProgress2), workInProgress2.tag) {
3407
3570
  case 16:
3408
3571
  case 15:
3409
3572
  case 0:
@@ -3413,199 +3576,199 @@ Error generating stack: ` + x.message + `
3413
3576
  case 12:
3414
3577
  case 9:
3415
3578
  case 14:
3416
- return bubbleProperties(workInProgress), null;
3579
+ return bubbleProperties(workInProgress2), null;
3417
3580
  case 1:
3418
- return bubbleProperties(workInProgress), null;
3581
+ return bubbleProperties(workInProgress2), null;
3419
3582
  case 3:
3420
- if (renderLanes = workInProgress.stateNode, newProps = null, current !== null && (newProps = current.memoizedState.cache), workInProgress.memoizedState.cache !== newProps && (workInProgress.flags |= 2048), popProvider(CacheContext), popHostContainer(), renderLanes.pendingContext && (renderLanes.context = renderLanes.pendingContext, renderLanes.pendingContext = null), current === null || current.child === null)
3421
- popHydrationState(workInProgress) ? markUpdate(workInProgress) : current === null || current.memoizedState.isDehydrated && (workInProgress.flags & 256) === 0 || (workInProgress.flags |= 1024, upgradeHydrationErrorsToRecoverable());
3422
- return updateHostContainer(current, workInProgress), bubbleProperties(workInProgress), null;
3583
+ if (renderLanes2 = workInProgress2.stateNode, newProps = null, current !== null && (newProps = current.memoizedState.cache), workInProgress2.memoizedState.cache !== newProps && (workInProgress2.flags |= 2048), popProvider(CacheContext), popHostContainer(), renderLanes2.pendingContext && (renderLanes2.context = renderLanes2.pendingContext, renderLanes2.pendingContext = null), current === null || current.child === null)
3584
+ popHydrationState(workInProgress2) ? markUpdate(workInProgress2) : current === null || current.memoizedState.isDehydrated && (workInProgress2.flags & 256) === 0 || (workInProgress2.flags |= 1024, upgradeHydrationErrorsToRecoverable());
3585
+ return updateHostContainer(current, workInProgress2), bubbleProperties(workInProgress2), null;
3423
3586
  case 26:
3424
3587
  if (supportsResources) {
3425
- var { type, memoizedState: nextResource } = workInProgress;
3426
- return current === null ? (markUpdate(workInProgress), nextResource !== null ? (bubbleProperties(workInProgress), preloadResourceAndSuspendIfNeeded(workInProgress, nextResource)) : (bubbleProperties(workInProgress), preloadInstanceAndSuspendIfNeeded(workInProgress, type, null, newProps, renderLanes))) : nextResource ? nextResource !== current.memoizedState ? (markUpdate(workInProgress), bubbleProperties(workInProgress), preloadResourceAndSuspendIfNeeded(workInProgress, nextResource)) : (bubbleProperties(workInProgress), workInProgress.flags &= -16777217) : (nextResource = current.memoizedProps, supportsMutation ? nextResource !== newProps && markUpdate(workInProgress) : updateHostComponent(current, workInProgress, type, newProps), bubbleProperties(workInProgress), preloadInstanceAndSuspendIfNeeded(workInProgress, type, nextResource, newProps, renderLanes)), null;
3588
+ var { type, memoizedState: nextResource } = workInProgress2;
3589
+ return current === null ? (markUpdate(workInProgress2), nextResource !== null ? (bubbleProperties(workInProgress2), preloadResourceAndSuspendIfNeeded(workInProgress2, nextResource)) : (bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(workInProgress2, type, null, newProps, renderLanes2))) : nextResource ? nextResource !== current.memoizedState ? (markUpdate(workInProgress2), bubbleProperties(workInProgress2), preloadResourceAndSuspendIfNeeded(workInProgress2, nextResource)) : (bubbleProperties(workInProgress2), workInProgress2.flags &= -16777217) : (nextResource = current.memoizedProps, supportsMutation ? nextResource !== newProps && markUpdate(workInProgress2) : updateHostComponent(current, workInProgress2, type, newProps), bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(workInProgress2, type, nextResource, newProps, renderLanes2)), null;
3427
3590
  }
3428
3591
  case 27:
3429
3592
  if (supportsSingletons) {
3430
- if (popHostContext(workInProgress), renderLanes = rootInstanceStackCursor.current, type = workInProgress.type, current !== null && workInProgress.stateNode != null)
3431
- supportsMutation ? current.memoizedProps !== newProps && markUpdate(workInProgress) : updateHostComponent(current, workInProgress, type, newProps);
3593
+ if (popHostContext(workInProgress2), renderLanes2 = rootInstanceStackCursor.current, type = workInProgress2.type, current !== null && workInProgress2.stateNode != null)
3594
+ supportsMutation ? current.memoizedProps !== newProps && markUpdate(workInProgress2) : updateHostComponent(current, workInProgress2, type, newProps);
3432
3595
  else {
3433
3596
  if (!newProps) {
3434
- if (workInProgress.stateNode === null)
3597
+ if (workInProgress2.stateNode === null)
3435
3598
  throw Error(formatProdErrorMessage(166));
3436
- return bubbleProperties(workInProgress), null;
3599
+ return bubbleProperties(workInProgress2), null;
3437
3600
  }
3438
- current = contextStackCursor.current, popHydrationState(workInProgress) ? prepareToHydrateHostInstance(workInProgress, current) : (current = resolveSingletonInstance(type, newProps, renderLanes, current, !0), workInProgress.stateNode = current, markUpdate(workInProgress));
3601
+ current = contextStackCursor.current, popHydrationState(workInProgress2) ? prepareToHydrateHostInstance(workInProgress2, current) : (current = resolveSingletonInstance(type, newProps, renderLanes2, current, !0), workInProgress2.stateNode = current, markUpdate(workInProgress2));
3439
3602
  }
3440
- return bubbleProperties(workInProgress), null;
3603
+ return bubbleProperties(workInProgress2), null;
3441
3604
  }
3442
3605
  case 5:
3443
- if (popHostContext(workInProgress), type = workInProgress.type, current !== null && workInProgress.stateNode != null)
3444
- updateHostComponent(current, workInProgress, type, newProps);
3606
+ if (popHostContext(workInProgress2), type = workInProgress2.type, current !== null && workInProgress2.stateNode != null)
3607
+ updateHostComponent(current, workInProgress2, type, newProps);
3445
3608
  else {
3446
3609
  if (!newProps) {
3447
- if (workInProgress.stateNode === null)
3610
+ if (workInProgress2.stateNode === null)
3448
3611
  throw Error(formatProdErrorMessage(166));
3449
- return bubbleProperties(workInProgress), null;
3612
+ return bubbleProperties(workInProgress2), null;
3450
3613
  }
3451
- if (nextResource = contextStackCursor.current, popHydrationState(workInProgress))
3452
- prepareToHydrateHostInstance(workInProgress, nextResource), finalizeHydratedChildren(workInProgress.stateNode, type, newProps, nextResource) && (workInProgress.flags |= 64);
3614
+ if (nextResource = contextStackCursor.current, popHydrationState(workInProgress2))
3615
+ prepareToHydrateHostInstance(workInProgress2, nextResource), finalizeHydratedChildren(workInProgress2.stateNode, type, newProps, nextResource) && (workInProgress2.flags |= 64);
3453
3616
  else {
3454
- var instance$101 = createInstance(type, newProps, rootInstanceStackCursor.current, nextResource, workInProgress);
3455
- markCloned(workInProgress), appendAllChildren(instance$101, workInProgress, !1, !1), workInProgress.stateNode = instance$101, finalizeInitialChildren(instance$101, type, newProps, nextResource) && markUpdate(workInProgress);
3617
+ var instance$101 = createInstance(type, newProps, rootInstanceStackCursor.current, nextResource, workInProgress2);
3618
+ markCloned(workInProgress2), appendAllChildren(instance$101, workInProgress2, !1, !1), workInProgress2.stateNode = instance$101, finalizeInitialChildren(instance$101, type, newProps, nextResource) && markUpdate(workInProgress2);
3456
3619
  }
3457
3620
  }
3458
- return bubbleProperties(workInProgress), preloadInstanceAndSuspendIfNeeded(workInProgress, workInProgress.type, current === null ? null : current.memoizedProps, workInProgress.pendingProps, renderLanes), null;
3621
+ return bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(workInProgress2, workInProgress2.type, current === null ? null : current.memoizedProps, workInProgress2.pendingProps, renderLanes2), null;
3459
3622
  case 6:
3460
- if (current && workInProgress.stateNode != null)
3461
- renderLanes = current.memoizedProps, supportsMutation ? renderLanes !== newProps && markUpdate(workInProgress) : supportsPersistence && (renderLanes !== newProps ? (current = rootInstanceStackCursor.current, renderLanes = contextStackCursor.current, markCloned(workInProgress), workInProgress.stateNode = createTextInstance(newProps, current, renderLanes, workInProgress)) : workInProgress.stateNode = current.stateNode);
3623
+ if (current && workInProgress2.stateNode != null)
3624
+ renderLanes2 = current.memoizedProps, supportsMutation ? renderLanes2 !== newProps && markUpdate(workInProgress2) : supportsPersistence && (renderLanes2 !== newProps ? (current = rootInstanceStackCursor.current, renderLanes2 = contextStackCursor.current, markCloned(workInProgress2), workInProgress2.stateNode = createTextInstance(newProps, current, renderLanes2, workInProgress2)) : workInProgress2.stateNode = current.stateNode);
3462
3625
  else {
3463
- if (typeof newProps !== "string" && workInProgress.stateNode === null)
3626
+ if (typeof newProps !== "string" && workInProgress2.stateNode === null)
3464
3627
  throw Error(formatProdErrorMessage(166));
3465
- if (current = rootInstanceStackCursor.current, renderLanes = contextStackCursor.current, popHydrationState(workInProgress)) {
3628
+ if (current = rootInstanceStackCursor.current, renderLanes2 = contextStackCursor.current, popHydrationState(workInProgress2)) {
3466
3629
  if (!supportsHydration)
3467
3630
  throw Error(formatProdErrorMessage(176));
3468
- if (current = workInProgress.stateNode, renderLanes = workInProgress.memoizedProps, newProps = null, type = hydrationParentFiber, type !== null)
3631
+ if (current = workInProgress2.stateNode, renderLanes2 = workInProgress2.memoizedProps, newProps = null, type = hydrationParentFiber, type !== null)
3469
3632
  switch (type.tag) {
3470
3633
  case 27:
3471
3634
  case 5:
3472
3635
  newProps = type.memoizedProps;
3473
3636
  }
3474
- hydrateTextInstance(current, renderLanes, workInProgress, newProps) || throwOnHydrationMismatch(workInProgress, !0);
3637
+ hydrateTextInstance(current, renderLanes2, workInProgress2, newProps) || throwOnHydrationMismatch(workInProgress2, !0);
3475
3638
  } else
3476
- markCloned(workInProgress), workInProgress.stateNode = createTextInstance(newProps, current, renderLanes, workInProgress);
3639
+ markCloned(workInProgress2), workInProgress2.stateNode = createTextInstance(newProps, current, renderLanes2, workInProgress2);
3477
3640
  }
3478
- return bubbleProperties(workInProgress), null;
3641
+ return bubbleProperties(workInProgress2), null;
3479
3642
  case 31:
3480
- if (renderLanes = workInProgress.memoizedState, current === null || current.memoizedState !== null) {
3481
- if (newProps = popHydrationState(workInProgress), renderLanes !== null) {
3643
+ if (renderLanes2 = workInProgress2.memoizedState, current === null || current.memoizedState !== null) {
3644
+ if (newProps = popHydrationState(workInProgress2), renderLanes2 !== null) {
3482
3645
  if (current === null) {
3483
3646
  if (!newProps)
3484
3647
  throw Error(formatProdErrorMessage(318));
3485
3648
  if (!supportsHydration)
3486
3649
  throw Error(formatProdErrorMessage(556));
3487
- if (current = workInProgress.memoizedState, current = current !== null ? current.dehydrated : null, !current)
3650
+ if (current = workInProgress2.memoizedState, current = current !== null ? current.dehydrated : null, !current)
3488
3651
  throw Error(formatProdErrorMessage(557));
3489
- hydrateActivityInstance(current, workInProgress);
3652
+ hydrateActivityInstance(current, workInProgress2);
3490
3653
  } else
3491
- resetHydrationState(), (workInProgress.flags & 128) === 0 && (workInProgress.memoizedState = null), workInProgress.flags |= 4;
3492
- bubbleProperties(workInProgress), current = !1;
3654
+ resetHydrationState(), (workInProgress2.flags & 128) === 0 && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4;
3655
+ bubbleProperties(workInProgress2), current = !1;
3493
3656
  } else
3494
- renderLanes = upgradeHydrationErrorsToRecoverable(), current !== null && current.memoizedState !== null && (current.memoizedState.hydrationErrors = renderLanes), current = !0;
3657
+ renderLanes2 = upgradeHydrationErrorsToRecoverable(), current !== null && current.memoizedState !== null && (current.memoizedState.hydrationErrors = renderLanes2), current = !0;
3495
3658
  if (!current) {
3496
- if (workInProgress.flags & 256)
3497
- return popSuspenseHandler(workInProgress), workInProgress;
3498
- return popSuspenseHandler(workInProgress), null;
3659
+ if (workInProgress2.flags & 256)
3660
+ return popSuspenseHandler(workInProgress2), workInProgress2;
3661
+ return popSuspenseHandler(workInProgress2), null;
3499
3662
  }
3500
- if ((workInProgress.flags & 128) !== 0)
3663
+ if ((workInProgress2.flags & 128) !== 0)
3501
3664
  throw Error(formatProdErrorMessage(558));
3502
3665
  }
3503
- return bubbleProperties(workInProgress), null;
3666
+ return bubbleProperties(workInProgress2), null;
3504
3667
  case 13:
3505
- if (newProps = workInProgress.memoizedState, current === null || current.memoizedState !== null && current.memoizedState.dehydrated !== null) {
3506
- if (type = popHydrationState(workInProgress), newProps !== null && newProps.dehydrated !== null) {
3668
+ if (newProps = workInProgress2.memoizedState, current === null || current.memoizedState !== null && current.memoizedState.dehydrated !== null) {
3669
+ if (type = popHydrationState(workInProgress2), newProps !== null && newProps.dehydrated !== null) {
3507
3670
  if (current === null) {
3508
3671
  if (!type)
3509
3672
  throw Error(formatProdErrorMessage(318));
3510
3673
  if (!supportsHydration)
3511
3674
  throw Error(formatProdErrorMessage(344));
3512
- if (type = workInProgress.memoizedState, type = type !== null ? type.dehydrated : null, !type)
3675
+ if (type = workInProgress2.memoizedState, type = type !== null ? type.dehydrated : null, !type)
3513
3676
  throw Error(formatProdErrorMessage(317));
3514
- hydrateSuspenseInstance(type, workInProgress);
3677
+ hydrateSuspenseInstance(type, workInProgress2);
3515
3678
  } else
3516
- resetHydrationState(), (workInProgress.flags & 128) === 0 && (workInProgress.memoizedState = null), workInProgress.flags |= 4;
3517
- bubbleProperties(workInProgress), type = !1;
3679
+ resetHydrationState(), (workInProgress2.flags & 128) === 0 && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4;
3680
+ bubbleProperties(workInProgress2), type = !1;
3518
3681
  } else
3519
3682
  type = upgradeHydrationErrorsToRecoverable(), current !== null && current.memoizedState !== null && (current.memoizedState.hydrationErrors = type), type = !0;
3520
3683
  if (!type) {
3521
- if (workInProgress.flags & 256)
3522
- return popSuspenseHandler(workInProgress), workInProgress;
3523
- return popSuspenseHandler(workInProgress), null;
3684
+ if (workInProgress2.flags & 256)
3685
+ return popSuspenseHandler(workInProgress2), workInProgress2;
3686
+ return popSuspenseHandler(workInProgress2), null;
3524
3687
  }
3525
3688
  }
3526
- if (popSuspenseHandler(workInProgress), (workInProgress.flags & 128) !== 0)
3527
- return workInProgress.lanes = renderLanes, workInProgress;
3528
- return renderLanes = newProps !== null, current = current !== null && current.memoizedState !== null, renderLanes && (newProps = workInProgress.child, type = null, newProps.alternate !== null && newProps.alternate.memoizedState !== null && newProps.alternate.memoizedState.cachePool !== null && (type = newProps.alternate.memoizedState.cachePool.pool), nextResource = null, newProps.memoizedState !== null && newProps.memoizedState.cachePool !== null && (nextResource = newProps.memoizedState.cachePool.pool), nextResource !== type && (newProps.flags |= 2048)), renderLanes !== current && renderLanes && (workInProgress.child.flags |= 8192), scheduleRetryEffect(workInProgress, workInProgress.updateQueue), bubbleProperties(workInProgress), null;
3689
+ if (popSuspenseHandler(workInProgress2), (workInProgress2.flags & 128) !== 0)
3690
+ return workInProgress2.lanes = renderLanes2, workInProgress2;
3691
+ return renderLanes2 = newProps !== null, current = current !== null && current.memoizedState !== null, renderLanes2 && (newProps = workInProgress2.child, type = null, newProps.alternate !== null && newProps.alternate.memoizedState !== null && newProps.alternate.memoizedState.cachePool !== null && (type = newProps.alternate.memoizedState.cachePool.pool), nextResource = null, newProps.memoizedState !== null && newProps.memoizedState.cachePool !== null && (nextResource = newProps.memoizedState.cachePool.pool), nextResource !== type && (newProps.flags |= 2048)), renderLanes2 !== current && renderLanes2 && (workInProgress2.child.flags |= 8192), scheduleRetryEffect(workInProgress2, workInProgress2.updateQueue), bubbleProperties(workInProgress2), null;
3529
3692
  case 4:
3530
- return popHostContainer(), updateHostContainer(current, workInProgress), current === null && preparePortalMount(workInProgress.stateNode.containerInfo), bubbleProperties(workInProgress), null;
3693
+ return popHostContainer(), updateHostContainer(current, workInProgress2), current === null && preparePortalMount(workInProgress2.stateNode.containerInfo), bubbleProperties(workInProgress2), null;
3531
3694
  case 10:
3532
- return popProvider(workInProgress.type), bubbleProperties(workInProgress), null;
3695
+ return popProvider(workInProgress2.type), bubbleProperties(workInProgress2), null;
3533
3696
  case 19:
3534
- if (pop(suspenseStackCursor), newProps = workInProgress.memoizedState, newProps === null)
3535
- return bubbleProperties(workInProgress), null;
3536
- if (type = (workInProgress.flags & 128) !== 0, nextResource = newProps.rendering, nextResource === null)
3697
+ if (pop2(suspenseStackCursor), newProps = workInProgress2.memoizedState, newProps === null)
3698
+ return bubbleProperties(workInProgress2), null;
3699
+ if (type = (workInProgress2.flags & 128) !== 0, nextResource = newProps.rendering, nextResource === null)
3537
3700
  if (type)
3538
3701
  cutOffTailIfNeeded(newProps, !1);
3539
3702
  else {
3540
3703
  if (workInProgressRootExitStatus !== 0 || current !== null && (current.flags & 128) !== 0)
3541
- for (current = workInProgress.child;current !== null; ) {
3704
+ for (current = workInProgress2.child;current !== null; ) {
3542
3705
  if (nextResource = findFirstSuspended(current), nextResource !== null) {
3543
- workInProgress.flags |= 128, cutOffTailIfNeeded(newProps, !1), current = nextResource.updateQueue, workInProgress.updateQueue = current, scheduleRetryEffect(workInProgress, current), workInProgress.subtreeFlags = 0, current = renderLanes;
3544
- for (renderLanes = workInProgress.child;renderLanes !== null; )
3545
- resetWorkInProgress(renderLanes, current), renderLanes = renderLanes.sibling;
3546
- return push(suspenseStackCursor, suspenseStackCursor.current & 1 | 2), isHydrating && pushTreeFork(workInProgress, newProps.treeForkCount), workInProgress.child;
3706
+ workInProgress2.flags |= 128, cutOffTailIfNeeded(newProps, !1), current = nextResource.updateQueue, workInProgress2.updateQueue = current, scheduleRetryEffect(workInProgress2, current), workInProgress2.subtreeFlags = 0, current = renderLanes2;
3707
+ for (renderLanes2 = workInProgress2.child;renderLanes2 !== null; )
3708
+ resetWorkInProgress(renderLanes2, current), renderLanes2 = renderLanes2.sibling;
3709
+ return push2(suspenseStackCursor, suspenseStackCursor.current & 1 | 2), isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount), workInProgress2.child;
3547
3710
  }
3548
3711
  current = current.sibling;
3549
3712
  }
3550
- newProps.tail !== null && now() > workInProgressRootRenderTargetTime && (workInProgress.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress.lanes = 4194304);
3713
+ newProps.tail !== null && now() > workInProgressRootRenderTargetTime && (workInProgress2.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress2.lanes = 4194304);
3551
3714
  }
3552
3715
  else {
3553
3716
  if (!type)
3554
3717
  if (current = findFirstSuspended(nextResource), current !== null) {
3555
- if (workInProgress.flags |= 128, type = !0, current = current.updateQueue, workInProgress.updateQueue = current, scheduleRetryEffect(workInProgress, current), cutOffTailIfNeeded(newProps, !0), newProps.tail === null && newProps.tailMode === "hidden" && !nextResource.alternate && !isHydrating)
3556
- return bubbleProperties(workInProgress), null;
3718
+ if (workInProgress2.flags |= 128, type = !0, current = current.updateQueue, workInProgress2.updateQueue = current, scheduleRetryEffect(workInProgress2, current), cutOffTailIfNeeded(newProps, !0), newProps.tail === null && newProps.tailMode === "hidden" && !nextResource.alternate && !isHydrating)
3719
+ return bubbleProperties(workInProgress2), null;
3557
3720
  } else
3558
- 2 * now() - newProps.renderingStartTime > workInProgressRootRenderTargetTime && renderLanes !== 536870912 && (workInProgress.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress.lanes = 4194304);
3559
- newProps.isBackwards ? (nextResource.sibling = workInProgress.child, workInProgress.child = nextResource) : (current = newProps.last, current !== null ? current.sibling = nextResource : workInProgress.child = nextResource, newProps.last = nextResource);
3721
+ 2 * now() - newProps.renderingStartTime > workInProgressRootRenderTargetTime && renderLanes2 !== 536870912 && (workInProgress2.flags |= 128, type = !0, cutOffTailIfNeeded(newProps, !1), workInProgress2.lanes = 4194304);
3722
+ newProps.isBackwards ? (nextResource.sibling = workInProgress2.child, workInProgress2.child = nextResource) : (current = newProps.last, current !== null ? current.sibling = nextResource : workInProgress2.child = nextResource, newProps.last = nextResource);
3560
3723
  }
3561
3724
  if (newProps.tail !== null)
3562
- return current = newProps.tail, newProps.rendering = current, newProps.tail = current.sibling, newProps.renderingStartTime = now(), current.sibling = null, renderLanes = suspenseStackCursor.current, push(suspenseStackCursor, type ? renderLanes & 1 | 2 : renderLanes & 1), isHydrating && pushTreeFork(workInProgress, newProps.treeForkCount), current;
3563
- return bubbleProperties(workInProgress), null;
3725
+ return current = newProps.tail, newProps.rendering = current, newProps.tail = current.sibling, newProps.renderingStartTime = now(), current.sibling = null, renderLanes2 = suspenseStackCursor.current, push2(suspenseStackCursor, type ? renderLanes2 & 1 | 2 : renderLanes2 & 1), isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount), current;
3726
+ return bubbleProperties(workInProgress2), null;
3564
3727
  case 22:
3565
3728
  case 23:
3566
- return popSuspenseHandler(workInProgress), popHiddenContext(), newProps = workInProgress.memoizedState !== null, current !== null ? current.memoizedState !== null !== newProps && (workInProgress.flags |= 8192) : newProps && (workInProgress.flags |= 8192), newProps ? (renderLanes & 536870912) !== 0 && (workInProgress.flags & 128) === 0 && (bubbleProperties(workInProgress), workInProgress.subtreeFlags & 6 && (workInProgress.flags |= 8192)) : bubbleProperties(workInProgress), renderLanes = workInProgress.updateQueue, renderLanes !== null && scheduleRetryEffect(workInProgress, renderLanes.retryQueue), renderLanes = null, current !== null && current.memoizedState !== null && current.memoizedState.cachePool !== null && (renderLanes = current.memoizedState.cachePool.pool), newProps = null, workInProgress.memoizedState !== null && workInProgress.memoizedState.cachePool !== null && (newProps = workInProgress.memoizedState.cachePool.pool), newProps !== renderLanes && (workInProgress.flags |= 2048), current !== null && pop(resumedCache), null;
3729
+ return popSuspenseHandler(workInProgress2), popHiddenContext(), newProps = workInProgress2.memoizedState !== null, current !== null ? current.memoizedState !== null !== newProps && (workInProgress2.flags |= 8192) : newProps && (workInProgress2.flags |= 8192), newProps ? (renderLanes2 & 536870912) !== 0 && (workInProgress2.flags & 128) === 0 && (bubbleProperties(workInProgress2), workInProgress2.subtreeFlags & 6 && (workInProgress2.flags |= 8192)) : bubbleProperties(workInProgress2), renderLanes2 = workInProgress2.updateQueue, renderLanes2 !== null && scheduleRetryEffect(workInProgress2, renderLanes2.retryQueue), renderLanes2 = null, current !== null && current.memoizedState !== null && current.memoizedState.cachePool !== null && (renderLanes2 = current.memoizedState.cachePool.pool), newProps = null, workInProgress2.memoizedState !== null && workInProgress2.memoizedState.cachePool !== null && (newProps = workInProgress2.memoizedState.cachePool.pool), newProps !== renderLanes2 && (workInProgress2.flags |= 2048), current !== null && pop2(resumedCache), null;
3567
3730
  case 24:
3568
- return renderLanes = null, current !== null && (renderLanes = current.memoizedState.cache), workInProgress.memoizedState.cache !== renderLanes && (workInProgress.flags |= 2048), popProvider(CacheContext), bubbleProperties(workInProgress), null;
3731
+ return renderLanes2 = null, current !== null && (renderLanes2 = current.memoizedState.cache), workInProgress2.memoizedState.cache !== renderLanes2 && (workInProgress2.flags |= 2048), popProvider(CacheContext), bubbleProperties(workInProgress2), null;
3569
3732
  case 25:
3570
3733
  return null;
3571
3734
  case 30:
3572
3735
  return null;
3573
3736
  }
3574
- throw Error(formatProdErrorMessage(156, workInProgress.tag));
3737
+ throw Error(formatProdErrorMessage(156, workInProgress2.tag));
3575
3738
  }
3576
- function unwindWork(current, workInProgress) {
3577
- switch (popTreeContext(workInProgress), workInProgress.tag) {
3739
+ function unwindWork(current, workInProgress2) {
3740
+ switch (popTreeContext(workInProgress2), workInProgress2.tag) {
3578
3741
  case 1:
3579
- return current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null;
3742
+ return current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
3580
3743
  case 3:
3581
- return popProvider(CacheContext), popHostContainer(), current = workInProgress.flags, (current & 65536) !== 0 && (current & 128) === 0 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null;
3744
+ return popProvider(CacheContext), popHostContainer(), current = workInProgress2.flags, (current & 65536) !== 0 && (current & 128) === 0 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
3582
3745
  case 26:
3583
3746
  case 27:
3584
3747
  case 5:
3585
- return popHostContext(workInProgress), null;
3748
+ return popHostContext(workInProgress2), null;
3586
3749
  case 31:
3587
- if (workInProgress.memoizedState !== null) {
3588
- if (popSuspenseHandler(workInProgress), workInProgress.alternate === null)
3750
+ if (workInProgress2.memoizedState !== null) {
3751
+ if (popSuspenseHandler(workInProgress2), workInProgress2.alternate === null)
3589
3752
  throw Error(formatProdErrorMessage(340));
3590
3753
  resetHydrationState();
3591
3754
  }
3592
- return current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null;
3755
+ return current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
3593
3756
  case 13:
3594
- if (popSuspenseHandler(workInProgress), current = workInProgress.memoizedState, current !== null && current.dehydrated !== null) {
3595
- if (workInProgress.alternate === null)
3757
+ if (popSuspenseHandler(workInProgress2), current = workInProgress2.memoizedState, current !== null && current.dehydrated !== null) {
3758
+ if (workInProgress2.alternate === null)
3596
3759
  throw Error(formatProdErrorMessage(340));
3597
3760
  resetHydrationState();
3598
3761
  }
3599
- return current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null;
3762
+ return current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
3600
3763
  case 19:
3601
- return pop(suspenseStackCursor), null;
3764
+ return pop2(suspenseStackCursor), null;
3602
3765
  case 4:
3603
3766
  return popHostContainer(), null;
3604
3767
  case 10:
3605
- return popProvider(workInProgress.type), null;
3768
+ return popProvider(workInProgress2.type), null;
3606
3769
  case 22:
3607
3770
  case 23:
3608
- return popSuspenseHandler(workInProgress), popHiddenContext(), current !== null && pop(resumedCache), current = workInProgress.flags, current & 65536 ? (workInProgress.flags = current & -65537 | 128, workInProgress) : null;
3771
+ return popSuspenseHandler(workInProgress2), popHiddenContext(), current !== null && pop2(resumedCache), current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
3609
3772
  case 24:
3610
3773
  return popProvider(CacheContext), null;
3611
3774
  case 25:
@@ -3634,14 +3797,14 @@ Error generating stack: ` + x.message + `
3634
3797
  popSuspenseHandler(interruptedWork);
3635
3798
  break;
3636
3799
  case 19:
3637
- pop(suspenseStackCursor);
3800
+ pop2(suspenseStackCursor);
3638
3801
  break;
3639
3802
  case 10:
3640
3803
  popProvider(interruptedWork.type);
3641
3804
  break;
3642
3805
  case 22:
3643
3806
  case 23:
3644
- popSuspenseHandler(interruptedWork), popHiddenContext(), current !== null && pop(resumedCache);
3807
+ popSuspenseHandler(interruptedWork), popHiddenContext(), current !== null && pop2(resumedCache);
3645
3808
  break;
3646
3809
  case 24:
3647
3810
  popProvider(CacheContext);
@@ -3656,8 +3819,8 @@ Error generating stack: ` + x.message + `
3656
3819
  do {
3657
3820
  if ((updateQueue.tag & flags) === flags) {
3658
3821
  lastEffect = void 0;
3659
- var create = updateQueue.create, inst = updateQueue.inst;
3660
- lastEffect = create(), inst.destroy = lastEffect;
3822
+ var { create: create2, inst } = updateQueue;
3823
+ lastEffect = create2(), inst.destroy = lastEffect;
3661
3824
  }
3662
3825
  updateQueue = updateQueue.next;
3663
3826
  } while (updateQueue !== firstEffect);
@@ -3734,7 +3897,7 @@ Error generating stack: ` + x.message + `
3734
3897
  }
3735
3898
  }
3736
3899
  function safelyDetachRef(current, nearestMountedAncestor) {
3737
- var ref = current.ref, refCleanup = current.refCleanup;
3900
+ var { ref, refCleanup } = current;
3738
3901
  if (ref !== null)
3739
3902
  if (typeof refCleanup === "function")
3740
3903
  try {
@@ -4116,7 +4279,7 @@ Error generating stack: ` + x.message + `
4116
4279
  commitMutationEffectsOnFiber(parentFiber, root$jscomp$0), parentFiber = parentFiber.sibling;
4117
4280
  }
4118
4281
  function commitMutationEffectsOnFiber(finishedWork, root) {
4119
- var current = finishedWork.alternate, flags = finishedWork.flags;
4282
+ var { alternate: current, flags } = finishedWork;
4120
4283
  switch (finishedWork.tag) {
4121
4284
  case 0:
4122
4285
  case 11:
@@ -4202,7 +4365,7 @@ Error generating stack: ` + x.message + `
4202
4365
  case 22:
4203
4366
  hoistableRoot = finishedWork.memoizedState !== null;
4204
4367
  var wasHidden = current !== null && current.memoizedState !== null, prevOffscreenSubtreeIsHidden = offscreenSubtreeIsHidden, prevOffscreenSubtreeWasHidden = offscreenSubtreeWasHidden;
4205
- if (offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot, offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden, recursivelyTraverseMutationEffects(root, finishedWork), offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden, offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden, commitReconciliationEffects(finishedWork), flags & 8192 && (root = finishedWork.stateNode, root._visibility = hoistableRoot ? root._visibility & -2 : root._visibility | 1, hoistableRoot && (current === null || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), supportsMutation)) {
4368
+ if (offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden || hoistableRoot, offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden || wasHidden, recursivelyTraverseMutationEffects(root, finishedWork), offscreenSubtreeWasHidden = prevOffscreenSubtreeWasHidden, offscreenSubtreeIsHidden = prevOffscreenSubtreeIsHidden, commitReconciliationEffects(finishedWork), flags & 8192 && (root = finishedWork.stateNode, root._visibility = hoistableRoot ? root._visibility & -2 : root._visibility | 1, hoistableRoot && (current === null || wasHidden || offscreenSubtreeIsHidden || offscreenSubtreeWasHidden || recursivelyTraverseDisappearLayoutEffects(finishedWork)), supportsMutation))
4206
4369
  a:
4207
4370
  if (current = null, supportsMutation)
4208
4371
  for (root = finishedWork;; ) {
@@ -4248,7 +4411,6 @@ Error generating stack: ` + x.message + `
4248
4411
  }
4249
4412
  current === root && (current = null), root.sibling.return = root.return, root = root.sibling;
4250
4413
  }
4251
- }
4252
4414
  flags & 4 && (flags = finishedWork.updateQueue, flags !== null && (current = flags.retryQueue, current !== null && (flags.retryQueue = null, attachSuspenseRetryListeners(finishedWork, current))));
4253
4415
  break;
4254
4416
  case 19:
@@ -4516,7 +4678,7 @@ Error generating stack: ` + x.message + `
4516
4678
  if (fiber.memoizedState !== null)
4517
4679
  suspendResource(suspendedState, currentHoistableRoot, fiber.memoizedState, fiber.memoizedProps);
4518
4680
  else {
4519
- var instance = fiber.stateNode, type = fiber.type;
4681
+ var { stateNode: instance, type } = fiber;
4520
4682
  fiber = fiber.memoizedProps, ((committedLanes & 335544128) === committedLanes || maySuspendCommitInSyncRender(type, fiber)) && suspendInstance(suspendedState, instance, type, fiber);
4521
4683
  }
4522
4684
  break;
@@ -4629,7 +4791,7 @@ Error generating stack: ` + x.message + `
4629
4791
  a:
4630
4792
  for (fiber = deletedSubtreeRoot;nextEffect !== null; ) {
4631
4793
  cache = nextEffect;
4632
- var sibling = cache.sibling, returnFiber = cache.return;
4794
+ var { sibling, return: returnFiber } = cache;
4633
4795
  if (detachFiberAfterEffects(cache), cache === fiber) {
4634
4796
  nextEffect = null;
4635
4797
  break a;
@@ -4855,10 +5017,10 @@ Error generating stack: ` + x.message + `
4855
5017
  var tag = node.tag;
4856
5018
  if ((tag === 0 || tag === 11 || tag === 15) && node.flags & 16384 && (tag = node.updateQueue, tag !== null && (tag = tag.stores, tag !== null)))
4857
5019
  for (var i = 0;i < tag.length; i++) {
4858
- var check = tag[i], getSnapshot = check.getSnapshot;
4859
- check = check.value;
5020
+ var check2 = tag[i], getSnapshot = check2.getSnapshot;
5021
+ check2 = check2.value;
4860
5022
  try {
4861
- if (!objectIs(getSnapshot(), check))
5023
+ if (!objectIs(getSnapshot(), check2))
4862
5024
  return !1;
4863
5025
  } catch (error) {
4864
5026
  return !1;
@@ -5016,7 +5178,7 @@ Error generating stack: ` + x.message + `
5016
5178
  resource = workInProgress.memoizedState;
5017
5179
  case 5:
5018
5180
  case 27:
5019
- var hostFiber = workInProgress, { type, pendingProps: props } = hostFiber;
5181
+ var hostFiber = workInProgress, type = hostFiber.type, props = hostFiber.pendingProps;
5020
5182
  if (resource ? preloadResource(resource) : preloadInstance(hostFiber.stateNode, type, props)) {
5021
5183
  workInProgressSuspendedReason = 0, workInProgressThrownValue = null;
5022
5184
  var sibling = hostFiber.sibling;
@@ -5324,19 +5486,19 @@ Error generating stack: ` + x.message + `
5324
5486
  return Component = Component.prototype, !(!Component || !Component.isReactComponent);
5325
5487
  }
5326
5488
  function createWorkInProgress(current, pendingProps) {
5327
- var workInProgress = current.alternate;
5328
- return workInProgress === null ? (workInProgress = createFiber(current.tag, pendingProps, current.key, current.mode), workInProgress.elementType = current.elementType, workInProgress.type = current.type, workInProgress.stateNode = current.stateNode, workInProgress.alternate = current, current.alternate = workInProgress) : (workInProgress.pendingProps = pendingProps, workInProgress.type = current.type, workInProgress.flags = 0, workInProgress.subtreeFlags = 0, workInProgress.deletions = null), workInProgress.flags = current.flags & 65011712, workInProgress.childLanes = current.childLanes, workInProgress.lanes = current.lanes, workInProgress.child = current.child, workInProgress.memoizedProps = current.memoizedProps, workInProgress.memoizedState = current.memoizedState, workInProgress.updateQueue = current.updateQueue, pendingProps = current.dependencies, workInProgress.dependencies = pendingProps === null ? null : {
5489
+ var workInProgress2 = current.alternate;
5490
+ return workInProgress2 === null ? (workInProgress2 = createFiber(current.tag, pendingProps, current.key, current.mode), workInProgress2.elementType = current.elementType, workInProgress2.type = current.type, workInProgress2.stateNode = current.stateNode, workInProgress2.alternate = current, current.alternate = workInProgress2) : (workInProgress2.pendingProps = pendingProps, workInProgress2.type = current.type, workInProgress2.flags = 0, workInProgress2.subtreeFlags = 0, workInProgress2.deletions = null), workInProgress2.flags = current.flags & 65011712, workInProgress2.childLanes = current.childLanes, workInProgress2.lanes = current.lanes, workInProgress2.child = current.child, workInProgress2.memoizedProps = current.memoizedProps, workInProgress2.memoizedState = current.memoizedState, workInProgress2.updateQueue = current.updateQueue, pendingProps = current.dependencies, workInProgress2.dependencies = pendingProps === null ? null : {
5329
5491
  lanes: pendingProps.lanes,
5330
5492
  firstContext: pendingProps.firstContext
5331
- }, workInProgress.sibling = current.sibling, workInProgress.index = current.index, workInProgress.ref = current.ref, workInProgress.refCleanup = current.refCleanup, workInProgress;
5493
+ }, workInProgress2.sibling = current.sibling, workInProgress2.index = current.index, workInProgress2.ref = current.ref, workInProgress2.refCleanup = current.refCleanup, workInProgress2;
5332
5494
  }
5333
- function resetWorkInProgress(workInProgress, renderLanes) {
5334
- workInProgress.flags &= 65011714;
5335
- var current = workInProgress.alternate;
5336
- return current === null ? (workInProgress.childLanes = 0, workInProgress.lanes = renderLanes, workInProgress.child = null, workInProgress.subtreeFlags = 0, workInProgress.memoizedProps = null, workInProgress.memoizedState = null, workInProgress.updateQueue = null, workInProgress.dependencies = null, workInProgress.stateNode = null) : (workInProgress.childLanes = current.childLanes, workInProgress.lanes = current.lanes, workInProgress.child = current.child, workInProgress.subtreeFlags = 0, workInProgress.deletions = null, workInProgress.memoizedProps = current.memoizedProps, workInProgress.memoizedState = current.memoizedState, workInProgress.updateQueue = current.updateQueue, workInProgress.type = current.type, renderLanes = current.dependencies, workInProgress.dependencies = renderLanes === null ? null : {
5337
- lanes: renderLanes.lanes,
5338
- firstContext: renderLanes.firstContext
5339
- }), workInProgress;
5495
+ function resetWorkInProgress(workInProgress2, renderLanes2) {
5496
+ workInProgress2.flags &= 65011714;
5497
+ var current = workInProgress2.alternate;
5498
+ return current === null ? (workInProgress2.childLanes = 0, workInProgress2.lanes = renderLanes2, workInProgress2.child = null, workInProgress2.subtreeFlags = 0, workInProgress2.memoizedProps = null, workInProgress2.memoizedState = null, workInProgress2.updateQueue = null, workInProgress2.dependencies = null, workInProgress2.stateNode = null) : (workInProgress2.childLanes = current.childLanes, workInProgress2.lanes = current.lanes, workInProgress2.child = current.child, workInProgress2.subtreeFlags = 0, workInProgress2.deletions = null, workInProgress2.memoizedProps = current.memoizedProps, workInProgress2.memoizedState = current.memoizedState, workInProgress2.updateQueue = current.updateQueue, workInProgress2.type = current.type, renderLanes2 = current.dependencies, workInProgress2.dependencies = renderLanes2 === null ? null : {
5499
+ lanes: renderLanes2.lanes,
5500
+ firstContext: renderLanes2.firstContext
5501
+ }), workInProgress2;
5340
5502
  }
5341
5503
  function createFiberFromTypeAndProps(type, key, pendingProps, owner, mode, lanes) {
5342
5504
  var fiberTag = 0;
@@ -5436,7 +5598,7 @@ Error generating stack: ` + x.message + `
5436
5598
  function markRetryLaneIfNotHydrated(fiber, retryLane) {
5437
5599
  markRetryLaneImpl(fiber, retryLane), (fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane);
5438
5600
  }
5439
- var exports2 = {}, assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = $__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, { rendererVersion, rendererPackageName, extraDevToolsConfig, getPublicInstance, getRootHostContext, getChildHostContext, prepareForCommit, resetAfterCommit, createInstance } = $$$config;
5601
+ var exports2 = {}, assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, getPublicInstance = $$$config.getPublicInstance, getRootHostContext = $$$config.getRootHostContext, getChildHostContext = $$$config.getChildHostContext, prepareForCommit = $$$config.prepareForCommit, resetAfterCommit = $$$config.resetAfterCommit, createInstance = $$$config.createInstance;
5440
5602
  $$$config.cloneMutableInstance;
5441
5603
  var { appendInitialChild, finalizeInitialChildren, shouldSetTextContent, createTextInstance } = $$$config;
5442
5604
  $$$config.cloneMutableTextInstance;
@@ -5466,7 +5628,7 @@ Error generating stack: ` + x.message + `
5466
5628
  $$$config.clearActivityBoundaryFromContainer;
5467
5629
  var { clearSuspenseBoundaryFromContainer, hideDehydratedBoundary, unhideDehydratedBoundary, shouldDeleteUnhydratedTailInstances } = $$$config;
5468
5630
  $$$config.diffHydratedPropsForDevWarnings, $$$config.diffHydratedTextForDevWarnings, $$$config.describeHydratableInstanceForDevWarnings;
5469
- var { validateHydratableInstance, validateHydratableTextInstance, supportsResources, isHostHoistableType, getHoistableRoot, getResource, acquireResource, releaseResource, hydrateHoistable, mountHoistable, unmountHoistable, createHoistableInstance, prepareToCommitHoistables, mayResourceSuspendCommit, preloadResource, suspendResource, supportsSingletons, resolveSingletonInstance, acquireSingletonInstance, releaseSingletonInstance, isHostSingletonType, isSingletonScope } = $$$config, valueStack = [], index$jscomp$0 = -1, emptyContextObject = {}, clz32 = Math.clz32 ? Math.clz32 : clz32Fallback, { log: log$1, LN2 } = Math, nextTransitionUpdateLane = 256, nextTransitionDeferredLane = 262144, nextRetryLane = 4194304, scheduleCallback$3 = $unstable_scheduleCallback, cancelCallback$1 = $unstable_cancelCallback, shouldYield = $unstable_shouldYield, requestPaint = $unstable_requestPaint, now = $unstable_now, ImmediatePriority = $unstable_ImmediatePriority, UserBlockingPriority = $unstable_UserBlockingPriority, NormalPriority$1 = $unstable_NormalPriority, IdlePriority = $unstable_IdlePriority, log2 = void 0, unstable_setDisableYieldValue2 = void 0, rendererID = null, injectedHook = null, objectIs = typeof Object.is === "function" ? Object.is : is, reportGlobalError = typeof reportError === "function" ? reportError : function(error) {
5631
+ var { validateHydratableInstance, validateHydratableTextInstance, supportsResources, isHostHoistableType, getHoistableRoot, getResource, acquireResource, releaseResource, hydrateHoistable, mountHoistable, unmountHoistable, createHoistableInstance, prepareToCommitHoistables, mayResourceSuspendCommit, preloadResource, suspendResource, supportsSingletons, resolveSingletonInstance, acquireSingletonInstance, releaseSingletonInstance, isHostSingletonType, isSingletonScope } = $$$config, 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 = $unstable_scheduleCallback, cancelCallback$1 = $unstable_cancelCallback, shouldYield = $unstable_shouldYield, requestPaint = $unstable_requestPaint, now = $unstable_now, ImmediatePriority = $unstable_ImmediatePriority, UserBlockingPriority = $unstable_UserBlockingPriority, NormalPriority$1 = $unstable_NormalPriority, IdlePriority = $unstable_IdlePriority, log2 = void 0, unstable_setDisableYieldValue2 = void 0, rendererID = null, injectedHook = null, objectIs = typeof Object.is === "function" ? Object.is : is, reportGlobalError = typeof reportError === "function" ? reportError : function(error) {
5470
5632
  if (typeof window === "object" && typeof window.ErrorEvent === "function") {
5471
5633
  var event = new window.ErrorEvent("error", {
5472
5634
  bubbles: !0,
@@ -5541,14 +5703,14 @@ Error generating stack: ` + x.message + `
5541
5703
  },
5542
5704
  useContext: readContext,
5543
5705
  useEffect: mountEffect,
5544
- useImperativeHandle: function(ref, create, deps) {
5545
- deps = deps !== null && deps !== void 0 ? deps.concat([ref]) : null, mountEffectImpl(4194308, 4, imperativeHandleEffect.bind(null, create, ref), deps);
5706
+ useImperativeHandle: function(ref, create2, deps) {
5707
+ deps = deps !== null && deps !== void 0 ? deps.concat([ref]) : null, mountEffectImpl(4194308, 4, imperativeHandleEffect.bind(null, create2, ref), deps);
5546
5708
  },
5547
- useLayoutEffect: function(create, deps) {
5548
- return mountEffectImpl(4194308, 4, create, deps);
5709
+ useLayoutEffect: function(create2, deps) {
5710
+ return mountEffectImpl(4194308, 4, create2, deps);
5549
5711
  },
5550
- useInsertionEffect: function(create, deps) {
5551
- mountEffectImpl(4, 2, create, deps);
5712
+ useInsertionEffect: function(create2, deps) {
5713
+ mountEffectImpl(4, 2, create2, deps);
5552
5714
  },
5553
5715
  useMemo: function(nextCreate, deps) {
5554
5716
  var hook = mountWorkInProgressHook();
@@ -5993,10 +6155,17 @@ No matching component was found for:
5993
6155
  });
5994
6156
 
5995
6157
  // stub:./devtools.js
5996
- var init_devtools = () => {};
6158
+ var exports_devtools = {};
6159
+ __export(exports_devtools, {
6160
+ default: () => devtools_default
6161
+ });
6162
+ var devtools_default;
6163
+ var init_devtools = __esm(() => {
6164
+ devtools_default = {};
6165
+ });
5997
6166
 
5998
6167
  // ../../node_modules/.bun/mimic-fn@2.1.0/node_modules/mimic-fn/index.js
5999
- var require_mimic_fn = __commonJS(function(exports, module) {
6168
+ var require_mimic_fn = __commonJS((exports, module) => {
6000
6169
  var mimicFn = (to, from) => {
6001
6170
  for (let prop of Reflect.ownKeys(from))
6002
6171
  Object.defineProperty(to, prop, Object.getOwnPropertyDescriptor(from, prop));
@@ -6007,18 +6176,18 @@ var require_mimic_fn = __commonJS(function(exports, module) {
6007
6176
  });
6008
6177
 
6009
6178
  // ../../node_modules/.bun/onetime@5.1.2/node_modules/onetime/index.js
6010
- var require_onetime = __commonJS(function(exports, module) {
6179
+ var require_onetime = __commonJS((exports, module) => {
6011
6180
  var mimicFn = require_mimic_fn(), calledFunctions = /* @__PURE__ */ new WeakMap, onetime = (function_, options = {}) => {
6012
6181
  if (typeof function_ !== "function")
6013
6182
  throw TypeError("Expected a function");
6014
- let returnValue, callCount = 0, functionName = function_.displayName || function_.name || "<anonymous>", onetime = function(...arguments_) {
6015
- if (calledFunctions.set(onetime, ++callCount), callCount === 1)
6183
+ let returnValue, callCount = 0, functionName = function_.displayName || function_.name || "<anonymous>", onetime2 = function(...arguments_) {
6184
+ if (calledFunctions.set(onetime2, ++callCount), callCount === 1)
6016
6185
  returnValue = function_.apply(this, arguments_), function_ = null;
6017
6186
  else if (options.throw === !0)
6018
6187
  throw Error(`Function \`${functionName}\` can only be called once`);
6019
6188
  return returnValue;
6020
6189
  };
6021
- return mimicFn(onetime, function_), calledFunctions.set(onetime, callCount), onetime;
6190
+ return mimicFn(onetime2, function_), calledFunctions.set(onetime2, callCount), onetime2;
6022
6191
  };
6023
6192
  module.exports = onetime;
6024
6193
  module.exports.default = onetime;
@@ -6030,7 +6199,7 @@ var require_onetime = __commonJS(function(exports, module) {
6030
6199
  });
6031
6200
 
6032
6201
  // ../../node_modules/.bun/escape-string-regexp@2.0.0/node_modules/escape-string-regexp/index.js
6033
- var require_escape_string_regexp = __commonJS(function(exports, module) {
6202
+ var require_escape_string_regexp = __commonJS((exports, module) => {
6034
6203
  var matchOperatorsRegex = /[|\\{}()[\]^$+*?.-]/g;
6035
6204
  module.exports = (string) => {
6036
6205
  if (typeof string !== "string")
@@ -6040,7 +6209,7 @@ var require_escape_string_regexp = __commonJS(function(exports, module) {
6040
6209
  });
6041
6210
 
6042
6211
  // ../../node_modules/.bun/stack-utils@2.0.6/node_modules/stack-utils/index.js
6043
- var require_stack_utils = __commonJS(function(exports, module) {
6212
+ var require_stack_utils = __commonJS((exports, module) => {
6044
6213
  var escapeStringRegexp = require_escape_string_regexp(), cwd = typeof process === "object" && process && typeof process.cwd === "function" ? process.cwd() : ".", natives = [].concat(__require("module").builtinModules, "bootstrap_node", "node").map((n) => new RegExp(`(?:\\((?:node:)?${n}(?:\\.js)?:\\d+:\\d+\\)$|^\\s*at (?:node:)?${n}(?:\\.js)?:\\d+:\\d+$)`));
6045
6214
  natives.push(/\((?:node:)?internal\/[^:]+:\d+:\d+\)$/, /\s*at (?:node:)?internal\/[^:]+:\d+:\d+$/, /\/\.node-spawn-wrap-\w+-\w+\/node:\d+:\d+\)?$/);
6046
6215
 
@@ -6098,7 +6267,7 @@ var require_stack_utils = __commonJS(function(exports, module) {
6098
6267
  if (typeof limit === "function")
6099
6268
  fn = limit, limit = 1 / 0;
6100
6269
  let { prepareStackTrace, stackTraceLimit } = Error;
6101
- if (Error.prepareStackTrace = (obj, site) => {
6270
+ if (Error.prepareStackTrace = (obj2, site) => {
6102
6271
  if (this._wrapCallSite)
6103
6272
  return site.map(this._wrapCallSite);
6104
6273
  return site;
@@ -6183,10 +6352,10 @@ var require_stack_utils = __commonJS(function(exports, module) {
6183
6352
  return res;
6184
6353
  }
6185
6354
  }
6186
- function setFile(result, filename, cwd) {
6355
+ function setFile(result, filename, cwd2) {
6187
6356
  if (filename) {
6188
- if (filename = filename.replace(/\\/g, "/"), filename.startsWith(`${cwd}/`))
6189
- filename = filename.slice(cwd.length + 1);
6357
+ if (filename = filename.replace(/\\/g, "/"), filename.startsWith(`${cwd2}/`))
6358
+ filename = filename.slice(cwd2.length + 1);
6190
6359
  result.file = filename;
6191
6360
  }
6192
6361
  }
@@ -6205,8 +6374,9 @@ import { Stream } from "node:stream";
6205
6374
  import process13 from "node:process";
6206
6375
 
6207
6376
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/ink.js
6208
- init_react_production();
6377
+ var import_react16 = __toESM(require_react_production(), 1);
6209
6378
  import process12 from "node:process";
6379
+
6210
6380
  // ../../node_modules/.bun/es-toolkit@1.53.1/node_modules/es-toolkit/dist/function/debounce.mjs
6211
6381
  function debounce(func, debounceMs, { signal, edges } = {}) {
6212
6382
  let pendingThis = void 0, pendingArgs = null, leading = edges != null && edges.includes("leading"), trailing = edges == null || edges.includes("trailing"), invoke = () => {
@@ -6262,7 +6432,9 @@ function debounce2(func, debounceMs = 0, options = {}) {
6262
6432
  }
6263
6433
  }
6264
6434
  return _debounced.apply(this, args), result;
6265
- }, flush = () => (_debounced.flush(), result);
6435
+ }, flush = () => {
6436
+ return _debounced.flush(), result;
6437
+ };
6266
6438
  return debounced.cancel = _debounced.cancel, debounced.flush = flush, debounced;
6267
6439
  }
6268
6440
 
@@ -6275,7 +6447,48 @@ function throttle(func, throttleMs = 0, options = {}) {
6275
6447
  trailing
6276
6448
  });
6277
6449
  }
6450
+
6278
6451
  // ../../node_modules/.bun/ansi-escapes@7.3.0/node_modules/ansi-escapes/base.js
6452
+ var exports_base = {};
6453
+ __export(exports_base, {
6454
+ synchronizedOutput: () => synchronizedOutput,
6455
+ setCwd: () => setCwd,
6456
+ scrollUp: () => scrollUp,
6457
+ scrollDown: () => scrollDown,
6458
+ link: () => link,
6459
+ image: () => image,
6460
+ iTerm: () => iTerm,
6461
+ exitAlternativeScreen: () => exitAlternativeScreen,
6462
+ eraseUp: () => eraseUp,
6463
+ eraseStartLine: () => eraseStartLine,
6464
+ eraseScreen: () => eraseScreen,
6465
+ eraseLines: () => eraseLines,
6466
+ eraseLine: () => eraseLine,
6467
+ eraseEndLine: () => eraseEndLine,
6468
+ eraseDown: () => eraseDown,
6469
+ enterAlternativeScreen: () => enterAlternativeScreen,
6470
+ endSynchronizedOutput: () => endSynchronizedOutput,
6471
+ cursorUp: () => cursorUp,
6472
+ cursorTo: () => cursorTo,
6473
+ cursorShow: () => cursorShow,
6474
+ cursorSavePosition: () => cursorSavePosition,
6475
+ cursorRestorePosition: () => cursorRestorePosition,
6476
+ cursorPrevLine: () => cursorPrevLine,
6477
+ cursorNextLine: () => cursorNextLine,
6478
+ cursorMove: () => cursorMove,
6479
+ cursorLeft: () => cursorLeft,
6480
+ cursorHide: () => cursorHide,
6481
+ cursorGetPosition: () => cursorGetPosition,
6482
+ cursorForward: () => cursorForward,
6483
+ cursorDown: () => cursorDown,
6484
+ cursorBackward: () => cursorBackward,
6485
+ clearViewport: () => clearViewport,
6486
+ clearTerminal: () => clearTerminal,
6487
+ clearScreen: () => clearScreen,
6488
+ beginSynchronizedOutput: () => beginSynchronizedOutput,
6489
+ beep: () => beep,
6490
+ ConEmu: () => ConEmu
6491
+ });
6279
6492
  import process2 from "node:process";
6280
6493
  import os from "node:os";
6281
6494
 
@@ -6283,27 +6496,39 @@ import os from "node:os";
6283
6496
  var isBrowser = globalThis.window?.document !== void 0, isNode = globalThis.process?.versions?.node !== void 0, isBun = globalThis.process?.versions?.bun !== void 0, isDeno = globalThis.Deno?.version?.deno !== void 0, isElectron = globalThis.process?.versions?.electron !== void 0, isJsDom = globalThis.navigator?.userAgent?.includes("jsdom") === !0, isWebWorker = typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope, isDedicatedWorker = typeof DedicatedWorkerGlobalScope < "u" && globalThis instanceof DedicatedWorkerGlobalScope, isSharedWorker = typeof SharedWorkerGlobalScope < "u" && globalThis instanceof SharedWorkerGlobalScope, isServiceWorker = typeof ServiceWorkerGlobalScope < "u" && globalThis instanceof ServiceWorkerGlobalScope, platform = globalThis.navigator?.userAgentData?.platform, isMacOs = platform === "macOS" || globalThis.navigator?.platform === "MacIntel" || globalThis.navigator?.userAgent?.includes(" Mac ") === !0 || globalThis.process?.platform === "darwin", isWindows = platform === "Windows" || globalThis.navigator?.platform === "Win32" || globalThis.process?.platform === "win32", isLinux = platform === "Linux" || globalThis.navigator?.platform?.startsWith("Linux") === !0 || globalThis.navigator?.userAgent?.includes(" Linux ") === !0 || globalThis.process?.platform === "linux", isIos = platform === "iOS" || globalThis.navigator?.platform === "MacIntel" && globalThis.navigator?.maxTouchPoints > 1 || /iPad|iPhone|iPod/.test(globalThis.navigator?.platform), isAndroid = platform === "Android" || globalThis.navigator?.platform === "Android" || globalThis.navigator?.userAgent?.includes(" Android ") === !0 || globalThis.process?.platform === "android";
6284
6497
 
6285
6498
  // ../../node_modules/.bun/ansi-escapes@7.3.0/node_modules/ansi-escapes/base.js
6286
- var ESC = "\x1B[";
6287
- var SEP = ";", isTerminalApp = !isBrowser && process2.env.TERM_PROGRAM === "Apple_Terminal", isWindows2 = !isBrowser && process2.platform === "win32", isTmux = !isBrowser && (process2.env.TERM?.startsWith("screen") || process2.env.TERM?.startsWith("tmux") || process2.env.TMUX !== void 0), cwdFunction = isBrowser ? () => {
6499
+ var ESC = "\x1B[", OSC = "\x1B]", BEL = "\x07", SEP = ";", isTerminalApp = !isBrowser && process2.env.TERM_PROGRAM === "Apple_Terminal", isWindows2 = !isBrowser && process2.platform === "win32", isTmux = !isBrowser && (process2.env.TERM?.startsWith("screen") || process2.env.TERM?.startsWith("tmux") || process2.env.TMUX !== void 0), cwdFunction = isBrowser ? () => {
6288
6500
  throw Error("`process.cwd()` only works in Node.js, not the browser.");
6289
- } : process2.cwd;
6290
- var cursorTo = (x, y) => {
6501
+ } : process2.cwd, wrapOsc = (sequence) => {
6502
+ if (isTmux)
6503
+ return "\x1BPtmux;" + sequence.replaceAll("\x1B", "\x1B\x1B") + "\x1B\\";
6504
+ return sequence;
6505
+ }, cursorTo = (x, y) => {
6291
6506
  if (typeof x !== "number")
6292
6507
  throw TypeError("The `x` argument is required");
6293
6508
  if (typeof y !== "number")
6294
6509
  return ESC + (x + 1) + "G";
6295
6510
  return ESC + (y + 1) + SEP + (x + 1) + "H";
6296
- };
6297
- var cursorUp = (count = 1) => ESC + count + "A", cursorDown = (count = 1) => ESC + count + "B";
6298
- var cursorLeft = ESC + "G", cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s", cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u", cursorGetPosition = ESC + "6n", cursorNextLine = ESC + "E", cursorPrevLine = ESC + "F", cursorHide = ESC + "?25l", cursorShow = ESC + "?25h", eraseLines = (count) => {
6511
+ }, cursorMove = (x, y) => {
6512
+ if (typeof x !== "number")
6513
+ throw TypeError("The `x` argument is required");
6514
+ let returnValue = "";
6515
+ if (x < 0)
6516
+ returnValue += ESC + -x + "D";
6517
+ else if (x > 0)
6518
+ returnValue += ESC + x + "C";
6519
+ if (y < 0)
6520
+ returnValue += ESC + -y + "A";
6521
+ else if (y > 0)
6522
+ returnValue += ESC + y + "B";
6523
+ return returnValue;
6524
+ }, cursorUp = (count = 1) => ESC + count + "A", cursorDown = (count = 1) => ESC + count + "B", cursorForward = (count = 1) => ESC + count + "C", cursorBackward = (count = 1) => ESC + count + "D", cursorLeft = ESC + "G", cursorSavePosition = isTerminalApp ? "\x1B7" : ESC + "s", cursorRestorePosition = isTerminalApp ? "\x1B8" : ESC + "u", cursorGetPosition = ESC + "6n", cursorNextLine = ESC + "E", cursorPrevLine = ESC + "F", cursorHide = ESC + "?25l", cursorShow = ESC + "?25h", eraseLines = (count) => {
6299
6525
  let clear = "";
6300
6526
  for (let i = 0;i < count; i++)
6301
6527
  clear += eraseLine + (i < count - 1 ? cursorUp() : "");
6302
6528
  if (count)
6303
6529
  clear += cursorLeft;
6304
6530
  return clear;
6305
- }, eraseEndLine = ESC + "K", eraseStartLine = ESC + "1K", eraseLine = ESC + "2K", eraseDown = ESC + "J", eraseUp = ESC + "1J", eraseScreen = ESC + "2J", scrollUp = ESC + "S", scrollDown = ESC + "T";
6306
- var clearViewport = `${eraseScreen}${ESC}H`, isOldWindows = () => {
6531
+ }, eraseEndLine = ESC + "K", eraseStartLine = ESC + "1K", eraseLine = ESC + "2K", eraseDown = ESC + "J", eraseUp = ESC + "1J", eraseScreen = ESC + "2J", scrollUp = ESC + "S", scrollDown = ESC + "T", clearScreen = "\x1Bc", clearViewport = `${eraseScreen}${ESC}H`, isOldWindows = () => {
6307
6532
  if (isBrowser || !isWindows2)
6308
6533
  return !1;
6309
6534
  let parts = os.release().split("."), major = Number(parts[0]), build = Number(parts[2] ?? 0);
@@ -6312,7 +6537,34 @@ var clearViewport = `${eraseScreen}${ESC}H`, isOldWindows = () => {
6312
6537
  if (major === 10 && build < 10586)
6313
6538
  return !0;
6314
6539
  return !1;
6315
- }, clearTerminal = isOldWindows() ? `${eraseScreen}${ESC}0f` : `${eraseScreen}${ESC}3J${ESC}H`, enterAlternativeScreen = ESC + "?1049h", exitAlternativeScreen = ESC + "?1049l", beginSynchronizedOutput = ESC + "?2026h", endSynchronizedOutput = ESC + "?2026l";
6540
+ }, clearTerminal = isOldWindows() ? `${eraseScreen}${ESC}0f` : `${eraseScreen}${ESC}3J${ESC}H`, enterAlternativeScreen = ESC + "?1049h", exitAlternativeScreen = ESC + "?1049l", beginSynchronizedOutput = ESC + "?2026h", endSynchronizedOutput = ESC + "?2026l", synchronizedOutput = (text) => beginSynchronizedOutput + text + endSynchronizedOutput, beep = BEL, link = (text, url) => {
6541
+ let openLink = wrapOsc(`${OSC}8${SEP}${SEP}${url}${BEL}`), closeLink = wrapOsc(`${OSC}8${SEP}${SEP}${BEL}`);
6542
+ return openLink + text + closeLink;
6543
+ }, image = (data, options = {}) => {
6544
+ let returnValue = `${OSC}1337;File=inline=1`;
6545
+ if (options.width)
6546
+ returnValue += `;width=${options.width}`;
6547
+ if (options.height)
6548
+ returnValue += `;height=${options.height}`;
6549
+ if (options.preserveAspectRatio === !1)
6550
+ returnValue += ";preserveAspectRatio=0";
6551
+ let imageBuffer = Buffer.from(data);
6552
+ return wrapOsc(returnValue + `;size=${imageBuffer.byteLength}:` + imageBuffer.toString("base64") + BEL);
6553
+ }, iTerm = {
6554
+ setCwd: (cwd = cwdFunction()) => wrapOsc(`${OSC}50;CurrentDir=${cwd}${BEL}`),
6555
+ annotation(message, options = {}) {
6556
+ let returnValue = `${OSC}1337;`, hasX = options.x !== void 0, hasY = options.y !== void 0;
6557
+ if ((hasX || hasY) && !(hasX && hasY && options.length !== void 0))
6558
+ throw Error("`x`, `y` and `length` must be defined when `x` or `y` is defined");
6559
+ if (message = message.replaceAll("|", ""), returnValue += options.isHidden ? "AddHiddenAnnotation=" : "AddAnnotation=", options.length > 0)
6560
+ returnValue += (hasX ? [message, options.length, options.x, options.y] : [options.length, message]).join("|");
6561
+ else
6562
+ returnValue += message;
6563
+ return wrapOsc(returnValue + BEL);
6564
+ }
6565
+ }, ConEmu = {
6566
+ setCwd: (cwd = cwdFunction()) => wrapOsc(`${OSC}9;9;${cwd}${BEL}`)
6567
+ }, setCwd = (cwd = cwdFunction()) => iTerm.setCwd(cwd) + ConEmu.setCwd(cwd);
6316
6568
  // ../../node_modules/.bun/is-in-ci@2.0.0/node_modules/is-in-ci/index.js
6317
6569
  import { env } from "node:process";
6318
6570
  var check = (key) => (key in env) && env[key] !== "0" && env[key] !== "false", isInCi = check("CI") || check("CONTINUOUS_INTEGRATION"), is_in_ci_default = isInCi;
@@ -6394,10 +6646,10 @@ var $LegacyRoot = 0, $NoEventPriority = 0;
6394
6646
  // ../../node_modules/.bun/yoga-layout@3.2.1/node_modules/yoga-layout/dist/binaries/yoga-wasm-base64-esm.js
6395
6647
  var loadYoga = (() => {
6396
6648
  var _scriptDir = import.meta.url;
6397
- return function(loadYoga) {
6398
- loadYoga = loadYoga || {};
6649
+ return function(loadYoga2) {
6650
+ loadYoga2 = loadYoga2 || {};
6399
6651
  var h;
6400
- h || (h = typeof loadYoga < "u" ? loadYoga : {});
6652
+ h || (h = typeof loadYoga2 < "u" ? loadYoga2 : {});
6401
6653
  var aa, ca;
6402
6654
  h.ready = new Promise(function(a, b) {
6403
6655
  aa = a, ca = b;
@@ -6519,7 +6771,9 @@ var loadYoga = (() => {
6519
6771
  function L(a) {
6520
6772
  throw new K(a);
6521
6773
  }
6522
- var M = (a) => (a || L("Cannot use deleted val. handle = " + a), J[a].value), Ea = (a) => {
6774
+ var M = (a) => {
6775
+ return a || L("Cannot use deleted val. handle = " + a), J[a].value;
6776
+ }, Ea = (a) => {
6523
6777
  switch (a) {
6524
6778
  case void 0:
6525
6779
  return 1;
@@ -7003,7 +7257,7 @@ var loadYoga = (() => {
7003
7257
  V([a], f, (g) => {
7004
7258
  var k = {};
7005
7259
  return e.forEach((m, l) => {
7006
- var n = g[l], { ra: p, sa: r } = m, u = g[l + e.length], { ya: t, Aa: y } = m;
7260
+ var n = g[l], p = m.ra, r = m.sa, u = g[l + e.length], t = m.ya, y = m.Aa;
7007
7261
  k[m.oa] = { read: (B) => n.fromWireType(p(r, B)), write: (B, ba) => {
7008
7262
  var I = [];
7009
7263
  t(y, B, u.toWireType(I, ba)), Wa(I);
@@ -7439,47 +7693,47 @@ var loadYoga = (() => {
7439
7693
  if (h.preInit)
7440
7694
  for (typeof h.preInit == "function" && (h.preInit = [h.preInit]);0 < h.preInit.length; )
7441
7695
  h.preInit.pop()();
7442
- return Mb(), loadYoga.ready;
7696
+ return Mb(), loadYoga2.ready;
7443
7697
  };
7444
7698
  })(), yoga_wasm_base64_esm_default = loadYoga;
7445
7699
 
7446
7700
  // ../../node_modules/.bun/yoga-layout@3.2.1/node_modules/yoga-layout/dist/src/generated/YGEnums.js
7447
- var Align = /* @__PURE__ */ function(Align) {
7448
- return Align[Align.Auto = 0] = "Auto", Align[Align.FlexStart = 1] = "FlexStart", Align[Align.Center = 2] = "Center", Align[Align.FlexEnd = 3] = "FlexEnd", Align[Align.Stretch = 4] = "Stretch", Align[Align.Baseline = 5] = "Baseline", Align[Align.SpaceBetween = 6] = "SpaceBetween", Align[Align.SpaceAround = 7] = "SpaceAround", Align[Align.SpaceEvenly = 8] = "SpaceEvenly", Align;
7449
- }({}), BoxSizing = /* @__PURE__ */ function(BoxSizing) {
7450
- return BoxSizing[BoxSizing.BorderBox = 0] = "BorderBox", BoxSizing[BoxSizing.ContentBox = 1] = "ContentBox", BoxSizing;
7451
- }({}), Dimension = /* @__PURE__ */ function(Dimension) {
7452
- return Dimension[Dimension.Width = 0] = "Width", Dimension[Dimension.Height = 1] = "Height", Dimension;
7453
- }({}), Direction = /* @__PURE__ */ function(Direction) {
7454
- return Direction[Direction.Inherit = 0] = "Inherit", Direction[Direction.LTR = 1] = "LTR", Direction[Direction.RTL = 2] = "RTL", Direction;
7455
- }({}), Display = /* @__PURE__ */ function(Display) {
7456
- return Display[Display.Flex = 0] = "Flex", Display[Display.None = 1] = "None", Display[Display.Contents = 2] = "Contents", Display;
7457
- }({}), Edge = /* @__PURE__ */ function(Edge) {
7458
- return Edge[Edge.Left = 0] = "Left", Edge[Edge.Top = 1] = "Top", Edge[Edge.Right = 2] = "Right", Edge[Edge.Bottom = 3] = "Bottom", Edge[Edge.Start = 4] = "Start", Edge[Edge.End = 5] = "End", Edge[Edge.Horizontal = 6] = "Horizontal", Edge[Edge.Vertical = 7] = "Vertical", Edge[Edge.All = 8] = "All", Edge;
7459
- }({}), Errata = /* @__PURE__ */ function(Errata) {
7460
- return Errata[Errata.None = 0] = "None", Errata[Errata.StretchFlexBasis = 1] = "StretchFlexBasis", Errata[Errata.AbsolutePositionWithoutInsetsExcludesPadding = 2] = "AbsolutePositionWithoutInsetsExcludesPadding", Errata[Errata.AbsolutePercentAgainstInnerSize = 4] = "AbsolutePercentAgainstInnerSize", Errata[Errata.All = 2147483647] = "All", Errata[Errata.Classic = 2147483646] = "Classic", Errata;
7461
- }({}), ExperimentalFeature = /* @__PURE__ */ function(ExperimentalFeature) {
7462
- return ExperimentalFeature[ExperimentalFeature.WebFlexBasis = 0] = "WebFlexBasis", ExperimentalFeature;
7463
- }({}), FlexDirection = /* @__PURE__ */ function(FlexDirection) {
7464
- return FlexDirection[FlexDirection.Column = 0] = "Column", FlexDirection[FlexDirection.ColumnReverse = 1] = "ColumnReverse", FlexDirection[FlexDirection.Row = 2] = "Row", FlexDirection[FlexDirection.RowReverse = 3] = "RowReverse", FlexDirection;
7465
- }({}), Gutter = /* @__PURE__ */ function(Gutter) {
7466
- return Gutter[Gutter.Column = 0] = "Column", Gutter[Gutter.Row = 1] = "Row", Gutter[Gutter.All = 2] = "All", Gutter;
7467
- }({}), Justify = /* @__PURE__ */ function(Justify) {
7468
- return Justify[Justify.FlexStart = 0] = "FlexStart", Justify[Justify.Center = 1] = "Center", Justify[Justify.FlexEnd = 2] = "FlexEnd", Justify[Justify.SpaceBetween = 3] = "SpaceBetween", Justify[Justify.SpaceAround = 4] = "SpaceAround", Justify[Justify.SpaceEvenly = 5] = "SpaceEvenly", Justify;
7469
- }({}), LogLevel = /* @__PURE__ */ function(LogLevel) {
7470
- return LogLevel[LogLevel.Error = 0] = "Error", LogLevel[LogLevel.Warn = 1] = "Warn", LogLevel[LogLevel.Info = 2] = "Info", LogLevel[LogLevel.Debug = 3] = "Debug", LogLevel[LogLevel.Verbose = 4] = "Verbose", LogLevel[LogLevel.Fatal = 5] = "Fatal", LogLevel;
7471
- }({}), MeasureMode = /* @__PURE__ */ function(MeasureMode) {
7472
- return MeasureMode[MeasureMode.Undefined = 0] = "Undefined", MeasureMode[MeasureMode.Exactly = 1] = "Exactly", MeasureMode[MeasureMode.AtMost = 2] = "AtMost", MeasureMode;
7473
- }({}), NodeType = /* @__PURE__ */ function(NodeType) {
7474
- return NodeType[NodeType.Default = 0] = "Default", NodeType[NodeType.Text = 1] = "Text", NodeType;
7475
- }({}), Overflow = /* @__PURE__ */ function(Overflow) {
7476
- return Overflow[Overflow.Visible = 0] = "Visible", Overflow[Overflow.Hidden = 1] = "Hidden", Overflow[Overflow.Scroll = 2] = "Scroll", Overflow;
7477
- }({}), PositionType = /* @__PURE__ */ function(PositionType) {
7478
- return PositionType[PositionType.Static = 0] = "Static", PositionType[PositionType.Relative = 1] = "Relative", PositionType[PositionType.Absolute = 2] = "Absolute", PositionType;
7479
- }({}), Unit = /* @__PURE__ */ function(Unit) {
7480
- return Unit[Unit.Undefined = 0] = "Undefined", Unit[Unit.Point = 1] = "Point", Unit[Unit.Percent = 2] = "Percent", Unit[Unit.Auto = 3] = "Auto", Unit;
7481
- }({}), Wrap = /* @__PURE__ */ function(Wrap) {
7482
- return Wrap[Wrap.NoWrap = 0] = "NoWrap", Wrap[Wrap.Wrap = 1] = "Wrap", Wrap[Wrap.WrapReverse = 2] = "WrapReverse", Wrap;
7701
+ var Align = /* @__PURE__ */ function(Align2) {
7702
+ return Align2[Align2.Auto = 0] = "Auto", Align2[Align2.FlexStart = 1] = "FlexStart", Align2[Align2.Center = 2] = "Center", Align2[Align2.FlexEnd = 3] = "FlexEnd", Align2[Align2.Stretch = 4] = "Stretch", Align2[Align2.Baseline = 5] = "Baseline", Align2[Align2.SpaceBetween = 6] = "SpaceBetween", Align2[Align2.SpaceAround = 7] = "SpaceAround", Align2[Align2.SpaceEvenly = 8] = "SpaceEvenly", Align2;
7703
+ }({}), BoxSizing = /* @__PURE__ */ function(BoxSizing2) {
7704
+ return BoxSizing2[BoxSizing2.BorderBox = 0] = "BorderBox", BoxSizing2[BoxSizing2.ContentBox = 1] = "ContentBox", BoxSizing2;
7705
+ }({}), Dimension = /* @__PURE__ */ function(Dimension2) {
7706
+ return Dimension2[Dimension2.Width = 0] = "Width", Dimension2[Dimension2.Height = 1] = "Height", Dimension2;
7707
+ }({}), Direction = /* @__PURE__ */ function(Direction2) {
7708
+ return Direction2[Direction2.Inherit = 0] = "Inherit", Direction2[Direction2.LTR = 1] = "LTR", Direction2[Direction2.RTL = 2] = "RTL", Direction2;
7709
+ }({}), Display = /* @__PURE__ */ function(Display2) {
7710
+ return Display2[Display2.Flex = 0] = "Flex", Display2[Display2.None = 1] = "None", Display2[Display2.Contents = 2] = "Contents", Display2;
7711
+ }({}), Edge = /* @__PURE__ */ function(Edge2) {
7712
+ return Edge2[Edge2.Left = 0] = "Left", Edge2[Edge2.Top = 1] = "Top", Edge2[Edge2.Right = 2] = "Right", Edge2[Edge2.Bottom = 3] = "Bottom", Edge2[Edge2.Start = 4] = "Start", Edge2[Edge2.End = 5] = "End", Edge2[Edge2.Horizontal = 6] = "Horizontal", Edge2[Edge2.Vertical = 7] = "Vertical", Edge2[Edge2.All = 8] = "All", Edge2;
7713
+ }({}), Errata = /* @__PURE__ */ function(Errata2) {
7714
+ return Errata2[Errata2.None = 0] = "None", Errata2[Errata2.StretchFlexBasis = 1] = "StretchFlexBasis", Errata2[Errata2.AbsolutePositionWithoutInsetsExcludesPadding = 2] = "AbsolutePositionWithoutInsetsExcludesPadding", Errata2[Errata2.AbsolutePercentAgainstInnerSize = 4] = "AbsolutePercentAgainstInnerSize", Errata2[Errata2.All = 2147483647] = "All", Errata2[Errata2.Classic = 2147483646] = "Classic", Errata2;
7715
+ }({}), ExperimentalFeature = /* @__PURE__ */ function(ExperimentalFeature2) {
7716
+ return ExperimentalFeature2[ExperimentalFeature2.WebFlexBasis = 0] = "WebFlexBasis", ExperimentalFeature2;
7717
+ }({}), FlexDirection = /* @__PURE__ */ function(FlexDirection2) {
7718
+ return FlexDirection2[FlexDirection2.Column = 0] = "Column", FlexDirection2[FlexDirection2.ColumnReverse = 1] = "ColumnReverse", FlexDirection2[FlexDirection2.Row = 2] = "Row", FlexDirection2[FlexDirection2.RowReverse = 3] = "RowReverse", FlexDirection2;
7719
+ }({}), Gutter = /* @__PURE__ */ function(Gutter2) {
7720
+ return Gutter2[Gutter2.Column = 0] = "Column", Gutter2[Gutter2.Row = 1] = "Row", Gutter2[Gutter2.All = 2] = "All", Gutter2;
7721
+ }({}), Justify = /* @__PURE__ */ function(Justify2) {
7722
+ return Justify2[Justify2.FlexStart = 0] = "FlexStart", Justify2[Justify2.Center = 1] = "Center", Justify2[Justify2.FlexEnd = 2] = "FlexEnd", Justify2[Justify2.SpaceBetween = 3] = "SpaceBetween", Justify2[Justify2.SpaceAround = 4] = "SpaceAround", Justify2[Justify2.SpaceEvenly = 5] = "SpaceEvenly", Justify2;
7723
+ }({}), LogLevel = /* @__PURE__ */ function(LogLevel2) {
7724
+ return LogLevel2[LogLevel2.Error = 0] = "Error", LogLevel2[LogLevel2.Warn = 1] = "Warn", LogLevel2[LogLevel2.Info = 2] = "Info", LogLevel2[LogLevel2.Debug = 3] = "Debug", LogLevel2[LogLevel2.Verbose = 4] = "Verbose", LogLevel2[LogLevel2.Fatal = 5] = "Fatal", LogLevel2;
7725
+ }({}), MeasureMode = /* @__PURE__ */ function(MeasureMode2) {
7726
+ return MeasureMode2[MeasureMode2.Undefined = 0] = "Undefined", MeasureMode2[MeasureMode2.Exactly = 1] = "Exactly", MeasureMode2[MeasureMode2.AtMost = 2] = "AtMost", MeasureMode2;
7727
+ }({}), NodeType = /* @__PURE__ */ function(NodeType2) {
7728
+ return NodeType2[NodeType2.Default = 0] = "Default", NodeType2[NodeType2.Text = 1] = "Text", NodeType2;
7729
+ }({}), Overflow = /* @__PURE__ */ function(Overflow2) {
7730
+ return Overflow2[Overflow2.Visible = 0] = "Visible", Overflow2[Overflow2.Hidden = 1] = "Hidden", Overflow2[Overflow2.Scroll = 2] = "Scroll", Overflow2;
7731
+ }({}), PositionType = /* @__PURE__ */ function(PositionType2) {
7732
+ return PositionType2[PositionType2.Static = 0] = "Static", PositionType2[PositionType2.Relative = 1] = "Relative", PositionType2[PositionType2.Absolute = 2] = "Absolute", PositionType2;
7733
+ }({}), Unit = /* @__PURE__ */ function(Unit2) {
7734
+ return Unit2[Unit2.Undefined = 0] = "Undefined", Unit2[Unit2.Point = 1] = "Point", Unit2[Unit2.Percent = 2] = "Percent", Unit2[Unit2.Auto = 3] = "Auto", Unit2;
7735
+ }({}), Wrap = /* @__PURE__ */ function(Wrap2) {
7736
+ return Wrap2[Wrap2.NoWrap = 0] = "NoWrap", Wrap2[Wrap2.Wrap = 1] = "Wrap", Wrap2[Wrap2.WrapReverse = 2] = "WrapReverse", Wrap2;
7483
7737
  }({}), constants = {
7484
7738
  ALIGN_AUTO: Align.Auto,
7485
7739
  ALIGN_FLEX_START: Align.FlexStart,
@@ -7618,7 +7872,9 @@ function wrapAssembly(lib) {
7618
7872
  original.call(this, wrapDirtiedFunc(dirtiedFunc));
7619
7873
  }), patch(lib.Config.prototype, "free", function() {
7620
7874
  lib.Config.destroy(this);
7621
- }), patch(lib.Node, "create", (_, config) => config ? lib.Node.createWithConfig(config) : lib.Node.createDefault()), patch(lib.Node.prototype, "free", function() {
7875
+ }), patch(lib.Node, "create", (_, config) => {
7876
+ return config ? lib.Node.createWithConfig(config) : lib.Node.createDefault();
7877
+ }), patch(lib.Node.prototype, "free", function() {
7622
7878
  lib.Node.destroy(this);
7623
7879
  }), patch(lib.Node.prototype, "freeRecursive", function() {
7624
7880
  for (let t = 0, T = this.getChildCount();t < T; ++t)
@@ -8281,17 +8537,17 @@ import process3 from "node:process";
8281
8537
  import { execFileSync } from "node:child_process";
8282
8538
  import fs from "node:fs";
8283
8539
  import tty from "node:tty";
8284
- var defaultColumns = 80, defaultRows = 24, exec2 = (command, arguments_, { shell, env } = {}) => execFileSync(command, arguments_, {
8540
+ var defaultColumns = 80, defaultRows = 24, exec2 = (command, arguments_, { shell, env: env2 } = {}) => execFileSync(command, arguments_, {
8285
8541
  encoding: "utf8",
8286
8542
  stdio: ["ignore", "pipe", "ignore"],
8287
8543
  timeout: 500,
8288
8544
  shell,
8289
- env
8290
- }).trim(), create2 = (columns, rows) => ({
8545
+ env: env2
8546
+ }).trim(), create = (columns, rows) => ({
8291
8547
  columns: Number.parseInt(columns, 10),
8292
8548
  rows: Number.parseInt(rows, 10)
8293
8549
  }), createIfNotDefault = (maybeColumns, maybeRows) => {
8294
- let { columns, rows } = create2(maybeColumns, maybeRows);
8550
+ let { columns, rows } = create(maybeColumns, maybeRows);
8295
8551
  if (Number.isNaN(columns) || Number.isNaN(rows))
8296
8552
  return;
8297
8553
  if (columns === defaultColumns && rows === defaultRows)
@@ -8315,13 +8571,13 @@ var defaultColumns = 80, defaultRows = 24, exec2 = (command, arguments_, { shell
8315
8571
  }
8316
8572
  };
8317
8573
  function terminalSize() {
8318
- let { env, stdout, stderr } = process3;
8574
+ let { env: env2, stdout, stderr } = process3;
8319
8575
  if (stdout?.columns && stdout?.rows)
8320
- return create2(stdout.columns, stdout.rows);
8576
+ return create(stdout.columns, stdout.rows);
8321
8577
  if (stderr?.columns && stderr?.rows)
8322
- return create2(stderr.columns, stderr.rows);
8323
- if (env.COLUMNS && env.LINES)
8324
- return create2(env.COLUMNS, env.LINES);
8578
+ return create(stderr.columns, stderr.rows);
8579
+ if (env2.COLUMNS && env2.LINES)
8580
+ return create(env2.COLUMNS, env2.LINES);
8325
8581
  let fallback = {
8326
8582
  columns: defaultColumns,
8327
8583
  rows: defaultRows
@@ -8369,7 +8625,7 @@ var getWindowSize = (stdout) => {
8369
8625
  var import_react_reconciler = __toESM(require_react_reconciler_production(), 1);
8370
8626
  import process4 from "node:process";
8371
8627
  init_scheduler_production();
8372
- init_react_production();
8628
+ var import_react = __toESM(require_react_production(), 1);
8373
8629
 
8374
8630
  // ../../node_modules/.bun/widest-line@6.0.0/node_modules/widest-line/index.js
8375
8631
  function widestLine(string) {
@@ -8625,27 +8881,27 @@ function getSgrFragments(code) {
8625
8881
  if (codeNumber === SGR_EXTENDED_FOREGROUND_CODE || codeNumber === SGR_EXTENDED_BACKGROUND_CODE) {
8626
8882
  let colorType = Number.parseInt(rawCodes[index + 1], 10);
8627
8883
  if (colorType === SGR_COLOR_TYPE_ANSI_256 && index + SGR_ANSI_256_LAST_PARAMETER_OFFSET < rawCodes.length) {
8628
- let openCode = createSgrCode(sgrPrefix, rawCodes.slice(index, index + SGR_ANSI_256_FRAGMENT_LENGTH));
8884
+ let openCode3 = createSgrCode(sgrPrefix, rawCodes.slice(index, index + SGR_ANSI_256_FRAGMENT_LENGTH));
8629
8885
  fragments.push({
8630
8886
  type: "start",
8631
- code: openCode,
8887
+ code: openCode3,
8632
8888
  endCode: ansi_styles_default2.color.ansi(codeNumber === SGR_EXTENDED_FOREGROUND_CODE ? SGR_DEFAULT_FOREGROUND_CODE : SGR_DEFAULT_BACKGROUND_CODE)
8633
8889
  }), index += SGR_ANSI_256_FRAGMENT_LENGTH;
8634
8890
  continue;
8635
8891
  }
8636
8892
  if (colorType === SGR_COLOR_TYPE_TRUECOLOR && index + SGR_TRUECOLOR_LAST_PARAMETER_OFFSET < rawCodes.length) {
8637
- let openCode = createSgrCode(sgrPrefix, rawCodes.slice(index, index + SGR_TRUECOLOR_FRAGMENT_LENGTH));
8893
+ let openCode3 = createSgrCode(sgrPrefix, rawCodes.slice(index, index + SGR_TRUECOLOR_FRAGMENT_LENGTH));
8638
8894
  fragments.push({
8639
8895
  type: "start",
8640
- code: openCode,
8896
+ code: openCode3,
8641
8897
  endCode: ansi_styles_default2.color.ansi(codeNumber === SGR_EXTENDED_FOREGROUND_CODE ? SGR_DEFAULT_FOREGROUND_CODE : SGR_DEFAULT_BACKGROUND_CODE)
8642
8898
  }), index += SGR_TRUECOLOR_FRAGMENT_LENGTH;
8643
8899
  continue;
8644
8900
  }
8645
- let openCode = createSgrCode(sgrPrefix, [rawCodes[index]]);
8901
+ let openCode2 = createSgrCode(sgrPrefix, [rawCodes[index]]);
8646
8902
  fragments.push({
8647
8903
  type: "start",
8648
- code: openCode,
8904
+ code: openCode2,
8649
8905
  endCode: ansi_styles_default2.color.ansi(codeNumber === SGR_EXTENDED_FOREGROUND_CODE ? SGR_DEFAULT_FOREGROUND_CODE : SGR_DEFAULT_BACKGROUND_CODE)
8650
8906
  }), index++;
8651
8907
  continue;
@@ -8659,10 +8915,10 @@ function getSgrFragments(code) {
8659
8915
  }
8660
8916
  let mappedEndCode = ansi_styles_default2.codes.get(codeNumber);
8661
8917
  if (mappedEndCode !== void 0) {
8662
- let openCode = createSgrCode(sgrPrefix, [rawCodes[index]]);
8918
+ let openCode2 = createSgrCode(sgrPrefix, [rawCodes[index]]);
8663
8919
  fragments.push({
8664
8920
  type: "start",
8665
- code: openCode,
8921
+ code: openCode2,
8666
8922
  endCode: ansi_styles_default2.color.ansi(mappedEndCode)
8667
8923
  }), index++;
8668
8924
  continue;
@@ -9234,8 +9490,8 @@ function cliTruncate(text, columns, options = {}) {
9234
9490
  }
9235
9491
  if (position === "start") {
9236
9492
  if (preferTruncationOnSpace) {
9237
- let nearestSpace = getIndexOfNearestSpace(visibleColumns, length - columns + stringWidth(truncationCharacter), !0), right = sliceAnsi(text, getIndexAfterSpaces(visibleColumns, nearestSpace), length);
9238
- return prependWithInheritedStyleFromStart(truncationCharacter, right);
9493
+ let nearestSpace = getIndexOfNearestSpace(visibleColumns, length - columns + stringWidth(truncationCharacter), !0), right2 = sliceAnsi(text, getIndexAfterSpaces(visibleColumns, nearestSpace), length);
9494
+ return prependWithInheritedStyleFromStart(truncationCharacter, right2);
9239
9495
  }
9240
9496
  if (space)
9241
9497
  truncationCharacter += " ";
@@ -9255,8 +9511,8 @@ function cliTruncate(text, columns, options = {}) {
9255
9511
  return sliceAnsi(text, 0, half) + truncationCharacter + sliceAnsi(text, length - (columns - half) + truncationWidth, length);
9256
9512
  }
9257
9513
  if (preferTruncationOnSpace) {
9258
- let nearestSpace = getIndexOfNearestSpace(visibleColumns, columns - stringWidth(truncationCharacter)), left = sliceAnsi(text, 0, nearestSpace);
9259
- return appendWithInheritedStyleFromEnd(left, truncationCharacter);
9514
+ let nearestSpace = getIndexOfNearestSpace(visibleColumns, columns - stringWidth(truncationCharacter)), left2 = sliceAnsi(text, 0, nearestSpace);
9515
+ return appendWithInheritedStyleFromEnd(left2, truncationCharacter);
9260
9516
  }
9261
9517
  if (space)
9262
9518
  truncationCharacter = ` ${truncationCharacter}`;
@@ -9847,7 +10103,7 @@ if (process4.env.DEV === "true") {
9847
10103
  import.meta.resolve("react-devtools-core"), isDevtoolsInstalled = !0;
9848
10104
  } catch {}
9849
10105
  if (isDevtoolsInstalled)
9850
- await Promise.resolve().then(() => (init_devtools(), {}));
10106
+ await Promise.resolve().then(() => (init_devtools(), exports_devtools));
9851
10107
  }
9852
10108
  var diff = (before, after) => {
9853
10109
  if (before === after)
@@ -9868,7 +10124,7 @@ var diff = (before, after) => {
9868
10124
  node?.unsetMeasureFunc(), node?.freeRecursive();
9869
10125
  }, currentUpdatePriority = $NoEventPriority, currentRootNode;
9870
10126
  async function loadPackageJson() {
9871
- let fs = await import("node:fs"), content = fs.readFileSync(new URL("../package.json", import.meta.url), "utf8"), parsedContent = JSON.parse(content);
10127
+ let content = (await import("node:fs")).readFileSync(new URL("../package.json", import.meta.url), "utf8"), parsedContent = JSON.parse(content);
9872
10128
  return {
9873
10129
  name: parsedContent?.name,
9874
10130
  version: parsedContent?.version
@@ -9876,7 +10132,7 @@ async function loadPackageJson() {
9876
10132
  }
9877
10133
  var packageInfo = {
9878
10134
  name: "ink",
9879
- version: $version
10135
+ version: import_react.version
9880
10136
  };
9881
10137
  if (process4.env.DEV === "true")
9882
10138
  try {
@@ -10036,7 +10292,7 @@ var reconciler_default = import_react_reconciler.default({
10036
10292
  return !0;
10037
10293
  },
10038
10294
  NotPendingTransition: void 0,
10039
- HostTransitionContext: $createContext(null),
10295
+ HostTransitionContext: import_react.createContext(null),
10040
10296
  resetFormInstance() {},
10041
10297
  requestPostPaintCallback() {},
10042
10298
  shouldAttemptEagerTransition() {
@@ -10077,12 +10333,14 @@ function indentString(string, count = 1, options = {}) {
10077
10333
  throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof indent}\``);
10078
10334
  if (count === 0)
10079
10335
  return string;
10080
- let regex = includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
10081
- return string.replace(regex, indent.repeat(count));
10336
+ let regex2 = includeEmptyLines ? /^/gm : /^(?!\s*$)/gm;
10337
+ return string.replace(regex2, indent.repeat(count));
10082
10338
  }
10083
10339
 
10084
10340
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/get-max-width.js
10085
- var getMaxWidth = (yogaNode) => yogaNode.getComputedWidth() - yogaNode.getComputedPadding(src_default.EDGE_LEFT) - yogaNode.getComputedPadding(src_default.EDGE_RIGHT) - yogaNode.getComputedBorder(src_default.EDGE_LEFT) - yogaNode.getComputedBorder(src_default.EDGE_RIGHT), get_max_width_default = getMaxWidth;
10341
+ var getMaxWidth = (yogaNode) => {
10342
+ return yogaNode.getComputedWidth() - yogaNode.getComputedPadding(src_default.EDGE_LEFT) - yogaNode.getComputedPadding(src_default.EDGE_RIGHT) - yogaNode.getComputedBorder(src_default.EDGE_LEFT) - yogaNode.getComputedBorder(src_default.EDGE_RIGHT);
10343
+ }, get_max_width_default = getMaxWidth;
10086
10344
  // ../../node_modules/.bun/cli-boxes@4.0.1/node_modules/cli-boxes/boxes.json
10087
10345
  var boxes_default = {
10088
10346
  single: {
@@ -10552,7 +10810,9 @@ var chalk = createChalk(), chalkStderr = createChalk({ level: stderrColor ? stde
10552
10810
  var source_default = chalk;
10553
10811
 
10554
10812
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/colorize.js
10555
- var rgbRegex = /^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/, ansiRegex2 = /^ansi256\(\s?(\d+)\s?\)$/, isNamedColor = (color) => (color in source_default), colorize = (str, color, type) => {
10813
+ var rgbRegex = /^rgb\(\s?(\d+),\s?(\d+),\s?(\d+)\s?\)$/, ansiRegex2 = /^ansi256\(\s?(\d+)\s?\)$/, isNamedColor = (color) => {
10814
+ return color in source_default;
10815
+ }, colorize = (str, color, type) => {
10556
10816
  if (!color)
10557
10817
  return str;
10558
10818
  if (isNamedColor(color)) {
@@ -10651,10 +10911,12 @@ var applyPaddingToText = (node, text) => {
10651
10911
  else if (node.nodeName === "ink-box" || node.nodeName === "ink-root") {
10652
10912
  let separator = node.style.flexDirection === "row" || node.style.flexDirection === "row-reverse" ? " " : `
10653
10913
  `;
10654
- output = (node.style.flexDirection === "row-reverse" || node.style.flexDirection === "column-reverse" ? [...node.childNodes].reverse() : [...node.childNodes]).map((childNode) => renderNodeToScreenReaderOutput(childNode, {
10655
- parentRole: node.internal_accessibility?.role,
10656
- skipStaticElements: options.skipStaticElements
10657
- })).filter(Boolean).join(separator);
10914
+ output = (node.style.flexDirection === "row-reverse" || node.style.flexDirection === "column-reverse" ? [...node.childNodes].reverse() : [...node.childNodes]).map((childNode) => {
10915
+ return renderNodeToScreenReaderOutput(childNode, {
10916
+ parentRole: node.internal_accessibility?.role,
10917
+ skipStaticElements: options.skipStaticElements
10918
+ });
10919
+ }).filter(Boolean).join(separator);
10658
10920
  }
10659
10921
  if (node.internal_accessibility) {
10660
10922
  let { role, state } = node.internal_accessibility;
@@ -10812,27 +11074,27 @@ function getSgrFragments2(code) {
10812
11074
  if (codeNumber === SGR_EXTENDED_FOREGROUND_CODE2 || codeNumber === SGR_EXTENDED_BACKGROUND_CODE2) {
10813
11075
  let colorType = Number.parseInt(rawCodes[index + 1], 10);
10814
11076
  if (colorType === SGR_COLOR_TYPE_ANSI_2562 && index + SGR_ANSI_256_LAST_PARAMETER_OFFSET2 < rawCodes.length) {
10815
- let openCode = createSgrCode2(sgrPrefix, rawCodes.slice(index, index + SGR_ANSI_256_FRAGMENT_LENGTH2));
11077
+ let openCode3 = createSgrCode2(sgrPrefix, rawCodes.slice(index, index + SGR_ANSI_256_FRAGMENT_LENGTH2));
10816
11078
  fragments.push({
10817
11079
  type: "start",
10818
- code: openCode,
11080
+ code: openCode3,
10819
11081
  endCode: ansi_styles_default.color.ansi(codeNumber === SGR_EXTENDED_FOREGROUND_CODE2 ? SGR_DEFAULT_FOREGROUND_CODE2 : SGR_DEFAULT_BACKGROUND_CODE2)
10820
11082
  }), index += SGR_ANSI_256_FRAGMENT_LENGTH2;
10821
11083
  continue;
10822
11084
  }
10823
11085
  if (colorType === SGR_COLOR_TYPE_TRUECOLOR2 && index + SGR_TRUECOLOR_LAST_PARAMETER_OFFSET2 < rawCodes.length) {
10824
- let openCode = createSgrCode2(sgrPrefix, rawCodes.slice(index, index + SGR_TRUECOLOR_FRAGMENT_LENGTH2));
11086
+ let openCode3 = createSgrCode2(sgrPrefix, rawCodes.slice(index, index + SGR_TRUECOLOR_FRAGMENT_LENGTH2));
10825
11087
  fragments.push({
10826
11088
  type: "start",
10827
- code: openCode,
11089
+ code: openCode3,
10828
11090
  endCode: ansi_styles_default.color.ansi(codeNumber === SGR_EXTENDED_FOREGROUND_CODE2 ? SGR_DEFAULT_FOREGROUND_CODE2 : SGR_DEFAULT_BACKGROUND_CODE2)
10829
11091
  }), index += SGR_TRUECOLOR_FRAGMENT_LENGTH2;
10830
11092
  continue;
10831
11093
  }
10832
- let openCode = createSgrCode2(sgrPrefix, [rawCodes[index]]);
11094
+ let openCode2 = createSgrCode2(sgrPrefix, [rawCodes[index]]);
10833
11095
  fragments.push({
10834
11096
  type: "start",
10835
- code: openCode,
11097
+ code: openCode2,
10836
11098
  endCode: ansi_styles_default.color.ansi(codeNumber === SGR_EXTENDED_FOREGROUND_CODE2 ? SGR_DEFAULT_FOREGROUND_CODE2 : SGR_DEFAULT_BACKGROUND_CODE2)
10837
11099
  }), index++;
10838
11100
  continue;
@@ -10846,10 +11108,10 @@ function getSgrFragments2(code) {
10846
11108
  }
10847
11109
  let mappedEndCode = ansi_styles_default.codes.get(codeNumber);
10848
11110
  if (mappedEndCode !== void 0) {
10849
- let openCode = createSgrCode2(sgrPrefix, [rawCodes[index]]);
11111
+ let openCode2 = createSgrCode2(sgrPrefix, [rawCodes[index]]);
10850
11112
  fragments.push({
10851
11113
  type: "start",
10852
- code: openCode,
11114
+ code: openCode2,
10853
11115
  endCode: ansi_styles_default.color.ansi(mappedEndCode)
10854
11116
  }), index++;
10855
11117
  continue;
@@ -11699,8 +11961,8 @@ class Output {
11699
11961
  currentLine[offsetX] = character;
11700
11962
  let characterWidth = Math.max(1, this.caches.getStringWidth(character.value));
11701
11963
  if (characterWidth > 1)
11702
- for (let index = 1;index < characterWidth; index++)
11703
- currentLine[offsetX + index] = {
11964
+ for (let index2 = 1;index2 < characterWidth; index2++)
11965
+ currentLine[offsetX + index2] = {
11704
11966
  type: "char",
11705
11967
  value: "",
11706
11968
  fullWidth: !1,
@@ -11729,18 +11991,18 @@ class Output {
11729
11991
  var renderer = (node, isScreenReaderEnabled) => {
11730
11992
  if (node.yogaNode) {
11731
11993
  if (isScreenReaderEnabled) {
11732
- let output = renderNodeToScreenReaderOutput(node, {
11994
+ let output2 = renderNodeToScreenReaderOutput(node, {
11733
11995
  skipStaticElements: !0
11734
- }), outputHeight = output === "" ? 0 : output.split(`
11735
- `).length, staticOutput = "";
11996
+ }), outputHeight2 = output2 === "" ? 0 : output2.split(`
11997
+ `).length, staticOutput2 = "";
11736
11998
  if (node.staticNode)
11737
- staticOutput = renderNodeToScreenReaderOutput(node.staticNode, {
11999
+ staticOutput2 = renderNodeToScreenReaderOutput(node.staticNode, {
11738
12000
  skipStaticElements: !1
11739
12001
  });
11740
12002
  return {
11741
- output,
11742
- outputHeight,
11743
- staticOutput: staticOutput ? `${staticOutput}
12003
+ output: output2,
12004
+ outputHeight: outputHeight2,
12005
+ staticOutput: staticOutput2 ? `${staticOutput2}
11744
12006
  ` : ""
11745
12007
  };
11746
12008
  }
@@ -11780,12 +12042,12 @@ var cursorPositionChanged = (a, b) => a?.x !== b?.x || a?.y !== b?.y, buildCurso
11780
12042
  if (!cursorPosition)
11781
12043
  return "";
11782
12044
  let moveUp = visibleLineCount - cursorPosition.y;
11783
- return (moveUp > 0 ? cursorUp(moveUp) : "") + cursorTo(cursorPosition.x) + showCursorEscape;
12045
+ return (moveUp > 0 ? exports_base.cursorUp(moveUp) : "") + exports_base.cursorTo(cursorPosition.x) + showCursorEscape;
11784
12046
  }, buildReturnToBottom = (previousLineCount, previousCursorPosition) => {
11785
12047
  if (!previousCursorPosition)
11786
12048
  return "";
11787
12049
  let down = previousLineCount - 1 - previousCursorPosition.y;
11788
- return (down > 0 ? cursorDown(down) : "") + cursorTo(0);
12050
+ return (down > 0 ? exports_base.cursorDown(down) : "") + exports_base.cursorTo(0);
11789
12051
  }, buildCursorOnlySequence = (input) => {
11790
12052
  let hidePrefix = input.cursorWasShown ? hideCursorEscape : "", returnToBottom = buildReturnToBottom(input.previousLineCount, input.previousCursorPosition), cursorSuffix = buildCursorSuffix(input.visibleLineCount, input.cursorPosition);
11791
12053
  return hidePrefix + returnToBottom + cursorSuffix;
@@ -11856,13 +12118,13 @@ var visibleLineCount = (lines, str) => str.endsWith(`
11856
12118
  else {
11857
12119
  previousOutput = str;
11858
12120
  let returnPrefix = buildReturnToBottomPrefix(cursorWasShown, previousLineCount, previousCursorPosition);
11859
- stream.write(returnPrefix + eraseLines(previousLineCount) + str + cursorSuffix), previousLineCount = lines.length;
12121
+ stream.write(returnPrefix + exports_base.eraseLines(previousLineCount) + str + cursorSuffix), previousLineCount = lines.length;
11860
12122
  }
11861
12123
  return previousCursorPosition = activeCursor ? { ...activeCursor } : void 0, cursorWasShown = activeCursor !== void 0, !0;
11862
12124
  };
11863
12125
  return render.clear = () => {
11864
12126
  let prefix = buildReturnToBottomPrefix(cursorWasShown, previousLineCount, previousCursorPosition);
11865
- stream.write(prefix + eraseLines(previousLineCount)), previousOutput = "", previousLineCount = 0, previousCursorPosition = void 0, cursorWasShown = !1;
12127
+ stream.write(prefix + exports_base.eraseLines(previousLineCount)), previousOutput = "", previousLineCount = 0, previousCursorPosition = void 0, cursorWasShown = !1;
11866
12128
  }, render.done = () => {
11867
12129
  if (previousOutput = "", previousLineCount = 0, previousCursorPosition = void 0, cursorWasShown = !1, !showCursor)
11868
12130
  cli_cursor_default.show(stream), hasHiddenCursor = !1;
@@ -11906,25 +12168,25 @@ var visibleLineCount = (lines, str) => str.endsWith(`
11906
12168
  let returnPrefix = buildReturnToBottomPrefix(cursorWasShown, previousLines.length, previousCursorPosition);
11907
12169
  if (str === `
11908
12170
  ` || previousOutput.length === 0) {
11909
- let cursorSuffix = buildCursorSuffix(visibleCount, activeCursor);
11910
- return stream.write(returnPrefix + eraseLines(previousLines.length) + str + cursorSuffix), cursorWasShown = activeCursor !== void 0, previousCursorPosition = activeCursor ? { ...activeCursor } : void 0, previousOutput = str, previousLines = nextLines, !0;
12171
+ let cursorSuffix2 = buildCursorSuffix(visibleCount, activeCursor);
12172
+ return stream.write(returnPrefix + exports_base.eraseLines(previousLines.length) + str + cursorSuffix2), cursorWasShown = activeCursor !== void 0, previousCursorPosition = activeCursor ? { ...activeCursor } : void 0, previousOutput = str, previousLines = nextLines, !0;
11911
12173
  }
11912
12174
  let hasTrailingNewline = str.endsWith(`
11913
12175
  `), buffer = [];
11914
12176
  if (buffer.push(returnPrefix), visibleCount < previousVisible) {
11915
12177
  let extraSlot = previousOutput.endsWith(`
11916
12178
  `) ? 1 : 0;
11917
- buffer.push(eraseLines(previousVisible - visibleCount + extraSlot), cursorUp(visibleCount));
12179
+ buffer.push(exports_base.eraseLines(previousVisible - visibleCount + extraSlot), exports_base.cursorUp(visibleCount));
11918
12180
  } else
11919
- buffer.push(cursorUp(previousLines.length - 1));
12181
+ buffer.push(exports_base.cursorUp(previousLines.length - 1));
11920
12182
  for (let i = 0;i < visibleCount; i++) {
11921
12183
  let isLastLine = i === visibleCount - 1;
11922
12184
  if (nextLines[i] === previousLines[i]) {
11923
12185
  if (!isLastLine || hasTrailingNewline)
11924
- buffer.push(cursorNextLine);
12186
+ buffer.push(exports_base.cursorNextLine);
11925
12187
  continue;
11926
12188
  }
11927
- buffer.push(cursorTo(0) + nextLines[i] + eraseEndLine + (isLastLine && !hasTrailingNewline ? "" : `
12189
+ buffer.push(exports_base.cursorTo(0) + nextLines[i] + exports_base.eraseEndLine + (isLastLine && !hasTrailingNewline ? "" : `
11928
12190
  `));
11929
12191
  }
11930
12192
  let cursorSuffix = buildCursorSuffix(visibleCount, activeCursor);
@@ -11932,7 +12194,7 @@ var visibleLineCount = (lines, str) => str.endsWith(`
11932
12194
  };
11933
12195
  return render.clear = () => {
11934
12196
  let prefix = buildReturnToBottomPrefix(cursorWasShown, previousLines.length, previousCursorPosition);
11935
- stream.write(prefix + eraseLines(previousLines.length)), previousOutput = "", previousLines = [], previousCursorPosition = void 0, cursorWasShown = !1;
12197
+ stream.write(prefix + exports_base.eraseLines(previousLines.length)), previousOutput = "", previousLines = [], previousCursorPosition = void 0, cursorWasShown = !1;
11936
12198
  }, render.done = () => {
11937
12199
  if (previousOutput = "", previousLines = [], previousCursorPosition = void 0, cursorWasShown = !1, !showCursor)
11938
12200
  cli_cursor_default.show(stream), hasHiddenCursor = !1;
@@ -11951,11 +12213,11 @@ var visibleLineCount = (lines, str) => str.endsWith(`
11951
12213
  }, render.setCursorPosition = (position) => {
11952
12214
  cursorPosition = position, cursorDirty = !0;
11953
12215
  }, render.isCursorDirty = () => cursorDirty, render.willRender = (str) => hasChanges(str, getActiveCursor()), render;
11954
- }, create3 = (stream, { showCursor = !1, incremental = !1 } = {}) => {
12216
+ }, create2 = (stream, { showCursor = !1, incremental = !1 } = {}) => {
11955
12217
  if (incremental)
11956
12218
  return createIncremental(stream, { showCursor });
11957
12219
  return createStandard(stream, { showCursor });
11958
- }, logUpdate = { create: create3 }, log_update_default = logUpdate;
12220
+ }, logUpdate = { create: create2 }, log_update_default = logUpdate;
11959
12221
 
11960
12222
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/write-synchronized.js
11961
12223
  var bsu = "\x1B[?2026h", esu = "\x1B[?2026l";
@@ -11967,12 +12229,18 @@ function shouldSynchronize(stream, interactive) {
11967
12229
  var instances = /* @__PURE__ */ new WeakMap, instances_default = instances;
11968
12230
 
11969
12231
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/App.js
11970
- init_react_production();
12232
+ var import_react15 = __toESM(require_react_production(), 1);
11971
12233
  import { EventEmitter as EventEmitter2 } from "node:events";
11972
12234
  import process11 from "node:process";
11973
12235
 
11974
12236
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/input-parser.js
11975
- var isCsiParameterByte = (byte) => byte >= 48 && byte <= 63, isCsiIntermediateByte = (byte) => byte >= 32 && byte <= 47, isCsiFinalByte = (byte) => byte >= 64 && byte <= 126, parseCsiSequence = (input, startIndex, prefixLength) => {
12237
+ var isCsiParameterByte = (byte) => {
12238
+ return byte >= 48 && byte <= 63;
12239
+ }, isCsiIntermediateByte = (byte) => {
12240
+ return byte >= 32 && byte <= 47;
12241
+ }, isCsiFinalByte = (byte) => {
12242
+ return byte >= 64 && byte <= 126;
12243
+ }, parseCsiSequence = (input, startIndex, prefixLength) => {
11976
12244
  let csiPayloadStart = startIndex + prefixLength + 1, index = csiPayloadStart;
11977
12245
  for (;index < input.length; index++) {
11978
12246
  let byte = input.codePointAt(index);
@@ -12103,8 +12371,7 @@ var isCsiParameterByte = (byte) => byte >= 48 && byte <= 63, isCsiIntermediateBy
12103
12371
  };
12104
12372
 
12105
12373
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/AppContext.js
12106
- init_react_production();
12107
- var noopSuspension = {
12374
+ var import_react2 = __toESM(require_react_production(), 1), noopSuspension = {
12108
12375
  async resume() {},
12109
12376
  async[Symbol.asyncDispose]() {}
12110
12377
  }, defaultValue = {
@@ -12117,15 +12384,15 @@ var noopSuspension = {
12117
12384
  }
12118
12385
  return noopSuspension;
12119
12386
  }
12120
- }, AppContext = $createContext(defaultValue);
12387
+ }, AppContext = import_react2.createContext(defaultValue);
12121
12388
  AppContext.displayName = "InternalAppContext";
12122
12389
  var AppContext_default = AppContext;
12123
12390
 
12124
12391
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/StdinContext.js
12125
- init_react_production();
12392
+ var import_react3 = __toESM(require_react_production(), 1);
12126
12393
  import { EventEmitter } from "node:events";
12127
12394
  import process8 from "node:process";
12128
- var StdinContext = $createContext({
12395
+ var StdinContext = import_react3.createContext({
12129
12396
  stdin: process8.stdin,
12130
12397
  internal_eventEmitter: new EventEmitter,
12131
12398
  setRawMode() {},
@@ -12137,9 +12404,9 @@ StdinContext.displayName = "InternalStdinContext";
12137
12404
  var StdinContext_default = StdinContext;
12138
12405
 
12139
12406
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/StdoutContext.js
12140
- init_react_production();
12407
+ var import_react4 = __toESM(require_react_production(), 1);
12141
12408
  import process9 from "node:process";
12142
- var StdoutContext = $createContext({
12409
+ var StdoutContext = import_react4.createContext({
12143
12410
  stdout: process9.stdout,
12144
12411
  write() {}
12145
12412
  });
@@ -12147,9 +12414,9 @@ StdoutContext.displayName = "InternalStdoutContext";
12147
12414
  var StdoutContext_default = StdoutContext;
12148
12415
 
12149
12416
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/StderrContext.js
12150
- init_react_production();
12417
+ var import_react5 = __toESM(require_react_production(), 1);
12151
12418
  import process10 from "node:process";
12152
- var StderrContext = $createContext({
12419
+ var StderrContext = import_react5.createContext({
12153
12420
  stderr: process10.stderr,
12154
12421
  write() {}
12155
12422
  });
@@ -12157,8 +12424,7 @@ StderrContext.displayName = "InternalStderrContext";
12157
12424
  var StderrContext_default = StderrContext;
12158
12425
 
12159
12426
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/FocusContext.js
12160
- init_react_production();
12161
- var FocusContext = $createContext({
12427
+ var import_react6 = __toESM(require_react_production(), 1), FocusContext = import_react6.createContext({
12162
12428
  activeId: void 0,
12163
12429
  add() {},
12164
12430
  remove() {},
@@ -12174,8 +12440,7 @@ FocusContext.displayName = "InternalFocusContext";
12174
12440
  var FocusContext_default = FocusContext;
12175
12441
 
12176
12442
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/AnimationContext.js
12177
- init_react_production();
12178
- var animationContext = $createContext({
12443
+ var import_react7 = __toESM(require_react_production(), 1), animationContext = import_react7.createContext({
12179
12444
  renderThrottleMs: 0,
12180
12445
  subscribe() {
12181
12446
  return {
@@ -12188,24 +12453,24 @@ animationContext.displayName = "InternalAnimationContext";
12188
12453
  var AnimationContext_default = animationContext;
12189
12454
 
12190
12455
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/CursorContext.js
12191
- init_react_production();
12192
- var CursorContext = $createContext({
12456
+ var import_react8 = __toESM(require_react_production(), 1), CursorContext = import_react8.createContext({
12193
12457
  setCursorPosition() {}
12194
12458
  });
12195
12459
  CursorContext.displayName = "InternalCursorContext";
12196
12460
  var CursorContext_default = CursorContext;
12197
12461
 
12198
12462
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/ErrorBoundary.js
12199
- init_react_production();
12463
+ var import_react14 = __toESM(require_react_production(), 1);
12200
12464
 
12201
12465
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/ErrorOverview.js
12202
- init_react_production();
12203
- var import_stack_utils = __toESM(require_stack_utils(), 1);
12466
+ var import_react13 = __toESM(require_react_production(), 1), import_stack_utils = __toESM(require_stack_utils(), 1);
12204
12467
  import * as fs2 from "node:fs";
12205
12468
  import { cwd } from "node:process";
12206
12469
 
12207
12470
  // ../../node_modules/.bun/convert-to-spaces@2.0.1/node_modules/convert-to-spaces/dist/index.js
12208
- var convertToSpaces = (input, spaces = 2) => input.replace(/^\t+/gm, ($1) => " ".repeat($1.length * spaces)), dist_default2 = convertToSpaces;
12471
+ var convertToSpaces = (input, spaces = 2) => {
12472
+ return input.replace(/^\t+/gm, ($1) => " ".repeat($1.length * spaces));
12473
+ }, dist_default2 = convertToSpaces;
12209
12474
 
12210
12475
  // ../../node_modules/.bun/code-excerpt@4.0.0/node_modules/code-excerpt/dist/index.js
12211
12476
  var generateLineNumbers = (line, around) => {
@@ -12222,28 +12487,26 @@ var generateLineNumbers = (line, around) => {
12222
12487
  let lines = dist_default2(source).split(/\r?\n/);
12223
12488
  if (line > lines.length)
12224
12489
  return;
12225
- return generateLineNumbers(line, (_a = options.around) !== null && _a !== void 0 ? _a : 3).filter((line) => lines[line - 1] !== void 0).map((line) => ({ line, value: lines[line - 1] }));
12490
+ return generateLineNumbers(line, (_a = options.around) !== null && _a !== void 0 ? _a : 3).filter((line2) => lines[line2 - 1] !== void 0).map((line2) => ({ line: line2, value: lines[line2 - 1] }));
12226
12491
  }, dist_default3 = codeExcerpt;
12227
12492
 
12228
12493
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/Box.js
12229
- init_react_production();
12494
+ var import_react11 = __toESM(require_react_production(), 1);
12230
12495
 
12231
12496
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/AccessibilityContext.js
12232
- init_react_production();
12233
- var accessibilityContext = $createContext({
12497
+ var import_react9 = __toESM(require_react_production(), 1), accessibilityContext = import_react9.createContext({
12234
12498
  isScreenReaderEnabled: !1
12235
12499
  });
12236
12500
 
12237
12501
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/BackgroundContext.js
12238
- init_react_production();
12239
- var backgroundContext = $createContext(void 0);
12502
+ var import_react10 = __toESM(require_react_production(), 1), backgroundContext = import_react10.createContext(void 0);
12240
12503
 
12241
12504
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/Box.js
12242
- var Box = $forwardRef(({ children, backgroundColor, "aria-label": ariaLabel, "aria-hidden": ariaHidden, "aria-role": role, "aria-state": ariaState, ...style }, ref) => {
12243
- let { isScreenReaderEnabled } = $useContext(accessibilityContext), label = ariaLabel ? $createElement("ink-text", null, ariaLabel) : void 0;
12505
+ var Box = import_react11.forwardRef(({ children, backgroundColor, "aria-label": ariaLabel, "aria-hidden": ariaHidden, "aria-role": role, "aria-state": ariaState, ...style }, ref) => {
12506
+ let { isScreenReaderEnabled } = import_react11.useContext(accessibilityContext), label = ariaLabel ? import_react11.default.createElement("ink-text", null, ariaLabel) : void 0;
12244
12507
  if (isScreenReaderEnabled && ariaHidden)
12245
12508
  return null;
12246
- let boxElement = $createElement("ink-box", { ref, style: {
12509
+ let boxElement = import_react11.default.createElement("ink-box", { ref, style: {
12247
12510
  flexWrap: "nowrap",
12248
12511
  flexDirection: "row",
12249
12512
  flexGrow: 0,
@@ -12257,45 +12520,47 @@ var Box = $forwardRef(({ children, backgroundColor, "aria-label": ariaLabel, "ar
12257
12520
  state: ariaState
12258
12521
  } }, isScreenReaderEnabled && label ? label : children);
12259
12522
  if (backgroundColor)
12260
- return $createElement(backgroundContext.Provider, { value: backgroundColor }, boxElement);
12523
+ return import_react11.default.createElement(backgroundContext.Provider, { value: backgroundColor }, boxElement);
12261
12524
  return boxElement;
12262
12525
  });
12263
12526
  Box.displayName = "Box";
12264
12527
  var Box_default = Box;
12265
12528
 
12266
12529
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/Text.js
12267
- init_react_production();
12530
+ var import_react12 = __toESM(require_react_production(), 1);
12268
12531
  function Text({ color, backgroundColor, dimColor = !1, bold = !1, italic = !1, underline = !1, strikethrough = !1, inverse = !1, wrap = "wrap", children, "aria-label": ariaLabel, "aria-hidden": ariaHidden = !1 }) {
12269
- let { isScreenReaderEnabled } = $useContext(accessibilityContext), inheritedBackgroundColor = $useContext(backgroundContext), childrenOrAriaLabel = isScreenReaderEnabled && ariaLabel ? ariaLabel : children;
12532
+ let { isScreenReaderEnabled } = import_react12.useContext(accessibilityContext), inheritedBackgroundColor = import_react12.useContext(backgroundContext), childrenOrAriaLabel = isScreenReaderEnabled && ariaLabel ? ariaLabel : children;
12270
12533
  if (childrenOrAriaLabel === void 0 || childrenOrAriaLabel === null)
12271
12534
  return null;
12272
- let transform = (children) => {
12535
+ let transform = (children2) => {
12273
12536
  if (dimColor)
12274
- children = source_default.dim(children);
12537
+ children2 = source_default.dim(children2);
12275
12538
  if (color)
12276
- children = colorize_default(children, color, "foreground");
12539
+ children2 = colorize_default(children2, color, "foreground");
12277
12540
  let effectiveBackgroundColor = backgroundColor ?? inheritedBackgroundColor;
12278
12541
  if (effectiveBackgroundColor)
12279
- children = colorize_default(children, effectiveBackgroundColor, "background");
12542
+ children2 = colorize_default(children2, effectiveBackgroundColor, "background");
12280
12543
  if (bold)
12281
- children = source_default.bold(children);
12544
+ children2 = source_default.bold(children2);
12282
12545
  if (italic)
12283
- children = source_default.italic(children);
12546
+ children2 = source_default.italic(children2);
12284
12547
  if (underline)
12285
- children = source_default.underline(children);
12548
+ children2 = source_default.underline(children2);
12286
12549
  if (strikethrough)
12287
- children = source_default.strikethrough(children);
12550
+ children2 = source_default.strikethrough(children2);
12288
12551
  if (inverse)
12289
- children = source_default.inverse(children);
12290
- return children;
12552
+ children2 = source_default.inverse(children2);
12553
+ return children2;
12291
12554
  };
12292
12555
  if (isScreenReaderEnabled && ariaHidden)
12293
12556
  return null;
12294
- return $createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap: wrap }, internal_transform: transform }, childrenOrAriaLabel);
12557
+ return import_react12.default.createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap: wrap }, internal_transform: transform }, childrenOrAriaLabel);
12295
12558
  }
12296
12559
 
12297
12560
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/ErrorOverview.js
12298
- var cleanupPath = (path) => path?.replace(`file://${cwd()}/`, ""), stackUtils = new import_stack_utils.default({
12561
+ var cleanupPath = (path) => {
12562
+ return path?.replace(`file://${cwd()}/`, "");
12563
+ }, stackUtils = new import_stack_utils.default({
12299
12564
  cwd: cwd(),
12300
12565
  internals: import_stack_utils.default.nodeInternals()
12301
12566
  });
@@ -12308,19 +12573,19 @@ function ErrorOverview({ error }) {
12308
12573
  for (let { line } of excerpt)
12309
12574
  lineWidth = Math.max(lineWidth, String(line).length);
12310
12575
  }
12311
- return $createElement(Box_default, { flexDirection: "column", padding: 1 }, $createElement(Box_default, null, $createElement(Text, { backgroundColor: "red", color: "white" }, " ", "ERROR", " "), $createElement(Text, null, " ", error.message)), origin && filePath ? $createElement(Box_default, { marginTop: 1 }, $createElement(Text, { dimColor: !0 }, filePath, ":", origin.line, ":", origin.column)) : null, origin && excerpt ? $createElement(Box_default, { marginTop: 1, flexDirection: "column" }, excerpt.map(({ line, value }) => $createElement(Box_default, { key: line }, $createElement(Box_default, { width: lineWidth + 1 }, $createElement(Text, { dimColor: line !== origin.line, backgroundColor: line === origin.line ? "red" : void 0, color: line === origin.line ? "white" : void 0, "aria-label": line === origin.line ? `Line ${line}, error` : `Line ${line}` }, String(line).padStart(lineWidth, " "), ":")), $createElement(Text, { key: line, backgroundColor: line === origin.line ? "red" : void 0, color: line === origin.line ? "white" : void 0 }, " " + value)))) : null, error.stack ? $createElement(Box_default, { marginTop: 1, flexDirection: "column" }, error.stack.split(`
12576
+ return import_react13.default.createElement(Box_default, { flexDirection: "column", padding: 1 }, import_react13.default.createElement(Box_default, null, import_react13.default.createElement(Text, { backgroundColor: "red", color: "white" }, " ", "ERROR", " "), import_react13.default.createElement(Text, null, " ", error.message)), origin && filePath ? import_react13.default.createElement(Box_default, { marginTop: 1 }, import_react13.default.createElement(Text, { dimColor: !0 }, filePath, ":", origin.line, ":", origin.column)) : null, origin && excerpt ? import_react13.default.createElement(Box_default, { marginTop: 1, flexDirection: "column" }, excerpt.map(({ line, value }) => import_react13.default.createElement(Box_default, { key: line }, import_react13.default.createElement(Box_default, { width: lineWidth + 1 }, import_react13.default.createElement(Text, { dimColor: line !== origin.line, backgroundColor: line === origin.line ? "red" : void 0, color: line === origin.line ? "white" : void 0, "aria-label": line === origin.line ? `Line ${line}, error` : `Line ${line}` }, String(line).padStart(lineWidth, " "), ":")), import_react13.default.createElement(Text, { key: line, backgroundColor: line === origin.line ? "red" : void 0, color: line === origin.line ? "white" : void 0 }, " " + value)))) : null, error.stack ? import_react13.default.createElement(Box_default, { marginTop: 1, flexDirection: "column" }, error.stack.split(`
12312
12577
  `).slice(1).map((line) => {
12313
12578
  let parsedLine = stackUtils.parseLine(line), lineCount = stackLineCounts.get(line) ?? 0;
12314
12579
  stackLineCounts.set(line, lineCount + 1);
12315
12580
  let key = `${line}-${lineCount}`;
12316
12581
  if (!parsedLine?.file || !parsedLine.line || !parsedLine.column)
12317
- return $createElement(Box_default, { key }, $createElement(Text, { dimColor: !0 }, "- "), $createElement(Text, { dimColor: !0, bold: !0 }, line, "\\t", " "));
12318
- return $createElement(Box_default, { key }, $createElement(Text, { dimColor: !0 }, "- "), $createElement(Text, { dimColor: !0, bold: !0 }, parsedLine.function), $createElement(Text, { dimColor: !0, color: "gray", "aria-label": `at ${cleanupPath(parsedLine.file) ?? ""} line ${parsedLine.line} column ${parsedLine.column}` }, " ", "(", cleanupPath(parsedLine.file) ?? "", ":", parsedLine.line, ":", parsedLine.column, ")"));
12582
+ return import_react13.default.createElement(Box_default, { key }, import_react13.default.createElement(Text, { dimColor: !0 }, "- "), import_react13.default.createElement(Text, { dimColor: !0, bold: !0 }, line, "\\t", " "));
12583
+ return import_react13.default.createElement(Box_default, { key }, import_react13.default.createElement(Text, { dimColor: !0 }, "- "), import_react13.default.createElement(Text, { dimColor: !0, bold: !0 }, parsedLine.function), import_react13.default.createElement(Text, { dimColor: !0, color: "gray", "aria-label": `at ${cleanupPath(parsedLine.file) ?? ""} line ${parsedLine.line} column ${parsedLine.column}` }, " ", "(", cleanupPath(parsedLine.file) ?? "", ":", parsedLine.line, ":", parsedLine.column, ")"));
12319
12584
  })) : null);
12320
12585
  }
12321
12586
 
12322
12587
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/ErrorBoundary.js
12323
- class ErrorBoundary extends $PureComponent {
12588
+ class ErrorBoundary extends import_react14.PureComponent {
12324
12589
  static displayName = "InternalErrorBoundary";
12325
12590
  static getDerivedStateFromError(error) {
12326
12591
  return { error };
@@ -12333,25 +12598,25 @@ class ErrorBoundary extends $PureComponent {
12333
12598
  }
12334
12599
  render() {
12335
12600
  if (this.state.error)
12336
- return $createElement(ErrorOverview, { error: this.state.error });
12601
+ return import_react14.default.createElement(ErrorOverview, { error: this.state.error });
12337
12602
  return this.props.children;
12338
12603
  }
12339
12604
  }
12340
12605
 
12341
12606
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/App.js
12342
- var tab = "\t", shiftTab = "\x1B[Z", escape2 = "\x1B";
12607
+ var tab = "\t", shiftTab = "\x1B[Z", escape = "\x1B";
12343
12608
  function App({ children, stdin, stdout, stderr, writeToStdout, writeToStderr, exitOnCtrlC, onExit, onWaitUntilRenderFlush, onSuspendTerminal, onRegisterInputControl, setCursorPosition, interactive, renderThrottleMs }) {
12344
- let [isFocusEnabled, setIsFocusEnabled] = $useState(!0), [activeFocusId, setActiveFocusId] = $useState(void 0), [, setFocusables] = $useState([]), focusablesCountRef = $useRef(0), animationSubscribersRef = $useRef(/* @__PURE__ */ new Map), animationTimerRef = $useRef(void 0), rawModeEnabledCount = $useRef(0), pendingDisableRawModeRef = $useRef(!1), bracketedPasteModeEnabledCount = $useRef(0), internal_eventEmitter = $useRef(new EventEmitter2);
12609
+ let [isFocusEnabled, setIsFocusEnabled] = import_react15.useState(!0), [activeFocusId, setActiveFocusId] = import_react15.useState(void 0), [, setFocusables] = import_react15.useState([]), focusablesCountRef = import_react15.useRef(0), animationSubscribersRef = import_react15.useRef(/* @__PURE__ */ new Map), animationTimerRef = import_react15.useRef(void 0), rawModeEnabledCount = import_react15.useRef(0), pendingDisableRawModeRef = import_react15.useRef(!1), bracketedPasteModeEnabledCount = import_react15.useRef(0), internal_eventEmitter = import_react15.useRef(new EventEmitter2);
12345
12610
  internal_eventEmitter.current.setMaxListeners(1 / 0);
12346
- let readableListenerRef = $useRef(void 0), inputParserRef = $useRef(createInputParser()), pendingInputFlushRef = $useRef(void 0), pendingInputFlushDelayMilliseconds = 20, clearPendingInputFlush = $useCallback(() => {
12611
+ let readableListenerRef = import_react15.useRef(void 0), inputParserRef = import_react15.useRef(createInputParser()), pendingInputFlushRef = import_react15.useRef(void 0), pendingInputFlushDelayMilliseconds = 20, clearPendingInputFlush = import_react15.useCallback(() => {
12347
12612
  if (!pendingInputFlushRef.current)
12348
12613
  return;
12349
12614
  clearTimeout(pendingInputFlushRef.current), pendingInputFlushRef.current = void 0;
12350
- }, []), clearAnimationTimer = $useCallback(() => {
12615
+ }, []), clearAnimationTimer = import_react15.useCallback(() => {
12351
12616
  if (!animationTimerRef.current)
12352
12617
  return;
12353
12618
  clearTimeout(animationTimerRef.current), animationTimerRef.current = void 0;
12354
- }, []), scheduleAnimationTick = $useCallback(() => {
12619
+ }, []), scheduleAnimationTick = import_react15.useCallback(() => {
12355
12620
  if (clearAnimationTimer(), animationSubscribersRef.current.size === 0)
12356
12621
  return;
12357
12622
  let nextDueTime = Number.POSITIVE_INFINITY;
@@ -12370,15 +12635,15 @@ function App({ children, stdin, stdout, stderr, writeToStdout, writeToStderr, ex
12370
12635
  }
12371
12636
  scheduleAnimationTick();
12372
12637
  }, delay);
12373
- }, [clearAnimationTimer]), animationSubscribe = $useCallback((callback, interval) => {
12374
- let startTime = performance.now();
12638
+ }, [clearAnimationTimer]), animationSubscribe = import_react15.useCallback((callback, interval) => {
12639
+ let startTime2 = performance.now();
12375
12640
  return animationSubscribersRef.current.set(callback, {
12376
12641
  callback,
12377
12642
  interval,
12378
- startTime,
12379
- nextDueTime: startTime + interval
12643
+ startTime: startTime2,
12644
+ nextDueTime: startTime2 + interval
12380
12645
  }), scheduleAnimationTick(), {
12381
- startTime,
12646
+ startTime: startTime2,
12382
12647
  unsubscribe() {
12383
12648
  if (animationSubscribersRef.current.delete(callback), animationSubscribersRef.current.size === 0) {
12384
12649
  clearAnimationTimer();
@@ -12388,31 +12653,33 @@ function App({ children, stdin, stdout, stderr, writeToStdout, writeToStderr, ex
12388
12653
  }
12389
12654
  };
12390
12655
  }, [clearAnimationTimer, scheduleAnimationTick]);
12391
- $useEffect(() => () => {
12392
- clearAnimationTimer();
12656
+ import_react15.useEffect(() => {
12657
+ return () => {
12658
+ clearAnimationTimer();
12659
+ };
12393
12660
  }, [clearAnimationTimer]);
12394
- let isRawModeSupported = stdin.isTTY, detachReadableListener = $useCallback(() => {
12661
+ let isRawModeSupported = stdin.isTTY, detachReadableListener = import_react15.useCallback(() => {
12395
12662
  if (!readableListenerRef.current)
12396
12663
  return;
12397
12664
  stdin.removeListener("readable", readableListenerRef.current), readableListenerRef.current = void 0;
12398
- }, [stdin]), clearInputState = $useCallback(() => {
12665
+ }, [stdin]), clearInputState = import_react15.useCallback(() => {
12399
12666
  inputParserRef.current.reset(), clearPendingInputFlush(), detachReadableListener();
12400
- }, [clearPendingInputFlush, detachReadableListener]), disableRawMode = $useCallback(() => {
12667
+ }, [clearPendingInputFlush, detachReadableListener]), disableRawMode = import_react15.useCallback(() => {
12401
12668
  pendingDisableRawModeRef.current = !1, stdin.setRawMode(!1), stdin.unref(), rawModeEnabledCount.current = 0, clearInputState();
12402
- }, [stdin, clearInputState]), handleExit = $useCallback((errorOrResult) => {
12669
+ }, [stdin, clearInputState]), handleExit = import_react15.useCallback((errorOrResult) => {
12403
12670
  if (isRawModeSupported && (rawModeEnabledCount.current > 0 || pendingDisableRawModeRef.current))
12404
12671
  disableRawMode();
12405
12672
  onExit(errorOrResult);
12406
- }, [isRawModeSupported, disableRawMode, onExit]), handleInput = $useCallback((input) => {
12673
+ }, [isRawModeSupported, disableRawMode, onExit]), handleInput = import_react15.useCallback((input) => {
12407
12674
  if (input === "\x03" && exitOnCtrlC) {
12408
12675
  handleExit();
12409
12676
  return;
12410
12677
  }
12411
- if (input === escape2 && isFocusEnabled)
12678
+ if (input === escape && isFocusEnabled)
12412
12679
  setActiveFocusId(void 0);
12413
- }, [exitOnCtrlC, handleExit, isFocusEnabled]), emitInput = $useCallback((input) => {
12680
+ }, [exitOnCtrlC, handleExit, isFocusEnabled]), emitInput = import_react15.useCallback((input) => {
12414
12681
  handleInput(input), internal_eventEmitter.current.emit("input", input);
12415
- }, [handleInput]), schedulePendingInputFlush = $useCallback(() => {
12682
+ }, [handleInput]), schedulePendingInputFlush = import_react15.useCallback(() => {
12416
12683
  clearPendingInputFlush(), pendingInputFlushRef.current = setTimeout(() => {
12417
12684
  pendingInputFlushRef.current = void 0;
12418
12685
  let pendingEscape = inputParserRef.current.flushPendingEscape();
@@ -12420,7 +12687,7 @@ function App({ children, stdin, stdout, stderr, writeToStdout, writeToStderr, ex
12420
12687
  return;
12421
12688
  emitInput(pendingEscape);
12422
12689
  }, pendingInputFlushDelayMilliseconds);
12423
- }, [clearPendingInputFlush, emitInput]), handleReadable = $useCallback(() => {
12690
+ }, [clearPendingInputFlush, emitInput]), handleReadable = import_react15.useCallback(() => {
12424
12691
  clearPendingInputFlush();
12425
12692
  let chunk;
12426
12693
  while ((chunk = stdin.read()) !== null) {
@@ -12438,11 +12705,11 @@ function App({ children, stdin, stdout, stderr, writeToStdout, writeToStderr, ex
12438
12705
  }
12439
12706
  if (inputParserRef.current.hasPendingEscape())
12440
12707
  schedulePendingInputFlush();
12441
- }, [stdin, emitInput, clearPendingInputFlush, schedulePendingInputFlush]), attachReadableListener = $useCallback(() => {
12708
+ }, [stdin, emitInput, clearPendingInputFlush, schedulePendingInputFlush]), attachReadableListener = import_react15.useCallback(() => {
12442
12709
  if (readableListenerRef.current)
12443
12710
  return;
12444
12711
  readableListenerRef.current = handleReadable, stdin.addListener("readable", handleReadable);
12445
- }, [stdin, handleReadable]), handleSetRawMode = $useCallback((isEnabled) => {
12712
+ }, [stdin, handleReadable]), handleSetRawMode = import_react15.useCallback((isEnabled) => {
12446
12713
  if (!isRawModeSupported)
12447
12714
  if (stdin === process11.stdin)
12448
12715
  throw Error(`Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default.
@@ -12474,7 +12741,7 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
12474
12741
  attachReadableListener,
12475
12742
  clearInputState,
12476
12743
  disableRawMode
12477
- ]), handleSetBracketedPasteMode = $useCallback((isEnabled) => {
12744
+ ]), handleSetBracketedPasteMode = import_react15.useCallback((isEnabled) => {
12478
12745
  if (!stdout.isTTY)
12479
12746
  return;
12480
12747
  if (isEnabled) {
@@ -12487,10 +12754,10 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
12487
12754
  return;
12488
12755
  if (--bracketedPasteModeEnabledCount.current === 0)
12489
12756
  stdout.write("\x1B[?2004l");
12490
- }, [stdout]), suspendedInputStateRef = $useRef({
12757
+ }, [stdout]), suspendedInputStateRef = import_react15.useRef({
12491
12758
  rawMode: !1,
12492
12759
  bracketedPaste: !1
12493
- }), pauseInput = $useCallback(() => {
12760
+ }), pauseInput = import_react15.useCallback(() => {
12494
12761
  let wasRawMode = isRawModeSupported && rawModeEnabledCount.current > 0, wasBracketedPaste = bracketedPasteModeEnabledCount.current > 0;
12495
12762
  if (suspendedInputStateRef.current = {
12496
12763
  rawMode: wasRawMode,
@@ -12501,7 +12768,7 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
12501
12768
  } catch {}
12502
12769
  if (wasRawMode)
12503
12770
  stdin.setRawMode(!1), stdin.unref(), clearInputState();
12504
- }, [isRawModeSupported, stdin, stdout, clearInputState]), resumeInput = $useCallback(() => {
12771
+ }, [isRawModeSupported, stdin, stdout, clearInputState]), resumeInput = import_react15.useCallback(() => {
12505
12772
  let { rawMode, bracketedPaste } = suspendedInputStateRef.current;
12506
12773
  if (rawMode)
12507
12774
  stdin.setEncoding("utf8"), stdin.ref(), stdin.setRawMode(!0), attachReadableListener();
@@ -12510,37 +12777,45 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
12510
12777
  stdout.write("\x1B[?2004h");
12511
12778
  } catch {}
12512
12779
  }, [stdin, stdout, attachReadableListener]);
12513
- $useInsertionEffect(() => {
12780
+ import_react15.useInsertionEffect(() => {
12514
12781
  onRegisterInputControl(pauseInput, resumeInput);
12515
12782
  }, [onRegisterInputControl, pauseInput, resumeInput]);
12516
- let findNextFocusable = $useCallback((currentFocusables, currentActiveFocusId) => {
12517
- let activeIndex = currentFocusables.findIndex((focusable) => focusable.id === currentActiveFocusId);
12783
+ let findNextFocusable = import_react15.useCallback((currentFocusables, currentActiveFocusId) => {
12784
+ let activeIndex = currentFocusables.findIndex((focusable) => {
12785
+ return focusable.id === currentActiveFocusId;
12786
+ });
12518
12787
  for (let index = activeIndex + 1;index < currentFocusables.length; index++) {
12519
12788
  let focusable = currentFocusables[index];
12520
12789
  if (focusable?.isActive)
12521
12790
  return focusable.id;
12522
12791
  }
12523
12792
  return;
12524
- }, []), findPreviousFocusable = $useCallback((currentFocusables, currentActiveFocusId) => {
12525
- let activeIndex = currentFocusables.findIndex((focusable) => focusable.id === currentActiveFocusId);
12793
+ }, []), findPreviousFocusable = import_react15.useCallback((currentFocusables, currentActiveFocusId) => {
12794
+ let activeIndex = currentFocusables.findIndex((focusable) => {
12795
+ return focusable.id === currentActiveFocusId;
12796
+ });
12526
12797
  for (let index = activeIndex - 1;index >= 0; index--) {
12527
12798
  let focusable = currentFocusables[index];
12528
12799
  if (focusable?.isActive)
12529
12800
  return focusable.id;
12530
12801
  }
12531
12802
  return;
12532
- }, []), focusNext = $useCallback(() => {
12533
- setFocusables((currentFocusables) => (setActiveFocusId((currentActiveFocusId) => {
12534
- let firstFocusableId = currentFocusables.find((focusable) => focusable.isActive)?.id;
12535
- return findNextFocusable(currentFocusables, currentActiveFocusId) ?? firstFocusableId;
12536
- }), currentFocusables));
12537
- }, [findNextFocusable]), focusPrevious = $useCallback(() => {
12538
- setFocusables((currentFocusables) => (setActiveFocusId((currentActiveFocusId) => {
12539
- let lastFocusableId = currentFocusables.findLast((focusable) => focusable.isActive)?.id;
12540
- return findPreviousFocusable(currentFocusables, currentActiveFocusId) ?? lastFocusableId;
12541
- }), currentFocusables));
12803
+ }, []), focusNext = import_react15.useCallback(() => {
12804
+ setFocusables((currentFocusables) => {
12805
+ return setActiveFocusId((currentActiveFocusId) => {
12806
+ let firstFocusableId = currentFocusables.find((focusable) => focusable.isActive)?.id;
12807
+ return findNextFocusable(currentFocusables, currentActiveFocusId) ?? firstFocusableId;
12808
+ }), currentFocusables;
12809
+ });
12810
+ }, [findNextFocusable]), focusPrevious = import_react15.useCallback(() => {
12811
+ setFocusables((currentFocusables) => {
12812
+ return setActiveFocusId((currentActiveFocusId) => {
12813
+ let lastFocusableId = currentFocusables.findLast((focusable) => focusable.isActive)?.id;
12814
+ return findPreviousFocusable(currentFocusables, currentActiveFocusId) ?? lastFocusableId;
12815
+ }), currentFocusables;
12816
+ });
12542
12817
  }, [findPreviousFocusable]);
12543
- $useEffect(() => {
12818
+ import_react15.useEffect(() => {
12544
12819
  let handleTabNavigation = (input) => {
12545
12820
  if (!isFocusEnabled || focusablesCountRef.current === 0)
12546
12821
  return;
@@ -12555,39 +12830,43 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
12555
12830
  emitter.off("input", handleTabNavigation);
12556
12831
  };
12557
12832
  }, [isFocusEnabled, focusNext, focusPrevious]);
12558
- let enableFocus = $useCallback(() => {
12833
+ let enableFocus = import_react15.useCallback(() => {
12559
12834
  setIsFocusEnabled(!0);
12560
- }, []), disableFocus = $useCallback(() => {
12835
+ }, []), disableFocus = import_react15.useCallback(() => {
12561
12836
  setIsFocusEnabled(!1);
12562
- }, []), focus = $useCallback((id) => {
12837
+ }, []), focus = import_react15.useCallback((id) => {
12563
12838
  setFocusables((currentFocusables) => {
12564
12839
  if (currentFocusables.some((focusable) => focusable?.id === id))
12565
12840
  setActiveFocusId(id);
12566
12841
  return currentFocusables;
12567
12842
  });
12568
- }, []), addFocusable = $useCallback((id, { autoFocus }) => {
12569
- if (setFocusables((currentFocusables) => (focusablesCountRef.current = currentFocusables.length + 1, [
12570
- ...currentFocusables,
12571
- {
12572
- id,
12573
- isActive: !0
12574
- }
12575
- ])), autoFocus)
12843
+ }, []), addFocusable = import_react15.useCallback((id, { autoFocus }) => {
12844
+ if (setFocusables((currentFocusables) => {
12845
+ return focusablesCountRef.current = currentFocusables.length + 1, [
12846
+ ...currentFocusables,
12847
+ {
12848
+ id,
12849
+ isActive: !0
12850
+ }
12851
+ ];
12852
+ }), autoFocus)
12576
12853
  setActiveFocusId((currentActiveFocusId) => {
12577
12854
  if (!currentActiveFocusId)
12578
12855
  return id;
12579
12856
  return currentActiveFocusId;
12580
12857
  });
12581
- }, []), removeFocusable = $useCallback((id) => {
12858
+ }, []), removeFocusable = import_react15.useCallback((id) => {
12582
12859
  setActiveFocusId((currentActiveFocusId) => {
12583
12860
  if (currentActiveFocusId === id)
12584
12861
  return;
12585
12862
  return currentActiveFocusId;
12586
12863
  }), setFocusables((currentFocusables) => {
12587
- let filtered = currentFocusables.filter((focusable) => focusable.id !== id);
12864
+ let filtered = currentFocusables.filter((focusable) => {
12865
+ return focusable.id !== id;
12866
+ });
12588
12867
  return focusablesCountRef.current = filtered.length, filtered;
12589
12868
  });
12590
- }, []), activateFocusable = $useCallback((id) => {
12869
+ }, []), activateFocusable = import_react15.useCallback((id) => {
12591
12870
  setFocusables((currentFocusables) => currentFocusables.map((focusable) => {
12592
12871
  if (focusable.id !== id)
12593
12872
  return focusable;
@@ -12596,7 +12875,7 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
12596
12875
  isActive: !0
12597
12876
  };
12598
12877
  }));
12599
- }, []), deactivateFocusable = $useCallback((id) => {
12878
+ }, []), deactivateFocusable = import_react15.useCallback((id) => {
12600
12879
  setActiveFocusId((currentActiveFocusId) => {
12601
12880
  if (currentActiveFocusId === id)
12602
12881
  return;
@@ -12610,23 +12889,25 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
12610
12889
  };
12611
12890
  }));
12612
12891
  }, []);
12613
- $useEffect(() => () => {
12614
- let canWriteToStdout = !stdout.destroyed && !stdout.writableEnded;
12615
- if (interactive && canWriteToStdout)
12616
- cli_cursor_default.show(stdout);
12617
- if (isRawModeSupported && (rawModeEnabledCount.current > 0 || pendingDisableRawModeRef.current))
12618
- disableRawMode();
12619
- if (bracketedPasteModeEnabledCount.current > 0) {
12620
- if (stdout.isTTY && canWriteToStdout)
12621
- stdout.write("\x1B[?2004l");
12622
- bracketedPasteModeEnabledCount.current = 0;
12623
- }
12892
+ import_react15.useEffect(() => {
12893
+ return () => {
12894
+ let canWriteToStdout = !stdout.destroyed && !stdout.writableEnded;
12895
+ if (interactive && canWriteToStdout)
12896
+ cli_cursor_default.show(stdout);
12897
+ if (isRawModeSupported && (rawModeEnabledCount.current > 0 || pendingDisableRawModeRef.current))
12898
+ disableRawMode();
12899
+ if (bracketedPasteModeEnabledCount.current > 0) {
12900
+ if (stdout.isTTY && canWriteToStdout)
12901
+ stdout.write("\x1B[?2004l");
12902
+ bracketedPasteModeEnabledCount.current = 0;
12903
+ }
12904
+ };
12624
12905
  }, [stdout, isRawModeSupported, disableRawMode, interactive]);
12625
- let appContextValue = $useMemo(() => ({
12906
+ let appContextValue = import_react15.useMemo(() => ({
12626
12907
  exit: handleExit,
12627
12908
  waitUntilRenderFlush: onWaitUntilRenderFlush,
12628
12909
  suspendTerminal: onSuspendTerminal
12629
- }), [handleExit, onWaitUntilRenderFlush, onSuspendTerminal]), stdinContextValue = $useMemo(() => ({
12910
+ }), [handleExit, onWaitUntilRenderFlush, onSuspendTerminal]), stdinContextValue = import_react15.useMemo(() => ({
12630
12911
  stdin,
12631
12912
  setRawMode: handleSetRawMode,
12632
12913
  setBracketedPasteMode: handleSetBracketedPasteMode,
@@ -12639,15 +12920,15 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
12639
12920
  handleSetBracketedPasteMode,
12640
12921
  isRawModeSupported,
12641
12922
  exitOnCtrlC
12642
- ]), stdoutContextValue = $useMemo(() => ({
12923
+ ]), stdoutContextValue = import_react15.useMemo(() => ({
12643
12924
  stdout,
12644
12925
  write: writeToStdout
12645
- }), [stdout, writeToStdout]), stderrContextValue = $useMemo(() => ({
12926
+ }), [stdout, writeToStdout]), stderrContextValue = import_react15.useMemo(() => ({
12646
12927
  stderr,
12647
12928
  write: writeToStderr
12648
- }), [stderr, writeToStderr]), cursorContextValue = $useMemo(() => ({
12929
+ }), [stderr, writeToStderr]), cursorContextValue = import_react15.useMemo(() => ({
12649
12930
  setCursorPosition
12650
- }), [setCursorPosition]), focusContextValue = $useMemo(() => ({
12931
+ }), [setCursorPosition]), focusContextValue = import_react15.useMemo(() => ({
12651
12932
  activeId: activeFocusId,
12652
12933
  add: addFocusable,
12653
12934
  remove: removeFocusable,
@@ -12669,11 +12950,11 @@ Read about how to prevent this error on https://github.com/vadimdemedes/ink/#isr
12669
12950
  focusNext,
12670
12951
  focusPrevious,
12671
12952
  focus
12672
- ]), animationContextValue = $useMemo(() => ({
12953
+ ]), animationContextValue = import_react15.useMemo(() => ({
12673
12954
  renderThrottleMs,
12674
12955
  subscribe: animationSubscribe
12675
12956
  }), [animationSubscribe, renderThrottleMs]);
12676
- return $createElement(AppContext_default.Provider, { value: appContextValue }, $createElement(StdinContext_default.Provider, { value: stdinContextValue }, $createElement(StdoutContext_default.Provider, { value: stdoutContextValue }, $createElement(StderrContext_default.Provider, { value: stderrContextValue }, $createElement(FocusContext_default.Provider, { value: focusContextValue }, $createElement(AnimationContext_default.Provider, { value: animationContextValue }, $createElement(CursorContext_default.Provider, { value: cursorContextValue }, $createElement(ErrorBoundary, { onError: handleExit }, children))))))));
12957
+ return import_react15.default.createElement(AppContext_default.Provider, { value: appContextValue }, import_react15.default.createElement(StdinContext_default.Provider, { value: stdinContextValue }, import_react15.default.createElement(StdoutContext_default.Provider, { value: stdoutContextValue }, import_react15.default.createElement(StderrContext_default.Provider, { value: stderrContextValue }, import_react15.default.createElement(FocusContext_default.Provider, { value: focusContextValue }, import_react15.default.createElement(AnimationContext_default.Provider, { value: animationContextValue }, import_react15.default.createElement(CursorContext_default.Provider, { value: cursorContextValue }, import_react15.default.createElement(ErrorBoundary, { onError: handleExit }, children))))))));
12677
12958
  }
12678
12959
  App.displayName = "InternalApp";
12679
12960
  var App_default = App;
@@ -12704,7 +12985,7 @@ var kittyModifiers = {
12704
12985
  };
12705
12986
 
12706
12987
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/ink.js
12707
- var noop2 = () => {}, textEncoder = /* @__PURE__ */ new TextEncoder, yieldImmediate = async () => new Promise((resolve) => {
12988
+ var noop = () => {}, textEncoder = /* @__PURE__ */ new TextEncoder, yieldImmediate = async () => new Promise((resolve) => {
12708
12989
  setImmediate(resolve);
12709
12990
  }), kittyQueryEscapeByte = 27, kittyQueryOpenBracketByte = 91, kittyQueryQuestionMarkByte = 63, kittyQueryLetterByte = 117, zeroByte = 48, nineByte = 57, isDigitByte = (byte) => byte >= zeroByte && byte <= nineByte, matchKittyQueryResponse = (buffer, startIndex) => {
12710
12991
  if (buffer[startIndex] !== kittyQueryEscapeByte || buffer[startIndex + 1] !== kittyQueryOpenBracketByte || buffer[startIndex + 2] !== kittyQueryQuestionMarkByte)
@@ -12744,7 +13025,9 @@ var noop2 = () => {}, textEncoder = /* @__PURE__ */ new TextEncoder, yieldImmedi
12744
13025
  if (isWindowsConsole && (wasFullscreen || isFullscreen))
12745
13026
  return !0;
12746
13027
  return wasOverflowing || isOverflowing && hadPreviousFrame || isLeavingFullscreen || shouldClearOnUnmount;
12747
- }, isErrorInput = (value) => value instanceof Error || Object.prototype.toString.call(value) === "[object Error]", getWritableStreamState = (stdout) => {
13028
+ }, isErrorInput = (value) => {
13029
+ return value instanceof Error || Object.prototype.toString.call(value) === "[object Error]";
13030
+ }, getWritableStreamState = (stdout) => {
12748
13031
  let canWriteToStdout = !stdout.destroyed && !stdout.writableEnded && (stdout.writable ?? !0), hasWritableState = stdout._writableState !== void 0 || stdout.writableLength !== void 0;
12749
13032
  return {
12750
13033
  canWriteToStdout,
@@ -12830,7 +13113,7 @@ class Ink {
12830
13113
  };
12831
13114
  this.initKittyKeyboard(), this.exitPromise = new Promise((resolve, reject) => {
12832
13115
  this.resolveExitPromise = resolve, this.rejectExitPromise = reject;
12833
- }), this.exitPromise.catch(noop2);
13116
+ }), this.exitPromise.catch(noop);
12834
13117
  }
12835
13118
  resized = () => {
12836
13119
  let currentWidth = getWindowSize(this.options.stdout).columns;
@@ -12876,8 +13159,8 @@ class Ink {
12876
13159
  }
12877
13160
  if (this.nextRenderCommit)
12878
13161
  this.nextRenderCommit.resolve(), this.nextRenderCommit = void 0;
12879
- let startTime = performance.now(), { output, outputHeight, staticOutput } = renderer_default(this.rootNode, this.isScreenReaderEnabled);
12880
- this.options.onRender?.({ renderTime: performance.now() - startTime });
13162
+ let startTime2 = performance.now(), { output, outputHeight, staticOutput } = renderer_default(this.rootNode, this.isScreenReaderEnabled);
13163
+ this.options.onRender?.({ renderTime: performance.now() - startTime2 });
12881
13164
  let hasStaticOutput = staticOutput && staticOutput !== `
12882
13165
  `;
12883
13166
  if (this.options.debug) {
@@ -12898,7 +13181,7 @@ class Ink {
12898
13181
  if (sync)
12899
13182
  this.options.stdout.write(bsu);
12900
13183
  if (hasStaticOutput) {
12901
- let erase = this.lastOutputHeight > 0 ? eraseLines(this.lastOutputHeight) : "";
13184
+ let erase = this.lastOutputHeight > 0 ? exports_base.eraseLines(this.lastOutputHeight) : "";
12902
13185
  this.options.stdout.write(erase + staticOutput), this.lastOutputHeight = 0;
12903
13186
  }
12904
13187
  if (output === this.lastOutput && !hasStaticOutput) {
@@ -12913,7 +13196,7 @@ class Ink {
12913
13196
  if (hasStaticOutput)
12914
13197
  this.options.stdout.write(wrappedOutput);
12915
13198
  else {
12916
- let erase = this.lastOutputHeight > 0 ? eraseLines(this.lastOutputHeight) : "";
13199
+ let erase = this.lastOutputHeight > 0 ? exports_base.eraseLines(this.lastOutputHeight) : "";
12917
13200
  this.options.stdout.write(erase + wrappedOutput);
12918
13201
  }
12919
13202
  if (this.lastOutput = output, this.lastOutputToRender = wrappedOutput, this.lastOutputHeight = wrappedOutput === "" ? 0 : wrappedOutput.split(`
@@ -12926,11 +13209,11 @@ class Ink {
12926
13209
  this.renderInteractiveFrame(output, outputHeight, hasStaticOutput ? staticOutput : "");
12927
13210
  };
12928
13211
  render(node) {
12929
- let tree = $createElement(accessibilityContext.Provider, { value: { isScreenReaderEnabled: this.isScreenReaderEnabled } }, $createElement(App_default, { stdin: this.options.stdin, stdout: this.options.stdout, stderr: this.options.stderr, exitOnCtrlC: this.options.exitOnCtrlC, interactive: this.interactive, renderThrottleMs: this.renderThrottleMs, writeToStdout: this.writeToStdout, writeToStderr: this.writeToStderr, setCursorPosition: this.setCursorPosition, onExit: this.handleAppExit, onWaitUntilRenderFlush: this.waitUntilRenderFlush, onSuspendTerminal: this.suspendTerminal, onRegisterInputControl: this.registerInputControl }, node));
13212
+ let tree = import_react16.default.createElement(accessibilityContext.Provider, { value: { isScreenReaderEnabled: this.isScreenReaderEnabled } }, import_react16.default.createElement(App_default, { stdin: this.options.stdin, stdout: this.options.stdout, stderr: this.options.stderr, exitOnCtrlC: this.options.exitOnCtrlC, interactive: this.interactive, renderThrottleMs: this.renderThrottleMs, writeToStdout: this.writeToStdout, writeToStderr: this.writeToStderr, setCursorPosition: this.setCursorPosition, onExit: this.handleAppExit, onWaitUntilRenderFlush: this.waitUntilRenderFlush, onSuspendTerminal: this.suspendTerminal, onRegisterInputControl: this.registerInputControl }, node));
12930
13213
  if (this.options.concurrent)
12931
- reconciler_default.updateContainer(tree, this.container, null, noop2);
13214
+ reconciler_default.updateContainer(tree, this.container, null, noop);
12932
13215
  else
12933
- reconciler_default.updateContainerSync(tree, this.container, null, noop2), reconciler_default.flushSyncWork();
13216
+ reconciler_default.updateContainerSync(tree, this.container, null, noop), reconciler_default.flushSyncWork();
12934
13217
  }
12935
13218
  writeToStdout(data) {
12936
13219
  if (this.isUnmounted)
@@ -12991,7 +13274,7 @@ class Ink {
12991
13274
  if (this.kittyProtocolEnabled)
12992
13275
  this.writeBestEffort(this.options.stdout, "\x1B[<u");
12993
13276
  if (this.alternateScreen)
12994
- this.writeBestEffort(this.options.stdout, exitAlternativeScreen), this.writeBestEffort(this.options.stdout, showCursorEscape), this.alternateScreen = !1;
13277
+ this.writeBestEffort(this.options.stdout, exports_base.exitAlternativeScreen), this.writeBestEffort(this.options.stdout, showCursorEscape), this.alternateScreen = !1;
12995
13278
  if (!this.interactive)
12996
13279
  this.options.stdout.write(this.options.debug ? `
12997
13280
  ` : this.lastOutput + `
@@ -13014,9 +13297,9 @@ class Ink {
13014
13297
  setImmediate(resolveOrReject);
13015
13298
  }, concurrentReconciler = reconciler_default;
13016
13299
  if (this.options.concurrent)
13017
- reconciler_default.updateContainerSync(null, this.container, null, noop2), reconciler_default.flushSyncWork(), concurrentReconciler.flushPassiveEffects?.(), finishUnmount();
13300
+ reconciler_default.updateContainerSync(null, this.container, null, noop), reconciler_default.flushSyncWork(), concurrentReconciler.flushPassiveEffects?.(), finishUnmount();
13018
13301
  else
13019
- reconciler_default.updateContainerSync(null, this.container, null, noop2), reconciler_default.flushSyncWork(), finishUnmount();
13302
+ reconciler_default.updateContainerSync(null, this.container, null, noop), reconciler_default.flushSyncWork(), finishUnmount();
13020
13303
  }
13021
13304
  async waitUntilExit() {
13022
13305
  if (!this.beforeExitHandler)
@@ -13088,7 +13371,7 @@ class Ink {
13088
13371
  }
13089
13372
  setAlternateScreen(enabled) {
13090
13373
  if (this.alternateScreen = this.resolveAlternateScreenOption(enabled, this.interactive), this.alternateScreen)
13091
- this.writeBestEffort(this.options.stdout, enterAlternativeScreen), this.writeBestEffort(this.options.stdout, hideCursorEscape);
13374
+ this.writeBestEffort(this.options.stdout, exports_base.enterAlternativeScreen), this.writeBestEffort(this.options.stdout, hideCursorEscape);
13092
13375
  }
13093
13376
  resolveInteractiveOption(interactive) {
13094
13377
  return interactive ?? (!is_in_ci_default && Boolean(this.options.stdout.isTTY));
@@ -13135,7 +13418,7 @@ class Ink {
13135
13418
  let sync = this.shouldSync();
13136
13419
  if (sync)
13137
13420
  this.options.stdout.write(bsu);
13138
- if (this.options.stdout.write(clearTerminal + this.fullStaticOutput + outputToRender), this.lastOutput = output, this.lastOutputToRender = outputToRender, this.lastOutputHeight = outputHeight, this.log.sync(outputToRender), sync)
13421
+ if (this.options.stdout.write(exports_base.clearTerminal + this.fullStaticOutput + outputToRender), this.lastOutput = output, this.lastOutputToRender = outputToRender, this.lastOutputHeight = outputHeight, this.log.sync(outputToRender), sync)
13139
13422
  this.options.stdout.write(esu);
13140
13423
  return;
13141
13424
  }
@@ -13198,7 +13481,7 @@ class Ink {
13198
13481
  if (this.log.clear(), this.log.done(), this.kittyProtocolEnabled)
13199
13482
  this.writeBestEffort(this.options.stdout, "\x1B[<u");
13200
13483
  if (this.alternateScreen)
13201
- this.writeBestEffort(this.options.stdout, exitAlternativeScreen);
13484
+ this.writeBestEffort(this.options.stdout, exports_base.exitAlternativeScreen);
13202
13485
  }
13203
13486
  this.pauseInput?.();
13204
13487
  } catch (error) {
@@ -13217,7 +13500,7 @@ class Ink {
13217
13500
  let stdout = this.options.stdout, { canWriteToStdout } = getWritableStreamState(stdout);
13218
13501
  if (canWriteToStdout) {
13219
13502
  if (this.alternateScreen)
13220
- this.writeBestEffort(this.options.stdout, enterAlternativeScreen);
13503
+ this.writeBestEffort(this.options.stdout, exports_base.enterAlternativeScreen);
13221
13504
  if (this.kittyProtocolEnabled && this.kittyFlags)
13222
13505
  this.writeBestEffort(this.options.stdout, `\x1B[>${resolveFlags(this.kittyFlags)}u`);
13223
13506
  }
@@ -13272,15 +13555,15 @@ var render = (node, options) => {
13272
13555
  `), instance;
13273
13556
  };
13274
13557
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/Static.js
13275
- init_react_production();
13558
+ var import_react17 = __toESM(require_react_production(), 1);
13276
13559
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/Transform.js
13277
- init_react_production();
13560
+ var import_react18 = __toESM(require_react_production(), 1);
13278
13561
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/Newline.js
13279
- init_react_production();
13562
+ var import_react19 = __toESM(require_react_production(), 1);
13280
13563
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/components/Spacer.js
13281
- init_react_production();
13564
+ var import_react20 = __toESM(require_react_production(), 1);
13282
13565
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/hooks/use-input.js
13283
- init_react_production();
13566
+ var import_react22 = __toESM(require_react_production(), 1);
13284
13567
 
13285
13568
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/parse-keypress.js
13286
13569
  var textDecoder = /* @__PURE__ */ new TextDecoder, metaKeyCodeRe = /^(?:\x1b)([a-zA-Z0-9])$/, fnKeyRe = /^(?:\x1b+)(O|N|\[|\[\[)(?:(\d+)(?:;(\d+))?([~^$])|(?:1;)?(\d+)?([a-zA-Z]))/, keyName = {
@@ -13356,32 +13639,36 @@ var textDecoder = /* @__PURE__ */ new TextDecoder, metaKeyCodeRe = /^(?:\x1b)([a
13356
13639
  "[7^": "home",
13357
13640
  "[8^": "end",
13358
13641
  "[Z": "tab"
13359
- }, nonAlphanumericKeys = [...Object.values(keyName), "backspace"], isShiftKey = (code) => [
13360
- "[a",
13361
- "[b",
13362
- "[c",
13363
- "[d",
13364
- "[e",
13365
- "[2$",
13366
- "[3$",
13367
- "[5$",
13368
- "[6$",
13369
- "[7$",
13370
- "[8$",
13371
- "[Z"
13372
- ].includes(code), isCtrlKey = (code) => [
13373
- "Oa",
13374
- "Ob",
13375
- "Oc",
13376
- "Od",
13377
- "Oe",
13378
- "[2^",
13379
- "[3^",
13380
- "[5^",
13381
- "[6^",
13382
- "[7^",
13383
- "[8^"
13384
- ].includes(code), kittyKeyRe = /^\x1b\[(\d+)(?:;(\d+)(?::(\d+))?(?:;([\d:]+))?)?u$/, kittySpecialKeyRe = /^\x1b\[(\d+);(\d+):(\d+)([A-Za-z~])$/, kittySpecialLetterKeys = {
13642
+ }, nonAlphanumericKeys = [...Object.values(keyName), "backspace"], isShiftKey = (code) => {
13643
+ return [
13644
+ "[a",
13645
+ "[b",
13646
+ "[c",
13647
+ "[d",
13648
+ "[e",
13649
+ "[2$",
13650
+ "[3$",
13651
+ "[5$",
13652
+ "[6$",
13653
+ "[7$",
13654
+ "[8$",
13655
+ "[Z"
13656
+ ].includes(code);
13657
+ }, isCtrlKey = (code) => {
13658
+ return [
13659
+ "Oa",
13660
+ "Ob",
13661
+ "Oc",
13662
+ "Od",
13663
+ "Oe",
13664
+ "[2^",
13665
+ "[3^",
13666
+ "[5^",
13667
+ "[6^",
13668
+ "[7^",
13669
+ "[8^"
13670
+ ].includes(code);
13671
+ }, kittyKeyRe = /^\x1b\[(\d+)(?:;(\d+)(?::(\d+))?(?:;([\d:]+))?)?u$/, kittySpecialKeyRe = /^\x1b\[(\d+);(\d+):(\d+)([A-Za-z~])$/, kittySpecialLetterKeys = {
13385
13672
  A: "up",
13386
13673
  B: "down",
13387
13674
  C: "right",
@@ -13642,20 +13929,20 @@ var parseKittyKeypress = (s) => {
13642
13929
  }, parse_keypress_default = parseKeypress;
13643
13930
 
13644
13931
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/hooks/use-stdin.js
13645
- init_react_production();
13646
- var useStdinContext = () => $useContext(StdinContext_default);
13932
+ var import_react21 = __toESM(require_react_production(), 1);
13933
+ var useStdinContext = () => import_react21.useContext(StdinContext_default);
13647
13934
 
13648
13935
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/hooks/use-input.js
13649
13936
  var useInput = (inputHandler, options = {}) => {
13650
13937
  let { setRawMode, internal_exitOnCtrlC, internal_eventEmitter } = useStdinContext();
13651
- $useEffect(() => {
13938
+ import_react22.useEffect(() => {
13652
13939
  if (options.isActive === !1)
13653
13940
  return;
13654
13941
  return setRawMode(!0), () => {
13655
13942
  setRawMode(!1);
13656
13943
  };
13657
13944
  }, [options.isActive, setRawMode]);
13658
- let handleData = $useEffectEvent((data) => {
13945
+ let handleData = import_react22.useEffectEvent((data) => {
13659
13946
  let keypress = parse_keypress_default(data), key = {
13660
13947
  upArrow: keypress.name === "up",
13661
13948
  downArrow: keypress.name === "down",
@@ -13702,7 +13989,7 @@ var useInput = (inputHandler, options = {}) => {
13702
13989
  inputHandler(input, key);
13703
13990
  });
13704
13991
  });
13705
- $useEffect(() => {
13992
+ import_react22.useEffect(() => {
13706
13993
  if (options.isActive === !1)
13707
13994
  return;
13708
13995
  return internal_eventEmitter.on("input", handleData), () => {
@@ -13711,22 +13998,22 @@ var useInput = (inputHandler, options = {}) => {
13711
13998
  }, [options.isActive, internal_eventEmitter]);
13712
13999
  }, use_input_default = useInput;
13713
14000
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/hooks/use-paste.js
13714
- init_react_production();
14001
+ var import_react23 = __toESM(require_react_production(), 1);
13715
14002
  var usePaste = (handler, options = {}) => {
13716
14003
  let { setRawMode, setBracketedPasteMode, internal_eventEmitter } = useStdinContext();
13717
- $useEffect(() => {
14004
+ import_react23.useEffect(() => {
13718
14005
  if (options.isActive === !1)
13719
14006
  return;
13720
14007
  return setRawMode(!0), setBracketedPasteMode(!0), () => {
13721
14008
  setRawMode(!1), setBracketedPasteMode(!1);
13722
14009
  };
13723
14010
  }, [options.isActive, setRawMode, setBracketedPasteMode]);
13724
- let handlePaste = $useEffectEvent((text) => {
14011
+ let handlePaste = import_react23.useEffectEvent((text) => {
13725
14012
  reconciler_default.discreteUpdates(() => {
13726
14013
  handler(text);
13727
14014
  });
13728
14015
  });
13729
- $useEffect(() => {
14016
+ import_react23.useEffect(() => {
13730
14017
  if (options.isActive === !1)
13731
14018
  return;
13732
14019
  return internal_eventEmitter.on("paste", handlePaste), () => {
@@ -13735,35 +14022,37 @@ var usePaste = (handler, options = {}) => {
13735
14022
  }, [options.isActive, internal_eventEmitter]);
13736
14023
  }, use_paste_default = usePaste;
13737
14024
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/hooks/use-app.js
13738
- init_react_production();
14025
+ var import_react24 = __toESM(require_react_production(), 1);
13739
14026
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/hooks/use-stdout.js
13740
- init_react_production();
13741
- var useStdout = () => $useContext(StdoutContext_default), use_stdout_default = useStdout;
14027
+ var import_react25 = __toESM(require_react_production(), 1);
14028
+ var useStdout = () => import_react25.useContext(StdoutContext_default), use_stdout_default = useStdout;
13742
14029
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/hooks/use-stderr.js
13743
- init_react_production();
14030
+ var import_react26 = __toESM(require_react_production(), 1);
13744
14031
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/hooks/use-focus.js
13745
- init_react_production();
14032
+ var import_react27 = __toESM(require_react_production(), 1);
13746
14033
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/hooks/use-focus-manager.js
13747
- init_react_production();
14034
+ var import_react28 = __toESM(require_react_production(), 1);
13748
14035
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/hooks/use-is-screen-reader-enabled.js
13749
- init_react_production();
14036
+ var import_react29 = __toESM(require_react_production(), 1);
13750
14037
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/hooks/use-cursor.js
13751
- init_react_production();
14038
+ var import_react30 = __toESM(require_react_production(), 1);
13752
14039
  var useCursor = () => {
13753
- let context = $useContext(CursorContext_default), positionRef = $useRef(void 0), setCursorPosition = $useCallback((position) => {
14040
+ let context = import_react30.useContext(CursorContext_default), positionRef = import_react30.useRef(void 0), setCursorPosition = import_react30.useCallback((position) => {
13754
14041
  positionRef.current = position;
13755
14042
  }, []);
13756
- return $useInsertionEffect(() => (context.setCursorPosition(positionRef.current), () => {
13757
- context.setCursorPosition(void 0);
13758
- })), { setCursorPosition };
14043
+ return import_react30.useInsertionEffect(() => {
14044
+ return context.setCursorPosition(positionRef.current), () => {
14045
+ context.setCursorPosition(void 0);
14046
+ };
14047
+ }), { setCursorPosition };
13759
14048
  }, use_cursor_default = useCursor;
13760
14049
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/hooks/use-animation.js
13761
- init_react_production();
14050
+ var import_react31 = __toESM(require_react_production(), 1);
13762
14051
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/hooks/use-window-size.js
13763
- init_react_production();
14052
+ var import_react32 = __toESM(require_react_production(), 1);
13764
14053
  var useWindowSize = () => {
13765
- let { stdout } = use_stdout_default(), [size, setSize] = $useState(() => getWindowSize(stdout));
13766
- return $useEffect(() => {
14054
+ let { stdout } = use_stdout_default(), [size, setSize] = import_react32.useState(() => getWindowSize(stdout));
14055
+ return import_react32.useEffect(() => {
13767
14056
  let onResize = () => {
13768
14057
  setSize(getWindowSize(stdout));
13769
14058
  };
@@ -13773,7 +14062,7 @@ var useWindowSize = () => {
13773
14062
  }, [stdout]), size;
13774
14063
  }, use_window_size_default = useWindowSize;
13775
14064
  // ../../node_modules/.bun/ink@7.1.1+c841d34b494ec30a/node_modules/ink/build/hooks/use-box-metrics.js
13776
- init_react_production();
14065
+ var import_react33 = __toESM(require_react_production(), 1);
13777
14066
  var emptyMetrics = {
13778
14067
  width: 0,
13779
14068
  height: 0,
@@ -13786,37 +14075,48 @@ var emptyMetrics = {
13786
14075
  return node.nodeName === "ink-root" ? node : void 0;
13787
14076
  return findRootNode(node.parentNode);
13788
14077
  }, useBoxMetrics = (ref) => {
13789
- let [metrics, setMetrics] = $useState(emptyMetrics), [hasMeasured, setHasMeasured] = $useState(!1), updateMetrics = $useCallback(() => {
14078
+ let [metrics, setMetrics] = import_react33.useState(emptyMetrics), [hasMeasured, setHasMeasured] = import_react33.useState(!1), updateMetrics = import_react33.useCallback(() => {
13790
14079
  let layout = ref.current?.yogaNode?.getComputedLayout() ?? emptyMetrics;
13791
- setMetrics((previousMetrics) => previousMetrics.width !== layout.width || previousMetrics.height !== layout.height || previousMetrics.left !== layout.left || previousMetrics.top !== layout.top ? layout : previousMetrics), setHasMeasured(Boolean(ref.current));
14080
+ setMetrics((previousMetrics) => {
14081
+ return previousMetrics.width !== layout.width || previousMetrics.height !== layout.height || previousMetrics.left !== layout.left || previousMetrics.top !== layout.top ? layout : previousMetrics;
14082
+ }), setHasMeasured(Boolean(ref.current));
13792
14083
  }, [ref]);
13793
- return $useEffect(updateMetrics), $useEffect(() => {
14084
+ return import_react33.useEffect(updateMetrics), import_react33.useEffect(() => {
13794
14085
  let rootNode = findRootNode(ref.current);
13795
14086
  if (!rootNode)
13796
14087
  return;
13797
14088
  return addLayoutListener(rootNode, updateMetrics);
13798
- }), $useMemo(() => ({
14089
+ }), import_react33.useMemo(() => ({
13799
14090
  ...metrics,
13800
14091
  hasMeasured
13801
14092
  }), [metrics, hasMeasured]);
13802
14093
  }, use_box_metrics_default = useBoxMetrics;
13803
14094
  // plugins-dist/tui/vendor.js
13804
- init_react_production();
14095
+ var import_react34 = __toESM(require_react_production(), 1);
14096
+ var export_useSyncExternalStore = import_react34.useSyncExternalStore;
14097
+ var export_useState = import_react34.useState;
14098
+ var export_useRef = import_react34.useRef;
14099
+ var export_useReducer = import_react34.useReducer;
14100
+ var export_useEffect = import_react34.useEffect;
14101
+ var export_useContext = import_react34.useContext;
14102
+ var export_createElement = import_react34.createElement;
14103
+ var export_createContext = import_react34.createContext;
14104
+
13805
14105
  export {
13806
- Box_default as Box,
13807
- Text,
13808
- $createContext as createContext,
13809
- $createElement as createElement,
13810
- render_default as render,
13811
- use_box_metrics_default as useBoxMetrics,
13812
- $useContext as useContext,
13813
- use_cursor_default as useCursor,
13814
- $useEffect as useEffect,
13815
- use_input_default as useInput,
14106
+ use_window_size_default as useWindowSize,
14107
+ export_useSyncExternalStore as useSyncExternalStore,
14108
+ export_useState as useState,
14109
+ export_useRef as useRef,
14110
+ export_useReducer as useReducer,
13816
14111
  use_paste_default as usePaste,
13817
- $useReducer as useReducer,
13818
- $useRef as useRef,
13819
- $useState as useState,
13820
- $useSyncExternalStore as useSyncExternalStore,
13821
- use_window_size_default as useWindowSize
14112
+ use_input_default as useInput,
14113
+ export_useEffect as useEffect,
14114
+ use_cursor_default as useCursor,
14115
+ export_useContext as useContext,
14116
+ use_box_metrics_default as useBoxMetrics,
14117
+ render_default as render,
14118
+ export_createElement as createElement,
14119
+ export_createContext as createContext,
14120
+ Text,
14121
+ Box_default as Box
13822
14122
  };