mixdashboards 1.0.73 → 1.0.74

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 (417) hide show
  1. package/dist/BaseComponent-CaCkjmmb.cjs +1 -0
  2. package/dist/{BaseComponent-CBagahPU.js → BaseComponent-NnwLq7Cf.js} +148 -122
  3. package/dist/{EChartComponentBase-cFfawl6h.js → EChartComponentBase-C3gcATBZ.js} +3 -3
  4. package/dist/{EChartComponentBase-dLE5F7Tt.cjs → EChartComponentBase-D7_ZiE7P.cjs} +1 -1
  5. package/dist/{EmergencyPlanPanel--jTGG89o.js → EmergencyPlanPanel-0EfbQlQm.js} +1 -1
  6. package/dist/{EmergencyPlanPanel-BJb-Bbxh.cjs → EmergencyPlanPanel-XDtQc5aN.cjs} +1 -1
  7. package/dist/{HistoryPlanDialog-C-QPdV4V.cjs → HistoryPlanDialog-fbBtPeVt.cjs} +1 -1
  8. package/dist/{HistoryPlanDialog-DerClU2U.js → HistoryPlanDialog-ihGqWXNI.js} +1 -1
  9. package/dist/{MarkerView-CtWJi5UZ.js → MarkerView-DDN8S7xE.js} +7 -7
  10. package/dist/{MonitoringMap-CNaGsq83.js → MonitoringMap-DysFrw3B.js} +2 -2
  11. package/dist/{MonitoringMap-B6RMbiIS.cjs → MonitoringMap-UT2OL3ca.cjs} +1 -1
  12. package/dist/{RoamController-DmBIwcAZ.js → RoamController-1rzpYesL.js} +1 -1
  13. package/dist/{UniverSheet-KI09RqKm.js → UniverSheet-CMWL98B8.js} +2 -2
  14. package/dist/{UniverSheet-CM-vvc23.cjs → UniverSheet-DeZ-y5mH.cjs} +1 -1
  15. package/dist/{VisualMapping-D-MA7S0X.js → VisualMapping-GwxHIgr-.js} +1 -1
  16. package/dist/{accelerationChart-HBCb2bRW.cjs → accelerationChart-BGjzOc4I.cjs} +1 -1
  17. package/dist/{accelerationChart-D7KNk5fI.js → accelerationChart-JNRxAqU5.js} +23 -23
  18. package/dist/{actionItem-Bx4mW0jP.cjs → actionItem-DDlL4pxR.cjs} +1 -1
  19. package/dist/{actionItem-BmNYzAXu.js → actionItem-DnrNafUu.js} +2 -2
  20. package/dist/{alarmLevelChart-Cvnw4z1w.cjs → alarmLevelChart-B4TglthF.cjs} +1 -1
  21. package/dist/{alarmLevelChart-DdSw2s7W.js → alarmLevelChart-D4ZPyGyd.js} +2 -2
  22. package/dist/{alertTable-CC3c8DFb.js → alertTable-IwL3PIbe.js} +2 -2
  23. package/dist/{alertTable-hH6HA9pY.cjs → alertTable-WmivR3n_.cjs} +1 -1
  24. package/dist/{aliasObjectSelectorDemo-yDiavTpG.js → aliasObjectSelectorDemo-DCcqetww.js} +9 -9
  25. package/dist/{aliasObjectSelectorDemo-C7E_fnCf.cjs → aliasObjectSelectorDemo-zcElLG44.cjs} +1 -1
  26. package/dist/{annualRainfallChart-B9ar8vo8.js → annualRainfallChart-CNqrXKJZ.js} +3 -3
  27. package/dist/{annualRainfallChart-C6JLSPIf.cjs → annualRainfallChart-DspMrDxt.cjs} +1 -1
  28. package/dist/{aqi-DEiCVIVa.cjs → aqi-B1bcKY5p.cjs} +1 -1
  29. package/dist/{aqi-BNc5QCM3.js → aqi-CdGE9-CD.js} +10 -10
  30. package/dist/{aqiIndass-Bowic_Pc.cjs → aqiIndass-BZpPo1tj.cjs} +1 -1
  31. package/dist/{aqiIndass-CAGV8_Uf.js → aqiIndass-CuKfMaYn.js} +30 -30
  32. package/dist/{areaDeformCurve-CSpR060t.js → areaDeformCurve-Chn4CE8w.js} +4 -4
  33. package/dist/{areaDeformCurve-CVy23kV2.cjs → areaDeformCurve-bNNNS8Cb.cjs} +1 -1
  34. package/dist/{arrayCard-NqoQKcE9.cjs → arrayCard-BYZWRop3.cjs} +1 -1
  35. package/dist/{arrayCard-PPDb7U6X.js → arrayCard-CVVWnZDk.js} +2 -2
  36. package/dist/{audio-Bw-GaYe1.cjs → audio-BeYg08W5.cjs} +1 -1
  37. package/dist/{audio-BJPFIQIr.js → audio-YTfr7Lqf.js} +2 -2
  38. package/dist/{axisAlignTicks-BqVUa467.js → axisAlignTicks-Chqgi59U.js} +2 -2
  39. package/dist/bar-1K14ZPKy.cjs +2 -0
  40. package/dist/bar-YhAAV2al.js +309 -0
  41. package/dist/bmp-Uj7Bu61U.js +2080 -0
  42. package/dist/bmp-vWIH5Cu7.cjs +1 -0
  43. package/dist/{box-DIHVOqrV.js → box-C8RIfuID.js} +2 -2
  44. package/dist/{box-CKuGsh2k.cjs → box-Cdzw27uU.cjs} +1 -1
  45. package/dist/{chartConfigPanel-BVdVXbs6.cjs → chartConfigPanel-D3voTkdQ.cjs} +1 -1
  46. package/dist/{chartConfigPanel-D1rO6SGh.js → chartConfigPanel-DLa3heKy.js} +1 -1
  47. package/dist/{circleBar-CBLcp4Xi.js → circleBar-DUSP-iMF.js} +15 -15
  48. package/dist/{circleBar-BzXqA-Cz.cjs → circleBar-Dc_qd4gk.cjs} +1 -1
  49. package/dist/{clock-DmWyBpo-.cjs → clock-0USfNfTc.cjs} +1 -1
  50. package/dist/{clock-4AMfFDGC.js → clock-Dk1zjBcJ.js} +2 -2
  51. package/dist/clt-BCHpLoab.cjs +1 -0
  52. package/dist/clt-Ba9Ov5WY.js +296 -0
  53. package/dist/cmc-CdDCboSm.cjs +1 -0
  54. package/dist/{cmc-Cjb5w3om.js → cmc-CsVB4uz3.js} +71 -63
  55. package/dist/cmp-BPM8lMqg.cjs +6 -0
  56. package/dist/{cmp-COJzlQPa.js → cmp-D4ZO7mz7.js} +54 -55
  57. package/dist/{conclusionCard-C-TT6znN.cjs → conclusionCard-BVHHtpxH.cjs} +1 -1
  58. package/dist/{conclusionCard-BQUlLFde.js → conclusionCard-BYR-fH4f.js} +2 -2
  59. package/dist/{controlList-5D5UIDQL.js → controlList-DYV1wgUY.js} +2 -2
  60. package/dist/{controlList-CIwzKylK.cjs → controlList-DsEyes9v.cjs} +1 -1
  61. package/dist/{controlRecordList-Cp5mmEQ1.js → controlRecordList-CBGpB41d.js} +2 -2
  62. package/dist/{controlRecordList-uEQ3ohmB.cjs → controlRecordList-j0pBrQiU.cjs} +1 -1
  63. package/dist/{controlRecordListAPP-B5d4x_xH.cjs → controlRecordListAPP-BktJCkFK.cjs} +1 -1
  64. package/dist/{controlRecordListAPP-p_skbQVD.js → controlRecordListAPP-CSt8rFZX.js} +2 -2
  65. package/dist/{crd-Dfl2XKAx.cjs → crd-C8IqmHc6.cjs} +1 -1
  66. package/dist/{crd-8gRWMf2Y.js → crd-Di7EfiY1.js} +2 -2
  67. package/dist/{createSeriesData-E53TTCAt.js → createSeriesData-BUgbWEWK.js} +2 -2
  68. package/dist/{createSeriesDataSimply-Bsly4zZA.js → createSeriesDataSimply-C7bzYYow.js} +2 -2
  69. package/dist/{ctrBtn-BzmFxucy.js → ctrBtn-BzMHJHA9.js} +94 -89
  70. package/dist/ctrBtn-Cj-AqUKM.cjs +1 -0
  71. package/dist/ctrSet-CnDBng-I.cjs +1 -0
  72. package/dist/ctrSet-DMkuRDFI.js +234 -0
  73. package/dist/ctrSwitch-BRfl35Aw.cjs +1 -0
  74. package/dist/{ctrSwitch-6nMHbIE7.js → ctrSwitch-FJgD05b0.js} +94 -88
  75. package/dist/{cursorHelper-DE0KU4_J.js → cursorHelper-BFbblC6t.js} +1 -1
  76. package/dist/{customGraphicKeyframeAnimation-BJ_z0kB3.js → customGraphicKeyframeAnimation-veqkTlqy.js} +17 -17
  77. package/dist/{dataManagement-BZiSmktM.js → dataManagement-CQoqc9Rh.js} +2 -2
  78. package/dist/{dataManagement-sQpuBaDz.cjs → dataManagement-CXbeNggN.cjs} +1 -1
  79. package/dist/{dataReport-D9Q9c43B.cjs → dataReport-BkIDOCdC.cjs} +1 -1
  80. package/dist/{dataReport-CbJzXeCE.js → dataReport-l2SE8HZx.js} +2 -2
  81. package/dist/{dataSample-BXwc06Sb.js → dataSample-Czrba8EC.js} +1 -1
  82. package/dist/{dataTable-BJ4SVFbu.cjs → dataTable-BdttKfHG.cjs} +1 -1
  83. package/dist/{dataTable-BuBB0b-A.js → dataTable-jf6qXfJJ.js} +1 -1
  84. package/dist/{datetime-B66VgJL1.cjs → datetime-BH9orUUf.cjs} +1 -1
  85. package/dist/{datetime-DO03QrXz.js → datetime-eht4XkmD.js} +2 -2
  86. package/dist/{deepClusterSlipSurface-BqT55vkY.cjs → deepClusterSlipSurface-CF_MN7sO.cjs} +1 -1
  87. package/dist/{deepClusterSlipSurface-DpSAXgFf.js → deepClusterSlipSurface-D2d52L50.js} +6 -6
  88. package/dist/{deepDataMatrix-CPrIOv5r.js → deepDataMatrix-DY1WmgGR.js} +7 -7
  89. package/dist/{deepDataMatrix-DZZaTMbD.cjs → deepDataMatrix-DqbCqz8d.cjs} +1 -1
  90. package/dist/{deepDisplacement3D-JlMej7-5.js → deepDisplacement3D-CuVVhd0X.js} +20 -21
  91. package/dist/{deepDisplacement3D-Cd9nwwPt.cjs → deepDisplacement3D-D3-KOmef.cjs} +60 -60
  92. package/dist/{deepDisplacementChart-CEaj2bUV.cjs → deepDisplacementChart-BwBojI9h.cjs} +1 -1
  93. package/dist/{deepDisplacementChart-CjlGpeHj.js → deepDisplacementChart-C_3eHTmR.js} +25 -25
  94. package/dist/{deepDisplacementChart-BiDt60xI.js → deepDisplacementChart-DFosjAQL.js} +4 -4
  95. package/dist/{deepDisplacementChart-CALM3gna.cjs → deepDisplacementChart-DzikjpBz.cjs} +1 -1
  96. package/dist/{deepDisplacementView-BpUw-b-i.js → deepDisplacementView-BNQaheci.js} +3 -3
  97. package/dist/{deepDisplacementView-CoSNzN1q.cjs → deepDisplacementView-gJdi6U9B.cjs} +1 -1
  98. package/dist/{deepNodeTemperatureChart-DfZq7kLx.js → deepNodeTemperatureChart-C5d-tyOA.js} +22 -22
  99. package/dist/{deepNodeTemperatureChart-DPN0rYir.cjs → deepNodeTemperatureChart-oMknBT7e.cjs} +1 -1
  100. package/dist/{deepTangentAngleChart-Ca01hah9.js → deepTangentAngleChart-C35d0nBR.js} +18 -18
  101. package/dist/{deepTangentAngleChart-Dg9PJspK.cjs → deepTangentAngleChart-C7b7sEab.cjs} +1 -1
  102. package/dist/{deepTemperatureField-BqDB97SW.cjs → deepTemperatureField-BnWHpVPm.cjs} +1 -1
  103. package/dist/{deepTemperatureField-CYBTjhEp.js → deepTemperatureField-DbGy0vHS.js} +25 -25
  104. package/dist/{deepTrendChart-B5BAHTeY.cjs → deepTrendChart-D676owsq.cjs} +1 -1
  105. package/dist/{deepTrendChart-DBjxV7_A.js → deepTrendChart-DdCYjiWZ.js} +18 -18
  106. package/dist/{deviceOnlineStatus-1eoHCl_-.js → deviceOnlineStatus-BH-2-UBD.js} +2 -2
  107. package/dist/{deviceOnlineStatus-DHzaAzCp.cjs → deviceOnlineStatus-DSuaeFZj.cjs} +1 -1
  108. package/dist/{deviceStatus-90rQa1uj.js → deviceStatus-CxjbfqGK.js} +15 -15
  109. package/dist/{deviceStatus-4BMy4qBD.cjs → deviceStatus-ySE9suGE.cjs} +1 -1
  110. package/dist/{displacementDataTable-BArwj-xp.js → displacementDataTable-CAYYafN7.js} +17 -17
  111. package/dist/{displacementDataTable-BLWjiaRQ.cjs → displacementDataTable-DwutxypE.cjs} +1 -1
  112. package/dist/{displacementTrajectoryChart-CxOPJVlD.js → displacementTrajectoryChart-ClUAsle_.js} +14 -14
  113. package/dist/{displacementTrajectoryChart-DfJMOCFJ.cjs → displacementTrajectoryChart-zya-qu9n.cjs} +1 -1
  114. package/dist/{displacementTrendChart-Cuxa5iTp.cjs → displacementTrendChart-DZj52qRD.cjs} +1 -1
  115. package/dist/{displacementTrendChart-4E6cDsX8.js → displacementTrendChart-xqe9LMp8.js} +17 -17
  116. package/dist/{dxf-BgklkksV.cjs → dxf-Cmr9xmL0.cjs} +1 -1
  117. package/dist/{dxf-BogwbJID.js → dxf-tZgpovsn.js} +2 -2
  118. package/dist/{dzc-CApfzriC.cjs → dzc-BwCEpLKp.cjs} +1 -1
  119. package/dist/{dzc-D7tTBLaA.js → dzc-C0VMyvsH.js} +9 -9
  120. package/dist/{echarts-BVht3HHb.js → echarts-Bp7QN4X6.js} +90 -90
  121. package/dist/{emergencyPlan-BuFz4XFc.cjs → emergencyPlan-CQtYRB5n.cjs} +1 -1
  122. package/dist/{emergencyPlan-CjbuX-N5.js → emergencyPlan-j1icRflR.js} +3 -3
  123. package/dist/{evn-DTPm72ZM.js → evn-B2F6pbqY.js} +2 -2
  124. package/dist/{evn-BcSenXF3.cjs → evn-B6WNZ0pv.cjs} +1 -1
  125. package/dist/{evolutionChart-D1dVKWOt.js → evolutionChart-C1rPjVsB.js} +5 -5
  126. package/dist/{evolutionChart-CrwR8i40.cjs → evolutionChart-q9UtSs9r.cjs} +1 -1
  127. package/dist/{fileViewer-BNHwlZRa.js → fileViewer-Bj4FYg5G.js} +13 -13
  128. package/dist/{fileViewer-BUuST3Rp.cjs → fileViewer-ZO55zvWU.cjs} +1 -1
  129. package/dist/{filterBar-CRJinh5K.js → filterBar-CIYpcc9y.js} +2 -2
  130. package/dist/{filterBar-BJzjPFFg.cjs → filterBar-D7js_Q7g.cjs} +1 -1
  131. package/dist/{fireCombustionCurve-BGdJ1ybj.cjs → fireCombustionCurve-CiVXjt9E.cjs} +1 -1
  132. package/dist/{fireCombustionCurve-BZ6qJ1kq.js → fireCombustionCurve-DEHjb7Lp.js} +3 -3
  133. package/dist/{fireFilterBar-KvvbsCsZ.js → fireFilterBar-BzgnlY5d.js} +2 -2
  134. package/dist/{fireFilterBar-DZejT0oL.cjs → fireFilterBar-CkQU9Yaf.cjs} +1 -1
  135. package/dist/{fireHistoryTable-80ygqnOG.js → fireHistoryTable-BoAArvjx.js} +2 -2
  136. package/dist/{fireHistoryTable-CMSGKb3w.cjs → fireHistoryTable-JCY4nLos.cjs} +1 -1
  137. package/dist/gag-CrUeBa30.cjs +1 -0
  138. package/dist/gag-DCGVulGC.js +168 -0
  139. package/dist/{gasStationList-DjJtXnqL.cjs → gasStationList-CN2y3zri.cjs} +1 -1
  140. package/dist/{gasStationList-DM-laJsi.js → gasStationList-CifrfkH0.js} +3 -3
  141. package/dist/{geo3dViewer-CL_89mQf.cjs → geo3dViewer-BSAjBg2m.cjs} +1 -1
  142. package/dist/{geo3dViewer-FhmMIvMJ.js → geo3dViewer-Du775tJ7.js} +3 -3
  143. package/dist/{glbModel-B0nWYYJQ.js → glbModel-2uTNL367.js} +2 -2
  144. package/dist/{glbModel-DakMJal6.cjs → glbModel-Cm1M6hko.cjs} +1 -1
  145. package/dist/{globalObjectSelector-Gv4srHhp.js → globalObjectSelector-CEpO2o2w.js} +1 -1
  146. package/dist/{globalObjectSelector-jNzZxdnL.cjs → globalObjectSelector-W_YToM6x.cjs} +1 -1
  147. package/dist/{gnssFilterBar-kEIW7Tjs.cjs → gnssFilterBar-BSHEfiyz.cjs} +1 -1
  148. package/dist/{gnssFilterBar-C4rpyNw3.js → gnssFilterBar-DZYOL5nC.js} +2 -2
  149. package/dist/{gnssHistoryTable-DRKlP8-b.cjs → gnssHistoryTable-Ct98Vz6i.cjs} +1 -1
  150. package/dist/{gnssHistoryTable-CyMwQJ7_.js → gnssHistoryTable-naChmXHT.js} +2 -2
  151. package/dist/{gnssMapView-DpExCi0x.cjs → gnssMapView-CCW4_-Sn.cjs} +2 -2
  152. package/dist/{gnssMapView-EVufCGrW.js → gnssMapView-DouWOPLF.js} +6 -6
  153. package/dist/{gnssSectionProfile-CaJwF9wp.js → gnssSectionProfile-Be-THvQP.js} +4 -4
  154. package/dist/{gnssSectionProfile-DdcOMdNC.cjs → gnssSectionProfile-hzXQ4KzJ.cjs} +1 -1
  155. package/dist/{gnssTimeSeriesChart-y11Y8k2-.cjs → gnssTimeSeriesChart-CbMxKxjG.cjs} +1 -1
  156. package/dist/{gnssTimeSeriesChart-iffDvMNx.js → gnssTimeSeriesChart-DoMBz4zf.js} +2 -2
  157. package/dist/{gnssXYTrajectory-DGBGGDwi.cjs → gnssXYTrajectory-BNwqQna4.cjs} +1 -1
  158. package/dist/{gnssXYTrajectory-C_1fuLWn.js → gnssXYTrajectory-Bg2B89Vw.js} +2 -2
  159. package/dist/{grd-C4hCrpvH.cjs → grd-C-x23C0E.cjs} +1 -1
  160. package/dist/{grd-FfuMQJb7.js → grd-XTVPofQw.js} +17 -17
  161. package/dist/{grdIndass-BTbZmPLZ.js → grdIndass-CYawTr5K.js} +2 -2
  162. package/dist/{grdIndass-CyuRKD5H.cjs → grdIndass-h7STZwba.cjs} +1 -1
  163. package/dist/{grg-CcnI5kRY.js → grg-BZPHOdr_.js} +16 -16
  164. package/dist/{grg-Cuxa17d6.cjs → grg-DMRsgNoC.cjs} +1 -1
  165. package/dist/{gridview-CKjBuTRq.cjs → gridview-BAqXV-TI.cjs} +1 -1
  166. package/dist/{gridview-ffVc5Wvg.js → gridview-C_Lqcw3n.js} +2 -2
  167. package/dist/{groundwaterFilterBar-DaPR-kbl.js → groundwaterFilterBar-Dq216QFO.js} +2 -2
  168. package/dist/{groundwaterFilterBar-D3l7GLVY.cjs → groundwaterFilterBar-RcVBt_vt.cjs} +1 -1
  169. package/dist/{groundwaterProfileChart-DoSx7WWp.js → groundwaterProfileChart-7LN3wfLM.js} +3 -3
  170. package/dist/{groundwaterProfileChart-BxJKIPXF.cjs → groundwaterProfileChart-D31MpfdN.cjs} +2 -2
  171. package/dist/{groundwaterTimeCurve-Bp5MxM9k.cjs → groundwaterTimeCurve-C65gdinn.cjs} +1 -1
  172. package/dist/{groundwaterTimeCurve-D-SdVYeq.js → groundwaterTimeCurve-CJgvt43Z.js} +3 -3
  173. package/dist/{groupCard-COMEkzIb.js → groupCard-BpjcijZW.js} +2 -2
  174. package/dist/{groupCard-BzUQ8xY0.cjs → groupCard-DNOawK4_.cjs} +1 -1
  175. package/dist/{headerBar-ouXO8bzC.js → headerBar-Bnv8ylmr.js} +2 -2
  176. package/dist/{headerBar-iFe0YQKE.cjs → headerBar-CNWKR951.cjs} +1 -1
  177. package/dist/{history-BZ869y2d.js → history-DdkBOj8L.js} +24 -24
  178. package/dist/{history-MxYUUwkm.cjs → history-xZTq1lUB.cjs} +1 -1
  179. package/dist/index-BzWbqJIl.cjs +612 -0
  180. package/dist/index-CJgyJTvc.cjs +11 -0
  181. package/dist/{index-DwPJu6XM.js → index-D5BukPPY.js} +1805 -1642
  182. package/dist/{index-ButoLLAe.js → index-eIsZnzkc.js} +2753 -2122
  183. package/dist/{insarDeformChart-5BhCUq8L.js → insarDeformChart-BKgJHbFe.js} +2 -2
  184. package/dist/{insarDeformChart-Ca3AMsBk.cjs → insarDeformChart-DIvxdDkN.cjs} +1 -1
  185. package/dist/{insarImageViewer-DWPsoHz6.cjs → insarImageViewer-Bray3mKg.cjs} +1 -1
  186. package/dist/{insarImageViewer-DHNxmLpa.js → insarImageViewer-qI5GBqkU.js} +2 -2
  187. package/dist/{install-FDYiy_gL.js → install-B_v5XJLG.js} +5 -5
  188. package/dist/{install-9_V0b6vf.js → install-BfNaEf5I.js} +24 -24
  189. package/dist/{install-B0x4IqQr.js → install-By9bYCXw.js} +11 -11
  190. package/dist/{install-hfre7yvV.js → install-CEl1AYgZ.js} +2 -2
  191. package/dist/{install-BzdOSCzO.js → install-CIdzgJ44.js} +109 -109
  192. package/dist/{install-oGjJ0_bF.js → install-CJ_UX-RT.js} +44 -44
  193. package/dist/{install-BifpoHNI.js → install-CY89Nrxl.js} +5 -5
  194. package/dist/{install-BUu5ESB7.js → install-Cmw0VV-B.js} +72 -72
  195. package/dist/{install-MS3ZY7fF.js → install-CqrIgcb1.js} +7 -7
  196. package/dist/{install-D1QM80AD.js → install-DNDCMXB3.js} +2 -2
  197. package/dist/install-DbAuuRVv.js +8 -0
  198. package/dist/{install-CBde4hAM.js → install-DdM8j5Ll.js} +1 -1
  199. package/dist/{install-B2TChEcT.js → install-DwcX1eNi.js} +4 -4
  200. package/dist/{install-C_3uGWLu.js → install-FXyLnlJE.js} +9 -9
  201. package/dist/{install-C9Cdzkc6.js → install-UooD2LwU.js} +29 -29
  202. package/dist/{install-Cx1i_m0k.js → install-ZJfH__Vo.js} +11 -11
  203. package/dist/{install-8XfFtnlL.js → install-uPZUxWT9.js} +19 -19
  204. package/dist/{installCanvasRenderer-CLT2hquJ.js → installCanvasRenderer-oDYkyVFy.js} +4 -4
  205. package/dist/{installMarkArea-Cdg4iciO.js → installMarkArea-DaDitBR7.js} +15 -15
  206. package/dist/{installMarkLine-BgE0YACE.js → installMarkLine-CHCnywAM.js} +10 -10
  207. package/dist/{installSimple-BWTCwMdY.js → installSimple-CB2Y4Ri7.js} +3 -3
  208. package/dist/{kds-Dpf_3WWj.cjs → kds-BibvGW1n.cjs} +1 -1
  209. package/dist/{kds-BYZC4pIM.js → kds-C1Chb0fa.js} +30 -30
  210. package/dist/{kpiCard-CStPtl-c.js → kpiCard-KuMZjN55.js} +2 -2
  211. package/dist/{kpiCard-OLJgA48-.cjs → kpiCard-tnfcEXOn.cjs} +1 -1
  212. package/dist/{labelHelper-Cd8oB-sZ.js → labelHelper-DccEpjmd.js} +1 -1
  213. package/dist/{landslideMap-BUq0x7rd.js → landslideMap-B4vzymkZ.js} +15 -15
  214. package/dist/{landslideMap-JTdoQjW-.cjs → landslideMap-DlMSDibx.cjs} +1 -1
  215. package/dist/{landslideWarning-VAn9XGUj.js → landslideWarning-BYlaEzUr.js} +5 -5
  216. package/dist/{landslideWarning-ZA5LCsIr.cjs → landslideWarning-DtOMb7U_.cjs} +1 -1
  217. package/dist/{layerTabs-CAJ6f-2W.js → layerTabs-BG0gTvo8.js} +2 -2
  218. package/dist/{layerTabs-CdhowHB1.cjs → layerTabs-DQm_b2aH.cjs} +1 -1
  219. package/dist/{leaflet-src-DNO2-OsP.js → leaflet-src-DVXepwmU.js} +1 -1
  220. package/dist/{leaflet-src-CxFQ_Cn7.cjs → leaflet-src-qPfpknMO.cjs} +1 -1
  221. package/dist/{lerc-qU4WKXeS.cjs → lerc-CITZZDb7.cjs} +1 -1
  222. package/dist/{lerc-bF2jqjoV.js → lerc-Z6kWrF7V.js} +2 -2
  223. package/dist/{lin-BHI2KgyW.cjs → lin-CW8Q8u-z.cjs} +1 -1
  224. package/dist/{lin-DbQw7wZw.js → lin-zJYjIE2f.js} +11 -11
  225. package/dist/{linIndass-Cd9Hjzs_.js → linIndass-27mWriLs.js} +16 -16
  226. package/dist/{linIndass-CIrObeZT.cjs → linIndass-CQaikC7I.cjs} +1 -1
  227. package/dist/{lst-C3C2m1v_.js → lst-BqXNkXrQ.js} +2 -2
  228. package/dist/{lst-BRsEe-Hq.cjs → lst-Cu-ohx2m.cjs} +1 -1
  229. package/dist/{manualEntry-B8TDMcDg.js → manualEntry-BPEmSok7.js} +2 -2
  230. package/dist/{manualEntry-C3_WtYz8.cjs → manualEntry-zj6TEXL7.cjs} +1 -1
  231. package/dist/{mapBackground-BrVIQUcT.js → mapBackground-BhcSOZ_h.js} +3 -3
  232. package/dist/{mapBackground-Du7R_ICY.cjs → mapBackground-CRI873EC.cjs} +1 -1
  233. package/dist/{mappingList-BpJUawmv.js → mappingList-CvG8EIIC.js} +2 -2
  234. package/dist/{mappingList-C5OZ8oUx.cjs → mappingList-DGgPl4t4.cjs} +1 -1
  235. package/dist/{markdownViewer-CoRrvdY7.js → markdownViewer-D9JqGyeI.js} +6 -6
  236. package/dist/{markdownViewer-D96bwxEt.cjs → markdownViewer-DvbUv7kn.cjs} +1 -1
  237. package/dist/mix-control-modal-DaRWnX3S.js +160 -0
  238. package/dist/mix-control-modal-DpAs-GHi.cjs +1 -0
  239. package/dist/{mixGrid-Hj0OJjkg.cjs → mixGrid-CHne1dXO.cjs} +1 -1
  240. package/dist/{mixGrid-CtJWul6c.js → mixGrid-FBiMFT4V.js} +4 -4
  241. package/dist/mixdashboards.cjs +1 -1
  242. package/dist/mixdashboards.css +1 -1
  243. package/dist/mixdashboards.js +1 -1
  244. package/dist/mixiotObjectListApi-BwIQvSS-.js +67 -0
  245. package/dist/mixiotObjectListApi-ClirV2tM.cjs +1 -0
  246. package/dist/{mjpegCamera-Dc4IsJA6.js → mjpegCamera-D2quqZNc.js} +2 -2
  247. package/dist/{mjpegCamera-BY7pmbDc.cjs → mjpegCamera-D32gJ5oN.cjs} +1 -1
  248. package/dist/{monitorAlert-DVNvJyTy.cjs → monitorAlert-CxC81qAu.cjs} +1 -1
  249. package/dist/{monitorAlert-F8QFOchR.js → monitorAlert-D4qszzHh.js} +12 -12
  250. package/dist/{monitorData-AkPbhJ9q.cjs → monitorData-CVkL2ukF.cjs} +1 -1
  251. package/dist/{monitorData-BzqNIdrW.js → monitorData-DnWDsgTT.js} +13 -13
  252. package/dist/{monitorSpeedChart-348U37LW.js → monitorSpeedChart-CHpQsrDt.js} +3 -3
  253. package/dist/{monitorSpeedChart-DVH1xihw.cjs → monitorSpeedChart-CKxwWE0i.cjs} +1 -1
  254. package/dist/{mxa-CkJjCHA-.js → mxa-Cbnwonqc.js} +7 -7
  255. package/dist/{mxa-DShU528J.cjs → mxa-UU7rQDd8.cjs} +1 -1
  256. package/dist/{myValue-CEfp19i2.js → myValue-DBxx1jtk.js} +2 -2
  257. package/dist/{myValue-BCeycpdO.cjs → myValue-DzARZpdg.cjs} +1 -1
  258. package/dist/{myValueList-CAPOW8TK.cjs → myValueList-BVbeDsWn.cjs} +1 -1
  259. package/dist/{myValueList-y3GR4AX2.js → myValueList-BbtPVr5y.js} +2 -2
  260. package/dist/{objectList-D16yLbzD.js → objectList-Cpu0yqsK.js} +4 -4
  261. package/dist/{objectList-4rYQk5uq.cjs → objectList-D5E8PU66.cjs} +1 -1
  262. package/dist/objectListAPP-CYxy9UjL.js +2247 -0
  263. package/dist/objectListAPP-Cr4uoJuN.cjs +1 -0
  264. package/dist/{photo-D67wLRkY.cjs → photo-BRMACjXO.cjs} +1 -1
  265. package/dist/{photo-BV6rkbWO.js → photo-DPOhq559.js} +2 -2
  266. package/dist/{pie-BeRwVkTk.cjs → pie-B7HO9F24.cjs} +1 -1
  267. package/dist/{pie-bNKhq6ak.js → pie-CUqy6VGE.js} +10 -10
  268. package/dist/{placeholder-zByzfWaH.cjs → placeholder-D-BpaT59.cjs} +1 -1
  269. package/dist/{placeholder-_iK4rVyU.js → placeholder-DsyLsZM5.js} +1 -1
  270. package/dist/{points-DkG9FRF9.js → points-Cddz0rX-.js} +15 -15
  271. package/dist/{pressBtn-BjqYIPC-.cjs → pressBtn-DZz7PZ7o.cjs} +1 -1
  272. package/dist/{pressBtn-B-rZPXK2.js → pressBtn-IefW25bT.js} +138 -108
  273. package/dist/{processTable-s_y8uups.js → processTable-Bm2HnUrZ.js} +2 -2
  274. package/dist/{processTable-ByPlSKRJ.cjs → processTable-kVFr2ntb.cjs} +1 -1
  275. package/dist/{progressBar-CRdA7oJT.cjs → progressBar-00yP_jc2.cjs} +1 -1
  276. package/dist/{progressBar-DskxZk1P.js → progressBar-C7RKpdcE.js} +37 -29
  277. package/dist/{progressCircle-BE_Am-AP.js → progressCircle-BBkwMkI0.js} +47 -39
  278. package/dist/{progressCircle-CHe-12Hb.cjs → progressCircle-CzqibMlZ.cjs} +1 -1
  279. package/dist/{qrcode-D8cFyUpL.cjs → qrcode-4NUAsx0h.cjs} +1 -1
  280. package/dist/{qrcode-Dgth6KwU.js → qrcode-DaHlY7Vv.js} +2 -2
  281. package/dist/raceBar-BVsHg94d.cjs +2 -0
  282. package/dist/{raceBar-DV-3KFg2.js → raceBar-WhOgwnlP.js} +116 -120
  283. package/dist/{rad-BhsfF0XI.js → rad-BlEn2Yx1.js} +6 -6
  284. package/dist/{rad-BerkC70H.cjs → rad-sMtJPs8L.cjs} +1 -1
  285. package/dist/{radarMapViewer-C2dde8EN.js → radarMapViewer-C1_FFYFi.js} +2 -2
  286. package/dist/{radarMapViewer-HWzvBTzT.cjs → radarMapViewer-CzhHFpRX.cjs} +1 -1
  287. package/dist/{rainfallFilterBar-CiT1mvYh.js → rainfallFilterBar-Bt2TbXV6.js} +2 -2
  288. package/dist/{rainfallFilterBar-kuAQO0M-.cjs → rainfallFilterBar-F7DU_nqK.cjs} +1 -1
  289. package/dist/{rainfallTimeCurve-BlOnCq2M.js → rainfallTimeCurve-C5tBf1lx.js} +3 -3
  290. package/dist/{rainfallTimeCurve-7uHaSkuE.cjs → rainfallTimeCurve-DaXSW7dI.cjs} +1 -1
  291. package/dist/{rangeLin-BvKd8kEv.js → rangeLin-Bral8Ev4.js} +16 -16
  292. package/dist/{rangeLin-BQeWFL_E.cjs → rangeLin-Cr4NRYc9.cjs} +1 -1
  293. package/dist/{realtimeEvolutionMap-BUnD3JjE.cjs → realtimeEvolutionMap-CCisvZz8.cjs} +1 -1
  294. package/dist/{realtimeEvolutionMap-DZ6yniwl.js → realtimeEvolutionMap-xJwuPatp.js} +2 -2
  295. package/dist/{regionBar-mMaN5NEc.cjs → regionBar-C8myvRfQ.cjs} +1 -1
  296. package/dist/{regionBar-vp5D52Jd.js → regionBar-D1iKcs2-.js} +2 -2
  297. package/dist/{request-CMbwWTDF.js → request-C-rUicMg.js} +5 -5
  298. package/dist/{request-DegEaaCG.cjs → request-Cxljxwu9.cjs} +1 -1
  299. package/dist/{retainer1-Xvdlh-B_.js → retainer1-BvzeaTtU.js} +84 -76
  300. package/dist/retainer1-CC6TO-vq.cjs +1 -0
  301. package/dist/{retainer2-D3a-c_BA.js → retainer2-BeakFCgo.js} +101 -93
  302. package/dist/retainer2-CmdgkB1y.cjs +1 -0
  303. package/dist/{retainerRecordList-BJbPsJ4D.js → retainerRecordList-C7lDliOb.js} +2 -2
  304. package/dist/{retainerRecordList-Rqnoz6_6.cjs → retainerRecordList-C9xVt3Yk.cjs} +1 -1
  305. package/dist/retainerRecordListAPP-BRmG7UnF.cjs +1 -0
  306. package/dist/{retainerRecordListAPP-CNntGyA-.js → retainerRecordListAPP-Cjip5JHS.js} +44 -42
  307. package/dist/{ringTopN-BFKlXqGX.js → ringTopN-BaKY-79s.js} +5 -5
  308. package/dist/{ringTopN-CsouIsk1.cjs → ringTopN-Wfvu1-jE.cjs} +1 -1
  309. package/dist/{riskRegionTable-DttMvHe5.cjs → riskRegionTable-C7ee9wQX.cjs} +1 -1
  310. package/dist/{riskRegionTable-B6k4uM0_.js → riskRegionTable-ovBbwMl2.js} +2 -2
  311. package/dist/{sankey-CAuBQaYh.cjs → sankey-BmWOGLSZ.cjs} +1 -1
  312. package/dist/{sankey-DEQK7uU6.js → sankey-K5BLueeX.js} +7 -7
  313. package/dist/{sausage-xU3hOdxD.js → sausage-DTfIyvVP.js} +1 -1
  314. package/dist/{scd-qaap6hGW.cjs → scd-CCNgUI2Q.cjs} +1 -1
  315. package/dist/{scd-D5TicpCZ.js → scd-CMVoKjwE.js} +2 -2
  316. package/dist/{sectorHelper-DIlWFMnU.js → sectorHelper-Ba-1dnRr.js} +1 -1
  317. package/dist/{sideMenu-D-73DoYb.cjs → sideMenu-BbiMVHw1.cjs} +1 -1
  318. package/dist/{sideMenu-ByyrOOYh.js → sideMenu-L_dYXVgD.js} +2 -2
  319. package/dist/{slopeStability-CTN6Kpva.cjs → slopeStability-BWVxuRRV.cjs} +1 -1
  320. package/dist/{slopeStability-BtgMH3oW.js → slopeStability-WUcwG1vB.js} +22 -22
  321. package/dist/{speedCurve-C5NoQCjK.cjs → speedCurve-QTXe81e1.cjs} +1 -1
  322. package/dist/{speedCurve-CInn7NAC.js → speedCurve-uwPuIJp0.js} +4 -4
  323. package/dist/{stressFilterBar-D_QqOHna.js → stressFilterBar-CnFNp7BR.js} +2 -2
  324. package/dist/{stressFilterBar-Cpfbmllu.cjs → stressFilterBar-DcqWlqsx.cjs} +1 -1
  325. package/dist/{stressTimeCurve-Bp6Cevk1.cjs → stressTimeCurve-C-qycuZ2.cjs} +1 -1
  326. package/dist/{stressTimeCurve-1HXHUj-F.js → stressTimeCurve-C3r3LUBt.js} +3 -3
  327. package/dist/{swiper-D_y4Fj_D.js → swiper-JShIvM0E.js} +2 -2
  328. package/dist/{swiper-B8YZ2VQ2.cjs → swiper-wWrsPbDA.cjs} +1 -1
  329. package/dist/{terminalConfigList-CHbA4y-S.js → terminalConfigList-DVhEvcTB.js} +2 -2
  330. package/dist/{terminalConfigList-B39cEptG.cjs → terminalConfigList-nQqB1W5s.cjs} +1 -1
  331. package/dist/terminalList-BkMuHXZw.cjs +1 -0
  332. package/dist/{terminalList-oJFrGVtT.js → terminalList-wAz6t4Ib.js} +77 -77
  333. package/dist/terminalListAPP-CePxWgcL.cjs +1 -0
  334. package/dist/terminalListAPP-DuLN2OVq.js +1935 -0
  335. package/dist/{textbox-DPoyxB4u.cjs → textbox-BBi-Lg1Z.cjs} +1 -1
  336. package/dist/{textbox-D8nmoGjG.js → textbox-DxXuhIyj.js} +2 -2
  337. package/dist/{timeQueryBar-uUGotoTx.cjs → timeQueryBar-BCTeL04F.cjs} +1 -1
  338. package/dist/{timeQueryBar-DyC0iHq9.js → timeQueryBar-DtngkLJX.js} +1 -1
  339. package/dist/{timeSeries-U91gMDDQ.js → timeSeries-CrdyAYs2.js} +3 -3
  340. package/dist/{timeSeries-BhlqgEOq.cjs → timeSeries-DJZnExBA.cjs} +1 -1
  341. package/dist/{timeSeriesCurve-DOhIS88N.js → timeSeriesCurve-8_exdGlQ.js} +3 -3
  342. package/dist/{timeSeriesCurve-CiRMnZRD.cjs → timeSeriesCurve-8_n0JJyf.cjs} +1 -1
  343. package/dist/{toggleBtn-CuWwHFjD.cjs → toggleBtn-B6dJ5cAt.cjs} +1 -1
  344. package/dist/{toggleBtn-DE35dkxx.js → toggleBtn-DExYfMvi.js} +7 -7
  345. package/dist/{trajectoryConfigPanel-DAbF8oE9.cjs → trajectoryConfigPanel-B2fwoe-I.cjs} +1 -1
  346. package/dist/{trajectoryConfigPanel-Ye7NY6rd.js → trajectoryConfigPanel-Ce1SoMtw.js} +1 -1
  347. package/dist/{trajectoryScatter-Dg99HzM3.cjs → trajectoryScatter-CVLEXMPO.cjs} +1 -1
  348. package/dist/{trajectoryScatter-DL7HUNJI.js → trajectoryScatter-h32teAQ0.js} +6 -6
  349. package/dist/{universalConfigPanel-CkyIDl_x.js → universalConfigPanel-CxbrIc2Z.js} +1 -1
  350. package/dist/{universalConfigPanel-1svBCvD9.cjs → universalConfigPanel-cRzJmx3l.cjs} +1 -1
  351. package/dist/{universalTable--dpnyNO2.js → universalTable-BssAi-QH.js} +2 -2
  352. package/dist/{universalTable-D8w7FQbl.cjs → universalTable-V604pFVr.cjs} +1 -1
  353. package/dist/{universalTransition-Bv7ibBUh.js → universalTransition-tYQs2a4D.js} +2 -2
  354. package/dist/{video-RGIZoUn6.cjs → video-B8JeGpBc.cjs} +1 -1
  355. package/dist/{video-BmMSRRa_.js → video-BjmIbrRS.js} +2 -2
  356. package/dist/{videoMonitor-Bo5T0MT_.cjs → videoMonitor-B6FzkJlS.cjs} +1 -1
  357. package/dist/{videoMonitor-uf6tt2E6.js → videoMonitor-CVkFwlZq.js} +4 -4
  358. package/dist/{vlu-D8l5zE_P.js → vlu-CHHDngO6.js} +2 -2
  359. package/dist/{vlu-DEo_h1qN.cjs → vlu-Dv1vt9r0.cjs} +1 -1
  360. package/dist/{warningOverview-A5AA_vCc.cjs → warningOverview-4M-WX3Ob.cjs} +1 -1
  361. package/dist/{warningOverview-CA0PikjV.js → warningOverview-DDOm2wwB.js} +3 -3
  362. package/dist/{weather-D20MGzuJ.cjs → weather-BGrOQFPM.cjs} +1 -1
  363. package/dist/{weather-DuseqeNF.js → weather-CETxcsJS.js} +2 -2
  364. package/dist/{windLin-D8AUL_dV.js → windLin-B3YXltBn.js} +10 -10
  365. package/dist/{windLin-BU6Q87dE.cjs → windLin-B6uEtUnB.cjs} +1 -1
  366. package/package.json +1 -1
  367. package/dist/BaseComponent-Chnv4fBT.cjs +0 -1
  368. package/dist/bar-C38h_mUA.js +0 -246
  369. package/dist/bar-Cru6WosS.cjs +0 -2
  370. package/dist/bmp-BXaEkkpa.cjs +0 -1
  371. package/dist/bmp-BnSOaFEr.js +0 -226
  372. package/dist/clt-CmPPtp9c.cjs +0 -1
  373. package/dist/clt-D5i_8-pq.js +0 -293
  374. package/dist/cmc-8jH3DGv9.cjs +0 -1
  375. package/dist/cmp-CpmGtNal.cjs +0 -6
  376. package/dist/composite-CbsUYl-u.js +0 -136
  377. package/dist/composite-Cf24lSyN.cjs +0 -1
  378. package/dist/composite-CsFgfxih.js +0 -323
  379. package/dist/composite-DLmzZNIj.cjs +0 -3
  380. package/dist/ctrBtn-OOgL9esv.cjs +0 -1
  381. package/dist/ctrSet-Btg2T9w6.js +0 -247
  382. package/dist/ctrSet-CifyJt05.cjs +0 -1
  383. package/dist/ctrSwitch-C8mwxLPe.cjs +0 -1
  384. package/dist/ele-cmp-icon-CEP91RUe.js +0 -5
  385. package/dist/ele-cmp-icon-yUlU6c_Q.cjs +0 -1
  386. package/dist/gag-1bvAZ5m6.cjs +0 -1
  387. package/dist/gag-D2obj7AF.js +0 -160
  388. package/dist/index-DVqMfQVc.cjs +0 -612
  389. package/dist/index-mAPVa0s4.cjs +0 -11
  390. package/dist/install-BBrAry2m.js +0 -8
  391. package/dist/install-BRjgycz_.cjs +0 -1
  392. package/dist/install-BamnGDPb.cjs +0 -1
  393. package/dist/install-D7znHb-b.js +0 -604
  394. package/dist/install-DWm3j_D3.js +0 -38
  395. package/dist/mix-control-modal-DwxwW65v.cjs +0 -1
  396. package/dist/mix-control-modal-Qg_mzyT_.js +0 -145
  397. package/dist/mixMap-CJzmC0IR.cjs +0 -1
  398. package/dist/mixMap-E36SDnEa.js +0 -258
  399. package/dist/mixModel-BMRxhvWn.cjs +0 -3
  400. package/dist/mixModel-_McJ6OuH.js +0 -251
  401. package/dist/mixPie-CMOkAe9p.js +0 -168
  402. package/dist/mixPie-MAKXeYVp.cjs +0 -2
  403. package/dist/mixiotObjectListApi-BaeBL318.js +0 -82
  404. package/dist/mixiotObjectListApi-D9OyHNQ3.cjs +0 -1
  405. package/dist/no-image-icon-CPA7RKkF.cjs +0 -1
  406. package/dist/no-image-icon-n2ZlEjxS.js +0 -1864
  407. package/dist/objectListAPP-DCwTyqFp.js +0 -1864
  408. package/dist/objectListAPP-Db5beOAM.cjs +0 -1
  409. package/dist/raceBar-CeybrpCB.cjs +0 -4
  410. package/dist/retainer1-CF2Tr7Zt.cjs +0 -1
  411. package/dist/retainer2-BQVUhgcH.cjs +0 -1
  412. package/dist/retainerRecordListAPP-B4IDQK3C.cjs +0 -1
  413. package/dist/staticLine-BC-zj5yZ.cjs +0 -1
  414. package/dist/staticLine-CLqN4lpU.js +0 -362
  415. package/dist/terminalList-Vf-Dbybr.cjs +0 -1
  416. package/dist/terminalListAPP-CdBG8krw.cjs +0 -1
  417. package/dist/terminalListAPP-DWArp2D4.js +0 -1366
@@ -1,3 +1,3 @@
1
- "use strict";var Ke=Object.defineProperty,We=Object.defineProperties;var Xe=Object.getOwnPropertyDescriptors;var Ae=Object.getOwnPropertySymbols;var ye=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable;var _e=(e,i,t)=>i in e?Ke(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,Oe=(e,i)=>{for(var t in i||(i={}))ye.call(i,t)&&_e(e,t,i[t]);if(Ae)for(var t of Ae(i))Je.call(i,t)&&_e(e,t,i[t]);return e},Te=(e,i)=>We(e,Xe(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("vue"),pe=require("./BaseComponent-Chnv4fBT.cjs"),G=require("./index-DVqMfQVc.cjs"),Qe=require("./titleStyle-NSnz6cUg.cjs"),De=require("./ele-lin-icon-Dke_1AmT.cjs"),ge=require("./install-Csxa7Kv7.cjs"),ei=require("./universalTransition-CIN_u2Cu.cjs"),me=require("./installCanvasRenderer-CyhM1Qpl.cjs"),ii=require("./install-C8buXQPI.cjs"),ti=require("./install-CIT6k8Ga.cjs"),ni=require("./install-CltTFs4e.cjs"),ri=require("./install-z6wShIZI.cjs"),si=require("./install-Ch5d8i37.cjs"),Ie=require("./echarts-BB8O2KSA.cjs");var ee=9e15,y=1e9,we="0123456789abcdef",se="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",oe="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",ve={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-ee,maxE:ee,crypto:!1},Re,j,N=!0,le="[DecimalError] ",X=le+"Invalid argument: ",Ue=le+"Precision limit exceeded",Ze=le+"crypto unavailable",Ve="[object Decimal]",U=Math.floor,L=Math.pow,oi=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,ui=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,li=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Be=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,x=1e7,w=7,fi=9007199254740991,ai=se.length-1,Ne=oe.length-1,h={toStringTag:Ve};h.absoluteValue=h.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),m(e)};h.ceil=function(){return m(new this.constructor(this),this.e+1,2)};h.clampedTo=h.clamp=function(e,i){var t,n=this,r=n.constructor;if(e=new r(e),i=new r(i),!e.s||!i.s)return new r(NaN);if(e.gt(i))throw Error(X+i);return t=n.cmp(e),t<0?e:n.cmp(i)>0?i:new r(n)};h.comparedTo=h.cmp=function(e){var i,t,n,r,s=this,o=s.d,u=(e=new s.constructor(e)).d,f=s.s,l=e.s;if(!o||!u)return!f||!l?NaN:f!==l?f:o===u?0:!o^f<0?1:-1;if(!o[0]||!u[0])return o[0]?f:u[0]?-l:0;if(f!==l)return f;if(s.e!==e.e)return s.e>e.e^f<0?1:-1;for(n=o.length,r=u.length,i=0,t=n<r?n:r;i<t;++i)if(o[i]!==u[i])return o[i]>u[i]^f<0?1:-1;return n===r?0:n>r^f<0?1:-1};h.cosine=h.cos=function(){var e,i,t=this,n=t.constructor;return t.d?t.d[0]?(e=n.precision,i=n.rounding,n.precision=e+Math.max(t.e,t.sd())+w,n.rounding=1,t=ci(n,je(n,t)),n.precision=e,n.rounding=i,m(j==2||j==3?t.neg():t,e,i,!0)):new n(1):new n(NaN)};h.cubeRoot=h.cbrt=function(){var e,i,t,n,r,s,o,u,f,l,a=this,c=a.constructor;if(!a.isFinite()||a.isZero())return new c(a);for(N=!1,s=a.s*L(a.s*a,1/3),!s||Math.abs(s)==1/0?(t=F(a.d),e=a.e,(s=(e-t.length+1)%3)&&(t+=s==1||s==-2?"0":"00"),s=L(t,1/3),e=U((e+1)/3)-(e%3==(e<0?-1:2)),s==1/0?t="5e"+e:(t=s.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t),n.s=a.s):n=new c(s.toString()),o=(e=c.precision)+3;;)if(u=n,f=u.times(u).times(u),l=f.plus(a),n=M(l.plus(a).times(u),l.plus(f),o+2,1),F(u.d).slice(0,o)===(t=F(n.d)).slice(0,o))if(t=t.slice(o-3,o+1),t=="9999"||!r&&t=="4999"){if(!r&&(m(u,e+1,0),u.times(u).times(u).eq(a))){n=u;break}o+=4,r=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(m(n,e+1,1),i=!n.times(n).times(n).eq(a));break}return N=!0,m(n,e,c.rounding,i)};h.decimalPlaces=h.dp=function(){var e,i=this.d,t=NaN;if(i){if(e=i.length-1,t=(e-U(this.e/w))*w,e=i[e],e)for(;e%10==0;e/=10)t--;t<0&&(t=0)}return t};h.dividedBy=h.div=function(e){return M(this,new this.constructor(e))};h.dividedToIntegerBy=h.divToInt=function(e){var i=this,t=i.constructor;return m(M(i,new t(e),0,1,1),t.precision,t.rounding)};h.equals=h.eq=function(e){return this.cmp(e)===0};h.floor=function(){return m(new this.constructor(this),this.e+1,3)};h.greaterThan=h.gt=function(e){return this.cmp(e)>0};h.greaterThanOrEqualTo=h.gte=function(e){var i=this.cmp(e);return i==1||i===0};h.hyperbolicCosine=h.cosh=function(){var e,i,t,n,r,s=this,o=s.constructor,u=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return u;t=o.precision,n=o.rounding,o.precision=t+Math.max(s.e,s.sd())+4,o.rounding=1,r=s.d.length,r<32?(e=Math.ceil(r/3),i=(1/ae(4,e)).toString()):(e=16,i="2.3283064365386962890625e-10"),s=ie(o,1,s.times(i),new o(1),!0);for(var f,l=e,a=new o(8);l--;)f=s.times(s),s=u.minus(f.times(a.minus(f.times(a))));return m(s,o.precision=t,o.rounding=n,!0)};h.hyperbolicSine=h.sinh=function(){var e,i,t,n,r=this,s=r.constructor;if(!r.isFinite()||r.isZero())return new s(r);if(i=s.precision,t=s.rounding,s.precision=i+Math.max(r.e,r.sd())+4,s.rounding=1,n=r.d.length,n<3)r=ie(s,2,r,r,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,r=r.times(1/ae(5,e)),r=ie(s,2,r,r,!0);for(var o,u=new s(5),f=new s(16),l=new s(20);e--;)o=r.times(r),r=r.times(u.plus(o.times(f.times(o).plus(l))))}return s.precision=i,s.rounding=t,m(r,i,t,!0)};h.hyperbolicTangent=h.tanh=function(){var e,i,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,i=n.rounding,n.precision=e+7,n.rounding=1,M(t.sinh(),t.cosh(),n.precision=e,n.rounding=i)):new n(t.s)};h.inverseCosine=h.acos=function(){var e=this,i=e.constructor,t=e.abs().cmp(1),n=i.precision,r=i.rounding;return t!==-1?t===0?e.isNeg()?$(i,n,r):new i(0):new i(NaN):e.isZero()?$(i,n+4,r).times(.5):(i.precision=n+6,i.rounding=1,e=new i(1).minus(e).div(e.plus(1)).sqrt().atan(),i.precision=n,i.rounding=r,e.times(2))};h.inverseHyperbolicCosine=h.acosh=function(){var e,i,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(e=n.precision,i=n.rounding,n.precision=e+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,N=!1,t=t.times(t).minus(1).sqrt().plus(t),N=!0,n.precision=e,n.rounding=i,t.ln()):new n(t)};h.inverseHyperbolicSine=h.asinh=function(){var e,i,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(e=n.precision,i=n.rounding,n.precision=e+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,N=!1,t=t.times(t).plus(1).sqrt().plus(t),N=!0,n.precision=e,n.rounding=i,t.ln())};h.inverseHyperbolicTangent=h.atanh=function(){var e,i,t,n,r=this,s=r.constructor;return r.isFinite()?r.e>=0?new s(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(e=s.precision,i=s.rounding,n=r.sd(),Math.max(n,e)<2*-r.e-1?m(new s(r),e,i,!0):(s.precision=t=n-r.e,r=M(r.plus(1),new s(1).minus(r),t+e,1),s.precision=e+4,s.rounding=1,r=r.ln(),s.precision=e,s.rounding=i,r.times(.5))):new s(NaN)};h.inverseSine=h.asin=function(){var e,i,t,n,r=this,s=r.constructor;return r.isZero()?new s(r):(i=r.abs().cmp(1),t=s.precision,n=s.rounding,i!==-1?i===0?(e=$(s,t+4,n).times(.5),e.s=r.s,e):new s(NaN):(s.precision=t+6,s.rounding=1,r=r.div(new s(1).minus(r.times(r)).sqrt().plus(1)).atan(),s.precision=t,s.rounding=n,r.times(2)))};h.inverseTangent=h.atan=function(){var e,i,t,n,r,s,o,u,f,l=this,a=l.constructor,c=a.precision,d=a.rounding;if(l.isFinite()){if(l.isZero())return new a(l);if(l.abs().eq(1)&&c+4<=Ne)return o=$(a,c+4,d).times(.25),o.s=l.s,o}else{if(!l.s)return new a(NaN);if(c+4<=Ne)return o=$(a,c+4,d).times(.5),o.s=l.s,o}for(a.precision=u=c+10,a.rounding=1,t=Math.min(28,u/w+2|0),e=t;e;--e)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(N=!1,i=Math.ceil(u/w),n=1,f=l.times(l),o=new a(l),r=l;e!==-1;)if(r=r.times(f),s=o.minus(r.div(n+=2)),r=r.times(f),o=s.plus(r.div(n+=2)),o.d[i]!==void 0)for(e=i;o.d[e]===s.d[e]&&e--;);return t&&(o=o.times(2<<t-1)),N=!0,m(o,a.precision=c,a.rounding=d,!0)};h.isFinite=function(){return!!this.d};h.isInteger=h.isInt=function(){return!!this.d&&U(this.e/w)>this.d.length-2};h.isNaN=function(){return!this.s};h.isNegative=h.isNeg=function(){return this.s<0};h.isPositive=h.isPos=function(){return this.s>0};h.isZero=function(){return!!this.d&&this.d[0]===0};h.lessThan=h.lt=function(e){return this.cmp(e)<0};h.lessThanOrEqualTo=h.lte=function(e){return this.cmp(e)<1};h.logarithm=h.log=function(e){var i,t,n,r,s,o,u,f,l=this,a=l.constructor,c=a.precision,d=a.rounding,g=5;if(e==null)e=new a(10),i=!0;else{if(e=new a(e),t=e.d,e.s<0||!t||!t[0]||e.eq(1))return new a(NaN);i=e.eq(10)}if(t=l.d,l.s<0||!t||!t[0]||l.eq(1))return new a(t&&!t[0]?-1/0:l.s!=1?NaN:t?0:1/0);if(i)if(t.length>1)s=!0;else{for(r=t[0];r%10===0;)r/=10;s=r!==1}if(N=!1,u=c+g,o=K(l,u),n=i?ue(a,u+10):K(e,u),f=M(o,n,u,1),te(f.d,r=c,d))do if(u+=10,o=K(l,u),n=i?ue(a,u+10):K(e,u),f=M(o,n,u,1),!s){+F(f.d).slice(r+1,r+15)+1==1e14&&(f=m(f,c+1,0));break}while(te(f.d,r+=10,d));return N=!0,m(f,c,d)};h.minus=h.sub=function(e){var i,t,n,r,s,o,u,f,l,a,c,d,g=this,E=g.constructor;if(e=new E(e),!g.d||!e.d)return!g.s||!e.s?e=new E(NaN):g.d?e.s=-e.s:e=new E(e.d||g.s!==e.s?g:NaN),e;if(g.s!=e.s)return e.s=-e.s,g.plus(e);if(l=g.d,d=e.d,u=E.precision,f=E.rounding,!l[0]||!d[0]){if(d[0])e.s=-e.s;else if(l[0])e=new E(g);else return new E(f===3?-0:0);return N?m(e,u,f):e}if(t=U(e.e/w),a=U(g.e/w),l=l.slice(),s=a-t,s){for(c=s<0,c?(i=l,s=-s,o=d.length):(i=d,t=a,o=l.length),n=Math.max(Math.ceil(u/w),o)+2,s>n&&(s=n,i.length=1),i.reverse(),n=s;n--;)i.push(0);i.reverse()}else{for(n=l.length,o=d.length,c=n<o,c&&(o=n),n=0;n<o;n++)if(l[n]!=d[n]){c=l[n]<d[n];break}s=0}for(c&&(i=l,l=d,d=i,e.s=-e.s),o=l.length,n=d.length-o;n>0;--n)l[o++]=0;for(n=d.length;n>s;){if(l[--n]<d[n]){for(r=n;r&&l[--r]===0;)l[r]=x-1;--l[r],l[n]+=x}l[n]-=d[n]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--t;return l[0]?(e.d=l,e.e=fe(l,t),N?m(e,u,f):e):new E(f===3?-0:0)};h.modulo=h.mod=function(e){var i,t=this,n=t.constructor;return e=new n(e),!t.d||!e.s||e.d&&!e.d[0]?new n(NaN):!e.d||t.d&&!t.d[0]?m(new n(t),n.precision,n.rounding):(N=!1,n.modulo==9?(i=M(t,e.abs(),0,3,1),i.s*=e.s):i=M(t,e,0,n.modulo,1),i=i.times(e),N=!0,t.minus(i))};h.naturalExponential=h.exp=function(){return Ce(this)};h.naturalLogarithm=h.ln=function(){return K(this)};h.negated=h.neg=function(){var e=new this.constructor(this);return e.s=-e.s,m(e)};h.plus=h.add=function(e){var i,t,n,r,s,o,u,f,l,a,c=this,d=c.constructor;if(e=new d(e),!c.d||!e.d)return!c.s||!e.s?e=new d(NaN):c.d||(e=new d(e.d||c.s===e.s?c:NaN)),e;if(c.s!=e.s)return e.s=-e.s,c.minus(e);if(l=c.d,a=e.d,u=d.precision,f=d.rounding,!l[0]||!a[0])return a[0]||(e=new d(c)),N?m(e,u,f):e;if(s=U(c.e/w),n=U(e.e/w),l=l.slice(),r=s-n,r){for(r<0?(t=l,r=-r,o=a.length):(t=a,n=s,o=l.length),s=Math.ceil(u/w),o=s>o?s+1:o+1,r>o&&(r=o,t.length=1),t.reverse();r--;)t.push(0);t.reverse()}for(o=l.length,r=a.length,o-r<0&&(r=o,t=a,a=l,l=t),i=0;r;)i=(l[--r]=l[r]+a[r]+i)/x|0,l[r]%=x;for(i&&(l.unshift(i),++n),o=l.length;l[--o]==0;)l.pop();return e.d=l,e.e=fe(l,n),N?m(e,u,f):e};h.precision=h.sd=function(e){var i,t=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(X+e);return t.d?(i=He(t.d),e&&t.e+1>i&&(i=t.e+1)):i=NaN,i};h.round=function(){var e=this,i=e.constructor;return m(new i(e),e.e+1,i.rounding)};h.sine=h.sin=function(){var e,i,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,i=n.rounding,n.precision=e+Math.max(t.e,t.sd())+w,n.rounding=1,t=hi(n,je(n,t)),n.precision=e,n.rounding=i,m(j>2?t.neg():t,e,i,!0)):new n(NaN)};h.squareRoot=h.sqrt=function(){var e,i,t,n,r,s,o=this,u=o.d,f=o.e,l=o.s,a=o.constructor;if(l!==1||!u||!u[0])return new a(!l||l<0&&(!u||u[0])?NaN:u?o:1/0);for(N=!1,l=Math.sqrt(+o),l==0||l==1/0?(i=F(u),(i.length+f)%2==0&&(i+="0"),l=Math.sqrt(i),f=U((f+1)/2)-(f<0||f%2),l==1/0?i="5e"+f:(i=l.toExponential(),i=i.slice(0,i.indexOf("e")+1)+f),n=new a(i)):n=new a(l.toString()),t=(f=a.precision)+3;;)if(s=n,n=s.plus(M(o,s,t+2,1)).times(.5),F(s.d).slice(0,t)===(i=F(n.d)).slice(0,t))if(i=i.slice(t-3,t+1),i=="9999"||!r&&i=="4999"){if(!r&&(m(s,f+1,0),s.times(s).eq(o))){n=s;break}t+=4,r=1}else{(!+i||!+i.slice(1)&&i.charAt(0)=="5")&&(m(n,f+1,1),e=!n.times(n).eq(o));break}return N=!0,m(n,f,a.rounding,e)};h.tangent=h.tan=function(){var e,i,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,i=n.rounding,n.precision=e+10,n.rounding=1,t=t.sin(),t.s=1,t=M(t,new n(1).minus(t.times(t)).sqrt(),e+10,0),n.precision=e,n.rounding=i,m(j==2||j==4?t.neg():t,e,i,!0)):new n(NaN)};h.times=h.mul=function(e){var i,t,n,r,s,o,u,f,l,a=this,c=a.constructor,d=a.d,g=(e=new c(e)).d;if(e.s*=a.s,!d||!d[0]||!g||!g[0])return new c(!e.s||d&&!d[0]&&!g||g&&!g[0]&&!d?NaN:!d||!g?e.s/0:e.s*0);for(t=U(a.e/w)+U(e.e/w),f=d.length,l=g.length,f<l&&(s=d,d=g,g=s,o=f,f=l,l=o),s=[],o=f+l,n=o;n--;)s.push(0);for(n=l;--n>=0;){for(i=0,r=f+n;r>n;)u=s[r]+g[n]*d[r-n-1]+i,s[r--]=u%x|0,i=u/x|0;s[r]=(s[r]+i)%x|0}for(;!s[--o];)s.pop();return i?++t:s.shift(),e.d=s,e.e=fe(s,t),N?m(e,c.precision,c.rounding):e};h.toBinary=function(e,i){return Ee(this,2,e,i)};h.toDecimalPlaces=h.toDP=function(e,i){var t=this,n=t.constructor;return t=new n(t),e===void 0?t:(V(e,0,y),i===void 0?i=n.rounding:V(i,0,8),m(t,e+t.e+1,i))};h.toExponential=function(e,i){var t,n=this,r=n.constructor;return e===void 0?t=z(n,!0):(V(e,0,y),i===void 0?i=r.rounding:V(i,0,8),n=m(new r(n),e+1,i),t=z(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+t:t};h.toFixed=function(e,i){var t,n,r=this,s=r.constructor;return e===void 0?t=z(r):(V(e,0,y),i===void 0?i=s.rounding:V(i,0,8),n=m(new s(r),e+r.e+1,i),t=z(n,!1,e+n.e+1)),r.isNeg()&&!r.isZero()?"-"+t:t};h.toFraction=function(e){var i,t,n,r,s,o,u,f,l,a,c,d,g=this,E=g.d,v=g.constructor;if(!E)return new v(g);if(l=t=new v(1),n=f=new v(0),i=new v(n),s=i.e=He(E)-g.e-1,o=s%w,i.d[0]=L(10,o<0?w+o:o),e==null)e=s>0?i:l;else{if(u=new v(e),!u.isInt()||u.lt(l))throw Error(X+u);e=u.gt(i)?s>0?i:l:u}for(N=!1,u=new v(F(E)),a=v.precision,v.precision=s=E.length*w*2;c=M(u,i,0,1,1),r=t.plus(c.times(n)),r.cmp(e)!=1;)t=n,n=r,r=l,l=f.plus(c.times(r)),f=r,r=i,i=u.minus(c.times(r)),u=r;return r=M(e.minus(t),n,0,1,1),f=f.plus(r.times(l)),t=t.plus(r.times(n)),f.s=l.s=g.s,d=M(l,n,s,1).minus(g).abs().cmp(M(f,t,s,1).minus(g).abs())<1?[l,n]:[f,t],v.precision=a,N=!0,d};h.toHexadecimal=h.toHex=function(e,i){return Ee(this,16,e,i)};h.toNearest=function(e,i){var t=this,n=t.constructor;if(t=new n(t),e==null){if(!t.d)return t;e=new n(1),i=n.rounding}else{if(e=new n(e),i===void 0?i=n.rounding:V(i,0,8),!t.d)return e.s?t:e;if(!e.d)return e.s&&(e.s=t.s),e}return e.d[0]?(N=!1,t=M(t,e,0,i,1).times(e),N=!0,m(t)):(e.s=t.s,t=e),t};h.toNumber=function(){return+this};h.toOctal=function(e,i){return Ee(this,8,e,i)};h.toPower=h.pow=function(e){var i,t,n,r,s,o,u=this,f=u.constructor,l=+(e=new f(e));if(!u.d||!e.d||!u.d[0]||!e.d[0])return new f(L(+u,l));if(u=new f(u),u.eq(1))return u;if(n=f.precision,s=f.rounding,e.eq(1))return m(u,n,s);if(i=U(e.e/w),i>=e.d.length-1&&(t=l<0?-l:l)<=fi)return r=xe(f,u,t,n),e.s<0?new f(1).div(r):m(r,n,s);if(o=u.s,o<0){if(i<e.d.length-1)return new f(NaN);if((e.d[i]&1)==0&&(o=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=o,u}return t=L(+u,l),i=t==0||!isFinite(t)?U(l*(Math.log("0."+F(u.d))/Math.LN10+u.e+1)):new f(t+"").e,i>f.maxE+1||i<f.minE-1?new f(i>0?o/0:0):(N=!1,f.rounding=u.s=1,t=Math.min(12,(i+"").length),r=Ce(e.times(K(u,n+t)),n),r.d&&(r=m(r,n+5,1),te(r.d,n,s)&&(i=n+10,r=m(Ce(e.times(K(u,i+t)),i),i+5,1),+F(r.d).slice(n+1,n+15)+1==1e14&&(r=m(r,n+1,0)))),r.s=o,N=!0,f.rounding=s,m(r,n,s))};h.toPrecision=function(e,i){var t,n=this,r=n.constructor;return e===void 0?t=z(n,n.e<=r.toExpNeg||n.e>=r.toExpPos):(V(e,1,y),i===void 0?i=r.rounding:V(i,0,8),n=m(new r(n),e,i),t=z(n,e<=n.e||n.e<=r.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+t:t};h.toSignificantDigits=h.toSD=function(e,i){var t=this,n=t.constructor;return e===void 0?(e=n.precision,i=n.rounding):(V(e,1,y),i===void 0?i=n.rounding:V(i,0,8)),m(new n(t),e,i)};h.toString=function(){var e=this,i=e.constructor,t=z(e,e.e<=i.toExpNeg||e.e>=i.toExpPos);return e.isNeg()&&!e.isZero()?"-"+t:t};h.truncated=h.trunc=function(){return m(new this.constructor(this),this.e+1,1)};h.valueOf=h.toJSON=function(){var e=this,i=e.constructor,t=z(e,e.e<=i.toExpNeg||e.e>=i.toExpPos);return e.isNeg()?"-"+t:t};function F(e){var i,t,n,r=e.length-1,s="",o=e[0];if(r>0){for(s+=o,i=1;i<r;i++)n=e[i]+"",t=w-n.length,t&&(s+=Y(t)),s+=n;o=e[i],n=o+"",t=w-n.length,t&&(s+=Y(t))}else if(o===0)return"0";for(;o%10===0;)o/=10;return s+o}function V(e,i,t){if(e!==~~e||e<i||e>t)throw Error(X+e)}function te(e,i,t,n){var r,s,o,u;for(s=e[0];s>=10;s/=10)--i;return--i<0?(i+=w,r=0):(r=Math.ceil((i+1)/w),i%=w),s=L(10,w-i),u=e[r]%s|0,n==null?i<3?(i==0?u=u/100|0:i==1&&(u=u/10|0),o=t<4&&u==99999||t>3&&u==49999||u==5e4||u==0):o=(t<4&&u+1==s||t>3&&u+1==s/2)&&(e[r+1]/s/100|0)==L(10,i-2)-1||(u==s/2||u==0)&&(e[r+1]/s/100|0)==0:i<4?(i==0?u=u/1e3|0:i==1?u=u/100|0:i==2&&(u=u/10|0),o=(n||t<4)&&u==9999||!n&&t>3&&u==4999):o=((n||t<4)&&u+1==s||!n&&t>3&&u+1==s/2)&&(e[r+1]/s/1e3|0)==L(10,i-3)-1,o}function ne(e,i,t){for(var n,r=[0],s,o=0,u=e.length;o<u;){for(s=r.length;s--;)r[s]*=i;for(r[0]+=we.indexOf(e.charAt(o++)),n=0;n<r.length;n++)r[n]>t-1&&(r[n+1]===void 0&&(r[n+1]=0),r[n+1]+=r[n]/t|0,r[n]%=t)}return r.reverse()}function ci(e,i){var t,n,r;if(i.isZero())return i;n=i.d.length,n<32?(t=Math.ceil(n/3),r=(1/ae(4,t)).toString()):(t=16,r="2.3283064365386962890625e-10"),e.precision+=t,i=ie(e,1,i.times(r),new e(1));for(var s=t;s--;){var o=i.times(i);i=o.times(o).minus(o).times(8).plus(1)}return e.precision-=t,i}var M=(function(){function e(n,r,s){var o,u=0,f=n.length;for(n=n.slice();f--;)o=n[f]*r+u,n[f]=o%s|0,u=o/s|0;return u&&n.unshift(u),n}function i(n,r,s,o){var u,f;if(s!=o)f=s>o?1:-1;else for(u=f=0;u<s;u++)if(n[u]!=r[u]){f=n[u]>r[u]?1:-1;break}return f}function t(n,r,s,o){for(var u=0;s--;)n[s]-=u,u=n[s]<r[s]?1:0,n[s]=u*o+n[s]-r[s];for(;!n[0]&&n.length>1;)n.shift()}return function(n,r,s,o,u,f){var l,a,c,d,g,E,v,P,b,Z,p,C,_,q,B,O,k,R,A,H,I=n.constructor,J=n.s==r.s?1:-1,T=n.d,S=r.d;if(!T||!T[0]||!S||!S[0])return new I(!n.s||!r.s||(T?S&&T[0]==S[0]:!S)?NaN:T&&T[0]==0||!S?J*0:J/0);for(f?(g=1,a=n.e-r.e):(f=x,g=w,a=U(n.e/g)-U(r.e/g)),A=S.length,k=T.length,b=new I(J),Z=b.d=[],c=0;S[c]==(T[c]||0);c++);if(S[c]>(T[c]||0)&&a--,s==null?(q=s=I.precision,o=I.rounding):u?q=s+(n.e-r.e)+1:q=s,q<0)Z.push(1),E=!0;else{if(q=q/g+2|0,c=0,A==1){for(d=0,S=S[0],q++;(c<k||d)&&q--;c++)B=d*f+(T[c]||0),Z[c]=B/S|0,d=B%S|0;E=d||c<k}else{for(d=f/(S[0]+1)|0,d>1&&(S=e(S,d,f),T=e(T,d,f),A=S.length,k=T.length),O=A,p=T.slice(0,A),C=p.length;C<A;)p[C++]=0;H=S.slice(),H.unshift(0),R=S[0],S[1]>=f/2&&++R;do d=0,l=i(S,p,A,C),l<0?(_=p[0],A!=C&&(_=_*f+(p[1]||0)),d=_/R|0,d>1?(d>=f&&(d=f-1),v=e(S,d,f),P=v.length,C=p.length,l=i(v,p,P,C),l==1&&(d--,t(v,A<P?H:S,P,f))):(d==0&&(l=d=1),v=S.slice()),P=v.length,P<C&&v.unshift(0),t(p,v,C,f),l==-1&&(C=p.length,l=i(S,p,A,C),l<1&&(d++,t(p,A<C?H:S,C,f))),C=p.length):l===0&&(d++,p=[0]),Z[c++]=d,l&&p[0]?p[C++]=T[O]||0:(p=[T[O]],C=1);while((O++<k||p[0]!==void 0)&&q--);E=p[0]!==void 0}Z[0]||Z.shift()}if(g==1)b.e=a,Re=E;else{for(c=1,d=Z[0];d>=10;d/=10)c++;b.e=c+a*g-1,m(b,u?s+b.e+1:s,o,E)}return b}})();function m(e,i,t,n){var r,s,o,u,f,l,a,c,d,g=e.constructor;e:if(i!=null){if(c=e.d,!c)return e;for(r=1,u=c[0];u>=10;u/=10)r++;if(s=i-r,s<0)s+=w,o=i,a=c[d=0],f=a/L(10,r-o-1)%10|0;else if(d=Math.ceil((s+1)/w),u=c.length,d>=u)if(n){for(;u++<=d;)c.push(0);a=f=0,r=1,s%=w,o=s-w+1}else break e;else{for(a=u=c[d],r=1;u>=10;u/=10)r++;s%=w,o=s-w+r,f=o<0?0:a/L(10,r-o-1)%10|0}if(n=n||i<0||c[d+1]!==void 0||(o<0?a:a%L(10,r-o-1)),l=t<4?(f||n)&&(t==0||t==(e.s<0?3:2)):f>5||f==5&&(t==4||n||t==6&&(s>0?o>0?a/L(10,r-o):0:c[d-1])%10&1||t==(e.s<0?8:7)),i<1||!c[0])return c.length=0,l?(i-=e.e+1,c[0]=L(10,(w-i%w)%w),e.e=-i||0):c[0]=e.e=0,e;if(s==0?(c.length=d,u=1,d--):(c.length=d+1,u=L(10,w-s),c[d]=o>0?(a/L(10,r-o)%L(10,o)|0)*u:0),l)for(;;)if(d==0){for(s=1,o=c[0];o>=10;o/=10)s++;for(o=c[0]+=u,u=1;o>=10;o/=10)u++;s!=u&&(e.e++,c[0]==x&&(c[0]=1));break}else{if(c[d]+=u,c[d]!=x)break;c[d--]=0,u=1}for(s=c.length;c[--s]===0;)c.pop()}return N&&(e.e>g.maxE?(e.d=null,e.e=NaN):e.e<g.minE&&(e.e=0,e.d=[0])),e}function z(e,i,t){if(!e.isFinite())return ze(e);var n,r=e.e,s=F(e.d),o=s.length;return i?(t&&(n=t-o)>0?s=s.charAt(0)+"."+s.slice(1)+Y(n):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(e.e<0?"e":"e+")+e.e):r<0?(s="0."+Y(-r-1)+s,t&&(n=t-o)>0&&(s+=Y(n))):r>=o?(s+=Y(r+1-o),t&&(n=t-r-1)>0&&(s=s+"."+Y(n))):((n=r+1)<o&&(s=s.slice(0,n)+"."+s.slice(n)),t&&(n=t-o)>0&&(r+1===o&&(s+="."),s+=Y(n))),s}function fe(e,i){var t=e[0];for(i*=w;t>=10;t/=10)i++;return i}function ue(e,i,t){if(i>ai)throw N=!0,t&&(e.precision=t),Error(Ue);return m(new e(se),i,1,!0)}function $(e,i,t){if(i>Ne)throw Error(Ue);return m(new e(oe),i,t,!0)}function He(e){var i=e.length-1,t=i*w+1;if(i=e[i],i){for(;i%10==0;i/=10)t--;for(i=e[0];i>=10;i/=10)t++}return t}function Y(e){for(var i="";e--;)i+="0";return i}function xe(e,i,t,n){var r,s=new e(1),o=Math.ceil(n/w+4);for(N=!1;;){if(t%2&&(s=s.times(i),Pe(s.d,o)&&(r=!0)),t=U(t/2),t===0){t=s.d.length-1,r&&s.d[t]===0&&++s.d[t];break}i=i.times(i),Pe(i.d,o)}return N=!0,s}function Le(e){return e.d[e.d.length-1]&1}function $e(e,i,t){for(var n,r,s=new e(i[0]),o=0;++o<i.length;){if(r=new e(i[o]),!r.s){s=r;break}n=s.cmp(r),(n===t||n===0&&s.s===t)&&(s=r)}return s}function Ce(e,i){var t,n,r,s,o,u,f,l=0,a=0,c=0,d=e.constructor,g=d.rounding,E=d.precision;if(!e.d||!e.d[0]||e.e>17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(i==null?(N=!1,f=E):f=i,u=new d(.03125);e.e>-2;)e=e.times(u),c+=5;for(n=Math.log(L(2,c))/Math.LN10*2+5|0,f+=n,t=s=o=new d(1),d.precision=f;;){if(s=m(s.times(e),f,1),t=t.times(++a),u=o.plus(M(s,t,f,1)),F(u.d).slice(0,f)===F(o.d).slice(0,f)){for(r=c;r--;)o=m(o.times(o),f,1);if(i==null)if(l<3&&te(o.d,f-n,g,l))d.precision=f+=10,t=s=u=new d(1),a=0,l++;else return m(o,d.precision=E,g,N=!0);else return d.precision=E,o}o=u}}function K(e,i){var t,n,r,s,o,u,f,l,a,c,d,g=1,E=10,v=e,P=v.d,b=v.constructor,Z=b.rounding,p=b.precision;if(v.s<0||!P||!P[0]||!v.e&&P[0]==1&&P.length==1)return new b(P&&!P[0]?-1/0:v.s!=1?NaN:P?0:v);if(i==null?(N=!1,a=p):a=i,b.precision=a+=E,t=F(P),n=t.charAt(0),Math.abs(s=v.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)v=v.times(e),t=F(v.d),n=t.charAt(0),g++;s=v.e,n>1?(v=new b("0."+t),s++):v=new b(n+"."+t.slice(1))}else return l=ue(b,a+2,p).times(s+""),v=K(new b(n+"."+t.slice(1)),a-E).plus(l),b.precision=p,i==null?m(v,p,Z,N=!0):v;for(c=v,f=o=v=M(v.minus(1),v.plus(1),a,1),d=m(v.times(v),a,1),r=3;;){if(o=m(o.times(d),a,1),l=f.plus(M(o,new b(r),a,1)),F(l.d).slice(0,a)===F(f.d).slice(0,a))if(f=f.times(2),s!==0&&(f=f.plus(ue(b,a+2,p).times(s+""))),f=M(f,new b(g),a,1),i==null)if(te(f.d,a-E,Z,u))b.precision=a+=E,l=o=v=M(c.minus(1),c.plus(1),a,1),d=m(v.times(v),a,1),r=u=1;else return m(f,b.precision=p,Z,N=!0);else return b.precision=p,f;f=l,r+=2}}function ze(e){return String(e.s*e.s/0)}function re(e,i){var t,n,r;for((t=i.indexOf("."))>-1&&(i=i.replace(".","")),(n=i.search(/e/i))>0?(t<0&&(t=n),t+=+i.slice(n+1),i=i.substring(0,n)):t<0&&(t=i.length),n=0;i.charCodeAt(n)===48;n++);for(r=i.length;i.charCodeAt(r-1)===48;--r);if(i=i.slice(n,r),i){if(r-=n,e.e=t=t-n-1,e.d=[],n=(t+1)%w,t<0&&(n+=w),n<r){for(n&&e.d.push(+i.slice(0,n)),r-=w;n<r;)e.d.push(+i.slice(n,n+=w));i=i.slice(n),n=w-i.length}else n-=r;for(;n--;)i+="0";e.d.push(+i),N&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function di(e,i){var t,n,r,s,o,u,f,l,a;if(i.indexOf("_")>-1){if(i=i.replace(/(\d)_(?=\d)/g,"$1"),Be.test(i))return re(e,i)}else if(i==="Infinity"||i==="NaN")return+i||(e.s=NaN),e.e=NaN,e.d=null,e;if(ui.test(i))t=16,i=i.toLowerCase();else if(oi.test(i))t=2;else if(li.test(i))t=8;else throw Error(X+i);for(s=i.search(/p/i),s>0?(f=+i.slice(s+1),i=i.substring(2,s)):i=i.slice(2),s=i.indexOf("."),o=s>=0,n=e.constructor,o&&(i=i.replace(".",""),u=i.length,s=u-s,r=xe(n,new n(t),s,s*2)),l=ne(i,t,x),a=l.length-1,s=a;l[s]===0;--s)l.pop();return s<0?new n(e.s*0):(e.e=fe(l,a),e.d=l,N=!1,o&&(e=M(e,r,u*4)),f&&(e=e.times(Math.abs(f)<54?L(2,f):W.pow(2,f))),N=!0,e)}function hi(e,i){var t,n=i.d.length;if(n<3)return i.isZero()?i:ie(e,2,i,i);t=1.4*Math.sqrt(n),t=t>16?16:t|0,i=i.times(1/ae(5,t)),i=ie(e,2,i,i);for(var r,s=new e(5),o=new e(16),u=new e(20);t--;)r=i.times(i),i=i.times(s.plus(r.times(o.times(r).minus(u))));return i}function ie(e,i,t,n,r){var s,o,u,f,l=e.precision,a=Math.ceil(l/w);for(N=!1,f=t.times(t),u=new e(n);;){if(o=M(u.times(f),new e(i++*i++),l,1),u=r?n.plus(o):n.minus(o),n=M(o.times(f),new e(i++*i++),l,1),o=u.plus(n),o.d[a]!==void 0){for(s=a;o.d[s]===u.d[s]&&s--;);if(s==-1)break}s=u,u=n,n=o,o=s}return N=!0,o.d.length=a+1,o}function ae(e,i){for(var t=e;--i;)t*=e;return t}function je(e,i){var t,n=i.s<0,r=$(e,e.precision,1),s=r.times(.5);if(i=i.abs(),i.lte(s))return j=n?4:1,i;if(t=i.divToInt(r),t.isZero())j=n?3:2;else{if(i=i.minus(t.times(r)),i.lte(s))return j=Le(t)?n?2:3:n?4:1,i;j=Le(t)?n?1:4:n?3:2}return i.minus(r).abs()}function Ee(e,i,t,n){var r,s,o,u,f,l,a,c,d,g=e.constructor,E=t!==void 0;if(E?(V(t,1,y),n===void 0?n=g.rounding:V(n,0,8)):(t=g.precision,n=g.rounding),!e.isFinite())a=ze(e);else{for(a=z(e),o=a.indexOf("."),E?(r=2,i==16?t=t*4-3:i==8&&(t=t*3-2)):r=i,o>=0&&(a=a.replace(".",""),d=new g(1),d.e=a.length-o,d.d=ne(z(d),10,r),d.e=d.d.length),c=ne(a,10,r),s=f=c.length;c[--f]==0;)c.pop();if(!c[0])a=E?"0p+0":"0";else{if(o<0?s--:(e=new g(e),e.d=c,e.e=s,e=M(e,d,t,n,0,r),c=e.d,s=e.e,l=Re),o=c[t],u=r/2,l=l||c[t+1]!==void 0,l=n<4?(o!==void 0||l)&&(n===0||n===(e.s<0?3:2)):o>u||o===u&&(n===4||l||n===6&&c[t-1]&1||n===(e.s<0?8:7)),c.length=t,l)for(;++c[--t]>r-1;)c[t]=0,t||(++s,c.unshift(1));for(f=c.length;!c[f-1];--f);for(o=0,a="";o<f;o++)a+=we.charAt(c[o]);if(E){if(f>1)if(i==16||i==8){for(o=i==16?4:3,--f;f%o;f++)a+="0";for(c=ne(a,r,i),f=c.length;!c[f-1];--f);for(o=1,a="1.";o<f;o++)a+=we.charAt(c[o])}else a=a.charAt(0)+"."+a.slice(1);a=a+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)a="0"+a;a="0."+a}else if(++s>f)for(s-=f;s--;)a+="0";else s<f&&(a=a.slice(0,s)+"."+a.slice(s))}a=(i==16?"0x":i==2?"0b":i==8?"0o":"")+a}return e.s<0?"-"+a:a}function Pe(e,i){if(e.length>i)return e.length=i,!0}function pi(e){return new this(e).abs()}function gi(e){return new this(e).acos()}function mi(e){return new this(e).acosh()}function wi(e,i){return new this(e).plus(i)}function vi(e){return new this(e).asin()}function Ni(e){return new this(e).asinh()}function Ci(e){return new this(e).atan()}function Ei(e){return new this(e).atanh()}function Si(e,i){e=new this(e),i=new this(i);var t,n=this.precision,r=this.rounding,s=n+4;return!e.s||!i.s?t=new this(NaN):!e.d&&!i.d?(t=$(this,s,1).times(i.s>0?.25:.75),t.s=e.s):!i.d||e.isZero()?(t=i.s<0?$(this,n,r):new this(0),t.s=e.s):!e.d||i.isZero()?(t=$(this,s,1).times(.5),t.s=e.s):i.s<0?(this.precision=s,this.rounding=1,t=this.atan(M(e,i,s,1)),i=$(this,s,1),this.precision=n,this.rounding=r,t=e.s<0?t.minus(i):t.plus(i)):t=this.atan(M(e,i,s,1)),t}function ki(e){return new this(e).cbrt()}function Mi(e){return m(e=new this(e),e.e+1,2)}function bi(e,i,t){return new this(e).clamp(i,t)}function qi(e){if(!e||typeof e!="object")throw Error(le+"Object expected");var i,t,n,r=e.defaults===!0,s=["precision",1,y,"rounding",0,8,"toExpNeg",-ee,0,"toExpPos",0,ee,"maxE",0,ee,"minE",-ee,0,"modulo",0,9];for(i=0;i<s.length;i+=3)if(t=s[i],r&&(this[t]=ve[t]),(n=e[t])!==void 0)if(U(n)===n&&n>=s[i+1]&&n<=s[i+2])this[t]=n;else throw Error(X+t+": "+n);if(t="crypto",r&&(this[t]=ve[t]),(n=e[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(Ze);else this[t]=!1;else throw Error(X+t+": "+n);return this}function Ai(e){return new this(e).cos()}function _i(e){return new this(e).cosh()}function Ge(e){var i,t,n;function r(s){var o,u,f,l=this;if(!(l instanceof r))return new r(s);if(l.constructor=r,Fe(s)){l.s=s.s,N?!s.d||s.e>r.maxE?(l.e=NaN,l.d=null):s.e<r.minE?(l.e=0,l.d=[0]):(l.e=s.e,l.d=s.d.slice()):(l.e=s.e,l.d=s.d?s.d.slice():s.d);return}if(f=typeof s,f==="number"){if(s===0){l.s=1/s<0?-1:1,l.e=0,l.d=[0];return}if(s<0?(s=-s,l.s=-1):l.s=1,s===~~s&&s<1e7){for(o=0,u=s;u>=10;u/=10)o++;N?o>r.maxE?(l.e=NaN,l.d=null):o<r.minE?(l.e=0,l.d=[0]):(l.e=o,l.d=[s]):(l.e=o,l.d=[s]);return}if(s*0!==0){s||(l.s=NaN),l.e=NaN,l.d=null;return}return re(l,s.toString())}if(f==="string")return(u=s.charCodeAt(0))===45?(s=s.slice(1),l.s=-1):(u===43&&(s=s.slice(1)),l.s=1),Be.test(s)?re(l,s):di(l,s);if(f==="bigint")return s<0?(s=-s,l.s=-1):l.s=1,re(l,s.toString());throw Error(X+s)}if(r.prototype=h,r.ROUND_UP=0,r.ROUND_DOWN=1,r.ROUND_CEIL=2,r.ROUND_FLOOR=3,r.ROUND_HALF_UP=4,r.ROUND_HALF_DOWN=5,r.ROUND_HALF_EVEN=6,r.ROUND_HALF_CEIL=7,r.ROUND_HALF_FLOOR=8,r.EUCLID=9,r.config=r.set=qi,r.clone=Ge,r.isDecimal=Fe,r.abs=pi,r.acos=gi,r.acosh=mi,r.add=wi,r.asin=vi,r.asinh=Ni,r.atan=Ci,r.atanh=Ei,r.atan2=Si,r.cbrt=ki,r.ceil=Mi,r.clamp=bi,r.cos=Ai,r.cosh=_i,r.div=Oi,r.exp=Ti,r.floor=Di,r.hypot=Ii,r.ln=Li,r.log=Pi,r.log10=Ri,r.log2=Fi,r.max=Ui,r.min=Zi,r.mod=Vi,r.mul=Bi,r.pow=Hi,r.random=xi,r.round=$i,r.sign=zi,r.sin=ji,r.sinh=Gi,r.sqrt=Yi,r.sub=Ki,r.sum=Wi,r.tan=Xi,r.tanh=yi,r.trunc=Ji,e===void 0&&(e={}),e&&e.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],i=0;i<n.length;)e.hasOwnProperty(t=n[i++])||(e[t]=this[t]);return r.config(e),r}function Oi(e,i){return new this(e).div(i)}function Ti(e){return new this(e).exp()}function Di(e){return m(e=new this(e),e.e+1,3)}function Ii(){var e,i,t=new this(0);for(N=!1,e=0;e<arguments.length;)if(i=new this(arguments[e++]),i.d)t.d&&(t=t.plus(i.times(i)));else{if(i.s)return N=!0,new this(1/0);t=i}return N=!0,t.sqrt()}function Fe(e){return e instanceof W||e&&e.toStringTag===Ve||!1}function Li(e){return new this(e).ln()}function Pi(e,i){return new this(e).log(i)}function Fi(e){return new this(e).log(2)}function Ri(e){return new this(e).log(10)}function Ui(){return $e(this,arguments,-1)}function Zi(){return $e(this,arguments,1)}function Vi(e,i){return new this(e).mod(i)}function Bi(e,i){return new this(e).mul(i)}function Hi(e,i){return new this(e).pow(i)}function xi(e){var i,t,n,r,s=0,o=new this(1),u=[];if(e===void 0?e=this.precision:V(e,1,y),n=Math.ceil(e/w),this.crypto)if(crypto.getRandomValues)for(i=crypto.getRandomValues(new Uint32Array(n));s<n;)r=i[s],r>=429e7?i[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=r%1e7;else if(crypto.randomBytes){for(i=crypto.randomBytes(n*=4);s<n;)r=i[s]+(i[s+1]<<8)+(i[s+2]<<16)+((i[s+3]&127)<<24),r>=214e7?crypto.randomBytes(4).copy(i,s):(u.push(r%1e7),s+=4);s=n/4}else throw Error(Ze);else for(;s<n;)u[s++]=Math.random()*1e7|0;for(n=u[--s],e%=w,n&&e&&(r=L(10,w-e),u[s]=(n/r|0)*r);u[s]===0;s--)u.pop();if(s<0)t=0,u=[0];else{for(t=-1;u[0]===0;t-=w)u.shift();for(n=1,r=u[0];r>=10;r/=10)n++;n<w&&(t-=w-n)}return o.e=t,o.d=u,o}function $i(e){return m(e=new this(e),e.e+1,this.rounding)}function zi(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function ji(e){return new this(e).sin()}function Gi(e){return new this(e).sinh()}function Yi(e){return new this(e).sqrt()}function Ki(e,i){return new this(e).sub(i)}function Wi(){var e=0,i=arguments,t=new this(i[e]);for(N=!1;t.s&&++e<i.length;)t=t.plus(i[e]);return N=!0,m(t,this.precision,this.rounding)}function Xi(e){return new this(e).tan()}function yi(e){return new this(e).tanh()}function Ji(e){return m(e=new this(e),e.e+1,1)}h[Symbol.for("nodejs.util.inspect.custom")]=h.toString;h[Symbol.toStringTag]="Decimal";var W=h.constructor=Ge(ve);se=new W(se);oe=new W(oe);const Qi={DEFAULT_ICON:De.DEFAULT_ICON,ACTIVE_ICON:De.ACTIVE_ICON,NAME_CN:"K线图",NAME_EN:"Candlestick",ORDER:3,PLATFORM:["pc","screen","mobile"]},et={titleColor:"#111",bgColor:"#fff",textColor:"#111",upColor:"#c23531",downColor:"#314656",barColor:"#314656",radiusSize:8,textSize:12,top:30,bottom:40,left:40,right:30,points:100,isSmooth:!1,isHideTitle:!1},Ye=[{name:"参数一",项目编号:"",object_id:""}],it=["name","项目编号","object_id","source"],tt=["index","increment","balance","risk"],nt=1,rt={useAlias:!1,null:{type:"0",value:""},source:"index"},st={DEFAULT:Qi,OPTIONS:et,DATA:Ye,PARAMS:it,SOURCE:tt,ITEMS:nt,COMMON:rt},ot=D.defineComponent(Te(Oe({},st),{__name:"kds",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(e){me.use([ge.install$1,me.install,ii.install,ti.install,ni.install,ge.install$2,ri.install,ge.install,si.install,me.install$1,ei.installUniversalTransition]);const i=D.ref(D.inject("session",null)),{proxy:t}=D.getCurrentInstance(),n="kds_"+Math.random().toString(16).substring(4,12);let r=null,s=null;const o=e;let u={data:[],dates:[],volumes:[]};class f extends pe.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),upColor:this.getOptionValue("upColor","#c23531"),downColor:this.getOptionValue("downColor","#314656"),barColor:this.getOptionValue("barColor","#314656"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",100)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:Ye,D.nextTick(()=>{let C=document.querySelector("#"+n);E({num:a.value.points,max:200,min:0,mode:o.mode}),C&&(r||(r=Ie.init(C),s=G.elementResizeDetectorMaker({strategy:"scroll"}),s.listenTo(C,()=>r==null?void 0:r.resize())),r.setOption(d(),!0))})}onPreview(){b.preview()}cleanup(){s&&s.uninstall(document.querySelector("#"+n)),r&&r.clear(),r&&Ie.dispose(r),r=null,b.unregister()}}const l=new f(o,"kds");l.setupLifecycle();const a=l.getStyle(),c=D.computed(()=>Qe.generateTitleStyle(o.conf.options)),d=()=>{var C,_,q,B,O,k,R,A,H,I,J,T,S,Q,Se,ke,Me,be,qe;const{conf:p}=o;return{animation:!1,color:[a.value.upColor,a.value.downColor],tooltip:{textStyle:{fontSize:12,color:a.value.textColor},position:function(ce,lt,ft,at,de){const he={top:10};return de.viewSize[0]-ce[0]<=de.contentSize[0]+20?he.right=de.viewSize[0]-ce[0]+30:he.left=ce[0]+30,he}},axisPointer:{link:[{xAxisIndex:[0,1]}]},dataZoom:[{type:"slider",xAxisIndex:[0,1],height:12,bottom:12},{type:"inside",xAxisIndex:[0,1],height:12,bottom:12}],xAxis:[{type:"category",data:u.dates,boundaryGap:!0,axisPointer:{show:!0},axisLabel:{color:a.value.textColor}},{type:"category",gridIndex:1,data:u.dates,boundaryGap:!0,splitLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisPointer:{type:"shadow",label:{show:!1},triggerTooltip:!0,handle:{show:!0,margin:16,color:"#B80C00",size:24}}}],yAxis:[{scale:!0,splitNumber:2,axisLine:{lineStyle:{color:a.value.textColor}},axisLabel:{formatter:`{value}
1
+ "use strict";var Ke=Object.defineProperty,We=Object.defineProperties;var Xe=Object.getOwnPropertyDescriptors;var Ae=Object.getOwnPropertySymbols;var ye=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable;var _e=(e,i,t)=>i in e?Ke(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,Oe=(e,i)=>{for(var t in i||(i={}))ye.call(i,t)&&_e(e,t,i[t]);if(Ae)for(var t of Ae(i))Je.call(i,t)&&_e(e,t,i[t]);return e},Te=(e,i)=>We(e,Xe(i));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("vue"),pe=require("./BaseComponent-CaCkjmmb.cjs"),G=require("./index-BzWbqJIl.cjs"),Qe=require("./titleStyle-NSnz6cUg.cjs"),De=require("./ele-lin-icon-Dke_1AmT.cjs"),ge=require("./install-Csxa7Kv7.cjs"),ei=require("./universalTransition-CIN_u2Cu.cjs"),me=require("./installCanvasRenderer-CyhM1Qpl.cjs"),ii=require("./install-C8buXQPI.cjs"),ti=require("./install-CIT6k8Ga.cjs"),ni=require("./install-CltTFs4e.cjs"),ri=require("./install-z6wShIZI.cjs"),si=require("./install-Ch5d8i37.cjs"),Ie=require("./echarts-BB8O2KSA.cjs");var ee=9e15,y=1e9,we="0123456789abcdef",se="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",oe="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",ve={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-ee,maxE:ee,crypto:!1},Re,j,N=!0,le="[DecimalError] ",X=le+"Invalid argument: ",Ue=le+"Precision limit exceeded",Ze=le+"crypto unavailable",Ve="[object Decimal]",U=Math.floor,L=Math.pow,oi=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,ui=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,li=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Be=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,x=1e7,w=7,fi=9007199254740991,ai=se.length-1,Ne=oe.length-1,h={toStringTag:Ve};h.absoluteValue=h.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),m(e)};h.ceil=function(){return m(new this.constructor(this),this.e+1,2)};h.clampedTo=h.clamp=function(e,i){var t,n=this,r=n.constructor;if(e=new r(e),i=new r(i),!e.s||!i.s)return new r(NaN);if(e.gt(i))throw Error(X+i);return t=n.cmp(e),t<0?e:n.cmp(i)>0?i:new r(n)};h.comparedTo=h.cmp=function(e){var i,t,n,r,s=this,o=s.d,u=(e=new s.constructor(e)).d,f=s.s,l=e.s;if(!o||!u)return!f||!l?NaN:f!==l?f:o===u?0:!o^f<0?1:-1;if(!o[0]||!u[0])return o[0]?f:u[0]?-l:0;if(f!==l)return f;if(s.e!==e.e)return s.e>e.e^f<0?1:-1;for(n=o.length,r=u.length,i=0,t=n<r?n:r;i<t;++i)if(o[i]!==u[i])return o[i]>u[i]^f<0?1:-1;return n===r?0:n>r^f<0?1:-1};h.cosine=h.cos=function(){var e,i,t=this,n=t.constructor;return t.d?t.d[0]?(e=n.precision,i=n.rounding,n.precision=e+Math.max(t.e,t.sd())+w,n.rounding=1,t=ci(n,je(n,t)),n.precision=e,n.rounding=i,m(j==2||j==3?t.neg():t,e,i,!0)):new n(1):new n(NaN)};h.cubeRoot=h.cbrt=function(){var e,i,t,n,r,s,o,u,f,l,a=this,c=a.constructor;if(!a.isFinite()||a.isZero())return new c(a);for(N=!1,s=a.s*L(a.s*a,1/3),!s||Math.abs(s)==1/0?(t=F(a.d),e=a.e,(s=(e-t.length+1)%3)&&(t+=s==1||s==-2?"0":"00"),s=L(t,1/3),e=U((e+1)/3)-(e%3==(e<0?-1:2)),s==1/0?t="5e"+e:(t=s.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new c(t),n.s=a.s):n=new c(s.toString()),o=(e=c.precision)+3;;)if(u=n,f=u.times(u).times(u),l=f.plus(a),n=M(l.plus(a).times(u),l.plus(f),o+2,1),F(u.d).slice(0,o)===(t=F(n.d)).slice(0,o))if(t=t.slice(o-3,o+1),t=="9999"||!r&&t=="4999"){if(!r&&(m(u,e+1,0),u.times(u).times(u).eq(a))){n=u;break}o+=4,r=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(m(n,e+1,1),i=!n.times(n).times(n).eq(a));break}return N=!0,m(n,e,c.rounding,i)};h.decimalPlaces=h.dp=function(){var e,i=this.d,t=NaN;if(i){if(e=i.length-1,t=(e-U(this.e/w))*w,e=i[e],e)for(;e%10==0;e/=10)t--;t<0&&(t=0)}return t};h.dividedBy=h.div=function(e){return M(this,new this.constructor(e))};h.dividedToIntegerBy=h.divToInt=function(e){var i=this,t=i.constructor;return m(M(i,new t(e),0,1,1),t.precision,t.rounding)};h.equals=h.eq=function(e){return this.cmp(e)===0};h.floor=function(){return m(new this.constructor(this),this.e+1,3)};h.greaterThan=h.gt=function(e){return this.cmp(e)>0};h.greaterThanOrEqualTo=h.gte=function(e){var i=this.cmp(e);return i==1||i===0};h.hyperbolicCosine=h.cosh=function(){var e,i,t,n,r,s=this,o=s.constructor,u=new o(1);if(!s.isFinite())return new o(s.s?1/0:NaN);if(s.isZero())return u;t=o.precision,n=o.rounding,o.precision=t+Math.max(s.e,s.sd())+4,o.rounding=1,r=s.d.length,r<32?(e=Math.ceil(r/3),i=(1/ae(4,e)).toString()):(e=16,i="2.3283064365386962890625e-10"),s=ie(o,1,s.times(i),new o(1),!0);for(var f,l=e,a=new o(8);l--;)f=s.times(s),s=u.minus(f.times(a.minus(f.times(a))));return m(s,o.precision=t,o.rounding=n,!0)};h.hyperbolicSine=h.sinh=function(){var e,i,t,n,r=this,s=r.constructor;if(!r.isFinite()||r.isZero())return new s(r);if(i=s.precision,t=s.rounding,s.precision=i+Math.max(r.e,r.sd())+4,s.rounding=1,n=r.d.length,n<3)r=ie(s,2,r,r,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,r=r.times(1/ae(5,e)),r=ie(s,2,r,r,!0);for(var o,u=new s(5),f=new s(16),l=new s(20);e--;)o=r.times(r),r=r.times(u.plus(o.times(f.times(o).plus(l))))}return s.precision=i,s.rounding=t,m(r,i,t,!0)};h.hyperbolicTangent=h.tanh=function(){var e,i,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,i=n.rounding,n.precision=e+7,n.rounding=1,M(t.sinh(),t.cosh(),n.precision=e,n.rounding=i)):new n(t.s)};h.inverseCosine=h.acos=function(){var e=this,i=e.constructor,t=e.abs().cmp(1),n=i.precision,r=i.rounding;return t!==-1?t===0?e.isNeg()?$(i,n,r):new i(0):new i(NaN):e.isZero()?$(i,n+4,r).times(.5):(i.precision=n+6,i.rounding=1,e=new i(1).minus(e).div(e.plus(1)).sqrt().atan(),i.precision=n,i.rounding=r,e.times(2))};h.inverseHyperbolicCosine=h.acosh=function(){var e,i,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(e=n.precision,i=n.rounding,n.precision=e+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,N=!1,t=t.times(t).minus(1).sqrt().plus(t),N=!0,n.precision=e,n.rounding=i,t.ln()):new n(t)};h.inverseHyperbolicSine=h.asinh=function(){var e,i,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(e=n.precision,i=n.rounding,n.precision=e+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,N=!1,t=t.times(t).plus(1).sqrt().plus(t),N=!0,n.precision=e,n.rounding=i,t.ln())};h.inverseHyperbolicTangent=h.atanh=function(){var e,i,t,n,r=this,s=r.constructor;return r.isFinite()?r.e>=0?new s(r.abs().eq(1)?r.s/0:r.isZero()?r:NaN):(e=s.precision,i=s.rounding,n=r.sd(),Math.max(n,e)<2*-r.e-1?m(new s(r),e,i,!0):(s.precision=t=n-r.e,r=M(r.plus(1),new s(1).minus(r),t+e,1),s.precision=e+4,s.rounding=1,r=r.ln(),s.precision=e,s.rounding=i,r.times(.5))):new s(NaN)};h.inverseSine=h.asin=function(){var e,i,t,n,r=this,s=r.constructor;return r.isZero()?new s(r):(i=r.abs().cmp(1),t=s.precision,n=s.rounding,i!==-1?i===0?(e=$(s,t+4,n).times(.5),e.s=r.s,e):new s(NaN):(s.precision=t+6,s.rounding=1,r=r.div(new s(1).minus(r.times(r)).sqrt().plus(1)).atan(),s.precision=t,s.rounding=n,r.times(2)))};h.inverseTangent=h.atan=function(){var e,i,t,n,r,s,o,u,f,l=this,a=l.constructor,c=a.precision,d=a.rounding;if(l.isFinite()){if(l.isZero())return new a(l);if(l.abs().eq(1)&&c+4<=Ne)return o=$(a,c+4,d).times(.25),o.s=l.s,o}else{if(!l.s)return new a(NaN);if(c+4<=Ne)return o=$(a,c+4,d).times(.5),o.s=l.s,o}for(a.precision=u=c+10,a.rounding=1,t=Math.min(28,u/w+2|0),e=t;e;--e)l=l.div(l.times(l).plus(1).sqrt().plus(1));for(N=!1,i=Math.ceil(u/w),n=1,f=l.times(l),o=new a(l),r=l;e!==-1;)if(r=r.times(f),s=o.minus(r.div(n+=2)),r=r.times(f),o=s.plus(r.div(n+=2)),o.d[i]!==void 0)for(e=i;o.d[e]===s.d[e]&&e--;);return t&&(o=o.times(2<<t-1)),N=!0,m(o,a.precision=c,a.rounding=d,!0)};h.isFinite=function(){return!!this.d};h.isInteger=h.isInt=function(){return!!this.d&&U(this.e/w)>this.d.length-2};h.isNaN=function(){return!this.s};h.isNegative=h.isNeg=function(){return this.s<0};h.isPositive=h.isPos=function(){return this.s>0};h.isZero=function(){return!!this.d&&this.d[0]===0};h.lessThan=h.lt=function(e){return this.cmp(e)<0};h.lessThanOrEqualTo=h.lte=function(e){return this.cmp(e)<1};h.logarithm=h.log=function(e){var i,t,n,r,s,o,u,f,l=this,a=l.constructor,c=a.precision,d=a.rounding,g=5;if(e==null)e=new a(10),i=!0;else{if(e=new a(e),t=e.d,e.s<0||!t||!t[0]||e.eq(1))return new a(NaN);i=e.eq(10)}if(t=l.d,l.s<0||!t||!t[0]||l.eq(1))return new a(t&&!t[0]?-1/0:l.s!=1?NaN:t?0:1/0);if(i)if(t.length>1)s=!0;else{for(r=t[0];r%10===0;)r/=10;s=r!==1}if(N=!1,u=c+g,o=K(l,u),n=i?ue(a,u+10):K(e,u),f=M(o,n,u,1),te(f.d,r=c,d))do if(u+=10,o=K(l,u),n=i?ue(a,u+10):K(e,u),f=M(o,n,u,1),!s){+F(f.d).slice(r+1,r+15)+1==1e14&&(f=m(f,c+1,0));break}while(te(f.d,r+=10,d));return N=!0,m(f,c,d)};h.minus=h.sub=function(e){var i,t,n,r,s,o,u,f,l,a,c,d,g=this,E=g.constructor;if(e=new E(e),!g.d||!e.d)return!g.s||!e.s?e=new E(NaN):g.d?e.s=-e.s:e=new E(e.d||g.s!==e.s?g:NaN),e;if(g.s!=e.s)return e.s=-e.s,g.plus(e);if(l=g.d,d=e.d,u=E.precision,f=E.rounding,!l[0]||!d[0]){if(d[0])e.s=-e.s;else if(l[0])e=new E(g);else return new E(f===3?-0:0);return N?m(e,u,f):e}if(t=U(e.e/w),a=U(g.e/w),l=l.slice(),s=a-t,s){for(c=s<0,c?(i=l,s=-s,o=d.length):(i=d,t=a,o=l.length),n=Math.max(Math.ceil(u/w),o)+2,s>n&&(s=n,i.length=1),i.reverse(),n=s;n--;)i.push(0);i.reverse()}else{for(n=l.length,o=d.length,c=n<o,c&&(o=n),n=0;n<o;n++)if(l[n]!=d[n]){c=l[n]<d[n];break}s=0}for(c&&(i=l,l=d,d=i,e.s=-e.s),o=l.length,n=d.length-o;n>0;--n)l[o++]=0;for(n=d.length;n>s;){if(l[--n]<d[n]){for(r=n;r&&l[--r]===0;)l[r]=x-1;--l[r],l[n]+=x}l[n]-=d[n]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--t;return l[0]?(e.d=l,e.e=fe(l,t),N?m(e,u,f):e):new E(f===3?-0:0)};h.modulo=h.mod=function(e){var i,t=this,n=t.constructor;return e=new n(e),!t.d||!e.s||e.d&&!e.d[0]?new n(NaN):!e.d||t.d&&!t.d[0]?m(new n(t),n.precision,n.rounding):(N=!1,n.modulo==9?(i=M(t,e.abs(),0,3,1),i.s*=e.s):i=M(t,e,0,n.modulo,1),i=i.times(e),N=!0,t.minus(i))};h.naturalExponential=h.exp=function(){return Ce(this)};h.naturalLogarithm=h.ln=function(){return K(this)};h.negated=h.neg=function(){var e=new this.constructor(this);return e.s=-e.s,m(e)};h.plus=h.add=function(e){var i,t,n,r,s,o,u,f,l,a,c=this,d=c.constructor;if(e=new d(e),!c.d||!e.d)return!c.s||!e.s?e=new d(NaN):c.d||(e=new d(e.d||c.s===e.s?c:NaN)),e;if(c.s!=e.s)return e.s=-e.s,c.minus(e);if(l=c.d,a=e.d,u=d.precision,f=d.rounding,!l[0]||!a[0])return a[0]||(e=new d(c)),N?m(e,u,f):e;if(s=U(c.e/w),n=U(e.e/w),l=l.slice(),r=s-n,r){for(r<0?(t=l,r=-r,o=a.length):(t=a,n=s,o=l.length),s=Math.ceil(u/w),o=s>o?s+1:o+1,r>o&&(r=o,t.length=1),t.reverse();r--;)t.push(0);t.reverse()}for(o=l.length,r=a.length,o-r<0&&(r=o,t=a,a=l,l=t),i=0;r;)i=(l[--r]=l[r]+a[r]+i)/x|0,l[r]%=x;for(i&&(l.unshift(i),++n),o=l.length;l[--o]==0;)l.pop();return e.d=l,e.e=fe(l,n),N?m(e,u,f):e};h.precision=h.sd=function(e){var i,t=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(X+e);return t.d?(i=He(t.d),e&&t.e+1>i&&(i=t.e+1)):i=NaN,i};h.round=function(){var e=this,i=e.constructor;return m(new i(e),e.e+1,i.rounding)};h.sine=h.sin=function(){var e,i,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,i=n.rounding,n.precision=e+Math.max(t.e,t.sd())+w,n.rounding=1,t=hi(n,je(n,t)),n.precision=e,n.rounding=i,m(j>2?t.neg():t,e,i,!0)):new n(NaN)};h.squareRoot=h.sqrt=function(){var e,i,t,n,r,s,o=this,u=o.d,f=o.e,l=o.s,a=o.constructor;if(l!==1||!u||!u[0])return new a(!l||l<0&&(!u||u[0])?NaN:u?o:1/0);for(N=!1,l=Math.sqrt(+o),l==0||l==1/0?(i=F(u),(i.length+f)%2==0&&(i+="0"),l=Math.sqrt(i),f=U((f+1)/2)-(f<0||f%2),l==1/0?i="5e"+f:(i=l.toExponential(),i=i.slice(0,i.indexOf("e")+1)+f),n=new a(i)):n=new a(l.toString()),t=(f=a.precision)+3;;)if(s=n,n=s.plus(M(o,s,t+2,1)).times(.5),F(s.d).slice(0,t)===(i=F(n.d)).slice(0,t))if(i=i.slice(t-3,t+1),i=="9999"||!r&&i=="4999"){if(!r&&(m(s,f+1,0),s.times(s).eq(o))){n=s;break}t+=4,r=1}else{(!+i||!+i.slice(1)&&i.charAt(0)=="5")&&(m(n,f+1,1),e=!n.times(n).eq(o));break}return N=!0,m(n,f,a.rounding,e)};h.tangent=h.tan=function(){var e,i,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(e=n.precision,i=n.rounding,n.precision=e+10,n.rounding=1,t=t.sin(),t.s=1,t=M(t,new n(1).minus(t.times(t)).sqrt(),e+10,0),n.precision=e,n.rounding=i,m(j==2||j==4?t.neg():t,e,i,!0)):new n(NaN)};h.times=h.mul=function(e){var i,t,n,r,s,o,u,f,l,a=this,c=a.constructor,d=a.d,g=(e=new c(e)).d;if(e.s*=a.s,!d||!d[0]||!g||!g[0])return new c(!e.s||d&&!d[0]&&!g||g&&!g[0]&&!d?NaN:!d||!g?e.s/0:e.s*0);for(t=U(a.e/w)+U(e.e/w),f=d.length,l=g.length,f<l&&(s=d,d=g,g=s,o=f,f=l,l=o),s=[],o=f+l,n=o;n--;)s.push(0);for(n=l;--n>=0;){for(i=0,r=f+n;r>n;)u=s[r]+g[n]*d[r-n-1]+i,s[r--]=u%x|0,i=u/x|0;s[r]=(s[r]+i)%x|0}for(;!s[--o];)s.pop();return i?++t:s.shift(),e.d=s,e.e=fe(s,t),N?m(e,c.precision,c.rounding):e};h.toBinary=function(e,i){return Ee(this,2,e,i)};h.toDecimalPlaces=h.toDP=function(e,i){var t=this,n=t.constructor;return t=new n(t),e===void 0?t:(V(e,0,y),i===void 0?i=n.rounding:V(i,0,8),m(t,e+t.e+1,i))};h.toExponential=function(e,i){var t,n=this,r=n.constructor;return e===void 0?t=z(n,!0):(V(e,0,y),i===void 0?i=r.rounding:V(i,0,8),n=m(new r(n),e+1,i),t=z(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+t:t};h.toFixed=function(e,i){var t,n,r=this,s=r.constructor;return e===void 0?t=z(r):(V(e,0,y),i===void 0?i=s.rounding:V(i,0,8),n=m(new s(r),e+r.e+1,i),t=z(n,!1,e+n.e+1)),r.isNeg()&&!r.isZero()?"-"+t:t};h.toFraction=function(e){var i,t,n,r,s,o,u,f,l,a,c,d,g=this,E=g.d,v=g.constructor;if(!E)return new v(g);if(l=t=new v(1),n=f=new v(0),i=new v(n),s=i.e=He(E)-g.e-1,o=s%w,i.d[0]=L(10,o<0?w+o:o),e==null)e=s>0?i:l;else{if(u=new v(e),!u.isInt()||u.lt(l))throw Error(X+u);e=u.gt(i)?s>0?i:l:u}for(N=!1,u=new v(F(E)),a=v.precision,v.precision=s=E.length*w*2;c=M(u,i,0,1,1),r=t.plus(c.times(n)),r.cmp(e)!=1;)t=n,n=r,r=l,l=f.plus(c.times(r)),f=r,r=i,i=u.minus(c.times(r)),u=r;return r=M(e.minus(t),n,0,1,1),f=f.plus(r.times(l)),t=t.plus(r.times(n)),f.s=l.s=g.s,d=M(l,n,s,1).minus(g).abs().cmp(M(f,t,s,1).minus(g).abs())<1?[l,n]:[f,t],v.precision=a,N=!0,d};h.toHexadecimal=h.toHex=function(e,i){return Ee(this,16,e,i)};h.toNearest=function(e,i){var t=this,n=t.constructor;if(t=new n(t),e==null){if(!t.d)return t;e=new n(1),i=n.rounding}else{if(e=new n(e),i===void 0?i=n.rounding:V(i,0,8),!t.d)return e.s?t:e;if(!e.d)return e.s&&(e.s=t.s),e}return e.d[0]?(N=!1,t=M(t,e,0,i,1).times(e),N=!0,m(t)):(e.s=t.s,t=e),t};h.toNumber=function(){return+this};h.toOctal=function(e,i){return Ee(this,8,e,i)};h.toPower=h.pow=function(e){var i,t,n,r,s,o,u=this,f=u.constructor,l=+(e=new f(e));if(!u.d||!e.d||!u.d[0]||!e.d[0])return new f(L(+u,l));if(u=new f(u),u.eq(1))return u;if(n=f.precision,s=f.rounding,e.eq(1))return m(u,n,s);if(i=U(e.e/w),i>=e.d.length-1&&(t=l<0?-l:l)<=fi)return r=xe(f,u,t,n),e.s<0?new f(1).div(r):m(r,n,s);if(o=u.s,o<0){if(i<e.d.length-1)return new f(NaN);if((e.d[i]&1)==0&&(o=1),u.e==0&&u.d[0]==1&&u.d.length==1)return u.s=o,u}return t=L(+u,l),i=t==0||!isFinite(t)?U(l*(Math.log("0."+F(u.d))/Math.LN10+u.e+1)):new f(t+"").e,i>f.maxE+1||i<f.minE-1?new f(i>0?o/0:0):(N=!1,f.rounding=u.s=1,t=Math.min(12,(i+"").length),r=Ce(e.times(K(u,n+t)),n),r.d&&(r=m(r,n+5,1),te(r.d,n,s)&&(i=n+10,r=m(Ce(e.times(K(u,i+t)),i),i+5,1),+F(r.d).slice(n+1,n+15)+1==1e14&&(r=m(r,n+1,0)))),r.s=o,N=!0,f.rounding=s,m(r,n,s))};h.toPrecision=function(e,i){var t,n=this,r=n.constructor;return e===void 0?t=z(n,n.e<=r.toExpNeg||n.e>=r.toExpPos):(V(e,1,y),i===void 0?i=r.rounding:V(i,0,8),n=m(new r(n),e,i),t=z(n,e<=n.e||n.e<=r.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+t:t};h.toSignificantDigits=h.toSD=function(e,i){var t=this,n=t.constructor;return e===void 0?(e=n.precision,i=n.rounding):(V(e,1,y),i===void 0?i=n.rounding:V(i,0,8)),m(new n(t),e,i)};h.toString=function(){var e=this,i=e.constructor,t=z(e,e.e<=i.toExpNeg||e.e>=i.toExpPos);return e.isNeg()&&!e.isZero()?"-"+t:t};h.truncated=h.trunc=function(){return m(new this.constructor(this),this.e+1,1)};h.valueOf=h.toJSON=function(){var e=this,i=e.constructor,t=z(e,e.e<=i.toExpNeg||e.e>=i.toExpPos);return e.isNeg()?"-"+t:t};function F(e){var i,t,n,r=e.length-1,s="",o=e[0];if(r>0){for(s+=o,i=1;i<r;i++)n=e[i]+"",t=w-n.length,t&&(s+=Y(t)),s+=n;o=e[i],n=o+"",t=w-n.length,t&&(s+=Y(t))}else if(o===0)return"0";for(;o%10===0;)o/=10;return s+o}function V(e,i,t){if(e!==~~e||e<i||e>t)throw Error(X+e)}function te(e,i,t,n){var r,s,o,u;for(s=e[0];s>=10;s/=10)--i;return--i<0?(i+=w,r=0):(r=Math.ceil((i+1)/w),i%=w),s=L(10,w-i),u=e[r]%s|0,n==null?i<3?(i==0?u=u/100|0:i==1&&(u=u/10|0),o=t<4&&u==99999||t>3&&u==49999||u==5e4||u==0):o=(t<4&&u+1==s||t>3&&u+1==s/2)&&(e[r+1]/s/100|0)==L(10,i-2)-1||(u==s/2||u==0)&&(e[r+1]/s/100|0)==0:i<4?(i==0?u=u/1e3|0:i==1?u=u/100|0:i==2&&(u=u/10|0),o=(n||t<4)&&u==9999||!n&&t>3&&u==4999):o=((n||t<4)&&u+1==s||!n&&t>3&&u+1==s/2)&&(e[r+1]/s/1e3|0)==L(10,i-3)-1,o}function ne(e,i,t){for(var n,r=[0],s,o=0,u=e.length;o<u;){for(s=r.length;s--;)r[s]*=i;for(r[0]+=we.indexOf(e.charAt(o++)),n=0;n<r.length;n++)r[n]>t-1&&(r[n+1]===void 0&&(r[n+1]=0),r[n+1]+=r[n]/t|0,r[n]%=t)}return r.reverse()}function ci(e,i){var t,n,r;if(i.isZero())return i;n=i.d.length,n<32?(t=Math.ceil(n/3),r=(1/ae(4,t)).toString()):(t=16,r="2.3283064365386962890625e-10"),e.precision+=t,i=ie(e,1,i.times(r),new e(1));for(var s=t;s--;){var o=i.times(i);i=o.times(o).minus(o).times(8).plus(1)}return e.precision-=t,i}var M=(function(){function e(n,r,s){var o,u=0,f=n.length;for(n=n.slice();f--;)o=n[f]*r+u,n[f]=o%s|0,u=o/s|0;return u&&n.unshift(u),n}function i(n,r,s,o){var u,f;if(s!=o)f=s>o?1:-1;else for(u=f=0;u<s;u++)if(n[u]!=r[u]){f=n[u]>r[u]?1:-1;break}return f}function t(n,r,s,o){for(var u=0;s--;)n[s]-=u,u=n[s]<r[s]?1:0,n[s]=u*o+n[s]-r[s];for(;!n[0]&&n.length>1;)n.shift()}return function(n,r,s,o,u,f){var l,a,c,d,g,E,v,P,b,Z,p,C,_,q,B,O,k,R,A,H,I=n.constructor,J=n.s==r.s?1:-1,T=n.d,S=r.d;if(!T||!T[0]||!S||!S[0])return new I(!n.s||!r.s||(T?S&&T[0]==S[0]:!S)?NaN:T&&T[0]==0||!S?J*0:J/0);for(f?(g=1,a=n.e-r.e):(f=x,g=w,a=U(n.e/g)-U(r.e/g)),A=S.length,k=T.length,b=new I(J),Z=b.d=[],c=0;S[c]==(T[c]||0);c++);if(S[c]>(T[c]||0)&&a--,s==null?(q=s=I.precision,o=I.rounding):u?q=s+(n.e-r.e)+1:q=s,q<0)Z.push(1),E=!0;else{if(q=q/g+2|0,c=0,A==1){for(d=0,S=S[0],q++;(c<k||d)&&q--;c++)B=d*f+(T[c]||0),Z[c]=B/S|0,d=B%S|0;E=d||c<k}else{for(d=f/(S[0]+1)|0,d>1&&(S=e(S,d,f),T=e(T,d,f),A=S.length,k=T.length),O=A,p=T.slice(0,A),C=p.length;C<A;)p[C++]=0;H=S.slice(),H.unshift(0),R=S[0],S[1]>=f/2&&++R;do d=0,l=i(S,p,A,C),l<0?(_=p[0],A!=C&&(_=_*f+(p[1]||0)),d=_/R|0,d>1?(d>=f&&(d=f-1),v=e(S,d,f),P=v.length,C=p.length,l=i(v,p,P,C),l==1&&(d--,t(v,A<P?H:S,P,f))):(d==0&&(l=d=1),v=S.slice()),P=v.length,P<C&&v.unshift(0),t(p,v,C,f),l==-1&&(C=p.length,l=i(S,p,A,C),l<1&&(d++,t(p,A<C?H:S,C,f))),C=p.length):l===0&&(d++,p=[0]),Z[c++]=d,l&&p[0]?p[C++]=T[O]||0:(p=[T[O]],C=1);while((O++<k||p[0]!==void 0)&&q--);E=p[0]!==void 0}Z[0]||Z.shift()}if(g==1)b.e=a,Re=E;else{for(c=1,d=Z[0];d>=10;d/=10)c++;b.e=c+a*g-1,m(b,u?s+b.e+1:s,o,E)}return b}})();function m(e,i,t,n){var r,s,o,u,f,l,a,c,d,g=e.constructor;e:if(i!=null){if(c=e.d,!c)return e;for(r=1,u=c[0];u>=10;u/=10)r++;if(s=i-r,s<0)s+=w,o=i,a=c[d=0],f=a/L(10,r-o-1)%10|0;else if(d=Math.ceil((s+1)/w),u=c.length,d>=u)if(n){for(;u++<=d;)c.push(0);a=f=0,r=1,s%=w,o=s-w+1}else break e;else{for(a=u=c[d],r=1;u>=10;u/=10)r++;s%=w,o=s-w+r,f=o<0?0:a/L(10,r-o-1)%10|0}if(n=n||i<0||c[d+1]!==void 0||(o<0?a:a%L(10,r-o-1)),l=t<4?(f||n)&&(t==0||t==(e.s<0?3:2)):f>5||f==5&&(t==4||n||t==6&&(s>0?o>0?a/L(10,r-o):0:c[d-1])%10&1||t==(e.s<0?8:7)),i<1||!c[0])return c.length=0,l?(i-=e.e+1,c[0]=L(10,(w-i%w)%w),e.e=-i||0):c[0]=e.e=0,e;if(s==0?(c.length=d,u=1,d--):(c.length=d+1,u=L(10,w-s),c[d]=o>0?(a/L(10,r-o)%L(10,o)|0)*u:0),l)for(;;)if(d==0){for(s=1,o=c[0];o>=10;o/=10)s++;for(o=c[0]+=u,u=1;o>=10;o/=10)u++;s!=u&&(e.e++,c[0]==x&&(c[0]=1));break}else{if(c[d]+=u,c[d]!=x)break;c[d--]=0,u=1}for(s=c.length;c[--s]===0;)c.pop()}return N&&(e.e>g.maxE?(e.d=null,e.e=NaN):e.e<g.minE&&(e.e=0,e.d=[0])),e}function z(e,i,t){if(!e.isFinite())return ze(e);var n,r=e.e,s=F(e.d),o=s.length;return i?(t&&(n=t-o)>0?s=s.charAt(0)+"."+s.slice(1)+Y(n):o>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(e.e<0?"e":"e+")+e.e):r<0?(s="0."+Y(-r-1)+s,t&&(n=t-o)>0&&(s+=Y(n))):r>=o?(s+=Y(r+1-o),t&&(n=t-r-1)>0&&(s=s+"."+Y(n))):((n=r+1)<o&&(s=s.slice(0,n)+"."+s.slice(n)),t&&(n=t-o)>0&&(r+1===o&&(s+="."),s+=Y(n))),s}function fe(e,i){var t=e[0];for(i*=w;t>=10;t/=10)i++;return i}function ue(e,i,t){if(i>ai)throw N=!0,t&&(e.precision=t),Error(Ue);return m(new e(se),i,1,!0)}function $(e,i,t){if(i>Ne)throw Error(Ue);return m(new e(oe),i,t,!0)}function He(e){var i=e.length-1,t=i*w+1;if(i=e[i],i){for(;i%10==0;i/=10)t--;for(i=e[0];i>=10;i/=10)t++}return t}function Y(e){for(var i="";e--;)i+="0";return i}function xe(e,i,t,n){var r,s=new e(1),o=Math.ceil(n/w+4);for(N=!1;;){if(t%2&&(s=s.times(i),Pe(s.d,o)&&(r=!0)),t=U(t/2),t===0){t=s.d.length-1,r&&s.d[t]===0&&++s.d[t];break}i=i.times(i),Pe(i.d,o)}return N=!0,s}function Le(e){return e.d[e.d.length-1]&1}function $e(e,i,t){for(var n,r,s=new e(i[0]),o=0;++o<i.length;){if(r=new e(i[o]),!r.s){s=r;break}n=s.cmp(r),(n===t||n===0&&s.s===t)&&(s=r)}return s}function Ce(e,i){var t,n,r,s,o,u,f,l=0,a=0,c=0,d=e.constructor,g=d.rounding,E=d.precision;if(!e.d||!e.d[0]||e.e>17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(i==null?(N=!1,f=E):f=i,u=new d(.03125);e.e>-2;)e=e.times(u),c+=5;for(n=Math.log(L(2,c))/Math.LN10*2+5|0,f+=n,t=s=o=new d(1),d.precision=f;;){if(s=m(s.times(e),f,1),t=t.times(++a),u=o.plus(M(s,t,f,1)),F(u.d).slice(0,f)===F(o.d).slice(0,f)){for(r=c;r--;)o=m(o.times(o),f,1);if(i==null)if(l<3&&te(o.d,f-n,g,l))d.precision=f+=10,t=s=u=new d(1),a=0,l++;else return m(o,d.precision=E,g,N=!0);else return d.precision=E,o}o=u}}function K(e,i){var t,n,r,s,o,u,f,l,a,c,d,g=1,E=10,v=e,P=v.d,b=v.constructor,Z=b.rounding,p=b.precision;if(v.s<0||!P||!P[0]||!v.e&&P[0]==1&&P.length==1)return new b(P&&!P[0]?-1/0:v.s!=1?NaN:P?0:v);if(i==null?(N=!1,a=p):a=i,b.precision=a+=E,t=F(P),n=t.charAt(0),Math.abs(s=v.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)v=v.times(e),t=F(v.d),n=t.charAt(0),g++;s=v.e,n>1?(v=new b("0."+t),s++):v=new b(n+"."+t.slice(1))}else return l=ue(b,a+2,p).times(s+""),v=K(new b(n+"."+t.slice(1)),a-E).plus(l),b.precision=p,i==null?m(v,p,Z,N=!0):v;for(c=v,f=o=v=M(v.minus(1),v.plus(1),a,1),d=m(v.times(v),a,1),r=3;;){if(o=m(o.times(d),a,1),l=f.plus(M(o,new b(r),a,1)),F(l.d).slice(0,a)===F(f.d).slice(0,a))if(f=f.times(2),s!==0&&(f=f.plus(ue(b,a+2,p).times(s+""))),f=M(f,new b(g),a,1),i==null)if(te(f.d,a-E,Z,u))b.precision=a+=E,l=o=v=M(c.minus(1),c.plus(1),a,1),d=m(v.times(v),a,1),r=u=1;else return m(f,b.precision=p,Z,N=!0);else return b.precision=p,f;f=l,r+=2}}function ze(e){return String(e.s*e.s/0)}function re(e,i){var t,n,r;for((t=i.indexOf("."))>-1&&(i=i.replace(".","")),(n=i.search(/e/i))>0?(t<0&&(t=n),t+=+i.slice(n+1),i=i.substring(0,n)):t<0&&(t=i.length),n=0;i.charCodeAt(n)===48;n++);for(r=i.length;i.charCodeAt(r-1)===48;--r);if(i=i.slice(n,r),i){if(r-=n,e.e=t=t-n-1,e.d=[],n=(t+1)%w,t<0&&(n+=w),n<r){for(n&&e.d.push(+i.slice(0,n)),r-=w;n<r;)e.d.push(+i.slice(n,n+=w));i=i.slice(n),n=w-i.length}else n-=r;for(;n--;)i+="0";e.d.push(+i),N&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function di(e,i){var t,n,r,s,o,u,f,l,a;if(i.indexOf("_")>-1){if(i=i.replace(/(\d)_(?=\d)/g,"$1"),Be.test(i))return re(e,i)}else if(i==="Infinity"||i==="NaN")return+i||(e.s=NaN),e.e=NaN,e.d=null,e;if(ui.test(i))t=16,i=i.toLowerCase();else if(oi.test(i))t=2;else if(li.test(i))t=8;else throw Error(X+i);for(s=i.search(/p/i),s>0?(f=+i.slice(s+1),i=i.substring(2,s)):i=i.slice(2),s=i.indexOf("."),o=s>=0,n=e.constructor,o&&(i=i.replace(".",""),u=i.length,s=u-s,r=xe(n,new n(t),s,s*2)),l=ne(i,t,x),a=l.length-1,s=a;l[s]===0;--s)l.pop();return s<0?new n(e.s*0):(e.e=fe(l,a),e.d=l,N=!1,o&&(e=M(e,r,u*4)),f&&(e=e.times(Math.abs(f)<54?L(2,f):W.pow(2,f))),N=!0,e)}function hi(e,i){var t,n=i.d.length;if(n<3)return i.isZero()?i:ie(e,2,i,i);t=1.4*Math.sqrt(n),t=t>16?16:t|0,i=i.times(1/ae(5,t)),i=ie(e,2,i,i);for(var r,s=new e(5),o=new e(16),u=new e(20);t--;)r=i.times(i),i=i.times(s.plus(r.times(o.times(r).minus(u))));return i}function ie(e,i,t,n,r){var s,o,u,f,l=e.precision,a=Math.ceil(l/w);for(N=!1,f=t.times(t),u=new e(n);;){if(o=M(u.times(f),new e(i++*i++),l,1),u=r?n.plus(o):n.minus(o),n=M(o.times(f),new e(i++*i++),l,1),o=u.plus(n),o.d[a]!==void 0){for(s=a;o.d[s]===u.d[s]&&s--;);if(s==-1)break}s=u,u=n,n=o,o=s}return N=!0,o.d.length=a+1,o}function ae(e,i){for(var t=e;--i;)t*=e;return t}function je(e,i){var t,n=i.s<0,r=$(e,e.precision,1),s=r.times(.5);if(i=i.abs(),i.lte(s))return j=n?4:1,i;if(t=i.divToInt(r),t.isZero())j=n?3:2;else{if(i=i.minus(t.times(r)),i.lte(s))return j=Le(t)?n?2:3:n?4:1,i;j=Le(t)?n?1:4:n?3:2}return i.minus(r).abs()}function Ee(e,i,t,n){var r,s,o,u,f,l,a,c,d,g=e.constructor,E=t!==void 0;if(E?(V(t,1,y),n===void 0?n=g.rounding:V(n,0,8)):(t=g.precision,n=g.rounding),!e.isFinite())a=ze(e);else{for(a=z(e),o=a.indexOf("."),E?(r=2,i==16?t=t*4-3:i==8&&(t=t*3-2)):r=i,o>=0&&(a=a.replace(".",""),d=new g(1),d.e=a.length-o,d.d=ne(z(d),10,r),d.e=d.d.length),c=ne(a,10,r),s=f=c.length;c[--f]==0;)c.pop();if(!c[0])a=E?"0p+0":"0";else{if(o<0?s--:(e=new g(e),e.d=c,e.e=s,e=M(e,d,t,n,0,r),c=e.d,s=e.e,l=Re),o=c[t],u=r/2,l=l||c[t+1]!==void 0,l=n<4?(o!==void 0||l)&&(n===0||n===(e.s<0?3:2)):o>u||o===u&&(n===4||l||n===6&&c[t-1]&1||n===(e.s<0?8:7)),c.length=t,l)for(;++c[--t]>r-1;)c[t]=0,t||(++s,c.unshift(1));for(f=c.length;!c[f-1];--f);for(o=0,a="";o<f;o++)a+=we.charAt(c[o]);if(E){if(f>1)if(i==16||i==8){for(o=i==16?4:3,--f;f%o;f++)a+="0";for(c=ne(a,r,i),f=c.length;!c[f-1];--f);for(o=1,a="1.";o<f;o++)a+=we.charAt(c[o])}else a=a.charAt(0)+"."+a.slice(1);a=a+(s<0?"p":"p+")+s}else if(s<0){for(;++s;)a="0"+a;a="0."+a}else if(++s>f)for(s-=f;s--;)a+="0";else s<f&&(a=a.slice(0,s)+"."+a.slice(s))}a=(i==16?"0x":i==2?"0b":i==8?"0o":"")+a}return e.s<0?"-"+a:a}function Pe(e,i){if(e.length>i)return e.length=i,!0}function pi(e){return new this(e).abs()}function gi(e){return new this(e).acos()}function mi(e){return new this(e).acosh()}function wi(e,i){return new this(e).plus(i)}function vi(e){return new this(e).asin()}function Ni(e){return new this(e).asinh()}function Ci(e){return new this(e).atan()}function Ei(e){return new this(e).atanh()}function Si(e,i){e=new this(e),i=new this(i);var t,n=this.precision,r=this.rounding,s=n+4;return!e.s||!i.s?t=new this(NaN):!e.d&&!i.d?(t=$(this,s,1).times(i.s>0?.25:.75),t.s=e.s):!i.d||e.isZero()?(t=i.s<0?$(this,n,r):new this(0),t.s=e.s):!e.d||i.isZero()?(t=$(this,s,1).times(.5),t.s=e.s):i.s<0?(this.precision=s,this.rounding=1,t=this.atan(M(e,i,s,1)),i=$(this,s,1),this.precision=n,this.rounding=r,t=e.s<0?t.minus(i):t.plus(i)):t=this.atan(M(e,i,s,1)),t}function ki(e){return new this(e).cbrt()}function Mi(e){return m(e=new this(e),e.e+1,2)}function bi(e,i,t){return new this(e).clamp(i,t)}function qi(e){if(!e||typeof e!="object")throw Error(le+"Object expected");var i,t,n,r=e.defaults===!0,s=["precision",1,y,"rounding",0,8,"toExpNeg",-ee,0,"toExpPos",0,ee,"maxE",0,ee,"minE",-ee,0,"modulo",0,9];for(i=0;i<s.length;i+=3)if(t=s[i],r&&(this[t]=ve[t]),(n=e[t])!==void 0)if(U(n)===n&&n>=s[i+1]&&n<=s[i+2])this[t]=n;else throw Error(X+t+": "+n);if(t="crypto",r&&(this[t]=ve[t]),(n=e[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto!="undefined"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(Ze);else this[t]=!1;else throw Error(X+t+": "+n);return this}function Ai(e){return new this(e).cos()}function _i(e){return new this(e).cosh()}function Ge(e){var i,t,n;function r(s){var o,u,f,l=this;if(!(l instanceof r))return new r(s);if(l.constructor=r,Fe(s)){l.s=s.s,N?!s.d||s.e>r.maxE?(l.e=NaN,l.d=null):s.e<r.minE?(l.e=0,l.d=[0]):(l.e=s.e,l.d=s.d.slice()):(l.e=s.e,l.d=s.d?s.d.slice():s.d);return}if(f=typeof s,f==="number"){if(s===0){l.s=1/s<0?-1:1,l.e=0,l.d=[0];return}if(s<0?(s=-s,l.s=-1):l.s=1,s===~~s&&s<1e7){for(o=0,u=s;u>=10;u/=10)o++;N?o>r.maxE?(l.e=NaN,l.d=null):o<r.minE?(l.e=0,l.d=[0]):(l.e=o,l.d=[s]):(l.e=o,l.d=[s]);return}if(s*0!==0){s||(l.s=NaN),l.e=NaN,l.d=null;return}return re(l,s.toString())}if(f==="string")return(u=s.charCodeAt(0))===45?(s=s.slice(1),l.s=-1):(u===43&&(s=s.slice(1)),l.s=1),Be.test(s)?re(l,s):di(l,s);if(f==="bigint")return s<0?(s=-s,l.s=-1):l.s=1,re(l,s.toString());throw Error(X+s)}if(r.prototype=h,r.ROUND_UP=0,r.ROUND_DOWN=1,r.ROUND_CEIL=2,r.ROUND_FLOOR=3,r.ROUND_HALF_UP=4,r.ROUND_HALF_DOWN=5,r.ROUND_HALF_EVEN=6,r.ROUND_HALF_CEIL=7,r.ROUND_HALF_FLOOR=8,r.EUCLID=9,r.config=r.set=qi,r.clone=Ge,r.isDecimal=Fe,r.abs=pi,r.acos=gi,r.acosh=mi,r.add=wi,r.asin=vi,r.asinh=Ni,r.atan=Ci,r.atanh=Ei,r.atan2=Si,r.cbrt=ki,r.ceil=Mi,r.clamp=bi,r.cos=Ai,r.cosh=_i,r.div=Oi,r.exp=Ti,r.floor=Di,r.hypot=Ii,r.ln=Li,r.log=Pi,r.log10=Ri,r.log2=Fi,r.max=Ui,r.min=Zi,r.mod=Vi,r.mul=Bi,r.pow=Hi,r.random=xi,r.round=$i,r.sign=zi,r.sin=ji,r.sinh=Gi,r.sqrt=Yi,r.sub=Ki,r.sum=Wi,r.tan=Xi,r.tanh=yi,r.trunc=Ji,e===void 0&&(e={}),e&&e.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],i=0;i<n.length;)e.hasOwnProperty(t=n[i++])||(e[t]=this[t]);return r.config(e),r}function Oi(e,i){return new this(e).div(i)}function Ti(e){return new this(e).exp()}function Di(e){return m(e=new this(e),e.e+1,3)}function Ii(){var e,i,t=new this(0);for(N=!1,e=0;e<arguments.length;)if(i=new this(arguments[e++]),i.d)t.d&&(t=t.plus(i.times(i)));else{if(i.s)return N=!0,new this(1/0);t=i}return N=!0,t.sqrt()}function Fe(e){return e instanceof W||e&&e.toStringTag===Ve||!1}function Li(e){return new this(e).ln()}function Pi(e,i){return new this(e).log(i)}function Fi(e){return new this(e).log(2)}function Ri(e){return new this(e).log(10)}function Ui(){return $e(this,arguments,-1)}function Zi(){return $e(this,arguments,1)}function Vi(e,i){return new this(e).mod(i)}function Bi(e,i){return new this(e).mul(i)}function Hi(e,i){return new this(e).pow(i)}function xi(e){var i,t,n,r,s=0,o=new this(1),u=[];if(e===void 0?e=this.precision:V(e,1,y),n=Math.ceil(e/w),this.crypto)if(crypto.getRandomValues)for(i=crypto.getRandomValues(new Uint32Array(n));s<n;)r=i[s],r>=429e7?i[s]=crypto.getRandomValues(new Uint32Array(1))[0]:u[s++]=r%1e7;else if(crypto.randomBytes){for(i=crypto.randomBytes(n*=4);s<n;)r=i[s]+(i[s+1]<<8)+(i[s+2]<<16)+((i[s+3]&127)<<24),r>=214e7?crypto.randomBytes(4).copy(i,s):(u.push(r%1e7),s+=4);s=n/4}else throw Error(Ze);else for(;s<n;)u[s++]=Math.random()*1e7|0;for(n=u[--s],e%=w,n&&e&&(r=L(10,w-e),u[s]=(n/r|0)*r);u[s]===0;s--)u.pop();if(s<0)t=0,u=[0];else{for(t=-1;u[0]===0;t-=w)u.shift();for(n=1,r=u[0];r>=10;r/=10)n++;n<w&&(t-=w-n)}return o.e=t,o.d=u,o}function $i(e){return m(e=new this(e),e.e+1,this.rounding)}function zi(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function ji(e){return new this(e).sin()}function Gi(e){return new this(e).sinh()}function Yi(e){return new this(e).sqrt()}function Ki(e,i){return new this(e).sub(i)}function Wi(){var e=0,i=arguments,t=new this(i[e]);for(N=!1;t.s&&++e<i.length;)t=t.plus(i[e]);return N=!0,m(t,this.precision,this.rounding)}function Xi(e){return new this(e).tan()}function yi(e){return new this(e).tanh()}function Ji(e){return m(e=new this(e),e.e+1,1)}h[Symbol.for("nodejs.util.inspect.custom")]=h.toString;h[Symbol.toStringTag]="Decimal";var W=h.constructor=Ge(ve);se=new W(se);oe=new W(oe);const Qi={DEFAULT_ICON:De.DEFAULT_ICON,ACTIVE_ICON:De.ACTIVE_ICON,NAME_CN:"K线图",NAME_EN:"Candlestick",ORDER:3,PLATFORM:["pc","screen","mobile"]},et={titleColor:"#111",bgColor:"#fff",textColor:"#111",upColor:"#c23531",downColor:"#314656",barColor:"#314656",radiusSize:8,textSize:12,top:30,bottom:40,left:40,right:30,points:100,isSmooth:!1,isHideTitle:!1},Ye=[{name:"参数一",项目编号:"",object_id:""}],it=["name","项目编号","object_id","source"],tt=["index","increment","balance","risk"],nt=1,rt={useAlias:!1,null:{type:"0",value:""},source:"index"},st={DEFAULT:Qi,OPTIONS:et,DATA:Ye,PARAMS:it,SOURCE:tt,ITEMS:nt,COMMON:rt},ot=D.defineComponent(Te(Oe({},st),{__name:"kds",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(e){me.use([ge.install$1,me.install,ii.install,ti.install,ni.install,ge.install$2,ri.install,ge.install,si.install,me.install$1,ei.installUniversalTransition]);const i=D.ref(D.inject("session",null)),{proxy:t}=D.getCurrentInstance(),n="kds_"+Math.random().toString(16).substring(4,12);let r=null,s=null;const o=e;let u={data:[],dates:[],volumes:[]};class f extends pe.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#111"),upColor:this.getOptionValue("upColor","#c23531"),downColor:this.getOptionValue("downColor","#314656"),barColor:this.getOptionValue("barColor","#314656"),radiusSize:this.getOptionValue("radiusSize",4),textSize:this.getOptionValue("textSize",12),isHideTitle:this.getOptionValue("isHideTitle",!1),points:this.getOptionValue("points",100)}}init(){super.init(),this.props.conf.data=this.props.conf.data.length?this.props.conf.data:Ye,D.nextTick(()=>{let C=document.querySelector("#"+n);E({num:a.value.points,max:200,min:0,mode:o.mode}),C&&(r||(r=Ie.init(C),s=G.elementResizeDetectorMaker({strategy:"scroll"}),s.listenTo(C,()=>r==null?void 0:r.resize())),r.setOption(d(),!0))})}onPreview(){b.preview()}cleanup(){s&&s.uninstall(document.querySelector("#"+n)),r&&r.clear(),r&&Ie.dispose(r),r=null,b.unregister()}}const l=new f(o,"kds");l.setupLifecycle();const a=l.getStyle(),c=D.computed(()=>Qe.generateTitleStyle(o.conf.options)),d=()=>{var C,_,q,B,O,k,R,A,H,I,J,T,S,Q,Se,ke,Me,be,qe;const{conf:p}=o;return{animation:!1,color:[a.value.upColor,a.value.downColor],tooltip:{textStyle:{fontSize:12,color:a.value.textColor},position:function(ce,lt,ft,at,de){const he={top:10};return de.viewSize[0]-ce[0]<=de.contentSize[0]+20?he.right=de.viewSize[0]-ce[0]+30:he.left=ce[0]+30,he}},axisPointer:{link:[{xAxisIndex:[0,1]}]},dataZoom:[{type:"slider",xAxisIndex:[0,1],height:12,bottom:12},{type:"inside",xAxisIndex:[0,1],height:12,bottom:12}],xAxis:[{type:"category",data:u.dates,boundaryGap:!0,axisPointer:{show:!0},axisLabel:{color:a.value.textColor}},{type:"category",gridIndex:1,data:u.dates,boundaryGap:!0,splitLine:{show:!1},axisLabel:{show:!1},axisTick:{show:!1},axisPointer:{type:"shadow",label:{show:!1},triggerTooltip:!0,handle:{show:!0,margin:16,color:"#B80C00",size:24}}}],yAxis:[{scale:!0,splitNumber:2,axisLine:{lineStyle:{color:a.value.textColor}},axisLabel:{formatter:`{value}
2
2
  `}},{scale:!0,gridIndex:1,splitNumber:2,axisLabel:{formatter:`{value}
3
3
  `},splitLine:{show:!1},axisLine:{lineStyle:{color:a.value.textColor}}}],grid:[{left:(q=(_=(C=p==null?void 0:p.options)==null?void 0:C.left)==null?void 0:_.value)!=null?q:60,right:(k=(O=(B=p==null?void 0:p.options)==null?void 0:B.right)==null?void 0:O.value)!=null?k:30,top:(H=(A=(R=p==null?void 0:p.options)==null?void 0:R.top)==null?void 0:A.value)!=null?H:30,height:"55%"},{left:(T=(J=(I=p==null?void 0:p.options)==null?void 0:I.left)==null?void 0:J.value)!=null?T:60,right:(Se=(Q=(S=p==null?void 0:p.options)==null?void 0:S.right)==null?void 0:Q.value)!=null?Se:30,height:"20%",bottom:(be=(Me=(ke=p==null?void 0:p.options)==null?void 0:ke.bottom)==null?void 0:Me.value)!=null?be:40}],series:[{name:t.$t("common.total"),type:"bar",xAxisIndex:1,yAxisIndex:1,itemStyle:{color:a.value.barColor},data:u.volumes},{type:"candlestick",name:p!=null&&p.data?(qe=p==null?void 0:p.data[0])==null?void 0:qe.name:"--",data:u.data,itemStyle:{color:a.value.upColor,color0:a.value.downColor,borderColor:a.value.upColor,borderColor0:a.value.downColor}}]}},g=(p,C)=>{const _=[],q=[],B=G.dayjs(C[0]);let O=[],k=[],R=1,A=o.conf.calcPeriod?Number(o.conf.calcPeriod):30;for(let I=0;I<C.length;I++)G.dayjs(C[I]).diff(B,"minutes")>A*R&&(R++,O.length>0&&(_.push(O[O.length-1]),q.push({data:[k[0],k[k.length-1],Math.min(...k),Math.max(...k)],total:k.reduce((S,Q)=>W(String(S)).add(W(String(Q))),0).toNumber()}),O=[],k=[])),O.push(C[I]),k.push(p[I]),I===C.length-1&&(_.push(O[O.length-1]),q.push({data:[k[0],k[k.length-1],Math.max(...k),Math.min(...k)],total:k.reduce((S,Q)=>W(String(S)).add(W(String(Q))),0).toNumber()}));let H={data:[],dates:_,volumes:[]};q.forEach(I=>{H.data.push(I.data),H.volumes.push(I.total)}),u=H},E=p=>{let{num:C,max:_,min:q,mode:B}=p;C=C!=null?C:7,_=_!=null?_:200,q=q!=null?q:10;let O=G.dayjs(),k=[],R=[];for(var A=0;A<C;A++){let H=B==="edit"?Math.floor(Math.random()*(_-q+1)+q):0;k.push(H);const I=O.subtract(A*5,"minutes").format("YYYY-MM-DD HH:mm:ss");R.unshift(I)}g(k,R)},v=p=>{if(!G.hasDataSource(o.conf))return;const{data:C}=o.conf;let _=G.handleNullData(p,o,"history"),q=[],B=[];_.history.length&&(_.history.forEach((O,k)=>{q=O.map(R=>{var A;return(A=R[C[k].fv])!=null?A:"--"}),B=O.map(R=>R.time)}),g(q,B),r==null||r.setOption(d(),!0))},P=p=>{G.hasDataSource(o.conf)},b={preview:()=>pe.preview(o,i.value,v,P,"kds"),unregister:()=>pe.unregister(o,i.value)};D.watchEffect(()=>{o.conf.socketData&&P(o.conf.socketData)});const Z=o.conf;return(p,C)=>(D.openBlock(),D.createElementBlock("div",{class:"mix-component",style:D.normalizeStyle({background:D.unref(a).bgColor,borderRadius:`${D.unref(a).radiusSize}px`})},[D.createElementVNode("div",{class:"mix-title",style:D.normalizeStyle(c.value)},D.toDisplayString(D.unref(Z).caption||D.unref(Z).name),5),D.createElementVNode("div",{class:"mix-body"},[D.createElementVNode("div",{class:"w-full h-full",id:n})]),D.renderSlot(p.$slots,"default",{},void 0,!0)],4))}})),ut=G._export_sfc(ot,[["__scopeId","data-v-4c3d39c1"]]);exports.default=ut;
@@ -1,29 +1,29 @@
1
- var Ye = Object.defineProperty, Ke = Object.defineProperties;
1
+ var Ke = Object.defineProperty, Ye = Object.defineProperties;
2
2
  var We = Object.getOwnPropertyDescriptors;
3
3
  var be = Object.getOwnPropertySymbols;
4
4
  var Xe = Object.prototype.hasOwnProperty, je = Object.prototype.propertyIsEnumerable;
5
- var Ae = (e, i, t) => i in e ? Ye(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, _e = (e, i) => {
5
+ var Ae = (e, i, t) => i in e ? Ke(e, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[i] = t, _e = (e, i) => {
6
6
  for (var t in i || (i = {}))
7
7
  Xe.call(i, t) && Ae(e, t, i[t]);
8
8
  if (be)
9
9
  for (var t of be(i))
10
10
  je.call(i, t) && Ae(e, t, i[t]);
11
11
  return e;
12
- }, Oe = (e, i) => Ke(e, We(i));
12
+ }, Oe = (e, i) => Ye(e, We(i));
13
13
  import { defineComponent as Je, ref as Qe, inject as ye, getCurrentInstance as ei, computed as ii, watchEffect as ti, openBlock as ni, createElementBlock as ri, normalizeStyle as De, unref as ie, createElementVNode as he, toDisplayString as si, renderSlot as oi, nextTick as ui } from "vue";
14
- import { B as li, u as fi, p as ai } from "./BaseComponent-CBagahPU.js";
15
- import { I as ci, d as pe, J as Te, E as di, _ as hi } from "./index-DwPJu6XM.js";
14
+ import { B as li, u as fi, p as ai } from "./BaseComponent-NnwLq7Cf.js";
15
+ import { K as ci, d as pe, L as Te, I as di, _ as hi } from "./index-D5BukPPY.js";
16
16
  import { g as pi } from "./titleStyle-BT5GlpAb.js";
17
17
  import { A as gi, D as mi } from "./ele-lin-icon-Dax-ZiWV.js";
18
- import { c as wi, d as vi, i as Ni } from "./install-C_3uGWLu.js";
19
- import { i as Ei } from "./universalTransition-Bv7ibBUh.js";
20
- import { u as Ci, i as Si, a as ki } from "./installCanvasRenderer-CLT2hquJ.js";
21
- import { i as Mi } from "./install-BBrAry2m.js";
22
- import { i as bi } from "./install-B0x4IqQr.js";
23
- import { i as Ai } from "./install-hfre7yvV.js";
24
- import { i as _i } from "./install-Cx1i_m0k.js";
25
- import { i as Oi } from "./install-MS3ZY7fF.js";
26
- import { i as Di, d as Ti } from "./echarts-BVht3HHb.js";
18
+ import { c as wi, d as vi, i as Ni } from "./install-FXyLnlJE.js";
19
+ import { i as Ei } from "./universalTransition-tYQs2a4D.js";
20
+ import { u as Ci, i as Si, a as ki } from "./installCanvasRenderer-oDYkyVFy.js";
21
+ import { i as Mi } from "./install-DbAuuRVv.js";
22
+ import { i as bi } from "./install-By9bYCXw.js";
23
+ import { i as Ai } from "./install-CEl1AYgZ.js";
24
+ import { i as _i } from "./install-ZJfH__Vo.js";
25
+ import { i as Oi } from "./install-CqrIgcb1.js";
26
+ import { i as Di, d as Ti } from "./echarts-Bp7QN4X6.js";
27
27
  var Q = 9e15, X = 1e9, ge = "0123456789abcdef", re = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", se = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", me = {
28
28
  // These values must be integers within the stated ranges (inclusive).
29
29
  // Most of these values can be changed at run-time using the `Decimal.config` method.
@@ -259,9 +259,9 @@ h.logarithm = h.log = function(e) {
259
259
  for (r = t[0]; r % 10 === 0; ) r /= 10;
260
260
  s = r !== 1;
261
261
  }
262
- if (N = !1, u = c + g, o = Y(l, u), n = i ? oe(a, u + 10) : Y(e, u), f = M(o, n, u, 1), ee(f.d, r = c, d))
262
+ if (N = !1, u = c + g, o = K(l, u), n = i ? oe(a, u + 10) : K(e, u), f = M(o, n, u, 1), ee(f.d, r = c, d))
263
263
  do
264
- if (u += 10, o = Y(l, u), n = i ? oe(a, u + 10) : Y(e, u), f = M(o, n, u, 1), !s) {
264
+ if (u += 10, o = K(l, u), n = i ? oe(a, u + 10) : K(e, u), f = M(o, n, u, 1), !s) {
265
265
  +q(f.d).slice(r + 1, r + 15) + 1 == 1e14 && (f = m(f, c + 1, 0));
266
266
  break;
267
267
  }
@@ -311,7 +311,7 @@ h.naturalExponential = h.exp = function() {
311
311
  return ve(this);
312
312
  };
313
313
  h.naturalLogarithm = h.ln = function() {
314
- return Y(this);
314
+ return K(this);
315
315
  };
316
316
  h.negated = h.neg = function() {
317
317
  var e = new this.constructor(this);
@@ -443,7 +443,7 @@ h.toPower = h.pow = function(e) {
443
443
  if ((e.d[i] & 1) == 0 && (o = 1), u.e == 0 && u.d[0] == 1 && u.d.length == 1)
444
444
  return u.s = o, u;
445
445
  }
446
- return t = L(+u, l), i = t == 0 || !isFinite(t) ? R(l * (Math.log("0." + q(u.d)) / Math.LN10 + u.e + 1)) : new f(t + "").e, i > f.maxE + 1 || i < f.minE - 1 ? new f(i > 0 ? o / 0 : 0) : (N = !1, f.rounding = u.s = 1, t = Math.min(12, (i + "").length), r = ve(e.times(Y(u, n + t)), n), r.d && (r = m(r, n + 5, 1), ee(r.d, n, s) && (i = n + 10, r = m(ve(e.times(Y(u, i + t)), i), i + 5, 1), +q(r.d).slice(n + 1, n + 15) + 1 == 1e14 && (r = m(r, n + 1, 0)))), r.s = o, N = !0, f.rounding = s, m(r, n, s));
446
+ return t = L(+u, l), i = t == 0 || !isFinite(t) ? R(l * (Math.log("0." + q(u.d)) / Math.LN10 + u.e + 1)) : new f(t + "").e, i > f.maxE + 1 || i < f.minE - 1 ? new f(i > 0 ? o / 0 : 0) : (N = !1, f.rounding = u.s = 1, t = Math.min(12, (i + "").length), r = ve(e.times(K(u, n + t)), n), r.d && (r = m(r, n + 5, 1), ee(r.d, n, s) && (i = n + 10, r = m(ve(e.times(K(u, i + t)), i), i + 5, 1), +q(r.d).slice(n + 1, n + 15) + 1 == 1e14 && (r = m(r, n + 1, 0)))), r.s = o, N = !0, f.rounding = s, m(r, n, s));
447
447
  };
448
448
  h.toPrecision = function(e, i) {
449
449
  var t, n = this, r = n.constructor;
@@ -673,7 +673,7 @@ function ve(e, i) {
673
673
  o = u;
674
674
  }
675
675
  }
676
- function Y(e, i) {
676
+ function K(e, i) {
677
677
  var t, n, r, s, o, u, f, l, a, c, d, g = 1, C = 10, v = e, P = v.d, b = v.constructor, U = b.rounding, p = b.precision;
678
678
  if (v.s < 0 || !P || !P[0] || !v.e && P[0] == 1 && P.length == 1)
679
679
  return new b(P && !P[0] ? -1 / 0 : v.s != 1 ? NaN : P ? 0 : v);
@@ -682,7 +682,7 @@ function Y(e, i) {
682
682
  v = v.times(e), t = q(v.d), n = t.charAt(0), g++;
683
683
  s = v.e, n > 1 ? (v = new b("0." + t), s++) : v = new b(n + "." + t.slice(1));
684
684
  } else
685
- return l = oe(b, a + 2, p).times(s + ""), v = Y(new b(n + "." + t.slice(1)), a - C).plus(l), b.precision = p, i == null ? m(v, p, U, N = !0) : v;
685
+ return l = oe(b, a + 2, p).times(s + ""), v = K(new b(n + "." + t.slice(1)), a - C).plus(l), b.precision = p, i == null ? m(v, p, U, N = !0) : v;
686
686
  for (c = v, f = o = v = M(v.minus(1), v.plus(1), a, 1), d = m(v.times(v), a, 1), r = 3; ; ) {
687
687
  if (o = m(o.times(d), a, 1), l = f.plus(M(o, new b(r), a, 1)), q(l.d).slice(0, a) === q(f.d).slice(0, a))
688
688
  if (f = f.times(2), s !== 0 && (f = f.plus(oe(b, a + 2, p).times(s + ""))), f = M(f, new b(g), a, 1), i == null)
@@ -729,7 +729,7 @@ function Ui(e, i) {
729
729
  else
730
730
  throw Error(W + i);
731
731
  for (s = i.search(/p/i), s > 0 ? (f = +i.slice(s + 1), i = i.substring(2, s)) : i = i.slice(2), s = i.indexOf("."), o = s >= 0, n = e.constructor, o && (i = i.replace(".", ""), u = i.length, s = u - s, r = He(n, new n(t), s, s * 2)), l = te(i, t, V), a = l.length - 1, s = a; l[s] === 0; --s) l.pop();
732
- return s < 0 ? new n(e.s * 0) : (e.e = le(l, a), e.d = l, N = !1, o && (e = M(e, r, u * 4)), f && (e = e.times(Math.abs(f) < 54 ? L(2, f) : K.pow(2, f))), N = !0, e);
732
+ return s < 0 ? new n(e.s * 0) : (e.e = le(l, a), e.d = l, N = !1, o && (e = M(e, r, u * 4)), f && (e = e.times(Math.abs(f) < 54 ? L(2, f) : Y.pow(2, f))), N = !0, e);
733
733
  }
734
734
  function Zi(e, i) {
735
735
  var t, n = i.d.length;
@@ -826,10 +826,10 @@ function zi(e) {
826
826
  function Gi(e) {
827
827
  return new this(e).atan();
828
828
  }
829
- function Yi(e) {
829
+ function Ki(e) {
830
830
  return new this(e).atanh();
831
831
  }
832
- function Ki(e, i) {
832
+ function Yi(e, i) {
833
833
  e = new this(e), i = new this(i);
834
834
  var t, n = this.precision, r = this.rounding, s = n + 4;
835
835
  return !e.s || !i.s ? t = new this(NaN) : !e.d && !i.d ? (t = x(this, s, 1).times(i.s > 0 ? 0.25 : 0.75), t.s = e.s) : !i.d || e.isZero() ? (t = i.s < 0 ? x(this, n, r) : new this(0), t.s = e.s) : !e.d || i.isZero() ? (t = x(this, s, 1).times(0.5), t.s = e.s) : i.s < 0 ? (this.precision = s, this.rounding = 1, t = this.atan(M(e, i, s, 1)), i = x(this, s, 1), this.precision = n, this.rounding = r, t = e.s < 0 ? t.minus(i) : t.plus(i)) : t = this.atan(M(e, i, s, 1)), t;
@@ -922,7 +922,7 @@ function ze(e) {
922
922
  return s < 0 ? (s = -s, l.s = -1) : l.s = 1, ne(l, s.toString());
923
923
  throw Error(W + s);
924
924
  }
925
- if (r.prototype = h, r.ROUND_UP = 0, r.ROUND_DOWN = 1, r.ROUND_CEIL = 2, r.ROUND_FLOOR = 3, r.ROUND_HALF_UP = 4, r.ROUND_HALF_DOWN = 5, r.ROUND_HALF_EVEN = 6, r.ROUND_HALF_CEIL = 7, r.ROUND_HALF_FLOOR = 8, r.EUCLID = 9, r.config = r.set = Ji, r.clone = ze, r.isDecimal = Pe, r.abs = Bi, r.acos = Hi, r.acosh = Vi, r.add = xi, r.asin = $i, r.asinh = zi, r.atan = Gi, r.atanh = Yi, r.atan2 = Ki, r.cbrt = Wi, r.ceil = Xi, r.clamp = ji, r.cos = Qi, r.cosh = yi, r.div = et, r.exp = it, r.floor = tt, r.hypot = nt, r.ln = rt, r.log = st, r.log10 = ut, r.log2 = ot, r.max = lt, r.min = ft, r.mod = at, r.mul = ct, r.pow = dt, r.random = ht, r.round = pt, r.sign = gt, r.sin = mt, r.sinh = wt, r.sqrt = vt, r.sub = Nt, r.sum = Et, r.tan = Ct, r.tanh = St, r.trunc = kt, e === void 0 && (e = {}), e && e.defaults !== !0)
925
+ if (r.prototype = h, r.ROUND_UP = 0, r.ROUND_DOWN = 1, r.ROUND_CEIL = 2, r.ROUND_FLOOR = 3, r.ROUND_HALF_UP = 4, r.ROUND_HALF_DOWN = 5, r.ROUND_HALF_EVEN = 6, r.ROUND_HALF_CEIL = 7, r.ROUND_HALF_FLOOR = 8, r.EUCLID = 9, r.config = r.set = Ji, r.clone = ze, r.isDecimal = Pe, r.abs = Bi, r.acos = Hi, r.acosh = Vi, r.add = xi, r.asin = $i, r.asinh = zi, r.atan = Gi, r.atanh = Ki, r.atan2 = Yi, r.cbrt = Wi, r.ceil = Xi, r.clamp = ji, r.cos = Qi, r.cosh = yi, r.div = et, r.exp = it, r.floor = tt, r.hypot = nt, r.ln = rt, r.log = st, r.log10 = ut, r.log2 = ot, r.max = lt, r.min = ft, r.mod = at, r.mul = ct, r.pow = dt, r.random = ht, r.round = pt, r.sign = gt, r.sin = mt, r.sinh = wt, r.sqrt = vt, r.sub = Nt, r.sum = Et, r.tan = Ct, r.tanh = St, r.trunc = kt, e === void 0 && (e = {}), e && e.defaults !== !0)
926
926
  for (n = ["precision", "rounding", "toExpNeg", "toExpPos", "maxE", "minE", "modulo", "crypto"], i = 0; i < n.length; ) e.hasOwnProperty(t = n[i++]) || (e[t] = this[t]);
927
927
  return r.config(e), r;
928
928
  }
@@ -948,7 +948,7 @@ function nt() {
948
948
  return N = !0, t.sqrt();
949
949
  }
950
950
  function Pe(e) {
951
- return e instanceof K || e && e.toStringTag === Ue || !1;
951
+ return e instanceof Y || e && e.toStringTag === Ue || !1;
952
952
  }
953
953
  function rt(e) {
954
954
  return new this(e).ln();
@@ -1034,9 +1034,9 @@ function kt(e) {
1034
1034
  }
1035
1035
  h[/* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom")] = h.toString;
1036
1036
  h[Symbol.toStringTag] = "Decimal";
1037
- var K = h.constructor = ze(me);
1038
- re = new K(re);
1039
- se = new K(se);
1037
+ var Y = h.constructor = ze(me);
1038
+ re = new Y(re);
1039
+ se = new Y(se);
1040
1040
  const Mt = {
1041
1041
  DEFAULT_ICON: mi,
1042
1042
  ACTIVE_ICON: gi,
@@ -1147,10 +1147,10 @@ const Mt = {
1147
1147
  for (let I = 0; I < E.length; I++)
1148
1148
  pe(E[I]).diff(B, "minutes") > _ * F && (F++, D.length > 0 && (O.push(D[D.length - 1]), A.push({
1149
1149
  data: [k[0], k[k.length - 1], Math.min(...k), Math.max(...k)],
1150
- total: k.reduce((S, J) => K(String(S)).add(K(String(J))), 0).toNumber()
1150
+ total: k.reduce((S, J) => Y(String(S)).add(Y(String(J))), 0).toNumber()
1151
1151
  }), D = [], k = [])), D.push(E[I]), k.push(p[I]), I === E.length - 1 && (O.push(D[D.length - 1]), A.push({
1152
1152
  data: [k[0], k[k.length - 1], Math.max(...k), Math.min(...k)],
1153
- total: k.reduce((S, J) => K(String(S)).add(K(String(J))), 0).toNumber()
1153
+ total: k.reduce((S, J) => Y(String(S)).add(Y(String(J))), 0).toNumber()
1154
1154
  }));
1155
1155
  let H = { data: [], dates: O, volumes: [] };
1156
1156
  A.forEach((I) => {
@@ -22,8 +22,8 @@ import "element-plus/es/components/date-picker/style/css";
22
22
  import { defineComponent as me, computed as w, ref as U, reactive as j, openBlock as h, createElementBlock as f, normalizeStyle as E, unref as n, createElementVNode as r, toDisplayString as c, createCommentVNode as x, createTextVNode as O, createVNode as v, withCtx as g, Fragment as _e, renderList as ve, createBlock as he, renderSlot as be } from "vue";
23
23
  import { u as fe } from "./safeI18n-CXZgGKWp.js";
24
24
  import { ElMessage as A } from "element-plus";
25
- import { B as ge } from "./BaseComponent-CBagahPU.js";
26
- import { _ as we } from "./index-DwPJu6XM.js";
25
+ import { B as ge } from "./BaseComponent-NnwLq7Cf.js";
26
+ import { _ as we } from "./index-D5BukPPY.js";
27
27
  import { g as ye } from "./titleStyle-BT5GlpAb.js";
28
28
  import { A as Ce, D as Ve } from "./ele-vlu-icon-Bg6EHZdJ.js";
29
29
  const xe = { class: "title-text" }, Se = {
@@ -1,2 +1,2 @@
1
- "use strict";var Y=Object.defineProperty,H=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var k=(d,r,c)=>r in d?Y(d,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):d[r]=c,D=(d,r)=>{for(var c in r||(r={}))W.call(r,c)&&k(d,c,r[c]);if(x)for(var c of x(r))G.call(r,c)&&k(d,c,r[c]);return d},O=(d,r)=>H(d,K(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/upload/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/date-picker/style/css");const e=require("vue"),J=require("./safeI18n-DR20q_h1.cjs"),y=require("element-plus"),Q=require("./BaseComponent-Chnv4fBT.cjs"),X=require("./index-DVqMfQVc.cjs"),Z=require("./titleStyle-NSnz6cUg.cjs"),T=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),ee={class:"title-text"},te={key:0,class:"title-actions"},oe={class:"mix-body"},ne={key:0,class:"body-unit"},le={class:"ee-form"},ie={class:"ee-row"},ae={class:"ee-field"},re={class:"ee-label"},se={class:"ee-field"},ce={class:"ee-label"},de={class:"ee-field"},ue={class:"ee-label"},pe={class:"ee-field"},me={class:"ee-label"},_e={class:"ee-field"},fe={class:"ee-label"},ve={class:"ee-field"},he={class:"ee-label"},be={class:"ee-file-name"},ge={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"KPI数字卡",NAME_EN:"KPI Card",ORDER:11,PLATFORM:["pc","screen"]},ye={bgColor:"#fff",titleColor:"#111",textColor:"#666",radiusSize:8,textSize:12,valueSize:36,isHideTitle:!1,description:"实际发生但未触发预警的事件占比",unit:"%",colorMode:{value:"lower-better",type:"select",label:"component.options.lw_colorMode",options:[{label:"component.options.lw_colorMode_lowerBetter",value:"lower-better"},{label:"component.options.lw_colorMode_higherBetter",value:"higher-better"},{label:"component.options.lw_colorMode_neutral",value:"neutral"}]},goodColor:"#22c55e",badColor:"#ef4444",neutralColor:"#1f2329",threshold:10,btnText1:"事件录入",btnAction1:{value:"eventEntry",type:"select",label:"component.options.lw_btnAction1",options:[{label:"component.options.lw_btnAction_eventEntry",value:"eventEntry"},{label:"component.options.lw_btnAction_eventDownload",value:"eventDownload"},{label:"component.options.lw_btnAction_dataDownload",value:"dataDownload"},{label:"component.options.lw_btnAction_publish",value:"publish"}]},btnText2:"事件下载",btnAction2:{value:"eventDownload",type:"select",label:"component.options.lw_btnAction2",options:[{label:"component.options.lw_btnAction_eventEntry",value:"eventEntry"},{label:"component.options.lw_btnAction_eventDownload",value:"eventDownload"},{label:"component.options.lw_btnAction_dataDownload",value:"dataDownload"},{label:"component.options.lw_btnAction_publish",value:"publish"}]},linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}},eventRegions:{value:"东帮,南帮,北帮土场,西帮",type:"text",label:"component.options.lw_ee_regions"},eventLocationPlaceholder:{value:"如:+862水平,靠近岩破附近",type:"text",label:"component.options.lw_ee_locationPh"},eventRecorderPlaceholder:{value:"请输入录入人",type:"text",label:"component.options.lw_ee_recorderPh"},eventDescPlaceholder:{value:"请输入事件描述",type:"text",label:"component.options.lw_ee_descPh"}},we=[{name:"漏报率",fv:"",object_id:"",value:5}],Ve=["name","fv","object_id"],Ce=["mosaic","statistics","calculate","statisticsRealtime"],Se={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"statistics"},Ee=1,Ne={DEFAULT:ge,OPTIONS:ye,DATA:we,PARAMS:Ve,SOURCE:Ce,ITEMS:Ee,COMMON:Se},xe=e.defineComponent(O(D({},Ne),{__name:"kpiCard",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(d){const r=d;class c extends Q.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),valueSize:this.getOptionValue("valueSize",36),description:this.getOptionValue("description",""),unit:this.getOptionValue("unit",""),colorMode:this.getOptionValue("colorMode","lower-better"),goodColor:this.getOptionValue("goodColor","#22c55e"),badColor:this.getOptionValue("badColor","#ef4444"),neutralColor:this.getOptionValue("neutralColor","#1f2329"),threshold:Number(this.getOptionValue("threshold",10)),btnText1:this.getOptionValue("btnText1",""),btnAction1:this.getOptionValue("btnAction1","eventEntry"),btnText2:this.getOptionValue("btnText2",""),btnAction2:this.getOptionValue("btnAction2","eventDownload"),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel",""),eventRegions:this.getOptionValue("eventRegions","东帮,南帮,北帮土场,西帮"),eventLocationPlaceholder:this.getOptionValue("eventLocationPlaceholder","如:+862水平,靠近岩破附近"),eventRecorderPlaceholder:this.getOptionValue("eventRecorderPlaceholder","请输入录入人"),eventDescPlaceholder:this.getOptionValue("eventDescPlaceholder","请输入事件描述")}}init(){var o;this.Style.value=this.extractStyles(),this.applyTheme(),(o=this.props.conf.data)!=null&&o.length||(this.props.conf.data=[{name:"",fv:"",object_id:"",value:0}])}getLinkChannel(){const o=this.Style.value;return(o==null?void 0:o.linkChannel)==="custom"?o.customChannel||"":(o==null?void 0:o.linkChannel)||""}}const b=new c(r,"kpiCard");b.setupLifecycle();const l=b.getStyle(),u=r.conf,M=e.computed(()=>Z.generateTitleStyle(r.conf.options)),w=e.computed(()=>{var t,o,p;return(p=(o=(t=r.conf)==null?void 0:t.data)==null?void 0:o[0])==null?void 0:p.value}),A=e.computed(()=>{const t=w.value;return t==null||t===""?"--":typeof t=="number"?Number.isInteger(t)?String(t):t.toFixed(1):String(t)}),B=e.computed(()=>{const t=l.value,o=Number(w.value);return t.colorMode==="neutral"||isNaN(o)?t.neutralColor||t.titleColor:t.colorMode==="lower-better"?o<=t.threshold?t.goodColor:t.badColor:t.colorMode==="higher-better"?o>=t.threshold?t.goodColor:t.badColor:t.titleColor}),{t:i}=J.useSafeI18n(),f=e.ref(!1),S=e.ref(""),n=e.reactive({time:"",region:"",location:"",recorder:"",description:"",fileName:"",file:null}),V=e.reactive([]),P=e.computed(()=>String(l.value.eventRegions||"").split(/[,,]/).map(t=>t.trim()).filter(Boolean)),z=e.computed(()=>{const t=i("component.options.lw_ee_titleSuffix"),o=u.caption||u.name||"";return o?`${o}${t}`:t});function $(){const t=new Date,o=p=>String(p).padStart(2,"0");return`${t.getFullYear()}-${o(t.getMonth()+1)}-${o(t.getDate())} ${o(t.getHours())}:${o(t.getMinutes())}`}function R(){n.time=$(),n.region="",n.location="",n.recorder="",n.description="",n.fileName="",n.file=null}function q(t){S.value=t,R(),f.value=!0}function F(){f.value=!1}function I(t){n.fileName=(t==null?void 0:t.name)||"",n.file=(t==null?void 0:t.raw)||null}function L(){if(!n.time||!n.region||!n.recorder){y.ElMessage.warning(i("component.options.lw_ee_validateTip"));return}V.push({time:n.time,region:n.region,location:n.location,recorder:n.recorder,description:n.description,fileName:n.fileName});const t={type:"eventEntrySaved",kpi:u.caption||u.name,action:S.value,time:n.time,region:n.region,location:n.location,recorder:n.recorder,description:n.description,fileName:n.fileName};r.mode==="preview"&&b.publish(t),y.ElMessage.success(i("component.options.lw_ee_savedTip")),f.value=!1}function E(t){const o=(t!=null?t:"").toString().replace(/"/g,'""');return/[",\n\r]/.test(o)?`"${o}"`:o}function U(){if(V.length===0){y.ElMessage.info(i("component.options.lw_ee_noEvents"));return}const o=[[i("component.options.lw_ee_time"),i("component.options.lw_ee_region"),i("component.options.lw_ee_location"),i("component.options.lw_ee_recorder"),i("component.options.lw_ee_desc"),i("component.options.lw_ee_photo")].map(E).join(",")];for(const s of V)o.push([s.time,s.region,s.location,s.recorder,s.description,s.fileName].map(E).join(","));const p="\uFEFF"+o.join(`\r
1
+ "use strict";var Y=Object.defineProperty,H=Object.defineProperties;var K=Object.getOwnPropertyDescriptors;var x=Object.getOwnPropertySymbols;var W=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable;var k=(d,r,c)=>r in d?Y(d,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):d[r]=c,D=(d,r)=>{for(var c in r||(r={}))W.call(r,c)&&k(d,c,r[c]);if(x)for(var c of x(r))G.call(r,c)&&k(d,c,r[c]);return d},O=(d,r)=>H(d,K(r));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("element-plus/es");require("element-plus/es/components/base/style/css");require("element-plus/es/components/dialog/style/css");require("element-plus/es/components/upload/style/css");require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("element-plus/es/components/select/style/css");require("element-plus/es/components/option/style/css");require("element-plus/es/components/date-picker/style/css");const e=require("vue"),J=require("./safeI18n-DR20q_h1.cjs"),y=require("element-plus"),Q=require("./BaseComponent-CaCkjmmb.cjs"),X=require("./index-BzWbqJIl.cjs"),Z=require("./titleStyle-NSnz6cUg.cjs"),T=require("./ele-vlu-icon-Dv-R7Xuc.cjs"),ee={class:"title-text"},te={key:0,class:"title-actions"},oe={class:"mix-body"},ne={key:0,class:"body-unit"},le={class:"ee-form"},ie={class:"ee-row"},ae={class:"ee-field"},re={class:"ee-label"},se={class:"ee-field"},ce={class:"ee-label"},de={class:"ee-field"},ue={class:"ee-label"},pe={class:"ee-field"},me={class:"ee-label"},_e={class:"ee-field"},fe={class:"ee-label"},ve={class:"ee-field"},he={class:"ee-label"},be={class:"ee-file-name"},ge={DEFAULT_ICON:T.DEFAULT_ICON,ACTIVE_ICON:T.ACTIVE_ICON,NAME_CN:"KPI数字卡",NAME_EN:"KPI Card",ORDER:11,PLATFORM:["pc","screen"]},ye={bgColor:"#fff",titleColor:"#111",textColor:"#666",radiusSize:8,textSize:12,valueSize:36,isHideTitle:!1,description:"实际发生但未触发预警的事件占比",unit:"%",colorMode:{value:"lower-better",type:"select",label:"component.options.lw_colorMode",options:[{label:"component.options.lw_colorMode_lowerBetter",value:"lower-better"},{label:"component.options.lw_colorMode_higherBetter",value:"higher-better"},{label:"component.options.lw_colorMode_neutral",value:"neutral"}]},goodColor:"#22c55e",badColor:"#ef4444",neutralColor:"#1f2329",threshold:10,btnText1:"事件录入",btnAction1:{value:"eventEntry",type:"select",label:"component.options.lw_btnAction1",options:[{label:"component.options.lw_btnAction_eventEntry",value:"eventEntry"},{label:"component.options.lw_btnAction_eventDownload",value:"eventDownload"},{label:"component.options.lw_btnAction_dataDownload",value:"dataDownload"},{label:"component.options.lw_btnAction_publish",value:"publish"}]},btnText2:"事件下载",btnAction2:{value:"eventDownload",type:"select",label:"component.options.lw_btnAction2",options:[{label:"component.options.lw_btnAction_eventEntry",value:"eventEntry"},{label:"component.options.lw_btnAction_eventDownload",value:"eventDownload"},{label:"component.options.lw_btnAction_dataDownload",value:"dataDownload"},{label:"component.options.lw_btnAction_publish",value:"publish"}]},linkChannel:{value:"landslide",type:"select",label:"component.options.lw_linkChannel",options:[{label:"component.options.lw_linkChannel_landslide",value:"landslide"},{label:"component.options.lw_linkChannel_custom",value:"custom"}]},customChannel:{value:"",type:"string",label:"component.options.lw_customChannel",showWhen:{linkChannel:"custom"}},eventRegions:{value:"东帮,南帮,北帮土场,西帮",type:"text",label:"component.options.lw_ee_regions"},eventLocationPlaceholder:{value:"如:+862水平,靠近岩破附近",type:"text",label:"component.options.lw_ee_locationPh"},eventRecorderPlaceholder:{value:"请输入录入人",type:"text",label:"component.options.lw_ee_recorderPh"},eventDescPlaceholder:{value:"请输入事件描述",type:"text",label:"component.options.lw_ee_descPh"}},we=[{name:"漏报率",fv:"",object_id:"",value:5}],Ve=["name","fv","object_id"],Ce=["mosaic","statistics","calculate","statisticsRealtime"],Se={useAlias:!1,multiObject:!1,hideMultiObject:!0,source:"statistics"},Ee=1,Ne={DEFAULT:ge,OPTIONS:ye,DATA:we,PARAMS:Ve,SOURCE:Ce,ITEMS:Ee,COMMON:Se},xe=e.defineComponent(O(D({},Ne),{__name:"kpiCard",props:{conf:{type:Object,default:()=>({data:[]})},uid:{type:String,default:""},mode:{type:String,default:"edit"},theme:{type:String,default:"light"}},setup(d){const r=d;class c extends Q.BaseComponent{extractStyles(){return{bgColor:this.getOptionValue("bgColor","#fff"),titleColor:this.getOptionValue("titleColor","#111"),textColor:this.getOptionValue("textColor","#666"),radiusSize:this.getOptionValue("radiusSize",8),textSize:this.getOptionValue("textSize",12),valueSize:this.getOptionValue("valueSize",36),description:this.getOptionValue("description",""),unit:this.getOptionValue("unit",""),colorMode:this.getOptionValue("colorMode","lower-better"),goodColor:this.getOptionValue("goodColor","#22c55e"),badColor:this.getOptionValue("badColor","#ef4444"),neutralColor:this.getOptionValue("neutralColor","#1f2329"),threshold:Number(this.getOptionValue("threshold",10)),btnText1:this.getOptionValue("btnText1",""),btnAction1:this.getOptionValue("btnAction1","eventEntry"),btnText2:this.getOptionValue("btnText2",""),btnAction2:this.getOptionValue("btnAction2","eventDownload"),linkChannel:this.getOptionValue("linkChannel","landslide"),customChannel:this.getOptionValue("customChannel",""),eventRegions:this.getOptionValue("eventRegions","东帮,南帮,北帮土场,西帮"),eventLocationPlaceholder:this.getOptionValue("eventLocationPlaceholder","如:+862水平,靠近岩破附近"),eventRecorderPlaceholder:this.getOptionValue("eventRecorderPlaceholder","请输入录入人"),eventDescPlaceholder:this.getOptionValue("eventDescPlaceholder","请输入事件描述")}}init(){var o;this.Style.value=this.extractStyles(),this.applyTheme(),(o=this.props.conf.data)!=null&&o.length||(this.props.conf.data=[{name:"",fv:"",object_id:"",value:0}])}getLinkChannel(){const o=this.Style.value;return(o==null?void 0:o.linkChannel)==="custom"?o.customChannel||"":(o==null?void 0:o.linkChannel)||""}}const b=new c(r,"kpiCard");b.setupLifecycle();const l=b.getStyle(),u=r.conf,M=e.computed(()=>Z.generateTitleStyle(r.conf.options)),w=e.computed(()=>{var t,o,p;return(p=(o=(t=r.conf)==null?void 0:t.data)==null?void 0:o[0])==null?void 0:p.value}),A=e.computed(()=>{const t=w.value;return t==null||t===""?"--":typeof t=="number"?Number.isInteger(t)?String(t):t.toFixed(1):String(t)}),B=e.computed(()=>{const t=l.value,o=Number(w.value);return t.colorMode==="neutral"||isNaN(o)?t.neutralColor||t.titleColor:t.colorMode==="lower-better"?o<=t.threshold?t.goodColor:t.badColor:t.colorMode==="higher-better"?o>=t.threshold?t.goodColor:t.badColor:t.titleColor}),{t:i}=J.useSafeI18n(),f=e.ref(!1),S=e.ref(""),n=e.reactive({time:"",region:"",location:"",recorder:"",description:"",fileName:"",file:null}),V=e.reactive([]),P=e.computed(()=>String(l.value.eventRegions||"").split(/[,,]/).map(t=>t.trim()).filter(Boolean)),z=e.computed(()=>{const t=i("component.options.lw_ee_titleSuffix"),o=u.caption||u.name||"";return o?`${o}${t}`:t});function $(){const t=new Date,o=p=>String(p).padStart(2,"0");return`${t.getFullYear()}-${o(t.getMonth()+1)}-${o(t.getDate())} ${o(t.getHours())}:${o(t.getMinutes())}`}function R(){n.time=$(),n.region="",n.location="",n.recorder="",n.description="",n.fileName="",n.file=null}function q(t){S.value=t,R(),f.value=!0}function F(){f.value=!1}function I(t){n.fileName=(t==null?void 0:t.name)||"",n.file=(t==null?void 0:t.raw)||null}function L(){if(!n.time||!n.region||!n.recorder){y.ElMessage.warning(i("component.options.lw_ee_validateTip"));return}V.push({time:n.time,region:n.region,location:n.location,recorder:n.recorder,description:n.description,fileName:n.fileName});const t={type:"eventEntrySaved",kpi:u.caption||u.name,action:S.value,time:n.time,region:n.region,location:n.location,recorder:n.recorder,description:n.description,fileName:n.fileName};r.mode==="preview"&&b.publish(t),y.ElMessage.success(i("component.options.lw_ee_savedTip")),f.value=!1}function E(t){const o=(t!=null?t:"").toString().replace(/"/g,'""');return/[",\n\r]/.test(o)?`"${o}"`:o}function U(){if(V.length===0){y.ElMessage.info(i("component.options.lw_ee_noEvents"));return}const o=[[i("component.options.lw_ee_time"),i("component.options.lw_ee_region"),i("component.options.lw_ee_location"),i("component.options.lw_ee_recorder"),i("component.options.lw_ee_desc"),i("component.options.lw_ee_photo")].map(E).join(",")];for(const s of V)o.push([s.time,s.region,s.location,s.recorder,s.description,s.fileName].map(E).join(","));const p="\uFEFF"+o.join(`\r
2
2
  `),C=new Blob([p],{type:"text/csv;charset=utf-8;"}),g=URL.createObjectURL(C),v=String(u.caption||u.name||"event").replace(/[\\/:*?"<>|]/g,"_"),h=(()=>{const s=new Date,a=j=>String(j).padStart(2,"0");return`${s.getFullYear()}${a(s.getMonth()+1)}${a(s.getDate())}_${a(s.getHours())}${a(s.getMinutes())}`})(),m=document.createElement("a");m.href=g,m.download=`${v}_${h}.csv`,document.body.appendChild(m),m.click(),document.body.removeChild(m),URL.revokeObjectURL(g),y.ElMessage.success(i("component.options.lw_ee_downloadedTip"))}function N(t,o){if(t==="eventEntry"){q(o);return}if(t==="eventDownload"){U();return}if(r.mode!=="preview")return;const p={type:t==="publish"?"kpi-action":t,kpi:u.caption||u.name,action:o,value:w.value};b.publish(p)}return(t,o)=>{const p=_.ElDatePicker,C=_.ElOption,g=_.ElSelect,v=_.ElInput,h=_.ElButton,m=_.ElUpload,s=_.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:"mix-component",style:e.normalizeStyle({background:e.unref(l).bgColor,borderRadius:`${e.unref(l).radiusSize}px`})},[e.createElementVNode("div",{class:"mix-title",style:e.normalizeStyle(M.value)},[e.createElementVNode("span",ee,e.toDisplayString(e.unref(u).caption||e.unref(u).name),1),e.unref(l).btnText1||e.unref(l).btnText2?(e.openBlock(),e.createElementBlock("div",te,[e.unref(l).btnText1?(e.openBlock(),e.createElementBlock("button",{key:0,class:"kpi-btn",onClick:o[0]||(o[0]=a=>N(e.unref(l).btnAction1,e.unref(l).btnText1))},e.toDisplayString(e.unref(l).btnText1),1)):e.createCommentVNode("",!0),e.unref(l).btnText2?(e.openBlock(),e.createElementBlock("button",{key:1,class:"kpi-btn",onClick:o[1]||(o[1]=a=>N(e.unref(l).btnAction2,e.unref(l).btnText2))},e.toDisplayString(e.unref(l).btnText2),1)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)],4),e.createElementVNode("div",oe,[e.createElementVNode("div",{class:"body-value",style:e.normalizeStyle({fontSize:`${e.unref(l).valueSize}px`,color:B.value})},[e.createTextVNode(e.toDisplayString(A.value),1),e.unref(l).unit?(e.openBlock(),e.createElementBlock("span",ne,e.toDisplayString(e.unref(l).unit),1)):e.createCommentVNode("",!0)],4),e.unref(l).description?(e.openBlock(),e.createElementBlock("div",{key:0,class:"body-desc",style:e.normalizeStyle({fontSize:`${e.unref(l).textSize}px`,color:e.unref(l).textColor})},e.toDisplayString(e.unref(l).description),5)):e.createCommentVNode("",!0)]),e.createVNode(s,{modelValue:f.value,"onUpdate:modelValue":o[7]||(o[7]=a=>f.value=a),title:z.value,width:"640px",top:"8vh","close-on-click-modal":!1,"destroy-on-close":"","append-to-body":"",class:"kpi-event-dialog"},{footer:e.withCtx(()=>[e.createVNode(h,{onClick:F},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("component.options.lw_ee_cancel")),1)]),_:1}),e.createVNode(h,{type:"primary",onClick:L},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("component.options.lw_ee_save")),1)]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("div",le,[e.createElementVNode("div",ie,[e.createElementVNode("div",ae,[e.createElementVNode("label",re,e.toDisplayString(e.unref(i)("component.options.lw_ee_time")),1),e.createVNode(p,{modelValue:n.time,"onUpdate:modelValue":o[2]||(o[2]=a=>n.time=a),type:"datetime",size:"default",style:{width:"100%"},"value-format":"YYYY-MM-DD HH:mm",format:"YYYY/MM/DD HH:mm",placeholder:"yyyy/mm/日 --:--"},null,8,["modelValue"])]),e.createElementVNode("div",se,[e.createElementVNode("label",ce,e.toDisplayString(e.unref(i)("component.options.lw_ee_region")),1),e.createVNode(g,{modelValue:n.region,"onUpdate:modelValue":o[3]||(o[3]=a=>n.region=a),placeholder:e.unref(i)("component.options.lw_ee_regionSelectPh"),size:"default",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P.value,a=>(e.openBlock(),e.createBlock(C,{key:a,label:a,value:a},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])]),e.createElementVNode("div",de,[e.createElementVNode("label",ue,e.toDisplayString(e.unref(i)("component.options.lw_ee_location")),1),e.createVNode(v,{modelValue:n.location,"onUpdate:modelValue":o[4]||(o[4]=a=>n.location=a),placeholder:e.unref(l).eventLocationPlaceholder,size:"default"},null,8,["modelValue","placeholder"])]),e.createElementVNode("div",pe,[e.createElementVNode("label",me,e.toDisplayString(e.unref(i)("component.options.lw_ee_recorder")),1),e.createVNode(v,{modelValue:n.recorder,"onUpdate:modelValue":o[5]||(o[5]=a=>n.recorder=a),placeholder:e.unref(l).eventRecorderPlaceholder,size:"default"},null,8,["modelValue","placeholder"])]),e.createElementVNode("div",_e,[e.createElementVNode("label",fe,e.toDisplayString(e.unref(i)("component.options.lw_ee_desc")),1),e.createVNode(v,{modelValue:n.description,"onUpdate:modelValue":o[6]||(o[6]=a=>n.description=a),type:"textarea",rows:3,placeholder:e.unref(l).eventDescPlaceholder},null,8,["modelValue","placeholder"])]),e.createElementVNode("div",ve,[e.createElementVNode("label",he,e.toDisplayString(e.unref(i)("component.options.lw_ee_photo")),1),e.createVNode(m,{action:"#","auto-upload":!1,"on-change":I,"show-file-list":!1},{default:e.withCtx(()=>[e.createVNode(h,{size:"default"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("component.options.lw_ee_chooseFile")),1)]),_:1}),e.createElementVNode("span",be,e.toDisplayString(n.fileName||e.unref(i)("component.options.lw_ee_noFile")),1)]),_:1})])])]),_:1},8,["modelValue","title"]),e.renderSlot(t.$slots,"default",{},void 0,!0)],4)}}})),ke=X._export_sfc(xe,[["__scopeId","data-v-d2e4f518"]]);exports.default=ke;
@@ -1,4 +1,4 @@
1
- import { cj as t, f as u } from "./echarts-BVht3HHb.js";
1
+ import { cj as t, f as u } from "./echarts-Bp7QN4X6.js";
2
2
  function o(r, l) {
3
3
  var e = r.mapDimensionsAll("defaultedLabel"), a = e.length;
4
4
  if (a === 1) {
@@ -28,11 +28,11 @@ var O = (s, i, t) => new Promise((_, C) => {
28
28
  });
29
29
  import { defineComponent as Ae, ref as je, computed as h, reactive as Te, watch as Ee, onMounted as Oe, onBeforeUnmount as ze, openBlock as fe, createElementBlock as Re, normalizeStyle as Ie, createBlock as Le, createCommentVNode as Ue, createVNode as Be, renderSlot as Ge } from "vue";
30
30
  import "html2canvas";
31
- import { B as Pe } from "./BaseComponent-CBagahPU.js";
32
- import { N as We, O as He, _ as qe } from "./index-DwPJu6XM.js";
33
- import { g as Xe, R as Ye, L as $e } from "./mockData-DcqLnbJF.js";
34
- import { F as Je, M as Ke } from "./MonitoringMap-CNaGsq83.js";
35
- import { A as Qe, D as Ze } from "./ele-evn-icon-MWzAujnD.js";
31
+ import { B as Pe } from "./BaseComponent-NnwLq7Cf.js";
32
+ import { P as We, Q as He, _ as qe } from "./index-D5BukPPY.js";
33
+ import { g as Qe, R as Xe, L as Ye } from "./mockData-DcqLnbJF.js";
34
+ import { F as $e, M as Je } from "./MonitoringMap-DysFrw3B.js";
35
+ import { A as Ke, D as Ze } from "./ele-evn-icon-MWzAujnD.js";
36
36
  const z = Math.PI / 180, ge = 6378137, R = 1 / 298.257223563, o = 2 * R - R * R, I = o / (1 - o);
37
37
  function ea(s, i, t, _ = 1) {
38
38
  const C = _, y = s * z, k = i * z, g = t * z, r = Math.sin(y), S = Math.cos(y), v = Math.tan(y), M = ge / Math.sqrt(1 - o * r * r), F = v * v, N = I * S * S, n = S * (k - g), A = ge * ((1 - o / 4 - 3 * o * o / 64 - 5 * o * o * o / 256) * y - (3 * o / 8 + 3 * o * o / 32 + 45 * o * o * o / 1024) * Math.sin(2 * y) + (15 * o * o / 256 + 45 * o * o * o / 1024) * Math.sin(4 * y) - 35 * o * o * o / 3072 * Math.sin(6 * y)), T = C * M * (n + (1 - F + N) * n * n * n / 6 + (5 - 18 * F + F * F + 72 * N - 58 * I) * n * n * n * n * n / 120) + 5e5, j = C * (A + M * v * (n * n / 2 + (5 - F + 9 * N + 4 * N * N) * n * n * n * n / 24 + (61 - 58 * F + F * F + 600 * N - 330 * I) * n * n * n * n * n * n / 720));
@@ -46,7 +46,7 @@ function aa(s, i, t) {
46
46
  }
47
47
  const la = {
48
48
  DEFAULT_ICON: Ze,
49
- ACTIVE_ICON: Qe,
49
+ ACTIVE_ICON: Ke,
50
50
  NAME_CN: "滑坡监测地图",
51
51
  NAME_EN: "Landslide Map",
52
52
  ORDER: 1,
@@ -281,7 +281,7 @@ const la = {
281
281
  }), y(c, a, d, this));
282
282
  }
283
283
  extractStyles() {
284
- var d, c, u, l, m, V, w, p, b, E, L, U, B, G, P, W, H, q, X, Y, $, J, K, Q, Z, ee, ae, le, te, ne, oe, re, ie, se, ce, de, ue;
284
+ var d, c, u, l, m, V, w, p, b, E, L, U, B, G, P, W, H, q, Q, X, Y, $, J, K, Z, ee, ae, le, te, ne, oe, re, ie, se, ce, de, ue;
285
285
  const a = ((d = this.props.conf) == null ? void 0 : d.options) || {};
286
286
  return {
287
287
  bgColor: ((c = a.bgColor) == null ? void 0 : c.value) || "#ffffff",
@@ -295,10 +295,10 @@ const la = {
295
295
  toggleFontSize: (G = (B = a.toggleFontSize) == null ? void 0 : B.value) != null ? G : 12,
296
296
  mapStyle: ((P = a.mapStyle) == null ? void 0 : P.value) || "dark",
297
297
  lng: (H = (W = a.lng) == null ? void 0 : W.value) != null ? H : 119.3838,
298
- lat: (X = (q = a.lat) == null ? void 0 : q.value) != null ? X : 45.3738,
299
- zoom: ($ = (Y = a.zoom) == null ? void 0 : Y.value) != null ? $ : 15,
300
- warningAreaColor: ((J = a.warningAreaColor) == null ? void 0 : J.value) || "#ff6600",
301
- warningAreaFillOpacity: (Q = (K = a.warningAreaFillOpacity) == null ? void 0 : K.value) != null ? Q : 0.08,
298
+ lat: (Q = (q = a.lat) == null ? void 0 : q.value) != null ? Q : 45.3738,
299
+ zoom: (Y = (X = a.zoom) == null ? void 0 : X.value) != null ? Y : 15,
300
+ warningAreaColor: (($ = a.warningAreaColor) == null ? void 0 : $.value) || "#ff6600",
301
+ warningAreaFillOpacity: (K = (J = a.warningAreaFillOpacity) == null ? void 0 : J.value) != null ? K : 0.08,
302
302
  showFilterBar: (ee = (Z = a.showFilterBar) == null ? void 0 : Z.value) != null ? ee : !0,
303
303
  showModelToggle: (le = (ae = a.showModelToggle) == null ? void 0 : ae.value) != null ? le : !0,
304
304
  showDeviceToggle: (ne = (te = a.showDeviceToggle) == null ? void 0 : te.value) != null ? ne : !0,
@@ -330,11 +330,11 @@ const la = {
330
330
  "--lw-label-color": e.labelColor,
331
331
  "--lw-toggle-size": e.toggleFontSize + "px"
332
332
  };
333
- }), v = Te(Xe());
333
+ }), v = Te(Qe());
334
334
  Ee(r, (e) => {
335
335
  v.mapScene.tileStyle = e.mapStyle, v.mapScene.centerLng = e.lng, v.mapScene.centerLat = e.lat, v.mapScene.zoom = e.zoom;
336
336
  }, { immediate: !0 });
337
- const M = h(() => Ye), F = h(() => $e), N = /* @__PURE__ */ new Set(["GNSS", "crack", "radar", "deepDisplacement", "stress", "rainfall", "groundwater"]), n = /* @__PURE__ */ new Set(["person", "excavator", "truck", "drone"]), A = h(() => {
337
+ const M = h(() => Xe), F = h(() => Ye), N = /* @__PURE__ */ new Set(["GNSS", "crack", "radar", "deepDisplacement", "stress", "rainfall", "groundwater"]), n = /* @__PURE__ */ new Set(["person", "excavator", "truck", "drone"]), A = h(() => {
338
338
  var a;
339
339
  const e = (a = t.conf) == null ? void 0 : a.data;
340
340
  return Array.isArray(e) ? e : [];
@@ -406,7 +406,7 @@ const la = {
406
406
  class: "lsm-wrapper",
407
407
  style: Ie(S.value)
408
408
  }, [
409
- r.value.showFilterBar ? (fe(), Le(Je, {
409
+ r.value.showFilterBar ? (fe(), Le($e, {
410
410
  key: 0,
411
411
  filters: v.filters,
412
412
  regions: M.value,
@@ -416,7 +416,7 @@ const la = {
416
416
  onQuery: he,
417
417
  onStartSection: we
418
418
  }, null, 8, ["filters", "regions", "lines", "device-names"])) : Ue("", !0),
419
- Be(Ke, {
419
+ Be(Je, {
420
420
  ref_key: "monitoringMapRef",
421
421
  ref: i,
422
422
  "map-scene": v.mapScene,