@vokril/ui-solid 0.35.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/{AttributeGrid-CNkALmJq.cjs → AttributeGrid-BNQaSpfE.cjs} +1 -1
  3. package/dist/{AttributeGrid-DnuTPJ_P.js → AttributeGrid-tjVwSI4h.js} +4 -4
  4. package/dist/{Button-lMUW5P3O.cjs → Button-D5Ihf90u.cjs} +1 -1
  5. package/dist/{Button-CX7mylBT.js → Button-DDkZzT-k.js} +1 -1
  6. package/dist/{CommandPalette-BnZwM7DE.js → CommandPalette-CGfXynfl.js} +7 -7
  7. package/dist/{CommandPalette-3wKYPO9u.cjs → CommandPalette-CdiIycaW.cjs} +1 -1
  8. package/dist/{CopyButton-Dnd8_2Lj.cjs → CopyButton-Hb6c_Oq1.cjs} +1 -1
  9. package/dist/{CopyButton-BVvv5M8g.js → CopyButton-gHxA-WL_.js} +1 -1
  10. package/dist/{DateRangePicker-B7XbFZP_.js → DateRangePicker-B36NSGMS.js} +5 -5
  11. package/dist/{DateRangePicker-Cnzwgtx-.cjs → DateRangePicker-EEcp-IbM.cjs} +1 -1
  12. package/dist/Disclosure-0tZlCnkH.js +76 -0
  13. package/dist/Disclosure-DHNtLOWi.cjs +1 -0
  14. package/dist/GuidedTour-DicNwdq3.cjs +1 -0
  15. package/dist/GuidedTour-bcaKpXPX.js +412 -0
  16. package/dist/{HostPortal-Dm4BmY8M.cjs → HostPortal-C1xTPZYj.cjs} +1 -1
  17. package/dist/{HostPortal-De65s6CU.js → HostPortal-DsVQEH2q.js} +1 -1
  18. package/dist/{IconPicker-Cku0jy4r.js → IconPicker-7sF4n6vD.js} +4 -4
  19. package/dist/{IconPicker-pYYYpMF6.cjs → IconPicker-D60txter.cjs} +1 -1
  20. package/dist/{Input-CHtvL4_4.cjs → Input-DTm6v0fK.cjs} +1 -1
  21. package/dist/{Input-C3rEQffK.js → Input-agpwYeJd.js} +1 -1
  22. package/dist/{Modal-zPqB1ufV.cjs → Modal-C1vp7z7l.cjs} +1 -1
  23. package/dist/{Modal-CjPn7xsM.js → Modal-aKptl9ig.js} +2 -2
  24. package/dist/{PageSkeleton-lfENszyc.js → PageSkeleton-XNfK8xoY.js} +3 -3
  25. package/dist/{PageSkeleton-3f-2SBNK.cjs → PageSkeleton-jljSUpu1.cjs} +1 -1
  26. package/dist/{SearchableSelect-C-lV1vSv.cjs → SearchableSelect-CXPSoFqf.cjs} +1 -1
  27. package/dist/{SearchableSelect-Du12kcI9.js → SearchableSelect-DFdGGNR6.js} +3 -3
  28. package/dist/{StatusBarNotificationBell-GbkAwC4w.js → StatusBarNotificationBell-CnmMzXzD.js} +39 -38
  29. package/dist/{StatusBarNotificationBell-fegn26_s.cjs → StatusBarNotificationBell-MXX_K48w.cjs} +21 -21
  30. package/dist/{Stepper-rpu7lpzB.cjs → Stepper-BLKD4ub3.cjs} +1 -1
  31. package/dist/{Stepper-DzI-gtKd.js → Stepper-D0rrrtAN.js} +1 -1
  32. package/dist/{Textarea-DOzZCc-O.js → Textarea-CKJDNOaL.js} +1 -1
  33. package/dist/{Textarea-D4nYoQ0J.cjs → Textarea-Ds3bMrq9.cjs} +1 -1
  34. package/dist/{TimeSeriesChart-BJqQpeEJ.cjs → TimeSeriesChart-B9cqfs1M.cjs} +1 -1
  35. package/dist/{TimeSeriesChart-DvAhuyVl.js → TimeSeriesChart-DBARL8HG.js} +1 -1
  36. package/dist/ToggleButton-DaDfg2cC.js +2186 -0
  37. package/dist/ToggleButton-WoM2S_S4.cjs +1 -0
  38. package/dist/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation--Nybjbd2.js} +36 -36
  39. package/dist/{server/appThemeDerivation-Be_oKljl.cjs → appThemeDerivation-Cgg74S4e.cjs} +1 -1
  40. package/dist/charts/index.cjs +1 -1
  41. package/dist/charts/index.js +1 -1
  42. package/dist/{createDialogShellFocus-DFEaujn4.cjs → createDialogShellFocus-C2FKc2rv.cjs} +1 -1
  43. package/dist/{createDialogShellFocus-Z557MGDg.js → createDialogShellFocus-CgjiySLA.js} +2 -2
  44. package/dist/createResizableSidebar-BqW3Ozgd.cjs +1 -0
  45. package/dist/createResizableSidebar-CKbN032u.js +853 -0
  46. package/dist/de-BQbrl0SL.cjs +1 -0
  47. package/dist/{server/de-q3NXnC0J.js → de-CSWSMGCG.js} +45 -39
  48. package/dist/desktop/index.cjs +1 -1
  49. package/dist/desktop/index.js +3 -3
  50. package/dist/feedback/index.cjs +1 -1
  51. package/dist/feedback/index.js +2 -2
  52. package/dist/forms/NumberInput.d.cts +5 -0
  53. package/dist/forms/NumberInput.d.ts +5 -0
  54. package/dist/forms/RadioGroup.d.cts +13 -0
  55. package/dist/forms/RadioGroup.d.ts +13 -0
  56. package/dist/forms/index.cjs +1 -1
  57. package/dist/forms/index.js +9 -9
  58. package/dist/grid/index.cjs +1 -1
  59. package/dist/grid/index.js +1 -1
  60. package/dist/host/index.cjs +1 -1
  61. package/dist/host/index.js +1 -1
  62. package/dist/i18n/index.cjs +1 -1
  63. package/dist/i18n/index.js +1 -1
  64. package/dist/i18n/messageKeys.d.cts +1 -1
  65. package/dist/i18n/messageKeys.d.ts +1 -1
  66. package/dist/{i18n-CBlUGOyu.js → i18n-BJiKwNyr.js} +2 -2
  67. package/dist/{i18n-D3s-a2a0.cjs → i18n-DrmazJQC.cjs} +1 -1
  68. package/dist/index.cjs +1 -1
  69. package/dist/index.js +389 -384
  70. package/dist/layout/SettingsCard.d.cts +108 -0
  71. package/dist/layout/SettingsCard.d.ts +108 -0
  72. package/dist/layout/SettingsSubpageHeader.d.cts +29 -0
  73. package/dist/layout/SettingsSubpageHeader.d.ts +29 -0
  74. package/dist/layout/index.cjs +1 -1
  75. package/dist/layout/index.d.cts +2 -0
  76. package/dist/layout/index.d.ts +2 -0
  77. package/dist/layout/index.js +18 -14
  78. package/dist/navigation/index.cjs +1 -1
  79. package/dist/navigation/index.js +1 -1
  80. package/dist/notifications/index.cjs +1 -1
  81. package/dist/notifications/index.js +1 -1
  82. package/dist/overlay/index.cjs +1 -1
  83. package/dist/overlay/index.js +85 -84
  84. package/dist/{rowSource-D8gyHbEE.cjs → rowSource-BWm-kZHe.cjs} +1 -1
  85. package/dist/{rowSource-_4IuosKj.js → rowSource-DEulMv5F.js} +1 -1
  86. package/dist/server/{AttributeGrid-B9j_c2wM.js → AttributeGrid-BmS2U5Gz.js} +4 -4
  87. package/dist/server/{AttributeGrid-BALCTvOI.cjs → AttributeGrid-fT5-b9ZJ.cjs} +1 -1
  88. package/dist/server/{Button-ft_8RNJj.js → Button-XL9Os1pR.js} +1 -1
  89. package/dist/server/{Button-DHefmmYz.cjs → Button-lNnNp0um.cjs} +1 -1
  90. package/dist/server/{CommandPalette-DKURJBBZ.cjs → CommandPalette-C0MbWZHM.cjs} +1 -1
  91. package/dist/server/{CommandPalette-B3EE1iMo.js → CommandPalette-CgTnmrYx.js} +7 -7
  92. package/dist/server/{CopyButton-CiYcsQcI.js → CopyButton-BdU_8aZB.js} +1 -1
  93. package/dist/server/{CopyButton-D2q7tQ0m.cjs → CopyButton-BpbGM72h.cjs} +1 -1
  94. package/dist/server/{DateRangePicker-BeByF_wt.cjs → DateRangePicker-ClJHlO9g.cjs} +1 -1
  95. package/dist/server/{DateRangePicker-TIOF99wh.js → DateRangePicker-DGXmbyCR.js} +5 -5
  96. package/dist/server/Disclosure-CUvaGDTZ.cjs +1 -0
  97. package/dist/server/Disclosure-ClOFRW_3.js +55 -0
  98. package/dist/server/GuidedTour-CCkg6Paz.js +350 -0
  99. package/dist/server/GuidedTour-PETCExHX.cjs +1 -0
  100. package/dist/server/{HostPortal-CwyePpDX.cjs → HostPortal-BNGZ8nw4.cjs} +1 -1
  101. package/dist/server/{HostPortal-C4xdfRyM.js → HostPortal-CdhnKAWT.js} +1 -1
  102. package/dist/server/{IconPicker-DX5JVIOl.js → IconPicker-B5lUuCxR.js} +5 -5
  103. package/dist/server/{IconPicker-QZrwihNH.cjs → IconPicker-BfRZtScr.cjs} +1 -1
  104. package/dist/server/{Input-V9Szcw6w.js → Input-DFAn8kou.js} +1 -1
  105. package/dist/server/{Input-UX0Hk53M.cjs → Input-DOTXKwhw.cjs} +1 -1
  106. package/dist/server/{Modal-DNYwnQ0V.cjs → Modal-BI3FtG-d.cjs} +1 -1
  107. package/dist/server/{Modal-Cl_asviX.js → Modal-Cbmikig8.js} +2 -2
  108. package/dist/server/{PageSkeleton-CP8EmxyS.cjs → PageSkeleton--ssP7Di9.cjs} +1 -1
  109. package/dist/server/{PageSkeleton-HhO6CRZ8.js → PageSkeleton-DRPIcDHU.js} +3 -3
  110. package/dist/server/{SearchableSelect-BBu5cP6P.cjs → SearchableSelect-DsHkuiTW.cjs} +1 -1
  111. package/dist/server/{SearchableSelect-B2ZFnp6i.js → SearchableSelect-y0Fr7cPS.js} +3 -3
  112. package/dist/server/{StatusBarNotificationBell-CB919YAX.cjs → StatusBarNotificationBell-BrHZ2r3X.cjs} +20 -20
  113. package/dist/server/{StatusBarNotificationBell-BfBGKXDG.js → StatusBarNotificationBell-CY16bTyI.js} +39 -38
  114. package/dist/server/{Stepper-C04rOZcI.cjs → Stepper-BOVzsqcG.cjs} +1 -1
  115. package/dist/server/{Stepper-CVAOsf3o.js → Stepper-DC34G5fk.js} +1 -1
  116. package/dist/server/{Textarea-DM4zpgWo.js → Textarea-CL2wYpW7.js} +1 -1
  117. package/dist/server/{Textarea-BG6F8taO.cjs → Textarea-D43xOjAJ.cjs} +1 -1
  118. package/dist/server/{TimeSeriesChart-tWbSF6fJ.cjs → TimeSeriesChart-CL1GjjV5.cjs} +1 -1
  119. package/dist/server/{TimeSeriesChart-kuuqH7we.js → TimeSeriesChart-CP-2M3R7.js} +1 -1
  120. package/dist/server/ToggleButton-BmvcLm_6.cjs +1 -0
  121. package/dist/server/ToggleButton-oDCxuzfp.js +1375 -0
  122. package/dist/server/VpRefresh-CEyHVNo-.cjs +1 -0
  123. package/dist/server/{VpRefresh-CjGV1jUv.js → VpRefresh-Dlqsm9Va.js} +17 -3
  124. package/dist/server/{appThemeDerivation-CKoSe4KP.js → appThemeDerivation--Nybjbd2.js} +36 -36
  125. package/dist/{appThemeDerivation-Be_oKljl.cjs → server/appThemeDerivation-Cgg74S4e.cjs} +1 -1
  126. package/dist/server/charts/index.cjs +1 -1
  127. package/dist/server/charts/index.js +1 -1
  128. package/dist/server/{createDialogShellFocus-B10Toy2h.js → createDialogShellFocus-BXCNQyU9.js} +1 -1
  129. package/dist/server/{createDialogShellFocus-usbhq9Av.cjs → createDialogShellFocus-CKsZl9Uz.cjs} +1 -1
  130. package/dist/server/createResizableSidebar-B8zMo4jJ.js +599 -0
  131. package/dist/server/createResizableSidebar-DXFKY01F.cjs +1 -0
  132. package/dist/server/de-BQbrl0SL.cjs +1 -0
  133. package/dist/{de-q3NXnC0J.js → server/de-CSWSMGCG.js} +45 -39
  134. package/dist/server/desktop/index.cjs +1 -1
  135. package/dist/server/desktop/index.js +3 -3
  136. package/dist/server/feedback/index.cjs +1 -1
  137. package/dist/server/feedback/index.js +2 -2
  138. package/dist/server/forms/index.cjs +1 -1
  139. package/dist/server/forms/index.js +9 -9
  140. package/dist/server/grid/index.cjs +1 -1
  141. package/dist/server/grid/index.js +1 -1
  142. package/dist/server/host/index.cjs +1 -1
  143. package/dist/server/host/index.js +1 -1
  144. package/dist/server/i18n/index.cjs +1 -1
  145. package/dist/server/i18n/index.js +1 -1
  146. package/dist/server/{i18n-CBlUGOyu.js → i18n-BJiKwNyr.js} +2 -2
  147. package/dist/server/{i18n-D3s-a2a0.cjs → i18n-DrmazJQC.cjs} +1 -1
  148. package/dist/server/index-CME-IDQX.cjs +1 -0
  149. package/dist/server/{index-BNXRPhpr.js → index-vTHpJ130.js} +3879 -3892
  150. package/dist/server/index.cjs +1 -1
  151. package/dist/server/index.js +327 -322
  152. package/dist/server/layout/index.cjs +1 -1
  153. package/dist/server/layout/index.js +18 -14
  154. package/dist/server/navigation/index.cjs +1 -1
  155. package/dist/server/navigation/index.js +1 -1
  156. package/dist/server/notifications/index.cjs +1 -1
  157. package/dist/server/notifications/index.js +1 -1
  158. package/dist/server/overlay/index.cjs +1 -1
  159. package/dist/server/overlay/index.js +80 -79
  160. package/dist/server/{rowSource-Yw-xtlih.cjs → rowSource-BOt_vVGY.cjs} +1 -1
  161. package/dist/server/{rowSource-BSa7rgYJ.js → rowSource-WElLH5Tb.js} +1 -1
  162. package/dist/server/tokens/index.cjs +1 -1
  163. package/dist/server/tokens/index.js +1 -1
  164. package/dist/server/{tr-C_dUz00P.js → tr-BL1soeyr.js} +33 -27
  165. package/dist/server/tr-sOAsJS3P.cjs +1 -0
  166. package/dist/server/tree/index.cjs +1 -1
  167. package/dist/server/tree/index.js +1 -1
  168. package/dist/solid/forms/NumberInput.jsx +14 -6
  169. package/dist/solid/forms/NumberInput.module.css.js +3 -1
  170. package/dist/solid/forms/RadioGroup.jsx +14 -3
  171. package/dist/solid/forms/RadioGroup.module.css.js +6 -1
  172. package/dist/solid/i18n/locales/de.json +4 -1
  173. package/dist/solid/i18n/locales/tr.json +4 -1
  174. package/dist/solid/layout/SettingsCard.jsx +103 -0
  175. package/dist/solid/layout/SettingsCard.module.css.js +33 -0
  176. package/dist/solid/layout/SettingsSubpageHeader.jsx +31 -0
  177. package/dist/solid/layout/SettingsSubpageHeader.module.css.js +10 -0
  178. package/dist/solid/layout/index.js +2 -0
  179. package/dist/solid/tokens/palette/accessiblePalette.js +2 -2
  180. package/dist/solid/tokens/palette/palettes.js +8 -8
  181. package/dist/style.css +89 -89
  182. package/dist/theme.css +88 -88
  183. package/dist/tokens/index.cjs +1 -1
  184. package/dist/tokens/index.js +1 -1
  185. package/dist/tokens/palette/accessiblePalette.d.cts +2 -2
  186. package/dist/tokens/palette/accessiblePalette.d.ts +2 -2
  187. package/dist/tokens/tokens.css +88 -88
  188. package/dist/{tr-C_dUz00P.js → tr-BL1soeyr.js} +33 -27
  189. package/dist/tr-sOAsJS3P.cjs +1 -0
  190. package/dist/tree/index.cjs +1 -1
  191. package/dist/tree/index.js +1 -1
  192. package/dist/ui.css +1 -1
  193. package/package.json +1 -1
  194. package/dist/GuidedTour-BTvAeAfT.cjs +0 -1
  195. package/dist/GuidedTour-CwbGGSIW.js +0 -483
  196. package/dist/ToggleButton-BTu9tcCi.js +0 -2144
  197. package/dist/ToggleButton-iMcQGwDn.cjs +0 -1
  198. package/dist/createResizableSidebar-De-8HN0W.js +0 -504
  199. package/dist/createResizableSidebar-JB_GlEN7.cjs +0 -1
  200. package/dist/de-BqFZ0Ac8.cjs +0 -1
  201. package/dist/server/GuidedTour-DCoB90h1.cjs +0 -1
  202. package/dist/server/GuidedTour-pdx_4IrZ.js +0 -400
  203. package/dist/server/ToggleButton-BbW2zC_f.js +0 -1344
  204. package/dist/server/ToggleButton-CQd_Jagp.cjs +0 -1
  205. package/dist/server/VpRefresh-Khu7XHaq.cjs +0 -1
  206. package/dist/server/createResizableSidebar-CeY4cES5.cjs +0 -1
  207. package/dist/server/createResizableSidebar-DA0AZVNV.js +0 -312
  208. package/dist/server/de-BqFZ0Ac8.cjs +0 -1
  209. package/dist/server/index-D0BVVt2h.cjs +0 -1
  210. package/dist/server/tr-D7bwe7tl.cjs +0 -1
  211. package/dist/tr-D7bwe7tl.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const e=require("solid-js/web"),r=require("./base-CrwDbIhF.cjs");var o='<path d="M19 12H5m4-4-4 4 4 4"></path>';const t=r.createIcon({name:"VpArrowLeft",a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:()=>e.ssr(o)});var n='<path d="M4.929 12A7.071 7.071 0 0 1 17 7m0-4v4h-4m6.071 5A7.071 7.071 0 0 1 7 17m0 4v-4h4"></path>';const s=r.createIcon({name:"VpRefresh",a:{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24"},c:()=>e.ssr(n)});exports.VpArrowLeft=t;exports.VpRefresh=s;
@@ -1,8 +1,8 @@
1
1
  import { ssr as r } from "solid-js/web";
2
2
  import { c as o } from "./base-BLohC_tW.js";
3
- var e = '<path d="M4.929 12A7.071 7.071 0 0 1 17 7m0-4v4h-4m6.071 5A7.071 7.071 0 0 1 7 17m0 4v-4h4"></path>';
3
+ var e = '<path d="M19 12H5m4-4-4 4 4 4"></path>';
4
4
  const s = /* @__PURE__ */ o({
5
- name: "VpRefresh",
5
+ name: "VpArrowLeft",
6
6
  a: {
7
7
  fill: "none",
8
8
  stroke: "currentColor",
@@ -13,6 +13,20 @@ const s = /* @__PURE__ */ o({
13
13
  },
14
14
  c: () => r(e)
15
15
  });
16
+ var t = '<path d="M4.929 12A7.071 7.071 0 0 1 17 7m0-4v4h-4m6.071 5A7.071 7.071 0 0 1 7 17m0 4v-4h4"></path>';
17
+ const p = /* @__PURE__ */ o({
18
+ name: "VpRefresh",
19
+ a: {
20
+ fill: "none",
21
+ stroke: "currentColor",
22
+ "stroke-linecap": "round",
23
+ "stroke-linejoin": "round",
24
+ "stroke-width": "2",
25
+ viewBox: "0 0 24 24"
26
+ },
27
+ c: () => r(t)
28
+ });
16
29
  export {
17
- s as V
30
+ p as V,
31
+ s as a
18
32
  };
@@ -8,16 +8,16 @@ const w = [
8
8
  type: "dark",
9
9
  design: "viper",
10
10
  palette: {
11
- surface: "#212329",
12
- surfaceAlt: "#181A1F",
13
- surfaceElevated: "#2D2F35",
11
+ surface: "#0F0F13",
12
+ surfaceAlt: "#07080B",
13
+ surfaceElevated: "#1E1F23",
14
14
  brand: "#808AE5",
15
15
  brandHover: "#707AD0",
16
- content: "#EBEDF0",
17
- contentSecondary: "#C7C9CE",
18
- border: "#2D2F35",
19
- input: "#181A1F",
20
- inputBorder: "#2D2F35",
16
+ content: "#F1F1F4",
17
+ contentSecondary: "#B9BAC0",
18
+ border: "#232428",
19
+ input: "#07080B",
20
+ inputBorder: "#232428",
21
21
  success: "#4FB772",
22
22
  error: "#E05D5A",
23
23
  warning: "#F0A945",
@@ -175,17 +175,17 @@ const w = [
175
175
  darcula: "viper-dark",
176
176
  light: "viper-light"
177
177
  }, rn = (n) => hn[n] ?? n;
178
- let I = "viper";
178
+ let D = "viper";
179
179
  function nr(n) {
180
180
  if (!Object.prototype.hasOwnProperty.call(nn, n))
181
181
  throw new Error(`Unknown theme design: ${String(n)}`);
182
- I = n;
182
+ D = n;
183
183
  }
184
184
  function rr() {
185
- return I;
185
+ return D;
186
186
  }
187
187
  function p(n = "dark") {
188
- return nn[I][n];
188
+ return nn[D][n];
189
189
  }
190
190
  const v = [];
191
191
  function er(n) {
@@ -203,7 +203,7 @@ function en(n) {
203
203
  }
204
204
  return null;
205
205
  }
206
- const tn = (n) => n.design === void 0 || n.design === I, S = (n) => w.find((r) => r.id === n);
206
+ const tn = (n) => n.design === void 0 || n.design === D, S = (n) => w.find((r) => r.id === n);
207
207
  function E(n) {
208
208
  const r = rn(n), e = S(r);
209
209
  return e && !tn(e) ? S(p(e.type)) : e ?? en(r) ?? S(p());
@@ -215,7 +215,7 @@ function tr(n) {
215
215
  const r = rn(n);
216
216
  return S(r) !== void 0 || en(r) !== null;
217
217
  }
218
- const D = 4.5, kn = 3;
218
+ const I = 4.5, kn = 3;
219
219
  function xn(n) {
220
220
  const r = n.trim().replace(/^#/, ""), e = r.length === 3 ? r.split("").map((t) => t + t).join("") : r;
221
221
  return e.length !== 6 || /[^0-9a-fA-F]/.test(e) ? null : {
@@ -267,7 +267,7 @@ const N = (n) => {
267
267
  const r = n / 255;
268
268
  return r <= 0.04045 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4);
269
269
  }, Tn = (n) => (n <= 31308e-7 ? 12.92 * n : 1.055 * Math.pow(n, 0.4166666666666667) - 0.055) * 255;
270
- function Cn(n) {
270
+ function Bn(n) {
271
271
  const r = n.trim().replace(/^#/, ""), e = r.length === 3 ? r.split("").map((t) => t + t).join("") : r;
272
272
  if (e.length !== 6 || /[^0-9a-fA-F]/.test(e))
273
273
  throw new Z(
@@ -280,7 +280,7 @@ function Cn(n) {
280
280
  };
281
281
  }
282
282
  function Sn(n) {
283
- const { r, g: e, b: t } = Cn(n), o = N(r), s = N(e), c = N(t), u = Math.cbrt(0.4122214708 * o + 0.5363325363 * s + 0.0514459929 * c), i = Math.cbrt(0.2119034982 * o + 0.6806995451 * s + 0.1073969566 * c), d = Math.cbrt(0.0883024619 * o + 0.2817188376 * s + 0.6299787005 * c), l = 0.2104542553 * u + 0.793617785 * i - 0.0040720468 * d, y = 1.9779984951 * u - 2.428592205 * i + 0.4505937099 * d, f = 0.0259040371 * u + 0.7827717662 * i - 0.808675766 * d, g = Math.atan2(f, y) * 180 / Math.PI;
283
+ const { r, g: e, b: t } = Bn(n), o = N(r), s = N(e), c = N(t), u = Math.cbrt(0.4122214708 * o + 0.5363325363 * s + 0.0514459929 * c), i = Math.cbrt(0.2119034982 * o + 0.6806995451 * s + 0.1073969566 * c), d = Math.cbrt(0.0883024619 * o + 0.2817188376 * s + 0.6299787005 * c), l = 0.2104542553 * u + 0.793617785 * i - 0.0040720468 * d, y = 1.9779984951 * u - 2.428592205 * i + 0.4505937099 * d, f = 0.0259040371 * u + 0.7827717662 * i - 0.808675766 * d, g = Math.atan2(f, y) * 180 / Math.PI;
284
284
  return { l, c: Math.hypot(y, f), h: g < 0 ? g + 360 : g };
285
285
  }
286
286
  function K({ l: n, c: r, h: e }) {
@@ -292,7 +292,7 @@ function K({ l: n, c: r, h: e }) {
292
292
  };
293
293
  }
294
294
  const h = 1e-4, q = ({ r: n, g: r, b: e }) => n >= -h && n <= 1 + h && r >= -h && r <= 1 + h && e >= -h && e <= 1 + h;
295
- function Bn({ l: n, c: r, h: e }) {
295
+ function Cn({ l: n, c: r, h: e }) {
296
296
  if (q(K({ l: n, c: r, h: e }))) return r;
297
297
  let t = 0, o = r;
298
298
  for (let s = 0; s < 24; s++) {
@@ -302,7 +302,7 @@ function Bn({ l: n, c: r, h: e }) {
302
302
  return t;
303
303
  }
304
304
  function O(n) {
305
- const r = Bn(n), e = K({ ...n, c: r }), t = (o) => Math.max(0, Math.min(255, Math.round(Tn(o)))).toString(16).padStart(2, "0");
305
+ const r = Cn(n), e = K({ ...n, c: r }), t = (o) => Math.max(0, Math.min(255, Math.round(Tn(o)))).toString(16).padStart(2, "0");
306
306
  return `#${t(e.r)}${t(e.g)}${t(e.b)}`;
307
307
  }
308
308
  function U(n, r, e, t) {
@@ -344,7 +344,7 @@ function wn(n, r, e) {
344
344
  }
345
345
  return t;
346
346
  }
347
- function Dn(n, r, e) {
347
+ function In(n, r, e) {
348
348
  let t = r[0] ?? "#ffffff", o = -1;
349
349
  for (const s of r) {
350
350
  const c = m(s, n);
@@ -353,7 +353,7 @@ function Dn(n, r, e) {
353
353
  }
354
354
  return t;
355
355
  }
356
- const In = "#2A2C31", Mn = "#1C1E23", on = 0.25, or = on;
356
+ const Dn = "#131417", Mn = "#0A0B0E", on = 0.25, or = on;
357
357
  function _n(n) {
358
358
  return $(n.inputBorder, n.input, kn);
359
359
  }
@@ -363,7 +363,7 @@ function Ln(n, r, e) {
363
363
  r.surfaceAlt,
364
364
  r.surfaceElevated
365
365
  ];
366
- return e === "dark" && t.push(In, Mn), t.flatMap((o) => [
366
+ return e === "dark" && t.push(Dn, Mn), t.flatMap((o) => [
367
367
  o,
368
368
  An(n, o, on)
369
369
  ]);
@@ -372,7 +372,7 @@ function Nn(n, r, e) {
372
372
  return wn(
373
373
  n,
374
374
  Ln(n, r, e),
375
- D
375
+ I
376
376
  );
377
377
  }
378
378
  const sr = [
@@ -383,13 +383,13 @@ const sr = [
383
383
  "info"
384
384
  ], On = 60;
385
385
  function T(n) {
386
- return k(m("#ffffff", n), D) || En(n) >= On ? n : $(n, "#ffffff", D);
386
+ return k(m("#ffffff", n), I) || En(n) >= On ? n : $(n, "#ffffff", I);
387
387
  }
388
388
  function Hn(n, r) {
389
- return Dn(
389
+ return In(
390
390
  n,
391
391
  ["#ffffff", r.surfaceAlt, "#000000"],
392
- D
392
+ I
393
393
  );
394
394
  }
395
395
  const cr = ["brand", "error", "success", "warning"], Kn = "#D76CB7", Pn = "data-colorblind-safe", P = {
@@ -558,21 +558,21 @@ function R(n) {
558
558
  b: Number.parseInt(e.slice(4, 6), 16)
559
559
  };
560
560
  }
561
- function B({ r: n, g: r, b: e }) {
561
+ function C({ r: n, g: r, b: e }) {
562
562
  const t = (o) => Un(o).toString(16).padStart(2, "0");
563
563
  return `#${t(n)}${t(r)}${t(e)}`;
564
564
  }
565
565
  function a(n, r = "#000000") {
566
566
  const e = R(n);
567
- return e ? B(e) : r;
567
+ return e ? C(e) : r;
568
568
  }
569
569
  function F(n, r, e) {
570
570
  const t = R(n), o = R(r);
571
571
  if (!t && !o) return "#000000";
572
- if (!t) return B(o);
573
- if (!o) return B(t);
572
+ if (!t) return C(o);
573
+ if (!o) return C(t);
574
574
  const s = Math.max(0, Math.min(1, e));
575
- return B({
575
+ return C({
576
576
  r: t.r + (o.r - t.r) * s,
577
577
  g: t.g + (o.g - t.g) * s,
578
578
  b: t.b + (o.b - t.b) * s
@@ -588,7 +588,7 @@ function Yn(n, r) {
588
588
  function zn(n, r, e) {
589
589
  return r === "dark" ? an(n, e) : Yn(n, e);
590
590
  }
591
- function C(n, r) {
591
+ function B(n, r) {
592
592
  return `${a(n)}${r}`;
593
593
  }
594
594
  function fr() {
@@ -674,13 +674,13 @@ function yr(n, r) {
674
674
  "input.foreground": i,
675
675
  "input.border": a(n.inputBorder),
676
676
  "input.placeholderForeground": a(n.contentSecondary),
677
- "inputOption.activeBackground": C(d, "40"),
677
+ "inputOption.activeBackground": B(d, "40"),
678
678
  "inputOption.activeBorder": d,
679
679
  "inputOption.activeForeground": i,
680
680
  focusBorder: d,
681
- "editor.findMatchBackground": C(a(n.warning), "80"),
682
- "editor.findMatchHighlightBackground": C(a(n.warning), "40"),
683
- "editor.findRangeHighlightBackground": C(b, "60")
681
+ "editor.findMatchBackground": B(a(n.warning), "80"),
682
+ "editor.findMatchHighlightBackground": B(a(n.warning), "40"),
683
+ "editor.findRangeHighlightBackground": B(b, "60")
684
684
  };
685
685
  return {
686
686
  base: r === "dark" ? "vs-dark" : "vs",
@@ -729,7 +729,7 @@ export {
729
729
  Mn as W,
730
730
  nn as a,
731
731
  ur as b,
732
- In as c,
732
+ Dn as c,
733
733
  T as d,
734
734
  _n as e,
735
735
  Hn as f,
@@ -1 +1 @@
1
- "use strict";const ee=require("solid-js/web"),y=require("solid-js"),ne=require("./bugIndicatingError-D2X5Hfgg.cjs"),S=[{id:"viper-dark",label:"Viper Dark",type:"dark",design:"viper",palette:{surface:"#212329",surfaceAlt:"#181A1F",surfaceElevated:"#2D2F35",brand:"#808AE5",brandHover:"#707AD0",content:"#EBEDF0",contentSecondary:"#C7C9CE",border:"#2D2F35",input:"#181A1F",inputBorder:"#2D2F35",success:"#4FB772",error:"#E05D5A",warning:"#F0A945",info:"#55A8DB",syntaxKeyword:"#BC97E8",syntaxString:"#92C487",syntaxFunction:"#F0C77C",syntaxNumber:"#6FBCE3",syntaxType:"#76CDC5",syntaxComment:"#8F939F"}},{id:"viper-light",label:"Viper Light",type:"light",design:"viper",palette:{surface:"#FFFFFF",surfaceAlt:"#F3F4F8",surfaceElevated:"#FFFFFF",brand:"#5355D0",brandHover:"#4545B6",content:"#1C1E24",contentSecondary:"#5F636F",border:"#DFE1E7",input:"#FFFFFF",inputBorder:"#D0D2D9",success:"#048A45",error:"#C72C34",warning:"#C27400",info:"#007AB0",syntaxKeyword:"#7D3AB7",syntaxString:"#357426",syntaxFunction:"#895709",syntaxNumber:"#006A9D",syntaxType:"#007973",syntaxComment:"#696D79"}},{id:"vokril-dark",label:"Vokril Dark",type:"dark",design:"vokril",palette:{surface:"#121018",surfaceAlt:"#1C1925",surfaceElevated:"#121018",brand:"#8C75F2",brandHover:"#A593F6",content:"#F0EDF7",contentSecondary:"#A8A1B8",border:"#2C2838",input:"#1C1925",inputBorder:"#2C2838",success:"#4FB772",error:"#FF8A80",warning:"#F0A945",info:"#55A8DB",syntaxKeyword:"#BC97E8",syntaxString:"#92C487",syntaxFunction:"#F0C77C",syntaxNumber:"#6FBCE3",syntaxType:"#76CDC5",syntaxComment:"#8F939F"}},{id:"vokril-light",label:"Vokril Light",type:"light",design:"vokril",palette:{surface:"#FFFFFF",surfaceAlt:"#F3F1F7",surfaceElevated:"#FFFFFF",brand:"#593BD8",brandHover:"#4227B4",content:"#24212D",contentSecondary:"#5E596B",border:"#DEDBE5",input:"#FFFFFF",inputBorder:"#DEDBE5",success:"#048A45",error:"#B42318",warning:"#C27400",info:"#007AB0",syntaxKeyword:"#7D3AB7",syntaxString:"#357426",syntaxFunction:"#895709",syntaxNumber:"#006A9D",syntaxType:"#007973",syntaxComment:"#696D79"}},{id:"high-contrast-dark",label:"High Contrast Dark",type:"dark",palette:{surface:"#000000",surfaceAlt:"#000000",surfaceElevated:"#121212",brand:"#66B2FF",brandHover:"#99CCFF",content:"#FFFFFF",contentSecondary:"#E6E6E6",border:"#FFFFFF",input:"#000000",inputBorder:"#FFFFFF",success:"#57E389",error:"#FF7B72",warning:"#F0B429",info:"#66B2FF",syntaxKeyword:"#FF9999",syntaxString:"#99E699",syntaxFunction:"#FFE066",syntaxNumber:"#99CCFF",syntaxType:"#FFCC80",syntaxComment:"#B0B0B0"}},{id:"high-contrast-light",label:"High Contrast Light",type:"light",palette:{surface:"#FFFFFF",surfaceAlt:"#FFFFFF",surfaceElevated:"#FFFFFF",brand:"#0047BA",brandHover:"#003080",content:"#000000",contentSecondary:"#262626",border:"#000000",input:"#FFFFFF",inputBorder:"#000000",success:"#006622",error:"#B30000",warning:"#8C4600",info:"#0047BA",syntaxKeyword:"#8C0000",syntaxString:"#005C1F",syntaxFunction:"#4D2600",syntaxNumber:"#0047BA",syntaxType:"#0047BA",syntaxComment:"#404040"}}],$={viper:{dark:"viper-dark",light:"viper-light"},vokril:{dark:"vokril-dark",light:"vokril-light"}},re="viper-dark",te={darcula:"viper-dark",light:"viper-light"},oe=e=>te[e]??e;let _="viper";function Te(e){if(!Object.prototype.hasOwnProperty.call($,e))throw new Error(`Unknown theme design: ${String(e)}`);_=e}function Ae(){return _}function b(e="dark"){return $[_][e]}const v=[];function ve(e){return v.push(e),{dispose:()=>{const n=v.indexOf(e);n!==-1&&v.splice(n,1)}}}function ce(e){for(const n of v){const r=n.byId(e);if(r!==null)return r}return null}const se=e=>e.design===void 0||e.design===_,w=e=>S.find(n=>n.id===e);function T(e){const n=oe(e),r=w(n);return r&&!se(r)?w(b(r.type)):r??ce(n)??w(b())}function ie(){return[...S.filter(se),...v.flatMap(e=>e.options())]}function Se(e){const n=oe(e);return w(n)!==void 0||ce(n)!==null}const D=4.5,Ce=3;function Be(e){const n=e.trim().replace(/^#/,""),r=n.length===3?n.split("").map(t=>t+t).join(""):n;return r.length!==6||/[^0-9a-fA-F]/.test(r)?null:{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16)}}function we({r:e,g:n,b:r}){const t=o=>Math.max(0,Math.min(255,Math.round(o))).toString(16).padStart(2,"0");return`#${t(e)}${t(n)}${t(r)}`}function P(e){const n=Be(e);if(!n)throw new ne.BugIndicatingError(`contrast: expected #rgb/#rrggbb, got ${JSON.stringify(e)}. Resolve var()/transparent/color-mix to a literal hex before measuring.`);return n}function L(e){const n=e/255;return n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function C(e){const{r:n,g:r,b:t}=P(e);return .2126*L(n)+.7152*L(r)+.0722*L(t)}function h(e,n){const r=C(e),t=C(n),[o,c]=r>t?[r,t]:[t,r];return(o+.05)/(c+.05)}function Ie(e,n,r){const t=P(e),o=P(n),c=Math.max(0,Math.min(1,r));return we({r:t.r+(o.r-t.r)*(1-c),g:t.g+(o.g-t.g)*(1-c),b:t.b+(o.b-t.b)*(1-c)})}function x(e,n){return e+1e-9>=n}function De(e){const n=C(e);return 116*(n>(6/29)**3?Math.cbrt(n):n/(3*(6/29)**2)+4/29)-16}const N=e=>{const n=e/255;return n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)},_e=e=>(e<=.0031308?12.92*e:1.055*Math.pow(e,.4166666666666667)-.055)*255;function Me(e){const n=e.trim().replace(/^#/,""),r=n.length===3?n.split("").map(t=>t+t).join(""):n;if(r.length!==6||/[^0-9a-fA-F]/.test(r))throw new ne.BugIndicatingError(`oklch: expected #rgb/#rrggbb, got ${JSON.stringify(e)}`);return{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16)}}function Le(e){const{r:n,g:r,b:t}=Me(e),o=N(n),c=N(r),s=N(t),u=Math.cbrt(.4122214708*o+.5363325363*c+.0514459929*s),i=Math.cbrt(.2119034982*o+.6806995451*c+.1073969566*s),d=Math.cbrt(.0883024619*o+.2817188376*c+.6299787005*s),f=.2104542553*u+.793617785*i-.0040720468*d,m=1.9779984951*u-2.428592205*i+.4505937099*d,l=.0259040371*u+.7827717662*i-.808675766*d,g=Math.atan2(l,m)*180/Math.PI;return{l:f,c:Math.hypot(m,l),h:g<0?g+360:g}}function H({l:e,c:n,h:r}){const t=r*Math.PI/180,o=n*Math.cos(t),c=n*Math.sin(t),s=(e+.3963377774*o+.2158037573*c)**3,u=(e-.1055613458*o-.0638541728*c)**3,i=(e-.0894841775*o-1.291485548*c)**3;return{r:4.0767416621*s-3.3077115913*u+.2309699292*i,g:-1.2684380046*s+2.6097574011*u-.3413193965*i,b:-.0041960863*s-.7034186147*u+1.707614701*i}}const k=1e-4,X=({r:e,g:n,b:r})=>e>=-k&&e<=1+k&&n>=-k&&n<=1+k&&r>=-k&&r<=1+k;function Ne({l:e,c:n,h:r}){if(X(H({l:e,c:n,h:r})))return n;let t=0,o=n;for(let c=0;c<24;c++){const s=(t+o)/2;X(H({l:e,c:s,h:r}))?t=s:o=s}return t}function O(e){const n=Ne(e),r=H({...e,c:n}),t=o=>Math.max(0,Math.min(255,Math.round(_e(o)))).toString(16).padStart(2,"0");return`#${t(r.r)}${t(r.g)}${t(r.b)}`}function Y(e,n,r,t){const o=Le(e),c=t==="lighter"?1:0,s=O({...o,l:c});if(!x(h(s,n),r))return s;let u=o.l,i=c;for(let d=0;d<24;d++){const f=(u+i)/2;x(h(O({...o,l:f}),n),r)?i=f:u=f}return O({...o,l:i})}function G(e,n,r){if(x(h(e,n),r))return e;const t=C(e)<C(n),o=Y(e,n,r,t?"darker":"lighter");if(x(h(o,n),r))return o;const c=Y(e,n,r,t?"lighter":"darker");return h(c,n)>h(o,n)?c:o}function Oe(e,n,r){let t=e;for(let o=0;o<8;o++){let c=!1;for(const s of n){const u=G(t,s,r);u!==t&&(t=u,c=!0)}if(!c)break}return t}function Pe(e,n,r){let t=n[0]??"#ffffff",o=-1;for(const c of n){const s=h(c,e);if(x(s,r))return c;s>o&&(o=s,t=c)}return t}const ae="#2A2C31",ue="#1C1E23",de=.25,He=de;function le(e){return G(e.inputBorder,e.input,Ce)}function fe(e,n,r){const t=[n.surface,n.surfaceAlt,n.surfaceElevated];return r==="dark"&&t.push(ae,ue),t.flatMap(o=>[o,Ie(e,o,de)])}function ge(e,n,r){return Oe(e,fe(e,n,r),D)}const Ke=["error","brand","success","warning","info"],Re=60;function A(e){return x(h("#ffffff",e),D)||De(e)>=Re?e:G(e,"#ffffff",D)}function me(e,n){return Pe(e,["#ffffff",n.surfaceAlt,"#000000"],D)}const Ve=["brand","error","success","warning"],ye="#D76CB7",$e="data-colorblind-safe",K={success:"#009e73",error:"#d55e00",warning:"#e69f00",info:"#56b4e9"},R={added:K.success,deleted:K.error};function he(e){return{...e,...K}}function Ge(){return typeof document>"u"?!1:document.documentElement.hasAttribute($e)}function Fe(e,n,r){const t=d=>ge(d,e,n),o=A(e.brand),c=A(e.error),s=A(e.success),u=A(e.warning),i=d=>me(d,e);return{"--color-surface":e.surface,"--color-surface-alt":e.surfaceAlt,"--color-surface-elevated":e.surfaceElevated,"--color-brand":e.brand,"--color-brand-hover":e.brandHover,"--color-content":e.content,"--color-content-secondary":e.contentSecondary,"--color-border":e.border,"--color-input":e.input,"--color-input-border":le(e),"--color-success":e.success,"--color-error":e.error,"--color-warning":e.warning,"--color-info":e.info,"--color-success-text":t(e.success),"--color-error-text":t(e.error),"--color-warning-text":t(e.warning),"--color-info-text":t(e.info),"--color-brand-text":t(e.brand),"--color-unique-text":t(ye),"--color-brand-surface":o,"--color-error-surface":c,"--color-success-surface":s,"--color-warning-surface":u,"--color-on-brand":i(o),"--color-on-error":i(c),"--color-on-success":i(s),"--color-on-warning":i(u),"--color-diff-added":r?R.added:"","--color-diff-deleted":r?R.deleted:"","--color-syntax-keyword":e.syntaxKeyword,"--color-syntax-string":e.syntaxString,"--color-syntax-function":e.syntaxFunction,"--color-syntax-comment":e.syntaxComment,"--color-syntax-number":e.syntaxNumber,"--color-syntax-type":e.syntaxType}}const j="data-colorblind-safe",J="data-design";function W(e,n=!1){return T(e==="system"?b(n?"light":"dark"):e==="dark"?b("dark"):e==="light"?b("light"):e)}function be(e,n={}){var u,i;const r=typeof e=="string"?W(e):e,t=n.document??(typeof document<"u"?document:void 0);if(!t)return r;const o=t.documentElement,c=n.colorVisionSafe??!1;c?o.setAttribute(j,""):o.removeAttribute(j);const s=c?he(r.palette):r.palette;for(const[d,f]of Object.entries(Fe(s,r.type,c)))o.style.setProperty(d,f);return(u=t.body)==null||u.classList.remove("light","dark"),(i=t.body)==null||i.classList.add(r.type),o.classList.remove("light","dark"),o.classList.add(r.type),o.style.colorScheme=r.type,o.setAttribute("data-app-theme",r.id),r.design?o.setAttribute(J,r.design):o.removeAttribute(J),r}function We(){return ie()}const qe="vokril-ui-theme",Ue="(prefers-color-scheme: light)";function Xe(){try{return typeof localStorage>"u"?null:localStorage}catch{return null}}const pe=y.createContext(),Ye=e=>{var q,U;const n=e.storageKey===void 0?qe:e.storageKey,r=e.storage===void 0?Xe():e.storage,t=()=>{if(!r||!n)return null;try{return r.getItem(n)}catch{return null}},o=((q=e.document)==null?void 0:q.defaultView)??(typeof window>"u"?void 0:window),c=(U=o==null?void 0:o.matchMedia)==null?void 0:U.call(o,Ue),[s,u]=y.createSignal(t()??e.defaultTheme??"dark"),[i,d]=y.createSignal((c==null?void 0:c.matches)??!1),[f,m]=y.createSignal(e.colorVisionSafe??!1);if(c){const E=Ee=>d(Ee.matches);c.addEventListener("change",E),y.onCleanup(()=>c.removeEventListener("change",E))}const l=y.createMemo(()=>W(s(),i())),g=y.createMemo(()=>l().type),F=E=>{if(u(E),!(!r||!n))try{r.setItem(n,E)}catch{}},M=()=>F(g()==="dark"?"light":"dark");y.createEffect(()=>{be(l(),{colorVisionSafe:f(),document:e.document})});const xe={theme:s,resolvedTheme:g,themeId:()=>l().id,setTheme:F,toggleTheme:M,colorVisionSafe:f,setColorVisionSafe:m};return ee.createComponent(pe.Provider,{value:xe,get children(){return e.children}})};let z=!1;function je(){const e=y.useContext(pe);return e||(ee.isDev&&!z&&(z=!0,console.warn("@vokril/ui-solid: useTheme() was called outside <ThemeProvider>; it reports the design's dark theme and ignores setTheme.")),{theme:()=>"dark",resolvedTheme:()=>"dark",themeId:()=>b(),setTheme:()=>{},toggleTheme:()=>{},colorVisionSafe:()=>!1,setColorVisionSafe:()=>{}})}var Z;const Q=((Z=S.find(e=>e.id===re))==null?void 0:Z.palette)??S[0].palette;function Je(e){return Math.max(0,Math.min(255,Math.round(e)))}function V(e){const n=e.trim().replace(/^#/,""),r=n.length===3?n.split("").map(t=>t+t).join(""):n;return r.length!==6||/[^0-9a-fA-F]/.test(r)?null:{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16)}}function I({r:e,g:n,b:r}){const t=o=>Je(o).toString(16).padStart(2,"0");return`#${t(e)}${t(n)}${t(r)}`}function a(e,n="#000000"){const r=V(e);return r?I(r):n}function p(e,n,r){const t=V(e),o=V(n);if(!t&&!o)return"#000000";if(!t)return I(o);if(!o)return I(t);const c=Math.max(0,Math.min(1,r));return I({r:t.r+(o.r-t.r)*c,g:t.g+(o.g-t.g)*c,b:t.b+(o.b-t.b)*c})}const ze="#ffffff",Qe="#000000";function ke(e,n){return p(e,ze,n)}function Ze(e,n){return p(e,Qe,n)}function en(e,n,r){return n==="dark"?ke(e,r):Ze(e,r)}function B(e,n){return`${a(e)}${n}`}function nn(){if(typeof document>"u")return Q;const e=getComputedStyle(document.documentElement),n=(t,o)=>e.getPropertyValue(t).trim()||o,r=Q;return{surface:n("--color-surface",r.surface),surfaceAlt:n("--color-surface-alt",r.surfaceAlt),surfaceElevated:n("--color-surface-elevated",r.surfaceElevated),brand:n("--color-brand",r.brand),brandHover:n("--color-brand-hover",r.brandHover),content:n("--color-content",r.content),contentSecondary:n("--color-content-secondary",r.contentSecondary),border:n("--color-border",r.border),input:n("--color-input",r.input),inputBorder:n("--color-input-border",r.inputBorder),success:n("--color-success",r.success),error:n("--color-error",r.error),warning:n("--color-warning",r.warning),info:n("--color-info",r.info),syntaxKeyword:n("--color-syntax-keyword",r.syntaxKeyword),syntaxString:n("--color-syntax-string",r.syntaxString),syntaxFunction:n("--color-syntax-function",r.syntaxFunction),syntaxComment:n("--color-syntax-comment",r.syntaxComment),syntaxNumber:n("--color-syntax-number",r.syntaxNumber),syntaxType:n("--color-syntax-type",r.syntaxType)}}function rn(){return typeof document>"u"?"dark":document.body.classList.contains("light")?"light":"dark"}function tn(){return typeof document>"u"?"":document.documentElement.getAttribute("data-app-theme")??""}function on(e,n){const r=a(e.syntaxKeyword),t=a(e.syntaxString),o=a(e.syntaxFunction),c=a(e.syntaxComment),s=a(e.syntaxNumber),u=a(e.syntaxType),i=a(e.content),d=a(e.brand),f=a(e.error),m=[{token:"",foreground:i.slice(1)},{token:"comment",foreground:c.slice(1),fontStyle:"italic"},{token:"comment.quote",foreground:c.slice(1),fontStyle:"italic"},{token:"keyword",foreground:r.slice(1)},{token:"keyword.sql",foreground:r.slice(1)},{token:"operator",foreground:r.slice(1)},{token:"operator.sql",foreground:r.slice(1)},{token:"string",foreground:t.slice(1)},{token:"string.sql",foreground:t.slice(1)},{token:"string.escape",foreground:r.slice(1)},{token:"number",foreground:s.slice(1)},{token:"number.float",foreground:s.slice(1)},{token:"number.hex",foreground:s.slice(1)},{token:"constant",foreground:s.slice(1)},{token:"type",foreground:u.slice(1)},{token:"type.identifier",foreground:u.slice(1)},{token:"predefined",foreground:o.slice(1)},{token:"predefined.sql",foreground:o.slice(1)},{token:"function",foreground:o.slice(1)},{token:"identifier",foreground:i.slice(1)},{token:"identifier.quote",foreground:t.slice(1)},{token:"variable",foreground:i.slice(1)},{token:"delimiter",foreground:i.slice(1)},{token:"tag",foreground:r.slice(1)},{token:"attribute.name",foreground:o.slice(1)},{token:"attribute.value",foreground:t.slice(1)},{token:"annotation",foreground:e.warning.replace(/^#/,"")},{token:"regexp",foreground:f.slice(1)}],l=a(e.surfaceAlt),g=a(e.surface),F=a(e.surfaceElevated),M={"editor.background":l,"editor.foreground":i,"editorLineNumber.foreground":a(e.contentSecondary),"editorLineNumber.activeForeground":i,"editorCursor.foreground":d,"editor.selectionBackground":p(g,d,.32),"editor.inactiveSelectionBackground":p(g,d,.18),"editor.lineHighlightBackground":p(l,g,.55),"editorWidget.background":F,"editorWidget.foreground":i,"editorWidget.border":a(e.border),"editorWidget.resizeBorder":d,"input.background":a(e.input),"input.foreground":i,"input.border":a(e.inputBorder),"input.placeholderForeground":a(e.contentSecondary),"inputOption.activeBackground":B(d,"40"),"inputOption.activeBorder":d,"inputOption.activeForeground":i,focusBorder:d,"editor.findMatchBackground":B(a(e.warning),"80"),"editor.findMatchHighlightBackground":B(a(e.warning),"40"),"editor.findRangeHighlightBackground":B(F,"60")};return{base:n==="dark"?"vs-dark":"vs",inherit:!0,rules:m,colors:M}}function cn(e,n){const r=a(e.surface),t=a(e.surfaceElevated),o=a(e.content),c=a(e.contentSecondary),s=a(e.brand),u=a(e.error),i=a(e.success),d=a(e.warning),f=a(e.info),m=a(e.syntaxKeyword),l=F=>en(F,n,.22),g={black:t,red:u,green:i,yellow:d,blue:s,magenta:m,cyan:f,white:c,brightBlack:p(t,o,.4),brightRed:l(u),brightGreen:l(i),brightYellow:l(d),brightBlue:l(s),brightMagenta:l(m),brightCyan:l(f),brightWhite:n==="dark"?ke(o,.25):o};return{background:r,foreground:o,cursor:s,selectionBackground:p(t,s,.2),...g}}exports.DEFAULT_THEME_ID=re;exports.DESIGN_THEMES=$;exports.INK_ROLE_KEYS=Ve;exports.LEGACY_THEME_IDS=te;exports.MAX_TEXT_TINT_ALPHA=He;exports.OKABE_ITO_DIFF=R;exports.TEXT_ROLE_KEYS=Ke;exports.ThemeProvider=Ye;exports.UNIQUE_ACCENT=ye;exports.WELD_BG=ue;exports.WELD_SURFACE=ae;exports.accessibleFillSurface=A;exports.accessibleInputBorder=le;exports.accessibleOnFillInk=me;exports.accessibleTextColor=ge;exports.applyAppTheme=be;exports.derivePaletteProperties=Fe;exports.generateMonacoThemeFromPalette=on;exports.generateTerminalPaletteFromPalette=cn;exports.getDefaultThemeId=b;exports.getThemeById=T;exports.getThemeDesign=Ae;exports.getThemeOptions=ie;exports.getThemes=We;exports.isColorVisionSafeActive=Ge;exports.isKnownThemeId=Se;exports.readActiveAppPalette=nn;exports.readActiveAppThemeId=tn;exports.readActiveAppThemeType=rn;exports.registerThemeSource=ve;exports.resolveThemeOption=W;exports.setThemeDesign=Te;exports.textGroundsFor=fe;exports.themeOptions=S;exports.toColorVisionSafePalette=he;exports.useTheme=je;
1
+ "use strict";const ee=require("solid-js/web"),y=require("solid-js"),ne=require("./bugIndicatingError-D2X5Hfgg.cjs"),S=[{id:"viper-dark",label:"Viper Dark",type:"dark",design:"viper",palette:{surface:"#0F0F13",surfaceAlt:"#07080B",surfaceElevated:"#1E1F23",brand:"#808AE5",brandHover:"#707AD0",content:"#F1F1F4",contentSecondary:"#B9BAC0",border:"#232428",input:"#07080B",inputBorder:"#232428",success:"#4FB772",error:"#E05D5A",warning:"#F0A945",info:"#55A8DB",syntaxKeyword:"#BC97E8",syntaxString:"#92C487",syntaxFunction:"#F0C77C",syntaxNumber:"#6FBCE3",syntaxType:"#76CDC5",syntaxComment:"#8F939F"}},{id:"viper-light",label:"Viper Light",type:"light",design:"viper",palette:{surface:"#FFFFFF",surfaceAlt:"#F3F4F8",surfaceElevated:"#FFFFFF",brand:"#5355D0",brandHover:"#4545B6",content:"#1C1E24",contentSecondary:"#5F636F",border:"#DFE1E7",input:"#FFFFFF",inputBorder:"#D0D2D9",success:"#048A45",error:"#C72C34",warning:"#C27400",info:"#007AB0",syntaxKeyword:"#7D3AB7",syntaxString:"#357426",syntaxFunction:"#895709",syntaxNumber:"#006A9D",syntaxType:"#007973",syntaxComment:"#696D79"}},{id:"vokril-dark",label:"Vokril Dark",type:"dark",design:"vokril",palette:{surface:"#121018",surfaceAlt:"#1C1925",surfaceElevated:"#121018",brand:"#8C75F2",brandHover:"#A593F6",content:"#F0EDF7",contentSecondary:"#A8A1B8",border:"#2C2838",input:"#1C1925",inputBorder:"#2C2838",success:"#4FB772",error:"#FF8A80",warning:"#F0A945",info:"#55A8DB",syntaxKeyword:"#BC97E8",syntaxString:"#92C487",syntaxFunction:"#F0C77C",syntaxNumber:"#6FBCE3",syntaxType:"#76CDC5",syntaxComment:"#8F939F"}},{id:"vokril-light",label:"Vokril Light",type:"light",design:"vokril",palette:{surface:"#FFFFFF",surfaceAlt:"#F3F1F7",surfaceElevated:"#FFFFFF",brand:"#593BD8",brandHover:"#4227B4",content:"#24212D",contentSecondary:"#5E596B",border:"#DEDBE5",input:"#FFFFFF",inputBorder:"#DEDBE5",success:"#048A45",error:"#B42318",warning:"#C27400",info:"#007AB0",syntaxKeyword:"#7D3AB7",syntaxString:"#357426",syntaxFunction:"#895709",syntaxNumber:"#006A9D",syntaxType:"#007973",syntaxComment:"#696D79"}},{id:"high-contrast-dark",label:"High Contrast Dark",type:"dark",palette:{surface:"#000000",surfaceAlt:"#000000",surfaceElevated:"#121212",brand:"#66B2FF",brandHover:"#99CCFF",content:"#FFFFFF",contentSecondary:"#E6E6E6",border:"#FFFFFF",input:"#000000",inputBorder:"#FFFFFF",success:"#57E389",error:"#FF7B72",warning:"#F0B429",info:"#66B2FF",syntaxKeyword:"#FF9999",syntaxString:"#99E699",syntaxFunction:"#FFE066",syntaxNumber:"#99CCFF",syntaxType:"#FFCC80",syntaxComment:"#B0B0B0"}},{id:"high-contrast-light",label:"High Contrast Light",type:"light",palette:{surface:"#FFFFFF",surfaceAlt:"#FFFFFF",surfaceElevated:"#FFFFFF",brand:"#0047BA",brandHover:"#003080",content:"#000000",contentSecondary:"#262626",border:"#000000",input:"#FFFFFF",inputBorder:"#000000",success:"#006622",error:"#B30000",warning:"#8C4600",info:"#0047BA",syntaxKeyword:"#8C0000",syntaxString:"#005C1F",syntaxFunction:"#4D2600",syntaxNumber:"#0047BA",syntaxType:"#0047BA",syntaxComment:"#404040"}}],$={viper:{dark:"viper-dark",light:"viper-light"},vokril:{dark:"vokril-dark",light:"vokril-light"}},re="viper-dark",te={darcula:"viper-dark",light:"viper-light"},oe=e=>te[e]??e;let D="viper";function Ee(e){if(!Object.prototype.hasOwnProperty.call($,e))throw new Error(`Unknown theme design: ${String(e)}`);D=e}function Ae(){return D}function b(e="dark"){return $[D][e]}const v=[];function ve(e){return v.push(e),{dispose:()=>{const n=v.indexOf(e);n!==-1&&v.splice(n,1)}}}function ce(e){for(const n of v){const r=n.byId(e);if(r!==null)return r}return null}const se=e=>e.design===void 0||e.design===D,w=e=>S.find(n=>n.id===e);function E(e){const n=oe(e),r=w(n);return r&&!se(r)?w(b(r.type)):r??ce(n)??w(b())}function ie(){return[...S.filter(se),...v.flatMap(e=>e.options())]}function Se(e){const n=oe(e);return w(n)!==void 0||ce(n)!==null}const _=4.5,Be=3;function Ce(e){const n=e.trim().replace(/^#/,""),r=n.length===3?n.split("").map(t=>t+t).join(""):n;return r.length!==6||/[^0-9a-fA-F]/.test(r)?null:{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16)}}function we({r:e,g:n,b:r}){const t=o=>Math.max(0,Math.min(255,Math.round(o))).toString(16).padStart(2,"0");return`#${t(e)}${t(n)}${t(r)}`}function P(e){const n=Ce(e);if(!n)throw new ne.BugIndicatingError(`contrast: expected #rgb/#rrggbb, got ${JSON.stringify(e)}. Resolve var()/transparent/color-mix to a literal hex before measuring.`);return n}function L(e){const n=e/255;return n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)}function B(e){const{r:n,g:r,b:t}=P(e);return .2126*L(n)+.7152*L(r)+.0722*L(t)}function h(e,n){const r=B(e),t=B(n),[o,c]=r>t?[r,t]:[t,r];return(o+.05)/(c+.05)}function Ie(e,n,r){const t=P(e),o=P(n),c=Math.max(0,Math.min(1,r));return we({r:t.r+(o.r-t.r)*(1-c),g:t.g+(o.g-t.g)*(1-c),b:t.b+(o.b-t.b)*(1-c)})}function x(e,n){return e+1e-9>=n}function _e(e){const n=B(e);return 116*(n>(6/29)**3?Math.cbrt(n):n/(3*(6/29)**2)+4/29)-16}const N=e=>{const n=e/255;return n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4)},De=e=>(e<=.0031308?12.92*e:1.055*Math.pow(e,.4166666666666667)-.055)*255;function Me(e){const n=e.trim().replace(/^#/,""),r=n.length===3?n.split("").map(t=>t+t).join(""):n;if(r.length!==6||/[^0-9a-fA-F]/.test(r))throw new ne.BugIndicatingError(`oklch: expected #rgb/#rrggbb, got ${JSON.stringify(e)}`);return{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16)}}function Le(e){const{r:n,g:r,b:t}=Me(e),o=N(n),c=N(r),s=N(t),u=Math.cbrt(.4122214708*o+.5363325363*c+.0514459929*s),i=Math.cbrt(.2119034982*o+.6806995451*c+.1073969566*s),d=Math.cbrt(.0883024619*o+.2817188376*c+.6299787005*s),f=.2104542553*u+.793617785*i-.0040720468*d,m=1.9779984951*u-2.428592205*i+.4505937099*d,l=.0259040371*u+.7827717662*i-.808675766*d,g=Math.atan2(l,m)*180/Math.PI;return{l:f,c:Math.hypot(m,l),h:g<0?g+360:g}}function H({l:e,c:n,h:r}){const t=r*Math.PI/180,o=n*Math.cos(t),c=n*Math.sin(t),s=(e+.3963377774*o+.2158037573*c)**3,u=(e-.1055613458*o-.0638541728*c)**3,i=(e-.0894841775*o-1.291485548*c)**3;return{r:4.0767416621*s-3.3077115913*u+.2309699292*i,g:-1.2684380046*s+2.6097574011*u-.3413193965*i,b:-.0041960863*s-.7034186147*u+1.707614701*i}}const k=1e-4,X=({r:e,g:n,b:r})=>e>=-k&&e<=1+k&&n>=-k&&n<=1+k&&r>=-k&&r<=1+k;function Ne({l:e,c:n,h:r}){if(X(H({l:e,c:n,h:r})))return n;let t=0,o=n;for(let c=0;c<24;c++){const s=(t+o)/2;X(H({l:e,c:s,h:r}))?t=s:o=s}return t}function O(e){const n=Ne(e),r=H({...e,c:n}),t=o=>Math.max(0,Math.min(255,Math.round(De(o)))).toString(16).padStart(2,"0");return`#${t(r.r)}${t(r.g)}${t(r.b)}`}function Y(e,n,r,t){const o=Le(e),c=t==="lighter"?1:0,s=O({...o,l:c});if(!x(h(s,n),r))return s;let u=o.l,i=c;for(let d=0;d<24;d++){const f=(u+i)/2;x(h(O({...o,l:f}),n),r)?i=f:u=f}return O({...o,l:i})}function G(e,n,r){if(x(h(e,n),r))return e;const t=B(e)<B(n),o=Y(e,n,r,t?"darker":"lighter");if(x(h(o,n),r))return o;const c=Y(e,n,r,t?"lighter":"darker");return h(c,n)>h(o,n)?c:o}function Oe(e,n,r){let t=e;for(let o=0;o<8;o++){let c=!1;for(const s of n){const u=G(t,s,r);u!==t&&(t=u,c=!0)}if(!c)break}return t}function Pe(e,n,r){let t=n[0]??"#ffffff",o=-1;for(const c of n){const s=h(c,e);if(x(s,r))return c;s>o&&(o=s,t=c)}return t}const ae="#131417",ue="#0A0B0E",de=.25,He=de;function le(e){return G(e.inputBorder,e.input,Be)}function fe(e,n,r){const t=[n.surface,n.surfaceAlt,n.surfaceElevated];return r==="dark"&&t.push(ae,ue),t.flatMap(o=>[o,Ie(e,o,de)])}function ge(e,n,r){return Oe(e,fe(e,n,r),_)}const Ke=["error","brand","success","warning","info"],Re=60;function A(e){return x(h("#ffffff",e),_)||_e(e)>=Re?e:G(e,"#ffffff",_)}function me(e,n){return Pe(e,["#ffffff",n.surfaceAlt,"#000000"],_)}const Ve=["brand","error","success","warning"],ye="#D76CB7",$e="data-colorblind-safe",K={success:"#009e73",error:"#d55e00",warning:"#e69f00",info:"#56b4e9"},R={added:K.success,deleted:K.error};function he(e){return{...e,...K}}function Ge(){return typeof document>"u"?!1:document.documentElement.hasAttribute($e)}function Fe(e,n,r){const t=d=>ge(d,e,n),o=A(e.brand),c=A(e.error),s=A(e.success),u=A(e.warning),i=d=>me(d,e);return{"--color-surface":e.surface,"--color-surface-alt":e.surfaceAlt,"--color-surface-elevated":e.surfaceElevated,"--color-brand":e.brand,"--color-brand-hover":e.brandHover,"--color-content":e.content,"--color-content-secondary":e.contentSecondary,"--color-border":e.border,"--color-input":e.input,"--color-input-border":le(e),"--color-success":e.success,"--color-error":e.error,"--color-warning":e.warning,"--color-info":e.info,"--color-success-text":t(e.success),"--color-error-text":t(e.error),"--color-warning-text":t(e.warning),"--color-info-text":t(e.info),"--color-brand-text":t(e.brand),"--color-unique-text":t(ye),"--color-brand-surface":o,"--color-error-surface":c,"--color-success-surface":s,"--color-warning-surface":u,"--color-on-brand":i(o),"--color-on-error":i(c),"--color-on-success":i(s),"--color-on-warning":i(u),"--color-diff-added":r?R.added:"","--color-diff-deleted":r?R.deleted:"","--color-syntax-keyword":e.syntaxKeyword,"--color-syntax-string":e.syntaxString,"--color-syntax-function":e.syntaxFunction,"--color-syntax-comment":e.syntaxComment,"--color-syntax-number":e.syntaxNumber,"--color-syntax-type":e.syntaxType}}const j="data-colorblind-safe",J="data-design";function W(e,n=!1){return E(e==="system"?b(n?"light":"dark"):e==="dark"?b("dark"):e==="light"?b("light"):e)}function be(e,n={}){var u,i;const r=typeof e=="string"?W(e):e,t=n.document??(typeof document<"u"?document:void 0);if(!t)return r;const o=t.documentElement,c=n.colorVisionSafe??!1;c?o.setAttribute(j,""):o.removeAttribute(j);const s=c?he(r.palette):r.palette;for(const[d,f]of Object.entries(Fe(s,r.type,c)))o.style.setProperty(d,f);return(u=t.body)==null||u.classList.remove("light","dark"),(i=t.body)==null||i.classList.add(r.type),o.classList.remove("light","dark"),o.classList.add(r.type),o.style.colorScheme=r.type,o.setAttribute("data-app-theme",r.id),r.design?o.setAttribute(J,r.design):o.removeAttribute(J),r}function We(){return ie()}const qe="vokril-ui-theme",Ue="(prefers-color-scheme: light)";function Xe(){try{return typeof localStorage>"u"?null:localStorage}catch{return null}}const pe=y.createContext(),Ye=e=>{var q,U;const n=e.storageKey===void 0?qe:e.storageKey,r=e.storage===void 0?Xe():e.storage,t=()=>{if(!r||!n)return null;try{return r.getItem(n)}catch{return null}},o=((q=e.document)==null?void 0:q.defaultView)??(typeof window>"u"?void 0:window),c=(U=o==null?void 0:o.matchMedia)==null?void 0:U.call(o,Ue),[s,u]=y.createSignal(t()??e.defaultTheme??"dark"),[i,d]=y.createSignal((c==null?void 0:c.matches)??!1),[f,m]=y.createSignal(e.colorVisionSafe??!1);if(c){const T=Te=>d(Te.matches);c.addEventListener("change",T),y.onCleanup(()=>c.removeEventListener("change",T))}const l=y.createMemo(()=>W(s(),i())),g=y.createMemo(()=>l().type),F=T=>{if(u(T),!(!r||!n))try{r.setItem(n,T)}catch{}},M=()=>F(g()==="dark"?"light":"dark");y.createEffect(()=>{be(l(),{colorVisionSafe:f(),document:e.document})});const xe={theme:s,resolvedTheme:g,themeId:()=>l().id,setTheme:F,toggleTheme:M,colorVisionSafe:f,setColorVisionSafe:m};return ee.createComponent(pe.Provider,{value:xe,get children(){return e.children}})};let z=!1;function je(){const e=y.useContext(pe);return e||(ee.isDev&&!z&&(z=!0,console.warn("@vokril/ui-solid: useTheme() was called outside <ThemeProvider>; it reports the design's dark theme and ignores setTheme.")),{theme:()=>"dark",resolvedTheme:()=>"dark",themeId:()=>b(),setTheme:()=>{},toggleTheme:()=>{},colorVisionSafe:()=>!1,setColorVisionSafe:()=>{}})}var Z;const Q=((Z=S.find(e=>e.id===re))==null?void 0:Z.palette)??S[0].palette;function Je(e){return Math.max(0,Math.min(255,Math.round(e)))}function V(e){const n=e.trim().replace(/^#/,""),r=n.length===3?n.split("").map(t=>t+t).join(""):n;return r.length!==6||/[^0-9a-fA-F]/.test(r)?null:{r:Number.parseInt(r.slice(0,2),16),g:Number.parseInt(r.slice(2,4),16),b:Number.parseInt(r.slice(4,6),16)}}function I({r:e,g:n,b:r}){const t=o=>Je(o).toString(16).padStart(2,"0");return`#${t(e)}${t(n)}${t(r)}`}function a(e,n="#000000"){const r=V(e);return r?I(r):n}function p(e,n,r){const t=V(e),o=V(n);if(!t&&!o)return"#000000";if(!t)return I(o);if(!o)return I(t);const c=Math.max(0,Math.min(1,r));return I({r:t.r+(o.r-t.r)*c,g:t.g+(o.g-t.g)*c,b:t.b+(o.b-t.b)*c})}const ze="#ffffff",Qe="#000000";function ke(e,n){return p(e,ze,n)}function Ze(e,n){return p(e,Qe,n)}function en(e,n,r){return n==="dark"?ke(e,r):Ze(e,r)}function C(e,n){return`${a(e)}${n}`}function nn(){if(typeof document>"u")return Q;const e=getComputedStyle(document.documentElement),n=(t,o)=>e.getPropertyValue(t).trim()||o,r=Q;return{surface:n("--color-surface",r.surface),surfaceAlt:n("--color-surface-alt",r.surfaceAlt),surfaceElevated:n("--color-surface-elevated",r.surfaceElevated),brand:n("--color-brand",r.brand),brandHover:n("--color-brand-hover",r.brandHover),content:n("--color-content",r.content),contentSecondary:n("--color-content-secondary",r.contentSecondary),border:n("--color-border",r.border),input:n("--color-input",r.input),inputBorder:n("--color-input-border",r.inputBorder),success:n("--color-success",r.success),error:n("--color-error",r.error),warning:n("--color-warning",r.warning),info:n("--color-info",r.info),syntaxKeyword:n("--color-syntax-keyword",r.syntaxKeyword),syntaxString:n("--color-syntax-string",r.syntaxString),syntaxFunction:n("--color-syntax-function",r.syntaxFunction),syntaxComment:n("--color-syntax-comment",r.syntaxComment),syntaxNumber:n("--color-syntax-number",r.syntaxNumber),syntaxType:n("--color-syntax-type",r.syntaxType)}}function rn(){return typeof document>"u"?"dark":document.body.classList.contains("light")?"light":"dark"}function tn(){return typeof document>"u"?"":document.documentElement.getAttribute("data-app-theme")??""}function on(e,n){const r=a(e.syntaxKeyword),t=a(e.syntaxString),o=a(e.syntaxFunction),c=a(e.syntaxComment),s=a(e.syntaxNumber),u=a(e.syntaxType),i=a(e.content),d=a(e.brand),f=a(e.error),m=[{token:"",foreground:i.slice(1)},{token:"comment",foreground:c.slice(1),fontStyle:"italic"},{token:"comment.quote",foreground:c.slice(1),fontStyle:"italic"},{token:"keyword",foreground:r.slice(1)},{token:"keyword.sql",foreground:r.slice(1)},{token:"operator",foreground:r.slice(1)},{token:"operator.sql",foreground:r.slice(1)},{token:"string",foreground:t.slice(1)},{token:"string.sql",foreground:t.slice(1)},{token:"string.escape",foreground:r.slice(1)},{token:"number",foreground:s.slice(1)},{token:"number.float",foreground:s.slice(1)},{token:"number.hex",foreground:s.slice(1)},{token:"constant",foreground:s.slice(1)},{token:"type",foreground:u.slice(1)},{token:"type.identifier",foreground:u.slice(1)},{token:"predefined",foreground:o.slice(1)},{token:"predefined.sql",foreground:o.slice(1)},{token:"function",foreground:o.slice(1)},{token:"identifier",foreground:i.slice(1)},{token:"identifier.quote",foreground:t.slice(1)},{token:"variable",foreground:i.slice(1)},{token:"delimiter",foreground:i.slice(1)},{token:"tag",foreground:r.slice(1)},{token:"attribute.name",foreground:o.slice(1)},{token:"attribute.value",foreground:t.slice(1)},{token:"annotation",foreground:e.warning.replace(/^#/,"")},{token:"regexp",foreground:f.slice(1)}],l=a(e.surfaceAlt),g=a(e.surface),F=a(e.surfaceElevated),M={"editor.background":l,"editor.foreground":i,"editorLineNumber.foreground":a(e.contentSecondary),"editorLineNumber.activeForeground":i,"editorCursor.foreground":d,"editor.selectionBackground":p(g,d,.32),"editor.inactiveSelectionBackground":p(g,d,.18),"editor.lineHighlightBackground":p(l,g,.55),"editorWidget.background":F,"editorWidget.foreground":i,"editorWidget.border":a(e.border),"editorWidget.resizeBorder":d,"input.background":a(e.input),"input.foreground":i,"input.border":a(e.inputBorder),"input.placeholderForeground":a(e.contentSecondary),"inputOption.activeBackground":C(d,"40"),"inputOption.activeBorder":d,"inputOption.activeForeground":i,focusBorder:d,"editor.findMatchBackground":C(a(e.warning),"80"),"editor.findMatchHighlightBackground":C(a(e.warning),"40"),"editor.findRangeHighlightBackground":C(F,"60")};return{base:n==="dark"?"vs-dark":"vs",inherit:!0,rules:m,colors:M}}function cn(e,n){const r=a(e.surface),t=a(e.surfaceElevated),o=a(e.content),c=a(e.contentSecondary),s=a(e.brand),u=a(e.error),i=a(e.success),d=a(e.warning),f=a(e.info),m=a(e.syntaxKeyword),l=F=>en(F,n,.22),g={black:t,red:u,green:i,yellow:d,blue:s,magenta:m,cyan:f,white:c,brightBlack:p(t,o,.4),brightRed:l(u),brightGreen:l(i),brightYellow:l(d),brightBlue:l(s),brightMagenta:l(m),brightCyan:l(f),brightWhite:n==="dark"?ke(o,.25):o};return{background:r,foreground:o,cursor:s,selectionBackground:p(t,s,.2),...g}}exports.DEFAULT_THEME_ID=re;exports.DESIGN_THEMES=$;exports.INK_ROLE_KEYS=Ve;exports.LEGACY_THEME_IDS=te;exports.MAX_TEXT_TINT_ALPHA=He;exports.OKABE_ITO_DIFF=R;exports.TEXT_ROLE_KEYS=Ke;exports.ThemeProvider=Ye;exports.UNIQUE_ACCENT=ye;exports.WELD_BG=ue;exports.WELD_SURFACE=ae;exports.accessibleFillSurface=A;exports.accessibleInputBorder=le;exports.accessibleOnFillInk=me;exports.accessibleTextColor=ge;exports.applyAppTheme=be;exports.derivePaletteProperties=Fe;exports.generateMonacoThemeFromPalette=on;exports.generateTerminalPaletteFromPalette=cn;exports.getDefaultThemeId=b;exports.getThemeById=E;exports.getThemeDesign=Ae;exports.getThemeOptions=ie;exports.getThemes=We;exports.isColorVisionSafeActive=Ge;exports.isKnownThemeId=Se;exports.readActiveAppPalette=nn;exports.readActiveAppThemeId=tn;exports.readActiveAppThemeType=rn;exports.registerThemeSource=ve;exports.resolveThemeOption=W;exports.setThemeDesign=Ee;exports.textGroundsFor=fe;exports.themeOptions=S;exports.toColorVisionSafePalette=he;exports.useTheme=je;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TimeSeriesChart-tWbSF6fJ.cjs");exports.TimeSeriesChart=e.TimeSeriesChart;exports.clampInterval=e.clampInterval;exports.seriesSegments=e.seriesSegments;exports.valueDomain=e.valueDomain;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TimeSeriesChart-CL1GjjV5.cjs");exports.TimeSeriesChart=e.TimeSeriesChart;exports.clampInterval=e.clampInterval;exports.seriesSegments=e.seriesSegments;exports.valueDomain=e.valueDomain;
@@ -1,4 +1,4 @@
1
- import { T as s, c as r, s as m, v as i } from "../TimeSeriesChart-kuuqH7we.js";
1
+ import { T as s, c as r, s as m, v as i } from "../TimeSeriesChart-CP-2M3R7.js";
2
2
  export {
3
3
  s as TimeSeriesChart,
4
4
  r as clampInterval,
@@ -1,5 +1,5 @@
1
1
  import { ssr as x, ssrAttribute as m, escape as c, createComponent as y, ssrStyle as $, memo as K } from "solid-js/web";
2
- import { u as H, n as B, O as z } from "./Input-V9Szcw6w.js";
2
+ import { u as H, n as B, O as z } from "./Input-DFAn8kou.js";
3
3
  import { createSignal as L, createMemo as D, Show as P, createUniqueId as N, createEffect as S, onCleanup as O, on as U } from "solid-js";
4
4
  import { b as A } from "./window-CUK6x8Pj.js";
5
5
  import { K as j } from "./Kbd-BTbz_c_e.js";
@@ -1 +1 @@
1
- "use strict";const n=require("solid-js/web"),O=require("./Input-UX0Hk53M.cjs"),h=require("solid-js"),M=require("./window-_BfSgFGO.cjs"),U=require("./Kbd-BPlUnyiy.cjs"),X=require("./ownerWindow-BCmJFMbR.cjs"),z=require("./errorHandler-DoDAPpv2.cjs"),P=require("./keys-GMxY2wcl.cjs"),V=require("./prefersReducedMotion-DYR56SKZ.cjs"),C=require("./dialogFocusRestore-DP5b1bDo.cjs"),D=350,j=0,S=300,k=6,I=8;function G(e){const{anchorRect:t,tooltipSize:o,viewport:r}=e,l=e.offset??k,i=e.margin??I,a=e.placement??"bottom",d="bottom"in t&&t.bottom!==void 0?t.bottom:t.top+t.height,f="right"in t&&t.right!==void 0?t.right:t.left+t.width;let u=a,m=0,p=0;if(a==="top"||a==="bottom"){if(a==="top"){const b=t.top-l-o.height;b<i&&d+l+o.height<=r.height-i?(u="bottom",m=d+l):m=Math.max(i,Math.min(b,r.height-o.height-i))}else{const b=d+l;b+o.height>r.height-i&&t.top-l-o.height>=i?(u="top",m=t.top-l-o.height):m=Math.max(i,Math.min(b,r.height-o.height-i))}const T=t.left+(t.width-o.width)/2,E=Math.max(i,r.width-o.width-i);p=Math.max(i,Math.min(T,E))}else{if(a==="left"){const b=t.left-l-o.width;b<i&&f+l+o.width<=r.width-i?(u="right",p=f+l):p=Math.max(i,Math.min(b,r.width-o.width-i))}else{const b=f+l;b+o.width>r.width-i&&t.left-l-o.width>=i?(u="left",p=t.left-l-o.width):p=Math.max(i,Math.min(b,r.width-o.width-i))}const T=t.top+(t.height-o.height)/2,E=Math.max(i,r.height-o.height-i);m=Math.max(i,Math.min(T,E))}return{top:m,left:p,placement:u}}function W(){const[e,t]=h.createSignal(null);let o=!1,r=null,l,i,a=null;const d=()=>{l!==void 0&&(clearTimeout(l),l=void 0)},f=()=>{i!==void 0&&(clearTimeout(i),i=void 0)},u=()=>{if(a){try{a()}catch(s){z.bestEffortFailed("Window context may already be destroyed or unloaded",s)}a=null}},m=s=>{u();const c=()=>{T()},v=y=>{P.isKey(y,"Escape")&&e()!==null&&(y.stopPropagation(),y.stopImmediatePropagation(),T())};s.addEventListener("scroll",c,!0),s.addEventListener("pointerdown",c,!0),s.addEventListener("keydown",v,!0),s.addEventListener("blur",c),a=()=>{s.removeEventListener("scroll",c,!0),s.removeEventListener("pointerdown",c,!0),s.removeEventListener("keydown",v,!0),s.removeEventListener("blur",c)}},p=s=>{d(),f(),r=null,o=!0,t(s);const c=X.ownerWindow(s.target);if(c===null){u();return}m(c)},T=()=>{d(),f(),r=null,o=!1,t(null),u()};return{activeTooltip:e,isWarm:()=>o,showTooltip:s=>{if(!s.content||typeof s.content=="function"&&!s.content())return;f();const c=e();if(!(c&&(c.id===s.id||c.target===s.target)))if(o||c!==null)p(s);else{d(),r=s;const v=s.delayMs??D;v<=0?p(s):l=setTimeout(()=>{r===s&&p(s)},v)}},hideTooltip:s=>{if(s!==void 0){r&&(typeof s=="string"?r.id===s:r.target===s)&&(d(),r=null);const c=e();if(c){if(!(typeof s=="string"?c.id===s:c.target===s))return}else return}d(),r=null,t(null),u(),f(),i=setTimeout(()=>{o=!1,i=void 0},S)},dismissAll:T,recordTooltipShown:()=>{f(),o=!0},recordTooltipHidden:()=>{f(),i=setTimeout(()=>{o=!1,i=void 0},S)}}}const F=W(),J="vk_root_w-T1s",Q="vk_disabled_kl1Jx",Z="vk_box_mOCAD",ee="vk_checked_YZgPy",te="vk_control_748Lw",oe="vk_input_Ysj9i",ne="vk_indicator_lYKVu",ie="vk_label_jB-PM",w={root:J,disabled:Q,box:Z,checked:ee,control:te,input:oe,indicator:ne,label:ie};function R(e,t,o,r,l,...i){const a=[];e&&a.push(e),r&&t&&a.push(t),l&&o&&a.push(o);for(const d of i)d!==void 0&&d!==""&&a.push(d);return a.join(" ")}var re=["<span",">","</span>"],se=["<label","><span",'><input type="checkbox"',' class="','"',"",'><span class="','" aria-hidden="true"><span',"></span></span></span>","</label>"];function le(e){const t=h.createMemo(()=>!!e.indeterminate),o=O.useFormFieldAria();return n.ssr(se,n.ssrAttribute("class",n.escape(R(w.root,w.checked,w.disabled,e.checked||t(),!!e.disabled,e.class),!0),!1),n.ssrAttribute("class",n.escape(w.control,!0),!1),n.ssrAttribute("id",n.escape(e.id,!0),!1),`${n.escape(w.input,!0)} ${n.escape(e.inputClass??"",!0)}`,n.ssrAttribute("checked",e.checked,!0),n.ssrAttribute("disabled",e.disabled,!0)+n.ssrAttribute("aria-describedby",n.escape(o==null?void 0:o.describedBy(),!0),!1)+n.ssrAttribute("aria-label",n.escape(e.ariaLabel,!0),!1)+n.ssrAttribute("aria-labelledby",n.escape(O.nativeControlLabelledBy(o,{ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabelledBy}),!0),!1),`${n.escape(w.box,!0)} ${n.escape(e.boxClass??"",!0)}`,n.ssrAttribute("class",n.escape(w.indicator,!0),!1),n.escape(n.createComponent(h.Show,{get when(){return e.children!==void 0},get children(){return n.ssr(re,n.ssrAttribute("class",n.escape(w.label,!0),!1),n.escape(e.children))}})))}const ae="vk_trigger_--BjF",ce="vk_tooltip_eJQhN",ue="vk_hostTooltip_vLrNc",de="vk_tooltipInner_AyPkl",A={trigger:ae,tooltip:ce,hostTooltip:ue,tooltipInner:de},Y=12,x=16,_=8,K=620;function $(e){const t=e.tooltipWidth??K,o=e.tooltipWidth===void 0?e.viewportWidth:e.viewportWidth-_,r=Math.min(e.pointerX+Y,o-t),l=Math.max(_,r),i=e.pointerY+x,a=e.tooltipHeight??0,d=e.viewportHeight===void 0?i:Math.max(_,e.viewportHeight-a-_),f=e.aboveY===void 0?i:e.aboveY-a-x,u=e.viewportHeight!==void 0&&i>d?Math.max(_,Math.min(f,d)):Math.max(_,Math.min(i,d));return{left:l,top:u}}var he=["<span",">","</span>"],fe=["<div","><span>","</span>","</div>"],pe=["<div",' role="tooltip" style="','">',"</div>"];const me=1e3;function be(e){const t=h.createUniqueId(),[o,r]=h.createSignal(!1),[l,i]=h.createSignal({x:0,y:0}),[a,d]=h.createSignal(),[f,u]=h.createSignal({width:0,height:0}),[m,p]=h.createSignal(!1);let T,E;const b=()=>M.getWindow(T),L=h.createMemo(()=>e.content);return h.createMemo(()=>e.delayMs??me),h.createEffect(()=>{F.activeTooltip()&&o()&&r(!1)}),h.createEffect(()=>{if(!o())return;const g=()=>{r(!1)},s=v=>{P.isKey(v,"Escape")&&(v.stopPropagation(),v.stopImmediatePropagation(),r(!1),F.dismissAll())},c=M.getWindow(T);c.addEventListener("scroll",g,!0),c.addEventListener("resize",g),c.addEventListener("keydown",s,!0),h.onCleanup(()=>{c.removeEventListener("scroll",g,!0),c.removeEventListener("resize",g),c.removeEventListener("keydown",s,!0)})}),h.onCleanup(()=>{}),[n.ssr(he,n.ssrAttribute("class",n.escape(A.trigger,!0),!1)+n.ssrAttribute("tabindex",m()?n.escape(void 0,!0):0,!1)+n.ssrAttribute("aria-describedby",o()?n.escape(t,!0):n.escape(void 0,!0),!1),n.escape(e.children)),n.createComponent(h.Show,{get when(){return n.memo(()=>!!o())()&&L()},get children(){return n.createComponent(O.OverlayPortal,{type:"tooltip",get mount(){return M.getWindow(T).document.body},element:()=>E,idPrefix:"hover-tooltip",get children(){return n.ssr(pe,n.ssrAttribute("class",n.escape(A.tooltip,!0),!1)+n.ssrAttribute("id",n.escape(t,!0),!1),n.ssrStyle((()=>{const g=a(),s=$({pointerX:l().x,pointerY:l().y,viewportWidth:b().innerWidth,viewportHeight:b().innerHeight,tooltipWidth:f().width,tooltipHeight:f().height,...g!==void 0?{aboveY:g}:{}});return{top:`${s.top}px`,left:`${s.left}px`}})()),n.escape(n.createComponent(h.Show,{get when(){return e.shortcut},get fallback(){return L()},get children(){return n.ssr(fe,n.ssrAttribute("class",n.escape(A.tooltipInner,!0),!1),n.escape(L()),n.escape(n.createComponent(U.Kbd,{size:"xs",get shortcut(){return e.shortcut}})))}})))}})}})]}const ve="Tab";function q(e,t){if(e!==ve)return null;const{focusableCount:o,activeIndex:r,shiftKey:l}=t;if(o<=0)return null;const i=0,a=o-1;return r<0?l?a:i:l?r===i?a:null:r===a?i:null}const Te=["a[href]","area[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","iframe",'[contenteditable="true"]','[tabindex]:not([tabindex="-1"])'].join(",");function H(e){const t=Array.from(e.querySelectorAll(Te)),o=e.ownerDocument;return t.filter(r=>r.getAttribute("aria-hidden")!=="true"&&(r.offsetParent!==null||r===o.documentElement))}function B(e,t){var i;const o=H(e),r=o.indexOf(e.ownerDocument.activeElement),l=q(t.key,{focusableCount:o.length,activeIndex:r,shiftKey:t.shiftKey});return l===null?!1:(t.preventDefault(),(i=o[l])==null||i.focus(),!0)}const ge="Tab",we="Escape",_e="Enter";function N(e,t){return e===we?"dismiss":e===_e&&t.confirmOnEnter?"confirm":e===ge?"trap":"none"}function Ee(e){let t=null,o=null,r=null,l=null;const i=()=>{var u;l!==null&&((u=e.ownerDocument().defaultView)==null||u.cancelAnimationFrame(l),l=null)},a=()=>{i(),r==null||r(),r=null},d=u=>{t=u,o??(o=e.ownerDocument().activeElement)};h.createEffect(h.on(()=>e.open(),(u,m)=>{if(u){t!==null&&r===null&&(r=V.neutralizeBackground(t)),i();const p=e.ownerDocument().defaultView;t!==null&&p!==null&&(l=p.requestAnimationFrame(()=>{l=null,e.open()&&(t==null||t.focus())}));return}m===!0&&(a(),C.restoreFocusTo(o),o=null,t=null)}));const f=u=>{var p;const m=N(u.key,{confirmOnEnter:!1});if(m==="dismiss"){if(((p=e.dismissDisabled)==null?void 0:p.call(e))===!0)return;u.stopPropagation(),e.onDismiss();return}m==="trap"&&t!==null&&B(t,u)};return h.onCleanup(()=>{a(),C.restoreFocusTo(o),o=null,t=null}),{captureDialog:d,handleKeyDown:f}}exports.COLD_DELAY_MS=D;exports.COOLDOWN_MS=S;exports.Checkbox=le;exports.DEFAULT_MARGIN=I;exports.DEFAULT_OFFSET=k;exports.HoverTooltip=be;exports.TOOLTIP_CURSOR_OFFSET_X=Y;exports.TOOLTIP_CURSOR_OFFSET_Y=x;exports.TOOLTIP_MAX_FOOTPRINT_X=K;exports.TOOLTIP_VIEWPORT_MARGIN=_;exports.WARM_DELAY_MS=j;exports.buildSelectionItemClass=R;exports.collectFocusableElements=H;exports.computeAnchoredTooltipPosition=G;exports.computeTooltipPointerPosition=$;exports.createDialogShellFocus=Ee;exports.createTooltipCoordinator=W;exports.resolveDialogShellKeyIntent=N;exports.resolveModalFocusTrapTarget=q;exports.styles=A;exports.tooltipCoordinator=F;exports.trapTabFocusWithin=B;
1
+ "use strict";const n=require("solid-js/web"),O=require("./Input-DOTXKwhw.cjs"),h=require("solid-js"),M=require("./window-_BfSgFGO.cjs"),U=require("./Kbd-BPlUnyiy.cjs"),X=require("./ownerWindow-BCmJFMbR.cjs"),z=require("./errorHandler-DoDAPpv2.cjs"),P=require("./keys-GMxY2wcl.cjs"),V=require("./prefersReducedMotion-DYR56SKZ.cjs"),C=require("./dialogFocusRestore-DP5b1bDo.cjs"),D=350,j=0,S=300,k=6,I=8;function G(e){const{anchorRect:t,tooltipSize:o,viewport:r}=e,l=e.offset??k,i=e.margin??I,a=e.placement??"bottom",d="bottom"in t&&t.bottom!==void 0?t.bottom:t.top+t.height,f="right"in t&&t.right!==void 0?t.right:t.left+t.width;let u=a,m=0,p=0;if(a==="top"||a==="bottom"){if(a==="top"){const b=t.top-l-o.height;b<i&&d+l+o.height<=r.height-i?(u="bottom",m=d+l):m=Math.max(i,Math.min(b,r.height-o.height-i))}else{const b=d+l;b+o.height>r.height-i&&t.top-l-o.height>=i?(u="top",m=t.top-l-o.height):m=Math.max(i,Math.min(b,r.height-o.height-i))}const T=t.left+(t.width-o.width)/2,E=Math.max(i,r.width-o.width-i);p=Math.max(i,Math.min(T,E))}else{if(a==="left"){const b=t.left-l-o.width;b<i&&f+l+o.width<=r.width-i?(u="right",p=f+l):p=Math.max(i,Math.min(b,r.width-o.width-i))}else{const b=f+l;b+o.width>r.width-i&&t.left-l-o.width>=i?(u="left",p=t.left-l-o.width):p=Math.max(i,Math.min(b,r.width-o.width-i))}const T=t.top+(t.height-o.height)/2,E=Math.max(i,r.height-o.height-i);m=Math.max(i,Math.min(T,E))}return{top:m,left:p,placement:u}}function W(){const[e,t]=h.createSignal(null);let o=!1,r=null,l,i,a=null;const d=()=>{l!==void 0&&(clearTimeout(l),l=void 0)},f=()=>{i!==void 0&&(clearTimeout(i),i=void 0)},u=()=>{if(a){try{a()}catch(s){z.bestEffortFailed("Window context may already be destroyed or unloaded",s)}a=null}},m=s=>{u();const c=()=>{T()},v=y=>{P.isKey(y,"Escape")&&e()!==null&&(y.stopPropagation(),y.stopImmediatePropagation(),T())};s.addEventListener("scroll",c,!0),s.addEventListener("pointerdown",c,!0),s.addEventListener("keydown",v,!0),s.addEventListener("blur",c),a=()=>{s.removeEventListener("scroll",c,!0),s.removeEventListener("pointerdown",c,!0),s.removeEventListener("keydown",v,!0),s.removeEventListener("blur",c)}},p=s=>{d(),f(),r=null,o=!0,t(s);const c=X.ownerWindow(s.target);if(c===null){u();return}m(c)},T=()=>{d(),f(),r=null,o=!1,t(null),u()};return{activeTooltip:e,isWarm:()=>o,showTooltip:s=>{if(!s.content||typeof s.content=="function"&&!s.content())return;f();const c=e();if(!(c&&(c.id===s.id||c.target===s.target)))if(o||c!==null)p(s);else{d(),r=s;const v=s.delayMs??D;v<=0?p(s):l=setTimeout(()=>{r===s&&p(s)},v)}},hideTooltip:s=>{if(s!==void 0){r&&(typeof s=="string"?r.id===s:r.target===s)&&(d(),r=null);const c=e();if(c){if(!(typeof s=="string"?c.id===s:c.target===s))return}else return}d(),r=null,t(null),u(),f(),i=setTimeout(()=>{o=!1,i=void 0},S)},dismissAll:T,recordTooltipShown:()=>{f(),o=!0},recordTooltipHidden:()=>{f(),i=setTimeout(()=>{o=!1,i=void 0},S)}}}const F=W(),J="vk_root_w-T1s",Q="vk_disabled_kl1Jx",Z="vk_box_mOCAD",ee="vk_checked_YZgPy",te="vk_control_748Lw",oe="vk_input_Ysj9i",ne="vk_indicator_lYKVu",ie="vk_label_jB-PM",w={root:J,disabled:Q,box:Z,checked:ee,control:te,input:oe,indicator:ne,label:ie};function R(e,t,o,r,l,...i){const a=[];e&&a.push(e),r&&t&&a.push(t),l&&o&&a.push(o);for(const d of i)d!==void 0&&d!==""&&a.push(d);return a.join(" ")}var re=["<span",">","</span>"],se=["<label","><span",'><input type="checkbox"',' class="','"',"",'><span class="','" aria-hidden="true"><span',"></span></span></span>","</label>"];function le(e){const t=h.createMemo(()=>!!e.indeterminate),o=O.useFormFieldAria();return n.ssr(se,n.ssrAttribute("class",n.escape(R(w.root,w.checked,w.disabled,e.checked||t(),!!e.disabled,e.class),!0),!1),n.ssrAttribute("class",n.escape(w.control,!0),!1),n.ssrAttribute("id",n.escape(e.id,!0),!1),`${n.escape(w.input,!0)} ${n.escape(e.inputClass??"",!0)}`,n.ssrAttribute("checked",e.checked,!0),n.ssrAttribute("disabled",e.disabled,!0)+n.ssrAttribute("aria-describedby",n.escape(o==null?void 0:o.describedBy(),!0),!1)+n.ssrAttribute("aria-label",n.escape(e.ariaLabel,!0),!1)+n.ssrAttribute("aria-labelledby",n.escape(O.nativeControlLabelledBy(o,{ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabelledBy}),!0),!1),`${n.escape(w.box,!0)} ${n.escape(e.boxClass??"",!0)}`,n.ssrAttribute("class",n.escape(w.indicator,!0),!1),n.escape(n.createComponent(h.Show,{get when(){return e.children!==void 0},get children(){return n.ssr(re,n.ssrAttribute("class",n.escape(w.label,!0),!1),n.escape(e.children))}})))}const ae="vk_trigger_--BjF",ce="vk_tooltip_eJQhN",ue="vk_hostTooltip_vLrNc",de="vk_tooltipInner_AyPkl",A={trigger:ae,tooltip:ce,hostTooltip:ue,tooltipInner:de},Y=12,x=16,_=8,K=620;function $(e){const t=e.tooltipWidth??K,o=e.tooltipWidth===void 0?e.viewportWidth:e.viewportWidth-_,r=Math.min(e.pointerX+Y,o-t),l=Math.max(_,r),i=e.pointerY+x,a=e.tooltipHeight??0,d=e.viewportHeight===void 0?i:Math.max(_,e.viewportHeight-a-_),f=e.aboveY===void 0?i:e.aboveY-a-x,u=e.viewportHeight!==void 0&&i>d?Math.max(_,Math.min(f,d)):Math.max(_,Math.min(i,d));return{left:l,top:u}}var he=["<span",">","</span>"],fe=["<div","><span>","</span>","</div>"],pe=["<div",' role="tooltip" style="','">',"</div>"];const me=1e3;function be(e){const t=h.createUniqueId(),[o,r]=h.createSignal(!1),[l,i]=h.createSignal({x:0,y:0}),[a,d]=h.createSignal(),[f,u]=h.createSignal({width:0,height:0}),[m,p]=h.createSignal(!1);let T,E;const b=()=>M.getWindow(T),L=h.createMemo(()=>e.content);return h.createMemo(()=>e.delayMs??me),h.createEffect(()=>{F.activeTooltip()&&o()&&r(!1)}),h.createEffect(()=>{if(!o())return;const g=()=>{r(!1)},s=v=>{P.isKey(v,"Escape")&&(v.stopPropagation(),v.stopImmediatePropagation(),r(!1),F.dismissAll())},c=M.getWindow(T);c.addEventListener("scroll",g,!0),c.addEventListener("resize",g),c.addEventListener("keydown",s,!0),h.onCleanup(()=>{c.removeEventListener("scroll",g,!0),c.removeEventListener("resize",g),c.removeEventListener("keydown",s,!0)})}),h.onCleanup(()=>{}),[n.ssr(he,n.ssrAttribute("class",n.escape(A.trigger,!0),!1)+n.ssrAttribute("tabindex",m()?n.escape(void 0,!0):0,!1)+n.ssrAttribute("aria-describedby",o()?n.escape(t,!0):n.escape(void 0,!0),!1),n.escape(e.children)),n.createComponent(h.Show,{get when(){return n.memo(()=>!!o())()&&L()},get children(){return n.createComponent(O.OverlayPortal,{type:"tooltip",get mount(){return M.getWindow(T).document.body},element:()=>E,idPrefix:"hover-tooltip",get children(){return n.ssr(pe,n.ssrAttribute("class",n.escape(A.tooltip,!0),!1)+n.ssrAttribute("id",n.escape(t,!0),!1),n.ssrStyle((()=>{const g=a(),s=$({pointerX:l().x,pointerY:l().y,viewportWidth:b().innerWidth,viewportHeight:b().innerHeight,tooltipWidth:f().width,tooltipHeight:f().height,...g!==void 0?{aboveY:g}:{}});return{top:`${s.top}px`,left:`${s.left}px`}})()),n.escape(n.createComponent(h.Show,{get when(){return e.shortcut},get fallback(){return L()},get children(){return n.ssr(fe,n.ssrAttribute("class",n.escape(A.tooltipInner,!0),!1),n.escape(L()),n.escape(n.createComponent(U.Kbd,{size:"xs",get shortcut(){return e.shortcut}})))}})))}})}})]}const ve="Tab";function q(e,t){if(e!==ve)return null;const{focusableCount:o,activeIndex:r,shiftKey:l}=t;if(o<=0)return null;const i=0,a=o-1;return r<0?l?a:i:l?r===i?a:null:r===a?i:null}const Te=["a[href]","area[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","iframe",'[contenteditable="true"]','[tabindex]:not([tabindex="-1"])'].join(",");function H(e){const t=Array.from(e.querySelectorAll(Te)),o=e.ownerDocument;return t.filter(r=>r.getAttribute("aria-hidden")!=="true"&&(r.offsetParent!==null||r===o.documentElement))}function B(e,t){var i;const o=H(e),r=o.indexOf(e.ownerDocument.activeElement),l=q(t.key,{focusableCount:o.length,activeIndex:r,shiftKey:t.shiftKey});return l===null?!1:(t.preventDefault(),(i=o[l])==null||i.focus(),!0)}const ge="Tab",we="Escape",_e="Enter";function N(e,t){return e===we?"dismiss":e===_e&&t.confirmOnEnter?"confirm":e===ge?"trap":"none"}function Ee(e){let t=null,o=null,r=null,l=null;const i=()=>{var u;l!==null&&((u=e.ownerDocument().defaultView)==null||u.cancelAnimationFrame(l),l=null)},a=()=>{i(),r==null||r(),r=null},d=u=>{t=u,o??(o=e.ownerDocument().activeElement)};h.createEffect(h.on(()=>e.open(),(u,m)=>{if(u){t!==null&&r===null&&(r=V.neutralizeBackground(t)),i();const p=e.ownerDocument().defaultView;t!==null&&p!==null&&(l=p.requestAnimationFrame(()=>{l=null,e.open()&&(t==null||t.focus())}));return}m===!0&&(a(),C.restoreFocusTo(o),o=null,t=null)}));const f=u=>{var p;const m=N(u.key,{confirmOnEnter:!1});if(m==="dismiss"){if(((p=e.dismissDisabled)==null?void 0:p.call(e))===!0)return;u.stopPropagation(),e.onDismiss();return}m==="trap"&&t!==null&&B(t,u)};return h.onCleanup(()=>{a(),C.restoreFocusTo(o),o=null,t=null}),{captureDialog:d,handleKeyDown:f}}exports.COLD_DELAY_MS=D;exports.COOLDOWN_MS=S;exports.Checkbox=le;exports.DEFAULT_MARGIN=I;exports.DEFAULT_OFFSET=k;exports.HoverTooltip=be;exports.TOOLTIP_CURSOR_OFFSET_X=Y;exports.TOOLTIP_CURSOR_OFFSET_Y=x;exports.TOOLTIP_MAX_FOOTPRINT_X=K;exports.TOOLTIP_VIEWPORT_MARGIN=_;exports.WARM_DELAY_MS=j;exports.buildSelectionItemClass=R;exports.collectFocusableElements=H;exports.computeAnchoredTooltipPosition=G;exports.computeTooltipPointerPosition=$;exports.createDialogShellFocus=Ee;exports.createTooltipCoordinator=W;exports.resolveDialogShellKeyIntent=N;exports.resolveModalFocusTrapTarget=q;exports.styles=A;exports.tooltipCoordinator=F;exports.trapTabFocusWithin=B;