@reqvire-org/ads 0.4.0 → 0.4.2

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 (394) hide show
  1. package/README.md +105 -86
  2. package/dist/a11y.mjs +108 -29
  3. package/dist/analysis/compiler-options.mjs +13 -0
  4. package/dist/analysis/context.mjs +46 -0
  5. package/dist/analysis/file-tree.mjs +52 -0
  6. package/dist/analysis/helpers.mjs +140 -0
  7. package/dist/analysis/impact.mjs +20 -0
  8. package/dist/analysis/inputs.mjs +15 -0
  9. package/dist/analysis/native-adapter.mjs +180 -0
  10. package/dist/analysis/native-project.mjs +323 -0
  11. package/dist/analysis/queries.mjs +133 -0
  12. package/dist/analysis/service.mjs +146 -0
  13. package/dist/analysis/standalone.mjs +57 -0
  14. package/dist/analysis/syntax.mjs +164 -0
  15. package/dist/analysis/worker.mjs +182 -0
  16. package/dist/assets.mjs +5 -5
  17. package/dist/atomic-composition.mjs +191 -70
  18. package/dist/atomic-trace.mjs +120 -50
  19. package/dist/behavior-libraries.mjs +106 -37
  20. package/dist/behaviors.mjs +219 -77
  21. package/dist/boundaries.mjs +135 -38
  22. package/dist/brand-assets.mjs +219 -47
  23. package/dist/brands.mjs +86 -27
  24. package/dist/bun-compiler.mjs +28 -14
  25. package/dist/bun-worker.mjs +7 -5
  26. package/dist/capture/worker.mjs +15 -4
  27. package/dist/capture-store.mjs +4 -2
  28. package/dist/capture.mjs +17 -14
  29. package/dist/check-service.mjs +40 -57
  30. package/dist/check.mjs +749 -188
  31. package/dist/cli.mjs +200 -99
  32. package/dist/color-values.mjs +21 -21
  33. package/dist/component-contrast.mjs +2 -2
  34. package/dist/config.mjs +303 -135
  35. package/dist/construction-styles.cjs +10 -0
  36. package/dist/control-padding.mjs +45 -25
  37. package/dist/css-values.mjs +3 -2
  38. package/dist/declarative-flow.mjs +209 -109
  39. package/dist/design-values.mjs +136 -51
  40. package/dist/development-runtime.mjs +4 -6
  41. package/dist/draft-boundary.mjs +11 -6
  42. package/dist/evidence.mjs +1 -1
  43. package/dist/finding-rules.mjs +7 -5
  44. package/dist/font-rules.mjs +2 -2
  45. package/dist/fonts-generated.mjs +2 -2
  46. package/dist/foundation-views.mjs +238 -0
  47. package/dist/foundation.mjs +63 -39
  48. package/dist/generated-entries.mjs +101 -34
  49. package/dist/icons.mjs +79 -32
  50. package/dist/image-attributes.mjs +109 -36
  51. package/dist/image-size.mjs +1 -1
  52. package/dist/index.mjs +0 -2
  53. package/dist/init.mjs +122 -41
  54. package/dist/investigations.mjs +2 -2
  55. package/dist/layers.mjs +298 -129
  56. package/dist/layout-widths.mjs +180 -85
  57. package/dist/linaria/preserve-values.cjs +7 -0
  58. package/dist/linaria/spatial-inputs.cjs +56 -0
  59. package/dist/lockup-composition.mjs +44 -0
  60. package/dist/lockup-model.cjs +64 -0
  61. package/dist/mcp/THIRD_PARTY_NOTICES.md +51 -1
  62. package/dist/mcp/apps.mjs +4 -30
  63. package/dist/mcp/behavior-pages.mjs +72 -24
  64. package/dist/mcp/build-status.mjs +257 -64
  65. package/dist/mcp/catalog.mjs +90 -26
  66. package/dist/mcp/context.mjs +17 -18
  67. package/dist/mcp/draft-discovery.mjs +44 -21
  68. package/dist/mcp/drafts.mjs +901 -281
  69. package/dist/mcp/execution-coordinator.mjs +417 -167
  70. package/dist/mcp/execution-results.mjs +7 -7
  71. package/dist/mcp/mutations.mjs +670 -234
  72. package/dist/mcp/preview-watch.mjs +448 -170
  73. package/dist/mcp/preview-widget.bundle.js +44 -50
  74. package/dist/mcp/prompts.mjs +5 -5
  75. package/dist/mcp/result-pages.mjs +1 -1
  76. package/dist/mcp/sandbox-host.mjs +1 -1
  77. package/dist/mcp/server.mjs +2402 -577
  78. package/dist/mcp/showcase-host.mjs +165 -41
  79. package/dist/mcp/skills.mjs +1 -1
  80. package/dist/mcp/text-diff.mjs +29 -10
  81. package/dist/paint-contracts.mjs +174 -81
  82. package/dist/palette-generated.mjs +2 -2
  83. package/dist/preview-bun.mjs +493 -187
  84. package/dist/preview-failure.mjs +1 -1
  85. package/dist/preview-files.mjs +13 -13
  86. package/dist/preview-imports.mjs +104 -55
  87. package/dist/preview-inputs.mjs +2 -2
  88. package/dist/preview-requests.mjs +24 -0
  89. package/dist/preview-resources.mjs +288 -147
  90. package/dist/preview-scope.mjs +5 -4
  91. package/dist/program-cache.mjs +8 -34
  92. package/dist/project-documents.mjs +1 -1
  93. package/dist/public-api.mjs +69 -31
  94. package/dist/public-props.mjs +39 -22
  95. package/dist/{browser-audit → render-audit}/axe-run.mjs +3 -3
  96. package/dist/{browser-audit → render-audit}/image-shape.mjs +2 -2
  97. package/dist/{browser-audit → render-audit}/layout-overflow.mjs +86 -23
  98. package/dist/{browser-audit → render-audit}/non-text-contrast.mjs +86 -27
  99. package/dist/{browser-audit → render-audit}/render-states.mjs +208 -52
  100. package/dist/{browser-audit → render-audit}/worker.mjs +86 -30
  101. package/dist/render-audit.mjs +828 -0
  102. package/dist/render-color-probe.mjs +96 -42
  103. package/dist/resource-limits.mjs +229 -97
  104. package/dist/runtime-contracts.mjs +467 -185
  105. package/dist/scenario-groups.mjs +22 -10
  106. package/dist/scenario-inspector.mjs +6 -43
  107. package/dist/scenario-program.mjs +8 -25
  108. package/dist/scenario-registry.mjs +72 -30
  109. package/dist/scenario-selectors.mjs +161 -64
  110. package/dist/scenario-slots.mjs +149 -56
  111. package/dist/scenario-trace.mjs +215 -109
  112. package/dist/scenarios-compiler.mjs +719 -378
  113. package/dist/scenarios-vite.d.mts +1 -3
  114. package/dist/scenarios-vite.mjs +2 -81
  115. package/dist/scenarios.mjs +421 -157
  116. package/dist/selector-match.mjs +2 -2
  117. package/dist/showcase/client.bundle.js +57 -56
  118. package/dist/showcase/draft-navigation.js +18 -0
  119. package/dist/showcase/favicon.ico +0 -0
  120. package/dist/showcase/favicon.svg +1 -0
  121. package/dist/showcase/foundation-view.css +55 -0
  122. package/dist/showcase/foundation-view.mjs +252 -0
  123. package/dist/showcase/guide-controls.ads.review.mjs +32 -0
  124. package/dist/showcase/icons.js +1 -145
  125. package/dist/showcase/index.html +3 -31
  126. package/dist/showcase/preview-frame.ads.review.css +46 -0
  127. package/dist/showcase/preview-frame.ads.review.d.mts +11 -0
  128. package/dist/showcase/preview-frame.ads.review.mjs +22 -0
  129. package/dist/showcase/preview-state.js +0 -9
  130. package/dist/showcase/refresh-scheduler.js +23 -0
  131. package/dist/showcase/style.css +5 -47
  132. package/dist/showcase/ui/ui.css +1353 -0
  133. package/dist/showcase/ui/ui.js +1062 -0
  134. package/dist/showcase-coverage.mjs +58 -37
  135. package/dist/skills/README.md +24 -23
  136. package/dist/skills/ads-designer/README.md +8 -2
  137. package/dist/skills/ads-designer/SKILL.md +130 -119
  138. package/dist/skills/ads-designer/references/accessibility.md +12 -13
  139. package/dist/skills/ads-designer/references/atomic-styles.md +4 -4
  140. package/dist/skills/ads-designer/references/behaviors.md +30 -27
  141. package/dist/skills/ads-designer/references/branding.md +98 -10
  142. package/dist/skills/ads-designer/references/captures.md +25 -0
  143. package/dist/skills/ads-designer/references/cli.md +21 -24
  144. package/dist/skills/ads-designer/references/contracts.md +7 -6
  145. package/dist/skills/ads-designer/references/design-data.md +49 -52
  146. package/dist/skills/ads-designer/references/drafts.md +20 -17
  147. package/dist/skills/ads-designer/references/evidence.md +1 -5
  148. package/dist/skills/ads-designer/references/guarded-editing.md +14 -18
  149. package/dist/skills/ads-designer/references/layers.md +1 -1
  150. package/dist/skills/ads-designer/references/layout.md +347 -0
  151. package/dist/skills/ads-designer/references/mobile.md +2 -1
  152. package/dist/skills/{ads-motion/references/performance.md → ads-designer/references/motion-performance.md} +5 -1
  153. package/dist/skills/{ads-motion/references/build.md → ads-designer/references/motion.md} +73 -5
  154. package/dist/skills/ads-designer/references/review.md +37 -34
  155. package/dist/skills/ads-designer/references/runtimes.md +33 -30
  156. package/dist/skills/ads-designer/references/scenarios.md +16 -18
  157. package/dist/skills/{ads-break-ui/references/catalog.md → ads-designer/references/stress-catalog.md} +3 -1
  158. package/dist/skills/ads-designer/references/stress-test.md +68 -0
  159. package/dist/skills/ads-designer/references/validation.md +83 -75
  160. package/dist/skills/ads-designer/references/workflows.md +8 -33
  161. package/dist/skills/ads-import/SKILL.md +43 -325
  162. package/dist/skills/ads-import/references/atomic-styles.md +4 -4
  163. package/dist/skills/ads-import/references/behaviors.md +30 -27
  164. package/dist/skills/ads-import/references/branding.md +5 -5
  165. package/dist/skills/ads-import/references/captures.md +25 -0
  166. package/dist/skills/ads-import/references/cli.md +21 -24
  167. package/dist/skills/ads-import/references/compatibility.md +1 -1
  168. package/dist/skills/ads-import/references/contracts.md +7 -6
  169. package/dist/skills/ads-import/references/design-data.md +49 -52
  170. package/dist/skills/ads-import/references/drafts.md +20 -17
  171. package/dist/skills/ads-import/references/evidence.md +1 -5
  172. package/dist/skills/ads-import/references/guarded-editing.md +14 -18
  173. package/dist/skills/ads-import/references/implementation.md +2 -1
  174. package/dist/skills/ads-import/references/layers.md +1 -1
  175. package/dist/skills/ads-import/references/layout.md +347 -0
  176. package/dist/skills/ads-import/references/review.md +37 -34
  177. package/dist/skills/ads-import/references/runtimes.md +33 -30
  178. package/dist/skills/ads-import/references/scenarios.md +16 -18
  179. package/dist/skills/ads-import/references/tokens.md +3 -3
  180. package/dist/skills/ads-import/references/validation.md +83 -75
  181. package/dist/skills/ads-import/references/workflows.md +8 -33
  182. package/dist/skills/ads-migrate/SKILL.md +56 -0
  183. package/dist/skills/ads-migrate/references/0.4.1-to-0.4.2.md +602 -0
  184. package/dist/skills/ads-port/SKILL.md +54 -343
  185. package/dist/skills/ads-port/references/atomic-styles.md +4 -4
  186. package/dist/skills/ads-port/references/behaviors.md +30 -27
  187. package/dist/skills/ads-port/references/captures.md +25 -0
  188. package/dist/skills/ads-port/references/cli.md +21 -24
  189. package/dist/skills/ads-port/references/contracts.md +7 -6
  190. package/dist/skills/ads-port/references/design-data.md +49 -52
  191. package/dist/skills/ads-port/references/drafts.md +20 -17
  192. package/dist/skills/ads-port/references/evidence.md +1 -5
  193. package/dist/skills/ads-port/references/guarded-editing.md +14 -18
  194. package/dist/skills/ads-port/references/layers.md +1 -1
  195. package/dist/skills/ads-port/references/layout.md +347 -0
  196. package/dist/skills/ads-port/references/lint-and-docs.md +8 -11
  197. package/dist/skills/ads-port/references/native-implementation.md +2 -1
  198. package/dist/skills/ads-port/references/review.md +37 -34
  199. package/dist/skills/ads-port/references/runtimes.md +33 -30
  200. package/dist/skills/ads-port/references/scenarios.md +16 -18
  201. package/dist/skills/ads-port/references/validation.md +83 -75
  202. package/dist/skills/ads-port/references/workflows.md +8 -33
  203. package/dist/source-symbols.mjs +1 -8
  204. package/dist/source-values.mjs +266 -128
  205. package/dist/spatial-composition.mjs +322 -0
  206. package/dist/spatial-contexts.cjs +56 -0
  207. package/dist/spatial-css.cjs +351 -0
  208. package/dist/spatial-inputs.cjs +80 -0
  209. package/dist/spatial-metadata.mjs +18 -0
  210. package/dist/spatial-model.cjs +322 -0
  211. package/dist/spatial.mjs +21 -0
  212. package/dist/stage-timing.cjs +20 -0
  213. package/dist/starters/preact/design-system/patterns/Conversation/Conversation.tsx +105 -0
  214. package/dist/starters/preact/design-system/patterns/Shell/Shell.tsx +275 -0
  215. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  216. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  217. package/dist/starters/preact/design-system/showcase/mcp/main.ads.mount.tsx +8 -0
  218. package/dist/starters/preact/ds.config.json +25 -6
  219. package/dist/starters/preact/package.json +4 -8
  220. package/dist/starters/preact/tsconfig.json +4 -5
  221. package/dist/starters/preact/vite.config.ts +3 -3
  222. package/dist/starters/react/ADS.md +42 -47
  223. package/dist/starters/react/README.md +47 -49
  224. package/dist/starters/react/design-system/components/Actions/IconButton/IconButton.tsx +18 -2
  225. package/dist/starters/react/design-system/components/Actions/IconButton/README.md +3 -0
  226. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/README.md +5 -0
  227. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.fixture.ts +13 -0
  228. package/dist/starters/react/design-system/composition/Workspace/WorkspacePage/WorkspacePage.ads.scenario.tsx +22 -0
  229. package/dist/starters/react/design-system/index.ts +2 -1
  230. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.exports.ts +1 -0
  231. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.fixture.ts +7 -0
  232. package/dist/starters/react/design-system/patterns/Conversation/Conversation.ads.scenario.tsx +15 -0
  233. package/dist/starters/react/design-system/patterns/Conversation/Conversation.tsx +105 -0
  234. package/dist/starters/react/design-system/patterns/Conversation/README.md +9 -0
  235. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.fixture.ts +5 -0
  236. package/dist/starters/react/design-system/patterns/Shell/Floating.ads.scenario.tsx +21 -0
  237. package/dist/starters/react/design-system/patterns/Shell/README.md +43 -0
  238. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.exports.ts +1 -0
  239. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.fixture.ts +5 -0
  240. package/dist/starters/react/design-system/patterns/Shell/Shell.ads.scenario.tsx +21 -0
  241. package/dist/starters/react/design-system/patterns/Shell/Shell.tsx +274 -0
  242. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.exports.ts +1 -1
  243. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.ads.review.tsx +7 -0
  244. package/dist/starters/react/design-system/review/index.ads.review.ts +4 -0
  245. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.exports.ts +1 -0
  246. package/dist/starters/react/design-system/review/region-block/RegionBlock.ads.review.tsx +6 -0
  247. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.exports.ts +1 -1
  248. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.ads.review.tsx +10 -0
  249. package/dist/starters/react/design-system/showcase/mcp/{main.tsx → main.ads.mount.tsx} +4 -2
  250. package/dist/starters/react/design-system/tokens/catalog.ads.json +1221 -0
  251. package/dist/starters/react/design-system/tokens/colors.css +1 -1
  252. package/dist/starters/react/design-system/tokens/spacing.css +22 -32
  253. package/dist/starters/react/design-system/tokens/spatial.ads.json +70 -0
  254. package/dist/starters/react/design-system/tokens/themes.generated.ts +1 -1
  255. package/dist/starters/react/ds.config.json +25 -6
  256. package/dist/starters/react/package.json +2 -6
  257. package/dist/starters/react/tsconfig.json +2 -3
  258. package/dist/starters/react/vite.config.ts +3 -3
  259. package/dist/style-boundaries.mjs +70 -25
  260. package/dist/task-cache.mjs +173 -72
  261. package/dist/task-worker.mjs +22 -11
  262. package/dist/test-boundaries.mjs +132 -59
  263. package/dist/themes-generated.mjs +1 -1
  264. package/dist/themes-watch.mjs +57 -22
  265. package/dist/themes.mjs +176 -73
  266. package/dist/token-export.mjs +39 -14
  267. package/dist/token-policy.mjs +6 -3
  268. package/dist/token-quality.mjs +6 -6
  269. package/dist/token-samples.mjs +16 -5
  270. package/dist/tokens.mjs +71 -26
  271. package/dist/ui-framework.mjs +16 -14
  272. package/dist/unit-contracts.mjs +251 -104
  273. package/dist/units.mjs +208 -98
  274. package/dist/usage.mjs +138 -38
  275. package/dist/validation-checks.mjs +115 -38
  276. package/dist/validation-inputs.mjs +187 -78
  277. package/dist/validation.mjs +268 -102
  278. package/dist/verification/browser.mjs +27 -5
  279. package/dist/verification.mjs +711 -187
  280. package/docs/ADS.md +90 -79
  281. package/docs/ARCHITECTURE.md +294 -136
  282. package/docs/BEHAVIORS.md +29 -25
  283. package/docs/CACHING.md +52 -17
  284. package/docs/CHANGELOG.md +309 -17
  285. package/docs/CONTRACTS.md +12 -4
  286. package/docs/DESIGN-REFERENCES.md +40 -0
  287. package/docs/GUIDE.md +270 -258
  288. package/docs/MCP.md +181 -324
  289. package/docs/SPATIAL-CHECKS.md +69 -0
  290. package/docs/benchmarks/README.md +39 -0
  291. package/package.json +42 -34
  292. package/dist/browser-audit.mjs +0 -429
  293. package/dist/create.mjs +0 -48
  294. package/dist/lint-config.mjs +0 -50
  295. package/dist/mcp/project-widget.bundle.js +0 -114
  296. package/dist/mcp/reports.mjs +0 -101
  297. package/dist/mcp/widget.bundle.js +0 -147
  298. package/dist/oxlint.mjs +0 -89
  299. package/dist/preview-builder.mjs +0 -133
  300. package/dist/preview-workers.mjs +0 -184
  301. package/dist/showcase.mjs +0 -77
  302. package/dist/skills/ads-break-ui/LICENSE.upstream +0 -21
  303. package/dist/skills/ads-break-ui/README.md +0 -16
  304. package/dist/skills/ads-break-ui/SKILL.md +0 -412
  305. package/dist/skills/ads-break-ui/agents/openai.yaml +0 -4
  306. package/dist/skills/ads-break-ui/references/atomic-styles.md +0 -293
  307. package/dist/skills/ads-break-ui/references/behaviors.md +0 -412
  308. package/dist/skills/ads-break-ui/references/captures.md +0 -135
  309. package/dist/skills/ads-break-ui/references/contracts.md +0 -317
  310. package/dist/skills/ads-break-ui/references/design-data.md +0 -354
  311. package/dist/skills/ads-break-ui/references/drafts.md +0 -194
  312. package/dist/skills/ads-break-ui/references/evidence.md +0 -128
  313. package/dist/skills/ads-break-ui/references/guarded-editing.md +0 -165
  314. package/dist/skills/ads-break-ui/references/layers.md +0 -145
  315. package/dist/skills/ads-break-ui/references/reporting.md +0 -101
  316. package/dist/skills/ads-break-ui/references/review.md +0 -97
  317. package/dist/skills/ads-break-ui/references/runtimes.md +0 -203
  318. package/dist/skills/ads-break-ui/references/scenarios.md +0 -246
  319. package/dist/skills/ads-break-ui/references/validation.md +0 -166
  320. package/dist/skills/ads-break-ui/references/verification.md +0 -58
  321. package/dist/skills/ads-break-ui/references/workflows.md +0 -90
  322. package/dist/skills/ads-designer/references/reporting.md +0 -101
  323. package/dist/skills/ads-import/references/reporting.md +0 -101
  324. package/dist/skills/ads-motion/LICENSE.upstream +0 -21
  325. package/dist/skills/ads-motion/README.md +0 -22
  326. package/dist/skills/ads-motion/SKILL.md +0 -385
  327. package/dist/skills/ads-motion/agents/openai.yaml +0 -4
  328. package/dist/skills/ads-motion/references/atomic-styles.md +0 -293
  329. package/dist/skills/ads-motion/references/audit.md +0 -44
  330. package/dist/skills/ads-motion/references/behaviors.md +0 -412
  331. package/dist/skills/ads-motion/references/captures.md +0 -135
  332. package/dist/skills/ads-motion/references/contracts.md +0 -317
  333. package/dist/skills/ads-motion/references/design-data.md +0 -354
  334. package/dist/skills/ads-motion/references/drafts.md +0 -194
  335. package/dist/skills/ads-motion/references/evidence.md +0 -128
  336. package/dist/skills/ads-motion/references/guarded-editing.md +0 -165
  337. package/dist/skills/ads-motion/references/layers.md +0 -145
  338. package/dist/skills/ads-motion/references/motion-review.md +0 -35
  339. package/dist/skills/ads-motion/references/reporting.md +0 -101
  340. package/dist/skills/ads-motion/references/review.md +0 -97
  341. package/dist/skills/ads-motion/references/runtimes.md +0 -203
  342. package/dist/skills/ads-motion/references/scenarios.md +0 -246
  343. package/dist/skills/ads-motion/references/validation.md +0 -166
  344. package/dist/skills/ads-motion/references/verification.md +0 -39
  345. package/dist/skills/ads-motion/references/workflows.md +0 -90
  346. package/dist/skills/ads-port/references/reporting.md +0 -101
  347. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
  348. package/dist/starters/preact/design-system/components/Layout/Grid/Grid.tsx +0 -76
  349. package/dist/starters/preact/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  350. package/dist/starters/preact/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  351. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
  352. package/dist/starters/preact/design-system/review/token-preview/TokenPreview.tsx +0 -137
  353. package/dist/starters/preact/design-system/showcase/mcp/main.tsx +0 -6
  354. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.fixture.ts +0 -7
  355. package/dist/starters/react/design-system/brand/Icons/AppIcon/AppIcon.ads.scenario.tsx +0 -4
  356. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.fixture.ts +0 -7
  357. package/dist/starters/react/design-system/brand/Identity/Logo/Logo.ads.scenario.tsx +0 -4
  358. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.contract.ts +0 -6
  359. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.exports.ts +0 -1
  360. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.fixture.ts +0 -12
  361. package/dist/starters/react/design-system/components/Layout/Grid/Grid.ads.scenario.tsx +0 -17
  362. package/dist/starters/react/design-system/components/Layout/Grid/Grid.tsx +0 -75
  363. package/dist/starters/react/design-system/components/Layout/Grid/README.md +0 -21
  364. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.ads.exports.ts +0 -1
  365. package/dist/starters/react/design-system/review/brand-preview/BrandPreview.tsx +0 -112
  366. package/dist/starters/react/design-system/review/demo-frame/DemoFrame.tsx +0 -29
  367. package/dist/starters/react/design-system/review/grid-cell/GridCell.ads.exports.ts +0 -1
  368. package/dist/starters/react/design-system/review/grid-cell/GridCell.tsx +0 -18
  369. package/dist/starters/react/design-system/review/index.ts +0 -6
  370. package/dist/starters/react/design-system/review/screen-frame/ScreenFrame.tsx +0 -34
  371. package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.contract.ts +0 -6
  372. package/dist/starters/react/design-system/review/token-preview/TokenPreview.ads.exports.ts +0 -1
  373. package/dist/starters/react/design-system/review/token-preview/TokenPreview.tsx +0 -137
  374. package/dist/starters/react/design-system/showcase/mcp/index.html +0 -1
  375. package/dist/starters/react/design-system/tokens/Color.ads.fixture.ts +0 -124
  376. package/dist/starters/react/design-system/tokens/Color.ads.scenario.tsx +0 -4
  377. package/dist/starters/react/design-system/tokens/Layout.ads.fixture.ts +0 -39
  378. package/dist/starters/react/design-system/tokens/Layout.ads.scenario.tsx +0 -4
  379. package/dist/starters/react/design-system/tokens/Motion.ads.fixture.ts +0 -18
  380. package/dist/starters/react/design-system/tokens/Motion.ads.scenario.tsx +0 -4
  381. package/dist/starters/react/design-system/tokens/Shape.ads.fixture.ts +0 -30
  382. package/dist/starters/react/design-system/tokens/Shape.ads.scenario.tsx +0 -4
  383. package/dist/starters/react/design-system/tokens/Space.ads.fixture.ts +0 -37
  384. package/dist/starters/react/design-system/tokens/Space.ads.scenario.tsx +0 -4
  385. package/dist/starters/react/design-system/tokens/Type.ads.fixture.ts +0 -29
  386. package/dist/starters/react/design-system/tokens/Type.ads.scenario.tsx +0 -4
  387. package/dist/starters/react/package-lock.json +0 -4707
  388. package/dist/token-fixtures.mjs +0 -30
  389. package/docs/benchmarks/bun-previews.md +0 -91
  390. package/docs/benchmarks/preview-memory.md +0 -147
  391. package/docs/benchmarks/turbo-poc.md +0 -284
  392. package/docs/plans/execution-coordination.md +0 -57
  393. /package/dist/{browser-audit → render-audit}/first-render.mjs +0 -0
  394. /package/dist/{browser-audit → render-audit}/layout-shift.mjs +0 -0
@@ -0,0 +1,1062 @@
1
+ var n, t$1, r$1, u$2, f$1, o$2, e$1, l$1, c$1, a$1, h$1 = {}, p$1 = [], v$1 = /^m(i|n|o|s|text|space)$/, y$1 = Array.isArray, d$1 = p$1.slice, w = Object.assign;
2
+ function _$1(n2) {
3
+ n2 && n2.parentNode && n2.remove();
4
+ }
5
+ function b$1(i2, r2, u2, f2, o2) {
6
+ var e2 = { type: i2, props: r2, key: u2, ref: f2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: o2 || ++t$1, __i: -1, __u: 0 };
7
+ return !o2 && n.vnode && n.vnode(e2), e2;
8
+ }
9
+ function M(n2) {
10
+ return n2.children;
11
+ }
12
+ function $(n2, t2) {
13
+ this.props = n2, this.context = t2, this.__g = 0;
14
+ }
15
+ function x(n2, t2) {
16
+ if (null == t2) return n2.__ ? x(n2.__, n2.__i + 1) : null;
17
+ for (var i2; t2 < n2.__k.length; t2++) if ((i2 = n2.__k[t2]) && i2.__e) return i2.__e;
18
+ return "function" != typeof n2.type || n2.props.__P ? null : x(n2);
19
+ }
20
+ function S(n2) {
21
+ if ((n2 = n2.__) && n2.__c && !n2.props.__P) return n2.__e = null, n2.__k.some(function(t2) {
22
+ return t2 && (n2.__e = t2.__e);
23
+ }), S(n2);
24
+ }
25
+ function C$1(t2) {
26
+ (8 & t2.__g || !(t2.__g |= 8) || !r$1.push(t2) || f$1++) && u$2 == n.debounceRendering || ((u$2 = n.debounceRendering) || queueMicrotask)(j);
27
+ }
28
+ function j() {
29
+ var t2, i2, u2, e2, l2, c2, a2, s2, h2;
30
+ try {
31
+ for (i2 = 1; r$1.length; ) r$1.length > i2 && r$1.sort(o$2), t2 = r$1.shift(), i2 = r$1.length, 8 & t2.__g && (e2 = void 0, l2 = void 0, c2 = (l2 = (u2 = t2).__v).__e, a2 = [], s2 = [], (h2 = u2.__P) && ((e2 = w({ constructor: void 0 }, l2)).__v = l2.__v + 1, n.vnode && n.vnode(e2), N(h2, e2, l2, u2.__n, h2.namespaceURI, 32 & l2.__u ? [c2] : null, a2, c2 || x(l2), 32 & l2.__u, s2), e2.__v = l2.__v, e2.__.__k[e2.__i] = e2, z$1(a2, e2, s2), l2.__ = l2.__e = null, e2.__e != c2 && S(e2)));
32
+ } finally {
33
+ r$1.length = f$1 = 0;
34
+ }
35
+ }
36
+ function L(n2, t2, i2, r2, u2, f2, o2, e2, l2, c2, a2) {
37
+ var s2, v2, y2, d2, w2, _2, g2 = r2.__k || p$1, k2 = t2.length;
38
+ for (l2 = H(i2, t2, g2, l2, k2), s2 = 0; s2 < k2; s2++) null != (y2 = i2.__k[s2]) && (v2 = ~y2.__i && g2[y2.__i] || h$1, y2.__i = s2, _2 = N(n2, y2, v2, u2, f2, o2, e2, l2, c2, a2), d2 = y2.__e, (v2.ref != y2.ref || 8 & v2.__u) && (v2.ref && D$1(v2.ref, null, y2, v2), y2.ref && a2.push(y2.ref, y2.__c || d2, y2)), w2 = w2 || d2, 4 & y2.__u ? (l2 = I(y2, l2, n2, !v2.__v), v2.__e && (v2.__e = null)) : "function" == typeof y2.type && void 0 !== _2 ? l2 = _2 : d2 && (l2 = d2.nextSibling), y2.__u &= -7);
39
+ return i2.__e = w2, l2;
40
+ }
41
+ function H(n2, t2, i2, r2, u2) {
42
+ var f2, o2, e2, l2, c2, a2, s2, h2, p2, v2, d2 = i2.length, w2 = d2, _2 = 0, g2 = false, k2 = n2.__k = Array(u2);
43
+ for (f2 = 0; f2 < u2; f2++) null != (o2 = t2[f2]) && "boolean" != typeof o2 && "function" != typeof o2 ? ("object" != typeof o2 || o2.constructor == String ? o2 = k2[f2] = b$1(null, o2) : y$1(o2) ? o2 = k2[f2] = b$1(M, { children: o2 }) : void 0 === o2.constructor && o2.__b ? o2 = k2[f2] = b$1(o2.type, o2.props, o2.key, o2.ref, o2.__v) : k2[f2] = o2, l2 = f2 + _2, o2.__ = n2, o2.__b = n2.__b + 1, e2 = null, ~(c2 = o2.__i = O(o2, i2, l2, w2)) && (w2--, (e2 = i2[c2]) && (e2.__u |= 2)), e2 && e2.__v ? (o2.__u |= 2, c2 == l2 - 1 ? _2-- : c2 == l2 + 1 ? _2++ : c2 != l2 && (c2 > l2 ? _2-- : _2++, g2 = true)) : (~c2 || (u2 > d2 ? _2-- : u2 < d2 && _2++), "function" != typeof o2.type && (o2.__u |= 4))) : k2[f2] = null;
44
+ if (g2) {
45
+ for (a2 = [], s2 = [], f2 = 0; f2 < u2; f2++) if ((o2 = k2[f2]) && 2 & o2.__u) {
46
+ for (h2 = 0, p2 = a2.length; h2 < p2; ) a2[v2 = h2 + p2 >> 1] < o2.__i ? h2 = v2 + 1 : p2 = v2;
47
+ a2[h2] = o2.__i, s2[f2] = h2 + 1;
48
+ }
49
+ for (_2 = a2.length; f2--; ) s2[f2] && (s2[f2] == _2 ? _2-- : k2[f2].__u |= 4);
50
+ }
51
+ if (w2) for (f2 = 0; f2 < d2; f2++) !(e2 = i2[f2]) || 2 & e2.__u || (e2.__e == r2 && (r2 = x(e2)), E$1(e2, e2));
52
+ return r2;
53
+ }
54
+ function I(n2, t2, i2, r2) {
55
+ var u2, f2, o2;
56
+ if ("function" == typeof n2.type) {
57
+ if (n2.props.__P) return t2;
58
+ if (u2 = n2.__k) for (f2 = 0; f2 < u2.length; f2++) u2[f2] && (u2[f2].__ = n2, t2 = I(u2[f2], t2, i2, false));
59
+ return t2;
60
+ }
61
+ for (t2 && !t2.parentNode && (t2 = x(n2)) && !t2.parentNode && (t2 = null), o2 = t2; o2 && 8 == o2.nodeType; ) o2 = o2.nextSibling;
62
+ for (n2.__e != o2 && (!r2 && i2.moveBefore && n2.__e.parentNode ? i2.moveBefore(n2.__e, t2) : i2.insertBefore(n2.__e, t2 || null)), t2 = n2.__e; (t2 = t2 && t2.nextSibling) && 8 == t2.nodeType; ) ;
63
+ return t2;
64
+ }
65
+ function O(n2, t2, i2, r2) {
66
+ var u2, f2, o2, e2 = n2.key, l2 = n2.type, c2 = t2[i2], a2 = c2 && !(2 & c2.__u);
67
+ if (null === c2 && null == e2 || a2 && e2 == c2.key && l2 == c2.type) return i2;
68
+ if (r2 > (a2 ? 1 : 0)) {
69
+ for (u2 = i2 - 1, f2 = i2 + 1; u2 >= 0 || f2 < t2.length; ) if ((c2 = t2[o2 = u2 >= 0 ? u2-- : f2++]) && !(2 & c2.__u) && e2 == c2.key && l2 == c2.type) return o2;
70
+ }
71
+ return -1;
72
+ }
73
+ function P(n2, t2, i2) {
74
+ null == i2 && (i2 = ""), "-" == t2[0] ? n2.setProperty(t2, i2) : n2[t2] = i2;
75
+ }
76
+ function T$1(n2, t2, i2, r2, u2) {
77
+ var f2, o2;
78
+ n: if ("style" == t2) if ("string" == typeof i2) n2.style.cssText = i2;
79
+ else {
80
+ if ("string" == typeof r2 && (n2.style.cssText = r2 = ""), r2) for (t2 in r2) i2 && t2 in i2 || P(n2.style, t2, "");
81
+ if (i2) for (t2 in i2) r2 && i2[t2] == r2[t2] || P(n2.style, t2, i2[t2]);
82
+ }
83
+ else if ("o" == t2[0] && "n" == t2[1]) (n2.__e || (n2.__e = {}))[t2] = i2, i2 && r2 || (o2 = a$1[t2] || (a$1[t2] = q(t2)), (n2.__a || (n2.__a = {}))[t2] = c$1, f2 = t2 != (t2 = t2.replace(l$1, "$1")), (t2 = t2.slice(2))[0] < "a" && (t2 = t2.toLowerCase()), i2 ? n2.addEventListener(t2, o2, f2) : n2.removeEventListener(t2, o2, f2));
84
+ else {
85
+ if ("http://www.w3.org/2000/svg" == u2) t2 = t2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
86
+ else if ("width" != t2 && "height" != t2 && "href" != t2 && "list" != t2 && "form" != t2 && "tabIndex" != t2 && "download" != t2 && "rowSpan" != t2 && "colSpan" != t2 && "role" != t2 && "popover" != t2 && t2 in n2) try {
87
+ n2[t2] = null == i2 ? "" : i2;
88
+ break n;
89
+ } catch (n3) {
90
+ }
91
+ "function" == typeof i2 || (null == i2 || false === i2 && "-" != t2[4] ? n2.removeAttribute(t2) : n2.setAttribute(t2, "popover" == t2 && 1 == i2 ? "" : i2));
92
+ }
93
+ }
94
+ function q(t2) {
95
+ return function(i2) {
96
+ if (this.__e) {
97
+ var r2 = this.__e[t2];
98
+ if (null == i2[e$1]) i2[e$1] = c$1++;
99
+ else if (i2[e$1] < this.__a[t2]) return;
100
+ return r2(n.event ? n.event(i2) : i2);
101
+ }
102
+ };
103
+ }
104
+ function N(t2, i2, r2, u2, f2, o2, e2, l2, c2, a2) {
105
+ var s2, h2, v2, d2, g2, k2, b2, m2, S2, C2, j2, H2, I2, A, O2, P2, T2, q2, N2, z2, D2 = i2.type;
106
+ if (void 0 !== i2.constructor) return null;
107
+ if (128 & r2.__u && (c2 = 32 & r2.__u, s2 = r2.__c.__z)) {
108
+ if (i2.__u |= c2, h2 = o2 = [], 8 == s2.nodeType) for (v2 = 1, d2 = s2.nextSibling; d2; d2 = d2.nextSibling) {
109
+ if (8 == d2.nodeType) {
110
+ if (d2.data.startsWith("$s")) v2++;
111
+ else if (d2.data.startsWith("/$s") && !--v2) break;
112
+ }
113
+ o2.push(d2);
114
+ }
115
+ else o2.push(s2);
116
+ l2 = o2[0];
117
+ }
118
+ (s2 = n.__b) && s2(i2);
119
+ n: if ("function" == typeof D2) {
120
+ g2 = e2.length;
121
+ try {
122
+ if (C2 = i2.props, j2 = (s2 = D2.prototype) && s2.render, H2 = (s2 = D2.contextType) && u2[s2.__c], I2 = s2 ? H2 ? H2.props.value : s2.__ : u2, r2.__c ? 2 & (k2 = i2.__c = r2.__c).__g && (k2.__g |= 1) : (j2 ? i2.__c = k2 = new D2(C2, I2) : (i2.__c = k2 = new $(C2, I2), k2.constructor = D2, k2.render = F$1), H2 && H2.sub(k2), k2.state || (k2.state = {}), k2.__n = u2, k2.__g |= 8, k2.__h = [], k2.__k = []), j2 && (k2.__s || (k2.__s = k2.state), D2.getDerivedStateFromProps && (k2.__s == k2.state && (k2.__s = w({}, k2.__s)), w(k2.__s, D2.getDerivedStateFromProps(C2, k2.__s)))), b2 = k2.props, m2 = k2.state, k2.__v = i2, r2.__c) {
123
+ if (j2 && !D2.getDerivedStateFromProps && C2 !== b2 && k2.componentWillReceiveProps && k2.componentWillReceiveProps(C2, I2), i2.__v == r2.__v && !(8 & k2.__g) || !(4 & k2.__g) && k2.shouldComponentUpdate && false === k2.shouldComponentUpdate(C2, k2.__s, I2)) {
124
+ i2.__v != r2.__v && (k2.props = C2, k2.state = k2.__s, k2.__g &= -9), i2.__e = r2.__e, i2.__k = r2.__k, i2.__k.some(function(n2) {
125
+ n2 && (n2.__ = i2);
126
+ }), p$1.push.apply(k2.__h, k2.__k), k2.__k = [], k2.__h.length && e2.push(k2), l2 = x(r2);
127
+ break n;
128
+ }
129
+ k2.componentWillUpdate && k2.componentWillUpdate(C2, k2.__s, I2), j2 && k2.componentDidUpdate && k2.__h.push(function() {
130
+ k2.componentDidUpdate(b2, m2, S2);
131
+ });
132
+ } else j2 && !D2.getDerivedStateFromProps && k2.componentWillMount && k2.componentWillMount(), j2 && k2.componentDidMount && k2.__h.push(k2.componentDidMount);
133
+ if (k2.context = I2, k2.props = C2, k2.__P = t2, k2.__g &= -5, A = n.__r, O2 = 0, j2) k2.state = k2.__s, k2.__g &= -9, A && A(i2), s2 = k2.render(k2.props, k2.state, k2.context), p$1.push.apply(k2.__h, k2.__k), k2.__k = [];
134
+ else do {
135
+ k2.__g &= -9, A && A(i2), s2 = k2.render(k2.props, k2.state, k2.context), k2.state = k2.__s;
136
+ } while (8 & k2.__g && ++O2 < 25);
137
+ k2.state = k2.__s, k2.getChildContext && (u2 = w({}, u2, k2.getChildContext())), j2 && r2.__c && k2.getSnapshotBeforeUpdate && (S2 = k2.getSnapshotBeforeUpdate(b2, m2)), P2 = s2 && s2.type === M && null == s2.key ? s2.props.children : s2, C2.__P && (s2 = l2, f2 = (t2 = C2.__P).namespaceURI, c2 = o2 = null, r2.props && r2.props.__P != t2 && (r2.__k.some(function(n2) {
138
+ n2 && E$1(n2, n2);
139
+ }), r2.__k = null), l2 = r2.__k ? x(r2, 0) : null), l2 = L(t2, y$1(P2) ? P2 : [P2], i2, r2, u2, f2, o2, e2, l2, c2, a2), C2.__P && (i2.__e = null, l2 = s2), i2.__u &= -161, 128 & r2.__u && (k2.__z = null), h2 && h2.some(_$1), k2.__h.length && e2.push(k2), 1 & k2.__g && (k2.__g &= -4);
140
+ } catch (t3) {
141
+ if (e2.length = g2, i2.__v = null, c2 || o2) if (t3.then) {
142
+ if (T2 = 0, i2.__u |= c2 ? 160 : 128, o2) {
143
+ for (~(N2 = o2.indexOf(l2 || void 0)) || (N2 = o2.length); (z2 = o2[N2 - 1]) && 8 == z2.nodeType; ) N2--;
144
+ for (; N2 < o2.length; N2++) if (z2 = o2[N2]) {
145
+ if (o2[N2] = null, 8 == z2.nodeType) {
146
+ if (z2.data.startsWith("$s")) T2++ || (q2 = z2);
147
+ else if (T2 && z2.data.startsWith("/$s") && !--T2) {
148
+ l2 = z2;
149
+ break;
150
+ }
151
+ } else if (!T2) break;
152
+ }
153
+ }
154
+ if (!q2) {
155
+ for (; l2 && 8 == l2.nodeType && l2.nextSibling; ) l2 = l2.nextSibling;
156
+ q2 = l2;
157
+ }
158
+ i2.__c.__z || (i2.__c.__z = q2), i2.__e = l2;
159
+ } else o2 && o2.some(_$1);
160
+ else i2.__e = r2.__e;
161
+ i2.__k || (i2.__k = r2.__k || []), t3.then || V(i2), n.__e(t3, i2, r2);
162
+ }
163
+ } else l2 = i2.__e = B$1(r2.__e, i2, r2, u2, f2, o2, e2, c2, a2, t2);
164
+ return (s2 = n.diffed) && s2(i2), 128 & i2.__u ? void 0 : l2;
165
+ }
166
+ function V(n2) {
167
+ n2 && (n2.__c && (n2.__c.__g |= 4), n2.__k && n2.__k.some(V));
168
+ }
169
+ function z$1(t2, i2, r2) {
170
+ for (var u2 = 0; u2 < r2.length; ) D$1(r2[u2++], r2[u2++], r2[u2++]);
171
+ n.__c && n.__c(i2, t2), t2.some(function(i3) {
172
+ try {
173
+ t2 = i3.__h, i3.__h = [], t2.some(function(n2) {
174
+ n2.call(i3);
175
+ });
176
+ } catch (t3) {
177
+ n.__e(t3, i3.__v);
178
+ }
179
+ });
180
+ }
181
+ function B$1(t2, i2, r2, u2, f2, o2, e2, l2, c2, a2) {
182
+ var s2, p2, w2, g2, k2, b2, m2, M2, $2, S2 = r2.props || h$1, C2 = i2.props, j2 = i2.type;
183
+ if ("svg" == j2 ? f2 = "http://www.w3.org/2000/svg" : "math" == j2 ? f2 = "http://www.w3.org/1998/Math/MathML" : f2 || (f2 = "http://www.w3.org/1999/xhtml"), o2) {
184
+ for (s2 = 0; s2 < o2.length; s2++) if ((k2 = o2[s2]) && (j2 ? k2.localName == j2 : 3 == k2.nodeType)) {
185
+ t2 = k2, o2[s2] = null;
186
+ break;
187
+ }
188
+ }
189
+ if (!t2) {
190
+ if (M2 = a2.ownerDocument || document, !j2) return M2.createTextNode(C2);
191
+ t2 = M2.createElementNS(f2, j2, C2.is && C2), l2 && (n.__m && n.__m(i2, o2), l2 = false), o2 = null;
192
+ }
193
+ if (j2) {
194
+ if (a2 = "template" == j2 ? t2.content : t2, o2 = "textarea" == j2 && null != C2.defaultValue ? null : o2 && d$1.call(a2.childNodes), !l2 && o2) for (S2 = {}, s2 = 0; s2 < t2.attributes.length; s2++) S2[(k2 = t2.attributes[s2]).name] = k2.value;
195
+ for (s2 in S2) k2 = S2[s2], "dangerouslySetInnerHTML" == s2 ? w2 = k2 : "children" == s2 || s2 in C2 || "value" == s2 && "defaultValue" in C2 || "checked" == s2 && "defaultChecked" in C2 || T$1(t2, s2, null, k2, f2);
196
+ for (s2 in $2 = 1 & r2.__u, C2) k2 = C2[s2], "children" == s2 ? g2 = k2 : "dangerouslySetInnerHTML" == s2 ? p2 = k2 : "value" == s2 ? b2 = k2 : "checked" == s2 ? m2 = k2 : l2 && "function" != typeof k2 || !(S2[s2] !== k2 || $2 && null != k2) || T$1(t2, s2, k2, S2[s2], f2);
197
+ p2 ? (l2 || w2 && (p2.__html == w2.__html || p2.__html == t2.innerHTML) || (t2.innerHTML = p2.__html), i2.__k = []) : (w2 && (t2.textContent = ""), ("foreignObject" == j2 || "http://www.w3.org/1998/Math/MathML" == f2 && v$1.test(j2)) && (f2 = "http://www.w3.org/1999/xhtml"), L(a2, y$1(g2) ? g2 : [g2], i2, r2, u2, f2, o2, e2, o2 ? o2[0] : r2.__k && x(r2, 0), l2, c2), o2 && o2.some(_$1)), l2 && "textarea" != j2 || (s2 = "value", "progress" == j2 && null == b2 ? t2.removeAttribute(s2) : null == b2 || b2 === t2[s2] && ("progress" != j2 || b2) || T$1(t2, s2, b2, S2[s2], f2), s2 = "checked", null != m2 && m2 != t2[s2] && T$1(t2, s2, m2, S2[s2], f2));
198
+ } else S2 === C2 || l2 && t2.data == C2 || (t2.data = C2);
199
+ return t2;
200
+ }
201
+ function D$1(t2, i2, r2, u2) {
202
+ try {
203
+ "function" == typeof t2 ? i2 ? i2.__x = t2(i2) || 1 : u2 && (u2 = u2.__c || u2.__e) && (i2 = u2.__x) && (u2.__x = null, "function" == typeof i2 ? i2() : t2(null)) : t2.current = i2;
204
+ } catch (t3) {
205
+ n.__e(t3, r2);
206
+ }
207
+ }
208
+ function E$1(t2, i2, r2) {
209
+ var u2, f2;
210
+ if (n.unmount && n.unmount(t2), !(u2 = t2.ref) || u2.current && u2.current != t2.__e || D$1(u2, null, i2, t2), u2 = t2.__c) {
211
+ if (u2.componentWillUnmount) try {
212
+ u2.componentWillUnmount();
213
+ } catch (t3) {
214
+ n.__e(t3, i2);
215
+ }
216
+ u2.__P = u2.__n = null;
217
+ }
218
+ if (u2 = t2.__k) for (f2 = 0; f2 < u2.length; f2++) u2[f2] && E$1(u2[f2], i2, "function" != typeof t2.type || r2 && !t2.props.__P);
219
+ (u2 = t2.__e) && (r2 || _$1(u2), u2.__e && (u2.__e = null)), t2.__e = t2.__c = t2.__ = null;
220
+ }
221
+ function F$1(n2, t2, i2) {
222
+ return this.constructor(n2, i2);
223
+ }
224
+ function G$1(t2, i2) {
225
+ var r2, u2, f2, o2;
226
+ n.__ && n.__(t2, i2), 9 == i2.nodeType && (i2 = i2.documentElement), u2 = (r2 = t2 && 32 & t2.__u) ? null : i2.__k, i2.__k = b$1(M, { children: [t2] }), f2 = [], o2 = [], N(i2, i2.__k, u2 || h$1, h$1, i2.namespaceURI, u2 ? null : i2.firstChild ? d$1.call(i2.childNodes) : null, f2, u2 ? u2.__e : i2.firstChild, r2, o2), z$1(f2, i2.__k, o2), i2.__k.props.children = null;
227
+ }
228
+ n = { __e: function(n2, t2, i2, r2) {
229
+ for (var u2, o2, e2; t2 = t2.__; ) if ((u2 = t2.__c) && !(1 & u2.__g)) {
230
+ u2.__g |= 4;
231
+ try {
232
+ if ((o2 = u2.constructor) && o2.getDerivedStateFromError && (u2.setState(o2.getDerivedStateFromError(n2)), e2 = 8 & u2.__g), u2.componentDidCatch && (u2.componentDidCatch(n2, r2 || {}), e2 = 8 & u2.__g), e2) return void (u2.__g |= 2);
233
+ } catch (t3) {
234
+ n2 = t3, e2 = 0;
235
+ }
236
+ }
237
+ throw f$1 = 0, n2;
238
+ } }, t$1 = 0, $.prototype.setState = function(n2, t2) {
239
+ var i2 = this.__s;
240
+ i2 && i2 != this.state || (i2 = this.__s = w({}, this.state)), "function" == typeof n2 && (n2 = n2(w({}, i2), this.props)), n2 && (w(i2, n2), this.__v && (t2 && this.__k.push(t2), C$1(this)));
241
+ }, $.prototype.forceUpdate = function(n2) {
242
+ this.__v && (this.__g |= 4, n2 && this.__h.push(n2), C$1(this));
243
+ }, $.prototype.render = M, r$1 = [], f$1 = 0, o$2 = function(n2, t2) {
244
+ return n2.__v.__b - t2.__v.__b;
245
+ }, e$1 = Symbol(), l$1 = /(PointerCapture)$|Capture$/i, c$1 = 0, a$1 = {};
246
+ var o$1 = 0;
247
+ function u$1(t2, e2, n$1, f2, u2, i2) {
248
+ e2 || (e2 = {});
249
+ var a2, c2, l2 = e2;
250
+ if ("ref" in l2 && "function" != typeof t2) for (c2 in l2 = {}, e2) "ref" == c2 ? a2 = e2[c2] : l2[c2] = e2[c2];
251
+ var p2 = { type: t2, props: l2, key: n$1, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --o$1, __i: -1, __u: 0 };
252
+ return n.vnode && n.vnode(p2), p2;
253
+ }
254
+ var cx = function cx2() {
255
+ const presentClassNames = Array.prototype.slice.call(arguments).filter(Boolean);
256
+ const atomicClasses = {};
257
+ const nonAtomicClasses = [];
258
+ presentClassNames.forEach((arg) => {
259
+ const individualClassNames = arg ? arg.split(" ") : [];
260
+ individualClassNames.forEach((className) => {
261
+ if (className.startsWith("atm_")) {
262
+ const [, keyHash] = className.split("_");
263
+ atomicClasses[keyHash] = className;
264
+ } else {
265
+ nonAtomicClasses.push(className);
266
+ }
267
+ });
268
+ });
269
+ const result = [];
270
+ for (const keyHash in atomicClasses) {
271
+ if (Object.prototype.hasOwnProperty.call(atomicClasses, keyHash)) {
272
+ result.push(atomicClasses[keyHash]);
273
+ }
274
+ }
275
+ result.push(...nonAtomicClasses);
276
+ return result.join(" ");
277
+ };
278
+ var cx_default = cx;
279
+ const overlaid = "atm_adsuimk_stnw88 atm_adsuif3_idpfg4 atm_adsuivy_1osqo2v atm_adsuie2_1osqo2v";
280
+ const grid = "atm_adsui9s_1ulexfb atm_adsuimj_glywfm atm_adsuiy1254f_icygq7 atm_adsui1s0cpq2_1y4oovw atm_adsui11bgp38_ltqb7t atm_adsuiylp9lw_1627y59 atm_adsuig6en28_1ohcsmr";
281
+ function ArtworkGrid({ box, preserveAspectRatio = "xMidYMid meet", axes = true, overlay = false }) {
282
+ if (![box.x, box.y, box.width, box.height].every(Number.isFinite) || box.width <= 0 || box.height <= 0) return null;
283
+ const step = Math.max(1, Math.ceil(Math.max(box.width, box.height) / 48));
284
+ const divisions = (length) => [.../* @__PURE__ */ new Set([...Array.from({
285
+ length: Math.floor(length / step) + 1
286
+ }, (_2, i2) => i2 * step), ...axes ? [length / 2] : [], length])].sort((a2, b2) => a2 - b2);
287
+ return /* @__PURE__ */ u$1("svg", {
288
+ className: cx_default("ds-artwork-grid", grid, overlay && overlaid),
289
+ viewBox: `${box.x} ${box.y} ${box.width} ${box.height}`,
290
+ "data-step": step,
291
+ preserveAspectRatio,
292
+ "aria-hidden": "true",
293
+ focusable: "false",
294
+ children: [
295
+ divisions(box.width).map((unit) => /* @__PURE__ */ u$1("line", { className: axes && unit * 2 === box.width ? "mid" : void 0, x1: box.x + unit, x2: box.x + unit, y1: box.y, y2: box.y + box.height }, `x${unit}`)),
296
+ divisions(box.height).map((unit) => /* @__PURE__ */ u$1("line", { className: axes && unit * 2 === box.height ? "mid" : void 0, x1: box.x, x2: box.x + box.width, y1: box.y + unit, y2: box.y + unit }, `y${unit}`))
297
+ ]
298
+ });
299
+ }
300
+ const mark = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20fill='%23b4b4b4'%3e%3ctitle%3eADS%20—%20Eye%20in%20the%20grid,%20greyscale%20small%20size%3c/title%3e%3cpath%20d='M1%201h4v4H1zM6%201h4v4H6zM11%201h4v4H11zM1%206h4v4H1zM11%206h4v4H11zM1%2011h4v4H1zM6%2011h4v4H6zM11%2011h4v4H11z'/%3e%3cpath%20d='M6%206h4v4H6z'%20fill='%23444444'/%3e%3cpath%20d='M7%207h2v2H7z'%20fill='%23fafafa'/%3e%3c/svg%3e";
301
+ const markDark = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20fill='%235c5c5c'%3e%3ctitle%3eADS%20—%20Eye%20in%20the%20grid,%20greyscale%20small%20size%3c/title%3e%3cpath%20d='M1%201h4v4H1zM6%201h4v4H6zM11%201h4v4H11zM1%206h4v4H1zM11%206h4v4H11zM1%2011h4v4H1zM6%2011h4v4H6zM11%2011h4v4H11z'/%3e%3cpath%20d='M6%206h4v4H6z'%20fill='%23dddddd'/%3e%3cpath%20d='M7%207h2v2H7z'%20fill='%231b1b1b'/%3e%3c/svg%3e";
302
+ const base$1 = "atm_adsui9s_116y0ak atm_adsuibb_idpfg4 atm_adsuivy_1aou828 atm_adsuie2_1aou828 atm_adsui1w_kb7nvz";
303
+ const image = "atm_adsuivy_1osqo2v atm_adsuie2_1osqo2v";
304
+ const light = "atm_adsui9s_o8hunj";
305
+ const dark = "atm_adsui9s_1a9ryah";
306
+ function BrandMark({ label }) {
307
+ return /* @__PURE__ */ u$1("span", {
308
+ className: cx_default("ds-brand-mark", base$1),
309
+ role: label ? "img" : void 0,
310
+ "aria-label": label,
311
+ "aria-hidden": label ? void 0 : true,
312
+ children: [
313
+ /* @__PURE__ */ u$1("img", { className: cx_default(image, light), loading: "eager", src: mark, width: 16, height: 16, alt: "" }),
314
+ /* @__PURE__ */ u$1("img", { className: cx_default(image, dark), loading: "eager", src: markDark, width: 16, height: 16, alt: "" })
315
+ ]
316
+ });
317
+ }
318
+ const button = "atm_adsui9s_116y0ak atm_adsuih_1h6ojuz atm_adsuifc_1h6ojuz atm_adsuicx_tx1for atm_adsuij6_1wdkmbo atm_adsuilh_dcxj7s atm_adsuilb_tx1for atm_adsui3f_e8f45q atm_adsui5j_idpfg4 atm_adsui26_1j28jx2 atm_adsui7l_1wskm3t atm_adsuibx_rhlbdi atm_adsuics_el7ql6 atm_adsuic8_1m800s6 atm_adsuig3_3szr2b atm_adsuird_glywfm atm_adsui9j_tlke0l atm_adsuibb_idpfg4 atm_adsuiv6g6dd_pt45zb atm_adsuit4h5aw_1wskm3t atm_adsui15xrhy7_pt45zb atm_adsui17yrrpa_16x0t2t atm_adsui6zeuib_15wi45 atm_adsui1jhk75u_1mfz0iu atm_adsui174zlj6_73adwj atm_adsui1tcisp7_glywfm";
319
+ const outlined = "atm_adsui4b_1627y59 atm_adsui26_1u3842e atm_adsui7l_1r1dq30 atm_adsuics_1d1fc98 atm_adsuiv6g6dd_1wskm3t atm_adsui168r6ku_8o97w";
320
+ const compact = "atm_adsuivy_alpu0l atm_adsuie2_alpu0l atm_adsuij6_alpu0l atm_adsuilh_idpfg4 atm_adsuilb_idpfg4";
321
+ function ToolbarButton({ id, label, iconOnly, children, disabled, hidden, pressed, current, expanded, controls, popoverTarget, section: section2, phase, variant = "quiet", onClick }) {
322
+ return /* @__PURE__ */ u$1("button", {
323
+ id,
324
+ type: "button",
325
+ className: cx_default("ds-toolbar-button", button, variant === "outlined" && outlined, iconOnly && compact),
326
+ "aria-label": iconOnly ? label : void 0,
327
+ title: iconOnly ? label : void 0,
328
+ disabled,
329
+ hidden,
330
+ "aria-pressed": pressed,
331
+ "aria-current": current ? "page" : void 0,
332
+ "aria-expanded": expanded,
333
+ "aria-controls": controls,
334
+ popovertarget: popoverTarget,
335
+ "data-section": section2,
336
+ "data-phase": phase,
337
+ onClick,
338
+ children: [
339
+ children,
340
+ !iconOnly && label
341
+ ]
342
+ });
343
+ }
344
+ const tile = "atm_adsui9s_1txwivl atm_adsuiar_1bp4okc atm_adsuih_1h6ojuz atm_adsuifc_1h6ojuz atm_adsuicx_tx1for atm_adsuijb_idpfg4 atm_adsuil8_1lr73f0 atm_adsui3f_e8f45q atm_adsui5j_idpfg4 atm_adsui26_1j28jx2 atm_adsui7l_1mqbmot atm_adsuibx_rhlbdi atm_adsuic8_1m800s6 atm_adsuig3_3szr2b atm_adsuir3_1h6ojuz atm_adsui9j_tlke0l atm_adsuiv6g6dd_pt45zb atm_adsui1qpv5ur_1r1dq30 atm_adsui1p5227w_pt45zb atm_adsui17yrrpa_16x0t2t atm_adsui6zeuib_15wi45 atm_adsui1jhk75u_1mfz0iu atm_adsui174zlj6_73adwj";
345
+ function ToggleTile({ id, label, pressed = false, disabled, children, onClick }) {
346
+ return /* @__PURE__ */ u$1("button", {
347
+ id,
348
+ type: "button",
349
+ className: cx_default("ds-toggle-tile", tile),
350
+ "aria-pressed": pressed,
351
+ disabled,
352
+ onClick,
353
+ children: [
354
+ children,
355
+ /* @__PURE__ */ u$1("span", { children: label })
356
+ ]
357
+ });
358
+ }
359
+ const glyphs = {
360
+ "brand": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M8 1.5 9.9 5.6l4.4.5-3.3 3 .9 4.4L8 11.3l-3.9 2.2.9-4.4-3.3-3 4.4-.5L8 1.5Z"/></svg>',
361
+ "chevron-left": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M10 4l-4 4 4 4"/></svg>',
362
+ "chevron-right": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m6 4 4 4-4 4"/></svg>',
363
+ "chevron-up": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m4 10 4-4 4 4"/></svg>',
364
+ "close": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m4 4 8 8M12 4l-8 8"/></svg>',
365
+ "components": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m8 1 6 3.5v7L8 15l-6-3.5v-7L8 1Zm-6 3.5 6 3.5 6-3.5M8 8v7"/></svg>',
366
+ "composition": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M2 2h4v4H2zM10 2h4v4h-4zM2 10h4v4H2zM10 10h4v4h-4z"/></svg>',
367
+ "drafts": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 1h7l3 3v11H3zM10 1v4h3M5 8h6M5 11h4"/></svg>',
368
+ "guide-bounds": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3.5" width="12" height="9"/></svg>',
369
+ "guide-gaps": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="1.5" y="3" width="3.5" height="10"/><rect x="6.25" y="3" width="3.5" height="10"/><rect x="11" y="3" width="3.5" height="10"/></svg>',
370
+ "guide-margins": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="1.5" y="2.5" width="13" height="11" stroke-dasharray="1.5 1.5"/><rect x="4.5" y="5.5" width="7" height="5"/></svg>',
371
+ "guide-mini": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M2 2v12M6 2v12M10 2v12M14 2v12M2 2h12M2 6h12M2 10h12M2 14h12" stroke-width="1"/></svg>',
372
+ "guide-padding": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="1.5" y="2.5" width="13" height="11"/><rect x="4.5" y="5.5" width="7" height="5" stroke-dasharray="1.5 1.5"/></svg>',
373
+ "guide-tracks": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M2.5 2v12M6 2v12M10 2v12M13.5 2v12"/></svg>',
374
+ "icons": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="5" cy="5" r="2.5"/><rect x="9.5" y="2.5" width="4" height="5" rx="1"/><path d="m2.5 13.5 2.5-4 2.5 4ZM9.5 11.5h4M11.5 9.5v4"/></svg>',
375
+ "layout": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 2v12M6.5 2v12M9.5 2v12M13 2v12"/></svg>',
376
+ "moon": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M13.5 9a5.5 5.5 0 0 1-6.5-6.5A5.5 5.5 0 1 0 13.5 9Z"/></svg>',
377
+ "patterns": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="5" height="5"/><rect x="10" y="2" width="4" height="5"/><rect x="2" y="10" width="5" height="4"/><rect x="10" y="10" width="4" height="4"/></svg>',
378
+ "phone": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="1" width="8" height="14" rx="1.5"/><path d="M7 12.5h2"/></svg>',
379
+ "source": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m5 4-4 4 4 4m6-8 4 4-4 4M9 2 7 14"/></svg>',
380
+ "split": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="1" y="2" width="14" height="12" rx="1"/><path d="M8 2v12"/></svg>',
381
+ "sun": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="8" cy="8" r="3"/><path d="M8 1v1M8 14v1M1 8h1M14 8h1M3 3l1 1M12 12l1 1M3 13l1-1M12 4l1-1"/></svg>',
382
+ "tokens": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m8 2 6 3-6 3-6-3 6-3Zm-6 6 6 3 6-3M2 11l6 3 6-3"/></svg>',
383
+ "warning": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m8 2 7 12H1L8 2Z"/><path d="M8 6v3M8 11v.5"/></svg>'
384
+ };
385
+ const glyphAliases = {};
386
+ Object.keys(glyphs).sort();
387
+ const base = "atm_adsui9s_116y0ak atm_adsuiam_glywfm atm_adsuih_1h6ojuz atm_adsuifc_1h6ojuz atm_adsuivh_nkobfv atm_adsui7l_1kw7nm4 atm_adsuix4ub3y_1ulexfb atm_adsuivskwj7_1osqo2v atm_adsui158k9f9_1osqo2v";
388
+ const sizes = {
389
+ sm: "atm_adsuivy_1aou828 atm_adsuie2_1aou828",
390
+ md: "atm_adsuivy_fjcok3 atm_adsuie2_fjcok3",
391
+ lg: "atm_adsuivy_14k5dlv atm_adsuie2_14k5dlv",
392
+ xl: "atm_adsuivy_1j39cg3 atm_adsuie2_1j39cg3"
393
+ };
394
+ function Icon({ name, size = "sm", label }) {
395
+ const canonical = name in glyphAliases ? glyphAliases[name] : name;
396
+ return /* @__PURE__ */ u$1(
397
+ "span",
398
+ {
399
+ className: cx_default("ds-icon", base, sizes[size]),
400
+ ...label ? { role: "img", "aria-label": label } : { "aria-hidden": true },
401
+ dangerouslySetInnerHTML: {
402
+ __html: glyphs[canonical]
403
+ }
404
+ }
405
+ );
406
+ }
407
+ const link = "atm_adsui9s_1txwivl atm_adsuih_1h6ojuz atm_adsuicx_tx1for atm_adsuij6_1wdkmbo atm_adsuil8_kr1xch atm_adsui3f_e8f45q atm_adsui5j_idpfg4 atm_adsui26_1j28jx2 atm_adsui7l_1wskm3t atm_adsuibx_rhlbdi atm_adsuics_el7ql6 atm_adsuic8_1m800s6 atm_adsuig3_sqnntc atm_adsuird_glywfm atm_adsuikz_fg65tv atm_adsui1e7xapd_1wugsn5 atm_adsui1cc01an_1m800s6 atm_adsuiz89mj4_el7ql6 atm_adsui19izows_1mqbmot atm_adsui1a1iq7z_1q9ccgz atm_adsui18vqbco_pt45zb atm_adsuisrk7fl_pt45zb atm_adsui1dpiaj6_1wskm3t atm_adsuizrwyxp_1d1fc98 atm_adsui17yrrpa_16x0t2t atm_adsui6zeuib_15wi45";
408
+ function NavigationItem({ label, href, current, previewState, previewLabel, draftLabel, draftDescription, onClick }) {
409
+ return /* @__PURE__ */ u$1("a", {
410
+ className: cx_default("ds-navigation-item", link),
411
+ href,
412
+ "aria-current": current ? "page" : void 0,
413
+ "aria-description": previewLabel,
414
+ onClick,
415
+ children: [
416
+ label,
417
+ draftLabel && /* @__PURE__ */ u$1("span", { className: "draft-badge", title: draftDescription, children: [
418
+ " ",
419
+ draftLabel
420
+ ] }),
421
+ previewState && /* @__PURE__ */ u$1(PreviewIndicator, { state: previewState })
422
+ ]
423
+ });
424
+ }
425
+ const surface = "atm_adsuimk_1n9t6rb atm_adsuif3_aqos4q atm_adsui73_usvi9m atm_adsuigi_idpfg4 atm_adsuiiy_102o88r atm_adsuiks_1wugsn5 atm_adsuil8_1aqtv8w atm_adsui3f_m9afv7 atm_adsui5j_idpfg4 atm_adsui26_1bplolx atm_adsui7l_1wskm3t atm_adsui70_1fjsgd1 atm_adsuibx_rhlbdi atm_adsuic8_1m800s6 atm_adsuig3_sqnntc atm_adsuiarf92d_1txwivl atm_adsui1qpaa0x_1bp4okc";
426
+ const flushed = "atm_adsuil8_idpfg4";
427
+ const widths = {
428
+ narrow: "atm_adsuivy_hvzi4f",
429
+ wide: "atm_adsuivy_1risgsc atm_adsuij3_1y8qh3w"
430
+ };
431
+ const inlined = "atm_adsuimk_pfqszd atm_adsuiiy_glywfm atm_adsuij3_1osqo2v";
432
+ function Popover({ id, label, role, width = "narrow", inline = false, flush = false, children }) {
433
+ return /* @__PURE__ */ u$1("div", {
434
+ id,
435
+ className: cx_default("ds-popover", surface, widths[width], flush && flushed, inline && inlined),
436
+ popover: inline ? void 0 : "auto",
437
+ role,
438
+ "aria-label": label,
439
+ children
440
+ });
441
+ }
442
+ const indicator = "atm_adsui9s_116y0ak atm_adsuiam_glywfm atm_adsuih_1h6ojuz atm_adsuifc_1h6ojuz atm_adsuivy_1aou828 atm_adsuie2_1aou828 atm_adsui7l_1mqbmot atm_adsuivskwj7_1osqo2v atm_adsui158k9f9_1osqo2v atm_adsuio2zchm_glywfm atm_adsuibupyu4_1r31cwp atm_adsui91z0ma_c484nn atm_adsuieyuh4p_glywfm atm_adsuis7vg1k_1ulexfb atm_adsui1a7gqnz_glywfm atm_adsui1ypv4g8_glywfm atm_adsuisc4h6w_116y0ak";
443
+ function PreviewIndicator({ state = "unreported", variant = "navigation", label }) {
444
+ return /* @__PURE__ */ u$1("span", {
445
+ className: cx_default("ds-preview-indicator", variant === "navigation" && "entry-preview", indicator),
446
+ "data-state": state,
447
+ "data-variant": variant,
448
+ role: label ? "img" : void 0,
449
+ "aria-label": label,
450
+ "aria-hidden": label ? void 0 : true,
451
+ title: label,
452
+ children: [
453
+ /* @__PURE__ */ u$1("svg", { viewBox: "0 0 16 16", "aria-hidden": "true", children: [
454
+ /* @__PURE__ */ u$1("circle", { "data-mark": "unreported", cx: "8", cy: "8", r: "3" }),
455
+ /* @__PURE__ */ u$1("circle", { "data-mark": "building", cx: "8", cy: "8", r: "5", "stroke-dasharray": "22 10" }),
456
+ /* @__PURE__ */ u$1("circle", { "data-mark": "checking", cx: "8", cy: "8", r: "5", "stroke-dasharray": "3 3" }),
457
+ /* @__PURE__ */ u$1("circle", { "data-mark": "ready", cx: "8", cy: "8", r: "5" }),
458
+ /* @__PURE__ */ u$1("circle", { "data-mark": "stale", cx: "8", cy: "8", r: "5", "stroke-dasharray": "2 3" }),
459
+ /* @__PURE__ */ u$1("circle", { "data-mark": "error", cx: "8", cy: "8", r: "5", fill: "currentColor", stroke: "none" })
460
+ ] }),
461
+ variant === "toolbar" && /* @__PURE__ */ u$1("span", { className: "preview-warning", children: /* @__PURE__ */ u$1(Icon, { name: "warning" }) })
462
+ ]
463
+ });
464
+ }
465
+ const content = "atm_adsuig1e7fr_1hh10yn atm_adsuina064p_1c8rstr atm_adsuibyi8sh_1d1fc98 atm_adsuit8tn60_1r1dq30 atm_adsui18xy9f7_1txwivl atm_adsui1kvotse_1xi6ry0 atm_adsui13bcc9y_q4j4l1 atm_adsui9ht5kt_1iwn3l9 atm_adsuiw49f19_1m800s6 atm_adsui1mb7f0m_1mqbmot atm_adsui1o7g9kp_sqnntc atm_adsuicsppdr_11p5wf0 atm_adsui156xhju_13mtsfm atm_adsui2uzat_iqvn5y atm_adsuizf04m1_1mfz0iu atm_adsuil2ckyf_1txwivl atm_adsuim3rxq9_1h6ojuz atm_adsuilfeyld_iqvn5y atm_adsuidl3q2m_ynj908 atm_adsui12er3fd_tx1for atm_adsui8e79fz_m9afv7 atm_adsui1qnfl3r_1m800s6 atm_adsui1sj4mjq_1mqbmot atm_adsui6ql2ro_iqvn5y";
466
+ const guideModes = [
467
+ { name: "off", label: "Off", hint: "Guides are hidden. Your layer choice is kept." },
468
+ { name: "hover", label: "Hover", hint: "Point at or focus an element to see the selected layers." },
469
+ { name: "always", label: "Always", hint: "Every element shows the selected layers." }
470
+ ];
471
+ const guideLayers = [
472
+ { name: "bounds", label: "Bounds" },
473
+ { name: "tracks", label: "Columns and rows" },
474
+ { name: "gaps", label: "Gaps and gutters" },
475
+ { name: "padding", label: "Padding" },
476
+ { name: "margins", label: "Margins" },
477
+ { name: "mini", label: "Mini-unit grid" }
478
+ ];
479
+ const guidePresets = [
480
+ { name: "spacing", label: "Spacing", layers: ["padding", "margins", "gaps"] },
481
+ { name: "grid", label: "Grid", layers: ["tracks", "mini"] },
482
+ { name: "all", label: "All", layers: ["bounds", "tracks", "gaps", "padding", "margins", "mini"] }
483
+ ];
484
+ function presetLayers(preset) {
485
+ var _a;
486
+ const layers = ((_a = guidePresets.find((item) => item.name === preset)) == null ? void 0 : _a.layers) ?? [];
487
+ return Object.fromEntries(guideLayers.map((item) => [item.name, layers.includes(item.name)]));
488
+ }
489
+ function GuideOptions({ id = "grid-options", inline = false, mode = "off", layers = {}, onModeChange, onLayerChange, onPreset }) {
490
+ var _a;
491
+ const hint = (_a = guideModes.find((item) => item.name === mode)) == null ? void 0 : _a.hint;
492
+ return /* @__PURE__ */ u$1(Popover, {
493
+ id,
494
+ label: "Layout guides",
495
+ role: "dialog",
496
+ inline,
497
+ children: u$1("div", { id: `${id}-content`, className: cx_default("ux-guide-options", content), "data-mode": mode, children: [
498
+ /* @__PURE__ */ u$1("h2", { children: "Layout guides" }),
499
+ /* @__PURE__ */ u$1("div", { className: "ux-guide-modes", role: "group", "aria-label": "Show guides", children: guideModes.map((item) => /* @__PURE__ */ u$1(ToolbarButton, { id: `${id}-mode-${item.name}`, label: item.label, pressed: mode === item.name, onClick: () => onModeChange == null ? void 0 : onModeChange(item.name) }, item.name)) }),
500
+ /* @__PURE__ */ u$1("p", { id: `${id}-hint`, className: "ux-guide-hint", "aria-live": "polite", ...Object.fromEntries(guideModes.map((item) => [`data-${item.name}`, item.hint])), children: hint }),
501
+ /* @__PURE__ */ u$1("div", { className: "ux-guide-layers", role: "group", "aria-label": "Layers", children: guideLayers.map((item) => /* @__PURE__ */ u$1(ToggleTile, { id: `${id}-layer-${item.name}`, label: item.label, pressed: layers[item.name] === true, onClick: () => onLayerChange == null ? void 0 : onLayerChange(item.name, layers[item.name] !== true), children: /* @__PURE__ */ u$1(Icon, { name: `guide-${item.name}`, size: "lg" }) }, item.name)) }),
502
+ /* @__PURE__ */ u$1("div", { className: "ux-guide-presets", role: "group", "aria-label": "Presets", children: [
503
+ /* @__PURE__ */ u$1("span", { children: "Presets" }),
504
+ guidePresets.map((item) => /* @__PURE__ */ u$1(ToolbarButton, { id: `${id}-preset-${item.name}`, label: item.label, onClick: () => onPreset == null ? void 0 : onPreset(item.name) }, item.name))
505
+ ] })
506
+ ] })
507
+ });
508
+ }
509
+ var t, r, u, i, o = Object.is, f = 0, c = [], e = [], a = n, v = a.__b, l = a.__r, m = a.diffed, s = a.__c, h = a.unmount, p = a.__;
510
+ function y(n2, t2) {
511
+ a.__h && a.__h(r, n2, f || t2), f = 0;
512
+ var u2 = r.__H || (r.__H = { __: [], __h: [] });
513
+ return n2 >= u2.__.length && u2.__.push({}), u2.__[n2];
514
+ }
515
+ function d(n2) {
516
+ return f = 1, _(G, n2);
517
+ }
518
+ function _(n2, u2, i2) {
519
+ var f2 = y(t++, 2);
520
+ if (f2.t = n2, !f2.__c && (f2.__ = [G(void 0, u2), function(n3) {
521
+ var t2 = f2.__N ? f2.__N[0] : f2.__[0], r2 = f2.t(t2, n3);
522
+ o(t2, r2) || (f2.__N = [r2, f2.__[1]], f2.__c.setState({}));
523
+ }], f2.__c = r, !r.__f)) {
524
+ r.__f = true;
525
+ var c2 = r.shouldComponentUpdate;
526
+ r.shouldComponentUpdate = function(n3, t2, r2) {
527
+ var u3 = this.__H;
528
+ if (!u3) return true;
529
+ var i3 = false, f3 = this.props != n3;
530
+ if (u3.__.some(function(n4) {
531
+ n4.__N && (i3 = true, o(n4.__[0], n4.__N[0]) || (f3 = true));
532
+ }), c2) {
533
+ var e2 = c2.call(this, n3, t2, r2);
534
+ return i3 ? e2 || f3 : e2;
535
+ }
536
+ return !i3 || f3;
537
+ };
538
+ }
539
+ return f2.__;
540
+ }
541
+ function F(n2, u2) {
542
+ var i2 = y(t++, 4);
543
+ !a.__s && E(i2.__H, u2) && (i2.__P = false, i2.__ = n2, i2.u = u2, r.__h.push(i2));
544
+ }
545
+ function T(n2) {
546
+ return f = 5, b(function() {
547
+ return { current: n2 };
548
+ }, []);
549
+ }
550
+ function b(n2, r2) {
551
+ var u2 = y(t++, 7);
552
+ return E(u2.__H, r2) && (u2.__ = n2(), u2.__H = r2), u2.__;
553
+ }
554
+ function g() {
555
+ var n2;
556
+ do {
557
+ for (; n2 = e.shift(); ) try {
558
+ C(n2);
559
+ } catch (t3) {
560
+ a.__e(t3, { __: (n2 = n2.__P) && n2.__v });
561
+ }
562
+ for (; n2 = c.shift(); ) {
563
+ var t2 = n2.__H;
564
+ if (n2.__P && t2) try {
565
+ t2.__h.some(C), t2.__h.some(D), t2.__h = [];
566
+ } catch (r2) {
567
+ t2.__h = [], a.__e(r2, n2.__v);
568
+ }
569
+ }
570
+ } while (e.length);
571
+ }
572
+ a.__b = function(n2) {
573
+ r = null, v && v(n2);
574
+ }, a.__ = function(n2, t2) {
575
+ n2 && t2.__k && t2.__k.__m && (n2.__m = t2.__k.__m), p && p(n2, t2);
576
+ }, a.__r = function(n2) {
577
+ l && l(n2), t = 0;
578
+ var i2 = (r = n2.__c).__H;
579
+ i2 && (u == r ? r.__h = [] : (i2.__h.some(C), i2.__h.some(D), t = 0), i2.__h = [], i2.__.some(function(n3) {
580
+ n3.__N && (n3.__ = n3.__N), n3.u = n3.__N = void 0;
581
+ })), u = r;
582
+ }, a.diffed = function(n2) {
583
+ m && m(n2);
584
+ var t2 = n2.__c;
585
+ t2 && t2.__H && (t2.__H.__h.length && B(c.push(t2)), t2.__H.__.some(function(n3) {
586
+ n3.u && (n3.__H = n3.u);
587
+ })), u = r = null;
588
+ }, a.__c = function(n2, t2) {
589
+ t2.some(function(n3) {
590
+ try {
591
+ n3.__h.some(C), n3.__h = n3.__h.filter(function(n4) {
592
+ return !n4.__ || D(n4);
593
+ });
594
+ } catch (r2) {
595
+ t2.some(function(n4) {
596
+ n4.__h && (n4.__h = []);
597
+ }), t2 = [], a.__e(r2, n3.__v);
598
+ }
599
+ }), s && s(n2, t2);
600
+ }, a.unmount = function(n2) {
601
+ h && h(n2);
602
+ var t2, r2, u2 = n2.__c;
603
+ u2 && u2.__H && (u2.__H.__.some(function(u3) {
604
+ try {
605
+ if (u3.__P && u3.__c) {
606
+ if (void 0 === r2) {
607
+ for (r2 = n2.__; r2 && (!r2.__c || !r2.__c.__P); ) r2 = r2.__;
608
+ r2 = r2 && r2.__c;
609
+ }
610
+ u3.__P = r2, B(e.push(u3));
611
+ } else C(u3);
612
+ } catch (n3) {
613
+ t2 = n3;
614
+ }
615
+ }), u2.__H = void 0, t2 && a.__e(t2, u2.__v));
616
+ };
617
+ var k = "function" == typeof requestAnimationFrame;
618
+ function z(n2) {
619
+ var t2, r2 = function() {
620
+ clearTimeout(u2), k && cancelAnimationFrame(t2), setTimeout(n2);
621
+ }, u2 = setTimeout(r2, 35);
622
+ k && (t2 = requestAnimationFrame(r2));
623
+ }
624
+ function B(n2) {
625
+ 1 != n2 && i == a.requestAnimationFrame || ((i = a.requestAnimationFrame) || z)(g);
626
+ }
627
+ function C(n2) {
628
+ var t2 = r, u2 = n2.__c;
629
+ "function" == typeof u2 && (n2.__c = void 0, u2()), r = t2;
630
+ }
631
+ function D(n2) {
632
+ var t2 = r;
633
+ n2.__c = n2.__(), r = t2;
634
+ }
635
+ function E(n2, t2) {
636
+ return !n2 || n2.length != t2.length || t2.some(function(t3, r2) {
637
+ return !o(t3, n2[r2]);
638
+ });
639
+ }
640
+ function G(n2, t2) {
641
+ return "function" == typeof t2 ? t2(n2) : t2;
642
+ }
643
+ const gallery = "atm_adsuie2_1osqo2v atm_adsuiks_1wugsn5 atm_adsuil8_1ru0ig4 atm_adsuibx_rhlbdi atm_adsuic8_1c8rstr atm_adsuig3_sqnntc atm_adsui7l_an4usv atm_adsui1s9zg6e_idpfg4 atm_adsui1y1itgh_1heflvk atm_adsui124toe7_1d1fc98 atm_adsui1ajpmqv_3szr2b atm_adsuig1e7fr_81zv9y atm_adsuina064p_1ye8rbs atm_adsuibyi8sh_1d1fc98 atm_adsui1t8i83k_1ulexfb atm_adsui1t4u5ad_iqvn5y atm_adsui1ucxlaq_1m800s6 atm_adsuicqysi0_el7ql6 atm_adsuiugp1nr_1mqbmot atm_adsuimzw80z_1txwivl atm_adsuims933x_v2br90 atm_adsuikqzblj_1yb4nlp atm_adsui157qtsd_1doep66 atm_adsuipps9nr_1g80g66 atm_adsui1696orj_6e9m65 atm_adsui1kwsnex_1mqbmot atm_adsui1749l82_1m800s6 atm_adsui1pm6vxp_fg65tv atm_adsui1985805_rhlbdi atm_adsuifgvpx0_1m800s6 atm_adsui1f7jbwv_1wdkmbo atm_adsui4v11ke_13r6pey atm_adsui1ph4l26_kr1xch atm_adsui1td1et_58tz3v atm_adsui16q9e9r_idpfg4 atm_adsui1e1cn77_1u3842e atm_adsui1ok557x_an4usv atm_adsui8oqreq_16x0t2t atm_adsuidogt2j_15wi45 atm_adsui1ha57is_1txwivl atm_adsui154gtli_1g80g66 atm_adsui1m0o9p4_1doep66 atm_adsuitul8sy_116y0ak atm_adsuid9rgyl_1h6ojuz atm_adsui1ew4plt_1h6ojuz atm_adsui44kz9m_tx1for atm_adsui1l2cw9c_116y0ak atm_adsui1p2daoe_glywfm atm_adsui1lrgcs0_1kw7nm4 atm_adsui21ajbm_1ulexfb atm_adsuiv4i7ad_glywfm atm_adsui18exmc6_11p5wf0 atm_adsuinrahr7_14kz4g7 atm_adsui1sapuqh_1ak2vn7 atm_adsuia9snxg_v2br90 atm_adsuic1efku_idpfg4 atm_adsui1s5glk1_1h6ojuz atm_adsui4zbjz7_1txwivl atm_adsui1nrl83w_1h6ojuz atm_adsuidcq6po_1h6ojuz atm_adsuiodevil_1g80g66 atm_adsui15luuzb_tx1for atm_adsuiy20kxr_idpfg4 atm_adsui1pfuy6w_l6f2xw atm_adsuifo0n28_1m800s6 atm_adsui1yka5lj_sqnntc atm_adsuiazx38y_19dj2kj atm_adsuildippw_fg65tv atm_adsui2kz6ah_177qeyn atm_adsui5go7c5_1m800s6 atm_adsui12ii74i_1q4684i atm_adsui1t756hg_1mqbmot atm_adsui1n1nucf_h2mmj6 atm_adsuis5orb_qpi3z3 atm_adsui1maakrc_qpi3z3 atm_adsui3jvufv_6g0xcp atm_adsui1a6bvuq_6lcubb atm_adsui7le0qg_stnw88 atm_adsuikc8k8m_idpfg4 atm_adsui10ojrnp_1le1gz4 atm_adsuimhax7p_moqrwa atm_adsui1eq72d_1txwivl atm_adsuitglio1_1g80g66 atm_adsui1uq2nym_1h6ojuz atm_adsui1g6vde0_esu3gu atm_adsui1lgf0nm_1aqtv8w atm_adsui1e184xh_1txwivl atm_adsuila89rv_1bp4okc atm_adsui3c75k5_1h6ojuz atm_adsuihmh6q_tx1for atm_adsui1gfpqoj_1m800s6 atm_adsui1lezx94_1mqbmot atm_adsui1fnmsk6_b6kj4x atm_adsuip4zrj7_1le1gz4 atm_adsui1lf327s_1m800s6 atm_adsui10hei5o_glywfm atm_adsui11ndfci_12j2sah atm_adsuiewnzgi_1r3tyjr atm_adsuincp59s_19dj2kj atm_adsui5aykc5_ynj908 atm_adsui1z5d1z_1vz6rot atm_adsui1w4ry55_mrub5a atm_adsuinfdfyh_fg65tv atm_adsui1d1ue3r_1mqbmot atm_adsui1m3cqh4_1txwivl atm_adsuijhqbse_1g80g66 atm_adsui1y90xlu_1doep66 atm_adsui1konks8_idpfg4 atm_adsuirgczd9_1txwivl atm_adsui1tv24b1_1h6ojuz atm_adsui1adwpcp_ynj908 atm_adsui61s2ls_1m800s6 atm_adsui7olkud_116y0ak atm_adsuiu2kdnu_tx1for atm_adsuiv7vy6e_qm87f6 atm_adsuin0y7c7_1ivmhas atm_adsui1mpi4sj_1ulexfb atm_adsuit6wwae_1f51e7f";
644
+ const SVG = "http://www.w3.org/2000/svg";
645
+ function Glyph({ item, size, label }) {
646
+ const ref = T(null);
647
+ F(() => {
648
+ var _a;
649
+ const parsed = new DOMParser().parseFromString(item.svg, "image/svg+xml").documentElement;
650
+ if (parsed.namespaceURI !== SVG || parsed.localName !== "svg") return;
651
+ for (const element of parsed.querySelectorAll("*")) if (["script", "foreignObject", "iframe", "image", "a", "animate", "set", "animateTransform", "animateMotion"].includes(element.localName) || element.namespaceURI !== SVG) element.remove();
652
+ for (const element of [parsed, ...parsed.querySelectorAll("*")]) for (const attr of Array.from(element.attributes)) if (/^on/i.test(attr.name) || /href$/i.test(attr.name) && !attr.value.trim().startsWith("#")) element.removeAttribute(attr.name);
653
+ const svg = document.importNode(parsed, true);
654
+ svg.removeAttribute("class");
655
+ svg.setAttribute("width", String(size));
656
+ svg.setAttribute("height", String(size));
657
+ svg.setAttribute("aria-hidden", "true");
658
+ svg.setAttribute("focusable", "false");
659
+ (_a = ref.current) == null ? void 0 : _a.replaceChildren(svg);
660
+ return () => {
661
+ var _a2;
662
+ return (_a2 = ref.current) == null ? void 0 : _a2.replaceChildren();
663
+ };
664
+ }, [item.svg, size]);
665
+ return /* @__PURE__ */ u$1("span", {
666
+ className: "icons-glyph",
667
+ ref,
668
+ role: label ? "img" : void 0,
669
+ "aria-label": label,
670
+ title: label,
671
+ "aria-hidden": label ? void 0 : "true"
672
+ });
673
+ }
674
+ function FindingRow({ finding }) {
675
+ return /* @__PURE__ */ u$1("p", {
676
+ className: "icons-finding",
677
+ title: finding.file,
678
+ children: [
679
+ /* @__PURE__ */ u$1("strong", { children: finding.rule }),
680
+ " ",
681
+ finding.message
682
+ ]
683
+ });
684
+ }
685
+ function IconCatalogue({ data }) {
686
+ var _a;
687
+ const [query, setQuery] = d("");
688
+ if (!data.configured) return /* @__PURE__ */ u$1("section", {
689
+ className: cx_default("icons-view", gallery),
690
+ "aria-label": "Icons",
691
+ children: [
692
+ /* @__PURE__ */ u$1("h1", { children: "Icons" }),
693
+ /* @__PURE__ */ u$1("p", { className: "icons-summary", children: "The project configures no glyph set." })
694
+ ]
695
+ });
696
+ const glyphs2 = data.glyphs.filter((item) => [item.name, ...item.aliases].some((name) => name.toLowerCase().includes(query.trim().toLowerCase())));
697
+ return /* @__PURE__ */ u$1("section", {
698
+ className: cx_default("icons-view", gallery),
699
+ "aria-label": "Icons",
700
+ children: [
701
+ /* @__PURE__ */ u$1("div", { className: "icons-head", children: [
702
+ /* @__PURE__ */ u$1("div", { children: [
703
+ /* @__PURE__ */ u$1("h1", { children: "Icons" }),
704
+ /* @__PURE__ */ u$1("p", { className: "icons-summary", children: [
705
+ data.source,
706
+ " · ",
707
+ data.glyphs.length,
708
+ " glyphs",
709
+ data.grid ? ` · ${data.grid.width} × ${data.grid.height} grid` : data.mixed ? " · Mixed grids" : "",
710
+ " · ",
711
+ data.aliasCount,
712
+ " aliases"
713
+ ] })
714
+ ] }),
715
+ /* @__PURE__ */ u$1("input", { type: "search", value: query, onInput: (event) => setQuery(event.currentTarget.value), placeholder: "Search name or alias", "aria-label": "Search glyphs by name or alias" })
716
+ ] }),
717
+ data.findings.map((finding, i2) => /* @__PURE__ */ u$1(FindingRow, { finding }, i2)),
718
+ /* @__PURE__ */ u$1("h2", { children: [
719
+ "The set",
720
+ /* @__PURE__ */ u$1("small", { children: [
721
+ "Every glyph at ",
722
+ ((_a = data.textSize) == null ? void 0 : _a.px) ?? 16,
723
+ "px, the size used beside text"
724
+ ] })
725
+ ] }),
726
+ /* @__PURE__ */ u$1("div", { className: "icons-set", role: "list", "aria-label": "The set", children: glyphs2.map((item) => {
727
+ var _a2;
728
+ return /* @__PURE__ */ u$1("span", { className: "icons-set-item", "data-glyph": item.name, role: "listitem", children: /* @__PURE__ */ u$1(Glyph, { item, size: ((_a2 = data.textSize) == null ? void 0 : _a2.px) ?? 16, label: item.name }) }, item.name);
729
+ }) }),
730
+ /* @__PURE__ */ u$1("h2", { children: [
731
+ "Glyphs",
732
+ /* @__PURE__ */ u$1("small", { children: "Enlarged construction grid and actual icon sizes" })
733
+ ] }),
734
+ !glyphs2.length && /* @__PURE__ */ u$1("p", { className: "icons-empty", children: data.glyphs.length ? `No glyph matches “${query.trim()}”.` : "No glyphs in this set." }),
735
+ /* @__PURE__ */ u$1("div", { className: "icons-cards", children: glyphs2.map((item) => /* @__PURE__ */ u$1("article", { className: "icons-card", "data-glyph": item.name, "data-findings": item.findings.length || void 0, "aria-label": item.name, children: [
736
+ /* @__PURE__ */ u$1("div", { className: "icons-card-head", children: [
737
+ /* @__PURE__ */ u$1("h3", { children: item.name }),
738
+ item.findings.length > 0 && /* @__PURE__ */ u$1("span", { className: "icons-badge", children: [
739
+ item.findings.length,
740
+ " ",
741
+ item.findings.every((finding) => finding.severity === "error") ? "error" : "issue",
742
+ item.findings.length === 1 ? "" : "s"
743
+ ] })
744
+ ] }),
745
+ /* @__PURE__ */ u$1("p", { className: "icons-alias", children: item.aliases.length ? `alias: ${item.aliases.join(", ")}` : "" }),
746
+ /* @__PURE__ */ u$1("div", { className: "icons-mag", children: [
747
+ item.grid && /* @__PURE__ */ u$1(ArtworkGrid, { box: item.grid, overlay: true }),
748
+ /* @__PURE__ */ u$1(Glyph, { item, size: 96 })
749
+ ] }),
750
+ /* @__PURE__ */ u$1("div", { className: "icons-sizes", children: data.sizes.map((size) => /* @__PURE__ */ u$1("span", { className: "icons-size", children: [
751
+ /* @__PURE__ */ u$1(Glyph, { item, size: size.px }),
752
+ /* @__PURE__ */ u$1("small", { title: size.token, children: size.px })
753
+ ] }, size.token)) }),
754
+ item.findings.map((finding, i2) => /* @__PURE__ */ u$1(FindingRow, { finding }, i2))
755
+ ] }, item.name)) }),
756
+ data.logos && /* @__PURE__ */ u$1(M, { children: [
757
+ /* @__PURE__ */ u$1("h2", { children: [
758
+ "Other products’ logos",
759
+ /* @__PURE__ */ u$1("small", { children: data.logos.source })
760
+ ] }),
761
+ /* @__PURE__ */ u$1("div", { className: "icons-logos", children: data.logos.files.map((file) => /* @__PURE__ */ u$1("figure", { className: "icons-logo", "data-logo": file.name, children: file.tooLarge ? /* @__PURE__ */ u$1("figcaption", { children: [
762
+ file.name,
763
+ " (over 1 MB; not shown)"
764
+ ] }) : /* @__PURE__ */ u$1(M, { children: [
765
+ /* @__PURE__ */ u$1("span", { className: "icons-logo-tile", children: /* @__PURE__ */ u$1("img", { src: file.src, alt: file.name, title: file.file, width: 24, height: 24, loading: "lazy", decoding: "async" }) }),
766
+ /* @__PURE__ */ u$1("span", { className: "icons-logo-tile icons-logo-tile-black", children: /* @__PURE__ */ u$1("img", { src: file.src, alt: "", width: 24, height: 24, loading: "lazy", decoding: "async" }) }),
767
+ /* @__PURE__ */ u$1("figcaption", { children: file.name })
768
+ ] }) }, file.name)) })
769
+ ] })
770
+ ]
771
+ });
772
+ }
773
+ const menu = "atm_adsui9s_1txwivl atm_adsuiar_1bp4okc atm_adsuicx_idpfg4 atm_adsuijb_idpfg4";
774
+ const group = "atm_adsuijb_idpfg4 atm_adsui1pqo7b0_1txwivl atm_adsuiywbgd0_1h6ojuz atm_adsui1a6nw8z_tx1for atm_adsui1vu1bue_kr1xch atm_adsuiyzr3rh_1wdkmbo atm_adsuila54r4_glywfm atm_adsui10x1lus_tlke0l atm_adsui107eb71_1m800s6 atm_adsuir3v91m_1d1fc98 atm_adsui3vd9bk_1wskm3t atm_adsui1pvchle_glywfm atm_adsui93k5wf_1aou828 atm_adsui1jhtvjp_1aou828 atm_adsuixwcn1n_glywfm atm_adsuiaxt0xi_1r31cwp atm_adsuiu9ecgn_c484nn atm_adsui1rd1yp5_glywfm atm_adsuir4atoz_14w8a5s atm_adsuikwnb5l_16x0t2t atm_adsui1b3ry6x_xrd58z atm_adsui9abqyk_1txwivl atm_adsui152ylkv_1bp4okc atm_adsui4nxdgq_idpfg4 atm_adsui1jf9b6q_1aqtv8w";
775
+ function NavigationMenu({ id, label, children }) {
776
+ return /* @__PURE__ */ u$1("nav", {
777
+ id,
778
+ className: cx_default("ux-navigation-menu", menu),
779
+ "aria-label": label,
780
+ children
781
+ });
782
+ }
783
+ function NavigationGroup({ label, open = true, children }) {
784
+ return /* @__PURE__ */ u$1("details", {
785
+ className: cx_default("entry-group", group),
786
+ open,
787
+ children: [
788
+ /* @__PURE__ */ u$1("summary", { children: [
789
+ /* @__PURE__ */ u$1(Icon, { name: "chevron-right" }),
790
+ /* @__PURE__ */ u$1("span", { children: label })
791
+ ] }),
792
+ /* @__PURE__ */ u$1("div", { role: "group", "aria-label": label, "data-slot": "entries", children })
793
+ ]
794
+ });
795
+ }
796
+ const root = "atm_adsui9s_116y0ak atm_adsuih_1h6ojuz";
797
+ const details = "atm_adsui9s_1txwivl atm_adsuiar_1bp4okc atm_adsuij6_idpfg4 atm_adsuiam_kb7nvz atm_adsui1swzw65_glywfm atm_adsui1n6gq6x_idpfg4 atm_adsui1ew16gs_fg65tv atm_adsuilt2xkg_1txwivl atm_adsuicvgua_1bp4okc atm_adsuiibt2oz_idpfg4 atm_adsui13rscvo_kb7nvz atm_adsuifaj8v5_1txwivl atm_adsui1x9f3se_1h6ojuz atm_adsui7ff47s_1aqtv8w atm_adsui19ywhw4_5z7wz8 atm_adsuik8mrq7_m9afv7 atm_adsuitx6td0_glywfm atm_adsui24gkm1_kb7nvz atm_adsuibo9v2x_1mqbmot atm_adsuiof0hc7_1wugsn5";
798
+ const message = "atm_adsui9s_1txwivl atm_adsuiar_1bp4okc atm_adsuij6_idpfg4 atm_adsuiam_kb7nvz atm_adsui1n6gq6x_idpfg4 atm_adsui1ew16gs_fg65tv atm_adsui18hfcpa_5z7wz8 atm_adsui15kvw8j_1d1fc98 atm_adsuiput1jn_1r1dq30 atm_adsuiwst7e9_tx1for atm_adsuidds7x8_el7ql6 atm_adsuilhyqxr_1mqbmot atm_adsui10yw2xd_idpfg4 atm_adsui1womkjg_idpfg4 atm_adsui108aoln_glywfm atm_adsuirdnh25_1wugsn5 atm_adsuiiq3m8p_m9afv7 atm_adsui17tjeyp_5z7wz8 atm_adsui1s7p0pk_m9afv7 atm_adsuiq065rl_idpfg4 atm_adsui132u42p_1txwivl atm_adsuiy4slwo_1g80g66 atm_adsui41lbvx_1q9ycp6 atm_adsui1gu70gy_4baac9 atm_adsui3ffk06_iqvn5y atm_adsuiy5406h_l6f2xw atm_adsui1t4fsou_10of7rf atm_adsui1kdkncg_1mqbmot atm_adsuizdczfh_fg65tv atm_adsui1fkhvt8_1k2i9i8 atm_adsui1jjfms9_m9afv7 atm_adsuixcw6qj_l6f2xw atm_adsui1l7l6jv_10of7rf atm_adsui1n2a233_1wskm3t atm_adsui1gqwc3l_1r1dq30 atm_adsui1sox6pi_iqvn5y atm_adsuib4u3xt_1mqbmot atm_adsui14bm868_tlke0l atm_adsuiix7db5_1risgsc atm_adsui6nxdxv_16x0t2t atm_adsui1ouftwa_15wi45 atm_adsui1spa2l4_iqvn5y atm_adsui10ldf3v_ofj6oc atm_adsui167gjxu_1mqbmot";
799
+ function parsePreviewMessage(message2) {
800
+ const [first = "", ...rest] = message2.split("\n");
801
+ const head = /^(.+?\.)\s+(.+)$/.exec(first);
802
+ const title = head ? head[1] : first, problems = [], notes = [];
803
+ for (const line of [...head ? [head[2]] : [], ...rest].map((item) => item.trim()).filter(Boolean)) {
804
+ const found = /^(\S+?:\d+(?::\d+)?|[\w./-]+\.\w+):\s+(?:([a-z][a-z0-9-]*):\s+)?(.+)$/.exec(line);
805
+ if (!found) {
806
+ notes.push(line);
807
+ continue;
808
+ }
809
+ const text = found[3], cut = /^(.+?[.!?])\s+(.+)$/.exec(text);
810
+ problems.push({
811
+ location: found[1],
812
+ rule: found[2],
813
+ summary: cut ? cut[1] : text,
814
+ detail: cut == null ? void 0 : cut[2]
815
+ });
816
+ }
817
+ return { title, problems, notes };
818
+ }
819
+ function PreviewMessageContent({ message: text }) {
820
+ const { title, problems, notes } = parsePreviewMessage(text);
821
+ return /* @__PURE__ */ u$1("div", {
822
+ className: cx_default("ux-status-content", message),
823
+ children: [
824
+ /* @__PURE__ */ u$1("p", { className: "ux-status-title", children: [
825
+ title,
826
+ problems.length > 1 && /* @__PURE__ */ u$1("span", { className: "ux-status-count", children: [
827
+ problems.length,
828
+ " problems"
829
+ ] })
830
+ ] }),
831
+ problems.length > 0 && /* @__PURE__ */ u$1("ul", { className: "ux-status-problems", children: problems.map((problem, index) => /* @__PURE__ */ u$1("li", { className: "ux-status-problem", children: [
832
+ /* @__PURE__ */ u$1("div", { className: "ux-status-where", children: [
833
+ problem.location && /* @__PURE__ */ u$1("span", { className: "ux-status-file", children: problem.location }),
834
+ problem.rule && /* @__PURE__ */ u$1("span", { className: "ux-status-rule", children: problem.rule })
835
+ ] }),
836
+ /* @__PURE__ */ u$1("p", { className: "ux-status-summary", children: problem.summary }),
837
+ problem.detail && /* @__PURE__ */ u$1("details", { children: [
838
+ /* @__PURE__ */ u$1("summary", { children: "Why and how to fix" }),
839
+ /* @__PURE__ */ u$1("p", { children: problem.detail })
840
+ ] })
841
+ ] }, index)) }),
842
+ notes.map((note, index) => /* @__PURE__ */ u$1("p", { className: "ux-status-note", children: note }, index))
843
+ ]
844
+ });
845
+ }
846
+ function PreviewStatus({ idPrefix = "", phase = "ready", message: message2 = "Preview is up to date.", warmup, onRetry }) {
847
+ const id = (name) => idPrefix + name;
848
+ return /* @__PURE__ */ u$1("div", {
849
+ className: cx_default("ux-preview-status", root),
850
+ children: [
851
+ /* @__PURE__ */ u$1(ToolbarButton, { id: id("preview-status"), label: `Preview status: ${message2.split("\n")[0]}`, phase, iconOnly: true, popoverTarget: id("status-details"), children: /* @__PURE__ */ u$1(PreviewIndicator, { variant: "toolbar", state: phase === "reloading" ? "building" : phase }) }),
852
+ /* @__PURE__ */ u$1(Popover, { id: id("status-details"), width: "wide", flush: true, children: /* @__PURE__ */ u$1("div", { className: cx_default("ux-status-details", details), children: [
853
+ /* @__PURE__ */ u$1("div", { id: id("status"), className: "ux-status-message", role: phase === "error" ? "alert" : "status", children: /* @__PURE__ */ u$1(PreviewMessageContent, { message: message2 }) }),
854
+ /* @__PURE__ */ u$1("div", { className: "ux-status-footer", children: [
855
+ /* @__PURE__ */ u$1("p", { id: id("warmup-status"), className: "ux-status-warmup", hidden: !warmup, children: warmup }),
856
+ /* @__PURE__ */ u$1("div", { id: id("preview-error"), className: "preview-retry", hidden: phase !== "error", children: /* @__PURE__ */ u$1(ToolbarButton, { id: id("retry-preview"), label: "Retry preview", variant: "outlined", onClick: onRetry }) })
857
+ ] })
858
+ ] }) })
859
+ ]
860
+ });
861
+ }
862
+ const page = "atm_adsuijb_idpfg4 atm_adsuij6_1osqo2v atm_adsuil8_1ru0ig4 atm_adsui7l_an4usv atm_adsuibx_rhlbdi atm_adsuic8_1c8rstr atm_adsuig3_sqnntc atm_adsui3z5xaq_d3l4uo atm_adsui1wgjgno_idpfg4 atm_adsuip5t3iw_glywfm atm_adsuixo4njo_uqc78k atm_adsui5o4a8h_rfutky atm_adsui1fodpaq_1g68hxi atm_adsuiw6dnwv_1j28jx2 atm_adsuigj0umz_1ru0ig4 atm_adsui12f0w6t_1txwivl atm_adsui1gdpbuc_1g80g66 atm_adsuiuqbam3_1h6ojuz atm_adsuio8ubsb_1aqtv8w atm_adsui5ug4ic_1wdkmbo atm_adsui1w6vi1x_13r6pey atm_adsuiz9prp4_kr1xch atm_adsuiwdfvbd_m9afv7 atm_adsui13fkfdg_idpfg4 atm_adsui1do7trk_1j28jx2 atm_adsui1rlis1a_an4usv atm_adsuizf9kzn_rhlbdi atm_adsuii5gv9h_1m800s6 atm_adsuindj6xq_16x0t2t atm_adsuitdd4i9_15wi45 atm_adsui11chkp6_irm9pb atm_adsui10tyobk_1heflvk atm_adsui1h392tq_3szr2b atm_adsuiatrpru_1d1fc98 atm_adsuiwv6oyq_1r1dq30 atm_adsui1wjk0g8_6e9m65 atm_adsui1bmpb92_cpeews atm_adsui1lgjzhx_1m800s6 atm_adsuijzdzyy_1mqbmot";
863
+ function SpecimenPage({ title, description, onSearch, children }) {
864
+ return /* @__PURE__ */ u$1("section", {
865
+ className: cx_default("ux-specimen-page", page),
866
+ "aria-label": title,
867
+ children: [
868
+ /* @__PURE__ */ u$1("header", { children: [
869
+ /* @__PURE__ */ u$1("div", { className: "ux-specimen-heading", children: [
870
+ /* @__PURE__ */ u$1("h1", { children: title }),
871
+ onSearch && /* @__PURE__ */ u$1("input", { type: "search", "aria-label": "Find token", placeholder: "Find a token", onInput: (event) => onSearch(event.currentTarget.value) })
872
+ ] }),
873
+ description && /* @__PURE__ */ u$1("p", { children: description })
874
+ ] }),
875
+ /* @__PURE__ */ u$1("div", { "data-slot": "content", children })
876
+ ]
877
+ });
878
+ }
879
+ const section = "atm_adsuign_1ru0ig4 atm_adsuixlsvtl_1u4hmnj atm_adsuinpz1rd_1ye8rbs atm_adsui17mbibt_1d1fc98 atm_adsui17ww2kd_1r1dq30 atm_adsuijke1pv_1u4hmnj atm_adsuio1r35e_1mqbmot atm_adsui1n8cyqz_1m800s6";
880
+ function SpecimenSection({ title, description, children }) {
881
+ return /* @__PURE__ */ u$1("section", {
882
+ className: cx_default("ux-specimen-section", section),
883
+ children: [
884
+ /* @__PURE__ */ u$1("h2", { children: title }),
885
+ description && /* @__PURE__ */ u$1("p", { children: description }),
886
+ /* @__PURE__ */ u$1("div", { "data-slot": "content", children })
887
+ ]
888
+ });
889
+ }
890
+ const tokenList = "atm_adsui9s_11p5wf0 atm_adsuidz_14kz4g7 atm_adsuicx_awpze7 atm_adsuih_v2br90 atm_adsuibsg3hg_cmo227";
891
+ const brandList = "atm_adsui9s_1txwivl atm_adsuiar_1bp4okc atm_adsuicx_1ru0ig4";
892
+ function SpecimenList({ kind = "tokens", children }) {
893
+ return /* @__PURE__ */ u$1("div", {
894
+ className: cx_default(kind === "tokens" ? "ux-token-list" : "ux-brand-list", kind === "tokens" ? tokenList : brandList),
895
+ children
896
+ });
897
+ }
898
+ const record = "atm_adsuimk_h2mmj6 atm_adsuijb_idpfg4 atm_adsui9s_11p5wf0 atm_adsuidz_1dt7uce atm_adsuicx_ynj908 atm_adsuih_v2br90 atm_adsui1tcisp7_glywfm atm_adsuih82f68_1ulexfb atm_adsui12azbcm_idpfg4 atm_adsui4ofrji_l6f2xw atm_adsui1ohomb5_1m800s6 atm_adsui11l8r52_19dj2kj atm_adsuiv8tb9u_sqnntc atm_adsui1hs6fsa_an4usv atm_adsuir6g2l9_fg65tv atm_adsui15nvamg_1ulexfb atm_adsui1ohagt2_iqvn5y atm_adsui1hlxshq_1mqbmot atm_adsui1jumfg3_l6f2xw atm_adsui1l55ept_1m800s6 atm_adsui1hjxs91_sqnntc atm_adsuicw3xvk_fg65tv atm_adsuihjq8ef_idpfg4 atm_adsuielwazd_idpfg4 atm_adsui187x2hw_cmo227 atm_adsui1jjx7n6_1aw0sqn atm_adsui1nema7k_1doep66 atm_adsui103whxi_xbw5ta atm_adsuioj73hc_1doep66 atm_adsui1uxyw1f_cs5v99 atm_adsuiqw0ofc_kb7nvz atm_adsui1agnrdu_kb7nvz atm_adsuiq7jtp3_kb7nvz atm_adsui1xbvxo9_t6efxl atm_adsui1sulc7f_cmo227 atm_adsui1kpcjti_1aqtv8w atm_adsui1kxt283_kb7nvz atm_adsui4162r6_cs5v99 atm_adsuiqsg5ds_9tcm0k atm_adsui9yzz80_cmo227 atm_adsui1habqjs_kb7nvz atm_adsui147lq3i_cs5v99";
899
+ function TokenRecord({ name, value, meaning, kind = "value", sample }) {
900
+ return /* @__PURE__ */ u$1("article", {
901
+ className: cx_default("ux-token-record", record),
902
+ "data-kind": kind,
903
+ "aria-label": name,
904
+ children: [
905
+ kind !== "value" && /* @__PURE__ */ u$1("div", { className: "ux-token-sample", "data-slot": "sample", children: sample }),
906
+ /* @__PURE__ */ u$1("div", { className: "ux-token-description", title: meaning, children: [
907
+ /* @__PURE__ */ u$1("code", { className: "ux-token-name", children: name }),
908
+ /* @__PURE__ */ u$1("output", { className: "ux-token-value", "data-slot": "value", children: value })
909
+ ] })
910
+ ]
911
+ });
912
+ }
913
+ const brand = "atm_adsui3f_m9afv7 atm_adsuil8_1aqtv8w atm_adsuij7_idpfg4 atm_adsui9s_11p5wf0 atm_adsuin5_1ru0ig4 atm_adsui84_idpfg4 atm_adsuidz_orlc2p atm_adsuigw_qzf3v atm_adsuiiz_16qxjpu atm_adsui1dc3qsu_1fq2xm2 atm_adsui19tfa5u_idpfg4 atm_adsui3ase5w_1w13yvc atm_adsui1vdh7um_1dxzrf atm_adsui62g4ys_1fq2xm2 atm_adsui18gk43b_idpfg4 atm_adsui1fvuard_1w13yvc atm_adsui1mb1dxm_1dxzrf atm_adsui1jbg9kq_1fq2xm2 atm_adsuitn3o55_idpfg4 atm_adsuirbqgdd_1w13yvc atm_adsuixcz6hh_1dxzrf atm_adsuiqyorzg_1fq2xm2 atm_adsuii1vqpc_idpfg4 atm_adsuigl4fyj_1w13yvc atm_adsuiv2090t_1dxzrf atm_adsui1ts7i44_tyd6qj atm_adsui1xz6qul_qzf3v atm_adsui1pqqic1_16qxjpu atm_adsui1a781lm_w4zgvj atm_adsuim3tc8s_1fq2xm2 atm_adsuix6zhnp_1td5b01 atm_adsui1uqs9ci_w4zgvj atm_adsui1nznzd5_uf9ei0 atm_adsuiom2ku1_qzf3v atm_adsui9o08mg_16qxjpu atm_adsui1pkzdhz_8xhkd8 atm_adsuifphaql_1fq2xm2 atm_adsui1k50aky_15h7xc4 atm_adsui12jxqi7_p3vqc9 atm_adsui1qgxgro_uf9ei0 atm_adsui1ol26gk_qzf3v atm_adsuifnju3y_16qxjpu atm_adsui1tudct6_8xhkd8 atm_adsuinrn6kp_1fq2xm2 atm_adsui1qdvkjt_15h7xc4 atm_adsuii9a91g_p3vqc9 atm_adsui1pcy8k9_uf9ei0 atm_adsuiuzkx18_qzf3v atm_adsui1s22a1g_16qxjpu atm_adsui1my5kvs_8xhkd8 atm_adsui7cd7q2_1fq2xm2 atm_adsui1pohnud_15h7xc4 atm_adsui1rkrm6c_p3vqc9 atm_adsui1vw9f3u_1m800s6 atm_adsuilhpjy_l6f2xw atm_adsui1obu4kg_19dj2kj atm_adsui11ctjiv_1r1dq30 atm_adsui15ms55e_fg65tv";
914
+ function BrandSpecimen({ name, artwork, construction, children }) {
915
+ return /* @__PURE__ */ u$1("article", {
916
+ className: cx_default("ux-brand-specimen", brand),
917
+ children: [
918
+ /* @__PURE__ */ u$1("h2", { className: "ux-brand-name", children: name }),
919
+ /* @__PURE__ */ u$1("div", { className: "ux-brand-artwork", "data-slot": "artwork", children: artwork }),
920
+ /* @__PURE__ */ u$1("div", { className: "ux-brand-construction", "data-slot": "construction", children: construction }),
921
+ /* @__PURE__ */ u$1("div", { className: "ux-brand-sizes", "data-slot": "sizes", children })
922
+ ]
923
+ });
924
+ }
925
+ const expandedHeader = "atm_adsuij7_idpfg4 atm_adsui9s_11p5wf0 atm_adsuin5_idpfg4 atm_adsui84_idpfg4 atm_adsuidz_1y3gjcq atm_adsuigw_1gem2g7 atm_adsuiiz_glywfm atm_adsuimrwrxb_1210cad atm_adsui165a258_idpfg4 atm_adsuindcbtc_idpfg4 atm_adsui1ywdvs7_idpfg4 atm_adsui7bg9zp_107lskt atm_adsuiqjzyof_idpfg4 atm_adsui15n9hsn_idpfg4 atm_adsuigpq1w8_idpfg4 atm_adsui1ts7i44_1gr7bv3 atm_adsui1xz6qul_1gem2g7 atm_adsui1pqqic1_glywfm atm_adsuilz7qdd_6s8zn8 atm_adsui134y5xe_1ncjpb7 atm_adsui1nznzd5_1gr7bv3 atm_adsuiom2ku1_1gem2g7 atm_adsui9o08mg_glywfm atm_adsui1iqqh5c_6s8zn8 atm_adsui1j124uw_1ncjpb7 atm_adsui1qgxgro_1gr7bv3 atm_adsui1ol26gk_1gem2g7 atm_adsuifnju3y_glywfm atm_adsui8dg1eh_6s8zn8 atm_adsui1t5abo5_1ncjpb7 atm_adsui1pcy8k9_1gr7bv3 atm_adsuiuzkx18_1gem2g7 atm_adsui1s22a1g_glywfm atm_adsuiv4wfzc_6s8zn8 atm_adsuiln2feu_1ncjpb7";
926
+ const collapsedHeader = "atm_adsuij7_idpfg4 atm_adsui9s_11p5wf0 atm_adsuin5_idpfg4 atm_adsui84_idpfg4 atm_adsuidz_kyo2w3 atm_adsuigw_1gem2g7 atm_adsuiiz_glywfm atm_adsuimrwrxb_6s8zn8 atm_adsui165a258_idpfg4 atm_adsuindcbtc_idpfg4 atm_adsui1ywdvs7_idpfg4 atm_adsui7bg9zp_h3ouum atm_adsuiqjzyof_idpfg4 atm_adsui15n9hsn_idpfg4 atm_adsuigpq1w8_idpfg4 atm_adsui1ts7i44_kyo2w3 atm_adsui1xz6qul_1gem2g7 atm_adsui1pqqic1_glywfm atm_adsuilz7qdd_6s8zn8 atm_adsui134y5xe_h3ouum atm_adsui1nznzd5_kyo2w3 atm_adsuiom2ku1_1gem2g7 atm_adsui9o08mg_glywfm atm_adsui1iqqh5c_6s8zn8 atm_adsui1j124uw_h3ouum atm_adsui1qgxgro_kyo2w3 atm_adsui1ol26gk_1gem2g7 atm_adsuifnju3y_glywfm atm_adsui8dg1eh_6s8zn8 atm_adsui1t5abo5_h3ouum atm_adsui1pcy8k9_kyo2w3 atm_adsuiuzkx18_1gem2g7 atm_adsui1s22a1g_glywfm atm_adsuiv4wfzc_6s8zn8 atm_adsuiln2feu_h3ouum";
927
+ const expandedMain = "atm_adsuij7_idpfg4 atm_adsui9s_11p5wf0 atm_adsuin5_idpfg4 atm_adsui84_idpfg4 atm_adsuidz_1y3gjcq atm_adsuigw_1gem2g7 atm_adsuiiz_glywfm atm_adsui1xr9v27_1210cad atm_adsuif3wayr_idpfg4 atm_adsuimgqw9w_idpfg4 atm_adsui8iopdn_idpfg4 atm_adsuix9z4xg_107lskt atm_adsui1wohlm_idpfg4 atm_adsuiu9g1y7_idpfg4 atm_adsui1orm0qo_idpfg4 atm_adsuiskdtbx_15wbn57 atm_adsuip945hm_1pzsloo atm_adsui1ts7i44_1gr7bv3 atm_adsui1xz6qul_1gem2g7 atm_adsui1pqqic1_glywfm atm_adsuizryume_6s8zn8 atm_adsui1ngmxnq_1ncjpb7 atm_adsui1nznzd5_1gr7bv3 atm_adsuiom2ku1_1gem2g7 atm_adsui9o08mg_glywfm atm_adsuin783i1_6s8zn8 atm_adsui1l75c4v_1ncjpb7 atm_adsui1qgxgro_1gr7bv3 atm_adsui1ol26gk_1gem2g7 atm_adsuifnju3y_glywfm atm_adsui1i44mqh_6s8zn8 atm_adsuivsouqh_1ncjpb7 atm_adsui1pcy8k9_1gr7bv3 atm_adsuiuzkx18_1gem2g7 atm_adsui1s22a1g_glywfm atm_adsuiehc6gd_6s8zn8 atm_adsuittpjm6_1ncjpb7";
928
+ const fullMain = "atm_adsuij7_idpfg4 atm_adsui9s_11p5wf0 atm_adsuin5_idpfg4 atm_adsui84_idpfg4 atm_adsuidz_dk28gj atm_adsuigw_1gem2g7 atm_adsuiiz_glywfm atm_adsui1xr9v27_6s8zn8 atm_adsuif3wayr_idpfg4 atm_adsuimgqw9w_idpfg4 atm_adsui8iopdn_idpfg4 atm_adsuix9z4xg_h3ouum atm_adsui1wohlm_idpfg4 atm_adsuiu9g1y7_idpfg4 atm_adsui1orm0qo_idpfg4 atm_adsuiskdtbx_15wbn57 atm_adsuip945hm_1pzsloo atm_adsui1ts7i44_dk28gj atm_adsui1xz6qul_1gem2g7 atm_adsui1pqqic1_glywfm atm_adsuizryume_6s8zn8 atm_adsui1ngmxnq_h3ouum atm_adsui1nznzd5_dk28gj atm_adsuiom2ku1_1gem2g7 atm_adsui9o08mg_glywfm atm_adsuin783i1_6s8zn8 atm_adsui1l75c4v_h3ouum atm_adsui1qgxgro_dk28gj atm_adsui1ol26gk_1gem2g7 atm_adsuifnju3y_glywfm atm_adsui1i44mqh_6s8zn8 atm_adsuivsouqh_h3ouum atm_adsui1pcy8k9_dk28gj atm_adsuiuzkx18_1gem2g7 atm_adsui1s22a1g_glywfm atm_adsuiehc6gd_6s8zn8 atm_adsuittpjm6_h3ouum";
929
+ const brandLockup = "atm_adsui9s_116y0ak atm_adsuiar_vrvcex atm_adsuih_1h6ojuz atm_adsui1xk5jbi_1aou828 atm_adsui15ztyo3_1wugsn5 atm_adsuiya8ym_12336oc atm_adsuiou0xue_1h6ojuz atm_adsuip2cq0w_idpfg4 atm_adsui3y46a7_pfqszd atm_adsui1e8hxr8_1f51e7f atm_adsui1w4yjon_1wugsn5 atm_adsui1fm6vu0_1aou828 atm_adsuieb1l7_1wugsn5 atm_adsuiu4pov9_1f51e7f atm_adsuibd751w_1wugsn5 atm_adsuip12vv8_1aou828 atm_adsui119azkn_1wugsn5 atm_adsuidutd7r_1f51e7f atm_adsuivm5w66_1wugsn5 atm_adsui7msh7_116y0ak atm_adsuijq6hmp_1q9ycp6 atm_adsuiqu4bbn_1h6ojuz atm_adsui1450k7n_1ulexfb atm_adsui7bxzlg_h68d5v atm_adsuin2zkk7_24x154 atm_adsuicx_tx1for atm_adsuijb_idpfg4";
930
+ function workspaceRegionClasses(collapsed = false, capture = false) {
931
+ return { header: cx_default("ux-workspace-header", collapsed ? collapsedHeader : expandedHeader), main: cx_default("ux-workspace-main", collapsed || capture ? fullMain : expandedMain) };
932
+ }
933
+ const frame = "atm_adsui9s_1txwivl atm_adsuiar_1bp4okc atm_adsuivy_1osqo2v atm_adsuie2_1osqo2v atm_adsuij6_idpfg4 atm_adsui26_1bplolx atm_adsui7l_1wskm3t atm_adsuibx_rhlbdi atm_adsuic8_1m800s6 atm_adsuig3_sqnntc atm_adsui1swzw65_glywfm atm_adsuitwidkn_1eorbtc atm_adsui9sygfm_idpfg4 atm_adsui12bw0u4_10rgqv3 atm_adsuilgsf2q_1bplolx atm_adsui1czrkxg_m9afv7 atm_adsui1xxn05p_1txwivl atm_adsuijvq3zr_tx1for atm_adsui192tkol_1h6ojuz atm_adsui1uphbw0_1aqtv8w atm_adsui18j3xf2_1txwivl atm_adsuiv4kl24_1fhbwtr atm_adsui7tg88j_116y0ak atm_adsui3hsxdi_116y0ak atm_adsuiw4isa_1q9ycp6 atm_adsui1e372br_tx1for atm_adsuiol208p_idpfg4 atm_adsui1hwqkvt_14k5dlv atm_adsui1brizz9_1d1fc98 atm_adsui1qytvf8_1r1dq30 atm_adsui1i52crn_idpfg4 atm_adsui1rva9te_15vqwwr atm_adsui1ux9w3e_1l2sidv atm_adsui16phkqt_1q9ccgz atm_adsui11e3yb3_1wugsn5 atm_adsui121hswv_1txwivl atm_adsuikokisn_iqvn5y atm_adsui1xmdvl_1h6ojuz atm_adsuidgi0se_idpfg4 atm_adsui1106ncu_1wugsn5 atm_adsuiu6bb7r_tx1for atm_adsui1nngew9_1txwivl atm_adsui1hijnjn_1h6ojuz atm_adsui14yqywo_idpfg4 atm_adsui1n3v6f3_1wugsn5 atm_adsuibmhjpv_tx1for atm_adsuitwhtux_idpfg4 atm_adsui1t7jlm4_kb7nvz atm_adsuigr19py_idpfg4 atm_adsui1r3dd4x_1txwivl atm_adsui1dr8vx7_1bp4okc atm_adsui12n32ac_idpfg4 atm_adsui15x0kgb_m9afv7 atm_adsuixqxvxy_15vqwwr atm_adsuivq6bgu_ynj908 atm_adsui1o135n7_1bplolx atm_adsui7r55s8_kb7nvz atm_adsuiwklih5_idpfg4 atm_adsuixjj1j1_1wugsn5 atm_adsuirae8ic_1txwivl atm_adsui16ywoy7_kb7nvz atm_adsui3zzzu1_1bp4okc atm_adsuioe3i46_idpfg4 atm_adsuigjcmck_h2mmj6 atm_adsui16iisfr_15vqwwr atm_adsui1jwmmnn_idpfg4 atm_adsuiobixd9_kb7nvz atm_adsui1bb1xke_idpfg4 atm_adsuivnahyn_idpfg4 atm_adsui1xr98ve_1bgihbq atm_adsui18tesp1_1ulexfb atm_adsui3im4ne_idpfg4 atm_adsui3aiucy_1osqo2v atm_adsui1rjdu20_1osqo2v atm_adsuitmy5t6_1txwivl atm_adsui1dgldxt_esu3gu atm_adsui1ggjjzu_iqvn5y atm_adsui138t24g_4baac9 atm_adsui1qnyawd_m9afv7 atm_adsui4v0vbm_1bplolx atm_adsui1jhz6h2_glywfm atm_adsui1chybqy_stnw88 atm_adsui1br56z7_idpfg4 atm_adsui888a6e_o2ms3 atm_adsui1xuvgmd_11p5wf0 atm_adsuirxsuh_1h6ojuz atm_adsui1mqap2g_1bplolx atm_adsui1xhqumc_14k5dlv atm_adsuirc18cp_14k5dlv atm_adsuirrx08l_moeofi atm_adsuiey7ewl_nqa18y atm_adsuigux95j_7uy8cq atm_adsui1fe4k5a_12j2sah atm_adsuig4uoah_1v7nmpu atm_adsui11rdqaw_1wdkmbo atm_adsui18vvlvy_19uah5m atm_adsui1cw8iwc_dcxj7s atm_adsui1x2b1m8_1kw7nm4 atm_adsuitbv4yw_1bplolx atm_adsuizgbt4v_1wskm3t atm_adsui17eejsz_m9afv7 atm_adsuid87q3_idpfg4 atm_adsuitcdkhm_glywfm atm_adsui1xeiopu_1h6ojuz atm_adsui1ggp9a3_idpfg4 atm_adsui1k34kje_glywfm atm_adsui1gdfntm_idpfg4 atm_adsuiz1ci95_1knmvda atm_adsuiiqm1lt_1wugsn5 atm_adsuiez3a21_15vqwwr atm_adsui8ru30r_glywfm atm_adsui1b3wxlc_1osqo2v atm_adsui129m0mj_11p5wf0 atm_adsui5w99fc_cmo227 atm_adsuirt32k7_idpfg4 atm_adsui1bb439o_1uq4mm2 atm_adsui1azndq0_1txwivl atm_adsui1ef74b0_1bp4okc atm_adsui1r8nml_idpfg4 atm_adsui1oioy44_idpfg4 atm_adsui4s98mp_m9afv7 atm_adsuipkg9do_1m800s6 atm_adsui805znv_19dj2kj atm_adsui1uyulxv_8p4f3e atm_adsuiwjjjyp_idpfg4 atm_adsuii2eazt_m9afv7 atm_adsui1gx3q7f_kb7nvz atm_adsui1adcp8o_idpfg4 atm_adsui3micw4_1txwivl atm_adsui1q69jt1_1h6ojuz atm_adsui12dg9uo_1osqo2v atm_adsuia71lpn_1knmvda atm_adsuim1gh36_glywfm atm_adsui10vojm5_glywfm";
934
+ function WorkspaceRegions({ loading = false, collapsed = false, capture = false, brand: brand2, sections, actions, navigation, overlays, previewOverlay, previewTools, children }) {
935
+ return /* @__PURE__ */ u$1("div", {
936
+ id: "workspace",
937
+ "data-loading": loading,
938
+ "data-collapsed": collapsed,
939
+ "data-capture": capture,
940
+ "aria-busy": loading,
941
+ className: cx_default("ux-workspace", frame),
942
+ children: [
943
+ /* @__PURE__ */ u$1("header", { id: "header", className: cx_default("ux-workspace-header", collapsed ? collapsedHeader : expandedHeader), children: [
944
+ /* @__PURE__ */ u$1("div", { id: "brand", className: "ux-workspace-brand", children: brand2 }),
945
+ /* @__PURE__ */ u$1("div", { className: "ux-workspace-bar", children: [
946
+ /* @__PURE__ */ u$1("nav", { id: "sections", className: "ux-workspace-sections", "aria-label": "Showcase sections", children: sections }),
947
+ /* @__PURE__ */ u$1("div", { className: "ux-workspace-actions", children: actions })
948
+ ] })
949
+ ] }),
950
+ overlays,
951
+ /* @__PURE__ */ u$1("main", { className: cx_default("ux-workspace-main", collapsed || capture ? fullMain : expandedMain), children: [
952
+ /* @__PURE__ */ u$1("aside", { id: "sidebar", className: "ux-workspace-sidebar", children: navigation }),
953
+ /* @__PURE__ */ u$1("section", { id: "preview-workspace", className: "ux-workspace-content", "aria-label": "Preview workspace", children: /* @__PURE__ */ u$1("section", { id: "preview", className: "ux-workspace-preview", "aria-label": "Preview", children: [
954
+ previewOverlay,
955
+ previewTools && /* @__PURE__ */ u$1("div", { className: "ux-workspace-preview-tools", role: "toolbar", "aria-label": "Preview tools", children: previewTools }),
956
+ /* @__PURE__ */ u$1("div", { id: "frame-slot", className: "ux-workspace-slot", children })
957
+ ] }) })
958
+ ] })
959
+ ]
960
+ });
961
+ }
962
+ function Workspace({ title = "Design system", loading = false, section: section2 = "tokens", previewStatus, guidesAvailable = false, guideOptions, navigation, children }) {
963
+ return /* @__PURE__ */ u$1(
964
+ WorkspaceRegions,
965
+ {
966
+ loading,
967
+ brand: u$1(M, { children: [
968
+ /* @__PURE__ */ u$1("span", { className: cx_default("ux-workspace-name", brandLockup), children: [
969
+ /* @__PURE__ */ u$1("span", { className: "ux-workspace-logo", children: /* @__PURE__ */ u$1(BrandMark, {}) }),
970
+ /* @__PURE__ */ u$1("span", { className: "ux-workspace-name-text", children: [
971
+ /* @__PURE__ */ u$1("span", { className: "ux-workspace-mark", children: "ADS" }),
972
+ /* @__PURE__ */ u$1("span", { id: "title", className: "ux-workspace-title", children: title })
973
+ ] })
974
+ ] }),
975
+ /* @__PURE__ */ u$1(ToolbarButton, { id: "pane-toggle", label: "Hide navigation pane", iconOnly: true, expanded: true, controls: "sidebar", children: /* @__PURE__ */ u$1(Icon, { name: "chevron-left" }) })
976
+ ] }),
977
+ sections: u$1(M, { children: [
978
+ /* @__PURE__ */ u$1(ToolbarButton, { label: "Brand", section: "brand", current: section2 === "brand", children: /* @__PURE__ */ u$1(Icon, { name: "brand" }) }),
979
+ /* @__PURE__ */ u$1(ToolbarButton, { label: "Icons", section: "icons", current: section2 === "icons", children: /* @__PURE__ */ u$1(Icon, { name: "icons" }) }),
980
+ /* @__PURE__ */ u$1(ToolbarButton, { label: "Tokens", section: "tokens", current: section2 === "tokens", children: /* @__PURE__ */ u$1(Icon, { name: "tokens" }) }),
981
+ /* @__PURE__ */ u$1(ToolbarButton, { label: "Components", section: "components", current: section2 === "components", children: /* @__PURE__ */ u$1(Icon, { name: "components" }) }),
982
+ /* @__PURE__ */ u$1(ToolbarButton, { label: "Patterns", section: "patterns", current: section2 === "patterns", children: /* @__PURE__ */ u$1(Icon, { name: "patterns" }) }),
983
+ /* @__PURE__ */ u$1(ToolbarButton, { label: "Composition", section: "composition", current: section2 === "composition", children: /* @__PURE__ */ u$1(Icon, { name: "composition" }) }),
984
+ /* @__PURE__ */ u$1(ToolbarButton, { label: "Drafts", section: "drafts", current: section2 === "drafts", children: /* @__PURE__ */ u$1(Icon, { name: "drafts" }) })
985
+ ] }),
986
+ actions: u$1(M, { children: [
987
+ /* @__PURE__ */ u$1(PreviewStatus, { ...previewStatus }),
988
+ /* @__PURE__ */ u$1(ToolbarButton, { id: "viewport", label: "Phone viewport", iconOnly: true, pressed: false, controls: "frame-slot", children: /* @__PURE__ */ u$1(Icon, { name: "phone" }) }),
989
+ /* @__PURE__ */ u$1(ToolbarButton, { id: "grid-overlay", label: "Layout guides", iconOnly: true, controls: "grid-options", popoverTarget: "grid-options", hidden: !guidesAvailable, children: /* @__PURE__ */ u$1(Icon, { name: "layout" }) }),
990
+ /* @__PURE__ */ u$1("select", { id: "brand-select", className: "ux-workspace-brand-select", "aria-label": "Preview brand", hidden: true }),
991
+ /* @__PURE__ */ u$1(ToolbarButton, { id: "theme", label: "Use dark theme", iconOnly: true, children: /* @__PURE__ */ u$1(Icon, { name: "moon" }) }),
992
+ /* @__PURE__ */ u$1(ToolbarButton, { id: "minimize", label: "Minimize showcase menu", iconOnly: true, children: /* @__PURE__ */ u$1(Icon, { name: "chevron-up" }) })
993
+ ] }),
994
+ overlays: u$1(GuideOptions, { ...guideOptions }),
995
+ navigation: u$1(NavigationMenu, { id: "entries", label: "Entries", children: navigation }),
996
+ previewTools: u$1(ToolbarButton, { id: "split-view", label: "Split view", iconOnly: true, pressed: false, disabled: true, hidden: true, children: /* @__PURE__ */ u$1(Icon, { name: "split" }) }),
997
+ previewOverlay: u$1("div", { id: "loader", className: "ux-workspace-loader", role: "status", "aria-label": "Loading preview", hidden: true, children: /* @__PURE__ */ u$1("span", { className: "ux-workspace-spinner", "aria-hidden": "true" }) }),
998
+ children
999
+ }
1000
+ );
1001
+ }
1002
+ function node(Component, props) {
1003
+ const container = document.createElement("div");
1004
+ G$1(/* @__PURE__ */ u$1(Component, { ...props }), container);
1005
+ return container.firstElementChild;
1006
+ }
1007
+ function mountWorkspace(container) {
1008
+ G$1(/* @__PURE__ */ u$1(Workspace, { title: "", loading: true }), container);
1009
+ return () => G$1(null, container);
1010
+ }
1011
+ const navigationGroup = (props) => node(NavigationGroup, props);
1012
+ const navigationItem = (props) => node(NavigationItem, props);
1013
+ const specimenPage = (props) => node(SpecimenPage, props);
1014
+ const specimenSection = (props) => node(SpecimenSection, props);
1015
+ const specimenList = (props) => node(SpecimenList, props);
1016
+ const tokenRecord = (props) => node(TokenRecord, props);
1017
+ const artworkGrid = (props) => node(ArtworkGrid, props);
1018
+ const brandSpecimen = (props) => node(BrandSpecimen, props);
1019
+ const iconHosts = /* @__PURE__ */ new WeakMap();
1020
+ function iconsMounted(slot) {
1021
+ const host = iconHosts.get(slot);
1022
+ return !!host && host.parentNode === slot && !!host.firstElementChild;
1023
+ }
1024
+ function renderIcons(slot, data) {
1025
+ let host = iconHosts.get(slot);
1026
+ if (!host || host.parentNode !== slot) {
1027
+ if (host) G$1(null, host);
1028
+ host = document.createElement("div");
1029
+ host.className = "ux-icons-mount";
1030
+ iconHosts.set(slot, host);
1031
+ slot.replaceChildren(host);
1032
+ }
1033
+ G$1(/* @__PURE__ */ u$1(IconCatalogue, { data }), host);
1034
+ return host.firstElementChild;
1035
+ }
1036
+ function unmountIcons(slot) {
1037
+ const host = iconHosts.get(slot);
1038
+ if (!host) return;
1039
+ G$1(null, host);
1040
+ host.remove();
1041
+ iconHosts.delete(slot);
1042
+ }
1043
+ function renderPreviewMessage(element, message2) {
1044
+ G$1(/* @__PURE__ */ u$1(PreviewMessageContent, { message: message2 }), element);
1045
+ }
1046
+ export {
1047
+ artworkGrid,
1048
+ brandSpecimen,
1049
+ iconsMounted,
1050
+ mountWorkspace,
1051
+ navigationGroup,
1052
+ navigationItem,
1053
+ presetLayers,
1054
+ renderIcons,
1055
+ renderPreviewMessage,
1056
+ specimenList,
1057
+ specimenPage,
1058
+ specimenSection,
1059
+ tokenRecord,
1060
+ unmountIcons,
1061
+ workspaceRegionClasses
1062
+ };