@ifhover/leaf-ui 0.13.2 → 0.14.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 (222) hide show
  1. package/THIRD_PARTY.md +31 -0
  2. package/dist/cjs/action-colors.cjs +58 -0
  3. package/dist/cjs/action-colors.cjs.map +1 -0
  4. package/dist/cjs/action-colors.d.cts +2 -0
  5. package/dist/cjs/action-colors.d.cts.map +1 -0
  6. package/dist/cjs/browser/modules/action-colors.cjs +58 -0
  7. package/dist/cjs/browser/modules/action-colors.cjs.map +1 -0
  8. package/dist/cjs/browser/modules/colors.cjs +6 -2
  9. package/dist/cjs/browser/modules/colors.cjs.map +1 -1
  10. package/dist/cjs/browser/modules/popover/popover.cjs +1 -0
  11. package/dist/cjs/browser/modules/popover/popover.cjs.map +1 -1
  12. package/dist/cjs/browser/modules/tooltip/tooltip.cjs +2 -1
  13. package/dist/cjs/browser/modules/tooltip/tooltip.cjs.map +1 -1
  14. package/dist/cjs/colors.cjs +6 -2
  15. package/dist/cjs/colors.cjs.map +1 -1
  16. package/dist/cjs/colors.d.cts.map +1 -1
  17. package/dist/cjs/popover/popover.cjs +1 -0
  18. package/dist/cjs/popover/popover.cjs.map +1 -1
  19. package/dist/cjs/popover/popover.d.cts.map +1 -1
  20. package/dist/cjs/styles/alert.css +1 -1
  21. package/dist/cjs/styles/anchor.css +1 -1
  22. package/dist/cjs/styles/autocomplete.css +1 -1
  23. package/dist/cjs/styles/avatar.css +1 -1
  24. package/dist/cjs/styles/backtop.css +1 -1
  25. package/dist/cjs/styles/badge.css +1 -1
  26. package/dist/cjs/styles/breadcrumb.css +1 -1
  27. package/dist/cjs/styles/button.css +1 -1
  28. package/dist/cjs/styles/calendar.css +1 -1
  29. package/dist/cjs/styles/card.css +1 -1
  30. package/dist/cjs/styles/carousel.css +1 -1
  31. package/dist/cjs/styles/cascader.css +1 -1
  32. package/dist/cjs/styles/checkbox.css +1 -1
  33. package/dist/cjs/styles/collapse.css +1 -1
  34. package/dist/cjs/styles/colorpicker.css +1 -1
  35. package/dist/cjs/styles/components/button.css +1 -1
  36. package/dist/cjs/styles/components/card.css +1 -1
  37. package/dist/cjs/styles/components/checkbox.css +1 -1
  38. package/dist/cjs/styles/components/colorpicker.css +1 -1
  39. package/dist/cjs/styles/components/menu.css +1 -1
  40. package/dist/cjs/styles/components/popover.css +1 -1
  41. package/dist/cjs/styles/components/radio.css +1 -1
  42. package/dist/cjs/styles/components/tabs.css +1 -1
  43. package/dist/cjs/styles/components/tooltip.css +1 -1
  44. package/dist/cjs/styles/config-provider.css +1 -1
  45. package/dist/cjs/styles/confirm.css +1 -1
  46. package/dist/cjs/styles/datepicker.css +1 -1
  47. package/dist/cjs/styles/daterangepicker.css +1 -1
  48. package/dist/cjs/styles/descriptions.css +1 -1
  49. package/dist/cjs/styles/divider.css +1 -1
  50. package/dist/cjs/styles/drawer.css +1 -1
  51. package/dist/cjs/styles/dropdown.css +1 -1
  52. package/dist/cjs/styles/empty.css +1 -1
  53. package/dist/cjs/styles/errorboundary.css +1 -1
  54. package/dist/cjs/styles/filelist.css +1 -1
  55. package/dist/cjs/styles/flex.css +1 -1
  56. package/dist/cjs/styles/floatbutton.css +1 -1
  57. package/dist/cjs/styles/form.css +1 -1
  58. package/dist/cjs/styles/foundation.css +1 -1
  59. package/dist/cjs/styles/grid.css +1 -1
  60. package/dist/cjs/styles/image.css +1 -1
  61. package/dist/cjs/styles/index.css +199 -37
  62. package/dist/cjs/styles/index.css.map +1 -1
  63. package/dist/cjs/styles/infinitescroll.css +1 -1
  64. package/dist/cjs/styles/input.css +1 -1
  65. package/dist/cjs/styles/inputmask.css +1 -1
  66. package/dist/cjs/styles/inputnumber.css +1 -1
  67. package/dist/cjs/styles/inputotp.css +1 -1
  68. package/dist/cjs/styles/layout.css +1 -1
  69. package/dist/cjs/styles/loading.css +1 -1
  70. package/dist/cjs/styles/loadingbar.css +1 -1
  71. package/dist/cjs/styles/masonry.css +1 -1
  72. package/dist/cjs/styles/mentions.css +1 -1
  73. package/dist/cjs/styles/menu.css +1 -1
  74. package/dist/cjs/styles/message.css +1 -1
  75. package/dist/cjs/styles/modal.css +1 -1
  76. package/dist/cjs/styles/notification.css +1 -1
  77. package/dist/cjs/styles/pagination.css +1 -1
  78. package/dist/cjs/styles/popconfirm.css +1 -1
  79. package/dist/cjs/styles/popover.css +1 -1
  80. package/dist/cjs/styles/progress.css +1 -1
  81. package/dist/cjs/styles/qrcode.css +1 -1
  82. package/dist/cjs/styles/radio.css +1 -1
  83. package/dist/cjs/styles/rate.css +1 -1
  84. package/dist/cjs/styles/result.css +1 -1
  85. package/dist/cjs/styles/scrollarea.css +1 -1
  86. package/dist/cjs/styles/scrollbar.css +1 -1
  87. package/dist/cjs/styles/select.css +1 -1
  88. package/dist/cjs/styles/skeleton.css +1 -1
  89. package/dist/cjs/styles/slider.css +1 -1
  90. package/dist/cjs/styles/space.css +1 -1
  91. package/dist/cjs/styles/splitter.css +1 -1
  92. package/dist/cjs/styles/statistic.css +1 -1
  93. package/dist/cjs/styles/steps.css +1 -1
  94. package/dist/cjs/styles/switch.css +1 -1
  95. package/dist/cjs/styles/tabletanstack.css +1 -1
  96. package/dist/cjs/styles/tabs.css +1 -1
  97. package/dist/cjs/styles/tag.css +1 -1
  98. package/dist/cjs/styles/textarea.css +1 -1
  99. package/dist/cjs/styles/timeline.css +1 -1
  100. package/dist/cjs/styles/tooltip.css +1 -1
  101. package/dist/cjs/styles/tour.css +1 -1
  102. package/dist/cjs/styles/transfer.css +1 -1
  103. package/dist/cjs/styles/tree.css +1 -1
  104. package/dist/cjs/styles/treeselect.css +1 -1
  105. package/dist/cjs/styles/typography.css +1 -1
  106. package/dist/cjs/styles/upload.css +1 -1
  107. package/dist/cjs/styles/virtuallist.css +1 -1
  108. package/dist/cjs/tooltip/tooltip.cjs +2 -1
  109. package/dist/cjs/tooltip/tooltip.cjs.map +1 -1
  110. package/dist/cjs/tooltip/tooltip.d.cts +2 -1
  111. package/dist/cjs/tooltip/tooltip.d.cts.map +1 -1
  112. package/dist/esm/action-colors.d.ts +2 -0
  113. package/dist/esm/action-colors.d.ts.map +1 -0
  114. package/dist/esm/action-colors.js +20 -0
  115. package/dist/esm/action-colors.js.map +1 -0
  116. package/dist/esm/browser/modules/action-colors.js +20 -0
  117. package/dist/esm/browser/modules/action-colors.js.map +1 -0
  118. package/dist/esm/browser/modules/colors.js +6 -2
  119. package/dist/esm/browser/modules/colors.js.map +1 -1
  120. package/dist/esm/browser/modules/popover/popover.js +1 -0
  121. package/dist/esm/browser/modules/popover/popover.js.map +1 -1
  122. package/dist/esm/browser/modules/tooltip/tooltip.js +2 -1
  123. package/dist/esm/browser/modules/tooltip/tooltip.js.map +1 -1
  124. package/dist/esm/colors.d.ts.map +1 -1
  125. package/dist/esm/colors.js +6 -2
  126. package/dist/esm/colors.js.map +1 -1
  127. package/dist/esm/popover/popover.d.ts.map +1 -1
  128. package/dist/esm/popover/popover.js +1 -0
  129. package/dist/esm/popover/popover.js.map +1 -1
  130. package/dist/esm/styles/alert.css +1 -1
  131. package/dist/esm/styles/anchor.css +1 -1
  132. package/dist/esm/styles/autocomplete.css +1 -1
  133. package/dist/esm/styles/avatar.css +1 -1
  134. package/dist/esm/styles/backtop.css +1 -1
  135. package/dist/esm/styles/badge.css +1 -1
  136. package/dist/esm/styles/breadcrumb.css +1 -1
  137. package/dist/esm/styles/button.css +1 -1
  138. package/dist/esm/styles/calendar.css +1 -1
  139. package/dist/esm/styles/card.css +1 -1
  140. package/dist/esm/styles/carousel.css +1 -1
  141. package/dist/esm/styles/cascader.css +1 -1
  142. package/dist/esm/styles/checkbox.css +1 -1
  143. package/dist/esm/styles/collapse.css +1 -1
  144. package/dist/esm/styles/colorpicker.css +1 -1
  145. package/dist/esm/styles/components/button.css +1 -1
  146. package/dist/esm/styles/components/card.css +1 -1
  147. package/dist/esm/styles/components/checkbox.css +1 -1
  148. package/dist/esm/styles/components/colorpicker.css +1 -1
  149. package/dist/esm/styles/components/menu.css +1 -1
  150. package/dist/esm/styles/components/popover.css +1 -1
  151. package/dist/esm/styles/components/radio.css +1 -1
  152. package/dist/esm/styles/components/tabs.css +1 -1
  153. package/dist/esm/styles/components/tooltip.css +1 -1
  154. package/dist/esm/styles/config-provider.css +1 -1
  155. package/dist/esm/styles/confirm.css +1 -1
  156. package/dist/esm/styles/datepicker.css +1 -1
  157. package/dist/esm/styles/daterangepicker.css +1 -1
  158. package/dist/esm/styles/descriptions.css +1 -1
  159. package/dist/esm/styles/divider.css +1 -1
  160. package/dist/esm/styles/drawer.css +1 -1
  161. package/dist/esm/styles/dropdown.css +1 -1
  162. package/dist/esm/styles/empty.css +1 -1
  163. package/dist/esm/styles/errorboundary.css +1 -1
  164. package/dist/esm/styles/filelist.css +1 -1
  165. package/dist/esm/styles/flex.css +1 -1
  166. package/dist/esm/styles/floatbutton.css +1 -1
  167. package/dist/esm/styles/form.css +1 -1
  168. package/dist/esm/styles/foundation.css +1 -1
  169. package/dist/esm/styles/grid.css +1 -1
  170. package/dist/esm/styles/image.css +1 -1
  171. package/dist/esm/styles/index.css +199 -37
  172. package/dist/esm/styles/index.css.map +1 -1
  173. package/dist/esm/styles/infinitescroll.css +1 -1
  174. package/dist/esm/styles/input.css +1 -1
  175. package/dist/esm/styles/inputmask.css +1 -1
  176. package/dist/esm/styles/inputnumber.css +1 -1
  177. package/dist/esm/styles/inputotp.css +1 -1
  178. package/dist/esm/styles/layout.css +1 -1
  179. package/dist/esm/styles/loading.css +1 -1
  180. package/dist/esm/styles/loadingbar.css +1 -1
  181. package/dist/esm/styles/masonry.css +1 -1
  182. package/dist/esm/styles/mentions.css +1 -1
  183. package/dist/esm/styles/menu.css +1 -1
  184. package/dist/esm/styles/message.css +1 -1
  185. package/dist/esm/styles/modal.css +1 -1
  186. package/dist/esm/styles/notification.css +1 -1
  187. package/dist/esm/styles/pagination.css +1 -1
  188. package/dist/esm/styles/popconfirm.css +1 -1
  189. package/dist/esm/styles/popover.css +1 -1
  190. package/dist/esm/styles/progress.css +1 -1
  191. package/dist/esm/styles/qrcode.css +1 -1
  192. package/dist/esm/styles/radio.css +1 -1
  193. package/dist/esm/styles/rate.css +1 -1
  194. package/dist/esm/styles/result.css +1 -1
  195. package/dist/esm/styles/scrollarea.css +1 -1
  196. package/dist/esm/styles/scrollbar.css +1 -1
  197. package/dist/esm/styles/select.css +1 -1
  198. package/dist/esm/styles/skeleton.css +1 -1
  199. package/dist/esm/styles/slider.css +1 -1
  200. package/dist/esm/styles/space.css +1 -1
  201. package/dist/esm/styles/splitter.css +1 -1
  202. package/dist/esm/styles/statistic.css +1 -1
  203. package/dist/esm/styles/steps.css +1 -1
  204. package/dist/esm/styles/switch.css +1 -1
  205. package/dist/esm/styles/tabletanstack.css +1 -1
  206. package/dist/esm/styles/tabs.css +1 -1
  207. package/dist/esm/styles/tag.css +1 -1
  208. package/dist/esm/styles/textarea.css +1 -1
  209. package/dist/esm/styles/timeline.css +1 -1
  210. package/dist/esm/styles/tooltip.css +1 -1
  211. package/dist/esm/styles/tour.css +1 -1
  212. package/dist/esm/styles/transfer.css +1 -1
  213. package/dist/esm/styles/tree.css +1 -1
  214. package/dist/esm/styles/treeselect.css +1 -1
  215. package/dist/esm/styles/typography.css +1 -1
  216. package/dist/esm/styles/upload.css +1 -1
  217. package/dist/esm/styles/virtuallist.css +1 -1
  218. package/dist/esm/tooltip/tooltip.d.ts +2 -1
  219. package/dist/esm/tooltip/tooltip.d.ts.map +1 -1
  220. package/dist/esm/tooltip/tooltip.js +2 -1
  221. package/dist/esm/tooltip/tooltip.js.map +1 -1
  222. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"colors.cjs","sources":["webpack://webpack/runtime/define_property_getters","webpack://webpack/runtime/has_own_property","webpack://webpack/runtime/make_namespace_object","../../src/colors.ts"],"sourcesContent":["__webpack_require__.d = (exports, getters, values) => {\n\tvar define = (defs, kind) => {\n\t\tfor(var key in defs) {\n\t\t\tif(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });\n\t\t\t}\n\t\t}\n\t};\n\tdefine(getters, \"get\");\n\tdefine(values, \"value\");\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { readability, TinyColor } from '@ctrl/tinycolor';\nimport { colorRecipes } from './color-recipes';\nimport {\n type ColorScale,\n type ColorScaleStep,\n colorScaleChromaFactors,\n colorScaleLightness,\n colorScaleSteps,\n generateColorScale,\n} from './color-scale';\nimport { type ColorShades, semanticColorShadeSteps } from './color-shades';\n\nconst solidForeground = { black: '#000000', white: '#ffffff' } as const;\nexport const semanticColorFamilies = ['primary', 'success', 'danger', 'warning', 'info'] as const;\nconst semanticSeeds = {\n primary: '#1e964f',\n success: '#52c41a',\n danger: '#ff4d4f',\n warning: '#faad14',\n info: '#1677ff',\n};\nexport const colorSeeds = { ...semanticSeeds, neutral: '#707070' };\n\nexport const neutralColorScale = generateColorScale(colorSeeds.neutral) as ColorScale;\n\nexport const defaultColors = {\n light: {\n ...semanticSeeds,\n neutral: colorSeeds.neutral,\n 'on-primary': solidForeground.white,\n 'on-danger': solidForeground.white,\n 'on-warning': solidForeground.white,\n 'on-info': solidForeground.white,\n 'on-success': solidForeground.white,\n text: neutralColorScale[900],\n 'text-muted': neutralColorScale[600],\n surface: solidForeground.white,\n 'surface-muted': neutralColorScale[100],\n border: neutralColorScale[200],\n },\n dark: {\n ...semanticSeeds,\n neutral: colorSeeds.neutral,\n 'on-primary': solidForeground.white,\n 'on-danger': solidForeground.white,\n 'on-warning': solidForeground.white,\n 'on-info': solidForeground.white,\n 'on-success': solidForeground.white,\n text: neutralColorScale[100],\n 'text-muted': neutralColorScale[400],\n surface: neutralColorScale[900],\n 'surface-muted': neutralColorScale[800],\n border: neutralColorScale[800],\n },\n};\n\nconst cssColorExpression = (color: string) =>\n /^(?:var|color-mix|light-dark|oklch|oklab|lab|lch|color|hwb)\\(/i.test(color);\n\n/** sRGB mixing with premultiplied alpha, matching CSS transparent-color semantics. */\nexport function mixColors(\n first: string | undefined,\n second: string | undefined,\n weight: number,\n): string | undefined {\n if (!first || !second) return undefined;\n const a = new TinyColor(first);\n const b = new TinyColor(second);\n if (cssColorExpression(first) || cssColorExpression(second) || !a.isValid || !b.isValid) {\n const cssColor = (value: string) => cssColorExpression(value) || new TinyColor(value).isValid;\n return cssColor(first) && cssColor(second)\n ? `color-mix(in srgb, ${first} ${Math.min(100, Math.max(0, weight))}%, ${second})`\n : undefined;\n }\n const x = a.toRgb();\n const y = b.toRgb();\n const ratio = Math.min(1, Math.max(0, weight / 100));\n const alpha = x.a * ratio + y.a * (1 - ratio);\n const channel = (key: 'r' | 'g' | 'b') =>\n alpha ? Math.round((x[key] * x.a * ratio + y[key] * y.a * (1 - ratio)) / alpha) : 0;\n return `rgba(${channel('r')}, ${channel('g')}, ${channel('b')}, ${Number(alpha.toFixed(4))})`;\n}\n\ntype ColorVariables = Record<`--leaf-${string}`, string>;\ntype RoleChoice = { value: string; source: string };\n\nconst colorVariable = (name: string): `--leaf-${string}` => `--leaf-color-${name}`;\nconst concreteOpaque = (value: string) => {\n const parsed = new TinyColor(value);\n return !cssColorExpression(value) && parsed.isValid && parsed.getAlpha() === 1;\n};\n\nfunction scaleForColor(color: string): ColorScale {\n const generated = generateColorScale(color);\n if (generated) return generated;\n // CSS expressions stay browser-native; no DOM reads or hydration color probes are needed.\n return Object.fromEntries(\n colorScaleSteps.map((step) => [\n step,\n `oklch(from ${color} ${colorScaleLightness[step]} calc(c * ${colorScaleChromaFactors[step]}) h)`,\n ]),\n ) as ColorScale;\n}\n\n/** Generate only the shared semantic shades; neutral lightness scales are independent. */\nexport function generateColorShades(color: string): ColorShades {\n return Object.fromEntries(\n semanticColorShadeSteps.map((step) => {\n const [direction, amount] = step.split('-');\n return [\n step,\n mixColors(\n color,\n direction === 'light' ? solidForeground.white : solidForeground.black,\n 100 - Number(amount) * 10,\n ) ?? color,\n ];\n }),\n ) as ColorShades;\n}\n\nfunction chooseReadableColor(\n family: string,\n shades: ColorShades,\n seed: string,\n source: string,\n darkSurface: boolean,\n backgrounds: string[],\n minimum: number,\n): RoleChoice {\n const ordered = [...semanticColorShadeSteps].sort((a, b) => {\n const preferred = darkSurface ? 'light' : 'dark';\n const priority = (step: string) =>\n (step.startsWith(preferred) ? 0 : 100) + Number(step.split('-')[1]);\n return priority(a) - priority(b);\n });\n const choice = (step: (typeof semanticColorShadeSteps)[number]) => ({\n value: shades[step],\n source: colorVariable(`${family}-${step}`),\n });\n // Expressions remain browser-native. Do not guess a different brand color during SSR.\n if (!backgrounds.every(concreteOpaque) || !concreteOpaque(seed)) return { value: seed, source };\n const matches = (value: string) =>\n backgrounds.every((background) => readability(value, background) >= minimum);\n if (matches(seed)) return { value: seed, source };\n for (const step of ordered) if (matches(shades[step])) return choice(step);\n for (const [source, value] of Object.entries(solidForeground))\n if (matches(value)) return { value, source };\n // Conflicting explicit surfaces can make a single accessible ink impossible.\n const score = (value: string) => Math.min(...backgrounds.map((bg) => readability(value, bg)));\n return [{ value: seed, source }, ...ordered.map(choice)].reduce((best, candidate) =>\n score(candidate.value) > score(best.value) ? candidate : best,\n );\n}\n\n/** Bases and their shades stay fixed across appearances; only role mappings switch. */\nexport function resolveColorRoles(\n appearance: 'light' | 'dark',\n overrides: Record<string, string> = {},\n families: readonly (typeof semanticColorFamilies)[number][] = semanticColorFamilies,\n): { values: ColorVariables; sources: Record<string, string> } {\n const colors: Record<string, string> = { ...defaultColors[appearance], ...overrides };\n const values: ColorVariables = {};\n const sources: Record<string, string> = {};\n const dark = appearance === 'dark';\n const assign = (name: string, value: string, source: string) => {\n const key = colorVariable(name);\n values[key] = overrides[name] ?? value;\n sources[key] = overrides[name] !== undefined ? 'override' : source;\n };\n const neutral = overrides.neutral ? scaleForColor(overrides.neutral) : neutralColorScale;\n assign('neutral', colors.neutral ?? colorSeeds.neutral, 'seed');\n for (const step of colorScaleSteps) values[colorVariable(`neutral-${step}`)] = neutral[step];\n const surfaceOverride = overrides.surface;\n const darkSurface =\n surfaceOverride && concreteOpaque(surfaceOverride)\n ? new TinyColor(surfaceOverride).getLuminance() < 0.18\n : dark;\n const neutralRoleSteps: Record<string, ColorScaleStep | 'white'> = {\n text: darkSurface ? 100 : 900,\n 'text-muted': darkSurface ? 400 : 600,\n 'text-subtle': darkSurface ? 400 : 600,\n surface: dark ? 900 : 'white',\n 'surface-muted': darkSurface ? 800 : 100,\n 'surface-raised': darkSurface ? 800 : 'white',\n border: darkSurface ? 800 : 200,\n 'border-hover': darkSurface ? 700 : 300,\n divider: darkSurface ? 800 : 200,\n 'option-hover': darkSurface ? 700 : 200,\n };\n for (const [name, step] of Object.entries(neutralRoleSteps))\n assign(\n name,\n step === 'white' ? solidForeground.white : neutral[step],\n step === 'white' ? 'white' : colorVariable(`neutral-${step}`),\n );\n\n const surface = values['--leaf-color-surface'] ?? colors.surface ?? '';\n const muted = values['--leaf-color-surface-muted'] ?? colors['surface-muted'] ?? '';\n const softStep = darkSurface ? 'dark-9' : 'light-9';\n const softHoverStep = darkSurface ? 'dark-7' : 'light-7';\n\n for (const family of families) {\n const seed = colors[family] ?? semanticSeeds[family];\n const shades = generateColorShades(seed);\n assign(family, seed, 'seed');\n for (const step of semanticColorShadeSteps)\n values[colorVariable(`${family}-${step}`)] = shades[step];\n assign(`${family}-soft`, shades[softStep], colorVariable(`${family}-${softStep}`));\n assign(\n `${family}-soft-hover`,\n shades[softHoverStep],\n colorVariable(`${family}-${softHoverStep}`),\n );\n assign(\n `${family}-soft-active`,\n shades[softHoverStep],\n colorVariable(`${family}-${softHoverStep}`),\n );\n assign(`${family}-border`, shades[softHoverStep], colorVariable(`${family}-${softHoverStep}`));\n const ink = chooseReadableColor(\n family,\n shades,\n seed,\n colorVariable(family),\n darkSurface,\n [surface, muted, values[colorVariable(`${family}-soft`)] ?? surface],\n 4.5,\n );\n assign(`${family}-ink`, ink.value, ink.source);\n // Solid labels default to white; on*Color tokens are the only way to switch them.\n assign(`on-${family}`, solidForeground.white, 'white');\n\n if (family === 'primary') {\n const indicator = chooseReadableColor(\n family,\n shades,\n seed,\n colorVariable(family),\n darkSurface,\n [surface, muted],\n 3,\n );\n assign('primary-indicator', indicator.value, indicator.source);\n const indicatorValue = values[colorVariable('primary-indicator')] ?? indicator.value;\n assign('primary-focus', indicatorValue, colorVariable('primary-indicator'));\n assign(\n 'primary-fill-border',\n indicatorValue === seed ? 'transparent' : indicatorValue,\n indicatorValue === seed ? 'transparent' : colorVariable('primary-indicator'),\n );\n }\n\n if (family === 'primary' || family === 'danger') {\n for (const state of ['active', 'hover'] as const) {\n const value =\n state === 'active'\n ? shades['dark-1']\n : (mixColors(seed, solidForeground.white, 90) ?? seed);\n assign(\n `${family}-${state}`,\n value,\n state === 'active' ? colorVariable(`${family}-dark-1`) : `mix(${family}, white, 90%)`,\n );\n if (family === 'primary') {\n const inkValue = values[colorVariable('primary-ink')] ?? ink.value;\n const stateBase =\n state === 'active'\n ? (mixColors(\n inkValue,\n darkSurface ? solidForeground.white : solidForeground.black,\n 90,\n ) ?? inkValue)\n : inkValue;\n const stateInk = chooseReadableColor(\n family,\n shades,\n stateBase,\n state === 'active'\n ? `mix(primary-ink, ${darkSurface ? 'white' : 'black'}, 90%)`\n : colorVariable('primary-ink'),\n darkSurface,\n [surface, muted],\n 4.5,\n );\n assign(`primary-ink-${state}`, stateInk.value, stateInk.source);\n }\n }\n }\n }\n return { values, sources };\n}\n\n/** Emit shared roles and only the optical recipes with actual consumers. */\nexport function deriveColors(appearance: 'light' | 'dark', overrides: Record<string, string> = {}) {\n const modern = resolveColorRoles(appearance, overrides);\n const colors: Record<string, string> = Object.fromEntries(\n Object.entries(modern.values).map(([key, value]) => [key.slice('--leaf-color-'.length), value]),\n );\n const result: ColorVariables = {};\n for (const [key, [first, second, ratio]] of Object.entries(colorRecipes)) {\n const other =\n second === 'alpha'\n ? 'transparent'\n : second === 'white'\n ? solidForeground.white\n : second === 'black'\n ? solidForeground.black\n : colors[second];\n const value = mixColors(colors[first], other, ratio);\n if (value) result[key as `--leaf-${string}`] = value;\n }\n return { ...result, ...modern.values };\n}\n"],"names":["__webpack_require__","getters","values","define","defs","kind","key","Object","obj","prop","Symbol","solidForeground","semanticColorFamilies","semanticSeeds","colorSeeds","neutralColorScale","generateColorScale","defaultColors","cssColorExpression","color","mixColors","first","second","weight","a","TinyColor","b","cssColor","value","Math","undefined","x","y","ratio","alpha","channel","Number","colorVariable","name","concreteOpaque","parsed","scaleForColor","generated","colorScaleSteps","step","colorScaleLightness","colorScaleChromaFactors","generateColorShades","semanticColorShadeSteps","direction","amount","chooseReadableColor","family","shades","seed","source","darkSurface","backgrounds","minimum","ordered","preferred","priority","choice","matches","background","readability","score","bg","best","candidate","resolveColorRoles","appearance","overrides","families","colors","sources","dark","assign","neutral","surfaceOverride","neutralRoleSteps","surface","muted","softStep","softHoverStep","ink","indicator","indicatorValue","state","inkValue","stateBase","stateInk","deriveColors","modern","result","colorRecipes","other"],"mappings":";;;;IAAAA,oBAAoB,CAAC,GAAG,CAAC,UAASC,SAASC;QAC1C,IAAIC,SAAS,CAACC,MAAMC;YACnB,IAAI,IAAIC,OAAOF,KACd,IAAGJ,oBAAoB,CAAC,CAACI,MAAME,QAAQ,CAACN,oBAAoB,CAAC,CAAC,UAASM,MACtEC,OAAO,cAAc,CAAC,UAASD,KAAK;gBAAE,YAAY;gBAAM,CAACD,KAAK,EAAED,IAAI,CAACE,IAAI;YAAC;QAG7E;QACAH,OAAOF,SAAS;QAChBE,OAAOD,QAAQ;IAChB;;;ICVAF,oBAAoB,CAAC,GAAG,CAACQ,KAAKC,OAAUF,OAAO,SAAS,CAAC,cAAc,CAA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,CAAC,GAC3DnB,cAAc,gBAClBmB,aACA;oBAACyB;oBAASC;iBAAM,EAChB;gBAEFL,OAAO,CAAC,YAAY,EAAEW,OAAO,EAAEG,SAAS,KAAK,EAAEA,SAAS,MAAM;YAChE;QACF;IAEJ;IACA,OAAO;QAAEzF;QAAQyE;IAAQ;AAC3B;AAGO,SAASiB,aAAarB,UAA4B,EAAEC,YAAoC,CAAC,CAAC;IAC/F,MAAMqB,SAASvB,kBAAkBC,YAAYC;IAC7C,MAAME,SAAiCnE,OAAO,WAAW,CACvDA,OAAO,OAAO,CAACsF,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC,CAACvF,KAAKsB,MAAM,GAAK;YAACtB,IAAI,KAAK,CAAC;YAAyBsB;SAAM;IAEhG,MAAMkE,SAAyB,CAAC;IAChC,KAAK,MAAM,CAACxF,KAAK,CAACe,OAAOC,QAAQW,MAAM,CAAC,IAAI1B,OAAO,OAAO,CAACwF,2CAAAA,YAAYA,EAAG;QACxE,MAAMC,QACJ1E,AAAW,YAAXA,SACI,gBACAA,AAAW,YAAXA,SACEX,gBAAgB,KAAK,GACrBW,AAAW,YAAXA,SACEX,gBAAgB,KAAK,GACrB+D,MAAM,CAACpD,OAAO;QACxB,MAAMM,QAAQR,UAAUsD,MAAM,CAACrD,MAAM,EAAE2E,OAAO/D;QAC9C,IAAIL,OAAOkE,MAAM,CAACxF,IAA0B,GAAGsB;IACjD;IACA,OAAO;QAAE,GAAGkE,MAAM;QAAE,GAAGD,OAAO,MAAM;IAAC;AACvC"}
1
+ {"version":3,"file":"colors.cjs","sources":["webpack://webpack/runtime/define_property_getters","webpack://webpack/runtime/has_own_property","webpack://webpack/runtime/make_namespace_object","../../src/colors.ts"],"sourcesContent":["__webpack_require__.d = (exports, getters, values) => {\n\tvar define = (defs, kind) => {\n\t\tfor(var key in defs) {\n\t\t\tif(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });\n\t\t\t}\n\t\t}\n\t};\n\tdefine(getters, \"get\");\n\tdefine(values, \"value\");\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { readability, TinyColor } from '@ctrl/tinycolor';\nimport { actionColor } from './action-colors';\nimport { colorRecipes } from './color-recipes';\nimport {\n type ColorScale,\n type ColorScaleStep,\n colorScaleChromaFactors,\n colorScaleLightness,\n colorScaleSteps,\n generateColorScale,\n} from './color-scale';\nimport { type ColorShades, semanticColorShadeSteps } from './color-shades';\n\nconst solidForeground = { black: '#000000', white: '#ffffff' } as const;\nexport const semanticColorFamilies = ['primary', 'success', 'danger', 'warning', 'info'] as const;\nconst semanticSeeds = {\n primary: '#1e964f',\n success: '#52c41a',\n danger: '#ff4d4f',\n warning: '#faad14',\n info: '#1677ff',\n};\nexport const colorSeeds = { ...semanticSeeds, neutral: '#707070' };\n\nexport const neutralColorScale = generateColorScale(colorSeeds.neutral) as ColorScale;\n\nexport const defaultColors = {\n light: {\n ...semanticSeeds,\n neutral: colorSeeds.neutral,\n 'on-primary': solidForeground.white,\n 'on-danger': solidForeground.white,\n 'on-warning': solidForeground.white,\n 'on-info': solidForeground.white,\n 'on-success': solidForeground.white,\n text: neutralColorScale[900],\n 'text-muted': neutralColorScale[600],\n surface: solidForeground.white,\n 'surface-muted': neutralColorScale[100],\n border: neutralColorScale[200],\n },\n dark: {\n ...semanticSeeds,\n neutral: colorSeeds.neutral,\n 'on-primary': solidForeground.white,\n 'on-danger': solidForeground.white,\n 'on-warning': solidForeground.white,\n 'on-info': solidForeground.white,\n 'on-success': solidForeground.white,\n text: neutralColorScale[100],\n 'text-muted': neutralColorScale[400],\n surface: neutralColorScale[900],\n 'surface-muted': neutralColorScale[800],\n border: neutralColorScale[800],\n },\n};\n\nconst cssColorExpression = (color: string) =>\n /^(?:var|color-mix|light-dark|oklch|oklab|lab|lch|color|hwb)\\(/i.test(color);\n\n/** sRGB mixing with premultiplied alpha, matching CSS transparent-color semantics. */\nexport function mixColors(\n first: string | undefined,\n second: string | undefined,\n weight: number,\n): string | undefined {\n if (!first || !second) return undefined;\n const a = new TinyColor(first);\n const b = new TinyColor(second);\n if (cssColorExpression(first) || cssColorExpression(second) || !a.isValid || !b.isValid) {\n const cssColor = (value: string) => cssColorExpression(value) || new TinyColor(value).isValid;\n return cssColor(first) && cssColor(second)\n ? `color-mix(in srgb, ${first} ${Math.min(100, Math.max(0, weight))}%, ${second})`\n : undefined;\n }\n const x = a.toRgb();\n const y = b.toRgb();\n const ratio = Math.min(1, Math.max(0, weight / 100));\n const alpha = x.a * ratio + y.a * (1 - ratio);\n const channel = (key: 'r' | 'g' | 'b') =>\n alpha ? Math.round((x[key] * x.a * ratio + y[key] * y.a * (1 - ratio)) / alpha) : 0;\n return `rgba(${channel('r')}, ${channel('g')}, ${channel('b')}, ${Number(alpha.toFixed(4))})`;\n}\n\ntype ColorVariables = Record<`--leaf-${string}`, string>;\ntype RoleChoice = { value: string; source: string };\n\nconst colorVariable = (name: string): `--leaf-${string}` => `--leaf-color-${name}`;\nconst concreteOpaque = (value: string) => {\n const parsed = new TinyColor(value);\n return !cssColorExpression(value) && parsed.isValid && parsed.getAlpha() === 1;\n};\n\nfunction scaleForColor(color: string): ColorScale {\n const generated = generateColorScale(color);\n if (generated) return generated;\n // CSS expressions stay browser-native; no DOM reads or hydration color probes are needed.\n return Object.fromEntries(\n colorScaleSteps.map((step) => [\n step,\n `oklch(from ${color} ${colorScaleLightness[step]} calc(c * ${colorScaleChromaFactors[step]}) h)`,\n ]),\n ) as ColorScale;\n}\n\n/** Generate only the shared semantic shades; neutral lightness scales are independent. */\nexport function generateColorShades(color: string): ColorShades {\n return Object.fromEntries(\n semanticColorShadeSteps.map((step) => {\n const [direction, amount] = step.split('-');\n return [\n step,\n mixColors(\n color,\n direction === 'light' ? solidForeground.white : solidForeground.black,\n 100 - Number(amount) * 10,\n ) ?? color,\n ];\n }),\n ) as ColorShades;\n}\n\nfunction chooseReadableColor(\n family: string,\n shades: ColorShades,\n seed: string,\n source: string,\n darkSurface: boolean,\n backgrounds: string[],\n minimum: number,\n): RoleChoice {\n const ordered = [...semanticColorShadeSteps].sort((a, b) => {\n const preferred = darkSurface ? 'light' : 'dark';\n const priority = (step: string) =>\n (step.startsWith(preferred) ? 0 : 100) + Number(step.split('-')[1]);\n return priority(a) - priority(b);\n });\n const choice = (step: (typeof semanticColorShadeSteps)[number]) => ({\n value: shades[step],\n source: colorVariable(`${family}-${step}`),\n });\n // Expressions remain browser-native. Do not guess a different brand color during SSR.\n if (!backgrounds.every(concreteOpaque) || !concreteOpaque(seed)) return { value: seed, source };\n const matches = (value: string) =>\n backgrounds.every((background) => readability(value, background) >= minimum);\n if (matches(seed)) return { value: seed, source };\n for (const step of ordered) if (matches(shades[step])) return choice(step);\n for (const [source, value] of Object.entries(solidForeground))\n if (matches(value)) return { value, source };\n // Conflicting explicit surfaces can make a single accessible ink impossible.\n const score = (value: string) => Math.min(...backgrounds.map((bg) => readability(value, bg)));\n return [{ value: seed, source }, ...ordered.map(choice)].reduce((best, candidate) =>\n score(candidate.value) > score(best.value) ? candidate : best,\n );\n}\n\n/** Bases and their shades stay fixed across appearances; only role mappings switch. */\nexport function resolveColorRoles(\n appearance: 'light' | 'dark',\n overrides: Record<string, string> = {},\n families: readonly (typeof semanticColorFamilies)[number][] = semanticColorFamilies,\n): { values: ColorVariables; sources: Record<string, string> } {\n const colors: Record<string, string> = { ...defaultColors[appearance], ...overrides };\n const values: ColorVariables = {};\n const sources: Record<string, string> = {};\n const dark = appearance === 'dark';\n const assign = (name: string, value: string, source: string) => {\n const key = colorVariable(name);\n values[key] = overrides[name] ?? value;\n sources[key] = overrides[name] !== undefined ? 'override' : source;\n };\n const neutral = overrides.neutral ? scaleForColor(overrides.neutral) : neutralColorScale;\n assign('neutral', colors.neutral ?? colorSeeds.neutral, 'seed');\n for (const step of colorScaleSteps) values[colorVariable(`neutral-${step}`)] = neutral[step];\n const surfaceOverride = overrides.surface;\n const darkSurface =\n surfaceOverride && concreteOpaque(surfaceOverride)\n ? new TinyColor(surfaceOverride).getLuminance() < 0.18\n : dark;\n const neutralRoleSteps: Record<string, ColorScaleStep | 'white'> = {\n text: darkSurface ? 100 : 900,\n 'text-muted': darkSurface ? 400 : 600,\n 'text-subtle': darkSurface ? 400 : 600,\n surface: dark ? 900 : 'white',\n 'surface-muted': darkSurface ? 800 : 100,\n 'surface-raised': darkSurface ? 800 : 'white',\n border: darkSurface ? 800 : 200,\n 'border-hover': darkSurface ? 700 : 300,\n divider: darkSurface ? 800 : 200,\n 'option-hover': darkSurface ? 700 : 200,\n };\n for (const [name, step] of Object.entries(neutralRoleSteps))\n assign(\n name,\n step === 'white' ? solidForeground.white : neutral[step],\n step === 'white' ? 'white' : colorVariable(`neutral-${step}`),\n );\n\n const surface = values['--leaf-color-surface'] ?? colors.surface ?? '';\n const muted = values['--leaf-color-surface-muted'] ?? colors['surface-muted'] ?? '';\n const softStep = darkSurface ? 'dark-9' : 'light-9';\n const softHoverStep = darkSurface ? 'dark-7' : 'light-7';\n\n for (const family of families) {\n const seed = colors[family] ?? semanticSeeds[family];\n const shades = generateColorShades(seed);\n assign(family, seed, 'seed');\n for (const step of semanticColorShadeSteps)\n values[colorVariable(`${family}-${step}`)] = shades[step];\n assign(`${family}-soft`, shades[softStep], colorVariable(`${family}-${softStep}`));\n assign(\n `${family}-soft-hover`,\n shades[softHoverStep],\n colorVariable(`${family}-${softHoverStep}`),\n );\n assign(\n `${family}-soft-active`,\n shades[softHoverStep],\n colorVariable(`${family}-${softHoverStep}`),\n );\n assign(`${family}-border`, shades[softHoverStep], colorVariable(`${family}-${softHoverStep}`));\n const ink = chooseReadableColor(\n family,\n shades,\n seed,\n colorVariable(family),\n darkSurface,\n [surface, muted, values[colorVariable(`${family}-soft`)] ?? surface],\n 4.5,\n );\n assign(`${family}-ink`, ink.value, ink.source);\n // Solid labels default to white; on*Color tokens are the only way to switch them.\n assign(`on-${family}`, solidForeground.white, 'white');\n\n if (family === 'primary') {\n const indicator = chooseReadableColor(\n family,\n shades,\n seed,\n colorVariable(family),\n darkSurface,\n [surface, muted],\n 3,\n );\n assign('primary-indicator', indicator.value, indicator.source);\n const indicatorValue = values[colorVariable('primary-indicator')] ?? indicator.value;\n assign('primary-focus', indicatorValue, colorVariable('primary-indicator'));\n assign(\n 'primary-fill-border',\n indicatorValue === seed ? 'transparent' : indicatorValue,\n indicatorValue === seed ? 'transparent' : colorVariable('primary-indicator'),\n );\n }\n\n if (family === 'primary' || family === 'danger') {\n for (const state of ['active', 'hover'] as const) {\n // Link feedback is separate from solid press and readability-adjusted ink.\n const linkOffset = state === 'active' ? 1 : family === 'primary' ? -2 : -1;\n const linkValue = concreteOpaque(seed)\n ? actionColor(seed, linkOffset)\n : (mixColors(\n seed,\n state === 'active' ? solidForeground.black : solidForeground.white,\n 90,\n ) ?? seed);\n assign(\n `${family}-link-${state}`,\n overrides[`${family}-${state}`] ?? linkValue,\n overrides[`${family}-${state}`] !== undefined\n ? colorVariable(`${family}-${state}`)\n : concreteOpaque(seed)\n ? `antd-palette(${family}, ${6 + linkOffset})`\n : `mix(${family}, ${state === 'active' ? 'black' : 'white'}, 90%)`,\n );\n const value =\n state === 'active'\n ? shades['dark-1']\n : family === 'primary' && concreteOpaque(seed)\n ? actionColor(seed, -1)\n : (mixColors(seed, solidForeground.white, 90) ?? seed);\n assign(\n `${family}-${state}`,\n value,\n state === 'active'\n ? colorVariable(`${family}-dark-1`)\n : family === 'primary' && concreteOpaque(seed)\n ? 'antd-palette(primary, 5)'\n : `mix(${family}, white, 90%)`,\n );\n if (family === 'primary') {\n const inkValue = values[colorVariable('primary-ink')] ?? ink.value;\n const stateBase =\n state === 'active'\n ? (mixColors(\n inkValue,\n darkSurface ? solidForeground.white : solidForeground.black,\n 90,\n ) ?? inkValue)\n : inkValue;\n const stateInk = chooseReadableColor(\n family,\n shades,\n stateBase,\n state === 'active'\n ? `mix(primary-ink, ${darkSurface ? 'white' : 'black'}, 90%)`\n : colorVariable('primary-ink'),\n darkSurface,\n [surface, muted],\n 4.5,\n );\n assign(`primary-ink-${state}`, stateInk.value, stateInk.source);\n }\n }\n }\n }\n return { values, sources };\n}\n\n/** Emit shared roles and only the optical recipes with actual consumers. */\nexport function deriveColors(appearance: 'light' | 'dark', overrides: Record<string, string> = {}) {\n const modern = resolveColorRoles(appearance, overrides);\n const colors: Record<string, string> = Object.fromEntries(\n Object.entries(modern.values).map(([key, value]) => [key.slice('--leaf-color-'.length), value]),\n );\n const result: ColorVariables = {};\n for (const [key, [first, second, ratio]] of Object.entries(colorRecipes)) {\n const other =\n second === 'alpha'\n ? 'transparent'\n : second === 'white'\n ? solidForeground.white\n : second === 'black'\n ? solidForeground.black\n : colors[second];\n const value = mixColors(colors[first], other, ratio);\n if (value) result[key as `--leaf-${string}`] = value;\n }\n return { ...result, ...modern.values };\n}\n"],"names":["__webpack_require__","getters","values","define","defs","kind","key","Object","obj","prop","Symbol","solidForeground","semanticColorFamilies","semanticSeeds","colorSeeds","neutralColorScale","generateColorScale","defaultColors","cssColorExpression","color","mixColors","first","second","weight","a","TinyColor","b","cssColor","value","Math","undefined","x","y","ratio","alpha","channel","Number","colorVariable","name","concreteOpaque","parsed","scaleForColor","generated","colorScaleSteps","step","colorScaleLightness","colorScaleChromaFactors","generateColorShades","semanticColorShadeSteps","direction","amount","chooseReadableColor","family","shades","seed","source","darkSurface","backgrounds","minimum","ordered","preferred","priority","choice","matches","background","readability","score","bg","best","candidate","resolveColorRoles","appearance","overrides","families","colors","sources","dark","assign","neutral","surfaceOverride","neutralRoleSteps","surface","muted","softStep","softHoverStep","ink","indicator","indicatorValue","state","linkOffset","linkValue","actionColor","inkValue","stateBase","stateInk","de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AS,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAU,CAAC;AAQlG,eAAO,MAAM,UAAU;;;;;;;CAA2C,CAAC;AAEnE,eAAO,MAAM,iBAAiB,EAA6C,UAAU,CAAC;AAEtF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BzB,CAAC;AAKF,sFAAsF;AACtF,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,GAAG,SAAS,EACzB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,MAAM,EAAE,MAAM,GACb,MAAM,GAAG,SAAS,CAiBpB;AAED,KAAK,cAAc,GAAG,MAAM,CAAC,UAAU,MAAM,EAAE,EAAE,MAAM,CAAC,CAAC;AAqBzD,0FAA0F;AAC1F,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW,CAc9D;AAoCD,uFAAuF;AACvF,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,OAAO,GAAG,MAAM,EAC5B,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,EACtC,QAAQ,GAAE,SAAS,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,EAA0B,GAClF;IAAE,MAAM,EAAE,cAAc,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CA2J7D;AAED,4EAA4E;AAC5E,wBAAgB,YAAY,CAAC,UAAU,EAAE,OAAO,GAAG,MAAM,EAAE,SAAS,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM;;EAmBhG"}
@@ -145,6 +145,7 @@ function PopoverControl({ children, title, content, trigger: mode = 'click', pla
145
145
  id: id,
146
146
  role: 'click' === mode ? 'dialog' : 'tooltip',
147
147
  tabIndex: -1,
148
+ "data-arrow": "true",
148
149
  placement: popupPlacement ?? placement,
149
150
  width: width,
150
151
  maxWidth: maxWidth,
@@ -1 +1 @@
1
- {"version":3,"file":"popover/popover.cjs","sources":["webpack://webpack/runtime/define_property_getters","webpack://webpack/runtime/has_own_property","webpack://webpack/runtime/make_namespace_object","../../../src/popover/popover.tsx"],"sourcesContent":["__webpack_require__.d = (exports, getters, values) => {\n\tvar define = (defs, kind) => {\n\t\tfor(var key in defs) {\n\t\t\tif(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });\n\t\t\t}\n\t\t}\n\t};\n\tdefine(getters, \"get\");\n\tdefine(values, \"value\");\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import {\n type CSSProperties,\n cloneElement,\n type HTMLAttributes,\n type ReactElement,\n type ReactNode,\n type Ref,\n useEffect,\n useId,\n useRef,\n useState,\n version,\n} from 'react';\nimport { tabbable } from 'tabbable';\nimport { useComponentProps } from '../config-provider/component-defaults';\nimport { classes } from '../shared/classes';\nimport { useMergedRef } from '../shared/field';\nimport { FloatingPanel, type PopupOptions, useFloatingDismiss } from '../shared/floating';\nimport { useNaturalHeightTransition } from '../shared/presence';\n\nexport interface PopoverProps extends PopupOptions {\n children: ReactElement<\n HTMLAttributes<HTMLElement> & { ref?: Ref<HTMLElement>; disabled?: boolean }\n >;\n title?: ReactNode;\n content: ReactNode;\n trigger?: 'click' | 'hover';\n placement?:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'left'\n | 'left-start'\n | 'left-end'\n | 'right'\n | 'right-start'\n | 'right-end';\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n disabled?: boolean;\n autoFocus?: boolean;\n enterDelay?: number;\n leaveDelay?: number;\n width?: number | string;\n maxWidth?: number | string;\n className?: string;\n style?: CSSProperties;\n 'aria-label'?: string;\n}\nexport function PopoverControl({\n children,\n title,\n content,\n trigger: mode = 'click',\n placement = 'top',\n open: controlled,\n defaultOpen = false,\n onOpenChange,\n disabled = false,\n autoFocus = true,\n enterDelay = 100,\n leaveDelay = 100,\n width = 'max-content',\n maxWidth = 320,\n className,\n popupPlacement,\n popupClassName,\n popupStyle,\n popupRender,\n getPopupContainer,\n style,\n 'aria-label': label,\n}: PopoverProps) {\n const [internal, setInternal] = useState(defaultOpen);\n const inactive = disabled || children.props.disabled;\n const open = !inactive && (controlled ?? internal);\n const trigger = useRef<HTMLElement>(null);\n const panel = useRef<HTMLDivElement>(null);\n const body = useRef<HTMLDivElement>(null);\n useNaturalHeightTransition(panel, body, open);\n const childRef = version.startsWith('18.')\n ? (children as typeof children & { ref?: Ref<HTMLElement> }).ref\n : children.props.ref;\n const ref = useMergedRef(trigger, childRef);\n const id = `${useId()}-popover`;\n const timer = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n const focused = useRef(false);\n const hovered = useRef(false);\n const change = (next: boolean) => {\n if (controlled === undefined) setInternal(next);\n if (next !== open) onOpenChange?.(next);\n };\n const dismiss = () => {\n clearTimeout(timer.current);\n change(false);\n };\n const schedule = (next: boolean, delay: number) => {\n clearTimeout(timer.current);\n timer.current = setTimeout(() => change(next), Math.max(0, delay));\n };\n useFloatingDismiss(open, dismiss, trigger, panel);\n useEffect(() => () => clearTimeout(timer.current), []);\n useEffect(() => {\n if (inactive) {\n clearTimeout(timer.current);\n setInternal(false);\n }\n }, [inactive]);\n useEffect(() => {\n const node = panel.current;\n if (!open || mode !== 'click' || !node || !autoFocus) return;\n (tabbable(node)[0] ?? node).focus();\n return () => {\n if (node.contains(document.activeElement)) trigger.current?.focus();\n };\n }, [open, mode, autoFocus]);\n return (\n <>\n {cloneElement(children, {\n ref,\n 'aria-haspopup': mode === 'click' ? 'dialog' : children.props['aria-haspopup'],\n 'aria-expanded': mode === 'click' ? open : children.props['aria-expanded'],\n 'aria-controls': open ? id : children.props['aria-controls'],\n 'aria-describedby':\n mode === 'hover' && open\n ? [children.props['aria-describedby'], id].filter(Boolean).join(' ')\n : children.props['aria-describedby'],\n onClick: (event) => {\n children.props.onClick?.(event);\n if (mode === 'click' && !inactive && !event.defaultPrevented) change(!open);\n },\n onKeyDown: (event) => {\n children.props.onKeyDown?.(event);\n if (\n mode === 'click' &&\n !inactive &&\n !event.defaultPrevented &&\n event.key === 'ArrowDown'\n ) {\n event.preventDefault();\n change(true);\n }\n },\n onPointerEnter: (event) => {\n children.props.onPointerEnter?.(event);\n if (\n mode === 'hover' &&\n !inactive &&\n !event.defaultPrevented &&\n event.pointerType !== 'touch'\n ) {\n hovered.current = true;\n schedule(true, enterDelay);\n }\n },\n onPointerLeave: (event) => {\n children.props.onPointerLeave?.(event);\n hovered.current = false;\n if (mode === 'hover' && !focused.current) schedule(false, leaveDelay);\n },\n onFocus: (event) => {\n children.props.onFocus?.(event);\n if (mode === 'hover' && !inactive && !event.defaultPrevented) {\n focused.current = true;\n clearTimeout(timer.current);\n change(true);\n }\n },\n onBlur: (event) => {\n children.props.onBlur?.(event);\n focused.current = false;\n if (mode === 'hover' && !hovered.current && !panel.current?.contains(event.relatedTarget))\n schedule(false, leaveDelay);\n },\n })}\n <FloatingPanel\n open={open}\n render={popupRender}\n container={getPopupContainer}\n triggerRef={trigger}\n panelRef={panel}\n id={id}\n role={mode === 'click' ? 'dialog' : 'tooltip'}\n tabIndex={-1}\n placement={popupPlacement ?? placement}\n width={width}\n maxWidth={maxWidth}\n className={classes('leaf-floating', 'leaf-popover', className, popupClassName)}\n style={{ ...style, ...popupStyle }}\n aria-label={label ?? (typeof title === 'string' ? title : undefined)}\n aria-labelledby={title != null ? `${id}-title` : undefined}\n onPointerEnter={() => {\n hovered.current = true;\n clearTimeout(timer.current);\n }}\n onPointerLeave={() => {\n hovered.current = false;\n if (\n mode === 'hover' &&\n !focused.current &&\n !panel.current?.contains(document.activeElement)\n )\n schedule(false, leaveDelay);\n }}\n >\n {title != null && (\n <div id={`${id}-title`} className=\"leaf-popover__title\">\n {title}\n </div>\n )}\n <div ref={body} className=\"leaf-popover__content\">\n {content}\n </div>\n </FloatingPanel>\n </>\n );\n}\n\nexport function Popover(rawProps: PopoverProps) {\n const props = useComponentProps('Popover', rawProps);\n return <PopoverControl {...props} />;\n}\n"],"names":["__webpack_require__","getters","values","define","defs","kind","key","Object","obj","prop","Symbol","PopoverControl","children","title","content","mode","placement","controlled","defaultOpen","onOpenChange","disabled","autoFocus","enterDelay","leaveDelay","width","maxWidth","className","popupPlacement","popupClassName","popupStyle","popupRender","getPopupContainer","style","label","internal","setInternal","useState","inactive","open","trigger","useRef","panel","body","useNaturalHeightTransition","childRef","version","ref","useMergedRef","id","useId","timer","undefined","focused","hovered","change","next","dismiss","clearTimeout","schedule","delay","setTimeout","Math","useFloatingDismiss","useEffect","node","tabbable","document","cloneElement","Boolean","event","FloatingPanel","classes","Popover","rawProps","props","useComponentProps"],"mappings":";;;;IAAAA,oBAAoB,CAAC,GAAG,CAAC,UAASC,SAASC;QAC1C,IAAIC,SAAS,CAACC,MAAMC;YACnB,IAAI,IAAIC,OAAOF,KACd,IAAGJ,oBAAoB,CAAC,CAACI,MAAME,QAAQ,CAACN,oBAAoB,CAAC,CAAC,UAASM,MACtEC,OAAO,cAAc,CAAC,UAASD,KAAK;gBAAE,YAAY;gBAAM,CAACD,KAAK,EAAED,IAAI,CAACE,IAAI;YAAC;QAG7E;QACAH,OAAOF,SAAS;QAChBE,OAAOD,QAAQ;IAChB;;;ICVAF,oBAAoB,CAAC,GAAG,CAACQ,KAAKC,OAAUF,OAAO,SAAS,CAAC,cAAc,CAAC,IAAI,CAACC,KAAKC;;;ICClFT,oBAAoB,CAAC,GAAG,CAAC;QACxB,IAAG,AAAkB,MAAlB,OAAOU,UAA0BA,OAAO,WAAW,EACrDH,OAAO,c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AI,GAAGmC,GAAG,MAAM,CAAC;wBAAE,WAAU;kCAC/BnC;;kCAGL,qCAAC;wBAAI,KAAK6B;wBAAM,WAAU;kCACvB5B;;;;;;AAKX;AAEO,SAAS0D,QAAQC,QAAsB;IAC5C,MAAMC,QAAQC,AAAAA,IAAAA,uCAAAA,iBAAAA,AAAAA,EAAkB,WAAWF;IAC3C,OAAO,WAAP,GAAO,qCAAC9D,gBAAAA;QAAgB,GAAG+D,KAAK;;AAClC"}
1
+ {"version":3,"file":"popover/popover.cjs","sources":["webpack://webpack/runtime/define_property_getters","webpack://webpack/runtime/has_own_property","webpack://webpack/runtime/make_namespace_object","../../../src/popover/popover.tsx"],"sourcesContent":["__webpack_require__.d = (exports, getters, values) => {\n\tvar define = (defs, kind) => {\n\t\tfor(var key in defs) {\n\t\t\tif(__webpack_require__.o(defs, key) && !__webpack_require__.o(exports, key)) {\n\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, [kind]: defs[key] });\n\t\t\t}\n\t\t}\n\t};\n\tdefine(getters, \"get\");\n\tdefine(values, \"value\");\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import {\n type CSSProperties,\n cloneElement,\n type HTMLAttributes,\n type ReactElement,\n type ReactNode,\n type Ref,\n useEffect,\n useId,\n useRef,\n useState,\n version,\n} from 'react';\nimport { tabbable } from 'tabbable';\nimport { useComponentProps } from '../config-provider/component-defaults';\nimport { classes } from '../shared/classes';\nimport { useMergedRef } from '../shared/field';\nimport { FloatingPanel, type PopupOptions, useFloatingDismiss } from '../shared/floating';\nimport { useNaturalHeightTransition } from '../shared/presence';\n\nexport interface PopoverProps extends PopupOptions {\n children: ReactElement<\n HTMLAttributes<HTMLElement> & { ref?: Ref<HTMLElement>; disabled?: boolean }\n >;\n title?: ReactNode;\n content: ReactNode;\n trigger?: 'click' | 'hover';\n placement?:\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'left'\n | 'left-start'\n | 'left-end'\n | 'right'\n | 'right-start'\n | 'right-end';\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n disabled?: boolean;\n autoFocus?: boolean;\n enterDelay?: number;\n leaveDelay?: number;\n width?: number | string;\n maxWidth?: number | string;\n className?: string;\n style?: CSSProperties;\n 'aria-label'?: string;\n}\nexport function PopoverControl({\n children,\n title,\n content,\n trigger: mode = 'click',\n placement = 'top',\n open: controlled,\n defaultOpen = false,\n onOpenChange,\n disabled = false,\n autoFocus = true,\n enterDelay = 100,\n leaveDelay = 100,\n width = 'max-content',\n maxWidth = 320,\n className,\n popupPlacement,\n popupClassName,\n popupStyle,\n popupRender,\n getPopupContainer,\n style,\n 'aria-label': label,\n}: PopoverProps) {\n const [internal, setInternal] = useState(defaultOpen);\n const inactive = disabled || children.props.disabled;\n const open = !inactive && (controlled ?? internal);\n const trigger = useRef<HTMLElement>(null);\n const panel = useRef<HTMLDivElement>(null);\n const body = useRef<HTMLDivElement>(null);\n useNaturalHeightTransition(panel, body, open);\n const childRef = version.startsWith('18.')\n ? (children as typeof children & { ref?: Ref<HTMLElement> }).ref\n : children.props.ref;\n const ref = useMergedRef(trigger, childRef);\n const id = `${useId()}-popover`;\n const timer = useRef<ReturnType<typeof setTimeout> | undefined>(undefined);\n const focused = useRef(false);\n const hovered = useRef(false);\n const change = (next: boolean) => {\n if (controlled === undefined) setInternal(next);\n if (next !== open) onOpenChange?.(next);\n };\n const dismiss = () => {\n clearTimeout(timer.current);\n change(false);\n };\n const schedule = (next: boolean, delay: number) => {\n clearTimeout(timer.current);\n timer.current = setTimeout(() => change(next), Math.max(0, delay));\n };\n useFloatingDismiss(open, dismiss, trigger, panel);\n useEffect(() => () => clearTimeout(timer.current), []);\n useEffect(() => {\n if (inactive) {\n clearTimeout(timer.current);\n setInternal(false);\n }\n }, [inactive]);\n useEffect(() => {\n const node = panel.current;\n if (!open || mode !== 'click' || !node || !autoFocus) return;\n (tabbable(node)[0] ?? node).focus();\n return () => {\n if (node.contains(document.activeElement)) trigger.current?.focus();\n };\n }, [open, mode, autoFocus]);\n return (\n <>\n {cloneElement(children, {\n ref,\n 'aria-haspopup': mode === 'click' ? 'dialog' : children.props['aria-haspopup'],\n 'aria-expanded': mode === 'click' ? open : children.props['aria-expanded'],\n 'aria-controls': open ? id : children.props['aria-controls'],\n 'aria-describedby':\n mode === 'hover' && open\n ? [children.props['aria-describedby'], id].filter(Boolean).join(' ')\n : children.props['aria-describedby'],\n onClick: (event) => {\n children.props.onClick?.(event);\n if (mode === 'click' && !inactive && !event.defaultPrevented) change(!open);\n },\n onKeyDown: (event) => {\n children.props.onKeyDown?.(event);\n if (\n mode === 'click' &&\n !inactive &&\n !event.defaultPrevented &&\n event.key === 'ArrowDown'\n ) {\n event.preventDefault();\n change(true);\n }\n },\n onPointerEnter: (event) => {\n children.props.onPointerEnter?.(event);\n if (\n mode === 'hover' &&\n !inactive &&\n !event.defaultPrevented &&\n event.pointerType !== 'touch'\n ) {\n hovered.current = true;\n schedule(true, enterDelay);\n }\n },\n onPointerLeave: (event) => {\n children.props.onPointerLeave?.(event);\n hovered.current = false;\n if (mode === 'hover' && !focused.current) schedule(false, leaveDelay);\n },\n onFocus: (event) => {\n children.props.onFocus?.(event);\n if (mode === 'hover' && !inactive && !event.defaultPrevented) {\n focused.current = true;\n clearTimeout(timer.current);\n change(true);\n }\n },\n onBlur: (event) => {\n children.props.onBlur?.(event);\n focused.current = false;\n if (mode === 'hover' && !hovered.current && !panel.current?.contains(event.relatedTarget))\n schedule(false, leaveDelay);\n },\n })}\n <FloatingPanel\n open={open}\n render={popupRender}\n container={getPopupContainer}\n triggerRef={trigger}\n panelRef={panel}\n id={id}\n role={mode === 'click' ? 'dialog' : 'tooltip'}\n tabIndex={-1}\n data-arrow=\"true\"\n placement={popupPlacement ?? placement}\n width={width}\n maxWidth={maxWidth}\n className={classes('leaf-floating', 'leaf-popover', className, popupClassName)}\n style={{ ...style, ...popupStyle }}\n aria-label={label ?? (typeof title === 'string' ? title : undefined)}\n aria-labelledby={title != null ? `${id}-title` : undefined}\n onPointerEnter={() => {\n hovered.current = true;\n clearTimeout(timer.current);\n }}\n onPointerLeave={() => {\n hovered.current = false;\n if (\n mode === 'hover' &&\n !focused.current &&\n !panel.current?.contains(document.activeElement)\n )\n schedule(false, leaveDelay);\n }}\n >\n {title != null && (\n <div id={`${id}-title`} className=\"leaf-popover__title\">\n {title}\n </div>\n )}\n <div ref={body} className=\"leaf-popover__content\">\n {content}\n </div>\n </FloatingPanel>\n </>\n );\n}\n\nexport function Popover(rawProps: PopoverProps) {\n const props = useComponentProps('Popover', rawProps);\n return <PopoverControl {...props} />;\n}\n"],"names":["__webpack_require__","getters","values","define","defs","kind","key","Object","obj","prop","Symbol","PopoverControl","children","title","content","mode","placement","controlled","defaultOpen","onOpenChange","disabled","autoFocus","enterDelay","leaveDelay","width","maxWidth","className","popupPlacement","popupClassName","popupStyle","popupRender","getPopupContainer","style","label","internal","setInternal","useState","inactive","open","trigger","useRef","panel","body","useNaturalHeightTransition","childRef","version","ref","useMergedRef","id","useId","timer","undefined","focused","hovered","change","next","dismiss","clearTimeout","schedule","delay","setTimeout","Math","useFloatingDismiss","useEffect","node","tabbable","document","cloneElement","Boolean","event","FloatingPanel","classes","Popover","rawProps","props","useComponentProps"],"mappings":";;;;IAAAA,oBAAoB,CAAC,GAAG,CAAC,UAASC,SAASC;QAC1C,IAAIC,SAAS,CAACC,MAAMC;YACnB,IAAI,IAAIC,OAAOF,KACd,IAAGJ,oBAAoB,CAAC,CAACI,MAAME,QAAQ,CAACN,oBAAoB,CAAC,CAAC,UAASM,MACtEC,OAAO,cAAc,CAAC,UAASD,KAAK;gBAAE,YA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AAC,EACN,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAC;IAChB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AACD,wBAAgB,cAAc,CAAC,EAC7B,QAAQ,EACR,KAAK,EACL,OAAO,EACP,OAAO,EAAE,IAAc,EACvB,SAAiB,EACjB,IAAI,EAAE,UAAU,EAChB,WAAmB,EACnB,YAAY,EACZ,QAAgB,EAChB,SAAgB,EAChB,UAAgB,EAChB,UAAgB,EAChB,KAAqB,EACrB,QAAc,EACd,SAAS,EACT,cAAc,EACd,cAAc,EACd,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,KAAK,EACL,YAAY,EAAE,KAAK,GACpB,EAAE,YAAY,+BAgJd;AAED,wBAAgB,OAAO,CAAC,QAAQ,EAAE,YAAY,+BAG7C"}
1
+ {"version":3,"file":"popover.d.cts","sourceRoot":"","sources":["../../../src/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,SAAS,EACd,KAAK,GAAG,EAMT,MA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UAAgB,EAChB,UAAgB,EAChB,KAAqB,EACrB,QAAc,EACd,SAAS,EACT,cAAc,EACd,cAAc,EACd,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,KAAK,EACL,YAAY,EAAE,KAAK,GACpB,EAAE,YAAY,+BAiJd;AAED,wBAAgB,OAAO,CAAC,QAAQ,EAAE,YAAY,+BAG7C"}
@@ -1 +1 @@
1
- :root,:host{--leaf-color-primary: #1e964f;--leaf-color-success: #52c41a;--leaf-color-danger: #ff4d4f;--leaf-color-warning: #faad14;--leaf-color-info: #1677ff;--leaf-color-neutral: #707070;--leaf-color-on-primary: #ffffff;--leaf-color-on-danger: #ffffff;--leaf-color-on-warning: #ffffff;--leaf-color-on-info: #ffffff;--leaf-color-on-success: #ffffff;--leaf-color-text: #1f1f1f;--leaf-color-text-muted: #6f6f6f;--leaf-color-surface: #ffffff;--leaf-color-surface-muted: #f5f5f5;--leaf-color-border: #e4e4e4;--leaf-color-neutral-100: #f5f5f5;--leaf-color-neutral-200: #e4e4e4;--leaf-color-neutral-300: #cacaca;--leaf-color-neutral-400: #ababab;--leaf-color-neutral-500: #8c8c8c;--leaf-color-neutral-600: #6f6f6f;--leaf-color-neutral-700: #525252;--leaf-color-neutral-800: #383838;--leaf-color-neutral-900: #1f1f1f;--leaf-color-text-subtle: #6f6f6f;--leaf-color-surface-raised: #ffffff;--leaf-color-border-hover: #cacaca;--leaf-color-divider: #e4e4e4;--leaf-color-option-hover: #e4e4e4;--leaf-color-primary-light-3: #62b684;--leaf-color-primary-light-7: #bce0ca;--leaf-color-primary-light-9: #e9f5ed;--leaf-color-primary-dark-1: #1b8747;--leaf-color-primary-dark-3: #156937;--leaf-color-primary-dark-7: #092d18;--leaf-color-primary-dark-9: #030f08;--leaf-color-primary-soft: #e9f5ed;--leaf-color-primary-soft-hover: #bce0ca;--leaf-color-primary-soft-active: #bce0ca;--leaf-color-primary-border: #bce0ca;--leaf-color-primary-ink: #156937;--leaf-color-primary-indicator: #1e964f;--leaf-color-primary-focus: #1e964f;--leaf-color-primary-fill-border: transparent;--leaf-color-primary-active: #1b8747;--leaf-color-primary-ink-active: #135f32;--leaf-color-primary-hover: #34a161;--leaf-color-primary-ink-hover: #156937;--leaf-color-success-light-3: #86d65f;--leaf-color-success-light-7: #cbedba;--leaf-color-success-light-9: #eef9e8;--leaf-color-success-dark-1: #4ab017;--leaf-color-success-dark-3: #398912;--leaf-color-success-dark-7: #193b08;--leaf-color-success-dark-9: #081403;--leaf-color-success-soft: #eef9e8;--leaf-color-success-soft-hover: #cbedba;--leaf-color-success-soft-active: #cbedba;--leaf-color-success-border: #cbedba;--leaf-color-success-ink: #193b08;--leaf-color-danger-light-3: #ff8284;--leaf-color-danger-light-7: #ffcaca;--leaf-color-danger-light-9: #ffeded;--leaf-color-danger-dark-1: #e64547;--leaf-color-danger-dark-3: #b33637;--leaf-color-danger-dark-7: #4d1718;--leaf-color-danger-dark-9: #1a0808;--leaf-color-danger-soft: #ffeded;--leaf-color-danger-soft-hover: #ffcaca;--leaf-color-danger-soft-active: #ffcaca;--leaf-color-danger-border: #ffcaca;--leaf-color-danger-ink: #b33637;--leaf-color-danger-active: #e64547;--leaf-color-danger-hover: #ff5f61;--leaf-color-warning-light-3: #fcc65b;--leaf-color-warning-light-7: #fee6b9;--leaf-color-warning-light-9: #fff7e8;--leaf-color-warning-dark-1: #e19c12;--leaf-color-warning-dark-3: #af790e;--leaf-color-warning-dark-7: #4b3406;--leaf-color-warning-dark-9: #191102;--leaf-color-warning-soft: #fff7e8;--leaf-color-warning-soft-hover: #fee6b9;--leaf-color-warning-soft-active: #fee6b9;--leaf-color-warning-border: #fee6b9;--leaf-color-warning-ink: #4b3406;--leaf-color-info-light-3: #5ca0ff;--leaf-color-info-light-7: #b9d6ff;--leaf-color-info-light-9: #e8f1ff;--leaf-color-info-dark-1: #146be6;--leaf-color-info-dark-3: #0f53b3;--leaf-color-info-dark-7: #07244d;--leaf-color-info-dark-9: #020c1a;--leaf-color-info-soft: #e8f1ff;--leaf-color-info-soft-hover: #b9d6ff;--leaf-color-info-soft-active: #b9d6ff;--leaf-color-info-border: #b9d6ff;--leaf-color-info-ink: #0f53b3;--leaf-control-height: 34px;--leaf-density-form-gap: 16px;--leaf-density-label-gap: 6px;--leaf-density-row-padding: 12px;--leaf-density-option-height: max(24px, calc(var(--leaf-control-height) - 4px));--leaf-density-option-padding: 6px;--leaf-density-field-padding: 10px;--leaf-density-dialog-block: 20px;--leaf-density-dialog-inline: 24px;--leaf-density-dialog-gap: 16px;--leaf-z-index-popup: 1000;--leaf-z-index-modal: 1100;--leaf-z-index-message: 1200;--leaf-radius: 8px;--leaf-radius-sm: calc(var(--leaf-radius) * 0.5);--leaf-radius-md: calc(var(--leaf-radius) * 1.5);--leaf-radius-lg: calc(var(--leaf-radius) * 2);--leaf-choice-radius: calc(var(--leaf-radius) * 0.5);--leaf-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;--leaf-font-size: 14px;--leaf-font-size-sm: max(1px, calc(var(--leaf-font-size) - 1px));--leaf-font-size-lg: calc(var(--leaf-font-size) + 2px);--leaf-font-weight: 500;--leaf-motion-duration: 200ms;--leaf-motion-easing: cubic-bezier(0.22, 1, 0.36, 1);--leaf-motion-spring: cubic-bezier(0.22, 1.28, 0.36, 1);--leaf-motion-play-state: running}[data-leaf-theme=light]{--leaf-color-primary: #1e964f;--leaf-color-success: #52c41a;--leaf-color-danger: #ff4d4f;--leaf-color-warning: #faad14;--leaf-color-info: #1677ff;--leaf-color-neutral: #707070;--leaf-color-on-primary: #ffffff;--leaf-color-on-danger: #ffffff;--leaf-color-on-warning: #ffffff;--leaf-color-on-info: #ffffff;--leaf-color-on-success: #ffffff;--leaf-color-text: #1f1f1f;--leaf-color-text-muted: #6f6f6f;--leaf-color-surface: #ffffff;--leaf-color-surface-muted: #f5f5f5;--leaf-color-border: #e4e4e4;--leaf-color-neutral-100: #f5f5f5;--leaf-color-neutral-200: #e4e4e4;--leaf-color-neutral-300: #cacaca;--leaf-color-neutral-400: #ababab;--leaf-color-neutral-500: #8c8c8c;--leaf-color-neutral-600: #6f6f6f;--leaf-color-neutral-700: #525252;--leaf-color-neutral-800: #383838;--leaf-color-neutral-900: #1f1f1f;--leaf-color-text-subtle: #6f6f6f;--leaf-color-surface-raised: #ffffff;--leaf-color-border-hover: #cacaca;--leaf-color-divider: #e4e4e4;--leaf-color-option-hover: #e4e4e4;--leaf-color-primary-light-3: #62b684;--leaf-color-primary-light-7: #bce0ca;--leaf-color-primary-light-9: #e9f5ed;--leaf-color-primary-dark-1: #1b8747;--leaf-color-primary-dark-3: #156937;--leaf-color-primary-dark-7: #092d18;--leaf-color-primary-dark-9: #030f08;--leaf-color-primary-soft: #e9f5ed;--leaf-color-primary-soft-hover: #bce0ca;--leaf-color-primary-soft-active: #bce0ca;--leaf-color-primary-border: #bce0ca;--leaf-color-primary-ink: #156937;--leaf-color-primary-indicator: #1e964f;--leaf-color-primary-focus: #1e964f;--leaf-color-primary-fill-border: transparent;--leaf-color-primary-active: #1b8747;--leaf-color-primary-ink-active: #135f32;--leaf-color-primary-hover: #34a161;--leaf-color-primary-ink-hover: #156937;--leaf-color-success-light-3: #86d65f;--leaf-color-success-light-7: #cbedba;--leaf-color-success-light-9: #eef9e8;--leaf-color-success-dark-1: #4ab017;--leaf-color-success-dark-3: #398912;--leaf-color-success-dark-7: #193b08;--leaf-color-success-dark-9: #081403;--leaf-color-success-soft: #eef9e8;--leaf-color-success-soft-hover: #cbedba;--leaf-color-success-soft-active: #cbedba;--leaf-color-success-border: #cbedba;--leaf-color-success-ink: #193b08;--leaf-color-danger-light-3: #ff8284;--leaf-color-danger-light-7: #ffcaca;--leaf-color-danger-light-9: #ffeded;--leaf-color-danger-dark-1: #e64547;--leaf-color-danger-dark-3: #b33637;--leaf-color-danger-dark-7: #4d1718;--leaf-color-danger-dark-9: #1a0808;--leaf-color-danger-soft: #ffeded;--leaf-color-danger-soft-hover: #ffcaca;--leaf-color-danger-soft-active: #ffcaca;--leaf-color-danger-border: #ffcaca;--leaf-color-danger-ink: #b33637;--leaf-color-danger-active: #e64547;--leaf-color-danger-hover: #ff5f61;--leaf-color-warning-light-3: #fcc65b;--leaf-color-warning-light-7: #fee6b9;--leaf-color-warning-light-9: #fff7e8;--leaf-color-warning-dark-1: #e19c12;--leaf-color-warning-dark-3: #af790e;--leaf-color-warning-dark-7: #4b3406;--leaf-color-warning-dark-9: #191102;--leaf-color-warning-soft: #fff7e8;--leaf-color-warning-soft-hover: #fee6b9;--leaf-color-warning-soft-active: #fee6b9;--leaf-color-warning-border: #fee6b9;--leaf-color-warning-ink: #4b3406;--leaf-color-info-light-3: #5ca0ff;--leaf-color-info-light-7: #b9d6ff;--leaf-color-info-light-9: #e8f1ff;--leaf-color-info-dark-1: #146be6;--leaf-color-info-dark-3: #0f53b3;--leaf-color-info-dark-7: #07244d;--leaf-color-info-dark-9: #020c1a;--leaf-color-info-soft: #e8f1ff;--leaf-color-info-soft-hover: #b9d6ff;--leaf-color-info-soft-active: #b9d6ff;--leaf-color-info-border: #b9d6ff;--leaf-color-info-ink: #0f53b3;color-scheme:light}[data-leaf-theme=dark]{--leaf-color-primary: #1e964f;--leaf-color-success: #52c41a;--leaf-color-danger: #ff4d4f;--leaf-color-warning: #faad14;--leaf-color-info: #1677ff;--leaf-color-neutral: #707070;--leaf-color-on-primary: #ffffff;--leaf-color-on-danger: #ffffff;--leaf-color-on-warning: #ffffff;--leaf-color-on-info: #ffffff;--leaf-color-on-success: #ffffff;--leaf-color-text: #f5f5f5;--leaf-color-text-muted: #ababab;--leaf-color-surface: #1f1f1f;--leaf-color-surface-muted: #383838;--leaf-color-border: #383838;--leaf-color-neutral-100: #f5f5f5;--leaf-color-neutral-200: #e4e4e4;--leaf-color-neutral-300: #cacaca;--leaf-color-neutral-400: #ababab;--leaf-color-neutral-500: #8c8c8c;--leaf-color-neutral-600: #6f6f6f;--leaf-color-neutral-700: #525252;--leaf-color-neutral-800: #383838;--leaf-color-neutral-900: #1f1f1f;--leaf-color-text-subtle: #ababab;--leaf-color-surface-raised: #383838;--leaf-color-border-hover: #525252;--leaf-color-divider: #383838;--leaf-color-option-hover: #525252;--leaf-color-primary-light-3: #62b684;--leaf-color-primary-light-7: #bce0ca;--leaf-color-primary-light-9: #e9f5ed;--leaf-color-primary-dark-1: #1b8747;--leaf-color-primary-dark-3: #156937;--leaf-color-primary-dark-7: #092d18;--leaf-color-primary-dark-9: #030f08;--leaf-color-primary-soft: #030f08;--leaf-color-primary-soft-hover: #092d18;--leaf-color-primary-soft-active: #092d18;--leaf-color-primary-border: #092d18;--leaf-color-primary-ink: #62b684;--leaf-color-primary-indicator: #1e964f;--leaf-color-primary-focus: #1e964f;--leaf-color-primary-fill-border: transparent;--leaf-color-primary-active: #1b8747;--leaf-color-primary-ink-active: #72bd90;--leaf-color-primary-hover: #34a161;--leaf-color-primary-ink-hover: #62b684;--leaf-color-success-light-3: #86d65f;--leaf-color-success-light-7: #cbedba;--leaf-color-success-light-9: #eef9e8;--leaf-color-success-dark-1: #4ab017;--leaf-color-success-dark-3: #398912;--leaf-color-success-dark-7: #193b08;--leaf-color-success-dark-9: #081403;--leaf-color-success-soft: #081403;--leaf-color-success-soft-hover: #193b08;--leaf-color-success-soft-active: #193b08;--leaf-color-success-border: #193b08;--leaf-color-success-ink: #52c41a;--leaf-color-danger-light-3: #ff8284;--leaf-color-danger-light-7: #ffcaca;--leaf-color-danger-light-9: #ffeded;--leaf-color-danger-dark-1: #e64547;--leaf-color-danger-dark-3: #b33637;--leaf-color-danger-dark-7: #4d1718;--leaf-color-danger-dark-9: #1a0808;--leaf-color-danger-soft: #1a0808;--leaf-color-danger-soft-hover: #4d1718;--leaf-color-danger-soft-active: #4d1718;--leaf-color-danger-border: #4d1718;--leaf-color-danger-ink: #ff8284;--leaf-color-danger-active: #e64547;--leaf-color-danger-hover: #ff5f61;--leaf-color-warning-light-3: #fcc65b;--leaf-color-warning-light-7: #fee6b9;--leaf-color-warning-light-9: #fff7e8;--leaf-color-warning-dark-1: #e19c12;--leaf-color-warning-dark-3: #af790e;--leaf-color-warning-dark-7: #4b3406;--leaf-color-warning-dark-9: #191102;--leaf-color-warning-soft: #191102;--leaf-color-warning-soft-hover: #4b3406;--leaf-color-warning-soft-active: #4b3406;--leaf-color-warning-border: #4b3406;--leaf-color-warning-ink: #faad14;--leaf-color-info-light-3: #5ca0ff;--leaf-color-info-light-7: #b9d6ff;--leaf-color-info-light-9: #e8f1ff;--leaf-color-info-dark-1: #146be6;--leaf-color-info-dark-3: #0f53b3;--leaf-color-info-dark-7: #07244d;--leaf-color-info-dark-9: #020c1a;--leaf-color-info-soft: #020c1a;--leaf-color-info-soft-hover: #07244d;--leaf-color-info-soft-active: #07244d;--leaf-color-info-border: #07244d;--leaf-color-info-ink: #b9d6ff;color-scheme:dark}:root,:host{--leaf-spacing: 8px;--leaf-line-height: 20px;--leaf-line-height-sm: 18px;--leaf-line-height-lg: 22px;--leaf-heading-weight: 700;--leaf-shadow-xs: 0 1px 2px rgb(0 0 0 / 0.06);--leaf-shadow-sm: 0 2px 6px rgb(0 0 0 / 0.05), 0 1px 2px rgb(0 0 0 / 0.04);--leaf-shadow-md: 0 6px 20px rgb(0 0 0 / 0.07), 0 2px 5px rgb(0 0 0 / 0.04);--leaf-shadow-lg: 0 12px 32px rgb(0 0 0 / 0.1), 0 3px 8px rgb(0 0 0 / 0.06)}[data-leaf-scope]{font-weight:400}:root,:host,[data-leaf-scope]{--leaf-spacing-xs: calc(var(--leaf-spacing) * 0.5);--leaf-spacing-sm: var(--leaf-spacing);--leaf-spacing-md: calc(var(--leaf-spacing) * 2);--leaf-spacing-lg: calc(var(--leaf-spacing) * 3);--leaf-spacing-xl: calc(var(--leaf-spacing) * 4);--leaf-control-height-sm: max(1px, calc(var(--leaf-control-height) - 6px));--leaf-control-height-lg: calc(var(--leaf-control-height) + 6px);--leaf-motion-fast: calc(var(--leaf-motion-duration) * 0.6);--leaf-motion-slow: calc(var(--leaf-motion-duration) * 1.6);--leaf-motion-color: var(--leaf-motion-duration)}@keyframes leaf-content-in{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}@keyframes leaf-state-in{from{opacity:0;scale:.92}to{opacity:1;scale:1}}@media(prefers-reduced-motion: reduce){:where([class^=leaf-],[class*=" leaf-"]){animation:none !important;animation-delay:0s !important;transition-duration:0s !important;transition-delay:0s !important;scroll-behavior:auto !important}}.leaf-floating{--leaf-surface-inner-top: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-top) - var(--leaf-surface-border));--leaf-surface-inner-right: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-right) - var(--leaf-surface-border));--leaf-surface-inner-bottom: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-bottom) - var(--leaf-surface-border));--leaf-surface-inner-left: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-left) - var(--leaf-surface-border));--leaf-surface-inner-radius: var(--leaf-surface-inner-left) var(--leaf-surface-inner-right) var(--leaf-surface-inner-right) var(--leaf-surface-inner-left) / var(--leaf-surface-inner-top) var(--leaf-surface-inner-top) var(--leaf-surface-inner-bottom) var(--leaf-surface-inner-bottom);padding:var(--leaf-surface-padding-top) var(--leaf-surface-padding-right) var(--leaf-surface-padding-bottom) var(--leaf-surface-padding-left);border-radius:var(--leaf-surface-radius)}.leaf-floating{--leaf-surface-radius: var(--leaf-component-floating-radius, var(--leaf-radius-lg));--leaf-surface-padding: var(--leaf-component-floating-padding, 6px);--leaf-surface-border: var(--leaf-component-floating-border-width, var(--leaf-border-width, 1px));--leaf-surface-padding-top: var( --leaf-component-floating-padding-top, var(--leaf-surface-padding) );--leaf-surface-padding-right: var( --leaf-component-floating-padding-right, var(--leaf-surface-padding) );--leaf-surface-padding-bottom: var( --leaf-component-floating-padding-bottom, var(--leaf-surface-padding) );--leaf-surface-padding-left: var( --leaf-component-floating-padding-left, var(--leaf-surface-padding) );--leaf-floating-option-radius: var(--leaf-surface-inner-radius);--leaf-popup-x: 0px;--leaf-popup-y: -4px;--leaf-popup-scale: 0.985;--leaf-popup-scale-closing: 0.98;--leaf-popup-origin-x: center;--leaf-popup-origin-y: top;box-sizing:border-box;position:fixed;z-index:var(--leaf-z-index-popup, 1000);max-width:min(420px,100vw - 24px);max-height:min(360px,100vh - 32px);overflow:auto;border:var(--leaf-surface-border) solid var(--leaf-component-floating-border-color, var(--leaf-frame-border-color, var(--leaf-color-border)));color:var(--leaf-component-floating-color, var(--leaf-color-text));font-family:var(--leaf-font-family);font-size:var(--leaf-font-size);line-height:var(--leaf-line-height);background:var(--leaf-component-floating-background, var(--leaf-color-surface-raised, var(--leaf-color-surface)));box-shadow:var(--leaf-component-floating-shadow, var(--leaf-surface-shadow, var(--leaf-shadow-md)));overscroll-behavior:contain;opacity:1;translate:0 0;scale:1;transform-origin:var(--leaf-popup-origin-x) var(--leaf-popup-origin-y);transition:opacity var(--leaf-motion-duration) var(--leaf-motion-easing),translate var(--leaf-motion-slow) var(--leaf-motion-easing),scale var(--leaf-motion-slow) var(--leaf-motion-easing)}.leaf-floating[data-side=top]{--leaf-popup-y: 4px;--leaf-popup-origin-y: bottom}.leaf-floating[data-side=left]{--leaf-popup-x: 6px;--leaf-popup-y: 0px;--leaf-popup-origin-x: right;--leaf-popup-origin-y: center}.leaf-floating[data-side=right]{--leaf-popup-x: -6px;--leaf-popup-y: 0px;--leaf-popup-origin-x: left;--leaf-popup-origin-y: center}@starting-style{.leaf-floating{opacity:0;translate:var(--leaf-popup-x) var(--leaf-popup-y);scale:var(--leaf-popup-scale)}}.leaf-floating[data-positioned=false]{opacity:0;translate:var(--leaf-popup-x) var(--leaf-popup-y);scale:var(--leaf-popup-scale)}.leaf-floating[data-state=closing]{pointer-events:none;opacity:0;translate:var(--leaf-popup-x) var(--leaf-popup-y);scale:var(--leaf-popup-scale-closing);transition-duration:var(--leaf-motion-duration);transition-timing-function:var(--leaf-motion-easing)}.leaf-floating:focus{outline:none}@media(prefers-reduced-motion: reduce){.leaf-floating,.leaf-floating[data-state=closing]{transition:none}}.leaf-floating.leaf-scrollbar{width:auto;overflow:hidden;border-radius:var(--leaf-surface-radius)}.leaf-floating>.leaf-floating__viewport{position:relative;box-sizing:border-box;border-radius:var(--leaf-surface-inner-radius);overscroll-behavior:contain}.leaf-form-value{position:absolute;width:1px;height:1px;padding:0;border:0;clip-path:inset(50%);opacity:0;pointer-events:none}.leaf-floating__option{box-sizing:border-box;display:flex;width:100%;min-height:var(--leaf-density-option-height);align-items:center;gap:8px;padding:var(--leaf-density-option-padding) var(--leaf-density-field-padding);padding-block:min(var(--leaf-density-option-padding),max(0px,(var(--leaf-density-option-height) - var(--leaf-line-height-sm))/2));border:0;border-radius:var(--leaf-floating-option-radius, var(--leaf-radius-sm));color:inherit;background:rgba(0,0,0,0);font:inherit;line-height:var(--leaf-line-height-sm);text-align:start;cursor:pointer;transition:color var(--leaf-motion-color) var(--leaf-motion-easing),background-color var(--leaf-motion-color) var(--leaf-motion-easing),box-shadow var(--leaf-motion-color) var(--leaf-motion-easing)}.leaf-floating__option+.leaf-floating__option{margin-top:2px}.leaf-floating__option:hover:not(:disabled):not([aria-disabled=true]):not([aria-selected=true]):not([aria-checked=true]),.leaf-floating__option:focus-visible:not(:disabled):not([aria-disabled=true]):not([aria-selected=true]):not([aria-checked=true]),.leaf-floating__option[data-highlighted=true]:not([aria-disabled=true]):not([aria-selected=true]):not([aria-checked=true]){background:var(--leaf-color-option-hover)}.leaf-floating__option:active:not(:disabled):not([aria-disabled=true]):not([aria-selected=true]):not([aria-checked=true]){background:var(--leaf-color-option-hover)}.leaf-floating__option[aria-selected=true]{color:var(--leaf-color-text);font-weight:var(--leaf-font-weight);background:var(--leaf-color-option-hover)}.leaf-floating__option:disabled,.leaf-floating__option[aria-disabled=true]{color:var(--leaf-color-text-muted);cursor:not-allowed;opacity:.55}.leaf-floating__option:focus-visible{outline:2px solid var(--leaf-color-text-muted);outline-offset:-2px}.leaf-floating__option-label{min-width:0;overflow-wrap:anywhere}.leaf-floating__options{display:flex;flex-direction:column;gap:2px}@media(prefers-reduced-motion: reduce){.leaf-floating__option{transition:none}}.leaf-floating__highlight{position:absolute;top:0;left:0;box-sizing:border-box;width:var(--leaf-option-highlight-width, 0px);height:var(--leaf-option-highlight-height, var(--leaf-density-option-height));translate:var(--leaf-option-highlight-x, 0px) var(--leaf-option-highlight-y, 0px);border:1px solid var(--leaf-color-divider);border-radius:var(--leaf-floating-option-radius);background:var(--leaf-color-option-hover);pointer-events:none;transition:translate var(--leaf-motion-duration) var(--leaf-motion-spring),height var(--leaf-motion-fast) var(--leaf-motion-easing),width var(--leaf-motion-fast) var(--leaf-motion-easing),background-color var(--leaf-motion-color) var(--leaf-motion-easing),border-color var(--leaf-motion-color) var(--leaf-motion-easing)}.leaf-floating__highlight[data-ready=false],.leaf-floating__highlight[data-hidden]{visibility:hidden}.leaf-floating__highlight[data-selected]{background:var(--leaf-color-option-hover);border-color:rgba(0,0,0,0)}.leaf-floating[data-hover-motion] .leaf-floating__option{position:relative;z-index:1}.leaf-floating[data-hover-motion] .leaf-floating__option:hover:not(:disabled):not([aria-disabled=true]):not([aria-selected=true]),.leaf-floating[data-hover-motion] .leaf-floating__option:focus-visible:not(:disabled):not([aria-disabled=true]):not([aria-selected=true]),.leaf-floating[data-hover-motion] .leaf-floating__option[data-highlighted]:not([aria-disabled=true]):not([aria-selected=true]),.leaf-floating[data-hover-motion] .leaf-floating__option:active:not(:disabled):not([aria-disabled=true]):not([aria-selected=true]){background:rgba(0,0,0,0)}@media(prefers-reduced-motion: reduce){.leaf-floating__highlight{transition:none}}.leaf-floating__empty{padding:12px 10px;color:var(--leaf-color-text-muted);font-size:var(--leaf-font-size-sm);text-align:center}.leaf-floating__empty--feedback{box-sizing:border-box;display:flex;min-height:112px;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 16px}.leaf-floating__empty--feedback>svg{flex:none}.leaf-floating__empty--feedback>div{min-width:0;max-width:100%;overflow-wrap:anywhere}.leaf-floating__loading-icon{color:var(--leaf-color-primary-ink, var(--leaf-color-primary));animation:var(--leaf-motion-animation, leaf-floating-spin calc(var(--leaf-motion-duration) * 4) linear infinite);animation-play-state:var(--leaf-motion-play-state, running)}@keyframes leaf-floating-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion: reduce){.leaf-floating__loading-icon{animation:none}}.leaf-button{--leaf-danger-soft-background: var(--leaf-color-danger-soft);--leaf-danger-soft-active-background: var(--leaf-color-danger-soft-active);--leaf-button-border-width: var( --leaf-component-button-border-width, var(--leaf-border-width, 1px) );--leaf-button-color: var(--leaf-color-primary);--leaf-button-ink: var(--leaf-color-primary-ink, var(--leaf-button-color));--leaf-button-ink-active: var(--leaf-color-primary-ink-active, var(--leaf-button-active));--leaf-button-on-color: var(--leaf-color-on-primary);--leaf-focus-color: var(--leaf-color-text-muted);--leaf-button-active: var(--leaf-color-primary-active, var(--leaf-button-color));--leaf-button-active-color: var(--leaf-button-rest-color);--leaf-button-active-background: var(--leaf-button-rest-background);--leaf-button-active-border: var(--leaf-button-rest-border);--leaf-button-hover-border: var(--leaf-button-base-border);--leaf-button-active-shadow: var(--leaf-button-base-shadow);box-sizing:border-box;display:inline-flex;position:relative;align-items:center;justify-content:center;gap:var(--leaf-component-button-gap, 6px);min-height:var(--leaf-button-height, var(--leaf-current-control-height));padding:var(--leaf-component-button-padding, 0 calc(var(--leaf-button-height, var(--leaf-current-control-height)) * 0.42));border:var(--leaf-button-border-width) solid rgba(0,0,0,0);border-radius:var(--leaf-component-button-radius, var(--leaf-button-radius, var(--leaf-radius)));font-family:var(--leaf-font-family);font-size:var(--leaf-component-button-font-size, var(--leaf-current-font-size));font-weight:var(--leaf-font-weight);line-height:var(--leaf-line-height);text-decoration:none;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;appearance:none;transition:background-color var(--leaf-motion-color) var(--leaf-motion-easing),border-color var(--leaf-motion-color) var(--leaf-motion-easing),color var(--leaf-motion-color) var(--leaf-motion-easing),box-shadow var(--leaf-motion-color) var(--leaf-motion-easing),opacity var(--leaf-motion-color) var(--leaf-motion-easing);--leaf-current-font-size: var(--leaf-font-size);--leaf-current-control-height: var(--leaf-control-height, 34px)}.leaf-button--sm{--leaf-current-control-height: var(--leaf-control-height-sm, 28px);--leaf-current-font-size: var(--leaf-font-size-sm, 13px)}.leaf-button--lg{--leaf-current-control-height: var(--leaf-control-height-lg, 40px);--leaf-current-font-size: var(--leaf-font-size-lg, 16px)}.leaf-button:focus-visible{outline:2px solid var(--leaf-color-focus, var(--leaf-focus-color, var(--leaf-color-text-muted)));outline-offset:2px}.leaf-button:disabled{cursor:not-allowed;opacity:.45}.leaf-button[data-loading]{cursor:default;opacity:1}.leaf-button__content{display:inline-flex;align-items:center;justify-content:center;gap:inherit;min-width:0;transition:opacity var(--leaf-motion-duration) var(--leaf-motion-easing),transform var(--leaf-motion-duration) var(--leaf-motion-easing)}.leaf-button__loading{position:absolute;inset:0;display:grid;place-items:center;opacity:0;transform:scale(0.7);pointer-events:none;transition:opacity var(--leaf-motion-duration) var(--leaf-motion-easing),transform var(--leaf-motion-duration) var(--leaf-motion-easing)}.leaf-button[data-loading] .leaf-button__content{opacity:0;transform:translateY(3px)}.leaf-button[data-loading] .leaf-button__loading{opacity:1;transform:scale(1)}.leaf-button[data-loading] .leaf-button__spinner{animation:var(--leaf-motion-animation, leaf-spin calc(var(--leaf-motion-duration) * 4.5) linear infinite);animation-play-state:var(--leaf-motion-play-state, running)}.leaf-button--danger{--leaf-button-color: var(--leaf-color-danger);--leaf-button-ink: var(--leaf-color-danger-ink);--leaf-button-ink-active: var(--leaf-color-danger-ink);--leaf-button-on-color: var(--leaf-color-on-danger);--leaf-button-active: var(--leaf-color-danger-active, var(--leaf-button-color))}.leaf-button--icon-only{width:var(--leaf-button-height, var(--leaf-current-control-height));padding:0}.leaf-button--full-width{width:100%}.leaf-button--link{align-self:center;min-height:0;padding:0;border:0;border-radius:0}.leaf-button--link.leaf-button--icon-only{width:auto}.leaf-button__icon,.leaf-button__spinner{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:16px;height:16px}.leaf-button__icon svg,.leaf-button__spinner svg{width:100%;height:100%}.leaf-button:is(.leaf-button--solid){--leaf-button-rest-color: var(--leaf-button-on-color);--leaf-button-rest-background: var(--leaf-button-color);--leaf-button-rest-border: transparent;--leaf-button-rest-shadow: none;--leaf-button-active-background: var(--leaf-button-active)}.leaf-button:is(.leaf-button--outline){--leaf-button-rest-color: var(--leaf-color-text);--leaf-button-rest-background: var(--leaf-color-surface);--leaf-button-rest-border: var(--leaf-color-border);--leaf-button-rest-shadow: var(--leaf-shadow-xs);--leaf-button-hover-border: var( --leaf-component-button-border-color, var(--leaf-frame-border-color, var(--leaf-color-border-hover)) );--leaf-button-active-color: var(--leaf-button-base-color);--leaf-button-active-background: color-mix(in srgb, var(--leaf-button-base-background), var(--leaf-color-surface-muted));--leaf-button-active-border: var(--leaf-button-base-border)}.leaf-button:is(.leaf-button--outline):hover:not(:disabled):not([data-loading]):where(:not(:focus-visible)){--leaf-button-active-border: var(--leaf-button-hover-border)}.leaf-button:is(.leaf-button--outline).leaf-button--danger{--leaf-button-rest-color: var(--leaf-color-danger-ink);--leaf-button-rest-border: var(--leaf-button-color);--leaf-button-hover-border: var( --leaf-component-button-border-color, var(--leaf-frame-border-color, var(--leaf-button-ink)) )}.leaf-button:is(.leaf-button--link){--leaf-button-rest-color: var(--leaf-button-ink);--leaf-button-rest-background: transparent;--leaf-button-rest-border: transparent;--leaf-button-rest-shadow: none;--leaf-button-active-color: var(--leaf-button-ink-active);--leaf-button-active-background: transparent;--leaf-button-active-border: transparent}.leaf-button:is(.leaf-button--link).leaf-button--danger:active:not(:disabled):not([data-loading]){text-decoration:underline;text-underline-offset:3px}.leaf-button:is(.leaf-button--text){--leaf-text-action-color: var(--leaf-color-text);--leaf-text-action-background: color-mix( in srgb, var(--leaf-color-option-hover) 50%, transparent );--leaf-text-action-active-background: var(--leaf-color-option-hover);--leaf-button-rest-color: var(--leaf-text-action-color);--leaf-button-rest-background: transparent;--leaf-button-rest-border: transparent;--leaf-button-rest-shadow: none;--leaf-button-hover-background: var(--leaf-text-action-background);--leaf-button-active-background: var(--leaf-text-action-active-background)}.leaf-button:is(.leaf-button--text).leaf-button--danger{--leaf-button-rest-color: var(--leaf-color-danger-ink)}.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--text,.leaf-button--link){--leaf-button-base-color: var(--leaf-component-button-color, var(--leaf-button-rest-color));--leaf-button-base-background: var( --leaf-component-button-background, var(--leaf-button-rest-background) );--leaf-button-base-border: var( --leaf-component-button-border-color, var(--leaf-frame-border-color, var(--leaf-button-rest-border)) );--leaf-button-base-shadow: var( --leaf-component-button-shadow, var(--leaf-control-shadow, var(--leaf-button-rest-shadow)) );color:var(--leaf-button-base-color);background:var(--leaf-button-base-background);border-color:var(--leaf-button-base-border);box-shadow:var(--leaf-button-base-shadow)}.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--text,.leaf-button--link):focus-visible:not(:disabled){color:var(--leaf-component-button-focus-color, var(--leaf-button-base-color));background:var(--leaf-component-button-focus-background, var(--leaf-button-base-background));border-color:var(--leaf-component-button-focus-border-color, var(--leaf-button-base-border));box-shadow:var(--leaf-component-button-focus-shadow, var(--leaf-button-base-shadow))}.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--text,.leaf-button--link):hover:not(:disabled):not([data-loading]):where(:not(:focus-visible)){color:var(--leaf-component-button-hover-color, var(--leaf-button-base-color));background:var(--leaf-component-button-hover-background, var(--leaf-button-hover-background, var(--leaf-button-base-background)));border-color:var(--leaf-component-button-hover-border-color, var(--leaf-button-hover-border));box-shadow:var(--leaf-component-button-hover-shadow, var(--leaf-button-base-shadow))}.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--text,.leaf-button--link):active:not(:disabled):not([data-loading]){color:var(--leaf-component-button-active-color, var(--leaf-button-active-color));background:var(--leaf-component-button-active-background, var(--leaf-button-active-background));border-color:var(--leaf-component-button-active-border-color, var(--leaf-component-button-border-color, var(--leaf-frame-border-color, var(--leaf-button-active-border))));box-shadow:var(--leaf-component-button-active-shadow, var(--leaf-button-active-shadow))}.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--text,.leaf-button--link):disabled{color:var(--leaf-component-button-disabled-color, var(--leaf-button-base-color));background:var(--leaf-component-button-disabled-background, var(--leaf-button-base-background));border-color:var(--leaf-component-button-disabled-border-color, var(--leaf-button-base-border));box-shadow:var(--leaf-component-button-disabled-shadow, var(--leaf-button-base-shadow))}@keyframes leaf-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion: reduce){.leaf-button,.leaf-button__content,.leaf-button__loading{transition:none}.leaf-button[data-loading] .leaf-button__spinner{animation:none}}@media(forced-colors: active){.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--link,.leaf-button--text){border-color:ButtonText}.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--link,.leaf-button--text):disabled{color:GrayText;border-color:GrayText}.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--link,.leaf-button--text):focus-visible{outline-color:Highlight}}.leaf-button-group{display:inline-flex;align-items:stretch;gap:8px}.leaf-button-group--attached{gap:0}.leaf-button-group--attached>.leaf-button{position:relative}.leaf-button-group--attached>.leaf-button:not(:first-child){border-start-start-radius:0;border-end-start-radius:0;margin-inline-start:calc(-1*var(--leaf-button-border-width))}.leaf-button-group--attached>.leaf-button:not(:last-child){border-start-end-radius:0;border-end-end-radius:0}.leaf-button-group--attached>.leaf-button:hover:not(:disabled),.leaf-button-group--attached>.leaf-button:active:not(:disabled),.leaf-button-group--attached>.leaf-button:focus-visible{z-index:1}.leaf-button-group{border:0;padding:0;margin:0;min-width:0}.leaf-split-button{isolation:isolate}.leaf-split-button.leaf-button-group--attached>.leaf-button{z-index:1}.leaf-split-button>.leaf-button--outline{--leaf-split-button-divider-color: var( --leaf-component-button-border-color, var(--leaf-frame-border-color, var(--leaf-color-primary-border, var(--leaf-color-border))) )}.leaf-split-button>.leaf-button--outline.leaf-button--danger{--leaf-split-button-divider-color: var( --leaf-component-button-border-color, var(--leaf-frame-border-color, var(--leaf-button-color)) )}.leaf-split-button>.leaf-button--outline:first-child{border-inline-end-color:var(--leaf-split-button-divider-color)}.leaf-split-button>.leaf-button--outline:not(:first-child){border-inline-start-color:var(--leaf-split-button-divider-color)}.leaf-split-button>.leaf-button+.leaf-button:not(.leaf-button--outline){margin-inline-start:0}.leaf-split-button>.leaf-button+.leaf-button::before{content:"";position:absolute;z-index:2;inset-block:22%;inset-inline-start:0;width:1px;background:var(--leaf-component-button-border-color, var(--leaf-frame-border-color, var(--leaf-color-border)));pointer-events:none}.leaf-split-button>.leaf-button+.leaf-button.leaf-button--solid::before{background:color-mix(in srgb, var(--leaf-button-on-color) 32%, transparent)}.leaf-split-button>.leaf-button+.leaf-button.leaf-button--outline::before{display:none}.leaf-split-button>.leaf-button+.leaf-button.leaf-button--link{margin-inline-start:8px}.leaf-split-button>.leaf-button+.leaf-button.leaf-button--link::before{inset-inline-start:-4px}@media(forced-colors: active){.leaf-split-button>.leaf-button+.leaf-button::before,.leaf-split-button>.leaf-button+.leaf-button.leaf-button--solid::before{background:ButtonText}}.leaf-button{--leaf-current-control-height: var(--leaf-component-button-height, var(--leaf-control-height));--leaf-current-font-size: var(--leaf-component-button-font-size, var(--leaf-font-size))}.leaf-button--sm{--leaf-current-control-height: var( --leaf-component-button-height-sm, var(--leaf-control-height-sm) );--leaf-current-font-size: var(--leaf-font-size-sm)}.leaf-button--lg{--leaf-current-control-height: var( --leaf-component-button-height-lg, var(--leaf-control-height-lg) );--leaf-current-font-size: var(--leaf-font-size-lg)}.leaf-scrollbar{display:flex;flex-direction:column;position:relative;box-sizing:border-box;width:100%;min-width:0;min-height:0;max-width:100%;overflow:hidden;border-radius:inherit;--leaf-scrollbar-inset: 4px;--leaf-scrollbar-thickness: 8px;--leaf-scrollbar-thumb-opacity: 0.45;--leaf-scrollbar-thumb-active-opacity: 0.75}.leaf-scrollbar[data-persistent]{--leaf-scrollbar-gutter: calc( var(--leaf-scrollbar-thickness) + 2 * var(--leaf-scrollbar-inset) )}.leaf-scrollbar[data-persistent]:not([data-orientation=horizontal]){padding-inline-end:var(--leaf-scrollbar-gutter)}.leaf-scrollbar[data-persistent]:not([data-orientation=vertical]){padding-block-end:var(--leaf-scrollbar-gutter)}.leaf-scrollbar--sm{--leaf-scrollbar-inset: 2px;--leaf-scrollbar-thickness: 6px;--leaf-scrollbar-thumb-opacity: 0.3;--leaf-scrollbar-thumb-active-opacity: 0.55}.leaf-scrollbar--external{display:block;overflow:visible;max-width:none}.leaf-scrollbar--external>textarea{scrollbar-width:none}.leaf-scrollbar--external>textarea::-webkit-scrollbar{display:none}.leaf-scrollbar__viewport{flex:1 1 auto;min-height:0;width:100%;height:100%;border-radius:inherit;overscroll-behavior:auto;scrollbar-width:none}.leaf-scrollbar__viewport::-webkit-scrollbar{display:none}.leaf-scrollbar__viewport:focus-visible{outline:2px solid var(--leaf-color-focus, var(--leaf-focus-color, var(--leaf-color-text-muted)));outline-offset:2px;outline-offset:-3px}.leaf-scrollbar__content{display:flow-root;min-width:100%}.leaf-scrollbar__bar{position:absolute;z-index:4;opacity:0;pointer-events:none;transition:opacity var(--leaf-motion-duration) var(--leaf-motion-easing)}.leaf-scrollbar__bar--vertical{inset-inline-end:var(--leaf-scrollbar-inset);width:var(--leaf-scrollbar-thickness)}.leaf-scrollbar__bar--horizontal{bottom:var(--leaf-scrollbar-inset);height:var(--leaf-scrollbar-thickness)}.leaf-scrollbar__thumb{position:absolute;inset-block-start:0;inset-inline-start:0;box-sizing:border-box;width:100%;height:100%;border:1px solid rgba(0,0,0,0);border-radius:999px;background:var(--leaf-color-text-muted);background-clip:padding-box;opacity:var(--leaf-scrollbar-thumb-opacity);pointer-events:none;transition:opacity var(--leaf-motion-fast) var(--leaf-motion-easing)}.leaf-scrollbar__bar--horizontal .leaf-scrollbar__thumb{left:0;right:auto}.leaf-scrollbar__bar:hover .leaf-scrollbar__thumb,.leaf-scrollbar__bar:focus-within .leaf-scrollbar__thumb,.leaf-scrollbar[data-dragging] .leaf-scrollbar__thumb{opacity:var(--leaf-scrollbar-thumb-active-opacity)}.leaf-scrollbar__control{position:absolute;inset:0;width:100%;height:100%;padding:0;margin:0;opacity:0;cursor:pointer;touch-action:none}.leaf-scrollbar__bar:has(:focus-visible){outline:2px solid var(--leaf-color-primary-indicator, var(--leaf-color-primary));outline-offset:2px;border-radius:999px}.leaf-scrollbar__viewport:focus:not(:focus-visible){outline:none}.leaf-scrollbar:hover>.leaf-scrollbar__bar,.leaf-scrollbar:focus-within>.leaf-scrollbar__bar,.leaf-scrollbar[data-scrollbar=always]>.leaf-scrollbar__bar,.leaf-scrollbar[data-persistent]>.leaf-scrollbar__bar,.leaf-scrollbar[data-scrolling]>.leaf-scrollbar__bar,.leaf-scrollbar[data-dragging]>.leaf-scrollbar__bar{opacity:1;pointer-events:auto}@media(prefers-reduced-motion: reduce){.leaf-scrollbar__bar,.leaf-scrollbar__thumb{transition:none}}@media(forced-colors: active){.leaf-scrollbar__thumb{background:CanvasText;opacity:1;forced-color-adjust:none}}.leaf-alert{--leaf-feedback-color: var(--leaf-color-success);display:flex;align-items:flex-start;gap:var(--leaf-component-alert-gap, 12px);color:var(--leaf-component-alert-color, var(--leaf-color-text));font:var(--leaf-font-size)/var(--leaf-line-height) var(--leaf-font-family);border-radius:var(--leaf-component-alert-radius, var(--leaf-radius-md));border:var(--leaf-component-alert-border-width, var(--leaf-border-width, 1px)) solid var(--leaf-component-alert-border-color, var(--leaf-frame-border-color, var(--leaf-color-divider)));box-shadow:var(--leaf-component-alert-shadow, var(--leaf-surface-shadow, none));padding:var(--leaf-component-alert-padding, 14px 16px)}.leaf-alert--info{--leaf-feedback-color: var(--leaf-color-info)}.leaf-alert--warning{--leaf-feedback-color: var(--leaf-color-warning)}.leaf-alert--danger,.leaf-alert--error{--leaf-feedback-color: var(--leaf-color-danger)}.leaf-alert{box-sizing:border-box}.leaf-alert:not([data-description]){align-items:center}.leaf-alert{max-height:var(--leaf-alert-height, none);transition:opacity var(--leaf-motion-duration) var(--leaf-motion-easing),max-height var(--leaf-motion-duration) var(--leaf-motion-easing),padding-block var(--leaf-motion-duration) var(--leaf-motion-easing),border-block-width var(--leaf-motion-duration) var(--leaf-motion-easing),border-color var(--leaf-motion-duration) var(--leaf-motion-easing),background-color var(--leaf-motion-duration) var(--leaf-motion-easing);background:var(--leaf-component-alert-background, color-mix(in srgb, var(--leaf-color-surface), var(--leaf-color-surface-muted)))}.leaf-alert[data-state=closing]{max-height:0;opacity:0;padding-block:0;border-block-width:0;overflow:hidden;pointer-events:none}.leaf-alert__icon{display:inline-flex;flex:0 0 28px;align-items:center;justify-content:center;height:28px;border-radius:8px;color:var(--leaf-feedback-color);background:rgba(0,0,0,0)}.leaf-alert__content{flex:1;min-width:0}.leaf-alert__title{min-height:0;display:flex;align-items:center;font-weight:var(--leaf-font-weight)}.leaf-alert__description{margin-block-start:2px;color:var(--leaf-color-text-muted);font-size:var(--leaf-font-size-sm);line-height:var(--leaf-line-height-sm)}.leaf-alert__extra{display:flex;align-items:center;align-self:center;flex-shrink:0}.leaf-alert__close{align-items:center;justify-content:center;min-width:28px;min-height:28px;--leaf-text-action-color: var(--leaf-color-text);--leaf-text-action-background: color-mix( in srgb, var(--leaf-color-option-hover) 50%, transparent );--leaf-text-action-active-background: var(--leaf-color-option-hover);color:var(--leaf-text-action-color);background:rgba(0,0,0,0);cursor:pointer;transition:background-color var(--leaf-motion-color) var(--leaf-motion-easing),border-color var(--leaf-motion-color) var(--leaf-motion-easing),color var(--leaf-motion-color) var(--leaf-motion-easing),box-shadow var(--leaf-motion-color) var(--leaf-motion-easing),opacity var(--leaf-motion-color) var(--leaf-motion-easing)}.leaf-alert__close:hover:not(:disabled){color:var(--leaf-text-action-color);background:var(--leaf-text-action-background)}.leaf-alert__close:active:not(:disabled){color:var(--leaf-text-action-color);background:var(--leaf-text-action-active-background)}.leaf-alert__close:focus-visible{outline:2px solid var(--leaf-color-focus, var(--leaf-focus-color, var(--leaf-color-text-muted)));outline-offset:2px}.leaf-alert__close:disabled{cursor:not-allowed}@media(prefers-reduced-motion: reduce){.leaf-alert__close{transition:none}}@media(prefers-reduced-motion: reduce){.leaf-alert,.leaf-alert__close{transition:none}}.leaf-alert__close,.leaf-message__close{flex-shrink:0;display:inline-flex;border:0;padding:2px;border-radius:4px;--leaf-text-action-color: var(--leaf-color-text);--leaf-text-action-background: color-mix( in srgb, var(--leaf-color-option-hover) 50%, transparent );--leaf-text-action-active-background: var(--leaf-color-option-hover);color:var(--leaf-text-action-color);background:rgba(0,0,0,0);cursor:pointer;transition:background-color var(--leaf-motion-color) var(--leaf-motion-easing),border-color var(--leaf-motion-color) var(--leaf-motion-easing),color var(--leaf-motion-color) var(--leaf-motion-easing),box-shadow var(--leaf-motion-color) var(--leaf-motion-easing),opacity var(--leaf-motion-color) var(--leaf-motion-easing)}.leaf-alert__close:hover:not(:disabled),.leaf-message__close:hover:not(:disabled){color:var(--leaf-text-action-color);background:var(--leaf-text-action-background)}.leaf-alert__close:active:not(:disabled),.leaf-message__close:active:not(:disabled){color:var(--leaf-text-action-color);background:var(--leaf-text-action-active-background)}.leaf-alert__close:focus-visible,.leaf-message__close:focus-visible{outline:2px solid var(--leaf-color-focus, var(--leaf-focus-color, var(--leaf-color-text-muted)));outline-offset:2px}.leaf-alert__close:disabled,.leaf-message__close:disabled{cursor:not-allowed}@media(prefers-reduced-motion: reduce){.leaf-alert__close,.leaf-message__close{transition:none}}.leaf-confirm{--leaf-danger-soft-background: var(--leaf-color-danger-soft);--leaf-danger-soft-active-background: var(--leaf-color-danger-soft-active);border-width:var(--leaf-component-confirm-border-width, var(--leaf-component-modal-border-width, var(--leaf-border-width, 1px)));border-color:var(--leaf-component-confirm-border-color, var(--leaf-component-modal-border-color, var(--leaf-frame-border-color, var(--leaf-color-divider))));background:var(--leaf-component-confirm-background, var(--leaf-component-modal-background, var(--leaf-color-surface)));box-shadow:var(--leaf-component-confirm-shadow, var(--leaf-component-modal-shadow, var(--leaf-surface-shadow, var(--leaf-modal-default-shadow))));--leaf-feedback-color: var(--leaf-color-text)}.leaf-confirm--danger{--leaf-feedback-color: var(--leaf-color-danger)}.leaf-confirm--success{--leaf-feedback-color: var(--leaf-color-success)}.leaf-confirm--warning{--leaf-feedback-color: var(--leaf-color-warning)}.leaf-confirm--info{--leaf-feedback-color: var(--leaf-color-info)}.leaf-confirm>.leaf-modal__header .leaf-modal__heading h2{display:flex;align-items:center;gap:12px;font-size:var(--leaf-component-confirm-font-size, var(--leaf-font-size-lg));font-weight:var(--leaf-heading-weight);line-height:var(--leaf-line-height-lg)}.leaf-confirm>.leaf-modal__footer{gap:8px}.leaf-confirm__title{min-width:0;overflow-wrap:anywhere}.leaf-confirm--titled-icon>.leaf-modal__body .leaf-confirm__body{padding-inline-start:36px}.leaf-confirm.leaf-modal>.leaf-modal__header+.leaf-modal__body .leaf-modal__content{padding-block-start:8px}.leaf-confirm__body{display:flex;align-items:flex-start;gap:12px}.leaf-confirm__content{flex:1;min-width:0}.leaf-confirm__icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;height:24px;color:var(--leaf-feedback-color);scale:1;opacity:1;transition:scale var(--leaf-motion-slow) var(--leaf-motion-spring),opacity var(--leaf-motion-duration) var(--leaf-motion-easing)}@starting-style{.leaf-confirm__icon{scale:.82;opacity:0}}.leaf-confirm__icon>svg{width:24px;height:24px}.leaf-confirm--default .leaf-confirm__icon{color:var(--leaf-color-text-muted)}.leaf-confirm-description{font-size:var(--leaf-component-confirm-font-size, var(--leaf-font-size));color:var(--leaf-component-confirm-color, var(--leaf-color-text-muted));line-height:var(--leaf-line-height);overflow-wrap:anywhere}.leaf-confirm-error{margin-block:12px 0;padding:8px 10px;border-radius:var(--leaf-radius-sm);color:var(--leaf-color-danger-ink);background:var(--leaf-danger-soft-background);opacity:1;translate:0 0;transition:opacity var(--leaf-motion-duration) var(--leaf-motion-easing),translate var(--leaf-motion-duration) var(--leaf-motion-easing)}@starting-style{.leaf-confirm-error{opacity:0;translate:0 4px}}.leaf-feedback-spinner{animation:var(--leaf-motion-animation, leaf-spin calc(var(--leaf-motion-duration) * 4.5) linear infinite);animation-play-state:var(--leaf-motion-play-state, running)}@media(prefers-reduced-motion: reduce){.leaf-confirm__icon,.leaf-confirm-error{transition:none}.leaf-feedback-spinner{animation:none}}
1
+ :root,:host{--leaf-color-primary: #1e964f;--leaf-color-success: #52c41a;--leaf-color-danger: #ff4d4f;--leaf-color-warning: #faad14;--leaf-color-info: #1677ff;--leaf-color-neutral: #707070;--leaf-color-on-primary: #ffffff;--leaf-color-on-danger: #ffffff;--leaf-color-on-warning: #ffffff;--leaf-color-on-info: #ffffff;--leaf-color-on-success: #ffffff;--leaf-color-text: #1f1f1f;--leaf-color-text-muted: #6f6f6f;--leaf-color-surface: #ffffff;--leaf-color-surface-muted: #f5f5f5;--leaf-color-border: #e4e4e4;--leaf-color-neutral-100: #f5f5f5;--leaf-color-neutral-200: #e4e4e4;--leaf-color-neutral-300: #cacaca;--leaf-color-neutral-400: #ababab;--leaf-color-neutral-500: #8c8c8c;--leaf-color-neutral-600: #6f6f6f;--leaf-color-neutral-700: #525252;--leaf-color-neutral-800: #383838;--leaf-color-neutral-900: #1f1f1f;--leaf-color-text-subtle: #6f6f6f;--leaf-color-surface-raised: #ffffff;--leaf-color-border-hover: #cacaca;--leaf-color-divider: #e4e4e4;--leaf-color-option-hover: #e4e4e4;--leaf-color-primary-light-3: #62b684;--leaf-color-primary-light-7: #bce0ca;--leaf-color-primary-light-9: #e9f5ed;--leaf-color-primary-dark-1: #1b8747;--leaf-color-primary-dark-3: #156937;--leaf-color-primary-dark-7: #092d18;--leaf-color-primary-dark-9: #030f08;--leaf-color-primary-soft: #e9f5ed;--leaf-color-primary-soft-hover: #bce0ca;--leaf-color-primary-soft-active: #bce0ca;--leaf-color-primary-border: #bce0ca;--leaf-color-primary-ink: #156937;--leaf-color-primary-indicator: #1e964f;--leaf-color-primary-focus: #1e964f;--leaf-color-primary-fill-border: transparent;--leaf-color-primary-link-active: #11703c;--leaf-color-primary-active: #1b8747;--leaf-color-primary-ink-active: #135f32;--leaf-color-primary-link-hover: #5bb079;--leaf-color-primary-hover: #3ba363;--leaf-color-primary-ink-hover: #156937;--leaf-color-success-light-3: #86d65f;--leaf-color-success-light-7: #cbedba;--leaf-color-success-light-9: #eef9e8;--leaf-color-success-dark-1: #4ab017;--leaf-color-success-dark-3: #398912;--leaf-color-success-dark-7: #193b08;--leaf-color-success-dark-9: #081403;--leaf-color-success-soft: #eef9e8;--leaf-color-success-soft-hover: #cbedba;--leaf-color-success-soft-active: #cbedba;--leaf-color-success-border: #cbedba;--leaf-color-success-ink: #193b08;--leaf-color-danger-light-3: #ff8284;--leaf-color-danger-light-7: #ffcaca;--leaf-color-danger-light-9: #ffeded;--leaf-color-danger-dark-1: #e64547;--leaf-color-danger-dark-3: #b33637;--leaf-color-danger-dark-7: #4d1718;--leaf-color-danger-dark-9: #1a0808;--leaf-color-danger-soft: #ffeded;--leaf-color-danger-soft-hover: #ffcaca;--leaf-color-danger-soft-active: #ffcaca;--leaf-color-danger-border: #ffcaca;--leaf-color-danger-ink: #b33637;--leaf-color-danger-link-active: #d9363e;--leaf-color-danger-active: #e64547;--leaf-color-danger-link-hover: #ff7875;--leaf-color-danger-hover: #ff5f61;--leaf-color-warning-light-3: #fcc65b;--leaf-color-warning-light-7: #fee6b9;--leaf-color-warning-light-9: #fff7e8;--leaf-color-warning-dark-1: #e19c12;--leaf-color-warning-dark-3: #af790e;--leaf-color-warning-dark-7: #4b3406;--leaf-color-warning-dark-9: #191102;--leaf-color-warning-soft: #fff7e8;--leaf-color-warning-soft-hover: #fee6b9;--leaf-color-warning-soft-active: #fee6b9;--leaf-color-warning-border: #fee6b9;--leaf-color-warning-ink: #4b3406;--leaf-color-info-light-3: #5ca0ff;--leaf-color-info-light-7: #b9d6ff;--leaf-color-info-light-9: #e8f1ff;--leaf-color-info-dark-1: #146be6;--leaf-color-info-dark-3: #0f53b3;--leaf-color-info-dark-7: #07244d;--leaf-color-info-dark-9: #020c1a;--leaf-color-info-soft: #e8f1ff;--leaf-color-info-soft-hover: #b9d6ff;--leaf-color-info-soft-active: #b9d6ff;--leaf-color-info-border: #b9d6ff;--leaf-color-info-ink: #0f53b3;--leaf-control-height: 34px;--leaf-density-form-gap: 16px;--leaf-density-label-gap: 6px;--leaf-density-row-padding: 12px;--leaf-density-option-height: max(24px, calc(var(--leaf-control-height) - 4px));--leaf-density-option-padding: 6px;--leaf-density-field-padding: 10px;--leaf-density-dialog-block: 20px;--leaf-density-dialog-inline: 24px;--leaf-density-dialog-gap: 16px;--leaf-z-index-popup: 1000;--leaf-z-index-modal: 1100;--leaf-z-index-message: 1200;--leaf-radius: 8px;--leaf-radius-sm: calc(var(--leaf-radius) * 0.5);--leaf-radius-md: calc(var(--leaf-radius) * 1.5);--leaf-radius-lg: calc(var(--leaf-radius) * 2);--leaf-choice-radius: calc(var(--leaf-radius) * 0.5);--leaf-font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;--leaf-font-size: 14px;--leaf-font-size-sm: max(1px, calc(var(--leaf-font-size) - 1px));--leaf-font-size-lg: calc(var(--leaf-font-size) + 2px);--leaf-font-weight: 500;--leaf-motion-duration: 200ms;--leaf-motion-easing: cubic-bezier(0.22, 1, 0.36, 1);--leaf-motion-spring: cubic-bezier(0.22, 1.28, 0.36, 1);--leaf-motion-play-state: running}[data-leaf-theme=light]{--leaf-color-primary: #1e964f;--leaf-color-success: #52c41a;--leaf-color-danger: #ff4d4f;--leaf-color-warning: #faad14;--leaf-color-info: #1677ff;--leaf-color-neutral: #707070;--leaf-color-on-primary: #ffffff;--leaf-color-on-danger: #ffffff;--leaf-color-on-warning: #ffffff;--leaf-color-on-info: #ffffff;--leaf-color-on-success: #ffffff;--leaf-color-text: #1f1f1f;--leaf-color-text-muted: #6f6f6f;--leaf-color-surface: #ffffff;--leaf-color-surface-muted: #f5f5f5;--leaf-color-border: #e4e4e4;--leaf-color-neutral-100: #f5f5f5;--leaf-color-neutral-200: #e4e4e4;--leaf-color-neutral-300: #cacaca;--leaf-color-neutral-400: #ababab;--leaf-color-neutral-500: #8c8c8c;--leaf-color-neutral-600: #6f6f6f;--leaf-color-neutral-700: #525252;--leaf-color-neutral-800: #383838;--leaf-color-neutral-900: #1f1f1f;--leaf-color-text-subtle: #6f6f6f;--leaf-color-surface-raised: #ffffff;--leaf-color-border-hover: #cacaca;--leaf-color-divider: #e4e4e4;--leaf-color-option-hover: #e4e4e4;--leaf-color-primary-light-3: #62b684;--leaf-color-primary-light-7: #bce0ca;--leaf-color-primary-light-9: #e9f5ed;--leaf-color-primary-dark-1: #1b8747;--leaf-color-primary-dark-3: #156937;--leaf-color-primary-dark-7: #092d18;--leaf-color-primary-dark-9: #030f08;--leaf-color-primary-soft: #e9f5ed;--leaf-color-primary-soft-hover: #bce0ca;--leaf-color-primary-soft-active: #bce0ca;--leaf-color-primary-border: #bce0ca;--leaf-color-primary-ink: #156937;--leaf-color-primary-indicator: #1e964f;--leaf-color-primary-focus: #1e964f;--leaf-color-primary-fill-border: transparent;--leaf-color-primary-link-active: #11703c;--leaf-color-primary-active: #1b8747;--leaf-color-primary-ink-active: #135f32;--leaf-color-primary-link-hover: #5bb079;--leaf-color-primary-hover: #3ba363;--leaf-color-primary-ink-hover: #156937;--leaf-color-success-light-3: #86d65f;--leaf-color-success-light-7: #cbedba;--leaf-color-success-light-9: #eef9e8;--leaf-color-success-dark-1: #4ab017;--leaf-color-success-dark-3: #398912;--leaf-color-success-dark-7: #193b08;--leaf-color-success-dark-9: #081403;--leaf-color-success-soft: #eef9e8;--leaf-color-success-soft-hover: #cbedba;--leaf-color-success-soft-active: #cbedba;--leaf-color-success-border: #cbedba;--leaf-color-success-ink: #193b08;--leaf-color-danger-light-3: #ff8284;--leaf-color-danger-light-7: #ffcaca;--leaf-color-danger-light-9: #ffeded;--leaf-color-danger-dark-1: #e64547;--leaf-color-danger-dark-3: #b33637;--leaf-color-danger-dark-7: #4d1718;--leaf-color-danger-dark-9: #1a0808;--leaf-color-danger-soft: #ffeded;--leaf-color-danger-soft-hover: #ffcaca;--leaf-color-danger-soft-active: #ffcaca;--leaf-color-danger-border: #ffcaca;--leaf-color-danger-ink: #b33637;--leaf-color-danger-link-active: #d9363e;--leaf-color-danger-active: #e64547;--leaf-color-danger-link-hover: #ff7875;--leaf-color-danger-hover: #ff5f61;--leaf-color-warning-light-3: #fcc65b;--leaf-color-warning-light-7: #fee6b9;--leaf-color-warning-light-9: #fff7e8;--leaf-color-warning-dark-1: #e19c12;--leaf-color-warning-dark-3: #af790e;--leaf-color-warning-dark-7: #4b3406;--leaf-color-warning-dark-9: #191102;--leaf-color-warning-soft: #fff7e8;--leaf-color-warning-soft-hover: #fee6b9;--leaf-color-warning-soft-active: #fee6b9;--leaf-color-warning-border: #fee6b9;--leaf-color-warning-ink: #4b3406;--leaf-color-info-light-3: #5ca0ff;--leaf-color-info-light-7: #b9d6ff;--leaf-color-info-light-9: #e8f1ff;--leaf-color-info-dark-1: #146be6;--leaf-color-info-dark-3: #0f53b3;--leaf-color-info-dark-7: #07244d;--leaf-color-info-dark-9: #020c1a;--leaf-color-info-soft: #e8f1ff;--leaf-color-info-soft-hover: #b9d6ff;--leaf-color-info-soft-active: #b9d6ff;--leaf-color-info-border: #b9d6ff;--leaf-color-info-ink: #0f53b3;color-scheme:light}[data-leaf-theme=dark]{--leaf-color-primary: #1e964f;--leaf-color-success: #52c41a;--leaf-color-danger: #ff4d4f;--leaf-color-warning: #faad14;--leaf-color-info: #1677ff;--leaf-color-neutral: #707070;--leaf-color-on-primary: #ffffff;--leaf-color-on-danger: #ffffff;--leaf-color-on-warning: #ffffff;--leaf-color-on-info: #ffffff;--leaf-color-on-success: #ffffff;--leaf-color-text: #f5f5f5;--leaf-color-text-muted: #ababab;--leaf-color-surface: #1f1f1f;--leaf-color-surface-muted: #383838;--leaf-color-border: #383838;--leaf-color-neutral-100: #f5f5f5;--leaf-color-neutral-200: #e4e4e4;--leaf-color-neutral-300: #cacaca;--leaf-color-neutral-400: #ababab;--leaf-color-neutral-500: #8c8c8c;--leaf-color-neutral-600: #6f6f6f;--leaf-color-neutral-700: #525252;--leaf-color-neutral-800: #383838;--leaf-color-neutral-900: #1f1f1f;--leaf-color-text-subtle: #ababab;--leaf-color-surface-raised: #383838;--leaf-color-border-hover: #525252;--leaf-color-divider: #383838;--leaf-color-option-hover: #525252;--leaf-color-primary-light-3: #62b684;--leaf-color-primary-light-7: #bce0ca;--leaf-color-primary-light-9: #e9f5ed;--leaf-color-primary-dark-1: #1b8747;--leaf-color-primary-dark-3: #156937;--leaf-color-primary-dark-7: #092d18;--leaf-color-primary-dark-9: #030f08;--leaf-color-primary-soft: #030f08;--leaf-color-primary-soft-hover: #092d18;--leaf-color-primary-soft-active: #092d18;--leaf-color-primary-border: #092d18;--leaf-color-primary-ink: #62b684;--leaf-color-primary-indicator: #1e964f;--leaf-color-primary-focus: #1e964f;--leaf-color-primary-fill-border: transparent;--leaf-color-primary-link-active: #11703c;--leaf-color-primary-active: #1b8747;--leaf-color-primary-ink-active: #72bd90;--leaf-color-primary-link-hover: #5bb079;--leaf-color-primary-hover: #3ba363;--leaf-color-primary-ink-hover: #62b684;--leaf-color-success-light-3: #86d65f;--leaf-color-success-light-7: #cbedba;--leaf-color-success-light-9: #eef9e8;--leaf-color-success-dark-1: #4ab017;--leaf-color-success-dark-3: #398912;--leaf-color-success-dark-7: #193b08;--leaf-color-success-dark-9: #081403;--leaf-color-success-soft: #081403;--leaf-color-success-soft-hover: #193b08;--leaf-color-success-soft-active: #193b08;--leaf-color-success-border: #193b08;--leaf-color-success-ink: #52c41a;--leaf-color-danger-light-3: #ff8284;--leaf-color-danger-light-7: #ffcaca;--leaf-color-danger-light-9: #ffeded;--leaf-color-danger-dark-1: #e64547;--leaf-color-danger-dark-3: #b33637;--leaf-color-danger-dark-7: #4d1718;--leaf-color-danger-dark-9: #1a0808;--leaf-color-danger-soft: #1a0808;--leaf-color-danger-soft-hover: #4d1718;--leaf-color-danger-soft-active: #4d1718;--leaf-color-danger-border: #4d1718;--leaf-color-danger-ink: #ff8284;--leaf-color-danger-link-active: #d9363e;--leaf-color-danger-active: #e64547;--leaf-color-danger-link-hover: #ff7875;--leaf-color-danger-hover: #ff5f61;--leaf-color-warning-light-3: #fcc65b;--leaf-color-warning-light-7: #fee6b9;--leaf-color-warning-light-9: #fff7e8;--leaf-color-warning-dark-1: #e19c12;--leaf-color-warning-dark-3: #af790e;--leaf-color-warning-dark-7: #4b3406;--leaf-color-warning-dark-9: #191102;--leaf-color-warning-soft: #191102;--leaf-color-warning-soft-hover: #4b3406;--leaf-color-warning-soft-active: #4b3406;--leaf-color-warning-border: #4b3406;--leaf-color-warning-ink: #faad14;--leaf-color-info-light-3: #5ca0ff;--leaf-color-info-light-7: #b9d6ff;--leaf-color-info-light-9: #e8f1ff;--leaf-color-info-dark-1: #146be6;--leaf-color-info-dark-3: #0f53b3;--leaf-color-info-dark-7: #07244d;--leaf-color-info-dark-9: #020c1a;--leaf-color-info-soft: #020c1a;--leaf-color-info-soft-hover: #07244d;--leaf-color-info-soft-active: #07244d;--leaf-color-info-border: #07244d;--leaf-color-info-ink: #b9d6ff;color-scheme:dark}:root,:host{--leaf-spacing: 8px;--leaf-line-height: 20px;--leaf-line-height-sm: 18px;--leaf-line-height-lg: 22px;--leaf-heading-weight: 700;--leaf-shadow-xs: 0 1px 2px rgb(0 0 0 / 0.06);--leaf-shadow-sm: 0 2px 6px rgb(0 0 0 / 0.05), 0 1px 2px rgb(0 0 0 / 0.04);--leaf-shadow-md: 0 6px 20px rgb(0 0 0 / 0.07), 0 2px 5px rgb(0 0 0 / 0.04);--leaf-shadow-lg: 0 12px 32px rgb(0 0 0 / 0.1), 0 3px 8px rgb(0 0 0 / 0.06)}[data-leaf-scope]{font-weight:400}:root,:host,[data-leaf-scope]{--leaf-spacing-xs: calc(var(--leaf-spacing) * 0.5);--leaf-spacing-sm: var(--leaf-spacing);--leaf-spacing-md: calc(var(--leaf-spacing) * 2);--leaf-spacing-lg: calc(var(--leaf-spacing) * 3);--leaf-spacing-xl: calc(var(--leaf-spacing) * 4);--leaf-control-height-sm: max(1px, calc(var(--leaf-control-height) - 6px));--leaf-control-height-lg: calc(var(--leaf-control-height) + 6px);--leaf-motion-fast: calc(var(--leaf-motion-duration) * 0.6);--leaf-motion-slow: calc(var(--leaf-motion-duration) * 1.6);--leaf-motion-color: var(--leaf-motion-duration)}@keyframes leaf-content-in{from{opacity:0;translate:0 6px}to{opacity:1;translate:0 0}}@keyframes leaf-state-in{from{opacity:0;scale:.92}to{opacity:1;scale:1}}@media(prefers-reduced-motion: reduce){:where([class^=leaf-],[class*=" leaf-"]){animation:none !important;animation-delay:0s !important;transition-duration:0s !important;transition-delay:0s !important;scroll-behavior:auto !important}}.leaf-floating{--leaf-surface-inner-top: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-top) - var(--leaf-surface-border));--leaf-surface-inner-right: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-right) - var(--leaf-surface-border));--leaf-surface-inner-bottom: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-bottom) - var(--leaf-surface-border));--leaf-surface-inner-left: max(0px, var(--leaf-surface-radius) - var(--leaf-surface-padding-left) - var(--leaf-surface-border));--leaf-surface-inner-radius: var(--leaf-surface-inner-left) var(--leaf-surface-inner-right) var(--leaf-surface-inner-right) var(--leaf-surface-inner-left) / var(--leaf-surface-inner-top) var(--leaf-surface-inner-top) var(--leaf-surface-inner-bottom) var(--leaf-surface-inner-bottom);padding:var(--leaf-surface-padding-top) var(--leaf-surface-padding-right) var(--leaf-surface-padding-bottom) var(--leaf-surface-padding-left);border-radius:var(--leaf-surface-radius)}.leaf-floating{--leaf-surface-radius: var(--leaf-component-floating-radius, var(--leaf-radius-lg));--leaf-surface-padding: var(--leaf-component-floating-padding, 6px);--leaf-surface-border: var(--leaf-component-floating-border-width, var(--leaf-border-width, 1px));--leaf-surface-padding-top: var( --leaf-component-floating-padding-top, var(--leaf-surface-padding) );--leaf-surface-padding-right: var( --leaf-component-floating-padding-right, var(--leaf-surface-padding) );--leaf-surface-padding-bottom: var( --leaf-component-floating-padding-bottom, var(--leaf-surface-padding) );--leaf-surface-padding-left: var( --leaf-component-floating-padding-left, var(--leaf-surface-padding) );--leaf-floating-option-radius: var(--leaf-surface-inner-radius);--leaf-popup-x: 0px;--leaf-popup-y: -4px;--leaf-popup-scale: 0.985;--leaf-popup-scale-closing: 0.98;--leaf-popup-origin-x: center;--leaf-popup-origin-y: top;box-sizing:border-box;position:fixed;z-index:var(--leaf-z-index-popup, 1000);max-width:min(420px,100vw - 24px);max-height:min(360px,100vh - 32px);overflow:auto;border:var(--leaf-surface-border) solid var(--leaf-component-floating-border-color, var(--leaf-frame-border-color, var(--leaf-color-border)));color:var(--leaf-component-floating-color, var(--leaf-color-text));font-family:var(--leaf-font-family);font-size:var(--leaf-font-size);line-height:var(--leaf-line-height);background:var(--leaf-component-floating-background, var(--leaf-color-surface-raised, var(--leaf-color-surface)));box-shadow:var(--leaf-component-floating-shadow, var(--leaf-surface-shadow, var(--leaf-shadow-md)));overscroll-behavior:contain;opacity:1;translate:0 0;scale:1;transform-origin:var(--leaf-popup-origin-x) var(--leaf-popup-origin-y);transition:opacity var(--leaf-motion-duration) var(--leaf-motion-easing),translate var(--leaf-motion-slow) var(--leaf-motion-easing),scale var(--leaf-motion-slow) var(--leaf-motion-easing)}.leaf-floating[data-side=top]{--leaf-popup-y: 4px;--leaf-popup-origin-y: bottom}.leaf-floating[data-side=left]{--leaf-popup-x: 6px;--leaf-popup-y: 0px;--leaf-popup-origin-x: right;--leaf-popup-origin-y: center}.leaf-floating[data-side=right]{--leaf-popup-x: -6px;--leaf-popup-y: 0px;--leaf-popup-origin-x: left;--leaf-popup-origin-y: center}@starting-style{.leaf-floating{opacity:0;translate:var(--leaf-popup-x) var(--leaf-popup-y);scale:var(--leaf-popup-scale)}}.leaf-floating[data-positioned=false]{opacity:0;translate:var(--leaf-popup-x) var(--leaf-popup-y);scale:var(--leaf-popup-scale)}.leaf-floating[data-state=closing]{pointer-events:none;opacity:0;translate:var(--leaf-popup-x) var(--leaf-popup-y);scale:var(--leaf-popup-scale-closing);transition-duration:var(--leaf-motion-duration);transition-timing-function:var(--leaf-motion-easing)}.leaf-floating:focus{outline:none}@media(prefers-reduced-motion: reduce){.leaf-floating,.leaf-floating[data-state=closing]{transition:none}}.leaf-floating.leaf-scrollbar{width:auto;overflow:hidden;border-radius:var(--leaf-surface-radius)}.leaf-floating>.leaf-floating__viewport{position:relative;box-sizing:border-box;border-radius:var(--leaf-surface-inner-radius);overscroll-behavior:contain}.leaf-form-value{position:absolute;width:1px;height:1px;padding:0;border:0;clip-path:inset(50%);opacity:0;pointer-events:none}.leaf-floating__option{box-sizing:border-box;display:flex;width:100%;min-height:var(--leaf-density-option-height);align-items:center;gap:8px;padding:var(--leaf-density-option-padding) var(--leaf-density-field-padding);padding-block:min(var(--leaf-density-option-padding),max(0px,(var(--leaf-density-option-height) - var(--leaf-line-height-sm))/2));border:0;border-radius:var(--leaf-floating-option-radius, var(--leaf-radius-sm));color:inherit;background:rgba(0,0,0,0);font:inherit;line-height:var(--leaf-line-height-sm);text-align:start;cursor:pointer;transition:color var(--leaf-motion-color) var(--leaf-motion-easing),background-color var(--leaf-motion-color) var(--leaf-motion-easing),box-shadow var(--leaf-motion-color) var(--leaf-motion-easing)}.leaf-floating__option+.leaf-floating__option{margin-top:2px}.leaf-floating__option:hover:not(:disabled):not([aria-disabled=true]):not([aria-selected=true]):not([aria-checked=true]),.leaf-floating__option:focus-visible:not(:disabled):not([aria-disabled=true]):not([aria-selected=true]):not([aria-checked=true]),.leaf-floating__option[data-highlighted=true]:not([aria-disabled=true]):not([aria-selected=true]):not([aria-checked=true]){background:var(--leaf-color-option-hover)}.leaf-floating__option:active:not(:disabled):not([aria-disabled=true]):not([aria-selected=true]):not([aria-checked=true]){background:var(--leaf-color-option-hover)}.leaf-floating__option[aria-selected=true]{color:var(--leaf-color-text);font-weight:var(--leaf-font-weight);background:var(--leaf-color-option-hover)}.leaf-floating__option:disabled,.leaf-floating__option[aria-disabled=true]{color:var(--leaf-color-text-muted);cursor:not-allowed;opacity:.55}.leaf-floating__option:focus-visible{outline:2px solid var(--leaf-color-text-muted);outline-offset:-2px}.leaf-floating__option-label{min-width:0;overflow-wrap:anywhere}.leaf-floating__options{display:flex;flex-direction:column;gap:2px}@media(prefers-reduced-motion: reduce){.leaf-floating__option{transition:none}}.leaf-floating__highlight{position:absolute;top:0;left:0;box-sizing:border-box;width:var(--leaf-option-highlight-width, 0px);height:var(--leaf-option-highlight-height, var(--leaf-density-option-height));translate:var(--leaf-option-highlight-x, 0px) var(--leaf-option-highlight-y, 0px);border:1px solid var(--leaf-color-divider);border-radius:var(--leaf-floating-option-radius);background:var(--leaf-color-option-hover);pointer-events:none;transition:translate var(--leaf-motion-duration) var(--leaf-motion-spring),height var(--leaf-motion-fast) var(--leaf-motion-easing),width var(--leaf-motion-fast) var(--leaf-motion-easing),background-color var(--leaf-motion-color) var(--leaf-motion-easing),border-color var(--leaf-motion-color) var(--leaf-motion-easing)}.leaf-floating__highlight[data-ready=false],.leaf-floating__highlight[data-hidden]{visibility:hidden}.leaf-floating__highlight[data-selected]{background:var(--leaf-color-option-hover);border-color:rgba(0,0,0,0)}.leaf-floating[data-hover-motion] .leaf-floating__option{position:relative;z-index:1}.leaf-floating[data-hover-motion] .leaf-floating__option:hover:not(:disabled):not([aria-disabled=true]):not([aria-selected=true]),.leaf-floating[data-hover-motion] .leaf-floating__option:focus-visible:not(:disabled):not([aria-disabled=true]):not([aria-selected=true]),.leaf-floating[data-hover-motion] .leaf-floating__option[data-highlighted]:not([aria-disabled=true]):not([aria-selected=true]),.leaf-floating[data-hover-motion] .leaf-floating__option:active:not(:disabled):not([aria-disabled=true]):not([aria-selected=true]){background:rgba(0,0,0,0)}@media(prefers-reduced-motion: reduce){.leaf-floating__highlight{transition:none}}.leaf-floating__empty{padding:12px 10px;color:var(--leaf-color-text-muted);font-size:var(--leaf-font-size-sm);text-align:center}.leaf-floating__empty--feedback{box-sizing:border-box;display:flex;min-height:112px;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 16px}.leaf-floating__empty--feedback>svg{flex:none}.leaf-floating__empty--feedback>div{min-width:0;max-width:100%;overflow-wrap:anywhere}.leaf-floating__loading-icon{color:var(--leaf-color-primary-ink, var(--leaf-color-primary));animation:var(--leaf-motion-animation, leaf-floating-spin calc(var(--leaf-motion-duration) * 4) linear infinite);animation-play-state:var(--leaf-motion-play-state, running)}@keyframes leaf-floating-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion: reduce){.leaf-floating__loading-icon{animation:none}}.leaf-button{--leaf-danger-soft-background: var(--leaf-color-danger-soft);--leaf-danger-soft-active-background: var(--leaf-color-danger-soft-active);--leaf-button-border-width: var( --leaf-component-button-border-width, var(--leaf-border-width, 1px) );--leaf-button-color: var(--leaf-color-primary);--leaf-button-ink: var(--leaf-button-color);--leaf-button-ink-hover: var(--leaf-color-primary-link-hover, var(--leaf-button-ink));--leaf-button-ink-active: var(--leaf-color-primary-link-active, var(--leaf-button-active));--leaf-button-on-color: var(--leaf-color-on-primary);--leaf-focus-color: var(--leaf-color-text-muted);--leaf-button-active: var(--leaf-color-primary-active, var(--leaf-button-color));--leaf-button-active-color: var(--leaf-button-rest-color);--leaf-button-active-background: var(--leaf-button-rest-background);--leaf-button-active-border: var(--leaf-button-rest-border);--leaf-button-hover-border: var(--leaf-button-base-border);--leaf-button-hover-color: var(--leaf-button-base-color);--leaf-button-active-shadow: var(--leaf-button-base-shadow);box-sizing:border-box;display:inline-flex;position:relative;align-items:center;justify-content:center;gap:var(--leaf-component-button-gap, 6px);min-height:var(--leaf-button-height, var(--leaf-current-control-height));padding:var(--leaf-component-button-padding, 0 calc(var(--leaf-button-height, var(--leaf-current-control-height)) * 0.42));border:var(--leaf-button-border-width) solid rgba(0,0,0,0);border-radius:var(--leaf-component-button-radius, var(--leaf-button-radius, var(--leaf-radius)));font-family:var(--leaf-font-family);font-size:var(--leaf-component-button-font-size, var(--leaf-current-font-size));font-weight:var(--leaf-font-weight);line-height:var(--leaf-line-height);text-decoration:none;white-space:nowrap;vertical-align:middle;cursor:pointer;user-select:none;appearance:none;transition:background-color var(--leaf-motion-color) var(--leaf-motion-easing),border-color var(--leaf-motion-color) var(--leaf-motion-easing),color var(--leaf-motion-color) var(--leaf-motion-easing),box-shadow var(--leaf-motion-color) var(--leaf-motion-easing),opacity var(--leaf-motion-color) var(--leaf-motion-easing);--leaf-current-font-size: var(--leaf-font-size);--leaf-current-control-height: var(--leaf-control-height, 34px)}.leaf-button--sm{--leaf-current-control-height: var(--leaf-control-height-sm, 28px);--leaf-current-font-size: var(--leaf-font-size-sm, 13px)}.leaf-button--lg{--leaf-current-control-height: var(--leaf-control-height-lg, 40px);--leaf-current-font-size: var(--leaf-font-size-lg, 16px)}.leaf-button:focus-visible{outline:2px solid var(--leaf-color-focus, var(--leaf-focus-color, var(--leaf-color-text-muted)));outline-offset:2px}.leaf-button:disabled{cursor:not-allowed;opacity:.45}.leaf-button[data-loading]{cursor:default;opacity:1}.leaf-button__content{display:inline-flex;align-items:center;justify-content:center;gap:inherit;min-width:0;transition:opacity var(--leaf-motion-duration) var(--leaf-motion-easing),transform var(--leaf-motion-duration) var(--leaf-motion-easing)}.leaf-button__loading{position:absolute;inset:0;display:grid;place-items:center;opacity:0;transform:scale(0.7);pointer-events:none;transition:opacity var(--leaf-motion-duration) var(--leaf-motion-easing),transform var(--leaf-motion-duration) var(--leaf-motion-easing)}.leaf-button[data-loading] .leaf-button__content{opacity:0;transform:translateY(3px)}.leaf-button[data-loading] .leaf-button__loading{opacity:1;transform:scale(1)}.leaf-button[data-loading] .leaf-button__spinner{animation:var(--leaf-motion-animation, leaf-spin calc(var(--leaf-motion-duration) * 4.5) linear infinite);animation-play-state:var(--leaf-motion-play-state, running)}.leaf-button--danger{--leaf-button-color: var(--leaf-color-danger);--leaf-button-ink: var(--leaf-color-danger-ink);--leaf-button-ink-hover: var(--leaf-color-danger-link-hover, var(--leaf-button-ink));--leaf-button-ink-active: var(--leaf-color-danger-link-active, var(--leaf-button-active));--leaf-button-on-color: var(--leaf-color-on-danger);--leaf-button-active: var(--leaf-color-danger-active, var(--leaf-button-color))}.leaf-button--icon-only{width:var(--leaf-button-height, var(--leaf-current-control-height));padding:0}.leaf-button--full-width{width:100%}.leaf-button--link{transition:color var(--leaf-motion-color) cubic-bezier(0.645, 0.045, 0.355, 1);align-self:center;min-height:0;padding:0;border:0;border-radius:0}.leaf-button--link.leaf-button--icon-only{width:auto}.leaf-button__icon,.leaf-button__spinner{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:16px;height:16px}.leaf-button__icon svg,.leaf-button__spinner svg{width:100%;height:100%}.leaf-button:is(.leaf-button--solid){--leaf-button-rest-color: var(--leaf-button-on-color);--leaf-button-rest-background: var(--leaf-button-color);--leaf-button-rest-border: transparent;--leaf-button-rest-shadow: none;--leaf-button-active-background: var(--leaf-button-active)}.leaf-button:is(.leaf-button--outline){--leaf-button-rest-color: var(--leaf-color-text);--leaf-button-rest-background: var(--leaf-color-surface);--leaf-button-rest-border: var(--leaf-color-border);--leaf-button-rest-shadow: var(--leaf-shadow-xs);--leaf-button-hover-border: var( --leaf-component-button-border-color, var(--leaf-frame-border-color, var(--leaf-color-border-hover)) );--leaf-button-active-color: var(--leaf-button-base-color);--leaf-button-active-background: color-mix(in srgb, var(--leaf-button-base-background), var(--leaf-color-surface-muted));--leaf-button-active-border: var(--leaf-button-base-border)}.leaf-button:is(.leaf-button--outline):hover:not(:disabled):not([data-loading]):where(:not(:focus-visible)){--leaf-button-active-border: var(--leaf-button-hover-border)}.leaf-button:is(.leaf-button--outline).leaf-button--danger{--leaf-button-rest-color: var(--leaf-color-danger-ink);--leaf-button-rest-border: var(--leaf-button-color);--leaf-button-hover-border: var( --leaf-component-button-border-color, var(--leaf-frame-border-color, var(--leaf-button-ink)) )}.leaf-button:is(.leaf-button--link){--leaf-button-rest-color: var(--leaf-button-ink);--leaf-button-rest-background: transparent;--leaf-button-rest-border: transparent;--leaf-button-rest-shadow: none;--leaf-button-hover-color: var(--leaf-component-button-color, var(--leaf-button-ink-hover));--leaf-button-active-color: var(--leaf-component-button-color, var(--leaf-button-ink-active));--leaf-button-active-background: transparent;--leaf-button-active-border: transparent}.leaf-button:is(.leaf-button--link).leaf-button--danger:active:not(:disabled):not([data-loading]){text-decoration:underline;text-underline-offset:3px}.leaf-button:is(.leaf-button--text){--leaf-text-action-color: var(--leaf-color-text);--leaf-text-action-background: color-mix( in srgb, var(--leaf-color-option-hover) 50%, transparent );--leaf-text-action-active-background: var(--leaf-color-option-hover);--leaf-button-rest-color: var(--leaf-text-action-color);--leaf-button-rest-background: transparent;--leaf-button-rest-border: transparent;--leaf-button-rest-shadow: none;--leaf-button-hover-background: var(--leaf-text-action-background);--leaf-button-active-background: var(--leaf-text-action-active-background)}.leaf-button:is(.leaf-button--text).leaf-button--danger{--leaf-button-rest-color: var(--leaf-color-danger-ink)}.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--text,.leaf-button--link){--leaf-button-base-color: var(--leaf-component-button-color, var(--leaf-button-rest-color));--leaf-button-base-background: var( --leaf-component-button-background, var(--leaf-button-rest-background) );--leaf-button-base-border: var( --leaf-component-button-border-color, var(--leaf-frame-border-color, var(--leaf-button-rest-border)) );--leaf-button-base-shadow: var( --leaf-component-button-shadow, var(--leaf-control-shadow, var(--leaf-button-rest-shadow)) );color:var(--leaf-button-base-color);background:var(--leaf-button-base-background);border-color:var(--leaf-button-base-border);box-shadow:var(--leaf-button-base-shadow)}.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--text,.leaf-button--link):focus-visible:not(:disabled){color:var(--leaf-component-button-focus-color, var(--leaf-button-base-color));background:var(--leaf-component-button-focus-background, var(--leaf-button-base-background));border-color:var(--leaf-component-button-focus-border-color, var(--leaf-button-base-border));box-shadow:var(--leaf-component-button-focus-shadow, var(--leaf-button-base-shadow))}.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--text,.leaf-button--link):hover:not(:disabled):not([data-loading]):where(:not(:focus-visible)){color:var(--leaf-component-button-hover-color, var(--leaf-button-hover-color));background:var(--leaf-component-button-hover-background, var(--leaf-button-hover-background, var(--leaf-button-base-background)));border-color:var(--leaf-component-button-hover-border-color, var(--leaf-button-hover-border));box-shadow:var(--leaf-component-button-hover-shadow, var(--leaf-button-base-shadow))}.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--text,.leaf-button--link):active:not(:disabled):not([data-loading]){color:var(--leaf-component-button-active-color, var(--leaf-button-active-color));background:var(--leaf-component-button-active-background, var(--leaf-button-active-background));border-color:var(--leaf-component-button-active-border-color, var(--leaf-component-button-border-color, var(--leaf-frame-border-color, var(--leaf-button-active-border))));box-shadow:var(--leaf-component-button-active-shadow, var(--leaf-button-active-shadow))}.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--text,.leaf-button--link):disabled{color:var(--leaf-component-button-disabled-color, var(--leaf-button-base-color));background:var(--leaf-component-button-disabled-background, var(--leaf-button-base-background));border-color:var(--leaf-component-button-disabled-border-color, var(--leaf-button-base-border));box-shadow:var(--leaf-component-button-disabled-shadow, var(--leaf-button-base-shadow))}@keyframes leaf-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion: reduce){.leaf-button,.leaf-button__content,.leaf-button__loading{transition:none}.leaf-button[data-loading] .leaf-button__spinner{animation:none}}@media(forced-colors: active){.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--link,.leaf-button--text){border-color:ButtonText}.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--link,.leaf-button--text):disabled{color:GrayText;border-color:GrayText}.leaf-button:is(.leaf-button--solid,.leaf-button--outline,.leaf-button--link,.leaf-button--text):focus-visible{outline-color:Highlight}}.leaf-button-group{display:inline-flex;align-items:stretch;gap:8px}.leaf-button-group--attached{gap:0}.leaf-button-group--attached>.leaf-button{position:relative}.leaf-button-group--attached>.leaf-button:not(:first-child){border-start-start-radius:0;border-end-start-radius:0;margin-inline-start:calc(-1*var(--leaf-button-border-width))}.leaf-button-group--attached>.leaf-button:not(:last-child){border-start-end-radius:0;border-end-end-radius:0}.leaf-button-group--attached>.leaf-button:hover:not(:disabled),.leaf-button-group--attached>.leaf-button:active:not(:disabled),.leaf-button-group--attached>.leaf-button:focus-visible{z-index:1}.leaf-button-group{border:0;padding:0;margin:0;min-width:0}.leaf-split-button{isolation:isolate}.leaf-split-button.leaf-button-group--attached>.leaf-button{z-index:1}.leaf-split-button>.leaf-button--outline{--leaf-split-button-divider-color: var( --leaf-component-button-border-color, var(--leaf-frame-border-color, var(--leaf-color-primary-border, var(--leaf-color-border))) )}.leaf-split-button>.leaf-button--outline.leaf-button--danger{--leaf-split-button-divider-color: var( --leaf-component-button-border-color, var(--leaf-frame-border-color, var(--leaf-button-color)) )}.leaf-split-button>.leaf-button--outline:first-child{border-inline-end-color:var(--leaf-split-button-divider-color)}.leaf-split-button>.leaf-button--outline:not(:first-child){border-inline-start-color:var(--leaf-split-button-divider-color)}.leaf-split-button>.leaf-button+.leaf-button:not(.leaf-button--outline){margin-inline-start:0}.leaf-split-button>.leaf-button+.leaf-button::before{content:"";position:absolute;z-index:2;inset-block:22%;inset-inline-start:0;width:1px;background:var(--leaf-component-button-border-color, var(--leaf-frame-border-color, var(--leaf-color-border)));pointer-events:none}.leaf-split-button>.leaf-button+.leaf-button.leaf-button--solid::before{background:color-mix(in srgb, var(--leaf-button-on-color) 32%, transparent)}.leaf-split-button>.leaf-button+.leaf-button.leaf-button--outline::before{display:none}.leaf-split-button>.leaf-button+.leaf-button.leaf-button--link{margin-inline-start:8px}.leaf-split-button>.leaf-button+.leaf-button.leaf-button--link::before{inset-inline-start:-4px}@media(forced-colors: active){.leaf-split-button>.leaf-button+.leaf-button::before,.leaf-split-button>.leaf-button+.leaf-button.leaf-button--solid::before{background:ButtonText}}.leaf-button{--leaf-current-control-height: var(--leaf-component-button-height, var(--leaf-control-height));--leaf-current-font-size: var(--leaf-component-button-font-size, var(--leaf-font-size))}.leaf-button--sm{--leaf-current-control-height: var( --leaf-component-button-height-sm, var(--leaf-control-height-sm) );--leaf-current-font-size: var(--leaf-font-size-sm)}.leaf-button--lg{--leaf-current-control-height: var( --leaf-component-button-height-lg, var(--leaf-control-height-lg) );--leaf-current-font-size: var(--leaf-font-size-lg)}.leaf-scrollbar{display:flex;flex-direction:column;position:relative;box-sizing:border-box;width:100%;min-width:0;min-height:0;max-width:100%;overflow:hidden;border-radius:inherit;--leaf-scrollbar-inset: 4px;--leaf-scrollbar-thickness: 8px;--leaf-scrollbar-thumb-opacity: 0.45;--leaf-scrollbar-thumb-active-opacity: 0.75}.leaf-scrollbar[data-persistent]{--leaf-scrollbar-gutter: calc( var(--leaf-scrollbar-thickness) + 2 * var(--leaf-scrollbar-inset) )}.leaf-scrollbar[data-persistent]:not([data-orientation=horizontal]){padding-inline-end:var(--leaf-scrollbar-gutter)}.leaf-scrollbar[data-persistent]:not([data-orientation=vertical]){padding-block-end:var(--leaf-scrollbar-gutter)}.leaf-scrollbar--sm{--leaf-scrollbar-inset: 2px;--leaf-scrollbar-thickness: 6px;--leaf-scrollbar-thumb-opacity: 0.3;--leaf-scrollbar-thumb-active-opacity: 0.55}.leaf-scrollbar--external{display:block;overflow:visible;max-width:none}.leaf-scrollbar--external>textarea{scrollbar-width:none}.leaf-scrollbar--external>textarea::-webkit-scrollbar{display:none}.leaf-scrollbar__viewport{flex:1 1 auto;min-height:0;width:100%;height:100%;border-radius:inherit;overscroll-behavior:auto;scrollbar-width:none}.leaf-scrollbar__viewport::-webkit-scrollbar{display:none}.leaf-scrollbar__viewport:focus-visible{outline:2px solid var(--leaf-color-focus, var(--leaf-focus-color, var(--leaf-color-text-muted)));outline-offset:2px;outline-offset:-3px}.leaf-scrollbar__content{display:flow-root;min-width:100%}.leaf-scrollbar__bar{position:absolute;z-index:4;opacity:0;pointer-events:none;transition:opacity var(--leaf-motion-duration) var(--leaf-motion-easing)}.leaf-scrollbar__bar--vertical{inset-inline-end:var(--leaf-scrollbar-inset);width:var(--leaf-scrollbar-thickness)}.leaf-scrollbar__bar--horizontal{bottom:var(--leaf-scrollbar-inset);height:var(--leaf-scrollbar-thickness)}.leaf-scrollbar__thumb{position:absolute;inset-block-start:0;inset-inline-start:0;box-sizing:border-box;width:100%;height:100%;border:1px solid rgba(0,0,0,0);border-radius:999px;background:var(--leaf-color-text-muted);background-clip:padding-box;opacity:var(--leaf-scrollbar-thumb-opacity);pointer-events:none;transition:opacity var(--leaf-motion-fast) var(--leaf-motion-easing)}.leaf-scrollbar__bar--horizontal .leaf-scrollbar__thumb{left:0;right:auto}.leaf-scrollbar__bar:hover .leaf-scrollbar__thumb,.leaf-scrollbar__bar:focus-within .leaf-scrollbar__thumb,.leaf-scrollbar[data-dragging] .leaf-scrollbar__thumb{opacity:var(--leaf-scrollbar-thumb-active-opacity)}.leaf-scrollbar__control{position:absolute;inset:0;width:100%;height:100%;padding:0;margin:0;opacity:0;cursor:pointer;touch-action:none}.leaf-scrollbar__bar:has(:focus-visible){outline:2px solid var(--leaf-color-primary-indicator, var(--leaf-color-primary));outline-offset:2px;border-radius:999px}.leaf-scrollbar__viewport:focus:not(:focus-visible){outline:none}.leaf-scrollbar:hover>.leaf-scrollbar__bar,.leaf-scrollbar:focus-within>.leaf-scrollbar__bar,.leaf-scrollbar[data-scrollbar=always]>.leaf-scrollbar__bar,.leaf-scrollbar[data-persistent]>.leaf-scrollbar__bar,.leaf-scrollbar[data-scrolling]>.leaf-scrollbar__bar,.leaf-scrollbar[data-dragging]>.leaf-scrollbar__bar{opacity:1;pointer-events:auto}@media(prefers-reduced-motion: reduce){.leaf-scrollbar__bar,.leaf-scrollbar__thumb{transition:none}}@media(forced-colors: active){.leaf-scrollbar__thumb{background:CanvasText;opacity:1;forced-color-adjust:none}}.leaf-alert{--leaf-feedback-color: var(--leaf-color-success);display:flex;align-items:flex-start;gap:var(--leaf-component-alert-gap, 12px);color:var(--leaf-component-alert-color, var(--leaf-color-text));font:var(--leaf-font-size)/var(--leaf-line-height) var(--leaf-font-family);border-radius:var(--leaf-component-alert-radius, var(--leaf-radius-md));border:var(--leaf-component-alert-border-width, var(--leaf-border-width, 1px)) solid var(--leaf-component-alert-border-color, var(--leaf-frame-border-color, var(--leaf-color-divider)));box-shadow:var(--leaf-component-alert-shadow, var(--leaf-surface-shadow, none));padding:var(--leaf-component-alert-padding, 14px 16px)}.leaf-alert--info{--leaf-feedback-color: var(--leaf-color-info)}.leaf-alert--warning{--leaf-feedback-color: var(--leaf-color-warning)}.leaf-alert--danger,.leaf-alert--error{--leaf-feedback-color: var(--leaf-color-danger)}.leaf-alert{box-sizing:border-box}.leaf-alert:not([data-description]){align-items:center}.leaf-alert{max-height:var(--leaf-alert-height, none);transition:opacity var(--leaf-motion-duration) var(--leaf-motion-easing),max-height var(--leaf-motion-duration) var(--leaf-motion-easing),padding-block var(--leaf-motion-duration) var(--leaf-motion-easing),border-block-width var(--leaf-motion-duration) var(--leaf-motion-easing),border-color var(--leaf-motion-duration) var(--leaf-motion-easing),background-color var(--leaf-motion-duration) var(--leaf-motion-easing);background:var(--leaf-component-alert-background, color-mix(in srgb, var(--leaf-color-surface), var(--leaf-color-surface-muted)))}.leaf-alert[data-state=closing]{max-height:0;opacity:0;padding-block:0;border-block-width:0;overflow:hidden;pointer-events:none}.leaf-alert__icon{display:inline-flex;flex:0 0 28px;align-items:center;justify-content:center;height:28px;border-radius:8px;color:var(--leaf-feedback-color);background:rgba(0,0,0,0)}.leaf-alert__content{flex:1;min-width:0}.leaf-alert__title{min-height:0;display:flex;align-items:center;font-weight:var(--leaf-font-weight)}.leaf-alert__description{margin-block-start:2px;color:var(--leaf-color-text-muted);font-size:var(--leaf-font-size-sm);line-height:var(--leaf-line-height-sm)}.leaf-alert__extra{display:flex;align-items:center;align-self:center;flex-shrink:0}.leaf-alert__close{align-items:center;justify-content:center;min-width:28px;min-height:28px;--leaf-text-action-color: var(--leaf-color-text);--leaf-text-action-background: color-mix( in srgb, var(--leaf-color-option-hover) 50%, transparent );--leaf-text-action-active-background: var(--leaf-color-option-hover);color:var(--leaf-text-action-color);background:rgba(0,0,0,0);cursor:pointer;transition:background-color var(--leaf-motion-color) var(--leaf-motion-easing),border-color var(--leaf-motion-color) var(--leaf-motion-easing),color var(--leaf-motion-color) var(--leaf-motion-easing),box-shadow var(--leaf-motion-color) var(--leaf-motion-easing),opacity var(--leaf-motion-color) var(--leaf-motion-easing)}.leaf-alert__close:hover:not(:disabled){color:var(--leaf-text-action-color);background:var(--leaf-text-action-background)}.leaf-alert__close:active:not(:disabled){color:var(--leaf-text-action-color);background:var(--leaf-text-action-active-background)}.leaf-alert__close:focus-visible{outline:2px solid var(--leaf-color-focus, var(--leaf-focus-color, var(--leaf-color-text-muted)));outline-offset:2px}.leaf-alert__close:disabled{cursor:not-allowed}@media(prefers-reduced-motion: reduce){.leaf-alert__close{transition:none}}@media(prefers-reduced-motion: reduce){.leaf-alert,.leaf-alert__close{transition:none}}.leaf-alert__close,.leaf-message__close{flex-shrink:0;display:inline-flex;border:0;padding:2px;border-radius:4px;--leaf-text-action-color: var(--leaf-color-text);--leaf-text-action-background: color-mix( in srgb, var(--leaf-color-option-hover) 50%, transparent );--leaf-text-action-active-background: var(--leaf-color-option-hover);color:var(--leaf-text-action-color);background:rgba(0,0,0,0);cursor:pointer;transition:background-color var(--leaf-motion-color) var(--leaf-motion-easing),border-color var(--leaf-motion-color) var(--leaf-motion-easing),color var(--leaf-motion-color) var(--leaf-motion-easing),box-shadow var(--leaf-motion-color) var(--leaf-motion-easing),opacity var(--leaf-motion-color) var(--leaf-motion-easing)}.leaf-alert__close:hover:not(:disabled),.leaf-message__close:hover:not(:disabled){color:var(--leaf-text-action-color);background:var(--leaf-text-action-background)}.leaf-alert__close:active:not(:disabled),.leaf-message__close:active:not(:disabled){color:var(--leaf-text-action-color);background:var(--leaf-text-action-active-background)}.leaf-alert__close:focus-visible,.leaf-message__close:focus-visible{outline:2px solid var(--leaf-color-focus, var(--leaf-focus-color, var(--leaf-color-text-muted)));outline-offset:2px}.leaf-alert__close:disabled,.leaf-message__close:disabled{cursor:not-allowed}@media(prefers-reduced-motion: reduce){.leaf-alert__close,.leaf-message__close{transition:none}}.leaf-confirm{--leaf-danger-soft-background: var(--leaf-color-danger-soft);--leaf-danger-soft-active-background: var(--leaf-color-danger-soft-active);border-width:var(--leaf-component-confirm-border-width, var(--leaf-component-modal-border-width, var(--leaf-border-width, 1px)));border-color:var(--leaf-component-confirm-border-color, var(--leaf-component-modal-border-color, var(--leaf-frame-border-color, var(--leaf-color-divider))));background:var(--leaf-component-confirm-background, var(--leaf-component-modal-background, var(--leaf-color-surface)));box-shadow:var(--leaf-component-confirm-shadow, var(--leaf-component-modal-shadow, var(--leaf-surface-shadow, var(--leaf-modal-default-shadow))));--leaf-feedback-color: var(--leaf-color-text)}.leaf-confirm--danger{--leaf-feedback-color: var(--leaf-color-danger)}.leaf-confirm--success{--leaf-feedback-color: var(--leaf-color-success)}.leaf-confirm--warning{--leaf-feedback-color: var(--leaf-color-warning)}.leaf-confirm--info{--leaf-feedback-color: var(--leaf-color-info)}.leaf-confirm>.leaf-modal__header .leaf-modal__heading h2{display:flex;align-items:center;gap:12px;font-size:var(--leaf-component-confirm-font-size, var(--leaf-font-size-lg));font-weight:var(--leaf-heading-weight);line-height:var(--leaf-line-height-lg)}.leaf-confirm>.leaf-modal__footer{gap:8px}.leaf-confirm__title{min-width:0;overflow-wrap:anywhere}.leaf-confirm--titled-icon>.leaf-modal__body .leaf-confirm__body{padding-inline-start:36px}.leaf-confirm.leaf-modal>.leaf-modal__header+.leaf-modal__body .leaf-modal__content{padding-block-start:8px}.leaf-confirm__body{display:flex;align-items:flex-start;gap:12px}.leaf-confirm__content{flex:1;min-width:0}.leaf-confirm__icon{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;height:24px;color:var(--leaf-feedback-color);scale:1;opacity:1;transition:scale var(--leaf-motion-slow) var(--leaf-motion-spring),opacity var(--leaf-motion-duration) var(--leaf-motion-easing)}@starting-style{.leaf-confirm__icon{scale:.82;opacity:0}}.leaf-confirm__icon>svg{width:24px;height:24px}.leaf-confirm--default .leaf-confirm__icon{color:var(--leaf-color-text-muted)}.leaf-confirm-description{font-size:var(--leaf-component-confirm-font-size, var(--leaf-font-size));color:var(--leaf-component-confirm-color, var(--leaf-color-text-muted));line-height:var(--leaf-line-height);overflow-wrap:anywhere}.leaf-confirm-error{margin-block:12px 0;padding:8px 10px;border-radius:var(--leaf-radius-sm);color:var(--leaf-color-danger-ink);background:var(--leaf-danger-soft-background);opacity:1;translate:0 0;transition:opacity var(--leaf-motion-duration) var(--leaf-motion-easing),translate var(--leaf-motion-duration) var(--leaf-motion-easing)}@starting-style{.leaf-confirm-error{opacity:0;translate:0 4px}}.leaf-feedback-spinner{animation:var(--leaf-motion-animation, leaf-spin calc(var(--leaf-motion-duration) * 4.5) linear infinite);animation-play-state:var(--leaf-motion-play-state, running)}@media(prefers-reduced-motion: reduce){.leaf-confirm__icon,.leaf-confirm-error{transition:none}.leaf-feedback-spinner{animation:none}}