@glodon-aiot/agent-cli-ui 3.1.0-beta.16 → 3.2.2-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/dist/es/AgentClientUI.mjs +40 -39
  2. package/dist/es/Dialog/AgentChat/index.mjs +283 -264
  3. package/dist/es/Dialog/AgentChat/style.less.mjs +4 -0
  4. package/dist/es/Dialog/ConnectToNetwork/index.mjs +19 -18
  5. package/dist/es/Dialog/ConnectToNetwork/style.less.mjs +4 -0
  6. package/dist/es/Dialog/FileCard/index.mjs +22 -21
  7. package/dist/es/Dialog/FileCard/style.less.mjs +4 -0
  8. package/dist/es/Dialog/FilePreview/index.mjs +14 -13
  9. package/dist/es/Dialog/FilePreview/style.less.mjs +4 -0
  10. package/dist/es/Dialog/Greeting/index.mjs +5 -4
  11. package/dist/es/Dialog/Greeting/style.less.mjs +4 -0
  12. package/dist/es/Dialog/HistoryContent/index.mjs +6 -5
  13. package/dist/es/Dialog/HistoryContent/style.less.mjs +4 -0
  14. package/dist/es/Dialog/HistoryItem/index.mjs +127 -125
  15. package/dist/es/Dialog/HistoryItem/style.less.mjs +4 -0
  16. package/dist/es/Dialog/KnowledgeDoc/index.mjs +23 -22
  17. package/dist/es/Dialog/KnowledgeDoc/style.less.mjs +4 -0
  18. package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/index.mjs +14 -13
  19. package/dist/es/Dialog/KnowledgeList/KnowledgeSelect/style.less.mjs +4 -0
  20. package/dist/es/Dialog/KnowledgeList/index.mjs +29 -28
  21. package/dist/es/Dialog/KnowledgeList/style.less.mjs +4 -0
  22. package/dist/es/Dialog/PromptManager/PromptList/PromptListItem.mjs +19 -19
  23. package/dist/es/Dialog/PromptManager/PromptList/PublicPromptList.mjs +17 -16
  24. package/dist/es/Dialog/PromptManager/PromptList/style.less.mjs +4 -0
  25. package/dist/es/Dialog/PromptManager/index.mjs +17 -16
  26. package/dist/es/Dialog/PromptManager/style.less.mjs +4 -0
  27. package/dist/es/Dialog/PromptSetting/index.mjs +32 -32
  28. package/dist/es/Dialog/PromptSetting/style.less.mjs +4 -0
  29. package/dist/es/Dialog/Recommend/RecommendItem.mjs +12 -11
  30. package/dist/es/Dialog/Recommend/index.mjs +23 -23
  31. package/dist/es/Dialog/Recommend/style.less.mjs +4 -0
  32. package/dist/es/Dialog/ReferCollapse/index.mjs +29 -28
  33. package/dist/es/Dialog/ReferCollapse/style.less.mjs +4 -0
  34. package/dist/es/Dialog/SearchReference/index.mjs +13 -12
  35. package/dist/es/Dialog/SearchReference/style.less.mjs +4 -0
  36. package/dist/es/Dialog/SessionAction/index.mjs +30 -29
  37. package/dist/es/Dialog/SessionAction/style.less.mjs +4 -0
  38. package/dist/es/Dialog/SessionList/index.mjs +51 -51
  39. package/dist/es/Dialog/SessionList/style.less.mjs +4 -0
  40. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/NameEditPanel.mjs +11 -10
  41. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/SessionItem.mjs +15 -14
  42. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/index.mjs +48 -47
  43. package/dist/es/Dialog/SessionListDrawer/HistorySessionList/style.less.mjs +4 -0
  44. package/dist/es/Dialog/SessionListDrawer/index.mjs +9 -8
  45. package/dist/es/Dialog/SessionListDrawer/style.less.mjs +4 -0
  46. package/dist/es/Dialog/SessionRefer/ReferItem/index.mjs +26 -25
  47. package/dist/es/Dialog/SessionRefer/ReferItem/style.less.mjs +4 -0
  48. package/dist/es/Dialog/SessionRefer/index.mjs +21 -20
  49. package/dist/es/Dialog/SessionRefer/style.less.mjs +4 -0
  50. package/dist/es/Dialog/SessionRelated/index.mjs +18 -17
  51. package/dist/es/Dialog/SessionRelated/style.less.mjs +4 -0
  52. package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/index.mjs +9 -8
  53. package/dist/es/Dialog/UploadKnowledgeFiles/ClearModal/style.less.mjs +4 -0
  54. package/dist/es/Dialog/UploadKnowledgeFiles/index.mjs +117 -117
  55. package/dist/es/Dialog/UploadKnowledgeFiles/style.less.mjs +4 -0
  56. package/dist/es/Dialog/UploadingPrompt/index.mjs +6 -5
  57. package/dist/es/Dialog/UploadingPrompt/style.less.mjs +4 -0
  58. package/dist/es/Dialog/index.mjs +58 -57
  59. package/dist/es/Dialog/style.less.mjs +4 -0
  60. package/dist/es/FileItem/index.mjs +23 -22
  61. package/dist/es/FileItem/style.less.mjs +4 -0
  62. package/dist/es/Footer/FooterWarning.mjs +14 -13
  63. package/dist/es/Footer/index.mjs +7 -6
  64. package/dist/es/Footer/style.less.mjs +4 -0
  65. package/dist/es/InputProgress/index.mjs +10 -9
  66. package/dist/es/InputProgress/style.less.mjs +4 -0
  67. package/dist/es/QuillEditor/index.mjs +34 -34
  68. package/dist/es/QuillEditor/style.less.mjs +4 -0
  69. package/dist/es/_virtual/_cloneBuffer.mjs +4 -0
  70. package/dist/es/_virtual/_commonjsHelpers.mjs +8 -0
  71. package/dist/es/_virtual/_nodeUtil.mjs +4 -0
  72. package/dist/es/_virtual/index.mjs +4 -0
  73. package/dist/es/_virtual/isBuffer.mjs +4 -0
  74. package/dist/es/_virtual/jsx-runtime.mjs +7 -0
  75. package/dist/es/_virtual/jsx-runtime2.mjs +4 -0
  76. package/dist/es/_virtual/lib.mjs +4 -0
  77. package/dist/es/_virtual/react-jsx-runtime.production.min.mjs +4 -0
  78. package/dist/es/_virtual/ua-parser.min.mjs +4 -0
  79. package/dist/es/components/Copy/index.mjs +21 -20
  80. package/dist/es/components/Copy/style.less.mjs +4 -0
  81. package/dist/es/components/JsonDisplay/index.mjs +5 -4
  82. package/dist/es/components/JsonDisplay/style.less.mjs +4 -0
  83. package/dist/es/components/Markdown/ATag/index.mjs +7 -7
  84. package/dist/es/components/Markdown/Code/index.mjs +33 -33
  85. package/dist/es/components/Markdown/Image/index.mjs +17 -16
  86. package/dist/es/components/Markdown/Video/index.mjs +13 -13
  87. package/dist/es/components/Markdown/index.mjs +36 -35
  88. package/dist/es/components/Markdown/style.less.mjs +4 -0
  89. package/dist/es/components/WebLink/index.mjs +9 -9
  90. package/dist/es/favicon.ico +0 -0
  91. package/dist/es/favicon2.ico +0 -0
  92. package/dist/es/font/font_4108228_4w5nlhafpte.js +1 -0
  93. package/dist/es/font/font_4439177_0sppkcnqiqgs.js +1 -0
  94. package/dist/es/font/gos-font.js +64 -0
  95. package/dist/es/images/empty.svg +40 -0
  96. package/dist/es/images/loading.gif +0 -0
  97. package/dist/es/images/logo.png +0 -0
  98. package/dist/es/images/map-example.png +0 -0
  99. package/dist/es/images/sketch.png +0 -0
  100. package/dist/es/index.html +43 -0
  101. package/dist/es/index.mjs +32 -26
  102. package/dist/es/logo192.png +0 -0
  103. package/dist/es/logo512.png +0 -0
  104. package/dist/es/manifest.json +25 -0
  105. package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
  106. package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
  107. package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
  108. package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
  109. package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
  110. package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
  111. package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +847 -0
  112. package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
  113. package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +226 -0
  114. package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
  115. package/dist/es/node_modules/ahooks/es/useKeyPress/index.mjs +221 -0
  116. package/dist/es/node_modules/ahooks/es/useLatest/index.mjs +8 -0
  117. package/dist/es/node_modules/ahooks/es/useMemoizedFn/index.mjs +19 -0
  118. package/dist/es/node_modules/ahooks/es/useRafState/index.mjs +16 -0
  119. package/dist/es/node_modules/ahooks/es/useSize/index.mjs +34 -0
  120. package/dist/es/node_modules/ahooks/es/useUnmount/index.mjs +17 -0
  121. package/dist/es/node_modules/ahooks/es/useUnmountedRef/index.mjs +13 -0
  122. package/dist/es/node_modules/ahooks/es/utils/createEffectWithTarget.mjs +27 -0
  123. package/dist/es/node_modules/ahooks/es/utils/depsAreSame.mjs +11 -0
  124. package/dist/es/node_modules/ahooks/es/utils/depsEqual.mjs +7 -0
  125. package/dist/es/node_modules/ahooks/es/utils/domTarget.mjs +13 -0
  126. package/dist/es/node_modules/ahooks/es/utils/index.mjs +12 -0
  127. package/dist/es/node_modules/ahooks/es/utils/isAppleDevice.mjs +5 -0
  128. package/dist/es/node_modules/ahooks/es/utils/isBrowser.mjs +5 -0
  129. package/dist/es/node_modules/ahooks/es/utils/isDev.mjs +5 -0
  130. package/dist/es/node_modules/ahooks/es/utils/useDeepCompareWithTarget.mjs +11 -0
  131. package/dist/es/node_modules/ahooks/es/utils/useEffectWithTarget.mjs +7 -0
  132. package/dist/es/node_modules/ahooks/es/utils/useIsomorphicLayoutEffectWithTarget.mjs +8 -0
  133. package/dist/es/node_modules/ahooks/es/utils/useLayoutEffectWithTarget.mjs +7 -0
  134. package/dist/es/node_modules/antd/es/calendar/locale/zh_CN.mjs +4 -0
  135. package/dist/es/node_modules/antd/es/date-picker/locale/zh_CN.mjs +23 -0
  136. package/dist/es/node_modules/antd/es/locale/zh_CN.mjs +132 -0
  137. package/dist/es/node_modules/antd/es/time-picker/locale/zh_CN.mjs +8 -0
  138. package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
  139. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
  140. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +76 -0
  141. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
  142. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
  143. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +172 -0
  144. package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +81 -0
  145. package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
  146. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
  147. package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
  148. package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
  149. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
  150. package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
  151. package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
  152. package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
  153. package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
  154. package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
  155. package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
  156. package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
  157. package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +9 -0
  158. package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
  159. package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
  160. package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
  161. package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
  162. package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +46 -0
  163. package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
  164. package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
  165. package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
  166. package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
  167. package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
  168. package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
  169. package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
  170. package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
  171. package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
  172. package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
  173. package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
  174. package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
  175. package/dist/es/node_modules/classnames/index.mjs +42 -0
  176. package/dist/es/node_modules/comma-separated-tokens/index.mjs +13 -0
  177. package/dist/es/node_modules/copy-to-clipboard/index.mjs +46 -0
  178. package/dist/es/node_modules/devlop/lib/default.mjs +5 -0
  179. package/dist/es/node_modules/hast-util-from-dom/lib/index.mjs +93 -0
  180. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/create-h.mjs +126 -0
  181. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/index.mjs +8 -0
  182. package/dist/es/node_modules/hast-util-from-dom/node_modules/hastscript/lib/svg-case-sensitive-tag-names.mjs +4 -0
  183. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/index.mjs +12 -0
  184. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/aria.mjs +61 -0
  185. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/find.mjs +33 -0
  186. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/html.mjs +368 -0
  187. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/normalize.mjs +6 -0
  188. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/svg.mjs +566 -0
  189. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-insensitive-transform.mjs +7 -0
  190. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/case-sensitive-transform.mjs +6 -0
  191. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/create.mjs +14 -0
  192. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/defined-info.mjs +36 -0
  193. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/info.mjs +28 -0
  194. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/merge.mjs +10 -0
  195. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/schema.mjs +21 -0
  196. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/util/types.mjs +15 -0
  197. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xlink.mjs +19 -0
  198. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xml.mjs +15 -0
  199. package/dist/es/node_modules/hast-util-from-dom/node_modules/property-information/lib/xmlns.mjs +16 -0
  200. package/dist/es/node_modules/hast-util-from-html-isomorphic/lib/browser.mjs +16 -0
  201. package/dist/es/node_modules/hast-util-is-element/lib/index.mjs +61 -0
  202. package/dist/es/node_modules/hast-util-parse-selector/lib/index.mjs +20 -0
  203. package/dist/es/node_modules/hast-util-to-text/lib/index.mjs +223 -0
  204. package/dist/es/node_modules/katex/dist/katex.min.css.mjs +4 -0
  205. package/dist/es/node_modules/katex/dist/katex.mjs +11700 -0
  206. package/dist/es/node_modules/lodash/_Hash.mjs +22 -0
  207. package/dist/es/node_modules/lodash/_ListCache.mjs +22 -0
  208. package/dist/es/node_modules/lodash/_Map.mjs +6 -0
  209. package/dist/es/node_modules/lodash/_MapCache.mjs +22 -0
  210. package/dist/es/node_modules/lodash/_Stack.mjs +20 -0
  211. package/dist/es/node_modules/lodash/_Symbol.mjs +5 -0
  212. package/dist/es/node_modules/lodash/_Uint8Array.mjs +5 -0
  213. package/dist/es/node_modules/lodash/_apply.mjs +17 -0
  214. package/dist/es/node_modules/lodash/_arrayLikeKeys.mjs +21 -0
  215. package/dist/es/node_modules/lodash/_assignMergeValue.mjs +10 -0
  216. package/dist/es/node_modules/lodash/_assignValue.mjs +11 -0
  217. package/dist/es/node_modules/lodash/_assocIndexOf.mjs +12 -0
  218. package/dist/es/node_modules/lodash/_baseAssignValue.mjs +14 -0
  219. package/dist/es/node_modules/lodash/_baseCreate.mjs +17 -0
  220. package/dist/es/node_modules/lodash/_baseFor.mjs +5 -0
  221. package/dist/es/node_modules/lodash/_baseGetTag.mjs +11 -0
  222. package/dist/es/node_modules/lodash/_baseIsArguments.mjs +10 -0
  223. package/dist/es/node_modules/lodash/_baseIsNative.mjs +15 -0
  224. package/dist/es/node_modules/lodash/_baseIsTypedArray.mjs +13 -0
  225. package/dist/es/node_modules/lodash/_baseKeysIn.mjs +16 -0
  226. package/dist/es/node_modules/lodash/_baseMerge.mjs +22 -0
  227. package/dist/es/node_modules/lodash/_baseMergeDeep.mjs +33 -0
  228. package/dist/es/node_modules/lodash/_baseRest.mjs +11 -0
  229. package/dist/es/node_modules/lodash/_baseSetToString.mjs +14 -0
  230. package/dist/es/node_modules/lodash/_baseTimes.mjs +9 -0
  231. package/dist/es/node_modules/lodash/_baseTrim.mjs +9 -0
  232. package/dist/es/node_modules/lodash/_baseUnary.mjs +9 -0
  233. package/dist/es/node_modules/lodash/_cloneArrayBuffer.mjs +10 -0
  234. package/dist/es/node_modules/lodash/_cloneBuffer.mjs +17 -0
  235. package/dist/es/node_modules/lodash/_cloneTypedArray.mjs +10 -0
  236. package/dist/es/node_modules/lodash/_copyArray.mjs +10 -0
  237. package/dist/es/node_modules/lodash/_copyObject.mjs +16 -0
  238. package/dist/es/node_modules/lodash/_coreJsData.mjs +5 -0
  239. package/dist/es/node_modules/lodash/_createAssigner.mjs +17 -0
  240. package/dist/es/node_modules/lodash/_createBaseFor.mjs +14 -0
  241. package/dist/es/node_modules/lodash/_defineProperty.mjs +11 -0
  242. package/dist/es/node_modules/lodash/_freeGlobal.mjs +5 -0
  243. package/dist/es/node_modules/lodash/_getMapData.mjs +10 -0
  244. package/dist/es/node_modules/lodash/_getNative.mjs +11 -0
  245. package/dist/es/node_modules/lodash/_getPrototype.mjs +5 -0
  246. package/dist/es/node_modules/lodash/_getRawTag.mjs +16 -0
  247. package/dist/es/node_modules/lodash/_getValue.mjs +7 -0
  248. package/dist/es/node_modules/lodash/_hashClear.mjs +9 -0
  249. package/dist/es/node_modules/lodash/_hashDelete.mjs +8 -0
  250. package/dist/es/node_modules/lodash/_hashGet.mjs +14 -0
  251. package/dist/es/node_modules/lodash/_hashHas.mjs +10 -0
  252. package/dist/es/node_modules/lodash/_hashSet.mjs +10 -0
  253. package/dist/es/node_modules/lodash/_initCloneObject.mjs +11 -0
  254. package/dist/es/node_modules/lodash/_isIndex.mjs +9 -0
  255. package/dist/es/node_modules/lodash/_isIterateeCall.mjs +15 -0
  256. package/dist/es/node_modules/lodash/_isKeyable.mjs +8 -0
  257. package/dist/es/node_modules/lodash/_isMasked.mjs +12 -0
  258. package/dist/es/node_modules/lodash/_isPrototype.mjs +9 -0
  259. package/dist/es/node_modules/lodash/_listCacheClear.mjs +7 -0
  260. package/dist/es/node_modules/lodash/_listCacheDelete.mjs +13 -0
  261. package/dist/es/node_modules/lodash/_listCacheGet.mjs +10 -0
  262. package/dist/es/node_modules/lodash/_listCacheHas.mjs +9 -0
  263. package/dist/es/node_modules/lodash/_listCacheSet.mjs +10 -0
  264. package/dist/es/node_modules/lodash/_mapCacheClear.mjs +15 -0
  265. package/dist/es/node_modules/lodash/_mapCacheDelete.mjs +10 -0
  266. package/dist/es/node_modules/lodash/_mapCacheGet.mjs +9 -0
  267. package/dist/es/node_modules/lodash/_mapCacheHas.mjs +9 -0
  268. package/dist/es/node_modules/lodash/_mapCacheSet.mjs +10 -0
  269. package/dist/es/node_modules/lodash/_nativeCreate.mjs +5 -0
  270. package/dist/es/node_modules/lodash/_nativeKeysIn.mjs +11 -0
  271. package/dist/es/node_modules/lodash/_nodeUtil.mjs +17 -0
  272. package/dist/es/node_modules/lodash/_objectToString.mjs +8 -0
  273. package/dist/es/node_modules/lodash/_overArg.mjs +9 -0
  274. package/dist/es/node_modules/lodash/_overRest.mjs +16 -0
  275. package/dist/es/node_modules/lodash/_root.mjs +5 -0
  276. package/dist/es/node_modules/lodash/_safeGet.mjs +8 -0
  277. package/dist/es/node_modules/lodash/_setToString.mjs +6 -0
  278. package/dist/es/node_modules/lodash/_shortOut.mjs +17 -0
  279. package/dist/es/node_modules/lodash/_stackClear.mjs +9 -0
  280. package/dist/es/node_modules/lodash/_stackDelete.mjs +8 -0
  281. package/dist/es/node_modules/lodash/_stackGet.mjs +7 -0
  282. package/dist/es/node_modules/lodash/_stackHas.mjs +7 -0
  283. package/dist/es/node_modules/lodash/_stackSet.mjs +18 -0
  284. package/dist/es/node_modules/lodash/_toSource.mjs +18 -0
  285. package/dist/es/node_modules/lodash/_trimmedEndIndex.mjs +10 -0
  286. package/dist/es/node_modules/lodash/constant.mjs +9 -0
  287. package/dist/es/node_modules/lodash/debounce.mjs +57 -0
  288. package/dist/es/node_modules/lodash/eq.mjs +7 -0
  289. package/dist/es/node_modules/lodash/identity.mjs +7 -0
  290. package/dist/es/node_modules/lodash/isArguments.mjs +10 -0
  291. package/dist/es/node_modules/lodash/isArray.mjs +4 -0
  292. package/dist/es/node_modules/lodash/isArrayLike.mjs +10 -0
  293. package/dist/es/node_modules/lodash/isArrayLikeObject.mjs +10 -0
  294. package/dist/es/node_modules/lodash/isBuffer.mjs +12 -0
  295. package/dist/es/node_modules/lodash/isFunction.mjs +13 -0
  296. package/dist/es/node_modules/lodash/isLength.mjs +8 -0
  297. package/dist/es/node_modules/lodash/isObject.mjs +8 -0
  298. package/dist/es/node_modules/lodash/isObjectLike.mjs +7 -0
  299. package/dist/es/node_modules/lodash/isPlainObject.mjs +17 -0
  300. package/dist/es/node_modules/lodash/isSymbol.mjs +10 -0
  301. package/dist/es/node_modules/lodash/isTypedArray.mjs +7 -0
  302. package/dist/es/node_modules/lodash/keysIn.mjs +11 -0
  303. package/dist/es/node_modules/lodash/merge.mjs +10 -0
  304. package/dist/es/node_modules/lodash/now.mjs +7 -0
  305. package/dist/es/node_modules/lodash/stubFalse.mjs +7 -0
  306. package/dist/es/node_modules/lodash/toNumber.mjs +23 -0
  307. package/dist/es/node_modules/lodash/toPlainObject.mjs +10 -0
  308. package/dist/es/node_modules/longest-streak/index.mjs +12 -0
  309. package/dist/es/node_modules/mdast-util-math/lib/index.mjs +170 -0
  310. package/dist/es/node_modules/micromark-extension-math/lib/math-flow.mjs +76 -0
  311. package/dist/es/node_modules/micromark-extension-math/lib/math-text.mjs +48 -0
  312. package/dist/es/node_modules/micromark-extension-math/lib/syntax.mjs +15 -0
  313. package/dist/es/node_modules/micromark-factory-space/index.mjs +15 -0
  314. package/dist/es/node_modules/micromark-util-character/index.mjs +10 -0
  315. package/dist/es/node_modules/object-assign/index.mjs +34 -0
  316. package/dist/es/node_modules/rc-pagination/es/locale/zh_CN.mjs +18 -0
  317. package/dist/es/node_modules/rc-picker/es/locale/zh_CN.mjs +31 -0
  318. package/dist/es/node_modules/react/cjs/react-jsx-runtime.production.min.mjs +45 -0
  319. package/dist/es/node_modules/react/jsx-runtime.mjs +8 -0
  320. package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
  321. package/dist/es/node_modules/react-fast-compare/index.mjs +78 -0
  322. package/dist/es/node_modules/react-infinite-scroll-component/dist/index.es.mjs +188 -0
  323. package/dist/es/node_modules/react-quill/dist/quill.snow.css.mjs +4 -0
  324. package/dist/es/node_modules/rehype-katex/lib/index.mjs +83 -0
  325. package/dist/es/node_modules/remark-math/lib/index.mjs +13 -0
  326. package/dist/es/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.mjs +294 -0
  327. package/dist/es/node_modules/space-separated-tokens/index.mjs +7 -0
  328. package/dist/es/node_modules/toggle-selection/index.mjs +25 -0
  329. package/dist/es/node_modules/tslib/tslib.es6.mjs +64 -0
  330. package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +120 -0
  331. package/dist/es/node_modules/unist-util-find-after/lib/index.mjs +32 -0
  332. package/dist/es/node_modules/unist-util-is/lib/index.mjs +81 -0
  333. package/dist/es/node_modules/unist-util-visit-parents/lib/color.mjs +6 -0
  334. package/dist/es/node_modules/unist-util-visit-parents/lib/index.mjs +56 -0
  335. package/dist/es/node_modules/web-namespaces/index.mjs +11 -0
  336. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/native.mjs +4 -0
  337. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/rng.mjs +13 -0
  338. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/stringify.mjs +9 -0
  339. package/dist/es/packages/agent-cli-ui/node_modules/uuid/dist/esm-browser/v4.mjs +23 -0
  340. package/dist/es/robots.txt +3 -0
  341. package/dist/es/style.less.mjs +4 -0
  342. package/dist/lib/favicon.ico +0 -0
  343. package/dist/lib/favicon2.ico +0 -0
  344. package/dist/lib/font/font_4108228_4w5nlhafpte.js +1 -0
  345. package/dist/lib/font/font_4439177_0sppkcnqiqgs.js +1 -0
  346. package/dist/lib/font/gos-font.js +64 -0
  347. package/dist/lib/images/empty.svg +40 -0
  348. package/dist/lib/images/loading.gif +0 -0
  349. package/dist/lib/images/logo.png +0 -0
  350. package/dist/lib/images/map-example.png +0 -0
  351. package/dist/lib/images/sketch.png +0 -0
  352. package/dist/lib/index.html +43 -0
  353. package/dist/lib/index.js +311 -5
  354. package/dist/lib/logo192.png +0 -0
  355. package/dist/lib/logo512.png +0 -0
  356. package/dist/lib/manifest.json +25 -0
  357. package/dist/lib/robots.txt +3 -0
  358. package/dist/src/Dialog/HistoryItem/index.d.ts +1 -0
  359. package/dist/src/types.d.ts +1 -1
  360. package/package.json +6 -24
  361. package/dist/es/src/style.css +0 -1
  362. package/dist/es/src/style10.css +0 -1
  363. package/dist/es/src/style11.css +0 -1
  364. package/dist/es/src/style12.css +0 -1
  365. package/dist/es/src/style13.css +0 -1
  366. package/dist/es/src/style14.css +0 -1
  367. package/dist/es/src/style15.css +0 -1
  368. package/dist/es/src/style16.css +0 -1
  369. package/dist/es/src/style17.css +0 -1
  370. package/dist/es/src/style18.css +0 -1
  371. package/dist/es/src/style19.css +0 -1
  372. package/dist/es/src/style2.css +0 -1
  373. package/dist/es/src/style20.css +0 -1
  374. package/dist/es/src/style21.css +0 -1
  375. package/dist/es/src/style22.css +0 -1
  376. package/dist/es/src/style23.css +0 -1
  377. package/dist/es/src/style24.css +0 -0
  378. package/dist/es/src/style25.css +0 -1
  379. package/dist/es/src/style26.css +0 -1
  380. package/dist/es/src/style27.css +0 -1
  381. package/dist/es/src/style28.css +0 -1
  382. package/dist/es/src/style29.css +0 -1
  383. package/dist/es/src/style3.css +0 -1
  384. package/dist/es/src/style30.css +0 -1
  385. package/dist/es/src/style31.css +0 -1
  386. package/dist/es/src/style32.css +0 -1
  387. package/dist/es/src/style33.css +0 -1
  388. package/dist/es/src/style4.css +0 -1
  389. package/dist/es/src/style5.css +0 -1
  390. package/dist/es/src/style6.css +0 -1
  391. package/dist/es/src/style7.css +0 -1
  392. package/dist/es/src/style8.css +0 -1
  393. package/dist/es/src/style9.css +0 -1
  394. package/dist/lib/index.css +0 -1
@@ -0,0 +1,847 @@
1
+ import { V as c, c as J } from "./maths-0ab39ae9.esm.mjs";
2
+ function Q(s, t) {
3
+ if (typeof s != "object" || s === null)
4
+ return s;
5
+ var e = s[Symbol.toPrimitive];
6
+ if (e !== void 0) {
7
+ var i = e.call(s, t || "default");
8
+ if (typeof i != "object")
9
+ return i;
10
+ throw new TypeError("@@toPrimitive must return a primitive value.");
11
+ }
12
+ return (t === "string" ? String : Number)(s);
13
+ }
14
+ function Z(s) {
15
+ var t = Q(s, "string");
16
+ return typeof t == "symbol" ? t : String(t);
17
+ }
18
+ function g(s, t, e) {
19
+ return t = Z(t), t in s ? Object.defineProperty(s, t, {
20
+ value: e,
21
+ enumerable: !0,
22
+ configurable: !0,
23
+ writable: !0
24
+ }) : s[t] = e, s;
25
+ }
26
+ function S(s, t) {
27
+ var e = Object.keys(s);
28
+ if (Object.getOwnPropertySymbols) {
29
+ var i = Object.getOwnPropertySymbols(s);
30
+ t && (i = i.filter(function(n) {
31
+ return Object.getOwnPropertyDescriptor(s, n).enumerable;
32
+ })), e.push.apply(e, i);
33
+ }
34
+ return e;
35
+ }
36
+ function u(s) {
37
+ for (var t = 1; t < arguments.length; t++) {
38
+ var e = arguments[t] != null ? arguments[t] : {};
39
+ t % 2 ? S(Object(e), !0).forEach(function(i) {
40
+ g(s, i, e[i]);
41
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(e)) : S(Object(e)).forEach(function(i) {
42
+ Object.defineProperty(s, i, Object.getOwnPropertyDescriptor(e, i));
43
+ });
44
+ }
45
+ return s;
46
+ }
47
+ const V = {
48
+ pointer: {
49
+ start: "down",
50
+ change: "move",
51
+ end: "up"
52
+ },
53
+ mouse: {
54
+ start: "down",
55
+ change: "move",
56
+ end: "up"
57
+ },
58
+ touch: {
59
+ start: "start",
60
+ change: "move",
61
+ end: "end"
62
+ },
63
+ gesture: {
64
+ start: "start",
65
+ change: "change",
66
+ end: "end"
67
+ }
68
+ };
69
+ function P(s) {
70
+ return s ? s[0].toUpperCase() + s.slice(1) : "";
71
+ }
72
+ const F = ["enter", "leave"];
73
+ function tt(s = !1, t) {
74
+ return s && !F.includes(t);
75
+ }
76
+ function Ot(s, t = "", e = !1) {
77
+ const i = V[s], n = i && i[t] || t;
78
+ return "on" + P(s) + P(n) + (tt(e, n) ? "Capture" : "");
79
+ }
80
+ const et = ["gotpointercapture", "lostpointercapture"];
81
+ function Lt(s) {
82
+ let t = s.substring(2).toLowerCase();
83
+ const e = !!~t.indexOf("passive");
84
+ e && (t = t.replace("passive", ""));
85
+ const i = et.includes(t) ? "capturecapture" : "capture", n = !!~t.indexOf(i);
86
+ return n && (t = t.replace("capture", "")), {
87
+ device: t,
88
+ capture: n,
89
+ passive: e
90
+ };
91
+ }
92
+ function Kt(s, t = "") {
93
+ const e = V[s], i = e && e[t] || t;
94
+ return s + i;
95
+ }
96
+ function x(s) {
97
+ return "touches" in s;
98
+ }
99
+ function Y(s) {
100
+ return x(s) ? "touch" : "pointerType" in s ? s.pointerType : "mouse";
101
+ }
102
+ function st(s) {
103
+ return Array.from(s.touches).filter((t) => {
104
+ var e, i;
105
+ return t.target === s.currentTarget || ((e = s.currentTarget) === null || e === void 0 || (i = e.contains) === null || i === void 0 ? void 0 : i.call(e, t.target));
106
+ });
107
+ }
108
+ function it(s) {
109
+ return s.type === "touchend" || s.type === "touchcancel" ? s.changedTouches : s.targetTouches;
110
+ }
111
+ function j(s) {
112
+ return x(s) ? it(s)[0] : s;
113
+ }
114
+ function k(s, t) {
115
+ try {
116
+ const e = t.clientX - s.clientX, i = t.clientY - s.clientY, n = (t.clientX + s.clientX) / 2, r = (t.clientY + s.clientY) / 2, o = Math.hypot(e, i);
117
+ return {
118
+ angle: -(Math.atan2(e, i) * 180) / Math.PI,
119
+ distance: o,
120
+ origin: [n, r]
121
+ };
122
+ } catch (e) {
123
+ }
124
+ return null;
125
+ }
126
+ function Rt(s) {
127
+ return st(s).map((t) => t.identifier);
128
+ }
129
+ function C(s, t) {
130
+ const [e, i] = Array.from(s.touches).filter((n) => t.includes(n.identifier));
131
+ return k(e, i);
132
+ }
133
+ function D(s) {
134
+ const t = j(s);
135
+ return x(s) ? t.identifier : t.pointerId;
136
+ }
137
+ function M(s) {
138
+ const t = j(s);
139
+ return [t.clientX, t.clientY];
140
+ }
141
+ const O = 40, L = 800;
142
+ function nt(s) {
143
+ let {
144
+ deltaX: t,
145
+ deltaY: e,
146
+ deltaMode: i
147
+ } = s;
148
+ return i === 1 ? (t *= O, e *= O) : i === 2 && (t *= L, e *= L), [t, e];
149
+ }
150
+ function rt(s) {
151
+ const t = {};
152
+ if ("buttons" in s && (t.buttons = s.buttons), "shiftKey" in s) {
153
+ const {
154
+ shiftKey: e,
155
+ altKey: i,
156
+ metaKey: n,
157
+ ctrlKey: r
158
+ } = s;
159
+ Object.assign(t, {
160
+ shiftKey: e,
161
+ altKey: i,
162
+ metaKey: n,
163
+ ctrlKey: r
164
+ });
165
+ }
166
+ return t;
167
+ }
168
+ function A(s, ...t) {
169
+ return typeof s == "function" ? s(...t) : s;
170
+ }
171
+ function ot() {
172
+ }
173
+ function Bt(...s) {
174
+ return s.length === 0 ? ot : s.length === 1 ? s[0] : function() {
175
+ let t;
176
+ for (const e of s)
177
+ t = e.apply(this, arguments) || t;
178
+ return t;
179
+ };
180
+ }
181
+ function K(s, t) {
182
+ return Object.assign({}, t, s || {});
183
+ }
184
+ const at = 32;
185
+ class H {
186
+ constructor(t, e, i) {
187
+ this.ctrl = t, this.args = e, this.key = i, this.state || (this.state = {}, this.computeValues([0, 0]), this.computeInitial(), this.init && this.init(), this.reset());
188
+ }
189
+ get state() {
190
+ return this.ctrl.state[this.key];
191
+ }
192
+ set state(t) {
193
+ this.ctrl.state[this.key] = t;
194
+ }
195
+ get shared() {
196
+ return this.ctrl.state.shared;
197
+ }
198
+ get eventStore() {
199
+ return this.ctrl.gestureEventStores[this.key];
200
+ }
201
+ get timeoutStore() {
202
+ return this.ctrl.gestureTimeoutStores[this.key];
203
+ }
204
+ get config() {
205
+ return this.ctrl.config[this.key];
206
+ }
207
+ get sharedConfig() {
208
+ return this.ctrl.config.shared;
209
+ }
210
+ get handler() {
211
+ return this.ctrl.handlers[this.key];
212
+ }
213
+ reset() {
214
+ const {
215
+ state: t,
216
+ shared: e,
217
+ ingKey: i,
218
+ args: n
219
+ } = this;
220
+ e[i] = t._active = t.active = t._blocked = t._force = !1, t._step = [!1, !1], t.intentional = !1, t._movement = [0, 0], t._distance = [0, 0], t._direction = [0, 0], t._delta = [0, 0], t._bounds = [[-1 / 0, 1 / 0], [-1 / 0, 1 / 0]], t.args = n, t.axis = void 0, t.memo = void 0, t.elapsedTime = t.timeDelta = 0, t.direction = [0, 0], t.distance = [0, 0], t.overflow = [0, 0], t._movementBound = [!1, !1], t.velocity = [0, 0], t.movement = [0, 0], t.delta = [0, 0], t.timeStamp = 0;
221
+ }
222
+ start(t) {
223
+ const e = this.state, i = this.config;
224
+ e._active || (this.reset(), this.computeInitial(), e._active = !0, e.target = t.target, e.currentTarget = t.currentTarget, e.lastOffset = i.from ? A(i.from, e) : e.offset, e.offset = e.lastOffset, e.startTime = e.timeStamp = t.timeStamp);
225
+ }
226
+ computeValues(t) {
227
+ const e = this.state;
228
+ e._values = t, e.values = this.config.transform(t);
229
+ }
230
+ computeInitial() {
231
+ const t = this.state;
232
+ t._initial = t._values, t.initial = t.values;
233
+ }
234
+ compute(t) {
235
+ const {
236
+ state: e,
237
+ config: i,
238
+ shared: n
239
+ } = this;
240
+ e.args = this.args;
241
+ let r = 0;
242
+ if (t && (e.event = t, i.preventDefault && t.cancelable && e.event.preventDefault(), e.type = t.type, n.touches = this.ctrl.pointerIds.size || this.ctrl.touchIds.size, n.locked = !!document.pointerLockElement, Object.assign(n, rt(t)), n.down = n.pressed = n.buttons % 2 === 1 || n.touches > 0, r = t.timeStamp - e.timeStamp, e.timeStamp = t.timeStamp, e.elapsedTime = e.timeStamp - e.startTime), e._active) {
243
+ const p = e._delta.map(Math.abs);
244
+ c.addTo(e._distance, p);
245
+ }
246
+ this.axisIntent && this.axisIntent(t);
247
+ const [o, h] = e._movement, [d, m] = i.threshold, {
248
+ _step: a,
249
+ values: _
250
+ } = e;
251
+ if (i.hasCustomTransform ? (a[0] === !1 && (a[0] = Math.abs(o) >= d && _[0]), a[1] === !1 && (a[1] = Math.abs(h) >= m && _[1])) : (a[0] === !1 && (a[0] = Math.abs(o) >= d && Math.sign(o) * d), a[1] === !1 && (a[1] = Math.abs(h) >= m && Math.sign(h) * m)), e.intentional = a[0] !== !1 || a[1] !== !1, !e.intentional)
252
+ return;
253
+ const l = [0, 0];
254
+ if (i.hasCustomTransform) {
255
+ const [p, q] = _;
256
+ l[0] = a[0] !== !1 ? p - a[0] : 0, l[1] = a[1] !== !1 ? q - a[1] : 0;
257
+ } else
258
+ l[0] = a[0] !== !1 ? o - a[0] : 0, l[1] = a[1] !== !1 ? h - a[1] : 0;
259
+ this.restrictToAxis && !e._blocked && this.restrictToAxis(l);
260
+ const b = e.offset, E = e._active && !e._blocked || e.active;
261
+ E && (e.first = e._active && !e.active, e.last = !e._active && e.active, e.active = n[this.ingKey] = e._active, t && (e.first && ("bounds" in i && (e._bounds = A(i.bounds, e)), this.setup && this.setup()), e.movement = l, this.computeOffset()));
262
+ const [T, w] = e.offset, [[I, G], [z, W]] = e._bounds;
263
+ e.overflow = [T < I ? -1 : T > G ? 1 : 0, w < z ? -1 : w > W ? 1 : 0], e._movementBound[0] = e.overflow[0] ? e._movementBound[0] === !1 ? e._movement[0] : e._movementBound[0] : !1, e._movementBound[1] = e.overflow[1] ? e._movementBound[1] === !1 ? e._movement[1] : e._movementBound[1] : !1;
264
+ const $ = e._active ? i.rubberband || [0, 0] : [0, 0];
265
+ if (e.offset = J(e._bounds, e.offset, $), e.delta = c.sub(e.offset, b), this.computeMovement(), E && (!e.last || r > at)) {
266
+ e.delta = c.sub(e.offset, b);
267
+ const p = e.delta.map(Math.abs);
268
+ c.addTo(e.distance, p), e.direction = e.delta.map(Math.sign), e._direction = e._delta.map(Math.sign), !e.first && r > 0 && (e.velocity = [p[0] / r, p[1] / r], e.timeDelta = r);
269
+ }
270
+ }
271
+ emit() {
272
+ const t = this.state, e = this.shared, i = this.config;
273
+ if (t._active || this.clean(), (t._blocked || !t.intentional) && !t._force && !i.triggerAllEvents)
274
+ return;
275
+ const n = this.handler(u(u(u({}, e), t), {}, {
276
+ [this.aliasKey]: t.values
277
+ }));
278
+ n !== void 0 && (t.memo = n);
279
+ }
280
+ clean() {
281
+ this.eventStore.clean(), this.timeoutStore.clean();
282
+ }
283
+ }
284
+ function ct([s, t], e) {
285
+ const i = Math.abs(s), n = Math.abs(t);
286
+ if (i > n && i > e)
287
+ return "x";
288
+ if (n > i && n > e)
289
+ return "y";
290
+ }
291
+ class ut extends H {
292
+ constructor(...t) {
293
+ super(...t), g(this, "aliasKey", "xy");
294
+ }
295
+ reset() {
296
+ super.reset(), this.state.axis = void 0;
297
+ }
298
+ init() {
299
+ this.state.offset = [0, 0], this.state.lastOffset = [0, 0];
300
+ }
301
+ computeOffset() {
302
+ this.state.offset = c.add(this.state.lastOffset, this.state.movement);
303
+ }
304
+ computeMovement() {
305
+ this.state.movement = c.sub(this.state.offset, this.state.lastOffset);
306
+ }
307
+ axisIntent(t) {
308
+ const e = this.state, i = this.config;
309
+ if (!e.axis && t) {
310
+ const n = typeof i.axisThreshold == "object" ? i.axisThreshold[Y(t)] : i.axisThreshold;
311
+ e.axis = ct(e._movement, n);
312
+ }
313
+ e._blocked = (i.lockDirection || !!i.axis) && !e.axis || !!i.axis && i.axis !== e.axis;
314
+ }
315
+ restrictToAxis(t) {
316
+ if (this.config.axis || this.config.lockDirection)
317
+ switch (this.state.axis) {
318
+ case "x":
319
+ t[1] = 0;
320
+ break;
321
+ case "y":
322
+ t[0] = 0;
323
+ break;
324
+ }
325
+ }
326
+ }
327
+ const ht = (s) => s, R = 0.15, N = {
328
+ enabled(s = !0) {
329
+ return s;
330
+ },
331
+ eventOptions(s, t, e) {
332
+ return u(u({}, e.shared.eventOptions), s);
333
+ },
334
+ preventDefault(s = !1) {
335
+ return s;
336
+ },
337
+ triggerAllEvents(s = !1) {
338
+ return s;
339
+ },
340
+ rubberband(s = 0) {
341
+ switch (s) {
342
+ case !0:
343
+ return [R, R];
344
+ case !1:
345
+ return [0, 0];
346
+ default:
347
+ return c.toVector(s);
348
+ }
349
+ },
350
+ from(s) {
351
+ if (typeof s == "function")
352
+ return s;
353
+ if (s != null)
354
+ return c.toVector(s);
355
+ },
356
+ transform(s, t, e) {
357
+ const i = s || e.shared.transform;
358
+ return this.hasCustomTransform = !!i, i || ht;
359
+ },
360
+ threshold(s) {
361
+ return c.toVector(s, 0);
362
+ }
363
+ }, ft = 0, y = u(u({}, N), {}, {
364
+ axis(s, t, {
365
+ axis: e
366
+ }) {
367
+ if (this.lockDirection = e === "lock", !this.lockDirection)
368
+ return e;
369
+ },
370
+ axisThreshold(s = ft) {
371
+ return s;
372
+ },
373
+ bounds(s = {}) {
374
+ if (typeof s == "function")
375
+ return (r) => y.bounds(s(r));
376
+ if ("current" in s)
377
+ return () => s.current;
378
+ if (typeof HTMLElement == "function" && s instanceof HTMLElement)
379
+ return s;
380
+ const {
381
+ left: t = -1 / 0,
382
+ right: e = 1 / 0,
383
+ top: i = -1 / 0,
384
+ bottom: n = 1 / 0
385
+ } = s;
386
+ return [[t, e], [i, n]];
387
+ }
388
+ }), B = {
389
+ ArrowRight: (s, t = 1) => [s * t, 0],
390
+ ArrowLeft: (s, t = 1) => [-1 * s * t, 0],
391
+ ArrowUp: (s, t = 1) => [0, -1 * s * t],
392
+ ArrowDown: (s, t = 1) => [0, s * t]
393
+ };
394
+ class lt extends ut {
395
+ constructor(...t) {
396
+ super(...t), g(this, "ingKey", "dragging");
397
+ }
398
+ reset() {
399
+ super.reset();
400
+ const t = this.state;
401
+ t._pointerId = void 0, t._pointerActive = !1, t._keyboardActive = !1, t._preventScroll = !1, t._delayed = !1, t.swipe = [0, 0], t.tap = !1, t.canceled = !1, t.cancel = this.cancel.bind(this);
402
+ }
403
+ setup() {
404
+ const t = this.state;
405
+ if (t._bounds instanceof HTMLElement) {
406
+ const e = t._bounds.getBoundingClientRect(), i = t.currentTarget.getBoundingClientRect(), n = {
407
+ left: e.left - i.left + t.offset[0],
408
+ right: e.right - i.right + t.offset[0],
409
+ top: e.top - i.top + t.offset[1],
410
+ bottom: e.bottom - i.bottom + t.offset[1]
411
+ };
412
+ t._bounds = y.bounds(n);
413
+ }
414
+ }
415
+ cancel() {
416
+ const t = this.state;
417
+ t.canceled || (t.canceled = !0, t._active = !1, setTimeout(() => {
418
+ this.compute(), this.emit();
419
+ }, 0));
420
+ }
421
+ setActive() {
422
+ this.state._active = this.state._pointerActive || this.state._keyboardActive;
423
+ }
424
+ clean() {
425
+ this.pointerClean(), this.state._pointerActive = !1, this.state._keyboardActive = !1, super.clean();
426
+ }
427
+ pointerDown(t) {
428
+ const e = this.config, i = this.state;
429
+ if (t.buttons != null && (Array.isArray(e.pointerButtons) ? !e.pointerButtons.includes(t.buttons) : e.pointerButtons !== -1 && e.pointerButtons !== t.buttons))
430
+ return;
431
+ const n = this.ctrl.setEventIds(t);
432
+ e.pointerCapture && t.target.setPointerCapture(t.pointerId), !(n && n.size > 1 && i._pointerActive) && (this.start(t), this.setupPointer(t), i._pointerId = D(t), i._pointerActive = !0, this.computeValues(M(t)), this.computeInitial(), e.preventScrollAxis && Y(t) !== "mouse" ? (i._active = !1, this.setupScrollPrevention(t)) : e.delay > 0 ? (this.setupDelayTrigger(t), e.triggerAllEvents && (this.compute(t), this.emit())) : this.startPointerDrag(t));
433
+ }
434
+ startPointerDrag(t) {
435
+ const e = this.state;
436
+ e._active = !0, e._preventScroll = !0, e._delayed = !1, this.compute(t), this.emit();
437
+ }
438
+ pointerMove(t) {
439
+ const e = this.state, i = this.config;
440
+ if (!e._pointerActive)
441
+ return;
442
+ const n = D(t);
443
+ if (e._pointerId !== void 0 && n !== e._pointerId)
444
+ return;
445
+ const r = M(t);
446
+ if (document.pointerLockElement === t.target ? e._delta = [t.movementX, t.movementY] : (e._delta = c.sub(r, e._values), this.computeValues(r)), c.addTo(e._movement, e._delta), this.compute(t), e._delayed && e.intentional) {
447
+ this.timeoutStore.remove("dragDelay"), e.active = !1, this.startPointerDrag(t);
448
+ return;
449
+ }
450
+ if (i.preventScrollAxis && !e._preventScroll)
451
+ if (e.axis)
452
+ if (e.axis === i.preventScrollAxis || i.preventScrollAxis === "xy") {
453
+ e._active = !1, this.clean();
454
+ return;
455
+ } else {
456
+ this.timeoutStore.remove("startPointerDrag"), this.startPointerDrag(t);
457
+ return;
458
+ }
459
+ else
460
+ return;
461
+ this.emit();
462
+ }
463
+ pointerUp(t) {
464
+ this.ctrl.setEventIds(t);
465
+ try {
466
+ this.config.pointerCapture && t.target.hasPointerCapture(t.pointerId) && t.target.releasePointerCapture(t.pointerId);
467
+ } catch (h) {
468
+ }
469
+ const e = this.state, i = this.config;
470
+ if (!e._active || !e._pointerActive)
471
+ return;
472
+ const n = D(t);
473
+ if (e._pointerId !== void 0 && n !== e._pointerId)
474
+ return;
475
+ this.state._pointerActive = !1, this.setActive(), this.compute(t);
476
+ const [r, o] = e._distance;
477
+ if (e.tap = r <= i.tapsThreshold && o <= i.tapsThreshold, e.tap && i.filterTaps)
478
+ e._force = !0;
479
+ else {
480
+ const [h, d] = e._delta, [m, a] = e._movement, [_, l] = i.swipe.velocity, [b, E] = i.swipe.distance, T = i.swipe.duration;
481
+ if (e.elapsedTime < T) {
482
+ const w = Math.abs(h / e.timeDelta), I = Math.abs(d / e.timeDelta);
483
+ w > _ && Math.abs(m) > b && (e.swipe[0] = Math.sign(h)), I > l && Math.abs(a) > E && (e.swipe[1] = Math.sign(d));
484
+ }
485
+ }
486
+ this.emit();
487
+ }
488
+ pointerClick(t) {
489
+ !this.state.tap && t.detail > 0 && (t.preventDefault(), t.stopPropagation());
490
+ }
491
+ setupPointer(t) {
492
+ const e = this.config, i = e.device;
493
+ e.pointerLock && t.currentTarget.requestPointerLock(), e.pointerCapture || (this.eventStore.add(this.sharedConfig.window, i, "change", this.pointerMove.bind(this)), this.eventStore.add(this.sharedConfig.window, i, "end", this.pointerUp.bind(this)), this.eventStore.add(this.sharedConfig.window, i, "cancel", this.pointerUp.bind(this)));
494
+ }
495
+ pointerClean() {
496
+ this.config.pointerLock && document.pointerLockElement === this.state.currentTarget && document.exitPointerLock();
497
+ }
498
+ preventScroll(t) {
499
+ this.state._preventScroll && t.cancelable && t.preventDefault();
500
+ }
501
+ setupScrollPrevention(t) {
502
+ this.state._preventScroll = !1, dt(t);
503
+ const e = this.eventStore.add(this.sharedConfig.window, "touch", "change", this.preventScroll.bind(this), {
504
+ passive: !1
505
+ });
506
+ this.eventStore.add(this.sharedConfig.window, "touch", "end", e), this.eventStore.add(this.sharedConfig.window, "touch", "cancel", e), this.timeoutStore.add("startPointerDrag", this.startPointerDrag.bind(this), this.config.preventScrollDelay, t);
507
+ }
508
+ setupDelayTrigger(t) {
509
+ this.state._delayed = !0, this.timeoutStore.add("dragDelay", () => {
510
+ this.state._step = [0, 0], this.startPointerDrag(t);
511
+ }, this.config.delay);
512
+ }
513
+ keyDown(t) {
514
+ const e = B[t.key];
515
+ if (e) {
516
+ const i = this.state, n = t.shiftKey ? 10 : t.altKey ? 0.1 : 1;
517
+ this.start(t), i._delta = e(this.config.keyboardDisplacement, n), i._keyboardActive = !0, c.addTo(i._movement, i._delta), this.compute(t), this.emit();
518
+ }
519
+ }
520
+ keyUp(t) {
521
+ t.key in B && (this.state._keyboardActive = !1, this.setActive(), this.compute(t), this.emit());
522
+ }
523
+ bind(t) {
524
+ const e = this.config.device;
525
+ t(e, "start", this.pointerDown.bind(this)), this.config.pointerCapture && (t(e, "change", this.pointerMove.bind(this)), t(e, "end", this.pointerUp.bind(this)), t(e, "cancel", this.pointerUp.bind(this)), t("lostPointerCapture", "", this.pointerUp.bind(this))), this.config.keys && (t("key", "down", this.keyDown.bind(this)), t("key", "up", this.keyUp.bind(this))), this.config.filterTaps && t("click", "", this.pointerClick.bind(this), {
526
+ capture: !0,
527
+ passive: !1
528
+ });
529
+ }
530
+ }
531
+ function dt(s) {
532
+ "persist" in s && typeof s.persist == "function" && s.persist();
533
+ }
534
+ const v = typeof window != "undefined" && window.document && window.document.createElement;
535
+ function X() {
536
+ return v && "ontouchstart" in window;
537
+ }
538
+ function pt() {
539
+ return X() || v && window.navigator.maxTouchPoints > 1;
540
+ }
541
+ function mt() {
542
+ return v && "onpointerdown" in window;
543
+ }
544
+ function _t() {
545
+ return v && "exitPointerLock" in window.document;
546
+ }
547
+ function gt() {
548
+ try {
549
+ return "constructor" in GestureEvent;
550
+ } catch (s) {
551
+ return !1;
552
+ }
553
+ }
554
+ const f = {
555
+ isBrowser: v,
556
+ gesture: gt(),
557
+ touch: X(),
558
+ touchscreen: pt(),
559
+ pointer: mt(),
560
+ pointerLock: _t()
561
+ }, yt = 250, vt = 180, bt = 0.5, Et = 50, Tt = 250, wt = 10, U = {
562
+ mouse: 0,
563
+ touch: 0,
564
+ pen: 8
565
+ }, At = u(u({}, y), {}, {
566
+ device(s, t, {
567
+ pointer: {
568
+ touch: e = !1,
569
+ lock: i = !1,
570
+ mouse: n = !1
571
+ } = {}
572
+ }) {
573
+ return this.pointerLock = i && f.pointerLock, f.touch && e ? "touch" : this.pointerLock ? "mouse" : f.pointer && !n ? "pointer" : f.touch ? "touch" : "mouse";
574
+ },
575
+ preventScrollAxis(s, t, {
576
+ preventScroll: e
577
+ }) {
578
+ if (this.preventScrollDelay = typeof e == "number" ? e : e || e === void 0 && s ? yt : void 0, !(!f.touchscreen || e === !1))
579
+ return s || (e !== void 0 ? "y" : void 0);
580
+ },
581
+ pointerCapture(s, t, {
582
+ pointer: {
583
+ capture: e = !0,
584
+ buttons: i = 1,
585
+ keys: n = !0
586
+ } = {}
587
+ }) {
588
+ return this.pointerButtons = i, this.keys = n, !this.pointerLock && this.device === "pointer" && e;
589
+ },
590
+ threshold(s, t, {
591
+ filterTaps: e = !1,
592
+ tapsThreshold: i = 3,
593
+ axis: n = void 0
594
+ }) {
595
+ const r = c.toVector(s, e ? i : n ? 1 : 0);
596
+ return this.filterTaps = e, this.tapsThreshold = i, r;
597
+ },
598
+ swipe({
599
+ velocity: s = bt,
600
+ distance: t = Et,
601
+ duration: e = Tt
602
+ } = {}) {
603
+ return {
604
+ velocity: this.transform(c.toVector(s)),
605
+ distance: this.transform(c.toVector(t)),
606
+ duration: e
607
+ };
608
+ },
609
+ delay(s = 0) {
610
+ switch (s) {
611
+ case !0:
612
+ return vt;
613
+ case !1:
614
+ return 0;
615
+ default:
616
+ return s;
617
+ }
618
+ },
619
+ axisThreshold(s) {
620
+ return s ? u(u({}, U), s) : U;
621
+ },
622
+ keyboardDisplacement(s = wt) {
623
+ return s;
624
+ }
625
+ });
626
+ function It(s) {
627
+ const [t, e] = s.overflow, [i, n] = s._delta, [r, o] = s._direction;
628
+ (t < 0 && i > 0 && r < 0 || t > 0 && i < 0 && r > 0) && (s._movement[0] = s._movementBound[0]), (e < 0 && n > 0 && o < 0 || e > 0 && n < 0 && o > 0) && (s._movement[1] = s._movementBound[1]);
629
+ }
630
+ const Dt = 30, kt = 100;
631
+ class xt extends H {
632
+ constructor(...t) {
633
+ super(...t), g(this, "ingKey", "pinching"), g(this, "aliasKey", "da");
634
+ }
635
+ init() {
636
+ this.state.offset = [1, 0], this.state.lastOffset = [1, 0], this.state._pointerEvents = /* @__PURE__ */ new Map();
637
+ }
638
+ reset() {
639
+ super.reset();
640
+ const t = this.state;
641
+ t._touchIds = [], t.canceled = !1, t.cancel = this.cancel.bind(this), t.turns = 0;
642
+ }
643
+ computeOffset() {
644
+ const {
645
+ type: t,
646
+ movement: e,
647
+ lastOffset: i
648
+ } = this.state;
649
+ t === "wheel" ? this.state.offset = c.add(e, i) : this.state.offset = [(1 + e[0]) * i[0], e[1] + i[1]];
650
+ }
651
+ computeMovement() {
652
+ const {
653
+ offset: t,
654
+ lastOffset: e
655
+ } = this.state;
656
+ this.state.movement = [t[0] / e[0], t[1] - e[1]];
657
+ }
658
+ axisIntent() {
659
+ const t = this.state, [e, i] = t._movement;
660
+ if (!t.axis) {
661
+ const n = Math.abs(e) * Dt - Math.abs(i);
662
+ n < 0 ? t.axis = "angle" : n > 0 && (t.axis = "scale");
663
+ }
664
+ }
665
+ restrictToAxis(t) {
666
+ this.config.lockDirection && (this.state.axis === "scale" ? t[1] = 0 : this.state.axis === "angle" && (t[0] = 0));
667
+ }
668
+ cancel() {
669
+ const t = this.state;
670
+ t.canceled || setTimeout(() => {
671
+ t.canceled = !0, t._active = !1, this.compute(), this.emit();
672
+ }, 0);
673
+ }
674
+ touchStart(t) {
675
+ this.ctrl.setEventIds(t);
676
+ const e = this.state, i = this.ctrl.touchIds;
677
+ if (e._active && e._touchIds.every((r) => i.has(r)) || i.size < 2)
678
+ return;
679
+ this.start(t), e._touchIds = Array.from(i).slice(0, 2);
680
+ const n = C(t, e._touchIds);
681
+ n && this.pinchStart(t, n);
682
+ }
683
+ pointerStart(t) {
684
+ if (t.buttons != null && t.buttons % 2 !== 1)
685
+ return;
686
+ this.ctrl.setEventIds(t), t.target.setPointerCapture(t.pointerId);
687
+ const e = this.state, i = e._pointerEvents, n = this.ctrl.pointerIds;
688
+ if (e._active && Array.from(i.keys()).every((o) => n.has(o)) || (i.size < 2 && i.set(t.pointerId, t), e._pointerEvents.size < 2))
689
+ return;
690
+ this.start(t);
691
+ const r = k(...Array.from(i.values()));
692
+ r && this.pinchStart(t, r);
693
+ }
694
+ pinchStart(t, e) {
695
+ const i = this.state;
696
+ i.origin = e.origin, this.computeValues([e.distance, e.angle]), this.computeInitial(), this.compute(t), this.emit();
697
+ }
698
+ touchMove(t) {
699
+ if (!this.state._active)
700
+ return;
701
+ const e = C(t, this.state._touchIds);
702
+ e && this.pinchMove(t, e);
703
+ }
704
+ pointerMove(t) {
705
+ const e = this.state._pointerEvents;
706
+ if (e.has(t.pointerId) && e.set(t.pointerId, t), !this.state._active)
707
+ return;
708
+ const i = k(...Array.from(e.values()));
709
+ i && this.pinchMove(t, i);
710
+ }
711
+ pinchMove(t, e) {
712
+ const i = this.state, n = i._values[1], r = e.angle - n;
713
+ let o = 0;
714
+ Math.abs(r) > 270 && (o += Math.sign(r)), this.computeValues([e.distance, e.angle - 360 * o]), i.origin = e.origin, i.turns = o, i._movement = [i._values[0] / i._initial[0] - 1, i._values[1] - i._initial[1]], this.compute(t), this.emit();
715
+ }
716
+ touchEnd(t) {
717
+ this.ctrl.setEventIds(t), this.state._active && this.state._touchIds.some((e) => !this.ctrl.touchIds.has(e)) && (this.state._active = !1, this.compute(t), this.emit());
718
+ }
719
+ pointerEnd(t) {
720
+ const e = this.state;
721
+ this.ctrl.setEventIds(t);
722
+ try {
723
+ t.target.releasePointerCapture(t.pointerId);
724
+ } catch (i) {
725
+ }
726
+ e._pointerEvents.has(t.pointerId) && e._pointerEvents.delete(t.pointerId), e._active && e._pointerEvents.size < 2 && (e._active = !1, this.compute(t), this.emit());
727
+ }
728
+ gestureStart(t) {
729
+ t.cancelable && t.preventDefault();
730
+ const e = this.state;
731
+ e._active || (this.start(t), this.computeValues([t.scale, t.rotation]), e.origin = [t.clientX, t.clientY], this.compute(t), this.emit());
732
+ }
733
+ gestureMove(t) {
734
+ if (t.cancelable && t.preventDefault(), !this.state._active)
735
+ return;
736
+ const e = this.state;
737
+ this.computeValues([t.scale, t.rotation]), e.origin = [t.clientX, t.clientY];
738
+ const i = e._movement;
739
+ e._movement = [t.scale - 1, t.rotation], e._delta = c.sub(e._movement, i), this.compute(t), this.emit();
740
+ }
741
+ gestureEnd(t) {
742
+ this.state._active && (this.state._active = !1, this.compute(t), this.emit());
743
+ }
744
+ wheel(t) {
745
+ const e = this.config.modifierKey;
746
+ e && (Array.isArray(e) ? !e.find((i) => t[i]) : !t[e]) || (this.state._active ? this.wheelChange(t) : this.wheelStart(t), this.timeoutStore.add("wheelEnd", this.wheelEnd.bind(this)));
747
+ }
748
+ wheelStart(t) {
749
+ this.start(t), this.wheelChange(t);
750
+ }
751
+ wheelChange(t) {
752
+ "uv" in t || t.cancelable && t.preventDefault();
753
+ const i = this.state;
754
+ i._delta = [-nt(t)[1] / kt * i.offset[0], 0], c.addTo(i._movement, i._delta), It(i), this.state.origin = [t.clientX, t.clientY], this.compute(t), this.emit();
755
+ }
756
+ wheelEnd() {
757
+ this.state._active && (this.state._active = !1, this.compute(), this.emit());
758
+ }
759
+ bind(t) {
760
+ const e = this.config.device;
761
+ e && (t(e, "start", this[e + "Start"].bind(this)), t(e, "change", this[e + "Move"].bind(this)), t(e, "end", this[e + "End"].bind(this)), t(e, "cancel", this[e + "End"].bind(this)), t("lostPointerCapture", "", this[e + "End"].bind(this))), this.config.pinchOnWheel && t("wheel", "", this.wheel.bind(this), {
762
+ passive: !1
763
+ });
764
+ }
765
+ }
766
+ const St = u(u({}, N), {}, {
767
+ device(s, t, {
768
+ shared: e,
769
+ pointer: {
770
+ touch: i = !1
771
+ } = {}
772
+ }) {
773
+ if (e.target && !f.touch && f.gesture)
774
+ return "gesture";
775
+ if (f.touch && i)
776
+ return "touch";
777
+ if (f.touchscreen) {
778
+ if (f.pointer)
779
+ return "pointer";
780
+ if (f.touch)
781
+ return "touch";
782
+ }
783
+ },
784
+ bounds(s, t, {
785
+ scaleBounds: e = {},
786
+ angleBounds: i = {}
787
+ }) {
788
+ const n = (o) => {
789
+ const h = K(A(e, o), {
790
+ min: -1 / 0,
791
+ max: 1 / 0
792
+ });
793
+ return [h.min, h.max];
794
+ }, r = (o) => {
795
+ const h = K(A(i, o), {
796
+ min: -1 / 0,
797
+ max: 1 / 0
798
+ });
799
+ return [h.min, h.max];
800
+ };
801
+ return typeof e != "function" && typeof i != "function" ? [n(), r()] : (o) => [n(o), r(o)];
802
+ },
803
+ threshold(s, t, e) {
804
+ return this.lockDirection = e.axis === "lock", c.toVector(s, this.lockDirection ? [0.1, 3] : 0);
805
+ },
806
+ modifierKey(s) {
807
+ return s === void 0 ? "ctrlKey" : s;
808
+ },
809
+ pinchOnWheel(s = !0) {
810
+ return s;
811
+ }
812
+ });
813
+ u(u({}, y), {}, {
814
+ mouseOnly: (s = !0) => s
815
+ });
816
+ u(u({}, y), {}, {
817
+ mouseOnly: (s = !0) => s
818
+ });
819
+ const Pt = /* @__PURE__ */ new Map(), Ct = /* @__PURE__ */ new Map();
820
+ function Ut(s) {
821
+ Pt.set(s.key, s.engine), Ct.set(s.key, s.resolver);
822
+ }
823
+ const Vt = {
824
+ key: "drag",
825
+ engine: lt,
826
+ resolver: At
827
+ }, Yt = {
828
+ key: "pinch",
829
+ engine: xt,
830
+ resolver: St
831
+ };
832
+ export {
833
+ Ct as C,
834
+ Pt as E,
835
+ f as S,
836
+ u as _,
837
+ g as a,
838
+ Rt as b,
839
+ Bt as c,
840
+ Ot as d,
841
+ Vt as e,
842
+ Yt as f,
843
+ x as i,
844
+ Lt as p,
845
+ Ut as r,
846
+ Kt as t
847
+ };