@wzh-/ai-chat-example 1.0.1 → 1.0.3

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 (987) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/components/ChatConversation/ChatConversation.vue.d.ts +7 -0
  3. package/dist/components/ChatConversation/index.d.ts +1 -0
  4. package/dist/components/ChatPromptInputProvider/ChatPromptInputProvider.vue.d.ts +17 -0
  5. package/dist/components/ChatPromptInputProvider/index.d.ts +1 -0
  6. package/dist/components/ai-elements/artifact/Artifact.vue.d.ts +21 -0
  7. package/dist/components/ai-elements/artifact/ArtifactAction.vue.d.ts +32 -0
  8. package/dist/components/ai-elements/artifact/ArtifactActions.vue.d.ts +21 -0
  9. package/dist/components/ai-elements/artifact/ArtifactClose.vue.d.ts +27 -0
  10. package/dist/components/ai-elements/artifact/ArtifactContent.vue.d.ts +21 -0
  11. package/dist/components/ai-elements/artifact/ArtifactDescription.vue.d.ts +21 -0
  12. package/dist/components/ai-elements/artifact/ArtifactHeader.vue.d.ts +21 -0
  13. package/dist/components/ai-elements/artifact/ArtifactTitle.vue.d.ts +21 -0
  14. package/dist/components/ai-elements/artifact/index.d.ts +8 -0
  15. package/dist/components/ai-elements/canvas/index.d.ts +1 -0
  16. package/dist/components/ai-elements/chain-of-thought/ChainOfThought.vue.d.ts +30 -0
  17. package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtContent.vue.d.ts +21 -0
  18. package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtHeader.vue.d.ts +21 -0
  19. package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtImage.vue.d.ts +22 -0
  20. package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResult.vue.d.ts +21 -0
  21. package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtSearchResults.vue.d.ts +21 -0
  22. package/dist/components/ai-elements/chain-of-thought/ChainOfThoughtStep.vue.d.ts +28 -0
  23. package/dist/components/ai-elements/chain-of-thought/context.d.ts +6 -0
  24. package/dist/components/ai-elements/chain-of-thought/index.d.ts +7 -0
  25. package/dist/components/ai-elements/checkpoint/Checkpoint.vue.d.ts +21 -0
  26. package/dist/components/ai-elements/checkpoint/CheckpointIcon.vue.d.ts +21 -0
  27. package/dist/components/ai-elements/checkpoint/CheckpointTrigger.vue.d.ts +27 -0
  28. package/dist/components/ai-elements/checkpoint/index.d.ts +3 -0
  29. package/dist/components/ai-elements/code-block/CodeBlock.vue.d.ts +27 -0
  30. package/dist/components/ai-elements/code-block/CodeBlockCopyButton.vue.d.ts +30 -0
  31. package/dist/components/ai-elements/code-block/context.d.ts +5 -0
  32. package/dist/components/ai-elements/code-block/index.d.ts +2 -0
  33. package/dist/components/ai-elements/code-block/utils.d.ts +2 -0
  34. package/dist/components/ai-elements/confirmation/Confirmation.vue.d.ts +25 -0
  35. package/dist/components/ai-elements/confirmation/ConfirmationAccepted.vue.d.ts +17 -0
  36. package/dist/components/ai-elements/confirmation/ConfirmationAction.vue.d.ts +17 -0
  37. package/dist/components/ai-elements/confirmation/ConfirmationActions.vue.d.ts +21 -0
  38. package/dist/components/ai-elements/confirmation/ConfirmationRejected.vue.d.ts +17 -0
  39. package/dist/components/ai-elements/confirmation/ConfirmationRequest.vue.d.ts +17 -0
  40. package/dist/components/ai-elements/confirmation/ConfirmationTitle.vue.d.ts +21 -0
  41. package/dist/components/ai-elements/confirmation/context.d.ts +29 -0
  42. package/dist/components/ai-elements/confirmation/index.d.ts +7 -0
  43. package/dist/components/ai-elements/connection/Connection.vue.d.ts +3 -0
  44. package/dist/components/ai-elements/connection/index.d.ts +1 -0
  45. package/dist/components/ai-elements/context/Context.vue.d.ts +25 -0
  46. package/dist/components/ai-elements/context/ContextCacheUsage.vue.d.ts +21 -0
  47. package/dist/components/ai-elements/context/ContextContent.vue.d.ts +21 -0
  48. package/dist/components/ai-elements/context/ContextContentBody.vue.d.ts +21 -0
  49. package/dist/components/ai-elements/context/ContextContentFooter.vue.d.ts +21 -0
  50. package/dist/components/ai-elements/context/ContextContentHeader.vue.d.ts +21 -0
  51. package/dist/components/ai-elements/context/ContextIcon.vue.d.ts +2 -0
  52. package/dist/components/ai-elements/context/ContextInputUsage.vue.d.ts +21 -0
  53. package/dist/components/ai-elements/context/ContextOutputUsage.vue.d.ts +21 -0
  54. package/dist/components/ai-elements/context/ContextReasoningUsage.vue.d.ts +21 -0
  55. package/dist/components/ai-elements/context/ContextTrigger.vue.d.ts +17 -0
  56. package/dist/components/ai-elements/context/TokensWithCost.vue.d.ts +6 -0
  57. package/dist/components/ai-elements/context/context.d.ts +11 -0
  58. package/dist/components/ai-elements/context/index.d.ts +12 -0
  59. package/dist/components/ai-elements/controls/Controls.vue.d.ts +6 -0
  60. package/dist/components/ai-elements/controls/index.d.ts +1 -0
  61. package/dist/components/ai-elements/conversation/Conversation.vue.d.ts +47 -0
  62. package/dist/components/ai-elements/conversation/ConversationContent.vue.d.ts +21 -0
  63. package/dist/components/ai-elements/conversation/ConversationEmptyState.vue.d.ts +27 -0
  64. package/dist/components/ai-elements/conversation/ConversationScrollButton.vue.d.ts +6 -0
  65. package/dist/components/ai-elements/conversation/index.d.ts +4 -0
  66. package/dist/components/ai-elements/edge/Animated.vue.d.ts +4 -0
  67. package/dist/components/ai-elements/edge/Temporary.vue.d.ts +4 -0
  68. package/dist/components/ai-elements/edge/index.d.ts +2 -0
  69. package/dist/components/ai-elements/image/Image.vue.d.ts +8 -0
  70. package/dist/components/ai-elements/image/index.d.ts +1 -0
  71. package/dist/components/ai-elements/inline-citation/InlineCitation.vue.d.ts +21 -0
  72. package/dist/components/ai-elements/inline-citation/InlineCitationCard.vue.d.ts +24 -0
  73. package/dist/components/ai-elements/inline-citation/InlineCitationCardBody.vue.d.ts +21 -0
  74. package/dist/components/ai-elements/inline-citation/InlineCitationCardTrigger.vue.d.ts +7 -0
  75. package/dist/components/ai-elements/inline-citation/InlineCitationCarousel.vue.d.ts +21 -0
  76. package/dist/components/ai-elements/inline-citation/InlineCitationCarouselContent.vue.d.ts +17 -0
  77. package/dist/components/ai-elements/inline-citation/InlineCitationCarouselHeader.vue.d.ts +21 -0
  78. package/dist/components/ai-elements/inline-citation/InlineCitationCarouselIndex.vue.d.ts +21 -0
  79. package/dist/components/ai-elements/inline-citation/InlineCitationCarouselItem.vue.d.ts +21 -0
  80. package/dist/components/ai-elements/inline-citation/InlineCitationCarouselNext.vue.d.ts +6 -0
  81. package/dist/components/ai-elements/inline-citation/InlineCitationCarouselPrev.vue.d.ts +6 -0
  82. package/dist/components/ai-elements/inline-citation/InlineCitationQuote.vue.d.ts +21 -0
  83. package/dist/components/ai-elements/inline-citation/InlineCitationSource.vue.d.ts +24 -0
  84. package/dist/components/ai-elements/inline-citation/InlineCitationText.vue.d.ts +21 -0
  85. package/dist/components/ai-elements/inline-citation/index.d.ts +14 -0
  86. package/dist/components/ai-elements/loader/Loader.vue.d.ts +9 -0
  87. package/dist/components/ai-elements/loader/LoaderIcon.vue.d.ts +7 -0
  88. package/dist/components/ai-elements/loader/index.d.ts +2 -0
  89. package/dist/components/ai-elements/message/Message.vue.d.ts +23 -0
  90. package/dist/components/ai-elements/message/MessageAction.vue.d.ts +28 -0
  91. package/dist/components/ai-elements/message/MessageActions.vue.d.ts +21 -0
  92. package/dist/components/ai-elements/message/MessageAttachment.vue.d.ts +12 -0
  93. package/dist/components/ai-elements/message/MessageAttachments.vue.d.ts +21 -0
  94. package/dist/components/ai-elements/message/MessageAvatar.vue.d.ts +8 -0
  95. package/dist/components/ai-elements/message/MessageBranch.vue.d.ts +28 -0
  96. package/dist/components/ai-elements/message/MessageBranchContent.vue.d.ts +6 -0
  97. package/dist/components/ai-elements/message/MessageBranchNext.vue.d.ts +17 -0
  98. package/dist/components/ai-elements/message/MessageBranchPage.vue.d.ts +6 -0
  99. package/dist/components/ai-elements/message/MessageBranchPrevious.vue.d.ts +17 -0
  100. package/dist/components/ai-elements/message/MessageBranchSelector.vue.d.ts +21 -0
  101. package/dist/components/ai-elements/message/MessageContent.vue.d.ts +21 -0
  102. package/dist/components/ai-elements/message/MessageResponse.vue.d.ts +7 -0
  103. package/dist/components/ai-elements/message/MessageToolbar.vue.d.ts +21 -0
  104. package/dist/components/ai-elements/message/context.d.ts +11 -0
  105. package/dist/components/ai-elements/message/index.d.ts +15 -0
  106. package/dist/components/ai-elements/model-selector/ModelSelector.vue.d.ts +17 -0
  107. package/dist/components/ai-elements/model-selector/ModelSelectorContent.vue.d.ts +24 -0
  108. package/dist/components/ai-elements/model-selector/ModelSelectorDialog.vue.d.ts +17 -0
  109. package/dist/components/ai-elements/model-selector/ModelSelectorEmpty.vue.d.ts +17 -0
  110. package/dist/components/ai-elements/model-selector/ModelSelectorGroup.vue.d.ts +17 -0
  111. package/dist/components/ai-elements/model-selector/ModelSelectorInput.vue.d.ts +6 -0
  112. package/dist/components/ai-elements/model-selector/ModelSelectorItem.vue.d.ts +17 -0
  113. package/dist/components/ai-elements/model-selector/ModelSelectorList.vue.d.ts +17 -0
  114. package/dist/components/ai-elements/model-selector/ModelSelectorLogo.vue.d.ts +7 -0
  115. package/dist/components/ai-elements/model-selector/ModelSelectorLogoGroup.vue.d.ts +21 -0
  116. package/dist/components/ai-elements/model-selector/ModelSelectorName.vue.d.ts +21 -0
  117. package/dist/components/ai-elements/model-selector/ModelSelectorSeparator.vue.d.ts +2 -0
  118. package/dist/components/ai-elements/model-selector/ModelSelectorShortcut.vue.d.ts +17 -0
  119. package/dist/components/ai-elements/model-selector/ModelSelectorTrigger.vue.d.ts +17 -0
  120. package/dist/components/ai-elements/model-selector/index.d.ts +14 -0
  121. package/dist/components/ai-elements/node/Node.vue.d.ts +26 -0
  122. package/dist/components/ai-elements/node/NodeAction.vue.d.ts +17 -0
  123. package/dist/components/ai-elements/node/NodeContent.vue.d.ts +21 -0
  124. package/dist/components/ai-elements/node/NodeDescription.vue.d.ts +17 -0
  125. package/dist/components/ai-elements/node/NodeFooter.vue.d.ts +21 -0
  126. package/dist/components/ai-elements/node/NodeHeader.vue.d.ts +21 -0
  127. package/dist/components/ai-elements/node/NodeTitle.vue.d.ts +17 -0
  128. package/dist/components/ai-elements/node/index.d.ts +7 -0
  129. package/dist/components/ai-elements/open-in-chat/OpenIn.vue.d.ts +20 -0
  130. package/dist/components/ai-elements/open-in-chat/OpenInContent.vue.d.ts +21 -0
  131. package/dist/components/ai-elements/open-in-chat/OpenInItemLink.vue.d.ts +8 -0
  132. package/dist/components/ai-elements/open-in-chat/OpenInTrigger.vue.d.ts +17 -0
  133. package/dist/components/ai-elements/open-in-chat/context.d.ts +7 -0
  134. package/dist/components/ai-elements/open-in-chat/index.d.ts +9 -0
  135. package/dist/components/ai-elements/open-in-chat/providers/icons/ChatGPT.vue.d.ts +2 -0
  136. package/dist/components/ai-elements/open-in-chat/providers/icons/Claude.vue.d.ts +2 -0
  137. package/dist/components/ai-elements/open-in-chat/providers/icons/Cursor.vue.d.ts +2 -0
  138. package/dist/components/ai-elements/open-in-chat/providers/icons/Github.vue.d.ts +2 -0
  139. package/dist/components/ai-elements/open-in-chat/providers/icons/Scira.vue.d.ts +2 -0
  140. package/dist/components/ai-elements/open-in-chat/providers/icons/V0.vue.d.ts +2 -0
  141. package/dist/components/ai-elements/open-in-chat/providers/icons/index.d.ts +6 -0
  142. package/dist/components/ai-elements/open-in-chat/providers/index.d.ts +38 -0
  143. package/dist/components/ai-elements/open-in-chat/providers/items/OpenInChatGPT.vue.d.ts +2 -0
  144. package/dist/components/ai-elements/open-in-chat/providers/items/OpenInClaude.vue.d.ts +2 -0
  145. package/dist/components/ai-elements/open-in-chat/providers/items/OpenInCursor.vue.d.ts +2 -0
  146. package/dist/components/ai-elements/open-in-chat/providers/items/OpenInScira.vue.d.ts +2 -0
  147. package/dist/components/ai-elements/open-in-chat/providers/items/OpenInT3.vue.d.ts +2 -0
  148. package/dist/components/ai-elements/open-in-chat/providers/items/OpenInv0.vue.d.ts +2 -0
  149. package/dist/components/ai-elements/panel/Panel.vue.d.ts +25 -0
  150. package/dist/components/ai-elements/panel/index.d.ts +1 -0
  151. package/dist/components/ai-elements/plan/Plan.vue.d.ts +24 -0
  152. package/dist/components/ai-elements/plan/PlanAction.vue.d.ts +17 -0
  153. package/dist/components/ai-elements/plan/PlanContent.vue.d.ts +17 -0
  154. package/dist/components/ai-elements/plan/PlanDescription.vue.d.ts +22 -0
  155. package/dist/components/ai-elements/plan/PlanFooter.vue.d.ts +17 -0
  156. package/dist/components/ai-elements/plan/PlanHeader.vue.d.ts +21 -0
  157. package/dist/components/ai-elements/plan/PlanTitle.vue.d.ts +18 -0
  158. package/dist/components/ai-elements/plan/PlanTrigger.vue.d.ts +6 -0
  159. package/dist/components/ai-elements/plan/context.d.ts +7 -0
  160. package/dist/components/ai-elements/plan/index.d.ts +8 -0
  161. package/dist/components/ai-elements/prompt-input/PromptInput.vue.d.ts +46 -0
  162. package/dist/components/ai-elements/prompt-input/PromptInputActionAddAttachments.vue.d.ts +7 -0
  163. package/dist/components/ai-elements/prompt-input/PromptInputActionMenu.vue.d.ts +21 -0
  164. package/dist/components/ai-elements/prompt-input/PromptInputActionMenuContent.vue.d.ts +23 -0
  165. package/dist/components/ai-elements/prompt-input/PromptInputActionMenuItem.vue.d.ts +23 -0
  166. package/dist/components/ai-elements/prompt-input/PromptInputActionMenuTrigger.vue.d.ts +23 -0
  167. package/dist/components/ai-elements/prompt-input/PromptInputAttachment.vue.d.ts +8 -0
  168. package/dist/components/ai-elements/prompt-input/PromptInputAttachments.vue.d.ts +23 -0
  169. package/dist/components/ai-elements/prompt-input/PromptInputBody.vue.d.ts +21 -0
  170. package/dist/components/ai-elements/prompt-input/PromptInputButton.vue.d.ts +20 -0
  171. package/dist/components/ai-elements/prompt-input/PromptInputCommand.vue.d.ts +23 -0
  172. package/dist/components/ai-elements/prompt-input/PromptInputCommandEmpty.vue.d.ts +23 -0
  173. package/dist/components/ai-elements/prompt-input/PromptInputCommandGroup.vue.d.ts +23 -0
  174. package/dist/components/ai-elements/prompt-input/PromptInputCommandInput.vue.d.ts +8 -0
  175. package/dist/components/ai-elements/prompt-input/PromptInputCommandItem.vue.d.ts +23 -0
  176. package/dist/components/ai-elements/prompt-input/PromptInputCommandList.vue.d.ts +8 -0
  177. package/dist/components/ai-elements/prompt-input/PromptInputCommandSeparator.vue.d.ts +8 -0
  178. package/dist/components/ai-elements/prompt-input/PromptInputFooter.vue.d.ts +23 -0
  179. package/dist/components/ai-elements/prompt-input/PromptInputHeader.vue.d.ts +23 -0
  180. package/dist/components/ai-elements/prompt-input/PromptInputHoverCard.vue.d.ts +26 -0
  181. package/dist/components/ai-elements/prompt-input/PromptInputHoverCardContent.vue.d.ts +23 -0
  182. package/dist/components/ai-elements/prompt-input/PromptInputHoverCardTrigger.vue.d.ts +21 -0
  183. package/dist/components/ai-elements/prompt-input/PromptInputProvider.vue.d.ts +43 -0
  184. package/dist/components/ai-elements/prompt-input/PromptInputSelect.vue.d.ts +21 -0
  185. package/dist/components/ai-elements/prompt-input/PromptInputSelectContent.vue.d.ts +23 -0
  186. package/dist/components/ai-elements/prompt-input/PromptInputSelectItem.vue.d.ts +23 -0
  187. package/dist/components/ai-elements/prompt-input/PromptInputSelectTrigger.vue.d.ts +23 -0
  188. package/dist/components/ai-elements/prompt-input/PromptInputSelectValue.vue.d.ts +23 -0
  189. package/dist/components/ai-elements/prompt-input/PromptInputSpeechButton.vue.d.ts +51 -0
  190. package/dist/components/ai-elements/prompt-input/PromptInputSubmit.vue.d.ts +30 -0
  191. package/dist/components/ai-elements/prompt-input/PromptInputTab.vue.d.ts +21 -0
  192. package/dist/components/ai-elements/prompt-input/PromptInputTabBody.vue.d.ts +21 -0
  193. package/dist/components/ai-elements/prompt-input/PromptInputTabItem.vue.d.ts +21 -0
  194. package/dist/components/ai-elements/prompt-input/PromptInputTabLabel.vue.d.ts +21 -0
  195. package/dist/components/ai-elements/prompt-input/PromptInputTabsList.vue.d.ts +21 -0
  196. package/dist/components/ai-elements/prompt-input/PromptInputTextarea.vue.d.ts +8 -0
  197. package/dist/components/ai-elements/prompt-input/PromptInputTools.vue.d.ts +21 -0
  198. package/dist/components/ai-elements/prompt-input/context.d.ts +22 -0
  199. package/dist/components/ai-elements/prompt-input/index.d.ts +39 -0
  200. package/dist/components/ai-elements/prompt-input/types.d.ts +24 -0
  201. package/dist/components/ai-elements/queue/Queue.vue.d.ts +21 -0
  202. package/dist/components/ai-elements/queue/QueueItem.vue.d.ts +21 -0
  203. package/dist/components/ai-elements/queue/QueueItemAction.vue.d.ts +21 -0
  204. package/dist/components/ai-elements/queue/QueueItemActions.vue.d.ts +21 -0
  205. package/dist/components/ai-elements/queue/QueueItemAttachment.vue.d.ts +21 -0
  206. package/dist/components/ai-elements/queue/QueueItemContent.vue.d.ts +24 -0
  207. package/dist/components/ai-elements/queue/QueueItemDescription.vue.d.ts +24 -0
  208. package/dist/components/ai-elements/queue/QueueItemFile.vue.d.ts +21 -0
  209. package/dist/components/ai-elements/queue/QueueItemImage.vue.d.ts +6 -0
  210. package/dist/components/ai-elements/queue/QueueItemIndicator.vue.d.ts +9 -0
  211. package/dist/components/ai-elements/queue/QueueList.vue.d.ts +21 -0
  212. package/dist/components/ai-elements/queue/QueueSection.vue.d.ts +24 -0
  213. package/dist/components/ai-elements/queue/QueueSectionContent.vue.d.ts +21 -0
  214. package/dist/components/ai-elements/queue/QueueSectionLabel.vue.d.ts +23 -0
  215. package/dist/components/ai-elements/queue/QueueSectionTrigger.vue.d.ts +21 -0
  216. package/dist/components/ai-elements/queue/index.d.ts +15 -0
  217. package/dist/components/ai-elements/reasoning/Reasoning.vue.d.ts +35 -0
  218. package/dist/components/ai-elements/reasoning/ReasoningContent.vue.d.ts +7 -0
  219. package/dist/components/ai-elements/reasoning/ReasoningTrigger.vue.d.ts +21 -0
  220. package/dist/components/ai-elements/reasoning/context.d.ts +9 -0
  221. package/dist/components/ai-elements/reasoning/index.d.ts +3 -0
  222. package/dist/components/ai-elements/shimmer/Shimmer.vue.d.ts +28 -0
  223. package/dist/components/ai-elements/shimmer/index.d.ts +1 -0
  224. package/dist/components/ai-elements/sources/Source.vue.d.ts +23 -0
  225. package/dist/components/ai-elements/sources/Sources.vue.d.ts +21 -0
  226. package/dist/components/ai-elements/sources/SourcesContent.vue.d.ts +21 -0
  227. package/dist/components/ai-elements/sources/SourcesTrigger.vue.d.ts +22 -0
  228. package/dist/components/ai-elements/sources/index.d.ts +4 -0
  229. package/dist/components/ai-elements/suggestion/Suggestion.vue.d.ts +31 -0
  230. package/dist/components/ai-elements/suggestion/Suggestions.vue.d.ts +21 -0
  231. package/dist/components/ai-elements/suggestion/index.d.ts +2 -0
  232. package/dist/components/ai-elements/task/Task.vue.d.ts +28 -0
  233. package/dist/components/ai-elements/task/TaskContent.vue.d.ts +21 -0
  234. package/dist/components/ai-elements/task/TaskItem.vue.d.ts +21 -0
  235. package/dist/components/ai-elements/task/TaskItemFile.vue.d.ts +21 -0
  236. package/dist/components/ai-elements/task/TaskTrigger.vue.d.ts +22 -0
  237. package/dist/components/ai-elements/task/index.d.ts +5 -0
  238. package/dist/components/ai-elements/tool/Tool.vue.d.ts +21 -0
  239. package/dist/components/ai-elements/tool/ToolContent.vue.d.ts +21 -0
  240. package/dist/components/ai-elements/tool/ToolHeader.vue.d.ts +10 -0
  241. package/dist/components/ai-elements/tool/ToolInput.vue.d.ts +8 -0
  242. package/dist/components/ai-elements/tool/ToolOutput.vue.d.ts +9 -0
  243. package/dist/components/ai-elements/tool/ToolStatusBadge.vue.d.ts +6 -0
  244. package/dist/components/ai-elements/tool/index.d.ts +5 -0
  245. package/dist/components/ai-elements/toolbar/Toolbar.vue.d.ts +25 -0
  246. package/dist/components/ai-elements/toolbar/index.d.ts +1 -0
  247. package/dist/components/ai-elements/web-preview/WebPreview.vue.d.ts +34 -0
  248. package/dist/components/ai-elements/web-preview/WebPreviewBody.vue.d.ts +24 -0
  249. package/dist/components/ai-elements/web-preview/WebPreviewConsole.vue.d.ts +30 -0
  250. package/dist/components/ai-elements/web-preview/WebPreviewNavigation.vue.d.ts +21 -0
  251. package/dist/components/ai-elements/web-preview/WebPreviewNavigationButton.vue.d.ts +30 -0
  252. package/dist/components/ai-elements/web-preview/WebPreviewUrl.vue.d.ts +9 -0
  253. package/dist/components/ai-elements/web-preview/context.d.ts +9 -0
  254. package/dist/components/ai-elements/web-preview/index.d.ts +7 -0
  255. package/dist/components/ui/alert/Alert.vue.d.ts +23 -0
  256. package/dist/components/ui/alert/AlertDescription.vue.d.ts +21 -0
  257. package/dist/components/ui/alert/AlertTitle.vue.d.ts +21 -0
  258. package/dist/components/ui/alert/index.d.ts +8 -0
  259. package/dist/components/ui/avatar/Avatar.vue.d.ts +21 -0
  260. package/dist/components/ui/avatar/AvatarFallback.vue.d.ts +22 -0
  261. package/dist/components/ui/avatar/AvatarImage.vue.d.ts +18 -0
  262. package/dist/components/ui/avatar/index.d.ts +3 -0
  263. package/dist/components/ui/badge/Badge.vue.d.ts +24 -0
  264. package/dist/components/ui/badge/index.d.ts +6 -0
  265. package/dist/components/ui/button/Button.vue.d.ts +27 -0
  266. package/dist/components/ui/button/index.d.ts +7 -0
  267. package/dist/components/ui/button-group/ButtonGroup.vue.d.ts +23 -0
  268. package/dist/components/ui/button-group/ButtonGroupSeparator.vue.d.ts +9 -0
  269. package/dist/components/ui/button-group/ButtonGroupText.vue.d.ts +26 -0
  270. package/dist/components/ui/button-group/index.d.ts +8 -0
  271. package/dist/components/ui/card/Card.vue.d.ts +21 -0
  272. package/dist/components/ui/card/CardAction.vue.d.ts +21 -0
  273. package/dist/components/ui/card/CardContent.vue.d.ts +21 -0
  274. package/dist/components/ui/card/CardDescription.vue.d.ts +21 -0
  275. package/dist/components/ui/card/CardFooter.vue.d.ts +21 -0
  276. package/dist/components/ui/card/CardHeader.vue.d.ts +21 -0
  277. package/dist/components/ui/card/CardTitle.vue.d.ts +21 -0
  278. package/dist/components/ui/card/index.d.ts +7 -0
  279. package/dist/components/ui/carousel/CarouselContent.vue.d.ts +22 -0
  280. package/dist/components/ui/carousel/CarouselItem.vue.d.ts +18 -0
  281. package/dist/components/ui/carousel/CarouselNext.vue.d.ts +26 -0
  282. package/dist/components/ui/carousel/CarouselPrevious.vue.d.ts +26 -0
  283. package/dist/components/ui/carousel/index.d.ts +7 -0
  284. package/dist/components/ui/carousel/interface.d.ts +19 -0
  285. package/dist/components/ui/collapsible/Collapsible.vue.d.ts +24 -0
  286. package/dist/components/ui/collapsible/CollapsibleContent.vue.d.ts +18 -0
  287. package/dist/components/ui/collapsible/CollapsibleTrigger.vue.d.ts +18 -0
  288. package/dist/components/ui/collapsible/index.d.ts +3 -0
  289. package/dist/components/ui/command/Command.vue.d.ts +40 -0
  290. package/dist/components/ui/command/CommandDialog.vue.d.ts +32 -0
  291. package/dist/components/ui/command/CommandEmpty.vue.d.ts +22 -0
  292. package/dist/components/ui/command/CommandGroup.vue.d.ts +23 -0
  293. package/dist/components/ui/command/CommandInput.vue.d.ts +7 -0
  294. package/dist/components/ui/command/CommandItem.vue.d.ts +30 -0
  295. package/dist/components/ui/command/CommandList.vue.d.ts +22 -0
  296. package/dist/components/ui/command/CommandSeparator.vue.d.ts +22 -0
  297. package/dist/components/ui/command/CommandShortcut.vue.d.ts +21 -0
  298. package/dist/components/ui/command/index.d.ts +90 -0
  299. package/dist/components/ui/dialog/Dialog.vue.d.ts +25 -0
  300. package/dist/components/ui/dialog/DialogClose.vue.d.ts +18 -0
  301. package/dist/components/ui/dialog/DialogContent.vue.d.ts +39 -0
  302. package/dist/components/ui/dialog/DialogDescription.vue.d.ts +22 -0
  303. package/dist/components/ui/dialog/DialogFooter.vue.d.ts +21 -0
  304. package/dist/components/ui/dialog/DialogHeader.vue.d.ts +21 -0
  305. package/dist/components/ui/dialog/DialogOverlay.vue.d.ts +22 -0
  306. package/dist/components/ui/dialog/DialogScrollContent.vue.d.ts +36 -0
  307. package/dist/components/ui/dialog/DialogTitle.vue.d.ts +22 -0
  308. package/dist/components/ui/dialog/DialogTrigger.vue.d.ts +18 -0
  309. package/dist/components/ui/dialog/index.d.ts +10 -0
  310. package/dist/components/ui/dropdown-menu/DropdownMenu.vue.d.ts +24 -0
  311. package/dist/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +29 -0
  312. package/dist/components/ui/dropdown-menu/DropdownMenuContent.vue.d.ts +36 -0
  313. package/dist/components/ui/dropdown-menu/DropdownMenuGroup.vue.d.ts +18 -0
  314. package/dist/components/ui/dropdown-menu/DropdownMenuItem.vue.d.ts +26 -0
  315. package/dist/components/ui/dropdown-menu/DropdownMenuLabel.vue.d.ts +23 -0
  316. package/dist/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue.d.ts +22 -0
  317. package/dist/components/ui/dropdown-menu/DropdownMenuRadioItem.vue.d.ts +27 -0
  318. package/dist/components/ui/dropdown-menu/DropdownMenuSeparator.vue.d.ts +7 -0
  319. package/dist/components/ui/dropdown-menu/DropdownMenuShortcut.vue.d.ts +21 -0
  320. package/dist/components/ui/dropdown-menu/DropdownMenuSub.vue.d.ts +22 -0
  321. package/dist/components/ui/dropdown-menu/DropdownMenuSubContent.vue.d.ts +38 -0
  322. package/dist/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue.d.ts +23 -0
  323. package/dist/components/ui/dropdown-menu/DropdownMenuTrigger.vue.d.ts +18 -0
  324. package/dist/components/ui/dropdown-menu/index.d.ts +15 -0
  325. package/dist/components/ui/hover-card/HoverCard.vue.d.ts +24 -0
  326. package/dist/components/ui/hover-card/HoverCardContent.vue.d.ts +24 -0
  327. package/dist/components/ui/hover-card/HoverCardTrigger.vue.d.ts +18 -0
  328. package/dist/components/ui/hover-card/index.d.ts +3 -0
  329. package/dist/components/ui/input/Input.vue.d.ts +12 -0
  330. package/dist/components/ui/input/index.d.ts +1 -0
  331. package/dist/components/ui/input-group/InputGroup.vue.d.ts +21 -0
  332. package/dist/components/ui/input-group/InputGroupAddon.vue.d.ts +25 -0
  333. package/dist/components/ui/input-group/InputGroupButton.vue.d.ts +21 -0
  334. package/dist/components/ui/input-group/InputGroupInput.vue.d.ts +6 -0
  335. package/dist/components/ui/input-group/InputGroupText.vue.d.ts +21 -0
  336. package/dist/components/ui/input-group/InputGroupTextarea.vue.d.ts +6 -0
  337. package/dist/components/ui/input-group/index.d.ts +22 -0
  338. package/dist/components/ui/progress/Progress.vue.d.ts +9 -0
  339. package/dist/components/ui/progress/index.d.ts +1 -0
  340. package/dist/components/ui/scroll-area/ScrollArea.vue.d.ts +22 -0
  341. package/dist/components/ui/scroll-area/ScrollBar.vue.d.ts +9 -0
  342. package/dist/components/ui/scroll-area/index.d.ts +2 -0
  343. package/dist/components/ui/select/Select.vue.d.ts +28 -0
  344. package/dist/components/ui/select/SelectContent.vue.d.ts +32 -0
  345. package/dist/components/ui/select/SelectGroup.vue.d.ts +18 -0
  346. package/dist/components/ui/select/SelectItem.vue.d.ts +23 -0
  347. package/dist/components/ui/select/SelectItemText.vue.d.ts +18 -0
  348. package/dist/components/ui/select/SelectLabel.vue.d.ts +22 -0
  349. package/dist/components/ui/select/SelectScrollDownButton.vue.d.ts +22 -0
  350. package/dist/components/ui/select/SelectScrollUpButton.vue.d.ts +22 -0
  351. package/dist/components/ui/select/SelectSeparator.vue.d.ts +7 -0
  352. package/dist/components/ui/select/SelectTrigger.vue.d.ts +25 -0
  353. package/dist/components/ui/select/SelectValue.vue.d.ts +18 -0
  354. package/dist/components/ui/select/index.d.ts +11 -0
  355. package/dist/components/ui/separator/Separator.vue.d.ts +10 -0
  356. package/dist/components/ui/separator/index.d.ts +1 -0
  357. package/dist/components/ui/textarea/Textarea.vue.d.ts +12 -0
  358. package/dist/components/ui/textarea/index.d.ts +1 -0
  359. package/dist/components/ui/tooltip/Tooltip.vue.d.ts +24 -0
  360. package/dist/components/ui/tooltip/TooltipContent.vue.d.ts +30 -0
  361. package/dist/components/ui/tooltip/TooltipProvider.vue.d.ts +20 -0
  362. package/dist/components/ui/tooltip/TooltipTrigger.vue.d.ts +18 -0
  363. package/dist/components/ui/tooltip/index.d.ts +4 -0
  364. package/dist/composables/useChat.d.ts +8 -0
  365. package/dist/css/style.css +2 -0
  366. package/dist/index.d.ts +3 -0
  367. package/dist/js/_basePickBy.js +135 -0
  368. package/dist/js/_baseUniq.js +573 -0
  369. package/dist/js/angular-html.js +14 -0
  370. package/dist/js/angular-html2.js +5 -0
  371. package/dist/js/angular-ts.js +19 -0
  372. package/dist/js/apl.js +15 -0
  373. package/dist/js/arc.js +78 -0
  374. package/dist/js/architecture-U656AL7Q.js +8 -0
  375. package/dist/js/architectureDiagram-VXUJARFQ.js +4053 -0
  376. package/dist/js/astro.js +16 -0
  377. package/dist/js/bash.js +2 -0
  378. package/dist/js/blade.js +19 -0
  379. package/dist/js/blockDiagram-VD42YOAC.js +3013 -0
  380. package/dist/js/bsl.js +3 -0
  381. package/dist/js/c.js +2 -0
  382. package/dist/js/c4Diagram-YG6GDRKO.js +2955 -0
  383. package/dist/js/cairo.js +3 -0
  384. package/dist/js/channel.js +3 -0
  385. package/dist/js/chunk-4BX2VUAB.js +6 -0
  386. package/dist/js/chunk-55IACEB6.js +6 -0
  387. package/dist/js/chunk-76Q3JFCE.js +19 -0
  388. package/dist/js/chunk-ABZYJK2D.js +2515 -0
  389. package/dist/js/chunk-ATLVNIR6.js +65 -0
  390. package/dist/js/chunk-B4BG7PRW.js +3108 -0
  391. package/dist/js/chunk-CVBHYZKI.js +10 -0
  392. package/dist/js/chunk-DI55MBZ5.js +1994 -0
  393. package/dist/js/chunk-EXTU4WIE.js +7 -0
  394. package/dist/js/chunk-FMBD7UC4.js +3 -0
  395. package/dist/js/chunk-FPAJGGOC.js +12252 -0
  396. package/dist/js/chunk-FWNWRKHM.js +56 -0
  397. package/dist/js/chunk-HN2XXSSU.js +74 -0
  398. package/dist/js/chunk-JA3XYJ7Z.js +463 -0
  399. package/dist/js/chunk-JZLCHNYA.js +4861 -0
  400. package/dist/js/chunk-LBM3YZW2.js +19 -0
  401. package/dist/js/chunk-LHMN2FUI.js +19 -0
  402. package/dist/js/chunk-MI3HLSF2.js +1140 -0
  403. package/dist/js/chunk-N4CR4FBY.js +39 -0
  404. package/dist/js/chunk-O7ZBX7Z2.js +26 -0
  405. package/dist/js/chunk-QN33PNHL.js +23 -0
  406. package/dist/js/chunk-QXUST7PY.js +486 -0
  407. package/dist/js/chunk-QZHKN3VN.js +11 -0
  408. package/dist/js/chunk-S3R3BYOJ.js +1074 -0
  409. package/dist/js/chunk-S6J4BHB3.js +19 -0
  410. package/dist/js/chunk-T53DSG4Q.js +24 -0
  411. package/dist/js/chunk-TZMSLE5B.js +55 -0
  412. package/dist/js/classDiagram-2ON5EDUG.js +33 -0
  413. package/dist/js/classDiagram-v2-WZHVMYZB.js +33 -0
  414. package/dist/js/clone.js +7 -0
  415. package/dist/js/cmake.js +2 -0
  416. package/dist/js/cobol.js +10 -0
  417. package/dist/js/coffee.js +3 -0
  418. package/dist/js/cose-bilkent-S5V4N54A.js +2250 -0
  419. package/dist/js/cpp.js +16 -0
  420. package/dist/js/cpp2.js +6 -0
  421. package/dist/js/crystal.js +16 -0
  422. package/dist/js/csharp.js +2 -0
  423. package/dist/js/css.js +2 -0
  424. package/dist/js/csv.js +2 -0
  425. package/dist/js/dagre-6UL2VRFP.js +298 -0
  426. package/dist/js/dagre.js +1395 -0
  427. package/dist/js/diagram-PSM6KHXK.js +497 -0
  428. package/dist/js/diagram-QEK2KX5R.js +226 -0
  429. package/dist/js/diagram-S2PKOQOG.js +144 -0
  430. package/dist/js/diff.js +2 -0
  431. package/dist/js/dist.js +49 -0
  432. package/dist/js/edge.js +12 -0
  433. package/dist/js/elixir.js +5 -0
  434. package/dist/js/elm.js +4 -0
  435. package/dist/js/erDiagram-Q2GNP2WA.js +1603 -0
  436. package/dist/js/erb.js +25 -0
  437. package/dist/js/erlang.js +3 -0
  438. package/dist/js/flowDiagram-NV44I4VS.js +4132 -0
  439. package/dist/js/fortran-fixed-form.js +3 -0
  440. package/dist/js/fortran-free-form.js +2 -0
  441. package/dist/js/fsharp.js +3 -0
  442. package/dist/js/ganttDiagram-JELNMOA3.js +3009 -0
  443. package/dist/js/gdresource.js +8 -0
  444. package/dist/js/gdscript.js +2 -0
  445. package/dist/js/gdshader.js +2 -0
  446. package/dist/js/git-commit.js +3 -0
  447. package/dist/js/git-rebase.js +3 -0
  448. package/dist/js/gitGraph-F6HP7TQM.js +8 -0
  449. package/dist/js/gitGraphDiagram-NY62KEGX.js +634 -0
  450. package/dist/js/github-dark.js +2 -0
  451. package/dist/js/github-light.js +2 -0
  452. package/dist/js/glimmer-js.js +12 -0
  453. package/dist/js/glimmer-ts.js +12 -0
  454. package/dist/js/glsl.js +3 -0
  455. package/dist/js/glsl2.js +3 -0
  456. package/dist/js/go.js +2 -0
  457. package/dist/js/graphlib.js +223 -0
  458. package/dist/js/graphql.js +6 -0
  459. package/dist/js/graphql2.js +12 -0
  460. package/dist/js/hack.js +10 -0
  461. package/dist/js/haml.js +4 -0
  462. package/dist/js/haml2.js +8 -0
  463. package/dist/js/handlebars.js +12 -0
  464. package/dist/js/haxe.js +2 -0
  465. package/dist/js/hlsl.js +2 -0
  466. package/dist/js/html-derivative.js +5 -0
  467. package/dist/js/html-derivative2.js +3 -0
  468. package/dist/js/html.js +4 -0
  469. package/dist/js/html2.js +8 -0
  470. package/dist/js/http.js +17 -0
  471. package/dist/js/hurl.js +15 -0
  472. package/dist/js/hxml.js +3 -0
  473. package/dist/js/index.js +37693 -0
  474. package/dist/js/info-NVLQJR56.js +8 -0
  475. package/dist/js/infoDiagram-WHAUD3N6.js +31 -0
  476. package/dist/js/isEmpty.js +32 -0
  477. package/dist/js/java.js +2 -0
  478. package/dist/js/javascript.js +2 -0
  479. package/dist/js/jinja.js +5 -0
  480. package/dist/js/jison.js +3 -0
  481. package/dist/js/journeyDiagram-XKPGCS4Q.js +884 -0
  482. package/dist/js/json.js +2 -0
  483. package/dist/js/jsx.js +2 -0
  484. package/dist/js/julia.js +17 -0
  485. package/dist/js/kanban-definition-3W4ZIXB7.js +971 -0
  486. package/dist/js/katex.js +2 -0
  487. package/dist/js/latex.js +4 -0
  488. package/dist/js/less.js +2 -0
  489. package/dist/js/line.js +30 -0
  490. package/dist/js/linear.js +250 -0
  491. package/dist/js/liquid.js +12 -0
  492. package/dist/js/lua.js +3 -0
  493. package/dist/js/lua2.js +3 -0
  494. package/dist/js/markdown.js +2 -0
  495. package/dist/js/marko.js +12 -0
  496. package/dist/js/mdc.js +13 -0
  497. package/dist/js/mermaid-parser.core.js +48 -0
  498. package/dist/js/mermaid.core.js +895 -0
  499. package/dist/js/mindmap-definition-VGOIOE7T.js +960 -0
  500. package/dist/js/nginx.js +4 -0
  501. package/dist/js/nim.js +19 -0
  502. package/dist/js/ordinal.js +61 -0
  503. package/dist/js/packet-BFZMPI3H.js +8 -0
  504. package/dist/js/perl.js +15 -0
  505. package/dist/js/php.js +9 -0
  506. package/dist/js/php2.js +16 -0
  507. package/dist/js/pie-7BOR55EZ.js +8 -0
  508. package/dist/js/pieDiagram-ADFJNKIX.js +172 -0
  509. package/dist/js/postcss.js +2 -0
  510. package/dist/js/pug.js +10 -0
  511. package/dist/js/python.js +2 -0
  512. package/dist/js/qml.js +3 -0
  513. package/dist/js/quadrantDiagram-AYHSOK5B.js +1970 -0
  514. package/dist/js/r.js +2 -0
  515. package/dist/js/radar-NHE76QYJ.js +8 -0
  516. package/dist/js/razor.js +10 -0
  517. package/dist/js/regexp.js +2 -0
  518. package/dist/js/requirementDiagram-UZGBJVZJ.js +2194 -0
  519. package/dist/js/rst.js +34 -0
  520. package/dist/js/ruby.js +20 -0
  521. package/dist/js/ruby2.js +28 -0
  522. package/dist/js/sankeyDiagram-TZEHDZUN.js +884 -0
  523. package/dist/js/sas.js +3 -0
  524. package/dist/js/scss.js +3 -0
  525. package/dist/js/scss2.js +3 -0
  526. package/dist/js/sdbl.js +2 -0
  527. package/dist/js/sequenceDiagram-WL72ISMW.js +3560 -0
  528. package/dist/js/shaderlab.js +3 -0
  529. package/dist/js/shellscript.js +2 -0
  530. package/dist/js/shellsession.js +3 -0
  531. package/dist/js/soy.js +5 -0
  532. package/dist/js/sparql.js +3 -0
  533. package/dist/js/sql.js +2 -0
  534. package/dist/js/src.js +1975 -0
  535. package/dist/js/stata.js +3 -0
  536. package/dist/js/stateDiagram-FKZM4ZOC.js +224 -0
  537. package/dist/js/stateDiagram-v2-4FDKWEC3.js +32 -0
  538. package/dist/js/stylus.js +2 -0
  539. package/dist/js/svelte.js +12 -0
  540. package/dist/js/templ.js +10 -0
  541. package/dist/js/tex.js +3 -0
  542. package/dist/js/tex2.js +3 -0
  543. package/dist/js/timeline-definition-IT6M3QCI.js +830 -0
  544. package/dist/js/treemap-KMMF4GRG.js +8 -0
  545. package/dist/js/ts-tags.js +38 -0
  546. package/dist/js/tsx.js +2 -0
  547. package/dist/js/turtle.js +2 -0
  548. package/dist/js/twig.js +33 -0
  549. package/dist/js/typescript.js +2 -0
  550. package/dist/js/vue-html.js +13 -0
  551. package/dist/js/vue-vine.js +22 -0
  552. package/dist/js/vue.js +20 -0
  553. package/dist/js/vue2.js +8 -0
  554. package/dist/js/xml.js +3 -0
  555. package/dist/js/xml2.js +3 -0
  556. package/dist/js/xsl.js +4 -0
  557. package/dist/js/xychartDiagram-PRI3JC2R.js +2022 -0
  558. package/dist/js/yaml.js +2 -0
  559. package/dist/lib/utils.d.ts +2 -0
  560. package/dist/main.d.ts +0 -0
  561. package/dist/request/index.d.ts +6 -0
  562. package/package.json +66 -64
  563. package/dist/_basePickBy-CkZky1V-.js +0 -135
  564. package/dist/_baseUniq-f11MNaXe.js +0 -573
  565. package/dist/ai-chat-example.css +0 -3
  566. package/dist/angular-html-C5vmpet2.js +0 -14
  567. package/dist/angular-html-CLTv4jM9.js +0 -5
  568. package/dist/angular-ts-BKqJWrwt.js +0 -19
  569. package/dist/apl-BcJs32yU.js +0 -15
  570. package/dist/arc-Dh_0vvHo.js +0 -78
  571. package/dist/architecture-U656AL7Q-BqUSHYp0.js +0 -8
  572. package/dist/architectureDiagram-VXUJARFQ-BQvEdgpc.js +0 -4053
  573. package/dist/astro-q-huTQEP.js +0 -16
  574. package/dist/bash-DI_p7w58.js +0 -2
  575. package/dist/blade-Ckff5WJQ.js +0 -19
  576. package/dist/blockDiagram-VD42YOAC-DKkDshq3.js +0 -3013
  577. package/dist/bsl-BTNab0FD.js +0 -3
  578. package/dist/c-BYDGkYzS.js +0 -2
  579. package/dist/c4Diagram-YG6GDRKO-KsGqOrVB.js +0 -2955
  580. package/dist/cairo-DUZgbTPW.js +0 -3
  581. package/dist/channel-BrxVk5HC.js +0 -3
  582. package/dist/chunk-4BX2VUAB-BGxl5VGr.js +0 -6
  583. package/dist/chunk-55IACEB6-CDMD5yu1.js +0 -6
  584. package/dist/chunk-76Q3JFCE-Db4Lkmow.js +0 -19
  585. package/dist/chunk-ABZYJK2D-BZvlc6Ej.js +0 -2515
  586. package/dist/chunk-ATLVNIR6-C3g7rsIT.js +0 -65
  587. package/dist/chunk-B4BG7PRW-Dx-bGI1r.js +0 -3108
  588. package/dist/chunk-CVBHYZKI-DxEBlSK7.js +0 -10
  589. package/dist/chunk-DI55MBZ5-CCWuZnfW.js +0 -1994
  590. package/dist/chunk-EXTU4WIE-BjMX7pAs.js +0 -7
  591. package/dist/chunk-FMBD7UC4-Dj3Ok4Bk.js +0 -3
  592. package/dist/chunk-FPAJGGOC-nWbO3e1v.js +0 -12252
  593. package/dist/chunk-FWNWRKHM-CjcwRw2u.js +0 -56
  594. package/dist/chunk-HN2XXSSU-Lv4Ef0co.js +0 -74
  595. package/dist/chunk-JA3XYJ7Z-Dhh1_u_p.js +0 -463
  596. package/dist/chunk-JZLCHNYA-vrb_Ucuc.js +0 -4861
  597. package/dist/chunk-LBM3YZW2-D8lrIfGo.js +0 -19
  598. package/dist/chunk-LHMN2FUI-DLQ0i8hl.js +0 -19
  599. package/dist/chunk-MI3HLSF2-Dy6F9XgR.js +0 -1140
  600. package/dist/chunk-N4CR4FBY-BdaGxHlZ.js +0 -39
  601. package/dist/chunk-O7ZBX7Z2-D8Yaukr5.js +0 -26
  602. package/dist/chunk-QN33PNHL-DnPw7tni.js +0 -23
  603. package/dist/chunk-QXUST7PY-D9mGQ-UP.js +0 -486
  604. package/dist/chunk-QZHKN3VN-ClanGuXA.js +0 -11
  605. package/dist/chunk-S3R3BYOJ-DHTsHczu.js +0 -1074
  606. package/dist/chunk-S6J4BHB3-8RrHs9bD.js +0 -19
  607. package/dist/chunk-T53DSG4Q-C2BDA_QX.js +0 -24
  608. package/dist/chunk-TZMSLE5B-F4nHm7N1.js +0 -55
  609. package/dist/classDiagram-2ON5EDUG-C_ZEMlKu.js +0 -33
  610. package/dist/classDiagram-v2-WZHVMYZB-BHb5nZOM.js +0 -33
  611. package/dist/clone-BRioDvRr.js +0 -7
  612. package/dist/cmake-CA3Lfsq7.js +0 -2
  613. package/dist/cobol-DhzLzJib.js +0 -10
  614. package/dist/coffee-P21KTKMu.js +0 -3
  615. package/dist/cose-bilkent-S5V4N54A-Dy-do3hl.js +0 -2250
  616. package/dist/cpp-C6JyDxZu.js +0 -16
  617. package/dist/cpp-GAIEvywS.js +0 -6
  618. package/dist/crystal-BJfcoGS4.js +0 -16
  619. package/dist/csharp-JE-9ns6W.js +0 -2
  620. package/dist/css-Cy-fypCV.js +0 -2
  621. package/dist/csv-DJ7xG4PY.js +0 -2
  622. package/dist/dagre-6UL2VRFP-B38_sZWh.js +0 -298
  623. package/dist/dagre-DtvXp3zQ.js +0 -1395
  624. package/dist/diagram-PSM6KHXK-D6swsG-y.js +0 -497
  625. package/dist/diagram-QEK2KX5R-B7Hi0LAL.js +0 -226
  626. package/dist/diagram-S2PKOQOG-DLx7PlpM.js +0 -144
  627. package/dist/diff-COB48_rb.js +0 -2
  628. package/dist/dist-CrnZo_23.js +0 -49
  629. package/dist/edge-Dm7HQa9N.js +0 -12
  630. package/dist/elixir-BkvHyCNd.js +0 -5
  631. package/dist/elm-rz9wTSrn.js +0 -4
  632. package/dist/erDiagram-Q2GNP2WA-B67FD8rh.js +0 -1603
  633. package/dist/erb-DyrwQYVz.js +0 -25
  634. package/dist/erlang-DLFKZs5N.js +0 -3
  635. package/dist/flowDiagram-NV44I4VS-DHXgrdJY.js +0 -4132
  636. package/dist/fortran-fixed-form-SzB0QY3n.js +0 -3
  637. package/dist/fortran-free-form-Js8JrQQE.js +0 -2
  638. package/dist/fsharp-CtWO0jvL.js +0 -3
  639. package/dist/ganttDiagram-JELNMOA3-CGIqBt1P.js +0 -3009
  640. package/dist/gdresource-CgyXKpe4.js +0 -8
  641. package/dist/gdscript-STdmRKv-.js +0 -2
  642. package/dist/gdshader-Bs2s6cSB.js +0 -2
  643. package/dist/git-commit--0GGwZNa.js +0 -3
  644. package/dist/git-rebase-orw-bSIZ.js +0 -3
  645. package/dist/gitGraph-F6HP7TQM-CH5XLm5Z.js +0 -8
  646. package/dist/gitGraphDiagram-NY62KEGX-Cq8AbOhM.js +0 -634
  647. package/dist/github-dark-CMN1tZPn.js +0 -2
  648. package/dist/github-light-Y8g-VxKq.js +0 -2
  649. package/dist/glimmer-js-C6E6wJv0.js +0 -12
  650. package/dist/glimmer-ts-C6GgTGNO.js +0 -12
  651. package/dist/glsl-D8_YBRKT.js +0 -3
  652. package/dist/glsl-rwn_QCp2.js +0 -3
  653. package/dist/go-BhDDN9y4.js +0 -2
  654. package/dist/graphlib-BZdVmxO6.js +0 -223
  655. package/dist/graphql-DQHhbQm2.js +0 -6
  656. package/dist/graphql-DoBLseH6.js +0 -12
  657. package/dist/hack-DEAxoi73.js +0 -10
  658. package/dist/haml-BG2d3iX4.js +0 -4
  659. package/dist/haml-mA656Lm7.js +0 -8
  660. package/dist/handlebars-CO5xAxJ3.js +0 -12
  661. package/dist/haxe-BJVSeYxy.js +0 -2
  662. package/dist/hlsl-Dt9-unql.js +0 -2
  663. package/dist/html-DFCxtjnd.js +0 -4
  664. package/dist/html-DKSj3FeM.js +0 -8
  665. package/dist/html-derivative-BCRkrTcD.js +0 -5
  666. package/dist/html-derivative-C-vidKoA.js +0 -3
  667. package/dist/http-CYP1tEDW.js +0 -17
  668. package/dist/hurl-BJexUSKz.js +0 -15
  669. package/dist/hxml-XfuSEjM-.js +0 -3
  670. package/dist/info-NVLQJR56-hEN1y0nS.js +0 -8
  671. package/dist/infoDiagram-WHAUD3N6-btPwHXxp.js +0 -31
  672. package/dist/isEmpty-CCym_WUL.js +0 -32
  673. package/dist/java-DIOGgqAD.js +0 -2
  674. package/dist/javascript-9-JPeKdm.js +0 -2
  675. package/dist/jinja-CVFxFRh6.js +0 -5
  676. package/dist/jison-0X6LppGq.js +0 -3
  677. package/dist/journeyDiagram-XKPGCS4Q-3OxtBx3I.js +0 -884
  678. package/dist/js/chat-example.es.js +0 -39220
  679. package/dist/js/chat-example.umd.js +0 -2989
  680. package/dist/json-DJtYdWQK.js +0 -2
  681. package/dist/jsx-qo0JNHpZ.js +0 -2
  682. package/dist/julia-ChGs-n_c.js +0 -17
  683. package/dist/kanban-definition-3W4ZIXB7-zdtnJaXz.js +0 -971
  684. package/dist/katex-K1dsczyg.js +0 -2
  685. package/dist/latex-BnWZlY4q.js +0 -4
  686. package/dist/less-B4ybD-7s.js +0 -2
  687. package/dist/line-EpckC7pZ.js +0 -30
  688. package/dist/linear-DjVN4o4U.js +0 -250
  689. package/dist/liquid-pc5Mduds.js +0 -12
  690. package/dist/lua-0TqNbT8C.js +0 -3
  691. package/dist/lua-6pXga3HV.js +0 -3
  692. package/dist/markdown-LaaQ4Eua.js +0 -2
  693. package/dist/marko-D8uDUUEs.js +0 -12
  694. package/dist/mdc-Ki3KnB5U.js +0 -13
  695. package/dist/mermaid-parser.core-DVXSGppp.js +0 -48
  696. package/dist/mermaid.core-Ra1JFCui.js +0 -895
  697. package/dist/mindmap-definition-VGOIOE7T-CRPO52xV.js +0 -960
  698. package/dist/nginx-B46vdQ9n.js +0 -4
  699. package/dist/nim-BxQNx10D.js +0 -19
  700. package/dist/ordinal-CYQpsShT.js +0 -61
  701. package/dist/packet-BFZMPI3H-Bnlch4JI.js +0 -8
  702. package/dist/perl-D1bDaADZ.js +0 -15
  703. package/dist/php-BX51InqL.js +0 -9
  704. package/dist/php-D5tmU8Cr.js +0 -16
  705. package/dist/pie-7BOR55EZ-B9egLHl5.js +0 -8
  706. package/dist/pieDiagram-ADFJNKIX-CKSgB7fx.js +0 -172
  707. package/dist/postcss-ainQkoyY.js +0 -2
  708. package/dist/pug-BcLlS7Yb.js +0 -10
  709. package/dist/python-CuBu5pyY.js +0 -2
  710. package/dist/qml-MD0NqqIl.js +0 -3
  711. package/dist/quadrantDiagram-AYHSOK5B-BHzqivzD.js +0 -1970
  712. package/dist/r-CQeHOO4c.js +0 -2
  713. package/dist/radar-NHE76QYJ-DdALhlvV.js +0 -8
  714. package/dist/razor-eRwFWsjJ.js +0 -10
  715. package/dist/regexp-Ca0eDBa2.js +0 -2
  716. package/dist/requirementDiagram-UZGBJVZJ-Darhwvir.js +0 -2194
  717. package/dist/rst-DFmSdXGd.js +0 -34
  718. package/dist/ruby-BAEFomR0.js +0 -20
  719. package/dist/ruby-DDMUvAvC.js +0 -28
  720. package/dist/sankeyDiagram-TZEHDZUN-KiSvBN_C.js +0 -884
  721. package/dist/sas-TjtLSnOp.js +0 -3
  722. package/dist/scss-C-bthdG1.js +0 -3
  723. package/dist/scss-D-6-mg-f.js +0 -3
  724. package/dist/sdbl-gc7zIVWR.js +0 -2
  725. package/dist/sequenceDiagram-WL72ISMW-D2Mo7Vtj.js +0 -3560
  726. package/dist/shaderlab-BRlB5fpk.js +0 -3
  727. package/dist/shellscript-DZa_4vvb.js +0 -2
  728. package/dist/shellsession-CIlmlgbR.js +0 -3
  729. package/dist/soy-DwSCrzEF.js +0 -5
  730. package/dist/sparql-D9kVSpEx.js +0 -3
  731. package/dist/sql-Bi3LyNPb.js +0 -2
  732. package/dist/src-B-SBGd0A.js +0 -1975
  733. package/dist/stata-DkEObyNb.js +0 -3
  734. package/dist/stateDiagram-FKZM4ZOC-BRQN2Npg.js +0 -224
  735. package/dist/stateDiagram-v2-4FDKWEC3-CeeIKiFG.js +0 -32
  736. package/dist/stylus-DEHALDNh.js +0 -2
  737. package/dist/svelte-KFuclcR6.js +0 -12
  738. package/dist/templ-C5mtYbb_.js +0 -10
  739. package/dist/tex-B4uYy1vC.js +0 -3
  740. package/dist/tex-BoVFa1ir.js +0 -3
  741. package/dist/timeline-definition-IT6M3QCI-CSwH0Pnx.js +0 -830
  742. package/dist/treemap-KMMF4GRG-COjpj6-C.js +0 -8
  743. package/dist/ts-tags-DRdTXGhb.js +0 -38
  744. package/dist/tsx-BaaPsUbd.js +0 -2
  745. package/dist/turtle-BRmolh-6.js +0 -2
  746. package/dist/twig-cEhAbahS.js +0 -33
  747. package/dist/typescript-CmJ8D0yY.js +0 -2
  748. package/dist/vue-B3C4YeUK.js +0 -8
  749. package/dist/vue-DMpjAWNv.js +0 -20
  750. package/dist/vue-html-BIZN50ug.js +0 -13
  751. package/dist/vue-vine-DxezWcjL.js +0 -22
  752. package/dist/xml-BglBgo29.js +0 -3
  753. package/dist/xml-BxRdgEAX.js +0 -3
  754. package/dist/xsl-Cni90e0k.js +0 -4
  755. package/dist/xychartDiagram-PRI3JC2R-CGXFYn39.js +0 -2022
  756. package/dist/yaml-DQRfaSRo.js +0 -2
  757. /package/dist/{abap--jVlqvLx.js → js/abap.js} +0 -0
  758. /package/dist/{actionscript-3-N1AoJtTA.js → js/actionscript-3.js} +0 -0
  759. /package/dist/{ada-CYGINLea.js → js/ada.js} +0 -0
  760. /package/dist/{andromeeda-CvsZnG9k.js → js/andromeeda.js} +0 -0
  761. /package/dist/{apache-D6X-_dyJ.js → js/apache.js} +0 -0
  762. /package/dist/{apex-C7VgAgAE.js → js/apex.js} +0 -0
  763. /package/dist/{applescript-DN64Su6U.js → js/applescript.js} +0 -0
  764. /package/dist/{ara-Dm1jHrgg.js → js/ara.js} +0 -0
  765. /package/dist/{array-CkdOJbdT.js → js/array.js} +0 -0
  766. /package/dist/{asciidoc-BpqtqRF5.js → js/asciidoc.js} +0 -0
  767. /package/dist/{asm-DUGlKYIq.js → js/asm.js} +0 -0
  768. /package/dist/{aurora-x-DwOih-un.js → js/aurora-x.js} +0 -0
  769. /package/dist/{awk-DcnVbJrN.js → js/awk.js} +0 -0
  770. /package/dist/{ayu-dark-Bd-89MKE.js → js/ayu-dark.js} +0 -0
  771. /package/dist/{ballerina-BQVdQd9X.js → js/ballerina.js} +0 -0
  772. /package/dist/{bat-juB1J52r.js → js/bat.js} +0 -0
  773. /package/dist/{beancount-ThxIlRc3.js → js/beancount.js} +0 -0
  774. /package/dist/{berry-qC18BfC_.js → js/berry.js} +0 -0
  775. /package/dist/{bibtex-CahMDY_0.js → js/bibtex.js} +0 -0
  776. /package/dist/{bicep-CHLBKS47.js → js/bicep.js} +0 -0
  777. /package/dist/{c-CX6yudYR.js → js/c2.js} +0 -0
  778. /package/dist/{cadence-DA5J9-Di.js → js/cadence.js} +0 -0
  779. /package/dist/{catppuccin-frappe-CE3kxG1f.js → js/catppuccin-frappe.js} +0 -0
  780. /package/dist/{catppuccin-latte-DW2FXeIv.js → js/catppuccin-latte.js} +0 -0
  781. /package/dist/{catppuccin-macchiato-CD5qjRSF.js → js/catppuccin-macchiato.js} +0 -0
  782. /package/dist/{catppuccin-mocha-BYwVJvjI.js → js/catppuccin-mocha.js} +0 -0
  783. /package/dist/{chunk-XAJISQIX-Bz7ki7DY.js → js/chunk-XAJISQIX.js} +0 -0
  784. /package/dist/{chunk-DNh5sLlG.js → js/chunk.js} +0 -0
  785. /package/dist/{clarity-CsFOkG3c.js → js/clarity.js} +0 -0
  786. /package/dist/{clojure-u1TZmmdQ.js → js/clojure.js} +0 -0
  787. /package/dist/{cmake-K1k8HMYR.js → js/cmake2.js} +0 -0
  788. /package/dist/{codeowners-l4eSxhtA.js → js/codeowners.js} +0 -0
  789. /package/dist/{codeql-5CeQaktT.js → js/codeql.js} +0 -0
  790. /package/dist/{common-lisp-BVttGbYJ.js → js/common-lisp.js} +0 -0
  791. /package/dist/{coq-CZjzQDnb.js → js/coq.js} +0 -0
  792. /package/dist/{csharp-BbUwciq4.js → js/csharp2.js} +0 -0
  793. /package/dist/{css-Crp0iO_o.js → js/css2.js} +0 -0
  794. /package/dist/{csv-DtT8LmMi.js → js/csv2.js} +0 -0
  795. /package/dist/{cue-BwjaQTCz.js → js/cue.js} +0 -0
  796. /package/dist/{cypher-B7e06enY.js → js/cypher.js} +0 -0
  797. /package/dist/{cytoscape.esm-CWqS6puh.js → js/cytoscape.esm.js} +0 -0
  798. /package/dist/{d-q60wkid4.js → js/d.js} +0 -0
  799. /package/dist/{dark-plus-D_fA88xf.js → js/dark-plus.js} +0 -0
  800. /package/dist/{dart-DjkWvBgr.js → js/dart.js} +0 -0
  801. /package/dist/{dax-lueLIZQI.js → js/dax.js} +0 -0
  802. /package/dist/{defaultLocale-CoJOMwPq.js → js/defaultLocale.js} +0 -0
  803. /package/dist/{desktop-DaphHKD5.js → js/desktop.js} +0 -0
  804. /package/dist/{diff-DlXnqUMK.js → js/diff2.js} +0 -0
  805. /package/dist/{docker-DZKmuwpA.js → js/docker.js} +0 -0
  806. /package/dist/{dotenv-hmNahw-8.js → js/dotenv.js} +0 -0
  807. /package/dist/{dracula-soft-vfA-TA_S.js → js/dracula-soft.js} +0 -0
  808. /package/dist/{dracula-ddM3a7au.js → js/dracula.js} +0 -0
  809. /package/dist/{dream-maker-Cxa2a8FY.js → js/dream-maker.js} +0 -0
  810. /package/dist/{emacs-lisp-w5URnZPZ.js → js/emacs-lisp.js} +0 -0
  811. /package/dist/{everforest-dark-DAPtv4yI.js → js/everforest-dark.js} +0 -0
  812. /package/dist/{everforest-light-nQzYm8GO.js → js/everforest-light.js} +0 -0
  813. /package/dist/{fennel-CJDNJZTU.js → js/fennel.js} +0 -0
  814. /package/dist/{fish-BkYaLI4-.js → js/fish.js} +0 -0
  815. /package/dist/{fluent-DShra35H.js → js/fluent.js} +0 -0
  816. /package/dist/{fortran-free-form-CgbOAJnm.js → js/fortran-free-form2.js} +0 -0
  817. /package/dist/{gdscript-DnurdQnh.js → js/gdscript2.js} +0 -0
  818. /package/dist/{gdshader-YiVaPq6D.js → js/gdshader2.js} +0 -0
  819. /package/dist/{genie-BppkvzZC.js → js/genie.js} +0 -0
  820. /package/dist/{gherkin-Bp4zdWMb.js → js/gherkin.js} +0 -0
  821. /package/dist/{github-dark-default-DVCJut02.js → js/github-dark-default.js} +0 -0
  822. /package/dist/{github-dark-dimmed-DXu9oDqW.js → js/github-dark-dimmed.js} +0 -0
  823. /package/dist/{github-dark-high-contrast-BBZdE-mX.js → js/github-dark-high-contrast.js} +0 -0
  824. /package/dist/{github-dark-DxCf_Qaz.js → js/github-dark2.js} +0 -0
  825. /package/dist/{github-light-default-BNGkGE--.js → js/github-light-default.js} +0 -0
  826. /package/dist/{github-light-high-contrast-DiSIc-nG.js → js/github-light-high-contrast.js} +0 -0
  827. /package/dist/{github-light-CfdX7txK.js → js/github-light2.js} +0 -0
  828. /package/dist/{gleam-Lw0tKp8T.js → js/gleam.js} +0 -0
  829. /package/dist/{gnuplot-BeA3etmO.js → js/gnuplot.js} +0 -0
  830. /package/dist/{go-xfE7BrfS.js → js/go2.js} +0 -0
  831. /package/dist/{groovy-C5-mv4io.js → js/groovy.js} +0 -0
  832. /package/dist/{gruvbox-dark-hard-CULu6kVy.js → js/gruvbox-dark-hard.js} +0 -0
  833. /package/dist/{gruvbox-dark-medium-BJM4uQXO.js → js/gruvbox-dark-medium.js} +0 -0
  834. /package/dist/{gruvbox-dark-soft-CVaORUwa.js → js/gruvbox-dark-soft.js} +0 -0
  835. /package/dist/{gruvbox-light-hard-B-WJAGLa.js → js/gruvbox-light-hard.js} +0 -0
  836. /package/dist/{gruvbox-light-medium-jc8FWnuC.js → js/gruvbox-light-medium.js} +0 -0
  837. /package/dist/{gruvbox-light-soft-CmvYQK92.js → js/gruvbox-light-soft.js} +0 -0
  838. /package/dist/{haskell-Hsexh2aP.js → js/haskell.js} +0 -0
  839. /package/dist/{haxe-CD_Rs3P5.js → js/haxe2.js} +0 -0
  840. /package/dist/{hcl-D098sJ_J.js → js/hcl.js} +0 -0
  841. /package/dist/{hjson-BwXHX5r6.js → js/hjson.js} +0 -0
  842. /package/dist/{hlsl-B0pnUVYG.js → js/hlsl2.js} +0 -0
  843. /package/dist/{houston-C7hMWO_I.js → js/houston.js} +0 -0
  844. /package/dist/{hy-DPQ04rHt.js → js/hy.js} +0 -0
  845. /package/dist/{imba-Bgu2n5Mo.js → js/imba.js} +0 -0
  846. /package/dist/{ini-g9mZnyrk.js → js/ini.js} +0 -0
  847. /package/dist/{init-CBay3kgM.js → js/init.js} +0 -0
  848. /package/dist/{isArrayLikeObject-Dz_TDfw0.js → js/isArrayLikeObject.js} +0 -0
  849. /package/dist/{java-CUbPyze1.js → js/java2.js} +0 -0
  850. /package/dist/{javascript-De1qhUaI.js → js/javascript2.js} +0 -0
  851. /package/dist/{json-fcFpRaf3.js → js/json2.js} +0 -0
  852. /package/dist/{json5-CPTZJOmf.js → js/json5.js} +0 -0
  853. /package/dist/{jsonc-CYrayg0k.js → js/jsonc.js} +0 -0
  854. /package/dist/{jsonl-Bsv7LjJ3.js → js/jsonl.js} +0 -0
  855. /package/dist/{jsonnet-B7LkHJxg.js → js/jsonnet.js} +0 -0
  856. /package/dist/{jssm-BopKGZKg.js → js/jssm.js} +0 -0
  857. /package/dist/{jsx-Bf3Nk9Di.js → js/jsx2.js} +0 -0
  858. /package/dist/{kanagawa-dragon-CSqqi78I.js → js/kanagawa-dragon.js} +0 -0
  859. /package/dist/{kanagawa-lotus-l2vgoxpH.js → js/kanagawa-lotus.js} +0 -0
  860. /package/dist/{kanagawa-wave-BWhFcnLj.js → js/kanagawa-wave.js} +0 -0
  861. /package/dist/{katex-BcWXJDMd.js → js/katex2.js} +0 -0
  862. /package/dist/{kdl-BbokxoZ9.js → js/kdl.js} +0 -0
  863. /package/dist/{kotlin-3dXKmwyJ.js → js/kotlin.js} +0 -0
  864. /package/dist/{kusto-Os6_yHEz.js → js/kusto.js} +0 -0
  865. /package/dist/{laserwave-8RcN1zf8.js → js/laserwave.js} +0 -0
  866. /package/dist/{lean--0Wr4Cy4.js → js/lean.js} +0 -0
  867. /package/dist/{less-Cb54jO7u.js → js/less2.js} +0 -0
  868. /package/dist/{light-plus-CP_iZQDF.js → js/light-plus.js} +0 -0
  869. /package/dist/{llvm-ILH_SX7E.js → js/llvm.js} +0 -0
  870. /package/dist/{log-DwO_GzA0.js → js/log.js} +0 -0
  871. /package/dist/{logo-B4FeRowR.js → js/logo.js} +0 -0
  872. /package/dist/{luau-DsUEyLJN.js → js/luau.js} +0 -0
  873. /package/dist/{make-p6NYc19I.js → js/make.js} +0 -0
  874. /package/dist/{markdown-CCRtgC0b.js → js/markdown2.js} +0 -0
  875. /package/dist/{marked.esm-D9xINNve.js → js/marked.esm.js} +0 -0
  876. /package/dist/{material-theme-darker-CWC5BoMv.js → js/material-theme-darker.js} +0 -0
  877. /package/dist/{material-theme-lighter-BJrV5b2o.js → js/material-theme-lighter.js} +0 -0
  878. /package/dist/{material-theme-ocean-DYpMfDiX.js → js/material-theme-ocean.js} +0 -0
  879. /package/dist/{material-theme-palenight-3Ix3iI7Q.js → js/material-theme-palenight.js} +0 -0
  880. /package/dist/{material-theme-D__z84-n.js → js/material-theme.js} +0 -0
  881. /package/dist/{math-CJAnbPum.js → js/math.js} +0 -0
  882. /package/dist/{matlab-CL0oMGfq.js → js/matlab.js} +0 -0
  883. /package/dist/{mdx-BTufVkNP.js → js/mdx.js} +0 -0
  884. /package/dist/{mermaid-FCjIh1A7.js → js/mermaid.js} +0 -0
  885. /package/dist/{min-dark-B4KRMcN3.js → js/min-dark.js} +0 -0
  886. /package/dist/{min-light-BQVJODr0.js → js/min-light.js} +0 -0
  887. /package/dist/{mipsasm-Cn6AQ4lM.js → js/mipsasm.js} +0 -0
  888. /package/dist/{mojo-C9IiQhp4.js → js/mojo.js} +0 -0
  889. /package/dist/{monokai-vDwMMRi4.js → js/monokai.js} +0 -0
  890. /package/dist/{move-BdizQ4_I.js → js/move.js} +0 -0
  891. /package/dist/{narrat-BP2kx-u2.js → js/narrat.js} +0 -0
  892. /package/dist/{nextflow-CyRmCGOe.js → js/nextflow.js} +0 -0
  893. /package/dist/{night-owl-DmjkOa5g.js → js/night-owl.js} +0 -0
  894. /package/dist/{nix-qPhlsqZI.js → js/nix.js} +0 -0
  895. /package/dist/{nord-sjxbvIbg.js → js/nord.js} +0 -0
  896. /package/dist/{nushell-puA-1bCW.js → js/nushell.js} +0 -0
  897. /package/dist/{objective-c-D-qDLNy5.js → js/objective-c.js} +0 -0
  898. /package/dist/{objective-cpp-CFxSAM6p.js → js/objective-cpp.js} +0 -0
  899. /package/dist/{ocaml-CsLB7SWJ.js → js/ocaml.js} +0 -0
  900. /package/dist/{one-dark-pro-BHH-VjFD.js → js/one-dark-pro.js} +0 -0
  901. /package/dist/{one-light-BqE6erWk.js → js/one-light.js} +0 -0
  902. /package/dist/{openscad-DJCIQfnJ.js → js/openscad.js} +0 -0
  903. /package/dist/{pascal-CPg9_ZFN.js → js/pascal.js} +0 -0
  904. /package/dist/{path-esxOUfAH.js → js/path.js} +0 -0
  905. /package/dist/{pkl-BQQ96hvn.js → js/pkl.js} +0 -0
  906. /package/dist/{plastic-BrNUBdSC.js → js/plastic.js} +0 -0
  907. /package/dist/{plsql-Co7Bxe7U.js → js/plsql.js} +0 -0
  908. /package/dist/{po-BqzJCro7.js → js/po.js} +0 -0
  909. /package/dist/{poimandres-C_AK8TlO.js → js/poimandres.js} +0 -0
  910. /package/dist/{polar-CtdYIPEe.js → js/polar.js} +0 -0
  911. /package/dist/{postcss-ChqFKb46.js → js/postcss2.js} +0 -0
  912. /package/dist/{powerquery-CDugc1w-.js → js/powerquery.js} +0 -0
  913. /package/dist/{powershell-j5X-IA59.js → js/powershell.js} +0 -0
  914. /package/dist/{prisma-Cyl7YhUw.js → js/prisma.js} +0 -0
  915. /package/dist/{prolog-DELKnUYf.js → js/prolog.js} +0 -0
  916. /package/dist/{proto-C4A_gDBY.js → js/proto.js} +0 -0
  917. /package/dist/{puppet-DFC9LyFj.js → js/puppet.js} +0 -0
  918. /package/dist/{purescript-eECq7_n2.js → js/purescript.js} +0 -0
  919. /package/dist/{python-BhdCuCld.js → js/python2.js} +0 -0
  920. /package/dist/{qmldir-BpJII-Ze.js → js/qmldir.js} +0 -0
  921. /package/dist/{qss-CpMcemMc.js → js/qss.js} +0 -0
  922. /package/dist/{r-D90zdkbN.js → js/r2.js} +0 -0
  923. /package/dist/{racket-COTs6Zfi.js → js/racket.js} +0 -0
  924. /package/dist/{raku-DfOtwMUC.js → js/raku.js} +0 -0
  925. /package/dist/{red-CWGFZsim.js → js/red.js} +0 -0
  926. /package/dist/{reg-BX5DwoEA.js → js/reg.js} +0 -0
  927. /package/dist/{regexp-Cap8fK_2.js → js/regexp2.js} +0 -0
  928. /package/dist/{rel-CzXuLSk3.js → js/rel.js} +0 -0
  929. /package/dist/{riscv-DnFIiqh3.js → js/riscv.js} +0 -0
  930. /package/dist/{rose-pine-dawn-D5sdDB-J.js → js/rose-pine-dawn.js} +0 -0
  931. /package/dist/{rose-pine-moon-2Vb7bLLO.js → js/rose-pine-moon.js} +0 -0
  932. /package/dist/{rose-pine-C4v2iQVe.js → js/rose-pine.js} +0 -0
  933. /package/dist/{rosmsg-D02ul3fM.js → js/rosmsg.js} +0 -0
  934. /package/dist/{rust-s3hBbfQg.js → js/rust.js} +0 -0
  935. /package/dist/{sass-v3HeJ9Fl.js → js/sass.js} +0 -0
  936. /package/dist/{scala-BTIBM_Vn.js → js/scala.js} +0 -0
  937. /package/dist/{scheme-C4NQMf7a.js → js/scheme.js} +0 -0
  938. /package/dist/{sdbl-BA3l-JrH.js → js/sdbl2.js} +0 -0
  939. /package/dist/{shellscript-BQ8mKDAF.js → js/shellscript2.js} +0 -0
  940. /package/dist/{slack-dark-DhXO5DWr.js → js/slack-dark.js} +0 -0
  941. /package/dist/{slack-ochin-aAGl4PPH.js → js/slack-ochin.js} +0 -0
  942. /package/dist/{smalltalk-DbwVUw_i.js → js/smalltalk.js} +0 -0
  943. /package/dist/{snazzy-light-B4S5mk83.js → js/snazzy-light.js} +0 -0
  944. /package/dist/{solarized-dark-Dexkq3Fm.js → js/solarized-dark.js} +0 -0
  945. /package/dist/{solarized-light-I-Bzy8UC.js → js/solarized-light.js} +0 -0
  946. /package/dist/{solidity-SMk0TJDc.js → js/solidity.js} +0 -0
  947. /package/dist/{splunk-DXXu2r7r.js → js/splunk.js} +0 -0
  948. /package/dist/{sql-D0eLHBiZ.js → js/sql2.js} +0 -0
  949. /package/dist/{ssh-config-DyVcFTfI.js → js/ssh-config.js} +0 -0
  950. /package/dist/{stylus-BKTuFHcX.js → js/stylus2.js} +0 -0
  951. /package/dist/{swift-Cenptrnf.js → js/swift.js} +0 -0
  952. /package/dist/{synthwave-84-BRkDuVE-.js → js/synthwave-84.js} +0 -0
  953. /package/dist/{system-verilog-Cvgukx4v.js → js/system-verilog.js} +0 -0
  954. /package/dist/{systemd-BepdslJQ.js → js/systemd.js} +0 -0
  955. /package/dist/{talonscript-Q98m-VXh.js → js/talonscript.js} +0 -0
  956. /package/dist/{tasl-uebrX98X.js → js/tasl.js} +0 -0
  957. /package/dist/{tcl-B1Ny4XFf.js → js/tcl.js} +0 -0
  958. /package/dist/{terraform-0mA5ERTe.js → js/terraform.js} +0 -0
  959. /package/dist/{tokyo-night-D0mU3-u8.js → js/tokyo-night.js} +0 -0
  960. /package/dist/{toml-vMAjra5M.js → js/toml.js} +0 -0
  961. /package/dist/{tsv-BnmbkntZ.js → js/tsv.js} +0 -0
  962. /package/dist/{tsx-C0w0w5St.js → js/tsx2.js} +0 -0
  963. /package/dist/{turtle-4UWi_qX6.js → js/turtle2.js} +0 -0
  964. /package/dist/{typescript-4YtK2JL4.js → js/typescript2.js} +0 -0
  965. /package/dist/{typespec-CILw3zvZ.js → js/typespec.js} +0 -0
  966. /package/dist/{typst-CLajFw6q.js → js/typst.js} +0 -0
  967. /package/dist/{v-MJV2RQvK.js → js/v.js} +0 -0
  968. /package/dist/{vala-Dc1TiHw1.js → js/vala.js} +0 -0
  969. /package/dist/{vb-CoJdNmGs.js → js/vb.js} +0 -0
  970. /package/dist/{verilog-C7aVmiO0.js → js/verilog.js} +0 -0
  971. /package/dist/{vesper-Cvcqyrim.js → js/vesper.js} +0 -0
  972. /package/dist/{vhdl-CYQvzAG1.js → js/vhdl.js} +0 -0
  973. /package/dist/{viml-DOyjiDI8.js → js/viml.js} +0 -0
  974. /package/dist/{vitesse-black-CUYJaB5b.js → js/vitesse-black.js} +0 -0
  975. /package/dist/{vitesse-dark-BNlzDJ1Z.js → js/vitesse-dark.js} +0 -0
  976. /package/dist/{vitesse-light-JU98KqVa.js → js/vitesse-light.js} +0 -0
  977. /package/dist/{vyper-JU_r7Ch6.js → js/vyper.js} +0 -0
  978. /package/dist/{wasm-DJ1S--fN.js → js/wasm.js} +0 -0
  979. /package/dist/{wasm-eLFiAU8u.js → js/wasm2.js} +0 -0
  980. /package/dist/{wenyan-CqkzmyWz.js → js/wenyan.js} +0 -0
  981. /package/dist/{wgsl-gV62iTnF.js → js/wgsl.js} +0 -0
  982. /package/dist/{wikitext-BfUl8La4.js → js/wikitext.js} +0 -0
  983. /package/dist/{wit-kp_bCf2U.js → js/wit.js} +0 -0
  984. /package/dist/{wolfram-aPsN9AKt.js → js/wolfram.js} +0 -0
  985. /package/dist/{yaml-P2kjOPvW.js → js/yaml2.js} +0 -0
  986. /package/dist/{zenscript-BuY4FX-t.js → js/zenscript.js} +0 -0
  987. /package/dist/{zig-CGDGjytz.js → js/zig.js} +0 -0
@@ -1,2515 +0,0 @@
1
- import { _ as setLogLevel, g as log, h as __name, m as __export } from "./src-B-SBGd0A.js";
2
- var Channel = {
3
- min: {
4
- r: 0,
5
- g: 0,
6
- b: 0,
7
- s: 0,
8
- l: 0,
9
- a: 0
10
- },
11
- max: {
12
- r: 255,
13
- g: 255,
14
- b: 255,
15
- h: 360,
16
- s: 100,
17
- l: 100,
18
- a: 1
19
- },
20
- clamp: {
21
- r: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
22
- g: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
23
- b: (e) => e >= 255 ? 255 : e < 0 ? 0 : e,
24
- h: (e) => e % 360,
25
- s: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
26
- l: (e) => e >= 100 ? 100 : e < 0 ? 0 : e,
27
- a: (e) => e >= 1 ? 1 : e < 0 ? 0 : e
28
- },
29
- toLinear: (e) => {
30
- let t = e / 255;
31
- return e > .03928 ? ((t + .055) / 1.055) ** 2.4 : t / 12.92;
32
- },
33
- hue2rgb: (e, t, n) => (n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e),
34
- hsl2rgb: ({ h: e, s: t, l: n }, r) => {
35
- if (!t) return n * 2.55;
36
- e /= 360, t /= 100, n /= 100;
37
- let a = n < .5 ? n * (1 + t) : n + t - n * t, o = 2 * n - a;
38
- switch (r) {
39
- case "r": return Channel.hue2rgb(o, a, e + 1 / 3) * 255;
40
- case "g": return Channel.hue2rgb(o, a, e) * 255;
41
- case "b": return Channel.hue2rgb(o, a, e - 1 / 3) * 255;
42
- }
43
- },
44
- rgb2hsl: ({ r: e, g: t, b: n }, r) => {
45
- e /= 255, t /= 255, n /= 255;
46
- let i = Math.max(e, t, n), a = Math.min(e, t, n), o = (i + a) / 2;
47
- if (r === "l") return o * 100;
48
- if (i === a) return 0;
49
- let s = i - a, c = o > .5 ? s / (2 - i - a) : s / (i + a);
50
- if (r === "s") return c * 100;
51
- switch (i) {
52
- case e: return ((t - n) / s + (t < n ? 6 : 0)) * 60;
53
- case t: return ((n - e) / s + 2) * 60;
54
- case n: return ((e - t) / s + 4) * 60;
55
- default: return -1;
56
- }
57
- }
58
- }, utils_default = {
59
- channel: Channel,
60
- lang: {
61
- clamp: (e, t, n) => t > n ? Math.min(t, Math.max(n, e)) : Math.min(n, Math.max(t, e)),
62
- round: (e) => Math.round(e * 1e10) / 1e10
63
- },
64
- unit: { dec2hex: (e) => {
65
- let t = Math.round(e).toString(16);
66
- return t.length > 1 ? t : `0${t}`;
67
- } }
68
- }, DEC2HEX = {};
69
- for (let e = 0; e <= 255; e++) DEC2HEX[e] = utils_default.unit.dec2hex(e);
70
- var TYPE = {
71
- ALL: 0,
72
- RGB: 1,
73
- HSL: 2
74
- }, type_default = class {
75
- constructor() {
76
- this.type = TYPE.ALL;
77
- }
78
- get() {
79
- return this.type;
80
- }
81
- set(e) {
82
- if (this.type && this.type !== e) throw Error("Cannot change both RGB and HSL channels at the same time");
83
- this.type = e;
84
- }
85
- reset() {
86
- this.type = TYPE.ALL;
87
- }
88
- is(e) {
89
- return this.type === e;
90
- }
91
- }, reusable_default = new class {
92
- constructor(e, t) {
93
- this.color = t, this.changed = !1, this.data = e, this.type = new type_default();
94
- }
95
- set(e, t) {
96
- return this.color = t, this.changed = !1, this.data = e, this.type.type = TYPE.ALL, this;
97
- }
98
- _ensureHSL() {
99
- let e = this.data, { h: t, s: n, l: r } = e;
100
- t === void 0 && (e.h = utils_default.channel.rgb2hsl(e, "h")), n === void 0 && (e.s = utils_default.channel.rgb2hsl(e, "s")), r === void 0 && (e.l = utils_default.channel.rgb2hsl(e, "l"));
101
- }
102
- _ensureRGB() {
103
- let e = this.data, { r: t, g: n, b: r } = e;
104
- t === void 0 && (e.r = utils_default.channel.hsl2rgb(e, "r")), n === void 0 && (e.g = utils_default.channel.hsl2rgb(e, "g")), r === void 0 && (e.b = utils_default.channel.hsl2rgb(e, "b"));
105
- }
106
- get r() {
107
- let e = this.data, t = e.r;
108
- return !this.type.is(TYPE.HSL) && t !== void 0 ? t : (this._ensureHSL(), utils_default.channel.hsl2rgb(e, "r"));
109
- }
110
- get g() {
111
- let e = this.data, t = e.g;
112
- return !this.type.is(TYPE.HSL) && t !== void 0 ? t : (this._ensureHSL(), utils_default.channel.hsl2rgb(e, "g"));
113
- }
114
- get b() {
115
- let e = this.data, t = e.b;
116
- return !this.type.is(TYPE.HSL) && t !== void 0 ? t : (this._ensureHSL(), utils_default.channel.hsl2rgb(e, "b"));
117
- }
118
- get h() {
119
- let e = this.data, t = e.h;
120
- return !this.type.is(TYPE.RGB) && t !== void 0 ? t : (this._ensureRGB(), utils_default.channel.rgb2hsl(e, "h"));
121
- }
122
- get s() {
123
- let e = this.data, t = e.s;
124
- return !this.type.is(TYPE.RGB) && t !== void 0 ? t : (this._ensureRGB(), utils_default.channel.rgb2hsl(e, "s"));
125
- }
126
- get l() {
127
- let e = this.data, t = e.l;
128
- return !this.type.is(TYPE.RGB) && t !== void 0 ? t : (this._ensureRGB(), utils_default.channel.rgb2hsl(e, "l"));
129
- }
130
- get a() {
131
- return this.data.a;
132
- }
133
- set r(e) {
134
- this.type.set(TYPE.RGB), this.changed = !0, this.data.r = e;
135
- }
136
- set g(e) {
137
- this.type.set(TYPE.RGB), this.changed = !0, this.data.g = e;
138
- }
139
- set b(e) {
140
- this.type.set(TYPE.RGB), this.changed = !0, this.data.b = e;
141
- }
142
- set h(e) {
143
- this.type.set(TYPE.HSL), this.changed = !0, this.data.h = e;
144
- }
145
- set s(e) {
146
- this.type.set(TYPE.HSL), this.changed = !0, this.data.s = e;
147
- }
148
- set l(e) {
149
- this.type.set(TYPE.HSL), this.changed = !0, this.data.l = e;
150
- }
151
- set a(e) {
152
- this.changed = !0, this.data.a = e;
153
- }
154
- }({
155
- r: 0,
156
- g: 0,
157
- b: 0,
158
- a: 0
159
- }, "transparent"), Hex = {
160
- re: /^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,
161
- parse: (e) => {
162
- if (e.charCodeAt(0) !== 35) return;
163
- let t = e.match(Hex.re);
164
- if (!t) return;
165
- let n = t[1], r = parseInt(n, 16), i = n.length, a = i % 4 == 0, o = i > 4, s = o ? 1 : 17, c = o ? 8 : 4, d = a ? 0 : -1, f = o ? 255 : 15;
166
- return reusable_default.set({
167
- r: (r >> c * (d + 3) & f) * s,
168
- g: (r >> c * (d + 2) & f) * s,
169
- b: (r >> c * (d + 1) & f) * s,
170
- a: a ? (r & f) * s / 255 : 1
171
- }, e);
172
- },
173
- stringify: (e) => {
174
- let { r: t, g: n, b: r, a: i } = e;
175
- return i < 1 ? `#${DEC2HEX[Math.round(t)]}${DEC2HEX[Math.round(n)]}${DEC2HEX[Math.round(r)]}${DEC2HEX[Math.round(i * 255)]}` : `#${DEC2HEX[Math.round(t)]}${DEC2HEX[Math.round(n)]}${DEC2HEX[Math.round(r)]}`;
176
- }
177
- }, hex_default = Hex, HSL = {
178
- re: /^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,
179
- hueRe: /^(.+?)(deg|grad|rad|turn)$/i,
180
- _hue2deg: (e) => {
181
- let t = e.match(HSL.hueRe);
182
- if (t) {
183
- let [, e, n] = t;
184
- switch (n) {
185
- case "grad": return utils_default.channel.clamp.h(parseFloat(e) * .9);
186
- case "rad": return utils_default.channel.clamp.h(parseFloat(e) * 180 / Math.PI);
187
- case "turn": return utils_default.channel.clamp.h(parseFloat(e) * 360);
188
- }
189
- }
190
- return utils_default.channel.clamp.h(parseFloat(e));
191
- },
192
- parse: (e) => {
193
- let t = e.charCodeAt(0);
194
- if (t !== 104 && t !== 72) return;
195
- let n = e.match(HSL.re);
196
- if (!n) return;
197
- let [, r, i, o, s, c] = n;
198
- return reusable_default.set({
199
- h: HSL._hue2deg(r),
200
- s: utils_default.channel.clamp.s(parseFloat(i)),
201
- l: utils_default.channel.clamp.l(parseFloat(o)),
202
- a: s ? utils_default.channel.clamp.a(c ? parseFloat(s) / 100 : parseFloat(s)) : 1
203
- }, e);
204
- },
205
- stringify: (e) => {
206
- let { h: t, s: n, l: r, a: i } = e;
207
- return i < 1 ? `hsla(${utils_default.lang.round(t)}, ${utils_default.lang.round(n)}%, ${utils_default.lang.round(r)}%, ${i})` : `hsl(${utils_default.lang.round(t)}, ${utils_default.lang.round(n)}%, ${utils_default.lang.round(r)}%)`;
208
- }
209
- }, hsl_default = HSL, Keyword = {
210
- colors: {
211
- aliceblue: "#f0f8ff",
212
- antiquewhite: "#faebd7",
213
- aqua: "#00ffff",
214
- aquamarine: "#7fffd4",
215
- azure: "#f0ffff",
216
- beige: "#f5f5dc",
217
- bisque: "#ffe4c4",
218
- black: "#000000",
219
- blanchedalmond: "#ffebcd",
220
- blue: "#0000ff",
221
- blueviolet: "#8a2be2",
222
- brown: "#a52a2a",
223
- burlywood: "#deb887",
224
- cadetblue: "#5f9ea0",
225
- chartreuse: "#7fff00",
226
- chocolate: "#d2691e",
227
- coral: "#ff7f50",
228
- cornflowerblue: "#6495ed",
229
- cornsilk: "#fff8dc",
230
- crimson: "#dc143c",
231
- cyanaqua: "#00ffff",
232
- darkblue: "#00008b",
233
- darkcyan: "#008b8b",
234
- darkgoldenrod: "#b8860b",
235
- darkgray: "#a9a9a9",
236
- darkgreen: "#006400",
237
- darkgrey: "#a9a9a9",
238
- darkkhaki: "#bdb76b",
239
- darkmagenta: "#8b008b",
240
- darkolivegreen: "#556b2f",
241
- darkorange: "#ff8c00",
242
- darkorchid: "#9932cc",
243
- darkred: "#8b0000",
244
- darksalmon: "#e9967a",
245
- darkseagreen: "#8fbc8f",
246
- darkslateblue: "#483d8b",
247
- darkslategray: "#2f4f4f",
248
- darkslategrey: "#2f4f4f",
249
- darkturquoise: "#00ced1",
250
- darkviolet: "#9400d3",
251
- deeppink: "#ff1493",
252
- deepskyblue: "#00bfff",
253
- dimgray: "#696969",
254
- dimgrey: "#696969",
255
- dodgerblue: "#1e90ff",
256
- firebrick: "#b22222",
257
- floralwhite: "#fffaf0",
258
- forestgreen: "#228b22",
259
- fuchsia: "#ff00ff",
260
- gainsboro: "#dcdcdc",
261
- ghostwhite: "#f8f8ff",
262
- gold: "#ffd700",
263
- goldenrod: "#daa520",
264
- gray: "#808080",
265
- green: "#008000",
266
- greenyellow: "#adff2f",
267
- grey: "#808080",
268
- honeydew: "#f0fff0",
269
- hotpink: "#ff69b4",
270
- indianred: "#cd5c5c",
271
- indigo: "#4b0082",
272
- ivory: "#fffff0",
273
- khaki: "#f0e68c",
274
- lavender: "#e6e6fa",
275
- lavenderblush: "#fff0f5",
276
- lawngreen: "#7cfc00",
277
- lemonchiffon: "#fffacd",
278
- lightblue: "#add8e6",
279
- lightcoral: "#f08080",
280
- lightcyan: "#e0ffff",
281
- lightgoldenrodyellow: "#fafad2",
282
- lightgray: "#d3d3d3",
283
- lightgreen: "#90ee90",
284
- lightgrey: "#d3d3d3",
285
- lightpink: "#ffb6c1",
286
- lightsalmon: "#ffa07a",
287
- lightseagreen: "#20b2aa",
288
- lightskyblue: "#87cefa",
289
- lightslategray: "#778899",
290
- lightslategrey: "#778899",
291
- lightsteelblue: "#b0c4de",
292
- lightyellow: "#ffffe0",
293
- lime: "#00ff00",
294
- limegreen: "#32cd32",
295
- linen: "#faf0e6",
296
- magenta: "#ff00ff",
297
- maroon: "#800000",
298
- mediumaquamarine: "#66cdaa",
299
- mediumblue: "#0000cd",
300
- mediumorchid: "#ba55d3",
301
- mediumpurple: "#9370db",
302
- mediumseagreen: "#3cb371",
303
- mediumslateblue: "#7b68ee",
304
- mediumspringgreen: "#00fa9a",
305
- mediumturquoise: "#48d1cc",
306
- mediumvioletred: "#c71585",
307
- midnightblue: "#191970",
308
- mintcream: "#f5fffa",
309
- mistyrose: "#ffe4e1",
310
- moccasin: "#ffe4b5",
311
- navajowhite: "#ffdead",
312
- navy: "#000080",
313
- oldlace: "#fdf5e6",
314
- olive: "#808000",
315
- olivedrab: "#6b8e23",
316
- orange: "#ffa500",
317
- orangered: "#ff4500",
318
- orchid: "#da70d6",
319
- palegoldenrod: "#eee8aa",
320
- palegreen: "#98fb98",
321
- paleturquoise: "#afeeee",
322
- palevioletred: "#db7093",
323
- papayawhip: "#ffefd5",
324
- peachpuff: "#ffdab9",
325
- peru: "#cd853f",
326
- pink: "#ffc0cb",
327
- plum: "#dda0dd",
328
- powderblue: "#b0e0e6",
329
- purple: "#800080",
330
- rebeccapurple: "#663399",
331
- red: "#ff0000",
332
- rosybrown: "#bc8f8f",
333
- royalblue: "#4169e1",
334
- saddlebrown: "#8b4513",
335
- salmon: "#fa8072",
336
- sandybrown: "#f4a460",
337
- seagreen: "#2e8b57",
338
- seashell: "#fff5ee",
339
- sienna: "#a0522d",
340
- silver: "#c0c0c0",
341
- skyblue: "#87ceeb",
342
- slateblue: "#6a5acd",
343
- slategray: "#708090",
344
- slategrey: "#708090",
345
- snow: "#fffafa",
346
- springgreen: "#00ff7f",
347
- tan: "#d2b48c",
348
- teal: "#008080",
349
- thistle: "#d8bfd8",
350
- transparent: "#00000000",
351
- turquoise: "#40e0d0",
352
- violet: "#ee82ee",
353
- wheat: "#f5deb3",
354
- white: "#ffffff",
355
- whitesmoke: "#f5f5f5",
356
- yellow: "#ffff00",
357
- yellowgreen: "#9acd32"
358
- },
359
- parse: (e) => {
360
- e = e.toLowerCase();
361
- let t = Keyword.colors[e];
362
- if (t) return hex_default.parse(t);
363
- },
364
- stringify: (e) => {
365
- let t = hex_default.stringify(e);
366
- for (let e in Keyword.colors) if (Keyword.colors[e] === t) return e;
367
- }
368
- }, keyword_default = Keyword, RGB = {
369
- re: /^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,
370
- parse: (e) => {
371
- let t = e.charCodeAt(0);
372
- if (t !== 114 && t !== 82) return;
373
- let n = e.match(RGB.re);
374
- if (!n) return;
375
- let [, r, i, o, s, c, u, d, f] = n;
376
- return reusable_default.set({
377
- r: utils_default.channel.clamp.r(i ? parseFloat(r) * 2.55 : parseFloat(r)),
378
- g: utils_default.channel.clamp.g(s ? parseFloat(o) * 2.55 : parseFloat(o)),
379
- b: utils_default.channel.clamp.b(u ? parseFloat(c) * 2.55 : parseFloat(c)),
380
- a: d ? utils_default.channel.clamp.a(f ? parseFloat(d) / 100 : parseFloat(d)) : 1
381
- }, e);
382
- },
383
- stringify: (e) => {
384
- let { r: t, g: n, b: r, a: i } = e;
385
- return i < 1 ? `rgba(${utils_default.lang.round(t)}, ${utils_default.lang.round(n)}, ${utils_default.lang.round(r)}, ${utils_default.lang.round(i)})` : `rgb(${utils_default.lang.round(t)}, ${utils_default.lang.round(n)}, ${utils_default.lang.round(r)})`;
386
- }
387
- }, rgb_default = RGB, color_default = {
388
- format: {
389
- keyword: keyword_default,
390
- hex: hex_default,
391
- rgb: rgb_default,
392
- rgba: rgb_default,
393
- hsl: hsl_default,
394
- hsla: hsl_default
395
- },
396
- parse: (e) => {
397
- if (typeof e != "string") return e;
398
- let t = hex_default.parse(e) || rgb_default.parse(e) || hsl_default.parse(e) || keyword_default.parse(e);
399
- if (t) return t;
400
- throw Error(`Unsupported color format: "${e}"`);
401
- },
402
- stringify: (e) => !e.changed && e.color ? e.color : e.type.is(TYPE.HSL) || e.data.r === void 0 ? hsl_default.stringify(e) : e.a < 1 || !Number.isInteger(e.r) || !Number.isInteger(e.g) || !Number.isInteger(e.b) ? rgb_default.stringify(e) : hex_default.stringify(e)
403
- }, change_default = (e, t) => {
404
- let n = color_default.parse(e);
405
- for (let e in t) n[e] = utils_default.channel.clamp[e](t[e]);
406
- return color_default.stringify(n);
407
- }, rgba_default = (e, t, n = 0, r = 1) => {
408
- if (typeof e != "number") return change_default(e, { a: t });
409
- let i = reusable_default.set({
410
- r: utils_default.channel.clamp.r(e),
411
- g: utils_default.channel.clamp.g(t),
412
- b: utils_default.channel.clamp.b(n),
413
- a: utils_default.channel.clamp.a(r)
414
- });
415
- return color_default.stringify(i);
416
- }, luminance_default = (e) => {
417
- let { r: t, g: n, b: r } = color_default.parse(e), i = .2126 * utils_default.channel.toLinear(t) + .7152 * utils_default.channel.toLinear(n) + .0722 * utils_default.channel.toLinear(r);
418
- return utils_default.lang.round(i);
419
- }, is_light_default = (e) => luminance_default(e) >= .5, is_dark_default = (e) => !is_light_default(e), adjust_channel_default = (e, t, n) => {
420
- let r = color_default.parse(e), i = r[t], o = utils_default.channel.clamp[t](i + n);
421
- return i !== o && (r[t] = o), color_default.stringify(r);
422
- }, lighten_default = (e, t) => adjust_channel_default(e, "l", t), darken_default = (e, t) => adjust_channel_default(e, "l", -t), adjust_default = (e, t) => {
423
- let n = color_default.parse(e), r = {};
424
- for (let e in t) t[e] && (r[e] = n[e] + t[e]);
425
- return change_default(e, r);
426
- }, mix_default = (e, t, n = 50) => {
427
- let { r, g: i, b: a, a: o } = color_default.parse(e), { r: s, g: c, b: l, a: u } = color_default.parse(t), d = n / 100, f = d * 2 - 1, p = o - u, m = ((f * p === -1 ? f : (f + p) / (1 + f * p)) + 1) / 2, h = 1 - m;
428
- return rgba_default(r * m + s * h, i * m + c * h, a * m + l * h, o * d + u * (1 - d));
429
- }, invert_default = (e, t = 100) => {
430
- let n = color_default.parse(e);
431
- return n.r = 255 - n.r, n.g = 255 - n.g, n.b = 255 - n.b, mix_default(n, e, t);
432
- }, { entries, setPrototypeOf, isFrozen, getPrototypeOf, getOwnPropertyDescriptor } = Object, { freeze, seal, create } = Object, { apply, construct } = typeof Reflect < "u" && Reflect;
433
- freeze ||= function(e) {
434
- return e;
435
- }, seal ||= function(e) {
436
- return e;
437
- }, apply ||= function(e, t) {
438
- var n = [...arguments].slice(2);
439
- return e.apply(t, n);
440
- }, construct ||= function(e) {
441
- return new e(...[...arguments].slice(1));
442
- };
443
- var arrayForEach = unapply(Array.prototype.forEach), arrayLastIndexOf = unapply(Array.prototype.lastIndexOf), arrayPop = unapply(Array.prototype.pop), arrayPush = unapply(Array.prototype.push), arraySplice = unapply(Array.prototype.splice), stringToLowerCase = unapply(String.prototype.toLowerCase), stringToString = unapply(String.prototype.toString), stringMatch = unapply(String.prototype.match), stringReplace = unapply(String.prototype.replace), stringIndexOf = unapply(String.prototype.indexOf), stringTrim = unapply(String.prototype.trim), objectHasOwnProperty = unapply(Object.prototype.hasOwnProperty), regExpTest = unapply(RegExp.prototype.test), typeErrorCreate = unconstruct(TypeError);
444
- function unapply(e) {
445
- return function(t) {
446
- t instanceof RegExp && (t.lastIndex = 0);
447
- var n = [...arguments].slice(1);
448
- return apply(e, t, n);
449
- };
450
- }
451
- function unconstruct(e) {
452
- return function() {
453
- return construct(e, [...arguments]);
454
- };
455
- }
456
- function addToSet(e, t) {
457
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : stringToLowerCase;
458
- setPrototypeOf && setPrototypeOf(e, null);
459
- let r = t.length;
460
- for (; r--;) {
461
- let i = t[r];
462
- if (typeof i == "string") {
463
- let e = n(i);
464
- e !== i && (isFrozen(t) || (t[r] = e), i = e);
465
- }
466
- e[i] = !0;
467
- }
468
- return e;
469
- }
470
- function cleanArray(e) {
471
- for (let t = 0; t < e.length; t++) objectHasOwnProperty(e, t) || (e[t] = null);
472
- return e;
473
- }
474
- function clone(e) {
475
- let t = create(null);
476
- for (let [n, r] of entries(e)) objectHasOwnProperty(e, n) && (Array.isArray(r) ? t[n] = cleanArray(r) : r && typeof r == "object" && r.constructor === Object ? t[n] = clone(r) : t[n] = r);
477
- return t;
478
- }
479
- function lookupGetter(e, t) {
480
- for (; e !== null;) {
481
- let n = getOwnPropertyDescriptor(e, t);
482
- if (n) {
483
- if (n.get) return unapply(n.get);
484
- if (typeof n.value == "function") return unapply(n.value);
485
- }
486
- e = getPrototypeOf(e);
487
- }
488
- function n() {
489
- return null;
490
- }
491
- return n;
492
- }
493
- var html$1 = freeze(/* @__PURE__ */ "a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr".split(".")), svg$1 = freeze(/* @__PURE__ */ "svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern".split(".")), svgFilters = freeze([
494
- "feBlend",
495
- "feColorMatrix",
496
- "feComponentTransfer",
497
- "feComposite",
498
- "feConvolveMatrix",
499
- "feDiffuseLighting",
500
- "feDisplacementMap",
501
- "feDistantLight",
502
- "feDropShadow",
503
- "feFlood",
504
- "feFuncA",
505
- "feFuncB",
506
- "feFuncG",
507
- "feFuncR",
508
- "feGaussianBlur",
509
- "feImage",
510
- "feMerge",
511
- "feMergeNode",
512
- "feMorphology",
513
- "feOffset",
514
- "fePointLight",
515
- "feSpecularLighting",
516
- "feSpotLight",
517
- "feTile",
518
- "feTurbulence"
519
- ]), svgDisallowed = freeze([
520
- "animate",
521
- "color-profile",
522
- "cursor",
523
- "discard",
524
- "font-face",
525
- "font-face-format",
526
- "font-face-name",
527
- "font-face-src",
528
- "font-face-uri",
529
- "foreignobject",
530
- "hatch",
531
- "hatchpath",
532
- "mesh",
533
- "meshgradient",
534
- "meshpatch",
535
- "meshrow",
536
- "missing-glyph",
537
- "script",
538
- "set",
539
- "solidcolor",
540
- "unknown",
541
- "use"
542
- ]), mathMl$1 = freeze(/* @__PURE__ */ "math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts".split(".")), mathMlDisallowed = freeze([
543
- "maction",
544
- "maligngroup",
545
- "malignmark",
546
- "mlongdiv",
547
- "mscarries",
548
- "mscarry",
549
- "msgroup",
550
- "mstack",
551
- "msline",
552
- "msrow",
553
- "semantics",
554
- "annotation",
555
- "annotation-xml",
556
- "mprescripts",
557
- "none"
558
- ]), text = freeze(["#text"]), html = freeze(/* @__PURE__ */ "accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot".split(".")), svg = freeze(/* @__PURE__ */ "accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan".split(".")), mathMl = freeze(/* @__PURE__ */ "accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns".split(".")), xml = freeze([
559
- "xlink:href",
560
- "xml:id",
561
- "xlink:title",
562
- "xml:space",
563
- "xmlns:xlink"
564
- ]), MUSTACHE_EXPR = seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm), ERB_EXPR = seal(/<%[\w\W]*|[\w\W]*%>/gm), TMPLIT_EXPR = seal(/\$\{[\w\W]*/gm), DATA_ATTR = seal(/^data-[\-\w.\u00B7-\uFFFF]+$/), ARIA_ATTR = seal(/^aria-[\-\w]+$/), IS_ALLOWED_URI = seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), IS_SCRIPT_OR_DATA = seal(/^(?:\w+script|data):/i), ATTR_WHITESPACE = seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), DOCTYPE_NAME = seal(/^html$/i), CUSTOM_ELEMENT = seal(/^[a-z][.\w]*(-[.\w]+)+$/i), EXPRESSIONS = /* @__PURE__ */ Object.freeze({
565
- __proto__: null,
566
- ARIA_ATTR,
567
- ATTR_WHITESPACE,
568
- CUSTOM_ELEMENT,
569
- DATA_ATTR,
570
- DOCTYPE_NAME,
571
- ERB_EXPR,
572
- IS_ALLOWED_URI,
573
- IS_SCRIPT_OR_DATA,
574
- MUSTACHE_EXPR,
575
- TMPLIT_EXPR
576
- }), NODE_TYPE = {
577
- element: 1,
578
- attribute: 2,
579
- text: 3,
580
- cdataSection: 4,
581
- entityReference: 5,
582
- entityNode: 6,
583
- progressingInstruction: 7,
584
- comment: 8,
585
- document: 9,
586
- documentType: 10,
587
- documentFragment: 11,
588
- notation: 12
589
- }, getGlobal = function() {
590
- return typeof window > "u" ? null : window;
591
- }, _createTrustedTypesPolicy = function(e, t) {
592
- if (typeof e != "object" || typeof e.createPolicy != "function") return null;
593
- let n = null, r = "data-tt-policy-suffix";
594
- t && t.hasAttribute(r) && (n = t.getAttribute(r));
595
- let i = "dompurify" + (n ? "#" + n : "");
596
- try {
597
- return e.createPolicy(i, {
598
- createHTML(e) {
599
- return e;
600
- },
601
- createScriptURL(e) {
602
- return e;
603
- }
604
- });
605
- } catch {
606
- return console.warn("TrustedTypes policy " + i + " could not be created."), null;
607
- }
608
- }, _createHooksMap = function() {
609
- return {
610
- afterSanitizeAttributes: [],
611
- afterSanitizeElements: [],
612
- afterSanitizeShadowDOM: [],
613
- beforeSanitizeAttributes: [],
614
- beforeSanitizeElements: [],
615
- beforeSanitizeShadowDOM: [],
616
- uponSanitizeAttribute: [],
617
- uponSanitizeElement: [],
618
- uponSanitizeShadowNode: []
619
- };
620
- };
621
- function createDOMPurify() {
622
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : getGlobal(), t = (e) => createDOMPurify(e);
623
- if (t.version = "3.3.1", t.removed = [], !e || !e.document || e.document.nodeType !== NODE_TYPE.document || !e.Element) return t.isSupported = !1, t;
624
- let { document: n } = e, r = n, i = r.currentScript, { DocumentFragment: a, HTMLTemplateElement: o, Node: s, Element: c, NodeFilter: l, NamedNodeMap: u = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: d, DOMParser: f, trustedTypes: p } = e, m = c.prototype, h = lookupGetter(m, "cloneNode"), Wt = lookupGetter(m, "remove"), Gt = lookupGetter(m, "nextSibling"), Kt = lookupGetter(m, "childNodes"), g = lookupGetter(m, "parentNode");
625
- if (typeof o == "function") {
626
- let e = n.createElement("template");
627
- e.content && e.content.ownerDocument && (n = e.content.ownerDocument);
628
- }
629
- let _, v = "", { implementation: y, createNodeIterator: qt, createDocumentFragment: Jt, getElementsByTagName: Yt } = n, { importNode: Xt } = r, b = _createHooksMap();
630
- t.isSupported = typeof entries == "function" && typeof g == "function" && y && y.createHTMLDocument !== void 0;
631
- let { MUSTACHE_EXPR: x, ERB_EXPR: Zt, TMPLIT_EXPR: Qt, DATA_ATTR: $t, ARIA_ATTR: en, IS_SCRIPT_OR_DATA: tn, ATTR_WHITESPACE: nn, CUSTOM_ELEMENT: rn } = EXPRESSIONS, { IS_ALLOWED_URI: an } = EXPRESSIONS, S = null, on = addToSet({}, [
632
- ...html$1,
633
- ...svg$1,
634
- ...svgFilters,
635
- ...mathMl$1,
636
- ...text
637
- ]), C = null, sn = addToSet({}, [
638
- ...html,
639
- ...svg,
640
- ...mathMl,
641
- ...xml
642
- ]), w = Object.seal(create(null, {
643
- tagNameCheck: {
644
- writable: !0,
645
- configurable: !1,
646
- enumerable: !0,
647
- value: null
648
- },
649
- attributeNameCheck: {
650
- writable: !0,
651
- configurable: !1,
652
- enumerable: !0,
653
- value: null
654
- },
655
- allowCustomizedBuiltInElements: {
656
- writable: !0,
657
- configurable: !1,
658
- enumerable: !0,
659
- value: !1
660
- }
661
- })), T = null, E = null, D = Object.seal(create(null, {
662
- tagCheck: {
663
- writable: !0,
664
- configurable: !1,
665
- enumerable: !0,
666
- value: null
667
- },
668
- attributeCheck: {
669
- writable: !0,
670
- configurable: !1,
671
- enumerable: !0,
672
- value: null
673
- }
674
- })), cn = !0, O = !0, ln = !1, un = !0, k = !1, A = !0, j = !1, M = !1, N = !1, P = !1, F = !1, I = !1, dn = !0, fn = !1, L = !0, R = !1, z = {}, B = null, pn = addToSet({}, [
675
- "annotation-xml",
676
- "audio",
677
- "colgroup",
678
- "desc",
679
- "foreignobject",
680
- "head",
681
- "iframe",
682
- "math",
683
- "mi",
684
- "mn",
685
- "mo",
686
- "ms",
687
- "mtext",
688
- "noembed",
689
- "noframes",
690
- "noscript",
691
- "plaintext",
692
- "script",
693
- "style",
694
- "svg",
695
- "template",
696
- "thead",
697
- "title",
698
- "video",
699
- "xmp"
700
- ]), mn = null, hn = addToSet({}, [
701
- "audio",
702
- "video",
703
- "img",
704
- "source",
705
- "image",
706
- "track"
707
- ]), gn = null, _n = addToSet({}, [
708
- "alt",
709
- "class",
710
- "for",
711
- "id",
712
- "label",
713
- "name",
714
- "pattern",
715
- "placeholder",
716
- "role",
717
- "summary",
718
- "title",
719
- "value",
720
- "style",
721
- "xmlns"
722
- ]), V = "http://www.w3.org/1998/Math/MathML", H = "http://www.w3.org/2000/svg", U = "http://www.w3.org/1999/xhtml", W = U, vn = !1, yn = null, bn = addToSet({}, [
723
- V,
724
- H,
725
- U
726
- ], stringToString), G = addToSet({}, [
727
- "mi",
728
- "mo",
729
- "mn",
730
- "ms",
731
- "mtext"
732
- ]), K = addToSet({}, ["annotation-xml"]), xn = addToSet({}, [
733
- "title",
734
- "style",
735
- "font",
736
- "a",
737
- "script"
738
- ]), q = null, Sn = ["application/xhtml+xml", "text/html"], J = null, Y = null, Cn = n.createElement("form"), wn = function(e) {
739
- return e instanceof RegExp || e instanceof Function;
740
- }, Tn = function() {
741
- let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
742
- if (!(Y && Y === e)) {
743
- if ((!e || typeof e != "object") && (e = {}), e = clone(e), q = Sn.indexOf(e.PARSER_MEDIA_TYPE) === -1 ? "text/html" : e.PARSER_MEDIA_TYPE, J = q === "application/xhtml+xml" ? stringToString : stringToLowerCase, S = objectHasOwnProperty(e, "ALLOWED_TAGS") ? addToSet({}, e.ALLOWED_TAGS, J) : on, C = objectHasOwnProperty(e, "ALLOWED_ATTR") ? addToSet({}, e.ALLOWED_ATTR, J) : sn, yn = objectHasOwnProperty(e, "ALLOWED_NAMESPACES") ? addToSet({}, e.ALLOWED_NAMESPACES, stringToString) : bn, gn = objectHasOwnProperty(e, "ADD_URI_SAFE_ATTR") ? addToSet(clone(_n), e.ADD_URI_SAFE_ATTR, J) : _n, mn = objectHasOwnProperty(e, "ADD_DATA_URI_TAGS") ? addToSet(clone(hn), e.ADD_DATA_URI_TAGS, J) : hn, B = objectHasOwnProperty(e, "FORBID_CONTENTS") ? addToSet({}, e.FORBID_CONTENTS, J) : pn, T = objectHasOwnProperty(e, "FORBID_TAGS") ? addToSet({}, e.FORBID_TAGS, J) : clone({}), E = objectHasOwnProperty(e, "FORBID_ATTR") ? addToSet({}, e.FORBID_ATTR, J) : clone({}), z = objectHasOwnProperty(e, "USE_PROFILES") ? e.USE_PROFILES : !1, cn = e.ALLOW_ARIA_ATTR !== !1, O = e.ALLOW_DATA_ATTR !== !1, ln = e.ALLOW_UNKNOWN_PROTOCOLS || !1, un = e.ALLOW_SELF_CLOSE_IN_ATTR !== !1, k = e.SAFE_FOR_TEMPLATES || !1, A = e.SAFE_FOR_XML !== !1, j = e.WHOLE_DOCUMENT || !1, P = e.RETURN_DOM || !1, F = e.RETURN_DOM_FRAGMENT || !1, I = e.RETURN_TRUSTED_TYPE || !1, N = e.FORCE_BODY || !1, dn = e.SANITIZE_DOM !== !1, fn = e.SANITIZE_NAMED_PROPS || !1, L = e.KEEP_CONTENT !== !1, R = e.IN_PLACE || !1, an = e.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, W = e.NAMESPACE || U, G = e.MATHML_TEXT_INTEGRATION_POINTS || G, K = e.HTML_INTEGRATION_POINTS || K, w = e.CUSTOM_ELEMENT_HANDLING || {}, e.CUSTOM_ELEMENT_HANDLING && wn(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (w.tagNameCheck = e.CUSTOM_ELEMENT_HANDLING.tagNameCheck), e.CUSTOM_ELEMENT_HANDLING && wn(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (w.attributeNameCheck = e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), e.CUSTOM_ELEMENT_HANDLING && typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (w.allowCustomizedBuiltInElements = e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), k && (O = !1), F && (P = !0), z && (S = addToSet({}, text), C = [], z.html === !0 && (addToSet(S, html$1), addToSet(C, html)), z.svg === !0 && (addToSet(S, svg$1), addToSet(C, svg), addToSet(C, xml)), z.svgFilters === !0 && (addToSet(S, svgFilters), addToSet(C, svg), addToSet(C, xml)), z.mathMl === !0 && (addToSet(S, mathMl$1), addToSet(C, mathMl), addToSet(C, xml))), e.ADD_TAGS && (typeof e.ADD_TAGS == "function" ? D.tagCheck = e.ADD_TAGS : (S === on && (S = clone(S)), addToSet(S, e.ADD_TAGS, J))), e.ADD_ATTR && (typeof e.ADD_ATTR == "function" ? D.attributeCheck = e.ADD_ATTR : (C === sn && (C = clone(C)), addToSet(C, e.ADD_ATTR, J))), e.ADD_URI_SAFE_ATTR && addToSet(gn, e.ADD_URI_SAFE_ATTR, J), e.FORBID_CONTENTS && (B === pn && (B = clone(B)), addToSet(B, e.FORBID_CONTENTS, J)), e.ADD_FORBID_CONTENTS && (B === pn && (B = clone(B)), addToSet(B, e.ADD_FORBID_CONTENTS, J)), L && (S["#text"] = !0), j && addToSet(S, [
744
- "html",
745
- "head",
746
- "body"
747
- ]), S.table && (addToSet(S, ["tbody"]), delete T.tbody), e.TRUSTED_TYPES_POLICY) {
748
- if (typeof e.TRUSTED_TYPES_POLICY.createHTML != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createHTML\" hook.");
749
- if (typeof e.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw typeErrorCreate("TRUSTED_TYPES_POLICY configuration option must provide a \"createScriptURL\" hook.");
750
- _ = e.TRUSTED_TYPES_POLICY, v = _.createHTML("");
751
- } else _ === void 0 && (_ = _createTrustedTypesPolicy(p, i)), _ !== null && typeof v == "string" && (v = _.createHTML(""));
752
- freeze && freeze(e), Y = e;
753
- }
754
- }, En = addToSet({}, [
755
- ...svg$1,
756
- ...svgFilters,
757
- ...svgDisallowed
758
- ]), Dn = addToSet({}, [...mathMl$1, ...mathMlDisallowed]), On = function(e) {
759
- let t = g(e);
760
- (!t || !t.tagName) && (t = {
761
- namespaceURI: W,
762
- tagName: "template"
763
- });
764
- let n = stringToLowerCase(e.tagName), r = stringToLowerCase(t.tagName);
765
- return yn[e.namespaceURI] ? e.namespaceURI === H ? t.namespaceURI === U ? n === "svg" : t.namespaceURI === V ? n === "svg" && (r === "annotation-xml" || G[r]) : !!En[n] : e.namespaceURI === V ? t.namespaceURI === U ? n === "math" : t.namespaceURI === H ? n === "math" && K[r] : !!Dn[n] : e.namespaceURI === U ? t.namespaceURI === H && !K[r] || t.namespaceURI === V && !G[r] ? !1 : !Dn[n] && (xn[n] || !En[n]) : !!(q === "application/xhtml+xml" && yn[e.namespaceURI]) : !1;
766
- }, X = function(e) {
767
- arrayPush(t.removed, { element: e });
768
- try {
769
- g(e).removeChild(e);
770
- } catch {
771
- Wt(e);
772
- }
773
- }, Z = function(e, n) {
774
- try {
775
- arrayPush(t.removed, {
776
- attribute: n.getAttributeNode(e),
777
- from: n
778
- });
779
- } catch {
780
- arrayPush(t.removed, {
781
- attribute: null,
782
- from: n
783
- });
784
- }
785
- if (n.removeAttribute(e), e === "is") if (P || F) try {
786
- X(n);
787
- } catch {}
788
- else try {
789
- n.setAttribute(e, "");
790
- } catch {}
791
- }, kn = function(e) {
792
- let t = null, r = null;
793
- if (N) e = "<remove></remove>" + e;
794
- else {
795
- let t = stringMatch(e, /^[\r\n\t ]+/);
796
- r = t && t[0];
797
- }
798
- q === "application/xhtml+xml" && W === U && (e = "<html xmlns=\"http://www.w3.org/1999/xhtml\"><head></head><body>" + e + "</body></html>");
799
- let i = _ ? _.createHTML(e) : e;
800
- if (W === U) try {
801
- t = new f().parseFromString(i, q);
802
- } catch {}
803
- if (!t || !t.documentElement) {
804
- t = y.createDocument(W, "template", null);
805
- try {
806
- t.documentElement.innerHTML = vn ? v : i;
807
- } catch {}
808
- }
809
- let a = t.body || t.documentElement;
810
- return e && r && a.insertBefore(n.createTextNode(r), a.childNodes[0] || null), W === U ? Yt.call(t, j ? "html" : "body")[0] : j ? t.documentElement : a;
811
- }, An = function(e) {
812
- return qt.call(e.ownerDocument || e, e, l.SHOW_ELEMENT | l.SHOW_COMMENT | l.SHOW_TEXT | l.SHOW_PROCESSING_INSTRUCTION | l.SHOW_CDATA_SECTION, null);
813
- }, Q = function(e) {
814
- return e instanceof d && (typeof e.nodeName != "string" || typeof e.textContent != "string" || typeof e.removeChild != "function" || !(e.attributes instanceof u) || typeof e.removeAttribute != "function" || typeof e.setAttribute != "function" || typeof e.namespaceURI != "string" || typeof e.insertBefore != "function" || typeof e.hasChildNodes != "function");
815
- }, jn = function(e) {
816
- return typeof s == "function" && e instanceof s;
817
- };
818
- function $(e, n, r) {
819
- arrayForEach(e, (e) => {
820
- e.call(t, n, r, Y);
821
- });
822
- }
823
- let Mn = function(e) {
824
- let n = null;
825
- if ($(b.beforeSanitizeElements, e, null), Q(e)) return X(e), !0;
826
- let r = J(e.nodeName);
827
- if ($(b.uponSanitizeElement, e, {
828
- tagName: r,
829
- allowedTags: S
830
- }), A && e.hasChildNodes() && !jn(e.firstElementChild) && regExpTest(/<[/\w!]/g, e.innerHTML) && regExpTest(/<[/\w!]/g, e.textContent) || e.nodeType === NODE_TYPE.progressingInstruction || A && e.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, e.data)) return X(e), !0;
831
- if (!(D.tagCheck instanceof Function && D.tagCheck(r)) && (!S[r] || T[r])) {
832
- if (!T[r] && Pn(r) && (w.tagNameCheck instanceof RegExp && regExpTest(w.tagNameCheck, r) || w.tagNameCheck instanceof Function && w.tagNameCheck(r))) return !1;
833
- if (L && !B[r]) {
834
- let t = g(e) || e.parentNode, n = Kt(e) || e.childNodes;
835
- if (n && t) {
836
- let r = n.length;
837
- for (let i = r - 1; i >= 0; --i) {
838
- let r = h(n[i], !0);
839
- r.__removalCount = (e.__removalCount || 0) + 1, t.insertBefore(r, Gt(e));
840
- }
841
- }
842
- }
843
- return X(e), !0;
844
- }
845
- return e instanceof c && !On(e) || (r === "noscript" || r === "noembed" || r === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, e.innerHTML) ? (X(e), !0) : (k && e.nodeType === NODE_TYPE.text && (n = e.textContent, arrayForEach([
846
- x,
847
- Zt,
848
- Qt
849
- ], (e) => {
850
- n = stringReplace(n, e, " ");
851
- }), e.textContent !== n && (arrayPush(t.removed, { element: e.cloneNode() }), e.textContent = n)), $(b.afterSanitizeElements, e, null), !1);
852
- }, Nn = function(e, t, r) {
853
- if (dn && (t === "id" || t === "name") && (r in n || r in Cn)) return !1;
854
- if (!(O && !E[t] && regExpTest($t, t)) && !(cn && regExpTest(en, t)) && !(D.attributeCheck instanceof Function && D.attributeCheck(t, e))) {
855
- if (!C[t] || E[t]) {
856
- if (!(Pn(e) && (w.tagNameCheck instanceof RegExp && regExpTest(w.tagNameCheck, e) || w.tagNameCheck instanceof Function && w.tagNameCheck(e)) && (w.attributeNameCheck instanceof RegExp && regExpTest(w.attributeNameCheck, t) || w.attributeNameCheck instanceof Function && w.attributeNameCheck(t, e)) || t === "is" && w.allowCustomizedBuiltInElements && (w.tagNameCheck instanceof RegExp && regExpTest(w.tagNameCheck, r) || w.tagNameCheck instanceof Function && w.tagNameCheck(r)))) return !1;
857
- } else if (!gn[t] && !regExpTest(an, stringReplace(r, nn, "")) && !((t === "src" || t === "xlink:href" || t === "href") && e !== "script" && stringIndexOf(r, "data:") === 0 && mn[e]) && !(ln && !regExpTest(tn, stringReplace(r, nn, ""))) && r) return !1;
858
- }
859
- return !0;
860
- }, Pn = function(e) {
861
- return e !== "annotation-xml" && stringMatch(e, rn);
862
- }, Fn = function(e) {
863
- $(b.beforeSanitizeAttributes, e, null);
864
- let { attributes: n } = e;
865
- if (!n || Q(e)) return;
866
- let r = {
867
- attrName: "",
868
- attrValue: "",
869
- keepAttr: !0,
870
- allowedAttributes: C,
871
- forceKeepAttr: void 0
872
- }, i = n.length;
873
- for (; i--;) {
874
- let { name: a, namespaceURI: o, value: s } = n[i], c = J(a), l = s, u = a === "value" ? l : stringTrim(l);
875
- if (r.attrName = c, r.attrValue = u, r.keepAttr = !0, r.forceKeepAttr = void 0, $(b.uponSanitizeAttribute, e, r), u = r.attrValue, fn && (c === "id" || c === "name") && (Z(a, e), u = "user-content-" + u), A && regExpTest(/((--!?|])>)|<\/(style|title|textarea)/i, u)) {
876
- Z(a, e);
877
- continue;
878
- }
879
- if (c === "attributename" && stringMatch(u, "href")) {
880
- Z(a, e);
881
- continue;
882
- }
883
- if (r.forceKeepAttr) continue;
884
- if (!r.keepAttr) {
885
- Z(a, e);
886
- continue;
887
- }
888
- if (!un && regExpTest(/\/>/i, u)) {
889
- Z(a, e);
890
- continue;
891
- }
892
- k && arrayForEach([
893
- x,
894
- Zt,
895
- Qt
896
- ], (e) => {
897
- u = stringReplace(u, e, " ");
898
- });
899
- let d = J(e.nodeName);
900
- if (!Nn(d, c, u)) {
901
- Z(a, e);
902
- continue;
903
- }
904
- if (_ && typeof p == "object" && typeof p.getAttributeType == "function" && !o) switch (p.getAttributeType(d, c)) {
905
- case "TrustedHTML":
906
- u = _.createHTML(u);
907
- break;
908
- case "TrustedScriptURL":
909
- u = _.createScriptURL(u);
910
- break;
911
- }
912
- if (u !== l) try {
913
- o ? e.setAttributeNS(o, a, u) : e.setAttribute(a, u), Q(e) ? X(e) : arrayPop(t.removed);
914
- } catch {
915
- Z(a, e);
916
- }
917
- }
918
- $(b.afterSanitizeAttributes, e, null);
919
- }, In = function e(t) {
920
- let n = null, r = An(t);
921
- for ($(b.beforeSanitizeShadowDOM, t, null); n = r.nextNode();) $(b.uponSanitizeShadowNode, n, null), Mn(n), Fn(n), n.content instanceof a && e(n.content);
922
- $(b.afterSanitizeShadowDOM, t, null);
923
- };
924
- return t.sanitize = function(e) {
925
- let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = null, o = null, c = null, l = null;
926
- if (vn = !e, vn && (e = "<!-->"), typeof e != "string" && !jn(e)) if (typeof e.toString == "function") {
927
- if (e = e.toString(), typeof e != "string") throw typeErrorCreate("dirty is not a string, aborting");
928
- } else throw typeErrorCreate("toString is not a function");
929
- if (!t.isSupported) return e;
930
- if (M || Tn(n), t.removed = [], typeof e == "string" && (R = !1), R) {
931
- if (e.nodeName) {
932
- let t = J(e.nodeName);
933
- if (!S[t] || T[t]) throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place");
934
- }
935
- } else if (e instanceof s) i = kn("<!---->"), o = i.ownerDocument.importNode(e, !0), o.nodeType === NODE_TYPE.element && o.nodeName === "BODY" || o.nodeName === "HTML" ? i = o : i.appendChild(o);
936
- else {
937
- if (!P && !k && !j && e.indexOf("<") === -1) return _ && I ? _.createHTML(e) : e;
938
- if (i = kn(e), !i) return P ? null : I ? v : "";
939
- }
940
- i && N && X(i.firstChild);
941
- let u = An(R ? e : i);
942
- for (; c = u.nextNode();) Mn(c), Fn(c), c.content instanceof a && In(c.content);
943
- if (R) return e;
944
- if (P) {
945
- if (F) for (l = Jt.call(i.ownerDocument); i.firstChild;) l.appendChild(i.firstChild);
946
- else l = i;
947
- return (C.shadowroot || C.shadowrootmode) && (l = Xt.call(r, l, !0)), l;
948
- }
949
- let d = j ? i.outerHTML : i.innerHTML;
950
- return j && S["!doctype"] && i.ownerDocument && i.ownerDocument.doctype && i.ownerDocument.doctype.name && regExpTest(DOCTYPE_NAME, i.ownerDocument.doctype.name) && (d = "<!DOCTYPE " + i.ownerDocument.doctype.name + ">\n" + d), k && arrayForEach([
951
- x,
952
- Zt,
953
- Qt
954
- ], (e) => {
955
- d = stringReplace(d, e, " ");
956
- }), _ && I ? _.createHTML(d) : d;
957
- }, t.setConfig = function() {
958
- Tn(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), M = !0;
959
- }, t.clearConfig = function() {
960
- Y = null, M = !1;
961
- }, t.isValidAttribute = function(e, t, n) {
962
- return Y || Tn({}), Nn(J(e), J(t), n);
963
- }, t.addHook = function(e, t) {
964
- typeof t == "function" && arrayPush(b[e], t);
965
- }, t.removeHook = function(e, t) {
966
- if (t !== void 0) {
967
- let n = arrayLastIndexOf(b[e], t);
968
- return n === -1 ? void 0 : arraySplice(b[e], n, 1)[0];
969
- }
970
- return arrayPop(b[e]);
971
- }, t.removeHooks = function(e) {
972
- b[e] = [];
973
- }, t.removeAllHooks = function() {
974
- b = _createHooksMap();
975
- }, t;
976
- }
977
- var purify = createDOMPurify(), frontMatterRegex = /^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s, directiveRegex = /%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, anyCommentRegex = /\s*%%.*\n/gm, UnknownDiagramError = class extends Error {
978
- static #e = __name(this, "UnknownDiagramError");
979
- constructor(e) {
980
- super(e), this.name = "UnknownDiagramError";
981
- }
982
- }, detectors = {}, detectType = /* @__PURE__ */ __name(function(e, t) {
983
- e = e.replace(frontMatterRegex, "").replace(directiveRegex, "").replace(anyCommentRegex, "\n");
984
- for (let [n, { detector: r }] of Object.entries(detectors)) if (r(e, t)) return n;
985
- throw new UnknownDiagramError(`No diagram type detected matching given configuration for text: ${e}`);
986
- }, "detectType"), registerLazyLoadedDiagrams = /* @__PURE__ */ __name((...e) => {
987
- for (let { id: t, detector: n, loader: r } of e) addDetector(t, n, r);
988
- }, "registerLazyLoadedDiagrams"), addDetector = /* @__PURE__ */ __name((e, n, r) => {
989
- detectors[e] && log.warn(`Detector with key ${e} already exists. Overwriting.`), detectors[e] = {
990
- detector: n,
991
- loader: r
992
- }, log.debug(`Detector with key ${e} added${r ? " with loader" : ""}`);
993
- }, "addDetector"), getDiagramLoader = /* @__PURE__ */ __name((e) => detectors[e].loader, "getDiagramLoader"), assignWithDepth = /* @__PURE__ */ __name((e, t, { depth: n = 2, clobber: r = !1 } = {}) => {
994
- let i = {
995
- depth: n,
996
- clobber: r
997
- };
998
- return Array.isArray(t) && !Array.isArray(e) ? (t.forEach((t) => assignWithDepth(e, t, i)), e) : Array.isArray(t) && Array.isArray(e) ? (t.forEach((t) => {
999
- e.includes(t) || e.push(t);
1000
- }), e) : e === void 0 || n <= 0 ? typeof e == "object" && e && typeof t == "object" ? Object.assign(e, t) : t : (t !== void 0 && typeof e == "object" && typeof t == "object" && Object.keys(t).forEach((i) => {
1001
- typeof t[i] == "object" && (e[i] === void 0 || typeof e[i] == "object") ? (e[i] === void 0 && (e[i] = Array.isArray(t[i]) ? [] : {}), e[i] = assignWithDepth(e[i], t[i], {
1002
- depth: n - 1,
1003
- clobber: r
1004
- })) : (r || typeof e[i] != "object" && typeof t[i] != "object") && (e[i] = t[i]);
1005
- }), e);
1006
- }, "assignWithDepth"), assignWithDepth_default = assignWithDepth, oldAttributeBackgroundColorOdd = "#ffffff", oldAttributeBackgroundColorEven = "#f2f2f2", mkBorder = /* @__PURE__ */ __name((e, t) => t ? adjust_default(e, {
1007
- s: -40,
1008
- l: 10
1009
- }) : adjust_default(e, {
1010
- s: -40,
1011
- l: -10
1012
- }), "mkBorder"), Theme = class {
1013
- static #e = __name(this, "Theme");
1014
- constructor() {
1015
- this.background = "#f4f4f4", this.primaryColor = "#fff4dd", this.noteBkgColor = "#fff5ad", this.noteTextColor = "#333", this.THEME_COLOR_LIMIT = 12, this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px";
1016
- }
1017
- updateColors() {
1018
- if (this.primaryTextColor = this.primaryTextColor || (this.darkMode ? "#eee" : "#333"), this.secondaryColor = this.secondaryColor || adjust_default(this.primaryColor, { h: -120 }), this.tertiaryColor = this.tertiaryColor || adjust_default(this.primaryColor, {
1019
- h: 180,
1020
- l: 5
1021
- }), this.primaryBorderColor = this.primaryBorderColor || mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = this.secondaryBorderColor || mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = this.tertiaryBorderColor || mkBorder(this.tertiaryColor, this.darkMode), this.noteBorderColor = this.noteBorderColor || mkBorder(this.noteBkgColor, this.darkMode), this.noteBkgColor = this.noteBkgColor || "#fff5ad", this.noteTextColor = this.noteTextColor || "#333", this.secondaryTextColor = this.secondaryTextColor || invert_default(this.secondaryColor), this.tertiaryTextColor = this.tertiaryTextColor || invert_default(this.tertiaryColor), this.lineColor = this.lineColor || invert_default(this.background), this.arrowheadColor = this.arrowheadColor || invert_default(this.background), this.textColor = this.textColor || this.primaryTextColor, this.border2 = this.border2 || this.tertiaryBorderColor, this.nodeBkg = this.nodeBkg || this.primaryColor, this.mainBkg = this.mainBkg || this.primaryColor, this.nodeBorder = this.nodeBorder || this.primaryBorderColor, this.clusterBkg = this.clusterBkg || this.tertiaryColor, this.clusterBorder = this.clusterBorder || this.tertiaryBorderColor, this.defaultLinkColor = this.defaultLinkColor || this.lineColor, this.titleColor = this.titleColor || this.tertiaryTextColor, this.edgeLabelBackground = this.edgeLabelBackground || (this.darkMode ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.nodeTextColor = this.nodeTextColor || this.primaryTextColor, this.actorBorder = this.actorBorder || this.primaryBorderColor, this.actorBkg = this.actorBkg || this.mainBkg, this.actorTextColor = this.actorTextColor || this.primaryTextColor, this.actorLineColor = this.actorLineColor || this.actorBorder, this.labelBoxBkgColor = this.labelBoxBkgColor || this.actorBkg, this.signalColor = this.signalColor || this.textColor, this.signalTextColor = this.signalTextColor || this.textColor, this.labelBoxBorderColor = this.labelBoxBorderColor || this.actorBorder, this.labelTextColor = this.labelTextColor || this.actorTextColor, this.loopTextColor = this.loopTextColor || this.actorTextColor, this.activationBorderColor = this.activationBorderColor || darken_default(this.secondaryColor, 10), this.activationBkgColor = this.activationBkgColor || this.secondaryColor, this.sequenceNumberColor = this.sequenceNumberColor || invert_default(this.lineColor), this.sectionBkgColor = this.sectionBkgColor || this.tertiaryColor, this.altSectionBkgColor = this.altSectionBkgColor || "white", this.sectionBkgColor = this.sectionBkgColor || this.secondaryColor, this.sectionBkgColor2 = this.sectionBkgColor2 || this.primaryColor, this.excludeBkgColor = this.excludeBkgColor || "#eeeeee", this.taskBorderColor = this.taskBorderColor || this.primaryBorderColor, this.taskBkgColor = this.taskBkgColor || this.primaryColor, this.activeTaskBorderColor = this.activeTaskBorderColor || this.primaryColor, this.activeTaskBkgColor = this.activeTaskBkgColor || lighten_default(this.primaryColor, 23), this.gridColor = this.gridColor || "lightgrey", this.doneTaskBkgColor = this.doneTaskBkgColor || "lightgrey", this.doneTaskBorderColor = this.doneTaskBorderColor || "grey", this.critBorderColor = this.critBorderColor || "#ff8888", this.critBkgColor = this.critBkgColor || "red", this.todayLineColor = this.todayLineColor || "red", this.vertLineColor = this.vertLineColor || "navy", this.taskTextColor = this.taskTextColor || this.textColor, this.taskTextOutsideColor = this.taskTextOutsideColor || this.textColor, this.taskTextLightColor = this.taskTextLightColor || this.textColor, this.taskTextColor = this.taskTextColor || this.primaryTextColor, this.taskTextDarkColor = this.taskTextDarkColor || this.textColor, this.taskTextClickableColor = this.taskTextClickableColor || "#003163", this.personBorder = this.personBorder || this.primaryBorderColor, this.personBkg = this.personBkg || this.mainBkg, this.darkMode ? (this.rowOdd = this.rowOdd || darken_default(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || darken_default(this.mainBkg, 10)) : (this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(this.mainBkg, 5)), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || this.tertiaryColor, this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.specialStateColor = this.lineColor, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, {
1022
- h: 210,
1023
- l: 150
1024
- }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.darkMode) for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = darken_default(this["cScale" + e], 75);
1025
- else for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = darken_default(this["cScale" + e], 25);
1026
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || invert_default(this["cScale" + e]);
1027
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || lighten_default(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || darken_default(this["cScale" + e], 10);
1028
- this.scaleLabelColor = this.scaleLabelColor || this.labelTextColor;
1029
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1030
- let e = this.darkMode ? -4 : -1;
1031
- for (let t = 0; t < 5; t++) this["surface" + t] = this["surface" + t] || adjust_default(this.mainBkg, {
1032
- h: 180,
1033
- s: -15,
1034
- l: e * (5 + t * 3)
1035
- }), this["surfacePeer" + t] = this["surfacePeer" + t] || adjust_default(this.mainBkg, {
1036
- h: 180,
1037
- s: -15,
1038
- l: e * (8 + t * 3)
1039
- });
1040
- this.classText = this.classText || this.textColor, this.fillType0 = this.fillType0 || this.primaryColor, this.fillType1 = this.fillType1 || this.secondaryColor, this.fillType2 = this.fillType2 || adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = this.fillType3 || adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = this.fillType4 || adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = this.fillType5 || adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = this.fillType6 || adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = this.fillType7 || adjust_default(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -10 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -10 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
1041
- h: 60,
1042
- l: -10
1043
- }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
1044
- h: -60,
1045
- l: -10
1046
- }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
1047
- h: 120,
1048
- l: 0
1049
- }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
1050
- h: 60,
1051
- l: -20
1052
- }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
1053
- h: -60,
1054
- l: -20
1055
- }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
1056
- h: 120,
1057
- l: -10
1058
- }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.radar = {
1059
- axisColor: this.radar?.axisColor || this.lineColor,
1060
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1061
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1062
- curveOpacity: this.radar?.curveOpacity || .5,
1063
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1064
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1065
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1066
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
1067
- legendBoxSize: this.radar?.legendBoxSize || 12,
1068
- legendFontSize: this.radar?.legendFontSize || 12
1069
- }, this.archEdgeColor = this.archEdgeColor || "#777", this.archEdgeArrowColor = this.archEdgeArrowColor || "#777", this.archEdgeWidth = this.archEdgeWidth || "3", this.archGroupBorderColor = this.archGroupBorderColor || "#000", this.archGroupBorderWidth = this.archGroupBorderWidth || "2px", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1070
- r: 5,
1071
- g: 5,
1072
- b: 5
1073
- }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1074
- r: 10,
1075
- g: 10,
1076
- b: 10
1077
- }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1078
- r: 15,
1079
- g: 15,
1080
- b: 15
1081
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1082
- r: -5,
1083
- g: -5,
1084
- b: -5
1085
- }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1086
- r: -10,
1087
- g: -10,
1088
- b: -10
1089
- }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1090
- r: -15,
1091
- g: -15,
1092
- b: -15
1093
- }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1094
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1095
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1096
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1097
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1098
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1099
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1100
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1101
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1102
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1103
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1104
- plotColorPalette: this.xyChart?.plotColorPalette || "#FFF4DD,#FFD8B1,#FFA07A,#ECEFF1,#D6DBDF,#C3E0A8,#FFB6A4,#FFD74D,#738FA7,#FFFFF0"
1105
- }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.branchLabelColor = this.branchLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.gitBranchLabel0 = this.gitBranchLabel0 || this.branchLabelColor, this.gitBranchLabel1 = this.gitBranchLabel1 || this.branchLabelColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.branchLabelColor, this.gitBranchLabel3 = this.gitBranchLabel3 || this.branchLabelColor, this.gitBranchLabel4 = this.gitBranchLabel4 || this.branchLabelColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.branchLabelColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.branchLabelColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
1106
- }
1107
- calculate(e) {
1108
- if (typeof e != "object") {
1109
- this.updateColors();
1110
- return;
1111
- }
1112
- let t = Object.keys(e);
1113
- t.forEach((t) => {
1114
- this[t] = e[t];
1115
- }), this.updateColors(), t.forEach((t) => {
1116
- this[t] = e[t];
1117
- });
1118
- }
1119
- }, getThemeVariables = /* @__PURE__ */ __name((e) => {
1120
- let t = new Theme();
1121
- return t.calculate(e), t;
1122
- }, "getThemeVariables"), Theme2 = class {
1123
- static #e = __name(this, "Theme");
1124
- constructor() {
1125
- this.background = "#333", this.primaryColor = "#1f2020", this.secondaryColor = lighten_default(this.primaryColor, 16), this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = invert_default(this.background), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.mainBkg = "#1f2020", this.secondBkg = "calculated", this.mainContrastColor = "lightgrey", this.darkTextColor = lighten_default(invert_default("#323D47"), 10), this.lineColor = "calculated", this.border1 = "#ccc", this.border2 = rgba_default(255, 255, 255, .25), this.arrowheadColor = "calculated", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "#181818", this.textColor = "#ccc", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#F9FFFE", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "calculated", this.activationBkgColor = "calculated", this.sequenceNumberColor = "black", this.sectionBkgColor = darken_default("#EAE8D9", 30), this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "#EAE8D9", this.excludeBkgColor = darken_default(this.sectionBkgColor, 10), this.taskBorderColor = rgba_default(255, 255, 255, 70), this.taskBkgColor = "calculated", this.taskTextColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = rgba_default(255, 255, 255, 50), this.activeTaskBkgColor = "#81B1DB", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "grey", this.critBorderColor = "#E83737", this.critBkgColor = "#E83737", this.taskTextDarkColor = "calculated", this.todayLineColor = "#DB5757", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 5) || "#ffffff", this.rowEven = this.rowEven || darken_default(this.mainBkg, 10), this.labelColor = "calculated", this.errorBkgColor = "#a44141", this.errorTextColor = "#ddd";
1126
- }
1127
- updateColors() {
1128
- this.secondBkg = lighten_default(this.mainBkg, 16), this.lineColor = this.mainContrastColor, this.arrowheadColor = this.mainContrastColor, this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.edgeLabelBackground = lighten_default(this.labelBackground, 25), this.actorBorder = this.border1, this.actorBkg = this.mainBkg, this.actorTextColor = this.mainContrastColor, this.actorLineColor = this.actorBorder, this.signalColor = this.mainContrastColor, this.signalTextColor = this.mainContrastColor, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.mainContrastColor, this.loopTextColor = this.mainContrastColor, this.noteBorderColor = this.secondaryBorderColor, this.noteBkgColor = this.secondBkg, this.noteTextColor = this.secondaryTextColor, this.activationBorderColor = this.border1, this.activationBkgColor = this.secondBkg, this.altSectionBkgColor = this.background, this.taskBkgColor = lighten_default(this.mainBkg, 23), this.taskTextColor = this.darkTextColor, this.taskTextLightColor = this.mainContrastColor, this.taskTextOutsideColor = this.taskTextLightColor, this.gridColor = this.mainContrastColor, this.doneTaskBkgColor = this.mainContrastColor, this.taskTextDarkColor = this.darkTextColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#555", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#f4f4f4", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 }), this.cScale1 = this.cScale1 || "#0b0000", this.cScale2 = this.cScale2 || "#4d1037", this.cScale3 = this.cScale3 || "#3f5258", this.cScale4 = this.cScale4 || "#4f2f1b", this.cScale5 = this.cScale5 || "#6e0a0a", this.cScale6 = this.cScale6 || "#3b0048", this.cScale7 = this.cScale7 || "#995a01", this.cScale8 = this.cScale8 || "#154706", this.cScale9 = this.cScale9 || "#161722", this.cScale10 = this.cScale10 || "#00296f", this.cScale11 = this.cScale11 || "#01629c", this.cScale12 = this.cScale12 || "#010029", this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 });
1129
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || invert_default(this["cScale" + e]);
1130
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScalePeer" + e] = this["cScalePeer" + e] || lighten_default(this["cScale" + e], 10);
1131
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, {
1132
- h: 30,
1133
- s: -30,
1134
- l: -(-10 + e * 4)
1135
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, {
1136
- h: 30,
1137
- s: -30,
1138
- l: -(-7 + e * 4)
1139
- });
1140
- this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor);
1141
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1142
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1143
- this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1144
- r: 5,
1145
- g: 5,
1146
- b: 5
1147
- }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1148
- r: 10,
1149
- g: 10,
1150
- b: 10
1151
- }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1152
- r: 15,
1153
- g: 15,
1154
- b: 15
1155
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1156
- r: -5,
1157
- g: -5,
1158
- b: -5
1159
- }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1160
- r: -10,
1161
- g: -10,
1162
- b: -10
1163
- }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1164
- r: -15,
1165
- g: -15,
1166
- b: -15
1167
- }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1168
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1169
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1170
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1171
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1172
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1173
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1174
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1175
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1176
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1177
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1178
- plotColorPalette: this.xyChart?.plotColorPalette || "#3498db,#2ecc71,#e74c3c,#f1c40f,#bdc3c7,#ffffff,#34495e,#9b59b6,#1abc9c,#e67e22"
1179
- }, this.packet = {
1180
- startByteColor: this.primaryTextColor,
1181
- endByteColor: this.primaryTextColor,
1182
- labelColor: this.primaryTextColor,
1183
- titleColor: this.primaryTextColor,
1184
- blockStrokeColor: this.primaryTextColor,
1185
- blockFillColor: this.background
1186
- }, this.radar = {
1187
- axisColor: this.radar?.axisColor || this.lineColor,
1188
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1189
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1190
- curveOpacity: this.radar?.curveOpacity || .5,
1191
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1192
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1193
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1194
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
1195
- legendBoxSize: this.radar?.legendBoxSize || 12,
1196
- legendFontSize: this.radar?.legendFontSize || 12
1197
- }, this.classText = this.primaryTextColor, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || (this.darkMode ? darken_default(this.secondaryColor, 30) : this.secondaryColor), this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = lighten_default(this.secondaryColor, 20), this.git1 = lighten_default(this.pie2 || this.secondaryColor, 20), this.git2 = lighten_default(this.pie3 || this.tertiaryColor, 20), this.git3 = lighten_default(this.pie4 || adjust_default(this.primaryColor, { h: -30 }), 20), this.git4 = lighten_default(this.pie5 || adjust_default(this.primaryColor, { h: -60 }), 20), this.git5 = lighten_default(this.pie6 || adjust_default(this.primaryColor, { h: -90 }), 10), this.git6 = lighten_default(this.pie7 || adjust_default(this.primaryColor, { h: 60 }), 10), this.git7 = lighten_default(this.pie8 || adjust_default(this.primaryColor, { h: 120 }), 20), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || lighten_default(this.background, 12), this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || lighten_default(this.background, 2), this.nodeBorder = this.nodeBorder || "#999";
1198
- }
1199
- calculate(e) {
1200
- if (typeof e != "object") {
1201
- this.updateColors();
1202
- return;
1203
- }
1204
- let t = Object.keys(e);
1205
- t.forEach((t) => {
1206
- this[t] = e[t];
1207
- }), this.updateColors(), t.forEach((t) => {
1208
- this[t] = e[t];
1209
- });
1210
- }
1211
- }, getThemeVariables2 = /* @__PURE__ */ __name((e) => {
1212
- let t = new Theme2();
1213
- return t.calculate(e), t;
1214
- }, "getThemeVariables"), Theme3 = class {
1215
- static #e = __name(this, "Theme");
1216
- constructor() {
1217
- this.background = "#f4f4f4", this.primaryColor = "#ECECFF", this.secondaryColor = adjust_default(this.primaryColor, { h: 120 }), this.secondaryColor = "#ffffde", this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.background = "white", this.mainBkg = "#ECECFF", this.secondBkg = "#ffffde", this.lineColor = "#333333", this.border1 = "#9370DB", this.border2 = "#aaaa33", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.labelBackground = "rgba(232,232,232, 0.8)", this.textColor = "#333", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "calculated", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "calculated", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "calculated", this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = this.taskTextDarkColor, this.taskTextClickableColor = "calculated", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBorderColor = "calculated", this.critBkgColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.sectionBkgColor = rgba_default(102, 102, 255, .49), this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#fff400", this.taskBorderColor = "#534fbc", this.taskBkgColor = "#8a90dd", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "#534fbc", this.activeTaskBkgColor = "#bfc7ff", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "navy", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = "calculated", this.rowEven = "calculated", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222", this.updateColors();
1218
- }
1219
- updateColors() {
1220
- this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
1221
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = darken_default(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || darken_default(this["cScale" + e], 25);
1222
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || adjust_default(this["cScale" + e], { h: 180 });
1223
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, {
1224
- h: 30,
1225
- l: -(5 + e * 5)
1226
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, {
1227
- h: 30,
1228
- l: -(7 + e * 5)
1229
- });
1230
- if (this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor, this.labelTextColor !== "calculated") {
1231
- this.cScaleLabel0 = this.cScaleLabel0 || invert_default(this.labelTextColor), this.cScaleLabel3 = this.cScaleLabel3 || invert_default(this.labelTextColor);
1232
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.labelTextColor;
1233
- }
1234
- this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.textColor, this.edgeLabelBackground = this.labelBackground, this.actorBorder = lighten_default(this.border1, 23), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.signalColor = this.textColor, this.signalTextColor = this.textColor, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || lighten_default(this.primaryColor, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(this.primaryColor, 1), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.nodeBorder, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || adjust_default(this.tertiaryColor, { l: -40 }), this.pie4 = this.pie4 || adjust_default(this.primaryColor, { l: -10 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, { l: -20 }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
1235
- h: 60,
1236
- l: -20
1237
- }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
1238
- h: -60,
1239
- l: -40
1240
- }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
1241
- h: 120,
1242
- l: -40
1243
- }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
1244
- h: 60,
1245
- l: -40
1246
- }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
1247
- h: -90,
1248
- l: -40
1249
- }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
1250
- h: 120,
1251
- l: -30
1252
- }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1253
- r: 5,
1254
- g: 5,
1255
- b: 5
1256
- }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1257
- r: 10,
1258
- g: 10,
1259
- b: 10
1260
- }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1261
- r: 15,
1262
- g: 15,
1263
- b: 15
1264
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1265
- r: -5,
1266
- g: -5,
1267
- b: -5
1268
- }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1269
- r: -10,
1270
- g: -10,
1271
- b: -10
1272
- }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1273
- r: -15,
1274
- g: -15,
1275
- b: -15
1276
- }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.radar = {
1277
- axisColor: this.radar?.axisColor || this.lineColor,
1278
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1279
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1280
- curveOpacity: this.radar?.curveOpacity || .5,
1281
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1282
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1283
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1284
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
1285
- legendBoxSize: this.radar?.legendBoxSize || 12,
1286
- legendFontSize: this.radar?.legendFontSize || 12
1287
- }, this.xyChart = {
1288
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1289
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1290
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1291
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1292
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1293
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1294
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1295
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1296
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1297
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1298
- plotColorPalette: this.xyChart?.plotColorPalette || "#ECECFF,#8493A6,#FFC3A0,#DCDDE1,#B8E994,#D1A36F,#C3CDE6,#FFB6C1,#496078,#F8F3E3"
1299
- }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.labelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || darken_default(invert_default(this.git0), 25), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
1300
- }
1301
- calculate(e) {
1302
- if (Object.keys(this).forEach((e) => {
1303
- this[e] === "calculated" && (this[e] = void 0);
1304
- }), typeof e != "object") {
1305
- this.updateColors();
1306
- return;
1307
- }
1308
- let t = Object.keys(e);
1309
- t.forEach((t) => {
1310
- this[t] = e[t];
1311
- }), this.updateColors(), t.forEach((t) => {
1312
- this[t] = e[t];
1313
- });
1314
- }
1315
- }, getThemeVariables3 = /* @__PURE__ */ __name((e) => {
1316
- let t = new Theme3();
1317
- return t.calculate(e), t;
1318
- }, "getThemeVariables"), Theme4 = class {
1319
- static #e = __name(this, "Theme");
1320
- constructor() {
1321
- this.background = "#f4f4f4", this.primaryColor = "#cde498", this.secondaryColor = "#cdffb2", this.background = "white", this.mainBkg = "#cde498", this.secondBkg = "#cdffb2", this.lineColor = "green", this.border1 = "#13540c", this.border2 = "#6eaa49", this.arrowheadColor = "green", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.tertiaryColor = lighten_default("#cde498", 10), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.primaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "#333", this.edgeLabelBackground = "#e8e8e8", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "black", this.actorLineColor = "calculated", this.signalColor = "#333", this.signalTextColor = "#333", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "#326932", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "#fff5ad", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "#6eaa49", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "#6eaa49", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "#487e3a", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "black", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "lightgrey", this.doneTaskBkgColor = "lightgrey", this.doneTaskBorderColor = "grey", this.critBorderColor = "#ff8888", this.critBkgColor = "red", this.todayLineColor = "red", this.vertLineColor = "#00BFFF", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
1322
- }
1323
- updateColors() {
1324
- this.actorBorder = darken_default(this.mainBkg, 20), this.actorBkg = this.mainBkg, this.labelBoxBkgColor = this.actorBkg, this.labelTextColor = this.actorTextColor, this.loopTextColor = this.actorTextColor, this.noteBorderColor = this.border2, this.noteTextColor = this.actorTextColor, this.actorLineColor = this.actorBorder, this.cScale0 = this.cScale0 || this.primaryColor, this.cScale1 = this.cScale1 || this.secondaryColor, this.cScale2 = this.cScale2 || this.tertiaryColor, this.cScale3 = this.cScale3 || adjust_default(this.primaryColor, { h: 30 }), this.cScale4 = this.cScale4 || adjust_default(this.primaryColor, { h: 60 }), this.cScale5 = this.cScale5 || adjust_default(this.primaryColor, { h: 90 }), this.cScale6 = this.cScale6 || adjust_default(this.primaryColor, { h: 120 }), this.cScale7 = this.cScale7 || adjust_default(this.primaryColor, { h: 150 }), this.cScale8 = this.cScale8 || adjust_default(this.primaryColor, { h: 210 }), this.cScale9 = this.cScale9 || adjust_default(this.primaryColor, { h: 270 }), this.cScale10 = this.cScale10 || adjust_default(this.primaryColor, { h: 300 }), this.cScale11 = this.cScale11 || adjust_default(this.primaryColor, { h: 330 }), this.cScalePeer1 = this.cScalePeer1 || darken_default(this.secondaryColor, 45), this.cScalePeer2 = this.cScalePeer2 || darken_default(this.tertiaryColor, 40);
1325
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScale" + e] = darken_default(this["cScale" + e], 10), this["cScalePeer" + e] = this["cScalePeer" + e] || darken_default(this["cScale" + e], 25);
1326
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || adjust_default(this["cScale" + e], { h: 180 });
1327
- this.scaleLabelColor = this.scaleLabelColor !== "calculated" && this.scaleLabelColor ? this.scaleLabelColor : this.labelTextColor;
1328
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1329
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, {
1330
- h: 30,
1331
- s: -30,
1332
- l: -(5 + e * 5)
1333
- }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, {
1334
- h: 30,
1335
- s: -30,
1336
- l: -(8 + e * 5)
1337
- });
1338
- this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.taskBorderColor = this.border1, this.taskTextColor = this.taskTextLightColor, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || lighten_default(this.mainBkg, 20), this.transitionColor = this.transitionColor || this.lineColor, this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f0f0f0", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.compositeBorder = this.compositeBorder || this.nodeBorder, this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = this.lineColor, this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.transitionColor = this.transitionColor || this.lineColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 }), this.pie1 = this.pie1 || this.primaryColor, this.pie2 = this.pie2 || this.secondaryColor, this.pie3 = this.pie3 || this.tertiaryColor, this.pie4 = this.pie4 || adjust_default(this.primaryColor, { l: -30 }), this.pie5 = this.pie5 || adjust_default(this.secondaryColor, { l: -30 }), this.pie6 = this.pie6 || adjust_default(this.tertiaryColor, {
1339
- h: 40,
1340
- l: -40
1341
- }), this.pie7 = this.pie7 || adjust_default(this.primaryColor, {
1342
- h: 60,
1343
- l: -10
1344
- }), this.pie8 = this.pie8 || adjust_default(this.primaryColor, {
1345
- h: -60,
1346
- l: -10
1347
- }), this.pie9 = this.pie9 || adjust_default(this.primaryColor, {
1348
- h: 120,
1349
- l: 0
1350
- }), this.pie10 = this.pie10 || adjust_default(this.primaryColor, {
1351
- h: 60,
1352
- l: -50
1353
- }), this.pie11 = this.pie11 || adjust_default(this.primaryColor, {
1354
- h: -60,
1355
- l: -50
1356
- }), this.pie12 = this.pie12 || adjust_default(this.primaryColor, {
1357
- h: 120,
1358
- l: -50
1359
- }), this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1360
- r: 5,
1361
- g: 5,
1362
- b: 5
1363
- }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1364
- r: 10,
1365
- g: 10,
1366
- b: 10
1367
- }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1368
- r: 15,
1369
- g: 15,
1370
- b: 15
1371
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1372
- r: -5,
1373
- g: -5,
1374
- b: -5
1375
- }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1376
- r: -10,
1377
- g: -10,
1378
- b: -10
1379
- }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1380
- r: -15,
1381
- g: -15,
1382
- b: -15
1383
- }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.packet = {
1384
- startByteColor: this.primaryTextColor,
1385
- endByteColor: this.primaryTextColor,
1386
- labelColor: this.primaryTextColor,
1387
- titleColor: this.primaryTextColor,
1388
- blockStrokeColor: this.primaryTextColor,
1389
- blockFillColor: this.mainBkg
1390
- }, this.radar = {
1391
- axisColor: this.radar?.axisColor || this.lineColor,
1392
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1393
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1394
- curveOpacity: this.radar?.curveOpacity || .5,
1395
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1396
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1397
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1398
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
1399
- legendBoxSize: this.radar?.legendBoxSize || 12,
1400
- legendFontSize: this.radar?.legendFontSize || 12
1401
- }, this.xyChart = {
1402
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1403
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1404
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1405
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1406
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1407
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1408
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1409
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1410
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1411
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1412
- plotColorPalette: this.xyChart?.plotColorPalette || "#CDE498,#FF6B6B,#A0D2DB,#D7BDE2,#F0F0F0,#FFC3A0,#7FD8BE,#FF9A8B,#FAF3E0,#FFF176"
1413
- }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = this.git0 || this.primaryColor, this.git1 = this.git1 || this.secondaryColor, this.git2 = this.git2 || this.tertiaryColor, this.git3 = this.git3 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.git4 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.git5 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.git6 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.git7 || adjust_default(this.primaryColor, { h: 120 }), this.darkMode ? (this.git0 = lighten_default(this.git0, 25), this.git1 = lighten_default(this.git1, 25), this.git2 = lighten_default(this.git2, 25), this.git3 = lighten_default(this.git3, 25), this.git4 = lighten_default(this.git4, 25), this.git5 = lighten_default(this.git5, 25), this.git6 = lighten_default(this.git6, 25), this.git7 = lighten_default(this.git7, 25)) : (this.git0 = darken_default(this.git0, 25), this.git1 = darken_default(this.git1, 25), this.git2 = darken_default(this.git2, 25), this.git3 = darken_default(this.git3, 25), this.git4 = darken_default(this.git4, 25), this.git5 = darken_default(this.git5, 25), this.git6 = darken_default(this.git6, 25), this.git7 = darken_default(this.git7, 25)), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.gitBranchLabel0 = this.gitBranchLabel0 || invert_default(this.labelTextColor), this.gitBranchLabel1 = this.gitBranchLabel1 || this.labelTextColor, this.gitBranchLabel2 = this.gitBranchLabel2 || this.labelTextColor, this.gitBranchLabel3 = this.gitBranchLabel3 || invert_default(this.labelTextColor), this.gitBranchLabel4 = this.gitBranchLabel4 || this.labelTextColor, this.gitBranchLabel5 = this.gitBranchLabel5 || this.labelTextColor, this.gitBranchLabel6 = this.gitBranchLabel6 || this.labelTextColor, this.gitBranchLabel7 = this.gitBranchLabel7 || this.labelTextColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
1414
- }
1415
- calculate(e) {
1416
- if (typeof e != "object") {
1417
- this.updateColors();
1418
- return;
1419
- }
1420
- let t = Object.keys(e);
1421
- t.forEach((t) => {
1422
- this[t] = e[t];
1423
- }), this.updateColors(), t.forEach((t) => {
1424
- this[t] = e[t];
1425
- });
1426
- }
1427
- }, getThemeVariables4 = /* @__PURE__ */ __name((e) => {
1428
- let t = new Theme4();
1429
- return t.calculate(e), t;
1430
- }, "getThemeVariables"), Theme5 = class {
1431
- static #e = __name(this, "Theme");
1432
- constructor() {
1433
- this.primaryColor = "#eee", this.contrast = "#707070", this.secondaryColor = lighten_default(this.contrast, 55), this.background = "#ffffff", this.tertiaryColor = adjust_default(this.primaryColor, { h: -160 }), this.primaryBorderColor = mkBorder(this.primaryColor, this.darkMode), this.secondaryBorderColor = mkBorder(this.secondaryColor, this.darkMode), this.tertiaryBorderColor = mkBorder(this.tertiaryColor, this.darkMode), this.primaryTextColor = invert_default(this.primaryColor), this.secondaryTextColor = invert_default(this.secondaryColor), this.tertiaryTextColor = invert_default(this.tertiaryColor), this.lineColor = invert_default(this.background), this.textColor = invert_default(this.background), this.mainBkg = "#eee", this.secondBkg = "calculated", this.lineColor = "#666", this.border1 = "#999", this.border2 = "calculated", this.note = "#ffa", this.text = "#333", this.critical = "#d42", this.done = "#bbb", this.arrowheadColor = "#333333", this.fontFamily = "\"trebuchet ms\", verdana, arial, sans-serif", this.fontSize = "16px", this.THEME_COLOR_LIMIT = 12, this.nodeBkg = "calculated", this.nodeBorder = "calculated", this.clusterBkg = "calculated", this.clusterBorder = "calculated", this.defaultLinkColor = "calculated", this.titleColor = "calculated", this.edgeLabelBackground = "white", this.actorBorder = "calculated", this.actorBkg = "calculated", this.actorTextColor = "calculated", this.actorLineColor = this.actorBorder, this.signalColor = "calculated", this.signalTextColor = "calculated", this.labelBoxBkgColor = "calculated", this.labelBoxBorderColor = "calculated", this.labelTextColor = "calculated", this.loopTextColor = "calculated", this.noteBorderColor = "calculated", this.noteBkgColor = "calculated", this.noteTextColor = "calculated", this.activationBorderColor = "#666", this.activationBkgColor = "#f4f4f4", this.sequenceNumberColor = "white", this.sectionBkgColor = "calculated", this.altSectionBkgColor = "white", this.sectionBkgColor2 = "calculated", this.excludeBkgColor = "#eeeeee", this.taskBorderColor = "calculated", this.taskBkgColor = "calculated", this.taskTextLightColor = "white", this.taskTextColor = "calculated", this.taskTextDarkColor = "calculated", this.taskTextOutsideColor = "calculated", this.taskTextClickableColor = "#003163", this.activeTaskBorderColor = "calculated", this.activeTaskBkgColor = "calculated", this.gridColor = "calculated", this.doneTaskBkgColor = "calculated", this.doneTaskBorderColor = "calculated", this.critBkgColor = "calculated", this.critBorderColor = "calculated", this.todayLineColor = "calculated", this.vertLineColor = "calculated", this.personBorder = this.primaryBorderColor, this.personBkg = this.mainBkg, this.archEdgeColor = "calculated", this.archEdgeArrowColor = "calculated", this.archEdgeWidth = "3", this.archGroupBorderColor = this.primaryBorderColor, this.archGroupBorderWidth = "2px", this.rowOdd = this.rowOdd || lighten_default(this.mainBkg, 75) || "#ffffff", this.rowEven = this.rowEven || "#f4f4f4", this.labelColor = "black", this.errorBkgColor = "#552222", this.errorTextColor = "#552222";
1434
- }
1435
- updateColors() {
1436
- this.secondBkg = lighten_default(this.contrast, 55), this.border2 = this.contrast, this.actorBorder = lighten_default(this.border1, 23), this.actorBkg = this.mainBkg, this.actorTextColor = this.text, this.actorLineColor = this.actorBorder, this.signalColor = this.text, this.signalTextColor = this.text, this.labelBoxBkgColor = this.actorBkg, this.labelBoxBorderColor = this.actorBorder, this.labelTextColor = this.text, this.loopTextColor = this.text, this.noteBorderColor = "#999", this.noteBkgColor = "#666", this.noteTextColor = "#fff", this.cScale0 = this.cScale0 || "#555", this.cScale1 = this.cScale1 || "#F4F4F4", this.cScale2 = this.cScale2 || "#555", this.cScale3 = this.cScale3 || "#BBB", this.cScale4 = this.cScale4 || "#777", this.cScale5 = this.cScale5 || "#999", this.cScale6 = this.cScale6 || "#DDD", this.cScale7 = this.cScale7 || "#FFF", this.cScale8 = this.cScale8 || "#DDD", this.cScale9 = this.cScale9 || "#BBB", this.cScale10 = this.cScale10 || "#999", this.cScale11 = this.cScale11 || "#777";
1437
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleInv" + e] = this["cScaleInv" + e] || invert_default(this["cScale" + e]);
1438
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this.darkMode ? this["cScalePeer" + e] = this["cScalePeer" + e] || lighten_default(this["cScale" + e], 10) : this["cScalePeer" + e] = this["cScalePeer" + e] || darken_default(this["cScale" + e], 10);
1439
- this.scaleLabelColor = this.scaleLabelColor || (this.darkMode ? "black" : this.labelTextColor), this.cScaleLabel0 = this.cScaleLabel0 || this.cScale1, this.cScaleLabel2 = this.cScaleLabel2 || this.cScale1;
1440
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["cScaleLabel" + e] = this["cScaleLabel" + e] || this.scaleLabelColor;
1441
- for (let e = 0; e < 5; e++) this["surface" + e] = this["surface" + e] || adjust_default(this.mainBkg, { l: -(5 + e * 5) }), this["surfacePeer" + e] = this["surfacePeer" + e] || adjust_default(this.mainBkg, { l: -(8 + e * 5) });
1442
- this.nodeBkg = this.mainBkg, this.nodeBorder = this.border1, this.clusterBkg = this.secondBkg, this.clusterBorder = this.border2, this.defaultLinkColor = this.lineColor, this.titleColor = this.text, this.sectionBkgColor = lighten_default(this.contrast, 30), this.sectionBkgColor2 = lighten_default(this.contrast, 30), this.taskBorderColor = darken_default(this.contrast, 10), this.taskBkgColor = this.contrast, this.taskTextColor = this.taskTextLightColor, this.taskTextDarkColor = this.text, this.taskTextOutsideColor = this.taskTextDarkColor, this.activeTaskBorderColor = this.taskBorderColor, this.activeTaskBkgColor = this.mainBkg, this.gridColor = lighten_default(this.border1, 30), this.doneTaskBkgColor = this.done, this.doneTaskBorderColor = this.lineColor, this.critBkgColor = this.critical, this.critBorderColor = darken_default(this.critBkgColor, 10), this.todayLineColor = this.critBkgColor, this.vertLineColor = this.critBkgColor, this.archEdgeColor = this.lineColor, this.archEdgeArrowColor = this.lineColor, this.transitionColor = this.transitionColor || "#000", this.transitionLabelColor = this.transitionLabelColor || this.textColor, this.stateLabelColor = this.stateLabelColor || this.stateBkg || this.primaryTextColor, this.stateBkg = this.stateBkg || this.mainBkg, this.labelBackgroundColor = this.labelBackgroundColor || this.stateBkg, this.compositeBackground = this.compositeBackground || this.background || this.tertiaryColor, this.altBackground = this.altBackground || "#f4f4f4", this.compositeTitleBackground = this.compositeTitleBackground || this.mainBkg, this.stateBorder = this.stateBorder || "#000", this.innerEndBackground = this.primaryBorderColor, this.specialStateColor = "#222", this.errorBkgColor = this.errorBkgColor || this.tertiaryColor, this.errorTextColor = this.errorTextColor || this.tertiaryTextColor, this.classText = this.primaryTextColor, this.fillType0 = this.primaryColor, this.fillType1 = this.secondaryColor, this.fillType2 = adjust_default(this.primaryColor, { h: 64 }), this.fillType3 = adjust_default(this.secondaryColor, { h: 64 }), this.fillType4 = adjust_default(this.primaryColor, { h: -64 }), this.fillType5 = adjust_default(this.secondaryColor, { h: -64 }), this.fillType6 = adjust_default(this.primaryColor, { h: 128 }), this.fillType7 = adjust_default(this.secondaryColor, { h: 128 });
1443
- for (let e = 0; e < this.THEME_COLOR_LIMIT; e++) this["pie" + e] = this["cScale" + e];
1444
- this.pie12 = this.pie0, this.pieTitleTextSize = this.pieTitleTextSize || "25px", this.pieTitleTextColor = this.pieTitleTextColor || this.taskTextDarkColor, this.pieSectionTextSize = this.pieSectionTextSize || "17px", this.pieSectionTextColor = this.pieSectionTextColor || this.textColor, this.pieLegendTextSize = this.pieLegendTextSize || "17px", this.pieLegendTextColor = this.pieLegendTextColor || this.taskTextDarkColor, this.pieStrokeColor = this.pieStrokeColor || "black", this.pieStrokeWidth = this.pieStrokeWidth || "2px", this.pieOuterStrokeWidth = this.pieOuterStrokeWidth || "2px", this.pieOuterStrokeColor = this.pieOuterStrokeColor || "black", this.pieOpacity = this.pieOpacity || "0.7", this.quadrant1Fill = this.quadrant1Fill || this.primaryColor, this.quadrant2Fill = this.quadrant2Fill || adjust_default(this.primaryColor, {
1445
- r: 5,
1446
- g: 5,
1447
- b: 5
1448
- }), this.quadrant3Fill = this.quadrant3Fill || adjust_default(this.primaryColor, {
1449
- r: 10,
1450
- g: 10,
1451
- b: 10
1452
- }), this.quadrant4Fill = this.quadrant4Fill || adjust_default(this.primaryColor, {
1453
- r: 15,
1454
- g: 15,
1455
- b: 15
1456
- }), this.quadrant1TextFill = this.quadrant1TextFill || this.primaryTextColor, this.quadrant2TextFill = this.quadrant2TextFill || adjust_default(this.primaryTextColor, {
1457
- r: -5,
1458
- g: -5,
1459
- b: -5
1460
- }), this.quadrant3TextFill = this.quadrant3TextFill || adjust_default(this.primaryTextColor, {
1461
- r: -10,
1462
- g: -10,
1463
- b: -10
1464
- }), this.quadrant4TextFill = this.quadrant4TextFill || adjust_default(this.primaryTextColor, {
1465
- r: -15,
1466
- g: -15,
1467
- b: -15
1468
- }), this.quadrantPointFill = this.quadrantPointFill || is_dark_default(this.quadrant1Fill) ? lighten_default(this.quadrant1Fill) : darken_default(this.quadrant1Fill), this.quadrantPointTextFill = this.quadrantPointTextFill || this.primaryTextColor, this.quadrantXAxisTextFill = this.quadrantXAxisTextFill || this.primaryTextColor, this.quadrantYAxisTextFill = this.quadrantYAxisTextFill || this.primaryTextColor, this.quadrantInternalBorderStrokeFill = this.quadrantInternalBorderStrokeFill || this.primaryBorderColor, this.quadrantExternalBorderStrokeFill = this.quadrantExternalBorderStrokeFill || this.primaryBorderColor, this.quadrantTitleFill = this.quadrantTitleFill || this.primaryTextColor, this.xyChart = {
1469
- backgroundColor: this.xyChart?.backgroundColor || this.background,
1470
- titleColor: this.xyChart?.titleColor || this.primaryTextColor,
1471
- xAxisTitleColor: this.xyChart?.xAxisTitleColor || this.primaryTextColor,
1472
- xAxisLabelColor: this.xyChart?.xAxisLabelColor || this.primaryTextColor,
1473
- xAxisTickColor: this.xyChart?.xAxisTickColor || this.primaryTextColor,
1474
- xAxisLineColor: this.xyChart?.xAxisLineColor || this.primaryTextColor,
1475
- yAxisTitleColor: this.xyChart?.yAxisTitleColor || this.primaryTextColor,
1476
- yAxisLabelColor: this.xyChart?.yAxisLabelColor || this.primaryTextColor,
1477
- yAxisTickColor: this.xyChart?.yAxisTickColor || this.primaryTextColor,
1478
- yAxisLineColor: this.xyChart?.yAxisLineColor || this.primaryTextColor,
1479
- plotColorPalette: this.xyChart?.plotColorPalette || "#EEE,#6BB8E4,#8ACB88,#C7ACD6,#E8DCC2,#FFB2A8,#FFF380,#7E8D91,#FFD8B1,#FAF3E0"
1480
- }, this.radar = {
1481
- axisColor: this.radar?.axisColor || this.lineColor,
1482
- axisStrokeWidth: this.radar?.axisStrokeWidth || 2,
1483
- axisLabelFontSize: this.radar?.axisLabelFontSize || 12,
1484
- curveOpacity: this.radar?.curveOpacity || .5,
1485
- curveStrokeWidth: this.radar?.curveStrokeWidth || 2,
1486
- graticuleColor: this.radar?.graticuleColor || "#DEDEDE",
1487
- graticuleStrokeWidth: this.radar?.graticuleStrokeWidth || 1,
1488
- graticuleOpacity: this.radar?.graticuleOpacity || .3,
1489
- legendBoxSize: this.radar?.legendBoxSize || 12,
1490
- legendFontSize: this.radar?.legendFontSize || 12
1491
- }, this.requirementBackground = this.requirementBackground || this.primaryColor, this.requirementBorderColor = this.requirementBorderColor || this.primaryBorderColor, this.requirementBorderSize = this.requirementBorderSize || "1", this.requirementTextColor = this.requirementTextColor || this.primaryTextColor, this.relationColor = this.relationColor || this.lineColor, this.relationLabelBackground = this.relationLabelBackground || this.edgeLabelBackground, this.relationLabelColor = this.relationLabelColor || this.actorTextColor, this.git0 = darken_default(this.pie1, 25) || this.primaryColor, this.git1 = this.pie2 || this.secondaryColor, this.git2 = this.pie3 || this.tertiaryColor, this.git3 = this.pie4 || adjust_default(this.primaryColor, { h: -30 }), this.git4 = this.pie5 || adjust_default(this.primaryColor, { h: -60 }), this.git5 = this.pie6 || adjust_default(this.primaryColor, { h: -90 }), this.git6 = this.pie7 || adjust_default(this.primaryColor, { h: 60 }), this.git7 = this.pie8 || adjust_default(this.primaryColor, { h: 120 }), this.gitInv0 = this.gitInv0 || invert_default(this.git0), this.gitInv1 = this.gitInv1 || invert_default(this.git1), this.gitInv2 = this.gitInv2 || invert_default(this.git2), this.gitInv3 = this.gitInv3 || invert_default(this.git3), this.gitInv4 = this.gitInv4 || invert_default(this.git4), this.gitInv5 = this.gitInv5 || invert_default(this.git5), this.gitInv6 = this.gitInv6 || invert_default(this.git6), this.gitInv7 = this.gitInv7 || invert_default(this.git7), this.branchLabelColor = this.branchLabelColor || this.labelTextColor, this.gitBranchLabel0 = this.branchLabelColor, this.gitBranchLabel1 = "white", this.gitBranchLabel2 = this.branchLabelColor, this.gitBranchLabel3 = "white", this.gitBranchLabel4 = this.branchLabelColor, this.gitBranchLabel5 = this.branchLabelColor, this.gitBranchLabel6 = this.branchLabelColor, this.gitBranchLabel7 = this.branchLabelColor, this.tagLabelColor = this.tagLabelColor || this.primaryTextColor, this.tagLabelBackground = this.tagLabelBackground || this.primaryColor, this.tagLabelBorder = this.tagBorder || this.primaryBorderColor, this.tagLabelFontSize = this.tagLabelFontSize || "10px", this.commitLabelColor = this.commitLabelColor || this.secondaryTextColor, this.commitLabelBackground = this.commitLabelBackground || this.secondaryColor, this.commitLabelFontSize = this.commitLabelFontSize || "10px", this.attributeBackgroundColorOdd = this.attributeBackgroundColorOdd || oldAttributeBackgroundColorOdd, this.attributeBackgroundColorEven = this.attributeBackgroundColorEven || oldAttributeBackgroundColorEven;
1492
- }
1493
- calculate(e) {
1494
- if (typeof e != "object") {
1495
- this.updateColors();
1496
- return;
1497
- }
1498
- let t = Object.keys(e);
1499
- t.forEach((t) => {
1500
- this[t] = e[t];
1501
- }), this.updateColors(), t.forEach((t) => {
1502
- this[t] = e[t];
1503
- });
1504
- }
1505
- }, themes_default = {
1506
- base: { getThemeVariables },
1507
- dark: { getThemeVariables: getThemeVariables2 },
1508
- default: { getThemeVariables: getThemeVariables3 },
1509
- forest: { getThemeVariables: getThemeVariables4 },
1510
- neutral: { getThemeVariables: /* @__PURE__ */ __name((e) => {
1511
- let t = new Theme5();
1512
- return t.calculate(e), t;
1513
- }, "getThemeVariables") }
1514
- }, config_schema_default = {
1515
- flowchart: {
1516
- useMaxWidth: !0,
1517
- titleTopMargin: 25,
1518
- subGraphTitleMargin: {
1519
- top: 0,
1520
- bottom: 0
1521
- },
1522
- diagramPadding: 8,
1523
- htmlLabels: !0,
1524
- nodeSpacing: 50,
1525
- rankSpacing: 50,
1526
- curve: "basis",
1527
- padding: 15,
1528
- defaultRenderer: "dagre-wrapper",
1529
- wrappingWidth: 200,
1530
- inheritDir: !1
1531
- },
1532
- sequence: {
1533
- useMaxWidth: !0,
1534
- hideUnusedParticipants: !1,
1535
- activationWidth: 10,
1536
- diagramMarginX: 50,
1537
- diagramMarginY: 10,
1538
- actorMargin: 50,
1539
- width: 150,
1540
- height: 65,
1541
- boxMargin: 10,
1542
- boxTextMargin: 5,
1543
- noteMargin: 10,
1544
- messageMargin: 35,
1545
- messageAlign: "center",
1546
- mirrorActors: !0,
1547
- forceMenus: !1,
1548
- bottomMarginAdj: 1,
1549
- rightAngles: !1,
1550
- showSequenceNumbers: !1,
1551
- actorFontSize: 14,
1552
- actorFontFamily: "\"Open Sans\", sans-serif",
1553
- actorFontWeight: 400,
1554
- noteFontSize: 14,
1555
- noteFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1556
- noteFontWeight: 400,
1557
- noteAlign: "center",
1558
- messageFontSize: 16,
1559
- messageFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1560
- messageFontWeight: 400,
1561
- wrap: !1,
1562
- wrapPadding: 10,
1563
- labelBoxWidth: 50,
1564
- labelBoxHeight: 20
1565
- },
1566
- gantt: {
1567
- useMaxWidth: !0,
1568
- titleTopMargin: 25,
1569
- barHeight: 20,
1570
- barGap: 4,
1571
- topPadding: 50,
1572
- rightPadding: 75,
1573
- leftPadding: 75,
1574
- gridLineStartPadding: 35,
1575
- fontSize: 11,
1576
- sectionFontSize: 11,
1577
- numberSectionStyles: 4,
1578
- axisFormat: "%Y-%m-%d",
1579
- topAxis: !1,
1580
- displayMode: "",
1581
- weekday: "sunday"
1582
- },
1583
- journey: {
1584
- useMaxWidth: !0,
1585
- diagramMarginX: 50,
1586
- diagramMarginY: 10,
1587
- leftMargin: 150,
1588
- maxLabelWidth: 360,
1589
- width: 150,
1590
- height: 50,
1591
- boxMargin: 10,
1592
- boxTextMargin: 5,
1593
- noteMargin: 10,
1594
- messageMargin: 35,
1595
- messageAlign: "center",
1596
- bottomMarginAdj: 1,
1597
- rightAngles: !1,
1598
- taskFontSize: 14,
1599
- taskFontFamily: "\"Open Sans\", sans-serif",
1600
- taskMargin: 50,
1601
- activationWidth: 10,
1602
- textPlacement: "fo",
1603
- actorColours: [
1604
- "#8FBC8F",
1605
- "#7CFC00",
1606
- "#00FFFF",
1607
- "#20B2AA",
1608
- "#B0E0E6",
1609
- "#FFFFE0"
1610
- ],
1611
- sectionFills: [
1612
- "#191970",
1613
- "#8B008B",
1614
- "#4B0082",
1615
- "#2F4F4F",
1616
- "#800000",
1617
- "#8B4513",
1618
- "#00008B"
1619
- ],
1620
- sectionColours: ["#fff"],
1621
- titleColor: "",
1622
- titleFontFamily: "\"trebuchet ms\", verdana, arial, sans-serif",
1623
- titleFontSize: "4ex"
1624
- },
1625
- class: {
1626
- useMaxWidth: !0,
1627
- titleTopMargin: 25,
1628
- arrowMarkerAbsolute: !1,
1629
- dividerMargin: 10,
1630
- padding: 5,
1631
- textHeight: 10,
1632
- defaultRenderer: "dagre-wrapper",
1633
- htmlLabels: !1,
1634
- hideEmptyMembersBox: !1
1635
- },
1636
- state: {
1637
- useMaxWidth: !0,
1638
- titleTopMargin: 25,
1639
- dividerMargin: 10,
1640
- sizeUnit: 5,
1641
- padding: 8,
1642
- textHeight: 10,
1643
- titleShift: -15,
1644
- noteMargin: 10,
1645
- forkWidth: 70,
1646
- forkHeight: 7,
1647
- miniPadding: 2,
1648
- fontSizeFactor: 5.02,
1649
- fontSize: 24,
1650
- labelHeight: 16,
1651
- edgeLengthFactor: "20",
1652
- compositTitleSize: 35,
1653
- radius: 5,
1654
- defaultRenderer: "dagre-wrapper"
1655
- },
1656
- er: {
1657
- useMaxWidth: !0,
1658
- titleTopMargin: 25,
1659
- diagramPadding: 20,
1660
- layoutDirection: "TB",
1661
- minEntityWidth: 100,
1662
- minEntityHeight: 75,
1663
- entityPadding: 15,
1664
- nodeSpacing: 140,
1665
- rankSpacing: 80,
1666
- stroke: "gray",
1667
- fill: "honeydew",
1668
- fontSize: 12
1669
- },
1670
- pie: {
1671
- useMaxWidth: !0,
1672
- textPosition: .75
1673
- },
1674
- quadrantChart: {
1675
- useMaxWidth: !0,
1676
- chartWidth: 500,
1677
- chartHeight: 500,
1678
- titleFontSize: 20,
1679
- titlePadding: 10,
1680
- quadrantPadding: 5,
1681
- xAxisLabelPadding: 5,
1682
- yAxisLabelPadding: 5,
1683
- xAxisLabelFontSize: 16,
1684
- yAxisLabelFontSize: 16,
1685
- quadrantLabelFontSize: 16,
1686
- quadrantTextTopPadding: 5,
1687
- pointTextPadding: 5,
1688
- pointLabelFontSize: 12,
1689
- pointRadius: 5,
1690
- xAxisPosition: "top",
1691
- yAxisPosition: "left",
1692
- quadrantInternalBorderStrokeWidth: 1,
1693
- quadrantExternalBorderStrokeWidth: 2
1694
- },
1695
- xyChart: {
1696
- useMaxWidth: !0,
1697
- width: 700,
1698
- height: 500,
1699
- titleFontSize: 20,
1700
- titlePadding: 10,
1701
- showDataLabel: !1,
1702
- showTitle: !0,
1703
- xAxis: {
1704
- $ref: "#/$defs/XYChartAxisConfig",
1705
- showLabel: !0,
1706
- labelFontSize: 14,
1707
- labelPadding: 5,
1708
- showTitle: !0,
1709
- titleFontSize: 16,
1710
- titlePadding: 5,
1711
- showTick: !0,
1712
- tickLength: 5,
1713
- tickWidth: 2,
1714
- showAxisLine: !0,
1715
- axisLineWidth: 2
1716
- },
1717
- yAxis: {
1718
- $ref: "#/$defs/XYChartAxisConfig",
1719
- showLabel: !0,
1720
- labelFontSize: 14,
1721
- labelPadding: 5,
1722
- showTitle: !0,
1723
- titleFontSize: 16,
1724
- titlePadding: 5,
1725
- showTick: !0,
1726
- tickLength: 5,
1727
- tickWidth: 2,
1728
- showAxisLine: !0,
1729
- axisLineWidth: 2
1730
- },
1731
- chartOrientation: "vertical",
1732
- plotReservedSpacePercent: 50
1733
- },
1734
- requirement: {
1735
- useMaxWidth: !0,
1736
- rect_fill: "#f9f9f9",
1737
- text_color: "#333",
1738
- rect_border_size: "0.5px",
1739
- rect_border_color: "#bbb",
1740
- rect_min_width: 200,
1741
- rect_min_height: 200,
1742
- fontSize: 14,
1743
- rect_padding: 10,
1744
- line_height: 20
1745
- },
1746
- mindmap: {
1747
- useMaxWidth: !0,
1748
- padding: 10,
1749
- maxNodeWidth: 200,
1750
- layoutAlgorithm: "cose-bilkent"
1751
- },
1752
- kanban: {
1753
- useMaxWidth: !0,
1754
- padding: 8,
1755
- sectionWidth: 200,
1756
- ticketBaseUrl: ""
1757
- },
1758
- timeline: {
1759
- useMaxWidth: !0,
1760
- diagramMarginX: 50,
1761
- diagramMarginY: 10,
1762
- leftMargin: 150,
1763
- width: 150,
1764
- height: 50,
1765
- boxMargin: 10,
1766
- boxTextMargin: 5,
1767
- noteMargin: 10,
1768
- messageMargin: 35,
1769
- messageAlign: "center",
1770
- bottomMarginAdj: 1,
1771
- rightAngles: !1,
1772
- taskFontSize: 14,
1773
- taskFontFamily: "\"Open Sans\", sans-serif",
1774
- taskMargin: 50,
1775
- activationWidth: 10,
1776
- textPlacement: "fo",
1777
- actorColours: [
1778
- "#8FBC8F",
1779
- "#7CFC00",
1780
- "#00FFFF",
1781
- "#20B2AA",
1782
- "#B0E0E6",
1783
- "#FFFFE0"
1784
- ],
1785
- sectionFills: [
1786
- "#191970",
1787
- "#8B008B",
1788
- "#4B0082",
1789
- "#2F4F4F",
1790
- "#800000",
1791
- "#8B4513",
1792
- "#00008B"
1793
- ],
1794
- sectionColours: ["#fff"],
1795
- disableMulticolor: !1
1796
- },
1797
- gitGraph: {
1798
- useMaxWidth: !0,
1799
- titleTopMargin: 25,
1800
- diagramPadding: 8,
1801
- nodeLabel: {
1802
- width: 75,
1803
- height: 100,
1804
- x: -25,
1805
- y: 0
1806
- },
1807
- mainBranchName: "main",
1808
- mainBranchOrder: 0,
1809
- showCommitLabel: !0,
1810
- showBranches: !0,
1811
- rotateCommitLabel: !0,
1812
- parallelCommits: !1,
1813
- arrowMarkerAbsolute: !1
1814
- },
1815
- c4: {
1816
- useMaxWidth: !0,
1817
- diagramMarginX: 50,
1818
- diagramMarginY: 10,
1819
- c4ShapeMargin: 50,
1820
- c4ShapePadding: 20,
1821
- width: 216,
1822
- height: 60,
1823
- boxMargin: 10,
1824
- c4ShapeInRow: 4,
1825
- nextLinePaddingX: 0,
1826
- c4BoundaryInRow: 2,
1827
- personFontSize: 14,
1828
- personFontFamily: "\"Open Sans\", sans-serif",
1829
- personFontWeight: "normal",
1830
- external_personFontSize: 14,
1831
- external_personFontFamily: "\"Open Sans\", sans-serif",
1832
- external_personFontWeight: "normal",
1833
- systemFontSize: 14,
1834
- systemFontFamily: "\"Open Sans\", sans-serif",
1835
- systemFontWeight: "normal",
1836
- external_systemFontSize: 14,
1837
- external_systemFontFamily: "\"Open Sans\", sans-serif",
1838
- external_systemFontWeight: "normal",
1839
- system_dbFontSize: 14,
1840
- system_dbFontFamily: "\"Open Sans\", sans-serif",
1841
- system_dbFontWeight: "normal",
1842
- external_system_dbFontSize: 14,
1843
- external_system_dbFontFamily: "\"Open Sans\", sans-serif",
1844
- external_system_dbFontWeight: "normal",
1845
- system_queueFontSize: 14,
1846
- system_queueFontFamily: "\"Open Sans\", sans-serif",
1847
- system_queueFontWeight: "normal",
1848
- external_system_queueFontSize: 14,
1849
- external_system_queueFontFamily: "\"Open Sans\", sans-serif",
1850
- external_system_queueFontWeight: "normal",
1851
- boundaryFontSize: 14,
1852
- boundaryFontFamily: "\"Open Sans\", sans-serif",
1853
- boundaryFontWeight: "normal",
1854
- messageFontSize: 12,
1855
- messageFontFamily: "\"Open Sans\", sans-serif",
1856
- messageFontWeight: "normal",
1857
- containerFontSize: 14,
1858
- containerFontFamily: "\"Open Sans\", sans-serif",
1859
- containerFontWeight: "normal",
1860
- external_containerFontSize: 14,
1861
- external_containerFontFamily: "\"Open Sans\", sans-serif",
1862
- external_containerFontWeight: "normal",
1863
- container_dbFontSize: 14,
1864
- container_dbFontFamily: "\"Open Sans\", sans-serif",
1865
- container_dbFontWeight: "normal",
1866
- external_container_dbFontSize: 14,
1867
- external_container_dbFontFamily: "\"Open Sans\", sans-serif",
1868
- external_container_dbFontWeight: "normal",
1869
- container_queueFontSize: 14,
1870
- container_queueFontFamily: "\"Open Sans\", sans-serif",
1871
- container_queueFontWeight: "normal",
1872
- external_container_queueFontSize: 14,
1873
- external_container_queueFontFamily: "\"Open Sans\", sans-serif",
1874
- external_container_queueFontWeight: "normal",
1875
- componentFontSize: 14,
1876
- componentFontFamily: "\"Open Sans\", sans-serif",
1877
- componentFontWeight: "normal",
1878
- external_componentFontSize: 14,
1879
- external_componentFontFamily: "\"Open Sans\", sans-serif",
1880
- external_componentFontWeight: "normal",
1881
- component_dbFontSize: 14,
1882
- component_dbFontFamily: "\"Open Sans\", sans-serif",
1883
- component_dbFontWeight: "normal",
1884
- external_component_dbFontSize: 14,
1885
- external_component_dbFontFamily: "\"Open Sans\", sans-serif",
1886
- external_component_dbFontWeight: "normal",
1887
- component_queueFontSize: 14,
1888
- component_queueFontFamily: "\"Open Sans\", sans-serif",
1889
- component_queueFontWeight: "normal",
1890
- external_component_queueFontSize: 14,
1891
- external_component_queueFontFamily: "\"Open Sans\", sans-serif",
1892
- external_component_queueFontWeight: "normal",
1893
- wrap: !0,
1894
- wrapPadding: 10,
1895
- person_bg_color: "#08427B",
1896
- person_border_color: "#073B6F",
1897
- external_person_bg_color: "#686868",
1898
- external_person_border_color: "#8A8A8A",
1899
- system_bg_color: "#1168BD",
1900
- system_border_color: "#3C7FC0",
1901
- system_db_bg_color: "#1168BD",
1902
- system_db_border_color: "#3C7FC0",
1903
- system_queue_bg_color: "#1168BD",
1904
- system_queue_border_color: "#3C7FC0",
1905
- external_system_bg_color: "#999999",
1906
- external_system_border_color: "#8A8A8A",
1907
- external_system_db_bg_color: "#999999",
1908
- external_system_db_border_color: "#8A8A8A",
1909
- external_system_queue_bg_color: "#999999",
1910
- external_system_queue_border_color: "#8A8A8A",
1911
- container_bg_color: "#438DD5",
1912
- container_border_color: "#3C7FC0",
1913
- container_db_bg_color: "#438DD5",
1914
- container_db_border_color: "#3C7FC0",
1915
- container_queue_bg_color: "#438DD5",
1916
- container_queue_border_color: "#3C7FC0",
1917
- external_container_bg_color: "#B3B3B3",
1918
- external_container_border_color: "#A6A6A6",
1919
- external_container_db_bg_color: "#B3B3B3",
1920
- external_container_db_border_color: "#A6A6A6",
1921
- external_container_queue_bg_color: "#B3B3B3",
1922
- external_container_queue_border_color: "#A6A6A6",
1923
- component_bg_color: "#85BBF0",
1924
- component_border_color: "#78A8D8",
1925
- component_db_bg_color: "#85BBF0",
1926
- component_db_border_color: "#78A8D8",
1927
- component_queue_bg_color: "#85BBF0",
1928
- component_queue_border_color: "#78A8D8",
1929
- external_component_bg_color: "#CCCCCC",
1930
- external_component_border_color: "#BFBFBF",
1931
- external_component_db_bg_color: "#CCCCCC",
1932
- external_component_db_border_color: "#BFBFBF",
1933
- external_component_queue_bg_color: "#CCCCCC",
1934
- external_component_queue_border_color: "#BFBFBF"
1935
- },
1936
- sankey: {
1937
- useMaxWidth: !0,
1938
- width: 600,
1939
- height: 400,
1940
- linkColor: "gradient",
1941
- nodeAlignment: "justify",
1942
- showValues: !0,
1943
- prefix: "",
1944
- suffix: ""
1945
- },
1946
- block: {
1947
- useMaxWidth: !0,
1948
- padding: 8
1949
- },
1950
- packet: {
1951
- useMaxWidth: !0,
1952
- rowHeight: 32,
1953
- bitWidth: 32,
1954
- bitsPerRow: 32,
1955
- showBits: !0,
1956
- paddingX: 5,
1957
- paddingY: 5
1958
- },
1959
- architecture: {
1960
- useMaxWidth: !0,
1961
- padding: 40,
1962
- iconSize: 80,
1963
- fontSize: 16
1964
- },
1965
- radar: {
1966
- useMaxWidth: !0,
1967
- width: 600,
1968
- height: 600,
1969
- marginTop: 50,
1970
- marginRight: 50,
1971
- marginBottom: 50,
1972
- marginLeft: 50,
1973
- axisScaleFactor: 1,
1974
- axisLabelFactor: 1.05,
1975
- curveTension: .17
1976
- },
1977
- theme: "default",
1978
- look: "classic",
1979
- handDrawnSeed: 0,
1980
- layout: "dagre",
1981
- maxTextSize: 5e4,
1982
- maxEdges: 500,
1983
- darkMode: !1,
1984
- fontFamily: "\"trebuchet ms\", verdana, arial, sans-serif;",
1985
- logLevel: 5,
1986
- securityLevel: "strict",
1987
- startOnLoad: !0,
1988
- arrowMarkerAbsolute: !1,
1989
- secure: [
1990
- "secure",
1991
- "securityLevel",
1992
- "startOnLoad",
1993
- "maxTextSize",
1994
- "suppressErrorRendering",
1995
- "maxEdges"
1996
- ],
1997
- legacyMathML: !1,
1998
- forceLegacyMathML: !1,
1999
- deterministicIds: !1,
2000
- fontSize: 16,
2001
- markdownAutoWrap: !0,
2002
- suppressErrorRendering: !1
2003
- }, config = {
2004
- ...config_schema_default,
2005
- deterministicIDSeed: void 0,
2006
- elk: {
2007
- mergeEdges: !1,
2008
- nodePlacementStrategy: "BRANDES_KOEPF",
2009
- forceNodeModelOrder: !1,
2010
- considerModelOrder: "NODES_AND_EDGES"
2011
- },
2012
- themeCSS: void 0,
2013
- themeVariables: themes_default.default.getThemeVariables(),
2014
- sequence: {
2015
- ...config_schema_default.sequence,
2016
- messageFont: /* @__PURE__ */ __name(function() {
2017
- return {
2018
- fontFamily: this.messageFontFamily,
2019
- fontSize: this.messageFontSize,
2020
- fontWeight: this.messageFontWeight
2021
- };
2022
- }, "messageFont"),
2023
- noteFont: /* @__PURE__ */ __name(function() {
2024
- return {
2025
- fontFamily: this.noteFontFamily,
2026
- fontSize: this.noteFontSize,
2027
- fontWeight: this.noteFontWeight
2028
- };
2029
- }, "noteFont"),
2030
- actorFont: /* @__PURE__ */ __name(function() {
2031
- return {
2032
- fontFamily: this.actorFontFamily,
2033
- fontSize: this.actorFontSize,
2034
- fontWeight: this.actorFontWeight
2035
- };
2036
- }, "actorFont")
2037
- },
2038
- class: { hideEmptyMembersBox: !1 },
2039
- gantt: {
2040
- ...config_schema_default.gantt,
2041
- tickInterval: void 0,
2042
- useWidth: void 0
2043
- },
2044
- c4: {
2045
- ...config_schema_default.c4,
2046
- useWidth: void 0,
2047
- personFont: /* @__PURE__ */ __name(function() {
2048
- return {
2049
- fontFamily: this.personFontFamily,
2050
- fontSize: this.personFontSize,
2051
- fontWeight: this.personFontWeight
2052
- };
2053
- }, "personFont"),
2054
- flowchart: {
2055
- ...config_schema_default.flowchart,
2056
- inheritDir: !1
2057
- },
2058
- external_personFont: /* @__PURE__ */ __name(function() {
2059
- return {
2060
- fontFamily: this.external_personFontFamily,
2061
- fontSize: this.external_personFontSize,
2062
- fontWeight: this.external_personFontWeight
2063
- };
2064
- }, "external_personFont"),
2065
- systemFont: /* @__PURE__ */ __name(function() {
2066
- return {
2067
- fontFamily: this.systemFontFamily,
2068
- fontSize: this.systemFontSize,
2069
- fontWeight: this.systemFontWeight
2070
- };
2071
- }, "systemFont"),
2072
- external_systemFont: /* @__PURE__ */ __name(function() {
2073
- return {
2074
- fontFamily: this.external_systemFontFamily,
2075
- fontSize: this.external_systemFontSize,
2076
- fontWeight: this.external_systemFontWeight
2077
- };
2078
- }, "external_systemFont"),
2079
- system_dbFont: /* @__PURE__ */ __name(function() {
2080
- return {
2081
- fontFamily: this.system_dbFontFamily,
2082
- fontSize: this.system_dbFontSize,
2083
- fontWeight: this.system_dbFontWeight
2084
- };
2085
- }, "system_dbFont"),
2086
- external_system_dbFont: /* @__PURE__ */ __name(function() {
2087
- return {
2088
- fontFamily: this.external_system_dbFontFamily,
2089
- fontSize: this.external_system_dbFontSize,
2090
- fontWeight: this.external_system_dbFontWeight
2091
- };
2092
- }, "external_system_dbFont"),
2093
- system_queueFont: /* @__PURE__ */ __name(function() {
2094
- return {
2095
- fontFamily: this.system_queueFontFamily,
2096
- fontSize: this.system_queueFontSize,
2097
- fontWeight: this.system_queueFontWeight
2098
- };
2099
- }, "system_queueFont"),
2100
- external_system_queueFont: /* @__PURE__ */ __name(function() {
2101
- return {
2102
- fontFamily: this.external_system_queueFontFamily,
2103
- fontSize: this.external_system_queueFontSize,
2104
- fontWeight: this.external_system_queueFontWeight
2105
- };
2106
- }, "external_system_queueFont"),
2107
- containerFont: /* @__PURE__ */ __name(function() {
2108
- return {
2109
- fontFamily: this.containerFontFamily,
2110
- fontSize: this.containerFontSize,
2111
- fontWeight: this.containerFontWeight
2112
- };
2113
- }, "containerFont"),
2114
- external_containerFont: /* @__PURE__ */ __name(function() {
2115
- return {
2116
- fontFamily: this.external_containerFontFamily,
2117
- fontSize: this.external_containerFontSize,
2118
- fontWeight: this.external_containerFontWeight
2119
- };
2120
- }, "external_containerFont"),
2121
- container_dbFont: /* @__PURE__ */ __name(function() {
2122
- return {
2123
- fontFamily: this.container_dbFontFamily,
2124
- fontSize: this.container_dbFontSize,
2125
- fontWeight: this.container_dbFontWeight
2126
- };
2127
- }, "container_dbFont"),
2128
- external_container_dbFont: /* @__PURE__ */ __name(function() {
2129
- return {
2130
- fontFamily: this.external_container_dbFontFamily,
2131
- fontSize: this.external_container_dbFontSize,
2132
- fontWeight: this.external_container_dbFontWeight
2133
- };
2134
- }, "external_container_dbFont"),
2135
- container_queueFont: /* @__PURE__ */ __name(function() {
2136
- return {
2137
- fontFamily: this.container_queueFontFamily,
2138
- fontSize: this.container_queueFontSize,
2139
- fontWeight: this.container_queueFontWeight
2140
- };
2141
- }, "container_queueFont"),
2142
- external_container_queueFont: /* @__PURE__ */ __name(function() {
2143
- return {
2144
- fontFamily: this.external_container_queueFontFamily,
2145
- fontSize: this.external_container_queueFontSize,
2146
- fontWeight: this.external_container_queueFontWeight
2147
- };
2148
- }, "external_container_queueFont"),
2149
- componentFont: /* @__PURE__ */ __name(function() {
2150
- return {
2151
- fontFamily: this.componentFontFamily,
2152
- fontSize: this.componentFontSize,
2153
- fontWeight: this.componentFontWeight
2154
- };
2155
- }, "componentFont"),
2156
- external_componentFont: /* @__PURE__ */ __name(function() {
2157
- return {
2158
- fontFamily: this.external_componentFontFamily,
2159
- fontSize: this.external_componentFontSize,
2160
- fontWeight: this.external_componentFontWeight
2161
- };
2162
- }, "external_componentFont"),
2163
- component_dbFont: /* @__PURE__ */ __name(function() {
2164
- return {
2165
- fontFamily: this.component_dbFontFamily,
2166
- fontSize: this.component_dbFontSize,
2167
- fontWeight: this.component_dbFontWeight
2168
- };
2169
- }, "component_dbFont"),
2170
- external_component_dbFont: /* @__PURE__ */ __name(function() {
2171
- return {
2172
- fontFamily: this.external_component_dbFontFamily,
2173
- fontSize: this.external_component_dbFontSize,
2174
- fontWeight: this.external_component_dbFontWeight
2175
- };
2176
- }, "external_component_dbFont"),
2177
- component_queueFont: /* @__PURE__ */ __name(function() {
2178
- return {
2179
- fontFamily: this.component_queueFontFamily,
2180
- fontSize: this.component_queueFontSize,
2181
- fontWeight: this.component_queueFontWeight
2182
- };
2183
- }, "component_queueFont"),
2184
- external_component_queueFont: /* @__PURE__ */ __name(function() {
2185
- return {
2186
- fontFamily: this.external_component_queueFontFamily,
2187
- fontSize: this.external_component_queueFontSize,
2188
- fontWeight: this.external_component_queueFontWeight
2189
- };
2190
- }, "external_component_queueFont"),
2191
- boundaryFont: /* @__PURE__ */ __name(function() {
2192
- return {
2193
- fontFamily: this.boundaryFontFamily,
2194
- fontSize: this.boundaryFontSize,
2195
- fontWeight: this.boundaryFontWeight
2196
- };
2197
- }, "boundaryFont"),
2198
- messageFont: /* @__PURE__ */ __name(function() {
2199
- return {
2200
- fontFamily: this.messageFontFamily,
2201
- fontSize: this.messageFontSize,
2202
- fontWeight: this.messageFontWeight
2203
- };
2204
- }, "messageFont")
2205
- },
2206
- pie: {
2207
- ...config_schema_default.pie,
2208
- useWidth: 984
2209
- },
2210
- xyChart: {
2211
- ...config_schema_default.xyChart,
2212
- useWidth: void 0
2213
- },
2214
- requirement: {
2215
- ...config_schema_default.requirement,
2216
- useWidth: void 0
2217
- },
2218
- packet: { ...config_schema_default.packet },
2219
- radar: { ...config_schema_default.radar },
2220
- treemap: {
2221
- useMaxWidth: !0,
2222
- padding: 10,
2223
- diagramPadding: 8,
2224
- showValues: !0,
2225
- nodeWidth: 100,
2226
- nodeHeight: 40,
2227
- borderWidth: 1,
2228
- valueFontSize: 12,
2229
- labelFontSize: 14,
2230
- valueFormat: ","
2231
- }
2232
- }, keyify = /* @__PURE__ */ __name((e, t = "") => Object.keys(e).reduce((n, r) => Array.isArray(e[r]) ? n : typeof e[r] == "object" && e[r] !== null ? [
2233
- ...n,
2234
- t + r,
2235
- ...keyify(e[r], "")
2236
- ] : [...n, t + r], []), "keyify"), configKeys = new Set(keyify(config, "")), defaultConfig_default = config, sanitizeDirective = /* @__PURE__ */ __name((e) => {
2237
- if (log.debug("sanitizeDirective called with", e), !(typeof e != "object" || !e)) {
2238
- if (Array.isArray(e)) {
2239
- e.forEach((e) => sanitizeDirective(e));
2240
- return;
2241
- }
2242
- for (let n of Object.keys(e)) {
2243
- if (log.debug("Checking key", n), n.startsWith("__") || n.includes("proto") || n.includes("constr") || !configKeys.has(n) || e[n] == null) {
2244
- log.debug("sanitize deleting key: ", n), delete e[n];
2245
- continue;
2246
- }
2247
- if (typeof e[n] == "object") {
2248
- log.debug("sanitizing object", n), sanitizeDirective(e[n]);
2249
- continue;
2250
- }
2251
- for (let r of [
2252
- "themeCSS",
2253
- "fontFamily",
2254
- "altFontFamily"
2255
- ]) n.includes(r) && (log.debug("sanitizing css option", n), e[n] = sanitizeCss(e[n]));
2256
- }
2257
- if (e.themeVariables) for (let t of Object.keys(e.themeVariables)) {
2258
- let n = e.themeVariables[t];
2259
- n?.match && !n.match(/^[\d "#%(),.;A-Za-z]+$/) && (e.themeVariables[t] = "");
2260
- }
2261
- log.debug("After sanitization", e);
2262
- }
2263
- }, "sanitizeDirective"), sanitizeCss = /* @__PURE__ */ __name((e) => {
2264
- let t = 0, n = 0;
2265
- for (let r of e) {
2266
- if (t < n) return "{ /* ERROR: Unbalanced CSS */ }";
2267
- r === "{" ? t++ : r === "}" && n++;
2268
- }
2269
- return t === n ? e : "{ /* ERROR: Unbalanced CSS */ }";
2270
- }, "sanitizeCss"), defaultConfig = Object.freeze(defaultConfig_default), siteConfig = assignWithDepth_default({}, defaultConfig), configFromInitialize, directives = [], currentConfig = assignWithDepth_default({}, defaultConfig), updateCurrentConfig = /* @__PURE__ */ __name((e, t) => {
2271
- let n = assignWithDepth_default({}, e), r = {};
2272
- for (let e of t) sanitize(e), r = assignWithDepth_default(r, e);
2273
- if (n = assignWithDepth_default(n, r), r.theme && r.theme in themes_default) {
2274
- let e = assignWithDepth_default(assignWithDepth_default({}, configFromInitialize).themeVariables || {}, r.themeVariables);
2275
- n.theme && n.theme in themes_default && (n.themeVariables = themes_default[n.theme].getThemeVariables(e));
2276
- }
2277
- return currentConfig = n, checkConfig(currentConfig), currentConfig;
2278
- }, "updateCurrentConfig"), setSiteConfig = /* @__PURE__ */ __name((e) => (siteConfig = assignWithDepth_default({}, defaultConfig), siteConfig = assignWithDepth_default(siteConfig, e), e.theme && themes_default[e.theme] && (siteConfig.themeVariables = themes_default[e.theme].getThemeVariables(e.themeVariables)), updateCurrentConfig(siteConfig, directives), siteConfig), "setSiteConfig"), saveConfigFromInitialize = /* @__PURE__ */ __name((e) => {
2279
- configFromInitialize = assignWithDepth_default({}, e);
2280
- }, "saveConfigFromInitialize"), updateSiteConfig = /* @__PURE__ */ __name((e) => (siteConfig = assignWithDepth_default(siteConfig, e), updateCurrentConfig(siteConfig, directives), siteConfig), "updateSiteConfig"), getSiteConfig = /* @__PURE__ */ __name(() => assignWithDepth_default({}, siteConfig), "getSiteConfig"), setConfig = /* @__PURE__ */ __name((e) => (checkConfig(e), assignWithDepth_default(currentConfig, e), getConfig()), "setConfig"), getConfig = /* @__PURE__ */ __name(() => assignWithDepth_default({}, currentConfig), "getConfig"), sanitize = /* @__PURE__ */ __name((e) => {
2281
- e && (["secure", ...siteConfig.secure ?? []].forEach((n) => {
2282
- Object.hasOwn(e, n) && (log.debug(`Denied attempt to modify a secure key ${n}`, e[n]), delete e[n]);
2283
- }), Object.keys(e).forEach((t) => {
2284
- t.startsWith("__") && delete e[t];
2285
- }), Object.keys(e).forEach((t) => {
2286
- typeof e[t] == "string" && (e[t].includes("<") || e[t].includes(">") || e[t].includes("url(data:")) && delete e[t], typeof e[t] == "object" && sanitize(e[t]);
2287
- }));
2288
- }, "sanitize"), addDirective = /* @__PURE__ */ __name((e) => {
2289
- sanitizeDirective(e), e.fontFamily && !e.themeVariables?.fontFamily && (e.themeVariables = {
2290
- ...e.themeVariables,
2291
- fontFamily: e.fontFamily
2292
- }), directives.push(e), updateCurrentConfig(siteConfig, directives);
2293
- }, "addDirective"), reset = /* @__PURE__ */ __name((e = siteConfig) => {
2294
- directives = [], updateCurrentConfig(e, directives);
2295
- }, "reset"), ConfigWarning = { LAZY_LOAD_DEPRECATED: "The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead." }, issuedWarnings = {}, issueWarning = /* @__PURE__ */ __name((e) => {
2296
- issuedWarnings[e] || (log.warn(ConfigWarning[e]), issuedWarnings[e] = !0);
2297
- }, "issueWarning"), checkConfig = /* @__PURE__ */ __name((e) => {
2298
- e && (e.lazyLoadedDiagrams || e.loadExternalDiagramsAtStartup) && issueWarning("LAZY_LOAD_DEPRECATED");
2299
- }, "checkConfig"), getUserDefinedConfig = /* @__PURE__ */ __name(() => {
2300
- let e = {};
2301
- configFromInitialize && (e = assignWithDepth_default(e, configFromInitialize));
2302
- for (let t of directives) e = assignWithDepth_default(e, t);
2303
- return e;
2304
- }, "getUserDefinedConfig"), lineBreakRegex = /<br\s*\/?>/gi, getRows = /* @__PURE__ */ __name((e) => e ? breakToPlaceholder(e).replace(/\\n/g, "#br#").split("#br#") : [""], "getRows"), setupDompurifyHooksIfNotSetup = /* @__PURE__ */ (() => {
2305
- let e = !1;
2306
- return () => {
2307
- e ||= (setupDompurifyHooks(), !0);
2308
- };
2309
- })();
2310
- function setupDompurifyHooks() {
2311
- let e = "data-temp-href-target";
2312
- purify.addHook("beforeSanitizeAttributes", (t) => {
2313
- t.tagName === "A" && t.hasAttribute("target") && t.setAttribute(e, t.getAttribute("target") ?? "");
2314
- }), purify.addHook("afterSanitizeAttributes", (t) => {
2315
- t.tagName === "A" && t.hasAttribute(e) && (t.setAttribute("target", t.getAttribute(e) ?? ""), t.removeAttribute(e), t.getAttribute("target") === "_blank" && t.setAttribute("rel", "noopener"));
2316
- });
2317
- }
2318
- __name(setupDompurifyHooks, "setupDompurifyHooks");
2319
- var removeScript = /* @__PURE__ */ __name((e) => (setupDompurifyHooksIfNotSetup(), purify.sanitize(e)), "removeScript"), sanitizeMore = /* @__PURE__ */ __name((e, t) => {
2320
- if (t.flowchart?.htmlLabels !== !1) {
2321
- let n = t.securityLevel;
2322
- n === "antiscript" || n === "strict" ? e = removeScript(e) : n !== "loose" && (e = breakToPlaceholder(e), e = e.replace(/</g, "&lt;").replace(/>/g, "&gt;"), e = e.replace(/=/g, "&equals;"), e = placeholderToBreak(e));
2323
- }
2324
- return e;
2325
- }, "sanitizeMore"), sanitizeText = /* @__PURE__ */ __name((e, t) => e && (e = t.dompurifyConfig ? purify.sanitize(sanitizeMore(e, t), t.dompurifyConfig).toString() : purify.sanitize(sanitizeMore(e, t), { FORBID_TAGS: ["style"] }).toString(), e), "sanitizeText"), sanitizeTextOrArray = /* @__PURE__ */ __name((e, t) => typeof e == "string" ? sanitizeText(e, t) : e.flat().map((e) => sanitizeText(e, t)), "sanitizeTextOrArray"), hasBreaks = /* @__PURE__ */ __name((e) => lineBreakRegex.test(e), "hasBreaks"), splitBreaks = /* @__PURE__ */ __name((e) => e.split(lineBreakRegex), "splitBreaks"), placeholderToBreak = /* @__PURE__ */ __name((e) => e.replace(/#br#/g, "<br/>"), "placeholderToBreak"), breakToPlaceholder = /* @__PURE__ */ __name((e) => e.replace(lineBreakRegex, "#br#"), "breakToPlaceholder"), getUrl = /* @__PURE__ */ __name((e) => {
2326
- let t = "";
2327
- return e && (t = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, t = CSS.escape(t)), t;
2328
- }, "getUrl"), evaluate = /* @__PURE__ */ __name((e) => !(e === !1 || [
2329
- "false",
2330
- "null",
2331
- "0"
2332
- ].includes(String(e).trim().toLowerCase())), "evaluate"), getMax = /* @__PURE__ */ __name(function(...e) {
2333
- let t = e.filter((e) => !isNaN(e));
2334
- return Math.max(...t);
2335
- }, "getMax"), getMin = /* @__PURE__ */ __name(function(...e) {
2336
- let t = e.filter((e) => !isNaN(e));
2337
- return Math.min(...t);
2338
- }, "getMin"), parseGenericTypes = /* @__PURE__ */ __name(function(e) {
2339
- let t = e.split(/(,)/), n = [];
2340
- for (let e = 0; e < t.length; e++) {
2341
- let r = t[e];
2342
- if (r === "," && e > 0 && e + 1 < t.length) {
2343
- let i = t[e - 1], a = t[e + 1];
2344
- shouldCombineSets(i, a) && (r = i + "," + a, e++, n.pop());
2345
- }
2346
- n.push(processSet(r));
2347
- }
2348
- return n.join("");
2349
- }, "parseGenericTypes"), countOccurrence = /* @__PURE__ */ __name((e, t) => Math.max(0, e.split(t).length - 1), "countOccurrence"), shouldCombineSets = /* @__PURE__ */ __name((e, t) => {
2350
- let n = countOccurrence(e, "~"), r = countOccurrence(t, "~");
2351
- return n === 1 && r === 1;
2352
- }, "shouldCombineSets"), processSet = /* @__PURE__ */ __name((e) => {
2353
- let t = countOccurrence(e, "~"), n = !1;
2354
- if (t <= 1) return e;
2355
- t % 2 != 0 && e.startsWith("~") && (e = e.substring(1), n = !0);
2356
- let r = [...e], i = r.indexOf("~"), a = r.lastIndexOf("~");
2357
- for (; i !== -1 && a !== -1 && i !== a;) r[i] = "<", r[a] = ">", i = r.indexOf("~"), a = r.lastIndexOf("~");
2358
- return n && r.unshift("~"), r.join("");
2359
- }, "processSet"), isMathMLSupported = /* @__PURE__ */ __name(() => window.MathMLElement !== void 0, "isMathMLSupported"), katexRegex = /\$\$(.*)\$\$/g, hasKatex = /* @__PURE__ */ __name((e) => (e.match(katexRegex)?.length ?? 0) > 0, "hasKatex"), calculateMathMLDimensions = /* @__PURE__ */ __name(async (e, t) => {
2360
- let n = document.createElement("div");
2361
- n.innerHTML = await renderKatexSanitized(e, t), n.id = "katex-temp", n.style.visibility = "hidden", n.style.position = "absolute", n.style.top = "0", document.querySelector("body")?.insertAdjacentElement("beforeend", n);
2362
- let r = {
2363
- width: n.clientWidth,
2364
- height: n.clientHeight
2365
- };
2366
- return n.remove(), r;
2367
- }, "calculateMathMLDimensions"), renderKatexUnsanitized = /* @__PURE__ */ __name(async (e, t) => {
2368
- if (!hasKatex(e)) return e;
2369
- if (!(isMathMLSupported() || t.legacyMathML || t.forceLegacyMathML)) return e.replace(katexRegex, "MathML is unsupported in this environment.");
2370
- {
2371
- let { default: n } = await import("./katex-K1dsczyg.js"), r = t.forceLegacyMathML || !isMathMLSupported() && t.legacyMathML ? "htmlAndMathml" : "mathml";
2372
- return e.split(lineBreakRegex).map((e) => hasKatex(e) ? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${e}</div>` : `<div>${e}</div>`).join("").replace(katexRegex, (e, t) => n.renderToString(t, {
2373
- throwOnError: !0,
2374
- displayMode: !0,
2375
- output: r
2376
- }).replace(/\n/g, " ").replace(/<annotation.*<\/annotation>/g, ""));
2377
- }
2378
- return e.replace(katexRegex, "Katex is not supported in @mermaid-js/tiny. Please use the full mermaid library.");
2379
- }, "renderKatexUnsanitized"), renderKatexSanitized = /* @__PURE__ */ __name(async (e, t) => sanitizeText(await renderKatexUnsanitized(e, t), t), "renderKatexSanitized"), common_default = {
2380
- getRows,
2381
- sanitizeText,
2382
- sanitizeTextOrArray,
2383
- hasBreaks,
2384
- splitBreaks,
2385
- lineBreakRegex,
2386
- removeScript,
2387
- getUrl,
2388
- evaluate,
2389
- getMax,
2390
- getMin
2391
- }, d3Attrs = /* @__PURE__ */ __name(function(e, t) {
2392
- for (let n of t) e.attr(n[0], n[1]);
2393
- }, "d3Attrs"), calculateSvgSizeAttrs = /* @__PURE__ */ __name(function(e, t, n) {
2394
- let r = /* @__PURE__ */ new Map();
2395
- return n ? (r.set("width", "100%"), r.set("style", `max-width: ${t}px;`)) : (r.set("height", e), r.set("width", t)), r;
2396
- }, "calculateSvgSizeAttrs"), configureSvgSize = /* @__PURE__ */ __name(function(e, t, n, r) {
2397
- d3Attrs(e, calculateSvgSizeAttrs(t, n, r));
2398
- }, "configureSvgSize"), setupGraphViewbox = /* @__PURE__ */ __name(function(e, n, r, i) {
2399
- let a = n.node().getBBox(), o = a.width, s = a.height;
2400
- log.info(`SVG bounds: ${o}x${s}`, a);
2401
- let c = 0, l = 0;
2402
- log.info(`Graph bounds: ${c}x${l}`, e), c = o + r * 2, l = s + r * 2, log.info(`Calculated bounds: ${c}x${l}`), configureSvgSize(n, l, c, i);
2403
- let u = `${a.x - r} ${a.y - r} ${a.width + 2 * r} ${a.height + 2 * r}`;
2404
- n.attr("viewBox", u);
2405
- }, "setupGraphViewbox"), themes = {}, getStyles = /* @__PURE__ */ __name((e, n, r) => {
2406
- let i = "";
2407
- return e in themes && themes[e] ? i = themes[e](r) : log.warn(`No theme found for ${e}`), ` & {
2408
- font-family: ${r.fontFamily};
2409
- font-size: ${r.fontSize};
2410
- fill: ${r.textColor}
2411
- }
2412
- @keyframes edge-animation-frame {
2413
- from {
2414
- stroke-dashoffset: 0;
2415
- }
2416
- }
2417
- @keyframes dash {
2418
- to {
2419
- stroke-dashoffset: 0;
2420
- }
2421
- }
2422
- & .edge-animation-slow {
2423
- stroke-dasharray: 9,5 !important;
2424
- stroke-dashoffset: 900;
2425
- animation: dash 50s linear infinite;
2426
- stroke-linecap: round;
2427
- }
2428
- & .edge-animation-fast {
2429
- stroke-dasharray: 9,5 !important;
2430
- stroke-dashoffset: 900;
2431
- animation: dash 20s linear infinite;
2432
- stroke-linecap: round;
2433
- }
2434
- /* Classes common for multiple diagrams */
2435
-
2436
- & .error-icon {
2437
- fill: ${r.errorBkgColor};
2438
- }
2439
- & .error-text {
2440
- fill: ${r.errorTextColor};
2441
- stroke: ${r.errorTextColor};
2442
- }
2443
-
2444
- & .edge-thickness-normal {
2445
- stroke-width: 1px;
2446
- }
2447
- & .edge-thickness-thick {
2448
- stroke-width: 3.5px
2449
- }
2450
- & .edge-pattern-solid {
2451
- stroke-dasharray: 0;
2452
- }
2453
- & .edge-thickness-invisible {
2454
- stroke-width: 0;
2455
- fill: none;
2456
- }
2457
- & .edge-pattern-dashed{
2458
- stroke-dasharray: 3;
2459
- }
2460
- .edge-pattern-dotted {
2461
- stroke-dasharray: 2;
2462
- }
2463
-
2464
- & .marker {
2465
- fill: ${r.lineColor};
2466
- stroke: ${r.lineColor};
2467
- }
2468
- & .marker.cross {
2469
- stroke: ${r.lineColor};
2470
- }
2471
-
2472
- & svg {
2473
- font-family: ${r.fontFamily};
2474
- font-size: ${r.fontSize};
2475
- }
2476
- & p {
2477
- margin: 0
2478
- }
2479
-
2480
- ${i}
2481
-
2482
- ${n}
2483
- `;
2484
- }, "getStyles"), addStylesForDiagram = /* @__PURE__ */ __name((e, t) => {
2485
- t !== void 0 && (themes[e] = t);
2486
- }, "addStylesForDiagram"), styles_default = getStyles, commonDb_exports = {};
2487
- __export(commonDb_exports, {
2488
- clear: () => clear,
2489
- getAccDescription: () => getAccDescription,
2490
- getAccTitle: () => getAccTitle,
2491
- getDiagramTitle: () => getDiagramTitle,
2492
- setAccDescription: () => setAccDescription,
2493
- setAccTitle: () => setAccTitle,
2494
- setDiagramTitle: () => setDiagramTitle
2495
- });
2496
- var accTitle = "", diagramTitle = "", accDescription = "", sanitizeText2 = /* @__PURE__ */ __name((e) => sanitizeText(e, getConfig()), "sanitizeText"), clear = /* @__PURE__ */ __name(() => {
2497
- accTitle = "", accDescription = "", diagramTitle = "";
2498
- }, "clear"), setAccTitle = /* @__PURE__ */ __name((e) => {
2499
- accTitle = sanitizeText2(e).replace(/^\s+/g, "");
2500
- }, "setAccTitle"), getAccTitle = /* @__PURE__ */ __name(() => accTitle, "getAccTitle"), setAccDescription = /* @__PURE__ */ __name((e) => {
2501
- accDescription = sanitizeText2(e).replace(/\n\s+/g, "\n");
2502
- }, "setAccDescription"), getAccDescription = /* @__PURE__ */ __name(() => accDescription, "getAccDescription"), setDiagramTitle = /* @__PURE__ */ __name((e) => {
2503
- diagramTitle = sanitizeText2(e);
2504
- }, "setDiagramTitle"), getDiagramTitle = /* @__PURE__ */ __name(() => diagramTitle, "getDiagramTitle"), log2 = log, setLogLevel2 = setLogLevel, getConfig2 = getConfig, setConfig2 = setConfig, defaultConfig2 = defaultConfig, sanitizeText3 = /* @__PURE__ */ __name((e) => sanitizeText(e, getConfig2()), "sanitizeText"), setupGraphViewbox2 = setupGraphViewbox, getCommonDb = /* @__PURE__ */ __name(() => commonDb_exports, "getCommonDb"), diagrams = {}, registerDiagram = /* @__PURE__ */ __name((e, t, n) => {
2505
- diagrams[e] && log2.warn(`Diagram with id ${e} already registered. Overwriting.`), diagrams[e] = t, n && addDetector(e, n), addStylesForDiagram(e, t.styles), t.injectUtils?.(log2, setLogLevel2, getConfig2, sanitizeText3, setupGraphViewbox2, getCommonDb(), () => {});
2506
- }, "registerDiagram"), getDiagram = /* @__PURE__ */ __name((e) => {
2507
- if (e in diagrams) return diagrams[e];
2508
- throw new DiagramNotFoundError(e);
2509
- }, "getDiagram"), DiagramNotFoundError = class extends Error {
2510
- static #e = __name(this, "DiagramNotFoundError");
2511
- constructor(e) {
2512
- super(`Diagram ${e} not found.`);
2513
- }
2514
- };
2515
- export { is_dark_default as $, parseGenericTypes as A, setAccTitle as B, getDiagramTitle as C, getUserDefinedConfig as D, getUrl as E, sanitizeDirective as F, setupGraphViewbox as G, setConfig2 as H, sanitizeText as I, themes_default as J, setupGraphViewbox2 as K, sanitizeText3 as L, registerLazyLoadedDiagrams as M, renderKatexSanitized as N, hasKatex as O, reset as P, lighten_default as Q, saveConfigFromInitialize as R, getDiagramLoader as S, getThemeVariables3 as T, setDiagramTitle as U, setConfig as V, setSiteConfig as W, purify as X, updateSiteConfig as Y, darken_default as Z, getAccDescription as _, clear as a, getConfig2 as b, configureSvgSize as c, defaultConfig_default as d, rgba_default as et, detectType as f, frontMatterRegex as g, evaluate as h, calculateMathMLDimensions as i, registerDiagram as j, lineBreakRegex as k, defaultConfig as l, directiveRegex as m, addDirective as n, utils_default as nt, commonDb_exports as o, detectors as p, styles_default as q, assignWithDepth_default as r, common_default as s, UnknownDiagramError as t, color_default as tt, defaultConfig2 as u, getAccTitle as v, getSiteConfig as w, getDiagram as x, getConfig as y, setAccDescription as z };