openplanr 3.3.0 → 3.5.0

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