@p4code/cli 0.8.4 → 0.8.6

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 (456) hide show
  1. package/dist/bin.mjs +1 -1
  2. package/dist/{binCli-Bgjc_5FL.mjs → binCli-BFaqyrJo.mjs} +92 -47
  3. package/dist/client/.vite/manifest.json +2712 -2983
  4. package/dist/client/assets/{AnimatedHeight-DYUgtGfz.js → AnimatedHeight-4Jo1qKaP.js} +2 -2
  5. package/dist/client/assets/{AuthSurfaceShell-CfLnzrCc.js → AuthSurfaceShell-BgwhQCPc.js} +2 -2
  6. package/dist/client/assets/{CSPContext-i9QaQnwk.js → CSPContext-BuROUwKB.js} +2 -2
  7. package/dist/client/assets/ChatGptUsageButton-CG-YKS6A.js +2 -0
  8. package/dist/client/assets/ChatMarkdown-CNhzmB5x.js +65 -0
  9. package/dist/client/assets/CodexSetupSection.logic-C0ptwwry.js +2 -0
  10. package/dist/client/assets/ComboboxClear-CB7SvrMN.js +2 -0
  11. package/dist/client/assets/CommandBlock-D5btlz0n.js +2 -0
  12. package/dist/client/assets/{ComposerPromptEditor-fIqs_--j.js → ComposerPromptEditor-DMONEQeI.js} +61 -61
  13. package/dist/client/assets/CompositeRoot-NCPzVvXO.js +2 -0
  14. package/dist/client/assets/{ConnectionStatusDot-BCSqqCpf.js → ConnectionStatusDot-vBtwC3Vj.js} +2 -2
  15. package/dist/client/assets/DevicePanel-B07cF6Kr.js +2 -0
  16. package/dist/client/assets/DeviceSetup-BEH97y5X.js +2 -0
  17. package/dist/client/assets/{DialogTitle-BRYusK7T.js → DialogTitle-DrhNhCSD.js} +2 -2
  18. package/dist/client/assets/{DiffCommentAnnotation-DxxGd0sM.js → DiffCommentAnnotation-DRify9qt.js} +3 -3
  19. package/dist/client/assets/DiffFileTree-wSWCfkHQ.js +2 -0
  20. package/dist/client/assets/DiffPanel-DuYnpEdL.js +2 -0
  21. package/dist/client/assets/{DiffWorkerPoolProvider-Dd8cIhyy.js → DiffWorkerPoolProvider-C7kCyuBf.js} +3 -3
  22. package/dist/client/assets/EnvironmentMachineIcon-pSS7qKfw.js +2 -0
  23. package/dist/client/assets/{ExpandableText-dJhpznMp.js → ExpandableText-BMD3qugZ.js} +3 -3
  24. package/dist/client/assets/{FieldControl-CxuWXcJE.js → FieldControl-BTrrbQ3K.js} +2 -2
  25. package/dist/client/assets/{FileDiff-EWd5oWlS.js → FileDiff-DHS_UG0K.js} +2 -2
  26. package/dist/client/assets/FilePreviewPanel-CYb5xyMm.js +34 -0
  27. package/dist/client/assets/FoldedSettingsSection-CyRBKQ16.js +2 -0
  28. package/dist/client/assets/{FormContext-Vk5aZcR6.js → FormContext-CBGeQN77.js} +2 -2
  29. package/dist/client/assets/{Icons-DM1SzuL7.js → Icons-AkySFIEx.js} +2 -2
  30. package/dist/client/assets/{KeybindingsSettings.logic-BcJGxVhV.js → KeybindingsSettings.logic-CkDiTn0M.js} +2 -2
  31. package/dist/client/assets/NoProjectsHero-DyNL-MrS.js +2 -0
  32. package/dist/client/assets/PanelLayoutControls-NUeu7nMQ.js +215 -0
  33. package/dist/client/assets/{PierreEntryIcon-BJ8xtDqQ.js → PierreEntryIcon-IuSWNqlA.js} +2 -2
  34. package/dist/client/assets/PreviewPanel-CxJz5hUK.js +2 -0
  35. package/dist/client/assets/ProjectDefaultsSettings-bQ5ORxlD.js +2 -0
  36. package/dist/client/assets/ProjectFavicon-ClxI7OY3.js +3 -0
  37. package/dist/client/assets/ProjectIconPickerDialog-BTsAZWr2.js +2 -0
  38. package/dist/client/assets/ProjectMonogram-DCxOyCyM.js +2 -0
  39. package/dist/client/assets/{ProviderAuthTerminal-DBiUwanv.js → ProviderAuthTerminal-KAhmp-D6.js} +2 -2
  40. package/dist/client/assets/ProviderModelPicker-DQG8_Hn8.js +2 -0
  41. package/dist/client/assets/ProviderSettingsForm-BRBhNcWm.js +2 -0
  42. package/dist/client/assets/PullRequestCodeTab-sN76VbmK.js +6 -0
  43. package/dist/client/assets/{ReadOnlySourcePreview-CydDaO9-.js → ReadOnlySourcePreview-BiWn5R0O.js} +2 -2
  44. package/dist/client/assets/RenderErrorBoundary-CwR9l2vj.js +2 -0
  45. package/dist/client/assets/ScheduledTasksSettings-iPAhYreZ.js +4 -0
  46. package/dist/client/assets/{ScopedSwitch-B8wdvttG.js → ScopedSwitch-DrThVUz_.js} +2 -2
  47. package/dist/client/assets/{SecretInput-CNWNAhNe.js → SecretInput-C8iO0LWS.js} +2 -2
  48. package/dist/client/assets/SettingsPanels-BtdHxcNW.js +39 -0
  49. package/dist/client/assets/{SettingsPanels.logic-BYa5iHwl.js → SettingsPanels.logic-yZixYwld.js} +2 -2
  50. package/dist/client/assets/{SettingsScopeNotice-CcLrVZWz.js → SettingsScopeNotice-f82KPnDY.js} +2 -2
  51. package/dist/client/assets/T3ConnectAccountPages-m_7RF9L_.js +2 -0
  52. package/dist/client/assets/T3ConnectSidebarSignIn-DJTcBcGh.js +2 -0
  53. package/dist/client/assets/ThemeEditorPanel-olXdAmEu.js +5 -0
  54. package/dist/client/assets/ThreadTerminalDrawer-BQDs5eem.js +5 -0
  55. package/dist/client/assets/{Virtualizer-Bk-YJlPj.js → Virtualizer-DqZNglST.js} +2 -2
  56. package/dist/client/assets/{WorkspaceBreadcrumb-DSFWvH19.js → WorkspaceBreadcrumb-B6kfrQ73.js} +2 -2
  57. package/dist/client/assets/{WorkspacePageContainer-BXUbfbEU.js → WorkspacePageContainer-DSbQuXwt.js} +2 -2
  58. package/dist/client/assets/{WorkspacePageHeader-LbIzJCDs.js → WorkspacePageHeader-GK8yx2Yo.js} +2 -2
  59. package/dist/client/assets/_chat-DsJhLPIV.js +45 -0
  60. package/dist/client/assets/_chat.index-BPJ4rR-G.js +2 -0
  61. package/dist/client/assets/{_chat.new-COSURrfS.js → _chat.new-CfqCt0Fk.js} +3 -3
  62. package/dist/client/assets/_chat.pull-requests-BfTP6YhJ.js +2 -0
  63. package/dist/client/assets/{abnfDiagram-VCTEODGH-brKh7bzh.js → abnfDiagram-VCTEODGH-Cg5QSgHP.js} +2 -2
  64. package/dist/client/assets/{alert-quTC4YbH.js → alert-DwFQdL_W.js} +2 -2
  65. package/dist/client/assets/architecture-7GRP2DOG-BYbXaKhk.js +1 -0
  66. package/dist/client/assets/{architectureDiagram-5GKGNRK7-BVDiXgfK.js → architectureDiagram-5GKGNRK7-Dk3aYsC1.js} +2 -2
  67. package/dist/client/assets/arrow-left-BLE461db.js +2 -0
  68. package/dist/client/assets/arrow-right-CoV5ameY.js +2 -0
  69. package/dist/client/assets/arrow-up-down-ibtVnemT.js +2 -0
  70. package/dist/client/assets/assets-1IiF113B.js +2 -0
  71. package/dist/client/assets/bell-CLuvLMth.js +2 -0
  72. package/dist/client/assets/{blockDiagram-I7D4REHJ-CzoRCJDe.js → blockDiagram-I7D4REHJ-C3znhuKn.js} +2 -2
  73. package/dist/client/assets/blocks-B-VfW07Q.js +2 -0
  74. package/dist/client/assets/bot-DpQzHyXo.js +2 -0
  75. package/dist/client/assets/{browserHistoryStore-Cw3ffhOV.js → browserHistoryStore-DNPsjLW4.js} +2 -2
  76. package/dist/client/assets/{browserLinkTarget-KTI1tSl7.js → browserLinkTarget-1GMN2suO.js} +2 -2
  77. package/dist/client/assets/{c4Diagram-7LVT6UL2-CfyobiDu.js → c4Diagram-7LVT6UL2-D-Q_GaXJ.js} +2 -2
  78. package/dist/client/assets/calendar-clock-DTUOomkO.js +2 -0
  79. package/dist/client/assets/channel-B0viw1HQ.js +2 -0
  80. package/dist/client/assets/chart-no-axes-column-DKbSsm0y.js +2 -0
  81. package/dist/client/assets/checkbox-CzKUo-R1.js +2 -0
  82. package/dist/client/assets/{chunk-4HAMMTFA-CPnMRFld.js → chunk-4HAMMTFA-CY7q81OM.js} +2 -2
  83. package/dist/client/assets/{chunk-75Z2AOVW-C85FbOND.js → chunk-75Z2AOVW-14_TWBCK.js} +2 -2
  84. package/dist/client/assets/{chunk-DU6HZSFF-s_qrqgaz.js → chunk-DU6HZSFF-BWG3N9au.js} +2 -2
  85. package/dist/client/assets/{chunk-F27PBJKO-90tTgV9x.js → chunk-F27PBJKO-vnlzbF2j.js} +2 -2
  86. package/dist/client/assets/{chunk-GMAD6QVW-CYRPr7hZ.js → chunk-GMAD6QVW-CL48mY_-.js} +2 -2
  87. package/dist/client/assets/{chunk-GVQU2GXP-CxAvUb1-.js → chunk-GVQU2GXP-Dzgc6o98.js} +2 -2
  88. package/dist/client/assets/{chunk-IMKFNOWR-794woOlB.js → chunk-IMKFNOWR-BP3CZAoc.js} +2 -2
  89. package/dist/client/assets/{chunk-L3NEJ4N5-JXcRdiIo.js → chunk-L3NEJ4N5-DJr6VoYO.js} +2 -2
  90. package/dist/client/assets/{chunk-OSK3NFVY-ToxVvjW1.js → chunk-OSK3NFVY-B7dCia9b.js} +2 -2
  91. package/dist/client/assets/{chunk-P2QGCYS3-JB1PmfIc.js → chunk-P2QGCYS3-C39wNHCE.js} +2 -2
  92. package/dist/client/assets/{chunk-POPQ4Y6H-RMxlqjhd.js → chunk-POPQ4Y6H-lHPfawSy.js} +2 -2
  93. package/dist/client/assets/{chunk-PWAF6VOD-AB579n2y.js → chunk-PWAF6VOD-B-onoF1f.js} +2 -2
  94. package/dist/client/assets/{chunk-SHT3W25Y-CV2hE9-g.js → chunk-SHT3W25Y-Df8OXB-a.js} +2 -2
  95. package/dist/client/assets/{chunk-SVP7TREG-b2Gs4u5W.js → chunk-SVP7TREG-B5Jq9B5Y.js} +2 -2
  96. package/dist/client/assets/{chunk-TICWLB2K-CtkYqLLJ.js → chunk-TICWLB2K-B5SLi6aM.js} +2 -2
  97. package/dist/client/assets/classDiagram-ZZMXUADV-CaSHZ6o_.js +2 -0
  98. package/dist/client/assets/classDiagram-v2-VYDZK3BY-CaSHZ6o_.js +2 -0
  99. package/dist/client/assets/{color-picker-CFc6YapE.js → color-picker-CkJLA9Jr.js} +2 -2
  100. package/dist/client/assets/combobox-B6mdMhHV.js +2 -0
  101. package/dist/client/assets/command-DJuCVIR5.js +2 -0
  102. package/dist/client/assets/connect-agent-CPPwjVyn.js +2 -0
  103. package/dist/client/assets/{connect-D_ncSJiK.js → connect-rtC5Yxq-.js} +2 -2
  104. package/dist/client/assets/corner-left-up-BCqW4dF8.js +2 -0
  105. package/dist/client/assets/{cynefin-OW5HDTMX-BDIjrXPB.js → cynefin-OW5HDTMX-CARsjMgW.js} +1 -1
  106. package/dist/client/assets/{cynefinDiagram-5FMLGOSQ-h9tw36zs.js → cynefinDiagram-5FMLGOSQ-CHY9mnu2.js} +2 -2
  107. package/dist/client/assets/{dagre-GXQ25YYZ-D3s1T81F.js → dagre-GXQ25YYZ-C0FrjxaN.js} +2 -2
  108. package/dist/client/assets/device-CR5lpfef.js +2 -0
  109. package/dist/client/assets/{diagram-S7CK7UJ4-DTawhR4X.js → diagram-S7CK7UJ4-PtPpZAI6.js} +2 -2
  110. package/dist/client/assets/{diagram-UQ7AKVKN-CTUDQHKY.js → diagram-UQ7AKVKN-DUgq-dTJ.js} +2 -2
  111. package/dist/client/assets/{diagram-VSXAHHWV-DsbNNWnj.js → diagram-VSXAHHWV-Gh5HsUIP.js} +2 -2
  112. package/dist/client/assets/{diagram-VX7I27RA-BBy99N9O.js → diagram-VX7I27RA-D5FMJiCf.js} +2 -2
  113. package/dist/client/assets/{diagram-Z3DM3KII-CEy69xv1.js → diagram-Z3DM3KII-CmAYyvaL.js} +2 -2
  114. package/dist/client/assets/dialog-DF47CrNT.js +2 -0
  115. package/dist/client/assets/{diffRendering-BlmxsRF9.js → diffRendering-zhNPdu0X.js} +2 -2
  116. package/dist/client/assets/{discovery-list-D0LBmkzJ.js → discovery-list-BHQKwt20.js} +2 -2
  117. package/dist/client/assets/{dist-DZWol-cd.js → dist-xJXPIdFu.js} +3 -3
  118. package/dist/client/assets/download-BAp4p4A-.js +2 -0
  119. package/dist/client/assets/{draft-input-CmvO5rl_.js → draft-input-Dj2IHuwL.js} +2 -2
  120. package/dist/client/assets/{duoViewer-B0QD-fyi.js → duoViewer-uYgErMSw.js} +2 -2
  121. package/dist/client/assets/dynamic-CM5x0VU9.js +3 -0
  122. package/dist/client/assets/earth-CTY23Bx1.js +2 -0
  123. package/dist/client/assets/{ebnfDiagram-PWID7BFC-B9LWNbny.js → ebnfDiagram-PWID7BFC-C2bi_JaD.js} +2 -2
  124. package/dist/client/assets/ellipsis-6x3R4_IB.js +2 -0
  125. package/dist/client/assets/{embeddedScripts-B1MGNr-e.js → embeddedScripts-CrApSF9h.js} +2 -2
  126. package/dist/client/assets/empty-DqTsGaFf.js +2 -0
  127. package/dist/client/assets/entities-BJX4eZyc.js +2 -0
  128. package/dist/client/assets/{erDiagram-RLTQ6QDP-Nu9IMF5-.js → erDiagram-RLTQ6QDP-BNnOWsqy.js} +2 -2
  129. package/dist/client/assets/eventmodeling-NTZA5JFV-b-UZANga.js +1 -0
  130. package/dist/client/assets/eye-Dh5UEUs_.js +2 -0
  131. package/dist/client/assets/file-search-DotMSEoS.js +2 -0
  132. package/dist/client/assets/{fileLinks-BHAkEh9k.js → fileLinks-DO5hZpK2.js} +2 -2
  133. package/dist/client/assets/{fileTreeExpansion-BierCVUV.js → fileTreeExpansion-CIOHZWsx.js} +2 -2
  134. package/dist/client/assets/flowDiagram-HODETNUW-CZR0K3VV.js +1 -0
  135. package/dist/client/assets/folder-git-2-BxqGR5ht.js +2 -0
  136. package/dist/client/assets/folder-open-BqgCWh1y.js +2 -0
  137. package/dist/client/assets/folder-plus-BHa3aD6W.js +2 -0
  138. package/dist/client/assets/{ganttDiagram-EL5Y4UJY-D_s5F9rI.js → ganttDiagram-EL5Y4UJY-Bnkb2Ngr.js} +2 -2
  139. package/dist/client/assets/{getDiffFileInput-B5j6sQbM.js → getDiffFileInput-DQz1O4Oa.js} +2 -2
  140. package/dist/client/assets/git-branch-CAP5iwh8.js +2 -0
  141. package/dist/client/assets/{gitGraph-4MIJSDKK-BASxGOL3.js → gitGraph-4MIJSDKK-D-LR6ljt.js} +1 -1
  142. package/dist/client/assets/{gitGraphDiagram-WWUBYQGX-BtA4z_1S.js → gitGraphDiagram-WWUBYQGX-Dxeh7Ifh.js} +2 -2
  143. package/dist/client/assets/grip-vertical-B8ERFH5y.js +2 -0
  144. package/dist/client/assets/{guideRunStore-C95PbUuP.js → guideRunStore-BDwUrwVG.js} +2 -2
  145. package/dist/client/assets/hard-drive-CVWUL95f.js +2 -0
  146. package/dist/client/assets/history-B22_6xEN.js +2 -0
  147. package/dist/client/assets/house-D_gjXlRt.js +2 -0
  148. package/dist/client/assets/{htmlRender-DgdJ8GkZ.js → htmlRender-u6aukaIS.js} +2 -2
  149. package/dist/client/assets/index-CX66rK96.js +3 -0
  150. package/dist/client/assets/{info-A6RAGUB7-Q4Qe5TI_.js → info-A6RAGUB7-UNUNy-u6.js} +1 -1
  151. package/dist/client/assets/{infoDiagram-27XIBGKW-CNnDxcfZ.js → infoDiagram-27XIBGKW-CGvleawa.js} +2 -2
  152. package/dist/client/assets/{input-DaCwubQj.js → input-Co98bOaa.js} +2 -2
  153. package/dist/client/assets/{input-group-DJwXFHGO.js → input-group-C65K0cEy.js} +2 -2
  154. package/dist/client/assets/{ishikawaDiagram-5VMMS53U-Drb03OY6.js → ishikawaDiagram-5VMMS53U-D-QGLluZ.js} +2 -2
  155. package/dist/client/assets/{journeyDiagram-3NMN7TZE-CynC6Up1.js → journeyDiagram-3NMN7TZE-Cc9GB3QS.js} +2 -2
  156. package/dist/client/assets/{kanban-definition-UXKFOSKX-DfyC_hIe.js → kanban-definition-UXKFOSKX-BgUV6FhS.js} +2 -2
  157. package/dist/client/assets/{kbd-R3wkAau0.js → kbd-CwLhv_1P.js} +2 -2
  158. package/dist/client/assets/{keybindings-QrjnJ5jB.js → keybindings-DcZTzIOk.js} +2 -2
  159. package/dist/client/assets/keyboard-9HUE6Zs7.js +2 -0
  160. package/dist/client/assets/{lazyRouteComponent-cLZROdN-.js → lazyRouteComponent-OwDgZa6d.js} +2 -2
  161. package/dist/client/assets/{line-C3gvAOpf.js → line-sNp2Ita4.js} +2 -2
  162. package/dist/client/assets/{link-Bl21VXlj.js → link-Djjm-r3O.js} +2 -2
  163. package/dist/client/assets/link-zAXVcUwk.js +2 -0
  164. package/dist/client/assets/{linkedPrompt-DAcv0O_f.js → linkedPrompt-jLrYuA9Q.js} +2 -2
  165. package/dist/client/assets/list-BAEaXVbr.js +2 -0
  166. package/dist/client/assets/main-BD763ru4.js +30 -0
  167. package/dist/client/assets/main-bt-A8VDR.css +2 -0
  168. package/dist/client/assets/{mediaReference-DN8lzwOF.js → mediaReference-DWr_Q7C6.js} +2 -2
  169. package/dist/client/assets/{mediaSource-0nIWHHoL.js → mediaSource-N7mIMF8c.js} +2 -2
  170. package/dist/client/assets/{mermaid-parser.core-B3cYmj0d.js → mermaid-parser.core-BlZknfsy.js} +4 -4
  171. package/dist/client/assets/mermaid.core--V3R0CM0.js +45 -0
  172. package/dist/client/assets/message-circle-question-mark-Blboafqi.js +2 -0
  173. package/dist/client/assets/message-square-DLzUyuIE.js +2 -0
  174. package/dist/client/assets/message-square-dashed-DrEYZ6F3.js +2 -0
  175. package/dist/client/assets/{mindmap-definition-YA3MSWOX-K4rtZu2z.js → mindmap-definition-YA3MSWOX-Dcl1V19a.js} +2 -2
  176. package/dist/client/assets/mouse-pointer-2-DbBU41il.js +2 -0
  177. package/dist/client/assets/number-field-Dl9-pPML.js +2 -0
  178. package/dist/client/assets/{observeResize-BEjNJ-rK.js → observeResize-Cu9WOk75.js} +2 -2
  179. package/dist/client/assets/{onboarding--LqcHqO0.js → onboarding-D28jAqhK.js} +2 -2
  180. package/dist/client/assets/openFileInPreview-D8k3bAuB.js +2 -0
  181. package/dist/client/assets/p4ProjectFile-CA-XB2mx.js +2 -0
  182. package/dist/client/assets/{packet-AYTQ26CC-kDkfULQq.js → packet-AYTQ26CC-Cq8cyogA.js} +1 -1
  183. package/dist/client/assets/{pair-Bxo10T5t.js → pair-DTdVCqrt.js} +2 -2
  184. package/dist/client/assets/palette-Xj4s0pmv.js +2 -0
  185. package/dist/client/assets/panel-left-DzXd97so.js +2 -0
  186. package/dist/client/assets/panels-top-left-C5lf6BGD.js +2 -0
  187. package/dist/client/assets/{pegDiagram-XKGWAZYB-6b8AqBYd.js → pegDiagram-XKGWAZYB-CIlCIsuG.js} +2 -2
  188. package/dist/client/assets/{phoneViewer-Vql_2ZzY.js → phoneViewer-Cq9_4rg4.js} +2 -2
  189. package/dist/client/assets/{pie-WAS4IAKB-CfoqFIwI.js → pie-WAS4IAKB-C1UwrJ5y.js} +1 -1
  190. package/dist/client/assets/{pieDiagram-E7YTZNPT-i8FgTMai.js → pieDiagram-E7YTZNPT-DE2DXJ6n.js} +2 -2
  191. package/dist/client/assets/{pierre-icons-CBmlpFgP.js → pierre-icons-CTwu60OQ.js} +2 -2
  192. package/dist/client/assets/popover-C_CynHVT.js +2 -0
  193. package/dist/client/assets/{preview-C9iPHfb1.js → preview-BQQJkcGO.js} +2 -2
  194. package/dist/client/assets/{preview-6t42evKb.js → preview-BhxAapOU.js} +2 -2
  195. package/dist/client/assets/{previewMiniPlayerStore-BDRPsVx0.js → previewMiniPlayerStore-DFZVAQQT.js} +2 -2
  196. package/dist/client/assets/primary-DSRxd6M2.js +2 -0
  197. package/dist/client/assets/primaryCloudLinkState-CFpdks4W.js +2 -0
  198. package/dist/client/assets/projectFilesQueryState-C-ocQLMP.js +2 -0
  199. package/dist/client/assets/projectScriptEditor-B8vMmwB8.js +2 -0
  200. package/dist/client/assets/{providerSkills-D0IxW0_5.js → providerSkills-CcHRwAN-.js} +2 -2
  201. package/dist/client/assets/{pullRequestDetail.logic-BiwUoz1M.js → pullRequestDetail.logic-BtIgsnU5.js} +4 -4
  202. package/dist/client/assets/pullRequestIcons-DIZr6jl2.js +2 -0
  203. package/dist/client/assets/{pullRequestReviewStore-J7YIGsZ9.js → pullRequestReviewStore-amd6o4Qz.js} +2 -2
  204. package/dist/client/assets/pullRequests-DYydEt0i.js +2 -0
  205. package/dist/client/assets/puzzle-Bv9mngwk.js +2 -0
  206. package/dist/client/assets/{quadrantDiagram-AXDQQJYC-DzvIAxCm.js → quadrantDiagram-AXDQQJYC-B71DEG2g.js} +2 -2
  207. package/dist/client/assets/queries-CL96nG-6.js +2 -0
  208. package/dist/client/assets/query-BUdsNuE-.js +2 -0
  209. package/dist/client/assets/{radar-RG4KPBEZ-BnTV8utT.js → radar-RG4KPBEZ-DXixQtmq.js} +1 -1
  210. package/dist/client/assets/radio-group-A1S0ujjv.js +2 -0
  211. package/dist/client/assets/{railroad-74A4TZTK-nxEBKbUo.js → railroad-74A4TZTK-Dc3k62gE.js} +1 -1
  212. package/dist/client/assets/railroad-abnf-HS5TGJTU-KGox1mtk.js +1 -0
  213. package/dist/client/assets/railroad-ebnf-LZEXJU2U-B3MJWEk4.js +1 -0
  214. package/dist/client/assets/railroad-peg-WCYAUIDC-Dvcg1m8U.js +1 -0
  215. package/dist/client/assets/{railroadDiagram-O6MQD6OU-DFdlMVKn.js → railroadDiagram-O6MQD6OU-CI6QRate.js} +2 -2
  216. package/dist/client/assets/{renderScheduler-DWKKtxcJ.js → renderScheduler-5H6UPjvu.js} +2 -2
  217. package/dist/client/assets/{requirementDiagram-BXWQKSXE-BW8o0F_p.js → requirementDiagram-BXWQKSXE-B0Buh6ge.js} +2 -2
  218. package/dist/client/assets/{rightPanelStore-CQ94819A.js → rightPanelStore-DqykKcOU.js} +2 -2
  219. package/dist/client/assets/rotate-ccw-Dr4MwDMq.js +2 -0
  220. package/dist/client/assets/rotate-cw-10CQA0Ej.js +2 -0
  221. package/dist/client/assets/runtime-CKyYqaHd.js +2 -0
  222. package/dist/client/assets/runtime-CUfZ5Phy.js +6 -0
  223. package/dist/client/assets/runtimeModeConfig-UzS-MhY2.js +2 -0
  224. package/dist/client/assets/{sankeyDiagram-P5KCCOFB-JA6FB6i0.js → sankeyDiagram-P5KCCOFB-Deq_JVb6.js} +2 -2
  225. package/dist/client/assets/{scheduledTasksSettings.logic-C_AdQNVz.js → scheduledTasksSettings.logic-C4ccNgNW.js} +2 -2
  226. package/dist/client/assets/{scroll-area-BYyfw-9F.js → scroll-area-Cv4W51s4.js} +2 -2
  227. package/dist/client/assets/select-DzlDEkfd.js +2 -0
  228. package/dist/client/assets/{sequenceDiagram-WJ2MYXX4-DgBrrcVR.js → sequenceDiagram-WJ2MYXX4-1qHr7xDW.js} +2 -2
  229. package/dist/client/assets/server-wAR-1-oq.js +2 -0
  230. package/dist/client/assets/session-kQcn2Ab9.js +2 -0
  231. package/dist/client/assets/{session-logic-l1juLk9v.js → session-logic-0uuqchi0.js} +5 -5
  232. package/dist/client/assets/settings-2-XzWAl_8P.js +2 -0
  233. package/dist/client/assets/settings-CJRxKrr5.js +2 -0
  234. package/dist/client/assets/settings-CTjEqsg3.js +2 -0
  235. package/dist/client/assets/settings.appearance-CdYf34t-.js +2 -0
  236. package/dist/client/assets/settings.archived-CBKnSA9g.js +2 -0
  237. package/dist/client/assets/settings.computer-use-BBwkrRF0.js +2 -0
  238. package/dist/client/assets/settings.connections-C0ScdFUO.js +2 -0
  239. package/dist/client/assets/{settings.data-controls-CBrcsSvm.js → settings.data-controls-CqmbYgtL.js} +2 -2
  240. package/dist/client/assets/{settings.decisions-CGz9znLs.js → settings.decisions-Bze1TWCV.js} +2 -2
  241. package/dist/client/assets/settings.diagnostics-DljjNhZd.js +2 -0
  242. package/dist/client/assets/settings.general-DbmtxjMV.js +2 -0
  243. package/dist/client/assets/settings.integrations-o3KHIBuO.js +2 -0
  244. package/dist/client/assets/settings.keybindings-DKWMv6nZ.js +2 -0
  245. package/dist/client/assets/settings.open-source-licenses-BRMYfP3x.js +2 -0
  246. package/dist/client/assets/settings.plugins-CxGm36pf.js +5 -0
  247. package/dist/client/assets/settings.projects-B_Zp3Z9z.js +4 -0
  248. package/dist/client/assets/settings.providers-DLodyAaO.js +3 -0
  249. package/dist/client/assets/settings.scheduled-tasks-me1XYuBY.js +2 -0
  250. package/dist/client/assets/settings.snap-shot-rYPhb3ty.js +2 -0
  251. package/dist/client/assets/settings.source-control-CEp3bQpF.js +2 -0
  252. package/dist/client/assets/{settings.storage-fl2BN0Cu.js → settings.storage-Bt3UPsm5.js} +2 -2
  253. package/dist/client/assets/settingsLayout-B-2za2g9.js +3 -0
  254. package/dist/client/assets/shield-check-k2SY7zjx.js +2 -0
  255. package/dist/client/assets/shield-question-mark-pgYZYoSI.js +2 -0
  256. package/dist/client/assets/sidebar-DmtBLMTN.js +2 -0
  257. package/dist/client/assets/{sidebarProjectGrouping-Sm7y9bd1.js → sidebarProjectGrouping-CnKGrI1j.js} +2 -2
  258. package/dist/client/assets/skeleton-B4ai8OyH.js +2 -0
  259. package/dist/client/assets/{sortable.esm-CwrTFe-B.js → sortable.esm-wPMp_PEb.js} +2 -2
  260. package/dist/client/assets/{sourceControl-DyHbbOxl.js → sourceControl-CrWHksgJ.js} +2 -2
  261. package/dist/client/assets/spinner-CqTy7FSl.js +2 -0
  262. package/dist/client/assets/square-pen-DIW48FdK.js +2 -0
  263. package/dist/client/assets/{standalone-page-DTvNMgJy.js → standalone-page-DjPR_lp1.js} +2 -2
  264. package/dist/client/assets/{stateDiagram-D77RDMKH-gHEAo7xC.js → stateDiagram-D77RDMKH-DBZk-pTE.js} +2 -2
  265. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-01P-rV-b.js +2 -0
  266. package/dist/client/assets/{swimlanes-42K2YHIH-_qZ90QGb.js → swimlanes-42K2YHIH-ByvgaAKf.js} +2 -2
  267. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-0fZWpnCF.js +9 -0
  268. package/dist/client/assets/{terminal-links-Dc2HX7Ov.js → terminal-links-BleTJXkt.js} +2 -2
  269. package/dist/client/assets/{terminalSessions-DK9WKgga.js → terminalSessions-dTMJKZUr.js} +2 -2
  270. package/dist/client/assets/text-search-BsqmpFYh.js +2 -0
  271. package/dist/client/assets/{textarea-CYXHTTG6.js → textarea-DIyHbcIw.js} +2 -2
  272. package/dist/client/assets/{themePalette-zVYGoviO.js → themePalette-ELqAvm4C.js} +3 -3
  273. package/dist/client/assets/threadSort-C6bJOgqf.js +2 -0
  274. package/dist/client/assets/{timeline-definition-24CTP7MA-BxWmcZQs.js → timeline-definition-24CTP7MA-Q0Al5L2-.js} +2 -2
  275. package/dist/client/assets/toast-MGWD1Vlb.js +2 -0
  276. package/dist/client/assets/{toggle-fk33ppsB.js → toggle-BAcxn8F-.js} +2 -2
  277. package/dist/client/assets/{toggle-group-W0bDGcPB.js → toggle-group-XAlRECP9.js} +2 -2
  278. package/dist/client/assets/tooltip-BTZmEp2R.js +2 -0
  279. package/dist/client/assets/{treeView-Q6P3EWNA-BsPhq-Fl.js → treeView-Q6P3EWNA-CA5VrBlD.js} +1 -1
  280. package/dist/client/assets/{treemap-WGGIJYW6-DZ3fnU-o.js → treemap-WGGIJYW6-VkJwMEUW.js} +1 -1
  281. package/dist/client/assets/usage-BAr-_U4h.js +2 -0
  282. package/dist/client/assets/{usageAccess-Mp1Nbm2r.js → usageAccess-DHG-PXT1.js} +2 -2
  283. package/dist/client/assets/{usageFormat-ZiOrCBxk.js → usageFormat-B7-dLMvL.js} +2 -2
  284. package/dist/client/assets/{usageShortcuts-Be5hddhr.js → usageShortcuts-BffpH2Am.js} +2 -2
  285. package/dist/client/assets/{use-atom-command-RgcuqzP9.js → use-atom-command-CwLq1NLm.js} +2 -2
  286. package/dist/client/assets/{useAriaLabelledBy-D-n0SDV6.js → useAriaLabelledBy-DuZF33ag.js} +2 -2
  287. package/dist/client/assets/useHandleNewThread-Dz0hXG9T.js +2 -0
  288. package/dist/client/assets/{useLocation-BN5q7LjL.js → useLocation-Ck2WxARJ.js} +2 -2
  289. package/dist/client/assets/useNavigate-gpe7yDrs.js +2 -0
  290. package/dist/client/assets/{useNavigateBack-BWhsiBJ5.js → useNavigateBack-DkhnvN2P.js} +2 -2
  291. package/dist/client/assets/{useParams-DQgx0pmy.js → useParams-ZpfAkQ5u.js} +2 -2
  292. package/dist/client/assets/usePermissionStatus-BXGMw-SX.js +2 -0
  293. package/dist/client/assets/{usePullRequestActions-D97OVSkM.js → usePullRequestActions-CtlawWSo.js} +3 -3
  294. package/dist/client/assets/useRegisterFieldControl-Bnfq4Sq_.js +2 -0
  295. package/dist/client/assets/{useScopedModelAvailability-BTR7tHpB.js → useScopedModelAvailability-BH0nl2bK.js} +2 -2
  296. package/dist/client/assets/useSettings-B_UiwKX2.js +3 -0
  297. package/dist/client/assets/{useT3ConnectAuthPrompt-CPGDAWRk.js → useT3ConnectAuthPrompt-CgOEppM6.js} +2 -2
  298. package/dist/client/assets/utils-BSj_I6H5.js +37 -0
  299. package/dist/client/assets/vcsRefInvalidation-CagWw7RC.js +2 -0
  300. package/dist/client/assets/{vennDiagram-4TSXK5OY-BnH-hzBf.js → vennDiagram-4TSXK5OY-CYfZGFGR.js} +2 -2
  301. package/dist/client/assets/{wardley-WFR3VGLG-BbiFWq4f.js → wardley-WFR3VGLG-CTushXoY.js} +1 -1
  302. package/dist/client/assets/{wardleyDiagram-VM6X3IG4-DPf4ISf5.js → wardleyDiagram-VM6X3IG4-YUv9rcpO.js} +2 -2
  303. package/dist/client/assets/welcome-CF1pFivU.js +2 -0
  304. package/dist/client/assets/{xychartDiagram-S5SC5T6Z-oaZh5sFY.js → xychartDiagram-S5SC5T6Z-DSqIxe9e.js} +2 -2
  305. package/dist/client/index.html +1 -1
  306. package/package.json +1 -1
  307. package/dist/client/assets/ChatGptUsageButton-BWTEbaUC.js +0 -2
  308. package/dist/client/assets/ChatMarkdown-C6UsXjP9.js +0 -65
  309. package/dist/client/assets/CodexSetupSection.logic-VTayPks4.js +0 -2
  310. package/dist/client/assets/ComboboxClear-B-iYnTX_.js +0 -2
  311. package/dist/client/assets/CommandBlock-dh2vBT70.js +0 -2
  312. package/dist/client/assets/CompositeRoot-JeAqW-33.js +0 -2
  313. package/dist/client/assets/DevicePanel-BckpiUTa.js +0 -2
  314. package/dist/client/assets/DeviceSetup-L8Q-0h1V.js +0 -2
  315. package/dist/client/assets/DiffFileTree-C2N3dwbB.js +0 -2
  316. package/dist/client/assets/DiffPanel-0HWHkPjD.js +0 -2
  317. package/dist/client/assets/EnvironmentMachineIcon-giyHKjbh.js +0 -2
  318. package/dist/client/assets/FilePreviewPanel-D3kud1xs.js +0 -34
  319. package/dist/client/assets/FoldedSettingsSection-CsN_jb3V.js +0 -2
  320. package/dist/client/assets/NoProjectsHero-DrkWMiG4.js +0 -2
  321. package/dist/client/assets/PanelLayoutControls-DjmAXscr.js +0 -215
  322. package/dist/client/assets/PreviewPanel-D_JLD7YP.js +0 -2
  323. package/dist/client/assets/ProjectDefaultsSettings-Bqo3T1SR.js +0 -2
  324. package/dist/client/assets/ProjectFavicon-By6-kpgk.js +0 -3
  325. package/dist/client/assets/ProjectIconPickerDialog-Cx-QcJLy.js +0 -2
  326. package/dist/client/assets/ProjectMonogram-BJVBhwjz.js +0 -2
  327. package/dist/client/assets/ProviderModelPicker-DV64N-fE.js +0 -2
  328. package/dist/client/assets/ProviderSettingsForm-Tkr5xKCJ.js +0 -2
  329. package/dist/client/assets/PullRequestCodeTab-DijqMjN0.js +0 -6
  330. package/dist/client/assets/RenderErrorBoundary-D4M2khxk.js +0 -2
  331. package/dist/client/assets/ScheduledTasksSettings-D_Z_3GVl.js +0 -4
  332. package/dist/client/assets/SettingsPanels-DAv_V_mk.js +0 -39
  333. package/dist/client/assets/T3ConnectAccountPages-DjITJ87o.js +0 -2
  334. package/dist/client/assets/T3ConnectSidebarSignIn-B-rQNmqG.js +0 -2
  335. package/dist/client/assets/ThemeEditorPanel-CJGqmeTA.js +0 -5
  336. package/dist/client/assets/ThreadTerminalDrawer-Cdl3DAIx.js +0 -5
  337. package/dist/client/assets/_chat-oHhtDqeh.js +0 -45
  338. package/dist/client/assets/_chat.index-CTew1WmI.js +0 -2
  339. package/dist/client/assets/_chat.pull-requests-BlXnsqov.js +0 -2
  340. package/dist/client/assets/architecture-7GRP2DOG-BMFS-mJW.js +0 -1
  341. package/dist/client/assets/arrow-left-BFquhiaO.js +0 -1
  342. package/dist/client/assets/arrow-right-DiV8cYUQ.js +0 -1
  343. package/dist/client/assets/arrow-up-down-BDQTjPr1.js +0 -1
  344. package/dist/client/assets/assets-CRmNKuHc.js +0 -2
  345. package/dist/client/assets/bell-BvJp3v99.js +0 -1
  346. package/dist/client/assets/blocks-NuR9qdGl.js +0 -1
  347. package/dist/client/assets/bot-mvw1ddnU.js +0 -1
  348. package/dist/client/assets/calendar-clock-CuvWKWXS.js +0 -1
  349. package/dist/client/assets/channel-Cf2J77rP.js +0 -2
  350. package/dist/client/assets/chart-no-axes-column-Hfs9TSWj.js +0 -1
  351. package/dist/client/assets/checkbox-BHsP70Vt.js +0 -2
  352. package/dist/client/assets/classDiagram-ZZMXUADV-D9m4giYc.js +0 -2
  353. package/dist/client/assets/classDiagram-v2-VYDZK3BY-D9m4giYc.js +0 -2
  354. package/dist/client/assets/combobox-WVgW_agq.js +0 -2
  355. package/dist/client/assets/command-w6WcFbeZ.js +0 -2
  356. package/dist/client/assets/connect-agent-8mHL_bau.js +0 -2
  357. package/dist/client/assets/corner-left-up-DedXC9IG.js +0 -1
  358. package/dist/client/assets/device-DhvzgETq.js +0 -2
  359. package/dist/client/assets/dialog-CPLO59bH.js +0 -2
  360. package/dist/client/assets/download-CUcdw53T.js +0 -1
  361. package/dist/client/assets/dynamic-tF-2a8Zt.js +0 -3
  362. package/dist/client/assets/earth-BqADiov-.js +0 -1
  363. package/dist/client/assets/ellipsis-BUF_4-Z7.js +0 -1
  364. package/dist/client/assets/empty-tr-EsB66.js +0 -2
  365. package/dist/client/assets/entities-DqhRur25.js +0 -2
  366. package/dist/client/assets/eventmodeling-NTZA5JFV-CHuv5_8f.js +0 -1
  367. package/dist/client/assets/eye-C8OhITrC.js +0 -1
  368. package/dist/client/assets/file-search-ComEiFQ8.js +0 -1
  369. package/dist/client/assets/flowDiagram-HODETNUW-wmC7eeQc.js +0 -1
  370. package/dist/client/assets/folder-git-2-COyuVTXA.js +0 -1
  371. package/dist/client/assets/folder-open-DZzz50kK.js +0 -1
  372. package/dist/client/assets/folder-plus-BzJT8jXs.js +0 -1
  373. package/dist/client/assets/git-branch-CCzcdr93.js +0 -1
  374. package/dist/client/assets/grip-vertical-COceJQZo.js +0 -1
  375. package/dist/client/assets/hard-drive-BKLzbeTS.js +0 -1
  376. package/dist/client/assets/history-CAAEfWkp.js +0 -1
  377. package/dist/client/assets/house-U4txgvXa.js +0 -1
  378. package/dist/client/assets/index-D_uSeco8.js +0 -3
  379. package/dist/client/assets/keyboard-kgy5M4lo.js +0 -1
  380. package/dist/client/assets/link-C1k5F8-V.js +0 -1
  381. package/dist/client/assets/list-CU7BIfIS.js +0 -1
  382. package/dist/client/assets/main-BsiZpg85.css +0 -2
  383. package/dist/client/assets/main-uLg3xUJM.js +0 -30
  384. package/dist/client/assets/mermaid.core-9ekBSYCO.js +0 -45
  385. package/dist/client/assets/message-circle-question-mark-wTwD9xwk.js +0 -1
  386. package/dist/client/assets/message-square-dashed-Hcy2Q2EP.js +0 -1
  387. package/dist/client/assets/message-square-lCzwndCW.js +0 -1
  388. package/dist/client/assets/mouse-pointer-2-BFFAEWXU.js +0 -1
  389. package/dist/client/assets/number-field-pAaF-e0N.js +0 -2
  390. package/dist/client/assets/openFileInPreview-NwK1GJFN.js +0 -2
  391. package/dist/client/assets/p4ProjectFile-CVEoe1SJ.js +0 -2
  392. package/dist/client/assets/palette-BkpHEJXn.js +0 -1
  393. package/dist/client/assets/panel-left-DNz3ps89.js +0 -1
  394. package/dist/client/assets/panels-top-left-bKuZF4FX.js +0 -1
  395. package/dist/client/assets/popover-BXin7C0B.js +0 -2
  396. package/dist/client/assets/primary-DOpcfgLH.js +0 -2
  397. package/dist/client/assets/primaryCloudLinkState-Dulej3bP.js +0 -2
  398. package/dist/client/assets/projectFilesQueryState-C1crs3C8.js +0 -2
  399. package/dist/client/assets/projectScriptEditor-ku2tGeKq.js +0 -2
  400. package/dist/client/assets/pullRequestIcons-BWiN_14V.js +0 -2
  401. package/dist/client/assets/pullRequests-BQ9KruZm.js +0 -2
  402. package/dist/client/assets/puzzle-wfhgUaHl.js +0 -1
  403. package/dist/client/assets/queries-CEjFwxVW.js +0 -2
  404. package/dist/client/assets/query-D5pQUQvZ.js +0 -2
  405. package/dist/client/assets/radio-group-DhpPG5HP.js +0 -2
  406. package/dist/client/assets/railroad-abnf-HS5TGJTU-bDIjPMME.js +0 -1
  407. package/dist/client/assets/railroad-ebnf-LZEXJU2U-BREFlihg.js +0 -1
  408. package/dist/client/assets/railroad-peg-WCYAUIDC-B0hEZefb.js +0 -1
  409. package/dist/client/assets/rotate-ccw-CkpQmcC5.js +0 -1
  410. package/dist/client/assets/rotate-cw-BAiACGtX.js +0 -1
  411. package/dist/client/assets/runtime-Bsb2I_n2.js +0 -2
  412. package/dist/client/assets/runtime-DkYxB4ri.js +0 -6
  413. package/dist/client/assets/runtimeModeConfig-DKj6PlUP.js +0 -2
  414. package/dist/client/assets/select-CjGEfXy_.js +0 -2
  415. package/dist/client/assets/server-BYntb2dN.js +0 -2
  416. package/dist/client/assets/session-eLrubJEW.js +0 -2
  417. package/dist/client/assets/settings-2-CDBTJPBs.js +0 -1
  418. package/dist/client/assets/settings-DDvSs7LG.js +0 -1
  419. package/dist/client/assets/settings-xKzLy5aw.js +0 -2
  420. package/dist/client/assets/settings.appearance-CEA3GKAa.js +0 -2
  421. package/dist/client/assets/settings.archived-DPWjmD2l.js +0 -2
  422. package/dist/client/assets/settings.computer-use-DZu90DiM.js +0 -2
  423. package/dist/client/assets/settings.connections-BKWbsMUk.js +0 -2
  424. package/dist/client/assets/settings.diagnostics-DKkOOzoq.js +0 -2
  425. package/dist/client/assets/settings.general-CoPWyKC4.js +0 -2
  426. package/dist/client/assets/settings.integrations-K3Jwfkyd.js +0 -2
  427. package/dist/client/assets/settings.keybindings-BbR3qnVs.js +0 -2
  428. package/dist/client/assets/settings.open-source-licenses-Mh-zg97k.js +0 -2
  429. package/dist/client/assets/settings.plugins-BI68kAsM.js +0 -5
  430. package/dist/client/assets/settings.projects-BahZsoyx.js +0 -4
  431. package/dist/client/assets/settings.providers-Dsnq0-AL.js +0 -3
  432. package/dist/client/assets/settings.scheduled-tasks-BOpVl_XK.js +0 -2
  433. package/dist/client/assets/settings.snap-shot-Bs_DZS7D.js +0 -2
  434. package/dist/client/assets/settings.source-control-Akrp_mGm.js +0 -2
  435. package/dist/client/assets/settingsLayout-DV36_Jgq.js +0 -3
  436. package/dist/client/assets/shield-check-yRjvgn4y.js +0 -1
  437. package/dist/client/assets/shield-question-mark-DyVUewRO.js +0 -1
  438. package/dist/client/assets/sidebar-MBwCdIpv.js +0 -2
  439. package/dist/client/assets/skeleton-CS8ffFVv.js +0 -2
  440. package/dist/client/assets/spinner-B7a-VUeR.js +0 -2
  441. package/dist/client/assets/square-pen-BrE59gWn.js +0 -1
  442. package/dist/client/assets/stateDiagram-v2-MP3YSRHH-CGT21P8W.js +0 -2
  443. package/dist/client/assets/swimlanesDiagram-VR7AAH4N-D9Ttx7dQ.js +0 -9
  444. package/dist/client/assets/text-search-CFbEY3qo.js +0 -1
  445. package/dist/client/assets/threadSort-Byzu7B1A.js +0 -2
  446. package/dist/client/assets/toast-BX9uiMAh.js +0 -2
  447. package/dist/client/assets/tooltip-B0rhqi5b.js +0 -2
  448. package/dist/client/assets/usage-DlNazxzV.js +0 -2
  449. package/dist/client/assets/useHandleNewThread-BQ5wqZab.js +0 -2
  450. package/dist/client/assets/useNavigate-CDvr3Yvg.js +0 -2
  451. package/dist/client/assets/usePermissionStatus-FtemMvNg.js +0 -2
  452. package/dist/client/assets/useRegisterFieldControl-KOnbOVnX.js +0 -2
  453. package/dist/client/assets/useSettings-BIggY3j1.js +0 -3
  454. package/dist/client/assets/utils-BxISc9RR.js +0 -37
  455. package/dist/client/assets/vcsRefInvalidation-h_E9Figo.js +0 -2
  456. package/dist/client/assets/welcome-DjYohRu3.js +0 -2
@@ -1,2 +1,2 @@
1
- import{Bf as e,Dp as t,Tp as n,Vf as r,jx as i,kc as a,zm as o}from"./utils-BxISc9RR.js";import{N as s,O as c,P as l,et as u,j as d}from"./runtime-DkYxB4ri.js";import{t as f}from"./runtime-Bsb2I_n2.js";import{i as p}from"./session-eLrubJEW.js";import{n as m}from"./query-D5pQUQvZ.js";var h=i(),g=Object.freeze({generation:-1,resetVersion:-1,offset:0}),_=524288,v=16384,y=1024,b=new TextEncoder,x=new TextDecoder(`utf-8`,{ignoreBOM:!0}),S=Object.freeze({generation:0,chunks:Object.freeze([]),retainedBytes:0,resetVersion:0,nextOffset:0});function C(e,t){if(e.length===0)return[];let n=b.encode(e);if(n.byteLength<=t)return[{data:e,byteLength:n.byteLength}];let r=[],i=0;for(;i<n.byteLength;){let e=Math.min(i+t,n.byteLength);for(;e<n.byteLength&&((n[e]??0)&192)==128;)--e;if(e===i)for(e=Math.min(i+t,n.byteLength);e<n.byteLength&&((n[e]??0)&192)==128;)e+=1;let a=n.subarray(i,e);r.push({data:x.decode(a),byteLength:a.byteLength}),i=e}return r}function w(e,t){if(t<=0)return``;let n=b.encode(e);if(n.byteLength<=t)return e;let r=n.byteLength-t;for(;r<n.length;){let e=n[r];if(e===void 0||(e&192)!=128)break;r+=1}return x.decode(n.subarray(r))}function T(e,t,n=v){let r=C(e,n),i=0,a=t;return{chunks:r.map(e=>{i+=e.byteLength;let t=a;return a+=e.data.length,{startOffset:t,data:e.data,byteLength:e.byteLength}}),nextOffset:a,byteLength:i}}function E(e){let t=[];for(let n of e){let e=t.at(-1);e!==void 0&&e.startOffset+e.data.length===n.startOffset&&e.byteLength+n.byteLength<=v?t[t.length-1]={startOffset:e.startOffset,data:`${e.data}${n.data}`,byteLength:e.byteLength+n.byteLength}:t.push(n)}return t}function D(e,t){let n=0,r=0;for(;r<t&&n<e.data.length;){let t=e.data.codePointAt(n);r+=t<=127?1:t<=2047?2:t<=65535?3:4,n+=t<=65535?1:2}return{...e,startOffset:e.startOffset+n,data:e.data.slice(n),byteLength:e.byteLength-r}}function O(e,t,n){if(t.length===0)return e;if(n<=0)return{generation:e.generation,chunks:[],retainedBytes:0,resetVersion:e.resetVersion+1,nextOffset:e.nextOffset+t.length};let r=T(t,e.nextOffset,Math.min(v,Math.max(1,n))),i=[...e.chunks,...r.chunks],a=e.retainedBytes+r.byteLength,o=0;for(;a>n&&o<i.length;){let e=i[o],t=a-n;if(t<e.byteLength){let n=D(e,t);a-=e.byteLength-n.byteLength,n.byteLength>0?i[o]=n:o+=1;break}a-=e.byteLength,o+=1}let s=o===0?i:i.slice(o);if(s.length>y){s=E(s);let e=s.length-y;if(e>0){for(let t of s.slice(0,e))a-=t.byteLength;s=s.slice(e)}}return{generation:e.generation,chunks:s,retainedBytes:a,resetVersion:e.resetVersion,nextOffset:r.nextOffset}}function k(e,t,n){let r=T(w(t,n),0,Math.min(v,Math.max(1,n)));return{generation:e.generation,chunks:r.chunks,retainedBytes:r.byteLength,resetVersion:e.resetVersion+1,nextOffset:r.nextOffset}}function A(e){return e.chunks.map(e=>e.data).join(``)}function j(e,t){let n={generation:e.generation,resetVersion:e.resetVersion,offset:e.nextOffset},r=e.chunks[0];if(t.generation!==e.generation||t.resetVersion!==e.resetVersion||t.offset<(r?.startOffset??e.nextOffset))return{type:`reset`,data:A(e),cursor:n};let i=e.chunks.filter(e=>e.startOffset+e.data.length>t.offset);return i.length===0?{type:`none`,cursor:n}:{type:`append`,data:i.map(e=>e.data.slice(Math.max(0,t.offset-e.startOffset))).join(``),cursor:n}}function M(e){return e.filter(e=>e.state.hasRunningSubprocess).map(e=>e.target.terminalId)}var N=Object.freeze({output:S,status:`closed`,error:null,updatedAt:null,version:0,lifecycleVersion:0}),P=Object.freeze({summary:null,output:S,status:`closed`,error:null,hasRunningSubprocess:!1,updatedAt:null,version:0,lifecycleVersion:0}),F=0;function I(){return{...N,output:{...S,generation:++F}}}function L(e,t,n=N){return{output:k(n.output,e.history,t),status:e.status,error:null,updatedAt:e.updatedAt,version:n.version+1,lifecycleVersion:n.lifecycleVersion}}function R(e,t){return e===null?t:t===null||Date.parse(e)>=Date.parse(t)?e:t}function z(e,t){return{summary:e,output:t.output,status:t.version>0?t.status:e?.status??t.status,error:t.error,hasRunningSubprocess:e?.hasRunningSubprocess??!1,updatedAt:R(e?.updatedAt??null,t.updatedAt),version:t.version,lifecycleVersion:t.lifecycleVersion}}function B(e,t,n=_){switch(t.type){case`snapshot`:return{...L(t.snapshot,n,e),lifecycleVersion:e.version===0?e.lifecycleVersion:e.lifecycleVersion+1};case`restarted`:return{...L(t.snapshot,n,e),lifecycleVersion:e.lifecycleVersion+1};case`output`:return{...e,output:O(e.output,t.data,n),status:e.status===`closed`?`running`:e.status,error:null,version:e.version+1};case`cleared`:return{...e,output:k(e.output,``,n),error:null,version:e.version+1};case`exited`:return{...e,status:`exited`,error:null,version:e.version+1};case`closed`:return{...e,status:`closed`,error:null,version:e.version+1};case`error`:return{...e,status:`error`,error:t.message,version:e.version+1};case`activity`:return e}}function V(e,t){return t.type===`snapshot`?t.terminals:t.type===`remove`?e.filter(e=>e.threadId!==t.threadId||e.terminalId!==t.terminalId):[...e.filter(e=>e.threadId!==t.terminal.threadId||e.terminalId!==t.terminal.terminalId),t.terminal]}function H(e){let r=c(),i=c(),o=({environmentId:e,input:t})=>JSON.stringify([e,t.threadId]),f=({environmentId:e,input:t})=>JSON.stringify([e,t.threadId,t.terminalId??null]),p={mode:`serial`,key:o};return{observe:l(e,{label:`environment-data:terminal:observe`,subscribe:e=>t(()=>u(a.terminalObserve,e).pipe(n(I,B)))}),attach:l(e,{label:`environment-data:terminal:attach`,subscribe:e=>t(()=>u(a.terminalAttach,e).pipe(n(I,B)))}),events:s(e,{label:`environment-data:terminal:events`,tag:a.subscribeTerminalEvents}),metadata:l(e,{label:`environment-data:terminal:metadata`,subscribe:e=>u(a.subscribeTerminalMetadata,{}).pipe(n(()=>[],V))}),open:d(e,{label:`environment-data:terminal:open`,tag:a.terminalOpen,scheduler:r,concurrency:p}),write:d(e,{label:`environment-data:terminal:write`,tag:a.terminalWrite}),resize:d(e,{label:`environment-data:terminal:resize`,tag:a.terminalResize,scheduler:i,concurrency:{mode:`latest`,key:f}}),clear:d(e,{label:`environment-data:terminal:clear`,tag:a.terminalClear,scheduler:r,concurrency:p}),restart:d(e,{label:`environment-data:terminal:restart`,tag:a.terminalRestart,scheduler:r,concurrency:p}),close:d(e,{label:`environment-data:terminal:close`,tag:a.terminalClose,scheduler:r,concurrency:p})}}var U=H(f),W=Object.freeze([]),G=new WeakMap,K=new WeakMap,q=new WeakMap;function J(e,t){let n=K.get(e),r=n?.get(t);if(r)return r;let i={target:{environmentId:t,threadId:o.make(e.threadId),terminalId:e.terminalId},state:z(e,N)};return n||(n=new Map,K.set(e,n)),n.set(t,i),i}function Y(e){let t=G.get(e);if(!t){let n=new Intl.Collator(void 0,{numeric:!0}).compare,r=e.toSorted((e,t)=>n(e.terminalId,t.terminalId)),i=new Map;for(let e of r){let t=i.get(e.threadId);t?t.push(e):i.set(e.threadId,[e])}t={all:r,byThreadId:i,views:new Map},G.set(e,t)}return t}function X(e,t,n){if(t===null||e===null||e.length===0)return W;let r=Y(e),i=r.views.get(t),a=i?.get(n);if(a)return a;let o=n===null?r.all:r.byThreadId.get(n);if(!o||o.length===0)return W;let s=o[0],c=n===null?`all`:`thread`,l=q.get(s),u=l?.get(t),d=u?.[c]?.deref(),f=d?.length===o.length&&d.every((e,t)=>e.state.summary===o[t])?d:o.map(e=>J(e,t));return l||(l=new Map,q.set(s,l)),f!==d&&l.set(t,{...u,[c]:new WeakRef(f)}),i||(i=new Map,r.views.set(t,i)),i.set(n,f),f}function Z(t){let n=(0,h.c)(15),i=p(t.environmentId,r),a=p(t.environmentId,e),o;n[0]!==a||n[1]!==i||n[2]!==t.environmentId||n[3]!==t.terminal?(o=t.environmentId!==null&&t.terminal!==null?a?U.attach({environmentId:t.environmentId,input:t.terminal}):i?U.observe({environmentId:t.environmentId,input:{threadId:t.terminal.threadId,terminalId:t.terminal.terminalId}}):null:null,n[0]=a,n[1]=i,n[2]=t.environmentId,n[3]=t.terminal,n[4]=o):o=n[4];let s=m(o),c;n[5]!==i||n[6]!==t.environmentId?(c=t.environmentId===null||!i?null:U.metadata({environmentId:t.environmentId,input:null}),n[5]=i,n[6]=t.environmentId,n[7]=c):c=n[7];let l=m(c),u;bb0:{if(t.environmentId===null||t.terminal===null){u=P;break bb0}let e;n[8]!==s.data||n[9]!==t.terminal||n[10]!==l.data?(e=z((l.data===null?null:Y(l.data).byThreadId.get(t.terminal.threadId)?.find(e=>e.terminalId===t.terminal?.terminalId))??null,s.data??N),n[8]=s.data,n[9]=t.terminal,n[10]=l.data,n[11]=e):e=n[11];let r=e,i;n[12]!==s.error||n[13]!==r?(i=s.error===null?r:{...r,error:s.error,status:`error`},n[12]=s.error,n[13]=r,n[14]=i):i=n[14],u=i}return u}function Q(e){let t=(0,h.c)(8),n=p(e.environmentId,r),i;t[0]!==n||t[1]!==e.environmentId?(i=e.environmentId===null||!n?null:U.metadata({environmentId:e.environmentId,input:null}),t[0]=n,t[1]=e.environmentId,t[2]=i):i=t[2];let a=m(i),o;return t[3]!==e.environmentId||t[4]!==e.threadId||t[5]!==a.data||t[6]!==a.error?(o=a.data===null||a.error!==null?null:X(a.data,e.environmentId,e.threadId),t[3]=e.environmentId,t[4]=e.threadId,t[5]=a.data,t[6]=a.error,t[7]=o):o=t[7],o}function $(e){let t=(0,h.c)(4),n=Q(e),r;t[0]===n?r=t[1]:(r=n??[],t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=M(r),t[2]=r,t[3]=i),i}export{g as a,U as i,Q as n,j as o,$ as r,Z as t};
2
- //# sourceMappingURL=terminalSessions-DK9WKgga.js.map
1
+ import{Oc as e,Zv as t,dE as n,o_ as r,rv as i,s_ as a,tv as o}from"./utils-BSj_I6H5.js";import{N as s,O as c,P as l,et as u,j as d}from"./runtime-CUfZ5Phy.js";import{t as f}from"./runtime-CKyYqaHd.js";import{i as p}from"./session-kQcn2Ab9.js";import{n as m}from"./query-BUdsNuE-.js";var h=n(),g=Object.freeze({generation:-1,resetVersion:-1,offset:0}),_=524288,v=16384,y=1024,b=new TextEncoder,x=new TextDecoder(`utf-8`,{ignoreBOM:!0}),S=Object.freeze({generation:0,chunks:Object.freeze([]),retainedBytes:0,resetVersion:0,nextOffset:0});function C(e,t){if(e.length===0)return[];let n=b.encode(e);if(n.byteLength<=t)return[{data:e,byteLength:n.byteLength}];let r=[],i=0;for(;i<n.byteLength;){let e=Math.min(i+t,n.byteLength);for(;e<n.byteLength&&((n[e]??0)&192)==128;)--e;if(e===i)for(e=Math.min(i+t,n.byteLength);e<n.byteLength&&((n[e]??0)&192)==128;)e+=1;let a=n.subarray(i,e);r.push({data:x.decode(a),byteLength:a.byteLength}),i=e}return r}function w(e,t){if(t<=0)return``;let n=b.encode(e);if(n.byteLength<=t)return e;let r=n.byteLength-t;for(;r<n.length;){let e=n[r];if(e===void 0||(e&192)!=128)break;r+=1}return x.decode(n.subarray(r))}function T(e,t,n=v){let r=C(e,n),i=0,a=t;return{chunks:r.map(e=>{i+=e.byteLength;let t=a;return a+=e.data.length,{startOffset:t,data:e.data,byteLength:e.byteLength}}),nextOffset:a,byteLength:i}}function E(e){let t=[];for(let n of e){let e=t.at(-1);e!==void 0&&e.startOffset+e.data.length===n.startOffset&&e.byteLength+n.byteLength<=v?t[t.length-1]={startOffset:e.startOffset,data:`${e.data}${n.data}`,byteLength:e.byteLength+n.byteLength}:t.push(n)}return t}function D(e,t){let n=0,r=0;for(;r<t&&n<e.data.length;){let t=e.data.codePointAt(n);r+=t<=127?1:t<=2047?2:t<=65535?3:4,n+=t<=65535?1:2}return{...e,startOffset:e.startOffset+n,data:e.data.slice(n),byteLength:e.byteLength-r}}function O(e,t,n){if(t.length===0)return e;if(n<=0)return{generation:e.generation,chunks:[],retainedBytes:0,resetVersion:e.resetVersion+1,nextOffset:e.nextOffset+t.length};let r=T(t,e.nextOffset,Math.min(v,Math.max(1,n))),i=[...e.chunks,...r.chunks],a=e.retainedBytes+r.byteLength,o=0;for(;a>n&&o<i.length;){let e=i[o],t=a-n;if(t<e.byteLength){let n=D(e,t);a-=e.byteLength-n.byteLength,n.byteLength>0?i[o]=n:o+=1;break}a-=e.byteLength,o+=1}let s=o===0?i:i.slice(o);if(s.length>y){s=E(s);let e=s.length-y;if(e>0){for(let t of s.slice(0,e))a-=t.byteLength;s=s.slice(e)}}return{generation:e.generation,chunks:s,retainedBytes:a,resetVersion:e.resetVersion,nextOffset:r.nextOffset}}function k(e,t,n){let r=T(w(t,n),0,Math.min(v,Math.max(1,n)));return{generation:e.generation,chunks:r.chunks,retainedBytes:r.byteLength,resetVersion:e.resetVersion+1,nextOffset:r.nextOffset}}function A(e){return e.chunks.map(e=>e.data).join(``)}function j(e,t){let n={generation:e.generation,resetVersion:e.resetVersion,offset:e.nextOffset},r=e.chunks[0];if(t.generation!==e.generation||t.resetVersion!==e.resetVersion||t.offset<(r?.startOffset??e.nextOffset))return{type:`reset`,data:A(e),cursor:n};let i=e.chunks.filter(e=>e.startOffset+e.data.length>t.offset);return i.length===0?{type:`none`,cursor:n}:{type:`append`,data:i.map(e=>e.data.slice(Math.max(0,t.offset-e.startOffset))).join(``),cursor:n}}function M(e){return e.filter(e=>e.state.hasRunningSubprocess).map(e=>e.target.terminalId)}var N=Object.freeze({output:S,status:`closed`,error:null,updatedAt:null,version:0,lifecycleVersion:0}),P=Object.freeze({summary:null,output:S,status:`closed`,error:null,hasRunningSubprocess:!1,updatedAt:null,version:0,lifecycleVersion:0}),F=0;function I(){return{...N,output:{...S,generation:++F}}}function L(e,t,n=N){return{output:k(n.output,e.history,t),status:e.status,error:null,updatedAt:e.updatedAt,version:n.version+1,lifecycleVersion:n.lifecycleVersion}}function R(e,t){return e===null?t:t===null||Date.parse(e)>=Date.parse(t)?e:t}function z(e,t){return{summary:e,output:t.output,status:t.version>0?t.status:e?.status??t.status,error:t.error,hasRunningSubprocess:e?.hasRunningSubprocess??!1,updatedAt:R(e?.updatedAt??null,t.updatedAt),version:t.version,lifecycleVersion:t.lifecycleVersion}}function B(e,t,n=_){switch(t.type){case`snapshot`:return{...L(t.snapshot,n,e),lifecycleVersion:e.version===0?e.lifecycleVersion:e.lifecycleVersion+1};case`restarted`:return{...L(t.snapshot,n,e),lifecycleVersion:e.lifecycleVersion+1};case`output`:return{...e,output:O(e.output,t.data,n),status:e.status===`closed`?`running`:e.status,error:null,version:e.version+1};case`cleared`:return{...e,output:k(e.output,``,n),error:null,version:e.version+1};case`exited`:return{...e,status:`exited`,error:null,version:e.version+1};case`closed`:return{...e,status:`closed`,error:null,version:e.version+1};case`error`:return{...e,status:`error`,error:t.message,version:e.version+1};case`activity`:return e}}function V(e,t){return t.type===`snapshot`?t.terminals:t.type===`remove`?e.filter(e=>e.threadId!==t.threadId||e.terminalId!==t.terminalId):[...e.filter(e=>e.threadId!==t.terminal.threadId||e.terminalId!==t.terminal.terminalId),t.terminal]}function H(t){let n=c(),r=c(),a=({environmentId:e,input:t})=>JSON.stringify([e,t.threadId]),f=({environmentId:e,input:t})=>JSON.stringify([e,t.threadId,t.terminalId??null]),p={mode:`serial`,key:a};return{observe:l(t,{label:`environment-data:terminal:observe`,subscribe:t=>i(()=>u(e.terminalObserve,t).pipe(o(I,B)))}),attach:l(t,{label:`environment-data:terminal:attach`,subscribe:t=>i(()=>u(e.terminalAttach,t).pipe(o(I,B)))}),events:s(t,{label:`environment-data:terminal:events`,tag:e.subscribeTerminalEvents}),metadata:l(t,{label:`environment-data:terminal:metadata`,subscribe:t=>u(e.subscribeTerminalMetadata,{}).pipe(o(()=>[],V))}),open:d(t,{label:`environment-data:terminal:open`,tag:e.terminalOpen,scheduler:n,concurrency:p}),write:d(t,{label:`environment-data:terminal:write`,tag:e.terminalWrite}),resize:d(t,{label:`environment-data:terminal:resize`,tag:e.terminalResize,scheduler:r,concurrency:{mode:`latest`,key:f}}),clear:d(t,{label:`environment-data:terminal:clear`,tag:e.terminalClear,scheduler:n,concurrency:p}),restart:d(t,{label:`environment-data:terminal:restart`,tag:e.terminalRestart,scheduler:n,concurrency:p}),close:d(t,{label:`environment-data:terminal:close`,tag:e.terminalClose,scheduler:n,concurrency:p})}}var U=H(f),W=Object.freeze([]),G=new WeakMap,K=new WeakMap,q=new WeakMap;function J(e,n){let r=K.get(e),i=r?.get(n);if(i)return i;let a={target:{environmentId:n,threadId:t.make(e.threadId),terminalId:e.terminalId},state:z(e,N)};return r||(r=new Map,K.set(e,r)),r.set(n,a),a}function Y(e){let t=G.get(e);if(!t){let n=new Intl.Collator(void 0,{numeric:!0}).compare,r=e.toSorted((e,t)=>n(e.terminalId,t.terminalId)),i=new Map;for(let e of r){let t=i.get(e.threadId);t?t.push(e):i.set(e.threadId,[e])}t={all:r,byThreadId:i,views:new Map},G.set(e,t)}return t}function X(e,t,n){if(t===null||e===null||e.length===0)return W;let r=Y(e),i=r.views.get(t),a=i?.get(n);if(a)return a;let o=n===null?r.all:r.byThreadId.get(n);if(!o||o.length===0)return W;let s=o[0],c=n===null?`all`:`thread`,l=q.get(s),u=l?.get(t),d=u?.[c]?.deref(),f=d?.length===o.length&&d.every((e,t)=>e.state.summary===o[t])?d:o.map(e=>J(e,t));return l||(l=new Map,q.set(s,l)),f!==d&&l.set(t,{...u,[c]:new WeakRef(f)}),i||(i=new Map,r.views.set(t,i)),i.set(n,f),f}function Z(e){let t=(0,h.c)(15),n=p(e.environmentId,a),i=p(e.environmentId,r),o;t[0]!==i||t[1]!==n||t[2]!==e.environmentId||t[3]!==e.terminal?(o=e.environmentId!==null&&e.terminal!==null?i?U.attach({environmentId:e.environmentId,input:e.terminal}):n?U.observe({environmentId:e.environmentId,input:{threadId:e.terminal.threadId,terminalId:e.terminal.terminalId}}):null:null,t[0]=i,t[1]=n,t[2]=e.environmentId,t[3]=e.terminal,t[4]=o):o=t[4];let s=m(o),c;t[5]!==n||t[6]!==e.environmentId?(c=e.environmentId===null||!n?null:U.metadata({environmentId:e.environmentId,input:null}),t[5]=n,t[6]=e.environmentId,t[7]=c):c=t[7];let l=m(c),u;bb0:{if(e.environmentId===null||e.terminal===null){u=P;break bb0}let n;t[8]!==s.data||t[9]!==e.terminal||t[10]!==l.data?(n=z((l.data===null?null:Y(l.data).byThreadId.get(e.terminal.threadId)?.find(t=>t.terminalId===e.terminal?.terminalId))??null,s.data??N),t[8]=s.data,t[9]=e.terminal,t[10]=l.data,t[11]=n):n=t[11];let r=n,i;t[12]!==s.error||t[13]!==r?(i=s.error===null?r:{...r,error:s.error,status:`error`},t[12]=s.error,t[13]=r,t[14]=i):i=t[14],u=i}return u}function Q(e){let t=(0,h.c)(8),n=p(e.environmentId,a),r;t[0]!==n||t[1]!==e.environmentId?(r=e.environmentId===null||!n?null:U.metadata({environmentId:e.environmentId,input:null}),t[0]=n,t[1]=e.environmentId,t[2]=r):r=t[2];let i=m(r),o;return t[3]!==e.environmentId||t[4]!==e.threadId||t[5]!==i.data||t[6]!==i.error?(o=i.data===null||i.error!==null?null:X(i.data,e.environmentId,e.threadId),t[3]=e.environmentId,t[4]=e.threadId,t[5]=i.data,t[6]=i.error,t[7]=o):o=t[7],o}function $(e){let t=(0,h.c)(4),n=Q(e),r;t[0]===n?r=t[1]:(r=n??[],t[0]=n,t[1]=r);let i;return t[2]===r?i=t[3]:(i=M(r),t[2]=r,t[3]=i),i}export{g as a,U as i,Q as n,j as o,$ as r,Z as t};
2
+ //# sourceMappingURL=terminalSessions-dTMJKZUr.js.map
@@ -0,0 +1,2 @@
1
+ import{n as e}from"./rolldown-runtime-Dd_uD5pT.js";import{t}from"./createLucideIcon-CacG5mZC.js";var n=e({__iconNode:()=>r,default:()=>i}),r=[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M10 12H3`,key:`1ulcyk`}],[`path`,{d:`M10 19H3`,key:`108z41`}],[`circle`,{cx:`17`,cy:`15`,r:`3`,key:`1upz2a`}],[`path`,{d:`m21 19-1.9-1.9`,key:`dwi7p8`}]],i=t(`text-search`,r);export{n,i as t};
2
+ //# sourceMappingURL=text-search-BsqmpFYh.js.map
@@ -1,2 +1,2 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{fo as t,ha as n,jx as r,t as i}from"./utils-BxISc9RR.js";import{t as a}from"./FieldControl-CxuWXcJE.js";var o=r(),s=e(n(),1);function c(e){let n=(0,o.c)(15),r,c,l,u;n[0]===e?(r=n[1],c=n[2],l=n[3],u=n[4]):({className:r,size:l,unstyled:u,...c}=e,n[0]=e,n[1]=r,n[2]=c,n[3]=l,n[4]=u);let d=l===void 0?`default`:l,f=u!==void 0&&u,p;n[5]!==r||n[6]!==f?(p=i(!f&&`relative inline-flex w-full rounded-lg border border-input bg-background not-dark:bg-clip-padding text-base text-foreground shadow-xs/5 ring-ring/24 transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] has-focus-visible:has-aria-invalid:border-destructive/64 has-focus-visible:has-aria-invalid:ring-destructive/16 has-aria-invalid:border-destructive/36 has-focus-visible:border-ring has-disabled:opacity-64 has-[:disabled,:focus-visible,[aria-invalid]]:shadow-none has-focus-visible:ring-[3px] has-focus-visible:ring-inset not-has-disabled:has-not-focus-visible:not-has-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] sm:text-sm dark:bg-input/32 dark:has-aria-invalid:ring-destructive/24 dark:not-has-disabled:has-not-focus-visible:not-has-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)]`,r)||void 0,n[5]=r,n[6]=f,n[7]=p):p=n[7];let m;n[8]!==c||n[9]!==d?(m=(0,s.jsx)(a,{render:e=>(0,s.jsx)(`textarea`,{className:i(`field-sizing-content min-h-17.5 max-h-64 w-full rounded-[inherit] px-[calc(--spacing(3)-1px)] py-[calc(--spacing(1.5)-1px)] outline-none wrap-anywhere max-sm:min-h-20.5`,d===`sm`&&`min-h-16.5 px-[calc(--spacing(2.5)-1px)] py-[calc(--spacing(1)-1px)] max-sm:min-h-19.5`,d===`lg`&&`min-h-18.5 py-[calc(--spacing(2)-1px)] max-sm:min-h-21.5`),"data-slot":`textarea`,...t(e,c)})}),n[8]=c,n[9]=d,n[10]=m):m=n[10];let h;return n[11]!==d||n[12]!==p||n[13]!==m?(h=(0,s.jsx)(`span`,{className:p,"data-size":d,"data-slot":`textarea-control`,children:m}),n[11]=d,n[12]=p,n[13]=m,n[14]=h):h=n[14],h}export{c as t};
2
- //# sourceMappingURL=textarea-CYXHTTG6.js.map
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{HT as t,dE as n,do as r,t as i}from"./utils-BSj_I6H5.js";import{t as a}from"./FieldControl-BTrrbQ3K.js";var o=n(),s=e(t(),1);function c(e){let t=(0,o.c)(15),n,c,l,u;t[0]===e?(n=t[1],c=t[2],l=t[3],u=t[4]):({className:n,size:l,unstyled:u,...c}=e,t[0]=e,t[1]=n,t[2]=c,t[3]=l,t[4]=u);let d=l===void 0?`default`:l,f=u!==void 0&&u,p;t[5]!==n||t[6]!==f?(p=i(!f&&`relative inline-flex w-full rounded-lg border border-input bg-background not-dark:bg-clip-padding text-base text-foreground shadow-xs/5 ring-ring/24 transition-shadow before:pointer-events-none before:absolute before:inset-0 before:rounded-[calc(var(--radius-lg)-1px)] has-focus-visible:has-aria-invalid:border-destructive/64 has-focus-visible:has-aria-invalid:ring-destructive/16 has-aria-invalid:border-destructive/36 has-focus-visible:border-ring has-disabled:opacity-64 has-[:disabled,:focus-visible,[aria-invalid]]:shadow-none has-focus-visible:ring-[3px] has-focus-visible:ring-inset not-has-disabled:has-not-focus-visible:not-has-aria-invalid:before:shadow-[0_1px_--theme(--color-black/4%)] sm:text-sm dark:bg-input/32 dark:has-aria-invalid:ring-destructive/24 dark:not-has-disabled:has-not-focus-visible:not-has-aria-invalid:before:shadow-[0_-1px_--theme(--color-white/6%)]`,n)||void 0,t[5]=n,t[6]=f,t[7]=p):p=t[7];let m;t[8]!==c||t[9]!==d?(m=(0,s.jsx)(a,{render:e=>(0,s.jsx)(`textarea`,{className:i(`field-sizing-content min-h-17.5 max-h-64 w-full rounded-[inherit] px-[calc(--spacing(3)-1px)] py-[calc(--spacing(1.5)-1px)] outline-none wrap-anywhere max-sm:min-h-20.5`,d===`sm`&&`min-h-16.5 px-[calc(--spacing(2.5)-1px)] py-[calc(--spacing(1)-1px)] max-sm:min-h-19.5`,d===`lg`&&`min-h-18.5 py-[calc(--spacing(2)-1px)] max-sm:min-h-21.5`),"data-slot":`textarea`,...r(e,c)})}),t[8]=c,t[9]=d,t[10]=m):m=t[10];let h;return t[11]!==d||t[12]!==p||t[13]!==m?(h=(0,s.jsx)(`span`,{className:p,"data-size":d,"data-slot":`textarea-control`,children:m}),t[11]=d,t[12]=p,t[13]=m,t[14]=h):h=t[14],h}export{c as t};
2
+ //# sourceMappingURL=textarea-DIyHbcIw.js.map
@@ -1,5 +1,5 @@
1
- import{Gm as e,Nh as t,Xm as n,_x as r,ch as i,ih as a}from"./utils-BxISc9RR.js";var o=(e,t)=>{if(typeof e==`number`){if(t===3)return{mode:`rgb`,r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:`rgb`,r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:`rgb`,r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:`rgb`,r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},s={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},c=e=>o(s[e.toLowerCase()],6),l=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,u=e=>{let t;return(t=e.match(l))?o(parseInt(t[1],16),t[1].length):void 0},d=`([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)`;`${d}`;var f=`${d}%`;`${d}`;var p=`(?:${d}%|${d})`,m=`(?:${d}%|${d}|none)`,h=`(?:${d}(deg|grad|rad|turn)|${d})`;`${d}${d}`;var g=`\\s*,\\s*`;RegExp(`^`+m+`$`);var ee=RegExp(`^rgba?\\(\\s*${d}${g}${d}${g}${d}\\s*(?:,\\s*${p}\\s*)?\\)$`),te=RegExp(`^rgba?\\(\\s*${f}${g}${f}${g}${f}\\s*(?:,\\s*${p}\\s*)?\\)$`),ne=e=>{let t={mode:`rgb`},n;if(n=e.match(ee))n[1]!==void 0&&(t.r=n[1]/255),n[2]!==void 0&&(t.g=n[2]/255),n[3]!==void 0&&(t.b=n[3]/255);else if(n=e.match(te))n[1]!==void 0&&(t.r=n[1]/100),n[2]!==void 0&&(t.g=n[2]/100),n[3]!==void 0&&(t.b=n[3]/100);else return;return n[4]===void 0?n[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+n[5]))):t.alpha=Math.max(0,Math.min(1,n[4]/100)),t},re=(e,t)=>e===void 0?void 0:typeof e==`object`?e.mode===void 0?t?{...e,mode:t}:void 0:e:ve(e),ie=(e=`rgb`)=>t=>(t=re(t,e))===void 0?void 0:t.mode===e?t:_[t.mode][e]?_[t.mode][e](t):e===`rgb`?_[t.mode].rgb(t):_.rgb[e](_[t.mode].rgb(t)),_={},ae={},v=[],oe={},se=e=>e,y=e=>(_[e.mode]={..._[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{_[t]||(_[t]={}),_[t][e.mode]=e.fromMode[t]}),e.ranges||={},e.difference||={},e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]==`function`&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=se)}),ae[e.mode]=e,(e.parse||[]).forEach(t=>{le(t,e.mode)}),ie(e.mode)),ce=e=>ae[e],le=(e,t)=>{if(typeof e==`string`){if(!t)throw Error(`'mode' required when 'parser' is a string`);oe[e]=t}else typeof e==`function`&&v.indexOf(e)<0&&v.push(e)},ue=/[^\x00-\x7F]|[a-zA-Z_]/,de=/[^\x00-\x7F]|[-\w]/,b={Function:`function`,Ident:`ident`,Number:`number`,Percentage:`percentage`,ParenClose:`)`,None:`none`,Hue:`hue`,Alpha:`alpha`},x=0;function S(e){let t=e[x],n=e[x+1];return t===`-`||t===`+`?/\d/.test(n)||n===`.`&&/\d/.test(e[x+2]):t===`.`?/\d/.test(n):/\d/.test(t)}function C(e){if(x>=e.length)return!1;let t=e[x];if(ue.test(t))return!0;if(t===`-`){if(e.length-x<2)return!1;let t=e[x+1];return!!(t===`-`||ue.test(t))}return!1}var fe={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function w(e){let t=``;if((e[x]===`-`||e[x]===`+`)&&(t+=e[x++]),t+=T(e),e[x]===`.`&&/\d/.test(e[x+1])&&(t+=e[x++]+T(e)),(e[x]===`e`||e[x]===`E`)&&((e[x+1]===`-`||e[x+1]===`+`)&&/\d/.test(e[x+2])?t+=e[x++]+e[x++]+T(e):/\d/.test(e[x+1])&&(t+=e[x++]+T(e))),C(e)){let n=E(e);return n===`deg`||n===`rad`||n===`turn`||n===`grad`?{type:b.Hue,value:t*fe[n]}:void 0}return e[x]===`%`?(x++,{type:b.Percentage,value:+t}):{type:b.Number,value:+t}}function T(e){let t=``;for(;/\d/.test(e[x]);)t+=e[x++];return t}function E(e){let t=``;for(;x<e.length&&de.test(e[x]);)t+=e[x++];return t}function pe(e){let t=E(e);return e[x]===`(`?(x++,{type:b.Function,value:t}):t===`none`?{type:b.None,value:void 0}:{type:b.Ident,value:t}}function me(e=``){let t=e.trim(),n=[],r;for(x=0;x<t.length;){if(r=t[x++],r===`
1
+ import{Gy as e,by as t,cy as n,gy as r,kT as i,ry as a}from"./utils-BSj_I6H5.js";var o=(e,t)=>{if(typeof e==`number`){if(t===3)return{mode:`rgb`,r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:`rgb`,r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:`rgb`,r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:`rgb`,r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},s={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},c=e=>o(s[e.toLowerCase()],6),l=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,u=e=>{let t;return(t=e.match(l))?o(parseInt(t[1],16),t[1].length):void 0},d=`([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)`;`${d}`;var f=`${d}%`;`${d}`;var p=`(?:${d}%|${d})`,m=`(?:${d}%|${d}|none)`,h=`(?:${d}(deg|grad|rad|turn)|${d})`;`${d}${d}`;var g=`\\s*,\\s*`;RegExp(`^`+m+`$`);var ee=RegExp(`^rgba?\\(\\s*${d}${g}${d}${g}${d}\\s*(?:,\\s*${p}\\s*)?\\)$`),te=RegExp(`^rgba?\\(\\s*${f}${g}${f}${g}${f}\\s*(?:,\\s*${p}\\s*)?\\)$`),ne=e=>{let t={mode:`rgb`},n;if(n=e.match(ee))n[1]!==void 0&&(t.r=n[1]/255),n[2]!==void 0&&(t.g=n[2]/255),n[3]!==void 0&&(t.b=n[3]/255);else if(n=e.match(te))n[1]!==void 0&&(t.r=n[1]/100),n[2]!==void 0&&(t.g=n[2]/100),n[3]!==void 0&&(t.b=n[3]/100);else return;return n[4]===void 0?n[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+n[5]))):t.alpha=Math.max(0,Math.min(1,n[4]/100)),t},re=(e,t)=>e===void 0?void 0:typeof e==`object`?e.mode===void 0?t?{...e,mode:t}:void 0:e:ve(e),ie=(e=`rgb`)=>t=>(t=re(t,e))===void 0?void 0:t.mode===e?t:_[t.mode][e]?_[t.mode][e](t):e===`rgb`?_[t.mode].rgb(t):_.rgb[e](_[t.mode].rgb(t)),_={},ae={},v=[],oe={},se=e=>e,y=e=>(_[e.mode]={..._[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{_[t]||(_[t]={}),_[t][e.mode]=e.fromMode[t]}),e.ranges||={},e.difference||={},e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]==`function`&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=se)}),ae[e.mode]=e,(e.parse||[]).forEach(t=>{le(t,e.mode)}),ie(e.mode)),ce=e=>ae[e],le=(e,t)=>{if(typeof e==`string`){if(!t)throw Error(`'mode' required when 'parser' is a string`);oe[e]=t}else typeof e==`function`&&v.indexOf(e)<0&&v.push(e)},ue=/[^\x00-\x7F]|[a-zA-Z_]/,de=/[^\x00-\x7F]|[-\w]/,b={Function:`function`,Ident:`ident`,Number:`number`,Percentage:`percentage`,ParenClose:`)`,None:`none`,Hue:`hue`,Alpha:`alpha`},x=0;function S(e){let t=e[x],n=e[x+1];return t===`-`||t===`+`?/\d/.test(n)||n===`.`&&/\d/.test(e[x+2]):t===`.`?/\d/.test(n):/\d/.test(t)}function C(e){if(x>=e.length)return!1;let t=e[x];if(ue.test(t))return!0;if(t===`-`){if(e.length-x<2)return!1;let t=e[x+1];return!!(t===`-`||ue.test(t))}return!1}var fe={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function w(e){let t=``;if((e[x]===`-`||e[x]===`+`)&&(t+=e[x++]),t+=T(e),e[x]===`.`&&/\d/.test(e[x+1])&&(t+=e[x++]+T(e)),(e[x]===`e`||e[x]===`E`)&&((e[x+1]===`-`||e[x+1]===`+`)&&/\d/.test(e[x+2])?t+=e[x++]+e[x++]+T(e):/\d/.test(e[x+1])&&(t+=e[x++]+T(e))),C(e)){let n=E(e);return n===`deg`||n===`rad`||n===`turn`||n===`grad`?{type:b.Hue,value:t*fe[n]}:void 0}return e[x]===`%`?(x++,{type:b.Percentage,value:+t}):{type:b.Number,value:+t}}function T(e){let t=``;for(;/\d/.test(e[x]);)t+=e[x++];return t}function E(e){let t=``;for(;x<e.length&&de.test(e[x]);)t+=e[x++];return t}function pe(e){let t=E(e);return e[x]===`(`?(x++,{type:b.Function,value:t}):t===`none`?{type:b.None,value:void 0}:{type:b.Ident,value:t}}function me(e=``){let t=e.trim(),n=[],r;for(x=0;x<t.length;){if(r=t[x++],r===`
2
2
  `||r===` `||r===` `){for(;x<t.length&&(t[x]===`
3
3
  `||t[x]===` `||t[x]===` `);)x++;continue}if(r===`,`)return;if(r===`)`){n.push({type:b.ParenClose});continue}if(r===`+`){if(x--,S(t)){n.push(w(t));continue}return}if(r===`-`){if(x--,S(t)){n.push(w(t));continue}if(C(t)){n.push({type:b.Ident,value:E(t)});continue}return}if(r===`.`){if(x--,S(t)){n.push(w(t));continue}return}if(r===`/`){for(;x<t.length&&(t[x]===`
4
- `||t[x]===` `||t[x]===` `);)x++;let e;if(S(t)&&(e=w(t),e.type!==b.Hue)){n.push({type:b.Alpha,value:e});continue}if(C(t)&&E(t)===`none`){n.push({type:b.Alpha,value:{type:b.None,value:void 0}});continue}return}if(/\d/.test(r)){x--,n.push(w(t));continue}if(ue.test(r)){x--,n.push(pe(t));continue}return}return n}function he(e){e._i=0;let t=e[e._i++];if(!t||t.type!==b.Function||t.value!==`color`||(t=e[e._i++],t.type!==b.Ident))return;let n=oe[t.value];if(!n)return;let r={mode:n},i=ge(e,!1);if(!i)return;let a=ce(n).channels;for(let e=0,t,n;e<a.length;e++)t=i[e],n=a[e],t.type!==b.None&&(r[n]=t.type===b.Number?t.value:t.value/100,n===`alpha`&&(r[n]=Math.max(0,Math.min(1,r[n]))));return r}function ge(e,t){let n=[],r;for(;e._i<e.length;){if(r=e[e._i++],r.type===b.None||r.type===b.Number||r.type===b.Alpha||r.type===b.Percentage||t&&r.type===b.Hue){n.push(r);continue}if(r.type===b.ParenClose){if(e._i<e.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==b.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:b.None,value:void 0}),n.every(e=>e.type!==b.Alpha)?n:void 0}}function _e(e,t){e._i=0;let n=e[e._i++];if(!n||n.type!==b.Function)return;let r=ge(e,t);if(r)return r.unshift(n.value),r}var ve=e=>{if(typeof e!=`string`)return;let t=me(e),n=t?_e(t,!0):void 0,r,i=0,a=v.length;for(;i<a;)if((r=v[i++](e,n))!==void 0)return r;return t?he(t):void 0};function ye(e,t){if(!t||t[0]!==`rgb`&&t[0]!==`rgba`)return;let n={mode:`rgb`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.r=r.type===b.Number?r.value/255:r.value/100),i.type!==b.None&&(n.g=i.type===b.Number?i.value/255:i.value/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value/255:a.value/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var be=e=>e===`transparent`?{mode:`rgb`,r:0,g:0,b:0,alpha:0}:void 0,xe=(e,t,n)=>e+n*(t-e),Se=e=>{let t=[];for(let n=0;n<e.length-1;n++){let r=e[n],i=e[n+1];r===void 0&&i===void 0?t.push(void 0):r!==void 0&&i!==void 0?t.push([r,i]):t.push(r===void 0?[i,i]:[r,r])}return t},D=(e=>t=>{let n=Se(t);return t=>{let r=t*n.length,i=t>=1?n.length-1:Math.max(Math.floor(r),0),a=n[i];return a===void 0?void 0:e(a[0],a[1],r-i)}})(xe),O=e=>{let t=!1,n=e.map(e=>e===void 0?1:(t=!0,e));return t?n:e},k={mode:`rgb`,channels:[`r`,`g`,`b`,`alpha`],parse:[ye,u,ne,c,be,`srgb`],serialize:`srgb`,interpolate:{r:D,g:D,b:D,alpha:{use:D,fixup:O}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Ce=(e=0)=>Math.abs(e)**(563/256)*Math.sign(e),we=e=>{let t=Ce(e.r),n=Ce(e.g),r=Ce(e.b),i={mode:`xyz65`,x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Te=e=>Math.abs(e)**(256/563)*Math.sign(e),Ee=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`a98`,r:Te(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*n),g:Te(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*n),b:Te(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},De=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*((t+.055)/1.055)**2.4},A=({r:e,g:t,b:n,alpha:r})=>{let i={mode:`lrgb`,r:De(e),g:De(t),b:De(n)};return r!==void 0&&(i.alpha=r),i},Oe=e=>{let{r:t,g:n,b:r,alpha:i}=A(e),a={mode:`xyz65`,x:.4123907992659593*t+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(a.alpha=i),a},ke=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*t**(1/2.4)-.055):e*12.92},Ae=({r:e,g:t,b:n,alpha:r},i=`rgb`)=>{let a={mode:i,r:ke(e),g:ke(t),b:ke(n)};return r!==void 0&&(a.alpha=r),a},j=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Ae({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i},je={...k,mode:`a98`,parse:[`a98-rgb`],serialize:`a98-rgb`,fromMode:{rgb:e=>Ee(Oe(e)),xyz65:Ee},toMode:{rgb:e=>j(we(e)),xyz65:we}},M=e=>(e%=360)<0?e+360:e;function Me({h:e,s:t,l:n,alpha:r}){e=M(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=n+t*(n<.5?n:1-n),a=i-(i-n)*2*Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:i,g:a,b:2*n-i};break;case 1:o={r:a,g:i,b:2*n-i};break;case 2:o={r:2*n-i,g:i,b:a};break;case 3:o={r:2*n-i,g:a,b:i};break;case 4:o={r:a,g:2*n-i,b:i};break;case 5:o={r:i,g:2*n-i,b:a};break;default:o={r:2*n-i,g:2*n-i,b:2*n-i}}return o.mode=`rgb`,r!==void 0&&(o.alpha=r),o}function Ne({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsl`,s:i===a?0:(i-a)/(1-Math.abs(i+a-1)),l:.5*(i+a)};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t<n)*6:i===t?(n-e)/(i-a)+2:(e-t)/(i-a)+4)*60),r!==void 0&&(o.alpha=r),o}var Pe=(e,t)=>{switch(t){case`deg`:return+e;case`rad`:return e/Math.PI*180;case`grad`:return e/10*9;case`turn`:return e*360}},Fe=RegExp(`^hsla?\\(\\s*${h}${g}${f}${g}${f}\\s*(?:,\\s*${p}\\s*)?\\)$`),Ie=e=>{let t=e.match(Fe);if(!t)return;let n={mode:`hsl`};return t[3]===void 0?t[1]!==void 0&&t[2]!==void 0&&(n.h=Pe(t[1],t[2])):n.h=+t[3],t[4]!==void 0&&(n.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(n.l=Math.min(Math.max(0,t[5]/100),1)),t[6]===void 0?t[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+t[7]))):n.alpha=Math.max(0,Math.min(1,t[6]/100)),n};function Le(e,t){if(!t||t[0]!==`hsl`&&t[0]!==`hsla`)return;let n={mode:`hsl`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Percentage)return;n.h=r.value}if(i.type!==b.None){if(i.type===b.Hue)return;n.s=i.value/100}if(a.type!==b.None){if(a.type===b.Hue)return;n.l=a.value/100}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var Re=(e,t)=>e.map((n,r,i)=>{if(n===void 0)return n;let a=M(n);return r===0||e[r-1]===void 0?a:t(a-M(i[r-1]))}).reduce((e,t)=>!e.length||t===void 0||e[e.length-1]===void 0?(e.push(t),e):(e.push(t+e[e.length-1]),e),[]),ze=e=>Re(e,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),Be=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let n=M(e.h),r=M(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*i},Ve=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let n=M(e.h),r=M(t.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},He=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let n=M(e.h),r=M(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*i},Ue=e=>{let t=e.reduce((e,t)=>{if(t!==void 0){let n=t*Math.PI/180;e.sin+=Math.sin(n),e.cos+=Math.cos(n)}return e},{sin:0,cos:0}),n=Math.atan2(t.sin,t.cos)*180/Math.PI;return n<0?360+n:n},We={mode:`hsl`,toMode:{rgb:Me},fromMode:{rgb:Ne},channels:[`h`,`s`,`l`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[Le,Ie],serialize:e=>`hsl(${e.h===void 0?`none`:e.h} ${e.s===void 0?`none`:e.s*100+`%`} ${e.l===void 0?`none`:e.l*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:ze},s:D,l:D,alpha:{use:D,fixup:O}},difference:{h:Be},average:{h:Ue}};function Ge({h:e,s:t,v:n,alpha:r}){e=M(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:n,g:n*(1-t*i),b:n*(1-t)};break;case 1:a={r:n*(1-t*i),g:n,b:n*(1-t)};break;case 2:a={r:n*(1-t),g:n,b:n*(1-t*i)};break;case 3:a={r:n*(1-t),g:n*(1-t*i),b:n};break;case 4:a={r:n*(1-t*i),g:n*(1-t),b:n};break;case 5:a={r:n,g:n*(1-t),b:n*(1-t*i)};break;default:a={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return a.mode=`rgb`,r!==void 0&&(a.alpha=r),a}function Ke({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsv`,s:i===0?0:1-a/i,v:i};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t<n)*6:i===t?(n-e)/(i-a)+2:(e-t)/(i-a)+4)*60),r!==void 0&&(o.alpha=r),o}var qe={mode:`hsv`,toMode:{rgb:Ge},parse:[`--hsv`],serialize:`--hsv`,fromMode:{rgb:Ke},channels:[`h`,`s`,`v`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,interpolate:{h:{use:D,fixup:ze},s:D,v:D,alpha:{use:D,fixup:O}},difference:{h:Be},average:{h:Ue}};function Je({h:e,w:t,b:n,alpha:r}){if(t===void 0&&(t=0),n===void 0&&(n=0),t+n>1){let e=t+n;t/=e,n/=e}return Ge({h:e,s:n===1?1:1-t/(1-n),v:1-n,alpha:r})}function Ye(e){let t=Ke(e);if(t===void 0)return;let n=t.s===void 0?0:t.s,r=t.v===void 0?0:t.v,i={mode:`hwb`,w:(1-n)*r,b:1-r};return t.h!==void 0&&(i.h=t.h),t.alpha!==void 0&&(i.alpha=t.alpha),i}function Xe(e,t){if(!t||t[0]!==`hwb`)return;let n={mode:`hwb`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Percentage)return;n.h=r.value}if(i.type!==b.None){if(i.type===b.Hue)return;n.w=i.value/100}if(a.type!==b.None){if(a.type===b.Hue)return;n.b=a.value/100}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var Ze={mode:`hwb`,toMode:{rgb:Je},fromMode:{rgb:Ye},channels:[`h`,`w`,`b`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[Xe],serialize:e=>`hwb(${e.h===void 0?`none`:e.h} ${e.w===void 0?`none`:e.w*100+`%`} ${e.b===void 0?`none`:e.b*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:ze},w:D,b:D,alpha:{use:D,fixup:O}},difference:{h:Ve},average:{h:Ue}},Qe=29**3/27,$e=216/29**3,N={X:.3457/.3585,Y:1,Z:.2958/.3585},P={X:.3127/.329,Y:1,Z:.3583/.329},et=e=>e**3>$e?e**3:(116*e-16)/Qe,tt=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz50`,x:et(a)*N.X,y:et(i)*N.Y,z:et(o)*N.Z};return r!==void 0&&(s.alpha=r),s},nt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Ae({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*n,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*n,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i},rt=e=>nt(tt(e)),it=e=>{let{r:t,g:n,b:r,alpha:i}=A(e),a={mode:`xyz50`,x:.436065742824811*t+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*t+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*t+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(a.alpha=i),a},at=e=>e>$e?Math.cbrt(e):(Qe*e+16)/116,ot=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=at(e/N.X),a=at(t/N.Y),o=at(n/N.Z),s={mode:`lab`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s},st=e=>{let t=ot(it(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};function ct(e,t){if(!t||t[0]!==`lab`)return;let n={mode:`lab`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==b.None&&(n.a=i.type===b.Number?i.value:i.value*125/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value:a.value*125/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var lt={mode:`lab`,toMode:{xyz50:tt,rgb:rt},fromMode:{xyz50:ot,rgb:st},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[ct],serialize:e=>`lab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{l:D,a:D,b:D,alpha:{use:D,fixup:O}}},ut=29**3/27,dt=216/29**3,ft=e=>e**3>dt?e**3:(116*e-16)/ut,pt=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz65`,x:ft(a)*P.X,y:ft(i)*P.Y,z:ft(o)*P.Z};return r!==void 0&&(s.alpha=r),s},mt=e=>j(pt(e)),ht=e=>e>dt?Math.cbrt(e):(ut*e+16)/116,gt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=ht(e/P.X),a=ht(t/P.Y),o=ht(n/P.Z),s={mode:`lab65`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s},_t=e=>{let t=gt(Oe(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},vt={...lt,mode:`lab65`,parse:[`--lab-d65`],serialize:`--lab-d65`,toMode:{xyz65:pt,rgb:mt},fromMode:{xyz65:gt,rgb:_t},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},F=({l:e,a:t,b:n,alpha:r},i=`lch`)=>{t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.sqrt(t*t+n*n),o={mode:i,l:e,c:a};return a&&(o.h=M(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},I=({l:e,c:t,h:n,alpha:r},i=`lab`)=>{n===void 0&&(n=0);let a={mode:i,l:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(a.alpha=r),a};function yt(e,t){if(!t||t[0]!==`lch`)return;let n={mode:`lch`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==b.None&&(n.c=Math.max(0,i.type===b.Number?i.value:i.value*150/100)),a.type!==b.None){if(a.type===b.Percentage)return;n.h=a.value}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var bt={mode:`lch`,toMode:{lab:I,rgb:e=>rt(I(e))},fromMode:{rgb:e=>F(st(e)),lab:F},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[yt],serialize:e=>`lch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:ze},c:D,l:D,alpha:{use:D,fixup:O}},difference:{h:He},average:{h:Ue}},xt={...bt,mode:`lch65`,parse:[`--lch-d65`],serialize:`--lch-d65`,toMode:{lab65:e=>I(e,`lab65`),rgb:e=>mt(I(e,`lab65`))},fromMode:{rgb:e=>F(_t(e),`lch65`),lab65:e=>F(e,`lch65`)},ranges:{l:[0,100],c:[0,150],h:[0,360]}},St={...k,mode:`lrgb`,toMode:{rgb:Ae},fromMode:{rgb:A},parse:[`srgb-linear`],serialize:`srgb-linear`},Ct=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+.3963377773761749*t+.2158037573099136*n)**3,a=(e-.1055613458156586*t-.0638541728258133*n)**3,o=(e-.0894841775298119*t-1.2914855480194092*n)**3,s={mode:`lrgb`,r:4.076741636075957*i-3.3077115392580616*a+.2309699031821044*o,g:-1.2684379732850317*i+2.6097573492876887*a-.3413193760026573*o,b:-.0041960761386756*i-.7034186179359362*a+1.7076146940746117*o};return r!==void 0&&(s.alpha=r),s},wt=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*n),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*n),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*n),s={mode:`oklab`,l:.210454268309314*i+.7936177747023054*a-.0040720430116193*o,a:1.9779985324311684*i-2.42859224204858*a+.450593709617411*o,b:.0259040424655478*i+.7827717124575296*a-.8086757549230774*o};return r!==void 0&&(s.alpha=r),s},Tt=e=>{let t=wt(A(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Et=e=>Ae(Ct(e));function Dt(e,t){if(!t||t[0]!==`oklab`)return;let n={mode:`oklab`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.l=Math.min(Math.max(0,r.type===b.Number?r.value:r.value/100),1)),i.type!==b.None&&(n.a=i.type===b.Number?i.value:i.value*.4/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value:a.value*.4/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var Ot={...lt,mode:`oklab`,toMode:{lrgb:Ct,rgb:Et},fromMode:{lrgb:wt,rgb:Tt},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Dt],serialize:e=>`oklab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`};function kt(e,t){if(!t||t[0]!==`oklch`)return;let n={mode:`oklch`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Hue)return;n.l=Math.min(Math.max(0,r.type===b.Number?r.value:r.value/100),1)}if(i.type!==b.None&&(n.c=Math.max(0,i.type===b.Number?i.value:i.value*.4/100)),a.type!==b.None){if(a.type===b.Percentage)return;n.h=a.value}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var At={...bt,mode:`oklch`,toMode:{oklab:e=>I(e,`oklab`),rgb:e=>Et(I(e,`oklab`))},fromMode:{rgb:e=>F(Tt(e),`oklch`),oklab:e=>F(e,`oklch`)},parse:[kt],serialize:e=>`oklch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},jt=e=>{let{r:t,g:n,b:r,alpha:i}=A(e),a={mode:`xyz65`,x:.486570948648216*t+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*r,z:0*t+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(a.alpha=i),a},Mt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Ae({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n},`p3`);return r!==void 0&&(i.alpha=r),i},Nt={...k,mode:`p3`,parse:[`display-p3`],serialize:`display-p3`,fromMode:{rgb:e=>Mt(Oe(e)),xyz65:Mt},toMode:{rgb:e=>j(jt(e)),xyz65:jt}},Pt=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*t**(1/1.8):16*e},Ft=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`prophoto`,r:Pt(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*n),g:Pt(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*n),b:Pt(e*0+t*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},It=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*t**1.8:e/16},Lt=e=>{let t=It(e.r),n=It(e.g),r=It(e.b),i={mode:`xyz50`,x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*r,z:0*t+0*n+.8251046025104602*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Rt={...k,mode:`prophoto`,parse:[`prophoto-rgb`],serialize:`prophoto-rgb`,fromMode:{xyz50:Ft,rgb:e=>Ft(it(e))},toMode:{xyz50:Lt,rgb:e=>nt(Lt(e))}},zt=1.09929682680944,Bt=.018053968510807,Vt=e=>{let t=Math.abs(e);return t>Bt?(Math.sign(e)||1)*(zt*t**.45-.09929682680944008):4.5*e},Ht=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`rec2020`,r:Vt(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*n),g:Vt(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*n),b:Vt(e*.0176398574453108-t*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},Ut=1.09929682680944,Wt=.018053968510807,Gt=(e=0)=>{let t=Math.abs(e);return t<Wt*4.5?e/4.5:(Math.sign(e)||1)*((t+Ut-1)/Ut)**(1/.45)},Kt=e=>{let t=Gt(e.r),n=Gt(e.g),r=Gt(e.b),i={mode:`xyz65`,x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*t+.6779980715188708*n+.059301716469862*r,z:0*t+.0280726930490874*n+1.0609850577107909*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},qt={...k,mode:`rec2020`,fromMode:{xyz65:Ht,rgb:e=>Ht(Oe(e))},toMode:{xyz65:Kt,rgb:e=>j(Kt(e))},parse:[`rec2020`],serialize:`rec2020`},Jt={mode:`xyz50`,parse:[`xyz-d50`],serialize:`xyz-d50`,toMode:{rgb:nt,lab:ot},fromMode:{rgb:it,lab:tt},channels:[`x`,`y`,`z`,`alpha`],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:D,y:D,z:D,alpha:{use:D,fixup:O}}},Yt={mode:`xyz65`,toMode:{rgb:j,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz50`,x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(a.alpha=i),a}},fromMode:{rgb:Oe,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz65`,x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(a.alpha=i),a}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:[`x`,`y`,`z`,`alpha`],parse:[`xyz`,`xyz-d65`],serialize:`xyz-d65`,interpolate:{x:D,y:D,z:D,alpha:{use:D,fixup:O}}};y(je),y(We),y(qe),y(Ze),y(lt),y(vt),y(bt),y(xt),y(St),y(Ot),y(At),y(Nt),y(Rt),y(qt),y(k),y(Jt),y(Yt);var Xt=[`orchid`,`grove`,`ocean`,`ember`,`iris`],Zt={"t3-chat":`orchid`};[...Xt];var L=new Set([`system`,`light`,`dark`,...Xt,`t3-chat`,`t3-chat-dark`,`t3-grove`,`t3-ocean`,`t3-ember`,`t3-iris`]);[...L];var Qt=`canvas.chrome.toolbar.toolbarForeground.toolbarBorder.toolbarControl.toolbarControlForeground.toolbarControlHover.surface.surfaceRaised.surfaceOverlay.text.textMuted.border.input.focus.accent.accentForeground.secondary.secondaryForeground.muted.mutedForeground.placeholder.secondaryLabel.iconMuted.error.errorForeground.errorSurface.warning.warningForeground.warningSurface.update.updateForeground.updateSurface.accentSurface.accentSurfaceForeground.messageSurface.messageForeground.messageAction.messageActionForeground.messageActionHover.codeBackground.codeForeground.searchMatchBackground.searchMatchForeground.searchMatchActiveBackground.searchMatchActiveForeground.sidebar.sidebarForeground.sidebarMutedForeground.sidebarControlSurface.sidebarRowHover.sidebarRowActive.sidebarRowSelected.sidebarBorder.terminalBackground.terminalForeground.terminalCursor.terminalSelection.terminalScrollbar.terminalScrollbarHover`.split(`.`),$t={searchMatchBackground:`#ffde8b`,searchMatchForeground:`#21180a`,searchMatchActiveBackground:`#eea52b`,searchMatchActiveForeground:`#21180a`,canvas:`oklch(1 0 0)`,chrome:`#f4f4f4`,toolbar:`#f4f4f4`,toolbarForeground:`oklch(0.274 0.006 286.033)`,toolbarBorder:`oklch(0.92 0.004 286)`,toolbarControl:`oklch(1 0 0)`,toolbarControlForeground:`oklch(0.274 0.006 286.033)`,toolbarControlHover:`#f4f4f4`,surface:`oklch(1 0 0)`,surfaceRaised:`oklch(1 0 0)`,surfaceOverlay:`oklch(1 0 0)`,text:`oklch(0.274 0.006 286.033)`,textMuted:`oklch(0.442 0.017 285.786)`,border:`oklch(0.92 0.004 286)`,input:`oklch(0.871 0.006 286)`,focus:`oklch(0.546 0.215 262.881)`,accent:`oklch(0.546 0.215 262.881)`,accentForeground:`oklch(1 0 0)`,secondary:`oklch(0.977 0.001 286)`,secondaryForeground:`oklch(0.274 0.006 286.033)`,muted:`oklch(0.977 0.001 286)`,mutedForeground:`oklch(0.442 0.017 285.786)`,placeholder:`oklch(0.442 0.017 285.786)`,secondaryLabel:`oklch(0.442 0.017 285.786)`,iconMuted:`oklch(0.442 0.017 285.786)`,error:`oklch(0.637 0.237 25.331)`,errorForeground:`oklch(0.505 0.213 27.518)`,errorSurface:`#fcebec`,warning:`#fe9a00`,warningForeground:`#bb4d00`,warningSurface:`#fcf4e8`,update:`oklch(0.546 0.215 262.881)`,updateForeground:`oklch(0.546 0.215 262.881)`,updateSurface:`#e0e6f7`,accentSurface:`#f4f4f4`,accentSurfaceForeground:`oklch(0.21 0.006 286)`,messageSurface:`oklch(0.967 0.001 286)`,messageForeground:`oklch(0.274 0.006 286.033)`,messageAction:`oklch(0.546 0.215 262.881)`,messageActionForeground:`oklch(1 0 0)`,messageActionHover:`#3a72ed`,codeBackground:`oklch(1 0 0)`,codeForeground:`oklch(0.274 0.006 286.033)`,sidebar:`#f4f4f4`,sidebarForeground:`oklch(0.274 0.006 286.033)`,sidebarMutedForeground:`oklch(0.442 0.017 285.786)`,sidebarControlSurface:`oklch(0.977 0.001 286)`,sidebarRowHover:`#f4f4f4`,sidebarRowActive:`#e7e8e8`,sidebarRowSelected:`#e7e8e8`,sidebarBorder:`oklch(0.92 0.004 286)`,terminalBackground:`oklch(0.988 0.001 286)`,terminalForeground:`oklch(0.274 0.006 286.033)`,terminalCursor:`oklch(0.546 0.215 262.881)`,terminalSelection:`#d0d6dd`,terminalScrollbar:`#d6d6d6`,terminalScrollbarHover:`#bdbdbd`},en={searchMatchBackground:`#8c6c1f`,searchMatchForeground:`#f5f5f5`,searchMatchActiveBackground:`#eea52b`,searchMatchActiveForeground:`#21180a`,canvas:`oklch(0.145 0.005 286)`,chrome:`oklch(0.185 0.006 286)`,toolbar:`oklch(0.185 0.006 286)`,toolbarForeground:`oklch(0.967 0.001 286)`,toolbarBorder:`oklch(0.274 0.006 286)`,toolbarControl:`oklch(0.205 0.006 286)`,toolbarControlForeground:`oklch(0.967 0.001 286)`,toolbarControlHover:`oklch(0.245 0.006 286)`,surface:`oklch(0.185 0.006 286)`,surfaceRaised:`oklch(0.185 0.006 286)`,surfaceOverlay:`oklch(0.205 0.006 286)`,text:`oklch(0.967 0.001 286)`,textMuted:`oklch(0.674 0.006 286)`,border:`oklch(0.274 0.006 286)`,input:`oklch(0.311 0.006 286)`,focus:`oklch(0.707 0.165 254.624)`,accent:`oklch(0.707 0.165 254.624)`,accentForeground:`oklch(0.145 0.005 286)`,secondary:`oklch(0.225 0.006 286)`,secondaryForeground:`oklch(0.967 0.001 286)`,muted:`oklch(0.225 0.006 286)`,mutedForeground:`oklch(0.674 0.006 286)`,placeholder:`oklch(0.674 0.006 286)`,secondaryLabel:`oklch(0.674 0.006 286)`,iconMuted:`oklch(0.674 0.006 286)`,error:`oklch(0.704 0.191 22.216)`,errorForeground:`oklch(0.783 0.157 21.5)`,errorSurface:`#301214`,warning:`#fe9a00`,warningForeground:`#ffb900`,warningSurface:`#312108`,update:`oklch(0.707 0.165 254.624)`,updateForeground:`oklch(0.707 0.165 254.624)`,updateSurface:`#121b34`,accentSurface:`oklch(0.245 0.006 286)`,accentSurfaceForeground:`oklch(0.967 0.001 286)`,messageSurface:`oklch(0.245 0.006 286)`,messageForeground:`oklch(0.967 0.001 286)`,messageAction:`oklch(0.707 0.165 254.624)`,messageActionForeground:`oklch(0.145 0.005 286)`,messageActionHover:`#4993ec`,codeBackground:`oklch(0.185 0.006 286)`,codeForeground:`oklch(0.967 0.001 286)`,sidebar:`oklch(0.185 0.006 286)`,sidebarForeground:`oklch(0.967 0.001 286)`,sidebarMutedForeground:`oklch(0.674 0.006 286)`,sidebarControlSurface:`oklch(0.225 0.006 286)`,sidebarRowHover:`oklch(0.245 0.006 286)`,sidebarRowActive:`oklch(0.245 0.006 286)`,sidebarRowSelected:`oklch(0.245 0.006 286)`,sidebarBorder:`oklch(0.274 0.006 286)`,terminalBackground:`oklch(0.145 0.005 286)`,terminalForeground:`oklch(0.967 0.001 286)`,terminalCursor:`oklch(0.707 0.165 254.624)`,terminalSelection:`#343a47`,terminalScrollbar:`#222222`,terminalScrollbarHover:`#363636`},tn={id:`orchid`,label:`Orchid`,appearance:`light`,colors:{canvas:`oklch(0.982446 0.010114 325.653)`,chrome:`oklch(0.982446 0.010114 325.653)`,toolbar:`oklch(0.982446 0.010114 325.653)`,toolbarForeground:`oklch(0.325698 0.116116 325.037)`,toolbarBorder:`oklch(0.856784 0.082879 328.911)`,toolbarControl:`oklch(0.939552 0.024286 321.664)`,toolbarControlForeground:`oklch(0.325698 0.116116 325.037)`,toolbarControlHover:`oklch(0.884525 0.041658 337.177)`,surface:`oklch(0.971835 0.012884 321.894)`,surfaceRaised:`oklch(0.988235 0.005049 325.615)`,surfaceOverlay:`oklch(1 0 0)`,text:`oklch(0.325698 0.116116 325.037)`,textMuted:`oklch(0.494754 0.190937 354.544)`,border:`oklch(0.923531 0.021247 328.096)`,input:`oklch(0.851713 0.055822 336.6)`,focus:`oklch(0.591646 0.217985 0.584)`,accent:`oklch(0.591646 0.217985 0.584)`,accentForeground:`oklch(1 0 0)`,secondary:`oklch(0.869588 0.06751 334.899)`,secondaryForeground:`oklch(0.444777 0.134061 324.799)`,muted:`oklch(0.802407 0.090963 345.892)`,mutedForeground:`oklch(0.428932 0.163929 354.332)`,placeholder:`oklch(0.549927 0.090215 323.149)`,secondaryLabel:`oklch(0.494754 0.190937 354.544)`,iconMuted:`oklch(0.494754 0.190937 354.544)`,error:`oklch(0.627117 0.248974 7.734)`,errorForeground:`oklch(0.458704 0.169677 3.815)`,errorSurface:`oklch(0.942787 0.032076 344.963)`,warning:`oklch(0.76859 0.164659 70.08)`,warningForeground:`oklch(0.54612 0.143036 48.949)`,warningSurface:`oklch(0.962901 0.015297 48.56)`,update:`oklch(0.591646 0.217985 0.584)`,updateForeground:`oklch(0.494754 0.190937 354.544)`,updateSurface:`oklch(0.930264 0.036194 341.45)`,accentSurface:`oklch(0.939552 0.024286 321.664)`,accentSurfaceForeground:`oklch(0.396296 0.025134 285.196)`,messageSurface:`oklch(0.926746 0.037898 332.6)`,messageForeground:`oklch(0.354591 0.093575 307.568)`,messageAction:`oklch(0.591646 0.217985 0.584)`,messageActionForeground:`oklch(1 0 0)`,messageActionHover:`oklch(0.539042 0.197866 0.305)`,codeBackground:`oklch(0.953855 0.019695 315.668)`,codeForeground:`oklch(0.445128 0.13005 307.026)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.928886 0.031178 322.592)`,sidebarForeground:`oklch(0.396296 0.025134 285.196)`,sidebarMutedForeground:`oklch(0.494754 0.190937 354.544)`,sidebarControlSurface:`oklch(0.978851 0.001321 106.424)`,sidebarRowHover:`oklch(0.978851 0.001321 106.424)`,sidebarRowActive:`oklch(0.978851 0.001321 106.424)`,sidebarRowSelected:`oklch(0.978851 0.001321 106.424)`,sidebarBorder:`oklch(0.938313 0.002552 48.717)`,terminalBackground:`oklch(0.982446 0.010114 325.653)`,terminalForeground:`oklch(0.325698 0.116116 325.037)`,terminalCursor:`oklch(0.591646 0.217985 0.584)`,terminalSelection:`oklch(0.869588 0.06751 334.899)`,terminalScrollbar:`oklch(0.851713 0.055822 336.6)`,terminalScrollbarHover:`oklch(0.802407 0.090963 345.892)`},variants:{dark:{canvas:`oklch(0.22813 0.020366 307.469)`,chrome:`oklch(0.22813 0.020366 307.469)`,toolbar:`oklch(0.22813 0.020366 307.469)`,toolbarForeground:`oklch(0.980735 0.004092 301.426)`,toolbarBorder:`oklch(0.266943 0.015262 302.425)`,toolbarControl:`oklch(0.313674 0.030572 310.061)`,toolbarControlForeground:`oklch(0.848252 0.038248 307.961)`,toolbarControlHover:`oklch(0.364912 0.050794 308.491)`,surface:`oklch(0.267101 0.02016 311.799)`,surfaceRaised:`oklch(0.279864 0.021572 309.532)`,surfaceOverlay:`oklch(0.154761 0.01316 338.901)`,text:`oklch(0.980735 0.004092 301.426)`,textMuted:`oklch(0.880303 0.03077 342.696)`,border:`oklch(0.266943 0.015262 302.425)`,input:`oklch(0.266817 0.02897 344.461)`,focus:`oklch(0.591646 0.217985 0.584)`,accent:`oklch(0.460685 0.185347 4.099)`,accentForeground:`oklch(0.901233 0.057189 343.694)`,secondary:`oklch(0.313674 0.030572 310.061)`,secondaryForeground:`oklch(0.848252 0.038248 307.961)`,muted:`oklch(0.360924 0.021469 316.83)`,mutedForeground:`oklch(0.880303 0.03077 342.696)`,placeholder:`oklch(0.657087 0.028226 307.985)`,secondaryLabel:`oklch(0.880303 0.03077 342.696)`,iconMuted:`oklch(0.848252 0.038248 307.961)`,error:`oklch(0.458704 0.169677 3.815)`,errorForeground:`oklch(0.901233 0.057189 343.694)`,errorSurface:`oklch(0.259022 0.04799 340.062)`,warning:`oklch(0.76859 0.164659 70.08)`,warningForeground:`oklch(0.836861 0.164422 84.429)`,warningSurface:`oklch(0.321706 0.036256 60.806)`,update:`oklch(0.460685 0.185347 4.099)`,updateForeground:`oklch(0.901233 0.057189 343.694)`,updateSurface:`oklch(0.256077 0.063004 342.914)`,accentSurface:`oklch(0.364912 0.050794 308.491)`,accentSurfaceForeground:`oklch(0.964695 0.009139 341.803)`,messageSurface:`oklch(0.273791 0.025541 309.079)`,messageForeground:`oklch(0.949872 0.021269 306.838)`,messageAction:`oklch(0.460685 0.185347 4.099)`,messageActionForeground:`oklch(0.901233 0.057189 343.694)`,messageActionHover:`oklch(0.458754 0.184639 3.857)`,codeBackground:`oklch(0.22813 0.020366 307.469)`,codeForeground:`oklch(0.848703 0.064239 306.645)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.185778 0.019368 322.159)`,sidebarForeground:`oklch(0.967434 0.001326 286.375)`,sidebarMutedForeground:`oklch(0.880303 0.03077 342.696)`,sidebarControlSurface:`oklch(0.23366 0.026081 338.196)`,sidebarRowHover:`oklch(0.23366 0.026081 338.196)`,sidebarRowActive:`oklch(0.23366 0.026081 338.196)`,sidebarRowSelected:`oklch(0.23366 0.026081 338.196)`,sidebarBorder:`oklch(0.269132 0.030766 351.067)`,terminalBackground:`oklch(0.22813 0.020366 307.469)`,terminalForeground:`oklch(0.980735 0.004092 301.426)`,terminalCursor:`oklch(0.591646 0.217985 0.584)`,terminalSelection:`oklch(0.313674 0.030572 310.061)`,terminalScrollbar:`oklch(0.266817 0.02897 344.461)`,terminalScrollbarHover:`oklch(0.360924 0.021469 316.83)`}},sidebarArtwork:!0},nn={id:`grove`,label:`Grove`,appearance:`light`,colors:{canvas:`oklch(0.972369 0.005497 157.15)`,chrome:`oklch(0.972369 0.005497 157.15)`,toolbar:`oklch(0.972369 0.005497 157.15)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.864831 0.01312 167.255)`,toolbarControl:`oklch(0.932695 0.003778 160.944)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.949276 0.004496 159.002)`,surface:`oklch(0.972369 0.005497 157.15)`,surfaceRaised:`oklch(0.972369 0.005497 157.15)`,surfaceOverlay:`oklch(0.932695 0.003778 160.944)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.527266 0.012309 320.683)`,border:`oklch(0.864831 0.01312 167.255)`,input:`oklch(0.829746 0.016084 168.234)`,focus:`oklch(0.523295 0.112292 158.089)`,accent:`oklch(0.523295 0.112292 158.089)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.945455 0.012308 162.879)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.945455 0.012308 162.879)`,mutedForeground:`oklch(0.527266 0.012309 320.683)`,placeholder:`oklch(0.527266 0.012309 320.683)`,secondaryLabel:`oklch(0.527266 0.012309 320.683)`,iconMuted:`oklch(0.527266 0.012309 320.683)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.936968 0.014243 26.295)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.545036 0.155019 45.359)`,warningSurface:`oklch(0.953175 0.02009 93.379)`,update:`oklch(0.523295 0.112292 158.089)`,updateForeground:`oklch(0.523295 0.112292 158.089)`,updateSurface:`oklch(0.900411 0.02384 164.795)`,accentSurface:`oklch(0.949276 0.004496 159.002)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.949276 0.004496 159.002)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.523295 0.112292 158.089)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.488753 0.096536 77.829)`,codeBackground:`oklch(0.972369 0.005497 157.15)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.972369 0.005497 157.15)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.527266 0.012309 320.683)`,sidebarControlSurface:`oklch(0.945455 0.012308 162.879)`,sidebarRowHover:`oklch(0.949276 0.004496 159.002)`,sidebarRowActive:`oklch(0.949276 0.004496 159.002)`,sidebarRowSelected:`oklch(0.949276 0.004496 159.002)`,sidebarBorder:`oklch(0.864831 0.01312 167.255)`,terminalBackground:`oklch(0.972369 0.005497 157.15)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.523295 0.112292 158.089)`,terminalSelection:`oklch(0.891377 0.026164 164.929)`,terminalScrollbar:`oklch(0.824752 0.001392 294.641)`,terminalScrollbarHover:`oklch(0.755495 0.004415 318.776)`},variants:{dark:{canvas:`oklch(0.260865 0.02152 162.75)`,chrome:`oklch(0.260865 0.02152 162.75)`,toolbar:`oklch(0.260865 0.02152 162.75)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.457475 0.044046 160.971)`,toolbarControl:`oklch(0.411828 0.014378 166.627)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.363192 0.016572 165.32)`,surface:`oklch(0.260865 0.02152 162.75)`,surfaceRaised:`oklch(0.260865 0.02152 162.75)`,surfaceOverlay:`oklch(0.411828 0.014378 166.627)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.715427 0.010896 171.428)`,border:`oklch(0.457475 0.044046 160.971)`,input:`oklch(0.519849 0.049896 160.863)`,focus:`oklch(0.796228 0.133058 157.319)`,accent:`oklch(0.796228 0.133058 157.319)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.339728 0.039456 160.274)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.339728 0.039456 160.274)`,mutedForeground:`oklch(0.715427 0.010896 171.428)`,placeholder:`oklch(0.715427 0.010896 171.428)`,secondaryLabel:`oklch(0.715427 0.010896 171.428)`,iconMuted:`oklch(0.715427 0.010896 171.428)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.704237 0.187511 22.228)`,errorSurface:`oklch(0.312773 0.02923 32.121)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.345524 0.046882 99.736)`,update:`oklch(0.796228 0.133058 157.319)`,updateForeground:`oklch(0.796228 0.133058 157.319)`,updateSurface:`oklch(0.448116 0.062637 158.86)`,accentSurface:`oklch(0.363192 0.016572 165.32)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.363192 0.016572 165.32)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.796228 0.133058 157.319)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.815227 0.117902 84.21)`,codeBackground:`oklch(0.260865 0.02152 162.75)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.260865 0.02152 162.75)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.715427 0.010896 171.428)`,sidebarControlSurface:`oklch(0.339728 0.039456 160.274)`,sidebarRowHover:`oklch(0.363192 0.016572 165.32)`,sidebarRowActive:`oklch(0.363192 0.016572 165.32)`,sidebarRowSelected:`oklch(0.363192 0.016572 165.32)`,sidebarBorder:`oklch(0.457475 0.044046 160.971)`,terminalBackground:`oklch(0.260865 0.02152 162.75)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.796228 0.133058 157.319)`,terminalSelection:`oklch(0.464636 0.066083 158.72)`,terminalScrollbar:`oklch(0.594692 0.006862 176.022)`,terminalScrollbarHover:`oklch(0.687968 0.00354 193.55)`}},sidebarArtwork:!0},rn={id:`ocean`,label:`Ocean`,appearance:`light`,colors:{canvas:`oklch(0.974199 0.002856 241.597)`,chrome:`oklch(0.974199 0.002856 241.597)`,toolbar:`oklch(0.974199 0.002856 241.597)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.867646 0.013482 252.362)`,toolbarControl:`oklch(0.934442 0.003181 269.1)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.951058 0.002962 258.339)`,surface:`oklch(0.974199 0.002856 241.597)`,surfaceRaised:`oklch(0.974199 0.002856 241.597)`,surfaceOverlay:`oklch(0.934442 0.003181 269.1)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.528741 0.01828 313.823)`,border:`oklch(0.867646 0.013482 252.362)`,input:`oklch(0.832939 0.017389 252.598)`,focus:`oklch(0.536684 0.120219 247.01)`,accent:`oklch(0.536684 0.120219 247.01)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.948004 0.009649 241.695)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.948004 0.009649 241.695)`,mutedForeground:`oklch(0.528741 0.01828 313.823)`,placeholder:`oklch(0.528741 0.01828 313.823)`,secondaryLabel:`oklch(0.528741 0.01828 313.823)`,iconMuted:`oklch(0.528741 0.01828 313.823)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.938747 0.016377 7.186)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.546927 0.155556 45.359)`,warningSurface:`oklch(0.954846 0.016009 81.731)`,update:`oklch(0.536684 0.120219 247.01)`,updateForeground:`oklch(0.536684 0.120219 247.01)`,updateSurface:`oklch(0.904165 0.021144 241.874)`,accentSurface:`oklch(0.951058 0.002962 258.339)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.951058 0.002962 258.339)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.536684 0.120219 247.01)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.45151 0.074407 201.516)`,codeBackground:`oklch(0.974199 0.002856 241.597)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.974199 0.002856 241.597)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.528741 0.01828 313.823)`,sidebarControlSurface:`oklch(0.948004 0.009649 241.695)`,sidebarRowHover:`oklch(0.951058 0.002962 258.339)`,sidebarRowActive:`oklch(0.951058 0.002962 258.339)`,sidebarRowSelected:`oklch(0.951058 0.002962 258.339)`,sidebarBorder:`oklch(0.867646 0.013482 252.362)`,terminalBackground:`oklch(0.974199 0.002856 241.597)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.536684 0.120219 247.01)`,terminalSelection:`oklch(0.895373 0.023469 241.913)`,terminalScrollbar:`oklch(0.826271 0.006191 305.456)`,terminalScrollbarHover:`oklch(0.756866 0.008685 313.721)`},variants:{dark:{canvas:`oklch(0.242641 0.024125 250.573)`,chrome:`oklch(0.242641 0.024125 250.573)`,toolbar:`oklch(0.242641 0.024125 250.573)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.438653 0.039496 245.44)`,toolbarControl:`oklch(0.398517 0.018232 255.72)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.348439 0.019942 253.696)`,surface:`oklch(0.242641 0.024125 250.573)`,surfaceRaised:`oklch(0.242641 0.024125 250.573)`,surfaceOverlay:`oklch(0.398517 0.018232 255.72)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.691936 0.016294 261.588)`,border:`oklch(0.438653 0.039496 245.44)`,input:`oklch(0.500905 0.043574 244.781)`,focus:`oklch(0.758933 0.105833 241.548)`,accent:`oklch(0.758933 0.105833 241.548)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.319287 0.036766 246.065)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.319287 0.036766 246.065)`,mutedForeground:`oklch(0.691936 0.016294 261.588)`,placeholder:`oklch(0.691936 0.016294 261.588)`,secondaryLabel:`oklch(0.691936 0.016294 261.588)`,iconMuted:`oklch(0.691936 0.016294 261.588)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.298933 0.036443 350.094)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.329449 0.028712 84.495)`,update:`oklch(0.758933 0.105833 241.548)`,updateForeground:`oklch(0.758933 0.105833 241.548)`,updateSurface:`oklch(0.424017 0.053575 243.695)`,accentSurface:`oklch(0.348439 0.019942 253.696)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.348439 0.019942 253.696)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.758933 0.105833 241.548)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.815308 0.096174 199.862)`,codeBackground:`oklch(0.242641 0.024125 250.573)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.242641 0.024125 250.573)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.691936 0.016294 261.588)`,sidebarControlSurface:`oklch(0.319287 0.036766 246.065)`,sidebarRowHover:`oklch(0.348439 0.019942 253.696)`,sidebarRowActive:`oklch(0.348439 0.019942 253.696)`,sidebarRowSelected:`oklch(0.348439 0.019942 253.696)`,sidebarBorder:`oklch(0.438653 0.039496 245.44)`,terminalBackground:`oklch(0.242641 0.024125 250.573)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.758933 0.105833 241.548)`,terminalSelection:`oklch(0.439946 0.0561 243.479)`,terminalScrollbar:`oklch(0.58613 0.012959 267.22)`,terminalScrollbarHover:`oklch(0.681569 0.010909 276.465)`}},sidebarArtwork:!0},an={id:`ember`,label:`Ember`,appearance:`light`,colors:{canvas:`oklch(0.976527 0.002685 60.725)`,chrome:`oklch(0.976527 0.002685 60.725)`,toolbar:`oklch(0.976527 0.002685 60.725)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.870631 0.013204 39.431)`,toolbarControl:`oklch(0.936659 0.002879 29.96)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.953321 0.002701 42.266)`,surface:`oklch(0.976527 0.002685 60.725)`,surfaceRaised:`oklch(0.976527 0.002685 60.725)`,surfaceOverlay:`oklch(0.936659 0.002879 29.96)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.530413 0.018453 341.181)`,border:`oklch(0.870631 0.013204 39.431)`,input:`oklch(0.836213 0.017153 38.661)`,focus:`oklch(0.552831 0.129438 44.656)`,accent:`oklch(0.552831 0.129438 44.656)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.950842 0.009273 51.528)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.950842 0.009273 51.528)`,mutedForeground:`oklch(0.530413 0.018453 341.181)`,placeholder:`oklch(0.530413 0.018453 341.181)`,secondaryLabel:`oklch(0.530413 0.018453 341.181)`,iconMuted:`oklch(0.530413 0.018453 341.181)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.941094 0.019938 19.375)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.549154 0.156188 45.359)`,warningSurface:`oklch(0.957148 0.020843 76.702)`,update:`oklch(0.552831 0.129438 44.656)`,updateForeground:`oklch(0.552831 0.129438 44.656)`,updateSurface:`oklch(0.907902 0.020621 49.36)`,accentSurface:`oklch(0.953321 0.002701 42.266)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.953321 0.002701 42.266)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.552831 0.129438 44.656)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.471223 0.145843 24.688)`,codeBackground:`oklch(0.976527 0.002685 60.725)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.976527 0.002685 60.725)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.530413 0.018453 341.181)`,sidebarControlSurface:`oklch(0.950842 0.009273 51.528)`,sidebarRowHover:`oklch(0.953321 0.002701 42.266)`,sidebarRowActive:`oklch(0.953321 0.002701 42.266)`,sidebarRowSelected:`oklch(0.953321 0.002701 42.266)`,sidebarBorder:`oklch(0.870631 0.013204 39.431)`,terminalBackground:`oklch(0.976527 0.002685 60.725)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.552831 0.129438 44.656)`,terminalSelection:`oklch(0.899296 0.022939 49.163)`,terminalScrollbar:`oklch(0.828185 0.005884 349.533)`,terminalScrollbarHover:`oklch(0.758584 0.008423 341.16)`},variants:{dark:{canvas:`oklch(0.245899 0.019144 42.044)`,chrome:`oklch(0.245899 0.019144 42.044)`,toolbar:`oklch(0.245899 0.019144 42.044)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.44099 0.040202 48.807)`,toolbarControl:`oklch(0.401111 0.014308 34.896)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.351262 0.01565 37.592)`,surface:`oklch(0.245899 0.019144 42.044)`,surfaceRaised:`oklch(0.245899 0.019144 42.044)`,surfaceOverlay:`oklch(0.401111 0.014308 34.896)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.692479 0.015227 30.963)`,border:`oklch(0.44099 0.040202 48.807)`,input:`oklch(0.503003 0.045721 49.44)`,focus:`oklch(0.762174 0.124117 52.082)`,accent:`oklch(0.762174 0.124117 52.082)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.322144 0.03574 48.309)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.322144 0.03574 48.309)`,mutedForeground:`oklch(0.692479 0.015227 30.963)`,placeholder:`oklch(0.692479 0.015227 30.963)`,secondaryLabel:`oklch(0.692479 0.015227 30.963)`,iconMuted:`oklch(0.692479 0.015227 30.963)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.310955 0.059624 24.334)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.339137 0.055638 66.911)`,update:`oklch(0.762174 0.124117 52.082)`,updateForeground:`oklch(0.762174 0.124117 52.082)`,updateSurface:`oklch(0.426749 0.057547 50.618)`,accentSurface:`oklch(0.351262 0.01565 37.592)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.351262 0.01565 37.592)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.762174 0.124117 52.082)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.775116 0.117953 29.014)`,codeBackground:`oklch(0.245899 0.019144 42.044)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.245899 0.019144 42.044)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.692479 0.015227 30.963)`,sidebarControlSurface:`oklch(0.322144 0.03574 48.309)`,sidebarRowHover:`oklch(0.351262 0.01565 37.592)`,sidebarRowActive:`oklch(0.351262 0.01565 37.592)`,sidebarRowSelected:`oklch(0.351262 0.01565 37.592)`,sidebarBorder:`oklch(0.44099 0.040202 48.807)`,terminalBackground:`oklch(0.245899 0.019144 42.044)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.762174 0.124117 52.082)`,terminalSelection:`oklch(0.442681 0.0608 50.795)`,terminalScrollbar:`oklch(0.587861 0.010463 20.444)`,terminalScrollbarHover:`oklch(0.682876 0.009156 9.796)`}},sidebarArtwork:!0},on={id:`iris`,label:`Iris`,appearance:`light`,colors:{canvas:`oklch(0.976531 0.003855 303.226)`,chrome:`oklch(0.976531 0.003855 303.226)`,toolbar:`oklch(0.976531 0.003855 303.226)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.869608 0.018226 303.859)`,toolbarControl:`oklch(0.936665 0.005041 310.132)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.953326 0.004536 307.676)`,surface:`oklch(0.976531 0.003855 303.226)`,surfaceRaised:`oklch(0.976531 0.003855 303.226)`,surfaceOverlay:`oklch(0.936665 0.005041 310.132)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.529955 0.022319 321.556)`,border:`oklch(0.869608 0.018226 303.859)`,input:`oklch(0.834773 0.023405 303.676)`,focus:`oklch(0.525348 0.15373 294.176)`,accent:`oklch(0.525348 0.15373 294.176)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.950194 0.011956 300.733)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.950194 0.011956 300.733)`,mutedForeground:`oklch(0.529955 0.022319 321.556)`,placeholder:`oklch(0.529955 0.022319 321.556)`,secondaryLabel:`oklch(0.529955 0.022319 321.556)`,iconMuted:`oklch(0.529955 0.022319 321.556)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.941043 0.019582 4.235)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.549154 0.156188 45.359)`,warningSurface:`oklch(0.957054 0.016197 69.932)`,update:`oklch(0.525348 0.15373 294.176)`,updateForeground:`oklch(0.525348 0.15373 294.176)`,updateSurface:`oklch(0.90602 0.025754 299.867)`,accentSurface:`oklch(0.953326 0.004536 307.676)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.953326 0.004536 307.676)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.525348 0.15373 294.176)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.471003 0.16748 340.687)`,codeBackground:`oklch(0.976531 0.003855 303.226)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.976531 0.003855 303.226)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.529955 0.022319 321.556)`,sidebarControlSurface:`oklch(0.950194 0.011956 300.733)`,sidebarRowHover:`oklch(0.953326 0.004536 307.676)`,sidebarRowActive:`oklch(0.953326 0.004536 307.676)`,sidebarRowSelected:`oklch(0.953326 0.004536 307.676)`,sidebarBorder:`oklch(0.869608 0.018226 303.859)`,terminalBackground:`oklch(0.976531 0.003855 303.226)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.525348 0.15373 294.176)`,terminalSelection:`oklch(0.897143 0.028558 299.758)`,terminalScrollbar:`oklch(0.828195 0.008526 318.858)`,terminalScrollbarHover:`oklch(0.758596 0.010892 321.538)`},variants:{dark:{canvas:`oklch(0.225975 0.031062 293.741)`,chrome:`oklch(0.225975 0.031062 293.741)`,toolbar:`oklch(0.225975 0.031062 293.741)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.40874 0.058536 295.893)`,toolbarControl:`oklch(0.386739 0.024023 297.509)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.335291 0.026008 296.394)`,surface:`oklch(0.225975 0.031062 293.741)`,surfaceRaised:`oklch(0.225975 0.031062 293.741)`,surfaceOverlay:`oklch(0.386739 0.024023 297.509)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.663321 0.025932 301.862)`,border:`oklch(0.40874 0.058536 295.893)`,input:`oklch(0.46756 0.065775 296.265)`,focus:`oklch(0.671712 0.169136 293.929)`,accent:`oklch(0.671712 0.169136 293.929)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.291515 0.05276 294.209)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.291515 0.05276 294.209)`,mutedForeground:`oklch(0.663321 0.025932 301.862)`,placeholder:`oklch(0.663321 0.025932 301.862)`,secondaryLabel:`oklch(0.663321 0.025932 301.862)`,iconMuted:`oklch(0.663321 0.025932 301.862)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.291658 0.054707 352.238)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.318952 0.033845 51.646)`,update:`oklch(0.671712 0.169136 293.929)`,updateForeground:`oklch(0.671712 0.169136 293.929)`,updateSurface:`oklch(0.381668 0.081286 294.195)`,accentSurface:`oklch(0.335291 0.026008 296.394)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.335291 0.026008 296.394)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.671712 0.169136 293.929)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.813537 0.114101 337.23)`,codeBackground:`oklch(0.225975 0.031062 293.741)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.225975 0.031062 293.741)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.663321 0.025932 301.862)`,sidebarControlSurface:`oklch(0.291515 0.05276 294.209)`,sidebarRowHover:`oklch(0.335291 0.026008 296.394)`,sidebarRowActive:`oklch(0.335291 0.026008 296.394)`,sidebarRowSelected:`oklch(0.335291 0.026008 296.394)`,sidebarBorder:`oklch(0.40874 0.058536 295.893)`,terminalBackground:`oklch(0.225975 0.031062 293.741)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.671712 0.169136 293.929)`,terminalSelection:`oklch(0.395417 0.085554 294.182)`,terminalScrollbar:`oklch(0.578663 0.017888 302.229)`,terminalScrollbarHover:`oklch(0.676012 0.015271 305.433)`}},sidebarArtwork:!0},sn=[tn,nn,rn,an,on],cn=`orchid`,ln=`grove`,un=`ocean`,dn=`ember`,fn=`iris`,R=`t3code:themes:v1`,pn=`t3code:theme-follow-system`,mn=`t3code:theme-appearance-mode`,hn=`t3code:theme-halves:v1`,gn=`t3-chat-dark`,_n=a,vn=new Set(Qt),yn=[],bn=new Set,z=null,xn=new Set,Sn=null;function Cn(){return Sn}function wn(e){return xn.add(e),()=>xn.delete(e)}function Tn(e){if(Sn!==e){Sn=e;for(let e of xn)e()}}function B(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function En(e){return e===`light`||e===`dark`}function Dn(e){return typeof e==`string`&&H(e)!==null}function On(e){return typeof e==`string`&&/^[a-z0-9](?:[a-z0-9-]{0,47})$/.test(e)}function kn(e){return typeof e==`string`&&e.trim().length>0&&e.trim().length<=48}function An(e){return B(e)&&typeof e.id==`string`&&/^[a-z0-9][a-z0-9.:-]{0,127}$/i.test(e.id)&&kn(e.label)?{id:e.id,label:e.label.trim()}:void 0}function jn(e){let t={};for(let[n,r]of Object.entries(e)){let e=H(r);vn.has(n)&&e&&(t[n]=e)}return t}function Mn(e,t){return B(e)?{...Z(t),...jn(e)}:null}function Nn(e,t){if(e===void 0)return;if(!B(e))return null;let n={};for(let[r,i]of Object.entries(e)){if(!En(r))return null;if(r===t)continue;let e=Mn(i,r);if(!e)return null;n[r]=e}return Object.keys(n).length>0?n:void 0}function Pn(e){if(!B(e)||!On(e.id)||L.has(e.id)||!kn(e.label)||!En(e.appearance))return null;let t=Mn(e.colors,e.appearance);if(!t)return null;let n=Nn(e.variants,e.appearance);if(e.variants!==void 0&&n===null)return null;let r=An(e.collection);return{id:e.id,label:e.label.trim(),appearance:e.appearance,colors:t,...n?{variants:n}:{},...r?{collection:r}:{},...e.managed===!0?{managed:!0}:{}}}function Fn(e){let t=[];for(let n of e){let e=Pn(n);e&&!t.some(t=>t.id===e.id)&&t.push(e)}return t}function In(){if(typeof window>`u`)return{status:`ready`,storedThemes:[],themes:[]};let e;try{e=window.localStorage.getItem(R)}catch(e){return{status:`unavailable`,reason:`storage-unavailable`,cause:e}}if(!e)return{status:`ready`,storedThemes:[],themes:[]};let t;try{t=JSON.parse(e)}catch{return{status:`unavailable`,reason:`malformed`}}return Array.isArray(t)?{status:`ready`,storedThemes:t,themes:Fn(t)}:{status:`unavailable`,reason:`malformed`}}function Ln(){return z===null&&(z=In()),z}function Rn(){for(let e of bn)e()}function zn(){z=null,Rn()}var Bn=[];function Vn(){let e=Ln();return e.status===`ready`?e.themes:Bn}function Hn(){return yn}function Un(e){return!r(yn,e)&&(yn=e,Rn(),!0)}function Wn(e){return L.has(e)}function Gn(e){return Ir().themes.filter(t=>t.collection?.id===e)}function Kn(e){if(bn.add(e),typeof window>`u`)return()=>bn.delete(e);let t=e=>{(e.key===`t3code:themes:v1`||e.key===null)&&zn()};return window.addEventListener(`storage`,t),()=>{bn.delete(e),window.removeEventListener(`storage`,t)}}var qn={...Zt,[gn]:cn,"t3-grove":ln,"t3-ocean":un,"t3-ember":dn,"t3-iris":fn};function Jn(e){return qn[e]??e}function Yn(e){return e===gn?e:Jn(e)}function Xn(e){return Jn(e)}function Zn(e){return e===gn?`dark`:null}function Qn(e){return e===`dark`?er??=ur(en):$n??=ur($t)}var $n,er,tr={r:255,g:250,b:255},nr={r:36,g:21,b:35},rr={r:255,g:255,b:255},ir={r:0,g:0,b:0},ar=ie(`oklch`);function or(e){if(typeof e!=`string`)return null;let t=e.trim(),n=ve(t);if(!n)return null;let r=ar(n),i=r.l??0,a=r.c??0,o=r.h??0,s=/\/\s*none\s*\)$/i.test(t)?0:r.alpha??1;return[i,a,o,s].every(Number.isFinite)?{color:{L:Math.min(1,Math.max(0,i)),C:Math.max(0,a),h:o},alpha:Math.min(1,Math.max(0,s))}:null}function sr(e,t){return(Math.abs(e)<10**-t/2?0:e).toFixed(t).replace(/(?:\.0+|(?:(\.[0-9]*?)0+))$/,`$1`)}function V(e,t=1){let n=e.C<5e-7?0:(e.h%360+360)%360,r=`${sr(e.L,6)} ${sr(e.C,6)} ${sr(n,3)}`;return t<1?`oklch(${r} / ${sr(t,4)})`:`oklch(${r})`}function H(e){let t=or(e);return t?V(t.color,t.alpha):null}function cr(e){let t=or(e),n=t?{rgb:J(t.color),alpha:t.alpha}:null;if(!n)return null;let r=lr(n.rgb);return n.alpha>=1?r:`${r}${Math.round(n.alpha*255).toString(16).padStart(2,`0`)}`}function U(e,t){let n=or(e);return n?J(n.color):t}function lr(e){return`#${[e.r,e.g,e.b].map(e=>Math.round(Math.min(255,Math.max(0,e))).toString(16).padStart(2,`0`)).join(``)}`}function W(e){return V(q(e))}function ur(e){return Object.fromEntries(Qt.map(t=>{let n=H(e[t]);if(!n)throw Error(`The color for "${t}" must be a literal CSS color such as oklch(0.62 0.2 280).`);return[t,n]}))}function dr(e){return{...e,colors:ur(e.colors),...e.variants?{variants:Object.fromEntries(Object.entries(e.variants).map(([e,t])=>[e,ur(t)]))}:{}}}function G(e,t,n){return{r:e.r+(t.r-e.r)*n,g:e.g+(t.g-e.g)*n,b:e.b+(t.b-e.b)*n}}function K(e){let t=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};return .2126*t(e.r)+.7152*t(e.g)+.0722*t(e.b)}function fr(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function pr(e){let t=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;return Math.round(Math.min(1,Math.max(0,t))*255)}function q(e){let t=fr(e.r),n=fr(e.g),r=fr(e.b),i=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),a=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),o=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),s=.2104542553*i+.793617785*a-.0040720468*o,c=1.9779984951*i-2.428592205*a+.4505937099*o,l=.0259040371*i+.7827717662*a-.808675766*o;return{L:s,C:Math.hypot(c,l),h:Math.atan2(l,c)*180/Math.PI}}function mr({L:e,C:t,h:n}){let r=n*Math.PI/180,i=t*Math.cos(r),a=t*Math.sin(r),o=(e+.3963377774*i+.2158037573*a)**3,s=(e-.1055613458*i-.0638541728*a)**3,c=(e-.0894841775*i-1.291485548*a)**3;return{r:4.0767416621*o-3.3077115913*s+.2309699292*c,g:-1.2684380046*o+2.6097574011*s-.3413193965*c,b:-.0041960863*o-.7034186147*s+1.707614701*c}}function hr(e){let t=t=>{let n=mr({...e,C:t});return[n.r,n.g,n.b].every(e=>e>=-1e-4&&e<=1.0001)};if(t(e.C))return e;let n=0,r=e.C,i=1e-6,a=Math.max(1,Math.ceil(Math.log2(Math.max(e.C,i))-Math.log2(i)));for(let e=0;e<a;e+=1){let e=(n+r)/2;t(e)?n=e:r=e}return{...e,C:n}}function J(e){let t=mr(hr(e));return{r:pr(t.r),g:pr(t.g),b:pr(t.b)}}function gr(e){return V(hr(e))}function _r(e,t,n,r){let i=r===`lighter`?e.L:0,a=r===`lighter`?1:e.L,o={...e};if(Y(J(o),t)>=n)return o;for(let s=0;s<18;s+=1){let s=(i+a)/2;o={...e,L:s},Y(J(o),t)>=n?r===`lighter`?a=s:i=s:r===`lighter`?i=s:a=s}return{...e,L:r===`lighter`?a:i}}var vr={light:{error:`#fb2c36`,errorForeground:`#c10007`,warning:`#fe9a00`,warningForeground:`#bb4d00`},dark:{error:`#fb414a`,errorForeground:`#ff6467`,warning:`#fe9a00`,warningForeground:`#ffb900`}};function yr(e){let t=K(e)<.179?`dark`:`light`,n=vr[t],r=t===`dark`?.16:.08,i=t=>G(e,U(t,e),r),a=(n,r)=>gr(_r(q(U(n,e)),r,4.6,t===`dark`?`lighter`:`darker`)),o=i(n.error),s=i(n.warning);return{error:H(n.error),errorForeground:a(n.errorForeground,o),errorSurface:W(o),warning:H(n.warning),warningForeground:a(n.warningForeground,s),warningSurface:W(s)}}function br(e,t,n){let r=Z(e),i=U(t,e===`dark`?{r:24,g:15,b:27}:{r:250,g:245,b:250}),a=U(n,{r:168,g:67,b:112}),o=q(i),s=q(a),c=K(i)<.179,l=s.C<.02?o.h:s.h,u=Math.min(.045,Math.max(.008,s.C*.22)),d=c?1:-1,f=(e,t=u)=>({L:Math.min(.98,Math.max(.05,o.L+d*e)),C:t,h:l}),p=e=>gr(e),m={L:c?.95:.2,C:Math.min(.035,s.C*.25),h:l},h=J(_r(m,i,7,c?`lighter`:`darker`)),g=wr(i,h),ee={L:Math.min(.85,Math.max(.35,s.L+(c?.06:-.02))),C:Math.max(s.C*.9,.06),h:(l+50)%360},te=J(ee),ne=X(te),re=X(a),ie=f(.045,u*1.4),_=J(ie),ae=f(.015),v=f(.05),oe=J(v),se=f(.075),y=f(c?.16:.12,Math.min(.07,s.C*.35)),ce=f(c?.21:.16,Math.min(.08,s.C*.4)),le=f(c?.1:.06,Math.min(.09,s.C*.5)),ue=J(le),de=f(c?.06:.04,Math.min(.06,s.C*.35)),b=J(de),x=f(c?.13:.08,Math.min(.11,s.C*.55)),S=J(x),C=f(c?.16:.1,Math.min(.13,s.C*.6)),fe=J(C),w=f(.035,u*.8),T=f(c?.14:.09,Math.min(.12,s.C*.55)),E=e=>gr(_r(m,e,4.6,c?`lighter`:`darker`)),pe=W(xr(b,h,1,4.6)),me=W(xr(oe,h,1,4.6)),he=J(f(.22,Math.min(.12,s.C))),ge=J(f(.4,Math.min(.18,s.C))),_e={...ee,L:ee.L+(c?.06:-.06)};return{...r,...yr(i),canvas:W(i),chrome:W(i),toolbar:W(i),toolbarForeground:W(h),toolbarBorder:p(f(c?.14:.1,Math.min(.08,s.C*.4))),toolbarControl:p(f(c?.09:.05,u*1.3)),toolbarControlForeground:W(h),toolbarControlHover:p(f(c?.14:.09,u*1.6)),surface:p(ae),surfaceRaised:p(v),surfaceOverlay:p(se),text:W(h),textMuted:W(g),border:p(y),input:p(ce),focus:W(a),accent:W(a),accentForeground:W(re),secondary:p(le),secondaryForeground:E(ue),muted:p(de),mutedForeground:pe,placeholder:me,secondaryLabel:W(g),iconMuted:W(g),update:W(a),updateForeground:E(J(T)),updateSurface:p(T),accentSurface:p(x),accentSurfaceForeground:E(S),messageSurface:p(C),messageForeground:E(fe),messageAction:W(te),messageActionForeground:W(ne),messageActionHover:p(_e),codeBackground:p(w),codeForeground:W(h),searchMatchBackground:W(he),searchMatchForeground:W(X(he)),searchMatchActiveBackground:W(ge),searchMatchActiveForeground:W(X(ge)),sidebar:p(ie),sidebarForeground:E(_),sidebarMutedForeground:W(wr(_,h)),sidebarControlSurface:p(f(c?.1:.07,u*1.5)),sidebarRowHover:p(f(c?.08:.06,Math.min(.08,s.C*.45))),sidebarRowActive:p(f(c?.12:.09,Math.min(.1,s.C*.55))),sidebarRowSelected:p(f(c?.14:.1,Math.min(.11,s.C*.6))),sidebarBorder:p(f(c?.17:.12,Math.min(.08,s.C*.4))),terminalBackground:W(i),terminalForeground:W(h),terminalCursor:W(a),terminalSelection:p(f(c?.18:.12,Math.min(.12,s.C*.55))),terminalScrollbar:p(f(c?.22:.16,u)),terminalScrollbarHover:p(f(c?.3:.22,u))}}function Y(e,t){let n=K(e),r=K(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function X(e){let t=Y(e,tr),n=Y(e,nr);return Math.max(t,n)>=4.5?t>=n?tr:nr:Y(e,rr)>=Y(e,ir)?rr:ir}function xr(e,t,n,r){let i=G(t,e,n);if(Y(i,e)>=r)return i;let a=t,o=0,s=n;for(let n=0;n<12;n+=1){let n=(o+s)/2,i=G(t,e,n);Y(i,e)>=r?(a=i,o=n):s=n}return a}var Sr=4.705,Cr=5.082;function wr(e,t){return xr(e,t,1,K(e)<.179?Cr:Sr)}function Z(e){return e===`dark`?tn.variants.dark:tn.colors}function Tr(e,t,n,r){let i=or(r);if(!i)return{...t,[n]:r};let a=V(i.color,i.alpha),o=U(t.canvas,e===`dark`?{r:24,g:15,b:27}:{r:250,g:245,b:250}),s=J(i.color),c=e=>G(e,s,i.alpha),l=c(o),u=U(t.accent,{r:168,g:67,b:112}),d=K(o)<.179,f=K(l)<.179,p=e=>W(e),m=e=>p(X(e)),h=e=>gr(_r(i.color,e,4.6,K(e)<.179?`lighter`:`darker`)),g=()=>{let e=G(o,l,d?.16:.08);return{foreground:h(e),surface:p(e)}};switch(n){case`canvas`:return{...t,canvas:a,chrome:a,toolbar:a};case`surface`:case`surfaceRaised`:case`surfaceOverlay`:case`input`:case`sidebarControlSurface`:return{...t,[n]:a};case`text`:return{...t,text:a,toolbarForeground:a,toolbarControlForeground:a};case`mutedForeground`:return{...t,textMuted:a,mutedForeground:a,placeholder:a,secondaryLabel:a,iconMuted:a,sidebarMutedForeground:a};case`border`:return{...t,border:a,toolbarBorder:a,sidebarBorder:a};case`secondary`:return{...t,secondary:a,secondaryForeground:m(l),muted:a,toolbarControl:a};case`accentSurface`:return{...t,accentSurface:a,accentSurfaceForeground:m(l),toolbarControlHover:a};case`accent`:{let e=G(o,l,d?.32:.16);return{...t,accent:a,accentForeground:m(l),focus:a,update:a,updateForeground:h(e),updateSurface:p(e),terminalCursor:a}}case`messageAction`:{let e=X(l),n=G(s,e===tr||e===rr?ir:rr,.12);return{...t,messageAction:a,messageActionForeground:p(e),messageActionHover:V(q(n),i.alpha)}}case`messageSurface`:return{...t,messageSurface:a,messageForeground:m(l)};case`searchMatchBackground`:return{...t,searchMatchBackground:p(l),searchMatchForeground:m(l)};case`searchMatchActiveBackground`:return{...t,searchMatchActiveBackground:p(l),searchMatchActiveForeground:m(l)};case`codeBackground`:return{...t,codeBackground:a,codeForeground:m(l)};case`sidebar`:return{...t,sidebar:a,sidebarForeground:m(l)};case`sidebarRowSelected`:{let e=U(t.sidebar,o),n=c(e);return{...t,sidebarRowHover:p(G(e,n,.5)),sidebarRowActive:p(G(e,n,.8)),sidebarRowSelected:a}}case`terminalBackground`:{let e=X(l);return{...t,terminalBackground:a,terminalForeground:p(e),terminalSelection:p(G(l,u,f?.35:.18)),terminalScrollbar:p(G(l,e,f?.42:.22)),terminalScrollbarHover:p(G(l,e,f?.55:.32))}}case`error`:{let e=g();return{...t,error:a,errorForeground:e.foreground,errorSurface:e.surface}}case`warning`:{let e=g();return{...t,warning:a,warningForeground:e.foreground,warningSurface:e.surface}}default:return{...t,[n]:a}}}var Er=sn;function Q(e){let t=Xn(e);return Er.find(e=>e.id===t)??Vn().find(e=>e.id===t)??yn.find(e=>e.id===t)??null}function Dr(e){let t=Xn(e);return Er.find(e=>e.id===t)?.sidebarArtwork===!0}function Or(e){let t=kr(e);return t.length===1?t[0]:null}function $(e,t){return t===e.appearance?e.colors:e.variants?.[t]??null}function kr(e){return[`light`,`dark`].filter(t=>$(e,t)!==null)}function Ar(e){return e===`system`?null:e===`light`||e===`dark`?e:Zn(e)||(Q(e)?.appearance??null)}function jr(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,48)||`custom-theme`}var Mr=class extends i()(`ThemeLibraryStorageError`,{storageKey:a,operation:n([`read`,`write`]),reason:n([`malformed`,`storage-unavailable`]),cause:t(e())}){get message(){let e=this.operation===`read`?`from`:`to`;return`Failed to ${this.operation} the theme library ${e} ${this.storageKey}.`}};function Nr(e,t){if(typeof window<`u`){try{window.localStorage.setItem(R,JSON.stringify(e)),z={status:`ready`,storedThemes:e,themes:t}}catch(e){throw new Mr({storageKey:R,operation:`write`,reason:`storage-unavailable`,cause:e})}Rn()}}function Pr(e){if(e.status===`unavailable`)throw new Mr({storageKey:R,operation:`read`,reason:e.reason,...`cause`in e?{cause:e.cause}:{}});return e}function Fr(){return Pr(Ln())}function Ir(){return Pr(In())}function Lr(e,t){return B(e)&&e.id===t}function Rr(e,t){return B(e)&&B(e.collection)&&e.collection.id===t}function zr(e){if(L.has(e.id))throw Error(`The theme id "${e.id}" is reserved.`);let t=Fr();if(Er.some(t=>t.id===e.id)||t.storedThemes.some(t=>Lr(t,e.id)))throw Error(`A theme named "${e.label}" is already installed.`);let n=dr(e),r=[...t.themes,n];return Nr([...t.storedThemes,n],r),n}function Br(e){if(L.has(e.id))throw Error(`The theme id "${e.id}" is reserved.`);let t=Fr(),n=t.themes,r=n.findIndex(t=>t.id===e.id);if(r===-1)throw Error(`The theme "${e.label}" is not installed.`);let i=dr(e),a=[...n];a[r]=i;let o=[],s=!1;for(let n of t.storedThemes)Lr(n,e.id)?s||=(o.push(i),!0):o.push(n);return Nr(o,a),i}function Vr(e,t,n){if(t.length===0)throw Error(`A theme collection cannot be empty.`);let r=t.map(e=>Pn(e));if(r.some(t=>t===null||t.collection?.id!==e)||new Set(r.map(e=>e?.id)).size!==r.length)throw Error(`That theme collection is invalid.`);let i=r,a=Ir(),o=a.themes.filter(t=>t.collection?.id===e);if(n?.expectedCollection&&JSON.stringify(o)!==JSON.stringify(n.expectedCollection))throw Error(`Your installed themes changed while this package was downloading. Try again.`);let s=new Set(Er.map(e=>e.id));for(let t of a.storedThemes)!Rr(t,e)&&B(t)&&typeof t.id==`string`&&s.add(t.id);let c=i.find(e=>L.has(e.id)||s.has(e.id));if(c)throw Error(`A theme named "${c.label}" is already installed.`);let l=[],u=!1;for(let t of a.storedThemes)Rr(t,e)?u||=(l.push(...i),!0):l.push(t);return u||l.push(...i),Nr(l,Fn(l)),i}function Hr(e){Ur([e])}function Ur(e){let t=new Set(e);if(t.size===0)return;let n=Fr(),r=n.themes.filter(e=>!t.has(e.id));r.length!==n.themes.length&&Nr(n.storedThemes.filter(e=>!B(e)||typeof e.id!=`string`||!t.has(e.id)),r)}function Wr(e){if(!B(e))throw Error(`Theme colors must be objects.`);let t={};for(let[n,r]of Object.entries(e)){if(!vn.has(n))throw Error(`"${n}" is not a supported theme color role.`);let e=H(r);if(!e)throw Error(`The color for "${n}" must be a literal CSS color such as oklch(0.62 0.2 280).`);t[n]=e}if(Object.keys(t).length===0)throw Error(`Add at least one color role to the theme file.`);return t}function Gr(e){if(!B(e))throw Error(`Theme files must contain a JSON object.`);if(e.version!==1)throw Error(`This theme file uses an unsupported version. Expected 1.`);let t=e.name,n=e.appearance,r=e.colors;if(!kn(t))throw Error(`Theme files need a name (48 characters or fewer).`);if(!En(n))throw Error(`Theme files need an appearance of "light" or "dark".`);if(!B(r))throw Error(`Theme files need a colors object.`);let i=e.id===void 0?jr(t):e.id;if(!On(i))throw Error(`Theme ids may only contain lowercase letters, numbers, and hyphens.`);if(L.has(i))throw Error(`The theme id "${i}" is reserved.`);let a=Wr(r),o=An(e.collection);if(e.collection!==void 0&&!o)throw Error(`Theme collections need a valid id and label.`);let s=Z(n),c={};if(e.variants!==void 0){if(!B(e.variants))throw Error(`Theme variants must be an object.`);for(let[t,r]of Object.entries(e.variants)){if(!En(t))throw Error(`Theme variants may only be named "light" or "dark".`);if(t===n)throw Error(`Theme variants must not repeat the base appearance "${n}".`);c[t]={...Z(t),...Wr(r)}}}return{id:i,label:t.trim(),appearance:n,colors:{...s,...a},...Object.keys(c).length>0?{variants:c}:{},...o?{collection:o}:{},...e.managed===!0?{managed:!0}:{}}}function Kr(e){let t=dr(e),n={version:1,id:t.id,name:t.label,appearance:t.appearance,colors:t.colors,...t.variants?{variants:t.variants}:{},...t.collection?{collection:t.collection}:{},...t.managed?{managed:!0}:{}};return`${JSON.stringify(n,null,2)}\n`}var qr={canvas:`--app-theme-canvas`,chrome:`--app-theme-chrome`,toolbar:`--app-theme-toolbar`,toolbarForeground:`--app-theme-toolbar-foreground`,toolbarBorder:`--app-theme-toolbar-border`,toolbarControl:`--app-theme-toolbar-control`,toolbarControlForeground:`--app-theme-toolbar-control-foreground`,toolbarControlHover:`--app-theme-toolbar-control-hover`,surface:`--app-theme-surface`,surfaceRaised:`--app-theme-surface-raised`,surfaceOverlay:`--app-theme-surface-overlay`,text:`--app-theme-text`,textMuted:`--app-theme-text-muted`,border:`--app-theme-border`,input:`--app-theme-input`,focus:`--app-theme-focus`,accent:`--app-theme-accent`,accentForeground:`--app-theme-accent-foreground`,secondary:`--app-theme-secondary`,secondaryForeground:`--app-theme-secondary-foreground`,muted:`--app-theme-muted`,mutedForeground:`--app-theme-muted-foreground`,placeholder:`--app-theme-placeholder`,secondaryLabel:`--app-theme-secondary-label`,iconMuted:`--app-theme-icon-muted`,error:`--app-theme-error`,errorForeground:`--app-theme-error-foreground`,errorSurface:`--app-theme-error-surface`,warning:`--app-theme-warning`,warningForeground:`--app-theme-warning-foreground`,warningSurface:`--app-theme-warning-surface`,update:`--app-theme-update`,updateForeground:`--app-theme-update-foreground`,updateSurface:`--app-theme-update-surface`,accentSurface:`--app-theme-accent-surface`,accentSurfaceForeground:`--app-theme-accent-surface-foreground`,messageSurface:`--app-theme-message-surface`,messageForeground:`--app-theme-message-foreground`,messageAction:`--app-theme-message-action`,messageActionForeground:`--app-theme-message-action-foreground`,messageActionHover:`--app-theme-message-action-hover`,codeBackground:`--app-theme-code-background`,codeForeground:`--app-theme-code-foreground`,searchMatchBackground:`--app-theme-search-match-background`,searchMatchForeground:`--app-theme-search-match-foreground`,searchMatchActiveBackground:`--app-theme-search-match-active-background`,searchMatchActiveForeground:`--app-theme-search-match-active-foreground`,sidebar:`--app-theme-sidebar`,sidebarForeground:`--app-theme-sidebar-foreground`,sidebarMutedForeground:`--app-theme-sidebar-muted-foreground`,sidebarControlSurface:`--app-theme-sidebar-control-surface`,sidebarRowHover:`--app-theme-sidebar-row-hover`,sidebarRowActive:`--app-theme-sidebar-row-active`,sidebarRowSelected:`--app-theme-sidebar-row-selected`,sidebarBorder:`--app-theme-sidebar-border`,terminalBackground:`--app-theme-terminal-background`,terminalForeground:`--app-theme-terminal-foreground`,terminalCursor:`--app-theme-terminal-cursor`,terminalSelection:`--app-theme-terminal-selection-background`,terminalScrollbar:`--app-theme-terminal-scrollbar`,terminalScrollbarHover:`--app-theme-terminal-scrollbar-hover`};function Jr(e){return qr[e]}var Yr=`__preview`;function Xr(e,t){if(typeof document>`u`)return;let n=document.documentElement;if(n?.style){Tn(!1),n.dataset.themeId=Yr,n.classList.toggle(`dark`,t===`dark`);for(let[t,r]of Object.entries(e))Dn(r)&&n.style.setProperty(qr[t],r)}}function Zr(e,t){if(typeof document>`u`)return;let n=document.documentElement;if(!n?.style)return;Tn(null);let r=Q(e);if(r){n.dataset.themeId=r.id;let i=$(r,t??Zn(e)??r.appearance)??r.colors;for(let[e,t]of Object.entries(i))n.style.setProperty(qr[e],t);return}delete n.dataset.themeId;for(let e of Object.values(qr))n.style.removeProperty(e)}function Qr(e,t,n,r,i){let a=t?`dark`:`light`,o=r??(n??e===`system`?`system`:null);if(o===`system`){if(i?.[a])return a;let t=Q(e);return t&&$(t,a)===null?t.appearance:a}if(o===`light`||o===`dark`){if(i?.[o])return o;let t=Q(e);return t&&$(t,o)===null?t.appearance:o}return Ar(e)??`light`}function $r(e,t,n,r){let i=n??(t??e===`system`?`system`:null);if(i===`system`){let t=Q(e),n=r?.light!==void 0||t!==null&&$(t,`light`)!==null,i=r?.dark!==void 0||t!==null&&$(t,`dark`)!==null;return t&&(!n||!i)?t.appearance:`system`}if(i===`light`||i===`dark`){if(r?.[i])return i;let t=Q(e);return t&&$(t,i)===null?t.appearance:i}return Ar(e)??`system`}function ei(e){return e===`light`||e===`dark`||e===`system`||Q(e)!==null}function ti(e){if(!e)return null;try{let t=JSON.parse(e);if(!B(t))return null;let n={};for(let e of[`light`,`dark`]){let r=t[e];if(typeof r!=`string`)continue;let i=Q(r);i&&$(i,e)!==null&&(n[e]=i.id)}return n.light!==void 0||n.dark!==void 0?n:null}catch{return null}}function ni(e,t,n){return t?.[n]??e}export{$t as $,Hr as A,wn as B,zn as C,jn as D,Dn as E,ni as F,Tr as G,cr as H,Kr as I,nn as J,sn as K,Un as L,Vr as M,$r as N,Gr as O,Qr as P,en as Q,Or as R,zr as S,Wn as T,jr as U,Dr as V,Br as W,rn as X,on as Y,tn as Z,$ as _,Yr as a,Ar as b,Zr as c,Vn as d,Qt as et,Z as f,Jr as g,Gn as h,hn as i,Ur as j,ti as k,Yn as l,Qn as m,mn as n,_n as o,Hn as p,an as q,pn as r,Xr as s,R as t,br as u,Q as v,ei as w,Cn as x,kr as y,Kn as z};
5
- //# sourceMappingURL=themePalette-zVYGoviO.js.map
4
+ `||t[x]===` `||t[x]===` `);)x++;let e;if(S(t)&&(e=w(t),e.type!==b.Hue)){n.push({type:b.Alpha,value:e});continue}if(C(t)&&E(t)===`none`){n.push({type:b.Alpha,value:{type:b.None,value:void 0}});continue}return}if(/\d/.test(r)){x--,n.push(w(t));continue}if(ue.test(r)){x--,n.push(pe(t));continue}return}return n}function he(e){e._i=0;let t=e[e._i++];if(!t||t.type!==b.Function||t.value!==`color`||(t=e[e._i++],t.type!==b.Ident))return;let n=oe[t.value];if(!n)return;let r={mode:n},i=ge(e,!1);if(!i)return;let a=ce(n).channels;for(let e=0,t,n;e<a.length;e++)t=i[e],n=a[e],t.type!==b.None&&(r[n]=t.type===b.Number?t.value:t.value/100,n===`alpha`&&(r[n]=Math.max(0,Math.min(1,r[n]))));return r}function ge(e,t){let n=[],r;for(;e._i<e.length;){if(r=e[e._i++],r.type===b.None||r.type===b.Number||r.type===b.Alpha||r.type===b.Percentage||t&&r.type===b.Hue){n.push(r);continue}if(r.type===b.ParenClose){if(e._i<e.length)return;continue}return}if(!(n.length<3||n.length>4)){if(n.length===4){if(n[3].type!==b.Alpha)return;n[3]=n[3].value}return n.length===3&&n.push({type:b.None,value:void 0}),n.every(e=>e.type!==b.Alpha)?n:void 0}}function _e(e,t){e._i=0;let n=e[e._i++];if(!n||n.type!==b.Function)return;let r=ge(e,t);if(r)return r.unshift(n.value),r}var ve=e=>{if(typeof e!=`string`)return;let t=me(e),n=t?_e(t,!0):void 0,r,i=0,a=v.length;for(;i<a;)if((r=v[i++](e,n))!==void 0)return r;return t?he(t):void 0};function ye(e,t){if(!t||t[0]!==`rgb`&&t[0]!==`rgba`)return;let n={mode:`rgb`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.r=r.type===b.Number?r.value/255:r.value/100),i.type!==b.None&&(n.g=i.type===b.Number?i.value/255:i.value/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value/255:a.value/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var be=e=>e===`transparent`?{mode:`rgb`,r:0,g:0,b:0,alpha:0}:void 0,xe=(e,t,n)=>e+n*(t-e),Se=e=>{let t=[];for(let n=0;n<e.length-1;n++){let r=e[n],i=e[n+1];r===void 0&&i===void 0?t.push(void 0):r!==void 0&&i!==void 0?t.push([r,i]):t.push(r===void 0?[i,i]:[r,r])}return t},D=(e=>t=>{let n=Se(t);return t=>{let r=t*n.length,i=t>=1?n.length-1:Math.max(Math.floor(r),0),a=n[i];return a===void 0?void 0:e(a[0],a[1],r-i)}})(xe),O=e=>{let t=!1,n=e.map(e=>e===void 0?1:(t=!0,e));return t?n:e},k={mode:`rgb`,channels:[`r`,`g`,`b`,`alpha`],parse:[ye,u,ne,c,be,`srgb`],serialize:`srgb`,interpolate:{r:D,g:D,b:D,alpha:{use:D,fixup:O}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},Ce=(e=0)=>Math.abs(e)**(563/256)*Math.sign(e),we=e=>{let t=Ce(e.r),n=Ce(e.g),r=Ce(e.b),i={mode:`xyz65`,x:.5766690429101305*t+.1855582379065463*n+.1882286462349947*r,y:.297344975250536*t+.6273635662554661*n+.0752914584939979*r,z:.0270313613864123*t+.0706888525358272*n+.9913375368376386*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Te=e=>Math.abs(e)**(256/563)*Math.sign(e),Ee=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`a98`,r:Te(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*n),g:Te(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*n),b:Te(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*n)};return r!==void 0&&(i.alpha=r),i},De=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*((t+.055)/1.055)**2.4},A=({r:e,g:t,b:n,alpha:r})=>{let i={mode:`lrgb`,r:De(e),g:De(t),b:De(n)};return r!==void 0&&(i.alpha=r),i},Oe=e=>{let{r:t,g:n,b:r,alpha:i}=A(e),a={mode:`xyz65`,x:.4123907992659593*t+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*r};return i!==void 0&&(a.alpha=i),a},ke=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*t**(1/2.4)-.055):e*12.92},Ae=({r:e,g:t,b:n,alpha:r},i=`rgb`)=>{let a={mode:i,r:ke(e),g:ke(t),b:ke(n)};return r!==void 0&&(a.alpha=r),a},j=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Ae({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n});return r!==void 0&&(i.alpha=r),i},je={...k,mode:`a98`,parse:[`a98-rgb`],serialize:`a98-rgb`,fromMode:{rgb:e=>Ee(Oe(e)),xyz65:Ee},toMode:{rgb:e=>j(we(e)),xyz65:we}},M=e=>(e%=360)<0?e+360:e;function Me({h:e,s:t,l:n,alpha:r}){e=M(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=n+t*(n<.5?n:1-n),a=i-(i-n)*2*Math.abs(e/60%2-1),o;switch(Math.floor(e/60)){case 0:o={r:i,g:a,b:2*n-i};break;case 1:o={r:a,g:i,b:2*n-i};break;case 2:o={r:2*n-i,g:i,b:a};break;case 3:o={r:2*n-i,g:a,b:i};break;case 4:o={r:a,g:2*n-i,b:i};break;case 5:o={r:i,g:2*n-i,b:a};break;default:o={r:2*n-i,g:2*n-i,b:2*n-i}}return o.mode=`rgb`,r!==void 0&&(o.alpha=r),o}function Ne({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsl`,s:i===a?0:(i-a)/(1-Math.abs(i+a-1)),l:.5*(i+a)};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t<n)*6:i===t?(n-e)/(i-a)+2:(e-t)/(i-a)+4)*60),r!==void 0&&(o.alpha=r),o}var Pe=(e,t)=>{switch(t){case`deg`:return+e;case`rad`:return e/Math.PI*180;case`grad`:return e/10*9;case`turn`:return e*360}},Fe=RegExp(`^hsla?\\(\\s*${h}${g}${f}${g}${f}\\s*(?:,\\s*${p}\\s*)?\\)$`),Ie=e=>{let t=e.match(Fe);if(!t)return;let n={mode:`hsl`};return t[3]===void 0?t[1]!==void 0&&t[2]!==void 0&&(n.h=Pe(t[1],t[2])):n.h=+t[3],t[4]!==void 0&&(n.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(n.l=Math.min(Math.max(0,t[5]/100),1)),t[6]===void 0?t[7]!==void 0&&(n.alpha=Math.max(0,Math.min(1,+t[7]))):n.alpha=Math.max(0,Math.min(1,t[6]/100)),n};function Le(e,t){if(!t||t[0]!==`hsl`&&t[0]!==`hsla`)return;let n={mode:`hsl`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Percentage)return;n.h=r.value}if(i.type!==b.None){if(i.type===b.Hue)return;n.s=i.value/100}if(a.type!==b.None){if(a.type===b.Hue)return;n.l=a.value/100}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var Re=(e,t)=>e.map((n,r,i)=>{if(n===void 0)return n;let a=M(n);return r===0||e[r-1]===void 0?a:t(a-M(i[r-1]))}).reduce((e,t)=>!e.length||t===void 0||e[e.length-1]===void 0?(e.push(t),e):(e.push(t+e[e.length-1]),e),[]),ze=e=>Re(e,e=>Math.abs(e)<=180?e:e-360*Math.sign(e)),Be=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let n=M(e.h),r=M(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*i},Ve=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let n=M(e.h),r=M(t.h);return Math.abs(r-n)>180?n-(r-360*Math.sign(r-n)):r-n},He=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let n=M(e.h),r=M(t.h),i=Math.sin((r-n+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*i},Ue=e=>{let t=e.reduce((e,t)=>{if(t!==void 0){let n=t*Math.PI/180;e.sin+=Math.sin(n),e.cos+=Math.cos(n)}return e},{sin:0,cos:0}),n=Math.atan2(t.sin,t.cos)*180/Math.PI;return n<0?360+n:n},We={mode:`hsl`,toMode:{rgb:Me},fromMode:{rgb:Ne},channels:[`h`,`s`,`l`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[Le,Ie],serialize:e=>`hsl(${e.h===void 0?`none`:e.h} ${e.s===void 0?`none`:e.s*100+`%`} ${e.l===void 0?`none`:e.l*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:ze},s:D,l:D,alpha:{use:D,fixup:O}},difference:{h:Be},average:{h:Ue}};function Ge({h:e,s:t,v:n,alpha:r}){e=M(e===void 0?0:e),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.abs(e/60%2-1),a;switch(Math.floor(e/60)){case 0:a={r:n,g:n*(1-t*i),b:n*(1-t)};break;case 1:a={r:n*(1-t*i),g:n,b:n*(1-t)};break;case 2:a={r:n*(1-t),g:n,b:n*(1-t*i)};break;case 3:a={r:n*(1-t),g:n*(1-t*i),b:n};break;case 4:a={r:n*(1-t*i),g:n*(1-t),b:n};break;case 5:a={r:n,g:n*(1-t),b:n*(1-t*i)};break;default:a={r:n*(1-t),g:n*(1-t),b:n*(1-t)}}return a.mode=`rgb`,r!==void 0&&(a.alpha=r),a}function Ke({r:e,g:t,b:n,alpha:r}){e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.max(e,t,n),a=Math.min(e,t,n),o={mode:`hsv`,s:i===0?0:1-a/i,v:i};return i-a!==0&&(o.h=(i===e?(t-n)/(i-a)+(t<n)*6:i===t?(n-e)/(i-a)+2:(e-t)/(i-a)+4)*60),r!==void 0&&(o.alpha=r),o}var qe={mode:`hsv`,toMode:{rgb:Ge},parse:[`--hsv`],serialize:`--hsv`,fromMode:{rgb:Ke},channels:[`h`,`s`,`v`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,interpolate:{h:{use:D,fixup:ze},s:D,v:D,alpha:{use:D,fixup:O}},difference:{h:Be},average:{h:Ue}};function Je({h:e,w:t,b:n,alpha:r}){if(t===void 0&&(t=0),n===void 0&&(n=0),t+n>1){let e=t+n;t/=e,n/=e}return Ge({h:e,s:n===1?1:1-t/(1-n),v:1-n,alpha:r})}function Ye(e){let t=Ke(e);if(t===void 0)return;let n=t.s===void 0?0:t.s,r=t.v===void 0?0:t.v,i={mode:`hwb`,w:(1-n)*r,b:1-r};return t.h!==void 0&&(i.h=t.h),t.alpha!==void 0&&(i.alpha=t.alpha),i}function Xe(e,t){if(!t||t[0]!==`hwb`)return;let n={mode:`hwb`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Percentage)return;n.h=r.value}if(i.type!==b.None){if(i.type===b.Hue)return;n.w=i.value/100}if(a.type!==b.None){if(a.type===b.Hue)return;n.b=a.value/100}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var Ze={mode:`hwb`,toMode:{rgb:Je},fromMode:{rgb:Ye},channels:[`h`,`w`,`b`,`alpha`],ranges:{h:[0,360]},gamut:`rgb`,parse:[Xe],serialize:e=>`hwb(${e.h===void 0?`none`:e.h} ${e.w===void 0?`none`:e.w*100+`%`} ${e.b===void 0?`none`:e.b*100+`%`}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:ze},w:D,b:D,alpha:{use:D,fixup:O}},difference:{h:Ve},average:{h:Ue}},Qe=29**3/27,$e=216/29**3,N={X:.3457/.3585,Y:1,Z:.2958/.3585},P={X:.3127/.329,Y:1,Z:.3583/.329},et=e=>e**3>$e?e**3:(116*e-16)/Qe,tt=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz50`,x:et(a)*N.X,y:et(i)*N.Y,z:et(o)*N.Z};return r!==void 0&&(s.alpha=r),s},nt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Ae({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*n,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*n,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*n});return r!==void 0&&(i.alpha=r),i},rt=e=>nt(tt(e)),it=e=>{let{r:t,g:n,b:r,alpha:i}=A(e),a={mode:`xyz50`,x:.436065742824811*t+.3851514688337912*n+.14307845442264197*r,y:.22249319175623702*t+.7168870538238823*n+.06061979053616537*r,z:.013923904500943465*t+.09708128566574634*n+.7140993584005155*r};return i!==void 0&&(a.alpha=i),a},at=e=>e>$e?Math.cbrt(e):(Qe*e+16)/116,ot=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=at(e/N.X),a=at(t/N.Y),o=at(n/N.Z),s={mode:`lab`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s},st=e=>{let t=ot(it(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t};function ct(e,t){if(!t||t[0]!==`lab`)return;let n={mode:`lab`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.l=Math.min(Math.max(0,r.value),100)),i.type!==b.None&&(n.a=i.type===b.Number?i.value:i.value*125/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value:a.value*125/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var lt={mode:`lab`,toMode:{xyz50:tt,rgb:rt},fromMode:{xyz50:ot,rgb:st},channels:[`l`,`a`,`b`,`alpha`],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[ct],serialize:e=>`lab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{l:D,a:D,b:D,alpha:{use:D,fixup:O}}},ut=29**3/27,dt=216/29**3,ft=e=>e**3>dt?e**3:(116*e-16)/ut,pt=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+16)/116,a=t/500+i,o=i-n/200,s={mode:`xyz65`,x:ft(a)*P.X,y:ft(i)*P.Y,z:ft(o)*P.Z};return r!==void 0&&(s.alpha=r),s},mt=e=>j(pt(e)),ht=e=>e>dt?Math.cbrt(e):(ut*e+16)/116,gt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=ht(e/P.X),a=ht(t/P.Y),o=ht(n/P.Z),s={mode:`lab65`,l:116*a-16,a:500*(i-a),b:200*(a-o)};return r!==void 0&&(s.alpha=r),s},_t=e=>{let t=gt(Oe(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},vt={...lt,mode:`lab65`,parse:[`--lab-d65`],serialize:`--lab-d65`,toMode:{xyz65:pt,rgb:mt},fromMode:{xyz65:gt,rgb:_t},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},F=({l:e,a:t,b:n,alpha:r},i=`lch`)=>{t===void 0&&(t=0),n===void 0&&(n=0);let a=Math.sqrt(t*t+n*n),o={mode:i,l:e,c:a};return a&&(o.h=M(Math.atan2(n,t)*180/Math.PI)),r!==void 0&&(o.alpha=r),o},I=({l:e,c:t,h:n,alpha:r},i=`lab`)=>{n===void 0&&(n=0);let a={mode:i,l:e,a:t?t*Math.cos(n/180*Math.PI):0,b:t?t*Math.sin(n/180*Math.PI):0};return r!==void 0&&(a.alpha=r),a};function yt(e,t){if(!t||t[0]!==`lch`)return;let n={mode:`lch`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Hue)return;n.l=Math.min(Math.max(0,r.value),100)}if(i.type!==b.None&&(n.c=Math.max(0,i.type===b.Number?i.value:i.value*150/100)),a.type!==b.None){if(a.type===b.Percentage)return;n.h=a.value}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var bt={mode:`lch`,toMode:{lab:I,rgb:e=>rt(I(e))},fromMode:{rgb:e=>F(st(e)),lab:F},channels:[`l`,`c`,`h`,`alpha`],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[yt],serialize:e=>`lch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,interpolate:{h:{use:D,fixup:ze},c:D,l:D,alpha:{use:D,fixup:O}},difference:{h:He},average:{h:Ue}},xt={...bt,mode:`lch65`,parse:[`--lch-d65`],serialize:`--lch-d65`,toMode:{lab65:e=>I(e,`lab65`),rgb:e=>mt(I(e,`lab65`))},fromMode:{rgb:e=>F(_t(e),`lch65`),lab65:e=>F(e,`lch65`)},ranges:{l:[0,100],c:[0,150],h:[0,360]}},St={...k,mode:`lrgb`,toMode:{rgb:Ae},fromMode:{rgb:A},parse:[`srgb-linear`],serialize:`srgb-linear`},Ct=({l:e,a:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=(e+.3963377773761749*t+.2158037573099136*n)**3,a=(e-.1055613458156586*t-.0638541728258133*n)**3,o=(e-.0894841775298119*t-1.2914855480194092*n)**3,s={mode:`lrgb`,r:4.076741636075957*i-3.3077115392580616*a+.2309699031821044*o,g:-1.2684379732850317*i+2.6097573492876887*a-.3413193760026573*o,b:-.0041960761386756*i-.7034186179359362*a+1.7076146940746117*o};return r!==void 0&&(s.alpha=r),s},wt=({r:e,g:t,b:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*n),a=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*n),o=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*n),s={mode:`oklab`,l:.210454268309314*i+.7936177747023054*a-.0040720430116193*o,a:1.9779985324311684*i-2.42859224204858*a+.450593709617411*o,b:.0259040424655478*i+.7827717124575296*a-.8086757549230774*o};return r!==void 0&&(s.alpha=r),s},Tt=e=>{let t=wt(A(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Et=e=>Ae(Ct(e));function Dt(e,t){if(!t||t[0]!==`oklab`)return;let n={mode:`oklab`},[,r,i,a,o]=t;if(r.type!==b.Hue&&i.type!==b.Hue&&a.type!==b.Hue)return r.type!==b.None&&(n.l=Math.min(Math.max(0,r.type===b.Number?r.value:r.value/100),1)),i.type!==b.None&&(n.a=i.type===b.Number?i.value:i.value*.4/100),a.type!==b.None&&(n.b=a.type===b.Number?a.value:a.value*.4/100),o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var Ot={...lt,mode:`oklab`,toMode:{lrgb:Ct,rgb:Et},fromMode:{lrgb:wt,rgb:Tt},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[Dt],serialize:e=>`oklab(${e.l===void 0?`none`:e.l} ${e.a===void 0?`none`:e.a} ${e.b===void 0?`none`:e.b}${e.alpha<1?` / ${e.alpha}`:``})`};function kt(e,t){if(!t||t[0]!==`oklch`)return;let n={mode:`oklch`},[,r,i,a,o]=t;if(r.type!==b.None){if(r.type===b.Hue)return;n.l=Math.min(Math.max(0,r.type===b.Number?r.value:r.value/100),1)}if(i.type!==b.None&&(n.c=Math.max(0,i.type===b.Number?i.value:i.value*.4/100)),a.type!==b.None){if(a.type===b.Percentage)return;n.h=a.value}return o.type!==b.None&&(n.alpha=Math.min(1,Math.max(0,o.type===b.Number?o.value:o.value/100))),n}var At={...bt,mode:`oklch`,toMode:{oklab:e=>I(e,`oklab`),rgb:e=>Et(I(e,`oklab`))},fromMode:{rgb:e=>F(Tt(e),`oklch`),oklab:e=>F(e,`oklch`)},parse:[kt],serialize:e=>`oklch(${e.l===void 0?`none`:e.l} ${e.c===void 0?`none`:e.c} ${e.h===void 0?`none`:e.h}${e.alpha<1?` / ${e.alpha}`:``})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},jt=e=>{let{r:t,g:n,b:r,alpha:i}=A(e),a={mode:`xyz65`,x:.486570948648216*t+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*r,z:0*t+.0451133818589026*n+1.043944368900976*r};return i!==void 0&&(a.alpha=i),a},Mt=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i=Ae({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n},`p3`);return r!==void 0&&(i.alpha=r),i},Nt={...k,mode:`p3`,parse:[`display-p3`],serialize:`display-p3`,fromMode:{rgb:e=>Mt(Oe(e)),xyz65:Mt},toMode:{rgb:e=>j(jt(e)),xyz65:jt}},Pt=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*t**(1/1.8):16*e},Ft=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`prophoto`,r:Pt(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*n),g:Pt(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*n),b:Pt(e*0+t*0+1.2119675456389452*n)};return r!==void 0&&(i.alpha=r),i},It=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*t**1.8:e/16},Lt=e=>{let t=It(e.r),n=It(e.g),r=It(e.b),i={mode:`xyz50`,x:.7977666449006423*t+.1351812974005331*n+.0313477341283922*r,y:.2880748288194013*t+.7118352342418731*n+899369387256e-16*r,z:0*t+0*n+.8251046025104602*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},Rt={...k,mode:`prophoto`,parse:[`prophoto-rgb`],serialize:`prophoto-rgb`,fromMode:{xyz50:Ft,rgb:e=>Ft(it(e))},toMode:{xyz50:Lt,rgb:e=>nt(Lt(e))}},zt=1.09929682680944,Bt=.018053968510807,Vt=e=>{let t=Math.abs(e);return t>Bt?(Math.sign(e)||1)*(zt*t**.45-.09929682680944008):4.5*e},Ht=({x:e,y:t,z:n,alpha:r})=>{e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=0);let i={mode:`rec2020`,r:Vt(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*n),g:Vt(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*n),b:Vt(e*.0176398574453108-t*.0427706132578085+.9421031212354739*n)};return r!==void 0&&(i.alpha=r),i},Ut=1.09929682680944,Wt=.018053968510807,Gt=(e=0)=>{let t=Math.abs(e);return t<Wt*4.5?e/4.5:(Math.sign(e)||1)*((t+Ut-1)/Ut)**(1/.45)},Kt=e=>{let t=Gt(e.r),n=Gt(e.g),r=Gt(e.b),i={mode:`xyz65`,x:.6369580483012911*t+.1446169035862083*n+.1688809751641721*r,y:.262700212011267*t+.6779980715188708*n+.059301716469862*r,z:0*t+.0280726930490874*n+1.0609850577107909*r};return e.alpha!==void 0&&(i.alpha=e.alpha),i},qt={...k,mode:`rec2020`,fromMode:{xyz65:Ht,rgb:e=>Ht(Oe(e))},toMode:{xyz65:Kt,rgb:e=>j(Kt(e))},parse:[`rec2020`],serialize:`rec2020`},Jt={mode:`xyz50`,parse:[`xyz-d50`],serialize:`xyz-d50`,toMode:{rgb:nt,lab:ot},fromMode:{rgb:it,lab:tt},channels:[`x`,`y`,`z`,`alpha`],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:D,y:D,z:D,alpha:{use:D,fixup:O}}},Yt={mode:`xyz65`,toMode:{rgb:j,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz50`,x:1.0479298208405488*t+.0229467933410191*n-.0501922295431356*r,y:.0296278156881593*t+.990434484573249*n-.0170738250293851*r,z:-.0092430581525912*t+.0150551448965779*n+.7518742899580008*r};return i!==void 0&&(a.alpha=i),a}},fromMode:{rgb:Oe,xyz50:e=>{let{x:t,y:n,z:r,alpha:i}=e;t===void 0&&(t=0),n===void 0&&(n=0),r===void 0&&(r=0);let a={mode:`xyz65`,x:.9554734527042182*t-.0230985368742614*n+.0632593086610217*r,y:-.0283697069632081*t+1.0099954580058226*n+.021041398966943*r,z:.0123140016883199*t-.0205076964334779*n+1.3303659366080753*r};return i!==void 0&&(a.alpha=i),a}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:[`x`,`y`,`z`,`alpha`],parse:[`xyz`,`xyz-d65`],serialize:`xyz-d65`,interpolate:{x:D,y:D,z:D,alpha:{use:D,fixup:O}}};y(je),y(We),y(qe),y(Ze),y(lt),y(vt),y(bt),y(xt),y(St),y(Ot),y(At),y(Nt),y(Rt),y(qt),y(k),y(Jt),y(Yt);var Xt=[`orchid`,`grove`,`ocean`,`ember`,`iris`],Zt={"t3-chat":`orchid`};[...Xt];var L=new Set([`system`,`light`,`dark`,...Xt,`t3-chat`,`t3-chat-dark`,`t3-grove`,`t3-ocean`,`t3-ember`,`t3-iris`]);[...L];var Qt=`canvas.chrome.toolbar.toolbarForeground.toolbarBorder.toolbarControl.toolbarControlForeground.toolbarControlHover.surface.surfaceRaised.surfaceOverlay.text.textMuted.border.input.focus.accent.accentForeground.secondary.secondaryForeground.muted.mutedForeground.placeholder.secondaryLabel.iconMuted.error.errorForeground.errorSurface.warning.warningForeground.warningSurface.update.updateForeground.updateSurface.accentSurface.accentSurfaceForeground.messageSurface.messageForeground.messageAction.messageActionForeground.messageActionHover.codeBackground.codeForeground.searchMatchBackground.searchMatchForeground.searchMatchActiveBackground.searchMatchActiveForeground.sidebar.sidebarForeground.sidebarMutedForeground.sidebarControlSurface.sidebarRowHover.sidebarRowActive.sidebarRowSelected.sidebarBorder.terminalBackground.terminalForeground.terminalCursor.terminalSelection.terminalScrollbar.terminalScrollbarHover`.split(`.`),$t={searchMatchBackground:`#ffde8b`,searchMatchForeground:`#21180a`,searchMatchActiveBackground:`#eea52b`,searchMatchActiveForeground:`#21180a`,canvas:`oklch(1 0 0)`,chrome:`#f4f4f4`,toolbar:`#f4f4f4`,toolbarForeground:`oklch(0.274 0.006 286.033)`,toolbarBorder:`oklch(0.92 0.004 286)`,toolbarControl:`oklch(1 0 0)`,toolbarControlForeground:`oklch(0.274 0.006 286.033)`,toolbarControlHover:`#f4f4f4`,surface:`oklch(1 0 0)`,surfaceRaised:`oklch(1 0 0)`,surfaceOverlay:`oklch(1 0 0)`,text:`oklch(0.274 0.006 286.033)`,textMuted:`oklch(0.442 0.017 285.786)`,border:`oklch(0.92 0.004 286)`,input:`oklch(0.871 0.006 286)`,focus:`oklch(0.546 0.215 262.881)`,accent:`oklch(0.546 0.215 262.881)`,accentForeground:`oklch(1 0 0)`,secondary:`oklch(0.977 0.001 286)`,secondaryForeground:`oklch(0.274 0.006 286.033)`,muted:`oklch(0.977 0.001 286)`,mutedForeground:`oklch(0.442 0.017 285.786)`,placeholder:`oklch(0.442 0.017 285.786)`,secondaryLabel:`oklch(0.442 0.017 285.786)`,iconMuted:`oklch(0.442 0.017 285.786)`,error:`oklch(0.637 0.237 25.331)`,errorForeground:`oklch(0.505 0.213 27.518)`,errorSurface:`#fcebec`,warning:`#fe9a00`,warningForeground:`#bb4d00`,warningSurface:`#fcf4e8`,update:`oklch(0.546 0.215 262.881)`,updateForeground:`oklch(0.546 0.215 262.881)`,updateSurface:`#e0e6f7`,accentSurface:`#f4f4f4`,accentSurfaceForeground:`oklch(0.21 0.006 286)`,messageSurface:`oklch(0.967 0.001 286)`,messageForeground:`oklch(0.274 0.006 286.033)`,messageAction:`oklch(0.546 0.215 262.881)`,messageActionForeground:`oklch(1 0 0)`,messageActionHover:`#3a72ed`,codeBackground:`oklch(1 0 0)`,codeForeground:`oklch(0.274 0.006 286.033)`,sidebar:`#f4f4f4`,sidebarForeground:`oklch(0.274 0.006 286.033)`,sidebarMutedForeground:`oklch(0.442 0.017 285.786)`,sidebarControlSurface:`oklch(0.977 0.001 286)`,sidebarRowHover:`#f4f4f4`,sidebarRowActive:`#e7e8e8`,sidebarRowSelected:`#e7e8e8`,sidebarBorder:`oklch(0.92 0.004 286)`,terminalBackground:`oklch(0.988 0.001 286)`,terminalForeground:`oklch(0.274 0.006 286.033)`,terminalCursor:`oklch(0.546 0.215 262.881)`,terminalSelection:`#d0d6dd`,terminalScrollbar:`#d6d6d6`,terminalScrollbarHover:`#bdbdbd`},en={searchMatchBackground:`#8c6c1f`,searchMatchForeground:`#f5f5f5`,searchMatchActiveBackground:`#eea52b`,searchMatchActiveForeground:`#21180a`,canvas:`oklch(0.145 0.005 286)`,chrome:`oklch(0.185 0.006 286)`,toolbar:`oklch(0.185 0.006 286)`,toolbarForeground:`oklch(0.967 0.001 286)`,toolbarBorder:`oklch(0.274 0.006 286)`,toolbarControl:`oklch(0.205 0.006 286)`,toolbarControlForeground:`oklch(0.967 0.001 286)`,toolbarControlHover:`oklch(0.245 0.006 286)`,surface:`oklch(0.185 0.006 286)`,surfaceRaised:`oklch(0.185 0.006 286)`,surfaceOverlay:`oklch(0.205 0.006 286)`,text:`oklch(0.967 0.001 286)`,textMuted:`oklch(0.674 0.006 286)`,border:`oklch(0.274 0.006 286)`,input:`oklch(0.311 0.006 286)`,focus:`oklch(0.707 0.165 254.624)`,accent:`oklch(0.707 0.165 254.624)`,accentForeground:`oklch(0.145 0.005 286)`,secondary:`oklch(0.225 0.006 286)`,secondaryForeground:`oklch(0.967 0.001 286)`,muted:`oklch(0.225 0.006 286)`,mutedForeground:`oklch(0.674 0.006 286)`,placeholder:`oklch(0.674 0.006 286)`,secondaryLabel:`oklch(0.674 0.006 286)`,iconMuted:`oklch(0.674 0.006 286)`,error:`oklch(0.704 0.191 22.216)`,errorForeground:`oklch(0.783 0.157 21.5)`,errorSurface:`#301214`,warning:`#fe9a00`,warningForeground:`#ffb900`,warningSurface:`#312108`,update:`oklch(0.707 0.165 254.624)`,updateForeground:`oklch(0.707 0.165 254.624)`,updateSurface:`#121b34`,accentSurface:`oklch(0.245 0.006 286)`,accentSurfaceForeground:`oklch(0.967 0.001 286)`,messageSurface:`oklch(0.245 0.006 286)`,messageForeground:`oklch(0.967 0.001 286)`,messageAction:`oklch(0.707 0.165 254.624)`,messageActionForeground:`oklch(0.145 0.005 286)`,messageActionHover:`#4993ec`,codeBackground:`oklch(0.185 0.006 286)`,codeForeground:`oklch(0.967 0.001 286)`,sidebar:`oklch(0.185 0.006 286)`,sidebarForeground:`oklch(0.967 0.001 286)`,sidebarMutedForeground:`oklch(0.674 0.006 286)`,sidebarControlSurface:`oklch(0.225 0.006 286)`,sidebarRowHover:`oklch(0.245 0.006 286)`,sidebarRowActive:`oklch(0.245 0.006 286)`,sidebarRowSelected:`oklch(0.245 0.006 286)`,sidebarBorder:`oklch(0.274 0.006 286)`,terminalBackground:`oklch(0.145 0.005 286)`,terminalForeground:`oklch(0.967 0.001 286)`,terminalCursor:`oklch(0.707 0.165 254.624)`,terminalSelection:`#343a47`,terminalScrollbar:`#222222`,terminalScrollbarHover:`#363636`},tn={id:`orchid`,label:`Orchid`,appearance:`light`,colors:{canvas:`oklch(0.982446 0.010114 325.653)`,chrome:`oklch(0.982446 0.010114 325.653)`,toolbar:`oklch(0.982446 0.010114 325.653)`,toolbarForeground:`oklch(0.325698 0.116116 325.037)`,toolbarBorder:`oklch(0.856784 0.082879 328.911)`,toolbarControl:`oklch(0.939552 0.024286 321.664)`,toolbarControlForeground:`oklch(0.325698 0.116116 325.037)`,toolbarControlHover:`oklch(0.884525 0.041658 337.177)`,surface:`oklch(0.971835 0.012884 321.894)`,surfaceRaised:`oklch(0.988235 0.005049 325.615)`,surfaceOverlay:`oklch(1 0 0)`,text:`oklch(0.325698 0.116116 325.037)`,textMuted:`oklch(0.494754 0.190937 354.544)`,border:`oklch(0.923531 0.021247 328.096)`,input:`oklch(0.851713 0.055822 336.6)`,focus:`oklch(0.591646 0.217985 0.584)`,accent:`oklch(0.591646 0.217985 0.584)`,accentForeground:`oklch(1 0 0)`,secondary:`oklch(0.869588 0.06751 334.899)`,secondaryForeground:`oklch(0.444777 0.134061 324.799)`,muted:`oklch(0.802407 0.090963 345.892)`,mutedForeground:`oklch(0.428932 0.163929 354.332)`,placeholder:`oklch(0.549927 0.090215 323.149)`,secondaryLabel:`oklch(0.494754 0.190937 354.544)`,iconMuted:`oklch(0.494754 0.190937 354.544)`,error:`oklch(0.627117 0.248974 7.734)`,errorForeground:`oklch(0.458704 0.169677 3.815)`,errorSurface:`oklch(0.942787 0.032076 344.963)`,warning:`oklch(0.76859 0.164659 70.08)`,warningForeground:`oklch(0.54612 0.143036 48.949)`,warningSurface:`oklch(0.962901 0.015297 48.56)`,update:`oklch(0.591646 0.217985 0.584)`,updateForeground:`oklch(0.494754 0.190937 354.544)`,updateSurface:`oklch(0.930264 0.036194 341.45)`,accentSurface:`oklch(0.939552 0.024286 321.664)`,accentSurfaceForeground:`oklch(0.396296 0.025134 285.196)`,messageSurface:`oklch(0.926746 0.037898 332.6)`,messageForeground:`oklch(0.354591 0.093575 307.568)`,messageAction:`oklch(0.591646 0.217985 0.584)`,messageActionForeground:`oklch(1 0 0)`,messageActionHover:`oklch(0.539042 0.197866 0.305)`,codeBackground:`oklch(0.953855 0.019695 315.668)`,codeForeground:`oklch(0.445128 0.13005 307.026)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.928886 0.031178 322.592)`,sidebarForeground:`oklch(0.396296 0.025134 285.196)`,sidebarMutedForeground:`oklch(0.494754 0.190937 354.544)`,sidebarControlSurface:`oklch(0.978851 0.001321 106.424)`,sidebarRowHover:`oklch(0.978851 0.001321 106.424)`,sidebarRowActive:`oklch(0.978851 0.001321 106.424)`,sidebarRowSelected:`oklch(0.978851 0.001321 106.424)`,sidebarBorder:`oklch(0.938313 0.002552 48.717)`,terminalBackground:`oklch(0.982446 0.010114 325.653)`,terminalForeground:`oklch(0.325698 0.116116 325.037)`,terminalCursor:`oklch(0.591646 0.217985 0.584)`,terminalSelection:`oklch(0.869588 0.06751 334.899)`,terminalScrollbar:`oklch(0.851713 0.055822 336.6)`,terminalScrollbarHover:`oklch(0.802407 0.090963 345.892)`},variants:{dark:{canvas:`oklch(0.22813 0.020366 307.469)`,chrome:`oklch(0.22813 0.020366 307.469)`,toolbar:`oklch(0.22813 0.020366 307.469)`,toolbarForeground:`oklch(0.980735 0.004092 301.426)`,toolbarBorder:`oklch(0.266943 0.015262 302.425)`,toolbarControl:`oklch(0.313674 0.030572 310.061)`,toolbarControlForeground:`oklch(0.848252 0.038248 307.961)`,toolbarControlHover:`oklch(0.364912 0.050794 308.491)`,surface:`oklch(0.267101 0.02016 311.799)`,surfaceRaised:`oklch(0.279864 0.021572 309.532)`,surfaceOverlay:`oklch(0.154761 0.01316 338.901)`,text:`oklch(0.980735 0.004092 301.426)`,textMuted:`oklch(0.880303 0.03077 342.696)`,border:`oklch(0.266943 0.015262 302.425)`,input:`oklch(0.266817 0.02897 344.461)`,focus:`oklch(0.591646 0.217985 0.584)`,accent:`oklch(0.460685 0.185347 4.099)`,accentForeground:`oklch(0.901233 0.057189 343.694)`,secondary:`oklch(0.313674 0.030572 310.061)`,secondaryForeground:`oklch(0.848252 0.038248 307.961)`,muted:`oklch(0.360924 0.021469 316.83)`,mutedForeground:`oklch(0.880303 0.03077 342.696)`,placeholder:`oklch(0.657087 0.028226 307.985)`,secondaryLabel:`oklch(0.880303 0.03077 342.696)`,iconMuted:`oklch(0.848252 0.038248 307.961)`,error:`oklch(0.458704 0.169677 3.815)`,errorForeground:`oklch(0.901233 0.057189 343.694)`,errorSurface:`oklch(0.259022 0.04799 340.062)`,warning:`oklch(0.76859 0.164659 70.08)`,warningForeground:`oklch(0.836861 0.164422 84.429)`,warningSurface:`oklch(0.321706 0.036256 60.806)`,update:`oklch(0.460685 0.185347 4.099)`,updateForeground:`oklch(0.901233 0.057189 343.694)`,updateSurface:`oklch(0.256077 0.063004 342.914)`,accentSurface:`oklch(0.364912 0.050794 308.491)`,accentSurfaceForeground:`oklch(0.964695 0.009139 341.803)`,messageSurface:`oklch(0.273791 0.025541 309.079)`,messageForeground:`oklch(0.949872 0.021269 306.838)`,messageAction:`oklch(0.460685 0.185347 4.099)`,messageActionForeground:`oklch(0.901233 0.057189 343.694)`,messageActionHover:`oklch(0.458754 0.184639 3.857)`,codeBackground:`oklch(0.22813 0.020366 307.469)`,codeForeground:`oklch(0.848703 0.064239 306.645)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.185778 0.019368 322.159)`,sidebarForeground:`oklch(0.967434 0.001326 286.375)`,sidebarMutedForeground:`oklch(0.880303 0.03077 342.696)`,sidebarControlSurface:`oklch(0.23366 0.026081 338.196)`,sidebarRowHover:`oklch(0.23366 0.026081 338.196)`,sidebarRowActive:`oklch(0.23366 0.026081 338.196)`,sidebarRowSelected:`oklch(0.23366 0.026081 338.196)`,sidebarBorder:`oklch(0.269132 0.030766 351.067)`,terminalBackground:`oklch(0.22813 0.020366 307.469)`,terminalForeground:`oklch(0.980735 0.004092 301.426)`,terminalCursor:`oklch(0.591646 0.217985 0.584)`,terminalSelection:`oklch(0.313674 0.030572 310.061)`,terminalScrollbar:`oklch(0.266817 0.02897 344.461)`,terminalScrollbarHover:`oklch(0.360924 0.021469 316.83)`}},sidebarArtwork:!0},nn={id:`grove`,label:`Grove`,appearance:`light`,colors:{canvas:`oklch(0.972369 0.005497 157.15)`,chrome:`oklch(0.972369 0.005497 157.15)`,toolbar:`oklch(0.972369 0.005497 157.15)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.864831 0.01312 167.255)`,toolbarControl:`oklch(0.932695 0.003778 160.944)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.949276 0.004496 159.002)`,surface:`oklch(0.972369 0.005497 157.15)`,surfaceRaised:`oklch(0.972369 0.005497 157.15)`,surfaceOverlay:`oklch(0.932695 0.003778 160.944)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.527266 0.012309 320.683)`,border:`oklch(0.864831 0.01312 167.255)`,input:`oklch(0.829746 0.016084 168.234)`,focus:`oklch(0.523295 0.112292 158.089)`,accent:`oklch(0.523295 0.112292 158.089)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.945455 0.012308 162.879)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.945455 0.012308 162.879)`,mutedForeground:`oklch(0.527266 0.012309 320.683)`,placeholder:`oklch(0.527266 0.012309 320.683)`,secondaryLabel:`oklch(0.527266 0.012309 320.683)`,iconMuted:`oklch(0.527266 0.012309 320.683)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.936968 0.014243 26.295)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.545036 0.155019 45.359)`,warningSurface:`oklch(0.953175 0.02009 93.379)`,update:`oklch(0.523295 0.112292 158.089)`,updateForeground:`oklch(0.523295 0.112292 158.089)`,updateSurface:`oklch(0.900411 0.02384 164.795)`,accentSurface:`oklch(0.949276 0.004496 159.002)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.949276 0.004496 159.002)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.523295 0.112292 158.089)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.488753 0.096536 77.829)`,codeBackground:`oklch(0.972369 0.005497 157.15)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.972369 0.005497 157.15)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.527266 0.012309 320.683)`,sidebarControlSurface:`oklch(0.945455 0.012308 162.879)`,sidebarRowHover:`oklch(0.949276 0.004496 159.002)`,sidebarRowActive:`oklch(0.949276 0.004496 159.002)`,sidebarRowSelected:`oklch(0.949276 0.004496 159.002)`,sidebarBorder:`oklch(0.864831 0.01312 167.255)`,terminalBackground:`oklch(0.972369 0.005497 157.15)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.523295 0.112292 158.089)`,terminalSelection:`oklch(0.891377 0.026164 164.929)`,terminalScrollbar:`oklch(0.824752 0.001392 294.641)`,terminalScrollbarHover:`oklch(0.755495 0.004415 318.776)`},variants:{dark:{canvas:`oklch(0.260865 0.02152 162.75)`,chrome:`oklch(0.260865 0.02152 162.75)`,toolbar:`oklch(0.260865 0.02152 162.75)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.457475 0.044046 160.971)`,toolbarControl:`oklch(0.411828 0.014378 166.627)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.363192 0.016572 165.32)`,surface:`oklch(0.260865 0.02152 162.75)`,surfaceRaised:`oklch(0.260865 0.02152 162.75)`,surfaceOverlay:`oklch(0.411828 0.014378 166.627)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.715427 0.010896 171.428)`,border:`oklch(0.457475 0.044046 160.971)`,input:`oklch(0.519849 0.049896 160.863)`,focus:`oklch(0.796228 0.133058 157.319)`,accent:`oklch(0.796228 0.133058 157.319)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.339728 0.039456 160.274)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.339728 0.039456 160.274)`,mutedForeground:`oklch(0.715427 0.010896 171.428)`,placeholder:`oklch(0.715427 0.010896 171.428)`,secondaryLabel:`oklch(0.715427 0.010896 171.428)`,iconMuted:`oklch(0.715427 0.010896 171.428)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.704237 0.187511 22.228)`,errorSurface:`oklch(0.312773 0.02923 32.121)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.345524 0.046882 99.736)`,update:`oklch(0.796228 0.133058 157.319)`,updateForeground:`oklch(0.796228 0.133058 157.319)`,updateSurface:`oklch(0.448116 0.062637 158.86)`,accentSurface:`oklch(0.363192 0.016572 165.32)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.363192 0.016572 165.32)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.796228 0.133058 157.319)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.815227 0.117902 84.21)`,codeBackground:`oklch(0.260865 0.02152 162.75)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.260865 0.02152 162.75)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.715427 0.010896 171.428)`,sidebarControlSurface:`oklch(0.339728 0.039456 160.274)`,sidebarRowHover:`oklch(0.363192 0.016572 165.32)`,sidebarRowActive:`oklch(0.363192 0.016572 165.32)`,sidebarRowSelected:`oklch(0.363192 0.016572 165.32)`,sidebarBorder:`oklch(0.457475 0.044046 160.971)`,terminalBackground:`oklch(0.260865 0.02152 162.75)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.796228 0.133058 157.319)`,terminalSelection:`oklch(0.464636 0.066083 158.72)`,terminalScrollbar:`oklch(0.594692 0.006862 176.022)`,terminalScrollbarHover:`oklch(0.687968 0.00354 193.55)`}},sidebarArtwork:!0},rn={id:`ocean`,label:`Ocean`,appearance:`light`,colors:{canvas:`oklch(0.974199 0.002856 241.597)`,chrome:`oklch(0.974199 0.002856 241.597)`,toolbar:`oklch(0.974199 0.002856 241.597)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.867646 0.013482 252.362)`,toolbarControl:`oklch(0.934442 0.003181 269.1)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.951058 0.002962 258.339)`,surface:`oklch(0.974199 0.002856 241.597)`,surfaceRaised:`oklch(0.974199 0.002856 241.597)`,surfaceOverlay:`oklch(0.934442 0.003181 269.1)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.528741 0.01828 313.823)`,border:`oklch(0.867646 0.013482 252.362)`,input:`oklch(0.832939 0.017389 252.598)`,focus:`oklch(0.536684 0.120219 247.01)`,accent:`oklch(0.536684 0.120219 247.01)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.948004 0.009649 241.695)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.948004 0.009649 241.695)`,mutedForeground:`oklch(0.528741 0.01828 313.823)`,placeholder:`oklch(0.528741 0.01828 313.823)`,secondaryLabel:`oklch(0.528741 0.01828 313.823)`,iconMuted:`oklch(0.528741 0.01828 313.823)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.938747 0.016377 7.186)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.546927 0.155556 45.359)`,warningSurface:`oklch(0.954846 0.016009 81.731)`,update:`oklch(0.536684 0.120219 247.01)`,updateForeground:`oklch(0.536684 0.120219 247.01)`,updateSurface:`oklch(0.904165 0.021144 241.874)`,accentSurface:`oklch(0.951058 0.002962 258.339)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.951058 0.002962 258.339)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.536684 0.120219 247.01)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.45151 0.074407 201.516)`,codeBackground:`oklch(0.974199 0.002856 241.597)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.974199 0.002856 241.597)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.528741 0.01828 313.823)`,sidebarControlSurface:`oklch(0.948004 0.009649 241.695)`,sidebarRowHover:`oklch(0.951058 0.002962 258.339)`,sidebarRowActive:`oklch(0.951058 0.002962 258.339)`,sidebarRowSelected:`oklch(0.951058 0.002962 258.339)`,sidebarBorder:`oklch(0.867646 0.013482 252.362)`,terminalBackground:`oklch(0.974199 0.002856 241.597)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.536684 0.120219 247.01)`,terminalSelection:`oklch(0.895373 0.023469 241.913)`,terminalScrollbar:`oklch(0.826271 0.006191 305.456)`,terminalScrollbarHover:`oklch(0.756866 0.008685 313.721)`},variants:{dark:{canvas:`oklch(0.242641 0.024125 250.573)`,chrome:`oklch(0.242641 0.024125 250.573)`,toolbar:`oklch(0.242641 0.024125 250.573)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.438653 0.039496 245.44)`,toolbarControl:`oklch(0.398517 0.018232 255.72)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.348439 0.019942 253.696)`,surface:`oklch(0.242641 0.024125 250.573)`,surfaceRaised:`oklch(0.242641 0.024125 250.573)`,surfaceOverlay:`oklch(0.398517 0.018232 255.72)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.691936 0.016294 261.588)`,border:`oklch(0.438653 0.039496 245.44)`,input:`oklch(0.500905 0.043574 244.781)`,focus:`oklch(0.758933 0.105833 241.548)`,accent:`oklch(0.758933 0.105833 241.548)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.319287 0.036766 246.065)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.319287 0.036766 246.065)`,mutedForeground:`oklch(0.691936 0.016294 261.588)`,placeholder:`oklch(0.691936 0.016294 261.588)`,secondaryLabel:`oklch(0.691936 0.016294 261.588)`,iconMuted:`oklch(0.691936 0.016294 261.588)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.298933 0.036443 350.094)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.329449 0.028712 84.495)`,update:`oklch(0.758933 0.105833 241.548)`,updateForeground:`oklch(0.758933 0.105833 241.548)`,updateSurface:`oklch(0.424017 0.053575 243.695)`,accentSurface:`oklch(0.348439 0.019942 253.696)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.348439 0.019942 253.696)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.758933 0.105833 241.548)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.815308 0.096174 199.862)`,codeBackground:`oklch(0.242641 0.024125 250.573)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.242641 0.024125 250.573)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.691936 0.016294 261.588)`,sidebarControlSurface:`oklch(0.319287 0.036766 246.065)`,sidebarRowHover:`oklch(0.348439 0.019942 253.696)`,sidebarRowActive:`oklch(0.348439 0.019942 253.696)`,sidebarRowSelected:`oklch(0.348439 0.019942 253.696)`,sidebarBorder:`oklch(0.438653 0.039496 245.44)`,terminalBackground:`oklch(0.242641 0.024125 250.573)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.758933 0.105833 241.548)`,terminalSelection:`oklch(0.439946 0.0561 243.479)`,terminalScrollbar:`oklch(0.58613 0.012959 267.22)`,terminalScrollbarHover:`oklch(0.681569 0.010909 276.465)`}},sidebarArtwork:!0},an={id:`ember`,label:`Ember`,appearance:`light`,colors:{canvas:`oklch(0.976527 0.002685 60.725)`,chrome:`oklch(0.976527 0.002685 60.725)`,toolbar:`oklch(0.976527 0.002685 60.725)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.870631 0.013204 39.431)`,toolbarControl:`oklch(0.936659 0.002879 29.96)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.953321 0.002701 42.266)`,surface:`oklch(0.976527 0.002685 60.725)`,surfaceRaised:`oklch(0.976527 0.002685 60.725)`,surfaceOverlay:`oklch(0.936659 0.002879 29.96)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.530413 0.018453 341.181)`,border:`oklch(0.870631 0.013204 39.431)`,input:`oklch(0.836213 0.017153 38.661)`,focus:`oklch(0.552831 0.129438 44.656)`,accent:`oklch(0.552831 0.129438 44.656)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.950842 0.009273 51.528)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.950842 0.009273 51.528)`,mutedForeground:`oklch(0.530413 0.018453 341.181)`,placeholder:`oklch(0.530413 0.018453 341.181)`,secondaryLabel:`oklch(0.530413 0.018453 341.181)`,iconMuted:`oklch(0.530413 0.018453 341.181)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.941094 0.019938 19.375)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.549154 0.156188 45.359)`,warningSurface:`oklch(0.957148 0.020843 76.702)`,update:`oklch(0.552831 0.129438 44.656)`,updateForeground:`oklch(0.552831 0.129438 44.656)`,updateSurface:`oklch(0.907902 0.020621 49.36)`,accentSurface:`oklch(0.953321 0.002701 42.266)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.953321 0.002701 42.266)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.552831 0.129438 44.656)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.471223 0.145843 24.688)`,codeBackground:`oklch(0.976527 0.002685 60.725)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.976527 0.002685 60.725)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.530413 0.018453 341.181)`,sidebarControlSurface:`oklch(0.950842 0.009273 51.528)`,sidebarRowHover:`oklch(0.953321 0.002701 42.266)`,sidebarRowActive:`oklch(0.953321 0.002701 42.266)`,sidebarRowSelected:`oklch(0.953321 0.002701 42.266)`,sidebarBorder:`oklch(0.870631 0.013204 39.431)`,terminalBackground:`oklch(0.976527 0.002685 60.725)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.552831 0.129438 44.656)`,terminalSelection:`oklch(0.899296 0.022939 49.163)`,terminalScrollbar:`oklch(0.828185 0.005884 349.533)`,terminalScrollbarHover:`oklch(0.758584 0.008423 341.16)`},variants:{dark:{canvas:`oklch(0.245899 0.019144 42.044)`,chrome:`oklch(0.245899 0.019144 42.044)`,toolbar:`oklch(0.245899 0.019144 42.044)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.44099 0.040202 48.807)`,toolbarControl:`oklch(0.401111 0.014308 34.896)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.351262 0.01565 37.592)`,surface:`oklch(0.245899 0.019144 42.044)`,surfaceRaised:`oklch(0.245899 0.019144 42.044)`,surfaceOverlay:`oklch(0.401111 0.014308 34.896)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.692479 0.015227 30.963)`,border:`oklch(0.44099 0.040202 48.807)`,input:`oklch(0.503003 0.045721 49.44)`,focus:`oklch(0.762174 0.124117 52.082)`,accent:`oklch(0.762174 0.124117 52.082)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.322144 0.03574 48.309)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.322144 0.03574 48.309)`,mutedForeground:`oklch(0.692479 0.015227 30.963)`,placeholder:`oklch(0.692479 0.015227 30.963)`,secondaryLabel:`oklch(0.692479 0.015227 30.963)`,iconMuted:`oklch(0.692479 0.015227 30.963)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.310955 0.059624 24.334)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.339137 0.055638 66.911)`,update:`oklch(0.762174 0.124117 52.082)`,updateForeground:`oklch(0.762174 0.124117 52.082)`,updateSurface:`oklch(0.426749 0.057547 50.618)`,accentSurface:`oklch(0.351262 0.01565 37.592)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.351262 0.01565 37.592)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.762174 0.124117 52.082)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.775116 0.117953 29.014)`,codeBackground:`oklch(0.245899 0.019144 42.044)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.245899 0.019144 42.044)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.692479 0.015227 30.963)`,sidebarControlSurface:`oklch(0.322144 0.03574 48.309)`,sidebarRowHover:`oklch(0.351262 0.01565 37.592)`,sidebarRowActive:`oklch(0.351262 0.01565 37.592)`,sidebarRowSelected:`oklch(0.351262 0.01565 37.592)`,sidebarBorder:`oklch(0.44099 0.040202 48.807)`,terminalBackground:`oklch(0.245899 0.019144 42.044)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.762174 0.124117 52.082)`,terminalSelection:`oklch(0.442681 0.0608 50.795)`,terminalScrollbar:`oklch(0.587861 0.010463 20.444)`,terminalScrollbarHover:`oklch(0.682876 0.009156 9.796)`}},sidebarArtwork:!0},on={id:`iris`,label:`Iris`,appearance:`light`,colors:{canvas:`oklch(0.976531 0.003855 303.226)`,chrome:`oklch(0.976531 0.003855 303.226)`,toolbar:`oklch(0.976531 0.003855 303.226)`,toolbarForeground:`oklch(0.222003 0.03479 328.979)`,toolbarBorder:`oklch(0.869608 0.018226 303.859)`,toolbarControl:`oklch(0.936665 0.005041 310.132)`,toolbarControlForeground:`oklch(0.222003 0.03479 328.979)`,toolbarControlHover:`oklch(0.953326 0.004536 307.676)`,surface:`oklch(0.976531 0.003855 303.226)`,surfaceRaised:`oklch(0.976531 0.003855 303.226)`,surfaceOverlay:`oklch(0.936665 0.005041 310.132)`,text:`oklch(0.222003 0.03479 328.979)`,textMuted:`oklch(0.529955 0.022319 321.556)`,border:`oklch(0.869608 0.018226 303.859)`,input:`oklch(0.834773 0.023405 303.676)`,focus:`oklch(0.525348 0.15373 294.176)`,accent:`oklch(0.525348 0.15373 294.176)`,accentForeground:`oklch(0.990339 0.008411 325.64)`,secondary:`oklch(0.950194 0.011956 300.733)`,secondaryForeground:`oklch(0.222003 0.03479 328.979)`,muted:`oklch(0.950194 0.011956 300.733)`,mutedForeground:`oklch(0.529955 0.022319 321.556)`,placeholder:`oklch(0.529955 0.022319 321.556)`,secondaryLabel:`oklch(0.529955 0.022319 321.556)`,iconMuted:`oklch(0.529955 0.022319 321.556)`,error:`oklch(0.637823 0.237287 25.436)`,errorForeground:`oklch(0.509494 0.208583 28.513)`,errorSurface:`oklch(0.941043 0.019582 4.235)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.549154 0.156188 45.359)`,warningSurface:`oklch(0.957054 0.016197 69.932)`,update:`oklch(0.525348 0.15373 294.176)`,updateForeground:`oklch(0.525348 0.15373 294.176)`,updateSurface:`oklch(0.90602 0.025754 299.867)`,accentSurface:`oklch(0.953326 0.004536 307.676)`,accentSurfaceForeground:`oklch(0.222003 0.03479 328.979)`,messageSurface:`oklch(0.953326 0.004536 307.676)`,messageForeground:`oklch(0.222003 0.03479 328.979)`,messageAction:`oklch(0.525348 0.15373 294.176)`,messageActionForeground:`oklch(0.990339 0.008411 325.64)`,messageActionHover:`oklch(0.471003 0.16748 340.687)`,codeBackground:`oklch(0.976531 0.003855 303.226)`,codeForeground:`oklch(0.222003 0.03479 328.979)`,searchMatchBackground:`oklch(0.915 0.11 85)`,searchMatchForeground:`oklch(0.216164 0.028283 77.423)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.976531 0.003855 303.226)`,sidebarForeground:`oklch(0.222003 0.03479 328.979)`,sidebarMutedForeground:`oklch(0.529955 0.022319 321.556)`,sidebarControlSurface:`oklch(0.950194 0.011956 300.733)`,sidebarRowHover:`oklch(0.953326 0.004536 307.676)`,sidebarRowActive:`oklch(0.953326 0.004536 307.676)`,sidebarRowSelected:`oklch(0.953326 0.004536 307.676)`,sidebarBorder:`oklch(0.869608 0.018226 303.859)`,terminalBackground:`oklch(0.976531 0.003855 303.226)`,terminalForeground:`oklch(0.222003 0.03479 328.979)`,terminalCursor:`oklch(0.525348 0.15373 294.176)`,terminalSelection:`oklch(0.897143 0.028558 299.758)`,terminalScrollbar:`oklch(0.828195 0.008526 318.858)`,terminalScrollbarHover:`oklch(0.758596 0.010892 321.538)`},variants:{dark:{canvas:`oklch(0.225975 0.031062 293.741)`,chrome:`oklch(0.225975 0.031062 293.741)`,toolbar:`oklch(0.225975 0.031062 293.741)`,toolbarForeground:`oklch(0.990339 0.008411 325.64)`,toolbarBorder:`oklch(0.40874 0.058536 295.893)`,toolbarControl:`oklch(0.386739 0.024023 297.509)`,toolbarControlForeground:`oklch(0.990339 0.008411 325.64)`,toolbarControlHover:`oklch(0.335291 0.026008 296.394)`,surface:`oklch(0.225975 0.031062 293.741)`,surfaceRaised:`oklch(0.225975 0.031062 293.741)`,surfaceOverlay:`oklch(0.386739 0.024023 297.509)`,text:`oklch(0.990339 0.008411 325.64)`,textMuted:`oklch(0.663321 0.025932 301.862)`,border:`oklch(0.40874 0.058536 295.893)`,input:`oklch(0.46756 0.065775 296.265)`,focus:`oklch(0.671712 0.169136 293.929)`,accent:`oklch(0.671712 0.169136 293.929)`,accentForeground:`oklch(0.222003 0.03479 328.979)`,secondary:`oklch(0.291515 0.05276 294.209)`,secondaryForeground:`oklch(0.990339 0.008411 325.64)`,muted:`oklch(0.291515 0.05276 294.209)`,mutedForeground:`oklch(0.663321 0.025932 301.862)`,placeholder:`oklch(0.663321 0.025932 301.862)`,secondaryLabel:`oklch(0.663321 0.025932 301.862)`,iconMuted:`oklch(0.663321 0.025932 301.862)`,error:`oklch(0.655108 0.221148 23.473)`,errorForeground:`oklch(0.702184 0.189226 22.228)`,errorSurface:`oklch(0.291658 0.054707 352.238)`,warning:`oklch(0.772406 0.172798 65.367)`,warningForeground:`oklch(0.829017 0.171221 81.038)`,warningSurface:`oklch(0.318952 0.033845 51.646)`,update:`oklch(0.671712 0.169136 293.929)`,updateForeground:`oklch(0.671712 0.169136 293.929)`,updateSurface:`oklch(0.381668 0.081286 294.195)`,accentSurface:`oklch(0.335291 0.026008 296.394)`,accentSurfaceForeground:`oklch(0.990339 0.008411 325.64)`,messageSurface:`oklch(0.335291 0.026008 296.394)`,messageForeground:`oklch(0.990339 0.008411 325.64)`,messageAction:`oklch(0.671712 0.169136 293.929)`,messageActionForeground:`oklch(0.222003 0.03479 328.979)`,messageActionHover:`oklch(0.813537 0.114101 337.23)`,codeBackground:`oklch(0.225975 0.031062 293.741)`,codeForeground:`oklch(0.990339 0.008411 325.64)`,searchMatchBackground:`oklch(0.55 0.1 85)`,searchMatchForeground:`oklch(0.970151 0 0)`,searchMatchActiveBackground:`oklch(0.774202 0.151946 74.331)`,searchMatchActiveForeground:`oklch(0.216164 0.028283 77.423)`,sidebar:`oklch(0.225975 0.031062 293.741)`,sidebarForeground:`oklch(0.990339 0.008411 325.64)`,sidebarMutedForeground:`oklch(0.663321 0.025932 301.862)`,sidebarControlSurface:`oklch(0.291515 0.05276 294.209)`,sidebarRowHover:`oklch(0.335291 0.026008 296.394)`,sidebarRowActive:`oklch(0.335291 0.026008 296.394)`,sidebarRowSelected:`oklch(0.335291 0.026008 296.394)`,sidebarBorder:`oklch(0.40874 0.058536 295.893)`,terminalBackground:`oklch(0.225975 0.031062 293.741)`,terminalForeground:`oklch(0.990339 0.008411 325.64)`,terminalCursor:`oklch(0.671712 0.169136 293.929)`,terminalSelection:`oklch(0.395417 0.085554 294.182)`,terminalScrollbar:`oklch(0.578663 0.017888 302.229)`,terminalScrollbarHover:`oklch(0.676012 0.015271 305.433)`}},sidebarArtwork:!0},sn=[tn,nn,rn,an,on],cn=`orchid`,ln=`grove`,un=`ocean`,dn=`ember`,fn=`iris`,R=`t3code:themes:v1`,pn=`t3code:theme-follow-system`,mn=`t3code:theme-appearance-mode`,hn=`t3code:theme-halves:v1`,gn=`t3-chat-dark`,_n=r,vn=new Set(Qt),yn=[],bn=new Set,z=null,xn=new Set,Sn=null;function Cn(){return Sn}function wn(e){return xn.add(e),()=>xn.delete(e)}function Tn(e){if(Sn!==e){Sn=e;for(let e of xn)e()}}function B(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function En(e){return e===`light`||e===`dark`}function Dn(e){return typeof e==`string`&&H(e)!==null}function On(e){return typeof e==`string`&&/^[a-z0-9](?:[a-z0-9-]{0,47})$/.test(e)}function kn(e){return typeof e==`string`&&e.trim().length>0&&e.trim().length<=48}function An(e){return B(e)&&typeof e.id==`string`&&/^[a-z0-9][a-z0-9.:-]{0,127}$/i.test(e.id)&&kn(e.label)?{id:e.id,label:e.label.trim()}:void 0}function jn(e){let t={};for(let[n,r]of Object.entries(e)){let e=H(r);vn.has(n)&&e&&(t[n]=e)}return t}function Mn(e,t){return B(e)?{...Z(t),...jn(e)}:null}function Nn(e,t){if(e===void 0)return;if(!B(e))return null;let n={};for(let[r,i]of Object.entries(e)){if(!En(r))return null;if(r===t)continue;let e=Mn(i,r);if(!e)return null;n[r]=e}return Object.keys(n).length>0?n:void 0}function Pn(e){if(!B(e)||!On(e.id)||L.has(e.id)||!kn(e.label)||!En(e.appearance))return null;let t=Mn(e.colors,e.appearance);if(!t)return null;let n=Nn(e.variants,e.appearance);if(e.variants!==void 0&&n===null)return null;let r=An(e.collection);return{id:e.id,label:e.label.trim(),appearance:e.appearance,colors:t,...n?{variants:n}:{},...r?{collection:r}:{},...e.managed===!0?{managed:!0}:{}}}function Fn(e){let t=[];for(let n of e){let e=Pn(n);e&&!t.some(t=>t.id===e.id)&&t.push(e)}return t}function In(){if(typeof window>`u`)return{status:`ready`,storedThemes:[],themes:[]};let e;try{e=window.localStorage.getItem(R)}catch(e){return{status:`unavailable`,reason:`storage-unavailable`,cause:e}}if(!e)return{status:`ready`,storedThemes:[],themes:[]};let t;try{t=JSON.parse(e)}catch{return{status:`unavailable`,reason:`malformed`}}return Array.isArray(t)?{status:`ready`,storedThemes:t,themes:Fn(t)}:{status:`unavailable`,reason:`malformed`}}function Ln(){return z===null&&(z=In()),z}function Rn(){for(let e of bn)e()}function zn(){z=null,Rn()}var Bn=[];function Vn(){let e=Ln();return e.status===`ready`?e.themes:Bn}function Hn(){return yn}function Un(e){return!i(yn,e)&&(yn=e,Rn(),!0)}function Wn(e){return L.has(e)}function Gn(e){return Ir().themes.filter(t=>t.collection?.id===e)}function Kn(e){if(bn.add(e),typeof window>`u`)return()=>bn.delete(e);let t=e=>{(e.key===`t3code:themes:v1`||e.key===null)&&zn()};return window.addEventListener(`storage`,t),()=>{bn.delete(e),window.removeEventListener(`storage`,t)}}var qn={...Zt,[gn]:cn,"t3-grove":ln,"t3-ocean":un,"t3-ember":dn,"t3-iris":fn};function Jn(e){return qn[e]??e}function Yn(e){return e===gn?e:Jn(e)}function Xn(e){return Jn(e)}function Zn(e){return e===gn?`dark`:null}function Qn(e){return e===`dark`?er??=ur(en):$n??=ur($t)}var $n,er,tr={r:255,g:250,b:255},nr={r:36,g:21,b:35},rr={r:255,g:255,b:255},ir={r:0,g:0,b:0},ar=ie(`oklch`);function or(e){if(typeof e!=`string`)return null;let t=e.trim(),n=ve(t);if(!n)return null;let r=ar(n),i=r.l??0,a=r.c??0,o=r.h??0,s=/\/\s*none\s*\)$/i.test(t)?0:r.alpha??1;return[i,a,o,s].every(Number.isFinite)?{color:{L:Math.min(1,Math.max(0,i)),C:Math.max(0,a),h:o},alpha:Math.min(1,Math.max(0,s))}:null}function sr(e,t){return(Math.abs(e)<10**-t/2?0:e).toFixed(t).replace(/(?:\.0+|(?:(\.[0-9]*?)0+))$/,`$1`)}function V(e,t=1){let n=e.C<5e-7?0:(e.h%360+360)%360,r=`${sr(e.L,6)} ${sr(e.C,6)} ${sr(n,3)}`;return t<1?`oklch(${r} / ${sr(t,4)})`:`oklch(${r})`}function H(e){let t=or(e);return t?V(t.color,t.alpha):null}function cr(e){let t=or(e),n=t?{rgb:J(t.color),alpha:t.alpha}:null;if(!n)return null;let r=lr(n.rgb);return n.alpha>=1?r:`${r}${Math.round(n.alpha*255).toString(16).padStart(2,`0`)}`}function U(e,t){let n=or(e);return n?J(n.color):t}function lr(e){return`#${[e.r,e.g,e.b].map(e=>Math.round(Math.min(255,Math.max(0,e))).toString(16).padStart(2,`0`)).join(``)}`}function W(e){return V(q(e))}function ur(e){return Object.fromEntries(Qt.map(t=>{let n=H(e[t]);if(!n)throw Error(`The color for "${t}" must be a literal CSS color such as oklch(0.62 0.2 280).`);return[t,n]}))}function dr(e){return{...e,colors:ur(e.colors),...e.variants?{variants:Object.fromEntries(Object.entries(e.variants).map(([e,t])=>[e,ur(t)]))}:{}}}function G(e,t,n){return{r:e.r+(t.r-e.r)*n,g:e.g+(t.g-e.g)*n,b:e.b+(t.b-e.b)*n}}function K(e){let t=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};return .2126*t(e.r)+.7152*t(e.g)+.0722*t(e.b)}function fr(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function pr(e){let t=e<=.0031308?e*12.92:1.055*e**(1/2.4)-.055;return Math.round(Math.min(1,Math.max(0,t))*255)}function q(e){let t=fr(e.r),n=fr(e.g),r=fr(e.b),i=Math.cbrt(.4122214708*t+.5363325363*n+.0514459929*r),a=Math.cbrt(.2119034982*t+.6806995451*n+.1073969566*r),o=Math.cbrt(.0883024619*t+.2817188376*n+.6299787005*r),s=.2104542553*i+.793617785*a-.0040720468*o,c=1.9779984951*i-2.428592205*a+.4505937099*o,l=.0259040371*i+.7827717662*a-.808675766*o;return{L:s,C:Math.hypot(c,l),h:Math.atan2(l,c)*180/Math.PI}}function mr({L:e,C:t,h:n}){let r=n*Math.PI/180,i=t*Math.cos(r),a=t*Math.sin(r),o=(e+.3963377774*i+.2158037573*a)**3,s=(e-.1055613458*i-.0638541728*a)**3,c=(e-.0894841775*i-1.291485548*a)**3;return{r:4.0767416621*o-3.3077115913*s+.2309699292*c,g:-1.2684380046*o+2.6097574011*s-.3413193965*c,b:-.0041960863*o-.7034186147*s+1.707614701*c}}function hr(e){let t=t=>{let n=mr({...e,C:t});return[n.r,n.g,n.b].every(e=>e>=-1e-4&&e<=1.0001)};if(t(e.C))return e;let n=0,r=e.C,i=1e-6,a=Math.max(1,Math.ceil(Math.log2(Math.max(e.C,i))-Math.log2(i)));for(let e=0;e<a;e+=1){let e=(n+r)/2;t(e)?n=e:r=e}return{...e,C:n}}function J(e){let t=mr(hr(e));return{r:pr(t.r),g:pr(t.g),b:pr(t.b)}}function gr(e){return V(hr(e))}function _r(e,t,n,r){let i=r===`lighter`?e.L:0,a=r===`lighter`?1:e.L,o={...e};if(Y(J(o),t)>=n)return o;for(let s=0;s<18;s+=1){let s=(i+a)/2;o={...e,L:s},Y(J(o),t)>=n?r===`lighter`?a=s:i=s:r===`lighter`?i=s:a=s}return{...e,L:r===`lighter`?a:i}}var vr={light:{error:`#fb2c36`,errorForeground:`#c10007`,warning:`#fe9a00`,warningForeground:`#bb4d00`},dark:{error:`#fb414a`,errorForeground:`#ff6467`,warning:`#fe9a00`,warningForeground:`#ffb900`}};function yr(e){let t=K(e)<.179?`dark`:`light`,n=vr[t],r=t===`dark`?.16:.08,i=t=>G(e,U(t,e),r),a=(n,r)=>gr(_r(q(U(n,e)),r,4.6,t===`dark`?`lighter`:`darker`)),o=i(n.error),s=i(n.warning);return{error:H(n.error),errorForeground:a(n.errorForeground,o),errorSurface:W(o),warning:H(n.warning),warningForeground:a(n.warningForeground,s),warningSurface:W(s)}}function br(e,t,n){let r=Z(e),i=U(t,e===`dark`?{r:24,g:15,b:27}:{r:250,g:245,b:250}),a=U(n,{r:168,g:67,b:112}),o=q(i),s=q(a),c=K(i)<.179,l=s.C<.02?o.h:s.h,u=Math.min(.045,Math.max(.008,s.C*.22)),d=c?1:-1,f=(e,t=u)=>({L:Math.min(.98,Math.max(.05,o.L+d*e)),C:t,h:l}),p=e=>gr(e),m={L:c?.95:.2,C:Math.min(.035,s.C*.25),h:l},h=J(_r(m,i,7,c?`lighter`:`darker`)),g=wr(i,h),ee={L:Math.min(.85,Math.max(.35,s.L+(c?.06:-.02))),C:Math.max(s.C*.9,.06),h:(l+50)%360},te=J(ee),ne=X(te),re=X(a),ie=f(.045,u*1.4),_=J(ie),ae=f(.015),v=f(.05),oe=J(v),se=f(.075),y=f(c?.16:.12,Math.min(.07,s.C*.35)),ce=f(c?.21:.16,Math.min(.08,s.C*.4)),le=f(c?.1:.06,Math.min(.09,s.C*.5)),ue=J(le),de=f(c?.06:.04,Math.min(.06,s.C*.35)),b=J(de),x=f(c?.13:.08,Math.min(.11,s.C*.55)),S=J(x),C=f(c?.16:.1,Math.min(.13,s.C*.6)),fe=J(C),w=f(.035,u*.8),T=f(c?.14:.09,Math.min(.12,s.C*.55)),E=e=>gr(_r(m,e,4.6,c?`lighter`:`darker`)),pe=W(xr(b,h,1,4.6)),me=W(xr(oe,h,1,4.6)),he=J(f(.22,Math.min(.12,s.C))),ge=J(f(.4,Math.min(.18,s.C))),_e={...ee,L:ee.L+(c?.06:-.06)};return{...r,...yr(i),canvas:W(i),chrome:W(i),toolbar:W(i),toolbarForeground:W(h),toolbarBorder:p(f(c?.14:.1,Math.min(.08,s.C*.4))),toolbarControl:p(f(c?.09:.05,u*1.3)),toolbarControlForeground:W(h),toolbarControlHover:p(f(c?.14:.09,u*1.6)),surface:p(ae),surfaceRaised:p(v),surfaceOverlay:p(se),text:W(h),textMuted:W(g),border:p(y),input:p(ce),focus:W(a),accent:W(a),accentForeground:W(re),secondary:p(le),secondaryForeground:E(ue),muted:p(de),mutedForeground:pe,placeholder:me,secondaryLabel:W(g),iconMuted:W(g),update:W(a),updateForeground:E(J(T)),updateSurface:p(T),accentSurface:p(x),accentSurfaceForeground:E(S),messageSurface:p(C),messageForeground:E(fe),messageAction:W(te),messageActionForeground:W(ne),messageActionHover:p(_e),codeBackground:p(w),codeForeground:W(h),searchMatchBackground:W(he),searchMatchForeground:W(X(he)),searchMatchActiveBackground:W(ge),searchMatchActiveForeground:W(X(ge)),sidebar:p(ie),sidebarForeground:E(_),sidebarMutedForeground:W(wr(_,h)),sidebarControlSurface:p(f(c?.1:.07,u*1.5)),sidebarRowHover:p(f(c?.08:.06,Math.min(.08,s.C*.45))),sidebarRowActive:p(f(c?.12:.09,Math.min(.1,s.C*.55))),sidebarRowSelected:p(f(c?.14:.1,Math.min(.11,s.C*.6))),sidebarBorder:p(f(c?.17:.12,Math.min(.08,s.C*.4))),terminalBackground:W(i),terminalForeground:W(h),terminalCursor:W(a),terminalSelection:p(f(c?.18:.12,Math.min(.12,s.C*.55))),terminalScrollbar:p(f(c?.22:.16,u)),terminalScrollbarHover:p(f(c?.3:.22,u))}}function Y(e,t){let n=K(e),r=K(t),i=Math.max(n,r),a=Math.min(n,r);return(i+.05)/(a+.05)}function X(e){let t=Y(e,tr),n=Y(e,nr);return Math.max(t,n)>=4.5?t>=n?tr:nr:Y(e,rr)>=Y(e,ir)?rr:ir}function xr(e,t,n,r){let i=G(t,e,n);if(Y(i,e)>=r)return i;let a=t,o=0,s=n;for(let n=0;n<12;n+=1){let n=(o+s)/2,i=G(t,e,n);Y(i,e)>=r?(a=i,o=n):s=n}return a}var Sr=4.705,Cr=5.082;function wr(e,t){return xr(e,t,1,K(e)<.179?Cr:Sr)}function Z(e){return e===`dark`?tn.variants.dark:tn.colors}function Tr(e,t,n,r){let i=or(r);if(!i)return{...t,[n]:r};let a=V(i.color,i.alpha),o=U(t.canvas,e===`dark`?{r:24,g:15,b:27}:{r:250,g:245,b:250}),s=J(i.color),c=e=>G(e,s,i.alpha),l=c(o),u=U(t.accent,{r:168,g:67,b:112}),d=K(o)<.179,f=K(l)<.179,p=e=>W(e),m=e=>p(X(e)),h=e=>gr(_r(i.color,e,4.6,K(e)<.179?`lighter`:`darker`)),g=()=>{let e=G(o,l,d?.16:.08);return{foreground:h(e),surface:p(e)}};switch(n){case`canvas`:return{...t,canvas:a,chrome:a,toolbar:a};case`surface`:case`surfaceRaised`:case`surfaceOverlay`:case`input`:case`sidebarControlSurface`:return{...t,[n]:a};case`text`:return{...t,text:a,toolbarForeground:a,toolbarControlForeground:a};case`mutedForeground`:return{...t,textMuted:a,mutedForeground:a,placeholder:a,secondaryLabel:a,iconMuted:a,sidebarMutedForeground:a};case`border`:return{...t,border:a,toolbarBorder:a,sidebarBorder:a};case`secondary`:return{...t,secondary:a,secondaryForeground:m(l),muted:a,toolbarControl:a};case`accentSurface`:return{...t,accentSurface:a,accentSurfaceForeground:m(l),toolbarControlHover:a};case`accent`:{let e=G(o,l,d?.32:.16);return{...t,accent:a,accentForeground:m(l),focus:a,update:a,updateForeground:h(e),updateSurface:p(e),terminalCursor:a}}case`messageAction`:{let e=X(l),n=G(s,e===tr||e===rr?ir:rr,.12);return{...t,messageAction:a,messageActionForeground:p(e),messageActionHover:V(q(n),i.alpha)}}case`messageSurface`:return{...t,messageSurface:a,messageForeground:m(l)};case`searchMatchBackground`:return{...t,searchMatchBackground:p(l),searchMatchForeground:m(l)};case`searchMatchActiveBackground`:return{...t,searchMatchActiveBackground:p(l),searchMatchActiveForeground:m(l)};case`codeBackground`:return{...t,codeBackground:a,codeForeground:m(l)};case`sidebar`:return{...t,sidebar:a,sidebarForeground:m(l)};case`sidebarRowSelected`:{let e=U(t.sidebar,o),n=c(e);return{...t,sidebarRowHover:p(G(e,n,.5)),sidebarRowActive:p(G(e,n,.8)),sidebarRowSelected:a}}case`terminalBackground`:{let e=X(l);return{...t,terminalBackground:a,terminalForeground:p(e),terminalSelection:p(G(l,u,f?.35:.18)),terminalScrollbar:p(G(l,e,f?.42:.22)),terminalScrollbarHover:p(G(l,e,f?.55:.32))}}case`error`:{let e=g();return{...t,error:a,errorForeground:e.foreground,errorSurface:e.surface}}case`warning`:{let e=g();return{...t,warning:a,warningForeground:e.foreground,warningSurface:e.surface}}default:return{...t,[n]:a}}}var Er=sn;function Q(e){let t=Xn(e);return Er.find(e=>e.id===t)??Vn().find(e=>e.id===t)??yn.find(e=>e.id===t)??null}function Dr(e){let t=Xn(e);return Er.find(e=>e.id===t)?.sidebarArtwork===!0}function Or(e){let t=kr(e);return t.length===1?t[0]:null}function $(e,t){return t===e.appearance?e.colors:e.variants?.[t]??null}function kr(e){return[`light`,`dark`].filter(t=>$(e,t)!==null)}function Ar(e){return e===`system`?null:e===`light`||e===`dark`?e:Zn(e)||(Q(e)?.appearance??null)}function jr(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``).slice(0,48)||`custom-theme`}var Mr=class extends t()(`ThemeLibraryStorageError`,{storageKey:r,operation:n([`read`,`write`]),reason:n([`malformed`,`storage-unavailable`]),cause:e(a())}){get message(){let e=this.operation===`read`?`from`:`to`;return`Failed to ${this.operation} the theme library ${e} ${this.storageKey}.`}};function Nr(e,t){if(typeof window<`u`){try{window.localStorage.setItem(R,JSON.stringify(e)),z={status:`ready`,storedThemes:e,themes:t}}catch(e){throw new Mr({storageKey:R,operation:`write`,reason:`storage-unavailable`,cause:e})}Rn()}}function Pr(e){if(e.status===`unavailable`)throw new Mr({storageKey:R,operation:`read`,reason:e.reason,...`cause`in e?{cause:e.cause}:{}});return e}function Fr(){return Pr(Ln())}function Ir(){return Pr(In())}function Lr(e,t){return B(e)&&e.id===t}function Rr(e,t){return B(e)&&B(e.collection)&&e.collection.id===t}function zr(e){if(L.has(e.id))throw Error(`The theme id "${e.id}" is reserved.`);let t=Fr();if(Er.some(t=>t.id===e.id)||t.storedThemes.some(t=>Lr(t,e.id)))throw Error(`A theme named "${e.label}" is already installed.`);let n=dr(e),r=[...t.themes,n];return Nr([...t.storedThemes,n],r),n}function Br(e){if(L.has(e.id))throw Error(`The theme id "${e.id}" is reserved.`);let t=Fr(),n=t.themes,r=n.findIndex(t=>t.id===e.id);if(r===-1)throw Error(`The theme "${e.label}" is not installed.`);let i=dr(e),a=[...n];a[r]=i;let o=[],s=!1;for(let n of t.storedThemes)Lr(n,e.id)?s||=(o.push(i),!0):o.push(n);return Nr(o,a),i}function Vr(e,t,n){if(t.length===0)throw Error(`A theme collection cannot be empty.`);let r=t.map(e=>Pn(e));if(r.some(t=>t===null||t.collection?.id!==e)||new Set(r.map(e=>e?.id)).size!==r.length)throw Error(`That theme collection is invalid.`);let i=r,a=Ir(),o=a.themes.filter(t=>t.collection?.id===e);if(n?.expectedCollection&&JSON.stringify(o)!==JSON.stringify(n.expectedCollection))throw Error(`Your installed themes changed while this package was downloading. Try again.`);let s=new Set(Er.map(e=>e.id));for(let t of a.storedThemes)!Rr(t,e)&&B(t)&&typeof t.id==`string`&&s.add(t.id);let c=i.find(e=>L.has(e.id)||s.has(e.id));if(c)throw Error(`A theme named "${c.label}" is already installed.`);let l=[],u=!1;for(let t of a.storedThemes)Rr(t,e)?u||=(l.push(...i),!0):l.push(t);return u||l.push(...i),Nr(l,Fn(l)),i}function Hr(e){Ur([e])}function Ur(e){let t=new Set(e);if(t.size===0)return;let n=Fr(),r=n.themes.filter(e=>!t.has(e.id));r.length!==n.themes.length&&Nr(n.storedThemes.filter(e=>!B(e)||typeof e.id!=`string`||!t.has(e.id)),r)}function Wr(e){if(!B(e))throw Error(`Theme colors must be objects.`);let t={};for(let[n,r]of Object.entries(e)){if(!vn.has(n))throw Error(`"${n}" is not a supported theme color role.`);let e=H(r);if(!e)throw Error(`The color for "${n}" must be a literal CSS color such as oklch(0.62 0.2 280).`);t[n]=e}if(Object.keys(t).length===0)throw Error(`Add at least one color role to the theme file.`);return t}function Gr(e){if(!B(e))throw Error(`Theme files must contain a JSON object.`);if(e.version!==1)throw Error(`This theme file uses an unsupported version. Expected 1.`);let t=e.name,n=e.appearance,r=e.colors;if(!kn(t))throw Error(`Theme files need a name (48 characters or fewer).`);if(!En(n))throw Error(`Theme files need an appearance of "light" or "dark".`);if(!B(r))throw Error(`Theme files need a colors object.`);let i=e.id===void 0?jr(t):e.id;if(!On(i))throw Error(`Theme ids may only contain lowercase letters, numbers, and hyphens.`);if(L.has(i))throw Error(`The theme id "${i}" is reserved.`);let a=Wr(r),o=An(e.collection);if(e.collection!==void 0&&!o)throw Error(`Theme collections need a valid id and label.`);let s=Z(n),c={};if(e.variants!==void 0){if(!B(e.variants))throw Error(`Theme variants must be an object.`);for(let[t,r]of Object.entries(e.variants)){if(!En(t))throw Error(`Theme variants may only be named "light" or "dark".`);if(t===n)throw Error(`Theme variants must not repeat the base appearance "${n}".`);c[t]={...Z(t),...Wr(r)}}}return{id:i,label:t.trim(),appearance:n,colors:{...s,...a},...Object.keys(c).length>0?{variants:c}:{},...o?{collection:o}:{},...e.managed===!0?{managed:!0}:{}}}function Kr(e){let t=dr(e),n={version:1,id:t.id,name:t.label,appearance:t.appearance,colors:t.colors,...t.variants?{variants:t.variants}:{},...t.collection?{collection:t.collection}:{},...t.managed?{managed:!0}:{}};return`${JSON.stringify(n,null,2)}\n`}var qr={canvas:`--app-theme-canvas`,chrome:`--app-theme-chrome`,toolbar:`--app-theme-toolbar`,toolbarForeground:`--app-theme-toolbar-foreground`,toolbarBorder:`--app-theme-toolbar-border`,toolbarControl:`--app-theme-toolbar-control`,toolbarControlForeground:`--app-theme-toolbar-control-foreground`,toolbarControlHover:`--app-theme-toolbar-control-hover`,surface:`--app-theme-surface`,surfaceRaised:`--app-theme-surface-raised`,surfaceOverlay:`--app-theme-surface-overlay`,text:`--app-theme-text`,textMuted:`--app-theme-text-muted`,border:`--app-theme-border`,input:`--app-theme-input`,focus:`--app-theme-focus`,accent:`--app-theme-accent`,accentForeground:`--app-theme-accent-foreground`,secondary:`--app-theme-secondary`,secondaryForeground:`--app-theme-secondary-foreground`,muted:`--app-theme-muted`,mutedForeground:`--app-theme-muted-foreground`,placeholder:`--app-theme-placeholder`,secondaryLabel:`--app-theme-secondary-label`,iconMuted:`--app-theme-icon-muted`,error:`--app-theme-error`,errorForeground:`--app-theme-error-foreground`,errorSurface:`--app-theme-error-surface`,warning:`--app-theme-warning`,warningForeground:`--app-theme-warning-foreground`,warningSurface:`--app-theme-warning-surface`,update:`--app-theme-update`,updateForeground:`--app-theme-update-foreground`,updateSurface:`--app-theme-update-surface`,accentSurface:`--app-theme-accent-surface`,accentSurfaceForeground:`--app-theme-accent-surface-foreground`,messageSurface:`--app-theme-message-surface`,messageForeground:`--app-theme-message-foreground`,messageAction:`--app-theme-message-action`,messageActionForeground:`--app-theme-message-action-foreground`,messageActionHover:`--app-theme-message-action-hover`,codeBackground:`--app-theme-code-background`,codeForeground:`--app-theme-code-foreground`,searchMatchBackground:`--app-theme-search-match-background`,searchMatchForeground:`--app-theme-search-match-foreground`,searchMatchActiveBackground:`--app-theme-search-match-active-background`,searchMatchActiveForeground:`--app-theme-search-match-active-foreground`,sidebar:`--app-theme-sidebar`,sidebarForeground:`--app-theme-sidebar-foreground`,sidebarMutedForeground:`--app-theme-sidebar-muted-foreground`,sidebarControlSurface:`--app-theme-sidebar-control-surface`,sidebarRowHover:`--app-theme-sidebar-row-hover`,sidebarRowActive:`--app-theme-sidebar-row-active`,sidebarRowSelected:`--app-theme-sidebar-row-selected`,sidebarBorder:`--app-theme-sidebar-border`,terminalBackground:`--app-theme-terminal-background`,terminalForeground:`--app-theme-terminal-foreground`,terminalCursor:`--app-theme-terminal-cursor`,terminalSelection:`--app-theme-terminal-selection-background`,terminalScrollbar:`--app-theme-terminal-scrollbar`,terminalScrollbarHover:`--app-theme-terminal-scrollbar-hover`};function Jr(e){return qr[e]}var Yr=`__preview`;function Xr(e,t){if(typeof document>`u`)return;let n=document.documentElement;if(n?.style){Tn(!1),n.dataset.themeId=Yr,n.classList.toggle(`dark`,t===`dark`);for(let[t,r]of Object.entries(e))Dn(r)&&n.style.setProperty(qr[t],r)}}function Zr(e,t){if(typeof document>`u`)return;let n=document.documentElement;if(!n?.style)return;Tn(null);let r=Q(e);if(r){n.dataset.themeId=r.id;let i=$(r,t??Zn(e)??r.appearance)??r.colors;for(let[e,t]of Object.entries(i))n.style.setProperty(qr[e],t);return}delete n.dataset.themeId;for(let e of Object.values(qr))n.style.removeProperty(e)}function Qr(e,t,n,r,i){let a=t?`dark`:`light`,o=r??(n??e===`system`?`system`:null);if(o===`system`){if(i?.[a])return a;let t=Q(e);return t&&$(t,a)===null?t.appearance:a}if(o===`light`||o===`dark`){if(i?.[o])return o;let t=Q(e);return t&&$(t,o)===null?t.appearance:o}return Ar(e)??`light`}function $r(e,t,n,r){let i=n??(t??e===`system`?`system`:null);if(i===`system`){let t=Q(e),n=r?.light!==void 0||t!==null&&$(t,`light`)!==null,i=r?.dark!==void 0||t!==null&&$(t,`dark`)!==null;return t&&(!n||!i)?t.appearance:`system`}if(i===`light`||i===`dark`){if(r?.[i])return i;let t=Q(e);return t&&$(t,i)===null?t.appearance:i}return Ar(e)??`system`}function ei(e){return e===`light`||e===`dark`||e===`system`||Q(e)!==null}function ti(e){if(!e)return null;try{let t=JSON.parse(e);if(!B(t))return null;let n={};for(let e of[`light`,`dark`]){let r=t[e];if(typeof r!=`string`)continue;let i=Q(r);i&&$(i,e)!==null&&(n[e]=i.id)}return n.light!==void 0||n.dark!==void 0?n:null}catch{return null}}function ni(e,t,n){return t?.[n]??e}export{$t as $,Hr as A,wn as B,zn as C,jn as D,Dn as E,ni as F,Tr as G,cr as H,Kr as I,nn as J,sn as K,Un as L,Vr as M,$r as N,Gr as O,Qr as P,en as Q,Or as R,zr as S,Wn as T,jr as U,Dr as V,Br as W,rn as X,on as Y,tn as Z,$ as _,Yr as a,Ar as b,Zr as c,Vn as d,Qt as et,Z as f,Jr as g,Gn as h,hn as i,Ur as j,ti as k,Yn as l,Qn as m,mn as n,_n as o,Hn as p,an as q,pn as r,Xr as s,R as t,br as u,Q as v,ei as w,Cn as x,kr as y,Kn as z};
5
+ //# sourceMappingURL=themePalette-ELqAvm4C.js.map
@@ -0,0 +1,2 @@
1
+ import{$v as e,$y as t,Ah as n,Ey as r,Ky as i,Mh as a,Ny as o,Qv as s,Ym as c,ch as l,ih as u,my as d,ty as f,vy as ee,yS as p}from"./utils-BSj_I6H5.js";import{pn as m}from"./runtime-CKyYqaHd.js";function h(e,t){try{let n=new URL(e).pathname,r=n.indexOf(t);return r>0&&/^\d+(?:\/|$)/u.test(n.slice(r+t.length))}catch{return!1}}function g(e){return e}function _(e,t){if(t.authority===void 0)return!0;try{let n=new URL(e.locator.remoteUrl);if(n.protocol===`http:`||n.protocol===`https:`)return n.host.toLowerCase()===t.authority}catch{}return!0}function v(e,t,r){if(!_(t,r))return!1;let i=n(t,e);return i===r.host.toLowerCase()||i===r.authority}function te(e){return e.displayName??(e.owner&&e.name?`${e.owner}/${e.name}`:null)}function y(e,t,n){let r=te(t);return r!==null&&r.toLowerCase()===n.repository.toLowerCase()&&v(e,t,n)}var b={kind:a.make(`unknown`),label:`source control`,pickerLabel:`source control`,icon:`change-request`,changeRequest:{shortLabel:`change request`,singular:`change request`},repositoryPathHint:`URL`,publicHost:null,publishDescription:`Your signed-in server`,publishHost:e=>e??`your server`,newRepositoryOwner:()=>null,defaultCloneTransport:`ssh`,changeRequestUrl:()=>null,changeRequestActions:new Set,checkoutCommand:()=>null,authorProfileUrl:()=>null,referenceAutolinkRepositoryUrl:()=>null,reviewSummaryRequired:()=>!1,checkoutCommandArgument:()=>null,isChangeRequestReference:()=>!1,changeRequestUrlHost:e=>e.hostname,checkoutChangeRequestHost:()=>null,isChangeRequestInRepository:(e,t)=>y(a.make(`unknown`),e,t),canReadChangeRequestOnHost:(e,t)=>v(a.make(`unknown`),e,t),isChangeRequestUrl:()=>!1};function ne(e){let t=new Map;for(let n of e){if(t.has(n.kind))throw Error(`Source control host '${n.kind}' is defined more than once.`);t.set(n.kind,n)}return{definitions:e,get:n=>(n==null?e[0]:t.get(n))??b,find:e=>t.get(e),findByPublicHost:t=>{let n=t.toLowerCase();return e.find(e=>e.publicHost===n)},findByChangeRequestUrl:t=>e.find(e=>e.isChangeRequestUrl(t)),hostLabelForChangeRequestUrl:t=>e.find(e=>e.isChangeRequestUrl(t))?.label??`the host`}}function re(e,t){let n=o(e),r=n(t??{});if(r._tag===`Some`)return r.value;let i=n({});if(i._tag===`Some`)return i.value;throw Error(`A source control host settings schema must decode an empty object.`)}var x=/^az\s+repos\s+pr\s+checkout\s+(.+)$/i,S=/^https:\/\/(?:dev\.azure\.com\/[^/\s]+\/[^/\s]+|[^/\s]+\.visualstudio\.com\/[^/\s]+)\/_git\/[^/\s]+\/pullrequest\/(\d+)(?:[/?#].*)?$/i;function ie(e){let t=e.trim().split(/\s+/).filter(Boolean);for(let[e,n]of t.entries()){if(n===`--id`||n===`-i`)return t[e+1]??null;if(n.startsWith(`--id=`))return n.slice(5)||null}return t.find(e=>!e.startsWith(`-`))??null}var C=g({kind:a.make(`azure-devops`),label:`Azure DevOps`,pickerLabel:`Azure DevOps`,icon:`azure-devops`,changeRequest:{shortLabel:`PR`,singular:`pull request`},repositoryPathHint:`project/repository`,publicHost:null,publishDescription:`dev.azure.com`,publishHost:()=>`dev.azure.com`,newRepositoryOwner:()=>null,defaultCloneTransport:`ssh`,changeRequestUrl:({host:e,repository:t,number:n})=>`https://${m(`${e}/${t}`.toLowerCase())}/pullrequest/${n}`,changeRequestActions:new Set([`merge`,`ready`,`draft`,`close`,`reopen`,`enable-auto-merge`,`disable-auto-merge`]),checkoutCommand:({number:e})=>`az repos pr checkout --id ${e}`,authorProfileUrl:()=>null,referenceAutolinkRepositoryUrl:()=>null,reviewSummaryRequired:()=>!1,checkoutCommandArgument:e=>{let t=x.exec(e)?.[1];return t?ie(t):null},isChangeRequestReference:e=>S.test(e),changeRequestUrlHost:e=>e.hostname,checkoutChangeRequestHost:()=>null,isChangeRequestInRepository:(e,t)=>_(e,t)&&m(e.canonicalKey.toLowerCase())===m(`${t.host}/${t.repository}`.toLowerCase()),canReadChangeRequestOnHost:()=>!1,isChangeRequestUrl:e=>h(e,`/pullrequest/`)}),w=/^[A-Za-z0-9._/@+=,-]+$/,T=/^[A-Za-z0-9._-]+\/[A-Za-z0-9._-]+$/,E=a.make(`bitbucket`),D=n=>e.pipe(t(p(``)),r(n)),ae=u({accessToken:D({title:`Access token`,description:`Scoped to one repository, project, or workspace. Create it in that item's Bitbucket settings.`,settingsSecret:!0,providerSettingsForm:{control:`password`}}),email:D({title:`Atlassian account email`,description:`With an API token instead of an access token.`,providerSettingsForm:{placeholder:`you@example.com`}}),apiToken:D({title:`API token`,description:`Reaches every repository your Atlassian account can. Give it read and write access to repositories and pull requests, and read:user:bitbucket.`,settingsSecret:!0,providerSettingsForm:{control:`password`}})},{order:[`accessToken`,`email`,`apiToken`]}),O=g({kind:E,label:`Bitbucket`,pickerLabel:`Bitbucket`,icon:`bitbucket`,changeRequest:{shortLabel:`PR`,singular:`pull request`},repositoryPathHint:`workspace/repository`,publicHost:`bitbucket.org`,publishDescription:`bitbucket.org`,publishHost:()=>`bitbucket.org`,newRepositoryOwner:()=>null,defaultCloneTransport:`ssh`,changeRequestUrl:({host:e,repository:t,number:n})=>`https://${e}/${t}/pull-requests/${n}`,changeRequestActions:new Set([`merge`,`close`]),checkoutCommand:({number:e,headBranch:t,headRepositoryNameWithOwner:n})=>n&&T.test(n)&&w.test(t)?`git clone --single-branch --branch ${t} https://bitbucket.org/${n}.git t3code-pr-${e}`:null,authorProfileUrl:()=>null,referenceAutolinkRepositoryUrl:()=>null,reviewSummaryRequired:()=>!1,checkoutCommandArgument:()=>null,isChangeRequestReference:()=>!1,changeRequestUrlHost:e=>e.hostname,checkoutChangeRequestHost:()=>null,isChangeRequestInRepository:(e,t)=>y(E,e,t),canReadChangeRequestOnHost:(e,t)=>v(E,e,t),isChangeRequestUrl:e=>h(e,`/pull-requests/`),settings:ae}),k=/^tea\s+(?:pr|pulls)\s+checkout\s+(.+)$/i,A=/^https?:\/\/[^/\s]+\/(?:[^/\s]+\/)+[^/\s]+\/pulls\/(\d+)(?:[/?#].*)?$/i,j=a.make(`forgejo`);function M(e){if(!e.webUrl)return null;try{let t=new URL(e.webUrl);return t.protocol===`http:`||t.protocol===`https:`?t:null}catch{return null}}var N=g({kind:j,label:`Forgejo`,pickerLabel:`Forgejo / Gitea`,icon:`forgejo`,changeRequest:{shortLabel:`PR`,singular:`pull request`},repositoryPathHint:`owner/repo`,publicHost:null,publishDescription:`Your signed-in server`,publishHost:e=>e??`your server`,newRepositoryOwner:e=>e?{owner:e}:null,defaultCloneTransport:`https`,changeRequestUrl:({host:e,repository:t,number:n,remoteUrl:r,webUrl:i})=>{if(i)return`${i.replace(/\/+$/,``)}/pulls/${n}`;try{let i=new URL(r??``);if((i.protocol===`http:`||i.protocol===`https:`)&&(i.hostname.toLowerCase()===e.toLowerCase()||i.host.toLowerCase()===e.toLowerCase()))return`${i.origin}/${t}/pulls/${n}`}catch{}return`https://${e}/${t}/pulls/${n}`},changeRequestActions:new Set([`merge`,`close`,`reopen`,`update-branch`]),checkoutCommand:({number:e,repositoryUrl:t})=>t?`git fetch '${t.replaceAll(`'`,`'\\''`)}' refs/pull/${e}/head && git checkout -B pulls/${e} FETCH_HEAD`:null,authorProfileUrl:()=>null,referenceAutolinkRepositoryUrl:()=>null,reviewSummaryRequired:e=>e===`request-changes`,checkoutCommandArgument:e=>k.exec(e)?.[1]?.trim()??null,isChangeRequestReference:e=>A.test(e),changeRequestUrlHost:e=>e.host,checkoutChangeRequestHost:()=>null,isChangeRequestInRepository:(e,t)=>{if(!_(e,t))return!1;let n=M(e);return n?n.host.toLowerCase()===(t.authority??t.host).toLowerCase()&&n.pathname.replace(/^\/+|\/+$/g,``).toLowerCase()===t.repository.toLowerCase():y(j,e,t)},canReadChangeRequestOnHost:(e,t)=>{let n=M(e);if(!n)return v(j,e,t);let r=n.pathname.replace(/^\/+|\/+$/g,``).split(`/`).slice(0,-2).join(`/`);return n.host.toLowerCase()===(t.authority??t.host).toLowerCase()&&(!r||t.repository.toLowerCase().startsWith(`${r.toLowerCase()}/`))},isChangeRequestUrl:e=>h(e,`/pulls/`)}),P=new Set([`git.cafe`,`staging.git.cafe`]),F=a.make(`gitcafe`),I=u({token:e.pipe(l,t(p(``)),r({title:`Token`,description:`A git.cafe token, used before CAFE_TOKEN and the cafe login, so GitCafe works without the CLI signed in.`,providerSettingsForm:{control:`password`}}))}),L=g({kind:F,label:`GitCafe`,pickerLabel:`GitCafe`,icon:`gitcafe`,changeRequest:{shortLabel:`PR`,singular:`pull request`},repositoryPathHint:`owner/repo`,publicHost:null,publishDescription:`git.cafe`,publishHost:()=>`git.cafe`,newRepositoryOwner:e=>e?{owner:e}:null,defaultCloneTransport:`ssh`,changeRequestUrl:({host:e,repository:t,number:n})=>`https://${e}/${t}/pulls/${n}`,changeRequestActions:new Set([`ready`,`draft`,`close`,`reopen`,`merge`,`update-branch`]),checkoutCommand:({number:e})=>`cafe pr checkout ${e}`,authorProfileUrl:()=>null,referenceAutolinkRepositoryUrl:()=>null,reviewSummaryRequired:()=>!1,checkoutCommandArgument:()=>null,isChangeRequestReference:()=>!1,changeRequestUrlHost:e=>e.hostname,checkoutChangeRequestHost:()=>null,isChangeRequestInRepository:(e,t)=>y(F,e,t),canReadChangeRequestOnHost:(e,t)=>v(F,e,t),isChangeRequestUrl:e=>{try{return P.has(new URL(e).hostname.toLowerCase())&&h(e,`/pulls/`)}catch{return!1}},settings:I}),R=/^gh\s+pr\s+checkout\s+(.+)$/i,z=/^https:\/\/github\.com\/[^/\s]+\/[^/\s]+\/pull\/(\d+)(?:[/?#].*)?$/i,B=a.make(`github`),V=ee({account:i(s),enabled:f.pipe(t(p(!0)))}),H=u({hosts:d(c,V).pipe(t(p({})),r({providerSettingsForm:{hidden:!0}})),tokens:d(c,e).pipe(t(p({})),l,r({providerSettingsForm:{hidden:!0}}))}),oe=g({kind:B,label:`GitHub`,pickerLabel:`GitHub`,icon:`github`,changeRequest:{shortLabel:`PR`,singular:`pull request`},repositoryPathHint:`owner/repo`,publicHost:`github.com`,publishDescription:`github.com`,publishHost:()=>`github.com`,newRepositoryOwner:e=>({owner:e}),defaultCloneTransport:`https`,changeRequestUrl:({host:e,repository:t,number:n})=>`https://${e}/${t}/pull/${n}`,changeRequestActions:new Set([`merge`,`ready`,`draft`,`close`,`reopen`,`update-branch`,`enable-auto-merge`,`disable-auto-merge`,`revert`,`approve-workflows`]),checkoutCommand:({number:e})=>`gh pr checkout ${e}`,authorProfileUrl:(e,t)=>e.endsWith(`[bot]`)?null:new URL(`/${encodeURIComponent(e)}`,t).toString(),referenceAutolinkRepositoryUrl:e=>e,reviewSummaryRequired:()=>!1,checkoutCommandArgument:e=>R.exec(e)?.[1]?.trim()??null,isChangeRequestReference:e=>z.test(e),changeRequestUrlHost:e=>e.hostname,checkoutChangeRequestHost:e=>n(e,B),isChangeRequestInRepository:(e,t)=>y(B,e,t),canReadChangeRequestOnHost:(e,t)=>v(B,e,t),isChangeRequestUrl:e=>h(e,`/pull/`),settings:H}),U=/^glab\s+mr\s+checkout\s+(.+)$/i,W=/^https:\/\/[^/\s]*gitlab[^/\s]*\/.+\/-\/merge_requests\/(\d+)(?:[/?#].*)?$/i,G=a.make(`gitlab`),K=ne([oe,g({kind:G,label:`GitLab`,pickerLabel:`GitLab`,icon:`gitlab`,changeRequest:{shortLabel:`MR`,singular:`merge request`},repositoryPathHint:`group/project`,publicHost:`gitlab.com`,publishDescription:`gitlab.com`,publishHost:()=>`gitlab.com`,newRepositoryOwner:e=>({owner:e}),defaultCloneTransport:`ssh`,changeRequestUrl:({host:e,repository:t,number:n})=>`https://${e}/${t}/-/merge_requests/${n}`,changeRequestActions:new Set([`merge`,`ready`,`draft`,`close`,`reopen`,`update-branch`,`enable-auto-merge`,`disable-auto-merge`]),checkoutCommand:({number:e})=>`glab mr checkout ${e}`,authorProfileUrl:()=>null,referenceAutolinkRepositoryUrl:()=>null,reviewSummaryRequired:()=>!1,checkoutCommandArgument:e=>U.exec(e)?.[1]?.trim()??null,isChangeRequestReference:e=>W.test(e),changeRequestUrlHost:e=>e.hostname,checkoutChangeRequestHost:()=>null,isChangeRequestInRepository:(e,t)=>y(G,e,t),canReadChangeRequestOnHost:(e,t)=>v(G,e,t),isChangeRequestUrl:e=>h(e,`/-/merge_requests/`)}),L,N,O,C]);function q(e){return re(H,e.sourceControlHosts.github)}function J(e){if(!e)return null;let t=Date.parse(e);return Number.isFinite(t)?t:null}function Y(...e){for(let t of e){let e=J(t??void 0);if(e!==null)return e}return null}function se(e){if(e.latestUserMessageAt){let t=J(e.latestUserMessageAt);if(t!==null)return t}let t=null;for(let n of e.messages??[]){if(n.role!==`user`)continue;let e=J(n.createdAt);e!==null&&(t=t===null?e:Math.max(t,e))}return t===null?Y(e.updatedAt,e.createdAt)??-1/0:t}function X(e,t){return t===`created_at`?Y(e.createdAt,e.updatedAt)??-1/0:se(e)}function ce(e,t){return e.length<2?[...e]:e.map(e=>({thread:e,timestamp:X(e,t)})).sort((e,t)=>t.timestamp-e.timestamp||(e.thread.id<t.thread.id?1:e.thread.id>t.thread.id?-1:0)).map(({thread:e})=>e)}function le(e,t,n){let r=null,i=-1/0;for(let a of e){if(a.projectId!==t||a.archivedAt!==null)continue;let e=X(a,n);(r===null||e>i||e===i&&a.id>r.id)&&(r=a,i=e)}return r}var Z=`abcdefghijklmnopqrstuvwxyz`;function Q(e){if(e.length===0)return!1;for(let t of e)if(!Z.includes(t))return!1;return e.at(-1)!==Z[0]}function $(e,t){if(t!==``&&e>=t)throw Error(`pinOrderMidpoint: bounds out of order`);if(t!==``){let n=0;for(;(e.charAt(n)||Z[0])===t.charAt(n);)n+=1;if(n>0)return t.slice(0,n)+$(e.slice(n),t.slice(n))}let n=e===``?0:Z.indexOf(e.charAt(0)),r=t===``?26:Z.indexOf(t.charAt(0));return r-n>1?Z.charAt(Math.round((n+r)/2)):t.length>1?t.charAt(0):Z.charAt(n)+$(e.slice(1),``)}function ue(e,t){let n=e??``,r=t??``;return n!==``&&!Q(n)||r!==``&&!Q(r)||r!==``&&n>=r?null:$(n,r)}function de(e){if(e.length<2)return[...e];let t=[],n=[];for(let r of e)(r.pinOrderKey==null?n:t).push(r);let r=(e,t)=>e.id.localeCompare(t.id)||(e.environmentId??``).localeCompare(t.environmentId??``);t.sort((e,t)=>{let n=e.pinOrderKey,i=t.pinOrderKey;return n<i?-1:n>i?1:r(e,t)});let i=new Map(n.map(e=>[e,J(e.createdAt)??0]));return n.sort((e,t)=>i.get(t)-i.get(e)||r(e,t)),[...t,...n]}export{ce as a,K as c,de as i,b as l,X as n,J as o,ue as r,q as s,le as t};
2
+ //# sourceMappingURL=threadSort-C6bJOgqf.js.map
@@ -1,4 +1,4 @@
1
- import{n as e,t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n,p as r}from"./src-oBChb5qS.js";import{$ as i,J as a,a as o,b as s,et as c,nt as l,o as u,x as d}from"./chunk-DU6HZSFF-s_qrqgaz.js";import{t as f}from"./arc-DgcGdgmL.js";import{p}from"./chunk-75Z2AOVW-C85FbOND.js";import{f as m}from"./mermaid.core-9ekBSYCO.js";var h=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],a=[1,14],o=[1,15],s=[1,16],c=[1,19],l=[1,20],u={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:`error`,6:`EOF`,7:`timeline`,8:`timeline_lr`,9:`timeline_td`,11:`SPACE`,13:`NEWLINE`,14:`title`,15:`acc_title`,16:`acc_title_value`,17:`acc_descr`,18:`acc_descr_value`,19:`acc_descr_multiline_value`,20:`section`,23:`period`,24:`event`},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s]}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(n,[2,5],{5:6}),t(n,[2,2]),t(n,[2,3]),t(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},t(n,[2,10],{1:[2,1]}),t(n,[2,6]),{12:21,14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},t(n,[2,8]),t(n,[2,9]),t(n,[2,11]),{16:[1,22]},{18:[1,23]},t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,7]),t(n,[2,12]),t(n,[2,13])],defaultActions:{},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
1
+ import{n as e,t}from"./chunk-Y2CYZVJY-DsF7k-Jl.js";import{m as n,p as r}from"./src-oBChb5qS.js";import{$ as i,J as a,a as o,b as s,et as c,nt as l,o as u,x as d}from"./chunk-DU6HZSFF-BWG3N9au.js";import{t as f}from"./arc-DgcGdgmL.js";import{p}from"./chunk-75Z2AOVW-14_TWBCK.js";import{f as m}from"./mermaid.core--V3R0CM0.js";var h=(function(){var t=e(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),n=[6,11,13,14,15,17,19,20,23,24],r=[1,12],i=[1,13],a=[1,14],o=[1,15],s=[1,16],c=[1,19],l=[1,20],u={trace:e(function(){},`trace`),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:`error`,6:`EOF`,7:`timeline`,8:`timeline_lr`,9:`timeline_td`,11:`SPACE`,13:`NEWLINE`,14:`title`,15:`acc_title`,16:`acc_title_value`,17:`acc_descr`,18:`acc_descr_value`,19:`acc_descr_multiline_value`,20:`section`,23:`period`,24:`event`},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:e(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 3:r.setDirection(`LR`);break;case 4:r.setDirection(`TD`);break;case 5:this.$=[];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:case 8:this.$=a[s];break;case 9:case 10:this.$=[];break;case 11:r.getCommonDb().setDiagramTitle(a[s].substr(6)),this.$=a[s].substr(6);break;case 12:this.$=a[s].trim(),r.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=a[s].trim(),r.getCommonDb().setAccDescription(this.$);break;case 15:r.addSection(a[s].substr(8)),this.$=a[s].substr(8);break;case 18:r.addTask(a[s],0,``),this.$=a[s];break;case 19:r.addEvent(a[s].substr(2)),this.$=a[s]}},`anonymous`),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},t(n,[2,5],{5:6}),t(n,[2,2]),t(n,[2,3]),t(n,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},t(n,[2,10],{1:[2,1]}),t(n,[2,6]),{12:21,14:r,15:i,17:a,19:o,20:s,21:17,22:18,23:c,24:l},t(n,[2,8]),t(n,[2,9]),t(n,[2,11]),{16:[1,22]},{18:[1,23]},t(n,[2,14]),t(n,[2,15]),t(n,[2,16]),t(n,[2,17]),t(n,[2,18]),t(n,[2,19]),t(n,[2,7]),t(n,[2,12]),t(n,[2,13])],defaultActions:{},parseError:e(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:e(function(t){var n=this,r=[0],i=[],a=[null],o=[],s=this.table,c=``,l=0,u=0,d=0,f=2,p=1,m=o.slice.call(arguments,1),h=Object.create(this.lexer),g={yy:{}};for(var _ in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_)&&(g.yy[_]=this.yy[_]);h.setInput(t,g.yy),g.yy.lexer=h,g.yy.parser=this,h.yylloc===void 0&&(h.yylloc={});var v=h.yylloc;o.push(v);var y=h.options&&h.options.ranges;this.parseError=typeof g.yy.parseError==`function`?g.yy.parseError:Object.getPrototypeOf(this).parseError;function b(e){r.length-=2*e,a.length-=e,o.length-=e}e(b,`popStack`);function x(){var e=i.pop()||h.lex()||p;return typeof e!=`number`&&(e instanceof Array&&(i=e,e=i.pop()),e=n.symbols_[e]||e),e}e(x,`lex`);for(var S,C,w,T,E,D={},O,k,A,j;;){if(w=r[r.length-1],this.defaultActions[w]?T=this.defaultActions[w]:(S??=x(),T=s[w]&&s[w][S]),T===void 0||!T.length||!T[0]){var M=``;for(O in j=[],s[w])this.terminals_[O]&&O>f&&j.push(`'`+this.terminals_[O]+`'`);M=h.showPosition?`Parse error on line `+(l+1)+`:
2
2
  `+h.showPosition()+`
3
3
  Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(S==p?`end of input`:`'`+(this.terminals_[S]||S)+`'`),this.parseError(M,{text:h.match,token:this.terminals_[S]||S,line:h.yylineno,loc:v,expected:j})}if(T[0]instanceof Array&&T.length>1)throw Error(`Parse Error: multiple actions possible at state: `+w+`, token: `+S);switch(T[0]){case 1:r.push(S),a.push(h.yytext),o.push(h.yylloc),r.push(T[1]),S=null,C?(S=C,C=null):(u=h.yyleng,c=h.yytext,l=h.yylineno,v=h.yylloc,d>0&&d--);break;case 2:if(k=this.productions_[T[1]][1],D.$=a[a.length-k],D._$={first_line:o[o.length-(k||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(k||1)].first_column,last_column:o[o.length-1].last_column},y&&(D._$.range=[o[o.length-(k||1)].range[0],o[o.length-1].range[1]]),E=this.performAction.apply(D,[c,u,l,g.yy,T[1],a,o].concat(m)),E!==void 0)return E;k&&(r=r.slice(0,-1*k*2),a=a.slice(0,-1*k),o=o.slice(0,-1*k)),r.push(this.productions_[T[1]][0]),a.push(D.$),o.push(D._$),A=s[r[r.length-2]][r[r.length-1]],r.push(A);break;case 3:return!0}}return!0},`parse`)};u.lexer=(function(){return{EOF:1,parseError:e(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:e(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:e(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:e(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:e(function(){return this._more=!0,this},`more`),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:e(function(e){this.unput(this.match.slice(e))},`less`),pastInput:e(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:e(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:e(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
@@ -118,4 +118,4 @@ Expecting `+j.join(`, `)+`, got '`+(this.terminals_[S]||S)+`'`:`Parse error on l
118
118
  filter: brightness(120%);
119
119
  }
120
120
  `},`getStyles`)};export{Se as diagram};
121
- //# sourceMappingURL=timeline-definition-24CTP7MA-BxWmcZQs.js.map
121
+ //# sourceMappingURL=timeline-definition-24CTP7MA-Q0Al5L2-.js.map