@qy_better_lib/hooks 0.0.15 → 0.1.1

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 (789) hide show
  1. package/dist/@qy_better_lib/hooks.min.js +263 -2
  2. package/lib/_virtual/_cloneBuffer.js +4 -0
  3. package/lib/_virtual/_commonjs-dynamic-modules.js +6 -0
  4. package/lib/_virtual/_commonjsHelpers.js +8 -0
  5. package/lib/_virtual/_nodeUtil.js +4 -0
  6. package/lib/_virtual/index.js +7 -0
  7. package/lib/_virtual/isBuffer.js +4 -0
  8. package/lib/index.d.ts +4 -0
  9. package/lib/node_modules/@qy_better_lib/core/lib/directives/click-outside.js +8 -0
  10. package/lib/node_modules/@qy_better_lib/core/lib/utils/is.js +8 -0
  11. package/lib/node_modules/@qy_better_lib/core/lib/utils/object.js +15 -0
  12. package/lib/packages/hooks/node_modules/@antv/x6/es/config/index.js +11 -0
  13. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/background.js +134 -0
  14. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/base.js +37 -0
  15. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/coord.js +108 -0
  16. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/css.js +41 -0
  17. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/defs.js +115 -0
  18. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/graph.js +628 -0
  19. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/grid.js +143 -0
  20. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/highlight.js +111 -0
  21. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/mousewheel.js +80 -0
  22. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/options.js +150 -0
  23. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/panning.js +120 -0
  24. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/size.js +62 -0
  25. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/transform.js +255 -0
  26. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/view.js +404 -0
  27. package/lib/packages/hooks/node_modules/@antv/x6/es/graph/virtual-render.js +60 -0
  28. package/lib/packages/hooks/node_modules/@antv/x6/es/model/animation.js +81 -0
  29. package/lib/packages/hooks/node_modules/@antv/x6/es/model/cell.js +764 -0
  30. package/lib/packages/hooks/node_modules/@antv/x6/es/model/collection.js +163 -0
  31. package/lib/packages/hooks/node_modules/@antv/x6/es/model/edge.js +511 -0
  32. package/lib/packages/hooks/node_modules/@antv/x6/es/model/model.js +640 -0
  33. package/lib/packages/hooks/node_modules/@antv/x6/es/model/node.js +490 -0
  34. package/lib/packages/hooks/node_modules/@antv/x6/es/model/port.js +151 -0
  35. package/lib/packages/hooks/node_modules/@antv/x6/es/model/registry.js +19 -0
  36. package/lib/packages/hooks/node_modules/@antv/x6/es/model/store.js +159 -0
  37. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/align.js +49 -0
  38. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/connection.js +56 -0
  39. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/fill.js +28 -0
  40. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/filter.js +28 -0
  41. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/html.js +8 -0
  42. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/index.js +37 -0
  43. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/main.js +66 -0
  44. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/marker.js +82 -0
  45. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/port.js +8 -0
  46. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/raw.js +20 -0
  47. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/ref.js +167 -0
  48. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/stroke.js +33 -0
  49. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/style.js +29 -0
  50. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/text.js +105 -0
  51. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/title.js +41 -0
  52. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/flip-x.js +9 -0
  53. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/flip-xy.js +9 -0
  54. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/flip-y.js +9 -0
  55. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/index.js +14 -0
  56. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/main.js +10 -0
  57. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/watermark.js +21 -0
  58. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/anchor.js +29 -0
  59. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/bbox.js +10 -0
  60. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/boundary.js +66 -0
  61. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/index.js +11 -0
  62. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/main.js +10 -0
  63. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/rect.js +33 -0
  64. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/util.js +50 -0
  65. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-strategy/index.js +11 -0
  66. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-strategy/main.js +7 -0
  67. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-strategy/noop.js +4 -0
  68. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-strategy/pin.js +54 -0
  69. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/index.js +11 -0
  70. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/jumpover.js +117 -0
  71. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/loop.js +25 -0
  72. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/main.js +12 -0
  73. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/normal.js +16 -0
  74. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/rounded.js +25 -0
  75. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/smooth.js +26 -0
  76. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/closest.js +18 -0
  77. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/index.js +11 -0
  78. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/length.js +7 -0
  79. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/main.js +10 -0
  80. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/orth.js +41 -0
  81. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/ratio.js +7 -0
  82. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/blur.js +12 -0
  83. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/brightness.js +16 -0
  84. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/contrast.js +16 -0
  85. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/drop-shadow.js +22 -0
  86. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/gray-scale.js +12 -0
  87. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/highlight.js +16 -0
  88. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/hue-rotate.js +11 -0
  89. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/index.js +11 -0
  90. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/invert.js +16 -0
  91. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/main.js +24 -0
  92. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/outline.js +20 -0
  93. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/saturate.js +11 -0
  94. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/sepia.js +12 -0
  95. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/util.js +10 -0
  96. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/dot.js +37 -0
  97. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/double-mesh.js +53 -0
  98. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/fixed-dot.js +37 -0
  99. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/index.js +51 -0
  100. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/main.js +10 -0
  101. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/mesh.js +36 -0
  102. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/class.js +33 -0
  103. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/index.js +20 -0
  104. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/main.js +8 -0
  105. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/opacity.js +31 -0
  106. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/stroke.js +102 -0
  107. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/async.js +32 -0
  108. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/circle.js +36 -0
  109. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/classic.js +63 -0
  110. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/cross.js +26 -0
  111. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/diamond.js +26 -0
  112. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/ellipse.js +16 -0
  113. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/index.js +15 -0
  114. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/main.js +18 -0
  115. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/path.js +16 -0
  116. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/util.js +22 -0
  117. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/bbox.js +39 -0
  118. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/index.js +11 -0
  119. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/main.js +18 -0
  120. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/middle-side.js +29 -0
  121. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/node-center.js +7 -0
  122. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/orth.js +25 -0
  123. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/util.js +54 -0
  124. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/index.js +11 -0
  125. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/inout.js +46 -0
  126. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/main.js +16 -0
  127. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/radial.js +29 -0
  128. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/side.js +21 -0
  129. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/util.js +36 -0
  130. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/absolute.js +5 -0
  131. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/ellipse.js +28 -0
  132. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/index.js +11 -0
  133. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/line.js +37 -0
  134. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/main.js +13 -0
  135. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/util.js +38 -0
  136. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/registry.js +80 -0
  137. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/er.js +33 -0
  138. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/index.js +11 -0
  139. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/loop.js +63 -0
  140. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/main.js +16 -0
  141. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/index.js +27 -0
  142. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/obstacle-map.js +74 -0
  143. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/options.js +106 -0
  144. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/router.js +115 -0
  145. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/sorted-set.js +46 -0
  146. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/util.js +127 -0
  147. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/metro.js +65 -0
  148. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/normal.js +6 -0
  149. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/oneside.js +42 -0
  150. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/orth.js +134 -0
  151. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/util.js +60 -0
  152. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/anchor.js +207 -0
  153. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/arrowhead.js +138 -0
  154. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/boundary.js +81 -0
  155. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/button.js +124 -0
  156. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/editor.js +218 -0
  157. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/index.js +70 -0
  158. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/segments.js +241 -0
  159. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/util.js +30 -0
  160. package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/vertices.js +248 -0
  161. package/lib/packages/hooks/node_modules/@antv/x6/es/renderer/queueJob.js +69 -0
  162. package/lib/packages/hooks/node_modules/@antv/x6/es/renderer/renderer.js +96 -0
  163. package/lib/packages/hooks/node_modules/@antv/x6/es/renderer/scheduler.js +287 -0
  164. package/lib/packages/hooks/node_modules/@antv/x6/es/shape/base.js +74 -0
  165. package/lib/packages/hooks/node_modules/@antv/x6/es/shape/circle.js +10 -0
  166. package/lib/packages/hooks/node_modules/@antv/x6/es/shape/edge.js +43 -0
  167. package/lib/packages/hooks/node_modules/@antv/x6/es/shape/ellipse.js +11 -0
  168. package/lib/packages/hooks/node_modules/@antv/x6/es/shape/html.js +128 -0
  169. package/lib/packages/hooks/node_modules/@antv/x6/es/shape/image.js +12 -0
  170. package/lib/packages/hooks/node_modules/@antv/x6/es/shape/path.js +63 -0
  171. package/lib/packages/hooks/node_modules/@antv/x6/es/shape/poly.js +72 -0
  172. package/lib/packages/hooks/node_modules/@antv/x6/es/shape/polygon.js +3 -0
  173. package/lib/packages/hooks/node_modules/@antv/x6/es/shape/polyline.js +3 -0
  174. package/lib/packages/hooks/node_modules/@antv/x6/es/shape/rect.js +9 -0
  175. package/lib/packages/hooks/node_modules/@antv/x6/es/shape/text-block.js +122 -0
  176. package/lib/packages/hooks/node_modules/@antv/x6/es/shape/util.js +72 -0
  177. package/lib/packages/hooks/node_modules/@antv/x6/es/style/raw.js +163 -0
  178. package/lib/packages/hooks/node_modules/@antv/x6/es/util/index.js +231 -0
  179. package/lib/packages/hooks/node_modules/@antv/x6/es/view/attr.js +209 -0
  180. package/lib/packages/hooks/node_modules/@antv/x6/es/view/cache.js +56 -0
  181. package/lib/packages/hooks/node_modules/@antv/x6/es/view/cell.js +434 -0
  182. package/lib/packages/hooks/node_modules/@antv/x6/es/view/edge.js +1074 -0
  183. package/lib/packages/hooks/node_modules/@antv/x6/es/view/flag.js +45 -0
  184. package/lib/packages/hooks/node_modules/@antv/x6/es/view/markup.js +231 -0
  185. package/lib/packages/hooks/node_modules/@antv/x6/es/view/node.js +609 -0
  186. package/lib/packages/hooks/node_modules/@antv/x6/es/view/tool.js +239 -0
  187. package/lib/packages/hooks/node_modules/@antv/x6/es/view/view.js +261 -0
  188. package/lib/packages/hooks/node_modules/@antv/x6-common/es/algorithm/dijkstra.js +26 -0
  189. package/lib/packages/hooks/node_modules/@antv/x6-common/es/algorithm/priorityqueue.js +85 -0
  190. package/lib/packages/hooks/node_modules/@antv/x6-common/es/animation/interp.js +29 -0
  191. package/lib/packages/hooks/node_modules/@antv/x6-common/es/animation/timing.js +206 -0
  192. package/lib/packages/hooks/node_modules/@antv/x6-common/es/color/index.js +342 -0
  193. package/lib/packages/hooks/node_modules/@antv/x6-common/es/common/basecoat.js +24 -0
  194. package/lib/packages/hooks/node_modules/@antv/x6-common/es/common/disposable.js +92 -0
  195. package/lib/packages/hooks/node_modules/@antv/x6-common/es/css-loader/loader.js +29 -0
  196. package/lib/packages/hooks/node_modules/@antv/x6-common/es/datauri/index.js +98 -0
  197. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dictionary/dictionary.js +35 -0
  198. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/attr.js +94 -0
  199. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/class.js +55 -0
  200. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/css.js +49 -0
  201. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/data.js +34 -0
  202. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/elem.js +140 -0
  203. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/core.js +148 -0
  204. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/hook.js +19 -0
  205. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/main.js +60 -0
  206. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/object.js +90 -0
  207. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/special.js +33 -0
  208. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/store.js +19 -0
  209. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/util.js +111 -0
  210. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/matrix.js +145 -0
  211. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/mousewheel.js +29 -0
  212. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/path.js +219 -0
  213. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/prefix.js +24 -0
  214. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/style.js +8 -0
  215. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/text.js +209 -0
  216. package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/transform.js +82 -0
  217. package/lib/packages/hooks/node_modules/@antv/x6-common/es/event/events.js +48 -0
  218. package/lib/packages/hooks/node_modules/@antv/x6-common/es/event/util.js +13 -0
  219. package/lib/packages/hooks/node_modules/@antv/x6-common/es/function/async.js +21 -0
  220. package/lib/packages/hooks/node_modules/@antv/x6-common/es/function/function.js +29 -0
  221. package/lib/packages/hooks/node_modules/@antv/x6-common/es/modifier/index.js +31 -0
  222. package/lib/packages/hooks/node_modules/@antv/x6-common/es/number/number.js +27 -0
  223. package/lib/packages/hooks/node_modules/@antv/x6-common/es/object/inherit.js +28 -0
  224. package/lib/packages/hooks/node_modules/@antv/x6-common/es/object/mixins.js +10 -0
  225. package/lib/packages/hooks/node_modules/@antv/x6-common/es/object/object.js +42 -0
  226. package/lib/packages/hooks/node_modules/@antv/x6-common/es/platform/index.js +52 -0
  227. package/lib/packages/hooks/node_modules/@antv/x6-common/es/polyfill/index.js +17 -0
  228. package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/index.js +22 -0
  229. package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/sensors/index.js +6 -0
  230. package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/sensors/object.js +32 -0
  231. package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/sensors/observer.js +28 -0
  232. package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/sensors/util.js +11 -0
  233. package/lib/packages/hooks/node_modules/@antv/x6-common/es/string/format.js +11 -0
  234. package/lib/packages/hooks/node_modules/@antv/x6-common/es/string/hashcode.js +11 -0
  235. package/lib/packages/hooks/node_modules/@antv/x6-common/es/string/suggestion.js +58 -0
  236. package/lib/packages/hooks/node_modules/@antv/x6-common/es/string/uuid.js +12 -0
  237. package/lib/packages/hooks/node_modules/@antv/x6-common/es/text/annotate.js +21 -0
  238. package/lib/packages/hooks/node_modules/@antv/x6-common/es/text/sanitize.js +6 -0
  239. package/lib/packages/hooks/node_modules/@antv/x6-common/es/unit/index.js +43 -0
  240. package/lib/packages/hooks/node_modules/@antv/x6-common/es/vector/index.js +260 -0
  241. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/angle.js +16 -0
  242. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/curve.js +341 -0
  243. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/ellipse.js +135 -0
  244. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/geometry.js +11 -0
  245. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/line.js +286 -0
  246. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/close.js +101 -0
  247. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/curveto.js +118 -0
  248. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/lineto.js +105 -0
  249. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/moveto.js +124 -0
  250. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/normalize.js +191 -0
  251. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/path.js +570 -0
  252. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/segment.js +44 -0
  253. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/util.js +80 -0
  254. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/point.js +319 -0
  255. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/polyline.js +273 -0
  256. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/rectangle.js +361 -0
  257. package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/util.js +36 -0
  258. package/lib/packages/hooks/node_modules/dagre/index.js +21 -0
  259. package/lib/packages/hooks/node_modules/dagre/lib/acyclic.js +47 -0
  260. package/lib/packages/hooks/node_modules/dagre/lib/add-border-segments.js +28 -0
  261. package/lib/packages/hooks/node_modules/dagre/lib/coordinate-system.js +57 -0
  262. package/lib/packages/hooks/node_modules/dagre/lib/data/list.js +32 -0
  263. package/lib/packages/hooks/node_modules/dagre/lib/debug.js +29 -0
  264. package/lib/packages/hooks/node_modules/dagre/lib/graphlib.js +17 -0
  265. package/lib/packages/hooks/node_modules/dagre/lib/greedy-fas.js +67 -0
  266. package/lib/packages/hooks/node_modules/dagre/lib/layout.js +267 -0
  267. package/lib/packages/hooks/node_modules/dagre/lib/lodash.js +69 -0
  268. package/lib/packages/hooks/node_modules/dagre/lib/nesting-graph.js +71 -0
  269. package/lib/packages/hooks/node_modules/dagre/lib/normalize.js +44 -0
  270. package/lib/packages/hooks/node_modules/dagre/lib/order/add-subgraph-constraints.js +24 -0
  271. package/lib/packages/hooks/node_modules/dagre/lib/order/barycenter.js +32 -0
  272. package/lib/packages/hooks/node_modules/dagre/lib/order/build-layer-graph.js +32 -0
  273. package/lib/packages/hooks/node_modules/dagre/lib/order/cross-count.js +41 -0
  274. package/lib/packages/hooks/node_modules/dagre/lib/order/index.js +50 -0
  275. package/lib/packages/hooks/node_modules/dagre/lib/order/init-order.js +32 -0
  276. package/lib/packages/hooks/node_modules/dagre/lib/order/resolve-conflicts.js +61 -0
  277. package/lib/packages/hooks/node_modules/dagre/lib/order/sort-subgraph.js +46 -0
  278. package/lib/packages/hooks/node_modules/dagre/lib/order/sort.js +35 -0
  279. package/lib/packages/hooks/node_modules/dagre/lib/parent-dummy-chains.js +48 -0
  280. package/lib/packages/hooks/node_modules/dagre/lib/position/bk.js +225 -0
  281. package/lib/packages/hooks/node_modules/dagre/lib/position/index.js +30 -0
  282. package/lib/packages/hooks/node_modules/dagre/lib/rank/feasible-tree.js +41 -0
  283. package/lib/packages/hooks/node_modules/dagre/lib/rank/index.js +36 -0
  284. package/lib/packages/hooks/node_modules/dagre/lib/rank/network-simplex.js +91 -0
  285. package/lib/packages/hooks/node_modules/dagre/lib/rank/util.js +34 -0
  286. package/lib/packages/hooks/node_modules/dagre/lib/util.js +144 -0
  287. package/lib/packages/hooks/node_modules/dagre/lib/version.js +7 -0
  288. package/lib/packages/hooks/node_modules/graphlib/index.js +18 -0
  289. package/lib/packages/hooks/node_modules/graphlib/lib/alg/components.js +21 -0
  290. package/lib/packages/hooks/node_modules/graphlib/lib/alg/dfs.js +26 -0
  291. package/lib/packages/hooks/node_modules/graphlib/lib/alg/dijkstra-all.js +18 -0
  292. package/lib/packages/hooks/node_modules/graphlib/lib/alg/dijkstra.js +38 -0
  293. package/lib/packages/hooks/node_modules/graphlib/lib/alg/find-cycles.js +18 -0
  294. package/lib/packages/hooks/node_modules/graphlib/lib/alg/floyd-warshall.js +42 -0
  295. package/lib/packages/hooks/node_modules/graphlib/lib/alg/index.js +30 -0
  296. package/lib/packages/hooks/node_modules/graphlib/lib/alg/is-acyclic.js +22 -0
  297. package/lib/packages/hooks/node_modules/graphlib/lib/alg/postorder.js +15 -0
  298. package/lib/packages/hooks/node_modules/graphlib/lib/alg/preorder.js +15 -0
  299. package/lib/packages/hooks/node_modules/graphlib/lib/alg/prim.js +40 -0
  300. package/lib/packages/hooks/node_modules/graphlib/lib/alg/tarjan.js +34 -0
  301. package/lib/packages/hooks/node_modules/graphlib/lib/alg/topsort.js +25 -0
  302. package/lib/packages/hooks/node_modules/graphlib/lib/data/priority-queue.js +56 -0
  303. package/lib/packages/hooks/node_modules/graphlib/lib/graph.js +210 -0
  304. package/lib/packages/hooks/node_modules/graphlib/lib/index.js +12 -0
  305. package/lib/packages/hooks/node_modules/graphlib/lib/json.js +48 -0
  306. package/lib/packages/hooks/node_modules/graphlib/lib/lodash.js +49 -0
  307. package/lib/packages/hooks/node_modules/graphlib/lib/version.js +7 -0
  308. package/lib/packages/hooks/node_modules/lodash/_DataView.js +12 -0
  309. package/lib/packages/hooks/node_modules/lodash/_Hash.js +22 -0
  310. package/lib/packages/hooks/node_modules/lodash/_ListCache.js +22 -0
  311. package/lib/packages/hooks/node_modules/lodash/_Map.js +12 -0
  312. package/lib/packages/hooks/node_modules/lodash/_MapCache.js +22 -0
  313. package/lib/packages/hooks/node_modules/lodash/_Promise.js +12 -0
  314. package/lib/packages/hooks/node_modules/lodash/_Set.js +12 -0
  315. package/lib/packages/hooks/node_modules/lodash/_SetCache.js +18 -0
  316. package/lib/packages/hooks/node_modules/lodash/_Stack.js +20 -0
  317. package/lib/packages/hooks/node_modules/lodash/_Symbol.js +11 -0
  318. package/lib/packages/hooks/node_modules/lodash/_Uint8Array.js +11 -0
  319. package/lib/packages/hooks/node_modules/lodash/_WeakMap.js +12 -0
  320. package/lib/packages/hooks/node_modules/lodash/_apply.js +22 -0
  321. package/lib/packages/hooks/node_modules/lodash/_arrayEach.js +14 -0
  322. package/lib/packages/hooks/node_modules/lodash/_arrayFilter.js +16 -0
  323. package/lib/packages/hooks/node_modules/lodash/_arrayIncludes.js +15 -0
  324. package/lib/packages/hooks/node_modules/lodash/_arrayIncludesWith.js +15 -0
  325. package/lib/packages/hooks/node_modules/lodash/_arrayLikeKeys.js +26 -0
  326. package/lib/packages/hooks/node_modules/lodash/_arrayMap.js +14 -0
  327. package/lib/packages/hooks/node_modules/lodash/_arrayPush.js +14 -0
  328. package/lib/packages/hooks/node_modules/lodash/_arrayReduce.js +15 -0
  329. package/lib/packages/hooks/node_modules/lodash/_arraySome.js +15 -0
  330. package/lib/packages/hooks/node_modules/lodash/_asciiSize.js +11 -0
  331. package/lib/packages/hooks/node_modules/lodash/_assignMergeValue.js +15 -0
  332. package/lib/packages/hooks/node_modules/lodash/_assignValue.js +16 -0
  333. package/lib/packages/hooks/node_modules/lodash/_assocIndexOf.js +17 -0
  334. package/lib/packages/hooks/node_modules/lodash/_baseAssign.js +15 -0
  335. package/lib/packages/hooks/node_modules/lodash/_baseAssignIn.js +15 -0
  336. package/lib/packages/hooks/node_modules/lodash/_baseAssignValue.js +19 -0
  337. package/lib/packages/hooks/node_modules/lodash/_baseClone.js +70 -0
  338. package/lib/packages/hooks/node_modules/lodash/_baseCreate.js +23 -0
  339. package/lib/packages/hooks/node_modules/lodash/_baseEach.js +12 -0
  340. package/lib/packages/hooks/node_modules/lodash/_baseExtremum.js +19 -0
  341. package/lib/packages/hooks/node_modules/lodash/_baseFilter.js +17 -0
  342. package/lib/packages/hooks/node_modules/lodash/_baseFindIndex.js +15 -0
  343. package/lib/packages/hooks/node_modules/lodash/_baseFlatten.js +20 -0
  344. package/lib/packages/hooks/node_modules/lodash/_baseFor.js +11 -0
  345. package/lib/packages/hooks/node_modules/lodash/_baseForOwn.js +15 -0
  346. package/lib/packages/hooks/node_modules/lodash/_baseGet.js +18 -0
  347. package/lib/packages/hooks/node_modules/lodash/_baseGetAllKeys.js +16 -0
  348. package/lib/packages/hooks/node_modules/lodash/_baseGetTag.js +16 -0
  349. package/lib/packages/hooks/node_modules/lodash/_baseGt.js +12 -0
  350. package/lib/packages/hooks/node_modules/lodash/_baseHas.js +13 -0
  351. package/lib/packages/hooks/node_modules/lodash/_baseHasIn.js +12 -0
  352. package/lib/packages/hooks/node_modules/lodash/_baseIndexOf.js +16 -0
  353. package/lib/packages/hooks/node_modules/lodash/_baseIsArguments.js +15 -0
  354. package/lib/packages/hooks/node_modules/lodash/_baseIsEqual.js +15 -0
  355. package/lib/packages/hooks/node_modules/lodash/_baseIsEqualDeep.js +38 -0
  356. package/lib/packages/hooks/node_modules/lodash/_baseIsMap.js +15 -0
  357. package/lib/packages/hooks/node_modules/lodash/_baseIsMatch.js +37 -0
  358. package/lib/packages/hooks/node_modules/lodash/_baseIsNaN.js +12 -0
  359. package/lib/packages/hooks/node_modules/lodash/_baseIsNative.js +22 -0
  360. package/lib/packages/hooks/node_modules/lodash/_baseIsSet.js +15 -0
  361. package/lib/packages/hooks/node_modules/lodash/_baseIsTypedArray.js +17 -0
  362. package/lib/packages/hooks/node_modules/lodash/_baseIteratee.js +18 -0
  363. package/lib/packages/hooks/node_modules/lodash/_baseKeys.js +20 -0
  364. package/lib/packages/hooks/node_modules/lodash/_baseKeysIn.js +21 -0
  365. package/lib/packages/hooks/node_modules/lodash/_baseLt.js +12 -0
  366. package/lib/packages/hooks/node_modules/lodash/_baseMap.js +18 -0
  367. package/lib/packages/hooks/node_modules/lodash/_baseMatches.js +19 -0
  368. package/lib/packages/hooks/node_modules/lodash/_baseMatchesProperty.js +23 -0
  369. package/lib/packages/hooks/node_modules/lodash/_baseMerge.js +27 -0
  370. package/lib/packages/hooks/node_modules/lodash/_baseMergeDeep.js +38 -0
  371. package/lib/packages/hooks/node_modules/lodash/_baseOrderBy.js +37 -0
  372. package/lib/packages/hooks/node_modules/lodash/_basePick.js +17 -0
  373. package/lib/packages/hooks/node_modules/lodash/_basePickBy.js +20 -0
  374. package/lib/packages/hooks/node_modules/lodash/_baseProperty.js +14 -0
  375. package/lib/packages/hooks/node_modules/lodash/_basePropertyDeep.js +16 -0
  376. package/lib/packages/hooks/node_modules/lodash/_baseRange.js +15 -0
  377. package/lib/packages/hooks/node_modules/lodash/_baseReduce.js +14 -0
  378. package/lib/packages/hooks/node_modules/lodash/_baseRest.js +16 -0
  379. package/lib/packages/hooks/node_modules/lodash/_baseSet.js +31 -0
  380. package/lib/packages/hooks/node_modules/lodash/_baseSetToString.js +20 -0
  381. package/lib/packages/hooks/node_modules/lodash/_baseSortBy.js +15 -0
  382. package/lib/packages/hooks/node_modules/lodash/_baseTimes.js +14 -0
  383. package/lib/packages/hooks/node_modules/lodash/_baseToString.js +24 -0
  384. package/lib/packages/hooks/node_modules/lodash/_baseTrim.js +14 -0
  385. package/lib/packages/hooks/node_modules/lodash/_baseUnary.js +14 -0
  386. package/lib/packages/hooks/node_modules/lodash/_baseUniq.js +39 -0
  387. package/lib/packages/hooks/node_modules/lodash/_baseValues.js +16 -0
  388. package/lib/packages/hooks/node_modules/lodash/_baseZipObject.js +16 -0
  389. package/lib/packages/hooks/node_modules/lodash/_cacheHas.js +12 -0
  390. package/lib/packages/hooks/node_modules/lodash/_castFunction.js +14 -0
  391. package/lib/packages/hooks/node_modules/lodash/_castPath.js +17 -0
  392. package/lib/packages/hooks/node_modules/lodash/_cloneArrayBuffer.js +15 -0
  393. package/lib/packages/hooks/node_modules/lodash/_cloneBuffer.js +19 -0
  394. package/lib/packages/hooks/node_modules/lodash/_cloneDataView.js +15 -0
  395. package/lib/packages/hooks/node_modules/lodash/_cloneRegExp.js +14 -0
  396. package/lib/packages/hooks/node_modules/lodash/_cloneSymbol.js +14 -0
  397. package/lib/packages/hooks/node_modules/lodash/_cloneTypedArray.js +15 -0
  398. package/lib/packages/hooks/node_modules/lodash/_compareAscending.js +21 -0
  399. package/lib/packages/hooks/node_modules/lodash/_compareMultiple.js +23 -0
  400. package/lib/packages/hooks/node_modules/lodash/_copyArray.js +15 -0
  401. package/lib/packages/hooks/node_modules/lodash/_copyObject.js +21 -0
  402. package/lib/packages/hooks/node_modules/lodash/_copySymbols.js +15 -0
  403. package/lib/packages/hooks/node_modules/lodash/_copySymbolsIn.js +15 -0
  404. package/lib/packages/hooks/node_modules/lodash/_coreJsData.js +11 -0
  405. package/lib/packages/hooks/node_modules/lodash/_createAssigner.js +22 -0
  406. package/lib/packages/hooks/node_modules/lodash/_createBaseEach.js +22 -0
  407. package/lib/packages/hooks/node_modules/lodash/_createBaseFor.js +19 -0
  408. package/lib/packages/hooks/node_modules/lodash/_createFind.js +26 -0
  409. package/lib/packages/hooks/node_modules/lodash/_createRange.js +18 -0
  410. package/lib/packages/hooks/node_modules/lodash/_createSet.js +15 -0
  411. package/lib/packages/hooks/node_modules/lodash/_defineProperty.js +17 -0
  412. package/lib/packages/hooks/node_modules/lodash/_equalArrays.js +46 -0
  413. package/lib/packages/hooks/node_modules/lodash/_equalByTag.js +51 -0
  414. package/lib/packages/hooks/node_modules/lodash/_equalObjects.js +42 -0
  415. package/lib/packages/hooks/node_modules/lodash/_flatRest.js +16 -0
  416. package/lib/packages/hooks/node_modules/lodash/_freeGlobal.js +11 -0
  417. package/lib/packages/hooks/node_modules/lodash/_getAllKeys.js +16 -0
  418. package/lib/packages/hooks/node_modules/lodash/_getAllKeysIn.js +16 -0
  419. package/lib/packages/hooks/node_modules/lodash/_getMapData.js +15 -0
  420. package/lib/packages/hooks/node_modules/lodash/_getMatchData.js +19 -0
  421. package/lib/packages/hooks/node_modules/lodash/_getNative.js +16 -0
  422. package/lib/packages/hooks/node_modules/lodash/_getPrototype.js +11 -0
  423. package/lib/packages/hooks/node_modules/lodash/_getRawTag.js +21 -0
  424. package/lib/packages/hooks/node_modules/lodash/_getSymbols.js +16 -0
  425. package/lib/packages/hooks/node_modules/lodash/_getSymbolsIn.js +18 -0
  426. package/lib/packages/hooks/node_modules/lodash/_getTag.js +33 -0
  427. package/lib/packages/hooks/node_modules/lodash/_getValue.js +12 -0
  428. package/lib/packages/hooks/node_modules/lodash/_hasPath.js +26 -0
  429. package/lib/packages/hooks/node_modules/lodash/_hasUnicode.js +13 -0
  430. package/lib/packages/hooks/node_modules/lodash/_hashClear.js +14 -0
  431. package/lib/packages/hooks/node_modules/lodash/_hashDelete.js +13 -0
  432. package/lib/packages/hooks/node_modules/lodash/_hashGet.js +19 -0
  433. package/lib/packages/hooks/node_modules/lodash/_hashHas.js +15 -0
  434. package/lib/packages/hooks/node_modules/lodash/_hashSet.js +15 -0
  435. package/lib/packages/hooks/node_modules/lodash/_initCloneArray.js +14 -0
  436. package/lib/packages/hooks/node_modules/lodash/_initCloneByTag.js +48 -0
  437. package/lib/packages/hooks/node_modules/lodash/_initCloneObject.js +16 -0
  438. package/lib/packages/hooks/node_modules/lodash/_isFlattenable.js +16 -0
  439. package/lib/packages/hooks/node_modules/lodash/_isIndex.js +14 -0
  440. package/lib/packages/hooks/node_modules/lodash/_isIterateeCall.js +20 -0
  441. package/lib/packages/hooks/node_modules/lodash/_isKey.js +18 -0
  442. package/lib/packages/hooks/node_modules/lodash/_isKeyable.js +13 -0
  443. package/lib/packages/hooks/node_modules/lodash/_isMasked.js +17 -0
  444. package/lib/packages/hooks/node_modules/lodash/_isPrototype.js +14 -0
  445. package/lib/packages/hooks/node_modules/lodash/_isStrictComparable.js +14 -0
  446. package/lib/packages/hooks/node_modules/lodash/_listCacheClear.js +12 -0
  447. package/lib/packages/hooks/node_modules/lodash/_listCacheDelete.js +18 -0
  448. package/lib/packages/hooks/node_modules/lodash/_listCacheGet.js +15 -0
  449. package/lib/packages/hooks/node_modules/lodash/_listCacheHas.js +14 -0
  450. package/lib/packages/hooks/node_modules/lodash/_listCacheSet.js +15 -0
  451. package/lib/packages/hooks/node_modules/lodash/_mapCacheClear.js +20 -0
  452. package/lib/packages/hooks/node_modules/lodash/_mapCacheDelete.js +15 -0
  453. package/lib/packages/hooks/node_modules/lodash/_mapCacheGet.js +14 -0
  454. package/lib/packages/hooks/node_modules/lodash/_mapCacheHas.js +14 -0
  455. package/lib/packages/hooks/node_modules/lodash/_mapCacheSet.js +15 -0
  456. package/lib/packages/hooks/node_modules/lodash/_mapToArray.js +15 -0
  457. package/lib/packages/hooks/node_modules/lodash/_matchesStrictComparable.js +14 -0
  458. package/lib/packages/hooks/node_modules/lodash/_memoizeCapped.js +17 -0
  459. package/lib/packages/hooks/node_modules/lodash/_nativeCreate.js +11 -0
  460. package/lib/packages/hooks/node_modules/lodash/_nativeKeys.js +11 -0
  461. package/lib/packages/hooks/node_modules/lodash/_nativeKeysIn.js +16 -0
  462. package/lib/packages/hooks/node_modules/lodash/_nodeUtil.js +19 -0
  463. package/lib/packages/hooks/node_modules/lodash/_objectToString.js +13 -0
  464. package/lib/packages/hooks/node_modules/lodash/_overArg.js +14 -0
  465. package/lib/packages/hooks/node_modules/lodash/_overRest.js +21 -0
  466. package/lib/packages/hooks/node_modules/lodash/_root.js +11 -0
  467. package/lib/packages/hooks/node_modules/lodash/_safeGet.js +13 -0
  468. package/lib/packages/hooks/node_modules/lodash/_setCacheAdd.js +13 -0
  469. package/lib/packages/hooks/node_modules/lodash/_setCacheHas.js +12 -0
  470. package/lib/packages/hooks/node_modules/lodash/_setToArray.js +15 -0
  471. package/lib/packages/hooks/node_modules/lodash/_setToString.js +12 -0
  472. package/lib/packages/hooks/node_modules/lodash/_shortOut.js +22 -0
  473. package/lib/packages/hooks/node_modules/lodash/_stackClear.js +14 -0
  474. package/lib/packages/hooks/node_modules/lodash/_stackDelete.js +13 -0
  475. package/lib/packages/hooks/node_modules/lodash/_stackGet.js +12 -0
  476. package/lib/packages/hooks/node_modules/lodash/_stackHas.js +12 -0
  477. package/lib/packages/hooks/node_modules/lodash/_stackSet.js +23 -0
  478. package/lib/packages/hooks/node_modules/lodash/_strictIndexOf.js +15 -0
  479. package/lib/packages/hooks/node_modules/lodash/_stringSize.js +16 -0
  480. package/lib/packages/hooks/node_modules/lodash/_stringToPath.js +16 -0
  481. package/lib/packages/hooks/node_modules/lodash/_toKey.js +17 -0
  482. package/lib/packages/hooks/node_modules/lodash/_toSource.js +23 -0
  483. package/lib/packages/hooks/node_modules/lodash/_trimmedEndIndex.js +15 -0
  484. package/lib/packages/hooks/node_modules/lodash/_unicodeSize.js +15 -0
  485. package/lib/packages/hooks/node_modules/lodash/clone.js +14 -0
  486. package/lib/packages/hooks/node_modules/lodash/cloneDeep.js +14 -0
  487. package/lib/packages/hooks/node_modules/lodash/constant.js +14 -0
  488. package/lib/packages/hooks/node_modules/lodash/defaults.js +23 -0
  489. package/lib/packages/hooks/node_modules/lodash/each.js +8 -0
  490. package/lib/packages/hooks/node_modules/lodash/eq.js +12 -0
  491. package/lib/packages/hooks/node_modules/lodash/filter.js +18 -0
  492. package/lib/packages/hooks/node_modules/lodash/find.js +12 -0
  493. package/lib/packages/hooks/node_modules/lodash/findIndex.js +20 -0
  494. package/lib/packages/hooks/node_modules/lodash/flatten.js +15 -0
  495. package/lib/packages/hooks/node_modules/lodash/forEach.js +18 -0
  496. package/lib/packages/hooks/node_modules/lodash/forIn.js +16 -0
  497. package/lib/packages/hooks/node_modules/lodash/get.js +15 -0
  498. package/lib/packages/hooks/node_modules/lodash/has.js +15 -0
  499. package/lib/packages/hooks/node_modules/lodash/hasIn.js +15 -0
  500. package/lib/packages/hooks/node_modules/lodash/identity.js +12 -0
  501. package/lib/packages/hooks/node_modules/lodash/isArguments.js +16 -0
  502. package/lib/packages/hooks/node_modules/lodash/isArray.js +10 -0
  503. package/lib/packages/hooks/node_modules/lodash/isArrayLike.js +15 -0
  504. package/lib/packages/hooks/node_modules/lodash/isArrayLikeObject.js +15 -0
  505. package/lib/packages/hooks/node_modules/lodash/isBuffer.js +14 -0
  506. package/lib/packages/hooks/node_modules/lodash/isEmpty.js +33 -0
  507. package/lib/packages/hooks/node_modules/lodash/isFunction.js +18 -0
  508. package/lib/packages/hooks/node_modules/lodash/isLength.js +13 -0
  509. package/lib/packages/hooks/node_modules/lodash/isMap.js +13 -0
  510. package/lib/packages/hooks/node_modules/lodash/isObject.js +13 -0
  511. package/lib/packages/hooks/node_modules/lodash/isObjectLike.js +12 -0
  512. package/lib/packages/hooks/node_modules/lodash/isPlainObject.js +22 -0
  513. package/lib/packages/hooks/node_modules/lodash/isSet.js +13 -0
  514. package/lib/packages/hooks/node_modules/lodash/isString.js +16 -0
  515. package/lib/packages/hooks/node_modules/lodash/isSymbol.js +15 -0
  516. package/lib/packages/hooks/node_modules/lodash/isTypedArray.js +13 -0
  517. package/lib/packages/hooks/node_modules/lodash/isUndefined.js +12 -0
  518. package/lib/packages/hooks/node_modules/lodash/keys.js +16 -0
  519. package/lib/packages/hooks/node_modules/lodash/keysIn.js +16 -0
  520. package/lib/packages/hooks/node_modules/lodash/last.js +13 -0
  521. package/lib/packages/hooks/node_modules/lodash/map.js +18 -0
  522. package/lib/packages/hooks/node_modules/lodash/mapValues.js +19 -0
  523. package/lib/packages/hooks/node_modules/lodash/max.js +16 -0
  524. package/lib/packages/hooks/node_modules/lodash/memoize.js +23 -0
  525. package/lib/packages/hooks/node_modules/lodash/merge.js +14 -0
  526. package/lib/packages/hooks/node_modules/lodash/min.js +16 -0
  527. package/lib/packages/hooks/node_modules/lodash/minBy.js +16 -0
  528. package/lib/packages/hooks/node_modules/lodash/noop.js +11 -0
  529. package/lib/packages/hooks/node_modules/lodash/now.js +13 -0
  530. package/lib/packages/hooks/node_modules/lodash/pick.js +14 -0
  531. package/lib/packages/hooks/node_modules/lodash/property.js +17 -0
  532. package/lib/packages/hooks/node_modules/lodash/range.js +11 -0
  533. package/lib/packages/hooks/node_modules/lodash/reduce.js +19 -0
  534. package/lib/packages/hooks/node_modules/lodash/size.js +23 -0
  535. package/lib/packages/hooks/node_modules/lodash/sortBy.js +19 -0
  536. package/lib/packages/hooks/node_modules/lodash/stubArray.js +12 -0
  537. package/lib/packages/hooks/node_modules/lodash/stubFalse.js +12 -0
  538. package/lib/packages/hooks/node_modules/lodash/toFinite.js +20 -0
  539. package/lib/packages/hooks/node_modules/lodash/toInteger.js +15 -0
  540. package/lib/packages/hooks/node_modules/lodash/toNumber.js +28 -0
  541. package/lib/packages/hooks/node_modules/lodash/toPlainObject.js +15 -0
  542. package/lib/packages/hooks/node_modules/lodash/toString.js +14 -0
  543. package/lib/packages/hooks/node_modules/lodash/transform.js +30 -0
  544. package/lib/packages/hooks/node_modules/lodash/union.js +16 -0
  545. package/lib/packages/hooks/node_modules/lodash/uniqueId.js +15 -0
  546. package/lib/packages/hooks/node_modules/lodash/values.js +15 -0
  547. package/lib/packages/hooks/node_modules/lodash/zipObject.js +15 -0
  548. package/lib/packages/hooks/node_modules/lodash-es/_DataView.js +6 -0
  549. package/lib/packages/hooks/node_modules/lodash-es/_Hash.js +20 -0
  550. package/lib/packages/hooks/node_modules/lodash-es/_ListCache.js +20 -0
  551. package/lib/packages/hooks/node_modules/lodash-es/_Map.js +6 -0
  552. package/lib/packages/hooks/node_modules/lodash-es/_MapCache.js +20 -0
  553. package/lib/packages/hooks/node_modules/lodash-es/_Promise.js +6 -0
  554. package/lib/packages/hooks/node_modules/lodash-es/_Set.js +6 -0
  555. package/lib/packages/hooks/node_modules/lodash-es/_SetCache.js +13 -0
  556. package/lib/packages/hooks/node_modules/lodash-es/_Stack.js +18 -0
  557. package/lib/packages/hooks/node_modules/lodash-es/_Symbol.js +5 -0
  558. package/lib/packages/hooks/node_modules/lodash-es/_Uint8Array.js +5 -0
  559. package/lib/packages/hooks/node_modules/lodash-es/_WeakMap.js +6 -0
  560. package/lib/packages/hooks/node_modules/lodash-es/_apply.js +16 -0
  561. package/lib/packages/hooks/node_modules/lodash-es/_arrayAggregator.js +10 -0
  562. package/lib/packages/hooks/node_modules/lodash-es/_arrayEach.js +8 -0
  563. package/lib/packages/hooks/node_modules/lodash-es/_arrayFilter.js +10 -0
  564. package/lib/packages/hooks/node_modules/lodash-es/_arrayIncludes.js +8 -0
  565. package/lib/packages/hooks/node_modules/lodash-es/_arrayLikeKeys.js +20 -0
  566. package/lib/packages/hooks/node_modules/lodash-es/_arrayMap.js +8 -0
  567. package/lib/packages/hooks/node_modules/lodash-es/_arrayPush.js +8 -0
  568. package/lib/packages/hooks/node_modules/lodash-es/_arrayReduce.js +8 -0
  569. package/lib/packages/hooks/node_modules/lodash-es/_arraySome.js +9 -0
  570. package/lib/packages/hooks/node_modules/lodash-es/_asciiToArray.js +6 -0
  571. package/lib/packages/hooks/node_modules/lodash-es/_asciiWords.js +7 -0
  572. package/lib/packages/hooks/node_modules/lodash-es/_assignMergeValue.js +8 -0
  573. package/lib/packages/hooks/node_modules/lodash-es/_assignValue.js +10 -0
  574. package/lib/packages/hooks/node_modules/lodash-es/_assocIndexOf.js +10 -0
  575. package/lib/packages/hooks/node_modules/lodash-es/_baseAggregator.js +9 -0
  576. package/lib/packages/hooks/node_modules/lodash-es/_baseAssign.js +8 -0
  577. package/lib/packages/hooks/node_modules/lodash-es/_baseAssignIn.js +8 -0
  578. package/lib/packages/hooks/node_modules/lodash-es/_baseAssignValue.js +12 -0
  579. package/lib/packages/hooks/node_modules/lodash-es/_baseClamp.js +6 -0
  580. package/lib/packages/hooks/node_modules/lodash-es/_baseClone.js +65 -0
  581. package/lib/packages/hooks/node_modules/lodash-es/_baseCreate.js +17 -0
  582. package/lib/packages/hooks/node_modules/lodash-es/_baseDifference.js +24 -0
  583. package/lib/packages/hooks/node_modules/lodash-es/_baseEach.js +6 -0
  584. package/lib/packages/hooks/node_modules/lodash-es/_baseExtremum.js +12 -0
  585. package/lib/packages/hooks/node_modules/lodash-es/_baseFindIndex.js +9 -0
  586. package/lib/packages/hooks/node_modules/lodash-es/_baseFlatten.js +13 -0
  587. package/lib/packages/hooks/node_modules/lodash-es/_baseFor.js +5 -0
  588. package/lib/packages/hooks/node_modules/lodash-es/_baseForOwn.js +8 -0
  589. package/lib/packages/hooks/node_modules/lodash-es/_baseGet.js +11 -0
  590. package/lib/packages/hooks/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
  591. package/lib/packages/hooks/node_modules/lodash-es/_baseGetTag.js +10 -0
  592. package/lib/packages/hooks/node_modules/lodash-es/_baseGt.js +6 -0
  593. package/lib/packages/hooks/node_modules/lodash-es/_baseHas.js +7 -0
  594. package/lib/packages/hooks/node_modules/lodash-es/_baseHasIn.js +6 -0
  595. package/lib/packages/hooks/node_modules/lodash-es/_baseIndexOf.js +9 -0
  596. package/lib/packages/hooks/node_modules/lodash-es/_baseIsArguments.js +9 -0
  597. package/lib/packages/hooks/node_modules/lodash-es/_baseIsEqual.js +8 -0
  598. package/lib/packages/hooks/node_modules/lodash-es/_baseIsEqualDeep.js +32 -0
  599. package/lib/packages/hooks/node_modules/lodash-es/_baseIsMap.js +9 -0
  600. package/lib/packages/hooks/node_modules/lodash-es/_baseIsMatch.js +29 -0
  601. package/lib/packages/hooks/node_modules/lodash-es/_baseIsNaN.js +6 -0
  602. package/lib/packages/hooks/node_modules/lodash-es/_baseIsNative.js +16 -0
  603. package/lib/packages/hooks/node_modules/lodash-es/_baseIsSet.js +9 -0
  604. package/lib/packages/hooks/node_modules/lodash-es/_baseIsTypedArray.js +12 -0
  605. package/lib/packages/hooks/node_modules/lodash-es/_baseIteratee.js +11 -0
  606. package/lib/packages/hooks/node_modules/lodash-es/_baseKeys.js +14 -0
  607. package/lib/packages/hooks/node_modules/lodash-es/_baseKeysIn.js +15 -0
  608. package/lib/packages/hooks/node_modules/lodash-es/_baseMap.js +11 -0
  609. package/lib/packages/hooks/node_modules/lodash-es/_baseMatches.js +12 -0
  610. package/lib/packages/hooks/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
  611. package/lib/packages/hooks/node_modules/lodash-es/_baseMerge.js +20 -0
  612. package/lib/packages/hooks/node_modules/lodash-es/_baseMergeDeep.js +31 -0
  613. package/lib/packages/hooks/node_modules/lodash-es/_baseOrderBy.js +30 -0
  614. package/lib/packages/hooks/node_modules/lodash-es/_baseProperty.js +8 -0
  615. package/lib/packages/hooks/node_modules/lodash-es/_basePropertyDeep.js +9 -0
  616. package/lib/packages/hooks/node_modules/lodash-es/_basePropertyOf.js +8 -0
  617. package/lib/packages/hooks/node_modules/lodash-es/_baseRest.js +9 -0
  618. package/lib/packages/hooks/node_modules/lodash-es/_baseSetToString.js +14 -0
  619. package/lib/packages/hooks/node_modules/lodash-es/_baseSlice.js +10 -0
  620. package/lib/packages/hooks/node_modules/lodash-es/_baseSortBy.js +9 -0
  621. package/lib/packages/hooks/node_modules/lodash-es/_baseSortedIndex.js +18 -0
  622. package/lib/packages/hooks/node_modules/lodash-es/_baseSortedIndexBy.js +19 -0
  623. package/lib/packages/hooks/node_modules/lodash-es/_baseTimes.js +8 -0
  624. package/lib/packages/hooks/node_modules/lodash-es/_baseToString.js +18 -0
  625. package/lib/packages/hooks/node_modules/lodash-es/_baseTrim.js +8 -0
  626. package/lib/packages/hooks/node_modules/lodash-es/_baseUnary.js +8 -0
  627. package/lib/packages/hooks/node_modules/lodash-es/_baseUniq.js +30 -0
  628. package/lib/packages/hooks/node_modules/lodash-es/_cacheHas.js +6 -0
  629. package/lib/packages/hooks/node_modules/lodash-es/_castPath.js +10 -0
  630. package/lib/packages/hooks/node_modules/lodash-es/_castSlice.js +8 -0
  631. package/lib/packages/hooks/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
  632. package/lib/packages/hooks/node_modules/lodash-es/_cloneBuffer.js +11 -0
  633. package/lib/packages/hooks/node_modules/lodash-es/_cloneDataView.js +8 -0
  634. package/lib/packages/hooks/node_modules/lodash-es/_cloneRegExp.js +8 -0
  635. package/lib/packages/hooks/node_modules/lodash-es/_cloneSymbol.js +8 -0
  636. package/lib/packages/hooks/node_modules/lodash-es/_cloneTypedArray.js +8 -0
  637. package/lib/packages/hooks/node_modules/lodash-es/_compareAscending.js +14 -0
  638. package/lib/packages/hooks/node_modules/lodash-es/_compareMultiple.js +16 -0
  639. package/lib/packages/hooks/node_modules/lodash-es/_copyArray.js +9 -0
  640. package/lib/packages/hooks/node_modules/lodash-es/_copyObject.js +14 -0
  641. package/lib/packages/hooks/node_modules/lodash-es/_copySymbols.js +8 -0
  642. package/lib/packages/hooks/node_modules/lodash-es/_copySymbolsIn.js +8 -0
  643. package/lib/packages/hooks/node_modules/lodash-es/_coreJsData.js +5 -0
  644. package/lib/packages/hooks/node_modules/lodash-es/_createAggregator.js +13 -0
  645. package/lib/packages/hooks/node_modules/lodash-es/_createAssigner.js +15 -0
  646. package/lib/packages/hooks/node_modules/lodash-es/_createBaseEach.js +15 -0
  647. package/lib/packages/hooks/node_modules/lodash-es/_createBaseFor.js +13 -0
  648. package/lib/packages/hooks/node_modules/lodash-es/_createCaseFirst.js +14 -0
  649. package/lib/packages/hooks/node_modules/lodash-es/_createCompounder.js +12 -0
  650. package/lib/packages/hooks/node_modules/lodash-es/_createSet.js +9 -0
  651. package/lib/packages/hooks/node_modules/lodash-es/_customDefaultsMerge.js +8 -0
  652. package/lib/packages/hooks/node_modules/lodash-es/_deburrLetter.js +198 -0
  653. package/lib/packages/hooks/node_modules/lodash-es/_defineProperty.js +11 -0
  654. package/lib/packages/hooks/node_modules/lodash-es/_equalArrays.js +40 -0
  655. package/lib/packages/hooks/node_modules/lodash-es/_equalByTag.js +45 -0
  656. package/lib/packages/hooks/node_modules/lodash-es/_equalObjects.js +36 -0
  657. package/lib/packages/hooks/node_modules/lodash-es/_freeGlobal.js +4 -0
  658. package/lib/packages/hooks/node_modules/lodash-es/_getAllKeys.js +9 -0
  659. package/lib/packages/hooks/node_modules/lodash-es/_getAllKeysIn.js +9 -0
  660. package/lib/packages/hooks/node_modules/lodash-es/_getMapData.js +8 -0
  661. package/lib/packages/hooks/node_modules/lodash-es/_getMatchData.js +12 -0
  662. package/lib/packages/hooks/node_modules/lodash-es/_getNative.js +9 -0
  663. package/lib/packages/hooks/node_modules/lodash-es/_getPrototype.js +5 -0
  664. package/lib/packages/hooks/node_modules/lodash-es/_getRawTag.js +15 -0
  665. package/lib/packages/hooks/node_modules/lodash-es/_getSymbols.js +10 -0
  666. package/lib/packages/hooks/node_modules/lodash-es/_getSymbolsIn.js +12 -0
  667. package/lib/packages/hooks/node_modules/lodash-es/_getTag.js +28 -0
  668. package/lib/packages/hooks/node_modules/lodash-es/_getValue.js +6 -0
  669. package/lib/packages/hooks/node_modules/lodash-es/_hasPath.js +19 -0
  670. package/lib/packages/hooks/node_modules/lodash-es/_hasUnicode.js +7 -0
  671. package/lib/packages/hooks/node_modules/lodash-es/_hasUnicodeWord.js +7 -0
  672. package/lib/packages/hooks/node_modules/lodash-es/_hashClear.js +7 -0
  673. package/lib/packages/hooks/node_modules/lodash-es/_hashDelete.js +7 -0
  674. package/lib/packages/hooks/node_modules/lodash-es/_hashGet.js +13 -0
  675. package/lib/packages/hooks/node_modules/lodash-es/_hashHas.js +9 -0
  676. package/lib/packages/hooks/node_modules/lodash-es/_hashSet.js +9 -0
  677. package/lib/packages/hooks/node_modules/lodash-es/_initCloneArray.js +8 -0
  678. package/lib/packages/hooks/node_modules/lodash-es/_initCloneByTag.js +42 -0
  679. package/lib/packages/hooks/node_modules/lodash-es/_initCloneObject.js +9 -0
  680. package/lib/packages/hooks/node_modules/lodash-es/_isFlattenable.js +10 -0
  681. package/lib/packages/hooks/node_modules/lodash-es/_isIndex.js +8 -0
  682. package/lib/packages/hooks/node_modules/lodash-es/_isIterateeCall.js +13 -0
  683. package/lib/packages/hooks/node_modules/lodash-es/_isKey.js +12 -0
  684. package/lib/packages/hooks/node_modules/lodash-es/_isKeyable.js +7 -0
  685. package/lib/packages/hooks/node_modules/lodash-es/_isMasked.js +11 -0
  686. package/lib/packages/hooks/node_modules/lodash-es/_isPrototype.js +8 -0
  687. package/lib/packages/hooks/node_modules/lodash-es/_isStrictComparable.js +7 -0
  688. package/lib/packages/hooks/node_modules/lodash-es/_listCacheClear.js +6 -0
  689. package/lib/packages/hooks/node_modules/lodash-es/_listCacheDelete.js +12 -0
  690. package/lib/packages/hooks/node_modules/lodash-es/_listCacheGet.js +8 -0
  691. package/lib/packages/hooks/node_modules/lodash-es/_listCacheHas.js +7 -0
  692. package/lib/packages/hooks/node_modules/lodash-es/_listCacheSet.js +8 -0
  693. package/lib/packages/hooks/node_modules/lodash-es/_mapCacheClear.js +13 -0
  694. package/lib/packages/hooks/node_modules/lodash-es/_mapCacheDelete.js +8 -0
  695. package/lib/packages/hooks/node_modules/lodash-es/_mapCacheGet.js +7 -0
  696. package/lib/packages/hooks/node_modules/lodash-es/_mapCacheHas.js +7 -0
  697. package/lib/packages/hooks/node_modules/lodash-es/_mapCacheSet.js +8 -0
  698. package/lib/packages/hooks/node_modules/lodash-es/_mapToArray.js +9 -0
  699. package/lib/packages/hooks/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
  700. package/lib/packages/hooks/node_modules/lodash-es/_memoizeCapped.js +11 -0
  701. package/lib/packages/hooks/node_modules/lodash-es/_nativeCreate.js +5 -0
  702. package/lib/packages/hooks/node_modules/lodash-es/_nativeKeys.js +5 -0
  703. package/lib/packages/hooks/node_modules/lodash-es/_nativeKeysIn.js +10 -0
  704. package/lib/packages/hooks/node_modules/lodash-es/_nodeUtil.js +11 -0
  705. package/lib/packages/hooks/node_modules/lodash-es/_objectToString.js +7 -0
  706. package/lib/packages/hooks/node_modules/lodash-es/_overArg.js +8 -0
  707. package/lib/packages/hooks/node_modules/lodash-es/_overRest.js +15 -0
  708. package/lib/packages/hooks/node_modules/lodash-es/_root.js +5 -0
  709. package/lib/packages/hooks/node_modules/lodash-es/_safeGet.js +7 -0
  710. package/lib/packages/hooks/node_modules/lodash-es/_setCacheAdd.js +7 -0
  711. package/lib/packages/hooks/node_modules/lodash-es/_setCacheHas.js +6 -0
  712. package/lib/packages/hooks/node_modules/lodash-es/_setToArray.js +9 -0
  713. package/lib/packages/hooks/node_modules/lodash-es/_setToString.js +6 -0
  714. package/lib/packages/hooks/node_modules/lodash-es/_shortOut.js +16 -0
  715. package/lib/packages/hooks/node_modules/lodash-es/_stackClear.js +7 -0
  716. package/lib/packages/hooks/node_modules/lodash-es/_stackDelete.js +7 -0
  717. package/lib/packages/hooks/node_modules/lodash-es/_stackGet.js +6 -0
  718. package/lib/packages/hooks/node_modules/lodash-es/_stackHas.js +6 -0
  719. package/lib/packages/hooks/node_modules/lodash-es/_stackSet.js +17 -0
  720. package/lib/packages/hooks/node_modules/lodash-es/_strictIndexOf.js +9 -0
  721. package/lib/packages/hooks/node_modules/lodash-es/_stringToArray.js +9 -0
  722. package/lib/packages/hooks/node_modules/lodash-es/_stringToPath.js +10 -0
  723. package/lib/packages/hooks/node_modules/lodash-es/_toKey.js +10 -0
  724. package/lib/packages/hooks/node_modules/lodash-es/_toSource.js +17 -0
  725. package/lib/packages/hooks/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
  726. package/lib/packages/hooks/node_modules/lodash-es/_unicodeToArray.js +7 -0
  727. package/lib/packages/hooks/node_modules/lodash-es/_unicodeWords.js +16 -0
  728. package/lib/packages/hooks/node_modules/lodash-es/camelCase.js +8 -0
  729. package/lib/packages/hooks/node_modules/lodash-es/capitalize.js +8 -0
  730. package/lib/packages/hooks/node_modules/lodash-es/clamp.js +8 -0
  731. package/lib/packages/hooks/node_modules/lodash-es/clone.js +8 -0
  732. package/lib/packages/hooks/node_modules/lodash-es/cloneDeep.js +8 -0
  733. package/lib/packages/hooks/node_modules/lodash-es/constant.js +8 -0
  734. package/lib/packages/hooks/node_modules/lodash-es/debounce.js +54 -0
  735. package/lib/packages/hooks/node_modules/lodash-es/deburr.js +9 -0
  736. package/lib/packages/hooks/node_modules/lodash-es/defaults.js +17 -0
  737. package/lib/packages/hooks/node_modules/lodash-es/defaultsDeep.js +10 -0
  738. package/lib/packages/hooks/node_modules/lodash-es/difference.js +10 -0
  739. package/lib/packages/hooks/node_modules/lodash-es/eq.js +6 -0
  740. package/lib/packages/hooks/node_modules/lodash-es/get.js +8 -0
  741. package/lib/packages/hooks/node_modules/lodash-es/groupBy.js +8 -0
  742. package/lib/packages/hooks/node_modules/lodash-es/has.js +8 -0
  743. package/lib/packages/hooks/node_modules/lodash-es/hasIn.js +8 -0
  744. package/lib/packages/hooks/node_modules/lodash-es/identity.js +6 -0
  745. package/lib/packages/hooks/node_modules/lodash-es/isArguments.js +10 -0
  746. package/lib/packages/hooks/node_modules/lodash-es/isArray.js +4 -0
  747. package/lib/packages/hooks/node_modules/lodash-es/isArrayLike.js +8 -0
  748. package/lib/packages/hooks/node_modules/lodash-es/isArrayLikeObject.js +8 -0
  749. package/lib/packages/hooks/node_modules/lodash-es/isBuffer.js +6 -0
  750. package/lib/packages/hooks/node_modules/lodash-es/isEmpty.js +27 -0
  751. package/lib/packages/hooks/node_modules/lodash-es/isEqual.js +7 -0
  752. package/lib/packages/hooks/node_modules/lodash-es/isFunction.js +12 -0
  753. package/lib/packages/hooks/node_modules/lodash-es/isLength.js +7 -0
  754. package/lib/packages/hooks/node_modules/lodash-es/isMap.js +7 -0
  755. package/lib/packages/hooks/node_modules/lodash-es/isNumber.js +9 -0
  756. package/lib/packages/hooks/node_modules/lodash-es/isObject.js +7 -0
  757. package/lib/packages/hooks/node_modules/lodash-es/isObjectLike.js +6 -0
  758. package/lib/packages/hooks/node_modules/lodash-es/isPlainObject.js +16 -0
  759. package/lib/packages/hooks/node_modules/lodash-es/isSet.js +7 -0
  760. package/lib/packages/hooks/node_modules/lodash-es/isSymbol.js +9 -0
  761. package/lib/packages/hooks/node_modules/lodash-es/isTypedArray.js +7 -0
  762. package/lib/packages/hooks/node_modules/lodash-es/keys.js +9 -0
  763. package/lib/packages/hooks/node_modules/lodash-es/keysIn.js +9 -0
  764. package/lib/packages/hooks/node_modules/lodash-es/lowerFirst.js +5 -0
  765. package/lib/packages/hooks/node_modules/lodash-es/max.js +9 -0
  766. package/lib/packages/hooks/node_modules/lodash-es/memoize.js +18 -0
  767. package/lib/packages/hooks/node_modules/lodash-es/merge.js +8 -0
  768. package/lib/packages/hooks/node_modules/lodash-es/mergeWith.js +8 -0
  769. package/lib/packages/hooks/node_modules/lodash-es/noop.js +5 -0
  770. package/lib/packages/hooks/node_modules/lodash-es/now.js +7 -0
  771. package/lib/packages/hooks/node_modules/lodash-es/property.js +10 -0
  772. package/lib/packages/hooks/node_modules/lodash-es/sortBy.js +13 -0
  773. package/lib/packages/hooks/node_modules/lodash-es/sortedIndex.js +7 -0
  774. package/lib/packages/hooks/node_modules/lodash-es/sortedIndexBy.js +8 -0
  775. package/lib/packages/hooks/node_modules/lodash-es/startCase.js +8 -0
  776. package/lib/packages/hooks/node_modules/lodash-es/stubArray.js +6 -0
  777. package/lib/packages/hooks/node_modules/lodash-es/stubFalse.js +6 -0
  778. package/lib/packages/hooks/node_modules/lodash-es/throttle.js +16 -0
  779. package/lib/packages/hooks/node_modules/lodash-es/toNumber.js +22 -0
  780. package/lib/packages/hooks/node_modules/lodash-es/toPlainObject.js +8 -0
  781. package/lib/packages/hooks/node_modules/lodash-es/toString.js +7 -0
  782. package/lib/packages/hooks/node_modules/lodash-es/union.js +10 -0
  783. package/lib/packages/hooks/node_modules/lodash-es/uniq.js +7 -0
  784. package/lib/packages/hooks/node_modules/lodash-es/upperFirst.js +5 -0
  785. package/lib/packages/hooks/node_modules/lodash-es/words.js +10 -0
  786. package/lib/packages/hooks/node_modules/mqtt/dist/mqtt.esm.js +10402 -0
  787. package/lib/use-utils/index.d.ts +1 -0
  788. package/package.json +2 -2
  789. /package/lib/{node_modules → packages/hooks/node_modules}/mitt/dist/mitt.js +0 -0
@@ -0,0 +1,1074 @@
1
+ import { Angle as _ } from "../../../x6-geometry/es/angle.js";
2
+ import { Point as A } from "../../../x6-geometry/es/point.js";
3
+ import { Line as R } from "../../../x6-geometry/es/line.js";
4
+ import "../../../x6-geometry/es/ellipse.js";
5
+ import { Rectangle as k } from "../../../x6-geometry/es/rectangle.js";
6
+ import { Path as G } from "../../../x6-geometry/es/path/path.js";
7
+ import "../../../x6-geometry/es/util.js";
8
+ import "../../../x6-geometry/es/curve.js";
9
+ import { Polyline as j } from "../../../x6-geometry/es/polyline.js";
10
+ import "../../../x6-common/es/polyfill/index.js";
11
+ import "../../../x6-common/es/common/disposable.js";
12
+ import "../../../x6-common/es/common/basecoat.js";
13
+ import { isPercentage as J } from "../../../x6-common/es/number/number.js";
14
+ import { call as P } from "../../../x6-common/es/function/function.js";
15
+ import "../../../x6-common/es/platform/index.js";
16
+ import { createSvgElement as W, findParentByClass as q } from "../../../x6-common/es/dom/elem.js";
17
+ import "../../../x6-common/es/datauri/index.js";
18
+ import "../../../x6-common/es/unit/index.js";
19
+ import "../../../x6-common/es/dom/prefix.js";
20
+ import { Vector as B } from "../../../x6-common/es/vector/index.js";
21
+ import { matrixToTransformString as X, createSVGMatrix as K } from "../../../x6-common/es/dom/matrix.js";
22
+ import "../../../x6-common/es/dom/event/hook.js";
23
+ import "../../../x6-common/es/dom/event/main.js";
24
+ import "../../../x6-common/es/dom/event/object.js";
25
+ import "../../../x6-common/es/size-sensor/index.js";
26
+ import "../../../x6-common/es/algorithm/priorityqueue.js";
27
+ import "../../../x6-common/es/algorithm/dijkstra.js";
28
+ import "../../../x6-common/es/color/index.js";
29
+ import "../../../x6-common/es/modifier/index.js";
30
+ import "../../../x6-common/es/animation/timing.js";
31
+ import "../../../x6-common/es/animation/interp.js";
32
+ import "../registry/grid/index.js";
33
+ import "../registry/background/index.js";
34
+ import "../registry/filter/index.js";
35
+ import "../registry/attr/index.js";
36
+ import "../registry/highlighter/index.js";
37
+ import "../registry/port-layout/index.js";
38
+ import "../registry/port-label-layout/index.js";
39
+ import "../registry/tool/index.js";
40
+ import "../registry/marker/index.js";
41
+ import { NodeAnchor as z } from "../registry/node-anchor/index.js";
42
+ import { EdgeAnchor as F } from "../registry/edge-anchor/index.js";
43
+ import { ConnectionPoint as U } from "../registry/connection-point/index.js";
44
+ import { Router as S } from "../registry/router/index.js";
45
+ import { Connector as x } from "../registry/connector/index.js";
46
+ import "../registry/registry.js";
47
+ import { Edge as Z } from "../model/edge.js";
48
+ import { CellView as H } from "./cell.js";
49
+ import { NodeView as Q } from "./node.js";
50
+ import T from "../../../../lodash-es/has.js";
51
+ import N from "../../../../lodash-es/merge.js";
52
+ import Y from "../../../../lodash-es/clone.js";
53
+ var tt = function(M, t) {
54
+ var n = {};
55
+ for (var e in M) Object.prototype.hasOwnProperty.call(M, e) && t.indexOf(e) < 0 && (n[e] = M[e]);
56
+ if (M != null && typeof Object.getOwnPropertySymbols == "function")
57
+ for (var i = 0, e = Object.getOwnPropertySymbols(M); i < e.length; i++)
58
+ t.indexOf(e[i]) < 0 && Object.prototype.propertyIsEnumerable.call(M, e[i]) && (n[e[i]] = M[e[i]]);
59
+ return n;
60
+ };
61
+ class E extends H {
62
+ constructor() {
63
+ super(...arguments), this.POINT_ROUNDING = 2, this.labelDestroyFn = {};
64
+ }
65
+ get [Symbol.toStringTag]() {
66
+ return E.toStringTag;
67
+ }
68
+ getContainerClassName() {
69
+ return [super.getContainerClassName(), this.prefixClassName("edge")].join(" ");
70
+ }
71
+ get sourceBBox() {
72
+ const t = this.sourceView;
73
+ if (!t) {
74
+ const e = this.cell.getSource();
75
+ return new k(e.x, e.y);
76
+ }
77
+ const n = this.sourceMagnet;
78
+ return t.isEdgeElement(n) ? new k(this.sourceAnchor.x, this.sourceAnchor.y) : t.getBBoxOfElement(n || t.container);
79
+ }
80
+ get targetBBox() {
81
+ const t = this.targetView;
82
+ if (!t) {
83
+ const e = this.cell.getTarget();
84
+ return new k(e.x, e.y);
85
+ }
86
+ const n = this.targetMagnet;
87
+ return t.isEdgeElement(n) ? new k(this.targetAnchor.x, this.targetAnchor.y) : t.getBBoxOfElement(n || t.container);
88
+ }
89
+ isEdgeView() {
90
+ return !0;
91
+ }
92
+ confirmUpdate(t, n = {}) {
93
+ let e = t;
94
+ if (this.hasAction(e, "source")) {
95
+ if (!this.updateTerminalProperties("source"))
96
+ return e;
97
+ e = this.removeAction(e, "source");
98
+ }
99
+ if (this.hasAction(e, "target")) {
100
+ if (!this.updateTerminalProperties("target"))
101
+ return e;
102
+ e = this.removeAction(e, "target");
103
+ }
104
+ return this.hasAction(e, "render") ? (this.render(), e = this.removeAction(e, ["render", "update", "labels", "tools"]), e) : (e = this.handleAction(e, "update", () => this.update(n)), e = this.handleAction(e, "labels", () => this.onLabelsChange(n)), e = this.handleAction(e, "tools", () => this.renderTools()), e);
105
+ }
106
+ // #region render
107
+ render() {
108
+ return this.empty(), this.renderMarkup(), this.labelContainer = null, this.renderLabels(), this.update(), this.renderTools(), this;
109
+ }
110
+ renderMarkup() {
111
+ const t = this.cell.markup;
112
+ if (t) {
113
+ if (typeof t == "string")
114
+ throw new TypeError("Not support string markup.");
115
+ return this.renderJSONMarkup(t);
116
+ }
117
+ throw new TypeError("Invalid edge markup.");
118
+ }
119
+ renderJSONMarkup(t) {
120
+ const n = this.parseJSONMarkup(t, this.container);
121
+ this.selectors = n.selectors, this.container.append(n.fragment);
122
+ }
123
+ customizeLabels() {
124
+ if (this.labelContainer) {
125
+ const t = this.cell, n = t.labels;
126
+ for (let e = 0, i = n.length; e < i; e += 1) {
127
+ const s = n[e], o = this.labelCache[e], r = this.labelSelectors[e], a = this.graph.options.onEdgeLabelRendered;
128
+ if (a) {
129
+ const l = a({
130
+ edge: t,
131
+ label: s,
132
+ container: o,
133
+ selectors: r
134
+ });
135
+ l && (this.labelDestroyFn[e] = l);
136
+ }
137
+ }
138
+ }
139
+ }
140
+ destroyCustomizeLabels() {
141
+ const t = this.cell.labels;
142
+ if (this.labelCache && this.labelSelectors && this.labelDestroyFn)
143
+ for (let n = 0, e = t.length; n < e; n += 1) {
144
+ const i = this.labelDestroyFn[n], s = this.labelCache[n], o = this.labelSelectors[n];
145
+ i && s && o && i({
146
+ edge: this.cell,
147
+ label: t[n],
148
+ container: s,
149
+ selectors: o
150
+ });
151
+ }
152
+ this.labelDestroyFn = {};
153
+ }
154
+ renderLabels() {
155
+ const t = this.cell, n = t.getLabels(), e = n.length;
156
+ let i = this.labelContainer;
157
+ if (this.labelCache = {}, this.labelSelectors = {}, e <= 0)
158
+ return i && i.parentNode && i.parentNode.removeChild(i), this;
159
+ i ? this.empty(i) : (i = W("g"), this.addClass(this.prefixClassName("edge-labels"), i), this.labelContainer = i);
160
+ for (let s = 0, o = n.length; s < o; s += 1) {
161
+ const r = n[s], a = this.normalizeLabelMarkup(this.parseLabelMarkup(r.markup));
162
+ let l, c;
163
+ if (a)
164
+ l = a.node, c = a.selectors;
165
+ else {
166
+ const h = t.getDefaultLabel(), f = this.normalizeLabelMarkup(this.parseLabelMarkup(h.markup));
167
+ l = f.node, c = f.selectors;
168
+ }
169
+ l.setAttribute("data-index", `${s}`), i.appendChild(l);
170
+ const g = this.rootSelector;
171
+ if (c[g])
172
+ throw new Error("Ambiguous label root selector.");
173
+ c[g] = l, this.labelCache[s] = l, this.labelSelectors[s] = c;
174
+ }
175
+ return i.parentNode == null && this.container.appendChild(i), this.updateLabels(), this.customizeLabels(), this;
176
+ }
177
+ onLabelsChange(t = {}) {
178
+ this.destroyCustomizeLabels(), this.shouldRerenderLabels(t) ? this.renderLabels() : this.updateLabels(), this.updateLabelPositions();
179
+ }
180
+ shouldRerenderLabels(t = {}) {
181
+ const n = this.cell.previous("labels");
182
+ if (n == null)
183
+ return !0;
184
+ if ("propertyPathArray" in t && "propertyValue" in t) {
185
+ const e = t.propertyPathArray || [], i = e.length;
186
+ if (i > 1) {
187
+ const s = e[1];
188
+ if (n[s]) {
189
+ if (i === 2)
190
+ return typeof t.propertyValue == "object" && T(t.propertyValue, "markup");
191
+ if (e[2] !== "markup")
192
+ return !1;
193
+ }
194
+ }
195
+ }
196
+ return !0;
197
+ }
198
+ parseLabelMarkup(t) {
199
+ return t ? typeof t == "string" ? this.parseLabelStringMarkup(t) : this.parseJSONMarkup(t) : null;
200
+ }
201
+ parseLabelStringMarkup(t) {
202
+ const n = B.createVectors(t), e = document.createDocumentFragment();
203
+ for (let i = 0, s = n.length; i < s; i += 1) {
204
+ const o = n[i].node;
205
+ e.appendChild(o);
206
+ }
207
+ return { fragment: e, selectors: {} };
208
+ }
209
+ normalizeLabelMarkup(t) {
210
+ if (t == null)
211
+ return;
212
+ const n = t.fragment;
213
+ if (!(n instanceof DocumentFragment) || !n.hasChildNodes())
214
+ throw new Error("Invalid label markup.");
215
+ let e;
216
+ const i = n.childNodes;
217
+ return i.length > 1 || i[0].nodeName.toUpperCase() !== "G" ? e = B.create("g").append(n) : e = B.create(i[0]), e.addClass(this.prefixClassName("edge-label")), {
218
+ node: e.node,
219
+ selectors: t.selectors
220
+ };
221
+ }
222
+ updateLabels() {
223
+ if (this.labelContainer) {
224
+ const t = this.cell, n = t.labels, e = this.can("edgeLabelMovable"), i = t.getDefaultLabel();
225
+ for (let s = 0, o = n.length; s < o; s += 1) {
226
+ const r = this.labelCache[s], a = this.labelSelectors[s];
227
+ r.setAttribute("cursor", e ? "move" : "default");
228
+ const l = n[s], c = N({}, i.attrs, l.attrs);
229
+ this.updateAttrs(r, c, {
230
+ selectors: a,
231
+ rootBBox: l.size ? k.fromSize(l.size) : void 0
232
+ });
233
+ }
234
+ }
235
+ }
236
+ renderTools() {
237
+ const t = this.cell.getTools();
238
+ return this.addTools(t), this;
239
+ }
240
+ // #endregion
241
+ // #region updating
242
+ update(t = {}) {
243
+ this.cleanCache(), this.updateConnection(t);
244
+ const n = this.cell.getAttrs(), { text: e } = n, i = tt(n, ["text"]);
245
+ return i != null && this.updateAttrs(this.container, i, {
246
+ selectors: this.selectors
247
+ }), this.updateLabelPositions(), this.updateTools(t), this;
248
+ }
249
+ removeRedundantLinearVertices(t = {}) {
250
+ const n = this.cell, e = n.getVertices(), i = [this.sourceAnchor, ...e, this.targetAnchor], s = i.length, o = new j(i);
251
+ o.simplify({ threshold: 0.01 });
252
+ const r = o.points.map((l) => l.toJSON()), a = r.length;
253
+ return s === a ? 0 : (n.setVertices(r.slice(1, a - 1), t), s - a);
254
+ }
255
+ getTerminalView(t) {
256
+ switch (t) {
257
+ case "source":
258
+ return this.sourceView || null;
259
+ case "target":
260
+ return this.targetView || null;
261
+ default:
262
+ throw new Error(`Unknown terminal type '${t}'`);
263
+ }
264
+ }
265
+ getTerminalAnchor(t) {
266
+ switch (t) {
267
+ case "source":
268
+ return A.create(this.sourceAnchor);
269
+ case "target":
270
+ return A.create(this.targetAnchor);
271
+ default:
272
+ throw new Error(`Unknown terminal type '${t}'`);
273
+ }
274
+ }
275
+ getTerminalConnectionPoint(t) {
276
+ switch (t) {
277
+ case "source":
278
+ return A.create(this.sourcePoint);
279
+ case "target":
280
+ return A.create(this.targetPoint);
281
+ default:
282
+ throw new Error(`Unknown terminal type '${t}'`);
283
+ }
284
+ }
285
+ getTerminalMagnet(t, n = {}) {
286
+ switch (t) {
287
+ case "source": {
288
+ if (n.raw)
289
+ return this.sourceMagnet;
290
+ const e = this.sourceView;
291
+ return e ? this.sourceMagnet || e.container : null;
292
+ }
293
+ case "target": {
294
+ if (n.raw)
295
+ return this.targetMagnet;
296
+ const e = this.targetView;
297
+ return e ? this.targetMagnet || e.container : null;
298
+ }
299
+ default:
300
+ throw new Error(`Unknown terminal type '${t}'`);
301
+ }
302
+ }
303
+ updateConnection(t = {}) {
304
+ const n = this.cell;
305
+ if (t.translateBy && n.isFragmentDescendantOf(t.translateBy)) {
306
+ const e = t.tx || 0, i = t.ty || 0;
307
+ this.routePoints = new j(this.routePoints).translate(e, i).points, this.translateConnectionPoints(e, i), this.path.translate(e, i);
308
+ } else {
309
+ const e = n.getVertices(), i = this.findAnchors(e);
310
+ this.sourceAnchor = i.source, this.targetAnchor = i.target, this.routePoints = this.findRoutePoints(e);
311
+ const s = this.findConnectionPoints(this.routePoints, this.sourceAnchor, this.targetAnchor);
312
+ this.sourcePoint = s.source, this.targetPoint = s.target;
313
+ const o = this.findMarkerPoints(this.routePoints, this.sourcePoint, this.targetPoint);
314
+ this.path = this.findPath(this.routePoints, o.source || this.sourcePoint, o.target || this.targetPoint);
315
+ }
316
+ this.cleanCache();
317
+ }
318
+ findAnchors(t) {
319
+ const n = this.cell, e = n.source, i = n.target, s = t[0], o = t[t.length - 1];
320
+ return i.priority && !e.priority ? this.findAnchorsOrdered("target", o, "source", s) : this.findAnchorsOrdered("source", s, "target", o);
321
+ }
322
+ findAnchorsOrdered(t, n, e, i) {
323
+ let s, o;
324
+ const r = this.cell, a = r[t], l = r[e], c = this.getTerminalView(t), g = this.getTerminalView(e), h = this.getTerminalMagnet(t), f = this.getTerminalMagnet(e);
325
+ if (c) {
326
+ let u;
327
+ n ? u = A.create(n) : g ? u = f : u = A.create(l), s = this.getAnchor(a.anchor, c, h, u, t);
328
+ } else
329
+ s = A.create(a);
330
+ if (g) {
331
+ const u = A.create(i || s);
332
+ o = this.getAnchor(l.anchor, g, f, u, e);
333
+ } else
334
+ o = A.isPointLike(l) ? A.create(l) : new A();
335
+ return {
336
+ [t]: s,
337
+ [e]: o
338
+ };
339
+ }
340
+ getAnchor(t, n, e, i, s) {
341
+ const o = n.isEdgeElement(e), r = this.graph.options.connecting;
342
+ let a = typeof t == "string" ? { name: t } : t;
343
+ if (!a) {
344
+ const g = o ? (s === "source" ? r.sourceEdgeAnchor : r.targetEdgeAnchor) || r.edgeAnchor : (s === "source" ? r.sourceAnchor : r.targetAnchor) || r.anchor;
345
+ a = typeof g == "string" ? { name: g } : g;
346
+ }
347
+ if (!a)
348
+ throw new Error("Anchor should be specified.");
349
+ let l;
350
+ const c = a.name;
351
+ if (o) {
352
+ const g = F.registry.get(c);
353
+ if (typeof g != "function")
354
+ return F.registry.onNotFound(c);
355
+ l = P(g, this, n, e, i, a.args || {}, s);
356
+ } else {
357
+ const g = z.registry.get(c);
358
+ if (typeof g != "function")
359
+ return z.registry.onNotFound(c);
360
+ l = P(g, this, n, e, i, a.args || {}, s);
361
+ }
362
+ return l ? l.round(this.POINT_ROUNDING) : new A();
363
+ }
364
+ findRoutePoints(t = []) {
365
+ const n = this.graph.options.connecting.router || S.presets.normal, e = this.cell.getRouter() || n;
366
+ let i;
367
+ if (typeof e == "function")
368
+ i = P(e, this, t, {}, this);
369
+ else {
370
+ const s = typeof e == "string" ? e : e.name, o = typeof e == "string" ? {} : e.args || {}, r = s ? S.registry.get(s) : S.presets.normal;
371
+ if (typeof r != "function")
372
+ return S.registry.onNotFound(s);
373
+ i = P(r, this, t, o, this);
374
+ }
375
+ return i == null ? t.map((s) => A.create(s)) : i.map((s) => A.create(s));
376
+ }
377
+ findConnectionPoints(t, n, e) {
378
+ const i = this.cell, s = this.graph.options.connecting, o = i.getSource(), r = i.getTarget(), a = this.sourceView, l = this.targetView, c = t[0], g = t[t.length - 1];
379
+ let h;
380
+ if (a && !a.isEdgeElement(this.sourceMagnet)) {
381
+ const u = this.sourceMagnet || a.container, w = c || e, d = new R(w, n), m = o.connectionPoint || s.sourceConnectionPoint || s.connectionPoint;
382
+ h = this.getConnectionPoint(m, a, u, d, "source");
383
+ } else
384
+ h = n;
385
+ let f;
386
+ if (l && !l.isEdgeElement(this.targetMagnet)) {
387
+ const u = this.targetMagnet || l.container, w = r.connectionPoint || s.targetConnectionPoint || s.connectionPoint, d = g || n, m = new R(d, e);
388
+ f = this.getConnectionPoint(w, l, u, m, "target");
389
+ } else
390
+ f = e;
391
+ return {
392
+ source: h,
393
+ target: f
394
+ };
395
+ }
396
+ getConnectionPoint(t, n, e, i, s) {
397
+ const o = i.end;
398
+ if (t == null)
399
+ return o;
400
+ const r = typeof t == "string" ? t : t.name, a = typeof t == "string" ? {} : t.args, l = U.registry.get(r);
401
+ if (typeof l != "function")
402
+ return U.registry.onNotFound(r);
403
+ const c = P(l, this, i, n, e, a || {}, s);
404
+ return c ? c.round(this.POINT_ROUNDING) : o;
405
+ }
406
+ findMarkerPoints(t, n, e) {
407
+ const i = (g) => {
408
+ const h = this.cell.getAttrs(), f = Object.keys(h);
409
+ for (let u = 0, w = f.length; u < w; u += 1) {
410
+ const d = h[f[u]];
411
+ if (d[`${g}Marker`] || d[`${g}-marker`]) {
412
+ const m = d.strokeWidth || d["stroke-width"];
413
+ if (m)
414
+ return parseFloat(m);
415
+ break;
416
+ }
417
+ }
418
+ return null;
419
+ }, s = t[0], o = t[t.length - 1];
420
+ let r, a;
421
+ const l = i("source");
422
+ l && (r = n.clone().move(s || e, -l));
423
+ const c = i("target");
424
+ return c && (a = e.clone().move(o || n, -c)), this.sourceMarkerPoint = r || n.clone(), this.targetMarkerPoint = a || e.clone(), {
425
+ source: r,
426
+ target: a
427
+ };
428
+ }
429
+ findPath(t, n, e) {
430
+ const i = this.cell.getConnector() || this.graph.options.connecting.connector;
431
+ let s, o, r;
432
+ if (typeof i == "string" ? s = i : (s = i.name, o = i.args), s) {
433
+ const l = x.registry.get(s);
434
+ if (typeof l != "function")
435
+ return x.registry.onNotFound(s);
436
+ r = l;
437
+ } else
438
+ r = x.presets.normal;
439
+ const a = P(r, this, n, e, t, Object.assign(Object.assign({}, o), { raw: !0 }), this);
440
+ return typeof a == "string" ? G.parse(a) : a;
441
+ }
442
+ translateConnectionPoints(t, n) {
443
+ this.sourcePoint.translate(t, n), this.targetPoint.translate(t, n), this.sourceAnchor.translate(t, n), this.targetAnchor.translate(t, n), this.sourceMarkerPoint.translate(t, n), this.targetMarkerPoint.translate(t, n);
444
+ }
445
+ updateLabelPositions() {
446
+ if (this.labelContainer == null)
447
+ return this;
448
+ if (!this.path)
449
+ return this;
450
+ const n = this.cell, e = n.getLabels();
451
+ if (e.length === 0)
452
+ return this;
453
+ const i = n.getDefaultLabel(), s = this.normalizeLabelPosition(i.position);
454
+ for (let o = 0, r = e.length; o < r; o += 1) {
455
+ const a = e[o], l = this.labelCache[o];
456
+ if (!l)
457
+ continue;
458
+ const c = this.normalizeLabelPosition(a.position), g = N({}, s, c), h = this.getLabelTransformationMatrix(g);
459
+ l.setAttribute("transform", X(h));
460
+ }
461
+ return this;
462
+ }
463
+ updateTerminalProperties(t) {
464
+ const n = this.cell, e = this.graph, i = n[t], s = i && i.cell, o = `${t}View`;
465
+ if (!s)
466
+ return this[o] = null, this.updateTerminalMagnet(t), !0;
467
+ const r = e.getCellById(s);
468
+ if (!r)
469
+ throw new Error(`Edge's ${t} node with id "${s}" not exists`);
470
+ const a = r.findView(e);
471
+ return a ? (this[o] = a, this.updateTerminalMagnet(t), !0) : !1;
472
+ }
473
+ updateTerminalMagnet(t) {
474
+ const n = `${t}Magnet`, e = this.getTerminalView(t);
475
+ if (e) {
476
+ let i = e.getMagnetFromEdgeTerminal(this.cell[t]);
477
+ i === e.container && (i = null), this[n] = i;
478
+ } else
479
+ this[n] = null;
480
+ }
481
+ getLabelPositionAngle(t) {
482
+ const n = this.cell.getLabelAt(t);
483
+ return n && n.position && typeof n.position == "object" && n.position.angle || 0;
484
+ }
485
+ getLabelPositionArgs(t) {
486
+ const n = this.cell.getLabelAt(t);
487
+ if (n && n.position && typeof n.position == "object")
488
+ return n.position.options;
489
+ }
490
+ getDefaultLabelPositionArgs() {
491
+ const t = this.cell.getDefaultLabel();
492
+ if (t && t.position && typeof t.position == "object")
493
+ return t.position.options;
494
+ }
495
+ mergeLabelPositionArgs(t, n) {
496
+ return t === null ? null : t === void 0 ? n === null ? null : n : N({}, n, t);
497
+ }
498
+ // #endregion
499
+ getConnection() {
500
+ return this.path != null ? this.path.clone() : null;
501
+ }
502
+ getConnectionPathData() {
503
+ if (this.path == null)
504
+ return "";
505
+ const t = this.cache.pathCache;
506
+ return T(t, "data") || (t.data = this.path.serialize()), t.data || "";
507
+ }
508
+ getConnectionSubdivisions() {
509
+ if (this.path == null)
510
+ return null;
511
+ const t = this.cache.pathCache;
512
+ return T(t, "segmentSubdivisions") || (t.segmentSubdivisions = this.path.getSegmentSubdivisions()), t.segmentSubdivisions;
513
+ }
514
+ getConnectionLength() {
515
+ if (this.path == null)
516
+ return 0;
517
+ const t = this.cache.pathCache;
518
+ return T(t, "length") || (t.length = this.path.length({
519
+ segmentSubdivisions: this.getConnectionSubdivisions()
520
+ })), t.length;
521
+ }
522
+ getPointAtLength(t) {
523
+ return this.path == null ? null : this.path.pointAtLength(t, {
524
+ segmentSubdivisions: this.getConnectionSubdivisions()
525
+ });
526
+ }
527
+ getPointAtRatio(t) {
528
+ return this.path == null ? null : (J(t) && (t = parseFloat(t) / 100), this.path.pointAt(t, {
529
+ segmentSubdivisions: this.getConnectionSubdivisions()
530
+ }));
531
+ }
532
+ getTangentAtLength(t) {
533
+ return this.path == null ? null : this.path.tangentAtLength(t, {
534
+ segmentSubdivisions: this.getConnectionSubdivisions()
535
+ });
536
+ }
537
+ getTangentAtRatio(t) {
538
+ return this.path == null ? null : this.path.tangentAt(t, {
539
+ segmentSubdivisions: this.getConnectionSubdivisions()
540
+ });
541
+ }
542
+ getClosestPoint(t) {
543
+ return this.path == null ? null : this.path.closestPoint(t, {
544
+ segmentSubdivisions: this.getConnectionSubdivisions()
545
+ });
546
+ }
547
+ getClosestPointLength(t) {
548
+ return this.path == null ? null : this.path.closestPointLength(t, {
549
+ segmentSubdivisions: this.getConnectionSubdivisions()
550
+ });
551
+ }
552
+ getClosestPointRatio(t) {
553
+ return this.path == null ? null : this.path.closestPointNormalizedLength(t, {
554
+ segmentSubdivisions: this.getConnectionSubdivisions()
555
+ });
556
+ }
557
+ getLabelPosition(t, n, e, i) {
558
+ const s = { distance: 0 };
559
+ let o = 0, r;
560
+ typeof e == "number" ? (o = e, r = i) : r = e, r != null && (s.options = r);
561
+ const a = r && r.absoluteOffset, l = !(r && r.absoluteDistance), c = r && r.absoluteDistance && r.reverseDistance, g = this.path, h = {
562
+ segmentSubdivisions: this.getConnectionSubdivisions()
563
+ }, f = new A(t, n), u = g.closestPointT(f, h), w = this.getConnectionLength() || 0;
564
+ let d = g.lengthAtT(u, h);
565
+ l && (d = w > 0 ? d / w : 0), c && (d = -1 * (w - d) || 1), s.distance = d;
566
+ let m;
567
+ a || (m = g.tangentAtT(u));
568
+ let p;
569
+ if (m)
570
+ p = m.pointOffset(f);
571
+ else {
572
+ const C = g.pointAtT(u), b = f.diff(C);
573
+ p = { x: b.x, y: b.y };
574
+ }
575
+ return s.offset = p, s.angle = o, s;
576
+ }
577
+ normalizeLabelPosition(t) {
578
+ return typeof t == "number" ? { distance: t } : t;
579
+ }
580
+ getLabelTransformationMatrix(t) {
581
+ const n = this.normalizeLabelPosition(t), e = n.options || {}, i = n.angle || 0, s = n.distance, o = s > 0 && s <= 1;
582
+ let r = 0;
583
+ const a = { x: 0, y: 0 }, l = n.offset;
584
+ l && (typeof l == "number" ? r = l : (l.x != null && (a.x = l.x), l.y != null && (a.y = l.y)));
585
+ const c = a.x !== 0 || a.y !== 0 || r === 0, g = e.keepGradient, h = e.ensureLegibility, f = this.path, u = { segmentSubdivisions: this.getConnectionSubdivisions() }, w = o ? s * this.getConnectionLength() : s, d = f.tangentAtLength(w, u);
586
+ let m, p = i;
587
+ if (d) {
588
+ if (c)
589
+ m = d.start, m.translate(a);
590
+ else {
591
+ const C = d.clone();
592
+ C.rotate(-90, d.start), C.setLength(r), m = C.end;
593
+ }
594
+ g && (p = d.angle() + i, h && (p = _.normalize((p + 90) % 180 - 90)));
595
+ } else
596
+ m = f.start, c && m.translate(a);
597
+ return K().translate(m.x, m.y).rotate(p);
598
+ }
599
+ getVertexIndex(t, n) {
600
+ const i = this.cell.getVertices(), s = this.getClosestPointLength(new A(t, n));
601
+ let o = 0;
602
+ if (s != null)
603
+ for (const r = i.length; o < r; o += 1) {
604
+ const a = i[o], l = this.getClosestPointLength(a);
605
+ if (l != null && s < l)
606
+ break;
607
+ }
608
+ return o;
609
+ }
610
+ getEventArgs(t, n, e) {
611
+ const i = this, s = i.cell, o = s;
612
+ return n == null || e == null ? { e: t, view: i, edge: s, cell: o } : { e: t, x: n, y: e, view: i, edge: s, cell: o };
613
+ }
614
+ notifyUnhandledMouseDown(t, n, e) {
615
+ this.notify("edge:unhandled:mousedown", {
616
+ e: t,
617
+ x: n,
618
+ y: e,
619
+ view: this,
620
+ cell: this.cell,
621
+ edge: this.cell
622
+ });
623
+ }
624
+ notifyMouseDown(t, n, e) {
625
+ super.onMouseDown(t, n, e), this.notify("edge:mousedown", this.getEventArgs(t, n, e));
626
+ }
627
+ notifyMouseMove(t, n, e) {
628
+ super.onMouseMove(t, n, e), this.notify("edge:mousemove", this.getEventArgs(t, n, e));
629
+ }
630
+ notifyMouseUp(t, n, e) {
631
+ super.onMouseUp(t, n, e), this.notify("edge:mouseup", this.getEventArgs(t, n, e));
632
+ }
633
+ onClick(t, n, e) {
634
+ super.onClick(t, n, e), this.notify("edge:click", this.getEventArgs(t, n, e));
635
+ }
636
+ onDblClick(t, n, e) {
637
+ super.onDblClick(t, n, e), this.notify("edge:dblclick", this.getEventArgs(t, n, e));
638
+ }
639
+ onContextMenu(t, n, e) {
640
+ super.onContextMenu(t, n, e), this.notify("edge:contextmenu", this.getEventArgs(t, n, e));
641
+ }
642
+ onMouseDown(t, n, e) {
643
+ this.notifyMouseDown(t, n, e), this.startEdgeDragging(t, n, e);
644
+ }
645
+ onMouseMove(t, n, e) {
646
+ const i = this.getEventData(t);
647
+ switch (i.action) {
648
+ case "drag-label": {
649
+ this.dragLabel(t, n, e);
650
+ break;
651
+ }
652
+ case "drag-arrowhead": {
653
+ this.dragArrowhead(t, n, e);
654
+ break;
655
+ }
656
+ case "drag-edge": {
657
+ this.dragEdge(t, n, e);
658
+ break;
659
+ }
660
+ }
661
+ return this.notifyMouseMove(t, n, e), i;
662
+ }
663
+ onMouseUp(t, n, e) {
664
+ const i = this.getEventData(t);
665
+ switch (i.action) {
666
+ case "drag-label": {
667
+ this.stopLabelDragging(t, n, e);
668
+ break;
669
+ }
670
+ case "drag-arrowhead": {
671
+ this.stopArrowheadDragging(t, n, e);
672
+ break;
673
+ }
674
+ case "drag-edge": {
675
+ this.stopEdgeDragging(t, n, e);
676
+ break;
677
+ }
678
+ }
679
+ return this.notifyMouseUp(t, n, e), this.checkMouseleave(t), i;
680
+ }
681
+ onMouseOver(t) {
682
+ super.onMouseOver(t), this.notify("edge:mouseover", this.getEventArgs(t));
683
+ }
684
+ onMouseOut(t) {
685
+ super.onMouseOut(t), this.notify("edge:mouseout", this.getEventArgs(t));
686
+ }
687
+ onMouseEnter(t) {
688
+ super.onMouseEnter(t), this.notify("edge:mouseenter", this.getEventArgs(t));
689
+ }
690
+ onMouseLeave(t) {
691
+ super.onMouseLeave(t), this.notify("edge:mouseleave", this.getEventArgs(t));
692
+ }
693
+ onMouseWheel(t, n, e, i) {
694
+ super.onMouseWheel(t, n, e, i), this.notify("edge:mousewheel", Object.assign({ delta: i }, this.getEventArgs(t, n, e)));
695
+ }
696
+ onCustomEvent(t, n, e, i) {
697
+ if (q(t.target, "edge-tool", this.container)) {
698
+ if (t.stopPropagation(), this.can("useEdgeTools")) {
699
+ if (n === "edge:remove") {
700
+ this.cell.remove({ ui: !0 });
701
+ return;
702
+ }
703
+ this.notify("edge:customevent", Object.assign({ name: n }, this.getEventArgs(t, e, i)));
704
+ }
705
+ this.notifyMouseDown(t, e, i);
706
+ } else
707
+ this.notify("edge:customevent", Object.assign({ name: n }, this.getEventArgs(t, e, i))), super.onCustomEvent(t, n, e, i);
708
+ }
709
+ onLabelMouseDown(t, n, e) {
710
+ this.notifyMouseDown(t, n, e), this.startLabelDragging(t, n, e), this.getEventData(t).stopPropagation && t.stopPropagation();
711
+ }
712
+ // #region drag edge
713
+ startEdgeDragging(t, n, e) {
714
+ if (!this.can("edgeMovable")) {
715
+ this.notifyUnhandledMouseDown(t, n, e);
716
+ return;
717
+ }
718
+ this.setEventData(t, {
719
+ x: n,
720
+ y: e,
721
+ moving: !1,
722
+ action: "drag-edge"
723
+ });
724
+ }
725
+ dragEdge(t, n, e) {
726
+ const i = this.getEventData(t);
727
+ i.moving || (i.moving = !0, this.addClass("edge-moving"), this.notify("edge:move", {
728
+ e: t,
729
+ x: n,
730
+ y: e,
731
+ view: this,
732
+ cell: this.cell,
733
+ edge: this.cell
734
+ })), this.cell.translate(n - i.x, e - i.y, { ui: !0 }), this.setEventData(t, { x: n, y: e }), this.notify("edge:moving", {
735
+ e: t,
736
+ x: n,
737
+ y: e,
738
+ view: this,
739
+ cell: this.cell,
740
+ edge: this.cell
741
+ });
742
+ }
743
+ stopEdgeDragging(t, n, e) {
744
+ const i = this.getEventData(t);
745
+ i.moving && (this.removeClass("edge-moving"), this.notify("edge:moved", {
746
+ e: t,
747
+ x: n,
748
+ y: e,
749
+ view: this,
750
+ cell: this.cell,
751
+ edge: this.cell
752
+ })), i.moving = !1;
753
+ }
754
+ // #endregion
755
+ // #region drag arrowhead
756
+ prepareArrowheadDragging(t, n) {
757
+ const e = this.getTerminalMagnet(t), i = {
758
+ action: "drag-arrowhead",
759
+ x: n.x,
760
+ y: n.y,
761
+ isNewEdge: n.isNewEdge === !0,
762
+ terminalType: t,
763
+ initialMagnet: e,
764
+ initialTerminal: Y(this.cell[t]),
765
+ fallbackAction: n.fallbackAction || "revert",
766
+ getValidateConnectionArgs: this.createValidateConnectionArgs(t),
767
+ options: n.options
768
+ };
769
+ return this.beforeArrowheadDragging(i), i;
770
+ }
771
+ createValidateConnectionArgs(t) {
772
+ const n = [];
773
+ n[4] = t, n[5] = this;
774
+ let e, i = 0, s = 0;
775
+ t === "source" ? (i = 2, e = "target") : (s = 2, e = "source");
776
+ const o = this.cell[e], r = o.cell;
777
+ if (r) {
778
+ let a;
779
+ const l = n[i] = this.graph.findViewByCell(r);
780
+ l && (a = l.getMagnetFromEdgeTerminal(o), a === l.container && (a = void 0)), n[i + 1] = a;
781
+ }
782
+ return (a, l) => (n[s] = a, n[s + 1] = a.container === l ? void 0 : l, n);
783
+ }
784
+ beforeArrowheadDragging(t) {
785
+ t.zIndex = this.cell.zIndex, this.cell.toFront();
786
+ const n = this.container.style;
787
+ t.pointerEvents = n.pointerEvents, n.pointerEvents = "none", this.graph.options.connecting.highlight && this.highlightAvailableMagnets(t);
788
+ }
789
+ afterArrowheadDragging(t) {
790
+ t.zIndex != null && (this.cell.setZIndex(t.zIndex, { ui: !0 }), t.zIndex = null);
791
+ const n = this.container;
792
+ n.style.pointerEvents = t.pointerEvents || "", this.graph.options.connecting.highlight && this.unhighlightAvailableMagnets(t);
793
+ }
794
+ validateConnection(t, n, e, i, s, o, r) {
795
+ const a = this.graph.options.connecting, l = a.allowLoop, c = a.allowNode, g = a.allowEdge, h = a.allowPort, f = a.allowMulti, u = a.validateConnection, w = o ? o.cell : null, d = s === "target" ? e : t, m = s === "target" ? i : n;
796
+ let p = !0;
797
+ const C = (b) => {
798
+ const v = s === "source" ? r ? r.port : null : w ? w.getSourcePortId() : null, y = s === "target" ? r ? r.port : null : w ? w.getTargetPortId() : null;
799
+ return P(b, this.graph, {
800
+ edge: w,
801
+ edgeView: o,
802
+ sourceView: t,
803
+ targetView: e,
804
+ sourcePort: v,
805
+ targetPort: y,
806
+ sourceMagnet: n,
807
+ targetMagnet: i,
808
+ sourceCell: t ? t.cell : null,
809
+ targetCell: e ? e.cell : null,
810
+ type: s
811
+ });
812
+ };
813
+ if (l != null && (typeof l == "boolean" ? !l && t === e && (p = !1) : p = C(l)), p && h != null && (typeof h == "boolean" ? !h && m && (p = !1) : p = C(h)), p && g != null && (typeof g == "boolean" ? !g && E.isEdgeView(d) && (p = !1) : p = C(g)), p && c != null && m == null && (typeof c == "boolean" ? !c && Q.isNodeView(d) && (p = !1) : p = C(c)), p && f != null && o) {
814
+ const b = o.cell, v = s === "source" ? r : b.getSource(), y = s === "target" ? r : b.getTarget(), I = r ? this.graph.getCellById(r.cell) : null;
815
+ if (v && y && v.cell && y.cell && I)
816
+ if (typeof f == "function")
817
+ p = C(f);
818
+ else {
819
+ const O = this.graph.model.getConnectedEdges(I, {
820
+ outgoing: s === "source",
821
+ incoming: s === "target"
822
+ });
823
+ O.length && (f === "withPort" ? O.some((V) => {
824
+ const L = V.getSource(), D = V.getTarget();
825
+ return L && D && L.cell === v.cell && D.cell === y.cell && L.port != null && L.port === v.port && D.port != null && D.port === y.port;
826
+ }) && (p = !1) : f || O.some((V) => {
827
+ const L = V.getSource(), D = V.getTarget();
828
+ return L && D && L.cell === v.cell && D.cell === y.cell;
829
+ }) && (p = !1));
830
+ }
831
+ }
832
+ return p && u != null && (p = C(u)), p;
833
+ }
834
+ allowConnectToBlank(t) {
835
+ const n = this.graph, i = n.options.connecting.allowBlank;
836
+ if (typeof i != "function")
837
+ return !!i;
838
+ const s = n.findViewByCell(t), o = t.getSourceCell(), r = t.getTargetCell(), a = n.findViewByCell(o), l = n.findViewByCell(r);
839
+ return P(i, n, {
840
+ edge: t,
841
+ edgeView: s,
842
+ sourceCell: o,
843
+ targetCell: r,
844
+ sourceView: a,
845
+ targetView: l,
846
+ sourcePort: t.getSourcePortId(),
847
+ targetPort: t.getTargetPortId(),
848
+ sourceMagnet: s.sourceMagnet,
849
+ targetMagnet: s.targetMagnet
850
+ });
851
+ }
852
+ validateEdge(t, n, e) {
853
+ const i = this.graph;
854
+ if (!this.allowConnectToBlank(t)) {
855
+ const o = t.getSourceCellId(), r = t.getTargetCellId();
856
+ if (!(o && r))
857
+ return !1;
858
+ }
859
+ const s = i.options.connecting.validateEdge;
860
+ return s ? P(s, i, {
861
+ edge: t,
862
+ type: n,
863
+ previous: e
864
+ }) : !0;
865
+ }
866
+ arrowheadDragging(t, n, e, i) {
867
+ i.x = n, i.y = e, i.currentTarget !== t && (i.currentMagnet && i.currentView && i.currentView.unhighlight(i.currentMagnet, {
868
+ type: "magnetAdsorbed"
869
+ }), i.currentView = this.graph.findViewByElem(t), i.currentView ? (i.currentMagnet = i.currentView.findMagnet(t), i.currentMagnet && this.validateConnection(...i.getValidateConnectionArgs(i.currentView, i.currentMagnet), i.currentView.getEdgeTerminal(i.currentMagnet, n, e, this.cell, i.terminalType)) ? i.currentView.highlight(i.currentMagnet, {
870
+ type: "magnetAdsorbed"
871
+ }) : i.currentMagnet = null) : i.currentMagnet = null), i.currentTarget = t, this.cell.prop(i.terminalType, { x: n, y: e }, Object.assign(Object.assign({}, i.options), { ui: !0 }));
872
+ }
873
+ arrowheadDragged(t, n, e) {
874
+ const i = t.currentView, s = t.currentMagnet;
875
+ if (!s || !i)
876
+ return;
877
+ i.unhighlight(s, { type: "magnetAdsorbed" });
878
+ const o = t.terminalType, r = i.getEdgeTerminal(s, n, e, this.cell, o);
879
+ this.cell.setTerminal(o, r, { ui: !0 });
880
+ }
881
+ snapArrowhead(t, n, e) {
882
+ const i = this.graph, { snap: s, allowEdge: o } = i.options.connecting, r = typeof s == "object" && s.radius || 50, a = typeof s == "object" && s.anchor || "center", l = i.renderer.findViewsInArea({
883
+ x: t - r,
884
+ y: n - r,
885
+ width: 2 * r,
886
+ height: 2 * r
887
+ }, { nodeOnly: !0 });
888
+ if (o) {
889
+ const b = i.renderer.findEdgeViewsFromPoint({ x: t, y: n }, r).filter((v) => v !== this);
890
+ l.push(...b);
891
+ }
892
+ const c = e.closestView || null, g = e.closestMagnet || null;
893
+ e.closestView = null, e.closestMagnet = null;
894
+ let h, f = Number.MAX_SAFE_INTEGER;
895
+ const u = new A(t, n);
896
+ l.forEach((b) => {
897
+ if (b.container.getAttribute("magnet") !== "false") {
898
+ if (b.isNodeView())
899
+ h = a === "center" ? b.cell.getBBox().getCenter().distance(u) : b.cell.getBBox().getNearestPointToPoint(u).distance(u);
900
+ else if (b.isEdgeView()) {
901
+ const v = b.getClosestPoint(u);
902
+ v ? h = v.distance(u) : h = Number.MAX_SAFE_INTEGER;
903
+ }
904
+ h < r && h < f && (g === b.container || this.validateConnection(...e.getValidateConnectionArgs(b, null), b.getEdgeTerminal(b.container, t, n, this.cell, e.terminalType))) && (f = h, e.closestView = b, e.closestMagnet = b.container);
905
+ }
906
+ b.container.querySelectorAll("[magnet]").forEach((v) => {
907
+ if (v.getAttribute("magnet") !== "false") {
908
+ const y = b.getBBoxOfElement(v);
909
+ h = u.distance(y.getCenter()), h < r && h < f && (g === v || this.validateConnection(...e.getValidateConnectionArgs(b, v), b.getEdgeTerminal(v, t, n, this.cell, e.terminalType))) && (f = h, e.closestView = b, e.closestMagnet = v);
910
+ }
911
+ });
912
+ });
913
+ let w;
914
+ const d = e.terminalType, m = e.closestView, p = e.closestMagnet, C = g !== p;
915
+ if (c && C && c.unhighlight(g, {
916
+ type: "magnetAdsorbed"
917
+ }), m) {
918
+ if (!C)
919
+ return;
920
+ m.highlight(p, {
921
+ type: "magnetAdsorbed"
922
+ }), w = m.getEdgeTerminal(p, t, n, this.cell, d);
923
+ } else
924
+ w = { x: t, y: n };
925
+ this.cell.setTerminal(d, w, {}, Object.assign(Object.assign({}, e.options), { ui: !0 }));
926
+ }
927
+ snapArrowheadEnd(t) {
928
+ const n = t.closestView, e = t.closestMagnet;
929
+ n && e && (n.unhighlight(e, {
930
+ type: "magnetAdsorbed"
931
+ }), t.currentMagnet = n.findMagnet(e)), t.closestView = null, t.closestMagnet = null;
932
+ }
933
+ finishEmbedding(t) {
934
+ this.graph.options.embedding.enabled && this.cell.updateParent() && (t.zIndex = null);
935
+ }
936
+ fallbackConnection(t) {
937
+ switch (t.fallbackAction) {
938
+ case "remove":
939
+ this.cell.remove({ ui: !0 });
940
+ break;
941
+ case "revert":
942
+ default:
943
+ this.cell.prop(t.terminalType, t.initialTerminal, {
944
+ ui: !0
945
+ });
946
+ break;
947
+ }
948
+ }
949
+ notifyConnectionEvent(t, n) {
950
+ const e = t.terminalType, i = t.initialTerminal, s = this.cell[e];
951
+ if (s && !Z.equalTerminals(i, s)) {
952
+ const r = this.graph, a = i, l = a.cell ? r.getCellById(a.cell) : null, c = a.port, g = l ? r.findViewByCell(l) : null, h = l || t.isNewEdge ? null : A.create(i).toJSON(), f = s, u = f.cell ? r.getCellById(f.cell) : null, w = f.port, d = u ? r.findViewByCell(u) : null, m = u ? null : A.create(s).toJSON();
953
+ this.notify("edge:connected", {
954
+ e: n,
955
+ previousCell: l,
956
+ previousPort: c,
957
+ previousView: g,
958
+ previousPoint: h,
959
+ currentCell: u,
960
+ currentView: d,
961
+ currentPort: w,
962
+ currentPoint: m,
963
+ previousMagnet: t.initialMagnet,
964
+ currentMagnet: t.currentMagnet,
965
+ edge: this.cell,
966
+ view: this,
967
+ type: e,
968
+ isNew: t.isNewEdge
969
+ });
970
+ }
971
+ }
972
+ highlightAvailableMagnets(t) {
973
+ const n = this.graph, e = n.model.getCells();
974
+ t.marked = {};
975
+ for (let i = 0, s = e.length; i < s; i += 1) {
976
+ const o = n.findViewByCell(e[i]);
977
+ if (!o || o.cell.id === this.cell.id)
978
+ continue;
979
+ const r = Array.prototype.slice.call(o.container.querySelectorAll("[magnet]"));
980
+ o.container.getAttribute("magnet") !== "false" && r.push(o.container);
981
+ const a = r.filter((l) => this.validateConnection(...t.getValidateConnectionArgs(o, l), o.getEdgeTerminal(l, t.x, t.y, this.cell, t.terminalType)));
982
+ if (a.length > 0) {
983
+ for (let l = 0, c = a.length; l < c; l += 1)
984
+ o.highlight(a[l], { type: "magnetAvailable" });
985
+ o.highlight(null, { type: "nodeAvailable" }), t.marked[o.cell.id] = a;
986
+ }
987
+ }
988
+ }
989
+ unhighlightAvailableMagnets(t) {
990
+ const n = t.marked || {};
991
+ Object.keys(n).forEach((e) => {
992
+ const i = this.graph.findViewByCell(e);
993
+ i && (n[e].forEach((o) => {
994
+ i.unhighlight(o, { type: "magnetAvailable" });
995
+ }), i.unhighlight(null, { type: "nodeAvailable" }));
996
+ }), t.marked = null;
997
+ }
998
+ startArrowheadDragging(t, n, e) {
999
+ if (!this.can("arrowheadMovable")) {
1000
+ this.notifyUnhandledMouseDown(t, n, e);
1001
+ return;
1002
+ }
1003
+ const s = t.target.getAttribute("data-terminal"), o = this.prepareArrowheadDragging(s, { x: n, y: e });
1004
+ this.setEventData(t, o);
1005
+ }
1006
+ dragArrowhead(t, n, e) {
1007
+ const i = this.getEventData(t);
1008
+ this.graph.options.connecting.snap ? this.snapArrowhead(n, e, i) : this.arrowheadDragging(this.getEventTarget(t), n, e, i);
1009
+ }
1010
+ stopArrowheadDragging(t, n, e) {
1011
+ const i = this.graph, s = this.getEventData(t);
1012
+ i.options.connecting.snap ? this.snapArrowheadEnd(s) : this.arrowheadDragged(s, n, e), this.validateEdge(this.cell, s.terminalType, s.initialTerminal) ? (this.finishEmbedding(s), this.notifyConnectionEvent(s, t)) : this.fallbackConnection(s), this.afterArrowheadDragging(s);
1013
+ }
1014
+ // #endregion
1015
+ // #region drag lable
1016
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1017
+ startLabelDragging(t, n, e) {
1018
+ if (this.can("edgeLabelMovable")) {
1019
+ const i = t.currentTarget, s = parseInt(i.getAttribute("data-index"), 10), o = this.getLabelPositionAngle(s), r = this.getLabelPositionArgs(s), a = this.getDefaultLabelPositionArgs(), l = this.mergeLabelPositionArgs(r, a);
1020
+ this.setEventData(t, {
1021
+ index: s,
1022
+ positionAngle: o,
1023
+ positionArgs: l,
1024
+ stopPropagation: !0,
1025
+ action: "drag-label"
1026
+ });
1027
+ } else
1028
+ this.setEventData(t, { stopPropagation: !0 });
1029
+ this.graph.view.delegateDragEvents(t, this);
1030
+ }
1031
+ dragLabel(t, n, e) {
1032
+ const i = this.getEventData(t), s = this.cell.getLabelAt(i.index), o = N({}, s, {
1033
+ position: this.getLabelPosition(n, e, i.positionAngle, i.positionArgs)
1034
+ });
1035
+ this.cell.setLabelAt(i.index, o);
1036
+ }
1037
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
1038
+ stopLabelDragging(t, n, e) {
1039
+ }
1040
+ }
1041
+ (function(M) {
1042
+ M.toStringTag = `X6.${M.name}`;
1043
+ function t(n) {
1044
+ if (n == null)
1045
+ return !1;
1046
+ if (n instanceof M)
1047
+ return !0;
1048
+ const e = n[Symbol.toStringTag], i = n;
1049
+ return (e == null || e === M.toStringTag) && typeof i.isNodeView == "function" && typeof i.isEdgeView == "function" && typeof i.confirmUpdate == "function" && typeof i.update == "function" && typeof i.getConnection == "function";
1050
+ }
1051
+ M.isEdgeView = t;
1052
+ })(E || (E = {}));
1053
+ E.config({
1054
+ isSvgElement: !0,
1055
+ priority: 1,
1056
+ bootstrap: ["render", "source", "target"],
1057
+ actions: {
1058
+ view: ["render"],
1059
+ markup: ["render"],
1060
+ attrs: ["update"],
1061
+ source: ["source", "update"],
1062
+ target: ["target", "update"],
1063
+ router: ["update"],
1064
+ connector: ["update"],
1065
+ labels: ["labels"],
1066
+ defaultLabel: ["labels"],
1067
+ tools: ["tools"],
1068
+ vertices: ["vertices", "update"]
1069
+ }
1070
+ });
1071
+ E.registry.register("edge", E, !0);
1072
+ export {
1073
+ E as EdgeView
1074
+ };