openplanr 2.2640.8 → 2.2640.9

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 (186) hide show
  1. package/CHANGELOG.md +8 -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 +165 -33
  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/templates/artifact-review-stage.js.sources/01-module-runtime.js +18 -0
  34. 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
  35. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +5193 -0
  36. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +4175 -0
  37. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +65 -0
  38. 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
  39. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +62 -0
  40. 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
  41. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +123 -0
  42. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  43. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +34 -0
  44. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +992 -0
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +27 -0
  53. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +13 -0
  54. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +3561 -0
  55. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +184 -0
  56. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +5045 -0
  57. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +1698 -0
  58. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +455 -0
  59. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +1844 -0
  60. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +257 -0
  61. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +1 -1
  62. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +4966 -0
  63. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design.mjs +240 -5192
  64. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +1 -1
  65. package/lib/host-packages/claude/openplanr/skills/delegate/scripts/backend-diagnostics.mjs +6 -2
  66. package/lib/host-packages/cursor/openplanr/.openplanr-content.json +164 -32
  67. package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
  68. package/lib/host-packages/cursor/openplanr/rules/planr-delegate/scripts/backend-diagnostics.mjs +6 -2
  69. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-artifact-shell.mjs +3 -11
  70. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +555 -0
  71. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-pako-esm.mjs → cursor/openplanr/runtime/design/scripts/design-compression.mjs} +2 -1521
  72. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-document.mjs +133 -12
  73. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +647 -0
  74. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-entities.mjs +17 -67
  75. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-handoff.mjs +14 -16
  76. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-planr-home.mjs → cursor/openplanr/runtime/design/scripts/design-loopback-server.mjs} +15 -36
  77. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-owner-custody.mjs +121 -0
  78. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-resource-pack.mjs +698 -0
  79. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review.mjs +798 -796
  80. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-home.mjs +39 -0
  81. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-runtime-support-5cb7531bede8.mjs +24 -0
  82. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share.mjs +138 -765
  83. 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
  84. 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
  85. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/{design-bounded-json-data.mjs → design-shared-protocol-contracts-31a760fc.mjs} +241 -454
  86. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +222 -0
  87. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-upload-spool.mjs +198 -0
  88. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design.mjs +12 -5
  89. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +18 -0
  90. 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
  91. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +5193 -0
  92. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +4175 -0
  93. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +65 -0
  94. 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
  95. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +62 -0
  96. 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
  97. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +123 -0
  98. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  99. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +34 -0
  100. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +992 -0
  101. 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
  102. 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
  103. 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
  104. 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
  105. 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
  106. 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
  107. 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
  108. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +27 -0
  109. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +13 -0
  110. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +3561 -0
  111. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +184 -0
  112. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +5045 -0
  113. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +1698 -0
  114. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +455 -0
  115. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +1844 -0
  116. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +257 -0
  117. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +1 -1
  118. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +4966 -0
  119. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design.mjs +240 -5192
  120. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +1 -1
  121. package/lib/host-packages/openai/.claude-plugin/marketplace.json +2 -2
  122. package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +1 -1
  123. package/lib/host-packages/openai/openplanr/.openplanr-content.json +164 -32
  124. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-artifact-shell.mjs +3 -11
  125. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +555 -0
  126. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-pako-esm.mjs → openai/openplanr/runtime/design/scripts/design-compression.mjs} +2 -1521
  127. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-document.mjs +133 -12
  128. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-encrypted-workspace-client.mjs +647 -0
  129. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-entities.mjs +17 -67
  130. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-handoff.mjs +14 -16
  131. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-planr-home.mjs → openai/openplanr/runtime/design/scripts/design-loopback-server.mjs} +15 -36
  132. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-owner-custody.mjs +121 -0
  133. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-resource-pack.mjs +698 -0
  134. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review.mjs +798 -796
  135. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-home.mjs +39 -0
  136. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-runtime-support-5cb7531bede8.mjs +24 -0
  137. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share.mjs +138 -765
  138. 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
  139. 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
  140. 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
  141. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-75a938cc.mjs +222 -0
  142. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-upload-spool.mjs +198 -0
  143. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design.mjs +12 -5
  144. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/01-module-runtime.js +18 -0
  145. 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
  146. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +5193 -0
  147. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/04-compression.js +4175 -0
  148. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/05-artifact-sharing.js +65 -0
  149. 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
  150. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/07-artifact-sharing.js +62 -0
  151. 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
  152. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +123 -0
  153. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +3 -3
  154. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +34 -0
  155. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +992 -0
  156. 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
  157. 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
  158. 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
  159. 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
  160. 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
  161. 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
  162. 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
  163. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +27 -0
  164. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +13 -0
  165. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +3561 -0
  166. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +184 -0
  167. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +5045 -0
  168. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +1698 -0
  169. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-studio-shell.js +455 -0
  170. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +1844 -0
  171. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +257 -0
  172. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +1 -1
  173. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +4966 -0
  174. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design.mjs +240 -5192
  175. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +1 -1
  176. package/lib/host-packages/openai/openplanr/skills/delegate/scripts/backend-diagnostics.mjs +6 -2
  177. package/package.json +2 -2
  178. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-generated-b0798298053515fd.mjs +0 -18
  179. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +0 -5
  180. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js +0 -25597
  181. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-generated-b0798298053515fd.mjs +0 -18
  182. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +0 -5
  183. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js +0 -25597
  184. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-generated-b0798298053515fd.mjs +0 -18
  185. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js +0 -5
  186. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js +0 -25597
@@ -0,0 +1,1759 @@
1
+
2
+ var classComponentUpdater = {
3
+ enqueueSetState: function(inst, payload, callback) {
4
+ inst = inst._reactInternals;
5
+ var lane = requestUpdateLane(), update = createUpdate(lane);
6
+ update.payload = payload;
7
+ void 0 !== callback && null !== callback && (update.callback = callback);
8
+ payload = enqueueUpdate(inst, update, lane);
9
+ null !== payload && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
10
+ },
11
+ enqueueReplaceState: function(inst, payload, callback) {
12
+ inst = inst._reactInternals;
13
+ var lane = requestUpdateLane(), update = createUpdate(lane);
14
+ update.tag = 1;
15
+ update.payload = payload;
16
+ void 0 !== callback && null !== callback && (update.callback = callback);
17
+ payload = enqueueUpdate(inst, update, lane);
18
+ null !== payload && (scheduleUpdateOnFiber(payload, inst, lane), entangleTransitions(payload, inst, lane));
19
+ },
20
+ enqueueForceUpdate: function(inst, callback) {
21
+ inst = inst._reactInternals;
22
+ var lane = requestUpdateLane(), update = createUpdate(lane);
23
+ update.tag = 2;
24
+ void 0 !== callback && null !== callback && (update.callback = callback);
25
+ callback = enqueueUpdate(inst, update, lane);
26
+ null !== callback && (scheduleUpdateOnFiber(callback, inst, lane), entangleTransitions(callback, inst, lane));
27
+ }
28
+ };
29
+ function checkShouldComponentUpdate(workInProgress2, ctor, oldProps, newProps, oldState, newState, nextContext) {
30
+ workInProgress2 = workInProgress2.stateNode;
31
+ return "function" === typeof workInProgress2.shouldComponentUpdate ? workInProgress2.shouldComponentUpdate(newProps, newState, nextContext) : ctor.prototype && ctor.prototype.isPureReactComponent ? !shallowEqual2(oldProps, newProps) || !shallowEqual2(oldState, newState) : true;
32
+ }
33
+ function callComponentWillReceiveProps(workInProgress2, instance, newProps, nextContext) {
34
+ workInProgress2 = instance.state;
35
+ "function" === typeof instance.componentWillReceiveProps && instance.componentWillReceiveProps(newProps, nextContext);
36
+ "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
37
+ instance.state !== workInProgress2 && classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
38
+ }
39
+ function resolveClassComponentProps(Component, baseProps) {
40
+ var newProps = baseProps;
41
+ if ("ref" in baseProps) {
42
+ newProps = {};
43
+ for (var propName in baseProps)
44
+ "ref" !== propName && (newProps[propName] = baseProps[propName]);
45
+ }
46
+ if (Component = Component.defaultProps) {
47
+ newProps === baseProps && (newProps = assign({}, newProps));
48
+ for (var propName$73 in Component)
49
+ void 0 === newProps[propName$73] && (newProps[propName$73] = Component[propName$73]);
50
+ }
51
+ return newProps;
52
+ }
53
+ function defaultOnUncaughtError(error) {
54
+ reportGlobalError(error);
55
+ }
56
+ function defaultOnCaughtError(error) {
57
+ console.error(error);
58
+ }
59
+ function defaultOnRecoverableError(error) {
60
+ reportGlobalError(error);
61
+ }
62
+ function logUncaughtError(root2, errorInfo) {
63
+ try {
64
+ var onUncaughtError = root2.onUncaughtError;
65
+ onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack });
66
+ } catch (e$74) {
67
+ setTimeout(function() {
68
+ throw e$74;
69
+ });
70
+ }
71
+ }
72
+ function logCaughtError(root2, boundary, errorInfo) {
73
+ try {
74
+ var onCaughtError = root2.onCaughtError;
75
+ onCaughtError(errorInfo.value, {
76
+ componentStack: errorInfo.stack,
77
+ errorBoundary: 1 === boundary.tag ? boundary.stateNode : null
78
+ });
79
+ } catch (e$75) {
80
+ setTimeout(function() {
81
+ throw e$75;
82
+ });
83
+ }
84
+ }
85
+ function createRootErrorUpdate(root2, errorInfo, lane) {
86
+ lane = createUpdate(lane);
87
+ lane.tag = 3;
88
+ lane.payload = { element: null };
89
+ lane.callback = function() {
90
+ logUncaughtError(root2, errorInfo);
91
+ };
92
+ return lane;
93
+ }
94
+ function createClassErrorUpdate(lane) {
95
+ lane = createUpdate(lane);
96
+ lane.tag = 3;
97
+ return lane;
98
+ }
99
+ function initializeClassErrorUpdate(update, root2, fiber, errorInfo) {
100
+ var getDerivedStateFromError = fiber.type.getDerivedStateFromError;
101
+ if ("function" === typeof getDerivedStateFromError) {
102
+ var error = errorInfo.value;
103
+ update.payload = function() {
104
+ return getDerivedStateFromError(error);
105
+ };
106
+ update.callback = function() {
107
+ logCaughtError(root2, fiber, errorInfo);
108
+ };
109
+ }
110
+ var inst = fiber.stateNode;
111
+ null !== inst && "function" === typeof inst.componentDidCatch && (update.callback = function() {
112
+ logCaughtError(root2, fiber, errorInfo);
113
+ "function" !== typeof getDerivedStateFromError && (null === legacyErrorBoundariesThatAlreadyFailed ? legacyErrorBoundariesThatAlreadyFailed = /* @__PURE__ */ new Set([this]) : legacyErrorBoundariesThatAlreadyFailed.add(this));
114
+ var stack = errorInfo.stack;
115
+ this.componentDidCatch(errorInfo.value, {
116
+ componentStack: null !== stack ? stack : ""
117
+ });
118
+ });
119
+ }
120
+ function throwException(root2, returnFiber, sourceFiber, value, rootRenderLanes) {
121
+ sourceFiber.flags |= 32768;
122
+ if (null !== value && "object" === typeof value && "function" === typeof value.then) {
123
+ returnFiber = sourceFiber.alternate;
124
+ null !== returnFiber && propagateParentContextChanges(
125
+ returnFiber,
126
+ sourceFiber,
127
+ rootRenderLanes,
128
+ true
129
+ );
130
+ sourceFiber = suspenseHandlerStackCursor.current;
131
+ if (null !== sourceFiber) {
132
+ switch (sourceFiber.tag) {
133
+ case 31:
134
+ case 13:
135
+ return null === shellBoundary ? renderDidSuspendDelayIfPossible() : null === sourceFiber.alternate && 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 3), sourceFiber.flags &= -257, sourceFiber.flags |= 65536, sourceFiber.lanes = rootRenderLanes, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, null === returnFiber ? sourceFiber.updateQueue = /* @__PURE__ */ new Set([value]) : returnFiber.add(value), attachPingListener(root2, value, rootRenderLanes)), false;
136
+ case 22:
137
+ return sourceFiber.flags |= 65536, value === noopSuspenseyCommitThenable ? sourceFiber.flags |= 16384 : (returnFiber = sourceFiber.updateQueue, null === returnFiber ? (returnFiber = {
138
+ transitions: null,
139
+ markerInstances: null,
140
+ retryQueue: /* @__PURE__ */ new Set([value])
141
+ }, sourceFiber.updateQueue = returnFiber) : (sourceFiber = returnFiber.retryQueue, null === sourceFiber ? returnFiber.retryQueue = /* @__PURE__ */ new Set([value]) : sourceFiber.add(value)), attachPingListener(root2, value, rootRenderLanes)), false;
142
+ }
143
+ throw Error(formatProdErrorMessage(435, sourceFiber.tag));
144
+ }
145
+ attachPingListener(root2, value, rootRenderLanes);
146
+ renderDidSuspendDelayIfPossible();
147
+ return false;
148
+ }
149
+ if (isHydrating)
150
+ return returnFiber = suspenseHandlerStackCursor.current, null !== returnFiber ? (0 === (returnFiber.flags & 65536) && (returnFiber.flags |= 256), returnFiber.flags |= 65536, returnFiber.lanes = rootRenderLanes, value !== HydrationMismatchException && (root2 = Error(formatProdErrorMessage(422), { cause: value }), queueHydrationError(createCapturedValueAtFiber(root2, sourceFiber)))) : (value !== HydrationMismatchException && (returnFiber = Error(formatProdErrorMessage(423), {
151
+ cause: value
152
+ }), queueHydrationError(
153
+ createCapturedValueAtFiber(returnFiber, sourceFiber)
154
+ )), root2 = root2.current.alternate, root2.flags |= 65536, rootRenderLanes &= -rootRenderLanes, root2.lanes |= rootRenderLanes, value = createCapturedValueAtFiber(value, sourceFiber), rootRenderLanes = createRootErrorUpdate(
155
+ root2.stateNode,
156
+ value,
157
+ rootRenderLanes
158
+ ), enqueueCapturedUpdate(root2, rootRenderLanes), 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2)), false;
159
+ var wrapperError = Error(formatProdErrorMessage(520), { cause: value });
160
+ wrapperError = createCapturedValueAtFiber(wrapperError, sourceFiber);
161
+ null === workInProgressRootConcurrentErrors ? workInProgressRootConcurrentErrors = [wrapperError] : workInProgressRootConcurrentErrors.push(wrapperError);
162
+ 4 !== workInProgressRootExitStatus && (workInProgressRootExitStatus = 2);
163
+ if (null === returnFiber) return true;
164
+ value = createCapturedValueAtFiber(value, sourceFiber);
165
+ sourceFiber = returnFiber;
166
+ do {
167
+ switch (sourceFiber.tag) {
168
+ case 3:
169
+ return sourceFiber.flags |= 65536, root2 = rootRenderLanes & -rootRenderLanes, sourceFiber.lanes |= root2, root2 = createRootErrorUpdate(sourceFiber.stateNode, value, root2), enqueueCapturedUpdate(sourceFiber, root2), false;
170
+ case 1:
171
+ if (returnFiber = sourceFiber.type, wrapperError = sourceFiber.stateNode, 0 === (sourceFiber.flags & 128) && ("function" === typeof returnFiber.getDerivedStateFromError || null !== wrapperError && "function" === typeof wrapperError.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(wrapperError))))
172
+ return sourceFiber.flags |= 65536, rootRenderLanes &= -rootRenderLanes, sourceFiber.lanes |= rootRenderLanes, rootRenderLanes = createClassErrorUpdate(rootRenderLanes), initializeClassErrorUpdate(
173
+ rootRenderLanes,
174
+ root2,
175
+ sourceFiber,
176
+ value
177
+ ), enqueueCapturedUpdate(sourceFiber, rootRenderLanes), false;
178
+ }
179
+ sourceFiber = sourceFiber.return;
180
+ } while (null !== sourceFiber);
181
+ return false;
182
+ }
183
+ var SelectiveHydrationException = Error(formatProdErrorMessage(461));
184
+ var didReceiveUpdate = false;
185
+ function reconcileChildren(current, workInProgress2, nextChildren, renderLanes2) {
186
+ workInProgress2.child = null === current ? mountChildFibers(workInProgress2, null, nextChildren, renderLanes2) : reconcileChildFibers(
187
+ workInProgress2,
188
+ current.child,
189
+ nextChildren,
190
+ renderLanes2
191
+ );
192
+ }
193
+ function updateForwardRef(current, workInProgress2, Component, nextProps, renderLanes2) {
194
+ Component = Component.render;
195
+ var ref = workInProgress2.ref;
196
+ if ("ref" in nextProps) {
197
+ var propsWithoutRef = {};
198
+ for (var key in nextProps)
199
+ "ref" !== key && (propsWithoutRef[key] = nextProps[key]);
200
+ } else propsWithoutRef = nextProps;
201
+ prepareToReadContext(workInProgress2);
202
+ nextProps = renderWithHooks(
203
+ current,
204
+ workInProgress2,
205
+ Component,
206
+ propsWithoutRef,
207
+ ref,
208
+ renderLanes2
209
+ );
210
+ key = checkDidRenderIdHook();
211
+ if (null !== current && !didReceiveUpdate)
212
+ return bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
213
+ isHydrating && key && pushMaterializedTreeId(workInProgress2);
214
+ workInProgress2.flags |= 1;
215
+ reconcileChildren(current, workInProgress2, nextProps, renderLanes2);
216
+ return workInProgress2.child;
217
+ }
218
+ function updateMemoComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
219
+ if (null === current) {
220
+ var type = Component.type;
221
+ if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare)
222
+ return workInProgress2.tag = 15, workInProgress2.type = type, updateSimpleMemoComponent(
223
+ current,
224
+ workInProgress2,
225
+ type,
226
+ nextProps,
227
+ renderLanes2
228
+ );
229
+ current = createFiberFromTypeAndProps(
230
+ Component.type,
231
+ null,
232
+ nextProps,
233
+ workInProgress2,
234
+ workInProgress2.mode,
235
+ renderLanes2
236
+ );
237
+ current.ref = workInProgress2.ref;
238
+ current.return = workInProgress2;
239
+ return workInProgress2.child = current;
240
+ }
241
+ type = current.child;
242
+ if (!checkScheduledUpdateOrContext(current, renderLanes2)) {
243
+ var prevProps = type.memoizedProps;
244
+ Component = Component.compare;
245
+ Component = null !== Component ? Component : shallowEqual2;
246
+ if (Component(prevProps, nextProps) && current.ref === workInProgress2.ref)
247
+ return bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
248
+ }
249
+ workInProgress2.flags |= 1;
250
+ current = createWorkInProgress(type, nextProps);
251
+ current.ref = workInProgress2.ref;
252
+ current.return = workInProgress2;
253
+ return workInProgress2.child = current;
254
+ }
255
+ function updateSimpleMemoComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
256
+ if (null !== current) {
257
+ var prevProps = current.memoizedProps;
258
+ if (shallowEqual2(prevProps, nextProps) && current.ref === workInProgress2.ref)
259
+ if (didReceiveUpdate = false, workInProgress2.pendingProps = nextProps = prevProps, checkScheduledUpdateOrContext(current, renderLanes2))
260
+ 0 !== (current.flags & 131072) && (didReceiveUpdate = true);
261
+ else
262
+ return workInProgress2.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
263
+ }
264
+ return updateFunctionComponent(
265
+ current,
266
+ workInProgress2,
267
+ Component,
268
+ nextProps,
269
+ renderLanes2
270
+ );
271
+ }
272
+ function updateOffscreenComponent(current, workInProgress2, renderLanes2, nextProps) {
273
+ var nextChildren = nextProps.children, prevState = null !== current ? current.memoizedState : null;
274
+ null === current && null === workInProgress2.stateNode && (workInProgress2.stateNode = {
275
+ _visibility: 1,
276
+ _pendingMarkers: null,
277
+ _retryCache: null,
278
+ _transitions: null
279
+ });
280
+ if ("hidden" === nextProps.mode) {
281
+ if (0 !== (workInProgress2.flags & 128)) {
282
+ prevState = null !== prevState ? prevState.baseLanes | renderLanes2 : renderLanes2;
283
+ if (null !== current) {
284
+ nextProps = workInProgress2.child = current.child;
285
+ for (nextChildren = 0; null !== nextProps; )
286
+ nextChildren = nextChildren | nextProps.lanes | nextProps.childLanes, nextProps = nextProps.sibling;
287
+ nextProps = nextChildren & ~prevState;
288
+ } else nextProps = 0, workInProgress2.child = null;
289
+ return deferHiddenOffscreenComponent(
290
+ current,
291
+ workInProgress2,
292
+ prevState,
293
+ renderLanes2,
294
+ nextProps
295
+ );
296
+ }
297
+ if (0 !== (renderLanes2 & 536870912))
298
+ workInProgress2.memoizedState = { baseLanes: 0, cachePool: null }, null !== current && pushTransition(
299
+ workInProgress2,
300
+ null !== prevState ? prevState.cachePool : null
301
+ ), null !== prevState ? pushHiddenContext(workInProgress2, prevState) : reuseHiddenContextOnStack(), pushOffscreenSuspenseHandler(workInProgress2);
302
+ else
303
+ return nextProps = workInProgress2.lanes = 536870912, deferHiddenOffscreenComponent(
304
+ current,
305
+ workInProgress2,
306
+ null !== prevState ? prevState.baseLanes | renderLanes2 : renderLanes2,
307
+ renderLanes2,
308
+ nextProps
309
+ );
310
+ } else
311
+ null !== prevState ? (pushTransition(workInProgress2, prevState.cachePool), pushHiddenContext(workInProgress2, prevState), reuseSuspenseHandlerOnStack(workInProgress2), workInProgress2.memoizedState = null) : (null !== current && pushTransition(workInProgress2, null), reuseHiddenContextOnStack(), reuseSuspenseHandlerOnStack(workInProgress2));
312
+ reconcileChildren(current, workInProgress2, nextChildren, renderLanes2);
313
+ return workInProgress2.child;
314
+ }
315
+ function bailoutOffscreenComponent(current, workInProgress2) {
316
+ null !== current && 22 === current.tag || null !== workInProgress2.stateNode || (workInProgress2.stateNode = {
317
+ _visibility: 1,
318
+ _pendingMarkers: null,
319
+ _retryCache: null,
320
+ _transitions: null
321
+ });
322
+ return workInProgress2.sibling;
323
+ }
324
+ function deferHiddenOffscreenComponent(current, workInProgress2, nextBaseLanes, renderLanes2, remainingChildLanes) {
325
+ var JSCompiler_inline_result = peekCacheFromPool();
326
+ JSCompiler_inline_result = null === JSCompiler_inline_result ? null : { parent: CacheContext._currentValue, pool: JSCompiler_inline_result };
327
+ workInProgress2.memoizedState = {
328
+ baseLanes: nextBaseLanes,
329
+ cachePool: JSCompiler_inline_result
330
+ };
331
+ null !== current && pushTransition(workInProgress2, null);
332
+ reuseHiddenContextOnStack();
333
+ pushOffscreenSuspenseHandler(workInProgress2);
334
+ null !== current && propagateParentContextChanges(current, workInProgress2, renderLanes2, true);
335
+ workInProgress2.childLanes = remainingChildLanes;
336
+ return null;
337
+ }
338
+ function mountActivityChildren(workInProgress2, nextProps) {
339
+ nextProps = mountWorkInProgressOffscreenFiber(
340
+ { mode: nextProps.mode, children: nextProps.children },
341
+ workInProgress2.mode
342
+ );
343
+ nextProps.ref = workInProgress2.ref;
344
+ workInProgress2.child = nextProps;
345
+ nextProps.return = workInProgress2;
346
+ return nextProps;
347
+ }
348
+ function retryActivityComponentWithoutHydrating(current, workInProgress2, renderLanes2) {
349
+ reconcileChildFibers(workInProgress2, current.child, null, renderLanes2);
350
+ current = mountActivityChildren(workInProgress2, workInProgress2.pendingProps);
351
+ current.flags |= 2;
352
+ popSuspenseHandler(workInProgress2);
353
+ workInProgress2.memoizedState = null;
354
+ return current;
355
+ }
356
+ function updateActivityComponent(current, workInProgress2, renderLanes2) {
357
+ var nextProps = workInProgress2.pendingProps, didSuspend = 0 !== (workInProgress2.flags & 128);
358
+ workInProgress2.flags &= -129;
359
+ if (null === current) {
360
+ if (isHydrating) {
361
+ if ("hidden" === nextProps.mode)
362
+ return current = mountActivityChildren(workInProgress2, nextProps), workInProgress2.lanes = 536870912, bailoutOffscreenComponent(null, current);
363
+ pushDehydratedActivitySuspenseHandler(workInProgress2);
364
+ (current = nextHydratableInstance) ? (current = canHydrateHydrationBoundary(
365
+ current,
366
+ rootOrSingletonContext
367
+ ), current = null !== current && "&" === current.data ? current : null, null !== current && (workInProgress2.memoizedState = {
368
+ dehydrated: current,
369
+ treeContext: null !== treeContextProvider ? { id: treeContextId, overflow: treeContextOverflow } : null,
370
+ retryLane: 536870912,
371
+ hydrationErrors: null
372
+ }, renderLanes2 = createFiberFromDehydratedFragment(current), renderLanes2.return = workInProgress2, workInProgress2.child = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null)) : current = null;
373
+ if (null === current) throw throwOnHydrationMismatch(workInProgress2);
374
+ workInProgress2.lanes = 536870912;
375
+ return null;
376
+ }
377
+ return mountActivityChildren(workInProgress2, nextProps);
378
+ }
379
+ var prevState = current.memoizedState;
380
+ if (null !== prevState) {
381
+ var dehydrated = prevState.dehydrated;
382
+ pushDehydratedActivitySuspenseHandler(workInProgress2);
383
+ if (didSuspend)
384
+ if (workInProgress2.flags & 256)
385
+ workInProgress2.flags &= -257, workInProgress2 = retryActivityComponentWithoutHydrating(
386
+ current,
387
+ workInProgress2,
388
+ renderLanes2
389
+ );
390
+ else if (null !== workInProgress2.memoizedState)
391
+ workInProgress2.child = current.child, workInProgress2.flags |= 128, workInProgress2 = null;
392
+ else throw Error(formatProdErrorMessage(558));
393
+ else if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress2, renderLanes2, false), didSuspend = 0 !== (renderLanes2 & current.childLanes), didReceiveUpdate || didSuspend) {
394
+ nextProps = workInProgressRoot;
395
+ if (null !== nextProps && (dehydrated = getBumpedLaneForHydration(nextProps, renderLanes2), 0 !== dehydrated && dehydrated !== prevState.retryLane))
396
+ throw prevState.retryLane = dehydrated, enqueueConcurrentRenderForLane(current, dehydrated), scheduleUpdateOnFiber(nextProps, current, dehydrated), SelectiveHydrationException;
397
+ renderDidSuspendDelayIfPossible();
398
+ workInProgress2 = retryActivityComponentWithoutHydrating(
399
+ current,
400
+ workInProgress2,
401
+ renderLanes2
402
+ );
403
+ } else
404
+ current = prevState.treeContext, nextHydratableInstance = getNextHydratable(dehydrated.nextSibling), hydrationParentFiber = workInProgress2, isHydrating = true, hydrationErrors = null, rootOrSingletonContext = false, null !== current && restoreSuspendedTreeContext(workInProgress2, current), workInProgress2 = mountActivityChildren(workInProgress2, nextProps), workInProgress2.flags |= 4096;
405
+ return workInProgress2;
406
+ }
407
+ current = createWorkInProgress(current.child, {
408
+ mode: nextProps.mode,
409
+ children: nextProps.children
410
+ });
411
+ current.ref = workInProgress2.ref;
412
+ workInProgress2.child = current;
413
+ current.return = workInProgress2;
414
+ return current;
415
+ }
416
+ function markRef(current, workInProgress2) {
417
+ var ref = workInProgress2.ref;
418
+ if (null === ref)
419
+ null !== current && null !== current.ref && (workInProgress2.flags |= 4194816);
420
+ else {
421
+ if ("function" !== typeof ref && "object" !== typeof ref)
422
+ throw Error(formatProdErrorMessage(284));
423
+ if (null === current || current.ref !== ref)
424
+ workInProgress2.flags |= 4194816;
425
+ }
426
+ }
427
+ function updateFunctionComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
428
+ prepareToReadContext(workInProgress2);
429
+ Component = renderWithHooks(
430
+ current,
431
+ workInProgress2,
432
+ Component,
433
+ nextProps,
434
+ void 0,
435
+ renderLanes2
436
+ );
437
+ nextProps = checkDidRenderIdHook();
438
+ if (null !== current && !didReceiveUpdate)
439
+ return bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
440
+ isHydrating && nextProps && pushMaterializedTreeId(workInProgress2);
441
+ workInProgress2.flags |= 1;
442
+ reconcileChildren(current, workInProgress2, Component, renderLanes2);
443
+ return workInProgress2.child;
444
+ }
445
+ function replayFunctionComponent(current, workInProgress2, nextProps, Component, secondArg, renderLanes2) {
446
+ prepareToReadContext(workInProgress2);
447
+ workInProgress2.updateQueue = null;
448
+ nextProps = renderWithHooksAgain(
449
+ workInProgress2,
450
+ Component,
451
+ nextProps,
452
+ secondArg
453
+ );
454
+ finishRenderingHooks(current);
455
+ Component = checkDidRenderIdHook();
456
+ if (null !== current && !didReceiveUpdate)
457
+ return bailoutHooks(current, workInProgress2, renderLanes2), bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
458
+ isHydrating && Component && pushMaterializedTreeId(workInProgress2);
459
+ workInProgress2.flags |= 1;
460
+ reconcileChildren(current, workInProgress2, nextProps, renderLanes2);
461
+ return workInProgress2.child;
462
+ }
463
+ function updateClassComponent(current, workInProgress2, Component, nextProps, renderLanes2) {
464
+ prepareToReadContext(workInProgress2);
465
+ if (null === workInProgress2.stateNode) {
466
+ var context = emptyContextObject, contextType = Component.contextType;
467
+ "object" === typeof contextType && null !== contextType && (context = readContext(contextType));
468
+ context = new Component(nextProps, context);
469
+ workInProgress2.memoizedState = null !== context.state && void 0 !== context.state ? context.state : null;
470
+ context.updater = classComponentUpdater;
471
+ workInProgress2.stateNode = context;
472
+ context._reactInternals = workInProgress2;
473
+ context = workInProgress2.stateNode;
474
+ context.props = nextProps;
475
+ context.state = workInProgress2.memoizedState;
476
+ context.refs = {};
477
+ initializeUpdateQueue(workInProgress2);
478
+ contextType = Component.contextType;
479
+ context.context = "object" === typeof contextType && null !== contextType ? readContext(contextType) : emptyContextObject;
480
+ context.state = workInProgress2.memoizedState;
481
+ contextType = Component.getDerivedStateFromProps;
482
+ "function" === typeof contextType && (applyDerivedStateFromProps(
483
+ workInProgress2,
484
+ Component,
485
+ contextType,
486
+ nextProps
487
+ ), context.state = workInProgress2.memoizedState);
488
+ "function" === typeof Component.getDerivedStateFromProps || "function" === typeof context.getSnapshotBeforeUpdate || "function" !== typeof context.UNSAFE_componentWillMount && "function" !== typeof context.componentWillMount || (contextType = context.state, "function" === typeof context.componentWillMount && context.componentWillMount(), "function" === typeof context.UNSAFE_componentWillMount && context.UNSAFE_componentWillMount(), contextType !== context.state && classComponentUpdater.enqueueReplaceState(context, context.state, null), processUpdateQueue(workInProgress2, nextProps, context, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction(), context.state = workInProgress2.memoizedState);
489
+ "function" === typeof context.componentDidMount && (workInProgress2.flags |= 4194308);
490
+ nextProps = true;
491
+ } else if (null === current) {
492
+ context = workInProgress2.stateNode;
493
+ var unresolvedOldProps = workInProgress2.memoizedProps, oldProps = resolveClassComponentProps(Component, unresolvedOldProps);
494
+ context.props = oldProps;
495
+ var oldContext = context.context, contextType$jscomp$0 = Component.contextType;
496
+ contextType = emptyContextObject;
497
+ "object" === typeof contextType$jscomp$0 && null !== contextType$jscomp$0 && (contextType = readContext(contextType$jscomp$0));
498
+ var getDerivedStateFromProps = Component.getDerivedStateFromProps;
499
+ contextType$jscomp$0 = "function" === typeof getDerivedStateFromProps || "function" === typeof context.getSnapshotBeforeUpdate;
500
+ unresolvedOldProps = workInProgress2.pendingProps !== unresolvedOldProps;
501
+ contextType$jscomp$0 || "function" !== typeof context.UNSAFE_componentWillReceiveProps && "function" !== typeof context.componentWillReceiveProps || (unresolvedOldProps || oldContext !== contextType) && callComponentWillReceiveProps(
502
+ workInProgress2,
503
+ context,
504
+ nextProps,
505
+ contextType
506
+ );
507
+ hasForceUpdate = false;
508
+ var oldState = workInProgress2.memoizedState;
509
+ context.state = oldState;
510
+ processUpdateQueue(workInProgress2, nextProps, context, renderLanes2);
511
+ suspendIfUpdateReadFromEntangledAsyncAction();
512
+ oldContext = workInProgress2.memoizedState;
513
+ unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(
514
+ workInProgress2,
515
+ Component,
516
+ getDerivedStateFromProps,
517
+ nextProps
518
+ ), oldContext = workInProgress2.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(
519
+ workInProgress2,
520
+ Component,
521
+ oldProps,
522
+ nextProps,
523
+ oldState,
524
+ oldContext,
525
+ contextType
526
+ )) ? (contextType$jscomp$0 || "function" !== typeof context.UNSAFE_componentWillMount && "function" !== typeof context.componentWillMount || ("function" === typeof context.componentWillMount && context.componentWillMount(), "function" === typeof context.UNSAFE_componentWillMount && context.UNSAFE_componentWillMount()), "function" === typeof context.componentDidMount && (workInProgress2.flags |= 4194308)) : ("function" === typeof context.componentDidMount && (workInProgress2.flags |= 4194308), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = oldContext), context.props = nextProps, context.state = oldContext, context.context = contextType, nextProps = oldProps) : ("function" === typeof context.componentDidMount && (workInProgress2.flags |= 4194308), nextProps = false);
527
+ } else {
528
+ context = workInProgress2.stateNode;
529
+ cloneUpdateQueue(current, workInProgress2);
530
+ contextType = workInProgress2.memoizedProps;
531
+ contextType$jscomp$0 = resolveClassComponentProps(Component, contextType);
532
+ context.props = contextType$jscomp$0;
533
+ getDerivedStateFromProps = workInProgress2.pendingProps;
534
+ oldState = context.context;
535
+ oldContext = Component.contextType;
536
+ oldProps = emptyContextObject;
537
+ "object" === typeof oldContext && null !== oldContext && (oldProps = readContext(oldContext));
538
+ unresolvedOldProps = Component.getDerivedStateFromProps;
539
+ (oldContext = "function" === typeof unresolvedOldProps || "function" === typeof context.getSnapshotBeforeUpdate) || "function" !== typeof context.UNSAFE_componentWillReceiveProps && "function" !== typeof context.componentWillReceiveProps || (contextType !== getDerivedStateFromProps || oldState !== oldProps) && callComponentWillReceiveProps(
540
+ workInProgress2,
541
+ context,
542
+ nextProps,
543
+ oldProps
544
+ );
545
+ hasForceUpdate = false;
546
+ oldState = workInProgress2.memoizedState;
547
+ context.state = oldState;
548
+ processUpdateQueue(workInProgress2, nextProps, context, renderLanes2);
549
+ suspendIfUpdateReadFromEntangledAsyncAction();
550
+ var newState = workInProgress2.memoizedState;
551
+ contextType !== getDerivedStateFromProps || oldState !== newState || hasForceUpdate || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies) ? ("function" === typeof unresolvedOldProps && (applyDerivedStateFromProps(
552
+ workInProgress2,
553
+ Component,
554
+ unresolvedOldProps,
555
+ nextProps
556
+ ), newState = workInProgress2.memoizedState), (contextType$jscomp$0 = hasForceUpdate || checkShouldComponentUpdate(
557
+ workInProgress2,
558
+ Component,
559
+ contextType$jscomp$0,
560
+ nextProps,
561
+ oldState,
562
+ newState,
563
+ oldProps
564
+ ) || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies)) ? (oldContext || "function" !== typeof context.UNSAFE_componentWillUpdate && "function" !== typeof context.componentWillUpdate || ("function" === typeof context.componentWillUpdate && context.componentWillUpdate(nextProps, newState, oldProps), "function" === typeof context.UNSAFE_componentWillUpdate && context.UNSAFE_componentWillUpdate(
565
+ nextProps,
566
+ newState,
567
+ oldProps
568
+ )), "function" === typeof context.componentDidUpdate && (workInProgress2.flags |= 4), "function" === typeof context.getSnapshotBeforeUpdate && (workInProgress2.flags |= 1024)) : ("function" !== typeof context.componentDidUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 4), "function" !== typeof context.getSnapshotBeforeUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 1024), workInProgress2.memoizedProps = nextProps, workInProgress2.memoizedState = newState), context.props = nextProps, context.state = newState, context.context = oldProps, nextProps = contextType$jscomp$0) : ("function" !== typeof context.componentDidUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 4), "function" !== typeof context.getSnapshotBeforeUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress2.flags |= 1024), nextProps = false);
569
+ }
570
+ context = nextProps;
571
+ markRef(current, workInProgress2);
572
+ nextProps = 0 !== (workInProgress2.flags & 128);
573
+ context || nextProps ? (context = workInProgress2.stateNode, Component = nextProps && "function" !== typeof Component.getDerivedStateFromError ? null : context.render(), workInProgress2.flags |= 1, null !== current && nextProps ? (workInProgress2.child = reconcileChildFibers(
574
+ workInProgress2,
575
+ current.child,
576
+ null,
577
+ renderLanes2
578
+ ), workInProgress2.child = reconcileChildFibers(
579
+ workInProgress2,
580
+ null,
581
+ Component,
582
+ renderLanes2
583
+ )) : reconcileChildren(current, workInProgress2, Component, renderLanes2), workInProgress2.memoizedState = context.state, current = workInProgress2.child) : current = bailoutOnAlreadyFinishedWork(
584
+ current,
585
+ workInProgress2,
586
+ renderLanes2
587
+ );
588
+ return current;
589
+ }
590
+ function mountHostRootWithoutHydrating(current, workInProgress2, nextChildren, renderLanes2) {
591
+ resetHydrationState();
592
+ workInProgress2.flags |= 256;
593
+ reconcileChildren(current, workInProgress2, nextChildren, renderLanes2);
594
+ return workInProgress2.child;
595
+ }
596
+ var SUSPENDED_MARKER = {
597
+ dehydrated: null,
598
+ treeContext: null,
599
+ retryLane: 0,
600
+ hydrationErrors: null
601
+ };
602
+ function mountSuspenseOffscreenState(renderLanes2) {
603
+ return { baseLanes: renderLanes2, cachePool: getSuspendedCache() };
604
+ }
605
+ function getRemainingWorkInPrimaryTree(current, primaryTreeDidDefer, renderLanes2) {
606
+ current = null !== current ? current.childLanes & ~renderLanes2 : 0;
607
+ primaryTreeDidDefer && (current |= workInProgressDeferredLane);
608
+ return current;
609
+ }
610
+ function updateSuspenseComponent(current, workInProgress2, renderLanes2) {
611
+ var nextProps = workInProgress2.pendingProps, showFallback = false, didSuspend = 0 !== (workInProgress2.flags & 128), JSCompiler_temp;
612
+ (JSCompiler_temp = didSuspend) || (JSCompiler_temp = null !== current && null === current.memoizedState ? false : 0 !== (suspenseStackCursor.current & 2));
613
+ JSCompiler_temp && (showFallback = true, workInProgress2.flags &= -129);
614
+ JSCompiler_temp = 0 !== (workInProgress2.flags & 32);
615
+ workInProgress2.flags &= -33;
616
+ if (null === current) {
617
+ if (isHydrating) {
618
+ showFallback ? pushPrimaryTreeSuspenseHandler(workInProgress2) : reuseSuspenseHandlerOnStack(workInProgress2);
619
+ (current = nextHydratableInstance) ? (current = canHydrateHydrationBoundary(
620
+ current,
621
+ rootOrSingletonContext
622
+ ), current = null !== current && "&" !== current.data ? current : null, null !== current && (workInProgress2.memoizedState = {
623
+ dehydrated: current,
624
+ treeContext: null !== treeContextProvider ? { id: treeContextId, overflow: treeContextOverflow } : null,
625
+ retryLane: 536870912,
626
+ hydrationErrors: null
627
+ }, renderLanes2 = createFiberFromDehydratedFragment(current), renderLanes2.return = workInProgress2, workInProgress2.child = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null)) : current = null;
628
+ if (null === current) throw throwOnHydrationMismatch(workInProgress2);
629
+ isSuspenseInstanceFallback(current) ? workInProgress2.lanes = 32 : workInProgress2.lanes = 536870912;
630
+ return null;
631
+ }
632
+ var nextPrimaryChildren = nextProps.children;
633
+ nextProps = nextProps.fallback;
634
+ if (showFallback)
635
+ return reuseSuspenseHandlerOnStack(workInProgress2), showFallback = workInProgress2.mode, nextPrimaryChildren = mountWorkInProgressOffscreenFiber(
636
+ { mode: "hidden", children: nextPrimaryChildren },
637
+ showFallback
638
+ ), nextProps = createFiberFromFragment(
639
+ nextProps,
640
+ showFallback,
641
+ renderLanes2,
642
+ null
643
+ ), nextPrimaryChildren.return = workInProgress2, nextProps.return = workInProgress2, nextPrimaryChildren.sibling = nextProps, workInProgress2.child = nextPrimaryChildren, nextProps = workInProgress2.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes2), nextProps.childLanes = getRemainingWorkInPrimaryTree(
644
+ current,
645
+ JSCompiler_temp,
646
+ renderLanes2
647
+ ), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(null, nextProps);
648
+ pushPrimaryTreeSuspenseHandler(workInProgress2);
649
+ return mountSuspensePrimaryChildren(workInProgress2, nextPrimaryChildren);
650
+ }
651
+ var prevState = current.memoizedState;
652
+ if (null !== prevState && (nextPrimaryChildren = prevState.dehydrated, null !== nextPrimaryChildren)) {
653
+ if (didSuspend)
654
+ workInProgress2.flags & 256 ? (pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags &= -257, workInProgress2 = retrySuspenseComponentWithoutHydrating(
655
+ current,
656
+ workInProgress2,
657
+ renderLanes2
658
+ )) : null !== workInProgress2.memoizedState ? (reuseSuspenseHandlerOnStack(workInProgress2), workInProgress2.child = current.child, workInProgress2.flags |= 128, workInProgress2 = null) : (reuseSuspenseHandlerOnStack(workInProgress2), nextPrimaryChildren = nextProps.fallback, showFallback = workInProgress2.mode, nextProps = mountWorkInProgressOffscreenFiber(
659
+ { mode: "visible", children: nextProps.children },
660
+ showFallback
661
+ ), nextPrimaryChildren = createFiberFromFragment(
662
+ nextPrimaryChildren,
663
+ showFallback,
664
+ renderLanes2,
665
+ null
666
+ ), nextPrimaryChildren.flags |= 2, nextProps.return = workInProgress2, nextPrimaryChildren.return = workInProgress2, nextProps.sibling = nextPrimaryChildren, workInProgress2.child = nextProps, reconcileChildFibers(
667
+ workInProgress2,
668
+ current.child,
669
+ null,
670
+ renderLanes2
671
+ ), nextProps = workInProgress2.child, nextProps.memoizedState = mountSuspenseOffscreenState(renderLanes2), nextProps.childLanes = getRemainingWorkInPrimaryTree(
672
+ current,
673
+ JSCompiler_temp,
674
+ renderLanes2
675
+ ), workInProgress2.memoizedState = SUSPENDED_MARKER, workInProgress2 = bailoutOffscreenComponent(null, nextProps));
676
+ else if (pushPrimaryTreeSuspenseHandler(workInProgress2), isSuspenseInstanceFallback(nextPrimaryChildren)) {
677
+ JSCompiler_temp = nextPrimaryChildren.nextSibling && nextPrimaryChildren.nextSibling.dataset;
678
+ if (JSCompiler_temp) var digest = JSCompiler_temp.dgst;
679
+ JSCompiler_temp = digest;
680
+ nextProps = Error(formatProdErrorMessage(419));
681
+ nextProps.stack = "";
682
+ nextProps.digest = JSCompiler_temp;
683
+ queueHydrationError({ value: nextProps, source: null, stack: null });
684
+ workInProgress2 = retrySuspenseComponentWithoutHydrating(
685
+ current,
686
+ workInProgress2,
687
+ renderLanes2
688
+ );
689
+ } else if (didReceiveUpdate || propagateParentContextChanges(current, workInProgress2, renderLanes2, false), JSCompiler_temp = 0 !== (renderLanes2 & current.childLanes), didReceiveUpdate || JSCompiler_temp) {
690
+ JSCompiler_temp = workInProgressRoot;
691
+ if (null !== JSCompiler_temp && (nextProps = getBumpedLaneForHydration(JSCompiler_temp, renderLanes2), 0 !== nextProps && nextProps !== prevState.retryLane))
692
+ throw prevState.retryLane = nextProps, enqueueConcurrentRenderForLane(current, nextProps), scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps), SelectiveHydrationException;
693
+ isSuspenseInstancePending(nextPrimaryChildren) || renderDidSuspendDelayIfPossible();
694
+ workInProgress2 = retrySuspenseComponentWithoutHydrating(
695
+ current,
696
+ workInProgress2,
697
+ renderLanes2
698
+ );
699
+ } else
700
+ isSuspenseInstancePending(nextPrimaryChildren) ? (workInProgress2.flags |= 192, workInProgress2.child = current.child, workInProgress2 = null) : (current = prevState.treeContext, nextHydratableInstance = getNextHydratable(
701
+ nextPrimaryChildren.nextSibling
702
+ ), hydrationParentFiber = workInProgress2, isHydrating = true, hydrationErrors = null, rootOrSingletonContext = false, null !== current && restoreSuspendedTreeContext(workInProgress2, current), workInProgress2 = mountSuspensePrimaryChildren(
703
+ workInProgress2,
704
+ nextProps.children
705
+ ), workInProgress2.flags |= 4096);
706
+ return workInProgress2;
707
+ }
708
+ if (showFallback)
709
+ return reuseSuspenseHandlerOnStack(workInProgress2), nextPrimaryChildren = nextProps.fallback, showFallback = workInProgress2.mode, prevState = current.child, digest = prevState.sibling, nextProps = createWorkInProgress(prevState, {
710
+ mode: "hidden",
711
+ children: nextProps.children
712
+ }), nextProps.subtreeFlags = prevState.subtreeFlags & 65011712, null !== digest ? nextPrimaryChildren = createWorkInProgress(
713
+ digest,
714
+ nextPrimaryChildren
715
+ ) : (nextPrimaryChildren = createFiberFromFragment(
716
+ nextPrimaryChildren,
717
+ showFallback,
718
+ renderLanes2,
719
+ null
720
+ ), nextPrimaryChildren.flags |= 2), nextPrimaryChildren.return = workInProgress2, nextProps.return = workInProgress2, nextProps.sibling = nextPrimaryChildren, workInProgress2.child = nextProps, bailoutOffscreenComponent(null, nextProps), nextProps = workInProgress2.child, nextPrimaryChildren = current.child.memoizedState, null === nextPrimaryChildren ? nextPrimaryChildren = mountSuspenseOffscreenState(renderLanes2) : (showFallback = nextPrimaryChildren.cachePool, null !== showFallback ? (prevState = CacheContext._currentValue, showFallback = showFallback.parent !== prevState ? { parent: prevState, pool: prevState } : showFallback) : showFallback = getSuspendedCache(), nextPrimaryChildren = {
721
+ baseLanes: nextPrimaryChildren.baseLanes | renderLanes2,
722
+ cachePool: showFallback
723
+ }), nextProps.memoizedState = nextPrimaryChildren, nextProps.childLanes = getRemainingWorkInPrimaryTree(
724
+ current,
725
+ JSCompiler_temp,
726
+ renderLanes2
727
+ ), workInProgress2.memoizedState = SUSPENDED_MARKER, bailoutOffscreenComponent(current.child, nextProps);
728
+ pushPrimaryTreeSuspenseHandler(workInProgress2);
729
+ renderLanes2 = current.child;
730
+ current = renderLanes2.sibling;
731
+ renderLanes2 = createWorkInProgress(renderLanes2, {
732
+ mode: "visible",
733
+ children: nextProps.children
734
+ });
735
+ renderLanes2.return = workInProgress2;
736
+ renderLanes2.sibling = null;
737
+ null !== current && (JSCompiler_temp = workInProgress2.deletions, null === JSCompiler_temp ? (workInProgress2.deletions = [current], workInProgress2.flags |= 16) : JSCompiler_temp.push(current));
738
+ workInProgress2.child = renderLanes2;
739
+ workInProgress2.memoizedState = null;
740
+ return renderLanes2;
741
+ }
742
+ function mountSuspensePrimaryChildren(workInProgress2, primaryChildren) {
743
+ primaryChildren = mountWorkInProgressOffscreenFiber(
744
+ { mode: "visible", children: primaryChildren },
745
+ workInProgress2.mode
746
+ );
747
+ primaryChildren.return = workInProgress2;
748
+ return workInProgress2.child = primaryChildren;
749
+ }
750
+ function mountWorkInProgressOffscreenFiber(offscreenProps, mode) {
751
+ offscreenProps = createFiberImplClass(22, offscreenProps, null, mode);
752
+ offscreenProps.lanes = 0;
753
+ return offscreenProps;
754
+ }
755
+ function retrySuspenseComponentWithoutHydrating(current, workInProgress2, renderLanes2) {
756
+ reconcileChildFibers(workInProgress2, current.child, null, renderLanes2);
757
+ current = mountSuspensePrimaryChildren(
758
+ workInProgress2,
759
+ workInProgress2.pendingProps.children
760
+ );
761
+ current.flags |= 2;
762
+ workInProgress2.memoizedState = null;
763
+ return current;
764
+ }
765
+ function scheduleSuspenseWorkOnFiber(fiber, renderLanes2, propagationRoot) {
766
+ fiber.lanes |= renderLanes2;
767
+ var alternate = fiber.alternate;
768
+ null !== alternate && (alternate.lanes |= renderLanes2);
769
+ scheduleContextWorkOnParentPath(fiber.return, renderLanes2, propagationRoot);
770
+ }
771
+ function initSuspenseListRenderState(workInProgress2, isBackwards, tail, lastContentRow, tailMode, treeForkCount2) {
772
+ var renderState = workInProgress2.memoizedState;
773
+ null === renderState ? workInProgress2.memoizedState = {
774
+ isBackwards,
775
+ rendering: null,
776
+ renderingStartTime: 0,
777
+ last: lastContentRow,
778
+ tail,
779
+ tailMode,
780
+ treeForkCount: treeForkCount2
781
+ } : (renderState.isBackwards = isBackwards, renderState.rendering = null, renderState.renderingStartTime = 0, renderState.last = lastContentRow, renderState.tail = tail, renderState.tailMode = tailMode, renderState.treeForkCount = treeForkCount2);
782
+ }
783
+ function updateSuspenseListComponent(current, workInProgress2, renderLanes2) {
784
+ var nextProps = workInProgress2.pendingProps, revealOrder = nextProps.revealOrder, tailMode = nextProps.tail;
785
+ nextProps = nextProps.children;
786
+ var suspenseContext = suspenseStackCursor.current, shouldForceFallback = 0 !== (suspenseContext & 2);
787
+ shouldForceFallback ? (suspenseContext = suspenseContext & 1 | 2, workInProgress2.flags |= 128) : suspenseContext &= 1;
788
+ push(suspenseStackCursor, suspenseContext);
789
+ reconcileChildren(current, workInProgress2, nextProps, renderLanes2);
790
+ nextProps = isHydrating ? treeForkCount : 0;
791
+ if (!shouldForceFallback && null !== current && 0 !== (current.flags & 128))
792
+ a: for (current = workInProgress2.child; null !== current; ) {
793
+ if (13 === current.tag)
794
+ null !== current.memoizedState && scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
795
+ else if (19 === current.tag)
796
+ scheduleSuspenseWorkOnFiber(current, renderLanes2, workInProgress2);
797
+ else if (null !== current.child) {
798
+ current.child.return = current;
799
+ current = current.child;
800
+ continue;
801
+ }
802
+ if (current === workInProgress2) break a;
803
+ for (; null === current.sibling; ) {
804
+ if (null === current.return || current.return === workInProgress2)
805
+ break a;
806
+ current = current.return;
807
+ }
808
+ current.sibling.return = current.return;
809
+ current = current.sibling;
810
+ }
811
+ switch (revealOrder) {
812
+ case "forwards":
813
+ renderLanes2 = workInProgress2.child;
814
+ for (revealOrder = null; null !== renderLanes2; )
815
+ current = renderLanes2.alternate, null !== current && null === findFirstSuspended(current) && (revealOrder = renderLanes2), renderLanes2 = renderLanes2.sibling;
816
+ renderLanes2 = revealOrder;
817
+ null === renderLanes2 ? (revealOrder = workInProgress2.child, workInProgress2.child = null) : (revealOrder = renderLanes2.sibling, renderLanes2.sibling = null);
818
+ initSuspenseListRenderState(
819
+ workInProgress2,
820
+ false,
821
+ revealOrder,
822
+ renderLanes2,
823
+ tailMode,
824
+ nextProps
825
+ );
826
+ break;
827
+ case "backwards":
828
+ case "unstable_legacy-backwards":
829
+ renderLanes2 = null;
830
+ revealOrder = workInProgress2.child;
831
+ for (workInProgress2.child = null; null !== revealOrder; ) {
832
+ current = revealOrder.alternate;
833
+ if (null !== current && null === findFirstSuspended(current)) {
834
+ workInProgress2.child = revealOrder;
835
+ break;
836
+ }
837
+ current = revealOrder.sibling;
838
+ revealOrder.sibling = renderLanes2;
839
+ renderLanes2 = revealOrder;
840
+ revealOrder = current;
841
+ }
842
+ initSuspenseListRenderState(
843
+ workInProgress2,
844
+ true,
845
+ renderLanes2,
846
+ null,
847
+ tailMode,
848
+ nextProps
849
+ );
850
+ break;
851
+ case "together":
852
+ initSuspenseListRenderState(
853
+ workInProgress2,
854
+ false,
855
+ null,
856
+ null,
857
+ void 0,
858
+ nextProps
859
+ );
860
+ break;
861
+ default:
862
+ workInProgress2.memoizedState = null;
863
+ }
864
+ return workInProgress2.child;
865
+ }
866
+ function bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2) {
867
+ null !== current && (workInProgress2.dependencies = current.dependencies);
868
+ workInProgressRootSkippedLanes |= workInProgress2.lanes;
869
+ if (0 === (renderLanes2 & workInProgress2.childLanes))
870
+ if (null !== current) {
871
+ if (propagateParentContextChanges(
872
+ current,
873
+ workInProgress2,
874
+ renderLanes2,
875
+ false
876
+ ), 0 === (renderLanes2 & workInProgress2.childLanes))
877
+ return null;
878
+ } else return null;
879
+ if (null !== current && workInProgress2.child !== current.child)
880
+ throw Error(formatProdErrorMessage(153));
881
+ if (null !== workInProgress2.child) {
882
+ current = workInProgress2.child;
883
+ renderLanes2 = createWorkInProgress(current, current.pendingProps);
884
+ workInProgress2.child = renderLanes2;
885
+ for (renderLanes2.return = workInProgress2; null !== current.sibling; )
886
+ current = current.sibling, renderLanes2 = renderLanes2.sibling = createWorkInProgress(current, current.pendingProps), renderLanes2.return = workInProgress2;
887
+ renderLanes2.sibling = null;
888
+ }
889
+ return workInProgress2.child;
890
+ }
891
+ function checkScheduledUpdateOrContext(current, renderLanes2) {
892
+ if (0 !== (current.lanes & renderLanes2)) return true;
893
+ current = current.dependencies;
894
+ return null !== current && checkIfContextChanged(current) ? true : false;
895
+ }
896
+ function attemptEarlyBailoutIfNoScheduledUpdate(current, workInProgress2, renderLanes2) {
897
+ switch (workInProgress2.tag) {
898
+ case 3:
899
+ pushHostContainer(workInProgress2, workInProgress2.stateNode.containerInfo);
900
+ pushProvider(workInProgress2, CacheContext, current.memoizedState.cache);
901
+ resetHydrationState();
902
+ break;
903
+ case 27:
904
+ case 5:
905
+ pushHostContext(workInProgress2);
906
+ break;
907
+ case 4:
908
+ pushHostContainer(workInProgress2, workInProgress2.stateNode.containerInfo);
909
+ break;
910
+ case 10:
911
+ pushProvider(
912
+ workInProgress2,
913
+ workInProgress2.type,
914
+ workInProgress2.memoizedProps.value
915
+ );
916
+ break;
917
+ case 31:
918
+ if (null !== workInProgress2.memoizedState)
919
+ return workInProgress2.flags |= 128, pushDehydratedActivitySuspenseHandler(workInProgress2), null;
920
+ break;
921
+ case 13:
922
+ var state$102 = workInProgress2.memoizedState;
923
+ if (null !== state$102) {
924
+ if (null !== state$102.dehydrated)
925
+ return pushPrimaryTreeSuspenseHandler(workInProgress2), workInProgress2.flags |= 128, null;
926
+ if (0 !== (renderLanes2 & workInProgress2.child.childLanes))
927
+ return updateSuspenseComponent(current, workInProgress2, renderLanes2);
928
+ pushPrimaryTreeSuspenseHandler(workInProgress2);
929
+ current = bailoutOnAlreadyFinishedWork(
930
+ current,
931
+ workInProgress2,
932
+ renderLanes2
933
+ );
934
+ return null !== current ? current.sibling : null;
935
+ }
936
+ pushPrimaryTreeSuspenseHandler(workInProgress2);
937
+ break;
938
+ case 19:
939
+ var didSuspendBefore = 0 !== (current.flags & 128);
940
+ state$102 = 0 !== (renderLanes2 & workInProgress2.childLanes);
941
+ state$102 || (propagateParentContextChanges(
942
+ current,
943
+ workInProgress2,
944
+ renderLanes2,
945
+ false
946
+ ), state$102 = 0 !== (renderLanes2 & workInProgress2.childLanes));
947
+ if (didSuspendBefore) {
948
+ if (state$102)
949
+ return updateSuspenseListComponent(
950
+ current,
951
+ workInProgress2,
952
+ renderLanes2
953
+ );
954
+ workInProgress2.flags |= 128;
955
+ }
956
+ didSuspendBefore = workInProgress2.memoizedState;
957
+ null !== didSuspendBefore && (didSuspendBefore.rendering = null, didSuspendBefore.tail = null, didSuspendBefore.lastEffect = null);
958
+ push(suspenseStackCursor, suspenseStackCursor.current);
959
+ if (state$102) break;
960
+ else return null;
961
+ case 22:
962
+ return workInProgress2.lanes = 0, updateOffscreenComponent(
963
+ current,
964
+ workInProgress2,
965
+ renderLanes2,
966
+ workInProgress2.pendingProps
967
+ );
968
+ case 24:
969
+ pushProvider(workInProgress2, CacheContext, current.memoizedState.cache);
970
+ }
971
+ return bailoutOnAlreadyFinishedWork(current, workInProgress2, renderLanes2);
972
+ }
973
+ function beginWork(current, workInProgress2, renderLanes2) {
974
+ if (null !== current)
975
+ if (current.memoizedProps !== workInProgress2.pendingProps)
976
+ didReceiveUpdate = true;
977
+ else {
978
+ if (!checkScheduledUpdateOrContext(current, renderLanes2) && 0 === (workInProgress2.flags & 128))
979
+ return didReceiveUpdate = false, attemptEarlyBailoutIfNoScheduledUpdate(
980
+ current,
981
+ workInProgress2,
982
+ renderLanes2
983
+ );
984
+ didReceiveUpdate = 0 !== (current.flags & 131072) ? true : false;
985
+ }
986
+ else
987
+ didReceiveUpdate = false, isHydrating && 0 !== (workInProgress2.flags & 1048576) && pushTreeId(workInProgress2, treeForkCount, workInProgress2.index);
988
+ workInProgress2.lanes = 0;
989
+ switch (workInProgress2.tag) {
990
+ case 16:
991
+ a: {
992
+ var props = workInProgress2.pendingProps;
993
+ current = resolveLazy(workInProgress2.elementType);
994
+ workInProgress2.type = current;
995
+ if ("function" === typeof current)
996
+ shouldConstruct(current) ? (props = resolveClassComponentProps(current, props), workInProgress2.tag = 1, workInProgress2 = updateClassComponent(
997
+ null,
998
+ workInProgress2,
999
+ current,
1000
+ props,
1001
+ renderLanes2
1002
+ )) : (workInProgress2.tag = 0, workInProgress2 = updateFunctionComponent(
1003
+ null,
1004
+ workInProgress2,
1005
+ current,
1006
+ props,
1007
+ renderLanes2
1008
+ ));
1009
+ else {
1010
+ if (void 0 !== current && null !== current) {
1011
+ var $$typeof = current.$$typeof;
1012
+ if ($$typeof === REACT_FORWARD_REF_TYPE) {
1013
+ workInProgress2.tag = 11;
1014
+ workInProgress2 = updateForwardRef(
1015
+ null,
1016
+ workInProgress2,
1017
+ current,
1018
+ props,
1019
+ renderLanes2
1020
+ );
1021
+ break a;
1022
+ } else if ($$typeof === REACT_MEMO_TYPE) {
1023
+ workInProgress2.tag = 14;
1024
+ workInProgress2 = updateMemoComponent(
1025
+ null,
1026
+ workInProgress2,
1027
+ current,
1028
+ props,
1029
+ renderLanes2
1030
+ );
1031
+ break a;
1032
+ }
1033
+ }
1034
+ workInProgress2 = getComponentNameFromType(current) || current;
1035
+ throw Error(formatProdErrorMessage(306, workInProgress2, ""));
1036
+ }
1037
+ }
1038
+ return workInProgress2;
1039
+ case 0:
1040
+ return updateFunctionComponent(
1041
+ current,
1042
+ workInProgress2,
1043
+ workInProgress2.type,
1044
+ workInProgress2.pendingProps,
1045
+ renderLanes2
1046
+ );
1047
+ case 1:
1048
+ return props = workInProgress2.type, $$typeof = resolveClassComponentProps(
1049
+ props,
1050
+ workInProgress2.pendingProps
1051
+ ), updateClassComponent(
1052
+ current,
1053
+ workInProgress2,
1054
+ props,
1055
+ $$typeof,
1056
+ renderLanes2
1057
+ );
1058
+ case 3:
1059
+ a: {
1060
+ pushHostContainer(
1061
+ workInProgress2,
1062
+ workInProgress2.stateNode.containerInfo
1063
+ );
1064
+ if (null === current) throw Error(formatProdErrorMessage(387));
1065
+ props = workInProgress2.pendingProps;
1066
+ var prevState = workInProgress2.memoizedState;
1067
+ $$typeof = prevState.element;
1068
+ cloneUpdateQueue(current, workInProgress2);
1069
+ processUpdateQueue(workInProgress2, props, null, renderLanes2);
1070
+ var nextState = workInProgress2.memoizedState;
1071
+ props = nextState.cache;
1072
+ pushProvider(workInProgress2, CacheContext, props);
1073
+ props !== prevState.cache && propagateContextChanges(
1074
+ workInProgress2,
1075
+ [CacheContext],
1076
+ renderLanes2,
1077
+ true
1078
+ );
1079
+ suspendIfUpdateReadFromEntangledAsyncAction();
1080
+ props = nextState.element;
1081
+ if (prevState.isDehydrated)
1082
+ if (prevState = {
1083
+ element: props,
1084
+ isDehydrated: false,
1085
+ cache: nextState.cache
1086
+ }, workInProgress2.updateQueue.baseState = prevState, workInProgress2.memoizedState = prevState, workInProgress2.flags & 256) {
1087
+ workInProgress2 = mountHostRootWithoutHydrating(
1088
+ current,
1089
+ workInProgress2,
1090
+ props,
1091
+ renderLanes2
1092
+ );
1093
+ break a;
1094
+ } else if (props !== $$typeof) {
1095
+ $$typeof = createCapturedValueAtFiber(
1096
+ Error(formatProdErrorMessage(424)),
1097
+ workInProgress2
1098
+ );
1099
+ queueHydrationError($$typeof);
1100
+ workInProgress2 = mountHostRootWithoutHydrating(
1101
+ current,
1102
+ workInProgress2,
1103
+ props,
1104
+ renderLanes2
1105
+ );
1106
+ break a;
1107
+ } else {
1108
+ current = workInProgress2.stateNode.containerInfo;
1109
+ switch (current.nodeType) {
1110
+ case 9:
1111
+ current = current.body;
1112
+ break;
1113
+ default:
1114
+ current = "HTML" === current.nodeName ? current.ownerDocument.body : current;
1115
+ }
1116
+ nextHydratableInstance = getNextHydratable(current.firstChild);
1117
+ hydrationParentFiber = workInProgress2;
1118
+ isHydrating = true;
1119
+ hydrationErrors = null;
1120
+ rootOrSingletonContext = true;
1121
+ renderLanes2 = mountChildFibers(
1122
+ workInProgress2,
1123
+ null,
1124
+ props,
1125
+ renderLanes2
1126
+ );
1127
+ for (workInProgress2.child = renderLanes2; renderLanes2; )
1128
+ renderLanes2.flags = renderLanes2.flags & -3 | 4096, renderLanes2 = renderLanes2.sibling;
1129
+ }
1130
+ else {
1131
+ resetHydrationState();
1132
+ if (props === $$typeof) {
1133
+ workInProgress2 = bailoutOnAlreadyFinishedWork(
1134
+ current,
1135
+ workInProgress2,
1136
+ renderLanes2
1137
+ );
1138
+ break a;
1139
+ }
1140
+ reconcileChildren(current, workInProgress2, props, renderLanes2);
1141
+ }
1142
+ workInProgress2 = workInProgress2.child;
1143
+ }
1144
+ return workInProgress2;
1145
+ case 26:
1146
+ return markRef(current, workInProgress2), null === current ? (renderLanes2 = getResource(
1147
+ workInProgress2.type,
1148
+ null,
1149
+ workInProgress2.pendingProps,
1150
+ null
1151
+ )) ? workInProgress2.memoizedState = renderLanes2 : isHydrating || (renderLanes2 = workInProgress2.type, current = workInProgress2.pendingProps, props = getOwnerDocumentFromRootContainer(
1152
+ rootInstanceStackCursor.current
1153
+ ).createElement(renderLanes2), props[internalInstanceKey] = workInProgress2, props[internalPropsKey] = current, setInitialProperties(props, renderLanes2, current), markNodeAsHoistable(props), workInProgress2.stateNode = props) : workInProgress2.memoizedState = getResource(
1154
+ workInProgress2.type,
1155
+ current.memoizedProps,
1156
+ workInProgress2.pendingProps,
1157
+ current.memoizedState
1158
+ ), null;
1159
+ case 27:
1160
+ return pushHostContext(workInProgress2), null === current && isHydrating && (props = workInProgress2.stateNode = resolveSingletonInstance(
1161
+ workInProgress2.type,
1162
+ workInProgress2.pendingProps,
1163
+ rootInstanceStackCursor.current
1164
+ ), hydrationParentFiber = workInProgress2, rootOrSingletonContext = true, $$typeof = nextHydratableInstance, isSingletonScope(workInProgress2.type) ? (previousHydratableOnEnteringScopedSingleton = $$typeof, nextHydratableInstance = getNextHydratable(props.firstChild)) : nextHydratableInstance = $$typeof), reconcileChildren(
1165
+ current,
1166
+ workInProgress2,
1167
+ workInProgress2.pendingProps.children,
1168
+ renderLanes2
1169
+ ), markRef(current, workInProgress2), null === current && (workInProgress2.flags |= 4194304), workInProgress2.child;
1170
+ case 5:
1171
+ if (null === current && isHydrating) {
1172
+ if ($$typeof = props = nextHydratableInstance)
1173
+ props = canHydrateInstance(
1174
+ props,
1175
+ workInProgress2.type,
1176
+ workInProgress2.pendingProps,
1177
+ rootOrSingletonContext
1178
+ ), null !== props ? (workInProgress2.stateNode = props, hydrationParentFiber = workInProgress2, nextHydratableInstance = getNextHydratable(props.firstChild), rootOrSingletonContext = false, $$typeof = true) : $$typeof = false;
1179
+ $$typeof || throwOnHydrationMismatch(workInProgress2);
1180
+ }
1181
+ pushHostContext(workInProgress2);
1182
+ $$typeof = workInProgress2.type;
1183
+ prevState = workInProgress2.pendingProps;
1184
+ nextState = null !== current ? current.memoizedProps : null;
1185
+ props = prevState.children;
1186
+ shouldSetTextContent($$typeof, prevState) ? props = null : null !== nextState && shouldSetTextContent($$typeof, nextState) && (workInProgress2.flags |= 32);
1187
+ null !== workInProgress2.memoizedState && ($$typeof = renderWithHooks(
1188
+ current,
1189
+ workInProgress2,
1190
+ TransitionAwareHostComponent,
1191
+ null,
1192
+ null,
1193
+ renderLanes2
1194
+ ), HostTransitionContext._currentValue = $$typeof);
1195
+ markRef(current, workInProgress2);
1196
+ reconcileChildren(current, workInProgress2, props, renderLanes2);
1197
+ return workInProgress2.child;
1198
+ case 6:
1199
+ if (null === current && isHydrating) {
1200
+ if (current = renderLanes2 = nextHydratableInstance)
1201
+ renderLanes2 = canHydrateTextInstance(
1202
+ renderLanes2,
1203
+ workInProgress2.pendingProps,
1204
+ rootOrSingletonContext
1205
+ ), null !== renderLanes2 ? (workInProgress2.stateNode = renderLanes2, hydrationParentFiber = workInProgress2, nextHydratableInstance = null, current = true) : current = false;
1206
+ current || throwOnHydrationMismatch(workInProgress2);
1207
+ }
1208
+ return null;
1209
+ case 13:
1210
+ return updateSuspenseComponent(current, workInProgress2, renderLanes2);
1211
+ case 4:
1212
+ return pushHostContainer(
1213
+ workInProgress2,
1214
+ workInProgress2.stateNode.containerInfo
1215
+ ), props = workInProgress2.pendingProps, null === current ? workInProgress2.child = reconcileChildFibers(
1216
+ workInProgress2,
1217
+ null,
1218
+ props,
1219
+ renderLanes2
1220
+ ) : reconcileChildren(current, workInProgress2, props, renderLanes2), workInProgress2.child;
1221
+ case 11:
1222
+ return updateForwardRef(
1223
+ current,
1224
+ workInProgress2,
1225
+ workInProgress2.type,
1226
+ workInProgress2.pendingProps,
1227
+ renderLanes2
1228
+ );
1229
+ case 7:
1230
+ return reconcileChildren(
1231
+ current,
1232
+ workInProgress2,
1233
+ workInProgress2.pendingProps,
1234
+ renderLanes2
1235
+ ), workInProgress2.child;
1236
+ case 8:
1237
+ return reconcileChildren(
1238
+ current,
1239
+ workInProgress2,
1240
+ workInProgress2.pendingProps.children,
1241
+ renderLanes2
1242
+ ), workInProgress2.child;
1243
+ case 12:
1244
+ return reconcileChildren(
1245
+ current,
1246
+ workInProgress2,
1247
+ workInProgress2.pendingProps.children,
1248
+ renderLanes2
1249
+ ), workInProgress2.child;
1250
+ case 10:
1251
+ return props = workInProgress2.pendingProps, pushProvider(workInProgress2, workInProgress2.type, props.value), reconcileChildren(current, workInProgress2, props.children, renderLanes2), workInProgress2.child;
1252
+ case 9:
1253
+ return $$typeof = workInProgress2.type._context, props = workInProgress2.pendingProps.children, prepareToReadContext(workInProgress2), $$typeof = readContext($$typeof), props = props($$typeof), workInProgress2.flags |= 1, reconcileChildren(current, workInProgress2, props, renderLanes2), workInProgress2.child;
1254
+ case 14:
1255
+ return updateMemoComponent(
1256
+ current,
1257
+ workInProgress2,
1258
+ workInProgress2.type,
1259
+ workInProgress2.pendingProps,
1260
+ renderLanes2
1261
+ );
1262
+ case 15:
1263
+ return updateSimpleMemoComponent(
1264
+ current,
1265
+ workInProgress2,
1266
+ workInProgress2.type,
1267
+ workInProgress2.pendingProps,
1268
+ renderLanes2
1269
+ );
1270
+ case 19:
1271
+ return updateSuspenseListComponent(current, workInProgress2, renderLanes2);
1272
+ case 31:
1273
+ return updateActivityComponent(current, workInProgress2, renderLanes2);
1274
+ case 22:
1275
+ return updateOffscreenComponent(
1276
+ current,
1277
+ workInProgress2,
1278
+ renderLanes2,
1279
+ workInProgress2.pendingProps
1280
+ );
1281
+ case 24:
1282
+ return prepareToReadContext(workInProgress2), props = readContext(CacheContext), null === current ? ($$typeof = peekCacheFromPool(), null === $$typeof && ($$typeof = workInProgressRoot, prevState = createCache(), $$typeof.pooledCache = prevState, prevState.refCount++, null !== prevState && ($$typeof.pooledCacheLanes |= renderLanes2), $$typeof = prevState), workInProgress2.memoizedState = { parent: props, cache: $$typeof }, initializeUpdateQueue(workInProgress2), pushProvider(workInProgress2, CacheContext, $$typeof)) : (0 !== (current.lanes & renderLanes2) && (cloneUpdateQueue(current, workInProgress2), processUpdateQueue(workInProgress2, null, null, renderLanes2), suspendIfUpdateReadFromEntangledAsyncAction()), $$typeof = current.memoizedState, prevState = workInProgress2.memoizedState, $$typeof.parent !== props ? ($$typeof = { parent: props, cache: props }, workInProgress2.memoizedState = $$typeof, 0 === workInProgress2.lanes && (workInProgress2.memoizedState = workInProgress2.updateQueue.baseState = $$typeof), pushProvider(workInProgress2, CacheContext, props)) : (props = prevState.cache, pushProvider(workInProgress2, CacheContext, props), props !== $$typeof.cache && propagateContextChanges(
1283
+ workInProgress2,
1284
+ [CacheContext],
1285
+ renderLanes2,
1286
+ true
1287
+ ))), reconcileChildren(
1288
+ current,
1289
+ workInProgress2,
1290
+ workInProgress2.pendingProps.children,
1291
+ renderLanes2
1292
+ ), workInProgress2.child;
1293
+ case 29:
1294
+ throw workInProgress2.pendingProps;
1295
+ }
1296
+ throw Error(formatProdErrorMessage(156, workInProgress2.tag));
1297
+ }
1298
+ function markUpdate(workInProgress2) {
1299
+ workInProgress2.flags |= 4;
1300
+ }
1301
+ function preloadInstanceAndSuspendIfNeeded(workInProgress2, type, oldProps, newProps, renderLanes2) {
1302
+ if (type = 0 !== (workInProgress2.mode & 32)) type = false;
1303
+ if (type) {
1304
+ if (workInProgress2.flags |= 16777216, (renderLanes2 & 335544128) === renderLanes2)
1305
+ if (workInProgress2.stateNode.complete) workInProgress2.flags |= 8192;
1306
+ else if (shouldRemainOnPreviousScreen()) workInProgress2.flags |= 8192;
1307
+ else
1308
+ throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException;
1309
+ } else workInProgress2.flags &= -16777217;
1310
+ }
1311
+ function preloadResourceAndSuspendIfNeeded(workInProgress2, resource) {
1312
+ if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4))
1313
+ workInProgress2.flags &= -16777217;
1314
+ else if (workInProgress2.flags |= 16777216, !preloadResource(resource))
1315
+ if (shouldRemainOnPreviousScreen()) workInProgress2.flags |= 8192;
1316
+ else
1317
+ throw suspendedThenable = noopSuspenseyCommitThenable, SuspenseyCommitException;
1318
+ }
1319
+ function scheduleRetryEffect(workInProgress2, retryQueue) {
1320
+ null !== retryQueue && (workInProgress2.flags |= 4);
1321
+ workInProgress2.flags & 16384 && (retryQueue = 22 !== workInProgress2.tag ? claimNextRetryLane() : 536870912, workInProgress2.lanes |= retryQueue, workInProgressSuspendedRetryLanes |= retryQueue);
1322
+ }
1323
+ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
1324
+ if (!isHydrating)
1325
+ switch (renderState.tailMode) {
1326
+ case "hidden":
1327
+ hasRenderedATailFallback = renderState.tail;
1328
+ for (var lastTailNode = null; null !== hasRenderedATailFallback; )
1329
+ null !== hasRenderedATailFallback.alternate && (lastTailNode = hasRenderedATailFallback), hasRenderedATailFallback = hasRenderedATailFallback.sibling;
1330
+ null === lastTailNode ? renderState.tail = null : lastTailNode.sibling = null;
1331
+ break;
1332
+ case "collapsed":
1333
+ lastTailNode = renderState.tail;
1334
+ for (var lastTailNode$106 = null; null !== lastTailNode; )
1335
+ null !== lastTailNode.alternate && (lastTailNode$106 = lastTailNode), lastTailNode = lastTailNode.sibling;
1336
+ null === lastTailNode$106 ? hasRenderedATailFallback || null === renderState.tail ? renderState.tail = null : renderState.tail.sibling = null : lastTailNode$106.sibling = null;
1337
+ }
1338
+ }
1339
+ function bubbleProperties(completedWork) {
1340
+ var didBailout = null !== completedWork.alternate && completedWork.alternate.child === completedWork.child, newChildLanes = 0, subtreeFlags = 0;
1341
+ if (didBailout)
1342
+ for (var child$107 = completedWork.child; null !== child$107; )
1343
+ newChildLanes |= child$107.lanes | child$107.childLanes, subtreeFlags |= child$107.subtreeFlags & 65011712, subtreeFlags |= child$107.flags & 65011712, child$107.return = completedWork, child$107 = child$107.sibling;
1344
+ else
1345
+ for (child$107 = completedWork.child; null !== child$107; )
1346
+ newChildLanes |= child$107.lanes | child$107.childLanes, subtreeFlags |= child$107.subtreeFlags, subtreeFlags |= child$107.flags, child$107.return = completedWork, child$107 = child$107.sibling;
1347
+ completedWork.subtreeFlags |= subtreeFlags;
1348
+ completedWork.childLanes = newChildLanes;
1349
+ return didBailout;
1350
+ }
1351
+ function completeWork(current, workInProgress2, renderLanes2) {
1352
+ var newProps = workInProgress2.pendingProps;
1353
+ popTreeContext(workInProgress2);
1354
+ switch (workInProgress2.tag) {
1355
+ case 16:
1356
+ case 15:
1357
+ case 0:
1358
+ case 11:
1359
+ case 7:
1360
+ case 8:
1361
+ case 12:
1362
+ case 9:
1363
+ case 14:
1364
+ return bubbleProperties(workInProgress2), null;
1365
+ case 1:
1366
+ return bubbleProperties(workInProgress2), null;
1367
+ case 3:
1368
+ renderLanes2 = workInProgress2.stateNode;
1369
+ newProps = null;
1370
+ null !== current && (newProps = current.memoizedState.cache);
1371
+ workInProgress2.memoizedState.cache !== newProps && (workInProgress2.flags |= 2048);
1372
+ popProvider(CacheContext);
1373
+ popHostContainer();
1374
+ renderLanes2.pendingContext && (renderLanes2.context = renderLanes2.pendingContext, renderLanes2.pendingContext = null);
1375
+ if (null === current || null === current.child)
1376
+ popHydrationState(workInProgress2) ? markUpdate(workInProgress2) : null === current || current.memoizedState.isDehydrated && 0 === (workInProgress2.flags & 256) || (workInProgress2.flags |= 1024, upgradeHydrationErrorsToRecoverable());
1377
+ bubbleProperties(workInProgress2);
1378
+ return null;
1379
+ case 26:
1380
+ var type = workInProgress2.type, nextResource = workInProgress2.memoizedState;
1381
+ null === current ? (markUpdate(workInProgress2), null !== nextResource ? (bubbleProperties(workInProgress2), preloadResourceAndSuspendIfNeeded(workInProgress2, nextResource)) : (bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(
1382
+ workInProgress2,
1383
+ type,
1384
+ null,
1385
+ newProps,
1386
+ renderLanes2
1387
+ ))) : nextResource ? nextResource !== current.memoizedState ? (markUpdate(workInProgress2), bubbleProperties(workInProgress2), preloadResourceAndSuspendIfNeeded(workInProgress2, nextResource)) : (bubbleProperties(workInProgress2), workInProgress2.flags &= -16777217) : (current = current.memoizedProps, current !== newProps && markUpdate(workInProgress2), bubbleProperties(workInProgress2), preloadInstanceAndSuspendIfNeeded(
1388
+ workInProgress2,
1389
+ type,
1390
+ current,
1391
+ newProps,
1392
+ renderLanes2
1393
+ ));
1394
+ return null;
1395
+ case 27:
1396
+ popHostContext(workInProgress2);
1397
+ renderLanes2 = rootInstanceStackCursor.current;
1398
+ type = workInProgress2.type;
1399
+ if (null !== current && null != workInProgress2.stateNode)
1400
+ current.memoizedProps !== newProps && markUpdate(workInProgress2);
1401
+ else {
1402
+ if (!newProps) {
1403
+ if (null === workInProgress2.stateNode)
1404
+ throw Error(formatProdErrorMessage(166));
1405
+ bubbleProperties(workInProgress2);
1406
+ return null;
1407
+ }
1408
+ current = contextStackCursor.current;
1409
+ popHydrationState(workInProgress2) ? prepareToHydrateHostInstance(workInProgress2, current) : (current = resolveSingletonInstance(type, newProps, renderLanes2), workInProgress2.stateNode = current, markUpdate(workInProgress2));
1410
+ }
1411
+ bubbleProperties(workInProgress2);
1412
+ return null;
1413
+ case 5:
1414
+ popHostContext(workInProgress2);
1415
+ type = workInProgress2.type;
1416
+ if (null !== current && null != workInProgress2.stateNode)
1417
+ current.memoizedProps !== newProps && markUpdate(workInProgress2);
1418
+ else {
1419
+ if (!newProps) {
1420
+ if (null === workInProgress2.stateNode)
1421
+ throw Error(formatProdErrorMessage(166));
1422
+ bubbleProperties(workInProgress2);
1423
+ return null;
1424
+ }
1425
+ nextResource = contextStackCursor.current;
1426
+ if (popHydrationState(workInProgress2))
1427
+ prepareToHydrateHostInstance(workInProgress2, nextResource);
1428
+ else {
1429
+ var ownerDocument = getOwnerDocumentFromRootContainer(
1430
+ rootInstanceStackCursor.current
1431
+ );
1432
+ switch (nextResource) {
1433
+ case 1:
1434
+ nextResource = ownerDocument.createElementNS(
1435
+ "http://www.w3.org/2000/svg",
1436
+ type
1437
+ );
1438
+ break;
1439
+ case 2:
1440
+ nextResource = ownerDocument.createElementNS(
1441
+ "http://www.w3.org/1998/Math/MathML",
1442
+ type
1443
+ );
1444
+ break;
1445
+ default:
1446
+ switch (type) {
1447
+ case "svg":
1448
+ nextResource = ownerDocument.createElementNS(
1449
+ "http://www.w3.org/2000/svg",
1450
+ type
1451
+ );
1452
+ break;
1453
+ case "math":
1454
+ nextResource = ownerDocument.createElementNS(
1455
+ "http://www.w3.org/1998/Math/MathML",
1456
+ type
1457
+ );
1458
+ break;
1459
+ case "script":
1460
+ nextResource = ownerDocument.createElement("div");
1461
+ nextResource.innerHTML = "<script><\/script>";
1462
+ nextResource = nextResource.removeChild(
1463
+ nextResource.firstChild
1464
+ );
1465
+ break;
1466
+ case "select":
1467
+ nextResource = "string" === typeof newProps.is ? ownerDocument.createElement("select", {
1468
+ is: newProps.is
1469
+ }) : ownerDocument.createElement("select");
1470
+ newProps.multiple ? nextResource.multiple = true : newProps.size && (nextResource.size = newProps.size);
1471
+ break;
1472
+ default:
1473
+ nextResource = "string" === typeof newProps.is ? ownerDocument.createElement(type, { is: newProps.is }) : ownerDocument.createElement(type);
1474
+ }
1475
+ }
1476
+ nextResource[internalInstanceKey] = workInProgress2;
1477
+ nextResource[internalPropsKey] = newProps;
1478
+ a: for (ownerDocument = workInProgress2.child; null !== ownerDocument; ) {
1479
+ if (5 === ownerDocument.tag || 6 === ownerDocument.tag)
1480
+ nextResource.appendChild(ownerDocument.stateNode);
1481
+ else if (4 !== ownerDocument.tag && 27 !== ownerDocument.tag && null !== ownerDocument.child) {
1482
+ ownerDocument.child.return = ownerDocument;
1483
+ ownerDocument = ownerDocument.child;
1484
+ continue;
1485
+ }
1486
+ if (ownerDocument === workInProgress2) break a;
1487
+ for (; null === ownerDocument.sibling; ) {
1488
+ if (null === ownerDocument.return || ownerDocument.return === workInProgress2)
1489
+ break a;
1490
+ ownerDocument = ownerDocument.return;
1491
+ }
1492
+ ownerDocument.sibling.return = ownerDocument.return;
1493
+ ownerDocument = ownerDocument.sibling;
1494
+ }
1495
+ workInProgress2.stateNode = nextResource;
1496
+ a: switch (setInitialProperties(nextResource, type, newProps), type) {
1497
+ case "button":
1498
+ case "input":
1499
+ case "select":
1500
+ case "textarea":
1501
+ newProps = !!newProps.autoFocus;
1502
+ break a;
1503
+ case "img":
1504
+ newProps = true;
1505
+ break a;
1506
+ default:
1507
+ newProps = false;
1508
+ }
1509
+ newProps && markUpdate(workInProgress2);
1510
+ }
1511
+ }
1512
+ bubbleProperties(workInProgress2);
1513
+ preloadInstanceAndSuspendIfNeeded(
1514
+ workInProgress2,
1515
+ workInProgress2.type,
1516
+ null === current ? null : current.memoizedProps,
1517
+ workInProgress2.pendingProps,
1518
+ renderLanes2
1519
+ );
1520
+ return null;
1521
+ case 6:
1522
+ if (current && null != workInProgress2.stateNode)
1523
+ current.memoizedProps !== newProps && markUpdate(workInProgress2);
1524
+ else {
1525
+ if ("string" !== typeof newProps && null === workInProgress2.stateNode)
1526
+ throw Error(formatProdErrorMessage(166));
1527
+ current = rootInstanceStackCursor.current;
1528
+ if (popHydrationState(workInProgress2)) {
1529
+ current = workInProgress2.stateNode;
1530
+ renderLanes2 = workInProgress2.memoizedProps;
1531
+ newProps = null;
1532
+ type = hydrationParentFiber;
1533
+ if (null !== type)
1534
+ switch (type.tag) {
1535
+ case 27:
1536
+ case 5:
1537
+ newProps = type.memoizedProps;
1538
+ }
1539
+ current[internalInstanceKey] = workInProgress2;
1540
+ current = current.nodeValue === renderLanes2 || null !== newProps && true === newProps.suppressHydrationWarning || checkForUnmatchedText(current.nodeValue, renderLanes2) ? true : false;
1541
+ current || throwOnHydrationMismatch(workInProgress2, true);
1542
+ } else
1543
+ current = getOwnerDocumentFromRootContainer(current).createTextNode(
1544
+ newProps
1545
+ ), current[internalInstanceKey] = workInProgress2, workInProgress2.stateNode = current;
1546
+ }
1547
+ bubbleProperties(workInProgress2);
1548
+ return null;
1549
+ case 31:
1550
+ renderLanes2 = workInProgress2.memoizedState;
1551
+ if (null === current || null !== current.memoizedState) {
1552
+ newProps = popHydrationState(workInProgress2);
1553
+ if (null !== renderLanes2) {
1554
+ if (null === current) {
1555
+ if (!newProps) throw Error(formatProdErrorMessage(318));
1556
+ current = workInProgress2.memoizedState;
1557
+ current = null !== current ? current.dehydrated : null;
1558
+ if (!current) throw Error(formatProdErrorMessage(557));
1559
+ current[internalInstanceKey] = workInProgress2;
1560
+ } else
1561
+ resetHydrationState(), 0 === (workInProgress2.flags & 128) && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4;
1562
+ bubbleProperties(workInProgress2);
1563
+ current = false;
1564
+ } else
1565
+ renderLanes2 = upgradeHydrationErrorsToRecoverable(), null !== current && null !== current.memoizedState && (current.memoizedState.hydrationErrors = renderLanes2), current = true;
1566
+ if (!current) {
1567
+ if (workInProgress2.flags & 256)
1568
+ return popSuspenseHandler(workInProgress2), workInProgress2;
1569
+ popSuspenseHandler(workInProgress2);
1570
+ return null;
1571
+ }
1572
+ if (0 !== (workInProgress2.flags & 128))
1573
+ throw Error(formatProdErrorMessage(558));
1574
+ }
1575
+ bubbleProperties(workInProgress2);
1576
+ return null;
1577
+ case 13:
1578
+ newProps = workInProgress2.memoizedState;
1579
+ if (null === current || null !== current.memoizedState && null !== current.memoizedState.dehydrated) {
1580
+ type = popHydrationState(workInProgress2);
1581
+ if (null !== newProps && null !== newProps.dehydrated) {
1582
+ if (null === current) {
1583
+ if (!type) throw Error(formatProdErrorMessage(318));
1584
+ type = workInProgress2.memoizedState;
1585
+ type = null !== type ? type.dehydrated : null;
1586
+ if (!type) throw Error(formatProdErrorMessage(317));
1587
+ type[internalInstanceKey] = workInProgress2;
1588
+ } else
1589
+ resetHydrationState(), 0 === (workInProgress2.flags & 128) && (workInProgress2.memoizedState = null), workInProgress2.flags |= 4;
1590
+ bubbleProperties(workInProgress2);
1591
+ type = false;
1592
+ } else
1593
+ type = upgradeHydrationErrorsToRecoverable(), null !== current && null !== current.memoizedState && (current.memoizedState.hydrationErrors = type), type = true;
1594
+ if (!type) {
1595
+ if (workInProgress2.flags & 256)
1596
+ return popSuspenseHandler(workInProgress2), workInProgress2;
1597
+ popSuspenseHandler(workInProgress2);
1598
+ return null;
1599
+ }
1600
+ }
1601
+ popSuspenseHandler(workInProgress2);
1602
+ if (0 !== (workInProgress2.flags & 128))
1603
+ return workInProgress2.lanes = renderLanes2, workInProgress2;
1604
+ renderLanes2 = null !== newProps;
1605
+ current = null !== current && null !== current.memoizedState;
1606
+ renderLanes2 && (newProps = workInProgress2.child, type = null, null !== newProps.alternate && null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool), nextResource = null, null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && (nextResource = newProps.memoizedState.cachePool.pool), nextResource !== type && (newProps.flags |= 2048));
1607
+ renderLanes2 !== current && renderLanes2 && (workInProgress2.child.flags |= 8192);
1608
+ scheduleRetryEffect(workInProgress2, workInProgress2.updateQueue);
1609
+ bubbleProperties(workInProgress2);
1610
+ return null;
1611
+ case 4:
1612
+ return popHostContainer(), null === current && listenToAllSupportedEvents(workInProgress2.stateNode.containerInfo), bubbleProperties(workInProgress2), null;
1613
+ case 10:
1614
+ return popProvider(workInProgress2.type), bubbleProperties(workInProgress2), null;
1615
+ case 19:
1616
+ pop(suspenseStackCursor);
1617
+ newProps = workInProgress2.memoizedState;
1618
+ if (null === newProps) return bubbleProperties(workInProgress2), null;
1619
+ type = 0 !== (workInProgress2.flags & 128);
1620
+ nextResource = newProps.rendering;
1621
+ if (null === nextResource)
1622
+ if (type) cutOffTailIfNeeded(newProps, false);
1623
+ else {
1624
+ if (0 !== workInProgressRootExitStatus || null !== current && 0 !== (current.flags & 128))
1625
+ for (current = workInProgress2.child; null !== current; ) {
1626
+ nextResource = findFirstSuspended(current);
1627
+ if (null !== nextResource) {
1628
+ workInProgress2.flags |= 128;
1629
+ cutOffTailIfNeeded(newProps, false);
1630
+ current = nextResource.updateQueue;
1631
+ workInProgress2.updateQueue = current;
1632
+ scheduleRetryEffect(workInProgress2, current);
1633
+ workInProgress2.subtreeFlags = 0;
1634
+ current = renderLanes2;
1635
+ for (renderLanes2 = workInProgress2.child; null !== renderLanes2; )
1636
+ resetWorkInProgress(renderLanes2, current), renderLanes2 = renderLanes2.sibling;
1637
+ push(
1638
+ suspenseStackCursor,
1639
+ suspenseStackCursor.current & 1 | 2
1640
+ );
1641
+ isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount);
1642
+ return workInProgress2.child;
1643
+ }
1644
+ current = current.sibling;
1645
+ }
1646
+ null !== newProps.tail && now() > workInProgressRootRenderTargetTime && (workInProgress2.flags |= 128, type = true, cutOffTailIfNeeded(newProps, false), workInProgress2.lanes = 4194304);
1647
+ }
1648
+ else {
1649
+ if (!type)
1650
+ if (current = findFirstSuspended(nextResource), null !== current) {
1651
+ if (workInProgress2.flags |= 128, type = true, current = current.updateQueue, workInProgress2.updateQueue = current, scheduleRetryEffect(workInProgress2, current), cutOffTailIfNeeded(newProps, true), null === newProps.tail && "hidden" === newProps.tailMode && !nextResource.alternate && !isHydrating)
1652
+ return bubbleProperties(workInProgress2), null;
1653
+ } else
1654
+ 2 * now() - newProps.renderingStartTime > workInProgressRootRenderTargetTime && 536870912 !== renderLanes2 && (workInProgress2.flags |= 128, type = true, cutOffTailIfNeeded(newProps, false), workInProgress2.lanes = 4194304);
1655
+ newProps.isBackwards ? (nextResource.sibling = workInProgress2.child, workInProgress2.child = nextResource) : (current = newProps.last, null !== current ? current.sibling = nextResource : workInProgress2.child = nextResource, newProps.last = nextResource);
1656
+ }
1657
+ if (null !== newProps.tail)
1658
+ return current = newProps.tail, newProps.rendering = current, newProps.tail = current.sibling, newProps.renderingStartTime = now(), current.sibling = null, renderLanes2 = suspenseStackCursor.current, push(
1659
+ suspenseStackCursor,
1660
+ type ? renderLanes2 & 1 | 2 : renderLanes2 & 1
1661
+ ), isHydrating && pushTreeFork(workInProgress2, newProps.treeForkCount), current;
1662
+ bubbleProperties(workInProgress2);
1663
+ return null;
1664
+ case 22:
1665
+ case 23:
1666
+ return popSuspenseHandler(workInProgress2), popHiddenContext(), newProps = null !== workInProgress2.memoizedState, null !== current ? null !== current.memoizedState !== newProps && (workInProgress2.flags |= 8192) : newProps && (workInProgress2.flags |= 8192), newProps ? 0 !== (renderLanes2 & 536870912) && 0 === (workInProgress2.flags & 128) && (bubbleProperties(workInProgress2), workInProgress2.subtreeFlags & 6 && (workInProgress2.flags |= 8192)) : bubbleProperties(workInProgress2), renderLanes2 = workInProgress2.updateQueue, null !== renderLanes2 && scheduleRetryEffect(workInProgress2, renderLanes2.retryQueue), renderLanes2 = null, null !== current && null !== current.memoizedState && null !== current.memoizedState.cachePool && (renderLanes2 = current.memoizedState.cachePool.pool), newProps = null, null !== workInProgress2.memoizedState && null !== workInProgress2.memoizedState.cachePool && (newProps = workInProgress2.memoizedState.cachePool.pool), newProps !== renderLanes2 && (workInProgress2.flags |= 2048), null !== current && pop(resumedCache), null;
1667
+ case 24:
1668
+ return renderLanes2 = null, null !== current && (renderLanes2 = current.memoizedState.cache), workInProgress2.memoizedState.cache !== renderLanes2 && (workInProgress2.flags |= 2048), popProvider(CacheContext), bubbleProperties(workInProgress2), null;
1669
+ case 25:
1670
+ return null;
1671
+ case 30:
1672
+ return null;
1673
+ }
1674
+ throw Error(formatProdErrorMessage(156, workInProgress2.tag));
1675
+ }
1676
+ function unwindWork(current, workInProgress2) {
1677
+ popTreeContext(workInProgress2);
1678
+ switch (workInProgress2.tag) {
1679
+ case 1:
1680
+ return current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1681
+ case 3:
1682
+ return popProvider(CacheContext), popHostContainer(), current = workInProgress2.flags, 0 !== (current & 65536) && 0 === (current & 128) ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1683
+ case 26:
1684
+ case 27:
1685
+ case 5:
1686
+ return popHostContext(workInProgress2), null;
1687
+ case 31:
1688
+ if (null !== workInProgress2.memoizedState) {
1689
+ popSuspenseHandler(workInProgress2);
1690
+ if (null === workInProgress2.alternate)
1691
+ throw Error(formatProdErrorMessage(340));
1692
+ resetHydrationState();
1693
+ }
1694
+ current = workInProgress2.flags;
1695
+ return current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1696
+ case 13:
1697
+ popSuspenseHandler(workInProgress2);
1698
+ current = workInProgress2.memoizedState;
1699
+ if (null !== current && null !== current.dehydrated) {
1700
+ if (null === workInProgress2.alternate)
1701
+ throw Error(formatProdErrorMessage(340));
1702
+ resetHydrationState();
1703
+ }
1704
+ current = workInProgress2.flags;
1705
+ return current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1706
+ case 19:
1707
+ return pop(suspenseStackCursor), null;
1708
+ case 4:
1709
+ return popHostContainer(), null;
1710
+ case 10:
1711
+ return popProvider(workInProgress2.type), null;
1712
+ case 22:
1713
+ case 23:
1714
+ return popSuspenseHandler(workInProgress2), popHiddenContext(), null !== current && pop(resumedCache), current = workInProgress2.flags, current & 65536 ? (workInProgress2.flags = current & -65537 | 128, workInProgress2) : null;
1715
+ case 24:
1716
+ return popProvider(CacheContext), null;
1717
+ case 25:
1718
+ return null;
1719
+ default:
1720
+ return null;
1721
+ }
1722
+ }
1723
+ function unwindInterruptedWork(current, interruptedWork) {
1724
+ popTreeContext(interruptedWork);
1725
+ switch (interruptedWork.tag) {
1726
+ case 3:
1727
+ popProvider(CacheContext);
1728
+ popHostContainer();
1729
+ break;
1730
+ case 26:
1731
+ case 27:
1732
+ case 5:
1733
+ popHostContext(interruptedWork);
1734
+ break;
1735
+ case 4:
1736
+ popHostContainer();
1737
+ break;
1738
+ case 31:
1739
+ null !== interruptedWork.memoizedState && popSuspenseHandler(interruptedWork);
1740
+ break;
1741
+ case 13:
1742
+ popSuspenseHandler(interruptedWork);
1743
+ break;
1744
+ case 19:
1745
+ pop(suspenseStackCursor);
1746
+ break;
1747
+ case 10:
1748
+ popProvider(interruptedWork.type);
1749
+ break;
1750
+ case 22:
1751
+ case 23:
1752
+ popSuspenseHandler(interruptedWork);
1753
+ popHiddenContext();
1754
+ null !== current && pop(resumedCache);
1755
+ break;
1756
+ case 24:
1757
+ popProvider(CacheContext);
1758
+ }
1759
+ }