@krizaka/ui 4.4.0 → 4.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/dist/account-menu.d.ts +1 -1
  2. package/dist/account-menu.js +1 -1
  3. package/dist/account-menu.js.map +1 -1
  4. package/dist/account-settings.d.ts +1 -1
  5. package/dist/account-settings.js +13 -6
  6. package/dist/account-settings.js.map +1 -1
  7. package/dist/agenda.d.ts +1 -1
  8. package/dist/agenda.js +2 -1
  9. package/dist/agenda.js.map +1 -1
  10. package/dist/analysis-report.js +19 -11
  11. package/dist/analysis-report.js.map +1 -1
  12. package/dist/app-frame.d.ts +1 -1
  13. package/dist/app-frame.js.map +1 -1
  14. package/dist/app-header/search.js +2 -2
  15. package/dist/app-header/search.js.map +1 -1
  16. package/dist/avatar/defaults.js +3 -1
  17. package/dist/avatar/defaults.js.map +1 -1
  18. package/dist/avatar.js +3 -1
  19. package/dist/avatar.js.map +1 -1
  20. package/dist/bird-plate.js +8 -2
  21. package/dist/bird-plate.js.map +1 -1
  22. package/dist/chapter.js +7 -4
  23. package/dist/chapter.js.map +1 -1
  24. package/dist/chat.js +1 -1
  25. package/dist/chip.d.ts +1 -1
  26. package/dist/chip.js +1 -1
  27. package/dist/{chunk-SNSQLGGS.js → chunk-5VZ37TY3.js} +1 -1
  28. package/dist/{chunk-XWJDBQU7.js.map → chunk-5VZ37TY3.js.map} +1 -1
  29. package/dist/{chunk-MTVX4RRF.js → chunk-HP7BDMVK.js} +11 -3
  30. package/dist/chunk-HP7BDMVK.js.map +1 -0
  31. package/dist/{chunk-PK3L6WQT.js → chunk-LNAAWT4Y.js} +4 -2
  32. package/dist/{chunk-PK3L6WQT.js.map → chunk-LNAAWT4Y.js.map} +1 -1
  33. package/dist/{chunk-UIP3WX5O.js → chunk-MDSP7DJR.js} +2 -2
  34. package/dist/chunk-MDSP7DJR.js.map +1 -0
  35. package/dist/{chunk-IEGTRCDI.js → chunk-NQENOT6L.js} +2 -2
  36. package/dist/{chunk-IEGTRCDI.js.map → chunk-NQENOT6L.js.map} +1 -1
  37. package/dist/{chunk-FM42KOAU.js → chunk-P7AFIKWG.js} +5 -3
  38. package/dist/chunk-P7AFIKWG.js.map +1 -0
  39. package/dist/{chunk-BCD2CRFG.js → chunk-PJNR4NTS.js} +2 -2
  40. package/dist/chunk-PJNR4NTS.js.map +1 -0
  41. package/dist/{chunk-ZFR6ZNXD.js → chunk-PVQ2KKPZ.js} +1 -1
  42. package/dist/chunk-PVQ2KKPZ.js.map +1 -0
  43. package/dist/{chunk-U4XTZMB7.js → chunk-QA3WETWT.js} +1 -1
  44. package/dist/{chunk-U4XTZMB7.js.map → chunk-QA3WETWT.js.map} +1 -1
  45. package/dist/{chunk-YXETEQQJ.js → chunk-SG2RKUVJ.js} +2 -2
  46. package/dist/{chunk-EOWV6BNQ.js → chunk-TXFX4PMN.js} +4 -2
  47. package/dist/{chunk-EOWV6BNQ.js.map → chunk-TXFX4PMN.js.map} +1 -1
  48. package/dist/{chunk-XWJDBQU7.js → chunk-V5RO6JYI.js} +1 -1
  49. package/dist/{chunk-SNSQLGGS.js.map → chunk-V5RO6JYI.js.map} +1 -1
  50. package/dist/{chunk-VUD4IEVJ.js → chunk-VZ6ZALIJ.js} +1 -1
  51. package/dist/chunk-VZ6ZALIJ.js.map +1 -0
  52. package/dist/{chunk-2DHL7NJW.js → chunk-XVRKKYWU.js} +5 -3
  53. package/dist/{chunk-2DHL7NJW.js.map → chunk-XVRKKYWU.js.map} +1 -1
  54. package/dist/{chunk-CDNOT2KR.js → chunk-YTYNKMNS.js} +1 -1
  55. package/dist/chunk-YTYNKMNS.js.map +1 -0
  56. package/dist/code-block.js.map +1 -1
  57. package/dist/combobox.js +2 -2
  58. package/dist/copy-button.js +2 -2
  59. package/dist/copy-button.js.map +1 -1
  60. package/dist/data-table.js +3 -3
  61. package/dist/desktop-window.d.ts +1 -1
  62. package/dist/desktop-window.js +3 -1
  63. package/dist/desktop-window.js.map +1 -1
  64. package/dist/drop-overlay.js +8 -8
  65. package/dist/drop-overlay.js.map +1 -1
  66. package/dist/elephant.d.ts +1 -1
  67. package/dist/elephant.js.map +1 -1
  68. package/dist/embed-facade.d.ts +1 -1
  69. package/dist/embed-facade.js +3 -1
  70. package/dist/embed-facade.js.map +1 -1
  71. package/dist/engine-flow.js +7 -2
  72. package/dist/engine-flow.js.map +1 -1
  73. package/dist/entity-header.js +9 -3
  74. package/dist/entity-header.js.map +1 -1
  75. package/dist/file-upload.d.ts +1 -1
  76. package/dist/file-upload.js.map +1 -1
  77. package/dist/filter-bar.d.ts +4 -4
  78. package/dist/filter-bar.js +2 -2
  79. package/dist/flock.js +9 -6
  80. package/dist/flock.js.map +1 -1
  81. package/dist/form.d.ts +3 -3
  82. package/dist/form.js.map +1 -1
  83. package/dist/genui.js +3 -3
  84. package/dist/glossary-term.d.ts +1 -1
  85. package/dist/glossary-term.js.map +1 -1
  86. package/dist/glossary.d.ts +1 -1
  87. package/dist/glossary.js.map +1 -1
  88. package/dist/identity-card.js +1 -1
  89. package/dist/index.js +1 -1
  90. package/dist/kind-config-editor.d.ts +2 -2
  91. package/dist/kind-config-editor.js +1 -1
  92. package/dist/kind-config-editor.js.map +1 -1
  93. package/dist/kpi-explained.d.ts +1 -1
  94. package/dist/kpi-explained.js +4 -4
  95. package/dist/kpi-explained.js.map +1 -1
  96. package/dist/landing-page.js +1 -1
  97. package/dist/{lightbox-Q45BZ3HW.js → lightbox-MRB2YZEP.js} +1 -1
  98. package/dist/lightbox-MRB2YZEP.js.map +1 -0
  99. package/dist/map/cards.js +4 -2
  100. package/dist/map/cards.js.map +1 -1
  101. package/dist/map/pin.js +2 -1
  102. package/dist/map/pin.js.map +1 -1
  103. package/dist/map.d.ts +1 -1
  104. package/dist/map.js.map +1 -1
  105. package/dist/mascot-quote.js +1 -1
  106. package/dist/mascot-state.js +1 -1
  107. package/dist/mascots.js +1 -1
  108. package/dist/match-dialog.js +1 -1
  109. package/dist/motion.d.ts +1 -1
  110. package/dist/motion.js.map +1 -1
  111. package/dist/native/form.d.ts +3 -3
  112. package/dist/native/form.js.map +1 -1
  113. package/dist/native/markdown.d.ts +1 -1
  114. package/dist/native/markdown.js.map +1 -1
  115. package/dist/native/vertical-video.js.map +1 -1
  116. package/dist/native.d.ts +12 -12
  117. package/dist/native.js +12 -7
  118. package/dist/native.js.map +1 -1
  119. package/dist/nav-bar.d.ts +2 -2
  120. package/dist/nav-bar.js +1 -1
  121. package/dist/nav-bar.js.map +1 -1
  122. package/dist/next-actions.d.ts +1 -1
  123. package/dist/next-actions.js.map +1 -1
  124. package/dist/notification-preferences.d.ts +1 -1
  125. package/dist/notification-preferences.js +5 -2
  126. package/dist/notification-preferences.js.map +1 -1
  127. package/dist/page-index.js +2 -2
  128. package/dist/page-index.js.map +1 -1
  129. package/dist/product-page.js +1 -1
  130. package/dist/promo-code-field.d.ts +1 -1
  131. package/dist/promo-code-field.js.map +1 -1
  132. package/dist/qr-code.d.ts +1 -1
  133. package/dist/qr-code.js +1 -1
  134. package/dist/rail-nav.js +3 -3
  135. package/dist/rail-nav.js.map +1 -1
  136. package/dist/retro-tv.d.ts +1 -1
  137. package/dist/retro-tv.js.map +1 -1
  138. package/dist/reviews.d.ts +2 -2
  139. package/dist/reviews.js.map +1 -1
  140. package/dist/router.d.ts +1 -1
  141. package/dist/router.js +8 -8
  142. package/dist/router.js.map +1 -1
  143. package/dist/{schema-CL7t7xqb.d.ts → schema-Dd05m48Q.d.ts} +9 -9
  144. package/dist/service-card.js +22 -13
  145. package/dist/service-card.js.map +1 -1
  146. package/dist/settings-layout.js +1 -1
  147. package/dist/shop/booking.js.map +1 -1
  148. package/dist/shop/gallery.js +7 -6
  149. package/dist/shop/gallery.js.map +1 -1
  150. package/dist/shop/hero.js.map +1 -1
  151. package/dist/shop/look.d.ts +2 -2
  152. package/dist/shop/look.js +1 -1
  153. package/dist/shop/look.js.map +1 -1
  154. package/dist/shop/map-gate.d.ts +1 -1
  155. package/dist/shop/map-gate.js +2 -2
  156. package/dist/shop/map-gate.js.map +1 -1
  157. package/dist/shop/services.js.map +1 -1
  158. package/dist/shop-composer.d.ts +12 -12
  159. package/dist/shop-composer.js +27 -14
  160. package/dist/shop-composer.js.map +1 -1
  161. package/dist/shop-gallery.js +1 -1
  162. package/dist/shop.d.ts +2 -2
  163. package/dist/shop.js +2 -2
  164. package/dist/shop.js.map +1 -1
  165. package/dist/signature.js +2 -1
  166. package/dist/signature.js.map +1 -1
  167. package/dist/site-cahier.js +7 -3
  168. package/dist/site-cahier.js.map +1 -1
  169. package/dist/site-footer.js +6 -2
  170. package/dist/site-footer.js.map +1 -1
  171. package/dist/slot-picker.js +5 -2
  172. package/dist/slot-picker.js.map +1 -1
  173. package/dist/stat.js +1 -1
  174. package/dist/status-chip.d.ts +1 -1
  175. package/dist/status-chip.js.map +1 -1
  176. package/dist/tabs.js.map +1 -1
  177. package/dist/tag-input.js +2 -2
  178. package/dist/tag-selector.js +1 -1
  179. package/dist/text-style.js +4 -3
  180. package/dist/text-style.js.map +1 -1
  181. package/dist/usage.js +8 -3
  182. package/dist/usage.js.map +1 -1
  183. package/dist/versus-card.js +1 -1
  184. package/dist/versus-card.js.map +1 -1
  185. package/dist/vertical-video.js +1 -1
  186. package/dist/vertical-video.js.map +1 -1
  187. package/dist/wall.d.ts +4 -4
  188. package/dist/wall.js +1 -1
  189. package/dist/wall.js.map +1 -1
  190. package/package.json +5 -5
  191. package/registry/account-menu.json +1 -1
  192. package/registry/account-settings.json +2 -2
  193. package/registry/agenda.json +1 -1
  194. package/registry/analysis-report.json +2 -2
  195. package/registry/app-frame.json +3 -3
  196. package/registry/app-header.json +1 -1
  197. package/registry/avatar.json +1 -1
  198. package/registry/badge.json +2 -2
  199. package/registry/bird-plate.json +1 -1
  200. package/registry/chapter.json +1 -1
  201. package/registry/chip.json +1 -1
  202. package/registry/copy-button.json +1 -1
  203. package/registry/data-table.json +1 -1
  204. package/registry/desktop-window.json +1 -1
  205. package/registry/drop-overlay.json +1 -1
  206. package/registry/elephant.json +1 -1
  207. package/registry/embed-facade.json +2 -2
  208. package/registry/engine-flow.json +2 -2
  209. package/registry/entity-header.json +1 -1
  210. package/registry/file-upload.json +1 -1
  211. package/registry/filter-bar.json +1 -1
  212. package/registry/flock.json +2 -2
  213. package/registry/form.json +7 -7
  214. package/registry/glossary-term.json +1 -1
  215. package/registry/glossary.json +1 -1
  216. package/registry/index.json +7 -7
  217. package/registry/kind-config-editor.json +1 -1
  218. package/registry/kpi-explained.json +1 -1
  219. package/registry/map.json +4 -4
  220. package/registry/mascot-state.json +1 -1
  221. package/registry/mascots.json +2 -2
  222. package/registry/nav-bar.json +4 -4
  223. package/registry/next-actions.json +1 -1
  224. package/registry/notification-preferences.json +1 -1
  225. package/registry/page-index.json +1 -1
  226. package/registry/page.json +1 -1
  227. package/registry/promo-code-field.json +1 -1
  228. package/registry/qr-code.json +2 -2
  229. package/registry/rail-nav.json +3 -3
  230. package/registry/retro-tv.json +1 -1
  231. package/registry/reviews.json +1 -1
  232. package/registry/router.json +1 -1
  233. package/registry/service-card.json +1 -1
  234. package/registry/settings-layout.json +1 -1
  235. package/registry/shop-composer.json +7 -7
  236. package/registry/shop-gallery.json +1 -1
  237. package/registry/shop.json +11 -11
  238. package/registry/signature.json +1 -1
  239. package/registry/site-cahier.json +1 -1
  240. package/registry/site-footer.json +3 -3
  241. package/registry/slot-picker.json +1 -1
  242. package/registry/stat.json +1 -1
  243. package/registry/status-chip.json +1 -1
  244. package/registry/tabs.json +1 -1
  245. package/registry/text-style.json +1 -1
  246. package/registry/usage.json +2 -2
  247. package/registry/versus-card.json +1 -1
  248. package/registry/vertical-video.json +1 -1
  249. package/registry/wall.json +5 -5
  250. package/registry/waveform.json +2 -2
  251. package/dist/chunk-BCD2CRFG.js.map +0 -1
  252. package/dist/chunk-CDNOT2KR.js.map +0 -1
  253. package/dist/chunk-FM42KOAU.js.map +0 -1
  254. package/dist/chunk-MTVX4RRF.js.map +0 -1
  255. package/dist/chunk-UIP3WX5O.js.map +0 -1
  256. package/dist/chunk-VUD4IEVJ.js.map +0 -1
  257. package/dist/chunk-ZFR6ZNXD.js.map +0 -1
  258. package/dist/lightbox-Q45BZ3HW.js.map +0 -1
  259. /package/dist/{chunk-YXETEQQJ.js.map → chunk-SG2RKUVJ.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/chip/chip.tsx","../src/chip/recipe.ts","../src/chip/tag-chip.tsx","../src/chip/markers.ts"],"sourcesContent":["// Client (a context). A chip is a pressable pill: alone it is a Radix Toggle (aria-pressed), inside `Chip.Group` an\n// item of a Radix Toggle Group (roving focus with the arrows; `single` = radio semantics, `multiple` = pressed\n// buttons). A `removable` chip is a static label with its own remove button (two buttons cannot nest).\nimport { Toggle as TogglePrimitive, ToggleGroup as ToggleGroupPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport { useRouteBinding } from \"../router\";\nimport { chipRecipe } from \"./recipe\";\n\nexport const chip = tv(chipRecipe);\n\nexport type ChipVariants = VariantProps<typeof chip>;\n\ntype GroupContext = { size: ChipVariants[\"size\"] };\nconst ChipGroupContext = React.createContext<GroupContext | null>(null);\n\nfunction RemoveIcon() {\n return (\n <svg viewBox=\"0 0 24 24\" className=\"h-3.5 w-3.5\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" strokeLinecap=\"round\" aria-hidden>\n <path d=\"M18 6 6 18M6 6l12 12\" />\n </svg>\n );\n}\n\ntype ToggleChipProps = Omit<React.ComponentProps<\"button\">, \"value\" | \"defaultValue\"> &\n ChipVariants & {\n /**\n * sm · md (inside `Chip.Group`, the group's size by default).\n * @default \"md\"\n */\n size?: ChipVariants[\"size\"];\n /** Inside `Chip.Group`: the value this chip stands for (required there, ignored alone). */\n value?: string;\n /** Alone: pressed or not (`defaultSelected` uncontrolled), `onSelectedChange` on every press. */\n selected?: boolean;\n /** Alone: pressed at first, uncontrolled. */\n defaultSelected?: boolean;\n /** Alone: called with the new state on every press. */\n onSelectedChange?: (selected: boolean) => void;\n /** A pressable chip (the default); `true` makes it a static chip with a remove button. */\n removable?: false;\n };\n\ntype RemovableChipProps = Omit<React.ComponentProps<\"span\">, \"onSelect\"> &\n ChipVariants & {\n /** A static chip (a chosen tag, an applied filter) with a remove button. */\n removable: true;\n /** The accessible name of the remove button — passed translated, e.g. \"Remove #night\". */\n removeLabel: string;\n /** Runs when the remove button is pressed. */\n onRemove: () => void;\n /** Disables the remove button. */\n disabled?: boolean;\n };\n\nexport type ChipProps = ToggleChipProps | RemovableChipProps;\n\n/** A selectable pill (`selected` / `onSelectedChange`), an item of `Chip.Group` (`value`), or `removable`. */\nfunction ChipBase(props: ChipProps) {\n const group = React.useContext(ChipGroupContext);\n if (props.removable) {\n const { removable: _removable, removeLabel, onRemove, disabled, size, className, children, ...rest } = props;\n const s = chip({ size: size ?? group?.size });\n return (\n <span data-removable=\"\" className={s.base({ className })} {...rest}>\n {children}\n <button type=\"button\" aria-label={removeLabel} title={removeLabel} disabled={disabled} onClick={onRemove} className={s.remove()}>\n <RemoveIcon />\n </button>\n </span>\n );\n }\n const { removable: _removable, value, selected, defaultSelected, onSelectedChange, size, className, ...rest } = props;\n const s = chip({ size: size ?? group?.size });\n if (group) {\n if (value === undefined) throw new Error(\"Chip: a chip inside Chip.Group needs a `value`.\");\n return <ToggleGroupPrimitive.Item value={value} className={s.base({ className })} {...rest} />;\n }\n return (\n <TogglePrimitive.Root\n pressed={selected}\n defaultPressed={defaultSelected}\n onPressedChange={onSelectedChange}\n className={s.base({ className })}\n {...rest}\n />\n );\n}\n\ntype GroupBase = Omit<React.ComponentProps<\"div\">, \"defaultValue\" | \"dir\"> &\n ChipVariants & {\n /**\n * sm · md: the size of every chip of the group.\n * @default \"md\"\n */\n size?: ChipVariants[\"size\"];\n /** The group's accessible name — passed translated (\"Filter by format\"). */\n label?: string;\n /** The arrow keys that move: left / right (horizontal, a row) or up / down (vertical, a column). */\n orientation?: \"horizontal\" | \"vertical\";\n /** Arrow keys wrap from the last chip to the first (default `true`). */\n loop?: boolean;\n /** Disables every chip of the group. */\n disabled?: boolean;\n };\n\nexport type ChipGroupProps =\n | (GroupBase & {\n /** One choice: the chips behave as radios. */\n type: \"single\";\n /** The chosen value (controlled), `\"\"` when none. */\n value?: string;\n /** The value chosen at first, uncontrolled. */\n defaultValue?: string;\n /** Called with the new value on every choice. */\n onValueChange?: (value: string) => void;\n /** Keeps one chip selected: pressing the selected chip does not clear it (default `false`). */\n required?: boolean;\n /** Binds the choice to this search parameter of the URL (`?type=…`): the URL is the state. Without it the state is local — only for an ephemeral choice. */\n routeKey?: string;\n /** The values the parameter may hold (the chips' `value`s). */\n routeValues?: readonly string[];\n })\n | (GroupBase & {\n /** Any number of choices: the chips are pressed buttons. */\n type: \"multiple\";\n /** The chosen values (controlled). */\n value?: string[];\n /** The values chosen at first, uncontrolled. */\n defaultValue?: string[];\n /** Called with the new values on every press. */\n onValueChange?: (value: string[]) => void;\n required?: never;\n routeKey?: never;\n routeValues?: never;\n });\n\n/** Chips that choose together: `type` single · multiple, `value`/`defaultValue` + `onValueChange`. */\nexport function ChipGroup({ label, size, className, children, ...props }: ChipGroupProps) {\n const single = props.type === \"single\" ? props : undefined;\n const routed = useRouteBinding(single?.routeKey, single?.routeValues, { value: single?.value, defaultValue: single?.defaultValue, onValueChange: single?.onValueChange });\n const s = chip({ size });\n const context = React.useMemo(() => ({ size }), [size]);\n const common = { \"aria-label\": label, className: s.group({ className }) };\n let group: React.ReactNode;\n if (props.type === \"single\") {\n const { type: _type, value: _value, defaultValue: _defaultValue, onValueChange: _onValueChange, required, routeKey: _routeKey, routeValues: _routeValues, ...rest } = props;\n group = <SingleGroup {...rest} {...common} value={routed.value} defaultValue={routed.defaultValue} onValueChange={routed.onValueChange} required={required}>{children}</SingleGroup>;\n } else {\n const { type: _type, required: _required, ...rest } = props;\n group = (\n <ToggleGroupPrimitive.Root type=\"multiple\" {...rest} {...common}>\n {children}\n </ToggleGroupPrimitive.Root>\n );\n }\n return <ChipGroupContext.Provider value={context}>{group}</ChipGroupContext.Provider>;\n}\n\n/** Radix's single group, plus `required`: the value is held here so that an empty change can be refused. */\nfunction SingleGroup({\n value,\n defaultValue,\n onValueChange,\n required,\n ...props\n}: Omit<GroupBase, \"size\" | \"label\"> & {\n value?: string;\n defaultValue?: string;\n onValueChange?: (value: string) => void;\n required?: boolean;\n}) {\n const [inner, setInner] = React.useState(defaultValue ?? \"\");\n const current = value ?? inner;\n return (\n <ToggleGroupPrimitive.Root\n type=\"single\"\n value={current}\n onValueChange={(next) => {\n if (required && !next) return;\n if (value === undefined) setInner(next);\n onValueChange?.(next);\n }}\n {...props}\n />\n );\n}\n\n/** `Chip` (selectable, removable) and `Chip.Group` (single · multiple). */\nexport const Chip = Object.assign(ChipBase, { Group: ChipGroup });\n","// The chip's parts and sizes, written once as classes of the Krizaka tokens: the web wears them with `tv(chipRecipe)`,\n// React Native reads the same classes into styles (native/chip.tsx). `data-[state=on]:` is the chosen chip.\nimport { defineRecipe } from \"../recipes/define\";\n\nexport const chipRecipe = defineRecipe({\n slots: {\n group: \"flex flex-wrap items-center gap-2 data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch\",\n base:\n \"inline-flex shrink-0 select-none items-center justify-center gap-1.5 whitespace-nowrap rounded-sm border font-semibold transition-colors \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-40 \" +\n \"border-border-default bg-surface-1 text-fg-secondary hover:border-border-strong hover:text-fg \" +\n \"data-[state=on]:border-accent data-[state=on]:bg-accent-soft data-[state=on]:text-fg\",\n remove:\n \"-mr-1.5 inline-flex h-6 w-6 items-center justify-center rounded-full text-fg-secondary transition-colors hover:bg-surface-3 hover:text-fg \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\",\n },\n variants: {\n size: { sm: { base: \"h-7 px-3 text-xs\" }, md: { base: \"h-9 px-3.5 text-xs\" } },\n },\n defaultVariants: { size: \"md\" },\n});\n","// Client (a Radix radio group, and `Chip`'s context). The tags of a workspace (krizaka-ts#89, `@krizaka/organize`): a name\n// with a colour marker beside it. The marker is a NAME of the closed palette (`MARKERS`: blue · green · amber · red ·\n// violet · gray), mapped to `--kz-tag-<name>` — a dot (≥ 3:1) or Verikora's bookmark ribbon. It sits beside the name and\n// never fills the chip, and the name is always written: the colour is never the only signal.\nimport type { Marker } from \"@krizaka/organize/contract\";\nimport { RadioGroup as RadioPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { Chip, type ChipProps } from \"./chip\";\nimport { TAG_MARKERS } from \"./markers\";\n\n/** The six names of the closed palette (`@krizaka/organize` `MARKERS`; a test keeps them equal). */\nexport const MARKERS: readonly Marker[] = TAG_MARKERS;\nexport type { Marker };\n\n/** The marker's shape: a `dot`, or the `ribbon` (a bookmark: a rectangle with a notch at the bottom). */\nexport type MarkerShape = \"dot\" | \"ribbon\";\n\n/** The CSS custom property the marker reads its colour from: `--kz-tag-<name>`. */\nconst markerVar = (marker: Marker) => `var(--kz-tag-${marker})`;\n\nexport type TagMarkerProps = Omit<React.ComponentProps<\"span\">, \"children\"> & {\n /** A name of the closed palette. */\n marker: Marker;\n /**\n * dot · ribbon.\n * @default \"dot\"\n */\n shape?: MarkerShape;\n};\n\n/** The marker alone, decorative (`aria-hidden`): put the tag's name beside it. */\nexport function TagMarker({ marker, shape = \"dot\", className, style, ...props }: TagMarkerProps) {\n return (\n <span\n aria-hidden\n data-marker={marker}\n data-shape={shape}\n className={cn(\n \"inline-block shrink-0 bg-(--kz-marker) data-[shape=dot]:h-2.5 data-[shape=dot]:w-2.5 data-[shape=dot]:rounded-full\",\n \"data-[shape=ribbon]:h-3.5 data-[shape=ribbon]:w-2.5 data-[shape=ribbon]:[clip-path:polygon(0_0,100%_0,100%_100%,50%_72%,0_100%)]\",\n className,\n )}\n style={{ ...style, [\"--kz-marker\" as string]: markerVar(marker) }}\n {...props}\n />\n );\n}\n\nexport type TagChipProps = ChipProps & {\n /** The tag's marker: a name of the closed palette (`blue · green · amber · red · violet · gray`). */\n marker: Marker;\n /**\n * dot · ribbon.\n * @default \"dot\"\n */\n shape?: MarkerShape;\n};\n\n/**\n * A tag: its marker and its name. Alone a toggle (a filter), inside `Chip.Group` an item, or `removable` (a tag worn by a\n * file) — the behaviour of `Chip`, with the marker before the name.\n */\nexport function TagChip({ marker, shape, children, ...props }: TagChipProps) {\n const content = (\n <>\n <TagMarker marker={marker} shape={shape} />\n {children}\n </>\n );\n return <Chip {...(props as ChipProps)}>{content}</Chip>;\n}\n\nexport type MarkerPickerProps = {\n /** The group's accessible name (\"Colour of the tag\"), passed translated. */\n label: string;\n /** The name of each colour, passed translated: `{ blue: \"Blue\", … }`. The swatches are named, never colour alone. */\n names: Readonly<Record<Marker, string>>;\n /** The colour chosen (controlled). */\n value?: Marker;\n /** The colour chosen at first, uncontrolled. */\n defaultValue?: Marker;\n /** Called with the colour chosen. */\n onValueChange?: (value: Marker) => void;\n /** The colours offered (default: the six). */\n markers?: readonly Marker[];\n /** Not available. */\n disabled?: boolean;\n /** Classes merged on the root. */\n className?: string;\n};\n\n/** Recolours a tag from the closed palette: a radio group of swatches (arrow keys), the chosen one ticked and named. */\nexport function MarkerPicker({ label, names, value, defaultValue, onValueChange, markers = MARKERS, disabled, className }: MarkerPickerProps) {\n return (\n <RadioPrimitive.Root\n aria-label={label}\n value={value}\n defaultValue={defaultValue}\n onValueChange={(next) => onValueChange?.(next as Marker)}\n disabled={disabled}\n orientation=\"horizontal\"\n className={cn(\"flex flex-wrap items-center gap-1.5\", className)}\n >\n {markers.map((marker) => (\n <RadioPrimitive.Item\n key={marker}\n value={marker}\n aria-label={names[marker]}\n title={names[marker]}\n className={cn(\n \"inline-flex h-8 w-8 items-center justify-center rounded-full border border-border-default bg-surface-1 transition-colors\",\n \"hover:border-border-strong focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-40\",\n \"data-[state=checked]:border-(--kz-marker) data-[state=checked]:bg-surface-2\",\n )}\n style={{ [\"--kz-marker\" as string]: markerVar(marker) }}\n >\n <span aria-hidden className=\"relative inline-flex h-4 w-4 items-center justify-center rounded-full bg-(--kz-marker)\">\n <RadioPrimitive.Indicator forceMount className=\"hidden h-full w-full items-center justify-center data-[state=checked]:flex\">\n {/* The tick is the second signal: a shape, not a colour (it reads in the page's text colour on the swatch's ring). */}\n <svg viewBox=\"0 0 24 24\" className=\"h-3 w-3 text-surface-0\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"4\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n </RadioPrimitive.Indicator>\n </span>\n </RadioPrimitive.Item>\n ))}\n </RadioPrimitive.Root>\n );\n}\n","// The six names of the closed palette of tag markers, written once for the platforms that cannot import\n// `@krizaka/organize/contract` (/native adds no dependency). A test keeps them equal to the contract's `MARKERS`.\nexport const TAG_MARKERS = [\"blue\", \"green\", \"amber\", \"red\", \"violet\", \"gray\"] as const;\n"],"mappings":";;;;;;;;;AAGA,SAAS,UAAU,iBAAiB,eAAe,4BAA4B;AAC/E,YAAY,WAAW;AACvB,SAAS,UAA6B;AAEtC,SAAS,uBAAuB;;;ACHzB,IAAM,aAAa,aAAa;AAAA,EACrC,OAAO;AAAA,IACL,OAAO;AAAA,IACP,MACE;AAAA,IAIF,QACE;AAAA,EAEJ;AAAA,EACA,UAAU;AAAA,IACR,MAAM,EAAE,IAAI,EAAE,MAAM,mBAAmB,GAAG,IAAI,EAAE,MAAM,qBAAqB,EAAE;AAAA,EAC/E;AAAA,EACA,iBAAiB,EAAE,MAAM,KAAK;AAChC,CAAC;;;ADAK,cA6CA,YA7CA;AAVC,IAAM,OAAO,GAAG,UAAU;AAKjC,IAAM,mBAAyB,oBAAmC,IAAI;AAEtE,SAAS,aAAa;AACpB,SACE,oBAAC,S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,gBAAAA;AAAA,QAAC,eAAe;AAAA,QAAf;AAAA,UAEC,OAAO;AAAA,UACP,cAAY,MAAM,MAAM;AAAA,UACxB,OAAO,MAAM,MAAM;AAAA,UACnB,WAAW;AAAA,YACT;AAAA,YACA;AAAA,YACA;AAAA,UACF;AAAA,UACA,OAAO,EAAE,CAAC,aAAuB,GAAG,UAAU,MAAM,EAAE;AAAA,UAEtD,0BAAAA,KAAC,UAAK,eAAW,MAAC,WAAU,0FAC1B,0BAAAA,KAAC,eAAe,WAAf,EAAyB,YAAU,MAAC,WAAU,8EAE7C,0BAAAA,KAAC,SAAI,SAAQ,aAAY,WAAU,0BAAyB,MAAK,QAAO,QAAO,gBAAe,aAAY,KAAI,eAAc,SAAQ,gBAAe,SACjJ,0BAAAA,KAAC,UAAK,GAAE,mBAAkB,GAC5B,GACF,GACF;AAAA;AAAA,QAlBK;AAAA,MAmBP,CACD;AAAA;AAAA,EACH;AAEJ;","names":["_removable","size","className","rest","s","jsx","jsxs"]}
1
+ {"version":3,"sources":["../src/chip/chip.tsx","../src/chip/recipe.ts","../src/chip/tag-chip.tsx","../src/chip/markers.ts"],"sourcesContent":["// Client (a context). A chip is a pressable pill: alone it is a Radix Toggle (aria-pressed), inside `Chip.Group` an\n// item of a Radix Toggle Group (roving focus with the arrows; `single` = radio semantics, `multiple` = pressed\n// buttons). A `removable` chip is a static label with its own remove button (two buttons cannot nest).\nimport { Toggle as TogglePrimitive, ToggleGroup as ToggleGroupPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\nimport { tv, type VariantProps } from \"tailwind-variants\";\n\nimport { useRouteBinding } from \"../router\";\nimport { chipRecipe } from \"./recipe\";\n\nexport const chip = tv(chipRecipe);\n\nexport type ChipVariants = VariantProps<typeof chip>;\n\ntype GroupContext = { size: ChipVariants[\"size\"] };\nconst ChipGroupContext = React.createContext<GroupContext | null>(null);\n\nfunction RemoveIcon() {\n return (\n <svg viewBox=\"0 0 24 24\" className=\"h-3.5 w-3.5\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" strokeLinecap=\"round\" aria-hidden>\n <path d=\"M18 6 6 18M6 6l12 12\" />\n </svg>\n );\n}\n\ntype ToggleChipProps = Omit<React.ComponentProps<\"button\">, \"value\" | \"defaultValue\"> &\n ChipVariants & {\n /**\n * sm · md (inside `Chip.Group`, the group's size by default).\n * @default \"md\"\n */\n size?: ChipVariants[\"size\"];\n /** Inside `Chip.Group`: the value this chip stands for (required there, ignored alone). */\n value?: string;\n /** Alone: pressed or not (`defaultSelected` uncontrolled), `onSelectedChange` on every press. */\n selected?: boolean;\n /** Alone: pressed at first, uncontrolled. */\n defaultSelected?: boolean;\n /** Alone: called with the new state on every press. */\n onSelectedChange?: (selected: boolean) => void;\n /** A pressable chip (the default); `true` makes it a static chip with a remove button. */\n removable?: false;\n };\n\ntype RemovableChipProps = Omit<React.ComponentProps<\"span\">, \"onSelect\"> &\n ChipVariants & {\n /** A static chip (a chosen tag, an applied filter) with a remove button. */\n removable: true;\n /** The accessible name of the remove button — passed translated, e.g. \"Remove #night\". */\n removeLabel: string;\n /** Runs when the remove button is pressed. */\n onRemove: () => void;\n /** Disables the remove button. */\n disabled?: boolean;\n };\n\nexport type ChipProps = ToggleChipProps | RemovableChipProps;\n\n/** A selectable pill (`selected` / `onSelectedChange`), an item of `Chip.Group` (`value`), or `removable`. */\nfunction ChipBase(props: ChipProps) {\n const group = React.useContext(ChipGroupContext);\n if (props.removable) {\n const { removable: _removable, removeLabel, onRemove, disabled, size, className, children, ...rest } = props;\n const s = chip({ size: size ?? group?.size });\n return (\n <span data-removable=\"\" className={s.base({ className })} {...rest}>\n {children}\n <button type=\"button\" aria-label={removeLabel} title={removeLabel} disabled={disabled} onClick={onRemove} className={s.remove()}>\n <RemoveIcon />\n </button>\n </span>\n );\n }\n const { removable: _removable, value, selected, defaultSelected, onSelectedChange, size, className, ...rest } = props;\n const s = chip({ size: size ?? group?.size });\n if (group) {\n if (value === undefined) throw new Error(\"Chip: a chip inside Chip.Group needs a `value`.\");\n return <ToggleGroupPrimitive.Item value={value} className={s.base({ className })} {...rest} />;\n }\n return (\n <TogglePrimitive.Root\n pressed={selected}\n defaultPressed={defaultSelected}\n onPressedChange={onSelectedChange}\n className={s.base({ className })}\n {...rest}\n />\n );\n}\n\ntype GroupBase = Omit<React.ComponentProps<\"div\">, \"defaultValue\" | \"dir\"> &\n ChipVariants & {\n /**\n * sm · md: the size of every chip of the group.\n * @default \"md\"\n */\n size?: ChipVariants[\"size\"];\n /** The group's accessible name — passed translated (\"Filter by format\"). */\n label?: string;\n /** The arrow keys that move: left / right (horizontal, a row) or up / down (vertical, a column). */\n orientation?: \"horizontal\" | \"vertical\";\n /** Arrow keys wrap from the last chip to the first (default `true`). */\n loop?: boolean;\n /** Disables every chip of the group. */\n disabled?: boolean;\n };\n\nexport type ChipGroupProps =\n | (GroupBase & {\n /** One choice: the chips behave as radios. */\n type: \"single\";\n /** The chosen value (controlled), `\"\"` when none. */\n value?: string;\n /** The value chosen at first, uncontrolled. */\n defaultValue?: string;\n /** Called with the new value on every choice. */\n onValueChange?: (value: string) => void;\n /** Keeps one chip selected: pressing the selected chip does not clear it (default `false`). */\n required?: boolean;\n /** Binds the choice to this search parameter of the URL (`?type=…`): the URL is the state. Without it the state is local — only for an ephemeral choice. */\n routeKey?: string;\n /** The values the parameter may hold (the chips' `value`s). */\n routeValues?: readonly string[];\n })\n | (GroupBase & {\n /** Any number of choices: the chips are pressed buttons. */\n type: \"multiple\";\n /** The chosen values (controlled). */\n value?: string[];\n /** The values chosen at first, uncontrolled. */\n defaultValue?: string[];\n /** Called with the new values on every press. */\n onValueChange?: (value: string[]) => void;\n required?: never;\n routeKey?: never;\n routeValues?: never;\n });\n\n/** Chips that choose together: `type` single · multiple, `value`/`defaultValue` + `onValueChange`. */\nexport function ChipGroup({ label, size, className, children, ...props }: ChipGroupProps) {\n const single = props.type === \"single\" ? props : undefined;\n const routed = useRouteBinding(single?.routeKey, single?.routeValues, { value: single?.value, defaultValue: single?.defaultValue, onValueChange: single?.onValueChange });\n const s = chip({ size });\n const context = React.useMemo(() => ({ size }), [size]);\n const common = { \"aria-label\": label, className: s.group({ className }) };\n let group: React.ReactNode;\n if (props.type === \"single\") {\n const { type: _type, value: _value, defaultValue: _defaultValue, onValueChange: _onValueChange, required, routeKey: _routeKey, routeValues: _routeValues, ...rest } = props;\n group = <SingleGroup {...rest} {...common} value={routed.value} defaultValue={routed.defaultValue} onValueChange={routed.onValueChange} required={required}>{children}</SingleGroup>;\n } else {\n const { type: _type, required: _required, ...rest } = props;\n group = (\n <ToggleGroupPrimitive.Root type=\"multiple\" {...rest} {...common}>\n {children}\n </ToggleGroupPrimitive.Root>\n );\n }\n return <ChipGroupContext.Provider value={context}>{group}</ChipGroupContext.Provider>;\n}\n\n/** Radix's single group, plus `required`: the value is held here so that an empty change can be refused. */\nfunction SingleGroup({\n value,\n defaultValue,\n onValueChange,\n required,\n ...props\n}: Omit<GroupBase, \"size\" | \"label\"> & {\n value?: string;\n defaultValue?: string;\n onValueChange?: (value: string) => void;\n required?: boolean;\n}) {\n const [inner, setInner] = React.useState(defaultValue ?? \"\");\n const current = value ?? inner;\n return (\n <ToggleGroupPrimitive.Root\n type=\"single\"\n value={current}\n onValueChange={(next) => {\n if (required && !next) return;\n if (value === undefined) setInner(next);\n onValueChange?.(next);\n }}\n {...props}\n />\n );\n}\n\n/** `Chip` (selectable, removable) and `Chip.Group` (single · multiple). */\nexport const Chip = Object.assign(ChipBase, { Group: ChipGroup });\n","// The chip's parts and sizes, written once as classes of the Krizaka tokens: the web wears them with `tv(chipRecipe)`,\n// React Native reads the same classes into styles (native/chip.tsx). `data-[state=on]:` is the chosen chip.\nimport { defineRecipe } from \"../recipes/define\";\n\nexport const chipRecipe = defineRecipe({\n slots: {\n group: \"flex flex-wrap items-center gap-2 data-[orientation=vertical]:flex-col data-[orientation=vertical]:items-stretch\",\n base:\n \"inline-flex shrink-0 select-none items-center justify-center gap-1.5 whitespace-nowrap rounded-sm border font-semibold transition-colors \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-40 \" +\n \"border-border-default bg-surface-1 text-fg-secondary hover:border-border-strong hover:text-fg \" +\n \"data-[state=on]:border-accent data-[state=on]:bg-accent-soft data-[state=on]:text-fg\",\n remove:\n \"-mr-1.5 inline-flex h-6 w-6 items-center justify-center rounded-full text-fg-secondary transition-colors hover:bg-surface-3 hover:text-fg \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\",\n },\n variants: {\n size: { sm: { base: \"h-7 px-3 text-xs\" }, md: { base: \"h-9 px-3.5 text-xs\" } },\n },\n defaultVariants: { size: \"md\" },\n});\n","// Client (a Radix radio group, and `Chip`'s context). The tags of a workspace (krizaka-ts#89, `@krizaka/organize`): a name\n// with a colour marker beside it. The marker is a NAME of the closed palette (`MARKERS`: blue · green · amber · red ·\n// violet · gray), mapped to `--kz-tag-<name>` — a dot (≥ 3:1) or Verikora's bookmark ribbon. It sits beside the name and\n// never fills the chip, and the name is always written: the colour is never the only signal.\nimport type { Marker } from \"@krizaka/organize/contract\";\nimport { RadioGroup as RadioPrimitive } from \"radix-ui\";\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { Chip, type ChipProps } from \"./chip\";\nimport { TAG_MARKERS } from \"./markers\";\n\n/** The six names of the closed palette (`@krizaka/organize` `MARKERS`; a test keeps them equal). */\nexport const MARKERS: readonly Marker[] = TAG_MARKERS;\nexport type { Marker };\n\n/** The marker's shape: a `dot`, or the `ribbon` (a bookmark: a rectangle with a notch at the bottom). */\nexport type MarkerShape = \"dot\" | \"ribbon\";\n\n/** The CSS custom property the marker reads its colour from: `--kz-tag-<name>`. */\nconst markerVar = (marker: Marker) => `var(--kz-tag-${marker})`;\n\nexport type TagMarkerProps = Omit<React.ComponentProps<\"span\">, \"children\"> & {\n /** A name of the closed palette. */\n marker: Marker;\n /**\n * dot · ribbon.\n * @default \"dot\"\n */\n shape?: MarkerShape;\n};\n\n/** The marker alone, decorative (`aria-hidden`): put the tag's name beside it. */\nexport function TagMarker({ marker, shape = \"dot\", className, style, ...props }: TagMarkerProps) {\n return (\n <span\n aria-hidden\n data-marker={marker}\n data-shape={shape}\n className={cn(\n \"inline-block shrink-0 bg-(--kz-marker) data-[shape=dot]:h-2.5 data-[shape=dot]:w-2.5 data-[shape=dot]:rounded-full\",\n \"data-[shape=ribbon]:h-3.5 data-[shape=ribbon]:w-2.5 data-[shape=ribbon]:[clip-path:polygon(0_0,100%_0,100%_100%,50%_72%,0_100%)]\",\n className,\n )}\n style={{ ...style, [\"--kz-marker\" as string]: markerVar(marker) }}\n {...props}\n />\n );\n}\n\nexport type TagChipProps = ChipProps & {\n /** The tag's marker: a name of the closed palette (`blue · green · amber · red · violet · gray`). */\n marker: Marker;\n /**\n * dot · ribbon.\n * @default \"dot\"\n */\n shape?: MarkerShape;\n};\n\n/**\n * A tag: its marker and its name. Alone a toggle (a filter), inside `Chip.Group` an item, or `removable` (a tag worn by a\n * file) — the behaviour of `Chip`, with the marker before the name.\n */\nexport function TagChip({ marker, shape, children, ...props }: TagChipProps) {\n const content = (\n <>\n <TagMarker marker={marker} shape={shape} />\n {children}\n </>\n );\n return <Chip {...(props as ChipProps)}>{content}</Chip>;\n}\n\nexport type MarkerPickerProps = {\n /** The group's accessible name (\"Colour of the tag\"), passed translated. */\n label: string;\n /** The name of each colour, passed translated: `{ blue: \"Blue\", … }`. The swatches are named, never colour alone. */\n names: Readonly<Record<Marker, string>>;\n /** The colour chosen (controlled). */\n value?: Marker;\n /** The colour chosen at first, uncontrolled. */\n defaultValue?: Marker;\n /** Called with the colour chosen. */\n onValueChange?: (value: Marker) => void;\n /** The colours offered (default: the six). */\n markers?: readonly Marker[];\n /** Not available. */\n disabled?: boolean;\n /** Classes merged on the root. */\n className?: string;\n};\n\n/** Recolours a tag from the closed palette: a radio group of swatches (arrow keys), the chosen one ticked and named. */\nexport function MarkerPicker({ label, names, value, defaultValue, onValueChange, markers = MARKERS, disabled, className }: Readonly<MarkerPickerProps>) {\n return (\n <RadioPrimitive.Root\n aria-label={label}\n value={value}\n defaultValue={defaultValue}\n onValueChange={(next) => onValueChange?.(next as Marker)}\n disabled={disabled}\n orientation=\"horizontal\"\n className={cn(\"flex flex-wrap items-center gap-1.5\", className)}\n >\n {markers.map((marker) => (\n <RadioPrimitive.Item\n key={marker}\n value={marker}\n aria-label={names[marker]}\n title={names[marker]}\n className={cn(\n \"inline-flex h-8 w-8 items-center justify-center rounded-full border border-border-default bg-surface-1 transition-colors\",\n \"hover:border-border-strong focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-40\",\n \"data-[state=checked]:border-(--kz-marker) data-[state=checked]:bg-surface-2\",\n )}\n style={{ [\"--kz-marker\" as string]: markerVar(marker) }}\n >\n <span aria-hidden className=\"relative inline-flex h-4 w-4 items-center justify-center rounded-full bg-(--kz-marker)\">\n <RadioPrimitive.Indicator forceMount className=\"hidden h-full w-full items-center justify-center data-[state=checked]:flex\">\n {/* The tick is the second signal: a shape, not a colour (it reads in the page's text colour on the swatch's ring). */}\n <svg viewBox=\"0 0 24 24\" className=\"h-3 w-3 text-surface-0\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"4\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\n <path d=\"M20 6 9 17l-5-5\" />\n </svg>\n </RadioPrimitive.Indicator>\n </span>\n </RadioPrimitive.Item>\n ))}\n </RadioPrimitive.Root>\n );\n}\n","// The six names of the closed palette of tag markers, written once for the platforms that cannot import\n// `@krizaka/organize/contract` (/native adds no dependency). A test keeps them equal to the contract's `MARKERS`.\nexport const TAG_MARKERS = [\"blue\", \"green\", \"amber\", \"red\", \"violet\", \"gray\"] as const;\n"],"mappings":";;;;;;;;;AAGA,SAAS,UAAU,iBAAiB,eAAe,4BAA4B;AAC/E,YAAY,WAAW;AACvB,SAAS,UAA6B;AAEtC,SAAS,uBAAuB;;;ACHzB,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AA,KACH;AAEF,SAAO,gBAAAA,KAAC,QAAM,GAAI,OAAsB,mBAAQ;AAClD;AAsBO,SAAS,aAAa,EAAE,OAAO,OAAO,OAAO,cAAc,eAAe,UAAU,SAAS,UAAU,UAAU,GAAgC;AACtJ,SACE,gBAAAA;AAAA,IAAC,eAAe;AAAA,IAAf;AAAA,MACC,cAAY;AAAA,MACZ;AAAA,MACA;AAAA,MACA,eAAe,CAAC,SAAS,gBAAgB,IAAc;AAAA,MACvD;AAAA,MACA,aAAY;AAAA,MACZ,WAAW,GAAG,uCAAuC,SAAS;AAAA,MAE7D,kBAAQ,IAAI,CAAC,WACZ,gBAAAA;AAAA,QAAC,eAAe;AAAA,QAAf;AAAA,UAEC,OAAO;AAAA,UACP,cAAY,MAAM,MAAM;AAAA,UACxB,OAAO,MAAM,MAAM;AAAA,UACnB,WAAW;AAAA,YACT;AAAA,YACA;AAAA,YACA;AAAA,UACF;AAAA,UACA,OAAO,EAAE,CAAC,aAAuB,GAAG,UAAU,MAAM,EAAE;AAAA,UAEtD,0BAAAA,KAAC,UAAK,eAAW,MAAC,WAAU,0FAC1B,0BAAAA,KAAC,eAAe,WAAf,EAAyB,YAAU,MAAC,WAAU,8EAE7C,0BAAAA,KAAC,SAAI,SAAQ,aAAY,WAAU,0BAAyB,MAAK,QAAO,QAAO,gBAAe,aAAY,KAAI,eAAc,SAAQ,gBAAe,SACjJ,0BAAAA,KAAC,UAAK,GAAE,mBAAkB,GAC5B,GACF,GACF;AAAA;AAAA,QAlBK;AAAA,MAmBP,CACD;AAAA;AAAA,EACH;AAEJ;","names":["_removable","size","className","rest","s","jsx","jsxs"]}
@@ -10,4 +10,4 @@ function HeroStage({ visual, label }) {
10
10
  export {
11
11
  HeroStage
12
12
  };
13
- //# sourceMappingURL=chunk-VUD4IEVJ.js.map
13
+ //# sourceMappingURL=chunk-VZ6ZALIJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/page/hero-stage.tsx"],"sourcesContent":["// Server-safe. The window of a split hero (LandingPage, ProductPage): the product alive, framed as a plate with its caption bar.\nimport type * as React from \"react\";\n\n/** The framed `figure` of a hero's visual; its bar (the caption) is decorative. */\nexport function HeroStage({ visual, label }: Readonly<{ visual: React.ReactNode; label?: React.ReactNode }>) {\n return (\n <figure className=\"kz-tpl-stage\">\n <div className=\"kz-tpl-stage-bar\" aria-hidden>\n {label && <span>{label}</span>}\n </div>\n {visual}\n </figure>\n );\n}\n"],"mappings":";AAMI,SAEc,KAFd;AAFG,SAAS,UAAU,EAAE,QAAQ,MAAM,GAAmE;AAC3G,SACE,qBAAC,YAAO,WAAU,gBAChB;AAAA,wBAAC,SAAI,WAAU,oBAAmB,eAAW,MAC1C,mBAAS,oBAAC,UAAM,iBAAM,GACzB;AAAA,IACC;AAAA,KACH;AAEJ;","names":[]}
@@ -360,11 +360,13 @@ function Mascot({ bird = "owl", mood = "welcome", tone = "brand", size = 96, ani
360
360
  /* @__PURE__ */ jsx("path", { d: g.body, fill: body, ...line }),
361
361
  /* @__PURE__ */ jsx("path", { d: g.belly, fill: LIGHT, opacity: 0.28 }),
362
362
  [wl, wr].map((w, i) => {
363
- const turn = mood === "success" ? i === 0 ? 28 : -28 : mood === "welcome" && i === 1 && !alive ? -20 : 0;
363
+ let turn = 0;
364
+ if (mood === "success") turn = i === 0 ? 28 : -28;
365
+ else if (mood === "welcome" && i === 1 && !alive) turn = -20;
364
366
  return /* @__PURE__ */ jsxs("g", { className: i === 1 ? "kzb-wing kzb-wing-r" : "kzb-wing kzb-wing-l", style: { transformOrigin: `${w.pivot[0]}px ${w.pivot[1]}px`, transform: turn ? `rotate(${turn}deg)` : void 0 }, children: [
365
367
  /* @__PURE__ */ jsx("path", { d: w.d, fill: p.wing, ...line }),
366
368
  /* @__PURE__ */ jsx("path", { d: w.d, fill: SHADE, opacity: 0.16 })
367
- ] }, i);
369
+ ] }, i === 1 ? "right" : "left");
368
370
  }),
369
371
  /* @__PURE__ */ jsx("g", { className: "kzb-look", children: /* @__PURE__ */ jsxs("g", { className: "kzb-head", children: [
370
372
  g.neck && /* @__PURE__ */ jsx("path", { d: g.neck.d, stroke: body, strokeWidth: g.neck.width, strokeLinecap: "round" }),
@@ -404,4 +406,4 @@ export {
404
406
  MASCOT_LOOKS,
405
407
  Mascot
406
408
  };
407
- //# sourceMappingURL=chunk-2DHL7NJW.js.map
409
+ //# sourceMappingURL=chunk-XVRKKYWU.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/mascots/geometry.ts","../src/mascots/life.ts","../src/mascots/mascot.tsx"],"sourcesContent":["/**\n * The Krizaka flock — the geometry of the mascots, drawn by the web `Mascot` (`./mascot.tsx`) and the native one\n * (`../native/mascots.tsx`). Five birds that have carried the Krizaka story since the first site (the sentry falcon,\n * the owl that reads, the developer duck, the flamingo that answers, the carrier pigeon), the lovebird that\n * introduces (\"l'inséparable présente\") and the crane that listens (\"la grue écoute\"), the magpie that keeps the\n * score (\"la pie compte les points\") and the beaver that builds the shop (2026-10, with Folioviv: \"le castor artisan\" — the one figure of the flock without\n * feathers: its paws are drawn as wings, its paddle tail behind it), redrawn on one 120 × 120 grid so that any figure\n * can wear any mood.\n *\n * Colours are roles, never fixed: `brand` (the default) paints a bird in the host's accent (`--kz-accent`,\n * `--kz-accent-2`), so the same falcon is blue on krizaka.com, orange in Sovkora and indigo in Verikora; `own` gives\n * each bird the signature palette it has in the Krizaka story (the brand layer's exception, like the marks). Shades\n * and highlights are black and white at a low opacity over the role, so they hold in both themes.\n */\n\nexport const MASCOT_BIRDS = [\"falcon\", \"owl\", \"duck\", \"flamingo\", \"pigeon\", \"lovebird\", \"crane\", \"magpie\", \"beaver\"] as const;\nexport type MascotBird = (typeof MASCOT_BIRDS)[number];\n\nexport const MASCOT_MOODS = [\"welcome\", \"thinking\", \"success\", \"empty\", \"error\"] as const;\nexport type MascotMood = (typeof MASCOT_MOODS)[number];\n\nexport type MascotTone = \"brand\" | \"own\";\n\ntype Point = readonly [number, number];\n\nexport interface BirdGeometry {\n /** The ground shadow: centre x, y and radii. */\n readonly shadow: readonly [number, number, number, number];\n /** Legs and feet, stroked in the beak colour. */\n readonly legs: readonly string[];\n /** Drawn behind the body (tail, parcel strings). */\n readonly back?: readonly string[];\n readonly body: string;\n readonly belly: string;\n /** Left then right wing, and the point each one turns around. */\n readonly wings: readonly [{ readonly d: string; readonly pivot: Point }, { readonly d: string; readonly pivot: Point }];\n /** A neck, stroked in the body colour with this width (the flamingo). */\n readonly neck?: { readonly d: string; readonly width: number };\n /** The head: a circle. */\n readonly head: { readonly cx: number; readonly cy: number; readonly r: number };\n /** Ear tufts, a crest, a visor's frame: filled with the detail colour. */\n readonly details: readonly string[];\n /** A band behind the eyes (the falcon's visor), in the page's surface. */\n readonly visor?: { readonly x: number; readonly y: number; readonly w: number; readonly h: number };\n /** Glasses (the duck): stroked rings around the eyes. */\n readonly glasses?: boolean;\n readonly beak: string;\n /** The eyes: centres, the radius of the white, the radius of the pupil (no white when `white` is 0). */\n readonly eyes: { readonly at: readonly Point[]; readonly white: number; readonly pupil: number };\n /** The parcel the pigeon carries: its three faces. */\n readonly parcel?: readonly [string, string, string];\n}\n\nconst mirror = (d: string) => d.replace(/(-?\\d+(?:\\.\\d+)?) (-?\\d+(?:\\.\\d+)?)/g, (_, x: string, y: string) => `${120 - Number(x)} ${y}`);\n\nconst falconWing = \"M29 58 C17 68 19 88 37 86 C31 76 31 66 29 58 Z\";\nconst pigeonWing = \"M36 58 C20 50 16 80 38 84 C34 74 34 66 36 58 Z\";\n\nexport const BIRDS: Readonly<Record<MascotBird, BirdGeometry>> = {\n falcon: {\n shadow: [60, 110, 26, 3.5],\n legs: [\"M51 94 L48 108 M44 108 L52 108\", \"M69 94 L72 108 M68 108 L76 108\"],\n body: \"M30 62 C30 42 90 42 90 62 C90 88 78 98 60 98 C42 98 30 88 30 62 Z\",\n belly: \"M41 66 C41 55 79 55 79 66 C79 82 71 90 60 90 C49 90 41 82 41 66 Z\",\n wings: [\n { d: falconWing, pivot: [29, 58] },\n { d: mirror(falconWing), pivot: [91, 58] },\n ],\n head: { cx: 60, cy: 38, r: 22 },\n details: [\"M46 20 L52 10 L56 19 Z\", \"M74 20 L68 10 L64 19 Z\"],\n visor: { x: 41, y: 29, w: 38, h: 13 },\n beak: \"M54 45 L66 45 L60 57 Z\",\n eyes: { at: [[50, 35.5], [70, 35.5]], white: 0, pupil: 3.2 },\n },\n owl: {\n shadow: [60, 110, 24, 3.5],\n legs: [\"M53 100 L51 107 M47 107 L55 107\", \"M67 100 L69 107 M65 107 L73 107\"],\n body: \"M28 52 C28 20 92 20 92 52 C92 86 82 102 60 102 C38 102 28 86 28 52 Z\",\n belly: \"M42 66 C42 52 78 52 78 66 C78 86 72 94 60 94 C48 94 42 86 42 66 Z\",\n wings: [\n { d: \"M29 58 C18 68 20 88 36 90 C32 78 32 68 29 58 Z\", pivot: [29, 58] },\n { d: mirror(\"M29 58 C18 68 20 88 36 90 C32 78 32 68 29 58 Z\"), pivot: [91, 58] },\n ],\n head: { cx: 60, cy: 42, r: 0 },\n details: [\"M31 20 L47 31 L31 41 Z\", \"M89 20 L73 31 L89 41 Z\"],\n beak: \"M55 50 L65 50 L60 59 Z\",\n eyes: { at: [[47, 41], [73, 41]], white: 10, pupil: 4 },\n },\n duck: {\n shadow: [60, 110, 30, 3.5],\n legs: [],\n back: [\"M88 80 C100 76 104 66 96 62 C98 70 94 74 88 74 Z\"],\n body: \"M26 80 C26 62 94 62 94 80 C94 100 82 106 60 106 C38 106 26 100 26 80 Z\",\n belly: \"M38 84 C38 72 82 72 82 84 C82 96 74 101 60 101 C46 101 38 96 38 84 Z\",\n wings: [\n { d: \"M27 74 C14 80 18 98 35 96 C31 88 29 80 27 74 Z\", pivot: [27, 74] },\n { d: mirror(\"M27 74 C14 80 18 98 35 96 C31 88 29 80 27 74 Z\"), pivot: [93, 74] },\n ],\n head: { cx: 60, cy: 42, r: 23 },\n details: [\"M57 20 C54 11 63 8 66 14 C62 13 60 16 61 20 Z\"],\n glasses: true,\n beak: \"M43 51 C43 46 55 45 60 45 C65 45 77 46 77 51 C77 56 66 60 60 60 C54 60 43 56 43 51 Z\",\n eyes: { at: [[51, 37], [69, 37]], white: 0, pupil: 2.6 },\n },\n flamingo: {\n shadow: [60, 110, 20, 3],\n legs: [\"M56 86 L55 97 L58 108 M53 108 L62 108\", \"M65 86 L66 108 M62 108 L71 108\"],\n body: \"M38 70 C38 54 88 54 88 70 C88 86 76 90 62 90 C48 90 38 86 38 70 Z\",\n belly: \"M46 72 C46 63 80 63 80 72 C80 82 72 85 63 85 C54 85 46 82 46 72 Z\",\n wings: [\n { d: \"M42 64 C30 68 32 84 47 84 C43 76 43 70 42 64 Z\", pivot: [42, 64] },\n { d: \"M84 64 C96 68 94 84 79 84 C83 76 83 70 84 64 Z\", pivot: [84, 64] },\n ],\n neck: { d: \"M58 60 C58 42 40 34 46 22\", width: 7 },\n head: { cx: 48, cy: 18, r: 11 },\n details: [],\n beak: \"M38 16 C28 18 29 28 24 33 C33 28 38 23 40 20 Z\",\n eyes: { at: [[46, 15]], white: 3.2, pupil: 1.8 },\n },\n pigeon: {\n shadow: [60, 112, 22, 3],\n legs: [\"M52 94 L51 99 M48 99 L54 99\", \"M68 94 L69 99 M66 99 L72 99\"],\n back: [\"M53 98 L52 103\", \"M67 98 L68 103\", \"M30 68 C16 72 14 62 28 56 C17 57 15 49 32 48 Z\"],\n body: \"M34 64 C34 44 86 44 86 64 C86 86 74 96 60 96 C46 96 34 86 34 64 Z\",\n belly: \"M43 68 C43 57 77 57 77 68 C77 82 70 88 60 88 C50 88 43 82 43 68 Z\",\n wings: [\n { d: pigeonWing, pivot: [36, 58] },\n { d: mirror(pigeonWing), pivot: [84, 58] },\n ],\n head: { cx: 60, cy: 36, r: 19 },\n details: [\"M54 18 C56 12 64 12 66 18 C63 16 57 16 54 18 Z\"],\n beak: \"M55 41 L65 41 L60 50 Z\",\n eyes: { at: [[52, 33], [68, 33]], white: 5, pupil: 2.4 },\n parcel: [\"M60 100 L71 105 L60 110 L49 105 Z\", \"M49 105 L60 110 L60 118 L49 113 Z\", \"M71 105 L60 110 L60 118 L71 113 Z\"],\n },\n /**\n * The lovebird — the inseparable that introduces two people. A plump little parrot: a short tail, a round head\n * with its coloured face (the detail colour), the white eye-rings of the species and a short hooked beak.\n */\n lovebird: {\n shadow: [60, 110, 23, 3.5],\n legs: [\"M53 96 L52 106 M48 106 L56 106\", \"M67 96 L68 106 M64 106 L72 106\"],\n back: [\"M74 90 C82 98 88 104 95 103 C91 98 86 91 82 84 Z\"],\n body: \"M32 66 C32 46 88 46 88 66 C88 90 76 100 60 100 C44 100 32 90 32 66 Z\",\n belly: \"M42 70 C42 59 78 59 78 70 C78 85 70 92 60 92 C50 92 42 85 42 70 Z\",\n wings: [\n { d: \"M33 60 C20 68 22 88 40 90 C35 80 34 70 33 60 Z\", pivot: [33, 60] },\n { d: mirror(\"M33 60 C20 68 22 88 40 90 C35 80 34 70 33 60 Z\"), pivot: [87, 60] },\n ],\n head: { cx: 60, cy: 38, r: 21 },\n details: [\"M43 40 C42 28 51 22 60 22 C69 22 78 28 77 40 C76 50 68 55 60 55 C52 55 44 50 43 40 Z\"],\n beak: \"M55 44 C55 40 65 40 65 44 C65 50 62 54 60 55 C58 54 55 50 55 44 Z\",\n eyes: { at: [[51, 36], [69, 36]], white: 4.6, pupil: 2.4 },\n },\n /**\n * The crane — the one that listens: posed, unhurried, drawn in one line. A tall wader seen in profile, standing still\n * on two straight legs, the neck a single stroke up to a small head with its crown (the detail colour) and a long,\n * straight beak; the folded wings low on its back. The flamingo bends and answers; the crane stands and listens.\n */\n crane: {\n shadow: [62, 110, 20, 3],\n legs: [\"M56 87 L55 108 M51 108 L59 108\", \"M67 87 L68 108 M64 108 L73 108\"],\n body: \"M40 66 C38 54 84 54 86 68 C88 82 76 88 62 88 C48 88 40 80 40 66 Z\",\n belly: \"M48 70 C48 62 78 62 79 70 C80 79 72 84 63 84 C54 84 48 79 48 70 Z\",\n wings: [\n { d: \"M44 62 C33 68 35 82 49 83 C45 76 45 69 44 62 Z\", pivot: [44, 62] },\n { d: \"M82 62 C93 67 96 82 80 84 C83 76 83 69 82 62 Z\", pivot: [82, 62] },\n ],\n neck: { d: \"M52 62 C48 47 52 37 48 26\", width: 6 },\n head: { cx: 47, cy: 21, r: 8.5 },\n details: [\"M41 16.5 C42 11 52 11 53 16.5 C50 14.6 44 14.6 41 16.5 Z\"],\n beak: \"M40.5 18.5 L19 22.5 L40.5 25.5 Z\",\n eyes: { at: [[45.5, 19.5]], white: 2.8, pupil: 1.6 },\n },\n /**\n * The magpie — the one that keeps the score: it counts the points, remembers every trophy and chatters with the\n * league. A sleek pied bird: a dark cap (the detail colour) over a round head, a white belly, a long tail behind it\n * (the detail colour), a short straight beak. It watches no one (that is the falcon): it counts.\n */\n magpie: {\n shadow: [58, 110, 24, 3.5],\n legs: [\"M53 95 L51 107 M47 107 L55 107\", \"M65 95 L67 107 M63 107 L71 107\"],\n back: [\"M72 88 C84 94 96 102 106 108 C104 111 100 112 97 110 C88 104 78 98 68 94 Z\"],\n body: \"M34 64 C34 44 84 44 84 64 C84 88 72 98 58 98 C44 98 34 88 34 64 Z\",\n belly: \"M43 70 C43 60 73 60 73 70 C73 84 67 90 58 90 C49 90 43 84 43 70 Z\",\n wings: [\n { d: \"M35 58 C22 64 22 84 40 88 C36 78 35 68 35 58 Z\", pivot: [35, 58] },\n { d: \"M83 58 C96 64 96 84 78 88 C82 78 83 68 83 58 Z\", pivot: [83, 58] },\n ],\n head: { cx: 58, cy: 36, r: 19 },\n details: [\"M40 34 C40 22 48 16 58 16 C68 16 76 22 76 34 C70 29 64 28 58 28 C52 28 46 29 40 34 Z\"],\n beak: \"M53 42 L63 42 L58 50 Z\",\n eyes: { at: [[50, 35], [66, 35]], white: 4.4, pupil: 2.3 },\n },\n /**\n * The beaver — the artisan that builds the shop, Folioviv's figure (and Canada's). Round and sturdy, sitting up: two\n * round ears and a nose (the detail colour), the two front teeth (the beak colour), small paws drawn as its wings,\n * and its flat paddle tail lying behind it. No feathers, the same moods.\n */\n beaver: {\n shadow: [62, 110, 30, 3.5],\n legs: [\"M50 100 L48 106 M43 106 L53 106\", \"M70 100 L72 106 M67 106 L77 106\"],\n back: [\"M74 94 C86 92 104 96 108 103 C106 110 90 111 76 104 Z\"],\n body: \"M30 72 C30 48 90 48 90 72 C90 96 78 104 60 104 C42 104 30 96 30 72 Z\",\n belly: \"M42 76 C42 64 78 64 78 76 C78 92 70 98 60 98 C50 98 42 92 42 76 Z\",\n wings: [\n { d: \"M38 66 C28 70 30 84 42 84 C44 78 42 72 38 66 Z\", pivot: [38, 66] },\n { d: \"M82 66 C92 70 90 84 78 84 C76 78 78 72 82 66 Z\", pivot: [82, 66] },\n ],\n head: { cx: 60, cy: 40, r: 22 },\n details: [\"M37 30 C33 23 39 16 46 20 C43 23 40 26 37 30 Z\", \"M83 30 C87 23 81 16 74 20 C77 23 80 26 83 30 Z\", \"M55 45 C55 42 65 42 65 45 C65 48 62 49 60 49 C58 49 55 48 55 45 Z\"],\n beak: \"M56 51 H64 V58 C64 59.5 63 60 62 60 H58 C57 60 56 59.5 56 58 Z\",\n eyes: { at: [[51, 36], [69, 36]], white: 4.6, pupil: 2.4 },\n },\n};\n\n/** What a mood adds around the bird: a badge, a thought, an empty tray. */\nexport const MOOD_PARTS = {\n /** The badge of `success` and `error`, top right. */\n badge: { cx: 98, cy: 22, r: 11 },\n check: \"M92.5 22.5 L96.8 26.6 L103.6 18.4\",\n bang: { line: \"M98 15.5 L98 23.5\", dot: [98, 28] as Point },\n /** `thinking`: three dots rising to the right of the head. */\n dots: [\n [88, 26, 2.6],\n [96, 19, 3.2],\n [105, 11, 3.8],\n ] as const,\n /** `empty`: an open tray beside the bird. */\n tray: \"M90 96 L110 96 L107 108 L93 108 Z\",\n /** `success`: two sparkles. */\n sparkles: [\"M16 26 L18 31 L23 33 L18 35 L16 40 L14 35 L9 33 L14 31 Z\", \"M104 52 L105.2 55 L108 56 L105.2 57 L104 60 L102.8 57 L100 56 L102.8 55 Z\"],\n} as const;\n\n/** The happy eye of `success`: an arch. */\nexport const archEye = ([x, y]: Point, r: number) => `M${x - r} ${y + r * 0.45} Q${x} ${y - r * 1.15} ${x + r} ${y + r * 0.45}`;\n/** The lowered lid of `empty`: a line across the eye. */\nexport const lidEye = ([x, y]: Point, r: number) => `M${x - r} ${y + 0.4} L${x + r} ${y + 0.4}`;\n/** The heavy lid of `empty` over an eye with a white: its upper half. */\nexport const upperLid = ([x, y]: Point, r: number) => `M${x - r} ${y} A${r} ${r} 0 0 1 ${x + r} ${y} Z`;\n/** The worried brow of `error`, above one eye (`side` -1 left, 1 right). */\nexport const brow = ([x, y]: Point, r: number, side: number) =>\n `M${x - r * 1.1} ${y - r * 1.25 - (side < 0 ? 0 : r * 0.7)} L${x + r * 1.1} ${y - r * 1.5 - (side < 0 ? r * 0.7 : 0)}`;\n\nexport interface MascotPalette {\n /** Top and bottom of the body gradient. */\n readonly from: string;\n readonly to: string;\n /** Wings and details (tufts, crest). */\n readonly wing: string;\n readonly detail: string;\n /** Beak and feet. */\n readonly beak: string;\n /** The pupils (and the falcon's visor lights). */\n readonly eye: string;\n}\n\n/** The signature palettes of the Krizaka story (`tone=\"own\"`), from the first drawings of each bird. */\nexport const OWN_PALETTES: Readonly<Record<MascotBird, MascotPalette>> = {\n falcon: { from: \"#ff9f00\", to: \"#ff2a00\", wing: \"#d84315\", detail: \"#b4320d\", beak: \"#ffb300\", eye: \"#00c8d4\" },\n owl: { from: \"#a78bfa\", to: \"#6d28d9\", wing: \"#7c3aed\", detail: \"#5b21b6\", beak: \"#fbbf24\", eye: \"#1f2937\" },\n duck: { from: \"#f43f5e\", to: \"#be123c\", wing: \"#db2777\", detail: \"#9f1239\", beak: \"#fbbf24\", eye: \"#1f2937\" },\n flamingo: { from: \"#f9a8d4\", to: \"#db2777\", wing: \"#ec4899\", detail: \"#be185d\", beak: \"#fbbf24\", eye: \"#1f2937\" },\n pigeon: { from: \"#22d3ee\", to: \"#6366f1\", wing: \"#a855f7\", detail: \"#4338ca\", beak: \"#f59e0b\", eye: \"#1f2937\" },\n lovebird: { from: \"#6ee7b7\", to: \"#059669\", wing: \"#047857\", detail: \"#fb7185\", beak: \"#f97316\", eye: \"#1f2937\" },\n // The sandhill crane (grue du Canada): sand-grey plumage, its red crown, dark legs and beak.\n crane: { from: \"#ebe3d6\", to: \"#9c8f80\", wing: \"#7d7266\", detail: \"#dc2626\", beak: \"#44403c\", eye: \"#1f2937\" },\n // The Eurasian magpie (pie bavarde): slate and ink, the cobalt sheen of its wings, a dark beak.\n magpie: { from: \"#64748b\", to: \"#1e293b\", wing: \"#1d4ed8\", detail: \"#0f172a\", beak: \"#334155\", eye: \"#1f2937\" },\n // The North American beaver (castor du Canada): warm brown fur, a dark nose and tail, its orange front teeth.\n beaver: { from: \"#b07a4a\", to: \"#6b4226\", wing: \"#5c3a21\", detail: \"#3f2716\", beak: \"#f59e0b\", eye: \"#1f2937\" },\n};\n\n/** Fixed light and shade, laid at a low opacity over a role (they read on both themes). */\nexport const LIGHT = \"#ffffff\";\nexport const SHADE = \"#000000\";\n/** The parcel's faces (pigeon). */\nexport const PARCEL = [\"#f59e0b\", \"#d97706\", \"#b45309\"] as const;\n","/**\n * The life of the flock — what a bird does when nobody asks it for anything (`Mascot life`): it breathes, blinks in its\n * own rhythm, tilts its head, ruffles a wing, now and then hops — each in character: the falcon watches (a slow scan),\n * the owl reads (a tilt, a slow double blink), the duck builds (quick nods, like typing), the flamingo answers (its neck\n * sways towards you), the pigeon delivers (its head bobs, its parcel swings). CSS only: transform and opacity, no\n * timer, no frame loop; `Flock` adds the moments between birds (a glance, a delivery) by setting `look` and `flying`.\n *\n * Every motion is a keyframe on its own group (hop → bird → look → head), so they add up instead of fighting for one\n * `transform`; each starts at a phase of its own (`--kzb-ph`) so two birds never move together.\n */\nimport type { MascotBird } from \"./geometry\";\n\n/** Where the head turns: the neck's base (the flamingo and the crane sway from their shoulder). */\nexport const HEAD_PIVOT: Readonly<Record<MascotBird, readonly [number, number]>> = {\n falcon: [60, 54],\n owl: [60, 52],\n duck: [60, 60],\n flamingo: [58, 60],\n pigeon: [60, 50],\n lovebird: [60, 52],\n crane: [52, 62],\n magpie: [58, 50],\n beaver: [60, 56],\n};\n\nexport const MASCOT_LOOKS = [\"center\", \"left\", \"right\", \"up\"] as const;\nexport type MascotLook = (typeof MASCOT_LOOKS)[number];\n\ninterface Character {\n /** The head's keyframes over `head` seconds (a pose is a `transform`). */\n head: { seconds: number; frames: string };\n /** The eyes close over `blink` seconds: a single blink or a slow double one. */\n blink: { seconds: number; frames: string };\n /** The wings ruffle over `flutter` seconds, once in the cycle. */\n flutter: { seconds: number; at: number; angle: number };\n /** A hop over `hop` seconds, once in the cycle (0: this bird never hops). */\n hop: { seconds: number; height: number };\n}\n\nconst SINGLE = \"0%,90%,100%{transform:scaleY(1)}94%{transform:scaleY(.08)}\";\nconst DOUBLE = \"0%,80%,100%{transform:scaleY(1)}83%{transform:scaleY(.08)}86%{transform:scaleY(1)}89%{transform:scaleY(.08)}93%{transform:scaleY(1)}\";\n\n/** Poses are written `rotate(deg)` + a little `translate`, around HEAD_PIVOT. */\nconst pose = (rotate: number, x = 0, y = 0) => `transform:translate(${x}px,${y}px) rotate(${rotate}deg)`;\n\nconst DEFAULT: Character = {\n head: { seconds: 10, frames: `0%,100%{${pose(0)}}25%{${pose(-5)}}45%{${pose(-5)}}60%{${pose(4)}}80%{${pose(4)}}` },\n blink: { seconds: 5.2, frames: SINGLE },\n flutter: { seconds: 12, at: 0.7, angle: 12 },\n hop: { seconds: 0, height: 0 },\n};\n\nexport const CHARACTERS: Readonly<Record<MascotBird, Character>> = {\n // Watches: a slow scan left, then right, a look up — it blinks rarely.\n falcon: {\n head: { seconds: 9, frames: `0%,100%{${pose(0)}}12%,30%{${pose(-6, -1)}}38%,56%{${pose(5, 1)}}64%{${pose(0)}}78%,88%{${pose(0, 0, -1.6)}}` },\n blink: { seconds: 7.5, frames: SINGLE },\n flutter: { seconds: 15, at: 0.78, angle: 9 },\n hop: { seconds: 0, height: 0 },\n },\n // Reads: the head tilts to a page, a slow double blink, a small nod at the end of a line.\n owl: {\n head: { seconds: 11, frames: `0%,100%{${pose(0)}}18%,36%{${pose(-10, -1)}}44%{${pose(0)}}52%{${pose(0, 0, 1.6)}}58%{${pose(0)}}68%,82%{${pose(7, 1)}}90%{${pose(0)}}` },\n blink: { seconds: 8, frames: DOUBLE },\n flutter: { seconds: 14, at: 0.66, angle: 10 },\n hop: { seconds: 0, height: 0 },\n },\n // Builds: quick nods in a burst, like typing, and an excited hop when a block fits.\n duck: {\n head: { seconds: 7, frames: `0%,48%,100%{${pose(0)}}51%,59%,67%{${pose(2, 0, 2)}}55%,63%,71%{${pose(0)}}` },\n blink: { seconds: 4.6, frames: SINGLE },\n flutter: { seconds: 10, at: 0.8, angle: 14 },\n hop: { seconds: 13, height: 7 },\n },\n // Answers: the neck sways towards you, the head tilts as it listens, a flick of a wing.\n flamingo: {\n head: { seconds: 8, frames: `0%,100%{${pose(0)}}25%{${pose(-4, -1)}}50%{${pose(3, 1)}}75%{${pose(-2)}}` },\n blink: { seconds: 5.6, frames: SINGLE },\n flutter: { seconds: 11, at: 0.72, angle: 13 },\n hop: { seconds: 0, height: 0 },\n },\n // Delivers: the head bobs as it walks, the wings shake out, a hop on the doorstep.\n pigeon: {\n head: { seconds: 3.1, frames: `0%,30%,100%{${pose(0)}}8%{${pose(-1, -2.2, 1)}}16%{${pose(0, 1.4)}}24%{${pose(0)}}` },\n blink: { seconds: 4.2, frames: SINGLE },\n flutter: { seconds: 9, at: 0.74, angle: 18 },\n hop: { seconds: 11, height: 6 },\n },\n lovebird: { ...DEFAULT, flutter: { seconds: 9, at: 0.7, angle: 16 }, hop: { seconds: 12, height: 6 } },\n crane: { ...DEFAULT, head: { seconds: 14, frames: `0%,100%{${pose(0)}}30%,50%{${pose(-3, -1)}}` }, blink: { seconds: 9, frames: DOUBLE } },\n magpie: { ...DEFAULT, head: { seconds: 6, frames: `0%,100%{${pose(0)}}20%{${pose(-7, -1)}}30%{${pose(6, 1)}}42%{${pose(-4)}}55%{${pose(0)}}` }, hop: { seconds: 10, height: 6 } },\n beaver: { ...DEFAULT, flutter: { seconds: 13, at: 0.75, angle: 8 } },\n};\n\nconst pct = (n: number) => `${+(n * 100).toFixed(1)}%`;\n\n/** The rules every bird shares: they read the bird's own timings from custom properties (`birdLifeCss`). */\nexport function sharedLifeCss(): string {\n return [\n `@keyframes kzb-breathe{0%,100%{transform:scale(1,1)}50%{transform:scale(.996,1.018)}}`,\n `@keyframes kzb-sway{0%,100%{transform:rotate(-2.5deg)}50%{transform:rotate(2.5deg)}}`,\n `@keyframes kzb-flap{from{transform:rotate(calc(var(--kzb-s)*-8deg))}to{transform:rotate(calc(var(--kzb-s)*46deg))}}`,\n `@keyframes kzb-poke{0%{transform:translateY(0)}35%{transform:translateY(-5px)}70%{transform:translateY(0)}85%{transform:translateY(-1px)}100%{transform:translateY(0)}}`,\n `.kzb-hop,.kzb-look,.kzb-head,.kzb-pupil,.kzb-parcel{transform-box:view-box}`,\n `.kzb-hop{transform-origin:60px 108px}.kzb-parcel{transform-origin:60px 99px}.kzb-look,.kzb-head{transform-origin:var(--kzb-pivot,60px 52px)}`,\n `.kzb-wing-l{--kzb-s:1}.kzb-wing-r{--kzb-s:-1}`,\n // Each motion, from the bird's own timings (animation + delay as a fraction of its period, so no two birds move together).\n `[data-animated][data-life] .kzb-bird{animation:kzb-breathe 4.2s ease-in-out infinite;animation-delay:calc(var(--kzb-ph)*-4.2s)}`,\n `[data-animated][data-life] .kzb-blink{animation:var(--kzb-lid-a);animation-delay:calc(var(--kzb-ph)*var(--kzb-lid-d))}`,\n `[data-animated][data-life] .kzb-head{animation:var(--kzb-head-a);animation-delay:calc(var(--kzb-ph)*var(--kzb-head-d))}`,\n `[data-animated][data-life][data-mood] .kzb-wing{animation:var(--kzb-wing-a);animation-delay:calc(var(--kzb-ph)*var(--kzb-wing-d))}`,\n `[data-animated][data-life] .kzb-hop{animation:var(--kzb-hop-a,none);animation-delay:calc(var(--kzb-ph)*var(--kzb-hop-d,0s))}`,\n `[data-animated][data-life] .kzb-parcel{animation:var(--kzb-parcel-a,none);animation-delay:calc(var(--kzb-ph)*-3.2s)}`,\n // Where it looks (set by a flock, or a pointer): the head turns, the pupils follow.\n `[data-animated][data-life] .kzb-look{transition:transform .5s cubic-bezier(.3,.9,.3,1)}`,\n `[data-animated][data-life] .kzb-pupil{transition:transform .4s cubic-bezier(.3,.9,.3,1)}`,\n `[data-animated][data-look=\"left\"] .kzb-look{transform:translateX(-1.5px) rotate(-8deg)}[data-animated][data-look=\"right\"] .kzb-look{transform:translateX(1.5px) rotate(8deg)}[data-animated][data-look=\"up\"] .kzb-look{transform:translateY(-2px) rotate(0)}`,\n `[data-animated][data-look=\"left\"] .kzb-pupil{transform:translateX(-1.6px)}[data-animated][data-look=\"right\"] .kzb-pupil{transform:translateX(1.6px)}[data-animated][data-look=\"up\"] .kzb-pupil{transform:translateY(-1.8px)}`,\n // A poke (a tap): a little jump. In flight (the pigeon's delivery): the wings beat, the body leans into the trip.\n `[data-animated][data-life][data-poked] .kzb-hop{animation:kzb-poke .55s ease-out 1}`,\n `[data-animated][data-life][data-flying] .kzb-wing{animation:kzb-flap .17s ease-in-out infinite alternate;animation-delay:0s}`,\n `[data-animated][data-life][data-flying] .kzb-bird{animation:none;transform:rotate(calc(var(--kzb-bank,0)*7deg))}`,\n `[data-animated][data-life][data-flying] :is(.kzb-head,.kzb-hop){animation:none}`,\n `@media (prefers-reduced-motion:reduce){.kzb-hop,.kzb-head,.kzb-parcel{animation:none!important}}`,\n ].join(\"\\n\");\n}\n\n/** One bird's own timings: its keyframes (named after it) and the custom properties the shared rules read. */\nexport function birdLifeCss(bird: MascotBird): string {\n const c = CHARACTERS[bird];\n const [hx, hy] = HEAD_PIVOT[bird];\n const f = c.flutter;\n const k = (name: string) => `kzb-${bird}-${name}`;\n const flutterFrames = `0%,${pct(f.at)},${pct(f.at + 0.1)},100%{transform:rotate(0)}${pct(f.at + 0.025)}{transform:rotate(calc(var(--kzb-s)*${f.angle}deg))}${pct(f.at + 0.05)}{transform:rotate(calc(var(--kzb-s)*${+(f.angle * 0.2).toFixed(1)}deg))}${pct(f.at + 0.075)}{transform:rotate(calc(var(--kzb-s)*${+(f.angle * 0.9).toFixed(1)}deg))}`;\n const props = [\n `--kzb-pivot:${hx}px ${hy}px`,\n `--kzb-head-a:${k(\"head\")} ${c.head.seconds}s ease-in-out infinite`,\n `--kzb-head-d:-${c.head.seconds}s`,\n `--kzb-lid-a:${k(\"lid\")} ${c.blink.seconds}s ease-in-out infinite`,\n `--kzb-lid-d:-${c.blink.seconds}s`,\n `--kzb-wing-a:${k(\"flutter\")} ${f.seconds}s ease-out infinite`,\n `--kzb-wing-d:-${f.seconds}s`,\n c.hop.seconds ? `--kzb-hop-a:${k(\"leap\")} ${c.hop.seconds}s ease-out infinite` : \"\",\n c.hop.seconds ? `--kzb-hop-d:-${c.hop.seconds}s` : \"\",\n bird === \"pigeon\" ? `--kzb-parcel-a:kzb-sway 3.2s ease-in-out infinite` : \"\",\n ].filter(Boolean);\n return [\n `@keyframes ${k(\"head\")}{${c.head.frames}}`,\n `@keyframes ${k(\"lid\")}{${c.blink.frames}}`,\n `@keyframes ${k(\"flutter\")}{${flutterFrames}}`,\n c.hop.seconds\n ? `@keyframes ${k(\"leap\")}{0%,86%,100%{transform:translateY(0)}90%{transform:translateY(-${c.hop.height}px)}94%{transform:translateY(0)}96.5%{transform:translateY(-${+(c.hop.height * 0.3).toFixed(1)}px)}98.5%{transform:translateY(0)}}`\n : \"\",\n `svg[data-bird=\"${bird}\"]{${props.join(\";\")}}`,\n ]\n .filter(Boolean)\n .join(\"\\n\");\n}\n\n/** The whole stylesheet of the flock's life: what `blocks.css` carries between its `mascot-life` markers (a test keeps them equal). */\nexport function lifeCss(): string {\n return [sharedLifeCss(), ...(Object.keys(CHARACTERS) as MascotBird[]).map(birdLifeCss)].join(\"\\n\");\n}\n\n/** A phase between 0 and 1 from any string (an id), so two instances of one bird do not move together. */\nexport const phaseOf = (seed: string): number => [...seed].reduce((h, c) => (h * 31 + c.charCodeAt(0)) % 997, 7) / 997;\n","// The Krizaka flock on the web: one bird, one mood, drawn from ./geometry in the host's brand colours.\nimport type * as React from \"react\";\nimport { useId } from \"react\";\n\nimport { archEye, BIRDS, brow, lidEye, LIGHT, type MascotBird, type MascotMood, type MascotPalette, type MascotTone, MOOD_PARTS, OWN_PALETTES, PARCEL, SHADE, upperLid } from \"./geometry\";\nimport { type MascotLook, phaseOf } from \"./life\";\n\nconst CSS = `\n.kzb-bird { transform-box: view-box; transform-origin: 60px 108px; }\n.kzb-eye { transform-box: fill-box; transform-origin: center; }\n.kzb-wing { transform-box: view-box; }\n[data-animated] .kzb-bird { animation: kzb-bob 3.6s ease-in-out infinite; }\n[data-animated] .kzb-blink { animation: kzb-blink 5.2s ease-in-out infinite; }\n[data-animated][data-mood=\"welcome\"] .kzb-wing-r { animation: kzb-wave 1.1s ease-in-out infinite alternate; }\n[data-animated][data-mood=\"thinking\"] .kzb-dot { animation: kzb-dot 1.5s ease-in-out infinite; }\n[data-animated][data-mood=\"thinking\"] .kzb-dot:nth-child(2) { animation-delay: .2s; }\n[data-animated][data-mood=\"thinking\"] .kzb-dot:nth-child(3) { animation-delay: .4s; }\n[data-animated][data-mood=\"success\"] .kzb-bird { animation: kzb-hop 1.6s cubic-bezier(.3,1.6,.5,1) 1, kzb-bob 3.6s ease-in-out 1.6s infinite; }\n[data-animated][data-mood=\"success\"] .kzb-badge { animation: kzb-pop .5s cubic-bezier(.3,1.6,.5,1) .3s both; }\n[data-animated][data-mood=\"success\"] .kzb-sparkle { animation: kzb-twinkle 2.4s ease-in-out infinite; }\n[data-animated][data-mood=\"error\"] .kzb-bird { animation: kzb-shake .5s ease-in-out .2s 2, kzb-bob 3.6s ease-in-out 1.2s infinite; }\n[data-animated][data-mood=\"empty\"] .kzb-bird { animation: kzb-sway 5s ease-in-out infinite; }\n.kzb-badge, .kzb-sparkle, .kzb-dot { transform-box: fill-box; transform-origin: center; }\n@keyframes kzb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }\n@keyframes kzb-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }\n@keyframes kzb-wave { from { transform: rotate(-8deg); } to { transform: rotate(-38deg); } }\n@keyframes kzb-dot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }\n@keyframes kzb-hop { 0% { transform: translateY(0); } 30% { transform: translateY(-9px); } 60% { transform: translateY(0); } 100% { transform: translateY(0); } }\n@keyframes kzb-pop { from { transform: scale(0); } to { transform: scale(1); } }\n@keyframes kzb-twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }\n@keyframes kzb-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }\n@keyframes kzb-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2deg); } }\n@media (prefers-reduced-motion: reduce) {\n .kzb-bird, .kzb-blink, .kzb-wing, .kzb-wing-r, .kzb-hop, .kzb-head, .kzb-parcel, .kzb-dot, .kzb-badge, .kzb-sparkle { animation: none !important; }\n .kzb-look, .kzb-pupil { transition: none !important; transform: none !important; }\n}\n`;\n\n/** The host's roles (`tone=\"brand\"`): the accent paints the bird, so it wears the product it is shown in. */\nconst BRAND: MascotPalette = {\n from: \"var(--kz-accent-2, var(--kz-accent))\",\n to: \"var(--kz-accent)\",\n wing: \"var(--kz-accent)\",\n detail: \"var(--kz-accent-2, var(--kz-accent))\",\n beak: \"var(--kz-warning)\",\n eye: \"var(--kz-text-primary)\",\n};\nconst OUTLINE = \"var(--kz-border-strong, color-mix(in srgb, currentColor 35%, transparent))\";\nconst SURFACE = \"var(--kz-surface-0)\";\n\nexport type MascotProps = Omit<React.ComponentProps<\"svg\">, \"children\"> & {\n /** Which bird of the flock: `falcon` (watch, security), `owl` (reading, documents), `duck` (building, code), `flamingo` (answers, support), `pigeon` (delivery, notifications), `lovebird` (introductions, two people who meet), `crane` (listening, a calm moment), `magpie` (the score: points, standings, trophies), `beaver` (the shop: a small business at work). */\n bird?: MascotBird;\n /** What the moment is: `welcome` (onboarding), `thinking` (a long task running), `success` (it is done), `empty` (nothing here yet), `error` (it failed). */\n mood?: MascotMood;\n /** `brand` (default): the host's accent, so the bird wears the product it is in. `own`: the bird's signature colours of the Krizaka story. */\n tone?: MascotTone;\n /** Width and height in pixels. */\n size?: number;\n /** A light idle motion and the mood's gesture. Off with `false`; always off under `prefers-reduced-motion`. */\n animated?: boolean;\n /** An accessible name (the bird becomes an image); without it the mascot is decorative. */\n title?: string;\n /**\n * The bird at ease, in character (mood `welcome`, the default): it breathes, blinks in its own rhythm, tilts its head,\n * ruffles a wing, now and then hops — the falcon watches, the owl reads, the duck builds, the flamingo answers, the\n * pigeon delivers. CSS only, still under `prefers-reduced-motion` and with `animated={false}`.\n */\n life?: boolean;\n /** Where in its cycles the bird starts, 0 to 1 (default: from the instance's id), so two birds never move together. */\n phase?: number;\n /** Where it looks (`life`): `left` and `right` turn the head and the eyes, `up` raises them, `center` rests. */\n look?: MascotLook;\n /** In flight (`life`): the wings beat, the body leans into the trip — the pigeon of a delivery. */\n flying?: boolean;\n /** Which way it leans in flight, -1 (left) to 1 (right). */\n bank?: number;\n /** Whether the pigeon holds its parcel (default `true`): a flock hands it over and the bird flies back light. */\n carrying?: boolean;\n /** A tap or a poke just happened (`life`): a small jump. Set it for a moment, then unset. */\n poked?: boolean;\n};\n\n/**\n * One of the nine Krizaka figures in one mood — for the moments a product speaks to a person: a welcome, a long wait,\n * a success, an empty list, an error. Drawn in the host's brand colours by default (`tone=\"own\"` for the story's).\n */\nexport function Mascot({ bird = \"owl\", mood = \"welcome\", tone = \"brand\", size = 96, animated = true, title, life = false, phase, look, flying, bank, poked, carrying = true, className, style, ...props }: MascotProps) {\n const uid = useId().replace(/[^a-zA-Z0-9_-]/g, \"\");\n const g = BIRDS[bird];\n const alive = life && mood === \"welcome\";\n const ph = phase ?? phaseOf(uid);\n const p = tone === \"own\" ? OWN_PALETTES[bird] : BRAND;\n const body = `url(#kzb-${uid})`;\n const line = { stroke: OUTLINE, strokeWidth: 1.4, strokeLinejoin: \"round\" as const };\n const eyeR = g.eyes.white || g.eyes.pupil * 1.2;\n const eyes = g.eyes.at.map((at, i) => {\n const glance = mood === \"thinking\" ? 1.4 : 0;\n if (mood === \"success\") return <path key={i} d={archEye(at, eyeR * 0.85)} stroke={g.visor ? p.eye : OUTLINE} strokeWidth={2.2} strokeLinecap=\"round\" fill=\"none\" />;\n if (mood === \"empty\" && g.eyes.white > 0)\n return (\n <g key={i}>\n <circle cx={at[0]} cy={at[1]} r={g.eyes.white} fill={LIGHT} {...line} />\n <circle cx={at[0]} cy={at[1] + g.eyes.pupil * 0.7} r={g.eyes.pupil} fill={SHADE} />\n <path d={upperLid(at, g.eyes.white)} fill={p.detail} {...line} />\n </g>\n );\n if (mood === \"empty\") return <path key={i} d={lidEye(at, eyeR * 0.8)} stroke={g.visor ? p.eye : OUTLINE} strokeWidth={2.2} strokeLinecap=\"round\" fill=\"none\" />;\n return (\n <g key={i} className=\"kzb-eye kzb-blink\">\n {g.eyes.white > 0 && <circle cx={at[0]} cy={at[1]} r={g.eyes.white} fill={LIGHT} {...line} />}\n <g className=\"kzb-pupil\">\n <circle cx={at[0] + glance} cy={at[1] - glance} r={g.eyes.pupil} fill={g.visor ? p.eye : SHADE} />\n {g.eyes.white > 0 && <circle cx={at[0] + glance - g.eyes.pupil * 0.35} cy={at[1] - glance - g.eyes.pupil * 0.35} r={g.eyes.pupil * 0.35} fill={LIGHT} />}\n </g>\n </g>\n );\n });\n const [wl, wr] = g.wings;\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 120 120\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n data-bird={bird}\n data-mood={mood}\n data-animated={animated ? \"\" : undefined}\n data-life={alive ? \"\" : undefined}\n data-look={alive && look && look !== \"center\" ? look : undefined}\n data-flying={alive && flying ? \"\" : undefined}\n data-poked={alive && poked ? \"\" : undefined}\n className={className}\n style={alive ? ({ \"--kzb-ph\": ph, \"--kzb-bank\": bank ?? 0, ...style } as React.CSSProperties) : style}\n {...(title ? { role: \"img\", \"aria-label\": title } : { \"aria-hidden\": true })}\n {...props}\n >\n <style>{CSS}</style>\n <defs>\n <linearGradient id={`kzb-${uid}`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0%\" style={{ stopColor: p.from }} />\n <stop offset=\"100%\" style={{ stopColor: p.to }} />\n </linearGradient>\n </defs>\n <ellipse cx={g.shadow[0]} cy={g.shadow[1]} rx={g.shadow[2]} ry={g.shadow[3]} fill={SHADE} opacity={0.14} />\n {mood === \"empty\" && <path d={MOOD_PARTS.tray} stroke={OUTLINE} strokeWidth={1.6} strokeDasharray=\"3 3\" strokeLinejoin=\"round\" />}\n <g className=\"kzb-hop\">\n <g className=\"kzb-bird\">\n {g.legs.map((d) => (\n <path key={d} d={d} stroke={p.beak} strokeWidth={2.6} strokeLinecap=\"round\" />\n ))}\n {g.back?.map((d) => (d.endsWith(\"Z\") ? <path key={d} d={d} fill={p.detail} {...line} /> : <path key={d} d={d} stroke={OUTLINE} strokeWidth={1.4} />))}\n {g.parcel && carrying && (\n <g className=\"kzb-parcel\" {...line}>\n {g.parcel.map((d, i) => (\n <path key={d} d={d} fill={PARCEL[i]} />\n ))}\n </g>\n )}\n <path d={g.body} fill={body} {...line} />\n <path d={g.belly} fill={LIGHT} opacity={0.28} />\n {[wl, wr].map((w, i) => {\n const turn = mood === \"success\" ? (i === 0 ? 28 : -28) : mood === \"welcome\" && i === 1 && !alive ? -20 : 0;\n return (\n <g key={i} className={i === 1 ? \"kzb-wing kzb-wing-r\" : \"kzb-wing kzb-wing-l\"} style={{ transformOrigin: `${w.pivot[0]}px ${w.pivot[1]}px`, transform: turn ? `rotate(${turn}deg)` : undefined }}>\n <path d={w.d} fill={p.wing} {...line} />\n <path d={w.d} fill={SHADE} opacity={0.16} />\n </g>\n );\n })}\n <g className=\"kzb-look\">\n <g className=\"kzb-head\">\n {g.neck && <path d={g.neck.d} stroke={body} strokeWidth={g.neck.width} strokeLinecap=\"round\" />}\n {g.head.r > 0 && <circle cx={g.head.cx} cy={g.head.cy} r={g.head.r} fill={body} {...line} />}\n {g.details.map((d) => (\n <path key={d} d={d} fill={p.detail} {...line} />\n ))}\n {g.visor && <rect x={g.visor.x} y={g.visor.y} width={g.visor.w} height={g.visor.h} rx={4} fill={SURFACE} {...line} />}\n {eyes}\n {g.glasses && (\n <g stroke={OUTLINE} strokeWidth={1.3}>\n {g.eyes.at.map(([x, y]) => (\n <circle key={x} cx={x} cy={y} r={6.5} fill={LIGHT} fillOpacity={0.12} />\n ))}\n <path d={`M${g.eyes.at[0][0] + 6.5} ${g.eyes.at[0][1]} L${g.eyes.at[1][0] - 6.5} ${g.eyes.at[1][1]}`} />\n </g>\n )}\n {mood === \"error\" &&\n g.eyes.at.map((at, i) => <path key={i} d={brow(at, eyeR, g.eyes.at.length === 1 ? 1 : i === 0 ? -1 : 1)} stroke={OUTLINE} strokeWidth={2} strokeLinecap=\"round\" />)}\n <path d={g.beak} fill={p.beak} {...line} />\n </g>\n </g>\n </g>\n </g>\n {mood === \"thinking\" && (\n <g>\n {MOOD_PARTS.dots.map(([cx, cy, r]) => (\n <circle key={cx} className=\"kzb-dot\" cx={cx} cy={cy} r={r} fill=\"var(--kz-text-secondary)\" />\n ))}\n </g>\n )}\n {mood === \"success\" && (\n <>\n {MOOD_PARTS.sparkles.map((d) => (\n <path key={d} className=\"kzb-sparkle\" d={d} fill={p.from} />\n ))}\n <g className=\"kzb-badge\">\n <circle cx={MOOD_PARTS.badge.cx} cy={MOOD_PARTS.badge.cy} r={MOOD_PARTS.badge.r} fill=\"var(--kz-success)\" />\n <path d={MOOD_PARTS.check} stroke={SURFACE} strokeWidth={2.6} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </g>\n </>\n )}\n {mood === \"error\" && (\n <g className=\"kzb-badge\">\n <circle cx={MOOD_PARTS.badge.cx} cy={MOOD_PARTS.badge.cy} r={MOOD_PARTS.badge.r} fill=\"var(--kz-danger)\" />\n <path d={MOOD_PARTS.bang.line} stroke={SURFACE} strokeWidth={2.8} strokeLinecap=\"round\" />\n <circle cx={MOOD_PARTS.bang.dot[0]} cy={MOOD_PARTS.bang.dot[1]} r={1.6} fill={SURFACE} />\n </g>\n )}\n </svg>\n );\n}\n"],"mappings":";;;AAeO,IAAM,eAAe,CAAC,UAAU,OAAO,QAAQ,YAAY,UAAU,YAAY,SAAS,UAAU,QAAQ;AAG5G,IAAM,eAAe,CAAC,WAAW,YAAY,WAAW,SAAS,OAAO;AAmC/E,IAAM,SAAS,CAAC,MAAc,EAAE,QAAQ,wCAAwC,CAAC,GAAG,GAAW,MAAc,GAAG,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE;AAEtI,IAAM,aAAa;AACnB,IAAM,aAAa;AAEZ,IAAM,QAAoD;AAAA,EAC/D,QAAQ;AAAA,IACN,QAAQ,CAAC,IAAI,KAAK,IAAI,GAAG;AAAA,IACzB,MAAM,CAAC,kCAAkC,gCAAgC;AAAA,IACzE,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,MACL,EAAE,GAAG,YAAY,OAAO,CAAC,IAAI,EAAE,EAAE;AAAA,MACjC,EAAE,GAAG,OAAO,UAAU,GAAG,OAAO,CAAC,IAAI,EAAE,EAAE;AAAA,IAC3C;AAAA,IACA,MAAM,EAAE,IAAI,IAAI,IAAI,IAAI,GAAG,GAAG;AAAA,IAC9B,SAAS,CAAC,0BAA0B,wBAAwB;AAAA,IAC5D,OAAO,EAAE,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG;AAAA,IACpC,MAAM;AAAA,I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SAAS;AAAA,WACzF;AAAA;AAAA;AAAA,EAEJ;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/mascots/geometry.ts","../src/mascots/life.ts","../src/mascots/mascot.tsx"],"sourcesContent":["/**\n * The Krizaka flock — the geometry of the mascots, drawn by the web `Mascot` (`./mascot.tsx`) and the native one\n * (`../native/mascots.tsx`). Five birds that have carried the Krizaka story since the first site (the sentry falcon,\n * the owl that reads, the developer duck, the flamingo that answers, the carrier pigeon), the lovebird that\n * introduces (\"l'inséparable présente\") and the crane that listens (\"la grue écoute\"), the magpie that keeps the\n * score (\"la pie compte les points\") and the beaver that builds the shop (2026-10, with Folioviv: \"le castor artisan\" — the one figure of the flock without\n * feathers: its paws are drawn as wings, its paddle tail behind it), redrawn on one 120 × 120 grid so that any figure\n * can wear any mood.\n *\n * Colours are roles, never fixed: `brand` (the default) paints a bird in the host's accent (`--kz-accent`,\n * `--kz-accent-2`), so the same falcon is blue on krizaka.com, orange in Sovkora and indigo in Verikora; `own` gives\n * each bird the signature palette it has in the Krizaka story (the brand layer's exception, like the marks). Shades\n * and highlights are black and white at a low opacity over the role, so they hold in both themes.\n */\n\nexport const MASCOT_BIRDS = [\"falcon\", \"owl\", \"duck\", \"flamingo\", \"pigeon\", \"lovebird\", \"crane\", \"magpie\", \"beaver\"] as const;\nexport type MascotBird = (typeof MASCOT_BIRDS)[number];\n\nexport const MASCOT_MOODS = [\"welcome\", \"thinking\", \"success\", \"empty\", \"error\"] as const;\nexport type MascotMood = (typeof MASCOT_MOODS)[number];\n\nexport type MascotTone = \"brand\" | \"own\";\n\ntype Point = readonly [number, number];\n\nexport interface BirdGeometry {\n /** The ground shadow: centre x, y and radii. */\n readonly shadow: readonly [number, number, number, number];\n /** Legs and feet, stroked in the beak colour. */\n readonly legs: readonly string[];\n /** Drawn behind the body (tail, parcel strings). */\n readonly back?: readonly string[];\n readonly body: string;\n readonly belly: string;\n /** Left then right wing, and the point each one turns around. */\n readonly wings: readonly [{ readonly d: string; readonly pivot: Point }, { readonly d: string; readonly pivot: Point }];\n /** A neck, stroked in the body colour with this width (the flamingo). */\n readonly neck?: { readonly d: string; readonly width: number };\n /** The head: a circle. */\n readonly head: { readonly cx: number; readonly cy: number; readonly r: number };\n /** Ear tufts, a crest, a visor's frame: filled with the detail colour. */\n readonly details: readonly string[];\n /** A band behind the eyes (the falcon's visor), in the page's surface. */\n readonly visor?: { readonly x: number; readonly y: number; readonly w: number; readonly h: number };\n /** Glasses (the duck): stroked rings around the eyes. */\n readonly glasses?: boolean;\n readonly beak: string;\n /** The eyes: centres, the radius of the white, the radius of the pupil (no white when `white` is 0). */\n readonly eyes: { readonly at: readonly Point[]; readonly white: number; readonly pupil: number };\n /** The parcel the pigeon carries: its three faces. */\n readonly parcel?: readonly [string, string, string];\n}\n\nconst mirror = (d: string) => d.replace(/(-?\\d+(?:\\.\\d+)?) (-?\\d+(?:\\.\\d+)?)/g, (_, x: string, y: string) => `${120 - Number(x)} ${y}`);\n\nconst falconWing = \"M29 58 C17 68 19 88 37 86 C31 76 31 66 29 58 Z\";\nconst pigeonWing = \"M36 58 C20 50 16 80 38 84 C34 74 34 66 36 58 Z\";\n\nexport const BIRDS: Readonly<Record<MascotBird, BirdGeometry>> = {\n falcon: {\n shadow: [60, 110, 26, 3.5],\n legs: [\"M51 94 L48 108 M44 108 L52 108\", \"M69 94 L72 108 M68 108 L76 108\"],\n body: \"M30 62 C30 42 90 42 90 62 C90 88 78 98 60 98 C42 98 30 88 30 62 Z\",\n belly: \"M41 66 C41 55 79 55 79 66 C79 82 71 90 60 90 C49 90 41 82 41 66 Z\",\n wings: [\n { d: falconWing, pivot: [29, 58] },\n { d: mirror(falconWing), pivot: [91, 58] },\n ],\n head: { cx: 60, cy: 38, r: 22 },\n details: [\"M46 20 L52 10 L56 19 Z\", \"M74 20 L68 10 L64 19 Z\"],\n visor: { x: 41, y: 29, w: 38, h: 13 },\n beak: \"M54 45 L66 45 L60 57 Z\",\n eyes: { at: [[50, 35.5], [70, 35.5]], white: 0, pupil: 3.2 },\n },\n owl: {\n shadow: [60, 110, 24, 3.5],\n legs: [\"M53 100 L51 107 M47 107 L55 107\", \"M67 100 L69 107 M65 107 L73 107\"],\n body: \"M28 52 C28 20 92 20 92 52 C92 86 82 102 60 102 C38 102 28 86 28 52 Z\",\n belly: \"M42 66 C42 52 78 52 78 66 C78 86 72 94 60 94 C48 94 42 86 42 66 Z\",\n wings: [\n { d: \"M29 58 C18 68 20 88 36 90 C32 78 32 68 29 58 Z\", pivot: [29, 58] },\n { d: mirror(\"M29 58 C18 68 20 88 36 90 C32 78 32 68 29 58 Z\"), pivot: [91, 58] },\n ],\n head: { cx: 60, cy: 42, r: 0 },\n details: [\"M31 20 L47 31 L31 41 Z\", \"M89 20 L73 31 L89 41 Z\"],\n beak: \"M55 50 L65 50 L60 59 Z\",\n eyes: { at: [[47, 41], [73, 41]], white: 10, pupil: 4 },\n },\n duck: {\n shadow: [60, 110, 30, 3.5],\n legs: [],\n back: [\"M88 80 C100 76 104 66 96 62 C98 70 94 74 88 74 Z\"],\n body: \"M26 80 C26 62 94 62 94 80 C94 100 82 106 60 106 C38 106 26 100 26 80 Z\",\n belly: \"M38 84 C38 72 82 72 82 84 C82 96 74 101 60 101 C46 101 38 96 38 84 Z\",\n wings: [\n { d: \"M27 74 C14 80 18 98 35 96 C31 88 29 80 27 74 Z\", pivot: [27, 74] },\n { d: mirror(\"M27 74 C14 80 18 98 35 96 C31 88 29 80 27 74 Z\"), pivot: [93, 74] },\n ],\n head: { cx: 60, cy: 42, r: 23 },\n details: [\"M57 20 C54 11 63 8 66 14 C62 13 60 16 61 20 Z\"],\n glasses: true,\n beak: \"M43 51 C43 46 55 45 60 45 C65 45 77 46 77 51 C77 56 66 60 60 60 C54 60 43 56 43 51 Z\",\n eyes: { at: [[51, 37], [69, 37]], white: 0, pupil: 2.6 },\n },\n flamingo: {\n shadow: [60, 110, 20, 3],\n legs: [\"M56 86 L55 97 L58 108 M53 108 L62 108\", \"M65 86 L66 108 M62 108 L71 108\"],\n body: \"M38 70 C38 54 88 54 88 70 C88 86 76 90 62 90 C48 90 38 86 38 70 Z\",\n belly: \"M46 72 C46 63 80 63 80 72 C80 82 72 85 63 85 C54 85 46 82 46 72 Z\",\n wings: [\n { d: \"M42 64 C30 68 32 84 47 84 C43 76 43 70 42 64 Z\", pivot: [42, 64] },\n { d: \"M84 64 C96 68 94 84 79 84 C83 76 83 70 84 64 Z\", pivot: [84, 64] },\n ],\n neck: { d: \"M58 60 C58 42 40 34 46 22\", width: 7 },\n head: { cx: 48, cy: 18, r: 11 },\n details: [],\n beak: \"M38 16 C28 18 29 28 24 33 C33 28 38 23 40 20 Z\",\n eyes: { at: [[46, 15]], white: 3.2, pupil: 1.8 },\n },\n pigeon: {\n shadow: [60, 112, 22, 3],\n legs: [\"M52 94 L51 99 M48 99 L54 99\", \"M68 94 L69 99 M66 99 L72 99\"],\n back: [\"M53 98 L52 103\", \"M67 98 L68 103\", \"M30 68 C16 72 14 62 28 56 C17 57 15 49 32 48 Z\"],\n body: \"M34 64 C34 44 86 44 86 64 C86 86 74 96 60 96 C46 96 34 86 34 64 Z\",\n belly: \"M43 68 C43 57 77 57 77 68 C77 82 70 88 60 88 C50 88 43 82 43 68 Z\",\n wings: [\n { d: pigeonWing, pivot: [36, 58] },\n { d: mirror(pigeonWing), pivot: [84, 58] },\n ],\n head: { cx: 60, cy: 36, r: 19 },\n details: [\"M54 18 C56 12 64 12 66 18 C63 16 57 16 54 18 Z\"],\n beak: \"M55 41 L65 41 L60 50 Z\",\n eyes: { at: [[52, 33], [68, 33]], white: 5, pupil: 2.4 },\n parcel: [\"M60 100 L71 105 L60 110 L49 105 Z\", \"M49 105 L60 110 L60 118 L49 113 Z\", \"M71 105 L60 110 L60 118 L71 113 Z\"],\n },\n /**\n * The lovebird — the inseparable that introduces two people. A plump little parrot: a short tail, a round head\n * with its coloured face (the detail colour), the white eye-rings of the species and a short hooked beak.\n */\n lovebird: {\n shadow: [60, 110, 23, 3.5],\n legs: [\"M53 96 L52 106 M48 106 L56 106\", \"M67 96 L68 106 M64 106 L72 106\"],\n back: [\"M74 90 C82 98 88 104 95 103 C91 98 86 91 82 84 Z\"],\n body: \"M32 66 C32 46 88 46 88 66 C88 90 76 100 60 100 C44 100 32 90 32 66 Z\",\n belly: \"M42 70 C42 59 78 59 78 70 C78 85 70 92 60 92 C50 92 42 85 42 70 Z\",\n wings: [\n { d: \"M33 60 C20 68 22 88 40 90 C35 80 34 70 33 60 Z\", pivot: [33, 60] },\n { d: mirror(\"M33 60 C20 68 22 88 40 90 C35 80 34 70 33 60 Z\"), pivot: [87, 60] },\n ],\n head: { cx: 60, cy: 38, r: 21 },\n details: [\"M43 40 C42 28 51 22 60 22 C69 22 78 28 77 40 C76 50 68 55 60 55 C52 55 44 50 43 40 Z\"],\n beak: \"M55 44 C55 40 65 40 65 44 C65 50 62 54 60 55 C58 54 55 50 55 44 Z\",\n eyes: { at: [[51, 36], [69, 36]], white: 4.6, pupil: 2.4 },\n },\n /**\n * The crane — the one that listens: posed, unhurried, drawn in one line. A tall wader seen in profile, standing still\n * on two straight legs, the neck a single stroke up to a small head with its crown (the detail colour) and a long,\n * straight beak; the folded wings low on its back. The flamingo bends and answers; the crane stands and listens.\n */\n crane: {\n shadow: [62, 110, 20, 3],\n legs: [\"M56 87 L55 108 M51 108 L59 108\", \"M67 87 L68 108 M64 108 L73 108\"],\n body: \"M40 66 C38 54 84 54 86 68 C88 82 76 88 62 88 C48 88 40 80 40 66 Z\",\n belly: \"M48 70 C48 62 78 62 79 70 C80 79 72 84 63 84 C54 84 48 79 48 70 Z\",\n wings: [\n { d: \"M44 62 C33 68 35 82 49 83 C45 76 45 69 44 62 Z\", pivot: [44, 62] },\n { d: \"M82 62 C93 67 96 82 80 84 C83 76 83 69 82 62 Z\", pivot: [82, 62] },\n ],\n neck: { d: \"M52 62 C48 47 52 37 48 26\", width: 6 },\n head: { cx: 47, cy: 21, r: 8.5 },\n details: [\"M41 16.5 C42 11 52 11 53 16.5 C50 14.6 44 14.6 41 16.5 Z\"],\n beak: \"M40.5 18.5 L19 22.5 L40.5 25.5 Z\",\n eyes: { at: [[45.5, 19.5]], white: 2.8, pupil: 1.6 },\n },\n /**\n * The magpie — the one that keeps the score: it counts the points, remembers every trophy and chatters with the\n * league. A sleek pied bird: a dark cap (the detail colour) over a round head, a white belly, a long tail behind it\n * (the detail colour), a short straight beak. It watches no one (that is the falcon): it counts.\n */\n magpie: {\n shadow: [58, 110, 24, 3.5],\n legs: [\"M53 95 L51 107 M47 107 L55 107\", \"M65 95 L67 107 M63 107 L71 107\"],\n back: [\"M72 88 C84 94 96 102 106 108 C104 111 100 112 97 110 C88 104 78 98 68 94 Z\"],\n body: \"M34 64 C34 44 84 44 84 64 C84 88 72 98 58 98 C44 98 34 88 34 64 Z\",\n belly: \"M43 70 C43 60 73 60 73 70 C73 84 67 90 58 90 C49 90 43 84 43 70 Z\",\n wings: [\n { d: \"M35 58 C22 64 22 84 40 88 C36 78 35 68 35 58 Z\", pivot: [35, 58] },\n { d: \"M83 58 C96 64 96 84 78 88 C82 78 83 68 83 58 Z\", pivot: [83, 58] },\n ],\n head: { cx: 58, cy: 36, r: 19 },\n details: [\"M40 34 C40 22 48 16 58 16 C68 16 76 22 76 34 C70 29 64 28 58 28 C52 28 46 29 40 34 Z\"],\n beak: \"M53 42 L63 42 L58 50 Z\",\n eyes: { at: [[50, 35], [66, 35]], white: 4.4, pupil: 2.3 },\n },\n /**\n * The beaver — the artisan that builds the shop, Folioviv's figure (and Canada's). Round and sturdy, sitting up: two\n * round ears and a nose (the detail colour), the two front teeth (the beak colour), small paws drawn as its wings,\n * and its flat paddle tail lying behind it. No feathers, the same moods.\n */\n beaver: {\n shadow: [62, 110, 30, 3.5],\n legs: [\"M50 100 L48 106 M43 106 L53 106\", \"M70 100 L72 106 M67 106 L77 106\"],\n back: [\"M74 94 C86 92 104 96 108 103 C106 110 90 111 76 104 Z\"],\n body: \"M30 72 C30 48 90 48 90 72 C90 96 78 104 60 104 C42 104 30 96 30 72 Z\",\n belly: \"M42 76 C42 64 78 64 78 76 C78 92 70 98 60 98 C50 98 42 92 42 76 Z\",\n wings: [\n { d: \"M38 66 C28 70 30 84 42 84 C44 78 42 72 38 66 Z\", pivot: [38, 66] },\n { d: \"M82 66 C92 70 90 84 78 84 C76 78 78 72 82 66 Z\", pivot: [82, 66] },\n ],\n head: { cx: 60, cy: 40, r: 22 },\n details: [\"M37 30 C33 23 39 16 46 20 C43 23 40 26 37 30 Z\", \"M83 30 C87 23 81 16 74 20 C77 23 80 26 83 30 Z\", \"M55 45 C55 42 65 42 65 45 C65 48 62 49 60 49 C58 49 55 48 55 45 Z\"],\n beak: \"M56 51 H64 V58 C64 59.5 63 60 62 60 H58 C57 60 56 59.5 56 58 Z\",\n eyes: { at: [[51, 36], [69, 36]], white: 4.6, pupil: 2.4 },\n },\n};\n\n/** What a mood adds around the bird: a badge, a thought, an empty tray. */\nexport const MOOD_PARTS = {\n /** The badge of `success` and `error`, top right. */\n badge: { cx: 98, cy: 22, r: 11 },\n check: \"M92.5 22.5 L96.8 26.6 L103.6 18.4\",\n bang: { line: \"M98 15.5 L98 23.5\", dot: [98, 28] as Point },\n /** `thinking`: three dots rising to the right of the head. */\n dots: [\n [88, 26, 2.6],\n [96, 19, 3.2],\n [105, 11, 3.8],\n ] as const,\n /** `empty`: an open tray beside the bird. */\n tray: \"M90 96 L110 96 L107 108 L93 108 Z\",\n /** `success`: two sparkles. */\n sparkles: [\"M16 26 L18 31 L23 33 L18 35 L16 40 L14 35 L9 33 L14 31 Z\", \"M104 52 L105.2 55 L108 56 L105.2 57 L104 60 L102.8 57 L100 56 L102.8 55 Z\"],\n} as const;\n\n/** The happy eye of `success`: an arch. */\nexport const archEye = ([x, y]: Point, r: number) => `M${x - r} ${y + r * 0.45} Q${x} ${y - r * 1.15} ${x + r} ${y + r * 0.45}`;\n/** The lowered lid of `empty`: a line across the eye. */\nexport const lidEye = ([x, y]: Point, r: number) => `M${x - r} ${y + 0.4} L${x + r} ${y + 0.4}`;\n/** The heavy lid of `empty` over an eye with a white: its upper half. */\nexport const upperLid = ([x, y]: Point, r: number) => `M${x - r} ${y} A${r} ${r} 0 0 1 ${x + r} ${y} Z`;\n/** The worried brow of `error`, above one eye (`side` -1 left, 1 right). */\nexport const brow = ([x, y]: Point, r: number, side: number) =>\n `M${x - r * 1.1} ${y - r * 1.25 - (side < 0 ? 0 : r * 0.7)} L${x + r * 1.1} ${y - r * 1.5 - (side < 0 ? r * 0.7 : 0)}`;\n\nexport interface MascotPalette {\n /** Top and bottom of the body gradient. */\n readonly from: string;\n readonly to: string;\n /** Wings and details (tufts, crest). */\n readonly wing: string;\n readonly detail: string;\n /** Beak and feet. */\n readonly beak: string;\n /** The pupils (and the falcon's visor lights). */\n readonly eye: string;\n}\n\n/** The signature palettes of the Krizaka story (`tone=\"own\"`), from the first drawings of each bird. */\nexport const OWN_PALETTES: Readonly<Record<MascotBird, MascotPalette>> = {\n falcon: { from: \"#ff9f00\", to: \"#ff2a00\", wing: \"#d84315\", detail: \"#b4320d\", beak: \"#ffb300\", eye: \"#00c8d4\" },\n owl: { from: \"#a78bfa\", to: \"#6d28d9\", wing: \"#7c3aed\", detail: \"#5b21b6\", beak: \"#fbbf24\", eye: \"#1f2937\" },\n duck: { from: \"#f43f5e\", to: \"#be123c\", wing: \"#db2777\", detail: \"#9f1239\", beak: \"#fbbf24\", eye: \"#1f2937\" },\n flamingo: { from: \"#f9a8d4\", to: \"#db2777\", wing: \"#ec4899\", detail: \"#be185d\", beak: \"#fbbf24\", eye: \"#1f2937\" },\n pigeon: { from: \"#22d3ee\", to: \"#6366f1\", wing: \"#a855f7\", detail: \"#4338ca\", beak: \"#f59e0b\", eye: \"#1f2937\" },\n lovebird: { from: \"#6ee7b7\", to: \"#059669\", wing: \"#047857\", detail: \"#fb7185\", beak: \"#f97316\", eye: \"#1f2937\" },\n // The sandhill crane (grue du Canada): sand-grey plumage, its red crown, dark legs and beak.\n crane: { from: \"#ebe3d6\", to: \"#9c8f80\", wing: \"#7d7266\", detail: \"#dc2626\", beak: \"#44403c\", eye: \"#1f2937\" },\n // The Eurasian magpie (pie bavarde): slate and ink, the cobalt sheen of its wings, a dark beak.\n magpie: { from: \"#64748b\", to: \"#1e293b\", wing: \"#1d4ed8\", detail: \"#0f172a\", beak: \"#334155\", eye: \"#1f2937\" },\n // The North American beaver (castor du Canada): warm brown fur, a dark nose and tail, its orange front teeth.\n beaver: { from: \"#b07a4a\", to: \"#6b4226\", wing: \"#5c3a21\", detail: \"#3f2716\", beak: \"#f59e0b\", eye: \"#1f2937\" },\n};\n\n/** Fixed light and shade, laid at a low opacity over a role (they read on both themes). */\nexport const LIGHT = \"#ffffff\";\nexport const SHADE = \"#000000\";\n/** The parcel's faces (pigeon). */\nexport const PARCEL = [\"#f59e0b\", \"#d97706\", \"#b45309\"] as const;\n","/**\n * The life of the flock — what a bird does when nobody asks it for anything (`Mascot life`): it breathes, blinks in its\n * own rhythm, tilts its head, ruffles a wing, now and then hops — each in character: the falcon watches (a slow scan),\n * the owl reads (a tilt, a slow double blink), the duck builds (quick nods, like typing), the flamingo answers (its neck\n * sways towards you), the pigeon delivers (its head bobs, its parcel swings). CSS only: transform and opacity, no\n * timer, no frame loop; `Flock` adds the moments between birds (a glance, a delivery) by setting `look` and `flying`.\n *\n * Every motion is a keyframe on its own group (hop → bird → look → head), so they add up instead of fighting for one\n * `transform`; each starts at a phase of its own (`--kzb-ph`) so two birds never move together.\n */\nimport type { MascotBird } from \"./geometry\";\n\n/** Where the head turns: the neck's base (the flamingo and the crane sway from their shoulder). */\nexport const HEAD_PIVOT: Readonly<Record<MascotBird, readonly [number, number]>> = {\n falcon: [60, 54],\n owl: [60, 52],\n duck: [60, 60],\n flamingo: [58, 60],\n pigeon: [60, 50],\n lovebird: [60, 52],\n crane: [52, 62],\n magpie: [58, 50],\n beaver: [60, 56],\n};\n\nexport const MASCOT_LOOKS = [\"center\", \"left\", \"right\", \"up\"] as const;\nexport type MascotLook = (typeof MASCOT_LOOKS)[number];\n\ninterface Character {\n /** The head's keyframes over `head` seconds (a pose is a `transform`). */\n head: { seconds: number; frames: string };\n /** The eyes close over `blink` seconds: a single blink or a slow double one. */\n blink: { seconds: number; frames: string };\n /** The wings ruffle over `flutter` seconds, once in the cycle. */\n flutter: { seconds: number; at: number; angle: number };\n /** A hop over `hop` seconds, once in the cycle (0: this bird never hops). */\n hop: { seconds: number; height: number };\n}\n\nconst SINGLE = \"0%,90%,100%{transform:scaleY(1)}94%{transform:scaleY(.08)}\";\nconst DOUBLE = \"0%,80%,100%{transform:scaleY(1)}83%{transform:scaleY(.08)}86%{transform:scaleY(1)}89%{transform:scaleY(.08)}93%{transform:scaleY(1)}\";\n\n/** Poses are written `rotate(deg)` + a little `translate`, around HEAD_PIVOT. */\nconst pose = (rotate: number, x = 0, y = 0) => `transform:translate(${x}px,${y}px) rotate(${rotate}deg)`;\n\nconst DEFAULT: Character = {\n head: { seconds: 10, frames: `0%,100%{${pose(0)}}25%{${pose(-5)}}45%{${pose(-5)}}60%{${pose(4)}}80%{${pose(4)}}` },\n blink: { seconds: 5.2, frames: SINGLE },\n flutter: { seconds: 12, at: 0.7, angle: 12 },\n hop: { seconds: 0, height: 0 },\n};\n\nexport const CHARACTERS: Readonly<Record<MascotBird, Character>> = {\n // Watches: a slow scan left, then right, a look up — it blinks rarely.\n falcon: {\n head: { seconds: 9, frames: `0%,100%{${pose(0)}}12%,30%{${pose(-6, -1)}}38%,56%{${pose(5, 1)}}64%{${pose(0)}}78%,88%{${pose(0, 0, -1.6)}}` },\n blink: { seconds: 7.5, frames: SINGLE },\n flutter: { seconds: 15, at: 0.78, angle: 9 },\n hop: { seconds: 0, height: 0 },\n },\n // Reads: the head tilts to a page, a slow double blink, a small nod at the end of a line.\n owl: {\n head: { seconds: 11, frames: `0%,100%{${pose(0)}}18%,36%{${pose(-10, -1)}}44%{${pose(0)}}52%{${pose(0, 0, 1.6)}}58%{${pose(0)}}68%,82%{${pose(7, 1)}}90%{${pose(0)}}` },\n blink: { seconds: 8, frames: DOUBLE },\n flutter: { seconds: 14, at: 0.66, angle: 10 },\n hop: { seconds: 0, height: 0 },\n },\n // Builds: quick nods in a burst, like typing, and an excited hop when a block fits.\n duck: {\n head: { seconds: 7, frames: `0%,48%,100%{${pose(0)}}51%,59%,67%{${pose(2, 0, 2)}}55%,63%,71%{${pose(0)}}` },\n blink: { seconds: 4.6, frames: SINGLE },\n flutter: { seconds: 10, at: 0.8, angle: 14 },\n hop: { seconds: 13, height: 7 },\n },\n // Answers: the neck sways towards you, the head tilts as it listens, a flick of a wing.\n flamingo: {\n head: { seconds: 8, frames: `0%,100%{${pose(0)}}25%{${pose(-4, -1)}}50%{${pose(3, 1)}}75%{${pose(-2)}}` },\n blink: { seconds: 5.6, frames: SINGLE },\n flutter: { seconds: 11, at: 0.72, angle: 13 },\n hop: { seconds: 0, height: 0 },\n },\n // Delivers: the head bobs as it walks, the wings shake out, a hop on the doorstep.\n pigeon: {\n head: { seconds: 3.1, frames: `0%,30%,100%{${pose(0)}}8%{${pose(-1, -2.2, 1)}}16%{${pose(0, 1.4)}}24%{${pose(0)}}` },\n blink: { seconds: 4.2, frames: SINGLE },\n flutter: { seconds: 9, at: 0.74, angle: 18 },\n hop: { seconds: 11, height: 6 },\n },\n lovebird: { ...DEFAULT, flutter: { seconds: 9, at: 0.7, angle: 16 }, hop: { seconds: 12, height: 6 } },\n crane: { ...DEFAULT, head: { seconds: 14, frames: `0%,100%{${pose(0)}}30%,50%{${pose(-3, -1)}}` }, blink: { seconds: 9, frames: DOUBLE } },\n magpie: { ...DEFAULT, head: { seconds: 6, frames: `0%,100%{${pose(0)}}20%{${pose(-7, -1)}}30%{${pose(6, 1)}}42%{${pose(-4)}}55%{${pose(0)}}` }, hop: { seconds: 10, height: 6 } },\n beaver: { ...DEFAULT, flutter: { seconds: 13, at: 0.75, angle: 8 } },\n};\n\nconst pct = (n: number) => `${+(n * 100).toFixed(1)}%`;\n\n/** The rules every bird shares: they read the bird's own timings from custom properties (`birdLifeCss`). */\nexport function sharedLifeCss(): string {\n return [\n `@keyframes kzb-breathe{0%,100%{transform:scale(1,1)}50%{transform:scale(.996,1.018)}}`,\n `@keyframes kzb-sway{0%,100%{transform:rotate(-2.5deg)}50%{transform:rotate(2.5deg)}}`,\n `@keyframes kzb-flap{from{transform:rotate(calc(var(--kzb-s)*-8deg))}to{transform:rotate(calc(var(--kzb-s)*46deg))}}`,\n `@keyframes kzb-poke{0%{transform:translateY(0)}35%{transform:translateY(-5px)}70%{transform:translateY(0)}85%{transform:translateY(-1px)}100%{transform:translateY(0)}}`,\n `.kzb-hop,.kzb-look,.kzb-head,.kzb-pupil,.kzb-parcel{transform-box:view-box}`,\n `.kzb-hop{transform-origin:60px 108px}.kzb-parcel{transform-origin:60px 99px}.kzb-look,.kzb-head{transform-origin:var(--kzb-pivot,60px 52px)}`,\n `.kzb-wing-l{--kzb-s:1}.kzb-wing-r{--kzb-s:-1}`,\n // Each motion, from the bird's own timings (animation + delay as a fraction of its period, so no two birds move together).\n `[data-animated][data-life] .kzb-bird{animation:kzb-breathe 4.2s ease-in-out infinite;animation-delay:calc(var(--kzb-ph)*-4.2s)}`,\n `[data-animated][data-life] .kzb-blink{animation:var(--kzb-lid-a);animation-delay:calc(var(--kzb-ph)*var(--kzb-lid-d))}`,\n `[data-animated][data-life] .kzb-head{animation:var(--kzb-head-a);animation-delay:calc(var(--kzb-ph)*var(--kzb-head-d))}`,\n `[data-animated][data-life][data-mood] .kzb-wing{animation:var(--kzb-wing-a);animation-delay:calc(var(--kzb-ph)*var(--kzb-wing-d))}`,\n `[data-animated][data-life] .kzb-hop{animation:var(--kzb-hop-a,none);animation-delay:calc(var(--kzb-ph)*var(--kzb-hop-d,0s))}`,\n `[data-animated][data-life] .kzb-parcel{animation:var(--kzb-parcel-a,none);animation-delay:calc(var(--kzb-ph)*-3.2s)}`,\n // Where it looks (set by a flock, or a pointer): the head turns, the pupils follow.\n `[data-animated][data-life] .kzb-look{transition:transform .5s cubic-bezier(.3,.9,.3,1)}`,\n `[data-animated][data-life] .kzb-pupil{transition:transform .4s cubic-bezier(.3,.9,.3,1)}`,\n `[data-animated][data-look=\"left\"] .kzb-look{transform:translateX(-1.5px) rotate(-8deg)}[data-animated][data-look=\"right\"] .kzb-look{transform:translateX(1.5px) rotate(8deg)}[data-animated][data-look=\"up\"] .kzb-look{transform:translateY(-2px) rotate(0)}`,\n `[data-animated][data-look=\"left\"] .kzb-pupil{transform:translateX(-1.6px)}[data-animated][data-look=\"right\"] .kzb-pupil{transform:translateX(1.6px)}[data-animated][data-look=\"up\"] .kzb-pupil{transform:translateY(-1.8px)}`,\n // A poke (a tap): a little jump. In flight (the pigeon's delivery): the wings beat, the body leans into the trip.\n `[data-animated][data-life][data-poked] .kzb-hop{animation:kzb-poke .55s ease-out 1}`,\n `[data-animated][data-life][data-flying] .kzb-wing{animation:kzb-flap .17s ease-in-out infinite alternate;animation-delay:0s}`,\n `[data-animated][data-life][data-flying] .kzb-bird{animation:none;transform:rotate(calc(var(--kzb-bank,0)*7deg))}`,\n `[data-animated][data-life][data-flying] :is(.kzb-head,.kzb-hop){animation:none}`,\n `@media (prefers-reduced-motion:reduce){.kzb-hop,.kzb-head,.kzb-parcel{animation:none!important}}`,\n ].join(\"\\n\");\n}\n\n/** One bird's own timings: its keyframes (named after it) and the custom properties the shared rules read. */\nexport function birdLifeCss(bird: MascotBird): string {\n const c = CHARACTERS[bird];\n const [hx, hy] = HEAD_PIVOT[bird];\n const f = c.flutter;\n const k = (name: string) => `kzb-${bird}-${name}`;\n const flutterFrames = `0%,${pct(f.at)},${pct(f.at + 0.1)},100%{transform:rotate(0)}${pct(f.at + 0.025)}{transform:rotate(calc(var(--kzb-s)*${f.angle}deg))}${pct(f.at + 0.05)}{transform:rotate(calc(var(--kzb-s)*${+(f.angle * 0.2).toFixed(1)}deg))}${pct(f.at + 0.075)}{transform:rotate(calc(var(--kzb-s)*${+(f.angle * 0.9).toFixed(1)}deg))}`;\n const props = [\n `--kzb-pivot:${hx}px ${hy}px`,\n `--kzb-head-a:${k(\"head\")} ${c.head.seconds}s ease-in-out infinite`,\n `--kzb-head-d:-${c.head.seconds}s`,\n `--kzb-lid-a:${k(\"lid\")} ${c.blink.seconds}s ease-in-out infinite`,\n `--kzb-lid-d:-${c.blink.seconds}s`,\n `--kzb-wing-a:${k(\"flutter\")} ${f.seconds}s ease-out infinite`,\n `--kzb-wing-d:-${f.seconds}s`,\n c.hop.seconds ? `--kzb-hop-a:${k(\"leap\")} ${c.hop.seconds}s ease-out infinite` : \"\",\n c.hop.seconds ? `--kzb-hop-d:-${c.hop.seconds}s` : \"\",\n bird === \"pigeon\" ? `--kzb-parcel-a:kzb-sway 3.2s ease-in-out infinite` : \"\",\n ].filter(Boolean);\n return [\n `@keyframes ${k(\"head\")}{${c.head.frames}}`,\n `@keyframes ${k(\"lid\")}{${c.blink.frames}}`,\n `@keyframes ${k(\"flutter\")}{${flutterFrames}}`,\n c.hop.seconds\n ? `@keyframes ${k(\"leap\")}{0%,86%,100%{transform:translateY(0)}90%{transform:translateY(-${c.hop.height}px)}94%{transform:translateY(0)}96.5%{transform:translateY(-${+(c.hop.height * 0.3).toFixed(1)}px)}98.5%{transform:translateY(0)}}`\n : \"\",\n `svg[data-bird=\"${bird}\"]{${props.join(\";\")}}`,\n ]\n .filter(Boolean)\n .join(\"\\n\");\n}\n\n/** The whole stylesheet of the flock's life: what `blocks.css` carries between its `mascot-life` markers (a test keeps them equal). */\nexport function lifeCss(): string {\n return [sharedLifeCss(), ...(Object.keys(CHARACTERS) as MascotBird[]).map(birdLifeCss)].join(\"\\n\");\n}\n\n/** A phase between 0 and 1 from any string (an id), so two instances of one bird do not move together. */\nexport const phaseOf = (seed: string): number => [...seed].reduce((h, c) => (h * 31 + c.charCodeAt(0)) % 997, 7) / 997;\n","// The Krizaka flock on the web: one bird, one mood, drawn from ./geometry in the host's brand colours.\nimport type * as React from \"react\";\nimport { useId } from \"react\";\n\nimport { archEye, BIRDS, brow, lidEye, LIGHT, type MascotBird, type MascotMood, type MascotPalette, type MascotTone, MOOD_PARTS, OWN_PALETTES, PARCEL, SHADE, upperLid } from \"./geometry\";\nimport { type MascotLook, phaseOf } from \"./life\";\n\nconst CSS = `\n.kzb-bird { transform-box: view-box; transform-origin: 60px 108px; }\n.kzb-eye { transform-box: fill-box; transform-origin: center; }\n.kzb-wing { transform-box: view-box; }\n[data-animated] .kzb-bird { animation: kzb-bob 3.6s ease-in-out infinite; }\n[data-animated] .kzb-blink { animation: kzb-blink 5.2s ease-in-out infinite; }\n[data-animated][data-mood=\"welcome\"] .kzb-wing-r { animation: kzb-wave 1.1s ease-in-out infinite alternate; }\n[data-animated][data-mood=\"thinking\"] .kzb-dot { animation: kzb-dot 1.5s ease-in-out infinite; }\n[data-animated][data-mood=\"thinking\"] .kzb-dot:nth-child(2) { animation-delay: .2s; }\n[data-animated][data-mood=\"thinking\"] .kzb-dot:nth-child(3) { animation-delay: .4s; }\n[data-animated][data-mood=\"success\"] .kzb-bird { animation: kzb-hop 1.6s cubic-bezier(.3,1.6,.5,1) 1, kzb-bob 3.6s ease-in-out 1.6s infinite; }\n[data-animated][data-mood=\"success\"] .kzb-badge { animation: kzb-pop .5s cubic-bezier(.3,1.6,.5,1) .3s both; }\n[data-animated][data-mood=\"success\"] .kzb-sparkle { animation: kzb-twinkle 2.4s ease-in-out infinite; }\n[data-animated][data-mood=\"error\"] .kzb-bird { animation: kzb-shake .5s ease-in-out .2s 2, kzb-bob 3.6s ease-in-out 1.2s infinite; }\n[data-animated][data-mood=\"empty\"] .kzb-bird { animation: kzb-sway 5s ease-in-out infinite; }\n.kzb-badge, .kzb-sparkle, .kzb-dot { transform-box: fill-box; transform-origin: center; }\n@keyframes kzb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }\n@keyframes kzb-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }\n@keyframes kzb-wave { from { transform: rotate(-8deg); } to { transform: rotate(-38deg); } }\n@keyframes kzb-dot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }\n@keyframes kzb-hop { 0% { transform: translateY(0); } 30% { transform: translateY(-9px); } 60% { transform: translateY(0); } 100% { transform: translateY(0); } }\n@keyframes kzb-pop { from { transform: scale(0); } to { transform: scale(1); } }\n@keyframes kzb-twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }\n@keyframes kzb-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }\n@keyframes kzb-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2deg); } }\n@media (prefers-reduced-motion: reduce) {\n .kzb-bird, .kzb-blink, .kzb-wing, .kzb-wing-r, .kzb-hop, .kzb-head, .kzb-parcel, .kzb-dot, .kzb-badge, .kzb-sparkle { animation: none !important; }\n .kzb-look, .kzb-pupil { transition: none !important; transform: none !important; }\n}\n`;\n\n/** The host's roles (`tone=\"brand\"`): the accent paints the bird, so it wears the product it is shown in. */\nconst BRAND: MascotPalette = {\n from: \"var(--kz-accent-2, var(--kz-accent))\",\n to: \"var(--kz-accent)\",\n wing: \"var(--kz-accent)\",\n detail: \"var(--kz-accent-2, var(--kz-accent))\",\n beak: \"var(--kz-warning)\",\n eye: \"var(--kz-text-primary)\",\n};\nconst OUTLINE = \"var(--kz-border-strong, color-mix(in srgb, currentColor 35%, transparent))\";\nconst SURFACE = \"var(--kz-surface-0)\";\n\nexport type MascotProps = Omit<React.ComponentProps<\"svg\">, \"children\"> & {\n /** Which bird of the flock: `falcon` (watch, security), `owl` (reading, documents), `duck` (building, code), `flamingo` (answers, support), `pigeon` (delivery, notifications), `lovebird` (introductions, two people who meet), `crane` (listening, a calm moment), `magpie` (the score: points, standings, trophies), `beaver` (the shop: a small business at work). */\n bird?: MascotBird;\n /** What the moment is: `welcome` (onboarding), `thinking` (a long task running), `success` (it is done), `empty` (nothing here yet), `error` (it failed). */\n mood?: MascotMood;\n /** `brand` (default): the host's accent, so the bird wears the product it is in. `own`: the bird's signature colours of the Krizaka story. */\n tone?: MascotTone;\n /** Width and height in pixels. */\n size?: number;\n /** A light idle motion and the mood's gesture. Off with `false`; always off under `prefers-reduced-motion`. */\n animated?: boolean;\n /** An accessible name (the bird becomes an image); without it the mascot is decorative. */\n title?: string;\n /**\n * The bird at ease, in character (mood `welcome`, the default): it breathes, blinks in its own rhythm, tilts its head,\n * ruffles a wing, now and then hops — the falcon watches, the owl reads, the duck builds, the flamingo answers, the\n * pigeon delivers. CSS only, still under `prefers-reduced-motion` and with `animated={false}`.\n */\n life?: boolean;\n /** Where in its cycles the bird starts, 0 to 1 (default: from the instance's id), so two birds never move together. */\n phase?: number;\n /** Where it looks (`life`): `left` and `right` turn the head and the eyes, `up` raises them, `center` rests. */\n look?: MascotLook;\n /** In flight (`life`): the wings beat, the body leans into the trip — the pigeon of a delivery. */\n flying?: boolean;\n /** Which way it leans in flight, -1 (left) to 1 (right). */\n bank?: number;\n /** Whether the pigeon holds its parcel (default `true`): a flock hands it over and the bird flies back light. */\n carrying?: boolean;\n /** A tap or a poke just happened (`life`): a small jump. Set it for a moment, then unset. */\n poked?: boolean;\n};\n\n/**\n * One of the nine Krizaka figures in one mood — for the moments a product speaks to a person: a welcome, a long wait,\n * a success, an empty list, an error. Drawn in the host's brand colours by default (`tone=\"own\"` for the story's).\n */\nexport function Mascot({ bird = \"owl\", mood = \"welcome\", tone = \"brand\", size = 96, animated = true, title, life = false, phase, look, flying, bank, poked, carrying = true, className, style, ...props }: MascotProps) {\n const uid = useId().replace(/[^a-zA-Z0-9_-]/g, \"\");\n const g = BIRDS[bird];\n const alive = life && mood === \"welcome\";\n const ph = phase ?? phaseOf(uid);\n const p = tone === \"own\" ? OWN_PALETTES[bird] : BRAND;\n const body = `url(#kzb-${uid})`;\n const line = { stroke: OUTLINE, strokeWidth: 1.4, strokeLinejoin: \"round\" as const };\n const eyeR = g.eyes.white || g.eyes.pupil * 1.2;\n const eyes = g.eyes.at.map((at, i) => {\n const glance = mood === \"thinking\" ? 1.4 : 0;\n if (mood === \"success\") return <path key={i} d={archEye(at, eyeR * 0.85)} stroke={g.visor ? p.eye : OUTLINE} strokeWidth={2.2} strokeLinecap=\"round\" fill=\"none\" />;\n if (mood === \"empty\" && g.eyes.white > 0)\n return (\n <g key={i}>\n <circle cx={at[0]} cy={at[1]} r={g.eyes.white} fill={LIGHT} {...line} />\n <circle cx={at[0]} cy={at[1] + g.eyes.pupil * 0.7} r={g.eyes.pupil} fill={SHADE} />\n <path d={upperLid(at, g.eyes.white)} fill={p.detail} {...line} />\n </g>\n );\n if (mood === \"empty\") return <path key={i} d={lidEye(at, eyeR * 0.8)} stroke={g.visor ? p.eye : OUTLINE} strokeWidth={2.2} strokeLinecap=\"round\" fill=\"none\" />;\n return (\n <g key={i} className=\"kzb-eye kzb-blink\">\n {g.eyes.white > 0 && <circle cx={at[0]} cy={at[1]} r={g.eyes.white} fill={LIGHT} {...line} />}\n <g className=\"kzb-pupil\">\n <circle cx={at[0] + glance} cy={at[1] - glance} r={g.eyes.pupil} fill={g.visor ? p.eye : SHADE} />\n {g.eyes.white > 0 && <circle cx={at[0] + glance - g.eyes.pupil * 0.35} cy={at[1] - glance - g.eyes.pupil * 0.35} r={g.eyes.pupil * 0.35} fill={LIGHT} />}\n </g>\n </g>\n );\n });\n const [wl, wr] = g.wings;\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 120 120\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n data-bird={bird}\n data-mood={mood}\n data-animated={animated ? \"\" : undefined}\n data-life={alive ? \"\" : undefined}\n data-look={alive && look && look !== \"center\" ? look : undefined}\n data-flying={alive && flying ? \"\" : undefined}\n data-poked={alive && poked ? \"\" : undefined}\n className={className}\n style={alive ? ({ \"--kzb-ph\": ph, \"--kzb-bank\": bank ?? 0, ...style } as React.CSSProperties) : style}\n {...(title ? { role: \"img\", \"aria-label\": title } : { \"aria-hidden\": true })}\n {...props}\n >\n <style>{CSS}</style>\n <defs>\n <linearGradient id={`kzb-${uid}`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0%\" style={{ stopColor: p.from }} />\n <stop offset=\"100%\" style={{ stopColor: p.to }} />\n </linearGradient>\n </defs>\n <ellipse cx={g.shadow[0]} cy={g.shadow[1]} rx={g.shadow[2]} ry={g.shadow[3]} fill={SHADE} opacity={0.14} />\n {mood === \"empty\" && <path d={MOOD_PARTS.tray} stroke={OUTLINE} strokeWidth={1.6} strokeDasharray=\"3 3\" strokeLinejoin=\"round\" />}\n <g className=\"kzb-hop\">\n <g className=\"kzb-bird\">\n {g.legs.map((d) => (\n <path key={d} d={d} stroke={p.beak} strokeWidth={2.6} strokeLinecap=\"round\" />\n ))}\n {g.back?.map((d) => (d.endsWith(\"Z\") ? <path key={d} d={d} fill={p.detail} {...line} /> : <path key={d} d={d} stroke={OUTLINE} strokeWidth={1.4} />))}\n {g.parcel && carrying && (\n <g className=\"kzb-parcel\" {...line}>\n {g.parcel.map((d, i) => (\n <path key={d} d={d} fill={PARCEL[i]} />\n ))}\n </g>\n )}\n <path d={g.body} fill={body} {...line} />\n <path d={g.belly} fill={LIGHT} opacity={0.28} />\n {[wl, wr].map((w, i) => {\n let turn = 0;\n if (mood === \"success\") turn = i === 0 ? 28 : -28;\n else if (mood === \"welcome\" && i === 1 && !alive) turn = -20;\n return (\n <g key={i === 1 ? \"right\" : \"left\"} className={i === 1 ? \"kzb-wing kzb-wing-r\" : \"kzb-wing kzb-wing-l\"} style={{ transformOrigin: `${w.pivot[0]}px ${w.pivot[1]}px`, transform: turn ? `rotate(${turn}deg)` : undefined }}>\n <path d={w.d} fill={p.wing} {...line} />\n <path d={w.d} fill={SHADE} opacity={0.16} />\n </g>\n );\n })}\n <g className=\"kzb-look\">\n <g className=\"kzb-head\">\n {g.neck && <path d={g.neck.d} stroke={body} strokeWidth={g.neck.width} strokeLinecap=\"round\" />}\n {g.head.r > 0 && <circle cx={g.head.cx} cy={g.head.cy} r={g.head.r} fill={body} {...line} />}\n {g.details.map((d) => (\n <path key={d} d={d} fill={p.detail} {...line} />\n ))}\n {g.visor && <rect x={g.visor.x} y={g.visor.y} width={g.visor.w} height={g.visor.h} rx={4} fill={SURFACE} {...line} />}\n {eyes}\n {g.glasses && (\n <g stroke={OUTLINE} strokeWidth={1.3}>\n {g.eyes.at.map(([x, y]) => (\n <circle key={x} cx={x} cy={y} r={6.5} fill={LIGHT} fillOpacity={0.12} />\n ))}\n <path d={`M${g.eyes.at[0][0] + 6.5} ${g.eyes.at[0][1]} L${g.eyes.at[1][0] - 6.5} ${g.eyes.at[1][1]}`} />\n </g>\n )}\n {mood === \"error\" &&\n g.eyes.at.map((at, i) => <path key={i} d={brow(at, eyeR, g.eyes.at.length === 1 ? 1 : i === 0 ? -1 : 1)} stroke={OUTLINE} strokeWidth={2} strokeLinecap=\"round\" />)}\n <path d={g.beak} fill={p.beak} {...line} />\n </g>\n </g>\n </g>\n </g>\n {mood === \"thinking\" && (\n <g>\n {MOOD_PARTS.dots.map(([cx, cy, r]) => (\n <circle key={cx} className=\"kzb-dot\" cx={cx} cy={cy} r={r} fill=\"var(--kz-text-secondary)\" />\n ))}\n </g>\n )}\n {mood === \"success\" && (\n <>\n {MOOD_PARTS.sparkles.map((d) => (\n <path key={d} className=\"kzb-sparkle\" d={d} fill={p.from} />\n ))}\n <g className=\"kzb-badge\">\n <circle cx={MOOD_PARTS.badge.cx} cy={MOOD_PARTS.badge.cy} r={MOOD_PARTS.badge.r} fill=\"var(--kz-success)\" />\n <path d={MOOD_PARTS.check} stroke={SURFACE} strokeWidth={2.6} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </g>\n </>\n )}\n {mood === \"error\" && (\n <g className=\"kzb-badge\">\n <circle cx={MOOD_PARTS.badge.cx} cy={MOOD_PARTS.badge.cy} r={MOOD_PARTS.badge.r} fill=\"var(--kz-danger)\" />\n <path d={MOOD_PARTS.bang.line} stroke={SURFACE} strokeWidth={2.8} strokeLinecap=\"round\" />\n <circle cx={MOOD_PARTS.bang.dot[0]} cy={MOOD_PARTS.bang.dot[1]} r={1.6} fill={SURFACE} />\n </g>\n )}\n </svg>\n );\n}\n"],"mappings":";;;AAeO,IAAM,eAAe,CAAC,UAAU,OAAO,QAAQ,YAAY,UAAU,YAAY,SAAS,UAAU,QAAQ;AAG5G,IAAM,eAAe,CAAC,WAAW,YAAY,WAAW,SAAS,OAAO;AAmC/E,IAAM,SAAS,CAAC,MAAc,EAAE,QAAQ,wCAAwC,CAAC,GAAG,GAAW,MAAc,GAAG,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE;AAEtI,IAAM,aAAa;AACnB,IAAM,aAAa;AAEZ,IAAM,QAAoD;AAAA,EAC/D,QAAQ;AAAA,IACN,QAAQ,CAAC,IAAI,KAAK,IAAI,GAAG;AAAA,IACzB,MAAM,CAAC,kCAAkC,gCAAgC;AAAA,IACzE,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,MACL,EAAE,GAAG,YAAY,OAAO,CAAC,IAAI,EAAE,EAAE;AAAA,MACjC,EAAE,GAAG,OAAO,UAAU,GAAG,OAAO,CAAC,IAAI,EAAE,EAAE;AAAA,IAC3C;AAAA,IACA,MAAM,EAAE,IAAI,IAAI,IAAI,IAAI,GAAG,GAAG;AAAA,IAC9B,SAAS,CAAC,0BAA0B,wBAAwB;AAAA,IAC5D,OAAO,EAAE,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG;AAAA,IACpC,MAAM;AAAA,IACN,MAAM,EAAE,IAAI,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,OAAO,GAAG,OAAO,IAAI;AAAA,EAC7D;AAAA,EACA,KAAK;AAAA,IACH,QAAQ,CAAC,IAAI,KAAK,IAAI,GAAG;A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k-CDNOT2KR.js.map
310
+ //# sourceMappingURL=chunk-YTYNKMNS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/marks/folioviv-geometry.ts","../src/marks/shared.ts","../src/marks/frame.tsx","../src/marks/FoliovivLogo.tsx","../src/marks/InkMark.tsx","../src/marks/krizaka-geometry.ts","../src/marks/KrizakaLogo.tsx","../src/marks/sovkora-geometry.ts","../src/marks/SovkoraLogo.tsx","../src/marks/verikora-geometry.ts","../src/marks/VerikoraLogo.tsx","../src/marks/ProductLogo.tsx"],"sourcesContent":["import { marks } from \"@krizaka/tokens/native\";\n\n/**\n * The Folioviv mark's geometry — drawn by the web mark (FoliovivLogo) and the native one (FoliovivMark). The family's\n * grammar (packages/tokens/BRAND.md, \"Marks\"): 400×400 view box, dashed orbit and ring, a bold solid emblem, a lit core;\n * below 48 px the view box crops to the emblem.\n *\n * The emblem is **the cut log** (2026-10-17): a log seen end-on, its year rings in light, cut at 45° by the beaver —\n * the cut is the Krizaka chamfer, its fresh face in copper — and a copper heart that breathes: a shop built ring by\n * ring, year after year. Forest and copper stay **apart** (blended they turn brown): they are the two stops of the\n * brand's mark gradient (`marks.folioviv` of @krizaka/tokens), each ≥ 3:1 on the page surfaces of both themes.\n *\n * Literal geometry (no clip, so web and native draw the same thing): the log is a circle r 96 centred (194, 206) — set\n * off the centre so the cut log sits optically centred — minus the segment beyond the 45° chord at 70 from its centre;\n * the copper face is the band between that chord and a parallel one at 58, bounded by the circle.\n */\nconst forest = marks.folioviv[0]![1];\n/** The copper end: the cut, the heart, the halo and its breath. */\nconst copper = marks.folioviv[marks.folioviv.length - 1]![1];\n\nexport const FOLIOVIV = {\n viewBox: \"0 0 400 400\",\n croppedViewBox: \"80 80 240 240\",\n center: 200,\n forest,\n copper,\n log: \"M197 110 L290 203 A96 96 0 1 1 197 110 Z\",\n /** The fresh face of the cut: a copper band along the chord. */\n cut: \"M197 110 L290 203 A96 96 0 0 1 289.1 219.1 L180.9 110.9 A96 96 0 0 1 197 110 Z\",\n /** The year rings, in light, inside the band. */\n rings: { cx: 194, cy: 206, r: [52, 28], width: 7, opacity: 0.42 },\n heart: { cx: 194, cy: 206, r: 16, inner: 5.4 },\n highlight: \"#fff7ed\",\n gradient: { x1: 110, y1: 300, x2: 290, y2: 100, stops: marks.folioviv },\n /** A coin: one node on the orbit, that turns with it. */\n node: { r: 9, at: [200, 40] as const },\n glow: { color: copper, opacity: 0.16 },\n pulse: { color: copper, low: 0.3, high: 0.65 },\n motion: { spin: 32, breath: 3.8 },\n orbit: { r: 160, dash: \"8 8\", width: 1.5 },\n ring: { r: 134, width: 1 },\n} as const;\n","import { useId } from \"react\";\n\nexport interface MarkProps {\n /** Width and height in pixels. */\n size?: number;\n /** Orbit, pulse and shimmer. Off with `false`; always off under prefers-reduced-motion. */\n animated?: boolean;\n /** An accessible name (the mark becomes an image); without it the mark is decorative. */\n title?: string;\n className?: string;\n}\n\n/** A neutral stroke: the host's `--kz-*` token when it has one, else the text colour at a low opacity. */\nexport const neutral = (token: string, percent: number) => `var(${token}, color-mix(in srgb, currentColor ${percent}%, transparent))`;\n\n/** Ids unique per instance, so several marks on a page never share a gradient. */\nexport function useIds<K extends string>(prefix: string, keys: readonly K[]): Record<K, string> {\n const uid = useId().replace(/[^a-zA-Z0-9_-]/g, \"\");\n return Object.fromEntries(keys.map((k) => [k, `${prefix}-${k}-${uid}`])) as Record<K, string>;\n}\n\nexport const a11y = (title?: string) => (title ? { role: \"img\" as const, \"aria-label\": title } : { \"aria-hidden\": true as const });\n\n/** `#rrggbb` + an opacity → `#rrggbbaa` (a brand colour in a CSS shadow). */\nexport const withAlpha = (hex: string, opacity: number) => `${hex}${Math.round(opacity * 255).toString(16).padStart(2, \"0\")}`;\n\n/**\n * The family's motion (web), for a mark whose classes start with `prefix`: `<prefix>-orbit` turns the dashed orbit and\n * its node, `<prefix>-core` makes the lit core breathe (a shadow in the brand colour). Still under prefers-reduced-motion.\n */\nexport const familyMotion = (prefix: string, { spin, breath, color, low, high }: { spin: number; breath: number; color: string; low: number; high: number }) => `\n.${prefix}-orbit { transform-origin: 200px 200px; animation: ${prefix}-orbit ${spin}s linear infinite; }\n.${prefix}-core { transform-box: fill-box; transform-origin: center; animation: ${prefix}-core ${breath}s ease-in-out infinite; }\n@keyframes ${prefix}-orbit { to { transform: rotate(360deg); } }\n@keyframes ${prefix}-core {\n 0%, 100% { filter: drop-shadow(0 0 6px ${withAlpha(color, low)}); opacity: .92; }\n 50% { filter: drop-shadow(0 0 16px ${withAlpha(color, high)}); opacity: 1; }\n}\n@media (prefers-reduced-motion: reduce) { .${prefix}-orbit, .${prefix}-core { animation: none; } }\n`;\n","import type { ReactNode } from \"react\";\n\nimport { a11y, type MarkProps, neutral } from \"./shared\";\n\n/** What every mark of the family shares: its view boxes, its centre, its halo, and the orbit and ring it is drawn around. */\nexport interface FrameGeometry {\n viewBox: string;\n croppedViewBox: string;\n center: number;\n glow: { color: string; opacity: number };\n orbit: { r: number; dash: string; width: number };\n ring: { r: number; width: number };\n}\n\n/** A brand gradient across the view box (`url(#id)` fills the emblem). */\nexport interface MarkGradient {\n id: string;\n x1: number;\n y1: number;\n x2: number;\n y2: number;\n stops: readonly (readonly [string, string])[];\n}\n\ntype FrameProps = Required<Pick<MarkProps, \"size\">> &\n Pick<MarkProps, \"title\" | \"className\"> & {\n geometry: FrameGeometry;\n /** The mark's own motion (`familyMotion` or a legacy sheet). */\n css: string;\n /** The id of the halo's radial gradient. */\n glowId: string;\n gradient?: MarkGradient;\n children: ReactNode;\n };\n\n/**\n * The frame of a product mark, one for the family: the `<svg>` (cropped to the emblem below 48 px), its motion, the\n * brand gradient and the halo, the halo itself (left out when cropped: it would show its square). The mark draws the rest.\n */\nexport function MarkFrame({ size, title, className, geometry: g, css, glowId, gradient, children }: Readonly<FrameProps>) {\n return (\n <svg width={size} height={size} viewBox={size < 48 ? g.croppedViewBox : g.viewBox} fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" className={className} {...a11y(title)}>\n <style>{css}</style>\n <defs>\n {gradient ? (\n <linearGradient id={gradient.id} gradientUnits=\"userSpaceOnUse\" x1={gradient.x1} y1={gradient.y1} x2={gradient.x2} y2={gradient.y2}>\n {gradient.stops.map(([offset, color]) => (\n <stop key={offset} offset={offset} stopColor={color} />\n ))}\n </linearGradient>\n ) : null}\n <radialGradient id={glowId} cx=\"50%\" cy=\"50%\" r=\"50%\">\n <stop offset=\"0%\" stopColor={g.glow.color} stopOpacity={g.glow.opacity} />\n <stop offset=\"100%\" stopColor={g.glow.color} stopOpacity=\"0\" />\n </radialGradient>\n </defs>\n {size >= 48 ? <circle cx={g.center} cy={g.center} r=\"190\" fill={`url(#${glowId})`} /> : null}\n {children}\n </svg>\n );\n}\n\n/** The dashed orbit of the family, in the host's strong border. */\nexport function MarkOrbit({ geometry: g }: Readonly<{ geometry: FrameGeometry }>) {\n return <circle cx={g.center} cy={g.center} r={g.orbit.r} stroke={neutral(\"--kz-border-strong\", 40)} strokeWidth={g.orbit.width} strokeDasharray={g.orbit.dash} opacity=\".6\" />;\n}\n\n/** The quiet ring of the family, in the host's default border. */\nexport function MarkRing({ geometry: g }: Readonly<{ geometry: FrameGeometry }>) {\n return <circle cx={g.center} cy={g.center} r={g.ring.r} stroke={neutral(\"--kz-border-default\", 30)} strokeWidth={g.ring.width} opacity=\".35\" />;\n}\n","import { FOLIOVIV as G } from \"./folioviv-geometry\";\nimport { MarkFrame, MarkOrbit, MarkRing } from \"./frame\";\nimport { familyMotion, type MarkProps, useIds } from \"./shared\";\n\nconst CSS = familyMotion(\"akm\", { ...G.motion, ...G.pulse });\n\n/**\n * The Folioviv mark, \"the cut log\": a log seen end-on in forest green, its year rings in light, cut at 45° by the beaver\n * (the Krizaka chamfer) with the fresh face in copper, and a copper heart that breathes — a shop built ring by ring.\n * One node, a coin, rides the dashed orbit. Below 48 px it crops to the emblem.\n */\nexport function FoliovivLogo({ size = 32, animated = true, title, className }: Readonly<MarkProps>) {\n const id = useIds(\"akm\", [\"glow\"] as const);\n const m = (cls: string) => (animated ? `akm-${cls}` : undefined);\n return (\n <MarkFrame size={size} title={title} className={className} geometry={G} css={CSS} glowId={id.glow}>\n <MarkRing geometry={G} />\n <g className={m(\"orbit\")}>\n <MarkOrbit geometry={G} />\n <circle cx={G.node.at[0]} cy={G.node.at[1]} r={G.node.r} fill={G.copper} />\n </g>\n <path d={G.log} fill={G.forest} />\n <path d={G.cut} fill={G.copper} />\n {G.rings.r.map((r) => (\n <circle key={r} cx={G.rings.cx} cy={G.rings.cy} r={r} stroke={G.highlight} strokeOpacity={G.rings.opacity} strokeWidth={G.rings.width} />\n ))}\n <g className={m(\"core\")}>\n <circle cx={G.heart.cx} cy={G.heart.cy} r={G.heart.r} fill={G.copper} />\n <circle cx={G.heart.cx} cy={G.heart.cy} r={G.heart.inner} fill={G.highlight} />\n </g>\n </MarkFrame>\n );\n}\n","import type { ReactNode } from \"react\";\n\nimport { KRIZAKA } from \"./krizaka-geometry\";\nimport { a11y, type MarkProps, neutral, useIds } from \"./shared\";\n\n/** What an ink mark draws on the family frame: the Krizaka geometry, its node and core moved where its figure opens. */\nexport interface InkGeometry {\n readonly viewBox: string;\n readonly croppedViewBox: string;\n readonly offset: number;\n readonly ink: typeof KRIZAKA.ink;\n readonly blue: typeof KRIZAKA.blue;\n readonly glow: typeof KRIZAKA.glow;\n readonly orbit: typeof KRIZAKA.orbit;\n readonly ring: typeof KRIZAKA.ring;\n readonly highlight: string;\n readonly node: { readonly cx: number; readonly cy: number; readonly r: number; readonly inner: number };\n readonly core: { readonly cx: number; readonly cy: number; readonly r: number; readonly inner: number };\n}\n\ninterface InkMarkProps extends MarkProps {\n /** The class prefix of `css` (`<prefix>-spin` turns the orbit, `<prefix>-pulse` makes the node and core breathe). */\n readonly prefix: string;\n readonly css: string;\n readonly geometry: InkGeometry;\n /** The figure, drawn with the ink gradient `url(#ink)` it is given. */\n readonly figure: (ink: string) => ReactNode;\n}\n\n/** The ink, blue and glow gradients of the marks in Krizaka's colours, under the instance's own ids. */\nexport function InkDefs({ ids: id, geometry: G }: Readonly<{ ids: Record<\"ink\" | \"blue\" | \"glow\", string>; geometry: Pick<InkGeometry, \"ink\" | \"blue\" | \"glow\"> }>) {\n return (\n <defs>\n <linearGradient id={id.ink} gradientUnits=\"userSpaceOnUse\" x1={G.ink.x1} y1={G.ink.y1} x2={G.ink.x2} y2={G.ink.y2}>\n <stop offset=\"0%\" stopColor={neutral(\"--kz-text-secondary\", 60)} />\n <stop offset=\"100%\" stopColor={neutral(\"--kz-text-primary\", 92)} />\n </linearGradient>\n <linearGradient id={id.blue} gradientUnits=\"userSpaceOnUse\" x1={G.blue.x1} y1={G.blue.y1} x2={G.blue.x2} y2={G.blue.y2}>\n {G.blue.stops.map(([offset, color]) => (\n <stop key={offset} offset={offset} stopColor={color} />\n ))}\n </linearGradient>\n <radialGradient id={id.glow} cx=\"50%\" cy=\"50%\" r=\"50%\">\n <stop offset=\"0%\" stopColor={G.glow.color} stopOpacity={G.glow.opacity} />\n <stop offset=\"100%\" stopColor={G.glow.color} stopOpacity=\"0\" />\n </radialGradient>\n </defs>\n );\n}\n\n/**\n * The frame of the marks in Krizaka's colours (the company and its services: Krizaka, Kridoc): halo, dashed orbit, ring,\n * an ink figure, the blue node where it opens and the blue core. Below 48 px it crops to the emblem.\n */\nexport function InkMark({ size = 32, animated = true, title, className, prefix, css, geometry: G, figure }: Readonly<InkMarkProps>) {\n const id = useIds(prefix, [\"ink\", \"blue\", \"glow\"] as const);\n const m = (cls: string) => (animated ? `${prefix}-${cls}` : undefined);\n const dots = [G.node, G.core];\n return (\n <svg width={size} height={size} viewBox={size < 48 ? G.croppedViewBox : G.viewBox} fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" className={className} {...a11y(title)}>\n <style>{css}</style>\n <InkDefs ids={id} geometry={G} />\n {size >= 48 ? <circle cx=\"200\" cy=\"200\" r=\"190\" fill={`url(#${id.glow})`} /> : null /* cropped: the halo would show its square */}\n <circle className={m(\"spin\")} cx=\"200\" cy=\"200\" r={G.orbit.r} stroke={neutral(\"--kz-border-strong\", 40)} strokeWidth={G.orbit.width} strokeDasharray={G.orbit.dash} opacity=\".6\" />\n <circle cx=\"200\" cy=\"200\" r={G.ring.r} stroke={neutral(\"--kz-border-default\", 30)} strokeWidth={G.ring.width} opacity=\".35\" />\n <g transform={`translate(${G.offset} ${G.offset})`}>\n {figure(`url(#${id.ink})`)}\n {dots.map((d) => (\n <g key={`${d.cx},${d.cy}`} className={m(\"pulse\")}>\n <circle cx={d.cx} cy={d.cy} r={d.r} fill={`url(#${id.blue})`} />\n <circle cx={d.cx} cy={d.cy} r={d.inner} fill={G.highlight} />\n </g>\n ))}\n </g>\n </svg>\n );\n}\n","import { marks } from \"@krizaka/tokens/native\";\n\n/**\n * The Krizaka mark's geometry — the one description drawn by the web mark (KrizakaLogo) and the native one\n * (KrizakaMark). Built on the family's mark grammar (docs: packages/tokens/BRAND.md, \"Marks\"): a 360×360 artwork at\n * (20, 20) in a 400×400 view box, one bold stroke (22) drawn as an open figure, an end that breaks out as a node, a\n * core, a dashed orbit and a ring; below 48 px the view box crops to the emblem.\n *\n * Krizaka is the parent: the hexagonal shield is **ink** (the host's text roles), the node and the core carry the\n * Krizaka blue (`marks.krizaka` of @krizaka/tokens: the brand's accent hsl(208 46% 45%) → its text tint hsl(206 58% 72%)).\n */\nexport const KRIZAKA = {\n viewBox: \"0 0 400 400\",\n croppedViewBox: \"86 82 228 228\",\n offset: 20,\n /** The shield: a pointy-top hexagon (r 92 around 180,180), open at its upper-right edge. */\n shield: \"M259.7,134 L259.7,226 L180,272 L100.3,226 L100.3,134 L180,88 L212,106.5\",\n stroke: 22,\n ink: { x1: 70, y1: 290, x2: 290, y2: 70 },\n blue: { x1: 180, y1: 180, x2: 300, y2: 60, stops: marks.krizaka },\n /** The vertex where the shield opens: a node (the head of the line). */\n node: { cx: 259.7, cy: 134, r: 19, inner: 6 },\n core: { cx: 180, cy: 180, r: 24, inner: 8 },\n highlight: \"#ddeaf4\",\n glow: { color: marks.krizaka[0]![1], opacity: 0.16 },\n orbit: { r: 160, dash: \"8 8\", width: 1.5 },\n ring: { r: 134, width: 1 },\n} as const;\n","import { InkMark } from \"./InkMark\";\nimport { KRIZAKA as G } from \"./krizaka-geometry\";\nimport type { MarkProps } from \"./shared\";\n\nconst CSS = `\n.kzm-spin { transform-origin: 200px 200px; animation: kzm-spin 30s linear infinite; }\n.kzm-pulse { transform-box: fill-box; transform-origin: center; animation: kzm-pulse 3.2s ease-in-out infinite; }\n@keyframes kzm-spin { to { transform: rotate(360deg); } }\n@keyframes kzm-pulse {\n 0%, 100% { filter: drop-shadow(0 0 6px hsla(217, 92%, 53%, .25)); opacity: .9; }\n 50% { filter: drop-shadow(0 0 14px hsla(217, 92%, 53%, .55)); opacity: 1; }\n}\n@media (prefers-reduced-motion: reduce) { .kzm-spin, .kzm-pulse { animation: none; } }\n`;\n\nfunction figure(ink: string) {\n return <path d={G.shield} stroke={ink} strokeWidth={G.stroke} strokeLinecap=\"round\" strokeLinejoin=\"round\" />;\n}\n\n/**\n * The Krizaka mark: an ink hexagonal shield, open at one vertex where a blue node breaks out, around a blue core —\n * the parent of the family (Sovkora's shards). The orbit turns, the node and the core\n * breathe. The shield reads the host's text roles, so it is ink in both themes. Below 48 px it crops to the emblem.\n */\nexport function KrizakaLogo(props: Readonly<MarkProps>) {\n return (\n <InkMark\n {...props}\n prefix=\"kzm\"\n css={CSS}\n geometry={G}\n figure={figure}\n />\n );\n}\n","import { marks } from \"@krizaka/tokens/native\";\n\n/**\n * The Sovkora mark's geometry — drawn by the web mark (SovkoraLogo) and the native one (SovkoraMark). The same\n * grammar as Krizaka (packages/tokens/BRAND.md, \"Marks\"): 400×400 view box, dashed orbit and ring, a bold\n * emblem in the brand gradient, a bright core; below 48 px the view box crops to the emblem.\n *\n * The emblem keeps the original idea — three hexagonal shards orbiting a core — drawn as solid shards (the weight of\n * the family's bodies) in the Sovkora orange: the brand's mark gradient (`marks.sovkora` of @krizaka/tokens, the same source\n * as the accent), deep orange → orange on the accent's hue 26 — never the amber of --kz-warning (hue 38). Every stop\n * reads ≥ 3:1 on the page surfaces of both themes (tested in @krizaka/tokens), so one mark serves dark and light.\n */\n/** The bright end of the gradient: the halo and the core's glow. */\nconst orange = marks.sovkora[marks.sovkora.length - 1]![1];\n\nexport const SOVKORA = {\n viewBox: \"0 0 400 400\",\n croppedViewBox: \"76 76 248 248\",\n center: 200,\n /**\n * The three shards — a hexagon's cap (from the original 132-unit drawing), scaled ×1.9 around the centre and turned\n * 0°, 120°, 240° — in view-box coordinates, so that one gradient runs across all three.\n */\n shards: [\n \"M154.4,121.2 L200,94.7 L245.6,121.2 L245.6,154.4 L226.6,165.4 L226.6,132.2 L200,116.8 L173.4,132.2 L173.4,165.4 L154.4,154.4 Z\",\n \"M291.1,199.9 L291.2,252.6 L245.5,278.9 L216.7,262.3 L216.6,240.3 L245.4,257 L272.1,241.6 L272,210.9 L243.2,194.3 L262.3,183.3 Z\",\n \"M154.5,278.9 L108.8,252.6 L108.9,199.9 L137.7,183.3 L156.8,194.3 L128,210.9 L127.9,241.6 L154.6,257 L183.4,240.3 L183.3,262.3 Z\",\n ],\n shardStroke: 5.7,\n gradient: { x1: 90, y1: 310, x2: 310, y2: 90, stops: marks.sovkora },\n core: { r: 21, inner: 7.6 },\n highlight: \"#fff7ed\",\n glow: { color: orange, opacity: 0.16 },\n /** The core's breathing shadow (web), in the mark's orange. */\n pulse: { color: orange, low: 0.3, high: 0.6 },\n orbit: { r: 160, dash: \"8 8\", width: 1.5 },\n ring: { r: 134, width: 1 },\n} as const;\n","import { MarkFrame, MarkOrbit, MarkRing } from \"./frame\";\nimport { type MarkProps, useIds, withAlpha } from \"./shared\";\nimport { SOVKORA as G } from \"./sovkora-geometry\";\n\nconst CSS = `\n.ozm-orbit { transform-origin: 200px 200px; animation: ozm-orbit 35s linear infinite; }\n.ozm-core { transform-box: fill-box; transform-origin: center; animation: ozm-core 3.2s ease-in-out infinite; }\n@keyframes ozm-orbit { to { transform: rotate(360deg); } }\n@keyframes ozm-core {\n 0%, 100% { filter: drop-shadow(0 0 6px ${withAlpha(G.pulse.color, G.pulse.low)}); opacity: .9; }\n 50% { filter: drop-shadow(0 0 14px ${withAlpha(G.pulse.color, G.pulse.high)}); opacity: 1; }\n}\n@media (prefers-reduced-motion: reduce) { .ozm-orbit, .ozm-core { animation: none; } }\n`;\n\n/** The emblem of the Sovkora marks (today's and the 2.0 one): the three shards that orbit, and the core that breathes. */\nexport function SovkoraEmblem({ fill, highlight, orbit, core }: Readonly<{ fill: string; highlight: string; orbit?: string; core?: string }>) {\n return (\n <>\n <g className={orbit}>\n {G.shards.map((d) => (\n <path key={d} d={d} fill={fill} stroke={fill} strokeWidth={G.shardStroke} strokeLinejoin=\"round\" />\n ))}\n </g>\n <g className={core}>\n <circle cx={G.center} cy={G.center} r={G.core.r} fill={fill} />\n <circle cx={G.center} cy={G.center} r={G.core.inner} fill={highlight} />\n </g>\n </>\n );\n}\n\n/**\n * The Sovkora mark: three solid hexagonal shards in the Sovkora orange (the brand's mark\n * gradient of @krizaka/tokens, deep orange → orange, hue 26 — the same in dark and light) orbiting slowly around a core that breathes —\n * the family's grammar (dashed orbit, ring, bold emblem, bright core). Below 48 px it crops to the emblem.\n */\nexport function SovkoraLogo({ size = 32, animated = true, title, className }: Readonly<MarkProps>) {\n const id = useIds(\"ozm\", [\"gradient\", \"glow\"] as const);\n return (\n <MarkFrame size={size} title={title} className={className} geometry={G} css={CSS} glowId={id.glow} gradient={{ id: id.gradient, ...G.gradient }}>\n <MarkOrbit geometry={G} />\n <MarkRing geometry={G} />\n <SovkoraEmblem fill={`url(#${id.gradient})`} highlight={G.highlight} orbit={animated ? \"ozm-orbit\" : undefined} core={animated ? \"ozm-core\" : undefined} />\n </MarkFrame>\n );\n}\n","import { marks } from \"@krizaka/tokens/native\";\n\n/**\n * The Verikora mark's geometry — drawn by the web mark (VerikoraLogo) and the native one (VerikoraMark). The family's\n * grammar (packages/tokens/BRAND.md, \"Marks\"): 400×400 view box, dashed orbit and ring, a bold emblem at the family\n * stroke (22) in the brand gradient, a lit core; below 48 px the view box crops to the emblem.\n *\n * The emblem is **the watch** (2026-10-17): the owl — the bird that reads documents and knows faces — drawn as two\n * lenses under one calm brow, its pupils glancing down the line it reads. The brow is a soft double curve (never a\n * sharp V: the owl is attentive, not stern). The pupils are the lit cores: they breathe. The gradient is the brand's\n * mark gradient (`marks.verikora` of @krizaka/tokens): ink → indigo, ≥ 3:1 on the page surfaces of both themes.\n */\n/** The indigo end of the gradient: the halo and the pupils' breath. */\nconst indigo = marks.verikora[marks.verikora.length - 1]![1];\n\nexport const VERIKORA = {\n viewBox: \"0 0 400 400\",\n croppedViewBox: \"80 80 240 240\",\n center: 200,\n stroke: 22,\n /** The brow: two soft arcs that meet over the beak — calm, never a sharp V. */\n brow: \"M106 153 C130 125 176 129 200 159 C224 129 270 125 294 153\",\n /** The two lenses (rings at the family stroke). */\n lenses: [\n { cx: 146, cy: 223, r: 40 },\n { cx: 254, cy: 223, r: 40 },\n ],\n /** The pupils, glancing down-right (reading): the lit cores. */\n pupils: [\n { cx: 154, cy: 229, r: 15, inner: 5.1 },\n { cx: 262, cy: 229, r: 15, inner: 5.1 },\n ],\n highlight: \"#f4f5ff\",\n gradient: { x1: 110, y1: 300, x2: 290, y2: 100, stops: marks.verikora },\n /** One node, a page, rides the orbit. */\n node: { r: 9, at: [200, 40] as const },\n glow: { color: indigo, opacity: 0.18 },\n pulse: { color: indigo, low: 0.3, high: 0.6 },\n motion: { spin: 32, breath: 3.6 },\n orbit: { r: 160, dash: \"8 8\", width: 1.5 },\n ring: { r: 134, width: 1 },\n} as const;\n","import { MarkFrame, MarkOrbit, MarkRing } from \"./frame\";\nimport { familyMotion, type MarkProps, useIds } from \"./shared\";\nimport { VERIKORA as G } from \"./verikora-geometry\";\n\nconst CSS = familyMotion(\"ymm\", { ...G.motion, ...G.pulse });\n\n/**\n * The Verikora mark, \"the watch\": the owl — two lenses at the family stroke under one calm brow, its pupils glancing\n * down the line it reads — in the Verikora gradient (ink → indigo, the same in dark and light). The pupils are the lit\n * cores and breathe; one node, a page, rides the dashed orbit. Below 48 px it crops to the emblem.\n */\nexport function VerikoraLogo({ size = 32, animated = true, title, className }: Readonly<MarkProps>) {\n const id = useIds(\"ymm\", [\"gradient\", \"glow\"] as const);\n const fill = `url(#${id.gradient})`;\n const m = (cls: string) => (animated ? `ymm-${cls}` : undefined);\n return (\n <MarkFrame size={size} title={title} className={className} geometry={G} css={CSS} glowId={id.glow} gradient={{ id: id.gradient, ...G.gradient }}>\n <MarkRing geometry={G} />\n <g className={m(\"orbit\")}>\n <MarkOrbit geometry={G} />\n <circle cx={G.node.at[0]} cy={G.node.at[1]} r={G.node.r} fill={fill} />\n </g>\n <path d={G.brow} stroke={fill} strokeWidth={G.stroke} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n {G.lenses.map((l) => (\n <circle key={l.cx} cx={l.cx} cy={l.cy} r={l.r} stroke={fill} strokeWidth={G.stroke} />\n ))}\n <g className={m(\"core\")}>\n {G.pupils.map((p) => (\n <g key={p.cx}>\n <circle cx={p.cx} cy={p.cy} r={p.r} fill={fill} />\n <circle cx={p.cx} cy={p.cy} r={p.inner} fill={G.highlight} />\n </g>\n ))}\n </g>\n </MarkFrame>\n );\n}\n","import { FoliovivLogo } from \"./FoliovivLogo\";\nimport { KrizakaLogo } from \"./KrizakaLogo\";\nimport type { MarkProps } from \"./shared\";\nimport { SovkoraLogo } from \"./SovkoraLogo\";\nimport { VerikoraLogo } from \"./VerikoraLogo\";\n\n/**\n * A Krizaka brand by its id: the company and its three products — Verikora (`verikora`), Folioviv\n * (`folioviv`) and Sovkora (`sovkora`). It also keys the brand palettes (maps, forms, loaders).\n */\nexport type BrandId = \"krizaka\" | \"sovkora\" | \"verikora\" | \"folioviv\";\n\n/** A mark by its id (the ids of `@krizaka/org`'s `brands`): a brand, or Kridoc — the managed storage (`kridoc`), which has a mark and no palette of its own. */\nexport type MarkId = BrandId | \"kridoc\";\n\n/** The mark of a Krizaka brand by id — for navigation, cards and lists driven by data. Kridoc is drawn by `ProductLockup` or `KridocLogo`: keeping it out of here keeps the bar light (krizaka-ui#837). */\nexport function ProductLogo({ id, ...props }: MarkProps & { /** The brand: `krizaka`, `sovkora`, `verikora` or `folioviv`. */ id: BrandId }) {\n if (id === \"krizaka\") return <KrizakaLogo {...props} />;\n if (id === \"sovkora\") return <SovkoraLogo {...props} />;\n if (id === \"verikora\") return <VerikoraLogo {...props} />;\n return <FoliovivLogo {...props} />;\n}\n"],"mappings":";;;AAAA,SAAS,aAAa;AAgBtB,IAAM,SAAS,MAAM,SAAS,CAAC,EAAG,CAAC;AAEnC,IAAM,SAAS,MAAM,SAAS,MAAM,SAAS,SAAS,CAAC,EAAG,CAAC;AAEpD,IAAM,WAAW;AAAA,EACtB,SAAS;AAAA,EACT,gBAAgB;AAAA,EAChB,QAAQ;AAAA,EACR;AAAA,EACA;AAAA,EACA,KAAK;AAAA;AAAA,EAEL,KAAK;AAAA;AAAA,EAEL,OAAO,EAAE,IAAI,KAAK,IAAI,KAAK,GAAG,CAAC,IAAI,EAAE,GAAG,OAAO,GAAG,SAAS,KAAK;AAAA,EAChE,OAAO,EAAE,IAAI,KAAK,IAAI,KAAK,GAAG,IAAI,OAAO,IAAI;AAAA,EAC7C,WAAW;AAAA,EACX,UAAU,EAAE,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,IAAI,KAAK,OAAO,MAAM,SAAS;AAAA;AAAA,EAEtE,MAAM,EAAE,GAAG,GAAG,IAAI,CAAC,KAAK,EAAE,EAAW;AAAA,EACrC,MAAM,EAAE,OAAO,QAAQ,SAAS,KAAK;AAAA,EACrC,OAAO,EAAE,OAAO,QAAQ,KAAK,KAAK,MAAM,KAAK;AAAA,EAC7C,QAAQ,EAAE,MAAM,IAAI,QAAQ,IAAI;AAAA,EAChC,OAAO,EAAE,GAAG,KAAK,MAAM,OAAO,OAAO,IAAI;AAA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