openplanr 3.1.1 → 3.2.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 (363) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/dist/cli/commands/groups/delivery.d.ts.map +1 -1
  3. package/dist/cli/commands/groups/delivery.js +2 -0
  4. package/dist/cli/commands/groups/delivery.js.map +1 -1
  5. package/dist/cli/commands/planning-artifacts.d.ts.map +1 -1
  6. package/dist/cli/commands/planning-artifacts.js +22 -12
  7. package/dist/cli/commands/planning-artifacts.js.map +1 -1
  8. package/dist/cli/commands/ship.d.ts +3 -0
  9. package/dist/cli/commands/ship.d.ts.map +1 -0
  10. package/dist/cli/commands/ship.js +65 -0
  11. package/dist/cli/commands/ship.js.map +1 -0
  12. package/dist/dashboard/.vite/manifest.json +1 -1
  13. package/dist/dashboard/assets/{index-G7ygVDGg.js → index-L8qtwqv6.js} +2 -2
  14. package/dist/dashboard/assets/{index-G7ygVDGg.js.map → index-L8qtwqv6.js.map} +1 -1
  15. package/dist/dashboard/dashboard-manifest.json +8 -8
  16. package/dist/dashboard/index.html +1 -1
  17. package/dist/models/schema.d.ts +39 -23
  18. package/dist/models/schema.d.ts.map +1 -1
  19. package/dist/models/schema.js +19 -12
  20. package/dist/models/schema.js.map +1 -1
  21. package/dist/models/types.d.ts +6 -0
  22. package/dist/models/types.d.ts.map +1 -1
  23. package/dist/services/id-service.d.ts +1 -5
  24. package/dist/services/id-service.d.ts.map +1 -1
  25. package/dist/services/id-service.js +1 -34
  26. package/dist/services/id-service.js.map +1 -1
  27. package/dist/services/ship-checks/changes.d.ts +24 -0
  28. package/dist/services/ship-checks/changes.d.ts.map +1 -0
  29. package/dist/services/ship-checks/changes.js +135 -0
  30. package/dist/services/ship-checks/changes.js.map +1 -0
  31. package/dist/services/ship-checks/contract.d.ts +81 -0
  32. package/dist/services/ship-checks/contract.d.ts.map +1 -0
  33. package/dist/services/ship-checks/contract.js +7 -0
  34. package/dist/services/ship-checks/contract.js.map +1 -0
  35. package/dist/services/ship-checks/discover.d.ts +10 -0
  36. package/dist/services/ship-checks/discover.d.ts.map +1 -0
  37. package/dist/services/ship-checks/discover.js +250 -0
  38. package/dist/services/ship-checks/discover.js.map +1 -0
  39. package/dist/services/ship-checks/glob.d.ts +5 -0
  40. package/dist/services/ship-checks/glob.d.ts.map +1 -0
  41. package/dist/services/ship-checks/glob.js +39 -0
  42. package/dist/services/ship-checks/glob.js.map +1 -0
  43. package/dist/services/ship-checks/hooks.d.ts +7 -0
  44. package/dist/services/ship-checks/hooks.d.ts.map +1 -0
  45. package/dist/services/ship-checks/hooks.js +65 -0
  46. package/dist/services/ship-checks/hooks.js.map +1 -0
  47. package/dist/services/ship-checks/packages.d.ts +29 -0
  48. package/dist/services/ship-checks/packages.d.ts.map +1 -0
  49. package/dist/services/ship-checks/packages.js +197 -0
  50. package/dist/services/ship-checks/packages.js.map +1 -0
  51. package/dist/services/ship-checks/related-tests.d.ts +13 -0
  52. package/dist/services/ship-checks/related-tests.d.ts.map +1 -0
  53. package/dist/services/ship-checks/related-tests.js +73 -0
  54. package/dist/services/ship-checks/related-tests.js.map +1 -0
  55. package/dist/services/ship-checks/scope.d.ts +8 -0
  56. package/dist/services/ship-checks/scope.d.ts.map +1 -0
  57. package/dist/services/ship-checks/scope.js +66 -0
  58. package/dist/services/ship-checks/scope.js.map +1 -0
  59. package/dist/services/ship-checks/task-requirements.d.ts +14 -0
  60. package/dist/services/ship-checks/task-requirements.d.ts.map +1 -0
  61. package/dist/services/ship-checks/task-requirements.js +145 -0
  62. package/dist/services/ship-checks/task-requirements.js.map +1 -0
  63. package/dist/services/ship-checks/workflows.d.ts +21 -0
  64. package/dist/services/ship-checks/workflows.d.ts.map +1 -0
  65. package/dist/services/ship-checks/workflows.js +208 -0
  66. package/dist/services/ship-checks/workflows.js.map +1 -0
  67. package/dist/services/template-service.d.ts +2 -0
  68. package/dist/services/template-service.d.ts.map +1 -1
  69. package/dist/services/template-service.js +4 -0
  70. package/dist/services/template-service.js.map +1 -1
  71. package/dist/utils/slugify.d.ts +1 -8
  72. package/dist/utils/slugify.d.ts.map +1 -1
  73. package/dist/utils/slugify.js +1 -25
  74. package/dist/utils/slugify.js.map +1 -1
  75. package/docs/CLI.md +48 -1
  76. package/lib/backlog-item.d.mts +49 -0
  77. package/lib/backlog-item.mjs +339 -0
  78. package/lib/host-packages/adapter-registry.json +5 -5
  79. package/lib/host-packages/capability-map.json +1 -1
  80. package/lib/host-packages/claude/.claude-plugin/marketplace.json +2 -2
  81. package/lib/host-packages/claude/openplanr/.claude-plugin/plugin.json +1 -1
  82. package/lib/host-packages/claude/openplanr/.openplanr-content.json +126 -90
  83. package/lib/host-packages/claude/openplanr/CONNECTORS.md +4 -6
  84. package/lib/host-packages/claude/openplanr/README.md +1 -1
  85. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-artifact-shell.mjs +1 -1
  86. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +1 -1
  87. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-document.mjs +385 -79
  88. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-handoff.mjs +1 -1
  89. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-resource-pack.mjs +1 -1
  90. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-review.mjs +45 -4
  91. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-runtime-support-e34c388a8e59.mjs → claude/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs} +1 -1
  92. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-share.mjs +8 -5
  93. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +40 -7
  94. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +1 -1
  95. package/lib/host-packages/claude/openplanr/runtime/design/scripts/{design-shared-protocol-contracts-31a760fc.mjs → design-shared-protocol-contracts-b5f28f94.mjs} +284 -45
  96. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design-upload-spool.mjs +1 -1
  97. package/lib/host-packages/claude/openplanr/runtime/design/scripts/design.mjs +215 -55
  98. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +23 -23
  99. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +246 -45
  100. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +12 -12
  101. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +47 -14
  102. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +11 -10
  103. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -3
  104. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +16 -11
  105. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +7 -11
  106. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +163 -274
  107. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +494 -967
  108. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +346 -678
  109. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +382 -810
  110. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +406 -730
  111. 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 +259 -522
  112. 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 +585 -937
  113. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +115 -240
  114. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +7 -17
  115. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +3 -4
  116. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +215 -0
  117. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +2766 -0
  118. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +134 -0
  119. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +2170 -0
  120. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +16 -0
  121. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +8 -0
  122. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +3883 -0
  123. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +966 -0
  124. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/{16-studio-shell.js → 20-studio-shell.js} +122 -227
  125. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +1583 -0
  126. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +101 -47
  127. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
  128. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0 → claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.20.0}/design-document.schema.json +78 -5
  129. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +247 -45
  130. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/design.mjs +45 -12
  131. package/lib/host-packages/claude/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
  132. package/lib/host-packages/claude/openplanr/skills/connect/references/connectors.md +4 -6
  133. package/lib/host-packages/claude/openplanr/skills/design/SKILL.md +12 -0
  134. package/lib/host-packages/claude/openplanr/skills/design/references/craft.md +14 -3
  135. package/lib/host-packages/claude/openplanr/skills/design/references/design-system.md +33 -1
  136. package/lib/host-packages/claude/openplanr/skills/design/references/discovery.md +18 -4
  137. package/lib/host-packages/claude/openplanr/skills/design/references/generation.md +74 -1
  138. package/lib/host-packages/claude/openplanr/skills/design/references/hosted-canvas.md +62 -0
  139. package/lib/host-packages/claude/openplanr/skills/design/references/review.md +46 -1
  140. package/lib/host-packages/claude/openplanr/skills/design/references/utilities.md +6 -0
  141. package/lib/host-packages/claude/openplanr/skills/design/schemas/design-document.schema.json +78 -5
  142. package/lib/host-packages/claude/openplanr/skills/design-loop/references/craft.md +14 -3
  143. package/lib/host-packages/claude/openplanr/skills/design-loop/references/design-system.md +33 -1
  144. package/lib/host-packages/claude/openplanr/skills/design-loop/references/discovery.md +18 -4
  145. package/lib/host-packages/claude/openplanr/skills/design-loop/references/generation.md +74 -1
  146. package/lib/host-packages/claude/openplanr/skills/design-loop/references/review.md +46 -1
  147. package/lib/host-packages/claude/openplanr/skills/design-loop/references/utilities.md +6 -0
  148. package/lib/host-packages/claude/openplanr/skills/design-loop/schemas/design-document.schema.json +78 -5
  149. package/lib/host-packages/claude/openplanr/skills/design-review/references/craft.md +14 -3
  150. package/lib/host-packages/claude/openplanr/skills/design-review/references/design-system.md +33 -1
  151. package/lib/host-packages/claude/openplanr/skills/design-review/references/discovery.md +18 -4
  152. package/lib/host-packages/claude/openplanr/skills/design-review/references/generation.md +74 -1
  153. package/lib/host-packages/claude/openplanr/skills/design-review/references/review.md +46 -1
  154. package/lib/host-packages/claude/openplanr/skills/design-review/references/utilities.md +6 -0
  155. package/lib/host-packages/claude/openplanr/skills/design-review/schemas/design-document.schema.json +78 -5
  156. package/lib/host-packages/claude/openplanr/skills/investigate/SKILL.md +10 -1
  157. package/lib/host-packages/claude/openplanr/skills/investigate/references/findings.md +92 -0
  158. package/lib/host-packages/claude/openplanr/skills/investigate/scripts/backlog-item.mjs +339 -0
  159. package/lib/host-packages/claude/openplanr/skills/plan/SKILL.md +3 -0
  160. package/lib/host-packages/claude/openplanr/skills/plan/schemas/design-document.schema.json +78 -5
  161. package/lib/host-packages/claude/openplanr/skills/share/references/connectors.md +4 -6
  162. package/lib/host-packages/claude/openplanr/skills/ship/SKILL.md +15 -4
  163. package/lib/host-packages/claude/openplanr/skills/ship/references/findings.md +92 -0
  164. package/lib/host-packages/claude/openplanr/skills/ship/references/result-contract.md +3 -1
  165. package/lib/host-packages/claude/openplanr/skills/ship/scripts/backlog-item.mjs +339 -0
  166. package/lib/host-packages/claude/openplanr/skills/sprint/references/connectors.md +4 -6
  167. package/lib/host-packages/claude/openplanr/skills/status/references/connectors.md +4 -6
  168. package/lib/host-packages/claude/openplanr/skills/sync/references/connectors.md +4 -6
  169. package/lib/host-packages/cursor/openplanr/.openplanr-content.json +125 -89
  170. package/lib/host-packages/cursor/openplanr/CONNECTORS.md +4 -6
  171. package/lib/host-packages/cursor/openplanr/manifest.json +1 -1
  172. package/lib/host-packages/cursor/openplanr/rules/planr-connect/references/connectors.md +4 -6
  173. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/craft.md +14 -3
  174. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/design-system.md +33 -1
  175. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/discovery.md +18 -4
  176. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/generation.md +74 -1
  177. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/hosted-canvas.md +62 -0
  178. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/review.md +46 -1
  179. package/lib/host-packages/cursor/openplanr/rules/planr-design/references/utilities.md +6 -0
  180. package/lib/host-packages/cursor/openplanr/rules/planr-design/schemas/design-document.schema.json +78 -5
  181. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/craft.md +14 -3
  182. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/design-system.md +33 -1
  183. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/discovery.md +18 -4
  184. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/generation.md +74 -1
  185. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/review.md +46 -1
  186. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/references/utilities.md +6 -0
  187. package/lib/host-packages/cursor/openplanr/rules/planr-design-loop/schemas/design-document.schema.json +78 -5
  188. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/craft.md +14 -3
  189. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/design-system.md +33 -1
  190. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/discovery.md +18 -4
  191. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/generation.md +74 -1
  192. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/review.md +46 -1
  193. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/references/utilities.md +6 -0
  194. package/lib/host-packages/cursor/openplanr/rules/planr-design-review/schemas/design-document.schema.json +78 -5
  195. package/lib/host-packages/cursor/openplanr/rules/planr-design.mdc +12 -0
  196. package/lib/host-packages/cursor/openplanr/rules/planr-investigate/references/findings.md +92 -0
  197. package/lib/host-packages/cursor/openplanr/rules/planr-investigate/scripts/backlog-item.mjs +339 -0
  198. package/lib/host-packages/cursor/openplanr/rules/planr-investigate.mdc +10 -1
  199. package/lib/host-packages/cursor/openplanr/rules/planr-plan/schemas/design-document.schema.json +78 -5
  200. package/lib/host-packages/cursor/openplanr/rules/planr-plan.mdc +3 -0
  201. package/lib/host-packages/cursor/openplanr/rules/planr-share/references/connectors.md +4 -6
  202. package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/findings.md +92 -0
  203. package/lib/host-packages/cursor/openplanr/rules/planr-ship/references/result-contract.md +3 -1
  204. package/lib/host-packages/cursor/openplanr/rules/planr-ship/scripts/backlog-item.mjs +339 -0
  205. package/lib/host-packages/cursor/openplanr/rules/planr-ship.mdc +15 -4
  206. package/lib/host-packages/cursor/openplanr/rules/planr-sprint/references/connectors.md +4 -6
  207. package/lib/host-packages/cursor/openplanr/rules/planr-status/references/connectors.md +4 -6
  208. package/lib/host-packages/cursor/openplanr/rules/planr-sync/references/connectors.md +4 -6
  209. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-artifact-shell.mjs +1 -1
  210. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +1 -1
  211. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-document.mjs +385 -79
  212. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-handoff.mjs +1 -1
  213. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-resource-pack.mjs +1 -1
  214. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-review.mjs +45 -4
  215. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-runtime-support-e34c388a8e59.mjs → cursor/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs} +1 -1
  216. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-share.mjs +8 -5
  217. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +40 -7
  218. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +1 -1
  219. package/lib/host-packages/{openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs → cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs} +284 -45
  220. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design-upload-spool.mjs +1 -1
  221. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/design.mjs +215 -55
  222. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +23 -23
  223. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +246 -45
  224. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +12 -12
  225. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +47 -14
  226. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +11 -10
  227. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -3
  228. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +16 -11
  229. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +7 -11
  230. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +163 -274
  231. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +494 -967
  232. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +346 -678
  233. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +382 -810
  234. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +406 -730
  235. 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 +259 -522
  236. 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 +585 -937
  237. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +115 -240
  238. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +7 -17
  239. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +3 -4
  240. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +215 -0
  241. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +2766 -0
  242. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +134 -0
  243. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +2170 -0
  244. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +16 -0
  245. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +8 -0
  246. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +3883 -0
  247. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +966 -0
  248. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/{16-studio-shell.js → 20-studio-shell.js} +122 -227
  249. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +1583 -0
  250. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +101 -47
  251. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
  252. package/lib/host-packages/{claude/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0 → cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.20.0}/design-document.schema.json +78 -5
  253. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +247 -45
  254. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/design.mjs +45 -12
  255. package/lib/host-packages/cursor/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
  256. package/lib/host-packages/openai/.claude-plugin/marketplace.json +2 -2
  257. package/lib/host-packages/openai/openplanr/.codex-plugin/plugin.json +1 -1
  258. package/lib/host-packages/openai/openplanr/.openplanr-content.json +128 -92
  259. package/lib/host-packages/openai/openplanr/CONNECTORS.md +4 -6
  260. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-artifact-shell.mjs +1 -1
  261. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-chunked-workspace-client.mjs +1 -1
  262. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-document.mjs +385 -79
  263. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-handoff.mjs +1 -1
  264. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-resource-pack.mjs +1 -1
  265. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-review.mjs +45 -4
  266. package/lib/host-packages/{claude/openplanr/runtime/design/scripts/design-runtime-support-e34c388a8e59.mjs → openai/openplanr/runtime/design/scripts/design-runtime-support-6774fd3d5d02.mjs} +1 -1
  267. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-share.mjs +8 -5
  268. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-dependencies-design-support-protocol-contracts-3d9b1a86.mjs +40 -7
  269. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-shared-artifact-support-protocol-contracts-ea2cd15e.mjs +1 -1
  270. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/design-shared-protocol-contracts-31a760fc.mjs → openai/openplanr/runtime/design/scripts/design-shared-protocol-contracts-b5f28f94.mjs} +284 -45
  271. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design-upload-spool.mjs +1 -1
  272. package/lib/host-packages/openai/openplanr/runtime/design/scripts/design.mjs +215 -55
  273. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/02-artifact-review-ui.js +23 -23
  274. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/03-protocol-contracts.js +246 -45
  275. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/06-artifact-review-ui.js +12 -12
  276. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources/08-artifact-review-ui.js +47 -14
  277. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/artifact/templates/artifact-review-stage.js.sources.json +11 -10
  278. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/package.json +4 -3
  279. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.css +16 -11
  280. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/01-module-runtime.js +7 -11
  281. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/02-react.js +163 -274
  282. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/03-react-dom-client-fiber-foundations.js +494 -967
  283. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/04-react-dom-client-reconciliation-hooks.js +346 -678
  284. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/05-react-dom-client-render-phases.js +382 -810
  285. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/06-react-dom-client-commit-effects.js +406 -730
  286. 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 +259 -522
  287. 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 +585 -937
  288. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/09-react-dom-client-public-roots.js +115 -240
  289. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/10-react.js +7 -17
  290. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/11-artifact-review-ui.js +3 -4
  291. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-protocol-contracts.js +215 -0
  292. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-design-review-experience.js +2766 -0
  293. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-studio-shell.js +134 -0
  294. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-canvas-engine.js +2170 -0
  295. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/16-design-review-experience.js +16 -0
  296. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-studio-shell.js +8 -0
  297. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/18-interface-primitives.js +3883 -0
  298. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/19-interface-primitives.js +966 -0
  299. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/{16-studio-shell.js → 20-studio-shell.js} +122 -227
  300. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/21-design-studio.js +1583 -0
  301. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources.json +101 -47
  302. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/protocol/package.json +5 -1
  303. package/lib/host-packages/{cursor/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.9.0 → openai/openplanr/runtime/design/scripts/runtime/packages/protocol/schemas/v1.20.0}/design-document.schema.json +78 -5
  304. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design-protocol-contracts.mjs +247 -45
  305. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/design.mjs +45 -12
  306. package/lib/host-packages/openai/openplanr/runtime/plan/scripts/runtime/packages/protocol/package.json +5 -1
  307. package/lib/host-packages/openai/openplanr/skills/connect/references/connectors.md +4 -6
  308. package/lib/host-packages/openai/openplanr/skills/design/SKILL.md +12 -0
  309. package/lib/host-packages/openai/openplanr/skills/design/openplanr.skill.json +11 -0
  310. package/lib/host-packages/openai/openplanr/skills/design/references/craft.md +14 -3
  311. package/lib/host-packages/openai/openplanr/skills/design/references/design-system.md +33 -1
  312. package/lib/host-packages/openai/openplanr/skills/design/references/discovery.md +18 -4
  313. package/lib/host-packages/openai/openplanr/skills/design/references/generation.md +74 -1
  314. package/lib/host-packages/openai/openplanr/skills/design/references/hosted-canvas.md +62 -0
  315. package/lib/host-packages/openai/openplanr/skills/design/references/review.md +46 -1
  316. package/lib/host-packages/openai/openplanr/skills/design/references/utilities.md +6 -0
  317. package/lib/host-packages/openai/openplanr/skills/design/schemas/design-document.schema.json +78 -5
  318. package/lib/host-packages/openai/openplanr/skills/design-loop/references/craft.md +14 -3
  319. package/lib/host-packages/openai/openplanr/skills/design-loop/references/design-system.md +33 -1
  320. package/lib/host-packages/openai/openplanr/skills/design-loop/references/discovery.md +18 -4
  321. package/lib/host-packages/openai/openplanr/skills/design-loop/references/generation.md +74 -1
  322. package/lib/host-packages/openai/openplanr/skills/design-loop/references/review.md +46 -1
  323. package/lib/host-packages/openai/openplanr/skills/design-loop/references/utilities.md +6 -0
  324. package/lib/host-packages/openai/openplanr/skills/design-loop/schemas/design-document.schema.json +78 -5
  325. package/lib/host-packages/openai/openplanr/skills/design-review/references/craft.md +14 -3
  326. package/lib/host-packages/openai/openplanr/skills/design-review/references/design-system.md +33 -1
  327. package/lib/host-packages/openai/openplanr/skills/design-review/references/discovery.md +18 -4
  328. package/lib/host-packages/openai/openplanr/skills/design-review/references/generation.md +74 -1
  329. package/lib/host-packages/openai/openplanr/skills/design-review/references/review.md +46 -1
  330. package/lib/host-packages/openai/openplanr/skills/design-review/references/utilities.md +6 -0
  331. package/lib/host-packages/openai/openplanr/skills/design-review/schemas/design-document.schema.json +78 -5
  332. package/lib/host-packages/openai/openplanr/skills/investigate/SKILL.md +10 -1
  333. package/lib/host-packages/openai/openplanr/skills/investigate/openplanr.skill.json +22 -0
  334. package/lib/host-packages/openai/openplanr/skills/investigate/references/findings.md +92 -0
  335. package/lib/host-packages/openai/openplanr/skills/investigate/scripts/backlog-item.mjs +339 -0
  336. package/lib/host-packages/openai/openplanr/skills/plan/SKILL.md +3 -0
  337. package/lib/host-packages/openai/openplanr/skills/plan/schemas/design-document.schema.json +78 -5
  338. package/lib/host-packages/openai/openplanr/skills/share/references/connectors.md +4 -6
  339. package/lib/host-packages/openai/openplanr/skills/ship/SKILL.md +15 -4
  340. package/lib/host-packages/openai/openplanr/skills/ship/openplanr.skill.json +22 -0
  341. package/lib/host-packages/openai/openplanr/skills/ship/references/findings.md +92 -0
  342. package/lib/host-packages/openai/openplanr/skills/ship/references/result-contract.md +3 -1
  343. package/lib/host-packages/openai/openplanr/skills/ship/scripts/backlog-item.mjs +339 -0
  344. package/lib/host-packages/openai/openplanr/skills/sprint/references/connectors.md +4 -6
  345. package/lib/host-packages/openai/openplanr/skills/status/references/connectors.md +4 -6
  346. package/lib/host-packages/openai/openplanr/skills/sync/references/connectors.md +4 -6
  347. package/package.json +3 -3
  348. package/dist/templates/backlog/backlog-item.md.hbs +0 -40
  349. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +0 -3589
  350. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +0 -184
  351. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +0 -5229
  352. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +0 -1733
  353. package/lib/host-packages/claude/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +0 -1844
  354. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +0 -3589
  355. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +0 -184
  356. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +0 -5229
  357. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +0 -1733
  358. package/lib/host-packages/cursor/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +0 -1844
  359. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/12-design-review-experience.js +0 -3589
  360. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/13-studio-shell.js +0 -184
  361. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/14-interface-primitives.js +0 -5229
  362. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/15-interface-primitives.js +0 -1733
  363. package/lib/host-packages/openai/openplanr/runtime/design/scripts/runtime/packages/design/templates/studio/studio.js.sources/17-design-studio.js +0 -1844
@@ -1,143 +1,93 @@
1
1
 
2
- var executionContext = 0;
3
- var workInProgressRoot = null;
4
- var workInProgress = null;
5
- var workInProgressRootRenderLanes = 0;
6
- var workInProgressSuspendedReason = 0;
7
- var workInProgressThrownValue = null;
8
- var workInProgressRootDidSkipSuspendedSiblings = false;
9
- var workInProgressRootIsPrerendering = false;
10
- var workInProgressRootDidAttachPingListener = false;
11
- var entangledRenderLanes = 0;
12
- var workInProgressRootExitStatus = 0;
13
- var workInProgressRootSkippedLanes = 0;
14
- var workInProgressRootInterleavedUpdatedLanes = 0;
15
- var workInProgressRootPingedLanes = 0;
16
- var workInProgressDeferredLane = 0;
17
- var workInProgressSuspendedRetryLanes = 0;
18
- var workInProgressRootConcurrentErrors = null;
19
- var workInProgressRootRecoverableErrors = null;
20
- var workInProgressRootDidIncludeRecursiveRenderUpdate = false;
21
- var globalMostRecentFallbackTime = 0;
22
- var globalMostRecentTransitionTime = 0;
23
- var workInProgressRootRenderTargetTime = Infinity;
24
- var workInProgressTransitions = null;
25
- var legacyErrorBoundariesThatAlreadyFailed = null;
26
- var pendingEffectsStatus = 0;
27
- var pendingEffectsRoot = null;
28
- var pendingFinishedWork = null;
29
- var pendingEffectsLanes = 0;
30
- var pendingEffectsRemainingLanes = 0;
31
- var pendingPassiveTransitions = null;
32
- var pendingRecoverableErrors = null;
33
- var pendingViewTransition = null;
34
- var pendingViewTransitionEvents = null;
35
- var pendingTransitionTypes = null;
36
- var nestedUpdateCount = 0;
37
- var rootWithNestedUpdates = null;
2
+ var DefaultAsyncDispatcher = {
3
+ getCacheForType: function(resourceType) {
4
+ var cache = readContext(CacheContext), cacheForType = cache.data.get(resourceType);
5
+ return cacheForType === void 0 && (cacheForType = resourceType(), cache.data.set(resourceType, cacheForType)), cacheForType;
6
+ },
7
+ cacheSignal: function() {
8
+ return readContext(CacheContext).controller.signal;
9
+ }
10
+ }, PossiblyWeakMap = typeof WeakMap == "function" ? WeakMap : Map, executionContext = 0, workInProgressRoot = null, workInProgress = null, workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, workInProgressRootSkippedLanes = 0, workInProgressRootInterleavedUpdatedLanes = 0, workInProgressRootPingedLanes = 0, workInProgressDeferredLane = 0, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, globalMostRecentFallbackTime = 0, globalMostRecentTransitionTime = 0, workInProgressRootRenderTargetTime = 1 / 0, workInProgressTransitions = null, legacyErrorBoundariesThatAlreadyFailed = null, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, pendingEffectsLanes = 0, pendingEffectsRemainingLanes = 0, pendingPassiveTransitions = null, pendingRecoverableErrors = null, pendingViewTransition = null, pendingViewTransitionEvents = null, pendingTransitionTypes = null, nestedUpdateCount = 0, rootWithNestedUpdates = null;
38
11
  function requestUpdateLane() {
39
- return 0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes ? workInProgressRootRenderLanes & -workInProgressRootRenderLanes : null !== ReactSharedInternals.T ? requestTransitionLane() : resolveUpdatePriority();
12
+ return (executionContext & 2) !== 0 && workInProgressRootRenderLanes !== 0 ? workInProgressRootRenderLanes & -workInProgressRootRenderLanes : ReactSharedInternals.T !== null ? requestTransitionLane() : resolveUpdatePriority();
40
13
  }
41
14
  function requestDeferredLane() {
42
- if (0 === workInProgressDeferredLane)
43
- if (0 === (workInProgressRootRenderLanes & 536870912) || isHydrating) {
15
+ if (workInProgressDeferredLane === 0)
16
+ if ((workInProgressRootRenderLanes & 536870912) === 0 || isHydrating) {
44
17
  var lane = nextTransitionDeferredLane;
45
- nextTransitionDeferredLane <<= 1;
46
- 0 === (nextTransitionDeferredLane & 3932160) && (nextTransitionDeferredLane = 262144);
47
- workInProgressDeferredLane = lane;
18
+ nextTransitionDeferredLane <<= 1, (nextTransitionDeferredLane & 3932160) === 0 && (nextTransitionDeferredLane = 262144), workInProgressDeferredLane = lane;
48
19
  } else workInProgressDeferredLane = 536870912;
49
- lane = suspenseHandlerStackCursor.current;
50
- null !== lane && (lane.flags |= 32);
51
- return workInProgressDeferredLane;
20
+ return lane = suspenseHandlerStackCursor.current, lane !== null && (lane.flags |= 32), workInProgressDeferredLane;
52
21
  }
53
22
  function scheduleViewTransitionEvent(fiber, callback) {
54
- if (null != callback) {
23
+ if (callback != null) {
55
24
  var state = fiber.stateNode, instance = state.ref;
56
- null === instance && (instance = state.ref = createViewTransitionInstance(
25
+ instance === null && (instance = state.ref = createViewTransitionInstance(
57
26
  getViewTransitionName(fiber.memoizedProps, state)
58
- ));
59
- null === pendingViewTransitionEvents && (pendingViewTransitionEvents = []);
60
- pendingViewTransitionEvents.push(callback.bind(null, instance));
27
+ )), pendingViewTransitionEvents === null && (pendingViewTransitionEvents = []), pendingViewTransitionEvents.push(callback.bind(null, instance));
61
28
  }
62
29
  }
63
30
  function scheduleUpdateOnFiber(root2, fiber, lane) {
64
- if (root2 === workInProgressRoot && (2 === workInProgressSuspendedReason || 9 === workInProgressSuspendedReason) || null !== root2.cancelPendingCommit)
65
- prepareFreshStack(root2, 0), markRootSuspended(
66
- root2,
67
- workInProgressRootRenderLanes,
68
- workInProgressDeferredLane,
69
- false
70
- );
71
- markRootUpdated$1(root2, lane);
72
- if (0 === (executionContext & 2) || root2 !== workInProgressRoot)
73
- root2 === workInProgressRoot && (0 === (executionContext & 2) && (workInProgressRootInterleavedUpdatedLanes |= lane), 4 === workInProgressRootExitStatus && markRootSuspended(
74
- root2,
75
- workInProgressRootRenderLanes,
76
- workInProgressDeferredLane,
77
- false
78
- )), ensureRootIsScheduled(root2);
31
+ (root2 === workInProgressRoot && (workInProgressSuspendedReason === 2 || workInProgressSuspendedReason === 9) || root2.cancelPendingCommit !== null) && (prepareFreshStack(root2, 0), markRootSuspended(
32
+ root2,
33
+ workInProgressRootRenderLanes,
34
+ workInProgressDeferredLane,
35
+ !1
36
+ )), markRootUpdated$1(root2, lane), ((executionContext & 2) === 0 || root2 !== workInProgressRoot) && (root2 === workInProgressRoot && ((executionContext & 2) === 0 && (workInProgressRootInterleavedUpdatedLanes |= lane), workInProgressRootExitStatus === 4 && markRootSuspended(
37
+ root2,
38
+ workInProgressRootRenderLanes,
39
+ workInProgressDeferredLane,
40
+ !1
41
+ )), ensureRootIsScheduled(root2));
79
42
  }
80
43
  function performWorkOnRoot(root$jscomp$0, lanes, forceSync) {
81
- if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
82
- var shouldTimeSlice = !forceSync && 0 === (lanes & 127) && 0 === (lanes & root$jscomp$0.expiredLanes) || checkIfRootIsPrerendering(root$jscomp$0, lanes), exitStatus = shouldTimeSlice ? renderRootConcurrent(root$jscomp$0, lanes) : renderRootSync(root$jscomp$0, lanes, true), renderWasConcurrent = shouldTimeSlice;
44
+ if ((executionContext & 6) !== 0) throw Error(formatProdErrorMessage(327));
45
+ var shouldTimeSlice = !forceSync && (lanes & 127) === 0 && (lanes & root$jscomp$0.expiredLanes) === 0 || checkIfRootIsPrerendering(root$jscomp$0, lanes), exitStatus = shouldTimeSlice ? renderRootConcurrent(root$jscomp$0, lanes) : renderRootSync(root$jscomp$0, lanes, !0), renderWasConcurrent = shouldTimeSlice;
83
46
  do {
84
- if (0 === exitStatus) {
85
- workInProgressRootIsPrerendering && !shouldTimeSlice && markRootSuspended(root$jscomp$0, lanes, 0, false);
47
+ if (exitStatus === 0) {
48
+ workInProgressRootIsPrerendering && !shouldTimeSlice && markRootSuspended(root$jscomp$0, lanes, 0, !1);
86
49
  break;
87
50
  } else {
88
- forceSync = root$jscomp$0.current.alternate;
89
- if (renderWasConcurrent && !isRenderConsistentWithExternalStores(forceSync)) {
90
- exitStatus = renderRootSync(root$jscomp$0, lanes, false);
91
- renderWasConcurrent = false;
51
+ if (forceSync = root$jscomp$0.current.alternate, renderWasConcurrent && !isRenderConsistentWithExternalStores(forceSync)) {
52
+ exitStatus = renderRootSync(root$jscomp$0, lanes, !1), renderWasConcurrent = !1;
92
53
  continue;
93
54
  }
94
- if (2 === exitStatus) {
95
- renderWasConcurrent = lanes;
96
- if (root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
55
+ if (exitStatus === 2) {
56
+ if (renderWasConcurrent = lanes, root$jscomp$0.errorRecoveryDisabledLanes & renderWasConcurrent)
97
57
  var JSCompiler_inline_result = 0;
98
58
  else
99
- JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913, JSCompiler_inline_result = 0 !== JSCompiler_inline_result ? JSCompiler_inline_result : JSCompiler_inline_result & 536870912 ? 536870912 : 0;
100
- if (0 !== JSCompiler_inline_result) {
59
+ JSCompiler_inline_result = root$jscomp$0.pendingLanes & -536870913, JSCompiler_inline_result = JSCompiler_inline_result !== 0 ? JSCompiler_inline_result : JSCompiler_inline_result & 536870912 ? 536870912 : 0;
60
+ if (JSCompiler_inline_result !== 0) {
101
61
  lanes = JSCompiler_inline_result;
102
62
  a: {
103
63
  var root2 = root$jscomp$0;
104
64
  exitStatus = workInProgressRootConcurrentErrors;
105
65
  var wasRootDehydrated = root2.current.memoizedState.isDehydrated;
106
- wasRootDehydrated && (prepareFreshStack(root2, JSCompiler_inline_result).flags |= 256);
107
- JSCompiler_inline_result = renderRootSync(
66
+ if (wasRootDehydrated && (prepareFreshStack(root2, JSCompiler_inline_result).flags |= 256), JSCompiler_inline_result = renderRootSync(
108
67
  root2,
109
68
  JSCompiler_inline_result,
110
- false
111
- );
112
- if (2 !== JSCompiler_inline_result && 6 !== JSCompiler_inline_result) {
69
+ !1
70
+ ), JSCompiler_inline_result !== 2 && JSCompiler_inline_result !== 6) {
113
71
  if (workInProgressRootDidAttachPingListener && !wasRootDehydrated) {
114
- root2.errorRecoveryDisabledLanes |= renderWasConcurrent;
115
- workInProgressRootInterleavedUpdatedLanes |= renderWasConcurrent;
116
- exitStatus = 4;
72
+ root2.errorRecoveryDisabledLanes |= renderWasConcurrent, workInProgressRootInterleavedUpdatedLanes |= renderWasConcurrent, exitStatus = 4;
117
73
  break a;
118
74
  }
119
- renderWasConcurrent = workInProgressRootRecoverableErrors;
120
- workInProgressRootRecoverableErrors = exitStatus;
121
- null !== renderWasConcurrent && (null === workInProgressRootRecoverableErrors ? workInProgressRootRecoverableErrors = renderWasConcurrent : workInProgressRootRecoverableErrors.push.apply(
75
+ renderWasConcurrent = workInProgressRootRecoverableErrors, workInProgressRootRecoverableErrors = exitStatus, renderWasConcurrent !== null && (workInProgressRootRecoverableErrors === null ? workInProgressRootRecoverableErrors = renderWasConcurrent : workInProgressRootRecoverableErrors.push.apply(
122
76
  workInProgressRootRecoverableErrors,
123
77
  renderWasConcurrent
124
78
  ));
125
79
  }
126
80
  exitStatus = JSCompiler_inline_result;
127
81
  }
128
- renderWasConcurrent = false;
129
- if (2 !== exitStatus) continue;
82
+ if (renderWasConcurrent = !1, exitStatus !== 2) continue;
130
83
  }
131
84
  }
132
- if (1 === exitStatus) {
133
- prepareFreshStack(root$jscomp$0, 0);
134
- markRootSuspended(root$jscomp$0, lanes, 0, true);
85
+ if (exitStatus === 1) {
86
+ prepareFreshStack(root$jscomp$0, 0), markRootSuspended(root$jscomp$0, lanes, 0, !0);
135
87
  break;
136
88
  }
137
89
  a: {
138
- shouldTimeSlice = root$jscomp$0;
139
- renderWasConcurrent = exitStatus;
140
- switch (renderWasConcurrent) {
90
+ switch (shouldTimeSlice = root$jscomp$0, renderWasConcurrent = exitStatus, renderWasConcurrent) {
141
91
  case 0:
142
92
  case 1:
143
93
  throw Error(formatProdErrorMessage(345));
@@ -162,15 +112,13 @@
162
112
  throw Error(formatProdErrorMessage(329));
163
113
  }
164
114
  if ((lanes & 62914560) === lanes && (exitStatus = globalMostRecentFallbackTime + 300 - now(), 10 < exitStatus)) {
165
- markRootSuspended(
115
+ if (markRootSuspended(
166
116
  shouldTimeSlice,
167
117
  lanes,
168
118
  workInProgressDeferredLane,
169
119
  !workInProgressRootDidSkipSuspendedSiblings
170
- );
171
- if (0 !== getNextLanes(shouldTimeSlice, 0, true)) break a;
172
- pendingEffectsLanes = lanes;
173
- shouldTimeSlice.timeoutHandle = scheduleTimeout(
120
+ ), getNextLanes(shouldTimeSlice, 0, !0) !== 0) break a;
121
+ pendingEffectsLanes = lanes, shouldTimeSlice.timeoutHandle = scheduleTimeout(
174
122
  completeRootWhenReady.bind(
175
123
  null,
176
124
  shouldTimeSlice,
@@ -211,55 +159,50 @@
211
159
  }
212
160
  }
213
161
  break;
214
- } while (1);
162
+ } while (!0);
215
163
  ensureRootIsScheduled(root$jscomp$0);
216
164
  }
217
165
  function completeRootWhenReady(root2, finishedWork, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, updatedLanes, suspendedRetryLanes, didSkipSuspendedSiblings, exitStatus, suspendedCommitReason, completedRenderStartTime, completedRenderEndTime) {
218
166
  root2.timeoutHandle = -1;
219
167
  var subtreeFlags = finishedWork.subtreeFlags, isViewTransitionEligible = (lanes & 335544064) === lanes;
220
- suspendedCommitReason = null;
221
- if (isViewTransitionEligible || subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) {
222
- if (suspendedCommitReason = {
223
- stylesheets: null,
224
- count: 0,
225
- imgCount: 0,
226
- imgBytes: 0,
227
- suspenseyImages: [],
228
- waitingForImages: true,
229
- waitingForViewTransition: false,
230
- unsuspend: noop$1
231
- }, appearingViewTransitions = null, accumulateSuspenseyCommitOnFiber(
232
- finishedWork,
233
- lanes,
234
- suspendedCommitReason
235
- ), isViewTransitionEligible && (subtreeFlags = suspendedCommitReason, isViewTransitionEligible = root2.containerInfo, isViewTransitionEligible = (9 === isViewTransitionEligible.nodeType ? isViewTransitionEligible : isViewTransitionEligible.ownerDocument).__reactViewTransition, null != isViewTransitionEligible && (subtreeFlags.count++, subtreeFlags.waitingForViewTransition = true, subtreeFlags = onUnsuspend.bind(subtreeFlags), isViewTransitionEligible.finished.then(subtreeFlags, subtreeFlags))), subtreeFlags = (lanes & 62914560) === lanes ? globalMostRecentFallbackTime - now() : (lanes & 4194048) === lanes ? globalMostRecentTransitionTime - now() : 0, subtreeFlags = waitForCommitToBeReady(
236
- suspendedCommitReason,
237
- subtreeFlags
238
- ), null !== subtreeFlags) {
239
- pendingEffectsLanes = lanes;
240
- root2.cancelPendingCommit = subtreeFlags(
241
- completeRoot.bind(
242
- null,
243
- root2,
244
- finishedWork,
245
- lanes,
246
- recoverableErrors,
247
- transitions,
248
- didIncludeRenderPhaseUpdate,
249
- spawnedLane,
250
- updatedLanes,
251
- suspendedRetryLanes,
252
- didSkipSuspendedSiblings,
253
- exitStatus,
254
- suspendedCommitReason,
255
- null,
256
- completedRenderStartTime,
257
- completedRenderEndTime
258
- )
259
- );
260
- markRootSuspended(root2, lanes, spawnedLane, !didSkipSuspendedSiblings);
261
- return;
262
- }
168
+ if (suspendedCommitReason = null, (isViewTransitionEligible || subtreeFlags & 8192 || (subtreeFlags & 16785408) === 16785408) && (suspendedCommitReason = {
169
+ stylesheets: null,
170
+ count: 0,
171
+ imgCount: 0,
172
+ imgBytes: 0,
173
+ suspenseyImages: [],
174
+ waitingForImages: !0,
175
+ waitingForViewTransition: !1,
176
+ unsuspend: noop$1
177
+ }, appearingViewTransitions = null, accumulateSuspenseyCommitOnFiber(
178
+ finishedWork,
179
+ lanes,
180
+ suspendedCommitReason
181
+ ), isViewTransitionEligible && (subtreeFlags = suspendedCommitReason, isViewTransitionEligible = root2.containerInfo, isViewTransitionEligible = (isViewTransitionEligible.nodeType === 9 ? isViewTransitionEligible : isViewTransitionEligible.ownerDocument).__reactViewTransition, isViewTransitionEligible != null && (subtreeFlags.count++, subtreeFlags.waitingForViewTransition = !0, subtreeFlags = onUnsuspend.bind(subtreeFlags), isViewTransitionEligible.finished.then(subtreeFlags, subtreeFlags))), subtreeFlags = (lanes & 62914560) === lanes ? globalMostRecentFallbackTime - now() : (lanes & 4194048) === lanes ? globalMostRecentTransitionTime - now() : 0, subtreeFlags = waitForCommitToBeReady(
182
+ suspendedCommitReason,
183
+ subtreeFlags
184
+ ), subtreeFlags !== null)) {
185
+ pendingEffectsLanes = lanes, root2.cancelPendingCommit = subtreeFlags(
186
+ completeRoot.bind(
187
+ null,
188
+ root2,
189
+ finishedWork,
190
+ lanes,
191
+ recoverableErrors,
192
+ transitions,
193
+ didIncludeRenderPhaseUpdate,
194
+ spawnedLane,
195
+ updatedLanes,
196
+ suspendedRetryLanes,
197
+ didSkipSuspendedSiblings,
198
+ exitStatus,
199
+ suspendedCommitReason,
200
+ null,
201
+ completedRenderStartTime,
202
+ completedRenderEndTime
203
+ )
204
+ ), markRootSuspended(root2, lanes, spawnedLane, !didSkipSuspendedSiblings);
205
+ return;
263
206
  }
264
207
  completeRoot(
265
208
  root2,
@@ -279,143 +222,102 @@
279
222
  function isRenderConsistentWithExternalStores(finishedWork) {
280
223
  for (var node = finishedWork; ; ) {
281
224
  var tag = node.tag;
282
- if ((0 === tag || 11 === tag || 15 === tag) && node.flags & 16384 && (tag = node.updateQueue, null !== tag && (tag = tag.stores, null !== tag)))
225
+ if ((tag === 0 || tag === 11 || tag === 15) && node.flags & 16384 && (tag = node.updateQueue, tag !== null && (tag = tag.stores, tag !== null)))
283
226
  for (var i = 0; i < tag.length; i++) {
284
227
  var check = tag[i], getSnapshot = check.getSnapshot;
285
228
  check = check.value;
286
229
  try {
287
- if (!objectIs(getSnapshot(), check)) return false;
288
- } catch (error) {
289
- return false;
230
+ if (!objectIs(getSnapshot(), check)) return !1;
231
+ } catch {
232
+ return !1;
290
233
  }
291
234
  }
292
- tag = node.child;
293
- if (node.subtreeFlags & 16384 && null !== tag)
235
+ if (tag = node.child, node.subtreeFlags & 16384 && tag !== null)
294
236
  tag.return = node, node = tag;
295
237
  else {
296
238
  if (node === finishedWork) break;
297
- for (; null === node.sibling; ) {
298
- if (null === node.return || node.return === finishedWork) return true;
239
+ for (; node.sibling === null; ) {
240
+ if (node.return === null || node.return === finishedWork) return !0;
299
241
  node = node.return;
300
242
  }
301
- node.sibling.return = node.return;
302
- node = node.sibling;
243
+ node.sibling.return = node.return, node = node.sibling;
303
244
  }
304
245
  }
305
- return true;
246
+ return !0;
306
247
  }
307
248
  function markRootSuspended(root2, suspendedLanes, spawnedLane, didAttemptEntireTree) {
308
- suspendedLanes = getEntangledLanes(root2, suspendedLanes);
309
- suspendedLanes &= ~workInProgressRootPingedLanes;
310
- suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
311
- root2.suspendedLanes |= suspendedLanes;
312
- root2.pingedLanes &= ~suspendedLanes;
313
- didAttemptEntireTree && (root2.warmLanes |= suspendedLanes);
314
- didAttemptEntireTree = root2.expirationTimes;
249
+ suspendedLanes = getEntangledLanes(root2, suspendedLanes), suspendedLanes &= ~workInProgressRootPingedLanes, suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes, root2.suspendedLanes |= suspendedLanes, root2.pingedLanes &= ~suspendedLanes, didAttemptEntireTree && (root2.warmLanes |= suspendedLanes), didAttemptEntireTree = root2.expirationTimes;
315
250
  for (var lanes = suspendedLanes; 0 < lanes; ) {
316
251
  var index$6 = 31 - clz32(lanes), lane = 1 << index$6;
317
- didAttemptEntireTree[index$6] = -1;
318
- lanes &= ~lane;
252
+ didAttemptEntireTree[index$6] = -1, lanes &= ~lane;
319
253
  }
320
- 0 !== spawnedLane && markSpawnedDeferredLane(root2, spawnedLane, suspendedLanes);
254
+ spawnedLane !== 0 && markSpawnedDeferredLane(root2, spawnedLane, suspendedLanes);
321
255
  }
322
256
  function flushSyncWork$1() {
323
- return 0 === (executionContext & 6) ? (flushSyncWorkAcrossRoots_impl(0, false), false) : true;
257
+ return (executionContext & 6) === 0 ? (flushSyncWorkAcrossRoots_impl(0, !1), !1) : !0;
324
258
  }
325
259
  function resetWorkInProgressStack() {
326
- if (null !== workInProgress) {
327
- if (0 === workInProgressSuspendedReason)
260
+ if (workInProgress !== null) {
261
+ if (workInProgressSuspendedReason === 0)
328
262
  var interruptedWork = workInProgress.return;
329
263
  else
330
264
  interruptedWork = workInProgress, lastContextDependency = currentlyRenderingFiber$1 = null, resetHooksOnUnwind(interruptedWork), thenableState$1 = null, thenableIndexCounter$1 = 0, interruptedWork = workInProgress;
331
- for (; null !== interruptedWork; )
265
+ for (; interruptedWork !== null; )
332
266
  unwindInterruptedWork(interruptedWork.alternate, interruptedWork), interruptedWork = interruptedWork.return;
333
267
  workInProgress = null;
334
268
  }
335
269
  }
336
270
  function prepareFreshStack(root2, lanes) {
337
271
  var timeoutHandle = root2.timeoutHandle;
338
- -1 !== timeoutHandle && (root2.timeoutHandle = -1, cancelTimeout(timeoutHandle));
339
- timeoutHandle = root2.cancelPendingCommit;
340
- null !== timeoutHandle && (root2.cancelPendingCommit = null, timeoutHandle());
341
- pendingEffectsLanes = 0;
342
- resetWorkInProgressStack();
343
- workInProgressRoot = root2;
344
- workInProgress = timeoutHandle = createWorkInProgress(root2.current, null);
345
- workInProgressRootRenderLanes = lanes;
346
- workInProgressSuspendedReason = 0;
347
- workInProgressThrownValue = null;
348
- workInProgressRootDidSkipSuspendedSiblings = false;
349
- workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root2, lanes);
350
- workInProgressRootDidAttachPingListener = false;
351
- workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = workInProgressRootExitStatus = 0;
352
- workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null;
353
- workInProgressRootDidIncludeRecursiveRenderUpdate = false;
354
- entangledRenderLanes = getEntangledLanes(root2, lanes);
355
- finishQueueingConcurrentUpdates();
356
- return timeoutHandle;
272
+ return timeoutHandle !== -1 && (root2.timeoutHandle = -1, cancelTimeout(timeoutHandle)), timeoutHandle = root2.cancelPendingCommit, timeoutHandle !== null && (root2.cancelPendingCommit = null, timeoutHandle()), pendingEffectsLanes = 0, resetWorkInProgressStack(), workInProgressRoot = root2, workInProgress = timeoutHandle = createWorkInProgress(root2.current, null), workInProgressRootRenderLanes = lanes, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root2, lanes), workInProgressRootDidAttachPingListener = !1, workInProgressSuspendedRetryLanes = workInProgressDeferredLane = workInProgressRootPingedLanes = workInProgressRootInterleavedUpdatedLanes = workInProgressRootSkippedLanes = workInProgressRootExitStatus = 0, workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, entangledRenderLanes = getEntangledLanes(root2, lanes), finishQueueingConcurrentUpdates(), timeoutHandle;
357
273
  }
358
274
  function handleThrow(root2, thrownValue) {
359
- currentlyRenderingFiber = null;
360
- ReactSharedInternals.H = ContextOnlyDispatcher;
361
- thrownValue === SuspenseException || thrownValue === SuspenseActionException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 3) : thrownValue === SuspenseyCommitException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 4) : workInProgressSuspendedReason = thrownValue === SelectiveHydrationException ? 8 : null !== thrownValue && "object" === typeof thrownValue && "function" === typeof thrownValue.then ? 6 : 1;
362
- workInProgressThrownValue = thrownValue;
363
- null === workInProgress && (workInProgressRootExitStatus = 1, logUncaughtError(
275
+ currentlyRenderingFiber = null, ReactSharedInternals.H = ContextOnlyDispatcher, thrownValue === SuspenseException || thrownValue === SuspenseActionException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 3) : thrownValue === SuspenseyCommitException ? (thrownValue = getSuspendedThenable(), workInProgressSuspendedReason = 4) : workInProgressSuspendedReason = thrownValue === SelectiveHydrationException ? 8 : thrownValue !== null && typeof thrownValue == "object" && typeof thrownValue.then == "function" ? 6 : 1, workInProgressThrownValue = thrownValue, workInProgress === null && (workInProgressRootExitStatus = 1, logUncaughtError(
364
276
  root2,
365
277
  createCapturedValueAtFiber(thrownValue, root2.current)
366
278
  ));
367
279
  }
368
280
  function shouldRemainOnPreviousScreen() {
369
281
  var handler = suspenseHandlerStackCursor.current;
370
- return null === handler ? true : (workInProgressRootRenderLanes & 4194048) === workInProgressRootRenderLanes ? null === shellBoundary ? true : false : (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes || 0 !== (workInProgressRootRenderLanes & 536870912) ? handler === shellBoundary : false;
282
+ return handler === null ? !0 : (workInProgressRootRenderLanes & 4194048) === workInProgressRootRenderLanes ? shellBoundary === null : (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes || (workInProgressRootRenderLanes & 536870912) !== 0 ? handler === shellBoundary : !1;
371
283
  }
372
284
  function pushDispatcher() {
373
285
  var prevDispatcher = ReactSharedInternals.H;
374
- ReactSharedInternals.H = ContextOnlyDispatcher;
375
- return null === prevDispatcher ? ContextOnlyDispatcher : prevDispatcher;
286
+ return ReactSharedInternals.H = ContextOnlyDispatcher, prevDispatcher === null ? ContextOnlyDispatcher : prevDispatcher;
376
287
  }
377
288
  function pushAsyncDispatcher() {
378
289
  var prevAsyncDispatcher = ReactSharedInternals.A;
379
- ReactSharedInternals.A = DefaultAsyncDispatcher;
380
- return prevAsyncDispatcher;
290
+ return ReactSharedInternals.A = DefaultAsyncDispatcher, prevAsyncDispatcher;
381
291
  }
382
292
  function renderDidSuspendDelayIfPossible() {
383
- workInProgressRootExitStatus = 4;
384
- workInProgressRootDidSkipSuspendedSiblings || (workInProgressRootRenderLanes & 4194048) !== workInProgressRootRenderLanes && null !== suspenseHandlerStackCursor.current || (workInProgressRootIsPrerendering = true);
385
- 0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727) || null === workInProgressRoot || markRootSuspended(
293
+ workInProgressRootExitStatus = 4, workInProgressRootDidSkipSuspendedSiblings || (workInProgressRootRenderLanes & 4194048) !== workInProgressRootRenderLanes && suspenseHandlerStackCursor.current !== null || (workInProgressRootIsPrerendering = !0), (workInProgressRootSkippedLanes & 134217727) === 0 && (workInProgressRootInterleavedUpdatedLanes & 134217727) === 0 || workInProgressRoot === null || markRootSuspended(
386
294
  workInProgressRoot,
387
295
  workInProgressRootRenderLanes,
388
296
  workInProgressDeferredLane,
389
- false
297
+ !1
390
298
  );
391
299
  }
392
300
  function renderRootSync(root2, lanes, shouldYieldForPrerendering) {
393
301
  var prevExecutionContext = executionContext;
394
302
  executionContext |= 2;
395
303
  var prevDispatcher = pushDispatcher(), prevAsyncDispatcher = pushAsyncDispatcher();
396
- if (workInProgressRoot !== root2 || workInProgressRootRenderLanes !== lanes)
397
- workInProgressTransitions = null, prepareFreshStack(root2, lanes);
398
- lanes = false;
304
+ (workInProgressRoot !== root2 || workInProgressRootRenderLanes !== lanes) && (workInProgressTransitions = null, prepareFreshStack(root2, lanes)), lanes = !1;
399
305
  var exitStatus = workInProgressRootExitStatus;
400
306
  a: do
401
307
  try {
402
- if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
308
+ if (workInProgressSuspendedReason !== 0 && workInProgress !== null) {
403
309
  var unitOfWork = workInProgress, thrownValue = workInProgressThrownValue;
404
310
  switch (workInProgressSuspendedReason) {
405
311
  case 8:
406
- resetWorkInProgressStack();
407
- exitStatus = 6;
312
+ resetWorkInProgressStack(), exitStatus = 6;
408
313
  break a;
409
314
  case 3:
410
315
  case 2:
411
316
  case 9:
412
317
  case 6:
413
- null === suspenseHandlerStackCursor.current && (lanes = true);
318
+ suspenseHandlerStackCursor.current === null && (lanes = !0);
414
319
  var reason = workInProgressSuspendedReason;
415
- workInProgressSuspendedReason = 0;
416
- workInProgressThrownValue = null;
417
- throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason);
418
- if (shouldYieldForPrerendering && workInProgressRootIsPrerendering) {
320
+ if (workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason), shouldYieldForPrerendering && workInProgressRootIsPrerendering) {
419
321
  exitStatus = 0;
420
322
  break a;
421
323
  }
@@ -424,23 +326,16 @@
424
326
  reason = workInProgressSuspendedReason, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, reason);
425
327
  }
426
328
  }
427
- workLoopSync();
428
- exitStatus = workInProgressRootExitStatus;
329
+ workLoopSync(), exitStatus = workInProgressRootExitStatus;
429
330
  break;
430
331
  } catch (thrownValue$184) {
431
332
  handleThrow(root2, thrownValue$184);
432
333
  }
433
- while (1);
434
- lanes && root2.shellSuspendCounter++;
435
- lastContextDependency = currentlyRenderingFiber$1 = null;
436
- executionContext = prevExecutionContext;
437
- ReactSharedInternals.H = prevDispatcher;
438
- ReactSharedInternals.A = prevAsyncDispatcher;
439
- null === workInProgress && (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates());
440
- return exitStatus;
334
+ while (!0);
335
+ return lanes && root2.shellSuspendCounter++, lastContextDependency = currentlyRenderingFiber$1 = null, executionContext = prevExecutionContext, ReactSharedInternals.H = prevDispatcher, ReactSharedInternals.A = prevAsyncDispatcher, workInProgress === null && (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates()), exitStatus;
441
336
  }
442
337
  function workLoopSync() {
443
- for (; null !== workInProgress; ) performUnitOfWork(workInProgress);
338
+ for (; workInProgress !== null; ) performUnitOfWork(workInProgress);
444
339
  }
445
340
  function renderRootConcurrent(root2, lanes) {
446
341
  var prevExecutionContext = executionContext;
@@ -452,28 +347,22 @@
452
347
  );
453
348
  a: do
454
349
  try {
455
- if (0 !== workInProgressSuspendedReason && null !== workInProgress) {
350
+ if (workInProgressSuspendedReason !== 0 && workInProgress !== null) {
456
351
  lanes = workInProgress;
457
352
  var thrownValue = workInProgressThrownValue;
458
353
  b: switch (workInProgressSuspendedReason) {
459
354
  case 1:
460
- workInProgressSuspendedReason = 0;
461
- workInProgressThrownValue = null;
462
- throwAndUnwindWorkLoop(root2, lanes, thrownValue, 1);
355
+ workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 1);
463
356
  break;
464
357
  case 2:
465
358
  case 9:
466
359
  if (isThenableResolved(thrownValue)) {
467
- workInProgressSuspendedReason = 0;
468
- workInProgressThrownValue = null;
469
- replaySuspendedUnitOfWork(lanes);
360
+ workInProgressSuspendedReason = 0, workInProgressThrownValue = null, replaySuspendedUnitOfWork(lanes);
470
361
  break;
471
362
  }
472
363
  lanes = function() {
473
- 2 !== workInProgressSuspendedReason && 9 !== workInProgressSuspendedReason || workInProgressRoot !== root2 || (workInProgressSuspendedReason = 7);
474
- ensureRootIsScheduled(root2);
475
- };
476
- thrownValue.then(lanes, lanes);
364
+ workInProgressSuspendedReason !== 2 && workInProgressSuspendedReason !== 9 || workInProgressRoot !== root2 || (workInProgressSuspendedReason = 7), ensureRootIsScheduled(root2);
365
+ }, thrownValue.then(lanes, lanes);
477
366
  break a;
478
367
  case 3:
479
368
  workInProgressSuspendedReason = 7;
@@ -493,29 +382,23 @@
493
382
  case 27:
494
383
  var hostFiber = workInProgress;
495
384
  if (resource ? preloadResource(resource) : hostFiber.stateNode.complete) {
496
- workInProgressSuspendedReason = 0;
497
- workInProgressThrownValue = null;
385
+ workInProgressSuspendedReason = 0, workInProgressThrownValue = null;
498
386
  var sibling = hostFiber.sibling;
499
- if (null !== sibling) workInProgress = sibling;
387
+ if (sibling !== null) workInProgress = sibling;
500
388
  else {
501
389
  var returnFiber = hostFiber.return;
502
- null !== returnFiber ? (workInProgress = returnFiber, completeUnitOfWork(returnFiber)) : workInProgress = null;
390
+ returnFiber !== null ? (workInProgress = returnFiber, completeUnitOfWork(returnFiber)) : workInProgress = null;
503
391
  }
504
392
  break b;
505
393
  }
506
394
  }
507
- workInProgressSuspendedReason = 0;
508
- workInProgressThrownValue = null;
509
- throwAndUnwindWorkLoop(root2, lanes, thrownValue, 5);
395
+ workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 5);
510
396
  break;
511
397
  case 6:
512
- workInProgressSuspendedReason = 0;
513
- workInProgressThrownValue = null;
514
- throwAndUnwindWorkLoop(root2, lanes, thrownValue, 6);
398
+ workInProgressSuspendedReason = 0, workInProgressThrownValue = null, throwAndUnwindWorkLoop(root2, lanes, thrownValue, 6);
515
399
  break;
516
400
  case 8:
517
- resetWorkInProgressStack();
518
- workInProgressRootExitStatus = 6;
401
+ resetWorkInProgressStack(), workInProgressRootExitStatus = 6;
519
402
  break a;
520
403
  default:
521
404
  throw Error(formatProdErrorMessage(462));
@@ -526,29 +409,19 @@
526
409
  } catch (thrownValue$186) {
527
410
  handleThrow(root2, thrownValue$186);
528
411
  }
529
- while (1);
530
- lastContextDependency = currentlyRenderingFiber$1 = null;
531
- ReactSharedInternals.H = prevDispatcher;
532
- ReactSharedInternals.A = prevAsyncDispatcher;
533
- executionContext = prevExecutionContext;
534
- if (null !== workInProgress) return 0;
535
- workInProgressRoot = null;
536
- workInProgressRootRenderLanes = 0;
537
- finishQueueingConcurrentUpdates();
538
- return workInProgressRootExitStatus;
412
+ while (!0);
413
+ return lastContextDependency = currentlyRenderingFiber$1 = null, ReactSharedInternals.H = prevDispatcher, ReactSharedInternals.A = prevAsyncDispatcher, executionContext = prevExecutionContext, workInProgress !== null ? 0 : (workInProgressRoot = null, workInProgressRootRenderLanes = 0, finishQueueingConcurrentUpdates(), workInProgressRootExitStatus);
539
414
  }
540
415
  function workLoopConcurrentByScheduler() {
541
- for (; null !== workInProgress && !shouldYield(); )
416
+ for (; workInProgress !== null && !shouldYield(); )
542
417
  performUnitOfWork(workInProgress);
543
418
  }
544
419
  function performUnitOfWork(unitOfWork) {
545
420
  var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes);
546
- unitOfWork.memoizedProps = unitOfWork.pendingProps;
547
- null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next;
421
+ unitOfWork.memoizedProps = unitOfWork.pendingProps, next === null ? completeUnitOfWork(unitOfWork) : workInProgress = next;
548
422
  }
549
423
  function replaySuspendedUnitOfWork(unitOfWork) {
550
- var next = unitOfWork;
551
- var current = next.alternate;
424
+ var next = unitOfWork, current = next.alternate;
552
425
  switch (next.tag) {
553
426
  case 15:
554
427
  case 0:
@@ -574,18 +447,14 @@
574
447
  case 5:
575
448
  resetHooksOnUnwind(next);
576
449
  var fiber = next;
577
- fiber === hydrationParentFiber && (isHydrating ? (popToNextHostParent(fiber), 5 === fiber.tag && null != fiber.stateNode && (nextHydratableInstance = fiber.stateNode)) : (popToNextHostParent(fiber), isHydrating = true));
450
+ fiber === hydrationParentFiber && (isHydrating ? (popToNextHostParent(fiber), fiber.tag === 5 && fiber.stateNode != null && (nextHydratableInstance = fiber.stateNode)) : (popToNextHostParent(fiber), isHydrating = !0));
578
451
  default:
579
452
  unwindInterruptedWork(current, next), next = workInProgress = resetWorkInProgress(next, entangledRenderLanes), next = beginWork(current, next, entangledRenderLanes);
580
453
  }
581
- unitOfWork.memoizedProps = unitOfWork.pendingProps;
582
- null === next ? completeUnitOfWork(unitOfWork) : workInProgress = next;
454
+ unitOfWork.memoizedProps = unitOfWork.pendingProps, next === null ? completeUnitOfWork(unitOfWork) : workInProgress = next;
583
455
  }
584
456
  function throwAndUnwindWorkLoop(root2, unitOfWork, thrownValue, suspendedReason) {
585
- lastContextDependency = currentlyRenderingFiber$1 = null;
586
- resetHooksOnUnwind(unitOfWork);
587
- thenableState$1 = null;
588
- thenableIndexCounter$1 = 0;
457
+ lastContextDependency = currentlyRenderingFiber$1 = null, resetHooksOnUnwind(unitOfWork), thenableState$1 = null, thenableIndexCounter$1 = 0;
589
458
  var returnFiber = unitOfWork.return;
590
459
  try {
591
460
  if (throwException(
@@ -595,37 +464,26 @@
595
464
  thrownValue,
596
465
  workInProgressRootRenderLanes
597
466
  )) {
598
- workInProgressRootExitStatus = 1;
599
- logUncaughtError(
467
+ workInProgressRootExitStatus = 1, logUncaughtError(
600
468
  root2,
601
469
  createCapturedValueAtFiber(thrownValue, root2.current)
602
- );
603
- workInProgress = null;
470
+ ), workInProgress = null;
604
471
  return;
605
472
  }
606
473
  } catch (error) {
607
- if (null !== returnFiber) throw workInProgress = returnFiber, error;
608
- workInProgressRootExitStatus = 1;
609
- logUncaughtError(
474
+ if (returnFiber !== null) throw workInProgress = returnFiber, error;
475
+ workInProgressRootExitStatus = 1, logUncaughtError(
610
476
  root2,
611
477
  createCapturedValueAtFiber(thrownValue, root2.current)
612
- );
613
- workInProgress = null;
478
+ ), workInProgress = null;
614
479
  return;
615
480
  }
616
- if (unitOfWork.flags & 32768) {
617
- if (isHydrating || 1 === suspendedReason) root2 = true;
618
- else if (workInProgressRootIsPrerendering || 0 !== (workInProgressRootRenderLanes & 536870912))
619
- root2 = false;
620
- else if (workInProgressRootDidSkipSuspendedSiblings = root2 = true, 2 === suspendedReason || 9 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason)
621
- suspendedReason = suspenseHandlerStackCursor.current, null !== suspendedReason && 13 === suspendedReason.tag && (suspendedReason.flags |= 16384);
622
- unwindUnitOfWork(unitOfWork, root2);
623
- } else completeUnitOfWork(unitOfWork);
481
+ unitOfWork.flags & 32768 ? (isHydrating || suspendedReason === 1 ? root2 = !0 : workInProgressRootIsPrerendering || (workInProgressRootRenderLanes & 536870912) !== 0 ? root2 = !1 : (workInProgressRootDidSkipSuspendedSiblings = root2 = !0, (suspendedReason === 2 || suspendedReason === 9 || suspendedReason === 3 || suspendedReason === 6) && (suspendedReason = suspenseHandlerStackCursor.current, suspendedReason !== null && suspendedReason.tag === 13 && (suspendedReason.flags |= 16384))), unwindUnitOfWork(unitOfWork, root2)) : completeUnitOfWork(unitOfWork);
624
482
  }
625
483
  function completeUnitOfWork(unitOfWork) {
626
484
  var completedWork = unitOfWork;
627
485
  do {
628
- if (0 !== (completedWork.flags & 32768)) {
486
+ if ((completedWork.flags & 32768) !== 0) {
629
487
  unwindUnitOfWork(
630
488
  completedWork,
631
489
  workInProgressRootDidSkipSuspendedSiblings
@@ -638,53 +496,42 @@
638
496
  completedWork,
639
497
  entangledRenderLanes
640
498
  );
641
- if (null !== next) {
499
+ if (next !== null) {
642
500
  workInProgress = next;
643
501
  return;
644
502
  }
645
- completedWork = completedWork.sibling;
646
- if (null !== completedWork) {
503
+ if (completedWork = completedWork.sibling, completedWork !== null) {
647
504
  workInProgress = completedWork;
648
505
  return;
649
506
  }
650
507
  workInProgress = completedWork = unitOfWork;
651
- } while (null !== completedWork);
652
- 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5);
508
+ } while (completedWork !== null);
509
+ workInProgressRootExitStatus === 0 && (workInProgressRootExitStatus = 5);
653
510
  }
654
511
  function unwindUnitOfWork(unitOfWork, skipSiblings) {
655
512
  do {
656
513
  var next = unwindWork(unitOfWork.alternate, unitOfWork);
657
- if (null !== next) {
658
- next.flags &= 32767;
659
- workInProgress = next;
514
+ if (next !== null) {
515
+ next.flags &= 32767, workInProgress = next;
660
516
  return;
661
517
  }
662
- next = unitOfWork.return;
663
- null !== next && (next.flags |= 32768, next.subtreeFlags = 0, next.deletions = null);
664
- if (!skipSiblings && (unitOfWork = unitOfWork.sibling, null !== unitOfWork)) {
518
+ if (next = unitOfWork.return, next !== null && (next.flags |= 32768, next.subtreeFlags = 0, next.deletions = null), !skipSiblings && (unitOfWork = unitOfWork.sibling, unitOfWork !== null)) {
665
519
  workInProgress = unitOfWork;
666
520
  return;
667
521
  }
668
522
  workInProgress = unitOfWork = next;
669
- } while (null !== unitOfWork);
670
- workInProgressRootExitStatus = 6;
671
- workInProgress = null;
523
+ } while (unitOfWork !== null);
524
+ workInProgressRootExitStatus = 6, workInProgress = null;
672
525
  }
673
526
  function completeRoot(root2, finishedWork, lanes, recoverableErrors, transitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, suspendedRetryLanes, didSkipSuspendedSiblings, exitStatus, suspendedState) {
674
527
  root2.cancelPendingCommit = null;
675
528
  do
676
529
  flushPendingEffects();
677
- while (0 !== pendingEffectsStatus);
678
- if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327));
679
- if (null !== finishedWork) {
530
+ while (pendingEffectsStatus !== 0);
531
+ if ((executionContext & 6) !== 0) throw Error(formatProdErrorMessage(327));
532
+ if (finishedWork !== null) {
680
533
  if (finishedWork === root2.current) throw Error(formatProdErrorMessage(177));
681
- root2 === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0);
682
- pendingFinishedWork = finishedWork;
683
- pendingEffectsRoot = root2;
684
- pendingEffectsLanes = lanes;
685
- pendingPassiveTransitions = transitions;
686
- pendingRecoverableErrors = recoverableErrors;
687
- commitRoot(
534
+ root2 === workInProgressRoot && (workInProgress = workInProgressRoot = null, workInProgressRootRenderLanes = 0), pendingFinishedWork = finishedWork, pendingEffectsRoot = root2, pendingEffectsLanes = lanes, pendingPassiveTransitions = transitions, pendingRecoverableErrors = recoverableErrors, commitRoot(
688
535
  root2,
689
536
  finishedWork,
690
537
  lanes,
@@ -697,39 +544,24 @@
697
544
  }
698
545
  function commitRoot(root2, finishedWork, lanes, spawnedLane, updatedLanes, suspendedRetryLanes, suspendedState) {
699
546
  var remainingLanes = finishedWork.lanes | finishedWork.childLanes;
700
- pendingEffectsRemainingLanes = remainingLanes;
701
- remainingLanes |= concurrentlyUpdatedLanes;
702
- markRootFinished(
547
+ if (pendingEffectsRemainingLanes = remainingLanes, remainingLanes |= concurrentlyUpdatedLanes, markRootFinished(
703
548
  root2,
704
549
  lanes,
705
550
  remainingLanes,
706
551
  spawnedLane,
707
552
  updatedLanes,
708
553
  suspendedRetryLanes
709
- );
710
- pendingViewTransitionEvents = null;
711
- (lanes & 335544064) === lanes ? (pendingTransitionTypes = claimQueuedTransitionTypes(root2), spawnedLane = 10262) : (pendingTransitionTypes = null, spawnedLane = 10256);
712
- 0 !== (finishedWork.subtreeFlags & spawnedLane) || 0 !== (finishedWork.flags & spawnedLane) ? (root2.callbackNode = null, root2.callbackPriority = 0, scheduleCallback$1(NormalPriority$1, function() {
713
- flushPassiveEffects();
714
- return null;
715
- })) : (root2.callbackNode = null, root2.callbackPriority = 0);
716
- shouldStartViewTransition = false;
717
- spawnedLane = 0 !== (finishedWork.flags & 13878);
718
- if (0 !== (finishedWork.subtreeFlags & 13878) || spawnedLane) {
719
- spawnedLane = ReactSharedInternals.T;
720
- ReactSharedInternals.T = null;
721
- updatedLanes = ReactDOMSharedInternals.p;
722
- ReactDOMSharedInternals.p = 2;
723
- suspendedRetryLanes = executionContext;
724
- executionContext |= 4;
554
+ ), pendingViewTransitionEvents = null, (lanes & 335544064) === lanes ? (pendingTransitionTypes = claimQueuedTransitionTypes(root2), spawnedLane = 10262) : (pendingTransitionTypes = null, spawnedLane = 10256), (finishedWork.subtreeFlags & spawnedLane) !== 0 || (finishedWork.flags & spawnedLane) !== 0 ? (root2.callbackNode = null, root2.callbackPriority = 0, scheduleCallback$1(NormalPriority$1, function() {
555
+ return flushPassiveEffects(), null;
556
+ })) : (root2.callbackNode = null, root2.callbackPriority = 0), shouldStartViewTransition = !1, spawnedLane = (finishedWork.flags & 13878) !== 0, (finishedWork.subtreeFlags & 13878) !== 0 || spawnedLane) {
557
+ spawnedLane = ReactSharedInternals.T, ReactSharedInternals.T = null, updatedLanes = ReactDOMSharedInternals.p, ReactDOMSharedInternals.p = 2, suspendedRetryLanes = executionContext, executionContext |= 4;
725
558
  try {
726
559
  commitBeforeMutationEffects(root2, finishedWork, lanes);
727
560
  } finally {
728
561
  executionContext = suspendedRetryLanes, ReactDOMSharedInternals.p = updatedLanes, ReactSharedInternals.T = spawnedLane;
729
562
  }
730
563
  }
731
- pendingEffectsStatus = 1;
732
- shouldStartViewTransition ? pendingViewTransition = startViewTransition(
564
+ pendingEffectsStatus = 1, shouldStartViewTransition ? pendingViewTransition = startViewTransition(
733
565
  suspendedState,
734
566
  root2.containerInfo,
735
567
  pendingTransitionTypes,
@@ -744,38 +576,34 @@
744
576
  ) : (flushMutationEffects(), flushLayoutEffects(), flushSpawnedWork());
745
577
  }
746
578
  function reportViewTransitionError(error) {
747
- if (0 !== pendingEffectsStatus) {
579
+ if (pendingEffectsStatus !== 0) {
748
580
  var onRecoverableError = pendingEffectsRoot.onRecoverableError;
749
581
  onRecoverableError(error, { componentStack: null });
750
582
  }
751
583
  }
752
584
  function flushAfterMutationEffects() {
753
- 3 === pendingEffectsStatus && (pendingEffectsStatus = 0, commitAfterMutationEffectsOnFiber(pendingFinishedWork, pendingEffectsRoot), pendingEffectsStatus = 4);
585
+ pendingEffectsStatus === 3 && (pendingEffectsStatus = 0, commitAfterMutationEffectsOnFiber(pendingFinishedWork, pendingEffectsRoot), pendingEffectsStatus = 4);
754
586
  }
755
587
  function flushMutationEffects() {
756
- if (1 === pendingEffectsStatus) {
588
+ if (pendingEffectsStatus === 1) {
757
589
  pendingEffectsStatus = 0;
758
- var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
759
- if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {
760
- rootMutationHasEffect = ReactSharedInternals.T;
761
- ReactSharedInternals.T = null;
590
+ var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, rootMutationHasEffect = (finishedWork.flags & 13878) !== 0;
591
+ if ((finishedWork.subtreeFlags & 13878) !== 0 || rootMutationHasEffect) {
592
+ rootMutationHasEffect = ReactSharedInternals.T, ReactSharedInternals.T = null;
762
593
  var previousPriority = ReactDOMSharedInternals.p;
763
594
  ReactDOMSharedInternals.p = 2;
764
595
  var prevExecutionContext = executionContext;
765
596
  executionContext |= 4;
766
597
  try {
767
- inUpdateViewTransition = rootViewTransitionAffected = false;
768
- commitMutationEffectsOnFiber(finishedWork, root2, lanes);
769
- lanes = selectionInformation;
598
+ inUpdateViewTransition = rootViewTransitionAffected = !1, commitMutationEffectsOnFiber(finishedWork, root2, lanes), lanes = selectionInformation;
770
599
  var curFocusedElem = getActiveElementDeep(root2.containerInfo), priorFocusedElem = lanes.focusedElem, priorSelectionRange = lanes.selectionRange;
771
600
  if (curFocusedElem !== priorFocusedElem && priorFocusedElem && priorFocusedElem.ownerDocument && containsNode(
772
601
  priorFocusedElem.ownerDocument.documentElement,
773
602
  priorFocusedElem
774
603
  )) {
775
- if (null !== priorSelectionRange && hasSelectionCapabilities(priorFocusedElem)) {
604
+ if (priorSelectionRange !== null && hasSelectionCapabilities(priorFocusedElem)) {
776
605
  var start2 = priorSelectionRange.start, end = priorSelectionRange.end;
777
- void 0 === end && (end = start2);
778
- if ("selectionStart" in priorFocusedElem)
606
+ if (end === void 0 && (end = start2), "selectionStart" in priorFocusedElem)
779
607
  priorFocusedElem.selectionStart = start2, priorFocusedElem.selectionEnd = Math.min(
780
608
  end,
781
609
  priorFocusedElem.value.length
@@ -783,7 +611,7 @@
783
611
  else {
784
612
  var doc = priorFocusedElem.ownerDocument || document, win = doc && doc.defaultView || window;
785
613
  if (win.getSelection) {
786
- var selection = win.getSelection(), length = priorFocusedElem.textContent.length, start$jscomp$0 = Math.min(priorSelectionRange.start, length), end$jscomp$0 = void 0 === priorSelectionRange.end ? start$jscomp$0 : Math.min(priorSelectionRange.end, length);
614
+ var selection = win.getSelection(), length = priorFocusedElem.textContent.length, start$jscomp$0 = Math.min(priorSelectionRange.start, length), end$jscomp$0 = priorSelectionRange.end === void 0 ? start$jscomp$0 : Math.min(priorSelectionRange.end, length);
787
615
  !selection.extend && start$jscomp$0 > end$jscomp$0 && (curFocusedElem = end$jscomp$0, end$jscomp$0 = start$jscomp$0, start$jscomp$0 = curFocusedElem);
788
616
  var startMarker = getNodeForCharacterOffset(
789
617
  priorFocusedElem,
@@ -792,46 +620,38 @@
792
620
  priorFocusedElem,
793
621
  end$jscomp$0
794
622
  );
795
- if (startMarker && endMarker && (1 !== selection.rangeCount || selection.anchorNode !== startMarker.node || selection.anchorOffset !== startMarker.offset || selection.focusNode !== endMarker.node || selection.focusOffset !== endMarker.offset)) {
623
+ if (startMarker && endMarker && (selection.rangeCount !== 1 || selection.anchorNode !== startMarker.node || selection.anchorOffset !== startMarker.offset || selection.focusNode !== endMarker.node || selection.focusOffset !== endMarker.offset)) {
796
624
  var range = doc.createRange();
797
- range.setStart(startMarker.node, startMarker.offset);
798
- selection.removeAllRanges();
799
- start$jscomp$0 > end$jscomp$0 ? (selection.addRange(range), selection.extend(endMarker.node, endMarker.offset)) : (range.setEnd(endMarker.node, endMarker.offset), selection.addRange(range));
625
+ range.setStart(startMarker.node, startMarker.offset), selection.removeAllRanges(), start$jscomp$0 > end$jscomp$0 ? (selection.addRange(range), selection.extend(endMarker.node, endMarker.offset)) : (range.setEnd(endMarker.node, endMarker.offset), selection.addRange(range));
800
626
  }
801
627
  }
802
628
  }
803
629
  }
804
- doc = [];
805
- for (selection = priorFocusedElem; selection = selection.parentNode; )
806
- 1 === selection.nodeType && doc.push({
630
+ for (doc = [], selection = priorFocusedElem; selection = selection.parentNode; )
631
+ selection.nodeType === 1 && doc.push({
807
632
  element: selection,
808
633
  left: selection.scrollLeft,
809
634
  top: selection.scrollTop
810
635
  });
811
- "function" === typeof priorFocusedElem.focus && priorFocusedElem.focus();
812
- for (priorFocusedElem = 0; priorFocusedElem < doc.length; priorFocusedElem++) {
636
+ for (typeof priorFocusedElem.focus == "function" && priorFocusedElem.focus(), priorFocusedElem = 0; priorFocusedElem < doc.length; priorFocusedElem++) {
813
637
  var info = doc[priorFocusedElem];
814
- info.element.scrollLeft = info.left;
815
- info.element.scrollTop = info.top;
638
+ info.element.scrollLeft = info.left, info.element.scrollTop = info.top;
816
639
  }
817
640
  }
818
- _enabled = !!eventsEnabled;
819
- selectionInformation = eventsEnabled = null;
641
+ _enabled = !!eventsEnabled, selectionInformation = eventsEnabled = null;
820
642
  } finally {
821
643
  executionContext = prevExecutionContext, ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = rootMutationHasEffect;
822
644
  }
823
645
  }
824
- root2.current = finishedWork;
825
- pendingEffectsStatus = 2;
646
+ root2.current = finishedWork, pendingEffectsStatus = 2;
826
647
  }
827
648
  }
828
649
  function flushLayoutEffects() {
829
- if (2 === pendingEffectsStatus) {
650
+ if (pendingEffectsStatus === 2) {
830
651
  pendingEffectsStatus = 0;
831
- var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
832
- if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {
833
- rootHasLayoutEffect = ReactSharedInternals.T;
834
- ReactSharedInternals.T = null;
652
+ var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, rootHasLayoutEffect = (finishedWork.flags & 8772) !== 0;
653
+ if ((finishedWork.subtreeFlags & 8772) !== 0 || rootHasLayoutEffect) {
654
+ rootHasLayoutEffect = ReactSharedInternals.T, ReactSharedInternals.T = null;
835
655
  var previousPriority = ReactDOMSharedInternals.p;
836
656
  ReactDOMSharedInternals.p = 2;
837
657
  var prevExecutionContext = executionContext;
@@ -846,32 +666,23 @@
846
666
  }
847
667
  }
848
668
  function flushSpawnedWork() {
849
- if (4 === pendingEffectsStatus || 3 === pendingEffectsStatus) {
669
+ if (pendingEffectsStatus === 4 || pendingEffectsStatus === 3) {
850
670
  pendingEffectsStatus = 0;
851
671
  var committedViewTransition = pendingViewTransition;
852
- pendingViewTransition = null;
853
- requestPaint();
672
+ pendingViewTransition = null, requestPaint();
854
673
  var root2 = pendingEffectsRoot, finishedWork = pendingFinishedWork, lanes = pendingEffectsLanes, recoverableErrors = pendingRecoverableErrors, passiveSubtreeMask = (lanes & 335544064) === lanes ? 10262 : 10256;
855
- 0 !== (finishedWork.subtreeFlags & passiveSubtreeMask) || 0 !== (finishedWork.flags & passiveSubtreeMask) ? pendingEffectsStatus = 5 : (pendingEffectsStatus = 0, pendingFinishedWork = pendingEffectsRoot = null, releaseRootPooledCache(root2, root2.pendingLanes));
856
- passiveSubtreeMask = root2.pendingLanes;
857
- 0 === passiveSubtreeMask && (legacyErrorBoundariesThatAlreadyFailed = null);
858
- lanesToEventPriority(lanes);
859
- finishedWork = finishedWork.stateNode;
860
- if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
674
+ if ((finishedWork.subtreeFlags & passiveSubtreeMask) !== 0 || (finishedWork.flags & passiveSubtreeMask) !== 0 ? pendingEffectsStatus = 5 : (pendingEffectsStatus = 0, pendingFinishedWork = pendingEffectsRoot = null, releaseRootPooledCache(root2, root2.pendingLanes)), passiveSubtreeMask = root2.pendingLanes, passiveSubtreeMask === 0 && (legacyErrorBoundariesThatAlreadyFailed = null), lanesToEventPriority(lanes), finishedWork = finishedWork.stateNode, injectedHook && typeof injectedHook.onCommitFiberRoot == "function")
861
675
  try {
862
676
  injectedHook.onCommitFiberRoot(
863
677
  rendererID,
864
678
  finishedWork,
865
679
  void 0,
866
- 128 === (finishedWork.current.flags & 128)
680
+ (finishedWork.current.flags & 128) === 128
867
681
  );
868
- } catch (err) {
682
+ } catch {
869
683
  }
870
- if (null !== recoverableErrors) {
871
- finishedWork = ReactSharedInternals.T;
872
- passiveSubtreeMask = ReactDOMSharedInternals.p;
873
- ReactDOMSharedInternals.p = 2;
874
- ReactSharedInternals.T = null;
684
+ if (recoverableErrors !== null) {
685
+ finishedWork = ReactSharedInternals.T, passiveSubtreeMask = ReactDOMSharedInternals.p, ReactDOMSharedInternals.p = 2, ReactSharedInternals.T = null;
875
686
  try {
876
687
  for (var onRecoverableError = root2.onRecoverableError, i = 0; i < recoverableErrors.length; i++) {
877
688
  var recoverableError = recoverableErrors[i];
@@ -883,92 +694,64 @@
883
694
  ReactSharedInternals.T = finishedWork, ReactDOMSharedInternals.p = passiveSubtreeMask;
884
695
  }
885
696
  }
886
- recoverableErrors = pendingViewTransitionEvents;
887
- onRecoverableError = pendingTransitionTypes;
888
- pendingTransitionTypes = null;
889
- if (null !== recoverableErrors && (pendingViewTransitionEvents = null, null === onRecoverableError && (onRecoverableError = []), null !== committedViewTransition))
697
+ if (recoverableErrors = pendingViewTransitionEvents, onRecoverableError = pendingTransitionTypes, pendingTransitionTypes = null, recoverableErrors !== null && (pendingViewTransitionEvents = null, onRecoverableError === null && (onRecoverableError = []), committedViewTransition !== null))
890
698
  for (recoverableError = 0; recoverableError < recoverableErrors.length; recoverableError++)
891
699
  finishedWork = (0, recoverableErrors[recoverableError])(
892
700
  onRecoverableError
893
- ), void 0 !== finishedWork && committedViewTransition.finished.finally(finishedWork);
894
- 0 !== (pendingEffectsLanes & 3) && flushPendingEffects();
895
- ensureRootIsScheduled(root2);
896
- passiveSubtreeMask = root2.pendingLanes;
897
- 0 !== (lanes & 261930) && 0 !== (passiveSubtreeMask & 42) ? root2 === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root2) : (nestedUpdateCount = 0, rootWithNestedUpdates = null);
898
- flushSyncWorkAcrossRoots_impl(0, false);
701
+ ), finishedWork !== void 0 && committedViewTransition.finished.finally(finishedWork);
702
+ (pendingEffectsLanes & 3) !== 0 && flushPendingEffects(), ensureRootIsScheduled(root2), passiveSubtreeMask = root2.pendingLanes, (lanes & 261930) !== 0 && (passiveSubtreeMask & 42) !== 0 ? root2 === rootWithNestedUpdates ? nestedUpdateCount++ : (nestedUpdateCount = 0, rootWithNestedUpdates = root2) : (nestedUpdateCount = 0, rootWithNestedUpdates = null), flushSyncWorkAcrossRoots_impl(0, !1);
899
703
  }
900
704
  }
901
705
  function releaseRootPooledCache(root2, remainingLanes) {
902
- 0 === (root2.pooledCacheLanes &= remainingLanes) && (remainingLanes = root2.pooledCache, null != remainingLanes && (root2.pooledCache = null, releaseCache(remainingLanes)));
706
+ (root2.pooledCacheLanes &= remainingLanes) === 0 && (remainingLanes = root2.pooledCache, remainingLanes != null && (root2.pooledCache = null, releaseCache(remainingLanes)));
903
707
  }
904
708
  function flushPendingEffects() {
905
- null !== pendingViewTransition && (pendingViewTransition.skipTransition(), pendingViewTransition = null);
906
- flushMutationEffects();
907
- flushLayoutEffects();
908
- flushSpawnedWork();
909
- return flushPassiveEffects();
709
+ return pendingViewTransition !== null && (pendingViewTransition.skipTransition(), pendingViewTransition = null), flushMutationEffects(), flushLayoutEffects(), flushSpawnedWork(), flushPassiveEffects();
910
710
  }
911
711
  function flushPassiveEffects() {
912
- if (5 !== pendingEffectsStatus) return false;
712
+ if (pendingEffectsStatus !== 5) return !1;
913
713
  var root2 = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes;
914
714
  pendingEffectsRemainingLanes = 0;
915
715
  var renderPriority = lanesToEventPriority(pendingEffectsLanes), prevTransition = ReactSharedInternals.T, previousPriority = ReactDOMSharedInternals.p;
916
716
  try {
917
- ReactDOMSharedInternals.p = 32 > renderPriority ? 32 : renderPriority;
918
- ReactSharedInternals.T = null;
919
- renderPriority = pendingPassiveTransitions;
920
- pendingPassiveTransitions = null;
717
+ ReactDOMSharedInternals.p = 32 > renderPriority ? 32 : renderPriority, ReactSharedInternals.T = null, renderPriority = pendingPassiveTransitions, pendingPassiveTransitions = null;
921
718
  var root$jscomp$0 = pendingEffectsRoot, lanes = pendingEffectsLanes;
922
- pendingEffectsStatus = 0;
923
- pendingFinishedWork = pendingEffectsRoot = null;
924
- pendingEffectsLanes = 0;
925
- if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(331));
719
+ if (pendingEffectsStatus = 0, pendingFinishedWork = pendingEffectsRoot = null, pendingEffectsLanes = 0, (executionContext & 6) !== 0) throw Error(formatProdErrorMessage(331));
926
720
  var prevExecutionContext = executionContext;
927
- executionContext |= 4;
928
- commitPassiveUnmountOnFiber(root$jscomp$0.current);
929
- commitPassiveMountOnFiber(
721
+ if (executionContext |= 4, commitPassiveUnmountOnFiber(root$jscomp$0.current), commitPassiveMountOnFiber(
930
722
  root$jscomp$0,
931
723
  root$jscomp$0.current,
932
724
  lanes,
933
725
  renderPriority
934
- );
935
- executionContext = prevExecutionContext;
936
- flushSyncWorkAcrossRoots_impl(0, false);
937
- if (injectedHook && "function" === typeof injectedHook.onPostCommitFiberRoot)
726
+ ), executionContext = prevExecutionContext, flushSyncWorkAcrossRoots_impl(0, !1), injectedHook && typeof injectedHook.onPostCommitFiberRoot == "function")
938
727
  try {
939
728
  injectedHook.onPostCommitFiberRoot(rendererID, root$jscomp$0);
940
- } catch (err) {
729
+ } catch {
941
730
  }
942
- return true;
731
+ return !0;
943
732
  } finally {
944
733
  ReactDOMSharedInternals.p = previousPriority, ReactSharedInternals.T = prevTransition, releaseRootPooledCache(root2, remainingLanes);
945
734
  }
946
735
  }
947
736
  function captureCommitPhaseErrorOnRoot(rootFiber, sourceFiber, error) {
948
- sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
949
- sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2);
950
- rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2);
951
- null !== rootFiber && (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber));
737
+ sourceFiber = createCapturedValueAtFiber(error, sourceFiber), sourceFiber = createRootErrorUpdate(rootFiber.stateNode, sourceFiber, 2), rootFiber = enqueueUpdate(rootFiber, sourceFiber, 2), rootFiber !== null && (markRootUpdated$1(rootFiber, 2), ensureRootIsScheduled(rootFiber));
952
738
  }
953
739
  function captureCommitPhaseError(sourceFiber, nearestMountedAncestor, error) {
954
- if (3 === sourceFiber.tag)
740
+ if (sourceFiber.tag === 3)
955
741
  captureCommitPhaseErrorOnRoot(sourceFiber, sourceFiber, error);
956
742
  else
957
- for (; null !== nearestMountedAncestor; ) {
958
- if (3 === nearestMountedAncestor.tag) {
743
+ for (; nearestMountedAncestor !== null; ) {
744
+ if (nearestMountedAncestor.tag === 3) {
959
745
  captureCommitPhaseErrorOnRoot(
960
746
  nearestMountedAncestor,
961
747
  sourceFiber,
962
748
  error
963
749
  );
964
750
  break;
965
- } else if (1 === nearestMountedAncestor.tag) {
751
+ } else if (nearestMountedAncestor.tag === 1) {
966
752
  var instance = nearestMountedAncestor.stateNode;
967
- if ("function" === typeof nearestMountedAncestor.type.getDerivedStateFromError || "function" === typeof instance.componentDidCatch && (null === legacyErrorBoundariesThatAlreadyFailed || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) {
968
- sourceFiber = createCapturedValueAtFiber(error, sourceFiber);
969
- error = createClassErrorUpdate(2);
970
- instance = enqueueUpdate(nearestMountedAncestor, error, 2);
971
- null !== instance && (initializeClassErrorUpdate(
753
+ if (typeof nearestMountedAncestor.type.getDerivedStateFromError == "function" || typeof instance.componentDidCatch == "function" && (legacyErrorBoundariesThatAlreadyFailed === null || !legacyErrorBoundariesThatAlreadyFailed.has(instance))) {
754
+ sourceFiber = createCapturedValueAtFiber(error, sourceFiber), error = createClassErrorUpdate(2), instance = enqueueUpdate(nearestMountedAncestor, error, 2), instance !== null && (initializeClassErrorUpdate(
972
755
  error,
973
756
  instance,
974
757
  nearestMountedAncestor,
@@ -982,40 +765,32 @@
982
765
  }
983
766
  function attachPingListener(root2, wakeable, lanes) {
984
767
  var pingCache = root2.pingCache;
985
- if (null === pingCache) {
768
+ if (pingCache === null) {
986
769
  pingCache = root2.pingCache = new PossiblyWeakMap();
987
770
  var threadIDs = /* @__PURE__ */ new Set();
988
771
  pingCache.set(wakeable, threadIDs);
989
772
  } else
990
- threadIDs = pingCache.get(wakeable), void 0 === threadIDs && (threadIDs = /* @__PURE__ */ new Set(), pingCache.set(wakeable, threadIDs));
991
- threadIDs.has(lanes) || (workInProgressRootDidAttachPingListener = true, threadIDs.add(lanes), root2 = pingSuspendedRoot.bind(null, root2, wakeable, lanes), wakeable.then(root2, root2));
773
+ threadIDs = pingCache.get(wakeable), threadIDs === void 0 && (threadIDs = /* @__PURE__ */ new Set(), pingCache.set(wakeable, threadIDs));
774
+ threadIDs.has(lanes) || (workInProgressRootDidAttachPingListener = !0, threadIDs.add(lanes), root2 = pingSuspendedRoot.bind(null, root2, wakeable, lanes), wakeable.then(root2, root2));
992
775
  }
993
776
  function pingSuspendedRoot(root2, wakeable, pingedLanes) {
994
777
  var pingCache = root2.pingCache;
995
- null !== pingCache && pingCache.delete(wakeable);
996
- root2.pingedLanes |= root2.suspendedLanes & pingedLanes;
997
- root2.warmLanes &= ~pingedLanes;
998
- workInProgressRoot === root2 && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && (4 === workInProgressRootExitStatus || 3 === workInProgressRootExitStatus && (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes && 300 > now() - globalMostRecentFallbackTime ? 0 === (executionContext & 2) ? prepareFreshStack(root2, 0) : workInProgressRootPingedLanes |= pingedLanes : workInProgressRootPingedLanes |= pingedLanes, workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes && (workInProgressSuspendedRetryLanes = 0));
999
- ensureRootIsScheduled(root2);
778
+ pingCache !== null && pingCache.delete(wakeable), root2.pingedLanes |= root2.suspendedLanes & pingedLanes, root2.warmLanes &= ~pingedLanes, workInProgressRoot === root2 && (workInProgressRootRenderLanes & pingedLanes) === pingedLanes && ((workInProgressRootExitStatus === 4 || workInProgressRootExitStatus === 3 && (workInProgressRootRenderLanes & 62914560) === workInProgressRootRenderLanes && 300 > now() - globalMostRecentFallbackTime) && (executionContext & 2) === 0 ? prepareFreshStack(root2, 0) : workInProgressRootPingedLanes |= pingedLanes, workInProgressSuspendedRetryLanes === workInProgressRootRenderLanes && (workInProgressSuspendedRetryLanes = 0)), ensureRootIsScheduled(root2);
1000
779
  }
1001
780
  function retryTimedOutBoundary(boundaryFiber, retryLane) {
1002
- 0 === retryLane && (retryLane = claimNextRetryLane());
1003
- boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane);
1004
- null !== boundaryFiber && (markRootUpdated$1(boundaryFiber, retryLane), ensureRootIsScheduled(boundaryFiber));
781
+ retryLane === 0 && (retryLane = claimNextRetryLane()), boundaryFiber = enqueueConcurrentRenderForLane(boundaryFiber, retryLane), boundaryFiber !== null && (markRootUpdated$1(boundaryFiber, retryLane), ensureRootIsScheduled(boundaryFiber));
1005
782
  }
1006
783
  function retryDehydratedSuspenseBoundary(boundaryFiber) {
1007
784
  var suspenseState = boundaryFiber.memoizedState, retryLane = 0;
1008
- null !== suspenseState && (retryLane = suspenseState.retryLane);
1009
- retryTimedOutBoundary(boundaryFiber, retryLane);
785
+ suspenseState !== null && (retryLane = suspenseState.retryLane), retryTimedOutBoundary(boundaryFiber, retryLane);
1010
786
  }
1011
787
  function resolveRetryWakeable(boundaryFiber, wakeable) {
1012
788
  var retryLane = 0;
1013
789
  switch (boundaryFiber.tag) {
1014
790
  case 31:
1015
791
  case 13:
1016
- var retryCache = boundaryFiber.stateNode;
1017
- var suspenseState = boundaryFiber.memoizedState;
1018
- null !== suspenseState && (retryLane = suspenseState.retryLane);
792
+ var retryCache = boundaryFiber.stateNode, suspenseState = boundaryFiber.memoizedState;
793
+ suspenseState !== null && (retryLane = suspenseState.retryLane);
1019
794
  break;
1020
795
  case 19:
1021
796
  retryCache = boundaryFiber.stateNode;
@@ -1026,94 +801,68 @@
1026
801
  default:
1027
802
  throw Error(formatProdErrorMessage(314));
1028
803
  }
1029
- null !== retryCache && retryCache.delete(wakeable);
1030
- retryTimedOutBoundary(boundaryFiber, retryLane);
804
+ retryCache !== null && retryCache.delete(wakeable), retryTimedOutBoundary(boundaryFiber, retryLane);
1031
805
  }
1032
806
  function scheduleCallback$1(priorityLevel, callback) {
1033
807
  return scheduleCallback$3(priorityLevel, callback);
1034
808
  }
1035
- var firstScheduledRoot = null;
1036
- var lastScheduledRoot = null;
1037
- var didScheduleMicrotask = false;
1038
- var mightHavePendingSyncWork = false;
1039
- var isFlushingWork = false;
1040
- var currentEventTransitionLane = 0;
809
+ var firstScheduledRoot = null, lastScheduledRoot = null, didScheduleMicrotask = !1, mightHavePendingSyncWork = !1, isFlushingWork = !1, currentEventTransitionLane = 0;
1041
810
  function ensureRootIsScheduled(root2) {
1042
- root2 !== lastScheduledRoot && null === root2.next && (null === lastScheduledRoot ? firstScheduledRoot = lastScheduledRoot = root2 : lastScheduledRoot = lastScheduledRoot.next = root2);
1043
- mightHavePendingSyncWork = true;
1044
- didScheduleMicrotask || (didScheduleMicrotask = true, scheduleImmediateRootScheduleTask());
811
+ root2 !== lastScheduledRoot && root2.next === null && (lastScheduledRoot === null ? firstScheduledRoot = lastScheduledRoot = root2 : lastScheduledRoot = lastScheduledRoot.next = root2), mightHavePendingSyncWork = !0, didScheduleMicrotask || (didScheduleMicrotask = !0, scheduleImmediateRootScheduleTask());
1045
812
  }
1046
813
  function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
1047
814
  if (!isFlushingWork && mightHavePendingSyncWork) {
1048
- isFlushingWork = true;
1049
- do {
1050
- var didPerformSomeWork = false;
1051
- for (var root$190 = firstScheduledRoot; null !== root$190; ) {
815
+ isFlushingWork = !0;
816
+ do
817
+ for (var didPerformSomeWork = !1, root$190 = firstScheduledRoot; root$190 !== null; ) {
1052
818
  if (!onlyLegacy)
1053
- if (0 !== syncTransitionLanes) {
819
+ if (syncTransitionLanes !== 0) {
1054
820
  var pendingLanes = root$190.pendingLanes;
1055
- if (0 === pendingLanes) var JSCompiler_inline_result = 0;
821
+ if (pendingLanes === 0) var JSCompiler_inline_result = 0;
1056
822
  else {
1057
823
  var suspendedLanes = root$190.suspendedLanes, pingedLanes = root$190.pingedLanes;
1058
- JSCompiler_inline_result = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1;
1059
- JSCompiler_inline_result &= pendingLanes & ~(suspendedLanes & ~pingedLanes);
1060
- JSCompiler_inline_result = JSCompiler_inline_result & 201326741 ? JSCompiler_inline_result & 201326741 | 1 : JSCompiler_inline_result ? JSCompiler_inline_result | 2 : 0;
824
+ JSCompiler_inline_result = (1 << 31 - clz32(42 | syncTransitionLanes) + 1) - 1, JSCompiler_inline_result &= pendingLanes & ~(suspendedLanes & ~pingedLanes), JSCompiler_inline_result = JSCompiler_inline_result & 201326741 ? JSCompiler_inline_result & 201326741 | 1 : JSCompiler_inline_result ? JSCompiler_inline_result | 2 : 0;
1061
825
  }
1062
- 0 !== JSCompiler_inline_result && (didPerformSomeWork = true, performSyncWorkOnRoot(root$190, JSCompiler_inline_result));
826
+ JSCompiler_inline_result !== 0 && (didPerformSomeWork = !0, performSyncWorkOnRoot(root$190, JSCompiler_inline_result));
1063
827
  } else
1064
828
  JSCompiler_inline_result = workInProgressRootRenderLanes, JSCompiler_inline_result = getNextLanes(
1065
829
  root$190,
1066
830
  root$190 === workInProgressRoot ? JSCompiler_inline_result : 0,
1067
- null !== root$190.cancelPendingCommit || -1 !== root$190.timeoutHandle
1068
- ), 0 === (JSCompiler_inline_result & 3) || checkIfRootIsPrerendering(root$190, JSCompiler_inline_result) || (didPerformSomeWork = true, performSyncWorkOnRoot(root$190, JSCompiler_inline_result));
831
+ root$190.cancelPendingCommit !== null || root$190.timeoutHandle !== -1
832
+ ), (JSCompiler_inline_result & 3) === 0 || checkIfRootIsPrerendering(root$190, JSCompiler_inline_result) || (didPerformSomeWork = !0, performSyncWorkOnRoot(root$190, JSCompiler_inline_result));
1069
833
  root$190 = root$190.next;
1070
834
  }
1071
- } while (didPerformSomeWork);
1072
- isFlushingWork = false;
835
+ while (didPerformSomeWork);
836
+ isFlushingWork = !1;
1073
837
  }
1074
838
  }
1075
839
  function processRootScheduleInImmediateTask() {
1076
840
  processRootScheduleInMicrotask();
1077
841
  }
1078
842
  function processRootScheduleInMicrotask() {
1079
- mightHavePendingSyncWork = didScheduleMicrotask = false;
843
+ mightHavePendingSyncWork = didScheduleMicrotask = !1;
1080
844
  var syncTransitionLanes = 0;
1081
- 0 !== currentEventTransitionLane && shouldAttemptEagerTransition() && (syncTransitionLanes = currentEventTransitionLane);
1082
- for (var currentTime = now(), prev = null, root2 = firstScheduledRoot; null !== root2; ) {
845
+ currentEventTransitionLane !== 0 && shouldAttemptEagerTransition() && (syncTransitionLanes = currentEventTransitionLane);
846
+ for (var currentTime = now(), prev = null, root2 = firstScheduledRoot; root2 !== null; ) {
1083
847
  var next = root2.next, nextLanes = scheduleTaskForRootDuringMicrotask(root2, currentTime);
1084
- if (0 === nextLanes)
1085
- root2.next = null, null === prev ? firstScheduledRoot = next : prev.next = next, null === next && (lastScheduledRoot = prev);
1086
- else if (prev = root2, 0 !== syncTransitionLanes || 0 !== (nextLanes & 3))
1087
- mightHavePendingSyncWork = true;
1088
- root2 = next;
848
+ nextLanes === 0 ? (root2.next = null, prev === null ? firstScheduledRoot = next : prev.next = next, next === null && (lastScheduledRoot = prev)) : (prev = root2, (syncTransitionLanes !== 0 || (nextLanes & 3) !== 0) && (mightHavePendingSyncWork = !0)), root2 = next;
1089
849
  }
1090
- 0 !== pendingEffectsStatus && 5 !== pendingEffectsStatus || flushSyncWorkAcrossRoots_impl(syncTransitionLanes, false);
1091
- 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0);
850
+ pendingEffectsStatus !== 0 && pendingEffectsStatus !== 5 || flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1), currentEventTransitionLane !== 0 && (currentEventTransitionLane = 0);
1092
851
  }
1093
852
  function scheduleTaskForRootDuringMicrotask(root2, currentTime) {
1094
853
  for (var suspendedLanes = root2.suspendedLanes, pingedLanes = root2.pingedLanes, expirationTimes = root2.expirationTimes, lanes = root2.pendingLanes & -62914561; 0 < lanes; ) {
1095
854
  var index$5 = 31 - clz32(lanes), lane = 1 << index$5, expirationTime = expirationTimes[index$5];
1096
- if (-1 === expirationTime) {
1097
- if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes))
1098
- expirationTimes[index$5] = computeExpirationTime(lane, currentTime);
1099
- } else expirationTime <= currentTime && (root2.expiredLanes |= lane);
1100
- lanes &= ~lane;
855
+ expirationTime === -1 ? ((lane & suspendedLanes) === 0 || (lane & pingedLanes) !== 0) && (expirationTimes[index$5] = computeExpirationTime(lane, currentTime)) : expirationTime <= currentTime && (root2.expiredLanes |= lane), lanes &= ~lane;
1101
856
  }
1102
- currentTime = workInProgressRoot;
1103
- suspendedLanes = workInProgressRootRenderLanes;
1104
- suspendedLanes = getNextLanes(
857
+ if (currentTime = workInProgressRoot, suspendedLanes = workInProgressRootRenderLanes, suspendedLanes = getNextLanes(
1105
858
  root2,
1106
859
  root2 === currentTime ? suspendedLanes : 0,
1107
- null !== root2.cancelPendingCommit || -1 !== root2.timeoutHandle
1108
- );
1109
- pingedLanes = root2.callbackNode;
1110
- if (0 === suspendedLanes || root2 === currentTime && (2 === workInProgressSuspendedReason || 9 === workInProgressSuspendedReason) || null !== root2.cancelPendingCommit)
1111
- return null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes), root2.callbackNode = null, root2.callbackPriority = 0;
1112
- if (0 === (suspendedLanes & 3) || checkIfRootIsPrerendering(root2, suspendedLanes)) {
1113
- currentTime = suspendedLanes & -suspendedLanes;
1114
- if (currentTime === root2.callbackPriority) return currentTime;
1115
- null !== pingedLanes && cancelCallback$1(pingedLanes);
1116
- switch (lanesToEventPriority(suspendedLanes)) {
860
+ root2.cancelPendingCommit !== null || root2.timeoutHandle !== -1
861
+ ), pingedLanes = root2.callbackNode, suspendedLanes === 0 || root2 === currentTime && (workInProgressSuspendedReason === 2 || workInProgressSuspendedReason === 9) || root2.cancelPendingCommit !== null)
862
+ return pingedLanes !== null && pingedLanes !== null && cancelCallback$1(pingedLanes), root2.callbackNode = null, root2.callbackPriority = 0;
863
+ if ((suspendedLanes & 3) === 0 || checkIfRootIsPrerendering(root2, suspendedLanes)) {
864
+ if (currentTime = suspendedLanes & -suspendedLanes, currentTime === root2.callbackPriority) return currentTime;
865
+ switch (pingedLanes !== null && cancelCallback$1(pingedLanes), lanesToEventPriority(suspendedLanes)) {
1117
866
  case 2:
1118
867
  case 8:
1119
868
  suspendedLanes = UserBlockingPriority;
@@ -1127,51 +876,39 @@
1127
876
  default:
1128
877
  suspendedLanes = NormalPriority$1;
1129
878
  }
1130
- pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root2);
1131
- suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes);
1132
- root2.callbackPriority = currentTime;
1133
- root2.callbackNode = suspendedLanes;
1134
- return currentTime;
879
+ return pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root2), suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes), root2.callbackPriority = currentTime, root2.callbackNode = suspendedLanes, currentTime;
1135
880
  }
1136
- null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes);
1137
- root2.callbackPriority = 2;
1138
- root2.callbackNode = null;
1139
- return 2;
881
+ return pingedLanes !== null && pingedLanes !== null && cancelCallback$1(pingedLanes), root2.callbackPriority = 2, root2.callbackNode = null, 2;
1140
882
  }
1141
883
  function performWorkOnRootViaSchedulerTask(root2, didTimeout) {
1142
- if (0 !== pendingEffectsStatus && 5 !== pendingEffectsStatus)
884
+ if (pendingEffectsStatus !== 0 && pendingEffectsStatus !== 5)
1143
885
  return root2.callbackNode = null, root2.callbackPriority = 0, null;
1144
886
  var originalCallbackNode = root2.callbackNode;
1145
887
  if (flushPendingEffects() && root2.callbackNode !== originalCallbackNode)
1146
888
  return null;
1147
889
  var workInProgressRootRenderLanes$jscomp$0 = workInProgressRootRenderLanes;
1148
- workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
890
+ return workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
1149
891
  root2,
1150
892
  root2 === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0,
1151
- null !== root2.cancelPendingCommit || -1 !== root2.timeoutHandle
1152
- );
1153
- if (0 === workInProgressRootRenderLanes$jscomp$0) return null;
1154
- performWorkOnRoot(root2, workInProgressRootRenderLanes$jscomp$0, didTimeout);
1155
- scheduleTaskForRootDuringMicrotask(root2, now());
1156
- return null != root2.callbackNode && root2.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root2) : null;
893
+ root2.cancelPendingCommit !== null || root2.timeoutHandle !== -1
894
+ ), workInProgressRootRenderLanes$jscomp$0 === 0 ? null : (performWorkOnRoot(root2, workInProgressRootRenderLanes$jscomp$0, didTimeout), scheduleTaskForRootDuringMicrotask(root2, now()), root2.callbackNode != null && root2.callbackNode === originalCallbackNode ? performWorkOnRootViaSchedulerTask.bind(null, root2) : null);
1157
895
  }
1158
896
  function performSyncWorkOnRoot(root2, lanes) {
1159
897
  if (flushPendingEffects()) return null;
1160
- performWorkOnRoot(root2, lanes, true);
898
+ performWorkOnRoot(root2, lanes, !0);
1161
899
  }
1162
900
  function scheduleImmediateRootScheduleTask() {
1163
901
  scheduleMicrotask(function() {
1164
- 0 !== (executionContext & 6) ? scheduleCallback$3(
902
+ (executionContext & 6) !== 0 ? scheduleCallback$3(
1165
903
  ImmediatePriority,
1166
904
  processRootScheduleInImmediateTask
1167
905
  ) : processRootScheduleInMicrotask();
1168
906
  });
1169
907
  }
1170
908
  function requestTransitionLane() {
1171
- if (0 === currentEventTransitionLane) {
909
+ if (currentEventTransitionLane === 0) {
1172
910
  var actionScopeLane = currentEntangledLane;
1173
- 0 === actionScopeLane && (actionScopeLane = nextTransitionUpdateLane, nextTransitionUpdateLane <<= 1, 0 === (nextTransitionUpdateLane & 261888) && (nextTransitionUpdateLane = 256));
1174
- currentEventTransitionLane = actionScopeLane;
911
+ actionScopeLane === 0 && (actionScopeLane = nextTransitionUpdateLane, nextTransitionUpdateLane <<= 1, (nextTransitionUpdateLane & 261888) === 0 && (nextTransitionUpdateLane = 256)), currentEventTransitionLane = actionScopeLane;
1175
912
  }
1176
913
  return currentEventTransitionLane;
1177
914
  }