web-core-tcm 0.0.54 → 0.0.61

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 (816) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/dist/node_modules/@alova/shared/dist/alova-shared.esm.js +92 -229
  3. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +10 -9
  4. package/dist/node_modules/@bufbuild/protobuf/dist/esm/create.js +1 -1
  5. package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +56 -60
  6. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +3 -12
  7. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +10 -14
  8. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +12 -32
  9. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +6 -42
  10. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +50 -58
  11. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +4 -26
  12. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +1 -1
  13. package/dist/node_modules/@bufbuild/protobuf/dist/esm/registry.js +99 -130
  14. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +27 -48
  15. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +6 -10
  16. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +63 -137
  17. package/dist/node_modules/@vueuse/core/index.js +254 -0
  18. package/dist/node_modules/@vueuse/shared/index.js +37 -0
  19. package/dist/node_modules/alova/dist/adapter/fetch.esm.js +34 -30
  20. package/dist/node_modules/alova/dist/alova.esm.js +220 -266
  21. package/dist/node_modules/alova/dist/clienthook/index.esm.js +70 -2110
  22. package/dist/node_modules/builder-pattern/dist/index.js +13 -25
  23. package/dist/node_modules/echarts/index.js +87 -0
  24. package/dist/node_modules/echarts/lib/action/roamHelper.js +22 -0
  25. package/dist/node_modules/echarts/lib/animation/basicTransition.js +96 -0
  26. package/dist/node_modules/echarts/lib/animation/customGraphicKeyframeAnimation.js +55 -0
  27. package/dist/node_modules/echarts/lib/animation/customGraphicTransition.js +223 -0
  28. package/dist/node_modules/echarts/lib/animation/morphTransitionHelper.js +106 -0
  29. package/dist/node_modules/echarts/lib/animation/universalTransition.js +336 -0
  30. package/dist/node_modules/echarts/lib/chart/bar/BarSeries.js +54 -0
  31. package/dist/node_modules/echarts/lib/chart/bar/BarView.js +476 -0
  32. package/dist/node_modules/echarts/lib/chart/bar/BaseBarSeries.js +76 -0
  33. package/dist/node_modules/echarts/lib/chart/bar/PictorialBarSeries.js +48 -0
  34. package/dist/node_modules/echarts/lib/chart/bar/PictorialBarView.js +325 -0
  35. package/dist/node_modules/echarts/lib/chart/bar/install.js +23 -0
  36. package/dist/node_modules/echarts/lib/chart/bar/installPictorialBar.js +10 -0
  37. package/dist/node_modules/echarts/lib/chart/boxplot/BoxplotSeries.js +56 -0
  38. package/dist/node_modules/echarts/lib/chart/boxplot/BoxplotView.js +95 -0
  39. package/dist/node_modules/echarts/lib/chart/boxplot/boxplotLayout.js +72 -0
  40. package/dist/node_modules/echarts/lib/chart/boxplot/boxplotTransform.js +23 -0
  41. package/dist/node_modules/echarts/lib/chart/boxplot/install.js +10 -0
  42. package/dist/node_modules/echarts/lib/chart/boxplot/prepareBoxplotData.js +25 -0
  43. package/dist/node_modules/echarts/lib/chart/candlestick/CandlestickSeries.js +70 -0
  44. package/dist/node_modules/echarts/lib/chart/candlestick/CandlestickView.js +195 -0
  45. package/dist/node_modules/echarts/lib/chart/candlestick/candlestickLayout.js +76 -0
  46. package/dist/node_modules/echarts/lib/chart/candlestick/candlestickVisual.js +35 -0
  47. package/dist/node_modules/echarts/lib/chart/candlestick/install.js +11 -0
  48. package/dist/node_modules/echarts/lib/chart/candlestick/preprocessor.js +9 -0
  49. package/dist/node_modules/echarts/lib/chart/custom/CustomSeries.js +55 -0
  50. package/dist/node_modules/echarts/lib/chart/custom/CustomView.js +437 -0
  51. package/dist/node_modules/echarts/lib/chart/custom/install.js +8 -0
  52. package/dist/node_modules/echarts/lib/chart/effectScatter/EffectScatterSeries.js +60 -0
  53. package/dist/node_modules/echarts/lib/chart/effectScatter/EffectScatterView.js +44 -0
  54. package/dist/node_modules/echarts/lib/chart/effectScatter/install.js +9 -0
  55. package/dist/node_modules/echarts/lib/chart/funnel/FunnelSeries.js +83 -0
  56. package/dist/node_modules/echarts/lib/chart/funnel/FunnelView.js +109 -0
  57. package/dist/node_modules/echarts/lib/chart/funnel/funnelLayout.js +97 -0
  58. package/dist/node_modules/echarts/lib/chart/funnel/install.js +10 -0
  59. package/dist/node_modules/echarts/lib/chart/gauge/GaugeSeries.js +142 -0
  60. package/dist/node_modules/echarts/lib/chart/gauge/GaugeView.js +299 -0
  61. package/dist/node_modules/echarts/lib/chart/gauge/PointerPath.js +29 -0
  62. package/dist/node_modules/echarts/lib/chart/gauge/install.js +8 -0
  63. package/dist/node_modules/echarts/lib/chart/graph/GraphSeries.js +180 -0
  64. package/dist/node_modules/echarts/lib/chart/graph/GraphView.js +135 -0
  65. package/dist/node_modules/echarts/lib/chart/graph/adjustEdge.js +53 -0
  66. package/dist/node_modules/echarts/lib/chart/graph/categoryFilter.js +22 -0
  67. package/dist/node_modules/echarts/lib/chart/graph/categoryVisual.js +29 -0
  68. package/dist/node_modules/echarts/lib/chart/graph/circularLayout.js +9 -0
  69. package/dist/node_modules/echarts/lib/chart/graph/circularLayoutHelper.js +80 -0
  70. package/dist/node_modules/echarts/lib/chart/graph/createView.js +33 -0
  71. package/dist/node_modules/echarts/lib/chart/graph/edgeVisual.js +28 -0
  72. package/dist/node_modules/echarts/lib/chart/graph/forceHelper.js +73 -0
  73. package/dist/node_modules/echarts/lib/chart/graph/forceLayout.js +61 -0
  74. package/dist/node_modules/echarts/lib/chart/graph/graphHelper.js +15 -0
  75. package/dist/node_modules/echarts/lib/chart/graph/install.js +42 -0
  76. package/dist/node_modules/echarts/lib/chart/graph/simpleLayout.js +24 -0
  77. package/dist/node_modules/echarts/lib/chart/graph/simpleLayoutHelper.js +23 -0
  78. package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapLayer.js +45 -0
  79. package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapSeries.js +44 -0
  80. package/dist/node_modules/echarts/lib/chart/heatmap/HeatmapView.js +146 -0
  81. package/dist/node_modules/echarts/lib/chart/heatmap/install.js +8 -0
  82. package/dist/node_modules/echarts/lib/chart/helper/EffectLine.js +68 -0
  83. package/dist/node_modules/echarts/lib/chart/helper/EffectPolyline.js +54 -0
  84. package/dist/node_modules/echarts/lib/chart/helper/EffectSymbol.js +89 -0
  85. package/dist/node_modules/echarts/lib/chart/helper/LargeLineDraw.js +157 -0
  86. package/dist/node_modules/echarts/lib/chart/helper/LargeSymbolDraw.js +143 -0
  87. package/dist/node_modules/echarts/lib/chart/helper/Line.js +208 -0
  88. package/dist/node_modules/echarts/lib/chart/helper/LineDraw.js +87 -0
  89. package/dist/node_modules/echarts/lib/chart/helper/LinePath.js +52 -0
  90. package/dist/node_modules/echarts/lib/chart/helper/Polyline.js +45 -0
  91. package/dist/node_modules/echarts/lib/chart/helper/Symbol.js +155 -0
  92. package/dist/node_modules/echarts/lib/chart/helper/SymbolDraw.js +106 -0
  93. package/dist/node_modules/echarts/lib/chart/helper/createClipPathFromCoordSys.js +70 -0
  94. package/dist/node_modules/echarts/lib/chart/helper/createGraphFromNodeEdge.js +50 -0
  95. package/dist/node_modules/echarts/lib/chart/helper/createRenderPlanner.js +11 -0
  96. package/dist/node_modules/echarts/lib/chart/helper/createSeriesData.js +70 -0
  97. package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +15 -0
  98. package/dist/node_modules/echarts/lib/chart/helper/enableAriaDecalForTree.js +13 -0
  99. package/dist/node_modules/echarts/lib/chart/helper/labelHelper.js +27 -0
  100. package/dist/node_modules/echarts/lib/chart/helper/multipleGraphEdgeHelper.js +67 -0
  101. package/dist/node_modules/echarts/lib/chart/helper/sectorHelper.js +19 -0
  102. package/dist/node_modules/echarts/lib/chart/helper/treeHelper.js +41 -0
  103. package/dist/node_modules/echarts/lib/chart/helper/whiskerBoxCommon.js +51 -0
  104. package/dist/node_modules/echarts/lib/chart/line/LineSeries.js +87 -0
  105. package/dist/node_modules/echarts/lib/chart/line/LineView.js +525 -0
  106. package/dist/node_modules/echarts/lib/chart/line/helper.js +40 -0
  107. package/dist/node_modules/echarts/lib/chart/line/install.js +16 -0
  108. package/dist/node_modules/echarts/lib/chart/line/lineAnimationDiff.js +60 -0
  109. package/dist/node_modules/echarts/lib/chart/line/poly.js +163 -0
  110. package/dist/node_modules/echarts/lib/chart/lines/LinesSeries.js +144 -0
  111. package/dist/node_modules/echarts/lib/chart/lines/LinesView.js +65 -0
  112. package/dist/node_modules/echarts/lib/chart/lines/install.js +10 -0
  113. package/dist/node_modules/echarts/lib/chart/lines/linesLayout.js +47 -0
  114. package/dist/node_modules/echarts/lib/chart/lines/linesVisual.js +20 -0
  115. package/dist/node_modules/echarts/lib/chart/map/MapSeries.js +143 -0
  116. package/dist/node_modules/echarts/lib/chart/map/MapView.js +83 -0
  117. package/dist/node_modules/echarts/lib/chart/map/install.js +13 -0
  118. package/dist/node_modules/echarts/lib/chart/map/mapDataStatistic.js +32 -0
  119. package/dist/node_modules/echarts/lib/chart/map/mapSymbolLayout.js +31 -0
  120. package/dist/node_modules/echarts/lib/chart/parallel/ParallelSeries.js +63 -0
  121. package/dist/node_modules/echarts/lib/chart/parallel/ParallelView.js +111 -0
  122. package/dist/node_modules/echarts/lib/chart/parallel/install.js +11 -0
  123. package/dist/node_modules/echarts/lib/chart/parallel/parallelVisual.js +26 -0
  124. package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +142 -0
  125. package/dist/node_modules/echarts/lib/chart/pie/PieView.js +151 -0
  126. package/dist/node_modules/echarts/lib/chart/pie/install.js +13 -0
  127. package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +199 -0
  128. package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +99 -0
  129. package/dist/node_modules/echarts/lib/chart/radar/RadarSeries.js +73 -0
  130. package/dist/node_modules/echarts/lib/chart/radar/RadarView.js +123 -0
  131. package/dist/node_modules/echarts/lib/chart/radar/backwardCompat.js +17 -0
  132. package/dist/node_modules/echarts/lib/chart/radar/install.js +13 -0
  133. package/dist/node_modules/echarts/lib/chart/radar/radarLayout.js +30 -0
  134. package/dist/node_modules/echarts/lib/chart/sankey/SankeySeries.js +121 -0
  135. package/dist/node_modules/echarts/lib/chart/sankey/SankeyView.js +168 -0
  136. package/dist/node_modules/echarts/lib/chart/sankey/install.js +23 -0
  137. package/dist/node_modules/echarts/lib/chart/sankey/sankeyLayout.js +277 -0
  138. package/dist/node_modules/echarts/lib/chart/sankey/sankeyVisual.js +33 -0
  139. package/dist/node_modules/echarts/lib/chart/scatter/ScatterSeries.js +61 -0
  140. package/dist/node_modules/echarts/lib/chart/scatter/ScatterView.js +60 -0
  141. package/dist/node_modules/echarts/lib/chart/scatter/install.js +11 -0
  142. package/dist/node_modules/echarts/lib/chart/sunburst/SunburstPiece.js +82 -0
  143. package/dist/node_modules/echarts/lib/chart/sunburst/SunburstSeries.js +128 -0
  144. package/dist/node_modules/echarts/lib/chart/sunburst/SunburstView.js +93 -0
  145. package/dist/node_modules/echarts/lib/chart/sunburst/install.js +13 -0
  146. package/dist/node_modules/echarts/lib/chart/sunburst/sunburstAction.js +49 -0
  147. package/dist/node_modules/echarts/lib/chart/sunburst/sunburstLayout.js +98 -0
  148. package/dist/node_modules/echarts/lib/chart/sunburst/sunburstVisual.js +23 -0
  149. package/dist/node_modules/echarts/lib/chart/themeRiver/ThemeRiverSeries.js +122 -0
  150. package/dist/node_modules/echarts/lib/chart/themeRiver/ThemeRiverView.js +100 -0
  151. package/dist/node_modules/echarts/lib/chart/themeRiver/install.js +10 -0
  152. package/dist/node_modules/echarts/lib/chart/themeRiver/themeRiverLayout.js +63 -0
  153. package/dist/node_modules/echarts/lib/chart/tree/TreeSeries.js +100 -0
  154. package/dist/node_modules/echarts/lib/chart/tree/TreeView.js +314 -0
  155. package/dist/node_modules/echarts/lib/chart/tree/install.js +11 -0
  156. package/dist/node_modules/echarts/lib/chart/tree/layoutHelper.js +102 -0
  157. package/dist/node_modules/echarts/lib/chart/tree/traversalHelper.js +24 -0
  158. package/dist/node_modules/echarts/lib/chart/tree/treeAction.js +37 -0
  159. package/dist/node_modules/echarts/lib/chart/tree/treeLayout.js +53 -0
  160. package/dist/node_modules/echarts/lib/chart/tree/treeVisual.js +13 -0
  161. package/dist/node_modules/echarts/lib/chart/treemap/Breadcrumb.js +99 -0
  162. package/dist/node_modules/echarts/lib/chart/treemap/TreemapSeries.js +203 -0
  163. package/dist/node_modules/echarts/lib/chart/treemap/TreemapView.js +454 -0
  164. package/dist/node_modules/echarts/lib/chart/treemap/install.js +11 -0
  165. package/dist/node_modules/echarts/lib/chart/treemap/treemapAction.js +30 -0
  166. package/dist/node_modules/echarts/lib/chart/treemap/treemapLayout.js +217 -0
  167. package/dist/node_modules/echarts/lib/chart/treemap/treemapVisual.js +95 -0
  168. package/dist/node_modules/echarts/lib/component/aria/install.js +8 -0
  169. package/dist/node_modules/echarts/lib/component/aria/preprocessor.js +12 -0
  170. package/dist/node_modules/echarts/lib/component/axis/AngleAxisView.js +195 -0
  171. package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +294 -0
  172. package/dist/node_modules/echarts/lib/component/axis/AxisView.js +38 -0
  173. package/dist/node_modules/echarts/lib/component/axis/CartesianAxisView.js +123 -0
  174. package/dist/node_modules/echarts/lib/component/axis/ParallelAxisView.js +88 -0
  175. package/dist/node_modules/echarts/lib/component/axis/RadiusAxisView.js +117 -0
  176. package/dist/node_modules/echarts/lib/component/axis/SingleAxisView.js +70 -0
  177. package/dist/node_modules/echarts/lib/component/axis/axisSplitHelper.js +53 -0
  178. package/dist/node_modules/echarts/lib/component/axis/parallelAxisAction.js +25 -0
  179. package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js +71 -0
  180. package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js +31 -0
  181. package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +185 -0
  182. package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +85 -0
  183. package/dist/node_modules/echarts/lib/component/axisPointer/PolarAxisPointer.js +83 -0
  184. package/dist/node_modules/echarts/lib/component/axisPointer/SingleAxisPointer.js +80 -0
  185. package/dist/node_modules/echarts/lib/component/axisPointer/axisTrigger.js +202 -0
  186. package/dist/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js +36 -0
  187. package/dist/node_modules/echarts/lib/component/axisPointer/globalListener.js +58 -0
  188. package/dist/node_modules/echarts/lib/component/axisPointer/install.js +25 -0
  189. package/dist/node_modules/echarts/lib/component/axisPointer/modelHelper.js +137 -0
  190. package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +114 -0
  191. package/dist/node_modules/echarts/lib/component/brush/BrushModel.js +56 -0
  192. package/dist/node_modules/echarts/lib/component/brush/BrushView.js +46 -0
  193. package/dist/node_modules/echarts/lib/component/brush/install.js +32 -0
  194. package/dist/node_modules/echarts/lib/component/brush/preprocessor.js +30 -0
  195. package/dist/node_modules/echarts/lib/component/brush/selector.js +63 -0
  196. package/dist/node_modules/echarts/lib/component/brush/visualEncoding.js +140 -0
  197. package/dist/node_modules/echarts/lib/component/calendar/CalendarView.js +187 -0
  198. package/dist/node_modules/echarts/lib/component/calendar/install.js +9 -0
  199. package/dist/node_modules/echarts/lib/component/dataZoom/AxisProxy.js +125 -0
  200. package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomModel.js +187 -0
  201. package/dist/node_modules/echarts/lib/component/dataZoom/DataZoomView.js +18 -0
  202. package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomModel.js +24 -0
  203. package/dist/node_modules/echarts/lib/component/dataZoom/InsideZoomView.js +76 -0
  204. package/dist/node_modules/echarts/lib/component/dataZoom/SelectZoomModel.js +16 -0
  205. package/dist/node_modules/echarts/lib/component/dataZoom/SelectZoomView.js +16 -0
  206. package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomModel.js +87 -0
  207. package/dist/node_modules/echarts/lib/component/dataZoom/SliderZoomView.js +452 -0
  208. package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomAction.js +18 -0
  209. package/dist/node_modules/echarts/lib/component/dataZoom/dataZoomProcessor.js +57 -0
  210. package/dist/node_modules/echarts/lib/component/dataZoom/helper.js +67 -0
  211. package/dist/node_modules/echarts/lib/component/dataZoom/history.js +56 -0
  212. package/dist/node_modules/echarts/lib/component/dataZoom/install.js +9 -0
  213. package/dist/node_modules/echarts/lib/component/dataZoom/installCommon.js +11 -0
  214. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomInside.js +10 -0
  215. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSelect.js +9 -0
  216. package/dist/node_modules/echarts/lib/component/dataZoom/installDataZoomSlider.js +9 -0
  217. package/dist/node_modules/echarts/lib/component/dataZoom/roams.js +126 -0
  218. package/dist/node_modules/echarts/lib/component/dataset/install.js +43 -0
  219. package/dist/node_modules/echarts/lib/component/geo/GeoView.js +49 -0
  220. package/dist/node_modules/echarts/lib/component/geo/install.js +72 -0
  221. package/dist/node_modules/echarts/lib/component/graphic/GraphicModel.js +86 -0
  222. package/dist/node_modules/echarts/lib/component/graphic/GraphicView.js +180 -0
  223. package/dist/node_modules/echarts/lib/component/graphic/install.js +16 -0
  224. package/dist/node_modules/echarts/lib/component/grid/install.js +9 -0
  225. package/dist/node_modules/echarts/lib/component/grid/installSimple.js +42 -0
  226. package/dist/node_modules/echarts/lib/component/helper/BrushController.js +464 -0
  227. package/dist/node_modules/echarts/lib/component/helper/BrushTargetManager.js +195 -0
  228. package/dist/node_modules/echarts/lib/component/helper/MapDraw.js +303 -0
  229. package/dist/node_modules/echarts/lib/component/helper/RoamController.js +106 -0
  230. package/dist/node_modules/echarts/lib/component/helper/brushHelper.js +28 -0
  231. package/dist/node_modules/echarts/lib/component/helper/cursorHelper.js +12 -0
  232. package/dist/node_modules/echarts/lib/component/helper/interactionMutex.js +27 -0
  233. package/dist/node_modules/echarts/lib/component/helper/listComponent.js +29 -0
  234. package/dist/node_modules/echarts/lib/component/helper/roamHelper.js +17 -0
  235. package/dist/node_modules/echarts/lib/component/helper/sliderMove.js +28 -0
  236. package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +196 -0
  237. package/dist/node_modules/echarts/lib/component/legend/LegendView.js +243 -0
  238. package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js +49 -0
  239. package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +184 -0
  240. package/dist/node_modules/echarts/lib/component/legend/install.js +9 -0
  241. package/dist/node_modules/echarts/lib/component/legend/installLegendPlain.js +12 -0
  242. package/dist/node_modules/echarts/lib/component/legend/installLegendScroll.js +11 -0
  243. package/dist/node_modules/echarts/lib/component/legend/legendAction.js +40 -0
  244. package/dist/node_modules/echarts/lib/component/legend/legendFilter.js +14 -0
  245. package/dist/node_modules/echarts/lib/component/legend/scrollableLegendAction.js +15 -0
  246. package/dist/node_modules/echarts/lib/component/marker/MarkAreaModel.js +43 -0
  247. package/dist/node_modules/echarts/lib/component/marker/MarkAreaView.js +179 -0
  248. package/dist/node_modules/echarts/lib/component/marker/MarkLineModel.js +46 -0
  249. package/dist/node_modules/echarts/lib/component/marker/MarkLineView.js +178 -0
  250. package/dist/node_modules/echarts/lib/component/marker/MarkPointModel.js +40 -0
  251. package/dist/node_modules/echarts/lib/component/marker/MarkPointView.js +84 -0
  252. package/dist/node_modules/echarts/lib/component/marker/MarkerModel.js +72 -0
  253. package/dist/node_modules/echarts/lib/component/marker/MarkerView.js +45 -0
  254. package/dist/node_modules/echarts/lib/component/marker/checkMarkerInSeries.js +12 -0
  255. package/dist/node_modules/echarts/lib/component/marker/installMarkArea.js +11 -0
  256. package/dist/node_modules/echarts/lib/component/marker/installMarkLine.js +11 -0
  257. package/dist/node_modules/echarts/lib/component/marker/installMarkPoint.js +11 -0
  258. package/dist/node_modules/echarts/lib/component/marker/markerHelper.js +83 -0
  259. package/dist/node_modules/echarts/lib/component/parallel/ParallelView.js +66 -0
  260. package/dist/node_modules/echarts/lib/component/parallel/install.js +26 -0
  261. package/dist/node_modules/echarts/lib/component/polar/install.js +40 -0
  262. package/dist/node_modules/echarts/lib/component/radar/RadarView.js +119 -0
  263. package/dist/node_modules/echarts/lib/component/radar/install.js +17 -0
  264. package/dist/node_modules/echarts/lib/component/singleAxis/install.js +27 -0
  265. package/dist/node_modules/echarts/lib/component/timeline/SliderTimelineModel.js +115 -0
  266. package/dist/node_modules/echarts/lib/component/timeline/SliderTimelineView.js +361 -0
  267. package/dist/node_modules/echarts/lib/component/timeline/TimelineAxis.js +20 -0
  268. package/dist/node_modules/echarts/lib/component/timeline/TimelineModel.js +79 -0
  269. package/dist/node_modules/echarts/lib/component/timeline/TimelineView.js +16 -0
  270. package/dist/node_modules/echarts/lib/component/timeline/install.js +12 -0
  271. package/dist/node_modules/echarts/lib/component/timeline/preprocessor.js +35 -0
  272. package/dist/node_modules/echarts/lib/component/timeline/timelineAction.js +29 -0
  273. package/dist/node_modules/echarts/lib/component/title/install.js +121 -0
  274. package/dist/node_modules/echarts/lib/component/toolbox/ToolboxModel.js +60 -0
  275. package/dist/node_modules/echarts/lib/component/toolbox/ToolboxView.js +140 -0
  276. package/dist/node_modules/echarts/lib/component/toolbox/feature/Brush.js +69 -0
  277. package/dist/node_modules/echarts/lib/component/toolbox/feature/DataView.js +269 -0
  278. package/dist/node_modules/echarts/lib/component/toolbox/feature/DataZoom.js +152 -0
  279. package/dist/node_modules/echarts/lib/component/toolbox/feature/MagicType.js +123 -0
  280. package/dist/node_modules/echarts/lib/component/toolbox/feature/Restore.js +37 -0
  281. package/dist/node_modules/echarts/lib/component/toolbox/feature/SaveAsImage.js +69 -0
  282. package/dist/node_modules/echarts/lib/component/toolbox/featureManager.js +19 -0
  283. package/dist/node_modules/echarts/lib/component/toolbox/install.js +16 -0
  284. package/dist/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js +152 -0
  285. package/dist/node_modules/echarts/lib/component/tooltip/TooltipModel.js +82 -0
  286. package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +89 -0
  287. package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +412 -0
  288. package/dist/node_modules/echarts/lib/component/tooltip/helper.js +32 -0
  289. package/dist/node_modules/echarts/lib/component/tooltip/install.js +19 -0
  290. package/dist/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js +63 -0
  291. package/dist/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js +186 -0
  292. package/dist/node_modules/echarts/lib/component/transform/filterTransform.js +32 -0
  293. package/dist/node_modules/echarts/lib/component/transform/install.js +8 -0
  294. package/dist/node_modules/echarts/lib/component/transform/sortTransform.js +51 -0
  295. package/dist/node_modules/echarts/lib/component/visualMap/ContinuousModel.js +109 -0
  296. package/dist/node_modules/echarts/lib/component/visualMap/ContinuousView.js +382 -0
  297. package/dist/node_modules/echarts/lib/component/visualMap/PiecewiseModel.js +216 -0
  298. package/dist/node_modules/echarts/lib/component/visualMap/PiecewiseView.js +118 -0
  299. package/dist/node_modules/echarts/lib/component/visualMap/VisualMapModel.js +161 -0
  300. package/dist/node_modules/echarts/lib/component/visualMap/VisualMapView.js +77 -0
  301. package/dist/node_modules/echarts/lib/component/visualMap/helper.js +24 -0
  302. package/dist/node_modules/echarts/lib/component/visualMap/install.js +9 -0
  303. package/dist/node_modules/echarts/lib/component/visualMap/installCommon.js +15 -0
  304. package/dist/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous.js +9 -0
  305. package/dist/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise.js +9 -0
  306. package/dist/node_modules/echarts/lib/component/visualMap/preprocessor.js +20 -0
  307. package/dist/node_modules/echarts/lib/component/visualMap/visualEncoding.js +51 -0
  308. package/dist/node_modules/echarts/lib/component/visualMap/visualMapAction.js +17 -0
  309. package/dist/node_modules/echarts/lib/coord/Axis.js +107 -0
  310. package/dist/node_modules/echarts/lib/coord/CoordinateSystem.js +6 -0
  311. package/dist/node_modules/echarts/lib/coord/View.js +91 -0
  312. package/dist/node_modules/echarts/lib/coord/axisAlignTicks.js +39 -0
  313. package/dist/node_modules/echarts/lib/coord/axisCommonTypes.js +9 -0
  314. package/dist/node_modules/echarts/lib/coord/axisDefault.js +160 -0
  315. package/dist/node_modules/echarts/lib/coord/axisHelper.js +162 -0
  316. package/dist/node_modules/echarts/lib/coord/axisModelCommonMixin.js +15 -0
  317. package/dist/node_modules/echarts/lib/coord/axisModelCreator.js +40 -0
  318. package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +176 -0
  319. package/dist/node_modules/echarts/lib/coord/calendar/Calendar.js +158 -0
  320. package/dist/node_modules/echarts/lib/coord/calendar/CalendarModel.js +91 -0
  321. package/dist/node_modules/echarts/lib/coord/calendar/prepareCustom.js +28 -0
  322. package/dist/node_modules/echarts/lib/coord/cartesian/Axis2D.js +28 -0
  323. package/dist/node_modules/echarts/lib/coord/cartesian/AxisModel.js +22 -0
  324. package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian.js +26 -0
  325. package/dist/node_modules/echarts/lib/coord/cartesian/Cartesian2D.js +66 -0
  326. package/dist/node_modules/echarts/lib/coord/cartesian/Grid.js +226 -0
  327. package/dist/node_modules/echarts/lib/coord/cartesian/GridModel.js +30 -0
  328. package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +44 -0
  329. package/dist/node_modules/echarts/lib/coord/cartesian/prepareCustom.js +29 -0
  330. package/dist/node_modules/echarts/lib/coord/geo/Geo.js +86 -0
  331. package/dist/node_modules/echarts/lib/coord/geo/GeoJSONResource.js +70 -0
  332. package/dist/node_modules/echarts/lib/coord/geo/GeoModel.js +125 -0
  333. package/dist/node_modules/echarts/lib/coord/geo/GeoSVGResource.js +108 -0
  334. package/dist/node_modules/echarts/lib/coord/geo/Region.js +137 -0
  335. package/dist/node_modules/echarts/lib/coord/geo/fix/diaoyuIsland.js +10 -0
  336. package/dist/node_modules/echarts/lib/coord/geo/fix/nanhai.js +22 -0
  337. package/dist/node_modules/echarts/lib/coord/geo/fix/textCoord.js +21 -0
  338. package/dist/node_modules/echarts/lib/coord/geo/geoCreator.js +106 -0
  339. package/dist/node_modules/echarts/lib/coord/geo/geoSourceManager.js +66 -0
  340. package/dist/node_modules/echarts/lib/coord/geo/parseGeoJson.js +67 -0
  341. package/dist/node_modules/echarts/lib/coord/geo/prepareCustom.js +29 -0
  342. package/dist/node_modules/echarts/lib/coord/parallel/AxisModel.js +51 -0
  343. package/dist/node_modules/echarts/lib/coord/parallel/Parallel.js +180 -0
  344. package/dist/node_modules/echarts/lib/coord/parallel/ParallelAxis.js +18 -0
  345. package/dist/node_modules/echarts/lib/coord/parallel/ParallelModel.js +61 -0
  346. package/dist/node_modules/echarts/lib/coord/parallel/parallelCreator.js +20 -0
  347. package/dist/node_modules/echarts/lib/coord/parallel/parallelPreprocessor.js +25 -0
  348. package/dist/node_modules/echarts/lib/coord/polar/AngleAxis.js +29 -0
  349. package/dist/node_modules/echarts/lib/coord/polar/AxisModel.js +44 -0
  350. package/dist/node_modules/echarts/lib/coord/polar/Polar.js +86 -0
  351. package/dist/node_modules/echarts/lib/coord/polar/PolarModel.js +26 -0
  352. package/dist/node_modules/echarts/lib/coord/polar/RadiusAxis.js +19 -0
  353. package/dist/node_modules/echarts/lib/coord/polar/polarCreator.js +61 -0
  354. package/dist/node_modules/echarts/lib/coord/polar/prepareCustom.js +29 -0
  355. package/dist/node_modules/echarts/lib/coord/radar/IndicatorAxis.js +16 -0
  356. package/dist/node_modules/echarts/lib/coord/radar/Radar.js +79 -0
  357. package/dist/node_modules/echarts/lib/coord/radar/RadarModel.js +89 -0
  358. package/dist/node_modules/echarts/lib/coord/scaleRawExtentInfo.js +70 -0
  359. package/dist/node_modules/echarts/lib/coord/single/AxisModel.js +60 -0
  360. package/dist/node_modules/echarts/lib/coord/single/Single.js +88 -0
  361. package/dist/node_modules/echarts/lib/coord/single/SingleAxis.js +21 -0
  362. package/dist/node_modules/echarts/lib/coord/single/prepareCustom.js +26 -0
  363. package/dist/node_modules/echarts/lib/coord/single/singleAxisHelper.js +32 -0
  364. package/dist/node_modules/echarts/lib/coord/single/singleCreator.js +21 -0
  365. package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +29 -0
  366. package/dist/node_modules/echarts/lib/core/ExtensionAPI.js +34 -0
  367. package/dist/node_modules/echarts/lib/core/Scheduler.js +226 -0
  368. package/dist/node_modules/echarts/lib/core/echarts.js +1019 -0
  369. package/dist/node_modules/echarts/lib/core/impl.js +11 -0
  370. package/dist/node_modules/echarts/lib/core/lifecycle.js +5 -0
  371. package/dist/node_modules/echarts/lib/core/locale.js +37 -0
  372. package/dist/node_modules/echarts/lib/core/task.js +91 -0
  373. package/dist/node_modules/echarts/lib/data/DataDiffer.js +80 -0
  374. package/dist/node_modules/echarts/lib/data/DataStore.js +427 -0
  375. package/dist/node_modules/echarts/lib/data/Graph.js +207 -0
  376. package/dist/node_modules/echarts/lib/data/OrdinalMeta.js +36 -0
  377. package/dist/node_modules/echarts/lib/data/SeriesData.js +328 -0
  378. package/dist/node_modules/echarts/lib/data/SeriesDimensionDefine.js +13 -0
  379. package/dist/node_modules/echarts/lib/data/Source.js +157 -0
  380. package/dist/node_modules/echarts/lib/data/Tree.js +154 -0
  381. package/dist/node_modules/echarts/lib/data/helper/SeriesDataSchema.js +86 -0
  382. package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +122 -0
  383. package/dist/node_modules/echarts/lib/data/helper/dataProvider.js +165 -0
  384. package/dist/node_modules/echarts/lib/data/helper/dataStackHelper.js +60 -0
  385. package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +89 -0
  386. package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +57 -0
  387. package/dist/node_modules/echarts/lib/data/helper/linkSeriesData.js +62 -0
  388. package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +163 -0
  389. package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +136 -0
  390. package/dist/node_modules/echarts/lib/data/helper/transform.js +164 -0
  391. package/dist/node_modules/echarts/lib/extension.js +61 -0
  392. package/dist/node_modules/echarts/lib/i18n/langEN.js +114 -0
  393. package/dist/node_modules/echarts/lib/i18n/langZH.js +114 -0
  394. package/dist/node_modules/echarts/lib/label/LabelManager.js +235 -0
  395. package/dist/node_modules/echarts/lib/label/installLabelLayout.js +17 -0
  396. package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +234 -0
  397. package/dist/node_modules/echarts/lib/label/labelLayoutHelper.js +132 -0
  398. package/dist/node_modules/echarts/lib/label/labelStyle.js +193 -0
  399. package/dist/node_modules/echarts/lib/label/sectorLabel.js +94 -0
  400. package/dist/node_modules/echarts/lib/layout/barGrid.js +235 -0
  401. package/dist/node_modules/echarts/lib/layout/barPolar.js +101 -0
  402. package/dist/node_modules/echarts/lib/layout/points.js +37 -0
  403. package/dist/node_modules/echarts/lib/legacy/dataSelectAction.js +50 -0
  404. package/dist/node_modules/echarts/lib/loading/default.js +92 -0
  405. package/dist/node_modules/echarts/lib/model/Component.js +81 -0
  406. package/dist/node_modules/echarts/lib/model/Global.js +280 -0
  407. package/dist/node_modules/echarts/lib/model/Model.js +64 -0
  408. package/dist/node_modules/echarts/lib/model/OptionManager.js +86 -0
  409. package/dist/node_modules/echarts/lib/model/Series.js +231 -0
  410. package/dist/node_modules/echarts/lib/model/globalDefault.js +87 -0
  411. package/dist/node_modules/echarts/lib/model/internalComponentCreator.js +16 -0
  412. package/dist/node_modules/echarts/lib/model/mixin/areaStyle.js +24 -0
  413. package/dist/node_modules/echarts/lib/model/mixin/dataFormat.js +70 -0
  414. package/dist/node_modules/echarts/lib/model/mixin/itemStyle.js +31 -0
  415. package/dist/node_modules/echarts/lib/model/mixin/lineStyle.js +30 -0
  416. package/dist/node_modules/echarts/lib/model/mixin/makeStyleMapper.js +18 -0
  417. package/dist/node_modules/echarts/lib/model/mixin/palette.js +42 -0
  418. package/dist/node_modules/echarts/lib/model/mixin/textStyle.js +30 -0
  419. package/dist/node_modules/echarts/lib/model/referHelper.js +46 -0
  420. package/dist/node_modules/echarts/lib/preprocessor/backwardCompat.js +79 -0
  421. package/dist/node_modules/echarts/lib/preprocessor/helper/compatStyle.js +106 -0
  422. package/dist/node_modules/echarts/lib/processor/dataFilter.js +22 -0
  423. package/dist/node_modules/echarts/lib/processor/dataSample.js +51 -0
  424. package/dist/node_modules/echarts/lib/processor/dataStack.js +50 -0
  425. package/dist/node_modules/echarts/lib/processor/negativeDataFilter.js +16 -0
  426. package/dist/node_modules/echarts/lib/renderer/installCanvasRenderer.js +7 -0
  427. package/dist/node_modules/echarts/lib/renderer/installSVGRenderer.js +7 -0
  428. package/dist/node_modules/echarts/lib/scale/Interval.js +97 -0
  429. package/dist/node_modules/echarts/lib/scale/Log.js +68 -0
  430. package/dist/node_modules/echarts/lib/scale/Ordinal.js +76 -0
  431. package/dist/node_modules/echarts/lib/scale/Scale.js +32 -0
  432. package/dist/node_modules/echarts/lib/scale/Time.js +257 -0
  433. package/dist/node_modules/echarts/lib/scale/helper.js +42 -0
  434. package/dist/node_modules/echarts/lib/theme/dark.js +180 -0
  435. package/dist/node_modules/echarts/lib/theme/light.js +8 -0
  436. package/dist/node_modules/echarts/lib/util/ECEventProcessor.js +54 -0
  437. package/dist/node_modules/echarts/lib/util/animation.js +40 -0
  438. package/dist/node_modules/echarts/lib/util/clazz.js +106 -0
  439. package/dist/node_modules/echarts/lib/util/component.js +78 -0
  440. package/dist/node_modules/echarts/lib/util/conditionalExpression.js +146 -0
  441. package/dist/node_modules/echarts/lib/util/decal.js +168 -0
  442. package/dist/node_modules/echarts/lib/util/event.js +8 -0
  443. package/dist/node_modules/echarts/lib/util/format.js +111 -0
  444. package/dist/node_modules/echarts/lib/util/graphic.js +294 -0
  445. package/dist/node_modules/echarts/lib/util/innerStore.js +14 -0
  446. package/dist/node_modules/echarts/lib/util/layout.js +140 -0
  447. package/dist/node_modules/echarts/lib/util/log.js +6 -0
  448. package/dist/node_modules/echarts/lib/util/model.js +339 -0
  449. package/dist/node_modules/echarts/lib/util/number.js +196 -0
  450. package/dist/node_modules/echarts/lib/util/shape/sausage.js +32 -0
  451. package/dist/node_modules/echarts/lib/util/states.js +390 -0
  452. package/dist/node_modules/echarts/lib/util/styleCompat.js +50 -0
  453. package/dist/node_modules/echarts/lib/util/symbol.js +155 -0
  454. package/dist/node_modules/echarts/lib/util/throttle.js +41 -0
  455. package/dist/node_modules/echarts/lib/util/time.js +193 -0
  456. package/dist/node_modules/echarts/lib/util/types.js +13 -0
  457. package/dist/node_modules/echarts/lib/util/vendor.js +8 -0
  458. package/dist/node_modules/echarts/lib/view/Chart.js +87 -0
  459. package/dist/node_modules/echarts/lib/view/Component.js +27 -0
  460. package/dist/node_modules/echarts/lib/visual/LegendVisualProvider.js +24 -0
  461. package/dist/node_modules/echarts/lib/visual/VisualMapping.js +262 -0
  462. package/dist/node_modules/echarts/lib/visual/aria.js +133 -0
  463. package/dist/node_modules/echarts/lib/visual/decal.js +23 -0
  464. package/dist/node_modules/echarts/lib/visual/helper.js +47 -0
  465. package/dist/node_modules/echarts/lib/visual/style.js +95 -0
  466. package/dist/node_modules/echarts/lib/visual/symbol.js +52 -0
  467. package/dist/node_modules/echarts/lib/visual/visualDefault.js +46 -0
  468. package/dist/node_modules/echarts/lib/visual/visualSolution.js +97 -0
  469. package/dist/node_modules/pinyin/lib/esm/pinyin.js +2 -2
  470. package/dist/node_modules/punycode/punycode.es6.js +17 -17
  471. package/dist/node_modules/quasar/lang/en-US.js +106 -0
  472. package/dist/node_modules/quasar/src/components/btn/QBtn.js +188 -0
  473. package/dist/node_modules/quasar/src/components/btn/use-btn.js +122 -0
  474. package/dist/node_modules/quasar/src/components/btn-group/QBtnGroup.js +27 -0
  475. package/dist/node_modules/quasar/src/components/btn-toggle/QBtnToggle.js +114 -0
  476. package/dist/node_modules/quasar/src/components/card/QCard.js +26 -0
  477. package/dist/node_modules/quasar/src/components/card/QCardActions.js +20 -0
  478. package/dist/node_modules/quasar/src/components/card/QCardSection.js +22 -0
  479. package/dist/node_modules/quasar/src/components/checkbox/QCheckbox.js +50 -0
  480. package/dist/node_modules/quasar/src/components/checkbox/use-checkbox.js +130 -0
  481. package/dist/node_modules/quasar/src/components/chip/QChip.js +127 -0
  482. package/dist/node_modules/quasar/src/components/dialog/QDialog.js +202 -0
  483. package/dist/node_modules/quasar/src/components/field/QField.js +22 -0
  484. package/dist/node_modules/quasar/src/components/icon/QIcon.js +131 -0
  485. package/dist/node_modules/quasar/src/components/infinite-scroll/QInfiniteScroll.js +135 -0
  486. package/dist/node_modules/quasar/src/components/input/QInput.js +212 -0
  487. package/dist/node_modules/quasar/src/components/input/use-mask.js +291 -0
  488. package/dist/node_modules/quasar/src/components/item/QItem.js +75 -0
  489. package/dist/node_modules/quasar/src/components/item/QItemLabel.js +29 -0
  490. package/dist/node_modules/quasar/src/components/item/QItemSection.js +22 -0
  491. package/dist/node_modules/quasar/src/components/item/QList.js +29 -0
  492. package/dist/node_modules/quasar/src/components/linear-progress/QLinearProgress.js +83 -0
  493. package/dist/node_modules/quasar/src/components/menu/QMenu.js +183 -0
  494. package/dist/node_modules/quasar/src/components/option-group/QOptionGroup.js +90 -0
  495. package/dist/node_modules/quasar/src/components/radio/QRadio.js +118 -0
  496. package/dist/node_modules/quasar/src/components/resize-observer/QResizeObserver.js +71 -0
  497. package/dist/node_modules/quasar/src/components/scroll-area/QScrollArea.js +288 -0
  498. package/dist/node_modules/quasar/src/components/scroll-area/ScrollAreaControls.js +47 -0
  499. package/dist/node_modules/quasar/src/components/scroll-observer/QScrollObserver.js +77 -0
  500. package/dist/node_modules/quasar/src/components/select/QSelect.js +762 -0
  501. package/dist/node_modules/quasar/src/components/slide-item/QSlideItem.js +118 -0
  502. package/dist/node_modules/quasar/src/components/space/QSpace.js +12 -0
  503. package/dist/node_modules/quasar/src/components/spinner/QSpinner.js +36 -0
  504. package/dist/node_modules/quasar/src/components/spinner/QSpinnerBall.js +22 -0
  505. package/dist/node_modules/quasar/src/components/spinner/use-spinner.js +21 -0
  506. package/dist/node_modules/quasar/src/components/toggle/QToggle.js +39 -0
  507. package/dist/node_modules/quasar/src/components/virtual-scroll/use-virtual-scroll.js +372 -0
  508. package/dist/node_modules/quasar/src/composables/private.use-align/use-align.js +27 -0
  509. package/dist/node_modules/quasar/src/composables/private.use-anchor/use-anchor.js +118 -0
  510. package/dist/node_modules/quasar/src/composables/private.use-dark/use-dark.js +14 -0
  511. package/dist/node_modules/quasar/src/composables/private.use-field/use-field.js +316 -0
  512. package/dist/node_modules/quasar/src/composables/private.use-file/use-file-dom-props.js +25 -0
  513. package/dist/node_modules/quasar/src/composables/private.use-history/use-history.js +17 -0
  514. package/dist/node_modules/quasar/src/composables/private.use-key-composition/use-key-composition.js +13 -0
  515. package/dist/node_modules/quasar/src/composables/private.use-model-toggle/use-model-toggle.js +68 -0
  516. package/dist/node_modules/quasar/src/composables/private.use-portal/use-portal.js +53 -0
  517. package/dist/node_modules/quasar/src/composables/private.use-prevent-scroll/use-prevent-scroll.js +12 -0
  518. package/dist/node_modules/quasar/src/composables/private.use-refocus-target/use-refocus-target.js +19 -0
  519. package/dist/node_modules/quasar/src/composables/private.use-router-link/use-router-link.js +141 -0
  520. package/dist/node_modules/quasar/src/composables/private.use-scroll-target/use-scroll-target.js +24 -0
  521. package/dist/node_modules/quasar/src/composables/private.use-size/use-size.js +18 -0
  522. package/dist/node_modules/quasar/src/composables/private.use-transition/use-transition.js +38 -0
  523. package/dist/node_modules/quasar/src/composables/private.use-validate/use-validate.js +87 -0
  524. package/dist/node_modules/quasar/src/composables/use-form/private.use-form.js +22 -0
  525. package/dist/node_modules/quasar/src/composables/use-form/use-form-child.js +18 -0
  526. package/dist/node_modules/quasar/src/composables/use-hydration/use-hydration.js +11 -0
  527. package/dist/node_modules/quasar/src/composables/use-id/use-id.js +23 -0
  528. package/dist/node_modules/quasar/src/composables/use-quasar/use-quasar.js +8 -0
  529. package/dist/node_modules/quasar/src/composables/use-render-cache/use-render-cache.js +18 -0
  530. package/dist/node_modules/quasar/src/composables/use-split-attrs/use-split-attrs.js +20 -0
  531. package/dist/node_modules/quasar/src/composables/use-tick/use-tick.js +20 -0
  532. package/dist/node_modules/quasar/src/composables/use-timeout/use-timeout.js +20 -0
  533. package/dist/node_modules/quasar/src/directives/close-popup/ClosePopup.js +41 -0
  534. package/dist/node_modules/quasar/src/directives/ripple/Ripple.js +81 -0
  535. package/dist/node_modules/quasar/src/directives/touch-pan/TouchPan.js +174 -0
  536. package/dist/node_modules/quasar/src/plugins/lang/Lang.js +42 -0
  537. package/dist/node_modules/quasar/src/plugins/platform/Platform.js +115 -0
  538. package/dist/node_modules/quasar/src/utils/date/date.js +633 -0
  539. package/dist/node_modules/quasar/src/utils/debounce/debounce.js +15 -0
  540. package/dist/node_modules/quasar/src/utils/dom/dom.js +36 -0
  541. package/dist/node_modules/quasar/src/utils/event/event.js +88 -0
  542. package/dist/node_modules/quasar/src/utils/format/format.js +25 -0
  543. package/dist/node_modules/quasar/src/utils/is/is.js +79 -0
  544. package/dist/node_modules/quasar/src/utils/patterns/patterns.js +25 -0
  545. package/dist/node_modules/quasar/src/utils/private.click-outside/click-outside.js +37 -0
  546. package/dist/node_modules/quasar/src/utils/private.config/instance-config.js +4 -0
  547. package/dist/node_modules/quasar/src/utils/private.config/nodes.js +17 -0
  548. package/dist/node_modules/quasar/src/utils/private.create/create.js +26 -0
  549. package/dist/node_modules/quasar/src/utils/private.focus/focus-manager.js +22 -0
  550. package/dist/node_modules/quasar/src/utils/private.focus/focusout.js +16 -0
  551. package/dist/node_modules/quasar/src/utils/private.inject-obj-prop/inject-obj-prop.js +10 -0
  552. package/dist/node_modules/quasar/src/utils/private.keyboard/escape-key.js +27 -0
  553. package/dist/node_modules/quasar/src/utils/private.keyboard/key-composition.js +10 -0
  554. package/dist/node_modules/quasar/src/utils/private.option-sizes/option-sizes.js +10 -0
  555. package/dist/node_modules/quasar/src/utils/private.portal/portal.js +37 -0
  556. package/dist/node_modules/quasar/src/utils/private.position-engine/position-engine.js +168 -0
  557. package/dist/node_modules/quasar/src/utils/private.render/render.js +30 -0
  558. package/dist/node_modules/quasar/src/utils/private.rtl/rtl.js +17 -0
  559. package/dist/node_modules/quasar/src/utils/private.selection/selection.js +10 -0
  560. package/dist/node_modules/quasar/src/utils/private.symbols/symbols.js +5 -0
  561. package/dist/node_modules/quasar/src/utils/private.touch/touch.js +23 -0
  562. package/dist/node_modules/quasar/src/utils/private.vm/vm.js +21 -0
  563. package/dist/node_modules/quasar/src/utils/scroll/prevent-scroll.js +58 -0
  564. package/dist/node_modules/quasar/src/utils/scroll/scroll.js +108 -0
  565. package/dist/node_modules/quasar/src/utils/throttle/throttle.js +11 -0
  566. package/dist/node_modules/quasar/src/utils/uid/uid.js +30 -0
  567. package/dist/node_modules/tslib/tslib.es6.js +19 -0
  568. package/dist/node_modules/vue-router/dist/devtools-EWN81iOl.js +19 -0
  569. package/dist/node_modules/vue-router/dist/vue-router.js +12 -0
  570. package/dist/node_modules/zrender/lib/Element.js +433 -0
  571. package/dist/node_modules/zrender/lib/Handler.js +168 -0
  572. package/dist/node_modules/zrender/lib/Storage.js +75 -0
  573. package/dist/node_modules/zrender/lib/animation/Animation.js +66 -0
  574. package/dist/node_modules/zrender/lib/animation/Animator.js +381 -0
  575. package/dist/node_modules/zrender/lib/animation/Clip.js +33 -0
  576. package/dist/node_modules/zrender/lib/animation/cubicEasing.js +18 -0
  577. package/dist/node_modules/zrender/lib/animation/easing.js +104 -0
  578. package/dist/node_modules/zrender/lib/animation/requestAnimationFrame.js +8 -0
  579. package/dist/node_modules/zrender/lib/canvas/Layer.js +134 -0
  580. package/dist/node_modules/zrender/lib/canvas/Painter.js +302 -0
  581. package/dist/node_modules/zrender/lib/canvas/dashStyle.js +18 -0
  582. package/dist/node_modules/zrender/lib/canvas/graphic.js +197 -0
  583. package/dist/node_modules/zrender/lib/canvas/helper.js +47 -0
  584. package/dist/node_modules/zrender/lib/config.js +11 -0
  585. package/dist/node_modules/zrender/lib/contain/arc.js +24 -0
  586. package/dist/node_modules/zrender/lib/contain/cubic.js +13 -0
  587. package/dist/node_modules/zrender/lib/contain/line.js +16 -0
  588. package/dist/node_modules/zrender/lib/contain/path.js +148 -0
  589. package/dist/node_modules/zrender/lib/contain/polygon.js +19 -0
  590. package/dist/node_modules/zrender/lib/contain/quadratic.js +13 -0
  591. package/dist/node_modules/zrender/lib/contain/text.js +96 -0
  592. package/dist/node_modules/zrender/lib/contain/util.js +7 -0
  593. package/dist/node_modules/zrender/lib/contain/windingLine.js +11 -0
  594. package/dist/node_modules/zrender/lib/core/BoundingRect.js +64 -0
  595. package/dist/node_modules/zrender/lib/core/Eventful.js +97 -0
  596. package/dist/node_modules/zrender/lib/core/GestureMgr.js +63 -0
  597. package/dist/node_modules/zrender/lib/core/LRU.js +52 -0
  598. package/dist/node_modules/zrender/lib/core/OrientedBoundingRect.js +46 -0
  599. package/dist/node_modules/zrender/lib/core/PathProxy.js +300 -0
  600. package/dist/node_modules/zrender/lib/core/Point.js +72 -0
  601. package/dist/node_modules/zrender/lib/core/Transformable.js +105 -0
  602. package/dist/node_modules/zrender/lib/core/WeakMap.js +26 -0
  603. package/dist/node_modules/zrender/lib/core/bbox.js +52 -0
  604. package/dist/node_modules/zrender/lib/core/curve.js +161 -0
  605. package/dist/node_modules/zrender/lib/core/dom.js +67 -0
  606. package/dist/node_modules/zrender/lib/core/env.js +21 -0
  607. package/dist/node_modules/zrender/lib/core/event.js +69 -0
  608. package/dist/node_modules/zrender/lib/core/fourPointsTransform.js +41 -0
  609. package/dist/node_modules/zrender/lib/core/matrix.js +44 -0
  610. package/dist/node_modules/zrender/lib/core/platform.js +48 -0
  611. package/dist/node_modules/zrender/lib/core/timsort.js +286 -0
  612. package/dist/node_modules/zrender/lib/core/util.js +405 -0
  613. package/dist/node_modules/zrender/lib/core/vector.js +76 -0
  614. package/dist/node_modules/zrender/lib/dom/HandlerProxy.js +188 -0
  615. package/dist/node_modules/zrender/lib/graphic/CompoundPath.js +29 -0
  616. package/dist/node_modules/zrender/lib/graphic/Displayable.js +146 -0
  617. package/dist/node_modules/zrender/lib/graphic/Gradient.js +14 -0
  618. package/dist/node_modules/zrender/lib/graphic/Group.js +93 -0
  619. package/dist/node_modules/zrender/lib/graphic/Image.js +55 -0
  620. package/dist/node_modules/zrender/lib/graphic/IncrementalDisplayable.js +69 -0
  621. package/dist/node_modules/zrender/lib/graphic/LinearGradient.js +13 -0
  622. package/dist/node_modules/zrender/lib/graphic/Path.js +216 -0
  623. package/dist/node_modules/zrender/lib/graphic/RadialGradient.js +13 -0
  624. package/dist/node_modules/zrender/lib/graphic/TSpan.js +52 -0
  625. package/dist/node_modules/zrender/lib/graphic/Text.js +218 -0
  626. package/dist/node_modules/zrender/lib/graphic/constants.js +6 -0
  627. package/dist/node_modules/zrender/lib/graphic/helper/image.js +41 -0
  628. package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +211 -0
  629. package/dist/node_modules/zrender/lib/graphic/helper/poly.js +22 -0
  630. package/dist/node_modules/zrender/lib/graphic/helper/roundRect.js +9 -0
  631. package/dist/node_modules/zrender/lib/graphic/helper/roundSector.js +79 -0
  632. package/dist/node_modules/zrender/lib/graphic/helper/smoothBezier.js +29 -0
  633. package/dist/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js +28 -0
  634. package/dist/node_modules/zrender/lib/graphic/shape/Arc.js +29 -0
  635. package/dist/node_modules/zrender/lib/graphic/shape/BezierCurve.js +47 -0
  636. package/dist/node_modules/zrender/lib/graphic/shape/Circle.js +23 -0
  637. package/dist/node_modules/zrender/lib/graphic/shape/Ellipse.js +24 -0
  638. package/dist/node_modules/zrender/lib/graphic/shape/Line.js +42 -0
  639. package/dist/node_modules/zrender/lib/graphic/shape/Polygon.js +24 -0
  640. package/dist/node_modules/zrender/lib/graphic/shape/Polyline.js +29 -0
  641. package/dist/node_modules/zrender/lib/graphic/shape/Rect.js +33 -0
  642. package/dist/node_modules/zrender/lib/graphic/shape/Ring.js +24 -0
  643. package/dist/node_modules/zrender/lib/graphic/shape/Sector.js +26 -0
  644. package/dist/node_modules/zrender/lib/mixin/Draggable.js +29 -0
  645. package/dist/node_modules/zrender/lib/svg/Painter.js +151 -0
  646. package/dist/node_modules/zrender/lib/svg/SVGPathRebuilder.js +52 -0
  647. package/dist/node_modules/zrender/lib/svg/core.js +98 -0
  648. package/dist/node_modules/zrender/lib/svg/cssAnimation.js +182 -0
  649. package/dist/node_modules/zrender/lib/svg/cssClassId.js +7 -0
  650. package/dist/node_modules/zrender/lib/svg/cssEmphasis.js +33 -0
  651. package/dist/node_modules/zrender/lib/svg/domapi.js +30 -0
  652. package/dist/node_modules/zrender/lib/svg/graphic.js +229 -0
  653. package/dist/node_modules/zrender/lib/svg/helper.js +112 -0
  654. package/dist/node_modules/zrender/lib/svg/mapStyleToAttrs.js +50 -0
  655. package/dist/node_modules/zrender/lib/svg/patch.js +85 -0
  656. package/dist/node_modules/zrender/lib/tool/color.js +342 -0
  657. package/dist/node_modules/zrender/lib/tool/convertPath.js +91 -0
  658. package/dist/node_modules/zrender/lib/tool/dividePath.js +181 -0
  659. package/dist/node_modules/zrender/lib/tool/morphPath.js +319 -0
  660. package/dist/node_modules/zrender/lib/tool/parseSVG.js +401 -0
  661. package/dist/node_modules/zrender/lib/tool/parseXML.js +14 -0
  662. package/dist/node_modules/zrender/lib/tool/path.js +164 -0
  663. package/dist/node_modules/zrender/lib/tool/transformPath.js +38 -0
  664. package/dist/node_modules/zrender/lib/zrender.js +129 -0
  665. package/dist/src/api/algorithm/alova/implement/comprehensiveAlgorithm.d.ts +1 -0
  666. package/dist/src/api/algorithm/alova/implement/comprehensiveAlgorithm.js +20 -5
  667. package/dist/src/api/algorithm/alova/implement/inquiriesAlgorithm.js +7 -4
  668. package/dist/src/api/algorithm/alova/implement/inspectionsAlgorithm.js +10 -7
  669. package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.js +9 -6
  670. package/dist/src/api/algorithm/alova/implement/pulsationsAlgorithm.js +10 -7
  671. package/dist/src/api/algorithm/alova/index.d.ts +0 -1
  672. package/dist/src/api/algorithm/alova/index.js +21 -21
  673. package/dist/src/api/algorithm/comprehensiveAlgorithm.d.ts +1 -1
  674. package/dist/src/api/algorithm/comprehensiveAlgorithm.js +7 -6
  675. package/dist/src/api/algorithm/index.d.ts +1 -1
  676. package/dist/src/api/algorithm/index.js +18 -18
  677. package/dist/src/api/algorithm/lisemsAlgorithm.js +1 -1
  678. package/dist/src/api/authorization/alova/createApis.js +7 -1
  679. package/dist/src/api/authorization/alova/index.js +8 -10
  680. package/dist/src/api/check/alova/createApis.js +7 -1
  681. package/dist/src/api/check/alova/index.js +6 -5
  682. package/dist/src/api/check/check.js +2 -2
  683. package/dist/src/api/doctor/alova/createApis.js +7 -1
  684. package/dist/src/api/doctor/alova/index.js +9 -10
  685. package/dist/src/api/metric/index.js +4 -5
  686. package/dist/src/api/oauth/alova/createApis.js +7 -1
  687. package/dist/src/api/oauth/alova/index.js +11 -13
  688. package/dist/src/api/outpatient/alova/createApis.js +7 -1
  689. package/dist/src/api/outpatient/alova/index.js +5 -5
  690. package/dist/src/api/patient/alova/createApis.js +7 -1
  691. package/dist/src/api/patient/alova/index.js +12 -9
  692. package/dist/src/api/patient/meta.d.ts +2 -2
  693. package/dist/src/api/patient/meta.js +0 -1
  694. package/dist/src/api/prescription/alova/createApis.js +7 -1
  695. package/dist/src/api/prescription/alova/index.js +7 -8
  696. package/dist/src/api/scientist/alova/createApis.js +7 -1
  697. package/dist/src/api/scientist/alova/index.js +5 -5
  698. package/dist/src/assets/body_1.svg.js +108 -0
  699. package/dist/src/assets/priclose.png.js +4 -0
  700. package/dist/src/boot/ioc.d.ts +2 -0
  701. package/dist/src/components/core/TakeImageCollected.vue.d.ts +19 -0
  702. package/dist/src/components/core/TakeImageCollected.vue.js +7 -0
  703. package/dist/src/components/core/TakeImageCollected.vue2.js +302 -0
  704. package/dist/src/components/tcm/index.d.ts +12 -0
  705. package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.d.ts +20 -0
  706. package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.js +7 -0
  707. package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue2.js +429 -0
  708. package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.d.ts +18 -0
  709. package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.js +7 -0
  710. package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue2.js +364 -0
  711. package/dist/src/components/tcm/inquirise/index.d.ts +3 -0
  712. package/dist/src/components/tcm/inquirise/symptoms.d.ts +15 -0
  713. package/dist/src/components/tcm/inquirise/symptoms.js +20 -0
  714. package/dist/src/components/tcm/inspections/CheckSceneMetaCollected.vue.d.ts +6 -0
  715. package/dist/src/components/tcm/inspections/CheckSceneMetaCollected.vue.js +7 -0
  716. package/dist/src/components/tcm/inspections/CheckSceneMetaCollected.vue2.js +22 -0
  717. package/dist/src/components/tcm/inspections/FaceMetaCollected.vue.d.ts +7 -0
  718. package/dist/src/components/tcm/inspections/FaceMetaCollected.vue.js +7 -0
  719. package/dist/src/components/tcm/inspections/FaceMetaCollected.vue2.js +42 -0
  720. package/dist/src/components/tcm/inspections/InspectionDeviceTakeImageCollected.vue.d.ts +9 -0
  721. package/dist/src/components/tcm/inspections/InspectionDeviceTakeImageCollected.vue.js +7 -0
  722. package/dist/src/components/tcm/inspections/InspectionDeviceTakeImageCollected.vue2.js +174 -0
  723. package/dist/src/components/tcm/inspections/SceneMetaCollected.vue.d.ts +7 -0
  724. package/dist/src/components/tcm/inspections/SceneMetaCollected.vue.js +7 -0
  725. package/dist/src/components/tcm/inspections/SceneMetaCollected.vue2.js +28 -0
  726. package/dist/src/components/tcm/inspections/TongueMetaCollected.vue.d.ts +7 -0
  727. package/dist/src/components/tcm/inspections/TongueMetaCollected.vue.js +7 -0
  728. package/dist/src/components/tcm/inspections/TongueMetaCollected.vue2.js +22 -0
  729. package/dist/src/components/tcm/inspections/index.d.ts +5 -0
  730. package/dist/src/components/tcm/lisems/EPPCollected.vue.d.ts +7 -0
  731. package/dist/src/components/tcm/lisems/EPPCollected.vue.js +7 -0
  732. package/dist/src/components/tcm/lisems/EPPCollected.vue2.js +761 -0
  733. package/dist/src/{pages/LoginPage.vue.d.ts → components/tcm/lisems/EcgAndPcgCollect.vue.d.ts} +1 -1
  734. package/dist/src/components/tcm/lisems/EcgAndPcgCollect.vue.js +835 -0
  735. package/dist/src/components/tcm/lisems/EcgAndPcgCollect.vue2.js +4 -0
  736. package/dist/src/components/tcm/lisems/index.d.ts +2 -0
  737. package/dist/src/components/tcm/palpations/OnePulsationCollect.vue.d.ts +2 -0
  738. package/dist/src/components/tcm/palpations/OnePulsationCollect.vue.js +150 -0
  739. package/dist/src/components/tcm/palpations/OnePulsationCollect.vue2.js +4 -0
  740. package/dist/src/components/tcm/palpations/PulsationCollect.vue.d.ts +10 -0
  741. package/dist/src/components/tcm/palpations/PulsationCollect.vue.js +7 -0
  742. package/dist/src/components/tcm/palpations/PulsationCollect.vue2.js +238 -0
  743. package/dist/src/components/tcm/palpations/index.d.ts +2 -0
  744. package/dist/src/env.d.ts +2 -2
  745. package/dist/src/index.d.ts +1 -0
  746. package/dist/src/index.js +58 -36
  747. package/dist/src/layouts/UserLayout.vue.d.ts +2 -0
  748. package/dist/src/proto/types/Images_pb.js +6 -7
  749. package/dist/src/proto/types/WaveMap_pb.js +3 -4
  750. package/dist/src/util/helper.d.ts +5 -5
  751. package/dist/src/util/helper.js +2 -38
  752. package/dist/src/util/number.d.ts +1 -1
  753. package/dist/src/util/number.js +38 -0
  754. package/dist/src/util/string.d.ts +1 -0
  755. package/dist/src/util/string.js +5 -47
  756. package/dist/web-core-tcm.css +1 -0
  757. package/package.json +10 -4
  758. package/dist/node_modules/@bufbuild/protobuf/dist/esm/clone.js +0 -35
  759. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +0 -109
  760. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js +0 -16
  761. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js +0 -9
  762. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js +0 -28
  763. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js +0 -48
  764. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js +0 -8
  765. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +0 -49
  766. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js +0 -1
  767. package/dist/node_modules/@bufbuild/protobuf/dist/esm/equals.js +0 -127
  768. package/dist/node_modules/@bufbuild/protobuf/dist/esm/extensions.js +0 -86
  769. package/dist/node_modules/@bufbuild/protobuf/dist/esm/fields.js +0 -11
  770. package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +0 -434
  771. package/dist/node_modules/@bufbuild/protobuf/dist/esm/index.js +0 -49
  772. package/dist/node_modules/@bufbuild/protobuf/dist/esm/merge.js +0 -33
  773. package/dist/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +0 -279
  774. package/dist/node_modules/@bufbuild/protobuf/dist/esm/types.js +0 -1
  775. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +0 -24
  776. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js +0 -123
  777. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +0 -40
  778. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.js +0 -18
  779. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js +0 -7
  780. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js +0 -11
  781. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +0 -19
  782. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +0 -18
  783. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +0 -7
  784. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +0 -7
  785. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +0 -7
  786. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +0 -25
  787. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +0 -26
  788. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +0 -7
  789. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +0 -17
  790. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +0 -7
  791. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +0 -35
  792. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +0 -15
  793. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +0 -180
  794. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +0 -29
  795. package/dist/src/api/algorithm/alova/implement/index.js +0 -12
  796. package/dist/src/api/authorization/alova/globals.js +0 -1
  797. package/dist/src/api/authorization/alova/implement/index.js +0 -4
  798. package/dist/src/api/check/alova/globals.js +0 -1
  799. package/dist/src/api/check/alova/implement/index.js +0 -5
  800. package/dist/src/api/doctor/alova/globals.js +0 -1
  801. package/dist/src/api/doctor/alova/implement/index.js +0 -4
  802. package/dist/src/api/index.js +0 -28
  803. package/dist/src/api/metric/alova/implement/index.js +0 -4
  804. package/dist/src/api/metric/alova/index.js +0 -1
  805. package/dist/src/api/oauth/alova/globals.js +0 -1
  806. package/dist/src/api/oauth/alova/implement/index.js +0 -4
  807. package/dist/src/api/outpatient/alova/globals.js +0 -1
  808. package/dist/src/api/outpatient/alova/implement/index.js +0 -4
  809. package/dist/src/api/patient/alova/globals.js +0 -1
  810. package/dist/src/api/patient/alova/implement/index.js +0 -16
  811. package/dist/src/api/prescription/alova/globals.js +0 -1
  812. package/dist/src/api/prescription/alova/implement/index.js +0 -6
  813. package/dist/src/api/scientist/alova/globals.js +0 -1
  814. package/dist/src/api/scientist/alova/implement/index.js +0 -4
  815. package/dist/src/components/models.d.ts +0 -7
  816. package/dist/src/proto/index.js +0 -10
@@ -1,2129 +1,89 @@
1
- import { isPlainObject as oe, instanceOf as k, trueValue as D, falseValue as w, newInstance as F, PromiseCls as Ut, pushItem as at, isFn as Y, noop as Z, len as N, forEach as X, undefinedValue as p, splice as xt, $self as se, filterItem as Dt, nullValue as Wt, isNumber as At, clearTimeoutTimer as Bs, setTimeoutFn as jt, createAssert as _t, injectReferingObject as Ks, mapItem as vt, FrameworkReadableState as Le, FrameworkState as Bn, objAssign as Ge, includes as Tt, ObjectCls as Me, deleteAttr as pn, objectKeys as yt, getHandlerMethod as es, getContext as He, getMethodInternalKey as Kt, promiseResolve as Ot, sloughConfig as re, omit as Ns, promiseThen as mt, buildNamespacedCacheKey as qs, getTime as ns, createEventManager as qt, createSyncOnceRunner as zs, isArray as lt, objectValues as Ie, usePromise as Ce, getLocalCacheConfigParam as Gs, MEMORY as Hs, promiseCatch as ye, createAsyncQueue as $s, promiseFinally as ue, promiseAll as Ws, decorateEvent as Re, isObject as bt, walkObject as Nt, valueObject as ss, uuid as an, defineProperty as Ze, globalToString as ks, isString as Pe, RegExpCls as rs, regexpTest as fe, shift as Kn, delayWithBackoff as os, getConfig as Ve, AlovaError as $e, getOptions as Ys, JSONParse as Js, promiseReject as as, buildCompletedURL as Xs, isSpecialRequestBody as Zs, JSONStringify as tr } from "../../../@alova/shared/dist/alova-shared.esm.js";
2
- import { Method as me, queryCache as cn, promiseStatesHook as Rt, globalConfigMap as cs, setCache as we, invalidateCache as er, hitCacheBySource as nr } from "../alova.esm.js";
3
- const Oe = {
1
+ import { noop as x, $self as F, isFn as u, isPlainObject as O, undefinedValue as R, instanceOf as A, trueValue as d, falseValue as v, len as w, PromiseCls as V, newInstance as L, forEach as P, splice as b, pushItem as h } from "../../../@alova/shared/dist/alova-shared.esm.js";
2
+ const j = {
4
3
  authRole: null
5
- }, de = {
4
+ }, M = {
6
5
  authRole: "login"
7
- }, is = {
6
+ }, p = {
8
7
  authRole: "logout"
9
- }, be = {
8
+ }, G = {
10
9
  authRole: "refreshToken"
11
- }, gt = ({ meta: e }, t) => {
12
- if (oe(e)) {
13
- for (const n in e)
14
- if (Object.prototype.hasOwnProperty.call(e, n)) {
15
- const r = t[n];
16
- if (k(r, RegExp) ? r.test(e[n]) : e[n] === r)
17
- return D;
18
- }
19
- }
20
- return w;
21
- }, mn = (e, t) => F(Ut, (n) => {
22
- at(t, {
23
- method: e,
24
- resolve: n
25
- });
26
- }), je = (e, t, n, r) => {
27
- if (gt(e, t?.metaMatches || n))
28
- return (Y(t) ? t : oe(t) && Y(t.handler) ? t.handler : Z)(r, e);
29
- }, ln = async (e, t, n, r, s, o) => {
30
- const c = N(r) >= 2;
31
- let l = s?.isExpired(...r);
32
- if (k(l, Ut) && (l = await l), l)
10
+ }, C = ({ meta: n }, s) => {
11
+ if (O(n)) {
12
+ for (const l in n)
13
+ if (Object.prototype.hasOwnProperty.call(n, l)) {
14
+ const e = s[l];
15
+ if (A(e, RegExp) ? e.test(n[l]) : n[l] === e)
16
+ return d;
17
+ }
18
+ }
19
+ return v;
20
+ }, Q = (n, s) => L(V, (l) => {
21
+ h(s, {
22
+ method: n,
23
+ resolve: l
24
+ });
25
+ }), N = (n, s, l, e) => {
26
+ if (C(n, s?.metaMatches || l))
27
+ return (u(s) ? s : O(s) && u(s.handler) ? s.handler : x)(e, n);
28
+ }, W = async (n, s, l, e, t, a) => {
29
+ const o = w(e) >= 2;
30
+ let E = t?.isExpired(...e);
31
+ if (A(E, V) && (E = await E), E)
33
32
  try {
34
- let v = D;
35
- if (c && o && (v = w, await mn(e, t)), v && (n(D), await s?.handler(...r), n(w), X(t, ({ resolve: d }) => d())), c) {
36
- const { config: d } = e, a = d.transform;
37
- d.transform = p;
38
- const i = await e;
39
- return d.transform = a, i;
33
+ if (d && (l(d), await t?.handler(...e), l(v), P(s, ({ resolve: i }) => i())), o) {
34
+ const { config: i } = n, c = i.transform;
35
+ i.transform = R;
36
+ const r = await n;
37
+ return i.transform = c, r;
40
38
  }
41
39
  } finally {
42
- n(w), xt(t, 0, N(t));
40
+ l(v), b(s, 0, w(s));
43
41
  }
44
- }, ls = (e) => {
45
- let t = p, n = p, r = p;
46
- if (Y(e))
47
- t = e;
48
- else if (oe(e)) {
49
- const { onSuccess: s, onError: o, onComplete: c } = e;
50
- t = Y(s) ? s : t, n = Y(o) ? o : n, r = Y(c) ? c : r;
42
+ }, $ = (n) => {
43
+ let s = R, l = R, e = R;
44
+ if (u(n))
45
+ s = n;
46
+ else if (O(n)) {
47
+ const { onSuccess: t, onError: a, onComplete: o } = n;
48
+ s = u(t) ? t : s, l = u(a) ? a : l, e = u(o) ? o : e;
51
49
  }
52
50
  return {
53
- onSuccess: t,
54
- onError: n,
55
- onComplete: r
51
+ onSuccess: s,
52
+ onError: l,
53
+ onComplete: e
56
54
  };
57
- }, Wr = ({ visitorMeta: e, login: t, logout: n, refreshToken: r, assignToken: s = Z }) => {
58
- let o = w;
59
- const c = [];
55
+ }, I = ({ visitorMeta: n, login: s, logout: l, refreshToken: e, assignToken: t = x }) => {
56
+ let a = v;
57
+ const o = [];
60
58
  return {
61
- waitingList: c,
62
- onAuthRequired: (d) => async (a) => {
63
- const i = gt(a, e || Oe), f = gt(a, t?.metaMatches || de);
64
- return !i && !f && !gt(a, r?.metaMatches || be) && (o && await mn(a, c), await ln(a, c, (u) => {
65
- o = u;
66
- }, [a], r)), !i && !f && await s(a), d?.(a);
67
- },
68
- onResponseRefreshToken: (d) => {
69
- const a = ls(d);
59
+ waitingList: o,
60
+ onAuthRequired: (i) => async (c) => {
61
+ const r = C(c, n || j), f = C(c, s?.metaMatches || M);
62
+ return !r && !f && !C(c, e?.metaMatches || G) && (a && await Q(c, o), await W(c, o, (D) => {
63
+ a = D;
64
+ }, [c], e)), !r && !f && await t(c), i?.(c);
65
+ },
66
+ onResponseRefreshToken: (i) => {
67
+ const c = $(i);
70
68
  return {
71
- ...a,
72
- onSuccess: async (i, f) => (await je(f, t, de, i), await je(f, n, is, i), (a.onSuccess || se)(i, f))
73
- };
74
- }
75
- };
76
- }, kr = ({ visitorMeta: e, login: t, logout: n, refreshTokenOnSuccess: r, refreshTokenOnError: s, assignToken: o = Z }) => {
77
- let c = w;
78
- const l = [];
79
- return {
80
- waitingList: l,
81
- onAuthRequired: (a) => async (i) => {
82
- const f = gt(i, e || Oe), u = gt(i, t?.metaMatches || de);
83
- return !f && !u && !gt(i, r?.metaMatches || be) && !gt(i, s?.metaMatches || be) && c && await mn(i, l), !f && !u && await o(i), a?.(i);
84
- },
85
- onResponseRefreshToken: (a) => {
86
- const i = ls(a);
87
- return {
88
- ...i,
89
- onSuccess: async (f, u) => {
90
- if (!gt(u, e || Oe) && !gt(u, t?.metaMatches || de) && !gt(u, r?.metaMatches || be)) {
91
- const O = await ln(u, l, (I) => {
92
- c = I;
93
- }, [f, u], r, c);
94
- if (O)
95
- return O;
96
- }
97
- return await je(u, t, de, f), await je(u, n, is, f), (i.onSuccess || se)(f, u);
98
- },
99
- onError: async (f, u) => {
100
- if (!gt(u, e || Oe) && !gt(u, t?.metaMatches || de) && !gt(u, s?.metaMatches || be)) {
101
- const O = await ln(u, l, (I) => {
102
- c = I;
103
- }, [f, u], s, c);
104
- if (O)
105
- return O;
106
- }
107
- return (i.onError || Z)(f, u);
108
- }
109
- };
110
- }
111
- };
112
- }, Nn = (e) => {
113
- throw e;
114
- };
115
- function sr(e = Z) {
116
- let t = [];
117
- return [(o) => (t.includes(o) || (t.push(o), e(t)), () => {
118
- t = Dt(t, (c) => c !== o), e(t);
119
- }), (...o) => {
120
- if (t.length > 0)
121
- return X(t, (c) => c(...o));
122
- }, () => {
123
- t = [], e(t);
124
- }];
125
- }
126
- const rr = (e, t) => {
127
- let n = Wt;
128
- return function(...s) {
129
- const o = e.bind(this, ...s), c = At(t) ? t : t(...s);
130
- n && Bs(n), c > 0 ? n = jt(o, c) : o();
131
- };
132
- }, qn = (e, t = []) => {
133
- const n = Y(e) ? e(...t) : e;
134
- return _t("scene")(k(n, me), "hook handler must be a method instance or a function that returns method instance"), n;
135
- }, or = (e, t) => {
136
- const n = {};
137
- for (const r in e)
138
- n[r] = t(e[r], r, e);
139
- return n;
140
- };
141
- var It;
142
- (function(e) {
143
- e[e.USE_REQUEST = 1] = "USE_REQUEST", e[e.USE_WATCHER = 2] = "USE_WATCHER", e[e.USE_FETCHER = 3] = "USE_FETCHER";
144
- })(It || (It = {}));
145
- function Ft(e, t = {
146
- trackedKeys: {},
147
- bindError: w,
148
- initialRequest: w,
149
- ...Ks()
150
- }) {
151
- const n = (a) => e.ref ? e.ref(a) : { current: a };
152
- t = n(t).current;
153
- const r = (a) => (e.export || se)(a, t), s = (a) => {
154
- if (!Y(e.memorize))
155
- return a;
156
- const i = e.memorize(a);
157
- return i.memorized = D, i;
158
- }, { dehydrate: o } = e, c = (a, i, f) => a !== o(i, f, t) && t.trackedKeys[f] && e.update(a, i, f, t), l = (a) => vt(a, (i) => k(i, Le) ? i.e : i), v = [], d = {};
159
- return {
160
- create: (a, i) => (at(v, i), F(Bn, e.create(a, i, t), i, (f) => o(f, i, t), r, (f, u) => c(u, f, i))),
161
- computed: (a, i, f) => (X(i, (u) => {
162
- u.k && (d[u.k] = D);
163
- }), F(Le, e.computed(a, l(i), f, t), f, (u) => o(u, f, t), r)),
164
- effectRequest: (a) => e.effectRequest(a, t),
165
- ref: n,
166
- watch: (a, i) => e.watch(l(a), i, t),
167
- onMounted: (a) => e.onMounted(a, t),
168
- onUnmounted: (a) => e.onUnmounted(a, t),
169
- memorize: s,
170
- /**
171
- * refering object that sharing some value with this object.
172
- */
173
- __referingObj: t,
174
- /**
175
- * expose provider for specified use hook.
176
- * @param object object that contains state proxy, framework state, operating function and event binder.
177
- * @returns provider component.
178
- */
179
- exposeProvider: (a) => {
180
- const i = {}, f = {}, u = [];
181
- for (const b in a) {
182
- const _ = a[b];
183
- if (Y(_) && !t.trackedKeys[b])
184
- i[b] = b.startsWith("on") ? (...q) => (_(...q), Q) : _.memorized ? _ : s(_);
185
- else {
186
- !Tt(["uploading", "downloading"], b) && !b.startsWith("__") && at(u, b);
187
- const q = k(_, Le);
188
- q && (f[b] = _.s), Me.defineProperty(i, b, {
189
- get: () => (t.trackedKeys[b] = D, q ? _.e : _),
190
- // set need to set an function,
191
- // otherwise it will throw `TypeError: Cannot set property __referingObj of #<Object> which has only a getter` when setting value
192
- set: Z,
193
- enumerable: D,
194
- configurable: D
195
- });
196
- }
197
- }
198
- const { update: O, __proxyState: I } = i;
199
- t.trackedKeys = {
200
- ...d
201
- }, t.bindError = w;
202
- const { then: g } = i, H = {
203
- // expose referingObject automatically.
204
- __referingObj: t,
205
- // the new updating function that can update the new states and nested hook states.
206
- update: s((b) => {
207
- yt(b).forEach((_) => {
208
- Tt(v, _) ? c(b[_], f[_], _) : _ in i && Y(O) && O({
209
- [_]: b[_]
210
- });
211
- });
212
- }),
213
- __proxyState: s((b) => Tt(v, b) && k(a[b], Le) ? (t.trackedKeys[b] = D, a[b]) : I(b)),
214
- /**
215
- * send and wait for responding with `await`
216
- * this is always used in `nuxt3` and suspense in vue3
217
- * @example
218
- * ```js
219
- * const { loading, data, error } = await useRequest(...);
220
- * ```
221
- */
222
- then(b, _) {
223
- X(u, (q) => {
224
- t.trackedKeys[q] = D;
225
- });
226
- const V = () => {
227
- pn(Q, "then"), b(Q);
228
- };
229
- Y(g) ? g(V, _) : V();
230
- }
231
- }, Q = Ge(i, H);
232
- return Q;
233
- },
234
- /**
235
- * transform state proxies to object.
236
- * @param states proxy array of framework states
237
- * @param filterKey filter key of state proxy
238
- * @returns an object that contains the states of target form
239
- */
240
- objectify: (a, i) => a.reduce((f, u) => (f[u.k] = i ? u[i] : u, f), {}),
241
- transformState2Proxy: (a, i) => F(Bn, a, i, (f) => o(f, i, t), r, (f, u) => c(u, f, i))
242
- };
243
- }
244
- const ar = _t(""), cr = _t("useRequest"), ds = _t("useWatcher"), us = _t("useFetcher"), fs = (e) => ({
245
- [It.USE_REQUEST]: cr,
246
- [It.USE_WATCHER]: ds,
247
- [It.USE_FETCHER]: us
248
- })[e], vs = (e, t) => e(k(t, me), "expected a method instance."), te = "success", ee = "error", Gt = "complete";
249
- var ir = (e, t, n, r) => ({
250
- /** The method instance of the last request */
251
- m: p,
252
- /** sent method keys */
253
- rf: {},
254
- /** frontStates */
255
- fs: {},
256
- /** eventManager */
257
- em: n,
258
- /** hookType, useRequest=1, useWatcher=2, useFetcher=3 */
259
- ht: e,
260
- /** hook config */
261
- c: t,
262
- /** referingObject */
263
- ro: r,
264
- /** merged states */
265
- ms: {}
266
- });
267
- class wt {
268
- constructor(t, n) {
269
- this.method = t, this.args = n;
270
- }
271
- clone() {
272
- return { ...this };
273
- }
274
- static spawn(t, n) {
275
- return F(wt, t, n);
276
- }
277
- }
278
- class hs extends wt {
279
- constructor(t, n, r) {
280
- super(t.method, t.args), this.data = n, this.fromCache = r;
281
- }
282
- }
283
- class En extends wt {
284
- constructor(t, n) {
285
- super(t.method, t.args), this.error = n;
286
- }
287
- }
288
- class dn extends wt {
289
- constructor(t, n, r, s, o) {
290
- super(t.method, t.args), this.status = n, this.data = r, this.fromCache = n === "error" ? !1 : s, this.error = o;
291
- }
292
- }
293
- class ps {
294
- constructor(t, n, r) {
295
- this.behavior = t, this.method = n, this.silentMethod = r;
296
- }
297
- }
298
- class We extends ps {
299
- constructor(t, n, r, s, o) {
300
- super(t, n, r), this.queueName = s, this.retryTimes = o;
301
- }
302
- }
303
- class lr extends We {
304
- constructor(t, n, r, s, o, c, l) {
305
- super(t, n, r, s, o), this.data = c, this.vDataResponse = l;
306
- }
307
- }
308
- class dr extends We {
309
- constructor(t, n, r, s, o, c, l) {
310
- super(t, n, r, s, o), this.error = c, this.retryDelay = l;
311
- }
312
- }
313
- class ur extends We {
314
- constructor(t, n, r, s, o, c) {
315
- super(t, n, r, s, o), this.error = c;
316
- }
317
- }
318
- class xe extends ps {
319
- constructor(t, n, r, s) {
320
- super(t, n, r), this.args = s;
321
- }
322
- }
323
- class fr extends xe {
324
- constructor(t, n, r, s, o) {
325
- super(t, n, r, s), this.data = o;
326
- }
327
- }
328
- class ms extends xe {
329
- constructor(t, n, r, s, o) {
330
- super(t, n, r, s), this.error = o;
331
- }
332
- }
333
- class vr extends xe {
334
- constructor(t, n, r, s, o, c) {
335
- super(t, n, r, s), this.retryTimes = o, this.retryDelay = c;
336
- }
337
- }
338
- class hr extends xe {
339
- constructor(t, n, r, s, o, c, l) {
340
- super(t, n, r, s), this.status = o, this.data = c, this.error = l;
341
- }
342
- }
343
- class pr extends wt {
344
- constructor(t, n, r) {
345
- super(t.method, t.args), this.retryTimes = n, this.retryDelay = r;
346
- }
347
- }
348
- class mr extends En {
349
- constructor(t, n, r) {
350
- super(t, n), this.retryTimes = r;
351
- }
352
- }
353
- const Er = (e, t) => t(), Be = {}, Es = (e, t) => {
354
- const n = Be[e] || {};
355
- return n[t] ? Array.from(n[t]) : [];
356
- }, Sr = (e, t, n) => {
357
- const r = Be[e] = Be[e] || {};
358
- r[t] || (r[t] = F(Set)), r[t].add(n);
359
- }, gr = (e, t, n) => {
360
- const r = Be[e], s = r[t];
361
- r && s && (n ? s.delete(n) : s.clear(), s.size === 0 && pn(r, t));
362
- };
363
- function un(e, t, n = []) {
364
- const r = fs(e.ht);
365
- let s = es(t, r, n);
366
- const { fs: o, ht: c, c: l } = e, { loading: v, data: d, error: a } = o, i = c === It.USE_FETCHER, { force: f = w, middleware: u = Er } = l, O = He(s), { id: I } = O, g = Kt(s), { abortLast: H = D } = l, Q = !e.m;
367
- return e.m = s, (async () => {
368
- let b = Z, _ = w, V = Ot(p), q = Z, K = Z;
369
- const j = await cn(s);
370
- let R = () => !!j, x = w;
371
- i || (Sr(I, g, e), b = () => gr(I, g, e));
372
- const T = (M) => {
373
- _ = D;
374
- const { force: y = f, method: C = s } = M || {}, z = re(y, [
375
- F(wt, s, n)
376
- ]), $ = (Et) => ({ loaded: ct, total: Ct }) => {
377
- o[Et].v = {
378
- loaded: ct,
379
- total: Ct
380
- };
69
+ ...c,
70
+ onSuccess: async (r, f) => (await N(f, s, M, r), await N(f, l, p, r), (c.onSuccess || F)(r, f))
381
71
  };
382
- s = C, e.rf[g] = b, x || (v.v = !!z || !j);
383
- const { downloading: ot, uploading: ht } = e.ro.trackedKeys;
384
- return q = ot ? s.onDownload($("downloading")) : q, K = ht ? s.onUpload($("uploading")) : K, V = s.send(z), R = () => s.fromCache || w, V;
385
- }, J = {
386
- method: s,
387
- cachedResponse: j,
388
- config: l,
389
- abort: () => s.abort()
390
- }, et = () => c !== It.USE_WATCHER || !H || e.m === s, h = (M = D) => {
391
- M && Q && (v.v = w), x = M;
392
- }, m = u(i ? {
393
- ...J,
394
- args: n,
395
- fetch: (M, ...y) => (vs(r, M), un(e, M, y)),
396
- proxyStates: Ns(o, "data"),
397
- controlLoading: h
398
- } : {
399
- ...J,
400
- args: n,
401
- send: (...M) => un(e, t, M),
402
- proxyStates: o,
403
- controlLoading: h
404
- }, T);
405
- let A = p;
406
- const P = wt.spawn(s, n);
407
- try {
408
- const M = await m, y = (C) => (i ? e.c.updateState !== w && X(Es(I, g), (z) => {
409
- z.fs.data.v = C;
410
- }) : et() && (d.v = C), et() && (a.v = p, !x && (v.v = w), e.em.emit(te, F(hs, P, C, R())), e.em.emit(Gt, F(dn, P, te, C, R(), p))), C);
411
- A = // When no data is returned or undefined is returned in the middleware, get the real response data
412
- // Otherwise, use the returned data and no longer wait for the response promise. At this time, you also need to call the response callback.
413
- M !== p ? y(M) : _ ? (
414
- // There are two possibilities when middlewareCompletePromise is resolve
415
- // 1. The request is normal
416
- // 2. The request is incorrect, but the error is captured by the middleware function. At this time, the success callback will also be called, that is, afterSuccess(undefinedValue)
417
- await mt(V, y, () => y(p))
418
- ) : (
419
- // If is next called is not called, no data is returned
420
- p
421
- ), !_ && !x && (v.v = w);
422
- } catch (M) {
423
- throw et() && (a.v = M, !x && (v.v = w), e.em.emit(ee, F(En, P, M)), e.em.emit(Gt, F(dn, P, ee, p, R(), M))), M;
424
- }
425
- return q(), K(), A;
426
- })();
427
- }
428
- const ie = (e) => e.current;
429
- function Sn(e, t, n, r, s = w, o, c = 0) {
430
- var l;
431
- n = { ...n };
432
- let v = !!s, d = p;
433
- if (s)
434
- try {
435
- const C = es(t, fs(e)), z = He(C), $ = z.l1Cache.get(qs(z.id, Kt(C)));
436
- if ($ && !k($, Ut)) {
437
- const [ht, Et] = $;
438
- (!Et || Et > ns()) && (d = ht);
439
- }
440
- v = !!re((l = n.force) !== null && l !== void 0 ? l : w) || !d;
441
- } catch {
442
72
  }
443
- const { create: a, effectRequest: i, ref: f, objectify: u, exposeProvider: O, transformState2Proxy: I, __referingObj: g } = Ft(Rt(), n.__referingObj), H = {
444
- total: 0,
445
- loaded: 0
446
- }, { managedStates: Q = {} } = n, b = or(Q, (C, z) => I(C, z)), _ = a(d ?? (Y(r) ? r() : r), "data"), V = a(v, "loading"), q = a(p, "error"), K = a({ ...H }, "downloading"), j = a({ ...H }, "uploading"), R = u([_, V, q, K, j]), x = qt(), T = ie(f(ir(e, n, x, g)));
447
- T.fs = R, T.em = x, T.c = n, T.ms = { ...R, ...b };
448
- const J = o !== p, et = (C = t, z) => un(T, C, z), h = f(p), m = f(w), A = ie(f(zs())), P = (C = g, z) => {
449
- A(() => {
450
- (!cs.ssr || ie(h)) && (g.initialRequest = m.current = D, mt(et(z), () => {
451
- var $;
452
- ($ = ie(h)) === null || $ === void 0 || $.resolve();
453
- }, ($) => {
454
- var ot;
455
- if (!C.bindError && !C.trackedKeys.error && !ie(h))
456
- throw $;
457
- (ot = ie(h)) === null || ot === void 0 || ot.reject($);
458
- }));
459
- });
460
- }, M = f(rr((C, z, $) => P(z, $), (C) => At(C) ? lt(c) ? c[C] : c : 0));
461
- i({
462
- handler: (
463
- // When `watchingStates` is an array, it indicates the watching states (including an empty array). When it is undefined, it indicates the non-watching state.
464
- J ? (C) => M.current(C, g, t) : () => P(g)
465
- ),
466
- removeStates: () => {
467
- X(Ie(T.rf), (C) => C());
468
- },
469
- frontStates: { ...R, ...b },
470
- watchingStates: o,
471
- immediate: s ?? D
472
- });
473
- const y = O({
474
- ...u([_, V, q, K, j]),
475
- abort: () => T.m && T.m.abort(),
476
- /**
477
- * Manually initiate a request by executing this method
478
- * @param sendCallingArgs Parameters passed in when calling the send function
479
- * @param methodInstance method object
480
- * @param isFetcher Whether to call isFetcher
481
- * @returns Request promise
482
- */
483
- send: (C, z) => et(z, C),
484
- onSuccess(C) {
485
- x.on(te, C);
486
- },
487
- onError(C) {
488
- g.bindError = D, x.on(ee, C);
489
- },
490
- onComplete(C) {
491
- x.on(Gt, C);
492
- },
493
- /**
494
- * send and wait for responding with `await`
495
- * this is always used in `nuxt3` and `<suspense>` in vue3
496
- * @example
497
- * ```js
498
- * const { loading, data, error } = await useRequest(...);
499
- * ```
500
- */
501
- then(C, z) {
502
- const { promise: $, resolve: ot, reject: ht } = Ce();
503
- h.current = {
504
- resolve: ot,
505
- reject: ht
506
- }, jt(() => {
507
- !m.current && ot();
508
- }, 10), mt($, () => {
509
- C(y);
510
- }, z);
511
- }
512
- });
513
- return y;
514
- }
515
- function br(e = {}) {
516
- const t = Sn(It.USE_FETCHER, Z, e), { send: n } = t;
517
- return pn(t, "send"), Ge(t, {
518
- /**
519
- * Fetch data fetch will definitely send a request, and if the currently requested data has a corresponding management state, this state will be updated.
520
- * @param matcher Method object
521
- */
522
- fetch: (r, ...s) => (vs(us, r), n(s, r))
523
- });
524
- }
525
- function Ee(e, t = {}) {
526
- const { immediate: n = D, initialData: r } = t, s = Sn(It.USE_REQUEST, e, t, r, !!n), { send: o } = s;
527
- return Ge(s, {
528
- send: (...c) => o(c)
529
- });
530
- }
531
- function Ss(e, t, n = {}) {
532
- ds(t && N(t) > 0, "expected at least one watching state");
533
- const { immediate: r, debounce: s = 0, initialData: o } = n, c = Sn(
534
- It.USE_WATCHER,
535
- e,
536
- n,
537
- o,
538
- !!r,
539
- // !!immediate means not send request immediately
540
- t,
541
- s
542
- ), { send: l } = c;
543
- return Ge(c, {
544
- send: (...v) => l(v)
545
- });
546
- }
547
- var yr = (e) => {
548
- let t = {};
549
- return {
550
- snapshots: () => t,
551
- save(n, r = w) {
552
- const s = Kt(n);
553
- (!t[s] || r) && (t[s] = {
554
- entity: n
555
- });
556
- },
557
- get: (n) => t[Kt(k(n, me) ? n : e(n))],
558
- remove(n) {
559
- n ? delete t[n] : t = {};
560
- }
561
- };
562
- };
563
- const Xt = _t("usePagination"), zn = (e, t) => Xt(At(e) && e < N(t), "index must be a number that less than list length"), Gn = (e) => [
564
- e[e.length - 2],
565
- // refreshPage
566
- e[e.length - 1],
567
- // isRefresh
568
- e.slice(0, e.length - 2)
569
- // send args
570
- ];
571
- var Yr = (e, t = {}) => {
572
- const { create: n, computed: r, ref: s, watch: o, exposeProvider: c, objectify: l, __referingObj: v } = Ft(Rt()), { preloadPreviousPage: d = D, preloadNextPage: a = D, total: i = (E) => E.total, data: f = (E) => E.data, append: u = w, initialPage: O = 1, initialPageSize: I = 10, watchingStates: g = [], initialData: H, immediate: Q = D, middleware: b, force: _ = Z, actions: V = {}, ...q } = t, K = s(e), j = s(w), R = n(O, "page"), x = n(I, "pageSize"), T = n(H ? f(H) || [] : [], "data"), J = n(H ? i(H) : p, "total"), { snapshots: et, get: h, save: m, remove: A } = s(yr((E) => K.current(E, x.v))).current, P = (E) => f(E) || E, M = br({
573
- __referingObj: v,
574
- updateState: w,
575
- force: ({ args: E }) => E[N(E) - 1]
576
- }), { loading: y, fetch: C, abort: z, onSuccess: $ } = M, ot = s(y), ht = (E = R.v, S = []) => {
577
- const U = e(E, x.v, ...S);
578
- return m(U), U;
579
- };
580
- o(g, () => {
581
- R.v = O, j.current = D;
582
- });
583
- const Et = s({}), ct = n("", "status"), Ct = n([], "removing"), L = n(p, "replacing"), B = r(() => {
584
- const E = J.v;
585
- return E !== p ? Math.ceil(E / x.v) : p;
586
- }, [x, J], "pageCount"), W = (E) => (...S) => Et.current[E](...S), nt = Ss((...E) => {
587
- const [S, , U] = Gn(E);
588
- return ht(S, U);
589
- }, [...g, R.e, x.e], {
590
- __referingObj: v,
591
- immediate: Q,
592
- initialData: H,
593
- managedStates: l([T, R, x, J], "s"),
594
- middleware(E, S) {
595
- return b ? b({
596
- ...E,
597
- delegatingActions: {
598
- refresh: W("refresh"),
599
- insert: W("insert"),
600
- remove: W("remove"),
601
- replace: W("replace"),
602
- reload: W("reload"),
603
- getState: (U) => ({
604
- page: R,
605
- pageSize: x,
606
- data: T,
607
- pageCount: B,
608
- total: J,
609
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
610
- isLastPage: Fe
611
- })[U].v
612
- }
613
- }, S) : S();
614
- },
615
- force: (E) => E.args[1] || (Y(_) ? _(E) : _),
616
- ...q
617
- }), { send: ut } = nt, Lt = nt.__proxyState("data"), zt = async (E) => {
618
- const { rawData: S = Lt.v, preloadPage: U, fetchMethod: G, forceRequest: tt = w, isNextPage: st = w } = E, it = B.v, ft = it ? U > it : st ? N(P(S)) < x.v : w;
619
- if (!(U > 0 && !ft))
620
- return w;
621
- const { e: rt } = Gs(G), Mt = await cn(G);
622
- return rt(Hs) <= ns() ? w : tt || !Mt;
623
- }, Pt = async (E, S, U = []) => {
624
- const G = R.v + 1, tt = ht(G, U);
625
- a && await zt({
626
- rawData: E,
627
- preloadPage: G,
628
- fetchMethod: tt,
629
- isNextPage: D,
630
- forceRequest: S
631
- }) && ye(C(tt, ...U, S), Z);
632
- }, Bt = async (E, S = []) => {
633
- const U = R.v - 1, G = ht(U, S);
634
- d && await zt({
635
- rawData: E,
636
- preloadPage: U,
637
- fetchMethod: G
638
- }) && ye(C(G, ...S, p), Z);
639
- }, pt = () => {
640
- const E = Lt.v;
641
- if (!E)
642
- return D;
643
- const S = P(E), U = R.v, G = B.v, tt = lt(S) ? N(S) : 0;
644
- return G ? U >= G : tt < x.v;
645
- }, Fe = n(pt(), "isLastPage");
646
- o([R, B, Lt, x], async () => {
647
- jt(() => {
648
- Fe.v = pt();
649
- });
650
- });
651
- const Yt = async () => {
652
- const E = h(R.v);
653
- E && await we(E.entity, (S) => {
654
- if (S) {
655
- const U = P(S) || [];
656
- return xt(U, 0, N(U), ...T.v), S;
657
- }
658
- });
659
- };
660
- $(({ method: E, data: S }) => {
661
- const U = h(R.v);
662
- if (U && Kt(U.entity) === Kt(E)) {
663
- const G = P(S);
664
- if (u) {
665
- const tt = T.v, st = x.v, it = N(tt) % st;
666
- if (it > 0) {
667
- const ft = [...T.v];
668
- xt(ft, (R.v - 1) * st, it, ...G), T.v = ft;
669
- }
670
- } else
671
- T.v = G;
672
- }
673
- });
674
- const Se = s(p), ae = s(p);
675
- nt.onSuccess(({ data: E, args: S, method: U }) => {
676
- const [G, tt, st] = Gn(S), { total: it } = h(U) || {}, ft = E;
677
- J.v = it !== p ? it : i(ft), tt || (Bt(ft, st), Pt(ft, w, st));
678
- const Jt = x.v, rt = P(ft);
679
- if (Xt(lt(rt), "Got wrong array, did you return the correct array of list in `data` function"), u) {
680
- if (j.current && (T.v = []), G === p)
681
- T.v = [...T.v, ...rt];
682
- else if (G) {
683
- const Mt = [...T.v];
684
- xt(Mt, (G - 1) * Jt, Jt, ...rt), T.v = Mt;
685
- }
686
- } else
687
- T.v = rt;
688
- }).onSuccess(({ data: E }) => {
689
- var S;
690
- (S = Se.current) === null || S === void 0 || S.call(Se, E);
691
- }).onError(({ error: E }) => {
692
- var S;
693
- (S = ae.current) === null || S === void 0 || S.call(ae, E);
694
- }).onComplete(() => {
695
- j.current = w;
696
- });
697
- const ce = (E) => {
698
- const S = T.v.indexOf(E);
699
- return Xt(S >= 0, "item is not found in list"), S;
700
- }, { addQueue: Je, onComplete: Ln } = s($s()).current, Xe = async (E = R.v) => {
701
- let S = E, U = Ot();
702
- if (u) {
703
- if (!At(E)) {
704
- const G = ce(E);
705
- S = Math.floor(G / x.v) + 1;
706
- }
707
- Xt(S <= R.v, "refresh page can't greater than page"), U = ut(S, D);
708
- } else
709
- Xt(At(S), "unable to calculate refresh page by item in pagination mode"), U = S === R.v ? ut(p, D) : C(e(S, x.v), D);
710
- return U;
711
- }, Tn = async (E = w) => {
712
- const S = R.v, U = et();
713
- let G = Ie(U);
714
- if (E)
715
- A();
716
- else {
717
- const tt = vt(Dt([h(S - 1), h(S), h(S + 1)], Boolean), ({ entity: st }) => Kt(st));
718
- G = vt(Dt(yt(U), (st) => !Tt(tt, st)), (st) => {
719
- const it = U[st];
720
- return delete U[st], it;
721
- });
722
- }
723
- await er(vt(G, ({ entity: tt }) => tt));
724
- }, On = async () => {
725
- ot.current && z(), await Tn();
726
- const E = h(R.v + 1);
727
- if (E) {
728
- const S = P(await cn(E.entity) || {}) || [];
729
- Pt(p, N(S) < x.v);
730
- }
731
- }, Un = (E) => {
732
- if (E === 0)
733
- return;
734
- const S = J.v;
735
- if (At(S)) {
736
- const U = Math.max(S + E, 0);
737
- J.v = U;
738
- const G = R.v;
739
- X([h(G - 1), h(G), h(G + 1)], (tt) => {
740
- tt && (tt.total = U);
741
- });
742
- }
743
- }, Qn = (E, S = 0) => (Ln(On), Je(async () => {
744
- const U = At(S) ? S : ce(S) + 1;
745
- Xt(U >= 0, "illegal insert position"), Y(V.insert) && (ct.v = "inserting", await ue(V.insert(E, S), () => {
746
- ct.v = "";
747
- }));
748
- let G = p;
749
- const tt = [...T.v];
750
- if (N(tt) % x.v === 0 && (G = tt.pop()), xt(tt, U, 0, E), T.v = tt, Un(1), await Yt(), G) {
751
- const st = h(R.v + 1);
752
- st && await we(st.entity, (it) => {
753
- if (it) {
754
- const ft = P(it) || [];
755
- return ft.unshift(G), ft.pop(), it;
756
- }
757
- });
758
- }
759
- })), In = (...E) => (Ln(On), Je(async () => {
760
- const S = vt(E, (rt) => {
761
- const Mt = At(rt) ? rt : ce(rt);
762
- return zn(Mt, T.v), Mt;
763
- });
764
- if (Y(V.remove)) {
765
- ct.v = "removing", Ct.v = [...S];
766
- const rt = Ws(vt(E, (Mt) => V.remove(Mt)));
767
- await ue(rt, () => {
768
- ct.v = "", Ct.v = [];
769
- });
770
- }
771
- const U = R.v, G = U + 1, tt = h(G), st = [];
772
- tt && await we(tt.entity, (rt) => {
773
- if (rt) {
774
- const Mt = P(rt);
775
- return lt(Mt) && at(st, ...xt(Mt, 0, N(S))), rt;
776
- }
777
- });
778
- const it = pt(), ft = N(st);
779
- let Jt = !1;
780
- if (ft > 0 || it) {
781
- const rt = Dt(T.v, (Mt, js) => !Tt(S, js));
782
- Jt = !u && it && N(rt) <= 0, !Jt && ft > 0 && at(rt, ...st), T.v = rt;
783
- } else ft <= 0 && !it && Xe(U);
784
- return Un(-N(S)), Yt().then(() => {
785
- Jt && (R.v = U - 1);
786
- });
787
- })), Vn = (E, S) => Je(async () => {
788
- Xt(S !== p, "expect specify the replace position");
789
- const U = At(S) ? S : ce(S);
790
- zn(U, T.v), Y(V.replace) && (ct.v = "replacing", L.v = U, await ue(V.replace(E, S), () => {
791
- ct.v = "", L.v = p;
792
- }));
793
- const G = [...T.v];
794
- xt(G, U, 1, E), T.v = G, await Yt();
795
- }), jn = async () => {
796
- await Tn(D), j.current = D, R.v === O ? ye(ut(), Z) : R.v = O;
797
- const { resolve: E, reject: S, promise: U } = Ce();
798
- return Se.current = E, ae.current = S, U;
799
- };
800
- return Et.current = {
801
- refresh: Xe,
802
- insert: Qn,
803
- remove: In,
804
- replace: Vn,
805
- reload: jn
806
- }, c({
807
- ...nt,
808
- ...l([T, R, B, x, J, Fe, ct, Ct, L]),
809
- send: (...E) => ut(...E, p, p),
810
- fetching: M.loading,
811
- onFetchSuccess: M.onSuccess,
812
- onFetchError: M.onError,
813
- onFetchComplete: M.onComplete,
814
- refresh: Xe,
815
- insert: Qn,
816
- remove: In,
817
- replace: Vn,
818
- reload: jn
819
- });
820
- };
821
- const gs = (e, t) => _t(e)(lt(t) && N(t) > 0, "please use an array to represent serial requests"), bs = (e, t, n = []) => (e.shift(), ((r, s) => {
822
- t?.(r, () => Ot(p)), r.controlLoading();
823
- const o = r.proxyStates.loading;
824
- o.v = D;
825
- let c = s();
826
- for (const l of e)
827
- c = mt(c, (v) => {
828
- const d = l(v, ...r.args);
829
- return at(n, d), d.send();
830
- });
831
- return c.finally(() => {
832
- o.v = w;
833
- });
834
- }));
835
- var Jr = (e, t = {}) => {
836
- gs("useSerialRequest", e);
837
- const { ref: n, __referingObj: r } = Ft(Rt()), s = n([]).current, o = Ee(e[0], {
838
- ...t,
839
- __referingObj: r,
840
- middleware: bs(e, t.middleware, s)
841
- });
842
- return o.onError = Re(o.onError, (c, l) => {
843
- l.method = s[N(s) - 1], c(l);
844
- }), o;
845
- }, Xr = (e, t, n = {}) => {
846
- gs("useSerialWatcher", e);
847
- const { ref: r, __referingObj: s } = Ft(Rt()), o = r([]).current, c = Ss(e[0], t, {
848
- ...n,
849
- __referingObj: s,
850
- middleware: bs(e, n.middleware, o)
851
- });
852
- return c.onError = Re(c.onError, (l, v) => {
853
- v.method = o[N(o) - 1], l(v);
854
- }), c;
855
- };
856
- const gn = "valueOf", pe = "default", fn = "silent", Rr = "queue", wr = "static";
857
- let ne;
858
- const Hn = (e) => {
859
- ne = e;
860
- };
861
- let Ke;
862
- const _r = (e) => {
863
- Ke = e;
864
- };
865
- let bn = {};
866
- const Cr = (e = {}) => {
867
- bn = e;
868
- };
869
- let ke = 0;
870
- const ys = (e) => {
871
- ke = e;
872
- };
873
- let Rs = [];
874
- const Pr = (e = 0) => {
875
- Rs = lt(e) ? e : [
876
- {
877
- queue: pe,
878
- wait: e
879
- }
880
- ];
881
- }, ws = Symbol("GlobalSQBoot"), _s = Symbol("GlobalSQBefore"), Cs = Symbol("GlobalSQSuccess"), Ps = Symbol("GlobalSQError"), Ms = Symbol("GlobalSQFail"), Qt = qt(), yn = _t("useSQRequest");
882
- async function Ue(e, t) {
883
- let n = w;
884
- if (e) {
885
- const { update: r } = Rt(), s = Kt(e), { id: o } = He(e), c = Es(o, s), l = Y(t) ? { data: t } : t, v = vt(c, async (d) => {
886
- let a = p;
887
- if (d) {
888
- const { ms: i, ro: f } = d;
889
- X(yt(l), (u) => {
890
- ar(u in i, `state named \`${u}\` is not found`);
891
- const O = i[u];
892
- let I = l[u](O.v);
893
- I = lt(I) ? [...I] : bt(I) ? { ...I } : I, u === "data" && (a = I), r(I, i[u].s, u, f);
894
- });
895
- }
896
- a !== p && await we(e, a);
897
- });
898
- N(v) > 0 && (await Ut.all(v), n = D);
899
- }
900
- return n;
901
- }
902
- var Mr = {
903
- forward: (e) => k(e, Date) ? e.getTime() : p,
904
- backward: (e) => F(Date, e)
905
- }, xr = {
906
- forward: (e) => k(e, RegExp) ? e.source : void 0,
907
- backward: (e) => F(RegExp, e)
908
- };
909
- const Rn = (e = {}) => {
910
- const t = {
911
- date: Mr,
912
- regexp: xr,
913
- ...e
914
- };
915
- return {
916
- serialize: (s) => {
917
- if (bt(s)) {
918
- const { data: o } = Nt({ data: s }, (c) => {
919
- let l = p;
920
- const v = yt(t).reduce((a, i) => {
921
- if (!l) {
922
- const f = t[i].forward(a);
923
- f !== p && (l = i, a = f);
924
- }
925
- return a;
926
- }, c);
927
- return Me.prototype.toString.call(c) === "[object Object]" ? c = { ...c } : lt(c) && (c = [...c]), l !== p ? [l, v] : c;
928
- });
929
- s = o;
930
- }
931
- return s;
932
- },
933
- deserialize: (s) => bt(s) ? Nt({ data: s }, (o) => {
934
- if (lt(o) && N(o) === 2) {
935
- const c = t[o[0]];
936
- o = c ? c.backward(o[1]) : o;
937
- }
938
- return o;
939
- }, w).data : s
940
- };
941
- }, Ae = Symbol("vdid"), xs = Symbol("original"), wn = /\[vd:([0-9a-z]+)\]/, As = (e) => {
942
- const t = e?.[Ae];
943
- t && ne && (ne[t] = p);
944
- }, kt = (e, t = D) => {
945
- As(e);
946
- const n = e?.[Ae];
947
- return (n ? `[vd:${n}]` : p) || (t ? e : p);
948
- };
949
- function _n() {
950
- return kt(this);
951
- }
952
- const Cn = function() {
953
- };
954
- Cn.prototype = Me.create(Wt, {
955
- [gn]: ss(_n)
956
- });
957
- const Pn = function() {
958
- };
959
- Pn.prototype = Me.create(Wt, {
960
- [gn]: ss(_n)
961
- });
962
- var Ds = (e, t = an()) => {
963
- const n = (s, o = an()) => {
964
- if (s === Wt)
965
- s = F(Cn);
966
- else if (s === p)
967
- s = F(Pn);
968
- else {
969
- const c = Me(s);
970
- Ze(c, gn, _n), Ze(c, xs, s), s = c;
971
- }
972
- return Ze(s, Ae, o), s;
973
- }, r = n(e, t);
974
- return (oe(r) || lt(r)) && Nt(r, (s) => n(s)), r;
975
- };
976
- const Fs = (e, t = D) => {
977
- const n = (s) => (As(s), s?.[Ae] && (k(s, Pn) ? s = p : k(s, Cn) ? s = Wt : (k(s, Number) || k(s, String) || k(s, Boolean)) && (s = s[xs])), s), r = n(e);
978
- return t && (bt(r) || lt(r)) && Nt(r, (s) => n(s)), r;
979
- };
980
- var Zr = (e) => Fs(e);
981
- const _e = "__$k", Ne = "__$v", Mn = () => (yn(!!Ke, "alova instance is not found, Do you forget to set `alova` or call `bootSilentFactory`?"), Ke.l2Cache);
982
- let ve = p;
983
- const he = "alova.SQ", xn = "alova.SM.", An = async (e, t) => {
984
- const n = Mn();
985
- bt(t) && (t = Nt(lt(t) ? [...t] : { ...t }, (r, s, o) => {
986
- var c;
987
- if (s === Ne && o[_e])
988
- return r;
989
- if (s === "context" && ((c = r?.constructor) === null || c === void 0 ? void 0 : c.name) === "Alova")
990
- return p;
991
- const l = r?.[Ae];
992
- let v = Fs(r, w);
993
- if (ks(v) === "[object Object]" ? (r = { ...r }, v = {}) : lt(r) && (r = [...r], v = []), l) {
994
- const a = {
995
- [_e]: l,
996
- // For objects and arrays, all their internal properties will be put to the outside through `...value`, so the internal ones do not need to be traversed and converted.
997
- // Therefore, empty the array or object to avoid repeated conversions and contamination of the original object.
998
- [Ne]: v,
999
- ...r
1000
- };
1001
- if (k(r, String))
1002
- for (let i = 0; i < N(r); i += 1)
1003
- a == null || delete a[i];
1004
- r = a;
1005
- }
1006
- return r;
1007
- })), ve = ve || Rn(bn), await n.set(e, ve.serialize(t));
1008
- }, qe = async (e) => {
1009
- const t = await Mn().get(e);
1010
- return ve = ve || Rn(bn), bt(t) ? Nt(ve.deserialize(t), (n) => {
1011
- if (bt(n) && n?.[_e]) {
1012
- const r = n[_e], s = Ds(n[Ne], r);
1013
- X(yt(n), (o) => {
1014
- Tt([_e, Ne], o) || (s[o] = n[o]);
1015
- }), n = s;
1016
- }
1017
- return n;
1018
- }, w) : t;
1019
- }, $n = async (e) => {
1020
- await Mn().remove(e);
1021
- }, Ye = (e) => An(xn + e.id, e), Ar = async (e, t) => {
1022
- await Ye(e);
1023
- const n = await qe(he) || {}, r = n[t] = n[t] || [];
1024
- at(r, e.id), await An(he, n);
1025
- }, vn = async (e, t, n) => {
1026
- const r = await qe(he) || {}, s = r[e] || [], o = s.findIndex((c) => c === t);
1027
- o >= 0 && (n ? (xt(s, o, 1, n.id), await Ye(n)) : xt(s, o, 1), await $n(xn + t), N(s) <= 0 && delete r[e], N(yt(r)) > 0 ? await An(he, r) : await $n(he));
1028
- };
1029
- let Vt = {};
1030
- const Dr = (e) => {
1031
- X(yt(e), (t) => {
1032
- const n = Vt[t] = Vt[t] || [];
1033
- at(n, ...e[t]);
1034
- });
1035
- }, hn = (e, t) => {
1036
- const n = (r) => {
1037
- const s = kt(r);
1038
- return s in t ? t[s] : Pe(r) ? r.replace(F(rs, wn.source, "g"), (o) => o in t ? t[o] : o) : r;
1039
- };
1040
- return bt(e) && !kt(e, w) ? Nt(e, n) : e = n(e), e;
1041
- }, Fr = (e, t) => Ut.all(vt(t, async (n) => {
1042
- hn(n.entity, e), n.cache && await Ye(n);
1043
- })), Ls = (e, t) => {
1044
- let n = {};
1045
- const r = kt(e, w);
1046
- if (r && (n[r] = t), bt(e))
1047
- for (const s in e)
1048
- n = {
1049
- ...n,
1050
- ...Ls(e[s], t?.[s])
1051
- };
1052
- return n;
1053
- }, tn = (e, t) => {
1054
- t ? e.active = t : delete e.active;
1055
- }, Lr = 1e3, Ts = (e, t) => {
1056
- const n = (s) => {
1057
- const o = e[0];
1058
- if (o) {
1059
- const c = Rs.find(({ queue: d }) => k(d, rs) ? fe(d, s) : d === s), l = () => e[0] && r(e[0]), v = c?.wait ? re(c.wait, [o, s]) : 0;
1060
- v && v > 0 ? jt(l, v) : l();
1061
- }
1062
- }, r = (s, o = 0) => {
1063
- tn(s, D);
1064
- const { cache: c, id: l, behavior: v, entity: d, retryError: a = /.*/, maxRetryTimes: i = 0, backoff: f = { delay: Lr }, resolveHandler: u = Z, rejectHandler: O = Z, emitter: I, handlerArgs: g = [], virtualResponse: H, force: Q } = s;
1065
- Qt.emit(_s, F(We, v, d, s, t, o)), mt(d.send(Q), async (b) => {
1066
- if (Kn(e), c && await vn(t, l), u(b), v === fn) {
1067
- const _ = Ls(H, b), { targetRefMethod: V, updateStates: q } = s;
1068
- if (k(V, me) && q && N(q) > 0) {
1069
- const K = {};
1070
- X(q, (R) => {
1071
- K[R] = (x) => hn(x, _);
1072
- }), Ue(V, K) || await we(V, (R) => hn(R, _));
1073
- }
1074
- await Fr(_, e), Qt.emit(Cs, F(lr, v, d, s, t, o, b, _));
1075
- }
1076
- tn(s, w), n(t);
1077
- }, (b) => {
1078
- if (v !== fn)
1079
- Kn(e), O(b);
1080
- else {
1081
- const _ = (x) => Qt.emit(Ps, F(dr, v, d, s, t, o, b, x)), { name: V = "", message: q = "" } = b || {};
1082
- let K, j;
1083
- k(a, RegExp) ? j = a : bt(a) && (K = a.name, j = a.message);
1084
- const R = K && fe(K, V) || j && fe(j, q);
1085
- if (o < i && R) {
1086
- const x = os(f, o + 1);
1087
- _(x), jt(
1088
- () => {
1089
- o += 1, r(s, o), I.emit("retry", F(vr, v, d, s, g, o, x));
1090
- },
1091
- // When there are still retry times, use timeout as the next request time.
1092
- x
1093
- );
1094
- } else
1095
- ys(2), _(), I.emit("fallback", F(ms, v, d, s, g, b)), Qt.emit(Ms, F(ur, v, d, s, t, o, b));
1096
- }
1097
- tn(s, w);
1098
- });
1099
- };
1100
- n(t);
1101
- }, Tr = async (e, t, n = pe, r = () => []) => {
1102
- e.cache = t;
1103
- const s = Vt[n] = Vt[n] || [], o = N(s) <= 0, l = !(await Promise.all(r())).some((v) => v === w);
1104
- return l && (t && await Ar(e, n), at(s, e), o && ke === 1 && Ts(s, n)), l;
1105
- }, Wn = (e) => {
1106
- let t = p, n = "", r = 0;
1107
- for (const s in Vt)
1108
- if (r = Vt[s].indexOf(e), r >= 0) {
1109
- t = Vt[s], n = s;
1110
- break;
1111
- }
1112
- return [t, n, r];
1113
- };
1114
- class Os {
1115
- constructor(t, n, r, s = an(), o, c, l, v, d, a, i, f) {
1116
- const u = this;
1117
- u.entity = t, u.behavior = n, u.id = s, u.emitter = r, u.force = !!o, u.retryError = c, u.maxRetryTimes = l, u.backoff = v, u.resolveHandler = d, u.rejectHandler = a, u.handlerArgs = i, u.vDatas = f;
1118
- }
1119
- /**
1120
- * Allow cache-time persistent updates to the current instance
1121
- */
1122
- async save() {
1123
- this.cache && await Ye(this);
1124
- }
1125
- /**
1126
- * Replace the current instance with a new silentMethod instance in the queue
1127
- * If there is a persistent cache, the cache will also be updated.
1128
- * @param newSilentMethod new silentMethod instance
1129
- */
1130
- async replace(t) {
1131
- const n = this;
1132
- yn(t.cache === n.cache, "the cache of new silentMethod must equal with this silentMethod");
1133
- const [r, s, o] = Wn(n);
1134
- r && (xt(r, o, 1, t), n.cache && await vn(s, n.id, t));
1135
- }
1136
- /**
1137
- * Remove the current instance. If there is persistent data, it will also be removed synchronously.
1138
- */
1139
- async remove() {
1140
- const t = this, [n, r, s] = Wn(t);
1141
- n && (xt(n, s, 1), t.cache && await vn(r, t.id));
1142
- }
1143
- /**
1144
- * Set the method instance corresponding to the delayed update status and the corresponding status name
1145
- * It will find the corresponding status data and update vData to the actual data after responding to this silentMethod
1146
- *
1147
- * @param method method instance
1148
- * @param updateStateName Updated status name, the default is data, you can also set multiple
1149
- */
1150
- setUpdateState(t, n = "data") {
1151
- t && (this.targetRefMethod = t, this.updateStates = lt(n) ? n : [n]);
1152
- }
1153
- }
1154
- var Or = (e) => {
1155
- const { id: t, behavior: n, entity: r, retryError: s, maxRetryTimes: o, backoff: c, resolveHandler: l, rejectHandler: v, handlerArgs: d, targetRefMethod: a, force: i } = e, f = (O) => {
1156
- const { type: I, url: g, config: H, data: Q } = O;
1157
- return F(me, I, Ke, g, H, Q);
1158
- }, u = F(Os, f(r), n, qt(), t, i, s, o, c, l, v, d);
1159
- return u.cache = D, a && (u.targetRefMethod = f(a)), X(yt(e), (O) => {
1160
- Tt([
1161
- "id",
1162
- "behavior",
1163
- "emitter",
1164
- "entity",
1165
- "retryError",
1166
- "maxRetryTimes",
1167
- "backoff",
1168
- "resolveHandler",
1169
- "rejectHandler",
1170
- "handlerArgs",
1171
- "targetRefMethod",
1172
- "force"
1173
- ], O) || (u[O] = e[O]);
1174
- }), u;
1175
- }, Us = async () => {
1176
- const e = await qe(he) || {}, t = {}, n = [];
1177
- return X(yt(e), (r) => {
1178
- const s = t[r] = t[r] || [];
1179
- at(n, ...vt(e[r], async (o) => {
1180
- const c = await qe(xn + o);
1181
- c && at(s, Or(c));
1182
- }));
1183
- }), await Ut.all(n), t;
1184
- };
1185
- const to = (e) => Qt.on(ws, e), eo = (e) => Qt.on(Cs, e), no = (e) => Qt.on(Ps, e), so = (e) => Qt.on(Ms, e), ro = (e) => Qt.on(_s, e), oo = (e) => {
1186
- if (ke === 0) {
1187
- const { alova: t, delay: n = 500 } = e;
1188
- _r(t), Cr(e.serializers), Pr(e.requestWait), jt(async () => {
1189
- Dr(await Us()), X(yt(Vt), (r) => {
1190
- Ts(Vt[r], r);
1191
- }), ys(1), Qt.emit(ws, p);
1192
- }, n);
1193
- }
1194
- };
1195
- let Qe = p;
1196
- var Ur = (e, t) => {
1197
- const { behavior: n = "queue", queue: r = pe, retryError: s, maxRetryTimes: o, backoff: c } = t || {}, l = qt();
1198
- let v, d, a = pe, i = w, f;
1199
- return {
1200
- c: (...g) => (yn(Y(e), "method handler must be a function. eg. useSQRequest(() => method)"), Hn({}), v = g, e(...g)),
1201
- m: ({ method: g, args: H, cachedResponse: Q, proxyStates: b, config: _ }, V) => {
1202
- const { silentDefaultResponse: q, vDataCaptured: K, force: j = w } = _, R = wt.spawn(g, H);
1203
- d = re(n, [R]), a = re(r, [R]), i = re(j, [R]);
1204
- const x = () => {
1205
- Hn(v = p);
1206
- };
1207
- if (Y(K)) {
1208
- let T = ne && N(yt(ne)) > 0;
1209
- if (!T) {
1210
- const { url: et, data: h } = g, { params: m, headers: A } = Ve(g);
1211
- Nt({ url: et, params: m, data: h, headers: A }, (P) => (!T && (kt(P, w) || fe(wn, P)) && (T = D), P));
1212
- }
1213
- const J = T ? K(g) : p;
1214
- if (J !== p)
1215
- return x(), Ot(J);
1216
- }
1217
- if (d !== wr) {
1218
- const T = () => {
1219
- const h = F(Ut, (m, A) => {
1220
- f = F(Os, g, d, l, p, !!i, s, o, c, m, A, v, ne && yt(ne)), x();
1221
- });
1222
- return mt(Ot(p), async () => {
1223
- const m = () => F(xe, d, g, f, H);
1224
- await Tr(
1225
- f,
1226
- // After the onFallback event is bound, even the silent behavior mode is no longer stored.
1227
- // onFallback will be called synchronously, so it needs to be determined asynchronously whether there are fallbackHandlers
1228
- N(l.eventMap.fallback || []) <= 0 && d === fn,
1229
- a,
1230
- // Execute the callback before putting it into the queue. If false is returned, it will prevent putting it into the queue.
1231
- () => l.emit("beforePushQueue", m())
1232
- ) && l.emit("pushedQueue", m());
1233
- }), h;
1234
- };
1235
- if (d === Rr) {
1236
- const h = i || !Q;
1237
- return h && (b.loading.v = D), h ? T() : mt(Ot(Q));
1238
- }
1239
- const J = T(), et = f.virtualResponse = Ds(Y(q) ? q() : p);
1240
- return mt(J, (h) => {
1241
- b.data.v = h;
1242
- }), Ot(et);
1243
- }
1244
- return x(), V();
1245
- },
1246
- d: (g) => {
1247
- g.onSuccess = Re(g.onSuccess, (H, Q) => {
1248
- Qe = f, H(F(fr, d, Q.method, f, Q.args, Q.data));
1249
- }), g.onError = Re(g.onError, (H, Q) => {
1250
- H(F(ms, d, Q.method, f, Q.args, Q.error));
1251
- }), g.onComplete = Re(g.onComplete, (H, Q) => {
1252
- H(F(hr, d, Q.method, f, Q.args, Q.status, Q.data, Q.error));
1253
- });
1254
- },
1255
- // event binding function
1256
- b: {
1257
- /**
1258
- * Bind fallback event
1259
- * @param handler Fallback event callback
1260
- */
1261
- onFallback: (g) => {
1262
- l.on("fallback", g);
1263
- },
1264
- /**
1265
- * Event before binding to queue
1266
- * @param handler Event callback before enqueuing
1267
- */
1268
- onBeforePushQueue: (g) => {
1269
- l.on("beforePushQueue", g);
1270
- },
1271
- /**
1272
- * Event after binding to queue
1273
- * @param handler Event callback after being queued
1274
- */
1275
- onPushedQueue: (g) => {
1276
- l.on("pushedQueue", g);
1277
- },
1278
- /**
1279
- * retry event
1280
- * @param handler Retry event callback
1281
- */
1282
- onRetry: (g) => {
1283
- l.on("retry", g);
1284
- }
1285
- }
1286
- };
1287
- };
1288
- function ao(e, t = {}) {
1289
- const { exposeProvider: n, __referingObj: r } = Ft(Rt()), { middleware: s = Z } = t, { c: o, m: c, b: l, d: v } = Ur(e, t), d = Ee(o, {
1290
- ...t,
1291
- __referingObj: r,
1292
- middleware: (a, i) => {
1293
- const f = c(a, i);
1294
- return s(a, () => f), f;
1295
- }
1296
- });
1297
- return v(d), n({
1298
- ...d,
1299
- ...l
1300
- });
1301
- }
1302
- var co = (e, t) => e === t ? D : kt(e) === kt(t);
1303
- const Qr = async (e, t = pe, n = w) => {
1304
- const r = (s = []) => s.filter((o) => {
1305
- if (e === p)
1306
- return D;
1307
- const c = Ve(o.entity).name || "";
1308
- return (k(e, RegExp) ? fe(e, c) : c === e) && (n ? o.active : D);
1309
- });
1310
- return [
1311
- ...r(Vt[t]),
1312
- // If the silent factory is not currently started, you also need to match the silent methods in the persistent storage.
1313
- ...ke === 0 ? r((await Us())[t]) : []
1314
- ];
1315
- }, io = async (e, t = pe, n = w) => (await Qr(e, t, n))[0];
1316
- var lo = (e) => !!kt(e, w) || fe(wn, e);
1317
- const uo = async (e, t) => (Qe && (Qe.setUpdateState(e, Y(Ue) ? p : yt(Ue)), await Qe.save()), Ue(e, t));
1318
- class De {
1319
- constructor(t, n = {}) {
1320
- var r, s, o;
1321
- this.cancelBubble = w, this.currentTarget = Wt, this.defaultPrevented = w, this.eventPhase = 0, this.isTrusted = w, this.returnValue = D, this.srcElement = Wt, this.target = Wt, this.NONE = 0, this.CAPTURING_PHASE = 1, this.AT_TARGET = 2, this.BUBBLING_PHASE = 3, this.type = t, this.bubbles = (r = n.bubbles) !== null && r !== void 0 ? r : !1, this.cancelable = (s = n.cancelable) !== null && s !== void 0 ? s : !1, this.composed = (o = n.composed) !== null && o !== void 0 ? o : !1, this.timeStamp = Date.now();
1322
- }
1323
- // Event 标准方法
1324
- preventDefault() {
1325
- this.cancelable && (this.defaultPrevented = !0);
1326
- }
1327
- stopImmediatePropagation() {
1328
- }
1329
- stopPropagation() {
1330
- this.cancelBubble = !0;
1331
- }
1332
- composedPath() {
1333
- return [];
1334
- }
1335
- initEvent(t, n, r) {
1336
- }
1337
- }
1338
- De.NONE = 0;
1339
- De.CAPTURING_PHASE = 1;
1340
- De.AT_TARGET = 2;
1341
- De.BUBBLING_PHASE = 3;
1342
- const Ir = typeof Event < "u" ? Event : De;
1343
- class en extends Ir {
1344
- constructor(t, n) {
1345
- super(t, {
1346
- bubbles: D,
1347
- cancelable: D,
1348
- composed: D
1349
- }), this.data = n.data, this.lastEventId = n.lastEventId, this.origin = n.origin || "", this.error = n.error;
1350
- }
1351
- }
1352
- class Dn extends wt {
1353
- constructor(t, n) {
1354
- super(t.method, t.args), this.eventSource = n;
1355
- }
1356
- }
1357
- class Vr extends Dn {
1358
- constructor(t, n) {
1359
- super(t, t.eventSource), this.error = n;
1360
- }
1361
- }
1362
- class jr extends Dn {
1363
- constructor(t, n) {
1364
- super(t, t.eventSource), this.data = n;
1365
- }
1366
- }
1367
- const kn = _t("EventSourceFetch");
1368
- class dt {
1369
- /**
1370
- * Creates a new EventSourceFetch instance
1371
- *
1372
- * @param url The URL to connect to
1373
- * @param options Configuration options (includes all fetch options plus EventSource specific options)
1374
- */
1375
- constructor(t, n, r = {}) {
1376
- this.CONNECTING = 0, this.OPEN = 1, this.CLOSED = 2, this.onopen = null, this.onmessage = null, this.onerror = null, this._listeners = {}, this._reconnectTime = null, this._controller = null, this._lastEventId = "", this._origin = "", this.url = t, this.readyState = dt.CONNECTING, this._options = { ...r }, this._reconnectTime = n;
1377
- const s = F(URL, t, window.location.href);
1378
- this._origin = s.origin, t && jt(() => this._connect());
1379
- }
1380
- /**
1381
- * Adds an event listener for the specified event
1382
- *
1383
- * @param type Event type to listen for
1384
- * @param listener Function or object to call when event is received
1385
- * @param options EventListener options
1386
- */
1387
- addEventListener(t, n) {
1388
- this._listeners[t] = this._listeners[t] || [], this._listeners[t].find((s) => s === n || bt(s) && bt(n) && s?.handleEvent === n.handleEvent) || this._listeners[t].push(n);
1389
- }
1390
- /**
1391
- * Removes an event listener for the specified event
1392
- *
1393
- * @param type Event type to remove listener from
1394
- * @param listener Function to remove
1395
- * @param options EventListener options
1396
- */
1397
- removeEventListener(t, n) {
1398
- !n || !this._listeners[t] || (this._listeners[t] = Dt(this._listeners[t], (r) => r !== n && !(typeof r == "object" && typeof n == "object" && r?.handleEvent === n.handleEvent)));
1399
- }
1400
- /**
1401
- * Dispatches an event
1402
- *
1403
- * @param event Event to dispatch
1404
- * @returns Whether preventDefault was called
1405
- */
1406
- dispatchEvent(t) {
1407
- if (!(t instanceof en))
1408
- return D;
1409
- const n = this._listeners[t.type] || [];
1410
- for (const o of n)
1411
- Y(o) ? o(t) : o && Y(o.handleEvent) && o.handleEvent(t);
1412
- const r = `on${t.type}`, s = this[r];
1413
- return Y(s) && s(t), !t.defaultPrevented;
1414
- }
1415
- /**
1416
- * Closes the connection
1417
- */
1418
- close() {
1419
- this.readyState !== dt.CLOSED && (this.readyState = dt.CLOSED, this._dispatchEvent("close", ""), this._controller && (this._controller.abort(), this._controller = null));
1420
- }
1421
- /**
1422
- * Establishes connection to the event source
1423
- */
1424
- _connect() {
1425
- if (this.readyState === dt.CLOSED)
1426
- return;
1427
- this._controller = F(AbortController);
1428
- const t = this._options, n = t.headers || {}, r = ["Accept", "text/event-stream"], s = "Last-Event-ID", o = this._lastEventId;
1429
- if (lt(n))
1430
- at(n, r), o && at(n, [s, o]);
1431
- else if (k(n, Headers))
1432
- n.append(r[0], r[1]), o && n.append(s, o);
1433
- else if (bt(n)) {
1434
- const [l, v] = r;
1435
- n[l] = v, o && (n[s] = o);
1436
- }
1437
- const c = {
1438
- ...t,
1439
- headers: n,
1440
- signal: this._controller.signal
1441
- };
1442
- fetch(this.url, c).then((l) => {
1443
- kn(l.ok, `HTTP error: ${l.status}`), kn(l.body, "ReadableStream not supported");
1444
- const v = F(URL, l.url);
1445
- this._origin = v.origin, this.readyState = dt.OPEN, this._dispatchEvent("open", "");
1446
- const d = l.body.getReader(), a = new TextDecoder();
1447
- let i = "";
1448
- const f = ({ done: u, value: O }) => {
1449
- if (u)
1450
- return this.readyState !== dt.CLOSED && this._reconnect(), Ot();
1451
- i += a.decode(O, { stream: !0 });
1452
- const I = i.split(/\r\n|\r|\n/);
1453
- return i = I.pop() || "", this._processEventStream(I), d.read().then(f).catch((g) => (g.name !== "AbortError" && this.readyState !== dt.CLOSED && this._onError(g), Ot()));
1454
- };
1455
- return d.read().then(f).catch((u) => {
1456
- u.name !== "AbortError" && this.readyState !== dt.CLOSED && this._onError(u);
1457
- });
1458
- }).catch((l) => {
1459
- l.name !== "AbortError" && this.readyState !== dt.CLOSED && this._onError(l);
1460
- });
1461
- }
1462
- /**
1463
- * Processes received event stream lines
1464
- *
1465
- * @param lines Lines received from the event stream
1466
- */
1467
- _processEventStream(t) {
1468
- let n = "message", r = "", s = null, o = null;
1469
- const c = () => {
1470
- if (r) {
1471
- if (r.endsWith(`
1472
- `) && (r = r.substring(0, r.length - 1)), s !== null && (this._lastEventId = s), o !== null && this._reconnectTime === null) {
1473
- const l = parseInt(o, 10);
1474
- Number.isNaN(l) || (this._reconnectTime = l);
1475
- }
1476
- this._dispatchEvent(n, r);
1477
- }
1478
- n = "message", r = "", s = null, o = null;
1479
- };
1480
- for (const l of t) {
1481
- if (l === "") {
1482
- c();
1483
- continue;
1484
- }
1485
- if (l.startsWith(":"))
1486
- continue;
1487
- let v, d;
1488
- const a = l.indexOf(":");
1489
- switch (a === -1 ? (v = l, d = "") : (v = l.slice(0, a), d = l.slice(a + (l[a + 1] === " " ? 2 : 1))), v) {
1490
- case "event":
1491
- n = d;
1492
- break;
1493
- case "data":
1494
- r = r ? `${r}
1495
- ${d}` : d;
1496
- break;
1497
- case "id":
1498
- if (d.includes("\0"))
1499
- continue;
1500
- s = d;
1501
- break;
1502
- case "retry":
1503
- o = d;
1504
- break;
1505
- default:
1506
- throw F($e, "EventSource", `EventSource: Unknown field "${v}", ignoring`);
1507
- }
1508
- }
1509
- }
1510
- /**
1511
- * Dispatches an event
1512
- *
1513
- * @param type Event type
1514
- * @param data Event data
1515
- */
1516
- _dispatchEvent(t, n) {
1517
- const r = F(en, t, {
1518
- type: t,
1519
- data: n,
1520
- lastEventId: this._lastEventId,
1521
- origin: this._origin
1522
- });
1523
- this.dispatchEvent(r);
1524
- }
1525
- /**
1526
- * Handles errors
1527
- *
1528
- * @param error Error object
1529
- */
1530
- _onError(t) {
1531
- const n = F(en, "error", {
1532
- type: "error",
1533
- data: "",
1534
- lastEventId: this._lastEventId,
1535
- origin: this._origin,
1536
- error: t
1537
- });
1538
- this.dispatchEvent(n), this.readyState !== dt.CLOSED && this._reconnect();
1539
- }
1540
- /**
1541
- * Attempts to reconnect after connection closed or error
1542
- */
1543
- _reconnect() {
1544
- var t;
1545
- if (this._reconnectTime !== null && this._reconnectTime <= 0) {
1546
- this.close();
1547
- return;
1548
- }
1549
- if (this.readyState !== dt.CLOSED) {
1550
- this.readyState = dt.CONNECTING;
1551
- const n = (t = this._reconnectTime) !== null && t !== void 0 ? t : 1e3;
1552
- jt(() => this._connect(), n);
1553
- }
1554
- }
1555
- }
1556
- dt.CONNECTING = 0;
1557
- dt.OPEN = 1;
1558
- dt.CLOSED = 2;
1559
- const nn = Symbol("SSEOpen"), Te = Symbol("SSEMessage"), sn = Symbol("SSEError");
1560
- var Zt;
1561
- (function(e) {
1562
- e[e.CONNECTING = 0] = "CONNECTING", e[e.OPEN = 1] = "OPEN", e[e.CLOSED = 2] = "CLOSED";
1563
- })(Zt || (Zt = {}));
1564
- const Qs = "useSSE", Br = _t(Qs);
1565
- var St;
1566
- (function(e) {
1567
- e.Open = "open", e.Error = "error", e.Message = "message", e.Close = "close";
1568
- })(St || (St = {}));
1569
- var fo = (e, t = {}) => {
1570
- const {
1571
- initialData: n,
1572
- withCredentials: r,
1573
- interceptByGlobalResponded: s = D,
1574
- /** abortLast = trueValue, */
1575
- immediate: o = w,
1576
- responseType: c = "text",
1577
- reconnectionTime: l = null,
1578
- ...v
1579
- } = t, d = D, { create: a, ref: i, onMounted: f, onUnmounted: u, objectify: O, exposeProvider: I, memorize: g } = Ft(Rt()), H = i([]), Q = i(p), b = i(p), _ = a(n, "data"), V = a(Zt.CLOSED, "readyState"), q = a(p, "eventSource");
1580
- let K = qn(e), j;
1581
- const R = qt(), x = i(/* @__PURE__ */ new Map()), T = (L) => {
1582
- R.on(nn, L);
1583
- }, J = (L) => {
1584
- R.on(Te, L);
1585
- }, et = (L) => {
1586
- R.on(sn, L);
1587
- }, h = i(se), m = i(Nn), A = i(Z), P = (L) => {
1588
- const { responded: B } = Ys(L);
1589
- if (j = B, Y(j))
1590
- h.current = j;
1591
- else if (j && oe(j)) {
1592
- const { onSuccess: W, onError: nt, onComplete: ut } = j;
1593
- h.current = Y(W) ? W : h.current, m.current = Y(nt) ? nt : m.current, A.current = Y(ut) ? ut : A.current;
1594
- }
1595
- }, M = async (L) => {
1596
- const { headers: B, transform: W = se } = Ve(K), nt = await L, ut = await W(nt, B || {});
1597
- return _.v = ut, nr(K), ut;
1598
- }, y = async (L, B) => {
1599
- Br(Q.current, "EventSource is not initialized");
1600
- const W = Q.current, nt = F(Dn, wt.spawn(K, H.current), W);
1601
- if (L === St.Open)
1602
- return nt;
1603
- const ut = s ? h.current : se, Lt = s ? m.current : Nn, zt = s ? A.current : Z, Pt = Pe(B);
1604
- if (c === "json" && Pt)
1605
- try {
1606
- B = Js(B);
1607
- } catch (pt) {
1608
- throw F($e, Qs, pt.message);
1609
- }
1610
- const Bt = ue(mt(Pt ? Ot(B) : as(B), (pt) => M(ut(pt, K)), (pt) => M(Lt(pt, K))), () => {
1611
- zt(K);
1612
- });
1613
- return mt(
1614
- Bt,
1615
- // Get processed data (data after transform)
1616
- (pt) => F(jr, nt, pt),
1617
- // There is an error
1618
- (pt) => new Vr(nt, pt)
1619
- );
1620
- }, C = (L) => (B) => B.error === p ? L(B) : R.emit(sn, B), z = (L, B) => {
1621
- var W;
1622
- const nt = x.current;
1623
- if (!nt.has(L)) {
1624
- const Lt = sr((Pt) => {
1625
- var Bt;
1626
- Pt.length === 0 && ((Bt = Q.current) === null || Bt === void 0 || Bt.removeEventListener(L, Lt[1]), x.current.delete(L));
1627
- }), zt = Lt[1];
1628
- nt.set(L, Lt), (W = Q.current) === null || W === void 0 || W.addEventListener(L, (Pt) => {
1629
- mt(y(L, Pt.data), C(zt));
1630
- });
1631
- }
1632
- const [ut] = nt.get(L);
1633
- return ut(B);
1634
- }, $ = () => {
1635
- x.current.forEach(([L, B, W]) => {
1636
- W();
1637
- });
1638
- }, ot = g(() => {
1639
- var L;
1640
- V.v = Zt.OPEN, mt(y(St.Open), (B) => R.emit(nn, B)), (L = b.current) === null || L === void 0 || L.resolve();
1641
- }), ht = g((L) => {
1642
- var B;
1643
- V.v = Zt.CLOSED, mt(y(St.Error, L.error || F(Error, "SSE Error")), C((W) => R.emit(Te, W))), (B = b.current) === null || B === void 0 || B.resolve();
1644
- }), Et = g((L) => {
1645
- mt(y(St.Message, L.data), C((B) => R.emit(Te, B)));
1646
- }), ct = () => {
1647
- const L = Q.current;
1648
- L && (b.current && b.current.resolve(), L.close(), L.removeEventListener(St.Open, ot), L.removeEventListener(St.Error, ht), L.removeEventListener(St.Message, Et), L.removeEventListener(St.Close, ct), V.v = Zt.CLOSED, x.current.forEach(([B, W], nt) => {
1649
- L.removeEventListener(nt, W);
1650
- }));
1651
- }, Ct = (...L) => {
1652
- let B = Q.current, W = b.current;
1653
- B && d && ct(), W || (W = b.current = Ce(), W && ue(W.promise, () => {
1654
- W = p;
1655
- })), H.current = L, K = qn(e, L), P(K);
1656
- const { params: nt, headers: ut } = Ve(K), { baseURL: Lt, url: zt, data: Pt, type: Bt } = K, pt = Xs(Lt, zt, nt);
1657
- return B = F(dt, pt, l, {
1658
- credentials: r ? "include" : "same-origin",
1659
- method: Bt || "GET",
1660
- headers: ut,
1661
- body: ((Yt) => Pe(Yt) || Zs(Yt))(Pt) ? Pt : tr(Pt),
1662
- ...v
1663
- }), Q.current = B, q.v = B, V.v = Zt.CONNECTING, B.addEventListener(St.Open, ot), B.addEventListener(St.Error, ht), B.addEventListener(St.Message, Et), B.addEventListener(St.Close, ct), x.current.forEach(([Yt, Se], ae) => {
1664
- B?.addEventListener(ae, (ce) => {
1665
- mt(y(ae, ce.data), C(Se));
1666
- });
1667
- }), W.promise;
1668
- };
1669
- return u(() => {
1670
- ct(), R.off(nn), R.off(Te), R.off(sn), $();
1671
- }), f(() => {
1672
- var L;
1673
- o && (Ct(), (L = b.current) === null || L === void 0 || L.promise.catch(() => {
1674
- }));
1675
- }), I({
1676
- send: Ct,
1677
- close: ct,
1678
- on: z,
1679
- onMessage: J,
1680
- onError: et,
1681
- onOpen: T,
1682
- ...O([V, _, q])
1683
- });
1684
- };
1685
- const le = _t("useUploader");
1686
- function ze(e, { limit: t = 0, localLink: n, replaceSrc: r, mode: s } = {}) {
1687
- const { create: o, computed: c, exposeProvider: l, ref: v } = Ft(Rt()), d = qt(), a = o([], "fileList"), i = c(() => a.v[0], [a], "file"), f = o(!1, "uploading"), u = o(0, "successCount"), O = o(0, "failCount"), I = c(() => ({
1688
- ...a.v.reduce((h, { progress: m, status: A }) => (A !== 0 && (h.total += m.total, h.uploaded += m.uploaded), h), {
1689
- uploaded: 0,
1690
- total: 0
1691
- })
1692
- }), [a], "progress"), g = c(() => {
1693
- var h;
1694
- return (h = a.v.find((m) => m.error)) === null || h === void 0 ? void 0 : h.error;
1695
- }, [a], "error"), H = async (h = {}, m = {}) => {
1696
- var A;
1697
- let P = h, M = m;
1698
- !h.file && !lt(h) && (M = h, P = []);
1699
- let y = lt(P) ? P : [P];
1700
- N(y) <= 0 && (y = await ze.selectFile(M)), le(t <= 0 || N(a.v) + N(y) <= t, `The number of files exceeds the limit of ${t}`);
1701
- const { converters: C } = ze, z = await Ut.all(vt(y, async (Et) => {
1702
- const ct = C.find(({ is: L }) => L(Et));
1703
- le(ct, `Invalid file type, only ${vt(C, ({ name: L }) => L).join(", ")} are supported, if other file needs, customize convert function with \`useUploader.convertFile.push({ is: ..., convert: ... })\``);
1704
- const Ct = await ct.convert(Et);
1705
- return le(Ct, "Failed to convert file"), {
1706
- src: Et.src || (n ? URL.createObjectURL(Ct) : void 0),
1707
- file: Ct,
1708
- status: 0,
1709
- progress: { uploaded: 0, total: Ct.size }
1710
- };
1711
- })), $ = (A = M.start) !== null && A !== void 0 ? A : N(a.v), ot = Dt(z, Boolean), ht = [...a.v];
1712
- return xt(ht, $, 0, ...ot), a.v = ht, N(z);
1713
- }, Q = (h, m = [1, 2], A = "upload") => {
1714
- const P = {
1715
- upload: "uploaded",
1716
- abort: "aborted"
1717
- }[A], M = a.v;
1718
- return N(h) > 0 ? vt(h, (y, C) => {
1719
- const z = At(y), $ = z ? M[y] : y, ot = z ? `index ${y}` : `position ${C}`;
1720
- return le($, `The file of ${ot} does not exist`), N(m) > 0 && le(!Tt(m, $.status) && bt($.file), `The file of ${ot} cannot be ${P}, which status is ${$.status}`), $;
1721
- }) : Dt(M, (y) => !Tt(m, y.status));
1722
- }, b = (h, m) => Dt(h, (A) => N(m) > 0 ? Tt(m, A.status) : D), _ = v([]), V = (h, m) => {
1723
- a.v.findIndex((P) => P.file === h) > -1 && at(_.current, { f: h, m });
1724
- }, q = (h) => {
1725
- _.current = Dt(_.current, ({ m }) => m !== h);
1726
- }, K = (...h) => {
1727
- const m = Q(h, [0, 2, 3], "abort"), A = [];
1728
- N(m) > 0 ? X(m, ({ file: M }) => {
1729
- const y = _.current.find(({ f: C }) => C === M);
1730
- y && at(A, y.m);
1731
- }) : at(A, ...vt(_.current, ({ m: M }) => M));
1732
- const P = [];
1733
- X(A, (M) => {
1734
- P.includes(M) || at(P, M);
1735
- }), X(P, (M) => M.abort());
1736
- }, j = (...h) => {
1737
- const m = Q(h, []);
1738
- N(m) > 0 ? (K(...b(m, [1])), a.v = Dt(a.v, (A) => !Tt(m, A)), u.v = N(b(a.v, [2])), O.v = N(b(a.v, [3]))) : (K(...b(a.v, [1])), a.v = []);
1739
- }, R = (h, m, A) => {
1740
- const P = wt.spawn(h, []);
1741
- return {
1742
- successEvent: F(hs, P, m, w),
1743
- errorEvent: F(En, P, A),
1744
- completeEvent: F(dn, P, A ? ee : te, m, w, A)
1745
- };
1746
- }, x = (h, m, A, P, M = 0) => {
1747
- if (h.status = m, m === 2) {
1748
- if (h.progress.uploaded = h.progress.total, r) {
1749
- const y = r(A, M);
1750
- y && (h.src = y);
1751
- }
1752
- } else m === 3 && (h.error = P);
1753
- a.v = [...a.v];
1754
- }, T = (h, m) => {
1755
- const A = e(m);
1756
- return A.onUpload((P) => {
1757
- X(h, (M) => {
1758
- M.progress.uploaded = P.loaded * (M.progress.total / P.total);
1759
- });
1760
- }), X(h, ({ file: P }) => V(P, A)), A.then((P) => {
1761
- X(h, (C, z) => x(C, 2, P, void 0, z)), u.v = N(b(a.v, [2]));
1762
- const { successEvent: M, completeEvent: y } = R(A, P);
1763
- return d.emit(te, M), d.emit(Gt, y), P;
1764
- }, (P) => {
1765
- X(h, (C) => x(C, 3, void 0, P)), O.v = N(b(a.v, [3]));
1766
- const { errorEvent: M, completeEvent: y } = R(A, void 0, P);
1767
- return d.emit(ee, M), d.emit(Gt, y), P;
1768
- }).finally(() => {
1769
- f.v = !1, q(A);
1770
- });
1771
- }, J = (h) => {
1772
- const m = vt(h, (A, P) => {
1773
- const M = e({ file: A.file, name: A.file.name });
1774
- return M.onUpload(({ loaded: y, total: C }) => {
1775
- X(h, (z) => {
1776
- z.progress.uploaded = y, z.progress.total = C;
1777
- });
1778
- }), V(A.file, M), M.then((y) => {
1779
- x(A, 2, y, p, P), u.v += 1;
1780
- const { successEvent: C, completeEvent: z } = R(M, y);
1781
- return d.emit(te, C), d.emit(Gt, z), y;
1782
- }, (y) => {
1783
- x(A, 3, p, y), O.v += 1;
1784
- const { errorEvent: C, completeEvent: z } = R(M, p, y);
1785
- return d.emit(ee, C), d.emit(Gt, z), y;
1786
- }).finally(() => {
1787
- q(M);
1788
- });
1789
- });
1790
- return ue(Ut.all(m), () => {
1791
- f.v = w;
1792
- });
1793
- };
1794
- return l({
1795
- fileList: a,
1796
- uploading: f,
1797
- file: i,
1798
- progress: I,
1799
- successCount: u,
1800
- failCount: O,
1801
- error: g,
1802
- appendFiles: H,
1803
- removeFiles: j,
1804
- upload: async (...h) => {
1805
- const m = Q(h);
1806
- X(m, (P) => {
1807
- P.status = 1;
1808
- });
1809
- const A = vt(m, ({ file: P }) => ({
1810
- file: P,
1811
- name: P.name
1812
- }));
1813
- return f.v = D, s === "batch" ? T(m, A) : J(m);
1814
- },
1815
- abort: K,
1816
- onSuccess: (h) => {
1817
- d.on(te, h);
1818
- },
1819
- onError: (h) => {
1820
- d.on(ee, h);
1821
- },
1822
- onComplete: (h) => {
1823
- d.on(Gt, h);
1824
- }
1825
- });
1826
- }
1827
- ze.selectFile = ({ multiple: e, accept: t } = {}) => {
1828
- const n = document.createElement("input");
1829
- return n.type = "file", n.multiple = !!e, t && (n.accept = t), n.click(), F(Promise, (r) => {
1830
- n.addEventListener("change", () => {
1831
- const s = vt(Array.from(n.files || []), (o) => ({
1832
- file: o,
1833
- name: o.name,
1834
- mimeType: o.type
1835
- }));
1836
- r(s);
1837
- });
1838
- });
1839
- };
1840
- const rn = "text/plain";
1841
- ze.converters = [
1842
- {
1843
- name: "HTMLCanvasElement",
1844
- is: ({ file: e }) => k(e, HTMLCanvasElement),
1845
- async convert({ file: e, mimeType: t, name: n }) {
1846
- const r = await F(Ut, (s) => e?.toBlob(s));
1847
- if (r)
1848
- return F(File, [r], n || "image.png", {
1849
- type: t || r.type
1850
- });
1851
- }
1852
- },
1853
- {
1854
- name: "base64",
1855
- is: ({ file: e }) => Pe(e),
1856
- convert({ file: e = "", mimeType: t, name: n }) {
1857
- var r;
1858
- le(/data:.+;base64,/.test(e), "Invalid base64 string");
1859
- const s = e.split(","), o = (r = s[0].match(/:(.*?);/)) === null || r === void 0 ? void 0 : r[1], c = atob(s[1]), l = new Uint8Array(N(c));
1860
- return X(Array.from(c), (v, d) => {
1861
- l[d] = v.charCodeAt(0);
1862
- }), F(File, [l], n || "file", {
1863
- type: t || o || rn
1864
- });
1865
- }
1866
- },
1867
- {
1868
- name: "File",
1869
- is: ({ file: e }) => k(e, File),
1870
- convert({ file: e }) {
1871
- return e;
1872
- }
1873
- },
1874
- {
1875
- name: "Blob",
1876
- is: ({ file: e }) => k(e, Blob),
1877
- convert({ file: e, name: t, mimeType: n }) {
1878
- return F(File, [e], t || "file", {
1879
- type: n || e.type || rn
1880
- });
1881
- }
1882
- },
1883
- {
1884
- name: "ArrayBuffer",
1885
- is: ({ file: e }) => k(e, ArrayBuffer),
1886
- convert({ file: e, name: t, mimeType: n }) {
1887
- return F(File, [F(Blob, [e])], t || "file", {
1888
- type: n || rn
1889
- });
1890
- }
1891
- }
1892
- ];
1893
- const Ht = (e, t = {}) => {
1894
- let n = D;
1895
- const { enableFocus: r = D, enableVisibility: s = D, enableNetwork: o = D, pollingTime: c = 0, throttle: l = 1e3 } = t, { onMounted: v, onUnmounted: d, __referingObj: a } = Ft(Rt()), i = Ee(e, {
1896
- ...t,
1897
- __referingObj: a
1898
- }), f = () => {
1899
- n && (i.send(), l > 0 && (n = w, setTimeout(() => {
1900
- n = D;
1901
- }, l)));
1902
- };
1903
- let u = Z, O = Z, I = Z, g = Z;
1904
- return v(() => {
1905
- cs.ssr || (u = o ? Ht.onNetwork(f, t) : u, O = r ? Ht.onFocus(f, t) : O, I = s ? Ht.onVisibility(f, t) : I, g = c > 0 ? Ht.onPolling(f, t) : g);
1906
- }), d(() => {
1907
- u(), O(), I(), g();
1908
- }), i;
1909
- }, Fn = (e, t) => (window.addEventListener(e, t), () => window.removeEventListener(e, t));
1910
- Ht.onNetwork = (e) => Fn("online", e);
1911
- Ht.onFocus = (e) => Fn("focus", e);
1912
- Ht.onVisibility = (e) => Fn("visibilitychange", () => document.visibilityState === "visible" && e());
1913
- Ht.onPolling = (e, t) => {
1914
- const n = setInterval(e, t.pollingTime);
1915
- return () => clearInterval(n);
1916
- };
1917
- const Is = "useCaptcha", Kr = _t(Is);
1918
- var vo = (e, t = {}) => {
1919
- const { initialCountdown: n, middleware: r } = t;
1920
- Kr(n === p || n > 0, "initialCountdown must be greater than 0");
1921
- const { create: s, ref: o, objectify: c, exposeProvider: l, __referingObj: v } = Ft(Rt()), d = s(0, "countdown"), a = Ee(e, {
1922
- ...t,
1923
- __referingObj: v,
1924
- immediate: w,
1925
- managedStates: c([d], "s"),
1926
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
1927
- middleware: r ? (u, O) => r({ ...u, send: f }, O) : p
1928
- }), i = o(p), f = (...u) => F(Ut, (O, I) => {
1929
- d.v <= 0 ? a.send(...u).then((g) => {
1930
- d.v = t.initialCountdown || 60, i.current = setInterval(() => {
1931
- d.v -= 1, d.v <= 0 && clearInterval(i.current);
1932
- }, 1e3), O(g);
1933
- }).catch((g) => I(g)) : I(F($e, Is, "the countdown is not over yet"));
1934
- });
1935
- return l({
1936
- ...a,
1937
- send: f,
1938
- ...c([d])
1939
- });
1940
- };
1941
- const Yn = Symbol("FormRestore"), Nr = (e) => `alova/form-${k(e, me) ? Kt(e) : e}`, Jn = qt(), ge = {}, Xn = (e) => {
1942
- const t = (n) => lt(n) ? [...n] : oe(n) ? { ...n } : n;
1943
- return Nt(t(e), t);
1944
- };
1945
- var ho = (e, t = {}) => {
1946
- const { id: n } = t, r = n ? ge[n] : p, { id: s, initialForm: o, store: c, resetAfterSubmiting: l, immediate: v = w, middleware: d } = r?.config || t;
1947
- Rt();
1948
- const { create: a, ref: i, onMounted: f, onUnmounted: u, watch: O, objectify: I, exposeProvider: g, __referingObj: H } = Ft(Rt()), Q = oe(c), b = Q ? c.enable : c, _ = a(Xn(r?.form || o), "form"), V = e, q = qt(), K = i(p);
1949
- let j = r?.l2Cache;
1950
- b && !r?.l2Cache && (K.current = re(V, [_.v]), j = He(K.current).l2Cache);
1951
- const R = Nr(s || K.current || ""), x = i(w), T = i(Rn(Q ? c.serializers : p));
1952
- s && !ge[s] && (ge[s] = {
1953
- form: _.v,
1954
- l2Cache: j,
1955
- config: t
1956
- });
1957
- const J = Ee((...y) => V(_.v, ...y), {
1958
- ...t,
1959
- __referingObj: H,
1960
- // Middleware function, also supports subscriber middleware
1961
- middleware: d ? (y, C) => d({
1962
- ...y,
1963
- // eslint-disable-next-line
1964
- delegatingActions: { updateForm: h, reset: et }
1965
- }, C) : p,
1966
- // 1. When persistence is required, it will be triggered after data recovery
1967
- // 2. When there is a shared state, it means that it has been initialized before (regardless of whether there is an immediate request), and subsequent requests will no longer be automatically initiated. This is to be compatible with the issue of repeated requests when multiple forms initiate requests immediately.
1968
- immediate: b || r ? w : v
1969
- }), et = () => {
1970
- x.current = D;
1971
- const y = Xn(o);
1972
- y && (_.v = y), b && j?.remove(R);
1973
- }, h = (y) => {
1974
- _.v = {
1975
- ..._.v,
1976
- ...y
1977
- };
1978
- }, m = g({
1979
- // The first parameter is fixed to form data
1980
- ...J,
1981
- ...I([_]),
1982
- updateForm: h,
1983
- reset: et,
1984
- // Persistent data recovery event binding
1985
- onRestore(y) {
1986
- q.on(Yn, y);
1987
- }
1988
- }), A = i(Z), { send: P, onSuccess: M } = m;
1989
- return f(() => {
1990
- if (s && (A.current = Jn.on(s, (y) => {
1991
- _.v = y;
1992
- })), b && j && !r) {
1993
- const y = T.current.deserialize(j.get(R));
1994
- y && (_.v = y, q.emit(Yn, p)), v && P();
1995
- }
1996
- }), O([_], () => {
1997
- if (s && (Jn.emit(s, _.v), ge[s] && (ge[s].form = _.v)), x.current || !b) {
1998
- x.current = w;
1999
- return;
2000
- }
2001
- j?.set(R, T.current.serialize(_.v));
2002
- }), u(() => {
2003
- A.current();
2004
- }), M(() => {
2005
- l && et();
2006
- }), m;
2007
- };
2008
- const Zn = Symbol("RetriableRetry"), ts = Symbol("RetriableFail"), Vs = "useRetriableRequest", qr = _t(Vs);
2009
- var po = (e, t = {}) => {
2010
- const { retry: n = 3, backoff: r = { delay: 1e3 }, middleware: s = Z } = t, { ref: o, exposeProvider: c, __referingObj: l } = Ft(Rt()), v = qt(), d = o(0), a = o(p), i = o(p), f = o(p), u = o(w), O = o(p), I = o(Ce()), g = (V, q, K) => {
2011
- jt(() => {
2012
- v.emit(ts, F(mr, wt.spawn(V, q), K, d.current)), a.current = p, d.current = 0;
2013
- });
2014
- }, H = Ee(e, {
2015
- ...t,
2016
- __referingObj: l,
2017
- middleware(V, q) {
2018
- s({
2019
- ...V,
2020
- delegatingActions: {
2021
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
2022
- stop: Q
2023
- }
2024
- }, () => Ot());
2025
- const { proxyStates: K, args: j, send: R, method: x, controlLoading: T } = V;
2026
- T();
2027
- const { loading: J } = K, et = (m = w) => {
2028
- J.v = m;
2029
- }, h = (m) => {
2030
- et(), K.error.v = m, clearTimeout(O.current), g(x, j, m);
2031
- };
2032
- return J.v || ye(I.current.promise, (m) => {
2033
- h(m), I.current = Ce();
2034
- }), et(D), u.current = D, i.current = x, f.current = j, q().then(
2035
- (m) => (et(), m),
2036
- // Trigger retry mechanism when request fails
2037
- (m) => {
2038
- if (!a.current && (At(n) ? d.current < n : n(m, ...j))) {
2039
- d.current += 1;
2040
- const A = os(r, d.current);
2041
- O.current = jt(() => {
2042
- v.emit(Zn, F(pr, wt.spawn(x, j), d.current, A)), ye(R(...j), Z);
2043
- }, A);
2044
- } else
2045
- m = a.current || m, h(m);
2046
- return as(m);
2047
- }
2048
- ).finally(() => {
2049
- u.current = w;
2050
- });
2051
- }
2052
- }), Q = () => {
2053
- qr(H.__proxyState("loading").v, "there is no requests being retried"), a.current = F($e, Vs, "stop retry manually"), u.current ? H.abort() : I.current.reject(a.current);
2054
- };
2055
- return c({
2056
- ...H,
2057
- stop: Q,
2058
- onRetry: (V) => {
2059
- v.on(Zn, (q) => V(q));
2060
- },
2061
- onFail: (V) => {
2062
- v.on(ts, (q) => V(q));
2063
- }
2064
- });
2065
- };
2066
- let on = 0;
2067
- const $t = {}, zr = (e) => !!e.send, Gr = _t("subscriber"), mo = (e) => {
2068
- const { ref: t, onUnmounted: n } = Ft(Rt()), r = t(on + 1);
2069
- return r.current > on && (on += 1), n(() => {
2070
- var s;
2071
- !((s = $t[e]) === null || s === void 0) && s[r.current] && delete $t[e][r.current];
2072
- }), (s, o) => {
2073
- const { abort: c, proxyStates: l, delegatingActions: v = {} } = s, d = (f) => {
2074
- for (const u in f)
2075
- l[u] && (l[u].v = f[u]);
2076
- }, a = $t[e] = $t[e] || [], i = zr(s) ? {
2077
- ...v,
2078
- send: s.send,
2079
- abort: c,
2080
- update: d
2081
- } : {
2082
- ...v,
2083
- fetch: s.fetch,
2084
- abort: c,
2085
- update: d
2086
- };
2087
- return a[r.current] = i, o();
2088
73
  };
2089
- }, Eo = (e, t, n = !1) => {
2090
- const r = [];
2091
- typeof e == "symbol" || Pe(e) || At(e) ? $t[e] && at(r, ...Ie($t[e])) : k(e, RegExp) && X(Dt(yt($t), (s) => e.test(s)), (s) => {
2092
- at(r, ...Ie($t[s]));
2093
- }), r.length === 0 && !n && Gr(!1, `no handler can be matched by using \`${e.toString()}\``), X(Dt(r, se), t);
2094
74
  };
75
+ var U;
76
+ (function(n) {
77
+ n[n.USE_REQUEST = 1] = "USE_REQUEST", n[n.USE_WATCHER = 2] = "USE_WATCHER", n[n.USE_FETCHER = 3] = "USE_FETCHER";
78
+ })(U || (U = {}));
79
+ var T;
80
+ (function(n) {
81
+ n[n.CONNECTING = 0] = "CONNECTING", n[n.OPEN = 1] = "OPEN", n[n.CLOSED = 2] = "CLOSED";
82
+ })(T || (T = {}));
83
+ var _;
84
+ (function(n) {
85
+ n.Open = "open", n.Error = "error", n.Message = "message", n.Close = "close";
86
+ })(_ || (_ = {}));
2095
87
  export {
2096
- Eo as accessAction,
2097
- mo as actionDelegationMiddleware,
2098
- oo as bootSilentFactory,
2099
- Wr as createClientTokenAuthentication,
2100
- kr as createServerTokenAuthentication,
2101
- Zr as dehydrateVData,
2102
- co as equals,
2103
- Qr as filterSilentMethods,
2104
- io as getSilentMethod,
2105
- lo as isVData,
2106
- ro as onBeforeSilentSubmit,
2107
- to as onSilentSubmitBoot,
2108
- no as onSilentSubmitError,
2109
- so as onSilentSubmitFail,
2110
- eo as onSilentSubmitSuccess,
2111
- Vt as silentQueueMap,
2112
- Ft as statesHookHelper,
2113
- kt as stringifyVData,
2114
- Ue as updateState,
2115
- uo as updateStateEffect,
2116
- Ht as useAutoRequest,
2117
- vo as useCaptcha,
2118
- br as useFetcher,
2119
- ho as useForm,
2120
- Yr as usePagination,
2121
- Ee as useRequest,
2122
- po as useRetriableRequest,
2123
- ao as useSQRequest,
2124
- fo as useSSE,
2125
- Jr as useSerialRequest,
2126
- Xr as useSerialWatcher,
2127
- ze as useUploader,
2128
- Ss as useWatcher
88
+ I as createClientTokenAuthentication
2129
89
  };