openplanr 2.2640.8 → 2.2641.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (192) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/dashboard/.vite/manifest.json +1 -1
  3. package/dist/dashboard/assets/{index-COZ36pFn.js → index-D7R6tnlX.js} +2 -2
  4. package/dist/dashboard/assets/{index-COZ36pFn.js.map → index-D7R6tnlX.js.map} +1 -1
  5. package/dist/dashboard/dashboard-manifest.json +8 -8
  6. package/dist/dashboard/index.html +1 -1
  7. package/lib/host-packages/adapter-registry.json +5 -5
  8. package/lib/host-packages/capability-map.json +1 -1
  9. package/lib/host-packages/claude/.claude-plugin/marketplace.json +2 -2
  10. package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +1 -1
  11. package/lib/host-packages/claude/openplanr/.openplanr-content.json +167 -35
  12. package/lib/host-packages/claude/openplanr/README.md +22 -1
  13. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-artifact-shell.mjs +3 -11
  14. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +555 -0
  15. package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-pako-esm.mjs → design-compression.mjs} +2 -1521
  16. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-document.mjs +133 -12
  17. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +647 -0
  18. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-entities.mjs +17 -67
  19. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-handoff.mjs +14 -16
  20. package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-planr-home.mjs → design-loopback-server.mjs} +15 -36
  21. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-owner-custody.mjs +121 -0
  22. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-resource-pack.mjs +698 -0
  23. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review.mjs +798 -796
  24. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-runtime-home.mjs +39 -0
  25. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-runtime-support-5cb7531bede8.mjs +24 -0
  26. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share.mjs +138 -765
  27. package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-escape.mjs → design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs} +158 -156
  28. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-artifact-sources.mjs → claude/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs} +1 -1
  29. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-bounded-json-data.mjs → claude/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs} +241 -454
  30. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +222 -0
  31. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-upload-spool.mjs +198 -0
  32. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design.mjs +12 -5
  33. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
  34. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +18 -0
  35. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +809 -0
  36. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +5193 -0
  37. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +4175 -0
  38. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +65 -0
  39. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +1755 -0
  40. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +62 -0
  41. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +2600 -0
  42. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +123 -0
  43. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  44. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +3 -3
  45. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +34 -0
  46. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +992 -0
  47. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +2513 -0
  48. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +1919 -0
  49. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +1759 -0
  50. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +1551 -0
  51. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +1121 -0
  52. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +2183 -0
  53. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +705 -0
  54. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +27 -0
  55. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +13 -0
  56. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +3561 -0
  57. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +184 -0
  58. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +5045 -0
  59. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +1698 -0
  60. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +455 -0
  61. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +1844 -0
  62. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +257 -0
  63. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +1 -1
  64. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +4966 -0
  65. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design.mjs +240 -5192
  66. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +1 -1
  67. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/backend-diagnostics.mjs +6 -2
  68. package/lib/host-packages/cursor/openplanr/.openplanr-content.json +166 -34
  69. package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
  70. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/backend-diagnostics.mjs +6 -2
  71. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-artifact-shell.mjs +3 -11
  72. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +555 -0
  73. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-pako-esm.mjs → cursor/openplanr/runtime/design/scripts/design-compression.mjs} +2 -1521
  74. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-document.mjs +133 -12
  75. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +647 -0
  76. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-entities.mjs +17 -67
  77. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-handoff.mjs +14 -16
  78. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-planr-home.mjs → cursor/openplanr/runtime/design/scripts/design-loopback-server.mjs} +15 -36
  79. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-owner-custody.mjs +121 -0
  80. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-resource-pack.mjs +698 -0
  81. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review.mjs +798 -796
  82. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-home.mjs +39 -0
  83. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-support-5cb7531bede8.mjs +24 -0
  84. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share.mjs +138 -765
  85. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-escape.mjs → cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs} +158 -156
  86. package/lib/host-packages/{claude/openplanr/runtime/design/scripts/design-artifact-sources.mjs → cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs} +1 -1
  87. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/{design-bounded-json-data.mjs → design-shared-protocol-contracts-31a760fc.mjs} +241 -454
  88. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +222 -0
  89. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-upload-spool.mjs +198 -0
  90. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design.mjs +12 -5
  91. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
  92. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +18 -0
  93. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +809 -0
  94. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +5193 -0
  95. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +4175 -0
  96. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +65 -0
  97. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +1755 -0
  98. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +62 -0
  99. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +2600 -0
  100. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +123 -0
  101. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  102. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +3 -3
  103. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +34 -0
  104. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +992 -0
  105. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +2513 -0
  106. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +1919 -0
  107. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +1759 -0
  108. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +1551 -0
  109. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +1121 -0
  110. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +2183 -0
  111. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +705 -0
  112. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +27 -0
  113. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +13 -0
  114. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +3561 -0
  115. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +184 -0
  116. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +5045 -0
  117. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +1698 -0
  118. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +455 -0
  119. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +1844 -0
  120. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +257 -0
  121. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +1 -1
  122. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +4966 -0
  123. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design.mjs +240 -5192
  124. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +1 -1
  125. package/lib/host-packages/openai/.claude-plugin/marketplace.json +2 -2
  126. package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +1 -1
  127. package/lib/host-packages/openai/openplanr/.openplanr-content.json +166 -34
  128. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-artifact-shell.mjs +3 -11
  129. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +555 -0
  130. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-pako-esm.mjs → openai/openplanr/runtime/design/scripts/design-compression.mjs} +2 -1521
  131. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-document.mjs +133 -12
  132. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +647 -0
  133. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-entities.mjs +17 -67
  134. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-handoff.mjs +14 -16
  135. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-planr-home.mjs → openai/openplanr/runtime/design/scripts/design-loopback-server.mjs} +15 -36
  136. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-owner-custody.mjs +121 -0
  137. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-resource-pack.mjs +698 -0
  138. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review.mjs +798 -796
  139. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-home.mjs +39 -0
  140. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-support-5cb7531bede8.mjs +24 -0
  141. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share.mjs +138 -765
  142. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-escape.mjs → openai/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs} +158 -156
  143. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-artifact-sources.mjs → openai/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs} +1 -1
  144. package/lib/host-packages/{claude/openplanr/runtime/design/scripts/design-bounded-json-data.mjs → openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs} +241 -454
  145. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +222 -0
  146. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-upload-spool.mjs +198 -0
  147. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design.mjs +12 -5
  148. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/lib/artifact/ui/studio-shell.css +1 -1
  149. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +18 -0
  150. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +809 -0
  151. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +5193 -0
  152. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +4175 -0
  153. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +65 -0
  154. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +1755 -0
  155. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +62 -0
  156. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +2600 -0
  157. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +123 -0
  158. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  159. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +3 -3
  160. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +34 -0
  161. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +992 -0
  162. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +2513 -0
  163. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +1919 -0
  164. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +1759 -0
  165. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +1551 -0
  166. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/07-react-dom-client-work-loop-scheduling.js +1121 -0
  167. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/08-react-dom-client-dom-events-properties-hydration.js +2183 -0
  168. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +705 -0
  169. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +27 -0
  170. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +13 -0
  171. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +3561 -0
  172. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +184 -0
  173. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +5045 -0
  174. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +1698 -0
  175. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +455 -0
  176. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +1844 -0
  177. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +257 -0
  178. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +1 -1
  179. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +4966 -0
  180. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design.mjs +240 -5192
  181. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +1 -1
  182. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/backend-diagnostics.mjs +6 -2
  183. package/package.json +2 -2
  184. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-generated-b0798298053515fd.mjs +0 -18
  185. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +0 -5
  186. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js +0 -25597
  187. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-generated-b0798298053515fd.mjs +0 -18
  188. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +0 -5
  189. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js +0 -25597
  190. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-generated-b0798298053515fd.mjs +0 -18
  191. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +0 -5
  192. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js +0 -25597
@@ -0,0 +1,1919 @@
1
+
2
+ function createChildReconciler(shouldTrackSideEffects) {
3
+ function deleteChild(returnFiber, childToDelete) {
4
+ if (shouldTrackSideEffects) {
5
+ var deletions = returnFiber.deletions;
6
+ null === deletions ? (returnFiber.deletions = [childToDelete], returnFiber.flags |= 16) : deletions.push(childToDelete);
7
+ }
8
+ }
9
+ function deleteRemainingChildren(returnFiber, currentFirstChild) {
10
+ if (!shouldTrackSideEffects) return null;
11
+ for (; null !== currentFirstChild; )
12
+ deleteChild(returnFiber, currentFirstChild), currentFirstChild = currentFirstChild.sibling;
13
+ return null;
14
+ }
15
+ function mapRemainingChildren(currentFirstChild) {
16
+ for (var existingChildren = /* @__PURE__ */ new Map(); null !== currentFirstChild; )
17
+ null !== currentFirstChild.key ? existingChildren.set(currentFirstChild.key, currentFirstChild) : existingChildren.set(currentFirstChild.index, currentFirstChild), currentFirstChild = currentFirstChild.sibling;
18
+ return existingChildren;
19
+ }
20
+ function useFiber(fiber, pendingProps) {
21
+ fiber = createWorkInProgress(fiber, pendingProps);
22
+ fiber.index = 0;
23
+ fiber.sibling = null;
24
+ return fiber;
25
+ }
26
+ function placeChild(newFiber, lastPlacedIndex, newIndex) {
27
+ newFiber.index = newIndex;
28
+ if (!shouldTrackSideEffects)
29
+ return newFiber.flags |= 1048576, lastPlacedIndex;
30
+ newIndex = newFiber.alternate;
31
+ if (null !== newIndex)
32
+ return newIndex = newIndex.index, newIndex < lastPlacedIndex ? (newFiber.flags |= 67108866, lastPlacedIndex) : newIndex;
33
+ newFiber.flags |= 67108866;
34
+ return lastPlacedIndex;
35
+ }
36
+ function placeSingleChild(newFiber) {
37
+ shouldTrackSideEffects && null === newFiber.alternate && (newFiber.flags |= 67108866);
38
+ return newFiber;
39
+ }
40
+ function updateTextNode(returnFiber, current, textContent, lanes) {
41
+ if (null === current || 6 !== current.tag)
42
+ return current = createFiberFromText(textContent, returnFiber.mode, lanes), current.return = returnFiber, current;
43
+ current = useFiber(current, textContent);
44
+ current.return = returnFiber;
45
+ return current;
46
+ }
47
+ function updateElement(returnFiber, current, element, lanes) {
48
+ var elementType = element.type;
49
+ if (elementType === REACT_FRAGMENT_TYPE)
50
+ return updateFragment(
51
+ returnFiber,
52
+ current,
53
+ element.props.children,
54
+ lanes,
55
+ element.key
56
+ );
57
+ if (null !== current && (current.elementType === elementType || "object" === typeof elementType && null !== elementType && elementType.$$typeof === REACT_LAZY_TYPE2 && resolveLazy(elementType) === current.type))
58
+ return current = useFiber(current, element.props), coerceRef(current, element), current.return = returnFiber, current;
59
+ current = createFiberFromTypeAndProps(
60
+ element.type,
61
+ element.key,
62
+ element.props,
63
+ null,
64
+ returnFiber.mode,
65
+ lanes
66
+ );
67
+ coerceRef(current, element);
68
+ current.return = returnFiber;
69
+ return current;
70
+ }
71
+ function updatePortal(returnFiber, current, portal, lanes) {
72
+ if (null === current || 4 !== current.tag || current.stateNode.containerInfo !== portal.containerInfo || current.stateNode.implementation !== portal.implementation)
73
+ return current = createFiberFromPortal(portal, returnFiber.mode, lanes), current.return = returnFiber, current;
74
+ current = useFiber(current, portal.children || []);
75
+ current.return = returnFiber;
76
+ return current;
77
+ }
78
+ function updateFragment(returnFiber, current, fragment, lanes, key) {
79
+ if (null === current || 7 !== current.tag)
80
+ return current = createFiberFromFragment(
81
+ fragment,
82
+ returnFiber.mode,
83
+ lanes,
84
+ key
85
+ ), current.return = returnFiber, current;
86
+ current = useFiber(current, fragment);
87
+ current.return = returnFiber;
88
+ return current;
89
+ }
90
+ function createChild(returnFiber, newChild, lanes) {
91
+ if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild)
92
+ return newChild = createFiberFromText(
93
+ "" + newChild,
94
+ returnFiber.mode,
95
+ lanes
96
+ ), newChild.return = returnFiber, newChild;
97
+ if ("object" === typeof newChild && null !== newChild) {
98
+ switch (newChild.$$typeof) {
99
+ case REACT_ELEMENT_TYPE:
100
+ return lanes = createFiberFromTypeAndProps(
101
+ newChild.type,
102
+ newChild.key,
103
+ newChild.props,
104
+ null,
105
+ returnFiber.mode,
106
+ lanes
107
+ ), coerceRef(lanes, newChild), lanes.return = returnFiber, lanes;
108
+ case REACT_PORTAL_TYPE:
109
+ return newChild = createFiberFromPortal(
110
+ newChild,
111
+ returnFiber.mode,
112
+ lanes
113
+ ), newChild.return = returnFiber, newChild;
114
+ case REACT_LAZY_TYPE2:
115
+ return newChild = resolveLazy(newChild), createChild(returnFiber, newChild, lanes);
116
+ }
117
+ if (isArrayImpl(newChild) || getIteratorFn(newChild))
118
+ return newChild = createFiberFromFragment(
119
+ newChild,
120
+ returnFiber.mode,
121
+ lanes,
122
+ null
123
+ ), newChild.return = returnFiber, newChild;
124
+ if ("function" === typeof newChild.then)
125
+ return createChild(returnFiber, unwrapThenable(newChild), lanes);
126
+ if (newChild.$$typeof === REACT_CONTEXT_TYPE)
127
+ return createChild(
128
+ returnFiber,
129
+ readContextDuringReconciliation(returnFiber, newChild),
130
+ lanes
131
+ );
132
+ throwOnInvalidObjectTypeImpl(returnFiber, newChild);
133
+ }
134
+ return null;
135
+ }
136
+ function updateSlot(returnFiber, oldFiber, newChild, lanes) {
137
+ var key = null !== oldFiber ? oldFiber.key : null;
138
+ if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild)
139
+ return null !== key ? null : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes);
140
+ if ("object" === typeof newChild && null !== newChild) {
141
+ switch (newChild.$$typeof) {
142
+ case REACT_ELEMENT_TYPE:
143
+ return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null;
144
+ case REACT_PORTAL_TYPE:
145
+ return newChild.key === key ? updatePortal(returnFiber, oldFiber, newChild, lanes) : null;
146
+ case REACT_LAZY_TYPE2:
147
+ return newChild = resolveLazy(newChild), updateSlot(returnFiber, oldFiber, newChild, lanes);
148
+ }
149
+ if (isArrayImpl(newChild) || getIteratorFn(newChild))
150
+ return null !== key ? null : updateFragment(returnFiber, oldFiber, newChild, lanes, null);
151
+ if ("function" === typeof newChild.then)
152
+ return updateSlot(
153
+ returnFiber,
154
+ oldFiber,
155
+ unwrapThenable(newChild),
156
+ lanes
157
+ );
158
+ if (newChild.$$typeof === REACT_CONTEXT_TYPE)
159
+ return updateSlot(
160
+ returnFiber,
161
+ oldFiber,
162
+ readContextDuringReconciliation(returnFiber, newChild),
163
+ lanes
164
+ );
165
+ throwOnInvalidObjectTypeImpl(returnFiber, newChild);
166
+ }
167
+ return null;
168
+ }
169
+ function updateFromMap(existingChildren, returnFiber, newIdx, newChild, lanes) {
170
+ if ("string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild)
171
+ return existingChildren = existingChildren.get(newIdx) || null, updateTextNode(returnFiber, existingChildren, "" + newChild, lanes);
172
+ if ("object" === typeof newChild && null !== newChild) {
173
+ switch (newChild.$$typeof) {
174
+ case REACT_ELEMENT_TYPE:
175
+ return existingChildren = existingChildren.get(
176
+ null === newChild.key ? newIdx : newChild.key
177
+ ) || null, updateElement(returnFiber, existingChildren, newChild, lanes);
178
+ case REACT_PORTAL_TYPE:
179
+ return existingChildren = existingChildren.get(
180
+ null === newChild.key ? newIdx : newChild.key
181
+ ) || null, updatePortal(returnFiber, existingChildren, newChild, lanes);
182
+ case REACT_LAZY_TYPE2:
183
+ return newChild = resolveLazy(newChild), updateFromMap(
184
+ existingChildren,
185
+ returnFiber,
186
+ newIdx,
187
+ newChild,
188
+ lanes
189
+ );
190
+ }
191
+ if (isArrayImpl(newChild) || getIteratorFn(newChild))
192
+ return existingChildren = existingChildren.get(newIdx) || null, updateFragment(returnFiber, existingChildren, newChild, lanes, null);
193
+ if ("function" === typeof newChild.then)
194
+ return updateFromMap(
195
+ existingChildren,
196
+ returnFiber,
197
+ newIdx,
198
+ unwrapThenable(newChild),
199
+ lanes
200
+ );
201
+ if (newChild.$$typeof === REACT_CONTEXT_TYPE)
202
+ return updateFromMap(
203
+ existingChildren,
204
+ returnFiber,
205
+ newIdx,
206
+ readContextDuringReconciliation(returnFiber, newChild),
207
+ lanes
208
+ );
209
+ throwOnInvalidObjectTypeImpl(returnFiber, newChild);
210
+ }
211
+ return null;
212
+ }
213
+ function reconcileChildrenArray(returnFiber, currentFirstChild, newChildren, lanes) {
214
+ for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null; null !== oldFiber && newIdx < newChildren.length; newIdx++) {
215
+ oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling;
216
+ var newFiber = updateSlot(
217
+ returnFiber,
218
+ oldFiber,
219
+ newChildren[newIdx],
220
+ lanes
221
+ );
222
+ if (null === newFiber) {
223
+ null === oldFiber && (oldFiber = nextOldFiber);
224
+ break;
225
+ }
226
+ shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber);
227
+ currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);
228
+ null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber;
229
+ previousNewFiber = newFiber;
230
+ oldFiber = nextOldFiber;
231
+ }
232
+ if (newIdx === newChildren.length)
233
+ return deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild;
234
+ if (null === oldFiber) {
235
+ for (; newIdx < newChildren.length; newIdx++)
236
+ oldFiber = createChild(returnFiber, newChildren[newIdx], lanes), null !== oldFiber && (currentFirstChild = placeChild(
237
+ oldFiber,
238
+ currentFirstChild,
239
+ newIdx
240
+ ), null === previousNewFiber ? resultingFirstChild = oldFiber : previousNewFiber.sibling = oldFiber, previousNewFiber = oldFiber);
241
+ isHydrating && pushTreeFork(returnFiber, newIdx);
242
+ return resultingFirstChild;
243
+ }
244
+ for (oldFiber = mapRemainingChildren(oldFiber); newIdx < newChildren.length; newIdx++)
245
+ nextOldFiber = updateFromMap(
246
+ oldFiber,
247
+ returnFiber,
248
+ newIdx,
249
+ newChildren[newIdx],
250
+ lanes
251
+ ), null !== nextOldFiber && (shouldTrackSideEffects && null !== nextOldFiber.alternate && oldFiber.delete(
252
+ null === nextOldFiber.key ? newIdx : nextOldFiber.key
253
+ ), currentFirstChild = placeChild(
254
+ nextOldFiber,
255
+ currentFirstChild,
256
+ newIdx
257
+ ), null === previousNewFiber ? resultingFirstChild = nextOldFiber : previousNewFiber.sibling = nextOldFiber, previousNewFiber = nextOldFiber);
258
+ shouldTrackSideEffects && oldFiber.forEach(function(child) {
259
+ return deleteChild(returnFiber, child);
260
+ });
261
+ isHydrating && pushTreeFork(returnFiber, newIdx);
262
+ return resultingFirstChild;
263
+ }
264
+ function reconcileChildrenIterator(returnFiber, currentFirstChild, newChildren, lanes) {
265
+ if (null == newChildren) throw Error(formatProdErrorMessage(151));
266
+ for (var resultingFirstChild = null, previousNewFiber = null, oldFiber = currentFirstChild, newIdx = currentFirstChild = 0, nextOldFiber = null, step = newChildren.next(); null !== oldFiber && !step.done; newIdx++, step = newChildren.next()) {
267
+ oldFiber.index > newIdx ? (nextOldFiber = oldFiber, oldFiber = null) : nextOldFiber = oldFiber.sibling;
268
+ var newFiber = updateSlot(returnFiber, oldFiber, step.value, lanes);
269
+ if (null === newFiber) {
270
+ null === oldFiber && (oldFiber = nextOldFiber);
271
+ break;
272
+ }
273
+ shouldTrackSideEffects && oldFiber && null === newFiber.alternate && deleteChild(returnFiber, oldFiber);
274
+ currentFirstChild = placeChild(newFiber, currentFirstChild, newIdx);
275
+ null === previousNewFiber ? resultingFirstChild = newFiber : previousNewFiber.sibling = newFiber;
276
+ previousNewFiber = newFiber;
277
+ oldFiber = nextOldFiber;
278
+ }
279
+ if (step.done)
280
+ return deleteRemainingChildren(returnFiber, oldFiber), isHydrating && pushTreeFork(returnFiber, newIdx), resultingFirstChild;
281
+ if (null === oldFiber) {
282
+ for (; !step.done; newIdx++, step = newChildren.next())
283
+ step = createChild(returnFiber, step.value, lanes), null !== step && (currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = step : previousNewFiber.sibling = step, previousNewFiber = step);
284
+ isHydrating && pushTreeFork(returnFiber, newIdx);
285
+ return resultingFirstChild;
286
+ }
287
+ for (oldFiber = mapRemainingChildren(oldFiber); !step.done; newIdx++, step = newChildren.next())
288
+ step = updateFromMap(oldFiber, returnFiber, newIdx, step.value, lanes), null !== step && (shouldTrackSideEffects && null !== step.alternate && oldFiber.delete(null === step.key ? newIdx : step.key), currentFirstChild = placeChild(step, currentFirstChild, newIdx), null === previousNewFiber ? resultingFirstChild = step : previousNewFiber.sibling = step, previousNewFiber = step);
289
+ shouldTrackSideEffects && oldFiber.forEach(function(child) {
290
+ return deleteChild(returnFiber, child);
291
+ });
292
+ isHydrating && pushTreeFork(returnFiber, newIdx);
293
+ return resultingFirstChild;
294
+ }
295
+ function reconcileChildFibersImpl(returnFiber, currentFirstChild, newChild, lanes) {
296
+ "object" === typeof newChild && null !== newChild && newChild.type === REACT_FRAGMENT_TYPE && null === newChild.key && (newChild = newChild.props.children);
297
+ if ("object" === typeof newChild && null !== newChild) {
298
+ switch (newChild.$$typeof) {
299
+ case REACT_ELEMENT_TYPE:
300
+ a: {
301
+ for (var key = newChild.key; null !== currentFirstChild; ) {
302
+ if (currentFirstChild.key === key) {
303
+ key = newChild.type;
304
+ if (key === REACT_FRAGMENT_TYPE) {
305
+ if (7 === currentFirstChild.tag) {
306
+ deleteRemainingChildren(
307
+ returnFiber,
308
+ currentFirstChild.sibling
309
+ );
310
+ lanes = useFiber(
311
+ currentFirstChild,
312
+ newChild.props.children
313
+ );
314
+ lanes.return = returnFiber;
315
+ returnFiber = lanes;
316
+ break a;
317
+ }
318
+ } else if (currentFirstChild.elementType === key || "object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE2 && resolveLazy(key) === currentFirstChild.type) {
319
+ deleteRemainingChildren(
320
+ returnFiber,
321
+ currentFirstChild.sibling
322
+ );
323
+ lanes = useFiber(currentFirstChild, newChild.props);
324
+ coerceRef(lanes, newChild);
325
+ lanes.return = returnFiber;
326
+ returnFiber = lanes;
327
+ break a;
328
+ }
329
+ deleteRemainingChildren(returnFiber, currentFirstChild);
330
+ break;
331
+ } else deleteChild(returnFiber, currentFirstChild);
332
+ currentFirstChild = currentFirstChild.sibling;
333
+ }
334
+ newChild.type === REACT_FRAGMENT_TYPE ? (lanes = createFiberFromFragment(
335
+ newChild.props.children,
336
+ returnFiber.mode,
337
+ lanes,
338
+ newChild.key
339
+ ), lanes.return = returnFiber, returnFiber = lanes) : (lanes = createFiberFromTypeAndProps(
340
+ newChild.type,
341
+ newChild.key,
342
+ newChild.props,
343
+ null,
344
+ returnFiber.mode,
345
+ lanes
346
+ ), coerceRef(lanes, newChild), lanes.return = returnFiber, returnFiber = lanes);
347
+ }
348
+ return placeSingleChild(returnFiber);
349
+ case REACT_PORTAL_TYPE:
350
+ a: {
351
+ for (key = newChild.key; null !== currentFirstChild; ) {
352
+ if (currentFirstChild.key === key)
353
+ if (4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === newChild.containerInfo && currentFirstChild.stateNode.implementation === newChild.implementation) {
354
+ deleteRemainingChildren(
355
+ returnFiber,
356
+ currentFirstChild.sibling
357
+ );
358
+ lanes = useFiber(currentFirstChild, newChild.children || []);
359
+ lanes.return = returnFiber;
360
+ returnFiber = lanes;
361
+ break a;
362
+ } else {
363
+ deleteRemainingChildren(returnFiber, currentFirstChild);
364
+ break;
365
+ }
366
+ else deleteChild(returnFiber, currentFirstChild);
367
+ currentFirstChild = currentFirstChild.sibling;
368
+ }
369
+ lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes);
370
+ lanes.return = returnFiber;
371
+ returnFiber = lanes;
372
+ }
373
+ return placeSingleChild(returnFiber);
374
+ case REACT_LAZY_TYPE2:
375
+ return newChild = resolveLazy(newChild), reconcileChildFibersImpl(
376
+ returnFiber,
377
+ currentFirstChild,
378
+ newChild,
379
+ lanes
380
+ );
381
+ }
382
+ if (isArrayImpl(newChild))
383
+ return reconcileChildrenArray(
384
+ returnFiber,
385
+ currentFirstChild,
386
+ newChild,
387
+ lanes
388
+ );
389
+ if (getIteratorFn(newChild)) {
390
+ key = getIteratorFn(newChild);
391
+ if ("function" !== typeof key) throw Error(formatProdErrorMessage(150));
392
+ newChild = key.call(newChild);
393
+ return reconcileChildrenIterator(
394
+ returnFiber,
395
+ currentFirstChild,
396
+ newChild,
397
+ lanes
398
+ );
399
+ }
400
+ if ("function" === typeof newChild.then)
401
+ return reconcileChildFibersImpl(
402
+ returnFiber,
403
+ currentFirstChild,
404
+ unwrapThenable(newChild),
405
+ lanes
406
+ );
407
+ if (newChild.$$typeof === REACT_CONTEXT_TYPE)
408
+ return reconcileChildFibersImpl(
409
+ returnFiber,
410
+ currentFirstChild,
411
+ readContextDuringReconciliation(returnFiber, newChild),
412
+ lanes
413
+ );
414
+ throwOnInvalidObjectTypeImpl(returnFiber, newChild);
415
+ }
416
+ return "string" === typeof newChild && "" !== newChild || "number" === typeof newChild || "bigint" === typeof newChild ? (newChild = "" + newChild, null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), lanes = useFiber(currentFirstChild, newChild), lanes.return = returnFiber, returnFiber = lanes) : (deleteRemainingChildren(returnFiber, currentFirstChild), lanes = createFiberFromText(newChild, returnFiber.mode, lanes), lanes.return = returnFiber, returnFiber = lanes), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild);
417
+ }
418
+ return function(returnFiber, currentFirstChild, newChild, lanes) {
419
+ try {
420
+ thenableIndexCounter$1 = 0;
421
+ var firstChildFiber = reconcileChildFibersImpl(
422
+ returnFiber,
423
+ currentFirstChild,
424
+ newChild,
425
+ lanes
426
+ );
427
+ thenableState$1 = null;
428
+ return firstChildFiber;
429
+ } catch (x) {
430
+ if (x === SuspenseException || x === SuspenseActionException) throw x;
431
+ var fiber = createFiberImplClass(29, x, null, returnFiber.mode);
432
+ fiber.lanes = lanes;
433
+ fiber.return = returnFiber;
434
+ return fiber;
435
+ } finally {
436
+ }
437
+ };
438
+ }
439
+ var reconcileChildFibers = createChildReconciler(true);
440
+ var mountChildFibers = createChildReconciler(false);
441
+ var hasForceUpdate = false;
442
+ function initializeUpdateQueue(fiber) {
443
+ fiber.updateQueue = {
444
+ baseState: fiber.memoizedState,
445
+ firstBaseUpdate: null,
446
+ lastBaseUpdate: null,
447
+ shared: { pending: null, lanes: 0, hiddenCallbacks: null },
448
+ callbacks: null
449
+ };
450
+ }
451
+ function cloneUpdateQueue(current, workInProgress2) {
452
+ current = current.updateQueue;
453
+ workInProgress2.updateQueue === current && (workInProgress2.updateQueue = {
454
+ baseState: current.baseState,
455
+ firstBaseUpdate: current.firstBaseUpdate,
456
+ lastBaseUpdate: current.lastBaseUpdate,
457
+ shared: current.shared,
458
+ callbacks: null
459
+ });
460
+ }
461
+ function createUpdate(lane) {
462
+ return { lane, tag: 0, payload: null, callback: null, next: null };
463
+ }
464
+ function enqueueUpdate(fiber, update, lane) {
465
+ var updateQueue = fiber.updateQueue;
466
+ if (null === updateQueue) return null;
467
+ updateQueue = updateQueue.shared;
468
+ if (0 !== (executionContext & 2)) {
469
+ var pending = updateQueue.pending;
470
+ null === pending ? update.next = update : (update.next = pending.next, pending.next = update);
471
+ updateQueue.pending = update;
472
+ update = getRootForUpdatedFiber(fiber);
473
+ markUpdateLaneFromFiberToRoot(fiber, null, lane);
474
+ return update;
475
+ }
476
+ enqueueUpdate$1(fiber, updateQueue, update, lane);
477
+ return getRootForUpdatedFiber(fiber);
478
+ }
479
+ function entangleTransitions(root2, fiber, lane) {
480
+ fiber = fiber.updateQueue;
481
+ if (null !== fiber && (fiber = fiber.shared, 0 !== (lane & 4194048))) {
482
+ var queueLanes = fiber.lanes;
483
+ queueLanes &= root2.pendingLanes;
484
+ lane |= queueLanes;
485
+ fiber.lanes = lane;
486
+ markRootEntangled(root2, lane);
487
+ }
488
+ }
489
+ function enqueueCapturedUpdate(workInProgress2, capturedUpdate) {
490
+ var queue = workInProgress2.updateQueue, current = workInProgress2.alternate;
491
+ if (null !== current && (current = current.updateQueue, queue === current)) {
492
+ var newFirst = null, newLast = null;
493
+ queue = queue.firstBaseUpdate;
494
+ if (null !== queue) {
495
+ do {
496
+ var clone = {
497
+ lane: queue.lane,
498
+ tag: queue.tag,
499
+ payload: queue.payload,
500
+ callback: null,
501
+ next: null
502
+ };
503
+ null === newLast ? newFirst = newLast = clone : newLast = newLast.next = clone;
504
+ queue = queue.next;
505
+ } while (null !== queue);
506
+ null === newLast ? newFirst = newLast = capturedUpdate : newLast = newLast.next = capturedUpdate;
507
+ } else newFirst = newLast = capturedUpdate;
508
+ queue = {
509
+ baseState: current.baseState,
510
+ firstBaseUpdate: newFirst,
511
+ lastBaseUpdate: newLast,
512
+ shared: current.shared,
513
+ callbacks: current.callbacks
514
+ };
515
+ workInProgress2.updateQueue = queue;
516
+ return;
517
+ }
518
+ workInProgress2 = queue.lastBaseUpdate;
519
+ null === workInProgress2 ? queue.firstBaseUpdate = capturedUpdate : workInProgress2.next = capturedUpdate;
520
+ queue.lastBaseUpdate = capturedUpdate;
521
+ }
522
+ var didReadFromEntangledAsyncAction = false;
523
+ function suspendIfUpdateReadFromEntangledAsyncAction() {
524
+ if (didReadFromEntangledAsyncAction) {
525
+ var entangledActionThenable = currentEntangledActionThenable;
526
+ if (null !== entangledActionThenable) throw entangledActionThenable;
527
+ }
528
+ }
529
+ function processUpdateQueue(workInProgress$jscomp$0, props, instance$jscomp$0, renderLanes2) {
530
+ didReadFromEntangledAsyncAction = false;
531
+ var queue = workInProgress$jscomp$0.updateQueue;
532
+ hasForceUpdate = false;
533
+ var firstBaseUpdate = queue.firstBaseUpdate, lastBaseUpdate = queue.lastBaseUpdate, pendingQueue = queue.shared.pending;
534
+ if (null !== pendingQueue) {
535
+ queue.shared.pending = null;
536
+ var lastPendingUpdate = pendingQueue, firstPendingUpdate = lastPendingUpdate.next;
537
+ lastPendingUpdate.next = null;
538
+ null === lastBaseUpdate ? firstBaseUpdate = firstPendingUpdate : lastBaseUpdate.next = firstPendingUpdate;
539
+ lastBaseUpdate = lastPendingUpdate;
540
+ var current = workInProgress$jscomp$0.alternate;
541
+ null !== current && (current = current.updateQueue, pendingQueue = current.lastBaseUpdate, pendingQueue !== lastBaseUpdate && (null === pendingQueue ? current.firstBaseUpdate = firstPendingUpdate : pendingQueue.next = firstPendingUpdate, current.lastBaseUpdate = lastPendingUpdate));
542
+ }
543
+ if (null !== firstBaseUpdate) {
544
+ var newState = queue.baseState;
545
+ lastBaseUpdate = 0;
546
+ current = firstPendingUpdate = lastPendingUpdate = null;
547
+ pendingQueue = firstBaseUpdate;
548
+ do {
549
+ var updateLane = pendingQueue.lane & -536870913, isHiddenUpdate = updateLane !== pendingQueue.lane;
550
+ if (isHiddenUpdate ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes2 & updateLane) === updateLane) {
551
+ 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = true);
552
+ null !== current && (current = current.next = {
553
+ lane: 0,
554
+ tag: pendingQueue.tag,
555
+ payload: pendingQueue.payload,
556
+ callback: null,
557
+ next: null
558
+ });
559
+ a: {
560
+ var workInProgress2 = workInProgress$jscomp$0, update = pendingQueue;
561
+ updateLane = props;
562
+ var instance = instance$jscomp$0;
563
+ switch (update.tag) {
564
+ case 1:
565
+ workInProgress2 = update.payload;
566
+ if ("function" === typeof workInProgress2) {
567
+ newState = workInProgress2.call(instance, newState, updateLane);
568
+ break a;
569
+ }
570
+ newState = workInProgress2;
571
+ break a;
572
+ case 3:
573
+ workInProgress2.flags = workInProgress2.flags & -65537 | 128;
574
+ case 0:
575
+ workInProgress2 = update.payload;
576
+ updateLane = "function" === typeof workInProgress2 ? workInProgress2.call(instance, newState, updateLane) : workInProgress2;
577
+ if (null === updateLane || void 0 === updateLane) break a;
578
+ newState = assign({}, newState, updateLane);
579
+ break a;
580
+ case 2:
581
+ hasForceUpdate = true;
582
+ }
583
+ }
584
+ updateLane = pendingQueue.callback;
585
+ null !== updateLane && (workInProgress$jscomp$0.flags |= 64, isHiddenUpdate && (workInProgress$jscomp$0.flags |= 8192), isHiddenUpdate = queue.callbacks, null === isHiddenUpdate ? queue.callbacks = [updateLane] : isHiddenUpdate.push(updateLane));
586
+ } else
587
+ isHiddenUpdate = {
588
+ lane: updateLane,
589
+ tag: pendingQueue.tag,
590
+ payload: pendingQueue.payload,
591
+ callback: pendingQueue.callback,
592
+ next: null
593
+ }, null === current ? (firstPendingUpdate = current = isHiddenUpdate, lastPendingUpdate = newState) : current = current.next = isHiddenUpdate, lastBaseUpdate |= updateLane;
594
+ pendingQueue = pendingQueue.next;
595
+ if (null === pendingQueue)
596
+ if (pendingQueue = queue.shared.pending, null === pendingQueue)
597
+ break;
598
+ else
599
+ isHiddenUpdate = pendingQueue, pendingQueue = isHiddenUpdate.next, isHiddenUpdate.next = null, queue.lastBaseUpdate = isHiddenUpdate, queue.shared.pending = null;
600
+ } while (1);
601
+ null === current && (lastPendingUpdate = newState);
602
+ queue.baseState = lastPendingUpdate;
603
+ queue.firstBaseUpdate = firstPendingUpdate;
604
+ queue.lastBaseUpdate = current;
605
+ null === firstBaseUpdate && (queue.shared.lanes = 0);
606
+ workInProgressRootSkippedLanes |= lastBaseUpdate;
607
+ workInProgress$jscomp$0.lanes = lastBaseUpdate;
608
+ workInProgress$jscomp$0.memoizedState = newState;
609
+ }
610
+ }
611
+ function callCallback(callback, context) {
612
+ if ("function" !== typeof callback)
613
+ throw Error(formatProdErrorMessage(191, callback));
614
+ callback.call(context);
615
+ }
616
+ function commitCallbacks(updateQueue, context) {
617
+ var callbacks = updateQueue.callbacks;
618
+ if (null !== callbacks)
619
+ for (updateQueue.callbacks = null, updateQueue = 0; updateQueue < callbacks.length; updateQueue++)
620
+ callCallback(callbacks[updateQueue], context);
621
+ }
622
+ var currentTreeHiddenStackCursor = createCursor(null);
623
+ var prevEntangledRenderLanesCursor = createCursor(0);
624
+ function pushHiddenContext(fiber, context) {
625
+ fiber = entangledRenderLanes;
626
+ push(prevEntangledRenderLanesCursor, fiber);
627
+ push(currentTreeHiddenStackCursor, context);
628
+ entangledRenderLanes = fiber | context.baseLanes;
629
+ }
630
+ function reuseHiddenContextOnStack() {
631
+ push(prevEntangledRenderLanesCursor, entangledRenderLanes);
632
+ push(currentTreeHiddenStackCursor, currentTreeHiddenStackCursor.current);
633
+ }
634
+ function popHiddenContext() {
635
+ entangledRenderLanes = prevEntangledRenderLanesCursor.current;
636
+ pop(currentTreeHiddenStackCursor);
637
+ pop(prevEntangledRenderLanesCursor);
638
+ }
639
+ var suspenseHandlerStackCursor = createCursor(null);
640
+ var shellBoundary = null;
641
+ function pushPrimaryTreeSuspenseHandler(handler) {
642
+ var current = handler.alternate;
643
+ push(suspenseStackCursor, suspenseStackCursor.current & 1);
644
+ push(suspenseHandlerStackCursor, handler);
645
+ null === shellBoundary && (null === current || null !== currentTreeHiddenStackCursor.current ? shellBoundary = handler : null !== current.memoizedState && (shellBoundary = handler));
646
+ }
647
+ function pushDehydratedActivitySuspenseHandler(fiber) {
648
+ push(suspenseStackCursor, suspenseStackCursor.current);
649
+ push(suspenseHandlerStackCursor, fiber);
650
+ null === shellBoundary && (shellBoundary = fiber);
651
+ }
652
+ function pushOffscreenSuspenseHandler(fiber) {
653
+ 22 === fiber.tag ? (push(suspenseStackCursor, suspenseStackCursor.current), push(suspenseHandlerStackCursor, fiber), null === shellBoundary && (shellBoundary = fiber)) : reuseSuspenseHandlerOnStack(fiber);
654
+ }
655
+ function reuseSuspenseHandlerOnStack() {
656
+ push(suspenseStackCursor, suspenseStackCursor.current);
657
+ push(suspenseHandlerStackCursor, suspenseHandlerStackCursor.current);
658
+ }
659
+ function popSuspenseHandler(fiber) {
660
+ pop(suspenseHandlerStackCursor);
661
+ shellBoundary === fiber && (shellBoundary = null);
662
+ pop(suspenseStackCursor);
663
+ }
664
+ var suspenseStackCursor = createCursor(0);
665
+ function findFirstSuspended(row) {
666
+ for (var node = row; null !== node; ) {
667
+ if (13 === node.tag) {
668
+ var state = node.memoizedState;
669
+ if (null !== state && (state = state.dehydrated, null === state || isSuspenseInstancePending(state) || isSuspenseInstanceFallback(state)))
670
+ return node;
671
+ } else if (19 === node.tag && ("forwards" === node.memoizedProps.revealOrder || "backwards" === node.memoizedProps.revealOrder || "unstable_legacy-backwards" === node.memoizedProps.revealOrder || "together" === node.memoizedProps.revealOrder)) {
672
+ if (0 !== (node.flags & 128)) return node;
673
+ } else if (null !== node.child) {
674
+ node.child.return = node;
675
+ node = node.child;
676
+ continue;
677
+ }
678
+ if (node === row) break;
679
+ for (; null === node.sibling; ) {
680
+ if (null === node.return || node.return === row) return null;
681
+ node = node.return;
682
+ }
683
+ node.sibling.return = node.return;
684
+ node = node.sibling;
685
+ }
686
+ return null;
687
+ }
688
+ var renderLanes = 0;
689
+ var currentlyRenderingFiber = null;
690
+ var currentHook = null;
691
+ var workInProgressHook = null;
692
+ var didScheduleRenderPhaseUpdate = false;
693
+ var didScheduleRenderPhaseUpdateDuringThisPass = false;
694
+ var shouldDoubleInvokeUserFnsInHooksDEV = false;
695
+ var localIdCounter = 0;
696
+ var thenableIndexCounter = 0;
697
+ var thenableState = null;
698
+ var globalClientIdCounter = 0;
699
+ function throwInvalidHookError() {
700
+ throw Error(formatProdErrorMessage(321));
701
+ }
702
+ function areHookInputsEqual(nextDeps, prevDeps) {
703
+ if (null === prevDeps) return false;
704
+ for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++)
705
+ if (!objectIs(nextDeps[i], prevDeps[i])) return false;
706
+ return true;
707
+ }
708
+ function renderWithHooks(current, workInProgress2, Component, props, secondArg, nextRenderLanes) {
709
+ renderLanes = nextRenderLanes;
710
+ currentlyRenderingFiber = workInProgress2;
711
+ workInProgress2.memoizedState = null;
712
+ workInProgress2.updateQueue = null;
713
+ workInProgress2.lanes = 0;
714
+ ReactSharedInternals.H = null === current || null === current.memoizedState ? HooksDispatcherOnMount : HooksDispatcherOnUpdate;
715
+ shouldDoubleInvokeUserFnsInHooksDEV = false;
716
+ nextRenderLanes = Component(props, secondArg);
717
+ shouldDoubleInvokeUserFnsInHooksDEV = false;
718
+ didScheduleRenderPhaseUpdateDuringThisPass && (nextRenderLanes = renderWithHooksAgain(
719
+ workInProgress2,
720
+ Component,
721
+ props,
722
+ secondArg
723
+ ));
724
+ finishRenderingHooks(current);
725
+ return nextRenderLanes;
726
+ }
727
+ function finishRenderingHooks(current) {
728
+ ReactSharedInternals.H = ContextOnlyDispatcher;
729
+ var didRenderTooFewHooks = null !== currentHook && null !== currentHook.next;
730
+ renderLanes = 0;
731
+ workInProgressHook = currentHook = currentlyRenderingFiber = null;
732
+ didScheduleRenderPhaseUpdate = false;
733
+ thenableIndexCounter = 0;
734
+ thenableState = null;
735
+ if (didRenderTooFewHooks) throw Error(formatProdErrorMessage(300));
736
+ null === current || didReceiveUpdate || (current = current.dependencies, null !== current && checkIfContextChanged(current) && (didReceiveUpdate = true));
737
+ }
738
+ function renderWithHooksAgain(workInProgress2, Component, props, secondArg) {
739
+ currentlyRenderingFiber = workInProgress2;
740
+ var numberOfReRenders = 0;
741
+ do {
742
+ didScheduleRenderPhaseUpdateDuringThisPass && (thenableState = null);
743
+ thenableIndexCounter = 0;
744
+ didScheduleRenderPhaseUpdateDuringThisPass = false;
745
+ if (25 <= numberOfReRenders) throw Error(formatProdErrorMessage(301));
746
+ numberOfReRenders += 1;
747
+ workInProgressHook = currentHook = null;
748
+ if (null != workInProgress2.updateQueue) {
749
+ var children = workInProgress2.updateQueue;
750
+ children.lastEffect = null;
751
+ children.events = null;
752
+ children.stores = null;
753
+ null != children.memoCache && (children.memoCache.index = 0);
754
+ }
755
+ ReactSharedInternals.H = HooksDispatcherOnRerender;
756
+ children = Component(props, secondArg);
757
+ } while (didScheduleRenderPhaseUpdateDuringThisPass);
758
+ return children;
759
+ }
760
+ function TransitionAwareHostComponent() {
761
+ var dispatcher = ReactSharedInternals.H, maybeThenable = dispatcher.useState()[0];
762
+ maybeThenable = "function" === typeof maybeThenable.then ? useThenable(maybeThenable) : maybeThenable;
763
+ dispatcher = dispatcher.useState()[0];
764
+ (null !== currentHook ? currentHook.memoizedState : null) !== dispatcher && (currentlyRenderingFiber.flags |= 1024);
765
+ return maybeThenable;
766
+ }
767
+ function checkDidRenderIdHook() {
768
+ var didRenderIdHook = 0 !== localIdCounter;
769
+ localIdCounter = 0;
770
+ return didRenderIdHook;
771
+ }
772
+ function bailoutHooks(current, workInProgress2, lanes) {
773
+ workInProgress2.updateQueue = current.updateQueue;
774
+ workInProgress2.flags &= -2053;
775
+ current.lanes &= ~lanes;
776
+ }
777
+ function resetHooksOnUnwind(workInProgress2) {
778
+ if (didScheduleRenderPhaseUpdate) {
779
+ for (workInProgress2 = workInProgress2.memoizedState; null !== workInProgress2; ) {
780
+ var queue = workInProgress2.queue;
781
+ null !== queue && (queue.pending = null);
782
+ workInProgress2 = workInProgress2.next;
783
+ }
784
+ didScheduleRenderPhaseUpdate = false;
785
+ }
786
+ renderLanes = 0;
787
+ workInProgressHook = currentHook = currentlyRenderingFiber = null;
788
+ didScheduleRenderPhaseUpdateDuringThisPass = false;
789
+ thenableIndexCounter = localIdCounter = 0;
790
+ thenableState = null;
791
+ }
792
+ function mountWorkInProgressHook() {
793
+ var hook = {
794
+ memoizedState: null,
795
+ baseState: null,
796
+ baseQueue: null,
797
+ queue: null,
798
+ next: null
799
+ };
800
+ null === workInProgressHook ? currentlyRenderingFiber.memoizedState = workInProgressHook = hook : workInProgressHook = workInProgressHook.next = hook;
801
+ return workInProgressHook;
802
+ }
803
+ function updateWorkInProgressHook() {
804
+ if (null === currentHook) {
805
+ var nextCurrentHook = currentlyRenderingFiber.alternate;
806
+ nextCurrentHook = null !== nextCurrentHook ? nextCurrentHook.memoizedState : null;
807
+ } else nextCurrentHook = currentHook.next;
808
+ var nextWorkInProgressHook = null === workInProgressHook ? currentlyRenderingFiber.memoizedState : workInProgressHook.next;
809
+ if (null !== nextWorkInProgressHook)
810
+ workInProgressHook = nextWorkInProgressHook, currentHook = nextCurrentHook;
811
+ else {
812
+ if (null === nextCurrentHook) {
813
+ if (null === currentlyRenderingFiber.alternate)
814
+ throw Error(formatProdErrorMessage(467));
815
+ throw Error(formatProdErrorMessage(310));
816
+ }
817
+ currentHook = nextCurrentHook;
818
+ nextCurrentHook = {
819
+ memoizedState: currentHook.memoizedState,
820
+ baseState: currentHook.baseState,
821
+ baseQueue: currentHook.baseQueue,
822
+ queue: currentHook.queue,
823
+ next: null
824
+ };
825
+ null === workInProgressHook ? currentlyRenderingFiber.memoizedState = workInProgressHook = nextCurrentHook : workInProgressHook = workInProgressHook.next = nextCurrentHook;
826
+ }
827
+ return workInProgressHook;
828
+ }
829
+ function createFunctionComponentUpdateQueue() {
830
+ return { lastEffect: null, events: null, stores: null, memoCache: null };
831
+ }
832
+ function useThenable(thenable) {
833
+ var index3 = thenableIndexCounter;
834
+ thenableIndexCounter += 1;
835
+ null === thenableState && (thenableState = []);
836
+ thenable = trackUsedThenable(thenableState, thenable, index3);
837
+ index3 = currentlyRenderingFiber;
838
+ null === (null === workInProgressHook ? index3.memoizedState : workInProgressHook.next) && (index3 = index3.alternate, ReactSharedInternals.H = null === index3 || null === index3.memoizedState ? HooksDispatcherOnMount : HooksDispatcherOnUpdate);
839
+ return thenable;
840
+ }
841
+ function use2(usable) {
842
+ if (null !== usable && "object" === typeof usable) {
843
+ if ("function" === typeof usable.then) return useThenable(usable);
844
+ if (usable.$$typeof === REACT_CONTEXT_TYPE) return readContext(usable);
845
+ }
846
+ throw Error(formatProdErrorMessage(438, String(usable)));
847
+ }
848
+ function useMemoCache(size4) {
849
+ var memoCache = null, updateQueue = currentlyRenderingFiber.updateQueue;
850
+ null !== updateQueue && (memoCache = updateQueue.memoCache);
851
+ if (null == memoCache) {
852
+ var current = currentlyRenderingFiber.alternate;
853
+ null !== current && (current = current.updateQueue, null !== current && (current = current.memoCache, null != current && (memoCache = {
854
+ data: current.data.map(function(array) {
855
+ return array.slice();
856
+ }),
857
+ index: 0
858
+ })));
859
+ }
860
+ null == memoCache && (memoCache = { data: [], index: 0 });
861
+ null === updateQueue && (updateQueue = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = updateQueue);
862
+ updateQueue.memoCache = memoCache;
863
+ updateQueue = memoCache.data[memoCache.index];
864
+ if (void 0 === updateQueue)
865
+ for (updateQueue = memoCache.data[memoCache.index] = Array(size4), current = 0; current < size4; current++)
866
+ updateQueue[current] = REACT_MEMO_CACHE_SENTINEL;
867
+ memoCache.index++;
868
+ return updateQueue;
869
+ }
870
+ function basicStateReducer(state, action) {
871
+ return "function" === typeof action ? action(state) : action;
872
+ }
873
+ function updateReducer(reducer) {
874
+ var hook = updateWorkInProgressHook();
875
+ return updateReducerImpl(hook, currentHook, reducer);
876
+ }
877
+ function updateReducerImpl(hook, current, reducer) {
878
+ var queue = hook.queue;
879
+ if (null === queue) throw Error(formatProdErrorMessage(311));
880
+ queue.lastRenderedReducer = reducer;
881
+ var baseQueue = hook.baseQueue, pendingQueue = queue.pending;
882
+ if (null !== pendingQueue) {
883
+ if (null !== baseQueue) {
884
+ var baseFirst = baseQueue.next;
885
+ baseQueue.next = pendingQueue.next;
886
+ pendingQueue.next = baseFirst;
887
+ }
888
+ current.baseQueue = baseQueue = pendingQueue;
889
+ queue.pending = null;
890
+ }
891
+ pendingQueue = hook.baseState;
892
+ if (null === baseQueue) hook.memoizedState = pendingQueue;
893
+ else {
894
+ current = baseQueue.next;
895
+ var newBaseQueueFirst = baseFirst = null, newBaseQueueLast = null, update = current, didReadFromEntangledAsyncAction$60 = false;
896
+ do {
897
+ var updateLane = update.lane & -536870913;
898
+ if (updateLane !== update.lane ? (workInProgressRootRenderLanes & updateLane) === updateLane : (renderLanes & updateLane) === updateLane) {
899
+ var revertLane = update.revertLane;
900
+ if (0 === revertLane)
901
+ null !== newBaseQueueLast && (newBaseQueueLast = newBaseQueueLast.next = {
902
+ lane: 0,
903
+ revertLane: 0,
904
+ gesture: null,
905
+ action: update.action,
906
+ hasEagerState: update.hasEagerState,
907
+ eagerState: update.eagerState,
908
+ next: null
909
+ }), updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction$60 = true);
910
+ else if ((renderLanes & revertLane) === revertLane) {
911
+ update = update.next;
912
+ revertLane === currentEntangledLane && (didReadFromEntangledAsyncAction$60 = true);
913
+ continue;
914
+ } else
915
+ updateLane = {
916
+ lane: 0,
917
+ revertLane: update.revertLane,
918
+ gesture: null,
919
+ action: update.action,
920
+ hasEagerState: update.hasEagerState,
921
+ eagerState: update.eagerState,
922
+ next: null
923
+ }, null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = updateLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = updateLane, currentlyRenderingFiber.lanes |= revertLane, workInProgressRootSkippedLanes |= revertLane;
924
+ updateLane = update.action;
925
+ shouldDoubleInvokeUserFnsInHooksDEV && reducer(pendingQueue, updateLane);
926
+ pendingQueue = update.hasEagerState ? update.eagerState : reducer(pendingQueue, updateLane);
927
+ } else
928
+ revertLane = {
929
+ lane: updateLane,
930
+ revertLane: update.revertLane,
931
+ gesture: update.gesture,
932
+ action: update.action,
933
+ hasEagerState: update.hasEagerState,
934
+ eagerState: update.eagerState,
935
+ next: null
936
+ }, null === newBaseQueueLast ? (newBaseQueueFirst = newBaseQueueLast = revertLane, baseFirst = pendingQueue) : newBaseQueueLast = newBaseQueueLast.next = revertLane, currentlyRenderingFiber.lanes |= updateLane, workInProgressRootSkippedLanes |= updateLane;
937
+ update = update.next;
938
+ } while (null !== update && update !== current);
939
+ null === newBaseQueueLast ? baseFirst = pendingQueue : newBaseQueueLast.next = newBaseQueueFirst;
940
+ if (!objectIs(pendingQueue, hook.memoizedState) && (didReceiveUpdate = true, didReadFromEntangledAsyncAction$60 && (reducer = currentEntangledActionThenable, null !== reducer)))
941
+ throw reducer;
942
+ hook.memoizedState = pendingQueue;
943
+ hook.baseState = baseFirst;
944
+ hook.baseQueue = newBaseQueueLast;
945
+ queue.lastRenderedState = pendingQueue;
946
+ }
947
+ null === baseQueue && (queue.lanes = 0);
948
+ return [hook.memoizedState, queue.dispatch];
949
+ }
950
+ function rerenderReducer(reducer) {
951
+ var hook = updateWorkInProgressHook(), queue = hook.queue;
952
+ if (null === queue) throw Error(formatProdErrorMessage(311));
953
+ queue.lastRenderedReducer = reducer;
954
+ var dispatch = queue.dispatch, lastRenderPhaseUpdate = queue.pending, newState = hook.memoizedState;
955
+ if (null !== lastRenderPhaseUpdate) {
956
+ queue.pending = null;
957
+ var update = lastRenderPhaseUpdate = lastRenderPhaseUpdate.next;
958
+ do
959
+ newState = reducer(newState, update.action), update = update.next;
960
+ while (update !== lastRenderPhaseUpdate);
961
+ objectIs(newState, hook.memoizedState) || (didReceiveUpdate = true);
962
+ hook.memoizedState = newState;
963
+ null === hook.baseQueue && (hook.baseState = newState);
964
+ queue.lastRenderedState = newState;
965
+ }
966
+ return [newState, dispatch];
967
+ }
968
+ function updateSyncExternalStore(subscribe2, getSnapshot, getServerSnapshot) {
969
+ var fiber = currentlyRenderingFiber, hook = updateWorkInProgressHook(), isHydrating$jscomp$0 = isHydrating;
970
+ if (isHydrating$jscomp$0) {
971
+ if (void 0 === getServerSnapshot) throw Error(formatProdErrorMessage(407));
972
+ getServerSnapshot = getServerSnapshot();
973
+ } else getServerSnapshot = getSnapshot();
974
+ var snapshotChanged = !objectIs(
975
+ (currentHook || hook).memoizedState,
976
+ getServerSnapshot
977
+ );
978
+ snapshotChanged && (hook.memoizedState = getServerSnapshot, didReceiveUpdate = true);
979
+ hook = hook.queue;
980
+ updateEffect(subscribeToStore.bind(null, fiber, hook, subscribe2), [
981
+ subscribe2
982
+ ]);
983
+ if (hook.getSnapshot !== getSnapshot || snapshotChanged || null !== workInProgressHook && workInProgressHook.memoizedState.tag & 1) {
984
+ fiber.flags |= 2048;
985
+ pushSimpleEffect(
986
+ 9,
987
+ { destroy: void 0 },
988
+ updateStoreInstance.bind(
989
+ null,
990
+ fiber,
991
+ hook,
992
+ getServerSnapshot,
993
+ getSnapshot
994
+ ),
995
+ null
996
+ );
997
+ if (null === workInProgressRoot) throw Error(formatProdErrorMessage(349));
998
+ isHydrating$jscomp$0 || 0 !== (renderLanes & 127) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);
999
+ }
1000
+ return getServerSnapshot;
1001
+ }
1002
+ function pushStoreConsistencyCheck(fiber, getSnapshot, renderedSnapshot) {
1003
+ fiber.flags |= 16384;
1004
+ fiber = { getSnapshot, value: renderedSnapshot };
1005
+ getSnapshot = currentlyRenderingFiber.updateQueue;
1006
+ null === getSnapshot ? (getSnapshot = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = getSnapshot, getSnapshot.stores = [fiber]) : (renderedSnapshot = getSnapshot.stores, null === renderedSnapshot ? getSnapshot.stores = [fiber] : renderedSnapshot.push(fiber));
1007
+ }
1008
+ function updateStoreInstance(fiber, inst, nextSnapshot, getSnapshot) {
1009
+ inst.value = nextSnapshot;
1010
+ inst.getSnapshot = getSnapshot;
1011
+ checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);
1012
+ }
1013
+ function subscribeToStore(fiber, inst, subscribe2) {
1014
+ return subscribe2(function() {
1015
+ checkIfSnapshotChanged(inst) && forceStoreRerender(fiber);
1016
+ });
1017
+ }
1018
+ function checkIfSnapshotChanged(inst) {
1019
+ var latestGetSnapshot = inst.getSnapshot;
1020
+ inst = inst.value;
1021
+ try {
1022
+ var nextValue = latestGetSnapshot();
1023
+ return !objectIs(inst, nextValue);
1024
+ } catch (error) {
1025
+ return true;
1026
+ }
1027
+ }
1028
+ function forceStoreRerender(fiber) {
1029
+ var root2 = enqueueConcurrentRenderForLane(fiber, 2);
1030
+ null !== root2 && scheduleUpdateOnFiber(root2, fiber, 2);
1031
+ }
1032
+ function mountStateImpl(initialState) {
1033
+ var hook = mountWorkInProgressHook();
1034
+ if ("function" === typeof initialState) {
1035
+ var initialStateInitializer = initialState;
1036
+ initialState = initialStateInitializer();
1037
+ if (shouldDoubleInvokeUserFnsInHooksDEV) {
1038
+ setIsStrictModeForDevtools(true);
1039
+ try {
1040
+ initialStateInitializer();
1041
+ } finally {
1042
+ setIsStrictModeForDevtools(false);
1043
+ }
1044
+ }
1045
+ }
1046
+ hook.memoizedState = hook.baseState = initialState;
1047
+ hook.queue = {
1048
+ pending: null,
1049
+ lanes: 0,
1050
+ dispatch: null,
1051
+ lastRenderedReducer: basicStateReducer,
1052
+ lastRenderedState: initialState
1053
+ };
1054
+ return hook;
1055
+ }
1056
+ function updateOptimisticImpl(hook, current, passthrough, reducer) {
1057
+ hook.baseState = passthrough;
1058
+ return updateReducerImpl(
1059
+ hook,
1060
+ currentHook,
1061
+ "function" === typeof reducer ? reducer : basicStateReducer
1062
+ );
1063
+ }
1064
+ function dispatchActionState(fiber, actionQueue, setPendingState, setState, payload) {
1065
+ if (isRenderPhaseUpdate(fiber)) throw Error(formatProdErrorMessage(485));
1066
+ fiber = actionQueue.action;
1067
+ if (null !== fiber) {
1068
+ var actionNode = {
1069
+ payload,
1070
+ action: fiber,
1071
+ next: null,
1072
+ isTransition: true,
1073
+ status: "pending",
1074
+ value: null,
1075
+ reason: null,
1076
+ listeners: [],
1077
+ then: function(listener) {
1078
+ actionNode.listeners.push(listener);
1079
+ }
1080
+ };
1081
+ null !== ReactSharedInternals.T ? setPendingState(true) : actionNode.isTransition = false;
1082
+ setState(actionNode);
1083
+ setPendingState = actionQueue.pending;
1084
+ null === setPendingState ? (actionNode.next = actionQueue.pending = actionNode, runActionStateAction(actionQueue, actionNode)) : (actionNode.next = setPendingState.next, actionQueue.pending = setPendingState.next = actionNode);
1085
+ }
1086
+ }
1087
+ function runActionStateAction(actionQueue, node) {
1088
+ var action = node.action, payload = node.payload, prevState = actionQueue.state;
1089
+ if (node.isTransition) {
1090
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
1091
+ ReactSharedInternals.T = currentTransition;
1092
+ try {
1093
+ var returnValue = action(prevState, payload), onStartTransitionFinish = ReactSharedInternals.S;
1094
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1095
+ handleActionReturnValue(actionQueue, node, returnValue);
1096
+ } catch (error) {
1097
+ onActionError(actionQueue, node, error);
1098
+ } finally {
1099
+ null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
1100
+ }
1101
+ } else
1102
+ try {
1103
+ prevTransition = action(prevState, payload), handleActionReturnValue(actionQueue, node, prevTransition);
1104
+ } catch (error$66) {
1105
+ onActionError(actionQueue, node, error$66);
1106
+ }
1107
+ }
1108
+ function handleActionReturnValue(actionQueue, node, returnValue) {
1109
+ null !== returnValue && "object" === typeof returnValue && "function" === typeof returnValue.then ? returnValue.then(
1110
+ function(nextState) {
1111
+ onActionSuccess(actionQueue, node, nextState);
1112
+ },
1113
+ function(error) {
1114
+ return onActionError(actionQueue, node, error);
1115
+ }
1116
+ ) : onActionSuccess(actionQueue, node, returnValue);
1117
+ }
1118
+ function onActionSuccess(actionQueue, actionNode, nextState) {
1119
+ actionNode.status = "fulfilled";
1120
+ actionNode.value = nextState;
1121
+ notifyActionListeners(actionNode);
1122
+ actionQueue.state = nextState;
1123
+ actionNode = actionQueue.pending;
1124
+ null !== actionNode && (nextState = actionNode.next, nextState === actionNode ? actionQueue.pending = null : (nextState = nextState.next, actionNode.next = nextState, runActionStateAction(actionQueue, nextState)));
1125
+ }
1126
+ function onActionError(actionQueue, actionNode, error) {
1127
+ var last = actionQueue.pending;
1128
+ actionQueue.pending = null;
1129
+ if (null !== last) {
1130
+ last = last.next;
1131
+ do
1132
+ actionNode.status = "rejected", actionNode.reason = error, notifyActionListeners(actionNode), actionNode = actionNode.next;
1133
+ while (actionNode !== last);
1134
+ }
1135
+ actionQueue.action = null;
1136
+ }
1137
+ function notifyActionListeners(actionNode) {
1138
+ actionNode = actionNode.listeners;
1139
+ for (var i = 0; i < actionNode.length; i++) (0, actionNode[i])();
1140
+ }
1141
+ function actionStateReducer(oldState, newState) {
1142
+ return newState;
1143
+ }
1144
+ function mountActionState(action, initialStateProp) {
1145
+ if (isHydrating) {
1146
+ var ssrFormState = workInProgressRoot.formState;
1147
+ if (null !== ssrFormState) {
1148
+ a: {
1149
+ var JSCompiler_inline_result = currentlyRenderingFiber;
1150
+ if (isHydrating) {
1151
+ if (nextHydratableInstance) {
1152
+ b: {
1153
+ var JSCompiler_inline_result$jscomp$0 = nextHydratableInstance;
1154
+ for (var inRootOrSingleton = rootOrSingletonContext; 8 !== JSCompiler_inline_result$jscomp$0.nodeType; ) {
1155
+ if (!inRootOrSingleton) {
1156
+ JSCompiler_inline_result$jscomp$0 = null;
1157
+ break b;
1158
+ }
1159
+ JSCompiler_inline_result$jscomp$0 = getNextHydratable(
1160
+ JSCompiler_inline_result$jscomp$0.nextSibling
1161
+ );
1162
+ if (null === JSCompiler_inline_result$jscomp$0) {
1163
+ JSCompiler_inline_result$jscomp$0 = null;
1164
+ break b;
1165
+ }
1166
+ }
1167
+ inRootOrSingleton = JSCompiler_inline_result$jscomp$0.data;
1168
+ JSCompiler_inline_result$jscomp$0 = "F!" === inRootOrSingleton || "F" === inRootOrSingleton ? JSCompiler_inline_result$jscomp$0 : null;
1169
+ }
1170
+ if (JSCompiler_inline_result$jscomp$0) {
1171
+ nextHydratableInstance = getNextHydratable(
1172
+ JSCompiler_inline_result$jscomp$0.nextSibling
1173
+ );
1174
+ JSCompiler_inline_result = "F!" === JSCompiler_inline_result$jscomp$0.data;
1175
+ break a;
1176
+ }
1177
+ }
1178
+ throwOnHydrationMismatch(JSCompiler_inline_result);
1179
+ }
1180
+ JSCompiler_inline_result = false;
1181
+ }
1182
+ JSCompiler_inline_result && (initialStateProp = ssrFormState[0]);
1183
+ }
1184
+ }
1185
+ ssrFormState = mountWorkInProgressHook();
1186
+ ssrFormState.memoizedState = ssrFormState.baseState = initialStateProp;
1187
+ JSCompiler_inline_result = {
1188
+ pending: null,
1189
+ lanes: 0,
1190
+ dispatch: null,
1191
+ lastRenderedReducer: actionStateReducer,
1192
+ lastRenderedState: initialStateProp
1193
+ };
1194
+ ssrFormState.queue = JSCompiler_inline_result;
1195
+ ssrFormState = dispatchSetState.bind(
1196
+ null,
1197
+ currentlyRenderingFiber,
1198
+ JSCompiler_inline_result
1199
+ );
1200
+ JSCompiler_inline_result.dispatch = ssrFormState;
1201
+ JSCompiler_inline_result = mountStateImpl(false);
1202
+ inRootOrSingleton = dispatchOptimisticSetState.bind(
1203
+ null,
1204
+ currentlyRenderingFiber,
1205
+ false,
1206
+ JSCompiler_inline_result.queue
1207
+ );
1208
+ JSCompiler_inline_result = mountWorkInProgressHook();
1209
+ JSCompiler_inline_result$jscomp$0 = {
1210
+ state: initialStateProp,
1211
+ dispatch: null,
1212
+ action,
1213
+ pending: null
1214
+ };
1215
+ JSCompiler_inline_result.queue = JSCompiler_inline_result$jscomp$0;
1216
+ ssrFormState = dispatchActionState.bind(
1217
+ null,
1218
+ currentlyRenderingFiber,
1219
+ JSCompiler_inline_result$jscomp$0,
1220
+ inRootOrSingleton,
1221
+ ssrFormState
1222
+ );
1223
+ JSCompiler_inline_result$jscomp$0.dispatch = ssrFormState;
1224
+ JSCompiler_inline_result.memoizedState = action;
1225
+ return [initialStateProp, ssrFormState, false];
1226
+ }
1227
+ function updateActionState(action) {
1228
+ var stateHook = updateWorkInProgressHook();
1229
+ return updateActionStateImpl(stateHook, currentHook, action);
1230
+ }
1231
+ function updateActionStateImpl(stateHook, currentStateHook, action) {
1232
+ currentStateHook = updateReducerImpl(
1233
+ stateHook,
1234
+ currentStateHook,
1235
+ actionStateReducer
1236
+ )[0];
1237
+ stateHook = updateReducer(basicStateReducer)[0];
1238
+ if ("object" === typeof currentStateHook && null !== currentStateHook && "function" === typeof currentStateHook.then)
1239
+ try {
1240
+ var state = useThenable(currentStateHook);
1241
+ } catch (x) {
1242
+ if (x === SuspenseException) throw SuspenseActionException;
1243
+ throw x;
1244
+ }
1245
+ else state = currentStateHook;
1246
+ currentStateHook = updateWorkInProgressHook();
1247
+ var actionQueue = currentStateHook.queue, dispatch = actionQueue.dispatch;
1248
+ action !== currentStateHook.memoizedState && (currentlyRenderingFiber.flags |= 2048, pushSimpleEffect(
1249
+ 9,
1250
+ { destroy: void 0 },
1251
+ actionStateActionEffect.bind(null, actionQueue, action),
1252
+ null
1253
+ ));
1254
+ return [state, dispatch, stateHook];
1255
+ }
1256
+ function actionStateActionEffect(actionQueue, action) {
1257
+ actionQueue.action = action;
1258
+ }
1259
+ function rerenderActionState(action) {
1260
+ var stateHook = updateWorkInProgressHook(), currentStateHook = currentHook;
1261
+ if (null !== currentStateHook)
1262
+ return updateActionStateImpl(stateHook, currentStateHook, action);
1263
+ updateWorkInProgressHook();
1264
+ stateHook = stateHook.memoizedState;
1265
+ currentStateHook = updateWorkInProgressHook();
1266
+ var dispatch = currentStateHook.queue.dispatch;
1267
+ currentStateHook.memoizedState = action;
1268
+ return [stateHook, dispatch, false];
1269
+ }
1270
+ function pushSimpleEffect(tag, inst, create, deps) {
1271
+ tag = { tag, create, deps, inst, next: null };
1272
+ inst = currentlyRenderingFiber.updateQueue;
1273
+ null === inst && (inst = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = inst);
1274
+ create = inst.lastEffect;
1275
+ null === create ? inst.lastEffect = tag.next = tag : (deps = create.next, create.next = tag, tag.next = deps, inst.lastEffect = tag);
1276
+ return tag;
1277
+ }
1278
+ function updateRef() {
1279
+ return updateWorkInProgressHook().memoizedState;
1280
+ }
1281
+ function mountEffectImpl(fiberFlags, hookFlags, create, deps) {
1282
+ var hook = mountWorkInProgressHook();
1283
+ currentlyRenderingFiber.flags |= fiberFlags;
1284
+ hook.memoizedState = pushSimpleEffect(
1285
+ 1 | hookFlags,
1286
+ { destroy: void 0 },
1287
+ create,
1288
+ void 0 === deps ? null : deps
1289
+ );
1290
+ }
1291
+ function updateEffectImpl(fiberFlags, hookFlags, create, deps) {
1292
+ var hook = updateWorkInProgressHook();
1293
+ deps = void 0 === deps ? null : deps;
1294
+ var inst = hook.memoizedState.inst;
1295
+ null !== currentHook && null !== deps && areHookInputsEqual(deps, currentHook.memoizedState.deps) ? hook.memoizedState = pushSimpleEffect(hookFlags, inst, create, deps) : (currentlyRenderingFiber.flags |= fiberFlags, hook.memoizedState = pushSimpleEffect(
1296
+ 1 | hookFlags,
1297
+ inst,
1298
+ create,
1299
+ deps
1300
+ ));
1301
+ }
1302
+ function mountEffect(create, deps) {
1303
+ mountEffectImpl(8390656, 8, create, deps);
1304
+ }
1305
+ function updateEffect(create, deps) {
1306
+ updateEffectImpl(2048, 8, create, deps);
1307
+ }
1308
+ function useEffectEventImpl(payload) {
1309
+ currentlyRenderingFiber.flags |= 4;
1310
+ var componentUpdateQueue = currentlyRenderingFiber.updateQueue;
1311
+ if (null === componentUpdateQueue)
1312
+ componentUpdateQueue = createFunctionComponentUpdateQueue(), currentlyRenderingFiber.updateQueue = componentUpdateQueue, componentUpdateQueue.events = [payload];
1313
+ else {
1314
+ var events = componentUpdateQueue.events;
1315
+ null === events ? componentUpdateQueue.events = [payload] : events.push(payload);
1316
+ }
1317
+ }
1318
+ function updateEvent(callback) {
1319
+ var ref = updateWorkInProgressHook().memoizedState;
1320
+ useEffectEventImpl({ ref, nextImpl: callback });
1321
+ return function() {
1322
+ if (0 !== (executionContext & 2)) throw Error(formatProdErrorMessage(440));
1323
+ return ref.impl.apply(void 0, arguments);
1324
+ };
1325
+ }
1326
+ function updateInsertionEffect(create, deps) {
1327
+ return updateEffectImpl(4, 2, create, deps);
1328
+ }
1329
+ function updateLayoutEffect(create, deps) {
1330
+ return updateEffectImpl(4, 4, create, deps);
1331
+ }
1332
+ function imperativeHandleEffect(create, ref) {
1333
+ if ("function" === typeof ref) {
1334
+ create = create();
1335
+ var refCleanup = ref(create);
1336
+ return function() {
1337
+ "function" === typeof refCleanup ? refCleanup() : ref(null);
1338
+ };
1339
+ }
1340
+ if (null !== ref && void 0 !== ref)
1341
+ return create = create(), ref.current = create, function() {
1342
+ ref.current = null;
1343
+ };
1344
+ }
1345
+ function updateImperativeHandle(ref, create, deps) {
1346
+ deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
1347
+ updateEffectImpl(4, 4, imperativeHandleEffect.bind(null, create, ref), deps);
1348
+ }
1349
+ function mountDebugValue() {
1350
+ }
1351
+ function updateCallback(callback, deps) {
1352
+ var hook = updateWorkInProgressHook();
1353
+ deps = void 0 === deps ? null : deps;
1354
+ var prevState = hook.memoizedState;
1355
+ if (null !== deps && areHookInputsEqual(deps, prevState[1]))
1356
+ return prevState[0];
1357
+ hook.memoizedState = [callback, deps];
1358
+ return callback;
1359
+ }
1360
+ function updateMemo(nextCreate, deps) {
1361
+ var hook = updateWorkInProgressHook();
1362
+ deps = void 0 === deps ? null : deps;
1363
+ var prevState = hook.memoizedState;
1364
+ if (null !== deps && areHookInputsEqual(deps, prevState[1]))
1365
+ return prevState[0];
1366
+ prevState = nextCreate();
1367
+ if (shouldDoubleInvokeUserFnsInHooksDEV) {
1368
+ setIsStrictModeForDevtools(true);
1369
+ try {
1370
+ nextCreate();
1371
+ } finally {
1372
+ setIsStrictModeForDevtools(false);
1373
+ }
1374
+ }
1375
+ hook.memoizedState = [prevState, deps];
1376
+ return prevState;
1377
+ }
1378
+ function mountDeferredValueImpl(hook, value, initialValue) {
1379
+ if (void 0 === initialValue || 0 !== (renderLanes & 1073741824) && 0 === (workInProgressRootRenderLanes & 261930))
1380
+ return hook.memoizedState = value;
1381
+ hook.memoizedState = initialValue;
1382
+ hook = requestDeferredLane();
1383
+ currentlyRenderingFiber.lanes |= hook;
1384
+ workInProgressRootSkippedLanes |= hook;
1385
+ return initialValue;
1386
+ }
1387
+ function updateDeferredValueImpl(hook, prevValue, value, initialValue) {
1388
+ if (objectIs(value, prevValue)) return value;
1389
+ if (null !== currentTreeHiddenStackCursor.current)
1390
+ return hook = mountDeferredValueImpl(hook, value, initialValue), objectIs(hook, prevValue) || (didReceiveUpdate = true), hook;
1391
+ if (0 === (renderLanes & 42) || 0 !== (renderLanes & 1073741824) && 0 === (workInProgressRootRenderLanes & 261930))
1392
+ return didReceiveUpdate = true, hook.memoizedState = value;
1393
+ hook = requestDeferredLane();
1394
+ currentlyRenderingFiber.lanes |= hook;
1395
+ workInProgressRootSkippedLanes |= hook;
1396
+ return prevValue;
1397
+ }
1398
+ function startTransition(fiber, queue, pendingState, finishedState, callback) {
1399
+ var previousPriority = ReactDOMSharedInternals.p;
1400
+ ReactDOMSharedInternals.p = 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8;
1401
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
1402
+ ReactSharedInternals.T = currentTransition;
1403
+ dispatchOptimisticSetState(fiber, false, queue, pendingState);
1404
+ try {
1405
+ var returnValue = callback(), onStartTransitionFinish = ReactSharedInternals.S;
1406
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1407
+ if (null !== returnValue && "object" === typeof returnValue && "function" === typeof returnValue.then) {
1408
+ var thenableForFinishedState = chainThenableValue(
1409
+ returnValue,
1410
+ finishedState
1411
+ );
1412
+ dispatchSetStateInternal(
1413
+ fiber,
1414
+ queue,
1415
+ thenableForFinishedState,
1416
+ requestUpdateLane(fiber)
1417
+ );
1418
+ } else
1419
+ dispatchSetStateInternal(
1420
+ fiber,
1421
+ queue,
1422
+ finishedState,
1423
+ requestUpdateLane(fiber)
1424
+ );
1425
+ } catch (error) {
1426
+ dispatchSetStateInternal(
1427
+ fiber,
1428
+ queue,
1429
+ { then: function() {
1430
+ }, status: "rejected", reason: error },
1431
+ requestUpdateLane()
1432
+ );
1433
+ } finally {
1434
+ ReactDOMSharedInternals.p = previousPriority, null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
1435
+ }
1436
+ }
1437
+ function noop3() {
1438
+ }
1439
+ function startHostTransition(formFiber, pendingState, action, formData) {
1440
+ if (5 !== formFiber.tag) throw Error(formatProdErrorMessage(476));
1441
+ var queue = ensureFormComponentIsStateful(formFiber).queue;
1442
+ startTransition(
1443
+ formFiber,
1444
+ queue,
1445
+ pendingState,
1446
+ sharedNotPendingObject,
1447
+ null === action ? noop3 : function() {
1448
+ requestFormReset$1(formFiber);
1449
+ return action(formData);
1450
+ }
1451
+ );
1452
+ }
1453
+ function ensureFormComponentIsStateful(formFiber) {
1454
+ var existingStateHook = formFiber.memoizedState;
1455
+ if (null !== existingStateHook) return existingStateHook;
1456
+ existingStateHook = {
1457
+ memoizedState: sharedNotPendingObject,
1458
+ baseState: sharedNotPendingObject,
1459
+ baseQueue: null,
1460
+ queue: {
1461
+ pending: null,
1462
+ lanes: 0,
1463
+ dispatch: null,
1464
+ lastRenderedReducer: basicStateReducer,
1465
+ lastRenderedState: sharedNotPendingObject
1466
+ },
1467
+ next: null
1468
+ };
1469
+ var initialResetState = {};
1470
+ existingStateHook.next = {
1471
+ memoizedState: initialResetState,
1472
+ baseState: initialResetState,
1473
+ baseQueue: null,
1474
+ queue: {
1475
+ pending: null,
1476
+ lanes: 0,
1477
+ dispatch: null,
1478
+ lastRenderedReducer: basicStateReducer,
1479
+ lastRenderedState: initialResetState
1480
+ },
1481
+ next: null
1482
+ };
1483
+ formFiber.memoizedState = existingStateHook;
1484
+ formFiber = formFiber.alternate;
1485
+ null !== formFiber && (formFiber.memoizedState = existingStateHook);
1486
+ return existingStateHook;
1487
+ }
1488
+ function requestFormReset$1(formFiber) {
1489
+ var stateHook = ensureFormComponentIsStateful(formFiber);
1490
+ null === stateHook.next && (stateHook = formFiber.alternate.memoizedState);
1491
+ dispatchSetStateInternal(
1492
+ formFiber,
1493
+ stateHook.next.queue,
1494
+ {},
1495
+ requestUpdateLane()
1496
+ );
1497
+ }
1498
+ function useHostTransitionStatus() {
1499
+ return readContext(HostTransitionContext);
1500
+ }
1501
+ function updateId() {
1502
+ return updateWorkInProgressHook().memoizedState;
1503
+ }
1504
+ function updateRefresh() {
1505
+ return updateWorkInProgressHook().memoizedState;
1506
+ }
1507
+ function refreshCache(fiber) {
1508
+ for (var provider = fiber.return; null !== provider; ) {
1509
+ switch (provider.tag) {
1510
+ case 24:
1511
+ case 3:
1512
+ var lane = requestUpdateLane();
1513
+ fiber = createUpdate(lane);
1514
+ var root$69 = enqueueUpdate(provider, fiber, lane);
1515
+ null !== root$69 && (scheduleUpdateOnFiber(root$69, provider, lane), entangleTransitions(root$69, provider, lane));
1516
+ provider = { cache: createCache() };
1517
+ fiber.payload = provider;
1518
+ return;
1519
+ }
1520
+ provider = provider.return;
1521
+ }
1522
+ }
1523
+ function dispatchReducerAction(fiber, queue, action) {
1524
+ var lane = requestUpdateLane();
1525
+ action = {
1526
+ lane,
1527
+ revertLane: 0,
1528
+ gesture: null,
1529
+ action,
1530
+ hasEagerState: false,
1531
+ eagerState: null,
1532
+ next: null
1533
+ };
1534
+ isRenderPhaseUpdate(fiber) ? enqueueRenderPhaseUpdate(queue, action) : (action = enqueueConcurrentHookUpdate(fiber, queue, action, lane), null !== action && (scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane)));
1535
+ }
1536
+ function dispatchSetState(fiber, queue, action) {
1537
+ var lane = requestUpdateLane();
1538
+ dispatchSetStateInternal(fiber, queue, action, lane);
1539
+ }
1540
+ function dispatchSetStateInternal(fiber, queue, action, lane) {
1541
+ var update = {
1542
+ lane,
1543
+ revertLane: 0,
1544
+ gesture: null,
1545
+ action,
1546
+ hasEagerState: false,
1547
+ eagerState: null,
1548
+ next: null
1549
+ };
1550
+ if (isRenderPhaseUpdate(fiber)) enqueueRenderPhaseUpdate(queue, update);
1551
+ else {
1552
+ var alternate = fiber.alternate;
1553
+ if (0 === fiber.lanes && (null === alternate || 0 === alternate.lanes) && (alternate = queue.lastRenderedReducer, null !== alternate))
1554
+ try {
1555
+ var currentState = queue.lastRenderedState, eagerState = alternate(currentState, action);
1556
+ update.hasEagerState = true;
1557
+ update.eagerState = eagerState;
1558
+ if (objectIs(eagerState, currentState))
1559
+ return enqueueUpdate$1(fiber, queue, update, 0), null === workInProgressRoot && finishQueueingConcurrentUpdates(), false;
1560
+ } catch (error) {
1561
+ } finally {
1562
+ }
1563
+ action = enqueueConcurrentHookUpdate(fiber, queue, update, lane);
1564
+ if (null !== action)
1565
+ return scheduleUpdateOnFiber(action, fiber, lane), entangleTransitionUpdate(action, queue, lane), true;
1566
+ }
1567
+ return false;
1568
+ }
1569
+ function dispatchOptimisticSetState(fiber, throwIfDuringRender, queue, action) {
1570
+ action = {
1571
+ lane: 2,
1572
+ revertLane: requestTransitionLane(),
1573
+ gesture: null,
1574
+ action,
1575
+ hasEagerState: false,
1576
+ eagerState: null,
1577
+ next: null
1578
+ };
1579
+ if (isRenderPhaseUpdate(fiber)) {
1580
+ if (throwIfDuringRender) throw Error(formatProdErrorMessage(479));
1581
+ } else
1582
+ throwIfDuringRender = enqueueConcurrentHookUpdate(
1583
+ fiber,
1584
+ queue,
1585
+ action,
1586
+ 2
1587
+ ), null !== throwIfDuringRender && scheduleUpdateOnFiber(throwIfDuringRender, fiber, 2);
1588
+ }
1589
+ function isRenderPhaseUpdate(fiber) {
1590
+ var alternate = fiber.alternate;
1591
+ return fiber === currentlyRenderingFiber || null !== alternate && alternate === currentlyRenderingFiber;
1592
+ }
1593
+ function enqueueRenderPhaseUpdate(queue, update) {
1594
+ didScheduleRenderPhaseUpdateDuringThisPass = didScheduleRenderPhaseUpdate = true;
1595
+ var pending = queue.pending;
1596
+ null === pending ? update.next = update : (update.next = pending.next, pending.next = update);
1597
+ queue.pending = update;
1598
+ }
1599
+ function entangleTransitionUpdate(root2, queue, lane) {
1600
+ if (0 !== (lane & 4194048)) {
1601
+ var queueLanes = queue.lanes;
1602
+ queueLanes &= root2.pendingLanes;
1603
+ lane |= queueLanes;
1604
+ queue.lanes = lane;
1605
+ markRootEntangled(root2, lane);
1606
+ }
1607
+ }
1608
+ var ContextOnlyDispatcher = {
1609
+ readContext,
1610
+ use: use2,
1611
+ useCallback: throwInvalidHookError,
1612
+ useContext: throwInvalidHookError,
1613
+ useEffect: throwInvalidHookError,
1614
+ useImperativeHandle: throwInvalidHookError,
1615
+ useLayoutEffect: throwInvalidHookError,
1616
+ useInsertionEffect: throwInvalidHookError,
1617
+ useMemo: throwInvalidHookError,
1618
+ useReducer: throwInvalidHookError,
1619
+ useRef: throwInvalidHookError,
1620
+ useState: throwInvalidHookError,
1621
+ useDebugValue: throwInvalidHookError,
1622
+ useDeferredValue: throwInvalidHookError,
1623
+ useTransition: throwInvalidHookError,
1624
+ useSyncExternalStore: throwInvalidHookError,
1625
+ useId: throwInvalidHookError,
1626
+ useHostTransitionStatus: throwInvalidHookError,
1627
+ useFormState: throwInvalidHookError,
1628
+ useActionState: throwInvalidHookError,
1629
+ useOptimistic: throwInvalidHookError,
1630
+ useMemoCache: throwInvalidHookError,
1631
+ useCacheRefresh: throwInvalidHookError
1632
+ };
1633
+ ContextOnlyDispatcher.useEffectEvent = throwInvalidHookError;
1634
+ var HooksDispatcherOnMount = {
1635
+ readContext,
1636
+ use: use2,
1637
+ useCallback: function(callback, deps) {
1638
+ mountWorkInProgressHook().memoizedState = [
1639
+ callback,
1640
+ void 0 === deps ? null : deps
1641
+ ];
1642
+ return callback;
1643
+ },
1644
+ useContext: readContext,
1645
+ useEffect: mountEffect,
1646
+ useImperativeHandle: function(ref, create, deps) {
1647
+ deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null;
1648
+ mountEffectImpl(
1649
+ 4194308,
1650
+ 4,
1651
+ imperativeHandleEffect.bind(null, create, ref),
1652
+ deps
1653
+ );
1654
+ },
1655
+ useLayoutEffect: function(create, deps) {
1656
+ return mountEffectImpl(4194308, 4, create, deps);
1657
+ },
1658
+ useInsertionEffect: function(create, deps) {
1659
+ mountEffectImpl(4, 2, create, deps);
1660
+ },
1661
+ useMemo: function(nextCreate, deps) {
1662
+ var hook = mountWorkInProgressHook();
1663
+ deps = void 0 === deps ? null : deps;
1664
+ var nextValue = nextCreate();
1665
+ if (shouldDoubleInvokeUserFnsInHooksDEV) {
1666
+ setIsStrictModeForDevtools(true);
1667
+ try {
1668
+ nextCreate();
1669
+ } finally {
1670
+ setIsStrictModeForDevtools(false);
1671
+ }
1672
+ }
1673
+ hook.memoizedState = [nextValue, deps];
1674
+ return nextValue;
1675
+ },
1676
+ useReducer: function(reducer, initialArg, init) {
1677
+ var hook = mountWorkInProgressHook();
1678
+ if (void 0 !== init) {
1679
+ var initialState = init(initialArg);
1680
+ if (shouldDoubleInvokeUserFnsInHooksDEV) {
1681
+ setIsStrictModeForDevtools(true);
1682
+ try {
1683
+ init(initialArg);
1684
+ } finally {
1685
+ setIsStrictModeForDevtools(false);
1686
+ }
1687
+ }
1688
+ } else initialState = initialArg;
1689
+ hook.memoizedState = hook.baseState = initialState;
1690
+ reducer = {
1691
+ pending: null,
1692
+ lanes: 0,
1693
+ dispatch: null,
1694
+ lastRenderedReducer: reducer,
1695
+ lastRenderedState: initialState
1696
+ };
1697
+ hook.queue = reducer;
1698
+ reducer = reducer.dispatch = dispatchReducerAction.bind(
1699
+ null,
1700
+ currentlyRenderingFiber,
1701
+ reducer
1702
+ );
1703
+ return [hook.memoizedState, reducer];
1704
+ },
1705
+ useRef: function(initialValue) {
1706
+ var hook = mountWorkInProgressHook();
1707
+ initialValue = { current: initialValue };
1708
+ return hook.memoizedState = initialValue;
1709
+ },
1710
+ useState: function(initialState) {
1711
+ initialState = mountStateImpl(initialState);
1712
+ var queue = initialState.queue, dispatch = dispatchSetState.bind(null, currentlyRenderingFiber, queue);
1713
+ queue.dispatch = dispatch;
1714
+ return [initialState.memoizedState, dispatch];
1715
+ },
1716
+ useDebugValue: mountDebugValue,
1717
+ useDeferredValue: function(value, initialValue) {
1718
+ var hook = mountWorkInProgressHook();
1719
+ return mountDeferredValueImpl(hook, value, initialValue);
1720
+ },
1721
+ useTransition: function() {
1722
+ var stateHook = mountStateImpl(false);
1723
+ stateHook = startTransition.bind(
1724
+ null,
1725
+ currentlyRenderingFiber,
1726
+ stateHook.queue,
1727
+ true,
1728
+ false
1729
+ );
1730
+ mountWorkInProgressHook().memoizedState = stateHook;
1731
+ return [false, stateHook];
1732
+ },
1733
+ useSyncExternalStore: function(subscribe2, getSnapshot, getServerSnapshot) {
1734
+ var fiber = currentlyRenderingFiber, hook = mountWorkInProgressHook();
1735
+ if (isHydrating) {
1736
+ if (void 0 === getServerSnapshot)
1737
+ throw Error(formatProdErrorMessage(407));
1738
+ getServerSnapshot = getServerSnapshot();
1739
+ } else {
1740
+ getServerSnapshot = getSnapshot();
1741
+ if (null === workInProgressRoot)
1742
+ throw Error(formatProdErrorMessage(349));
1743
+ 0 !== (workInProgressRootRenderLanes & 127) || pushStoreConsistencyCheck(fiber, getSnapshot, getServerSnapshot);
1744
+ }
1745
+ hook.memoizedState = getServerSnapshot;
1746
+ var inst = { value: getServerSnapshot, getSnapshot };
1747
+ hook.queue = inst;
1748
+ mountEffect(subscribeToStore.bind(null, fiber, inst, subscribe2), [
1749
+ subscribe2
1750
+ ]);
1751
+ fiber.flags |= 2048;
1752
+ pushSimpleEffect(
1753
+ 9,
1754
+ { destroy: void 0 },
1755
+ updateStoreInstance.bind(
1756
+ null,
1757
+ fiber,
1758
+ inst,
1759
+ getServerSnapshot,
1760
+ getSnapshot
1761
+ ),
1762
+ null
1763
+ );
1764
+ return getServerSnapshot;
1765
+ },
1766
+ useId: function() {
1767
+ var hook = mountWorkInProgressHook(), identifierPrefix = workInProgressRoot.identifierPrefix;
1768
+ if (isHydrating) {
1769
+ var JSCompiler_inline_result = treeContextOverflow;
1770
+ var idWithLeadingBit = treeContextId;
1771
+ JSCompiler_inline_result = (idWithLeadingBit & ~(1 << 32 - clz32(idWithLeadingBit) - 1)).toString(32) + JSCompiler_inline_result;
1772
+ identifierPrefix = "_" + identifierPrefix + "R_" + JSCompiler_inline_result;
1773
+ JSCompiler_inline_result = localIdCounter++;
1774
+ 0 < JSCompiler_inline_result && (identifierPrefix += "H" + JSCompiler_inline_result.toString(32));
1775
+ identifierPrefix += "_";
1776
+ } else
1777
+ JSCompiler_inline_result = globalClientIdCounter++, identifierPrefix = "_" + identifierPrefix + "r_" + JSCompiler_inline_result.toString(32) + "_";
1778
+ return hook.memoizedState = identifierPrefix;
1779
+ },
1780
+ useHostTransitionStatus,
1781
+ useFormState: mountActionState,
1782
+ useActionState: mountActionState,
1783
+ useOptimistic: function(passthrough) {
1784
+ var hook = mountWorkInProgressHook();
1785
+ hook.memoizedState = hook.baseState = passthrough;
1786
+ var queue = {
1787
+ pending: null,
1788
+ lanes: 0,
1789
+ dispatch: null,
1790
+ lastRenderedReducer: null,
1791
+ lastRenderedState: null
1792
+ };
1793
+ hook.queue = queue;
1794
+ hook = dispatchOptimisticSetState.bind(
1795
+ null,
1796
+ currentlyRenderingFiber,
1797
+ true,
1798
+ queue
1799
+ );
1800
+ queue.dispatch = hook;
1801
+ return [passthrough, hook];
1802
+ },
1803
+ useMemoCache,
1804
+ useCacheRefresh: function() {
1805
+ return mountWorkInProgressHook().memoizedState = refreshCache.bind(
1806
+ null,
1807
+ currentlyRenderingFiber
1808
+ );
1809
+ },
1810
+ useEffectEvent: function(callback) {
1811
+ var hook = mountWorkInProgressHook(), ref = { impl: callback };
1812
+ hook.memoizedState = ref;
1813
+ return function() {
1814
+ if (0 !== (executionContext & 2))
1815
+ throw Error(formatProdErrorMessage(440));
1816
+ return ref.impl.apply(void 0, arguments);
1817
+ };
1818
+ }
1819
+ };
1820
+ var HooksDispatcherOnUpdate = {
1821
+ readContext,
1822
+ use: use2,
1823
+ useCallback: updateCallback,
1824
+ useContext: readContext,
1825
+ useEffect: updateEffect,
1826
+ useImperativeHandle: updateImperativeHandle,
1827
+ useInsertionEffect: updateInsertionEffect,
1828
+ useLayoutEffect: updateLayoutEffect,
1829
+ useMemo: updateMemo,
1830
+ useReducer: updateReducer,
1831
+ useRef: updateRef,
1832
+ useState: function() {
1833
+ return updateReducer(basicStateReducer);
1834
+ },
1835
+ useDebugValue: mountDebugValue,
1836
+ useDeferredValue: function(value, initialValue) {
1837
+ var hook = updateWorkInProgressHook();
1838
+ return updateDeferredValueImpl(
1839
+ hook,
1840
+ currentHook.memoizedState,
1841
+ value,
1842
+ initialValue
1843
+ );
1844
+ },
1845
+ useTransition: function() {
1846
+ var booleanOrThenable = updateReducer(basicStateReducer)[0], start2 = updateWorkInProgressHook().memoizedState;
1847
+ return [
1848
+ "boolean" === typeof booleanOrThenable ? booleanOrThenable : useThenable(booleanOrThenable),
1849
+ start2
1850
+ ];
1851
+ },
1852
+ useSyncExternalStore: updateSyncExternalStore,
1853
+ useId: updateId,
1854
+ useHostTransitionStatus,
1855
+ useFormState: updateActionState,
1856
+ useActionState: updateActionState,
1857
+ useOptimistic: function(passthrough, reducer) {
1858
+ var hook = updateWorkInProgressHook();
1859
+ return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
1860
+ },
1861
+ useMemoCache,
1862
+ useCacheRefresh: updateRefresh
1863
+ };
1864
+ HooksDispatcherOnUpdate.useEffectEvent = updateEvent;
1865
+ var HooksDispatcherOnRerender = {
1866
+ readContext,
1867
+ use: use2,
1868
+ useCallback: updateCallback,
1869
+ useContext: readContext,
1870
+ useEffect: updateEffect,
1871
+ useImperativeHandle: updateImperativeHandle,
1872
+ useInsertionEffect: updateInsertionEffect,
1873
+ useLayoutEffect: updateLayoutEffect,
1874
+ useMemo: updateMemo,
1875
+ useReducer: rerenderReducer,
1876
+ useRef: updateRef,
1877
+ useState: function() {
1878
+ return rerenderReducer(basicStateReducer);
1879
+ },
1880
+ useDebugValue: mountDebugValue,
1881
+ useDeferredValue: function(value, initialValue) {
1882
+ var hook = updateWorkInProgressHook();
1883
+ return null === currentHook ? mountDeferredValueImpl(hook, value, initialValue) : updateDeferredValueImpl(
1884
+ hook,
1885
+ currentHook.memoizedState,
1886
+ value,
1887
+ initialValue
1888
+ );
1889
+ },
1890
+ useTransition: function() {
1891
+ var booleanOrThenable = rerenderReducer(basicStateReducer)[0], start2 = updateWorkInProgressHook().memoizedState;
1892
+ return [
1893
+ "boolean" === typeof booleanOrThenable ? booleanOrThenable : useThenable(booleanOrThenable),
1894
+ start2
1895
+ ];
1896
+ },
1897
+ useSyncExternalStore: updateSyncExternalStore,
1898
+ useId: updateId,
1899
+ useHostTransitionStatus,
1900
+ useFormState: rerenderActionState,
1901
+ useActionState: rerenderActionState,
1902
+ useOptimistic: function(passthrough, reducer) {
1903
+ var hook = updateWorkInProgressHook();
1904
+ if (null !== currentHook)
1905
+ return updateOptimisticImpl(hook, currentHook, passthrough, reducer);
1906
+ hook.baseState = passthrough;
1907
+ return [passthrough, hook.queue.dispatch];
1908
+ },
1909
+ useMemoCache,
1910
+ useCacheRefresh: updateRefresh
1911
+ };
1912
+ HooksDispatcherOnRerender.useEffectEvent = updateEvent;
1913
+ function applyDerivedStateFromProps(workInProgress2, ctor, getDerivedStateFromProps, nextProps) {
1914
+ ctor = workInProgress2.memoizedState;
1915
+ getDerivedStateFromProps = getDerivedStateFromProps(nextProps, ctor);
1916
+ getDerivedStateFromProps = null === getDerivedStateFromProps || void 0 === getDerivedStateFromProps ? ctor : assign({}, ctor, getDerivedStateFromProps);
1917
+ workInProgress2.memoizedState = getDerivedStateFromProps;
1918
+ 0 === workInProgress2.lanes && (workInProgress2.updateQueue.baseState = getDerivedStateFromProps);
1919
+ }