@altimateai/ui-components 0.0.79 → 0.0.80

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 (521) hide show
  1. package/dist/0~315.js +46635 -0
  2. package/dist/0~315.js.LICENSE.txt +73 -0
  3. package/dist/0~315.js.map +1 -0
  4. package/dist/131.js +14352 -0
  5. package/dist/131.js.map +1 -0
  6. package/dist/3~315.js +46635 -0
  7. package/dist/3~315.js.LICENSE.txt +73 -0
  8. package/dist/3~315.js.map +1 -0
  9. package/dist/582.js +1299 -0
  10. package/dist/582.js.map +1 -0
  11. package/dist/assets/icons/index.d.ts +45 -110
  12. package/dist/assets/icons/index.d.ts.map +1 -0
  13. package/dist/chatbotV2.js +5233 -0
  14. package/dist/chatbotV2.js.map +1 -0
  15. package/dist/components/api/index.d.ts +7 -0
  16. package/dist/components/api/index.d.ts.map +1 -0
  17. package/dist/components/api/useMutation.d.ts +12 -0
  18. package/dist/components/api/useMutation.d.ts.map +1 -0
  19. package/dist/components/api/useQuery.d.ts +12 -0
  20. package/dist/components/api/useQuery.d.ts.map +1 -0
  21. package/dist/components/chatbotV2/ChatProvider.d.ts +17 -0
  22. package/dist/components/chatbotV2/ChatProvider.d.ts.map +1 -0
  23. package/dist/components/chatbotV2/Chatbot.d.ts +4 -0
  24. package/dist/components/chatbotV2/Chatbot.d.ts.map +1 -0
  25. package/dist/components/chatbotV2/HelloMessageSample.d.ts +3 -0
  26. package/dist/components/chatbotV2/HelloMessageSample.d.ts.map +1 -0
  27. package/dist/components/chatbotV2/components/action-buttons/DownloadMessage.d.ts +9 -0
  28. package/dist/components/chatbotV2/components/action-buttons/DownloadMessage.d.ts.map +1 -0
  29. package/dist/components/chatbotV2/components/action-buttons/ShareMessage.d.ts +9 -0
  30. package/dist/components/chatbotV2/components/action-buttons/ShareMessage.d.ts.map +1 -0
  31. package/dist/components/chatbotV2/components/artifacts/Artifacts.d.ts +8 -0
  32. package/dist/components/chatbotV2/components/artifacts/Artifacts.d.ts.map +1 -0
  33. package/dist/components/chatbotV2/components/artifacts/index.d.ts +2 -0
  34. package/dist/components/chatbotV2/components/artifacts/index.d.ts.map +1 -0
  35. package/dist/components/chatbotV2/components/attachmentList/AttachmentList.d.ts +8 -0
  36. package/dist/components/chatbotV2/components/attachmentList/AttachmentList.d.ts.map +1 -0
  37. package/dist/components/chatbotV2/components/attachmentList/index.d.ts +2 -0
  38. package/dist/components/chatbotV2/components/attachmentList/index.d.ts.map +1 -0
  39. package/dist/components/chatbotV2/components/cancelGenerationButton/CancelGenerationButton.d.ts +3 -0
  40. package/dist/components/chatbotV2/components/cancelGenerationButton/CancelGenerationButton.d.ts.map +1 -0
  41. package/dist/components/chatbotV2/components/cancelGenerationButton/index.d.ts +2 -0
  42. package/dist/components/chatbotV2/components/cancelGenerationButton/index.d.ts.map +1 -0
  43. package/dist/components/chatbotV2/components/chatMessageActions/ChatFeedbackActions.d.ts +8 -0
  44. package/dist/components/chatbotV2/components/chatMessageActions/ChatFeedbackActions.d.ts.map +1 -0
  45. package/dist/components/chatbotV2/components/chatMessageActions/ChatLastMessageActions.d.ts +8 -0
  46. package/dist/components/chatbotV2/components/chatMessageActions/ChatLastMessageActions.d.ts.map +1 -0
  47. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageActions.d.ts +10 -0
  48. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageActions.d.ts.map +1 -0
  49. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageEndActions.d.ts +9 -0
  50. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageEndActions.d.ts.map +1 -0
  51. package/dist/components/chatbotV2/components/chatMessageActions/index.d.ts +4 -0
  52. package/dist/components/chatbotV2/components/chatMessageActions/index.d.ts.map +1 -0
  53. package/dist/components/chatbotV2/components/chatTriggerLink/ChatTriggerLink.d.ts +7 -0
  54. package/dist/components/chatbotV2/components/chatTriggerLink/ChatTriggerLink.d.ts.map +1 -0
  55. package/dist/components/chatbotV2/components/citations/Citations.d.ts +28 -0
  56. package/dist/components/chatbotV2/components/citations/Citations.d.ts.map +1 -0
  57. package/dist/components/chatbotV2/components/coachAI/CoachAI.d.ts +2 -0
  58. package/dist/components/chatbotV2/components/coachAI/CoachAI.d.ts.map +1 -0
  59. package/dist/components/chatbotV2/components/coachAI/index.d.ts +2 -0
  60. package/dist/components/chatbotV2/components/coachAI/index.d.ts.map +1 -0
  61. package/dist/components/chatbotV2/components/contextPanel/ContextPanel.d.ts +13 -0
  62. package/dist/components/chatbotV2/components/contextPanel/ContextPanel.d.ts.map +1 -0
  63. package/dist/components/chatbotV2/components/contextPanel/index.d.ts +2 -0
  64. package/dist/components/chatbotV2/components/contextPanel/index.d.ts.map +1 -0
  65. package/dist/components/chatbotV2/components/emailDialog/EmailDialog.d.ts +10 -0
  66. package/dist/components/chatbotV2/components/emailDialog/EmailDialog.d.ts.map +1 -0
  67. package/dist/components/chatbotV2/components/entityItem/EntityItem.d.ts +7 -0
  68. package/dist/components/chatbotV2/components/entityItem/EntityItem.d.ts.map +1 -0
  69. package/dist/components/chatbotV2/components/entityItem/index.d.ts +2 -0
  70. package/dist/components/chatbotV2/components/entityItem/index.d.ts.map +1 -0
  71. package/dist/components/chatbotV2/components/followup/Followup.d.ts +3 -0
  72. package/dist/components/chatbotV2/components/followup/Followup.d.ts.map +1 -0
  73. package/dist/components/chatbotV2/components/index.d.ts +18 -0
  74. package/dist/components/chatbotV2/components/index.d.ts.map +1 -0
  75. package/dist/components/chatbotV2/components/interactionPrompt/InteractionPrompt.d.ts +8 -0
  76. package/dist/components/chatbotV2/components/interactionPrompt/InteractionPrompt.d.ts.map +1 -0
  77. package/dist/components/chatbotV2/components/interactionPrompt/index.d.ts +2 -0
  78. package/dist/components/chatbotV2/components/interactionPrompt/index.d.ts.map +1 -0
  79. package/dist/components/chatbotV2/components/loadingIndicator/LoadingIndicator.d.ts +3 -0
  80. package/dist/components/chatbotV2/components/loadingIndicator/LoadingIndicator.d.ts.map +1 -0
  81. package/dist/components/chatbotV2/components/loadingIndicator/index.d.ts +2 -0
  82. package/dist/components/chatbotV2/components/loadingIndicator/index.d.ts.map +1 -0
  83. package/dist/components/chatbotV2/components/messageItem/MessageItem.d.ts +12 -0
  84. package/dist/components/chatbotV2/components/messageItem/MessageItem.d.ts.map +1 -0
  85. package/dist/components/chatbotV2/components/messageItem/index.d.ts +2 -0
  86. package/dist/components/chatbotV2/components/messageItem/index.d.ts.map +1 -0
  87. package/dist/components/chatbotV2/components/messageList/MessageList.d.ts +11 -0
  88. package/dist/components/chatbotV2/components/messageList/MessageList.d.ts.map +1 -0
  89. package/dist/components/chatbotV2/components/messageList/index.d.ts +2 -0
  90. package/dist/components/chatbotV2/components/messageList/index.d.ts.map +1 -0
  91. package/dist/components/chatbotV2/components/questionForm/QuestionForm.d.ts +15 -0
  92. package/dist/components/chatbotV2/components/questionForm/QuestionForm.d.ts.map +1 -0
  93. package/dist/components/chatbotV2/components/questionForm/index.d.ts +2 -0
  94. package/dist/components/chatbotV2/components/questionForm/index.d.ts.map +1 -0
  95. package/dist/components/chatbotV2/components/refetchSession/RefetchSession.d.ts +8 -0
  96. package/dist/components/chatbotV2/components/refetchSession/RefetchSession.d.ts.map +1 -0
  97. package/dist/components/chatbotV2/components/regenerateButton/RegenerateButton.d.ts +7 -0
  98. package/dist/components/chatbotV2/components/regenerateButton/RegenerateButton.d.ts.map +1 -0
  99. package/dist/components/chatbotV2/components/regenerateButton/index.d.ts +2 -0
  100. package/dist/components/chatbotV2/components/regenerateButton/index.d.ts.map +1 -0
  101. package/dist/components/chatbotV2/components/selectedContexts/SelectedContexts.d.ts +8 -0
  102. package/dist/components/chatbotV2/components/selectedContexts/SelectedContexts.d.ts.map +1 -0
  103. package/dist/components/chatbotV2/components/statusUpdates/StatusUpdates.d.ts +10 -0
  104. package/dist/components/chatbotV2/components/statusUpdates/StatusUpdates.d.ts.map +1 -0
  105. package/dist/components/chatbotV2/components/statusUpdates/index.d.ts +2 -0
  106. package/dist/components/chatbotV2/components/statusUpdates/index.d.ts.map +1 -0
  107. package/dist/components/chatbotV2/components/todoProgress/TodoProgress.d.ts +8 -0
  108. package/dist/components/chatbotV2/components/todoProgress/TodoProgress.d.ts.map +1 -0
  109. package/dist/components/chatbotV2/components/todoProgress/index.d.ts +2 -0
  110. package/dist/components/chatbotV2/components/todoProgress/index.d.ts.map +1 -0
  111. package/dist/components/chatbotV2/hooks/transports.d.ts +126 -0
  112. package/dist/components/chatbotV2/hooks/transports.d.ts.map +1 -0
  113. package/dist/components/chatbotV2/hooks/useAgentChat.d.ts +41 -0
  114. package/dist/components/chatbotV2/hooks/useAgentChat.d.ts.map +1 -0
  115. package/dist/components/chatbotV2/hooks/useEntityDetection.d.ts +4 -0
  116. package/dist/components/chatbotV2/hooks/useEntityDetection.d.ts.map +1 -0
  117. package/dist/components/chatbotV2/hooks/useFeedback.d.ts +5 -0
  118. package/dist/components/chatbotV2/hooks/useFeedback.d.ts.map +1 -0
  119. package/dist/components/chatbotV2/index.d.ts +22 -0
  120. package/dist/components/chatbotV2/index.d.ts.map +1 -0
  121. package/dist/components/chatbotV2/store/chatSlice.d.ts +65 -0
  122. package/dist/components/chatbotV2/store/chatSlice.d.ts.map +1 -0
  123. package/dist/components/chatbotV2/store/index.d.ts +10 -0
  124. package/dist/components/chatbotV2/store/index.d.ts.map +1 -0
  125. package/dist/{types-ByRPUpXR.d.ts → components/chatbotV2/types.d.ts} +77 -195
  126. package/dist/components/chatbotV2/types.d.ts.map +1 -0
  127. package/dist/components/chatbotV2/utils/entityDetection.d.ts +12 -0
  128. package/dist/components/chatbotV2/utils/entityDetection.d.ts.map +1 -0
  129. package/dist/components/chatbotV2/utils/streamProcessor.d.ts +98 -0
  130. package/dist/components/chatbotV2/utils/streamProcessor.d.ts.map +1 -0
  131. package/dist/components/chatbotV2/utils.d.ts +3 -0
  132. package/dist/components/chatbotV2/utils.d.ts.map +1 -0
  133. package/dist/components/dbtDocs/api/index.d.ts +16 -0
  134. package/dist/components/dbtDocs/api/index.d.ts.map +1 -0
  135. package/dist/components/dbtDocs/collaboration/ConversationHighlighter.d.ts +6 -0
  136. package/dist/components/dbtDocs/collaboration/ConversationHighlighter.d.ts.map +1 -0
  137. package/dist/components/dbtDocs/collaboration/ConversationInputForm.d.ts +13 -0
  138. package/dist/components/dbtDocs/collaboration/ConversationInputForm.d.ts.map +1 -0
  139. package/dist/components/dbtDocs/collaboration/ConversationsHighlighter.d.ts +3 -0
  140. package/dist/components/dbtDocs/collaboration/ConversationsHighlighter.d.ts.map +1 -0
  141. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationComponents.d.ts +3 -0
  142. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationComponents.d.ts.map +1 -0
  143. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationProvider.d.ts +22 -0
  144. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationProvider.d.ts.map +1 -0
  145. package/dist/components/dbtDocs/collaboration/DbtDocsConversationsRightPanel.d.ts +3 -0
  146. package/dist/components/dbtDocs/collaboration/DbtDocsConversationsRightPanel.d.ts.map +1 -0
  147. package/dist/components/dbtDocs/collaboration/DbtDocsReducer.d.ts +1931 -0
  148. package/dist/components/dbtDocs/collaboration/DbtDocsReducer.d.ts.map +1 -0
  149. package/dist/components/dbtDocs/collaboration/HighlightAnchor.d.ts +12 -0
  150. package/dist/components/dbtDocs/collaboration/HighlightAnchor.d.ts.map +1 -0
  151. package/dist/components/dbtDocs/collaboration/HighlightBlocker.d.ts +7 -0
  152. package/dist/components/dbtDocs/collaboration/HighlightBlocker.d.ts.map +1 -0
  153. package/dist/components/dbtDocs/collaboration/HotspotButton.d.ts +7 -0
  154. package/dist/components/dbtDocs/collaboration/HotspotButton.d.ts.map +1 -0
  155. package/dist/components/dbtDocs/collaboration/NewConversationForm.d.ts +3 -0
  156. package/dist/components/dbtDocs/collaboration/NewConversationForm.d.ts.map +1 -0
  157. package/dist/components/dbtDocs/collaboration/ShowConversationsButton.d.ts +3 -0
  158. package/dist/components/dbtDocs/collaboration/ShowConversationsButton.d.ts.map +1 -0
  159. package/dist/components/dbtDocs/collaboration/constants.d.ts +20 -0
  160. package/dist/components/dbtDocs/collaboration/constants.d.ts.map +1 -0
  161. package/dist/components/dbtDocs/collaboration/conversations/Conversation.d.ts +9 -0
  162. package/dist/components/dbtDocs/collaboration/conversations/Conversation.d.ts.map +1 -0
  163. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroup.d.ts +10 -0
  164. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroup.d.ts.map +1 -0
  165. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroups.d.ts +3 -0
  166. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroups.d.ts.map +1 -0
  167. package/dist/components/dbtDocs/collaboration/conversations/ConversationHeader.d.ts +13 -0
  168. package/dist/components/dbtDocs/collaboration/conversations/ConversationHeader.d.ts.map +1 -0
  169. package/dist/components/dbtDocs/collaboration/conversations/ConversationHighlightText.d.ts +6 -0
  170. package/dist/components/dbtDocs/collaboration/conversations/ConversationHighlightText.d.ts.map +1 -0
  171. package/dist/components/dbtDocs/collaboration/conversations/ConversationReplyForm.d.ts +9 -0
  172. package/dist/components/dbtDocs/collaboration/conversations/ConversationReplyForm.d.ts.map +1 -0
  173. package/dist/components/dbtDocs/collaboration/conversations/ResolveButton.d.ts +8 -0
  174. package/dist/components/dbtDocs/collaboration/conversations/ResolveButton.d.ts.map +1 -0
  175. package/dist/components/dbtDocs/collaboration/conversations/context/ConversationsProvider.d.ts +18 -0
  176. package/dist/components/dbtDocs/collaboration/conversations/context/ConversationsProvider.d.ts.map +1 -0
  177. package/dist/components/dbtDocs/collaboration/conversations/context/types.d.ts +44 -0
  178. package/dist/components/dbtDocs/collaboration/conversations/context/types.d.ts.map +1 -0
  179. package/dist/components/dbtDocs/collaboration/conversations/useConversations.d.ts +5 -0
  180. package/dist/components/dbtDocs/collaboration/conversations/useConversations.d.ts.map +1 -0
  181. package/dist/components/dbtDocs/collaboration/highlightUtils.d.ts +28 -0
  182. package/dist/components/dbtDocs/collaboration/highlightUtils.d.ts.map +1 -0
  183. package/dist/components/dbtDocs/collaboration/mentions/MentionsInput.d.ts +11 -0
  184. package/dist/components/dbtDocs/collaboration/mentions/MentionsInput.d.ts.map +1 -0
  185. package/dist/components/dbtDocs/collaboration/mentions/index.d.ts +32 -0
  186. package/dist/components/dbtDocs/collaboration/mentions/index.d.ts.map +1 -0
  187. package/dist/components/dbtDocs/collaboration/newConversationUtils.d.ts +15 -0
  188. package/dist/components/dbtDocs/collaboration/newConversationUtils.d.ts.map +1 -0
  189. package/dist/components/dbtDocs/collaboration/selectionEndEvent.d.ts +17 -0
  190. package/dist/components/dbtDocs/collaboration/selectionEndEvent.d.ts.map +1 -0
  191. package/dist/components/dbtDocs/collaboration/types.d.ts +15 -0
  192. package/dist/components/dbtDocs/collaboration/types.d.ts.map +1 -0
  193. package/dist/components/dbtDocs/collaboration/useConversationUsers.d.ts +5 -0
  194. package/dist/components/dbtDocs/collaboration/useConversationUsers.d.ts.map +1 -0
  195. package/dist/components/dbtDocs/collaboration/useDbtDocsCollaboration.d.ts +7 -0
  196. package/dist/components/dbtDocs/collaboration/useDbtDocsCollaboration.d.ts.map +1 -0
  197. package/dist/components/dbtDocs/collaboration/useHighlight.d.ts +12 -0
  198. package/dist/components/dbtDocs/collaboration/useHighlight.d.ts.map +1 -0
  199. package/dist/components/dbtDocs/details/AddCommentButton.d.ts +3 -0
  200. package/dist/components/dbtDocs/details/AddCommentButton.d.ts.map +1 -0
  201. package/dist/components/dbtDocs/details/AddCommentOnCodeButton.d.ts +3 -0
  202. package/dist/components/dbtDocs/details/AddCommentOnCodeButton.d.ts.map +1 -0
  203. package/dist/components/dbtDocs/details/AddCommentOnModelDescriptionButton.d.ts +3 -0
  204. package/dist/components/dbtDocs/details/AddCommentOnModelDescriptionButton.d.ts.map +1 -0
  205. package/dist/components/dbtDocs/details/DbtDocs.d.ts +10 -0
  206. package/dist/components/dbtDocs/details/DbtDocs.d.ts.map +1 -0
  207. package/dist/components/dbtDocs/details/DbtDocsDetails.d.ts +3 -0
  208. package/dist/components/dbtDocs/details/DbtDocsDetails.d.ts.map +1 -0
  209. package/dist/components/dbtDocs/details/DbtDocsRenderer.d.ts +8 -0
  210. package/dist/components/dbtDocs/details/DbtDocsRenderer.d.ts.map +1 -0
  211. package/dist/components/dbtDocs/details/dbtDocsUtils.d.ts +5 -0
  212. package/dist/components/dbtDocs/details/dbtDocsUtils.d.ts.map +1 -0
  213. package/dist/components/dbtDocs/index.d.ts +8 -0
  214. package/dist/components/dbtDocs/index.d.ts.map +1 -0
  215. package/dist/components/dbtDocs/resources/dbtDocsAngularApp.d.ts +3 -0
  216. package/dist/components/dbtDocs/resources/dbtDocsAngularApp.d.ts.map +1 -0
  217. package/dist/components/lineage/api/index.d.ts +65 -0
  218. package/dist/components/lineage/api/index.d.ts.map +1 -0
  219. package/dist/components/lineage/assets/icons/index.d.ts +61 -0
  220. package/dist/components/lineage/assets/icons/index.d.ts.map +1 -0
  221. package/dist/components/lineage/cllUtils.d.ts +17 -0
  222. package/dist/components/lineage/cllUtils.d.ts.map +1 -0
  223. package/dist/components/lineage/components/AutoExpansionPopover.d.ts +3 -0
  224. package/dist/components/lineage/components/AutoExpansionPopover.d.ts.map +1 -0
  225. package/dist/components/lineage/components/BetterPopover.d.ts +14 -0
  226. package/dist/components/lineage/components/BetterPopover.d.ts.map +1 -0
  227. package/dist/components/lineage/components/Chip.d.ts +6 -0
  228. package/dist/components/lineage/components/Chip.d.ts.map +1 -0
  229. package/dist/components/lineage/components/Column.d.ts +52 -0
  230. package/dist/components/lineage/components/Column.d.ts.map +1 -0
  231. package/dist/components/lineage/components/ColumnRow.d.ts +8 -0
  232. package/dist/components/lineage/components/ColumnRow.d.ts.map +1 -0
  233. package/dist/components/lineage/components/CustomNodes.d.ts +16 -0
  234. package/dist/components/lineage/components/CustomNodes.d.ts.map +1 -0
  235. package/dist/components/lineage/components/DashboardDetails.d.ts +12 -0
  236. package/dist/components/lineage/components/DashboardDetails.d.ts.map +1 -0
  237. package/dist/components/lineage/components/DynamicLineage.d.ts +9 -0
  238. package/dist/components/lineage/components/DynamicLineage.d.ts.map +1 -0
  239. package/dist/components/lineage/components/ExpandWithConfidenceCard.d.ts +3 -0
  240. package/dist/components/lineage/components/ExpandWithConfidenceCard.d.ts.map +1 -0
  241. package/dist/components/lineage/components/ExportButton.d.ts +6 -0
  242. package/dist/components/lineage/components/ExportButton.d.ts.map +1 -0
  243. package/dist/components/lineage/components/ExportFinalLineageModal.d.ts +5 -0
  244. package/dist/components/lineage/components/ExportFinalLineageModal.d.ts.map +1 -0
  245. package/dist/components/lineage/components/ExposureDetails.d.ts +6 -0
  246. package/dist/components/lineage/components/ExposureDetails.d.ts.map +1 -0
  247. package/dist/components/lineage/components/Feedback.d.ts +5 -0
  248. package/dist/components/lineage/components/Feedback.d.ts.map +1 -0
  249. package/dist/components/lineage/components/Form.d.ts +5 -0
  250. package/dist/components/lineage/components/Form.d.ts.map +1 -0
  251. package/dist/components/lineage/components/FunctionDetails.d.ts +3 -0
  252. package/dist/components/lineage/components/FunctionDetails.d.ts.map +1 -0
  253. package/dist/components/lineage/components/LineageLegend.d.ts +3 -0
  254. package/dist/components/lineage/components/LineageLegend.d.ts.map +1 -0
  255. package/dist/components/lineage/components/LineageModals.d.ts +3 -0
  256. package/dist/components/lineage/components/LineageModals.d.ts.map +1 -0
  257. package/dist/components/lineage/components/Loader/index.d.ts +7 -0
  258. package/dist/components/lineage/components/Loader/index.d.ts.map +1 -0
  259. package/dist/components/lineage/components/MoreTables.d.ts +11 -0
  260. package/dist/components/lineage/components/MoreTables.d.ts.map +1 -0
  261. package/dist/components/lineage/components/Purpose.d.ts +6 -0
  262. package/dist/components/lineage/components/Purpose.d.ts.map +1 -0
  263. package/dist/components/lineage/components/ResetButton.d.ts +6 -0
  264. package/dist/components/lineage/components/ResetButton.d.ts.map +1 -0
  265. package/dist/components/lineage/components/Settings.d.ts +6 -0
  266. package/dist/components/lineage/components/Settings.d.ts.map +1 -0
  267. package/dist/components/lineage/components/SettingsButton.d.ts +3 -0
  268. package/dist/components/lineage/components/SettingsButton.d.ts.map +1 -0
  269. package/dist/components/lineage/components/SidebarErrorBoundary.d.ts +13 -0
  270. package/dist/components/lineage/components/SidebarErrorBoundary.d.ts.map +1 -0
  271. package/dist/components/lineage/components/SnowflakeStageDetails.d.ts +3 -0
  272. package/dist/components/lineage/components/SnowflakeStageDetails.d.ts.map +1 -0
  273. package/dist/components/lineage/components/SqlLineage.d.ts +12 -0
  274. package/dist/components/lineage/components/SqlLineage.d.ts.map +1 -0
  275. package/dist/components/lineage/components/StaticLineage.d.ts +17 -0
  276. package/dist/components/lineage/components/StaticLineage.d.ts.map +1 -0
  277. package/dist/components/lineage/components/TableDetails.d.ts +53 -0
  278. package/dist/components/lineage/components/TableDetails.d.ts.map +1 -0
  279. package/dist/components/lineage/components/Tags/index.d.ts +5 -0
  280. package/dist/components/lineage/components/Tags/index.d.ts.map +1 -0
  281. package/dist/components/lineage/components/ViewsTypeBadge.d.ts +5 -0
  282. package/dist/components/lineage/components/ViewsTypeBadge.d.ts.map +1 -0
  283. package/dist/components/lineage/components/sidebarModal/SidebarModal.d.ts +9 -0
  284. package/dist/components/lineage/components/sidebarModal/SidebarModal.d.ts.map +1 -0
  285. package/dist/components/lineage/constants.d.ts +12 -0
  286. package/dist/components/lineage/constants.d.ts.map +1 -0
  287. package/dist/components/lineage/context/LineageProvider.d.ts +35 -0
  288. package/dist/components/lineage/context/LineageProvider.d.ts.map +1 -0
  289. package/dist/components/lineage/context/LineageSlice.d.ts +4673 -0
  290. package/dist/components/lineage/context/LineageSlice.d.ts.map +1 -0
  291. package/dist/components/lineage/context/types.d.ts +57 -0
  292. package/dist/components/lineage/context/types.d.ts.map +1 -0
  293. package/dist/components/lineage/graph.d.ts +43 -0
  294. package/dist/components/lineage/graph.d.ts.map +1 -0
  295. package/dist/components/lineage/index.d.ts +8 -0
  296. package/dist/components/lineage/index.d.ts.map +1 -0
  297. package/dist/{lineage/index.d.ts → components/lineage/types.d.ts} +59 -92
  298. package/dist/components/lineage/types.d.ts.map +1 -0
  299. package/dist/components/lineage/utils.d.ts +100 -0
  300. package/dist/components/lineage/utils.d.ts.map +1 -0
  301. package/dist/components/shared/index.d.ts +2 -0
  302. package/dist/components/shared/index.d.ts.map +1 -0
  303. package/dist/components/shared/types.d.ts +18 -0
  304. package/dist/components/shared/types.d.ts.map +1 -0
  305. package/dist/components/teammate/AddLearningForm.d.ts +13 -0
  306. package/dist/components/teammate/AddLearningForm.d.ts.map +1 -0
  307. package/dist/components/teammate/CoachForm.d.ts +10 -0
  308. package/dist/components/teammate/CoachForm.d.ts.map +1 -0
  309. package/dist/components/teammate/CoachFormButton.d.ts +3 -0
  310. package/dist/components/teammate/CoachFormButton.d.ts.map +1 -0
  311. package/dist/components/teammate/CoachFormInput.d.ts +8 -0
  312. package/dist/components/teammate/CoachFormInput.d.ts.map +1 -0
  313. package/dist/components/teammate/LearningRow.d.ts +10 -0
  314. package/dist/components/teammate/LearningRow.d.ts.map +1 -0
  315. package/dist/components/teammate/LearningsList.d.ts +11 -0
  316. package/dist/components/teammate/LearningsList.d.ts.map +1 -0
  317. package/dist/components/teammate/TeamMateProvider.d.ts +8 -0
  318. package/dist/components/teammate/TeamMateProvider.d.ts.map +1 -0
  319. package/dist/components/teammate/TeamMates.d.ts +10 -0
  320. package/dist/components/teammate/TeamMates.d.ts.map +1 -0
  321. package/dist/components/teammate/TeamMatesCard.d.ts +10 -0
  322. package/dist/components/teammate/TeamMatesCard.d.ts.map +1 -0
  323. package/dist/components/teammate/alertManager/AlertManagerDisplay.d.ts +4 -0
  324. package/dist/components/teammate/alertManager/AlertManagerDisplay.d.ts.map +1 -0
  325. package/dist/components/teammate/assets/index.d.ts +8 -0
  326. package/dist/components/teammate/assets/index.d.ts.map +1 -0
  327. package/dist/components/teammate/index.d.ts +11 -0
  328. package/dist/components/teammate/index.d.ts.map +1 -0
  329. package/dist/components/teammate/projectGovernor/ChecksInput.d.ts +7 -0
  330. package/dist/components/teammate/projectGovernor/ChecksInput.d.ts.map +1 -0
  331. package/dist/components/teammate/projectGovernor/ProjectGovernanceCheck.d.ts +8 -0
  332. package/dist/components/teammate/projectGovernor/ProjectGovernanceCheck.d.ts.map +1 -0
  333. package/dist/components/teammate/projectGovernor/ProjectGovernorDisplay.d.ts +3 -0
  334. package/dist/components/teammate/projectGovernor/ProjectGovernorDisplay.d.ts.map +1 -0
  335. package/dist/components/teammate/projectGovernor/ProjectGovernorForm.d.ts +7 -0
  336. package/dist/components/teammate/projectGovernor/ProjectGovernorForm.d.ts.map +1 -0
  337. package/dist/components/teammate/projectGovernor/types.d.ts +48 -0
  338. package/dist/components/teammate/projectGovernor/types.d.ts.map +1 -0
  339. package/dist/components/teammate/teamMateSlice.d.ts +15 -0
  340. package/dist/components/teammate/teamMateSlice.d.ts.map +1 -0
  341. package/dist/components/teammate/teamMatesConfig.d.ts +3 -0
  342. package/dist/components/teammate/teamMatesConfig.d.ts.map +1 -0
  343. package/dist/components/teammate/teradata/HelloMessage.d.ts +3 -0
  344. package/dist/components/teammate/teradata/HelloMessage.d.ts.map +1 -0
  345. package/dist/components/teammate/teradata/MigratorDisplay.d.ts +4 -0
  346. package/dist/components/teammate/teradata/MigratorDisplay.d.ts.map +1 -0
  347. package/dist/components/teammate/types.d.ts +113 -0
  348. package/dist/components/teammate/types.d.ts.map +1 -0
  349. package/dist/components/teammate/useTeamMateContext.d.ts +3 -0
  350. package/dist/components/teammate/useTeamMateContext.d.ts.map +1 -0
  351. package/dist/components/user/ProfileImageByUser.d.ts +7 -0
  352. package/dist/components/user/ProfileImageByUser.d.ts.map +1 -0
  353. package/dist/components/user/index.d.ts +3 -0
  354. package/dist/components/user/index.d.ts.map +1 -0
  355. package/dist/components/user/types.d.ts +7 -0
  356. package/dist/components/user/types.d.ts.map +1 -0
  357. package/dist/dbtDocs.css +297 -0
  358. package/dist/dbtDocs.css.map +1 -0
  359. package/dist/dbtDocs.js +1 -0
  360. package/dist/index.d.ts +14 -285
  361. package/dist/index.d.ts.map +1 -0
  362. package/dist/index.js +1 -40
  363. package/dist/lineage.css +1221 -0
  364. package/dist/lineage.css.map +1 -0
  365. package/dist/lineage.js +7267 -0
  366. package/dist/lineage.js.map +1 -0
  367. package/dist/rslib-runtime.js +20 -0
  368. package/dist/rslib-runtime.js.map +1 -0
  369. package/dist/shared/AutosizeTextarea.d.ts +19 -0
  370. package/dist/shared/AutosizeTextarea.d.ts.map +1 -0
  371. package/dist/shared/Collapse.d.ts +7 -0
  372. package/dist/shared/Collapse.d.ts.map +1 -0
  373. package/dist/shared/Table.d.ts +4 -0
  374. package/dist/shared/Table.d.ts.map +1 -0
  375. package/dist/shared/index.d.ts +3 -0
  376. package/dist/shared/index.d.ts.map +1 -0
  377. package/dist/shared/utils.d.ts +3 -0
  378. package/dist/shared/utils.d.ts.map +1 -0
  379. package/dist/static/image/postgres.png +0 -0
  380. package/dist/static/image/s3.png +0 -0
  381. package/dist/static/image/snowflake.png +0 -0
  382. package/dist/static/svg/botIcon.svg +15 -0
  383. package/dist/static/svg/brackets.svg +5 -0
  384. package/dist/static/svg/case-sensitive.svg +5 -0
  385. package/dist/static/svg/docgen.svg +23 -0
  386. package/dist/static/svg/half-circle.svg +5 -0
  387. package/dist/static/svg/opportunities.svg +25 -0
  388. package/dist/static/svg/split-horizontal.svg +5 -0
  389. package/dist/static/svg/sqlExpert.svg +24 -0
  390. package/dist/static/svg/summary.svg +25 -0
  391. package/dist/styles.css +1638 -0
  392. package/dist/styles.css.map +1 -0
  393. package/dist/teammate.css +124 -0
  394. package/dist/teammate.css.map +1 -0
  395. package/dist/teammate.js +5655 -0
  396. package/dist/teammate.js.map +1 -0
  397. package/dist/user.css +14 -0
  398. package/dist/user.css.map +1 -0
  399. package/dist/user.js +13 -0
  400. package/dist/user.js.map +1 -0
  401. package/package.json +116 -34
  402. package/dist/Button-42Dj_nRE.d.ts +0 -28
  403. package/dist/CoachForm.css +0 -1
  404. package/dist/CoachForm.js +0 -44445
  405. package/dist/DbtDocsRenderer.js +0 -45647
  406. package/dist/IconEye.js +0 -11
  407. package/dist/Stack.js +0 -7170
  408. package/dist/Switch.js +0 -128
  409. package/dist/ToggleGroup.js +0 -8543
  410. package/dist/_basePickBy.js +0 -151
  411. package/dist/_baseUniq.js +0 -615
  412. package/dist/arc.js +0 -83
  413. package/dist/architecture-U656AL7Q.js +0 -5
  414. package/dist/architectureDiagram-VXUJARFQ.js +0 -4666
  415. package/dist/assets/icons/index.js +0 -56
  416. package/dist/blockDiagram-VD42YOAC.js +0 -2266
  417. package/dist/c4Diagram-YG6GDRKO.js +0 -1582
  418. package/dist/channel.js +0 -5
  419. package/dist/chatbotV2/index.d.ts +0 -359
  420. package/dist/chatbotV2/index.js +0 -58
  421. package/dist/chunk-4BX2VUAB.js +0 -9
  422. package/dist/chunk-55IACEB6.js +0 -9
  423. package/dist/chunk-B4BG7PRW.js +0 -1377
  424. package/dist/chunk-DI55MBZ5.js +0 -1382
  425. package/dist/chunk-FMBD7UC4.js +0 -19
  426. package/dist/chunk-QN33PNHL.js +0 -20
  427. package/dist/chunk-QZHKN3VN.js +0 -15
  428. package/dist/chunk-TZMSLE5B.js +0 -64
  429. package/dist/classDiagram-2ON5EDUG.js +0 -17
  430. package/dist/classDiagram-v2-WZHVMYZB.js +0 -17
  431. package/dist/clone.js +0 -8
  432. package/dist/cose-bilkent-S5V4N54A.js +0 -2606
  433. package/dist/cytoscape.esm.js +0 -18731
  434. package/dist/dagre-6UL2VRFP.js +0 -447
  435. package/dist/dayjs.min.js +0 -302
  436. package/dist/defaultLocale.js +0 -171
  437. package/dist/diagram-PSM6KHXK.js +0 -535
  438. package/dist/diagram-QEK2KX5R.js +0 -221
  439. package/dist/diagram-S2PKOQOG.js +0 -143
  440. package/dist/erDiagram-Q2GNP2WA.js +0 -843
  441. package/dist/flowDiagram-NV44I4VS.js +0 -1628
  442. package/dist/ganttDiagram-LVOFAZNH.js +0 -2500
  443. package/dist/gitGraph-F6HP7TQM.js +0 -5
  444. package/dist/gitGraphDiagram-NY62KEGX.js +0 -713
  445. package/dist/graph.js +0 -247
  446. package/dist/index.css +0 -1
  447. package/dist/index2.js +0 -689
  448. package/dist/info-NVLQJR56.js +0 -5
  449. package/dist/infoDiagram-F6ZHWCRC.js +0 -24
  450. package/dist/init.js +0 -16
  451. package/dist/journeyDiagram-XKPGCS4Q.js +0 -837
  452. package/dist/kanban-definition-3W4ZIXB7.js +0 -720
  453. package/dist/katex.js +0 -11691
  454. package/dist/layout.js +0 -1324
  455. package/dist/lineage/index.js +0 -7328
  456. package/dist/linear.js +0 -259
  457. package/dist/main.css +0 -1
  458. package/dist/main.js +0 -4566
  459. package/dist/mermaid-parser.core.js +0 -12921
  460. package/dist/mindmap-definition-VGOIOE7T.js +0 -786
  461. package/dist/ordinal.js +0 -61
  462. package/dist/packet-BFZMPI3H.js +0 -5
  463. package/dist/pie-7BOR55EZ.js +0 -5
  464. package/dist/pieDiagram-ADFJNKIX.js +0 -163
  465. package/dist/quadrantDiagram-AYHSOK5B.js +0 -1025
  466. package/dist/radar-NHE76QYJ.js +0 -5
  467. package/dist/redux-toolkit.css +0 -1
  468. package/dist/redux-toolkit.modern.js +0 -12525
  469. package/dist/requirementDiagram-UZGBJVZJ.js +0 -852
  470. package/dist/sankeyDiagram-TZEHDZUN.js +0 -811
  471. package/dist/sequenceDiagram-WL72ISMW.js +0 -2523
  472. package/dist/shadcn/index.d.ts +0 -761
  473. package/dist/shadcn/index.js +0 -8680
  474. package/dist/stateDiagram-FKZM4ZOC.js +0 -264
  475. package/dist/stateDiagram-v2-4FDKWEC3.js +0 -17
  476. package/dist/storybook/Accordion.stories.tsx +0 -52
  477. package/dist/storybook/Alert.stories.tsx +0 -101
  478. package/dist/storybook/AlertDialog.stories.tsx +0 -161
  479. package/dist/storybook/AutosizeTextarea.stories.tsx +0 -52
  480. package/dist/storybook/Avatar.stories.tsx +0 -58
  481. package/dist/storybook/Badge.stories.tsx +0 -43
  482. package/dist/storybook/Button.stories.tsx +0 -67
  483. package/dist/storybook/Calendar.stories.tsx +0 -103
  484. package/dist/storybook/Card.stories.tsx +0 -69
  485. package/dist/storybook/Carousel.stories.tsx +0 -274
  486. package/dist/storybook/Checkbox.stories.tsx +0 -65
  487. package/dist/storybook/Combobox.stories.tsx +0 -1629
  488. package/dist/storybook/Command.stories.tsx +0 -35
  489. package/dist/storybook/DateRange.stories.tsx +0 -540
  490. package/dist/storybook/DebouncedInput.stories.tsx +0 -179
  491. package/dist/storybook/DropdownMenu.stories.tsx +0 -36
  492. package/dist/storybook/Form.stories.tsx +0 -114
  493. package/dist/storybook/HoverCard.stories.tsx +0 -99
  494. package/dist/storybook/Input.stories.tsx +0 -156
  495. package/dist/storybook/InputGroup.stories.tsx +0 -352
  496. package/dist/storybook/Label.stories.tsx +0 -42
  497. package/dist/storybook/Menubar.stories.tsx +0 -159
  498. package/dist/storybook/Pagination.stories.tsx +0 -152
  499. package/dist/storybook/Popover.stories.tsx +0 -23
  500. package/dist/storybook/Progress.stories.tsx +0 -89
  501. package/dist/storybook/RadioGroup.stories.tsx +0 -58
  502. package/dist/storybook/Resizable.stories.tsx +0 -119
  503. package/dist/storybook/ScrollArea.stories.tsx +0 -101
  504. package/dist/storybook/Select.stories.tsx +0 -145
  505. package/dist/storybook/Sheet.stories.tsx +0 -69
  506. package/dist/storybook/Sidebar.stories.tsx +0 -97
  507. package/dist/storybook/Slider.stories.tsx +0 -79
  508. package/dist/storybook/Switch.stories.tsx +0 -90
  509. package/dist/storybook/Tabs.stories.tsx +0 -147
  510. package/dist/storybook/TagsInput.stories.tsx +0 -261
  511. package/dist/storybook/Textarea.stories.tsx +0 -50
  512. package/dist/storybook/Toast.stories.tsx +0 -107
  513. package/dist/storybook/Toggle.stories.tsx +0 -106
  514. package/dist/storybook/ToggleGroup.stories.tsx +0 -178
  515. package/dist/storybook/Tooltip.stories.tsx +0 -25
  516. package/dist/storybook/Typography.stories.tsx +0 -231
  517. package/dist/storybook/drag-and-drop-file-upload.stories.tsx +0 -99
  518. package/dist/timeline-definition-IT6M3QCI.js +0 -802
  519. package/dist/treemap-KMMF4GRG.js +0 -5
  520. package/dist/xychartDiagram-PRI3JC2R.js +0 -1341
  521. package/readme.md +0 -11
package/dist/main.js DELETED
@@ -1,4566 +0,0 @@
1
- import { d as dt, C as Yn } from "./dayjs.min.js";
2
- import { ce as un, cf as Wn, cg as Xn, ch as Kn, ci as Gn, cj as Zn, ck as rt, cl as Qn, cm as Jn } from "./CoachForm.js";
3
- import { g as yt, k as ln, A as ve, l as er, I as Ie, u as cn, m as tr } from "./redux-toolkit.modern.js";
4
- import { B as ye, a4 as $e, a5 as He, a6 as nr, X as oe, a7 as rr, T as or, a0 as ft, Y as ir } from "./Stack.js";
5
- import { j as h, A as dn, e as sr, f as ar, a as ur, d as lr, D as cr, E as dr, c as fr, b as pr } from "./index2.js";
6
- import * as te from "react";
7
- import Z, { createContext as _e, useReducer as fn, useCallback as we, useMemo as fe, useContext as be, useLayoutEffect as gr, useEffect as le, useRef as Se, useId as pn, useInsertionEffect as hr, Children as De, isValidElement as vr, useState as re, lazy as mr } from "react";
8
- import Er, { createPortal as bt } from "react-dom";
9
- import { u as yr, F as Mt, a as br, A as gn, N as Lt, B as Cr } from "./ToggleGroup.js";
10
- import { S as Sr } from "./Switch.js";
11
- import './main.css';var Ct = /* @__PURE__ */ ((e) => (e.DBT_DOCS = "dbt-docs", e.DOCUMENTATION_EDITOR = "documentation-editor", e.SAAS = "saas", e))(Ct || {});
12
- const _r = () => {
13
- var r, i, n;
14
- const e = (n = (i = (r = window.location.hash) == null ? void 0 : r.split("#")[1]) == null ? void 0 : i.replace("!/", "")) == null ? void 0 : n.split("/");
15
- return { name: e == null ? void 0 : e[1], resourceType: e == null ? void 0 : e[0] };
16
- };
17
- var hn = { exports: {} };
18
- /*! web-highlighter v0.7.4 https://github.com/alienzhou/web-highlighter */
19
- (function(e, r) {
20
- (function(i, n) {
21
- e.exports = n();
22
- })(window, function() {
23
- return function(i) {
24
- var n = {};
25
- function t(o) {
26
- if (n[o]) return n[o].exports;
27
- var s = n[o] = { i: o, l: !1, exports: {} };
28
- return i[o].call(s.exports, s, s.exports, t), s.l = !0, s.exports;
29
- }
30
- return t.m = i, t.c = n, t.d = function(o, s, u) {
31
- t.o(o, s) || Object.defineProperty(o, s, { enumerable: !0, get: u });
32
- }, t.r = function(o) {
33
- typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(o, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(o, "__esModule", { value: !0 });
34
- }, t.t = function(o, s) {
35
- if (1 & s && (o = t(o)), 8 & s || 4 & s && typeof o == "object" && o && o.__esModule) return o;
36
- var u = /* @__PURE__ */ Object.create(null);
37
- if (t.r(u), Object.defineProperty(u, "default", { enumerable: !0, value: o }), 2 & s && typeof o != "string") for (var l in o) t.d(u, l, (function(d) {
38
- return o[d];
39
- }).bind(null, l));
40
- return u;
41
- }, t.n = function(o) {
42
- var s = o && o.__esModule ? function() {
43
- return o.default;
44
- } : function() {
45
- return o;
46
- };
47
- return t.d(s, "a", s), s;
48
- }, t.o = function(o, s) {
49
- return Object.prototype.hasOwnProperty.call(o, s);
50
- }, t.p = "", t(t.s = 7);
51
- }([function(i, n, t) {
52
- var o, s = this && this.__extends || (o = function(c, f) {
53
- return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(g, p) {
54
- g.__proto__ = p;
55
- } || function(g, p) {
56
- for (var m in p) Object.prototype.hasOwnProperty.call(p, m) && (g[m] = p[m]);
57
- })(c, f);
58
- }, function(c, f) {
59
- function g() {
60
- this.constructor = c;
61
- }
62
- o(c, f), c.prototype = f === null ? Object.create(f) : (g.prototype = f.prototype, new g());
63
- }), u = this && this.__importDefault || function(c) {
64
- return c && c.__esModule ? c : { default: c };
65
- };
66
- Object.defineProperty(n, "__esModule", { value: !0 }), n.eventEmitter = n.INTERNAL_ERROR_EVENT = n.UNKNOWN_IDX = n.ROOT_IDX = n.getStylesheet = n.getDefaultOptions = n.CAMEL_DATASET_SPLIT_TYPE = n.CAMEL_DATASET_IDENTIFIER_EXTRA = n.CAMEL_DATASET_IDENTIFIER = n.DATASET_SPLIT_TYPE = n.DATASET_IDENTIFIER_EXTRA = n.DATASET_IDENTIFIER = n.STYLESHEET_ID = n.LOCAL_STORE_KEY = n.ID_DIVISION = void 0;
67
- var l = u(t(10)), d = u(t(2));
68
- n.ID_DIVISION = ";", n.LOCAL_STORE_KEY = "highlight-mengshou", n.STYLESHEET_ID = "highlight-mengshou-style", n.DATASET_IDENTIFIER = "highlight-id", n.DATASET_IDENTIFIER_EXTRA = "highlight-id-extra", n.DATASET_SPLIT_TYPE = "highlight-split-type", n.CAMEL_DATASET_IDENTIFIER = l.default(n.DATASET_IDENTIFIER), n.CAMEL_DATASET_IDENTIFIER_EXTRA = l.default(n.DATASET_IDENTIFIER_EXTRA), n.CAMEL_DATASET_SPLIT_TYPE = l.default(n.DATASET_SPLIT_TYPE), n.getDefaultOptions = function() {
69
- return { $root: document || document.documentElement, exceptSelectors: null, wrapTag: "span", verbose: !1, style: { className: "highlight-mengshou-wrap" } };
70
- }, n.getStylesheet = function() {
71
- return `
72
- .` + n.getDefaultOptions().style.className + ` {
73
- background: #ff9;
74
- cursor: pointer;
75
- }
76
- .` + n.getDefaultOptions().style.className + `.active {
77
- background: #ffb;
78
- }
79
- `;
80
- }, n.ROOT_IDX = -2, n.UNKNOWN_IDX = -1, n.INTERNAL_ERROR_EVENT = "error";
81
- var a = function(c) {
82
- function f() {
83
- return c !== null && c.apply(this, arguments) || this;
84
- }
85
- return s(f, c), f;
86
- }(d.default);
87
- n.eventEmitter = new a();
88
- }, function(i, n, t) {
89
- Object.defineProperty(n, "__esModule", { value: !0 }), n.UserInputEvent = n.SelectedNodeType = n.CreateFrom = n.EventType = n.ERROR = n.SplitType = void 0, function(o) {
90
- o.none = "none", o.head = "head", o.tail = "tail", o.both = "both";
91
- }(n.SplitType || (n.SplitType = {})), function(o) {
92
- o.DOM_TYPE_ERROR = "[DOM] Receive wrong node type.", o.DOM_SELECTION_EMPTY = "[DOM] The selection contains no dom node, may be you except them.", o.RANGE_INVALID = "[RANGE] Got invalid dom range, can't convert to a valid highlight range.", o.RANGE_NODE_INVALID = "[RANGE] Start or end node isn't a text node, it may occur an error.", o.DB_ID_DUPLICATE_ERROR = "[STORE] Unique id conflict.", o.CACHE_SET_ERROR = "[CACHE] Cache.data can't be set manually, please use .save().", o.SOURCE_TYPE_ERROR = "[SOURCE] Object isn't a highlight source instance.", o.HIGHLIGHT_RANGE_FROZEN = "[HIGHLIGHT_RANGE] A highlight range must be frozen before render.", o.HIGHLIGHT_SOURCE_RECREATE = "[HIGHLIGHT_SOURCE] Recreate highlights from sources error.", o.HIGHLIGHT_SOURCE_NONE_RENDER = "[HIGHLIGHT_SOURCE] This highlight source isn't rendered. May be the exception skips it or the dom structure has changed.";
93
- }(n.ERROR || (n.ERROR = {})), function(o) {
94
- o.CREATE = "selection:create", o.REMOVE = "selection:remove", o.MODIFY = "selection:modify", o.HOVER = "selection:hover", o.HOVER_OUT = "selection:hover-out", o.CLICK = "selection:click";
95
- }(n.EventType || (n.EventType = {})), function(o) {
96
- o.STORE = "from-store", o.INPUT = "from-input";
97
- }(n.CreateFrom || (n.CreateFrom = {})), function(o) {
98
- o.text = "text", o.span = "span";
99
- }(n.SelectedNodeType || (n.SelectedNodeType = {})), function(o) {
100
- o.touchend = "touchend", o.mouseup = "mouseup", o.touchstart = "touchstart", o.click = "click", o.mouseover = "mouseover";
101
- }(n.UserInputEvent || (n.UserInputEvent = {}));
102
- }, function(i, n, t) {
103
- var o = this && this.__read || function(l, d) {
104
- var a = typeof Symbol == "function" && l[Symbol.iterator];
105
- if (!a) return l;
106
- var c, f, g = a.call(l), p = [];
107
- try {
108
- for (; (d === void 0 || d-- > 0) && !(c = g.next()).done; ) p.push(c.value);
109
- } catch (m) {
110
- f = { error: m };
111
- } finally {
112
- try {
113
- c && !c.done && (a = g.return) && a.call(g);
114
- } finally {
115
- if (f) throw f.error;
116
- }
117
- }
118
- return p;
119
- }, s = this && this.__spread || function() {
120
- for (var l = [], d = 0; d < arguments.length; d++) l = l.concat(o(arguments[d]));
121
- return l;
122
- };
123
- Object.defineProperty(n, "__esModule", { value: !0 });
124
- var u = function() {
125
- function l() {
126
- this.handlersMap = /* @__PURE__ */ Object.create(null);
127
- }
128
- return l.prototype.on = function(d, a) {
129
- return this.handlersMap[d] || (this.handlersMap[d] = []), this.handlersMap[d].push(a), this;
130
- }, l.prototype.off = function(d, a) {
131
- return this.handlersMap[d] && this.handlersMap[d].splice(this.handlersMap[d].indexOf(a) >>> 0, 1), this;
132
- }, l.prototype.emit = function(d) {
133
- for (var a = [], c = 1; c < arguments.length; c++) a[c - 1] = arguments[c];
134
- return this.handlersMap[d] && this.handlersMap[d].slice().forEach(function(f) {
135
- f.apply(void 0, s(a));
136
- }), this;
137
- }, l;
138
- }();
139
- n.default = u;
140
- }, function(i, n, t) {
141
- var o = this && this.__importDefault || function(d) {
142
- return d && d.__esModule ? d : { default: d };
143
- };
144
- Object.defineProperty(n, "__esModule", { value: !0 });
145
- var s = o(t(5)), u = t(9), l = function() {
146
- function d(a, c, f, g, p) {
147
- this.startMeta = a, this.endMeta = c, this.text = f, this.id = g, this.__isHighlightSource = {}, p && (this.extra = p);
148
- }
149
- return d.prototype.deSerialize = function(a, c) {
150
- var f = u.queryElementNode(this, a), g = f.start, p = f.end, m = u.getTextChildByOffset(g, this.startMeta.textOffset), v = u.getTextChildByOffset(p, this.endMeta.textOffset);
151
- if (!c.Serialize.Restore.isEmpty()) {
152
- var y = c.Serialize.Restore.call(this, m, v) || [];
153
- m = y[0] || m, v = y[1] || v;
154
- }
155
- return new s.default(m, v, this.text, this.id, !0);
156
- }, d;
157
- }();
158
- n.default = l;
159
- }, function(i, n, t) {
160
- var o = this && this.__values || function(a) {
161
- var c = typeof Symbol == "function" && Symbol.iterator, f = c && a[c], g = 0;
162
- if (f) return f.call(a);
163
- if (a && typeof a.length == "number") return { next: function() {
164
- return a && g >= a.length && (a = void 0), { value: a && a[g++], done: !a };
165
- } };
166
- throw new TypeError(c ? "Object is not iterable." : "Symbol.iterator is not defined.");
167
- }, s = this && this.__read || function(a, c) {
168
- var f = typeof Symbol == "function" && a[Symbol.iterator];
169
- if (!f) return a;
170
- var g, p, m = f.call(a), v = [];
171
- try {
172
- for (; (c === void 0 || c-- > 0) && !(g = m.next()).done; ) v.push(g.value);
173
- } catch (y) {
174
- p = { error: y };
175
- } finally {
176
- try {
177
- g && !g.done && (f = m.return) && f.call(m);
178
- } finally {
179
- if (p) throw p.error;
180
- }
181
- }
182
- return v;
183
- }, u = this && this.__spread || function() {
184
- for (var a = [], c = 0; c < arguments.length; c++) a = a.concat(s(arguments[c]));
185
- return a;
186
- };
187
- Object.defineProperty(n, "__esModule", { value: !0 }), n.hasClass = n.removeAllClass = n.removeClass = n.addClass = n.addEventListener = n.removeEventListener = n.forEach = n.getHighlightById = n.getHighlightsByRoot = n.getExtraHighlightId = n.getHighlightId = n.isHighlightWrapNode = void 0;
188
- var l = t(0);
189
- n.isHighlightWrapNode = function(a) {
190
- return !!a.dataset && !!a.dataset[l.CAMEL_DATASET_IDENTIFIER];
191
- };
192
- var d = function(a, c) {
193
- for (var f = !1, g = null; a; ) {
194
- if (n.isHighlightWrapNode(a) && (g = a), a === c) {
195
- f = !0;
196
- break;
197
- }
198
- a = a.parentNode;
199
- }
200
- return f ? g : null;
201
- };
202
- n.getHighlightId = function(a, c) {
203
- return (a = d(a, c)) ? a.dataset[l.CAMEL_DATASET_IDENTIFIER] : "";
204
- }, n.getExtraHighlightId = function(a, c) {
205
- return (a = d(a, c)) ? a.dataset[l.CAMEL_DATASET_IDENTIFIER_EXTRA].split(l.ID_DIVISION).filter(function(f) {
206
- return f;
207
- }) : [];
208
- }, n.getHighlightsByRoot = function(a, c) {
209
- var f, g;
210
- Array.isArray(a) || (a = [a]);
211
- var p = [];
212
- try {
213
- for (var m = o(a), v = m.next(); !v.done; v = m.next()) {
214
- var y = v.value.querySelectorAll(c + "[data-" + l.DATASET_IDENTIFIER + "]");
215
- p.push.apply(p, y);
216
- }
217
- } catch (C) {
218
- f = { error: C };
219
- } finally {
220
- try {
221
- v && !v.done && (g = m.return) && g.call(m);
222
- } finally {
223
- if (f) throw f.error;
224
- }
225
- }
226
- return p;
227
- }, n.getHighlightById = function(a, c, f) {
228
- var g, p, m = [], v = new RegExp("(" + c + "\\" + l.ID_DIVISION + "|\\" + l.ID_DIVISION + "?" + c + "$)"), y = a.querySelectorAll(f + "[data-" + l.DATASET_IDENTIFIER + "]");
229
- try {
230
- for (var C = o(y), S = C.next(); !S.done; S = C.next()) {
231
- var T = S.value;
232
- if (T.dataset[l.CAMEL_DATASET_IDENTIFIER] !== c) {
233
- var b = T.dataset[l.CAMEL_DATASET_IDENTIFIER_EXTRA];
234
- v.test(b) && m.push(T);
235
- } else m.push(T);
236
- }
237
- } catch (D) {
238
- g = { error: D };
239
- } finally {
240
- try {
241
- S && !S.done && (p = C.return) && p.call(C);
242
- } finally {
243
- if (g) throw g.error;
244
- }
245
- }
246
- return m;
247
- }, n.forEach = function(a, c) {
248
- for (var f = 0; f < a.length; f++) c(a[f], f, a);
249
- }, n.removeEventListener = function(a, c, f) {
250
- a.removeEventListener(c, f);
251
- }, n.addEventListener = function(a, c, f) {
252
- return a.addEventListener(c, f), function() {
253
- n.removeEventListener(a, c, f);
254
- };
255
- }, n.addClass = function(a, c) {
256
- var f;
257
- Array.isArray(c) || (c = [c]), (f = a.classList).add.apply(f, u(c));
258
- }, n.removeClass = function(a, c) {
259
- a.classList.remove(c);
260
- }, n.removeAllClass = function(a) {
261
- a.className = "";
262
- }, n.hasClass = function(a, c) {
263
- return a.classList.contains(c);
264
- };
265
- }, function(i, n, t) {
266
- var o = this && this.__importDefault || function(g) {
267
- return g && g.__esModule ? g : { default: g };
268
- };
269
- Object.defineProperty(n, "__esModule", { value: !0 });
270
- var s = o(t(3)), u = t(1), l = t(11), d = o(t(6)), a = t(12), c = t(0), f = function() {
271
- function g(p, m, v, y, C) {
272
- C === void 0 && (C = !1), p.$node.nodeType === 3 && m.$node.nodeType === 3 || c.eventEmitter.emit(c.INTERNAL_ERROR_EVENT, { type: u.ERROR.RANGE_NODE_INVALID }), this.start = a.formatDomNode(p), this.end = a.formatDomNode(m), this.text = v, this.frozen = C, this.id = y;
273
- }
274
- return g.fromSelection = function(p) {
275
- var m = l.getDomRange();
276
- if (!m) return null;
277
- var v = { $node: m.startContainer, offset: m.startOffset }, y = { $node: m.endContainer, offset: m.endOffset }, C = m.toString(), S = p.call(v, y, C);
278
- return new g(v, y, C, S = S ?? d.default());
279
- }, g.prototype.serialize = function(p, m) {
280
- var v, y = a.getDomMeta(this.start.$node, this.start.offset, p), C = a.getDomMeta(this.end.$node, this.end.offset, p);
281
- return m.Serialize.RecordInfo.isEmpty() || (v = m.Serialize.RecordInfo.call(this.start, this.end, p)), this.frozen = !0, new s.default(y, C, this.text, this.id, v);
282
- }, g.removeDomRange = l.removeSelection, g;
283
- }();
284
- n.default = f;
285
- }, function(i, n, t) {
286
- Object.defineProperty(n, "__esModule", { value: !0 }), n.default = function o(s) {
287
- return s ? (s ^ 16 * Math.random() >> s / 4).toString(16) : ("10000000-1000-4000-8000" + -1e11).replace(/[018]/g, o);
288
- };
289
- }, function(i, n, t) {
290
- i.exports = t(8);
291
- }, function(i, n, t) {
292
- var o, s = this && this.__extends || (o = function(b, D) {
293
- return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(O, E) {
294
- O.__proto__ = E;
295
- } || function(O, E) {
296
- for (var w in E) Object.prototype.hasOwnProperty.call(E, w) && (O[w] = E[w]);
297
- })(b, D);
298
- }, function(b, D) {
299
- function O() {
300
- this.constructor = b;
301
- }
302
- o(b, D), b.prototype = D === null ? Object.create(D) : (O.prototype = D.prototype, new O());
303
- }), u = this && this.__assign || function() {
304
- return (u = Object.assign || function(b) {
305
- for (var D, O = 1, E = arguments.length; O < E; O++) for (var w in D = arguments[O]) Object.prototype.hasOwnProperty.call(D, w) && (b[w] = D[w]);
306
- return b;
307
- }).apply(this, arguments);
308
- }, l = this && this.__importDefault || function(b) {
309
- return b && b.__esModule ? b : { default: b };
310
- };
311
- Object.defineProperty(n, "__esModule", { value: !0 });
312
- var d = l(t(2)), a = l(t(5)), c = l(t(3)), f = l(t(6)), g = l(t(13)), p = l(t(14)), m = l(t(16)), v = l(t(17)), y = t(0), C = t(1), S = t(4), T = function(b) {
313
- function D(O) {
314
- var E = b.call(this) || this;
315
- E.event = p.default(), E.run = function() {
316
- return S.addEventListener(E.options.$root, E.event.PointerEnd, E._handleSelection);
317
- }, E.stop = function() {
318
- S.removeEventListener(E.options.$root, E.event.PointerEnd, E._handleSelection);
319
- }, E.addClass = function(A, P) {
320
- E.getDoms(P).forEach(function(q) {
321
- S.addClass(q, A);
322
- });
323
- }, E.removeClass = function(A, P) {
324
- E.getDoms(P).forEach(function(q) {
325
- S.removeClass(q, A);
326
- });
327
- }, E.getIdByDom = function(A) {
328
- return S.getHighlightId(A, E.options.$root);
329
- }, E.getExtraIdByDom = function(A) {
330
- return S.getExtraHighlightId(A, E.options.$root);
331
- }, E.getDoms = function(A) {
332
- return A ? S.getHighlightById(E.options.$root, A, E.options.wrapTag) : S.getHighlightsByRoot(E.options.$root, E.options.wrapTag);
333
- }, E.dispose = function() {
334
- var A = E.options.$root;
335
- S.removeEventListener(A, E.event.PointerOver, E._handleHighlightHover), S.removeEventListener(A, E.event.PointerEnd, E._handleSelection), S.removeEventListener(A, E.event.PointerTap, E._handleHighlightClick), E.removeAll();
336
- }, E.setOption = function(A) {
337
- E.options = u(u({}, E.options), A), E.painter = new v.default({ $root: E.options.$root, wrapTag: E.options.wrapTag, className: E.options.style.className, exceptSelectors: E.options.exceptSelectors }, E.hooks);
338
- }, E.fromRange = function(A) {
339
- var P = { $node: A.startContainer, offset: A.startOffset }, q = { $node: A.endContainer, offset: A.endOffset }, Y = A.toString(), F = E.hooks.Render.UUID.call(P, q, Y);
340
- F = F ?? f.default();
341
- var V = new a.default(P, q, Y, F);
342
- return V ? E._highlightFromHRange(V) : (y.eventEmitter.emit(y.INTERNAL_ERROR_EVENT, { type: C.ERROR.RANGE_INVALID }), null);
343
- }, E.fromStore = function(A, P, q, Y, F) {
344
- var V = new c.default(A, P, q, Y, F);
345
- try {
346
- return E._highlightFromHSource(V), V;
347
- } catch (N) {
348
- return y.eventEmitter.emit(y.INTERNAL_ERROR_EVENT, { type: C.ERROR.HIGHLIGHT_SOURCE_RECREATE, error: N, detail: V }), null;
349
- }
350
- }, E._getHooks = function() {
351
- return { Render: { UUID: new g.default("Render.UUID"), SelectedNodes: new g.default("Render.SelectedNodes"), WrapNode: new g.default("Render.WrapNode") }, Serialize: { Restore: new g.default("Serialize.Restore"), RecordInfo: new g.default("Serialize.RecordInfo") }, Remove: { UpdateNodes: new g.default("Remove.UpdateNodes") } };
352
- }, E._highlightFromHRange = function(A) {
353
- var P = A.serialize(E.options.$root, E.hooks);
354
- return E.painter.highlightRange(A).length === 0 ? (y.eventEmitter.emit(y.INTERNAL_ERROR_EVENT, { type: C.ERROR.DOM_SELECTION_EMPTY }), null) : (E.cache.save(P), E.emit(C.EventType.CREATE, { sources: [P], type: C.CreateFrom.INPUT }, E), P);
355
- }, E._handleSelection = function() {
356
- var A = a.default.fromSelection(E.hooks.Render.UUID);
357
- A && (E._highlightFromHRange(A), a.default.removeDomRange());
358
- }, E._handleHighlightHover = function(A) {
359
- var P = A.target;
360
- if (!S.isHighlightWrapNode(P)) return E._hoverId && E.emit(C.EventType.HOVER_OUT, { id: E._hoverId }, E, A), void (E._hoverId = null);
361
- var q = S.getHighlightId(P, E.options.$root);
362
- E._hoverId !== q && (E._hoverId && E.emit(C.EventType.HOVER_OUT, { id: E._hoverId }, E, A), E._hoverId = q, E.emit(C.EventType.HOVER, { id: E._hoverId }, E, A));
363
- }, E._handleError = function(A) {
364
- E.options.verbose && console.warn(A);
365
- }, E._handleHighlightClick = function(A) {
366
- var P = A.target;
367
- if (S.isHighlightWrapNode(P)) {
368
- var q = S.getHighlightId(P, E.options.$root);
369
- E.emit(C.EventType.CLICK, { id: q }, E, A);
370
- }
371
- }, E.options = y.getDefaultOptions(), E.hooks = E._getHooks(), E.setOption(O), E.cache = new m.default();
372
- var w = E.options.$root;
373
- return S.addEventListener(w, E.event.PointerOver, E._handleHighlightHover), S.addEventListener(w, E.event.PointerTap, E._handleHighlightClick), y.eventEmitter.on(y.INTERNAL_ERROR_EVENT, E._handleError), E;
374
- }
375
- return s(D, b), D.prototype.remove = function(O) {
376
- if (O) {
377
- var E = this.painter.removeHighlight(O);
378
- this.cache.remove(O), E && this.emit(C.EventType.REMOVE, { ids: [O] }, this);
379
- }
380
- }, D.prototype.removeAll = function() {
381
- this.painter.removeAllHighlight();
382
- var O = this.cache.removeAll();
383
- this.emit(C.EventType.REMOVE, { ids: O }, this);
384
- }, D.prototype._highlightFromHSource = function(O) {
385
- O === void 0 && (O = []);
386
- var E = this.painter.highlightSource(O);
387
- this.emit(C.EventType.CREATE, { sources: E, type: C.CreateFrom.STORE }, this), this.cache.save(O);
388
- }, D.event = C.EventType, D.isHighlightWrapNode = S.isHighlightWrapNode, D.isHighlightSource = function(O) {
389
- return !!O.__isHighlightSource;
390
- }, D;
391
- }(d.default);
392
- n.default = T;
393
- }, function(i, n, t) {
394
- Object.defineProperty(n, "__esModule", { value: !0 }), n.queryElementNode = n.getTextChildByOffset = void 0;
395
- var o = t(0);
396
- n.getTextChildByOffset = function(s, u) {
397
- for (var l = [s], d = null, a = 0, c = 0; d = l.pop(); ) {
398
- for (var f = d.childNodes, g = f.length - 1; g >= 0; g--) l.push(f[g]);
399
- if (d.nodeType === 3 && (c = u - a, (a += d.textContent.length) >= u)) break;
400
- }
401
- return d || (d = s), { $node: d, offset: c };
402
- }, n.queryElementNode = function(s, u) {
403
- return { start: s.startMeta.parentIndex === o.ROOT_IDX ? u : u.getElementsByTagName(s.startMeta.parentTagName)[s.startMeta.parentIndex], end: s.endMeta.parentIndex === o.ROOT_IDX ? u : u.getElementsByTagName(s.endMeta.parentTagName)[s.endMeta.parentIndex] };
404
- };
405
- }, function(i, n, t) {
406
- Object.defineProperty(n, "__esModule", { value: !0 }), n.default = function(o) {
407
- return o.split("-").reduce(function(s, u, l) {
408
- return s + (l === 0 ? u : u[0].toUpperCase() + u.slice(1));
409
- }, "");
410
- };
411
- }, function(i, n, t) {
412
- Object.defineProperty(n, "__esModule", { value: !0 }), n.removeSelection = n.getDomRange = void 0, n.getDomRange = function() {
413
- var o = window.getSelection();
414
- return o.isCollapsed ? (console.debug("no text selected"), null) : o.getRangeAt(0);
415
- }, n.removeSelection = function() {
416
- window.getSelection().removeAllRanges();
417
- };
418
- }, function(i, n, t) {
419
- Object.defineProperty(n, "__esModule", { value: !0 }), n.formatDomNode = n.getDomMeta = void 0;
420
- var o = t(0);
421
- n.getDomMeta = function(s, u, l) {
422
- var d = function(f) {
423
- if (f instanceof HTMLElement && (!f.dataset || !f.dataset[o.CAMEL_DATASET_IDENTIFIER])) return f;
424
- for (var g = f.parentNode; g != null && g.dataset[o.CAMEL_DATASET_IDENTIFIER]; ) g = g.parentNode;
425
- return g;
426
- }(s), a = d === l ? o.ROOT_IDX : function(f, g) {
427
- for (var p = f.tagName, m = g.getElementsByTagName(p), v = 0; v < m.length; v++) if (f === m[v]) return v;
428
- return o.UNKNOWN_IDX;
429
- }(d, l), c = function(f, g) {
430
- for (var p = [f], m = null, v = 0; m = p.pop(); ) {
431
- for (var y = m.childNodes, C = y.length - 1; C >= 0; C--) p.push(y[C]);
432
- if (m.nodeType === 3 && m !== g) v += m.textContent.length;
433
- else if (m.nodeType === 3) break;
434
- }
435
- return v;
436
- }(d, s);
437
- return { parentTagName: d.tagName, parentIndex: a, textOffset: c + u };
438
- }, n.formatDomNode = function(s) {
439
- return s.$node.nodeType === 3 || s.$node.nodeType === 4 || s.$node.nodeType === 8 ? s : { $node: s.$node.childNodes[s.offset], offset: 0 };
440
- };
441
- }, function(i, n, t) {
442
- var o = this && this.__read || function(l, d) {
443
- var a = typeof Symbol == "function" && l[Symbol.iterator];
444
- if (!a) return l;
445
- var c, f, g = a.call(l), p = [];
446
- try {
447
- for (; (d === void 0 || d-- > 0) && !(c = g.next()).done; ) p.push(c.value);
448
- } catch (m) {
449
- f = { error: m };
450
- } finally {
451
- try {
452
- c && !c.done && (a = g.return) && a.call(g);
453
- } finally {
454
- if (f) throw f.error;
455
- }
456
- }
457
- return p;
458
- }, s = this && this.__spread || function() {
459
- for (var l = [], d = 0; d < arguments.length; d++) l = l.concat(o(arguments[d]));
460
- return l;
461
- };
462
- Object.defineProperty(n, "__esModule", { value: !0 });
463
- var u = function() {
464
- function l(d) {
465
- this.name = "", this.ops = [], this.name = d;
466
- }
467
- return l.prototype.tap = function(d) {
468
- var a = this;
469
- return this.ops.indexOf(d) === -1 && this.ops.push(d), function() {
470
- a.remove(d);
471
- };
472
- }, l.prototype.remove = function(d) {
473
- var a = this.ops.indexOf(d);
474
- a < 0 || this.ops.splice(a, 1);
475
- }, l.prototype.isEmpty = function() {
476
- return this.ops.length === 0;
477
- }, l.prototype.call = function() {
478
- for (var d, a = [], c = 0; c < arguments.length; c++) a[c] = arguments[c];
479
- return this.ops.forEach(function(f) {
480
- d = f.apply(void 0, s(a));
481
- }), d;
482
- }, l;
483
- }();
484
- n.default = u;
485
- }, function(i, n, t) {
486
- var o = this && this.__importDefault || function(l) {
487
- return l && l.__esModule ? l : { default: l };
488
- };
489
- Object.defineProperty(n, "__esModule", { value: !0 });
490
- var s = t(1), u = o(t(15));
491
- n.default = function() {
492
- var l = u.default(window.navigator.userAgent);
493
- return { PointerEnd: l ? s.UserInputEvent.touchend : s.UserInputEvent.mouseup, PointerTap: l ? s.UserInputEvent.touchstart : s.UserInputEvent.click, PointerOver: l ? s.UserInputEvent.touchstart : s.UserInputEvent.mouseover };
494
- };
495
- }, function(i, n, t) {
496
- Object.defineProperty(n, "__esModule", { value: !0 });
497
- var o = /Android|iPhone|BlackBerry|BB10|Opera Mini|Phone|Mobile|Silk|Windows Phone|Mobile(?:.+)Firefox\b/i;
498
- n.default = function(s) {
499
- return o.test(s);
500
- };
501
- }, function(i, n, t) {
502
- var o, s = this && this.__extends || (o = function(f, g) {
503
- return (o = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(p, m) {
504
- p.__proto__ = m;
505
- } || function(p, m) {
506
- for (var v in m) Object.prototype.hasOwnProperty.call(m, v) && (p[v] = m[v]);
507
- })(f, g);
508
- }, function(f, g) {
509
- function p() {
510
- this.constructor = f;
511
- }
512
- o(f, g), f.prototype = g === null ? Object.create(g) : (p.prototype = g.prototype, new p());
513
- }), u = this && this.__values || function(f) {
514
- var g = typeof Symbol == "function" && Symbol.iterator, p = g && f[g], m = 0;
515
- if (p) return p.call(f);
516
- if (f && typeof f.length == "number") return { next: function() {
517
- return f && m >= f.length && (f = void 0), { value: f && f[m++], done: !f };
518
- } };
519
- throw new TypeError(g ? "Object is not iterable." : "Symbol.iterator is not defined.");
520
- }, l = this && this.__importDefault || function(f) {
521
- return f && f.__esModule ? f : { default: f };
522
- };
523
- Object.defineProperty(n, "__esModule", { value: !0 });
524
- var d = l(t(2)), a = t(1), c = function(f) {
525
- function g() {
526
- var p = f !== null && f.apply(this, arguments) || this;
527
- return p._data = /* @__PURE__ */ new Map(), p;
528
- }
529
- return s(g, f), Object.defineProperty(g.prototype, "data", { get: function() {
530
- return this.getAll();
531
- }, set: function(p) {
532
- throw a.ERROR.CACHE_SET_ERROR;
533
- }, enumerable: !1, configurable: !0 }), g.prototype.save = function(p) {
534
- var m = this;
535
- Array.isArray(p) ? p.forEach(function(v) {
536
- return m._data.set(v.id, v);
537
- }) : this._data.set(p.id, p);
538
- }, g.prototype.get = function(p) {
539
- return this._data.get(p);
540
- }, g.prototype.remove = function(p) {
541
- this._data.delete(p);
542
- }, g.prototype.getAll = function() {
543
- var p, m, v = [];
544
- try {
545
- for (var y = u(this._data), C = y.next(); !C.done; C = y.next()) {
546
- var S = C.value;
547
- v.push(S[1]);
548
- }
549
- } catch (T) {
550
- p = { error: T };
551
- } finally {
552
- try {
553
- C && !C.done && (m = y.return) && m.call(y);
554
- } finally {
555
- if (p) throw p.error;
556
- }
557
- }
558
- return v;
559
- }, g.prototype.removeAll = function() {
560
- var p, m, v = [];
561
- try {
562
- for (var y = u(this._data), C = y.next(); !C.done; C = y.next()) {
563
- var S = C.value;
564
- v.push(S[0]);
565
- }
566
- } catch (T) {
567
- p = { error: T };
568
- } finally {
569
- try {
570
- C && !C.done && (m = y.return) && m.call(y);
571
- } finally {
572
- if (p) throw p.error;
573
- }
574
- }
575
- return this._data = /* @__PURE__ */ new Map(), v;
576
- }, g;
577
- }(d.default);
578
- n.default = c;
579
- }, function(i, n, t) {
580
- var o = this && this.__values || function(v) {
581
- var y = typeof Symbol == "function" && Symbol.iterator, C = y && v[y], S = 0;
582
- if (C) return C.call(v);
583
- if (v && typeof v.length == "number") return { next: function() {
584
- return v && S >= v.length && (v = void 0), { value: v && v[S++], done: !v };
585
- } };
586
- throw new TypeError(y ? "Object is not iterable." : "Symbol.iterator is not defined.");
587
- }, s = this && this.__read || function(v, y) {
588
- var C = typeof Symbol == "function" && v[Symbol.iterator];
589
- if (!C) return v;
590
- var S, T, b = C.call(v), D = [];
591
- try {
592
- for (; (y === void 0 || y-- > 0) && !(S = b.next()).done; ) D.push(S.value);
593
- } catch (O) {
594
- T = { error: O };
595
- } finally {
596
- try {
597
- S && !S.done && (C = b.return) && C.call(b);
598
- } finally {
599
- if (T) throw T.error;
600
- }
601
- }
602
- return D;
603
- }, u = this && this.__spread || function() {
604
- for (var v = [], y = 0; y < arguments.length; y++) v = v.concat(s(arguments[y]));
605
- return v;
606
- }, l = this && this.__importDefault || function(v) {
607
- return v && v.__esModule ? v : { default: v };
608
- };
609
- Object.defineProperty(n, "__esModule", { value: !0 });
610
- var d = l(t(3)), a = t(18), c = t(4), f = t(1), g = t(20), p = t(0), m = function() {
611
- function v(y, C) {
612
- this.options = { $root: y.$root, wrapTag: y.wrapTag, exceptSelectors: y.exceptSelectors, className: y.className }, this.hooks = C, g.initDefaultStylesheet();
613
- }
614
- return v.prototype.highlightRange = function(y) {
615
- var C = this;
616
- if (!y.frozen) throw f.ERROR.HIGHLIGHT_RANGE_FROZEN;
617
- var S = this.options, T = S.$root, b = S.className, D = S.exceptSelectors, O = this.hooks, E = a.getSelectedNodes(T, y.start, y.end, D);
618
- return O.Render.SelectedNodes.isEmpty() || (E = O.Render.SelectedNodes.call(y.id, E) || []), E.map(function(w) {
619
- var A = a.wrapHighlight(w, y, b, C.options.wrapTag);
620
- return O.Render.WrapNode.isEmpty() || (A = O.Render.WrapNode.call(y.id, A)), A;
621
- });
622
- }, v.prototype.highlightSource = function(y) {
623
- var C = this, S = Array.isArray(y) ? y : [y], T = [];
624
- return S.forEach(function(b) {
625
- if (b instanceof d.default) {
626
- var D = b.deSerialize(C.options.$root, C.hooks);
627
- C.highlightRange(D).length > 0 ? T.push(b) : p.eventEmitter.emit(p.INTERNAL_ERROR_EVENT, { type: f.ERROR.HIGHLIGHT_SOURCE_NONE_RENDER, detail: b });
628
- } else p.eventEmitter.emit(p.INTERNAL_ERROR_EVENT, { type: f.ERROR.SOURCE_TYPE_ERROR });
629
- }), T;
630
- }, v.prototype.removeHighlight = function(y) {
631
- var C, S, T = new RegExp("(" + y + "\\" + p.ID_DIVISION + "|\\" + p.ID_DIVISION + "?" + y + "$)"), b = this.hooks, D = this.options.wrapTag, O = document.querySelectorAll(D + "[data-" + p.DATASET_IDENTIFIER + "]"), E = [], w = [], A = [];
632
- try {
633
- for (var P = o(O), q = P.next(); !q.done; q = P.next()) {
634
- var Y = q.value, F = Y.dataset[p.CAMEL_DATASET_IDENTIFIER], V = Y.dataset[p.CAMEL_DATASET_IDENTIFIER_EXTRA];
635
- F !== y || V ? F === y ? w.push(Y) : F !== y && T.test(V) && A.push(Y) : E.push(Y);
636
- }
637
- } catch (N) {
638
- C = { error: N };
639
- } finally {
640
- try {
641
- q && !q.done && (S = P.return) && S.call(P);
642
- } finally {
643
- if (C) throw C.error;
644
- }
645
- }
646
- return E.forEach(function(N) {
647
- var j = N.parentNode, $ = document.createDocumentFragment();
648
- c.forEach(N.childNodes, function(I) {
649
- return $.appendChild(I.cloneNode(!1));
650
- });
651
- var G = N.previousSibling, _ = N.nextSibling;
652
- j.replaceChild($, N), a.normalizeSiblingText(G, !0), a.normalizeSiblingText(_, !1), b.Remove.UpdateNodes.call(y, N, "remove");
653
- }), w.forEach(function(N) {
654
- var j = N.dataset, $ = j[p.CAMEL_DATASET_IDENTIFIER_EXTRA].split(p.ID_DIVISION), G = $.shift(), _ = document.querySelector(D + "[data-" + p.DATASET_IDENTIFIER + '="' + G + '"]');
655
- _ && (c.removeAllClass(N), c.addClass(N, u(_.classList))), j[p.CAMEL_DATASET_IDENTIFIER] = G, j[p.CAMEL_DATASET_IDENTIFIER_EXTRA] = $.join(p.ID_DIVISION), b.Remove.UpdateNodes.call(y, N, "id-update");
656
- }), A.forEach(function(N) {
657
- var j = N.dataset[p.CAMEL_DATASET_IDENTIFIER_EXTRA];
658
- N.dataset[p.CAMEL_DATASET_IDENTIFIER_EXTRA] = j.replace(T, ""), b.Remove.UpdateNodes.call(y, N, "extra-update");
659
- }), E.length + w.length + A.length !== 0;
660
- }, v.prototype.removeAllHighlight = function() {
661
- var y = this.options, C = y.wrapTag, S = y.$root;
662
- c.getHighlightsByRoot(S, C).forEach(function(T) {
663
- var b = T.parentNode, D = document.createDocumentFragment();
664
- c.forEach(T.childNodes, function(O) {
665
- return D.appendChild(O.cloneNode(!1));
666
- }), b.replaceChild(D, T);
667
- });
668
- }, v;
669
- }();
670
- n.default = m;
671
- }, function(i, n, t) {
672
- var o = this && this.__read || function(p, m) {
673
- var v = typeof Symbol == "function" && p[Symbol.iterator];
674
- if (!v) return p;
675
- var y, C, S = v.call(p), T = [];
676
- try {
677
- for (; (m === void 0 || m-- > 0) && !(y = S.next()).done; ) T.push(y.value);
678
- } catch (b) {
679
- C = { error: b };
680
- } finally {
681
- try {
682
- y && !y.done && (v = S.return) && v.call(S);
683
- } finally {
684
- if (C) throw C.error;
685
- }
686
- }
687
- return T;
688
- }, s = this && this.__spread || function() {
689
- for (var p = [], m = 0; m < arguments.length; m++) p = p.concat(o(arguments[m]));
690
- return p;
691
- };
692
- Object.defineProperty(n, "__esModule", { value: !0 }), n.normalizeSiblingText = n.wrapHighlight = n.getSelectedNodes = void 0;
693
- var u = t(1), l = t(4), d = t(0), a = t(19), c = function(p, m) {
694
- if (!p) return !1;
695
- if (/^\./.test(m)) {
696
- var v = m.replace(/^\./, "");
697
- return p && l.hasClass(p, v);
698
- }
699
- if (/^#/.test(m)) {
700
- var y = m.replace(/^#/, "");
701
- return p && p.id === y;
702
- }
703
- var C = m.toUpperCase();
704
- return p && p.tagName === C;
705
- };
706
- n.getSelectedNodes = function(p, m, v, y) {
707
- var C = m.$node, S = v.$node, T = m.offset, b = v.offset;
708
- if (C === S && C instanceof Text) return function(F, V, N, j) {
709
- for (var $ = F, G = function(I) {
710
- return j == null ? void 0 : j.some(function(L) {
711
- return c(I, L);
712
- });
713
- }; $; ) {
714
- if ($.nodeType === 1 && G($)) return [];
715
- $ = $.parentNode;
716
- }
717
- F.splitText(V);
718
- var _ = F.nextSibling;
719
- return _.splitText(N - V), [{ $node: _, type: u.SelectedNodeType.text, splitType: u.SplitType.both }];
720
- }(C, T, b, y);
721
- for (var D = [p], O = [], E = function(F) {
722
- return y == null ? void 0 : y.some(function(V) {
723
- return c(F, V);
724
- });
725
- }, w = !1, A = null; A = D.pop(); ) if (A.nodeType !== 1 || !E(A)) {
726
- for (var P = A.childNodes, q = P.length - 1; q >= 0; q--) D.push(P[q]);
727
- if (A === C) {
728
- if (A.nodeType === 3) {
729
- A.splitText(T);
730
- var Y = A.nextSibling;
731
- O.push({ $node: Y, type: u.SelectedNodeType.text, splitType: u.SplitType.head });
732
- }
733
- w = !0;
734
- } else {
735
- if (A === S) {
736
- A.nodeType === 3 && ((Y = A).splitText(b), O.push({ $node: Y, type: u.SelectedNodeType.text, splitType: u.SplitType.tail }));
737
- break;
738
- }
739
- w && A.nodeType === 3 && O.push({ $node: A, type: u.SelectedNodeType.text, splitType: u.SplitType.none });
740
- }
741
- }
742
- return O;
743
- };
744
- var f = function(p, m) {
745
- var v = Array.isArray(m) ? m : [m];
746
- return (v = v.length === 0 ? [d.getDefaultOptions().style.className] : v).forEach(function(y) {
747
- l.addClass(p, y);
748
- }), p;
749
- }, g = function(p) {
750
- return !p || !p.textContent;
751
- };
752
- n.wrapHighlight = function(p, m, v, y) {
753
- var C = p.$node.parentNode, S = p.$node.previousSibling, T = p.$node.nextSibling;
754
- return l.isHighlightWrapNode(C) ? !l.isHighlightWrapNode(C) || g(S) && g(T) ? function(b, D, O) {
755
- var E = b.$node.parentNode, w = E;
756
- l.removeAllClass(w), f(w, O);
757
- var A = E.dataset, P = A[d.CAMEL_DATASET_IDENTIFIER];
758
- return A[d.CAMEL_DATASET_IDENTIFIER] = D.id, A[d.CAMEL_DATASET_IDENTIFIER_EXTRA] = A[d.CAMEL_DATASET_IDENTIFIER_EXTRA] ? P + d.ID_DIVISION + A[d.CAMEL_DATASET_IDENTIFIER_EXTRA] : P, w;
759
- }(p, m, v) : function(b, D, O, E) {
760
- var w = document.createElement(E), A = b.$node.parentNode, P = b.$node.previousSibling, q = b.$node.nextSibling, Y = document.createDocumentFragment(), F = A.dataset[d.CAMEL_DATASET_IDENTIFIER], V = A.dataset[d.CAMEL_DATASET_IDENTIFIER_EXTRA], N = V ? F + d.ID_DIVISION + V : F;
761
- w.setAttribute("data-" + d.DATASET_IDENTIFIER, D.id), w.setAttribute("data-" + d.DATASET_IDENTIFIER_EXTRA, N), w.appendChild(b.$node.cloneNode(!1));
762
- var j, $ = !1, G = !1;
763
- P && ((_ = A.cloneNode(!1)).textContent = P.textContent, Y.appendChild(_), $ = !0);
764
- var _, I = [];
765
- return Array.isArray(O) ? I.push.apply(I, s(O)) : I.push(O), f(w, a.unique(I)), Y.appendChild(w), q && ((_ = A.cloneNode(!1)).textContent = q.textContent, Y.appendChild(_), G = !0), j = $ && G ? u.SplitType.both : $ ? u.SplitType.head : G ? u.SplitType.tail : u.SplitType.none, w.setAttribute("data-" + d.DATASET_SPLIT_TYPE, j), A.parentNode.replaceChild(Y, A), w;
766
- }(p, m, v, y) : function(b, D, O, E) {
767
- var w = document.createElement(E);
768
- return f(w, O), w.appendChild(b.$node.cloneNode(!1)), b.$node.parentNode.replaceChild(w, b.$node), w.setAttribute("data-" + d.DATASET_IDENTIFIER, D.id), w.setAttribute("data-" + d.DATASET_SPLIT_TYPE, b.splitType), w.setAttribute("data-" + d.DATASET_IDENTIFIER_EXTRA, ""), w;
769
- }(p, m, v, y);
770
- }, n.normalizeSiblingText = function(p, m) {
771
- if (m === void 0 && (m = !0), p && p.nodeType === 3) {
772
- var v = m ? p.nextSibling : p.previousSibling;
773
- if (v.nodeType === 3) {
774
- var y = v.nodeValue;
775
- p.nodeValue = m ? p.nodeValue + y : y + p.nodeValue, v.parentNode.removeChild(v);
776
- }
777
- }
778
- };
779
- }, function(i, n, t) {
780
- var o = this && this.__values || function(s) {
781
- var u = typeof Symbol == "function" && Symbol.iterator, l = u && s[u], d = 0;
782
- if (l) return l.call(s);
783
- if (s && typeof s.length == "number") return { next: function() {
784
- return s && d >= s.length && (s = void 0), { value: s && s[d++], done: !s };
785
- } };
786
- throw new TypeError(u ? "Object is not iterable." : "Symbol.iterator is not defined.");
787
- };
788
- Object.defineProperty(n, "__esModule", { value: !0 }), n.unique = void 0, n.unique = function(s) {
789
- var u, l, d = [];
790
- try {
791
- for (var a = o(s), c = a.next(); !c.done; c = a.next()) {
792
- var f = c.value;
793
- d.indexOf(f) === -1 && d.push(f);
794
- }
795
- } catch (g) {
796
- u = { error: g };
797
- } finally {
798
- try {
799
- c && !c.done && (l = a.return) && l.call(a);
800
- } finally {
801
- if (u) throw u.error;
802
- }
803
- }
804
- return d;
805
- };
806
- }, function(i, n, t) {
807
- Object.defineProperty(n, "__esModule", { value: !0 }), n.initDefaultStylesheet = void 0;
808
- var o = t(0);
809
- n.initDefaultStylesheet = function() {
810
- var s = o.STYLESHEET_ID, u = document.getElementById(s);
811
- if (!u) {
812
- var l = document.createTextNode(o.getStylesheet());
813
- (u = document.createElement("style")).id = s, u.appendChild(l), document.head.appendChild(u);
814
- }
815
- return u;
816
- };
817
- }]).default;
818
- });
819
- })(hn);
820
- var Ar = hn.exports;
821
- const vn = /* @__PURE__ */ yt(Ar), et = "altimate-display-", Tr = `${et}-highlight`, Bt = `${et}-highlight-hover`, Ir = `${et}-active-highlight`, xr = 1049, xe = new vn({
822
- style: {
823
- className: Tr
824
- }
825
- // wrapTag: HIGHLIGHT_WRAPPER_TAGNAME,
826
- }), St = new vn({
827
- style: {
828
- className: Ir
829
- }
830
- // wrapTag: ACTIVE_HIGHLIGHT_WRAPPER_TAGNAME,
831
- }), mn = (e, r) => r.filter((i) => {
832
- var n;
833
- return ((n = i.$node.nodeValue) == null ? void 0 : n.trim()) !== "";
834
- }), En = (e, r, i) => {
835
- const n = r, t = i, o = ["BR", "HR"];
836
- return o.includes(n.$node.nodeName) && n.$node.parentNode && (n.$node = n.$node.parentNode), o.includes(t.$node.nodeName) && t.$node.parentNode && (t.$node = t.$node.parentNode), [n, t];
837
- };
838
- xe.hooks.Render.SelectedNodes.tap(mn);
839
- xe.hooks.Serialize.Restore.tap(En);
840
- St.hooks.Render.SelectedNodes.tap(mn);
841
- St.hooks.Serialize.Restore.tap(En);
842
- xe.on("selection:hover", ({ id: e }) => {
843
- xe.addClass(Bt, e);
844
- }).on("selection:hover-out", ({ id: e }) => {
845
- xe.removeClass(Bt, e);
846
- });
847
- const Or = (e) => {
848
- var r, i;
849
- return (r = e.meta) != null && r.highlight ? JSON.parse((i = e.meta) == null ? void 0 : i.highlight) : null;
850
- }, Dr = (e) => {
851
- const r = Or(e);
852
- r && (xe.remove(r.id), St.remove(r.id));
853
- }, _t = () => {
854
- var i, n;
855
- const e = At(), r = (e == null ? void 0 : e[1]) === "analysis" ? document.getElementById("sql") : document.getElementById("code");
856
- return (n = (i = r == null ? void 0 : r.parentElement) == null ? void 0 : i.querySelector("code-block")) == null ? void 0 : n.querySelector("code.ng-binding.highlight");
857
- }, At = () => {
858
- var r;
859
- return (r = window.location.hash.split("#").find((i) => i.startsWith("!"))) == null ? void 0 : r.split("/");
860
- }, Tt = () => document.querySelector('[marked="model.description"]'), Rr = (e) => {
861
- var r, i, n;
862
- return e.field ? e.column ? (i = (r = Array.from(
863
- document.querySelectorAll("column-details tr:not(.ng-hide) td:first-child")
864
- ).find((o) => o.innerText === e.column)) == null ? void 0 : r.parentElement) == null ? void 0 : i.querySelector("td:nth-child(3)") : (n = Tt()) == null ? void 0 : n.firstChild : _t();
865
- }, wr = (e) => {
866
- if (e.getAttribute("marked") === "model.description")
867
- return "description";
868
- }, Nr = (e, r, i, n, t) => {
869
- if (e === "description")
870
- return {
871
- start: 0,
872
- end: 0,
873
- x: 0,
874
- y: 0
875
- };
876
- const o = r.querySelectorAll(".line-numbers-rows > span"), s = i.split(`
877
- `), u = Math.max(t.y, n.y), l = Array.from(o).findIndex((c) => {
878
- const { height: f, y: g } = c.getBoundingClientRect();
879
- return u >= g && u <= g + f;
880
- }), d = o[l], a = l - s.length + 1;
881
- return console.log("start and end lines found", a, l), {
882
- x: d.offsetLeft,
883
- y: d.offsetTop + d.offsetHeight / 2,
884
- start: a,
885
- end: l
886
- };
887
- }, ys = () => {
888
- var e;
889
- return [(e = _t()) == null ? void 0 : e.parentElement, Tt()];
890
- };
891
- var ae = /* @__PURE__ */ ((e) => (e[e.LOADING = 0] = "LOADING", e[e.UNINITIALIZED = 1] = "UNINITIALIZED", e[e.INITIALIZED = 2] = "INITIALIZED", e))(ae || {});
892
- const jr = {
893
- users: {},
894
- isRightPanelOpen: !1,
895
- selectedConversationId: void 0,
896
- conversations: {},
897
- conversationsLoadingState: ae.UNINITIALIZED,
898
- newConversation: void 0,
899
- shareId: void 0,
900
- docsAppRendered: !1,
901
- currentPage: _r(),
902
- codeblockLoaded: !1,
903
- source: Ct.DBT_DOCS,
904
- manifest: {}
905
- }, Ge = ln({
906
- name: "appState",
907
- initialState: jr,
908
- reducers: {
909
- setDocsAppRendered: (e, r) => {
910
- e.docsAppRendered = r.payload;
911
- },
912
- setManifest: (e, r) => {
913
- e.manifest = r.payload;
914
- },
915
- updateCurrentPage: (e, r) => {
916
- e.currentPage = r.payload;
917
- },
918
- setConversationSource: (e, r) => {
919
- e.source = r.payload;
920
- },
921
- updateCodeblockLoaded: (e, r) => {
922
- e.codeblockLoaded = r.payload;
923
- },
924
- setShareId: (e, r) => {
925
- e.shareId = r.payload;
926
- },
927
- setCurrentUserId: (e, r) => {
928
- e.currentUserId = r.payload;
929
- },
930
- setConversationsLoadingState: (e, r) => {
931
- e.conversationsLoadingState = r.payload;
932
- },
933
- refetchConversations: (e) => {
934
- e.conversationsLoadingState = ae.UNINITIALIZED;
935
- },
936
- setUsers: (e, r) => {
937
- var i;
938
- return (i = r.payload) != null && i.length ? {
939
- ...e,
940
- users: r.payload.reduce((n, t) => (n[t.id] = t, n), {})
941
- } : e;
942
- },
943
- updateRightPanelState: (e, r) => {
944
- e.isRightPanelOpen = r.payload;
945
- },
946
- updateSelectedConversationId: (e, r) => {
947
- e.selectedConversationId = r.payload;
948
- },
949
- upsertConversation: (e, r) => {
950
- e.conversations = {
951
- ...e.conversations,
952
- [r.payload.conversation_group_id]: {
953
- ...e.conversations[r.payload.conversation_group_id],
954
- ...r.payload
955
- }
956
- };
957
- },
958
- resolveConversationGroup: (e, {
959
- payload: { conversationGroupId: r }
960
- }) => {
961
- e.conversations[r] && delete e.conversations[r];
962
- },
963
- updateNewConversation: (e, r) => {
964
- var t, o;
965
- const i = { ...r.payload };
966
- if (!i.meta) {
967
- console.log("Invalid meta");
968
- return;
969
- }
970
- const n = At();
971
- if (!n || n.length < 3) {
972
- console.error("Unable to find model parts", n);
973
- return;
974
- }
975
- if (console.log("model parts found", n), i.meta.uniqueId = n[2], i.meta.resource_type = n[1], i.meta.range || (i.meta.range = {
976
- end: { line: 0, character: 0 },
977
- start: { line: 0, character: 0 }
978
- }), i.meta.uniqueId) {
979
- const s = ((t = e.manifest.nodes) == null ? void 0 : t[i.meta.uniqueId]) || ((o = e.manifest.macros) == null ? void 0 : o[i.meta.uniqueId]);
980
- i.meta.filePath = (s == null ? void 0 : s.original_file_path) || "";
981
- }
982
- e.newConversation = i;
983
- },
984
- resetNewConversation: (e) => {
985
- e.newConversation = void 0;
986
- },
987
- setConversations: (e, r) => {
988
- r.payload && (e.conversations = r.payload.reduce(
989
- (i, n) => (i[n.conversation_group_id] = n, i),
990
- {}
991
- ), e.selectedConversationId = e.selectedConversationId || r.payload[0].conversation_group_id);
992
- }
993
- }
994
- }), {
995
- setCurrentUserId: bs,
996
- setShareId: Cs,
997
- updateSelectedConversationId: It,
998
- updateRightPanelState: xt,
999
- setUsers: Pr,
1000
- setConversations: Fr,
1001
- resetNewConversation: Ot,
1002
- updateNewConversation: Dt,
1003
- upsertConversation: Ss,
1004
- setDocsAppRendered: _s,
1005
- updateCurrentPage: As,
1006
- updateCodeblockLoaded: Ts,
1007
- resolveConversationGroup: Mr,
1008
- setConversationsLoadingState: $t,
1009
- refetchConversations: yn,
1010
- setConversationSource: Is,
1011
- setManifest: Lr
1012
- } = Ge.actions, tt = _e({
1013
- state: Ge.getInitialState(),
1014
- dispatch: () => null,
1015
- getValue: () => null
1016
- }), Br = ({
1017
- children: e,
1018
- shareId: r,
1019
- userId: i,
1020
- conversationGroupId: n,
1021
- source: t
1022
- }) => {
1023
- const [o, s] = fn(Ge.reducer, {
1024
- ...Ge.getInitialState(),
1025
- shareId: r,
1026
- currentUserId: i,
1027
- selectedConversationId: n,
1028
- isRightPanelOpen: !!n,
1029
- source: t
1030
- }), u = we(
1031
- (d) => d(o),
1032
- [o]
1033
- ), l = fe(
1034
- () => ({
1035
- state: o,
1036
- dispatch: s,
1037
- getValue: u
1038
- }),
1039
- [o, s, u]
1040
- );
1041
- return /* @__PURE__ */ h.jsx(tt.Provider, { value: l, children: e });
1042
- }, $r = () => be(tt), ne = (e) => {
1043
- const { getValue: r } = be(tt);
1044
- return r(e);
1045
- }, ce = () => {
1046
- const { dispatch: e } = be(tt);
1047
- return e;
1048
- }, Hr = (e) => e;
1049
- let bn = Hr;
1050
- process.env.NODE_ENV !== "production" && (bn = (e, r) => {
1051
- if (!e)
1052
- throw new Error(r);
1053
- });
1054
- const kr = _e(null), Ur = _e({}), qr = _e({
1055
- transformPagePoint: (e) => e,
1056
- isStatic: !1,
1057
- reducedMotion: "never"
1058
- }), zr = typeof window < "u", Vr = zr ? gr : le;
1059
- function Cn(e) {
1060
- const r = Se(null);
1061
- return r.current === null && (r.current = e()), r.current;
1062
- }
1063
- class Yr extends te.Component {
1064
- getSnapshotBeforeUpdate(r) {
1065
- const i = this.props.childRef.current;
1066
- if (i && r.isPresent && !this.props.isPresent) {
1067
- const n = this.props.sizeRef.current;
1068
- n.height = i.offsetHeight || 0, n.width = i.offsetWidth || 0, n.top = i.offsetTop, n.left = i.offsetLeft;
1069
- }
1070
- return null;
1071
- }
1072
- /**
1073
- * Required with getSnapshotBeforeUpdate to stop React complaining.
1074
- */
1075
- componentDidUpdate() {
1076
- }
1077
- render() {
1078
- return this.props.children;
1079
- }
1080
- }
1081
- function Wr({ children: e, isPresent: r }) {
1082
- const i = pn(), n = Se(null), t = Se({
1083
- width: 0,
1084
- height: 0,
1085
- top: 0,
1086
- left: 0
1087
- }), { nonce: o } = be(qr);
1088
- return hr(() => {
1089
- const { width: s, height: u, top: l, left: d } = t.current;
1090
- if (r || !n.current || !s || !u)
1091
- return;
1092
- n.current.dataset.motionPopId = i;
1093
- const a = document.createElement("style");
1094
- return o && (a.nonce = o), document.head.appendChild(a), a.sheet && a.sheet.insertRule(`
1095
- [data-motion-pop-id="${i}"] {
1096
- position: absolute !important;
1097
- width: ${s}px !important;
1098
- height: ${u}px !important;
1099
- top: ${l}px !important;
1100
- left: ${d}px !important;
1101
- }
1102
- `), () => {
1103
- document.head.removeChild(a);
1104
- };
1105
- }, [r]), h.jsx(Yr, { isPresent: r, childRef: n, sizeRef: t, children: te.cloneElement(e, { ref: n }) });
1106
- }
1107
- const Xr = ({ children: e, initial: r, isPresent: i, onExitComplete: n, custom: t, presenceAffectsLayout: o, mode: s }) => {
1108
- const u = Cn(Kr), l = pn(), d = fe(
1109
- () => ({
1110
- id: l,
1111
- initial: r,
1112
- isPresent: i,
1113
- custom: t,
1114
- onExitComplete: (a) => {
1115
- u.set(a, !0);
1116
- for (const c of u.values())
1117
- if (!c)
1118
- return;
1119
- n && n();
1120
- },
1121
- register: (a) => (u.set(a, !1), () => u.delete(a))
1122
- }),
1123
- /**
1124
- * If the presence of a child affects the layout of the components around it,
1125
- * we want to make a new context value to ensure they get re-rendered
1126
- * so they can detect that layout change.
1127
- */
1128
- o ? [Math.random()] : [i]
1129
- );
1130
- return fe(() => {
1131
- u.forEach((a, c) => u.set(c, !1));
1132
- }, [i]), te.useEffect(() => {
1133
- !i && !u.size && n && n();
1134
- }, [i]), s === "popLayout" && (e = h.jsx(Wr, { isPresent: i, children: e })), h.jsx(kr.Provider, { value: d, children: e });
1135
- };
1136
- function Kr() {
1137
- return /* @__PURE__ */ new Map();
1138
- }
1139
- const qe = (e) => e.key || "";
1140
- function Ht(e) {
1141
- const r = [];
1142
- return De.forEach(e, (i) => {
1143
- vr(i) && r.push(i);
1144
- }), r;
1145
- }
1146
- const Gr = ({ children: e, exitBeforeEnter: r, custom: i, initial: n = !0, onExitComplete: t, presenceAffectsLayout: o = !0, mode: s = "sync" }) => {
1147
- bn(!r, "Replace exitBeforeEnter with mode='wait'");
1148
- const u = fe(() => Ht(e), [e]), l = u.map(qe), d = Se(!0), a = Se(u), c = Cn(() => /* @__PURE__ */ new Map()), [f, g] = re(u), [p, m] = re(u);
1149
- Vr(() => {
1150
- d.current = !1, a.current = u;
1151
- for (let C = 0; C < p.length; C++) {
1152
- const S = qe(p[C]);
1153
- l.includes(S) ? c.delete(S) : c.get(S) !== !0 && c.set(S, !1);
1154
- }
1155
- }, [p, l.length, l.join("-")]);
1156
- const v = [];
1157
- if (u !== f) {
1158
- let C = [...u];
1159
- for (let S = 0; S < p.length; S++) {
1160
- const T = p[S], b = qe(T);
1161
- l.includes(b) || (C.splice(S, 0, T), v.push(T));
1162
- }
1163
- s === "wait" && v.length && (C = v), m(Ht(C)), g(u);
1164
- return;
1165
- }
1166
- process.env.NODE_ENV !== "production" && s === "wait" && p.length > 1 && console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
1167
- const { forceRender: y } = be(Ur);
1168
- return h.jsx(h.Fragment, { children: p.map((C) => {
1169
- const S = qe(C), T = u === p || l.includes(S), b = () => {
1170
- if (c.has(S))
1171
- c.set(S, !0);
1172
- else
1173
- return;
1174
- let D = !0;
1175
- c.forEach((O) => {
1176
- O || (D = !1);
1177
- }), D && (y == null || y(), m(a.current), t && t());
1178
- };
1179
- return h.jsx(Xr, { isPresent: T, initial: !d.current || n ? void 0 : !1, custom: T ? void 0 : i, presenceAffectsLayout: o, mode: s, onExitComplete: T ? void 0 : b, children: C }, S);
1180
- }) });
1181
- }, Zr = ({ pos: e, onAddComment: r }) => bt(
1182
- /* @__PURE__ */ h.jsx(Gr, { children: e && /* @__PURE__ */ h.jsx(
1183
- ye,
1184
- {
1185
- onClick: r,
1186
- id: `${et}-highlight`,
1187
- style: {
1188
- position: "absolute",
1189
- top: e.y,
1190
- left: e.x,
1191
- // right: "15px",
1192
- zIndex: xr + 5,
1193
- cursor: "pointer",
1194
- background: "#007AFF",
1195
- width: 26,
1196
- height: 26,
1197
- borderRadius: "100%",
1198
- boxShadow: "none",
1199
- border: "none",
1200
- display: "flex",
1201
- justifyContent: "center",
1202
- alignItems: "center",
1203
- fontSize: "13px",
1204
- fontWeight: "bold",
1205
- color: "#fff",
1206
- padding: 0
1207
- },
1208
- children: /* @__PURE__ */ h.jsx(dn, {})
1209
- }
1210
- ) }),
1211
- e.element.parentElement
1212
- ), Qr = () => {
1213
- const {
1214
- state: { isRightPanelOpen: e }
1215
- } = $r(), r = ce(), i = () => {
1216
- r(xt(!e));
1217
- };
1218
- return /* @__PURE__ */ h.jsx(ye, { onClick: i, children: e ? "Hide conversations" : "Show conversations" });
1219
- }, Jr = (e) => ve.get(`dbt/dbt_docs_share/${e}`), eo = (e, r, i) => ve.post(`dbt/dbt_docs_share/${e}/conversation_group`, {
1220
- ...r,
1221
- telemetry: {
1222
- eventName: "dbtCollaboration:create",
1223
- properties: { source: i }
1224
- }
1225
- }), to = (e, r, i, n) => ve.post(
1226
- `dbt/dbt_docs_share/${e}/conversation_group/${r}/conversation`,
1227
- {
1228
- ...i,
1229
- telemetry: {
1230
- eventName: "dbtCollaboration:reply",
1231
- properties: { source: n }
1232
- }
1233
- }
1234
- ), no = (e) => ve.get(
1235
- `dbt/dbt_docs_share/${e}/conversations`
1236
- ), ro = (e) => ve.get("users/chat", { company: e }), oo = (e, r, i) => ve.post(
1237
- `dbt/dbt_docs_share/${e}/conversation_group/${r}/resolve`,
1238
- {
1239
- resolved: !0,
1240
- telemetry: {
1241
- eventName: "dbtCollaboration:resolve",
1242
- properties: { source: i }
1243
- }
1244
- }
1245
- ), io = () => {
1246
- const e = ne(
1247
- (u) => u.shareId
1248
- ), [r, i] = re(null), [n, t] = re(!1), o = ce();
1249
- le(() => {
1250
- r != null && r.manifest_presigned_url && fetch(r.manifest_presigned_url).then((u) => u.json()).then((u) => {
1251
- o(Lr(u));
1252
- }).catch(
1253
- (u) => console.error("error loading manifest", u, r.manifest_presigned_url)
1254
- );
1255
- }, [o, r == null ? void 0 : r.manifest_presigned_url]);
1256
- const s = we(async () => {
1257
- if (!e)
1258
- return;
1259
- t(!0);
1260
- const u = await Jr(e);
1261
- if (u) {
1262
- i(u);
1263
- const l = document.getElementById("collapse-sidebar");
1264
- l == null || l.click();
1265
- }
1266
- t(!1);
1267
- }, [e]);
1268
- return le(() => {
1269
- !e || r || n || s();
1270
- }, [e, r, s, n]), { shareDetails: r, loading: n };
1271
- }, so = () => {
1272
- const e = ne(
1273
- (a) => a.selectedConversationId ? a.conversations[a.selectedConversationId] : null
1274
- ), r = ne(
1275
- (a) => a.docsAppRendered
1276
- ), i = ne(
1277
- (a) => a.newConversation
1278
- ), n = ce(), [t, o] = re(null), [s, u] = re(null);
1279
- le(() => {
1280
- i && (o(null), u(null));
1281
- }, [i]);
1282
- const l = we(() => {
1283
- console.log("resetHighlights"), t && Dr(t), u(null), o(null);
1284
- }, [t]);
1285
- return le(() => {
1286
- !e || !r || e.meta.resource_type && e.meta.uniqueId && (window.location.hash = `#!/${e.meta.resource_type}/${e.meta.uniqueId}`);
1287
- }, [e, r, n]), {
1288
- getHighlightedSelectionData: () => t,
1289
- pos: s,
1290
- onSelectionEnd: (a) => {
1291
- const c = a.target, f = wr(c), { end: g, start: p } = a.detail.selectionRange, m = document.getSelection();
1292
- if (!m || !m.rangeCount)
1293
- return l(), null;
1294
- const y = m.getRangeAt(0).toString(), C = c == null ? void 0 : c.innerText;
1295
- if (!y || !C)
1296
- return;
1297
- const { end: S, start: T, x: b, y: D } = Nr(
1298
- f,
1299
- c,
1300
- y,
1301
- g,
1302
- p
1303
- );
1304
- console.log("selection range", S, T, b, D);
1305
- const O = {
1306
- meta: {
1307
- filePath: "",
1308
- field: f,
1309
- highlight: y,
1310
- range: {
1311
- end: { line: S, character: 0 },
1312
- start: { line: T, character: 0 }
1313
- }
1314
- }
1315
- };
1316
- n(Ot()), u({
1317
- x: b,
1318
- y: D,
1319
- element: c
1320
- }), document.body.addEventListener("click", l, { once: !0 }), o(O);
1321
- }
1322
- };
1323
- }, ao = ({
1324
- conversationGroup: e
1325
- }) => {
1326
- const r = ne(
1327
- (u) => u.selectedConversationId
1328
- ), i = ce(), n = Se(null), t = fe(() => Rr(e.meta), [e.meta]), o = () => {
1329
- i(It(e.conversation_group_id));
1330
- }, s = fe(() => {
1331
- if (!t)
1332
- return;
1333
- if (e.meta.field === "description")
1334
- return { top: 0, bottom: t.offsetHeight };
1335
- let u = 0, l = 0;
1336
- for (let d = e.meta.range.start.line; d <= e.meta.range.end.line; d++) {
1337
- const a = t.querySelector(`.line-numbers-rows > span:nth-child(${d + 1})`);
1338
- a && (d === e.meta.range.start.line && (u = a.offsetTop + 15), d === e.meta.range.end.line && (l = a.offsetTop + a.offsetHeight));
1339
- }
1340
- return { top: u, bottom: l };
1341
- }, [
1342
- t,
1343
- e.meta.field,
1344
- e.meta.range.start.line,
1345
- e.meta.range.end.line
1346
- ]);
1347
- return le(() => {
1348
- var u;
1349
- r === e.conversation_group_id && ((u = n.current) == null || u.scrollIntoView({
1350
- behavior: "smooth",
1351
- block: "center"
1352
- }));
1353
- }, [e.conversation_group_id, r]), !s || !(t != null && t.parentElement) ? null : bt(
1354
- /* @__PURE__ */ h.jsx(
1355
- "div",
1356
- {
1357
- ref: n,
1358
- className: `altimate-highlighter ${r === e.conversation_group_id ? "active" : ""}`,
1359
- style: { top: s.top, height: s.bottom - s.top },
1360
- onClick: o,
1361
- children: /* @__PURE__ */ h.jsx(sr, {})
1362
- }
1363
- ),
1364
- t.parentElement
1365
- );
1366
- }, uo = () => {
1367
- const e = ne(
1368
- (t) => Object.values(t.conversations || {})
1369
- ), r = ne(
1370
- (t) => t.codeblockLoaded
1371
- ), i = ne(
1372
- (t) => t.currentPage
1373
- ), n = e == null ? void 0 : e.filter(
1374
- (t) => t.meta.resource_type === i.resourceType && t.meta.uniqueId === i.name
1375
- );
1376
- return !(n != null && n.length) || !r ? null : /* @__PURE__ */ h.jsx(h.Fragment, { children: n.map((t) => /* @__PURE__ */ h.jsx(
1377
- ao,
1378
- {
1379
- conversationGroup: t
1380
- },
1381
- t.conversation_group_id
1382
- )) });
1383
- }, lo = "_dbtDocs_14zop_9", co = "_hotspotButton_14zop_46", fo = "_pulse_14zop_1", po = "_conversationRightPanelCloseButton_14zop_62", go = "_conversationRightPanel_14zop_62", ho = "_newConversationForm_14zop_94", vo = "_highlightText_14zop_108", mo = "_conversationInputForm_14zop_130", Eo = "_conversationGroup_14zop_156", yo = "_replyForm_14zop_189", bo = "_resolveButton_14zop_237", me = {
1384
- dbtDocs: lo,
1385
- hotspotButton: co,
1386
- pulse: fo,
1387
- conversationRightPanelCloseButton: po,
1388
- conversationRightPanel: go,
1389
- newConversationForm: ho,
1390
- highlightText: vo,
1391
- conversationInputForm: mo,
1392
- conversationGroup: Eo,
1393
- replyForm: yo,
1394
- resolveButton: bo
1395
- }, Co = "_profileImage_11vaf_1", So = {
1396
- profileImage: Co
1397
- }, Sn = ({ user: e }) => {
1398
- var r;
1399
- return /* @__PURE__ */ h.jsx("div", { className: So.profileImage, children: ((r = e == null ? void 0 : e.first_name) == null ? void 0 : r[0]) || "" });
1400
- };
1401
- function _o(e) {
1402
- if (Array.isArray(e)) {
1403
- for (var r = 0, i = new Array(e.length); r < e.length; r++)
1404
- i[r] = e[r];
1405
- return i;
1406
- }
1407
- }
1408
- function Ao(e) {
1409
- if (Symbol.iterator in Object(e) || Object.prototype.toString.call(e) === "[object Arguments]") return Array.from(e);
1410
- }
1411
- function To() {
1412
- throw new TypeError("Invalid attempt to spread non-iterable instance");
1413
- }
1414
- function Ze(e) {
1415
- return _o(e) || Ao(e) || To();
1416
- }
1417
- function ue() {
1418
- return ue = Object.assign || function(e) {
1419
- for (var r = 1; r < arguments.length; r++) {
1420
- var i = arguments[r];
1421
- for (var n in i)
1422
- Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
1423
- }
1424
- return e;
1425
- }, ue.apply(this, arguments);
1426
- }
1427
- function Io(e, r) {
1428
- if (!(e instanceof r))
1429
- throw new TypeError("Cannot call a class as a function");
1430
- }
1431
- function xo(e, r) {
1432
- for (var i = 0; i < r.length; i++) {
1433
- var n = r[i];
1434
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, n.key, n);
1435
- }
1436
- }
1437
- function Oo(e, r, i) {
1438
- return r && xo(e.prototype, r), e;
1439
- }
1440
- function k(e) {
1441
- if (e === void 0)
1442
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1443
- return e;
1444
- }
1445
- function pt(e, r) {
1446
- return pt = Object.setPrototypeOf || function(n, t) {
1447
- return n.__proto__ = t, n;
1448
- }, pt(e, r);
1449
- }
1450
- function Do(e, r) {
1451
- if (typeof r != "function" && r !== null)
1452
- throw new TypeError("Super expression must either be null or a function");
1453
- e.prototype = Object.create(r && r.prototype, {
1454
- constructor: {
1455
- value: e,
1456
- writable: !0,
1457
- configurable: !0
1458
- }
1459
- }), r && pt(e, r);
1460
- }
1461
- function Oe(e) {
1462
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Oe = function(i) {
1463
- return typeof i;
1464
- } : Oe = function(i) {
1465
- return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
1466
- }, Oe(e);
1467
- }
1468
- function We(e) {
1469
- return typeof Symbol == "function" && Oe(Symbol.iterator) === "symbol" ? We = function(i) {
1470
- return Oe(i);
1471
- } : We = function(i) {
1472
- return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : Oe(i);
1473
- }, We(e);
1474
- }
1475
- function Ro(e, r) {
1476
- return r && (We(r) === "object" || typeof r == "function") ? r : k(e);
1477
- }
1478
- function Qe(e) {
1479
- return Qe = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
1480
- return i.__proto__ || Object.getPrototypeOf(i);
1481
- }, Qe(e);
1482
- }
1483
- function H(e, r, i) {
1484
- return r in e ? Object.defineProperty(e, r, {
1485
- value: i,
1486
- enumerable: !0,
1487
- configurable: !0,
1488
- writable: !0
1489
- }) : e[r] = i, e;
1490
- }
1491
- var wo = function(e, r, i, n, t, o, s, u) {
1492
- if (process.env.NODE_ENV !== "production" && r === void 0)
1493
- throw new Error("invariant requires an error message argument");
1494
- if (!e) {
1495
- var l;
1496
- if (r === void 0)
1497
- l = new Error(
1498
- "Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings."
1499
- );
1500
- else {
1501
- var d = [i, n, t, o, s, u], a = 0;
1502
- l = new Error(
1503
- r.replace(/%s/g, function() {
1504
- return d[a++];
1505
- })
1506
- ), l.name = "Invariant Violation";
1507
- }
1508
- throw l.framesToPop = 1, l;
1509
- }
1510
- }, No = wo;
1511
- const Re = /* @__PURE__ */ yt(No);
1512
- function jo(e) {
1513
- if (Array.isArray(e)) return e;
1514
- }
1515
- function Po(e, r) {
1516
- var i = [], n = !0, t = !1, o = void 0;
1517
- try {
1518
- for (var s = e[Symbol.iterator](), u; !(n = (u = s.next()).done) && (i.push(u.value), !(r && i.length === r)); n = !0)
1519
- ;
1520
- } catch (l) {
1521
- t = !0, o = l;
1522
- } finally {
1523
- try {
1524
- !n && s.return != null && s.return();
1525
- } finally {
1526
- if (t) throw o;
1527
- }
1528
- }
1529
- return i;
1530
- }
1531
- function Fo() {
1532
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
1533
- }
1534
- function Je(e, r) {
1535
- return jo(e) || Po(e, r) || Fo();
1536
- }
1537
- function Mo(e, r) {
1538
- if (e == null) return {};
1539
- var i = {}, n = Object.keys(e), t, o;
1540
- for (o = 0; o < n.length; o++)
1541
- t = n[o], !(r.indexOf(t) >= 0) && (i[t] = e[t]);
1542
- return i;
1543
- }
1544
- function Lo(e, r) {
1545
- if (e == null) return {};
1546
- var i = Mo(e, r), n, t;
1547
- if (Object.getOwnPropertySymbols) {
1548
- var o = Object.getOwnPropertySymbols(e);
1549
- for (t = 0; t < o.length; t++)
1550
- n = o[t], !(r.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
1551
- }
1552
- return i;
1553
- }
1554
- function Me(e) {
1555
- "@babel/helpers - typeof";
1556
- return Me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
1557
- return typeof r;
1558
- } : function(r) {
1559
- return r && typeof Symbol == "function" && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
1560
- }, Me(e);
1561
- }
1562
- function Bo(e, r) {
1563
- if (Me(e) != "object" || !e) return e;
1564
- var i = e[Symbol.toPrimitive];
1565
- if (i !== void 0) {
1566
- var n = i.call(e, r || "default");
1567
- if (Me(n) != "object") return n;
1568
- throw new TypeError("@@toPrimitive must return a primitive value.");
1569
- }
1570
- return (r === "string" ? String : Number)(e);
1571
- }
1572
- function $o(e) {
1573
- var r = Bo(e, "string");
1574
- return Me(r) == "symbol" ? r : r + "";
1575
- }
1576
- function Le(e, r, i) {
1577
- return (r = $o(r)) in e ? Object.defineProperty(e, r, {
1578
- value: i,
1579
- enumerable: !0,
1580
- configurable: !0,
1581
- writable: !0
1582
- }) : e[r] = i, e;
1583
- }
1584
- function gt(e, r) {
1585
- (r == null || r > e.length) && (r = e.length);
1586
- for (var i = 0, n = Array(r); i < r; i++) n[i] = e[i];
1587
- return n;
1588
- }
1589
- function Ho(e) {
1590
- if (Array.isArray(e)) return gt(e);
1591
- }
1592
- function ko(e) {
1593
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
1594
- }
1595
- function Uo(e, r) {
1596
- if (e) {
1597
- if (typeof e == "string") return gt(e, r);
1598
- var i = {}.toString.call(e).slice(8, -1);
1599
- return i === "Object" && e.constructor && (i = e.constructor.name), i === "Map" || i === "Set" ? Array.from(e) : i === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i) ? gt(e, r) : void 0;
1600
- }
1601
- }
1602
- function qo() {
1603
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
1604
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
1605
- }
1606
- function he(e) {
1607
- return Ho(e) || ko(e) || Uo(e) || qo();
1608
- }
1609
- var Ne = function(r) {
1610
- return r === Object(r) ? Object.keys(r) : [];
1611
- }, _n = function(r) {
1612
- return r === Object(r) ? Object.values(r) : [];
1613
- };
1614
- function An(e, r) {
1615
- var i = Object.assign({}, e);
1616
- return Xe(e) && Xe(r) && Ne(r).forEach(function(n) {
1617
- Xe(r[n]) ? n in e ? i[n] = An(e[n], r[n]) : Object.assign(i, Le({}, n, r[n])) : Object.assign(i, Le({}, n, r[n]));
1618
- }), i;
1619
- }
1620
- var ht = function(r) {
1621
- for (var i = arguments.length, n = new Array(i > 1 ? i - 1 : 0), t = 1; t < i; t++)
1622
- n[t - 1] = arguments[t];
1623
- return n.reduce(function(o, s) {
1624
- return An(o, s);
1625
- }, r);
1626
- }, zo = function(r, i) {
1627
- var n = Object.assign({}, r);
1628
- if (i)
1629
- for (var t = 0; t < i.length; t++)
1630
- delete n[i[t]];
1631
- return n;
1632
- }, Xe = function(r) {
1633
- return r === Object(r) && !(r instanceof Date) && !Array.isArray(r);
1634
- }, Vo = function(r) {
1635
- return (r || []).filter(Boolean);
1636
- }, Rt = function(r) {
1637
- return r[0] === "&";
1638
- }, Yo = function(r) {
1639
- return !Rt(r);
1640
- }, kt = function(r) {
1641
- return r.replace(/-(\w)/g, function(i, n) {
1642
- return n.toUpperCase();
1643
- });
1644
- }, Wo = function(r) {
1645
- for (var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], n = Ne(r), t = {}, o = 0, s = n.length; o < s; o += 1) {
1646
- var u = n[o], l = Object.prototype.toString.call(r[u]) !== "[object Object]" || // style defs
1647
- u[0] === ":" || // pseudo selectors
1648
- u[0] === "@" || // @media / @keyframes / @supports / @font-face
1649
- i.indexOf(u) >= 0;
1650
- l && (t[u] = r[u]);
1651
- }
1652
- return t;
1653
- }, Tn = function(r, i) {
1654
- for (var n = i.map(kt), t = Ne(r), o = {}, s = 0, u = t.length; s < u; s += 1) {
1655
- var l = t[s];
1656
- (i.indexOf(l) >= 0 || n.indexOf(kt(l)) >= 0) && (o[l] = r[l]);
1657
- }
1658
- return o;
1659
- }, Xo = function e(r, i) {
1660
- for (var n = ht.apply(void 0, [{}, zo(r, i)].concat(he(_n(Tn(r, i))))), t = Ne(n).filter(Rt), o = 0, s = t.length; o < s; o += 1) {
1661
- var u = t[o], l = e(n[u], i);
1662
- i.indexOf(u) >= 0 ? (delete n[u], n = ht({}, n, l)) : n[u] = l;
1663
- }
1664
- return n;
1665
- };
1666
- function Ut(e, r) {
1667
- var i = Object.keys(e);
1668
- if (Object.getOwnPropertySymbols) {
1669
- var n = Object.getOwnPropertySymbols(e);
1670
- r && (n = n.filter(function(t) {
1671
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
1672
- })), i.push.apply(i, n);
1673
- }
1674
- return i;
1675
- }
1676
- function qt(e) {
1677
- for (var r = 1; r < arguments.length; r++) {
1678
- var i = arguments[r] != null ? arguments[r] : {};
1679
- r % 2 ? Ut(Object(i), !0).forEach(function(n) {
1680
- Le(e, n, i[n]);
1681
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : Ut(Object(i)).forEach(function(n) {
1682
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
1683
- });
1684
- }
1685
- return e;
1686
- }
1687
- var Ko = ["animationName"], In = function(r) {
1688
- var i = r.style, n = r.className;
1689
- return qt(qt({}, i ? {
1690
- style: Wo(i, Ko)
1691
- } : {}), n ? {
1692
- className: n
1693
- } : {});
1694
- }, xn = /* @__PURE__ */ _e(In);
1695
- xn.Provider;
1696
- var On = function(r) {
1697
- if (r) {
1698
- if (typeof r == "string")
1699
- return [r];
1700
- if (!Array.isArray(r)) {
1701
- var i = r;
1702
- return Ne(r).reduce(function(n, t) {
1703
- return n.concat(i[t] ? [t] : []);
1704
- }, []);
1705
- }
1706
- } else return [];
1707
- return r;
1708
- }, Go = {}, Zo = function(r) {
1709
- return function(i, n) {
1710
- var t = n || Go;
1711
- r.memoize = r.memoize || /* @__PURE__ */ new WeakMap();
1712
- var o;
1713
- r.memoize.has(t) ? o = r.memoize.get(t) : (o = {}, r.memoize.set(t, o));
1714
- var s = On(i).join(" ");
1715
- return s in o ? o[s] : o[s] = r(i || [], n);
1716
- };
1717
- };
1718
- function zt(e, r) {
1719
- var i = Object.keys(e);
1720
- if (Object.getOwnPropertySymbols) {
1721
- var n = Object.getOwnPropertySymbols(e);
1722
- r && (n = n.filter(function(t) {
1723
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
1724
- })), i.push.apply(i, n);
1725
- }
1726
- return i;
1727
- }
1728
- function Ae(e) {
1729
- for (var r = 1; r < arguments.length; r++) {
1730
- var i = arguments[r] != null ? arguments[r] : {};
1731
- r % 2 ? zt(Object(i), !0).forEach(function(n) {
1732
- Le(e, n, i[n]);
1733
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : zt(Object(i)).forEach(function(n) {
1734
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
1735
- });
1736
- }
1737
- return e;
1738
- }
1739
- var Qo = function(r) {
1740
- var i = r && Ne(r)[0];
1741
- return i && i.split("__")[0].split("--")[0];
1742
- }, Jo = function(r, i, n) {
1743
- if (r) {
1744
- var t = r.split(" ")[0], o = [].concat(he(i.length === 0 ? n.map(function(s) {
1745
- return "".concat(t, "--").concat(s.substring(1));
1746
- }) : []), he(i.map(function(s) {
1747
- return "".concat(t, "__").concat(s);
1748
- })));
1749
- return i.length === 0 ? [r].concat(he(o)) : o;
1750
- }
1751
- };
1752
- function Dn(e) {
1753
- var r = e.style, i = e.className, n = e.classNames, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : In, o = i || Qo(n) || (r == null ? void 0 : r.className), s = typeof r == "function" ? r : Zo(function(c, f) {
1754
- var g = On(c);
1755
- Re(Array.isArray(g), "First parameter must be a string, an array of strings, a plain object with boolean values, or a falsy value."), Re(!f || Xe(f), "Optional second parameter must be a plain object.");
1756
- var p = g.filter(Rt), m = g.filter(Yo), v = m.length > 0 ? function(S) {
1757
- return _n(Tn(S, m));
1758
- } : function(S) {
1759
- return [S];
1760
- }, y = function() {
1761
- var T = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1762
- return v(Xo(T, p));
1763
- }, C = Jo(o, m, p);
1764
- return Dn(Ae(Ae(Ae({}, (r || f) && {
1765
- style: ht.apply(void 0, [{}].concat(he(y(f)), he(y(r))))
1766
- }), C && {
1767
- className: C.join(" ")
1768
- }), n && {
1769
- classNames: n
1770
- }), t);
1771
- }), u = Ae({}, typeof r == "function" ? r : {
1772
- style: r
1773
- }), l = he(new Set([].concat(he(u.className ? u.className.split(" ") : []), he(o ? o.split(" ") : [])))), d = n ? Vo(l.map(function(c) {
1774
- return n[c];
1775
- })) : l, a = t(Ae(Ae({}, u), d.length > 0 ? {
1776
- className: d.join(" ")
1777
- } : {}));
1778
- return Object.assign(s, a), s;
1779
- }
1780
- function Vt(e, r) {
1781
- var i = Object.keys(e);
1782
- if (Object.getOwnPropertySymbols) {
1783
- var n = Object.getOwnPropertySymbols(e);
1784
- r && (n = n.filter(function(t) {
1785
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
1786
- })), i.push.apply(i, n);
1787
- }
1788
- return i;
1789
- }
1790
- function je(e) {
1791
- for (var r = 1; r < arguments.length; r++) {
1792
- var i = arguments[r] != null ? arguments[r] : {};
1793
- r % 2 ? Vt(Object(i), !0).forEach(function(n) {
1794
- Le(e, n, i[n]);
1795
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : Vt(Object(i)).forEach(function(n) {
1796
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
1797
- });
1798
- }
1799
- return e;
1800
- }
1801
- var ei = function() {
1802
- for (var r = arguments.length, i = new Array(r), n = 0; n < r; n++)
1803
- i[n] = arguments[n];
1804
- return i.reduce(function(t, o) {
1805
- return je(je(je({}, t), typeof o == "function" ? o : {}), {}, {
1806
- style: je(je({}, t.style), typeof o == "function" ? o.style : o)
1807
- });
1808
- }, {});
1809
- }, wt = function(r, i, n) {
1810
- var t = i.style, o = i.className, s = i.classNames, u = be(xn), l = fe(function() {
1811
- return Dn({
1812
- style: t,
1813
- className: o,
1814
- classNames: s
1815
- }, u);
1816
- }, [t, o, s, u]);
1817
- return l(n, r);
1818
- }, vt = { exports: {} }, ze = { exports: {} }, Q = {};
1819
- /** @license React v16.13.1
1820
- * react-is.production.min.js
1821
- *
1822
- * Copyright (c) Facebook, Inc. and its affiliates.
1823
- *
1824
- * This source code is licensed under the MIT license found in the
1825
- * LICENSE file in the root directory of this source tree.
1826
- */
1827
- var Yt;
1828
- function ti() {
1829
- if (Yt) return Q;
1830
- Yt = 1;
1831
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, a = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
1832
- function S(b) {
1833
- if (typeof b == "object" && b !== null) {
1834
- var D = b.$$typeof;
1835
- switch (D) {
1836
- case r:
1837
- switch (b = b.type, b) {
1838
- case l:
1839
- case d:
1840
- case n:
1841
- case o:
1842
- case t:
1843
- case c:
1844
- return b;
1845
- default:
1846
- switch (b = b && b.$$typeof, b) {
1847
- case u:
1848
- case a:
1849
- case p:
1850
- case g:
1851
- case s:
1852
- return b;
1853
- default:
1854
- return D;
1855
- }
1856
- }
1857
- case i:
1858
- return D;
1859
- }
1860
- }
1861
- }
1862
- function T(b) {
1863
- return S(b) === d;
1864
- }
1865
- return Q.AsyncMode = l, Q.ConcurrentMode = d, Q.ContextConsumer = u, Q.ContextProvider = s, Q.Element = r, Q.ForwardRef = a, Q.Fragment = n, Q.Lazy = p, Q.Memo = g, Q.Portal = i, Q.Profiler = o, Q.StrictMode = t, Q.Suspense = c, Q.isAsyncMode = function(b) {
1866
- return T(b) || S(b) === l;
1867
- }, Q.isConcurrentMode = T, Q.isContextConsumer = function(b) {
1868
- return S(b) === u;
1869
- }, Q.isContextProvider = function(b) {
1870
- return S(b) === s;
1871
- }, Q.isElement = function(b) {
1872
- return typeof b == "object" && b !== null && b.$$typeof === r;
1873
- }, Q.isForwardRef = function(b) {
1874
- return S(b) === a;
1875
- }, Q.isFragment = function(b) {
1876
- return S(b) === n;
1877
- }, Q.isLazy = function(b) {
1878
- return S(b) === p;
1879
- }, Q.isMemo = function(b) {
1880
- return S(b) === g;
1881
- }, Q.isPortal = function(b) {
1882
- return S(b) === i;
1883
- }, Q.isProfiler = function(b) {
1884
- return S(b) === o;
1885
- }, Q.isStrictMode = function(b) {
1886
- return S(b) === t;
1887
- }, Q.isSuspense = function(b) {
1888
- return S(b) === c;
1889
- }, Q.isValidElementType = function(b) {
1890
- return typeof b == "string" || typeof b == "function" || b === n || b === d || b === o || b === t || b === c || b === f || typeof b == "object" && b !== null && (b.$$typeof === p || b.$$typeof === g || b.$$typeof === s || b.$$typeof === u || b.$$typeof === a || b.$$typeof === v || b.$$typeof === y || b.$$typeof === C || b.$$typeof === m);
1891
- }, Q.typeOf = S, Q;
1892
- }
1893
- var J = {};
1894
- /** @license React v16.13.1
1895
- * react-is.development.js
1896
- *
1897
- * Copyright (c) Facebook, Inc. and its affiliates.
1898
- *
1899
- * This source code is licensed under the MIT license found in the
1900
- * LICENSE file in the root directory of this source tree.
1901
- */
1902
- var Wt;
1903
- function ni() {
1904
- return Wt || (Wt = 1, process.env.NODE_ENV !== "production" && function() {
1905
- var e = typeof Symbol == "function" && Symbol.for, r = e ? Symbol.for("react.element") : 60103, i = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, t = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, a = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, f = e ? Symbol.for("react.suspense_list") : 60120, g = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, v = e ? Symbol.for("react.fundamental") : 60117, y = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
1906
- function S(R) {
1907
- return typeof R == "string" || typeof R == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1908
- R === n || R === d || R === o || R === t || R === c || R === f || typeof R == "object" && R !== null && (R.$$typeof === p || R.$$typeof === g || R.$$typeof === s || R.$$typeof === u || R.$$typeof === a || R.$$typeof === v || R.$$typeof === y || R.$$typeof === C || R.$$typeof === m);
1909
- }
1910
- function T(R) {
1911
- if (typeof R == "object" && R !== null) {
1912
- var pe = R.$$typeof;
1913
- switch (pe) {
1914
- case r:
1915
- var Ue = R.type;
1916
- switch (Ue) {
1917
- case l:
1918
- case d:
1919
- case n:
1920
- case o:
1921
- case t:
1922
- case c:
1923
- return Ue;
1924
- default:
1925
- var Ft = Ue && Ue.$$typeof;
1926
- switch (Ft) {
1927
- case u:
1928
- case a:
1929
- case p:
1930
- case g:
1931
- case s:
1932
- return Ft;
1933
- default:
1934
- return pe;
1935
- }
1936
- }
1937
- case i:
1938
- return pe;
1939
- }
1940
- }
1941
- }
1942
- var b = l, D = d, O = u, E = s, w = r, A = a, P = n, q = p, Y = g, F = i, V = o, N = t, j = c, $ = !1;
1943
- function G(R) {
1944
- return $ || ($ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), _(R) || T(R) === l;
1945
- }
1946
- function _(R) {
1947
- return T(R) === d;
1948
- }
1949
- function I(R) {
1950
- return T(R) === u;
1951
- }
1952
- function L(R) {
1953
- return T(R) === s;
1954
- }
1955
- function B(R) {
1956
- return typeof R == "object" && R !== null && R.$$typeof === r;
1957
- }
1958
- function M(R) {
1959
- return T(R) === a;
1960
- }
1961
- function W(R) {
1962
- return T(R) === n;
1963
- }
1964
- function U(R) {
1965
- return T(R) === p;
1966
- }
1967
- function z(R) {
1968
- return T(R) === g;
1969
- }
1970
- function X(R) {
1971
- return T(R) === i;
1972
- }
1973
- function ee(R) {
1974
- return T(R) === o;
1975
- }
1976
- function K(R) {
1977
- return T(R) === t;
1978
- }
1979
- function se(R) {
1980
- return T(R) === c;
1981
- }
1982
- J.AsyncMode = b, J.ConcurrentMode = D, J.ContextConsumer = O, J.ContextProvider = E, J.Element = w, J.ForwardRef = A, J.Fragment = P, J.Lazy = q, J.Memo = Y, J.Portal = F, J.Profiler = V, J.StrictMode = N, J.Suspense = j, J.isAsyncMode = G, J.isConcurrentMode = _, J.isContextConsumer = I, J.isContextProvider = L, J.isElement = B, J.isForwardRef = M, J.isFragment = W, J.isLazy = U, J.isMemo = z, J.isPortal = X, J.isProfiler = ee, J.isStrictMode = K, J.isSuspense = se, J.isValidElementType = S, J.typeOf = T;
1983
- }()), J;
1984
- }
1985
- var Xt;
1986
- function Rn() {
1987
- return Xt || (Xt = 1, process.env.NODE_ENV === "production" ? ze.exports = ti() : ze.exports = ni()), ze.exports;
1988
- }
1989
- /*
1990
- object-assign
1991
- (c) Sindre Sorhus
1992
- @license MIT
1993
- */
1994
- var ot, Kt;
1995
- function ri() {
1996
- if (Kt) return ot;
1997
- Kt = 1;
1998
- var e = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
1999
- function n(o) {
2000
- if (o == null)
2001
- throw new TypeError("Object.assign cannot be called with null or undefined");
2002
- return Object(o);
2003
- }
2004
- function t() {
2005
- try {
2006
- if (!Object.assign)
2007
- return !1;
2008
- var o = new String("abc");
2009
- if (o[5] = "de", Object.getOwnPropertyNames(o)[0] === "5")
2010
- return !1;
2011
- for (var s = {}, u = 0; u < 10; u++)
2012
- s["_" + String.fromCharCode(u)] = u;
2013
- var l = Object.getOwnPropertyNames(s).map(function(a) {
2014
- return s[a];
2015
- });
2016
- if (l.join("") !== "0123456789")
2017
- return !1;
2018
- var d = {};
2019
- return "abcdefghijklmnopqrst".split("").forEach(function(a) {
2020
- d[a] = a;
2021
- }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
2022
- } catch {
2023
- return !1;
2024
- }
2025
- }
2026
- return ot = t() ? Object.assign : function(o, s) {
2027
- for (var u, l = n(o), d, a = 1; a < arguments.length; a++) {
2028
- u = Object(arguments[a]);
2029
- for (var c in u)
2030
- r.call(u, c) && (l[c] = u[c]);
2031
- if (e) {
2032
- d = e(u);
2033
- for (var f = 0; f < d.length; f++)
2034
- i.call(u, d[f]) && (l[d[f]] = u[d[f]]);
2035
- }
2036
- }
2037
- return l;
2038
- }, ot;
2039
- }
2040
- var it, Gt;
2041
- function Nt() {
2042
- if (Gt) return it;
2043
- Gt = 1;
2044
- var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2045
- return it = e, it;
2046
- }
2047
- var st, Zt;
2048
- function wn() {
2049
- return Zt || (Zt = 1, st = Function.call.bind(Object.prototype.hasOwnProperty)), st;
2050
- }
2051
- var at, Qt;
2052
- function oi() {
2053
- if (Qt) return at;
2054
- Qt = 1;
2055
- var e = function() {
2056
- };
2057
- if (process.env.NODE_ENV !== "production") {
2058
- var r = Nt(), i = {}, n = wn();
2059
- e = function(o) {
2060
- var s = "Warning: " + o;
2061
- typeof console < "u" && console.error(s);
2062
- try {
2063
- throw new Error(s);
2064
- } catch {
2065
- }
2066
- };
2067
- }
2068
- function t(o, s, u, l, d) {
2069
- if (process.env.NODE_ENV !== "production") {
2070
- for (var a in o)
2071
- if (n(o, a)) {
2072
- var c;
2073
- try {
2074
- if (typeof o[a] != "function") {
2075
- var f = Error(
2076
- (l || "React class") + ": " + u + " type `" + a + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof o[a] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
2077
- );
2078
- throw f.name = "Invariant Violation", f;
2079
- }
2080
- c = o[a](s, a, l, u, null, r);
2081
- } catch (p) {
2082
- c = p;
2083
- }
2084
- if (c && !(c instanceof Error) && e(
2085
- (l || "React class") + ": type specification of " + u + " `" + a + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
2086
- ), c instanceof Error && !(c.message in i)) {
2087
- i[c.message] = !0;
2088
- var g = d ? d() : "";
2089
- e(
2090
- "Failed " + u + " type: " + c.message + (g ?? "")
2091
- );
2092
- }
2093
- }
2094
- }
2095
- }
2096
- return t.resetWarningCache = function() {
2097
- process.env.NODE_ENV !== "production" && (i = {});
2098
- }, at = t, at;
2099
- }
2100
- var ut, Jt;
2101
- function ii() {
2102
- if (Jt) return ut;
2103
- Jt = 1;
2104
- var e = Rn(), r = ri(), i = Nt(), n = wn(), t = oi(), o = function() {
2105
- };
2106
- process.env.NODE_ENV !== "production" && (o = function(u) {
2107
- var l = "Warning: " + u;
2108
- typeof console < "u" && console.error(l);
2109
- try {
2110
- throw new Error(l);
2111
- } catch {
2112
- }
2113
- });
2114
- function s() {
2115
- return null;
2116
- }
2117
- return ut = function(u, l) {
2118
- var d = typeof Symbol == "function" && Symbol.iterator, a = "@@iterator";
2119
- function c(_) {
2120
- var I = _ && (d && _[d] || _[a]);
2121
- if (typeof I == "function")
2122
- return I;
2123
- }
2124
- var f = "<<anonymous>>", g = {
2125
- array: y("array"),
2126
- bigint: y("bigint"),
2127
- bool: y("boolean"),
2128
- func: y("function"),
2129
- number: y("number"),
2130
- object: y("object"),
2131
- string: y("string"),
2132
- symbol: y("symbol"),
2133
- any: C(),
2134
- arrayOf: S,
2135
- element: T(),
2136
- elementType: b(),
2137
- instanceOf: D,
2138
- node: A(),
2139
- objectOf: E,
2140
- oneOf: O,
2141
- oneOfType: w,
2142
- shape: q,
2143
- exact: Y
2144
- };
2145
- function p(_, I) {
2146
- return _ === I ? _ !== 0 || 1 / _ === 1 / I : _ !== _ && I !== I;
2147
- }
2148
- function m(_, I) {
2149
- this.message = _, this.data = I && typeof I == "object" ? I : {}, this.stack = "";
2150
- }
2151
- m.prototype = Error.prototype;
2152
- function v(_) {
2153
- if (process.env.NODE_ENV !== "production")
2154
- var I = {}, L = 0;
2155
- function B(W, U, z, X, ee, K, se) {
2156
- if (X = X || f, K = K || z, se !== i) {
2157
- if (l) {
2158
- var R = new Error(
2159
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
2160
- );
2161
- throw R.name = "Invariant Violation", R;
2162
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
2163
- var pe = X + ":" + z;
2164
- !I[pe] && // Avoid spamming the console because they are often not actionable except for lib authors
2165
- L < 3 && (o(
2166
- "You are manually calling a React.PropTypes validation function for the `" + K + "` prop on `" + X + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
2167
- ), I[pe] = !0, L++);
2168
- }
2169
- }
2170
- return U[z] == null ? W ? U[z] === null ? new m("The " + ee + " `" + K + "` is marked as required " + ("in `" + X + "`, but its value is `null`.")) : new m("The " + ee + " `" + K + "` is marked as required in " + ("`" + X + "`, but its value is `undefined`.")) : null : _(U, z, X, ee, K);
2171
- }
2172
- var M = B.bind(null, !1);
2173
- return M.isRequired = B.bind(null, !0), M;
2174
- }
2175
- function y(_) {
2176
- function I(L, B, M, W, U, z) {
2177
- var X = L[B], ee = N(X);
2178
- if (ee !== _) {
2179
- var K = j(X);
2180
- return new m(
2181
- "Invalid " + W + " `" + U + "` of type " + ("`" + K + "` supplied to `" + M + "`, expected ") + ("`" + _ + "`."),
2182
- { expectedType: _ }
2183
- );
2184
- }
2185
- return null;
2186
- }
2187
- return v(I);
2188
- }
2189
- function C() {
2190
- return v(s);
2191
- }
2192
- function S(_) {
2193
- function I(L, B, M, W, U) {
2194
- if (typeof _ != "function")
2195
- return new m("Property `" + U + "` of component `" + M + "` has invalid PropType notation inside arrayOf.");
2196
- var z = L[B];
2197
- if (!Array.isArray(z)) {
2198
- var X = N(z);
2199
- return new m("Invalid " + W + " `" + U + "` of type " + ("`" + X + "` supplied to `" + M + "`, expected an array."));
2200
- }
2201
- for (var ee = 0; ee < z.length; ee++) {
2202
- var K = _(z, ee, M, W, U + "[" + ee + "]", i);
2203
- if (K instanceof Error)
2204
- return K;
2205
- }
2206
- return null;
2207
- }
2208
- return v(I);
2209
- }
2210
- function T() {
2211
- function _(I, L, B, M, W) {
2212
- var U = I[L];
2213
- if (!u(U)) {
2214
- var z = N(U);
2215
- return new m("Invalid " + M + " `" + W + "` of type " + ("`" + z + "` supplied to `" + B + "`, expected a single ReactElement."));
2216
- }
2217
- return null;
2218
- }
2219
- return v(_);
2220
- }
2221
- function b() {
2222
- function _(I, L, B, M, W) {
2223
- var U = I[L];
2224
- if (!e.isValidElementType(U)) {
2225
- var z = N(U);
2226
- return new m("Invalid " + M + " `" + W + "` of type " + ("`" + z + "` supplied to `" + B + "`, expected a single ReactElement type."));
2227
- }
2228
- return null;
2229
- }
2230
- return v(_);
2231
- }
2232
- function D(_) {
2233
- function I(L, B, M, W, U) {
2234
- if (!(L[B] instanceof _)) {
2235
- var z = _.name || f, X = G(L[B]);
2236
- return new m("Invalid " + W + " `" + U + "` of type " + ("`" + X + "` supplied to `" + M + "`, expected ") + ("instance of `" + z + "`."));
2237
- }
2238
- return null;
2239
- }
2240
- return v(I);
2241
- }
2242
- function O(_) {
2243
- if (!Array.isArray(_))
2244
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? o(
2245
- "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
2246
- ) : o("Invalid argument supplied to oneOf, expected an array.")), s;
2247
- function I(L, B, M, W, U) {
2248
- for (var z = L[B], X = 0; X < _.length; X++)
2249
- if (p(z, _[X]))
2250
- return null;
2251
- var ee = JSON.stringify(_, function(se, R) {
2252
- var pe = j(R);
2253
- return pe === "symbol" ? String(R) : R;
2254
- });
2255
- return new m("Invalid " + W + " `" + U + "` of value `" + String(z) + "` " + ("supplied to `" + M + "`, expected one of " + ee + "."));
2256
- }
2257
- return v(I);
2258
- }
2259
- function E(_) {
2260
- function I(L, B, M, W, U) {
2261
- if (typeof _ != "function")
2262
- return new m("Property `" + U + "` of component `" + M + "` has invalid PropType notation inside objectOf.");
2263
- var z = L[B], X = N(z);
2264
- if (X !== "object")
2265
- return new m("Invalid " + W + " `" + U + "` of type " + ("`" + X + "` supplied to `" + M + "`, expected an object."));
2266
- for (var ee in z)
2267
- if (n(z, ee)) {
2268
- var K = _(z, ee, M, W, U + "." + ee, i);
2269
- if (K instanceof Error)
2270
- return K;
2271
- }
2272
- return null;
2273
- }
2274
- return v(I);
2275
- }
2276
- function w(_) {
2277
- if (!Array.isArray(_))
2278
- return process.env.NODE_ENV !== "production" && o("Invalid argument supplied to oneOfType, expected an instance of array."), s;
2279
- for (var I = 0; I < _.length; I++) {
2280
- var L = _[I];
2281
- if (typeof L != "function")
2282
- return o(
2283
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + $(L) + " at index " + I + "."
2284
- ), s;
2285
- }
2286
- function B(M, W, U, z, X) {
2287
- for (var ee = [], K = 0; K < _.length; K++) {
2288
- var se = _[K], R = se(M, W, U, z, X, i);
2289
- if (R == null)
2290
- return null;
2291
- R.data && n(R.data, "expectedType") && ee.push(R.data.expectedType);
2292
- }
2293
- var pe = ee.length > 0 ? ", expected one of type [" + ee.join(", ") + "]" : "";
2294
- return new m("Invalid " + z + " `" + X + "` supplied to " + ("`" + U + "`" + pe + "."));
2295
- }
2296
- return v(B);
2297
- }
2298
- function A() {
2299
- function _(I, L, B, M, W) {
2300
- return F(I[L]) ? null : new m("Invalid " + M + " `" + W + "` supplied to " + ("`" + B + "`, expected a ReactNode."));
2301
- }
2302
- return v(_);
2303
- }
2304
- function P(_, I, L, B, M) {
2305
- return new m(
2306
- (_ || "React class") + ": " + I + " type `" + L + "." + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + M + "`."
2307
- );
2308
- }
2309
- function q(_) {
2310
- function I(L, B, M, W, U) {
2311
- var z = L[B], X = N(z);
2312
- if (X !== "object")
2313
- return new m("Invalid " + W + " `" + U + "` of type `" + X + "` " + ("supplied to `" + M + "`, expected `object`."));
2314
- for (var ee in _) {
2315
- var K = _[ee];
2316
- if (typeof K != "function")
2317
- return P(M, W, U, ee, j(K));
2318
- var se = K(z, ee, M, W, U + "." + ee, i);
2319
- if (se)
2320
- return se;
2321
- }
2322
- return null;
2323
- }
2324
- return v(I);
2325
- }
2326
- function Y(_) {
2327
- function I(L, B, M, W, U) {
2328
- var z = L[B], X = N(z);
2329
- if (X !== "object")
2330
- return new m("Invalid " + W + " `" + U + "` of type `" + X + "` " + ("supplied to `" + M + "`, expected `object`."));
2331
- var ee = r({}, L[B], _);
2332
- for (var K in ee) {
2333
- var se = _[K];
2334
- if (n(_, K) && typeof se != "function")
2335
- return P(M, W, U, K, j(se));
2336
- if (!se)
2337
- return new m(
2338
- "Invalid " + W + " `" + U + "` key `" + K + "` supplied to `" + M + "`.\nBad object: " + JSON.stringify(L[B], null, " ") + `
2339
- Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
2340
- );
2341
- var R = se(z, K, M, W, U + "." + K, i);
2342
- if (R)
2343
- return R;
2344
- }
2345
- return null;
2346
- }
2347
- return v(I);
2348
- }
2349
- function F(_) {
2350
- switch (typeof _) {
2351
- case "number":
2352
- case "string":
2353
- case "undefined":
2354
- return !0;
2355
- case "boolean":
2356
- return !_;
2357
- case "object":
2358
- if (Array.isArray(_))
2359
- return _.every(F);
2360
- if (_ === null || u(_))
2361
- return !0;
2362
- var I = c(_);
2363
- if (I) {
2364
- var L = I.call(_), B;
2365
- if (I !== _.entries) {
2366
- for (; !(B = L.next()).done; )
2367
- if (!F(B.value))
2368
- return !1;
2369
- } else
2370
- for (; !(B = L.next()).done; ) {
2371
- var M = B.value;
2372
- if (M && !F(M[1]))
2373
- return !1;
2374
- }
2375
- } else
2376
- return !1;
2377
- return !0;
2378
- default:
2379
- return !1;
2380
- }
2381
- }
2382
- function V(_, I) {
2383
- return _ === "symbol" ? !0 : I ? I["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && I instanceof Symbol : !1;
2384
- }
2385
- function N(_) {
2386
- var I = typeof _;
2387
- return Array.isArray(_) ? "array" : _ instanceof RegExp ? "object" : V(I, _) ? "symbol" : I;
2388
- }
2389
- function j(_) {
2390
- if (typeof _ > "u" || _ === null)
2391
- return "" + _;
2392
- var I = N(_);
2393
- if (I === "object") {
2394
- if (_ instanceof Date)
2395
- return "date";
2396
- if (_ instanceof RegExp)
2397
- return "regexp";
2398
- }
2399
- return I;
2400
- }
2401
- function $(_) {
2402
- var I = j(_);
2403
- switch (I) {
2404
- case "array":
2405
- case "object":
2406
- return "an " + I;
2407
- case "boolean":
2408
- case "date":
2409
- case "regexp":
2410
- return "a " + I;
2411
- default:
2412
- return I;
2413
- }
2414
- }
2415
- function G(_) {
2416
- return !_.constructor || !_.constructor.name ? f : _.constructor.name;
2417
- }
2418
- return g.checkPropTypes = t, g.resetWarningCache = t.resetWarningCache, g.PropTypes = g, g;
2419
- }, ut;
2420
- }
2421
- var lt, en;
2422
- function si() {
2423
- if (en) return lt;
2424
- en = 1;
2425
- var e = Nt();
2426
- function r() {
2427
- }
2428
- function i() {
2429
- }
2430
- return i.resetWarningCache = r, lt = function() {
2431
- function n(s, u, l, d, a, c) {
2432
- if (c !== e) {
2433
- var f = new Error(
2434
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
2435
- );
2436
- throw f.name = "Invariant Violation", f;
2437
- }
2438
- }
2439
- n.isRequired = n;
2440
- function t() {
2441
- return n;
2442
- }
2443
- var o = {
2444
- array: n,
2445
- bigint: n,
2446
- bool: n,
2447
- func: n,
2448
- number: n,
2449
- object: n,
2450
- string: n,
2451
- symbol: n,
2452
- any: n,
2453
- arrayOf: t,
2454
- element: n,
2455
- elementType: n,
2456
- instanceOf: t,
2457
- node: n,
2458
- objectOf: t,
2459
- oneOf: t,
2460
- oneOfType: t,
2461
- shape: t,
2462
- exact: t,
2463
- checkPropTypes: i,
2464
- resetWarningCache: r
2465
- };
2466
- return o.PropTypes = o, o;
2467
- }, lt;
2468
- }
2469
- if (process.env.NODE_ENV !== "production") {
2470
- var ai = Rn(), ui = !0;
2471
- vt.exports = ii()(ai.isElement, ui);
2472
- } else
2473
- vt.exports = si()();
2474
- var li = vt.exports;
2475
- const x = /* @__PURE__ */ yt(li);
2476
- var Ke = function(r) {
2477
- return r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
2478
- }, ge = {
2479
- id: "__id__",
2480
- display: "__display__"
2481
- }, tn = function(r, i) {
2482
- Re(i === "id" || i === "display", 'Second arg must be either "id" or "display", got: "'.concat(i, '"'));
2483
- var n = r.indexOf(ge.display), t = r.indexOf(ge.id);
2484
- return n < 0 && (n = null), t < 0 && (t = null), Re(n !== null || t !== null, "The markup '".concat(r, "' does not contain either of the placeholders '__id__' or '__display__'")), n !== null && t !== null ? i === "id" && t <= n || i === "display" && n <= t ? 0 : 1 : 0;
2485
- }, ci = function(r) {
2486
- var i = /^\/(.+)\/(\w+)?$/;
2487
- return new RegExp(r.map(function(n) {
2488
- var t = i.exec(n.toString()), o = Je(t, 3), s = o[1], u = o[2];
2489
- return Re(!u, "RegExp flags are not supported. Change /".concat(s, "/").concat(u, " into /").concat(s, "/")), "(".concat(s, ")");
2490
- }).join("|"), "g");
2491
- }, Nn = function(r) {
2492
- var i = 0;
2493
- return r.indexOf("__id__") >= 0 && i++, r.indexOf("__display__") >= 0 && i++, i;
2494
- }, di = function() {
2495
- }, ke = function(r, i, n) {
2496
- for (var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : di, o = ci(i.map(function(b) {
2497
- return b.regex;
2498
- })), s = 2, u = i.map(function(b) {
2499
- var D = b.markup, O = s;
2500
- return s += Nn(D) + 1, O;
2501
- }), l, d = 0, a = 0; (l = o.exec(r)) !== null; ) {
2502
- var c = u.find(function(b) {
2503
- return !!l[b];
2504
- }), f = u.indexOf(c), g = i[f], p = g.markup, m = g.displayTransform, v = c + tn(p, "id"), y = c + tn(p, "display"), C = l[v], S = m(C, l[y]), T = r.substring(d, l.index);
2505
- t(T, d, a), a += T.length, n(l[0], l.index, a, C, S, f, d), a += S.length, d = o.lastIndex;
2506
- }
2507
- d < r.length && t(r.substring(d), d, a);
2508
- }, Ce = function(r, i) {
2509
- var n = "";
2510
- return ke(r, i, function(t, o, s, u, l) {
2511
- n += l;
2512
- }, function(t) {
2513
- n += t;
2514
- }), n;
2515
- }, ie = function(r, i, n) {
2516
- var t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : "START";
2517
- if (typeof n != "number")
2518
- return n;
2519
- var o, s = function(d, a, c) {
2520
- o === void 0 && c + d.length >= n && (o = a + n - c);
2521
- }, u = function(d, a, c, f, g, p, m) {
2522
- o === void 0 && c + g.length > n && (t === "NULL" ? o = null : o = a + (t === "END" ? d.length : 0));
2523
- };
2524
- return ke(r, i, u, s), o === void 0 ? r.length : o;
2525
- }, Fe = function(r, i, n, t) {
2526
- return r.substring(0, i) + t + r.substring(n);
2527
- }, fi = function(r, i, n, t) {
2528
- var o = n.selectionStartBefore, s = n.selectionEndBefore, u = n.selectionEndAfter, l = Ce(r, t), d = l.length - i.length;
2529
- o === "undefined" && (o = u + d), s === "undefined" && (s = o), o === s && s === u && l.length === i.length && (o = o - 1);
2530
- var a = i.slice(o, u), c = Math.min(o, u), f = s;
2531
- o === u && (f = Math.max(s, o + d));
2532
- var g = ie(r, t, c, "START"), p = ie(r, t, f, "END"), m = ie(r, t, c, "NULL"), v = ie(r, t, f, "NULL"), y = m === null || v === null, C = Fe(r, g, p, a);
2533
- if (!y) {
2534
- var S = Ce(C, t);
2535
- if (S !== i) {
2536
- for (c = 0; i[c] === S[c]; )
2537
- c++;
2538
- a = i.slice(c, u), f = l.lastIndexOf(i.substring(u)), g = ie(r, t, c, "START"), p = ie(r, t, f, "END"), C = Fe(r, g, p, a);
2539
- }
2540
- }
2541
- return C;
2542
- }, nn = function(r, i, n) {
2543
- var t = n, o = !1, s = function(l, d, a, c, f, g, p) {
2544
- a <= n && a + f.length > n && (t = a, o = !0);
2545
- };
2546
- if (ke(r, i, s), o)
2547
- return t;
2548
- }, Pe = function(r, i) {
2549
- var n = [];
2550
- return ke(r, i, function(t, o, s, u, l, d, a) {
2551
- n.push({
2552
- id: u,
2553
- display: l,
2554
- childIndex: d,
2555
- index: o,
2556
- plainTextIndex: s
2557
- });
2558
- }), n;
2559
- }, jn = function(r, i) {
2560
- return "".concat(r, "-").concat(i);
2561
- }, Ve = function(r) {
2562
- return Object.values(r).reduce(function(i, n) {
2563
- var t = n.results;
2564
- return i + t.length;
2565
- }, 0);
2566
- }, pi = function(r, i) {
2567
- var n = Pe(r, i), t = n[n.length - 1];
2568
- return t ? t.plainTextIndex + t.display.length : 0;
2569
- }, gi = function(r) {
2570
- var i = Ke(r), n = r[r.indexOf(ge.display) + ge.display.length], t = r[r.indexOf(ge.id) + ge.id.length];
2571
- return new RegExp(i.replace(ge.display, "([^".concat(Ke(n || ""), "]+?)")).replace(ge.id, "([^".concat(Ke(t || ""), "]+?)")));
2572
- }, Ee = function(r) {
2573
- return De.toArray(r).map(function(i) {
2574
- var n = i.props, t = n.markup, o = n.regex, s = n.displayTransform;
2575
- return {
2576
- markup: t,
2577
- regex: o ? hi(o, t) : gi(t),
2578
- displayTransform: s || function(u, l) {
2579
- return l || u;
2580
- }
2581
- };
2582
- });
2583
- }, hi = function(r, i) {
2584
- var n = new RegExp(r.toString() + "|").exec("").length - 1, t = Nn(i);
2585
- return Re(n === t, "Number of capturing groups in RegExp ".concat(r.toString(), " (").concat(n, ") does not match the number of placeholders in the markup '").concat(i, "' (").concat(t, ")")), r;
2586
- }, vi = function(r, i, n) {
2587
- return r.replace(ge.id, i).replace(ge.display, n);
2588
- }, mi = [{
2589
- base: "A",
2590
- letters: /(&#65;|&#9398;|&#65313;|&#192;|&#193;|&#194;|&#7846;|&#7844;|&#7850;|&#7848;|&#195;|&#256;|&#258;|&#7856;|&#7854;|&#7860;|&#7858;|&#550;|&#480;|&#196;|&#478;|&#7842;|&#197;|&#506;|&#461;|&#512;|&#514;|&#7840;|&#7852;|&#7862;|&#7680;|&#260;|&#570;|&#11375;|[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F])/g
2591
- }, {
2592
- base: "AA",
2593
- letters: /(&#42802;|[\uA732])/g
2594
- }, {
2595
- base: "AE",
2596
- letters: /(&#198;|&#508;|&#482;|[\u00C6\u01FC\u01E2])/g
2597
- }, {
2598
- base: "AO",
2599
- letters: /(&#42804;|[\uA734])/g
2600
- }, {
2601
- base: "AU",
2602
- letters: /(&#42806;|[\uA736])/g
2603
- }, {
2604
- base: "AV",
2605
- letters: /(&#42808;|&#42810;|[\uA738\uA73A])/g
2606
- }, {
2607
- base: "AY",
2608
- letters: /(&#42812;|[\uA73C])/g
2609
- }, {
2610
- base: "B",
2611
- letters: /(&#66;|&#9399;|&#65314;|&#7682;|&#7684;|&#7686;|&#579;|&#386;|&#385;|[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181])/g
2612
- }, {
2613
- base: "C",
2614
- letters: /(&#67;|&#9400;|&#65315;|&#262;|&#264;|&#266;|&#268;|&#199;|&#7688;|&#391;|&#571;|&#42814;|[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E])/g
2615
- }, {
2616
- base: "D",
2617
- letters: /(&#68;|&#9401;|&#65316;|&#7690;|&#270;|&#7692;|&#7696;|&#7698;|&#7694;|&#272;|&#395;|&#394;|&#393;|&#42873;|&#208;|[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779\u00D0])/g
2618
- }, {
2619
- base: "DZ",
2620
- letters: /(&#497;|&#452;|[\u01F1\u01C4])/g
2621
- }, {
2622
- base: "Dz",
2623
- letters: /(&#498;|&#453;|[\u01F2\u01C5])/g
2624
- }, {
2625
- base: "E",
2626
- letters: /(&#69;|&#9402;|&#65317;|&#200;|&#201;|&#202;|&#7872;|&#7870;|&#7876;|&#7874;|&#7868;|&#274;|&#7700;|&#7702;|&#276;|&#278;|&#203;|&#7866;|&#282;|&#516;|&#518;|&#7864;|&#7878;|&#552;|&#7708;|&#280;|&#7704;|&#7706;|&#400;|&#398;|[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E])/g
2627
- }, {
2628
- base: "F",
2629
- letters: /(&#70;|&#9403;|&#65318;|&#7710;|&#401;|&#42875;|[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B])/g
2630
- }, {
2631
- base: "G",
2632
- letters: /(&#71;|&#9404;|&#65319;|&#500;|&#284;|&#7712;|&#286;|&#288;|&#486;|&#290;|&#484;|&#403;|&#42912;|&#42877;|&#42878;|[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E])/g
2633
- }, {
2634
- base: "H",
2635
- letters: /(&#72;|&#9405;|&#65320;|&#292;|&#7714;|&#7718;|&#542;|&#7716;|&#7720;|&#7722;|&#294;|&#11367;|&#11381;|&#42893;|[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D])/g
2636
- }, {
2637
- base: "I",
2638
- letters: /(&#73;|&#9406;|&#65321;|&#204;|&#205;|&#206;|&#296;|&#298;|&#300;|&#304;|&#207;|&#7726;|&#7880;|&#463;|&#520;|&#522;|&#7882;|&#302;|&#7724;|&#407;|[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197])/g
2639
- }, {
2640
- base: "J",
2641
- letters: /(&#74;|&#9407;|&#65322;|&#308;|&#584;|[\u004A\u24BF\uFF2A\u0134\u0248])/g
2642
- }, {
2643
- base: "K",
2644
- letters: /(&#75;|&#9408;|&#65323;|&#7728;|&#488;|&#7730;|&#310;|&#7732;|&#408;|&#11369;|&#42816;|&#42818;|&#42820;|&#42914;|[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2])/g
2645
- }, {
2646
- base: "L",
2647
- letters: /(&#76;|&#9409;|&#65324;|&#319;|&#313;|&#317;|&#7734;|&#7736;|&#315;|&#7740;|&#7738;|&#321;|&#573;|&#11362;|&#11360;|&#42824;|&#42822;|&#42880;|[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780])/g
2648
- }, {
2649
- base: "LJ",
2650
- letters: /(&#455;|[\u01C7])/g
2651
- }, {
2652
- base: "Lj",
2653
- letters: /(&#456;|[\u01C8])/g
2654
- }, {
2655
- base: "M",
2656
- letters: /(&#77;|&#9410;|&#65325;|&#7742;|&#7744;|&#7746;|&#11374;|&#412;|[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C])/g
2657
- }, {
2658
- base: "N",
2659
- letters: /(&#78;|&#9411;|&#65326;|&#504;|&#323;|&#209;|&#7748;|&#327;|&#7750;|&#325;|&#7754;|&#7752;|&#544;|&#413;|&#42896;|&#42916;|&#330;|[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4\u014A])/g
2660
- }, {
2661
- base: "NJ",
2662
- letters: /(&#458;|[\u01CA])/g
2663
- }, {
2664
- base: "Nj",
2665
- letters: /(&#459;|[\u01CB])/g
2666
- }, {
2667
- base: "O",
2668
- letters: /(&#79;|&#9412;|&#65327;|&#210;|&#211;|&#212;|&#7890;|&#7888;|&#7894;|&#7892;|&#213;|&#7756;|&#556;|&#7758;|&#332;|&#7760;|&#7762;|&#334;|&#558;|&#560;|&#214;|&#554;|&#7886;|&#336;|&#465;|&#524;|&#526;|&#416;|&#7900;|&#7898;|&#7904;|&#7902;|&#7906;|&#7884;|&#7896;|&#490;|&#492;|&#216;|&#510;|&#390;|&#415;|&#42826;|&#42828;|[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C])/g
2669
- }, {
2670
- base: "OE",
2671
- letters: /(&#338;|[\u0152])/g
2672
- }, {
2673
- base: "OI",
2674
- letters: /(&#418;|[\u01A2])/g
2675
- }, {
2676
- base: "OO",
2677
- letters: /(&#42830;|[\uA74E])/g
2678
- }, {
2679
- base: "OU",
2680
- letters: /(&#546;|[\u0222])/g
2681
- }, {
2682
- base: "P",
2683
- letters: /(&#80;|&#9413;|&#65328;|&#7764;|&#7766;|&#420;|&#11363;|&#42832;|&#42834;|&#42836;|[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754])/g
2684
- }, {
2685
- base: "Q",
2686
- letters: /(&#81;|&#9414;|&#65329;|&#42838;|&#42840;|&#586;|[\u0051\u24C6\uFF31\uA756\uA758\u024A])/g
2687
- }, {
2688
- base: "R",
2689
- letters: /(&#82;|&#9415;|&#65330;|&#340;|&#7768;|&#344;|&#528;|&#530;|&#7770;|&#7772;|&#342;|&#7774;|&#588;|&#11364;|&#42842;|&#42918;|&#42882;|[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782])/g
2690
- }, {
2691
- base: "S",
2692
- letters: /(&#83;|&#9416;|&#65331;|&#7838;|&#346;|&#7780;|&#348;|&#7776;|&#352;|&#7782;|&#7778;|&#7784;|&#536;|&#350;|&#11390;|&#42920;|&#42884;|[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784])/g
2693
- }, {
2694
- base: "T",
2695
- letters: /(&#84;|&#9417;|&#65332;|&#7786;|&#356;|&#7788;|&#538;|&#354;|&#7792;|&#7790;|&#358;|&#428;|&#430;|&#574;|&#42886;|[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786])/g
2696
- }, {
2697
- base: "TH",
2698
- letters: /(&#222;|[\u00DE])/g
2699
- }, {
2700
- base: "TZ",
2701
- letters: /(&#42792;|[\uA728])/g
2702
- }, {
2703
- base: "U",
2704
- letters: /(&#85;|&#9418;|&#65333;|&#217;|&#218;|&#219;|&#360;|&#7800;|&#362;|&#7802;|&#364;|&#220;|&#475;|&#471;|&#469;|&#473;|&#7910;|&#366;|&#368;|&#467;|&#532;|&#534;|&#431;|&#7914;|&#7912;|&#7918;|&#7916;|&#7920;|&#7908;|&#7794;|&#370;|&#7798;|&#7796;|&#580;|[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244])/g
2705
- }, {
2706
- base: "V",
2707
- letters: /(&#86;|&#9419;|&#65334;|&#7804;|&#7806;|&#434;|&#42846;|&#581;|[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245])/g
2708
- }, {
2709
- base: "VY",
2710
- letters: /(&#42848;|[\uA760])/g
2711
- }, {
2712
- base: "W",
2713
- letters: /(&#87;|&#9420;|&#65335;|&#7808;|&#7810;|&#372;|&#7814;|&#7812;|&#7816;|&#11378;|[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72])/g
2714
- }, {
2715
- base: "X",
2716
- letters: /(&#88;|&#9421;|&#65336;|&#7818;|&#7820;|[\u0058\u24CD\uFF38\u1E8A\u1E8C])/g
2717
- }, {
2718
- base: "Y",
2719
- letters: /(&#89;|&#9422;|&#65337;|&#7922;|&#221;|&#374;|&#7928;|&#562;|&#7822;|&#376;|&#7926;|&#7924;|&#435;|&#590;|&#7934;|[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE])/g
2720
- }, {
2721
- base: "Z",
2722
- letters: /(&#90;|&#9423;|&#65338;|&#377;|&#7824;|&#379;|&#381;|&#7826;|&#7828;|&#437;|&#548;|&#11391;|&#11371;|&#42850;|[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762])/g
2723
- }, {
2724
- base: "a",
2725
- letters: /(&#97;|&#9424;|&#65345;|&#7834;|&#224;|&#225;|&#226;|&#7847;|&#7845;|&#7851;|&#7849;|&#227;|&#257;|&#259;|&#7857;|&#7855;|&#7861;|&#7859;|&#551;|&#481;|&#228;|&#479;|&#7843;|&#229;|&#507;|&#462;|&#513;|&#515;|&#7841;|&#7853;|&#7863;|&#7681;|&#261;|&#11365;|&#592;|[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250])/g
2726
- }, {
2727
- base: "aa",
2728
- letters: /(&#42803;|[\uA733])/g
2729
- }, {
2730
- base: "ae",
2731
- letters: /(&#230;|&#509;|&#483;|[\u00E6\u01FD\u01E3])/g
2732
- }, {
2733
- base: "ao",
2734
- letters: /(&#42805;|[\uA735])/g
2735
- }, {
2736
- base: "au",
2737
- letters: /(&#42807;|[\uA737])/g
2738
- }, {
2739
- base: "av",
2740
- letters: /(&#42809;|&#42811;|[\uA739\uA73B])/g
2741
- }, {
2742
- base: "ay",
2743
- letters: /(&#42813;|[\uA73D])/g
2744
- }, {
2745
- base: "b",
2746
- letters: /(&#98;|&#9425;|&#65346;|&#7683;|&#7685;|&#7687;|&#384;|&#387;|&#595;|[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253])/g
2747
- }, {
2748
- base: "c",
2749
- letters: /(&#99;|&#9426;|&#65347;|&#263;|&#265;|&#267;|&#269;|&#231;|&#7689;|&#392;|&#572;|&#42815;|&#8580;|[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184])/g
2750
- }, {
2751
- base: "d",
2752
- letters: /(&#100;|&#9427;|&#65348;|&#7691;|&#271;|&#7693;|&#7697;|&#7699;|&#7695;|&#273;|&#396;|&#598;|&#599;|&#42874;|&#240;|[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A\u00F0])/g
2753
- }, {
2754
- base: "dz",
2755
- letters: /(&#499;|&#454;|[\u01F3\u01C6])/g
2756
- }, {
2757
- base: "e",
2758
- letters: /(&#101;|&#9428;|&#65349;|&#232;|&#233;|&#234;|&#7873;|&#7871;|&#7877;|&#7875;|&#7869;|&#275;|&#7701;|&#7703;|&#277;|&#279;|&#235;|&#7867;|&#283;|&#517;|&#519;|&#7865;|&#7879;|&#553;|&#7709;|&#281;|&#7705;|&#7707;|&#583;|&#603;|&#477;|[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD])/g
2759
- }, {
2760
- base: "f",
2761
- letters: /(&#102;|&#9429;|&#65350;|&#7711;|&#402;|&#42876;|[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C])/g
2762
- }, {
2763
- base: "g",
2764
- letters: /(&#103;|&#9430;|&#65351;|&#501;|&#285;|&#7713;|&#287;|&#289;|&#487;|&#291;|&#485;|&#608;|&#42913;|&#7545;|&#42879;|[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F])/g
2765
- }, {
2766
- base: "h",
2767
- letters: /(&#104;|&#9431;|&#65352;|&#293;|&#7715;|&#7719;|&#543;|&#7717;|&#7721;|&#7723;|&#7830;|&#295;|&#11368;|&#11382;|&#613;|[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265])/g
2768
- }, {
2769
- base: "hv",
2770
- letters: /(&#405;|[\u0195])/g
2771
- }, {
2772
- base: "i",
2773
- letters: /(&#105;|&#9432;|&#65353;|&#236;|&#237;|&#238;|&#297;|&#299;|&#301;|&#239;|&#7727;|&#7881;|&#464;|&#521;|&#523;|&#7883;|&#303;|&#7725;|&#616;|&#305;|[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131])/g
2774
- }, {
2775
- base: "ij",
2776
- letters: /(&#307;|[\u0133])/g
2777
- }, {
2778
- base: "j",
2779
- letters: /(&#106;|&#9433;|&#65354;|&#309;|&#496;|&#585;|[\u006A\u24D9\uFF4A\u0135\u01F0\u0249])/g
2780
- }, {
2781
- base: "k",
2782
- letters: /(&#107;|&#9434;|&#65355;|&#7729;|&#489;|&#7731;|&#311;|&#7733;|&#409;|&#11370;|&#42817;|&#42819;|&#42821;|&#42915;|[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3])/g
2783
- }, {
2784
- base: "l",
2785
- letters: /(&#108;|&#9435;|&#65356;|&#320;|&#314;|&#318;|&#7735;|&#7737;|&#316;|&#7741;|&#7739;|&#322;|&#410;|&#619;|&#11361;|&#42825;|&#42881;|&#42823;|[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u0142\u019A\u026B\u2C61\uA749\uA781\uA747])/g
2786
- }, {
2787
- base: "lj",
2788
- letters: /(&#457;|[\u01C9])/g
2789
- }, {
2790
- base: "m",
2791
- letters: /(&#109;|&#9436;|&#65357;|&#7743;|&#7745;|&#7747;|&#625;|&#623;|[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F])/g
2792
- }, {
2793
- base: "n",
2794
- letters: /(&#110;|&#9437;|&#65358;|&#505;|&#324;|&#241;|&#7749;|&#328;|&#7751;|&#326;|&#7755;|&#7753;|&#414;|&#626;|&#329;|&#42897;|&#42917;|&#331;|[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5\u014B])/g
2795
- }, {
2796
- base: "nj",
2797
- letters: /(&#460;|[\u01CC])/g
2798
- }, {
2799
- base: "o",
2800
- letters: /(&#111;|&#9438;|&#65359;|&#242;|&#243;|&#244;|&#7891;|&#7889;|&#7895;|&#7893;|&#245;|&#7757;|&#557;|&#7759;|&#333;|&#7761;|&#7763;|&#335;|&#559;|&#561;|&#246;|&#555;|&#7887;|&#337;|&#466;|&#525;|&#527;|&#417;|&#7901;|&#7899;|&#7905;|&#7903;|&#7907;|&#7885;|&#7897;|&#491;|&#493;|&#248;|&#511;|&#596;|&#42827;|&#42829;|&#629;|[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275])/g
2801
- }, {
2802
- base: "oe",
2803
- letters: /(&#339;|[\u0153])/g
2804
- }, {
2805
- base: "oi",
2806
- letters: /(&#419;|[\u01A3])/g
2807
- }, {
2808
- base: "ou",
2809
- letters: /(&#547;|[\u0223])/g
2810
- }, {
2811
- base: "oo",
2812
- letters: /(&#42831;|[\uA74F])/g
2813
- }, {
2814
- base: "p",
2815
- letters: /(&#112;|&#9439;|&#65360;|&#7765;|&#7767;|&#421;|&#7549;|&#42833;|&#42835;|&#42837;|[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755])/g
2816
- }, {
2817
- base: "q",
2818
- letters: /(&#113;|&#9440;|&#65361;|&#587;|&#42839;|&#42841;|[\u0071\u24E0\uFF51\u024B\uA757\uA759])/g
2819
- }, {
2820
- base: "r",
2821
- letters: /(&#114;|&#9441;|&#65362;|&#341;|&#7769;|&#345;|&#529;|&#531;|&#7771;|&#7773;|&#343;|&#7775;|&#589;|&#637;|&#42843;|&#42919;|&#42883;|[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783])/g
2822
- }, {
2823
- base: "s",
2824
- letters: /(&#115;|&#9442;|&#65363;|&#347;|&#7781;|&#349;|&#7777;|&#353;|&#7783;|&#7779;|&#7785;|&#537;|&#351;|&#575;|&#42921;|&#42885;|&#7835;|&#383;|[\u0073\u24E2\uFF53\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B\u017F])/g
2825
- }, {
2826
- base: "ss",
2827
- letters: /(&#223;|[\u00DF])/g
2828
- }, {
2829
- base: "t",
2830
- letters: /(&#116;|&#9443;|&#65364;|&#7787;|&#7831;|&#357;|&#7789;|&#539;|&#355;|&#7793;|&#7791;|&#359;|&#429;|&#648;|&#11366;|&#42887;|[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787])/g
2831
- }, {
2832
- base: "th",
2833
- letters: /(&#254;|[\u00FE])/g
2834
- }, {
2835
- base: "tz",
2836
- letters: /(&#42793;|[\uA729])/g
2837
- }, {
2838
- base: "u",
2839
- letters: /(&#117;|&#9444;|&#65365;|&#249;|&#250;|&#251;|&#361;|&#7801;|&#363;|&#7803;|&#365;|&#252;|&#476;|&#472;|&#470;|&#474;|&#7911;|&#367;|&#369;|&#468;|&#533;|&#535;|&#432;|&#7915;|&#7913;|&#7919;|&#7917;|&#7921;|&#7909;|&#7795;|&#371;|&#7799;|&#7797;|&#649;|[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289])/g
2840
- }, {
2841
- base: "v",
2842
- letters: /(&#118;|&#9445;|&#65366;|&#7805;|&#7807;|&#651;|&#42847;|&#652;|[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C])/g
2843
- }, {
2844
- base: "vy",
2845
- letters: /(&#42849;|[\uA761])/g
2846
- }, {
2847
- base: "w",
2848
- letters: /(&#119;|&#9446;|&#65367;|&#7809;|&#7811;|&#373;|&#7815;|&#7813;|&#7832;|&#7817;|&#11379;|[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73])/g
2849
- }, {
2850
- base: "x",
2851
- letters: /(&#120;|&#9447;|&#65368;|&#7819;|&#7821;|[\u0078\u24E7\uFF58\u1E8B\u1E8D])/g
2852
- }, {
2853
- base: "y",
2854
- letters: /(&#121;|&#9448;|&#65369;|&#7923;|&#253;|&#375;|&#7929;|&#563;|&#7823;|&#255;|&#7927;|&#7833;|&#7925;|&#436;|&#591;|&#7935;|[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF])/g
2855
- }, {
2856
- base: "z",
2857
- letters: /(&#122;|&#9449;|&#65370;|&#378;|&#7825;|&#380;|&#382;|&#7827;|&#7829;|&#438;|&#549;|&#576;|&#11372;|&#42851;|[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763])/g
2858
- }], Ei = function(r) {
2859
- var i = r;
2860
- return mi.forEach(function(n) {
2861
- i = i.replace(n.letters, n.base);
2862
- }), i;
2863
- }, rn = function(r) {
2864
- return Ei(r).toLowerCase();
2865
- }, Pn = function(r, i, n) {
2866
- return n ? rn(r).indexOf(rn(i)) : r.toLowerCase().indexOf(i.toLowerCase());
2867
- }, yi = function() {
2868
- return !!document.documentMode;
2869
- }, mt = function(r) {
2870
- return typeof r == "number";
2871
- }, bi = function(r) {
2872
- return r === Object(r) ? Object.keys(r) : [];
2873
- }, Ci = function(r) {
2874
- for (var i, n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++)
2875
- t[o - 1] = arguments[o];
2876
- var s = (i = []).concat.apply(i, t);
2877
- return Object.keys(r).reduce(function(u, l) {
2878
- return r.hasOwnProperty(l) && !s.includes(l) && r[l] !== void 0 && (u[l] = r[l]), u;
2879
- }, {});
2880
- }, Si = ["style", "className", "classNames"];
2881
- function on(e, r) {
2882
- var i = Object.keys(e);
2883
- if (Object.getOwnPropertySymbols) {
2884
- var n = Object.getOwnPropertySymbols(e);
2885
- r && (n = n.filter(function(t) {
2886
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
2887
- })), i.push.apply(i, n);
2888
- }
2889
- return i;
2890
- }
2891
- function sn(e) {
2892
- for (var r = 1; r < arguments.length; r++) {
2893
- var i = arguments[r] != null ? arguments[r] : {};
2894
- r % 2 ? on(Object(i), !0).forEach(function(n) {
2895
- H(e, n, i[n]);
2896
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : on(Object(i)).forEach(function(n) {
2897
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
2898
- });
2899
- }
2900
- return e;
2901
- }
2902
- function nt(e, r) {
2903
- var i = function(t) {
2904
- var o = function(l) {
2905
- var d = l.style, a = l.className, c = l.classNames, f = Lo(l, Si), g = r ? r(f) : void 0, p = wt(e, {
2906
- style: d,
2907
- className: a,
2908
- classNames: c
2909
- }, g);
2910
- return /* @__PURE__ */ Z.createElement(t, ue({}, f, {
2911
- style: p
2912
- }));
2913
- }, s = t.displayName || t.name || "Component";
2914
- return o.displayName = "defaultStyle(".concat(s, ")"), /* @__PURE__ */ Z.forwardRef(function(u, l) {
2915
- return o(sn(sn({}, u), {}, {
2916
- ref: l
2917
- }));
2918
- });
2919
- };
2920
- return i;
2921
- }
2922
- var _i = function(r, i) {
2923
- return r.hasOwnProperty(i) ? r[i]++ : r[i] = 0, i + "_" + r[i];
2924
- };
2925
- function Fn(e) {
2926
- var r = e.selectionStart, i = e.selectionEnd, n = e.value, t = n === void 0 ? "" : n, o = e.onCaretPositionChange, s = e.containerRef, u = e.children;
2927
- e.singleLine;
2928
- var l = e.style, d = re({
2929
- left: void 0,
2930
- top: void 0
2931
- }), a = Je(d, 2), c = a[0], f = a[1], g = re(), p = Je(g, 2), m = p[0], v = p[1];
2932
- le(function() {
2933
- y();
2934
- });
2935
- var y = function() {
2936
- if (m) {
2937
- var F = m.offsetLeft, V = m.offsetTop;
2938
- if (!(c.left === F && c.top === V)) {
2939
- var N = {
2940
- left: F,
2941
- top: V
2942
- };
2943
- f(N), o(N);
2944
- }
2945
- }
2946
- }, C = Ee(u), S;
2947
- i === r && (S = ie(t, C, r, "START"));
2948
- var T = [], b = {}, D = T, O = 0, E = function(F, V, N) {
2949
- if (mt(S) && S >= V && S <= V + F.length) {
2950
- var j = S - V;
2951
- D.push(A(F.substring(0, j), O)), D = [A(F.substring(j), O)];
2952
- } else
2953
- D.push(A(F, O));
2954
- O++;
2955
- }, w = function(F, V, N, j, $, G, _) {
2956
- var I = _i(b, j);
2957
- D.push(P(j, $, G, I));
2958
- }, A = function(F, V) {
2959
- return /* @__PURE__ */ Z.createElement("span", ue({}, l("substring"), {
2960
- key: V
2961
- }), F);
2962
- }, P = function(F, V, N, j) {
2963
- var $ = {
2964
- id: F,
2965
- display: V,
2966
- key: j
2967
- }, G = De.toArray(u)[N];
2968
- return /* @__PURE__ */ Z.cloneElement(G, $);
2969
- }, q = function(F) {
2970
- return /* @__PURE__ */ Z.createElement("span", ue({}, l("caret"), {
2971
- ref: v,
2972
- key: "caret"
2973
- }), F);
2974
- };
2975
- return ke(t, C, w, E), D.push(" "), D !== T && T.push(q(D)), /* @__PURE__ */ Z.createElement("div", ue({}, l, {
2976
- ref: s
2977
- }), T);
2978
- }
2979
- Fn.propTypes = {
2980
- selectionStart: x.number,
2981
- selectionEnd: x.number,
2982
- value: x.string.isRequired,
2983
- onCaretPositionChange: x.func.isRequired,
2984
- containerRef: x.oneOfType([x.func, x.shape({
2985
- current: typeof Element > "u" ? x.any : x.instanceOf(Element)
2986
- })]),
2987
- children: x.oneOfType([x.element, x.arrayOf(x.element)]).isRequired
2988
- };
2989
- var Ai = nt({
2990
- position: "relative",
2991
- boxSizing: "border-box",
2992
- width: "100%",
2993
- color: "transparent",
2994
- overflow: "hidden",
2995
- whiteSpace: "pre-wrap",
2996
- wordWrap: "break-word",
2997
- border: "1px solid transparent",
2998
- textAlign: "start",
2999
- "&singleLine": {
3000
- whiteSpace: "pre",
3001
- wordWrap: null
3002
- },
3003
- substring: {
3004
- visibility: "hidden"
3005
- }
3006
- }, function(e) {
3007
- return {
3008
- "&singleLine": e.singleLine
3009
- };
3010
- }), Ti = Ai(Fn);
3011
- function Mn(e) {
3012
- var r = e.id, i = e.focused, n = e.ignoreAccents, t = e.index, o = e.onClick, s = e.onMouseEnter, u = e.query, l = e.renderSuggestion, d = e.suggestion, a = e.style;
3013
- e.className, e.classNames;
3014
- var c = {
3015
- onClick: o,
3016
- onMouseEnter: s
3017
- }, f = function() {
3018
- var v = g(), y = p(v);
3019
- return l ? l(d, u, y, t, i) : y;
3020
- }, g = function() {
3021
- if (typeof d == "string")
3022
- return d;
3023
- var v = d.id, y = d.display;
3024
- return v === void 0 || !y ? v : y;
3025
- }, p = function(v) {
3026
- var y = Pn(v, u, n);
3027
- return y === -1 ? /* @__PURE__ */ Z.createElement("span", a("display"), v) : /* @__PURE__ */ Z.createElement("span", a("display"), v.substring(0, y), /* @__PURE__ */ Z.createElement("b", a("highlight"), v.substring(y, y + u.length)), v.substring(y + u.length));
3028
- };
3029
- return /* @__PURE__ */ Z.createElement("li", ue({
3030
- id: r,
3031
- role: "option",
3032
- "aria-selected": i
3033
- }, c, a), f());
3034
- }
3035
- Mn.propTypes = {
3036
- id: x.string.isRequired,
3037
- query: x.string.isRequired,
3038
- index: x.number.isRequired,
3039
- ignoreAccents: x.bool,
3040
- suggestion: x.oneOfType([x.string, x.shape({
3041
- id: x.oneOfType([x.string, x.number]).isRequired,
3042
- display: x.string
3043
- })]).isRequired,
3044
- renderSuggestion: x.func,
3045
- focused: x.bool
3046
- };
3047
- var Ii = nt({
3048
- cursor: "pointer"
3049
- }, function(e) {
3050
- return {
3051
- "&focused": e.focused
3052
- };
3053
- }), xi = Ii(Mn);
3054
- function Oi(e) {
3055
- var r = e.style, i = e.className, n = e.classNames, t = wt(Di, {
3056
- style: r,
3057
- className: i,
3058
- classNames: n
3059
- }), o = t("spinner");
3060
- return /* @__PURE__ */ Z.createElement("div", t, /* @__PURE__ */ Z.createElement("div", o, /* @__PURE__ */ Z.createElement("div", o(["element", "element1"])), /* @__PURE__ */ Z.createElement("div", o(["element", "element2"])), /* @__PURE__ */ Z.createElement("div", o(["element", "element3"])), /* @__PURE__ */ Z.createElement("div", o(["element", "element4"])), /* @__PURE__ */ Z.createElement("div", o(["element", "element5"]))));
3061
- }
3062
- var Di = {};
3063
- function Ln(e) {
3064
- var r = e.id, i = e.suggestions, n = i === void 0 ? {} : i, t = e.a11ySuggestionsListLabel, o = e.focusIndex, s = e.position, u = e.left, l = e.right, d = e.top, a = e.scrollFocusedIntoView, c = e.isLoading, f = e.isOpened, g = e.onSelect, p = g === void 0 ? function() {
3065
- return null;
3066
- } : g, m = e.ignoreAccents, v = e.containerRef, y = e.children, C = e.style, S = e.customSuggestionsContainer, T = e.onMouseDown, b = e.onMouseEnter, D = re(void 0), O = Je(D, 2), E = O[0], w = O[1];
3067
- le(function() {
3068
- if (!(!E || E.offsetHeight >= E.scrollHeight || !a)) {
3069
- var N = E.scrollTop, j = E.children[o].getBoundingClientRect(), $ = j.top, G = j.bottom, _ = E.getBoundingClientRect(), I = _.top;
3070
- $ = $ - I + N, G = G - I + N, $ < N ? E.scrollTop = $ : G > E.offsetHeight && (E.scrollTop = G - E.offsetHeight);
3071
- }
3072
- }, [o, a, E]);
3073
- var A = function() {
3074
- var j = /* @__PURE__ */ Z.createElement("ul", ue({
3075
- ref: w,
3076
- id: r,
3077
- role: "listbox",
3078
- "aria-label": t
3079
- }, C("list")), Object.values(n).reduce(function($, G) {
3080
- var _ = G.results, I = G.queryInfo;
3081
- return [].concat(Ze($), Ze(_.map(function(L, B) {
3082
- return P(L, I, $.length + B);
3083
- })));
3084
- }, []));
3085
- return S ? S(j) : j;
3086
- }, P = function(j, $, G) {
3087
- var _ = G === o, I = $.childIndex, L = $.query, B = De.toArray(y)[I].props.renderSuggestion;
3088
- return /* @__PURE__ */ Z.createElement(xi, {
3089
- style: C("item"),
3090
- key: "".concat(I, "-").concat(V(j)),
3091
- id: jn(r, G),
3092
- query: L,
3093
- index: G,
3094
- ignoreAccents: m,
3095
- renderSuggestion: B,
3096
- suggestion: j,
3097
- focused: _,
3098
- onClick: function() {
3099
- return F(j, $);
3100
- },
3101
- onMouseEnter: function() {
3102
- return Y(G);
3103
- }
3104
- });
3105
- }, q = function() {
3106
- if (c)
3107
- return /* @__PURE__ */ Z.createElement(Oi, {
3108
- style: C("loadingIndicator")
3109
- });
3110
- }, Y = function(j, $) {
3111
- b && b(j);
3112
- }, F = function(j, $) {
3113
- p(j, $);
3114
- }, V = function(j) {
3115
- return typeof j == "string" ? j : j.id;
3116
- };
3117
- return f ? /* @__PURE__ */ Z.createElement("div", ue({}, ei({
3118
- position: s || "absolute",
3119
- left: u,
3120
- right: l,
3121
- top: d
3122
- }, C), {
3123
- onMouseDown: T,
3124
- ref: v
3125
- }), A(), q()) : null;
3126
- }
3127
- Ln.propTypes = {
3128
- id: x.string.isRequired,
3129
- suggestions: x.object.isRequired,
3130
- a11ySuggestionsListLabel: x.string,
3131
- focusIndex: x.number,
3132
- position: x.string,
3133
- left: x.number,
3134
- right: x.number,
3135
- top: x.number,
3136
- scrollFocusedIntoView: x.bool,
3137
- isLoading: x.bool,
3138
- isOpened: x.bool.isRequired,
3139
- onSelect: x.func,
3140
- ignoreAccents: x.bool,
3141
- customSuggestionsContainer: x.func,
3142
- containerRef: x.oneOfType([x.func, x.shape({
3143
- current: typeof Element > "u" ? x.any : x.instanceOf(Element)
3144
- })])
3145
- };
3146
- var Ri = nt({
3147
- zIndex: 1,
3148
- backgroundColor: "white",
3149
- marginTop: 14,
3150
- minWidth: 100,
3151
- list: {
3152
- margin: 0,
3153
- padding: 0,
3154
- listStyleType: "none"
3155
- }
3156
- }), wi = Ri(Ln);
3157
- function an(e, r) {
3158
- var i = Object.keys(e);
3159
- if (Object.getOwnPropertySymbols) {
3160
- var n = Object.getOwnPropertySymbols(e);
3161
- r && (n = n.filter(function(t) {
3162
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
3163
- })), i.push.apply(i, n);
3164
- }
3165
- return i;
3166
- }
3167
- function de(e) {
3168
- for (var r = 1; r < arguments.length; r++) {
3169
- var i = arguments[r] != null ? arguments[r] : {};
3170
- r % 2 ? an(Object(i), !0).forEach(function(n) {
3171
- H(e, n, i[n]);
3172
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(i)) : an(Object(i)).forEach(function(n) {
3173
- Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(i, n));
3174
- });
3175
- }
3176
- return e;
3177
- }
3178
- function Ni(e) {
3179
- var r = ji();
3180
- return function() {
3181
- var n = Qe(e), t;
3182
- if (r) {
3183
- var o = Qe(this).constructor;
3184
- t = Reflect.construct(n, arguments, o);
3185
- } else
3186
- t = n.apply(this, arguments);
3187
- return Ro(this, t);
3188
- };
3189
- }
3190
- function ji() {
3191
- if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
3192
- if (typeof Proxy == "function") return !0;
3193
- try {
3194
- return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
3195
- })), !0;
3196
- } catch {
3197
- return !1;
3198
- }
3199
- }
3200
- var Pi = function(r) {
3201
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3202
- if (r instanceof RegExp)
3203
- return r;
3204
- var n = i.allowSpaceInQuery, t = Ke(r);
3205
- return new RegExp("(?:^|\\s)(".concat(t, "([^").concat(n ? "" : "\\s").concat(t, "]*))$"));
3206
- }, Fi = function(r, i) {
3207
- return r instanceof Array ? function(n, t) {
3208
- for (var o = [], s = 0, u = r.length; s < u; ++s) {
3209
- var l = r[s].display || r[s].id;
3210
- Pn(l, n, i) >= 0 && o.push(r[s]);
3211
- }
3212
- return o;
3213
- } : r;
3214
- }, Te = {
3215
- TAB: 9,
3216
- RETURN: 13,
3217
- ESC: 27,
3218
- UP: 38,
3219
- DOWN: 40
3220
- }, Ye = !1, Bn = {
3221
- /**
3222
- * If set to `true` a regular text input element will be rendered
3223
- * instead of a textarea
3224
- */
3225
- singleLine: x.bool,
3226
- allowSpaceInQuery: x.bool,
3227
- allowSuggestionsAboveCursor: x.bool,
3228
- forceSuggestionsAboveCursor: x.bool,
3229
- ignoreAccents: x.bool,
3230
- a11ySuggestionsListLabel: x.string,
3231
- value: x.string,
3232
- onKeyDown: x.func,
3233
- customSuggestionsContainer: x.func,
3234
- onSelect: x.func,
3235
- onBlur: x.func,
3236
- onChange: x.func,
3237
- suggestionsPortalHost: typeof Element > "u" ? x.any : x.PropTypes.instanceOf(Element),
3238
- inputRef: x.oneOfType([x.func, x.shape({
3239
- current: typeof Element > "u" ? x.any : x.instanceOf(Element)
3240
- })]),
3241
- children: x.oneOfType([x.element, x.arrayOf(x.element)]).isRequired
3242
- }, jt = /* @__PURE__ */ function(e) {
3243
- Do(i, e);
3244
- var r = Ni(i);
3245
- function i(n) {
3246
- var t;
3247
- return Io(this, i), t = r.call(this, n), H(k(t), "setContainerElement", function(o) {
3248
- t.containerElement = o;
3249
- }), H(k(t), "getInputProps", function() {
3250
- var o = t.props, s = o.readOnly, u = o.disabled, l = o.style, d = Ci(
3251
- t.props,
3252
- ["style", "classNames", "className"],
3253
- // substyle props
3254
- bi(Bn)
3255
- );
3256
- return de(de(de(de({}, d), l("input")), {}, {
3257
- value: t.getPlainText(),
3258
- onScroll: t.updateHighlighterScroll
3259
- }, !s && !u && {
3260
- onChange: t.handleChange,
3261
- onSelect: t.handleSelect,
3262
- onKeyDown: t.handleKeyDown,
3263
- onBlur: t.handleBlur,
3264
- onCompositionStart: t.handleCompositionStart,
3265
- onCompositionEnd: t.handleCompositionEnd
3266
- }), t.isOpened() && {
3267
- role: "combobox",
3268
- "aria-controls": t.uuidSuggestionsOverlay,
3269
- "aria-expanded": !0,
3270
- "aria-autocomplete": "list",
3271
- "aria-haspopup": "listbox",
3272
- "aria-activedescendant": jn(t.uuidSuggestionsOverlay, t.state.focusIndex)
3273
- });
3274
- }), H(k(t), "renderControl", function() {
3275
- var o = t.props, s = o.singleLine, u = o.style, l = t.getInputProps();
3276
- return /* @__PURE__ */ Z.createElement("div", u("control"), t.renderHighlighter(), s ? t.renderInput(l) : t.renderTextarea(l));
3277
- }), H(k(t), "renderInput", function(o) {
3278
- return /* @__PURE__ */ Z.createElement("input", ue({
3279
- type: "text",
3280
- ref: t.setInputRef
3281
- }, o));
3282
- }), H(k(t), "renderTextarea", function(o) {
3283
- return /* @__PURE__ */ Z.createElement("textarea", ue({
3284
- ref: t.setInputRef
3285
- }, o));
3286
- }), H(k(t), "setInputRef", function(o) {
3287
- t.inputElement = o;
3288
- var s = t.props.inputRef;
3289
- typeof s == "function" ? s(o) : s && (s.current = o);
3290
- }), H(k(t), "setSuggestionsElement", function(o) {
3291
- t.suggestionsElement = o;
3292
- }), H(k(t), "renderSuggestionsOverlay", function() {
3293
- if (!mt(t.state.selectionStart))
3294
- return null;
3295
- var o = t.state.suggestionsPosition, s = o.position, u = o.left, l = o.top, d = o.right, a = /* @__PURE__ */ Z.createElement(wi, {
3296
- id: t.uuidSuggestionsOverlay,
3297
- style: t.props.style("suggestions"),
3298
- position: s,
3299
- left: u,
3300
- top: l,
3301
- right: d,
3302
- focusIndex: t.state.focusIndex,
3303
- scrollFocusedIntoView: t.state.scrollFocusedIntoView,
3304
- containerRef: t.setSuggestionsElement,
3305
- suggestions: t.state.suggestions,
3306
- customSuggestionsContainer: t.props.customSuggestionsContainer,
3307
- onSelect: t.addMention,
3308
- onMouseDown: t.handleSuggestionsMouseDown,
3309
- onMouseEnter: t.handleSuggestionsMouseEnter,
3310
- isLoading: t.isLoading(),
3311
- isOpened: t.isOpened(),
3312
- ignoreAccents: t.props.ignoreAccents,
3313
- a11ySuggestionsListLabel: t.props.a11ySuggestionsListLabel
3314
- }, t.props.children);
3315
- return t.props.suggestionsPortalHost ? /* @__PURE__ */ Er.createPortal(a, t.props.suggestionsPortalHost) : a;
3316
- }), H(k(t), "renderHighlighter", function() {
3317
- var o = t.state, s = o.selectionStart, u = o.selectionEnd, l = t.props, d = l.singleLine, a = l.children, c = l.value, f = l.style;
3318
- return /* @__PURE__ */ Z.createElement(Ti, {
3319
- containerRef: t.setHighlighterElement,
3320
- style: f("highlighter"),
3321
- value: c,
3322
- singleLine: d,
3323
- selectionStart: s,
3324
- selectionEnd: u,
3325
- onCaretPositionChange: t.handleCaretPositionChange
3326
- }, a);
3327
- }), H(k(t), "setHighlighterElement", function(o) {
3328
- t.highlighterElement = o;
3329
- }), H(k(t), "handleCaretPositionChange", function(o) {
3330
- t.setState({
3331
- caretPosition: o
3332
- });
3333
- }), H(k(t), "getPlainText", function() {
3334
- return Ce(t.props.value || "", Ee(t.props.children));
3335
- }), H(k(t), "executeOnChange", function(o) {
3336
- for (var s = arguments.length, u = new Array(s > 1 ? s - 1 : 0), l = 1; l < s; l++)
3337
- u[l - 1] = arguments[l];
3338
- if (t.props.onChange) {
3339
- var d;
3340
- return (d = t.props).onChange.apply(d, [o].concat(u));
3341
- }
3342
- if (t.props.valueLink) {
3343
- var a;
3344
- return (a = t.props.valueLink).requestChange.apply(a, [o.target.value].concat(u));
3345
- }
3346
- }), H(k(t), "handleChange", function(o) {
3347
- if (Ye = !1, yi()) {
3348
- var s = document.activeElement && document.activeElement.contentDocument || document;
3349
- if (s.activeElement !== o.target)
3350
- return;
3351
- }
3352
- var u = t.props.value || "", l = Ee(t.props.children), d = o.target.value, a = t.state.selectionStart;
3353
- a == null && (a = o.target.selectionStart);
3354
- var c = t.state.selectionEnd;
3355
- c == null && (c = o.target.selectionEnd);
3356
- var f = fi(u, d, {
3357
- selectionStartBefore: a,
3358
- selectionEndBefore: c,
3359
- selectionEndAfter: o.target.selectionEnd
3360
- }, l);
3361
- d = Ce(f, l);
3362
- var g = o.target.selectionStart, p = o.target.selectionEnd, m = !1, v = nn(u, l, g);
3363
- v !== void 0 && t.state.selectionEnd > v && (g = v + (o.nativeEvent.data ? o.nativeEvent.data.length : 0), p = g, m = !0), t.setState({
3364
- selectionStart: g,
3365
- selectionEnd: p,
3366
- setSelectionAfterMentionChange: m
3367
- });
3368
- var y = Pe(f, l);
3369
- o.nativeEvent.isComposing && g === p && t.updateMentionsQueries(t.inputElement.value, g);
3370
- var C = {
3371
- target: {
3372
- value: f
3373
- }
3374
- };
3375
- t.executeOnChange(C, f, d, y);
3376
- }), H(k(t), "handleSelect", function(o) {
3377
- if (t.setState({
3378
- selectionStart: o.target.selectionStart,
3379
- selectionEnd: o.target.selectionEnd
3380
- }), !Ye) {
3381
- var s = t.inputElement;
3382
- o.target.selectionStart === o.target.selectionEnd ? t.updateMentionsQueries(s.value, o.target.selectionStart) : t.clearSuggestions(), t.updateHighlighterScroll(), t.props.onSelect(o);
3383
- }
3384
- }), H(k(t), "handleKeyDown", function(o) {
3385
- var s = Ve(t.state.suggestions);
3386
- if (s === 0 || !t.suggestionsElement) {
3387
- t.props.onKeyDown(o);
3388
- return;
3389
- }
3390
- switch (Object.values(Te).indexOf(o.keyCode) >= 0 && (o.preventDefault(), o.stopPropagation()), o.keyCode) {
3391
- case Te.ESC: {
3392
- t.clearSuggestions();
3393
- return;
3394
- }
3395
- case Te.DOWN: {
3396
- t.shiftFocus(1);
3397
- return;
3398
- }
3399
- case Te.UP: {
3400
- t.shiftFocus(-1);
3401
- return;
3402
- }
3403
- case Te.RETURN: {
3404
- t.selectFocused();
3405
- return;
3406
- }
3407
- case Te.TAB: {
3408
- t.selectFocused();
3409
- return;
3410
- }
3411
- default:
3412
- return;
3413
- }
3414
- }), H(k(t), "shiftFocus", function(o) {
3415
- var s = Ve(t.state.suggestions);
3416
- t.setState({
3417
- focusIndex: (s + t.state.focusIndex + o) % s,
3418
- scrollFocusedIntoView: !0
3419
- });
3420
- }), H(k(t), "selectFocused", function() {
3421
- var o = t.state, s = o.suggestions, u = o.focusIndex, l = Object.values(s).reduce(function(c, f) {
3422
- var g = f.results, p = f.queryInfo;
3423
- return [].concat(Ze(c), Ze(g.map(function(m) {
3424
- return {
3425
- result: m,
3426
- queryInfo: p
3427
- };
3428
- })));
3429
- }, [])[u], d = l.result, a = l.queryInfo;
3430
- t.addMention(d, a), t.setState({
3431
- focusIndex: 0
3432
- });
3433
- }), H(k(t), "handleBlur", function(o) {
3434
- var s = t._suggestionsMouseDown;
3435
- t._suggestionsMouseDown = !1, s || t.setState({
3436
- selectionStart: null,
3437
- selectionEnd: null
3438
- }), window.setTimeout(function() {
3439
- t.updateHighlighterScroll();
3440
- }, 1), t.props.onBlur(o, s);
3441
- }), H(k(t), "handleSuggestionsMouseDown", function(o) {
3442
- t._suggestionsMouseDown = !0;
3443
- }), H(k(t), "handleSuggestionsMouseEnter", function(o) {
3444
- t.setState({
3445
- focusIndex: o,
3446
- scrollFocusedIntoView: !1
3447
- });
3448
- }), H(k(t), "updateSuggestionsPosition", function() {
3449
- var o = t.state.caretPosition, s = t.props, u = s.suggestionsPortalHost, l = s.allowSuggestionsAboveCursor, d = s.forceSuggestionsAboveCursor;
3450
- if (!(!o || !t.suggestionsElement)) {
3451
- var a = t.suggestionsElement, c = t.highlighterElement, f = c.getBoundingClientRect(), g = ct(c, "font-size"), p = {
3452
- left: f.left + o.left,
3453
- top: f.top + o.top + g
3454
- }, m = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
3455
- if (a) {
3456
- var v = {};
3457
- if (u) {
3458
- v.position = "fixed";
3459
- var y = p.left, C = p.top;
3460
- y -= ct(a, "margin-left"), C -= ct(a, "margin-top"), y -= c.scrollLeft, C -= c.scrollTop;
3461
- var S = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
3462
- y + a.offsetWidth > S ? v.left = Math.max(0, S - a.offsetWidth) : v.left = y, l && C + a.offsetHeight > m && a.offsetHeight < C - g || d ? v.top = Math.max(0, C - a.offsetHeight - g) : v.top = C;
3463
- } else {
3464
- var T = o.left - c.scrollLeft, b = o.top - c.scrollTop;
3465
- T + a.offsetWidth > t.containerElement.offsetWidth ? v.right = 0 : v.left = T, l && p.top - c.scrollTop + a.offsetHeight > m && a.offsetHeight < f.top - g - c.scrollTop || d ? v.top = b - a.offsetHeight - g : v.top = b;
3466
- }
3467
- v.left === t.state.suggestionsPosition.left && v.top === t.state.suggestionsPosition.top && v.position === t.state.suggestionsPosition.position || t.setState({
3468
- suggestionsPosition: v
3469
- });
3470
- }
3471
- }
3472
- }), H(k(t), "updateHighlighterScroll", function() {
3473
- var o = t.inputElement, s = t.highlighterElement;
3474
- !o || !s || (s.scrollLeft = o.scrollLeft, s.scrollTop = o.scrollTop, s.height = o.height);
3475
- }), H(k(t), "handleCompositionStart", function() {
3476
- Ye = !0;
3477
- }), H(k(t), "handleCompositionEnd", function() {
3478
- Ye = !1;
3479
- }), H(k(t), "setSelection", function(o, s) {
3480
- if (!(o === null || s === null)) {
3481
- var u = t.inputElement;
3482
- if (u.setSelectionRange)
3483
- u.setSelectionRange(o, s);
3484
- else if (u.createTextRange) {
3485
- var l = u.createTextRange();
3486
- l.collapse(!0), l.moveEnd("character", s), l.moveStart("character", o), l.select();
3487
- }
3488
- }
3489
- }), H(k(t), "updateMentionsQueries", function(o, s) {
3490
- t._queryId++, t.suggestions = {}, t.setState({
3491
- suggestions: {}
3492
- });
3493
- var u = t.props.value || "", l = t.props.children, d = Ee(l), a = ie(u, d, s, "NULL");
3494
- if (a !== null) {
3495
- var c = pi(u.substring(0, a), d), f = o.substring(c, s);
3496
- Z.Children.forEach(l, function(g, p) {
3497
- if (g) {
3498
- var m = Pi(g.props.trigger, t.props), v = f.match(m);
3499
- if (v) {
3500
- var y = c + f.indexOf(v[1], v.index);
3501
- t.queryData(v[2], p, y, y + v[1].length, o);
3502
- }
3503
- }
3504
- });
3505
- }
3506
- }), H(k(t), "clearSuggestions", function() {
3507
- t._queryId++, t.suggestions = {}, t.setState({
3508
- suggestions: {},
3509
- focusIndex: 0
3510
- });
3511
- }), H(k(t), "queryData", function(o, s, u, l, d) {
3512
- var a = t.props, c = a.children, f = a.ignoreAccents, g = De.toArray(c)[s], p = Fi(g.props.data, f), m = p(o, t.updateSuggestions.bind(null, t._queryId, s, o, u, l, d));
3513
- m instanceof Array && t.updateSuggestions(t._queryId, s, o, u, l, d, m);
3514
- }), H(k(t), "updateSuggestions", function(o, s, u, l, d, a, c) {
3515
- if (o === t._queryId) {
3516
- t.suggestions = de(de({}, t.suggestions), {}, H({}, s, {
3517
- queryInfo: {
3518
- childIndex: s,
3519
- query: u,
3520
- querySequenceStart: l,
3521
- querySequenceEnd: d,
3522
- plainTextValue: a
3523
- },
3524
- results: c
3525
- }));
3526
- var f = t.state.focusIndex, g = Ve(t.suggestions);
3527
- t.setState({
3528
- suggestions: t.suggestions,
3529
- focusIndex: f >= g ? Math.max(g - 1, 0) : f
3530
- });
3531
- }
3532
- }), H(k(t), "addMention", function(o, s) {
3533
- var u = o.id, l = o.display, d = s.childIndex, a = s.querySequenceStart, c = s.querySequenceEnd, f = s.plainTextValue, g = t.props.value || "", p = Ee(t.props.children), m = De.toArray(t.props.children)[d], v = m.props, y = v.markup, C = v.displayTransform, S = v.appendSpaceOnAdd, T = v.onAdd, b = ie(g, p, a, "START"), D = b + c - a, O = vi(y, u, l);
3534
- S && (O += " ");
3535
- var E = Fe(g, b, D, O);
3536
- t.inputElement.focus();
3537
- var w = C(u, l);
3538
- S && (w += " ");
3539
- var A = a + w.length;
3540
- t.setState({
3541
- selectionStart: A,
3542
- selectionEnd: A,
3543
- setSelectionAfterMentionChange: !0
3544
- });
3545
- var P = {
3546
- target: {
3547
- value: E
3548
- }
3549
- }, q = Pe(E, p), Y = Fe(f, a, c, w);
3550
- t.executeOnChange(P, E, Y, q), T && T(u, l, b, D), t.clearSuggestions();
3551
- }), H(k(t), "isLoading", function() {
3552
- var o = !1;
3553
- return Z.Children.forEach(t.props.children, function(s) {
3554
- o = o || s && s.props.isLoading;
3555
- }), o;
3556
- }), H(k(t), "isOpened", function() {
3557
- return mt(t.state.selectionStart) && (Ve(t.state.suggestions) !== 0 || t.isLoading());
3558
- }), H(k(t), "_queryId", 0), t.suggestions = {}, t.uuidSuggestionsOverlay = Math.random().toString(16).substring(2), t.handleCopy = t.handleCopy.bind(k(t)), t.handleCut = t.handleCut.bind(k(t)), t.handlePaste = t.handlePaste.bind(k(t)), t.state = {
3559
- focusIndex: 0,
3560
- selectionStart: null,
3561
- selectionEnd: null,
3562
- suggestions: {},
3563
- caretPosition: null,
3564
- suggestionsPosition: {},
3565
- setSelectionAfterHandlePaste: !1
3566
- }, t;
3567
- }
3568
- return Oo(i, [{
3569
- key: "componentDidMount",
3570
- value: function() {
3571
- document.addEventListener("copy", this.handleCopy), document.addEventListener("cut", this.handleCut), document.addEventListener("paste", this.handlePaste), this.updateSuggestionsPosition();
3572
- }
3573
- }, {
3574
- key: "componentDidUpdate",
3575
- value: function(t, o) {
3576
- o.suggestionsPosition === this.state.suggestionsPosition && this.updateSuggestionsPosition(), this.state.setSelectionAfterMentionChange && (this.setState({
3577
- setSelectionAfterMentionChange: !1
3578
- }), this.setSelection(this.state.selectionStart, this.state.selectionEnd)), this.state.setSelectionAfterHandlePaste && (this.setState({
3579
- setSelectionAfterHandlePaste: !1
3580
- }), this.setSelection(this.state.selectionStart, this.state.selectionEnd));
3581
- }
3582
- }, {
3583
- key: "componentWillUnmount",
3584
- value: function() {
3585
- document.removeEventListener("copy", this.handleCopy), document.removeEventListener("cut", this.handleCut), document.removeEventListener("paste", this.handlePaste);
3586
- }
3587
- }, {
3588
- key: "render",
3589
- value: function() {
3590
- return /* @__PURE__ */ Z.createElement("div", ue({
3591
- ref: this.setContainerElement
3592
- }, this.props.style), this.renderControl(), this.renderSuggestionsOverlay());
3593
- }
3594
- }, {
3595
- key: "handlePaste",
3596
- value: function(t) {
3597
- if (t.target === this.inputElement && this.supportsClipboardActions(t)) {
3598
- t.preventDefault();
3599
- var o = this.state, s = o.selectionStart, u = o.selectionEnd, l = this.props, d = l.value, a = l.children, c = Ee(a), f = ie(d, c, s, "START"), g = ie(d, c, u, "END"), p = t.clipboardData.getData("text/react-mentions"), m = t.clipboardData.getData("text/plain"), v = Fe(d, f, g, p || m).replace(/\r/g, ""), y = Ce(v, c), C = {
3600
- target: de(de({}, t.target), {}, {
3601
- value: v
3602
- })
3603
- };
3604
- this.executeOnChange(C, v, y, Pe(v, c));
3605
- var S = nn(d, c, s), T = (S || s) + Ce(p || m, c).length;
3606
- this.setState({
3607
- selectionStart: T,
3608
- selectionEnd: T,
3609
- setSelectionAfterHandlePaste: !0
3610
- });
3611
- }
3612
- }
3613
- }, {
3614
- key: "saveSelectionToClipboard",
3615
- value: function(t) {
3616
- var o = this.inputElement.selectionStart, s = this.inputElement.selectionEnd, u = this.props, l = u.children, d = u.value, a = Ee(l), c = ie(d, a, o, "START"), f = ie(d, a, s, "END");
3617
- t.clipboardData.setData("text/plain", t.target.value.slice(o, s)), t.clipboardData.setData("text/react-mentions", d.slice(c, f));
3618
- }
3619
- }, {
3620
- key: "supportsClipboardActions",
3621
- value: function(t) {
3622
- return !!t.clipboardData;
3623
- }
3624
- }, {
3625
- key: "handleCopy",
3626
- value: function(t) {
3627
- t.target === this.inputElement && this.supportsClipboardActions(t) && (t.preventDefault(), this.saveSelectionToClipboard(t));
3628
- }
3629
- }, {
3630
- key: "handleCut",
3631
- value: function(t) {
3632
- if (t.target === this.inputElement && this.supportsClipboardActions(t)) {
3633
- t.preventDefault(), this.saveSelectionToClipboard(t);
3634
- var o = this.state, s = o.selectionStart, u = o.selectionEnd, l = this.props, d = l.children, a = l.value, c = Ee(d), f = ie(a, c, s, "START"), g = ie(a, c, u, "END"), p = [a.slice(0, f), a.slice(g)].join(""), m = Ce(p, c), v = {
3635
- target: de(de({}, t.target), {}, {
3636
- value: m
3637
- })
3638
- };
3639
- this.executeOnChange(v, p, m, Pe(a, c));
3640
- }
3641
- }
3642
- // Handle input element's change event
3643
- }]), i;
3644
- }(Z.Component);
3645
- H(jt, "propTypes", Bn);
3646
- H(jt, "defaultProps", {
3647
- ignoreAccents: !1,
3648
- singleLine: !1,
3649
- allowSuggestionsAboveCursor: !1,
3650
- onKeyDown: function() {
3651
- return null;
3652
- },
3653
- onSelect: function() {
3654
- return null;
3655
- },
3656
- onBlur: function() {
3657
- return null;
3658
- }
3659
- });
3660
- var ct = function(r, i) {
3661
- var n = parseFloat(window.getComputedStyle(r, null).getPropertyValue(i));
3662
- return isFinite(n) ? n : 0;
3663
- }, Mi = typeof navigator < "u" && /iPhone|iPad|iPod/i.test(navigator.userAgent), Li = nt({
3664
- position: "relative",
3665
- overflowY: "visible",
3666
- input: {
3667
- display: "block",
3668
- width: "100%",
3669
- position: "absolute",
3670
- margin: 0,
3671
- top: 0,
3672
- left: 0,
3673
- boxSizing: "border-box",
3674
- backgroundColor: "transparent",
3675
- fontFamily: "inherit",
3676
- fontSize: "inherit",
3677
- letterSpacing: "inherit"
3678
- },
3679
- "&multiLine": {
3680
- input: de({
3681
- height: "100%",
3682
- bottom: 0,
3683
- overflow: "hidden",
3684
- resize: "none"
3685
- }, Mi ? {
3686
- marginTop: 1,
3687
- marginLeft: -3
3688
- } : null)
3689
- }
3690
- }, function(e) {
3691
- var r = e.singleLine;
3692
- return {
3693
- "&singleLine": r,
3694
- "&multiLine": !r
3695
- };
3696
- }), Bi = Li(jt), $i = {
3697
- fontWeight: "inherit"
3698
- }, Pt = function(r) {
3699
- var i = r.display, n = r.style, t = r.className, o = r.classNames, s = wt($i, {
3700
- style: n,
3701
- className: t,
3702
- classNames: o
3703
- });
3704
- return /* @__PURE__ */ Z.createElement("strong", s, i);
3705
- };
3706
- Pt.propTypes = {
3707
- /**
3708
- * Called when a new mention is added in the input
3709
- *
3710
- * Example:
3711
- *
3712
- * ```js
3713
- * function(id, display) {
3714
- * console.log("user " + display + " was mentioned!");
3715
- * }
3716
- * ```
3717
- */
3718
- onAdd: x.func,
3719
- onRemove: x.func,
3720
- renderSuggestion: x.func,
3721
- trigger: x.oneOfType([x.string, x.instanceOf(RegExp)]),
3722
- markup: x.string,
3723
- displayTransform: x.func,
3724
- /**
3725
- * If set to `true` spaces will not interrupt matching suggestions
3726
- */
3727
- allowSpaceInQuery: x.bool,
3728
- isLoading: x.bool
3729
- };
3730
- Pt.defaultProps = {
3731
- trigger: "@",
3732
- markup: "@[__display__](__id__)",
3733
- displayTransform: function(r, i) {
3734
- return i || r;
3735
- },
3736
- onAdd: function() {
3737
- return null;
3738
- },
3739
- onRemove: function() {
3740
- return null;
3741
- },
3742
- renderSuggestion: null,
3743
- isLoading: !1,
3744
- appendSpaceOnAdd: !1
3745
- };
3746
- const Hi = {
3747
- "&multiLine": {
3748
- minHeight: "40px"
3749
- },
3750
- input: {
3751
- border: "none",
3752
- outline: "none",
3753
- fontWeight: "500",
3754
- fontSize: "15px",
3755
- color: "rgba(0, 5, 15, 0.85)"
3756
- },
3757
- suggestions: {
3758
- backgroundColor: "var(--background--01)",
3759
- border: "1px solid rgba(0,0,0,0.1)",
3760
- borderRadius: "8px",
3761
- padding: "5px",
3762
- boxShadow: "0px 0px 10px rgba(0,0,0,0.1)",
3763
- minWidth: "150px",
3764
- maxHeight: "200px",
3765
- overflowY: "auto",
3766
- item: {
3767
- fontSize: "15px",
3768
- padding: "4px 11px 4px 11px",
3769
- borderRadius: "4px",
3770
- fontWeight: "500",
3771
- "&focused": {
3772
- backgroundColor: "var(--background--04)"
3773
- }
3774
- }
3775
- }
3776
- }, ki = ({
3777
- value: e,
3778
- setValue: r,
3779
- users: i,
3780
- placeholder: n = "Type your reply here...",
3781
- onEnterKeypress: t
3782
- }) => {
3783
- const o = i.map((d) => ({
3784
- ...d,
3785
- display: d.display_name
3786
- })), s = (d) => {
3787
- d.stopPropagation(), d.key === "Enter" && !d.shiftKey && (d.preventDefault(), t == null || t());
3788
- }, u = (d, a) => {
3789
- console.info("[MentionsInputComponent] on mention select", { id: d, display: a });
3790
- }, l = (d) => {
3791
- r(d.target.value);
3792
- };
3793
- return /* @__PURE__ */ h.jsx(
3794
- Bi,
3795
- {
3796
- autoFocus: !0,
3797
- value: e,
3798
- onChange: l,
3799
- style: {
3800
- ...Hi,
3801
- minHeight: "40px",
3802
- marginBottom: "10px"
3803
- },
3804
- placeholder: n,
3805
- className: "mentions-input",
3806
- onKeyDown: s,
3807
- children: /* @__PURE__ */ h.jsx(
3808
- Pt,
3809
- {
3810
- displayTransform: (d, a) => `@${a}`,
3811
- trigger: "@",
3812
- markup: "@[__id__](__display__)",
3813
- data: o,
3814
- appendSpaceOnAdd: !0,
3815
- renderSuggestion: (d, a) => /* @__PURE__ */ h.jsx("div", { className: `user ${a ? "focused" : ""}`, children: d.display }),
3816
- onAdd: u
3817
- }
3818
- )
3819
- }
3820
- );
3821
- }, $n = ({
3822
- comment: e,
3823
- setComment: r,
3824
- loading: i,
3825
- users: n,
3826
- currentUser: t,
3827
- placeholder: o,
3828
- onEnterKeypress: s
3829
- }) => /* @__PURE__ */ h.jsxs("div", { className: me.conversationInputForm, children: [
3830
- t ? /* @__PURE__ */ h.jsx(Sn, { user: t }) : null,
3831
- /* @__PURE__ */ h.jsx(
3832
- ki,
3833
- {
3834
- value: e,
3835
- setValue: r,
3836
- users: n,
3837
- placeholder: o,
3838
- onEnterKeypress: s
3839
- }
3840
- ),
3841
- /* @__PURE__ */ h.jsx(un, { loading: i, color: "primary", children: /* @__PURE__ */ h.jsx(ar, {}) })
3842
- ] }), Hn = ({
3843
- meta: { highlight: e, filePath: r, field: i, column: n }
3844
- }) => {
3845
- if (!e)
3846
- return null;
3847
- const t = n ? `${r} (${n})` : r;
3848
- return /* @__PURE__ */ h.jsx("div", { className: me.highlightText, children: /* @__PURE__ */ h.jsx(
3849
- er,
3850
- {
3851
- code: e,
3852
- language: i ? "markdown" : "sql",
3853
- showLineNumbers: !i,
3854
- fileName: t,
3855
- theme: "light"
3856
- }
3857
- ) });
3858
- }, Ui = () => {
3859
- const e = ne((a) => a.users), r = ne(
3860
- (a) => a.newConversation
3861
- ), i = ne(
3862
- (a) => a.currentUserId ? a.users[a.currentUserId] : null
3863
- ), n = ne(
3864
- (a) => a.shareId
3865
- ), t = ce(), [o, s] = re(!1), [u, l] = re(""), d = async (a) => {
3866
- if (a == null || a.stopPropagation(), a == null || a.preventDefault(), !(!r || !n)) {
3867
- s(!0);
3868
- try {
3869
- console.log("saving conversation", r, u);
3870
- const c = await eo(
3871
- n,
3872
- {
3873
- ...r,
3874
- message: u
3875
- },
3876
- "dbt-docs"
3877
- // this component is used only from dbt docs page
3878
- );
3879
- if (!c.conversation_group_id) {
3880
- console.error("Unable to create conversation group", c);
3881
- return;
3882
- }
3883
- console.log("Successfully created conversation group", c);
3884
- } catch (c) {
3885
- console.error("error while saving conversation", r, c);
3886
- }
3887
- t(yn()), s(!1), t(xt(!0)), t(Ot()), l("");
3888
- }
3889
- };
3890
- return /* @__PURE__ */ h.jsx($e, { className: me.newConversationForm, children: /* @__PURE__ */ h.jsx(He, { className: "al-pt-4", children: /* @__PURE__ */ h.jsxs("form", { onSubmit: d, children: [
3891
- /* @__PURE__ */ h.jsx("h4", { children: "Add comment" }),
3892
- /* @__PURE__ */ h.jsx(
3893
- Hn,
3894
- {
3895
- meta: (r == null ? void 0 : r.meta) || {}
3896
- }
3897
- ),
3898
- /* @__PURE__ */ h.jsx(
3899
- $n,
3900
- {
3901
- comment: u,
3902
- setComment: l,
3903
- loading: o,
3904
- users: Object.values(e),
3905
- currentUser: i,
3906
- placeholder: "Start a conversation or add others with @",
3907
- onEnterKeypress: d
3908
- }
3909
- )
3910
- ] }) }) });
3911
- }, qi = ({
3912
- conversationGroupId: e,
3913
- shareId: r
3914
- }) => {
3915
- const { onResolve: i, source: n } = Be(), [t, o] = re(!1), s = async () => {
3916
- e && (o(!0), await oo(r, e, n), i(), o(!1));
3917
- };
3918
- return e ? /* @__PURE__ */ h.jsx(
3919
- Ie,
3920
- {
3921
- disabled: t,
3922
- className: me.resolveButton,
3923
- title: "Resolve conversation",
3924
- onClick: s,
3925
- children: /* @__PURE__ */ h.jsx(ur, {})
3926
- }
3927
- ) : null;
3928
- }, kn = ({
3929
- user: e,
3930
- timestamp: r,
3931
- showResolveButton: i,
3932
- conversationGroupId: n,
3933
- shareId: t
3934
- }) => /* @__PURE__ */ h.jsx(nr, { children: /* @__PURE__ */ h.jsxs(oe, { align: "center", justify: "between", className: "mb-0", children: [
3935
- /* @__PURE__ */ h.jsxs(oe, { align: "center", children: [
3936
- /* @__PURE__ */ h.jsx(Sn, { user: e }),
3937
- /* @__PURE__ */ h.jsxs("h4", { children: [
3938
- e == null ? void 0 : e.first_name,
3939
- " ",
3940
- e == null ? void 0 : e.last_name
3941
- ] }),
3942
- /* @__PURE__ */ h.jsx("span", { children: dt(r).format("HH:mm, DD MMM YY") })
3943
- ] }),
3944
- i ? /* @__PURE__ */ h.jsx(qi, { conversationGroupId: n, shareId: t }) : null
3945
- ] }) }), zi = ({ conversation: e, shareId: r }) => {
3946
- const { users: i } = Be(), n = fe(() => {
3947
- if (e != null && e.user_id)
3948
- return i[e.user_id];
3949
- }, [e.user_id, i]);
3950
- return /* @__PURE__ */ h.jsxs($e, { children: [
3951
- /* @__PURE__ */ h.jsx(kn, { user: n, timestamp: e.timestamp, shareId: r }),
3952
- /* @__PURE__ */ h.jsx(He, { children: /* @__PURE__ */ h.jsx("p", { children: e.message.replace(/@\[(.*?)\]\((.*?)\)/g, "@$2") }) })
3953
- ] });
3954
- }, Vi = ({ conversationGroupId: e, shareId: r }) => {
3955
- const { currentUser: i, users: n, onReplyAdd: t, source: o } = Be(), s = Object.values(n), [u, l] = re(""), [d, a] = re(!1), c = async (f) => {
3956
- if (f == null || f.stopPropagation(), f == null || f.preventDefault(), !(!r || !e)) {
3957
- a(!0), console.log("saving reply", r, e, {
3958
- message: u
3959
- });
3960
- try {
3961
- await to(
3962
- r,
3963
- e,
3964
- {
3965
- message: u
3966
- },
3967
- o
3968
- ), t();
3969
- } catch (g) {
3970
- console.error("error while saving reply", g);
3971
- }
3972
- a(!1), l("");
3973
- }
3974
- };
3975
- return /* @__PURE__ */ h.jsx("div", { className: me.replyForm, children: /* @__PURE__ */ h.jsx("form", { onSubmit: c, className: "", children: /* @__PURE__ */ h.jsx(
3976
- $n,
3977
- {
3978
- comment: u,
3979
- setComment: l,
3980
- loading: d,
3981
- users: Object.values(s),
3982
- currentUser: i || null,
3983
- onEnterKeypress: c
3984
- }
3985
- ) }) });
3986
- }, Yi = ({ conversationGroup: e, shareId: r, onSelect: i }) => {
3987
- var f;
3988
- const { users: n } = Be(), t = fe(() => {
3989
- if (e.owner)
3990
- return n[e.owner];
3991
- }, [e.owner, n]), { isSelected: o } = Be(), [s, u] = re(!1), l = we(
3992
- (g) => {
3993
- !o || !g || (console.log("ConversationGroupComponent scrolling", e.conversation_group_id), setTimeout(() => {
3994
- g.scrollIntoView({
3995
- behavior: "smooth",
3996
- block: "center"
3997
- });
3998
- }, 1e3));
3999
- },
4000
- [e.conversation_group_id, o]
4001
- );
4002
- if (!((f = e == null ? void 0 : e.conversations) != null && f.length) || (e == null ? void 0 : e.status) !== "Pending")
4003
- return null;
4004
- const [d, ...a] = e.conversations, c = a.length ? a.length > 1 ? `${a.length} replies` : `${a.length} reply` : "Reply";
4005
- return /* @__PURE__ */ h.jsx("div", { ref: l, className: me.conversationGroup, children: /* @__PURE__ */ h.jsxs($e, { className: `${o ? "active" : ""}`, onClick: i, children: [
4006
- /* @__PURE__ */ h.jsx(
4007
- kn,
4008
- {
4009
- user: t,
4010
- timestamp: d.timestamp,
4011
- showResolveButton: !0,
4012
- conversationGroupId: e.conversation_group_id,
4013
- shareId: r
4014
- }
4015
- ),
4016
- /* @__PURE__ */ h.jsxs(He, { children: [
4017
- /* @__PURE__ */ h.jsx(Hn, { meta: e.meta }),
4018
- /* @__PURE__ */ h.jsx("p", { children: d.message.replace(/@\[(.*?)\]\((.*?)\)/g, "@$2") }),
4019
- /* @__PURE__ */ h.jsx(ye, { onClick: () => u((g) => !g), variant: "link", children: c }),
4020
- a.length ? /* @__PURE__ */ h.jsx(h.Fragment, { children: s ? /* @__PURE__ */ h.jsx(h.Fragment, { children: a.map((g) => /* @__PURE__ */ h.jsx(zi, { conversation: g, shareId: r }, g.conversation_id)) }) : null }) : null,
4021
- s ? /* @__PURE__ */ h.jsx(
4022
- Vi,
4023
- {
4024
- conversationGroupId: e.conversation_group_id,
4025
- shareId: r
4026
- }
4027
- ) : null
4028
- ] })
4029
- ] }) });
4030
- }, Un = _e({
4031
- users: {},
4032
- conversationGroup: void 0,
4033
- currentUser: void 0,
4034
- isSelected: !1,
4035
- shareId: void 0,
4036
- onSelect: () => null,
4037
- onResolve: () => null,
4038
- onReplyAdd: () => null,
4039
- source: Ct.DBT_DOCS
4040
- }), Wi = ({
4041
- currentUser: e,
4042
- conversationGroup: r,
4043
- shareId: i,
4044
- onSelect: n,
4045
- isSelected: t,
4046
- users: o,
4047
- onResolve: s,
4048
- onReplyAdd: u,
4049
- source: l
4050
- }) => {
4051
- const d = fe(
4052
- () => ({
4053
- currentUser: e,
4054
- conversationGroup: r,
4055
- shareId: i,
4056
- onSelect: n,
4057
- isSelected: t,
4058
- users: o,
4059
- onResolve: s,
4060
- onReplyAdd: u,
4061
- source: l
4062
- }),
4063
- [
4064
- e,
4065
- r,
4066
- i,
4067
- n,
4068
- t,
4069
- o,
4070
- s,
4071
- u,
4072
- l
4073
- ]
4074
- );
4075
- return !r || !i ? null : /* @__PURE__ */ h.jsx(Un.Provider, { value: d, children: /* @__PURE__ */ h.jsx(
4076
- Yi,
4077
- {
4078
- conversationGroup: r,
4079
- shareId: i,
4080
- onSelect: n
4081
- }
4082
- ) });
4083
- }, Be = () => be(Un), Xi = () => {
4084
- const e = ne((c) => c.source), r = ne(
4085
- (c) => c.conversations
4086
- ), i = ne(
4087
- (c) => c.selectedConversationId
4088
- ), n = ne(
4089
- (c) => c.shareId
4090
- ), t = ne((c) => c.users), o = ne((c) => c.currentUserId), s = ce();
4091
- if (!o || !n)
4092
- return null;
4093
- const u = t[o], l = (c) => {
4094
- s(Mr({ shareId: n, conversationGroupId: c }));
4095
- }, d = (c) => {
4096
- s(It(c));
4097
- }, a = (c) => {
4098
- console.log("onReplyAdd", c), s(yn());
4099
- };
4100
- return !r || !Object.keys(r).length ? /* @__PURE__ */ h.jsx("div", { children: "No conversations yet!" }) : /* @__PURE__ */ h.jsx("div", { children: Object.values(r).map((c) => /* @__PURE__ */ h.jsx(
4101
- Wi,
4102
- {
4103
- conversationGroup: c,
4104
- shareId: n,
4105
- isSelected: i === c.conversation_group_id,
4106
- currentUser: u,
4107
- onResolve: () => l(c.conversation_group_id),
4108
- onSelect: () => d(c.conversation_group_id),
4109
- users: t,
4110
- onReplyAdd: () => a(c.conversation_group_id),
4111
- source: e
4112
- },
4113
- c.conversation_group_id
4114
- )) });
4115
- }, Ki = () => {
4116
- const e = ne((s) => s.isRightPanelOpen), r = ne(
4117
- (s) => s.selectedConversationId
4118
- ), i = ne((s) => s.newConversation), n = ce(), t = () => {
4119
- n(xt(!1)), n(It(void 0)), n(Ot());
4120
- };
4121
- return !!i || e || r ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
4122
- /* @__PURE__ */ h.jsx(
4123
- ye,
4124
- {
4125
- variant: "ghost",
4126
- onClick: t,
4127
- className: me.conversationRightPanelCloseButton,
4128
- children: /* @__PURE__ */ h.jsx(lr, {})
4129
- }
4130
- ),
4131
- /* @__PURE__ */ h.jsxs("div", { className: me.conversationRightPanel, children: [
4132
- /* @__PURE__ */ h.jsx("h3", { children: "Comments" }),
4133
- i ? /* @__PURE__ */ h.jsx(Ui, {}) : /* @__PURE__ */ h.jsx(Xi, {})
4134
- ] })
4135
- ] }) : null;
4136
- }, Gi = 10, Zi = () => {
4137
- const e = Se(), r = ne(
4138
- (s) => s.shareId
4139
- ), i = ne(
4140
- (s) => s.conversationsLoadingState
4141
- ), n = ce(), t = ne(
4142
- (s) => Object.keys(s.conversations || {})
4143
- ), o = we(
4144
- (s) => {
4145
- clearTimeout(e.current), no(s).then((u) => {
4146
- console.log("useConversations", u), n(Fr(u == null ? void 0 : u.dbt_docs_share_conversations)), e.current = setTimeout(() => {
4147
- o(s);
4148
- }, Gi * 1e3);
4149
- }).catch((u) => console.error("error while fetching conversations list", u)).finally(() => {
4150
- n($t(ae.INITIALIZED));
4151
- });
4152
- },
4153
- [n]
4154
- );
4155
- return le(() => {
4156
- i !== ae.UNINITIALIZED || !r || (n($t(ae.LOADING)), o(r));
4157
- }, [n, i, t, r, o]), { isLoading: i === ae.LOADING };
4158
- }, Qi = () => {
4159
- const e = ce(), r = ne(
4160
- (t) => Object.keys(t.users || {})
4161
- ), [i, n] = re(ae.UNINITIALIZED);
4162
- return le(() => {
4163
- i !== ae.UNINITIALIZED || Object.keys(r).length || (n(ae.LOADING), ro().then((t) => {
4164
- console.log("useConversationUsers", t), e(Pr(t));
4165
- }).catch((t) => console.error("error while fetching users list", t)).finally(() => {
4166
- n(ae.INITIALIZED);
4167
- }));
4168
- }, [e, i, r]), { isLoading: i === ae.LOADING };
4169
- }, Ji = () => (Qi(), Zi(), /* @__PURE__ */ h.jsxs("div", { children: [
4170
- /* @__PURE__ */ h.jsx(Ki, {}),
4171
- /* @__PURE__ */ h.jsx(uo, {})
4172
- ] })), qn = ({ target: e, ...r }) => bt(
4173
- /* @__PURE__ */ h.jsx(Ie, { className: me.hotspotButton, title: "Click to start conversation", ...r, children: /* @__PURE__ */ h.jsx(dn, {}) }),
4174
- e
4175
- ), es = () => {
4176
- var l;
4177
- const e = ce(), r = ne(
4178
- (d) => d.codeblockLoaded
4179
- ), i = ne((d) => d.manifest), [n, t] = re(0), o = (l = _t()) == null ? void 0 : l.parentElement, s = () => {
4180
- var f;
4181
- if (!o || !i.nodes)
4182
- return;
4183
- const d = At();
4184
- if (!d || d.length < 3) {
4185
- console.error("Unable to find model parts", d);
4186
- return;
4187
- }
4188
- const c = {
4189
- highlight: ((f = i.nodes[d[2]]) == null ? void 0 : f.raw_code).split(`
4190
- `)[n],
4191
- range: {
4192
- end: { line: n, character: 0 },
4193
- start: { line: n, character: 0 }
4194
- }
4195
- };
4196
- e(Dt({ meta: c }));
4197
- }, u = we(
4198
- (d) => {
4199
- if (!o)
4200
- return;
4201
- const a = d.y, c = o.querySelectorAll(".line-numbers-rows > span"), f = Array.from(c).findIndex((g) => {
4202
- const { height: p, y: m } = g.getBoundingClientRect();
4203
- return a >= m && a <= m + p;
4204
- });
4205
- t(f);
4206
- },
4207
- [o]
4208
- );
4209
- return le(() => {
4210
- if (!(!r || !o))
4211
- return o.addEventListener("mousemove", u), () => {
4212
- o.removeEventListener("mousemove", u);
4213
- };
4214
- }, [r, o, u]), !r || !o ? null : /* @__PURE__ */ h.jsx(qn, { target: o, onClick: s, style: { top: n * 21.2 } });
4215
- }, ts = () => {
4216
- const e = ce(), r = ne(
4217
- (t) => t.codeblockLoaded
4218
- ), i = Tt(), n = () => {
4219
- const t = {
4220
- field: "description",
4221
- highlight: i == null ? void 0 : i.innerText
4222
- };
4223
- e(Dt({ meta: t }));
4224
- };
4225
- return !r || !i ? null : /* @__PURE__ */ h.jsx(qn, { target: i, onClick: n });
4226
- }, ns = () => /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
4227
- /* @__PURE__ */ h.jsx(ts, {}),
4228
- /* @__PURE__ */ h.jsx(es, {})
4229
- ] }), rs = mr(() => import("./DbtDocsRenderer.js")), os = () => {
4230
- const { loading: e, shareDetails: r } = io(), i = ce(), { getHighlightedSelectionData: n, pos: t, onSelectionEnd: o } = so(), s = (u) => {
4231
- u.stopPropagation();
4232
- const l = n();
4233
- l && i(Dt(l));
4234
- };
4235
- return e ? /* @__PURE__ */ h.jsx("div", { children: "Loading..." }) : !(r != null && r.catalog_presigned_url) || !(r != null && r.manifest_presigned_url) ? /* @__PURE__ */ h.jsx("div", { children: "Unable to load required artifacts. Please try again." }) : /* @__PURE__ */ h.jsxs("div", { children: [
4236
- /* @__PURE__ */ h.jsxs(oe, { direction: "row", justify: "end", className: "mb-2", children: [
4237
- /* @__PURE__ */ h.jsx(ns, {}),
4238
- /* @__PURE__ */ h.jsx(Qr, {})
4239
- ] }),
4240
- /* @__PURE__ */ h.jsx(Ji, {}),
4241
- /* @__PURE__ */ h.jsx(rs, { shareDetails: r, onSelectionEnd: o }),
4242
- t ? /* @__PURE__ */ h.jsx(Zr, { pos: t, onAddComment: s }) : null
4243
- ] });
4244
- }, xs = ({ shareId: e, userId: r, conversationGroupId: i, source: n }) => /* @__PURE__ */ h.jsx("div", { className: "altimate-component", children: /* @__PURE__ */ h.jsx(
4245
- Br,
4246
- {
4247
- shareId: e,
4248
- userId: r,
4249
- conversationGroupId: i,
4250
- source: n,
4251
- children: /* @__PURE__ */ h.jsx(os, {})
4252
- }
4253
- ) }), zn = {
4254
- showCoachingForm: !1
4255
- }, Et = ln({
4256
- name: "teamMate",
4257
- initialState: zn,
4258
- reducers: {
4259
- setShowCoachingForm: (e, r) => {
4260
- e.showCoachingForm = r.payload;
4261
- }
4262
- }
4263
- }), is = Et.actions, Vn = _e({
4264
- state: zn,
4265
- dispatch: () => null
4266
- }), Os = ({ children: e }) => {
4267
- const [r, i] = fn(Et.reducer, Et.getInitialState()), n = fe(
4268
- () => ({
4269
- state: r,
4270
- dispatch: i
4271
- }),
4272
- [r, i]
4273
- );
4274
- return /* @__PURE__ */ h.jsx(Vn.Provider, { value: n, children: e });
4275
- }, ss = (e) => /* @__PURE__ */ te.createElement("svg", { width: 131, height: 131, viewBox: "0 0 131 131", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ te.createElement("path", { d: "M65 130C100.899 130 130 100.899 130 65C130 29.1015 100.899 0 65 0C29.1015 0 0 29.1015 0 65C0 100.899 29.1015 130 65 130Z", fill: "#EAEEF9" }), /* @__PURE__ */ te.createElement("mask", { id: "mask0_3506_13710", style: {
4276
- maskType: "alpha"
4277
- }, maskUnits: "userSpaceOnUse", x: -1, y: -1, width: 132, height: 132 }, /* @__PURE__ */ te.createElement("path", { d: "M65 130C100.899 130 130 100.899 130 65C130 29.1015 100.899 0 65 0C29.1015 0 0 29.1015 0 65C0 100.899 29.1015 130 65 130Z", fill: "#F1F3F9", stroke: "#D6DCE8", strokeWidth: 2, strokeMiterlimit: 10 })), /* @__PURE__ */ te.createElement("g", { mask: "url(#mask0_3506_13710)" }, /* @__PURE__ */ te.createElement("g", { filter: "url(#filter0_d_3506_13710)" }, /* @__PURE__ */ te.createElement("path", { d: "M110.116 47.3781L111.286 125.57C111.286 128.145 109.179 130.252 106.37 130.252H30.051C27.4758 130.252 25.1348 128.145 25.1348 125.57V25.138C25.1348 22.5628 27.2417 20.4559 30.051 20.4559H85.3002L110.116 47.3781Z", fill: "url(#paint0_linear_3506_13710)" })), /* @__PURE__ */ te.createElement("path", { d: "M85.3008 20.4559V41.9937C85.3008 45.0371 87.876 47.3782 90.9193 47.3782H110.116", fill: "#D5DDEA" })), /* @__PURE__ */ te.createElement("path", { d: "M119.221 27.592L120.664 26.951C121.144 26.7908 121.144 26.1498 120.664 25.9896L119.221 25.3486C117.459 24.5475 116.017 23.1053 115.215 21.3427L114.575 19.9006C114.414 19.4199 113.773 19.4199 113.613 19.9006L112.972 21.3427C112.171 23.1053 110.729 24.5475 108.966 25.3486L107.524 25.9896C107.043 26.1498 107.043 26.7908 107.524 26.951L108.966 27.592C110.729 28.3931 112.171 29.8353 112.972 31.5979L113.613 33.04C113.773 33.5207 114.414 33.5207 114.575 33.04L115.215 31.5979C115.856 29.8353 117.299 28.3931 119.221 27.592Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M103.678 18.4585L104.64 17.9777C104.96 17.8175 104.96 17.497 104.64 17.3368L103.678 17.0163C102.397 16.5356 101.435 15.5742 100.954 14.2923L100.474 13.3309C100.313 13.0104 99.993 13.0104 99.8327 13.3309L99.5123 14.2923C98.8713 15.5742 97.9099 16.5356 96.7882 17.0163L95.6666 17.497C95.5063 17.497 95.5063 17.9777 95.6666 17.9777L96.628 18.4585C97.9099 18.9392 98.8713 19.9006 99.5123 21.1825L99.993 22.1439C100.153 22.4644 100.474 22.4644 100.634 22.1439L100.954 21.1825C101.435 19.9006 102.397 18.9392 103.678 18.4585Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M116.016 9.16483L116.817 8.84435C116.978 8.68412 116.978 8.52388 116.817 8.36364L116.016 8.04317C115.055 7.7227 114.414 6.92151 113.933 5.96009L113.613 5.1589C113.452 4.99867 113.292 4.99867 113.132 5.1589L112.811 5.96009C112.491 6.92151 111.69 7.56246 110.728 8.04317L110.248 8.36364C109.927 8.52388 109.927 8.84435 110.248 8.84435L111.049 9.16483C112.01 9.4853 112.651 10.2865 113.132 11.2479L113.452 12.0491C113.613 12.2093 113.773 12.2093 113.933 12.0491L114.254 11.2479C114.414 10.2865 115.215 9.4853 116.016 9.16483Z", fill: "#989FB0" }), /* @__PURE__ */ te.createElement("path", { d: "M53.7864 71.8552C50.2113 71.8552 47.2082 69.5695 46.0642 66.2838C45.7782 65.5695 46.2072 64.8552 46.9222 64.5695C47.6372 64.2838 48.3523 64.7124 48.6383 65.4266C49.3533 67.5695 51.4983 69.1409 53.7864 69.1409C56.0744 69.1409 58.2195 67.7124 58.9345 65.4266C59.2205 64.7124 59.9355 64.2838 60.6506 64.5695C61.3656 64.8552 61.7946 65.5695 61.5086 66.2838C60.3646 69.7124 57.3615 71.8552 53.7864 71.8552Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("path", { d: "M75.3801 71.8552C71.805 71.8552 68.802 69.5695 67.6579 66.2838C67.3719 65.5695 67.8009 64.8552 68.516 64.5695C69.231 64.2838 69.946 64.7124 70.232 65.4266C70.947 67.5695 73.0921 69.1409 75.3801 69.1409C77.6682 69.1409 79.8133 67.7124 80.5283 65.4266C80.8143 64.7124 81.5293 64.2838 82.2443 64.5695C82.9593 64.8552 83.3883 65.5695 83.1023 66.2838C81.9583 69.7124 78.9552 71.8552 75.3801 71.8552Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("path", { d: "M64.6548 89.3467C66.4713 89.3467 67.9439 87.8756 67.9439 86.061C67.9439 84.2463 66.4713 82.7752 64.6548 82.7752C62.8383 82.7752 61.3657 84.2463 61.3657 86.061C61.3657 87.8756 62.8383 89.3467 64.6548 89.3467Z", fill: "#ADB6C8" }), /* @__PURE__ */ te.createElement("defs", null, /* @__PURE__ */ te.createElement("filter", { id: "filter0_d_3506_13710", x: 3.13477, y: 9.45586, width: 130.151, height: 153.796, filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" }, /* @__PURE__ */ te.createElement("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }), /* @__PURE__ */ te.createElement("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), /* @__PURE__ */ te.createElement("feOffset", { dy: 11 }), /* @__PURE__ */ te.createElement("feGaussianBlur", { stdDeviation: 11 }), /* @__PURE__ */ te.createElement("feColorMatrix", { type: "matrix", values: "0 0 0 0 0.397708 0 0 0 0 0.47749 0 0 0 0 0.575 0 0 0 0.27 0" }), /* @__PURE__ */ te.createElement("feBlend", { mode: "normal", in2: "BackgroundImageFix", result: "effect1_dropShadow_3506_13710" }), /* @__PURE__ */ te.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_3506_13710", result: "shape" })), /* @__PURE__ */ te.createElement("linearGradient", { id: "paint0_linear_3506_13710", x1: 68.1823, y1: 17.9162, x2: 68.1823, y2: 131.436, gradientUnits: "userSpaceOnUse" }, /* @__PURE__ */ te.createElement("stop", { stopColor: "#FDFEFF" }), /* @__PURE__ */ te.createElement("stop", { offset: 0.9964, stopColor: "#ECF0F5" })))), as = () => {
4278
- const e = be(Vn);
4279
- if (e === void 0)
4280
- throw new Error("useTeamMateContext must be used within a TeamMateProvider");
4281
- return e;
4282
- }, Ds = () => {
4283
- const { dispatch: e } = as(), r = () => {
4284
- e(is.setShowCoachingForm(!0));
4285
- };
4286
- return /* @__PURE__ */ h.jsx(Ie, { title: "Show Coaching Form", onClick: r, children: "Show Coaching Form" });
4287
- }, us = ({ learning: e, afterDelete: r, toggle: i, openId: n }) => {
4288
- const [t, o] = re(!1), {
4289
- register: s,
4290
- handleSubmit: u,
4291
- formState: { errors: l, isValid: d, isSubmitting: a },
4292
- watch: c,
4293
- setValue: f
4294
- } = yr({
4295
- defaultValues: e,
4296
- resolver: Gn(Zn)
4297
- }), g = c(), p = async (E) => {
4298
- await ve.post(`coach/training/${e.train_doc_uid}`, E, {
4299
- method: "PUT"
4300
- }), o(!1);
4301
- }, m = async () => await ve.post(
4302
- `coach/training/${e.train_doc_uid}`,
4303
- {},
4304
- { method: "DELETE" }
4305
- ), { loading: v, error: y, mutate: C } = cn({
4306
- queryFn: m,
4307
- onSuccess: r
4308
- }), S = (E) => {
4309
- E == null || E.stopPropagation();
4310
- }, T = () => {
4311
- S(), C();
4312
- }, b = (E) => {
4313
- S(E), o(!1);
4314
- }, D = (E) => {
4315
- S(E), i(e.train_doc_uid), o(!0);
4316
- }, O = n === e.train_doc_uid;
4317
- return /* @__PURE__ */ h.jsx($e, { className: O ? "al-border-blue-500" : "", children: /* @__PURE__ */ h.jsxs("form", { onSubmit: u(p), children: [
4318
- /* @__PURE__ */ h.jsx(rr, { children: /* @__PURE__ */ h.jsxs(oe, { align: "start", children: [
4319
- /* @__PURE__ */ h.jsxs("div", { className: "al-flex-1", children: [
4320
- /* @__PURE__ */ h.jsx("div", { children: t ? /* @__PURE__ */ h.jsxs(Mt, { children: [
4321
- /* @__PURE__ */ h.jsx(
4322
- or,
4323
- {
4324
- ...s("content"),
4325
- placeholder: "Enter your coaching feedback here...",
4326
- invalid: !!l.content,
4327
- onClick: S,
4328
- style: { fieldSizing: "content" }
4329
- }
4330
- ),
4331
- l.content ? /* @__PURE__ */ h.jsx(br, { children: l.content.message }) : null
4332
- ] }) : /* @__PURE__ */ h.jsx(ft, { className: O ? "" : "lines-2", children: g.content }) }),
4333
- /* @__PURE__ */ h.jsx(oe, { children: /* @__PURE__ */ h.jsxs("dl", { children: [
4334
- /* @__PURE__ */ h.jsxs(oe, { children: [
4335
- /* @__PURE__ */ h.jsx("dt", { children: "Created on:" }),
4336
- /* @__PURE__ */ h.jsx("dd", { children: dt(e.createdDate).format("MMMM D, YYYY h:mm A") })
4337
- ] }),
4338
- /* @__PURE__ */ h.jsxs(oe, { children: [
4339
- /* @__PURE__ */ h.jsx("dt", { children: "Updated on:" }),
4340
- /* @__PURE__ */ h.jsxs("dd", { children: [
4341
- dt(e.updatedDate).format("MMMM D, YYYY h:mm A"),
4342
- " "
4343
- ] })
4344
- ] }),
4345
- /* @__PURE__ */ h.jsxs(oe, { children: [
4346
- /* @__PURE__ */ h.jsx("dt", { children: "Created by:" }),
4347
- " ",
4348
- /* @__PURE__ */ h.jsx("dd", { children: e.display_name })
4349
- ] })
4350
- ] }) })
4351
- ] }),
4352
- /* @__PURE__ */ h.jsxs(oe, { className: "align-items-top gap-0", children: [
4353
- /* @__PURE__ */ h.jsx(Mt, { className: "al-mt-2", children: /* @__PURE__ */ h.jsx(
4354
- ir,
4355
- {
4356
- title: g.isActive ? "Disable this learning" : "Enable this learning",
4357
- children: /* @__PURE__ */ h.jsx("span", { children: /* @__PURE__ */ h.jsx(
4358
- Sr,
4359
- {
4360
- id: `toggle-${e.train_doc_uid}`,
4361
- checked: g.isActive,
4362
- onCheckedChange: (E) => {
4363
- f("isActive", E), u(p)();
4364
- }
4365
- }
4366
- ) })
4367
- }
4368
- ) }),
4369
- /* @__PURE__ */ h.jsx(
4370
- Wn,
4371
- {
4372
- title: "Delete the task",
4373
- description: "Are you sure to delete this task?",
4374
- onConfirm: T,
4375
- onCancel: S,
4376
- okText: "Yes",
4377
- cancelText: "No",
4378
- children: /* @__PURE__ */ h.jsx(
4379
- Ie,
4380
- {
4381
- title: "Delete this learning",
4382
- className: "pt-1 pb-0",
4383
- disabled: v,
4384
- onClick: S,
4385
- children: /* @__PURE__ */ h.jsx(cr, {})
4386
- }
4387
- )
4388
- }
4389
- ),
4390
- t ? /* @__PURE__ */ h.jsxs(oe, { className: "align-items-baseline", children: [
4391
- /* @__PURE__ */ h.jsx(ye, { onClick: b, variant: "outline", size: "sm", children: "Cancel" }),
4392
- /* @__PURE__ */ h.jsx(ye, { size: "sm", disabled: a || !d, type: "submit", children: "Save" })
4393
- ] }) : /* @__PURE__ */ h.jsx(Ie, { title: "Edit this learning", onClick: D, children: /* @__PURE__ */ h.jsx(dr, {}) }),
4394
- /* @__PURE__ */ h.jsx(
4395
- Ie,
4396
- {
4397
- title: O ? "Collapse" : "Expand",
4398
- onClick: () => i(e.train_doc_uid),
4399
- children: O ? /* @__PURE__ */ h.jsx(fr, {}) : /* @__PURE__ */ h.jsx(pr, {})
4400
- }
4401
- )
4402
- ] })
4403
- ] }) }),
4404
- /* @__PURE__ */ h.jsx(Yn, { isOpen: O, children: /* @__PURE__ */ h.jsxs(He, { children: [
4405
- y && /* @__PURE__ */ h.jsx(gn, { color: "danger", children: y.message }),
4406
- /* @__PURE__ */ h.jsxs(oe, { className: "gap-4", children: [
4407
- /* @__PURE__ */ h.jsxs("div", { children: [
4408
- /* @__PURE__ */ h.jsx("strong", { children: "Category:" }),
4409
- " ",
4410
- t ? /* @__PURE__ */ h.jsx(
4411
- Lt,
4412
- {
4413
- style: { minWidth: 160 },
4414
- options: Object.values(Xn).map((E) => ({
4415
- value: E,
4416
- label: E
4417
- })),
4418
- value: g.category,
4419
- onChange: (E) => {
4420
- f("category", E);
4421
- }
4422
- }
4423
- ) : e.category
4424
- ] }),
4425
- /* @__PURE__ */ h.jsxs("div", { children: [
4426
- /* @__PURE__ */ h.jsx("strong", { children: "Task Label:" }),
4427
- " ",
4428
- e.taskLabel
4429
- ] }),
4430
- /* @__PURE__ */ h.jsxs("div", { children: [
4431
- /* @__PURE__ */ h.jsx("strong", { children: "Personalization Scope:" }),
4432
- " ",
4433
- t ? /* @__PURE__ */ h.jsx(
4434
- Lt,
4435
- {
4436
- style: { minWidth: 100 },
4437
- options: Object.values(Kn).map((E) => ({
4438
- value: E,
4439
- label: E
4440
- })),
4441
- value: g.personalizationScope,
4442
- onChange: (E) => {
4443
- f("personalizationScope", E);
4444
- }
4445
- }
4446
- ) : e.personalizationScope
4447
- ] }),
4448
- e.metadata && Object.keys(e.metadata).map((E) => {
4449
- var w;
4450
- return /* @__PURE__ */ h.jsxs("div", { children: [
4451
- /* @__PURE__ */ h.jsxs("strong", { children: [
4452
- E,
4453
- ":"
4454
- ] }),
4455
- " ",
4456
- /* @__PURE__ */ h.jsx(h.Fragment, { children: ((w = e.metadata) == null ? void 0 : w[E]) || "" })
4457
- ] }, E);
4458
- })
4459
- ] })
4460
- ] }) })
4461
- ] }) });
4462
- }, Rs = ({ filters: e, learning: r }) => {
4463
- var d;
4464
- const [i, n] = re(r), { error: t, data: o, loading: s, refetch: u } = tr({
4465
- queryFn: () => ve.get("coach/training", e),
4466
- enabled: !1
4467
- });
4468
- le(() => {
4469
- u();
4470
- }, []);
4471
- const l = (a) => {
4472
- n((c) => c === a ? void 0 : a);
4473
- };
4474
- return /* @__PURE__ */ h.jsx(oe, { direction: "column", className: "learnings", children: s ? /* @__PURE__ */ h.jsx("p", { children: "Loading learnings..." }) : t ? /* @__PURE__ */ h.jsxs(gn, { color: "danger", children: [
4475
- "Error loading learnings: ",
4476
- t.message
4477
- ] }) : (d = o == null ? void 0 : o.train_docs) != null && d.length ? /* @__PURE__ */ h.jsx(h.Fragment, { children: o.train_docs.map((a) => /* @__PURE__ */ h.jsx(
4478
- us,
4479
- {
4480
- learning: a,
4481
- afterDelete: u,
4482
- toggle: l,
4483
- openId: i
4484
- },
4485
- a.train_doc_uid
4486
- )) }) : /* @__PURE__ */ h.jsxs(oe, { direction: "column", className: "align-items-center", children: [
4487
- /* @__PURE__ */ h.jsx(ss, {}),
4488
- /* @__PURE__ */ h.jsx("h4", { children: "No learnings added yet!" })
4489
- ] }) });
4490
- }, ls = ({ config: e, client: r, onSelect: i }) => {
4491
- const n = async () => await i(e, rt.REQUEST_ACCESS), { loading: t, mutate: o, data: s } = cn({
4492
- queryFn: n
4493
- }), u = typeof e.comingSoon == "function" ? e.comingSoon() : e.comingSoon;
4494
- return /* @__PURE__ */ h.jsx(oe, { direction: "column", children: /* @__PURE__ */ h.jsx($e, { children: /* @__PURE__ */ h.jsxs(He, { className: "al-pt-4", children: [
4495
- /* @__PURE__ */ h.jsxs(oe, { justify: "between", align: "center", className: "al-mb-2", children: [
4496
- /* @__PURE__ */ h.jsx("img", { alt: "Teammate", src: e.avatar, className: "al-w-16 al-h-16 al-rounded" }),
4497
- /* @__PURE__ */ h.jsxs("div", { className: "al-ml-2 al-mt-2", children: [
4498
- /* @__PURE__ */ h.jsx(ft, { variant: "subheading", children: e.name }),
4499
- /* @__PURE__ */ h.jsx(ft, { children: e.description })
4500
- ] })
4501
- ] }),
4502
- /* @__PURE__ */ h.jsxs(oe, { justify: "between", align: "center", children: [
4503
- /* @__PURE__ */ h.jsxs(oe, { justify: "start", align: "center", children: [
4504
- u ? /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
4505
- /* @__PURE__ */ h.jsx(
4506
- un,
4507
- {
4508
- size: "sm",
4509
- className: "al-cursor-pointer",
4510
- onClick: () => o(),
4511
- color: "primary",
4512
- loading: t,
4513
- disabled: !!s,
4514
- children: "Request Access"
4515
- }
4516
- ),
4517
- s ? /* @__PURE__ */ h.jsx("p", { className: "al-m-0", children: "Our team will reach out soon" }) : null
4518
- ] }) : /* @__PURE__ */ h.jsx(
4519
- ye,
4520
- {
4521
- size: "sm",
4522
- className: "al-cursor-pointer",
4523
- onClick: () => i(e, rt.VIEW_DETAILS),
4524
- children: "View details"
4525
- }
4526
- ),
4527
- e.seeInAction && e.availability.includes(Qn[r]) && /* @__PURE__ */ h.jsx(
4528
- ye,
4529
- {
4530
- variant: "outline",
4531
- size: "sm",
4532
- className: "al-cursor-pointer",
4533
- onClick: () => i(e, rt.SEE_IN_ACTION),
4534
- children: "See in action"
4535
- }
4536
- )
4537
- ] }),
4538
- e.availability.map((l) => /* @__PURE__ */ h.jsxs(Cr, { variant: "success", className: l, children: [
4539
- u ? "Coming soon" : "Available",
4540
- " in ",
4541
- l
4542
- ] }, l))
4543
- ] })
4544
- ] }) }) });
4545
- }, ws = ({ onSelect: e, client: r }) => /* @__PURE__ */ h.jsx("div", { className: "teammates", children: /* @__PURE__ */ h.jsx("div", { className: "al-grid al-grid-cols-1 md:al-grid-cols-2 lg:al-grid-cols-3 al-gap-4", children: Jn.map((i) => /* @__PURE__ */ h.jsx(ls, { config: i, client: r, onSelect: e }, i.name)) }) });
4546
- export {
4547
- Ct as C,
4548
- xs as D,
4549
- Rs as L,
4550
- Os as T,
4551
- ne as a,
4552
- As as b,
4553
- Ts as c,
4554
- ys as d,
4555
- _t as e,
4556
- me as f,
4557
- _r as g,
4558
- $n as h,
4559
- Wi as i,
4560
- Ds as j,
4561
- as as k,
4562
- is as l,
4563
- ws as m,
4564
- _s as s,
4565
- ce as u
4566
- };