claude-code-session-manager 0.87.0 → 0.88.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/README.md +26 -53
  2. package/dist/assets/{AgentLibrary-DyLWzZDf.js → AgentLibrary-kQF8_wAw.js} +1 -1
  3. package/dist/assets/{DataModel--mISIJ6h.js → DataModel-CY_mMnsr.js} +1 -1
  4. package/dist/assets/{History-C2ahUXTg.js → History-Sji2brb0.js} +1 -1
  5. package/dist/assets/{Hooks-BiC6oyR2.js → Hooks-CtqpO-p5.js} +1 -1
  6. package/dist/assets/{HostBilko-BPleEOld.js → HostBilko-DN0ydOCr.js} +1 -1
  7. package/dist/assets/{Library-Dc8Qst1R.js → Library-CoiLZTKh.js} +1 -1
  8. package/dist/assets/{ListDetail-DIXh-OLX.js → ListDetail-CmqiQ_io.js} +1 -1
  9. package/dist/assets/{MarkdownEditor-C90bkLXK.js → MarkdownEditor-HPoNeKhT.js} +1 -1
  10. package/dist/assets/{McpServers-DqcbLOLZ.js → McpServers-Bj1X3_NT.js} +1 -1
  11. package/dist/assets/{Memory-CW62MXlh.js → Memory-1PKjsM3b.js} +1 -1
  12. package/dist/assets/{Panel-Bw1FhRuF.js → Panel-I1s6ghPo.js} +1 -1
  13. package/dist/assets/{Permissions-BcUC-5y8.js → Permissions-BhiiZjHQ.js} +1 -1
  14. package/dist/assets/{Plugins-BnKx9flD.js → Plugins-gv3_fkPX.js} +2 -2
  15. package/dist/assets/{ProvenanceBadge-Bw5vNVPT.js → ProvenanceBadge-BGcgBd8V.js} +1 -1
  16. package/dist/assets/{SaveBar-CWr0O_w-.js → SaveBar-BGr9eZ4g.js} +1 -1
  17. package/dist/assets/{Scheduler-DYdLuUqq.js → Scheduler-Bdo_awPq.js} +7 -7
  18. package/dist/assets/{ScopeSwitcher-CrBLbg8s.js → ScopeSwitcher-ukl0qWaA.js} +1 -1
  19. package/dist/assets/{Settings-DluB-vN1.js → Settings-DJkFj22G.js} +1 -1
  20. package/dist/assets/{SkillReferenceGraph-CHLSseay.js → SkillReferenceGraph-0t1Qblp6.js} +1 -1
  21. package/dist/assets/{Skills-gNdo_HNK.js → Skills-CeVdBGE-.js} +1 -1
  22. package/dist/assets/{SystemPrompt-Cru05-Ia.js → SystemPrompt-CfKvNHi3.js} +1 -1
  23. package/dist/assets/{TagLibrary-DNHY0xou.js → TagLibrary-DAzNaUPd.js} +1 -1
  24. package/dist/assets/{TiptapBody-I4lmbCgP.js → TiptapBody--S_rGXoA.js} +1 -1
  25. package/dist/assets/{Toggle-bWMHjmRh.js → Toggle-Dszm0xnp.js} +1 -1
  26. package/dist/assets/{index-DV3PorRY.css → index-BHTX4OTc.css} +1 -1
  27. package/dist/assets/{index-fc_JjdxL.js → index-Dp4Rc--q.js} +356 -356
  28. package/dist/assets/{settingsSchema-BfhtZnGD.js → settingsSchema-BLbssMYo.js} +1 -1
  29. package/dist/assets/{whisperWorker-Dbia1OpC.js → whisperWorker-C7ZGQwKg.js} +7 -7
  30. package/dist/index.html +2 -2
  31. package/dist/vad/ort-wasm-simd-threaded.asyncify.mjs +106 -110
  32. package/dist/vad/ort-wasm-simd-threaded.asyncify.wasm +0 -0
  33. package/dist/vad/ort-wasm-simd-threaded.jsep.mjs +98 -98
  34. package/dist/vad/ort-wasm-simd-threaded.jsep.wasm +0 -0
  35. package/dist/vad/ort-wasm-simd-threaded.jspi.mjs +99 -102
  36. package/dist/vad/ort-wasm-simd-threaded.jspi.wasm +0 -0
  37. package/dist/vad/ort-wasm-simd-threaded.mjs +46 -46
  38. package/dist/vad/ort-wasm-simd-threaded.wasm +0 -0
  39. package/package.json +10 -13
  40. package/scripts/README.md +59 -0
  41. package/scripts/audit-ops-hygiene.cjs +350 -0
  42. package/scripts/hooks/guard-destructive-git.cjs +10 -34
  43. package/scripts/hooks/guard-inline-implementation.cjs +14 -8
  44. package/scripts/hooks/guard-prd-writes.cjs +7 -36
  45. package/scripts/hooks/guard-self-schedule.cjs +175 -0
  46. package/scripts/ops-sweep.cjs +355 -0
  47. package/scripts/scheduler-mcp-server.cjs +28 -71
  48. package/src/main/__tests__/bilkoHost-integration.test.cjs +3 -3
  49. package/src/main/__tests__/chat-cancel-terminal.test.cjs +6 -9
  50. package/src/main/__tests__/chat-exit-close-race.test.cjs +3 -3
  51. package/src/main/__tests__/chat-mcp-consent-notice.test.cjs +4 -5
  52. package/src/main/__tests__/chat-queue.test.cjs +2 -2
  53. package/src/main/__tests__/chat-stop-signal.test.cjs +2 -2
  54. package/src/main/__tests__/dep-orphan-archive-health.test.cjs +77 -0
  55. package/src/main/__tests__/dod-batchkey.test.cjs +2 -2
  56. package/src/main/__tests__/dod-drain-hook.test.cjs +2 -2
  57. package/src/main/__tests__/dod-report.test.cjs +2 -2
  58. package/src/main/__tests__/dod-reverify.test.cjs +2 -2
  59. package/src/main/__tests__/epicMint.test.cjs +2 -2
  60. package/src/main/__tests__/exchanges.test.cjs +2 -2
  61. package/src/main/__tests__/extractJson.test.cjs +2 -2
  62. package/src/main/__tests__/files-reject-credentials.test.cjs +1 -1
  63. package/src/main/__tests__/fixtures/1218-fo-01-move-scripts-lib-into-src-main-lib.log +556 -0
  64. package/src/main/__tests__/health-build-freshness.test.cjs +39 -0
  65. package/src/main/__tests__/health-delegation-chain.test.cjs +15 -1
  66. package/src/main/__tests__/health-queue-dispatch.test.cjs +58 -7
  67. package/src/main/__tests__/health-tick-liveness.test.cjs +27 -3
  68. package/src/main/__tests__/health-usage-poller.test.cjs +70 -23
  69. package/src/main/__tests__/historyRollup.test.cjs +2 -2
  70. package/src/main/__tests__/kg-augment.test.cjs +2 -2
  71. package/src/main/__tests__/mcpStatus.test.cjs +2 -2
  72. package/src/main/__tests__/memoryAggregate.test.cjs +1 -1
  73. package/src/main/__tests__/memoryStale.test.cjs +1 -1
  74. package/src/main/__tests__/opsErrorLogTelemetryTap.test.cjs +25 -1
  75. package/src/main/__tests__/pollLoop-dispatch-on-failure.test.cjs +33 -3
  76. package/src/main/__tests__/prd-group-allocator.test.cjs +2 -2
  77. package/src/main/__tests__/prdAdminRouteParity.test.cjs +2 -0
  78. package/src/main/__tests__/prdAdminRoutes.test.cjs +14 -2
  79. package/src/main/__tests__/prdAuthoringSeed.test.cjs +39 -0
  80. package/src/main/__tests__/prdLocationsArchived.test.cjs +20 -13
  81. package/src/main/__tests__/proc-role-env.test.cjs +125 -0
  82. package/src/main/__tests__/procname-claude-spawn-sites.test.cjs +304 -0
  83. package/src/main/__tests__/procname-sm-processes.test.cjs +127 -0
  84. package/src/main/__tests__/projectHomeAdminRoutes.test.cjs +81 -401
  85. package/src/main/__tests__/projectPages.test.cjs +63 -149
  86. package/src/main/__tests__/queue-health-verdict.test.cjs +9 -9
  87. package/src/main/__tests__/queue-starvation-dispatch-driver.test.cjs +117 -20
  88. package/src/main/__tests__/queueHistory.test.cjs +2 -2
  89. package/src/main/__tests__/rateLimitPollerStreak.test.cjs +38 -3
  90. package/src/main/__tests__/runVerify-landed-commit-outranks.test.cjs +181 -0
  91. package/src/main/__tests__/runVerify.test.cjs +5 -5
  92. package/src/main/__tests__/scheduleJobStatusDrift.test.cjs +3 -3
  93. package/src/main/__tests__/scheduleJobTransitions.test.cjs +2 -2
  94. package/src/main/__tests__/scheduler-adopted-run-supervision.test.cjs +143 -0
  95. package/src/main/__tests__/scheduler-autofix-select.test.cjs +2 -2
  96. package/src/main/__tests__/scheduler-autopromote.test.cjs +2 -2
  97. package/src/main/__tests__/scheduler-bash-timeout-env.test.cjs +3 -5
  98. package/src/main/__tests__/scheduler-boot-orphans.test.cjs +78 -97
  99. package/src/main/__tests__/scheduler-default-eligible-heal.test.cjs +161 -0
  100. package/src/main/__tests__/scheduler-dispatch-loop.test.cjs +58 -0
  101. package/src/main/__tests__/scheduler-epic-digest.test.cjs +3 -5
  102. package/src/main/__tests__/scheduler-force-tick-outcome.test.cjs +2 -2
  103. package/src/main/__tests__/scheduler-gate-shadow.test.cjs +119 -0
  104. package/src/main/__tests__/scheduler-guard-verdict-autoresolve.test.cjs +46 -0
  105. package/src/main/__tests__/scheduler-heartbeat-payload.test.cjs +80 -0
  106. package/src/main/__tests__/scheduler-inplace-salvage.test.cjs +25 -18
  107. package/src/main/__tests__/scheduler-investigation-prompt.test.cjs +4 -4
  108. package/src/main/__tests__/scheduler-launch-failure.test.cjs +3 -5
  109. package/src/main/__tests__/scheduler-looks-done.test.cjs +26 -7
  110. package/src/main/__tests__/scheduler-manual-pause.test.cjs +118 -0
  111. package/src/main/__tests__/scheduler-meta-code-sha.test.cjs +26 -3
  112. package/src/main/__tests__/scheduler-prd-missing-skip.test.cjs +17 -2
  113. package/src/main/__tests__/scheduler-prd-persona-spawn.test.cjs +3 -5
  114. package/src/main/__tests__/scheduler-quiet-machine-lease.test.cjs +41 -6
  115. package/src/main/__tests__/scheduler-rate-limit-pause.test.cjs +62 -6
  116. package/src/main/__tests__/scheduler-rate-limit-spin-guard.test.cjs +3 -5
  117. package/src/main/__tests__/scheduler-reap-dead-running-jobs.test.cjs +23 -4
  118. package/src/main/__tests__/scheduler-reconcile-cwd-preserve.test.cjs +100 -0
  119. package/src/main/__tests__/scheduler-reconcile-invalid-repair.test.cjs +3 -3
  120. package/src/main/__tests__/scheduler-reconcile-quarantine.test.cjs +4 -4
  121. package/src/main/__tests__/scheduler-shard-quarantine.test.cjs +110 -0
  122. package/src/main/__tests__/scheduler-shared-tree-guard.test.cjs +81 -1
  123. package/src/main/__tests__/scheduler-stall-per-project.test.cjs +14 -0
  124. package/src/main/__tests__/scheduler-starve-escalation.test.cjs +4 -4
  125. package/src/main/__tests__/scheduler-stranded-autofix-park.test.cjs +245 -0
  126. package/src/main/__tests__/scheduler-supervisor-record.test.cjs +81 -0
  127. package/src/main/__tests__/scheduler-tick-cancel-token.test.cjs +2 -2
  128. package/src/main/__tests__/scheduler-tick-wedge.test.cjs +172 -0
  129. package/src/main/__tests__/scheduler-transient-failure.test.cjs +2 -2
  130. package/src/main/__tests__/scheduler-worktree-cap-defer.test.cjs +37 -11
  131. package/src/main/__tests__/scheduler-worktree-exec-cwd.test.cjs +3 -5
  132. package/src/main/__tests__/usageSingleFlight.test.cjs +157 -0
  133. package/src/main/__tests__/workTypeLibrary.test.cjs +1 -1
  134. package/src/main/bilkoHost.cjs +16 -7
  135. package/src/main/build-info.json +8 -0
  136. package/src/main/chatRunner.cjs +4 -2
  137. package/src/main/config.cjs +2 -3
  138. package/src/main/docEdit.cjs +4 -2
  139. package/src/main/health.cjs +276 -52
  140. package/src/main/heapSnapshot.cjs +2 -2
  141. package/src/main/historyAggregator.cjs +1 -1
  142. package/src/main/index.cjs +61 -10
  143. package/src/main/ipcSchemas.cjs +6 -17
  144. package/src/main/lib/__tests__/auditLog.test.cjs +38 -0
  145. package/src/main/lib/__tests__/buildIdentity.test.cjs +121 -0
  146. package/src/main/lib/__tests__/cwdClassify.test.cjs +111 -0
  147. package/src/main/lib/__tests__/definitionOfDoneSequence.test.cjs +95 -0
  148. package/src/main/lib/__tests__/delegationReadiness.test.cjs +1 -1
  149. package/src/main/lib/__tests__/dispatchLoop.test.cjs +63 -0
  150. package/src/main/lib/__tests__/gateFixtures.json +20 -0
  151. package/src/main/lib/__tests__/gitWorktree.test.cjs +8 -1
  152. package/src/main/lib/__tests__/instanceLock.test.cjs +93 -7
  153. package/src/main/lib/__tests__/jobSupervisorRecord.test.cjs +78 -0
  154. package/src/main/lib/__tests__/jobWorktreeBootLive.test.cjs +11 -0
  155. package/src/main/lib/__tests__/localAdminHttp.test.cjs +1 -1
  156. package/src/main/lib/__tests__/mcpToolCatalog.test.cjs +6 -1
  157. package/src/main/lib/__tests__/procIdentity.test.cjs +119 -0
  158. package/src/main/lib/__tests__/procName.test.cjs +92 -0
  159. package/src/main/lib/__tests__/queueStoreMachineStateRecovery.test.cjs +67 -0
  160. package/src/main/lib/__tests__/schedulerMcpServerHelp.test.cjs +6 -7
  161. package/src/main/lib/__tests__/schedulerMcpServerProjectHome.test.cjs +37 -204
  162. package/src/main/lib/__tests__/schedulerPaths.test.cjs +226 -0
  163. package/src/main/lib/__tests__/schedulerPathsWorktree.test.cjs +94 -0
  164. package/src/main/lib/__tests__/schedulerRuntimeState.test.cjs +56 -0
  165. package/src/main/lib/__tests__/sessionSlots.test.cjs +45 -0
  166. package/src/main/lib/__tests__/telemetryBacklog.test.cjs +1 -1
  167. package/src/main/lib/__tests__/upgradeDrain.test.cjs +130 -0
  168. package/src/main/lib/__tests__/usageCircuit.test.cjs +61 -0
  169. package/src/main/lib/__tests__/watchdog-helpers.test.cjs +63 -0
  170. package/src/main/lib/__tests__/watchdog-relaunch.test.cjs +73 -0
  171. package/src/main/lib/activeIndexRebuild.cjs +1 -3
  172. package/src/main/lib/activeSessions.cjs +20 -88
  173. package/src/main/lib/adoptedRunSupervisor.cjs +136 -0
  174. package/src/main/lib/agentModelResolve.cjs +33 -1
  175. package/src/main/lib/agentPersonaSchema.cjs +2 -2
  176. package/src/main/lib/auditLog.cjs +30 -5
  177. package/src/main/lib/buildIdentity.cjs +113 -0
  178. package/src/main/lib/classifyPromptTicket.cjs +3 -2
  179. package/src/main/lib/claudeBin.cjs +37 -2
  180. package/src/main/lib/cleanEnv.cjs +27 -1
  181. package/src/main/lib/credentials.cjs +4 -2
  182. package/src/main/lib/cwdClassify.cjs +185 -0
  183. package/src/main/lib/definitionOfDone.cjs +296 -52
  184. package/src/main/lib/dispatchLoop.cjs +40 -0
  185. package/src/main/lib/effectiveModelInfo.cjs +9 -10
  186. package/src/main/lib/ephemeralCwd.cjs +7 -28
  187. package/src/main/lib/gitWorktree.cjs +95 -8
  188. package/src/main/lib/guardShims.cjs +3 -3
  189. package/src/main/lib/historyRollup.cjs +6 -7
  190. package/src/main/lib/instanceLock.cjs +32 -5
  191. package/src/main/lib/jobSupervisorRecord.cjs +147 -0
  192. package/src/main/lib/jobWorktreeBootLive.cjs +9 -5
  193. package/src/main/lib/localAdminHttp.cjs +9 -27
  194. package/src/main/lib/mcpToolCatalog.cjs +29 -77
  195. package/src/main/lib/opsOwnership.cjs +27 -19
  196. package/src/main/lib/prdAuthoringSeed.cjs +36 -0
  197. package/src/main/lib/prdLocations.cjs +48 -1
  198. package/src/main/lib/procIdentity.cjs +126 -0
  199. package/src/main/lib/procName.cjs +98 -0
  200. package/src/main/lib/projectHomeAdminRoutes.cjs +56 -327
  201. package/src/main/lib/queueHistory.cjs +8 -7
  202. package/src/main/lib/queueStore.cjs +57 -37
  203. package/src/main/lib/quietMachineLease.cjs +19 -2
  204. package/src/main/lib/reservationExpiry.cjs +30 -0
  205. package/src/main/lib/runClaudeP.cjs +4 -2
  206. package/src/main/lib/runLogRetention.cjs +3 -2
  207. package/src/main/lib/scheduleJobSchema.cjs +2 -2
  208. package/src/main/lib/scheduleJobTransitions.cjs +29 -2
  209. package/src/main/lib/schedulerBatch.cjs +27 -2
  210. package/src/main/lib/schedulerPaths.cjs +175 -0
  211. package/src/main/lib/schedulerRuntimeState.cjs +59 -0
  212. package/src/main/lib/sessionSlots.cjs +47 -9
  213. package/src/main/lib/smProcNames.cjs +51 -0
  214. package/src/main/lib/upgradeDrain.cjs +188 -0
  215. package/src/main/lib/usageCircuit.cjs +53 -6
  216. package/src/main/lib/watchdogHelpers.cjs +70 -37
  217. package/src/main/lib/withTimeout.cjs +33 -0
  218. package/src/main/mcpStatus.cjs +4 -2
  219. package/src/main/pluginInstall.cjs +6 -2
  220. package/src/main/projectPages.cjs +41 -145
  221. package/src/main/pty.cjs +8 -1
  222. package/src/main/queueOps.cjs +10 -10
  223. package/src/main/runVerify.cjs +69 -3
  224. package/src/main/scheduler.cjs +1607 -383
  225. package/src/main/seedAgentPersonas.cjs +1 -1
  226. package/src/main/seedDevPlugin.cjs +1 -1
  227. package/src/main/seedSchedulerMcp.cjs +7 -6
  228. package/src/main/seedStatus.cjs +1 -1
  229. package/src/main/supervisor.cjs +5 -3
  230. package/src/main/usage.cjs +126 -62
  231. package/src/preload/api.d.ts +18 -64
  232. package/src/preload/index.cjs +2 -4
  233. package/src/seed/agents/project-home-builder.md +31 -48
  234. package/screenshots/.gitkeep +0 -0
  235. package/screenshots/README-screenshots.md +0 -13
  236. package/src/main/lib/projectPageSummarySchema.cjs +0 -181
  237. package/src/main/teams.cjs +0 -95
  238. package/src/main/templates/project-pages-catalog.json +0 -741
  239. package/src/main/templates/project-pages-default-home.html +0 -123
  240. package/src/main/templates/project-pages-pipeline.md +0 -417
  241. package/src/seed/prompts/code-review/ac-coverage-check.md +0 -8
  242. package/src/seed/prompts/code-review/correctness-only.md +0 -8
  243. package/src/seed/prompts/code-review/full-spectrum-high.md +0 -8
  244. package/src/seed/prompts/code-review/hallucination-check.md +0 -8
  245. package/src/seed/prompts/code-review/public-api-compat.md +0 -8
  246. package/src/seed/prompts/code-review/readability-naming.md +0 -8
  247. package/src/seed/prompts/debugging/bug-as-failing-test.md +0 -8
  248. package/src/seed/prompts/debugging/git-bisect-regression.md +0 -8
  249. package/src/seed/prompts/debugging/instrument-intermittent-bug.md +0 -8
  250. package/src/seed/prompts/debugging/localize-pipeline-failure.md +0 -8
  251. package/src/seed/prompts/debugging/reproduce-then-diagnose.md +0 -8
  252. package/src/seed/prompts/documentation/adr-from-change.md +0 -8
  253. package/src/seed/prompts/documentation/module-readme.md +0 -8
  254. package/src/seed/prompts/documentation/onboarding-plan.md +0 -8
  255. package/src/seed/prompts/documentation/refresh-claude-md.md +0 -8
  256. package/src/seed/prompts/documentation/tsdoc-public-exports.md +0 -8
  257. package/src/seed/prompts/git-pr/conventional-commit.md +0 -8
  258. package/src/seed/prompts/git-pr/draft-pr-title-body.md +0 -8
  259. package/src/seed/prompts/git-pr/pre-commit-safety-sweep.md +0 -8
  260. package/src/seed/prompts/git-pr/release-notes-block.md +0 -8
  261. package/src/seed/prompts/git-pr/split-large-pr.md +0 -8
  262. package/src/seed/prompts/performance/bundle-startup-audit.md +0 -8
  263. package/src/seed/prompts/performance/complexity-audit.md +0 -8
  264. package/src/seed/prompts/performance/cpu-profile-hot-path.md +0 -8
  265. package/src/seed/prompts/performance/db-query-plan-review.md +0 -8
  266. package/src/seed/prompts/performance/memory-leak-hunt.md +0 -8
  267. package/src/seed/prompts/qa/api-contract-tests.md +0 -8
  268. package/src/seed/prompts/qa/e2e-critical-path.md +0 -8
  269. package/src/seed/prompts/qa/failing-test-for-bug.md +0 -8
  270. package/src/seed/prompts/qa/find-missing-test-coverage.md +0 -8
  271. package/src/seed/prompts/qa/stabilize-flaky-test.md +0 -8
  272. package/src/seed/prompts/qa/tdd-red-first.md +0 -8
  273. package/src/seed/prompts/qa/visual-regression-review.md +0 -8
  274. package/src/seed/prompts/qa/wcag-axe-scan.md +0 -8
  275. package/src/seed/prompts/refactoring/dead-code-sweep.md +0 -8
  276. package/src/seed/prompts/refactoring/extract-duplicated-pattern.md +0 -8
  277. package/src/seed/prompts/refactoring/modernize-legacy-file.md +0 -8
  278. package/src/seed/prompts/refactoring/reduce-cyclomatic-complexity.md +0 -8
  279. package/src/seed/prompts/refactoring/tighten-module-boundaries.md +0 -8
  280. package/src/seed/prompts/security/authz-audit.md +0 -8
  281. package/src/seed/prompts/security/crypto-correctness.md +0 -8
  282. package/src/seed/prompts/security/cwe-top-25-hunt.md +0 -8
  283. package/src/seed/prompts/security/dependency-audit.md +0 -8
  284. package/src/seed/prompts/security/ipc-boundary-hardening.md +0 -8
  285. package/src/seed/prompts/security/owasp-top-10-staged-diff.md +0 -8
  286. package/src/seed/prompts/security/secret-credential-scan.md +0 -8
  287. package/web/README.md +0 -41
  288. package/web/project-pages/logic/dist/logic.cjs +0 -4709
  289. package/web/project-pages/render.cjs +0 -70
  290. package/web/project-pages/renderer/dist/renderer.cjs +0 -18900
  291. package/web/project-pages/validate-summary.cjs +0 -62
@@ -1,4709 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __commonJS = (cb, mod) => function __require() {
9
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
- };
11
- var __export = (target, all) => {
12
- for (var name in all)
13
- __defProp(target, name, { get: all[name], enumerable: true });
14
- };
15
- var __copyProps = (to, from, except, desc) => {
16
- if (from && typeof from === "object" || typeof from === "function") {
17
- for (let key of __getOwnPropNames(from))
18
- if (!__hasOwnProp.call(to, key) && key !== except)
19
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
- }
21
- return to;
22
- };
23
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
- // If the importer is in node compatibility mode or this is not an ESM
25
- // file that has been converted to a CommonJS file using a Babel-
26
- // compatible transform (i.e. "__esModule" has not been set), then set
27
- // "default" to the CommonJS "module.exports" for node compatibility.
28
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
- mod
30
- ));
31
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
-
33
- // node_modules/react/cjs/react.production.min.js
34
- var require_react_production_min = __commonJS({
35
- "node_modules/react/cjs/react.production.min.js"(exports2) {
36
- "use strict";
37
- var l = Symbol.for("react.element");
38
- var n = Symbol.for("react.portal");
39
- var p = Symbol.for("react.fragment");
40
- var q = Symbol.for("react.strict_mode");
41
- var r = Symbol.for("react.profiler");
42
- var t = Symbol.for("react.provider");
43
- var u = Symbol.for("react.context");
44
- var v = Symbol.for("react.forward_ref");
45
- var w = Symbol.for("react.suspense");
46
- var x = Symbol.for("react.memo");
47
- var y = Symbol.for("react.lazy");
48
- var z = Symbol.iterator;
49
- function A(a) {
50
- if (null === a || "object" !== typeof a) return null;
51
- a = z && a[z] || a["@@iterator"];
52
- return "function" === typeof a ? a : null;
53
- }
54
- var B = { isMounted: function() {
55
- return false;
56
- }, enqueueForceUpdate: function() {
57
- }, enqueueReplaceState: function() {
58
- }, enqueueSetState: function() {
59
- } };
60
- var C = Object.assign;
61
- var D = {};
62
- function E(a, b, e) {
63
- this.props = a;
64
- this.context = b;
65
- this.refs = D;
66
- this.updater = e || B;
67
- }
68
- E.prototype.isReactComponent = {};
69
- E.prototype.setState = function(a, b) {
70
- if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
71
- this.updater.enqueueSetState(this, a, b, "setState");
72
- };
73
- E.prototype.forceUpdate = function(a) {
74
- this.updater.enqueueForceUpdate(this, a, "forceUpdate");
75
- };
76
- function F() {
77
- }
78
- F.prototype = E.prototype;
79
- function G(a, b, e) {
80
- this.props = a;
81
- this.context = b;
82
- this.refs = D;
83
- this.updater = e || B;
84
- }
85
- var H = G.prototype = new F();
86
- H.constructor = G;
87
- C(H, E.prototype);
88
- H.isPureReactComponent = true;
89
- var I = Array.isArray;
90
- var J = Object.prototype.hasOwnProperty;
91
- var K = { current: null };
92
- var L = { key: true, ref: true, __self: true, __source: true };
93
- function M2(a, b, e) {
94
- var d, c = {}, k = null, h = null;
95
- if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
96
- var g = arguments.length - 2;
97
- if (1 === g) c.children = e;
98
- else if (1 < g) {
99
- for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];
100
- c.children = f;
101
- }
102
- if (a && a.defaultProps) for (d in g = a.defaultProps, g) void 0 === c[d] && (c[d] = g[d]);
103
- return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
104
- }
105
- function N(a, b) {
106
- return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
107
- }
108
- function O(a) {
109
- return "object" === typeof a && null !== a && a.$$typeof === l;
110
- }
111
- function escape(a) {
112
- var b = { "=": "=0", ":": "=2" };
113
- return "$" + a.replace(/[=:]/g, function(a2) {
114
- return b[a2];
115
- });
116
- }
117
- var P = /\/+/g;
118
- function Q(a, b) {
119
- return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
120
- }
121
- function R(a, b, e, d, c) {
122
- var k = typeof a;
123
- if ("undefined" === k || "boolean" === k) a = null;
124
- var h = false;
125
- if (null === a) h = true;
126
- else switch (k) {
127
- case "string":
128
- case "number":
129
- h = true;
130
- break;
131
- case "object":
132
- switch (a.$$typeof) {
133
- case l:
134
- case n:
135
- h = true;
136
- }
137
- }
138
- if (h) return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) {
139
- return a2;
140
- })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
141
- h = 0;
142
- d = "" === d ? "." : d + ":";
143
- if (I(a)) for (var g = 0; g < a.length; g++) {
144
- k = a[g];
145
- var f = d + Q(k, g);
146
- h += R(k, b, e, f, c);
147
- }
148
- else if (f = A(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done; ) k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
149
- else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
150
- return h;
151
- }
152
- function S(a, b, e) {
153
- if (null == a) return a;
154
- var d = [], c = 0;
155
- R(a, d, "", "", function(a2) {
156
- return b.call(e, a2, c++);
157
- });
158
- return d;
159
- }
160
- function T(a) {
161
- if (-1 === a._status) {
162
- var b = a._result;
163
- b = b();
164
- b.then(function(b2) {
165
- if (0 === a._status || -1 === a._status) a._status = 1, a._result = b2;
166
- }, function(b2) {
167
- if (0 === a._status || -1 === a._status) a._status = 2, a._result = b2;
168
- });
169
- -1 === a._status && (a._status = 0, a._result = b);
170
- }
171
- if (1 === a._status) return a._result.default;
172
- throw a._result;
173
- }
174
- var U = { current: null };
175
- var V = { transition: null };
176
- var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
177
- function X() {
178
- throw Error("act(...) is not supported in production builds of React.");
179
- }
180
- exports2.Children = { map: S, forEach: function(a, b, e) {
181
- S(a, function() {
182
- b.apply(this, arguments);
183
- }, e);
184
- }, count: function(a) {
185
- var b = 0;
186
- S(a, function() {
187
- b++;
188
- });
189
- return b;
190
- }, toArray: function(a) {
191
- return S(a, function(a2) {
192
- return a2;
193
- }) || [];
194
- }, only: function(a) {
195
- if (!O(a)) throw Error("React.Children.only expected to receive a single React element child.");
196
- return a;
197
- } };
198
- exports2.Component = E;
199
- exports2.Fragment = p;
200
- exports2.Profiler = r;
201
- exports2.PureComponent = G;
202
- exports2.StrictMode = q;
203
- exports2.Suspense = w;
204
- exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
205
- exports2.act = X;
206
- exports2.cloneElement = function(a, b, e) {
207
- if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
208
- var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
209
- if (null != b) {
210
- void 0 !== b.ref && (k = b.ref, h = K.current);
211
- void 0 !== b.key && (c = "" + b.key);
212
- if (a.type && a.type.defaultProps) var g = a.type.defaultProps;
213
- for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
214
- }
215
- var f = arguments.length - 2;
216
- if (1 === f) d.children = e;
217
- else if (1 < f) {
218
- g = Array(f);
219
- for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
220
- d.children = g;
221
- }
222
- return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
223
- };
224
- exports2.createContext = function(a) {
225
- a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
226
- a.Provider = { $$typeof: t, _context: a };
227
- return a.Consumer = a;
228
- };
229
- exports2.createElement = M2;
230
- exports2.createFactory = function(a) {
231
- var b = M2.bind(null, a);
232
- b.type = a;
233
- return b;
234
- };
235
- exports2.createRef = function() {
236
- return { current: null };
237
- };
238
- exports2.forwardRef = function(a) {
239
- return { $$typeof: v, render: a };
240
- };
241
- exports2.isValidElement = O;
242
- exports2.lazy = function(a) {
243
- return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
244
- };
245
- exports2.memo = function(a, b) {
246
- return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
247
- };
248
- exports2.startTransition = function(a) {
249
- var b = V.transition;
250
- V.transition = {};
251
- try {
252
- a();
253
- } finally {
254
- V.transition = b;
255
- }
256
- };
257
- exports2.unstable_act = X;
258
- exports2.useCallback = function(a, b) {
259
- return U.current.useCallback(a, b);
260
- };
261
- exports2.useContext = function(a) {
262
- return U.current.useContext(a);
263
- };
264
- exports2.useDebugValue = function() {
265
- };
266
- exports2.useDeferredValue = function(a) {
267
- return U.current.useDeferredValue(a);
268
- };
269
- exports2.useEffect = function(a, b) {
270
- return U.current.useEffect(a, b);
271
- };
272
- exports2.useId = function() {
273
- return U.current.useId();
274
- };
275
- exports2.useImperativeHandle = function(a, b, e) {
276
- return U.current.useImperativeHandle(a, b, e);
277
- };
278
- exports2.useInsertionEffect = function(a, b) {
279
- return U.current.useInsertionEffect(a, b);
280
- };
281
- exports2.useLayoutEffect = function(a, b) {
282
- return U.current.useLayoutEffect(a, b);
283
- };
284
- exports2.useMemo = function(a, b) {
285
- return U.current.useMemo(a, b);
286
- };
287
- exports2.useReducer = function(a, b, e) {
288
- return U.current.useReducer(a, b, e);
289
- };
290
- exports2.useRef = function(a) {
291
- return U.current.useRef(a);
292
- };
293
- exports2.useState = function(a) {
294
- return U.current.useState(a);
295
- };
296
- exports2.useSyncExternalStore = function(a, b, e) {
297
- return U.current.useSyncExternalStore(a, b, e);
298
- };
299
- exports2.useTransition = function() {
300
- return U.current.useTransition();
301
- };
302
- exports2.version = "18.3.1";
303
- }
304
- });
305
-
306
- // node_modules/react/cjs/react.development.js
307
- var require_react_development = __commonJS({
308
- "node_modules/react/cjs/react.development.js"(exports2, module2) {
309
- "use strict";
310
- if (process.env.NODE_ENV !== "production") {
311
- (function() {
312
- "use strict";
313
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
314
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
315
- }
316
- var ReactVersion = "18.3.1";
317
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
318
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
319
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
320
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
321
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
322
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
323
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
324
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
325
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
326
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
327
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
328
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
329
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
330
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
331
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
332
- function getIteratorFn(maybeIterable) {
333
- if (maybeIterable === null || typeof maybeIterable !== "object") {
334
- return null;
335
- }
336
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
337
- if (typeof maybeIterator === "function") {
338
- return maybeIterator;
339
- }
340
- return null;
341
- }
342
- var ReactCurrentDispatcher = {
343
- /**
344
- * @internal
345
- * @type {ReactComponent}
346
- */
347
- current: null
348
- };
349
- var ReactCurrentBatchConfig = {
350
- transition: null
351
- };
352
- var ReactCurrentActQueue = {
353
- current: null,
354
- // Used to reproduce behavior of `batchedUpdates` in legacy mode.
355
- isBatchingLegacy: false,
356
- didScheduleLegacyUpdate: false
357
- };
358
- var ReactCurrentOwner = {
359
- /**
360
- * @internal
361
- * @type {ReactComponent}
362
- */
363
- current: null
364
- };
365
- var ReactDebugCurrentFrame = {};
366
- var currentExtraStackFrame = null;
367
- function setExtraStackFrame(stack) {
368
- {
369
- currentExtraStackFrame = stack;
370
- }
371
- }
372
- {
373
- ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
374
- {
375
- currentExtraStackFrame = stack;
376
- }
377
- };
378
- ReactDebugCurrentFrame.getCurrentStack = null;
379
- ReactDebugCurrentFrame.getStackAddendum = function() {
380
- var stack = "";
381
- if (currentExtraStackFrame) {
382
- stack += currentExtraStackFrame;
383
- }
384
- var impl = ReactDebugCurrentFrame.getCurrentStack;
385
- if (impl) {
386
- stack += impl() || "";
387
- }
388
- return stack;
389
- };
390
- }
391
- var enableScopeAPI = false;
392
- var enableCacheElement = false;
393
- var enableTransitionTracing = false;
394
- var enableLegacyHidden = false;
395
- var enableDebugTracing = false;
396
- var ReactSharedInternals = {
397
- ReactCurrentDispatcher,
398
- ReactCurrentBatchConfig,
399
- ReactCurrentOwner
400
- };
401
- {
402
- ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
403
- ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
404
- }
405
- function warn(format) {
406
- {
407
- {
408
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
409
- args[_key - 1] = arguments[_key];
410
- }
411
- printWarning("warn", format, args);
412
- }
413
- }
414
- }
415
- function error(format) {
416
- {
417
- {
418
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
419
- args[_key2 - 1] = arguments[_key2];
420
- }
421
- printWarning("error", format, args);
422
- }
423
- }
424
- }
425
- function printWarning(level, format, args) {
426
- {
427
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
428
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
429
- if (stack !== "") {
430
- format += "%s";
431
- args = args.concat([stack]);
432
- }
433
- var argsWithFormat = args.map(function(item) {
434
- return String(item);
435
- });
436
- argsWithFormat.unshift("Warning: " + format);
437
- Function.prototype.apply.call(console[level], console, argsWithFormat);
438
- }
439
- }
440
- var didWarnStateUpdateForUnmountedComponent = {};
441
- function warnNoop(publicInstance, callerName) {
442
- {
443
- var _constructor = publicInstance.constructor;
444
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
445
- var warningKey = componentName + "." + callerName;
446
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
447
- return;
448
- }
449
- error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName);
450
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
451
- }
452
- }
453
- var ReactNoopUpdateQueue = {
454
- /**
455
- * Checks whether or not this composite component is mounted.
456
- * @param {ReactClass} publicInstance The instance we want to test.
457
- * @return {boolean} True if mounted, false otherwise.
458
- * @protected
459
- * @final
460
- */
461
- isMounted: function(publicInstance) {
462
- return false;
463
- },
464
- /**
465
- * Forces an update. This should only be invoked when it is known with
466
- * certainty that we are **not** in a DOM transaction.
467
- *
468
- * You may want to call this when you know that some deeper aspect of the
469
- * component's state has changed but `setState` was not called.
470
- *
471
- * This will not invoke `shouldComponentUpdate`, but it will invoke
472
- * `componentWillUpdate` and `componentDidUpdate`.
473
- *
474
- * @param {ReactClass} publicInstance The instance that should rerender.
475
- * @param {?function} callback Called after component is updated.
476
- * @param {?string} callerName name of the calling function in the public API.
477
- * @internal
478
- */
479
- enqueueForceUpdate: function(publicInstance, callback, callerName) {
480
- warnNoop(publicInstance, "forceUpdate");
481
- },
482
- /**
483
- * Replaces all of the state. Always use this or `setState` to mutate state.
484
- * You should treat `this.state` as immutable.
485
- *
486
- * There is no guarantee that `this.state` will be immediately updated, so
487
- * accessing `this.state` after calling this method may return the old value.
488
- *
489
- * @param {ReactClass} publicInstance The instance that should rerender.
490
- * @param {object} completeState Next state.
491
- * @param {?function} callback Called after component is updated.
492
- * @param {?string} callerName name of the calling function in the public API.
493
- * @internal
494
- */
495
- enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
496
- warnNoop(publicInstance, "replaceState");
497
- },
498
- /**
499
- * Sets a subset of the state. This only exists because _pendingState is
500
- * internal. This provides a merging strategy that is not available to deep
501
- * properties which is confusing. TODO: Expose pendingState or don't use it
502
- * during the merge.
503
- *
504
- * @param {ReactClass} publicInstance The instance that should rerender.
505
- * @param {object} partialState Next partial state to be merged with state.
506
- * @param {?function} callback Called after component is updated.
507
- * @param {?string} Name of the calling function in the public API.
508
- * @internal
509
- */
510
- enqueueSetState: function(publicInstance, partialState, callback, callerName) {
511
- warnNoop(publicInstance, "setState");
512
- }
513
- };
514
- var assign = Object.assign;
515
- var emptyObject = {};
516
- {
517
- Object.freeze(emptyObject);
518
- }
519
- function Component(props, context, updater) {
520
- this.props = props;
521
- this.context = context;
522
- this.refs = emptyObject;
523
- this.updater = updater || ReactNoopUpdateQueue;
524
- }
525
- Component.prototype.isReactComponent = {};
526
- Component.prototype.setState = function(partialState, callback) {
527
- if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
528
- throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
529
- }
530
- this.updater.enqueueSetState(this, partialState, callback, "setState");
531
- };
532
- Component.prototype.forceUpdate = function(callback) {
533
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
534
- };
535
- {
536
- var deprecatedAPIs = {
537
- isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
538
- replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
539
- };
540
- var defineDeprecationWarning = function(methodName, info) {
541
- Object.defineProperty(Component.prototype, methodName, {
542
- get: function() {
543
- warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
544
- return void 0;
545
- }
546
- });
547
- };
548
- for (var fnName in deprecatedAPIs) {
549
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
550
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
551
- }
552
- }
553
- }
554
- function ComponentDummy() {
555
- }
556
- ComponentDummy.prototype = Component.prototype;
557
- function PureComponent(props, context, updater) {
558
- this.props = props;
559
- this.context = context;
560
- this.refs = emptyObject;
561
- this.updater = updater || ReactNoopUpdateQueue;
562
- }
563
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
564
- pureComponentPrototype.constructor = PureComponent;
565
- assign(pureComponentPrototype, Component.prototype);
566
- pureComponentPrototype.isPureReactComponent = true;
567
- function createRef() {
568
- var refObject = {
569
- current: null
570
- };
571
- {
572
- Object.seal(refObject);
573
- }
574
- return refObject;
575
- }
576
- var isArrayImpl = Array.isArray;
577
- function isArray(a) {
578
- return isArrayImpl(a);
579
- }
580
- function typeName(value) {
581
- {
582
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
583
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
584
- return type;
585
- }
586
- }
587
- function willCoercionThrow(value) {
588
- {
589
- try {
590
- testStringCoercion(value);
591
- return false;
592
- } catch (e) {
593
- return true;
594
- }
595
- }
596
- }
597
- function testStringCoercion(value) {
598
- return "" + value;
599
- }
600
- function checkKeyStringCoercion(value) {
601
- {
602
- if (willCoercionThrow(value)) {
603
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
604
- return testStringCoercion(value);
605
- }
606
- }
607
- }
608
- function getWrappedName(outerType, innerType, wrapperName) {
609
- var displayName = outerType.displayName;
610
- if (displayName) {
611
- return displayName;
612
- }
613
- var functionName = innerType.displayName || innerType.name || "";
614
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
615
- }
616
- function getContextName(type) {
617
- return type.displayName || "Context";
618
- }
619
- function getComponentNameFromType(type) {
620
- if (type == null) {
621
- return null;
622
- }
623
- {
624
- if (typeof type.tag === "number") {
625
- error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
626
- }
627
- }
628
- if (typeof type === "function") {
629
- return type.displayName || type.name || null;
630
- }
631
- if (typeof type === "string") {
632
- return type;
633
- }
634
- switch (type) {
635
- case REACT_FRAGMENT_TYPE:
636
- return "Fragment";
637
- case REACT_PORTAL_TYPE:
638
- return "Portal";
639
- case REACT_PROFILER_TYPE:
640
- return "Profiler";
641
- case REACT_STRICT_MODE_TYPE:
642
- return "StrictMode";
643
- case REACT_SUSPENSE_TYPE:
644
- return "Suspense";
645
- case REACT_SUSPENSE_LIST_TYPE:
646
- return "SuspenseList";
647
- }
648
- if (typeof type === "object") {
649
- switch (type.$$typeof) {
650
- case REACT_CONTEXT_TYPE:
651
- var context = type;
652
- return getContextName(context) + ".Consumer";
653
- case REACT_PROVIDER_TYPE:
654
- var provider = type;
655
- return getContextName(provider._context) + ".Provider";
656
- case REACT_FORWARD_REF_TYPE:
657
- return getWrappedName(type, type.render, "ForwardRef");
658
- case REACT_MEMO_TYPE:
659
- var outerName = type.displayName || null;
660
- if (outerName !== null) {
661
- return outerName;
662
- }
663
- return getComponentNameFromType(type.type) || "Memo";
664
- case REACT_LAZY_TYPE: {
665
- var lazyComponent = type;
666
- var payload = lazyComponent._payload;
667
- var init = lazyComponent._init;
668
- try {
669
- return getComponentNameFromType(init(payload));
670
- } catch (x) {
671
- return null;
672
- }
673
- }
674
- }
675
- }
676
- return null;
677
- }
678
- var hasOwnProperty = Object.prototype.hasOwnProperty;
679
- var RESERVED_PROPS = {
680
- key: true,
681
- ref: true,
682
- __self: true,
683
- __source: true
684
- };
685
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
686
- {
687
- didWarnAboutStringRefs = {};
688
- }
689
- function hasValidRef(config) {
690
- {
691
- if (hasOwnProperty.call(config, "ref")) {
692
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
693
- if (getter && getter.isReactWarning) {
694
- return false;
695
- }
696
- }
697
- }
698
- return config.ref !== void 0;
699
- }
700
- function hasValidKey(config) {
701
- {
702
- if (hasOwnProperty.call(config, "key")) {
703
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
704
- if (getter && getter.isReactWarning) {
705
- return false;
706
- }
707
- }
708
- }
709
- return config.key !== void 0;
710
- }
711
- function defineKeyPropWarningGetter(props, displayName) {
712
- var warnAboutAccessingKey = function() {
713
- {
714
- if (!specialPropKeyWarningShown) {
715
- specialPropKeyWarningShown = true;
716
- error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
717
- }
718
- }
719
- };
720
- warnAboutAccessingKey.isReactWarning = true;
721
- Object.defineProperty(props, "key", {
722
- get: warnAboutAccessingKey,
723
- configurable: true
724
- });
725
- }
726
- function defineRefPropWarningGetter(props, displayName) {
727
- var warnAboutAccessingRef = function() {
728
- {
729
- if (!specialPropRefWarningShown) {
730
- specialPropRefWarningShown = true;
731
- error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
732
- }
733
- }
734
- };
735
- warnAboutAccessingRef.isReactWarning = true;
736
- Object.defineProperty(props, "ref", {
737
- get: warnAboutAccessingRef,
738
- configurable: true
739
- });
740
- }
741
- function warnIfStringRefCannotBeAutoConverted(config) {
742
- {
743
- if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
744
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
745
- if (!didWarnAboutStringRefs[componentName]) {
746
- error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
747
- didWarnAboutStringRefs[componentName] = true;
748
- }
749
- }
750
- }
751
- }
752
- var ReactElement = function(type, key, ref, self, source, owner, props) {
753
- var element = {
754
- // This tag allows us to uniquely identify this as a React Element
755
- $$typeof: REACT_ELEMENT_TYPE,
756
- // Built-in properties that belong on the element
757
- type,
758
- key,
759
- ref,
760
- props,
761
- // Record the component responsible for creating this element.
762
- _owner: owner
763
- };
764
- {
765
- element._store = {};
766
- Object.defineProperty(element._store, "validated", {
767
- configurable: false,
768
- enumerable: false,
769
- writable: true,
770
- value: false
771
- });
772
- Object.defineProperty(element, "_self", {
773
- configurable: false,
774
- enumerable: false,
775
- writable: false,
776
- value: self
777
- });
778
- Object.defineProperty(element, "_source", {
779
- configurable: false,
780
- enumerable: false,
781
- writable: false,
782
- value: source
783
- });
784
- if (Object.freeze) {
785
- Object.freeze(element.props);
786
- Object.freeze(element);
787
- }
788
- }
789
- return element;
790
- };
791
- function createElement(type, config, children) {
792
- var propName;
793
- var props = {};
794
- var key = null;
795
- var ref = null;
796
- var self = null;
797
- var source = null;
798
- if (config != null) {
799
- if (hasValidRef(config)) {
800
- ref = config.ref;
801
- {
802
- warnIfStringRefCannotBeAutoConverted(config);
803
- }
804
- }
805
- if (hasValidKey(config)) {
806
- {
807
- checkKeyStringCoercion(config.key);
808
- }
809
- key = "" + config.key;
810
- }
811
- self = config.__self === void 0 ? null : config.__self;
812
- source = config.__source === void 0 ? null : config.__source;
813
- for (propName in config) {
814
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
815
- props[propName] = config[propName];
816
- }
817
- }
818
- }
819
- var childrenLength = arguments.length - 2;
820
- if (childrenLength === 1) {
821
- props.children = children;
822
- } else if (childrenLength > 1) {
823
- var childArray = Array(childrenLength);
824
- for (var i = 0; i < childrenLength; i++) {
825
- childArray[i] = arguments[i + 2];
826
- }
827
- {
828
- if (Object.freeze) {
829
- Object.freeze(childArray);
830
- }
831
- }
832
- props.children = childArray;
833
- }
834
- if (type && type.defaultProps) {
835
- var defaultProps = type.defaultProps;
836
- for (propName in defaultProps) {
837
- if (props[propName] === void 0) {
838
- props[propName] = defaultProps[propName];
839
- }
840
- }
841
- }
842
- {
843
- if (key || ref) {
844
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
845
- if (key) {
846
- defineKeyPropWarningGetter(props, displayName);
847
- }
848
- if (ref) {
849
- defineRefPropWarningGetter(props, displayName);
850
- }
851
- }
852
- }
853
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
854
- }
855
- function cloneAndReplaceKey(oldElement, newKey) {
856
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
857
- return newElement;
858
- }
859
- function cloneElement(element, config, children) {
860
- if (element === null || element === void 0) {
861
- throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
862
- }
863
- var propName;
864
- var props = assign({}, element.props);
865
- var key = element.key;
866
- var ref = element.ref;
867
- var self = element._self;
868
- var source = element._source;
869
- var owner = element._owner;
870
- if (config != null) {
871
- if (hasValidRef(config)) {
872
- ref = config.ref;
873
- owner = ReactCurrentOwner.current;
874
- }
875
- if (hasValidKey(config)) {
876
- {
877
- checkKeyStringCoercion(config.key);
878
- }
879
- key = "" + config.key;
880
- }
881
- var defaultProps;
882
- if (element.type && element.type.defaultProps) {
883
- defaultProps = element.type.defaultProps;
884
- }
885
- for (propName in config) {
886
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
887
- if (config[propName] === void 0 && defaultProps !== void 0) {
888
- props[propName] = defaultProps[propName];
889
- } else {
890
- props[propName] = config[propName];
891
- }
892
- }
893
- }
894
- }
895
- var childrenLength = arguments.length - 2;
896
- if (childrenLength === 1) {
897
- props.children = children;
898
- } else if (childrenLength > 1) {
899
- var childArray = Array(childrenLength);
900
- for (var i = 0; i < childrenLength; i++) {
901
- childArray[i] = arguments[i + 2];
902
- }
903
- props.children = childArray;
904
- }
905
- return ReactElement(element.type, key, ref, self, source, owner, props);
906
- }
907
- function isValidElement(object) {
908
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
909
- }
910
- var SEPARATOR = ".";
911
- var SUBSEPARATOR = ":";
912
- function escape(key) {
913
- var escapeRegex = /[=:]/g;
914
- var escaperLookup = {
915
- "=": "=0",
916
- ":": "=2"
917
- };
918
- var escapedString = key.replace(escapeRegex, function(match) {
919
- return escaperLookup[match];
920
- });
921
- return "$" + escapedString;
922
- }
923
- var didWarnAboutMaps = false;
924
- var userProvidedKeyEscapeRegex = /\/+/g;
925
- function escapeUserProvidedKey(text) {
926
- return text.replace(userProvidedKeyEscapeRegex, "$&/");
927
- }
928
- function getElementKey(element, index) {
929
- if (typeof element === "object" && element !== null && element.key != null) {
930
- {
931
- checkKeyStringCoercion(element.key);
932
- }
933
- return escape("" + element.key);
934
- }
935
- return index.toString(36);
936
- }
937
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
938
- var type = typeof children;
939
- if (type === "undefined" || type === "boolean") {
940
- children = null;
941
- }
942
- var invokeCallback = false;
943
- if (children === null) {
944
- invokeCallback = true;
945
- } else {
946
- switch (type) {
947
- case "string":
948
- case "number":
949
- invokeCallback = true;
950
- break;
951
- case "object":
952
- switch (children.$$typeof) {
953
- case REACT_ELEMENT_TYPE:
954
- case REACT_PORTAL_TYPE:
955
- invokeCallback = true;
956
- }
957
- }
958
- }
959
- if (invokeCallback) {
960
- var _child = children;
961
- var mappedChild = callback(_child);
962
- var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
963
- if (isArray(mappedChild)) {
964
- var escapedChildKey = "";
965
- if (childKey != null) {
966
- escapedChildKey = escapeUserProvidedKey(childKey) + "/";
967
- }
968
- mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
969
- return c;
970
- });
971
- } else if (mappedChild != null) {
972
- if (isValidElement(mappedChild)) {
973
- {
974
- if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
975
- checkKeyStringCoercion(mappedChild.key);
976
- }
977
- }
978
- mappedChild = cloneAndReplaceKey(
979
- mappedChild,
980
- // Keep both the (mapped) and old keys if they differ, just as
981
- // traverseAllChildren used to do for objects as children
982
- escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
983
- (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
984
- // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
985
- // eslint-disable-next-line react-internal/safe-string-coercion
986
- escapeUserProvidedKey("" + mappedChild.key) + "/"
987
- ) : "") + childKey
988
- );
989
- }
990
- array.push(mappedChild);
991
- }
992
- return 1;
993
- }
994
- var child;
995
- var nextName;
996
- var subtreeCount = 0;
997
- var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
998
- if (isArray(children)) {
999
- for (var i = 0; i < children.length; i++) {
1000
- child = children[i];
1001
- nextName = nextNamePrefix + getElementKey(child, i);
1002
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1003
- }
1004
- } else {
1005
- var iteratorFn = getIteratorFn(children);
1006
- if (typeof iteratorFn === "function") {
1007
- var iterableChildren = children;
1008
- {
1009
- if (iteratorFn === iterableChildren.entries) {
1010
- if (!didWarnAboutMaps) {
1011
- warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
1012
- }
1013
- didWarnAboutMaps = true;
1014
- }
1015
- }
1016
- var iterator = iteratorFn.call(iterableChildren);
1017
- var step;
1018
- var ii = 0;
1019
- while (!(step = iterator.next()).done) {
1020
- child = step.value;
1021
- nextName = nextNamePrefix + getElementKey(child, ii++);
1022
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1023
- }
1024
- } else if (type === "object") {
1025
- var childrenString = String(children);
1026
- throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
1027
- }
1028
- }
1029
- return subtreeCount;
1030
- }
1031
- function mapChildren(children, func, context) {
1032
- if (children == null) {
1033
- return children;
1034
- }
1035
- var result = [];
1036
- var count = 0;
1037
- mapIntoArray(children, result, "", "", function(child) {
1038
- return func.call(context, child, count++);
1039
- });
1040
- return result;
1041
- }
1042
- function countChildren(children) {
1043
- var n = 0;
1044
- mapChildren(children, function() {
1045
- n++;
1046
- });
1047
- return n;
1048
- }
1049
- function forEachChildren(children, forEachFunc, forEachContext) {
1050
- mapChildren(children, function() {
1051
- forEachFunc.apply(this, arguments);
1052
- }, forEachContext);
1053
- }
1054
- function toArray(children) {
1055
- return mapChildren(children, function(child) {
1056
- return child;
1057
- }) || [];
1058
- }
1059
- function onlyChild(children) {
1060
- if (!isValidElement(children)) {
1061
- throw new Error("React.Children.only expected to receive a single React element child.");
1062
- }
1063
- return children;
1064
- }
1065
- function createContext(defaultValue) {
1066
- var context = {
1067
- $$typeof: REACT_CONTEXT_TYPE,
1068
- // As a workaround to support multiple concurrent renderers, we categorize
1069
- // some renderers as primary and others as secondary. We only expect
1070
- // there to be two concurrent renderers at most: React Native (primary) and
1071
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
1072
- // Secondary renderers store their context values on separate fields.
1073
- _currentValue: defaultValue,
1074
- _currentValue2: defaultValue,
1075
- // Used to track how many concurrent renderers this context currently
1076
- // supports within in a single renderer. Such as parallel server rendering.
1077
- _threadCount: 0,
1078
- // These are circular
1079
- Provider: null,
1080
- Consumer: null,
1081
- // Add these to use same hidden class in VM as ServerContext
1082
- _defaultValue: null,
1083
- _globalName: null
1084
- };
1085
- context.Provider = {
1086
- $$typeof: REACT_PROVIDER_TYPE,
1087
- _context: context
1088
- };
1089
- var hasWarnedAboutUsingNestedContextConsumers = false;
1090
- var hasWarnedAboutUsingConsumerProvider = false;
1091
- var hasWarnedAboutDisplayNameOnConsumer = false;
1092
- {
1093
- var Consumer = {
1094
- $$typeof: REACT_CONTEXT_TYPE,
1095
- _context: context
1096
- };
1097
- Object.defineProperties(Consumer, {
1098
- Provider: {
1099
- get: function() {
1100
- if (!hasWarnedAboutUsingConsumerProvider) {
1101
- hasWarnedAboutUsingConsumerProvider = true;
1102
- error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
1103
- }
1104
- return context.Provider;
1105
- },
1106
- set: function(_Provider) {
1107
- context.Provider = _Provider;
1108
- }
1109
- },
1110
- _currentValue: {
1111
- get: function() {
1112
- return context._currentValue;
1113
- },
1114
- set: function(_currentValue) {
1115
- context._currentValue = _currentValue;
1116
- }
1117
- },
1118
- _currentValue2: {
1119
- get: function() {
1120
- return context._currentValue2;
1121
- },
1122
- set: function(_currentValue2) {
1123
- context._currentValue2 = _currentValue2;
1124
- }
1125
- },
1126
- _threadCount: {
1127
- get: function() {
1128
- return context._threadCount;
1129
- },
1130
- set: function(_threadCount) {
1131
- context._threadCount = _threadCount;
1132
- }
1133
- },
1134
- Consumer: {
1135
- get: function() {
1136
- if (!hasWarnedAboutUsingNestedContextConsumers) {
1137
- hasWarnedAboutUsingNestedContextConsumers = true;
1138
- error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
1139
- }
1140
- return context.Consumer;
1141
- }
1142
- },
1143
- displayName: {
1144
- get: function() {
1145
- return context.displayName;
1146
- },
1147
- set: function(displayName) {
1148
- if (!hasWarnedAboutDisplayNameOnConsumer) {
1149
- warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
1150
- hasWarnedAboutDisplayNameOnConsumer = true;
1151
- }
1152
- }
1153
- }
1154
- });
1155
- context.Consumer = Consumer;
1156
- }
1157
- {
1158
- context._currentRenderer = null;
1159
- context._currentRenderer2 = null;
1160
- }
1161
- return context;
1162
- }
1163
- var Uninitialized = -1;
1164
- var Pending = 0;
1165
- var Resolved = 1;
1166
- var Rejected = 2;
1167
- function lazyInitializer(payload) {
1168
- if (payload._status === Uninitialized) {
1169
- var ctor = payload._result;
1170
- var thenable = ctor();
1171
- thenable.then(function(moduleObject2) {
1172
- if (payload._status === Pending || payload._status === Uninitialized) {
1173
- var resolved = payload;
1174
- resolved._status = Resolved;
1175
- resolved._result = moduleObject2;
1176
- }
1177
- }, function(error2) {
1178
- if (payload._status === Pending || payload._status === Uninitialized) {
1179
- var rejected = payload;
1180
- rejected._status = Rejected;
1181
- rejected._result = error2;
1182
- }
1183
- });
1184
- if (payload._status === Uninitialized) {
1185
- var pending = payload;
1186
- pending._status = Pending;
1187
- pending._result = thenable;
1188
- }
1189
- }
1190
- if (payload._status === Resolved) {
1191
- var moduleObject = payload._result;
1192
- {
1193
- if (moduleObject === void 0) {
1194
- error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject);
1195
- }
1196
- }
1197
- {
1198
- if (!("default" in moduleObject)) {
1199
- error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
1200
- }
1201
- }
1202
- return moduleObject.default;
1203
- } else {
1204
- throw payload._result;
1205
- }
1206
- }
1207
- function lazy(ctor) {
1208
- var payload = {
1209
- // We use these fields to store the result.
1210
- _status: Uninitialized,
1211
- _result: ctor
1212
- };
1213
- var lazyType = {
1214
- $$typeof: REACT_LAZY_TYPE,
1215
- _payload: payload,
1216
- _init: lazyInitializer
1217
- };
1218
- {
1219
- var defaultProps;
1220
- var propTypes;
1221
- Object.defineProperties(lazyType, {
1222
- defaultProps: {
1223
- configurable: true,
1224
- get: function() {
1225
- return defaultProps;
1226
- },
1227
- set: function(newDefaultProps) {
1228
- error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
1229
- defaultProps = newDefaultProps;
1230
- Object.defineProperty(lazyType, "defaultProps", {
1231
- enumerable: true
1232
- });
1233
- }
1234
- },
1235
- propTypes: {
1236
- configurable: true,
1237
- get: function() {
1238
- return propTypes;
1239
- },
1240
- set: function(newPropTypes) {
1241
- error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
1242
- propTypes = newPropTypes;
1243
- Object.defineProperty(lazyType, "propTypes", {
1244
- enumerable: true
1245
- });
1246
- }
1247
- }
1248
- });
1249
- }
1250
- return lazyType;
1251
- }
1252
- function forwardRef(render) {
1253
- {
1254
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1255
- error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
1256
- } else if (typeof render !== "function") {
1257
- error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
1258
- } else {
1259
- if (render.length !== 0 && render.length !== 2) {
1260
- error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
1261
- }
1262
- }
1263
- if (render != null) {
1264
- if (render.defaultProps != null || render.propTypes != null) {
1265
- error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1266
- }
1267
- }
1268
- }
1269
- var elementType = {
1270
- $$typeof: REACT_FORWARD_REF_TYPE,
1271
- render
1272
- };
1273
- {
1274
- var ownName;
1275
- Object.defineProperty(elementType, "displayName", {
1276
- enumerable: false,
1277
- configurable: true,
1278
- get: function() {
1279
- return ownName;
1280
- },
1281
- set: function(name) {
1282
- ownName = name;
1283
- if (!render.name && !render.displayName) {
1284
- render.displayName = name;
1285
- }
1286
- }
1287
- });
1288
- }
1289
- return elementType;
1290
- }
1291
- var REACT_MODULE_REFERENCE;
1292
- {
1293
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
1294
- }
1295
- function isValidElementType(type) {
1296
- if (typeof type === "string" || typeof type === "function") {
1297
- return true;
1298
- }
1299
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
1300
- return true;
1301
- }
1302
- if (typeof type === "object" && type !== null) {
1303
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
1304
- // types supported by any Flight configuration anywhere since
1305
- // we don't know which Flight build this will end up being used
1306
- // with.
1307
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
1308
- return true;
1309
- }
1310
- }
1311
- return false;
1312
- }
1313
- function memo(type, compare) {
1314
- {
1315
- if (!isValidElementType(type)) {
1316
- error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1317
- }
1318
- }
1319
- var elementType = {
1320
- $$typeof: REACT_MEMO_TYPE,
1321
- type,
1322
- compare: compare === void 0 ? null : compare
1323
- };
1324
- {
1325
- var ownName;
1326
- Object.defineProperty(elementType, "displayName", {
1327
- enumerable: false,
1328
- configurable: true,
1329
- get: function() {
1330
- return ownName;
1331
- },
1332
- set: function(name) {
1333
- ownName = name;
1334
- if (!type.name && !type.displayName) {
1335
- type.displayName = name;
1336
- }
1337
- }
1338
- });
1339
- }
1340
- return elementType;
1341
- }
1342
- function resolveDispatcher() {
1343
- var dispatcher = ReactCurrentDispatcher.current;
1344
- {
1345
- if (dispatcher === null) {
1346
- error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
1347
- }
1348
- }
1349
- return dispatcher;
1350
- }
1351
- function useContext(Context) {
1352
- var dispatcher = resolveDispatcher();
1353
- {
1354
- if (Context._context !== void 0) {
1355
- var realContext = Context._context;
1356
- if (realContext.Consumer === Context) {
1357
- error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
1358
- } else if (realContext.Provider === Context) {
1359
- error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1360
- }
1361
- }
1362
- }
1363
- return dispatcher.useContext(Context);
1364
- }
1365
- function useState(initialState) {
1366
- var dispatcher = resolveDispatcher();
1367
- return dispatcher.useState(initialState);
1368
- }
1369
- function useReducer(reducer, initialArg, init) {
1370
- var dispatcher = resolveDispatcher();
1371
- return dispatcher.useReducer(reducer, initialArg, init);
1372
- }
1373
- function useRef(initialValue) {
1374
- var dispatcher = resolveDispatcher();
1375
- return dispatcher.useRef(initialValue);
1376
- }
1377
- function useEffect(create, deps) {
1378
- var dispatcher = resolveDispatcher();
1379
- return dispatcher.useEffect(create, deps);
1380
- }
1381
- function useInsertionEffect(create, deps) {
1382
- var dispatcher = resolveDispatcher();
1383
- return dispatcher.useInsertionEffect(create, deps);
1384
- }
1385
- function useLayoutEffect(create, deps) {
1386
- var dispatcher = resolveDispatcher();
1387
- return dispatcher.useLayoutEffect(create, deps);
1388
- }
1389
- function useCallback(callback, deps) {
1390
- var dispatcher = resolveDispatcher();
1391
- return dispatcher.useCallback(callback, deps);
1392
- }
1393
- function useMemo(create, deps) {
1394
- var dispatcher = resolveDispatcher();
1395
- return dispatcher.useMemo(create, deps);
1396
- }
1397
- function useImperativeHandle(ref, create, deps) {
1398
- var dispatcher = resolveDispatcher();
1399
- return dispatcher.useImperativeHandle(ref, create, deps);
1400
- }
1401
- function useDebugValue(value, formatterFn) {
1402
- {
1403
- var dispatcher = resolveDispatcher();
1404
- return dispatcher.useDebugValue(value, formatterFn);
1405
- }
1406
- }
1407
- function useTransition() {
1408
- var dispatcher = resolveDispatcher();
1409
- return dispatcher.useTransition();
1410
- }
1411
- function useDeferredValue(value) {
1412
- var dispatcher = resolveDispatcher();
1413
- return dispatcher.useDeferredValue(value);
1414
- }
1415
- function useId() {
1416
- var dispatcher = resolveDispatcher();
1417
- return dispatcher.useId();
1418
- }
1419
- function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
1420
- var dispatcher = resolveDispatcher();
1421
- return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1422
- }
1423
- var disabledDepth = 0;
1424
- var prevLog;
1425
- var prevInfo;
1426
- var prevWarn;
1427
- var prevError;
1428
- var prevGroup;
1429
- var prevGroupCollapsed;
1430
- var prevGroupEnd;
1431
- function disabledLog() {
1432
- }
1433
- disabledLog.__reactDisabledLog = true;
1434
- function disableLogs() {
1435
- {
1436
- if (disabledDepth === 0) {
1437
- prevLog = console.log;
1438
- prevInfo = console.info;
1439
- prevWarn = console.warn;
1440
- prevError = console.error;
1441
- prevGroup = console.group;
1442
- prevGroupCollapsed = console.groupCollapsed;
1443
- prevGroupEnd = console.groupEnd;
1444
- var props = {
1445
- configurable: true,
1446
- enumerable: true,
1447
- value: disabledLog,
1448
- writable: true
1449
- };
1450
- Object.defineProperties(console, {
1451
- info: props,
1452
- log: props,
1453
- warn: props,
1454
- error: props,
1455
- group: props,
1456
- groupCollapsed: props,
1457
- groupEnd: props
1458
- });
1459
- }
1460
- disabledDepth++;
1461
- }
1462
- }
1463
- function reenableLogs() {
1464
- {
1465
- disabledDepth--;
1466
- if (disabledDepth === 0) {
1467
- var props = {
1468
- configurable: true,
1469
- enumerable: true,
1470
- writable: true
1471
- };
1472
- Object.defineProperties(console, {
1473
- log: assign({}, props, {
1474
- value: prevLog
1475
- }),
1476
- info: assign({}, props, {
1477
- value: prevInfo
1478
- }),
1479
- warn: assign({}, props, {
1480
- value: prevWarn
1481
- }),
1482
- error: assign({}, props, {
1483
- value: prevError
1484
- }),
1485
- group: assign({}, props, {
1486
- value: prevGroup
1487
- }),
1488
- groupCollapsed: assign({}, props, {
1489
- value: prevGroupCollapsed
1490
- }),
1491
- groupEnd: assign({}, props, {
1492
- value: prevGroupEnd
1493
- })
1494
- });
1495
- }
1496
- if (disabledDepth < 0) {
1497
- error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1498
- }
1499
- }
1500
- }
1501
- var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1502
- var prefix;
1503
- function describeBuiltInComponentFrame(name, source, ownerFn) {
1504
- {
1505
- if (prefix === void 0) {
1506
- try {
1507
- throw Error();
1508
- } catch (x) {
1509
- var match = x.stack.trim().match(/\n( *(at )?)/);
1510
- prefix = match && match[1] || "";
1511
- }
1512
- }
1513
- return "\n" + prefix + name;
1514
- }
1515
- }
1516
- var reentry = false;
1517
- var componentFrameCache;
1518
- {
1519
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
1520
- componentFrameCache = new PossiblyWeakMap();
1521
- }
1522
- function describeNativeComponentFrame(fn, construct) {
1523
- if (!fn || reentry) {
1524
- return "";
1525
- }
1526
- {
1527
- var frame = componentFrameCache.get(fn);
1528
- if (frame !== void 0) {
1529
- return frame;
1530
- }
1531
- }
1532
- var control;
1533
- reentry = true;
1534
- var previousPrepareStackTrace = Error.prepareStackTrace;
1535
- Error.prepareStackTrace = void 0;
1536
- var previousDispatcher;
1537
- {
1538
- previousDispatcher = ReactCurrentDispatcher$1.current;
1539
- ReactCurrentDispatcher$1.current = null;
1540
- disableLogs();
1541
- }
1542
- try {
1543
- if (construct) {
1544
- var Fake = function() {
1545
- throw Error();
1546
- };
1547
- Object.defineProperty(Fake.prototype, "props", {
1548
- set: function() {
1549
- throw Error();
1550
- }
1551
- });
1552
- if (typeof Reflect === "object" && Reflect.construct) {
1553
- try {
1554
- Reflect.construct(Fake, []);
1555
- } catch (x) {
1556
- control = x;
1557
- }
1558
- Reflect.construct(fn, [], Fake);
1559
- } else {
1560
- try {
1561
- Fake.call();
1562
- } catch (x) {
1563
- control = x;
1564
- }
1565
- fn.call(Fake.prototype);
1566
- }
1567
- } else {
1568
- try {
1569
- throw Error();
1570
- } catch (x) {
1571
- control = x;
1572
- }
1573
- fn();
1574
- }
1575
- } catch (sample) {
1576
- if (sample && control && typeof sample.stack === "string") {
1577
- var sampleLines = sample.stack.split("\n");
1578
- var controlLines = control.stack.split("\n");
1579
- var s = sampleLines.length - 1;
1580
- var c = controlLines.length - 1;
1581
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1582
- c--;
1583
- }
1584
- for (; s >= 1 && c >= 0; s--, c--) {
1585
- if (sampleLines[s] !== controlLines[c]) {
1586
- if (s !== 1 || c !== 1) {
1587
- do {
1588
- s--;
1589
- c--;
1590
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
1591
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
1592
- if (fn.displayName && _frame.includes("<anonymous>")) {
1593
- _frame = _frame.replace("<anonymous>", fn.displayName);
1594
- }
1595
- {
1596
- if (typeof fn === "function") {
1597
- componentFrameCache.set(fn, _frame);
1598
- }
1599
- }
1600
- return _frame;
1601
- }
1602
- } while (s >= 1 && c >= 0);
1603
- }
1604
- break;
1605
- }
1606
- }
1607
- }
1608
- } finally {
1609
- reentry = false;
1610
- {
1611
- ReactCurrentDispatcher$1.current = previousDispatcher;
1612
- reenableLogs();
1613
- }
1614
- Error.prepareStackTrace = previousPrepareStackTrace;
1615
- }
1616
- var name = fn ? fn.displayName || fn.name : "";
1617
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
1618
- {
1619
- if (typeof fn === "function") {
1620
- componentFrameCache.set(fn, syntheticFrame);
1621
- }
1622
- }
1623
- return syntheticFrame;
1624
- }
1625
- function describeFunctionComponentFrame(fn, source, ownerFn) {
1626
- {
1627
- return describeNativeComponentFrame(fn, false);
1628
- }
1629
- }
1630
- function shouldConstruct(Component2) {
1631
- var prototype = Component2.prototype;
1632
- return !!(prototype && prototype.isReactComponent);
1633
- }
1634
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1635
- if (type == null) {
1636
- return "";
1637
- }
1638
- if (typeof type === "function") {
1639
- {
1640
- return describeNativeComponentFrame(type, shouldConstruct(type));
1641
- }
1642
- }
1643
- if (typeof type === "string") {
1644
- return describeBuiltInComponentFrame(type);
1645
- }
1646
- switch (type) {
1647
- case REACT_SUSPENSE_TYPE:
1648
- return describeBuiltInComponentFrame("Suspense");
1649
- case REACT_SUSPENSE_LIST_TYPE:
1650
- return describeBuiltInComponentFrame("SuspenseList");
1651
- }
1652
- if (typeof type === "object") {
1653
- switch (type.$$typeof) {
1654
- case REACT_FORWARD_REF_TYPE:
1655
- return describeFunctionComponentFrame(type.render);
1656
- case REACT_MEMO_TYPE:
1657
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1658
- case REACT_LAZY_TYPE: {
1659
- var lazyComponent = type;
1660
- var payload = lazyComponent._payload;
1661
- var init = lazyComponent._init;
1662
- try {
1663
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1664
- } catch (x) {
1665
- }
1666
- }
1667
- }
1668
- }
1669
- return "";
1670
- }
1671
- var loggedTypeFailures = {};
1672
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1673
- function setCurrentlyValidatingElement(element) {
1674
- {
1675
- if (element) {
1676
- var owner = element._owner;
1677
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1678
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1679
- } else {
1680
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1681
- }
1682
- }
1683
- }
1684
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
1685
- {
1686
- var has = Function.call.bind(hasOwnProperty);
1687
- for (var typeSpecName in typeSpecs) {
1688
- if (has(typeSpecs, typeSpecName)) {
1689
- var error$1 = void 0;
1690
- try {
1691
- if (typeof typeSpecs[typeSpecName] !== "function") {
1692
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1693
- err.name = "Invariant Violation";
1694
- throw err;
1695
- }
1696
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1697
- } catch (ex) {
1698
- error$1 = ex;
1699
- }
1700
- if (error$1 && !(error$1 instanceof Error)) {
1701
- setCurrentlyValidatingElement(element);
1702
- error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
1703
- setCurrentlyValidatingElement(null);
1704
- }
1705
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1706
- loggedTypeFailures[error$1.message] = true;
1707
- setCurrentlyValidatingElement(element);
1708
- error("Failed %s type: %s", location, error$1.message);
1709
- setCurrentlyValidatingElement(null);
1710
- }
1711
- }
1712
- }
1713
- }
1714
- }
1715
- function setCurrentlyValidatingElement$1(element) {
1716
- {
1717
- if (element) {
1718
- var owner = element._owner;
1719
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1720
- setExtraStackFrame(stack);
1721
- } else {
1722
- setExtraStackFrame(null);
1723
- }
1724
- }
1725
- }
1726
- var propTypesMisspellWarningShown;
1727
- {
1728
- propTypesMisspellWarningShown = false;
1729
- }
1730
- function getDeclarationErrorAddendum() {
1731
- if (ReactCurrentOwner.current) {
1732
- var name = getComponentNameFromType(ReactCurrentOwner.current.type);
1733
- if (name) {
1734
- return "\n\nCheck the render method of `" + name + "`.";
1735
- }
1736
- }
1737
- return "";
1738
- }
1739
- function getSourceInfoErrorAddendum(source) {
1740
- if (source !== void 0) {
1741
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1742
- var lineNumber = source.lineNumber;
1743
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1744
- }
1745
- return "";
1746
- }
1747
- function getSourceInfoErrorAddendumForProps(elementProps) {
1748
- if (elementProps !== null && elementProps !== void 0) {
1749
- return getSourceInfoErrorAddendum(elementProps.__source);
1750
- }
1751
- return "";
1752
- }
1753
- var ownerHasKeyUseWarning = {};
1754
- function getCurrentComponentErrorInfo(parentType) {
1755
- var info = getDeclarationErrorAddendum();
1756
- if (!info) {
1757
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1758
- if (parentName) {
1759
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1760
- }
1761
- }
1762
- return info;
1763
- }
1764
- function validateExplicitKey(element, parentType) {
1765
- if (!element._store || element._store.validated || element.key != null) {
1766
- return;
1767
- }
1768
- element._store.validated = true;
1769
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1770
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1771
- return;
1772
- }
1773
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1774
- var childOwner = "";
1775
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1776
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1777
- }
1778
- {
1779
- setCurrentlyValidatingElement$1(element);
1780
- error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
1781
- setCurrentlyValidatingElement$1(null);
1782
- }
1783
- }
1784
- function validateChildKeys(node, parentType) {
1785
- if (typeof node !== "object") {
1786
- return;
1787
- }
1788
- if (isArray(node)) {
1789
- for (var i = 0; i < node.length; i++) {
1790
- var child = node[i];
1791
- if (isValidElement(child)) {
1792
- validateExplicitKey(child, parentType);
1793
- }
1794
- }
1795
- } else if (isValidElement(node)) {
1796
- if (node._store) {
1797
- node._store.validated = true;
1798
- }
1799
- } else if (node) {
1800
- var iteratorFn = getIteratorFn(node);
1801
- if (typeof iteratorFn === "function") {
1802
- if (iteratorFn !== node.entries) {
1803
- var iterator = iteratorFn.call(node);
1804
- var step;
1805
- while (!(step = iterator.next()).done) {
1806
- if (isValidElement(step.value)) {
1807
- validateExplicitKey(step.value, parentType);
1808
- }
1809
- }
1810
- }
1811
- }
1812
- }
1813
- }
1814
- function validatePropTypes(element) {
1815
- {
1816
- var type = element.type;
1817
- if (type === null || type === void 0 || typeof type === "string") {
1818
- return;
1819
- }
1820
- var propTypes;
1821
- if (typeof type === "function") {
1822
- propTypes = type.propTypes;
1823
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1824
- // Inner props are checked in the reconciler.
1825
- type.$$typeof === REACT_MEMO_TYPE)) {
1826
- propTypes = type.propTypes;
1827
- } else {
1828
- return;
1829
- }
1830
- if (propTypes) {
1831
- var name = getComponentNameFromType(type);
1832
- checkPropTypes(propTypes, element.props, "prop", name, element);
1833
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1834
- propTypesMisspellWarningShown = true;
1835
- var _name = getComponentNameFromType(type);
1836
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
1837
- }
1838
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
1839
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1840
- }
1841
- }
1842
- }
1843
- function validateFragmentProps(fragment) {
1844
- {
1845
- var keys = Object.keys(fragment.props);
1846
- for (var i = 0; i < keys.length; i++) {
1847
- var key = keys[i];
1848
- if (key !== "children" && key !== "key") {
1849
- setCurrentlyValidatingElement$1(fragment);
1850
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1851
- setCurrentlyValidatingElement$1(null);
1852
- break;
1853
- }
1854
- }
1855
- if (fragment.ref !== null) {
1856
- setCurrentlyValidatingElement$1(fragment);
1857
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
1858
- setCurrentlyValidatingElement$1(null);
1859
- }
1860
- }
1861
- }
1862
- function createElementWithValidation(type, props, children) {
1863
- var validType = isValidElementType(type);
1864
- if (!validType) {
1865
- var info = "";
1866
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
1867
- info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
1868
- }
1869
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1870
- if (sourceInfo) {
1871
- info += sourceInfo;
1872
- } else {
1873
- info += getDeclarationErrorAddendum();
1874
- }
1875
- var typeString;
1876
- if (type === null) {
1877
- typeString = "null";
1878
- } else if (isArray(type)) {
1879
- typeString = "array";
1880
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1881
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
1882
- info = " Did you accidentally export a JSX literal instead of a component?";
1883
- } else {
1884
- typeString = typeof type;
1885
- }
1886
- {
1887
- error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
1888
- }
1889
- }
1890
- var element = createElement.apply(this, arguments);
1891
- if (element == null) {
1892
- return element;
1893
- }
1894
- if (validType) {
1895
- for (var i = 2; i < arguments.length; i++) {
1896
- validateChildKeys(arguments[i], type);
1897
- }
1898
- }
1899
- if (type === REACT_FRAGMENT_TYPE) {
1900
- validateFragmentProps(element);
1901
- } else {
1902
- validatePropTypes(element);
1903
- }
1904
- return element;
1905
- }
1906
- var didWarnAboutDeprecatedCreateFactory = false;
1907
- function createFactoryWithValidation(type) {
1908
- var validatedFactory = createElementWithValidation.bind(null, type);
1909
- validatedFactory.type = type;
1910
- {
1911
- if (!didWarnAboutDeprecatedCreateFactory) {
1912
- didWarnAboutDeprecatedCreateFactory = true;
1913
- warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
1914
- }
1915
- Object.defineProperty(validatedFactory, "type", {
1916
- enumerable: false,
1917
- get: function() {
1918
- warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1919
- Object.defineProperty(this, "type", {
1920
- value: type
1921
- });
1922
- return type;
1923
- }
1924
- });
1925
- }
1926
- return validatedFactory;
1927
- }
1928
- function cloneElementWithValidation(element, props, children) {
1929
- var newElement = cloneElement.apply(this, arguments);
1930
- for (var i = 2; i < arguments.length; i++) {
1931
- validateChildKeys(arguments[i], newElement.type);
1932
- }
1933
- validatePropTypes(newElement);
1934
- return newElement;
1935
- }
1936
- function startTransition(scope, options) {
1937
- var prevTransition = ReactCurrentBatchConfig.transition;
1938
- ReactCurrentBatchConfig.transition = {};
1939
- var currentTransition = ReactCurrentBatchConfig.transition;
1940
- {
1941
- ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
1942
- }
1943
- try {
1944
- scope();
1945
- } finally {
1946
- ReactCurrentBatchConfig.transition = prevTransition;
1947
- {
1948
- if (prevTransition === null && currentTransition._updatedFibers) {
1949
- var updatedFibersCount = currentTransition._updatedFibers.size;
1950
- if (updatedFibersCount > 10) {
1951
- warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
1952
- }
1953
- currentTransition._updatedFibers.clear();
1954
- }
1955
- }
1956
- }
1957
- }
1958
- var didWarnAboutMessageChannel = false;
1959
- var enqueueTaskImpl = null;
1960
- function enqueueTask(task) {
1961
- if (enqueueTaskImpl === null) {
1962
- try {
1963
- var requireString = ("require" + Math.random()).slice(0, 7);
1964
- var nodeRequire = module2 && module2[requireString];
1965
- enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate;
1966
- } catch (_err) {
1967
- enqueueTaskImpl = function(callback) {
1968
- {
1969
- if (didWarnAboutMessageChannel === false) {
1970
- didWarnAboutMessageChannel = true;
1971
- if (typeof MessageChannel === "undefined") {
1972
- error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.");
1973
- }
1974
- }
1975
- }
1976
- var channel = new MessageChannel();
1977
- channel.port1.onmessage = callback;
1978
- channel.port2.postMessage(void 0);
1979
- };
1980
- }
1981
- }
1982
- return enqueueTaskImpl(task);
1983
- }
1984
- var actScopeDepth = 0;
1985
- var didWarnNoAwaitAct = false;
1986
- function act(callback) {
1987
- {
1988
- var prevActScopeDepth = actScopeDepth;
1989
- actScopeDepth++;
1990
- if (ReactCurrentActQueue.current === null) {
1991
- ReactCurrentActQueue.current = [];
1992
- }
1993
- var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
1994
- var result;
1995
- try {
1996
- ReactCurrentActQueue.isBatchingLegacy = true;
1997
- result = callback();
1998
- if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
1999
- var queue = ReactCurrentActQueue.current;
2000
- if (queue !== null) {
2001
- ReactCurrentActQueue.didScheduleLegacyUpdate = false;
2002
- flushActQueue(queue);
2003
- }
2004
- }
2005
- } catch (error2) {
2006
- popActScope(prevActScopeDepth);
2007
- throw error2;
2008
- } finally {
2009
- ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
2010
- }
2011
- if (result !== null && typeof result === "object" && typeof result.then === "function") {
2012
- var thenableResult = result;
2013
- var wasAwaited = false;
2014
- var thenable = {
2015
- then: function(resolve, reject) {
2016
- wasAwaited = true;
2017
- thenableResult.then(function(returnValue2) {
2018
- popActScope(prevActScopeDepth);
2019
- if (actScopeDepth === 0) {
2020
- recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
2021
- } else {
2022
- resolve(returnValue2);
2023
- }
2024
- }, function(error2) {
2025
- popActScope(prevActScopeDepth);
2026
- reject(error2);
2027
- });
2028
- }
2029
- };
2030
- {
2031
- if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
2032
- Promise.resolve().then(function() {
2033
- }).then(function() {
2034
- if (!wasAwaited) {
2035
- didWarnNoAwaitAct = true;
2036
- error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);");
2037
- }
2038
- });
2039
- }
2040
- }
2041
- return thenable;
2042
- } else {
2043
- var returnValue = result;
2044
- popActScope(prevActScopeDepth);
2045
- if (actScopeDepth === 0) {
2046
- var _queue = ReactCurrentActQueue.current;
2047
- if (_queue !== null) {
2048
- flushActQueue(_queue);
2049
- ReactCurrentActQueue.current = null;
2050
- }
2051
- var _thenable = {
2052
- then: function(resolve, reject) {
2053
- if (ReactCurrentActQueue.current === null) {
2054
- ReactCurrentActQueue.current = [];
2055
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2056
- } else {
2057
- resolve(returnValue);
2058
- }
2059
- }
2060
- };
2061
- return _thenable;
2062
- } else {
2063
- var _thenable2 = {
2064
- then: function(resolve, reject) {
2065
- resolve(returnValue);
2066
- }
2067
- };
2068
- return _thenable2;
2069
- }
2070
- }
2071
- }
2072
- }
2073
- function popActScope(prevActScopeDepth) {
2074
- {
2075
- if (prevActScopeDepth !== actScopeDepth - 1) {
2076
- error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
2077
- }
2078
- actScopeDepth = prevActScopeDepth;
2079
- }
2080
- }
2081
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
2082
- {
2083
- var queue = ReactCurrentActQueue.current;
2084
- if (queue !== null) {
2085
- try {
2086
- flushActQueue(queue);
2087
- enqueueTask(function() {
2088
- if (queue.length === 0) {
2089
- ReactCurrentActQueue.current = null;
2090
- resolve(returnValue);
2091
- } else {
2092
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2093
- }
2094
- });
2095
- } catch (error2) {
2096
- reject(error2);
2097
- }
2098
- } else {
2099
- resolve(returnValue);
2100
- }
2101
- }
2102
- }
2103
- var isFlushing = false;
2104
- function flushActQueue(queue) {
2105
- {
2106
- if (!isFlushing) {
2107
- isFlushing = true;
2108
- var i = 0;
2109
- try {
2110
- for (; i < queue.length; i++) {
2111
- var callback = queue[i];
2112
- do {
2113
- callback = callback(true);
2114
- } while (callback !== null);
2115
- }
2116
- queue.length = 0;
2117
- } catch (error2) {
2118
- queue = queue.slice(i + 1);
2119
- throw error2;
2120
- } finally {
2121
- isFlushing = false;
2122
- }
2123
- }
2124
- }
2125
- }
2126
- var createElement$1 = createElementWithValidation;
2127
- var cloneElement$1 = cloneElementWithValidation;
2128
- var createFactory = createFactoryWithValidation;
2129
- var Children = {
2130
- map: mapChildren,
2131
- forEach: forEachChildren,
2132
- count: countChildren,
2133
- toArray,
2134
- only: onlyChild
2135
- };
2136
- exports2.Children = Children;
2137
- exports2.Component = Component;
2138
- exports2.Fragment = REACT_FRAGMENT_TYPE;
2139
- exports2.Profiler = REACT_PROFILER_TYPE;
2140
- exports2.PureComponent = PureComponent;
2141
- exports2.StrictMode = REACT_STRICT_MODE_TYPE;
2142
- exports2.Suspense = REACT_SUSPENSE_TYPE;
2143
- exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2144
- exports2.act = act;
2145
- exports2.cloneElement = cloneElement$1;
2146
- exports2.createContext = createContext;
2147
- exports2.createElement = createElement$1;
2148
- exports2.createFactory = createFactory;
2149
- exports2.createRef = createRef;
2150
- exports2.forwardRef = forwardRef;
2151
- exports2.isValidElement = isValidElement;
2152
- exports2.lazy = lazy;
2153
- exports2.memo = memo;
2154
- exports2.startTransition = startTransition;
2155
- exports2.unstable_act = act;
2156
- exports2.useCallback = useCallback;
2157
- exports2.useContext = useContext;
2158
- exports2.useDebugValue = useDebugValue;
2159
- exports2.useDeferredValue = useDeferredValue;
2160
- exports2.useEffect = useEffect;
2161
- exports2.useId = useId;
2162
- exports2.useImperativeHandle = useImperativeHandle;
2163
- exports2.useInsertionEffect = useInsertionEffect;
2164
- exports2.useLayoutEffect = useLayoutEffect;
2165
- exports2.useMemo = useMemo;
2166
- exports2.useReducer = useReducer;
2167
- exports2.useRef = useRef;
2168
- exports2.useState = useState;
2169
- exports2.useSyncExternalStore = useSyncExternalStore;
2170
- exports2.useTransition = useTransition;
2171
- exports2.version = ReactVersion;
2172
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
2173
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2174
- }
2175
- })();
2176
- }
2177
- }
2178
- });
2179
-
2180
- // node_modules/react/index.js
2181
- var require_react = __commonJS({
2182
- "node_modules/react/index.js"(exports2, module2) {
2183
- "use strict";
2184
- if (process.env.NODE_ENV === "production") {
2185
- module2.exports = require_react_production_min();
2186
- } else {
2187
- module2.exports = require_react_development();
2188
- }
2189
- }
2190
- });
2191
-
2192
- // node_modules/react/cjs/react-jsx-runtime.production.min.js
2193
- var require_react_jsx_runtime_production_min = __commonJS({
2194
- "node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports2) {
2195
- "use strict";
2196
- var f = require_react();
2197
- var k = Symbol.for("react.element");
2198
- var l = Symbol.for("react.fragment");
2199
- var m = Object.prototype.hasOwnProperty;
2200
- var n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
2201
- var p = { key: true, ref: true, __self: true, __source: true };
2202
- function q(c, a, g) {
2203
- var b, d = {}, e = null, h = null;
2204
- void 0 !== g && (e = "" + g);
2205
- void 0 !== a.key && (e = "" + a.key);
2206
- void 0 !== a.ref && (h = a.ref);
2207
- for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
2208
- if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
2209
- return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
2210
- }
2211
- exports2.Fragment = l;
2212
- exports2.jsx = q;
2213
- exports2.jsxs = q;
2214
- }
2215
- });
2216
-
2217
- // node_modules/react/cjs/react-jsx-runtime.development.js
2218
- var require_react_jsx_runtime_development = __commonJS({
2219
- "node_modules/react/cjs/react-jsx-runtime.development.js"(exports2) {
2220
- "use strict";
2221
- if (process.env.NODE_ENV !== "production") {
2222
- (function() {
2223
- "use strict";
2224
- var React = require_react();
2225
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
2226
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
2227
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
2228
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
2229
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
2230
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
2231
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
2232
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
2233
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
2234
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
2235
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
2236
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
2237
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
2238
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
2239
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
2240
- function getIteratorFn(maybeIterable) {
2241
- if (maybeIterable === null || typeof maybeIterable !== "object") {
2242
- return null;
2243
- }
2244
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
2245
- if (typeof maybeIterator === "function") {
2246
- return maybeIterator;
2247
- }
2248
- return null;
2249
- }
2250
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2251
- function error(format) {
2252
- {
2253
- {
2254
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2255
- args[_key2 - 1] = arguments[_key2];
2256
- }
2257
- printWarning("error", format, args);
2258
- }
2259
- }
2260
- }
2261
- function printWarning(level, format, args) {
2262
- {
2263
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
2264
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
2265
- if (stack !== "") {
2266
- format += "%s";
2267
- args = args.concat([stack]);
2268
- }
2269
- var argsWithFormat = args.map(function(item) {
2270
- return String(item);
2271
- });
2272
- argsWithFormat.unshift("Warning: " + format);
2273
- Function.prototype.apply.call(console[level], console, argsWithFormat);
2274
- }
2275
- }
2276
- var enableScopeAPI = false;
2277
- var enableCacheElement = false;
2278
- var enableTransitionTracing = false;
2279
- var enableLegacyHidden = false;
2280
- var enableDebugTracing = false;
2281
- var REACT_MODULE_REFERENCE;
2282
- {
2283
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
2284
- }
2285
- function isValidElementType(type) {
2286
- if (typeof type === "string" || typeof type === "function") {
2287
- return true;
2288
- }
2289
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
2290
- return true;
2291
- }
2292
- if (typeof type === "object" && type !== null) {
2293
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
2294
- // types supported by any Flight configuration anywhere since
2295
- // we don't know which Flight build this will end up being used
2296
- // with.
2297
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
2298
- return true;
2299
- }
2300
- }
2301
- return false;
2302
- }
2303
- function getWrappedName(outerType, innerType, wrapperName) {
2304
- var displayName = outerType.displayName;
2305
- if (displayName) {
2306
- return displayName;
2307
- }
2308
- var functionName = innerType.displayName || innerType.name || "";
2309
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
2310
- }
2311
- function getContextName(type) {
2312
- return type.displayName || "Context";
2313
- }
2314
- function getComponentNameFromType(type) {
2315
- if (type == null) {
2316
- return null;
2317
- }
2318
- {
2319
- if (typeof type.tag === "number") {
2320
- error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
2321
- }
2322
- }
2323
- if (typeof type === "function") {
2324
- return type.displayName || type.name || null;
2325
- }
2326
- if (typeof type === "string") {
2327
- return type;
2328
- }
2329
- switch (type) {
2330
- case REACT_FRAGMENT_TYPE:
2331
- return "Fragment";
2332
- case REACT_PORTAL_TYPE:
2333
- return "Portal";
2334
- case REACT_PROFILER_TYPE:
2335
- return "Profiler";
2336
- case REACT_STRICT_MODE_TYPE:
2337
- return "StrictMode";
2338
- case REACT_SUSPENSE_TYPE:
2339
- return "Suspense";
2340
- case REACT_SUSPENSE_LIST_TYPE:
2341
- return "SuspenseList";
2342
- }
2343
- if (typeof type === "object") {
2344
- switch (type.$$typeof) {
2345
- case REACT_CONTEXT_TYPE:
2346
- var context = type;
2347
- return getContextName(context) + ".Consumer";
2348
- case REACT_PROVIDER_TYPE:
2349
- var provider = type;
2350
- return getContextName(provider._context) + ".Provider";
2351
- case REACT_FORWARD_REF_TYPE:
2352
- return getWrappedName(type, type.render, "ForwardRef");
2353
- case REACT_MEMO_TYPE:
2354
- var outerName = type.displayName || null;
2355
- if (outerName !== null) {
2356
- return outerName;
2357
- }
2358
- return getComponentNameFromType(type.type) || "Memo";
2359
- case REACT_LAZY_TYPE: {
2360
- var lazyComponent = type;
2361
- var payload = lazyComponent._payload;
2362
- var init = lazyComponent._init;
2363
- try {
2364
- return getComponentNameFromType(init(payload));
2365
- } catch (x) {
2366
- return null;
2367
- }
2368
- }
2369
- }
2370
- }
2371
- return null;
2372
- }
2373
- var assign = Object.assign;
2374
- var disabledDepth = 0;
2375
- var prevLog;
2376
- var prevInfo;
2377
- var prevWarn;
2378
- var prevError;
2379
- var prevGroup;
2380
- var prevGroupCollapsed;
2381
- var prevGroupEnd;
2382
- function disabledLog() {
2383
- }
2384
- disabledLog.__reactDisabledLog = true;
2385
- function disableLogs() {
2386
- {
2387
- if (disabledDepth === 0) {
2388
- prevLog = console.log;
2389
- prevInfo = console.info;
2390
- prevWarn = console.warn;
2391
- prevError = console.error;
2392
- prevGroup = console.group;
2393
- prevGroupCollapsed = console.groupCollapsed;
2394
- prevGroupEnd = console.groupEnd;
2395
- var props = {
2396
- configurable: true,
2397
- enumerable: true,
2398
- value: disabledLog,
2399
- writable: true
2400
- };
2401
- Object.defineProperties(console, {
2402
- info: props,
2403
- log: props,
2404
- warn: props,
2405
- error: props,
2406
- group: props,
2407
- groupCollapsed: props,
2408
- groupEnd: props
2409
- });
2410
- }
2411
- disabledDepth++;
2412
- }
2413
- }
2414
- function reenableLogs() {
2415
- {
2416
- disabledDepth--;
2417
- if (disabledDepth === 0) {
2418
- var props = {
2419
- configurable: true,
2420
- enumerable: true,
2421
- writable: true
2422
- };
2423
- Object.defineProperties(console, {
2424
- log: assign({}, props, {
2425
- value: prevLog
2426
- }),
2427
- info: assign({}, props, {
2428
- value: prevInfo
2429
- }),
2430
- warn: assign({}, props, {
2431
- value: prevWarn
2432
- }),
2433
- error: assign({}, props, {
2434
- value: prevError
2435
- }),
2436
- group: assign({}, props, {
2437
- value: prevGroup
2438
- }),
2439
- groupCollapsed: assign({}, props, {
2440
- value: prevGroupCollapsed
2441
- }),
2442
- groupEnd: assign({}, props, {
2443
- value: prevGroupEnd
2444
- })
2445
- });
2446
- }
2447
- if (disabledDepth < 0) {
2448
- error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
2449
- }
2450
- }
2451
- }
2452
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
2453
- var prefix;
2454
- function describeBuiltInComponentFrame(name, source, ownerFn) {
2455
- {
2456
- if (prefix === void 0) {
2457
- try {
2458
- throw Error();
2459
- } catch (x) {
2460
- var match = x.stack.trim().match(/\n( *(at )?)/);
2461
- prefix = match && match[1] || "";
2462
- }
2463
- }
2464
- return "\n" + prefix + name;
2465
- }
2466
- }
2467
- var reentry = false;
2468
- var componentFrameCache;
2469
- {
2470
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
2471
- componentFrameCache = new PossiblyWeakMap();
2472
- }
2473
- function describeNativeComponentFrame(fn, construct) {
2474
- if (!fn || reentry) {
2475
- return "";
2476
- }
2477
- {
2478
- var frame = componentFrameCache.get(fn);
2479
- if (frame !== void 0) {
2480
- return frame;
2481
- }
2482
- }
2483
- var control;
2484
- reentry = true;
2485
- var previousPrepareStackTrace = Error.prepareStackTrace;
2486
- Error.prepareStackTrace = void 0;
2487
- var previousDispatcher;
2488
- {
2489
- previousDispatcher = ReactCurrentDispatcher.current;
2490
- ReactCurrentDispatcher.current = null;
2491
- disableLogs();
2492
- }
2493
- try {
2494
- if (construct) {
2495
- var Fake = function() {
2496
- throw Error();
2497
- };
2498
- Object.defineProperty(Fake.prototype, "props", {
2499
- set: function() {
2500
- throw Error();
2501
- }
2502
- });
2503
- if (typeof Reflect === "object" && Reflect.construct) {
2504
- try {
2505
- Reflect.construct(Fake, []);
2506
- } catch (x) {
2507
- control = x;
2508
- }
2509
- Reflect.construct(fn, [], Fake);
2510
- } else {
2511
- try {
2512
- Fake.call();
2513
- } catch (x) {
2514
- control = x;
2515
- }
2516
- fn.call(Fake.prototype);
2517
- }
2518
- } else {
2519
- try {
2520
- throw Error();
2521
- } catch (x) {
2522
- control = x;
2523
- }
2524
- fn();
2525
- }
2526
- } catch (sample) {
2527
- if (sample && control && typeof sample.stack === "string") {
2528
- var sampleLines = sample.stack.split("\n");
2529
- var controlLines = control.stack.split("\n");
2530
- var s = sampleLines.length - 1;
2531
- var c = controlLines.length - 1;
2532
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2533
- c--;
2534
- }
2535
- for (; s >= 1 && c >= 0; s--, c--) {
2536
- if (sampleLines[s] !== controlLines[c]) {
2537
- if (s !== 1 || c !== 1) {
2538
- do {
2539
- s--;
2540
- c--;
2541
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
2542
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
2543
- if (fn.displayName && _frame.includes("<anonymous>")) {
2544
- _frame = _frame.replace("<anonymous>", fn.displayName);
2545
- }
2546
- {
2547
- if (typeof fn === "function") {
2548
- componentFrameCache.set(fn, _frame);
2549
- }
2550
- }
2551
- return _frame;
2552
- }
2553
- } while (s >= 1 && c >= 0);
2554
- }
2555
- break;
2556
- }
2557
- }
2558
- }
2559
- } finally {
2560
- reentry = false;
2561
- {
2562
- ReactCurrentDispatcher.current = previousDispatcher;
2563
- reenableLogs();
2564
- }
2565
- Error.prepareStackTrace = previousPrepareStackTrace;
2566
- }
2567
- var name = fn ? fn.displayName || fn.name : "";
2568
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
2569
- {
2570
- if (typeof fn === "function") {
2571
- componentFrameCache.set(fn, syntheticFrame);
2572
- }
2573
- }
2574
- return syntheticFrame;
2575
- }
2576
- function describeFunctionComponentFrame(fn, source, ownerFn) {
2577
- {
2578
- return describeNativeComponentFrame(fn, false);
2579
- }
2580
- }
2581
- function shouldConstruct(Component) {
2582
- var prototype = Component.prototype;
2583
- return !!(prototype && prototype.isReactComponent);
2584
- }
2585
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2586
- if (type == null) {
2587
- return "";
2588
- }
2589
- if (typeof type === "function") {
2590
- {
2591
- return describeNativeComponentFrame(type, shouldConstruct(type));
2592
- }
2593
- }
2594
- if (typeof type === "string") {
2595
- return describeBuiltInComponentFrame(type);
2596
- }
2597
- switch (type) {
2598
- case REACT_SUSPENSE_TYPE:
2599
- return describeBuiltInComponentFrame("Suspense");
2600
- case REACT_SUSPENSE_LIST_TYPE:
2601
- return describeBuiltInComponentFrame("SuspenseList");
2602
- }
2603
- if (typeof type === "object") {
2604
- switch (type.$$typeof) {
2605
- case REACT_FORWARD_REF_TYPE:
2606
- return describeFunctionComponentFrame(type.render);
2607
- case REACT_MEMO_TYPE:
2608
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2609
- case REACT_LAZY_TYPE: {
2610
- var lazyComponent = type;
2611
- var payload = lazyComponent._payload;
2612
- var init = lazyComponent._init;
2613
- try {
2614
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2615
- } catch (x) {
2616
- }
2617
- }
2618
- }
2619
- }
2620
- return "";
2621
- }
2622
- var hasOwnProperty = Object.prototype.hasOwnProperty;
2623
- var loggedTypeFailures = {};
2624
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2625
- function setCurrentlyValidatingElement(element) {
2626
- {
2627
- if (element) {
2628
- var owner = element._owner;
2629
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2630
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
2631
- } else {
2632
- ReactDebugCurrentFrame.setExtraStackFrame(null);
2633
- }
2634
- }
2635
- }
2636
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
2637
- {
2638
- var has = Function.call.bind(hasOwnProperty);
2639
- for (var typeSpecName in typeSpecs) {
2640
- if (has(typeSpecs, typeSpecName)) {
2641
- var error$1 = void 0;
2642
- try {
2643
- if (typeof typeSpecs[typeSpecName] !== "function") {
2644
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
2645
- err.name = "Invariant Violation";
2646
- throw err;
2647
- }
2648
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2649
- } catch (ex) {
2650
- error$1 = ex;
2651
- }
2652
- if (error$1 && !(error$1 instanceof Error)) {
2653
- setCurrentlyValidatingElement(element);
2654
- error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
2655
- setCurrentlyValidatingElement(null);
2656
- }
2657
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2658
- loggedTypeFailures[error$1.message] = true;
2659
- setCurrentlyValidatingElement(element);
2660
- error("Failed %s type: %s", location, error$1.message);
2661
- setCurrentlyValidatingElement(null);
2662
- }
2663
- }
2664
- }
2665
- }
2666
- }
2667
- var isArrayImpl = Array.isArray;
2668
- function isArray(a) {
2669
- return isArrayImpl(a);
2670
- }
2671
- function typeName(value) {
2672
- {
2673
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
2674
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
2675
- return type;
2676
- }
2677
- }
2678
- function willCoercionThrow(value) {
2679
- {
2680
- try {
2681
- testStringCoercion(value);
2682
- return false;
2683
- } catch (e) {
2684
- return true;
2685
- }
2686
- }
2687
- }
2688
- function testStringCoercion(value) {
2689
- return "" + value;
2690
- }
2691
- function checkKeyStringCoercion(value) {
2692
- {
2693
- if (willCoercionThrow(value)) {
2694
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
2695
- return testStringCoercion(value);
2696
- }
2697
- }
2698
- }
2699
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
2700
- var RESERVED_PROPS = {
2701
- key: true,
2702
- ref: true,
2703
- __self: true,
2704
- __source: true
2705
- };
2706
- var specialPropKeyWarningShown;
2707
- var specialPropRefWarningShown;
2708
- var didWarnAboutStringRefs;
2709
- {
2710
- didWarnAboutStringRefs = {};
2711
- }
2712
- function hasValidRef(config) {
2713
- {
2714
- if (hasOwnProperty.call(config, "ref")) {
2715
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
2716
- if (getter && getter.isReactWarning) {
2717
- return false;
2718
- }
2719
- }
2720
- }
2721
- return config.ref !== void 0;
2722
- }
2723
- function hasValidKey(config) {
2724
- {
2725
- if (hasOwnProperty.call(config, "key")) {
2726
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
2727
- if (getter && getter.isReactWarning) {
2728
- return false;
2729
- }
2730
- }
2731
- }
2732
- return config.key !== void 0;
2733
- }
2734
- function warnIfStringRefCannotBeAutoConverted(config, self) {
2735
- {
2736
- if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
2737
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2738
- if (!didWarnAboutStringRefs[componentName]) {
2739
- error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
2740
- didWarnAboutStringRefs[componentName] = true;
2741
- }
2742
- }
2743
- }
2744
- }
2745
- function defineKeyPropWarningGetter(props, displayName) {
2746
- {
2747
- var warnAboutAccessingKey = function() {
2748
- if (!specialPropKeyWarningShown) {
2749
- specialPropKeyWarningShown = true;
2750
- error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
2751
- }
2752
- };
2753
- warnAboutAccessingKey.isReactWarning = true;
2754
- Object.defineProperty(props, "key", {
2755
- get: warnAboutAccessingKey,
2756
- configurable: true
2757
- });
2758
- }
2759
- }
2760
- function defineRefPropWarningGetter(props, displayName) {
2761
- {
2762
- var warnAboutAccessingRef = function() {
2763
- if (!specialPropRefWarningShown) {
2764
- specialPropRefWarningShown = true;
2765
- error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
2766
- }
2767
- };
2768
- warnAboutAccessingRef.isReactWarning = true;
2769
- Object.defineProperty(props, "ref", {
2770
- get: warnAboutAccessingRef,
2771
- configurable: true
2772
- });
2773
- }
2774
- }
2775
- var ReactElement = function(type, key, ref, self, source, owner, props) {
2776
- var element = {
2777
- // This tag allows us to uniquely identify this as a React Element
2778
- $$typeof: REACT_ELEMENT_TYPE,
2779
- // Built-in properties that belong on the element
2780
- type,
2781
- key,
2782
- ref,
2783
- props,
2784
- // Record the component responsible for creating this element.
2785
- _owner: owner
2786
- };
2787
- {
2788
- element._store = {};
2789
- Object.defineProperty(element._store, "validated", {
2790
- configurable: false,
2791
- enumerable: false,
2792
- writable: true,
2793
- value: false
2794
- });
2795
- Object.defineProperty(element, "_self", {
2796
- configurable: false,
2797
- enumerable: false,
2798
- writable: false,
2799
- value: self
2800
- });
2801
- Object.defineProperty(element, "_source", {
2802
- configurable: false,
2803
- enumerable: false,
2804
- writable: false,
2805
- value: source
2806
- });
2807
- if (Object.freeze) {
2808
- Object.freeze(element.props);
2809
- Object.freeze(element);
2810
- }
2811
- }
2812
- return element;
2813
- };
2814
- function jsxDEV(type, config, maybeKey, source, self) {
2815
- {
2816
- var propName;
2817
- var props = {};
2818
- var key = null;
2819
- var ref = null;
2820
- if (maybeKey !== void 0) {
2821
- {
2822
- checkKeyStringCoercion(maybeKey);
2823
- }
2824
- key = "" + maybeKey;
2825
- }
2826
- if (hasValidKey(config)) {
2827
- {
2828
- checkKeyStringCoercion(config.key);
2829
- }
2830
- key = "" + config.key;
2831
- }
2832
- if (hasValidRef(config)) {
2833
- ref = config.ref;
2834
- warnIfStringRefCannotBeAutoConverted(config, self);
2835
- }
2836
- for (propName in config) {
2837
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2838
- props[propName] = config[propName];
2839
- }
2840
- }
2841
- if (type && type.defaultProps) {
2842
- var defaultProps = type.defaultProps;
2843
- for (propName in defaultProps) {
2844
- if (props[propName] === void 0) {
2845
- props[propName] = defaultProps[propName];
2846
- }
2847
- }
2848
- }
2849
- if (key || ref) {
2850
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
2851
- if (key) {
2852
- defineKeyPropWarningGetter(props, displayName);
2853
- }
2854
- if (ref) {
2855
- defineRefPropWarningGetter(props, displayName);
2856
- }
2857
- }
2858
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
2859
- }
2860
- }
2861
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2862
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2863
- function setCurrentlyValidatingElement$1(element) {
2864
- {
2865
- if (element) {
2866
- var owner = element._owner;
2867
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2868
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2869
- } else {
2870
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2871
- }
2872
- }
2873
- }
2874
- var propTypesMisspellWarningShown;
2875
- {
2876
- propTypesMisspellWarningShown = false;
2877
- }
2878
- function isValidElement(object) {
2879
- {
2880
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2881
- }
2882
- }
2883
- function getDeclarationErrorAddendum() {
2884
- {
2885
- if (ReactCurrentOwner$1.current) {
2886
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
2887
- if (name) {
2888
- return "\n\nCheck the render method of `" + name + "`.";
2889
- }
2890
- }
2891
- return "";
2892
- }
2893
- }
2894
- function getSourceInfoErrorAddendum(source) {
2895
- {
2896
- if (source !== void 0) {
2897
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
2898
- var lineNumber = source.lineNumber;
2899
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
2900
- }
2901
- return "";
2902
- }
2903
- }
2904
- var ownerHasKeyUseWarning = {};
2905
- function getCurrentComponentErrorInfo(parentType) {
2906
- {
2907
- var info = getDeclarationErrorAddendum();
2908
- if (!info) {
2909
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
2910
- if (parentName) {
2911
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2912
- }
2913
- }
2914
- return info;
2915
- }
2916
- }
2917
- function validateExplicitKey(element, parentType) {
2918
- {
2919
- if (!element._store || element._store.validated || element.key != null) {
2920
- return;
2921
- }
2922
- element._store.validated = true;
2923
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2924
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2925
- return;
2926
- }
2927
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
2928
- var childOwner = "";
2929
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
2930
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
2931
- }
2932
- setCurrentlyValidatingElement$1(element);
2933
- error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
2934
- setCurrentlyValidatingElement$1(null);
2935
- }
2936
- }
2937
- function validateChildKeys(node, parentType) {
2938
- {
2939
- if (typeof node !== "object") {
2940
- return;
2941
- }
2942
- if (isArray(node)) {
2943
- for (var i = 0; i < node.length; i++) {
2944
- var child = node[i];
2945
- if (isValidElement(child)) {
2946
- validateExplicitKey(child, parentType);
2947
- }
2948
- }
2949
- } else if (isValidElement(node)) {
2950
- if (node._store) {
2951
- node._store.validated = true;
2952
- }
2953
- } else if (node) {
2954
- var iteratorFn = getIteratorFn(node);
2955
- if (typeof iteratorFn === "function") {
2956
- if (iteratorFn !== node.entries) {
2957
- var iterator = iteratorFn.call(node);
2958
- var step;
2959
- while (!(step = iterator.next()).done) {
2960
- if (isValidElement(step.value)) {
2961
- validateExplicitKey(step.value, parentType);
2962
- }
2963
- }
2964
- }
2965
- }
2966
- }
2967
- }
2968
- }
2969
- function validatePropTypes(element) {
2970
- {
2971
- var type = element.type;
2972
- if (type === null || type === void 0 || typeof type === "string") {
2973
- return;
2974
- }
2975
- var propTypes;
2976
- if (typeof type === "function") {
2977
- propTypes = type.propTypes;
2978
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
2979
- // Inner props are checked in the reconciler.
2980
- type.$$typeof === REACT_MEMO_TYPE)) {
2981
- propTypes = type.propTypes;
2982
- } else {
2983
- return;
2984
- }
2985
- if (propTypes) {
2986
- var name = getComponentNameFromType(type);
2987
- checkPropTypes(propTypes, element.props, "prop", name, element);
2988
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
2989
- propTypesMisspellWarningShown = true;
2990
- var _name = getComponentNameFromType(type);
2991
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
2992
- }
2993
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
2994
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2995
- }
2996
- }
2997
- }
2998
- function validateFragmentProps(fragment) {
2999
- {
3000
- var keys = Object.keys(fragment.props);
3001
- for (var i = 0; i < keys.length; i++) {
3002
- var key = keys[i];
3003
- if (key !== "children" && key !== "key") {
3004
- setCurrentlyValidatingElement$1(fragment);
3005
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
3006
- setCurrentlyValidatingElement$1(null);
3007
- break;
3008
- }
3009
- }
3010
- if (fragment.ref !== null) {
3011
- setCurrentlyValidatingElement$1(fragment);
3012
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
3013
- setCurrentlyValidatingElement$1(null);
3014
- }
3015
- }
3016
- }
3017
- var didWarnAboutKeySpread = {};
3018
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
3019
- {
3020
- var validType = isValidElementType(type);
3021
- if (!validType) {
3022
- var info = "";
3023
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
3024
- info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
3025
- }
3026
- var sourceInfo = getSourceInfoErrorAddendum(source);
3027
- if (sourceInfo) {
3028
- info += sourceInfo;
3029
- } else {
3030
- info += getDeclarationErrorAddendum();
3031
- }
3032
- var typeString;
3033
- if (type === null) {
3034
- typeString = "null";
3035
- } else if (isArray(type)) {
3036
- typeString = "array";
3037
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
3038
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
3039
- info = " Did you accidentally export a JSX literal instead of a component?";
3040
- } else {
3041
- typeString = typeof type;
3042
- }
3043
- error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
3044
- }
3045
- var element = jsxDEV(type, props, key, source, self);
3046
- if (element == null) {
3047
- return element;
3048
- }
3049
- if (validType) {
3050
- var children = props.children;
3051
- if (children !== void 0) {
3052
- if (isStaticChildren) {
3053
- if (isArray(children)) {
3054
- for (var i = 0; i < children.length; i++) {
3055
- validateChildKeys(children[i], type);
3056
- }
3057
- if (Object.freeze) {
3058
- Object.freeze(children);
3059
- }
3060
- } else {
3061
- error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
3062
- }
3063
- } else {
3064
- validateChildKeys(children, type);
3065
- }
3066
- }
3067
- }
3068
- {
3069
- if (hasOwnProperty.call(props, "key")) {
3070
- var componentName = getComponentNameFromType(type);
3071
- var keys = Object.keys(props).filter(function(k) {
3072
- return k !== "key";
3073
- });
3074
- var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
3075
- if (!didWarnAboutKeySpread[componentName + beforeExample]) {
3076
- var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
3077
- error('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
3078
- didWarnAboutKeySpread[componentName + beforeExample] = true;
3079
- }
3080
- }
3081
- }
3082
- if (type === REACT_FRAGMENT_TYPE) {
3083
- validateFragmentProps(element);
3084
- } else {
3085
- validatePropTypes(element);
3086
- }
3087
- return element;
3088
- }
3089
- }
3090
- function jsxWithValidationStatic(type, props, key) {
3091
- {
3092
- return jsxWithValidation(type, props, key, true);
3093
- }
3094
- }
3095
- function jsxWithValidationDynamic(type, props, key) {
3096
- {
3097
- return jsxWithValidation(type, props, key, false);
3098
- }
3099
- }
3100
- var jsx7 = jsxWithValidationDynamic;
3101
- var jsxs6 = jsxWithValidationStatic;
3102
- exports2.Fragment = REACT_FRAGMENT_TYPE;
3103
- exports2.jsx = jsx7;
3104
- exports2.jsxs = jsxs6;
3105
- })();
3106
- }
3107
- }
3108
- });
3109
-
3110
- // node_modules/react/jsx-runtime.js
3111
- var require_jsx_runtime = __commonJS({
3112
- "node_modules/react/jsx-runtime.js"(exports2, module2) {
3113
- "use strict";
3114
- if (process.env.NODE_ENV === "production") {
3115
- module2.exports = require_react_jsx_runtime_production_min();
3116
- } else {
3117
- module2.exports = require_react_jsx_runtime_development();
3118
- }
3119
- }
3120
- });
3121
-
3122
- // src/renderer/lib/projectPages/logicBundle.ts
3123
- var logicBundle_exports = {};
3124
- __export(logicBundle_exports, {
3125
- LENS_LIBRARY: () => LENS_LIBRARY,
3126
- LENS_ORDER: () => LENS_ORDER,
3127
- validateProjectPageSummary: () => validateProjectPageSummary
3128
- });
3129
- module.exports = __toCommonJS(logicBundle_exports);
3130
-
3131
- // src/renderer/lib/projectPages/summaryValidate.ts
3132
- function isPlainObject(value) {
3133
- return typeof value === "object" && value !== null && !Array.isArray(value);
3134
- }
3135
- function isNonEmptyString(value) {
3136
- return typeof value === "string" && value.trim().length > 0 && value.trim() !== "TODO";
3137
- }
3138
- function checkRequiredString(obj, key, path, errors) {
3139
- if (!isNonEmptyString(obj[key])) {
3140
- errors.push(`${path}.${key} must be a non-empty string (not 'TODO' or '')`);
3141
- }
3142
- }
3143
- var IDENTITY_STRING_FIELDS = ["name", "tag", "version", "oneLine", "claim", "sub", "audience", "install"];
3144
- var FEATURE_STRING_FIELDS = ["name", "kicker", "status", "owner", "oneLine", "problem", "solution"];
3145
- var FEATURE_ARRAY_FIELDS = ["steps", "rules", "specs", "faq", "timeline"];
3146
- var ARCHITECTURE_ARRAY_FIELDS = ["principles", "layers", "modules", "flow", "decisions", "risks"];
3147
- var BRIEF_ARRAY_FIELDS = ["what", "areas", "scope", "conventions"];
3148
- function validateProjectPageSummary(value) {
3149
- const errors = [];
3150
- if (!isPlainObject(value)) {
3151
- return { ok: false, errors: ["summary must be a JSON object"] };
3152
- }
3153
- if (!isPlainObject(value.identity)) {
3154
- errors.push("identity must be an object");
3155
- } else {
3156
- for (const field of IDENTITY_STRING_FIELDS) {
3157
- checkRequiredString(value.identity, field, "identity", errors);
3158
- }
3159
- }
3160
- if (!Array.isArray(value.stats)) errors.push("stats must be an array");
3161
- if (!Array.isArray(value.pillars)) errors.push("pillars must be an array");
3162
- if (!Array.isArray(value.quotes)) errors.push("quotes must be an array (may be empty)");
3163
- if (!isPlainObject(value.feature)) {
3164
- errors.push("feature must be an object");
3165
- } else {
3166
- for (const field of FEATURE_STRING_FIELDS) {
3167
- checkRequiredString(value.feature, field, "feature", errors);
3168
- }
3169
- for (const field of FEATURE_ARRAY_FIELDS) {
3170
- if (!Array.isArray(value.feature[field])) errors.push(`feature.${field} must be an array`);
3171
- }
3172
- }
3173
- if (!isPlainObject(value.architecture)) {
3174
- errors.push("architecture must be an object");
3175
- } else {
3176
- checkRequiredString(value.architecture, "summary", "architecture", errors);
3177
- for (const field of ARCHITECTURE_ARRAY_FIELDS) {
3178
- if (!Array.isArray(value.architecture[field])) errors.push(`architecture.${field} must be an array`);
3179
- }
3180
- }
3181
- if (value.brief !== void 0) {
3182
- if (!isPlainObject(value.brief)) {
3183
- errors.push("brief must be an object when present");
3184
- } else {
3185
- checkRequiredString(value.brief, "purpose", "brief", errors);
3186
- for (const field of BRIEF_ARRAY_FIELDS) {
3187
- if (!Array.isArray(value.brief[field])) errors.push(`brief.${field} must be an array`);
3188
- }
3189
- }
3190
- }
3191
- if (errors.length > 0) return { ok: false, errors };
3192
- return { ok: true, summary: value };
3193
- }
3194
-
3195
- // src/renderer/lib/projectPages/library/kit.tsx
3196
- var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
3197
- var PK = {
3198
- paper: "#f6efe1",
3199
- panel: "#efe6d3",
3200
- card: "#fbf6ec",
3201
- deep: "#2a221a",
3202
- edge: "#e0d3b8",
3203
- rule: "#d9c9a8",
3204
- ink: "#2a221a",
3205
- inkSoft: "#5b4a36",
3206
- inkMute: "#8a7a60",
3207
- accent: "#b85c34",
3208
- accentDeep: "#9c4a26",
3209
- sage: "#6f7d52",
3210
- butter: "#e4b85a",
3211
- clay: "#c98a5e",
3212
- serif: "'Newsreader', Georgia, serif",
3213
- sans: "'Geist', system-ui, sans-serif",
3214
- mono: "'IBM Plex Mono', ui-monospace, monospace"
3215
- };
3216
- function PkEyebrow({ children, tone = PK.accent, style }) {
3217
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 11, letterSpacing: "0.14em", textTransform: "uppercase", color: tone, fontWeight: 500, ...style }, children });
3218
- }
3219
- function PkPill({ children, tone = PK.inkSoft, bg = "transparent", border = PK.rule, style }) {
3220
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { style: { display: "inline-flex", alignItems: "center", gap: 6, fontFamily: PK.mono, fontSize: 11, color: tone, background: bg, border: `1px solid ${border}`, borderRadius: 999, padding: "3px 9px", whiteSpace: "nowrap", ...style }, children });
3221
- }
3222
- function PkDot({ c = PK.sage, s = 7 }) {
3223
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { style: { width: s, height: s, borderRadius: "50%", background: c, flex: "none" } });
3224
- }
3225
- function PkCmd({ children, wide }) {
3226
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", { style: { display: wide ? "block" : "inline-block", fontFamily: PK.mono, fontSize: 13, color: PK.paper, background: PK.deep, borderRadius: 8, padding: wide ? "12px 16px" : "7px 12px" }, children });
3227
- }
3228
- function PkBtn({ children, primary, small }) {
3229
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { style: { appearance: "none", cursor: "pointer", fontFamily: PK.sans, fontSize: small ? 12 : 14, fontWeight: 550, padding: small ? "6px 12px" : "11px 20px", borderRadius: 9, border: primary ? "1px solid transparent" : `1px solid ${PK.rule}`, background: primary ? PK.accent : "transparent", color: primary ? "#fff" : PK.inkSoft }, children });
3230
- }
3231
- function PkShot({ h = 220, label = "screenshot", style }) {
3232
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: { height: h, borderRadius: 12, border: `1px dashed ${PK.rule}`, background: `repeating-linear-gradient(135deg, ${PK.panel} 0 10px, ${PK.card} 10px 20px)`, display: "flex", alignItems: "center", justifyContent: "center", color: PK.inkMute, fontFamily: PK.mono, fontSize: 11, letterSpacing: "0.1em", textTransform: "uppercase", ...style }, children: label });
3233
- }
3234
- function PkSection({ children, pad = "64px 72px", bg, style }) {
3235
- const p = String(pad).replace(/\b(72|80)px\b/g, "clamp(22px, 5.5%, $1px)");
3236
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("section", { style: { padding: p, background: bg, ...style }, children });
3237
- }
3238
- function PkH({ children, size = 40, style }) {
3239
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { style: { margin: 0, fontFamily: PK.serif, fontWeight: 500, fontSize: size, lineHeight: 1.1, letterSpacing: "-0.015em", color: PK.ink, textWrap: "balance", ...style }, children });
3240
- }
3241
- function PkBody({ children, size = 16, style }) {
3242
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { style: { margin: 0, fontFamily: PK.sans, fontSize: size, lineHeight: 1.62, color: PK.inkSoft, textWrap: "pretty", ...style }, children });
3243
- }
3244
-
3245
- // src/renderer/lib/projectPages/library/homeSlots.tsx
3246
- var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
3247
- function HOverviewDashboard({ summary }) {
3248
- const proj = summary.identity;
3249
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
3250
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(PkSection, { pad: "72px 80px 48px", children: [
3251
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(PkEyebrow, { children: [
3252
- proj.tag,
3253
- " \xB7 ",
3254
- proj.version
3255
- ] }),
3256
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PkH, { size: 44, style: { marginTop: 16, maxWidth: 760 }, children: proj.claim }),
3257
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PkBody, { size: 16, style: { marginTop: 18, maxWidth: 640 }, children: proj.sub }),
3258
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { marginTop: 26 }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PkCmd, { children: proj.install }) })
3259
- ] }),
3260
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PkSection, { pad: "0", style: { borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { display: "grid", gridTemplateColumns: `repeat(${Math.max(1, summary.stats.length)},1fr)` }, children: summary.stats.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { style: { padding: "26px 28px", borderLeft: i ? `1px solid ${PK.rule}` : "none" }, children: [
3261
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 30, lineHeight: 1, color: PK.accent }, children: s.v }),
3262
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 13, fontWeight: 600, color: PK.ink, marginTop: 8 }, children: s.k }),
3263
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 12, color: PK.inkMute, marginTop: 3 }, children: s.n })
3264
- ] }, i)) }) })
3265
- ] });
3266
- }
3267
- function HOverviewLedger({ summary }) {
3268
- const proj = summary.identity;
3269
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(PkSection, { pad: "64px 80px", style: { background: PK.deep, color: PK.paper }, children: [
3270
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PkEyebrow, { tone: PK.butter, children: proj.audience }),
3271
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { fontFamily: PK.serif, fontSize: 38, color: PK.paper, marginTop: 14, maxWidth: 720 }, children: proj.oneLine }),
3272
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { marginTop: 30, display: "flex", flexWrap: "wrap", gap: "16px 40px", alignItems: "baseline", borderTop: "1px solid #3b3025", paddingTop: 24 }, children: summary.stats.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { style: { display: "flex", alignItems: "baseline", gap: 9 }, children: [
3273
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 20, color: PK.butter }, children: s.v }),
3274
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 13, color: "#bdaf97" }, children: s.k })
3275
- ] }, i)) })
3276
- ] });
3277
- }
3278
- function HPillarsGrid({ summary }) {
3279
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(PkSection, { pad: "64px 80px", children: [
3280
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PkEyebrow, { children: "How it's organized" }),
3281
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PkH, { size: 30, style: { marginTop: 12, maxWidth: 620 }, children: "The pillars this project is built around." }),
3282
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(2,1fr)", gap: 18, marginTop: 32 }, children: summary.pillars.map((p, i) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 12, padding: 22 }, children: [
3283
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PkEyebrow, { tone: PK.inkMute, children: p.k }),
3284
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { fontFamily: PK.serif, fontSize: 21, color: PK.ink, marginTop: 9 }, children: p.t }),
3285
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PkBody, { size: 14, style: { marginTop: 9 }, children: p.d })
3286
- ] }, i)) })
3287
- ] });
3288
- }
3289
- function HPillarsRows({ summary }) {
3290
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(PkSection, { pad: "64px 80px", style: { background: PK.panel, borderTop: `1px solid ${PK.rule}` }, children: [
3291
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PkEyebrow, { children: "How it's organized" }),
3292
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { marginTop: 22 }, children: summary.pillars.map((p, i) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "130px minmax(0,1fr)", gap: 24, padding: "18px 0", borderTop: `1px solid ${PK.rule}` }, children: [
3293
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PkPill, { tone: PK.inkMute, style: { justifySelf: "start", alignSelf: "start" }, children: p.k }),
3294
- /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { children: [
3295
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 15, fontWeight: 600, color: PK.ink }, children: p.t }),
3296
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PkBody, { size: 14, style: { marginTop: 5 }, children: p.d })
3297
- ] })
3298
- ] }, i)) })
3299
- ] });
3300
- }
3301
- var PAGE_HOME = {
3302
- id: "home",
3303
- label: "Project Home",
3304
- blurb: "A dashboard-flavored overview \u2014 for someone who already has the project open, not an outside pitch.",
3305
- slots: [
3306
- { id: "overview", label: "Overview", variants: [
3307
- { id: "dashboard", label: "Stat band", note: "Claim + sub, then a ruled stat band. The default.", component: HOverviewDashboard },
3308
- { id: "ledger", label: "Dark ledger", note: "Inverted; compact inline figures.", component: HOverviewLedger }
3309
- ] },
3310
- { id: "pillars", label: "How it's organized", variants: [
3311
- { id: "grid", label: "2\xD72 cards", note: "Even weight across every pillar.", component: HPillarsGrid },
3312
- { id: "rows", label: "Tagged rows", note: "Dense, text-only.", component: HPillarsRows }
3313
- ] }
3314
- ],
3315
- presets: [
3316
- { id: "v1", label: "Dashboard", note: "Default \u2014 stat band + pillar cards.", pick: { overview: "dashboard", pillars: "grid" } },
3317
- { id: "v2", label: "Ledger", note: "Denser, mono-leaning.", pick: { overview: "ledger", pillars: "rows" } }
3318
- ]
3319
- };
3320
-
3321
- // src/renderer/lib/projectPages/library/marketingSlots.tsx
3322
- var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
3323
- var M = { pad: "72px 80px" };
3324
- function MHeroEditorial({ summary }) {
3325
- const proj = summary.identity;
3326
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkSection, { pad: "96px 80px 72px", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { maxWidth: 820 }, children: [
3327
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkEyebrow, { children: [
3328
- proj.tag,
3329
- " \xB7 ",
3330
- proj.version
3331
- ] }),
3332
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h1", { style: { margin: "20px 0 0", fontFamily: PK.serif, fontWeight: 400, fontSize: 68, lineHeight: 1.02, letterSpacing: "-0.028em", color: PK.ink, textWrap: "balance" }, children: proj.claim }),
3333
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { size: 18, style: { marginTop: 24, maxWidth: 620 }, children: proj.sub }),
3334
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "flex", gap: 12, alignItems: "center", marginTop: 34 }, children: [
3335
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBtn, { primary: true, children: "Download for macOS" }),
3336
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkCmd, { children: proj.install })
3337
- ] })
3338
- ] }) });
3339
- }
3340
- function MHeroSplit({ summary }) {
3341
- const proj = summary.identity;
3342
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "72px 80px", style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 56, alignItems: "center" }, children: [
3343
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
3344
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: proj.audience }),
3345
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h1", { style: { margin: "16px 0 0", fontFamily: PK.serif, fontWeight: 400, fontSize: 52, lineHeight: 1.06, letterSpacing: "-0.022em", color: PK.ink }, children: proj.claim }),
3346
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { style: { marginTop: 18 }, children: proj.sub }),
3347
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "flex", gap: 10, marginTop: 28 }, children: [
3348
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBtn, { primary: true, children: "Get the app" }),
3349
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBtn, { children: "Read the docs" })
3350
- ] })
3351
- ] }),
3352
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkShot, { h: 340, label: "app screenshot" })
3353
- ] });
3354
- }
3355
- function MHeroCentered({ summary }) {
3356
- const proj = summary.identity;
3357
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkSection, { pad: "104px 80px 84px", style: { textAlign: "center", background: PK.panel, borderBottom: `1px solid ${PK.rule}` }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { maxWidth: 720, margin: "0 auto", display: "grid", gap: 22, justifyItems: "center" }, children: [
3358
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkPill, { bg: PK.card, children: [
3359
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkDot, {}),
3360
- proj.version,
3361
- " \xB7 local-first, no account"
3362
- ] }),
3363
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h1", { style: { margin: 0, fontFamily: PK.serif, fontWeight: 400, fontSize: 60, lineHeight: 1.05, letterSpacing: "-0.025em", color: PK.ink, textWrap: "balance" }, children: proj.claim }),
3364
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkBody, { size: 17, style: { maxWidth: 560 }, children: [
3365
- proj.oneLine,
3366
- " ",
3367
- proj.sub
3368
- ] }),
3369
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkCmd, { wide: true, children: proj.install })
3370
- ] }) });
3371
- }
3372
- function MHeroTerminal({ summary }) {
3373
- const proj = summary.identity;
3374
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkSection, { pad: "0", style: { background: PK.deep, color: PK.paper }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { padding: "84px 80px", display: "grid", gridTemplateColumns: "1.1fr 1fr", gap: 60, alignItems: "center" }, children: [
3375
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
3376
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { tone: PK.butter, children: proj.tag }),
3377
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("h1", { style: { margin: "18px 0 0", fontFamily: PK.serif, fontWeight: 400, fontSize: 56, lineHeight: 1.04, letterSpacing: "-0.024em", color: PK.paper }, children: proj.claim }),
3378
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { style: { marginTop: 18, color: "#c9bda8" }, children: proj.sub }),
3379
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { marginTop: 30, display: "flex", gap: 12, alignItems: "center" }, children: [
3380
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { style: { appearance: "none", cursor: "pointer", background: PK.butter, color: PK.deep, border: 0, borderRadius: 9, padding: "11px 20px", fontFamily: PK.sans, fontWeight: 600, fontSize: 14 }, children: "Download" }),
3381
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 13, color: "#a2947c" }, children: proj.install })
3382
- ] })
3383
- ] }),
3384
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { background: "#211a14", border: "1px solid #3b3025", borderRadius: 12, padding: 20, fontFamily: PK.mono, fontSize: 12.5, lineHeight: 1.9, color: "#d8cbb4" }, children: [
3385
- ["$ ", proj.install],
3386
- ["\u2192 ", proj.tag],
3387
- ["\u2713 ", summary.feature.name],
3388
- ["\u27F3 ", summary.pillars[0]?.t ?? proj.oneLine],
3389
- ["\u2713 ", summary.stats[0] ? `${summary.stats[0].v} ${summary.stats[0].k}` : proj.oneLine]
3390
- ].map(([p, l], i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
3391
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { color: i === 0 ? PK.butter : PK.sage }, children: p }),
3392
- l
3393
- ] }, i)) })
3394
- ] }) });
3395
- }
3396
- function MProofStats({ summary }) {
3397
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkSection, { pad: "0", style: { borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(4,1fr)" }, children: summary.stats.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { padding: "30px 32px", borderLeft: i ? `1px solid ${PK.rule}` : "none" }, children: [
3398
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.serif, fontSize: 40, lineHeight: 1, color: PK.ink }, children: s.v }),
3399
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 13.5, fontWeight: 600, color: PK.ink, marginTop: 8 }, children: s.k }),
3400
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 12.5, color: PK.inkMute, marginTop: 3 }, children: s.n })
3401
- ] }, i)) }) });
3402
- }
3403
- function MProofTicker() {
3404
- const items = ["local-first", "no telemetry", "sqlite-backed queue", "Electron + React", "MCP native", "skills & hooks", "headless claude -p", "restart-safe"];
3405
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { background: PK.panel, borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}`, padding: "16px 80px", display: "flex", flexWrap: "wrap", gap: "10px 12px" }, children: items.map((t) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkPill, { bg: PK.card, children: t }, t)) });
3406
- }
3407
- function MProofQuote({ summary }) {
3408
- const q = summary.quotes[0];
3409
- if (!q) return null;
3410
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkSection, { pad: "56px 80px", style: { background: PK.panel, borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("blockquote", { style: { margin: 0, maxWidth: 760 }, children: [
3411
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("p", { style: { margin: 0, fontFamily: PK.serif, fontSize: 30, lineHeight: 1.32, color: PK.ink, letterSpacing: "-0.012em" }, children: [
3412
- "\u201C",
3413
- q.q,
3414
- "\u201D"
3415
- ] }),
3416
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("footer", { style: { marginTop: 16, fontFamily: PK.sans, fontSize: 13.5, color: PK.inkMute }, children: [
3417
- q.a,
3418
- " \u2014 ",
3419
- q.r
3420
- ] })
3421
- ] }) });
3422
- }
3423
- function MProofLedger({ summary }) {
3424
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkSection, { pad: "36px 80px", style: { borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "flex", flexWrap: "wrap", gap: "18px 48px", alignItems: "baseline" }, children: summary.stats.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "flex", alignItems: "baseline", gap: 9 }, children: [
3425
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 22, color: PK.accent }, children: s.v }),
3426
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 13.5, color: PK.inkSoft }, children: s.k })
3427
- ] }, i)) }) });
3428
- }
3429
- function MPillarsCards({ summary }) {
3430
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: M.pad, children: [
3431
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "What you get" }),
3432
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { style: { marginTop: 14, maxWidth: 620 }, children: "Four things it does that a terminal cannot." }),
3433
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(2,1fr)", gap: 20, marginTop: 40 }, children: summary.pillars.map((p, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 14, padding: 26 }, children: [
3434
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { tone: PK.inkMute, children: p.k }),
3435
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.serif, fontSize: 24, color: PK.ink, marginTop: 10 }, children: p.t }),
3436
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { size: 15, style: { marginTop: 10 }, children: p.d })
3437
- ] }, i)) })
3438
- ] });
3439
- }
3440
- function MPillarsAlternating({ summary }) {
3441
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkSection, { pad: "56px 80px", style: { display: "grid", gap: 8 }, children: summary.pillars.map((p, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "grid", gridTemplateColumns: i % 2 ? "1fr 0.9fr" : "0.9fr 1fr", gap: 48, alignItems: "center", padding: "28px 0", borderTop: `1px solid ${PK.rule}` }, children: [
3442
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { order: i % 2 ? 2 : 1 }, children: [
3443
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkEyebrow, { children: [
3444
- String(i + 1).padStart(2, "0"),
3445
- " \xB7 ",
3446
- p.k
3447
- ] }),
3448
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { size: 30, style: { marginTop: 12 }, children: p.t }),
3449
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { style: { marginTop: 12, maxWidth: 480 }, children: p.d })
3450
- ] }),
3451
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkShot, { h: 180, label: `${p.k.toLowerCase()} view`, style: { order: i % 2 ? 1 : 2 } })
3452
- ] }, i)) });
3453
- }
3454
- function MPillarsList({ summary }) {
3455
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkSection, { pad: M.pad, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "minmax(160px,260px) minmax(0,1fr)", gap: "clamp(24px,4vw,56px)" }, children: [
3456
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
3457
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "Capabilities" }),
3458
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { size: 32, style: { marginTop: 14 }, children: "Built around how the work actually flows." })
3459
- ] }),
3460
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { children: summary.pillars.map((p, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "minmax(110px,150px) minmax(0,1fr)", gap: "clamp(16px,2vw,28px)", padding: "22px 0", borderTop: `1px solid ${PK.rule}` }, children: [
3461
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 15, fontWeight: 600, color: PK.ink }, children: p.t }),
3462
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { size: 15, children: p.d })
3463
- ] }, i)) })
3464
- ] }) });
3465
- }
3466
- function MPillarsShowcase({ summary }) {
3467
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: M.pad, style: { background: PK.panel, borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: [
3468
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { style: { maxWidth: 560 }, children: "One window, four jobs." }),
3469
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkShot, { h: 300, label: "primary product shot", style: { marginTop: 32, background: PK.card, borderStyle: "solid" } }),
3470
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(4,1fr)", gap: 18, marginTop: 26 }, children: summary.pillars.map((p, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
3471
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { height: 2, background: i === 0 ? PK.accent : PK.rule, marginBottom: 12 } }),
3472
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 14, fontWeight: 600, color: PK.ink }, children: p.t }),
3473
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkBody, { size: 13, style: { marginTop: 6 }, children: [
3474
- p.d.split(".")[0],
3475
- "."
3476
- ] })
3477
- ] }, i)) })
3478
- ] });
3479
- }
3480
- function MCloseInstall({ summary }) {
3481
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "72px 80px", style: { background: PK.deep, textAlign: "center" }, children: [
3482
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { size: 38, style: { color: PK.paper }, children: "Install it in one line." }),
3483
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { marginTop: 22, display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("code", { style: { fontFamily: PK.mono, fontSize: 15, color: PK.butter, border: "1px solid #4a3d2e", borderRadius: 10, padding: "14px 24px" }, children: summary.identity.install }) }),
3484
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { size: 13.5, style: { marginTop: 18, color: "#a2947c" }, children: "macOS & Linux \xB7 requires the Claude Code CLI" })
3485
- ] });
3486
- }
3487
- function MCloseSplit() {
3488
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}`, display: "flex", justifyContent: "space-between", alignItems: "center", gap: 40, flexWrap: "wrap" }, children: [
3489
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
3490
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { size: 30, children: "Ready when you are." }),
3491
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { style: { marginTop: 8 }, children: "Free while in beta. No account, no cloud." })
3492
- ] }),
3493
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "flex", gap: 10 }, children: [
3494
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBtn, { primary: true, children: "Download" }),
3495
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBtn, { children: "View on GitHub" })
3496
- ] })
3497
- ] });
3498
- }
3499
- function MCloseQuiet({ summary }) {
3500
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkSection, { pad: "48px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "1fr auto", gap: 40, alignItems: "end" }, children: [
3501
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
3502
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "Get started" }),
3503
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { size: 15, style: { marginTop: 10, maxWidth: 460 }, children: "Point it at a folder on disk and it takes over from there. Everything stays local." })
3504
- ] }),
3505
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkCmd, { children: summary.identity.install })
3506
- ] }) });
3507
- }
3508
- function tourFromPillars(summary) {
3509
- return summary.pillars.map((p) => ({ k: p.k, t: p.t, d: p.d, pts: [p.d] }));
3510
- }
3511
- function workflowFromSteps(summary) {
3512
- const steps = summary.feature.steps;
3513
- return steps.map((s, i) => ({ t: s.t, d: s.d, c: `step ${i + 1} of ${steps.length}` }));
3514
- }
3515
- function MTourTabs({ summary }) {
3516
- const tour = tourFromPillars(summary);
3517
- const t = tour[0];
3518
- if (!t) return null;
3519
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "72px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
3520
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "A closer look" }),
3521
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkH, { size: 34, style: { marginTop: 12, maxWidth: 620 }, children: [
3522
- tour.length,
3523
- " pillars, one project."
3524
- ] }),
3525
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "flex", gap: 6, marginTop: 26, flexWrap: "wrap" }, children: tour.map((x, n) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 13, fontWeight: n === 0 ? 600 : 500, padding: "8px 14px", borderRadius: 8, border: `1px solid ${n === 0 ? PK.accent : PK.rule}`, background: n === 0 ? PK.accent : "transparent", color: n === 0 ? "#fff" : PK.inkSoft }, children: x.k }, x.k)) }),
3526
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "minmax(0,1fr) minmax(0,1.1fr)", gap: "clamp(24px,4vw,48px)", marginTop: 28, alignItems: "center" }, children: [
3527
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
3528
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { size: 26, children: t.t }),
3529
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { style: { marginTop: 12 }, children: t.d }),
3530
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { marginTop: 18, display: "grid", gap: 9 }, children: t.pts.map((p) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "flex", gap: 10, alignItems: "baseline" }, children: [
3531
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkDot, { c: PK.sage, s: 6 }),
3532
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 14, color: PK.inkSoft }, children: p })
3533
- ] }, p)) })
3534
- ] }),
3535
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkShot, { h: 280, label: `${t.k.toLowerCase()} view` })
3536
- ] })
3537
- ] });
3538
- }
3539
- function MTourStacked({ summary }) {
3540
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "64px 80px", style: { borderTop: `1px solid ${PK.rule}`, display: "grid", gap: 4 }, children: [
3541
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "Inside the app" }),
3542
- tourFromPillars(summary).map((t, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "grid", gridTemplateColumns: i % 2 ? "minmax(0,1fr) minmax(0,0.95fr)" : "minmax(0,0.95fr) minmax(0,1fr)", gap: "clamp(24px,4vw,52px)", alignItems: "center", padding: "32px 0", borderTop: `1px solid ${PK.rule}` }, children: [
3543
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { order: i % 2 ? 2 : 1 }, children: [
3544
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { tone: PK.inkMute, children: t.k }),
3545
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { size: 28, style: { marginTop: 10 }, children: t.t }),
3546
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { style: { marginTop: 12 }, children: t.d }),
3547
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { marginTop: 16, display: "grid", gap: 7 }, children: t.pts.map((p) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "flex", gap: 9, alignItems: "baseline" }, children: [
3548
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { color: PK.accent, fontFamily: PK.mono, fontSize: 12 }, children: "\u2014" }),
3549
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 13.5, color: PK.inkSoft }, children: p })
3550
- ] }, p)) })
3551
- ] }),
3552
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkShot, { h: 230, label: `${t.k.toLowerCase()}`, style: { order: i % 2 ? 1 : 2 } })
3553
- ] }, t.k))
3554
- ] });
3555
- }
3556
- function MTourCards({ summary }) {
3557
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "64px 80px", style: { background: PK.panel, borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: [
3558
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "A closer look" }),
3559
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { size: 32, style: { marginTop: 12, maxWidth: 560 }, children: "Every pillar earns its place." }),
3560
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fit,minmax(230px,1fr))", gap: 16, marginTop: 30 }, children: tourFromPillars(summary).map((t) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 14, overflow: "hidden" }, children: [
3561
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkShot, { h: 130, label: t.k.toLowerCase(), style: { borderRadius: 0, border: "none", borderBottom: `1px solid ${PK.edge}` } }),
3562
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { padding: 20 }, children: [
3563
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { tone: PK.inkMute, children: t.k }),
3564
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.serif, fontSize: 21, color: PK.ink, marginTop: 8, lineHeight: 1.2 }, children: t.t }),
3565
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { size: 13.5, style: { marginTop: 9 }, children: t.d })
3566
- ] })
3567
- ] }, t.k)) })
3568
- ] });
3569
- }
3570
- function MTourBigShot({ summary }) {
3571
- const tour = tourFromPillars(summary);
3572
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkSection, { pad: "64px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "minmax(0,1fr) minmax(200px,300px)", gap: "clamp(24px,4vw,48px)", alignItems: "start" }, children: [
3573
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
3574
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "The workspace" }),
3575
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { size: 32, style: { marginTop: 12 }, children: "Everything in flight, on one screen." }),
3576
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkShot, { h: 330, label: "full app window", style: { marginTop: 22, background: PK.card, borderStyle: "solid" } })
3577
- ] }),
3578
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { paddingTop: 76, display: "grid", gap: 0 }, children: tour.map((t, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { padding: "14px 0", borderTop: `1px solid ${PK.rule}` }, children: [
3579
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "flex", gap: 9, alignItems: "baseline" }, children: [
3580
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 11, color: PK.accent }, children: String(i + 1).padStart(2, "0") }),
3581
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 14, fontWeight: 600, color: PK.ink }, children: t.k })
3582
- ] }),
3583
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkBody, { size: 13, style: { marginTop: 5 }, children: [
3584
- t.t,
3585
- "."
3586
- ] })
3587
- ] }, t.k)) })
3588
- ] }) });
3589
- }
3590
- function MFlowSteps({ summary }) {
3591
- const steps = workflowFromSteps(summary);
3592
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "64px 80px", style: { background: PK.panel, borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: [
3593
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "How it works" }),
3594
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkH, { size: 32, style: { marginTop: 12, maxWidth: 560 }, children: [
3595
- steps.length,
3596
- " moves, then you stop watching."
3597
- ] }),
3598
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fit,minmax(200px,1fr))", gap: 14, marginTop: 30 }, children: steps.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 12, padding: 20 }, children: [
3599
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 11, color: PK.accent }, children: String(i + 1).padStart(2, "0") }),
3600
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 15.5, fontWeight: 600, color: PK.ink, marginTop: 9 }, children: s.t }),
3601
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { size: 13.5, style: { marginTop: 7 }, children: s.d }),
3602
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { marginTop: 14, fontFamily: PK.mono, fontSize: 11.5, color: PK.inkMute, background: PK.paper, border: `1px solid ${PK.edge}`, borderRadius: 7, padding: "7px 10px", overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: s.c })
3603
- ] }, i)) })
3604
- ] });
3605
- }
3606
- function MFlowRail({ summary }) {
3607
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "64px 80px", style: { borderTop: `1px solid ${PK.rule}`, display: "grid", gridTemplateColumns: "minmax(160px,260px) minmax(0,1fr)", gap: "clamp(24px,4vw,56px)" }, children: [
3608
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
3609
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "The loop" }),
3610
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { size: 30, style: { marginTop: 12 }, children: summary.feature.oneLine })
3611
- ] }),
3612
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { position: "relative", paddingLeft: 28 }, children: [
3613
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { position: "absolute", left: 6, top: 8, bottom: 8, width: 2, background: PK.rule } }),
3614
- workflowFromSteps(summary).map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { position: "relative", paddingBottom: 26 }, children: [
3615
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { position: "absolute", left: -28, top: 4, width: 14, height: 14, borderRadius: "50%", background: PK.paper, border: `2px solid ${PK.accent}` } }),
3616
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 16, fontWeight: 600, color: PK.ink }, children: s.t }),
3617
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { size: 14.5, style: { marginTop: 5 }, children: s.d }),
3618
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { marginTop: 9, fontFamily: PK.mono, fontSize: 12, color: PK.accent }, children: s.c })
3619
- ] }, i))
3620
- ] })
3621
- ] });
3622
- }
3623
- function MFlowTerminal({ summary }) {
3624
- const steps = workflowFromSteps(summary);
3625
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "64px 80px", style: { background: PK.deep }, children: [
3626
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { tone: PK.butter, children: "How it works" }),
3627
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { size: 30, style: { marginTop: 12, color: PK.paper, maxWidth: 520 }, children: summary.feature.oneLine }),
3628
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fit,minmax(210px,1fr))", gap: 12, marginTop: 28 }, children: steps.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { border: "1px solid #3b3025", borderRadius: 10, padding: 18, background: i === steps.length - 1 ? "#241d16" : "transparent" }, children: [
3629
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 11, color: PK.butter }, children: String(i + 1).padStart(2, "0") }),
3630
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 15, fontWeight: 600, color: PK.paper, marginTop: 8 }, children: s.t }),
3631
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { size: 13, style: { marginTop: 7, color: "#bdaf97" }, children: s.d }),
3632
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { marginTop: 12, fontFamily: PK.mono, fontSize: 11.5, color: PK.sage, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: s.c })
3633
- ] }, i)) })
3634
- ] });
3635
- }
3636
- var MD_MARK = { mitigated: [PK.sage, "\u25CF"], watching: [PK.butter, "\u25D0"], open: [PK.rule, "\u25CB"] };
3637
- function MDepthCompare({ summary }) {
3638
- const risks = summary.architecture.risks;
3639
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "64px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
3640
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "Where it stands" }),
3641
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { size: 32, style: { marginTop: 12, maxWidth: 560 }, children: "Known risks, plainly marked." }),
3642
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { marginTop: 28, border: `1px solid ${PK.edge}`, borderRadius: 12, overflow: "hidden" }, children: [
3643
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "minmax(0,1.6fr) minmax(78px,1fr)", background: PK.panel, borderBottom: `1px solid ${PK.edge}` }, children: [
3644
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", {}),
3645
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { padding: "12px 10px", textAlign: "center", fontFamily: PK.sans, fontSize: 12.5, fontWeight: 700, color: PK.accent }, children: "Status" })
3646
- ] }),
3647
- risks.map((r, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "minmax(0,1.6fr) minmax(78px,1fr)", borderTop: i ? `1px solid ${PK.edge}` : "none", background: i % 2 ? PK.card : "transparent" }, children: [
3648
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { padding: "13px 18px", fontFamily: PK.sans, fontSize: 14, color: PK.ink }, children: r.t }),
3649
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "grid", placeItems: "center", color: MD_MARK[r.s][0], fontSize: 15 }, children: MD_MARK[r.s][1] })
3650
- ] }, i))
3651
- ] }),
3652
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "flex", gap: 18, marginTop: 12 }, children: Object.entries(MD_MARK).map(([k, [c, g]]) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { style: { fontFamily: PK.sans, fontSize: 12, color: PK.inkMute }, children: [
3653
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { color: c, marginRight: 6 }, children: g }),
3654
- k
3655
- ] }, k)) })
3656
- ] });
3657
- }
3658
- function MDepthSpecs({ summary }) {
3659
- const specs = summary.architecture.layers.map((l) => [l.n, l.f, l.d]);
3660
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "64px 80px", style: { borderTop: `1px solid ${PK.rule}`, display: "grid", gridTemplateColumns: "minmax(160px,240px) minmax(0,1fr)", gap: "clamp(24px,4vw,52px)" }, children: [
3661
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
3662
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "The details" }),
3663
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { size: 28, style: { marginTop: 12 }, children: "What it's built from." })
3664
- ] }),
3665
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { children: specs.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "minmax(90px,130px) minmax(0,1fr)", gap: "clamp(14px,2vw,24px)", padding: "13px 0", borderTop: `1px solid ${PK.rule}`, alignItems: "baseline" }, children: [
3666
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 11, letterSpacing: "0.08em", textTransform: "uppercase", color: PK.inkMute }, children: s[0] }),
3667
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { children: [
3668
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 14.5, fontWeight: 600, color: PK.ink }, children: s[1] }),
3669
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 13.5, color: PK.inkMute, marginLeft: 10 }, children: s[2] })
3670
- ] })
3671
- ] }, i)) })
3672
- ] });
3673
- }
3674
- function MDepthPrivacy({ summary }) {
3675
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "64px 80px", style: { background: PK.panel, borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: [
3676
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "Principles" }),
3677
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkH, { size: 32, style: { marginTop: 12, maxWidth: 600 }, children: summary.architecture.summary }),
3678
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fit,minmax(240px,1fr))", gap: 16, marginTop: 28 }, children: summary.architecture.principles.map((p, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 12, padding: 22, borderTop: `3px solid ${PK.sage}` }, children: [
3679
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 15.5, fontWeight: 600, color: PK.ink }, children: p.t }),
3680
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { size: 13.5, style: { marginTop: 8 }, children: p.d })
3681
- ] }, i)) })
3682
- ] });
3683
- }
3684
- function MDepthStack({ summary }) {
3685
- const specs = summary.architecture.layers.map((l) => [l.n, l.f, l.d]);
3686
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "flex", gap: "clamp(20px,4vw,48px)", flexWrap: "wrap" }, children: specs.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { minWidth: 150 }, children: [
3687
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 10.5, letterSpacing: "0.1em", textTransform: "uppercase", color: PK.inkMute }, children: s[0] }),
3688
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 15, fontWeight: 600, color: PK.ink, marginTop: 6 }, children: s[1] }),
3689
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 12.5, color: PK.inkMute, marginTop: 3 }, children: s[2] })
3690
- ] }, i)) }) });
3691
- }
3692
- function MFaqAccordion({ summary }) {
3693
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "64px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
3694
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "Before you ask" }),
3695
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { marginTop: 18, maxWidth: 780 }, children: summary.feature.faq.map((f, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { borderTop: `1px solid ${PK.rule}` }, children: [
3696
- /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { width: "100%", padding: "16px 0", display: "flex", justifyContent: "space-between", gap: 20, fontFamily: PK.sans, fontSize: 16, fontWeight: 550, color: PK.ink }, children: [
3697
- f.q,
3698
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { style: { color: PK.inkMute }, children: i === 0 ? "\u2212" : "+" })
3699
- ] }),
3700
- i === 0 && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { size: 15, style: { paddingBottom: 18, maxWidth: 640 }, children: f.a })
3701
- ] }, i)) })
3702
- ] });
3703
- }
3704
- function MFaqColumns({ summary }) {
3705
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "64px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
3706
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "Before you ask" }),
3707
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fit,minmax(260px,1fr))", gap: "clamp(20px,3vw,40px)", marginTop: 24 }, children: summary.feature.faq.map((f, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { children: [
3708
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 15, fontWeight: 650, color: PK.ink }, children: f.q }),
3709
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { size: 14, style: { marginTop: 7 }, children: f.a })
3710
- ] }, i)) })
3711
- ] });
3712
- }
3713
- function MFaqObjections({ summary }) {
3714
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(PkSection, { pad: "64px 80px", style: { background: PK.panel, borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: [
3715
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkEyebrow, { children: "Fair objections" }),
3716
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { display: "grid", gap: 10, marginTop: 22 }, children: summary.feature.faq.map((f, i) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 12, padding: "18px 22px", display: "grid", gridTemplateColumns: "minmax(180px,280px) minmax(0,1fr)", gap: "clamp(18px,3vw,36px)", alignItems: "baseline" }, children: [
3717
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { style: { fontFamily: PK.serif, fontSize: 19, color: PK.ink, lineHeight: 1.25 }, children: f.q }),
3718
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PkBody, { size: 14, children: f.a })
3719
- ] }, i)) })
3720
- ] });
3721
- }
3722
- var PAGE_MARKETING = {
3723
- id: "marketing",
3724
- label: "Marketing Landing",
3725
- blurb: "Positions the project to someone who has never seen it \u2014 then proves it works.",
3726
- slots: [
3727
- { id: "hero", label: "Hero", variants: [
3728
- { id: "editorial", label: "Editorial statement", note: "Serif claim, wide measure. Best when the idea sells itself.", component: MHeroEditorial },
3729
- { id: "split", label: "Split with shot", note: "Claim left, product image right. Needs a strong screenshot.", component: MHeroSplit },
3730
- { id: "centered", label: "Centered + install", note: "Symmetrical, CLI-forward. Good for dev tools.", component: MHeroCentered },
3731
- { id: "terminal", label: "Dark terminal", note: "Inverted panel with a live session transcript.", component: MHeroTerminal }
3732
- ] },
3733
- { id: "proof", label: "Proof strip", variants: [
3734
- { id: "stats", label: "Four-up stat band", note: "Ruled cells. Use when numbers are concrete.", component: MProofStats },
3735
- { id: "ticker", label: "Attribute chips", note: "Low-commitment; works with no metrics at all.", component: MProofTicker },
3736
- { id: "quote", label: "Pull quote", note: "A single voice. Needs a real quote.", component: MProofQuote },
3737
- { id: "ledger", label: "Inline ledger", note: "Compact one-liner of figures.", component: MProofLedger }
3738
- ] },
3739
- { id: "pillars", label: "Capability block", variants: [
3740
- { id: "cards", label: "2\xD72 cards", note: "Even weight across four ideas.", component: MPillarsCards },
3741
- { id: "alt", label: "Alternating rows", note: "Each capability gets an image. Longest option.", component: MPillarsAlternating },
3742
- { id: "list", label: "Definition list", note: "Dense, text-only. Best for technical readers.", component: MPillarsList },
3743
- { id: "showcase", label: "Hero shot + legend", note: "One big image, four captions beneath.", component: MPillarsShowcase }
3744
- ] },
3745
- { id: "tour", label: "Product tour", variants: [
3746
- { id: "tabs", label: "Tabbed tour", note: "Interactive \u2014 one surface at a time, with a shot.", component: MTourTabs },
3747
- { id: "stacked", label: "Alternating deep-dive", note: "Every surface gets a full row. Longest, most convincing.", component: MTourStacked },
3748
- { id: "cards", label: "Tour cards", note: "Four capped cards with thumbnails. Scannable.", component: MTourCards },
3749
- { id: "bigshot", label: "One window + legend", note: "A single full-app shot with an indexed rail.", component: MTourBigShot }
3750
- ] },
3751
- { id: "workflow", label: "How it works", variants: [
3752
- { id: "steps", label: "Four step cards", note: "Each step carries the command that runs it.", component: MFlowSteps },
3753
- { id: "rail", label: "Vertical loop", note: "Reads as a sequence; good after a dense section.", component: MFlowRail },
3754
- { id: "terminal", label: "Dark step band", note: "Inverted; breaks up a long cream page.", component: MFlowTerminal }
3755
- ] },
3756
- { id: "depth", label: "Substance block", variants: [
3757
- { id: "compare", label: "Comparison table", note: "Against the two alternatives buyers already have.", component: MDepthCompare },
3758
- { id: "specs", label: "Spec ledger", note: "Requirements and limits, plainly stated.", component: MDepthSpecs },
3759
- { id: "privacy", label: "Local-first panel", note: "Leads with the privacy argument.", component: MDepthPrivacy },
3760
- { id: "stack", label: "Inline spec strip", note: "Lightest option \u2014 one band of facts.", component: MDepthStack }
3761
- ] },
3762
- { id: "faq", label: "Objections", variants: [
3763
- { id: "accordion", label: "Accordion", note: "Compact; hides answers until asked.", component: MFaqAccordion },
3764
- { id: "columns", label: "Open columns", note: "Everything visible, nothing to click.", component: MFaqColumns },
3765
- { id: "objections", label: "Objection rows", note: "Question as a serif statement, answer beside it.", component: MFaqObjections }
3766
- ] },
3767
- { id: "close", label: "Closing CTA", variants: [
3768
- { id: "install", label: "Dark install band", note: "Ends on the command.", component: MCloseInstall },
3769
- { id: "split", label: "Split CTA", note: "Statement left, buttons right.", component: MCloseSplit },
3770
- { id: "quiet", label: "Quiet footer note", note: "Understated; for tools that avoid a hard sell.", component: MCloseQuiet }
3771
- ] }
3772
- ],
3773
- presets: [
3774
- { id: "v1", label: "Editorial", note: "Type-led, image-light. Safest for an unknown project.", pick: { hero: "editorial", proof: "stats", pillars: "cards", tour: "tabs", workflow: "rail", depth: "compare", faq: "accordion", close: "install" } },
3775
- { id: "v2", label: "Product-led", note: "Screenshots carry the argument.", pick: { hero: "split", proof: "quote", pillars: "alt", tour: "stacked", workflow: "steps", depth: "privacy", faq: "objections", close: "split" } },
3776
- { id: "v3", label: "Developer", note: "CLI-forward, dense, no marketing gloss.", pick: { hero: "terminal", proof: "ticker", pillars: "list", tour: "bigshot", workflow: "terminal", depth: "specs", faq: "columns", close: "quiet" } }
3777
- ]
3778
- };
3779
-
3780
- // src/renderer/lib/projectPages/library/featureSlots.tsx
3781
- var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
3782
- function FHeadSpec({ summary }) {
3783
- const f = summary.feature;
3784
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px 40px", style: { borderBottom: `1px solid ${PK.rule}` }, children: [
3785
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "flex", gap: 10, alignItems: "center" }, children: [
3786
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: f.kicker }),
3787
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { color: PK.rule }, children: "/" }),
3788
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkPill, { bg: PK.card, children: [
3789
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkDot, {}),
3790
- f.status
3791
- ] }),
3792
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkPill, { children: f.owner })
3793
- ] }),
3794
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkH, { size: 46, style: { marginTop: 18 }, children: f.name }),
3795
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 18, style: { marginTop: 14, maxWidth: 720 }, children: f.oneLine }),
3796
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { display: "flex", gap: 40, marginTop: 30, flexWrap: "wrap" }, children: [["Owner", f.owner], ["Status", f.status], ["Rules", String(f.rules.length)], ["Since", f.timeline[0]?.w ?? f.status]].map(([k, v]) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
3797
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 10.5, letterSpacing: "0.12em", textTransform: "uppercase", color: PK.inkMute }, children: k }),
3798
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 14, color: PK.ink, marginTop: 5 }, children: v })
3799
- ] }, k)) })
3800
- ] });
3801
- }
3802
- function FHeadProblem({ summary }) {
3803
- const f = summary.feature;
3804
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "64px 80px", style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 56, borderBottom: `1px solid ${PK.rule}` }, children: [
3805
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
3806
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { tone: PK.inkMute, children: "The problem" }),
3807
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 17, style: { marginTop: 14 }, children: f.problem })
3808
- ] }),
3809
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
3810
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: f.name }),
3811
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkH, { size: 34, style: { marginTop: 14 }, children: f.oneLine }),
3812
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { style: { marginTop: 14 }, children: f.solution })
3813
- ] })
3814
- ] });
3815
- }
3816
- function FHeadHero({ summary }) {
3817
- const f = summary.feature;
3818
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "64px 80px 0", style: { background: PK.panel, borderBottom: `1px solid ${PK.rule}` }, children: [
3819
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { maxWidth: 700 }, children: [
3820
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkEyebrow, { children: [
3821
- f.kicker,
3822
- " \xB7 ",
3823
- f.status
3824
- ] }),
3825
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkH, { size: 48, style: { marginTop: 16 }, children: f.name }),
3826
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 17, style: { marginTop: 14 }, children: f.oneLine })
3827
- ] }),
3828
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkShot, { h: 260, label: "feature in context", style: { marginTop: 36, marginBottom: -1, borderRadius: "12px 12px 0 0", background: PK.card, borderStyle: "solid", borderBottom: "none" } })
3829
- ] });
3830
- }
3831
- function FHeadBeforeAfter({ summary }) {
3832
- const f = summary.feature;
3833
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { borderBottom: `1px solid ${PK.rule}` }, children: [
3834
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: f.kicker }),
3835
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkH, { size: 40, style: { marginTop: 14 }, children: f.name }),
3836
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { display: "grid", gridTemplateColumns: "1fr 1fr", gap: 18, marginTop: 30 }, children: [["Before", f.problem, PK.rule], ["After", f.solution, PK.sage]].map(([k, v, c]) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 12, padding: 24, borderTop: `3px solid ${c}` }, children: [
3837
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 11, letterSpacing: "0.12em", textTransform: "uppercase", color: PK.inkMute }, children: k }),
3838
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 15, style: { marginTop: 10 }, children: v })
3839
- ] }, k)) })
3840
- ] });
3841
- }
3842
- function FMechSteps({ summary }) {
3843
- const steps = summary.feature.steps;
3844
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", children: [
3845
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "How it works" }),
3846
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkH, { size: 32, style: { marginTop: 12 }, children: [
3847
- steps.length,
3848
- " steps, start to finish."
3849
- ] }),
3850
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { marginTop: 30 }, children: steps.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "44px minmax(110px,200px) minmax(0,1fr)", gap: 20, padding: "18px 0", borderTop: `1px solid ${PK.rule}`, alignItems: "baseline" }, children: [
3851
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 13, color: PK.accent }, children: String(i + 1).padStart(2, "0") }),
3852
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 15, fontWeight: 600, color: PK.ink }, children: s.t }),
3853
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 14.5, children: s.d })
3854
- ] }, i)) })
3855
- ] });
3856
- }
3857
- function FMechFlow({ summary }) {
3858
- const steps = summary.feature.steps;
3859
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { background: PK.panel, borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: [
3860
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "The path a job takes" }),
3861
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { display: "flex", gap: 0, marginTop: 26, alignItems: "stretch", flexWrap: "wrap" }, children: steps.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "contents" }, children: [
3862
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { flex: "1 1 150px", background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 10, padding: 16 }, children: [
3863
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 10.5, color: PK.accent }, children: String(i + 1).padStart(2, "0") }),
3864
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 14, fontWeight: 600, color: PK.ink, marginTop: 8 }, children: s.t }),
3865
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 12.5, style: { marginTop: 6 }, children: s.d })
3866
- ] }),
3867
- i < steps.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { width: 26, display: "flex", alignItems: "center", justifyContent: "center", color: PK.inkMute, fontFamily: PK.mono }, children: "\u2192" })
3868
- ] }, i)) })
3869
- ] });
3870
- }
3871
- function FMechAnnotated({ summary }) {
3872
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { display: "grid", gridTemplateColumns: "1fr 340px", gap: 40 }, children: [
3873
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
3874
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "Anatomy" }),
3875
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkH, { size: 30, style: { marginTop: 12 }, children: "What you are looking at." }),
3876
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkShot, { h: 300, label: "annotated interface", style: { marginTop: 22 } })
3877
- ] }),
3878
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { paddingTop: 78 }, children: summary.feature.steps.slice(0, 4).map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "flex", gap: 12, padding: "14px 0", borderTop: `1px solid ${PK.rule}` }, children: [
3879
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { flex: "none", width: 20, height: 20, borderRadius: "50%", background: PK.accent, color: "#fff", fontFamily: PK.mono, fontSize: 11, display: "grid", placeItems: "center" }, children: i + 1 }),
3880
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
3881
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 14, fontWeight: 600, color: PK.ink }, children: s.t }),
3882
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 13, style: { marginTop: 4 }, children: s.d })
3883
- ] })
3884
- ] }, i)) })
3885
- ] });
3886
- }
3887
- function FMechNarrative({ summary }) {
3888
- const f = summary.feature;
3889
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkSection, { pad: "56px 80px", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "200px 1fr", gap: 48 }, children: [
3890
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { style: { paddingTop: 6 }, children: "How it works" }),
3891
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { maxWidth: 640 }, children: [
3892
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 17.5, children: f.solution }),
3893
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { marginTop: 26, borderLeft: `2px solid ${PK.accent}`, paddingLeft: 20, display: "grid", gap: 14 }, children: f.steps.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
3894
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { style: { fontFamily: PK.sans, fontSize: 15, fontWeight: 600, color: PK.ink }, children: [
3895
- s.t,
3896
- ". "
3897
- ] }),
3898
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 15, lineHeight: 1.6, color: PK.inkSoft }, children: s.d })
3899
- ] }, i)) })
3900
- ] })
3901
- ] }) });
3902
- }
3903
- function walkScreens(summary) {
3904
- const f = summary.feature;
3905
- const tag = summary.identity.tag;
3906
- return [
3907
- { k: "Queue", t: `The ${f.name.toLowerCase()} before anything runs`, d: f.problem, pts: [f.rules[0]?.t, f.rules[1]?.t].filter((x) => Boolean(x)), chrome: `${tag} \u2014 ${f.name}` },
3908
- { k: "Run", t: f.oneLine, d: f.solution, pts: f.steps.slice(0, 3).map((s) => s.t), chrome: `${tag} \u2014 ${f.name} \xB7 running` },
3909
- { k: "Done", t: "Definition of done, checked", d: f.rules[f.rules.length - 1]?.d ?? f.solution, pts: f.rules.slice(2).map((r) => r.t), chrome: `${tag} \u2014 ${f.name} \xB7 summary` }
3910
- ];
3911
- }
3912
- function FvShot({ h = 300, label = "screenshot", chrome }) {
3913
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("figure", { style: { margin: 0, border: `1px solid ${PK.edge}`, borderRadius: 12, overflow: "hidden", background: PK.card, boxShadow: "0 6px 18px rgba(42,34,26,0.07)" }, children: [
3914
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: 8, padding: "8px 12px", background: PK.panel, borderBottom: `1px solid ${PK.edge}` }, children: [
3915
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { display: "flex", gap: 5 }, children: ["#d3a08a", "#e0cf9c", "#a8bb92"].map((c) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { width: 8, height: 8, borderRadius: "50%", background: c } }, c)) }),
3916
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 10.5, color: PK.inkMute, marginLeft: 4 }, children: chrome })
3917
- ] }),
3918
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { position: "relative", height: h, background: `repeating-linear-gradient(135deg, ${PK.panel} 0 10px, ${PK.card} 10px 20px)`, display: "grid", placeItems: "center" }, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 11, letterSpacing: "0.1em", textTransform: "uppercase", color: PK.inkMute }, children: label }) })
3919
- ] });
3920
- }
3921
- function FvWalkClickthrough({ summary }) {
3922
- const screens = walkScreens(summary);
3923
- const s = screens[0];
3924
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
3925
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "flex-end", gap: 20, flexWrap: "wrap" }, children: [
3926
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
3927
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "Click through it" }),
3928
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkH, { size: 30, style: { marginTop: 10 }, children: "One job, start to finish." })
3929
- ] }),
3930
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "flex", gap: 6, alignItems: "center" }, children: [
3931
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { style: { fontFamily: PK.mono, fontSize: 11.5, color: PK.inkMute, marginRight: 6 }, children: [
3932
- "1 / ",
3933
- screens.length
3934
- ] }),
3935
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBtn, { small: true, children: "\u2190" }),
3936
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBtn, { small: true, primary: true, children: "\u2192" })
3937
- ] })
3938
- ] }),
3939
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { display: "flex", gap: 6, marginTop: 20, flexWrap: "wrap" }, children: screens.map((x, n) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { style: { fontFamily: PK.sans, fontSize: 12.5, fontWeight: n === 0 ? 600 : 500, padding: "6px 13px", borderRadius: 999, border: `1px solid ${n === 0 ? PK.accent : PK.rule}`, background: n === 0 ? PK.accent : "transparent", color: n === 0 ? "#fff" : PK.inkSoft }, children: [
3940
- n + 1,
3941
- ". ",
3942
- x.k
3943
- ] }, x.k)) }),
3944
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "minmax(0,1.35fr) minmax(0,1fr)", gap: "clamp(20px,3vw,36px)", marginTop: 22, alignItems: "start" }, children: [
3945
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(FvShot, { h: 310, label: `${s.k.toLowerCase()} screen`, chrome: s.chrome }),
3946
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { paddingTop: 6 }, children: [
3947
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { tone: PK.inkMute, children: "What you are seeing" }),
3948
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkH, { size: 23, style: { marginTop: 10 }, children: s.t }),
3949
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 14.5, style: { marginTop: 10 }, children: s.d }),
3950
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { marginTop: 16, display: "grid", gap: 8 }, children: s.pts.map((p) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "flex", gap: 9, alignItems: "baseline" }, children: [
3951
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkDot, { c: PK.accent, s: 6 }),
3952
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 13.5, color: PK.inkSoft }, children: p })
3953
- ] }, p)) })
3954
- ] })
3955
- ] })
3956
- ] });
3957
- }
3958
- function FvWalkSideBySide({ summary }) {
3959
- const screens = walkScreens(summary);
3960
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}`, display: "grid", gap: 4 }, children: [
3961
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "Screen by screen" }),
3962
- screens.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "grid", gridTemplateColumns: i % 2 ? "minmax(0,1fr) minmax(0,1.25fr)" : "minmax(0,1.25fr) minmax(0,1fr)", gap: "clamp(22px,3.5vw,44px)", alignItems: "center", padding: "30px 0", borderTop: `1px solid ${PK.rule}` }, children: [
3963
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(FvShot, { h: 230, label: `${s.k.toLowerCase()} screen`, chrome: s.chrome }),
3964
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
3965
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: 9 }, children: [
3966
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { width: 22, height: 22, borderRadius: "50%", background: PK.accent, color: "#fff", fontFamily: PK.mono, fontSize: 11.5, display: "grid", placeItems: "center" }, children: i + 1 }),
3967
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { tone: PK.inkMute, children: s.k })
3968
- ] }),
3969
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkH, { size: 25, style: { marginTop: 12 }, children: s.t }),
3970
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 14.5, style: { marginTop: 10 }, children: s.d }),
3971
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { marginTop: 14, display: "grid", gap: 7 }, children: s.pts.map((p) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "flex", gap: 9, alignItems: "baseline" }, children: [
3972
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 12, color: PK.accent }, children: "\u2014" }),
3973
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 13.5, color: PK.inkSoft }, children: p })
3974
- ] }, p)) })
3975
- ] })
3976
- ] }, s.k))
3977
- ] });
3978
- }
3979
- function FvWalkFilmstrip({ summary }) {
3980
- const screens = walkScreens(summary);
3981
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { background: PK.panel, borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: [
3982
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "The whole path" }),
3983
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkH, { size: 28, style: { marginTop: 10, maxWidth: 520 }, children: [
3984
- screens.length,
3985
- " screens, in the order you meet them."
3986
- ] }),
3987
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fit,minmax(220px,1fr))", gap: 14, marginTop: 26 }, children: screens.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
3988
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(FvShot, { h: 150, label: s.k.toLowerCase(), chrome: `${i + 1} \xB7 ${s.k}` }),
3989
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 14, fontWeight: 600, color: PK.ink, marginTop: 12 }, children: s.t }),
3990
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 13, style: { marginTop: 6 }, children: s.d })
3991
- ] }, s.k)) })
3992
- ] });
3993
- }
3994
- function FvWalkHotspots({ summary }) {
3995
- const rules = summary.feature.rules;
3996
- const hotspots = rules.slice(0, 4).map((r, i) => ({ n: i + 1, x: [18, 52, 78, 32][i], y: [22, 40, 64, 78][i], t: r.t, d: r.d }));
3997
- const cur = hotspots[0];
3998
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
3999
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "Anatomy of the screen" }),
4000
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkH, { size: 30, style: { marginTop: 10, maxWidth: 560 }, children: "Every control, and why it is there." }),
4001
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "minmax(0,1.4fr) minmax(0,1fr)", gap: "clamp(20px,3vw,36px)", marginTop: 24, alignItems: "start" }, children: [
4002
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { position: "relative" }, children: [
4003
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(FvShot, { h: 340, label: `${summary.feature.name.toLowerCase()} \u2014 annotated`, chrome: `${summary.identity.tag} \u2014 ${summary.feature.name}` }),
4004
- hotspots.map((h) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { title: h.t, style: { position: "absolute", left: `${h.x}%`, top: `${h.y}%`, transform: "translate(-50%,-50%)", width: 28, height: 28, borderRadius: "50%", display: "grid", placeItems: "center", fontFamily: PK.mono, fontSize: 12, background: h.n === cur?.n ? PK.accent : PK.card, color: h.n === cur?.n ? "#fff" : PK.ink, border: `2px solid ${h.n === cur?.n ? PK.accent : PK.rule}`, boxShadow: "0 2px 6px rgba(42,34,26,0.18)" }, children: h.n }, h.n))
4005
- ] }),
4006
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { display: "grid", gap: 6 }, children: hotspots.map((h) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { textAlign: "left", display: "grid", gridTemplateColumns: "26px minmax(0,1fr)", gap: 12, padding: "12px 14px", borderRadius: 10, border: `1px solid ${h.n === cur?.n ? PK.accent : PK.edge}`, background: h.n === cur?.n ? PK.card : "transparent" }, children: [
4007
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { width: 22, height: 22, borderRadius: "50%", display: "grid", placeItems: "center", fontFamily: PK.mono, fontSize: 11.5, background: h.n === cur?.n ? PK.accent : PK.panel, color: h.n === cur?.n ? "#fff" : PK.inkSoft }, children: h.n }),
4008
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("span", { children: [
4009
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { display: "block", fontFamily: PK.sans, fontSize: 14, fontWeight: 600, color: PK.ink }, children: h.t }),
4010
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { display: "block", fontFamily: PK.sans, fontSize: 13, lineHeight: 1.5, color: PK.inkSoft, marginTop: 4 }, children: h.d })
4011
- ] })
4012
- ] }, h.n)) })
4013
- ] })
4014
- ] });
4015
- }
4016
- function FvStatesGrid({ summary }) {
4017
- const states = summary.feature.timeline.map((t) => ({ k: t.w, d: t.t, tone: t.s === "done" ? PK.sage : t.s === "next" ? PK.accent : PK.inkMute }));
4018
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
4019
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "Every state it can be in" }),
4020
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fit,minmax(230px,1fr))", gap: 16, marginTop: 22 }, children: states.map((s) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
4021
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(FvShot, { h: 140, label: `${s.k.toLowerCase()} state`, chrome: `${summary.feature.name} \xB7 ${s.k.toLowerCase()}` }),
4022
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: 8, marginTop: 12 }, children: [
4023
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkDot, { c: s.tone }),
4024
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 14, fontWeight: 600, color: PK.ink }, children: s.k })
4025
- ] }),
4026
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 13, style: { marginTop: 6 }, children: s.d })
4027
- ] }, s.k)) })
4028
- ] });
4029
- }
4030
- function FvStatesPair({ summary }) {
4031
- const t = summary.feature.timeline;
4032
- const before = t[0];
4033
- const after = t[t.length - 1];
4034
- if (!before || !after) return null;
4035
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { background: PK.panel, borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: [
4036
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "Before / after" }),
4037
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkH, { size: 28, style: { marginTop: 10, maxWidth: 520 }, children: "The same feature, one release apart." }),
4038
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fit,minmax(260px,1fr))", gap: 18, marginTop: 24 }, children: [[`Before \u2014 ${before.w}`, before.t], [`After \u2014 ${after.w}`, after.t]].map(([k, d], i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
4039
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(FvShot, { h: 220, label: i ? "current state" : "earlier state", chrome: k }),
4040
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 14.5, fontWeight: 600, color: PK.ink, marginTop: 12 }, children: k }),
4041
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 13.5, style: { marginTop: 6 }, children: d })
4042
- ] }, k)) })
4043
- ] });
4044
- }
4045
- function FvStatesDetails({ summary }) {
4046
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
4047
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "Detail shots" }),
4048
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkH, { size: 28, style: { marginTop: 10, maxWidth: 520 }, children: "The small parts that carry the state." }),
4049
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fit,minmax(220px,1fr))", gap: 16, marginTop: 24 }, children: summary.feature.rules.map((d) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 12, overflow: "hidden" }, children: [
4050
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { height: 96, background: `repeating-linear-gradient(135deg, ${PK.panel} 0 10px, ${PK.card} 10px 20px)`, display: "grid", placeItems: "center", borderBottom: `1px solid ${PK.edge}`, fontFamily: PK.mono, fontSize: 10.5, letterSpacing: "0.1em", textTransform: "uppercase", color: PK.inkMute }, children: "detail crop" }),
4051
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { padding: 16 }, children: [
4052
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 14, fontWeight: 600, color: PK.ink }, children: d.t }),
4053
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 13, style: { marginTop: 6 }, children: d.d })
4054
- ] })
4055
- ] }, d.t)) })
4056
- ] });
4057
- }
4058
- function FRulesCards({ summary }) {
4059
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
4060
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "Rules it will not break" }),
4061
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(2,1fr)", gap: 16, marginTop: 24 }, children: summary.feature.rules.map((r, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 12, padding: 20 }, children: [
4062
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 15, fontWeight: 600, color: PK.ink }, children: r.t }),
4063
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 14, style: { marginTop: 7 }, children: r.d })
4064
- ] }, i)) })
4065
- ] });
4066
- }
4067
- function FRulesTable({ summary }) {
4068
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
4069
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "Specification" }),
4070
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { marginTop: 22, border: `1px solid ${PK.edge}`, borderRadius: 12, overflow: "hidden" }, children: summary.feature.specs.map((r, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "minmax(110px,200px) minmax(120px,260px) minmax(0,1fr)", gap: 20, padding: "14px 20px", background: i % 2 ? PK.card : "transparent", borderTop: i ? `1px solid ${PK.edge}` : "none", fontFamily: PK.sans, fontSize: 14 }, children: [
4071
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { color: PK.ink, fontWeight: 600 }, children: r[0] }),
4072
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 12.5, color: PK.accent }, children: r[1] }),
4073
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { color: PK.inkSoft }, children: r[2] })
4074
- ] }, i)) })
4075
- ] });
4076
- }
4077
- function FRulesFaq({ summary }) {
4078
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
4079
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "Questions people ask" }),
4080
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { marginTop: 20, maxWidth: 760 }, children: summary.feature.faq.map((f, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { borderTop: `1px solid ${PK.rule}` }, children: [
4081
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { width: "100%", padding: "16px 0", display: "flex", justifyContent: "space-between", gap: 20, fontFamily: PK.sans, fontSize: 16, fontWeight: 550, color: PK.ink }, children: [
4082
- f.q,
4083
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { color: PK.inkMute }, children: i === 0 ? "\u2212" : "+" })
4084
- ] }),
4085
- i === 0 && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkBody, { size: 15, style: { paddingBottom: 18, maxWidth: 620 }, children: f.a })
4086
- ] }, i)) })
4087
- ] });
4088
- }
4089
- function FRulesInvariants({ summary }) {
4090
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { background: PK.deep, color: PK.paper }, children: [
4091
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { tone: PK.butter, children: "Invariants" }),
4092
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { display: "grid", gap: 0, marginTop: 20 }, children: summary.feature.rules.map((r, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "260px 1fr", gap: 28, padding: "16px 0", borderTop: "1px solid #3b3025" }, children: [
4093
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 13.5, color: PK.paper }, children: r.t }),
4094
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 14.5, lineHeight: 1.6, color: "#c1b39c" }, children: r.d })
4095
- ] }, i)) })
4096
- ] });
4097
- }
4098
- var F_ST = { done: PK.sage, next: PK.accent, idea: PK.inkMute };
4099
- function FStatusTimeline({ summary }) {
4100
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
4101
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "Where it stands" }),
4102
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { marginTop: 24, display: "grid", gap: 0 }, children: summary.feature.timeline.map((t, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "80px 20px 1fr 90px", gap: 16, alignItems: "center", padding: "13px 0", borderTop: i ? `1px solid ${PK.rule}` : "none" }, children: [
4103
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 12.5, color: PK.inkMute }, children: t.w }),
4104
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkDot, { c: F_ST[t.s] }),
4105
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 15, color: PK.ink }, children: t.t }),
4106
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkPill, { tone: F_ST[t.s], border: PK.rule, children: t.s })
4107
- ] }, i)) })
4108
- ] });
4109
- }
4110
- function FStatusMatrix({ summary }) {
4111
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}`, background: PK.panel }, children: [
4112
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "Release state" }),
4113
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(auto-fit,minmax(150px,1fr))", gap: 12, marginTop: 22 }, children: summary.feature.timeline.map((t, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 10, padding: 16, borderTop: `3px solid ${F_ST[t.s]}` }, children: [
4114
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 11.5, color: PK.inkMute }, children: t.w }),
4115
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 13.5, color: PK.ink, marginTop: 8, lineHeight: 1.4 }, children: t.t })
4116
- ] }, i)) })
4117
- ] });
4118
- }
4119
- function FStatusNext({ summary }) {
4120
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(PkSection, { pad: "48px 80px", style: { borderTop: `1px solid ${PK.rule}`, display: "grid", gridTemplateColumns: "1fr 1fr", gap: 48 }, children: [
4121
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
4122
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { children: "Shipped" }),
4123
- summary.feature.timeline.filter((t) => t.s === "done").map((t, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "flex", gap: 10, marginTop: 12, alignItems: "baseline" }, children: [
4124
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkDot, { c: PK.sage }),
4125
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 14.5, color: PK.inkSoft }, children: t.t })
4126
- ] }, i))
4127
- ] }),
4128
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { children: [
4129
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkEyebrow, { tone: PK.inkMute, children: "Not yet" }),
4130
- summary.feature.timeline.filter((t) => t.s !== "done").map((t, i) => /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { style: { display: "flex", gap: 10, marginTop: 12, alignItems: "baseline" }, children: [
4131
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(PkDot, { c: F_ST[t.s] }),
4132
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 14.5, color: PK.inkSoft }, children: t.t })
4133
- ] }, i))
4134
- ] })
4135
- ] });
4136
- }
4137
- var PAGE_FEATURE = {
4138
- id: "feature",
4139
- label: "Feature Description",
4140
- blurb: "Explains one capability in depth \u2014 mostly by showing it.",
4141
- slots: [
4142
- { id: "header", label: "Feature header", variants: [
4143
- { id: "spec", label: "Spec header", note: "Title plus metadata row. Reads like documentation.", component: FHeadSpec },
4144
- { id: "problem", label: "Problem / solution", note: "Two columns. Use when the pain needs naming first.", component: FHeadProblem },
4145
- { id: "hero", label: "Hero with shot", note: "Bleeds an image into the next section.", component: FHeadHero },
4146
- { id: "ba", label: "Before / after", note: "Contrast cards. Strongest for a fix to an old behaviour.", component: FHeadBeforeAfter }
4147
- ] },
4148
- { id: "mech", label: "How it works", variants: [
4149
- { id: "steps", label: "Numbered steps", note: "Ruled rows. Best for sequential mechanics.", component: FMechSteps },
4150
- { id: "flow", label: "Horizontal flow", note: "Cards with arrows. Good when order matters visually.", component: FMechFlow },
4151
- { id: "annotated", label: "Annotated screenshot", note: "Image plus numbered call-outs.", component: FMechAnnotated },
4152
- { id: "narrative", label: "Narrative + rail", note: "Prose first, steps as a supporting rail.", component: FMechNarrative }
4153
- ] },
4154
- { id: "walk", label: "Walkthrough", variants: [
4155
- { id: "click", label: "Click-through", note: "Interactive stepper \u2014 one screen at a time with a description beside it.", component: FvWalkClickthrough },
4156
- { id: "side", label: "Side-by-side rows", note: "Alternating shot / explanation. The most thorough option.", component: FvWalkSideBySide },
4157
- { id: "strip", label: "Filmstrip", note: "Screens in a row with captions. Fastest to scan.", component: FvWalkFilmstrip },
4158
- { id: "hotspots", label: "Hotspot anatomy", note: "One screen, numbered markers, clickable legend.", component: FvWalkHotspots }
4159
- ] },
4160
- { id: "states", label: "States & details", variants: [
4161
- { id: "grid", label: "State gallery", note: "Each release milestone as its own shot.", component: FvStatesGrid },
4162
- { id: "pair", label: "Before / after pair", note: "Two large shots making one comparison.", component: FvStatesPair },
4163
- { id: "details", label: "Detail crops", note: "Zoomed component shots with micro-copy.", component: FvStatesDetails }
4164
- ] },
4165
- { id: "rules", label: "Behaviour detail", variants: [
4166
- { id: "cards", label: "Rule cards", note: "Four guarantees, equal weight.", component: FRulesCards },
4167
- { id: "table", label: "Spec table", note: "Key / value / note. Densest option.", component: FRulesTable },
4168
- { id: "faq", label: "Expandable FAQ", note: "For edge cases readers ask about.", component: FRulesFaq },
4169
- { id: "invariants", label: "Dark invariants", note: "Inverted panel for hard constraints.", component: FRulesInvariants }
4170
- ] },
4171
- { id: "status", label: "Status", variants: [
4172
- { id: "timeline", label: "Release timeline", note: "Version-by-version ledger.", component: FStatusTimeline },
4173
- { id: "matrix", label: "Milestone cards", note: "Scannable across five columns.", component: FStatusMatrix },
4174
- { id: "next", label: "Shipped / not yet", note: "Two honest lists.", component: FStatusNext }
4175
- ] }
4176
- ],
4177
- presets: [
4178
- { id: "v1", label: "Documentation", note: "Metadata-forward, table-driven. For internal readers.", pick: { header: "spec", mech: "steps", walk: "hotspots", states: "grid", rules: "table", status: "timeline" } },
4179
- { id: "v2", label: "Explainer", note: "Frames the pain, then the mechanism, then the doubts.", pick: { header: "problem", mech: "flow", walk: "click", states: "pair", rules: "faq", status: "matrix" } },
4180
- { id: "v3", label: "Showcase", note: "Visual-first; leans on screenshots.", pick: { header: "hero", mech: "annotated", walk: "side", states: "details", rules: "cards", status: "next" } }
4181
- ]
4182
- };
4183
-
4184
- // src/renderer/lib/projectPages/library/architectureSlots.tsx
4185
- var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
4186
- var A_TONE = { accent: PK.accent, butter: PK.butter, sage: PK.sage, mute: PK.inkMute };
4187
- function ASumLayers({ summary }) {
4188
- const a = summary.architecture;
4189
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", style: { borderBottom: `1px solid ${PK.rule}` }, children: [
4190
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { children: "Architecture" }),
4191
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkH, { size: 40, style: { marginTop: 14, maxWidth: 760 }, children: a.summary }),
4192
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { marginTop: 34, display: "grid", gap: 8 }, children: a.layers.map((l, i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "160px 1fr 90px", gap: 24, alignItems: "center", background: PK.card, border: `1px solid ${PK.edge}`, borderLeft: `4px solid ${A_TONE[l.tone]}`, borderRadius: 10, padding: "16px 20px" }, children: [
4193
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 15, fontWeight: 600, color: PK.ink }, children: l.n }),
4194
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 14, color: PK.inkSoft }, children: l.d }),
4195
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 12, color: PK.inkMute, textAlign: "right" }, children: l.f })
4196
- ] }, i)) })
4197
- ] });
4198
- }
4199
- function ASumPrinciples({ summary }) {
4200
- const a = summary.architecture;
4201
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", style: { borderBottom: `1px solid ${PK.rule}`, display: "grid", gridTemplateColumns: "1fr 1fr", gap: 56 }, children: [
4202
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { children: [
4203
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { children: "Architecture" }),
4204
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkH, { size: 34, style: { marginTop: 14 }, children: a.summary })
4205
- ] }),
4206
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { display: "grid", gap: 0 }, children: a.principles.map((p, i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { padding: "14px 0", borderTop: `1px solid ${PK.rule}` }, children: [
4207
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 15, fontWeight: 600, color: PK.ink }, children: p.t }),
4208
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkBody, { size: 14, style: { marginTop: 5 }, children: p.d })
4209
- ] }, i)) })
4210
- ] });
4211
- }
4212
- function ASumStack({ summary }) {
4213
- const a = summary.architecture;
4214
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", style: { background: PK.deep, color: PK.paper }, children: [
4215
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { tone: PK.butter, children: "System overview" }),
4216
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkH, { size: 36, style: { marginTop: 14, color: PK.paper, maxWidth: 780 }, children: a.summary }),
4217
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { marginTop: 30, display: "grid", gap: 6 }, children: a.layers.map((l, i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { border: "1px solid #3b3025", borderRadius: 8, padding: "14px 18px", display: "flex", justifyContent: "space-between", gap: 24, alignItems: "center", background: i === 0 ? "#241d16" : "transparent" }, children: [
4218
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 13, color: l.tone === "mute" ? "#8f8271" : A_TONE[l.tone] }, children: l.n }),
4219
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 13.5, color: "#bdaf97", flex: 1 }, children: l.d }),
4220
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 11.5, color: "#7d715e" }, children: l.f })
4221
- ] }, i)) })
4222
- ] });
4223
- }
4224
- function ASumBoundary({ summary }) {
4225
- const a = summary.architecture;
4226
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", style: { borderBottom: `1px solid ${PK.rule}` }, children: [
4227
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { children: "Architecture" }),
4228
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkH, { size: 38, style: { marginTop: 14, maxWidth: 720 }, children: a.summary }),
4229
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { marginTop: 32, border: `1px solid ${PK.edge}`, borderRadius: 14, padding: 22, background: PK.card }, children: [
4230
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 11, letterSpacing: "0.12em", textTransform: "uppercase", color: PK.inkMute, marginBottom: 14 }, children: "trust boundary \u2014 nothing crosses to the network" }),
4231
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(4,1fr)", gap: 10 }, children: a.layers.map((l, i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { background: PK.paper, border: `1px solid ${PK.edge}`, borderRadius: 10, padding: 16, borderTop: `3px solid ${A_TONE[l.tone]}` }, children: [
4232
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 14, fontWeight: 600, color: PK.ink }, children: l.n }),
4233
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkBody, { size: 12.5, style: { marginTop: 6 }, children: l.d }),
4234
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 11, color: PK.inkMute, marginTop: 10 }, children: l.f })
4235
- ] }, i)) })
4236
- ] })
4237
- ] });
4238
- }
4239
- function AMapBoxes({ summary }) {
4240
- const m = summary.architecture.modules;
4241
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", style: { background: PK.panel, borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: [
4242
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { children: "Module map" }),
4243
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(3,1fr)", gap: 14, marginTop: 24 }, children: m.map((x, i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 12, padding: 18 }, children: [
4244
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
4245
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 13.5, color: PK.ink }, children: x.n }),
4246
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { style: { fontFamily: PK.mono, fontSize: 11, color: PK.inkMute }, children: [
4247
- x.f,
4248
- " files"
4249
- ] })
4250
- ] }),
4251
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkBody, { size: 13, style: { marginTop: 8 }, children: x.d }),
4252
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { height: 3, borderRadius: 2, background: PK.rule, marginTop: 14 }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { width: `${x.heat * 100}%`, height: "100%", borderRadius: 2, background: PK.accent } }) }),
4253
- x.dep.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { marginTop: 12, display: "flex", gap: 6, flexWrap: "wrap" }, children: x.dep.map((d) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkPill, { tone: PK.inkMute, children: [
4254
- "\u2192 ",
4255
- d
4256
- ] }, d)) })
4257
- ] }, i)) })
4258
- ] });
4259
- }
4260
- function AMapMatrix({ summary }) {
4261
- const m = summary.architecture.modules;
4262
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
4263
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { children: "Dependency matrix" }),
4264
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkBody, { size: 14, style: { marginTop: 8 }, children: "Row depends on column." }),
4265
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { marginTop: 22, overflowX: "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("table", { style: { borderCollapse: "collapse", fontFamily: PK.mono, fontSize: 12 }, children: [
4266
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("tr", { children: [
4267
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("th", { style: { width: 130 } }),
4268
- m.map((c) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("th", { style: { padding: "8px 6px", color: PK.inkMute, fontWeight: 400, writingMode: "vertical-rl", transform: "rotate(180deg)", height: 96, textAlign: "left" }, children: c.n }, c.n))
4269
- ] }) }),
4270
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("tbody", { children: m.map((r) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("tr", { children: [
4271
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("td", { style: { padding: "7px 12px 7px 0", color: PK.ink, whiteSpace: "nowrap", borderTop: `1px solid ${PK.rule}` }, children: r.n }),
4272
- m.map((c) => {
4273
- const on = r.dep.includes(c.n);
4274
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("td", { style: { borderTop: `1px solid ${PK.rule}`, borderLeft: `1px solid ${PK.rule}`, width: 40, height: 34, textAlign: "center", background: on ? PK.accent : r.n === c.n ? PK.panel : "transparent", color: "#fff" }, children: on ? "\u25CF" : "" }, c.n);
4275
- })
4276
- ] }, r.n)) })
4277
- ] }) })
4278
- ] });
4279
- }
4280
- function AMapTree({ summary }) {
4281
- const modules = summary.architecture.modules;
4282
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
4283
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { children: "Where the code lives" }),
4284
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { marginTop: 22, background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 12, padding: "18px 22px", fontFamily: PK.mono, fontSize: 13, lineHeight: 2 }, children: [
4285
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { color: PK.inkMute }, children: "src/" }),
4286
- modules.map((x, i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { display: "flex", gap: 14, paddingLeft: 18 }, children: [
4287
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { color: PK.inkMute }, children: i === modules.length - 1 ? "\u2514\u2500" : "\u251C\u2500" }),
4288
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { style: { color: PK.ink, minWidth: 120 }, children: [
4289
- x.n,
4290
- "/"
4291
- ] }),
4292
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { style: { color: PK.inkMute, fontSize: 12 }, children: [
4293
- x.f,
4294
- " files \xB7 ",
4295
- x.d
4296
- ] })
4297
- ] }, i))
4298
- ] })
4299
- ] });
4300
- }
4301
- function AMapLanes({ summary }) {
4302
- const modules = summary.architecture.modules;
4303
- const byName = Object.fromEntries(modules.map((m) => [m.n, m]));
4304
- const third = Math.max(1, Math.ceil(modules.length / 3));
4305
- const lanes = [
4306
- ["Lane 1", modules.slice(0, third).map((m) => m.n)],
4307
- ["Lane 2", modules.slice(third, third * 2).map((m) => m.n)],
4308
- ["Lane 3", modules.slice(third * 2).map((m) => m.n)]
4309
- ].filter(([, names]) => names.length > 0);
4310
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", style: { background: PK.panel, borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: [
4311
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { children: "Process lanes" }),
4312
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { marginTop: 24, display: "grid", gap: 12 }, children: lanes.map(([lane, names]) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "110px 1fr", gap: 20, alignItems: "center" }, children: [
4313
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 11.5, letterSpacing: "0.1em", textTransform: "uppercase", color: PK.inkMute }, children: lane }),
4314
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { display: "flex", gap: 10, flexWrap: "wrap" }, children: names.map((n) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 10, padding: "12px 16px", minWidth: 190 }, children: [
4315
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 13, color: PK.ink }, children: n }),
4316
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 12.5, color: PK.inkSoft, marginTop: 4 }, children: byName[n]?.d })
4317
- ] }, n)) })
4318
- ] }, lane)) })
4319
- ] });
4320
- }
4321
- function AFlowSequence({ summary }) {
4322
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", children: [
4323
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { children: "Control flow" }),
4324
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { marginTop: 24 }, children: summary.architecture.flow.map((f, i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "minmax(70px,120px) 24px minmax(70px,120px) minmax(0,1fr)", gap: 16, alignItems: "center", padding: "14px 0", borderTop: `1px solid ${PK.rule}` }, children: [
4325
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 12.5, color: PK.ink, textAlign: "right" }, children: f.a }),
4326
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { color: PK.accent, textAlign: "center", fontFamily: PK.mono }, children: "\u2192" }),
4327
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 12.5, color: PK.ink }, children: f.b }),
4328
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("span", { children: [
4329
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 12.5, color: PK.accent }, children: f.t }),
4330
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { fontFamily: PK.sans, fontSize: 13.5, color: PK.inkMute, marginLeft: 12 }, children: f.n })
4331
- ] })
4332
- ] }, i)) })
4333
- ] });
4334
- }
4335
- function AFlowRail({ summary }) {
4336
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", style: { background: PK.panel, borderTop: `1px solid ${PK.rule}`, borderBottom: `1px solid ${PK.rule}` }, children: [
4337
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { children: "The path of one request" }),
4338
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { marginTop: 26, position: "relative", paddingLeft: 26 }, children: [
4339
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { position: "absolute", left: 5, top: 6, bottom: 6, width: 2, background: PK.rule } }),
4340
- summary.architecture.flow.map((f, i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { position: "relative", paddingBottom: 22 }, children: [
4341
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { position: "absolute", left: -26, top: 4, width: 12, height: 12, borderRadius: "50%", background: PK.card, border: `2px solid ${PK.accent}` } }),
4342
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { fontFamily: PK.mono, fontSize: 13, color: PK.ink }, children: [
4343
- f.a,
4344
- " ",
4345
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { color: PK.inkMute }, children: "\u2192" }),
4346
- " ",
4347
- f.b
4348
- ] }),
4349
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 12.5, color: PK.accent, marginTop: 4 }, children: f.t }),
4350
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 13.5, color: PK.inkSoft, marginTop: 3 }, children: f.n })
4351
- ] }, i))
4352
- ] })
4353
- ] });
4354
- }
4355
- function AFlowDiagram({ summary }) {
4356
- const flow = summary.architecture.flow;
4357
- const nodes = [];
4358
- flow.forEach((f) => {
4359
- if (!nodes.includes(f.a)) nodes.push(f.a);
4360
- if (!nodes.includes(f.b)) nodes.push(f.b);
4361
- });
4362
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", children: [
4363
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { children: "Message path" }),
4364
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { marginTop: 26, display: "flex", alignItems: "center", gap: 0, flexWrap: "wrap", rowGap: 14 }, children: nodes.map((n, i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { display: "contents" }, children: [
4365
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { border: `1px solid ${PK.edge}`, background: PK.card, borderRadius: 999, padding: "9px 16px", fontFamily: PK.mono, fontSize: 12.5, color: PK.ink }, children: n }),
4366
- i < nodes.length - 1 && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { flex: "1 1 30px", minWidth: 30, height: 1, background: PK.rule, position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { position: "absolute", right: -1, top: -4, color: PK.rule, fontSize: 10 }, children: "\u25B6" }) })
4367
- ] }, n)) }),
4368
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { marginTop: 26, display: "grid", gridTemplateColumns: "repeat(3,1fr)", gap: 12 }, children: flow.map((f, i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { border: `1px solid ${PK.edge}`, borderRadius: 10, padding: 14, background: PK.card }, children: [
4369
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 12, color: PK.accent }, children: f.t }),
4370
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 13, color: PK.inkSoft, marginTop: 6 }, children: f.n })
4371
- ] }, i)) })
4372
- ] });
4373
- }
4374
- function ADecAdr({ summary }) {
4375
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
4376
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { children: "Decisions of record" }),
4377
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { marginTop: 22 }, children: summary.architecture.decisions.map((d, i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "90px 1fr", gap: 24, padding: "18px 0", borderTop: `1px solid ${PK.rule}` }, children: [
4378
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { children: [
4379
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.mono, fontSize: 12, color: PK.accent }, children: d.id }),
4380
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkPill, { tone: PK.sage, style: { marginTop: 8 }, children: d.s })
4381
- ] }),
4382
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { children: [
4383
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 16, fontWeight: 600, color: PK.ink }, children: d.t }),
4384
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkBody, { size: 14.5, style: { marginTop: 6, maxWidth: 660 }, children: d.w })
4385
- ] })
4386
- ] }, i)) })
4387
- ] });
4388
- }
4389
- function ADecCards({ summary }) {
4390
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
4391
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { children: "Decisions of record" }),
4392
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(2,1fr)", gap: 16, marginTop: 24 }, children: summary.architecture.decisions.map((d, i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 12, padding: 20 }, children: [
4393
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
4394
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 11.5, color: PK.accent }, children: d.id }),
4395
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkPill, { tone: PK.sage, children: d.s })
4396
- ] }),
4397
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 15.5, fontWeight: 600, color: PK.ink, marginTop: 10 }, children: d.t }),
4398
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkBody, { size: 14, style: { marginTop: 7 }, children: d.w })
4399
- ] }, i)) })
4400
- ] });
4401
- }
4402
- function ADecRisks({ summary }) {
4403
- const tone = { open: PK.accent, watching: PK.butter, mitigated: PK.sage };
4404
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", style: { borderTop: `1px solid ${PK.rule}`, background: PK.panel }, children: [
4405
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { children: "Known risks" }),
4406
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { marginTop: 22, display: "grid", gap: 10 }, children: summary.architecture.risks.map((r, i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderLeft: `4px solid ${tone[r.s]}`, borderRadius: 10, padding: "16px 20px", display: "grid", gridTemplateColumns: "1fr 110px", gap: 20, alignItems: "center" }, children: [
4407
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { children: [
4408
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 15, fontWeight: 600, color: PK.ink }, children: r.t }),
4409
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkBody, { size: 13.5, style: { marginTop: 5 }, children: r.d })
4410
- ] }),
4411
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkPill, { tone: tone[r.s], style: { justifySelf: "end" }, children: r.s })
4412
- ] }, i)) })
4413
- ] });
4414
- }
4415
- function ADecPrinciples({ summary }) {
4416
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(PkSection, { pad: "56px 80px", style: { background: PK.deep }, children: [
4417
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkEyebrow, { tone: PK.butter, children: "Rules the system holds itself to" }),
4418
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(2,1fr)", gap: 26, marginTop: 26 }, children: summary.architecture.principles.map((p, i) => /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { children: [
4419
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { style: { fontFamily: PK.serif, fontSize: 22, color: PK.paper }, children: p.t }),
4420
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(PkBody, { size: 14, style: { marginTop: 8, color: "#bdaf97" }, children: p.d })
4421
- ] }, i)) })
4422
- ] });
4423
- }
4424
- var PAGE_ARCH = {
4425
- id: "architecture",
4426
- label: "Architecture Overview",
4427
- blurb: "Orients an engineer to the shape of the system before they touch it.",
4428
- slots: [
4429
- { id: "summary", label: "System summary", variants: [
4430
- { id: "layers", label: "Layer ledger", note: "Stacked rows, top to bottom. The default.", component: ASumLayers },
4431
- { id: "principles", label: "Summary + principles", note: "Statement left, rules right.", component: ASumPrinciples },
4432
- { id: "stack", label: "Dark stack", note: "Inverted; reads as a systems doc.", component: ASumStack },
4433
- { id: "boundary", label: "Trust boundary", note: "Boxes inside an explicit boundary frame.", component: ASumBoundary }
4434
- ] },
4435
- { id: "map", label: "Module map", variants: [
4436
- { id: "boxes", label: "Module cards", note: "Grid with churn bars and dependency chips.", component: AMapBoxes },
4437
- { id: "matrix", label: "Dependency matrix", note: "Row depends on column. Densest, most precise.", component: AMapMatrix },
4438
- { id: "tree", label: "Source tree", note: "Mono tree of directories. Good for newcomers.", component: AMapTree },
4439
- { id: "lanes", label: "Process lanes", note: "Groups modules by lane.", component: AMapLanes }
4440
- ] },
4441
- { id: "flow", label: "Control flow", variants: [
4442
- { id: "seq", label: "Sequence rows", note: "A \u2192 B with message and note.", component: AFlowSequence },
4443
- { id: "rail", label: "Vertical rail", note: "One request followed end to end.", component: AFlowRail },
4444
- { id: "diagram", label: "Node chain + calls", note: "Path across the top, calls beneath.", component: AFlowDiagram }
4445
- ] },
4446
- { id: "dec", label: "Decisions & risk", variants: [
4447
- { id: "adr", label: "ADR list", note: "Numbered, with the reasoning kept.", component: ADecAdr },
4448
- { id: "cards", label: "Decision cards", note: "Two-up, scannable.", component: ADecCards },
4449
- { id: "risks", label: "Risk register", note: "What could still bite, and its state.", component: ADecRisks },
4450
- { id: "principles", label: "Dark principles", note: "Closes on the values, not the caveats.", component: ADecPrinciples }
4451
- ] }
4452
- ],
4453
- presets: [
4454
- { id: "v1", label: "Orientation", note: "For a new engineer on day one.", pick: { summary: "layers", map: "boxes", flow: "rail", dec: "adr" } },
4455
- { id: "v2", label: "Review", note: "Precise and dense \u2014 for an architecture review.", pick: { summary: "boundary", map: "matrix", flow: "seq", dec: "risks" } },
4456
- { id: "v3", label: "Narrative", note: "Reads like a systems essay.", pick: { summary: "stack", map: "lanes", flow: "diagram", dec: "principles" } }
4457
- ]
4458
- };
4459
-
4460
- // src/renderer/lib/projectPages/library/briefSlots.tsx
4461
- var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
4462
- var EMPTY_BRIEF = { purpose: "", what: [], areas: [], scope: [], conventions: [] };
4463
- function brief(summary) {
4464
- return summary.brief ?? EMPTY_BRIEF;
4465
- }
4466
- function EmptyNote({ children }) {
4467
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkBody, { size: 13, style: { color: PK.inkMute, fontStyle: "italic" }, children });
4468
- }
4469
- function tokenizeMd(text) {
4470
- const parts = String(text ?? "").split(/(\*\*[^*]+\*\*|`[^`]+`)/g);
4471
- const tokens = [];
4472
- for (const part of parts) {
4473
- if (!part) continue;
4474
- if (part.startsWith("**") && part.endsWith("**") && part.length >= 4) {
4475
- tokens.push({ type: "bold", text: part.slice(2, -2) });
4476
- } else if (part.startsWith("`") && part.endsWith("`") && part.length >= 2) {
4477
- tokens.push({ type: "code", text: part.slice(1, -1) });
4478
- } else {
4479
- tokens.push({ type: "text", text: part });
4480
- }
4481
- }
4482
- return tokens;
4483
- }
4484
- function Md({ text }) {
4485
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_jsx_runtime6.Fragment, { children: tokenizeMd(text).map((tok, i) => {
4486
- if (tok.type === "bold") return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("strong", { style: { color: PK.ink, fontWeight: 600 }, children: tok.text }, i);
4487
- if (tok.type === "code") return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("code", { style: { fontFamily: PK.mono, fontSize: "0.92em", background: PK.panel, borderRadius: 4, padding: "1px 5px" }, children: tok.text }, i);
4488
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { children: tok.text }, i);
4489
- }) });
4490
- }
4491
- function heatPercent(heat) {
4492
- if (typeof heat !== "number" || !Number.isFinite(heat)) return 0;
4493
- return Math.max(0, Math.min(100, Math.round(heat * 100)));
4494
- }
4495
- var SCOPE_TONE = {
4496
- added: { label: "added", color: PK.sage },
4497
- narrowed: { label: "narrowed", color: PK.accentDeep },
4498
- decided: { label: "decided", color: PK.butter }
4499
- };
4500
- function scopeTone(kind) {
4501
- const known = SCOPE_TONE[kind];
4502
- if (known) return known;
4503
- return { label: kind, color: PK.inkMute };
4504
- }
4505
- function BfPurposeProse({ summary }) {
4506
- const b = brief(summary);
4507
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(PkSection, { pad: "72px 80px 48px", children: [
4508
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkEyebrow, { children: "the project" }),
4509
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkH, { size: 38, style: { marginTop: 14, maxWidth: 760 }, children: b.purpose || summary.identity.claim }),
4510
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { marginTop: 26, display: "grid", gap: 16, maxWidth: 720 }, children: b.what.length ? b.what.map((p, i) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkBody, { size: 15, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Md, { text: p }) }, i)) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(EmptyNote, { children: 'No "what this is" summary generated yet.' }) })
4511
- ] });
4512
- }
4513
- function BfPurposeQuote({ summary }) {
4514
- const b = brief(summary);
4515
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(PkSection, { pad: "64px 80px", style: { background: PK.deep, color: PK.paper }, children: [
4516
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkEyebrow, { tone: PK.butter, children: "the project" }),
4517
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { fontFamily: PK.serif, fontSize: 34, lineHeight: 1.25, color: PK.paper, marginTop: 16, maxWidth: 760 }, children: b.purpose || summary.identity.claim }),
4518
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { marginTop: 24, display: "grid", gap: 10, maxWidth: 680 }, children: b.what.length ? b.what.map((p, i) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 14, lineHeight: 1.6, color: "#bdaf97" }, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Md, { text: p }) }, i)) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 13, color: "#8a7a60", fontStyle: "italic" }, children: 'No "what this is" summary generated yet.' }) })
4519
- ] });
4520
- }
4521
- function BfAreasTable({ summary }) {
4522
- const b = brief(summary);
4523
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(PkSection, { pad: "64px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
4524
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkEyebrow, { children: "structure" }),
4525
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkH, { size: 28, style: { marginTop: 12, maxWidth: 620 }, children: "How it's put together." }),
4526
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { marginTop: 24 }, children: b.areas.length ? b.areas.map((a, i) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "minmax(0,1.5fr) minmax(0,1.15fr) 120px", gap: 20, alignItems: "center", padding: "16px 0", borderTop: i ? `1px solid ${PK.rule}` : "none" }, children: [
4527
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { children: [
4528
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { style: { display: "flex", alignItems: "baseline", gap: 8 }, children: [
4529
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 13, fontWeight: 600, color: PK.ink }, children: a.name }),
4530
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { style: { fontFamily: PK.mono, fontSize: 11, color: PK.inkMute }, children: [
4531
- a.files,
4532
- " files"
4533
- ] })
4534
- ] }),
4535
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: { display: "block", fontFamily: PK.sans, fontSize: 12.5, color: PK.inkSoft, marginTop: 3 }, children: a.note })
4536
- ] }),
4537
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 11.5, color: a.epic ? PK.inkSoft : PK.inkMute }, children: a.epic ? `touched by ${a.epic}` : "no open session" }),
4538
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
4539
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: { flex: 1, height: 6, background: PK.panel, border: `1px solid ${PK.rule}`, borderRadius: 999, overflow: "hidden" }, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: { display: "block", height: "100%", width: `${heatPercent(a.heat)}%`, background: PK.accent } }) }),
4540
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 10.5, color: PK.inkMute, width: 24, textAlign: "right" }, children: heatPercent(a.heat) })
4541
- ] })
4542
- ] }, a.name)) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(EmptyNote, { children: "No areas inferred yet." }) })
4543
- ] });
4544
- }
4545
- function BfAreasCards({ summary }) {
4546
- const b = brief(summary);
4547
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(PkSection, { pad: "64px 80px", style: { background: PK.panel, borderTop: `1px solid ${PK.rule}` }, children: [
4548
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkEyebrow, { children: "structure" }),
4549
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkH, { size: 28, style: { marginTop: 12, maxWidth: 620 }, children: "How it's put together." }),
4550
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { display: "grid", gridTemplateColumns: "repeat(2,1fr)", gap: 16, marginTop: 28 }, children: b.areas.length ? b.areas.map((a, i) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { style: { background: PK.card, border: `1px solid ${PK.edge}`, borderRadius: 12, padding: 18 }, children: [
4551
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { style: { display: "flex", alignItems: "baseline", justifyContent: "space-between" }, children: [
4552
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 13, fontWeight: 600, color: PK.ink }, children: a.name }),
4553
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(PkPill, { tone: PK.inkMute, children: [
4554
- heatPercent(a.heat),
4555
- "% active"
4556
- ] })
4557
- ] }),
4558
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkBody, { size: 13, style: { marginTop: 8 }, children: a.note }),
4559
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { style: { fontFamily: PK.mono, fontSize: 10.5, color: PK.inkMute, marginTop: 10 }, children: [
4560
- a.files,
4561
- " files \xB7 ",
4562
- a.epic ? `touched by ${a.epic}` : "no open session"
4563
- ] })
4564
- ] }, i)) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(EmptyNote, { children: "No areas inferred yet." }) })
4565
- ] });
4566
- }
4567
- function BfScopeTimeline({ summary }) {
4568
- const b = brief(summary);
4569
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(PkSection, { pad: "64px 80px", style: { borderTop: `1px solid ${PK.rule}` }, children: [
4570
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkEyebrow, { children: "scope" }),
4571
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkH, { size: 28, style: { marginTop: 12, maxWidth: 620 }, children: "How the goal has moved." }),
4572
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { marginTop: 24 }, children: b.scope.length ? b.scope.map((s, i) => {
4573
- const tone = scopeTone(s.kind);
4574
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "96px 92px minmax(0,1fr)", gap: 16, alignItems: "start", padding: "14px 0", borderTop: i ? `1px solid ${PK.rule}` : "none" }, children: [
4575
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: { fontFamily: PK.mono, fontSize: 11, color: PK.inkMute, paddingTop: 2 }, children: s.when }),
4576
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkPill, { tone: tone.color, border: tone.color, style: { justifySelf: "start" }, children: tone.label }),
4577
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { children: [
4578
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: { display: "block", fontFamily: PK.sans, fontSize: 14, color: PK.ink, lineHeight: 1.55 }, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Md, { text: s.text }) }),
4579
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("span", { style: { display: "block", fontFamily: PK.mono, fontSize: 10.5, color: PK.inkMute, marginTop: 4 }, children: [
4580
- "from ",
4581
- s.src
4582
- ] })
4583
- ] })
4584
- ] }, i);
4585
- }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(EmptyNote, { children: "No scope history recorded yet." }) })
4586
- ] });
4587
- }
4588
- function BfScopeLog({ summary }) {
4589
- const b = brief(summary);
4590
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(PkSection, { pad: "56px 80px", style: { background: PK.deep, color: PK.paper }, children: [
4591
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkEyebrow, { tone: PK.butter, children: "scope" }),
4592
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { marginTop: 18, display: "grid", gap: 4 }, children: b.scope.length ? b.scope.map((s, i) => {
4593
- const tone = scopeTone(s.kind);
4594
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { style: { fontFamily: PK.mono, fontSize: 12.5, lineHeight: 1.8, display: "flex", gap: 10 }, children: [
4595
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: { color: "#8a7a60" }, children: s.when }),
4596
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: { color: tone.color, textTransform: "uppercase", fontSize: 10.5 }, children: tone.label }),
4597
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: { color: PK.paper, flex: 1 }, children: s.text })
4598
- ] }, i);
4599
- }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { fontFamily: PK.sans, fontSize: 13, color: "#8a7a60", fontStyle: "italic" }, children: "No scope history recorded yet." }) })
4600
- ] });
4601
- }
4602
- function BfConventionsChecklist({ summary }) {
4603
- const b = brief(summary);
4604
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(PkSection, { pad: "64px 80px", style: { background: PK.panel, borderTop: `1px solid ${PK.rule}` }, children: [
4605
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkEyebrow, { children: "rules" }),
4606
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkH, { size: 28, style: { marginTop: 12, maxWidth: 620 }, children: "Conventions this project follows." }),
4607
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { marginTop: 24, display: "grid", gap: 12, maxWidth: 680 }, children: b.conventions.length ? b.conventions.map((c, i) => /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { style: { display: "grid", gridTemplateColumns: "18px minmax(0,1fr)", gap: 10, alignItems: "start" }, children: [
4608
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { style: { color: PK.sage, fontFamily: PK.mono, fontSize: 13, lineHeight: "20px" }, children: "\u2713" }),
4609
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkBody, { size: 14, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Md, { text: c }) })
4610
- ] }, i)) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(EmptyNote, { children: "No conventions recorded yet." }) })
4611
- ] });
4612
- }
4613
- function BfConventionsChips({ summary }) {
4614
- const b = brief(summary);
4615
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(PkSection, { pad: "56px 80px", children: [
4616
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkEyebrow, { children: "rules" }),
4617
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkH, { size: 28, style: { marginTop: 12, maxWidth: 620 }, children: "Conventions this project follows." }),
4618
- /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { style: { marginTop: 22, display: "flex", flexWrap: "wrap", gap: 10 }, children: b.conventions.length ? b.conventions.map((c, i) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PkPill, { tone: PK.inkSoft, bg: PK.card, style: { padding: "7px 12px", fontFamily: PK.sans, fontSize: 12.5, whiteSpace: "normal", maxWidth: 340 }, children: c }, i)) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(EmptyNote, { children: "No conventions recorded yet." }) })
4619
- ] });
4620
- }
4621
- var PAGE_BRIEF = {
4622
- id: "brief",
4623
- label: "Brief",
4624
- blurb: "The project's synthesized Brief \u2014 purpose, structure, scope history, and conventions \u2014 as a static read, not a live dashboard.",
4625
- slots: [
4626
- { id: "purpose", label: "Purpose", variants: [
4627
- { id: "prose", label: "Prose", note: "Claim heading + what-this-is paragraphs. The default.", component: BfPurposeProse },
4628
- { id: "quote", label: "Dark pull-quote", note: "Inverted, serif-led \u2014 leads with the purpose as a statement.", component: BfPurposeQuote }
4629
- ] },
4630
- { id: "areas", label: "How it's put together", variants: [
4631
- { id: "table", label: "Dense rows", note: "Name, note, owning session, heat bar \u2014 one row per area.", component: BfAreasTable },
4632
- { id: "cards", label: "2\xD72 cards", note: "Even weight across every area, heat as a pill.", component: BfAreasCards }
4633
- ] },
4634
- { id: "scope", label: "How the goal has moved", variants: [
4635
- { id: "timeline", label: "Timeline", note: "Dated rows with an added/narrowed/decided tone pill. The default.", component: BfScopeTimeline },
4636
- { id: "log", label: "Dark log", note: "Compact monospace log lines, inverted.", component: BfScopeLog }
4637
- ] },
4638
- { id: "conventions", label: "Conventions", variants: [
4639
- { id: "checklist", label: "Checklist", note: "One checkmark per convention. The default.", component: BfConventionsChecklist },
4640
- { id: "chips", label: "Wrapped chips", note: "Denser, no vertical list.", component: BfConventionsChips }
4641
- ] }
4642
- ],
4643
- presets: [
4644
- { id: "v1", label: "Read", note: "Default \u2014 prose purpose, dense area rows, timeline scope, checklist conventions.", pick: { purpose: "prose", areas: "table", scope: "timeline", conventions: "checklist" } },
4645
- { id: "v2", label: "Ledger", note: "Denser, mono-leaning, two inverted sections.", pick: { purpose: "quote", areas: "cards", scope: "log", conventions: "chips" } }
4646
- ]
4647
- };
4648
-
4649
- // src/renderer/lib/projectPages/library/index.ts
4650
- var LENS_LIBRARY = {
4651
- home: PAGE_HOME,
4652
- marketing: PAGE_MARKETING,
4653
- feature: PAGE_FEATURE,
4654
- architecture: PAGE_ARCH,
4655
- brief: PAGE_BRIEF
4656
- };
4657
- var LENS_ORDER = ["home", "marketing", "feature", "architecture", "brief"];
4658
- // Annotate the CommonJS export names for ESM import in node:
4659
- 0 && (module.exports = {
4660
- LENS_LIBRARY,
4661
- LENS_ORDER,
4662
- validateProjectPageSummary
4663
- });
4664
- /*! Bundled license information:
4665
-
4666
- react/cjs/react.production.min.js:
4667
- (**
4668
- * @license React
4669
- * react.production.min.js
4670
- *
4671
- * Copyright (c) Facebook, Inc. and its affiliates.
4672
- *
4673
- * This source code is licensed under the MIT license found in the
4674
- * LICENSE file in the root directory of this source tree.
4675
- *)
4676
-
4677
- react/cjs/react.development.js:
4678
- (**
4679
- * @license React
4680
- * react.development.js
4681
- *
4682
- * Copyright (c) Facebook, Inc. and its affiliates.
4683
- *
4684
- * This source code is licensed under the MIT license found in the
4685
- * LICENSE file in the root directory of this source tree.
4686
- *)
4687
-
4688
- react/cjs/react-jsx-runtime.production.min.js:
4689
- (**
4690
- * @license React
4691
- * react-jsx-runtime.production.min.js
4692
- *
4693
- * Copyright (c) Facebook, Inc. and its affiliates.
4694
- *
4695
- * This source code is licensed under the MIT license found in the
4696
- * LICENSE file in the root directory of this source tree.
4697
- *)
4698
-
4699
- react/cjs/react-jsx-runtime.development.js:
4700
- (**
4701
- * @license React
4702
- * react-jsx-runtime.development.js
4703
- *
4704
- * Copyright (c) Facebook, Inc. and its affiliates.
4705
- *
4706
- * This source code is licensed under the MIT license found in the
4707
- * LICENSE file in the root directory of this source tree.
4708
- *)
4709
- */