@glodon-aiot/agent-cli-ui 3.2.2-beta.3 → 3.2.2-beta.4

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 (402) hide show
  1. package/dist/es/AgentClientUI.mjs +3 -4
  2. package/dist/es/Dialog/AgentChat/index.mjs +141 -141
  3. package/dist/es/Dialog/ConnectToNetwork/index.mjs +2 -3
  4. package/dist/es/Dialog/FileCard/index.mjs +2 -3
  5. package/dist/es/Dialog/FilePreview/index.mjs +2 -3
  6. package/dist/es/Dialog/Greeting/index.mjs +2 -3
  7. package/dist/es/Dialog/HistoryContent/index.mjs +2 -3
  8. package/dist/es/Dialog/HistoryItem/index.mjs +29 -30
  9. package/dist/es/Dialog/KnowledgeDoc/index.mjs +2 -3
  10. package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +2 -3
  11. package/dist/es/Dialog/KnowledgeList/index.mjs +21 -22
  12. package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +1 -1
  13. package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +2 -3
  14. package/dist/es/Dialog/PromptManager/index.mjs +2 -3
  15. package/dist/es/Dialog/PromptSetting/index.mjs +2 -3
  16. package/dist/es/Dialog/Recommend/RecommendItem.mjs +3 -4
  17. package/dist/es/Dialog/Recommend/index.mjs +2 -3
  18. package/dist/es/Dialog/ReferCollapse/index.mjs +2 -3
  19. package/dist/es/Dialog/SearchReference/index.mjs +92 -55
  20. package/dist/es/Dialog/SessionAction/index.mjs +4 -5
  21. package/dist/es/Dialog/SessionList/index.mjs +3 -4
  22. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +2 -3
  23. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +2 -3
  24. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +2 -3
  25. package/dist/es/Dialog/SessionListDrawer/index.mjs +2 -3
  26. package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +2 -3
  27. package/dist/es/Dialog/SessionRefer/index.mjs +2 -3
  28. package/dist/es/Dialog/SessionRelated/index.mjs +2 -3
  29. package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +2 -3
  30. package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +2 -3
  31. package/dist/es/Dialog/UploadingPrompt/index.mjs +2 -3
  32. package/dist/es/Dialog/index.mjs +57 -58
  33. package/dist/es/FileItem/index.mjs +2 -3
  34. package/dist/es/Footer/FooterWarning.mjs +2 -3
  35. package/dist/es/Footer/index.mjs +2 -3
  36. package/dist/es/Iconfont/index.mjs +2 -2
  37. package/dist/es/InputProgress/index.mjs +2 -3
  38. package/dist/es/QuillEditor/index.mjs +4 -5
  39. package/dist/es/components/Copy/index.mjs +2 -3
  40. package/dist/es/components/JsonDisplay/index.mjs +2 -3
  41. package/dist/es/components/Markdown/ATag/index.mjs +1 -1
  42. package/dist/es/components/Markdown/Code/index.mjs +1 -1
  43. package/dist/es/components/Markdown/Image/index.mjs +20 -21
  44. package/dist/es/components/Markdown/Video/index.mjs +1 -1
  45. package/dist/es/components/Markdown/index.mjs +16 -17
  46. package/dist/es/components/WebLink/index.mjs +1 -1
  47. package/dist/es/constant.mjs +8 -2
  48. package/dist/es/index.mjs +60 -65
  49. package/dist/es/src/style.css +1 -0
  50. package/dist/es/src/style10.css +1 -0
  51. package/dist/es/src/style11.css +1 -0
  52. package/dist/es/src/style12.css +1 -0
  53. package/dist/es/src/style13.css +1 -0
  54. package/dist/es/src/style14.css +1 -0
  55. package/dist/es/src/style15.css +1 -0
  56. package/dist/es/src/style16.css +1 -0
  57. package/dist/es/src/style17.css +1 -0
  58. package/dist/es/src/style18.css +1 -0
  59. package/dist/es/src/style19.css +1 -0
  60. package/dist/es/src/style2.css +1 -0
  61. package/dist/es/src/style20.css +1 -0
  62. package/dist/es/src/style21.css +0 -0
  63. package/dist/es/src/style22.css +1 -0
  64. package/dist/es/src/style23.css +1 -0
  65. package/dist/es/src/style24.css +1 -0
  66. package/dist/es/src/style25.css +1 -0
  67. package/dist/es/src/style26.css +1 -0
  68. package/dist/es/src/style27.css +1 -0
  69. package/dist/es/src/style28.css +1 -0
  70. package/dist/es/src/style29.css +1 -0
  71. package/dist/es/src/style3.css +1 -0
  72. package/dist/es/src/style30.css +1 -0
  73. package/dist/es/src/style31.css +1 -0
  74. package/dist/es/src/style32.css +1 -0
  75. package/dist/es/src/style33.css +1 -0
  76. package/dist/es/src/style4.css +1 -0
  77. package/dist/es/src/style5.css +1 -0
  78. package/dist/es/src/style6.css +1 -0
  79. package/dist/es/src/style7.css +1 -0
  80. package/dist/es/src/style8.css +1 -0
  81. package/dist/es/src/style9.css +1 -0
  82. package/dist/lib/index.css +1 -0
  83. package/dist/lib/index.js +5 -311
  84. package/dist/src/Dialog/SearchReference/index.d.ts +7 -4
  85. package/dist/src/Iconfont/index.d.ts +0 -1
  86. package/dist/src/components/Markdown/ATag/index.d.ts +0 -1
  87. package/dist/src/components/Markdown/Code/index.d.ts +0 -1
  88. package/dist/src/components/Markdown/Image/index.d.ts +0 -1
  89. package/dist/src/components/Markdown/Video/index.d.ts +0 -1
  90. package/dist/src/types.d.ts +11 -2
  91. package/package.json +19 -6
  92. package/dist/es/Dialog/AgentChat/style.less.mjs +0 -4
  93. package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +0 -4
  94. package/dist/es/Dialog/FileCard/style.less.mjs +0 -4
  95. package/dist/es/Dialog/FilePreview/style.less.mjs +0 -4
  96. package/dist/es/Dialog/Greeting/style.less.mjs +0 -4
  97. package/dist/es/Dialog/HistoryContent/style.less.mjs +0 -4
  98. package/dist/es/Dialog/HistoryItem/style.less.mjs +0 -4
  99. package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +0 -4
  100. package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +0 -4
  101. package/dist/es/Dialog/KnowledgeList/style.less.mjs +0 -4
  102. package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +0 -4
  103. package/dist/es/Dialog/PromptManager/style.less.mjs +0 -4
  104. package/dist/es/Dialog/PromptSetting/style.less.mjs +0 -4
  105. package/dist/es/Dialog/Recommend/style.less.mjs +0 -4
  106. package/dist/es/Dialog/ReferCollapse/style.less.mjs +0 -4
  107. package/dist/es/Dialog/SearchReference/style.less.mjs +0 -4
  108. package/dist/es/Dialog/SessionAction/style.less.mjs +0 -4
  109. package/dist/es/Dialog/SessionList/style.less.mjs +0 -4
  110. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +0 -4
  111. package/dist/es/Dialog/SessionListDrawer/style.less.mjs +0 -4
  112. package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +0 -4
  113. package/dist/es/Dialog/SessionRefer/style.less.mjs +0 -4
  114. package/dist/es/Dialog/SessionRelated/style.less.mjs +0 -4
  115. package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +0 -4
  116. package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +0 -4
  117. package/dist/es/Dialog/UploadingPrompt/style.less.mjs +0 -4
  118. package/dist/es/Dialog/style.less.mjs +0 -4
  119. package/dist/es/FileItem/style.less.mjs +0 -4
  120. package/dist/es/Footer/style.less.mjs +0 -4
  121. package/dist/es/InputProgress/style.less.mjs +0 -4
  122. package/dist/es/QuillEditor/style.less.mjs +0 -4
  123. package/dist/es/_virtual/_cloneBuffer.mjs +0 -4
  124. package/dist/es/_virtual/_commonjsHelpers.mjs +0 -8
  125. package/dist/es/_virtual/_nodeUtil.mjs +0 -4
  126. package/dist/es/_virtual/index.mjs +0 -4
  127. package/dist/es/_virtual/isBuffer.mjs +0 -4
  128. package/dist/es/_virtual/jsx-runtime.mjs +0 -7
  129. package/dist/es/_virtual/jsx-runtime2.mjs +0 -4
  130. package/dist/es/_virtual/lib.mjs +0 -4
  131. package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +0 -4
  132. package/dist/es/_virtual/ua-parser.min.mjs +0 -4
  133. package/dist/es/components/Copy/style.less.mjs +0 -4
  134. package/dist/es/components/JsonDisplay/style.less.mjs +0 -4
  135. package/dist/es/components/Markdown/style.less.mjs +0 -4
  136. package/dist/es/favicon.ico +0 -0
  137. package/dist/es/favicon2.ico +0 -0
  138. package/dist/es/font/font_4108228_4w5nlhafpte.js +0 -1
  139. package/dist/es/font/font_4439177_0sppkcnqiqgs.js +0 -1
  140. package/dist/es/font/gos-font.js +0 -64
  141. package/dist/es/images/empty.svg +0 -40
  142. package/dist/es/images/loading.gif +0 -0
  143. package/dist/es/images/logo.png +0 -0
  144. package/dist/es/images/map-example.png +0 -0
  145. package/dist/es/images/sketch.png +0 -0
  146. package/dist/es/index.html +0 -43
  147. package/dist/es/logo192.png +0 -0
  148. package/dist/es/logo512.png +0 -0
  149. package/dist/es/manifest.json +0 -25
  150. package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +0 -13
  151. package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +0 -201
  152. package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +0 -1087
  153. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +0 -104
  154. package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +0 -568
  155. package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +0 -158
  156. package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +0 -847
  157. package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +0 -35
  158. package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +0 -226
  159. package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +0 -33
  160. package/dist/es/node_modules/ahooks/es/useKeyPress/index.mjs +0 -221
  161. package/dist/es/node_modules/ahooks/es/useLatest/index.mjs +0 -8
  162. package/dist/es/node_modules/ahooks/es/useMemoizedFn/index.mjs +0 -19
  163. package/dist/es/node_modules/ahooks/es/useRafState/index.mjs +0 -16
  164. package/dist/es/node_modules/ahooks/es/useSize/index.mjs +0 -34
  165. package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +0 -17
  166. package/dist/es/node_modules/ahooks/es/useUnmountedRef/index.mjs +0 -13
  167. package/dist/es/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +0 -27
  168. package/dist/es/node_modules/ahooks/es/utils/depsAreSame.mjs +0 -11
  169. package/dist/es/node_modules/ahooks/es/utils/depsEqual.mjs +0 -7
  170. package/dist/es/node_modules/ahooks/es/utils/domTarget.mjs +0 -13
  171. package/dist/es/node_modules/ahooks/es/utils/index.mjs +0 -12
  172. package/dist/es/node_modules/ahooks/es/utils/isAppleDevice.mjs +0 -5
  173. package/dist/es/node_modules/ahooks/es/utils/isBrowser.mjs +0 -5
  174. package/dist/es/node_modules/ahooks/es/utils/isDev.mjs +0 -5
  175. package/dist/es/node_modules/ahooks/es/utils/useDeepCompareWithTarget.mjs +0 -11
  176. package/dist/es/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +0 -7
  177. package/dist/es/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +0 -8
  178. package/dist/es/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +0 -7
  179. package/dist/es/node_modules/antd/es/calendar/locale/zh_CN.mjs +0 -4
  180. package/dist/es/node_modules/antd/es/date-picker/locale/zh_CN.mjs +0 -23
  181. package/dist/es/node_modules/antd/es/locale/zh_CN.mjs +0 -132
  182. package/dist/es/node_modules/antd/es/time-picker/locale/zh_CN.mjs +0 -8
  183. package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +0 -20
  184. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +0 -4
  185. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +0 -76
  186. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +0 -14
  187. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +0 -34
  188. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +0 -172
  189. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +0 -81
  190. package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +0 -5
  191. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +0 -4
  192. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +0 -84
  193. package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +0 -5
  194. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +0 -4
  195. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +0 -9
  196. package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +0 -4
  197. package/dist/es/node_modules/antd-mobile/es/global/index.mjs +0 -4
  198. package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +0 -141
  199. package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +0 -9
  200. package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +0 -7
  201. package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +0 -4
  202. package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +0 -9
  203. package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +0 -6
  204. package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +0 -22
  205. package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +0 -11
  206. package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +0 -12
  207. package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +0 -46
  208. package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +0 -12
  209. package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +0 -13
  210. package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +0 -52
  211. package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +0 -11
  212. package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +0 -10
  213. package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +0 -15
  214. package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +0 -6
  215. package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +0 -8
  216. package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +0 -54
  217. package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +0 -32
  218. package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +0 -11
  219. package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +0 -19
  220. package/dist/es/node_modules/classnames/index.mjs +0 -42
  221. package/dist/es/node_modules/comma-separated-tokens/index.mjs +0 -13
  222. package/dist/es/node_modules/copy-to-clipboard/index.mjs +0 -46
  223. package/dist/es/node_modules/devlop/lib/default.mjs +0 -5
  224. package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +0 -93
  225. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/create-h.mjs +0 -126
  226. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/index.mjs +0 -8
  227. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +0 -4
  228. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/index.mjs +0 -12
  229. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/aria.mjs +0 -61
  230. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/find.mjs +0 -33
  231. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/html.mjs +0 -368
  232. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/normalize.mjs +0 -6
  233. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/svg.mjs +0 -566
  234. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -7
  235. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -6
  236. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/create.mjs +0 -14
  237. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/defined-info.mjs +0 -36
  238. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/info.mjs +0 -28
  239. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/merge.mjs +0 -10
  240. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/schema.mjs +0 -21
  241. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/types.mjs +0 -15
  242. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xlink.mjs +0 -19
  243. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xml.mjs +0 -15
  244. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xmlns.mjs +0 -16
  245. package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +0 -16
  246. package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +0 -61
  247. package/dist/es/node_modules/hast-util-parse-selector/lib/index.mjs +0 -20
  248. package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +0 -223
  249. package/dist/es/node_modules/katex/dist/katex.min.css.mjs +0 -4
  250. package/dist/es/node_modules/katex/dist/katex.mjs +0 -11700
  251. package/dist/es/node_modules/lodash/_Hash.mjs +0 -22
  252. package/dist/es/node_modules/lodash/_ListCache.mjs +0 -22
  253. package/dist/es/node_modules/lodash/_Map.mjs +0 -6
  254. package/dist/es/node_modules/lodash/_MapCache.mjs +0 -22
  255. package/dist/es/node_modules/lodash/_Stack.mjs +0 -20
  256. package/dist/es/node_modules/lodash/_Symbol.mjs +0 -5
  257. package/dist/es/node_modules/lodash/_Uint8Array.mjs +0 -5
  258. package/dist/es/node_modules/lodash/_apply.mjs +0 -17
  259. package/dist/es/node_modules/lodash/_arrayLikeKeys.mjs +0 -21
  260. package/dist/es/node_modules/lodash/_assignMergeValue.mjs +0 -10
  261. package/dist/es/node_modules/lodash/_assignValue.mjs +0 -11
  262. package/dist/es/node_modules/lodash/_assocIndexOf.mjs +0 -12
  263. package/dist/es/node_modules/lodash/_baseAssignValue.mjs +0 -14
  264. package/dist/es/node_modules/lodash/_baseCreate.mjs +0 -17
  265. package/dist/es/node_modules/lodash/_baseFor.mjs +0 -5
  266. package/dist/es/node_modules/lodash/_baseGetTag.mjs +0 -11
  267. package/dist/es/node_modules/lodash/_baseIsArguments.mjs +0 -10
  268. package/dist/es/node_modules/lodash/_baseIsNative.mjs +0 -15
  269. package/dist/es/node_modules/lodash/_baseIsTypedArray.mjs +0 -13
  270. package/dist/es/node_modules/lodash/_baseKeysIn.mjs +0 -16
  271. package/dist/es/node_modules/lodash/_baseMerge.mjs +0 -22
  272. package/dist/es/node_modules/lodash/_baseMergeDeep.mjs +0 -33
  273. package/dist/es/node_modules/lodash/_baseRest.mjs +0 -11
  274. package/dist/es/node_modules/lodash/_baseSetToString.mjs +0 -14
  275. package/dist/es/node_modules/lodash/_baseTimes.mjs +0 -9
  276. package/dist/es/node_modules/lodash/_baseTrim.mjs +0 -9
  277. package/dist/es/node_modules/lodash/_baseUnary.mjs +0 -9
  278. package/dist/es/node_modules/lodash/_cloneArrayBuffer.mjs +0 -10
  279. package/dist/es/node_modules/lodash/_cloneBuffer.mjs +0 -17
  280. package/dist/es/node_modules/lodash/_cloneTypedArray.mjs +0 -10
  281. package/dist/es/node_modules/lodash/_copyArray.mjs +0 -10
  282. package/dist/es/node_modules/lodash/_copyObject.mjs +0 -16
  283. package/dist/es/node_modules/lodash/_coreJsData.mjs +0 -5
  284. package/dist/es/node_modules/lodash/_createAssigner.mjs +0 -17
  285. package/dist/es/node_modules/lodash/_createBaseFor.mjs +0 -14
  286. package/dist/es/node_modules/lodash/_defineProperty.mjs +0 -11
  287. package/dist/es/node_modules/lodash/_freeGlobal.mjs +0 -5
  288. package/dist/es/node_modules/lodash/_getMapData.mjs +0 -10
  289. package/dist/es/node_modules/lodash/_getNative.mjs +0 -11
  290. package/dist/es/node_modules/lodash/_getPrototype.mjs +0 -5
  291. package/dist/es/node_modules/lodash/_getRawTag.mjs +0 -16
  292. package/dist/es/node_modules/lodash/_getValue.mjs +0 -7
  293. package/dist/es/node_modules/lodash/_hashClear.mjs +0 -9
  294. package/dist/es/node_modules/lodash/_hashDelete.mjs +0 -8
  295. package/dist/es/node_modules/lodash/_hashGet.mjs +0 -14
  296. package/dist/es/node_modules/lodash/_hashHas.mjs +0 -10
  297. package/dist/es/node_modules/lodash/_hashSet.mjs +0 -10
  298. package/dist/es/node_modules/lodash/_initCloneObject.mjs +0 -11
  299. package/dist/es/node_modules/lodash/_isIndex.mjs +0 -9
  300. package/dist/es/node_modules/lodash/_isIterateeCall.mjs +0 -15
  301. package/dist/es/node_modules/lodash/_isKeyable.mjs +0 -8
  302. package/dist/es/node_modules/lodash/_isMasked.mjs +0 -12
  303. package/dist/es/node_modules/lodash/_isPrototype.mjs +0 -9
  304. package/dist/es/node_modules/lodash/_listCacheClear.mjs +0 -7
  305. package/dist/es/node_modules/lodash/_listCacheDelete.mjs +0 -13
  306. package/dist/es/node_modules/lodash/_listCacheGet.mjs +0 -10
  307. package/dist/es/node_modules/lodash/_listCacheHas.mjs +0 -9
  308. package/dist/es/node_modules/lodash/_listCacheSet.mjs +0 -10
  309. package/dist/es/node_modules/lodash/_mapCacheClear.mjs +0 -15
  310. package/dist/es/node_modules/lodash/_mapCacheDelete.mjs +0 -10
  311. package/dist/es/node_modules/lodash/_mapCacheGet.mjs +0 -9
  312. package/dist/es/node_modules/lodash/_mapCacheHas.mjs +0 -9
  313. package/dist/es/node_modules/lodash/_mapCacheSet.mjs +0 -10
  314. package/dist/es/node_modules/lodash/_nativeCreate.mjs +0 -5
  315. package/dist/es/node_modules/lodash/_nativeKeysIn.mjs +0 -11
  316. package/dist/es/node_modules/lodash/_nodeUtil.mjs +0 -17
  317. package/dist/es/node_modules/lodash/_objectToString.mjs +0 -8
  318. package/dist/es/node_modules/lodash/_overArg.mjs +0 -9
  319. package/dist/es/node_modules/lodash/_overRest.mjs +0 -16
  320. package/dist/es/node_modules/lodash/_root.mjs +0 -5
  321. package/dist/es/node_modules/lodash/_safeGet.mjs +0 -8
  322. package/dist/es/node_modules/lodash/_setToString.mjs +0 -6
  323. package/dist/es/node_modules/lodash/_shortOut.mjs +0 -17
  324. package/dist/es/node_modules/lodash/_stackClear.mjs +0 -9
  325. package/dist/es/node_modules/lodash/_stackDelete.mjs +0 -8
  326. package/dist/es/node_modules/lodash/_stackGet.mjs +0 -7
  327. package/dist/es/node_modules/lodash/_stackHas.mjs +0 -7
  328. package/dist/es/node_modules/lodash/_stackSet.mjs +0 -18
  329. package/dist/es/node_modules/lodash/_toSource.mjs +0 -18
  330. package/dist/es/node_modules/lodash/_trimmedEndIndex.mjs +0 -10
  331. package/dist/es/node_modules/lodash/constant.mjs +0 -9
  332. package/dist/es/node_modules/lodash/debounce.mjs +0 -57
  333. package/dist/es/node_modules/lodash/eq.mjs +0 -7
  334. package/dist/es/node_modules/lodash/identity.mjs +0 -7
  335. package/dist/es/node_modules/lodash/isArguments.mjs +0 -10
  336. package/dist/es/node_modules/lodash/isArray.mjs +0 -4
  337. package/dist/es/node_modules/lodash/isArrayLike.mjs +0 -10
  338. package/dist/es/node_modules/lodash/isArrayLikeObject.mjs +0 -10
  339. package/dist/es/node_modules/lodash/isBuffer.mjs +0 -12
  340. package/dist/es/node_modules/lodash/isFunction.mjs +0 -13
  341. package/dist/es/node_modules/lodash/isLength.mjs +0 -8
  342. package/dist/es/node_modules/lodash/isObject.mjs +0 -8
  343. package/dist/es/node_modules/lodash/isObjectLike.mjs +0 -7
  344. package/dist/es/node_modules/lodash/isPlainObject.mjs +0 -17
  345. package/dist/es/node_modules/lodash/isSymbol.mjs +0 -10
  346. package/dist/es/node_modules/lodash/isTypedArray.mjs +0 -7
  347. package/dist/es/node_modules/lodash/keysIn.mjs +0 -11
  348. package/dist/es/node_modules/lodash/merge.mjs +0 -10
  349. package/dist/es/node_modules/lodash/now.mjs +0 -7
  350. package/dist/es/node_modules/lodash/stubFalse.mjs +0 -7
  351. package/dist/es/node_modules/lodash/toNumber.mjs +0 -23
  352. package/dist/es/node_modules/lodash/toPlainObject.mjs +0 -10
  353. package/dist/es/node_modules/longest-streak/index.mjs +0 -12
  354. package/dist/es/node_modules/mdast-util-math/lib/index.mjs +0 -170
  355. package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +0 -76
  356. package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +0 -48
  357. package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +0 -15
  358. package/dist/es/node_modules/micromark-factory-space/index.mjs +0 -15
  359. package/dist/es/node_modules/micromark-util-character/index.mjs +0 -10
  360. package/dist/es/node_modules/object-assign/index.mjs +0 -34
  361. package/dist/es/node_modules/rc-pagination/es/locale/zh_CN.mjs +0 -18
  362. package/dist/es/node_modules/rc-picker/es/locale/zh_CN.mjs +0 -31
  363. package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +0 -45
  364. package/dist/es/node_modules/react/jsx-runtime.mjs +0 -8
  365. package/dist/es/node_modules/react-device-detect/dist/lib.mjs +0 -723
  366. package/dist/es/node_modules/react-fast-compare/index.mjs +0 -78
  367. package/dist/es/node_modules/react-infinite-scroll-component/dist/index.es.mjs +0 -188
  368. package/dist/es/node_modules/react-quill/dist/quill.snow.css.mjs +0 -4
  369. package/dist/es/node_modules/rehype-katex/lib/index.mjs +0 -83
  370. package/dist/es/node_modules/remark-math/lib/index.mjs +0 -13
  371. package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +0 -294
  372. package/dist/es/node_modules/space-separated-tokens/index.mjs +0 -7
  373. package/dist/es/node_modules/toggle-selection/index.mjs +0 -25
  374. package/dist/es/node_modules/tslib/tslib.es6.mjs +0 -64
  375. package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +0 -120
  376. package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +0 -32
  377. package/dist/es/node_modules/unist-util-is/lib/index.mjs +0 -81
  378. package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +0 -6
  379. package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +0 -56
  380. package/dist/es/node_modules/web-namespaces/index.mjs +0 -11
  381. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/native.mjs +0 -4
  382. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/rng.mjs +0 -13
  383. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/stringify.mjs +0 -9
  384. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/v4.mjs +0 -23
  385. package/dist/es/robots.txt +0 -3
  386. package/dist/es/style.less.mjs +0 -4
  387. package/dist/lib/favicon.ico +0 -0
  388. package/dist/lib/favicon2.ico +0 -0
  389. package/dist/lib/font/font_4108228_4w5nlhafpte.js +0 -1
  390. package/dist/lib/font/font_4439177_0sppkcnqiqgs.js +0 -1
  391. package/dist/lib/font/gos-font.js +0 -64
  392. package/dist/lib/images/empty.svg +0 -40
  393. package/dist/lib/images/loading.gif +0 -0
  394. package/dist/lib/images/logo.png +0 -0
  395. package/dist/lib/images/map-example.png +0 -0
  396. package/dist/lib/images/sketch.png +0 -0
  397. package/dist/lib/index.html +0 -43
  398. package/dist/lib/logo192.png +0 -0
  399. package/dist/lib/logo512.png +0 -0
  400. package/dist/lib/manifest.json +0 -25
  401. package/dist/lib/robots.txt +0 -3
  402. /package/dist/es/{Dialog/HistoryItem → assets}/think.svg.mjs +0 -0
@@ -1,78 +0,0 @@
1
- import { getDefaultExportFromCjs as s } from "../../_virtual/_commonjsHelpers.mjs";
2
- var a = typeof Element != "undefined", c = typeof Map == "function", i = typeof Set == "function", l = typeof ArrayBuffer == "function" && !!ArrayBuffer.isView;
3
- function u(e, r) {
4
- if (e === r)
5
- return !0;
6
- if (e && r && typeof e == "object" && typeof r == "object") {
7
- if (e.constructor !== r.constructor)
8
- return !1;
9
- var f, t, n;
10
- if (Array.isArray(e)) {
11
- if (f = e.length, f != r.length)
12
- return !1;
13
- for (t = f; t-- !== 0; )
14
- if (!u(e[t], r[t]))
15
- return !1;
16
- return !0;
17
- }
18
- var o;
19
- if (c && e instanceof Map && r instanceof Map) {
20
- if (e.size !== r.size)
21
- return !1;
22
- for (o = e.entries(); !(t = o.next()).done; )
23
- if (!r.has(t.value[0]))
24
- return !1;
25
- for (o = e.entries(); !(t = o.next()).done; )
26
- if (!u(t.value[1], r.get(t.value[0])))
27
- return !1;
28
- return !0;
29
- }
30
- if (i && e instanceof Set && r instanceof Set) {
31
- if (e.size !== r.size)
32
- return !1;
33
- for (o = e.entries(); !(t = o.next()).done; )
34
- if (!r.has(t.value[0]))
35
- return !1;
36
- return !0;
37
- }
38
- if (l && ArrayBuffer.isView(e) && ArrayBuffer.isView(r)) {
39
- if (f = e.length, f != r.length)
40
- return !1;
41
- for (t = f; t-- !== 0; )
42
- if (e[t] !== r[t])
43
- return !1;
44
- return !0;
45
- }
46
- if (e.constructor === RegExp)
47
- return e.source === r.source && e.flags === r.flags;
48
- if (e.valueOf !== Object.prototype.valueOf && typeof e.valueOf == "function" && typeof r.valueOf == "function")
49
- return e.valueOf() === r.valueOf();
50
- if (e.toString !== Object.prototype.toString && typeof e.toString == "function" && typeof r.toString == "function")
51
- return e.toString() === r.toString();
52
- if (n = Object.keys(e), f = n.length, f !== Object.keys(r).length)
53
- return !1;
54
- for (t = f; t-- !== 0; )
55
- if (!Object.prototype.hasOwnProperty.call(r, n[t]))
56
- return !1;
57
- if (a && e instanceof Element)
58
- return !1;
59
- for (t = f; t-- !== 0; )
60
- if (!((n[t] === "_owner" || n[t] === "__v" || n[t] === "__o") && e.$$typeof) && !u(e[n[t]], r[n[t]]))
61
- return !1;
62
- return !0;
63
- }
64
- return e !== e && r !== r;
65
- }
66
- var p = function(r, f) {
67
- try {
68
- return u(r, f);
69
- } catch (t) {
70
- if ((t.message || "").match(/stack|recursion/i))
71
- return console.warn("react-fast-compare cannot handle circular refs"), !1;
72
- throw t;
73
- }
74
- };
75
- const v = /* @__PURE__ */ s(p);
76
- export {
77
- v as default
78
- };
@@ -1,188 +0,0 @@
1
- import h, { Component as T } from "react";
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation. All rights reserved.
4
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5
- this file except in compliance with the License. You may obtain a copy of the
6
- License at http://www.apache.org/licenses/LICENSE-2.0
7
-
8
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
10
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
11
- MERCHANTABLITY OR NON-INFRINGEMENT.
12
-
13
- See the Apache Version 2.0 License for specific language governing permissions
14
- and limitations under the License.
15
- ***************************************************************************** */
16
- var u = function(o, r) {
17
- return u = Object.setPrototypeOf || {
18
- __proto__: []
19
- } instanceof Array && function(t, e) {
20
- t.__proto__ = e;
21
- } || function(t, e) {
22
- for (var n in e)
23
- e.hasOwnProperty(n) && (t[n] = e[n]);
24
- }, u(o, r);
25
- };
26
- function S(o, r) {
27
- u(o, r);
28
- function t() {
29
- this.constructor = o;
30
- }
31
- o.prototype = r === null ? Object.create(r) : (t.prototype = r.prototype, new t());
32
- }
33
- var a = function() {
34
- return a = Object.assign || function(r) {
35
- for (var t, e = 1, n = arguments.length; e < n; e++) {
36
- t = arguments[e];
37
- for (var i in t)
38
- Object.prototype.hasOwnProperty.call(t, i) && (r[i] = t[i]);
39
- }
40
- return r;
41
- }, a.apply(this, arguments);
42
- };
43
- function _(o, r, t, e) {
44
- var n, i = !1, s = 0;
45
- function p() {
46
- n && clearTimeout(n);
47
- }
48
- function g() {
49
- p(), i = !0;
50
- }
51
- typeof r != "boolean" && (e = t, t = r, r = void 0);
52
- function f() {
53
- var w = this, d = Date.now() - s, E = arguments;
54
- if (i)
55
- return;
56
- function c() {
57
- s = Date.now(), t.apply(w, E);
58
- }
59
- function y() {
60
- n = void 0;
61
- }
62
- e && !n && c(), p(), e === void 0 && d > o ? c() : r !== !0 && (n = setTimeout(e ? y : c, e === void 0 ? o - d : o));
63
- }
64
- return f.cancel = g, f;
65
- }
66
- var l = {
67
- Pixel: "Pixel",
68
- Percent: "Percent"
69
- }, m = {
70
- unit: l.Percent,
71
- value: 0.8
72
- };
73
- function v(o) {
74
- return typeof o == "number" ? {
75
- unit: l.Percent,
76
- value: o * 100
77
- } : typeof o == "string" ? o.match(/^(\d*(\.\d+)?)px$/) ? {
78
- unit: l.Pixel,
79
- value: parseFloat(o)
80
- } : o.match(/^(\d*(\.\d+)?)%$/) ? {
81
- unit: l.Percent,
82
- value: parseFloat(o)
83
- } : (console.warn('scrollThreshold format is invalid. Valid formats: "120px", "50%"...'), m) : (console.warn("scrollThreshold should be string or number"), m);
84
- }
85
- var D = (
86
- /** @class */
87
- function(o) {
88
- S(r, o);
89
- function r(t) {
90
- var e = o.call(this, t) || this;
91
- return e.lastScrollTop = 0, e.actionTriggered = !1, e.startY = 0, e.currentY = 0, e.dragging = !1, e.maxPullDownDistance = 0, e.getScrollableTarget = function() {
92
- return e.props.scrollableTarget instanceof HTMLElement ? e.props.scrollableTarget : typeof e.props.scrollableTarget == "string" ? document.getElementById(e.props.scrollableTarget) : (e.props.scrollableTarget === null && console.warn(`You are trying to pass scrollableTarget but it is null. This might
93
- happen because the element may not have been added to DOM yet.
94
- See https://github.com/ankeetmaini/react-infinite-scroll-component/issues/59 for more info.
95
- `), null);
96
- }, e.onStart = function(n) {
97
- e.lastScrollTop || (e.dragging = !0, n instanceof MouseEvent ? e.startY = n.pageY : n instanceof TouchEvent && (e.startY = n.touches[0].pageY), e.currentY = e.startY, e._infScroll && (e._infScroll.style.willChange = "transform", e._infScroll.style.transition = "transform 0.2s cubic-bezier(0,0,0.31,1)"));
98
- }, e.onMove = function(n) {
99
- e.dragging && (n instanceof MouseEvent ? e.currentY = n.pageY : n instanceof TouchEvent && (e.currentY = n.touches[0].pageY), !(e.currentY < e.startY) && (e.currentY - e.startY >= Number(e.props.pullDownToRefreshThreshold) && e.setState({
100
- pullToRefreshThresholdBreached: !0
101
- }), !(e.currentY - e.startY > e.maxPullDownDistance * 1.5) && e._infScroll && (e._infScroll.style.overflow = "visible", e._infScroll.style.transform = "translate3d(0px, " + (e.currentY - e.startY) + "px, 0px)")));
102
- }, e.onEnd = function() {
103
- e.startY = 0, e.currentY = 0, e.dragging = !1, e.state.pullToRefreshThresholdBreached && (e.props.refreshFunction && e.props.refreshFunction(), e.setState({
104
- pullToRefreshThresholdBreached: !1
105
- })), requestAnimationFrame(function() {
106
- e._infScroll && (e._infScroll.style.overflow = "auto", e._infScroll.style.transform = "none", e._infScroll.style.willChange = "unset");
107
- });
108
- }, e.onScrollListener = function(n) {
109
- typeof e.props.onScroll == "function" && setTimeout(function() {
110
- return e.props.onScroll && e.props.onScroll(n);
111
- }, 0);
112
- var i = e.props.height || e._scrollableNode ? n.target : document.documentElement.scrollTop ? document.documentElement : document.body;
113
- if (!e.actionTriggered) {
114
- var s = e.props.inverse ? e.isElementAtTop(i, e.props.scrollThreshold) : e.isElementAtBottom(i, e.props.scrollThreshold);
115
- s && e.props.hasMore && (e.actionTriggered = !0, e.setState({
116
- showLoader: !0
117
- }), e.props.next && e.props.next()), e.lastScrollTop = i.scrollTop;
118
- }
119
- }, e.state = {
120
- showLoader: !1,
121
- pullToRefreshThresholdBreached: !1,
122
- prevDataLength: t.dataLength
123
- }, e.throttledOnScrollListener = _(150, e.onScrollListener).bind(e), e.onStart = e.onStart.bind(e), e.onMove = e.onMove.bind(e), e.onEnd = e.onEnd.bind(e), e;
124
- }
125
- return r.prototype.componentDidMount = function() {
126
- if (typeof this.props.dataLength == "undefined")
127
- throw new Error('mandatory prop "dataLength" is missing. The prop is needed when loading more content. Check README.md for usage');
128
- if (this._scrollableNode = this.getScrollableTarget(), this.el = this.props.height ? this._infScroll : this._scrollableNode || window, this.el && this.el.addEventListener("scroll", this.throttledOnScrollListener), typeof this.props.initialScrollY == "number" && this.el && this.el instanceof HTMLElement && this.el.scrollHeight > this.props.initialScrollY && this.el.scrollTo(0, this.props.initialScrollY), this.props.pullDownToRefresh && this.el && (this.el.addEventListener("touchstart", this.onStart), this.el.addEventListener("touchmove", this.onMove), this.el.addEventListener("touchend", this.onEnd), this.el.addEventListener("mousedown", this.onStart), this.el.addEventListener("mousemove", this.onMove), this.el.addEventListener("mouseup", this.onEnd), this.maxPullDownDistance = this._pullDown && this._pullDown.firstChild && this._pullDown.firstChild.getBoundingClientRect().height || 0, this.forceUpdate(), typeof this.props.refreshFunction != "function"))
129
- throw new Error(`Mandatory prop "refreshFunction" missing.
130
- Pull Down To Refresh functionality will not work
131
- as expected. Check README.md for usage'`);
132
- }, r.prototype.componentWillUnmount = function() {
133
- this.el && (this.el.removeEventListener("scroll", this.throttledOnScrollListener), this.props.pullDownToRefresh && (this.el.removeEventListener("touchstart", this.onStart), this.el.removeEventListener("touchmove", this.onMove), this.el.removeEventListener("touchend", this.onEnd), this.el.removeEventListener("mousedown", this.onStart), this.el.removeEventListener("mousemove", this.onMove), this.el.removeEventListener("mouseup", this.onEnd)));
134
- }, r.prototype.componentDidUpdate = function(t) {
135
- this.props.dataLength !== t.dataLength && (this.actionTriggered = !1, this.setState({
136
- showLoader: !1
137
- }));
138
- }, r.getDerivedStateFromProps = function(t, e) {
139
- var n = t.dataLength !== e.prevDataLength;
140
- return n ? a(a({}, e), {
141
- prevDataLength: t.dataLength
142
- }) : null;
143
- }, r.prototype.isElementAtTop = function(t, e) {
144
- e === void 0 && (e = 0.8);
145
- var n = t === document.body || t === document.documentElement ? window.screen.availHeight : t.clientHeight, i = v(e);
146
- return i.unit === l.Pixel ? t.scrollTop <= i.value + n - t.scrollHeight + 1 : t.scrollTop <= i.value / 100 + n - t.scrollHeight + 1;
147
- }, r.prototype.isElementAtBottom = function(t, e) {
148
- e === void 0 && (e = 0.8);
149
- var n = t === document.body || t === document.documentElement ? window.screen.availHeight : t.clientHeight, i = v(e);
150
- return i.unit === l.Pixel ? t.scrollTop + n >= t.scrollHeight - i.value : t.scrollTop + n >= i.value / 100 * t.scrollHeight;
151
- }, r.prototype.render = function() {
152
- var t = this, e = a({
153
- height: this.props.height || "auto",
154
- overflow: "auto",
155
- WebkitOverflowScrolling: "touch"
156
- }, this.props.style), n = this.props.hasChildren || !!(this.props.children && this.props.children instanceof Array && this.props.children.length), i = this.props.pullDownToRefresh && this.props.height ? {
157
- overflow: "auto"
158
- } : {};
159
- return h.createElement("div", {
160
- style: i,
161
- className: "infinite-scroll-component__outerdiv"
162
- }, h.createElement("div", {
163
- className: "infinite-scroll-component " + (this.props.className || ""),
164
- ref: function(s) {
165
- return t._infScroll = s;
166
- },
167
- style: e
168
- }, this.props.pullDownToRefresh && h.createElement("div", {
169
- style: {
170
- position: "relative"
171
- },
172
- ref: function(s) {
173
- return t._pullDown = s;
174
- }
175
- }, h.createElement("div", {
176
- style: {
177
- position: "absolute",
178
- left: 0,
179
- right: 0,
180
- top: -1 * this.maxPullDownDistance
181
- }
182
- }, this.state.pullToRefreshThresholdBreached ? this.props.releaseToRefreshContent : this.props.pullDownToRefreshContent)), this.props.children, !this.state.showLoader && !n && this.props.hasMore && this.props.loader, this.state.showLoader && this.props.hasMore && this.props.loader, !this.props.hasMore && this.props.endMessage));
183
- }, r;
184
- }(T)
185
- );
186
- export {
187
- D as default
188
- };
@@ -1,4 +0,0 @@
1
- const l = "";
2
- export {
3
- l as default
4
- };
@@ -1,83 +0,0 @@
1
- var S = Object.defineProperty, T = Object.defineProperties;
2
- var k = Object.getOwnPropertyDescriptors;
3
- var y = Object.getOwnPropertySymbols;
4
- var K = Object.prototype.hasOwnProperty, v = Object.prototype.propertyIsEnumerable;
5
- var x = (r, t, e) => t in r ? S(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e, h = (r, t) => {
6
- for (var e in t || (t = {}))
7
- K.call(t, e) && x(r, e, t[e]);
8
- if (y)
9
- for (var e of y(t))
10
- v.call(t, e) && x(r, e, t[e]);
11
- return r;
12
- }, u = (r, t) => T(r, k(t));
13
- import { fromHtmlIsomorphic as A } from "../../hast-util-from-html-isomorphic/lib/browser.mjs";
14
- import N from "../../katex/dist/katex.mjs";
15
- import { visitParents as E, SKIP as M } from "../../unist-util-visit-parents/lib/index.mjs";
16
- import { toText as P } from "../../hast-util-to-text/lib/index.mjs";
17
- const D = {}, H = [];
18
- function B(r) {
19
- const t = r || D;
20
- return function(e, w) {
21
- E(e, "element", function(n, a) {
22
- const i = Array.isArray(n.properties.className) ? n.properties.className : H, d = i.includes("language-math"), f = i.includes("math-display"), C = i.includes("math-inline");
23
- let c = f;
24
- if (!d && !f && !C)
25
- return;
26
- let o = a[a.length - 1], l = n;
27
- if (n.tagName === "code" && d && o && o.type === "element" && o.tagName === "pre" && (l = o, o = a[a.length - 2], c = !0), !o)
28
- return;
29
- const p = P(l, {
30
- whitespace: "pre"
31
- });
32
- let s;
33
- try {
34
- s = N.renderToString(p, u(h({}, t), {
35
- displayMode: c,
36
- throwOnError: !0
37
- }));
38
- } catch (m) {
39
- const g = (
40
- /** @type {Error} */
41
- m
42
- ), O = g.name.toLowerCase();
43
- w.message("Could not render math with KaTeX", {
44
- ancestors: [...a, n],
45
- cause: g,
46
- place: n.position,
47
- ruleId: O,
48
- source: "rehype-katex"
49
- });
50
- try {
51
- s = N.renderToString(p, u(h({}, t), {
52
- displayMode: c,
53
- strict: "ignore",
54
- throwOnError: !1
55
- }));
56
- } catch (L) {
57
- s = [{
58
- type: "element",
59
- tagName: "span",
60
- properties: {
61
- className: ["katex-error"],
62
- style: "color:" + (t.errorColor || "#cc0000"),
63
- title: String(m)
64
- },
65
- children: [{
66
- type: "text",
67
- value: p
68
- }]
69
- }];
70
- }
71
- }
72
- typeof s == "string" && (s = /** @type {Array<ElementContent>} */
73
- A(s, {
74
- fragment: !0
75
- }).children);
76
- const I = o.children.indexOf(l);
77
- return o.children.splice(I, 1, ...s), M;
78
- });
79
- };
80
- }
81
- export {
82
- B as default
83
- };
@@ -1,13 +0,0 @@
1
- import { math as i } from "../../micromark-extension-math/lib/syntax.mjs";
2
- import { mathFromMarkdown as e, mathToMarkdown as k } from "../../mdast-util-math/lib/index.mjs";
3
- const c = {};
4
- function E(t) {
5
- const s = (
6
- /** @type {Processor} */
7
- this
8
- ), n = t || c, o = s.data(), r = o.micromarkExtensions || (o.micromarkExtensions = []), a = o.fromMarkdownExtensions || (o.fromMarkdownExtensions = []), m = o.toMarkdownExtensions || (o.toMarkdownExtensions = []);
9
- r.push(i(n)), a.push(e()), m.push(k(n));
10
- }
11
- export {
12
- E as default
13
- };
@@ -1,294 +0,0 @@
1
- var _ = function() {
2
- if (typeof Map != "undefined")
3
- return Map;
4
- function e(t, n) {
5
- var r = -1;
6
- return t.some(function(i, o) {
7
- return i[0] === n ? (r = o, !0) : !1;
8
- }), r;
9
- }
10
- return (
11
- /** @class */
12
- function() {
13
- function t() {
14
- this.__entries__ = [];
15
- }
16
- return Object.defineProperty(t.prototype, "size", {
17
- /**
18
- * @returns {boolean}
19
- */
20
- get: function() {
21
- return this.__entries__.length;
22
- },
23
- enumerable: !0,
24
- configurable: !0
25
- }), t.prototype.get = function(n) {
26
- var r = e(this.__entries__, n), i = this.__entries__[r];
27
- return i && i[1];
28
- }, t.prototype.set = function(n, r) {
29
- var i = e(this.__entries__, n);
30
- ~i ? this.__entries__[i][1] = r : this.__entries__.push([n, r]);
31
- }, t.prototype.delete = function(n) {
32
- var r = this.__entries__, i = e(r, n);
33
- ~i && r.splice(i, 1);
34
- }, t.prototype.has = function(n) {
35
- return !!~e(this.__entries__, n);
36
- }, t.prototype.clear = function() {
37
- this.__entries__.splice(0);
38
- }, t.prototype.forEach = function(n, r) {
39
- r === void 0 && (r = null);
40
- for (var i = 0, o = this.__entries__; i < o.length; i++) {
41
- var s = o[i];
42
- n.call(r, s[1], s[0]);
43
- }
44
- }, t;
45
- }()
46
- );
47
- }(), v = typeof window != "undefined" && typeof document != "undefined" && window.document === document, f = function() {
48
- return typeof global != "undefined" && global.Math === Math ? global : typeof self != "undefined" && self.Math === Math ? self : typeof window != "undefined" && window.Math === Math ? window : Function("return this")();
49
- }(), O = function() {
50
- return typeof requestAnimationFrame == "function" ? requestAnimationFrame.bind(f) : function(e) {
51
- return setTimeout(function() {
52
- return e(Date.now());
53
- }, 1e3 / 60);
54
- };
55
- }(), E = 2;
56
- function R(e, t) {
57
- var n = !1, r = !1, i = 0;
58
- function o() {
59
- n && (n = !1, e()), r && a();
60
- }
61
- function s() {
62
- O(o);
63
- }
64
- function a() {
65
- var u = Date.now();
66
- if (n) {
67
- if (u - i < E)
68
- return;
69
- r = !0;
70
- } else
71
- n = !0, r = !1, setTimeout(s, t);
72
- i = u;
73
- }
74
- return a;
75
- }
76
- var M = 20, x = ["top", "right", "bottom", "left", "width", "height", "size", "weight"], A = typeof MutationObserver != "undefined", z = (
77
- /** @class */
78
- function() {
79
- function e() {
80
- this.connected_ = !1, this.mutationEventsAdded_ = !1, this.mutationsObserver_ = null, this.observers_ = [], this.onTransitionEnd_ = this.onTransitionEnd_.bind(this), this.refresh = R(this.refresh.bind(this), M);
81
- }
82
- return e.prototype.addObserver = function(t) {
83
- ~this.observers_.indexOf(t) || this.observers_.push(t), this.connected_ || this.connect_();
84
- }, e.prototype.removeObserver = function(t) {
85
- var n = this.observers_, r = n.indexOf(t);
86
- ~r && n.splice(r, 1), !n.length && this.connected_ && this.disconnect_();
87
- }, e.prototype.refresh = function() {
88
- var t = this.updateObservers_();
89
- t && this.refresh();
90
- }, e.prototype.updateObservers_ = function() {
91
- var t = this.observers_.filter(function(n) {
92
- return n.gatherActive(), n.hasActive();
93
- });
94
- return t.forEach(function(n) {
95
- return n.broadcastActive();
96
- }), t.length > 0;
97
- }, e.prototype.connect_ = function() {
98
- !v || this.connected_ || (document.addEventListener("transitionend", this.onTransitionEnd_), window.addEventListener("resize", this.refresh), A ? (this.mutationsObserver_ = new MutationObserver(this.refresh), this.mutationsObserver_.observe(document, {
99
- attributes: !0,
100
- childList: !0,
101
- characterData: !0,
102
- subtree: !0
103
- })) : (document.addEventListener("DOMSubtreeModified", this.refresh), this.mutationEventsAdded_ = !0), this.connected_ = !0);
104
- }, e.prototype.disconnect_ = function() {
105
- !v || !this.connected_ || (document.removeEventListener("transitionend", this.onTransitionEnd_), window.removeEventListener("resize", this.refresh), this.mutationsObserver_ && this.mutationsObserver_.disconnect(), this.mutationEventsAdded_ && document.removeEventListener("DOMSubtreeModified", this.refresh), this.mutationsObserver_ = null, this.mutationEventsAdded_ = !1, this.connected_ = !1);
106
- }, e.prototype.onTransitionEnd_ = function(t) {
107
- var n = t.propertyName, r = n === void 0 ? "" : n, i = x.some(function(o) {
108
- return !!~r.indexOf(o);
109
- });
110
- i && this.refresh();
111
- }, e.getInstance = function() {
112
- return this.instance_ || (this.instance_ = new e()), this.instance_;
113
- }, e.instance_ = null, e;
114
- }()
115
- ), m = function(e, t) {
116
- for (var n = 0, r = Object.keys(t); n < r.length; n++) {
117
- var i = r[n];
118
- Object.defineProperty(e, i, {
119
- value: t[i],
120
- enumerable: !1,
121
- writable: !1,
122
- configurable: !0
123
- });
124
- }
125
- return e;
126
- }, c = function(e) {
127
- var t = e && e.ownerDocument && e.ownerDocument.defaultView;
128
- return t || f;
129
- }, y = d(0, 0, 0, 0);
130
- function h(e) {
131
- return parseFloat(e) || 0;
132
- }
133
- function b(e) {
134
- for (var t = [], n = 1; n < arguments.length; n++)
135
- t[n - 1] = arguments[n];
136
- return t.reduce(function(r, i) {
137
- var o = e["border-" + i + "-width"];
138
- return r + h(o);
139
- }, 0);
140
- }
141
- function T(e) {
142
- for (var t = ["top", "right", "bottom", "left"], n = {}, r = 0, i = t; r < i.length; r++) {
143
- var o = i[r], s = e["padding-" + o];
144
- n[o] = h(s);
145
- }
146
- return n;
147
- }
148
- function C(e) {
149
- var t = e.getBBox();
150
- return d(0, 0, t.width, t.height);
151
- }
152
- function S(e) {
153
- var t = e.clientWidth, n = e.clientHeight;
154
- if (!t && !n)
155
- return y;
156
- var r = c(e).getComputedStyle(e), i = T(r), o = i.left + i.right, s = i.top + i.bottom, a = h(r.width), u = h(r.height);
157
- if (r.boxSizing === "border-box" && (Math.round(a + o) !== t && (a -= b(r, "left", "right") + o), Math.round(u + s) !== n && (u -= b(r, "top", "bottom") + s)), !G(e)) {
158
- var l = Math.round(a + o) - t, p = Math.round(u + s) - n;
159
- Math.abs(l) !== 1 && (a -= l), Math.abs(p) !== 1 && (u -= p);
160
- }
161
- return d(i.left, i.top, a, u);
162
- }
163
- var D = function() {
164
- return typeof SVGGraphicsElement != "undefined" ? function(e) {
165
- return e instanceof c(e).SVGGraphicsElement;
166
- } : function(e) {
167
- return e instanceof c(e).SVGElement && typeof e.getBBox == "function";
168
- };
169
- }();
170
- function G(e) {
171
- return e === c(e).document.documentElement;
172
- }
173
- function L(e) {
174
- return v ? D(e) ? C(e) : S(e) : y;
175
- }
176
- function P(e) {
177
- var t = e.x, n = e.y, r = e.width, i = e.height, o = typeof DOMRectReadOnly != "undefined" ? DOMRectReadOnly : Object, s = Object.create(o.prototype);
178
- return m(s, {
179
- x: t,
180
- y: n,
181
- width: r,
182
- height: i,
183
- top: n,
184
- right: t + r,
185
- bottom: i + n,
186
- left: t
187
- }), s;
188
- }
189
- function d(e, t, n, r) {
190
- return {
191
- x: e,
192
- y: t,
193
- width: n,
194
- height: r
195
- };
196
- }
197
- var W = (
198
- /** @class */
199
- function() {
200
- function e(t) {
201
- this.broadcastWidth = 0, this.broadcastHeight = 0, this.contentRect_ = d(0, 0, 0, 0), this.target = t;
202
- }
203
- return e.prototype.isActive = function() {
204
- var t = L(this.target);
205
- return this.contentRect_ = t, t.width !== this.broadcastWidth || t.height !== this.broadcastHeight;
206
- }, e.prototype.broadcastRect = function() {
207
- var t = this.contentRect_;
208
- return this.broadcastWidth = t.width, this.broadcastHeight = t.height, t;
209
- }, e;
210
- }()
211
- ), j = (
212
- /** @class */
213
- function() {
214
- function e(t, n) {
215
- var r = P(n);
216
- m(this, {
217
- target: t,
218
- contentRect: r
219
- });
220
- }
221
- return e;
222
- }()
223
- ), F = (
224
- /** @class */
225
- function() {
226
- function e(t, n, r) {
227
- if (this.activeObservations_ = [], this.observations_ = new _(), typeof t != "function")
228
- throw new TypeError("The callback provided as parameter 1 is not a function.");
229
- this.callback_ = t, this.controller_ = n, this.callbackCtx_ = r;
230
- }
231
- return e.prototype.observe = function(t) {
232
- if (!arguments.length)
233
- throw new TypeError("1 argument required, but only 0 present.");
234
- if (!(typeof Element == "undefined" || !(Element instanceof Object))) {
235
- if (!(t instanceof c(t).Element))
236
- throw new TypeError('parameter 1 is not of type "Element".');
237
- var n = this.observations_;
238
- n.has(t) || (n.set(t, new W(t)), this.controller_.addObserver(this), this.controller_.refresh());
239
- }
240
- }, e.prototype.unobserve = function(t) {
241
- if (!arguments.length)
242
- throw new TypeError("1 argument required, but only 0 present.");
243
- if (!(typeof Element == "undefined" || !(Element instanceof Object))) {
244
- if (!(t instanceof c(t).Element))
245
- throw new TypeError('parameter 1 is not of type "Element".');
246
- var n = this.observations_;
247
- n.has(t) && (n.delete(t), n.size || this.controller_.removeObserver(this));
248
- }
249
- }, e.prototype.disconnect = function() {
250
- this.clearActive(), this.observations_.clear(), this.controller_.removeObserver(this);
251
- }, e.prototype.gatherActive = function() {
252
- var t = this;
253
- this.clearActive(), this.observations_.forEach(function(n) {
254
- n.isActive() && t.activeObservations_.push(n);
255
- });
256
- }, e.prototype.broadcastActive = function() {
257
- if (this.hasActive()) {
258
- var t = this.callbackCtx_, n = this.activeObservations_.map(function(r) {
259
- return new j(r.target, r.broadcastRect());
260
- });
261
- this.callback_.call(t, n, t), this.clearActive();
262
- }
263
- }, e.prototype.clearActive = function() {
264
- this.activeObservations_.splice(0);
265
- }, e.prototype.hasActive = function() {
266
- return this.activeObservations_.length > 0;
267
- }, e;
268
- }()
269
- ), g = typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : new _(), w = (
270
- /** @class */
271
- function() {
272
- function e(t) {
273
- if (!(this instanceof e))
274
- throw new TypeError("Cannot call a class as a function.");
275
- if (!arguments.length)
276
- throw new TypeError("1 argument required, but only 0 present.");
277
- var n = z.getInstance(), r = new F(t, n, this);
278
- g.set(this, r);
279
- }
280
- return e;
281
- }()
282
- );
283
- ["observe", "unobserve", "disconnect"].forEach(function(e) {
284
- w.prototype[e] = function() {
285
- var t;
286
- return (t = g.get(this))[e].apply(t, arguments);
287
- };
288
- });
289
- var H = function() {
290
- return typeof f.ResizeObserver != "undefined" ? f.ResizeObserver : w;
291
- }();
292
- export {
293
- H as default
294
- };
@@ -1,7 +0,0 @@
1
- function r(n) {
2
- const t = String(n || "").trim();
3
- return t ? t.split(/[ \t\n\r\f]+/g) : [];
4
- }
5
- export {
6
- r as parse
7
- };